import{r as t,h as e,c as s}from"./p-841644e5.js";const i=class{constructor(e){t(this,e);this.styleClass="";this.theme="ec";this.label=undefined;this.path=undefined;this.level=undefined;this.subItems=false}getClass(){return[`ecl-category-filter__list-item`,`sc-ecl-category-filter-${this.theme}`,this.styleClass].join(" ")}getLinkClass(){const t=[`ecl-category-filter__item`,`sc-ecl-category-filter-${this.theme}`,`ecl-category-filter__item--level-${this.level}`,this.styleClass];if(this.subItems){t.push(`ecl-category-filter__item--has-children`)}return t.join(" ")}render(){const t=this.subItems?{"aria-expanded":"false"}:{};return e("li",Object.assign({class:this.getClass()},t),this.path?e("ecl-link",{"style-class":this.getLinkClass(),path:this.path},this.label,this.subItems?e("ecl-icon",{"style-class":`ecl-category-filter__item-icon sc-ecl-category-filter-${this.theme}`,icon:this.level===1?"corner-arrow":"solid-arrow",size:this.level===1?"xs":"m",transform:this.level===1?"rotate-180":"rotate-90",slot:this.level===1?"icon-after":"icon-before"}):""):"",!this.path?this.label:"",this.subItems?e("ul",{class:`ecl-category-filter__list sc-ecl-category-filter-${this.theme}`},e("slot",null)):"")}get el(){return s(this)}};export{i as ecl_category_filter_item};
//# sourceMappingURL=p-829c1ce3.entry.js.map