PageSourceSearch

https://www.treatwell.co.uk/nmp/asset/VenueTypePage-6cdfe9.js

js treatwell.co.uk collected 2026-09-24 10:15:01 UTC 31,463 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{1013:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),o=n.n(r),a=n(1102),i=n(4),c=n(1014),l=n.n(c);function s(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()}})}},1014:function(e,t,n){e.exports={"text-regular":"14px","text-large":"16px","font-family-light":"TreatwellSansWeb-Light",markdown:"Markdown-module--markdown--0f06a3"}},1015: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}}))}},1016:function(e,t,n){"use strict";var r=n(15),o=n.n(r),a=n(0),i=n.n(a),c=n(4),l=n(1017),s=n.n(l),u=n(27);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 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"===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 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,u=o.map((function(e,t){var r,o=a("browse",m(m({},n),{},{location:e.normalisedName})),u=Object(c.a)((g(r={},s.a.item,!0),g(r,s.a.itemHidden,!l&&t>=4),r));return i.a.createElement("li",{key:e.normalisedName,className:u},i.a.createElement("a",{href:o,className:s.a.link},e.name))}));return!l&&u.length>4&&u.push(i.a.createElement("li",{key:"showMore",className:s.a.itemShowMore,onClick:function(){return e.setState({showAll:!0})}},i.a.createElement("span",{className:s.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:s.a["top-cities"]},i.a.createElement("div",{className:s.a.title},e),i.a.createElement("ul",{className:s.a.list},this.renderCitiesList()))}}])&&d(t.prototype,n),r&&d(t,r),a}(a.Component);
1g(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},1017: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"}},1100:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),o=n.n(r),a=n(4),i=n(457),c=n(451),l=n.n(c),s=n(1101),u=n.n(s);function p(e){const{title:t,description:n,breadcrumbParams:r={},textColor:c,bgColorFrom:s,bgColorTo:p,bgImageTablet:f,bgImageDesktop:m,simple:d,children:y}=e,b=Object(a.a)(u.a.hero,{[u.a.responsive]:!d}),h=Object(a.a)(u.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      .${u.a.hero} {\n        background-image: url(${t}), linear-gradient(to bottom, ${s}, ${p});\n      }\n    }\n  `:""}const v=g(520,f),w=g(992,m),O=y?o.a.createElement("div",{className:Object(a.a)(u.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=s||p,t=p||s;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,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:u.a.title},t),o.a.createElement("div",{className:u.a.description},n))),O)}},1101: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"}},1103: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}}))}},1282: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"}},1462:function(e,t,n){"use strict";n.r(t);var r=n(15),o=n.n(r),a=n(0),i=n.n(a),c=n(451),l=n.n(c),s=n(4),u=n(150),p=n(1100),f=n(934),m=n(941),d=n(960),y=n(1013),b=n(1015),h=n(1103),g=n(942),v=n(1016),w=n(329),O=n(1282),S=n.n(O),j=n(27);function k(){return k=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},k.apply(this,arguments)}var C=function(){var e=i.a.useContext(j.a),t=e.generateUri,n=e.getMediaUri,r=e.i18n,o=e.pageData,a=o.venueType,c=o.popularLocations;Object(w.c)();var O,C,E=Object(u.d)().t,T=a.venueType,P=T.id,N=T.normalisedName,L=T.name,x=T.id,R=r("page.venue-type.".concat(x)),D=R.hero,I=D.styles,B=(C=n,{textColor:"#ffffff",bgColorFrom:(O=I)["background-color-from"],bgColorTo:O["background-color-to"],bgImageTablet:C(O["background-image-tablet"]),bgImageDesktop:C(O["background-image-desktop"])}),_=E("treatmentGuide.sectionVenueType.title"),V=E("treatmentGuide.sectionVenueType.description"),W=Object(b.a)(T.treatmentCategories,t,r),U=Object(h.a)(a.alternativeVenueTypes,t,r),H={paths:[{name:r("page.treatment-guide.title"),pageType:"treatmentGuide"},{name:L}],customColor:S.a.breadcrumbs,customHoverColor:S.a["breadcrumbs-link"]},M={venueType:N,offerResultType:"LOCAL"},A=i.a.createElement(g.a,{key:"searchVenue",title:r("venue-search.title").replace("{entity-type}",L),typeAhead:{venueTypeIds:P},browseUriValues:M,popularLocations:c},i.a.createElement(v.a,{title:r("top-cities.title"),showMore:r("top-cities.show-more"),browseUriValues:M}));return i.a.createElement("div",{className:S.a.page},i.a.createElement(p.a,k({title:L,breadcrumbParams:H,description:D.description},B)),i.a.createElement("div",{className:Object(s.a)(S.a.wrapper,l.a.row,S.a.firstSection)},i.a.createElement(m.a,{blocks:W,customBlock:A,contentBlock:f.a})),i.a.createElement("div",{className:S.a["section-content"]},i.a.createElement(d.a,null,i.a.createElement("div",{className:Object(s.a)(l.a["col-xs-12"],l.a["col-md-8"])},i.a.createElement(y.a,null,R["long-description"])))),i.a.createElement("div",{className:Object(s.a)(S.a.wrapper,l.a.row)},i.a.createElement(m.a,{title:_,description:V,blocks:U,contentBlock:f.a})))};C.propTypes={venueTypePage:o.a.object,venueType:o.a.object,channelCode:o.a.string,channel:o.a.object},t.default=C},401: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",
1image:"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"}},403:function(e,t,n){e.exports={"font-family-light":"TreatwellSansWeb-Light",blocks:"style-module--blocks--30789a",titleDescriptionContainer:"style-module--titleDescriptionContainer--b824fc",title:"style-module--title--ed0370",columns:"style-module--columns--9bc242"}},453:function(e,t,n){e.exports={"font-family-light":"TreatwellSansWeb-Light",wrapper:"VenueSearch-module--wrapper--16a0f7",title:"VenueSearch-module--title--94a2d6"}},454:function(e,t,n){"use strict";t.a=function(){var e=window.innerWidth;return e>=992?3:e>=520?2:1}},917:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s}));var r,o=n(167);!function(e){e.Treatment="treatment",e.Salon="salon"}(r||(r={}));const a="homepage-search-data",i=5;function c(e){if(!m(e))return null;const t=e.lastSearch;if(!m(t))return null;let n,r,o,a;try{n=p(t.treatment),r=p(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(!m(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 l(e,t=null,n=null,o=null,a=null){var l;const s=null===(l=b(e))||void 0===l?void 0:l[r.Treatment];let u={treatment:t,location:n,date:o,time:a},p=[],m=[];if(s)try{u=c(s)||u,p=s.recentTreatments.map(f).filter((e=>e.entityValue)).slice(0,i),m=s.recentLocations.map(f).slice(0,i)}catch(d){}return{lastSearch:u,recentTreatments:p,recentLocations:m}}function s(e,t,n,o,a){const{recentTreatments:i,recentLocations:c}=l(a);h(r.Treatment,{lastSearch:{treatment:p(e),location:p(t),date:n,time:o},recentTreatments:u(e,i),recentLocations:u(t,c)},a)}function u(e,t){let n;try{n=f(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,i)}function p(e){return null===e?null:f(e)}function f(e){if(!m(e)||"string"!=typeof e.entityType||"string"!=typeof e.entityValue||"string"!=typeof e.name||void 0!==e.entityId&&"string"!=typeof e.entityId)throw new TypeError(`invalid data : ${JSON.stringify(e)}`);return e}function m(e){return"object"==typeof e&&null!==e&&e.constructor===Object}const d=({entityId:e})=>void 0!==e,y=e=>{const t={...e};if(e[r.Treatment]){const n=e[r.Treatment].recentTreatments.filter(d),o=e[r.Treatment].lastSearch&&e[r.Treatment].lastSearch.treatment&&void 0!==e[r.Treatment].lastSearch.treatment.entityId?e.treatment.lastSearch.treatment:null;t[r.Treatment]={...e[r.Treatment],recentTreatments:n,lastSearch:{...e[r.Treatment].lastSearch,treatment:o}}}if(e[r.Salon]){const n=e[r.Salon].recentSalons.filter(d);t[r.Salon]={...e[r.Salon],recentSalons:n}}return o.a.local.setItem(a,JSON.stringify(t)),t};function b(e){const t=o.a.local.getItem(a);if((!t||e===t.languageCode)&&m(t))return y(t)}function h(e,t,n){o.a.local.setItem(a,JSON.stringify({...b(n),[e]:t,lastSearchTab:e,languageCode:n}))}},924:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(915),o=n(921),a=n(0),i=n(193),c=n(918),l=n(920);const s=a.forwardRef((({recentLocations:e=[],hasCurrentLocationOption:t=!1,...n},s)=>{var u;const p=a.useRef(null),f=a.useMemo((()=>Object(l.b)(200,l.a.NormalisedName)),[]);function m(){const e=n.cmsCommonControls.search["location-current-location-label"];return{...Object(r.d)({entity:{entityType:r.a.CurrentLocation,entityValue:"",name:e}}),type:r.a.CurrentLocation}}function d(){if(!e)return;const t=n.cmsCommonControls.search["recent-searches-heading"];let o;try{o=e.filter((e=>e.entityType!==r.a.CurrentLocation)).slice(0,r.b).map((e=>{if(!Object(r.c)(e.entityType))throw new Error(`unexpected entityType: ${e.entityType}`);return Object(r.d)({entity:{entityType:e.entityType,entityValue:e.entityValue,name:e.name},section:"recent"})}))}catch(a){return void console.error(a)}return{heading:t,items:o}}function y(){if(!n.popularLocations)return;return{heading:n.cmsCommonControls.search["location-popular-heading"],items:n.popularLocations.map((e=>Object(r.d)({entity:{entityType:r.a.Location,entityValue:e.normalisedName,name:e.name},section:"popular"})))}}return a.useImperativeHandle(s,(()=>({clear(){null!==p.current&&p.current.clear()},setSelectedItemKey(e){null!==p.current&&p.current.setSelectedItemKey(e)},currentLocationItem:m}))),a.createElement(c.a,{inputId:n.inputId,cmsCommonControls:n.cmsCommonControls,ref:p,icon:a.createElement(i.a,{size:24}),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(),y()]).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,isPatternedBackgroun
1d:n.isPatternedBackground})}));s.displayName="LocationSearchInput"},928:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n.n(r),a=n(455);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},929:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),o=n.n(r),a=n(4),i=n(939),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})}},934:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),o=n.n(r),a=n(15),i=n.n(a),c=n(982);var l=n(401),s=n.n(l);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 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&&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,l=t?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):void 0;return o.a.createElement("div",{className:s.a.block},o.a.createElement("a",{className:s.a.link,href:a},t?o.a.createElement(c.a,{className:s.a.image,src:t,width:l.width,height:l.height,style:{width:"100%",height:"auto",aspectRatio:"auto ".concat(l.width," / ").concat(l.height)}}):null,o.a.createElement("h3",{className:s.a.title},n),o.a.createElement("div",{className:s.a.description},r),i?o.a.createElement("span",{className:s.a.cta},i):null))}}])&&p(t.prototype,n),r&&p(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},938:function(e,t,n){e.exports={"text-large":"16px",label:"compose-module--label--edd780",searchInput:"Search-module--searchInput--e8415c",search:"Search-module--search--3a82b3"}},939:function(e,t,n){e.exports={divider:"Divider-module--divider--73f316",content:"Divider-module--content--d15b40",footnote:"Divider-module--footnote--2850c5"}},941:function(e,t,n){"use strict";var r=n(15),o=n.n(r),a=n(0),i=n.n(a),c=n(4),l=n(44),s=n(63),u=n(451),p=n.n(u),f=n(454),m=n(403),d=n.n(m),y=n(401),b=n.n(y),h=n(27);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]:{};
1t%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:"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: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(c.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.description,r=e.blocks,o=e.customBlock,a=t?i.a.createElement("h2",{className:d.a.title},t):null,c=n?i.a.createElement(l.a,{as:"p",type:"body",className:d.a.description},n):null,u=this.orderBlocks(r,o),p=this.generateColumnBlocks(u);return r&&r.length||o?i.a.createElement("section",{className:d.a.blocks},t||n?i.a.createElement(s.a,{space:"base",className:d.a.titleDescriptionContainer},a,c):null,p):null}}])&&j(t.prototype,n),r&&j(t,r),a}(i.a.PureComponent);
1P(N,"propTypes",{title:o.a.string,description: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},942:function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n(0),o=n.n(r),a=n(15),i=n.n(a),c=n(119),l=n(928),s=n(924),u=n(917),p=n(938),f=n.n(p),m=n(27);function d(e){return d="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},d(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 b(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 h(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 g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(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=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return w(e)}(this,n)}}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(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&&g(e,t)}(i,e);var t,n,r,a=v(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(w(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(w(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=Object(u.a)(null,null,null,null).recentLocations;this.setState({recentLocations:e})}},{key:"navigateToBrowsePage",value:async function(e,t){var n=await Object(c.c)({},e),r=this.context.generateUri("browse",b(b({},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(u.b)(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:f.a.searchInput},o.a.createElement(s.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(){}
1,isPatternedBackground:!0})),o.a.createElement(l.a,{disableLoading:!this.state.isValidLocationSearchInput,type:"submit",label:t("venue-search.submit"),processing:e,onClick:this.submit,fullWidth:!0}))}}])&&h(t.prototype,n),r&&h(t,r),i}(o.a.PureComponent);S(j,"propTypes",{browseUriValues:i.a.object.isRequired,popularLocations:i.a.array,onSelectedLocationChange:i.a.func,onSearchButtonClick:i.a.func}),j.contextType=m.a;var k=j,C=n(929),E=n(453),T=n.n(E);function P(e){const{title:t,typeAhead:n,children:r,browseUriValues:a,popularLocations:i,onSelectedLocationChange:c=(()=>{}),onSearchButtonClick:l=(()=>{})}=e;return o.a.createElement("div",{className:T.a.wrapper},o.a.createElement("div",{className:T.a.title},t),o.a.createElement(k,{...n,browseUriValues:a,popularLocations:i,onSelectedLocationChange:c,onSearchButtonClick:l}),r?o.a.createElement("div",null,o.a.createElement(C.a,null),r):null)}},960:function(e,t,n){"use strict";var r=n(15),o=n.n(r),a=n(0),i=n.n(a),c=n(961),l=n.n(c),s=n(451),u=n.n(s);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:l.a.wrapper},n),i.a.createElement("div",{className:l.a.newSection},i.a.createElement("div",{className:u.a.row},t)))};m.propTypes={children:o.a.node.isRequired},t.a=m},961: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"}}}]);
2//# sourceMappingURL=VenueTypePage-6cdfe9.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.