import{r as i,h as t}from"./p-5bf73c0f.js";const s=class{constructor(t){i(this,t);this.theme="ec";this.itemTitle=undefined;this.itemLink=undefined;this.image=undefined;this.icon=undefined;this.imageAlt=undefined;this.squareImage=false;this.styleClass=undefined;this.mediaSize="m";this.itemValue=undefined}getClass(){const i=[`sc-ecl-list-illustration-${this.theme}`,`ecl-list-illustration__item`,this.styleClass];return i.join(" ")}getImgClass(){const i=[`sc-ecl-list-illustration-${this.theme}`,`ecl-list-illustration__image`];if(this.squareImage){i.push("ecl-list-illustration__image--square");i.push(`ecl-list-illustration__image--${this.mediaSize}`)}return i.join(" ")}getImgAttr(){const i={role:"img"};if(this.imageAlt){i["aria-label"]=this.imageAlt}return i}getIconSize(){return this.mediaSize==="l"?"2xl":"l"}render(){return t("div",{class:this.getClass()},this.image?t("ecl-picture",Object.assign({styleClass:`ecl-list-illustration__picture sc-ecl-list-illustration-${this.theme}`,imgClass:this.getImgClass(),image:this.image,imageAlt:this.imageAlt},this.getImgAttr()),t("slot",{name:"sources"})):"",t("div",{class:`ecl-list-illustration__detail sc-ecl-list-illustration-${this.theme}`},t("div",{class:`ecl-list-illustration__title-container sc-ecl-list-illustration-${this.theme}`},this.icon?t("ecl-icon",{icon:this.icon,size:this.getIconSize(),"style-class":`ecl-list-illustration__icon sc-ecl-list-illustration-${this.theme}`}):"",this.itemValue?t("div",{class:`ecl-list-illustration__value sc-ecl-list-illustration-${this.theme}`},this.itemValue):"",this.itemTitle&&t("div",{class:`ecl-list-illustration__title sc-ecl-list-illustration-${this.theme}`},this.itemLink?t("ecl-link",{variant:"standalone",path:this.itemLink},this.itemTitle):this.itemTitle)),t("div",{class:`ecl-list-illustration__description sc-ecl-list-illustration-${this.theme}`},t("slot",null))))}};export{s as ecl_list_illustration_item};
//# sourceMappingURL=p-24c870d0.entry.js.map