PageSourceSearch

https://avantstay.com/_next/static/chunks/pages/account/settings-879373ec99c4259e.js

js avantstay.com collected 2026-10-01 13:12:24 UTC 37,803 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[871],{11560:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});var n=r(42304),i=r(47363);let a=()=>{let e=(0,n.D)();return{annualPriceLabel:e?i.Y.annualPriceLabel:"$-",discountCapLabel:e?i.Y.discountCapLabel:"$-",discountPercentageLabel:e?i.Y.discountPercentageLabel:"-%"}}},25249:(e,t,r)=>{"use strict";r.d(t,{b:()=>g});var n=r(2860);r(55729);var i=r(44770),a=r(53994),l=r(20696),o=r(27982),s=r(64594),c=r(15607);let d=(0,l.A)(o.$n.Icon,{target:"e6jqw9l0"})("align-items:center;background-color:",e=>e.theme.colors.primaryExtraLight,";border-radius:50%;display:flex;justify-content:center;padding:8px;> svg{color:black;height:16px;width:16px;}"),m=(0,l.A)("div",{target:"e6jqw9l1"})("background-color:",e=>e.theme.colors.white,";inset:0 auto auto;margin-bottom:4px;padding:16px 0 12px;position:sticky;z-index:1;",a.Xk,"{display:none;}"),h=(0,l.A)("div",{target:"e6jqw9l2"})("--service-modal-bottom-padding:64px;--service-modal-top-padding:0;padding:var(--service-modal-top-padding) 16px var(--service-modal-bottom-padding);",a.Xk,"{--service-modal-bottom-padding:40px;--service-modal-top-padding:40px;padding:var(--service-modal-top-padding) 50px var(--service-modal-bottom-padding);}"),u=(0,l.A)(s._,{target:"e6jqw9l3"})(".MuiDrawer-paper{height:calc(100% - 30px);max-height:unset;}"),p=(0,l.A)(c.a,{target:"e6jqw9l4"})(".button-close{right:calc(40px + (100% - ",e=>e.width,") / 2);> svg{height:30px;width:30px;}}.root{background-color:",e=>e.theme.colors.white,";}"),g=e=>{let{children:t,className:r,containerClassName:l,hasCloseButton:o,isOpen:s,onClose:c,width:g="640px"}=e,y=(0,a.sD)(),f=(0,n.FD)(h,{className:r,children:[o&&(0,n.Y)(m,{children:(0,n.Y)(d,{onClick:c,children:(0,n.Y)(i.A,{})})}),t]});return y?(0,n.Y)(p,{withCloseButton:!0,className:l,isOpen:s,width:g,onClose:c,children:f}):(0,n.Y)(u,{className:l,isOpen:s,onClose:c,children:f})}},25533:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(2860),i=r(73542);let a=e=>{let{children:t,className:r,classes:a,...l}=e;return(0,n.Y)(i.A,{arrow:!0,enterTouchDelay:0,placement:"top",...l,classes:{popper:r,...a},children:t})}},26734:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>tM,default:()=>tv});
1var n=r(2860),i=r(51652),a=r(71024),l=r.n(a),o=r(55729),s=r(93125),c=r(18128),d=r(70044),m=r(90867),h=r(1909),u=r(29858),p=r(77967),g=r(81291),y=r(47523),f=r(41457),b=r(74290),M=r(61522),v=r(72183),A=r(64689),x=r(1751),S=r(79110),w=r(86610),Y=r(11560),C=r(34474),D=r(40541),k=r(44770),P=r(72777),F=r(33220),B=r(25249),j=r(26305),L=r(82203),E=r.n(L),I=r(20696),R=r(27982),T=r(53994),N=r(84121);let V=(0,I.A)("div",{target:"e1vd8jea0"})("display:flex;flex-direction:column;gap:1.25rem;margin:0 auto;max-width:54rem;"),_=(0,I.A)("h3",{target:"e1vd8jea1"})(e=>e.theme.typography.special.S.bold,"  color:",e=>e.theme.colors.primaryMedium,";margin:0;"),z=(0,I.A)("p",{target:"e1vd8jea2"})(e=>e.theme.typography.standard.M.regular,"  color:",e=>(0,N.B3)(e.theme.colors.primaryMedium,.72),";line-height:1.6;margin:0;strong{",e=>e.theme.typography.standard.M.semibold,"    color:",e=>e.theme.colors.primaryMedium,";}"),X=(0,I.A)("p",{target:"e1vd8jea3"})(e=>e.theme.typography.standard.L.semibold,"  color:",e=>e.theme.colors.primaryMedium,";margin:0;"),U=(0,I.A)("ul",{target:"e1vd8jea4"})("display:flex;flex-direction:column;gap:0.9rem;list-style:none;margin:0;padding:0;"),q=(0,I.A)("li",{target:"e1vd8jea5"})("align-items:center;display:flex;gap:0.85rem;"),O=(0,I.A)("span",{target:"e1vd8jea6"})("align-items:center;background:",e=>(0,N.B3)(e.theme.colors.accentMedium,.12),";border-radius:50%;color:",e=>e.theme.colors.accentDark,";display:inline-flex;flex-shrink:0;height:1.85rem;justify-content:center;width:1.85rem;"),$=(0,I.A)("span",{target:"e1vd8jea7"})(e=>e.theme.typography.standard.S.regular,"  color:",e=>(0,N.B3)(e.theme.colors.primaryMedium,.84),";"),G=(0,I.A)("div",{target:"e1vd8jea8"})("display:flex;flex-direction:column;gap:0.625rem;margin-top:0.5rem;"),H=(0,I.A)(R.$n.Default,{target:"e1vd8jea9"})(e=>e.theme.typography.standard.M.semibold,"  background-color:",e=>e.theme.colors.accentDark,";padding:15px 0;width:100%;"),J=(0,I.A)(R.$n.OutlinedSecondary,{target:"e1vd8jea10"})(e=>e.theme.typography.standard.M.regular,"  border:1px solid ",e=>e.theme.colors.neutralMedium,";padding:15px 0;width:100%;&:hover{border:1px solid ",e=>e.theme.colors.neutralDark,";}"),K=(0,I.A)("h3",{target:"e1vd8jea12"})(e=>e.theme.typography.special.S.bold,"  color:",e=>e.theme.colors.primaryMedium,";margin:0;"),W=(0,I.A)("p",{target:"e1vd8jea13"})(e=>e.theme.typography.standard.M.regular,"  color:",e=>(0,N.B3)(e.theme.colors.primaryMedium,.72),";margin:0;strong{",e=>e.theme.typography.standard.M.semibold,"    color:",e=>e.theme.colors.primaryMedium,";}"),Z=(0,I.A)("ul",{target:"e1vd8jea14"})("display:flex;flex-direction:column;gap:0.625rem;list-style:none;margin:0;padding:0;"),Q=(0,I.A)("li",{target:"e1vd8jea15"})("margin:0;"),ee=(0,I.A)("button",{target:"e1vd8jea16"})(e=>e.theme.typography.standard.L.regular,"  align-items:center;background:",e=>e.theme.colors.white,";border:1px solid ",e=>e.isSelected?e.theme.colors.accentDark:(0,N.B3)(e.theme.colors.primaryMedium,.14),";border-radius:2px;color:",e=>(0,N.B3)(e.theme.colors.primaryMedium,.8),";cursor:pointer;display:flex;gap:0.75rem;padding:1.05rem 1rem;width:100%;&:hover{border-color:",e=>e.isSelected?e.theme.colors.accentDark:(0,N.B3)(e.theme.colors.primaryMedium,.3),";}"),et=(0,I.A)("span",{target:"e1vd8jea17"})("background:",e=>e.isSelected?e.theme.colors.accentDark:"transparent",";border:1px solid ",e=>(0,N.B3)(e.theme.colors.primaryMedium,.3),";border-radius:50%;box-shadow:inset 0 0 0 3px ",e=>e.isSelected?e.theme.colors.white:"transparent",";flex-shrink:0;height:1rem;width:1rem;"),er=(0,I.A)("span",{target:"e1vd8jea18"})(e=>e.theme.typography.standard.M.regular,"  text-align:left;"),en=(0,I.A)("div",{target:"e1vd8jea19"})("background:",e=>(0,N.B3)(e.theme.colors.failureExtraLight,.5),";border:1px solid ",e=>(0,N.B3)(e.theme.colors.failureLight,.4),";border-radius:6px;display:flex;flex-direction:column;gap:0.9rem;padding:1rem;"),ei=(0,I.A)("p",{target:"e1vd8jea20"})(e=>e.theme.typography.standard.M.semibold,"  color:",e=>e.theme.colors.primaryMedium,";margin:0;"),ea=(0,I.A)("span",{target:"e1vd8jea21"})(e=>e.theme.typography.standard.XXS.bold,"  align-items:center;background:",e=>(0,N.B3)(e.theme.colors.failureLight,.2),";border-radius:50%;color:",e=>e.theme.colors.warningDark,";display:inline-flex;flex-shrink:0;height:1.1rem;justify-content:center;text-transform:uppercase;width:1.1rem;"),el=(0,I.A)("div",{target:"e1vd8jea22"}
1)("align-items:flex-start;background:",e=>(0,N.B3)(e.theme.colors.warningLight,.2),";border:1px solid ",e=>(0,N.B3)(e.theme.colors.warningMedium,.4),";border-radius:6px;display:flex;gap:0.65rem;padding:0.95rem 1rem;"),eo=(0,I.A)("span",{target:"e1vd8jea23"})(e=>e.theme.typography.standard.XS.bold,"  align-items:center;color:",e=>e.theme.colors.warningDark,";display:inline-flex;flex-shrink:0;height:1rem;justify-content:center;line-height:1;margin-top:0.15rem;width:1rem;"),es=(0,I.A)("p",{target:"e1vd8jea24"})(e=>e.theme.typography.standard.M.regular,"  color:",e=>(0,N.B3)(e.theme.colors.primaryMedium,.84),";margin:0;strong{",e=>e.theme.typography.standard.M.semibold,"    color:",e=>e.theme.colors.warningDark,";}"),ec=(0,I.A)("div",{target:"e1vd8jea25"})("align-items:center;display:flex;flex-direction:column;gap:1.25rem;text-align:center;"),ed=(0,I.A)("div",{target:"e1vd8jea26"})("align-items:center;background:",e=>(0,N.B3)(e.theme.colors.accentMedium,.16),";border-radius:50%;color:",e=>e.theme.colors.accentDark,";display:flex;flex-shrink:0;height:3.25rem;justify-content:center;width:3.25rem;svg{display:block;}"),em=(0,I.A)("h3",{target:"e1vd8jea27"})(e=>e.theme.typography.special.M.bold,"  color:",e=>e.theme.colors.primaryMedium,";margin:0;"),eh=(0,I.A)("p",{target:"e1vd8jea28"})(e=>e.theme.typography.standard.M.regular,"  color:",e=>(0,N.B3)(e.theme.colors.primaryMedium,.78),";line-height:1.55;margin:0;max-width:28rem;strong{",e=>e.theme.typography.standard.M.semibold,"    color:",e=>e.theme.colors.primaryMedium,";}"),eu=(0,I.A)("div",{target:"e1vd8jea29"})("background:",e=>(0,N.B3)(e.theme.colors.primaryMedium,.06),";border-radius:6px;display:flex;flex-direction:column;gap:0.85rem;padding:1.1rem 1.15rem;text-align:left;width:100%;"),ep=(0,I.A)("p",{target:"e1vd8jea30"})(e=>e.theme.typography.standard.M.semibold,"  color:",e=>e.theme.colors.primaryMedium,";margin:0;strong{",e=>e.theme.typography.standard.M.semibold,"    color:",e=>e.theme.colors.primaryMedium,";}"),eg=(0,I.A)("ul",{target:"e1vd8jea31"})(e=>e.theme.typography.standard.S.regular,"  color:",e=>(0,N.B3)(e.theme.colors.primaryMedium,.84),";display:flex;flex-direction:column;gap:0.55rem;list-style:disc;margin:0;padding-left:1.2rem;"),ey=(0,I.A)("li",{target:"e1vd8jea32"})("padding-left:0.25rem;"),ef=(0,I.A)("div",{target:"e1vd8jea33"})("align-items:stretch;background:",e=>(0,N.B3)(e.theme.colors.accentMedium,.08),";border:1px solid ",e=>(0,N.B3)(e.theme.colors.accentDark,.35),";border-radius:6px;display:flex;flex-direction:column;gap:0.85rem;padding:1rem 1.05rem;text-align:left;width:100%;",T.Xk,"{align-items:center;flex-direction:row;gap:1rem;justify-content:space-between;}"),eb=(0,I.A)("div",{target:"e1vd8jea34"})("align-items:flex-start;display:flex;flex:1;gap:0.65rem;min-width:0;svg{color:",e=>e.theme.colors.accentDark,";flex-shrink:0;margin-top:0.1rem;}"),eM=(0,I.A)("p",{target:"e1vd8jea35"})(e=>e.theme.typography.standard.S.regular,"  color:",e=>(0,N.B3)(e.theme.colors.primaryMedium,.88),";margin:0;strong{",e=>e.theme.typography.standard.S.semibold,"    color:",e=>e.theme.colors.primaryMedium,";}"),ev=(0,I.A)(E(),{target:"e1vd8jea36"})(e=>e.theme.typography.standard.S.semibold,"  align-items:center;align-self:stretch;background-color:",e=>e.theme.colors.accentDark,";border-radius:2px;color:",e=>e.theme.colors.white,";display:inline-flex;flex-shrink:0;justify-content:center;padding:0.65rem 1.1rem;text-align:center;text-decoration:none;white-space:nowrap;",T.Xk,"{align-self:center;padding:0.65rem 1.25rem;}&:hover{color:",e=>e.theme.colors.white,";}"),eA=(0,I.A)(R.$n.OutlinedSecondary,{target:"e1vd8jea37"})(e=>e.theme.typography.standard.M.semibold,"  border:1px solid ",e=>e.theme.colors.neutralMedium,";color:",e=>e.theme.colors.primaryMedium,";padding:15px 0;width:100%;&:hover{border:1px solid ",e=>e.theme.colors.neutralDark,";}"),ex=e=>{let{isOpen:t,membershipBenefits:r,membershipEndsAt:i,onClose:a,onConfirmCancel:l,totalBookings:s,totalSavings:c}=e,{t:d}=(0,C.mR)(),[m,h]=(0,o.useState)("benefits"),[u,p]=(0,o.useState)([]),[g,y]=(0,o.useState)("");(0,o.useEffect)(()=>{t||(h("benefits"),p([]),y(""))},[t]);let f=async()=>{await l(g)&&h("success")};return(0,n.Y)(B.b,{hasCloseButton:!0,isOpen:t,onClose:a,children:(0,n.Y)(V,{children:"benef
1its"===m?(0,n.FD)(n.FK,{children:[(0,n.Y)(_,{children:d.accountSettingsMembershipCancelDialogTitle()}),(0,n.Y)(z,{children:d.accountSettingsMembershipCancelDialogDescription(c,d.accountSettingsMembershipBookings(s))}),(0,n.Y)(X,{children:d.accountSettingsMembershipCancelDialogBenefitsTitle()}),(0,n.Y)(U,{children:r.map(e=>(0,n.FD)(q,{children:[(0,n.Y)(O,{children:(0,n.Y)(D.A,{size:16})}),(0,n.Y)($,{children:e})]},e))}),(0,n.FD)(G,{children:[(0,n.Y)(H,{type:"button",onClick:a,children:d.accountSettingsMembershipCancelDialogKeepMembershipButton()}),(0,n.Y)(J,{type:"button",onClick:()=>{p([...(e=>{let t=[...e];for(let e=t.length-1;e>0;e-=1){let r=Math.floor(Math.random()*(e+1));[t[e],t[r]]=[t[r],t[e]]}return t})([d.accountSettingsMembershipCancelReasonTravelLess(),d.accountSettingsMembershipCancelReasonDiscountValue(),d.accountSettingsMembershipCancelReasonUnusedBenefits(),d.accountSettingsMembershipCancelReasonBetterService(),d.accountSettingsMembershipCancelReasonTooExpensive()]),d.accountSettingsMembershipCancelReasonOther()]),h("reason")},children:d.accountSettingsMembershipCancelDialogConfirmButton()})]})]}):"reason"===m?(0,n.FD)(n.FK,{children:[(0,n.Y)(K,{children:d.accountSettingsMembershipCancelReasonTitle()}),(0,n.Y)(W,{children:d.accountSettingsMembershipCancelReasonSubtitle()}),(0,n.Y)(Z,{children:u.map(e=>{let t=g===e;return(0,n.Y)(Q,{children:(0,n.FD)(ee,{isSelected:t,type:"button",onClick:()=>y(e),children:[(0,n.Y)(et,{isSelected:t}),(0,n.Y)(er,{children:e})]})},e)})}),(0,n.FD)(G,{children:[(0,n.Y)(H,{disabled:!g,type:"button",onClick:()=>{h("confirm")},children:d.accountSettingsMembershipCancelReasonContinueButton()}),(0,n.Y)(J,{type:"button",onClick:()=>{h("benefits")},children:d.accountSettingsMembershipCancelReasonGoBackButton()})]})]}):"confirm"===m?(0,n.FD)(n.FK,{children:[(0,n.Y)(K,{children:d.accountSettingsMembershipCancelFinalStepTitle()}),(0,n.FD)(W,{children:[d.accountSettingsMembershipCancelFinalStepSubtitleBefore(),(0,n.Y)("strong",{children:i}),d.accountSettingsMembershipCancelFinalStepSubtitleAfter()]}),(0,n.FD)(en,{children:[(0,n.Y)(ei,{children:d.accountSettingsMembershipCancelFinalStepBenefitsTitle()}),(0,n.Y)(U,{children:r.map(e=>(0,n.FD)(q,{children:[(0,n.Y)(ea,{children:(0,n.Y)(k.A,{size:12})}),(0,n.Y)($,{children:e})]},e))})]}),(0,n.FD)(el,{children:[(0,n.Y)(eo,{children:(0,n.Y)(P.A,{size:16})}),(0,n.FD)(es,{children:[(0,n.Y)("strong",{children:d.accountSettingsMembershipCancelFinalStepNoRefundsPrefix()}),d.accountSettingsMembershipCancelFinalStepNoRefundsText(i)]})]}),(0,n.FD)(G,{children:[(0,n.Y)(H,{type:"button",onClick:a,children:d.accountSettingsMembershipCancelFinalStepKeepButton()}),(0,n.Y)(J,{type:"button",onClick:f,children:d.accountSettingsMembershipCancelFinalStepConfirmButton()})]})]}):(0,n.FD)(ec,{children:[(0,n.Y)(ed,{children:(0,n.Y)(D.A,{size:16})}),(0,n.Y)(em,{children:d.accountSettingsMembershipCancelSuccessTitle()}),(0,n.FD)(eh,{children:[d.accountSettingsMembershipCancelSuccessDescriptionBefore(),(0,n.Y)("strong",{children:i}),d.accountSettingsMembershipCancelSuccessDescriptionAfter()]}),(0,n.FD)(eu,{children:[(0,n.FD)(ep,{children:[d.accountSettingsMembershipCancelSuccessBenefitsTitleBefore(),(0,n.Y)("strong",{children:i})]}),(0,n.Y)(eg,{children:r.map(e=>(0,n.Y)(ey,{children:e},e))})]}),(0,n.FD)(ef,{children:[(0,n.FD)(eb,{children:[(0,n.Y)(F.A,{"aria-hidden":!0,size:16}),(0,n.FD)(eM,{children:[(0,n.Y)("strong",{children:d.accountSettingsMembershipCancelSuccessRejoinBold()}),d.accountSettingsMembershipCancelSuccessRejoinText()]})]}),(0,n.Y)(ev,{href:j.JZ.membershipLanding,onClick:a,children:d.accountSettingsMembershipCancelSuccessRejoinButton()})]}),(0,n.Y)(eA,{type:"button",onClick:a,children:d.accountSettingsMembershipCancelSuccessBackToAccountButton()})]})})})};var eS=r(68465);let ew=(0,I.A)("div",{target:"eh9lleb0"})("display:flex;flex-direction:column;gap:2rem;"),eY=(0,I.A)("div",{target:"eh9lleb1"})("display:grid;gap:1.25rem;grid-template-columns:1fr;",T.Xk,"{grid-template-columns:2fr 3fr;}"),eC=(0,I.A)("div",{target:"eh9lleb2"})("border:1px solid ",e=>e.theme.colors.neutralLight,";border-radius:2px;display:flex;flex-direction:column;gap:1.25rem;padding:1.5rem 1.5rem 1.35rem;"),eD=(0,I.A)("div",{target:"eh9lleb3"})("background:",e=>"linear-gradient(90deg, ".concat((0,N.B3)(e.theme.colors.accentExtremelyLight,0)," 0%, ").concat(e.theme.colors.accentExtremelyLight," 100%)"),";border:2px solid ",e=>e.theme.colors.accentDark,";border-radius:2px;display:flex;flex-direction:column;gap:1rem;padding:1.5rem 1.5rem 1.35rem;"),ek=(0,I.A)("div",{target:"eh9lleb4"}
1)("align-items:center;display:flex;gap:0.875rem;"),eP=(0,I.A)("div",{target:"eh9lleb5"})("align-items:center;background:",e=>e.theme.colors.accentDark,";border-radius:50%;color:",e=>e.theme.colors.white,";display:flex;flex-shrink:0;height:2.75rem;justify-content:center;width:2.75rem;svg{display:block;}"),eF=(0,I.A)("div",{target:"eh9lleb6"})("display:flex;flex:1;flex-direction:column;gap:0.5rem;min-width:0;"),eB=(0,I.A)("span",{target:"eh9lleb7"})(e=>e.theme.typography.special.S.bold,"  color:",e=>e.theme.colors.primaryMedium,";"),ej=(0,I.A)("span",{target:"eh9lleb8"})(e=>e.theme.typography.standard.XXS.semibold,"  align-self:flex-start;background:",e=>e.theme.colors.accentExtraLight,";border-radius:2px;color:",e=>e.theme.colors.accentDark,";letter-spacing:0.02em;padding:0.2rem 0.5rem;text-transform:uppercase;"),eL=(0,I.A)("div",{target:"eh9lleb9"})("display:flex;flex-direction:column;gap:1rem;"),eE=(0,I.A)("div",{target:"eh9lleb10"})("align-items:flex-start;display:flex;gap:0.65rem;"),eI=(0,I.A)("span",{target:"eh9lleb11"})("color:",e=>e.theme.colors.neutralMedium,";flex-shrink:0;margin-top:0.125rem;"),eR=(0,I.A)("div",{target:"eh9lleb12"})("display:flex;flex:1;flex-direction:column;gap:0.15rem;min-width:0;"),eT=(0,I.A)("span",{target:"eh9lleb13"})(e=>e.theme.typography.standard.S.regular,"  color:",e=>e.theme.colors.neutralDark,";"),eN=(0,I.A)("span",{target:"eh9lleb14"})(e=>e.theme.typography.standard.M.regular,"  color:",e=>e.theme.colors.primaryMedium,";"),eV=(0,I.A)("div",{target:"eh9lleb15"})("align-items:center;display:flex;flex-wrap:wrap;gap:0.35rem;"),e_=(0,I.A)("span",{target:"eh9lleb17"})(e=>e.theme.typography.special.S.bold,"  color:",e=>e.theme.colors.primaryMedium,";"),ez=(0,I.A)("span",{target:"eh9lleb18"})("color:",e=>e.theme.colors.accentDark,";font-family:",e=>e.theme.fonts.special.family,",serif;font-size:3.625rem;font-weight:700;letter-spacing:-0.02em;line-height:1.05;margin-top:2.3rem;"),eX=(0,I.A)("p",{target:"eh9lleb19"})(e=>e.theme.typography.standard.M.regular,"  color:",e=>e.theme.colors.neutralDark,";margin:0;max-width:36rem;strong{",e=>e.theme.typography.standard.M.semibold,"    color:",e=>e.theme.colors.primaryMedium,";}"),eU=(0,I.A)(eS.A,{target:"eh9lleb24"})("filter:brightness(0) invert(1);height:1.25rem;width:1.25rem;"),eq=(0,I.A)(R.$n.Text,{target:"eh9lleb25"})(e=>e.theme.typography.standard.S.medium,";align-items:start;background:transparent !important;color:",e=>e.theme.colors.neutralDark,";justify-content:start;padding:0;text-align:left;text-decoration:underline;"),eO=(0,m.PA)(()=>{var e,t,r,i,a;let{t:l}=(0,C.mR)(),[s,c]=(0,o.useState)(!1),{userMembershipInfo:d,user:m,cancelMembership:h}=u.m,{discountCapLabel:p,discountPercentageLabel:g}=(0,Y.G)(),y=null!=(e=null==d?void 0:d.bookingSummary.totalBookings)?e:0,f=(0,w.n)(null!=(t=null==d?void 0:d.bookingSummary.totalSavings)?t:0,!0),b=(0,S.rs)(null!=(r=(null==d?void 0:d.status)===x.MembershipStatus.cancelled?null==d?void 0:d.endsAt:null==d?void 0:d.renewalDate)?r:""),D=[l.accountSettingsMembershipCancelDialogBenefitDiscount(g,p),l.accountSettingsMembershipCancelDialogBenefitSales(),l.accountSettingsMembershipCancelDialogBenefitSupport(),l.accountSettingsMembershipCancelDialogBenefitConcierge(),l.accountSettingsMembershipCancelDialogBenefitWelcomeGift()];return(0,n.FD)(ew,{children:[(0,n.FD)(eY,{children:[(0,n.FD)(eC,{children:[(0,n.FD)(ek,{children:[(0,n.Y)(eP,{children:(0,n.Y)(eU,{})}),(0,n.FD)(eF,{children:[(0,n.Y)(eB,{children:null==m?void 0:m.firstName}),(0,n.Y)(ej,{children:l.accountSettingsMembershipActiveBadge()})]})]}),(0,n.FD)(eL,{children:[(0,n.FD)(eE,{children:[(0,n.Y)(eI,{children:(0,n.Y)(M.A,{size:16})}),(0,n.FD)(eR,{children:[(0,n.Y)(eT,{children:l.accountSettingsMembershipMemberSinceLabel()}),(0,n.Y)(eN,{children:(null==d?void 0:d.startsAt)?(0,S.rs)(d.startsAt):"-"})]})]}),(0,n.FD)(eE,{children:[(0,n.Y)(eI,{children:(0,n.Y)(M.A,{size:16})}),(0,n.FD)(eR,{children:[(0,n.Y)(eT,{children:(null==d?void 0:d.status)===x.MembershipStatus.cancelled?l.accountSettingsMembershipMemberUntilLabel():l.accountSettingsMembershipAutoRenewalLabel()}),(0,n.Y)(eN,{children:(0,S.rs)(null!=(i=(null==d?void 0:d.status)===x.MembershipStatus.cancelled?null==d?void 0:d.endsAt:null==d?void 0:d.renewalDate)?
1i:"")})]})]}),(0,n.FD)(eE,{children:[(0,n.Y)(eI,{children:(0,n.Y)(v.A,{size:16})}),(0,n.FD)(eR,{children:[(0,n.Y)(eT,{children:l.accountSettingsMembershipPaymentMethodLabel()}),(0,n.Y)(eV,{children:(0,n.Y)(eN,{children:(null==d?void 0:d.paymentDetails)?(null==d?void 0:d.paymentDetails.type)==="link"?l.accountSettingsMembershipPaymentMethodLinkByStripe():"".concat(null==d?void 0:d.paymentDetails.brand," •••• ").concat(null==d?void 0:d.paymentDetails.last4):"••••"})}),(null==d?void 0:d.status)!==x.MembershipStatus.cancelled?(0,n.Y)(eq,{type:"button",onClick:()=>{c(!0)},children:l.accountSettingsMembershipCancelAutoRenewalButton()}):null]})]})]})]}),(0,n.FD)(eD,{children:[(0,n.FD)(ek,{children:[(0,n.Y)(eP,{children:(0,n.Y)(A.A,{size:22})}),(0,n.Y)(e_,{children:l.accountSettingsMembershipLifetimeSavingsTitle()})]}),(0,n.Y)(ez,{children:(0,w.n)(null!=(a=null==d?void 0:d.bookingSummary.totalSavings)?a:0,!0)}),(0,n.FD)(eX,{children:[l.accountSettingsMembershipSavingsDescriptionBefore(),(0,n.Y)("strong",{children:l.accountSettingsMembershipBookings(y)}),l.accountSettingsMembershipSavingsDescriptionAfter()]})]})]}),(0,n.Y)(ex,{isOpen:s,membershipBenefits:D,membershipEndsAt:b,totalBookings:y,totalSavings:f,onClose:()=>{c(!1)},onConfirmCancel:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h(e)}})]})});var e$=r(7953);let eG=(0,I.A)("section",{target:"e1ow6zk60"})("display:flex;flex-direction:column;gap:1.25rem;max-width:30rem;"),eH=(0,I.A)("h2",{target:"e1ow6zk61"})(e=>e.theme.typography.special.XS.bold,"  color:",e=>e.theme.colors.primaryMedium,";margin:0;"),eJ=(0,I.A)("div",{target:"e1ow6zk62"})("display:grid;gap:0.625rem;grid-template-columns:1fr;",T.Xk,"{grid-template-columns:1fr 1fr;}"),eK=(0,I.A)("div",{target:"e1ow6zk63"})("grid-column:1 / -1;"),eW=(0,I.A)(e$.A.Filled,{target:"e1ow6zk64"})("width:100%;"),eZ=(0,I.A)(R.$n.Default,{target:"e1ow6zk65"})("width:fit-content;"),eQ=e=>{let{getPasswordValues:t,onSavePassword:r,passwordControl:i,passwordErrors:a,isSavePasswordVisible:l,isUpdatingPassword:o}=e,{t:s}=(0,C.mR)();return(0,n.FD)(eG,{children:[(0,n.Y)(eH,{children:s.accountSettingsPasswordSectionTitle()}),(0,n.FD)(eJ,{children:[(0,n.Y)(h.xI,{control:i,name:"currentPassword",render:e=>{var t;let{field:{ref:r,...i}}=e;return(0,n.Y)(eK,{children:(0,n.Y)(eW,{...i,autoComplete:"off",error:null==(t=a.currentPassword)?void 0:t.message,inputRef:r,label:s.accountSettingsCurrentPasswordLabel(),type:"password"})})},rules:{required:s._requiredFieldMessage()}}),(0,n.Y)(h.xI,{control:i,name:"newPassword",render:e=>{var t;let{field:{ref:r,...i}}=e;return(0,n.Y)(eK,{children:(0,n.Y)(eW,{...i,error:null==(t=a.newPassword)?void 0:t.message,inputRef:r,label:s.accountSettingsNewPasswordLabel(),type:"password"})})},rules:{minLength:{message:s.accountSettingsPasswordMinLengthError(),value:6},required:s._requiredFieldMessage()}}),(0,n.Y)(h.xI,{control:i,name:"newPasswordConfirmation",render:e=>{var t;let{field:{ref:r,...i}}=e;return(0,n.Y)(eK,{children:(0,n.Y)(eW,{...i,error:null==(t=a.newPasswordConfirmation)?void 0:t.message,inputRef:r,label:s.accountSettingsNewPasswordConfirmationLabel(),type:"password"})})},rules:{required:s._requiredFieldMessage(),validate:e=>e===t("newPassword")||s.accountSettingsPasswordConfirmationError()}})]}),l&&(0,n.Y)(eZ,{disabled:o,hasLoadingAnimation:o,type:"button",onClick:r,children:s._save()})]})};var e0=r(2062);let e1=(0,I.A)("section",{target:"euhychz0"})("display:flex;flex-direction:column;gap:1.25rem;max-width:40rem;"),e2=(0,I.A)("h2",{target:"euhychz1"})(e=>e.theme.typography.special.XS.bold,"  color:",e=>e.theme.colors.primaryMedium,";margin:0;"),e5=(0,I.A)("div",{target:"euhychz2"})("display:grid;gap:0.625rem;grid-template-columns:1fr;",T.Xk,"{grid-template-columns:1fr 1fr;}"),e6=(0,I.A)("div",{target:"euhychz3"})("grid-column:1 / -1;"),e8=(0,I.A)(e$.A.Filled,{target:"euhychz4"})("width:100%;"),e3=(0,I.A)(R.$n.Default,{target:"euhychz5"})("width:fit-content;"),e9=e=>{let{billingControl:t,countries:r,isStatesList:i,onSaveBilling:a,isSavingAccountDetails:l,setBillingValue:o,isSaveBillingVisible:s,states:c}
1=e,{t:d}=(0,C.mR)();return(0,n.FD)(e1,{children:[(0,n.Y)(e2,{children:d.accountSettingsPaymentInfoSectionTitle()}),(0,n.FD)(e5,{children:[(0,n.Y)(h.xI,{control:t,name:"address",render:e=>{let{field:{ref:t,...r}}=e;return(0,n.Y)(e6,{children:(0,n.Y)(e8,{...r,inputRef:t,label:d.accountSettingsAddressLabel()})})}}),(0,n.Y)(h.xI,{control:t,name:"countryCode",render:e=>{let{field:{ref:t,...i}}=e;return(0,n.Y)(e8,{...i,inputRef:t,label:d.accountSettingsCountryLabel(),select:!0,onChange:e=>{o("state",""),i.onChange(e)},children:r.map(e=>(0,n.Y)(e0.A,{value:e.id,children:e.name},e.id))})}}),(0,n.Y)(h.xI,{control:t,name:"city",render:e=>{let{field:{ref:t,...r}}=e;return(0,n.Y)(e8,{...r,inputRef:t,label:d.accountSettingsCityLabel()})}}),(0,n.Y)(h.xI,{control:t,name:"state",render:e=>{let{field:{ref:t,...r}}=e;return i?(0,n.Y)(e8,{...r,inputRef:t,label:d.accountSettingsStateLabel(),select:!0,children:c.map(e=>(0,n.Y)(e0.A,{value:e.code,children:e.name},e.code))}):(0,n.Y)(e8,{...r,inputRef:t,label:d.accountSettingsStateLabel()})}}),(0,n.Y)(h.xI,{control:t,name:"zipCode",render:e=>{let{field:{ref:t,...r}}=e;return(0,n.Y)(e8,{...r,inputRef:t,label:d.accountSettingsZipCodeLabel()})}})]}),s&&(0,n.Y)(e3,{disabled:l,hasLoadingAnimation:l,type:"button",onClick:a,children:d._save()})]})};var e4=r(9616);let e7=(0,I.A)("section",{target:"e1h5pahp0"})("display:flex;flex-direction:column;gap:1.25rem;max-width:40rem;"),te=(0,I.A)("h2",{target:"e1h5pahp1"})(e=>e.theme.typography.special.XS.bold,"  color:",e=>e.theme.colors.primaryMedium,";margin:0;"),tt=(0,I.A)("div",{target:"e1h5pahp2"})("display:grid;gap:0.625rem;grid-template-columns:1fr;",T.Xk,"{grid-template-columns:1fr 1fr;}"),tr=(0,I.A)("div",{target:"e1h5pahp3"})("grid-column:1 / -1;"),tn=(0,I.A)(e$.A.Filled,{target:"e1h5pahp4"})("width:100%;"),ti=(0,I.A)("div",{target:"e1h5pahp5"})("display:flex;flex-direction:column;gap:0.625rem;"),ta=(0,I.A)("div",{target:"e1h5pahp6"})("grid-column:1 / -1;"),tl=(0,I.A)("div",{target:"e1h5pahp7"})("margin-top:0.25rem;width:100%;"),to=e=>{var t,r,i;let{isPhoneVerifiedForUi:a,phoneVerification:l,phoneVerificationPortalEl:o,personalInfoControl:s,setPhoneVerificationPortalEl:c,setPersonalInfoValue:d,user:m,verificationPhoneDisplay:u}=e,{t:p}=(0,C.mR)();return(0,n.FD)(e7,{children:[(0,n.Y)(te,{children:p.accountSettingsPersonalInfoSectionTitle()}),(0,n.FD)(tt,{children:[(0,n.Y)(tn,{disabled:!0,label:p._firstName(),value:null!=(t=null==m?void 0:m.firstName)?t:""}),(0,n.Y)(tn,{disabled:!0,label:p._lastName(),value:null!=(r=null==m?void 0:m.lastName)?r:""})]}),(0,n.FD)(ti,{children:[(0,n.Y)(te,{children:p.accountSettingsContactInfoSectionTitle()}),(0,n.FD)(tt,{children:[(0,n.Y)(tr,{children:(0,n.Y)(tn,{disabled:!0,label:p._email(),value:null!=(i=null==m?void 0:m.email)?i:""})}),(0,n.Y)(h.xI,{control:s,name:"phone",render:e=>{var t;let{field:r,fieldState:i}=e;return(0,n.Y)(ta,{children:(0,n.Y)(e4.e,{...r,alwaysShowInput:!0,hideVerificationHelperText:!0,changeCodeDigit:l.changeCodeDigit,digits:l.digits,error:null==(t=i.error)?void 0:t.message,isCodeInvalid:l.isCodeInvalid,isPhoneVerified:a,isSendingCode:l.isSendingCode,isShowingVerificationComponent:l.isShowingVerificationComponent,isVerifyingPhoneNumber:l.isVerifyingPhoneNumber,label:p._phone(),resendVerificationCode:l.resendVerificationCode,sendVerificationCode:l.sendVerificationCode,verificationError:l.verificationError,verificationInstructionMarkdown:p.accountSettingsVerifyPhoneInstru
1ction(u),verificationPortalRef:null!=o?o:void 0,verificationResendCodeActionText:p.accountSettingsPhoneVerificationSendAgain(),onChange:e=>d("phone",e)})})}})]}),!a&&(0,n.Y)(tl,{ref:c})]})]})};var ts=r(14202),tc=r(69460),td=r(14180);let tm=(0,I.A)("div",{target:"e1vpdi550"})(e=>(0,N.Fo)(e),"  margin:5.5rem auto 4rem;",T.Xk,"{margin:7.5rem auto 5rem;}"),th=(0,I.A)("h1",{target:"e1vpdi551"})(e=>e.theme.typography.special.L.bold,"  color:",e=>e.theme.colors.primaryMedium,";margin-bottom:1.5rem;",T.Xk,"{",e=>e.theme.typography.special.XL.bold,"}"),tu=(0,I.A)("div",{target:"e1vpdi552"})("border-bottom:1px solid ",e=>(0,N.B3)(e.theme.colors.primaryMedium,.15),";display:flex;gap:2rem;margin-bottom:2rem;overflow-x:auto;"),tp=(0,I.A)("button",{target:"e1vpdi553"})(e=>e.theme.typography.standard.M.regular,"  background:none;border:0;border-bottom:3px solid ",e=>e.isActive?e.theme.colors.accentMedium:"transparent",";color:",e=>e.isActive?e.theme.colors.accentDark:e.theme.colors.primaryMedium,";cursor:pointer;padding:0 0 0.85rem;white-space:nowrap;");var tg=function(e){return e.ExclusiveMembership="exclusive-membership",e.PersonalInfo="personal-info",e.Password="password",e.PaymentInfo="payment-info",e}({});let ty=l()(()=>Promise.all([r.e(9927),r.e(202),r.e(1642),r.e(5817),r.e(8004),r.e(9281),r.e(8685)]).then(r.bind(r,9281)).then(e=>{let{Header:t}=e;return t}),{loadableGenerated:{webpack:()=>[9281]},ssr:!1}),tf=e=>{var t;let r=null!=(t=null==e?void 0:e.trim())?t:"";if(!r)return"";try{return(0,s.L)(r).format("E.164")}catch(e){return r.replaceAll(/\s/g,"")}},tb=(0,m.PA)(()=>{var e;let{t}=(0,C.mR)(),[r,a]=(0,o.useState)(tg.PersonalInfo),[l,s]=(0,o.useState)(null),[m,M]=(0,o.useState)(!1),v=(0,o.useRef)(!1),A=u.m.user,x=!!(null==A?void 0:A.isMember),S=(0,d.mm)(u.m.saveAccountDetails),w=(0,d.mm)(u.m.updatePassword),{control:Y,formState:{dirtyFields:D},handleSubmit:k,reset:P,setValue:F,watch:B}=(0,h.mN)({defaultValues:{address:"",city:"",countryCode:"US",state:"",zipCode:""}}),{control:j,reset:L,setValue:E,watch:I}=(0,h.mN)({defaultValues:{phone:""}}),{control:R,formState:{dirtyFields:T,errors:N},getValues:V,handleSubmit:_,reset:z}=(0,h.mN)({defaultValues:{currentPassword:"",newPassword:"",newPasswordConfirmation:""}}),[X]=I(["phone"]),[U]=B(["countryCode"]),q=td.J.countries.find(e=>e.id===U),O=null!=(e=td.J.statesByCountry[U])?e:[],$=(0,o.useMemo)(()=>{if(!X)return"";try{return(0,c.G)(X,"INTERNATIONAL")}catch(e){return X}},[X]),G=$.replaceAll(" ",""),H=(0,y.z)({loadUser:u.m.loadUser,phone:G,requestPhoneVerificationCode:p.En,resendPhoneVerificationCode:p.yi,shouldReloadUserAfterPhoneUpdate:!0,shouldUpdateUserPhone:!0,updatePhoneNumber:u.m.updatePhoneNumber,verifyPhoneVerificationCode:p.IU}),J=(0,o.useMemo)(()=>{var e;if(H.isPhoneVerified)return!0;if(!(null==A?void 0:A.phoneConfirmed))return!1;let t=tf(X),r=tf(null!=(e=null==A?void 0:A.phone)?e:"");return!!t&&!!r&&t===r},[X,H.isPhoneVerified,null==A?void 0:A.phone,null==A?void 0:A.phoneConfirmed]);(0,o.useEffect)(()=>{u.m.loadUser().finally(()=>{M(!0)}),td.J.loadCountries()},[]),(0,o.useEffect)(()=>{m&&!v.current&&(v.current=!0,x&&a(tg.ExclusiveMembership))},[m,x]),(0,o.useEffect)(()=>{m&&(x||r!==tg.ExclusiveMembership||a(tg.PersonalInfo))},[r,m,x]),(0,o.useEffect)(()=>{U&&(null==q?void 0:q.statesChoice)==="List"&&td.J.loadStates(U)},[U,null==q?void 0:q.statesChoice]),(0,o.useEffect)(()=>{var e,t,r,n,i,a,l,o,s,c,d,m;L({phone:null!=(l=null==A?void 0:A.phone)?l:""}),P({address:null!=(o=null==A||null==(e=A.address)?void 0:e.address)?o:"",city:null!=(s=null==A||null==(t=A.address)?void 0:t.city)?s:"",countryCode:null!=(c=null==A||null==(r=A.address)?void 0:r.countryCode)?c:"US",state:null!=(d=null==A||null==(i=A.address)||null==(n=i.state)?void 0:n.code)?d:"",zipCode:null!=(m=null==A||null==(a=A.address)?void 0:a.zipCode)?m:""})},[P,L,A]);let K=k(async e=>{try{await u.m.saveAccountDetails(e),f.m.success(t.accountSettingsBillingAddressUpdateSuccess())}catch(e){f.m.error(e.message)}}),W=_(async e=>{try{await u.m.updatePassword({currentPassword:e.currentPassword,newPassword:e.newPassword}),f.m.success(t.accountSettingsPasswordUpdateSuccess()),z()}catch(e){f.m.error(e.message)}}),Z=(0,o.useMemo)(()=>{let e=[{id:tg.PersonalInfo,title:t.accountSettingsPersonalInfoTab()},{id:tg.Password,title:t.accountSettingsPasswordTab()},{id:tg.PaymentInfo,title:t.accountSettingsPaymentInfoTab()}];return x?[{id:tg.ExclusiveMembership,title:t.accountSettingsExclusiveMembershipTab()},...e]:e},[x,t]),Q=Object.keys(D).length>0,ee=Object.keys(T).length>0;return(0,n.FD)(tc.M,{children:[(0,n.Y)(i.bV,{nofollow:!0,noindex:!0,title:t.accountSettingsPageTitle()}),(0,n.Y)(b.u,{children:()=>(0,n.Y)(ty,{})}),(0,n.FD)(tm,{children:[(0,n.Y)(th,{children:t.accountSettingsPageTitle()}),m?(0,n.FD)(n.FK,{children:[(0,n.Y)(tu,{children:Z.map(e=>(0,n.Y)(tp,{isActive:r===e.id,type:"button",onClick:()=>a(e.id),children:e.title},e.id))}),r===tg.ExclusiveMembership&&x&&(0,n.Y)(eO,{}),r===tg.PersonalInfo&&(0,n.Y)(to,{isPhoneVerifiedForUi:J,personalInfoControl:j,phoneVerification:H,phoneVerificationPortalEl:l,setPersonalInfoValue:E,setPhoneVerificationPortalEl:s,user:A,verificationPhoneDisplay:$}),r===tg.Password&&(0,n.Y)(eQ,{getPasswordValues:V,isSavePasswordVisible:ee,isU
1pdatingPassword:w,passwordControl:R,passwordErrors:N,onSavePassword:W}),r===tg.PaymentInfo&&(0,n.Y)(e9,{billingControl:Y,countries:td.J.countries,isSaveBillingVisible:Q,isSavingAccountDetails:S,isStatesList:(null==q?void 0:q.statesChoice)==="List",setBillingValue:F,states:O,onSaveBilling:K})]}):(0,n.Y)(g.X,{paddingTop:"1.5rem"})]}),(0,n.Y)(ts.w,{})]})});var tM=!0;let tv=tb},37509:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(95336);function i(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["mousedown","touchstart"],i=n=>i=>{r.includes(n)&&((t=>{let r=null==e?void 0:e.current;return!r||r.contains(t)})(i.target)||t(i))};(0,n.M)("mousedown",i("mousedown")),(0,n.M)("mouseup",i("mouseup")),(0,n.M)("touchstart",i("touchstart"))}},41457:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(29672);let{pushNotification:i}=r(55779).x,a={success:e=>{i({type:n._.Success,message:e})},info:e=>{i({type:n._.Info,message:e})},error:e=>{i({type:n._.Error,message:e})},warning:e=>{i({type:n._.Warning,message:e})}}},47363:(e,t,r)=>{"use strict";r.d(t,{Y:()=>c});var n=r(87540),i=r(40003),a=r(1751),l=r(59980);let o=(0,i.A)(async()=>{let{data:e,errors:t}=await a.arrierePublic.queries.availableUserMemberships.raw({__alias:"memberships_getAvailableUserMemberships",discountPercentage:!0,durationMonths:!0,id:!0,maxDiscountAmount:!0,name:!0,price:!0});if(t&&t.length)throw Error(t[0].message);return e.map(e=>({...e,discountPercentage:Math.round(100*e.discountPercentage)}))},{maxAge:l.an});class s{get plan(){return this.plans[0]}get annualPriceLabel(){return this.plan?"$".concat(this.plan.price):"$-"}get discountPercentageLabel(){return this.plan?"".concat(this.plan.discountPercentage,"%"):"-%"}get discountCapLabel(){return this.plan?"$".concat(this.plan.maxDiscountAmount):"$-"}async initialize(){this.isLoading=!0;try{let e=await o();(0,n.runInAction)(()=>{this.plans=e})}catch(e){}finally{(0,n.runInAction)(()=>{this.isLoading=!1})}}constructor(){this.isLoading=!1,this.plans=[],(0,n.makeAutoObservable)(this,void 0,{autoBind:!0}),this.initialize()}}let c=new s},59980:(e,t,r)=>{"use strict";r.d(t,{an:()=>n});let n=3e4},65252:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/settings",function(){return r(26734)}])},69460:(e,t,r)=>{"use strict";r.d(t,{M:()=>n.M});var n=r(38884)},74290:(e,t,r)=>{"use strict";r.d(t,{t:()=>m,u:()=>h});var n=r(2860),i=r(55729),a=r(90867),l=r(54663),o=r(7791),s=r(20696),c=r(59474);let d=(0,s.A)("div",{target:"e1lb7wxl0"})(e=>e.hasBackground&&"box-shadow: rgb(232 239 245 / 50%) 0px 0px 40px;)",";background-color:",e=>e.hasBackground?e.theme.colors.white:"transparent",";padding-right:",e=>e.scrollBarGap,"px;position:fixed;top:",e=>e.topBarHeight,"px;width:100%;z-index:",c.f.HEADER,";");var m=function(e){return e[e.DYNAMIC=0]="DYNAMIC",e[e.TRANSPARENT=1]="TRANSPARENT",e[e.WHITE=2]="WHITE",e}({});let h=(0,a.PA)(e=>{let{background:t=m.DYNAMIC,className:r,children:a}=e,[s,c]=(0,i.useState)(!1),h=(0,i.useRef)(s),u=(0,o.F)(),p=()=>{window.scrollY>0?h.current||(h.current=!0,c(!0)):h.current&&(h.current=!1,c(!1))};return(0,i.useEffect)(()=>(document.addEventListener("scroll",p),()=>document.removeEventListener("scroll",p)),[]),(0,n.Y)(d,{className:r,hasBackground:t===m.WHITE||t===m.DYNAMIC&&s,scrollBarGap:l.tX.get(),topBarHeight:u,children:a(s)})})},79110:(e,t,r)=>{"use strict";r.d(t,{ex:()=>m,fL:()=>u,qw:()=>h,rs:()=>p,w:()=>g});var n=r(62922),i=r(1958),a=r(81365),l=r(98539),o=r(50134),s=r(83121),c=r(16451);let d=new Date,m=(e,t,r)=>{let{checkIn:s,checkOut:c}=e;if(!s||"string"!=typeof s)return;let m=(0,n.A)(s,"yyyy-MM-dd",d);if(!c||"string"!=typeof c)return"".concat((0,i.A)(m,"MMM d, y")," …");let h=(0,n.A)(c,"yyyy-MM-dd",d),u=t?(()=>{let e=(0,a.A)(h,m);return"・".concat(e," ").concat(1===e?"night":"nights")})():"";if(!(0,l.A)(m,h)){let e=(0,i.A)(m,r?"MMM d, y":"ccc, MMM d, y"),t=(0,i.A)(h,r?"MMM d, y":"ccc, MMM d, y");return"".concat(e," – ").concat(t).concat(u)}if(!(0,o.A)(m,h)){let e=(0,i.A)(m,r?"MMM d":"ccc, MMM d"),t=(0,i.A)(h,r?"MMM d, y":"ccc, MMM d, y");return"".concat(e," – ").concat(t).concat(u)}let p=(0,i.A)(m,r?"MMM d":"ccc, MMM d"),g=(0,i.A)(h,r?"MMM d, y":"ccc, MMM d, y");return"".concat(p," – ").concat(g).concat(u)},h=e=>{let{checkIn:t,checkOut:r}=e;if(!t||"string"!=typeof t)return;let a=(0,n.A)(t,"yyyy-MM-dd",d);if(!r||"string"!=typeof r)return"".concat((0,i.A)(a,"MMM d, y")," …");let s=(0,n.A)(r,"yyyy-MM-dd",d);if(!(0,l.A)(a,s)){let e=(0,i.A)(a,"MMM d, y"),t=(0,i.A)(s,"MMM d, y");return"".concat(e," – ").concat(t)}if(!(0,o.A)(a,s)){let e=(0,i.A)(a,"MMM d"),t=(0,i.A)(s,"MMM d, y");return"".concat(e," – ").concat(t)}let c=(0,i.A)(a,"MMM d"),m=(0,i.A)(s,"MMM d, y");return"".concat(c," – ").concat(m)},u=e=>{let t=(0,n.A)(e,"yyyy-MM-dd",new Date),r=new Date().getFullYear();return t.getFullYear()>r?(0,i.A)(t,"MMM dd, yyyy"):(0,i.A)(t,"MMM dd")},p=e=>{let t="string"==typeof e?(0,s.A)(e):e;return(0,i.A)(t,"MMMM d, yyyy")},g=(e,t)=>{let r=(0,s.A)(e),n=(0,s.A)(t);return(0,c.A)(r,n)}}},e=>{e.O(0,[4139,1226,4244,5066,7114,1652,482,6868,5892,232,6038,3542,8373,1909,1958,4132,2283,3224,2226,8884,6708,7671,5665,636,6593,8792],()=>e(e.s=65252)),_N_E=e.O()}]);

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.