(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1012:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n.n(r),o=n(394),i=n.n(o),c=n(409),s=n.n(c);function l(e){const{title:t,links:n,url:r}=e,o=t?a.a.createElement("h2",{className:s.a.title},t):null,c=n.map((e=>{const t=r(e);return a.a.createElement("li",{key:e.id,className:s.a.item},a.a.createElement("a",{href:t,className:s.a.link},e.name))}));return c&&0!==c.length?a.a.createElement("section",{className:s.a.links},o,a.a.createElement("div",{className:i.a["col-xs-12"]},a.a.createElement("ul",{className:s.a.list},c))):null}},1013:function(e,t,n){e.exports={path:"I18n-module--path--9e64c0",i18n:"I18n-module--i18n--02b448"}},1014:function(e,t,n){e.exports={"text-regular":"14px",aliases:"Aliases-module--aliases--d308dd",items:"Aliases-module--items--7f1276"}},1015:function(e,t,n){e.exports={block:"styles-module--block--e450ec",invitation:"styles-module--invitation--0aec14",button:"styles-module--button--f9f31c"}},1047:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),a=n.n(r),o=n(1),i=n.n(o),c=n(5),s=n(1013),l=n.n(s),u=n(26);function m(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 p=function(e){var t=e.path,n=e.args,r=void 0===n?[]:n,o=e.className,i=a.a.useContext(u.a).i18n,s=i.apply(void 0,[t].concat(m(r)));return i("debug")?a.a.createElement("span",{className:Object(c.a)(o,l.a.i18n)},s,a.a.createElement("span",{className:l.a.path},t)):a.a.createElement("span",{className:Object(c.a)(o,l.a.i18n)},s)};p.propTypes={className:i.a.string,path:i.a.string.isRequired,args:i.a.array};var d=p,b=n(1014),h=n.n(b);const y="\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?`,${y}`:""}`));return a.a.createElement("div",{className:h.a.aliases},a.a.createElement(d,{path:"aliases.label"}),y,a.a.createElement("h2",{className:h.a.items},r))}},1255:function(e,t,n){e.exports={wrapper:"BackgroundImage-module--wrapper--533a2d",image:"BackgroundImage-module--image--6f1c7e"}},1256:function(e,t,n){e.exports={white:"undefined","text-regular":"14px","text-large":"16px","font-family-light":"TreatwellSansWeb-Light",baseWrapper:"compose-module--baseWrapper--ff8a8d",treatment:"TreatmentPage-module--treatment--5a4eaa",wrapper:"TreatmentPage-module--wrapper--b6261b compose-module--baseWrapper--ff8a8d",header:"TreatmentPage-module--header--3995b3",newSection:"TreatmentPage-module--newSection--9398d8","header-wrapper":"TreatmentPage-module--header-wrapper--fd3561",title:"TreatmentPage-module--title--a4ce62","aliases-wrapper":"TreatmentPage-module--aliases-wrapper--81b234",image:"TreatmentPage-module--image--82fd0c",description:"TreatmentPage-module--description--623943",section:"TreatmentPage-module--section--ecb80a","section-title":"TreatmentPage-module--section-title--6f3ba1","section-content":"TreatmentPage-module--section-content--6d1da2",venueSearch:"TreatmentPage-module--venueSearch--617ec2",bestForBrowsePagesHeading:"TreatmentPage-module--bestForBrowsePagesHeading--28dfca",bestForBrowsePagesLinks:"TreatmentPage-module--bestForBrowsePagesLinks--6866db",contentBlocks:"TreatmentPage-module--contentBlocks--385aa5",contentSearch:"TreatmentPage-module--contentSearch--d399d6"}},1455:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return H}));var r=n(0),a=n.n(r),o=n(394),i=n.n(o),c=n(5),s=n(918),l=function(e){return e.map((function(e){return{id:e.id,title:e.title,uri:e.uri,numberOfAnswers:e.numberOfAnswers}}))},u=n(921),m=n(832),f=n(1012),p=n(1047),d=n(403),b=n(26),h=n(1255),y=n.n(h);const g={desktop:"992",tablet:"520",default:"0"};function v(e){const{images:t}=e,{getMediaUri:n}=a.a.useContext(b.a);function r(e,t,n,r){return r?t+function(e,t,n){const r=new RegExp("^http").test(e)?e:n(e),a=`\n .${y.a.image} {\n background-image: url(${r});\n }\n `;return`\n @media (min-width: ${g[t]}px) {\n ${a}\n }`}(r,n,e):t}const o=Object.keys(t).reduce(((e,a)=>r(n,e,a,t[a])),"");return a.a.createElement("div",{className:y.a.wrapper},a.a.createElement("style",null,o),a.a.createElement("div",{className:y.a.image}))}var w=n(817),O=n(864),k=n(919),E=n(833),S=n(916),j=n(985),C=n(823);function N(e){const t=e("social-media.buttons").trim();return t?t.split(",").map((e=>e.trim())):null}var T=n(1015),P=n.n(T);const x={facebook:function(){return a.a.createElement("span",{className:P.a.button,dangerouslySetInnerHTML:{__html:'\n <div class="fb-share-button"\n data-layout="button_count"\n data-size="small"\n data-mobile-iframe="true"\n >\n <a class="fb-xfbml-parse-ignore"\n target="_blank"\n href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&src=sdkpreparse"\n >\n Share\n </a>\n </div>\n '}})},twitter:function(){return a.a.createElement("span",{className:P.a.button,dangerouslySetInnerHTML:{__html:'\n <a href="https://twitter.com/share" class="twitter-share-button" data-show-count="false">\n Tweet\n </a>\n '}})}};function L(){const{i18n:e}=a.a.useContext(b.a),t=e("social-media.invitation-to-share"),n=N(e);if(!n)return null;const r=n.map((e=>{const t=x[e];return a.a.createElement(t,{key:e})}));return a.a.createElement("div",null,a.a.createElement("div",{className:P.a.block},a.a.createElement("span",{className:P.a.invitation},t),r))}const B={facebook:function(){return"\n <div id=\"fb-root\"></div>\n <script>(function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n js.src = \"//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.8\";\n fjs.parentNode.insertBefore(js, fjs);\n }(document, 'script', 'facebook-jssdk'));<\/script>\n"},twitter:function(){return'<script async src="//platform.twitter.com/widgets.js" charset="utf-8"><\/script>'}};function R(){const{channel:e,i18n:t}=a.a.useContext(b.a),{locale:n}=e,r=N(t);if(!r)return null;const o=r.map((e=>B[e](n)));return a.a.createElement("div",{dangerouslySetInnerHTML:{__html:o.join("\n\n")}})}var I=n(282),_=n.n(I),A=n(349),D=n(48),U=n(395),V=n(1256),W=n.n(V),M=800,F=function(e,t){return e("treatment",{normalisedName:t.normalisedName})},q=function(e){return{default:e.default,tablet:e.tablet,desktop:e.desktop}};function H(){var e=a.a.useRef(null),t=a.a.useContext(b.a),n=function(){const[,e]=Object(r.useState)(0);return()=>e((e=>e+1))}();async function o(e){e.persist(),e.preventDefault(),await Object(D.d)({category:"treatment_guide",property:"btt_link",action:"click",label:t.pageData.treatment.bestForBrowsePages[0].treatments[0].id,value:t.pageData.treatment.bestForBrowsePages.length}),window.location.assign(e.target.href)}Object(U.b)(),a.a.useEffect((function(){function e(){n()}return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var h=t.i18n,y=t.generateUri,g=t.pageData,N=g.treatment,T=g.popularLocations,P=N.treatment,x=P.id,B=P.normalisedName,I=h("page.treatment.".concat(x)),V=N.treatmentType,H=Object(s.a)(N.relatedTreatments||[],y,h),z=Object(u.a)(N.treatmentInspirationArticles||[])||[],$=h("page.treatment.section-other-treatments",V.name.toLowerCase()),J=N.otherTreatments,Q=function(e,n){var r=[{name:t.i18n("page.treatment-guide.title"),pageType:"treatmentGuide"},{name:n.name,pageType:"treatmentType",uriParams:{treatmentTypeId:n.id}},{name:e.name}];return a.a.createElement(d.a,{breadcrumbsParams:r,showIcon:!0})}(P,V),G=I.image||{},K=h("page.treatment.section-questions-and-answers",P.name),X=l(N.questionsAndAnswers||[]),Y={treatments:B,offerResultType:"LOCAL"},Z=a.a.createElement(E.a,{title:h("venue-search.title").replace("{entity-type}",P.name),typeAhead:{treatmentIds:P.id},browseUriValues:Y,popularLocations:T},a.a.createElement(k.a,{title:h("top-cities.title"),showMore:h("top-cities.show-more"),browseUriValues:Y})),ee=e.current&&e.current.offsetHeight>M?a.a.createElement(E.a,{title:h("venue-search.title").replace("{entity-type}",P.name),typeAhead:{treatmentIds:P.id},browseUriValues:Y,popularLocations:T}):null,te=Object(A.d)(h("page.treatment.best-for-browse-pages-heading"),{treatmentName:P.name}),ne=t.pageData.treatment.bestForBrowsePages;return a.a.createElement("div",{className:W.a.treatment},a.a.createElement("div",{className:W.a.header},a.a.createElement(O.a,null,a.a.createElement("div",{className:i.a["col-xs-12"]},Q,a.a.createElement("h1",{className:W.a.title},P.name),a.a.createElement("div",{className:W.a["aliases-wrapper"]},a.a.createElement(p.a,{aliases:P.aliases})))),a.a.createElement(O.a,{style:{position:"relative"}},a.a.createElement("div",{className:i.a["col-md-8"]},a.a.createElement("div",{className:W.a.image},a.a.createElement(v,{images:q(G)}))))),a.a.createElement("div",{className:W.a["section-content"],ref:e},a.a.createElement(O.a,null,a.a.createElement("div",{className:Object(c.a)(i.a["col-xs-12"],i.a["col-md-8"])},a.a.createElement("div",{className:Object(c.a)(W.a.venueSearch,i.a["col-xs-12"],i.a["col-sm-6"])},Z),a.a.createElement("div",{className:W.a.description},I.description),a.a.createElement(w.a,{inContent:!0}),a.a.createElement(S.a,null,I["long-description"]),a.a.createElement(w.a,{inContent:!0,footnote:!0})))),a.a.createElement(O.a,null,a.a.createElement("div",{className:Object(c.a)(i.a["col-xs-12"],i.a["col-sm-6"],i.a["col-md-12"],i.a["col-lg-12"])},a.a.createElement(L,null)),a.a.createElement("div",{className:Object(c.a)(i.a["col-xs-12"],i.a["col-sm-6"],i.a["col-md-12"],i.a["col-lg-12"])},a.a.createElement("div",{className:i.a.row},a.a.createElement("div",{className:Object(c.a)(i.a["col-md-8"])}),a.a.createElement("div",{className:Object(c.a)(W.a.contentSearch,i.a["col-xs-12"],i.a["col-sm-12"],i.a["col-md-4"])},ee)))),0===z.length?null:a.a.createElement(O.a,null,a.a.createElement("div",{className:W.a.contentBlocks},a.a.createElement(m.a,{title:h("page.treatment.section-inspiration-articles"),blocks:z,contentBlock:C.a}))),a.a.createElement(O.a,null,a.a.createElement("div",{className:W.a.contentBlocks},a.a.createElement(m.a,{title:h("page.treatment.section-related-treatments"),blocks:H,contentBlock:C.a}))),ne&&Boolean(ne.length)&&a.a.createElement(O.a,null,a.a.createElement("h2",{className:W.a.bestForBrowsePagesHeading},te),a.a.createElement("ul",{className:W.a.bestForBrowsePagesLinks},ne.map((function(e){return a.a.createElement("li",{key:e.treatments[0].uri},a.a.createElement("a",{href:e.treatments[0].uri,onClick:o},e.location))})))),a.a.createElement(O.a,null,a.a.createElement("div",{className:W.a.contentBlocks},a.a.createElement(f.a,{url:_()(F,y),title:$,links:J}))),a.a.createElement(O.a,null,a.a.createElement("div",{className:W.a.contentBlocks,id:"questions"},a.a.createElement(m.a,{title:K,blocks:X,contentBlock:j.a}))),a.a.createElement(R,null))}},351: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"}},353: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"}},397:function(e,t,n){e.exports={"font-family-light":"TreatwellSansWeb-Light",wrapper:"VenueSearch-module--wrapper--16a0f7",title:"VenueSearch-module--title--94a2d6"}},398:function(e,t,n){"use strict";t.a=function(){var e=window.innerWidth;return e>=992?3:e>=520?2:1}},409: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"}},410:function(e,t,n){e.exports={"text-smaller":"12px","text-regular":"14px","text-large":"16px","font-family-light":"TreatwellSansWeb-Light","questions-and-answers":"QuestionsAndAnswers-module--questions-and-answers--59f856",title:"QuestionsAndAnswers-module--title--f15004",link:"QuestionsAndAnswers-module--link--8c37c7",question:"QuestionsAndAnswers-module--question--0d7413",answers:"QuestionsAndAnswers-module--answers--ec16e7"}},791:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(807),a=n(785),o=n(793),i=n(809),c=n(0),s=n(821);const l=c.forwardRef((({recentLocations:e=[],hasCurrentLocationOption:t=!1,...n},l)=>{var u;const m=c.useRef(null),f=Object(i.b)(200,i.a.NormalisedName);function p(){const e=n.cmsCommonControls.search["location-current-location-label"];return{...Object(a.d)("",a.a.CurrentLocation,"",e),type:a.a.CurrentLocation}}function d(){if(!e)return;const t=n.cmsCommonControls.search["recent-searches-heading"];let r;try{r=e.filter((e=>e.entityType!==a.a.CurrentLocation)).slice(0,a.b).map((e=>{if(!Object(a.c)(e.entityType))throw new Error(`unexpected entityType: ${e.entityType}`);return Object(a.d)("recent",e.entityType,e.entityValue,e.name)}))}catch(o){return void console.error(o)}return{heading:t,items:r}}function b(){if(!n.popularLocations)return;return{heading:n.cmsCommonControls.search["location-popular-heading"],items:n.popularLocations.map((e=>Object(a.d)("popular",a.a.Location,e.normalisedName,e.name)))}}return c.useImperativeHandle(l,(()=>({clear(){null!==m.current&&m.current.clear()},setSelectedItemKey(e){null!==m.current&&m.current.setSelectedItemKey(e)},currentLocationItem:p}))),c.createElement(r.a,{cmsCommonControls:n.cmsCommonControls,ref:m,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(o.a)([d(),b()]).filter((e=>e.items.length>0)),dataAlwaysInDropdown:t?[{items:[p()]}]: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"},795:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),a=n.n(r),o=n(401);class i extends a.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 a.a.createElement(o.a,{...this.props,onClick:this.onClick,loading:this.state.loading})}}i.defaultProps=o.a.defaultProps},801: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 m})),n.d(t,"g",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return d}));var r=n(145);const a="homepage-search-data",o=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,a,o;try{n=h(t.treatment),r=h(t.location),a=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),o=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:a,time:o}}function m(e,t=null,n=null,r=null,a=null){var c;let s={treatment:t,location:n,date:r,time:a},l=[],m=[];try{const t=null===(c=v(e))||void 0===c?void 0:c[i.Treatment];s=u(t)||s,l=t.recentTreatments.map(y).filter((e=>e.entityValue)).slice(0,o),m=t.recentLocations.map(y).slice(0,o)}catch(f){}return{lastSearch:s,recentTreatments:l,recentLocations:m}}function f(e,t,n,r,a){const{recentTreatments:o,recentLocations:c}=m(a);w(i.Treatment,{lastSearch:{treatment:h(e),location:h(t),date:n,time:r},recentTreatments:b(e,o),recentLocations:b(t,c)},a)}function p(e,t=null){var n;let r=[];try{r=(null===(n=v(e))||void 0===n?void 0:n[i.Salon]).recentSalons.map(y).slice(0,o)}catch(a){}return{lastSearch:{salon:r.length>0?r[0]:t},recentSalons:r}}function d(e,t){const{recentSalons:n}=p(t);w(i.Salon,{recentSalons:b(e,n)},t)}function b(e,t){let n;try{n=y(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,o)}function h(e){return null===e?null:y(e)}function y(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(a);return t&&e!==t.languageCode?{}:g(t)?t:{}}function w(e,t,n){r.a.local.setItem(a,JSON.stringify({...v(n),[e]:t,lastSearchTab:e,languageCode:n}))}},817:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),a=n.n(r),o=n(5),i=n(831),c=n.n(i);function s(e){const{inContent:t,footnote:n}=e,r=Object(o.a)(c.a.divider,{[c.a.content]:t,[c.a.footnote]:n});return a.a.createElement("hr",{className:r})}},823:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),a=n.n(r),o=n(1),i=n.n(o),c=n(1098);var s=n(351),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 m(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 p(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 a=d(this).constructor;n=Reflect.construct(r,arguments,a)}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 b,h,y,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,o=p(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.imageUri,n=e.title,r=e.description,o=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)),a=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(a)?void 0:a}}(t);return a.a.createElement("div",{className:l.a.block},a.a.createElement("a",{className:l.a.link,href:o},a.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)}}),a.a.createElement("h3",{className:l.a.title},n),a.a.createElement("div",{className:l.a.description},r),i?a.a.createElement("span",{className:l.a.cta},i):null))}}])&&m(t.prototype,n),r&&m(t,r),i}(r.Component);b=g,h="propTypes",y={imageUri:i.a.string,title:i.a.string,description:i.a.string,uri:i.a.string,ctaText:i.a.string},h in b?Object.defineProperty(b,h,{value:y,enumerable:!0,configurable:!0,writable:!0}):b[h]=y},830:function(e,t,n){e.exports={"text-large":"16px",label:"compose-module--label--edd780",searchInput:"Search-module--searchInput--e8415c",search:"Search-module--search--3a82b3"}},831:function(e,t,n){e.exports={divider:"Divider-module--divider--73f316",content:"Divider-module--content--d15b40",footnote:"Divider-module--footnote--2850c5"}},832:function(e,t,n){"use strict";var r=n(1),a=n.n(r),o=n(0),i=n.n(o),c=n(804),s=n.n(c),l=n(5),u=n(394),m=n.n(u),f=n(398),p=n(353),d=n.n(p),b=n(351),h=n.n(b),y=n(26);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){T(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 k(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 k(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 k(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 k(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 E(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 S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function j(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=N(e);if(t){var a=N(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===g(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 N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=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&&S(e,t)}(o,e);var t,n,r,a=j(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).state={nrColumns:1},t.getBlock=t.getBlock.bind(C(t)),t.onWindowResize=t.onWindowResize.bind(C(t)),t}return t=o,(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),a=e.slice(0,r),o=e.slice(r,n);return[].concat(O(a),[{type:"custom",component:t}],O(o))}},{key:"orderBlocks",value:function(e,t){var n=this,r=t?this.insertCustomBlock(e,t):e,a=O(new Array(this.state.nrColumns)).map((function(){return[]}));return r.forEach((function(e,t){var r=t%n.state.nrColumns;a[r].push(e)})),a}},{key:"getBlock",value:function(e,t,n){var r=this.props.onClick,a=void 0===r?function(){}:r,o=n.type||"default",c="".concat(e,"=").concat(t);return"custom"===o?i.a.createElement("div",{key:c,className:h.a.block},n.component):n?i.a.createElement(this.props.contentBlock,w(w({},n),{},{i18n:this.context.i18n,key:c,onClick:function(){a(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,m.a["col-xs-12"],m.a["col-sm-6"],m.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,a=t?i.a.createElement("h2",{className:d.a.title},t):null,o=this.orderBlocks(n,r),c=this.generateColumnBlocks(o);return n&&n.length||r?i.a.createElement("section",{className:d.a.blocks},a,c):null}}])&&E(t.prototype,n),r&&E(t,r),o}(o.Component);T(P,"propTypes",{title:a.a.string,blocks:a.a.oneOfType([a.a.object,a.a.array]),customBlock:a.a.object,contentBlock:a.a.any,onClick:a.a.func}),P.contextType=y.a,t.a=P},833:function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(0),a=n.n(r),o=n(1),i=n.n(o),c=n(804),s=n.n(c),l=n(99),u=n(795),m=n(791),f=n(801),p=n(830),d=n.n(p),b=n(26);function h(e){return h="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},h(e)}function y(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?y(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(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=E(e);if(t){var a=E(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return k(e)}(this,n)}}function k(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 S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=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,o=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),S(k(t=o.call(this,e)),"onLocationSearchInputChange",(function(e,n,r,a){var o=t.props.onSelectedLocationChange,i=void 0===o?function(){}:o;r&&t.setState({location:r,isValidLocationSearchInput:!0}),n&&i(r.name,a)})),t.state={processing:!1,location:"",recentLocations:[],isValidLocationSearchInput:!0},t.submit=t.submit.bind(k(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 a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:d.a.searchInput},a.a.createElement(m.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})),a.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);S(j,"propTypes",{browseUriValues:i.a.object.isRequired,popularLocations:i.a.array,onSelectedLocationChange:i.a.func,onSearchButtonClick:i.a.func}),j.contextType=b.a;var C=j,N=n(817),T=n(397),P=n.n(T);function x(e){const{title:t,typeAhead:n,children:r,browseUriValues:o,popularLocations:i,onSelectedLocationChange:c=(()=>{}),onSearchButtonClick:s=(()=>{})}=e;return a.a.createElement("div",{className:P.a.wrapper},a.a.createElement("div",{className:P.a.title},t),a.a.createElement(C,{...n,browseUriValues:o,popularLocations:i,onSelectedLocationChange:c,onSearchButtonClick:s}),r?a.a.createElement("div",null,a.a.createElement(N.a,null),r):null)}},859:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(937);function a(e){return e.replace(/(&(\w+|\d+);|&#(\d+);)/g,((e,t)=>r.decodeHTML(t)))}},864:function(e,t,n){"use strict";var r=n(1),a=n.n(r),o=n(0),i=n.n(o),c=n(865),s=n.n(c),l=n(394),u=n.n(l);function m(){return m=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},m.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=function(e){var t=e.children,n=f(e,["children"]);return i.a.createElement("div",m({className:s.a.wrapper},n),i.a.createElement("div",{className:s.a.newSection},i.a.createElement("div",{className:u.a.row},t)))};p.propTypes={children:a.a.node.isRequired},t.a=p},865: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"}},916:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n.n(r),o=n(1008),i=n(5),c=n(917),s=n.n(c);function l(e){const{children:t,className:n}=e;return a.a.createElement("div",{className:Object(i.a)(s.a.markdown,n),dangerouslySetInnerHTML:{__html:o.marked.parse(t).toString()}})}},917:function(e,t,n){e.exports={"text-regular":"14px","text-large":"16px","font-family-light":"TreatwellSansWeb-Light",markdown:"Markdown-module--markdown--0f06a3"}},918:function(e,t,n){"use strict";t.a=function(e,t,n){return e.map((function(e){var r=e.id,a=e.normalisedName,o=e.name,i=n("page.treatment.".concat(r,".description")),c=e.image||{},s=Object.values(c.uris||{})[0];return{title:o,description:i,uri:t("treatment",{normalisedName:a}),imageUri:s}}))}},919:function(e,t,n){"use strict";var r=n(1),a=n.n(r),o=n(0),i=n.n(o),c=n(5),s=n(920),l=n.n(s),u=n(26);function m(e){return m="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},m(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 p(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 b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function h(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=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===m(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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(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&&b(e,t)}(o,e);var t,n,r,a=h(o);function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=a.call(this,e)).pageData=t.pageData,n.state={showAll:!1},n}return t=o,(n=[{key:"renderCitiesList",value:function(){var e=this,t=this.props,n=t.browseUriValues,r=t.showMore,a=this.pageData.channel.topCities||[],o=this.context.generateUri,s=this.state.showAll,u=a.map((function(e,t){var r,a=o("browse",p(p({},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:a,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),o}(o.Component);g(v,"propTypes",{title:a.a.string,showMore:a.a.string,categoryId:a.a.number,cities:a.a.object,browseUriValues:a.a.object.isRequired}),v.contextType=u.a,t.a=v},920: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"}},921:function(e,t,n){"use strict";var r=n(859);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}},985:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),a=n.n(r),o=n(410),i=n.n(o);function c(e){const{id:t,title:n,uri:r,numberOfAnswers:o,i18n:c}=e;const s=function(e,t){switch(t){case 0:return e("questions-and-answers.no-answers");case 1:return e("questions-and-answers.answer",1);default:return e("questions-and-answers.answers",t)}}(c,o);return a.a.createElement("div",{key:t},a.a.createElement("a",{href:r,className:i.a.link},a.a.createElement("div",{className:i.a.question},n),a.a.createElement("div",{className:i.a.answers},s)))}}}]); //# sourceMappingURL=TreatmentPage-4df16d.js.map