import{c as e}from"./helpers-DDTkKuvc.js";import{c as h}from"./ButtonComponent-C1nc5If8.js";const x=({type:l="standard",category:v="IHK Mitgliedschaft",title:r="Werden Sie Teil unseres Netzwerks!",link:o="#",icon:a="Roboter",buttonlabel:c="IHK-Newsletter sichern",backgroundImage:s=null})=>{const d={standard:"variant-subtle-primary",infoteaser:"variant-solid"}[l]??"";if(l==="standard"){const t=e("div",["tile","mini-teaser",l,d],null),i=e("div",["text-box"],null,t);e("div",["category","like-h5"],v,i),e("div",["title","like-h4"],r,i);const n=e("a",["teaser--link"],"",t);return n.href=o,n.setAttribute("aria-label","Beschreibender Link-Text"),t}else{const t=e("div",["tile","mini-teaser",l,d],null);s&&s.length>0&&(t.style="background-image: url("+s+");",t.classList.add("background-image"));const i=e("div",["text-box"],null,t);a&&a.length>0?(e("div",["icon-box","pictogram-"+a.toLowerCase().split(" ").join("-")],null,i),e("div",["title","like-h4"],r,i),i.appendChild(h({elementType:"span",color:"white",label:c,iconPosition:"icon-right",icon:null,preventClick:!1}))):(e("div",["title","noicon","like-h4"],r,i),i.appendChild(h({elementType:"span",color:"white",label:c,iconPosition:"icon-right",icon:null,preventClick:!1})));const n=e("a",["teaser--link"],"",t);return n.href=o,n.setAttribute("aria-label","Beschreibender Link-Text"),t}};export{x as c};
