import{P as v}from"./ParticipationTeasersData-D6HcWDw4.js";import{c as t}from"./helpers-DDTkKuvc.js";import{c as h}from"./ParticipationTeaserComponent-DvLhCnEV.js";import{c as g}from"./ButtonComponent-C1nc5If8.js";import{c as w}from"./BadgeComponent-DqzMDSWd.js";const k=({headline:r="Aktuelle Beteiligungen",count:i=9,items:o=v,buttonLabel:l="Alle aktuellen Beteiligungen"})=>{const e=t("section",["participation-teasers","variant-subtle-primary"]),c=t("div",["container"],null,e),s=t("h2",[],r,c),p=t("div",["overflow-wrapper"],null,e),m=t("div",["container"],null,p),d=t("div",["row"],null,m);if(s.appendChild(w({count:i})),o.map((n,a)=>{if(a<3&&a<i){const u=t("div",["col"],null,d),f=h({...n,isListItem:!1});u.appendChild(f)}}),i>3){const n=t("div",["all-participations"],null,e),a=g({label:l});n.appendChild(a)}return e};export{k as c};
