import{c as n,f as g}from"./helpers-DDTkKuvc.js";import{c as b}from"./ButtonComponent-C1nc5If8.js";const B=({kicker:t="Dachzeile des Infobanners",headline:o="Die Headline des Infobanners",copy:i="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.",buttonText:a="Call to action",link:d="#",imageSrc:c="./dummy/placeholder-4-3.svg",imageSrcMobile:u="./dummy/placeholder-1-1.svg",isCommercial:p=!0})=>{const m=n("section",["infobanner","variant-solid"],null),f=n("div",["container"],null,m),l=n("a",["banner"],null,f);if(l.setAttribute("aria-label",o+" - "+t),c&&u&&c.length>0&&u.length>0){const r=n("div",["image-box"],null,l),e=n("picture",[],null,r),s=n("source",[],null,e);g(c,1340,240,"Infobanner Hintergrundbild",[],e),s.srcset=u,s.media="(max-width: 567px)"}if(t.length>0||o.length>0||i.length>0||a.length>0){const r=n("div",["text-wrapper"],null,l),e=n("div",["text-box"],null,r);if(t&&t.length>0&&n("span",["kicker"],t,e),o&&o.length>0&&n("h2",["like-h2"],o,e),i&&i.length>0&&n("p",[],i,e),a&&a.length>0){const s=n("div",["button-box"],null,r),h=b({elementType:"span",icon:"pfeil-simple-rechts",color:"white",label:a,iconPosition:"icon-right"});s.appendChild(h)}}return p&&n("span",["is-commercial","variant-subtle-primary"],"Werbung",l),l.href=d,m};export{B as c};
