import{p as t,H as i,h as e,t as s}from"./p-BHHBMN0G.js";import{d as a}from"./p-C1DHlsEo.js";import{d as n}from"./p-Bmv0DoO8.js";import{d as c}from"./p-CvotSt5y.js";const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),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 e("li",{key:"539da0b1c82a4bbc732aea08de036d8466a34eec",class:this.getClass()},this.truncation?e("span",{class:"ecl-pagination__text ecl-pagination__text--summary sc-ecl-pagination-"+this.theme},"..."):this.current?"":e("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`},e("slot",null),this.previous||this.next?e("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?e("span",{class:"ecl-pagination__text ecl-pagination__text--summary sc-ecl-pagination-"+this.theme},e("slot",null)):"",this.current?e("span",{class:"ecl-pagination__text ecl-pagination__text--full sc-ecl-pagination-"+this.theme},this.ariaLabel):"")}},[260,"ecl-pagination-item",{styleClass:[1,"style-class"],theme:[1025],path:[1],ariaLabel:[1,"aria-label"],current:[4],previous:[4],truncation:[4],next:[4]}]),o=l,r=function(){"undefined"!=typeof customElements&&["ecl-pagination-item","ecl-icon","ecl-indicator","ecl-link"].forEach((t=>{switch(t){case"ecl-pagination-item":customElements.get(s(t))||customElements.define(s(t),l);break;case"ecl-icon":customElements.get(s(t))||a();break;case"ecl-indicator":customElements.get(s(t))||n();break;case"ecl-link":customElements.get(s(t))||c()}}))};export{o as EclPaginationItem,r as defineCustomElement}