import{r as t,h as i}from"./p-ytAlchvh.js";const a=class{constructor(i){t(this,i),this.styleClass="",this.truncation=!1}getClass(){const t=["ecl-pagination__item",`sc-ecl-pagination-${this.theme}`,this.styleClass];return this.current&&t.push("ecl-pagination__item--current"),this.previous&&t.push("ecl-pagination__item--previous"),this.next&&t.push("ecl-pagination__item--next"),this.truncation&&t.push("ecl-pagination__item--truncation"),t.join(" ")}componentWillLoad(){var t;this.theme=null!==(t=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==t?t:this.theme||"ec"}render(){return i("li",{key:"539da0b1c82a4bbc732aea08de036d8466a34eec",class:this.getClass()},this.truncation?i("span",{class:`ecl-pagination__text ecl-pagination__text--summary sc-ecl-pagination-${this.theme}`},"..."):this.current?"":i("ecl-link",{theme:this.theme,variant:"standalone",path:this.path,"aria-label":this.ariaLabel,"hide-label":!(!this.previous&&!this.next),styleClass:`sc-ecl-pagination-${this.theme} ecl-pagination__link`},i("slot",null),this.previous||this.next?i("ecl-icon",{icon:"corner-arrow",size:"xs",rotate:this.previous?"270":"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{a as ecl_pagination_item}