1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/SelectHotelDropdown-CtET-sa5.js"),window.__toCdnUrl("assets/vendor-lxhXACKn.js"),window.__toCdnUrl("assets/formkit.theme-DVbh0M_W.js"),window.__toCdnUrl("assets/globalBasic-DCViCoV8.js"),window.__toCdnUrl("assets/computedProperties-CCrZrgkj.js"),window.__toCdnUrl("assets/light-nUpfvi-t.js"),window.__toCdnUrl("assets/SelectHotelDialog-DhTQ0dVU.js"),window.__toCdnUrl("assets/fuse-CU2r43ac.js"),window.__toCdnUrl("assets/ImageLazyLoader-DY2FSO2o.js")])))=>i.map(i=>d[i]); 2import{b as w,a as q,c as C,u as M}from"./formkit.theme-DVbh0M_W.js";import{d as $,u as A,j as V,r as d,k as h,q as R,Q as z,o as l,g as m,h as k,c as f,n as S,e as a,x as F,b as i,X as K,Y as G,W as Y,v as j,z as Q,bx as U,t as u,L as D,M as X}from"./vendor-lxhXACKn.js";import{_ as J}from"./DialogOrTooltip.vue_vue_type_script_setup_true_lang-CghDMDLJ.js";import{b as Z}from"./Plans-B2GUwHGw.js";import{i as ee,d as te}from"./computedProperties-CCrZrgkj.js";import"./globalBasic-DCViCoV8.js";import"./Tooltip.vue_vue_type_script_setup_true_lang-CecNw51I.js";import"./Dialog--Oz4HeDi.js";import"./light-nUpfvi-t.js";const oe=["onKeydown"],ae={key:0},se={class:"text-text-secondary text-[12px]"},ne={class:"font-bold h-full lg:text-[12px] xl:text-[14px] text-text-primary"},le={key:1,class:"min-w-0"},ie={class:"text-text-secondary text-[12px]"},re={class:"font-bold lg:text-[12px] xl:text-[14px] text-text-primary truncate min-w-0"},xe=$({__name:"SelectHotelButton",props:{isNavbar:{type:Boolean,default:!1},isWebComponent:{type:Boolean,default:!1}},setup(P){const{t:v}=A(),L=D(()=>C(()=>import("./SelectHotelDropdown-CtET-sa5.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),I=D(()=>C(()=>import("./SelectHotelDialog-DhTQ0dVU.js"),__vite__mapDeps([6,1,2,3,4,5,7,8]),import.meta.url)),T=V(),y=w(),b=q(),s=d(!1),B=P;let r=d(!1);const x=h(()=>{var e,t;return(((t=(e=y.settings)==null?void 0:e.multiProperties)==null?void 0:t.length)??0)>4}),H=h(()=>T.name==="Specials"&&!B.isNavbar?"absolute border w-[400px] left-60 -top-[55px] z-100 !bg-surface-primary":""),O=async()=>{var n,c,g,_;const e=w(),t=M();if(((c=(n=e.settings)==null?void 0:n.multiProperties)==null?void 0:c.length)>10){console.warn("Multi-property hotels are not supported for more than 10 hotels"),r.value=!1;return}r.value=!0,e.plansByHotel={};let o=await Z(t.hotelId,(_=(g=e.settings)==null?void 0:g.multiProperties)==null?void 0:_.map(N=>N.hotelId),te.value);e.setPlansByHotel(o.data.value.data),r.value=!1},p=d(null),W=()=>{if(!p.value)return;const e=p.value.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e&&e.focus()},E=async()=>{s.value=!s.value,await X(),requestAnimationFrame(()=>{W()})};return R(async()=>{z(s,async e=>{e===!0&&await O()},{immediate:!0,debounce:0,deep:!0})}),(e,t)=>(l(),m(J,{open:s.value,useTeleport:!e.isWebComponent,onClose:t[4]||(t[4]=o=>s.value=!1),class:"text-left !w-[100%] !max-w-[1000px]","force-type":x.value?"dialog":"auto","aria-label":"Hotel Selection Dialog"},{content:k(o=>[s.value?(l(),f("div",{key:0,class:S(H.value),ref_key:"dialogWrapper",ref:p},[x.value?(l(),m(a(I),{key:0,type:o==null?void 0:o.type,onClose:t[1]||(t[1]=n=>s.value=!1),isLoading:a(r),"is-web-component":e.isWebComponent},null,8,["type","isLoading","is-web-component"])):(l(),m(a(L),{key:1,type:o==null?void 0:o.type,onClose:t[2]||(t[2]=n=>s.value=!1),isLoading:a(r),"is-web-component":e.isWebComponent,isOpen:s.value,"onUpdate:isOpen":t[3]||(t[3]=n=>s.value=n)},null,8,["type","isLoading","is-web-component","isOpen"]))],2)):F("",!0)]),default:k(()=>{var o,n;return[i("div",K(e.$attrs,{onClick:t[0]||(t[0]=c=>s.value=!0),class:"w-full relative",tabindex:"0",role:"button","aria-label":"Hotel Selection Dialog","aria-pressed":"false",onKeydown:G(Y(E,["prevent"]),["enter"])}),[i("div",{class:S(e.isNavbar?"quickstarter-item-navbar":"quickstarter-item ")},[j(a(Q),{icon:a(U),class:"pr-1 text-text-brand","aria-hidden":"true"},null,8,["icon"]),e.isWebComponent&&a(b).quickstarter.cityId>0?(l(),f("div",ae,[i("p",se,u(a(v)("CONTENT.CITY")),1),i("p",ne,u((o=a(ee)[a(b).quickstarter.cityId])==null?void 0:o.city),1)])):(l(),f("div",le,[i("p",ie,u(a(v)("LOG.HOTEL")),1),i("div",re,u((n=a(y).hotelContent)==null?void 0:n.name),1)]))],2)],16,oe)]}),_:1},8,["open","useTeleport","force-type"]))}});
2export{xe 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.