1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/RoomView-DL-N3pWn.js"),window.__toCdnUrl("assets/formkit.theme-DVbh0M_W.js"),window.__toCdnUrl("assets/vendor-lxhXACKn.js"),window.__toCdnUrl("assets/globalBasic-DCViCoV8.js"),window.__toCdnUrl("assets/RoomPlan-Rx8nKBN8.js"),window.__toCdnUrl("assets/FilterSection-DpffjzBw.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/Dialog--Oz4HeDi.js"),window.__toCdnUrl("assets/PlanSelection-BWqSbfYb.js"),window.__toCdnUrl("assets/Tag-DVtlv1mp.js"),window.__toCdnUrl("assets/ImageSliderLazyLoader-CtVizHgr.js"),window.__toCdnUrl("assets/ImageLazyLoader-DY2FSO2o.js"),window.__toCdnUrl("assets/ImageSliderLazyLoader.vue_vue_type_style_index_0_scoped_34a7bd49_lang-C7pTN5rR.js")])))=>i.map(i=>d[i]); 2import{l as Do,u as Ao,b as Oo,a as $o,g as Mo,v as No,c as I,_ as Ho}from"./formkit.theme-DVbh0M_W.js";import{d as Uo,u as jo,r as C,j as Wo,k as A,w as qo,p as Ro,M as Io,o as l,c as i,g as O,v as E,h as K,e as t,x as P,T as zo,X as Ko,b as p,n as g,F as $,I as Y,t as v,cq as Yo,z as G,cr as Go,cs as Qo,L as k}from"./vendor-lxhXACKn.js";import{R as Xo}from"./RoomPlan-Rx8nKBN8.js";import{b as Jo}from"./computedProperties-CCrZrgkj.js";import"./globalBasic-DCViCoV8.js";import"./light-nUpfvi-t.js";const Zo=()=>new Promise(c=>requestAnimationFrame(()=>c())),oe=c=>{for(let r=c.parentElement;r;r=r.parentElement){const u=getComputedStyle(r);if((u.overflowY==="auto"||u.overflowY==="scroll")&&r.scrollHeight>r.clientHeight)return r}return null},ee=(c='[data-scroll-obstruction="bottom"]')=>{let r=0;return document.querySelectorAll(c).forEach(u=>{const n=getComputedStyle(u);if(n.display==="none"||n.visibility==="hidden")return;const m=u.getBoundingClientRect();m.top<innerHeight&&m.bottom>0&&(r=Math.max(r,innerHeight-m.top))}),r},te=async(c,r=12,u=1)=>{let n=0,m=c.getBoundingClientRect();for(let y=0;y<r;y++){await Zo();const s=c.getBoundingClientRect();if(n=Math.abs(s.top-m.top)>u||Math.abs(s.bottom-m.bottom)>u?0:n+1,m=s,n>=3)break}},Eo=async(c,{top:r=90,bottom:u=16,obstructionSelector:n='[data-scroll-obstruction="bottom"]'}={})=>{await te(c);const m=oe(c),y=u+ee(n),s=c.getBoundingClientRect();if(!m){const N=document.scrollingElement||document.documentElement,V=r,H=innerHeight-y;if(s.top>=V&&s.bottom<=H)return;const W=s.top<V?s.top-V:s.bottom-H;window.scrollTo({top:N.scrollTop+W,behavior:"smooth"});return}const _=m.getBoundingClientRect(),w=_.top+r,M=_.bottom-y;if(s.top>=w&&s.bottom<=M)return;const j=s.top<w?s.top-w:s.bottom-M;m.scrollTo({top:m.scrollTop+j,behavior:"smooth"})},ne=["id"],le={class:"shadow-box-shadow2 rounded-md h-full flex flex-col bg-surface-primary"},re={class:"absolute top-4 lg:-left-4 -left-2 z-[2] text-xs flex flex-col gap-1"},se={key:0,class:"border border-border-brand-primary gap-2 py-1 px-3 text-text-white text-center bg-selected-room-badge-background px-2 py-1 rounded-md shadow-md"},ae={key:2,class:"filter-item-value"},ie={class:"filter-item-value"},me={key:4,class:"filter-item-value"},de={class:"border-b border-text-brand text-text-brand h-5 mr-2 font-bold"},ce=["innerHTML"],ue=["innerHTML"],pe={class:"flex items-end mt-2"},fe={class:"flex w-full justify-between items-center gap-4"},ge=["disabled"],ve={key:0},be={key:1},ye={key:2},xe={key:3,class:"lg:text-[16px] text-[12px]"},we={class:"lg:text-[16px]"},Ce=Uo({inheritAttrs:!1,__name:"RoomPlan",props:{roomConfig:{default:()=>new Do},roomConfigId:{default:0},roomPlan:{default:()=>new Xo},readonly:{type:Boolean,default:!1}},setup(c){const{t:r}=jo(),u=Ao(),n=Oo(),m=$o(),y=C(!1),s=C(null),_=Wo(),w=C(!1),M=k(()=>I(()=>import("./RoomView-DL-N3pWn.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),j=k(()=>I(()=>import("./FilterSection-DpffjzBw.js"),__vite__mapDeps([5,6,2,1,3,7,8]),import.meta.url)),N=k(()=>I(()=>import("./Dialog--Oz4HeDi.js"),__vite__mapDeps([9,2,1,3]),import.meta.url)),V=k(()=>I(()=>import("./PlanSelection-BWqSbfYb.js"),__vite__mapDeps([10,1,2,3,4]),import.meta.url)),H=k(()=>I(()=>import("./Tag-DVtlv1mp.js"),__vite__mapDeps([11,2,1,3]),import.meta.url)),W=k(()=>I(()=>import("./ImageSliderLazyLoader-CtVizHgr.js"),__vite__mapDeps([12,1,2,3,13,14]),import.meta.url)),q=C(null),Q=C(!1),z=C(!1),ko=()=>{w.value=!w.value},f=c,h=A(()=>{var o;return((o=f.roomPlan.plans)==null?void 0:o.find(e=>e.id==f.roomConfig.rateKey))??null}),Vo=async()=>{await Io(),requestAnimationFrame(async()=>{const o=document.getElementById("editRoomsView");o&&await Eo(o,{top:90}),z.value=!1})},So=async()=>{const o=m.reservation.rooms.findIndex((e,d)=>d!==f.roomConfigId&&(e.id===-1||e.rateKey==="-1"));n.setRoomConfig(o===-1),o!==-1&&m.setSelectedRoomIndex(o),await Vo()},X=async o=>{const e="plan"in(o??{})?o.plan:o;e&&(z.value=!0,m.selectRoomPlan(e,f.roomConfigId),await So())},J=A(()=>{var o,e;return(e=(o=f.roomPlan)==null?void 0:o.content)==null?void 0:e.shortDe
2scription[u.language]}),To=A(()=>{var o,e;return(e=(o=f.roomPlan)==null?void 0:o.content)==null?void 0:e.description[u.language]}),Z=C(null),Lo=A(()=>{var e,d;const o=(d=(e=f.roomPlan)==null?void 0:e.content)==null?void 0:d.roomFilterFiltered;return o?Object.values(o).some(b=>(b==null?void 0:b.valid)===!1):!1}),Bo=A(()=>{var e,d,b;const o=(d=(e=m.reservation.rooms)==null?void 0:e[f.roomConfigId])==null?void 0:d._id;return o?Number(o)===Number((b=f.roomPlan)==null?void 0:b.roomId):!1});return qo(()=>{if(q.value){const o=getComputedStyle(q.value),e=Mo(o.backgroundColor);Q.value=e>128}}),Ro(()=>m.reservation.rooms.map(o=>o._id),o=>{o.every(d=>d!==-1)&&n.setRoomConfig(!0)},{deep:!0}),Ro(()=>{var o,e;return[m.selectedRoomIndex,(e=(o=m.reservation.rooms)==null?void 0:o[f.roomConfigId])==null?void 0:e.id]},async([o,e])=>{var S,T;if(z.value||o!==f.roomConfigId)return;const d=(T=(S=f.roomPlan)==null?void 0:S.content)==null?void 0:T.id;if(!e||!d||Number(e)!==Number(d))return;await Io();const b=document.getElementById(`room-plan-${f.roomConfigId}-${e}`);b&&await Eo(b,{top:90})},{immediate:!0,flush:"post"}),(o,e)=>{var d,b,S,T,oo,eo,to,no,lo,ro,so,ao,io,mo,co;return l(),i($,null,[(l(),O(zo,{to:"body"},[E(t(N),{open:s.value!==null,class:"!min-w-full lg:!min-w-[700px]",onClose:e[1]||(e[1]=a=>s.value=null)},{content:K(()=>{var a,x;return[s.value?(l(),O(t(M),{key:0,"room-id":((a=s.value)==null?void 0:a.roomId)??-1,plans:((x=s.value)==null?void 0:x.plans)??[],roomConfigId:o.roomConfigId,roomConfig:o.roomConfig,onClose:e[0]||(e[0]=R=>s.value=null)},null,8,["room-id","plans","roomConfigId","roomConfig"])):P("",!0)]}),_:1},8,["open"]),E(t(N),{open:y.value,onClose:e[3]||(e[3]=a=>y.value=!1)},{content:K(()=>[E(t(j),{"is-modal":!0,onClose:e[2]||(e[2]=a=>y.value=!1)})]),_:1},8,["open"])])),(l(),i("div",Ko(o.$attrs,{id:`room-plan-${o.roomConfigId}-${(d=o.roomPlan)==null?void 0:d.roomId}`,"data-testid":"room-plan",key:`${o.roomConfigId}_${(b=o.roomPlan)==null?void 0:b.roomId}`,class:["main rounded-2xl",{"animated-box-border":Number((S=o.roomPlan)==null?void 0:S.roomId)===Number(t(_).query.roomId??0)}]}),[p("div",le,[p("div",{class:g(["w-full",t(n).roomViewVersion===2?"":"lg:flex lg:justify-between"])},[p("div",{class:g([t(n).roomViewVersion===2?"p-0 w-full":"lg:w-1/3 flex","flex justify-end align-left relative"])},[(oo=(T=o.roomPlan)==null?void 0:T.content)!=null&&oo.pictures?(l(),O(t(W),{key:0,pictures:(to=(eo=o.roomPlan)==null?void 0:eo.content)==null?void 0:to.pictures,class:g([t(n).roomViewVersion===2?"aspect-video rounded-t-md":"aspect-ratio lg:rounded-tl-md lg:rounded-tr-none rounded-t-md lg:h-[250px]","flex lg:h-[381px] h-[300px] justify-start align-left w-full"])},null,8,["pictures","class"])):P("",!0),p("div",re,[(l(!0),i($,null,Y((lo=(no=o.roomPlan)==null?void 0:no.plans[0])==null?void 0:lo.tags,a=>(l(),i("div",null,[E(t(H),{tag:a},null,8,["tag"])]))),256)),Bo.value?(l(),i("div",se,v(t(r)("WBEPLUS.SELECTED")),1)):P("",!0)])],2),p("div",{class:g(["flex-grow flex flex-col justify-start min-h-0",t(n).roomViewVersion===2?"p-0 w-full":"lg:pl-[16px] lg:w-1/2 p-4 pb-0 lg:h-[381px]"])},[p("p",{class:g([t(n).roomViewVersion===2?"p-[16px] pb-0 lg:pb-[10px]":"p-0 w-full","text-2xl font-bold text-text-brand w-full"])},v((so=(ro=o.roomPlan)==null?void 0:ro.content)==null?void 0:so.name[t(u).language]),3),((io=(ao=t(n))==null?void 0:ao.settings)==null?void 0:io.showRoomQuickFacts)??!0?(l(),i("div",{key:0,class:g([t(n).roomViewVersion===2?"pl-[16px] mt-3 mb-3":"p-0 mt-4 mb-4","flex justify-start cssFilter flex-wrap overflow-x-auto"]),style:{"font-size":"14px"}},[(l(!0),i($,null,Y(t(Jo),a=>{var x,R,L,B,F,D,U,uo,po,fo,go,vo,bo,yo,xo,wo,Co,Po,_o,ho;return l(),i($,{key:a.id},[(L=(R=(x=o.roomPlan)==null?void 0:x.content)==null?void 0:R.roomFilter)!=null&&L[a.id]?(l(),i("div",{key:0,class:g([{"!text-color-gray-600":!((U=(D=(F=(B=o.roomPlan)==null?void 0:B.content)==null?void 0:F.roomFilterFiltered)==null?void 0:D[a.id])!=null&&U.valid)},"filter-item text-text-primary"])},[(go=(fo=(po=(uo=o.roomPlan)==null?void 0:uo.content)==null?void 0:po.roomFilterFiltered)==null?void 0:fo[a.id])!=null&&go.valid?(l(),O(t
2(G),{key:0,icon:t(Yo),class:"text-color-green-900 mr-2"},null,8,["icon"])):(l(),O(t(G),{key:1,icon:t(Go),class:"mr-2 text-red-700"},null,8,["icon"])),a.id==="squareMeters"?(l(),i("p",ae,v(((yo=(bo=(vo=o.roomPlan)==null?void 0:vo.content)==null?void 0:bo.roomFilter)==null?void 0:yo.squareMeters)??"")+" m²",1)):a.id==="bedTypes"?(l(!0),i($,{key:3},Y((Co=(wo=(xo=o.roomPlan)==null?void 0:xo.content)==null?void 0:wo.roomFilter)==null?void 0:Co.bedTypes,Fo=>(l(),i("p",ie,v(t(r)(Fo??"")),1))),256)):(l(),i("p",me,v(t(r)(((ho=(_o=(Po=o.roomPlan)==null?void 0:Po.content)==null?void 0:_o.roomFilter)==null?void 0:ho[a.id])??"")),1))],2)):P("",!0)],64)}),128))],2)):P("",!0),Lo.value?(l(),i("p",{key:1,class:g([t(n).showGridView?"pl-[16px]":"","text-sm text-red-800 italic pb-3"])},v(t(r)("WBEPLUS.DOES_NOT_FULLY_MATCH")),3)):P("",!0),(co=(mo=t(n))==null?void 0:mo.settings)!=null&&co.showRoomFilter?(l(),i("div",{key:2,class:g([t(n).roomViewVersion===2?"pl-[16px] lg:pb-[16px]":"lg:p-0 pb-5","flex cursor-pointer lg:hidden justify-start items-center cssFilter"]),style:{"font-size":"13px"},onClick:e[4]||(e[4]=a=>y.value=!0)},[p("p",de,v(t(r)("WBEPLUS.SET_FILTER")),1),E(t(G),{icon:t(Qo),class:"text-xs text-text-brand"},null,8,["icon"])],2)):P("",!0),p("div",{class:g([t(n).roomViewVersion===2?"pt-3 lg:pt-0":"","text-sm flex-1 min-h-0 overflow-y-auto"]),onClick:ko},[p("p",{class:g(["whitespace-pre-line",{"line-clamp-2 cursor-pointer":!w.value,"pl-[16px]":t(n).roomViewVersion===2,"p-0 lg:line-clamp-none":t(n).roomViewVersion!==2}])},[J.value?(l(),i("div",{key:0,ref_key:"roomDescriptionRef",ref:Z,innerHTML:J.value},null,8,ce)):(l(),i("div",{key:1,ref_key:"roomDescriptionRef",ref:Z,innerHTML:To.value},null,8,ue))],2)],2)],2)],2),E(t(V),{"plan-id":o.roomConfig.rateKey,"onUpdate:planId":e[7]||(e[7]=a=>o.roomConfig.rateKey=a),plans:o.roomPlan.plans,class:g(["flex-none flex flex-col justify-between",t(n).roomViewVersion===2?"pb-2 pl-2 pr-2":"p-0"]),roomPlan:o.roomPlan,roomConfig:o.roomConfig,roomConfigId:o.roomConfigId,onRoomSelected:X,variant:t(_).name==="Package"?3:null},{actions:K(()=>{var a,x,R,L,B,F,D;return[p("div",pe,[p("div",fe,[p("button",{onClick:e[5]||(e[5]=U=>X(h.value)),ref_key:"roomCardRef",ref:q,class:g([Q.value?"!border-border-brand":"","btn-booking !p-0 !pb-2 !pt-2 lg:!p-2 w-1/2 font-bold"]),disabled:!h.value||((R=(x=t(n).inventories)==null?void 0:x[(a=h.value)==null?void 0:a.roomId])==null?void 0:R.inventory)<=0},[o.roomConfig.rateKey==="-1"?(l(),i("span",ve,v(t(r)("WBEPLUS.SELECT_PLAN")),1)):h.value?((F=(B=t(n).inventories)==null?void 0:B[(L=h.value)==null?void 0:L.roomId])==null?void 0:F.inventory)<=0?(l(),i("span",ye,v(o.$t("WBEPLUS.NO_MORE_INVENTORY_FOR_THIS_ROOM")),1)):(l(),i("span",xe,v(t(r)("WBEPLUS.BOOK_FOR"))+" "+v(t(No)((D=h.value)==null?void 0:D.totalPrice)),1)):(l(),i("span",be,v(o.$t("WBEPLUS.NOTAVAIL")),1
2))],10,ge),p("button",{class:"btn-outline flex-1 font-bold",onClick:e[6]||(e[6]=U=>s.value=o.roomPlan),"aria-label":"room details in room plan"},[p("span",we,v(t(r)("WBEPLUS.ROOM_DETAILS")),1)])])])]}),_:1},8,["plan-id","plans","roomPlan","roomConfig","roomConfigId","class","variant"])])],16,ne))],64)}}}),ke=Ho(Ce,[["__scopeId","data-v-1c5e19b2"]]);export{ke 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.