import{p as e,H as t,h as s,e as a,t as c}from"./p-BHHBMN0G.js";import{d as i}from"./p-C1DHlsEo.js";import{d as m}from"./p-Bmv0DoO8.js";import{d as l}from"./p-CvotSt5y.js";import{d as n}from"./p-DtfDV3FY.js";const r=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.hasDescription=!1,this.external=!1}componentWillLoad(){var e;this.theme=null!==(e=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==e?e:this.theme||"ec"}getClass(){const e=["ecl-mega-menu__featured-list__item","sc-ecl-mega-menu-"+this.theme,this.styleClass];return!this.image||this.path||this.hasDescription||e.push("ecl-mega-menu__featured-list__item--image-only"),this.image&&this.path&&this.hasDescription&&e.push("ecl-mega-menu__featured-list__item--combo"),e.join(" ")}render(){return s(a,{key:"6bf6d5c7f2d9e1480153eb23cfe80f89dd883639",class:this.getClass()},this.image&&s("ecl-picture",{key:"5ff4d295b7181a0331fa9b6c7c8e8e7c3d5685a1",image:this.image,"style-class":"ecl-mega-menu__featured-picture sc-ecl-mega-menu-"+this.theme,"img-class":"ecl-mega-menu__featured-image sc-ecl-mega-menu-"+this.theme},s("slot",{key:"aa2027fee8d2a3c95c5a88b211c2c470e953f888",name:"sources"})),this.path&&s("ecl-link",Object.assign({key:"56d7bc163e5e020ae285d02a2e70d2a3842716fb",path:this.path,variant:"standalone","style-class":"ecl-mega-menu__featured-link sc-ecl-mega-menu-"+this.theme},this.external&&{external:null}),this.label),this.hasDescription&&s("div",{key:"eb6d5da2afcbbabf91eda4f0c8420fa7a0c0dc59",class:"ecl-mega-menu__featured-list__item-description sc-ecl-mega-menu-"+this.theme},s("slot",{key:"e4989a833e21558580a5946ad1fd114018e2039c"})))}},[260,"ecl-mega-menu-featured-list-item",{theme:[1025],styleClass:[1,"style-class"],label:[1],path:[1],image:[1],hasDescription:[4,"has-description"],external:[4]}]),o=r,u=function(){"undefined"!=typeof customElements&&["ecl-mega-menu-featured-list-item","ecl-icon","ecl-indicator","ecl-link","ecl-picture"].forEach((e=>{switch(e){case"ecl-mega-menu-featured-list-item":customElements.get(c(e))||customElements.define(c(e),r);break;case"ecl-icon":customElements.get(c(e))||i();break;case"ecl-indicator":customElements.get(c(e))||m();break;case"ecl-link":customElements.get(c(e))||l();break;case"ecl-picture":customElements.get(c(e))||n()}}))};export{o as EclMegaMenuFeaturedListItem,u as defineCustomElement}