1import{T as f,v}from"./main-kBzK4eIG.js";import{D as w,b as g}from"./destinationCollectionSearch-1S47UWhg.js";import{u as h}from"./index-_Wgz898U.js";import{d as y,c as a,o as D,z as C,N as b,O as k,A as c}from"./vendor-primevue-CeEACqX_.js";import"./vendor-fontawesome-CHTXNQM2.js";import"./vendor-luxon-D-syak89.js";import"./vendor-i18n-G4dYfk6F.js";import"./vendor-pako-DwGzBETv.js";import"./vendor-posthog-B2YXpdD_.js";import"./vendor-query-B7KhvNMU.js";import"./PlacesCarousel.vue_vue_type_style_index_0_scoped_9ff658d5_lang-qHcabAzd.js";import"./chevron-right-6aEiQEcc.js";import"./PlacesCarousel-DCTVTMtK.js";import"./defaultPlaceBg-44PyOaOo.js";const S={class:"destinations-widget","data-testid":"destinations-widget"},x=y({__name:"DestinationsWidget",setup(B){const r=f(),{collections:e,fetchPublishedCollections:l}=h("destination"),n=a(()=>{const t=r.query.layout;return t==="bento"||t==="carousel"?t:null}),i=a(()=>n.value?e.value.map(t=>({...t,layout:n.value})):e.value),u=t=>{const{path:s,query:d}=g(t),o=new URL(s,window.location.origin);for(const[m,_]of Object.entries(d))o.searchParams.set(m,String(_));const p=window.top??window;try{p.location.href=o.toString()}catch{window.location.href=o.toString()}};return D(()=>{l().catch(()=>{})}),(t,s)=>(c(),C("div",S,[i.value.length?(c(),b(w,{key:0,collections:i.value,product:"stays",onSelect:u},null,8,["collections"])):k("",!0)]))}}),U=v(x,[["__scopeId","data-v-4684c9f7"],["__file","DestinationsWidget.vue"]]);export{U 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.