(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6818],{1794:(e,t,s)=>{"use strict";s.d(t,{LocationProvider:()=>u,x:()=>d,z:()=>v});var n=s(95155),i=s(12115),a=s(41709);let l=(0,i.createContext)(void 0),o={defaultGratuity:0,serviceCharge:0,showGratuity:!1,taxesAndFees:0},r={allowBooking:!1},c={"fort-worth":!0,"las-vegas":!0,lenox:!1,tucson:!1,woodside:!1},d={"fort-worth":0x3eb04d650,"las-vegas":0x45884861f},u=e=>{let{children:t}=e,[s,d]=(0,i.useState)(null),[u,v]=(0,i.useState)(o),[m,_]=(0,i.useState)(r),[g,{data:h}]=(0,a.t$n)(),[f,{data:x}]=(0,a.LMz)(),[p,{data:y}]=(0,a.nUX)(),[C,b]=(0,i.useState)(!1),[N,k]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{s&&(g({variables:{locationSlug:s}}),f({variables:{locationSlug:s}}),p({variables:{locationSlug:s}}),_({allowBooking:c[s.toLowerCase()]||!1}))},[s,g,f,p]),(0,i.useEffect)(()=>{var e;if(null==y?void 0:null===(e=y.frontendConfig.data)||void 0===e?void 0:e.enableMultiGuestBooking){let{enableMultiGuestBooking:e}=y.frontendConfig.data;k(e)}},[y]),(0,i.useEffect)(()=>{var e;if(null==h?void 0:null===(e=h.frontendConfig.data)||void 0===e?void 0:e.serviceConfigByLocation.serviceCharges){let{serviceCharges:e}=h.frontendConfig.data.serviceConfigByLocation;v({defaultGratuity:e.defaultGratuity,serviceCharge:e.serviceCharge,showGratuity:e.showGratuity,taxesAndFees:e.taxesAndFees})}},[h]),(0,i.useEffect)(()=>{var e;if(null==x?void 0:null===(e=x.frontendConfig.data)||void 0===e?void 0:e.showReservationPaymentMethod){let{showReservationPaymentMethod:e}=x.frontendConfig.data;b(e)}},[x]),(0,n.jsx)(l.Provider,{value:{allowReservationAsGuarantee:C,bookingConfig:m,config:u,location:s,setLocation:d,enableMultiGuestBooking:N},children:t})},v=()=>{let e=(0,i.useContext)(l);if(!e)throw Error("useLocation must be used within a LocationProvider");return e}},2553:e=>{e.exports={container:"styles_container__ROiPl",innerContainer:"styles_innerContainer__aMcoZ",cancelTxt:"styles_cancelTxt__Qvp9Z",cancelSubTxt:"styles_cancelSubTxt__s9UCc",btnContainer:"styles_btnContainer__aSwg4",failedCancel:"styles_failedCancel__MmDuG",link:"styles_link__jdUpN",policyTxt:"styles_policyTxt__tVeMS",customModal:"styles_customModal__1JfOx",btn:"styles_btn__pv8Ef",icon:"styles_icon__eqvln",calendarIcon:"styles_calendarIcon__Be5J_",ellipsis:"styles_ellipsis__4d5f_",active:"styles_active__zyIkt",dropdownMenu:"styles_dropdownMenu__TY_1z",dropdownItem:"styles_dropdownItem__Q4J9Q",overlay:"styles_overlay__9qG2_",actionMessage:"styles_actionMessage__hkfEK",actionContainer:"styles_actionContainer__mLVqv",actionTxt:"styles_actionTxt__XoSsK",checkIcon:"styles_checkIcon__XH79I",crossIcon:"styles_crossIcon__X1U_f",overlayBackground:"styles_overlayBackground__8fqW2"}},5673:(e,t,s)=>{"use strict";s.d(t,{F:()=>n});let n=e=>e.find(e=>"ImageModel"===e.__typename)},9712:(e,t,s)=>{"use strict";s.d(t,{$:()=>r});var n=s(95155),i=s(29300),a=s.n(i),l=s(71980),o=s.n(l);let r=e=>{let{children:t,variant:s="primary",size:i="base",withIcon:l=!1,fill:r=!1,className:c,...d}=e,u=a()(o().button,o()[s],o()[i],{[o().withIcon]:l,[o().fill]:r},c);return(0,n.jsx)("button",{className:u,...d,children:t})}},14164:(e,t,s)=>{"use strict";s.d(t,{UX:()=>a,Zh:()=>l,kS:()=>i});var n=s(29593);let i=(e,t)=>{let s;return("string"==typeof e?n.c9.fromISO(e):n.c9.fromJSDate(e)).toFormat(t)},a=e=>n.c9.fromJSDate(e).toFormat("yyyy-MM-dd"),l=e=>n.c9.fromISO(e).toJSDate()},15065:(e,t,s)=>{"use strict";s.d(t,{U:()=>i});var n=s(41709);let i=(e,t,s)=>{let{data:i,loading:a,refetch:l}=(0,n.vwO)({variables:{dateEnd:t,dateStart:e,filter:s,locationSlug:null}});return{data:(null==i?void 0:i.userScheduledServicesV3.data)||[],loading:a,refetch:l}}},17599:(e,t,s)=>{"use strict";s.d(t,{r:()=>a});var n=s(29593),i=s(41709);function a(e){let t,s;let a=n.c9.now().toISODate();switch(e){case i.mtZ.Upcoming:t=a,s=n.c9.now().plus({years:3}).toISODate();break;case i.mtZ.Past:t=n.c9.now().minus({years:3}).toISODate(),s=a;break;default:throw Error("Invalid type: ".concat(e))}return{dateEnd:s,dateStart:t}}},18102:(e,t,s)=>{"use strict";s.d(t,{E:()=>l});var n=s(95155),i=s(30235),a=s.n(i);let l=e=>{let{rows:t=3}=e,s=Array.from({length:t},(e,t)=>(0,n.jsx)("div",{className:a().skeletonRow},t));return(0,n.jsx)("div",{className:a().skeleton,children:s})}},20836:(e,t,s)=>{"use strict";s.d(t,{$:()=>a});let n={lg:1280,md:900,sm:600,xl:1440,xs:400,xxl:1920},i=e=>"@media (min-width: ".concat(e,"px)"),a={lg:i(n.lg),md:i(n.md),sm:i(n.sm),xl:i(n.xl),xs:i(n.xs),xxl:i(n.xxl)}},24639:(e,t,s)=>{"use strict";s.d(t,{S:()=>n,x:()=>i});var n=function(e){return e.lenox="lenox",e.tucson="tucson",e.lasvegas="las-vegas",e.fortworth="fort-worth",e.woodside="woodside",e}({});let i={lenox:"Lenox",tucson:"Tucson","las-vegas":"Las Vegas","fort-worth":"Fort Worth",woodside:"Woodside"}},26046:(e,t,s)=>{"use strict";s.d(t,{Em:()=>i,GC:()=>o,H1:()=>u,Ko:()=>l,NZ:()=>n,XT:()=>a,ok:()=>d,r0:()=>r,tM:()=>c,xg:()=>v});let n="enableNotificationBell",i="enableBrazeTrigger",a="enablePreferences",l="enableStayPlanner",o="enableGuestInfoUpdate",r="enableAutoCompleteAddress",c="enablePaymentByReservation",d="enableInternationalPhoneAuth",u="enableMultiGuestBookingFE",v="enableCancelAppointmentFE"},27141:(e,t,s)=>{"use strict";s.d(t,{A:()=>E});var n=s(95155),i=s(29300),a=s.n(i),l=s(5673);let o=e=>{var t,s,n;return{image:(null==e?void 0:null===(t=e.property)||void 0===t?void 0:t.visuals)&&(0,l.F)(null==e?void 0:null===(s=e.property)||void 0===s?void 0:s.visuals),locationTitle:(null==e?void 0:null===(n=e.property)||void 0===n?void 0:n.name)||""}};var r=s(39159),c=s(18102),d=s(82154),u=s(36357),v=s(14676),m=s(57489),_=s(29593),g=s(35695),h=s(24639),f=s(45766),x=s(14164),p=s(9712),y=s(87855),C=s(77983),b=s(64251),N=s.n(b);let k=e=>{var t,s,i,l,o,r,c,d,b,k,w,j,E,I;let{service:D,isLandingPage:L,locationTitle:S,type:A}=e,{isSmallScreen:F,isMediumScreen:T}=(0,f.l)(),M=(0,g.useRouter)(),B=_.c9.now(),P=_.c9.fromISO(null==D?void 0:null===(s=D.bookingLine)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.StartDateAndTime).diff(B,"hours").hours,R=null===(i=D.bookingLine)||void 0===i?void 0:i[0],O=(null==R?void 0:R.services)||[],G=e=>{let t=A?"?type=".concat(A):"";e.confirmationId?M.push("/account/services/confirmation?confirmationId=".concat(e.confirmationId).concat(t)):e.reservationNumber&&M.push("/account/services/confirmation?reservationNumber=".concat(e.reservationNumber).concat(t))},$=(null==D?void 0:null===(o=D.bookingLine)||void 0===o?void 0:null===(l=o[0])||void 0===l?void 0:l.locationSlug)||"",U=S||h.x[$]||"",X=null!==(I=null==D?void 0:null===(r=D.bookingLine)||void 0===r?void 0:r.map(e=>e.confirmationId))&&void 0!==I?I:[],W=(null==R?void 0:R.status)===u.y.CANCELLED;return(0,n.jsxs)("div",{className:N().bookingDetails,children:[(0,n.jsxs)("div",{className:N().bookingContainer,children:[(0,n.jsxs)("div",{className:a()(N().detailsContainer,{[N().landingPageDetails]:L}),children:[(0,n.jsxs)("div",{className:N().iconWithText,children:[(0,n.jsx)(m.g,{className:N().infoIcon,icon:v.faLocationDot}),(0,n.jsx)("span",{className:N().bookingInfo,children:U})]}),!F&&!T&&!L&&(0,n.jsx)("div",{className:N().dividerVertical}),(0,n.jsxs)("div",{className:N().iconWithText,children:[(0,n.jsx)(m.g,{className:N().infoIcon,icon:v.faCalendarClock}),(0,n.jsxs)("span",{className:N().bookingInfo,children:["".concat((0,x.kS)(null===(d=D.bookingLine)||void 0===d?void 0:null===(c=d[0])||void 0===c?void 0:c.StartDateAndTime,"MMM d, yyyy"),", "),O.length>0&&"".concat((0,x.kS)(O[0].startTime,"h:mm a").toLowerCase()," – ").concat((0,x.kS)(O[O.length-1].endTime,"h:mm a").toLowerCase())]})]}),!F&&!T&&!L&&(0,n.jsx)("div",{className:N().dividerVertical}),(0,n.jsxs)("div",{className:N().iconWithText,children:[(0,n.jsx)(m.g,{className:N().infoIcon,icon:v.faMemoCircleCheck}),(0,n.jsx)("span",{className:N().bookingInfo,children:D.isMultiGuesReservation?D.reservationNumber||"-":(null===(k=D.bookingLine)||void 0===k?void 0:null===(b=k[0])||void 0===b?void 0:b.confirmationId)||"-"})]}),F&&L&&(0,n.jsx)("div",{className:N().divider})]}),(0,n.jsxs)("div",{className:N().bookingAction,children:[(0,n.jsx)("div",{children:!F&&!T&&!L&&(0,n.jsx)(y.a,{icon:(null==R?void 0:R.status)==="CANCELLED"?v.faCircleX:v.faCalendarCheck,status:u.l[null==R?void 0:R.status],variant:(null==R?void 0:R.status)===u.y.CANCELLED?"neutral":"success"})}),(0,n.jsx)("div",{className:N().cancelButton,children:(null==R?void 0:R.confirmationId)&&(null==R?void 0:R.status)!==u.y.CANCELLED&&(0,n.jsx)(C.u,{isWithin24Hours:P<24,confirmationIds:X,location:(null===(j=D.bookingLine)||void 0===j?void 0:null===(w=j[0])||void 0===w?void 0:w.location)||""})})]})]}),(0,n.jsx)("div",{className:N().divider}),F||T||L?(0,n.jsxs)("div",{className:N().status,children:[(0,n.jsx)("div",{className:N().pill,children:(0,n.jsx)(y.a,{icon:(null==R?void 0:R.status)==="CANCELLED"?v.faCircleXmark:v.faCalendarCheck,status:u.l[null==R?void 0:R.status],variant:(null==R?void 0:R.status)===u.y.CANCELLED?"neutral":"success"})}),(0,n.jsx)("div",{className:N().rightArrow,onClick:()=>D.isMultiGuesReservation?G({reservationNumber:D.reservationNumber}):G({confirmationId:null==R?void 0:R.confirmationId}),children:(0,n.jsx)("span",{children:(0,n.jsx)(m.g,{className:N().chevronIcon,icon:v.faChevronRight})})})]}):(0,n.jsxs)("div",{className:N().serviceSection,children:[(0,n.jsxs)("div",{className:N().serviceLeft,children:[(0,n.jsx)("span",{className:N().serviceText,children:"Services:"}),(0,n.jsxs)("div",{className:N().serviceImagesWrapper,children:[null===(E=D.bookingLine)||void 0===E?void 0:E.flatMap(e=>e.services||[]).slice(0,3).map((e,t)=>(0,n.jsx)("img",{className:a()(N().serviceImage,{[N().cancelled]:W}),src:e.imgSrc||"/images/placeholder-Image.png",alt:"Service ".concat(t)},t)),D.bookingLine&&D.bookingLine.flatMap(e=>e.services||[]).length>3&&(0,n.jsxs)(p.$,{className:N().moreText,size:"sm",variant:"text",withIcon:!0,children:[(0,n.jsx)(m.g,{className:N().plusIcon,icon:v.faPlus}),(0,n.jsxs)("span",{className:N().textCount,children:[D.bookingLine.flatMap(e=>e.services||[]).length-3," MORE"]})]})]})]}),(0,n.jsx)("div",{className:N().viewButton,onClick:()=>D.isMultiGuesReservation?G({reservationNumber:D.reservationNumber}):G({confirmationId:null==R?void 0:R.confirmationId}),children:(0,n.jsxs)("span",{children:["VIEW DETAILS",(0,n.jsx)(m.g,{height:24,icon:v.faChevronRight,width:24})]})})]})]})};var w=s(27191),j=s.n(w);let E=e=>{var t,s,i,l,v,m,_,g;let{service:h,type:f,isLandingPage:x=!1}=e,p=null==h?void 0:null===(s=h.bookingLine)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.locationSlug,y=(null==h?void 0:null===(l=h.bookingLine)||void 0===l?void 0:null===(i=l[0])||void 0===i?void 0:i.locationSlug)&&{context:{clientName:"hygraph"},variables:{locationSlug:null==h?void 0:null===(m=h.bookingLine)||void 0===m?void 0:null===(v=m[0])||void 0===v?void 0:v.locationSlug}},{data:C,loading:b}=(0,r.mrE)({skip:!p,...y}),{locationTitle:N,image:w}=o(C),E=null!==(g=null==w?void 0:w.landscape)&&void 0!==g?g:null==w?void 0:w.portrait,I=(0,d.w8)(E),D=null===(_=h.bookingLine)||void 0===_?void 0:_[0],L=(null==D?void 0:D.status)===u.y.CANCELLED;return(0,n.jsxs)("div",{className:a()(j().container,{}),children:[(0,n.jsx)("div",{className:a()(j().imageContainer,{[j().cancelledContainer]:L}),children:b?(0,n.jsx)(c.E,{rows:5}):w?(0,n.jsx)("img",{alt:N,className:a()(j().image,{[j().landingPageImg]:x,[j().landingPageContainer]:x,[j().cancelled]:L}),loading:"lazy",src:I}):(0,n.jsx)("img",{className:j().placeHolderimage,alt:N,loading:"lazy",src:"/images/placeholder-Image.png"})}),(0,n.jsx)(k,{type:f,service:h,isLandingPage:x,locationTitle:N})]})}},27191:e=>{e.exports={container:"styles_container__lG2Nw",imageContainer:"styles_imageContainer__l14oq",placeHolderimage:"styles_placeHolderimage__OP2tV",image:"styles_image__J7PFl",cancelled:"styles_cancelled__UBQDX",cancelledContainer:"styles_cancelledContainer__02m4s",landingPageContainer:"styles_landingPageContainer__uCFMd"}},29352:(e,t,s)=>{"use strict";s.d(t,{$sl:()=>n.$sl,BSo:()=>n.BSo,Bhp:()=>n.Bhp,D19:()=>n.D19,EA0:()=>n.EA0,Evc:()=>n.Evc,GoN:()=>n.GoN,Grd:()=>n.Grd,J9v:()=>n.J9v,L0m:()=>n.L0m,NAG:()=>n.NAG,PW9:()=>n.PW9,Qk3:()=>n.Qk3,Rdq:()=>n.Rdq,S3L:()=>n.S3L,T_s:()=>n.T_s,V_y:()=>n.V_y,YT8:()=>n.YT8,_GH:()=>n._GH,eWv:()=>n.eWv,fYj:()=>n.fYj,fwh:()=>n.fwh,gv_:()=>n.gv_,htS:()=>n.htS,ifw:()=>n.ifw,ipP:()=>n.ipP,jLZ:()=>n.jLZ,lqo:()=>n.lqo,s3K:()=>n.s3K,s75:()=>n.s75,tVe:()=>n.tVe});var n=s(41709)},30235:e=>{e.exports={skeleton:"styles_skeleton__l6ntU",skeletonRow:"styles_skeletonRow__QXnw3",loading:"styles_loading__2bcon"}},34163:(e,t,s)=>{"use strict";s.d(t,{t:()=>l});var n=s(12115),i=s(36274),a=s(1794);let l=e=>{let[t,s]=(0,n.useState)(null),[l,{data:o}]=(0,i.Aro)();return(0,n.useEffect)(()=>{e&&l({context:{clientName:"hygraph"},variables:{slug:e}})},[e]),(0,n.useEffect)(()=>{var t,n,i,l;if((null==o?void 0:null===(t=o.property)||void 0===t?void 0:t.contactPhones)&&e){let t=o.property.contactPhones;t.length>0?s((null===(n=t.find(e=>"frontDesk"===e.function))||void 0===n?void 0:n.phoneNumber)||(null===(i=t.find(e=>"reservations"===e.function&&"Spa & Salon Reservations"===e.title))||void 0===i?void 0:i.phoneNumber)||(null===(l=a.x[e])||void 0===l?void 0:l.toString())||null):s(null)}},[o,e]),t}},36274:(e,t,s)=>{"use strict";s.d(t,{Aro:()=>n.Aro,DY8:()=>n.DY8,FhS:()=>n.FhS,J5X:()=>n.J5X,Ks2:()=>n.Ks2,RBK:()=>n.RBK,UtL:()=>n.UtL,W$7:()=>n.W$7,XND:()=>n.XND,Y1t:()=>n.Y1t,Ytg:()=>n.Ytg,ZNv:()=>n.ZNv,_Oi:()=>n._Oi,_Ut:()=>n._Ut,bDF:()=>n.bDF,eUs:()=>n.eUs,ew1:()=>n.ew1,f2F:()=>n.f2F,h_K:()=>n.h_K,i0i:()=>n.i0i,itU:()=>n.itU,juD:()=>n.juD,jv3:()=>n.jv3,q3n:()=>n.q3n,r7n:()=>n.r7n,uZm:()=>n.uZm,wI5:()=>n.wI5,xEp:()=>n.xEp});var n=s(39159)},36357:(e,t,s)=>{"use strict";s.d(t,{l:()=>i,y:()=>n});var n=function(e){return e.CANCELLED="CANCELLED",e.CLOSED="CLOSED",e.CONFIRMED="CONFIRMED",e.IN_SERVICE="IN_SERVICE",e.PENDING="PENDING",e}({});let i={CANCELLED:"CANCELLED",CLOSED:"COMPLETED",CONFIRMED:"BOOKED",IN_SERVICE:"IN SERVICE",PENDING:"PENDING"}},42398:(e,t,s)=>{"use strict";s.d(t,{h:()=>i});var n=s(29352);let i=e=>{let{data:t,loading:s}=(0,n.Rdq)({variables:{featureFlags:e}});return{data:t&&t.getFeatureFlags.data,loading:s}}},45766:(e,t,s)=>{"use strict";s.d(t,{G:()=>i,l:()=>l});var n=s(12115),i=function(e){return e.XXL="2xl",e.XL2="1xl",e.XL="xl",e.LG="lg",e.MD="md",e.SM="sm",e}({});let a=()=>{let e=window.innerWidth;if(e>=1536)return"2xl";if(e>=1440)return"1xl";if(e>=1280)return"xl";if(e>=1024)return"lg";if(e>=768)return"md";else return"sm"},l=()=>{let[e,t]=(0,n.useState)(a());(0,n.useEffect)(()=>{let e=()=>{t(a())};return window.addEventListener("resize",e),t(a()),()=>{window.removeEventListener("resize",e)}},[]);let s="sm"===e,i=["sm"].includes(e),l=["sm","md"].includes(e),o=["md","lg"].includes(e),r=["sm","md","lg"].includes(e),c=["md","lg"].includes(e);return{isDesktop:["xl","1xl"].includes(e),isLongDesktop:["1xl","2xl"].includes(e),isMediumScreen:l,isMobile:s,isMobileOrTablet:r,isSmallScreen:i,isTablet:o,isTabletOrDesktop:c,screenSize:e}}},52468:(e,t,s)=>{"use strict";s.d(t,{u:()=>n});let n="5rem"},60523:(e,t,s)=>{"use strict";s.d(t,{J:()=>n});let n={alerts:{error:{background:"#E5381A",text:"#971903"},success:{background:"#E2F1E0",text:"#285B45"},warning:{background:"#F2C540",text:"#F2C540"}},bgColor:{neutral:{default:"#5c5451",neutralBase:"#fbfbfb"}},black:"#000",borders:{primary:"#e0dedc"},divider:{light:"#E1DEDB"},link:{primary:"#a64e26"},location:{las_vegas:"#937458",lenox:"#222445",tucson:"#583D52",woodside:"#24412A"},neutrals:{background:"#E0DDDA",grayscale1:"#F5F5F5",grayscale2:"#D7D7D7",grayscale3:"#AEAEAE",grayscale4:"#868686",grayscale5:"#5D5D5D",grayscale6:"#353535",grayscale7:"#262020",grayscaleBackground:"#C4C4C4",grayscaleWhite:"#FFFFFF",selected:"#C1BAB6"},primary:{cream:"#F7EDE9",dark:"#B04E21",darker:"#813918",light:"#EFDCD3",medium:"#D0957A"},secondary:{background:{lightest:"#FBF8F5"},dark:"#F4551F"},textColor:{brand:{alpha:"#121110",dark:"#6A2F14",hover:"#9B451D"},default:"#353535",primary:{darkTheme:"#FEFDFC"}},white:"#fff",whiteOptical:"#fcfbfa"}},63102:(e,t,s)=>{"use strict";s.d(t,{a:()=>i,s:()=>n});let n={body:16,heading1:74,heading2:59,heading3:39,heading4:32,heading5:26},i={cg:"var(--font-cormorant-garamond)",pn:"var(--font-proxima-nova)"}},64251:e=>{e.exports={bookingDetails:"styles_bookingDetails___9ULC",bookingContainer:"styles_bookingContainer__mPDdT",detailsContainer:"styles_detailsContainer__9X0sY",iconWithText:"styles_iconWithText__iAMeq",infoIcon:"styles_infoIcon__UX6D0",bookingInfo:"styles_bookingInfo__2Zbv8",landingPageDetails:"styles_landingPageDetails__zbXHA",bookingAction:"styles_bookingAction__IlxuW",cancelButton:"styles_cancelButton__c0VIs",statusContainer:"styles_statusContainer__gDzfW",serviceSection:"styles_serviceSection__gbffC",serviceLeft:"styles_serviceLeft__rvjg0",serviceText:"styles_serviceText__UxxBf",serviceImagesWrapper:"styles_serviceImagesWrapper__KhZq7",serviceImage:"styles_serviceImage__0ErmH",placeholderImage:"styles_placeholderImage__tONKq",cancelled:"styles_cancelled__3SuPH",moreText:"styles_moreText__QpqQP",textCount:"styles_textCount__f8APJ",plusIcon:"styles_plusIcon__abWBc",viewButton:"styles_viewButton__kXRIq",chevronIcon:"styles_chevronIcon__FKxz4",dividerVertical:"styles_dividerVertical__ee_Dj",divider:"styles_divider__UWPJ7",status:"styles_status__gfRvq",rightArrow:"styles_rightArrow__sUyNa"}},69654:(e,t,s)=>{"use strict";s.d(t,{KM:()=>i,Q7:()=>a,dL:()=>l,fR:()=>o});var n=s(28868);function i(e){if(!e)return"";let t=e.replace(/\D/g,"");if(t.length<10)return e;let s=(t.length>10?t.slice(-10):t).match(/^(\d{3})(\d{3})(\d{4})$/);return s?"(".concat(s[1],") ").concat(s[2],"-").concat(s[3]):e}function a(e,t){let s=(0,n.l)("+".concat(e),t.toUpperCase());return!!s&&s.isValid()}function l(e,t){return e.replace(RegExp("^"+t),"").replace(/\D/g,"")}function o(e){return Number(e.replace(/\D/g,""))}},71980:e=>{e.exports={button:"styles_button__YaZn_",primary:"styles_primary__EzVYn",secondary:"styles_secondary__v0qOY",destructive:"styles_destructive__VSkC6",ghost:"styles_ghost__mui3d",text:"styles_text__sHIRI","neutral-text":"styles_neutral-text__i_68_",xl:"styles_xl__vqNgs",lg:"styles_lg__6wvoS",base:"styles_base__Wg2dz",sm:"styles_sm__gSr_X",withIcon:"styles_withIcon__b3o4j",fill:"styles_fill__nunXW"}},77983:(e,t,s)=>{"use strict";s.d(t,{u:()=>w});var n=s(95155),i=s(12115),a=s(14676),l=s(57489),o=s(59922),r=s(43038),c=s(29300),d=s.n(c),u=s(96370),v=s(34163),m=s(41709),_=s(26046),g=s(84076),h=s(42398),f=s(45766),x=s(69654),p=s(9712),y=s(86408),C=s(15065),b=s(17599),N=s(2553),k=s.n(N);let w=e=>{let{isWithin24Hours:t,confirmationIds:s,onCancelSuccess:c,location:N,refetchAppointemntDetails:w}=e,j=(0,b.r)(m.mtZ.Upcoming),{refetch:E}=(0,C.U)(j.dateStart,j.dateEnd,m.mtZ.Upcoming),[I]=(0,m.gti)(),D=(0,x.fR)((0,v.t)(null!=N?N:"")||""),{isOpen:L,ref:S,setIsOpen:A,toggleOpen:F}=(0,g.L)(),[T,M]=(0,i.useState)(!1),{isSmallScreen:B,isMediumScreen:P,isDesktop:R}=(0,f.l)(),[O,G]=(0,i.useState)(!1),[$,U]=(0,i.useState)(!1),[X,W]=(0,i.useState)(!1),[V,q]=(0,i.useState)(!1),H=async()=>{q(!0);try{var e,t,n;let{data:i}=await I({variables:{confirmationIds:s}}),a=null==i?void 0:i.cancelAppointment,l=null!==(n=null==a?void 0:null===(t=a.data)||void 0===t?void 0:null===(e=t.failedAppointments)||void 0===e?void 0:e.length)&&void 0!==n?n:0;null==w||w(),E(),M(!1),0===l?(G(!0),U(!0),setTimeout(()=>{G(!1),U(!1),null==c||c()},4e3)):(W(!0),M(!0))}catch(e){M(!1),W(!0)}finally{q(!1)}},{data:Y,loading:Z}=(0,h.h)(_.xg),z=!!(null==Y?void 0:Y[_.xg].value);return(0,n.jsx)(n.Fragment,{children:z&&!Z&&(0,n.jsxs)("div",{className:d()(k().ellipsis),ref:S,children:[$&&(0,n.jsx)("div",{className:k().overlay,children:O&&(0,n.jsx)(y.h,{className:d()(k().overlayBackground,{"theme-club":u.u.includes(N)}),height:B?"100dvh":P?"94dvh !important":R?"89.3dvh !important":"94dvh !important",width:"50dvh",children:(0,n.jsxs)("div",{className:k().actionContainer,children:[(0,n.jsxs)("div",{className:k().actionMessage,children:[(0,n.jsx)(l.g,{icon:a.faCheck,className:k().checkIcon}),(0,n.jsx)("span",{className:k().actionTxt,children:"Appointment successfully canceled."})]}),(0,n.jsx)(l.g,{icon:a.faXmark,className:k().crossIcon,onClick:()=>{G(!1),U(!1)}})]})})}),(0,n.jsx)(l.g,{icon:a.faEllipsisVertical,size:"lg",onClick:F}),L&&(0,n.jsx)("div",{className:k().dropdownMenu,children:(0,n.jsxs)("button",{className:k().dropdownItem,onClick:()=>{A(!1),M(!0),W(!1)},children:[(0,n.jsx)(l.g,{className:k().calendarIcon,icon:a.faCalendarXmark}),"Cancel"]})}),(0,n.jsx)(o.A,{className:k().customModal,open:T,onCancel:()=>M(!1),footer:null,centered:!0,closeIcon:!1,maskClosable:!0,children:(0,n.jsxs)("div",{className:k().container,children:[(0,n.jsx)("div",{className:k().innerContainer,children:X?(0,n.jsxs)("div",{className:k().failedCancel,children:[(0,n.jsx)("p",{className:k().errorText,children:"Sorry, we couldn’t cancel your appointment at this time."}),(0,n.jsxs)("div",{className:k().contactHelp,children:[(0,n.jsx)("span",{children:"If you need assistance, please\xa0"}),(0,n.jsx)("a",{"aria-label":"Call",href:"tel:+1".concat(D),className:k().link,children:"call us."})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.g,{className:k().icon,icon:a.faCalendarXmark}),(0,n.jsx)("span",{className:k().cancelTxt,children:"Cancel appointment?"}),(0,n.jsx)("p",{className:k().warningText,children:t?"This appointment is outside the cancellation window. Upon confirming, all the included services will be canceled and a $35 fee will apply if you proceed.":"Upon confirming, all the included services will be canceled."}),t&&(0,n.jsxs)("p",{children:["To learn more, please refer to the"," ",(0,n.jsx)("strong",{className:k().policyTxt,children:"Cancelation Policy."})]})]})}),(0,n.jsx)("div",{className:k().btnContainer,children:X?(0,n.jsx)(p.$,{className:k().btn,onClick:()=>M(!1),children:"Ok"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.$,{className:k().btn,variant:"ghost",onClick:()=>M(!1),children:"keep it"}),(0,n.jsx)(p.$,{className:k().btn,onClick:H,disabled:V,children:V?(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"20px"},children:(0,n.jsx)(r.A,{size:"small"})}):"Cancel Appointment"})]})})]})})]})})}},82154:(e,t,s)=>{"use strict";s.d(t,{DD:()=>i,fi:()=>n,w8:()=>a});let n=e=>"ImageModel"===e.__typename,i=e=>"VideoModel"===e.__typename,a=e=>{var t,s;if(e)return"FileUrl"===e.__typename?e.url:"FileAsset"===e.__typename?null===(s=e.asset)||void 0===s?void 0:s.url:null===(t=e.bynder)||void 0===t?void 0:t.files.webImage.url}},84076:(e,t,s)=>{"use strict";s.d(t,{L:()=>i});var n=s(12115);let i=()=>{let[e,t]=(0,n.useState)(!1),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=e=>{s.current&&!s.current.contains(e.target)&&t(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),{isOpen:e,ref:s,setIsOpen:t,toggleOpen:()=>t(e=>!e)}}},86408:(e,t,s)=>{"use strict";s.d(t,{h:()=>f});var n=s(95155),i=s(12115),a=s(47650),l=s(60523),o=s(44987),r=s(52468),c=s(20836);let d=(0,o.i7)(["from{transform:translateY(100%);opacity:0;}to{transform:translateY(0);opacity:1;}"]),u=(0,o.i7)(["from{transform:translateX(100%);opacity:0;}to{transform:translateX(0);opacity:1;}"]),v=(0,o.i7)(["from{transform:translateY(-100%);opacity:0;}to{transform:translateY(0);opacity:1;}"]),m=e=>{switch(e){case"right":return u;case"top":return v;default:return d}},_=(0,o.AH)(["",""],e=>e.$heightAdjustment&&(0,o.AH)(["@media (max-height:739px){height:31rem;}@media (min-height:740px) and (max-height:800px){height:35rem;}@media (min-height:800px) and (max-height:850px){height:42rem;}@media (min-height:851px) and (max-height:915px){height:44rem;}@media (min-height:932px){height:46rem;}"])),g=(0,o.AH)(["",""],e=>{let{$direction:t,$width:s,$height:n}=e;if(!t)return"";switch(t){case"right":return(0,o.AH)(["right:0;top:0;width:",";height:100%;transition:right 0.3s ease-in-out,width 0.3s ease-in-out;"],s||"300px");case"bottom":return(0,o.AH)(["bottom:0;left:0;width:100%;height:",";transition:bottom 0.3s ease-in-out,height 0.3s ease-in-out;"],n);case"top":return(0,o.AH)(["top:5.5rem;left:0;width:100%;height:",";transition:top 0.3s ease-in-out,height 0.3s ease-in-out;"],n);default:return null}}),h={OverlayWrapper:o.Ay.div.withConfig({componentId:"sc-2df0f520-0"})(["position:",";bottom:",";height:",";z-index:1000;width:100dvw;background-color:",";overflow-y:",";","{height:calc(100dvh - ",");}"," "," ",""],e=>e.$position||"fixed",e=>e.$bottom||"0",e=>e.$height||"100dvh",e=>e.$background,e=>e.$overflowY||"auto",c.$.lg,r.u,e=>e.$isVisible&&(0,o.AH)(["animation:"," 0.3s ease-in-out;"],m(e.$direction||"bottom")),g,_)},f=e=>{let{anchor:t=document.body,background:s=l.J.primary.cream,bottom:o,children:r,direction:c="bottom",height:d,heightAdjustment:u,isVisible:v=!1,overflowY:m="auto",position:_,width:g,className:f}=e;return(0,i.useEffect)(()=>(v?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[v]),(0,a.createPortal)((0,n.jsx)(h.OverlayWrapper,{$background:s,$bottom:o,$direction:c,$height:d,$heightAdjustment:u,$isVisible:v,$overflowY:m,$position:_,$width:g,className:f,children:r}),t)}},87855:(e,t,s)=>{"use strict";s.d(t,{a:()=>c});var n=s(95155),i=s(57489),a=s(29300),l=s.n(a),o=s(90429),r=s.n(o);let c=e=>{let{status:t,icon:s,variant:a="success"}=e,o=l()(r().pill,r()[a]);return(0,n.jsxs)("div",{className:o,children:[s&&(0,n.jsx)(i.g,{className:r().icon,icon:s}),(0,n.jsx)("span",{className:r().text,children:t})]})}},90429:e=>{e.exports={pill:"style_pill__0mq1_",icon:"style_icon__H5JEa",success:"style_success__13XZB",neutral:"style_neutral__eFZRG"}},96370:(e,t,s)=>{"use strict";s.d(t,{u:()=>n});let n=["fort-worth"]}}]);