(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4107],{95333:function(e,l,o){"use strict";var i,t=o(94746);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var o=arguments[l];for(var i in o)({}).hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(null,arguments)}l.Z=function(e){return t.createElement("svg",n({viewBox:"0 0 1200 1200",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=t.createElement("path",{d:"M526.8 907.2c9.602 9.602 21.602 14.398 33.602 14.398s24-4.8 33.602-14.398c19.199-19.199 19.199-49.199 0-68.398l-189.61-190.8h523.2c26.398 0 48-21.602 48-48s-21.602-48-48-48h-523.2l190.8-190.8c19.199-19.199 19.199-49.199 0-68.398s-49.199-19.199-68.398 0l-272.4 273.6c-19.199 19.199-19.199 49.199 0 68.398z",fill:"currentColor"})))}},70782:function(e,l,o){"use strict";o.r(l),o.d(l,{CheckoutBookingFeature:function(){return d}});var i=o(57437),t=o(2265),n=o(99376),s=o(61770),r=o(42235),a=o(72915),c=o(68029);function d(e){let{...l}=e,o=(0,n.useRouter)(),d=(0,n.useParams)(),u=(0,n.useSearchParams)(),h=(null==d?void 0:d.contractID)||(null==u?void 0:u.get("booking-bundles"))||(null==u?void 0:u.get("hotel-bundles")),{isBooking:v,contract:m,booking:x,error:p}=(0,a.useCheckout)(h),[,g]=(0,s.useCookie)(r.X),f=(0,t.useRef)(!1);(0,t.useRef)();let _=(0,t.useRef)({booking:null,error:null});return(0,t.useEffect)(()=>{setTimeout(()=>{f.current=!0,_.current&&j(_.current.booking,_.current.error)},4e3)},[]),(0,t.useEffect)(()=>{(x||p)&&(_.current={booking:x,error:p},f.current&&j(x,p))},[x,p]),(0,i.jsx)(c.W,{...l,contract:m});function j(e,l){let i=l?"/cart/checkout/".concat(h):e?"/trips/".concat(e.bookingID):"";e&&g(e.payment.billing.email),o.replace("".concat(i))}}},97159:function(e,l,o){"use strict";o.r(l),o.d(l,{CheckoutConfirmationFeature:function(){return u}});var i=o(57437),t=o(2265),n=o(99376),s=o(86914),r=o(78231),a=o(19471),c=o(72915),d=o(21441);function u(e){let{booking:l}=e,o=(0,n.usePathname)(),u=(0,n.useSearchParams)(),{focusedContractID:h}=(0,c.useCheckout)(),v=(null==u?void 0:u.get("booking-bundles"))||h,{closeBook:m}=(0,d.useCheckoutShell)(),{contract:x,booking:p}=(0,c.useCheckout)(v);x=l||p||x;let g=(0,r.n_)(x);return(0,t.useEffect)(()=>{m()},[]),(0,i.jsxs)("div",{children:[(0,i.jsx)(a.HotelConfirmationCard,{contract:x,bookAgainLinkBuilder:()=>{var e,l;return"/hotel/".concat(null==x?void 0:null===(l=x.hotels)||void 0===l?void 0:null===(e=l[0])||void 0===e?void 0:e.id,"?").concat(g.toString())},cancelLinkBuilder:()=>"".concat(o,"/cancel")}),(0,i.jsx)(s.Confetti,{duration:1600})]})}},41777:function(e,l,o){"use strict";o.r(l),o.d(l,{CheckoutConfirmationHeroFeature:function(){return n}});var i=o(57437),t=o(20608);function n(e){let{contract:l}=e;return(0,i.jsx)(t.CheckoutConfirmationHero,{contract:l,onClickArrow:()=>{var e;return null===(e=document.getElementById("trip-details"))||void 0===e?void 0:e.scrollIntoView({behavior:"smooth"})}})}},52732:function(e,l,o){"use strict";o.r(l),o.d(l,{CheckoutFeatureLoading:function(){return P}});var i=o(57437),t=o(36760),n=o.n(t),s=o(16284),r=o(13192),a=o(29765),c=o.n(a);function d(e){let{className:l}=e;return(0,i.jsxs)("div",{className:n()(c().container,l),children:[(0,i.jsx)(r.q,{height:"46px",relative:!0}),(0,i.jsx)(r.q,{height:"46px",relative:!0}),(0,i.jsx)(r.q,{height:"46px",relative:!0}),(0,i.jsx)(r.q,{height:"46px",relative:!0}),(0,i.jsx)(r.q,{height:"46px",relative:!0}),(0,i.jsx)(r.q,{height:"46px",relative:!0}),(0,i.jsx)(r.q,{height:"46px",relative:!0})]})}var u=o(40708),h=o(87144),v=o.n(h);function m(e){let{className:l}=e;return(0,i.jsx)("div",{className:n()(v().container,l),children:(0,i.jsx)(r.q,{})})}var x=o(78750),p=o.n(x);function g(e){let{className:l,rooms:o=1}=e;return(0,i.jsxs)(u.g,{className:n()(p().container,l),overlayImage:!0,children:[(0,i.jsx)(m,{className:p().meta}),(0,i.jsx)("ul",{className:p().rooms,children:Array.from(Array(o)).map((e,l)=>(0,i.jsxs)("li",{className:p().room,children:[(0,i.jsx)(r.q,{className:p().name,width:"160px",height:"22px",relative:!0}),(0,i.jsx)("ul",{className:p().rooms,children:Array.from([,]).map((e,l)=>(0,i.jsxs)("li",{children:[(0,i.jsx)(r.q,{className:p().name,width:"40%",height:"18px",relative:!0})," "]}))})]}))})]})}var f=o(10387),_=o.n(f);function j(e){let{className:l}=e;return(0,i.jsx)("div",{className:n()(_().container,l),children:(0,i.jsx)("ul",{className:_().container,children:(0,i.jsxs)("li",{className:_().room,children:[(0,i.jsx)(r.q,{className:_().title,relative:!0}),(0,i.jsx)(r.q,{height:"46px",relative:!0}),(0,i.jsx)(r.q,{height:"46px",relative:!0}),(0,i.jsx)(r.q,{height:"46px",relative:!0})]})})})}var b=o(16435),y=o(48426),k=o(61247),N=o(6432),C=o(93761),w=o.n(C);function E(e){let{className:l,disclaimer:o=!1,title:t=!1,children:s}=e;return(0,i.jsxs)(N.Card,{className:n()(w().container,l),elevation:1,children:[o&&(0,i.jsx)(r.q,{className:w().disclaimer,height:"22px",relative:!0}),t&&(0,i.jsx)(r.q,{className:w().title,width:"160px",height:"22px",relative:!0}),s]})}var S=o(29363),F=o.n(S);function P(){return(0,i.jsx)(b.A,{hero:(0,i.jsx)(y.CheckoutProgress,{}),heroMinHeight:"0",sidebar:(0,i.jsx)(k.G,{}),thin:!0,children:(0,i.jsxs)("div",{className:n()(F().checkout),children:[(0,i.jsx)(g,{className:F().section}),(0,i.jsx)(E,{className:F().section,title:!0,disclaimer:!0,children:(0,i.jsx)(j,{})}),(0,i.jsx)(E,{className:F().section,title:!0,children:(0,i.jsx)(s.D,{})}),(0,i.jsx)(E,{className:F().section,title:!0,children:(0,i.jsx)(d,{})})]})})}},19051:function(e,l,o){"use strict";o.r(l),o.d(l,{CheckoutFeature:function(){return en}});var i,t,n,s,r=o(57437),a=o(2265),c=o(99376),d=o(36760),u=o.n(d),h=o(29501),v=o(34422),m=o(73842),x=o(61770),p=o(10337),g=o(82990),f=o(51603),_=o(32808),j=o(75928),b=o(2663),y=o(33121),k=o(9584),N=o(30676),C=o(64693),w=o(47095),E=o(17227),S=o(32757),F=o(31358),P=o(15055),q=o(19148),I=o(78009),T=o(16284),D=o(27267),O=o(93232),V=o(43816),B=o(78231),R=o(42235),A=o(18482),L=o(64498),H=o(46682),z=o(16435),G=o(48426),M=o(37724),W=o(6432),Z=o(93761),U=o.n(Z);function K(e){let{className:l,title:o,children:i,disclaimer:t,focusable:n,error:s}=e;return(0,r.jsxs)(W.Card,{className:u()(U().container,l),elevation:1,focusable:n,error:!!s,children:[t&&(0,r.jsx)("div",{className:U().disclaimer,children:t}),o&&(0,r.jsx)("h4",{className:U().title,children:o}),i]})}var X=o(21441),Y=o(94746);function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var o=arguments[l];for(var i in o)({}).hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(null,arguments)}var J=function(e){return Y.createElement("svg",Q({"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",fill:"currentColor"},e),i||(i=Y.createElement("path",{d:"M150 900c-13.26 0-25.98-5.27-35.35-14.65S100 863.26 100 850V0H0v850c0 39.78 15.81 77.94 43.93 106.07A150.01 150.01 0 0 0 150 1000h850V900H150Z"})),t||(t=Y.createElement("path",{d:"m327.75 791.5 116-77.25 71 71A49.967 49.967 0 0 0 550 800h3a50.003 50.003 0 0 0 36.5-19.25l350-450-79-61.5L545.25 675l-60-59.75a50.018 50.018 0 0 0-30.39-14.37c-11.48-1.14-23 1.73-32.61 8.12l-137.5 91H200v100h100a49.98 49.98 0 0 0 27.75-8.5Z"})))};function $(){return($=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var o=arguments[l];for(var i in o)({}).hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(null,arguments)}var ee=function(e){return Y.createElement("svg",$({"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",fill:"currentColor"},e),n||(n=Y.createElement("path",{d:"M150 900c-13.26 0-25.98-5.27-35.35-14.65S100 863.26 100 850V0H0v850c0 39.78 15.81 77.94 43.93 106.07A150.01 150.01 0 0 0 150 1000h850V900H150Z"})),s||(s=Y.createElement("path",{d:"M422.25 391.5c8.21 5.48 17.87 8.41 27.75 8.41s19.53-2.93 27.75-8.41l108.5-72.25 272.25 408.5 83-55.5-300-450a50.027 50.027 0 0 0-31.78-21.19c-12.98-2.57-26.45.1-37.47 7.44L450 290l-122.25-81.5A49.98 49.98 0 0 0 300 200H200v100h84.75l137.5 91.5Z"})))},el=o(29363),eo=o.n(el);o(96196);let ei={sections:[{id:"summary"},{id:"guests",match:/double/gi},{id:"payment",match:/credit card|payment|funds|cc/gi},{id:"billing"}],codes:{6805:{section:"summary",message:"The price has changed for this hotel rate"},"1.4832.163":{section:"payment",message:"Credit card failure. Please try another card"}}},et=v.Ry().shape({guests:A.hotelGuestFormSchema,creditCard:N.creditCardFormSchema,billing:C.addressFormSchema.required(),initials:v.Z_().min(2,"Initials required").max(2).matches(g.AV,"Invalid character").required("Initials required")}).required(),en=e=>{var l,o,i,t,n,s,d,v,g,W,Z;let{contract:U,cards:Y=[],travelers:Q=[]}=e,$=(0,j.useConfig)(),{account:el}=(0,k.useAccount)(),[{isLoading:en}]=(0,b.useSearch)(),es=Y.length>0,[er,ea]=(0,a.useState)(()=>(null==Y?void 0:Y.find(e=>!!e))||null),{track:ec,identify:ed}=(0,y.useAnalytics)(),eu=(0,c.useRouter)(),eh=(0,c.useSearchParams)(),ev=U.id||(null==eh?void 0:eh.get("hotel-bundles")),em=null==eh?void 0:eh.has("book-error");null==eh||eh.get("session");let[ex,{safetyError:ep},{checkout:eg}]=(0,H.useCheckoutV2)(),[ef,e_]=(0,a.useState)(),ej=null==ex?void 0:ex.checkoutError,eb=ef||ej,[,ey]=(0,x.useCookie)(R.X),{openBook:ek,closeBook:eN}=(0,X.useCheckoutShell)(),eC=null==U?void 0:U.allowedCreditCards.map(e=>{let{type:l}=e;return l}).filter(e=>{var l,o,i,t;return null===(o=$.payment)||void 0===o||null===(l=o.allowedPaymentMethods)||void 0===l||!l.length||(null===(t=$.payment)||void 0===t?void 0:null===(i=t.allowedPaymentMethods)||void 0===i?void 0:i.indexOf(e))>-1}),ew=(0,p.useForm)({resolver:(0,m.X)(et),defaultValues:{billing:{...(null==er?void 0:er.billing)||{line1:"",countryCode:"",city:"",stateCode:"",postalCode:""},email:(null==el?void 0:el.email)||"",phone:(null==el?void 0:null===(l=el.phones)||void 0===l?void 0:l[0])||{code:"US+1",number:""}},guests:(null==el?void 0:null===(o=el.travelers)||void 0===o?void 0:o.length)?null==el?void 0:el.travelers.slice(0,U.roomCount):[],creditCard:{cardID:null===(i=Y[0])||void 0===i?void 0:i.id,name:(null==er?void 0:er.name)||"",type:(null==er?void 0:er.type)||"",number:null!=er&&!!er.alias&&"valid-cc",expires:(null==er?void 0:er.expires)||"",cvv:!1,allowedCardTypes:eC},initials:""}},{store:{key:"checkout:hotel",ignore:["creditCard","initials",el?"billing.email":"",el?"billing.phone":"",(null==el?void 0:null===(t=el.travelers)||void 0===t?void 0:t.length)?"guests":""]}},e=>({...e,guests:e.guests.slice(0,U.roomCount)})),eE=ew.watch("guests.0.sameAsCreditCard"),eS=ew.watch(),[eF="",eP=""]=ew.watch(["guests.0.firstName","guests.0.lastName"]),eq=eE&&(eF||eP)?"".concat(eF?"".concat(eF," "):"").concat(eP):(null==er?void 0:er.name)||"",eI=null==U?void 0:null===(n=U.hotels)||void 0===n?void 0:n[0],eT="/cart/checkout/booking?hotel-bundles=".concat(ev),[eD,eO]=(0,a.useState)(!1),eV=(0,a.useRef)(null),[,eB]=function(e){if(!e)return[void 0,e];let l=ei.codes[e.code],o=new _.w(e),i="";if(l)i=l.section,o.message=l.message;else for(let l of ei.sections){var t,n;(null===(n=l.match)||void 0===n?void 0:null===(t=n.test)||void 0===t?void 0:t.call(n,e.message))&&(i=l.id)}return[i,o]}(eb),eR=ew.watch("creditCard.cardID"),eA=null==ex?void 0:ex.changes,eL=(0,a.useRef)(null),eH=ew.watch("billing.email");if(console.log({bestBookError:eB,safetyError:ep}),(null==eb?void 0:eb.code)==="1.4812.576")throw eb;return(0,a.useEffect)(()=>{(null==ex?void 0:ex.isCheckingOut)||eN()},[]),(0,a.useEffect)(()=>{er||ew.setValue("creditCard.name",eq,{shouldValidate:ew.formState.isSubmitted})},[eE,eq]),(0,a.useEffect)(()=>{eu.prefetch(eT)},[eT]),(0,a.useEffect)(()=>{var e,l,o,i;((null==ew?void 0:null===(e=ew.formState)||void 0===e?void 0:e.isSubmitted)||(null==ew?void 0:null===(l=ew.formState)||void 0===l?void 0:l.errors))&&(null===(o=Object.keys((null==ew?void 0:null===(i=ew.formState)||void 0===i?void 0:i.errors)||{}))||void 0===o?void 0:o.length)&&ec("checkout:form:error",{errors:function e(l){return l?Object.keys(l).reduce((o,i)=>{let t=l[i];return(t=t.message?t.message:e(t))&&(o[i]=t),o},{}):null}(ew.formState.errors)})},[null==ew?void 0:null===(s=ew.formState)||void 0===s?void 0:s.isSubmitted,null==ew?void 0:ew.formState.errors]),(0,a.useEffect)(()=>{if(er&&(null==ew||ew.setValue("creditCard",{cardID:er.id,name:(null==er?void 0:er.name)||"",type:(null==er?void 0:er.type)||"",number:null!=er&&!!er.alias&&"valid-cc",expires:(null==er?void 0:er.expires)||"",cvv:null==ew?void 0:ew.watch("creditCard.cvv"),allowedCardTypes:eC}),er.billing)){var e;let l=null==ew?void 0:ew.watch("billing.phone.code"),o=null==ew?void 0:ew.watch("billing.phone.number");null==ew||ew.setValue("billing",{...er.billing,email:(null==el?void 0:el.email)||"",phone:(null==el?void 0:null===(e=el.phones)||void 0===e?void 0:e[0])||{code:l||"",number:o||""}})}},[el,er]),(0,a.useEffect)(()=>{var e,l;if(!(null==el?void 0:null===(e=el.phones)||void 0===e?void 0:e.length))return;let o=null==ew?void 0:ew.watch("billing.phone.code"),i=null==ew?void 0:ew.watch("billing.phone.number");null==ew||ew.setValue("billing.phone",(null==el?void 0:null===(l=el.phones)||void 0===l?void 0:l[0])||{code:o||"",number:i||""})},[null==el?void 0:el.phones]),(0,a.useEffect)(()=>{null==ew||ew.setValue("billing.email",null==el?void 0:el.email)},[null==el?void 0:el.email]),(0,a.useEffect)(()=>{!eH&&(null==el?void 0:el.email)&&(null==ew||ew.setValue("billing.email",el.email))},[eH]),(0,a.useEffect)(()=>{var e;if(((null==el?void 0:null===(e=el.travelers)||void 0===e?void 0:e.length)||0)>0){let e=(null==el?void 0:el.travelers.slice(0,U.roomCount))||[];for(let l=e.length;l<U.roomCount;++l)e.push({});ew.setValue("guests",e)}},[(null==el?void 0:null===(d=el.travelers)||void 0===d?void 0:d.length)||0,U.roomCount]),(0,a.useEffect)(()=>{if(console.log({hasError:em}),em){var e,l,o,i;let t=ex.contract?"?hotel-id=".concat(null==ex?void 0:null===(o=ex.contract)||void 0===o?void 0:null===(l=o.hotels)||void 0===l?void 0:null===(e=l[0])||void 0===e?void 0:e.id).concat((0,B.n_)(ex.contract),"&session=").concat(ex.id):"?";eN(),eu.replace("/cart/checkout/".concat(null==ex?void 0:null===(i=ex.contract)||void 0===i?void 0:i.id).concat(t),{scroll:!1})}},[em]),console.groupCollapsed("%c CHECKOUT_RENDER ","color: #000; font-size: 16px; font-weight: bold; background-color: orange;"),console.groupCollapsed("%c Account ","color: #000; font-size: 14px; font-weight: bold; background-color: green;"),console.log(el),console.groupEnd(),console.groupCollapsed("%c Session ","color: #000; font-size: 14px; font-weight: bold; background-color: yellow;"),console.log(ex),console.groupEnd(),console.groupCollapsed("%c Contract ","color: #000; font-size: 14px; font-weight: bold; background-color: chartreuse;"),console.log(U),console.groupEnd(),console.groupCollapsed("%c Form State ","color: #000; font-size: 14px; font-weight: bold; background-color: cyan;"),console.log(null==ew?void 0:ew.watch()),console.groupEnd(),console.groupCollapsed("%c Form Errors ","color: red; font-size: 14px; font-weight: bold; background-color: #5c0000; border: 1px solid red;"),console.log(null==ew?void 0:ew.formState.errors),console.groupEnd(),console.groupEnd(),(0,r.jsx)(z.A,{className:u()({[eo()["has-error"]]:!!eB}),topClassName:eo().top,topContentClassName:eo().content,hero:(0,r.jsx)(G.CheckoutProgress,{}),heroMinHeight:"0",sidebar:(0,r.jsx)(M.F,{className:eo().summary,contentClassName:eo().inner,contract:U,account:el,isLoadingPrices:en}),stickyTop:!!eb,top:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:u()(eo().intro),children:eB?(0,r.jsx)(w.ErrorBox,{className:eo().error,error:eB,children:(0,r.jsx)("div",{className:eo()["error-content"],children:(0,f.B$)(eB.message,":")})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("strong",{children:"Almost done!"})," Enter your details and complete your booking now."]})}),!!(null==eA?void 0:eA.length)&&(0,r.jsx)("ul",{className:eo().changes,children:eA.map(e=>{let l;let o=null,i=null;if("price-change"===e.id){var t,n,s,a;let c=e.value>0;l=c?"price-red":"price-green",o=c?(0,r.jsx)(J,{width:16,height:16}):(0,r.jsx)(ee,{width:16,height:16}),i=(0,r.jsxs)(r.Fragment,{children:["The price has gone ".concat(c?"up":"down"," by "),(0,r.jsx)(E.t,{...null==U?void 0:null===(t=U.price)||void 0===t?void 0:t.displayTotal,value:Math.abs(e.value),symbol:null==U?void 0:null===(a=U.price)||void 0===a?void 0:null===(s=a.displayTotal)||void 0===s?void 0:null===(n=s.currency)||void 0===n?void 0:n.symbol,round:"none"})]})}return i?(0,r.jsx)("li",{children:(0,r.jsx)(S.W,{icon:o,theme:l,children:i})}):null})})]}),thin:!0,children:(0,r.jsx)("div",{className:u()(eo().checkout),children:(0,r.jsx)(h.RV,{...ew,children:(0,r.jsx)("form",{onSubmit:ew.handleSubmit(ez),children:(0,r.jsxs)(F.BoxList,{className:eo().sections,scrollOffset:-40,ref:eL,children:[(0,r.jsx)(L.HotelContractCard,{className:eo().section,contract:U}),(0,r.jsx)(K,{className:eo().section,title:"Guest Name".concat((null==U?void 0:U.roomCount)>1?"s":""),disclaimer:"The guest checking in to each hotel room must be 21 or older, present a valid Photo ID and credit card.",focusable:!0,children:(0,r.jsx)(A.HotelGuestForm,{travelers:null==el?void 0:el.travelers,roomCount:null==U?void 0:U.roomCount})}),!!el&&(0,r.jsxs)(K,{className:u()(eo().section,eo().contact),title:"Contact",focusable:!0,children:[(0,r.jsx)(P.Input,{className:eo().email,label:"Email",value:(null==eS?void 0:null===(v=eS.billing)||void 0===v?void 0:v.email)||el.email,disabled:!0}),(0,r.jsx)(q.PhoneNumberForm,{nameKey:"billing.phone",showType:!1})]}),es?(0,r.jsx)(K,{title:"Payment",focusable:!0,children:(0,r.jsx)(I.CreditCardSelectorForm,{cards:Y,allowedCardTypes:eC,nameKey:"creditCard",onCardSelect:e=>{e&&(null==e?void 0:e.id)!=="new"?ea(e):(ea(null),null==ew||ew.setValue("creditCard",{cardID:"new",name:eq,number:"",cvv:"",expires:""}))},ref:eV})}):(0,r.jsxs)(K,{className:u()(eo().payment,eo().section,{[eo().ready]:eD}),title:"Payment",focusable:!0,children:[!eD&&(0,r.jsx)(T.D,{}),(0,r.jsx)(N.CreditCardForm,{className:eo().form,nameKey:"creditCard",disableCardHolderName:eE,showSecureErrors:!1,allowedCardTypes:eC,onReady:()=>eO(!0),ref:eV})]}),(!es||"new"===eR)&&(0,r.jsx)(K,{className:eo().section,title:"Billing",focusable:!0,children:(0,r.jsx)(C.AddressForm,{nameKey:"billing",includeEmail:!el,includePhone:!el})}),(0,r.jsxs)(K,{className:u()(eo().important,eo().section),title:"Important Information",focusable:!0,children:[(0,r.jsxs)("ul",{className:eo().list,children:[(0,r.jsxs)("li",{children:["Check-in begins at ",null==eI?void 0:eI.checkIn," and check-out is at"," ",null==eI?void 0:eI.checkOut,"."]}),(null==U?void 0:U.isCancellable)&&!!(null==U?void 0:null===(W=U.cancellation)||void 0===W?void 0:null===(g=W.policies)||void 0===g?void 0:g.length)&&(0,r.jsx)("li",{children:U.cancellation.policies.reduce((e,l,o)=>{let{description:i}=l;return o>0&&(e+=" "),e+=i},"")})]}),(0,r.jsxs)("div",{className:eo().agree,children:[(0,r.jsx)(h.Qr,{control:ew.control,name:"initials",render:e=>{let{field:l,fieldState:{error:o}}=e;return(0,r.jsx)(P.Input,{...l,label:"Initials *",maxLength:2,error:null==o?void 0:o.message})}}),(0,r.jsx)("div",{children:(0,r.jsxs)("strong",{children:["I have read and agree to the"," ",(0,r.jsx)(D.Dialog,{trigger:(0,r.jsx)(O.Button,{text:!0,inline:!0,theme:"primary",children:"Booking Conditions"}),header:(0,r.jsx)("div",{children:"Booking Conditions"}),content:(0,r.jsx)("div",{className:u()("travel__checkout--conditions",eo().conditions),children:(0,r.jsx)("div",{className:eo().important,children:(0,r.jsx)("ul",{className:eo().list,children:null==U?void 0:null===(Z=U.policies)||void 0===Z?void 0:Z.map(e=>{let{title:l,paragraphs:o}=e;return(0,r.jsxs)("li",{children:[l&&(0,r.jsx)("h5",{className:eo().title,dangerouslySetInnerHTML:{__html:l}}),(0,r.jsx)("div",{className:eo().content,children:null==o?void 0:o.map((e,l)=>(0,r.jsx)("p",{dangerouslySetInnerHTML:{__html:e}},l))})]},l)})})})})}),","," ",(0,r.jsx)(V.LinkButton,{href:"/terms",theme:"primary",text:!0,inline:!0,external:!0,children:"Terms and Conditions"}),", and"," ",(0,r.jsx)(V.LinkButton,{href:"/privacy",text:!0,inline:!0,theme:"primary",external:!0,children:"Privacy Policy"}),"."]})})]})]}),(0,r.jsx)(K,{className:eo().section,children:(0,r.jsx)(O.Button,{type:"submit",size:"lg",children:"Complete Booking"})})]})})})})});async function ez(e){let{initials:l,billing:o,guests:i,creditCard:t}=e;ek(U),e_(null);try{var n,s,r;let{cardAlias:a,cvvAlias:c}=await (null===(n=eV.current)||void 0===n?void 0:n.submit(o.email,t.expires)),d={...t,alias:(null==er?void 0:er.alias)||a,cvvAlias:c};if(d){let n={billing:{...o,email:(null==el?void 0:el.email)||o.email},card:d,guests:i,initials:l,hotelID:null===(r=U.hotels[0])||void 0===r?void 0:null===(s=r.id)||void 0===s?void 0:s.toString(),isVIP:null==el?void 0:el.isVIP,isMember:!!el};el||ed(o.email,{email:o.email,name:d.name}),ec("checkout:book",{contractId:U.id,isMemberPrice:U.isMemberDeal,isCUGPrice:U.isVIPDeal}),console.log("checkout:feature:book"),console.log({input:{initials:l,billing:o,guests:i,creditCard:t},form:e,contract:U}),eg(n)}}catch(e){e_(e),eN()}}}},21441:function(e,l,o){"use strict";o.r(l),o.d(l,{CheckoutShellFeature:function(){return p},useCheckoutShell:function(){return x}});var i=o(57437),t=o(2265),n=o(99376),s=o(61770),r=o(86914),a=o(28752),c=o(46682),d=o(68029),u=o(78231),h=o(42235),v=o(33121);let m=(0,t.createContext)({openBook:()=>{},closeBook:e=>{}});function x(){return(0,t.useContext)(m)}function p(e){var l,o,x;let{children:p}=e,g=(0,n.useRouter)(),f=(0,n.useParams)(),_=(0,n.usePathname)(),j=(null==f?void 0:f.bookingID)||"",b=(0,t.useRef)({}),[y,k]=(0,t.useState)(null),[N,C]=(0,t.useState)(!1),{page:w}=(0,v.useAnalytics)(),E=(0,t.useRef)(_),[,S]=(0,s.useCookie)(h.X),[{checkoutError:F,...P},{active:[q],initialSession:I,isCheckingOut:T,...D},{findBooking:O}]=(0,c.useCheckoutV2)(null==y?void 0:y.id),[V,B]=(0,t.useState)(!!I),R=(0,t.useRef)(null);return(0,t.useEffect)(()=>{E.current=_},[_]),(0,t.useEffect)(()=>{A(P)},[null==P?void 0:P.isCheckedOut]),(0,t.useEffect)(()=>{if(F){if(console.log("CHECKOUT_ERROR_FOUND"," :: REFRESH CONTRACT",F),0>((null==_?void 0:_.indexOf("cart"))||0)){var e,l,o,i;let t=P.contract?"?hotel-id=".concat(null==P?void 0:null===(o=P.contract)||void 0===o?void 0:null===(l=o.hotels)||void 0===l?void 0:null===(e=l[0])||void 0===e?void 0:e.id).concat((0,u.n_)(P.contract),"&session=").concat(P.id,"&book-error"):"?book-error";g.push("/cart/checkout/".concat(null==P?void 0:null===(i=P.contract)||void 0===i?void 0:i.id).concat(t))}else H();g.refresh()}},[F]),(0,t.useEffect)(()=>{(null==I?void 0:I.statusID)&&(null==I?void 0:I.contract)&&(B(!0),L(I.contract),I.isCheckedOut&&A(I))},[null==I?void 0:I.id,null==I?void 0:I.isCheckedOut]),(0,i.jsxs)(m.Provider,{value:{openBook:L,closeBook:H},children:[p,(0,i.jsx)(a.GlobalLoadingFeature,{subtitle:"Booking your stay at",longWaitText:"It can take up to 3 minutes to confirm your booking with the hotel",title:null===(x=(null==q?void 0:q.contract)||y)||void 0===x?void 0:null===(o=x.hotels)||void 0===o?void 0:null===(l=o[0])||void 0===l?void 0:l.name,open:T||N,onOpenChange:C,onClosed:()=>k(null),children:(0,i.jsx)(d.W,{contract:(null==q?void 0:q.contract)||y})}),(0,i.jsx)(r.Confetti,{duration:1600,ref:R})]});function A(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1],(null==e?void 0:e.isCheckedOut)||(null==e?void 0:e.result)){let l=null==e?void 0:e.result,o=()=>{var e;S(null==l?void 0:null===(e=l.payment)||void 0===e?void 0:e.billing.email),g.push("/trips/".concat(null==l?void 0:l.bookingID)),setTimeout(()=>{var e;((null===(e=E.current)||void 0===e?void 0:e.indexOf("/trips/".concat(null==l?void 0:l.bookingID)))||-1)>0&&o()},3e3)};o()}}function L(e){e&&k(e),N||C(!0)}function H(e){if(N){if(D.completed[j]&&!b.current[j]){var l;b.current[j]=!0,null===(l=R.current)||void 0===l||l.start()}w("Booking Funnel","Booking Complete"),C(!1)}}}},44998:function(e,l,o){"use strict";o.r(l),o.d(l,{CheckoutSummaryFeature:function(){return c}});var i=o(57437),t=o(99376),n=o(9584),s=o(69679),r=o(61247),a=o(37724);function c(e){let{contractID:l,isLoadingPrices:o}=e,{account:c}=(0,n.useAccount)(),d=(0,t.useSearchParams)(),u=l||(null==d?void 0:d.get("hotel-bundles"))||(null==d?void 0:d.get("booking-bundles")),[{isLoading:h,contract:v,booking:m}]=(0,s.useHotelContract)(u?{id:u}:void 0);return h?(0,i.jsx)(r.G,{}):(0,i.jsx)(a.F,{contract:m||v,account:c,isLoadingPrices:o})}},68029:function(e,l,o){"use strict";o.d(l,{W:function(){return n}});var i=o(57437),t=o(93768);function n(e){let{className:l,classNames:o,contract:n}=e;return(0,i.jsx)(t.M,{className:null==o?void 0:o.meta,contract:n})}},20608:function(e,l,o){"use strict";o.r(l),o.d(l,{CheckoutConfirmationHero:function(){return x}});var i=o(57437),t=o(36760),n=o.n(t),s=o(29635),r=o(19185),a=o(69024),c=o(6432),d=o(19196),u=o(99280),h=o(95333),v=o(20011),m=o.n(v);function x(e){var l,o,t,v;let{className:x,innerClassName:p,contract:g,onClickArrow:f}=e,_=null==g?void 0:null===(l=g.hotels)||void 0===l?void 0:l[0],j=(0,s.Z)((0,r.Qr)(null==g?void 0:g.checkIn),new Date);return(0,i.jsx)("div",{className:n()(m().container,x),children:(0,i.jsxs)("div",{className:n()(m().inner,p),children:[!(null==g?void 0:g.isCancelled)&&j>-1&&(0,i.jsxs)("div",{className:m().status,children:[(0,i.jsxs)("strong",{className:m().type,children:["Your booking was ",null==g?void 0:g.status,"!"]})," ","Your check-in is on"," ",(0,i.jsx)("strong",{children:(0,i.jsx)(a.v,{date:null==g?void 0:g.checkIn})}),". See your full itinerary below"]}),(0,i.jsxs)("div",{className:n()(m().main),children:[(0,i.jsx)("h1",{className:m().countdown,children:(null==g?void 0:g.isCancelled)?"Cancelled Trip":(0,i.jsxs)(i.Fragment,{children:["Your trip to ",null==_?void 0:null===(o=_.address)||void 0===o?void 0:o.city," ",0===j?"is Today!":j>0?"is in ".concat(j," day").concat(1===j?"":"s"):(0,i.jsxs)(i.Fragment,{children:["on ",(0,i.jsx)(a.v,{date:null==g?void 0:g.checkIn})]})]})}),(0,i.jsxs)("div",{className:m().confirmation,children:[(0,i.jsxs)("div",{className:m().number,children:["Priceline trip #: ",null==g?void 0:g.bookingID]}),(0,i.jsxs)("div",{className:m().email,children:["Email sent to ",null==g?void 0:null===(t=g.payment)||void 0===t?void 0:t.billing.email]})]}),(0,i.jsxs)(c.Card,{className:m().card,children:[(0,i.jsx)(u.Z,{className:m().icon}),(0,i.jsxs)("div",{className:m().hotel,children:[(0,i.jsx)("div",{className:m().name,children:null==_?void 0:_.name}),(0,i.jsxs)("div",{className:m().dates,children:[(0,i.jsx)(a.v,{date:null==g?void 0:g.checkIn})," -"," ",(0,i.jsx)(a.v,{date:null==g?void 0:g.checkOut})," : Check-in: after"," ",null==_?void 0:_.checkIn]}),(0,i.jsxs)("div",{className:m().confirmation,children:["Confirmation #:"," ",null==g?void 0:null===(v=g.guests)||void 0===v?void 0:v.reduce((e,l,o)=>{let{confirmationCode:i}=l;return o>0&&(e+=", "),e+=i},"")]})]}),(0,i.jsx)("div",{className:m().actions,children:(0,i.jsx)(d.h,{icon:(0,i.jsx)(h.Z,{className:n()(m().proceed,m().icon)}),onClick:f})})]})]}),(0,i.jsx)("div",{className:m().actions})]})})}},16435:function(e,l,o){"use strict";o.d(l,{A:function(){return a}});var i=o(57437),t=o(36760),n=o.n(t),s=o(24002),r=o.n(s);function a(e){let{id:l,className:o,topClassName:t,topContentClassName:s,hero:a,children:c,sidebar:d,top:u,heroMinHeight:h,thin:v,stickyTop:m}=e;return(0,i.jsxs)("div",{id:l,className:n()(r().container,o,{[r().thin]:v,[r()["has-sidebar"]]:!!d,[r()["has-top"]]:!!u,[r()["sticky-top"]]:!!m}),children:[u&&(0,i.jsx)("div",{className:n()(r().top,t),children:(0,i.jsx)("div",{className:n()(r().content,s),children:u})}),d&&(0,i.jsx)("aside",{className:r().sidebar,children:(0,i.jsx)("div",{className:r().content,children:d})}),(0,i.jsx)("div",{className:r().content,children:c})]})}},48426:function(e,l,o){"use strict";o.r(l),o.d(l,{CheckoutProgress:function(){return c}});var i=o(57437),t=o(36760),n=o.n(t),s=o(887),r=o(30839),a=o.n(r);function c(e){let{className:l,steps:o=[{icon:1,title:"Choose Room"},{icon:2,title:"Your Details"},{icon:3,title:"Confirmation"}],active:t=1}=e;return(0,i.jsx)("ul",{className:n()(a().container,l),children:null==o?void 0:o.map((e,l)=>{let{icon:r,title:c,body:d}=e;return(0,i.jsxs)("li",{className:n()(a().item,{[a().active]:"number"==typeof t&&l<=t,[a().inactive]:"number"==typeof t&&l>t,[a()["inactive-next"]]:"number"==typeof t&&l+1>t}),children:[(0,i.jsx)("div",{className:a().icon,children:l<t?(0,i.jsx)(s.Z,{width:"14"}):r}),(0,i.jsx)("div",{className:a().title,children:c}),(0,i.jsx)("div",{className:a().body,children:d}),l<o.length-1&&(0,i.jsx)("div",{className:a().arrow})]},l)})})}},61247:function(e,l,o){"use strict";o.d(l,{G:function(){return d}});var i=o(57437),t=o(36760),n=o.n(t),s=o(6432),r=o(13192),a=o(8668),c=o.n(a);function d(e){let{className:l}=e;return(0,i.jsxs)(s.Card,{className:n()(c().container,l),contentClassName:c().inner,elevation:1,children:[(0,i.jsx)("div",{className:c().title,children:(0,i.jsx)(r.q,{width:"60%",height:"24px",relative:!0})}),(0,i.jsxs)("div",{className:c().breakdown,children:[(0,i.jsxs)("div",{className:n()(c().row,c()["price-per-night"]),children:[(0,i.jsx)(r.q,{width:"100px",height:"19px",relative:!0}),(0,i.jsx)(r.q,{width:"36px",height:"19px",relative:!0})]}),(0,i.jsx)("div",{className:n()(c().row),children:(0,i.jsx)(r.q,{width:"32px",height:"19px",relative:!0})}),(0,i.jsxs)("div",{className:n()(c().row,c().nights),children:[(0,i.jsx)(r.q,{width:"122px",height:"19px",relative:!0}),(0,i.jsx)(r.q,{width:"32px",height:"19px",relative:!0})]}),(0,i.jsxs)("div",{className:n()(c().row,c().taxes),children:[(0,i.jsx)(r.q,{width:"100px",height:"19px",relative:!0}),(0,i.jsx)(r.q,{width:"32px",height:"19px",relative:!0})]})]}),(0,i.jsxs)("div",{className:n()(c().row,c()["pay-today"]),children:[(0,i.jsx)(r.q,{width:"122px",height:"19px",relative:!0}),(0,i.jsx)(r.q,{width:"32px",height:"19px",relative:!0})]}),(0,i.jsxs)("div",{className:n()(c().row,c().service),children:[(0,i.jsx)(r.q,{width:"116px",height:"19px",relative:!0}),(0,i.jsx)(r.q,{width:"32px",height:"19px",relative:!0})]}),(0,i.jsxs)("div",{className:n()(c().row,c().total),children:[(0,i.jsx)(r.q,{width:"88px",height:"19px",relative:!0}),(0,i.jsx)(r.q,{width:"32px",height:"19px",relative:!0})]})]})}},37724:function(e,l,o){"use strict";o.d(l,{F:function(){return m}});var i=o(57437),t=o(36760),n=o.n(t),s=o(6432),r=o(13192),a=o(17227),c=o(27267),d=o(93232),u=o(38548),h=o(8668),v=o.n(h);function m(e){var l,o,t,h,m,p,g,f,_,j,b,y,k,N,C,w,E,S,F,P,q;let{className:I,contentClassName:T,title:D,account:O,contract:V,isLoadingPrices:B}=e,R=null==V?void 0:V.price,A=(null==R?void 0:null===(t=R.mandatoryFees)||void 0===t?void 0:null===(o=t.prepaid)||void 0===o?void 0:null===(l=o.displayTotal)||void 0===l?void 0:l.value)||0,L=((null==R?void 0:null===(h=R.displaySubtotal)||void 0===h?void 0:h.value)||0)+A,H=(null==R?void 0:null===(m=R.displayOriginal)||void 0===m?void 0:m.value)||0;null==R||R.displaySavings;let z=!!(null==R?void 0:null===(f=R.mandatoryFees)||void 0===f?void 0:null===(g=f.prepaid)||void 0===g?void 0:null===(p=g.fees)||void 0===p?void 0:p.length),G=!!(null==R?void 0:null===(b=R.mandatoryFees)||void 0===b?void 0:null===(j=b.postpaid)||void 0===j?void 0:null===(_=j.fees)||void 0===_?void 0:_.length),M=null==R?void 0:null===(N=R.mandatoryFees)||void 0===N?void 0:null===(k=N.postpaid)||void 0===k?void 0:null===(y=k.displayTotal)||void 0===y?void 0:y.value,W=null==R?void 0:null===(C=R.displayTotal)||void 0===C?void 0:C.currency,Z=null==W?void 0:null===(w=W.type)||void 0===w?void 0:w.toUpperCase(),U=null==V?void 0:V.isPayLater,K=(null==R?void 0:R.isDiscount)&&H>0;return(0,i.jsxs)(s.Card,{className:n()(v().container,I,{[v()["has-original"]]:K}),contentClassName:n()(v().inner,T),elevation:1,children:[(0,i.jsx)("div",{className:n()(v().title),children:D||"Summary of Charges"}),(0,i.jsxs)("div",{className:n()(v().group,v().inner),children:[!U&&G&&z&&(0,i.jsx)("div",{className:n()(v().subtitle),children:(0,i.jsx)("div",{className:v().text,children:"Due Now"})}),(0,i.jsxs)("div",{className:n()(v().breakdown),children:[(0,i.jsxs)("div",{className:n()(v().row,v()["price-per-night"]),children:[(0,i.jsx)("div",{className:v().name,children:"Price per Night"}),(0,i.jsx)("div",{className:v().prices,children:B?(0,i.jsx)(r.q,{width:"72px",height:"19px",relative:!0}):(0,i.jsxs)(i.Fragment,{children:[K&&(0,i.jsx)(a.t,{className:v().original,value:H,symbol:null==W?void 0:W.symbol,round:"none",fixed:!0,strike:!0}),(0,i.jsx)(a.t,{value:null==R?void 0:null===(E=R.display)||void 0===E?void 0:E.value,symbol:null==W?void 0:W.symbol,round:"none",fixed:!0})]})})]}),(0,i.jsx)("div",{className:n()(v().row,v().rooms),children:(0,i.jsxs)("div",{children:[null==V?void 0:V.roomCount," Room",(null==V?void 0:V.roomCount)!==1?"s":""]})}),(0,i.jsx)("div",{className:n()(v().row,v().nights),children:(0,i.jsxs)("div",{children:[null==V?void 0:V.nightsCount," Night",(null==V?void 0:V.nightsCount)!==1?"s":""]})})]}),(0,i.jsxs)("div",{className:n()(v().row,v().subtotal),children:[(0,i.jsx)("div",{className:v().name,children:"Subtotal"}),B?(0,i.jsx)(r.q,{width:"72px",height:"19px",relative:!0}):(0,i.jsx)(a.t,{value:null==R?void 0:null===(S=R.displaySubtotal)||void 0===S?void 0:S.value,symbol:null==W?void 0:W.symbol,round:"none",fixed:!0})]}),(0,i.jsx)(x,{fees:null==R?void 0:null===(F=R.mandatoryFees)||void 0===F?void 0:F.prepaid,isLoadingPrices:B}),(0,i.jsxs)("div",{className:n()(v().row,v()["pay-today"]),children:[(0,i.jsx)("div",{children:"Due Now"}),B?(0,i.jsx)(r.q,{width:"72px",height:"19px",relative:!0}):(0,i.jsxs)("div",{children:[(0,i.jsx)(a.t,{value:U?A:L,symbol:null==W?void 0:W.symbol,round:"none",fixed:!0})," ",Z]})]})]}),G&&(0,i.jsxs)("div",{className:n()(v().group,v().inner),children:[(0,i.jsx)("div",{className:n()(v().subtitle),children:(0,i.jsx)("div",{className:v().text,children:"Due at Property"})}),(0,i.jsx)(x,{fees:null==R?void 0:null===(P=R.mandatoryFees)||void 0===P?void 0:P.postpaid,isLoadingPrices:B}),(0,i.jsxs)("div",{className:n()(v().row,v().total,v().post),children:[(0,i.jsx)("div",{children:"Due at Property"}),B?(0,i.jsx)(r.q,{width:"72px",height:"19px",relative:!0}):(0,i.jsxs)("div",{children:[(0,i.jsx)(a.t,{value:M,symbol:null==W?void 0:W.symbol,round:"none",fixed:!0})," ",Z]})]})]}),(0,i.jsxs)("div",{className:n()(v().row,v().total),children:[(0,i.jsx)("div",{className:v().name,children:"Total Cost"}),B?(0,i.jsx)(r.q,{width:"72px",height:"19px",relative:!0}):(0,i.jsxs)("div",{children:[(0,i.jsx)(a.t,{value:null==R?void 0:null===(q=R.displayTotalWithTaxesFees)||void 0===q?void 0:q.value,symbol:null==W?void 0:W.symbol,round:"none",fixed:!0})," ",Z]})]}),(0,i.jsx)("div",{className:n()(v().row,v().important),children:(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:v().text,children:"Important Information About"})," ",(0,i.jsx)(c.Dialog,{header:(0,i.jsx)("div",{children:"Taxes and Fees"}),trigger:(0,i.jsx)(d.Button,{text:!0,inline:!0,children:"Taxes and Fees"}),content:(0,i.jsx)("div",{className:n()(v().taxes,v().content),children:(0,i.jsx)(u.O,{blocks:null==V?void 0:V.taxesAndFees})})})]})})]})}function x(e){var l;let{className:o,fees:t,isLoadingPrices:s}=e,{taxes:c,propertyFees:d}=(null==t?void 0:null===(l=t.fees)||void 0===l?void 0:l.reduce((e,l)=>{var o;return(null===(o=l.type)||void 0===o?void 0:o.match(/tax/gi))?e.taxes.push(l):e.propertyFees.push(l),e},{taxes:[],propertyFees:[]}))||{taxes:[],propertyFees:[]},u=d.length>0,h=(e,l)=>{var o,t,c;let d=(null==l?void 0:l.reduce((e,l)=>{var o;return e+((null==l?void 0:null===(o=l.displayTotal)||void 0===o?void 0:o.value)||0)},0))||0,u=null==l?void 0:l.filter(e=>"Tax"!==e.name);return(null==l?void 0:l.length)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:n()(v().row),children:[(0,i.jsx)("div",{className:v().name,children:e}),s?(0,i.jsx)(r.q,{width:"72px",height:"19px",relative:!0}):(0,i.jsx)(a.t,{className:v().price,value:d,symbol:null===(c=l[0])||void 0===c?void 0:null===(t=c.displayTotal)||void 0===t?void 0:null===(o=t.currency)||void 0===o?void 0:o.symbol,round:"none",fixed:!0})]}),!!(null==u?void 0:u.length)&&(0,i.jsx)("div",{className:n()(v().breakdown),children:u.map(e=>{var l,o,t;return(0,i.jsxs)("div",{className:n()(v().row,v().fee),children:[(0,i.jsx)("div",{className:v().name,children:e.name}),s?(0,i.jsx)(r.q,{width:"72px",height:"19px",relative:!0}):(0,i.jsx)(a.t,{className:v().price,value:null==e?void 0:null===(l=e.displayTotal)||void 0===l?void 0:l.value,symbol:null==e?void 0:null===(t=e.displayTotal)||void 0===t?void 0:null===(o=t.currency)||void 0===o?void 0:o.symbol,round:"none",fixed:!0})]},"".concat(e.type).concat(e.name))})})]}):null};return(0,i.jsxs)("div",{className:n()(v().breakdown,o),children:[h("Property Fees",d),h("Taxes".concat(u?"":" & Fees"),c)]})}},28752:function(e,l,o){"use strict";o.r(l),o.d(l,{GlobalLoadingFeature:function(){return c}});var i=o(57437),t=o(2265),n=o(68259),s=o(8646),r=o(57676),a=o.n(r);function c(e){let{open:l,onOpenChange:o,...r}=e,[c,d]=(0,t.useState)(l);return(0,t.useEffect)(()=>{l!==c&&d(l)},[l]),(0,i.jsx)(n.Overlay,{...r,open:l,content:(0,i.jsx)(s.m,{...r,loadingClassName:a().loader,contentClassName:a().content,titleClassName:a().title,subtitleClassName:a().subtitle,bodyClassName:a().body,waitClassName:a().wait}),className:a().overlay,classNames:{content:a().wrapper,enter:a()["global-loading-enter"],enterActive:a()["global-loading-enter-active"],exit:a()["global-loading-exit"],exitActive:a()["global-loading-exit-active"],scrim:a().scrim},timeout:2e3,canClose:!1,trap:!1,resetScrollOnOpened:!0,onOpenChange:e=>{null==d||d(e),null==o||o(e)}})}},42235:function(e,l,o){"use strict";o.d(l,{X:function(){return i}});let i=(0,o(25987).lm)({id:"trip-form",priority:1,category:"required",description:"When you do not have an account, or are logged out, the Trip Form cookie allows you to securely lookup a trip paired with your email address."})},96196:function(){},29363:function(e){e.exports={checkout:"checkout-feature_checkout__ULtYb",form:"checkout-feature_form__p7_dV",intro:"checkout-feature_intro__B1F7w","has-error":"checkout-feature_has-error__1bZGa",top:"checkout-feature_top__G2_np",content:"checkout-feature_content__mPWJh",error:"checkout-feature_error__pEWlg",sections:"checkout-feature_sections__OkDKT",payment:"checkout-feature_payment___Hmqz",ready:"checkout-feature_ready__NR4IS",important:"checkout-feature_important__ulxRb",list:"checkout-feature_list__hLF95",section:"checkout-feature_section__rKtwJ",conditions:"checkout-feature_conditions__fPDr6",title:"checkout-feature_title__LtTP0",acceptance:"checkout-feature_acceptance__fDqvt",agree:"checkout-feature_agree__R7GjF",email:"checkout-feature_email__5J0y9"}},20011:function(e){e.exports={container:"checkout-confirmation-hero_container__gG66U",inner:"checkout-confirmation-hero_inner__7pVuh",status:"checkout-confirmation-hero_status__Pwcjx",countdown:"checkout-confirmation-hero_countdown__cVo5f",main:"checkout-confirmation-hero_main__NTPO0",confirmation:"checkout-confirmation-hero_confirmation__JstkD",card:"checkout-confirmation-hero_card__8Hj7o",icon:"checkout-confirmation-hero_icon__EbW4z",hotel:"checkout-confirmation-hero_hotel__BKNBL",name:"checkout-confirmation-hero_name__V_cCb",actions:"checkout-confirmation-hero_actions__cDP_N",proceed:"checkout-confirmation-hero_proceed__zvLaP","checkout-layout":"checkout-confirmation-hero_checkout-layout__Dk73m"}},24002:function(e){e.exports={container:"checkout-layout_container__EpUEA",thin:"checkout-layout_thin__Hpf2C",sidebar:"checkout-layout_sidebar__c5NkT",content:"checkout-layout_content__eESsa","sticky-top":"checkout-layout_sticky-top__3QBqp",top:"checkout-layout_top__yFL5Z","has-sidebar":"checkout-layout_has-sidebar__Tk9Si","has-top":"checkout-layout_has-top__ICoBr"}},30839:function(e){e.exports={container:"checkout-progress_container__7MPWB",item:"checkout-progress_item__FVs6U",active:"checkout-progress_active__bHAIV",arrow:"checkout-progress_arrow__QFtJv",icon:"checkout-progress_icon__YCPUe",inactive:"checkout-progress_inactive__zGKd_","inactive-next":"checkout-progress_inactive-next__N63y0",title:"checkout-progress_title__O3W42",body:"checkout-progress_body__o1n_I"}},93761:function(e){e.exports={container:"checkout-section_container__dc7Vh",disclaimer:"checkout-section_disclaimer__eatye",title:"checkout-section_title__u_arv"}},8668:function(e){e.exports={inner:"checkout-summary_inner__pkVQN",title:"checkout-summary_title__DtjjV",row:"checkout-summary_row__6CcN_",breakdown:"checkout-summary_breakdown__XzVz7",group:"checkout-summary_group__7pEmM",subtitle:"checkout-summary_subtitle__NCs8Z",text:"checkout-summary_text__FdL70",fee:"checkout-summary_fee__VSVXu",rooms:"checkout-summary_rooms__nGUgc",nights:"checkout-summary_nights__k0Ins",total:"checkout-summary_total__XjZzr","pay-today":"checkout-summary_pay-today__h7tmi",post:"checkout-summary_post__UTze_",important:"checkout-summary_important__C5Wde",taxes:"checkout-summary_taxes__RNYFE",content:"checkout-summary_content__BTQW5",discount:"checkout-summary_discount__zRDE2",prices:"checkout-summary_prices__w040A","has-original":"checkout-summary_has-original__PiNKx","price-per-night":"checkout-summary_price-per-night__nlGq_",name:"checkout-summary_name__VX_WB",original:"checkout-summary_original__0xYRR"}},57676:function(e){e.exports={overlay:"global-loading-feature_overlay__wXqIu",scrim:"global-loading-feature_scrim__Qj4wk",loader:"global-loading-feature_loader__hnR39","global-loading-enter":"global-loading-feature_global-loading-enter__qDaZ4","global-loading-enter-active":"global-loading-feature_global-loading-enter-active__z_pp5","global-loading-exit":"global-loading-feature_global-loading-exit__G0eU7","global-loading-exit-active":"global-loading-feature_global-loading-exit-active___9Vgm",subtitle:"global-loading-feature_subtitle__afNrr",title:"global-loading-feature_title__sGC_j",body:"global-loading-feature_body__omAds",wait:"global-loading-feature_wait__PwtDN"}}}]);