1import{d as x,N as A,O as B,u as P,r as b,k as q,q as R,Q as w,p as j,o as i,c as r,e as a,b as e,F,I as E,t as _,a as G,j as V,v as c,x as C,S as I}from"./vendor-lxhXACKn.js";import{u as J,b as Q,a as W}from"./formkit.theme-uoC4MDOU.js";/* empty css */import"./ImageSliderLazyLoader.vue_vue_type_style_index_0_scoped_34a7bd49_lang-C7pTN5rR.js";import{_ as y}from"./SelectRoomAndGuestButton.vue_vue_type_style_index_0_lang-DirOXCqO.js";import{_ as k}from"./SelectDateButton.vue_vue_type_script_setup_true_lang-BNjNHs5F.js";import"./globalBasic-DCViCoV8.js";import"./computedProperties-DXi-DmhG.js";import"./light-nUpfvi-t.js";import"./DialogOrTooltip.vue_vue_type_script_setup_true_lang-oVnAd0x_.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-DGPrfW3k.js";import"./Dialog-CvdkR9Dz.js";const $={key:0},z={class:"lg:flex lg:items-center"},M={key:0},T={key:0,class:"hidden lg:block lg:w-11/12 xl:w-10/12 2xl:w-9/12 m-auto"},H={class:"flex items-center mt-14 text-center lg:text-left"},K={class:"w-1/2"},U={class:"font-bold mt-4 m-auto text-2xl text-text-brand"},X={class:"text-left p-5 lg:pl-0"},Y={class:"flex"},Z={class:"quickstarter-item-wrapper w-5/12 mr-2"},ee={class:"quickstarter-item-wrapper w-5/12"}
1,te={class:"w-1/2 rounded-lg"},se={key:1,class:"lg:hidden"},ae={class:"shadow-button-shadow flex flex-col justify-between bg-surface-secondary"},oe={class:"w-full m-auto text-center lg:hidden"},ie={class:"font-bold mt-4 m-auto text-2xl text-text-brand"},re={class:"text-left p-5"},ne={class:"p-4"},le={class:"quickstarter-item-wrapper mb-3"},ce={class:"quickstarter-item-wrapper"},de={key:1,class:"m-10"},ue={class:"text-2xl animate-pulse"},Oe=x({__name:"PackageBooking",setup(pe){A.extend(B);const D=G(),{t:S}=P();V();const n=J(),l=Q(),m=W(),O=b(0);let f=b(!1);const L=o=>D.currentRoute.value.params.packageID===o,N=q(()=>window.innerWidth>=1024),v=I(async()=>{var d;f.value=!0;const o={arrival:m.reservation.config.arrival,departure:m.reservation.config.departure,code:"",roomConfigs:m.reservation.rooms.map(t=>({numberOfAdults:t.totalNumberOfAdults,childrenAges:t.children}))},{data:h}=await getPlans(n.hotelId,o);let s=[];(d=h.value)!=null&&d.data.roomConfigs&&(h.value.data.roomConfigs.forEach((t,u)=>{t.plans&&t.plans.forEach(p=>{s[u]||(s[u]={}),s[u]["_"+p.roomId]||(s[u]["_"+p.roomId]={roomId:p.roomId,plans:[]}),s[u]["_"+p.roomId].plans.push(p)})}),l.setPlans(JSON.parse(JSON.stringify(s)))),m.updateReservation({plans:l.plans,extras:l.extras}),f.value=!1},500);R(()=>{w(()=>n.hotelId,v,{debounce:0,deep:!0}),w(()=>dataToWatch.value,v,{debounce:0,deep:!0}),j(()=>l.plans,o=>{o.length>0&&o[0]&&(O.value=Object.keys(o[0]).length)},{deep:!0,immediate:!0})});const g=x({props:{pictures:{type:Array,default:()=>[]}},template:` 2 <ImageSliderLazyLoader 3 v-if="pictures.length" 4 class="aspect-video w-full max-h-96 rounded-lg" 5 :pictures="pictures" 6 /> 7 <div v-else class="aspect-video h-44 w-full rounded-t-xl box-border p-10"> 8 <font-awesome-icon :icon="faBox" class="w-full h-full"/> 9 </div> 10 `});return(o,h)=>{var s,d;return i(),r("div",null,[(d=(s=a(l))==null?void 0:s.availablePackages)!=null&&d.length?(i(),r("div",$,[e("div",z,[(i(!0),r(F,null,E(a(l).availablePackages,t=>(i(),r("div",{key:t.id},[L(t.id)?(i(),r("div",M,[N.value?(i(),r("div",T,[e("div",H,[e("div",K,[e("h4",U,_(t.name[a(n).language]),1),e("div",X,[e("p",null,_(t.conditions[a(n).language]),1)]),e("div",Y,[e("div",Z,[c(y)]),e("div",ee,[c(k)])])]),e("div",te,[c(a(g),{pictures:t.pictures},null,8,["pictures"])])])])):(i(),r("div",se,[e("div",ae,[c(a(g),{pictures:t.pictures},null,8,["pictures"])]),e("div",oe,[e("h4",ie,_(t.name[a(n).language]),1),e("div",re,[e("p",null,_(t.conditions[a(n).language]),1)])]),e("div",ne,[e("div",le,[c(y)]),e("div",ce,[c(k)])])]))])):C("",!0)]))),128))])])):(i(),r("div",de,[e("h1",ue,_(a(S)("GLOBAL.LOADING"))+"...",1)]))])}}});export{Oe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.