1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/formkit.theme-DVbh0M_W.js"),window.__toCdnUrl("assets/vendor-lxhXACKn.js"),window.__toCdnUrl("assets/globalBasic-DCViCoV8.js"),window.__toCdnUrl("assets/ImageLazyLoader-DY2FSO2o.js"),window.__toCdnUrl("assets/RoomConfig-DKiCgIH-.js"),window.__toCdnUrl("assets/RoomPlan-Rx8nKBN8.js"),window.__toCdnUrl("assets/FilterSection.vue_vue_type_script_setup_true_lang-DwsaOde2.js"),window.__toCdnUrl("assets/computedProperties-CCrZrgkj.js"),window.__toCdnUrl("assets/light-nUpfvi-t.js"),window.__toCdnUrl("assets/SpecialRequest-CfAOA9xV.js"),window.__toCdnUrl("assets/SpecialRequest.vue_vue_type_script_setup_true_lang-ClvbiVgB.js"),window.__toCdnUrl("assets/Savings-C6BVxnwN.js"),window.__toCdnUrl("assets/StandardHeader-BB4UiX0I.js"),window.__toCdnUrl("assets/Plans-B2GUwHGw.js"),window.__toCdnUrl("assets/RightMenuButtons-Dhvnb-qE.js"),window.__toCdnUrl("assets/AllExtras.vue_vue_type_script_setup_true_lang-t89IyFHQ.js"),window.__toCdnUrl("assets/Dialog--Oz4HeDi.js"),window.__toCdnUrl("assets/ImageSliderLazyLoader-CtVizHgr.js"),window.__toCdnUrl("assets/ImageSliderLazyLoader.vue_vue_type_style_index_0_scoped_34a7bd49_lang-C7pTN5rR.js"),window.__toCdnUrl("assets/fuse-CU2r43ac.js"),window.__toCdnUrl("assets/SelectedExtras.vue_vue_type_script_setup_true_lang-xcozrj0J.js"),window.__toCdnUrl("assets/Footer-DBlLgAZJ.js"),window.__toCdnUrl("assets/MobileSummary-n2OZls2k.js"),window.__toCdnUrl("assets/ContactAndSummary-Crpy-eU_.js"),window.__toCdnUrl("assets/ContactForm-hzzii8At.js"),window.__toCdnUrl("assets/Voucher-5YdFLuFq.js"),window.__toCdnUrl("assets/SummaryView-Duq8VMAW.js"),window.__toCdnUrl("assets/SpecialsHeader-D186EpaB.js"),window.__toCdnUrl("assets/PackageHeader-mRwz-eej.js"),window.__toCdnUrl("assets/VoucherHeader-D8kIqDQy.js"),window.__toCdnUrl("assets/BentoHeader-C3vQV8Ec.js")])))=>i.map(i=>d[i]); 2import{a as be,u as he,b as ue,T as Rt,_ as ze,c as re,g as Je,v as ve,f as nt,l as vt}from"./formkit.theme-DVbh0M_W.js";import{d as ce,u as fe,r as A,k as L,Q as ot,e,o as a,c as l,b as t,v as y,h as Fe,t as o,z as W,G as Ye,at as $t,x,E as Lt,n as z,F as le,I as de,Y as je,g as Q,D as ge,W as _e,f as _t,au as Et,B as Pt,a as At,av as Bt,L as ie,A as bt,w as Ge,T as Ot,aw as It,ax as Ut,ay as Xe,az as Tt,p as Ne,q as wt,s as Mt,aA as yt,aB as Ke,aC as Wt,aD as rt,aE as Dt,N as Ft,O as Nt,l as Vt,i as zt,m as Gt,j as Ht,S as Kt}from"./vendor-lxhXACKn.js";import{a as jt}from"./Plans-B2GUwHGw.js";import qt from"./RightMenuButtons-Dhvnb-qE.js";import{f as Jt,a as Yt,b as xt,c as Xt,d as Qt,e as kt,g as Zt,h as ea,i as ta,j as aa,k as sa,l as la,m as na,n as oa,o as ra,p as ia,q as ca,r as da,s as ua,t as it,u as fa,v as pa,w as ha,x as ma,y as ga,z as va,A as _a,B as ba,C as wa,D as ya,E as xa,F as ka,G as Ca,H as Sa,I as Ra,J as $a,K as La,L as Ea,M as Pa,N as Aa,O as Ba,P as Oa,Q as Ia,R as Ua,S as Ta,T as Ma,U as Wa,V as Da,W as Fa,X as Na,Y as Va,Z as za,_ as Ga,$ as Ha,a0 as Ka,a1 as ja,a2 as qa,a3 as ct,a4 as Ja,a5 as Ya,a6 as Xa,a7 as Qa,a8 as Za,a9 as es,aa as ts,ab as as,ac as ss,ad as ls,ae as ns,af as os,ag as rs,ah as is,ai as cs,aj as ds,ak as us,al as fs,am as ps,an as hs,ao as ms,ap as gs,aq as vs,ar as _s,as as bs,at as ws,au as ys,av as xs,aw as ks,ax as Cs,ay as Ss,az as Rs,aA as $s,aB as Ls,aC as Es,aD as Ps,aE as As,aF as Bs,aG as Os,aH as Is,aI as Us,aJ as Ts,aK as dt,aL as ut,aM as Ms,aN as Ws,aO as Ds,aP as Fs,aQ as Ns,aR as ft,aS as Vs,aT as pt,aU as ht,aV as zs,aW as Gs,aX as mt,aY as Hs,aZ as Ct,a_ as St,a$ as Ks,b0 as js,b1 as qs,b2 as Js}from"./light-nUpfvi-t.js";import{u as Ys,h as Xs,a as Qs,d as Zs}from"./computedProperties-CCrZrgkj.js";import{E as el,_ as tl}from"./AllExtras.vue_vue_type_script_setup_true_lang-t89IyFHQ.js";import qe from"./Dialog--Oz4HeDi.js";import{F as al}from"./fuse-CU2r43ac.js";import sl from"./ImageLazyLoader-DY2FSO2o.js";import{_ as gt}from"./SelectedExtras.vue_vue_type_script_setup_true_lang-xcozrj0J.js";import{F as ll,_ as nl}from"./FilterSection.vue_vue_type_script_setup_true_lang-DwsaOde2.js";import ol from"./Footer-DBlLgAZJ.js";import{M as rl}from"./MobileSummary-n2OZls2k.js";import{C as il}from"./ContactAndSummary-Crpy-eU_.js";import{R as cl}from"./RoomPlan-Rx8nKBN8.js";const dl={key:0,class:"bg-surface-red text-text-primary w-full"},ul={class:"lg:p-0"}
2,fl={id:"extra-details-title",class:"sr-only"},pl={id:"all-extras-title",class:"sr-only"},hl={class:"font-bold text-lg lg:text-xl",id:"extras-section-title"},ml={class:"flex w-full text-xs mt-2 mb-2 items-center"},gl=["placeholder"],vl={class:"flex text-[16px] overflow-x-auto py-2",role:"tablist","aria-labelledby":"extras-section-title"},_l=["aria-selected"],bl=["onClick","aria-selected"],wl={key:0,class:"flex gap-4 my-4 mb-0 rounded-md overflow-x-auto w-full pb-6 pl-3","aria-live":"polite"},yl=["onClick","onKeydown","aria-label"],xl={key:0,class:"absolute -left-3 top-3 z-20"},kl={class:"flex items-center py-1 px-3 rounded-md bg-selected-room-badge-background text-white text-xs"},Cl={class:"font-light lowercase"},Sl={class:"aspect-video max-h-32 rounded-t-md text-text-button-light"},Rl={key:1,class:"box-border rounded-t-md h-full bg-surface-brand-primary flex items-center justify-center w-full"},$l={class:"flex justify-between w-full flex-wrap rounded-b-md bg-white p-4 items-end"},Ll={class:"min-h-32 flex w-full flex-col"},El={class:"font-bold w-full h-12 overflow-auto"},Pl={class:"flex flex-1 flex-col justify-end"},Al={class:"flex items-center"},Bl={key:0,class:"mr-2"},Ol={key:0,class:"mt-2 uppercase text-sm text-error-text-b-b font-bold"},Il={class:"mt-3 flex w-full items-center justify-between"},Ul={key:0,class:"text-xs pr-2"},Tl=["onClick","aria-label"],Ml=["onClick","aria-label"],Wl={key:1},Dl={class:"mt-10","aria-live":"polite"},Fl=ce({__name:"PopularExtras",setup(ne){const{t:R}=fe(),$=be(),g=he();ue();const c=A(null),f=A(!1),u=Ys(),_=A(null),n=A(!1),m=A(""),v=()=>{const r=document.body;r.style.overflow=f.value?"hidden":"auto"},k=r=>{c.value=r.id},b=()=>{f.value=!f.value,v()},D=()=>{n.value=!n.value,setTimeout(()=>{document.getElementById("search-input").focus()},300)},B=L(()=>{const r={};return u.value.forEach(d=>{d.tags&&d.tags.length>
20&&d.tags.forEach(s=>{var w,F;(w=s==null?void 0:s.value)!=null&&w.id&&(r[(F=s==null?void 0:s.value)==null?void 0:F.id]=s.value)})}),Object.values(r)}),T=r=>{var w,F,p,C;const d=((w=r==null?void 0:r.sizeOriginal)==null?void 0:w.width)??((F=r==null?void 0:r.size600)==null?void 0:F.width),s=((p=r==null?void 0:r.sizeOriginal)==null?void 0:p.height)??((C=r==null?void 0:r.size600)==null?void 0:C.height);return!!(d&&s&&d/s>1.2&&d/s<2.2)},K=r=>{var d;return(d=r.pictureList)==null?void 0:d.find(s=>{var w;return(w=s==null?void 0:s.size600)==null?void 0:w.url})};let j=null;ot(()=>u.value,async r=>{j=new al(JSON.parse(JSON.stringify(r)),{includeScore:!0,threshold:.2,keys:[{name:"_publicName."+g.language,weight:2},{name:"_publicName.en",weight:1},{name:"_publicDescription."+g.language,weight:.5},{name:"_publicDescription.en",weight:.5}]})},{debounce:500,deep:!0,immediate:!0});const O=L(()=>{if(m.value&&j){const d=j.search(m.value).map(s=>s.item._id);return u.value.filter(s=>d.includes(s.id)).sort((s,w)=>d.indexOf(s.id)-d.indexOf(w.id))}return _.value?u.value.filter(r=>{var d;return(d=r.tags)==null?void 0:d.some(s=>{var w;return((w=s==null?void 0:s.value)==null?void 0:w.id)===_.value})}):u.value}),P=r=>$.reservation.extras.some(d=>d.id===r.id||d._id===r.id);ot(()=>O.value,r=>{let d=[];r.forEach(s=>{let w=Rt.convertExtraToTrackerItem(s);d.push(w)}),g.tracking.viewItemList(d,"availableExtras","Available extras")},{deep:!0,debounce:1e3,immediate:!0});const I=r=>{if(r===null){_.value=null;return}_.value===(r==null?void 0:r.id)?_.value=null:_.value=r.id};return(r,d)=>e(u).length?(a(),l("div",dl,[t("div",ul,[y(qe,{open:c.value!==null,onClose:d[1]||(d[1]=s=>c.value=null),role:"dialog","aria-labelledby":"extra-details-title"},{content:Fe(()=>[t("h2",fl,o(e(R)("WBEPLUS.EXTRA_DETAILS")),1),y(el,{reservation:e($).reservation,"extra-id":c.value,onClose:d[0]||(d[0]=s=>c.value=null)},null,8,["reservation","extra-id"])]),_:1},8,["open"]),y(qe,{open:f.value===!0,onClose:d[3]||(d[3]=s=>f.value=!1),role:"dialog","aria-labelledby":"all-extras-title"},{content:Fe(()=>[t("h2",pl,o(e(R)("WBEPLUS.ALL_EXTRAS")),1),y(tl,{onClose:d[2]||(d[2]=s=>f.value=!1),reservation:e($).reservation,"highlight-selected":!0},null,8,["reservation"])]),_:1},8,["open"]),t("div",null,[t("h3",hl,o(e(R)("WBEPLUS.POPULAR_EXTRAS")),1)]),t("div",ml,[t("p",{class:"border-r mr-2 pr-4 cursor-pointer",onClick:D},[y(e(W),{icon:e(Jt),class:"faMagnifyingGlass border p-1 rounded","aria-hidden":"true"},null,8,["icon"])]),y(Lt,{name:"fade",mode:"out-in"},{default:Fe(()=>[n.value?Ye((a(),l("input",{key:0,type:"text",id:"search-input","onUpdate:modelValue":d[4]||(d[4]=s=>m.value=s),placeholder:e(R)("GLOBAL.SEARCH"),class:"border transition-all duration-500 p-2 rounded mr-3","aria-label":"Search for extras"},null,8,gl)),[[$t,m.value]]):x("",!0)]),_:1}),t("div",vl,[t("button",{class:z(["extraFilter",{active:_.value===null}]),onClick:d[5]||(d[5]=s=>I(null)),role:"tab","aria-selected":_.value===null,tabindex:"0"},o(e(R)("RESLIST.ALL")),11,_l),(a(!0),l(le,null,de(B.value,(s,w)=>(a(),l("button",{key:w,class:z(["extraFilter",{active:s.id===_.value}]),onClick:F=>I(s),role:"tab","aria-selected":s.id===_.value,tabindex:"0"},o(e(R)(s.valueKey)),11,bl))),128))])]),t("div",null,[O.value.length>0?(a(),l("div",wl,[(a(!0),l(le,null,de(O.value,s=>{var w,F,p,C;return a(),l("div",{key:s.id,onClick:E=>k(s),onKeydown:je(E=>k(s),["enter"]),role:"button",tabindex:"0","aria-label":"View details for "+s.publicName[e(g).language],class:"relative hover:scale-[0.97] rounded-t-md duration-500 transition-all cursor-pointer border shadow-button-shadow flex flex-col justify-between w-[260px] shrink-0"},[P(s)?(a(),l("span",xl,[t("span",kl,[t("span",Cl,o(r.$t("WBEPLUS.SELECTED")),1)])])):x("",!0),t("div",Sl,[(r.picture=K(s))?(a(),Q(sl,{key:0,"data-src":r.picture.size600.url,load:!0,alt:((F=(w=r.picture.sizeOriginal)==null?void 0:w.alt)==null?void 0:F[e(g).language])||"","as-background":!0,class:z(["!bg-center !bg-no-repeat",T(r.picture)?"!bg-cover":"!bg-contain"])},null,8,["data-src","alt","class"])):(a(),l("div",Rl,[y(e(W),{icon:e(Yt),class:"w-full h-20","aria-hidden":"true"},null,8,["icon"])]))]),t("div",$l,[t("div",Ll,[t("h4",El,o(s.publicName[e(g).language]),1),t("div",Pl,[t("div",Al,[(s==null?void 0:s.wbeMode)!==3?(a(),l("p",Bl,o(s.getDisplayPrice(e(R))),1)):x("",!0)]),(s==null?void 0:s.wbeMode)===2||(s==null?void 0:s.wbeMode)==3?(a(),l("p",Ol,[y(e(W),{icon:e(xt),"aria-hidden":"true",class:"mr-1"},null,8,["icon"]),ge(" "+o(e(R)("WBEPLUS.ON_REQUEST"))+"! ",1)])):x("",!0),t("div",Il,[(s==null?void 0:s.wbeMode)!==3?(a(),l("p",Ul,o(r.$t(`WBEPLUS.PRICE_${(C=(p=s.priceConfig[0])==null?void 0:p.type)==null?void 0:C.toUpperCase()}`)),1)):x("",!0),P(s)?(a(),l("button",{key:1,type:"button",class:"btn-extra-actions",onClick:_e(E=>k(s),["stop"]),"aria-label":`${e(R)("WBEPLUS.EDIT")} ${s.publicName[e(g).language]}`},[y(e(W),{icon:e(Xt),"aria-hidden":"true"},null,8,["icon"]),d[6]||(d[6]=t("span",{class:"mx-2 h-4 w-px bg-border-primary"},null,-1)),y(e(W),{icon:e(Qt),"aria-hidden":"true"},null,8,["icon"])],8,Tl)):(a(),l("button",{key:2,type:"button",class:"btn-extra-add",onClick:_e(E=>k(s),["stop"]),"aria-label":`${e(R)("WBEPLUS.SELECT")} ${s.publicName[e(g).language]}`},[y(e(W),{icon:e(kt),"aria-hidden":"true"},null,8,["icon"])],8,Ml))])])])])],40,yl)}),128))])):(a(),l("div",Wl,[t("p",Dl,o(e(R)("WBEPLUS.NO_EXTRAS")),1)]))]),t("div",null,[t("button",{class:"w-full mb-5 lg:hidden btn-outline font-bold",style:{height:"48px"},onClick:b,"aria-label":"Show all available extras"},o(e(R)("WBEPLUS.SHOW_ALL_EXTRAS")),1)])])])):x("",!0)}}),Nl=ze(Fl,[["__scopeId","data-v-22c80c67"]]),Vl={class:"mr-2 font-bold"},zl=ce({__name:"StandardHeaderPackageSection",setup(ne){const{t:R}=fe(),$=ue();return(g,c)=>{const f=_t("RouterLink");return e($).availablePackages.length>0?(a(),Q(f,{key:0,class:"btn btn-outline flex items-center gap-2 !py-4 lg:!py-2 lg:!px-8 bg-surface-md",to:{name:"packages"},target:"_blank"},{default:Fe(()=>[y(e(W),{icon:e(Et),class:"text-color-brand-primary-100","aria-hidden":"true"},null,8,["icon"]),t("span",Vl,o(e(R)("WBEPLUS.OUR_PACKAGES")),1),y(e(W),{icon:e(Pt),class:"","aria-hidden":"true"},null,8,["icon"])]),_:1})):x("",!0)}}}),Gl={class:"relative"},Hl=["aria-label"],Kl={class:"absolute w-full bottom-0 z-10 header-content"},jl={class:"mb-16 mx-auto p-4 text-white text-xl font-bold z-10 text-center",id:"hotel-name"},ql={key:0,class:"text-xl"},Jl={key:1,class:"text-4xl"},Yl={role:"main",class:"border p-3 pt-0 pb-6 bg-surface-primary rounded-t-3xl quickstarter-wrapper"},Xl={class:"pt-5"},Ql={class:"mb-5 text-center"},Zl={class:"text-xl text-text-brand font-bold"},en=ce({__name:"MobileHeader",setup(ne){const R=ie(()=>re(()=>import("./formkit.theme-DVbh0M_W.js").then(f=>f.P),__vite__mapDeps([0,1,2]),import.meta.url)),{t:$}=fe(),g=ue(),c=he();return At(),(f,u)=>{var _,n,m,v,k,b,D;return a(),l("div",Gl,[t("div",{style:Bt("background-image: url('"+((n=(_=e(Xs)[0])==null?void 0:_.size1920)==null?void 0:n.url)+"')"),class:"parallax !z-10 w-full flex items-center justify-center relative",role:"img","aria-label":e($)("WBEPLUS.HOTEL_IMAGE")},u[0]||(u[0]=[t("div",{class:"overlay absolute top-0 left-0 w-full z-5","aria-hidden":"true"}
2,null,-1)]),12,Hl),t("div",Kl,[t("h1",jl,[(m=e(g).settings)!=null&&m.welcomeMessage&&((v=e(g).settings)==null?void 0:v.welcomeMessage)!=""?(a(),l("span",ql,o((b=(k=e(g))==null?void 0:k.settings)==null?void 0:b.welcomeMessage[e(c).language]),1)):(a(),l("span",Jl,o((D=e(g).hotelContent)==null?void 0:D.name),1))]),t("div",Yl,[t("div",Xl,[t("div",Ql,[t("p",Zl,o(e($)("WBEPLUS.TRAVEL_DATA")),1)]),y(e(R)),y(zl)])])])])}}}),tn=ze(en,[["__scopeId","data-v-8e17c514"]]),an={clock:xt,calendar:Zt,dog:ea,paw:ta,"mug-saucer":aa,utensils:sa,car:la,plane:na,umbrella:oa,bed:ra,key:ia,wheelchair:ca,gift:da,heart:ua,"champagne-glasses":it,"baby-carriage":fa,"calendar-check":pa,hourglass:ha,concierge:ma,baby:ga,child:va,cane:_a,elevator:ba,coffee:wa,wine:ya,champagne:it,water:xa,moon:ka,sun:Ca,snowflake:Sa,fan:Ra,bath:$a,shower:La,soap:Ea,tooth:Pa,cleaning:Aa,sparkle:Ba,trash:Oa,parking:Ia,taxi:Ua,suitcase:Ta,"luggage-cart":Ma,spa:Wa,pool:Da,gym:Fa,health:Na,briefcase:Va,laptop:za,wifi:Ga,printer:Ha,cake:Ka,star:ja,lock:qa,secure:ct,location:Ja,mountain:Ya,"bottle-water":Xa,bell:Qa,concierge_service:Za,phone:es,"mobile-phone":ts,tv:as,couch:ss,"door-closed":ls,"door-open":ns,"air-conditioning":os,heating:rs,wind:is,globe:cs,language:ds,city:us,ship:fs,bicycle:ps,beach:hs,palm:ms,charging:gs,snowman:vs,fireplace:_s,icecream:bs,burger:ws,pizza:ys,fish:xs,"glass-water":ks,smoking:Cs,"no-smoking":Ss,running:Rs,walking:$s,"map-signs":Ls,route:Es,"taxi-bus":Ps,subway:As,camera:Bs,music:Os,"volume-high":Is,mute:Us,light:Ts,"bed-front":dt,pillow:ut,history:Ms,checklist:Ws,breakfast:Ds,leaf:Fs,building:Ns,senior:ft,elderly:ft,"double-bed":dt,"twin-bed":Vs,hypoallergenic:ct,"bed-linen":ut,user:pt,guest:pt,business:ht,"business-user":ht,"user-clock":zs,quiet:Gs,"quiet-room":mt,"low-noise":mt,"do-not-disturb":Hs},sn={key:0},ln={class:"font-bold text-lg lg:text-xl mb-7"},nn={class:"flex flex-wrap gap-2"},on=["aria-pressed","onClick","onKeydown"],rn=ce({__name:"Wishlist",setup(ne){const{t:R}=fe(),$=ue(),g=he(),c=be(),f=L(()=>{var v;return((v=$.settings)==null?void 0:v.wishlist)??[]}),u=v=>{const k=v==null?void 0:v.icon;return k?String(k).trim().replace(/^fa-/,""):""},_=v=>{const k=u(v);return k?an[k]??null:null},n=v=>c.isWishlistSelected((v==null?void 0:v.id)??0),m=v=>{c.toggleWishlistItem(v)};return(v,k)=>f.value.length>0?(a(),l("div",sn,[t("p",ln,o(e(R)("WBEPLUS.WISHLIST_OFFER")),1),t("div",nn,[(a(!0),l(le,null,de(f.value,b=>{var D;return a(),l("button",{key:b.id,type:"button",class:z(["px-5 py-4 rounded-lg flex items-center gap-2 border",n(b)?"bg-surface-brand-primary text-white border-transparent":"bg-white border-gray-200 text-gray-900"]),"aria-pressed":n(b),onClick:B=>m(b),onKeydown:[je(_e(B=>m(b),["prevent"]),["enter"]),je(_e(B=>m(b),["prevent"]),["space"])]},[t("span",null,o(((D=b.name)==null?void 0:D[e(g).language])??""),1),_(b)?(a(),Q(e(W),{key:0,icon:_(b)},null,8,["icon"])):u(b)?(a(),l("i",{key:1,class:z(`fa-solid fa-${u(b)}`),"aria-hidden":"true"},null,2)):x("",!0)],42,on)}),128))])])):x("",!0)}}),cn={class:"p-9 text-sm"},dn={class:"font-bold text-2xl text-text-brand"},un={class:"pt-5"},fn={key:0,class:"mt-3"},pn=["href"],hn={class:"max-h-[395px] overflow-auto mt-7"},mn={class:"box-with-border flex flex-wrap mb-2 !bg-surface-md text-text-secondary min-h-20 w-full"},gn={class:"flex justify-between w-full"},vn={class:"flex w-10/12 flex-col justify-between"},_n={class:"font-bold text-base"},bn={class:"text-xs w-11/12 lg:w-full"},wn={class:"flex justify-between items-center gap-4"},yn={key:0,class:"w-full"},xn={class:"w-full mt-10"},kn={class:"flex justify-between w-full"},Cn={class:"inline-flex items-center justify-between gap-4"},Sn={class:"font-bold whitespace-nowrap"},Rn={class:"mt-2"},$n={class:"flex m-auto text-center items-center justify-center mt-6"},Ln={class:"flex w-11/12 text-xs lg:justify-center lg:w-full items-baseline font-bold"},En=ce({__name:"PivacySettings",emits:["close"],setup(ne,{emit:R}){const{t:$}=fe(),g=R,c=he(),f=ue(),u=A({}),_=L(()=>{let m={};return c.tracking.tracker.forEach(v=>{m[v.group]||(m[v.group]=[]),m[v.group].push(v),console.log(v.label)}),m}),n=()=>{g("close")};return(m,v)=>{var b,D,B,T,K,j;const k=_t("FormKit");return a(),l("div",cn,[t("div",null,[t("h1",dn,o(m.$t("WBEPLUS.PRIVACY_DIALOG_HEADER")),1),t("p",un,o(m.$t("WBEPLUS.PRIVACY_DIALOG_DESC")),1),(B=(D=(b=e(f).settings)==null?void 0:b.links)==null?void 0:D.gdpr)!=null&&B[e(c).language]?(a(),l("p",fn,[t("a",{class:"btn-link",href:(j=(K=(T=e(f).settings)==null?void 0:T.links)==null?void 0:K.gdpr)==null?void 0:j[e(c).language],target:"_blank"},o(m.$t("WBEPLUS.PRIVACY_DIALOG_READ")),9,pn)])):x("",!0)]),t("div",hn,[(a(!0),l(le,null,de(_.value,(O,P)=>(a(),l("div",mn,[t("div",gn,[t("div",vn,[t("p",_n,o(m.$t("WBEPLUS.TRACKER_GROUP_"+String(P).toUpperCase())),1),t("p",bn,o(m.$t("WBEPLUS.TRACKER_GROUP_"+String(P).toUpperCase()+"_DESC")),1)]),t("div",wn,[t("div",null,[t("div",{class:z({"toggle-indeterminate":O.filter(I=>I.allowed).length>0&&O.filter(I=>I.allowed).length<O.length})},[y(k,{type:"toggle",name:P,value:O.filter(I=>I.allowed).length>0,checked:O.filter(I=>I.allowed).length>0,onChange:I=>e(c).tracking.handleTrackerGroup(P,I),disabled:P==="required"},null,8,["name","value","checked","onChange","disabled"])],2)]),t("div",null,[y(e(W),{icon:e(Ct),onClick:I=>u.value[P]=!u.value[P],class:z(["text-text-secondary font-bold text-lg",u.value[P]?"minimizer-open":""])},null,8,["icon","onClick","class"])])])]),u.value[P]?(a(),l("div",yn,[(a(!0),l(le,null,de(O,I=>(a(),l("div",xn,[t("div",kn,[t("div",Cn,[y(k,{type:"toggle",name:I.id,value:I.allowed,checked:I.allowed,onChange:r=>e(c).tracking.handleTrackerToggle(I.id,r),disabled:P==="required"},null,8,["name","value","checked","onChange","disabled"]),t("p",Sn,o(m.$t("WBEPLUS.TRACKER_"+String(I.id).toUpperCase())),1)])]),t("div",Rn,o(m.$t("WBEPLUS.TRACKER_"+String(I.id).toUpperCase()+"_DESC")),1)]))),256))])):x("",!0)]))),256))]),t("div",null,[t("div",$n,[t("div",Ln,[t("button",{onClick:v[0]||(v[0]=O=>{e(c).tracking.handleClose(),n()}),"aria-label":"close button in privacy settings",class:"mr-4 !h-7 btn-link"},o(e($)("GLOBAL.CLOSE")),1),t("button",{onClick:v[1]||(v[1]=O=>{e(c).tracking.handleAcceptEssential(),n()}),"aria-label":"only essential in privacy settings",class:"btn-outline mr-4 !w-40 !h-9"},o(e($)("WBEPLUS.ONLY_ESSENTIAL")),1),t("button",{onClick:v[2]||(v[2]=O=>{e(c).tracking.handleAcceptAll(),n()}),"aria-label":"accept all button",class:"btn-primary !w-40 !h-9"},[ge(o(e($)("WBEPLUS.ACCEPT_ALL"))+" ",1),y(e(W),{style:{"font-size":"14px"},icon:e(bt),class:"text-white font-bold"},null,8,["icon"])])])])])])}}}),Pn={key:0,ref:"blogCookies",role:"dialog","aria-live":"polite","aria-labelledby":"
2cookie-banner-header","aria-describedby":"cookie-banner-description",class:"lg:flex cookiesClass bg-surface-primary rounded-t-3xl lg:rounded-none border text-xs lg:h-24 fixed justify-between items-center w-full bottom-0"},An={class:"lg:w-11/12 w-full text-center lg:text-left p-4 2xl:p-10 text-sm justify-center items-start"},Bn={id:"cookie-banner-header",class:"text-text-brand lg:text-xl text-2xl font-bold"},On={id:"cookie-banner-description",class:"text-xs text-center lg:text-left mt-2"},In={class:"lg:mr-10 w-10/12 lg:!w-[750px] xl:!w-[750px] 2xl:!w-[650px] m-auto items-center"},Un={class:"flex flex-wrap lg:flex-nowrap lg:flex-row justify-center items-center text-sm font-bold gap-4 mb-4 lg:mb-0"},Tn={class:"flex gap-4 w-full"},Mn=ce({__name:"Cookies",setup(ne){const{t:R}=fe(),$=he(),g=A(null),c=A(!1);return Ge(()=>{if(g.value){const f=getComputedStyle(g.value),u=Je(f.backgroundColor);c.value=u>128}}),(f,u)=>(a(),l("div",null,[(a(),Q(Ot,{to:"body"},[y(qe,{open:e($).showCookieDialog,onClose:u[1]||(u[1]=_=>e($).showCookieDialog=!1),role:"dialog","aria-labelledby":"cookie-settings-header","aria-describedby":"cookie-settings-description"},{content:Fe(()=>[y(En,{onClose:u[0]||(u[0]=_=>e($).showCookieDialog=!1)})]),_:1},8,["open"])])),e($).tracking.showBanner?(a(),l("div",Pn,[t("div",An,[t("h2",Bn,[ge(o(f.$t("WBEPLUS.PRIVACY_COOKIE_MESSAGE"))+" ",1),y(e(W),{icon:e(It)},null,8,["icon"])]),t("p",On,o(f.$t("WBEPLUS.PRIVACY_COOKIE_MESSAGE_DESC")),1)]),t("div",In,[t("div",Un,[t("button",{onClick:u[2]||(u[2]=_=>e($).showCookieDialog=!0),"aria-label":"Open cookie settings",class:"btn-link w-auto lg:w-none whitespace-nowrap"},o(e(R)("WBEPLUS.COOKIES_SETTINGS")),1),t("div",Tn,[t("button",{onClick:u[3]||(u[3]=_=>e($).tracking.handleAcceptEssential()),"aria-label":"Accept only essential cookies",class:"btn-outline whitespace-nowrap w-full lg:w-none lg:mb-0 !h-9"},o(e(R)("WBEPLUS.ONLY_ESSENTIAL")),1),t("button",{onClick:u[4]||(u[4]=_=>e($).tracking.handleAcceptAll()),"aria-label":"Accept all cookies",class:z([c.value?"!border-border-brand":"","btn-primary text-white !h-9 whitespace-nowrap w-full lg:mb-0 lg:w-none"])},[ge(o(e(R)("WBEPLUS.ACCEPT_ALL"))+" ",1),y(e(W),{style:{"font-size":"14px"},icon:e(bt),class:"pl-2 font-bold"},null,8,["icon"])],2)])])])],512)):x("",!0)]))}}
2),Wn={key:0,class:"lg:w-60 w-80 z-20 fixed mb-2",role:"dialog","aria-modal":"true","aria-label":"Room Upgrade Suggestion"},Dn={class:"flex items-end justify-end mb-2"},Fn={key:1,"aria-label":"Upgrade Price Difference",class:"border shadow-custom-shadow absolute top-28 bg-white -left-3 rounded-md p-1 pl-2 pr-2"},Nn={class:"text-xs font-bold text-black"},Vn={class:"text-black"},zn={class:"flex items-end pt-3 mb-2 w-full font-bold","aria-label":"Suggested Room Name"},Gn={class:"grid grid-cols-3 min-h-12 w-full",role:"table","aria-label":"Room Feature Comparison"},Hn={role:"cell"},Kn={role:"cell",class:"text-center"},jn={class:"flex btn-outline w-full h-8 mb-1 rounded-md mt-2 justify-center items-center bg-white",role:"button","aria-label":"Upgrade Room Button"},qn=ce({__name:"RoomUpgrade",setup(ne){const{emit:R}=Xe(),$=ie(()=>re(()=>import("./ImageLazyLoader-DY2FSO2o.js"),__vite__mapDeps([3,1,0,2]),import.meta.url)),{t:g}=fe(),c=he(),f=be(),u=ue(),_=A(!0),n=A(!1),m=A(null),v=L(()=>f==null?void 0:f.upgradeSuggestion),k=L(()=>{var d,s;const r=(s=f.reservation.rooms[(d=v.value)==null?void 0:d.roomConfigId])==null?void 0:s.id;return u.roomContentByRoomId[r]}),b=L(()=>{var r;return u.roomContentByRoomId[(r=v.value)==null?void 0:r.roomId]}),D=L(()=>{var w,F,p,C;if(!k.value||!b.value)return[];const r=[],d=k.value.roomFilter,s=b.value.roomFilter;return d.squareMeters<s.squareMeters&&r.push({current:`${d.squareMeters} m²`,suggestion:`${s.squareMeters} m²`}),((w=k.value.roomFilter)==null?void 0:w.bathroom)!==((F=b.value.roomFilter)==null?void 0:F.bathroom)&&r.push({current:c.language?g(k.value.roomFilter.bathroom):"",suggestion:c.language?g(b.value.roomFilter.bathroom):""}),((p=k.value.roomFilter)==null?void 0:p.view)!==((C=b.value.roomFilter)==null?void 0:C.view)&&r.push({current:c.language?g(k.value.roomFilter.view):"",suggestion:c.language?g(b.value.roomFilter.view):""}),r}),B=()=>{_.value=!1,R("updateRoomUpgradeFalse",_.value)},T=()=>{v.value&&(f.selectRoomPlan(v.value.plan,v.value.roomConfigId,1),R("updateRoomUpgradeTrue",_.value))},K=r=>{if(typeof r!="string")return r;const d=r.trim();if(!d.startsWith("{")&&!d.startsWith("["))return r;try{return JSON.parse(d)}catch{return r}},j=r=>{let d=(r==null?void 0:r.text)??r;return d=K(d),d?typeof d=="string"?d:(d==null?void 0:d[c.language])??(d==null?void 0:d.en)??Object.values(d)[0]??"":""},O=r=>Array.isArray(r)?r:[],P=L(()=>{var p,C;const r=O((p=k.value)==null?void 0:p.wbeUpgradeHighlights),d=O((C=b.value)==null?void 0:C.wbeUpgradeHighlights),s=r.map(j).filter(Boolean),w=d.map(j).filter(Boolean),F=Math.max(s.length,w.length);return Array.from({length:F},(E,J)=>({current:s[J]??"",suggestion:w[J]??""})).filter(E=>E.current||E.suggestion)}),I=L(()=>[...D.value,...P.value]);return Ge(()=>{if(m.value){const r=getComputedStyle(m.value),d=Je(r.backgroundColor);n.value=d>128}}),(r,d)=>{var s,w,F,p,C,E;return _.value&&v.value?(a(),l("div",Wn,[t("div",Dn,[t("div",{onClick:B,role:"button","aria-label":"Close Room Upgrade Suggestion",class:"h-6 w-6 shadow-button-shadow hover:scale-75 transition-all duration-500 border bg-white flex rounded-md justify-center items-center"},[y(e(W),{icon:e(St),class:"cursor-pointer","aria-hidden":"true"},null,8,["icon"])])]),t("div",{ref_key:"upgradeCardRef",ref:m,role:"alert","aria-live":"polite",class:"bg-surface-brand-primary border shadow-button-shadow text-center p-4 rounded-md"},[t("p",{class:z([n.value?"text-black":"text-white","text-sm"])},o(e(g)("WBEPLUS.ROOM_UPGRADE_AVAILABLE")),3)],512),t("div",{class:z(["w-full bg-surface-brand-primary border mt-2 rounded-md overflow-hidden",n.value?"text-black":"text-white"])},[t("div",null,[(F=(w=(s=b.value)==null?void 0:s.pictures[0])==null?void 0:w.size300)!=null&&F.url?(a(),Q(e($),{key:0,"animated-bg":!0,"as-background":!0,"data-src":b.value.pictures[0].size300.url,alt:(C=(p=b.value.pictures[0].sizeOriginal)==null?void 0:p.alt)==null?void 0:C[e(c).language],"force-load":!0,load:!0,class:"w-full h-28 aspect-video","aria-label":"Room Image"},null,8,["data-src","alt"])):x("",!0),v.value.priceDifference?(a(),l("div",Fn,[t("p",Nn,[y(e(W),{icon:e(kt),class:"mr-1","aria-hidden":"true"},null,8,["icon"]),t("span",Vn,o(e(ve)(v.value.priceDifference)),1)])])):x("",!0)]),t("div",{class:z(["bg-surface-brand-primary rounded-b-md flex flex-wrap p-2 text-sm",n.value?"text-black":"text-white"])},[t("div",zn,[t("p",null,o((E=b.value)==null?void 0:E.name[e(c).language]),1)]),t("div",Gn,[(a(!0),l(le,null,de(I.value,(J,oe)=>(a(),l(le,{key:oe},[t("div",Hn,o(J.current),1),t("div",Kn,[y(e(W),{icon:e(Ut),"aria-hidden":"true"},null,8,["icon"])]),t("div",null,o(J.suggestion),1)],64))),128))]),t("div",jn,[t("button",{class:"font-bold text-sm text-text-button-dark",onClick:T},o(e(g)("WBEPLUS.UPGRADE_FOR"))+" "+o(e(ve)(v.value.priceDifference)),1)])],2)],2)
2])):x("",!0)}}}),Jn=["aria-expanded"],Yn={key:0},Xn={class:"pt-3 mb-2 w-full text-center"},Qn={class:"font-bold w-11/12 m-auto"},Zn={class:"text-xs mt-2","aria-label":"Stay dates and guests"},eo={key:1,class:"bg-gray-200 p-4 text-xs"},to=["aria-label","aria-expanded"],ao={class:"flex items-center gap-1"},so=["innerHTML"],lo={key:0,class:"flex items-center justify-center"},no=["aria-label"],oo={key:2,class:"bg-gray-50 text-sm p-4"},ro=["aria-label"],io={key:1,class:"bg-surface-brand-primary text-white font-bold p-2"},co={"aria-label":"Collapsed Best Price"},uo={class:"text-sm overflow-hidden text-ellipsis whitespace-nowrap","aria-hidden":"true"},fo=ce({__name:"PriceWidget",props:{variant:{}},setup(ne){const R=ne,$=he(),g=be(),c=ue(),{t:f}=fe(),u=A(!1),_=A(!1),n=A(null),m=A(!1),{emit:v}=Xe(),k=L(()=>R.variant===2?{showHeader:!0,showMoreToggle:!1,showChannels:!1,bottomWhenShowMore:"bottom-7",collapsedListClass:"max-h-40 overflow-auto",expandedListClass:"h-full overflow-auto",iconMode:"chevron",advantagesAriaLabel:"Hotel Advantages"}:R.variant===3?{showHeader:!1,showMoreToggle:!0,showChannels:!1,bottomWhenShowMore:"bottom-20",collapsedListClass:"max-h-16 overflow-hidden",expandedListClass:"h-full overflow-hidden",iconMode:"xmark",advantagesAriaLabel:"Hotel Advantages"}:{showHeader:!0,showMoreToggle:!0,showChannels:!0,bottomWhenShowMore:"bottom-7",collapsedListClass:"max-h-16 overflow-hidden",expandedListClass:"h-full overflow-hidden",iconMode:"chevron",advantagesAriaLabel:"Hotel Advantages"}),b=L(()=>{const O=_.value?"h-20":"min-h-96 max-h-[420px]",P=u.value?k.value.bottomWhenShowMore:"bottom-0",I=c.settings.priceWidget===3?"mb-40":"";return`w-60 hidden lg:block z-20 fixed transition-all duration-1000 ${O} ${P} ${I}`}),D=L(()=>k.value.iconMode==="xmark"?St:_.value?Ks:Ct),B=L(()=>u.value?k.value.expandedListClass:k.value.collapsedListClass),T=()=>{_.value=!_.value,v("updateChevronDown",_.value)},K=L(()=>{const O=nt(g.reservation.config.arrival,"DD.MM"),P=nt(g.reservation.config.departure,"DD.MM.YYYY");return`${O} - ${P}`}),j=L(()=>{var O,P;return g.reservation.rooms.length&&((P=(O=g.reservation)==null?void 0:O.rooms[0])==null?void 0:P.name)});return Ge(()=>{if(!n.value)return;const O=getComputedStyle(n.value),P=Je(O.backgroundColor);m.value=P>128}),(O,P)=>{var I,r,d,s;return j.value?(a(),l("div",{key:0,role:"region","aria-label":"Best Price Section",class:z(b.value)},[t("div",{class:"absolute right-2 -top-1 cursor-pointer",onClick:T,"aria-label":"Toggle Best Price Details"},[t("div",{class:"h-6 w-6 hover:scale-95 transition-all duration-300 border border-gray-400 bg-white flex rounded-full justify-center items-center",role:"button","aria-expanded":!_.value},[y(e(W),{icon:D.value,class:"text-gray-600","aria-hidden":"true"},null,8,["icon"])],8,Jn)]),t("div",{ref_key:"dataText",ref:n,class:"w-full bg-surface-brand-primary border mt-2 rounded-md overflow-hidden"},[_.value?(a(),l("div",io,[t("p",co,o(e(ve)(e(g).reservation.price)),1),t("p",uo,o(e(f)("WBEPLUS.FOUND_BEST_PRICE")),1)])):(a(),l("div",Yn,[k.value.showHeader?(a(),l("div",{key:0,class:z([m.value?"text-black":"text-white","w-11/12 m-auto mb-4"])},[t("div",Xn,[t("p",Qn,o(e(f)("WBEPLUS.FOUND_BEST_PRICE")),1),t("p",Zn,o(K.value)+", "+o(e(g).reservation.totalNumberOfAdults)+" "+o(e(f)("GLOBAL.ADULTS_PLURAL",e(g).reservation.totalNumberOfAdults)),1)]),t("div",{"aria-label":"Direct Price",class:z([m.value?"border":"","bg-white text-text-primary flex justify-between p-3 text-xs rounded-md font-bold"])},[t("p",null,o(e(f)("WBEPLUS.DIRECT_PRICE")),1),t("p",null,o(e(ve)(e(g).reservation.price)),1)],2)],2)):x("",!0),(d=(r=(I=e(c))==null?void 0:I.hotelContent)==null?void 0:r.advantages)!=null&&d.length?(a(),l("div",eo,[t("ul",{class:z(B.value),"aria-label":k.value.advantagesAriaLabel,"aria-expanded":u.value},[(a(!0),l(le,null,de((s=e(c).hotelContent)==null?void 0:s.advantages,w=>(a(),l("li",{key:(w==null?void 0:w.id)??(w==null?void 0:w[e($).language])},[t("div",ao,[y(e(W),{icon:e(Tt),class:"mr-2","aria-hidden":"true"},null,8,["icon"]),t("div",{class:"custom-html",innerHTML:w[e($).language]},null,8,so)])]))),128))],10,to),k.value.showMoreToggle?(a(),l("div",lo,[t("span",{onClick:P[0]||(P[0]=w=>u.value=!u.value),class:"cursor-pointer mt-2 btn-link text-center !text-xs","aria-label":u.value?"Show less advantages":"Show more advantages",role:"button"},o(u.value?e(f)("WBEPLUS.LESS"):e(f)("WBEPLUS.SHOW_MORE")),9,no)])):x("",!0)])):x("",!0),k.value.showChannels?(a(),l("div",oo,[(a(!0),l(le,null,de(e(Qs),(w,F)=>(a(),l("div",{key:F,class:"flex justify-between w-full","aria-label":`Comparison price for ${w}`},[t("p",null,o(w),1),t("p",null,o(e(ve)(e(g).reservation.channelPrice)),1)],8,ro))),128))])):x("",!0)]))],512)],2)):x("",!0)}}}),po={key:0,class:"absolute inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":"true"},ho=ce({__name:"UpdatesDialogView",setup(ne){const{emit:R}=Xe(),$=be(),g=ue(),c=A(!0),f=A(!1),u=A(!1),_=A(!1),n=A(window.innerWidth<1024);Ge(()=>{const T=()=>{n.value=window.innerWidth<1024};return window.addEventListener("resize",T),T(),()=>window.removeEventListener("resize",T)});const m=L(()=>{var T;return((T=g==null?void 0:g.settings)==null?void 0:T.showChannelPrices)&&$.reservation.price<=$.reservation.channelPrice&&$.reservation.price>0}),v=L(()=>{var K;const T=Number((K=g==null?void 0:g.settings)==null?void 0:K.priceWidget);return T===2||T===3?T:1}),k=T=>{f.value=T,R("updateComprasion",T)},b=L(()=>c.value&&!!$.upgradeSuggestion),D=T=>{if(!T){c.value=!1,u.value=!1,R("updateRoomUpgraded",!1);return}u.value=!0,R("updateRoomUpgraded",!0)},B=L(()=>v.value===3||m.value);return(T,K)=>(a(),l("div",null,[b.value&&!_.value?(a(),l("div",{key:0,class:z(n.value?"fixed inset-0 z-[9999] flex items-end justify-center p-4":"")},[n.value?(a(),l("div",po)):x("",!0),y(qn,{class:z(["transition-all duration-1000",n.value?"relative z-10 w-72 flex-col justify-end":{"bottom-20":f.value,"lg:!bottom-2 !bottom-20":!f.value&&!m.value,"lg:bottom-96 !bottom-20":!f.value&&m.value&&n.value,"bottom-96":!f.value&&m.value&&!n.value}
2]),onUpdateRoomUpgrade:D,onUpdateRoomUpgradeFalse:K[0]||(K[0]=j=>_.value=!0)},null,8,["class"])],2)):x("",!0),B.value?(a(),Q(fo,{key:1,variant:v.value,onUpdateChevronDown:k},null,8,["variant"])):x("",!0)]))}}),mo={class:"flex w-full justify-between text-text-secondary"},go={key:0,id:"editRoomsView",class:"flex flex-wrap w-full scroll-anchor lg:justify-start justify-between lg:w-9/12"},vo=["onClick"],_o={key:0,class:"absolute -right-12 bottom-2 -translate-x-1/2 z-30"},bo={class:"flex items-center py-1 px-3 whitespace-nowrap rounded-lg border border-border-brand-secondary bg-selected-room-badge-background text-white text-xs"},wo={class:"font-light lowercase"},yo={class:"flex items-center"},xo=["alt","src"],ko={key:1,class:"w-[40px] h-[40px] rounded-full bgDoor flex items-center justify-center"},Co={key:0,class:"!text-[16px] max-w-48 overflow-hidden font-bold whitespace-nowrap text-ellipsis"},So={key:1,class:"!text-[12px]"},Ro={key:2,class:"ml-3"},$o={class:"font-bold"},Lo={class:"text-[12px]"},Eo={key:0,class:"pb-1 pt-1 max-w-64 !text-[12px]"},Po={class:"!text-[12px]"},Ao={key:0,class:"font-bold"},Bo={key:1,class:"ml-1"},Oo={class:"lowercase"},Io=["onClick"],Uo={key:0,class:"pr-2 pl-2"},To=["onClick"],Mo={key:1,class:"w-full mt-5 lg:mt-0 lg:mb-5"},Wo={class:"relative w-72"},Do=["src","alt"],Fo={key:1,class:"inline-flex items-center justify-center h-8 min-w-16 mr-2 rounded-md text-xs font-bold text-text-primary bg-surface-secondary px-2"},No={class:"absolute z-10 pt-0 mt-2 p-1 lg:w-[300px] w-[350px] bg-white border border-gray-300 rounded-md shadow-lg max-h-60 overflow-y-auto lg:left-1/2 transform lg:-translate-x-1/2"},Vo=["onClick"],zo={class:"w-3/4"},Go={class:"flex items-center"},Ho=["alt","src"],Ko={key:1,class:"w-[40px] h-[40px] rounded-full bg-gray-100 mr-3 flex items-center justify-center"},jo={class:"!text-[16px] max-w-40 overflow-hidden font-bold whitespace-nowrap text-ellipsis"},qo={key:0,class:"!text-[12px]"},Jo={key:1},Yo={class:"font-bold"},Xo={class:"text-[12px] lowercase"},Qo={key:0,class:"pb-1 pt-1 max-w-64 !text-[12px]"},Zo={class:"!text-[12px]"},er={key:0,class:"font-bold"},tr={key:1,class:"lowercase pl-1"},ar={class:"w-1/4 justify-end flex"},sr={key:1,class:"hidden lg:flex mb-10 text-[14px] max-w-[360px] p-1 cursor-pointer border border-border-primary bg-surface-primary rounded-lg h-[52px] flex-grow"},lr=["aria-label"],nr=["aria-label"],or=ce({__name:"SelectedRoomsView",props:{roomConfig:{default:()=>new vt},roomConfigId:{default:0},plans:{default:()=>({})},showUnavailableRooms:{type:Boolean,default:!1}},emits:["close","update:selectedRoomIndex"],setup(ne,{emit:R}){const $=R,{t:g}=fe(),c=ue(),f=be(),u=he(),_=A(!0),n=A(!1),m=L(()=>c.roomContentByRoomId||{}),v=A("custom"),k=A(window.innerWidth),b=A(null),D=A(!1),B=A(null),T=L(()=>f.reservation.rooms.length>1),K=L(()=>c.isLoadingPlans),j=h=>{const S=`${h.numberOfAdults} ${g("GLOBAL.ADULTS_PLURAL",h.numberOfAdults)}`,N=h.children.length>0?`, ${h.children.length} ${g("GLOBAL.CHILDREN_PLURAL",h.children.length)}`:"";return`${S}${N}`},O=ne,P=h=>{_.value=h==="matching",n.value=h==="comparison",c.setComprasionView(n.value)},I=(h="available",S)=>{var Y;const N=JSON.parse(JSON.stringify(O.plans)),q=[];for(const U in N){const M=N[U];if(!m.value[M.roomId])continue;M.content={...m.value[M.roomId],roomFilterFiltered:{}};for(const H in M.content.roomFilter){const Z=M.content.roomFilter[H],se=V=>f.filter.getFilter(H).length===0||f.filter.findFilterIndex(H,new ll({value:V}
2))>-1;M.content.roomFilterFiltered[H]={value:Z,valid:Array.isArray(Z)?Z.some(se):se(Z)}}M.hasMismatch=Object.values(M.content.roomFilterFiltered).some(H=>(H==null?void 0:H.valid)===!1);const i=M.plans.length>1||((Y=M.plans[0])==null?void 0:Y.id)!=="-1";h==="available"&&!i||h==="onRequest"&&i||(M.numberOfValidFilters=Object.values(M.content.roomFilterFiltered).filter(H=>H.valid).length,q.push(new cl(M)))}return q.sort((U,M)=>{if(f.filter.hasFilter())return M.numberOfValidFilters-U.numberOfValidFilters;if(S=="custom")return U.content.sequence-M.content.sequence;if(!U.plans.some(V=>V.id===O.roomConfig.rateKey))return 0;const G=U.plans.filter(V=>["rate","promotion"].includes(String(V.planType))),H=M.plans.filter(V=>["rate","promotion"].includes(String(V.planType)));if(!G.length)return 1;if(S=="high"){const V=G.reduce((te,ae)=>ae.totalPrice>te.totalPrice?ae:te);return H.reduce((te,ae)=>ae.totalPrice>te.totalPrice?ae:te).totalPrice-V.totalPrice}const Z=G.reduce((V,ee)=>ee.totalPrice<V.totalPrice?ee:V),se=H.reduce((V,ee)=>ee.totalPrice<V.totalPrice?ee:V);return Z.totalPrice-se.totalPrice})},r=L(()=>I("available",v.value)),d=L(()=>r.value.filter(h=>!h.hasMismatch)),s=L(()=>f.reservation.rooms.map(h=>{const S=d.value.find(N=>N.content.id===h.id);return S?{...S,matchedRoom:h}
2:{_content:{id:h.id},matchedRoom:h,_plans:[]}})),w=L(()=>f.reservation.rooms.length<=4),F=L(()=>{var h,S,N,q,Y,U;return(h=b.value)!=null&&h.id?((U=(Y=(q=(N=(S=c==null?void 0:c.roomContentByRoomId)==null?void 0:S[b.value.id])==null?void 0:N.pictures)==null?void 0:q[0])==null?void 0:Y.size300)==null?void 0:U.url)??null:null}),p=L(()=>{var h,S,N,q,Y,U,M;return(h=b.value)!=null&&h.id?((M=(U=(Y=(q=(N=(S=c==null?void 0:c.roomContentByRoomId)==null?void 0:S[b.value.id])==null?void 0:N.pictures)==null?void 0:q[0])==null?void 0:Y.sizeOriginal)==null?void 0:U.alt)==null?void 0:M[u.language])??"":""}),C=()=>{_.value=!0,n.value=!1,c.setComprasionView(!1),$("close")},E=h=>{if(B.value===h){c.setRoomConfig(!c.isClosedRoomConfig);return}c.setRoomConfig(!1),D.value=!1,f.setSelectedRoomIndex(h),B.value=h,b.value=f.reservation.rooms[h],$("update:selectedRoomIndex",h)},J=L(()=>B.value==null?null:`${g("GLOBAL.ROOM")} ${B.value+1}`),oe=()=>{k.value=window.innerWidth,k.value<1024&&(_.value=!0,n.value=!1,P("matching"))},pe=h=>{const S=[...f.reservation.rooms];if(S.splice(h,1),f.reservation.rooms=S,!S.length){f.setSelectedRoomIndex(0);return}const N=U=>(U==null?void 0:U.id)===-1||(U==null?void 0:U.rateKey)==="-1",q=[...S.slice(0,h).map((U,M)=>h-1-M),...S.slice(h).map((U,M)=>h+M)];let Y=q.find(U=>N(S[U]))??q.find(U=>!N(S[U]))??0;f.setSelectedRoomIndex(Y)};return Ne(k,h=>{h<1024&&(_.value=!0,n.value=!1)}),Ne(()=>{var h;return(h=c==null?void 0:c.settings)==null?void 0:h.roomOrder},h=>{v.value=h},{immediate:!0}),wt(()=>{f._lastRoomsCount=f.reservation.rooms.length,window.addEventListener("resize",oe),oe()}),Mt(()=>{window.removeEventListener("resize",oe)}),Ne(()=>[K.value,f.selectedRoomIndex,f.reservation.rooms.length],([h])=>{if(h)return;const S=f.selectedRoomIndex??0;f.reservation.rooms[S]&&(B.value=S,b.value=f.reservation.rooms[S],c.setRoomConfig(!1),$("update:selectedRoomIndex",S))},{immediate:!0}),(h,S)=>{var N,q,Y,U,M;return a(),l("div",mo,[s.value.length>0?(a(),l("div",go,[w.value?(a(!0),l(le,{key:0},de(s.value,(i,G)=>{var H,Z,se,V,ee,te,ae,X,me,we,ye,xe,ke,Ce,Se,Re,$e,Le,Ee,Pe,Ae,Be,Oe,Ie,Ue,Te,Me,We,De,Ve,Qe,Ze,et,tt,at,st,lt;return a(),l("div",{key:(H=i==null?void 0:i._content)==null?void 0:H.id,onClick:He=>E(G),class:z(["relative flex lg:mt-0 mt-5 cursor-pointer hover:text-white hover-parent hover:bg-color-brand-secondary-100 hover:text-text-white justify-between lg:mr-4 lg:mb-5 border border-border-primary rounded-md p-2 lg:w-80 w-full",B.value===G?"bg-surface-secondary":"bg-surface-primary"])},[B.value===G?(a(),l("span",_o,[t("span",bo,[t("span",wo,o(h.$t("WBEPLUS.SELECTED")),1)])])):x("",!0),t("div",null,[t("div",yo,[(ee=(V=(se=(Z=e(c))==null?void 0:Z.roomContentByRoomId)==null?void 0:se[i._content.id])==null?void 0:V.pictures[0])!=null&&ee.size300.url?(a(),l("img",{key:0,alt:(ye=(we=(me=(X=(ae=(te=e(c))==null?void 0:te.roomContentByRoomId)==null?void 0:ae[i._content.id])==null?void 0:X.pictures[0])==null?void 0:me.sizeOriginal)==null?void 0:we.alt)==null?void 0:ye[e(u).language],class:"h-10 w-10 mr-3 rounded-full",src:(Se=(Ce=(ke=(xe=e(c))==null?void 0:xe.roomContentByRoomId)==null?void 0:ke[i._content.id])==null?void 0:Ce.pictures[0])==null?void 0:Se.size300.url},null,8,xo)):(a(),l("div",ko,[y(e(W),{icon:e(Ke),class:"w-[18px] h-[22px] text-black"},null,8,["icon"])])),t("div",null,[(Le=($e=(Re=e(c))==null?void 0:Re.roomContentByRoomId)==null?void 0:$e[i._content.id])!=null&&Le.name[e(u).language]?(a(),l("p",Co,o((Ae=(Pe=(Ee=e(c))==null?void 0:Ee.roomContentByRoomId)==null?void 0:Pe[i._content.id])==null?void 0:Ae.name[e(u).language]),1)):x("",!0),(Be=i==null?void 0:i.matchedRoom)!=null&&Be.numberOfAdults&&((Ie=(Oe=e(c))==null?void 0:Oe.roomContentByRoomId)!=null&&Ie[i._content.id])?(a(),l("p",So,o(j(i==null?void 0:i.matchedRoom)),1)):(a(),l("div",Ro,[t("p",$o,o(h.$t("GLOBAL.ROOM"))+" "+o(G+1),1),t("p",Lo,o(j(i==null?void 0:i.matchedRoom)),1)]))])]),(Ue=i==null?void 0:i._plans[0])!=null&&Ue.name[e(u).language]?(a(),l("p",Eo,o((Te=e(c).roomContentByRoomId)==null?void 0:Te[e(f).reservation.rooms[G].id].shortDescription[e(u).language]),1)):x("",!0),t("p",Po,[(Me=i==null?void 0:i._plans[0])!=null&&Me.totalPrice?(a(),l("span",Ao,o(e(ve)((De=(We=i==null?void 0:i.matchedRoom)==null?void 0:We._plan)==null?void 0:De.totalPrice)),1)):x("",!0),(Ve=i==null?void 0:i._plans[0])!=null&&Ve.totalPrice&&((et=(Ze=(Qe=e(f))==null?void 0:Qe.reservation)==null?void 0:Ze.config)!=null&&et.numberOfNights)&&((at=(tt=e(c))==null?void 0:tt.roomContentByRoomId)!=null&&at[i._content.id])?(a(),l("span",Bo,[t("span",Oo,o(h.$t("ROOM.FOR")),1),ge(" "+o(e(f).reservation.rooms[G].dayPrices.length)+" ",1),t("span",{class:z(e(u).language==="de"?"":"lowercase")},[(st=e(c).settings)!=null&&st.dayUse?(a(),l(le,{key:0},[ge(o(h.$t("GLOBAL.DAYS_PLURAL",e(f).reservation.rooms[G].dayPrices.length)),1)],64)):(a(),l(le,{key:1}
2,[ge(o(h.$t("GLOBAL.NIGHTS_PLURAL",e(f).reservation.rooms[G].dayPrices.length)),1)],64))],2)])):x("",!0)])]),t("div",{class:z(["flex items-start text-sm",(lt=e(c).roomContentByRoomId)!=null&<[i._content.id]?"":"lg:h-14 h-20"])},[t("button",{onClick:_e(He=>C(),["stop"]),"aria-label":"Edit room"},[y(e(W),{icon:e(Wt)},null,8,["icon"])],8,Io),T.value?(a(),l("p",Uo,"|")):x("",!0),T.value?(a(),l("button",{key:1,onClick:_e(He=>pe(G),["stop"]),"aria-label":"Remove room"},[y(e(W),{onClick:_e(He=>pe(G),["stop"]),icon:e(rt)},null,8,["onClick","icon"])],8,To)):x("",!0)],2)],10,vo)}),128)):(a(),l("div",Mo,[t("div",Wo,[t("button",{onClick:S[0]||(S[0]=i=>D.value=!D.value),"aria-label":"open or close room",class:"block z-10 w-full flex justify-between items-center px-3 py-2 text-left border border-gray-300 rounded-md shadow-sm bg-white focus:outline-none"},[F.value?(a(),l("img",{key:0,src:F.value,alt:p.value,class:"h-8 w-8 mr-2 rounded-full object-cover"},null,8,Do)):J.value?(a(),l("span",Fo,o(J.value),1)):(a(),Q(e(W),{key:2,icon:e(Ke),class:"mr-2"},null,8,["icon"])),ge(" "+o(((Y=(q=e(c).roomContentByRoomId)==null?void 0:q[(N=b.value)==null?void 0:N.id])==null?void 0:Y.name[e(u).language])||"Select a room")+" ",1),D.value?(a(),Q(e(W),{key:3,icon:e(js)},null,8,["icon"])):(a(),Q(e(W),{key:4,icon:e(qs)},null,8,["icon"]))]),Ye(t("div",No,[(a(!0),l(le,null,de(s.value,(i,G)=>{var H,Z,se,V,ee,te,ae,X,me,we,ye,xe,ke,Ce,Se,Re,$e,Le,Ee,Pe,Ae,Be,Oe,Ie,Ue,Te,Me,We,De;return a(),l("div",{key:i==null?void 0:i._content.id,onClick:Ve=>E(G),class:"flex items-center hover-parent w-[98%] flex justify-between m-auto mt-0.5 lg:p-1 p-2 cursor-pointer rounded-md hover:text-white hover:bg-color-brand-secondary-100"},[t("div",zo,[t("div",Go,[(V=(se=(Z=(H=e(c))==null?void 0:H.roomContentByRoomId)==null?void 0:Z[i==null?void 0:i._content.id])==null?void 0:se.pictures[0])!=null&&V.size300.url?(a(),l("img",{key:0,alt:(we=(me=(X=(ae=(te=(ee=e(c))==null?void 0:ee.roomContentByRoomId)==null?void 0:te[i._content.id])==null?void 0:ae.pictures[0])==null?void 0:X.sizeOriginal)==null?void 0:me.alt)==null?void 0:we[e(u).language],class:"h-10 w-10 mr-3 rounded-full",src:(ke=(xe=(ye=e(c).roomContentByRoomId)==null?void 0:ye[i==null?void 0:i._content.id])==null?void 0:xe.pictures[0])==null?void 0:ke.size300.url},null,8,Ho)):(a(),l("div",Ko,[y(e(W),{icon:e(Ke),class:"w-[18px] h-[22px] rounded-full"},null,8,["icon"])])),t("div",null,[t("p",jo,o((Se=(Ce=e(c).roomContentByRoomId)==null?void 0:Ce[i._content.id])==null?void 0:Se.name[e(u).language]),1),(Re=e(c).roomContentByRoomId)!=null&&Re[i._content.id]?(a(),l("p",qo,o(h.$t("ROOM.FOR"))+" "+o(($e=i==null?void 0:i.matchedRoom)==null?void 0:$e.numberOfAdults)+" "+o(h.$t("GLOBAL.ADULTS_PLURAL",(Le=i==null?void 0:i.matchedRoom)==null?void 0:Le.numberOfAdults)),1)):(a(),l("div",Jo,[t("p",Yo,o(h.$t("GLOBAL.ROOM"))+" "+o(G+1),1),t("p",Xo,o(h.$t("ROOM.FOR"))+" "+o((Ee=i==null?void 0:i.matchedRoom)==null?void 0:Ee.numberOfAdults)+" "+o(h.$t("GLOBAL.ADULTS_PLURAL",(Pe=i==null?void 0:i.matchedRoom)==null?void 0:Pe.numberOfAdults)),1)]))])]),(Ae=i==null?void 0:i._plans[0])!=null&&Ae.name[e(u).language]?(a(),l("p",Qo,o(i==null?void 0:i._plans[0].name[e(u).language]),1)):x("",!0),t("p",Zo,[(Be=i==null?void 0:i._plans[0])!=null&&Be.totalPrice?(a(),l("span",er,o(e(ve)(i==null?void 0:i._plans[0].totalPrice)),1)):x("",!0),(Oe=e(c).roomContentByRoomId)!=null&&Oe[i._content.id]?(a(),l("span",tr,o(h.$t("WBEPLUS.PER"))+" "+o((Te=(Ue=(Ie=e(f))==null?void 0:Ie.reservation)==null?void 0:Ue.config)==null?void 0:Te.numberOfNights)+" "+o(h.$t("GLOBAL.NIGHTS_PLURAL",(De=(We=(Me=e(f))==null?void 0:Me.reservation)==null?void 0:We.config)==null?void 0:De.numberOfNights)),1)):x("",!0)])]),t("div",ar,[y(e(W),{onClick:Ve=>pe(G),icon:e(rt)},null,8,["onClick","icon"])])],8,Vo)}),128))],512),[[yt,D.value]])])]))])):x("",!0),((M=(U=e(c))==null?void 0:U.settings)==null?void 0:M.showRoomComparison)!==!1?(a(),l("div",sr,[t("button",{onClick:S[1]||(S[1]=i=>P("matching")),role:"button",tabindex:"0","aria-label":e(g)("WBEPLUS.MATCHING_ROOMS"),class:z(["flex items-center justify-center whitespace-nowrap flex-grow px-2 rounded-lg",_.value?"bg-surface-secondary":""])},[y(e(W),{icon:e(Dt),class:"mr-2"},null,8,["icon"]),t("span",null,o(e(g)("WBEPLUS.MATCHING_ROOMS")),1)],10,lr),t("button",{onClick:S[2]||(S[2]=i=>d.value.length>=3?P("comparison"):null),role:"button",tabindex:"0","aria-label":e(g)("WBEPLUS.COMPARISON_ROOMS"),class:z(["flex items-center justify-center flex-grow px-2 rounded-lg",n.value?"bg-surface-secondary":"",d.value.length<3?"cursor-not-allowed opacity-50":""])},[y(e(W),{icon:e(Js),class:"mr-2"},null,8,["icon"]),t("span",null,o(e(g)("WBEPLUS.COMPARISON_ROOMS")),1)],10,nr)])):x("",!0)])}}}),rr=ze(or,[["__scopeId","data-v-6c688655"]]),ir={id:"main-content",class:"bg-surface-md target-section"},cr={class:"paddingSize p-0 w-full pl-4 pr-4 lg:pt-10 lg:pb-10"},dr={key:0,class:"bg-blue-100 p-4 mb-5 text-sm rounded-md",role:"alert","aria-live":"polite"},ur={class:"inline-flex w-full lg:m-auto lg:p-0 gap-0 xl:gap-2"},fr={"aria-label":"Filter Section",class:"hidden lg:block xl:flex-[0_0_280px] 2xl:flex-[0_0_280px] lg:mb-9 bg-surface-primary shadow-box-sha
2dow2 rounded-md mt-5 p-2 self-start sticky top-20"},pr={key:0,role:"status","aria-live":"polite",class:"bg-surface-primary rounded-xl mb-10 py-10 text-center shadow-xl my-4"},hr={class:"animate-pulse text-text-primary"},mr={key:1},gr={key:0},vr={key:1,class:"border border-border-primary rounded-md bg-surface-secondary p-2 mt-5 lg:mt-0"},_r={class:"flex flex-col gap-6 mt-10"},br={"aria-label":"Contact and Summary Section"},wr={"aria-label":"Page Footer"},yr={key:0,"aria-label":"Mobile Summary"},xr={class:"lg:absolute lg:bottom-0 lg:right-0 lg:z-20 transition-all duration-1000 lg:w-[250px]",role:"dialog","aria-label":"Update Information"},kr={role:"complementary","aria-label":"Cookies Notification"},Cr=ce({__name:"MainPage",props:{roomConfig:{default:()=>new vt},roomConfigId:{default:0},plans:{default:()=>({})},showUnavailableRooms:{type:Boolean,default:!1}},setup(ne){const R=ie(()=>re(()=>import("./RoomConfig-DKiCgIH-.js"),__vite__mapDeps([4,0,1,2,5,6,7,8]),import.meta.url)),$=ie(()=>re(()=>import("./SpecialRequest-CfAOA9xV.js"),__vite__mapDeps([9,10,1,0,2]),import.meta.url)),g=ie(()=>re(()=>import("./Savings-C6BVxnwN.js"),__vite__mapDeps([11,1,0,2,7,8]),import.meta.url));Ft.extend(Nt);const c=Vt(Gt),{t:f}=fe(),u=Ht(),_=he(),n=ue(),m=be();A(!1);const v=A(!1),k=A(!0),b=A(!0);L(()=>b.value);const D=L(()=>k.value),B=A(0);A("grid");const T=p=>{b.value=p},K=p=>{k.value=p},j=L(()=>n.isClosedRoomConfig),O=L(()=>{var p;return((p=n==null?void 0:n.settings)==null?void 0:p.showChannelPrices)&&m.reservation.price<=m.reservation.channelPrice&&m.reservation.price>0}),P=L(()=>{var C;let p=((C=n.settings)==null?void 0:C.headerLayout)??"bento";return["Standard","Specials","Package","Bento","Voucher"].includes(u.name)&&(p=String(u.name).toLowerCase()),p==="standard"?ie(()=>re(()=>import("./StandardHeader-BB4UiX0I.js"),__vite__mapDeps([12,0,1,2,7,8,13,14,15,16,17,3,18,19,20,6,21,22,23,24,25,26,5]),import.meta.url)):p==="specials"?ie(()=>re(()=>import("./SpecialsHeader-D186EpaB.js"),__vite__mapDeps([27,0,1,2,7,8]),import.meta.url)):p==="package"?ie(()=>re(()=>import("./PackageHeader-mRwz-eej.js"),__vite__mapDeps([28,0,1,2,8]),import.meta.url)):p==="voucher"?ie(()=>re(()=>import("./VoucherHeader-D8kIqDQy.js"),__vite__mapDeps([29,0,1,2,25,7,8]),import.meta.url)):p==="bento"?ie(()=>re(()=>import("./BentoHeader-C3vQV8Ec.js"),__vite__mapDeps([30,0,1,2,7,8]),import.meta.url)):ie(()=>re(()=>import("./BentoHeader-C3vQV8Ec.js"),__vite__mapDeps([30,0,1,2,7,8]),import.meta.url))}),I=async p=>{n.setIsLoadingPlans(!0),u.params.voucherCode&&u.name==="Voucher"&&(p.code=u.params.voucherCode);let C=null;u.params.packageID&&u.name==="Package"&&(C=u.params.packageID);try{const{data:E}=await jt(_.hotelId,p,C);n.setPlans(JSON.parse(JSON.stringify(E.value)))}catch{n.setPlans({meta:{},data:{inventories:[],roomConfigs:[{plans:[]}]}})}m.updateReservation(JSON.parse(JSON.stringify({plans:n.plans,extras:n.extras}))),n.setIsLoadingPlans(!1),v.value=!0,m.handleDeeplinks(u.query,"dynamic"),d(),s()},r=Kt(p=>{I(p)},1e3),d=()=>{if(u.name==="Package"){m.reservation.rooms.forEach(p=>{var C;p.rateKey=((C=u==null?void 0:u.params)==null?void 0:C.packageID.toString())??"-1"});return}m.reservation.rooms.forEach((p,C)=>{var J,oe,pe,h,S,N,q,Y,U,M,i,G,H,Z,se,V,ee,te,ae;if(p.rateKey!=="-1"&&p.manualRateKey!=="-1"&&((pe=(oe=(J=n==null?void 0:n.plansRaw)==null?void 0:J[C])==null?void 0:oe.plans)!=null&&pe.filter(X=>X.inventory>0&&X.id===p.rateKey).length))return;const E=(N=(S=(h=n==null?void 0:n.plansRaw)==null?void 0:h[C])==null?void 0:S.plans)==null?void 0:N.filter(X=>X.inventory>0);p.rateKey==="-1"&&((q=n.settings)!=null&&q.defaultRate)&&(p.rateKey=(Y=n.settings)==null?void 0:Y.defaultRate),p.rateKey!=="-1"&&p.manualRateKey==="-1"&&((M=(U=n==null?void 0:n.plansRaw)==null?void 0:U[C])!=null&&M.plans.length)&&((G=(i=n==null?void 0:n.plansRaw)==null?void 0:i[C])==null?void 0:G.plans[0].id)!==p.rateKey&&!(E!=null&&E.filter(X=>{var me;return X.id===((me=n.settings)==null?void 0:me.defaultRate)}).length)&&(p.rateKey=(Z=(H=n==null?void 0:n.plansRaw)==null?void 0:H[C])==null?void 0:Z.plans[0].id),p.rateKey!=="-1"&&!(E!=null&&E.filter(X=>X.id===p.rateKey).length)&&(p.rateKey="-1"),p.rateKey==="-1"&&p.manualRateKey!=="-1"&&((ee=(V=(se=n==null?void 0:n.plansRaw)==null?void 0:se[C])==null?void 0:V.plans)!=null&&ee.filter(X=>X.id==p.manualRateKey).length)&&(p.rateKey=p.manualRateKey),p.rateKey==="-1"&&(E!=null&&E.length)&&((te=E[0])!=null&&te.id)&&
2(p.rateKey=(ae=E[0])==null?void 0:ae.id)})},s=()=>{n.inventories=JSON.parse(JSON.stringify(n.inventoriesOriginal)),m.reservation.rooms.forEach((p,C)=>{p.id!==-1&&n.inventories[p.id]&&B.value!==C&&(n.inventories[p.id].inventory=n.inventories[p.id].inventory-p.quantity)})},w=L(()=>m.reservation.rooms),F=p=>{B.value=p};return wt(()=>{Ne(Zs,async(p,C)=>{const E=JSON.stringify(p),J=JSON.stringify(C);E!==J&&await r(JSON.parse(E))},{immediate:!0,deep:!0}),Ne(B,async(p,C)=>{s()},{immediate:!1,deep:!1})}),(p,C)=>{var E,J,oe,pe;return a(),l("div",null,[C[0]||(C[0]=t("a",{href:"#main-content",class:"sr-only focusable-skip-link"},"Skip to Content",-1)),t("header",null,[e(c).smaller("lg").value===!0&&e(u).name!=="Package"?(a(),Q(tn,{key:0,class:"mobile-header","aria-label":"Mobile Navigation Header"})):(a(),Q(zt(P.value),{key:1,class:"header-component","aria-label":"Main Header Component",plan:e(n).availablePackages.find(h=>{var S,N;return h.id===((N=(S=e(u))==null?void 0:S.params)==null?void 0:N.packageID)}),role:"banner"},null,8,["plan"]))]),t("main",ir,[t("div",cr,[e(n).filterChecked?(a(),l("section",dr,[t("p",null,o(e(f)("WBEPLUS.FILTER_WARNING")),1)])):x("",!0),t("div",ur,[Ye(t("aside",fr,[y(nl)],512),[[yt,!e(n).isComprasionView&&(((J=(E=e(n))==null?void 0:E.settings)==null?void 0:J.showRoomFilter)??!0)]]),t("div",{class:z([e(n).isComprasionView?"":"lg:pl-5","flex-1 min-w-0"])},[e(n).isLoadingPlans?(a(),l("section",pr,[t("h1",hr,o(e(f)("GLOBAL.LOADING"))+"...",1)])):(a(),l("section",mr,[B.value!==null?(a(),l("div",gr,[y(rr,{plans:e(n).plans[B.value],"room-config":w.value[B.value],"room-config-id":B.value,"onUpdate:selectedRoomIndex":F},null,8,["plans","room-config","room-config-id"]),j.value?x("",!0):(a(),Q(e(R),{key:0,plans:e(n).plans[B.value],"room-config-id":B.value,"room-config":w.value[B.value],"aria-label":"Room Configuration for {{ roomConfig.name }}"},null,8,["plans","room-config-id","room-config"])),j.value&&e(m).reservation.rooms.every(h=>h._id!==-1)?(a(),l("p",vr,o(e(f)("WBEPLUS.ALL_ROOMS_SELECTED_TEXT")),1)):x("",!0)])):x("",!0)])),t("section",_r,[O.value&&((pe=(oe=e(n))==null?void 0:oe.settings)==null?void 0:pe.priceWidget)!=2?(a(),Q(e(g),{key:0,class:"savingsClass","aria-label":"Savings Overview"})):x("",!0),y(Nl,{"aria-label":"Popular Extras"}),e(m).reservation.extras.length?(a(),Q(gt,{key:1,reservation:e(m).reservation,"aria-label":"Selected Extras"},null,8,["reservation"])):x("",!0),e(m).reservation.extras.length?(a(),Q(gt,{key:2,reservation:e(m).reservation,mandatory:!0,"aria-label":"Selected Extras"},null,8,["reservation"])):x("",!0),y(rn,{"aria-label":"Wishlist"}),y(e($),{"aria-label":"Special Requests"})])],2)])])]),t("section",br,[y(il,{class:"lg:bg-surface-secondary"})]),t("footer",wr,[y(ol)]),!e(n).calendarClicked&&e(m).reservation.price!==0?(a(),l("section",yr,[y(rl)])):x("",!0),t("section",xr,[y(ho,{onUpdateRoomUpgraded:T,onUpdateComprasion:K})]),t("aside",kr,[y(Mn)]),D.value?(a(),Q(qt,{key:1,tabindex:"0","aria-label":"View Comparison Button",class:z(O.value?"bottom-6 mb-14 h-32 fixedClass":"fixedClass bottom-[-20px]")},null,8,["class"])):x("",!0)])}}}),Sr=ze(Cr,[["__scopeId","data-v-0266594a"]]),Vr=Object.freeze(Object.defineProperty({__proto__:null,default:Sr},Symbol.toStringTag,{value:"Module"}));export{Vr as M,zl as _};
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.