import{C as e,O as t,S as n,T as r,Y as i,i as a,k as o,kt as s,ot as c,q as l,v as u,w as d,wt as f}from"./framework-CFqPLBV8.js";import{St as p}from"./app-B7oRfLuD.js";import{t as m}from"./EventListItem-CRbJ_T2x.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)=>(l(),r(`section`,null,[y.block.data.title?(l(),r(`div`,h,[n(`h3`,g,s(y.block.data.title),1),o(f(a),{href:`/termine`,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[x[0]||=t(`Alle Termine `,-1),o(f(p),{class:`size-3.5`})]),_:1})])):d(``,!0),n(`div`,_,[(l(!0),r(u,null,i(y.block.props?.events??[],t=>(l(),e(m,{key:t.id,event:t},null,8,[`event`]))),128)),(y.block.props?.events??[]).length?d(``,!0):(l(),r(`p`,v,`Keine anstehenden Termine.`))])]))}};export{y as default};