(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{1008:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(0),o=n.n(r),a=n(9),i=n(300),c=n(291),l=n.n(c),u=n(1009),s=n.n(u);function f(e){const{title:t,description:n,breadcrumbParams:r={},textColor:c,bgColorFrom:u,bgColorTo:f,bgImageTablet:p,bgImageDesktop:m,simple:d,children:y}=e,b=Object(a.a)(s.a.hero,{[s.a.responsive]:!d}),h=Object(a.a)(s.a.header,l.a["col-xs-12"],l.a["col-sm-6"],l.a["col-md-7"],l.a["col-lg-8"]);function g(e,t){return!d&&t?`\n    @media (min-width: ${e}px) {\n      .${s.a.hero} {\n        background-image: url(${t}), linear-gradient(to bottom, ${u}, ${f});\n      }\n    }\n  `:""}const v=g(520,p),w=g(992,m),O=y?o.a.createElement("div",{className:Object(a.a)(s.a.wrapper,l.a.row)},y):null;return o.a.createElement("div",{className:b,style:{color:c}},o.a.createElement("style",null,function(){const e=u||f,t=f||u;return e&&t?`\n        .${s.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)(s.a.wrapper,l.a.row)},o.a.createElement("div",{className:h},o.a.createElement(i.a,{breadcrumbsParams:r.paths||[],customColor:r.customColor,customHoverColor:r.customHoverColor,showIcon:!0}),o.a.createElement("h1",{className:s.a.title},t),o.a.createElement("div",{className:s.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"}},1011: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.venue-type.".concat(r,".hero.description")),c=e.image||{},l=Object.values(c.uris||{})[0];return{title:a,description:i,uri:t("venueType",{normalisedName:o}),imageUri:l}}))}},1228:function(e,t,n){e.exports={"font-family-light":"TreatwellSansWeb-Light",baseWrapper:"compose-module--baseWrapper--ff8a8d",page:"styles-module--page--181fe4",breadcrumbs:"styles-module--breadcrumbs--7bb354","breadcrumbs-link":"styles-module--breadcrumbs-link--c0e2f2",hero:"styles-module--hero--c72fe9",title:"styles-module--title--be1c4b",firstSection:"styles-module--firstSection--965351",wrapper:"styles-module--wrapper--a8f15f compose-module--baseWrapper--ff8a8d","section-content":"styles-module--section-content--5108e2"}},1449: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),l=n.n(c),u=n(9),s=n(1008),f=n(819),p=n(828),m=n(863),d=n(915),y=n(917),b=n(1011),h=n(830),g=n(918),v=n(292),w=n(1228),O=n.n(w),S=n(25);function j(){return j=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},j.apply(this,arguments)}var k=function(){var e=i.a.useContext(S.a),t=e.generateUri,n=e.getMediaUri,r=e.i18n,o=e.pageData,a=o.venueType,c=o.popularLocations;Object(v.b)();var w,k,C=a.venueType,E=C.id,T=C.normalisedName,P=C.name,N=C.id,L=r("page.venue-type.".concat(N)),x=L.hero,R=x.styles,D=(k=n,{textColor:"#ffffff",bgColorFrom:(w=R)["background-color-from"],bgColorTo:w["background-color-to"],bgImageTablet:k(w["background-image-tablet"]),bgImageDesktop:k(w["background-image-desktop"])}),B=Object(y.a)(C.treatmentCategories,t,r),_=Object(b.a)(a.alternativeVenueTypes,t,r),I={paths:[{name:r("page.treatment-guide.title"),pageType:"treatmentGuide"},{name:P}],customColor:O.a.breadcrumbs,customHoverColor:O.a["breadcrumbs-link"]},V={venueType:T,offerResultType:"LOCAL"},W=i.a.createElement(h.a,{key:"searchVenue",title:r("venue-search.title").replace("{entity-type}",P),typeAhead:{venueTypeIds:E},browseUriValues:V,popularLocations:c},i.a.createElement(g.a,{title:r("top-cities.title"),showMore:r("top-cities.show-more"),browseUriValues:V}));return i.a.createElement("div",{className:O.a.page},i.a.createElement(s.a,j({title:P,breadcrumbParams:I,description:x.description},D)),i.a.createElement("div",{className:Object(u.a)(O.a.wrapper,l.a.row,O.a.firstSection)},i.a.createElement(p.a,{blocks:B,customBlock:W,contentBlock:f.a})),i.a.createElement("div",{className:O.a["section-content"]},i.a.createElement(m.a,null,i.a.createElement("div",{className:Object(u.a)(l.a["col-xs-12"],l.a["col-md-8"])},i.a.createElement(d.a,null,L["long-description"])))),i.a.createElement("div",{className:Object(u.a)(O.a.wrapper,l.a.row)},i.a.createElement(p.a,{title:r("page.venue-type.section-other-venue-type"),blocks:_,contentBlock:f.a})))};k.propTypes={venueTypePage:o.a.object,venueType:o.a.object,channelCode:o.a.string,channel:o.a.object},t.default=k},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}},788:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(803),o=n(778),a=n(785),i=n(805),c=n(0),l=n(817);const u=c.forwardRef((({recentLocations:e=[],hasCurrentLocationOption:t=!1,...n},u)=>{var s;const f=c.useRef(null),p=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 y(){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(u,(()=>({clear(){null!==f.current&&f.current.clear()},setSelectedItemKey(e){null!==f.current&&f.current.setSelectedItemKey(e)},currentLocationItem:m}))),c.createElement(r.a,{cmsCommonControls:n.cmsCommonControls,ref:f,icon:l.a,placeholder:null!==(s=n.placeholder)&&void 0!==s?s:n.cmsCommonControls.search["location-placeholder-local"],searchResultsHeading:n.cmsCommonControls.search["location-results-heading"],dataForNoSearch:Object(a.a)([d(),y()]).filter((e=>e.items.length>0)),dataAlwaysInDropdown:t?[{items:[m()]}]:void 0,searchFunction:async function(e){const t=await p(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})}));u.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},797:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return f})),n.d(t,"g",(function(){return p})),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,l=i.Salon;function u(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 s(e){if(!g(e))return null;const t=e.lastSearch;if(!g(t))return null;let n,r,o,a;try{n=b(t.treatment),r=b(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 f(e,t=null,n=null,r=null,o=null){var c;let l={treatment:t,location:n,date:r,time:o},u=[],f=[];try{const t=null===(c=v(e))||void 0===c?void 0:c[i.Treatment];l=s(t)||l,u=t.recentTreatments.map(h).filter((e=>e.entityValue)).slice(0,a),f=t.recentLocations.map(h).slice(0,a)}catch(p){}return{lastSearch:l,recentTreatments:u,recentLocations:f}}function p(e,t,n,r,o){const{recentTreatments:a,recentLocations:c}=f(o);w(i.Treatment,{lastSearch:{treatment:b(e),location:b(t),date:n,time:r},recentTreatments:y(e,a),recentLocations:y(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(h).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:y(e,n)},t)}function y(e,t){let n;try{n=h(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 b(e){return null===e?null:h(e)}function h(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}))}},800:function(e,t,n){"use strict";var r=n(908);e.exports=function(e,t,n){return!r(e.props,t)||!r(e.state,n)}},812: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(827),c=n.n(i);function l(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 l=n(244),u=n.n(l);function s(e){return s="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},s(e)}function f(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 p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(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"===s(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 y,b,h,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&&p(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,l=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:u.a.block},o.a.createElement("a",{className:u.a.link,href:a},o.a.createElement(c.a,{className:u.a.image,src:t,width:l.width,height:l.height,style:{width:"100%",height:"auto",aspectRatio:"auto ".concat(l.width," / ").concat(l.height)}}),o.a.createElement("h3",{className:u.a.title},n),o.a.createElement("div",{className:u.a.description},r),i?o.a.createElement("span",{className:u.a.cta},i):null))}}])&&f(t.prototype,n),r&&f(t,r),i}(r.Component);y=g,b="propTypes",h={imageUri:i.a.string,title:i.a.string,description:i.a.string,uri:i.a.string,ctaText:i.a.string},b in y?Object.defineProperty(y,b,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[b]=h},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),l=n.n(c),u=n(9),s=n(291),f=n.n(s),p=n(295),m=n(246),d=n.n(m),y=n(244),b=n.n(y),h=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){P(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 S(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 S(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 S(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 S(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 j(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 C(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=T(e);if(t){var o=T(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 E(e)}(this,n)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=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=C(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(E(t)),t.onWindowResize=t.onWindowResize.bind(E(t)),t}return t=a,(n=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.onWindowResize),this.onWindowResize()}},{key:"shouldComponentUpdate",value:function(e,t){return l()(this,e,t)}},{key:"componentWillUnmout",value:function(){window.removeEventListener("resize",this.onWindowResize)}},{key:"onWindowResize",value:function(){this.setState({nrColumns:Object(p.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:b.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(u.a)(d.a.columns,f.a["col-xs-12"],f.a["col-sm-6"],f.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}}])&&j(t.prototype,n),r&&j(t,r),a}(a.Component);P(N,"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}),N.contextType=h.a,t.a=N},830:function(e,t,n){"use strict";n.d(t,"a",(function(){return L}));var r=n(0),o=n.n(r),a=n(1),i=n.n(a),c=n(800),l=n.n(c),u=n(88),s=n(790),f=n(788),p=n(797),m=n(826),d=n.n(m),y=n(25);function b(e){return b="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},b(e)}function h(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?h(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(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=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;return S(e)}(this,n)}}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},j(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 C=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(S(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(S(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=Object(p.e)(null,null,null,null).recentLocations;this.setState({recentLocations:e})}},{key:"shouldComponentUpdate",value:function(e,t){return l()(this,e,t)}},{key:"navigateToBrowsePage",value:async function(e,t){var n=await Object(u.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(p.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(f.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(s.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(C,"propTypes",{browseUriValues:i.a.object.isRequired,popularLocations:i.a.array,onSelectedLocationChange:i.a.func,onSearchButtonClick:i.a.func}),C.contextType=y.a;var E=C,T=n(812),P=n(294),N=n.n(P);function L(e){const{title:t,typeAhead:n,children:r,browseUriValues:a,popularLocations:i,onSelectedLocationChange:c=(()=>{}),onSearchButtonClick:l=(()=>{})}=e;return o.a.createElement("div",{className:N.a.wrapper},o.a.createElement("div",{className:N.a.title},t),o.a.createElement(E,{...n,browseUriValues:a,popularLocations:i,onSelectedLocationChange:c,onSearchButtonClick:l}),r?o.a.createElement("div",null,o.a.createElement(T.a,null),r):null)}},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),l=n.n(c),u=n(291),s=n.n(u);function f(){return f=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},f.apply(this,arguments)}function p(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=p(e,["children"]);return i.a.createElement("div",f({className:l.a.wrapper},n),i.a.createElement("div",{className:l.a.newSection},i.a.createElement("div",{className:s.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"}},908:function(e,t,n){"use strict";function r(e){return r="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},r(e)}var o=Object.prototype.hasOwnProperty;function a(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(a(e,t))return!0;if("object"!==r(e)||null===e||"object"!==r(t)||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var c=0;c<n.length;c++)if(!o.call(t,n[c])||!a(e[n[c]],t[n[c]]))return!1;return!0}},915:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),o=n.n(r),a=n(1010),i=n(9),c=n(916),l=n.n(c);function u(e){const{children:t,className:n}=e;return o.a.createElement("div",{className:Object(i.a)(l.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||{},l=Object.values(c.uris||{})[0];return{title:a,description:i,uri:t("treatment",{normalisedName:o}),imageUri:l}}))}},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),l=n(919),u=n.n(l),s=n(25);function f(e){return f="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},f(e)}function p(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?p(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(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 y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(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=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===f(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 h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(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&&y(e,t)}(a,e);var t,n,r,o=b(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,l=this.state.showAll,s=o.map((function(e,t){var r,o=a("browse",m(m({},n),{},{location:e.normalisedName})),s=Object(c.a)((g(r={},u.a.item,!0),g(r,u.a.itemHidden,!l&&t>=4),r));return i.a.createElement("li",{key:e.normalisedName,className:s},i.a.createElement("a",{href:o,className:u.a.link},e.name))}));return!l&&s.length>4&&s.push(i.a.createElement("li",{key:"showMore",className:u.a.itemShowMore,onClick:function(){return e.setState({showAll:!0})}},i.a.createElement("span",{className:u.a.link},r))),s}},{key:"render",value:function(){var e=this.props.title;return 0===(this.pageData.channel.topCities||[]).length?null:i.a.createElement("div",{className:u.a["top-cities"]},i.a.createElement("div",{className:u.a.title},e),i.a.createElement("ul",{className:u.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=s.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"}}}]);
//# sourceMappingURL=VenueTypePage-688fb6.js.map