1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8267],{5615:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(60072);let l=e=>{let{isGG:t,className:n}=e;return(0,a.jsx)("svg",{width:"14",height:"20",viewBox:"0 0 14 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%"},className:n,children:(0,a.jsx)("path",{d:"M7 0C3.13 0 0 3.13 0 7C0 11.2076 4.49633 17.0211 6.28176 19.1637C6.66099 19.6188 7.339 19.6188 7.71824 19.1637C9.50367 17.0211 14 11.2076 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z",fill:t?"white":"#222E39"})})}},13305:(e,t,n)=>{n.d(t,{J:()=>u,X:()=>x});var a=n(60072),l=n(60004),i=n(4493),r=n(94122),o=n(34768),s=n(68316),d=n(35447);let u=(0,l.createContext)({}),c="woos-3cb8caa3-ad4d-3e7b-b7d6-221a7b72398d";class b{static getInstance(){return b.instance||(b.instance=new b),b.instance}subscribe(e){return this.subscribers.add(e),this.scriptLoaded&&e(!0),()=>this.subscribers.delete(e)}async loadScript(){return this.scriptLoaded?Promise.resolve():(this.loadingPromise||(this.loadingPromise=new Promise(e=>{var t,n;if(null==(n=window)||null==(t=n.woosmap)?void 0:t.multisearch){this.scriptLoaded=!0,this.notifySubscribers(),e();return}if(document.querySelector('script[src*="woosmap.com/multisearch/multisearch.js"]')){let t=()=>{var n,a;(null==(a=window)||null==(n=a.woosmap)?void 0:n.multisearch)?(this.scriptLoaded=!0,this.notifySubscribers(),e()):setTimeout(t,100)};t();return}let a=document.createElement("script");a.src="https://sdk.woosmap.com/multisearch/multisearch.js",a.id="woosmap-multisearch-location-grid",a.onload=()=>{this.scriptLoaded=!0,this.notifySubscribers(),e()},a.onerror=()=>{console.error("Failed to load Woosmap multisearch script"),this.loadingPromise=null,e()},document.body.appendChild(a)})),this.loadingPromise)}notifySubscribers(){this.subscribers.forEach(e=>e(this.scriptLoaded))}isLoaded(){return this.scriptLoaded}constructor(){this.scriptLoaded=!1,this.loadingPromise=null,this.subscribers=new Set}}async function p(e){try{let t=await fetch("/api/campaign?campaignId=".concat(e));if(200!==t.status)return null;return await t.json()}catch(e){throw console.error(e),Error(e)}}let f=async(e,t)=>{try{let n=await fetch("/api/store-search?lat=".concat(e,"&lng=").concat(t,"&mincount=1&radius=30000"));if(200!==n.status)return{studios:[]};return{studios:await n.json()||[]}}catch(e){throw console.error(e),Error(e)}},x=e=>{let{children:t}=e,{brand:n,preview:x,isMF:h}=(0,l.useContext)(r._0),{region:g,language:m}=(0,i.FW4)(),[v,S]=(0,l.useReducer)(o.gC,o.ue),_=(0,l.useRef)(null),[O,w]=(0,l.useState)(!1),k=(0,l.useCallback)(e=>{S({type:o.kl.SET_SELECTED_STUDIO,payload:e})},[]);(0,l.useEffect)(()=>{let e=b.getInstance(),t=e.subscribe(e=>{w(e)});return e.loadScript(),t},[]),(0,l.useEffect)(()=>{var e,t,n,a;if(!O||!(null==(t=window)||null==(e=t.woosmap)?void 0:e.multisearch))return;let l="en"===g?"de":g;_.current=null==(a=window)||null==(n=a.woosmap)?void 0:n.multisearch({apiOrder:["localities","address"],localities:{key:c,params:{language:m,components:{country:[l]},types:["address","locality","postal_code"]}},address:{key:c,params:{language:m,components:{country:[l]}}}})},[O,m,g]);let{data:y,isLoading:T}=(0,d.I)({queryKey:["Studios",{region:g}],queryFn:async()=>await (await fetch("/api/studios?preview=".concat(x,"®ion=").concat(g))).json(),refetchOnWindowFocus:!1,refetchOnMount:!1});return(0,l.useEffect)(()=>{var e,t;if(!v.selectedLocation)return;let n=(0,i.sg1)(async e=>{let{lat:t,lng:n}=e;S({type:o.kl.FETCH_LOCATIONS});let{studios:a}=await f(t,n);if(h){let e=async()=>a.map(e=>{let t=null==y?void 0:y.find(t=>t.id===e.id),n=!0===e.isMFKlub||(0,s.Ay)("",t,{});return{...e,isMFKlub:n}});a=await e()}if(v.isCampaignMode){let e=await p(v.campaignId);a=a.filter(t=>null==e?void 0:e.some(e=>e.id===t.id))}S({type:o.kl.SET_STUDIO_SUGGESTIONS,payload:a.slice(0,25)})},500),a=(0,i.sg1)(async e=>{n((await _.current.detailsMulti({api:"address",id:e.public_id})).geometry.location)},500);(null==(e=v.selectedLocation)?void 0:e.location)?n(v.selectedLocation.location):(null==(t=v.selectedLocation)?void 0:t.public_id)&&a(v.selectedLocation)},[n,v.campaignId,v.isCampaignMode,null==v?void 0:v.selectedLocation,_,y]),(0,a.jsx)(u.Provider,{value:{msInstance:_,state:v,allStudios:y,dispatch:S,onStudioSelect:k,clearStudioSuggestions:()=>S({type:o.kl.CLEAR_STUDIO_SUGGESTIONS})},children:t})}},17468:(e,t,n)=>{n.d(t,{l:()=>o});var a=n(60004),l=n(56645),i=n(94122),r=n(4493);let o=e=>{let{variant:t,primary:n,secondary:o,tertiary:s,noOutline:d}=e,{isGG:u,isJR:c,isMF:b}=(0,a.useContext)(i._0),p=(0,r.G9c)(),f=(0,l.A)(p&&"bg-klub-teal-500 text-klub-teal-100 klub-button\n border-2 border-transparent\n hover:bg-klub-teal-400 hover:text-klub-teal-700\n active:bg-klub-teal-600 active:text-klub-teal-100\n data-[pressed]:bg-klub-teal-600 data-[pressed]:text-klub-teal-100\n group-active:bg-klub-teal-600 group-active:text-klub-teal-100\n focus:outline-none focus-visible:outline-none\n focus-visible:ring-2 focus-visible:ring-klub-teal-400 focus-visible:ring-offset-2 focus-visible:ring-offset-klub-neutral-100\n disabled:bg-klub-neutral-300 disabled:text-klub-neutral-600 disabled:opacity-100\n aria-disabled:bg-klub-neutral-300 aria-disabled:text-klub-neutral-600 aria-disabled:opacity-100 aria-disabled:pointer-events-none\n transition-colors duration-200"),x=(0,l.A)(p&&"bg-transparent text-klub-teal-500 klub-button\n border-2 border-klub-teal-500\n hover:bg-klub-teal-100\n active:bg-klub-teal-200 active:border-klub-teal-600 active:text-klub-teal-600\n data-[pressed]:bg-klub-teal-200 data-[pressed]:border-klub-teal-600 data-[pressed]:text-klub-teal-600\n group-active:bg-klub-teal-200 group-active:border-klub-teal-600 group-active:text-klub-teal-600\n focus:outline-none focus-visible:outline-none\n focus-visible:ring-2 focus-visible:ring-klub-teal-400 focus-visible:ring-offset-2 focus-visible:ring-offset-klub-neutral-100\n disabled:bg-klub-neutral-200 disabled:text-klub-neutral-600 disabled:border-klub-neutral-600 disabled:opacity-100\n aria-disabled:bg-klub-neutral-200 aria-disabled:text-klub-neutral-600 aria-disabled:border-klub-neutral-600 aria-disabled:opacity-100 aria-disabled:pointer-events-none\n transition-colors duration-200"),h=(0,l.A)(p&&"bg-klub-teal-100 text-klub-teal-500 klub-button\n border-2 border-transparent\n hover:bg-klub-teal-200\n active:bg-klub-teal-400 active:text-klub-teal-600\n data-[pressed]:bg-klub-teal-400 data-[pressed]:text-klub-teal-600\n group-active:bg-klub-teal-400 group-active:text-klub-teal-600\n focus:outline-none focus-visible:outline-none\n focus-visible:ring-2 focus-visible:ring-klub-teal-400 focus-visible:ring-offset-2 focus-visible:ring-offset-klub-teal-700\n disabled:bg-klub-neutral-300 disabled:text-klub-neutral-600 disabled:opacity-100\n aria-disabled:bg-klub-neutral-300 aria-disabled:text-klub-neutral-600 aria-disabled:opacity-100 aria-disabled:pointer-events-none\n transition-colors duration-200"),g=(0,l.A)(p&&"bg-klub-teal-500 text-klub-teal-100 klub-button\n border-2 border-klub-teal-100\n hover:bg-klub-teal-400 hover:border-klub-teal-100\n active:bg-klub-teal-600 active:border-klub-teal-100\n data-[pressed]:bg-klub-teal-600 data-[pressed]:border-klub-teal-100\n group-active:bg-klub-teal-600 group-active:border-klub-teal-100\n focus:outline-none focus-visible:outline-none\n focus-visible:ring-2 focus-visible:ring-klub-teal-400 focus-visible:ring-offset-2 focus-visible:ring-offset-klub-teal-700\n disabled:bg-klub-neutral-500 disabled:text-klub-neutral-200 disabled:border-transparent disabled:opacity-100\n aria-disabled:bg-klub-neutral-500 aria-disabled:text-klub-neutral-200 aria-disabled:border-transparent aria-disabled:opacity-100 aria-disabled:pointer-events-none\n transition-colors duration-200"),m=(0,l.A)(p?f:(0,l.A)(u&&"py-3.5\n text-black active:text-black hover:text-ci-yellow\n bg-ci-yellow active:bg-ci-yellow hover:bg-black\n border-2 border-ci-yellow hover:border-black active:border-ci-yellow",c&&"bg-ci-pink \n text-white hover:text-black active:text-black\n ease-[cubic-bezier(0.33, 1, 0.68, 1)]\n active:shadow-ctaPrimaryActiveShadow\n border-2 border-ci-pink \n before:content-['']\n before:w-full before:h-full before:absolute before:top-0 before:left-0\n before:border-ci-pink before:border-2 before:translate-y-2 before:-translate-x-2\n before:transition-transform before:duration-200 before:ease-[cubic-bezier(0.33, 1, 0.68, 1)]\n hover:before:translate-x-0 hover:before:translate-y-0\n active:before:translate-x-0 active:before:translate-y-0\n ",c&&d&&"before:hidden",b&&"bg-graphite text-white\n border-3 border-transparent \n hover:bg-white hover:text-graphite hover:border-graphite\n focus:outline-none focus:[border-radius:0] focu
1s:border-white focus:ring-6 focus:ring-blue-focus\n focus:hover:bg-white focus:hover:text-graphite focus:hover:border-graphite\n disabled:bg-graphite disabled:text-white disabled:opacity-60\n transition-all duration-200")),v=(0,l.A)(p?g:b&&"bg-white text-black-500\n border-3 border-transparent \n hover:bg-graphite hover:text-white hover:border-white\n focus:outline-none focus:[border-radius:0] focus:bg-gray9 focus:border-white focus:ring-8 focus:ring-yellow-focus\n focus:box-shadow-[0_0_0_3px_#000]\n focus:ring-offset-[3px] focus:ring-offset-black\n focus:hover:bg-graphite focus:hover:text-white focus:hover:border-white\n disabled:bg-[#E0E0E0] disabled:text-[#999999] disabled:border-transparent disabled:opacity-50\n transition-all duration-200"),S=(0,l.A)(p?x:b&&"bg-transparent text-graphite\n border-3 border-graphite \n hover:bg-white hover:text-graphite hover:border-graphite\n focus:outline-none focus:[border-radius:0] focus:bg-white focus:border-graphite focus:ring-8 focus:ring-blue-focus \n focus:ring-offset-[3px] focus:ring-offset-white\n focus:hover:bg-white focus:hover:text-graphite focus:hover:border-graphite\n disabled:bg-[#E0E0E0] disabled:text-[#999999] disabled:border-transparent disabled:opacity-50\n transition-all duration-200"),_=(0,l.A)(p?x:(0,l.A)(u&&"py-3.5\n text-ci-yellow active:text-black hover:text-black\n bg-black bg-opacity-25 active:bg-ci-yellow hover:bg-ci-yellow\n border-2 border-ci-yellow",c&&"bg-transparent text-graphite\n border-2 border-black \n hover:border-ci-pink\n hover:text-ci-pink\n active:border-ci-pink\n active:text-ci-pink\n ease-[cubic-bezier(0.33, 1, 0.68, 1)] transition-all\n disabled:border-graphite",b&&"bg-white text-graphite\n border-3 border-graphite \n hover:bg-graphite hover:text-white hover:border-graphite\n focus:outline-none focus:[border-radius:0] focu
1s:bg-white focus:border-graphite focus:ring-8 focus:ring-blue-focus \n focus:ring-offset-[3px] focus:ring-offset-white\n disabled:bg-[#E0E0E0] disabled:text-[#999999] disabled:border-transparent disabled:opacity-50\n transition-all duration-200")),O=(0,l.A)(p?h:u&&"py-4\n text-white active:text-white hover:text-black\n bg-black active:bg-black hover:bg-ci-yellow"),w={primary:m,primaryWhite:v,secondary:_,secondaryWhite:S,tertiary:p?h:b||c?S:O,inverse:g,inverseFilled:h};return t?w[Array.isArray(t)?t[0]:t]||w.primary:n?w.primary:o?w.secondary:s?w.tertiary:w.primary}},23026:(e,t,n)=>{n.d(t,{z:()=>o});var a=n(94122),l=n(4493),i=n(56645),r=n(60004);let o=e=>{let{disabled:t,noOutline:n,jrCheckout:o}=e,{isGG:s,isJR:d,isMF:u}=(0,r.useContext)(a._0),c=(0,l.G9c)();return(0,i.A)("text-center\n duration-250\n ease-in-out\n disabled:hover:none\n disabled:pointer-events-none",s&&"active:shadow-activeShadow\n font-sofia-sans-extra-condensed\n font-bold\n text-[1.3rem]\n leading-6.5\n tracking-0.125\n uppercase",d&&"relative\n leading-5\n ".concat(o?"text-[16px]":"text-xl","\n ").concat(o?"":"tracking-0.125","\n ").concat(o?"px-14":"px-3","\n font-bold\n pt-[1.063rem]\n pb-[0.938rem]\n uppercase"),c&&"font-montserrat\n min-h-[44px]\n py-3\n px-6\n klub-button\n aria-disabled:pointer-events-none",u&&!c&&"font-montserrat\n py-3 \n px-14\n font-bold \n text-[16px] \n leading-5\n disabled:opacity-20",!u&&t&&"disabled:opacity-50",n&&"no-outline")}},34768:(e,t,n)=>{n.d(t,{gC:()=>i,kl:()=>a,ue:()=>l});let a={FETCH_LOCATIONS:"FETCH_LOCATIONS",fetchLocationsSuccess:"FETCH_LOCATIONS_SUCCESS",fetchLocationsError:"FETCH_LOCATIONS_ERROR",CLEAR_STUDIO_SUGGESTIONS:"CLEAR_STUDIO_SUGGESTIONS",CLEAR_INPUT_VALUE:"CLEAR_INPUT_VALUE",SET_SELECTED_STUDIO:"SET_SELECTED_STUDIO",SET_CLOSEST_STUDIO:"SET_CLOSEST_STUDIO",NO_STUDIO_FOUND:"NO_STUDIO_FOUND",SET_SELECTED_LOCATION:"SET_SELECTED_LOCATION",SET_STUDIO_SUGGESTIONS:"SET_STUDIO_SUGGESTIONS",SET_INPUT_VALUE:"SET_INPUT_VALUE",FOCUS_INPUT:"FOCUS_INPUT",BLUR_INPUT:"BLUR_INPUT",ENABLE_CAMPAIGN_MODE:"ENABLE_CAMPAIGN_MODE",SET_LOCATION_SUGGESTIONS:"SET_LOCATION_SUGGESTIONS",CLEAR_LOCATION_SUGGESTIONS:"CLEAR_LOCATION_SUGGESTIONS",FETCH_STUDIOS:"FETCH_STUDIOS",NO_LOCATION_FOUND:"NO_LOCATION_FOUND",FOCUS_STUDIO_BUTTON:"FOCUS_STUDIO_BUTTON",BLUR_STUDIO_BUTTON:"BLUR_STUDIO_BUTTON",CLEAR_SELECTED_STUDIO:"CLEAR_SELECTED_STUDIO",CLOSE_ALL_DROPDOWNS:"CLOSE_ALL_DROPDOWNS",CLOSE_STUDIO_FLYOUT:"CLOSE_STUDIO_FLYOUT",CLOSE_LOCATION_DROPDOWN:"CLOSE_LOCATION_DROPDOWN"},l={closestStudio:null,selectedStudio:null,hideSelectedStudio:!1,studioSuggestions:[],locationInputHasFocus:!1,noStudioFound:!1,isMultisearchLoaded:!1,selectedLocation:null,isFetching:!1,inputValue:"",isCampaignMode:!1,campaignId:null,locationSuggestions:[],noLocationFound:!1,studioButtonHasFocus:!1,studioFlyoutOpen:!1,locationDropdownOpen:!1},i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.CLEAR_LOCATION_SUGGESTIONS:return{...e,locationSuggestions:[]};case a.CLEAR_STUDIO_SUGGESTIONS:return{...e,studioSuggestions:[]};case a.CLEAR_INPUT_VALUE:return{...e,inputValue:"",studioSuggestions:[],selectedStudio:null};case a.SET_SELECTED_STUDIO:return{...e,selectedStudio:t.payload};case a.CLEAR_SELECTED_STUDIO:return{...e,selectedStudio:null};case a.SET_CLOSEST_STUDIO:return{...e,closestStudio:t.payload};case a.NO_LOCATION_FOUND:return{...e,noLocationFound:!0,isFetching:!1,locationSuggestions:[],selectedLocation:null};case a.NO_STUDIO_FOUND:return{...e,noStudioFound:!0,isFetching:!1,studioSuggestions:[]};case a.SET_SELECTED_LOCATION:return{...e,selectedLocation:t.payload,noStudioFound:!1,isFetching:!1};case a.FETCH_LOCATIONS:case a.FETCH_STUDIOS:return{...e,isFetching:!0};case a.SET_LOCATION_SUGGESTIONS:return{...e,locationSuggestions:t.payload,isFetching:!1};case a.SET_STUDIO_SUGGESTIONS:return{...e,studioSuggestions:t.payload,isFetching:!1};case a.SET_INPUT_VALUE:return{...e,inputValue:t.payload};case a.FOCUS_INPUT:return{...e,locationInputHasFocus:!0,locationDropdownOpen:!0,hideSelectedStudio:!0,selectedLocation:null,selectedStudio:null,studioFlyoutOpen:!1,studioButtonHasFocus:!1};case a.FOCUS_STUDIO_BUTTON:return{...e,studioButtonHasFocus:!0,studioFlyoutOpen:!0,selectedStudio:null,locationDropdownOpen:!1,locationInputHasFocus:!1};case a.BLUR_INPUT:return{...e,locationInputHasFocus:!1,locationDropdownOpen:!1,hideSelectedStudio:!1,noStudioFound:!1};case a.BLUR_STUDIO_BUTTON:return{...e,studioButtonHasFocus:!1,studioFlyoutOpen:!1};case a.ENABLE_CAMPAIGN_MODE:return{...e,isCampaignMode:!0,campaignId:t.payload};case a.CLOSE_ALL_DROPDOWNS:return{...e,studioFlyoutOpen:!1,locationDropdownOpen:!1,studioButtonHasFocus:!1,locationInputHasFocus:!1};case a.CLOSE_STUDIO_FLYOUT:return{...e,studioFlyoutOpen:!1,studioButtonHasFocus:!1};case a.CLOSE_LOCATION_DROPDOWN:return{...e,locationDropdownOpen:!1,locationInputHasFocus:!1};default:return e}}}
1,41054:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var a=n(60072),l=n(56645),i=n(4493),r=n(10983);let o=e=>{let{children:t}=e,{pathname:n}=(0,r.useRouter)(),o=(0,i.ifW)(n);return(0,a.jsx)("div",{className:(0,l.A)("location-grid-wrapper w-full flex px-6 lg:px-10 hd:px-40 md:z-2 items-center justify-center z-10",o?"py-16":"py-0"),children:(0,a.jsx)("div",{className:"\n flex\n sm:grid\n grid-cols-location-grid\n sm:gap-12\n w-full\n h-full\n lg:mx-6\n max-w-[1158px]\n ",children:t})})};var s=n(13305),d=n(60004),u=n(94122),c=n(80087),b=n(61484),p=n(87700),f=n(199),x=n(71990),h=n(5615);let g=e=>{var t,n,i;let{studio:r,isListing:o}=e,s=(null==r||null==(t=r.address)?void 0:t.street)||(null==r||null==(i=r.address)||null==(n=i.lines)?void 0:n[0])||"";return(0,a.jsxs)("div",{className:"location-grid-studio-with-distance w-full flex items-center justify-start font-light text-sm",children:[(0,a.jsx)("div",{className:(0,l.A)("flex justify-center pr-4 border-r-1 border-ci-color",o?"pr-4 w-[60px] max-w-[60px] min-w-[60px]":"pr-6 pl-4"),children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,a.jsx)("div",{className:"text-ci h-8 w-6 flex justify-center",children:(0,a.jsx)(h.A,{className:o?"h-6 w-4":""})}),(0,a.jsx)("span",{children:function(e){return null==e||Number.isNaN(e)?"":e>=1?"".concat(Math.round(10*e)/10," km"):"".concat(Math.round(1e3*e)," m")}(null==r?void 0:r.distance)})]})}),(0,a.jsxs)("div",{className:(0,l.A)(" flex flex-col items-start gap-[2px] ",o?"pl-4 max-w-[207px]":"pl-6 max-w-none"),children:[(0,a.jsx)("span",{className:"text-lg text-left",children:r.studioName}),(0,a.jsx)("span",{children:s})]})]})};var m=n(34768),v=n(35447);let S=e=>{let{placeholder:t,selectLabel:n}=e,{t:r}=(0,f.Bd)("common"),{setOverlayIsOpen:o,preview:c}=(0,d.useContext)(u._0),b=(0,d.useId)(),{msInstance:p,state:{isFetching:h,inputValue:S,studioSuggestions:_,locationInputHasFocus:O,noLocationFound:w,...k},dispatch:y,onStudioSelect:T,clearStudioSuggestions:C}=(0,d.useContext)(s.J),{setCurrentStudio:E}=(0,d.useContext)(u.os),{region:N}=(0,i.FW4)(),{data:I,isLoading:L}=(0,v.I)({queryKey:["Studios",{region:N}],queryFn:async()=>await (await fetch("/api/studios?preview=".concat(c,"®ion=").concat(N))).json(),refetchOnWindowFocus:!1,refetchOnMount:!1}),A=(0,d.useCallback)(e=>null==I?void 0:I.find(t=>t.id===e),[I]),U=e=>{var t;if((null==e?void 0:e.id)!=null&&!Number.isNaN(Number(e.id)))return Number(e.id);let n=null==e||null==(t=e.user_properties)?void 0:t.studioID;return n?parseInt(n,10):NaN};(0,d.useEffect)(()=>{k.selectedStudio||!k.closestStudio||L||E(A(U(k.closestStudio)))},[E,A,k.selectedStudio,k.closestStudio,L]);let j=(0,i.sg1)(async function(e){if(p.current){if(!e)return void C();try{y({type:m.kl.FETCH_LOCATIONS});let[t]=await (null==p?void 0:p.current.autocompleteMulti(e)),{api:n,id:a}=t||{},{geometry:{location:l}}=await (null==p?void 0:p.current.detailsMulti({api:n,id:a}));l?y({type:m.kl.SET_SELECTED_LOCATION,payload:{item:{location:l}}}):y({type:m.kl.NO_STUDIO_FOUND})}catch(e){console.error(e)}}},500),D=(0,d.useCallback)(()=>{y({type:m.kl.FOCUS_INPUT}),o(!0)},[y,o]),F=(0,d.useCallback)(e=>{o(!1),C(),y({type:m.kl.BLUR_INPUT})},[o,C,y]),G=(0,d.useCallback)(e=>{e&&(T(e),E(A(U(e))),F(null))},[A,F,T,E]);return(0,a.jsxs)("div",{className:"flex flex-col w-full",children:[(0,a.jsxs)("div",{className:"flex flex-col w-full gap-4 px-6 sm:px-12",children:[(0,a.jsxs)("div",{className:(0,l.A)("bg-light-grey w-full py-3 px-4 rounded-full flex",O&&"bg-white shadow-subtleShadow"),children:[(0,a.jsx)("label",{htmlFor:"location-search_".concat(b),className:"sr-only",children:t}),(0,a.jsx)("input",{id:"location-search__".concat(b),onChange:e=>{let t=e.target.value;y({type:m.kl.SET_INPUT_VALUE,payload:t}),j(t)},onFocus:D,onBlur:F,autoComplete:"off",value:S,className:"w-full text-center bg-transparent font-light leading-4 max-h-4 focus:outline-none",placeholder:t,"aria-label":t,role:"combobox","aria-autocomplete":"list","aria-expanded":!!(null==_?void 0:_.length)})]}
1),w?(0,a.jsx)("span",{className:"text-sm text-graphite-light font-light ",children:r("locationNotFound")}):!!(S||O)&&(0,a.jsx)("span",{className:"text-sm text-graphite-light font-light ",children:r("searchStudios")})]}),h&&(0,a.jsx)("div",{className:"flex w-full justify-center items-center mt-8",children:(0,a.jsx)(x.xQ,{})}),!!(null==_?void 0:_.length)&&(0,a.jsx)("ul",{className:"divide divide-y-[1px] divide-y-gray2 mt-8 absolute bg-white absolute bottom-0 transform translate-y-full w-full px-6 pb-6 sm:px-12 sm:pb-12",children:_.map((e,t)=>{var l,i,r;return(0,a.jsxs)("li",{className:"flex items-center py-6 last:pb-0 gap-1",children:[(0,a.jsx)(g,{studio:e,isListing:!0}),(0,a.jsx)("button",{className:"font-light text-sm underline",onClick:()=>{G(e)},children:n})]},null!=(r=null!=(i=e.id)?i:null==(l=e.user_properties)?void 0:l.studioname)?r:t)})})]})};var _=n(1004);let O=e=>{var t,n,r,o,f,x,h;let{headlines:m,ctas:v,placeholderSearchField:O,studioSelectLabel:w}=e,{openOffCanvas:k,isGG:y,isJR:T,isMF:C,isKlubTheme:E,overlayIsOpen:N}=(0,d.useContext)(u._0),{trackCheckoutEntry:I}=(0,_.v9)(),{state:{hideSelectedStudio:L,selectedStudio:A,closestStudio:U,locationInputHasFocus:j,selectedStudio:D}}=(0,d.useContext)(s.J),F=A||U,G=(null==F?void 0:F.detailPath)||(null==F||null==(t=F.contact)?void 0:t.website)||null,P=(0,i.iCw)({detailPath:G,detailPageStatus:(null==F?void 0:F.detailPageStatus)||(G?"published":"missing")}),B=!!(G&&(0,i.Hpi)(G)),R=E?"secondary":null==v||null==(n=v.locationStudioPageCtaGroupBasic)?void 0:n.variant,H=E?"tertiary":null==v||null==(r=v.locationCheckoutCtaGroupBasic)?void 0:r.variant;return(0,a.jsx)("div",{className:(0,l.A)("\n location-grid-location-box\n relative\n top-0 md:top-1/2\n left-0\n transform\n md:-translate-y-1/2\n md:-my-6\n h-full\n w-full md:w-none\n ",y&&"bg-black border-2 border-ci-yellow",T&&"bg-white border-ci-pink border-2",C&&" text-graphite bg-transparent",N&&j&&"z-[23]"),children:(0,a.jsxs)("div",{className:"\n py-6 md:py-8 \n flex flex-col\n items-center\n text-center\n gap-6\n bg-white\n shadow-activeShadow\n h-auto\n relative\n ",children:[(0,a.jsx)("div",{className:"px-6 sm:px-12 w-full",children:(null==m||null==(o=m.locationHeadlineGroup)?void 0:o.text)&&(0,a.jsx)(c.A,{...m.locationHeadlineGroup,addClasses:"px-4",children:C?(0,i.G9e)(null==(f=m.locationHeadlineGroup)?void 0:f.text):m.locationHeadlineGroup.text})}),(0,a.jsx)(S,{placeholder:O,selectLabel:w}),!!F&&!L&&(0,a.jsx)("div",{className:"px-6 sm:px-12 w-full",children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,{studio:F}),P&&(null==v||null==(x=v.locationStudioPageCtaGroupBasic)?void 0:x.active)&&(0,a.jsx)("div",{className:"w-full mt-6",children:(0,a.jsx)(b.n,{variant:R,className:(0,l.A)("w-full shadow-[none]",!E&&"!border-graphite",null==v?void 0:v.locationStudioPageCtaGroupBasic.trackingClass),text:null==v?void 0:v.locationStudioPageCtaGroupBasic.ctaText,to:G,forceAnchor:B})}),D&&(null==v||null==(h=v.locationCheckoutCtaGroupBasic)?void 0:h.active)&&(0,a.jsx)(p.$,{variant:H,addClasses:(0,l.A)("w-full mt-4",null==v?void 0:v.locationCheckoutCtaGroupBasic.trackingClass),value:null==v?void 0:v.locationCheckoutCtaGroupBasic.ctaText,method:["checkout"],onClick:()=>{if((0,i.AsB)())return void window.location.assign((0,i.dGF)({studioId:null!=D.id?String(D.id):void 0}));I((null==v?void 0:v.locationCheckoutCtaGroupBasic.ctaText)||"checkout_cta"),k(["checkout"],{studioId:D.id})}})]})})]})})},w=e=>{let{headline:t}=e,{isMobile:n,isMF:l}=(0,d.useContext)(u._0);return(0,a.jsx)("div",{className:"location-grid-tagline min-w-2/3 max-w-[688px] lg:py-[75px]",children:!n&&(null==t?void 0:t.text)&&(0,a.jsx)(c.A,{...t,isCentered:!1,children:l?(0,i.G9e)(t.text):t.text})})},k=e=>{let{headlines:t,ctas:n,...l}=e;return(0,a.jsx)(s.X,{children:(0,a.jsxs)(o,{children:[(0,a.jsx)(O,{headlines:t,ctas:n,...l}),(0,a.jsx)(w,{headline:t.taglineHeadlineGroup})]})})}},61484:(e,t,n)=>{n.d(t,{N:()=>p,n:()=>f});var a=n(60072),l=n(60004),i=n(17698),r=n.n(i),o=n(56645),s=n(94122),d=n(4493),u=n(17468),c=n(23026),b=n(10983);let p=e=>{let{to:t,className:n="",children:i,locale:o,openInSameTab:s,forceAnchor:u,role:c,"aria-label":b,"aria-disabled":p,onClick:f}=e,[x,h]=(0,l.useState)(!1),g=(()=>{let e=(0,d.gCO)(t)||t,n=(0,d.AsB)()&&(0,d.Ttp)(e)||e;return(0,d._Ep)(n)||n})(),m=(0,d.AsB)()&&((0,d.ZF9)(g)||(0,d.Hpi)(g));if((0,l.useEffect)(()=>{(0,d.i9S)(g)&&h(!0)},[g]),!g)return null;let[,v]=g.match(/(?:^|\/)([a-z]{2}(?:-[a-z]{2})?)(?=\/|$)/)||[],S=!!p||void 0;return x||u||m?(0,a.jsx)("a",{href:g,className:n,target:s||m?"":"_blank",rel:s||m?void 0:"noopener noreferrer",role:c||"link","aria-label":b,"aria-disabled":S,onClick:f,children:i}):(0,a.jsx)(r(),{href:g,locale:!v&&o,prefetch:!1,className:n,"aria-label":b,"aria-disabled":S,onClick:f,children:i})},f=e=>{let{to:t="/",text:n="",className:i="",disabled:r,variant:f,noOutline:x,openInSameTab:h,forceAnchor:g,onClick:m}=e,{isMF:v}=(0,l.useContext)(s._0),S=(0,d.G9c)(),{locale:_}=(0,b.useRouter)(),O=(0,c.z)({disabled:r,noOutline:x}),w=(0,u.l)({variant:f,noOutline:x}),k=(0,o.A)(S?"aria-disabled:pointer-events-none":"pointer-events-none",!S&&(v?"opacity-20":"opacity-50"));if(!t)return null;let[,y]=t.match(/(?:^|\/)([a-z]{2}(?:-[a-z]{2})?)(?=\/|$)/)||[],T=(0,o.A)("cta-link variant-".concat(f),O,w,"inline-flex items-center justify-center w-full",i,r&&k);return(0,a.jsx)(p,{to:t,locale:!y&&_,className:T,openInSameTab:h,forceAnchor:g,onClick:function(e){if(S&&r)return void e.preventDefault();null==m||m(e)},"aria-disabled":!!S&&!!r||void 0,children:n})}},68316:(e,t,n)=>{n.d(t,{$M:()=>i,Ay:()=>r});var a=n(4493);
1let l=(e,t,n)=>{var l,i;return!!(null==e||null==(l=e.rateCodeDto)?void 0:l.some(e=>e.identifier===n.mfKlub||"klub"===e.name.toLowerCase()))||!!(null==t||null==(i=t.studioTags)?void 0:i.some(e=>e.identifier===a.n0Z||"klub"===e.name.toLowerCase()))};function i(e,t,n,i,r,o){return!!e&&!!(o||(null==n?void 0:n.isMFKlub)===!0||null!=r&&!Number.isNaN(r)&&r===a.WVG||l({},t,i)||l({},null==n?void 0:n.selectedStudio,i))}let r=l},80087:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(60072),l=n(60004),i=n(56645),r=n(4493),o=n(94122);let s=e=>{let{size:[t],color:[n]="",addClasses:s,isCentered:d=!0,children:u,asParagraph:c,styledAs:b,isImageTextTeaser:p=!1}=e,[f,x]=(0,l.useState)(!1),h=(e=>{let{isGG:t,isJR:n,isMF:a}=(0,l.useContext)(o._0),r=(0,i.A)("style-h1 flex flex-wrap gap-x-4 break-words",!a&&"font-bold",t&&"font-extrabold font-gravitas-one uppercase text-4.25xl md:text-7xl leading-12 md:leading-20",n&&"font-hurme text-4.25xl md:text-6.25xl uppercase leading-13 md:leading-20",a&&"font-montserrat font-black font-[900] text-[2.8rem] leading-12 sm:leading-16 [@media(min-height:680px)_and_(min-width:768px)]:text-[4.25rem] [@media(min-height:680px)_and_(min-width:768px)]:leading-20 css-word-break"),s=(0,i.A)("style-h2 break-words flex flex-wrap gap-x-4",!a&&"text-3.5xl md:text-5xl font-bold",t&&"text-3.5xl md:text-5.5xl font-extrabold uppercase font-gravitas-one leading-10 md:leading-12",n&&"font-hurme uppercase text-3.5xl md:text-5xl leading-10 md:leading-14",a&&"font-montserrat font-black font-[900] text-[2.25rem] leading-10 [@media(min-height:680px)_and_(min-width:768px)]:text-[3.5rem] [@media(min-height:680px)_and_(min-width:768px)]:leading-16 css-word-break"),d=(0,i.A)("style-h3 break-words flex flex-wrap gap-x-3",!a&&"text-2xl md:text-3.5xl font-bold",t&&"text-2xl md:text-4.25xl font-extrabold uppercase font-gravitas-one leading-8 md:leading-12",n&&"font-hurme uppercase text-2xl md: text-3.5xl leading-8 md:leading-10",a&&"font-montserrat font-black font-[900] text-[1.7rem] leading-10 [@media(min-height:680px)_and_(min-width:768px)]:text-[2.125rem] [@media(min-height:680px)_and_(min-width:768px)]:leading-12"),u=(0,i.A)("style-h4 break-words flex flex-wrap gap-x-3",!a&&"text-2xl md:text-3.5xl font-bold",t&&"uppercase text-2xl md:text-4.25xl font-extrabold font-gravitas-one leading-8 md:leading-12",n&&"uppercase font-hurme text-2xl md:text-3.5xl leading-8 md:leading-10",a&&"font-montserrat font-black font-[900] text-[1.5rem] leading-5.5 [@media(min-height:680px)_and_(min-width:768px)]:text-[1.7rem] [@media(min-height:680px)_and_(min-width:768px)]:leading-8"),c=(0,i.A)("style-h5 break-words flex flex-wrap gap-x-3",!a&&"text-2xl md:text-3.5xl font-bold",t&&"text-2xl md:text-4.25xl font-extrabold uppercase font-gravitas-one leading-8 md:leading-12",n&&"font-hurme uppercase text-2xl md: text-3.5xl leading-8 md:leading-10",a&&"font-montserrat font-black font-[900] text-[1.275rem] leading-5 [@media(min-height:680px)_and_(min-width:768px)]:text-[1.5rem] [@media(min-height:680px)_and_(min-width:768px)]:leading-7");return({h1:r,h2:s,h3:d,h4:u,h5:c,h6:(0,i.A)("style-h6 break-words flex flex-wrap gap-x-2",!a&&"text-2xl md:text-3.5xl font-bold",a&&"font-montserrat font-black font-[900] text-[0.85rem] leading-5 [@media(min-height:680px)_and_(min-width:768px)]:text-[1.275rem] [@media(min-height:680px)_and_(min-width:768px)]:leading-7")})[e]})((null==b?void 0:b[0])||t),g=(0,r.G9c)()?(0,r.Bmy)(n):n,m=(0,i.A)("headline-group",g,s,h);if((0,l.useEffect)(()=>{x(c)},[c]),f)return(0,a.jsx)("p",{className:(0,i.A)(m,d&&!p&&"justify-center"),children:u});switch(t){case"h1":return(0,a.jsx)("h1",{className:(0,i.A)(m,d&&!p&&"justify-center"),children:u});case"h2":return(0,a.jsx)("h2",{className:(0,i.A)(m,d&&!p&&"justify-center text-center"),children:u});case"h3":return(0,a.jsx)("h3",{className:(0,i.A)(m,d&&!p&&"justify-center"),children:u});case"h4":return(0,a.jsx)("h4",{className:(0,i.A)(m,d&&!p&&"justify-center"),children:u});case"h5":return(0,a.jsx)("h5",{className:(0,i.A)(m,d&&!p&&"justify-center"),children:u});case"h6":return(0,a.jsx)("h6",{className:(0,i.A)(m,d&&!p&&"justify-center"),children:u});default:return null}}},82642:(e,t,n)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let a=n(60004),l=n(20465),i="function"==typeof IntersectionObserver,r=new Map,o=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,d=s||!i,[u,c]=(0,a.useState)(!1),b=(0,a.useRef)(null),p=(0,a.useCallback)(e=>{b.current=e},[]);return(0,a.useEffect)(()=>{if(i){if(d||u)return;let e=b.current;if(e&&e.tagName)return function(e,t,n){let{id:a,observer:l,elements:i}=function(e){let t,n={root:e.root||null,margin:e.rootMargin||""},a=o.find(e=>e.root===n.root&&e.margin===n.margin);if(a&&(t=r.get(a)))return t;let l=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=l.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:l},o.push(n),r.set(n,t),t}(n);return i.set(e,t),l.observe(e),function(){if(i.delete(e),l.unobserve(e),0===i.size){l.disconnect(),r.delete(a);let e=o.findIndex(e=>e.root===a.root&&e.margin===a.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&c(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,l.requestIdleCallback)(()=>c(!0));return()=>(0,l.cancelIdleCallback)(e)}},[d,n,t,u,b.current]),[p,u,(0,a.useCallback)(()=>{c(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87700:(e,t,n)=>{n.d(t,{$:()=>u});var a=n(60072),l=n(60004),i=n(56645),r=n(94122),o=n(4493),s=n(17468),d=n(23026);let u=e=>{let{id:t,value:n,onClick:u,addClasses:c="",primary:b,secondary:p,tertiary:f,variant:x,jrCheckout:h,noOutline:g,method:m,icon:v=null,disabled:S,..._}=e,{isMF:O}=(0,l.useContext)(r._0),w=(0,o.G9c)(),k=!!S,y=(0,s.l)({variant:x,primary:b,secondary:p,tertiary:f,noOutline:g}),T=(0,d.z)({disabled:k,noOutline:g,jrCheckout:h}),C=(0,i.A)("box-border");return(0,a.jsxs)("button",{id:t,"data-variant":x,className:(0,i.A)("cta-button variant-".concat(x),v&&"flex items-center gap-x-1",T,C,y,c),value:n,onClick:function(e){if(w&&k)return void e.preventDefault();null==u||u(e)},...m&&{"data-testid":"".concat(m[0],"-cta-button")},..._,...w&&k?{"aria-disabled":!0}:k?{disabled:!0}:{},children:[v||null,n]})}}}]);
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.