import{c as n}from"./helpers-DDTkKuvc.js";import{c as a,l as p}from"./LinkListComponent-CWUWPHDq.js";import{c as d}from"./ButtonComponent-C1nc5If8.js";class m{constructor(o){new ResizeObserver(r=>{r.map(e=>{e.borderBoxSize[0].inlineSize<1e3?o.dataset.cols="1":o.dataset.cols="2"})}).observe(o)}}const u=({headline:i="Meistgeklickt",linkListData:o=p,buttonText:l="Alle Pressemitteilungen anzeigen",addContainer:r=!1})=>{const e=n("div",["link-collection","variant-subtle-secondary"]);if(i&&i.length>0&&n("h2",[],i,e),e.appendChild(a({links:o})),l&&l.length>0){const t=n("div",["btn-wrapper"],null,e),c=d({elementType:"a",label:l,icon:"pfeil-rechts",iconPosition:"icon-right"});t.appendChild(c)}if(new m(e),r){const t=n("section",["link-collection-wrapper"]),c=n("div",["container"],null,t),s=n("div",["row"],null,c);return n("div",["col"],null,s).appendChild(e),t}return e};export{u as c};
