import{p as e,H as t,h as s,t as c}from"./p-BHHBMN0G.js";import{d as l}from"./p-Dq2r_Sid.js";import{d as r}from"./p-C1DHlsEo.js";import{d as i}from"./p-Bmv0DoO8.js";import{d as a}from"./p-CvotSt5y.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.currentPage=!1,this.ellipsis=!1,this.buttonAriaLabel=""}componentWillLoad(){var e;this.theme=null!==(e=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==e?e:this.theme||"ec"}getClass(){const e=["ecl-breadcrumb__segment","sc-ecl-breadcrumb-"+this.theme,this.styleClass];return this.ellipsis&&e.push("ecl-breadcrumb__segment--ellipsis"),this.currentPage&&e.push("ecl-breadcrumb__current-page"),e.join(" ")}getLinkClass(){return["ecl-link","sc-ecl-link-"+this.theme,"sc-ecl-breadcrumb-"+this.theme,"ecl-link--standalone ecl-link--no-visited ecl-breadcrumb__link"].join(" ")}getLiAttrs(){const e={"data-ecl-breadcrumb-item":"static"};return this.ellipsis&&(e["data-ecl-breadcrumb-ellipsis"]="",e["aria-hidden"]="true"),this.currentPage&&(e["aria-current"]="page"),e}render(){return s("li",Object.assign({key:"5a6afc6994fd27c63f426c5c78b28bc0cf35adc9",class:this.getClass()},this.getLiAttrs()),this.currentPage||this.ellipsis?s("slot",null):[s("ecl-link",{variant:"standalone",path:this.path,"style-class":this.getLinkClass()},s("slot",null)),s("ecl-icon",{"style-class":"ecl-breadcrumb__icon sc-ecl-breadcrumb-"+this.theme,icon:"corner-arrow",rotate:"90",size:"fluid"})],this.ellipsis?[s("ecl-button",{"style-class":"ecl-breadcrumb__ellipsis sc-ecl-breadcrumb-"+this.theme,variant:"ghost","data-ecl-breadcrumb-ellipsis-button":!0,"aria-label":this.buttonAriaLabel},"..."),s("ecl-icon",{"style-class":"ecl-breadcrumb__icon sc-ecl-breadcrumb-"+this.theme,size:"fluid",rotate:"90",icon:"corner-arrow"})]:"",this.currentPage?s("slot",null):"")}get el(){return this}},[260,"ecl-breadcrumb-item",{theme:[1025],styleClass:[1,"style-class"],path:[1],currentPage:[4,"current-page"],ellipsis:[4],buttonAriaLabel:[1,"button-aria-label"]}]),o=n,m=function(){"undefined"!=typeof customElements&&["ecl-breadcrumb-item","ecl-button","ecl-icon","ecl-indicator","ecl-link"].forEach((e=>{switch(e){case"ecl-breadcrumb-item":customElements.get(c(e))||customElements.define(c(e),n);break;case"ecl-button":customElements.get(c(e))||l();break;case"ecl-icon":customElements.get(c(e))||r();break;case"ecl-indicator":customElements.get(c(e))||i();break;case"ecl-link":customElements.get(c(e))||a()}}))};export{o as EclBreadcrumbItem,m as defineCustomElement}