import{r as t,h as s}from"./p-ytAlchvh.js";const e=class{constructor(s){t(this,s),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 t;this.theme=null!==(t=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==t?t: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"})))}};export{e as ecl_tabs_item}