import{p as t,H as i,h as s,t as l}from"./p-BHHBMN0G.js";import{d as e}from"./p-C1DHlsEo.js";import{d as c}from"./p-Bmv0DoO8.js";import{d as a}from"./p-CvotSt5y.js";import{d as n}from"./p-DtfDV3FY.js";const o=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),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 s("li",{key:"b4c325c2f782dd56488dfea53d145f044d885546",class:this.getClass()},s("div",{key:"c186408a6bc4df4800be274dd9437cd8a223885c",class:this.getContentClass()},this.image?s("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()),s("slot",{name:"sources"})):"",this.icon?s("ecl-icon",{icon:this.icon,size:this.iconSize,"style-class":"ecl-list-illustration__icon sc-ecl-list-illustration-"+this.theme}):"",s("div",{key:"6d048b4a209ce8487e7ef7c0703c963c8ccc3e95",class:"ecl-list-illustration__detail sc-ecl-list-illustration-"+this.theme},s("div",{key:"0ad18913575a44c460309723dc643aab4fe52a0d",class:"ecl-list-illustration__title-container sc-ecl-list-illustration-"+this.theme},this.itemValue?s("div",{class:"ecl-list-illustration__value sc-ecl-list-illustration-"+this.theme},this.itemValue):"",this.itemTitle&&s("div",{key:"95b24ee9d5e938d262aec29a4df8dabe3a50a8d0",class:"ecl-list-illustration__title sc-ecl-list-illustration-"+this.theme},this.itemLink?s("ecl-link",{variant:"standalone",path:this.itemLink},this.itemTitle):this.itemTitle)),s("div",{key:"eb1f5c43d873cf50fbdfc306e6c63475e38b999d",class:"ecl-list-illustration__description sc-ecl-list-illustration-"+this.theme},s("slot",{key:"5af094d1ee22f4b08a4e3747913cebd929625fb2"})))))}},[260,"ecl-list-illustration-item",{theme:[1025],itemTitle:[1,"item-title"],itemLink:[1,"item-link"],image:[1],icon:[1],iconSize:[1,"icon-size"],imageAlt:[1,"image-alt"],squareImage:[4,"square-image"],styleClass:[1,"style-class"],hasColumns:[4,"has-columns"],divider:[4],mediaSize:[1,"media-size"],itemValue:[1,"item-value"]}]),r=o,m=function(){"undefined"!=typeof customElements&&["ecl-list-illustration-item","ecl-icon","ecl-indicator","ecl-link","ecl-picture"].forEach((t=>{switch(t){case"ecl-list-illustration-item":customElements.get(l(t))||customElements.define(l(t),o);break;case"ecl-icon":customElements.get(l(t))||e();break;case"ecl-indicator":customElements.get(l(t))||c();break;case"ecl-link":customElements.get(l(t))||a();break;case"ecl-picture":customElements.get(l(t))||n()}}))};export{r as EclListIllustrationItem,m as defineCustomElement}