1import{_ as E}from"./rfKrGHTJ.js";import{_ as w}from"./CwwTuXyJ.js";import{_ as b,c as y}from"./DgRwuOSx.js";import{_ as L}from"./CfQcPf88.js";import{d as k,o,k as s,c as v,D as f,Y as x,H as g,B as h,z as c,r as T,e as i,A as $,F as B,v as I,a6 as C,K as p,X as R,O as A}from"./DzmMXjjF.js";import{u as H,g as D}from"./Cfc8ky2z.js";import{u as N}from"./C_RBi3Co.js";import"./C8g3CW2O.js";import"./BDlKsl4J.js";import"./D0MrgONB.js";import"./DJrCJANg.js";import"./BQn5VO3H.js";import"./DdSPAO-K.js";import"./CqxolwbF.js";import"./DzoEpPy7.js";import"./BJzQqtJO.js";import"./CjygX5Ih.js";import"./DvwJP0CR.js";import"./D-_E0le2.js";import"./BYTRu-Av.js";import"./CJ9Vi6We.js";import"./YZu9EfZB.js";const V={class:"grid-inside"},F={key:0,class:"text-center w-full text-white pb-4"},z={key:1,class:"grid-inside flex justify-center"},S=k({__name:"Home",props:{headline:{},events:{},allEventsLink:{}},setup(e){const t=n=>y(n,{length:150}).cut;return(n,m)=>{const r=E,l=w,d=b,u=L;return o(),s("section",V,[e.headline?(o(),v(r,{key:0,type:"h2",class:"text-center text-white"},{default:f(()=>[x(g(e.headline),1)]),_:1})):h("",!0),c(d,{"line-color":"white"},{default:f(()=>[!e.events||!e.events.length?(o(),s("div",F,[T("p",null,g(i($)("no_events_available_label")),1)])):(o(!0),s(B,{key:1},I(e.events,(a,_)=>(o(),v(l,{key:`${("useId"in n?n.useId:i(C))()}-teaser-${_}`,headline:a.headline,description:t(a.description),location:a.location,"date-from":a.dateFrom,"date-to":a.dateTo,link:a.link,"background-color":"green"},null,8,["headline","description","location","date-from","date-to","link"]))),128))]),_:1}),e.allEventsLink&&e.allEventsLink.to?(o(),s("div",z,[c(u,{link:e.allEventsLink,button:{label:e.allEventsLink.title??"",variant:"accent",icon:{suffix:{name:"chevron-right"}}}},null,8,["link","button"])])):h("",!0)])}}}),re=k({__name:"Home",props:{previewId:{},headline:{default:""},localEvents:{default:()=>[]},globalEventsRemote:{default:()=>[]},tagsRemote:{default:()=>[]}},async setup(e){let t,n;const m=([t,n]=p(()=>D()),t=await t,n(),t),{data:r}=([t,n]=p(()=>N(`events-home-tags-${e.previewId}`,()=>A({references:e.tagsRemote}))),t=await t,n(),t),{eventsToShow:l}=H({previewId:e.previewId,localEvents:e.localEvents,globalEventsRemote:e.globalEventsRemote,tags:r.value||[]});return(d,u)=>{const a=S;return o(),s("section",{class:R(["bg-darkgreen vertical-spacing-enabled",i(l).length===1?"page-grid-small":"page-grid-wide"])},[c(a,{headline:e.headline,events:i(l),"all-events-link":i(m)},null,8,["headline","events","all-events-link"])],2)}}});export{re 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.