PageSourceSearch

https://www.treatwell.de/nmp/asset/QuestionPage-8bdd76.js

js treatwell.de collected 2026-10-02 06:17:47 UTC 30,640 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1007:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(1077);function r(e){return e.replace(/(&(\w+|\d+);|&#(\d+);)/g,((e,t)=>a.decodeHTML(t)))}},1076:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),o=n(471),i=n.n(o);function s(e){const{id:t,title:n,uri:a,numberOfAnswers:o,i18n:s}=e;const c=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)}}(s,o);return r.a.createElement("div",{key:t},r.a.createElement("a",{href:a,className:i.a.link},r.a.createElement("div",{className:i.a.question},n),r.a.createElement("div",{className:i.a.answers},c)))}},1214:function(e,t,n){e.exports={white:"undefined","text-smaller":"12px","text-regular":"14px","text-large":"16px",baseWrapper:"compose-module--baseWrapper--ff8a8d","bp-max-sm":"(max-width: 799px)","bp-min-md":"(min-width: 800px)",wrapper:"styles-module--wrapper--2842fd compose-module--baseWrapper--ff8a8d",title:"styles-module--title--8f53d1",treatmentLinks:"styles-module--treatmentLinks--ade35d",treatmentLinksLabel:"styles-module--treatmentLinksLabel--9f1819",treatmentLink:"styles-module--treatmentLink--2f0053",heroContent:"styles-module--heroContent--af62dd"}},1215:function(e,t,n){e.exports={"text-regular":"14px","text-large":"16px","text-larger-x":"21px","bp-min-md":"(min-width: 800px)",label:"compose-module--label--edd780",paragraph:"compose-module--paragraph--81abec",description:"QuestionDetails-module--description--d0c0a3",content:"QuestionDetails-module--content--471e3f",actions:"QuestionDetails-module--actions--66cacc compose-module--label--edd780",profile:"QuestionDetails-module--profile--e82bbf"}},1216:function(e,t,n){e.exports={"text-regular":"14px","text-large":"16px",label:"compose-module--label--edd780",paragraph:"compose-module--paragraph--81abec",comment:"Comment-module--comment--3ebb83",username:"Comment-module--username--93045b compose-module--label--edd780",content:"Comment-module--content--a981d3 compose-module--paragraph--81abec"}},1217:function(e,t,n){e.exports={"text-large":"16px",comments:"Comments-module--comments--6bc7e4",title:"Comments-module--title--0222f5"}},1218:function(e,t,n){e.exports={"text-large":"16px","text-regular":"14px","text-smaller":"12px",paragraph:"compose-module--paragraph--81abec",label:"compose-module--label--edd780",secondaryLabel:"compose-module--secondaryLabel--b1db24",answer:"Answer-module--answer--a223f7",profile:"Answer-module--profile--63a051 compose-module--label--edd780",topBadgeIcon:"Answer-module--topBadgeIcon--c0a645",topBadge:"Answer-module--topBadge--bdda2f compose-module--label--edd780",content:"Answer-module--content--eedae0 compose-module--paragraph--81abec"}},1219:function(e,t,n){e.exports={noAnswers:"NoAnswers-module--noAnswers--4b1d88"}},1220:function(e,t,n){e.exports={"bp-min-sm":"(min-width: 520px)","bp-min-md":"(min-width: 800px)",answers:"Answers-module--answers--373088",totalAnswers:"Answers-module--totalAnswers--797f80",inlineSearch:"Answers-module--inlineSearch--9c8278"}},1221:function(e,t,n){e.exports={sidebarHeader:"compose-module--sidebarHeader--283665",header:"styles-module--header--401491 compose-module--sidebarHeader--283665",cta:"styles-module--cta--1e3261"}},1225:function(e,t,n){e.exports={sidebarHeader:"compose-module--sidebarHeader--283665",header:"styles-module--header--0448c1 compose-module--sidebarHeader--283665"}},1226:function(e,t,n){e.exports={sidebar:"styles-module--sidebar--f84712"}},1227:function(e,t,n){e.exports={baseWrapper:"compose-module--baseWrapper--ff8a8d","bp-min-sm":"(min-width: 520px)","bp-max-sm":"(max-width: 799px)",wrapper:"styles-module--wrapper--a593af compose-module--baseWrapper--ff8a8d",hero:"styles-module--hero--14bd83",sidebarSearch:"styles-module--sidebarSearch--ddb4d5",heroContent:"styles-module--heroContent--d8380f",sidebar:"styles-module--sidebar--9bedc9",pageContent:"styles-module--pageContent--ae3a7b"}},1488:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),o=n(451),i=n.n(o),s=n(4),c=n(329),l=n(14),u=n.n(l),m=n(457),p=n(1214),d=n.n(p),f=function(e){var t=e.question,n=e.i18n,a=e.generateUri,o=t.treatmentCategories.filter((function(e){return e.infoPageEnabled})),c=function(e,t){var n=e.treatmentCategoryGroup||{},a=[{name:t("page.treatment-guide.title"),pageType:"treatmentGuide"}];return n.infoPageEnabled&&a.push({name:n.name,pageType:"treatmentType",uriParams:{treatmentTypeId:n.id}}),e.infoPageEnabled&&a.push({name:e.name,pageType:"treatment",uriParams:{treatmentId:e.id,normalisedName:e.normalisedName}}),a.push({name:t("page.question.questions-and-answers")}),r.a.createElement(m.a,{breadcrumbsParams:a,showIcon:!0})}(t.treatmentCategories[0],n),l=function(e,t){return e.map((function(e){return r.a.createElement("a",{href:t("treatment",{normalisedName:e.normalisedName,treatmentId:e.id}),key:e.id,className:d.a.treatmentLink},e.name)})).reduce((function(e,t){return e.concat([t,", "])}),[]).slice(0,-1)}(o,a),u=l.length?r.a.createElement("div",{className:Object(s.a)(i.a["col-md-8"],i.a["col-sm-6"],i.a["col-xs-12"])},r.a.createElement("h2",{className:d.a.treatmentLinks},r.a.createElement("span",{className:d.a.treatmentLinksLabel},n("page.question.treatment-links-label"),":\xa0"),l)):null;return r.a.createElement("div",{className:Object(s.a)(d.a.wrapper,i.a.row)},r.a.createElement("div",{className:Object(s.a)(i.a["col-xs-12"],d.a.heroContent)},r.a.createElement("div",{className:Object(s.a)(d.a.wrapper,i.a.row)},r.a.createElement("div",{className:Object(s.a)(i.a["col-xs-12"])},c),r.a.createElement("div",{className:Object(s.a)(i.a["col-xs-12"])},r.a.createElement("h1",{className:d.a.title},t.title)),u)))};f.propTypes={question:u.a.object,i18n:u.a.func,generateUri:u.a.func};var b=f,h=n(1215),y=n.n(h),g=function(e){var t=e.question,n=e.i18n,a=t.content||"";return r.a.createElement("div",{className:y.a.description},r.a.createElement("div",{className:y.a.content,dangerouslySetInnerHTML:{__html:a.replace(/(<br \/>){2,}/g,"<br />")}}),r.a.createElement("div",{className:y.a.actions},r.a.createElement("div",{className:y.a.profile},n("page.question.author-profile-template",t.profile.displayName))))};g.propTypes={question:u.a.object,i18n:u.a.func,generateUri:u.a.func};var v=g,w=n(945),E=function(e){var t=e.treatment,n=e.i18n,a=e.popularLocations;if(!t)return null;var o={offerResultType:"local",treatments:t.normalisedName};return r.a.createElement(w.a,{title:n("venue-search.title").replace("{entity-type}",t.name),typeAhead:{treatmentIds:t.id},browseUriValues:o,popularLocations:a})};E.propTypes={treatment:u.a.object,i18n:u.a.func,popularLocations:u.a.array};var O=E,S=n(1216),x=n.n(S),N=function(e){var t=e.comment,n=t.content||"";return r.a.createElement("div",{className:x.a.comment},r.a.createElement("div",{className:x.a.username},t.profile.displayName),r.a.createElement("div",{className:x.a.content,dangerouslySetInnerHTML:{__html:n.replace(/(<br \/>){2,}/g,"<br />")}}))};N.propTypes={comment:u.a.object.isRequired};var j=N,T=n(1217),C=n.n(T),L=function(e){var t=e.comments,n=e.i18n;return t&&t.length?r.a.createElement("div",{className:C.a.comments},r.a.createElement("h3",{className:C.a.title},n("page.question.answers.comments")),t.map((function(e){return r.a.createElement(j,{key:e.id,comment:e})}))):null};L.propTypes={comments:u.a.array,i18n:u.a.func};var k=L,P=n(1218),I=n.n(P),q=function(e){var t=e.answer,n=e.isTop,a=e.i18n,o=n?r.a.createElement("div",{className:I.a.topBadge},r.a.createElement("div",{className:I.a.topBadgeIcon}),a("page.question.answers.top-answer")):null,i=t.content||"";return r.a.createElement("div",{className:I.a.answer},r.a.createElement("div",{className:I.a.profile},o,t.profile.displayName),r.a.createElement("div",{className:I.a.content,dangerouslySetInnerHTML:{__html:i.replace(/(<br \/>){2,}/g,"<br />")}}),r.a.createElement(k,{comments:t.answerResponse,i18n:a}))};q.propTypes={answer:u.a.object,isTop:u.a.bool,i18n:u.a.func,generateUri:u.a.func};var A=q,U=n(1219),R=n.n(U),D=function(e){var t=e.message;return r.a.createElement("div",{className:R.a.noAnswers},t)};D.propTypes={message:u.a.string};var _=D,B=n(1220),V=n.n(B),M=function(e){var t=e.answers,n=e.children,a=e.i18n,o=e.generateUri;if(!t||!t.length)return r.a.createElement("div",{className:V.a.answers},r.a.createElement(_,{message:a("page.question.answers.no-answers")}));var i=t[0],s=t.slice(1)||[],c=t.length>1?a("page.question.answers.total-plural",t.length):a("page.question.answers.total",t.length);return r.a.createElement("div",{className:V.a.answers},r.a.createElement("h2",{className:V.a.totalAnswers},c),r.a.createElement(A,{isTop:i.netRating>0,answer:i,generateUri:o,i18n:a}),r.a.createElement("div",{className:V.a.inlineSearch},n),s.map((function(e){return r.a.createElement(A,{key:e.id,answer:e,generateUri:o,i18n:a})})))};M.propTypes={answers:u.a.array,children:u.a.object,i18n:u.a.func,generateUri:u.a.func};
1var H=M,F=n(937),W=n(1076),Q=n(1221),J=n.n(Q);function z(){return z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},z.apply(this,arguments)}var K=function(e){var t=e.i18n,n=e.ctaUri,a=e.questions;return a&&0!==a.length?r.a.createElement("div",{className:J.a.relatedQuestions},r.a.createElement("h4",{className:J.a.header},t("page.question.related-questions")),a.map((function(e){return r.a.createElement(W.a,z({},e,{key:e.id,i18n:t}))})),r.a.createElement("a",{href:n,className:J.a.cta},t("page.question.show-all-questions"))):null};K.propTypes={i18n:u.a.func,questions:u.a.array,treatmentUri:u.a.string,ctaUri:u.a.string};var $=K,G=n(1007),X=n(1225),Y=n.n(X),Z=function(e){var t=e.treatmentFiles,n=e.headerText;if(!t||0===t.length)return null;var a=t.map((function(e,t){return r.a.createElement(F.a,{key:t,imageUri:e.imageUrl,title:e.title,description:Object(G.a)(e.description),uri:e.link})})).slice(0,2);return r.a.createElement("div",{className:Y.a.treatmentFilesSlots},r.a.createElement("h4",{className:Y.a.header},n),a)};Z.propTypes={treatmentFiles:u.a.array,headerText:u.a.string};var ee=Z,te=n(1226),ne=n.n(te),ae=function(e){var t=e.generateUri,n=e.i18n,a=e.question,o=e.treatmentDescription,i=e.treatmentFiles,s=a.treatmentCategories[0],c=s.infoPageEnabled,l=s.name,u=s.normalisedName,m=s.image,p=Object.values(m.uris||{})[0],d=t("treatment",{normalisedName:u}),f="".concat(d,"#questions");return r.a.createElement("div",{className:ne.a.sidebar},c?r.a.createElement(F.a,{imageUri:p,title:l,description:o,uri:d,ctaText:n("page.question.treatment-guide-cta")}):null,r.a.createElement(ee,{treatmentFiles:i,headerText:n("page.question.treatment-files-header")}),c?r.a.createElement($,{questions:a.relatedQuestions,ctaUri:f,i18n:n}):null)};ae.propTypes={i18n:u.a.func,generateUri:u.a.func,question:u.a.object,treatmentDescription:u.a.string,treatmentFiles:u.a.array};var re=ae,oe=n(1227),ie=n.n(oe),se=n(27);t.default=function(){Object(c.c)();var e=r.a.useContext(se.a),t=e.pageData,n=e.i18n,a=e.generateUri,o=t.question.question,l=o.answers,u=o.treatmentCategories[0],m=t.cms.page.treatment[u.id],p=t.question.treatmentTypesInspirationArticles||t.question.treatmentInspirationArticles||null,d=t.popularLocations,f=r.a.createElement(O,{i18n:n,treatment:u,popularLocations:d});return r.a.createElement("div",{className:ie.a.page},r.a.createElement("div",{className:Object(s.a)(ie.a.hero)},r.a.createElement(b,{question:o,i18n:n,generateUri:a})),r.a.createElement("div",{className:Object(s.a)(ie.a.wrapper,i.a.row)},r.a.createElement("div",{className:Object(s.a)(ie.a.pageContent,i.a["col-xs-12"])},r.a.createElement("div",{className:Object(s.a)(ie.a.wrapper,i.a.row)},r.a.createElement("div",{className:Object(s.a)(i.a["col-md-8"],i.a["col-sm-6"],i.a["col-xs-12"])},r.a.createElement(v,{question:o,i18n:n,generateUri:a}),r.a.createElement(H,{answers:l,i18n:n,generateUri:a},f)),r.a.createElement("div",{className:Object(s.a)(i.a["col-md-4"],i.a["col-sm-6"],i.a["col-xs-12"],ie.a.sidebar)},r.a.createElement("div",{className:ie.a.sidebarSearch},f),r.a.createElement(re,{question:o,treatmentDescription:m.description,treatmentFiles:p,i18n:n,generateUri:a}))))))}},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",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"}},453:function(e,t,n){e.exports={"font-family-light":"TreatwellSansWeb-Light",wrapper:"VenueSearch-module--wrapper--16a0f7",title:"VenueSearch-module--title--94a2d6"}},471: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"}},919:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var a,r=n(167);!function(e){e.Treatment="treatment",e.Salon="salon"}(a||(a={}));const o="homepage-search-data",i=5;function s(e){if(!d(e))return null;const t=e.lastSearch;if(!d(t))return null;let n,a,r,o;try{n=m(t.treatment),a=m(t.location),r=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(!d(e))return null;if("string"!=typeof e.from||"string"!=typeof e.to)return null;return e}(t.time)}
1catch(i){return null}return{treatment:n,location:a,date:r,time:o}}function c(e,t=null,n=null,r=null,o=null){var c;const l=null===(c=h(e))||void 0===c?void 0:c[a.Treatment];let u={treatment:t,location:n,date:r,time:o},m=[],d=[];if(l)try{u=s(l)||u,m=l.recentTreatments.map(p).filter((e=>e.entityValue)).slice(0,i),d=l.recentLocations.map(p).slice(0,i)}catch(f){}return{lastSearch:u,recentTreatments:m,recentLocations:d}}function l(e,t,n,r,o){const{recentTreatments:i,recentLocations:s}=c(o);y(a.Treatment,{lastSearch:{treatment:m(e),location:m(t),date:n,time:r},recentTreatments:u(e,i),recentLocations:u(t,s)},o)}function u(e,t){let n;try{n=p(e)}catch(a){return t}return[n,...t.filter((e=>{return a=e,!((t=n).name===a.name||t.entityType===a.entityType&&t.entityValue===a.entityValue);var t,a}))].slice(0,i)}function m(e){return null===e?null:p(e)}function p(e){if(!d(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 d(e){return"object"==typeof e&&null!==e&&e.constructor===Object}const f=({entityId:e})=>void 0!==e,b=e=>{const t={...e};if(e[a.Treatment]){const n=e[a.Treatment].recentTreatments.filter(f),r=e[a.Treatment].lastSearch&&e[a.Treatment].lastSearch.treatment&&void 0!==e[a.Treatment].lastSearch.treatment.entityId?e.treatment.lastSearch.treatment:null;t[a.Treatment]={...e[a.Treatment],recentTreatments:n,lastSearch:{...e[a.Treatment].lastSearch,treatment:r}}}if(e[a.Salon]){const n=e[a.Salon].recentSalons.filter(f);t[a.Salon]={...e[a.Salon],recentSalons:n}}return r.a.local.setItem(o,JSON.stringify(t)),t};function h(e){const t=r.a.local.getItem(o);if((!t||e===t.languageCode)&&d(t))return b(t)}function y(e,t,n){r.a.local.setItem(o,JSON.stringify({...h(n),[e]:t,lastSearchTab:e,languageCode:n}))}},926:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(915),r=n(923),o=n(0),i=n(193),s=n(920),c=n(922);const l=o.forwardRef((({recentLocations:e=[],hasCurrentLocationOption:t=!1,...n},l)=>{var u;const m=o.useRef(null),p=o.useMemo((()=>Object(c.b)(200,c.a.NormalisedName)),[]);function d(){const e=n.cmsCommonControls.search["location-current-location-label"];return{...Object(a.d)({entity:{entityType:a.a.CurrentLocation,entityValue:"",name:e}}),type:a.a.CurrentLocation}}function f(){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)({entity:{entityType:e.entityType,entityValue:e.entityValue,name:e.name},section:"recent"})}))}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)({entity:{entityType:a.a.Location,entityValue:e.normalisedName,name:e.name},section:"popular"})))}}return o.useImperativeHandle(l,(()=>({clear(){null!==m.current&&m.current.clear()},setSelectedItemKey(e){null!==m.current&&m.current.setSelectedItemKey(e)},currentLocationItem:d}))),o.createElement(s.a,{inputId:n.inputId,cmsCommonControls:n.cmsCommonControls,ref:m,icon:o.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(r.a)([f(),b()]).filter((e=>e.items.length>0)),dataAlwaysInDropdown:t?[{items:[d()]}]: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})}));l.displayName="LocationSearchInput"},930:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n.n(a),o=n(455);class i extends r.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 r.a.createElement(o.a,{...this.props,onClick:this.onClick,loading:this.state.loading})}}i.defaultProps=o.a.defaultProps},931:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),o=n(4),i=n(942),s=n.n(i);function c(e){const{inContent:t,footnote:n}=e,a=Object(o.a)(s.a.divider,{[s.a.content]:t,[s.a.footnote]:n});return r.a.createElement("hr",{className:a})}},937:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),o=n(14),i=n.n(o),s=n(985);var c=n(401),l=n.n(c);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 a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}
1function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(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,a=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(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&&p(e,t)}(i,e);var t,n,a,o=d(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,a=e.description,o=e.uri,i=e.ctaText,c=t?function(e){var t,n;const a=Number(null===(t=e.match(/w\d+/g))||void 0===t?void 0:t[0].substring(1)),r=Number(null===(n=e.match(/h\d+/g))||void 0===n?void 0:n[0].substring(1));return{width:Number.isNaN(a)?void 0:a,height:Number.isNaN(r)?void 0:r}}(t):void 0;return r.a.createElement("div",{className:l.a.block},r.a.createElement("a",{className:l.a.link,href:o},t?r.a.createElement(s.a,{className:l.a.image,src:t,width:c.width,height:c.height,style:{width:"100%",height:"auto",aspectRatio:"auto ".concat(c.width," / ").concat(c.height)}}):null,r.a.createElement("h3",{className:l.a.title},n),r.a.createElement("div",{className:l.a.description},a),i?r.a.createElement("span",{className:l.a.cta},i):null))}}])&&m(t.prototype,n),a&&m(t,a),i}(a.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},941:function(e,t,n){e.exports={"text-large":"16px",label:"compose-module--label--edd780",searchInput:"Search-module--searchInput--e8415c",search:"Search-module--search--3a82b3"}},942:function(e,t,n){e.exports={divider:"Divider-module--divider--73f316",content:"Divider-module--content--d15b40",footnote:"Divider-module--footnote--2850c5"}},945:function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var a=n(0),r=n.n(a),o=n(14),i=n.n(o),s=n(119),c=n(930),l=n(926),u=n(919),m=n(941),p=n.n(m),d=n(27);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 b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}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,a=E(e);if(t){var r=E(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return function(e,t){if(t&&("object"===f(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}
1function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=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,a,o=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),O(w(t=o.call(this,e)),"onLocationSearchInputChange",(function(e,n,a,r){var o=t.props.onSelectedLocationChange,i=void 0===o?function(){}:o;a&&t.setState({location:a,isValidLocationSearchInput:!0}),n&&i(a.name,r)})),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(s.c)({},e),a=this.context.generateUri("browse",h(h({},n),t));this.setState({processing:!1}),a&&(window.location=a)}},{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,a=this.props.browseUriValues;if(a.offerResultType&&(a.offerResultType=a.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,a),t("success")}}},{key:"render",value:function(){var e=this.state.processing,t=this.context.i18n;return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:p.a.searchInput},r.a.createElement(l.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})),r.a.createElement(c.a,{disableLoading:!this.state.isValidLocationSearchInput,type:"submit",label:t("venue-search.submit"),processing:e,onClick:this.submit,fullWidth:!0}))}}])&&y(t.prototype,n),a&&y(t,a),i}(r.a.PureComponent);O(S,"propTypes",{browseUriValues:i.a.object.isRequired,popularLocations:i.a.array,onSelectedLocationChange:i.a.func,onSearchButtonClick:i.a.func}),S.contextType=d.a;var x=S,N=n(931),j=n(453),T=n.n(j);function C(e){const{title:t,typeAhead:n,children:a,browseUriValues:o,popularLocations:i,onSelectedLocationChange:s=(()=>{}),onSearchButtonClick:c=(()=>{})}=e;return r.a.createElement("div",{className:T.a.wrapper},r.a.createElement("div",{className:T.a.title},t),r.a.createElement(x,{...n,browseUriValues:o,popularLocations:i,onSelectedLocationChange:s,onSearchButtonClick:c}),a?r.a.createElement("div",null,r.a.createElement(N.a,null),a):null)}},985:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(1),r=n(0),o=n(4),i={image:"LazyImage-module_image__1XBWH",loaded:"LazyImage-module_loaded__woKr7"};function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,r=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(a=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(c){r=!0,o=c}finally{try{a||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(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 u(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function m(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p(e){var t,n,u=e.rootMargin,p=void 0===u?"50px":u,d=e.scrollMargin,f=e.threshold,b=e.src,h=e.srcSet,y=e.className,g=m(e,["rootMargin","scrollMargin","threshold","src","srcSet","className"]),v=r.useRef(void 0),w=r.useRef(new Map),E=r.useRef(null),O=l(r.useState(!1),2),S=O[0],x=O[1],N=l(r.useState(!1),2),j=N[0],T=N[1];function C(e){e.forEach((function(e){var t,n=e.target;if(w.current&&w.current.has(n)){var a=w.current.get(n);a&&(e.isIntersecting||e.intersectionRatio>0)&&(null===(t=v.current)||void 0===t||t.unobserve(e.target),w.current.delete(n),a())}}))}function L(){T(!0)}return t=E,n=function(){x(!0)},r.useEffect((function(){var e,a=t.current;if(a){var r=(void 0===v.current&&(v.current=new IntersectionObserver(C,{rootMargin:p,scrollMargin:d,threshold:f})),v);w.current.set(a,n),null===(e=r.current)||void 0===e||e.observe(a)}return function(){var e;a&&(w.current.delete(a),null===(e=v.current)||void 0===e||e.unobserve(a))}}),[n,t]),r.useEffect((function(){var e=E.current;return e&&e.addEventListener("load",L),function(){e&&e.removeEventListener("load",L)}}),[]),Object(a.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ref:E,src:S?b:void 0,srcSet:S?h:void 0,className:Object(o.a)(y,i.image,c({},i.loaded,j))},g))}}}]);
2//# sourceMappingURL=QuestionPage-8bdd76.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.