PageSourceSearch

https://www.dancelifex.id/_next/static/chunks/pages/my-bookings/[id]-0554e9f780da89bb.js

js dancelifex.id collected 2026-09-28 10:36:08 UTC 95,652 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6393],{58236:function(e,i,n){"use strict";n.d(i,{Z:function(){return d}});var t=n(16835),o=n(12003),l=n(85893),s=(0,o.j)("flex-center inline-flex  px-2 py-1 font-bold rounded",{variants:{color:{green:"bg-green text-black",red:"bg-red text-white",yellow:"bg-yellow text-black",lightOrange:"bg-[#FFEFC6] text-[#94320C]",blue:"bg-primary text-white",grey:"bg-grey text-white",darkgrey:"bg-grey-dark text-white",black:"bg-black text-white"},size:{xs:"text-xs","2xs":"text-2xs"}},defaultVariants:{size:"xs"}}),a={green:["active","available","transactionpaid","transactionwaived","returned","completed","paid"],red:["late","refunded","latecancelled","unpaid","waitlist","bookingnoshow","notreturn","stopped"],yellow:["scheduled","waitlistexpired","waitlistleaved","damaged","collected","upcoming"],lightOrange:["pending-approval"],blue:["booked","reserved","running"],grey:["unavailable","transactionunpaid"],darkgrey:["transactionoverdue","archived","inactive","uncollected"],black:["repairing","suspended","cancelled","disconnected"]};function r(e){var i;return(null===(i=Object.entries(a).find((function(i){return(0,t.Z)(i,2)[1].includes(e)})))||void 0===i?void 0:i[0])||"grey"}function d(e){var i=e.color,n=e.className,t=e.status,o=e.size;return(0,l.jsx)("div",{className:s({color:i||r(null===t||void 0===t?void 0:t.toLowerCase().replace(/ /g,"")),size:o,className:n}),children:(0,l.jsx)("span",{children:t})})}},96605:function(e,i,n){"use strict";n.d(i,{a:function(){return u},jI:function(){return p}});var t=n(41392),o=n(16239),l=n(90772),s=n(11163),a=n(67294),r=n(31096),d=n(13959),c=n(85893),u=function(e){var i=e.children,n=(0,s.useRouter)(),r=(0,o.D)(),u=r.setDialogState,p=(r.dialogState,(0,t.useAuthContext)()),v=p.isLoggedIn,h=p.loading,m=p.setRedirectUrl,g=(0,l.M)();return(0,a.useEffect)((function(){v||h||!g||(u("login"),m(n.asPath),n.push("/"))}),[v,h,g]),(0,c.jsx)(x,{children:v&&g?i:(0,c.jsx)(d.Z,{width:"100px",height:"100px"})})},p=function(e,i){var n=(0,s.useRouter)(),l=(0,o.D)().setDialogState,r=(0,t.useAuthContext)(),d=r.isLoggedIn,c=r.loading,u=r.loginRoute,p=r.setRedirectUrl;(0,a.useEffect)((function(){e&&p(e),d||c||(i?n.replace("/login"):(l(u),n.replace("/")))}),[d,c])};i.ZP=function(e){var i=e.children,n=e.isHeroNewFont,o=(0,s.useRouter)(),l=(0,t.useAuthContext)(),r=l.isLoggedIn,u=l.loading;l.setRedirectUrl;return(0,a.useEffect)((function(){r||u||o.push("/")}),[r,u]),(0,c.jsx)(x,{isHeroNewFont:n,children:r?i:(0,c.jsx)(d.Z,{width:"100px",height:"100px"})})};var x=r.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"}))},86076:function(e,i,n){"use strict";n.d(i,{Z:function(){return j},g:function(){return y}});var t=n(59499),o=n(4730),l=n(31096),s=n(9008),a=n.n(s),r=n(11163),d=n(4298),c=n.n(d),u=n(67294),p=n(13959),x=n(85893),v=n(83454),h=["meta","children","isLoading"],m=["bizId"];function g(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);i&&(t=t.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,t)}return n}function f(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?g(Object(n),!0).forEach((function(i){(0,t.Z)(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))}))}return e}var y=function(e){try{var i,n=new URL(e),t=n.hostname.toLowerCase(),o=(null===(i=v.env.NEXT_PUBLIC_SAFRA_HOSTNAME)||void 0===i?void 0:i.toLowerCase())||"",l=o&&t===o;if(t.endsWith(".rezeve.com")&&!l){var s=n.hostname.replace(/\.rezeve\.com$/i,".rezerv.co");return"".concat(n.protocol,"//").concat(s).concat(n.port?":".concat(n.port):"")}return e}catch(a){return e}};function j(e){var i,n,t,l,s=e.meta,d=e.children,v=e.isLoading,g=(0,o.Z)(e,h),j=(0,r.useRouter)(),w=null===s||void 0===s?void 0:s.analytics,k=null!==s&&void 0!==s&&s.url?y(s.url.origin):"",C=null!==s&&void 0!==s&&s.url?s.url.pathname.includes("/home")?k:"".concat(k).concat(s.url.pathname):"";return(null===s||void 0===s?void 0:s.error)&&console.error(null===s||void 0===s?void 0:s.error),(0,u.useEffect)((function(){var e=j.query,i=e.bizId,n=(0,o.Z)(e,m);i&&j.replace({pathname:j.pathname,query:n})}),[j.query]),(0,x.jsxs)("main",f(f({},g),{},{children:[s&&(0,x.jsxs)(a(),{children:[(null===(i=s.themeSetting)||void 0===i?void 0:i.color.primary)&&(0,x.jsx)("meta",{name:"theme-color",content:null===(n=s.themeSetting)||void 0===n?void 0:n.color.primary}),(0,x.jsx)("link",{rel:"icon",type:"image/png",href:(null===(t=s.themeSetting)||void 0===t?void 0:t.favicon)||"https://ik.imagekit.io/rezeve/rezevefavicon.png"}),(0,x.jsx)("link",{type:"image/png",rel:"apple-touch-icon",href:(null===(l=s.themeSetting)||void 0===l?void 0:l.favicon)||"https://ik.imagekit.io/rezeve/rezevefavicon.png"}),s.seo_title&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("title",{children:s.seo_title}),(0,x.jsx)("meta",{property:"og:title",content:s.seo_title}),(0,x.jsx)("meta",{name:"twitter:title",content:s.seo_title})]}),(s.seo_image_url||s.featImageUrl)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("meta",{property:"og:image",content:s.seo_image_url||s.featImageUrl}),(0,x.jsx)("meta",{property:"twitter:image",content:s.seo_image_url||s.featImageUrl})]}
1),s.seo_description&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("meta",{name:"description",content:s.seo_description}),(0,x.jsx)("meta",{property:"og:description",content:s.seo_description}),(0,x.jsx)("meta",{name:"twitter:description",content:s.seo_description})]}),!(null===w||void 0===w||!w.facebook_domain_verification_code)&&(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("meta",{name:"facebook-domain-verification",content:w.facebook_domain_verification_code})}),!(null===w||void 0===w||!w.google_site_verification_code)&&(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("meta",{name:"google-site-verification",content:w.google_site_verification_code})}),s.url&&C&&(0,x.jsx)("link",{rel:"canonical",href:C})]}),v?(0,x.jsx)(b,{children:(0,x.jsx)(p.Z,{width:"200px",height:"200px"})}):d,!(null===w||void 0===w||!w.google_analytics_code)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c(),{src:"https://www.googletagmanager.com/gtag/js?id=".concat(null===w||void 0===w?void 0:w.google_analytics_code),strategy:"afterInteractive"}),(0,x.jsx)(c(),{id:"google-analytics",strategy:"afterInteractive",children:"\n          window.dataLayer = window.dataLayer || [];\n          function gtag(){window.dataLayer.push(arguments);}\n          gtag('js', new Date());\n\n          gtag('config', '".concat(null===w||void 0===w?void 0:w.google_analytics_code,"');\n        ")})]}),!(null===w||void 0===w||!w.gogole_tag_code)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c(),{id:"google-tag-manager",strategy:"afterInteractive",children:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
1j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','".concat(null===w||void 0===w?void 0:w.gogole_tag_code,"')")}),(0,x.jsx)("noscript",{children:(0,x.jsx)("iframe",{src:"https://www.googletagmanager.com/ns.html?id=".concat(null===w||void 0===w?void 0:w.gogole_tag_code),height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]}),!(null===w||void 0===w||!w.facebook_pixels_code)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c(),{id:"facebook-pixel-analytics",strategy:"afterInteractive",children:"\n         !function(f,b,e,v,n,t,s)\n         {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n         n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n         if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n         n.queue=[];t=b.createElement(e);t.async=!0;\n         t.src=v;s=b.getElementsByTagName(e)[0];\n         s.parentNode.insertBefore(t,s)}(window, document,'script',\n         'https://connect.facebook.net/en_US/fbevents.js');\n         fbq('init', '".concat(null===w||void 0===w?void 0:w.facebook_pixels_code,"');\n         fbq('track', 'PageView');\n        ")}),(0,x.jsx)("noscript",{children:(0,x.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=".concat(null===w||void 0===w?void 0:w.facebook_pixels_code,"&ev=PageView&noscript=1")})})]}),!(null===w||void 0===w||!w.tiktok_code)&&(0,x.jsx)(c(),{id:"Tiktok analytics script",strategy:"afterInteractive",children:'!function (w, d, t) {\n            w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};\n\n            ttq.load(\''.concat(null===w||void 0===w?void 0:w.tiktok_code,"');\n            ttq.page();\n            }(window, document, 'ttq');")}),!(null===w||void 0===w||!w.gass_code)&&(0,x.jsx)(c(),{src:"https://gass.co.id/gassv3.min.js?v3",strategy:"afterInteractive",onLoad:function(){var e;gass.run({subdomain:null===s||void 0===s||null===(e=s.url)||void 0===e?void 0:e.hostname,pkey:null===w||void 0===w?void 0:w.gass_code,interval:2},(function(){}))}})]}))}var b=(0,l.ZP)("div").withConfig({displayName:"Page___StyledDiv",componentId:"sc-xdi14n-0"})(["min-height:100vh;display:flex;justify-content:center;align-items:center;"])},84154:function(e,i,n){"use strict";var t=n(31096),o=n(41664),l=n.n(o),s=n(89583),a=n(67294),r=n(10404),d=n(67162),c=n(85893),u=t.ZP.div.withConfig({displayName:"BreadCrumbs__Wrapper",componentId:"sc-6wfaya-0"})(["display:flex;align-items:center;gap:8px;margin-bottom:",";"],(function(e){return null!==e&&void 0!==e&&e.marginBottom?e.marginBottom:"20px"})),p=t.ZP.div.withConfig({displayName:"BreadCrumbs__Link",componentId:"sc-6wfaya-1"})(["display:flex;align-items:center;gap:8px;"]),x=t.ZP.a.withConfig({displayName:"BreadCrumbs__LinkText",componentId:"sc-6wfaya-2"})(["font-size:12px;font-weight:",";color:inherit;font-family:inherit;text-decoration:none;cursor:",";"],(function(e){return e.isActive?700:400}),(function(e){return e.isActive?"default":"pointer"}));i.Z=function(e){var i=e.links,n=e.customAction,t=e.marginBottom,o=e.showOnMobile,v=void 0!==o&&o,h=(0,r.P)().isTabletOrMobile,m=(0,d.vH)().textColor;return h&&!v?null:(0,c.jsx)(u,{marginBottom:t,children:i.map((function(e,t){return(0,c.jsxs)(a.Fragment,{children:[(0,c.jsx)(p,{children:n&&e.href?(0,c.jsx)(x,{isActive:t===i.length-1,onClick:function(){return n(e.href)},children:e.text}):e.href?(0,c.jsx)(l(),{href:e.href,passHref:!0,children:(0,c.jsx)(x,{isActive:t===i.length-1,children:e.text})}):(0,c.jsx)(x,{isActive:t===i.length-1,children:e.text})}),t!==i.length-1&&(0,c.jsx)(s.anP,{fontSize:"7px",color:m})]}
1,e.text+t)}))})}},18562:function(e,i,n){"use strict";n.d(i,{kC:function(){return v},oV:function(){return p}});var t=n(59499),o=n(58255),l=n(47300),s=n(10404),a=n(60407),r=(n(67294),n(31096)),d=n(85893);function c(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);i&&(t=t.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,t)}return n}function u(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?c(Object(n),!0).forEach((function(i){(0,t.Z)(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))}))}return e}var p=function(e){var i=e.items,n=(0,d.jsx)(x,{children:i.length>0?i.map((function(e){return(0,d.jsx)("li",{className:"content",children:(0,d.jsx)("span",{className:"info",children:e})},e)})):(0,d.jsx)("div",{className:"content",children:"None"})});return(0,d.jsxs)("div",{children:[(0,d.jsx)(l.pe,{mb:"12px",children:"What you'll need"}),n]})},x=r.ZP.ul.withConfig({displayName:"BookingInfoItems__ItemsContainer",componentId:"sc-1jpj1zt-0"})(["list-style-type:disc;display:grid;grid-template-columns:repeat(3,1fr);gap:20px 90px;margin-top:20px;.content{display:flex;align-items:center;gap:8px;font-size:14px;line-height:21px;&::before{content:'';display:block;width:4px;height:4px;background-color:",";border-radius:50%;}.info{width:14ch;word-break:break-word;line-height:20px;font-size:14px;font-weight:400;}}@media ","{grid-template-columns:1fr 1fr;gap:12px;}"],(function(e){return e.theme.color.secondary.text}),a.vb.tabletAndDown),v=function(e){var i=e.address,n=e.lat,t=e.long,r=(0,s.P)().isTabletOrMobile,c=(0,d.jsxs)(h,{$_css:a.vb.tabletAndDown,children:[(0,d.jsx)(m,{children:i}),n&&t&&(0,d.jsx)("a",{style:u({},r?{display:"block",width:"100%"}:{}),target:"_blank",href:"http://maps.google.com?q=".concat(n,",").concat(t),children:(0,d.jsx)(o.f5,{type:"button",width:r?"100%":"max-content",padding:"13.5px 24px",children:"Get Directions"})})]});return(0,d.jsxs)(g,{children:[(0,d.jsx)(l.pe,{mb:"15px",children:"Getting there"}),c]})},h=(0,r.ZP)("div").withConfig({displayName:"BookingInfoItems___StyledDiv",componentId:"sc-1jpj1zt-1"})(["display:flex;align-items:center;justify-content:space-between;gap:20px;@media ","{flex-direction:column;}"],(function(e){return e.$_css})),m=(0,r.ZP)(l.ZT).withConfig({displayName:"BookingInfoItems___StyledTypography",componentId:"sc-1jpj1zt-2"})(["width:100%;"]),g=(0,r.ZP)("div").withConfig({displayName:"BookingInfoItems___StyledDiv2",componentId:"sc-1jpj1zt-3"})(["margin-bottom:10px;width:100%;"])},57996:function(e,i,n){"use strict";n.d(i,{Z:function(){return d}});var t=n(79701),o=n(18177),l=n(82807),s=n(67294),a=n(74107),r=n(85893);function d(e){var i=e.data,n=void 0===i?"":i,d=e.title,c=e.location,u=(0,s.useState)(!1),p=u[0],x=u[1];return{modal:(0,r.jsx)(t.Z,{width:"550px",minHeight:"full",isOpen:p,children:(0,r.jsxs)(o.Z,{close:function(){return x(!1)},noPadding:!0,height:"auto",children:[(0,r.jsx)("h1",{className:"px-5 text-2xl font-bold lg:px-10 lg:text-3xl",children:d}),(0,r.jsx)(l.Z,{data:n,className:"mx-auto my-5 w-40 lg:w-52"}),(0,r.jsxs)("div",{className:"flex items-center justify-center pb-10 lg:pb-20",children:[(0,r.jsx)(a.bJv,{}),(0,r.jsx)("span",{className:"pl-3",children:c})]})]})}),setOpen:x}}},66584:function(e,i,n){"use strict";n.d(i,{y:function(){return a}});var t=n(31742),o=n(12003),l=n(85893),s=(0,o.j)("text-[10px] capitalize font-semibold leading-[14px] rounded-sm px-2 py-[2px]",{variants:{variant:{black:"bg-black text-white",purple:"bg-[#E8E4FF] text-[#6041C1]",gray:"bg-[#EDEDED] text-black",darkPurple:"bg-[#6041C1] text-white"}}}),a=function(e){var i,n=e.label,o=e.className,a=e.color,r=e.type;a?i=a:"myself"===r||"owner"===r?i="black":"family"===r?i="purple":"guest"===r&&(i="gray");var d=(0,t.cn)(s({variant:i}),o);return(0,l.jsx)("div",{className:d,children:n})}},3905:function(e,i,n){"use strict";n.d(i,{XC:function(){return d},YG:function(){return o},dt:function(){return a},jQ:function(){return l},pJ:function(){return s},zM:function(){return r}});var t=n(85893);function o(e){var i=e.color,n=void 0===i?"#1F1F1F":i;return(0,t.jsxs)("svg",{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"6.59961",cy:"6.75",r:"3.15",stroke:n,strokeWidth:"1.2"}),(0,t.jsx)("circle",{cx:"14.0996",cy:"9",r:"2.4",stroke:n,strokeWidth:"1.2"}),(0,t.jsx)("path",{d:"M9.59961 16.5C9.59961 13.8223 11.5376 12 14.0229 12C16.5082 12 18.5996 13.8223 18.5996 16.5",stroke:n,strokeWidth:"1.2",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M6.49707 9.90039C8.69862 9.90039 10.7036 10.8915 11.9355 12.5537C11.5819 12.7481 11.2574 12.989 10.9697 13.2676C9.9666 11.911 8.32905 11.0996 6.49707 11.0996C3.51158 11.0999 1.19934 13.2649 1.19922 16.5C1.19922 16.8314 0.93098 17.0996 0.599609 17.0996C0.268365 17.0995 -1.47393e-08 16.8313 0 16.5C0.000119385 12.5952 2.85581 9.90065 6.49707 9.90039Z",fill:n})]})}function l(e){var i=e.color,n=void 0===i?"white":i;return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"23",viewBox:"0 0 24 23",fill:"none",children:(0,t.jsx)("path",{d:"M20.6671 19.0869C19.6147 19.3624 18.7813 20.1985 18.5083 21.2585H20.2936C20.5001 21.2582 20.6667 21.0916 20.6671 20.885V19.0869ZM5.19104 11.4423C4.8736 13.3297 3.38518 14.8246 1.50146 15.1447V17.5543C3.38521 17.8742 4.87343 19.3712 5.19104 21.2585H16.9775C17.2951 19.3713 18.7834 17.8742 20.6671 17.5543V12.2498L17.2412 14.7766L17.1991 14.8
1114L15.1776 16.8036C15.0117 18.6233 13.491 20.0534 11.629 20.0537C9.65557 20.0537 8.0603 18.448 8.0603 16.474C8.06031 14.5 9.65557 12.8943 11.629 12.8943C12.0167 12.8943 12.3895 12.9573 12.7386 13.0719L14.0662 11.4423H5.19104ZM13.0078 9.94263H14.8297L14.6924 9.2981H13.4967C13.4804 9.2981 13.464 9.29491 13.4491 9.29443L13.0078 9.94263ZM1.50146 20.885C1.50186 21.0915 1.66848 21.2581 1.875 21.2585H3.66028C3.38725 20.1985 2.5539 19.3624 1.50146 19.0869V20.885ZM22.1686 20.885C22.1682 21.92 21.3286 22.7597 20.2936 22.76H1.875C0.840047 22.7596 0.000395472 21.92 0 20.885V11.8176C0 10.7823 0.839802 9.94302 1.875 9.94263H7.37183L9.3457 5.91431L9.35303 5.90149L9.36035 5.88684C9.51046 5.61043 9.77019 5.40886 10.0763 5.33203L17.2028 3.54309L19.8358 0L21.0406 0.893555L18.3673 4.49524C18.3242 4.55331 18.1583 4.79106 17.8601 4.91455L17.7228 4.96033L10.6091 6.74377L9.04175 9.94263H11.1896L12.3157 8.29834C12.4984 8.01686 12.7929 7.83664 13.114 7.7948L13.2898 7.78564C13.3411 7.78614 13.384 7.7889 13.4125 7.79114C13.4274 7.79231 13.4421 7.79389 13.4528 7.7948C13.4644 7.7958 13.4728 7.79607 13.4802 7.79663H14.9451C15.011 7.79656 15.2811 7.78736 15.5475 7.93213L15.661 8.00537L15.813 8.13904C15.9056 8.23741 15.98 8.35288 16.0327 8.47961L16.095 8.6792L16.4282 10.2521L16.452 10.4736C16.4536 10.6221 16.4263 10.769 16.3715 10.9058L16.2708 11.1017C16.2441 11.1427 16.2113 11.1795 16.1792 11.217L16.181 11.2189L14.0442 13.8446C14.3928 14.1671 14.6749 14.5579 14.8737 14.9963L16.1462 13.7439L16.3513 13.5681L20.7477 10.3271L22.5385 4.92004L23.963 5.39246L22.1686 10.8105V20.885ZM9.55994 16.474C9.55994 17.6252 10.4895 18.5541 11.629 18.5541C12.7683 18.5538 13.6963 17.625 13.6963 16.474C13.6963 15.323 12.7683 14.3942 11.629 14.3939C10.4895 14.3939 9.55994 15.3229 9.55994 16.474ZM1.50146 13.6121C2.55378 13.3364 3.38741 12.5024 3.66028 11.4423H1.875C1.66823 11.4427 1.50146 11.6108 1.50146 11.8176V13.6121Z",fill:n})})}function s(e){var i=e.size,n=void 0===i?16:i,o=e.color,l=void 0===o?"#F7473C":o;return(0,t.jsx)("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M15 3.49999H15.5V2.49999H15V2.99999V3.49999ZM6.12469 5.81249C6.12469 5.53634 5.90084 5.31249 5.62469 5.31249C5.34855 5.31249 5.12469 5.53634 5.12469 5.81249H5.62469H6.12469ZM5.12469 12.0625C5.12469 12.3386 5.34855 12.5625 5.62469 12.5625C5.90084 12.5625 6.12469 12.3386 6.12469 12.0625H5.62469H5.12469ZM9.87469 5.81249C9.87469 5.53634 9.65084 5.31249 9.37469 5.31249C9.09855 5.31249 8.87469 5.53634 8.87469 5.81249H9.37469H9.87469ZM8.87469 12.0625C8.87469 12.3386 9.09855 12.5625 9.37469 12.5625C9.65084 12.5625 9.87469 12.3386 9.87469 12.0625H9.37469H8.87469ZM12.4998 15L11.9998 15L12.4998 15ZM12.4998 2.99999L11.9998 2.99998L11.9998 15L12.4998 15L12.9998 15L12.9998 2.99999L12.4998 2.99999ZM11.9998 15.5V15H2.9998V15.5V16H11.9998V15.5ZM2.4998 15H2.9998V2.99999H2.4998H1.9998V15H2.4998ZM0 2.99999V3.49999H15V2.99999V2.49999H0V2.99999ZM5.62469 5.81249H5.12469V12.0625H5.62469H6.12469V5.81249H5.62469ZM9.37469 5.81249H8.87469V12.0625H9.37469H9.87469V5.81249H9.37469ZM5.49969 0.5V1H9.49969V0.5V0H5.49969V0.5ZM9.99969 1H9.49969V2.99999H9.99969H10.4997V1H9.99969ZM4.99969 2.99999H5.49969V1H4.99969H4.49969V2.99999H4.99969ZM9.49969 0.5V1V1H9.99969H10.4997C10.4997 0.447715 10.052 0 9.49969 0V0.5ZM5.49969 0.5V0C4.94741 0 4.49969 0.447716 4.49969 1H4.99969H5.49969V1V0.5ZM2.9998 15.5V15H2.4998H1.9998C1.9998 15.5523 2.44751 16 2.9998 16V15.5ZM12.4998 15L11.9998 15V15.5V16C12.5521 16 12.9998 15.5523 12.9998 15L12.4998 15Z",fill:l})})}function a(e){var i=e.color,n=void 0===i?"#1F1F1F":i;return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M12 4.5L12 19.5M4.5 12L19.5 12",stroke:n,strokeWidth:"1.2",strokeLinecap:"square"})})}function r(e){var i=e.color,n=void 0===i?"#1F1F1F":i;return(0,t.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M15 25C20.5228 25 25 20.5228 25 15C25 9.47715 20.5228 5 15 5C9.47715 5 5 9.47715 5 15C5 20.5228 9.47715 25 15 25Z",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M15 20.5V20.6",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M15 10.5V17.5",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function d(e){var i=e.color,n=void 0===i?"#1F1F1F":i;return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",children:(0,t.jsx)("path",{d:"M0.75 10.75L5.57322 5.92678C5.67085 5.82915 5.67085 5.67085 5.57322 5.57322L0.75 0.75",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}},86374:function(e,i,n){"use strict";n.d(i,{Z:function(){return s}});var t=n(3905),o=n(67162),l=n(85893);function s(e){var i=e.totalPax,n=(0,o.vH)().textColor;return(0,l.jsxs)("div",{className:"flex items-center gap-1 rounded-2xl border border-solid px-3 py-1",children:[(0,l.jsx)(t.YG,{color:n}),(0,l.jsxs)("p",{className:"body-small font-bold",children:[i," pax"]}
1)]})}},27618:function(e,i,n){"use strict";n.d(i,{Z:function(){return c}});var t=n(59499),o=(n(67294),n(66584)),l=n(19907),s=n(85893),a=function(e){var i=e.name,n=e.attendeeType,t=e.isDirectPayment,a=(e.isMultiPricing,e.email,e.telephone,e.customerGroupName),r=(e.spotName,e.price),d=void 0===r?0:r,c=e.classPricingName,u=(e.bookingId,e.cUserId,e.childUserId,e.profileImageUrl,e.status,e.isFreeClass),p=void 0!==u&&u,x=(0,l.Z)().showPricing,v="myself"===n;return(0,s.jsx)("div",{className:"rounded-lg  border border-solid border-[#E6E6E6] p-4",children:(0,s.jsxs)("div",{className:"flex flex-col gap-1 lg:flex-row lg:items-center lg:justify-between lg:gap-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("p",{className:"body font-medium",children:v?"Myself":i}),!v&&(0,s.jsx)(o.y,{label:n,type:n})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[p&&(0,s.jsx)("p",{className:"body-small",children:"Free"}),t&&!p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"body-small",children:c&&a?"".concat(c," - ").concat(a):c||a||""}),(0,s.jsx)("div",{className:"h-4 w-[1px] border-l border-solid border-[#E6E6E6]"}),(0,s.jsx)("p",{className:"font-medium body-small",children:x(d)})]})]})]})})};function r(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);i&&(t=t.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,t)}return n}function d(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?r(Object(n),!0).forEach((function(i){(0,t.Z)(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))}))}return e}function c(e){var i,n,t=e.allAttendees,o=e.isMultiPricing,l=e.isDirectPayment,r=e.isFreeClass;return(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(null===t||void 0===t?void 0:t.mySelf)&&(0,s.jsx)(a,d(d({},t.mySelf),{},{isDirectPayment:l,isMultiPricing:o,attendeeType:"myself",isFreeClass:r})),null===t||void 0===t||null===(i=t.familyAttendees)||void 0===i?void 0:i.map((function(e){return(0,s.jsx)(a,d(d({},e),{},{attendeeType:"family",isMultiPricing:o,isFreeClass:r,isDirectPayment:l}))})),null===t||void 0===t||null===(n=t.guestAttendees)||void 0===n?void 0:n.map((function(e){return(0,s.jsx)(a,d(d({},e),{},{attendeeType:"guest",isMultiPricing:o,isFreeClass:r,isDirectPayment:l}))}))]})}},93606:function(e,i,n){"use strict";var t=n(19907),o=["89a95714-d06c-4f85-aabd-65737d931bb8"];i.Z=function(){var e,i=(0,t.Z)().data;return o.includes(null!==(e=null===i||void 0===i?void 0:i.businessInfoId)&&void 0!==e?e:"")}},14708:function(e,i,n){"use strict";n.r(i),n.d(i,{__N_SSP:function(){return vi},default:function(){return hi}});var t,o=n(96605),l=n(86076),s=n(16835),a=n(27812),r=n(71375),d=n(17746),c=n(60293),u=n(84154),p=n(3626),x=n(69470),v=n(7616),h=n(19907),m=n(56257),g=n(67294),f=n(31096),y=n(47300),j=n(85893),b=f.ZP.div.withConfig({displayName:"ReviewReply__Wrapper",componentId:"sc-xo6aje-0"})(["padding:24px;background:#f8f6f5;border-radius:8px;p{font-weight:400;font-size:14px;line-height:21px;margin-top:10px;}"]),w=function(e){var i,n=e.text,t=void 0===n?"":n,o=e.date,l=void 0===o?"":o,s=(0,h.Z)();return(0,j.jsxs)(b,{children:[(0,j.jsxs)(k,{as:"h5",children:["Response from ",null===s||void 0===s||null===(i=s.data)||void 0===i?void 0:i.businessName]}),(0,j.jsx)("p",{children:t}),(0,j.jsxs)(C,{children:["Posted ",(0,m.rw)(l)]})]})},k=(0,f.ZP)(y.ZT).withConfig({displayName:"ReviewReply___StyledTypography",componentId:"sc-xo6aje-1"})(["font-weight:700;font-size:16px;line-height:24px;"]),C=(0,f.ZP)("p").withConfig({displayName:"ReviewReply___StyledP",componentId:"sc-xo6aje-2"})(["color:#787878;"]),N=n(30194),_=n(66433),I=n(18562),Z=(n(78017),n(3798)),P=n(79701),L=n(74107),T=function(e){var i=e.isShowDialog,n=e.toggleDialog;return(0,j.jsx)(P.Z,{isOpen:i,maxWidth:"540px",minHeight:"auto",children:(0,j.jsxs)("div",{className:"p-10 pb-10",children:[(0,j.jsx)("button",{onClick:function(){n()},className:"flex w-full justify-end",style:{fontSize:"18px",padding:"10px",backgroundColor:"transparent",curs
1or:"pointer",border:"none",zIndex:"100"},children:(0,j.jsx)(L.gjG,{stroke:"#010101"})}),(0,j.jsx)(y.ZT,{className:"!text-black",fontSize:"28px",fontWeight:"700",mb:"40px",children:"Cancel booking failed"}),(0,j.jsx)(y.ZT,{className:"!text-black",children:"You can cancel this booking once your payment has been approved by the business."}),(0,j.jsx)("div",{className:"mt-5 flex items-center justify-end gap-2",children:(0,j.jsx)(Z.x,{onClick:function(){return n()},size:"lg",className:"w-36 bg-[#2F565E] text-[#BCE4E5]",children:"Okay"})})]})})},D=(n(41392),n(67162)),A=n(10404),S=n(93606),E=n(29479),M=n(13959),O=n(89285),F=n(24399),H=function(e){switch(e){case"WaitlistExpired":return"Waitlist Expired";case"WaitlistLeaved":case"WaitlistCancelled":return"Waitlist Cancelled";case"CheckedIn":return"Checked In";case"LateCancelled":return"Late Cancelled";case"PendingCancellation":return"Pending Cancellation";case"NoShow":return"No Show";default:return e}},B=function(e){switch(e){case"WaitlistExpired":return"Waitlist Expired";case"WaitlistLeaved":case"WaitlistCancelled":return"Waitlist Cancelled";case"CheckedIn":return"Checked In";case"LateCancelled":return"Cancelled";case"PendingCancellation":return"Pending Cancellation";case"NoShow":return"No Show";default:return e}},U=n(90512),R=n(60407),V=n(11699),W=n(29422),z=n(70722),q=n(61834),G=n(31955),$=n(5152),Y=n.n($),Q=n(11163),X=n(2064),J=n(44352),K=n(57953),ee=n(39773),ie=n(58352),ne=n(58255),te=n(76869),oe=n(52380),le=n(24509),se=n(57996),ae=n(78191),re=f.ZP.div.withConfig({displayName:"PopUpText__Wrapper",componentId:"sc-9evqeg-0"})(["padding:20px;background-color:",";color:",";border-radius:12px;border:1px solid ",";@media ","{margin:-30px 16px 0px;padding:14px 16px;border-radius:20px;position:relative;}.div{word-break:break-word;line-height:21px;}"],(function(e){return e.color?e.color:e.theme.color.primary}),(function(e){return e.textColor?e.textColor:e.theme.color.secondary.text}),(function(e){return e.theme.color.secondary.background}),R.vb.tabletAndDown),de=function(e){var i=e.children,n=e.color,t=void 0===n?"":n,o=e.textColor,l=void 0===o?"":o;return(0,j.jsx)(re,{color:t,textColor:l,className:"z-tooltip",children:i})},ce=f.ZP.div.withConfig({displayName:"AddRatingCard__Wrapper",componentId:"sc-2gjyy7-0"})(["border:1px dashed #c4c4c4;height:170px;display:flex;justify-content:center;align-items:center;border-radius:15px;.content{display:flex;flex-direction:column;align-items:center;gap:15px;p{font-size:14px;font-weight:400;color:#000;}}"]),ue=function(e){var i=e.toggle,n=(0,Q.useRouter)();return(0,j.jsx)(ce,{children:(0,j.jsxs)("div",{className:"content",children:[(0,j.jsxs)("p",{children:["Hows was your ",(0,j.jsx)("span",{children:"appointment"===n.query.scheduleType?"appointment":"class"}),"? Leave a review"]}),(0,j.jsx)(ne.hO,{width:"auto",padding:"20px 15px",onClick:function(){return i()},children:"Rate Review"})]})})},pe=n(77001);!function(e){e.class="classes",e.appointment="appointment"}(t||(t={}));var xe=function(){var e=(0,Q.useRouter)(),i=e.query,n=i.id,o=i.scheduleType,l=(0,K.Ap)("/appt-schedule/get-booking-detail/".concat(n),{shouldFetch:!!n&&e.isReady&&o===t.appointment,version:3}),s=l.data,a=(l.error,(0,g.useMemo)((function(){var e,i,n,t;return(null===s||void 0===s||null===(e=s.data)||void 0===e?void 0:e.checkInTime)>0?"Check-in ".concat(null===s||void 0===s||null===(i=s.data)||void 0===i?void 0:i.checkInTime," ").concat({Minutes:"min",Hours:"hr",Days:"day"}[null===s||void 0===s||null===(n=s.data)||void 0===n?void 0:n.checkInTimeType]," ").concat((null===s||void 0===s||null===(t=s.data)||void 0===t?void 0:t.checkInTime)>1?"s":"","before appointment begins"):"Check in anytime before appointment begins"}),[s]));return{ApptBookingDetail:s,checkInText:a}},ve=n(58236),he=n(11634),me=n(86374),ge=n(27618);function fe(e){var i=e.color,n=e.size;return(0,j.jsxs)("svg",{width:n,height:n,viewBox:"0 0 13 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,j.jsx)("path",{d:"M11.2495 1.12605H1.12605V16.1739L1.72203 15.6397L1.81266 15.5738C2.03583 15.4423 2.32749 15.4796 2.51026 15.6767L3.40011 16.6366L4.44101 15.6507L4.53027 15.582C4.74913 15.4449 5.04103 15.4735 5.22925 15.6644L6.20012 16.649L7.25338 15.6507L7.34264 15.582C7.5615 15.4449 7.8534 15.4735 8.04161 15.6644L9.01523 16.6517L10.0891 15.6479C10.313 15.4385 10.6638 15.4472 10.8773 15.6671L11.2495 16.0503V1.12605ZM8.20365 12.6831V13.8092H2.81237V12.6831H8.20365ZM9.56315 11.
11465V12.2711H2.81237V11.1465H9.56315ZM5.62473 8.0114H6.75078V9.56315H5.62473V8.0114ZM5.62473 2.616H6.75078V4.20619H5.62473V2.616ZM12.3755 17.4372C12.3755 17.6662 12.2362 17.873 12.024 17.9591C11.8118 18.045 11.5683 17.9928 11.4088 17.8286L10.4544 16.8454L9.38463 17.8478C9.162 18.0561 8.81322 18.0498 8.59914 17.8327L7.6269 16.8467L6.57501 17.8451C6.35274 18.056 6.00194 18.0509 5.78678 17.8327L4.81453 16.8467L3.76264 17.8451C3.65364 17.9485 3.50772 18.0036 3.35754 17.9989C3.20729 17.9941 3.06561 17.9292 2.96342 17.819L2.06121 16.8467L0.939287 17.8561C0.774112 18.0044 0.536476 18.0412 0.333694 17.9508C0.131057 17.8603 0 17.6592 0 17.4372V0.563023C0 0.252377 0.252377 0 0.563023 0H11.8125C12.1231 0 12.3755 0.252377 12.3755 0.563023V17.4372Z",fill:i}),(0,j.jsx)("path",{d:"M4.16177 5.02629C4.16177 4.09661 5.02106 3.4375 6.23014 3.4375C7.43923 3.4375 8.19966 4.04804 8.19966 5.01935H6.97536C6.97536 4.65858 6.6788 4.43657 6.21493 4.43657C5.71305 4.43657 5.39367 4.6447 5.39367 4.98466C5.39367 5.29687 5.56857 5.44951 5.96399 5.52582L6.80807 5.6854C7.81184 5.87272 8.29091 6.30981 8.29091 7.12155C8.29091 8.11368 7.43923 8.75891 6.1465 8.75891C4.89179 8.75891 4.07812 8.14143 4.07812 7.17706H5.30242C5.30242 7.55171 5.60659 7.75985 6.1541 7.75985C6.70921 7.75985 7.05901 7.55865 7.05901 7.23256C7.05901 6.94811 6.91453 6.80241 6.54192 6.73303L5.68263 6.57346C4.67886 6.38613 4.16177 5.86578 4.16177 5.02629Z",fill:i})]})}var ye,je=function(e){var i=e.size,n=void 0===i?"24":i,t=e.color,o=void 0===t?"#010101":t;return(0,j.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,j.jsx)("path",{d:"M7.125 13.9531L10.575 13.9531",stroke:o,"stroke-width":"1.05","stroke-miterlimit":"10","stroke-linejoin":"round"}),(0,j.jsx)("path",{d:"M7.125 15.4531H9.675",stroke:"#010101","stroke-width":"1.05","stroke-miterlimit":"10","stroke-linejoin":"round"}),(0,j.jsx)("path",{d:"M16.875 13.288V3H15.375H13.875H12.375H10.875H9.375H7.875H6.375H4.875V19.5L6.375 18L7.875 19.5L9.375 18L10.875 19.5L12.375 18",stroke:o,"stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"square","stroke-linejoin":"round"}),(0,j.jsx)("path",{d:"M8.71435 7.67367C8.71435 6.6806 9.63222 5.97656 10.9237 5.97656C12.2153 5.97656 13.0275 6.62873 13.0275 7.66626H11.7198C11.7198 7.28089 11.403 7.04374 10.9075 7.04374C10.3714 7.04374 10.0302 7.26607 10.0302 7.62921C10.0302 7.9627 10.2171 8.12574 10.6394 8.20726L11.5411 8.37772C12.6133 8.57781 13.125 9.0447 13.125 9.91179C13.125 10.9716 12.2153 11.6608 10.8344 11.6608C9.49413 11.6608 8.625 11.0012 8.625 9.97107H9.93276C9.93276 10.3713 10.2577 10.5936 10.8425 10.5936C11.4355 10.5936 11.8091 10.3787 11.8091 10.0304C11.8091 9.72651 11.6548 9.57088 11.2568 9.49677L10.3389 9.32632C9.2667 9.12622 8.71435 8.5704 8.71435 7.67367Z",stroke:o}),(0,j.jsx)("path",{d:"M10.9141 6.38684V5.25",stroke:o,"stroke-width":"1.125","stroke-miterlimit":"10","stroke-linejoin":"round"}),(0,j.jsx)("path",{d:"M10.9141 12.4533V10.9375",stroke:o,"stroke-width":"1.125","stroke-miterlimit":"10","stroke-linejoin":"round"}),(0,j.jsx)("circle",{cx:"15.375",cy:"16.5",r:"4.5",fill:"#09DE77"}),(0,j.jsx)("path",{d:"M13.875 16.4984L14.7075 17.3101C14.8007 17.401 14.9493 17.401 15.0425 17.3101L16.875 15.5234",stroke:"white","stroke-width":"1.2","stroke-linecap":"square"})]})},be=function(e){var i=e.size,n=void 0===i?"24":i,t=e.color,o=void 0===t?"#010101":t;return(0,j.jsxs)("svg",{width:n,height:n,viewBox:"0 0 13 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,j.jsx)("path",{d:"M11.2495 1.12605H1.12605V16.1739L1.72203 15.6397L1.81266 15.5738C2.03583 15.4423 2.32749 15.4796 2.51026 15.6767L3.40011 16.6366L4.44101 15.6507L4.53027 15.582C4.74913 15.4449 5.04103 15.4735 5.22925 15.6644L6.20012 16.649L7.25338 15.6507L7.34264 15.582C7.5615 15.4449 7.8534 15.4735 8.04161 15.6644L9.01523 16.6517L10.0891 15.6479C10.313 15.4385 10.6638 15.4472 10.8773 15.6671L11.2495 16.0503V1.12605ZM8.20365 12.6831V13.8092H2.81237V12.6831H8.20365ZM9.56315 11.1465V12.2711H2.81237V11.1465H9.56315ZM5.62473 8.0114H6.75078V9.56315H5.62473V8.0114ZM5.62473 2.616H6.75078V4.20619H5.62473V2.616ZM12.3755 17.4372C12.3755 17.6662 12.2362 17.873 12.024 17.9591C11.8118 18.045 11.5683 17.9928 11.4088 17.8286L10.4544 16.8454L9.38463 17.8478C9.162 18.0561 8.81322 18.0498 8.59914 17.8327L7.6269 16.8467L6.57501 17.8451C6.35274 18.056 6.00194 18.0509 5.78678 17.8327L4.81453 16.8467L3.76264 17.8451C3.65364 17.9485 3.50772 18.0036 3.35754 17.9989C3.20729 17.9941 3.06561 17.9292 2.96342 17.819L2.06121 16.8467L0.939287 17.8561C0.774112 18.0044 0.536476 18.0412 0.333694 17.9508C0.131057 17.8603 0 17.6592 0 17.4372V0.563023C0 0.252377 0.252377 0 0.563023 0H11.8125C12.1231 0 12.3755 0.252377 12.3755 0.563023V17.4372Z",fill:o}),(0,j.jsx)("path",{d:"M4.1647 5.02629C4.1647 4.09661 5.02399 3.4375 6.23307 3.4375C7.44216 3.4375 8.20259 4.04804 8.20259 5.01935H6.97829C6.97829 4.65858 6.68173 4.43657 6.21786 4.43657C5.71598 4.43657 5.39
166 4.6447 5.3966 4.98466C5.3966 5.29687 5.5715 5.44951 5.96692 5.52582L6.811 5.6854C7.81477 5.87272 8.29384 6.30981 8.29384 7.12155C8.29384 8.11368 7.44216 8.75891 6.14943 8.75891C4.89472 8.75891 4.08105 8.14143 4.08105 7.17706H5.30535C5.30535 7.55171 5.60952 7.75985 6.15703 7.75985C6.71214 7.75985 7.06194 7.55865 7.06194 7.23256C7.06194 6.94811 6.91746 6.80241 6.54485 6.73303L5.68556 6.57346C4.68179 6.38613 4.1647 5.86578 4.1647 5.02629Z",fill:o})]})};!function(e){e.PACKAGE="Package",e.MEMBERSHIP="Membership",e.PAYMENT="Payment",e.BOOKING="Booking"}(ye||(ye={}));var we,ke=Y()((function(){return Promise.all([n.e(796),n.e(8253)]).then(n.bind(n,78253))}),{ssr:!1,loadableGenerated:{webpack:function(){return[78253]}}}),Ce="0001-01-01T00:00:00+00:00";!function(e){e.class="classes",e.appointment="appointment"}(we||(we={}));var Ne={"Pending approval":"w-fit !bg-[#FFEFC6] px-1 py-[2px] !text-[#94320C]","Action required":"w-fit !bg-[#DFEBFF] px-1 py-[2px] !text-[#010101]",Declined:"w-fit !bg-[#FFE3E1] px-1 py-[2px] !text-[#9F1D15]",Unpaid:"w-fit !bg-[#FE5F55] px-1 py-[2px] !text-[#FFFFFF]"},_e=function(e){var i=e.status,n=Ne[i];return n?(0,j.jsx)(ve.Z,{status:i,className:n,size:"2xs"}):null};function Ie(e,i){return i?e===X.b.UNPAID?"Amount Due":e===X.b.WAITING_APPROVAL||e===X.b.WAITING_ON_CUSTOMER||e===X.b.DECLINED?"Amount pending":"Amount Paid":e===X.b.WAITING_APPROVAL||e===X.b.WAITING_ON_CUSTOMER||e===X.b.DECLINED?"Amount pending":e===X.b.UNPAID?"Amount Due":"Amount Paid"}var Ze=f.ZP.div.withConfig({displayName:"BookingConfirmation__BookingDetailsWrapper",componentId:"sc-1khdcd4-0"})(["display:flex;gap:60px;margin:0 auto;@media ","{flex-direction:column-reverse;gap:0px;}"],R.vb.tabletAndDown),Pe=f.ZP.div.withConfig({displayName:"BookingConfirmation__BookingDetails",componentId:"sc-1khdcd4-1"})(["display:flex;flex-direction:column;gap:30px;width:80%;background-color:",";max-width:900px;.booking-heading{margin-top:10px;}.booking-calendar,.booking-heading ~ .package-details{margin-top:-10px;}@media ","{width:100vw;padding:28px 16px;gap:16px;.booking-calendar{margin-top:0;}}"],(function(e){return e.theme.color.primary}),R.vb.tabletAndDown),Le=f.ZP.div.withConfig({displayName:"BookingConfirmation__Wrapper",componentId:"sc-1khdcd4-2"})(["padding:60px 40px 100px 40px;width:fit-content;margin:0 auto;background-color:",";font-family:inherit;@media ","{padding:0px;}.waitlist__duration{padding:20px 18px;width:100%;font-style:inherit;background-color:",";border-radius:4px;border-left-color:#ffc857;border-left-width:4px;border-left-style:solid;box-shadow:0px 4px 16px rgba(0,0,0,0.07);margin-bottom:10px;}.package-details{box-shadow:0 4px 16px rgba(0,0,0,0.09);border-radius:12px;padding:20px 24px;background-color:",";@media ","{background-color:transparent;padding:0px;box-shadow:none;}}.contents{list-style-type:disc;display:grid;grid-template-columns:repeat(3,200px);gap:20px 90px;margin-top:20px;.content{display:flex;align-items:center;gap:8px;&::before{content:'';display:block;width:4px;height:4px;background-color:#000;border-radius:50%;}.info{width:14ch;word-break:break-word;line-height:20px;font-size:14px;font-weight:400;}}@media ","{grid-template-columns:1fr;gap:12px;}}"],(function(e){return e.theme.color.primary}),R.vb.tabletAndDown,(function(e){return e.theme.color.secondary.background}),(function(e){return e.theme.color.secondary.background}),R.vb.tabletAndDown,R.vb.tabletAndDown),Te=f.ZP.div.withConfig({displayName:"BookingConfirmation__ReviewItemWrapper",componentId:"sc-1khdcd4-3"})([".heading{display:flex;justify-content:space-between;align-items:center;.editBtn{padding:15px;color:#000;font-size:14px;border:1px solid #000;border-radius:20px;background-color:transparent;cursor:pointer;}}.stars{display:flex;align-items:center;gap:12px;margin:10px 0;div{display:flex;align-items:center;gap:4px;span{font-size:14px;line-height:21px;}}}.desc{line-height:21px;word-break:break-word;color:#000;font-weight:400;margin-bottom:15px;font-size:14px;}.postedDate{color:'#787878';font-size:14px;font-weight:400;}"]),De=function(){var e,i,n,t,l,f,b,k,C,Z,P,$,Y,ae,re,ce,ve,Ne,De,Xe,Je,Ke,ei,ii,ni,ti,oi,li,si,ai,ri,di,ci,ui,pi,xi,vi,hi,mi,gi,fi,yi,ji,bi,wi,ki,Ci,Ni,_i,Ii,Zi,Pi,Li,Ti,Di,Ai,Si,Ei,Mi,Oi,Fi,Hi,Bi,Ui,Ri,Vi=(0,A.P)().isTabletOrMobile,Wi=(0,D.vH)(),zi=Wi.textColor,qi=Wi.secondaryBg;(0,K.Tu)().handleMutate;(0,o.jI)();var Gi=(0,Q.useRouter)(),$i=((0,E.l)(),(0,g.useState)(1.8)),Yi=$i[0],Qi=$i[1],Xi=(0,g.useState)(1.8),Ji=Xi[0],Ki=Xi[1],en=(0,g.useState)({x:136,y:196}),nn=en[0],tn=en[1],on=(0,g.useState)(!1),ln=on[0],sn=on[1],an=(0,g.useState)(500),rn=an[0],dn=an[1],cn=(0,g.useRef)(null),un=(0,g.useState)(!1),pn=un[
10],xn=un[1],vn=function(e){"increase"===e?(Qi(Math.min(Yi+.1,2)),Ki(Math.min(Ji+.1,2))):(Qi(Math.max(Yi-.1,.8)),Ki(Math.max(Ji-.1,.8)))},hn=(0,g.useCallback)((function(e){var i=1.8*e.height+32;dn(Math.min(Math.max(i,240),500))}),[]),mn=Gi.query,gn=mn.id,fn=mn.scheduleType,yn=void 0===fn?"classes":fn,jn=xe(),bn=jn.ApptBookingDetail,wn=jn.checkInText,kn=(0,K.Ap)("/accounts/bookings/".concat(gn),{shouldFetch:!!gn&&Gi.isReady&&yn===we.class}),Cn=kn.data,Nn=kn.error,_n=yn===we.class?null===Cn||void 0===Cn?void 0:Cn.data:null===bn||void 0===bn?void 0:bn.data,In=(null===_n||void 0===_n?void 0:_n.className)||(null===_n||void 0===_n?void 0:_n.apptName)||"None",Zn=(0,se.Z)({data:null===_n||void 0===_n?void 0:_n.qrInfo,title:In,location:(null===_n||void 0===_n?void 0:_n.location)||"--"}),Pn=Zn.modal,Ln=Zn.setOpen,Tn=(0,g.useMemo)((function(){var e=_n;return{mySelf:null!==e&&void 0!==e&&e.isIncludeOwner?null===e||void 0===e?void 0:e.ownerInfo:null,familyAttendees:(null===e||void 0===e?void 0:e.childAccountInfoResponseModels)||[],guestAttendees:(null===e||void 0===e?void 0:e.bookingGuestInfos)||[]}}),[yn,_n]),Dn=(0,g.useMemo)((function(){var e=_n,i=(null===e||void 0===e?void 0:e.childAccountInfoResponseModels)||[],n=(null===e||void 0===e?void 0:e.bookingGuestInfos)||[];return[].concat((0,a.Z)(i),(0,a.Z)(n)).length+(null!==e&&void 0!==e&&e.isIncludeOwner?1:0)}),[yn,_n]),An=(0,te.vO)(gn),Sn=(0,V.Z)((0,m.io)(),(0,m.io)(null===_n||void 0===_n?void 0:_n.cancellationDate))>0,En=Boolean((null===_n||void 0===_n?void 0:_n.packageUsed)||(null===_n||void 0===_n?void 0:_n.packageName)),Mn=Boolean((null===_n||void 0===_n?void 0:_n.membershipUsed)||(null===_n||void 0===_n?void 0:_n.membershipName)),On=!(null===_n||void 0===_n||!_n.bookingPaymentInfo)||"Payment"===(null===_n||void 0===_n?void 0:_n.pricingType),Fn=(0,g.useMemo)((function(){return JSON.parse((null===_n||void 0===_n?void 0:_n.layout)||"{}")}),[_n]),Hn=Boolean((null===Fn||void 0===Fn||null===(e=Fn.seats)||void 0===e||null===(i=e.sections)||void 0===i?void 0:i[0])&&(null===Fn||void 0===Fn||null===(n=Fn.state)||void 0===n?void 0:n.layout)),Bn=!(null===_n||void 0===_n||!_n.bookingPaymentInfo)&&"Free"===(null===_n||void 0===_n||null===(t=_n.bookingPaymentInfo)||void 0===t?void 0:t.pyamentMethod)&&0===(null===_n||void 0===_n||null===(l=_n.bookingPaymentInfo)||void 0===l?void 0:l.classPrice);(0,g.useEffect)((function(){Cn&&cn.current&&(sn(!0),setTimeout((function(){if(cn.current){var e=cn.current.clientWidth||0,i=cn.current.clientHeight||0,n=Fn.state.editor.exportViewport.width,t=e/n;Qi(t),Ki(t),tn({x:e/2-n*(t-1),y:i/2/t}),sn(!1)}else sn(!1)}),300))}),[cn,Fn]);var Un=yn===we.appointment,Rn=(0,h.Z)().showPricing,Vn=(0,z.zonedTimeToUtc)("".concat(null===_n||void 0===_n||null===(f=_n.startDate)||void 0===f?void 0:f.split("T")[0],"T").concat(null===_n||void 0===_n?void 0:_n.startTime),G.Z.get("timezone")),Wn={title:In,description:"",startTime:Vn,endTime:(0,W.Z)(Vn,{minutes:function(e){var i=e.split(":").map(Number),n=(0,s.Z)(i,2);return 60*n[0]+n[1]}((null===_n||void 0===_n?void 0:_n.duration)||"00:00:00")}),location:(null===_n||void 0===_n||null===(b=_n.address)||void 0===b?void 0:b.address)||""},zn=[X.b.WAITING_APPROVAL,X.b.WAITING_ON_CUSTOMER,X.b.DECLINED],qn=function(e){return zn.includes(e)},Gn=Un?null===_n||void 0===_n?void 0:_n.paymentStatus:function(){var e,i,n,t;return null!==_n&&void 0!==_n&&_n.bookingPaymentInfo?_n.bookingPaymentInfo.paymentStatus:null!==_n&&void 0!==_n&&null!==(e=_n.packageUsed)&&void 0!==e&&e.length?null===(t=_n.packageUsed.find((function(e){return qn(null===e||void 0===e?void 0:e.paymentStatus)})))||void 0===t?void 0:t.paymentStatus:null===_n||void 0===_n||null===(i=_n.membershipUsed)||void 0===i||null===(n=i.find((function(e){return qn(null===e||void 0===e?void 0:e.paymentStatus)})))||void 0===n?void 0:n.paymentStatus}(),$n=(0,te.ZP)(null!==(k=(null===_n||void 0===_n?void 0:_n.bookingGroupId)||(null===_n||void 0===_n?void 0:_n.bookingId))&&void 0!==k?k:gn,function(e){var i=e.isLateCancel,n=e.isPackage,t=e.isSinglePrice,o=e.isMembership,l=e.storeCreditsAmount,s=e.paidAmount,a=e.refundType,r=e.isPaymentWaitingApproval,d=e.isWalletRefundable,c=e.isFree,u=l>0,p=u&&0===s,x="appointment"===(0,Q.useRouter)().query.scheduleType;return r?(0,j.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,j.jsx)("p",{children:"Your payment is currently awaiting our approval."}),(0,j.jsx)("p",{children:"If you cancel now, any refund will be handled manually after our review."})]}):c?"Are you sure you want to cancel this booking? ":i?x?"This booking is non-refundable due to late cancellation. Are you sure you want to cancel this booking? ":n?"Your credits will be deducted from your package because it is a late cancellation. Are you sure you want to cancel your booking?":o?"Your credits will be deducted from your membership because it is a late cancellation. Are you sure you want to cancel your booking?":"This booking is non-refundable due to late cancellation. Are you sure you want to cancel this booking?":t?x?d?"Cancelling now will refund the amount as store credits to your Wallet. Are you sure you want to cancel this booking?":"This booking is non-refundable. Are you sure you want to cancel this booking? ":u?"No
1Refund"===a?"This booking is non-refundable. Are you sure you want to cancel this booking?":p?"Cancelling now will refund the amount as store credits to your Wallet. Are you sure you want to cancel this booking?":"The store credits utilized and drop-in amount paid for your class will be refunded as store credits to your wallet. Are you sure you want to cancel your booking? ":"NoRefund"===a?"This booking is non-refundable. Are you sure you want to cancel this booking?":"WalletBalance"===a?"Cancelling now will refund the amount as store credits to your Wallet. Are you sure you want to cancel this booking?":"CreditPackage"===a?"Cancelling now will refund the amount as package credits, which will be available in your account under My Packages. Are you sure you want to cancel this booking?":"This booking is non-refundable due to late cancellation. Are you sure you want to cancel this booking?":n?"Your credits will be returned to your package. Are you sure you want to cancel your booking?":o?"Your credits will be returned to your membership. Are you sure you want to cancel your booking?":"No penalty will be awarded. Are you sure you want to cancel your booking?"}({isLateCancel:Sn,isPackage:En,isSinglePrice:On,isMembership:Mn,isFree:Bn,isWalletRefundable:null===_n||void 0===_n?void 0:_n.isWalletRefundable,storeCreditsAmount:(null===_n||void 0===_n||null===(C=_n.bookingPaymentInfo)||void 0===C?void 0:C.storeCreditsAmount)||0,paidAmount:(null===_n||void 0===_n||null===(Z=_n.bookingPaymentInfo)||void 0===Z?void 0:Z.paidAmount)||0,refundType:(null===_n||void 0===_n||null===(P=_n.classRefundInfo)||void 0===P?void 0:P.refundMethod)||"CreditPackage",isPaymentWaitingApproval:Gn===X.b.WAITING_APPROVAL||Gn===X.b.WAITING_ON_CUSTOMER})),Yn=!(null!==_n&&void 0!==_n&&_n.allowCheckInBeforeApproval),Qn=(0,S.Z)(),Xn=(0,j.jsx)("div",{children:(0,j.jsx)(v.Z,{isTrue:"classes"===yn,showBlock:(0,j.jsxs)(j.Fragment,{children:["Booked"===(null===_n||void 0===_n?void 0:_n.status)?null!==_n&&void 0!==_n&&_n.cancellationDate?(0,j.jsx)(y.ZT,{children:"Cancel before ".concat((0,m.p6)(null===_n||void 0===_n?void 0:_n.cancellationDate,"dd MMM yyyy, h:mm aaa")," to avoid late\n    cancellation")}):null:(0,j.jsxs)("div",{children:[(0,j.jsxs)(y.ZT,{children:["Cancel your waitlist if you no longer wish to attend the class. ",(0,j.jsx)("br",{})]}),null!==_n&&void 0!==_n&&_n.cancelHour?(0,j.jsxs)(y.ZT,{children:["Please note that if you have received confirmation for this booking, do cancel before"," ",(0,m.p6)(null===_n||void 0===_n?void 0:_n.cancellationDate,"dd MMM yyyy, h:mm aaa")," to avoid late cancellation penalty."]}):null]}),(null===_n||void 0===_n?void 0:_n.cancellationPolicy)&&(0,j.jsx)(Se,{html:_n.cancellationPolicy})]}),hideBlock:(0,j.jsxs)("div",{children:[(0,j.jsx)(x.Z,{isTrue:(null===_n||void 0===_n?void 0:_n.cancellationHour)>0&&!Qn,children:(0,j.jsxs)(y.ZT,{mb:"20px",fontSize:"14px",children:["Appointment cancelled within ",(0,j.jsx)("span",{className:"font-bold",children:"".concat(null===_n||void 0===_n?void 0:_n.cancellationHour," hour").concat((null===_n||void 0===_n?void 0:_n.cancellationHour)>1?"s":"")})," ","of start time will be considered as late cancellation and credit(s) will not be refunded."]})}),(0,j.jsx)(Ee,{html:null===_n||void 0===_n?void 0:_n.cancellationPolicy})]})})}),Jn=(0,oe.Z)({id:gn,validateUrl:["/accounts/bookings/".concat(gn),"/accounts/bookings/".concat(gn,"/ratings"),"/appt-schedule/get-booking-detail/".concat(gn)],header:"Leave a review",data:{serviceType:Un?"Appointment":"Class",classId:null===_n||void 0===_n?void 0:_n.classId,trainerId:(null===_n||void 0===_n?void 0:_n.staffId)||(null===_n||void 0===_n?void 0:_n.id),instructor:(null===_n||void 0===_n?void 0:_n.staffName)||(null===_n||void 0===_n?void 0:_n.instructor),classData:{class:(null===_n||void 0===_n?void 0:_n.className)||(null===_n||void 0===_n?void 0:_n.apptName),location:null===_n||void 0===_n?void 0:_n.location,classDate:null===_n||void 0===_n?void 0:_n.startDate}}}),Kn=Jn.view,et=Jn.toggle;if(404===(null===Cn||void 0===Cn?void 0:Cn.code)||Nn)return(0,j.jsx)(d.Z,{children:(0,j.jsx)(le.Z,{})});var it=(0,F.O)({guestCount:null!==($=null===_n||void 0===_n?void 0:_n.guestCount)&&void 0!==$?$:0,familyList:null!==(Y=null===_n||void 0===_n||null===(ae=_n.childAccountInfoResponseModels)||void 0===ae?void 0:ae.map((function(e){return null===e||void 0===e?void 0:e.name})))&&void 0!==Y?Y:[],isOwnerBooked:null!==(re=null===_n||void 0===_n?void 0:_n.isIncludeOwner)&&void 0!==re&&re}),nt=it.totalPax,tt=(it.bookedPeople,ee.ZP[null!==(ce=null===_n||void 0===_n||null===(ve=_n.status)||void 0===ve?void 0:ve.toLowerCase())&&void 0!==ce?ce:"completed"]),ot=tt.background,lt=tt.color,st=tt.info,at=tt.title,rt=Un?"UnPaid"===(null===_n||void 0===_n?void 0:_n.paymentStatus):"UnPaid"===(null===_n||void 0===_n||null===(Ne=_n.bookingPaymentInfo)||void 0===Ne?void 0:Ne.paymentStatus),dt=null===_n||void 0===_n||null===(De=_n.bookingPaymentInfo)||void 0===De?void 0:De.paymentStatus,ct=(null===_n||void 0===_n||null===(Xe=_n.bookingPaymentInfo)||void 0===Xe?void 0:Xe.paymentStatus)===X.b.WAITING_APPROVAL||(null===_n||void 0===_n||null===(Je=_n.bookingPaymentInfo)||void 0===Je?void 0:Je.paymentStatus)===X.b.WAITING_ON_CUSTOMER,ut=Un?(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.WAITING_APPROVAL:(null===_n||void 0===_n||null===(Ke=_n.bookingPaymentInfo)||void 0===Ke?void 0:Ke.paymentStatus)===X.b.WAITING_APPROVAL,pt=Un?(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.WAITING_ON_CUSTOMER:(null===_n||void 0===_n||null===(ei=_n.bookingPaymentInfo)||void 0===ei?void 0:ei.paymentStatus)===X.b.WAITING_ON_CUSTOMER,xt=Un?(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.DECLINED:(null===_n||void 0===_n||null===(ii=_n.bookingPaymentInfo)||void 0===ii?void 0:ii.paymentStatus)===X.b.DECLINED;function vt(){var e=Un?null===_n||void 0===_n?void 0:_n.paymentStatus:dt;return(0,j.jsx)(y.ZT,{fontSize:"14px",fontWeight:"700",mb:"4px",children:Ie(e,Un)})}var ht=(0,j.jsx)(Ae,{children:(0,j.jsx)(v.Z,{isTrue:Un,showBlock:(0,j.jsx)(j.Fragment,{children:(0,j.jsxs)(Me,{$_css:null!==_n&&void 0!==_n&&_n.expiryDate&&(null===_n||void 0===_n?void 0:_n.expiryDate)!==Ce?"1fr 1fr 1fr":"1fr 1fr",$_css2:R.vb.tabletAndDown,children:[(0,j.jsxs)("li",{style:{display:"flex",gap:"15p
1x",alignItems:"top"},children:[(0,j.jsx)(L.EYY,{stroke:zi}),(0,j.jsxs)("div",{className:"space-y-2",children:[(0,j.jsx)(y.ZT,{color:zi,fontSize:"12px",fontWeight:"700",mb:"4px",children:"Package"}),(0,j.jsxs)("div",{children:[(0,j.jsxs)(y.X0,{children:[null===_n||void 0===_n?void 0:_n.packageName," "]}),(0,j.jsx)(x.Z,{isTrue:(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.UNPAID,children:(0,j.jsx)(pe.Z,{text:"Unpaid",color:"#FE5F55",textColor:"white"})}),(0,j.jsx)(x.Z,{isTrue:(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.WAITING_APPROVAL,children:(0,j.jsx)(pe.Z,{text:"Pending approval",color:"#FFEFC6",textColor:"#94320C"})}),(0,j.jsx)(x.Z,{isTrue:(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.WAITING_ON_CUSTOMER,children:(0,j.jsx)(pe.Z,{text:"Action required",color:"#EDEDED",textColor:"#000"})}),(0,j.jsx)(x.Z,{isTrue:(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.DECLINED,children:(0,j.jsx)(pe.Z,{text:"Declined",color:"#FFE3E1",textColor:"#9F1D15"})})]})]})]}),(0,j.jsxs)("li",{style:{display:"flex",gap:"15px",alignItems:"top"},children:[(0,j.jsx)(L.kER,{stroke:zi}),(0,j.jsxs)("div",{children:[(0,j.jsxs)(y.ZT,{fontSize:"12px",fontWeight:"700",mb:"4px",children:["Credits"," ","waitlistexpired"===(null===_n||void 0===_n||null===(ni=_n.status)||void 0===ni?void 0:ni.toLowerCase())||"cancelled"===(null===_n||void 0===_n||null===(ti=_n.status)||void 0===ti?void 0:ti.toLowerCase())?"Returned":"Used"]}),(0,j.jsx)("div",{children:(0,j.jsx)(y.X0,{children:null===_n||void 0===_n?void 0:_n.creditUsed})})]})]}),(null===_n||void 0===_n?void 0:_n.expiryDate)&&(0,j.jsxs)("li",{style:{display:"flex",gap:"15px",alignItems:"top"},children:[(0,j.jsx)(L.Ser,{stroke:zi}),(0,j.jsxs)("div",{children:[(0,j.jsx)(y.ZT,{fontSize:"12px",fontWeight:"700",mb:"4px",children:"Expiry date"}),(0,j.jsxs)("div",{children:[null!==_n&&void 0!==_n&&_n.expiryDate&&(null===_n||void 0===_n?void 0:_n.expiryDate)!==Ce?(0,j.jsx)(y.X0,{children:(0,m.lQ)(null===_n||void 0===_n?void 0:_n.expiryDate)}):"None",(0,j.jsx)("span",{})]})]})]})]})}),hideBlock:(0,j.jsx)(j.Fragment,{children:null===_n||void 0===_n||null===(oi=_n.packageUsed)||void 0===oi?void 0:oi.map((function(e,i){var n,t;return(0,j.jsxs)(Oe,{$_css3:null!==_n&&void 0!==_n&&_n.noOfChild?"1fr 1fr":"1fr 1fr 1fr",$_css4:null!==_n&&void 0!==_n&&_n.noOfChild?"1fr 1fr":"1fr",$_css5:null!==e&&void 0!==e&&e.expiryDate&&(null===e||void 0===e?void 0:e.expiryDate)!==Ce?"1fr 1fr 1fr":"1fr 1fr",$_css6:R.vb.tabletAndDown,children:[(0,j.jsxs)("li",{style:{display:"flex",gap:"15px",alignItems:"top"},children:[(0,j.jsx)(L.EYY,{stroke:zi}),(0,j.jsxs)("div",{children:[(0,j.jsx)(y.ZT,{color:zi,fontSize:"12px",fontWeight:"700",mb:"4px",children:"Package"}),(0,j.jsxs)("div",{className:"space-y-1",children:[(0,j.jsxs)(y.X0,{children:[null===e||void 0===e?void 0:e.name," "]}),(0,j.jsx)(x.Z,{isTrue:(null===e||void 0===e?void 0:e.paymentStatus)===X.b.UNPAID,children:(0,j.jsx)(pe.Z,{text:"Unpaid",color:"#FE5F55",textColor:"white"})}),(0,j.jsx)(x.Z,{isTrue:(null===e||void 0===e?void 0:e.paymentStatus)===X.b.WAITING_APPROVAL,children:(0,j.jsx)(pe.Z,{text:"Pending approval",color:"#FFEFC6",textColor:"#94320C"})}),(0,j.jsx)(x.Z,{isTrue:(null===e||void 0===e?void 0:e.paymentStatus)===X.b.WAITING_ON_CUSTOMER,children:(0,j.jsx)(pe.Z,{text:"Action required",color:"#EDEDED",textColor:"#000"})}),(0,j.jsx)(x.Z,{isTrue:(null===e||void 0===e?void 0:e.paymentStatus)===X.b.DECLINED,children:(0,j.jsx)(pe.Z,{text:"Declined",color:"#FFE3E1",textColor:"#9F1D15"})})]})]})]}),(0,j.jsxs)("li",{style:{display:"flex",gap:"15px",alignItems:"top"},children:[(0,j.jsx)(L.kER,{stroke:zi}),(0,j.jsxs)("div",{children:[(0,j.jsxs)(y.ZT,{fontSize:"12px",fontWeight:"700",mb:"4px",children:["Credits"," ","waitlistexpired"===(null===_n||void 0===_n||null===(n=_n.status)||void 0===n?void 0:n.toLowerCase())||"cancelled"===(null===_n||void 0===_n||null===(t=_n.status)||void 0===t?void 0:t.toLowerCase())?"Returned":"Used"]}),(0,j.jsx)("div",{children:(0,j.jsx)(y.X0,{children:null===e||void 0===e?void 0:e.usedPass})})]})]}),(null===e||void 0===e?void 0:e.expiryDate)&&(null===e||void 0===e?void 0:e.expiryDate)!==Ce&&(0,j.jsxs)("li",{style:{display:"flex",gap:"15p
1x",alignItems:"top"},children:[(0,j.jsx)(L.Ser,{stroke:zi}),(0,j.jsxs)("div",{children:[(0,j.jsx)(y.ZT,{fontSize:"12px",fontWeight:"700",mb:"4px",children:"Expiry date"}),(0,j.jsxs)("div",{children:[null!==e&&void 0!==e&&e.expiryDate&&(null===e||void 0===e?void 0:e.expiryDate)!==Ce?(0,j.jsx)(y.X0,{children:(0,m.lQ)(null===e||void 0===e?void 0:e.expiryDate)}):"None",(0,j.jsx)("span",{})]})]})]})]},"".concat(null===e||void 0===e?void 0:e.name," ").concat(i))}))})})}),mt=function(e){var i=e.mshp;return(0,j.jsxs)(Fe,{$_css7:R.vb.tabletAndDown,children:[(0,j.jsxs)("li",{style:{display:"flex",gap:"15px",alignItems:"top"},children:[(0,j.jsx)(L.p9e,{strokeWidth:1.5,width:"35",height:"35"}),(0,j.jsxs)("div",{children:[(0,j.jsx)(y.ZT,{color:zi,fontSize:"12px",fontWeight:"700",mb:"4px",children:"Membership"}),(0,j.jsxs)("div",{className:"space-y-1",children:[(0,j.jsxs)("span",{className:"text-sm",children:[(null===i||void 0===i?void 0:i.name)||""," "]}),(0,j.jsx)(x.Z,{isTrue:i.paymentStatus===X.b.UNPAID,children:(0,j.jsx)(pe.Z,{text:"Unpaid",color:"#FE5F55",textColor:"white"})}),(0,j.jsx)(x.Z,{isTrue:i.paymentStatus===X.b.WAITING_APPROVAL,children:(0,j.jsx)(pe.Z,{text:"Pending approval",color:"#FFEFC6",textColor:"#94320C"})}),(0,j.jsx)(x.Z,{isTrue:i.paymentStatus===X.b.WAITING_ON_CUSTOMER,children:(0,j.jsx)(pe.Z,{text:"Action required",color:"#EDEDED",textColor:"#000"})}),(0,j.jsx)(x.Z,{isTrue:i.paymentStatus===X.b.DECLINED,children:(0,j.jsx)(pe.Z,{text:"Declined",color:"#FFE3E1",textColor:"#9F1D15"})})]})]})]}),!(null!==i&&void 0!==i&&i.isCreditUnlimited)&&(0,j.jsxs)("li",{style:{display:"flex",gap:"15px",alignItems:"top"},children:[(0,j.jsx)(q.z3,{strokeWidth:1.5,width:"35",height:"35"}),(0,j.jsxs)("div",{children:[(0,j.jsx)(y.ZT,{color:zi,fontSize:"12px",fontWeight:"700",mb:"4px",children:"Credits used"}),(0,j.jsx)("div",{className:"space-y-1",children:(0,j.jsx)("span",{className:"text-sm",children:null===i||void 0===i?void 0:i.creditUsed})})]})]}),(0,j.jsxs)("li",{style:{display:"flex",gap:"15px",alignItems:"top"},children:[(0,j.jsx)(L.Ser,{stroke:zi}),(0,j.jsxs)("div",{children:[(0,j.jsx)(y.ZT,{color:zi,fontSize:"12px",fontWeight:"700",mb:"4px",children:"Expiry date"}),(0,j.jsx)("div",{className:"text-sm",children:null!==i&&void 0!==i&&i.expiryDate&&(null===i||void 0===i?void 0:i.expiryDate)!==Ce?(0,j.jsx)("span",{children:(0,m.lQ)(null===i||void 0===i?void 0:i.expiryDate)}):"None"})]})]})]})},gt=(0,j.jsxs)(He,{$_css8:R.vb.tabletAndDown,children:[(0,j.jsxs)("li",{style:{display:"flex",gap:"12px",alignItems:"top"},children:[(0,j.jsx)(L.o$B,{stroke:zi}),(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"flex gap-3",children:(0,j.jsx)(y.ZT,{fontSize:"14px",fontWeight:"700",mb:"4px",children:"Total Quantity"})}),(0,j.jsx)("div",{className:"flex flex-col gap-3",children:(0,j.jsx)(v.Z,{isTrue:Un,showBlock:(0,j.jsx)("span",{children:null===_n||void 0===_n?void 0:_n.quantity}),hideBlock:(0,j.jsx)("span",{children:nt})})})]})]}),(0,j.jsxs)("li",{style:{display:"flex",gap:"12px",alignItems:"top"},children:[rt?(0,j.jsx)(fe,{color:zi,size:24}):ct?(0,j.jsx)(be,{color:zi,size:25}):xt?(0,j.jsx)(fe,{color:zi,size:24}
1):(0,j.jsx)(je,{color:zi,size:30}),(0,j.jsxs)("div",{children:[(0,j.jsx)(vt,{}),(0,j.jsx)("div",{children:(0,j.jsxs)("div",{className:"flex items-center gap-2",id:"payment-status-badge",children:[Un?(0,j.jsxs)("span",{children:[Rn(null===_n||void 0===_n?void 0:_n.paidAmount)," "]}):(0,j.jsxs)("span",{children:[" ",Rn(null===_n||void 0===_n||null===(li=_n.bookingPaymentInfo)||void 0===li?void 0:li.paidAmount)]}),ut&&(0,j.jsx)(_e,{status:"Pending approval"}),pt&&(0,j.jsx)(_e,{status:"Action required"}),xt&&(0,j.jsx)(_e,{status:"Declined"}),rt&&(0,j.jsx)(_e,{status:"Unpaid"})]})})]})]})]}),ft=(0,j.jsxs)(Be,{$_css9:R.vb.tabletAndDown,children:[(0,j.jsxs)("li",{style:{display:"flex",gap:"15px",alignItems:"top"},children:[(0,j.jsx)(L.p9e,{strokeWidth:1.5,width:"35",height:"35"}),(0,j.jsxs)("div",{children:[(0,j.jsx)(y.ZT,{color:zi,fontSize:"12px",fontWeight:"700",mb:"4px",children:"Membership"}),(0,j.jsxs)("div",{className:"space-y-1",children:[(0,j.jsx)("span",{className:"text-sm",children:null===bn||void 0===bn||null===(si=bn.data)||void 0===si?void 0:si.packageName}),(0,j.jsx)(x.Z,{isTrue:(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.UNPAID,children:(0,j.jsx)(pe.Z,{text:"Unpaid",color:"#FE5F55",textColor:"white"})}),(0,j.jsx)(x.Z,{isTrue:(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.WAITING_APPROVAL,children:(0,j.jsx)(pe.Z,{text:"Pending approval",color:"#FFEFC6",textColor:"#94320C"})}),(0,j.jsx)(x.Z,{isTrue:(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.WAITING_ON_CUSTOMER,children:(0,j.jsx)(pe.Z,{text:"Action required",color:"#EDEDED",textColor:"#000"})}),(0,j.jsx)(x.Z,{isTrue:(null===_n||void 0===_n?void 0:_n.paymentStatus)===X.b.DECLINED,children:(0,j.jsx)(pe.Z,{text:"Declined",color:"#FFE3E1",textColor:"#9F1D15"})})]})]})]}),!(null!==bn&&void 0!==bn&&null!==(ai=bn.data)&&void 0!==ai&&ai.isCreditUnlimited)&&(0,j.jsxs)("li",{style:{display:"flex",gap:"15px",alignItems:"top"},children:[(0,j.jsx)(q.z3,{strokeWidth:1.5,width:"35",height:"35"}),(0,j.jsxs)("div",{children:[(0,j.jsx)(y.ZT,{color:zi,fontSize:"12px",fontWeight:"700",mb:"4px",children:"Credits used"}),(0,j.jsx)("div",{className:"space-y-1",children:(0,j.jsx)("span",{className:"text-sm",children:null===bn||void 0===bn||null===(ri=bn.data)||void 0===ri?void 0:ri.creditUsed})})]})]}),(0,j.jsxs)("li",{style:{display:"flex",gap:"15px",alignItems:"top"},children:[(0,j.jsx)(L.Ser,{stroke:zi}),(0,j.jsxs)("div",{children:[(0,j.jsx)(y.ZT,{color:zi,fontSize:"12px",fontWeight:"700",mb:"4px",children:"Expiry date"}),(0,j.jsx)("div",{className:"text-sm",children:null!==bn&&void 0!==bn&&null!==(di=bn.data)&&void 0!==di&&di.expiryDate&&(null===bn||void 0===bn||null===(ci=bn.data)||void 0===ci?void 0:ci.expiryDate)!==Ce?(0,j.jsx)("span",{children:(0,m.lQ)(null===bn||void 0===bn||null===(ui=bn.data)||void 0===ui?void 0:ui.expiryDate)}):"None"})]})]})]});if(yn===we.class?!Cn||!_n:!bn)return(0,j.jsxs)(d.Z,{children:[(0,j.jsx)(p.Z,{hasLayout:!0}),";"]});if(0!==(null===Cn||void 0===Cn?void 0:Cn.code)&&!_n)return(0,j.jsx)(d.Z,{children:(0,j.jsx)(le.Z,{otherErrorsMsg:null===Cn||void 0===Cn?void 0:Cn.message})});var yt=(null===_n||void 0===_n?void 0:_n.pricingType)===ye.BOOKING||(null===_n||void 0===_n?void 0:_n.pricingType)===ye.PAYMENT;return(0,j.jsxs)(Ue,{title:"Booking Details",$_css10:zi,children:[Pn,(0,j.jsx)(T,{isShowDialog:pn,toggleDialog:function(){return xn((function(e){return!e}))}}),(0,j.jsxs)(Le,{children:[(0,j.jsx)(u.Z,{links:[{text:"My Schedule",href:"/account/bookings"},{text:(null===_n||void 0===_n?void 0:_n.className)||"Booking Confirmation"}]}),(0,j.jsxs)(Ze,{children:[(0,j.jsxs)(Pe,{children:[!Vi&&(0,j.jsxs)(de,{color:zi,textColor:qi,children:[(0,j.jsx)(Re,{as:"h2",mb:"20px",children:at}),(0,j.jsx)(y.ZT,{fontSize:"14px",children:st})]}),!Vi&&(0,j.jsx)("div",{className:"booking-heading",children:(0,j.jsxs)(Ve,{$_css11:R.vb.tabletAndDown,children:[(0,j.jsxs)("div",{children:[(0,j.jsx)(We,{as:"h3",$_css12:R.vb.tabletAndDown,children:(null===_n||void 0===_n?void 0:_n.className)||(null===_n||void 0===_n?void 0:_n.apptName)||"None"}),(0,j.jsxs)(ze,{children:["Booking ref: ",(null===_n||void 0===_n?void 0:_n.bookingRefNo)||(null===_n||void 0===_n?void 0:_n.refNo)||"None"]})]}),Gn===X.b.WAITING_APPROVAL&&"Completed"===_n.status||Gn===X.b.WAITING_APPROVAL&&"NoShow"===_n.status||Gn===X.b.WAITING_ON_CUSTOMER&&"Completed"===_n.status||Gn===X.b.WAITING_ON_CUSTOMER&&"NoShow"===_n.status?(0,j.jsxs)("div",{className:"flex items-center gap-1 rounded-lg px-2 py-1 text-xs font-bold",style:{backgroundColor:"#FFEFC6",color:"#94320C"},children:["Pending approval",(0,j.jsx)(r.Z,{name:"card",helperText:(0,j.jsx)("span",{className:" font-thin",children:"Booking completed, but payment is still awaiting approval. Check-in privileges are blocked until approval."}),children:(0,j.jsx)("span",{className:"",children:(0,j.jsx)(O.go,{stroke:"#94320C"})})})]}):(0,j.jsx)(pe.Z,{text:yn===we.appointment?B((null===_n||void 0===_n?void 0:_n.status)||""):H((null===_n||void 0===_n?void 0:_n.status)||""),color:ot,textColor:lt})]})}),(0,j.jsx)("div",{className:"booking-calendar hidden md:block",children:(0,j.jsx)(_.Z,{calendarEvent:Wn,variant:"link",label:"Add booking to calendar"})}),"waitlist"===(null===_n||void 0===_n||null===(pi=_n.status)||void 0===pi?void 0:pi.toLowerCase())||"waitlistexpired"===(null===_n||void 0===_n||null===(xi=_n.status)||void 0===xi?void 0:xi.toLowerCase())?(0,j.jsx)("div",{className:"waitlist__duration",children:(0,j.jsxs)(y.ZT,{fontSize:"16px",fontWeight:"700",children:["Cut-off time: Join ",_n.waitlistHoursBeforeClass," hour",1!==_n.waitlistHoursBeforeClass&&"s "," before class"]})}):null,(0,j.jsx)(v.Z,{isTrue:Un,showBlock:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(x.Z,{isTrue:"Package"===(null===_n||void 0===_n?void 0:_n.pricingType),children:(0,j.jsx)("div",{className:"package-details",children:ht})}),(0,j.jsx)(x.Z,{isTrue:"Membership"===(null===_n||void 0===_n?void 0:_n.pricingType),children:(0,j.jsx)("div",{className:"package-details",children:ft})}),(0,j.jsx)(x.Z,{isTrue:"Payment"===(null===_n||void 0===_n?void 0:_n.pricingType),children:(0,j.jsx)("div",{className:"package-details space-y-2",children:gt})})]}),hideBlock:(0,j.jsx)(j.Fragment,{children:null!==_n&&void 0!==_n&&_n.bookingPaymentInfo?(0,j.jsx)("div",{className:"package-details",children:gt}):null!==(null===_n||void 0===_n?void 0:_n.packageUsed)?(0,j.jsx)("div",{className:"package-details",children:ht}):(0,j.jsx)("div",{className:"package-details flex flex-col gap-3 ",children:null===_n||void 0===_n||null===(vi=_n.membershipUsed)||void 0===vi?void 0:vi.map((function(e){return(0,j.jsx)(mt,{mshp:e},null===e||void 0===e?void 0:e.membershipId)}))})})}),(0,j.jsxs)(x.Z,{isTrue:"appointment"!==yn,children:[Vi&&(0,j.jsx)(ie.Z,{color:qi,type:"horizontal"}),(0,j.jsxs)("div",{className:"mt-5 flex items-center justify-between",children:[(0,j.jsx)(y.pe,{children:"Who's coming"}),(0,j.jsx)(me.Z,{totalPax:Dn})]}),(0,j.jsx)(ge.Z,{isDirectPayment:yt,isFreeClass:Bn,allAttendees:Tn})]}),(null===_n||void 0===_n?void 0:_n.isSpinning)&&(0,j.jsx)(j.Fragment,{children:"Waitlist"!==(null===_n||void 0===_n?void 0:_n.status)&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("div",{children:[(0,j.jsx)(y.pe,{mb:"20px",children:"Your spot"}),(null===_n||void 0===_n||null===(hi=_n.spotNameList)||void 0===hi?void 0:hi.length)>0&&!Vi&&(0,j.jsx)("div",{className:"flex flex-wrap gap-2",children:null===_n||void 0===_n||null===(mi=_n.spotNameList)||void 0===mi?void 0:mi.map((function(e){return(0,j.jsxs)("div",{className:"flex h-[60px] w-[60px] flex-col items-center justify-center gap-1 rounded-full border-2 border-solid border-divider md:h-[84px] md:w-[84px]",children:[(0,j.jsx)("p",{className:"text-xs text-secondary opacity-50",children:"Spot"}),(0,j.jsx)("h4",{className:"font-bold text-secondary",children:e})]},e)}))}),(null===_n||void 0===_n||null===(gi=_n.spotNameList)||void 0===gi?void 0:gi.length)>0&&Hn?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("div",{ref:cn,className:"relative my-4 overflow-hidden rounded-xl border border-solid border-divider bg-white",children:[ln&&(0,j.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,j.jsx)(M.Z,{width:"40px",height:"40px"})}),(0,j.jsx)("div",{className:(0,U.Z)("absolute left-4 top-4 z-[1] mb-5 flex justify-center gap-x-2",ln&&"opacity-0"),children:(0,j.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,j.jsx)("button",{className:"flex flex-col items-center",onClick:function(){return vn("increase")},disabled:2===Yi,children:(0,j.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-[0px_1px_4px_0px_rgba(0,0,0,0.2),0px_1px_4px_0px_rgba(0,0,0,0.25)] ".concat(2===Yi?"cursor-not-allowed opacity-50":"cursor-pointer opacity-100"),children:(0,j.jsx)(J.R1,{})})}),(0,j.jsx)("button",{className:"flex flex-col items-center",onClick:function(){return vn("decrease")},disabled:.8===Yi,children:(0,j.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-[0px_1px_4px_0px_rgba(0,0,0,0.2),0px_1px_4px_0px_rgba(0,0,0,0.25)] ".concat(.8===Yi?"cursor-not-allowed opacity-50":"cursor-pointer opacity-100"),children:(0,j.jsx)(J.dZ,{})})})]})}),(0,j.jsx)(ke,{seats:null===(fi=Fn.seats.sections)||void 0===fi?void 0:fi[0],accessories:Fn.accessories||[],settings:Fn.settings,width:(null===(yi=cn.current)||void 0===yi?void 0:yi.clientWidth)||716,height:rn,onMeasure:hn,selectedSeats:(null===_n||void 0===_n||null===(ji=_n.spotNameList)||void 0===ji?void 0:ji.map((function(e){return{name:e,id:e,seatName:e}})))||[],setSelectedSeats:function(){},layout:Fn.state.layout,scaleX:Yi,scaleY:Ji,position:nn,handleDragMove:function(e){tn({x:e.target.x(),y:e.target.y()})},seatType:(null===Fn||void 0===Fn||null===(bi=Fn.state)||void 0===bi||null===(wi=bi.layout)||void 0===wi?void 0:wi.seatType)||"circle",handleScaleChange:vn,bookedSpotBookings:[],availibleSpots:[],disabledByForced:!1,maxBookingLimitPerClass:null,setPosition:tn,isLoading:ln,forDisplay:!0})]}),(0,j.jsx)("div",{className:"mb-5",children:(0,j.jsx)("div",{className:"mb-4 mt-4",children:(0,j.jsxs)(y.ZT,{lineHeight:"21px",fontWeight:"700",children:["Your selected spot :"," ",(null===_n||void 0===_n||null===(ki=_
1n.spotNameList)||void 0===ki?void 0:ki.length)>0?null===_n||void 0===_n||null===(Ci=_n.spotNameList)||void 0===Ci?void 0:Ci.join(", "):"-"]})})})]}):(null===_n||void 0===_n?void 0:_n.spinningClassImage)&&(0,j.jsx)("div",{className:"mt-4 w-full max-w-[558px] overflow-hidden rounded-lg border-[1px] border-solid border-secondary-bg",children:(0,j.jsx)(qe,{src:null===_n||void 0===_n?void 0:_n.spinningClassImage,onError:(0,he.W)(),alt:"Room Layout"})})]}),(0,j.jsx)(ie.Z,{my:"20px",color:qi})]})}),yn===we.class&&(null===_n||void 0===_n||null===(Ni=_n.thingsToBring)||void 0===Ni?void 0:Ni.length)>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(I.oV,{items:(null===_n||void 0===_n?void 0:_n.thingsToBring)||[]}),(0,j.jsx)(ie.Z,{color:"#E6E6E6",type:"horizontal"})]}),(0,j.jsx)(v.Z,{isTrue:yn===we.class,showBlock:(0,j.jsx)(j.Fragment,{children:(null===_n||void 0===_n?void 0:_n.isOnSite)&&(0,j.jsx)(I.kC,{address:null===_n||void 0===_n||null===(_i=_n.address)||void 0===_i?void 0:_i.addr,lat:null===_n||void 0===_n||null===(Ii=_n.address)||void 0===Ii?void 0:Ii.lat,long:null===_n||void 0===_n||null===(Zi=_n.address)||void 0===Zi?void 0:Zi.long})}),hideBlock:(0,j.jsx)(I.kC,{address:(null===_n||void 0===_n||null===(Pi=_n.address)||void 0===Pi?void 0:Pi.addr)||"",lat:null===_n||void 0===_n||null===(Li=_n.address)||void 0===Li?void 0:Li.lat,long:null===_n||void 0===_n||null===(Ti=_n.address)||void 0===Ti?void 0:Ti.long})}),(null===_n||void 0===_n?void 0:_n.isOnSite)&&(0,j.jsx)(ie.Z,{type:"horizontal",my:"10px",color:"#E6E6E6"}),"Booked"===(null===_n||void 0===_n?void 0:_n.status)&&(yn===we.class||(null===_n||void 0===_n?void 0:_n.isCancelEnabled))&&(0,j.jsxs)(Ge,{$_css13:R.vb.tabletAndDown,children:[(0,j.jsxs)("div",{className:"w-full md:max-w-[280px]",children:[(0,j.jsx)(y.pe,{mb:"15px",children:"Cancellation"}),(_n.cancelHour||_n.cancellationPolicy||(null===_n||void 0===_n?void 0:_n.cancellationHour)>0)&&Xn]}),(0,j.jsx)(ne.f5,{color:"#FE5F55",width:Vi?"100%":"auto",padding:"13.5px 24px",onClick:function(){$n.toggle()},children:"Cancel booking"})]}),yn===we.class&&"Waitlist"===(null===_n||void 0===_n?void 0:_n.status)&&(0,j.jsxs)($e,{$_css14:R.vb.tabletAndDown,children:[_n.cancelHour>0?(0,j.jsxs)("div",{children:[(0,j.jsx)(y.pe,{mb:"15px",children:"Cancellation"}),(0,j.jsxs)(y.ZT,{children:["Please remove yourself from the waitlist"," ",_n.cancelHour>1?"".concat(_n.cancelHour," hours"):"".concat(_n.cancelHour," hour")," before the class start if you no longer wish to attend class."]}),(0,j.jsx)("br",{}),(0,j.jsx)(y.ZT,{children:" Bumped up waitlisted slots will not be waived for late cancel."})]}):(0,j.jsxs)("div",{children:[(0,j.jsx)(y.pe,{mb:"15px",children:"Cancellation"}),(0,j.jsx)(y.ZT,{children:"Please remove yourself from the waitlist before the class start if you no longer wish to attend class."})]}),(0,j.jsx)(ne.f5,{color:"#FE5F55",width:Vi?"100%":"auto",padding:"13.5px 24px",onClick:An.toggle,children:"Cancel waitlist"})]}),Kn,An.view,$n.view,"completed"!==(null===_n||void 0===_n||null===(Di=_n.status)||void 0===Di?void 0:Di.toLowerCase())||null!==_n&&void 0!==_n&&_n.isChildBooking?null:null!==_n&&void 0!==_n&&_n.classRating||null!==_n&&void 0!==_n&&_n.trainerRating?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(Te,{children:[(0,j.jsx)("div",{className:"heading",children:(0,j.jsx)(y.pe,{children:"Reviews"})}),(0,j.jsxs)(Ye,{children:[null===_n||void 0===_n?void 0:_n.className,null!==_n&&void 0!==_n&&_n.instructor?(0,j.jsxs)("span",{children:[" with ",null===_n||void 0===_n?void 0:_n.instructor]}):null]}),(0,j.jsxs)("div",{className:"stars",children:[(0,j.jsx)(N.Z,{number:(null===_n||void 0===_n||null===(Ai=_n.classRating)||void 0===Ai?void 0:Ai.ratingCount)||0}),(0,j.jsxs)("div",{children:[(0,j.jsx)(L.fQ4,{stroke:zi}),(0,j.jsx)("span",{children:(null===_n||void 0===_n||null===(Si=_n.classRating)||void 0===Si?void 0:Si.location)||"Location"})]})]}),(0,j.jsx)("div",{className:"desc",children:(null===_n||void 0===_n||null===(Ei=_n.classRating)||void 0===Ei?void 0:Ei.review)||""}),(0,j.jsx)("div",{className:"postedDate",children:"Posted ".concat((0,m.rw)(null===_n||void 0===_n||null===(Mi=_n.classRating)||void 0===Mi?void 0:Mi.reviewedDate))})]}),(null===_n||void 0===_n||null===(Oi=_n.classRating)||void 0===Oi?void 0:Oi.reviewReply)&&(0,j.jsx)(w,{text:null===_n||void 0===_n||null===(Fi=_n.classRating)||void 0===Fi?void 0:Fi.reviewReply,date:null===_n||void 0===_n||null===(Hi=_n.classRating)||void 0===Hi?void 0:Hi.repliedOn})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(y.pe,{children:"Reviews"}),(0,j.jsx)(ue,{toggle:et})]})]}),(0,j.jsx)(Qe,{$_css15:R.vb.tabletAndDown,children:(0,j.jsx)(c.Z,{checkInFailed:Yn,calendarEvent:Wn,id:gn,apptId:null===_n||void 0===_n?void 0:_n.transactionId,isOnsite:"classes"!==yn||Boolean(null===_n||void 0===_n?void 0:_n.isOnSite),profileImages:(null===_n||void 0===_n?void 0:_n.classImages)||[null===_n||void 0===_n?void 0:_n.imageUrl]||0,status:(null===_n||void 0===_n||null===(Bi=_n.status)||void 0===Bi?void 0:Bi.toLowerCase())||"",location:(null===_n||void 0===_n?void 0:_n.location)||"--",startTime:(null===_n||void 0===_n?void 0:_n.startTime)||"00:00:00",instructor:(null===_n||void 0===_n?void 0:_n.instructor)||"",starDate:(null===_n||void 0===_n?void 0:_n.startDate)||"2022-04-03T13:52:52.625Z",duration:(null===_n||void 0===_n?void 0:_n.duration)||"00:00:00",durationType:(null===_n||void 0===_n?void 0:_n.durationType)||"Minutes",checkInRule:null!==_n&&void 0!==_n&&_n.isAutoCheckIn||(null===_n||void 0===_n||!_n.isOnSite)&&yn===we.class?"":yn===we.class?null===_n||void 0===_n?void 0:_n.checkInRule:wn,cancelCheckInTime:(null===_n||void 0===_n?void 0:_n.cancellationDate)||"2022-04-03T13:52:52.625Z",facility:(null===_n||void 0===_n?void 0:_n.facility)||"",meetingUrl:null===_n||void 0===_n?void 0:_n.meetingUrl,meetingId:null===_n||void 0===_n?void 0:_n.meetingId,password:null===_n||void 0===_n?void 0:_n.password,isChildBooking:(null===_n||void 0===_n?void 0:_n.isChildBooking)||!1,noOfChild:(null===_n||void 0===_n?void 0:_n.noOfChild)||0,childAccountInfoResponseModels:(null===_n||void 0===_n?void 0:_n.childAccountInfoResponseModels)||[],bookingId:(null===_n||void 0===_n?void 0:_n.id)||(null===_n||void 0===_n?void 0:_n.bookingId)||"",bookingGroupId:(null===_n||void 0===_n?void 0:_n.bookingGroupId)||"",bookingRefNo:(null===_n||void 0===_n?void 0:_n.bookingRefNo)||(null===_n||void 0===_n?void 0:_n.refNo)||"",bookingType:(null===_n||void 0===_n?void 0:_n.bookingType)||"",bookingClassName:(null===_n||void 0===_n?void 0:_n.className)||(null===_n||void 0===_n?void 0:_n.apptName)||"None",isAutoCheckIn:(Un?null===_n||void 0===_n?void 0:_n.isAutoCheckedIn:null===_n||void 0===_n?void 0:_n.isAutoCheckIn)||!1,staffName:null===_n||void 0===_n?void 0:_n.staffName,equipment:null===_n||void 0===_n?void 0:_n.equipment,showQRModal:function(){return Ln(!0)},isPaid:null===_n||void 0===_n?void 0:_n.isPaid,customerPaymentId:(null===_n||void 0===_n?void 0:_n.customerPaymentId)||
1(null===_n||void 0===_n?void 0:_n.transactionId),scheduleId:(Un?null===_n||void 0===_n?void 0:_n.apptScheduleId:null===_n||void 0===_n?void 0:_n.scheduleId)||"",mmshId:(null===_n||void 0===_n||null===(Ui=_n.membershipUsed)||void 0===Ui?void 0:Ui.membershipId)||"",isRecurring:(null===_n||void 0===_n||null===(Ri=_n.membershipUsed)||void 0===Ri?void 0:Ri.isRecurring)||!1,isEnableUnlock:(null===_n||void 0===_n?void 0:_n.isEnableUnlock)||!1,requiresSpApproval:_n.requiresSpApproval,manualStatus:Gn})})]})]})]})},Ae=(f.ZP.div.withConfig({displayName:"BookingConfirmation__GuestNumberContainer",componentId:"sc-1khdcd4-4"})(["margin-left:-10px;z-index:2;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:",";border:1px solid ",";"],(function(e){return e.theme.color.secondary.background}),(function(e){return e.theme.color.primary})),f.ZP.div.withConfig({displayName:"BookingConfirmation__PackageWrapper",componentId:"sc-1khdcd4-5"})(["display:flex;flex-direction:column;gap:12px;& ul:not(:last-child){border-bottom:1px solid #e6e6e6;padding-bottom:12px;}"])),Se=(0,f.ZP)(ae.Z).withConfig({displayName:"BookingConfirmation___StyledHTMLContent",componentId:"sc-1khdcd4-6"})(["margin-top:12px;"]),Ee=(0,f.ZP)(ae.Z).withConfig({displayName:"BookingConfirmation___StyledHTMLContent2",componentId:"sc-1khdcd4-7"})(["> *{font-size:14px;}"]),Me=(0,f.ZP)("ul").withConfig({displayName:"BookingConfirmation___StyledUl",componentId:"sc-1khdcd4-8"})(["display:grid;gap:12px;grid-template-columns:",";grid-template-rows:1fr;list-style-type:disc;@media ","{grid-template-columns:1fr;margin-left:0px;}"],(function(e){return e.$_css}),(function(e){return e.$_css2})),Oe=(0,f.ZP)("ul").withConfig({displayName:"BookingConfirmation___StyledUl2",componentId:"sc-1khdcd4-9"})(["display:grid;gap:12px;grid-template-columns:",";grid-template-rows:1fr;list-style-type:disc;@media ","{grid-template-columns:1fr;margin-left:0px;}"],(function(e){return e.$_css5}),(function(e){return e.$_css6})),Fe=(0,f.ZP)("ul").withConfig({displayName:"BookingConfirmation___StyledUl3",componentId:"sc-1khdcd4-10"})(["display:grid;gap:20px 96px;grid-template-columns:1fr 1fr 1fr;list-style-type:disc;margin-left:15px;padding-bottom:20px;@media ","{grid-template-columns:1fr;margin-left:0px;}"],(function(e){return e.$_css7})),He=(0,f.ZP)("ul").withConfig({displayName:"BookingConfirmation___StyledUl4",componentId:"sc-1khdcd4-11"})(["display:grid;width:100%;gap:20px;grid-template-columns:repeat(2,minmax(170px,1fr));list-style-type:disc;@media ","{grid-template-columns:1fr;margin-left:0px;}"],(function(e){return e.$_css8})),Be=(0,f.ZP)("ul").withConfig({displayName:"BookingConfirmation___StyledUl5",componentId:"sc-1khdcd4-12"})(["display:grid;gap:20px 96px;grid-template-columns:1fr 1fr 1fr;list-style-type:disc;margin-left:15px;@media ","{grid-template-columns:1fr;margin-left:0px;}"],(function(e){return e.$_css9})),Ue=(0,f.ZP)(d.Z).withConfig({displayName:"BookingConfirmation___StyledLayout",componentId:"sc-1khdcd4-13"})((function(e){return{color:e.$_css10}})),Re=(0,f.ZP)(y.ZT).withConfig({displayName:"BookingConfirmation___StyledTypography",componentId:"sc-1khdcd4-14"})(["font-style:normal;font-weight:700;font-size:20px;line-height:30px;"]),Ve=(0,f.ZP)("div").withConfig({displayName:"BookingConfirmation___StyledDiv",componentId:"sc-1khdcd4-15"})(["display:flex;justify-content:space-between;align-items:center;@media ","{flex-direction:column;gap:8px;}"],(function(e){return e.$_css11})),We=(0,f.ZP)(y.ZT).withConfig({displayName:"BookingConfirmation___StyledTypography2",componentId:"sc-1khdcd4-16"})(["font-style:normal;font-weight:700;font-size:28px;line-height:35px;@media ","{font-size:24px;}"],(function(e){return e.$_css12})),ze=(0,f.ZP)(y.ZT).withConfig({displayName:"BookingConfirmation___StyledTypography3",componentId:"sc-1khdcd4-17"})(["opacity:0.5;"]),qe=(0,f.ZP)("img").withConfig({displayName:"BookingConfirmation___StyledImg",componentId:"sc-1khdcd4-18"})(["width:100%;height:100%;max-width:558px;"]),Ge=(0,f.ZP)("div").withConfig({displayName:"BookingConfirmation___StyledDiv2",componentId:"sc-1khdcd4-19"})(["display:flex;align-items:flex-start;justify-content:space-between;gap:20px;div{flex:1;}@media ","{flex-direction:column;}"],(function(e){return e.$_css13})),$e=(0,f.ZP)("div").withConfig({displayName:"BookingConfirmation___StyledDiv3",componentId:"sc-1khdcd4-20"})(["display:flex;align-items:flex-end;justify-content:space-between;gap:20px;div{flex:1;}@media ","{flex-direction:column;}"],(function(e){return e.$_css14})),Ye=(0,f.ZP)("p").withConfig({displayName:"BookingConfirmation___StyledP",componentId:"sc-1khdcd4-21"})(["font-size:16px;font-weight:700;margin-top:10px;span{font-weight:400;}"]),Qe=(0,f.ZP)("div").withConfig({displayName:"BookingConfirmation___StyledDiv4",componentId:"sc-1khdcd4-22"})(["align-self:start;@media ","{width:100vw;}"],(function(e){return e.$_css15})),Xe=((0,f.ZP)("div").withConfig({displayName:"BookingConfirmation___StyledDiv5",componentId:"sc-1khdcd4-23"})(["display:flex;margin:4px 0px 24px;align-items:center;gap:12px;"]),(0,f.ZP)("div").withConfig({displayName:"BookingConfirmation___StyledDiv6",componentId:"sc-1khdcd4-24"})(["display:flex;"]),n(39197)),Je=n(30381),Ke=n.n(Je),ei=n(59499),ii=n(4730),ni={Granted:{label:"Checked In",title:"You have checked-in successfully! \ud83d\udc4d",info:"You will receive a confirmation email with your check-in details",background:"#29339B",color:"#FFFFFF"},Cancelled:{label:"Cancelled",title:"Your check-in has been cancelled!",info:"This check-in will not be counted under your outlet check-ins.",background:"#FE5F55",color:"#FFFFFF"},Denied:{label:"Failed",title:"Your check-in has failed!",background:"#FE5F55",color:"#FFFFFF"}},ti=["info"];function oi(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);i&&(t=t.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,t)}return n}function li(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};
1i%2?oi(Object(n),!0).forEach((function(i){(0,ei.Z)(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))}))}return e}var si=function(){var e=(0,Q.useRouter)(),i=(0,A.P)().isTabletOrMobile,n=(0,D.vH)(),t=n.textColor,o=n.secondaryBg,l=e.query.id,s=(0,K.Ap)("/accounts/access/".concat(l),{shouldFetch:!!l}),a=s.data;if(s.error||404===(null===a||void 0===a?void 0:a.code))return(0,j.jsx)(d.Z,{children:(0,j.jsx)(le.Z,{})});if(null===a||void 0===a||!a.data)return(0,j.jsx)(d.Z,{children:(0,j.jsx)(p.Z,{hasLayout:!0})});var r=a.data,c=function(e,i){var n=ni[e],t=n.info;return li(li({},(0,ii.Z)(n,ti)),{},"Denied"===e?{info:(null===i||void 0===i?void 0:i.trim())||"If you think this is a mistake, please get in touch with the business."}:{info:null!==t&&void 0!==t?t:""})}(r.status,r.reason),x=c.label,v=c.background,h=c.color,g=c.info,f=c.title;return(0,j.jsxs)(ai,{title:"Booking Details",$_css:t,children:[(0,j.jsxs)("div",{className:"hidden h-[90vh] w-full px-40 pt-[60px] lg:block",children:[(0,j.jsx)(u.Z,{links:[{text:"My Schedule",href:"/account/bookings"},{text:(null===r||void 0===r?void 0:r.location)||"Checked in Confirmation"}]}),(0,j.jsxs)("div",{children:[!i&&(0,j.jsxs)(de,{color:t,textColor:o,children:[(0,j.jsx)("h2",{className:"mb-5 text-xl font-bold leading-7",children:f}),(0,j.jsx)("p",{className:"text-sm",children:g})]}),(0,j.jsxs)("div",{className:"mt-10 space-y-5",children:[(0,j.jsxs)("div",{className:"flex items-center justify-between",children:[(0,j.jsxs)("div",{className:"space-y-1",children:[(0,j.jsx)("h3",{className:"text-2xl font-bold leading-8",children:(null===r||void 0===r?void 0:r.location)||"None"}),(0,j.jsxs)("p",{className:"text-sm opacity-50",children:["Ref no: ",(null===r||void 0===r?void 0:r.refNo)||"None"]})]}),(0,j.jsx)(pe.Z,{text:x,color:"Granted"===r.status?t:v,textColor:h})]}),(0,j.jsxs)("div",{className:"space-y-2 rounded-xl border border-solid border-[#EDEDED] bg-off-white p-5",children:[(0,j.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,j.jsx)(L.Ser,{width:"18",height:"18",stroke:t}),(0,j.jsx)("p",{className:"text-sm",children:(0,m.lQ)(null===r||void 0===r?void 0:r.checkInTime,"d MMM yyyy, EEEE")})]}),(0,j.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,j.jsx)(L.Vpi,{}),(0,j.jsx)("p",{className:"text-sm",children:(0,Xe.qA)(Ke()(null===r||void 0===r?void 0:r.checkInTime).format("hh:mm:ss"))})]})]}),(0,j.jsxs)("div",{className:"drop-shadow-[0px_4px_16px_0px_rgba(0, 0, 0, 0.07)] grid grid-cols-3 rounded-xl bg-secondary-bg px-6 py-5",children:[(0,j.jsxs)("div",{className:"flex gap-4",children:[(0,j.jsx)("div",{className:"w-8",children:(0,j.jsx)(L.p9e,{stroke:t})}),(0,j.jsxs)("div",{className:"space-y-2",children:[(0,j.jsxs)("p",{className:"text-sm font-semibold",style:{color:t},children:[!!r.packageUsed&&"Package",!!r.membershipUsed&&"Membership"]}),(0,j.jsxs)("p",{className:"text-sm text-black",children:[!!r.packageUsed&&r.packageUsed.name,!!r.membershipUsed&&r.membershipUsed.name]})]})]}),r.membershipUsed&&!r.membershipUsed.isCreditUnlimited&&(0,j.jsxs)("div",{className:"flex gap-4",children:[(0,j.jsx)("div",{className:"w-8",children:(0,j.jsx)(q.z3,{})}),(0,j.jsxs)("div",{className:"space-y-2",children:[(0,j.jsx)("p",{className:"text-sm font-semibold",style:{color:t},children:"Credits used"}),(0,j.jsx)("p",{className:"text-sm text-black",children:r.membershipUsed.creditUsed})]})]}),(0,j.jsxs)("div",{className:"flex gap-4",children:[(0,j.jsx)("div",{className:"w-8",children:(0,j.jsx)(L.Ser,{width:"24",height:"24",stroke:t})}),(0,j.jsxs)("div",{className:"space-y-2",children:[(0,j.jsx)("p",{className:"text-sm font-semibold",style:{color:t},children:"Expiry date"}),(0,j.jsxs)("p",{className:"text-sm text-black",children:[!!r.packageUsed&&(r.packageUsed.expiryDate?(0,m.lQ)(r.packageUsed.expiryDate):"None"),!!r.membershipUsed&&(r.membershipUsed.expiryDate?(0,m.lQ)(r.membershipUsed.expiryDate):"None")]})]})]})]})]})]})]}),(0,j.jsxs)("div",{className:"lg:hidden",children:[(0,j.jsxs)("div",{className:"relative",children:[(0,j.jsxs)("div",{className:"px-7 pb-20 pt-16",style:{backgroundColor:t,color:o},children:[(0,j.jsx)("p",{className:"text-xl font-bold",children:null===r||void 0===r?void 0:r.location}),(0,j.jsxs)("div",{className:"mt-3 grid grid-cols-2",children:[(0,j.jsxs)("div",{className:"flex space-x-4",children:[(0,j.jsx)(L.Vpi,{color:o}),(0,j.jsx)("p",{className:"text-sm",children:(0,m.lQ)(null===r||void 0===r?void 0:r.checkInTime,"d MMM yyyy, EEEE")})]}),(0,j.jsx)("p",{className:"text-sm",children:(0,Xe.qA)(Ke()(null===r||void 0===r?void 0:r.checkInTime).format("hh:mm:ss"))})]})]}),(0,j.jsx)("div",{className:"absolute -bottom-16 box-border flex w-full px-4",children:(0,j.jsxs)("div",{className:"w-full rounded-xl border border-solid border-[#
1E6E6E6] bg-white p-4",children:[(0,j.jsx)("h2",{className:"text-xl font-bold leading-7",children:f}),(0,j.jsxs)("p",{className:"text-sm opacity-50",children:["Ref no: ",(null===r||void 0===r?void 0:r.refNo)||"None"]}),(0,j.jsx)("p",{className:"mt-2 text-sm",children:g})]})})]}),(0,j.jsxs)("div",{className:"mt-24 mb-8 space-y-4 px-4",children:[(0,j.jsx)("h3",{className:"text-base font-bold",children:"Booked with"}),(0,j.jsxs)("div",{className:"flex gap-4",children:[(0,j.jsx)("div",{className:"w-8",children:(0,j.jsx)(L.p9e,{stroke:t})}),(0,j.jsxs)("div",{className:"space-y-2",children:[(0,j.jsxs)("p",{className:"text-sm font-semibold",style:{color:t},children:[!!r.packageUsed&&"Package",!!r.membershipUsed&&"Membership"]}),(0,j.jsxs)("p",{className:"text-sm text-black",children:[!!r.packageUsed&&r.packageUsed.name,!!r.membershipUsed&&r.membershipUsed.name]})]})]}),(0,j.jsxs)("div",{className:"flex gap-4",children:[(0,j.jsx)("div",{className:"w-8",children:(0,j.jsx)(L.Ser,{width:"24",height:"24",stroke:t})}),(0,j.jsxs)("div",{className:"space-y-2",children:[(0,j.jsx)("p",{className:"text-sm font-semibold",style:{color:t},children:"Expiry date"}),(0,j.jsxs)("p",{className:"text-sm text-black",children:[!!r.packageUsed&&(r.packageUsed.expiryDate?(0,m.lQ)(r.packageUsed.expiryDate):"None"),!!r.membershipUsed&&(r.membershipUsed.expiryDate?(0,m.lQ)(r.membershipUsed.expiryDate):"None")]})]})]})]})]})]})},ai=(0,f.ZP)(d.Z).withConfig({displayName:"OutletCheckInConfirmation___StyledLayout",componentId:"sc-1gfqobv-0"})((function(e){return{color:e.$_css}})),ri=n(25675),di=n.n(ri),ci=function(){return(0,j.jsx)("div",{children:"Notes"})};var ui=function(){(0,A.P)().isTabletOrMobile;var e,i=(0,D.vH)(),n=i.textColor;i.secondaryBg,(0,K.Tu)().handleMutate;(0,o.jI)();var t=(0,Q.useRouter)().query.id,l=(0,K.Ap)("/accounts/bookings/".concat(t),{shouldFetch:!!t}),s=l.data,a=l.error,r=null===s||void 0===s?void 0:s.data,c=(0,V.Z)((0,m.io)(),(0,m.io)(null===r||void 0===r?void 0:r.cancellationDate))>0,x=Boolean(null===r||void 0===r?void 0:r.packageUsed),v=!(null===r||void 0===r||!r.bookingPaymentInfo),g=((0,te.ZP)(null!==(e=null===r||void 0===r?void 0:r.bookingGroupId)&&void 0!==e?e:t,function(e,i,n){return e?i?"Your credits will be deducted from your package because it is a late cancellation. Are you sure you want to cancel your booking?":"You will receive one penalty strike because it is a late cancellation. Are you sure you want to cancel your booking?":n?"The drop-in amount paid for your class will be refunded to you as credits. It will be available in your account under My packages. Are you sure you want to cancel your booking? ":i?"Your credits will be returned to your package. Are you sure you want to cancel your booking?":"No penalty will be awarded. Are you sure you want to cancel your booking?"}(c,x,v)),(0,h.Z)().showPricing,"Booked"===(null===r||void 0===r?void 0:r.status)?null!==r&&void 0!==r&&r.cancelHour&&(y.ZT,"Cancel before ".concat((0,m.p6)(null===r||void 0===r?void 0:r.cancellationDate,"dd MMM yyyy, h:mm aaa")," to avoid late\n            cancellation")):(y.ZT,null!==r&&void 0!==r&&r.cancelHour&&(y.ZT,(0,m.p6)(null===r||void 0===r?void 0:r.cancellationDate,"dd MMM yyyy, h:mm aaa"))),(null===r||void 0===r?void 0:r.cancellationPolicy)&&r.cancellationPolicy,(0,oe.Z)({id:t,validateUrl:["/accounts/bookings/".concat(t),"/accounts/bookings/".concat(t,"/ratings")],header:"Leave a review",data:{classId:null===r||void 0===r?void 0:r.classId,trainerId:"",instructor:null===r||void 0===r?void 0:r.instructor}}));g.view,g.toggle;return a?(0,j.jsx)(d.Z,{children:(0,j.jsx)(le.Z,{})}):s&&r?0===(null===s||void 0===s?void 0:s.code)||r?(0,j.jsx)(pi,{title:"Booking Details",$_css:n,children:(0,j.jsxs)("section",{className:"mx-auto my-16 max-w-5xl",children:[(0,j.jsx)(u.Z,{links:[{text:"My Schedule",href:"/account/bookings"},{text:"Level 1 Surfskate Beginner",href:"/acount/bookings/".concat(1234)}]}),(0,j.jsxs)("div",{className:"flex gap-16",children:[(0,j.jsxs)("div",{className:"flex basis-2/3 flex-col gap-8",children:[(0,j.jsxs)("div",{className:"flex items-start justify-between",children:[(0,j.jsxs)("div",{children:[(0,j.jsx)("h3",{className:"header -mt-1",children:"Level 1 Surfskate Beginner"}),(0,j.jsx)("p",{className:"text-sm ",children:"Booking ref: GTE81SCF"})]}),(0,j.jsx)(ve.Z,{status:"upcoming"})]}),(0,j.jsxs)("div",{children:[(0,j.jsx)("h4",{className:"mb-3 subheader-large",children:"About this course"}),(0,j.jsx)("p",{className:"text-sm",children:"A write-up about trainer lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo."})]}),(0,j.jsx)(ie.Z,{type:"horizontal",className:"!border-b-secondary-bg"}),(0,j.jsxs)("div",{children:[(0,j.jsx)("h4",{className:"mb-3 subheader-large",children:"Notes by my trainer"}),(0,j.jsxs)("div",{className:"mb-5 flex gap-3",children:[(0,j.jsx)(di(),{src:"/angStudio.png",width:180,height:108,className:"rounded-lg"}),(0,j.jsx)(di(),{src:"/angStudio.png",width:180,height:108,className:"rounded-lg"})]}),(0,j.jsx)("p",{className:"text-sm",children:"Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, w hen an unknown printer took a galley of type and let me Aliquam erat volutpat. In fermentum magna et ante vestibulum posuere. Fusce ut aliquet eros."})]}),(0,j.jsx)(ie.Z,{type:"horizontal",className:"!border-b-secondary-bg"}),(0,j.jsxs)("div",{children:[(0,j.jsx)("h4",{className:"mb-3 subheader-large",children:"My notes"}),(0,j.jsx)(ci,{})]})]}),(0,j.jsx)("div",{className:"basis-1/3",children:"card"})]})]})}):(0,j.jsx)(d.Z,{children:(0,j.jsx)(le.Z,{otherErrorsMsg:null===s||void 0===s?void 0:s.message})}):(0,j.jsxs)(d.Z,{children:[(0,j.jsx)(p.Z,{hasLayout:!0}),";"]})},pi=((0,f.ZP)(ae.Z).withConfig({displayName:"CourseBookingConfirmation___StyledHTMLContent",componentId:"sc-995juc-0"})(["margin-top:12px;"]),(0,f.ZP)(d.Z).withConfig({displayName:"CourseBookingConfirmation___StyledLayout",componentId:"sc-995juc-1"})((function(e){return{color:e.$_css}}))),xi={outlet:(0,j.jsx)(si,{}),classes:(0,j.jsx)(De,{}),courses:(0,j.jsx)(ui,{}),appointment:(0,j.jsx)(De,{})},vi=!0,hi=function(e){var i,n=e.meta,t=null!==(i=(0,Q.useRouter)().query.scheduleType)&&void 0!==i?i:"classes";return(0,j.jsx)(l.Z,{meta:n,children:(0,j.jsx)(o.a,{children:xi[t]||null})})}},24399:function(e,i,n){"use strict";n.d(i,{O:function(){return o}});var t=n(50470),o=function(e){var i=e.guestCount,n=e.familyList,o=e.isOwnerBooked,l=[],s=i+n.length;
1return o&&(s+=1,l.push("Myself")),n.forEach((function(e){l.push(e)})),i>0&&l.push((0,t.Ac)(i,"guest")),{totalPax:s,bookedPeople:(0,t.If)(l)}}},37957:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-bookings/[id]",function(){return n(14708)}])},92777:function(e,i,n){"use strict";function t(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}n.d(i,{Z:function(){return t}})},82262:function(e,i,n){"use strict";function t(e,i){for(var n=0;n<i.length;n++){var t=i[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function o(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}n.d(i,{Z:function(){return o}})}},function(e){e.O(0,[4885,5445,7738,4171,5890,2685,496,8491,4088,7868,5441,553,2807,3775,4682,5391,1834,6532,1369,2096,2994,6129,6788,9774,2888,179],(function(){return i=37957,e(e.s=i);var i}));var i=e.O();_N_E=i}]);

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.