1import{a0 as da,d as $e,r as c,c as S,w as te,N as K,u as t,a9 as at,G as H,C as e,E as a,z as i,V as Ae,F as W,A as s,O as d,S as w,f as y,L as Be,ap as an,ai as sn,aq as ln,D as ee,K as jt,a4 as bs,I as gt,ao as At,Q as ae,P as ws,B as nn,U as rn,o as cn,b as un,W as Pt,aa as ss,a1 as dn,i as vn,ar as na,Z as Ht,a3 as ls,as as mn,at as pn,J as hn,n as _n}from"./vendor-primevue-CeEACqX_.js";import{t as va,T as ma,aR as Cs,ai as J,v as Ve,I as we,cu as Ds,cI as ia,H as yn,cJ as fn,aP as ns,h as x,cK as kn,br as gn,cL as bn,cM as Wt,cN as ua,ak as wn,bi as is,bt as Cn,e as be,u as Dn,n as q,bs as Nn,cO as Pn,cP as rs,cQ as An,ag as $n,cR as Vn,cS as Rn,cT as In,au as Fn,bf as po,cn as cs,cU as xn,cV as Sn,cW as En,aH as Tn,aI as Ln,aJ as Un,bG as us,cX as On,p as ra,cY as Mn,cZ as ds,c_ as vs,c1 as Bn,c$ as ms,d0 as ps,d1 as qn,m as Hn,d2 as Gn,d3 as jn,d4 as Wn,d5 as zn,d6 as Yn,bw as Qn,o as Jn,g as Kn,d7 as hs}from"./main-kBzK4eIG.js";import{p as Zn,C as _s,c as Xn}from"./CountryPhone-BKaxGDGV.js";import{a as ei}from"./PaymentSection-0Oq7-1ML.js";import{t as je,m as We,e as ca,C as ze}from"./checkoutAnalytics-CoWDvSL4.js";import{u as ti}from"./useCheckoutAbandonment-D0dGxm5W.js";import{logGrabEnvironmentDetails as oi,shouldUseGrab as ai,isGrabEnvironment as si,setupGrabPayment as li}from"./grab-payment-C4PWhscV.js";import{a as ni,g as ii,b as ri}from"./rateLabels-BuXyiow2.js";import{P as ci}from"./PerksSection-C3ODrFYJ.js";import{D as Ce}from"./vendor-luxon-D-syak89.js";import{R as ui}from"./RoomDetails-CuAR53FX.js";import{u as Re}from"./vendor-i18n-G4dYfk6F.js";import{E as Gt}from"./Error-AK8Dy47O.js";import{C as Ns}from"./CancellationPolicies-BQNgZYas.js";import{s as Ps}from"./urgencyMessageUtils-BpdTDxvy.js";import{u as di,L as ys}from"./LoyaltyLabelBanner-b4_DrhEs.js";import"./vendor-fontawesome-CHTXNQM2.js";import"./vendor-pako-DwGzBETv.js";import"./vendor-posthog-B2YXpdD_.js";import"./vendor-query-B7KhvNMU.js";import"./OtpDialog-DP9fFaL4.js";import"./payment-DgssjqPu.js";import"./index.esm-D3z_6957.js";import"./ImageWithFallback-raoQ1sx0.js";import"./bunny-BFgfExvG.js";const fs="/assets/no-rates-available-ChFlLN9X.jpg";function vi(m){const n=va(),v=ma(),b=da();return{handleGrabPayment:async _=>{const{paymentProvider:V,paymentMethod:g}=m.getPaymentDetails(),C={prebookId:m.prebookId.value,firstName:m.firstName.value,lastName:m.lastName.value,email:m.email.value,phone:m.phoneDetails.value||"",bookingData:m.formBookingInputData(g),paymentProvider:V,paymentMethod:g};await li(C,{router:n,route:v,toast:b,getPaymentProviderIntent:Cs,onLoadingChange:N=>{m.isLoading.value=N}})},isGrabEnvironment:si,shouldUseGrab:ai,logGrabEnvironmentDetails:oi}}function mi(m){if(!m?.trim())return!1;let n;try{n=m.normalize("NFKC").trim()}catch{n=m.trim()}return n?!!(/https?:\/\/\S+/i.test(n)||/\bwww\.\S+/i.test(n)||/\b[^\s@]+@[^\s@]+\.[^\s@]+\b/.test(n)||/[<>]/.test(n)||/\b[a-z0-9][-a-z0-9]*(?:\.[a-z0-9][-a-z0-9]*)+\.(?:com|net|org|io|co|travel|app|link|xyz|info|ru|cn)(?:\/[^\s]*)?\b/gi.test(n)):!1}const pi={class:"p-taxesDetails__content mt-2"},hi={class:"p-taxesDetails__content__list"},_i={class:"p-taxesDetails__content__list--item__name"},yi={class:"p-taxesDetails__content__list--item__value"},fi=$e({__name:"TaxesDetails",props:{showOverlay:{type:Boolean},taxesList:{},supplierSettings:{}},emits:["close"],setup(m,{emit:n}){const{t:v}=Re(),b=m,k=n,_=c(b.showOverlay),V=C=>b.supplierSettings?.translateTaxDescription?v(`checkout.${C}`,C?.replace(/_/g," ").replace(/\b\w/g,A=>A.toUpperCase())??""):C,g=S(()=>b.taxesList.filter(C=>!b.supplierSettings?.hiddenFees?.includes(C.description??"")));return te(()=>_.value,C=>{C?_.value=!0:(_.value=!1,k("close"))}),(C,A)=>(s(),K(t(at),{visible:_.value,"onUpdate:visible":A[0]||(A[0]=N=>_.value=N),class:"p-taxesDetails--dialog",header:t(v)("booking.details.taxes.label"),modal:!0,dismissableMask:C.showOverlay},{default:H(()=>[e("div",pi,[e("h3",null,a(t(v)("booking.details.taxes.information")),1),e("div",hi,[(s(!0),i(W,null,Ae(g.value,N=>(s(),i("div",{class:"p-taxesDetails__content__list--item",key:N.description},[e("p",_i,a(V(N.description??"")),1),e("p",yi,a(t(J)(N.amount,{currency:N.currency,showDecimals:!0})),1)]))),128))])])]),_:1},8,["visible","header","dismissableMask"]))}}),ki=Ve(fi,[["__scopeId","data-v-24bb1848"],["__file","TaxesDetails.vue"]]),gi={class:"p-cancellationDetail
1s__content"},bi={class:"p-cancellationDetails__content__list"},wi={key:0,class:"p-cancellationDetails__content__list--item"},Ci={class:"p-cancellationDetails__content__list--item--date"},Di={class:"p-cancellationDetails__content__list--item--date-day free-cancellation"},Ni={class:"p-cancellationDetails__content__list--item--date-time free-cancellation"},Pi={class:"p-cancellationDetails__content__list--item--amount"},Ai={class:"p-cancellationDetails__content__list--item--amount-percentage free-cancellation"},$i={class:"p-cancellationDetails__content__list--item--amount-detail free-cancellation"},Vi={class:"p-cancellationDetails__content__list--item--date"},Ri={class:"p-cancellationDetails__content__list--item--date-day"},Ii={class:"p-cancellationDetails__content__list--item--date-time"},Fi={class:"p-cancellationDetails__content__list--item--amount"},xi=$e({__name:"CancellationDetails",props:{showOverlay:{type:Boolean},details:{},amount:{},currency:{}},emits:["close"],setup(m,{emit:n}){const{t:v}=Re(),b=m,k=n,_=c(b.showOverlay),V=S(()=>({day:Ce.fromFormat(b.details.policies[0].cancelTimeFrame.end,"EEE, dd LLL, yyyy hh:mm a").toFormat("LLL dd, yyyy"),time:Ce.fromFormat(b.details.policies[0].cancelTimeFrame.end,"EEE, dd LLL, yyyy hh:mm a").toFormat("hh:mm a")})),g=S(()=>b.details.policies.slice(1).map(C=>{let A=isNaN(Ce.fromFormat(C.cancelTimeFrame.end,"EEE, dd LLL, yyyy hh:mm a").day)?Ce.fromFormat(C.cancelTimeFrame.end,"EEE, dd LLL, yyyy "):Ce.fromFormat(C.cancelTimeFrame.end,"EEE, dd LLL, yyyy hh:mm a");return{date:{day:A.toFormat("LLL dd, yyyy"),time:A.toFormat("hh:mm a")},amount:C.cancelTimeFrame.amount,type:C.cancelTimeFrame.type}}));return te(()=>_.value,C=>{C?_.value=!0:(_.value=!1,k("close"))}),(C,A)=>(s(),K(t(at),{visible:_.value,"onUpdate:visible":A[0]||(A[0]=N=>_.value=N),class:"p-cancellationDetails--dialog",header:t(v)("booking.details.cancellation.label"),modal:!0,dismissableMask:C.showOverlay},{default:H(()=>[e("div",gi,[e("h3",null,a(t(v)("booking.details.cancellation.subtitle")),1),e("div",bi,[C.details.hasFreeCancellation?(s(),i("div",wi,[e("div",Ci,[e("p",Di,a(t(v)("booking.details.cancellation.beforeDate",{date:V.value.day})),1),e("p",Ni,a(V.value.time),1)]),e("div",Pi,[e("p",Ai,a(t(v)("booking.details.cancellation.RFN")),1),e("p",$i,a(t(v)("booking.details.cancellation.fullRefund")),1)])])):d("",!0),(s(!0),i(W,null,Ae(g.value,N=>(s(),i("div",{class:"p-cancellationDetails__content__list--item",key:N.amount},[e("div",Vi,[e("p",Ri,a(t(v)("booking.details.cancellation.afterDate",{date:N.date.day})),1),e("p",Ii,a(N.date.time),1)]),e("div",Fi,[N.type==="percentage"?(s(),i(W,{key:0},[w(a(t(v)("booking.details.cancellation.refundPercentage",{percent:100-N.amount})),1)],64)):(s(),i(W,{key:1},[w(a(N.amount)+" "+a(C.currency),1)],64))])]))),128))])])]),_:1},8,["visible","header","dismissableMask"]))}}),Si=Ve(xi,[["__scopeId","data-v-45bafe7b"],["__file","CancellationDetails.vue"]]),Ei={class:"p-checkoutWarning--dialog__content"},Ti={class:"p-checkoutWarning--dialog__content-icon"},Li={class:"p-checkoutWarning--dialog__content-body"},Ui={class:"p-checkoutWarning--dialog__content-buttons"},Oi=$e({__name:"CheckoutWarningDialog",props:{showWarning:{type:Boolean},hotelId:{}}
1,emits:["close"],setup(m,{emit:n}){const v=m,b=ma(),k=va(),{t:_}=Re(),V=n,g=c(v.showWarning);te(()=>g.value,A=>{A?g.value=!0:(g.value=!1,V("close"))});const C=()=>{k.push({name:"hotel",params:{id:v.hotelId},query:{checkin:b.query.checkin,checkout:b.query.checkout,rooms:b.query.rooms,adults:b.query.adults,occupancies:b.query.occupancies,children:b.query.children,scrollTo:"rooms"}})};return(A,N)=>(s(),K(t(at),{visible:g.value,"onUpdate:visible":N[1]||(N[1]=z=>g.value=z),modal:"",class:"p-checkoutWarning--dialog"},{default:H(()=>[e("div",Ei,[e("div",Ti,[y(we,{name:"warning"})]),e("div",Li,[e("h3",null,a(t(_)("checkoutWarningDialog.title")),1),e("p",null,a(t(_)("checkoutWarningDialog.message")),1)]),e("div",Ui,[y(t(Be),{class:"leave__btn",label:t(_)("checkoutWarningDialog.leaveButton"),onClick:C},null,8,["label"]),y(t(Be),{class:"continue__btn",label:t(_)("checkoutWarningDialog.continueButton"),onClick:N[0]||(N[0]=z=>g.value=!1)},null,8,["label"])])])]),_:1},8,["visible"]))}}),Mi=Ve(Oi,[["__scopeId","data-v-f9ad9fe2"],["__file","CheckoutWarningDialog.vue"]]),Bi={class:"p-booking__specialRequests__header"},qi={class:"p-booking__specialRequests__header__title"},Hi={class:"p-booking__specialRequests__header__subtitle"},Gi={class:"p-booking__specialRequests__content"},ji={for:"content"},Wi=$e({__name:"CustomAccordion",emits:["update"],setup(m,{emit:n}){const{t:v}=Re(),b=c(""),k=n;return te(b,_=>{k("update",_)}),(_,V)=>(s(),K(t(an),{expandIcon:"pi pi-plus",collapseIcon:"pi pi-minus"},{default:H(()=>[y(t(ln),null,{header:H(()=>[e("span",Bi,[e("h3",qi,a(t(v)("booking.form.specialRequest.label")),1),e("p",Hi,a(t(v)("booking.form.specialRequest.subtitle")),1)])]),default:H(()=>[e("div",Gi,[e("label",ji,a(t(v)("booking.form.specialRequest.input.label")),1),y(t(sn),{modelValue:b.value,"onUpdate:modelValue":V[0]||(V[0]=g=>b.value=g),placeholder:t(v)("booking.form.specialRequest.input.placeholder"),id:"content"},null,8,["modelValue","placeholder"])])]),_:1})]),_:1}))}}),zi=Ve(Wi,[["__scopeId","data-v-2fc354e1"],["__file","CustomAccordion.vue"]]),ho="/uber.png",Yi={key:0,class:"option-container radius_md"},Qi={class:"flex align-items-center gap-2"},Ji={class:"uber-text"},Ki={class:"uber-part_select"},Zi={key:0},Xi={class:"uber-part_select_text"},er={key:1,class:"uber-part_select_text"},tr={key:1,class:"option-container"},or={class:"flex align-items-center gap-2"},ar={class:"uber-text"},sr={class:"drawer-vouchers"},lr={class:"drawer-content"},nr={class:"drawer-header"},ir={class:"drawer-header-title"},rr={key:0,class:"drawer-header-description"},cr={class:"drawer-vouchers-items"},ur={key:0,class:"p-3 text-center"},dr={class:"drawer_vouchers"},vr=["onClick"],mr=["for"],pr={class:"drawer-vouchers-item-content"},hr={class:"drawer-vouchers-item-details"},_r={class:"drawer-vouchers-item-amount"},yr=["id","value","checked"],fr={class:"drawer-footer"},kr={key:0},gr={key:1},br={class:"old-voucher"},wr={key:0,class:"uber-selectors"},Cr={class:"option-label"},Dr={class:"option-container"},Nr={class:"flex justify-content-between gap-2"},Pr={class:"uber-text"},Ar={key:1,class:"input-group select-group",style:{display:"18px"}},$r={class:"input-wrapper select-amount"},Vr={class:"select-inputs"},Rr={key:0,class:"flex align-items-center"},Ir={class:"mr-2",style:{width:"18px"}},Fr={key:1},xr={class:"flex align-items-center"},Sr={class:"mr-2",style:{width:"18px","font-weight":"600",color:"var(--theme-gray-500)"}},Er={key:0},Tr={key:1},Lr={key:2,class:"uber-success-section"},Ur={class:"uber-success-section_content"},Or={class:"left-part"},Mr={class:"right-part"},Br=$e({__name:"UberVoucher",props:{showUberDrawer:{type:Boolean,default:!1},uberSteps:{type:String,default:"step-1"},selectedUberOption:{type:Object,default:null},uberVoucherLoading:{type:Boolean,default:!1},uberOptions:{type:Array,default:()=>[]},selectedUberOptionAmount:{type:Number,default:0}},emits:["update:showUberDrawer","remove-uber","apply-uber","change-uber","reset-uber","validate-uber","select-option"],setup(m,{emit:n}){const v=m,b=n,{t:k}=Re(),_=c(v.showUberDrawer),V=c(v.selectedUberOption),g=c(v.selectedUberOptionAmount),C=()=>{b("update:showUberDrawer",!_.value)},A=T=>{T&&T.stopPropagation(),b("remove-uber")},N=()=>{b("apply-uber")},z=()=>{b("change-uber")},L=()=>{b("reset-uber")},R=()=>{b("validate-uber")},Z=T=>{b("select-option",T)};return te(()=>v.selectedUberOption,T=>{V.value=T}),te(()=>v.selectedUberOptionAmount,T=>{g.value=T}),te(()=>v.showUberDrawer,T=>{_.value!==T&&(_.value=T)}),te(_,T=>{v.showUberDrawer!==T&&b("update:showUberDrawer",T)}),te(()=>v.uberOptions,T=>{},{immediate:!0}),te(g,T=>
1{if(T!==v.selectedUberOptionAmount&&T){const I=v.uberOptions.find(M=>M.usd_amount===T);I&&b("select-option",I)}}),(T,I)=>(s(),i("div",null,[e("div",{class:ee(["uber-selector",{"cursor-pointer":m.uberSteps!=="step-3",active:_.value,inactive:m.uberSteps==="step-3"}]),onClick:I[1]||(I[1]=M=>m.uberSteps!=="step-3"&&C())},[m.uberSteps!=="step-3"?(s(),i("div",Yi,[e("div",Qi,[I[5]||(I[5]=e("div",{class:"uber-icon"},[e("img",{src:ho,alt:"uber-voucher"})],-1)),e("div",Ji,a(t(k)("checkout.uberVoucher")),1)]),e("div",Ki,[m.uberSteps==="step-3"?(s(),i("div",Zi,[e("span",Xi,a(t(k)("checkout.edit")),1)])):(s(),i("div",er,a(t(k)("checkout.select")),1)),I[6]||(I[6]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},[e("path",{id:"Vector 804",d:"M0.972903 0.945801L5.02734 4.99964L0.972902 9.05408",stroke:"black","stroke-width":"1.5","stroke-linejoin":"round"})])],-1))])])):d("",!0),m.uberSteps==="step-3"?(s(),i("div",tr,[e("div",or,[I[7]||(I[7]=e("div",{class:"uber-icon"},[e("img",{src:ho,alt:"uber-voucher"})],-1)),e("div",ar,a(t(J)(m.selectedUberOption?.originalAmount||0,{currency:m.selectedUberOption?.originalCurrency,showDecimals:!0})),1)]),e("div",{class:"uber-part_select",onClick:I[0]||(I[0]=M=>C())},[I[9]||(I[9]=e("div",null,[e("span",{class:"uber-part_select_text cursor-pointer"},[e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M1.293 11.619L11.619 1.29299C12.009 0.902988 12.642 0.902988 13.032 1.29299L14.708 2.96899C15.098 3.35899 15.098 3.99199 14.708 4.38199L4.381 14.707C4.194 14.895 3.94 15 3.675 15H1V12.325C1 12.06 1.105 11.806 1.293 11.619Z",stroke:"#384250","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])])],-1)),e("div",{class:"cursor-pointer",onClick:jt(A,["stop"])},I[8]||(I[8]=[e("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M13.8337 4.83337L13.1109 14.9521C13.0809 15.3725 12.8927 15.7659 12.5842 16.0531C12.2758 16.3404 11.8699 16.5 11.4485 16.5H4.55219C4.13072 16.5 3.7249 16.3404 3.41644 16.0531C3.10798 15.7659 2.91979 15.3725 2.88976 14.9521L2.16699 4.83337",stroke:"#FF3F3F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M5.08398 4.83333V2.75C5.08398 2.41848 5.21568 2.10054 5.4501 1.86612C5.68452 1.6317 6.00246 1.5 6.33398 1.5H9.66732C9.99884 1.5 10.3168 1.6317 10.5512 1.86612C10.7856 2.10054 10.9173 2.41848 10.9173 2.75V4.83333",stroke:"#FF3F3F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M15.0837 4.83337H0.916992",stroke:"#FF3F3F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])):d("",!0)],2),e("div",sr,[y(Ds,{visible:_.value,"onUpdate:visible":I[3]||(I[3]=M=>_.value=M),header:t(k)("checkout.addUberVoucher"),direction:"right",open:560},{default:H(()=>[e("div",lr,[e("div",nr,[e("div",ir,a(t(k)("checkout.uberHeader")),1),V.value?(s(),i("div",rr,a(t(k)("checkout.currencyConversion"))+": "+a(V.value?.originalAmount.toFixed(2))+" "+a(t(ia)(V.value?.originalCurrency))+" "+a(t(k)("checkout.isApproximately"))+" "+a(V.value?.usd_amount.toFixed(2))+" US$ ",1)):d("",!0)]),e("div",cr,[m.uberOptions.length===0?(s(),i("div",ur," No Uber options available ")):d("",!0),e("div",dr,[(s(!0),i(W,null,Ae(m.uberOptions,M=>(s(),i("div",{key:M.usd_amount,class:ee(["drawer-vouchers-item",{active:m.selectedUberOption?.usd_amount===M.usd_amount}]),onClick:()=>Z(M)},[e("label",{class:"drawer-vouchers-item_label",for:"uber-option-"+M.usd_amount},[e("div",pr,[I[10]||(I[10]=e("div",{class:"uber-icon"},[e("img",{src:ho,alt:"uber-voucher"})],-1)),e("div",hr,[e("div",_r,a(t(J)(M?.originalAmount??0,{currency:M?.originalCurrency,showDecimals:!0})),1)])])],8,mr),gt(e("input",{type:"radio",id:"uber-option-"+M.usd_amount,name:"uberOption",value:M.usd_amount,"onUpdate:modelValue":I[2]||(I[2]=U=>g.value=U),checked:m.selectedUberOption?.usd_amount===M.usd_amount,class:"drawer-vouchers-item-radio"},null,8,yr),[[At,g.value]])],10,vr))),128))])]),e("div",fr,[y(t(Be),{onClick:L,class:"cancel-drawer"},{default:H(()=>[w(a(t(k)("checkout.cancel")),1)]),_:1}),y(t(Be),{class:"apply-drawer",onClick:N,disabled:!V.value||m.uberVoucherLoading},{default:H(()=>[m.uberVoucherLoading?d("",!0):(s(),i("span",kr,a(t(k)("checkout.addUberVoucher")),1)),m.uberVoucherLoading&&V.value?(s(),i("span",gr,a(t(k)("checkout.applying")),1)):d("",!0)]),_:1},8,["disabled"])])])]),_:1},8,["visible","header"])]),e("div",br,[m.uberSteps==="step-1"?(s(),i("div",wr,[e("label",Cr,[e("input",{type:"radio",class:"radio-input",onClick:R}),e("div",Dr,[e("div",Nr,[I[12]||(I[12]=e("div",{class:"radio-circle"},null,-1)),e("div",Pr,[w(a(t(k)("checkout.interestedUber"))+" ",1),I[11]||(I[11]=e("a",{href:"https://www.uber.com/",target:"_blank"},"Uber",-1)),w(" "+a(t(k)("checkout.voucher")),1)])]),I[13]||(I[13]=e("div",{class:"uber-part"},[e("div",{class:"uber-icon"},[e("img",{src:ho,alt:"uber-voucher"})])],-1))])])])):d("",!0),m.uberSteps==="step-2"?(s(),i("div",Ar,[e("div",$r,[e("label",null,a(t(k)("checkout.addUberVoucher")),1),e("div",Vr,[y(t(bs),{modelValue:V.value,"onUpdate:modelValue":I[4]||(I[4]=M=>V.value=M),options:m.uberOptions,optionLabel:"usd_amount",placeholder:"Select Uber amount",class:"md:w-56"},{value:H(M=>[M.value?(s(),i("div",Rr,[e("span",Ir,a(t(ia)(M.value.originalCurrency)),1),e("div",null,a(M.value.usd_amount.toFixed(2)),1)])):(s(),i("span",Fr,a(t(k)("checkout.selectUberAmount")),1))]),option:H(M=>[e("div",xr,[e("span",Sr,a(t(ia)(M.option.originalCurrency)),1),e("div",null,a(M.option.usd_amount.toFixed(2)),1)])]),_:1},8,["modelValue","options"]),y(t(Be),{onClick:N,class:"applyUberOption",disabled:!m.selectedUberOption||m.uberVoucherLoading},{default:H(()=>[m.uberVoucherLoading?d("",!0):(s(),i("span",Er,a(t(k)("checkout.addToCheckout")),1)),m.uberVoucherLoading&&m.selectedUberOption?(s(),i("span",Tr,a(t(k)("checkout.applying")),1)):d("",!0)]),_:1},8,["disabled"])])])])):d("",!0),m.uberSteps==="step-3"?(s(),i("div",Lr,[e("div",Ur,[e("div",Or,[I[14]||(I[14]=e("i",{class:"pi pi-check-circle"},null,-1)),e("span",null,a(t(k)("checkout.uberSuccess")),1)]),e("div",Mr,[e("span",{onClick:z},a(t(k)("checkout.change")),1)])])])):d("",!0)])]))}}),qr=Ve(Br,[["__scopeId","data-v-5d4cce3b"],["__file","UberVoucher.vue"]]),ks="/esimply.png",Hr={key:0,class:"option-container radius_md"},Gr={class:"flex align-items-center gap-2"},jr={class:"uber-text"},Wr={class:"uber-part_select"},zr={class:"uber-part_select_text"},Yr={key:1,class:"option-container"},Qr={class:"flex align-items-center gap-2"},Jr={class:"uber-text"},Kr={class:"p-booking__uber-text-subtitle"},Zr={class:"uber-part_select"}
1,Xr={class:"drawer-vouchers"},ec={class:"drawer-content-esimply"},tc={class:"drawer-header-esimply"},oc={class:"drawer-header-description-esimply"},ac={class:"flex flex-column gap-2"},sc={class:"esimply-title"},lc={class:"drawer-vouchers-esimply"},nc=["onClick"],ic={class:"voucher-label"},rc={class:"voucher-content"},cc={class:"voucher-details"},uc={class:"voucher-details-information"},dc={class:"voucher-amount"},vc={class:"voucher-duration"},mc={class:"voucher-price-information"},pc=["value"],hc={class:"flex flex-column gap-2 esimply-date-picker"},_c={class:"activation-date"},yc=["onClick"],fc={class:"date-description"},kc={class:"label search_input"},gc={key:0,class:"label search_input"},bc={class:"label search_input"},wc={class:"drawer-footer-esimply"},Cc={key:0},Dc={key:1},Nc=$e({__name:"EsimplyVoucher",props:{esimplyOptions:{},isEsimplyActive:{type:Boolean},esimplyVoucherLoading:{type:Boolean},showEsimplyDrawer:{type:Boolean},selectedEsimplyPackage:{},checkinDate:{}},emits:["update:showEsimplyDrawer","apply-esimply","remove-esimply","change-esimply","reset-esimply","select-option","selectedDate"],setup(m,{emit:n}){const{t:v}=Re(),b=m,k=n,_=c(b.selectedEsimplyPackage),V=c(0),g=c(new Date),C=c(1),A=c("en-US"),N=c(null),z=c({start:null,end:null}),L=S(()=>{const D=z.value.start;return D?new Date(D).toLocaleDateString(A.value):v("checkout.selectDate")}),R=S(()=>{const D=z.value.end;return D?new Date(D).toLocaleDateString(A.value):""}),Z=S(()=>{if(N.value&&_.value?.validity_days){const D=new Date(N.value);return D.setDate(D.getDate()+_.value.validity_days),D.toLocaleDateString(A.value)}return""}),T=S({get:()=>b.showEsimplyDrawer,set:D=>k("update:showEsimplyDrawer",D)}),I=()=>{k("update:showEsimplyDrawer",!b.showEsimplyDrawer)},M=D=>{_.value=D,k("select-option",D)},U=D=>{if(!_.value?.validity_days)return;const F=new Date(D);N.value=F;const P=new Date(F);P.setDate(F.getDate()+_.value.validity_days),z.value={start:F,end:P},k("selectedDate",z.value.start)},De=()=>{_.value=null,N.value=null,z.value={start:null,end:null},k("remove-esimply")},Q=()=>{k("apply-esimply")},ce=()=>{N.value=null,z.value={start:null,end:null},k("reset-esimply")};return te(()=>b.selectedEsimplyPackage,D=>{D&&(_.value=D)}),te(_,D=>{if(D){const F=new Date(b.checkinDate);N.value=F;const P=new Date(F);P.setDate(F.getDate()+D.validity_days),z.value={start:F,end:P}}else N.value=null,z.value={start:null,end:null}},{immediate:!0}),(D,F)=>(s(),i("div",null,[e("div",{class:ee(["uber-selector",{"cursor-pointer":!D.isEsimplyActive,active:T.value,inactive:D.isEsimplyActive}]),onClick:F[1]||(F[1]=P=>!D.isEsimplyActive&&I())},[D.isEsimplyActive?d("",!0):(s(),i("div",Hr,[e("div",Gr,[F[5]||(F[5]=e("div",{class:"uber-icon"},[e("img",{src:ks,alt:"esimply-voucher"})],-1)),e("div",jr,a(t(v)("checkout.esimplyVoucher")),1)]),e("div",Wr,[e("div",zr,a(t(v)("checkout.select")),1),F[6]||(F[6]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},[e("path",{id:"Vector 804",d:"M0.972903 0.945801L5.02734 4.99964L0.972902 9.05408",stroke:"black","stroke-width":"1.5","stroke-linejoin":"round"})])],-1))])])),D.isEsimplyActive?(s(),i("div",Yr,[e("div",Qr,[F[7]||(F[7]=e("div",{class:"uber-icon"},[e("img",{src:ks,alt:"esimply-voucher"})],-1)),e("div",Jr,[w(a(t(J)(_.value?.originalAmount??0,{currency:_.value?.originalCurrency,showDecimals:!0}))+" ",1),e("span",Kr,a(t(v)("checkout.expiryDate"))+" "+a(Z.value),1)])]),e("div",Zr,[e("div",{onClick:F[0]||(F[0]=P=>I())},F[8]||(F[8]=[e("span",{class:"uber-part_select_text cursor-pointer"},[e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M1.293 11.619L11.619 1.29299C12.009 0.902988 12.642 0.902988 13.032 1.29299L14.708 2.96899C15.098 3.35899 15.098 3.99199 14.708 4.38199L4.381 14.707C4.194 14.895 3.94 15 3.675 15H1V12.325C1 12.06 1.105 11.806 1.293 11.619Z",stroke:"#384250","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)])),e("div",{class:"cursor-pointer",onClick:jt(De,["stop"])},F[9]||(F[9]=[e("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M13.8337 4.83337L13.1109 14.9521C13.0809 15.3725 12.8927 15.76
159 12.5842 16.0531C12.2758 16.3404 11.8699 16.5 11.4485 16.5H4.55219C4.13072 16.5 3.7249 16.3404 3.41644 16.0531C3.10798 15.7659 2.91979 15.3725 2.88976 14.9521L2.16699 4.83337",stroke:"#FF3F3F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M5.08398 4.83333V2.75C5.08398 2.41848 5.21568 2.10054 5.4501 1.86612C5.68452 1.6317 6.00246 1.5 6.33398 1.5H9.66732C9.99884 1.5 10.3168 1.6317 10.5512 1.86612C10.7856 2.10054 10.9173 2.41848 10.9173 2.75V4.83333",stroke:"#FF3F3F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M15.0837 4.83337H0.916992",stroke:"#FF3F3F","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))])])):d("",!0)],2),e("div",Xr,[y(Ds,{visible:T.value,"onUpdate:visible":F[4]||(F[4]=P=>T.value=P),header:t(v)("checkout.esimplyTitle"),direction:"right",closeOnClickOutside:!0,open:560},{default:H(()=>[e("div",ec,[e("div",tc,[F[10]||(F[10]=e("div",{class:"drawer-header-title-esimply"},[e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("rect",{width:"24",height:"24",rx:"12",fill:"white","fill-opacity":"0.1"}),e("path",{d:"M12.0002 19.4905C7.863 19.4905 4.50977 16.1372 4.50977 12C4.50977 7.86276 7.863 4.50952 12.0002 4.50952C16.1375 4.50952 19.4907 7.86276 19.4907 12C19.4907 16.1372 16.1375 19.4905 12.0002 19.4905Z",stroke:"#3C87FF","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M12.0002 16.1614V12H11.168",stroke:"#3C87FF","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M11.789 7.93774C11.2695 7.93774 10.8478 8.3594 10.8516 8.87893C10.8516 9.39846 11.2732 9.82011 11.7928 9.82011C12.3123 9.82011 12.734 9.39846 12.734 8.87893C12.734 8.3594 12.3123 7.93774 11.789 7.93774Z",fill:"#3C87FF"})])],-1)),e("div",oc,a(t(v)("checkout.esimplyDescription")),1)]),e("div",ac,[e("div",sc,a(t(v)("checkout.esimplyTitle")),1),e("div",lc,[(s(!0),i(W,null,Ae(D.esimplyOptions,P=>(s(),i("div",{key:P.package_id,class:ee(["voucher-item",{active:_.value?.package_id===P.package_id}]),onClick:xe=>M(P)},[e("label",ic,[e("div",rc,[e("div",cc,[e("div",uc,[e("div",dc,a(P.name),1),e("div",vc,a(P.validity_days)+" "+a(t(v)("checkout.days")),1)]),e("div",mc,a(t(J)(P?.originalAmount??0,{currency:P?.originalCurrency,showDecimals:!0})),1)])]),gt(e("input",{type:"radio",name:"esimplyOption",value:P,"onUpdate:modelValue":F[2]||(F[2]=xe=>_.value=xe),class:"voucher-radio"},null,8,pc),[[At,_.value]])])],10,nc))),128))])]),e("div",hc,[e("label",_c,a(t(v)("checkout.activationDate")),1),(s(),K(t(yn),{modelValue:N.value,"onUpdate:modelValue":[F[3]||(F[3]=P=>N.value=P),U],key:V.value,color:"sky-blue","min-date":g.value,columns:C.value,locale:A.value,"first-day-of-week":2,mode:"date",class:"date-picker-sm",disabled:!1,"is-required":!1,"enable-date-picker":!0},{default:H(({togglePopover:P})=>[e("div",{class:"field mid",onClick:P},[F[11]||(F[11]=e("i",{class:"pi pi-calendar text-500"},null,-1)),e("div",fc,[e("span",kc,a(L.value),1),R.value?(s(),i("span",gc," - ")):d("",!0),e("span",bc,a(R.value),1)])],8,yc)]),_:1},8,["modelValue","min-date","columns","locale"]))])]),e("div",wc,[y(t(Be),{onClick:ce,class:"cancel-drawer"},{default:H(()=>[w(a(t(v)("checkout.cancel")),1)]),_:1}),y(t(Be),{class:"apply-drawer",onClick:Q,disabled:!_.value||D.esimplyVoucherLoading},{default:H(()=>[D.esimplyVoucherLoading?d("",!0):(s(),i("span",Cc,a(t(v)("checkout.addEsimplyVoucher")),1)),D.esimplyVoucherLoading&&_.value?(s(),i("span",Dc,a(t(v)("checkout.applying")),1)):d("",!0)]),_:1},8,["disabled"])])]),_:1},8,["visible","header"])])]))}}),Pc=Ve(Nc,[["__scopeId","data-v-8a97b8b4"],["__file","EsimplyVoucher.vue"]]),Ac={key:0,class:"card voucher-section"},$c={class:"title"},Vc={class:"input-group"},Rc={class:"input-wrapper"},Ic={key:0,class:"pi pi-spin pi-spinner voucher-spinner"},Fc={key:0},xc={key:1},Sc={key:2},Ec={key:0,class:"message error"},Tc={key:1,class:"message success"},Lc=$e({__name:"PromoCodeVoucher",props:{voucherCode:{type:String,default:""},voucherLoading:{type:Boolean,default:!1},voucherError:{type:String,default:""},isVoucherActive:{type:Boolean,default:!1},voucherAmount:{type:Number,default:0},voucherCurrency:{type:String,default:"USD"},isPromoCodeDisabled:{type:Boolean,default:!1},voucherDiscountType:{type:String,default:""},voucherDiscountValue:{type:Number,default:0}},emits:["apply-voucher","clear-voucher","update:voucherCode"],setup(m,{emit:n}){const{t:v}=Re(),b=n,k=m,_=c(!1),V=S(()=>{const R=J(k.voucherAmount,{currency:k.voucherCurrency,showDecimals:!0});return k.voucherDiscountType==="percentage"&&k.voucherDiscountValue?v("checkout.voucherAppliedPercent",{value:k.voucherDiscountValue,amount:R}):v("checkout.voucherAppliedFixed",{amount:R})}),g=S(()=>k.voucherCode.length>0||k.isVoucherActive),C=S(()=>k.voucherCode.trim()===""&&!k.isVoucherActive),A=S(()=>({"voucher-button":!0,"voucher-applied":k.isVoucherActive})),N=R=>{_.value=!1;const T=R.target.value;b("update:voucherCode",T)},z=()=>{!k.voucherCode.trim()&&!k.isVoucherActive||b("apply-voucher")},L=()=>{b("clear-voucher")};return te(()=>k.voucherError,R=>{_.value=!!R},{immediate:!0}),(R,Z)=>m.isPromoCodeDisabled?d("",!0):(s(),i("div",Ac,[e("div",$c,[e("h3",null,a(t(v)("checkout.redeemPromoCode")),1)]),e("div",Vc,[e("div",Rc,[y(t(ae),{type:"text",value:m.voucherCode,placeholder:t(v)("checkout.enterPromoCode"),class:ee([{"p-invalid":_.value,"p-valid":m.isVoucherActive}
1,"radius_md"]),disabled:m.voucherLoading,onInput:N},null,8,["value","placeholder","class","disabled"]),m.voucherLoading?(s(),i("i",Ic)):g.value?(s(),i("i",{key:1,class:"pi pi-times clear-icon",onClick:L})):d("",!0)]),y(t(Be),{onClick:z,disabled:C.value||m.voucherLoading||_.value,class:ee([A.value,"radius_md"])},{default:H(()=>[m.voucherLoading?(s(),i("span",Fc,a(t(v)("checkout.applying")),1)):m.isVoucherActive?(s(),i("span",xc,[Z[0]||(Z[0]=e("i",{class:"pi pi-check"},null,-1)),w(a(t(v)("checkout.codeApplied")),1)])):(s(),i("span",Sc,a(t(v)("checkout.apply")),1))]),_:1},8,["disabled","class"])]),m.voucherError?(s(),i("p",Ec,a(m.voucherError),1)):d("",!0),m.isVoucherActive&&!m.voucherError?(s(),i("p",Tc,a(V.value),1)):d("",!0)]))}}),Uc=Ve(Lc,[["__scopeId","data-v-f305068e"],["__file","PromoCodeVoucher.vue"]]),Oc={class:"dialog-header-title"},Mc=$e({__name:"CancellationPolicyDialog",props:{visible:Boolean,currentPrebook:Object},emits:["update:visible"],setup(m,{emit:n}){const{t:v}=Re(),b=n,k=()=>{b("update:visible",!1)};return(_,V)=>(s(),K(t(at),{visible:m.visible,"onUpdate:visible":V[0]||(V[0]=g=>_.$emit("update:visible",g)),header:t(v)("booking.form.cancellationPolicy"),modal:"",dismissableMask:"",class:"cancellation-policies--dialog",pt:{mask:{style:"backdrop-filter: blur(2px)"}},onHide:k},{header:H(()=>[e("div",null,[e("div",Oc,a(t(v)("booking.form.cancellationPolicy")),1)])]),default:H(()=>[m.currentPrebook?(s(),K(Ns,{key:0,bookingData:m.currentPrebook},null,8,["bookingData"])):d("",!0)]),_:1},8,["visible","header"]))}}),Bc=Ve(Mc,[["__scopeId","data-v-5aa9fc20"],["__file","CancellationPolicyDialog.vue"]]),qc={class:"row policyModalHeader"},Hc={class:"column"},Gc={class:"font-bold white-space-nowrap"},jc={key:1},Wc={key:0},zc={key:1},Yc=$e({__name:"PolicyDialog",props:{visible:Boolean,header:String,currentPrebook:Object,isTermsAndPolicyVisible:Boolean,policies:Array},emits:["update:visible"],setup(m,{emit:n}){const v=m,b=n,{t:k}=Re(),_=c(null),V=()=>{b("update:visible",!1)},g=()=>{const C=_.value?.innerHTML,A=document.createElement("iframe");A.style.position="absolute",A.style.width="0",A.style.height="0",document.body.appendChild(A),C&&(A.contentDocument?.open(),A.contentDocument?.write(`<html><head><title>${v.header}</title></head><body><h1>${v.header}</h1>${C}</body></html>`),A.contentDocument?.close(),A.contentWindow?.print()),document.body.removeChild(A)};return(C,A)=>(s(),K(t(at),{visible:m.visible,"onUpdate:visible":A[0]||(A[0]=N=>C.$emit("update:visible",N)),dismissableMask:m.visible,modal:"",header:m.header,breakpoints:{"1199px":"75vw","575px":"90vw"},"onClick:close":V,draggable:!1,class:"policy-dialog"},{header:H(()=>[e("div",qc,[e("div",Hc,[e("h2",Gc,a(m.header),1)]),e("div",{class:"column white-space-nowrap printBtn"},[e("a",{href:"#",class:"mr-3 item"},[e("i",{class:"pi pi-print",onClick:g,style:{"font-size":"1rem"}})])])])]),default:H(()=>[e("div",{ref_key:"policyRef",ref:_},[m.isTermsAndPolicyVisible?(s(),K(fn,{key:0})):(s(),i("div",jc,[m.currentPrebook?.roomTypes[0].rates[0]?.cancellationPolicies.refundableTag==="NRFN"?(s(),i("div",Wc,[A[1]||(A[1]=e("i",{class:"pi pi-check"},null,-1)),w(a(t(k)("booking.NRFN")),1)])):(s(),i("div",zc,[(s(!0),i(W,null,Ae(m.policies,N=>(s(),i("div",{key:N.message,class:ee({"full-refundable":N.highlight})},[A[2]||(A[2]=e("i",{class:"pi pi-check"},null,-1)),w("Â "+a(N.message),1)],2))),128)),e("span",null,a(t(k)("booking.form.timesMentioned",{timeFormat:m.currentPrebook?.roomTypes[0].rates[0]?.formattedCancellationPolicies?.timezone||"GMT"})),1)]))]))],512)]),_:1},8,["visible","dismissableMask","header"]))}}),Qc=Ve(Yc,[["__file","PolicyDialog.vue"]]),Jc={key:0},Kc={key:1},Zc=$e({__name:"Country",props:{selectionOnly:{type:Boolean,default:!1}},setup(m){const n=m,v=ns.find(V=>V.code===x.guestNationality),b=ns.sort((V,g)=>V.name<g.name?-1:V.name>g.name?1:0),k=c(v),_=()=>{k.value&&!n.selectionOnly&&(x.guestNationality=k.value.code,kn())};return(V,g)=>{const C=ws("country-flag");return s(),i("div",null,[y(t(bs),{modelValue:k.value,"onUpdate:modelValue":g[0]||(g[0]=A=>k.value=A),options:t(b),optionLabel:"code",placeholder:"Select a country",onChange:_,class:"radius_md"},{value:H(A=>[A.value?(s(),i("div",Jc,[y(C,{country:A.value.code,size:"small"},null,8,["country"]),w(" Â "+a(A.value.name)+" ("+a(A.value.code)+") ",1)])):(s(),i("span",Kc,a(A.placeholder),1))]),option:H(A=>[e("div",null,[y(C,{country:A.option.code,size:"small"},null,8,["country"]),g[1]||(g[1]=w(" Â ")),e("strong",null,a(A.option.name),1),w("Â ("+a(A.option.code)+") ",1)])]),_:1},8,["modelValue","options"])])}}}),Xc=Ve(Zc,[["__file","Country.vue"]]),eu={class:"card"},tu={class:"card-header"},ou={class:"card-title"},au={class:"card-container"},su={class:"p-booking__occupanciesForm__container__content__form--billingAddress"},lu={for:"line1"},nu={class:"p-booking__occupanciesForm__container__content__form--billingAddress"},iu={for:"line2"},ru={class:"p-booking__occupanciesForm__container__content__form--billingAddress"},cu={for:"line3"},uu={class:"p-booking__occupanciesForm__container__content__form--billingAddress"},du={for:"city"},vu={class:"p-booking__occupanciesForm__container__content__form--billingAddress"},mu={for:"state"},pu={class:"p-booking__occupanciesForm__container__content__form--billingAddress"},hu={for:"postalCode"},_u={class:"p-booking__occupanciesForm__container__content__form--billingAddress"},yu={for:"countryCode"},fu=$e({__name:"AddressForm",props:{modelValue:{}},emits:["update:modelValue"],setup(m,{emit:n}){const{t:v}=Re(),b=m,k=n,_=c({line1:b.modelValue?.line1||"",line2:b.modelValue?.line2||"",line3:b.modelValue?.line3||"",city:b.modelValue?.city||"",stateProvinceCode:b.modelValue?.stateProvinceCode||"",postalCode:b.modelValue?.postalCode||"",countryCode:b.modelValue?.countryCode||"US"});return te(_,V=>{k("update:modelValue",V)},{deep:!0}),(V,g)=>(s(),i("div",eu,[e("div",tu,[e("h3",ou,a(t(v)("checkout.billindAddress","Billing Address")),1)]),e("div",au,[nn(V.$slots,"error",{},void 0,!0),e("div",su,[e("label",lu,[w(a(t(v)("booking.form.address.line1","Address Line 1"))+" ",1),g[7]||(g[7]=e("span",{class:"required-asterisk"}
1,"*",-1))]),y(t(ae),{modelValue:_.value.line1,"onUpdate:modelValue":g[0]||(g[0]=C=>_.value.line1=C),id:"line1",placeholder:"e.g., 555 1st St",class:"card-holder-name radius_md",required:""},null,8,["modelValue"])]),e("div",nu,[e("label",iu,a(t(v)("booking.form.address.line2","Address Line 2")),1),y(t(ae),{modelValue:_.value.line2,"onUpdate:modelValue":g[1]||(g[1]=C=>_.value.line2=C),id:"line2",placeholder:"e.g., 10th Floor",class:"card-holder-name radius_md"},null,8,["modelValue"])]),e("div",ru,[e("label",cu,a(t(v)("booking.form.address.line3","Address Line 3")),1),y(t(ae),{modelValue:_.value.line3,"onUpdate:modelValue":g[2]||(g[2]=C=>_.value.line3=C),id:"line3",placeholder:"e.g., Unit 12",class:"card-holder-name radius_md"},null,8,["modelValue"])]),e("div",uu,[e("label",du,[w(a(t(v)("booking.form.address.city","City"))+" ",1),g[8]||(g[8]=e("span",{class:"required-asterisk"},"*",-1))]),y(t(ae),{modelValue:_.value.city,"onUpdate:modelValue":g[3]||(g[3]=C=>_.value.city=C),id:"city",placeholder:"e.g., Seattle",class:"card-holder-name radius_md",required:""},null,8,["modelValue"])]),e("div",vu,[e("label",mu,[w(a(t(v)("booking.form.address.province","State/Province"))+" ",1),g[9]||(g[9]=e("span",{class:"required-asterisk"},"*",-1))]),y(t(ae),{modelValue:_.value.stateProvinceCode,"onUpdate:modelValue":g[4]||(g[4]=C=>_.value.stateProvinceCode=C),id:"state",placeholder:"e.g., WA",class:"card-holder-name radius_md",required:""},null,8,["modelValue"])]),e("div",pu,[e("label",hu,[w(a(t(v)("booking.form.address.postcode","Postal Code"))+" ",1),g[10]||(g[10]=e("span",{class:"required-asterisk"},"*",-1))]),y(t(ae),{modelValue:_.value.postalCode,"onUpdate:modelValue":g[5]||(g[5]=C=>_.value.postalCode=C),id:"postalCode",placeholder:"e.g., 12345",class:"card-holder-name radius_md",required:""},null,8,["modelValue"])]),e("div",_u,[e("label",yu,[w(a(t(v)("booking.form.address.country","Country"))+" ",1),g[11]||(g[11]=e("span",{class:"required-asterisk"},"*",-1))]),y(Xc,{modelValue:_.value.countryCode,"onUpdate:modelValue":g[6]||(g[6]=C=>_.value.countryCode=C),"selection-only":!0},null,8,["modelValue"])])])]))}}),ku=Ve(fu,[["__scopeId","data-v-ec669fec"],["__file","AddressForm.vue"]]),gu={class:"card"},bu={class:"card-container remarks-container text-xs text-gray-500 max-h-300 overflow-y-auto pt-4"},wu={key:0,class:"flex flex-columns columns-grid-2 gap-4"},Cu={key:0,class:"flex flex-column"},Du={class:"font-semibold text-sm pb-2"},Nu={key:1,class:"flex flex-column"},Pu={class:"font-semibold text-sm pb-2"},Au=["innerHTML"],$u={key:1},Vu={key:2},Ru=["innerHTML"],Iu={key:3},Fu=["innerHTML"],xu={key:4},Su=["innerHTML"],Eu={key:5},Tu=["innerHTML"],Lu={key:6},Uu=["innerHTML"],Ou=$e({__name:"Remarks",props:{checkIn:Object,checkOut:Object,remarks:String,specialRemarks:String,optionalFees:String,mandatoryFees:String,knowBeforeYouGo:String},setup(m){const{t:n}=Re(),v=m;return(b,k)=>(s(),i("div",gu,[e("div",bu,[v.checkIn||v.checkOut?(s(),i("div",wu,[v.checkIn?(s(),i("div",Cu,[e("strong",Du,a(t(n)("checkout.checkInStart","Check-in"))+":Â ",1),e("span",null,a(t(n)("checkout.startTime","Start time"))+": "+a(v.checkIn.begin_time),1),e("span",null,a(t(n)("checkout.endTime","End time"))+": "+a(v.checkIn.end_time),1)])):d("",!0),v.checkOut?(s(),i("div",Nu,[e("strong",Pu,a(t(n)("checkout.checkOutStart","Check-out"))+":Â ",1),e("span",{innerHTML:v.checkOut.time},null,8,Au)])):d("",!0)])):d("",!0),v.checkIn?.min_age?(s(),i("div",$u,[e("strong",null,a(t(n)("checkout.minAge"))+":Â ",1),e("span",null,a(v.checkIn.min_age),1)])):d("",!0),v.remarks?(s(),i("div",Vu,[e("strong",null,a(t(n)("checkout.remarks"))+":Â ",1),e("span",{innerHTML:v.remarks},null,8,Ru)])):d("",!0),v.specialRemarks?(s(),i("div",Iu,[e("strong",null,a(t(n)("checkout.specialRemarks"))+":Â ",1),e("span",{innerHTML:v.specialRemarks},null,8,Fu)])):d("",!0),v.optionalFees?(s(),i("div",xu,[e("strong",null,a(t(n)("checkout.optionalFees"))+":Â ",1),e("span",{innerHTML:v.optionalFees},null,8,Su)])):d("",!0),v.mandatoryFees?(s(),i("div",Eu,[e("strong",null,a(t(n)("checkout.mandatoryFees"))+":Â ",1),e("span",{innerHTML:v.mandatoryFees},null,8,Tu)])):d("",!0),v.knowBeforeYouGo?(s(),i("div",Lu,[e("strong",null,a(t(n)("checkout.knowBeforeYouGo"))+":Â ",1),e("span",{innerHTML:v.knowBeforeYouGo},null,8,Uu)])):d("",!0)])]))}}),Mu=Ve(Ou,[["__scopeId","data-v-5cf0fd40"],["__file","Remarks.vue"]]),Bu={key:0,class:"urgency-message-card"},qu={class:"urgency-message-card__icon"},Hu=$e({__name:"UrgencyMessageCard",props:{hotel:{}},setup(m){const n=m,v=S(()=>Ps(n.hotel));return(b,k)=>v.value?(s(),i("div",Bu,[e("div",qu,[y(we,{name:"urgency-clock-card",width:20,height:20})]),k[0]||(k[0]=e("div",{class:"urgency-message-card__content"},[e("h4",{class:"urgency-message-card__title"}," This property is in high demand for your dates! ")],-1))])):d("",!0)}}),Gu=Ve(Hu,[["__scopeId","data-v-54f8d2d1"],["__file","UrgencyMessageCard.vue"]]),ju={class:"tax-info-content mt-2"},Wu=$e({__name:"TaxInfoModal",props:{showOverlay:{type:Boolean}},emits:["close"],setup(m,{emit:n}){const{t:v}=Re(),b=m,k=n,_=c(b.showOverlay);return te(()=>_.value,V=>{V?_.value=!0:(_.value=!1,k("close"))}),te(()=>b.showOverlay,V=>{_.value=V}
1),(V,g)=>(s(),K(t(at),{visible:_.value,"onUpdate:visible":g[0]||(g[0]=C=>_.value=C),class:"taxes-info-dialog",breakpoints:{"1199px":"75vw","575px":"90vw"},header:t(v)("booking.taxesAndFees"),modal:!0,dismissableMask:V.showOverlay},{default:H(()=>[e("div",ju,[e("p",null,a(t(v)("booking.taxesAndFeesInfo")),1)])]),_:1},8,["visible","header","dismissableMask"]))}}),zu=Ve(Wu,[["__file","TaxInfoModal.vue"]]),Yu={MY:{privacyNotice:"https://www.grab.com/my/terms-policies/privacy-notice/",terms:"https://www.grab.com/my/terms-policies/transport-delivery-logistics/"},SG:{privacyNotice:"https://www.grab.com/sg/terms-policies/privacy-notice/",terms:"https://www.grab.com/sg/terms-policies/transport-delivery-logistics/"}};function Qu(){return gn()?.trim().toUpperCase()==="MY"?"MY":"SG"}function gs(){return Yu[Qu()]}const Ju=1.15;function Ku(){const{t:m}=Re(),n=c(null),v=c(null),b=c(""),k=c([]),_=c([]);return{currentPrebook:n,initialPrebook:v,wlBookingId:b,uberOptions:k,esimplyOptions:_,setupPrebookAndRates:async(N,z,L)=>{try{const{prebookHotelRate:R,addons:Z,id:T}=await ua({prebookId:N,...z});k.value=Z?.uber||[],_.value=Z?.esimply||[],b.value=T,n.value=R,v.value=R,L&&(L.setupRates(R),L.setupGuestForm(),L.setupOptionalExtras())}catch(R){L&&L.setErrorState(R,m("booking.alreadyBookedRoom"),"../assets/unavailable-room.svg",R.response?.data?.error||R.message)}},updatePrebookData:(N,z)=>{n.value=N;const L=N.prebookId,R=N.secretKey||"",Z=N.price,T=N.voucherTotalAmount||0;return z.initPaymentElement(),{prebookId:L,clientSecret:R,price:Z,voucherTotalAmount:T}},checkPrebookAvailability:async(N,z,L)=>{if(!n.value||!v.value)return{available:!1,prebookRate:null};try{const R={offerId:n.value.offerId,checkin:N.query.checkin,checkout:N.query.checkout,previousPrebookId:v.value.prebookId,guestId:z.guest?.id??void 0,addons:[...n.value.addonsRequest||[]],source:N.query.source||"direct",availabilityCheckOnly:!0};if(L?.voucherCode?.trim()&&(R.voucherCode=L.voucherCode),L?.isUberVoucherActive&&L?.selectedUberOption){const I={addon:"uber",value:L.selectedUberOption.originalAmount,currency:L.selectedUberOption.originalCurrency},M=R.addons.findIndex(U=>U.addon==="uber");M>-1?R.addons[M]=I:R.addons.push(I)}if(L?.isEsimplyActive&&L?.selectedEsimplyPackage){const I={addon:"esimply",value:L.selectedEsimplyPackage.originalAmount,currency:L.selectedEsimplyPackage.originalCurrency,addonDetails:{package_id:L.selectedEsimplyPackage.package_id,destination_code:L.hotelCountry||"US",start_date:Ce.fromJSDate(L.dateRanges?.start).toFormat("yyyy-MM-dd"),end_date:Ce.fromJSDate(L.dateRanges?.end).toFormat("yyyy-MM-dd"),cart_key:""}},M=R.addons.findIndex(U=>U.addon==="esimply");M>-1?R.addons[M]=I:R.addons.push(I)}const{available:Z,prebookRate:T}=await Wt(R);return typeof Z=="boolean"?{available:Z,prebookRate:null}:T&&T.roomTypes?.[0]?.rates?.length>0?{available:!0,prebookRate:T}:{available:!1,prebookRate:null}}catch(R){return{available:!1,prebookRate:null,error:R}}},findRepriceAlternative:async(N,z,L,R)=>{const Z=n.value?.roomTypes?.[0]?.roomTypeId,T=n.value?.price;if(!Z||!T)return null;try{const M=(await bn({hotelId:N,checkin:z,checkout:L,occupancies:R})).filter(Q=>Q.roomTypeId===Z);if(!M.length)return null;let U=null;for(const Q of M){const ce=Q.rates.reduce((D,F)=>D+(F.retailRate?.total?.reduce((P,xe)=>P+xe.amount,0)??0),0);ce>0&&(!U||ce<U.price)&&(U={offerId:Q.offerId,price:ce})}if(!U||U.price>T*Ju)return null;const{prebookRate:De}=await Wt({offerId:U.offerId,checkin:z,checkout:L,occupancies:R});return De?.roomTypes?.[0]?.rates?.length?{prebookRate:De,originalPrice:T,newPrice:U.price}:null}catch{return null}}}}const Zu=()=>new Date;function Xu(){const{t:m}=Re(),n=da(),v=c(""),b=c(!1),k=c(!1),_=c(""),V=c(""),g=c(!1),C=c(!1),A=c(null),N=c(null),L=c(["step-1","step-2","step-3"][0]),R=c(null),Z=c(!1),T=c(0),I=c(!1),M=c([]),U=c(null),De=c(!1),Q=c(!1),ce=c([]),D=c(null),F=c(null),P=c(!1),xe=c(!1),se=c(!1);let me=Zu();const Ye=c({start:me,end:Ce.fromJSDate(me).plus({days:1}).toJSDate()}),$=c([]),Se=()=>{C.value=!1,_.value="",k.value=!1,V.value=""},vt=()=>{Se()},qe=E=>{v.value="",g.value=!0,E&&E(),Se(),k.value&&(V.value=m("checkout.voucherRemoved")||"Voucher removed successfully.")},zt=()=>{v.value="",g.value=!0,Se(),k.value&&(V.value=m("checkout.voucherRemoved")||"Voucher removed successfully.")},mt=()=>{setTimeout(()=>{L.value="step-2",Z.value=!0},600)},$t=E=>
1{L.value="step-2",T.value=0,R.value=null,E&&E()},Yt=E=>{L.value="step-2",T.value=0,R.value=null,E.value=!1},Qt=()=>{L.value="step-1",T.value=0,R.value=null},Ee=(E,pe,ue,ye,le)=>{Te(E,pe,ue,ye,le)},Te=async(E,pe,ue,ye,le)=>{L.value="step-2",T.value=0,R.value=null,De.value=!1;const ht=(E.value?.addonsRequest||[]).filter(Le=>Le.addon!=="uber"),Pe={offerId:E.value?.offerId,checkin:ue.query.checkin,checkout:ue.query.checkout,previousPrebookId:pe.value?.prebookId,guestId:ye.guest?.id??void 0,addons:ht,source:ue.query.source||"direct"};try{const Le=await Wt(Pe),{prebookRate:rt}=Le;n.add({severity:"success",summary:m("toast.uberRemovedSummary"),detail:m("toast.uberRemovedDetail"),life:3e3}),le(rt)}catch{n.add({severity:"error",summary:m("toast.errorRemovingUberSummary"),detail:m("toast.errorRemovingUberDetail"),life:3e3})}finally{I.value=!1}},X=async(E,pe,ue,ye,le)=>{D.value=null,F.value=null,$.value=$.value.filter(Pe=>Pe.addon!=="esimply"),Qe();const ht={offerId:E.value?.offerId,checkin:ue.query.checkin,checkout:ue.query.checkout,previousPrebookId:pe.value?.prebookId,guestId:ye.guest?.id??void 0,addons:(E.value?.addonsRequest||[]).filter(Pe=>Pe.addon!=="esimply"),source:ue.query.source||"direct"};try{const Pe=await Wt(ht),{prebookRate:Le}=Pe;$.value=Le.addonsRequest||[],n.add({severity:"success",summary:m("toast.eSimplyRemovedSummary"),detail:m("toast.eSimplyRemovedDetail"),life:3e3}),le(Le)}catch{n.add({severity:"error",summary:m("toast.errorRemovingESimplySummary"),detail:m("toast.errorRemovingESimplyDetail"),life:3e3})}finally{P.value=!1}},_o=E=>ce.value.find(ue=>ue.package_id===E)?.name,Qe=()=>{const E=D.value?.validity_days||1;Ye.value={start:me,end:Ce.fromJSDate(me).plus({days:E}).toJSDate()}},Je=()=>{D.value=null,F.value=null,Qe()},st=(E,pe,ue,ye,le)=>{X(E,pe,ue,ye,le)},O=()=>{D.value?.validity_days&&Ye.value.start&&(Ye.value={start:Ye.value.start,end:Ce.fromJSDate(Ye.value.start).plus({days:D.value.validity_days}).toJSDate()})},G=S(()=>T.value>0),Y=E=>{me=E,Qe()},pt=S(()=>!!$.value?.find(E=>E.addon==="esimply"));return{voucherCode:v,voucherLoading:b,isVoucherApplied:k,voucherErrorMessage:_,voucherSuccessMessage:V,voucherRemoving:g,isVoucherInvalid:C,voucherAmount:A,voucherCurrency:N,uberSteps:L,selectedUberOption:R,uberAmountSelect:Z,uberValue:T,uberVoucherLoading:I,uberOptions:M,selectedUberOptionAmount:U,isUberActive:De,isUberVoucherActive:G,esimplyOptions:ce,selectedEsimplyPackage:D,selectedEsimplyOptionGb:F,esimplyVoucherLoading:P,isEsimplyActive:pt,showEsimplyDrawer:xe,showUberDrawer:Q,esimplyLoading:se,dateRanges:Ye,payloadAddons:$,resetVoucherState:Se,handleVoucherCodeChange:vt,clearVoucherCode:qe,validateUberVoucher:mt,resetUber:$t,removeUber:Te,removeEsimply:X,getPackageName:_o,resetEsimply:Je,resetEsimplyDates:Qe,initEsimlyStartDate:Y,updateDateRanges:O,handleVoucherAction:async(E,pe,ue,ye,le,ht,Pe,Le)=>{if(g.value&&E==="promo"&&(g.value=!1),E==="promo"&&Se(),E==="uber"&&!R.value){Qt(),Q.value=!0;return}if(E==="esimply"&&!D.value){xe.value=!0;return}const rt=pe.value?.addonsRequest||[],fe={offerId:pe.value?.offerId,checkin:ye.query.checkin,checkout:ye.query.checkout,previousPrebookId:ue.value?.prebookId,guestId:le.guest?.id??void 0,addons:[...rt],source:ye.query.source||"direct"};if(v.value?.trim()&&(fe.voucherCode=v.value,b.value=!0),E==="uber"&&R.value){T.value=R.value.originalAmount;const Ue={addon:"uber",value:R.value.originalAmount,currency:R.value.originalCurrency},ne=fe.addons.findIndex(de=>de.addon==="uber");ne>-1?fe.addons[ne]=Ue:fe.addons.push(Ue),I.value=!0,De.value=!0}if(E==="esimply"&&D.value){const Ue={addon:"esimply",value:D.value.originalAmount,currency:D.value.originalCurrency,addonDetails:{package_id:D.value.package_id,destination_code:Le||"US",start_date:Ce.fromJSDate(Ye.value.start).toFormat("yyyy-MM-dd"),end_date:Ce.fromJSDate(Ye.value.end).toFormat("yyyy-MM-dd"),cart_key:""}},ne=fe.addons.findIndex(de=>de.addon==="esimply");ne>-1?fe.addons[ne]=Ue:fe.addons.push(Ue),P.value=!0,$.value=[...fe.addons]}if(!(E==="promo"&&v.value?.trim()||E==="uber"&&R.value||E==="esimply"&&D.value)){E==="promo"&&(b.value=!1);return}try{const Ue=await Wt(fe),{prebookRate:ne}=Ue;ht(ne),$.value=ne.addonsRequest||[],Pe&&Pe("validating_voucher",{prebookId:ne.prebookId,voucherCode:v.value}),E==="promo"&&(v.value&&(ne?.voucherTotalAmount||0)>0?(k.value=!0,V.value=m("checkout.voucherApplied")):v.value&&ne.voucherTotalAmount===0&&(C.value=!0,_.value=m("checkout.voucherInvalid"))),E==="uber"&&R.value&&(L.value="step-3",Q.value=!1,n.add({severity:"success",summary:m("toast.uberVoucherAppliedSummary"),detail:m("toast.uberVoucherAppliedDetail",{amount:R.value.originalAmount.toFixed(2),currency:R.value.originalCurrency}),life:3e3})),E==="esimply"&&D.value&&(xe.value=!1,n.add({severity:"success",summary:m("toast.eSimplyVoucherAppliedSummary"),detail:m("toast.eSimplyVoucherAppliedDetail",{name:D.value.name,price:D.value.originalAmount.toFixed(2),currency:D.value.originalCurrency}),life:3e3}))}catch(Ue){E==="promo"?(C.value=!0,_.value=Ue.response?.data?.error||Ue.message||m("checkout.voucherInvalid")):E==="uber"?n.add({severity:"error",summary:m("toast.errorApplyingUberVoucherSummary"),detail:m("toast.errorApplyingUberVoucherDetail"),life:3e3}):E==="esimply"&&n.add({severity:"error",summary:m("toast.errorApplyingESimplyVoucherSummary"),detail:m("toast.errorApplyingESimplyVoucherDetail"),life:3e3})}finally{E==="promo"&&(b.value=!1),E==="uber"&&(I.value=!1),E==="esimply"&&(P.value=!1)}},handleClearVoucherCode:zt,handleResetUber:Yt,handleChangeUber:Qt,handleRemoveUber:Ee,handleRemoveEsimply:st}}const ed={key:0,class:"page-loader"},td={class:"v-booking","data-testid":"checkout-page",itemscope:"",itemtype:"https://schema.org/
1Hotel"},od=["content"],ad=["content"],sd=["content"],ld={itemscope:"",itemtype:"https://schema.org/PostalAddress",itemprop:"address"},nd=["content"],id=["content"],rd=["content"],cd={class:"p-booking--container"},ud={className:"flex-col",style:{"max-width":"1200px",margin:"0 auto"}},dd={class:"back-button"},vd={class:"back-text"},md={key:1,class:"back-container"},pd={class:"required-notif"},hd={key:2,class:"perk-banner-mobile"},_d={class:"p-booking grid-container"},yd={key:0,class:"p-booking__occupanciesForm card","data-testid":"checkout-guest-form"},fd={class:"p-booking__occupanciesForm__header"},kd={class:"p-booking__occupanciesForm__container"},gd={class:"p-booking__occupanciesForm__container__content"},bd={class:"p-booking__occupanciesForm__container__content__form"},wd={class:"p-booking__occupanciesForm__container__content__form--firstName"},Cd={for:"firstName"},Dd={class:"input-wrapper"},Nd={key:0,class:"pi pi-check-circle check-icon"},Pd={key:0,id:"firstName","data-error-field":""},Ad={class:"p-booking__occupanciesForm__container__content__form--lastName"},$d={for:"lastName"},Vd={class:"input-wrapper"},Rd={key:0,class:"pi pi-check-circle check-icon"},Id={key:0,id:"lastName","data-error-field":""},Fd={class:"p-booking__occupanciesForm__container__content__form--email"},xd={for:"email"},Sd={class:"input-wrapper"},Ed={key:0,class:"pi pi-check-circle check-icon"},Td={key:0,"data-error-field":""},Ld={key:0,class:"p-booking__occupanciesForm__container__content__form--phoneDetails"},Ud={for:"phoneDetails"},Od={key:0,class:"required-asterisk"},Md={class:"phone-inputs-container",style:{display:"flex",gap:"10px"}},Bd={style:{width:"30%"}},qd={style:{width:"70%"}},Hd={class:"input-wrapper"},Gd={key:0,class:"pi pi-check-circle check-icon"},jd={key:0,class:"text-muted text-gray-400"},Wd={key:1,id:"phoneDetails",class:"text-red-500","data-error-field":""},zd={key:1,class:"p-booking__occupanciesForm__container__workQuestion"},Yd={class:"p-booking__occupanciesForm__container__workQuestion__title"},Qd={class:"p-booking__occupanciesForm__container__workQuestion__answer"},Jd={class:"p-booking__occupanciesForm__container__workQuestion__answer--input"},Kd={for:"workQuestion1"},Zd={class:"p-booking__occupanciesForm__container__workQuestion__answer--input"},Xd={for:"workQuestion2"},ev={class:"p-booking__occupanciesForm__container__workQuestion__additionalInformation additional-information"},tv={class:"p-booking__occupanciesForm__container__workQuestion__additionalInformation--input"},ov={for:"vatNumber"},av={key:0,id:"vatNumber"},sv={class:"p-booking__occupanciesForm__container__workQuestion__additionalInformation--input"},lv={key:1,class:"p-booking__occupanciesForm card",style:{"margin-top":"16px"}},nv={class:"p-booking__occupanciesForm__header"},iv={key:0,class:"guest-entry-toggle"},rv={class:"guest-entry-option"},cv={class:"guest-entry-option"},uv={key:1,class:"toggle-group"},dv={key:2,class:"p-booking__occupanciesForm__container"},vv={key:0,class:"p-booking__occupanciesForm__container__content"},mv={class:"p-booking__occupanciesForm__container__content__description"},pv={class:"p-booking__occupanciesForm__container__content__description__title"},hv={key:0},_v={key:1},yv={class:"p-booking__occupanciesForm__container__content__form"},fv={class:"p-booking__occupanciesForm__container__content__form--firstName"},kv=["for"],gv={class:"input-wrapper"},bv={key:0,class:"pi pi-check-circle check-icon"},wv={key:0},Cv={class:"p-booking__occupanciesForm__container__content__form--lastName"},Dv=["for"],Nv={class:"input-wrapper"},Pv={key:0,class:"pi pi-check-circle check-icon"},Av={key:0},$v={key:0,class:"rooms_divider b2b-divider"},Vv={key:3,class:"p-booking__occupanciesForm__container"},Rv={key:0,class:"p-booking__occupanciesForm__container__content"},Iv={key:0,class:"p-booking__occupanciesForm__container__content__description"},Fv={class:"p-booking__occupanciesForm__container__content__description__title"},xv={key:0},Sv={key:1},Ev={key:2},Tv={key:1,class:"b2b-guest-label"},Lv={key:0},Uv={key:1},Ov={class:"p-booking__occupanciesForm__container__content__form"},Mv={class:"p-booking__occupanciesForm__container__content__form--firstName"},Bv=["for"],qv={class:"input-wrapper"},Hv={key:0,class:"pi pi-check-circle check-icon"},Gv=["id"],jv={class:"p-booking__occupanciesForm__container__content__form--lastName"},Wv=["for"],zv={class:"input-wrapper"},Yv={key:0,class:"pi pi-check-circle check-icon"},Qv=["id"],Jv={key:2,class:"rooms_divider b2b-divider"},Kv={key:4,class:"p-booking__occupanciesForm__container"},Zv={class:"p-booking__occupanciesForm__container__content__description"},Xv={class:"p-booking__occupanciesForm__container__content__description__title"},em={key:0},tm={key:1},om={key:2},am={class:"p-booking__occupanciesForm__container__content__form"},sm={class:"p-booking__occupanciesForm__container__content__form--firstName"},lm=["for"],nm={class:"input-wrapper"},im={key:0,class:"pi pi-check-circle check-icon"},rm=["id"],cm={class:"p-booking__occupanciesForm__container__content__form--lastName"},um=["for"],dm={class:"input-wrapper"},vm={key:0,class:"pi pi-check-circle check-icon"},mm=["id"],pm={class:"p-booking__occupanciesForm__container__content__form--email"},hm=["for"],_m={class:"input-wrapper"},ym={key:0,class:"pi pi-check-circle check-icon"},fm=["id"],km={class:"p-booking__occupanciesForm__container__content__form--phoneDetails"},gm=["for"],bm={class:"phone-inputs-container",style:{display:"flex",gap:"10px"}},wm={style:{width:"30%"}},Cm={class:"input-wrapper",style:{flex:"1"}},Dm={key:0,class:"pi pi-check-circle check-icon"},Nm={key:0,class:"rooms_divider"},Pm={class:"p-booking__occupanciesForm__container"},Am={class:"p-booking__specialRequests card"},$m={key:0,class:"p-booking__agencyReference"},Vm={for:"agencyReference"},Rm={key:2,class:"card uber-section"},Im={class:"title"},Fm={key:4,class:"p-booking__occupanciesForm card loyalty-program-membership-container",style:{"margin-top":"16px"}},xm={class:"p-booking__occupanciesForm__header"},Sm={class:"p-booking__occupanciesForm__container loyalty-program-membership-content"},Em={class:"flex justify-content-between gap-4 align-items-center"},Tm={class:"flex flex-column align-items-start membership-number"},Lm={for:"membershipNumber",class:"membership-number-label"},Um={class:"membership-number-description"},Om=["src"],Mm={class:"input-wrapper"},Bm={key:0,class:"pi pi-check-circle check-icon"},qm={key:0,class:"text-red-500"},Hm={key:0,class:"text-red-500"},Gm={key:6,class:"checkout-payment-section"},jm={class:"text-xs"},Wm={class:"text-xs"},zm={key:7,class:"card grab-privacy"},Ym={class:"grab-privacy-title"},Qm=["innerHTML"],Jm={class:"p-booking__total-container-whiteBg"},Km={key:0,class:"p-booking__total__main"},Zm={class:"p-booking__total-label"},Xm={key:0,class:"font-light text-400"}
1,ep={key:1,class:"font-light text-400"},tp={key:0,class:"price total"},op={key:0,class:"text-400 font-xxs"},ap={key:1,class:"impersonation-notice",style:{"background-color":"#fff3cd",border:"1px solid #ffc107","border-radius":"8px",padding:"12px 16px",margin:"16px 0",display:"flex","align-items":"center",gap:"12px"}},sp={key:0},lp={key:1,class:"pi pi-angle-right"},np={key:2,class:"info"},ip=["href"],rp={key:3,class:"info"},cp=["href"],up={class:"p-booking__right"},dp={key:0,class:"perk-banner-desktop"},vp={class:"p-booking__detailedReview card right","data-testid":"checkout-booking-summary"},mp={key:0,class:"p-booking__selectedSource"},pp={class:"p-booking__selectedSource__value"},hp={class:"p-booking__detailedReview__header"},_p={class:"p-booking__detailedReview__header__image radius_md"},yp={class:"p-booking__detailedReview__header__content",style:{width:"100%"}},fp={class:"hotel-rating-wrapper flex align-items-center",style:{"margin-bottom":"8px"}},kp={class:"p-booking__detailedReview__header__content__address",style:{display:"flex","align-items":"center"}},gp={class:"p-booking__detailedReview__header__image radius_md"},bp=["src"],wp={class:"p-booking__detailedReview__header__content"},Cp={key:0,class:"hotel-rating-wrapper flex align-items-center"},Dp={class:"p-booking__detailedReview__header__content__address"},Np={key:1,class:"rating"},Pp={class:"rating__score__content"},Ap={key:0,class:"rating__score__content__text"},$p={class:"rating__score__content__reviews"},Vp={class:"p-booking__detailedReview__checkin-checkout"},Rp={class:"p-booking__detailedReview__checkin-checkout__title"},Ip={class:"p-booking__detailedReview__checkin-checkout__values"},Fp={key:1},xp={class:"font-semibold mb-1"},Sp={class:"p-booking__detailedReview__roomDetails"},Ep={key:0,class:"remarks-section-container"},Tp={class:"remarks-header-section"},Lp={class:"remarks-header-title"},Up={class:"p-booking__detailedReview__roomDetails__room__index"},Op={key:0},Mp={key:0,class:"perk-pills-content"},Bp={class:"p-booking__detailedReview__roomDetails__room__name-detail"},qp={key:2,class:"text-xs text-400"},Hp={key:3,class:"text-xs text-400"},Gp={class:"Cancelation-btn"},jp={key:2,class:"p-booking__detailedReview__roomDetails__room__tags-price"},Wp={class:"p-booking__total__taxes-included"},zp={class:"p-booking__total__main total"},Yp={class:"shared-font-title"},Qp={key:0,class:"price shared-font-price"},Jp={key:0,class:"p-booking__total__main"},Kp={class:"flex align-items-center gap-2"},Zp={class:"shared-font-title"},Xp={class:"shared-font-price"},eh={key:2,class:"p-booking__total__main total"},th={class:"shared-font-title"},oh={key:0,class:"price shared-font-price"},ah={key:3,class:"pay-at-property-message w-full border-top-1 border-bottom-none border-left-none border-right-none border-dashed border-100 pt-3"},sh={class:"text-md font-semibold flex items-center"},lh={class:"pay-at-property-title text-sm mb-2",style:{color:"var(--theme-success-500)"}},nh={class:"pay-at-property-content text-500 text-sm font-light"},ih={key:0,class:"flex justify-content-between"},rh={class:"flex align-items-center gap-2 shared-font-title"},ch={class:"shared-font-price"},uh={key:1,class:"flex justify-content-between"},dh={class:"flex align-items-center gap-2 shared-font-title"},vh={class:"shared-font-price"},mh={key:5,class:"p-booking__uber"},ph={class:"p-booking__uber-text"},hh={class:"p-booking__uber-text-title shared-font-title"},_h={key:0,class:"p-booking__uber-text-amount shared-font-price"},yh={key:6,class:"p-booking__uber"},fh={class:"p-booking__uber-text"},kh={class:"p-booking__uber-text-title shared-font-title"},gh={class:"p-booking__uber-text-subtitle"},bh={key:0,class:"p-booking__uber-text-amount shared-font-price"},wh={key:7,class:"total-price","data-testid":"checkout-total-price",itemscope:"",itemtype:"https://schema.org/Offer https://schema.org/LodgingReservation",itemprop:"makesOffer"},Ch=["content"],Dh=["content"],Nh={key:0,itemscope:"",itemtype:"https://schema.org/CompoundPriceSpecification",itemprop:"priceSpecification"},Ph=["content"],Ah=["content"],$h={key:1,class:"billing-item"},Vh={class:"billing-item-name"},Rh={class:"item-name shared-font-title"},Ih={class:"billing-item-price shared-font-price",style:{color:"green"}},Fh={key:0,class:"voucher-discount-type"},xh={key:0,class:"font-light text-400"},Sh={key:0,class:"price total"},Eh={key:0,class:"text-400 font-xxs"},Th={key:1,class:"grand-total-sub"},Lh={key:3},Uh={key:4,class:"p-booking__payment-schedule"},Oh={class:"p-booking__payment-schedule__title"},Mh={class:"p-booking__total__taxes-excluded"},Bh={class:"icon-text"},qh={class:"text"},Hh={class:"price"},Gh={class:"p-booking__total__taxes-excluded is-secondary"},jh={class:"text"},Wh={class:"price"},zh={key:0},Yh={key:5,class:"p-booking__total__taxes-excluded"},Qh={class:"icon-text"},Jh={class:"text"},Kh={class:"price"},Zh={key:6,class:"text-400 font-xxs"},Xh={key:8,class:"mt-auto w-full"},e_={key:9,class:"agency-price-breakdown"},t_={key:0,class:"agency-price-breakdown__card"},o_={class:"agency-price-breakdown__row"},a_={class:"agency-price-breakdown__label"},s_={class:"agency-price-breakdown__percent"},l_={class:"agency-price-breakdown__amount"},n_={class:"agency-price-breakdown__row"},i_={class:"agency-price-breakdown__label"},r_={class:"agency-price-breakdown__amount"},c_={class:"no-rates-available-container"},u_={class:"no-rates-available-content"},d_={class:"no-rates-available-text"},v_={class:"no-rates-available-container"},m_={class:"no-rates-available-content"},p_={class:"no-rates-available-text"},h_=100,__=$e({__name:"Checkout",setup(m){const{t:n,locale:v}=Re(),{isGrabPreset:b}=wn(),{isQueryMode:k,stayBannerAppearance:_}=di(),V=S(()=>U.value.hideLoyaltyBannerOnCheckout&&!is()?!1:k.value&&(wt.value??0)>0?!0:(mt.value??0)>0&&(Cn("appearance.label")||is())),g=c(null),C=c(200);let A=null;const N=c(null),z=c(!1);let L=null;te(N,l=>{L?.disconnect(),z.value=!1,l&&(L=new IntersectionObserver(([o])=>{z.value=!!o?.isIntersecting}),L.observe(l))});const R=S(()=>
1{if(!V.value)return{};const l={};let o,p;return k.value&&(o=_.value?.backgroundColor||be.loyalty?.program?.appearance?.stayBanner?.backgroundColor,p=_.value?.textColor||be.loyalty?.program?.appearance?.stayBanner?.textColor),o=o||be.loyalty?.program?.appearance?.bgColor,p=p||be.loyalty?.program?.appearance?.textColor,o&&(l["--checkout-loyalty-bar-bg"]=o),p&&(l["--checkout-loyalty-bar-text"]=p),l}),Z=Dn(),T=S(()=>gs().privacyNotice),I=S(()=>gs().terms),M=l=>{const o=l.target;if(!o)return;const p=o.closest("a");if(!p)return;l.preventDefault();const r=p.href;Jn()?Kn().openExternalLink(r):window.open(r,"_blank","noopener,noreferrer")},U=c(be?.project?.settings||{}),De=S(()=>U.value.showSimplifiedPriceDisplay===!0),Q=c(""),ce=c(""),D=c(""),F=c(),P=ma(),xe=va(),se=S(()=>!!P.query.ratePlanId),me=c(""),Ye=S(()=>P.query.hotelId||me.value),$=c(),Se=c(),vt=c(!1),qe=c(null),zt=c(null),mt=c(void 0),$t=c(null),Yt=c(void 0),Qt=S(()=>$.value?Ps($.value):!1),Ee=c(""),Te=c(""),X=c([]),_o=S(()=>btoa(JSON.stringify(X.value))),Qe=c(1),Je=c([]),st=c([]),O=c([]),G=c([]),Y=c([]),pt=S(()=>{if(!q)return[];const l=[];return X.value.forEach((o,p)=>{for(let u=0;u<o.adults;u++)l.push({roomIndex:p,guestIndex:u,isChild:!1,occupancy:o});const r=o.children?.length||0;for(let u=0;u<r;u++)l.push({roomIndex:p,guestIndex:o.adults+u,isChild:!0,occupancy:o})}),l}),yo=S(()=>pt.value.length),E=l=>{Y.value=Array.from({length:l},()=>({firstName:!1,lastName:!1,email:!1,phoneDetails:!1}))},pe=c(!1),ue=c(!1),ye=c(!1),le=c(null),ht=S(()=>{const l=n("booking.repriceAvailableDescription","The rate you selected is no longer available. The same room is available at an updated price:");if(!le.value)return l;const o=J(le.value.newPrice,{currency:le.value.prebookRate.currency});return`${l} ${o}`}),Pe=c(""),Le=c(!0),rt=c(""),fe=c(""),Jt=c([]),Ue=c(""),ne=c("");let de=c(be.project.settings?.paymentProvider);const lt=c(null),pa=c(null),Kt=c(!1),fo=c(0),ko=c(!1),go=c(!1),As=c("card"),bo=c(""),Zt=c(!1),$s=c(!!de.value),ha=c(!1),Vt=c(!1),Rt=c(!1),It=c(!1),Ft=c(""),Ke=(()=>{try{const l=o=>o?Xn[o.toUpperCase()]??null:null;return l(be.geo?.country)||l(new Intl.Locale(navigator.language).region)||"1"}catch{return"1"}})(),ct=c(Ke),Ze=c(""),bt=c(!1),Xe=c(!1),wo=c(!1),Vs=c(!1),Xt=c(0),Oe=c(""),Ne=c(!1),_a=c(!1),{armAbandonmentWatch:Rs,disarm:ya}=ti(),eo=c(!0),et=c(!0),fa=c(""),to=c({}),ka=c(""),ga=c(""),ut=c({holderFirstName:"",holderLastName:"",holderEmail:""}),ba=da(),Co=c(!1),he=c(!1),wa=c(!0),Do=c(!1),oo=c(!1),wt=c(0),No=S(()=>P.query.rateSource),Ca=S(()=>No.value?ni(No.value,n):null),Ct=c(!1),Po=c(!1),xt=c([]),Da=c(!1),ao=c(!1),St=c(0),Ie=c(),Ao=c(!1),so=c(!1),$o=c(!1),Na=c(""),Vo=c(0),Ro=c({}),Io=c(!1),lo=c(""),Is=c(be.project.settings?.showTravelOption!==!1),_t=c(null),no=c(null),Fs=c(be.project.settings?.autoSelectCMIBasedOnLocationCurrency??!1),{currentPrebook:f,initialPrebook:io,wlBookingId:ro,uberOptions:Fo,esimplyOptions:xo,updatePrebookData:xs,checkPrebookAvailability:Ss,findRepriceAlternative:Es}=Ku(),co=l=>{const{prebookId:o,clientSecret:p,price:r,voucherTotalAmount:u}=xs(l,{initPaymentElement:()=>{}});Oe.value=o,zo.value=p,wt.value=r,Xt.value=u},Ts=()=>{le.value&&(je(ze.REPRICE_ALTERNATIVE_ACCEPTED,We(He(),{originalPrice:le.value.originalPrice,newPrice:le.value.newPrice})),co(le.value.prebookRate),le.value=null,ye.value=!1,Wa())},Ls=()=>{je(ze.REPRICE_ALTERNATIVE_DECLINED,We(He(),{originalPrice:le.value?.originalPrice,newPrice:le.value?.newPrice})),le.value=null,ye.value=!1,ue.value=!0},{voucherCode:Et,voucherLoading:Us,isVoucherApplied:So,voucherErrorMessage:Os,voucherCurrency:Ms,uberSteps:Bs,selectedUberOption:yt,uberVoucherLoading:qs,uberOptions:tt,selectedUberOptionAmount:Eo,isUberVoucherActive:Pa,showUberDrawer:Aa,esimplyOptions:To,selectedEsimplyPackage:nt,isEsimplyActive:Lo,esimplyVoucherLoading:Hs,showEsimplyDrawer:uo,dateRanges:$a,payloadAddons:Gs,validateUberVoucher:js,resetEsimply:Ws,initEsimlyStartDate:Va,updateDateRanges:Uo,handleVoucherAction:zs,handleClearVoucherCode:Ys,handleResetUber:Qs,handleChangeUber:Js,handleRemoveUber:Ks,handleRemoveEsimply:Zs,getPackageName:Xs}=Xu(),vo=async l=>{await zs(l,f,io,P,x,co,ra,$.value?.country)},el=()=>{Ks(f,io,P,x,co)},tl=()=>{Zs(f,io,P,x,co)},ol=()=>{Qs(Xl)},al=()=>{Ws(),uo.value=!1},sl=()=>{Js()},ll=()=>{uo.value=!1},Oo=()=>f.value&&f.value.roomTypes[0]?.rates?f.value.roomTypes[0].rates.reduce((l,o)=>
1o.retailRate?.taxesAndFees?l+o.retailRate.taxesAndFees.filter(p=>p.included).reduce((p,r)=>p+r.amount,0):l,0):0,Ra=()=>f.value&&f.value.roomTypes[0]?.rates?f.value.roomTypes[0].rates.reduce((o,p)=>p.retailRate?.total?o+p.retailRate.total.reduce((r,u)=>r+u.amount,0):o,0)-Oo():0,Mo=()=>Ie.value?Oo()+Number(Fe.value):Oo()||0,Ia=S(()=>{const l=G.value.reduce((o,p,r)=>{const u=p.mappedRoomId||p.name;return o[u]?(o[u].count+=1,o[u].indices.push(r),p.retailRate?.total&&o[u].totalRate?.total&&(o[u].totalRate.total=o[u].totalRate.total.map((h,_e)=>({...h,amount:h.amount+(p.retailRate?.total?.[_e]?.amount||0)}))),p.commission&&o[u].commission?o[u].commission=o[u].commission.map((h,_e)=>({...h,amount:h.amount+(p.commission?.[_e]?.amount||0)})):p.commission&&!o[u].commission&&(o[u].commission=[...p.commission])):o[u]={...p,count:1,indices:[r],totalRate:p.retailRate?{...p.retailRate}:{}},o},{});return Object.values(l)}),Tt=S(()=>Nn(Ia.value,{sourceRoom:!0})),Fa=S(()=>de.value==="cmi"&&ge.value==="payNow"?n("booking.form.ProceedToPayment"):de.value==="grab"&&ge.value==="payNow"?n("confirmation.continue"):n("booking.form.CompleteBooking")),Lt=S(()=>xt.value&&xt.value.filter(l=>!l.included)),Fe=S(()=>Lt.value&&Lt.value.reduce((l,o)=>l+o.amount,0).toFixed(2)),ot=S(()=>f.value?So.value&&f.value.sellingPriceToUser?f.value.sellingPriceToUser:f.value.price||0:0),Bo=S(()=>ot.value+(xt.value&&xt.value.filter(l=>!l.included).reduce((l,o)=>l+o.amount,0))),mo=c(!1),qo=S(()=>x.agentMargin??x.agentDefaultMargin),Ho=S(()=>
1{if(qo.value==null)return null;const l=ot.value,o=Vo.value>0?Vo.value:l-l/(1+qo.value/100);return{netPrice:l-o,markupAmount:o}}),nl=S(()=>{const l=f.value?.paymentTypes?.some(p=>String(p??"").toLowerCase()==="pay_later")??!1,o=f.value?.roomTypes?.[0]?.rates?.[0]?.cancellationPolicies?.refundableTag==="RFN";return l&&o}),Dt=S(()=>nl.value?q||U.value?.isPayLaterEnabled===!0:!1),il=S(()=>{let l=0;return f.value?.paymentTypes?.includes("CREDIT")&&St.value>0&&q&&l++,l++,Dt.value&&l++,l}),xa=c({token:"",cvv:"",expireDate:""}),rl=S(()=>`${Ce.fromISO(Ee.value).toLocaleString({day:"numeric",month:"short",year:"numeric"})} - ${Ce.fromISO(Te.value).toLocaleString({day:"numeric",month:"short",year:"numeric"})} (${Qe.value} ${Qe.value>1?n("booking.nights"):n("booking.night")})`),ft=S(()=>G.value.map(l=>$.value?.rooms?.find(o=>o.id===l.mappedRoomId))),Sa=l=>be.project.settings?.showCupidRoomName&&l.indices&&l.indices.length>0&&l.indices[0]!==void 0&&ft.value[l.indices[0]]?.name&&ft.value[l.indices[0]]?.name||l.name,Go=l=>{const o=G.value[l];return o?be.project.settings?.showCupidRoomName&&ft.value[l]?.name&&ft.value[l]?.name||o.name:""},Ut=l=>{const o=ri(l,n);return o?`, ${o}`:""},Ea=c(""),Ta=c(0),ie=S(()=>Pn(Ea.value,Ta.value)),kt=S(()=>ie.value?.mandatoryFields?.includes("phoneDetails")||!1),it=(l=Xe.value)=>{if(!kt.value&&!Ze.value.trim())return bt.value=!1,!1;const o=!Ze.value.trim();if(kt.value&&o)return bt.value=!!l,!0;const p=!!ct.value,u=Ze.value.replace(/\D/g,"").length>=5,h=p&&u;return bt.value=l?!h:!1,!h};te(()=>kt.value,()=>{it(!1)},{immediate:!0}),te([ct,Ze],([l,o])=>{const p=l?`+${l}`:`+${Ke}`,u=(o||"").replace(/[^0-9]/g,"").replace(/(\d{3})(?=\d)/g,"$1 ");Ft.value=`${p} ${u}`.trim(),o!==""||Xe.value?(Xe.value=!0,it(!0)):it(!1)});const cl=(l,o=Ke)=>{if(!l?.trim())return{countryCode:o,areaCode:"-",number:"0000000"};const p=l.trim().replace(/[^\d+]/g,"");let r=o,u=p;if(p.startsWith("+")){const h=p.match(/^\+(\d{1,4})/);h?(r=h[1],u=p.substring(h[0].length)):u=p.substring(1)}return{countryCode:r,areaCode:"-",number:u||"0000000"}},jo=l=>{const o=(()=>{if(de.value==="pci"){const B=`${x.guest?.firstName??ut.value.holderFirstName??""} ${x.guest?.lastName??ut.value.holderLastName??""}`.trim();return{tokenizationId:xa.value.token,expireDate:xa.value.expireDate,holderName:B,method:"CREDIT_CARD_TOKEN",paymentType:ge.value==="payAtProperty"?"PAY_AT_PROPERTY":"CREDIT_CARD"}}return ge.value==="payWithCreditLine"?{method:"NONE"}:ge.value==="payLater"&&Dt.value?{method:"PAY_LATER"}:de.value&&de.value!=="stripe"&&ge.value==="payNow"?{method:"THIRD_PARTY"}:{method:"TRANSACTION_ID",transactionId:f.value?.transactionId}})(),p=(B,oe=!1)=>{let re="",Ge=Ke;if(B.phoneDetails)re=B.phoneDetails.replace(/\D/g,""),Ge=B.phoneCountryCode||Ke;else if(oe&&Ft.value){const Me=cl(Ft.value,Ke);Me.number&&(re=Me.number,Ge=ct.value||Ke)}return re?{countryCode:Ge,areaCode:"-",number:re}:null},r=()=>{const B=[],oe=[],re=[];let Ge=0;return X.value.forEach((Me,ts)=>{const on=Me.adults+(Me.children?.length||0),os=[];for(let aa=0;aa<on;aa++){const as=O.value[Ge],sa=as?.firstName?.trim()||"",la=as?.lastName?.trim()||"";os.push({firstName:sa,lastName:la,email:Q.value}),aa===0?B.push({occupancyNumber:ts+1,remarks:fe.value,firstName:sa,lastName:la,email:Q.value}):oe.push({firstName:sa,lastName:la}),Ge++}re.push({rateId:G.value[ts]?.rateId||"",remarks:fe.value,guests:os})}),{guests:B,additionalPassengers:oe,rates:re}},u=q&&he.value?r():null,h=u?u.guests:O.value.slice(0,X.value.length).map((B,oe)=>{const re={occupancyNumber:oe+1,remarks:fe.value,firstName:q||he.value?B.firstName.trim():ce.value.trim(),lastName:q||he.value?B.lastName.trim():D.value.trim(),email:he.value&&B.email||Q.value},Ge=p(B,!he.value);return Ge&&(re.phoneDetails=Ge),re}),_e=u?.additionalPassengers,ve=(()=>{if(q)return u?u.rates:X.value.map((B,oe)=>{const re=O.value[oe];return{rateId:G.value[oe]?.rateId||"",remarks:fe.value,guests:[{firstName:re?.firstName?.trim()||"",lastName:re?.lastName?.trim()||"",email:Q.value}]}})})();return{guests:h,holder:(()=>{const B=q&&O.value[0]?O.value[0]:null,oe={firstName:B?.firstName?.trim()||ce.value.trim(),lastName:B?.lastName?.trim()||D.value.trim(),email:Q.value};return!q&&Ze.value&&(oe.phoneDetails={countryCode:ct.value||Ke,areaCode:"-",number:Ze.value||"0000000"}),ie.value?.holderFields?.includes("billingAddress")&&(oe.address=F.value),oe})(),prebookId:Oe.value,payment:o,trackingId:P.query.trackingId,...Yn()&&{sessionless:!0},...pe.value&&{vatNumber:Pe.value,companyName:rt.value},clientReference:f.value?.clientReference,...q&&lo.value.trim()&&{agencyReference:lo.value.trim()},..._e?.length&&{additionalPassengers:_e},...ve?.length&&{rates:ve},guestPayment:{payee_first_name:ut.value.holderFirstName||x.guest?.firstName,payee_last_name:ut.value.holderL
1astName||x.guest?.lastName,method:l},loyalty:(()=>{const B=Wn({program:qe.value,bookingTotal:wt.value,query:be.query,variant:"checkout",formatRedemptionAmount:oe=>J(oe,{currency:f.value?.currency})});return zn({loyaltyProgram:qe.value,loyaltyTier:zt.value,membershipNumber:Se.value,loyaltyPoints:mt.value,partnerResponse:Yt.value,queryCalculation:B})})()}},La=async()=>{const l=ie.value?.is2faPaymentActive??!1,{paymentProvider:o,paymentMethod:p}=Wo(),r=jo(p),u=r.holder,h=await Cs(Oe.value,{firstName:u?.firstName||ce.value,lastName:u?.lastName||D.value,email:u?.email||Q.value,address:"",phone:"",cancelUrl:window.location.href,bookingData:r,use3dSecure:l,successUrl:`${window.location.origin}/payment-callback?prebookId=${Oe.value}`,paymentProvider:o,paymentMethod:p});h?.redirectUrl?window.location.href=h.redirectUrl:h.gatewayUrl&&h.payload?dl(h.gatewayUrl,h.payload):console.error("Cannot process payment:",h)},Wo=()=>{const l=ge.value;if(l==="payWithCreditLine")return{paymentProvider:"creditLine",paymentMethod:"creditLine"};if(l==="payAtProperty")return{paymentProvider:"payAtProperty",paymentMethod:"payAtProperty"};if(l==="payLater"&&Dt.value)return{paymentProvider:"payLater",paymentMethod:"PAY_LATER"};const o=de.value||"stripe",p=de.value||As.value;return{paymentProvider:o,paymentMethod:p}},ul=l=>new Intl.NumberFormat(v.value).format(l),dl=(l,o)=>{const p=document.createElement("form");p.method="post",p.action=l,p.style.display="none";for(const[r,u]of Object.entries(o)){const h=document.createElement("input");h.type="hidden",h.name=r,h.value=String(u),p.appendChild(h)}document.body.appendChild(p),p.submit(),document.body.removeChild(p),Ga.value=!0,Ne.value=!0},{handleGrabPayment:vl,shouldUseGrab:ml}=vi({prebookId:Oe,firstName:ce,lastName:D,email:Q,phoneDetails:Ft,formBookingInputData:jo,getPaymentDetails:Wo,isLoading:Ne});(()=>{ml()&&(de.value="grab")})();const pl=()=>{Zt.value=!1;const l=P.query.attempt?Number(P.query.attempt)+1:1;xe.push({query:{...P.query,attempt:l}})},Ua=l=>{switch(Do.value=!0,l){case"cancellation":oo.value=!1,bo.value=n("booking.form.cancellationPolicy");break;case"terms":oo.value=!0,bo.value=n("termsAndPolicy.termsAndConditionsTitle");break;default:oo.value=!1}},hl=l=>/^[^0-9]+$/.test(l.trim()),Ot=l=>l.trim().length>0&&hl(l)&&!mi(l),Oa=l=>/^(?=[a-zA-Z0-9@.!#$%&'*+/=?^_`{|}~-]{6,254}$)(?=[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:(?:\.(?!\.))[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:(?=[a-zA-Z0-9-]{1,63}\.)[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*\.){1,8}[a-zA-Z]{2,63}$/.test(l.trim()),_l=l=>l.trim().length>0,Ma=(l,o)=>!o(l),Ba=()=>{Vt.value=!Oa(Q.value)},qa=()=>{Rt.value=!Ot(ce.value)},yl=()=>{wo.value=!(F.value&&F.value.line1.trim()&&F.value.city.trim()&&F.value.stateProvinceCode.trim()&&F.value.countryCode.trim()&&F.value.postalCode.trim())},Ha=()=>{It.value=!Ot(D.value)},fl=()=>{if(!Se.value||Se.value.trim()==="")return vt.value=!1,!1;const l=Mn(Se.value);return vt.value=!l.isValid,!l.isValid},zo=c(""),Ga=c(!1),kl=S(()=>{const l=x.guest?.email;if(!l)return"";const[o,p]=l.split("@");return`${o.charAt(0)+"*".repeat(o.length-1)}@${p}`}),He=()=>({prebookId:Oe.value||f.value?.prebookId,hotelId:me.value,wlBookingId:ro.value,paymentOption:ge.value,paymentProvider:de.value||"stripe",mode:"checkout"}),Yo=()=>({hotelId:me.value,hotelName:$.value?.name,hotelCity:$.value?.city,checkin:Ee.value,checkout:Te.value,rooms:G.value.length.toString(),adults:Je.value.join(","),children:st.value.flat().join(","),occupancies:btoa(JSON.stringify(X.value)),prebookId:Oe.value,city:$.value?.city,price:f.value?.price,currency:f.value?.currency}),gl=()=>{ra("booking_initiated",{...Yo(),lang:v.value,trackingId:P.query.trackingId,cartId:Qn(),bookingId:ro.value})},ja=l=>{ra("booking_payment_failed",{...Yo(),error:l})},bl=async()=>{await _n(),Array.from(document.querySelectorAll("[data-error-field]")).sort((o,p)=>o.getBoundingClientRect().top-p.getBoundingClientRect().top)[0]?.scrollIntoView({behavior:"smooth",block:"center"})},Wa=async()=>{if(x.isImpersonating){ba.add({severity:"warn",summary:n("impersonation.active"),detail:n("impersonation.bookingNotAllowed"),life:5e3}),Ne.value=!1;return}Ne.value=!0,et.value=!0;const l=lt.value?.isWalletSelected?.()===!0;je(ze.SUBMIT_STARTED,We(He()));const o={};he.value||Ka.value?O.value.forEach((j,B)=>{dt("firstName",B),dt("lastName",B),(Y.value[B]?.firstName||Y.value[B]?.lastName)&&(et.value=!1,o.guestPerRoom=!0)}):E(X.value.length),wa.value?ha.value=!1:(ha.value=!0,et.value=!1,o.terms=!0),q||(Ba(),qa(),Ha()),q||(Xe.value=!0,it(!0)&&(et.value=!1,o.phone=!0)),ie.value?.holderFields?.includes("billingAddress")&&(yl(),wo.value&&(et.value=!1,o.billingAddress=!0)),Vt.value&&(et.value=!1,o.email=!0),!q&&(Rt.value||It.value)&&(et.value=!1,o.guestName=!0);const p=lt.value?.isCardHolderFormVisible?.()===!0;if(!U.value.hidePrices&&p?(Vl(),Rl(),(ko.value||go.value)&&(et.value=!1,o.payeeName=!0)):(ko.value=!1,go.value=!1),!et.value){je(ze.VALIDATION_FAILED,We(He(),{validationFailures:o})),await bl(),Ne.value=!1;return}if(l&<.value){const{error:j}=await lt.value.submitStripeElements();if(j){Ne.value=!1;return}}const{available:r,error:u}=await Ss(P,x,{voucherCode:Et.value,isUberVoucherActive:Pa.value,selectedUberOption:yt.value,isEsimplyActive:Lo.value,selectedEsimplyPackage:nt.value,dateRanges:$a.value,hotelCountry:$.value?.country});je(ze.SILENT_PREBOOK_CHECK,We(He(),{available:r,...ca(u)}));const h=Yo();if(!r){je(ze.PREBOOK_UNAVAILABLE,We(He(),ca(u)));const j=await Es(me.value,Ee.value,Te.value,X.value);j?(le.value=j,je(ze.REPRICE_ALTERNATIVE_OFFERED,We(He(),{originalPrice
1:j.originalPrice,newPrice:j.newPrice})),ye.value=!0):ue.value=!0,Ne.value=!1;return}gl(),lt.value?.selectedPaymentOption&&(ge.value=lt.value.selectedPaymentOption);const{paymentMethod:_e}=Wo(),ve=jo(_e);if(pa.value=ve,de.value==="grab")return vl(h);if(de.value==="externalCheckout"&&ge.value==="payNow")return je(ze.PAYMENT_DELEGATED,We(He(),{provider:"externalCheckout"})),La().then(()=>{}).catch(j=>{ja(j?.message||j?.response?.data?.error||String(j)),ba.add({severity:"error",summary:n("confirmation.error"),detail:j,life:3e3})});je(ze.PAYMENT_DELEGATED,We(He(),{provider:de.value||"stripe"})),lt.value&&await lt.value.handlePay(ve),Ne.value=!1},wl=l=>{ge.value=l},Cl=({firstName:l,lastName:o})=>{ut.value.holderFirstName=l,ut.value.holderLastName=o},Dl=l=>{$s.value=l},Nl=l=>{je(ze.BOOKING_CONFIRMED,We(He(),{bookingId:l})),_a.value=!0,ya(),Ne.value=!1,xe.push({name:"confirmation",params:{id:l}})},Pl=l=>{je(ze.STRIPE_CONFIRM_FAILED,We(He(),{stage:"checkout_payment_section",errorMessage:l})),ja(l),Ne.value=!1},Al=()=>{Qe.value=Ee.value&&Te.value?Ce.fromISO(Te.value).diff(Ce.fromISO(Ee.value),"days").days:1,Je.value=ds(X.value),st.value=vs(X.value),O.value=Je.value.map(()=>{const l={firstName:"",lastName:"",email:"",phoneCountryCode:Ke};return ie.value?.guestFields.includes("phoneDetails")&&(l.phoneDetails=""),Y.value.push({firstName:!1,lastName:!1,email:!1,phoneDetails:!1}),l})},$l=(l,o,p,r)=>{Ga.value=!1,Ne.value=!1,ka.value=r,ga.value=o,fa.value=p,to.value.attempt=P.query.attempt,Zt.value=!0,console.error(l)},dt=(l,o)=>{!he.value&&!Ka.value||(l==="email"?Y.value[o][l]=Ma(O.value[o][l],Oa):Y.value[o][l]=Ma(O.value[o][l],Ot))},Vl=()=>{ko.value=!Ot(ut.value.holderFirstName)},Rl=()=>{go.value=!Ot(ut.value.holderLastName)},za=()=>{Le.value=_l(rt.value)},Qo=l=>{if(!me.value){xe.push({name:"home"});return}xe.push({name:"hotel",params:{id:me.value},query:{placeId:P.query.placeId,checkin:Ee.value,checkout:Te.value,rooms:G.value.length.toString(),adults:Je.value.join(","),children:st.value.flat().join(","),occupancies:btoa(JSON.stringify(X.value)),source:P.query.source},hash:l?`#${l}`:void 0})},Mt=(l,o)=>{const p=l>1?n("booking.adultsNumber",{number:l}):n("booking.adultNumber",{number:l});if(o&&o.length){const r=o.length>1?n("booking.childrenNumber",{number:o.length}):n("booking.childNumber",{number:o.length}),u=o.map(h=>h===0?"<1y":`${h}y`).join(", ");return`${p} + ${r} (${u})`}return p},Il=l=>{Kt.value=!0,fo.value=l},Jo=()=>{$o.value=!0},Fl=S(()=>{const l=f.value?.roomTypes?.[0]?.rates?.[0],o=r=>typeof r!="string"?!1:r.replace(/<br\s*\/?>/gi,"").replace(/ /gi," ").replace(/<\/?[^>]+(>|$)/g,"").trim().length>0,p=r=>Array.isArray(r)&&r.length>0;return o(l?.remarks)||o(l?.specialRemarks)||p(l?.optionalFees)||p(l?.mandatoryFees)||o(l?.knowBeforeYouGo)||o(f.value?.checkinDetail)||o(f.value?.CheckoutDetail)}),xl=c(""),Sl=l=>{const o=l.roomTypes?.[0]?.rates?.[0];o&&(zo.value=l.secretKey||"",G.value=l.roomTypes?.[0]?.rates||[],Vo.value=l.commission||0,Ie.value=Array.isArray(l.paymentTypes)&&l.paymentTypes.length===1&&["PROPERTY_PAY","PAY_AT_PROPERTY"].includes(l.paymentTypes[0]),ao.value=l.paymentTypes?.includes("CREDIT")||!1,St.value=l.creditLine?.remainingCredit||0,(!ao.value||St.value<=0)&&(ge.value="payNow"),Ro.value=o.formattedCancellationPolicies,Jt.value=Ro.value?.policies,Tl(),ne.value=(o.remarks||"").replace(/<br\/>/gm,""),Ue.value=ne.value.length>200?ne.value.slice(0,200)+"...":ne.value,ne.value&&El(),xt.value=o.retailRate?.taxesAndFees||[],Io.value=o.cancellationPolicies?.refundableTag==="RFN")},El=()=>{Bn(Oe.value).then(o=>{ne.value=o.enhancedData.remarks.replace(/^(<br ?\/?>){1,}/,""),Ue.value=ne.value.length>600?ne.value.slice(0,600)+"...":ne.value}).catch(o=>{console.error(o)})},Tl=()=>{const l=Jt.value?.[0];if(l&&"cancelTimeFrame"in l){const o=l;xl.value=o.cancelTimeFrame?.start||o.cancelTimeFrame?.end||"",Na.value=o.cancelTimeFrame?.end||""}},Ll=()=>{const l=Z.$state.guests?.[0]||{},o=Z.$state.holder||{};if(!q){const p=be.project.settings?.splitFullNameOnSSOLogin;ce.value=p?ms(x.guest)||o.firstName||l.firstName||"":o.firstName||l.firstName||ms(x.guest)||"",D.value=p?ps(x.guest)||o.lastName||l.lastName||"":o.lastName||l.lastName||ps(x.guest)||"",Q.value=o.email||l.email||rs(x.guest)||"",console.log("[Checkout] setupGuestForm name sources:",{holder:{firstName:o.firstName,lastName:o.lastName},xdataGuest:{firstName:l.firstName,lastName:l.lastName},storeGuest:{firstName:x.guest?.firstName,lastName:x.guest?.lastName},resolved:{firstName:ce.value,lastName:D.value}})}Nt(!0),Z.$state.discount?.code&&(Et.value=Z.$state.discount.code,vo("promo"))},Ul=()=>{xo.value&&xo.value.length>0&&(To.value=[...xo.value],nt.value?.validity_days&&Uo()),Fo.value&&Fo.value.length>0&&(tt.value=[...Fo.value],tt.value.length>0&&(yt.value=tt.value[0],Eo.value=tt.value[0]?.usd_amount||0))},Ol=c(be.project.settings?.hideCheckoutBackButton||!1),Ml=async()=>{const l=P.query.prebookId,o=P.query.offerId;if(!l&&!o)throw new Gt("No valid prebookId or offerId found in route query");let p,r={},u="",h=P.query.occupancies?qn(Hn(P.query.occupancies),P.query.children):void 0,_e=null,ve=null,j;if(l){const re=await ua({prebookId:l,source:P.query.source});p=re.prebookHotelRate,r=re.addons,u=re.id,h=h||re.occupancies,_e=re.loyaltyProgram||null,ve=re.loyaltyTier||null,j=re.loyaltyPoints}else if(o){const Ge=(await Gn(o,{trackingId:P.query.trackingId,guestId:x.guest?.id,source:P.query.source,variant:P.query.variant,checkin:P.query.checkin,checkout:P.query.checkout,rooms:p
1arseInt(P.query.rooms)||h?.length||1,occupancies:h})).prebookHotelRate?.prebookId;if(!Ge)throw new Gt("Failed to generate prebookId from offerId");const Me=await ua({prebookId:Ge,source:P.query.source});p=Me.prebookHotelRate,r=Me.addons,u=Me.id,h=h||Me.occupancies,_e=Me.loyaltyProgram||null,ve=Me.loyaltyTier||null,j=Me.loyaltyPoints}if(!p)throw new Gt("Failed to fetch prebook data");const B=await jn({id:p.prebookId||p.offerId||"",amount:p.price,currency:p.currency,prebook:p,backendPoints:j});j=B.points;const oe=Bl(p,r,u,h);return{prebookRate:p,validationData:oe,addons:r,bookingId:u,loyaltyProgramData:_e,loyaltyTierData:ve,loyaltyPointsData:j,loyaltyEstimatedFiatData:B.estimatedFiat??null,loyaltyPartnerResponseData:B.rawResponse??void 0}},Bl=(l,o,p,r)=>{const u=l.hotelId,h=l.checkin||"",_e=l.checkout||"";if(!u)throw new Gt("hotelId is required but not found in prebook data");const ve=r||[],j=ds(ve),oe=vs(ve).join(",");return{addons:o,bookingId:p,checkin:h,checkout:_e,occupancies:ve,adults:j,children:oe,source:"direct",variant:"default",guestId:x.guest?.id,trackingId:P.query.trackingId,attempt:P.query.attempt}};rn(async()=>{try{eo.value=!0;const{prebookRate:l,validationData:o,addons:p,bookingId:r,loyaltyProgramData:u,loyaltyTierData:h,loyaltyPointsData:_e,loyaltyEstimatedFiatData:ve,loyaltyPartnerResponseData:j}=await Ml();Oe.value=l.prebookId||"",me.value=l.hotelId||"",Ee.value=o.checkin,Te.value=o.checkout,Va(Ce.fromISO(o.checkin).toJSDate()),X.value=o.occupancies,qe.value=u,zt.value=h,mt.value=_e,$t.value=ve,Yt.value=j,ve&&sessionStorage.setItem("loyaltyEstimatedFiat",JSON.stringify(ve)),await Gl(),ql(),Al(),f.value=l,io.value=l,ro.value=r,wt.value=l.price||0,p&&(tt.value=p?.uber||[],To.value=p?.esimply||[]),Gs.value=l.addonsRequest||[],Hl(),Sl(l),Ll(),Ul(),eo.value=!1}catch(l){console.error("Failed to initialize checkout:",l),eo.value=!1,Qo()}}),cn(()=>{window.addEventListener("scroll",Ya),Za(),g.value&&(A=new ResizeObserver(p=>{const r=p[0]?.target?.getBoundingClientRect().height;r&&(C.value=Math.ceil(r))}),A.observe(g.value)),Rs({prebookId:()=>Oe.value,isActive:()=>!!Oe.value,isCompleted:()=>_a.value||Ne.value}),nt.value&&nt.value.validity_days&&Uo(),q||(ce.value=x.guest?.firstName||"",D.value=x.guest?.lastName||"",Q.value=x.guest?.email||""),tt.value&&tt.value.length>0&&(yt.value=tt.value[0],Eo.value=tt.value[0].usd_amount);const l=x.guest?.phoneNo,o=Ft.value||l||"";if(o){const p=Zn(o,ct.value);ct.value=p.dialCode,Ze.value=p.number.replace(/(\d{3})(?=\d)/g,"$1 ").trim(),it(!1)}});const ql=()=>{Co.value=!!(q&&x.guest?.bypassPayment),ge.value,Fs.value&&(x.currency==="MAD"?de.value="cmi":de.value=void 0),q&&(ke.value="myself",he.value=!1,Q.value=x.guest?.email||rs(x.guest)||""),An(),Wl(),Za()},Hl=()=>{to.value={prebookId:Oe.value,checkin:Ee.value,checkout:Te.value,rooms:G.value.length.toString(),adults:Je.value.join(","),children:st.value.flat().join(","),occupancies:btoa(JSON.stringify(X.value)),attempt:P.query.attempt,hotelId:me.value}},Gl=async()=>{for(const l of[1,2,3])try{const o=await $n({hotelId:me.value,occupancies:X.value});o&&($.value=o);return}catch(o){const p=o?.response?.status;if(je(ze.HOTEL_DETAILS_FAILED,We(He(),{...ca(o),attempt:l})),p===404){$l(o,n("booking.notAvailableHotel"),"../assets/no-rooms.svg",n("booking.tryAgainDifferentHotel"));return}console.error(o),await new Promise(r=>setTimeout(r,l*1e3))}},jl=l=>{fe.value=l},Wl=()=>{so.value=!1,fe.value=""},zl=c(!1),Ya=()=>{zl.value=window.scrollY>h_},Yl=c(!1),Ko=c(!1),Bt=c(!1),Qa=c(!1),Ja=c(!1),Ql=c(!1),ke=c("myself"),Ka=S(()=>q&&ke.value==="myself"),qt=c(""),Zo=c(""),Xo=c(""),Za=()=>{x.isMobile?(qt.value="400px ",Zo.value="100%",Xo.value="0px"):(qt.value="450px ",Zo.value="fit-content",Xo.value="24px")},Jl=()=>{Ql.value=!1,Qa.value=!1,Ja.value=!1,Ko.value=!1},Kl=()=>{Qa.value=!0},Xa=()=>{he.value=!0,ke.value="someoneElse",Nt()},es=()=>{he.value=!1,ke.value="myself",Nt()},Zl=()=>{Ko.value=!0,Ja.value=!1},Xl=c(!1);te(G,l=>{if(q){he.value&&Nt();return}if(ke.value==="myself"){const o=l.length>1;he.value!==o&&(he.value=o,Nt())}}),te(()=>[he.value,pt.value.length],([l,o])=>{q&&l&&O.value.length!==o&&Nt()}),te(f,l=>{Ea.value=f.value?.supplier||"",Ta.value=f.value?.supplierId||0}),te($,async l=>{if(ie.value?.showLocalCurrencyHotelPAP){const o=(Ie.value,ot.value+Number(Fe.value||0)),p=await hs(f.value?.currency,$.value?.currency,o);p?_t.value=J(Number(p),{currency:$.value?.currency}):_t.value=J(o,{currency:f.value?.currency})+` (${f.value?.currency})`;const r=Number(Fe.value||0),u=await hs(f.value?.currency,$.value?.currency,r);u?no.value=J(Number(u),{currency:$.value?.currency}):no.value=J(r,{currency:f.value?.currency})+` (${f.value?.currency})`}}
1);const ge=c("payWithCreditLine");te(nt,l=>{l?.validity_days&&$a.value&&Uo()}),te(ge,l=>{l==="payNow"||l==="payAtProperty"||l==="payLater"?(ao.value=!1,Co.value=!!(q&&x.guest?.bypassPayment)):l==="payWithCreditLine"&&(ao.value=!0,Co.value=!0)}),te(il,l=>{l===1&&(f.value?.paymentTypes?.includes("CREDIT")&&St.value>0&&q?ge.value="payWithCreditLine":ge.value="payNow")},{immediate:!0}),un(()=>{window.removeEventListener("scroll",Ya),Yl.value=!1,ya(),A?.disconnect(),L?.disconnect()});const Nt=(l=!1)=>{const o=X.value.length;if(!o)return;const{guests:p=[],holder:r={}}=Z.$state,u=ie.value?.guestFields||[],h=p.slice(0,o);p.length&&h.length<o&&h.unshift({firstName:r.firstName||"",lastName:r.lastName||"",email:r.email||Q.value||"",...u.includes("phoneDetails")&&{phoneDetails:r.phoneDetails||""}}),l&&h.length&&!q&&(ke.value="someoneElse",he.value=!0);const _e=fe.value||"",ve=(j,B={})=>({occupancyNumber:j+1,remarks:_e,firstName:B.firstName||"",lastName:B.lastName||"",email:B.email||"",phoneCountryCode:B.phoneCountryCode||Ke});if(q){const j=he.value&&yo.value||o;O.value=Array.from({length:j},(B,oe)=>ve(oe,h[oe])),E(j);return}O.value=Array.from({length:o},(j,B)=>{const oe=ve(B,h[B]);return u.includes("phoneDetails")&&(oe.phoneDetails=h[B]?.phoneDetails||r.phoneDetails||""),oe}),E(o)},ea=S(()=>Vn($.value?.country,be.project.settings)),ta=S(()=>Rn($.value?.country,be.project.settings)),oa=c(null),en=l=>{oa.value=l,l&&Va(l)},tn=S(()=>{const l=f.value?.addonsRequest?.find(o=>o.addon==="esimply")?.addonDetails?.end_date;if(l)return new Date(l).toLocaleDateString(v.value);if(oa.value&&nt.value?.validity_days){const o=new Date(oa.value);return o.setDate(o.getDate()+nt.value.validity_days),o.toLocaleDateString(v.value)}return""});return(l,o)=>{const p=ws("i18n-t");return s(),i(W,null,[eo.value?(s(),i("div",ed,o[53]||(o[53]=[e("div",{class:"loader-content"},[e("div",{class:"spinner"})],-1)]))):d("",!0),e("div",td,[se.value&&Ye.value?(s(),i("meta",{key:0,itemprop:"identifier",content:Ye.value},null,8,od)):d("",!0),$.value?(s(),i(W,{key:1},[e("meta",{itemprop:"name",content:$.value.name},null,8,ad),se.value?d("",!0):(s(),i("meta",{key:0,itemprop:"identifier",content:$.value.id},null,8,sd)),e("div",ld,[e("meta",{itemprop:"addressCountry",content:$.value.country},null,8,nd),e("meta",{itemprop:"postalCode",content:$.value.zip},null,8,id),e("meta",{itemprop:"streetAddress",content:$.value.address},null,8,rd)])],64)):d("",!0),y(In,{hasSearchBar:!1}),y(Bc,{visible:Bt.value,"onUpdate:visible":o[0]||(o[0]=r=>Bt.value=r),currentPrebook:t(f)},null,8,["visible","currentPrebook"]),y(Fn,{visible:Ko.value,"modal-width":qt.value,"modal-height":Zo.value,"modal-border-radius":Xo.value,onClose:Jl,onContentReady:Kl},null,8,["visible","modal-width","modal-height","modal-border-radius"]),e("div",cd,[e("div",ud,[Ol.value?(s(),i("div",md)):(s(),i("div",{key:0,class:"back-container",onClick:o[1]||(o[1]=r=>Qo())},[e("div",dd,[y(we,{name:"chevron-left"}),e("span",vd,a(t(n)("checkout.backText")),1)])])),e("div",pd,[y(we,{name:"info-icon",color:"var(--theme-gray-600)",height:20,width:20}),e("p",null,a(t(n)("checkout.requiredFields")),1)]),$.value?.id&&t(po)($.value.id,Tt.value)&&t(x).isMobile?(s(),i("div",hd,[y(cs)])):d("",!0),e("div",_d,[e("div",{class:"p-booking__left",style:Pt(t(x).isMobile?{paddingBottom:`${C.value+16}px`}:void 0)},[t(q)?d("",!0):(s(),i("div",yd,[e("div",fd,[e("h3",null,a(t(n)("booking.form.yourDetails")),1),!t(xn)(t(x).guest)&&t(x).showLoginButton?(s(),i("a",{key:0,class:"sign-in",onClick:Zl},a(t(n)("checkout.signIn")),1)):d("",!0)]),e("div",kd,[e("div",gd,[e("div",bd,[e("div",wd,[e("label",Cd,[w(a(t(n)("booking.form.firstName.label"))+" ",1),o[54]||(o[54]=e("span",{class:"required-asterisk"},"*",-1))]),e("div",Dd,[y(t(ae),{modelValue:ce.value,"onUpdate:modelValue":o[2]||(o[2]=r=>ce.value=r),id:"firstName",placeholder:t(n)("booking.form.firstName.placeholder"),onInput:qa,class:ee([{invalid:Rt.value},"radius_md"]),required:"","data-testid":"first-name-input"},null,8,["modelValue","placeholder","class"]),!Rt.value&&ce.value?(s(),i("i",Nd)):d("",!0)]),Rt.value?(s(),i("small",Pd,[o[55]||(o[55]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.firstName.error")),1)])):d("",!0)]),e("div",Ad,[e("label",$d,[w(a(t(n)("booking.form.lastName.label"))+" ",1),o[56]||(o[56]=e("span",{class:"required-asterisk"},"*",-1))]),e("div",Vd,[y(t(ae),{modelValue:D.value,"onUpdate:modelValue":o[3]||(o[3]=r=>D.value=r),id:"lastName",placeholder:t(n)("booking.form.lastName.placeholder"),onInput:Ha,class:ee([{invalid:It.value}
1,"radius_md"]),required:"","data-testid":"last-name-input"},null,8,["modelValue","placeholder","class"]),!It.value&&D.value?(s(),i("i",Rd)):d("",!0)]),It.value?(s(),i("small",Id,[o[57]||(o[57]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.lastName.error")),1)])):d("",!0)])])]),e("div",Fd,[e("label",xd,[w(a(t(n)("booking.form.email.label"))+" ",1),o[58]||(o[58]=e("span",{class:"required-asterisk"},"*",-1))]),e("div",Sd,[y(t(ae),{modelValue:Q.value,"onUpdate:modelValue":o[4]||(o[4]=r=>Q.value=r),id:"email",placeholder:t(n)("booking.form.email.placeholder"),onInput:Ba,class:ee([{"p-invalid":Vt.value},"radius_md"]),required:"","data-testid":"email-input"},null,8,["modelValue","placeholder","class"]),!Vt.value&&Q.value?(s(),i("i",Ed)):d("",!0)]),Vt.value?(s(),i("small",Td,[o[59]||(o[59]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.email.error")),1)])):d("",!0)]),t(q)?d("",!0):(s(),i("div",Ld,[e("label",Ud,[w(a(t(n)("booking.form.phoneNumber.label"))+" ",1),kt.value?(s(),i("span",Od,"*")):d("",!0)]),e("div",Md,[e("div",Bd,[y(_s,{modelValue:ct.value,"onUpdate:modelValue":o[5]||(o[5]=r=>ct.value=r),class:"radius_md country-code-select",onChange:o[6]||(o[6]=()=>{Xe.value=!0,it(!0)}),onFocus:o[7]||(o[7]=()=>{Xe.value=!0})},null,8,["modelValue"])]),e("div",qd,[e("div",Hd,[y(t(ae),{modelValue:Ze.value,"onUpdate:modelValue":o[8]||(o[8]=r=>Ze.value=r),id:"phoneNumber",placeholder:t(n)("booking.form.phoneNumber.placeholder"),class:ee(["radius_md",{"p-invalid":bt.value}]),required:kt.value,onInput:o[9]||(o[9]=()=>{Xe.value=!0,it(!0)}),onBlur:o[10]||(o[10]=()=>{Xe.value=!0,it(!0)}),onFocus:o[11]||(o[11]=()=>{Xe.value=!0}),onChange:o[12]||(o[12]=()=>{Xe.value=!0,it(!0)}),"aria-label":"Phone number without country code"},null,8,["modelValue","placeholder","class","required"]),!bt.value&&Ze.value.trim()!==""?(s(),i("i",Gd)):d("",!0)])])]),kt.value?(s(),i("small",jd,a(t(n)("booking.form.phoneNumber.helper")),1)):d("",!0),bt.value?(s(),i("small",Wd,[o[60]||(o[60]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(kt.value&&t(n)("booking.form.phoneNumber.error")),1)])):d("",!0)])),Is.value?(s(),i("div",zd,[e("h3",Yd,a(t(n)("booking.form.work.label")),1),e("div",Qd,[e("div",Jd,[y(t(ss),{modelValue:pe.value,"onUpdate:modelValue":o[13]||(o[13]=r=>pe.value=r),inputId:"workQuestion1",value:!0,binary:""},null,8,["modelValue"]),e("label",Kd,a(t(n)("booking.form.work.options.yes")),1)]),e("div",Zd,[y(t(ss),{modelValue:pe.value,"onUpdate:modelValue":o[14]||(o[14]=r=>pe.value=r),inputId:"workQuestion2",value:!1,binary:""},null,8,["modelValue"]),e("label",Xd,a(t(n)("booking.form.work.options.no")),1)])]),y(dn,{name:"fade-expand"},{default:H(()=>[gt(e("div",ev,[e("div",tv,[e("label",ov,a(t(n)("booking.form.vatNumber.label")),1),y(t(ae),{modelValue:Pe.value,"onUpdate:modelValue":o[15]||(o[15]=r=>Pe.value=r),id:"vatNumber",onInput:za,class:ee([{invalid:!Le.value},"radius_md"]),placeholder:t(n)("booking.form.vatNumber.placeholder")},null,8,["modelValue","class","placeholder"]),Le.value?d("",!0):(s(),i("small",av,[o[61]||(o[61]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.vatNumber.error")),1)]))]),e("div",sv,[e("label",null,a(t(n)("booking.form.companyName.label")),1),y(t(ae),{modelValue:rt.value,"onUpdate:modelValue":o[16]||(o[16]=r=>rt.value=r),onInput:za,placeholder:t(n)("booking.form.companyName.placeholder"),class:"radius_md"},null,8,["modelValue","placeholder"])])],512),[[hn,pe.value]])]),_:1})])):d("",!0)])])),U.value.hidePrices?d("",!0):(s(),i("div",lv,[e("div",nv,[e("h3",null,a(t(q)?t(n)("checkout.guestsDetails"):t(n)("booking.whoIsBookingFor")),1)]),t(q)&&yo.value>X.value.length?(s(),i("div",iv,[e("label",rv,[gt(e("input",{type:"radio",value:"myself","onUpdate:modelValue":o[17]||(o[17]=r=>ke.value=r),onChange:es}
1,null,544),[[At,ke.value]]),w(" "+a(t(n)("checkout.enterLeaderInfo")),1)]),e("label",cv,[gt(e("input",{type:"radio",value:"someoneElse","onUpdate:modelValue":o[18]||(o[18]=r=>ke.value=r),onChange:Xa},null,544),[[At,ke.value]]),w(" "+a(t(n)("checkout.enterAllPassengersInfo")),1)])])):d("",!0),!t(q)&&G.value.length<=1?(s(),i("div",uv,[e("label",{class:ee(["toggle-option",{active:ke.value==="myself"}]),onClick:es},[w(a(t(n)("checkout.myself"))+" ",1),gt(e("input",{class:"toggle-option-input",type:"radio",value:"myself","onUpdate:modelValue":o[19]||(o[19]=r=>ke.value=r)},null,512),[[At,ke.value]])],2),e("label",{class:ee(["toggle-option",{active:ke.value==="someoneElse"}]),onClick:Xa},[w(a(t(n)("checkout.someoneElse"))+" ",1),gt(e("input",{type:"radio",value:"someoneElse","onUpdate:modelValue":o[20]||(o[20]=r=>ke.value=r),class:"toggle-option-input"},null,512),[[At,ke.value]])],2)])):d("",!0),t(q)&&ke.value==="myself"?(s(),i("div",dv,[(s(!0),i(W,null,Ae(X.value,(r,u)=>(s(),i(W,{key:`leader-room-${u}`},[O.value[u]?(s(),i("div",vv,[e("div",mv,[e("div",pv,[G.value[u]&&G.value[u].name?(s(),i("h4",hv,a(Go(u))+a(Ut(G.value[u])),1)):(s(),i("h4",_v,a(t(n)("booking.loadingRoomInformation")),1))]),e("p",null,[w(a(Mt(r.adults,r.children))+" ",1),G.value[u]?.beds?(s(!0),i(W,{key:0},Ae(G.value[u].beds,h=>(s(),i("span",{key:h}," , "+a(h),1))),128)):d("",!0)])]),e("div",yv,[e("div",fv,[e("label",{for:`leader-firstName-${u}`},[w(a(t(n)("booking.form.firstName.label")),1),o[62]||(o[62]=e("span",{class:"required-asterisk"},"*",-1))],8,kv),e("div",gv,[y(t(ae),{modelValue:O.value[u].firstName,"onUpdate:modelValue":h=>O.value[u].firstName=h,id:`leader-firstName-${u}`,placeholder:t(n)("booking.form.firstName.placeholder"),onInput:h=>dt("firstName",u),class:ee([{invalid:Y.value[u]?.firstName},"radius_md"]),required:""},null,8,["modelValue","onUpdate:modelValue","id","placeholder","onInput","class"]),!Y.value[u]?.firstName&&O.value[u].firstName?(s(),i("i",bv)):d("",!0)]),Y.value[u]?.firstName?(s(),i("small",wv,[o[63]||(o[63]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.firstName.error")),1)])):d("",!0)]),e("div",Cv,[e("label",{for:`leader-lastName-${u}`},[w(a(t(n)("booking.form.lastName.label")),1),o[64]||(o[64]=e("span",{class:"required-asterisk"},"*",-1))],8,Dv),e("div",Nv,[y(t(ae),{modelValue:O.value[u].lastName,"onUpdate:modelValue":h=>O.value[u].lastName=h,id:`leader-lastName-${u}`,placeholder:t(n)("booking.form.lastName.placeholder"),onInput:h=>dt("lastName",u),class:ee([{invalid:Y.value[u]?.lastName},"radius_md"]),required:""},null,8,["modelValue","onUpdate:modelValue","id","placeholder","onInput","class"]),!Y.value[u]?.lastName&&O.value[u].lastName?(s(),i("i",Pv)):d("",!0)]),Y.value[u]?.lastName?(s(),i("small",Av,[o[65]||(o[65]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.lastName.error")),1)])):d("",!0)])]),u<X.value.length-1?(s(),i("div",$v)):d("",!0)])):d("",!0)],64))),128))])):d("",!0),t(q)&&he.value?(s(),i("div",Vv,[(s(!0),i(W,null,Ae(pt.value,(r,u)=>(s(),i(W,{key:`b2b-passenger-${u}`},[O.value[u]?(s(),i("div",Rv,[r.guestIndex===0?(s(),i("div",Iv,[e("div",Fv,[G.value[r.roomIndex]&&G.value[r.roomIndex].name?(s(),i("h4",xv,a(Go(r.roomIndex))+a(Ut(G.value[r.roomIndex])),1)):(s(),i("h4",Sv,a(t(n)("booking.loadingRoomInformation")),1)),X.value.length>1?(s(),i("p",Ev,a(t(n)("booking.currentOccupancyStep",{current:r.roomIndex+1,total:X.value.length})),1)):d("",!0)]),e("p",null,[w(a(Mt(r.occupancy.adults,r.occupancy.children))+" ",1),G.value[r.roomIndex]?.beds?(s(!0),i(W,{key:0},Ae(G.value[r.roomIndex].beds,h=>(s(),i("span",{key:h}," , "+a(h),1))),128)):d("",!0)])])):d("",!0),pt.value.length>1?(s(),i("div",Tv,[o[66]||(o[66]=e("i",{class:"pi pi-user"},null,-1)),r.isChild?(s(),i("span",Uv,a(t(n)("booking.childNumber",{number:u+1})),1)):(s(),i("span",Lv,a(t(n)("booking.guestNumber",{number:u+1})),1))])):d("",!0),e("div",Ov,[e("div",Mv,[e("label",{for:`firstName-${u}`},[w(a(t(n)("booking.form.firstName.label")),1),o[67]||(o[67]=e("span",{class:"required-asterisk"},"*",-1))],8,Bv),e("div",qv,[y(t(ae),{modelValue:O.value[u].firstName,"onUpdate:modelValue":h=>O.value[u].firstName=h,id:`firstName-${u}`,placeholder:t(n)("booking.form.firstName.placeholder"),onInput:h=>dt("firstName",u),class:ee([{invalid:Y.value[u]?.firstName}
1,"radius_md"]),required:""},null,8,["modelValue","onUpdate:modelValue","id","placeholder","onInput","class"]),!Y.value[u]?.firstName&&O.value[u].firstName?(s(),i("i",Hv)):d("",!0)]),Y.value[u]?.firstName?(s(),i("small",{key:0,id:`firstName-${u}`},[o[68]||(o[68]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.firstName.error")),1)],8,Gv)):d("",!0)]),e("div",jv,[e("label",{for:`lastName-${u}`},[w(a(t(n)("booking.form.lastName.label")),1),o[69]||(o[69]=e("span",{class:"required-asterisk"},"*",-1))],8,Wv),e("div",zv,[y(t(ae),{modelValue:O.value[u].lastName,"onUpdate:modelValue":h=>O.value[u].lastName=h,id:`lastName-${u}`,placeholder:t(n)("booking.form.lastName.placeholder"),onInput:h=>dt("lastName",u),class:ee([{invalid:Y.value[u]?.lastName},"radius_md"]),required:""},null,8,["modelValue","onUpdate:modelValue","id","placeholder","onInput","class"]),!Y.value[u]?.lastName&&O.value[u].lastName?(s(),i("i",Yv)):d("",!0)]),Y.value[u]?.lastName?(s(),i("small",{key:0,id:`lastName-${u}`},[o[70]||(o[70]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.lastName.error")),1)],8,Qv)):d("",!0)])]),u<pt.value.length-1?(s(),i("div",Jv)):d("",!0)])):d("",!0)],64))),128))])):d("",!0),!t(q)&&he.value?(s(),i("div",Kv,[(s(!0),i(W,null,Ae(X.value,(r,u)=>(s(),i("div",{key:`occupancy-${u}`,class:"p-booking__occupanciesForm__container__content"},[e("div",Zv,[e("div",Xv,[G.value[u]&&G.value[u].name?(s(),i("h4",em,a(Go(u))+a(Ut(G.value[u])),1)):(s(),i("h4",tm,a(t(n)("booking.loadingRoomInformation")),1)),X.value.length>1?(s(),i("p",om,a(t(n)("booking.currentOccupancyStep",{current:u+1,total:X.value.length})),1)):d("",!0)]),e("p",null,[w(a(Mt(r.adults,r.children))+" ",1),G.value[u]?.beds?(s(!0),i(W,{key:0},Ae(G.value[u].beds,h=>(s(),i("span",{key:h}," , "+a(h),1))),128)):d("",!0)])]),e("div",am,[e("div",sm,[e("label",{for:`firstName-${u}`},[w(a(t(n)("booking.form.firstName.label")),1),o[71]||(o[71]=e("span",{class:"required-asterisk"},"*",-1))],8,lm),e("div",nm,[y(t(ae),{modelValue:O.value[u].firstName,"onUpdate:modelValue":h=>O.value[u].firstName=h,id:`firstName-${u}`,placeholder:t(n)("booking.form.firstName.placeholder"),onInput:h=>dt("firstName",u),class:ee([{invalid:Y.value[u].firstName},"radius_md"]),required:""},null,8,["modelValue","onUpdate:modelValue","id","placeholder","onInput","class"]),!Y.value[u].firstName&&O.value[u].firstName?(s(),i("i",im)):d("",!0)]),Y.value[u].firstName?(s(),i("small",{key:0,id:`firstName-${u}`,"data-error-field":""},[o[72]||(o[72]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.firstName.error")),1)],8,rm)):d("",!0)]),e("div",cm,[e("label",{for:`lastName-${u}`},[w(a(t(n)("booking.form.lastName.label")),1),o[73]||(o[73]=e("span",{class:"required-asterisk"},"*",-1))],8,um),e("div",dm,[y(t(ae),{modelValue:O.value[u].lastName,"onUpdate:modelValue":h=>O.value[u].lastName=h,id:`lastName-${u}`,placeholder:t(n)("booking.form.lastName.placeholder"),onInput:h=>dt("lastName",u),class:ee([{invalid:Y.value[u].lastName},"radius_md"]),required:""},null,8,["modelValue","onUpdate:modelValue","id","placeholder","onInput","class"]),!Y.value[u].lastName&&O.value[u].lastName?(s(),i("i",vm)):d("",!0)]),Y.value[u].lastName?(s(),i("small",{key:0,id:`lastName-${u}`,"data-error-field":""},[o[74]||(o[74]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.lastName.error")),1)],8,mm)):d("",!0)]),e("div",pm,[e("label",{for:`email-${u}`},a(t(n)("booking.form.email.label")),9,hm),e("div",_m,[y(t(ae),{modelValue:O.value[u].email,"onUpdate:modelValue":h=>O.value[u].email=h,id:`email-${u}`,placeholder:t(n)("booking.form.email.placeholder"),class:ee([{invalid:Y.value[u].email},"radius_md"]),required:""},null,8,["modelValue","onUpdate:modelValue","id","placeholder","class"]),!Y.value[u].email&&O.value[u].email?(s(),i("i",ym)):d("",!0)]),Y.value[u].email?(s(),i("small",{key:0,id:`email-${u}`,"data-error-field":""},[o[75]||(o[75]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.email.error")),1)],8,fm)):d("",!0)]),e("div",km,[e("label",{for:`ph
1oneDetails-${u}`},a(t(n)("booking.form.phoneNumber.label")),9,gm),e("div",bm,[e("div",wm,[y(_s,{modelValue:O.value[u].phoneCountryCode,"onUpdate:modelValue":h=>O.value[u].phoneCountryCode=h,class:"radius_md country-code-select",onChange:()=>{}},null,8,["modelValue","onUpdate:modelValue"])]),e("div",Cm,[y(t(ae),{modelValue:O.value[u].phoneDetails,"onUpdate:modelValue":h=>O.value[u].phoneDetails=h,id:`phoneDetails-${u}`,placeholder:t(n)("booking.form.phoneNumber.placeholder"),class:"p-inputtext p-component radius_md",type:"tel"},null,8,["modelValue","onUpdate:modelValue","id","placeholder"]),O.value[u].phoneDetails?(s(),i("i",Dm)):d("",!0)])])])]),u<X.value.length-1?(s(),i("div",Nm)):d("",!0)]))),128))])):d("",!0)])),e("div",{class:"p-booking__occupanciesForm card",style:Pt({marginTop:"16px",marginBottom:!ea.value&&!ta.value?"16px":""})},[e("div",Pm,[e("div",Am,[y(zi,{onUpdate:jl})]),t(q)?(s(),i("div",$m,[e("label",Vm,a(t(n)("booking.form.agencyReference.label")),1),y(t(ae),{modelValue:lo.value,"onUpdate:modelValue":o[21]||(o[21]=r=>lo.value=r),id:"agencyReference",placeholder:t(n)("booking.form.agencyReference.placeholder"),class:"radius_md"},null,8,["modelValue","placeholder"])])):d("",!0)])],4),!ie.value?.isAddonsDisabled&&(ea.value||ta.value)&&!U.value.hidePrices?(s(),i("div",Rm,[e("div",Im,[e("h3",null,a(t(n)("checkout.addons")),1)]),ea.value?(s(),K(qr,{key:0,"uber-steps":t(Bs),"selected-uber-option":t(yt),"uber-voucher-loading":t(qs),"uber-options":t(tt),"selected-uber-option-amount":t(Eo)||0,"show-uber-drawer":t(Aa),"onUpdate:showUberDrawer":o[22]||(o[22]=r=>Aa.value=r),onRemoveUber:el,onApplyUber:o[23]||(o[23]=()=>vo("uber")),onChangeUber:sl,onResetUber:ol,onValidateUber:t(js),onSelectOption:o[24]||(o[24]=r=>yt.value=r)},null,8,["uber-steps","selected-uber-option","uber-voucher-loading","uber-options","selected-uber-option-amount","show-uber-drawer","onValidateUber"])):d("",!0),ta.value?(s(),K(Pc,{key:1,"esimply-options":t(To),"is-esimply-active":t(Lo),"esimply-voucher-loading":t(Hs),"show-esimply-drawer":t(uo),"selected-esimply-package":t(nt),"current-addon":t(f)?.addonsRequest?.find(r=>r.addon==="esimply"),"onUpdate:showEsimplyDrawer":o[25]||(o[25]=r=>uo.value=r),onRemoveEsimply:tl,onApplyEsimply:o[26]||(o[26]=()=>vo("esimply")),onChangeEsimply:ll,onResetEsimply:al,onSelectOption:o[27]||(o[27]=r=>nt.value=r),checkinDate:Ee.value,onSelectedDate:en},null,8,["esimply-options","is-esimply-active","esimply-voucher-loading","show-esimply-drawer","selected-esimply-package","current-addon","checkinDate"])):d("",!0)])):d("",!0),U.value.hidePrices?d("",!0):(s(),K(Uc,{key:3,voucherCode:t(Et),"onUpdate:voucherCode":o[28]||(o[28]=r=>vn(Et)?Et.value=r:null),"voucher-loading":t(Us),"voucher-error":t(Os),"is-voucher-active":t(So),"voucher-amount":Xt.value||0,"voucher-currency":t(Ms)||"USD","voucher-discount-type":t(f)?.voucherDiscountType||"","voucher-discount-value":t(f)?.voucherDiscountValue||0,"is-promo-code-disabled":ie.value?.isPromoCodeDisabled||Dt.value,onApplyVoucher:o[29]||(o[29]=()=>vo("promo")),onClearVoucher:t(Ys)},null,8,["voucherCode","voucher-loading","voucher-error","is-voucher-active","voucher-amount","voucher-currency","voucher-discount-type","voucher-discount-value","is-promo-code-disabled","onClearVoucher"])),qe.value&&t(Sn)(qe.value)?(s(),i("div",Fm,[e("div",xm,[e("h3",null,a(t(n)("checkout.memberShip.name",{title:qe.value.name})),1)]),e("div",Sm,[e("div",Em,[e("div",Tm,[e("label",Lm,a(t(n)("checkout.memberShip.title",{title:qe.value.name})),1),e("small",Um,a(t(n)("checkout.memberShip.description",{rewardTypes:qe.value.rewardType,pointsTimeline:t(En)(qe.value)})),1)]),e("img",{src:qe.value.appearance?.logo,alt:"Loyalty Program Logo",class:"max-w-6rem max-h-6rem"},null,8,Om)]),e("div",Mm,[y(t(ae),{modelValue:Se.value,"onUpdate:modelValue":o[30]||(o[30]=r=>Se.value=r),id:"membershipNumber",placeholder:t(n)("checkout.memberShip.placeholder"),onInput:fl,class:ee([{invalid:vt.value},"radius_md w-full"])},null,8,["modelValue","placeholder","class"]),!vt.value&&Se.value?(s(),i("i",Bm)):d("",!0)]),vt.value?(s(),i("small",qm,[o[76]||(o[76]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("checkout.memberShip.error")),1)])):d("",!0)])])):d("",!0),ie.value?.holderFields?.includes("billingAddress")?(s(),K(ku,{key:5,modelValue:F.value,"onUpdate:modelValue":o[31]||(o[31]=r=>F.value=r)},{error:H(()=>[wo.value?(s(),i("small",Hm,[o[77]||(o[77]=e("i",{class:"pi pi-exclamation-circle"},null,-1)),w(" "+a(t(n)("booking.form.holderAddress.error")),1)])):d("",!0)]),_:1},8,["modelValue"])):d("",!0),!U.value.hidePrices||Dt.value?(s(),i("div",Gm,[y(ei,{ref_key:"paymentSectionRef",ref:lt,mode:"checkout","client-secret":zo.value,"publishable-key":t(f)?.publishableKey,"custom-payment-provider":t(de),"hide-prices":U.value.hidePrices,"show-credit-line":!!(t(f)?.paymentTypes?.includes("CREDIT")&&t(q)&&t(x).guest?.bypassPayment),"credit-line-
1amount":St.value,"credit-line-currency":t(f)?.currency||"USD","show-pay-at-property":Da.value,"show-pay-later":Dt.value,"last-cancellation-date":Na.value,"prebook-id":Oe.value,checkin:Ee.value,checkout:Te.value,rooms:G.value.length.toString(),adults:Je.value.join(","),children:st.value.flat().join(","),occupancies:_o.value,"hotel-id":me.value,city:$.value?.city,"initial-first-name":ce.value,"initial-last-name":D.value,"guest-email":Q.value,"booking-input-data":pa.value,"has-accepted-terms":wa.value,"wl-booking-id":t(ro),"is-credit-line-otp-enabled":U.value?.isCreditLineOtpEnabled,"masked-email":kl.value,"on-setup-payment-provider-hash":La,"show-pay-button":!1,onSuccess:Nl,onError:Pl,onOptionChange:wl,onFormValidChange:Dl,onHolderNameChange:Cl},{"before-form":H(()=>[Ie.value&&Io.value&&ie.value?.hidePayAtPropertyForm&&ge.value==="payAtProperty"?(s(),K(t(na),{key:0,severity:"info",class:"info-box mb-3"},{default:H(()=>[e("span",jm,a(t(n)("booking.form.paymentDetails.payAtPropertyCardInfo")),1)]),_:1})):d("",!0),!Io.value&&Da.value?(s(),K(t(na),{key:1,severity:"info",class:"info-box mb-3"},{default:H(()=>[e("span",Wm,a(t(n)("booking.form.paymentDetails.chargeNRFNAfterBookingDisclaimer")),1)]),_:1})):d("",!0)]),_:1},8,["client-secret","publishable-key","custom-payment-provider","hide-prices","show-credit-line","credit-line-amount","credit-line-currency","show-pay-at-property","show-pay-later","last-cancellation-date","prebook-id","checkin","checkout","rooms","adults","children","occupancies","hotel-id","city","initial-first-name","initial-last-name","guest-email","booking-input-data","has-accepted-terms","wl-booking-id","is-credit-line-otp-enabled","masked-email"])])):d("",!0),y(t(at),{visible:$o.value,"onUpdate:visible":o[32]||(o[32]=r=>$o.value=r),modal:"",header:t(n)("checkout.importantInformation"),style:{width:"600px",maxWidth:"90vw"},breakpoints:{"640px":"95vw"},dismissableMask:!0,draggable:!1,class:"remarks-modal"},{default:H(()=>[y(Mu,{checkIn:t(f)?.checkinDetail,checkOut:t(f)?.checkoutDetail||t(f)?.CheckoutDetail,remarks:ne.value,specialRemarks:t(f)?.roomTypes?.[0]?.rates?.[0]?.specialRemarks,optionalFees:t(f)?.roomTypes?.[0]?.rates?.[0]?.optionalFees,mandatoryFees:t(f)?.roomTypes?.[0]?.rates?.[0]?.mandatoryFees,knowBeforeYouGo:t(f)?.roomTypes?.[0]?.rates?.[0]?.knowBeforeYouGo},null,8,["checkIn","checkOut","remarks","specialRemarks","optionalFees","mandatoryFees","knowBeforeYouGo"])]),_:1},8,["visible","header"]),t(b)?(s(),i("div",zm,[e("h3",Ym,a(t(n)("checkout.Consent")),1),e("section",{class:"grab-privacy-content",onClick:M,innerHTML:t(n)("checkout.dataSharingDescription",{privacyNoticeRedirectionLinkUrl:T.value,termsOfServiceRedirectionLinkUrl:I.value})},null,8,Qm)])):d("",!0),o[81]||(o[81]=e("div",{class:"p-booking__payment__container"},null,-1)),et.value?d("",!0):(s(),K(t(na),{key:8,severity:"error",class:"error-box my-3","data-error-field":""},{default:H(()=>[w(a(t(n)("booking.form.formErrorMessage")),1)]),_:1})),e("div",{ref_key:"nextCtaRef",ref:g,class:ee(["p-booking__nextCTA",{"p-booking__nextCTA--plain":!(t(x).isMobile&&V.value)}]),style:Pt(R.value)},[t(x).isMobile&&V.value?(s(),K(ys,{key:0,embedded:"","booking-total":wt.value,Points:mt.value,"estimated-fiat":$t.value,variant:"checkout",inline:!0},null,8,["booking-total","Points","estimated-fiat"])):d("",!0),e("div",Jm,[t(x).isMobile&&!z.value?(s(),i("div",Km,[e("span",Zm,[w(a(t(n)("booking.ttc"))+" ",1),Ie.value?(s(),i("small",Xm,"("+a(t(n)("booking.totalPayAtProperty"))+")",1)):(se.value||De.value)&&!U.value.hidePrices?(s(),i("small",ep,"("+a(t(n)("booking.includesTaxesAndFees"))+")",1)):d("",!0)]),U.value.hidePrices?d("",!0):(s(),i("span",tp,[w(a(t(J)(se.value||De.value?Bo.value:ot.value,{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value}))+" ",1),ie.value?.showLocalCurrencyHotelPAP&&_t.value&&Ie.value?(s(),i("small",op," ("+a(_t.value)+") ",1)):d("",!0)]))])):d("",!0),t(x).isImpersonating?(s(),i("div",ap,[y(we,{name:"info-icon",color:"#856404",height:20,width:20}),o[78]||(o[78]=e("p",{style:{margin:"0",color:"#856404","font-size":"14px"}},[e("strong",null,"Impersonation Active"),w(),e("br"),w(" Booking and cancellation are disabled. You can only view bookings. ")],-1))])):d("",!0),y(t(Be),{label:Fa.value,class:"p-booking__nextCTA__btn radiu
1s_md","data-testid":"checkout-submit-button",onClick:jt(Wa,["prevent"]),loading:Ne.value,disabled:t(x).isImpersonating},{default:H(()=>[Ne.value?d("",!0):(s(),i("span",sp,a(Fa.value),1)),Ne.value?d("",!0):(s(),i("i",lp))]),_:1},8,["label","loading","disabled"]),!t(b)&&t(v)==="pl"?(s(),i("div",np,[y(p,{keypath:"checkout.continuingMeansAgreementPl",tag:"span"},{cancellationPolicy:H(()=>[e("a",{onClick:o[33]||(o[33]=r=>Bt.value=!0)},a(t(n)("checkout.cancellationPolicyLinkLabelPl")),1)]),terms:H(()=>[e("a",{onClick:o[34]||(o[34]=r=>Ua("terms"))},a(t(n)("checkout.termsLinkLabelPl")),1)]),_:1}),ie.value?.customTerms?.termsAndConditions?(s(),i(W,{key:0},[w("Â "+a(t(n)("booking.form.and"))+" ",1),e("a",{target:"_blank",href:ie.value?.customTerms?.termsAndConditions.link},a(ie.value?.customTerms?.termsAndConditions.linkText),9,ip)],64)):d("",!0),o[79]||(o[79]=w(". "))])):d("",!0),!t(b)&&t(v)!=="pl"?(s(),i("div",rp,[w(a(t(n)("checkout.continuingMeans"))+" ",1),e("a",{onClick:o[35]||(o[35]=r=>Bt.value=!0)},a(t(n)("booking.form.cancellationPolicy")),1),w(" "+a(t(n)("booking.form.and"))+" ",1),e("a",{onClick:o[36]||(o[36]=r=>Ua("terms"))},a(t(n)("booking.form.termsAndConditions")),1),ie.value?.customTerms?.termsAndConditions?(s(),i(W,{key:0},[w(" Â "+a(t(n)("booking.form.and"))+" ",1),e("a",{target:"_blank",href:ie.value?.customTerms?.termsAndConditions.link},a(ie.value?.customTerms?.termsAndConditions.linkText),9,cp)],64)):d("",!0),o[80]||(o[80]=w(" . "))])):d("",!0)])],6)],4),e("div",up,[$.value?.id&&t(po)($.value.id,Tt.value)&&!t(x).isMobile?(s(),i("div",dp,[y(cs,{source:"checkout"})])):d("",!0),e("div",vp,[Ca.value?(s(),i("div",mp,[e("span",null,a(t(n)("checkout.selectedPrice")),1),e("span",pp,[y(we,{name:t(ii)(No.value),width:18,height:18},null,8,["name"]),w(" "+a(Ca.value),1)])])):d("",!0),e("div",hp,[$.value?(s(),i(W,{key:1},[e("div",gp,[$.value?.thumbnail||$.value?.main_photo?(s(),i("img",{key:0,src:$.value?.thumbnail||$.value?.main_photo,alt:"Hotel Image"},null,8,bp)):d("",!0)]),e("div",wp,[$.value.stars!==void 0&&$.value.stars>=0?(s(),i("div",Cp,[(s(!0),i(W,null,Ae(Math.floor($.value.stars),r=>(s(),i("span",{key:r},[y(we,{name:"star",height:14,width:14})]))),128))])):d("",!0),e("h3",null,a($.value?.name),1),e("div",Dp,[y(we,{name:"pin"}),e("p",null,a($.value?.address)+", "+a($.value?.city),1)]),$.value.rating>=8?(s(),i("div",Np,[e("span",{class:ee(["rating__score__number",{"decimal-rating":String($.value.rating).includes(".")}]),style:Pt({backgroundColor:t(Ln)($.value.rating),color:t(Tn)($.value.rating)})},a(t(Un)($.value.rating)),7),e("div",Pp,[t(us)($.value.rating)!==""?(s(),i("p",Ap,a(t(n)(t(us)($.value.rating))),1)):d("",!0),e("p",$p," ("+a(ul($.value.reviewsCount))+") ",1)])])):d("",!0)])],64)):(s(),i(W,{key:0},[e("div",_p,[y(t(Ht),{width:"100px",height:"100px",class:"radius_md"})]),e("div",yp,[e("div",fp,[(s(),i(W,null,Ae(5,r=>y(t(Ht),{key:r,width:"14px",height:"14px",style:{"margin-right":"2px"},borderRadius:"4px"})),64))]),y(t(Ht),{width:"60%",height:"28px",style:{"margin-bottom":"8px"},borderRadius:"6px"}),e("div",kp,[y(t(Ht),{width:"18px",height:"18px",style:{"margin-right":"8px"},borderRadius:"50%"}),y(t(Ht),{width:"120px",height:"18px",borderRadius:"6px"})])])],64))]),e("div",Vp,[e("div",Rp,[y(we,{name:"agenda"}),e("p",null,a(t(n)("booking.checkinCheckout")),1)]),e("div",Ip,a(rl.value),1)]),!t(x).isMobile&&U.value.hidePrices!==!0?(s(),i("div",Fp,[e("p",xp,a(t(n)("booking.form.cancellationPolicy")),1),t(f)&&!U.value.hidePrices?(s(),K(Ns,{key:0,bookingData:t(f),theme:"inline"},null,8,["bookingData"])):d("",!0)])):d("",!0),e("div",Sp,[Fl.value?(s(),i("div",Ep,[e("div",Tp,[e("span",Lp,a(t(n)("booking.details.yourRoom")),1),e("a",{class:"remarks-header-link",role:"button",tabindex:"0",onClick:o[37]||(o[37]=r=>Jo()),onKeydown:[o[38]||(o[38]=ls(r=>Jo(),["enter"])),o[39]||(o[39]=ls(jt(r=>Jo(),["prevent"]),["space"]))]},a(t(n)("checkout.importantInformation")),33)])])):d("",!0),(s(!0),i(W,null,Ae(Ia.value,(r,u)=>(s(),i("div",{key:`room-group-${u}`,class:"p-booking__detailedReview__roomDetails__room"},[e("div",Up,[r.count===1?(s(),i("span",Op,a(t(n)("booking.roomNumber",{number:r.indices[
10]+1})),1)):d("",!0)]),$.value?.id&&t(po)($.value.id,Tt.value)&&t(be).project.settings?.showPerksPills&&r?.perks&&r?.perks.length>0?(s(),i("div",Mp,[y(ci,{title:t(n)("checkout.benefitsIncluded"),perks:r?.perks},null,8,["title","perks"])])):d("",!0),e("div",Bp,[e("h4",null,[r.count===1?(s(),i(W,{key:0},[w(a(Sa(r))+a(Ut(r)),1)],64)):(s(),i(W,{key:1},[w(a(r.count)+" x "+a(Sa(r))+a(Ut(r)),1)],64)),o[82]||(o[82]=e("br",null,null,-1)),r.count===1?(s(),i("span",qp,a(Mt(Je.value[r.indices[0]],st.value[r.indices[0]])),1)):(s(),i("span",Hp,a(r.indices.map(h=>Mt(Je.value[h],st.value[h])).join(", ")),1)),r.beds?(s(!0),i(W,{key:4},Ae(r.beds,h=>(s(),i("span",{key:h,class:"text-xs text-400"}," , "+a(h),1))),128)):d("",!0)]),ft.value.length&&ft.value.find(h=>h?.id===r.mappedRoomId)?(s(),K(t(Be),{key:0,link:"",onClick:()=>Il(r.indices[0])},{default:H(()=>[w(a(t(n)("booking.roomDetails")),1)]),_:2},1032,["onClick"])):d("",!0)]),t(x).isMobile?(s(),i("div",{key:1,class:"Cancelation-wrapper",onClick:o[40]||(o[40]=h=>Bt.value=!0)},[y(we,{name:"cancellation-icon",height:16,width:16}),e("a",Gp,a(t(n)("booking.form.cancellationPolicy")),1)])):d("",!0),U.value.hidePrices!==!0?(s(),i("div",jp,[e("div",Wp,[e("p",null,[w(a(t(J)((De.value?ot.value||0:Ra())/G.value.length/Qe.value,{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value}))+" ",1),r.count>1?(s(),i(W,{key:0},[w(a(t(n)("checkout.perRoom"))+"/"+a(t(n)("occupancy.night")),1)],64)):(s(),i(W,{key:1},[w(a(t(n)("checkout.perNight")),1)],64))])])])):d("",!0)]))),128)),De.value&&!Ie.value?(s(),i(W,{key:1},[e("div",zp,[e("span",Yp,a(t(n)("checkout.roomTotalInclTaxes")),1),U.value.hidePrices!==!0?(s(),i("span",Qp,a(t(J)(ot.value||0,{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value})),1)):d("",!0)]),U.value.hidePrices!==!0&&Fe.value!=="0.00"&&!t(q)?(s(),i("div",Jp,[e("div",Kp,[e("span",Zp,a(t(n)("checkout.paidAtHotel")),1),e("span",{class:"info-icon cursor-pointer flex align-self-center",onClick:o[41]||(o[41]=r=>Ct.value=!0)},[y(we,{name:"info-icon"})])]),e("span",Xp,a(t(J)(Number(Fe.value),{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value})),1)])):d("",!0)],64)):(s(),i("div",eh,[e("span",th,a(`${G.value.length} ${G.value.length>1?t(n)("occupancy.rooms"):t(n)("occupancy.room")} Ã ${Qe.value} ${Qe.value>1?t(n)("occupancy.nights"):t(n)("occupancy.night")}`),1),U.value.hidePrices!==!0?(s(),i("span",oh,a(t(J)(Ra()||0,{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value})),1)):d("",!0)])),Ie.value&&ie.value?.hidePayAtPropertyForm?(s(),i("div",ah,[e("div",sh,[y(we,{name:"check-badge",color:"var(--theme-success-500)",class:"mr-2"}),e("span",lh,a(t(n)("checkout.payAtPropertyTitle")),1)]),e("p",nh,a(t(n)("checkout.payAtPropertyContent")),1)])):d("",!0),U.value.hidePrices!==!0&&(!De.value||Ie.value)?(s(),i("div",{key:4,class:ee({"border-bottom":Mo()>0||Fe.value!=="0.00"})},[Mo()>0?(s(),i("div",ih,[e("div",rh,[e("span",null,a(t(n)("booking.taxesAndFees")),1),e("span",{class:"info-icon cursor-pointer flex align-self-center",onClick:o[42]||(o[42]=jt(r=>Po.value=!0,["stop"]))},[y(we,{name:"info-icon"})])]),e("span",ch,a(t(J)(Mo(),{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value})),1)])):d("",!0),Fe.value!=="0.00"&&!t(q)?(s(),i("div",uh,[e("div",dh,[e("span",null,a(t(n)("checkout.propertyFees")),1),e("span",{class:"info-icon cursor-pointer flex align-self-center",onClick:o[43]||(o[43]=r=>Ct.value=!0)},[y(we,{name:"info-icon"})])]),e("span",null,[e("span",vh,a(t(J)(Number(Fe.value),{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value})),1)])])):d("",!0)],2)):d("",!0),t(Pa)?(s(),i("div",mh,[e("div",ph,[e("span",hh,a(t(n)("checkout.uberVoucher")),1)]),U.value.hidePrices!==!0?(s(),i("span",_h,a(t(J)(t(yt)?.originalAmount||0,{currency:t(yt)?.originalCurrency,showDecimals:!0,machineSafe:se.value})),1)):d("",!0)])):d("",!0),t(Lo)?(s(),i("div",yh,[e("div",fh,[e("span",kh," Esimply-"+a(t(Xs)(t(f)?.addonsRequest?.find(r=>r.addon==="esimply")?.addonDetails?.package_id)),1),e("span",gh,a(t(n)("checkout.expiryDate"))+" "+a(tn.value),1)]),U.value.hidePrices!==!0?(s(),i("span",bh,a(t(J)(t(f)?.add
1onsRequest?.find(r=>r.addon==="esimply")?.value??0,{currency:t(f)?.addonsRequest?.find(r=>r.addon==="esimply")?.currency,showDecimals:!0,machineSafe:se.value})),1)):d("",!0)])):d("",!0),t(f)&&U.value.hidePrices!==!0?(s(),i("div",wh,[e("meta",{itemprop:"checkinTime",content:Ee.value+" 15:00:00"},null,8,Ch),e("meta",{itemprop:"checkoutTime",content:Te.value+" 10:00:00"},null,8,Dh),t(f)?(s(),i("div",Nh,[e("meta",{itemprop:"price",content:Bo.value.toFixed(t(On)(t(f)?.currency||""))},null,8,Ph),e("meta",{itemprop:"priceCurrency",content:t(f)?.currency},null,8,Ah)])):d("",!0),t(So)&&Xt.value>0&&!U.value.hidePrices?(s(),i("div",$h,[e("div",Vh,[e("span",Rh,a(t(n)("checkout.voucherDiscount")),1)]),e("div",Ih,[t(f)?.voucherDiscountType==="percentage"&&t(f)?.voucherDiscountValue?(s(),i("span",Fh," ("+a(t(n)("checkout.percentageDiscount",{value:t(f)?.voucherDiscountValue}))+") ",1)):d("",!0),w(" -"+a(t(J)(Xt.value,{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value})),1)])])):d("",!0),t(q)?d("",!0):(s(),i("div",{key:2,ref_key:"grandTotalRef",ref:N,class:"p-booking__total__main grand-total"},[e("h5",null,[w(a(t(n)("booking.ttc"))+" ",1),Ie.value?(s(),i("small",xh,"("+a(t(n)("booking.totalPayAtProperty"))+")",1)):d("",!0)]),U.value.hidePrices?d("",!0):(s(),i("span",Sh,[w(a(t(J)(De.value?Bo.value:(ot.value||0)+Number(Fe.value),{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value}))+" ",1),ie.value?.showLocalCurrencyHotelPAP&&_t.value&&Ie.value?(s(),i("small",Eh," ("+a(_t.value)+") ",1)):d("",!0)])),U.value.hidePrices?d("",!0):(s(),i("p",Th,a(t(n)("booking.includesTaxesAndFees")),1))],512)),ie.value?.showLocalCurrencyHotelPAP&&_t.value?(s(),i("div",Lh,o[83]||(o[83]=[e("small",{class:"text-400 font-xxs"},null,-1)]))):d("",!0),Lt.value&&Fe.value!=="0.00"&&!Ie.value&&!De.value?(s(),i("div",Uh,[e("div",Oh,a(t(n)("checkout.paymentSchedule")),1),e("div",Mh,[e("div",Bh,[y(we,{name:"bank-note"}),e("p",qh,a(t(n)("checkout.payNow")),1)]),e("div",Hh,[e("span",null,a(t(J)(ot.value,{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value})),1)])]),e("div",Gh,[e("div",{class:ee(["icon-text",{"icon-text-active":Lt.value.length>0}]),onClick:o[44]||(o[44]=r=>Ct.value=!0)},[y(we,{name:"bank-note"}),e("p",jh,a(t(n)("booking.taxesToBePaidAtProperty")),1)],2),e("div",Wh,[e("span",null,[w(a(t(J)(Number(Fe.value),{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value}))+" ",1),no.value?(s(),i("small",zh,"("+a(no.value)+")",1)):d("",!0)])])])])):d("",!0),t(q)&&Fe.value==="0.00"&&!Ie.value?(s(),i("div",Yh,[e("div",Qh,[y(we,{name:"bank-note"}),e("p",Jh,a(t(n)("checkout.payNow")),1)]),e("div",Kh,[e("span",null,a(t(J)(ot.value,{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value})),1)])])):d("",!0),t(f)?.currency!==$.value?.currency&&(Number(Fe.value)>0||Ie.value)?(s(),i("small",Zh,a(t(n)("checkout.payAtPropertyExchangeInfo")),1)):d("",!0)])):d("",!0),!t(x).isMobile&&V.value?(s(),i("div",Xh,[y(ys,{class:"w-full justify-content-center","booking-total":wt.value,Points:mt.value,"estimated-fiat":$t.value,variant:"checkout",inline:!0},null,8,["booking-total","Points","estimated-fiat"])])):d("",!0),t(q)&&t(x).guest?.isAgent&&Ho.value?(s(),i("div",e_,[mo.value?(s(),i("div",t_,[e("div",o_,[e("span",a_,[w(a(t(n)("checkout.agentMarkup"))+" ",1),e("span",s_,"(+"+a(qo.value)+"%)",1)]),e("span",l_,a(t(J)(Ho.value.markupAmount,{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value})),1)]),e("div",n_,[e("span",i_,a(t(n)("checkout.netPrice")),1),e("span",r_,a(t(J)(Ho.value.netPrice,{currency:t(f)?.currency,showDecimals:!0,machineSafe:se.value})),1)])])):d("",!0),e("button",{type:"button",class:"agency-price-breakdown__toggle",onClick:o[45]||(o[45]=r=>mo.value=!mo.value)},[w(a(t(n)("checkout.agencyPriceBreakdown"))+" ",1),mo.value?(s(),K(t(mn),{key:0})):(s(),K(t(pn),{key:1}))])])):d("",!0)])]),Qt.value&&$.value?(s(),K(Gu,{key:1,hotel:$.value},null,8,["hotel"])):d("",!0)])])])]),y(t(at),{modal:"",dismissableMask:Zt.value,showHeader:!1,visible:Zt.value,pt:{mask:{style:"backdrop-filter: blur(2px)"}},style:{"border-radius":"2rem"},class:"error-dialog"},{default:H(()=>[(s(),K(Gt,{"is-loading":Ne.value,title:ga.value,message:ka.value,src:fa.value,"error-type":Vs.value?"Payment":"Booking","payment-information":to.value,key:to.value.attempt,onHandleRetry:pl},null,8,["is-loading","title","message","src","error-type","payment-information"]))]),_:1},8,["dismissableMask","visible"]),y(t(at),{modal:"",dismissableMask:ue.value,showHeader:!1,visible:ue.value,pt:{mask:{style:"backdrop-filter: blur(2px)"}},style:Pt({borderRadius:"2rem",width:t(x).isMobile?"90%":qt.value}),class:"error-dialog no-rates-available-dialog"},{default:H(()=>[e("div",c_,[o[84]||(o[84]=e("img",{class:"no-rates-available-image",src:fs,alt:"no-rates-available-image"},null,-1)),e("div",u_,[e("div",d_,[e("h2",null,a(t(n)("booking.noRatesAvailable")),1),e("span",null,a(t(n)("booking.noRatesAvailableDescription")),1)]),y(t(Be),{class:"no-rates-available-button radius_md",label:t(n)("booking.noRatesAvailableAction"),icon:"pi pi-chevron-right",iconPos:"right",size:"small",onClick:o[46]||(o[46]=r=>Qo("hotel-rates"))},null,8,["label"])])])]),_:1},8,["dismissableMask","visible","style"]),y(t(at),{modal:"",dismissableMask:ye.value,showHeader:!1,visible:ye.value,pt:{mask:{style:"backdrop-filter: blur(2px)"}},style:Pt({borderRadius:"2rem",width:t(x).isMobile?"90%":qt.value}),class:"error-dialog no-rates-available-dialog"},{default:H(()=>[e("div",v_,[o[85]||(o[85]=e("img",{class:"no-rates-available-image",src:fs,alt:"no-rates-available-image"},null,-1)),e("div",m_,[e("div",p_,[e("h2",null,a(t(n)("booking.repriceAvailable","Your rate has changed")),1),e("span",null,a(ht.value),1)]),y(t(Be),{class:"no-rates-available-button radius_md",label:t(n)("booking.repriceAvailableAction","Continue with new rate"),icon:"pi pi-chevron-right",iconPos:"right",size:"small",onClick:Ts},null,8,["label"]),y(t(Be),{class:"no-rates-available-button radius_md p-button-text",label:t(n)("booking.repriceAvailableDecline","Search again instead"),size:"small",onClick:Ls},null,8,["label"])])])]),_:1},8,["dismissableMask","visible","style"]),y(Qc,{visible:Do.value,"onUpdate:visible":o[47]||
1(o[47]=r=>Do.value=r),header:bo.value,currentPrebook:t(f),isTermsAndPolicyVisible:oo.value,policies:Jt.value},null,8,["visible","header","currentPrebook","isTermsAndPolicyVisible","policies"]),Ct.value?(s(),K(ki,{key:2,"show-overlay":Ct.value,supplierSettings:ie.value||void 0,taxesList:Lt.value,onClose:o[48]||(o[48]=r=>Ct.value=!1)},null,8,["show-overlay","supplierSettings","taxesList"])):d("",!0),Kt.value?(s(),K(ui,{key:fo.value,"show-overlay":Kt.value,perks:Tt.value,room:ft.value[fo.value],"is-highlighted":t(po)(me.value,Tt.value),onClose:o[49]||(o[49]=r=>Kt.value=!1)},null,8,["show-overlay","perks","room","is-highlighted"])):d("",!0),Ao.value?(s(),K(Si,{key:4,"show-overlay":Ao.value,details:Ro.value,amount:t(f)?.price,currency:t(f)?.currency,onClose:o[50]||(o[50]=r=>Ao.value=!1)},null,8,["show-overlay","details","amount","currency"])):d("",!0),y(zu,{"show-overlay":Po.value,onClose:o[51]||(o[51]=r=>Po.value=!1)},null,8,["show-overlay"]),so.value?(s(),K(Mi,{key:5,"show-warning":so.value,hotelId:me.value,onClose:o[52]||(o[52]=r=>so.value=!1)},null,8,["show-warning","hotelId"])):d("",!0)])],64)}}}),G_=Ve(__,[["__scopeId","data-v-f127aec8"],["__file","Checkout.vue"]]);export{G_ as default};
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.