import{c as t,f as L}from"./helpers-DDTkKuvc.js";import{c as k}from"./ReadingTimeComponent-COVmVWnU.js";import{c as H}from"./LinkListComponent-CWUWPHDq.js";const E=({type:i="regular",link:v="#",imageSrc:n="./dummy/placeholder-3-2.svg",copyright:r="@ shutterstock.com",kicker:m="Fachkräfte",headline:f="Anteil der Frauen im Bereich Engineering steigt",copy:p="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita, no sea takimata sanctus est.",showReadingTime:b=!1,imageSize:c="large",chartTitle:s="Chart-Titel des Teasers",picto:h=null,pictoText:x=!1,linkType:g=null,linklistData:u=null})=>{const a=t("div",["teaser",i]);if(m&&m.length>0&&t("span",["kicker"],m,a),n&&n.length>0&&i!=="text"&&i!=="chart"&&i!=="picto"&&i!=="pictoHero"){let e,o;switch(i){case"hero":e=630,o=420;break;case"fullwidth":c==="large"?(e=880,o=484):c==="medium"?(e=650,o=433):(e=535,o=535);break;default:e=420,o=280}const l=t("div",["image-box","variant-solid"],"",a),B=n.replace("420",e).replace("280",o);L(B,e,o,"Teaser-Bild",[],l),r&&r.length>0&&(t("span",["copyright"],r,l).setAttribute("aria-hidden","true"),t("span",["sr-only"],r,l))}else if(i==="chart"&&s&&s.length>0||(!n||n.length===0)&&i!=="text"&&s&&s.length>0){const e=t("div",["image-box","chart","variant-solid"],null,a);t("span",["chart-title"],s,e)}else if(i==="picto"||i==="pictoHero"){const e=t("div",["image-box","chart","variant-solid"],null,a),o=t("div",["picto-box",...i==="pictoHero"?["hero"]:[]],null,e);t("div",["icon"],null,o).classList.add(h),x&&t("span",["picto-title"],s,o)}else if(i==="picto"||i==="pictoHero"){const e=t("div",["image-box","chart","variant-solid"],null,a),o=t("div",["picto-box",...i==="pictoHero"?["hero"]:[]],null,e);t("div",["icon"],null,o).classList.add(h),x&&t("span",["picto-title"],s,o)}const d=t("div",["text-box"],"",a);if(u?(t("div",["like-h4"],f,d),d.appendChild(H({links:u}))):(t("div",["title","like-h4"],f,d),t("p",[],p,d)),b){const e=k({minutes:Math.floor(Math.random()*10)+2});a.appendChild(e)}if(i==="fullwidth"){const e={large:"l",medium:"m",small:"s"};a.dataset.imageSize=e[c]||c}if(!u){const e=t("a",["teaser--link",i],"",a);e.href=v,e.setAttribute("aria-label","Beschreibender Link-Text"),g&&a.classList.add(g)}return a};export{E as c};
