import{At as e,C as t,O as n,S as r,T as i,Tt as a,Y as o,i as s,k as c,ot as l,q as u,v as d,w as f}from"./framework-Cy4cevSy.js";import{Dt as p}from"./app-D39ss9YM.js";import{t as m}from"./EventListItem-CNvmtdFa.js";var h={key:0,class:`mb-3 flex items-center justify-between gap-4`},g={class:`text-lg font-semibold`},_={class:`divide-y rounded-lg border bg-card px-4`},v={key:0,class:`py-3 text-sm text-muted-foreground`},y={__name:`UpcomingEvents`,props:{block:{type:Object,required:!0}},setup(y){return(b,x)=>(u(),i(`section`,null,[y.block.data.title?(u(),i(`div`,h,[r(`h3`,g,e(y.block.data.title),1),c(a(s),{href:`/termine`,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:l(()=>[x[0]||=n(`Alle Termine `,-1),c(a(p),{class:`size-3.5`})]),_:1})])):f(``,!0),r(`div`,_,[(u(!0),i(d,null,o(y.block.props?.events??[],e=>(u(),t(m,{key:e.id,event:e},null,8,[`event`]))),128)),(y.block.props?.events??[]).length?f(``,!0):(u(),i(`p`,v,`Keine anstehenden Termine.`))])]))}};export{y as default};