1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/Dialog--Oz4HeDi.js"),window.__toCdnUrl("assets/vendor-lxhXACKn.js"),window.__toCdnUrl("assets/formkit.theme-DVbh0M_W.js"),window.__toCdnUrl("assets/globalBasic-DCViCoV8.js"),window.__toCdnUrl("assets/MenuDialog-DUHt2s2x.js"),window.__toCdnUrl("assets/light-nUpfvi-t.js"),window.__toCdnUrl("assets/SummaryView-Duq8VMAW.js"),window.__toCdnUrl("assets/Plans-B2GUwHGw.js")])))=>i.map(i=>d[i]); 2import{u as ne,a as ke,g as ut,_ as fe,b as $e,Q as ct,c as Ie,r as He,R as ye,C as dt,f as Ve,d as mt,B as gt,D as ft,E as vt,e as bt,h as ht,i as xt,j as pt,k as nt,l as wt,m as yt,s as Se,n as _t,o as kt,p as Je,q as Ct,t as It}from"./assets/formkit.theme-DVbh0M_W.js";import{d as se,u as Ce,a as De,r as O,w as St,o as f,c as C,b as i,t as P,e as n,n as W,f as st,g as j,h as Y,i as Oe,j as Ne,k as z,l as Et,m as Lt,p as Ke,q as Re,s as $t,v as k,T as ot,x as J,F as ae,y as Dt,z as B,A as Ot,B as Nt,C as Ye,D as Rt,E as lt,G as Ge,H as Qe,I as Xe,J as Ze,K as et,L as Ee,M as it,N as K,O as Pt,P as Tt,Q as q,R as At,S as Mt,U as Bt,V as zt,W as tt,X as Le,Y as _e,Z as qt,_ as Wt,$ as Ut,a0 as jt,a1 as Ft,a2 as Ht,a3 as Vt,a4 as Jt,a5 as at,a6 as Kt,a7 as Yt,a8 as Gt,a9 as Qt,aa as Xt,ab as Zt,ac as ea,ad as ta,ae as aa,af as na}from"./assets/vendor-lxhXACKn.js";import{g as sa}from"./assets/Plans-B2GUwHGw.js";import rt from"./assets/Dialog--Oz4HeDi.js";import{g as oa}from"./assets/globalBasic-DCViCoV8.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))a(t);new MutationObserver(t=>{for(const s of t)if(s.type==="childList")for(const d of s.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function o(t){const s={};return t.integrity&&(s.integrity=t.integrity),t.referrerPolicy&&(s.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?s.credentials="include":t.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(t){if(t.ep)return;t.ep=!0;const s=o(t);fetch(t.href,s)}})();const la={class:"flex flex-col h-64 justify-between p-6 pt-0 text-center mt-7"},ia={class:"text-text-brand text-2xl font-bold"},ra={class:"mt-10 text-text-secondary w-2/3 m-auto"},ua={class:"flex mt-10 w-full font-bold"},ca=se({__name:"SessionTimeout",setup(c,{emit:e}){const{t:o}=Ce();De();const a=ne(),t=ke(),s=O(null),d=O(!1),h=e,p=()=>{localStorage.removeItem("wbe-config-"+a.hotelId)},m=()=>{setTimeout(()=>{location.reload(),h("closeDialog")},1e3)},L=()=>{setTimeout(()=>{t.resetReservation(),p(),location.reload()},1e3)};return St(()=>{if(s.value){const u=getComputedStyle(s.value),v=ut(u.backgroundColor);d.value=v>128}}),(u,v)=>(f(),C("div",la,[i("h3",ia,P(n(o)("WBEPLUS.TIMEOUT")),1),i("div",ra,P(n(o)("WBEPLUS.CONGRATS")),1),i("div",ua,[i("button",{class:W([d.value?"!border !border-border-brand":"","btn-primary w-1/2 mr-4"]),"aria-label":"select next room in timeout",onClick:m,ref_key:"buttonRef",ref:s},P(n(o)("SELECT.NEXTTOROOMS")),3),i("button",{onClick:L,"aria-label":"restart in timeout",class:"btn-outline m-auto w-1/2"},P(n(o)("WBEPLUS.RESTART")),1)])]))}}),da={};function ma(c,e){const o=st("router-view");return f(),j(o,null,{default:Y(({Component:a,route:t})=>[(f(),j(Oe(a),{key:t.path}))]),_:1})}const ga=fe(da,[["render",ma]]),fa={"aria-label":"Reservation Navigation and Header",class:"bg-border-primary z-[110]",role:"document"},va={class:"pt-10"},ba={class:"hotelMessages bg-white","aria-label":"Hotel banner navigation",role:"banner"},ha={key:0,ref:"hotelMessages","aria-hidden":"true",class:"flex text-xs h-20 justify-between items-center border-b border-mobile-menu-border w-full pr-2 pl-2 bg-header-message-background sr-h"},xa={class:"w-2/12 lg:w-1/12 flex justify-center items-center"},pa={class:"w-full max-h-20 lg:max-h-16 lg:h-auto align-center text-center",style:{"font-size":"var(--header-font-size)"}},wa=["href"],ya={class:"w-2/12 flex justify-center items-center"},_a=["alt","src"],ka={key:0,class:"w-1/2 m-auto"},Ca={class:"lg:flex lg:items-center"},Ia={key:0,class:"hidden lg:flex text-text-primary items-center"},Sa={class:"relative flex items-center"},Ea=["aria-expanded"],La=["value"],$a=["aria-expanded"],Da={key:0},Oa={"aria-label":"Mobile navigation",class:"lg:hidden",role:"navigation"},Na={class:"flex bg-mobile-header-background w-full border-b border-mobile-menu-border justify-between pl-4 pr-4 h-13 print:hidden"},Ra={class:"text-mobile-menu-text"},Pa=["alt","src"],Ta={class:"relative flex justify-end w-1/3 items-center"},Aa=["aria-expanded"],Ma=["value"],Ba=se({__name:"NavBar",setup(c){const{t:e}=Ce(),o=Ne(),a=De(),t=ne(),s=$e();ke();const d=z(()=>!s.isQuickstarterVisible),h=z(()=>{var w;return((w=o==null?void 0:o.meta)==null?void 0:w.showQuickstarter)??!1}),p=O(null),m=O(!1),L=O(!1),u=O(!1),v=Ee(()=>Ie(()=>import("./assets/Dialog--Oz4HeDi.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),T=Ee(()=>Ie(()=>import("./assets/MenuDialog-DUHt2s2x.js"),__vite__mapDeps([4,1,5,2,3]),import.meta.url)),r=Ee(()=>Ie(()=>import("./assets/SummaryView-Duq8VMAW.js"),__vite__mapDeps([6,2,1,3,7]),import.meta.url)),x=Et(Lt),I=O(!0),g=O(0),_=O(!1),$=()=>{u.value=window.innerWidth>=1024},S=z(()=>{var w,l;return(l=(w=s==null?void 0:s.settings)==null?void 0:w.languages)==null?void 0:l.map(R=>({value:R,label:String(R).toUpperCase()}))}),b=z(()=>u.value?"fixed top-0 left-0 z-10":"sticky bg-white m-auto w-full"),E=O(null);Ke(m,async w=>{var l,R;w&&(await it(),(R=(l=E.value)==null?void 0:l.focusFirst)==null||R.call(l))});const N=z(()=>m.value?"text-text-button-dark":"text-text-button-light"),G=z(()=>m.value),H=()=>{a.push({name:"Main"})},Q=z(()=>g.value===0),ve=z(()=>g.value===D.value.length-1),oe=()=>{D.value.length>0&&(g.value=(g.value+1)%D.value.length)},be=()=>{D.value.length>0&&(g.value=(g.value-1+D.value.length)%D.value.length)},le=new ResizeObserver(w=>{for(const l of w)if(l.contentBoxSize){const R=l.contentBoxSize[0],U=document.querySelector(":root");U==null||U.style.setProperty("--navbar-offset",R.blockSize+"px")}}),D=z(()=>{var w;return((w=s.settings)==null?void 0:w.messages)??[]});let X,Z;const ie=()=>{const w=document.querySelector(".blog2");w&&w.classList.toggle("fixedStyle",(window.scrollY||window.pageYOffset)>0)};return Re(()=>{p.value&&le.observe(p.value),Z=setTimeout(()=>{D.value.length>1&&(X=setInterval(oe,5e3))},2e3),$(),window.addEventListener("resize",$),window.addEventListener("scroll",ie)}),$t(()=>{Z&&clearTimeout(Z),X&&clearInterval(X),window.removeEventListener("resize",$),window.removeEventListener("scroll",ie),le.disconnect()}),Ke(m,w=>{w?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")}),(w,l)=>{var R,U,re,ue,ce,de,me,ge,V,ee,he,A,te,xe,pe,we,M,F,Pe,Te,Ae,Me,Be,ze,qe,We,Ue,je,Fe;return f(),C("div",fa,[(f(),j(ot,{to:"body"},[k(n(v),{open:L.value,"aria-labelledby":"summary-title",role:"dialog",onClose:l[0]||(l[0]=y=>L.value=!1)},{content:Y(()=>[i("div",va,[l[13]||(l[13]=i("h2",{id:"summary-title",class:"sr-only"},"Reservation Summary",-1)),k(n(r))])]),_:1},8,["open"])])),m.value?(f(),j(n(T),{key:0,ref_key:"menuRef",ref:E,onClose:l[1]||(l[1]=y=>m.value=!1)},null,512)):J("",!0),i("div",{id:"header-element",class:W(`w-full lg:border-none no-print-padding print:hidden block ${b.value}`),ref_key:"headerElement",ref:p},[i("div",ba,[D.value.length>0&&!m.value&&I.value?(f(),C("div",ha,[i("div",xa,[D.value.length>1?(f(),C(ae,{key:0},[i("button",{class:W([{"opacity-50 cursor-not-allowed":Q.value},"rounded-full cursor-pointer hover:scale-95 flex text-lg shadow-button-shadow justify-center items-center font-bold mr-4 bg-white lg:w-9 lg:h-9 w-6 h-6"]),"aria-label":"Previous hotel message",onClick:be},[k(n(B),{icon:n(Dt)},null,8,["icon"])],2),i("button",{class:W([{"opacity-50 cursor-not-allowed":ve.value},"rounded-full cursor-pointer hover:scale-95 flex text-lg shadow-button-shadow justify-center items-center font-bold bg-white lg:w-9 lg:h-9 w-6 h-6"]),"aria-label":"Next hotel message",onClick:oe},[k(n(B),{icon:n(Ot)},null,8,["icon"])],2)],64)):J("",!0)]),i("div",{class:W([((re=(U=(R=n(s).settings)==null?void 0:R.styles)==null?void 0:U["header-font-size"])==null?void 0:re.value)??"text-sm","w-8/12 px-4 flex justify-center items-center m-auto align-mid text-center font-bold"]),"aria-atomic":"true","aria-live":"polite",role:"status"},[i("p",pa,P((ce=(ue=D.value[g.value])==null?void 0:ue.message)==null?void 0:ce[n(t).language]),1),(me=(de=D.value[g.value])==null?void 0:de.link)!=null&&me[n(t).language]?(f(),C("a",{key:0,href:(V=(ge=D.value[g.value])==null?void 0:ge.link)==null?void 0:V[n(t).language],target:"_blank"},[k(n(B),{icon:n(Nt),"aria-hidden":"true",class:"text-text-secondary cursor-pointer"},null,8,["icon"])],8,wa)):J("",!0)],2),i("div",ya,[i("button",{"aria-label":"Close hotel messages",class:"btn-icon",onClick:l[2]||(l[2]=y=>I.value=!1)},[k(n(B),{icon:n(Ye),"aria-hidden":"true",class:"text-lg cursor-pointer hover:scale-95 duration-300 transition-all text-text-secondary"},null,8,["icon"])])])],512)):J("",!0),i("nav",{class:W([{"bg-white":m.value,"bg-surface-brand-primary w-full":!m.value&&n(s).settings},"lg:flex hidden items-center justify-between w-full h-14 pl-4 pr-4 paddingSize text-text-button-light"]),"aria-label":"Main hotel menu navigation",role:"navigation"},[i("div",{class:W([N.value,"hidden lg:block whitespace-nowrap cursor-pointer hover:scale-95 transition-all duration-200"]),onClick:l[3]||(l[3]=y=>H())},[(he=(ee=n(s).hotelContent)==null?void 0:ee.logo)!=null&&he.size300?(f(),C("img",{key:0,alt:((pe=(xe=(te=(A=n(s).hotelContent)==null?void 0:A.logo)==null?void 0:te.sizeOriginal)==null?void 0:xe.alt)==null?void 0:pe[n(t).language])??"Logo",src:(F=(M=(we=n(s).hotelContent)==null?void 0:we.logo)==null?void 0:M.size300)==null?void 0:F.url,class:"max-h-10 p-1 rounded bg-color-logo-background"},null,8,_a)):(f(),C(ae,{key:1},[Rt(P((Pe=n(s).hotelContent)==null?void 0:Pe.name),1)],64))],2),i("div",null,[k(lt,{name:"fade-slide"},{default:Y(()=>[d.value&&!w.$route.path.includes("/package/")&&!m.value&&h.value&&n(x).greater("lg").value===!0?(f(),
2C("div",ka,[k(ct,{isNavbar:!0,class:"quickstarter-in-navbar !quickstarter-item-navbar"})])):J("",!0)]),_:1})]),i("div",Ca,[G.value?(f(),C("div",Ia,[l[14]||(l[14]=i("label",{class:"sr-only",for:"language-selector"},"Select Language",-1)),i("div",Sa,[Ge(i("select",{id:"language-selector","onUpdate:modelValue":l[4]||(l[4]=y=>n(t).language=y),"aria-expanded":_.value,"aria-haspopup":"listbox",class:"text-sm w-20 mt-0.5 cursor-pointer",name:"language",role:"combobox",onBlur:l[5]||(l[5]=y=>_.value=!1),onFocus:l[6]||(l[6]=y=>_.value=!0)},[(f(!0),C(ae,null,Xe(S.value,y=>(f(),C("option",{key:y.value,value:y.value},P(y.label),9,La))),128))],40,Ea),[[Qe,n(t).language]]),k(n(B),{icon:n(Ze),"aria-hidden":"true",class:"absolute right-1 text-lg text-text-primary pointer-events-none"},null,8,["icon"])])])):J("",!0),i("button",{"aria-expanded":m.value,"aria-controls":"menu-content","aria-label":"Toggle navigation menu",class:"hidden lg:block hover:scale-95 duration-200 transition-all flex items-center cursor-pointer",tabindex:"0",onClick:l[7]||(l[7]=y=>m.value=!m.value)},[k(n(B),{icon:n(et),class:"mr-2 text-text-button-light"},null,8,["icon"]),G.value?(f(),j(n(B),{key:1,icon:n(Ye),class:"cursor-pointer text-black"},null,8,["icon"])):(f(),C("span",Da,P(n(e)("WBEPLUS.MENU")),1))],8,$a)])],2)]),i("div",Oa,[i("div",Na,[i("button",{"aria-label":"Open menu",class:"flex items-center cursor-pointer w-1/3",onClick:l[8]||(l[8]=y=>m.value=!0)},[k(n(B),{icon:n(et),class:"mr-2 text-mobile-menu-icon"},null,8,["icon"]),i("span",Ra,P(n(e)("WBEPLUS.MENU")),1)]),(Me=(Ae=(Te=n(s).hotelContent)==null?void 0:Te.logo)==null?void 0:Ae.size300)!=null&&Me.url?(f(),C("div",{key:0,class:"m-auto w-1/3 flex justify-center",onClick:l[9]||(l[9]=y=>H())},[i("img",{alt:((We=(qe=(ze=(Be=n(s).hotelContent)==null?void 0:Be.logo)==null?void 0:ze.sizeOriginal)==null?void 0:qe.alt)==null?void 0:We[n(t).language])??"Logo",src:(Fe=(je=(Ue=n(s).hotelContent)==null?void 0:Ue.logo)==null?void 0:je.size300)==null?void 0:Fe.url,class:"h-[35px] w-auto"},null,8,Pa)])):J("",!0),i("div",Ta,[l[15]||(l[15]=i("label",{class:"sr-only",for:"mobile-language-selector"},"Select Language",-1)),Ge(i("select",{id:"mobile-language-selector","onUpdate:modelValue":l[10]||(l[10]=y=>n(t).language=y),"aria-expanded":_.value,"aria-haspopup":"listbox",class:"flex justify-center h-4 text-sm text-mobile-language-text bg-border-primary pr-9 cursor-pointer",name:"language",role:"combobox",onBlur:l[11]||(l[11]=y=>_.value=!1),onFocus:l[12]||(l[12]=y=>_.value=!0)},[(f(!0),C(ae,null,Xe(S.value,y=>(f(),C("option",{key:y.value,value:y.value},P(y.label),9,Ma))),128))],40,Aa),[[Qe,n(t).language]]),k(n(B),{icon:n(Ze),class:"pointer-events-none absolute -right-1 text-lg text-mobile-language-icon mt-0.5","aria-hidden":"true"},null,8,["icon"])])])])],2)])}}}),za=fe(Ba,[["__scopeId","data-v-23313364"]]),qa={key:0,class:"flex flex-col items-center justify-center min-h-screen gap-16"},Wa={class:"text-[20px] xl:text-[25px] whitespace-break-spaces leading-[60px] text-center"},Ua={class:"min-h-64 flex flex-col p-6"},ja={class:"flex items-center justify-center h-auto flex-1"},Fa={class:"w-full text-center"},Ha={class:"font-bold"},Va={class:"flex items-center justify-center"},Ja=se({__name:"DefaultTemplate",setup(c){K.extend(Pt);const e=ne(),o=$e(),a=ke(),t=Ne(),s=De(),d=O(!0),h=O(!1),p=O({start:null,end:null}),m=()=>{let r=document.querySelector('link[rel="icon"]');const x="https://api.res-online.net";r||(r=document.createElement("link"),r.setAttribute("rel","icon"),document.head.appendChild(r)),r.setAttribute("href",`${x}/api/content/favicon?hotelId=${e.hotelId}&size=64`)},L=Mt(async()=>{var r,x,I,g,_,$,S,b,E,N,G,H,Q,ve,oe,be,le,D,X,Z,ie,w,l,R,U,re,ue,ce,de,me,ge;if(d.value=!0,e.hotelId!==0)try{const[V,ee,he]=await Promise.all([ht(e.hotelId),xt(e.hotelId,a.reservation.initialConfig),pt(e.hotelId)]);V.statusCode.value!==200&&await s.push({name:"hotel_not_found"}),(g=(I=(x=(r=ee.data)==null?void 0:r.value)==null?void 0:x.meta)==null?void 0:I.other)!=null&&g.maintenance&&(h.value=!0,p.value=(b=(S=($=(_=ee.data)==null?void 0:_.value)==null?void 0:$.meta)==null?void 0:S.other)==null?void 0:b.maintenance);const A=(E=V.data.value)==null?void 0:E.data,te=(N=ee.data.value)==null?void 0:N.data;te.styles&&nt(te.styles);const xe=(G=he.data.value)==null?void 0:G.data;o.setHotelContent(A==null?void 0:A.hotel),o.setRoomContent(A==null?void 0:A.rooms);const pe=A==null?void 0:A.rooms.reduce((M,F)=>(M[F.id]=F,M),{});if(o.setRoomContentByRoomId(pe),o.setSettings(te),((H=o.settings)==null?void 0:H.status)===-1&&s.push({name:"not_found"}),((Q=o.settings)==null?void 0:Q.status)===2&&t.meta.blockedForOfferOnlyMode&&s.push({name:"not_found"}),a.reservation.initialConfig){a.reservation.config.numberOfAdults=(ve=o.settings)==null?void 0:ve.initialAdults,(be=(oe=a==null?void 0:a.reservation)==null?void 0:oe.rooms)!=null&&be[0]||a.reservation.rooms.push(new wt),a.reservation.rooms[0].numberOfAdults=(le=o.settings)==null?void 0:le.initialAdults,(D=a.reservation.rooms[0])==null||D.applyGuests(),(X=o.settings)!=null&&X.firstArrival&&((Z=o.settings)!=null&&Z.firstDeparture)&&(a.reservation.config.arrival=(ie=o.settings)==null?void 0:ie.firstArrival,a.reservation.config.departure=(w=o.settings)==null?void 0:w.firstDeparture);try{navigator.languages.some(M=>{const F=M.split("-")[0];if(o.settings.languages.includes(F))return e.language=F,!0})}catch(M){console.error("Could not fetch language",M)}}else e.language!==((R=(l=a==null?void 0:a.reservation)==null?void 0:l.booker)==null?void 0:R.language)&&((ue=o.settings)!=null&&ue.languages.includes((re=(U=a==null?void 0:a.reservation)==null?void 0:U.booker)==null?void 0:re.language))&&(e.language=((de=(ce=a==null?void 0:a.reservation)==null?void 0:ce.booker)==null?void 0:de.language)??"en");a.handleDeeplinks(t.query),o.setExtras(xe),o.availablePackagesLoading=!0;const we=await sa(e.hotelId);o.setAvailablePackage(((ge=(me=we.data.value)==null?void 0:me.data)==null?void 0:ge.plans)??[]),o.availablePackagesLoading=!1,it(()=>{var M;document.title=(M=o.hotelContent)==null?void 0:M.name,m()})}catch(V){console.error("Error fetching static data:",V)}finally{d.value=!1}},200),u=async()=>{var x,I,g,_,$,S,b,E,N;const r=await yt((x=t.params)==null?void 0:x.hotelID,(I=t.query)==null?void 0:I.loadProcess);($=(_=(g=r==null?void 0:r.data)==null?void 0:g.value)==null?void 0:_.data)!=null&&$.reservationData&&(a.reservation=new ye((E=(b=(S=r==null?void 0:r.data)==null?void 0:S.value)==null?void 0:b.data)==null?void 0:E.reservationData),console.log("SET RES FROM SHARE",a.reservation.extras)),await s.replace({name:"Main",params:{hotelID:(N=t.params)==null?void 0:N.hotelID}})},v=async()=>{var r,x,I;
2if(["successful_reservation","reservation"].includes((t==null?void 0:t.name)??"")||((r=t==null?void 0:t.query)==null?void 0:r.action)!="modify"){console.log("SKIP LOAD RES");return}try{const g=t.params.resID||t.query.resID||t.query.resId,_=t.params.email||t.query.email;if(!g||!_)return;const $=t.params.hotelID,S=await mt($,g,_),b=(I=(x=S==null?void 0:S.data)==null?void 0:x.value)==null?void 0:I.data;if(b!=null&&b.reservation){const E=new ye(b==null?void 0:b.reservation);E.version++,E.booker=new gt(b==null?void 0:b.booker),E.booker.language=e.language,E.config=new ft(b==null?void 0:b.reservation),E.extras.forEach((N,G)=>{N=new vt(N);const H=o.extras.find(Q=>Q.id===N.id);E.addExtra(new bt(H),N.priceConfigID,N.excludedKeys,N.quantity)}),a.reservation=E,console.log("SET RES from EXISTING RES",a.reservation)}}catch(g){console.error("Error fetching reservation:",g)}},T=async()=>{var r,x;if((r=t.query)!=null&&r.loadProcess)await u();else if((x=t.query)!=null&&x.resId)await v();else{const I=localStorage.getItem(`wbe-config-${e.hotelId}`);if(I){const g=JSON.parse(I);K(g.config.arrival).isBefore(K().startOf("day"))||(a.setReservationData(g),a.reservation.initialConfig=!1)}}a.loadedLocalStorage=!0,o.resetData(),await L()};return window.testConversion=()=>{a.reservation.resId="test-"+He(1e3,9999),a.reservation.conversionTracked=!1,a.trackConversion()},Tt(()=>{q(()=>[e.hotelId,t],T,{immediate:!0,debounce:0}),q(()=>{var r;return(r=o.settings)==null?void 0:r.trackingCodes},r=>{r&&e.tracking.setup(o.settings)},{immediate:!0,debounce:500}),q(()=>t.params.hotelID,()=>e.setHotelId(t.params.hotelID),{debounce:500,deep:!0}),q(()=>a.reservation,()=>{if(a.loadedLocalStorage){localStorage.getItem(`wbe-config-${e.hotelId}`)||(a.reservation.resId=String(He(1e8,999999999)));const r=new ye(JSON.parse(a.reservation.toJson()));r.booker.creditCard=new dt,localStorage.setItem(`wbe-config-${e.hotelId}`,r.toJson())}},{debounce:500,deep:!0}),q(()=>a.reservation.price,()=>{try{ne().tracking.cartUpdate(new ye(JSON.parse(a.reservation.toJsonFull())))}catch(r){console.warn(r)}},{debounce:5e3,deep:!0}),q(()=>e.isPaymentWindowOpen,r=>{!r&&window.paymentWindow&&window.paymentWindow.close()},{debounce:500}),q(()=>t.name,r=>{v()},{debounce:500}),a.reservation.config.arrival||a.resetReservation(),T()}),(r,x)=>{var g,_,$;const I=st("router-view");return f(),C(ae,null,[i("div",{class:W((($=(_=(g=n(o).settings)==null?void 0:g.styles)==null?void 0:_.radius)==null?void 0:$.value)??"radius-small")},[k(za,{class:"relative"}),h.value?(f(),C("div",qa,[k(n(B),{icon:n(At),class:"text-[200px] xl:text-[250px] text-text-brand"},null,8,["icon"]),i("div",Wa,P(r.$t(p.value.translationKey??"",[n(Ve)(n(K)(p.value.start),"DD.MM.YYYY HH:mm"),n(Ve)(n(K)(p.value.end),"DD.MM.YYYY HH:mm")])),1)])):(f(),j(I,{key:1,class:"router-view"},{default:Y(({Component:S,route:b})=>[k(lt,{name:"fade",mode:"out-in",duration:550},{default:Y(()=>[(f(),j(Oe(S),{key:b.path,class:"navbar-offset"}))]),_:2},1024)]),_:1}))],2),k(rt,{open:n(e).isPaymentWindowOpen,onClose:x[1]||(x[1]=()=>n(e).isPaymentWindowOpen=!1)},{content:Y(()=>[i("div",Ua,[i("div",ja,[i("div",Fa,[i("h3",Ha,P(r.$t("WBEPLUS.CONTNEWWINDOW")),1)])]),i("div",Va,[i("a",{class:"btn-primary cursor-pointer",onClick:x[0]||(x[0]=S=>n(a).openWindow(n(e).paymentWindowLink))},P(r.$t("WBEPLUS.OPENWINDOWAGAIN")),1)])])]),_:1},8,["open"])],64)}}}),Ka={};function Ya(c,e){return null}const Ga=fe(Ka,[["render",Ya]]),Qa=se({__name:"App",setup(c){const e=ne(),o=$e(),a=ke(),t=Ne(),s=O(!1),d=O(!1),h=z(()=>{var u,v;return(u=t==null?void 0:t.meta)!=null&&u.template&&((v=t==null?void 0:t.meta)==null?void 0:v.template)==="Default"?Ja:ga});Bt(h.value),q(()=>e.language,async u=>{var v;await Se((v=t.params)==null?void 0:v.hotelID,u),a.reservation.booker.language=u},{debounce:500,deep:!0}),q(()=>{var u;return(u=t.params)==null?void 0:u.hotelID},async u=>{var v,T;e.setHotelId(u),await Se((v=t.params)==null?void 0:v.hotelID,"en"),await Se((T=t.params)==null?void 0:T.hotelID,e.language??"en")},{debounce:500,deep:!0});const p=u=>{nt(u),requestAnimationFrame(()=>{document.documentElement.classList.remove("theme-loading"),document.documentElement.classList.add("theme-ready")})};q(()=>{var u;return(u=t.query)==null?void 0:u.styles},async u=>{u&&p(JSON.parse(u))},{debounce:500,deep:!0});const m=()=>{const u=document.body.scrollHeight;
2window.parent.postMessage(JSON.stringify({height:u}),"*")};let L=null;return Re(()=>{document.documentElement.classList.add("theme-loading"),(window.self!==window.top||window.frameElement)&&(d.value=!0),L=setInterval(()=>{if(!o.lastLiveDataFetch)return;K().diff(K(o.lastLiveDataFetch),"minutes")>=20&&(s.value=!0)},1e3),d.value===!0&&(window.addEventListener("message",u=>{if(u.data&&typeof u.data=="string"){const v=JSON.parse(u.data);p(v)}},!1),window.onload=m,window.onresize=m),d&&window.parent.postMessage(JSON.stringify({loaded:!0}),"*"),a.reservation.booker.language=e.language}),setTimeout(()=>{document.documentElement.classList.contains("theme-loading")&&(document.documentElement.classList.remove("theme-loading"),document.documentElement.classList.add("theme-ready"))},1500),zt(()=>{clearTimeout(L)}),(u,v)=>(f(),C(ae,null,[(f(),j(Oe(h.value))),(f(),j(ot,{to:"body"},[k(rt,{open:s.value,closable:!1,onClose:v[1]||(v[1]=T=>s.value=!1),class:"max-w-[600px]"},{content:Y(()=>[k(ca,{onCloseDialog:v[0]||(v[0]=T=>s.value=!1)})]),_:1},8,["open"]),k(Ga)]))],64))}}),Xa=c=>(c.props.type==="checkbox"||c.props.type==="radio")&&c.props.options,Za=c=>{c.on("created",()=>{const e=c.props.parsedRules.some(t=>t.name==="required");if(!e)return;const o=Xa(c);c.props.definition.schemaMemoKey=`required_${o?"multi_":""}${c.props.definition.schemaMemoKey}`;const a=c.props.definition.schema;c.props.definition.schema=(t={})=>{var s,d;return e&&((d=(s=c==null?void 0:c.props)==null?void 0:s.label)==null?void 0:d.trim())!==""&&(o?t.legend={children:["$label"," *"]}:t.label={children:["$label"," *"]}),a(t)}})},en={class:"inline-flex relative items-center gap-1",role:"group","aria-labelledby":"number-input-label"},tn=["aria-disabled"],an=["name","value","aria-valuemin","aria-valuemax","aria-valuenow"],nn=["aria-disabled"],sn=se({__name:"NumberAdvanced",props:{context:Object},setup(c){Ce();const e=c,o=s=>{var d,h,p,m,L,u;(d=e==null?void 0:e.context)!=null&&d.max&&s>((h=e==null?void 0:e.context)==null?void 0:h.max)&&(s=(p=e==null?void 0:e.context)==null?void 0:p.max),(m=e==null?void 0:e.context)!=null&&m.min&&s<((L=e==null?void 0:e.context)==null?void 0:L.min)&&(s=(u=e==null?void 0:e.context)==null?void 0:u.min),e.context.node.input(Number(s??0))},a=()=>{var d,h;const s=Number(((d=e==null?void 0:e.context)==null?void 0:d._value)??0)-1;s<((h=e==null?void 0:e.context)==null?void 0:h.min)||o(s)},t=()=>{var d,h;const s=Number(((d=e==null?void 0:e.context)==null?void 0:d._value)??0)+1;s>((h=e==null?void 0:e.context)==null?void 0:h.max)||o(s)};return(s,d)=>{var h,p,m,L,u,v,T,r,x,I,g,_,$,S,b;return f(),C("div",en,[i("button",{class:W(["btn-plus-minus",{"input-trigger-disabled":Number((h=e==null?void 0:e.context)==null?void 0:h.min)===Number(((p=e==null?void 0:e.context)==null?void 0:p._value)??0)}]),onClick:tt(a,["prevent","stop"]),"aria-label":"Decrease value",tabindex:"0","aria-disabled":Number((m=e==null?void 0:e.context)==null?void 0:m.min)===Number(((L=e==null?void 0:e.context)==null?void 0:L._value)??0)?"true":"false"},[k(n(B),{icon:n(qt),class:"text-sm"},null,8,["icon"])],10,tn),i("input",Le({name:(v=(u=e==null?void 0:e.context)==null?void 0:u.node)==null?void 0:v.name,type:"number",class:"font-bold !w-6 !border-solid !border-1 !border-hp-gray-500 flex-initial leading-normal !flex-grow-0",value:Number(((T=e==null?void 0:e.context)==null?void 0:T._value)??0)},(r=e==null?void 0:e.context)==null?void 0:r.attrs,{onInput:d[0]||(d[0]=E=>o(E.target.value)),onKeyup:[_e(t,["right"]),_e(a,["left"])],onKeydown:[_e(t,["up"]),_e(a,["down"])],role:"spinbutton","aria-valuemin":((x=e==null?void 0:e.context)==null?void 0:x.min)??0,"aria-valuemax":((I=e==null?void 0:e.context)==null?void 0:I.max)??100,"aria-valuenow":((g=e==null?void 0:e.context)==null?void 0:g._value)??0,"aria-live":"polite",id:"number-input"}),null,16,an),i("button",{class:W(["btn-plus-minus",{"input-trigger-disabled":Number((_=e==null?void 0:e.context)==null?void 0:_.max)<=Number((($=e==null?void 0:e.context)==null?void 0:$._value)??0)}]),onClick:tt(t,["prevent","stop"]),"aria-label":"Increase value",tabindex:"0","aria-disabled":Number((S=e==null?void 0:e.context)==null?void 0:S.max)<=Number(((b=e==null?void 0:e.context)==null?void 0:b._value)??0)?"true":"false"},[k(n(B),{icon:n(Wt),class:"text-sm"},null,8,["icon"])],10,nn)])}}}),on=fe(sn,[["__scopeId","data-v-4870d526"]]),ln=["id","name","disabled"],rn=se({__name:"AlternativeCheckbox",props:{context:Object},setup(c){Ce();const e=c,o=a=>{e.context.node.input(a)};return Re(()=>{}),(a,t)=>{var s,d,h,p,m;return f(),C("label",Le({class:["custom-checkbox",{"custom-checkbox-disabled":(s=e==null?void 0:e.context)==null?void 0:s.disabled}]},{role:"checkbox","aria-checked":(d=c.context)==null?void 0:d._value,"aria-disabled":(h=e==null?void 0:e.context)!=null&&h.disabled?"true":"false"}),[i("input",Le({type:"checkbox",class:"custom-checkbox-input",id:c.context.
2id,name:c.context.node.name,disabled:((p=e==null?void 0:e.context)==null?void 0:p.disabled)??!1},(m=e==null?void 0:e.context)==null?void 0:m.attrs,{onInput:t[0]||(t[0]=L=>o(L.target.checked))}),null,16,ln),t[1]||(t[1]=i("span",{class:"checkmark",tabindex:"0"},null,-1))],16)}}}),un=fe(rn,[["__scopeId","data-v-1f67f26d"]]);window.__toCdnUrl=oa;(async()=>{await _t();const c=Ut(Qa);c.use(kt.value);const e=jt();e.use(()=>({router:Je})),c.use(e),c.use(Ft),ne().setLanguage(Ct.value),c.use(Je);const a=Ht("fk-4f1a0182f0f",{mask:aa,toggle:na});c.use(Vt,Jt({inputs:{numberAdvanced:at(on,{props:["min","max"]}),alternativeCheckbox:at(un,{})},plugins:[Za,Kt(),a,Yt({duration:250,easing:"ease-in-out",delay:0},{global:["outer","inner"],form:["form"],repeater:["items"]})],locales:{de:Gt,fr:Qt,es:Xt,it:Zt,pt:ea},config:{classes:ta(It)}})),c.config.performance=!0,c.mount("#app")})();
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.