import{r as t,h as i}from"./p-841644e5.js";const s=class{constructor(i){t(this,i);this.styleClass="";this.theme="ec";this.path=undefined;this.ariaLabel=undefined;this.current=undefined;this.previous=undefined;this.next=undefined}getClass(){const t=[`ecl-pagination__item`,`sc-ecl-pagination-${this.theme}`,this.styleClass];if(this.current){t.push("ecl-pagination__item--current")}if(this.previous){t.push("ecl-pagination__item--previous")}if(this.next){t.push("ecl-pagination__item--next")}return t.join(" ")}render(){return i("li",{class:this.getClass()},!this.current?i("ecl-link",{variant:"standalone",path:this.path,"aria-label":this.ariaLabel},i("slot",null),this.previous||this.next?i("ecl-icon",{icon:"corner-arrow",size:"xs",theme:this.theme,transform:this.previous?"rotate-270":"rotate-90",slot:this.previous?"icon-before":"icon-after","style-class":`sc-ecl-pagination-${this.theme}`}):""):"",this.current?i("span",{class:`ecl-pagination__text ecl-pagination__text--summary sc-ecl-pagination-${this.theme}`},i("slot",null)):"",this.current?i("span",{class:`ecl-pagination__text ecl-pagination__text--full sc-ecl-pagination-${this.theme}`},this.ariaLabel):"")}};export{s as ecl_pagination_item};
//# sourceMappingURL=p-aa7d0cf8.entry.js.map