1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1150],{96605:function(e,a,t){"use strict";t.d(a,{a:function(){return m},jI:function(){return p}});var i=t(41392),s=t(16239),n=t(90772),l=t(11163),c=t(67294),o=t(31096),r=t(13959),d=t(85893),m=function(e){var a=e.children,t=(0,l.useRouter)(),o=(0,s.D)(),m=o.setDialogState,p=(o.dialogState,(0,i.useAuthContext)()),x=p.isLoggedIn,h=p.loading,v=p.setRedirectUrl,f=(0,n.M)();return(0,c.useEffect)((function(){x||h||!f||(m("login"),v(t.asPath),t.push("/"))}),[x,h,f]),(0,d.jsx)(u,{children:x&&f?a:(0,d.jsx)(r.Z,{width:"100px",height:"100px"})})},p=function(e,a){var t=(0,l.useRouter)(),n=(0,s.D)().setDialogState,o=(0,i.useAuthContext)(),r=o.isLoggedIn,d=o.loading,m=o.loginRoute,p=o.setRedirectUrl;(0,c.useEffect)((function(){e&&p(e),r||d||(a?t.replace("/login"):(n(m),t.replace("/")))}),[r,d])};a.ZP=function(e){var a=e.children,t=e.isHeroNewFont,s=(0,l.useRouter)(),n=(0,i.useAuthContext)(),o=n.isLoggedIn,m=n.loading;n.setRedirectUrl;return(0,c.useEffect)((function(){o||m||s.push("/")}),[o,m]),(0,d.jsx)(u,{isHeroNewFont:t,children:o?a:(0,d.jsx)(r.Z,{width:"100px",height:"100px"})})};var u=o.ZP.div.withConfig({displayName:"AuthLayout__Wrapper",componentId:"sc-piwo0x-0"})(["h1,h2,h3,h4,h5,h6,p,.header,*{font-family:",";}"],(function(e){return e.isHeroNewFont?"Poppins":"inherit"}))},52717:function(e,a,t){"use strict";var i=t(50787),s=t(31742),n=(t(67294),t(85893));a.Z=function(e){var a=e.description,t=e.validateUrls,l=e.className,c=e.purpose;return(0,n.jsxs)("div",{className:(0,s.cn)("space-y-5 rounded-lg bg-secondary-bg p-5",l),children:[(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)("p",{className:"font-bold",children:"Mobile number required"}),(0,n.jsx)("p",{children:a})]}),(0,n.jsx)(i.Z,{needVerify:!0,needToUpdatePhNumber:!0,label:"Mobile number",name:"phoneNumber",autoFocus:!0,validateUrls:t,purpose:c})]})}},84359:function(e,a,t){"use strict";var i=t(58352),s=t(47300),n=t(67162),l=t(74107),c=t(25298),o=t(25760),r=(t(67294),t(85893));a.Z=function(e){var a=e.title,t=e.classes,d=void 0===t?[]:t,m=e.type,p=void 0===m?"class":m,u=(0,n.vH)().textColor;return(0,r.jsxs)("div",{children:[(0,r.jsx)(s.ZT,{as:"h3",fontSize:"16px",fontWeight:"700",mb:"12px",children:a}),(0,r.jsx)("div",{className:"mb-1",children:(0,r.jsxs)("div",{children:["class"===p&&d.map((function(e,a){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2 ",children:[(0,r.jsx)(l.iji,{stroke:u})," ",(0,r.jsx)("p",{className:"text-[14px]",children:e.className||e.appointmentName})]},e.classId||e.appointmentId),d.length-a!=1&&(0,r.jsx)(i.Z,{color:(0,o.E)(u,.2),my:"12px"})]})})),"appointment"===p&&d.map((function(e){return(0,r.jsx)("div",{className:"text-[14px]",children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-1 flex flex-row items-center gap-2 text-[14px] ",children:[(0,r.jsx)(l.iji,{stroke:u})," ",e.apptName]}),(0,r.jsx)("p",{className:"pl-[22px]",children:e.variantName?"".concat(e.variantName," - ").concat((0,c.lF)(e.duration)):"".concat((0,c.lF)(e.duration))})]})},e.apptPricingId)}))]})})]})}},61154:function(e,a,t){"use strict";t(67294);var i=t(25391),s=t(85893);a.Z=function(e){var a=e.message;return(0,s.jsxs)("div",{className:"my-28 flex flex-col items-center justify-center gap-10",children:[(0,s.jsx)(i.p$,{}),(0,s.jsx)("p",{className:"text-2xl font-bold",children:a||"Oops, the product no longer available"})]})}},36266:function(e,a,t){"use strict";var i=t(67294),s=t(85893),n=i.createContext(null);a.Z=function(e){var a=e.children,t=(0,i.useState)(""),l=t[0],c=t[1];return(0,s.jsx)(n.Provider,{value:{paymentMethod:l,setPaymentMethod:c},children:a})}},42718:function(e,a,t){"use strict";t.r(a);t(67294);var i=t(17746),s=t(58255),n=t(41664),l=t.n(n),c=t(31096),o=t(41013),r=t(85893);a.default=function(e){var a=e.children;return(0,r.jsx)(i.Z,{title:"Access Denied",children:(0,r.jsx)(d,{children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(o.HU,{}),(0,r.jsx)("h3",{children:"Sorry!"}),(0,r.jsx)("p",{children:a})]}),(0,r.jsx)(l(),{href:"/",children:(0,r.jsx)(m,{width:"auto",padding:"17px 28px",children:"Return to Homepage"})})]})})})};var d=c.ZP.div.withConfig({displayName:"sc-403__Wrapper",componentId:"sc-39gc3n-0"})(["display:flex;justify-content:center;align-items:center;text-align:center;min-height:70vh;h3{margin-top:20px;}h3,p{font-size:20px;margin-bottom:12px;font-weight:700;}button{margin:40px auto;}"]),m=(0,c.ZP)(s.hO).withConfig({displayName:"sc-403___StyledBlackButton",componentId:"sc-39gc3n-1"})(["font-size:14px;"])},69103:function(e,a,t){"use strict";t.r(a);var i=t(31096),s=(t(67294),t(93536)),n=t.n(s),l=t(17746),c=t(58255),o=t(41664),r=t.n(o),d=t(74107),m=t(85893);a.default=function(){return(0,m.jsx)(l.Z,{title:"404",children:(0,m.jsx)("div",{className:n().wrapper,children:(0,m.jsxs)("div",{className:n().c
1ontent,children:[(0,m.jsx)("div",{className:n().errorImage,children:(0,m.jsx)(d.g6n,{})}),(0,m.jsxs)("div",{className:n().middleText,children:[(0,m.jsx)("h3",{children:"Uh oh, we can't find the page you're looking for"}),(0,m.jsxs)("p",{children:["There seems to be an error in the URL entered in your web browser. Please check the URL and try again. ",(0,m.jsx)("br",{})," The page you're searching for has been ",(0,m.jsx)("span",{children:"relocated"})," or ",(0,m.jsx)("span",{children:"removed"}),"."]})]}),(0,m.jsx)("div",{children:(0,m.jsx)(r(),{href:"/",children:(0,m.jsx)(p,{padding:"17px 28px",children:"Return To Homepage"})})})]})})})};var p=(0,i.ZP)(c.hO).withConfig({displayName:"sc-404___StyledBlackButton",componentId:"sc-fcihkq-0"})(["font-size:16px;"])},87958:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSP:function(){return We},default:function(){return $e}});var i=t(31096),s=t(57953),n=t(96605),l=t(17746),c=t(86076),o=t(50029),r=t(59499),d=t(27812),m=t(87794),p=t.n(m),u=t(84154),x=t(58255),h=t(9198),v=t.n(h),f=(t(18698),t(87536)),j=t(47300),y=t(85893);function g(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);a&&(i=i.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,i)}return t}function b(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?g(Object(t),!0).forEach((function(a){(0,r.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var N=i.ZP.div.withConfig({displayName:"DatePickerInput__Wrapper",componentId:"sc-1jqz2v-0"})(["display:flex;position:relative;flex-direction:column;gap:4px;margin-bottom:",";"],(function(e){var a;return null!==(a=e.mb)&&void 0!==a?a:"0px"})),w=(0,i.ZP)(v()).withConfig({displayName:"DatePickerInput__StyledDatePicker",componentId:"sc-1jqz2v-1"})(["padding:16px;background-color:",";border:1px solid ",";color:",";cursor:",";border-radius:6px;width:100%;font-size:16px;font-family:inherit;"],(function(e){return e.theme.color.secondary.background}),(function(e){return e.theme.color.secondary.text}),(function(e){return e.theme.color.secondary.text}),(function(e){return e.disabled?"not-allowed":"pointer"})),A=function(e){var a=e.label,t=e.mb,i=e.name,s=e.disabled,n=(e.wrapperZIndex,e.minDate),l=void 0===n?new Date:n,c=e.maxDays,o=void 0===c?0:c,r=(0,f.Gc)().control,d=o&&l?new Date(l.getTime()+24*(o-1)*60*60*1e3):void 0;return(0,y.jsxs)(N,{mb:t,children:[(0,y.jsx)(j.ZT,{fontSize:"12px",children:a}),(0,y.jsx)(f.Qr,{name:i,control:r,render:function(e){var a=e.field;return(0,y.jsx)(w,b(b({},a),{},{selected:a.value,dateFormat:"dd/MM/yyyy",minDate:l,disabled:s,maxDate:d}))}})]})},P=t(79701),S=t(58352),C=t(53572),T=t(55013),I=t(18177),Z=t(15135),O=t(36266),k=t(67162),L=t(10404),_=t(19907),D=t(56257),F=t(95496),M=t(60407),z=t(39197),B=t(36783),U=t(11163),W=t(67294),$=t(74107),E=t(7258),R=t(84359),q=t(78191),V=t(5878),Y=t(22096),H=t(52717),G=t(41392),Q=t(44504),X=t(42581),J=t(25298),K=t(31742),ee=t(67803),ae=t(61834),te=t(96486),ie=t(77333),se=t(99191),ne=t.n(se),le=t(9009),ce=t(94796);function oe(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);a&&(i=i.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,i)}return t}function re(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?oe(Object(t),!0).forEach((function(a){(0,r.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var de=function(e){var a,t,i,s,n,l,c,o=e.noOfDurationDays,r=e.membershipData,d=e.membershipFacts,m=(0,k.vH)().textColor,p=(0,W.useState)(!1),u=p[0],h=p[1],v=(0,W.useState)(!1),f=v[0],j=v[1],g=r.data.membershipClasses.flatMap((function(e){return e.classList})),b=r.data.membershipApptPricings.flatMap((function(e){return e.apptPricingList}));return(0,y.jsxs)("div",{className:"!gap-0",children:[(0,y.jsxs)("div",{className:"space-y-2",children:[(0,y.jsx)("p",{className:"text-xs uppercase text-grey",children:r.data.membershipCategoryName}),(0,y.jsx)("h2",{className:"text-xl font-bold",children:r.data.membershipCategoryName}),(0,y.jsxs)("p",{className:"text-sm font-bold uppercase",children:[r.data.currency,r.data.totalPrice]})]}),(0,y.jsx)(S.Z,{color:"#E6e6e6",my:"20px"}),(0,y.jsx)(q.Z,{html:r.data.description}),d,(0,y.jsxs)("div",{className:"mt-8 grid gap-6",children:[(0,y.jsx)("p",{className:"text-lg font-bold",children:"What you\u2019re eligible"}),r.data.isAllService&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.hs,{})}),(0,y.jsx)("div",{children:(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"grid gap-1",children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Classes"}),(0,y.jsx)("p",{className:"text-sm",children:(null===r||void 0===r?void 0:r.data.ableToBook)===B.ye.Both?"Both onsite & online classes":(null===r||void 0===r?void 0:r.data.ableToBook)===B.ye.Online?"Online classes only":"Onsite classes only"}),(0,y.jsx)("p",{className:"text-sm",children:"You can book for these eligible classes:"})]}),(0,y.jsx)("ul",{className:"my-2 flex flex-col gap-0.5",children:u?g.map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:m})}),(0,y.jsx)("p",{className:"text-sm",children:e.className})]},e.classId)})):g.slice(0,6).map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:m})}),(0,y.jsx)("p",{className:"text-sm",children:e.className})]},e.classId)}))}),g.length>6&&(0,y.jsx)(x.f5,{mt:"20px",mb:"20px",onClick:function(e){return h((function(e){return!e}))},children:u?"Show less":"Show all ".concat(g.length," classes")})]})})]}),!r.data.isAllService&&r.data.isClassIncluded&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.hs,{})}),(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"grid gap-1",children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Classes"}),(0,y.jsx)("p",{className:"text-sm",children:(null===r||void 0===r?void 0:r.data.ableToBook)===B.ye.Both?"Both onsite & online classes":(null===r||void 0===r?void 0:r.data.ableToBook)===B.ye.Online?"Online classes only":"Onsite classes only"}),(0,y.jsx)("p",{className:"text-sm",children:r.data.isUnlimitedClassCredits?"Unlimited class credits":"".concat(r.data.classCredits," class credit").concat(r.data.classCredits>1?"s":""," ").concat("cycle"===r.data.creditsPeriod.toLowerCase()?"".concat(r.data.paymentType===B.uG.OneTime?r.data.durationType===B.qj.Fixed?"within ".concat(r.data.duration," ").concat(r.data.duration>1?r.data.validatePlanType:null===(a=r.data.validatePlanType)||void 0===a?void 0:a.slice(0,-1)).toLowerCase():"within ".concat(o," day").concat(o>1?"s":"").toLowerCase():"every ".concat(r.data.recurringDuration>1?"".concat(r.data.recurringDuration," ").concat(r.data.validatePlanType):null===(t=r.data.validatePlanType)||void 0===t?void 0:t.slice(0,-1)).toLowerCase()):"every ".concat(r.data.creditsPeriod).toLowerCase()," with ").concat(r.data.isClassRollover?"".concat(r.data.rolloverClassCredits):"no"," rollover credit").concat(r.data.rolloverClassCredits>1?"s":"")}),(0,y.jsx)("p",{className:"text-sm",children:"You can book for these eligible classes:"})]}),(0,y.jsx)("ul",{className:"my-2 flex flex-col gap-0.5 text-sm",children:u?g.map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:m})}),(0,y.jsx)("p",{className:"text-sm",children:e.className})]},e.classId)})):g.slice(0,6).map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:m})}),(0,y.jsx)("p",{className:"text-sm",children:e.className})]},e.classId)}))}),g.length>6&&(0,y.jsx)(x.f5,{mt:"20px",mb:"20px",onClick:function(e){return h((function(e){return!e}))},children:u?"Show less":"Show all ".concat(g.length," classes")})]}),(r.data.locationAccessType===B.f$.All||r.data.locationAccessType===B.f$.Selected)&&(0,y.jsx)(ce.Z,{locations:r.data.membershipClassLocations}),r.data.locationAccessType===B.f$.Single&&(0,y.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.kab,{width:"18",height:"18"})}),(0,y.jsx)("p",{className:"text-sm",children:"Choose your preferred location"})]})]})]}),r.data.isAllService&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.Ac,{})}),(0,y.jsx)("div",{children:(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"grid gap-1",children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Appointment"}),(0,y.jsx)("p",{className:"text-sm",children:"Onsite only"}),(0,y.jsx)("p",{className:"text-sm",children:"You can book for these eligible appointments:"})]}),(0,y.jsx)("ul",{className:"my-2 flex flex-col gap-0.5 text-sm",children:f?b.map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:m})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"mb-1 text-sm",children:e.apptName}),(0,y.jsx)("p",{children:e.variantName?"".concat(e.variantName," - ").concat((0,J.lF)(e.duration)):"".concat((0,J.lF)(e.duration))})]})]},e.apptPricingId)})):b.slice(0,6).map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:m})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"mb-1 text-sm",children:e.apptName}),(0,y.jsx)("p",{children:e.variantName?"".concat(e.variantName," - ").concat((0,J.lF)(e.duration)):"".concat((0,J.lF)(e.duration))})]})]},e.apptPricingId)}))}),b.length>6&&(0,y.jsx)(x.f5,{mt:"20px",mb:"20px",onClick:function(e){return j((function(e){return!e}))}
1,children:f?"Show less":"Show all ".concat(b.length," appointments")})]})})]}),!r.data.isAllService&&r.data.isApptIncluded&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.Ac,{})}),(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"grid gap-1",children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Appointment"}),(0,y.jsx)("p",{className:"text-sm",children:"Onsite only"}),(0,y.jsx)("p",{className:"text-sm",children:r.data.isUnlimitedApptCredits?"Unlimited appointment credits":"".concat(r.data.apptCredits," appointment credit").concat(r.data.apptCredits>1?"s":""," ").concat("cycle"===r.data.creditsPeriod.toLowerCase()?"".concat(r.data.paymentType===B.uG.OneTime?r.data.durationType===B.qj.Fixed?"within ".concat(r.data.duration," ").concat(r.data.duration>1?r.data.validatePlanType:null===(i=r.data.validatePlanType)||void 0===i?void 0:i.slice(0,-1)).toLowerCase():"within ".concat(o," day").concat(o>1?"s":"").toLowerCase():"every ".concat(r.data.recurringDuration>1?"".concat(r.data.recurringDuration," ").concat(r.data.validatePlanType):null===(s=r.data.validatePlanType)||void 0===s?void 0:s.slice(0,-1)).toLowerCase()):"every ".concat(r.data.creditsPeriod).toLowerCase()," with ").concat(r.data.isApptRollover?"".concat(r.data.rolloverApptCredits):"no"," rollover credit").concat(r.data.rolloverApptCredits>1?"s":"")}),(0,y.jsx)("p",{className:"text-sm",children:"You can book for these eligible appointments:"})]}),(0,y.jsx)("ul",{className:"my-2 flex flex-col gap-0.5 text-sm",children:f?b.map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:m})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"mb-1 text-sm",children:e.apptName}),(0,y.jsx)("p",{children:e.variantName?"".concat(e.variantName," - ").concat((0,J.lF)(e.duration)):"".concat((0,J.lF)(e.duration))})]})]},e.apptPricingId)})):b.slice(0,6).map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:m})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"mb-1 text-sm",children:e.apptName}),(0,y.jsx)("p",{children:e.variantName?"".concat(e.variantName," - ").concat((0,J.lF)(e.duration)):"".concat((0,J.lF)(e.duration))})]})]},e.apptPricingId)}))}),b.length>6&&(0,y.jsx)(x.f5,{mt:"20px",mb:"20px",onClick:function(e){return j((function(e){return!e}))},children:f?"Show less":"Show all ".concat(b.length," appointments")})]}),(r.data.apptLocationAccessType===B.f$.All||r.data.apptLocationAccessType===B.f$.Selected)&&(0,y.jsx)(ce.Z,{locations:r.data.membershipApptLocations}),r.data.apptLocationAccessType===B.f$.Single&&(0,y.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.kab,{width:"18",height:"18"})}),(0,y.jsx)("p",{className:"text-sm",children:"Choose your preferred location"})]})]})]}),r.data.isAllService&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.Hk,{})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Outlet Access"}),(0,y.jsx)("p",{className:"mb-4 mt-2 text-sm",children:"Access our outlets at your convenience that fits your schedule, by using this plan\u2019s QR code to check-in any time."})]})]}),!r.data.isAllService&&r.data.isOutletAccessIncluded&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.Hk,{})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Outlet Access"}),(0,y.jsx)("p",{className:"text-sm",children:r.data.isUnlimitedOutletAccessCredits?"Unlimited outlet access credits":"".concat(r.data.outletAccessCredits," appointment credit").concat(r.data.outletAccessCredits>1?"s":""," ").concat("cycle"===r.data.creditsPeriod.toLowerCase()?"".concat(r.data.paymentType===B.uG.OneTime?r.data.durationType===B.qj.Fixed?"within ".concat(r.data.duration," ").concat(r.data.duration>1?r.data.validatePlanType:null===(n=r.data.validatePlanType)||void 0===n?void 0:n.slice(0,-1)).toLowerCase():"within ".concat(o," day").concat(o>1?"s":"").toLowerCase():"every ".concat(r.data.recurringDuration>1?"".concat(r.data.recurringDuration," ").concat(r.data.validatePlanType):null===(l=r.data.validatePlanType)||void 0===l?void 0:l.slice(0,-1)).toLowerCase()):"every ".concat(r.data.creditsPeriod).toLowerCase()," with ").concat(r.data.isOutletAccessRollover?"".concat(r.data.rolloverOutletAccessCredits):"no"," rollover credit").concat(r.data.rolloverOutletAccessCredits>1?"s":"")}),(0,y.jsx)("p",{className:"mb-4 mt-2 text-sm",children:"Access our outlets at your convenience that fits your schedule, by using this plan\u2019s QR code to check-in any time."}),(r.data.outletAccessType===B.f$.All||r.data.outletAccessType===B.f$.Selected)&&(0,y.jsx)(ce.Z,{locations:null===(c=r.data.membershipOutletAccessLocations)||void 0===c?void 0:c.map((function(e){return re(re({},e),{},{name:e.locationName})}))}),r.data.outletAccessType===B.f$.Single&&(0,y.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.kab,{width:"18",height:"18"})}),(0,y.jsx)("p",{className:"text-sm",children:"Choose your preferred location"})]})]})]}),r.data.isAllowFamilyMembership&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.Lk,{})}),(0,y.jsxs)("div",{className:"grid gap-1",children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Family access"}),(0,y.jsx)("p",{className:"text-sm",children:r.data.hasLimitTotalPaxFamilyMember?"Up to ".concat(r.data.totalPaxNumberFamilyMember," family member").concat(r.data.totalPaxNumberFamilyMember>1?"s":""):"Unlimited family members"}),(0,y.jsx)("p",{className:"text-sm",children:"You cannot change your family access after your membership starts"})]})]}),r.data.isAllService&&(0,y.jsxs)("div",{children:[(0,y.jsx)(S.Z,{color:m,my:"32px"}),(r.data.allServiceLocationAccessType===B.f$.All||r.data.allServiceLocationAccessType===B.f$.Selected)&&(0,y.jsx)(ce.Z,{locations:r.data.membershipAllServiceLocations}),r.data.allServiceLocationAccessType===B.f$.Single&&(0,y.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.kab,{stroke:m,width:"18",height:"18"})}),(0,y.jsx)("p",{className:"text-sm",children:"Choose your preferred location"})]})]})]})]})}
1,me=t(24499),pe=t(89506),ue=t(37821),xe=t(81718),he=t(36400),ve=t(79377),fe=t(38758),je=t(3798),ye=t(64249),ge=t(67208),be=t(4480),Ne=t(11634);function we(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);a&&(i=i.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,i)}return t}function Ae(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?we(Object(t),!0).forEach((function(a){(0,r.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):we(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var Pe=i.ZP.div.withConfig({displayName:"MembershipPaymentSummary__PriceText",componentId:"sc-fz0niw-0"})(["display:flex;justify-content:space-between;&:not(:last-child){margin-bottom:20px;}"]),Se=i.ZP.div.withConfig({displayName:"MembershipPaymentSummary__Facts",componentId:"sc-fz0niw-1"})(["display:flex;flex-direction:column;gap:8px;width:100%;padding:12px 14px;background:",";border:1px solid #ededed;border-radius:8px;"],(function(e){return e.theme.color.secondary.background})),Ce=(i.ZP.div.withConfig({displayName:"MembershipPaymentSummary__Fact",componentId:"sc-fz0niw-2"})(["display:flex;gap:12px;align-items:flex-start;p{font-size:14px;font-weight:400;line-height:21px;}svg{@media ","{min-width:16px;}}.tooltip{padding:28px;}"],M.vb.tabletAndDown),i.ZP.div.withConfig({displayName:"MembershipPaymentSummary__Wrapper",componentId:"sc-fz0niw-3"})(["padding:60px 0px;max-width:1000px;min-width:",";margin:0 auto;h3{line-height:24px;}img{max-width:200px;}@media ","{padding:0;min-width:auto;max-width:auto;}"],(function(e){return e.mutateLoading?"0px":"1000px"}),M.vb.tabletAndDown)),Te=i.ZP.div.withConfig({displayName:"MembershipPaymentSummary__PaymentWrapper",componentId:"sc-fz0niw-4"})(["display:flex;align-items:flex-start;flex-wrap:wrap;gap:60px;background-color:",";margin:0 auto;margin-top:40px;@media ","{margin-top:0px;flex-direction:column-reverse;padding:0;gap:0px;> div{width:100%;max-width:100vw;}}"],(function(e){return e.theme.color.primary}),M.vb.tabletAndDown),Ie=i.ZP.div.withConfig({displayName:"MembershipPaymentSummary__DetailsWrapper",componentId:"sc-fz0niw-5"})(["flex:1.3;min-width:300px;max-width:560px;@media ","{padding:24px 16px;
1min-width:200px;}"],M.vb.tabletAndDown),Ze=(i.ZP.ul.withConfig({displayName:"MembershipPaymentSummary__ClassList",componentId:"sc-fz0niw-6"})(["display:grid;grid-template-columns:1fr 1fr;width:100%;gap:6px;list-style-type:disc;margin-left:14px;li{font-size:14px;line-height:21px;}"]),i.ZP.h1.withConfig({displayName:"MembershipPaymentSummary__MemberShipDetailLabel",componentId:"sc-fz0niw-7"})(["font-size:20px;font-weight:700;line-height:30px;margin-top:32px;margin-bottom:20px;"]),function(){var e,a,t,i,n,c,r,m,h,v,g,b,N,w,M,se,ce,oe,re,we,Ze,Me,ze,Be,Ue,We,$e,Ee,Re,qe,Ve,Ye,He,Ge,Qe,Xe,Je,Ke,ea,aa,ta,ia,sa,na,la,ca,oa,ra,da,ma,pa,ua=(0,ve.t)().data,xa=(0,G.useAuthContext)(),ha=xa.profile,va=xa.businessInfo,fa=(0,_.Z)().showPricing,ja=(0,L.P)().isTabletOrMobile,ya=(0,U.useRouter)(),ga=ya.query.selectedDate,ba=(0,W.useState)(!1),Na=ba[0],wa=(ba[1],(0,W.useState)(!1)),Aa=wa[0],Pa=(wa[1],(0,k.vH)()),Sa=Pa.textColor,Ca=Pa.secondaryBg,Ta=null===ha||void 0===ha?void 0:ha.cUserId,Ia=(0,s.Ap)("/parentchildaccount/".concat(Ta),{shouldFetch:!!Ta}),Za=Ia.data,Oa=(Ia.error,Za?null===Za||void 0===Za||null===(e=Za.data)||void 0===e?void 0:e.map((function(e){return{label:e.name,value:e.cUserId}})):[]),ka=(0,s.Ap)("/accounts/".concat(Ta,"/show-family-member?customerMembershipId=").concat(ya.query.id,"&businessId=").concat(null===va||void 0===va?void 0:va.businessInfoId),{shouldFetch:!!Ta}).data,La=(0,s.Tu)().handleMutate,_a=(0,be.rb)(ge.PM),Da=(0,s.Ap)("/master-data/class-location-list").data,Fa=(0,s.Ap)("/theme/default/membership_detail/section").data,Ma=(0,W.useState)(!1),za=Ma[0],Ba=Ma[1],Ua=(0,W.useState)(!1),Wa=Ua[0],$a=Ua[1],Ea=(0,W.useState)(!1),Ra=Ea[0],qa=Ea[1],Va=(0,W.useState)(!1),Ya=Va[0],Ha=Va[1],Ga=(0,W.useState)([]),Qa=Ga[0],Xa=Ga[1],Ja=(0,Q.Z)(),Ka=Ja.promoValues,et=Ja.handleResetPromoCode,at=(0,xe.q)().reset,tt=(0,ie.jU)(ya.query.id||"").data,it=(null===Da||void 0===Da||null===(a=Da.data)||void 0===a?void 0:a.map((function(e){return{label:e.name,value:e.locationId}})))||[],st=Oa?[{label:"Myself",value:Ta}].concat((0,d.Z)(Oa)):[{label:"Myself",value:Ta}];(0,W.useEffect)((function(){et(),at()}),[]);var nt=E.Ry().shape({location:E.Z_().required(),outlet:E.Z_().required()}),lt=(0,f.cI)({defaultValues:{membership:"",location:void 0,outlet:void 0,buyFor:Ta,date:(0,D.io)(ga),membershipPriceId:"",locationId:"",outletId:"",apptLocationId:"",allServiceLocationId:"",soldAtLocation:""},resolver:(0,F.X)(nt),mode:"onChange"}),ct=(0,me.Z)("membership",lt.watch("membershipPriceId")),ot=ct.membershipData,rt=ct.membershipPriceData,dt=ct.priceData;(0,W.useEffect)((function(){var e,a;null!==ot&&void 0!==ot&&ot.data&<.reset({membership:ot.data.membershipName,date:vt?(0,D.io)(new Date):(0,D.io)(null!==ot&&void 0!==ot&&null!==(e=ot.data)&&void 0!==e&&e.endDate?null===ot||void 0===ot||null===(a=ot.data)||void 0===a?void 0:a.endDate:new Date),location:void 0,buyFor:Ta})}),[ot]),(0,W.useEffect)((function(){var e;ot&&0===ot.code&<.setValue("membershipPriceId",null===(e=ot.data.membershipPricings[0])||void 0===e?void 0:e.membershipPriceId)}),[ot]);var mt="Predefined"===(null===ot||void 0===ot||null===(t=ot.data)||void 0===t?void 0:t.durationType),pt=lt.watch("location")||"",ut=lt.watch("membershipPriceId")||(null===ot||void 0===ot||null===(i=ot.data)||void 0===i||null===(n=i.membershipPricings)||void 0===n||null===(c=n[0])||void 0===c?void 0:c.membershipPriceId),xt=null!==(r=null===ot||void 0===ot||null===(m=ot.data)||void 0===m||null===(h=m.membershipPricings)||void 0===h||null===(v=h.find((function(e){return e.membershipPriceId===ut})))||void 0===v?void 0:v.name)&&void 0!==r?r:"",ht=null!==(g=null===ot||void 0===ot||null===(b=ot.data)||void 0===b||null===(N=b.membershipPricings)||void 0===N||null===(w=N.find((function(e){return e.membershipPriceId===ut})))||void 0===w?void 0:w.isMobileVerified)&&void 0!==g&&g;if(!ot)return null;var vt="OneTime"===ot.data.paymentType,ft=(null===ot||void 0===ot||null===(M=ot.data)||void 0===M||null===(se=M.membershipPricings)||void 0===se?void 0:se.map((function(e){return{label:"".concat(fa(e.price)," \u2014 ").concat(e.name),value:e.membershipPriceId}})))||[],jt=function(){Ba(!za)},yt=function(){return $a(!Wa)},gt=function(){return qa(!Ra)},bt=ot.data.membershipClasses.flatMap((function(e){return e.classList})),Nt=ot.data.membershipApptPricings.flatMap((function(e){return e.apptPricingList})),wt=(function(e,a){switch(e){case"Months":return a>1?"months":"month";case"Years":return a>1?"years":"year";case"Days":return a>1?"days":"day";case"Weeks":;}}(ot.data.validatePlanType,(null===ot||void 0===ot||null===(ce=ot.data)||void 0===ce?void 0:ce.duration)||(null===ot||void 0===ot||null===(oe=ot.data)||void 0===oe?void 0:oe.minCommitmentPeriod)),(0,y.jsx)(Se,{children:ot.data.isAutoGenerated?(0,y.jsx)(X.Ct,Ae({},ot.data)):(0,y.jsx)(q.Z,{className:"whitespace-pre-line text-sm",html:null!==(re=null===(we=ot.data)||void 0===we?void 0:we.customDescription)&&void 0!==re?re:""})})),At="CustomerSelected"===ot.data.soldAtSelectionMode&&!Boolean(lt.watch("soldAtLocation"))||!ot.data.isAllService&&ot.data.isClassIncluded&&"Single"===ot.data.locationAccessType&&"Online"!==ot.data.ableToBook&&!Boolean(lt.watch("locationId"))||!ot.data.isAllService&&ot.data.isApptIncluded&&"Single"===ot.data.apptLocationAccessType&&"Online"!==ot.data.ableToBook&&!Boolean(lt.watch("apptLocationId"))||!ot.data.isAllService&&ot.data.isOutletAccessIncluded&&"Single"===ot.data.outletAccessType&&"Online"!==ot.data.ableToBook&&!Boolean(lt.watch("outletId")),Pt=["Membership Duration: ".concat(ot.data.duration?"".concat(ot.data.duration," ").concat(ot.data.validatePlanType):"No expiry"),(0,z.Wu)(ot.data.ableToBook)];"Online"!==ot.data.ableToBook&&Pt.splice(1,0,"".concat(ot.data.location," ").concat("Selected"===ot.data.locationAccessType?"":"access"));var St=null!==Ka&&void 0!==Ka&&Ka.isVerified&&null!==Ka&&void 0!==Ka&&Ka.promoCode?null!==(Ze=null===Ka||void 0===Ka?void 0:Ka.totalAmountAfterDiscount)&&void 0!==Ze?Ze:0:(null===rt||void 0===rt||null===(Me=rt.data)||void 0===Me?void 0:Me.subTotal)||(null===ot||void 0===ot?void 0:ot.data.subTotal),Ct=null!==Ka&&void 0!==Ka&&Ka.isVerified&&null!==Ka&&void 0!==Ka&&Ka.promoCode?null!==(ze=null===Ka||void 0===Ka?void 0:Ka.paidAmount)&&void 0!==ze?ze:0:null!==(Be=null===rt||void 0===rt?void 0:rt.data.totalPrice)&&void 0!==Be?Be:0,Tt=((null===Ka||void 0===Ka?void 0:Ka.isVerified)&&(null===Ka||void 0===Ka||Ka.promoCode),null!==Ka&&void 0!==Ka&&Ka.isVerified&&null!==Ka&&void 0!==Ka&&Ka.promoCode?Number(null!==(Ue=null===Ka||void 0===Ka?void 0:Ka.storeCreditsAmount)&&void 0!==Ue?Ue:0):Number(null!==(We=null===rt||void 0===rt?void 0:rt.data.storeCreditsAmount)&&void 0!==We?We:0)),It=null!==Ka&&void 0!==Ka&&Ka.isVerified&&null!==Ka&&void 0!==Ka&&Ka.promoCode?null!==($e=null===Ka||void 0===Ka?void 0:Ka.taxAmount)&&void 0!==$e?$e:0:null!==(Ee=null===rt||void 0===rt?void 0:rt.data.taxAmount)&&void 0!==Ee?Ee:0,Zt=function(){return ot.data.totalPaxNumberFamilyMember-Qa.length-1},Ot=ot.data.durationStart&&ot.data.durationEnd?(0,ee.Z)(new Date(ot.data.durationEnd),new Date(ot.data.durationStart))+1:0,kt=[lt.watch("locationId"),lt.watch("apptLocationId"),lt.watch("outletId")].filter(
1Boolean),Lt="Single"!==ot.data.locationAccessType&&"Single"!==ot.data.apptLocationAccessType&&"Single"!==ot.data.outletAccessType,_t=(0,W.useMemo)((function(){if(null===Da||void 0===Da||!Da.data.length)return[];if(Lt){var e=ot.data.membershipClassLocations,a=ot.data.membershipApptLocations,t=ot.data.membershipOutletAccessLocations,i=[].concat((0,d.Z)(e),(0,d.Z)(a),(0,d.Z)(t));return Array.from(new Map(i.map((function(e){return[e.locationId,e]}))).values()).map((function(e){return{label:e.name||e.locationName,value:e.locationId}}))}return null===Da||void 0===Da?void 0:Da.data.filter((function(e){return kt.includes(e.locationId)})).map((function(e){return{label:e.name,value:e.locationId}}))}),[kt]);(0,W.useEffect)((function(){var e=lt.getValues("soldAtLocation");!e||kt.includes(e)||Lt||lt.setValue("soldAtLocation","")}),[kt]);var Dt=!ot.data.isAllService&&ot.data.isClassIncluded&&"Single"===ot.data.locationAccessType&&"Online"!==ot.data.ableToBook,Ft=!ot.data.isAllService&&ot.data.isApptIncluded&&"Single"===ot.data.apptLocationAccessType,Mt=!ot.data.isAllService&&ot.data.isOutletAccessIncluded&&"Single"===ot.data.outletAccessType,zt=(Dt||Ft||Mt||ot.data.soldAtSelectionMode,(0,he.$)("allowPurchaseOnNegativeWallet",Ct)),Bt=zt.isNegativeWalletBlocked,Ut=zt.toggleTopup,Wt=zt.topupView;return(0,y.jsx)(O.Z,{children:Ya?(0,y.jsx)(Z.Z,{}):(0,y.jsxs)(l.Z,{title:"Membership Payment Summary",fixedContent:"Confirm and pay",children:[(0,y.jsx)(ye.Z,{onSubmit:function(){return ya.push("/membership")},onBackground:function(){var e=(0,o.Z)(p().mark((function e(a){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:La({url:"/billings/".concat(a,"/failed"),method:"put",data:{errorCode:"",errorDesc:"Payment session has expired"},onSuccess:function(){_a()}});case 1:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}()}),(0,y.jsxs)(Ce,{mutateLoading:Ya,children:[(0,y.jsx)(u.Z,{links:[{text:"Membership",href:"/membership"},{text:"Confirm and Pay",href:"/membership/".concat(ot.data.membershipId)}]}),(0,y.jsxs)(Te,{children:[(0,y.jsxs)(Ie,{children:[ja&&(0,y.jsx)(Oe,{color:"#787878",fontSize:"12px",children:ot.data.membershipCategoryName}),(0,y.jsx)(j.ZT,{as:"h3",fontSize:ja?"16px":"20px",fontWeight:"700",mb:"16px",className:"header",children:ja?ot.data.membershipName:"Your Membership"}),(0,y.jsx)(q.Z,{html:ot.data.description}),wt,ja?(0,y.jsx)(ke,{onClick:jt,children:"More Info"}):(0,y.jsxs)("div",{className:"mt-8 grid gap-6",children:[(0,y.jsx)("p",{className:"text-lg font-bold",children:"What you\u2019re eligible"}),ot.data.isAllService&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.hs,{})}),(0,y.jsx)("div",{children:(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"grid gap-1",children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Classes"}),(0,y.jsx)("p",{className:"text-sm",children:(null===ot||void 0===ot?void 0:ot.data.ableToBook)===B.ye.Both?"Both onsite & online classes":(null===ot||void 0===ot?void 0:ot.data.ableToBook)===B.ye.Online?"Online classes only":"Onsite classes only"}),(0,y.jsx)("p",{className:"text-sm",children:"You can book for these eligible classes:"})]}),(0,y.jsx)("ul",{className:"my-2 flex flex-col gap-0.5 ",children:Na?bt.map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:Sa})}),(0,y.jsx)("p",{className:"text-sm",children:e.className})]},e.classId)})):bt.slice(0,6).map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:Sa})}),(0,y.jsx)("p",{className:"text-sm",children:e.className})]},e.classId)}))}),bt.length>6&&(0,y.jsxs)(x.f5,{mb:"20px",onClick:yt,children:["Show all ",bt.length," classes"]})]})})]}),!ot.data.isAllService&&ot.data.isClassIncluded&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.hs,{})}),(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"grid gap-1",children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Classes"}),(0,y.jsx)("p",{className:"text-sm",children:(null===ot||void 0===ot?void 0:ot.data.ableToBook)===B.ye.Both?"Both onsite & online classes":(null===ot||void 0===ot?void 0:ot.data.ableToBook)===B.ye.Online?"Online classes only":"Onsite classes only"}),(0,y.jsx)("p",{className:"text-sm",children:ot.data.isUnlimitedClassCredits?"Unlimited class credits":"".concat(ot.data.classCredits," class credit").concat(ot.data.classCredits>1?"s":""," ").concat("cycle"===ot.data.creditsPeriod.toLowerCase()?"".concat(ot.data.paymentType===B.uG.OneTime?ot.data.durationType===B.qj.Fixed?"within ".concat(ot.data.duration," ").concat(ot.data.duration>1?ot.data.validatePlanType:null===(Re=ot.data.validatePlanType)||void 0===Re?void 0:Re.slice(0,-1)).toLowerCase():"within ".concat(Ot," day").concat(Ot>1?"s":"").toLowerCase():"every ".concat(ot.data.recurringDuration>1?"".concat(ot.data.recurringDuration," ").concat(ot.data.validatePlanType):null===(qe=ot.data.validatePlanType)||void 0===qe?void 0:qe.slice(0,-1)).toLowerCase()):"every ".concat(ot.data.creditsPeriod).toLowerCase()," ").concat(ot.data.isClassRollover?"with ".concat(ot.data.rolloverClassCredits," rollover credit").concat(ot.data.rolloverClassCredits>1?"s":""):"")}),(0,y.jsx)("p",{className:"text-sm",children:"You can book for these eligible classes:"})]}),(0,y.jsx)("ul",{className:"my-2 flex flex-col gap-0.5 gap-x-10 text-sm",children:Na?bt.map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:Sa})}),(0,y.jsx)("p",{className:"text-sm",children:e.className})]},e.classId)})):bt.slice(0,6).map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:Sa})}),(0,y.jsx)("p",{className:"text-sm",children:e.className})]},e.classId)}))}),bt.length>6&&(0,y.jsxs)(x.f5,{mb:"20px",onClick:yt,children:["Show all ",bt.length," classes"]}
1)]}),(ot.data.locationAccessType===B.f$.Selected||ot.data.locationAccessType===B.f$.All)&&(0,y.jsxs)("div",{className:"mt-3 flex w-full flex-col gap-2",children:[(0,y.jsx)("p",{children:"Your location for classes will be in:"}),(0,y.jsx)("div",{className:"grid w-full grid-cols-2 gap-2",children:ot.data.membershipClassLocations.map((function(e){return(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)($.iuu,{color:Sa}),(0,y.jsx)("p",{children:e.name})]})}))})]}),ot.data.locationAccessType===B.f$.Single&&(0,y.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.kab,{width:"18",height:"18"})}),(0,y.jsx)("p",{className:"text-sm",children:"Choose your preferred location"})]})]})]}),ot.data.isAllService&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.Ac,{})}),(0,y.jsx)("div",{children:(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"grid gap-1",children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Appointment"}),(0,y.jsx)("p",{className:"text-sm",children:"Onsite only"}),(0,y.jsx)("p",{className:"text-sm",children:"You can book for these eligible appointments:"})]}),(0,y.jsx)("ul",{className:"my-2 grid grid-cols-2 gap-x-10 gap-y-2 text-sm",children:Aa?Nt.map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:"#010101"})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"mb-1 text-sm",children:e.apptName}),(0,y.jsx)("p",{children:e.variantName?"".concat(e.variantName," - ").concat((0,J.lF)(e.duration)):"".concat((0,J.lF)(e.duration))})]})]},e.apptPricingId)})):Nt.slice(0,6).map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:"#010101"})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"mb-1 text-sm",children:e.apptName}),(0,y.jsx)("p",{children:e.variantName?"".concat(e.variantName," - ").concat((0,J.lF)(e.duration)):"".concat((0,J.lF)(e.duration))})]})]},e.apptPricingId)}))}),Nt.length>6&&(0,y.jsxs)(x.f5,{mb:"20px",onClick:gt,children:["Show all ",Nt.length," appointments"]})]})})]}),!ot.data.isAllService&&ot.data.isApptIncluded&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.Ac,{})}),(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"grid gap-1",children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Appointment"}),(0,y.jsx)("p",{className:"text-sm",children:"Onsite only"}),(0,y.jsx)("p",{className:"text-sm",children:ot.data.isUnlimitedApptCredits?"Unlimited appointment credits":"".concat(ot.data.apptCredits," appointment credit").concat(ot.data.apptCredits>1?"s":""," ").concat("cycle"===ot.data.creditsPeriod.toLowerCase()?"".concat(ot.data.paymentType===B.uG.OneTime?ot.data.durationType===B.qj.Fixed?"within ".concat(ot.data.duration," ").concat(ot.data.duration>1?ot.data.validatePlanType:null===(Ve=ot.data.validatePlanType)||void 0===Ve?void 0:Ve.slice(0,-1)).toLowerCase():"within ".concat(Ot," day").concat(Ot>1?"s":"").toLowerCase():"every ".concat(ot.data.recurringDuration>1?"".concat(ot.data.recurringDuration," ").concat(ot.data.validatePlanType):null===(Ye=ot.data.validatePlanType)||void 0===Ye?void 0:Ye.slice(0,-1)).toLowerCase()):"every ".concat(ot.data.creditsPeriod).toLowerCase()," ").concat(ot.data.isApptRollover?"with ".concat(ot.data.rolloverApptCredits," rollover credit").concat(ot.data.rolloverApptCredits>1?"s":""):"")}),(0,y.jsx)("p",{className:"text-sm",children:"You can book for these eligible appointments:"})]}),(0,y.jsx)("ul",{className:"my-2 flex flex-col gap-0.5 gap-x-10 text-sm",children:Aa?Nt.map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:Sa})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"mb-1 text-sm",children:e.apptName}),(0,y.jsx)("p",{children:e.variantName?"".concat(e.variantName," - ").concat((0,J.lF)(e.duration)):"".concat((0,J.lF)(e.duration))})]})]},e.apptPricingId)})):Nt.slice(0,6).map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.iji,{stroke:Sa})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"mb-1 text-sm",children:e.apptName}),(0,y.jsx)("p",{children:e.variantName?"".concat(e.variantName," - ").concat((0,J.lF)(e.duration)):"".concat((0,J.lF)(e.duration))})]})]},e.apptPricingId)}))}),Nt.length>6&&(0,y.jsxs)(x.f5,{mb:"20px",onClick:gt,children:["Show all ",Nt.length," appointments"]})]}),(ot.data.apptLocationAccessType===B.f$.Selected||ot.data.apptLocationAccessType===B.f$.All)&&(0,y.jsxs)("div",{className:"mt-3 flex w-full flex-col gap-2",children:[(0,y.jsx)("p",{children:"Your location for appointments will be in:"}),(0,y.jsx)("div",{className:"grid w-full grid-cols-2 gap-2",children:ot.data.membershipApptLocations.map((function(e){return(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)($.iuu,{color:Sa}),(0,y.jsx)("p",{children:e.name})]})}))})]}),ot.data.apptLocationAccessType===B.f$.Single&&(0,y.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.kab,{width:"18",height:"18"})}),(0,y.jsx)("p",{className:"text-sm",children:"Choose your preferred location"})]})]})]}),ot.data.isAllService&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.Hk,{})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Outlet Acce
1ss"}),(0,y.jsx)("p",{className:"mb-4 mt-2 text-sm",children:"Access our outlets at your convenience that fits your schedule, by using this plan\u2019s QR code to check-in any time."})]})]}),!ot.data.isAllService&&ot.data.isOutletAccessIncluded&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.Hk,{})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Outlet Access"}),(0,y.jsx)("p",{className:"text-sm",children:ot.data.isUnlimitedOutletAccessCredits?"Unlimited outlet access credits":"".concat(ot.data.outletAccessCredits," appointment credit").concat(ot.data.outletAccessCredits>1?"s":""," ").concat("cycle"===ot.data.creditsPeriod.toLowerCase()?"".concat(ot.data.paymentType===B.uG.OneTime?ot.data.durationType===B.qj.Fixed?"within ".concat(ot.data.duration," ").concat(ot.data.duration>1?ot.data.validatePlanType:null===(He=ot.data.validatePlanType)||void 0===He?void 0:He.slice(0,-1)).toLowerCase():"within ".concat(Ot," day").concat(Ot>1?"s":"").toLowerCase():"every ".concat(ot.data.recurringDuration>1?"".concat(ot.data.recurringDuration," ").concat(ot.data.validatePlanType):null===(Ge=ot.data.validatePlanType)||void 0===Ge?void 0:Ge.slice(0,-1)).toLowerCase()):"every ".concat(ot.data.creditsPeriod).toLowerCase()," ").concat(ot.data.isOutletAccessRollover?"with ".concat(ot.data.rolloverOutletAccessCredits,"\n rollover credit").concat(ot.data.rolloverOutletAccessCredits>1?"s":""):"")}),(0,y.jsx)("p",{className:"mb-4 mt-2 text-sm",children:"Access our outlets at your convenience that fits your schedule, by using this plan\u2019s QR code to check-in any time."}),(ot.data.outletAccessType===B.f$.Selected||ot.data.outletAccessType===B.f$.All)&&(0,y.jsxs)("div",{className:"mt-3 flex w-full flex-col gap-2",children:[(0,y.jsx)("p",{children:"Your location to access will be in:"}),(0,y.jsx)("div",{className:"grid w-full grid-cols-2 gap-2",children:ot.data.membershipOutletAccessLocations.map((function(e){return(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)($.iuu,{color:Sa}),(0,y.jsx)("p",{children:e.locationName})]})}))})]}),ot.data.outletAccessType===B.f$.Single&&(0,y.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.kab,{width:"18",height:"18"})}),(0,y.jsx)("p",{className:"text-sm",children:"Choose your preferred location"})]})]})]}),ot.data.isAllowFamilyMembership&&(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.Lk,{})}),(0,y.jsxs)("div",{className:"grid gap-1",children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Family access"}),(0,y.jsx)("p",{className:"text-sm",children:ot.data.hasLimitTotalPaxFamilyMember?"Up to ".concat(ot.data.totalPaxNumberFamilyMember," family member").concat(ot.data.totalPaxNumberFamilyMember>1?"s":""):"Unlimited family members"}),(0,y.jsx)("p",{className:"text-sm",children:"You cannot change your family access after your membership starts"})]})]})]}),ja?(0,y.jsx)(S.Z,{color:"transparent",my:"24px"}):(0,y.jsx)(S.Z,{color:Sa,my:"32px"}),ot.data.isAllService&&(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"mb-5 text-lg font-bold",children:"Where you can access"}),(0,y.jsxs)("div",{className:"flex items-start space-x-5",children:[(0,y.jsx)("div",{children:(0,y.jsx)(ae.g,{})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"text-sm font-medium",children:"Location access"}),ot.data.allServiceLocationAccessType===B.f$.All&&(0,y.jsx)("div",{className:"my-2",children:(0,y.jsxs)("div",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.kab,{stroke:"#010101",width:"18",height:"18"})}),(0,y.jsx)("p",{className:"text-sm",children:"Across all locations"})]})}),ot.data.allServiceLocationAccessType===B.f$.Selected&&(0,y.jsx)("div",{className:"my-2",children:(0,y.jsx)("div",{className:"my-2 grid grid-cols-2 text-sm",children:ot.data.membershipAllServiceLocations.map((function(e){return(0,y.jsxs)("li",{className:"flex space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.kab,{stroke:"#010101",width:"18",height:"18"})}),(0,y.jsx)("p",{className:"text-sm",children:e.name})]},e.locationId)}))})}),ot.data.allServiceLocationAccessType===B.f$.Single&&(0,y.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsx)($.kab,{stroke:"#010101",width:"18",height:"18"})}),(0,y.jsx)("p",{className:"text-sm",children:"Choose your preferred location"})]})]})]})]}),ot.data.isAllowFamilyMembership&&0===(null===ka||void 0===ka?void 0:ka.code)&&(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)("div",{className:"my-8",children:[(0,y.jsx)("p",{className:"font-semibold",children:"Select your option"}),(0,y.jsx)("p",{className:"mt-5 text-xs ".concat(!ot.data.hasLimitTotalPaxFamilyMember&&"mb-3"),children:"Select family account for access"}),ot.data.hasLimitTotalPaxFamilyMember&&(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("p",{className:"mb-3 mt-5 text-xs",children:["You can select up to ",ot.data.totalPaxNumberFamilyMember-1," pax"]}
1),(0,y.jsxs)("div",{className:"flex items-center space-x-2 rounded-full bg-[#29339B17] px-3 py-1",children:[(0,y.jsx)("div",{className:"flex items-center justify-center text-primary",children:(0,y.jsx)($.t0Z,{})}),(0,y.jsxs)("p",{className:"text-sm font-bold text-primary",children:[Qa.length," pax selected"]})]})]}),(0,y.jsxs)("div",{className:"mt-2 grid grid-cols-2 gap-4",children:[(0,y.jsx)("div",{className:"rounded-xl bg-off-white px-4 py-3",children:(0,y.jsxs)("div",{className:"flex cursor-default items-center space-x-2",children:[null!==ha&&void 0!==ha&&null!==(Qe=ha.info)&&void 0!==Qe&&Qe.profileImageUrl?(0,y.jsx)("img",{onError:(0,Ne.W)(),src:ha.info.profileImageUrl,className:"h-10 w-10 rounded-full",referrerPolicy:"no-referrer",alt:ha.firstName}):(0,y.jsx)(Le,{className:"flex h-10 w-10 items-center justify-center rounded-full text-white",$_css:ne()(ha.firstName).color,children:null===(Xe=ha.firstName)||void 0===Xe?void 0:Xe.slice(0,1).toUpperCase()}),(0,y.jsxs)("div",{children:[(0,y.jsxs)("p",{className:"text-sm text-grey",children:[ha.firstName," ",ha.lastName]}),(0,y.jsx)("p",{className:"text-xs text-grey",children:"(You are included)"})]})]})}),ka.data.map((function(e){var a,t=function(e){return Qa.map((function(e){return e.id})).includes(e)};return(0,y.jsx)("div",{className:(0,K.cn)("group cursor-pointer rounded-xl bg-off-white px-4 py-3",{"cursor-not-allowed bg-secondary-bg":ot.data.hasLimitTotalPaxFamilyMember&&Zt()<=0&&!t(e.id)}),style:Ae({border:"1px solid ".concat(Sa)},t(e.id)?{backgroundColor:Ca,color:Sa}:{}),onClick:function(){t(e.id)||ot.data.hasLimitTotalPaxFamilyMember&&!(ot.data.hasLimitTotalPaxFamilyMember&&Zt()>0)?Xa((function(a){return a.filter((function(a){return a.childId!==e.childId}))})):Xa((function(a){return[].concat((0,d.Z)(a),[e])}))},children:(0,y.jsxs)("div",{className:"flex items-center space-x-2",children:[e.profileImageUrl?(0,y.jsx)("img",{onError:(0,Ne.W)(),src:e.profileImageUrl,className:"h-10 w-10 rounded-full",referrerPolicy:"no-referrer",alt:e.fullName}):(0,y.jsx)(_e,{className:"flex h-10 w-10 items-center justify-center rounded-full text-white",$_css2:ne()(e.fullName).color,children:null===(a=e.fullName)||void 0===a?void 0:a.slice(0,1).toUpperCase()}),(0,y.jsx)("p",{className:(0,K.cn)("text-sm"),children:e.fullName})]})})}))]})]})}),Bt&&(0,y.jsxs)(y.Fragment,{children:[Wt,(0,y.jsx)(fe.Z,{onTopupClick:Ut,className:"w-full flex-row items-center justify-between gap-4"}),(0,y.jsx)("div",{className:"mt-4 flex w-full",children:(0,y.jsx)(je.x,{size:"lg",className:"ml-auto w-full laptop:w-auto",disabled:!0,children:"Confirm and Pay"})})]}),!Bt&&(0,y.jsxs)(f.RV,Ae(Ae({},lt),{},{children:[(0,y.jsx)(j.ZT,{as:"h4",fontSize:"20px",fontWeight:"700",mb:"24px",children:"Membership options"}),!ot.data.isAllService&&ot.data.isClassIncluded&&"Single"===ot.data.locationAccessType&&"Online"!==ot.data.ableToBook&&(0,y.jsx)(T.Z,{name:"locationId",label:"Select a location to book for classes",placeholder:"Choose a location",mb:"24px",options:it,wrapperZIndex:18}),!ot.data.isAllService&&ot.data.isApptIncluded&&"Single"===ot.data.apptLocationAccessType&&(0,y.jsx)(T.Z,{name:"apptLocationId",label:"Select a location to book for appointments",mb:"24px",placeholder:"Choose a location",options:it,wrapperZIndex:17}),!ot.data.isAllService&&ot.data.isOutletAccessIncluded&&"Single"===ot.data.outletAccessType&&(0,y.jsx)(T.Z,{name:"outletId",label:"Select a location to access",placeholder:"Choose a location",mb:"24px",options:it,wrapperZIndex:16}),Dt||Ft||Mt&&(0,y.jsx)(S.Z,{color:"#e6e6e6",my:"20px"}),"CustomerSelected"===ot.data.soldAtSelectionMode&&(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(f.Qr,{control:lt.control,name:"soldAtLocation",render:function(e){var a=e.field;return(0,y.jsx)(T.Z,Ae(Ae({},a),{},{label:"Select home location",placeholder:"Choose a location",mb:"24px",isDisabled:!_t.length,options:_t,wrapperZIndex:15}))}})}),!ot.data.isAllowFamilyMembership&&st.length>1&&(0,y.jsx)(T.Z,{name:"buyFor",label:"Who are you buying for",mb:"24px",options:st,wrapperZIndex:13}),!mt&&"DateofPurchase"!==(null===ot||void 0===ot||null===(Je=ot.data)||void 0===Je?void 0:Je.activationType)&&(0,y.jsx)(A,{name:"date",label:"Cho
1ose your start date",mb:"24px",wrapperZIndex:14,maxDays:null===ot||void 0===ot||null===(Ke=ot.data)||void 0===Ke?void 0:Ke.activationWindowDays,minDate:vt?new Date:null!==ot&&void 0!==ot&&null!==(ea=ot.data)&&void 0!==ea&&ea.endDate?new Date(null===ot||void 0===ot||null===(aa=ot.data)||void 0===aa?void 0:aa.endDate):new Date}),!ot.data.isAllService&&ot.data.isApptIncluded&&"Single"===ot.data.apptLocationAccessType&&(0,y.jsx)(T.Z,{name:"apptLocationId",label:"Select an outlet to book for appointment",mb:"24px",options:it,wrapperZIndex:10}),!ot.data.isAllService&&ot.data.isOutletAccessIncluded&&"Single"===ot.data.outletAccessType&&(0,y.jsx)(T.Z,{name:"outletId",label:"Select outlet to access",mb:"24px",options:it,wrapperZIndex:9}),ft.length>1&&(0,y.jsx)(T.Z,{name:"membershipPriceId",label:"Select pricing",options:ft,onChange:et,wrapperZIndex:10}),!ht&&(0,y.jsx)(H.Z,{purpose:"checkout_membership",description:"This pricing plan requires your mobile number verification.",validateUrls:["/pricing/membership/".concat(ya.query.id)]}),!ja&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(S.Z,{my:"32px"}),(0,y.jsx)(pe.Z,{type:"membership",id:null!==(ta=null===ot||void 0===ot?void 0:ot.data.membershipId)&&void 0!==ta?ta:"",priceId:null!==ut&&void 0!==ut?ut:""}),null!==va&&void 0!==va&&va.isWalletEnabled&&Ct>0||Tt?(0,y.jsxs)("div",{className:"my-10 w-full ",children:[(0,y.jsx)(S.Z,{my:"32px"}),(0,y.jsx)(ue.Z,{totalAmount:Ct,balance:null===ua||void 0===ua||null===(ia=ua.data)||void 0===ia?void 0:ia.balance,isLoading:!1,currencySymbol:null===va||void 0===va?void 0:va.currencySymbol})]}):null]}),ja&&(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(De,{children:[(0,y.jsx)(j.ZT,{fontSize:"16px",fontWeight:"700",mb:"20px",children:"Price Details"}),!(null!==Fa&&void 0!==Fa&&null!==(sa=Fa.data)&&void 0!==sa&&sa.isHidden)&&(0,y.jsx)(Fe,{$_css3:"margin-bottom: 1.5rem",children:(0,y.jsx)(pe.Z,{type:"membership",id:null!==(na=null===ot||void 0===ot?void 0:ot.data.membershipId)&&void 0!==na?na:"",priceId:null!==ut&&void 0!==ut?ut:""})}),null!==va&&void 0!==va&&va.isWalletEnabled&&Ct>0||Tt?(0,y.jsx)("div",{className:"my-5",children:(0,y.jsx)(ue.Z,{totalAmount:Ct,balance:null===ua||void 0===ua||null===(la=ua.data)||void 0===la?void 0:la.balance,isLoading:!1,currencySymbol:null===va||void 0===va?void 0:va.currencySymbol})}):null,(0,y.jsxs)(Pe,{children:[(0,y.jsx)(j.ZT,{fontSize:"14px",children:xt}),(0,y.jsx)(j.ZT,{fontSize:"14px",fontWeight:"700",children:fa((null===rt||void 0===rt?void 0:rt.data.price)||(null===ot||void 0===ot?void 0:ot.data.price))})]}),(null===rt||void 0===rt?void 0:rt.data.hasJoiningFee)&&(0,y.jsxs)(Pe,{children:[(0,y.jsx)(j.ZT,{fontSize:"14px",children:"Joining fee"}),(0,y.jsx)(j.ZT,{fontSize:"14px",fontWeight:"700",children:fa(null===rt||void 0===rt?void 0:rt.data.joiningFee)})]}),(null===Ka||void 0===Ka?void 0:Ka.promoCode)&&(0,y.jsxs)(Pe,{children:[(0,y.jsxs)(j.ZT,{children:[null===Ka||void 0===Ka?void 0:Ka.promoCode.toUpperCase()," ","Percentage"===(null===Ka||void 0===Ka?void 0:Ka.discountType)?"(".concat(Ka.discountAmount,"%)"):"(".concat(fa(Ka.discountAmount),")")]}),(0,y.jsxs)(j.ZT,{color:"#FE5F55",children:["-",fa(null===Ka||void 0===Ka?void 0:Ka.discount)]})]}),(0,y.jsx)(S.Z,{color:"#e6e6e6",my:"20px"}),(0,y.jsxs)(Pe,{children:[(0,y.jsx)(j.ZT,{fontSize:"14px",children:"Subtotal"}),(0,y.jsx)(j.ZT,{fontSize:"14px",children:fa(St)})]}),null!==dt&&void 0!==dt&&dt.hasTax&&null!==dt&&void 0!==dt&&dt.taxInfo?dt.taxInfo.map((function(e,a){return(0,y.jsxs)(Pe,{children:[(0,y.jsxs)(j.ZT,{fontSize:"14px",children:[e.taxName," (",e.taxPercentage,"%)"," ",e.isPriceIncludeTax?" - Included ".concat(fa(e.taxAmount)):""]}),e.isPriceIncludeTax?null:(0,y.jsx)(j.ZT,{fontSize:"14px",children:fa(e.taxAmount)})]},a)})):null!==dt&&void 0!==dt&&dt.hasTax&&null!==dt&&void 0!==dt&&dt.taxName&&null!==dt&&void 0!==dt&&dt.taxPercentage?(0,y.jsxs)(Pe,{children:[(0,y.jsxs)(j.ZT,{fontSize:"14px",children:[null===dt||void 0===dt?void 0:dt.taxName," (",dt.taxPercentage,"%)",null!==dt&&void 0!==dt&&dt.isPriceIncludeTax?" - Included ".concat(fa((null===dt||void 0===dt?void 0:dt.taxAmount)||0)):""]}),null!==dt&&void 0!==dt&&dt.isPriceIncludeTax?null:(0,y.jsx)(j.ZT,{fontSize:"14px",children:fa((null===dt||void 0===dt?void 0:dt.taxAmount)||0)})]}):null!==rt&&void 0!==rt&&rt.data.hasTax&&null!==rt&&void 0!==rt&&rt.data.taxName&&null!==rt&&void 0!==rt&&rt.data.taxPercentage?(0,y.jsxs)(Pe,{children:[(0,y.jsxs)(j.ZT,{fontSize:"14px",children:[null===rt||void 0===rt?void 0:rt.data.taxName," (",rt.data.taxPercentage,"%)"]}),(0,y.jsx)(j.ZT,{fontSize:"14px",children:fa(It)})]}):null,Tt>0&&(0,y.jsxs)(Pe,{children:[(0,y.jsx)(j.ZT,{fontSize:"14px",children:"Wallet Credit"}),(0,y.jsxs)("p",{className:"text-sm text-red",children:["-",fa(Tt)]})]}),(0,y.jsxs)(Pe,{children:[(0,y.jsx)(j.ZT,{fontSize:"14px",fontWeight:"700",children:"Total"}),(0,y.jsx)(j.ZT,{fontSize:"14px",fontWeight:"700",children:fa(Ct)})]})]})}),(0,y.jsx)(le.Z,{type:"membership",numberOfClass:(null===ot||void 0===ot||null===(ca=ot.data)||void 0===ca||null===(oa=ca.membershipClasses)||void 0===oa?void 0:oa.length)||(null===ot||void 0===ot||null===(ra=ot.data)||void 0===ra||null===(da=ra.membershipApptPricings)||void 0===da?void 0:da.length),isOutletInclude:"All"===ot.data.serviceLocationType||"Outlet"===ot.data.serviceLocationType,margin:"32px",promoValues:Ka,price:(null===rt||void 0===rt?void 0:rt.data.price)||(null===ot||void 0===ot?void 0:ot.data.price),includeAvailablePayments:!(0,te.isEmpty)(tt)||!1}),(0,y.jsx)(Y.Z,{parentValid:!At,membershipData:Ae(Ae({},ot),{},{date:lt.watch("date"),location:lt.watch("location"),outlet:lt.watch("outlet"),buyFor:lt.watch("buyFor"),locationId:lt.watch("locationId"),outletId:lt.watch("outletId"),apptLocationId:lt.watch("apptLocationId"),allServiceLocationId:lt.watch("allServiceLocationId"),soldAtLocationId:lt.watch("soldAtLocation"),membershipPriceId:ut,isMobileVerified:ht}
1),setLoading:Ha,promoValues:Ka,selectedFamilyMembers:Qa})]}))]}),(0,y.jsx)(C.Z,{locationId:pt,locationList:it,type:"membership"})]})]}),(0,y.jsx)(P.Z,{maxWidth:"551px",isOpen:Wa,children:(0,y.jsx)(I.Z,{close:yt,title:"What you\u2019re eligible",children:null===(ma=ot.data.membershipClasses)||void 0===ma?void 0:ma.map((function(e){return(0,y.jsx)(R.Z,{title:e.classCategoryName,classes:e.classList,type:"class"},e.classCategoryName)}))})}),(0,y.jsx)(P.Z,{maxWidth:"551px",isOpen:Ra,children:(0,y.jsx)(I.Z,{close:gt,title:"What you\u2019re eligible",children:null===(pa=ot.data.membershipApptPricings)||void 0===pa?void 0:pa.map((function(e){return(0,y.jsx)(R.Z,{title:e.apptCategoryName,type:"appointment",classes:e.apptPricingList},e.apptCategoryId)}))})}),(0,y.jsx)(P.Z,{isOpen:za,p:"0px",close:jt,transition:{from:{opacity:0,y:600},enter:{opacity:1,y:0},leave:{opacity:0,y:600}},children:(0,y.jsx)(V.Z,{close:jt,title:"Membership Details",children:(0,y.jsx)(de,{noOfDurationDays:Ot,membershipData:ot,membershipFacts:wt})})})]})})}),Oe=(0,i.ZP)(j.ZT).withConfig({displayName:"MembershipPaymentSummary___StyledTypography",componentId:"sc-fz0niw-8"})(["line-height:18px;"]),ke=(0,i.ZP)(x.Av).withConfig({displayName:"MembershipPaymentSummary___StyledTextButton",componentId:"sc-fz0niw-9"})(["color:inherit;margin-top:16px;text-decoration:underline;"]),Le=(0,i.ZP)("div").withConfig({displayName:"MembershipPaymentSummary___StyledDiv",componentId:"sc-fz0niw-10"})(["background-color:",";"],(function(e){return e.$_css})),_e=(0,i.ZP)("div").withConfig({displayName:"MembershipPaymentSummary___StyledDiv2",componentId:"sc-fz0niw-11"})(["background-color:",";"],(function(e){return e.$_css2})),De=(0,i.ZP)("div").withConfig({displayName:"MembershipPaymentSummary___StyledDiv3",componentId:"sc-fz0niw-12"})(["display:block;width:100%;"]),Fe=(0,i.ZP)("div").withConfig({displayName:"MembershipPaymentSummary___StyledDiv4",componentId:"sc-fz0niw-13"})(["",""],(function(e){return e.$_css3})),Me=t(61154),ze=t(42718),Be=t(69103),Ue=t(13959),We=!0,$e=function(e){var a=e.meta,t=(0,U.useRouter)();(0,n.jI)(null===t||void 0===t?void 0:t.asPath);var i=(0,G.useAuthContext)().isLoggedIn,o=(0,s.Ap)("/pricing/membership/".concat(t.query.id),{shouldFetch:!!t.query.id&&i}),r=o.data;o.error;return r?r&&1318==r.code?(0,y.jsx)(c.Z,{meta:a,children:(0,y.jsx)(l.Z,{children:(0,y.jsx)(Me.Z,{message:r.message})})}):403===(null===r||void 0===r?void 0:r.code)?(0,y.jsx)(ze.default,{children:(0,y.jsx)("p",{children:"You are not eligible for this package."})}):404===(null===r||void 0===r?void 0:r.code)?(0,y.jsx)(Be.default,{}):401===(null===r||void 0===r?void 0:r.error_code)?null:(0,y.jsx)(c.Z,{meta:a,children:(0,y.jsx)(n.a,{children:(0,y.jsx)(Ze,{})})}):(0,y.jsx)(c.Z,{meta:a,children:(0,y.jsx)(l.Z,{children:(0,y.jsx)(Ee,{children:(0,y.jsx)(Ue.Z,{width:"40px",height:"40px"})})})})},Ee=(0,i.ZP)("div").withConfig({displayName:"id___StyledDiv",componentId:"sc-ypoocg-0"})(["min-height:60vh;display:flex;justify-content:center;align-items:center;"])},72626:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/membership/[id]",function(){return t(87958)}])},93536:function(e){e.exports={wrapper:"__404_wrapper__07SGL",content:"__404_content__gWqrZ",errorImage:"__404_errorImage__Bqs64",middleText:"__404_middleText__7RkWX"}},69590:function(e){var a="undefined"!==typeof Element,t="function"===typeof Map,i="function"===typeof Set,s="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function n(e,l){if(e===l)return!0;if(e&&l&&"object"==typeof e&&"object"==typeof l){if(e.constructor!==l.constructor)return!1;var c,o,r,d;if(Array.isArray(e)){if((c=e.length)!=l.length)return!1;for(o=c;0!==o--;)if(!n(e[o],l[o]))return!1;return!0}if(t&&e instanceof Map&&l instanceof Map){if(e.size!==l.size)return!1;for(d=e.entries();!(o=d.next()).done;)if(!l.has(o.value[0]))return!1;for(d=e.entries();!(o=d.next()).done;)if(!n(o.value[1],l.get(o.value[0])))return!1;return!0}if(i&&e instanceof Set&&l instanceof Set){if(e.size!==l.size)return!1;for(d=e.entries();!(o=d.next()).done;)if(!l.has(o.value[0]))return!1;return!0}if(s&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(l)){if((c=e.length)!=l.length)return!1;for(o=c;0!==o--;)if(e[o]!==l[o])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===l.toString();if((c=(r=Object.keys(e)).length)!==Object.keys(l).length)return!1;for(o=c;0!==o--;)if(!Object.prototype.hasOwnProperty.call(l,r[o]))return!1;if(a&&e instanceof Element)return!1;for(o=c;0!==o--;)if(("_owner"!==r[o]&&"__v"!==r[o]&&"__o"!==r[o]||!e.$$typeof)&&!n(e[r[o]],l[r[o]]))return!1;return!0}return e!==e&&l!==l}e.exports=function(e,a){try{return n(e,a)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}}},function(e){e.O(0,[4885,5445,2013,4171,5890,6949,2685,8491,6332,7868,696,4544,3775,5670,4682,5391,1834,6532,1369,2096,66,1605,5299,4043,9774,2888,179],(function(){return a=72626,e(e.s=a);var a}));var a=e.O();_N_E=a}]);
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.