1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-une70pyI.js","assets/@vue-DIGZGmoa.js","assets/pinia-C_esPC0q.js","assets/vue-i18n-B-2Lrc-X.js","assets/@intlify-Y34EtYYP.js","assets/vue-router-BGgiyEqQ.js","assets/tailwindcss-DF6Njrav.js","assets/lottie-web-DiXPyFxs.js","assets/picocolors-CBpy9uNM.js","assets/axios-DTyqpfTh.js","assets/date-fns-Dzy_VLxG.js","assets/vue-multiselect-DTwXaS1-.js","assets/vue-multiselect-mVHKiBW4.css","assets/@kyvg-DhHREgvS.js","assets/@dash0-D1h7I60T.js","assets/index-DvZNfzqm.css","assets/DateCard-DpWF3LbM.js","assets/DateCard-BHF_XLCX.css","assets/OccupancyRoom-BLephihp.js","assets/reservation.store-DAXozIaG.js","assets/offers.store-C8v5MVWp.js","assets/delete-D6I1Eyal.js","assets/CustomCounter-h_JRnIIs.js","assets/minus-DWQG2zLP.js","assets/plus-CuOOhuZX.js","assets/CustomRadioButton-D4Y69rgd.js","assets/OccupancyRoom-C-0F5cM8.css","assets/QuerySelectButton-BgbvqpnD.js","assets/arrow-rigth-BtBuMpvG.js","assets/QuerySelectButton-CYcSkjq5.css","assets/SpecialRates-BDRYXsY8.js","assets/rates.store-D6sSjcu7.js","assets/cross-Aq9vsPsG.js","assets/SpecialRates-BmH3ZwKd.css","assets/DirectIncentive-CXMLDAfD.js","assets/DirectIncentive-C_eblwbF.css","assets/PlaygroundView-3YFIe9J5.js","assets/PromotionChipList-C2QH3cJi.js","assets/PromotionChipList-DK2-5Ij2.css"])))=>i.map(i=>d[i]); 2import{_ as ue,i as de,d as me,j as pe,k as ve,l as ye,r as _e,m as M,n as fe,o as De,p as v,h as n}from"./index-une70pyI.js";import{s as H}from"./pinia-C_esPC0q.js";import{useOffersStore as he}from"./offers.store-C8v5MVWp.js";import N from"./CalendarCore-DsvWqxh6.js";import{u as ge}from"./vue-router-BGgiyEqQ.js";import{u as Se}from"./reservation.store-DAXozIaG.js";import{g as be}from"./labels.service-DmGF249E.js";import{c as k,r as d,a3 as we,o as Ce,e as ke,w as xe,f as r,g as h,D as g,H as Oe,s as e,x as y,C as x,z as O,a as _,F as Ee,j as Ve,k as j,A as Le,ab as i,X as Re}from"./@vue-DIGZGmoa.js";import{L as Te,f as E}from"./date-fns-Dzy_VLxG.js";import"./vue-i18n-B-2Lrc-X.js";import"./@intlify-Y34EtYYP.js";import"./tailwindcss-DF6Njrav.js";import"./lottie-web-DiXPyFxs.js";import"./picocolors-CBpy9uNM.js";import"./axios-DTyqpfTh.js";import"./vue-multiselect-DTwXaS1-.js";import"./@kyvg-DhHREgvS.js";import"./@dash0-D1h7I60T.js";import"./guestcentric-vue-datepicker-Bynqn3OE.js";import"./chart-bar-cCwbvthx.js";import"./chevron-right-BxddBt3O.js";import"./calendar-date-range-BHuhVqCT.js";import"./rates.store-D6sSjcu7.js";const Ae={class:"mx-4 mt-3 flex flex-grow flex-col md:mx-8 md:mt-7 md:flex-row"},Pe={class:"mx-auto mb-3 md:hidden"},Be=["src","alt"],Ie={key:1},qe={class:"flex flex-grow flex-col md:ml-7 md:basis-1/3"},$e={class:"mb-3 flex flex-row"},Me={__name:"HomeView",setup(He){const V=i(()=>n(()=>import("./index-une70pyI.js").then(t=>t.a5),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))),z=i(()=>n(()=>import("./index-une70pyI.js").then(t=>t.a4),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))),L=i(()=>n(()=>import("./DateCard-DpWF3LbM.js"),__vite__mapDeps([16,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17]))),G=i(()=>n(()=>import("./OccupancyRoom-BLephihp.js"),__vite__mapDeps([18,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,19,20,21,22,23,24,25,26]))),Q=i(()=>n(()=>import("./QuerySelectButton-BgbvqpnD.js"),__vite__mapDeps([27,28,1,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,29]))),U=i(()=>n(()=>import("./SpecialRates-BDRYXsY8.js"),__vite__mapDeps([30,1,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,31,32,33]))),F=i(()=>n(()=>import("./DirectIncentive-CXMLDAfD.js"),__vite__mapDeps([34,25,1,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,35]))),K=i(()=>n(()=>import("./PlaygroundView-3YFIe9J5.js"),__vite__mapDeps([36,1,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))),X=i(()=>n(()=>import("./PromotionChipList-C2QH3cJi.js"),__vite__mapDeps([37,1,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,31,38]))),J=Se(),{resetReservation:W}=J,{canShowAgenticButton:Y,goToAgent:Z}=de(),R=ge();he();const{isMobile:p}=me(),ee="production",T=pe(),l=Re("applicationSetup"),{channelKey:A}=H(ve()),P=k(()=>M(A.value)?fe:l.value.hotel_logo_mobile||""),te=k(()=>M(A.value)?De:l.value.hotel_name),{setStartDate:ae,setEndDate:oe}=T,{query:s,userOccupancyTotals:le}=H(T),m=d(!1),B=we(null),S=d(""),u=d(!1),I=d(!1);let b=null;Ce(()=>{b=setTimeout(()=>{I.value=!0},500)}),ke(()=>{b&&clearTimeout(b)});const ne=()=>
2{if(S.value==="Promos"){const t=document.querySelector(".invalid-chip"),a=document.querySelector(".chip-input"),o=a?a.value:"";(t||o.length>0)&&(m.value=!0)}},re=()=>{u.value=!u.value},ie=k(()=>[{title:v.global.t("general.occupancy.title"),body:be(le.value),onClick:()=>f("Occupancy",G),ariaLabel:"Occupancy"},{title:v.global.t("promosCustomLabel"),component:X,onClick:()=>f("Promos",U),ariaLabel:v.global.t("general.promosAndSpecialRates")},...ee.toLowerCase()==="development"?[{title:v.global.t("general.directIncentive"),body:v.global.t("general.directIncentivesInfo"),onClick:()=>f("Direct incentive",F),ariaLabel:"Direct incentive"},{title:"Test template",body:"Click and see the magic",onClick:()=>f("Playground",K),ariaLabel:"PlaygroundView"}]:[]]),f=(t,a)=>{S.value=t,m.value=!m.value,B.value=a},c=d({datesSelected:{startDate:s.value.startDate,endDate:s.value.endDate}}),se=()=>{let t=R.query;c.value.datesSelected.endDate===""&&(c.value.datesSelected.endDate=Te(c.value.datesSelected.startDate,1),w(),t={...R.query,startDay:E(c.value.datesSelected.startDate,"yyyy-MM-dd"),nrNights:1}),_e.push({name:"search",query:t})},q=t=>{c.value.datesSelected.startDate=t[0],c.value.datesSelected.endDate=t[1]},w=()=>{D(),ae(c.value.datesSelected.startDate),oe(c.value.datesSelected.endDate),W()},C=d(""),$=d(null),D=t=>{C.value=C.value==t+"-tooltip"?"":t+"-tooltip",p.value===!0&&(u.value=!u.value),$.value=t};return xe(p,t=>{t||(u.value=!1)}),(t,a)=>(r(),h("div",Ae,[g("div",Pe,[P.value?(r(),h("img",{key:0,fetchpriority:"high",decoding:"async",class:"h-24 max-h-24 max-w-full object-contain",src:P.value,alt:te.value},null,8,Be)):(r(),h("span",Ie,Oe(e(l).hotel_name),1))]),e(p)?O("",!0):(r(),y(N,{key:0,class:x(["hidden md:relative md:!block md:basis-3/4 lg:pr-8",C.value]),initialStartDate:e(s).startDate,initialEndDate:e(s).endDate,maxDate:e(l).end_date,showBar:e(l).show_bar,currency:e(l).currency,currencySymbol:e(l).currencySymbol,focusOn:$.value,onDatesSelected:q,onSetDatesSelected:w},null,8,["class","initialStartDate","initialEndDate","maxDate","showBar","currency","currencySymbol","focusOn"])),g("div",qe,[g("div",$e,[_(e(L),{title:t.$t("general.checkIn"),date:e(E)(e(s).startDate,"yyyy-MM-dd"),onClick:a[0]||(a[0]=o=>D("startDate")),cardClass:"mr-2"},null,8,["title","date"]),_(e(L),{title:t.$t("general.checkOut"),date:e(E)(e(s).endDate,"yyyy-MM-dd"),onClick:a[1]||(a[1]=o=>D("endDate"))},null,8,["title","date"])]),(r(!0),h(Ee,null,Ve(ie.value,(o,ce)=>(r(),y(e(Q),{key:ce,title:o.title,body:o.body,component:o.component,onClick:o.onClick,"aria-label":o.ariaLabel},null,8,["title","body","component","onClick","aria-label"]))),128)),g("div",{class:x(["sticky bottom-4 flex items-center gap-2 transition-opacity duration-300 ease-out",I.value?"opacity-100":"pointer-events-none opacity-0"])},[e(Y)?(r(),y(ye,{key:0,"aria-label":t.$t("general.agent.title"),onClick:e(Z)},null,8,["aria-label","onClick"])):O("",!0),_(e(z),{class:x("primary"),height:"min-h-[60
2px]",width:"min-w-0 flex-1",label:t.$t("general.viewRates"),onClick:se,spanClass:"tracking-wide"},null,8,["label"])],2)]),_(e(V),{modelValue:m.value,"onUpdate:modelValue":[a[3]||(a[3]=o=>m.value=o),ne],position:e(p)?"bottom":"right",width:"w-[35%]",height:"h-auto",withBlur:S.value!=="Playground"},{drawerContent:j(()=>[(r(),y(Le(B.value),{onClose:a[2]||(a[2]=o=>m.value=!1)},null,32))]),_:1},8,["modelValue","position","withBlur"]),e(p)?(r(),y(e(V),{key:1,modelValue:u.value,"onUpdate:modelValue":a[4]||(a[4]=o=>u.value=o),position:"bottom",width:"w-[35%]",height:"h-auto",drawerContentClass:"drawerContentContainer flex flex-col flex-grow max-h-full overflow-y-auto mx-4 md:mx-10p"},{drawerContent:j(()=>[_(N,{initialStartDate:e(s).startDate,initialEndDate:e(s).endDate,maxDate:e(l).end_date,showBar:e(l).show_bar,currencySymbol:e(l).currencySymbol,onDatesSelected:q,onSetDatesSelected:w,onCancel:D,onClose:re},null,8,["initialStartDate","initialEndDate","maxDate","showBar","currencySymbol"])]),_:1},8,["modelValue"])):O("",!0)]))}},ut=ue(Me,[["__scopeId","data-v-4e0496e8"]]);export{ut as default}; 3//# sourceMappingURL=HomeView-B2_4325E.js.map
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.