import{c as t}from"./helpers-DDTkKuvc.js";import{c as h}from"./CardComponent-HA892q3E.js";import{$ as r}from"./iframe-DSGyX7_4.js";import{I as m}from"./slider-yW1VQyzO.js";class a{constructor(e){this.section=e.addClass("initiated"),this.slides=e.children(),this.cardLength=e.find(".card-slider-container .card").length,this.cardLength>=3&&(this.slider=new m(e.find(".card-slider-container")),this.stringLength=0)}}r("body").on("ihk-init dynamic-component-loaded gfi-dynamic-init",function(){r(".card-slider:not(.initiated)").each(function(){new a(r(this))})});const g=[{image:"./dummy/why-elect.jpg",copyright:"@ shutterstock.com",kicker:"Energie-Monitoring",headline:"Gesetzliche Neuerungen im Bereich Windkraft",link:"http://www.ihk24.de"},{image:"./dummy/why-elect.jpg",copyright:"@ shutterstock.com",kicker:"IHK Nord Westfalen",headline:"Gesetzliche Neuerungen im Bereich Windkraft",link:"http://www.ihk24.de"},{image:"./dummy/why-elect.jpg",copyright:"@ shutterstock.com",kicker:"Praxis & Ratgeber",headline:"Jetzt Teil der IHK-Kampagne werden",link:"http://www.ihk24.de"}],y=({slides:n=g,headline:e="Auch interessant",fullWidth:c=!1})=>{const i=t("section",["card-slider","variant-subtle-primary"],null);c&&i.classList.add("fullwidth");const d=t("div",["card-slider-inner"],null,i);t("div",["like-h2"],e,d);const s=t("div",["card-slider-container"],null,d);return n.map((l,p)=>{const o=h(l);s.appendChild(o)}),new a(r(i)),i};export{y as c,g as s};
