import{r as e,h as t,a as s}from"./p-ytAlchvh.js";const c=class{constructor(t){e(this,t),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 t("li",Object.assign({key:"5a6afc6994fd27c63f426c5c78b28bc0cf35adc9",class:this.getClass()},this.getLiAttrs()),this.currentPage||this.ellipsis?t("slot",null):[t("ecl-link",{variant:"standalone",path:this.path,"style-class":this.getLinkClass()},t("slot",null)),t("ecl-icon",{"style-class":`ecl-breadcrumb__icon sc-ecl-breadcrumb-${this.theme}`,icon:"corner-arrow",rotate:"90",size:"fluid"})],this.ellipsis?[t("ecl-button",{"style-class":`ecl-breadcrumb__ellipsis sc-ecl-breadcrumb-${this.theme}`,variant:"ghost","data-ecl-breadcrumb-ellipsis-button":!0,"aria-label":this.buttonAriaLabel},"..."),t("ecl-icon",{"style-class":`ecl-breadcrumb__icon sc-ecl-breadcrumb-${this.theme}`,size:"fluid",rotate:"90",icon:"corner-arrow"})]:"",this.currentPage?t("slot",null):"")}get el(){return s(this)}};export{c as ecl_breadcrumb_item}