1import{_ as w}from"./nuxt-link.CIzWJ-uT.js";import{_ as S}from"./AccommodationCards.vue.DXWBlP5Q.js";import{d as C,u as $,r as g,c as b,o as c,a as u,F as q,h as z,m as v,j as B,k as N,t as x,e as a}from"./entry.D2Us7Cog.js";import{T as n}from"./typeAttributes.Bg9GOueA.js";import{c as U}from"./countries.B0r6r9gN.js";import"./Card.vue.9yr0FcW2.js";import"./Like.vue.BQfz-H5_.js";import"./accommodationImages.DXNyyn33.js";import"./Icon.DMRfW5wm.js";import"./index.CvPl5tTm.js";import"./bookmarks.Dmu5w-yz.js";import"./ContentRenderer.wx8icCtA.js";import"./ContentRendererMarkdown.vue.EptqOG-h.js";import"./index.C-v3KzvZ.js";import"./nav.BsoDAge1.js";import"./markdown.CXZ7Q1P_.js";import"./node.BneCoJRQ.js";import"./path-meta.B-M_jfpw.js";const E={class:"flex flex-col gap-16 max-w-6xl mx-auto my-8"},tt=C({__name:"TypeCardsSection",setup(F){const m=$(),d=m.params.region,p=m.params.subregion,f=[{id:"tagungshotels",title:"Tagungshotels",typeAttribute:[n.conference_hotel,n.seminar_hotel]},{id:"gruppenunterkuenfte",title:"Gruppenunterkünfte",typeAttribute:[n.group_accommodation]},{id:"hochzeitslocations",title:"Hochzeitslocations",typeAttribute:[n.wedding_location]},{id:"boutique-hotels",title:"Boutique-Hotels",typeAttribute:[n.boutique_hotel]},{id:"event-locations",title:"Eventlocations",typeAttribute:[n.event_location]}],i=g([]),r=g(new Set(f.map(t=>t.id))),A=b(()=>f.filter(t=>r.value.has(t.id)||!i.value.includes(t.id))),_=b(()=>{var t,e;return(e=(t=U.find(o=>o.id===d))==null?void 0:t.states)==null?void 0:e.find(o=>o.id===p)}),k=t=>{if(!r.value.has(t))return;const e=new Set(r.value);e.delete(t),r.value=e},y=(t,e)=>{k(e),t.length===0?i.value.includes(e)||i.value.push(e):i.value.includes(e)&&(i.value=i.value.filter(o=>o!==e))};return(t,e)=>{const o=w,T=S;return c(),u("div",E,[(c(!0),u(q,null,z(a(A),s=>{var h;return c(),u("div",{key:s.id,class:"flex flex-col"},[v(o,{to:`/location/${a(d)}/${a(p)}/${s.id}`,class:"text-display-medium font-bold text-black drop-shadow-lg underline"},{default:B(()=>{var l;return[N(x(s.title)+" in "+x((l=a(_))==null?void 0:l.title),1)]}),_:2},1032,["to"]),v(T,{class:"mt-8",filter:{location:(h=a(_))==null?void 0:h.title,attributes:{type:s.typeAttribute}},limit:2,randomizeOrder:"","onUpdate:accommodations":l=>y(l,s.id)},null,8,["filter","onUpdate:accommodations"])])}),128))])}}});export{tt 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.