import{r as t,h as i}from"./p-ytAlchvh.js";const s=class{constructor(i){t(this,i),this.iconSize="2xl",this.squareImage=!1,this.hasColumns=!1,this.divider=!1,this.mediaSize="m"}getClass(){return[`sc-ecl-list-illustration-${this.theme}`,"ecl-list-illustration__item",this.styleClass].join(" ")}getContentClass(){const t=["ecl-list-illustration__item-content",`sc-ecl-list-illustration-${this.theme}`];return this.divider&&t.push("ecl-list-illustration__divider"),this.image&&!this.hasColumns&&t.push("ecl-list-illustration__item-content--row"),t.join(" ")}getImgClass(){const t=[`sc-ecl-list-illustration-${this.theme}`,"ecl-list-illustration__image"];return this.squareImage&&(t.push("ecl-list-illustration__image--square"),t.push(`ecl-list-illustration__image--${this.mediaSize}`)),t.join(" ")}getImgAttr(){const t={role:"img"};return this.imageAlt&&(t["aria-label"]=this.imageAlt),t}componentWillLoad(){var t;this.theme=null!==(t=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==t?t:this.theme||"ec"}render(){return i("li",{key:"b4c325c2f782dd56488dfea53d145f044d885546",class:this.getClass()},i("div",{key:"c186408a6bc4df4800be274dd9437cd8a223885c",class:this.getContentClass()},this.image?i("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()),i("slot",{name:"sources"})):"",this.icon?i("ecl-icon",{icon:this.icon,size:this.iconSize,"style-class":`ecl-list-illustration__icon sc-ecl-list-illustration-${this.theme}`}):"",i("div",{key:"6d048b4a209ce8487e7ef7c0703c963c8ccc3e95",class:`ecl-list-illustration__detail sc-ecl-list-illustration-${this.theme}`},i("div",{key:"0ad18913575a44c460309723dc643aab4fe52a0d",class:`ecl-list-illustration__title-container sc-ecl-list-illustration-${this.theme}`},this.itemValue?i("div",{class:`ecl-list-illustration__value sc-ecl-list-illustration-${this.theme}`},this.itemValue):"",this.itemTitle&&i("div",{key:"95b24ee9d5e938d262aec29a4df8dabe3a50a8d0",class:`ecl-list-illustration__title sc-ecl-list-illustration-${this.theme}`},this.itemLink?i("ecl-link",{variant:"standalone",path:this.itemLink},this.itemTitle):this.itemTitle)),i("div",{key:"eb1f5c43d873cf50fbdfc306e6c63475e38b999d",class:`ecl-list-illustration__description sc-ecl-list-illustration-${this.theme}`},i("slot",{key:"5af094d1ee22f4b08a4e3747913cebd929625fb2"})))))}};export{s as ecl_list_illustration_item}