import{p as e,H as t,h as s,t as c}from"./p-BHHBMN0G.js";import{d as i}from"./p-C1DHlsEo.js";import{d as l}from"./p-Bmv0DoO8.js";import{d as a}from"./p-CvotSt5y.js";const o=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.styleClass="",this.path="",this.elId=`ecl-tabs-item-${Math.random().toString(36).substr(2,9)}}`,this.isCurrent=!1}getClass(){return["ecl-tabs__item","sc-ecl-tabs-"+this.theme,this.styleClass].join(" ")}componentWillLoad(){var e;this.theme=null!==(e=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==e?e:this.theme||"ec"}render(){return s("div",{key:"86d3d8ef9e32fda300450c408bad01eee101ff63",class:this.getClass()},s("ecl-link",{key:"87c36a37735f0478c559d8482c998ac32f78e289","style-class":`ecl-tabs__link ${this.isCurrent?"ecl-tabs__link--active":""} sc-ecl-tabs-${this.theme}`,"el-id":this.elId,path:this.path,"aria-selected":this.isCurrent},s("slot",{key:"4f6cc4c7a2fc06723f44c1b50239d0138ed64866"})))}},[262,"ecl-tabs-item",{styleClass:[1,"style-class"],theme:[1025],path:[1],elId:[1,"el-id"],isCurrent:[4,"is-current"]}]),n=o,m=function(){"undefined"!=typeof customElements&&["ecl-tabs-item","ecl-icon","ecl-indicator","ecl-link"].forEach((e=>{switch(e){case"ecl-tabs-item":customElements.get(c(e))||customElements.define(c(e),o);break;case"ecl-icon":customElements.get(c(e))||i();break;case"ecl-indicator":customElements.get(c(e))||l();break;case"ecl-link":customElements.get(c(e))||a()}}))};export{n as EclTabsItem,m as defineCustomElement}