import{r as t,c as a,h as i}from"./p-b31dd0cc.js";class s{constructor(i){t(this,i),this.size=0,this.total=0,this.currentPage=0,this.first=0,this.last=0,this.nextPage=a(this,"nextPage",7),this.previousPage=a(this,"previousPage",7)}handleNextClick(){this.nextPage.emit()}handlePreviousClick(){this.previousPage.emit()}render(){return i("div",{class:"container"},i("materials-layout-grid",{class:"pagination"},i("materials-layout-cell",{class:"navigate"},i("materials-icon-button",{icon:"navigate_before",onClick:()=>this.handlePreviousClick()})),i("materials-layout-cell",{class:"pages"},i("span",null," ",this.first," - ",this.last," sur ",this.total)),i("materials-layout-cell",{class:"navigate"},i("materials-icon-button",{icon:"navigate_next",onClick:()=>this.handleNextClick()}))))}static get style(){return".container{float:right}.container,.pagination{display:-ms-inline-flexbox;display:inline-flex}.pagination{color:var(--mdc-theme-on-surface);opacity:.8}.pagination>div{padding:0}.pages{padding-top:12px}.pages>span{display:block;width:150px}.navigate,.pages>span{text-align:center}"}}export{s as materials_datatable_pagination};