(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{1008:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),o=n.n(r),a=n(9),i=n(300),c=n(291),s=n.n(c),l=n(1009),u=n.n(l);function p(e){const{title:t,description:n,breadcrumbParams:r={},textColor:c,bgColorFrom:l,bgColorTo:p,bgImageTablet:f,bgImageDesktop:m,simple:d,children:h}=e,y=Object(a.a)(u.a.hero,{[u.a.responsive]:!d}),b=Object(a.a)(u.a.header,s.a["col-xs-12"],s.a["col-sm-6"],s.a["col-md-7"],s.a["col-lg-8"]);function g(e,t){return!d&&t?`\n    @media (min-width: ${e}px) {\n      .${u.a.hero} {\n        background-image: url(${t}), linear-gradient(to bottom, ${l}, ${p});\n      }\n    }\n  `:""}const v=g(520,f),w=g(992,m),O=h?o.a.createElement("div",{className:Object(a.a)(u.a.wrapper,s.a.row)},h):null;return o.a.createElement("div",{className:y,style:{color:c}},o.a.createElement("style",null,function(){const e=l||p,t=p||l;return e&&t?`\n        .${u.a.hero} {\n          background-image: linear-gradient(to bottom, ${e}, ${t})\n        }\n      `:""}()),o.a.createElement("style",null,v),o.a.createElement("style",null,w),o.a.createElement("div",{className:Object(a.a)(u.a.wrapper,s.a.row)},o.a.createElement("div",{className:b},o.a.createElement(i.a,{breadcrumbsParams:r.paths||[],customColor:r.customColor,customHoverColor:r.customHoverColor,showIcon:!0}),o.a.createElement("h1",{className:u.a.title},t),o.a.createElement("div",{className:u.a.description},n))),O)}},1009:function(e,t,n){e.exports={"text-large":"16px","font-family-light":"TreatwellSansWeb-Light",baseWrapper:"compose-module--baseWrapper--ff8a8d",wrapper:"Hero-module--wrapper--307f0b compose-module--baseWrapper--ff8a8d",hero:"Hero-module--hero--e5bb65",header:"Hero-module--header--02e2c5",title:"Hero-module--title--834964",description:"Hero-module--description--3a3cf7",responsive:"Hero-module--responsive--001ffd",firstSection:"Hero-module--firstSection--a0957b",blocks:"Hero-module--blocks--93c685"}},1014:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),o=n.n(r),a=n(291),i=n.n(a),c=n(306),s=n.n(c);function l(e){const{title:t,links:n,url:r}=e,a=t?o.a.createElement("h2",{className:s.a.title},t):null,c=n.map((e=>{const t=r(e);return o.a.createElement("li",{key:e.id,className:s.a.item},o.a.createElement("a",{href:t,className:s.a.link},e.name))}));return c&&0!==c.length?o.a.createElement("section",{className:s.a.links},a,o.a.createElement("div",{className:i.a["col-xs-12"]},o.a.createElement("ul",{className:s.a.list},c))):null}},1015:function(e,t,n){e.exports={path:"I18n-module--path--9e64c0",i18n:"I18n-module--i18n--02b448"}},1016:function(e,t,n){e.exports={"text-regular":"14px",aliases:"Aliases-module--aliases--d308dd",items:"Aliases-module--items--7f1276"}},1018:function(e,t,n){"use strict";t.a=function(e,t,n){return e.map((function(e){var r=e.id,o=e.name,a=n("page.treatment-type.".concat(r,".hero.description")),i=e.image||{},c=Object.values(i.uris||{})[0],s=function(e,t){return e("treatmentType",{treatmentTypeId:t})}(t,r);return{title:o,description:a,uri:s,imageUri:c}}),e)}},1057:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),o=n.n(r),a=n(1),i=n.n(a),c=n(9),s=n(1015),l=n.n(s),u=n(25);function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=function(e){var t=e.path,n=e.args,r=void 0===n?[]:n,a=e.className,i=o.a.useContext(u.a).i18n,s=i.apply(void 0,[t].concat(p(r)));return i("debug")?o.a.createElement("span",{className:Object(c.a)(a,l.a.i18n)},s,o.a.createElement("span",{className:l.a.path},t)):o.a.createElement("span",{className:Object(c.a)(a,l.a.i18n)},s)};m.propTypes={className:i.a.string,path:i.a.string.isRequired,args:i.a.array};var d=m,h=n(1016),y=n.n(h);const b="\u2008";function g(e){const{aliases:t}=e;if(0===t.length)return null;const n=t.length-1,r=t.map(((e,t)=>`${e}${t<n?`,${b}`:""}`));return o.a.createElement("div",{className:y.a.aliases},o.a.createElement(d,{path:"aliases.label"}),b,o.a.createElement("h2",{className:y.a.items},r))}},1270:function(e,t,n){e.exports={baseWrapper:"compose-module--baseWrapper--ff8a8d","max-viewport-width":"1160px","breakpoint-tablet":"(min-width: 520px)","treatment-type":"treatmentTypePageStyles-module--treatment-type--5ab196",breadcrumbs:"treatmentTypePageStyles-module--breadcrumbs--530c83","breadcrumbs-link":"treatmentTypePageStyles-module--breadcrumbs-link--f2a4b3",firstSection:"treatmentTypePageStyles-module--firstSection--a4327d",wrapper:"treatmentTypePageStyles-module--wrapper--6162aa compose-module--baseWrapper--ff8a8d","section-content":"treatmentTypePageStyles-module--section-content--c94c9d","best-for-browse-container":"treatmentTypePageStyles-module--best-for-browse-container--b86c11","best-for-browse-header":"treatmentTypePageStyles-module--best-for-browse-header--e42f12","aliases-wrapper":"treatmentTypePageStyles-module--aliases-wrapper--7142a4"}},1271:function(e,t,n){e.exports={"text-large":"16px","text-regular":"14px","breakpoint-tablet":"(min-width: 520px)","breakpoint-desktop":"(min-width: 992px)",paddingMobile:"16px",paddingNonMobile:"32px",cityBlock:"City-module--cityBlock--9ad0c1",city:"City-module--city--eb3eef"}},1272:function(e,t,n){(function(t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r="__lodash_hash_undefined__",o="[object Function]",a="[object GeneratorFunction]",i=/^\[object .+?Constructor\]$/,c="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,s="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,l=c||s||Function("return this")();var u,p=Array.prototype,f=Function.prototype,m=Object.prototype,d=l["__core-js_shared__"],h=(u=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",y=f.toString,b=m.hasOwnProperty,g=m.toString,v=RegExp("^"+y.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=p.splice,O=_(l,"Map"),C=_(Object,"create");function S(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function k(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function T(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function j(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function E(e){if(!P(e)||(t=e,h&&h in t))return!1;var t,n=function(e){var t=P(e)?g.call(e):"";return t==o||t==a}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?v:i;return n.test(function(e){if(null!=e){try{return y.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function x(e,t){var r,o,a=e.__data__;return("string"==(o=n(r=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function _(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return E(n)?n:void 0}function N(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(N.Cache||T),n}function P(e){var t=n(e);return!!e&&("object"==t||"function"==t)}S.prototype.clear=function(){this.__data__=C?C(null):{}},S.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},S.prototype.get=function(e){var t=this.__data__;if(C){var n=t[e];return n===r?void 0:n}return b.call(t,e)?t[e]:void 0},S.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:b.call(t,e)},S.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?r:t,this},k.prototype.clear=function(){this.__data__=[]},k.prototype.delete=function(e){var t=this.__data__,n=j(t,e);return!(n<0)&&(n==t.length-1?t.pop():w.call(t,n,1),!0)},k.prototype.get=function(e){var t=this.__data__,n=j(t,e);return n<0?void 0:t[n][1]},k.prototype.has=function(e){return j(this.__data__,e)>-1},k.prototype.set=function(e,t){var n=this.__data__,r=j(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},T.prototype.clear=function(){this.__data__={hash:new S,map:new(O||k),string:new S}},T.prototype.delete=function(e){return x(this,e).delete(e)},T.prototype.get=function(e){return x(this,e).get(e)},T.prototype.has=function(e){return x(this,e).has(e)},T.prototype.set=function(e,t){return x(this,e).set(e,t),this},N.Cache=T,e.exports=N}).call(this,n(41))},1273:function(e,t,n){e.exports={"text-smaller":"12px","text-regular":"14px","breakpoint-tablet":"(min-width: 520px)",list:"TreatmentTypeList-module--list--901a55",treatmentType:"TreatmentTypeList-module--treatmentType--19e05f"}},1274:function(e,t,n){e.exports={"breakpoint-tablet":"(min-width: 520px)",flexContainer:"CityBlocks-module--flexContainer--ad9edc"}},1468:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),a=n(0),i=n.n(a),c=n(291),s=n.n(c),l=n(9),u=n(1008),p=n(819),f=n(1057),m=n(828),d=n(1014),h=n(863),y=n(915),b=n(830),g=n(918),v=n(917),w=n(1018),O=n(920),C=n(168),S=n.n(C);var k=n(46),T=n(292),j=n(1270),E=n.n(j),x=n(242),_=n(861),N=n(1271),P=n.n(N),R=n(1272),L=n.n(R),B=n(1273),I=n.n(B);class M extends i.a.PureComponent{constructor(){super(...arguments),this.onTreatmentClickFactory=L()((e=>async t=>{this.props.onTreatmentTypeSelect&&(t.preventDefault(),await this.props.onTreatmentTypeSelect(e.name),window.location.href=e.uri)}))}render(){return i.a.createElement("ul",{className:I.a.list},this.props.treatmentTypes.map((e=>i.a.createElement("li",{key:e.name,className:I.a.treatmentType},i.a.createElement("a",{href:e.uri,onClick:this.onTreatmentClickFactory(e)},e.name)))))}}class D extends i.a.PureComponent{constructor(){super(...arguments),this.onClick=()=>{this.props.onClick(this.props.normalisedName)}}render(){return i.a.createElement("div",{className:P.a.cityBlock},i.a.createElement("h3",{className:P.a.city,onClick:this.onClick},this.props.name),i.a.createElement(_.a,{isVisible:this.props.isOpen},i.a.createElement(M,{treatmentTypes:this.props.treatmentTypes,onTreatmentTypeSelect:this.props.onTreatmentTypeSelect})))}}var A=n(1274),V=n.n(A);class F extends i.a.PureComponent{constructor(){super(...arguments),this.state={openCity:void 0},this.onTreatmentTypeSelect=e=>{this.props.onTreatmentTypeSelect&&this.state.openCity&&this.props.onTreatmentTypeSelect(this.state.openCity,e)},this.onClick=e=>{const t=this.state.openCity===e?void 0:e;this.setState({openCity:t},(()=>{t&&this.props.onCitySelect&&this.props.onCitySelect(t)}))}}render(){return i.a.createElement("div",{className:V.a.flexContainer},this.props.cities.map((e=>i.a.createElement(D,{key:e.normalisedName,name:e.name,normalisedName:e.normalisedName,treatmentTypes:e.treatmentTypes,onClick:this.onClick,isOpen:this.state.openCity===e.normalisedName,onTreatmentTypeSelect:this.onTreatmentTypeSelect}))))}}var U=n(25);function W(){return W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}var $="treatment_guide",H="btt_link",q=function(e,t){return e("treatment",{normalisedName:t.normalisedName})},z=function(){var e=i.a.useContext(U.a),t=e.generateUri,n=e.i18n,r=e.getMediaUri,o=e.pageData.treatmentType;Object(T.b)();var a,c,C=o.popularLocations,j=o.treatmentType,_=j.id,N=j.normalisedName,P=j.name,R=j.otherTreatmentCategories,L=n("page.treatment-type.".concat(_)),B=L.hero,I=B.styles,M=(c=r,{textColor:"var(--color-grey-90)",bgColorFrom:(a=I)["background-color-from"],bgColorTo:a["background-color-to"],bgImageTablet:c(a["background-image-tablet"]),bgImageDesktop:c(a["background-image-desktop"])}),D=Object(v.a)(j.popularTreatmentCategories,t,n),A=Object(w.a)(o.alternativeTreatmentTypes,t,n),V=n("page.treatment-type.section-other-treatments",j.name.toLowerCase()),z=Object(O.a)(o.treatmentTypesInspirationArticles)||[],G={paths:[{name:n("page.treatment-guide.title"),pageType:"treatmentGuide"},{name:j.name}],customColor:E.a.breadcrumbs,customHoverColor:E.a["breadcrumbs-link"]},J={treatmentType:N,offerResultType:"LOCAL"},K=i.a.createElement(b.a,{key:"searchVenue",title:n("venue-search.treatment-type-title").replace("{entity-type}",P),typeAhead:{treatmentIds:_},browseUriValues:J,popularLocations:C},i.a.createElement(g.a,{title:n("top-cities.title"),showMore:n("top-cities.show-more"),browseUriValues:J})),Q={cities:o.treatmentCategoryGroupBestForBrowsePages.map((e=>({name:e.location,normalisedName:e.location,treatmentTypes:e.treatments.map((e=>({name:e.name,uri:e.uri})))})))},X=n("page.treatment-type.best-for-browse-pages-title-template"),Y=Object(x.d)(X,{treatment:o.treatmentType.name});return i.a.createElement("div",{className:E.a["treatment-type"]},i.a.createElement(u.a,W({title:B.title,description:B.description,breadcrumbParams:G},M),i.a.createElement("div",{className:E.a["aliases-wrapper"]},i.a.createElement(f.a,{aliases:j.aliases}))),i.a.createElement("div",{className:Object(l.a)(E.a.wrapper,s.a.row,E.a.firstSection)},i.a.createElement(m.a,{blocks:D,customBlock:K,contentBlock:p.a})),0!==Q.cities.length&&i.a.createElement(h.a,null,i.a.createElement("div",{className:E.a["best-for-browse-container"]},i.a.createElement("h2",{className:E.a["best-for-browse-header"]},Y),i.a.createElement(F,W({},Q,{onCitySelect:function(e){Object(k.d)({category:$,property:H,action:"expand",value:o.treatmentCategoryGroupBestForBrowsePages.find((function(t){return t.location===e})).treatments.length})},onTreatmentTypeSelect:function(e,t){var n=o.treatmentCategoryGroupBestForBrowsePages.find((function(t){return t.location===e}));Object(k.d)({category:$,property:H,action:"click",label:n.treatments.find((function(e){return e.name===t})).id,value:n.treatments.length})}})))),i.a.createElement("div",{className:Object(l.a)(E.a.wrapper,s.a.row)},i.a.createElement(d.a,{url:S()(q,t),title:V,links:R})),i.a.createElement("div",{className:E.a["section-content"]},i.a.createElement(h.a,null,i.a.createElement("div",{className:Object(l.a)(s.a["col-xs-12"],s.a["col-md-8"])},i.a.createElement(y.a,null,L["long-description"])))),z.length?i.a.createElement("div",{className:Object(l.a)(E.a.wrapper,s.a.row)},i.a.createElement(m.a,{title:n("page.treatment-type.section-inspiration-articles"),blocks:z,contentBlock:p.a})):null,i.a.createElement("div",{className:Object(l.a)(E.a.wrapper,s.a.row)},i.a.createElement(m.a,{title:n("page.treatment-type.section-other-treatment-type"),blocks:A,contentBlock:p.a})))};z.propTypes={treatmentType:o.a.object,treatmentCategoryGroupBestForBrowsePages:o.a.shape({location:o.a.string,treatments:o.a.arrayOf(o.a.shape({name:o.a.string,uri:o.a.string}))})};t.default=z},244:function(e,t,n){e.exports={black:"#000000","text-regular":"14px","font-family-light":"TreatwellSansWeb-Light",block:"Block-module--block--80b525",link:"Block-module--link--287c15",image:"Block-module--image--b4e34f",title:"Block-module--title--7f69fd",cta:"Block-module--cta--4bccb8",description:"Block-module--description--354ee7",rating:"Block-module--rating--e452c3",ratingStars:"Block-module--ratingStars--15b57b",reviewCountMessage:"Block-module--reviewCountMessage--98fd1b"}},246:function(e,t,n){e.exports={"font-family-light":"TreatwellSansWeb-Light",blocks:"style-module--blocks--30789a",title:"style-module--title--ed0370",columns:"style-module--columns--9bc242"}},294:function(e,t,n){e.exports={"font-family-light":"TreatwellSansWeb-Light",wrapper:"VenueSearch-module--wrapper--16a0f7",title:"VenueSearch-module--title--94a2d6"}},295:function(e,t,n){"use strict";t.a=function(){var e=window.innerWidth;return e>=992?3:e>=520?2:1}},306:function(e,t,n){e.exports={"text-large":"16px","font-family-light":"TreatwellSansWeb-Light",links:"InfoColumnLinks-module--links--66b6fe",title:"InfoColumnLinks-module--title--ec67c8",list:"InfoColumnLinks-module--list--d4f962",item:"InfoColumnLinks-module--item--1390ba",link:"InfoColumnLinks-module--link--605f76"}},779:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(781);const o="mobile";function a(){return"undefined"==typeof window?"server":i(window.innerWidth)}function i(e){return e>=992?"desktop":e>=520?"tablet":"mobile"}function c(e){if(!e)return;const t=document.querySelectorAll(e);t.length&&Object(r.b)(t[0].getBoundingClientRect().top)}function s(e){e.clientHeight}},781:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));n(794);const r=25;function o(e){const t=Math.floor(document.body.getBoundingClientRect().top),n=Math.abs(t-e);let o=Math.abs(t);const a=n-o,i=a/r;let c=0;const s=()=>{o+=i,c+=Math.abs(i),window.scrollTo(0,o),c+Math.abs(i)<Math.abs(a)?window.requestAnimationFrame(s):window.scrollTo(0,n)};window.requestAnimationFrame(s)}function a(e,t,n){const o=Math.floor(e.scrollTop);let a=Math.abs(o);const i=n-a,c=i/r;let s=0;const l=Math.floor(e.scrollLeft);let u=Math.abs(l);const p=t-u,f=p/r;let m=0;const d=()=>{a+=c,s+=Math.abs(c),u+=f,m+=Math.abs(f),e.scrollTo(u,a),m+Math.abs(f)<Math.abs(p)||s+Math.abs(c)<Math.abs(i)?window.requestAnimationFrame(d):e.scrollTo(t,n)};window.requestAnimationFrame(d)}},788:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(803),o=n(778),a=n(785),i=n(805),c=n(0),s=n(817);const l=c.forwardRef((({recentLocations:e=[],hasCurrentLocationOption:t=!1,...n},l)=>{var u;const p=c.useRef(null),f=Object(i.b)(200,i.a.NormalisedName);function m(){const e=n.cmsCommonControls.search["location-current-location-label"];return{...Object(o.d)("",o.a.CurrentLocation,"",e),type:o.a.CurrentLocation}}function d(){if(!e)return;const t=n.cmsCommonControls.search["recent-searches-heading"];let r;try{r=e.filter((e=>e.entityType!==o.a.CurrentLocation)).slice(0,o.b).map((e=>{if(!Object(o.c)(e.entityType))throw new Error(`unexpected entityType: ${e.entityType}`);return Object(o.d)("recent",e.entityType,e.entityValue,e.name)}))}catch(a){return void console.error(a)}return{heading:t,items:r}}function h(){if(!n.popularLocations)return;return{heading:n.cmsCommonControls.search["location-popular-heading"],items:n.popularLocations.map((e=>Object(o.d)("popular",o.a.Location,e.normalisedName,e.name)))}}return c.useImperativeHandle(l,(()=>({clear(){null!==p.current&&p.current.clear()},setSelectedItemKey(e){null!==p.current&&p.current.setSelectedItemKey(e)},currentLocationItem:m}))),c.createElement(r.a,{cmsCommonControls:n.cmsCommonControls,ref:p,icon:s.a,placeholder:null!==(u=n.placeholder)&&void 0!==u?u:n.cmsCommonControls.search["location-placeholder-local"],searchResultsHeading:n.cmsCommonControls.search["location-results-heading"],dataForNoSearch:Object(a.a)([d(),h()]).filter((e=>e.items.length>0)),dataAlwaysInDropdown:t?[{items:[m()]}]:void 0,searchFunction:async function(e){const t=await f(n.pageData,e);return n.onSearchResultsChange&&n.onSearchResultsChange(e,t),t},isErrorStyling:n.isErrorStyling,isHotJarWhiteList:!0,onChange:n.onChange,onComplete:n.onComplete,onBlur:n.onBlur,onFocus:n.onFocus,isPatternedBackground:n.isPatternedBackground})}));l.displayName="LocationSearchInput"},790:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n.n(r),a=n(298);class i extends o.a.Component{constructor(){super(...arguments),this.state={loading:this.props.staticLoading||!1},this.onClick=e=>{const t=!this.props.disableLoading;this.setState({loading:t},(()=>{this.props.onClick&&this.props.onClick(e)}))}}componentDidUpdate(){this.props.disableLoading&&this.state.loading&&this.setState({loading:!1})}render(){return o.a.createElement(a.a,{...this.props,onClick:this.onClick,loading:this.state.loading})}}i.defaultProps=a.a.defaultProps},794:function(e,t,n){(function(e){for(var t="undefined"==typeof window?e:window,n=0,r=["ms","moz","webkit","o"],o=0;o<r.length&&!t.requestAnimationFrame;++o)t.requestAnimationFrame=t["".concat(r[o],"RequestAnimationFrame")],t.cancelAnimationFrame=t["".concat(r[o],"CancelAnimationFrame")]||t["".concat(r[o],"CancelRequestAnimationFrame")];t.requestAnimationFrame||(t.requestAnimationFrame=function(e){var r=(new Date).getTime(),o=Math.max(0,16-(r-n)),a=t.setTimeout((function(){e(r+o)}),o);return n=r+o,a}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(e){clearTimeout(e)})}).call(this,n(41))},797:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"f",(function(){return d}));var r=n(122);const o="homepage-search-data",a=5;var i;!function(e){e.Treatment="treatment",e.Salon="salon"}(i||(i={}));const c=i.Treatment,s=i.Salon;function l(e,t=i.Treatment){var n;const r=null===(n=v(e))||void 0===n?void 0:n.lastSearchTab;switch(r){case i.Treatment:case i.Salon:return r;default:return t}}function u(e){if(!g(e))return null;const t=e.lastSearch;if(!g(t))return null;let n,r,o,a;try{n=y(t.treatment),r=y(t.location),o=function(e){if(null===e)return null;return function(e){if("string"!=typeof e||Number.isNaN(Date.parse(e)))throw new TypeError("invalid date");return new Date(e)}(e)}(t.date),a=function(e){if(!g(e))return null;if("string"!=typeof e.from||"string"!=typeof e.to)return null;return e}(t.time)}catch(i){return null}return{treatment:n,location:r,date:o,time:a}}function p(e,t=null,n=null,r=null,o=null){var c;let s={treatment:t,location:n,date:r,time:o},l=[],p=[];try{const t=null===(c=v(e))||void 0===c?void 0:c[i.Treatment];s=u(t)||s,l=t.recentTreatments.map(b).filter((e=>e.entityValue)).slice(0,a),p=t.recentLocations.map(b).slice(0,a)}catch(f){}return{lastSearch:s,recentTreatments:l,recentLocations:p}}function f(e,t,n,r,o){const{recentTreatments:a,recentLocations:c}=p(o);w(i.Treatment,{lastSearch:{treatment:y(e),location:y(t),date:n,time:r},recentTreatments:h(e,a),recentLocations:h(t,c)},o)}function m(e,t=null){var n;let r=[];try{r=(null===(n=v(e))||void 0===n?void 0:n[i.Salon]).recentSalons.map(b).slice(0,a)}catch(o){}return{lastSearch:{salon:r.length>0?r[0]:t},recentSalons:r}}function d(e,t){const{recentSalons:n}=m(t);w(i.Salon,{recentSalons:h(e,n)},t)}function h(e,t){let n;try{n=b(e)}catch(r){return t}return[n,...t.filter((e=>{return r=e,!((t=n).name===r.name||t.entityType===r.entityType&&t.entityValue===r.entityValue);var t,r}))].slice(0,a)}function y(e){return null===e?null:b(e)}function b(e){if(!g(e)||"string"!=typeof e.entityType||"string"!=typeof e.entityValue||"string"!=typeof e.name)throw new TypeError(`invalid data : ${JSON.stringify(e)}`);return{entityType:e.entityType,entityValue:e.entityValue,name:e.name}}function g(e){return"object"==typeof e&&null!==e&&e.constructor===Object}function v(e){const t=r.a.local.getItem(o);return t&&e!==t.languageCode?{}:g(t)?t:{}}function w(e,t,n){r.a.local.setItem(o,JSON.stringify({...v(n),[e]:t,lastSearchTab:e,languageCode:n}))}},812:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),o=n.n(r),a=n(9),i=n(827),c=n.n(i);function s(e){const{inContent:t,footnote:n}=e,r=Object(a.a)(c.a.divider,{[c.a.content]:t,[c.a.footnote]:n});return o.a.createElement("hr",{className:r})}},819:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),o=n.n(r),a=n(1),i=n.n(a),c=n(1110);var s=n(244),l=n.n(s);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h,y,b,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(i,e);var t,n,r,a=m(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.imageUri,n=e.title,r=e.description,a=e.uri,i=e.ctaText,s=function(e){var t,n;const r=Number(null===(t=e.match(/w\d+/g))||void 0===t?void 0:t[0].substring(1)),o=Number(null===(n=e.match(/h\d+/g))||void 0===n?void 0:n[0].substring(1));return{width:Number.isNaN(r)?void 0:r,height:Number.isNaN(o)?void 0:o}}(t);return o.a.createElement("div",{className:l.a.block},o.a.createElement("a",{className:l.a.link,href:a},o.a.createElement(c.a,{className:l.a.image,src:t,width:s.width,height:s.height,style:{width:"100%",height:"auto",aspectRatio:"auto ".concat(s.width," / ").concat(s.height)}}),o.a.createElement("h3",{className:l.a.title},n),o.a.createElement("div",{className:l.a.description},r),i?o.a.createElement("span",{className:l.a.cta},i):null))}}])&&p(t.prototype,n),r&&p(t,r),i}(r.Component);h=g,y="propTypes",b={imageUri:i.a.string,title:i.a.string,description:i.a.string,uri:i.a.string,ctaText:i.a.string},y in h?Object.defineProperty(h,y,{value:b,enumerable:!0,configurable:!0,writable:!0}):h[y]=b},826:function(e,t,n){e.exports={"text-large":"16px",label:"compose-module--label--edd780",searchInput:"Search-module--searchInput--e8415c",search:"Search-module--search--3a82b3"}},827:function(e,t,n){e.exports={divider:"Divider-module--divider--73f316",content:"Divider-module--content--d15b40",footnote:"Divider-module--footnote--2850c5"}},828:function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(0),i=n.n(a),c=n(800),s=n.n(c),l=n(9),u=n(291),p=n.n(u),f=n(295),m=n(246),d=n.n(m),h=n(244),y=n.n(h),b=n(25);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;return j(e)}(this,n)}}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(a,e);var t,n,r,o=T(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={nrColumns:1},t.getBlock=t.getBlock.bind(j(t)),t.onWindowResize=t.onWindowResize.bind(j(t)),t}return t=a,(n=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.onWindowResize),this.onWindowResize()}},{key:"shouldComponentUpdate",value:function(e,t){return s()(this,e,t)}},{key:"componentWillUnmout",value:function(){window.removeEventListener("resize",this.onWindowResize)}},{key:"onWindowResize",value:function(){this.setState({nrColumns:Object(f.a)()})}},{key:"insertCustomBlock",value:function(e,t){var n=e.length,r=Math.min(this.state.nrColumns-1,n),o=e.slice(0,r),a=e.slice(r,n);return[].concat(O(o),[{type:"custom",component:t}],O(a))}},{key:"orderBlocks",value:function(e,t){var n=this,r=t?this.insertCustomBlock(e,t):e,o=O(new Array(this.state.nrColumns)).map((function(){return[]}));return r.forEach((function(e,t){var r=t%n.state.nrColumns;o[r].push(e)})),o}},{key:"getBlock",value:function(e,t,n){var r=this.props.onClick,o=void 0===r?function(){}:r,a=n.type||"default",c="".concat(e,"=").concat(t);return"custom"===a?i.a.createElement("div",{key:c,className:y.a.block},n.component):n?i.a.createElement(this.props.contentBlock,w(w({},n),{},{i18n:this.context.i18n,key:c,onClick:function(){o(n.id,c)}})):null}},{key:"generateColumnBlocks",value:function(e){var t=this;return e.map((function(e,n){var r=Object(l.a)(d.a.columns,p.a["col-xs-12"],p.a["col-sm-6"],p.a["col-md-4"]);return i.a.createElement("div",{key:n,className:r},e.map((function(e,r){return t.getBlock(n,r,e)})))}))}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.blocks,r=e.customBlock,o=t?i.a.createElement("h2",{className:d.a.title},t):null,a=this.orderBlocks(n,r),c=this.generateColumnBlocks(a);return n&&n.length||r?i.a.createElement("section",{className:d.a.blocks},o,c):null}}])&&S(t.prototype,n),r&&S(t,r),a}(a.Component);x(_,"propTypes",{title:o.a.string,blocks:o.a.oneOfType([o.a.object,o.a.array]),customBlock:o.a.object,contentBlock:o.a.any,onClick:o.a.func}),_.contextType=b.a,t.a=_},830:function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var r=n(0),o=n.n(r),a=n(1),i=n.n(a),c=n(800),s=n.n(c),l=n(88),u=n(790),p=n(788),f=n(797),m=n(826),d=n.n(m),h=n(25);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;return C(e)}(this,n)}}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(i,e);var t,n,r,a=O(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),k(C(t=a.call(this,e)),"onLocationSearchInputChange",(function(e,n,r,o){var a=t.props.onSelectedLocationChange,i=void 0===a?function(){}:a;r&&t.setState({location:r,isValidLocationSearchInput:!0}),n&&i(r.name,o)})),t.state={processing:!1,location:"",recentLocations:[],isValidLocationSearchInput:!0},t.submit=t.submit.bind(C(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=Object(f.e)(null,null,null,null).recentLocations;this.setState({recentLocations:e})}},{key:"shouldComponentUpdate",value:function(e,t){return s()(this,e,t)}},{key:"navigateToBrowsePage",value:async function(e,t){var n=await Object(l.c)({},e),r=this.context.generateUri("browse",g(g({},n),t));this.setState({processing:!1}),r&&(window.location=r)}},{key:"submit",value:async function(){var e=this.props.onSearchButtonClick,t=void 0===e?function(){}:e;if(!this.state.processing){var n=this.state.location||null,r=this.props.browseUriValues;if(r.offerResultType&&(r.offerResultType=r.offerResultType.toUpperCase()),null===n)return this.setState({isValidLocationSearchInput:!1}),void t("failed: no selected location");this.setState({processing:!0}),Object(f.g)(null,n,null,null),this.navigateToBrowsePage(n,r),t("success")}}},{key:"render",value:function(){var e=this.state.processing,t=this.context.i18n;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:d.a.searchInput},o.a.createElement(p.a,{cmsCommonControls:this.context.i18n("common.controls"),pageData:{},recentLocations:this.state.recentLocations,popularLocations:this.props.popularLocations,hasCurrentLocationOption:!this.state.isValidLocationSearchInput,isErrorStyling:!this.state.isValidLocationSearchInput,onChange:this.onLocationSearchInputChange,onSearchResultsChange:function(){},isPatternedBackground:!0})),o.a.createElement(u.a,{disableLoading:!this.state.isValidLocationSearchInput,type:"submit",label:t("venue-search.submit"),processing:e,onClick:this.submit,fullWidth:!0}))}}])&&v(t.prototype,n),r&&v(t,r),i}(r.Component);k(T,"propTypes",{browseUriValues:i.a.object.isRequired,popularLocations:i.a.array,onSelectedLocationChange:i.a.func,onSearchButtonClick:i.a.func}),T.contextType=h.a;var j=T,E=n(812),x=n(294),_=n.n(x);function N(e){const{title:t,typeAhead:n,children:r,browseUriValues:a,popularLocations:i,onSelectedLocationChange:c=(()=>{}),onSearchButtonClick:s=(()=>{})}=e;return o.a.createElement("div",{className:_.a.wrapper},o.a.createElement("div",{className:_.a.title},t),o.a.createElement(j,{...n,browseUriValues:a,popularLocations:i,onSelectedLocationChange:c,onSearchButtonClick:s}),r?o.a.createElement("div",null,o.a.createElement(E.a,null),r):null)}},858:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(936);function o(e){return e.replace(/(&(\w+|\d+);|&#(\d+);)/g,((e,t)=>r.decodeHTML(t)))}},861:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),o=n.n(r),a=n(9),i=n(779),c=n(862),s=n.n(c);class l extends o.a.PureComponent{constructor(){super(...arguments),this.state={isMounted:!1},this.containerRef=o.a.createRef(),this.childContainerRef=o.a.createRef(),this.onTransitionEnd=()=>{this.containerRef.current&&this.applyCurrentVisibilityStyle()}}componentDidMount(){this.applyCurrentVisibilityStyle(),this.setState({isMounted:!0})}componentDidUpdate(e){e.isVisible!==this.props.isVisible&&this.updateCollapse(!this.props.isVisible)}updateCollapse(e){this.containerRef.current&&this.childContainerRef.current&&(e?(this.containerRef.current.style.height=`${this.childContainerRef.current.clientHeight}px`,Object(i.b)(this.containerRef.current),this.containerRef.current.style.height="0"):this.containerRef.current.style.height=`${this.childContainerRef.current.clientHeight}px`)}applyCurrentVisibilityStyle(){this.containerRef.current&&(this.containerRef.current.style.height=this.props.isVisible?"auto":"0")}render(){return o.a.createElement("div",{ref:this.containerRef,className:Object(a.a)(s.a.container,{[s.a.expanded]:!this.state.isMounted&&this.props.isVisible,[s.a.collapsed]:!this.state.isMounted&&!this.props.isVisible}),onTransitionEnd:this.onTransitionEnd},o.a.createElement("div",{ref:this.childContainerRef,className:s.a.childrenContainer},this.props.children))}}},862:function(e,t,n){e.exports={container:"Collapsable-module--container--4e75e7",collapsed:"Collapsable-module--collapsed--451014",expanded:"Collapsable-module--expanded--9b6a36",childrenContainer:"Collapsable-module--childrenContainer--7c9d8a"}},863:function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(0),i=n.n(a),c=n(864),s=n.n(c),l=n(291),u=n.n(l);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var m=function(e){var t=e.children,n=f(e,["children"]);return i.a.createElement("div",p({className:s.a.wrapper},n),i.a.createElement("div",{className:s.a.newSection},i.a.createElement("div",{className:u.a.row},t)))};m.propTypes={children:o.a.node.isRequired},t.a=m},864:function(e,t,n){e.exports={baseWrapper:"compose-module--baseWrapper--ff8a8d",wrapper:"ContentSection-module--wrapper--a7d9ae compose-module--baseWrapper--ff8a8d",newSection:"ContentSection-module--newSection--2ca0d9"}},915:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),o=n.n(r),a=n(1010),i=n(9),c=n(916),s=n.n(c);function l(e){const{children:t,className:n}=e;return o.a.createElement("div",{className:Object(i.a)(s.a.markdown,n),dangerouslySetInnerHTML:{__html:a.marked.parse(t).toString()}})}},916:function(e,t,n){e.exports={"text-regular":"14px","text-large":"16px","font-family-light":"TreatwellSansWeb-Light",markdown:"Markdown-module--markdown--0f06a3"}},917:function(e,t,n){"use strict";t.a=function(e,t,n){return e.map((function(e){var r=e.id,o=e.normalisedName,a=e.name,i=n("page.treatment.".concat(r,".description")),c=e.image||{},s=Object.values(c.uris||{})[0];return{title:a,description:i,uri:t("treatment",{normalisedName:o}),imageUri:s}}))}},918:function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(0),i=n.n(a),c=n(9),s=n(919),l=n.n(s),u=n(25);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(a,e);var t,n,r,o=y(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e)).pageData=t.pageData,n.state={showAll:!1},n}return t=a,(n=[{key:"renderCitiesList",value:function(){var e=this,t=this.props,n=t.browseUriValues,r=t.showMore,o=this.pageData.channel.topCities||[],a=this.context.generateUri,s=this.state.showAll,u=o.map((function(e,t){var r,o=a("browse",m(m({},n),{},{location:e.normalisedName})),u=Object(c.a)((g(r={},l.a.item,!0),g(r,l.a.itemHidden,!s&&t>=4),r));return i.a.createElement("li",{key:e.normalisedName,className:u},i.a.createElement("a",{href:o,className:l.a.link},e.name))}));return!s&&u.length>4&&u.push(i.a.createElement("li",{key:"showMore",className:l.a.itemShowMore,onClick:function(){return e.setState({showAll:!0})}},i.a.createElement("span",{className:l.a.link},r))),u}},{key:"render",value:function(){var e=this.props.title;return 0===(this.pageData.channel.topCities||[]).length?null:i.a.createElement("div",{className:l.a["top-cities"]},i.a.createElement("div",{className:l.a.title},e),i.a.createElement("ul",{className:l.a.list},this.renderCitiesList()))}}])&&d(t.prototype,n),r&&d(t,r),a}(a.Component);g(v,"propTypes",{title:o.a.string,showMore:o.a.string,categoryId:o.a.number,cities:o.a.object,browseUriValues:o.a.object.isRequired}),v.contextType=u.a,t.a=v},919:function(e,t,n){e.exports={"text-large":"16px","text-larger":"18px","top-cities":"TopCities-module--top-cities--c47512",title:"TopCities-module--title--9a7a59",list:"TopCities-module--list--5e161f",item:"TopCities-module--item--81ba7d",itemShowMore:"TopCities-module--itemShowMore--c4ceda TopCities-module--item--81ba7d",itemHidden:"TopCities-module--itemHidden--f3cdcb",link:"TopCities-module--link--eac6ec"}},920:function(e,t,n){"use strict";var r=n(858);t.a=function(e){return e&&e.length?e.map((function(e){return{title:Object(r.a)(e.title),description:Object(r.a)(e.description),uri:e.link,imageUri:e.imageUrl}})):null}}}]);
//# sourceMappingURL=TreatmentTypePage-290084.js.map