import{r as t,h as a,H as o}from"./p-bace3d90.js";const e=class{constructor(a){t(this,a),this._paginator={currentPage:1,lastPage:5,items:[]}}watchPaginator(){this.setState()}setState(){this.paginator&&(this._paginator="string"==typeof this.paginator?JSON.parse(this.paginator):this.paginator)}componentWillLoad(){this.setState()}renderPaginate(){const t=[];for(let o=1;o<=this._paginator.lastPage;o++){const e={color:"gray-400"};o===this._paginator.currentPage&&(e.color="gray-900"),t.push(a("corejam-box",{px:4,bWidthRight:1,bColor:"gray-200"},a("corejam-base-link",{href:`${o}`,decoration:"none"},a("corejam-type",Object.assign({},e),o.toString()))))}return t}render(){return a(o,null,a("corejam-box",{flex:!0,w:"12",mt:8,justify:"between",bWidthTop:1,bColor:"gray-300",pt:4},a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},a("path",{class:"heroicon-ui",d:"M5.41 11H21a1 1 0 0 1 0 2H5.41l5.3 5.3a1 1 0 0 1-1.42 1.4l-7-7a1 1 0 0 1 0-1.4l7-7a1 1 0 0 1 1.42 1.4L5.4 11z"})),a("corejam-box",{flex:!0,direction:"row"},this.renderPaginate()),a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},a("path",{class:"heroicon-ui",d:"M18.59 13H3a1 1 0 0 1 0-2h15.59l-5.3-5.3a1 1 0 1 1 1.42-1.4l7 7a1 1 0 0 1 0 1.4l-7 7a1 1 0 0 1-1.42-1.4l5.3-5.3z"}))))}static get watchers(){return{paginator:["watchPaginator"]}}};export{e as corejam_pagination}