(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3438],{35084:function(e,t,r){Promise.resolve().then(r.bind(r,26242)),Promise.resolve().then(r.bind(r,30191)),Promise.resolve().then(r.bind(r,26676)),Promise.resolve().then(r.bind(r,79478)),Promise.resolve().then(r.bind(r,64975)),Promise.resolve().then(r.bind(r,31837)),Promise.resolve().then(r.bind(r,82465)),Promise.resolve().then(r.bind(r,69464)),Promise.resolve().then(r.bind(r,70897)),Promise.resolve().then(r.bind(r,40328)),Promise.resolve().then(r.bind(r,62370)),Promise.resolve().then(r.bind(r,30947)),Promise.resolve().then(r.bind(r,89601)),Promise.resolve().then(r.bind(r,29335)),Promise.resolve().then(r.bind(r,99181)),Promise.resolve().then(r.bind(r,38729)),Promise.resolve().then(r.bind(r,43193)),Promise.resolve().then(r.bind(r,95239)),Promise.resolve().then(r.bind(r,85761)),Promise.resolve().then(r.bind(r,30069)),Promise.resolve().then(r.bind(r,86383)),Promise.resolve().then(r.bind(r,72419)),Promise.resolve().then(r.bind(r,25374)),Promise.resolve().then(r.bind(r,53863)),Promise.resolve().then(r.bind(r,94026)),Promise.resolve().then(r.bind(r,27577)),Promise.resolve().then(r.bind(r,31145)),Promise.resolve().then(r.bind(r,39085)),Promise.resolve().then(r.bind(r,57970)),Promise.resolve().then(r.bind(r,70250)),Promise.resolve().then(r.bind(r,53145)),Promise.resolve().then(r.bind(r,91086)),Promise.resolve().then(r.bind(r,10485)),Promise.resolve().then(r.bind(r,10059)),Promise.resolve().then(r.bind(r,77157)),Promise.resolve().then(r.bind(r,47985)),Promise.resolve().then(r.bind(r,98071)),Promise.resolve().then(r.bind(r,7124)),Promise.resolve().then(r.bind(r,3029)),Promise.resolve().then(r.bind(r,62441)),Promise.resolve().then(r.bind(r,98668)),Promise.resolve().then(r.bind(r,10458)),Promise.resolve().then(r.bind(r,56335)),Promise.resolve().then(r.bind(r,9717)),Promise.resolve().then(r.bind(r,7599)),Promise.resolve().then(r.bind(r,72708)),Promise.resolve().then(r.bind(r,16915)),Promise.resolve().then(r.bind(r,48726)),Promise.resolve().then(r.bind(r,99030)),Promise.resolve().then(r.bind(r,36828)),Promise.resolve().then(r.bind(r,61754)),Promise.resolve().then(r.bind(r,75597)),Promise.resolve().then(r.bind(r,63511)),Promise.resolve().then(r.bind(r,97513)),Promise.resolve().then(r.bind(r,512)),Promise.resolve().then(r.bind(r,74743)),Promise.resolve().then(r.bind(r,38884)),Promise.resolve().then(r.bind(r,17146)),Promise.resolve().then(r.t.bind(r,81749,23)),Promise.resolve().then(r.t.bind(r,25250,23)),Promise.resolve().then(r.bind(r,2579)),Promise.resolve().then(r.bind(r,5009)),Promise.resolve().then(r.bind(r,22563)),Promise.resolve().then(r.bind(r,26318)),Promise.resolve().then(r.bind(r,64932)),Promise.resolve().then(r.bind(r,90902)),Promise.resolve().then(r.bind(r,99757)),Promise.resolve().then(r.bind(r,87175)),Promise.resolve().then(r.bind(r,20133))},20133:function(e,t,r){"use strict";r.r(t),r.d(t,{StudioFilterListLayout:function(){return B}});var o=r(3827),n=r(64090),s=r(47907),i=r(30982),l=r(92939),a=r(8308),d=r(41671),c=r(75182),u=r(20703),h=r(38016),x=r(65398),p=r(27895),m=r(627),b=r(85503),v=r(62315),f=r(99452);let g=e=>{let{setStudioMapId:t}=e,r=(0,s.useSearchParams)(),l=r.get("search"),c=r.get("onlyForWomen"),g=(0,n.useMemo)(()=>r.getAll("studioCategories[]"),[r]),w=(0,n.useMemo)(()=>g.map(e=>parseInt(e,10)),[g]),P=(0,n.useMemo)(()=>({categoryIds:w,onlyForWomen:"true"===c,searchText:l||void 0}),[w,c,l]),j=(0,i.useTranslations)(),S=(0,i.useLocale)(),{push:y}=(0,f.cD)(),{selectedCity:C,selectedCountry:E}=(0,b.SK)(),[k,A]=(0,n.useState)(0),[I,F]=(0,n.useState)(!0),{data:D,mutate:W,isLoading:U}=(0,h.ZP)((null==C?void 0:C.id)?["studios-list",{...P},C,E,S]:null,()=>(0,v.jn)({page:0,limit:10,cityId:null==C?void 0:C.id,...P},S),{revalidateOnFocus:!1}),_=D&&I&&(!(D.length<10)||D.length>=10),M=async()=>{let e=await (0,v.jn)({page:k+1,limit:10,cityId:null==C?void 0:C.id,...P},S);(null==e?void 0:e.length)>0?(W([...D||[],...e],!1),A(k+1)):(A(0),F(!1)),(null==e?void 0:e.length)<10&&(A(0),F(!1))};(0,n.useEffect)(()=>{F(!0),A(0)},[P]);let O=e=>{null==t||t(e),y("/studios/".concat(e),{preserveQuery:!0})};return(0,o.jsxs)(a.xu,{w:{base:"100%",md:"354px"},transform:{base:"translateX(-10px)",md:"translateX(-14px)"},mt:{base:"145px",md:"167px"},position:{base:"absolute",md:"static"},children:[(U||!_&&!D)&&(0,o.jsx)(x.O,{w:"100%",h:"76dvh"}),null==D?void 0:D.map((e,t)=>(0,o.jsxs)(d.U,{onClick:()=>O(e.id),p:"28px 20px",gap:"12px",justifyContent:"space-between",h:"142px",borderBottom:"1px solid #DCDCDC",borderRight:{base:"none",md:"1px solid #DCDCDC"},cursor:"pointer",children:[(0,o.jsxs)(a.xu,{maxW:"194px",children:[(0,o.jsx)(p.x,{textStyle:"body-2",fontWeight:"bold",color:"black",mb:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:e.name}),(0,o.jsxs)(d.U,{mb:"6px",children:[(0,o.jsxs)(d.U,{bgColor:"#CFC17A",px:"3px",h:"18px",borderRadius:"5px",gap:"3px",children:[(0,o.jsx)(m.r7,{}),(0,o.jsx)(p.x,{color:"white",textStyle:"note",fontWeight:"medium",mt:"1px",children:Math.round((e.rating+Number.EPSILON)*10)/10})]}),(0,o.jsx)(p.x,{color:"#959595",textStyle:"caption-1",fontWeight:"bold",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:e.kind})]}),(0,o.jsxs)(d.U,{children:[(0,o.jsx)(m.mo,{w:"13px",h:"13px"}),(0,o.jsx)(p.x,{color:"#A4A4A4",textStyle:"caption-1",fontWeight:"medium",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:e.address})]})]}),(0,o.jsx)(a.xu,{w:"108px",h:"81px",position:"relative",borderRadius:"6px",overflow:"hidden",children:(0,o.jsx)(u.default,{src:e.image,alt:"".concat(e.name," studio image"),style:{objectFit:"cover"},fill:!0})})]},e.name+t)),_&&(0,o.jsx)(a.xu,{textAlign:"center",children:(0,o.jsx)(p.x,{onClick:M,as:"button",py:"28px",color:"#3447F6",fontWeight:"semibold",textStyle:"body-2",mb:"70px",children:j("Common.show-all")})}),!_&&(0,o.jsx)(a.xu,{py:"28px",mb:"20px"})]})};var w=r(44951),P=r(44187),j=r(73518);let S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[r,o]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let r=setTimeout(()=>{o(()=>e)},t);return()=>{clearTimeout(r)}},[e,t]),r},y=()=>{let e=(0,i.useTranslations)(),t=(0,s.useSearchParams)(),r=(0,s.usePathname)(),{replace:l}=(0,s.useRouter)(),{selectedCity:a,selectedCountry:d}=(0,b.SK)(),[c,u]=(0,n.useState)(t.get("search")||""),h=S(c);return(0,n.useEffect)(()=>{let e=new URLSearchParams(t);h?e.set("search",h):e.delete("search"),l("".concat(r,"?").concat(e.toString()))},[h]),(0,n.useEffect)(()=>{u("")},[null==a?void 0:a.id,null==d?void 0:d.code]),(0,o.jsxs)(w.B,{children:[(0,o.jsx)(P.Z,{pointerEvents:"none",children:(0,o.jsx)(m.BK,{})}),(0,o.jsx)(j.I,{value:c,onChange:e=>{u(e.currentTarget.value)},placeholder:e("Common.search"),pl:"36px",borderRadius:"10px",boxShadow:"0px 3px 3px 0px #0000000F",_placeholder:{color:"#B3B3B3"}})]})};var C=r(99528),E=r(44215),k=r(54285),A=r(14428),I=r(58660),F=r(9762),D=r(44384),W=r(46809),U=r(76159);let _=()=>{let e=(0,i.useTranslations)(),[t,r]=(0,n.useState)(!1),l=(0,s.useSearchParams)(),a=(0,s.usePathname)(),{replace:d}=(0,s.useRouter)(),[c,f]=(0,n.useState)([]),g=(0,i.useLocale)(),{selectedCity:w,selectedCountry:P}=(0,b.SK)(),j=S(c),{data:y,isLoading:_}=(0,h.ZP)((null==w?void 0:w.id)?["studio-categories",g,P,w,g]:null,()=>(0,v.Bo)(null==w?void 0:w.id,g)),M=e=>f(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]);return(0,n.useEffect)(()=>{let e=new URLSearchParams(l.toString()).getAll("studioCategories[]").map(e=>parseInt(e,10));f([]),f(e)},[]),(0,n.useEffect)(()=>{let e=new URLSearchParams(l);e.delete("studioCategories[]"),(null==j?void 0:j.length)>0&&j.forEach(t=>{e.append("studioCategories[]","".concat(t))}),d("".concat(a,"?").concat(e.toString()))},[j]),(0,n.useEffect)(()=>{t?f([]):r(!0)},[null==w?void 0:w.id,null==P?void 0:P.code]),(0,o.jsxs)(C.v,{closeOnSelect:!1,children:[(0,o.jsx)(E.j,{w:"100%",children:(0,o.jsxs)(k.k,{align:"center",justify:"space-between",border:"1px solid #ECECEC",borderRadius:"90px",p:"12px 16px",h:"36px",children:[(0,o.jsx)(p.x,{color:"black",textStyle:"caption-1",fontWeight:"semibold",children:e("Studios.sport-types",{count:(null==c?void 0:c.length)>0?null==c?void 0:c.length:null==y?void 0:y.length})}),(0,o.jsx)(m.DV,{width:"16px",height:"16px",color:"#D2D2D2"})]})}),(0,o.jsx)(A.q,{borderRadius:"10px",border:"1px solid #E5E5E5",boxShadow:"0px 13px 14px -8px #0000001F",w:"268px",maxH:"375px",overflowY:"auto",children:(0,o.jsxs)(I._,{type:"checkbox",children:[_&&(0,o.jsx)(x.O,{w:"100%",h:"40px"}),null==y?void 0:y.map(e=>(0,o.jsx)(F.s,{w:"100%",p:"0",onChange:()=>M(e.id),children:(0,o.jsx)(D.NI,{children:(0,o.jsx)(W.l,{margin:"0",p:"10px 16px",cursor:"pointer",children:(0,o.jsxs)(k.k,{align:"center",gap:"12px",w:"100%",children:[(0,o.jsx)(u.default,{src:e.icon,width:24,height:24,alt:"".concat(e.name," icon")}),(0,o.jsx)(p.x,{color:"black",textStyle:"note",fontWeight:"medium",children:e.name}),(0,o.jsx)(U.X,{ml:"auto",isChecked:null==c?void 0:c.includes(e.id)})]})})})},e.id))]})})]})},M=()=>{let e=(0,i.useTranslations)(),{selectedCity:t,selectedCountry:r}=(0,b.SK)(),l=(0,s.useSearchParams)(),a=(0,s.usePathname)(),{replace:d}=(0,s.useRouter)(),[c,u]=(0,n.useState)("true"===(l.get("onlyForWomen")||"")),h=S(c);return(0,n.useEffect)(()=>{let e=new URLSearchParams(l);h?e.set("onlyForWomen","".concat(h)):e.delete("onlyForWomen"),d("".concat(a,"?").concat(e.toString()))},[h]),(0,n.useEffect)(()=>{u(!1)},[null==t?void 0:t.id,null==r?void 0:r.code]),(0,o.jsx)(D.NI,{mt:"12px",w:"fit-content",children:(0,o.jsx)(W.l,{children:(0,o.jsxs)(k.k,{gap:"6px",cursor:"pointer",children:[(0,o.jsx)(U.X,{onChange:()=>u(e=>!e),isChecked:c}),(0,o.jsx)(p.x,{color:"#F14698",textStyle:"sm",fontWeight:"medium",children:e("Studios.female-studios")})]})})})},O=e=>{let{studioMapId:t,setStudioMapId:r}=e,{push:n}=(0,f.cD)(),s=(0,i.useLocale)(),{data:l}=(0,h.ZP)(t?["studioMapItemDetail",t]:null,()=>(0,v.C$)(t,s)),{id:c,name:x,address:b,image:g,kind:w,rating:P=0}=l||{},j=()=>n("/studios/".concat(c),{preserveQuery:!0});return(0,o.jsxs)(a.xu,{w:{base:"100%",md:"343px"},maxW:"320px",borderRadius:"16px",bg:"white",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",zIndex:9,children:[(0,o.jsxs)(d.U,{p:"20px 20px 0",justify:"space-between",align:"flex-start",children:[(0,o.jsx)(p.x,{textStyle:"body-2",fontWeight:"bold",color:"black",mb:"24px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:"1",onClick:j,children:x}),(0,o.jsx)(m.Tw,{onClick:()=>r(void 0),color:"#C8C8C8",width:"16px",height:"16px",mt:"4px"})]}),(0,o.jsxs)(d.U,{gap:"12px",p:"0 20px 20px",justifyContent:"space-between",cursor:"pointer",align:"flex-start",onClick:j,children:[(0,o.jsxs)(a.xu,{maxW:"165px",children:[(0,o.jsxs)(d.U,{mb:"6px",children:[(0,o.jsxs)(d.U,{bgColor:"#CFC17A",px:"3px",h:"18px",borderRadius:"5px",gap:"3px",children:[(0,o.jsx)(m.r7,{}),(0,o.jsx)(p.x,{color:"white",textStyle:"note",fontWeight:"medium",mt:"1px",children:Math.round((P+Number.EPSILON)*10)/10})]}),(0,o.jsx)(p.x,{color:"#959595",textStyle:"caption-1",fontWeight:"bold",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:w})]}),(0,o.jsxs)(d.U,{children:[(0,o.jsx)(m.mo,{w:"13px",h:"13px"}),(0,o.jsx)(p.x,{color:"#A4A4A4",textStyle:"caption-1",fontWeight:"medium",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:b})]})]}),g&&(0,o.jsx)(a.xu,{w:"108px",h:"81px",position:"relative",borderRadius:"6px",overflow:"hidden",onClick:j,children:(0,o.jsx)(u.default,{src:"".concat(g),alt:"{studio.name} studio image",style:{objectFit:"cover"},fill:!0})})]})]})};var R=r(9755),L=r(78793);let N=e=>{let t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("width","45"),t.setAttribute("height","45"),t.setAttribute("viewBox","0 0 45 45"),t.setAttribute("fill","none");let r=document.createElementNS("http://www.w3.org/2000/svg","rect");r.setAttribute("x","1.527"),r.setAttribute("y","1.37856"),r.setAttribute("width","41.4375"),r.setAttribute("height","41.5248"),r.setAttribute("rx","20.7188"),r.setAttribute("fill","#3447F6");let o=document.createElementNS("http://www.w3.org/2000/svg","rect");o.setAttribute("x","1.527"),o.setAttribute("y","1.37856"),o.setAttribute("width","41.4375"),o.setAttribute("height","41.5248"),o.setAttribute("rx","20.7188"),o.setAttribute("stroke","white"),o.setAttribute("stroke-width","2.75712");let n=document.createElementNS("http://www.w3.org/2000/svg","text");return n.setAttribute("x","50%"),n.setAttribute("y","50%"),n.setAttribute("text-anchor","middle"),n.setAttribute("dominant-baseline","middle"),n.setAttribute("fill","white"),n.setAttribute("font-weight","400"),n.setAttribute("font-size","16px"),n.textContent="".concat(e),t.appendChild(r),t.appendChild(o),t.appendChild(n),t},T=e=>{let{setStudioMapId:t,isMobile:r,studioMapId:l}=e,d=(0,s.useSearchParams)(),{studioId:c}=(0,s.useParams)(),u=d.get("search"),x=d.get("onlyForWomen"),p=d.getAll("studioCategories[]").map(e=>parseInt(e,10)),m=(0,n.useMemo)(()=>({categoryIds:p,onlyForWomen:"true"===x,searchText:u||void 0}),[p,x,u]),{push:g}=(0,f.cD)(),w=(0,n.useRef)(null),P=(0,i.useLocale)(),{selectedCity:j,selectedCountry:S}=(0,b.SK)(),y=(0,i.useLocale)(),{data:C}=(0,h.ZP)(j?["studios-map",{...m,city:null==j?void 0:j.id,lat:null==j?void 0:j.latitude,lng:null==j?void 0:j.longitude},j,S,P]:null,()=>(0,v.Dw)({...m,cityId:null==j?void 0:j.id},P)),E=e=>{r||g("/studios/".concat(e),{preserveQuery:!0})};(0,n.useEffect)(()=>{(async()=>{var e;let t=new R.aN({apiKey:"AIzaSyB7a-wduMXBAuME7shkgZNc6cA3d4CWrls",version:"weekly",language:y}),{Map:r}=await t.importLibrary("maps"),o={center:{lat:null==j?void 0:j.latitude,lng:null==j?void 0:j.longitude},zoom:13,mapId:"524621f44327569",disableDefaultUI:!0,clickableIcons:!1},n=new r(w.current,o),{AdvancedMarkerElement:s,PinElement:i}=await t.importLibrary("marker"),a={glyphColor:"white",borderColor:"white"},d=null==C?void 0:null===(e=C.studios)||void 0===e?void 0:e.map(e=>{let{latitude:t,longitude:r,id:o}=e,d=new s({map:n,position:{lat:t,lng:r+Math.random()/25e3},content:new i({...a,background:o===l?"#FF41A8":"#3447F6",scale:o===l?1.4:1}).element,zIndex:o===l?9999:void 0});return d.id=o.toString(),d.addListener("click",()=>{k(o)}),d});new L.XL({markers:null==d?void 0:d.filter(e=>+e.id!==l),map:n,renderer:{render:function(e){let{count:t,position:r}=e;return new s({position:r,content:N(t),title:"".concat(t),zIndex:1e3})}}})})()},[C,j,y,r,l]),(0,n.useEffect)(()=>{!c&&t&&t(void 0)},[c]);let k=e=>{t&&t(e),E(e.toString())};return(0,o.jsx)(a.xu,{h:"100%",w:"100%",ref:w})},B=e=>{let{children:t}=e,r=(0,i.useTranslations)(),{studioId:u}=(0,s.useParams)(),h=(0,l.S)({base:!0,md:!1}),[x,p]=(0,n.useState)(!1),[m,b]=(0,n.useState)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(a.xu,{w:{base:"100%",md:"354px"},p:"24px 20px 8px",borderBottom:"1px solid #DCDCDC",borderRight:{base:"none",md:"1px solid #DCDCDC"},position:"fixed",left:"0",bg:"white",zIndex:"9",children:[(0,o.jsx)(y,{}),(0,o.jsxs)(d.U,{flexDirection:{base:"row",md:"column"},gap:{base:"18px",md:"0"},mt:"14px",mb:{base:"14px",md:"0"},alignItems:{base:"center",md:"flex-start"},children:[(0,o.jsx)(_,{}),(0,o.jsx)(a.xu,{flexShrink:"0",children:(0,o.jsx)(M,{})})]})]}),(u||!h||x)&&h?x&&h&&!u?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.xu,{w:"100%",h:"calc(100dvh - 214px)",mt:"145px",transform:"scale(1.1)",children:(0,o.jsx)(T,{isMobile:h,setStudioMapId:b,studioMapId:m})}),m&&(0,o.jsx)(a.xu,{position:"absolute",bottom:"28px",left:"50%",transform:"translateX(-50%)",css:{"&::webkit-transform":"translateX(-50%)"},zIndex:99,ml:"3px",children:(0,o.jsx)(O,{studioMapId:m,setStudioMapId:b})})]}):(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(a.xu,{children:(0,o.jsx)(g,{setStudioMapId:b})}),t,(!u&&h||!h)&&(0,o.jsx)(a.xu,{position:"sticky",top:"54px",bg:"#DADCEC",h:"calc(100vh - 54px)",ml:"auto",display:{base:"none",md:"flex"},w:"100%",children:(0,o.jsx)(T,{studioMapId:m,setStudioMapId:b})}),!m&&(0,o.jsx)(c.z,{display:{base:"block",md:"none"},position:"fixed",variant:"primary",bottom:"18px",left:"50%",transform:"translate(-50%)",onClick:()=>p(e=>!e),children:r(x?"Studios.show-list":"Studios.show-map")})]})}},99452:function(e,t,r){"use strict";r.d(t,{cD:function(){return u},f3:function(){return h},m5:function(){return d}});var o=r(64090),n=r(70410),s=r(84111),i=r(30982),l=r(85503);async function a(e,t,r){let o="".concat(l.vc.baseUrl,"/api/landing/v2/partners/request/");try{let n=await fetch(o,{method:"POST",headers:l.vc.headers(t),body:JSON.stringify({phone_number:e,city_id:r})});if(!n.ok)throw Error("Error sending phone number: ".concat(n.status));return null}catch(e){throw console.error("Error sending phone number:",e),e}}let d=()=>{var e;let t;let{selectedCountry:r,selectedCity:d}=(0,l.SK)(),[c,u]=(0,o.useState)(""),[h,x]=(0,o.useState)(!1),[p,m]=(0,o.useState)(""),{isOpen:b,onOpen:v,onClose:f}=(0,n.q)(),g=null==r?void 0:r.phoneMask,w=null==r?void 0:r.code,P=(0,i.useLocale)(),j=g?(e="MY"===w?g.formats[2]:g.formats[0],t=(null==g?void 0:g.code)+" ",e.forEach(e=>{t+="_".repeat(e)+" "}),null==t?void 0:t.trim()):"7 (___) ___-__-__",S=(0,s.B)({mask:j,replacement:{_:/\d/}}),y=async e=>{if(e.preventDefault(),x(!0),!g){m("Phone mask is missing");return}if(!c||c.length!==(null==j?void 0:j.length)&&"MY"!==w||!c||!j||!j.length||c.length<j.length-2&&"MY"===w){m("Please enter a complete phone number");return}try{await a(c.replace(/\s/g,""),P,null==d?void 0:d.id),u(""),v()}catch(e){console.error("Error sending phone number:",e),m("An error occurred while sending the phone number.")}};return{phoneNumber:c,setPhoneNumber:u,inputRef:S,dynamicMask:j,isSubmitted:h,errorMessage:p,handleSubmit:y,handleInputChange:e=>{u(e.target.value),e.target.value.length===(null==j?void 0:j.length)&&console.log("Phone number is complete"),h&&m("")},phoneMask:g,isOpen:b,onClose:f}};var c=r(47907);let u=()=>{let e=(0,c.useRouter)(),t=(0,c.useSearchParams)();return{push:(r,o,n)=>{let s=new URL(r.includes("http")?r:"https://"+window.location.host+r);(null==o?void 0:o.preserveQuery)&&t.forEach((e,t)=>{s.searchParams.append(t,e)});let i=s.toString();r.includes("http")||(i=i.substring(i.indexOf("/"))),e.push(i,n)}}},h=()=>{let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{t(!0)},[]),e}},62315:function(e,t,r){"use strict";r.d(t,{zS:function(){return c},C$:function(){return u},Bo:function(){return a},jn:function(){return l},Dw:function(){return d},$I:function(){return i}});var o=r(17261);let n=e=>{let{cityId:t,categoryIds:r,onlyForWomen:o,searchText:n,...s}=e;return{...s,city_id:t,category_ids:r,only_for_women:o,search_text:n}},s=e=>{let{address_detail:t,amenities:r,...o}=e;return{...o,addressDetail:t,amenities:null==r?void 0:r.map(e=>{let{is_available:t,...r}=e;return{...r,isAvailable:t}})}};async function i(e,t){let r="".concat(o.v.baseUrl,"/api/landing/v2/partners/top-studios/").concat(e,"/");try{let e=await fetch(r,{headers:o.v.headers(t)});if(!e.ok)throw Error("Fetch error: ".concat(e.status));return(await e.json()).result}catch(e){throw console.log("Error occured fetching partners top studios"),e}}async function l(e,t){let r="".concat(o.v.baseUrl,"/api/landing/v2/studios/list/");try{let s=await fetch(r,{method:"POST",headers:o.v.headers(t),body:JSON.stringify(n(e))});if(!s.ok)throw Error("Fetch error: ".concat(s.status));return(await s.json()).result}catch(e){throw console.log("Error occured fetching studios"),e}}async function a(e,t){let r="".concat(o.v.baseUrl,"/api/landing/v2/studios/categories/").concat(e,"/");try{let e=await fetch(r,{headers:o.v.headers(t)});if(!e.ok)throw Error("Fetch error: ".concat(e.status));return(await e.json()).result}catch(e){throw console.log("Error occured fetching studios categories"),e}}async function d(e,t){let r="".concat(o.v.baseUrl,"/api/landing/v2/studios/map/");try{let s=await fetch(r,{method:"POST",headers:o.v.headers(t),body:JSON.stringify(n(e))});if(!s.ok)throw Error("Fetch error: ".concat(s.status));let i=await s.json();return{studios:null==i?void 0:i.studios,totalCount:null==i?void 0:i.total_count}}catch(e){throw console.log("Error occured fetching studios map"),e}}async function c(e,t){let r="".concat(o.v.baseUrl,"/api/landing/v2/studios/").concat(e,"/");try{let e=await fetch(r,{headers:o.v.headers(t)});if(!e.ok)throw Error("Fetch error: ".concat(e.status));let n=await e.json();return s(n)}catch(e){throw console.log("Error occured fetching studio detail"),e}}async function u(e,t){let r="".concat(o.v.baseUrl,"/api/landing/v2/studios/map/").concat(e,"/");try{let e=await fetch(r,{headers:o.v.headers(t)});if(!e.ok)throw Error("Fetch error: ".concat(e.status));return await e.json()}catch(e){throw console.log("Error occured fetching studio detail map"),e}}}},function(e){e.O(0,[9461,3179,4549,982,8016,4241,760,1749,568,2914,4111,2725,7532,5289,2971,8069,1744],function(){return e(e.s=35084)}),_N_E=e.O()}]);