var L=Object.defineProperty,W=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var v=(e,t,n)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))T.call(t,n)&&v(e,n,t[n]);if(P)for(var n of P(t))x.call(t,n)&&v(e,n,t[n]);return e},f=(e,t)=>W(e,N(t));import{k as p,j as a,I as m,d9 as U}from"./vendor.e6eaca24.js";import{e as i,L as _}from"./index.c6944236.js";const O="_pagination_1ip09_1",k="_simple_1ip09_4";var o={pagination:O,simple:k};class b extends U{constructor(t){super(t);const n=this.handleItemOverrides;this.handleItemOverrides=(h,l,r)=>{const d=n(h,l,r),c=l==="ellipsisItem";return g=>f(I({},d(g)),{as:c?"span":_,href:c?void 0:this.props.pageUrl(r),onClick:void 0})}}}const w=p(e=>{const t=Math.ceil(e.totalCount/e.itemsPerPage),n=i(0,376),h=i(0,425),l=i(0,540),r=i(0,640),d=i(0,768),c=i(0,880),g=i(0,1024);let s,u;return n?(s=0,u="small"):h?s=0:l?s=1:r?s=2:d?s=3:c?s=4:g?s=5:s=6,a(b,{className:o.pagination,activePage:e.currentPage,size:u,siblingRange:s,ellipsisItem:{content:"...",disabled:!0,icon:!0},firstItem:null,lastItem:null,prevItem:{content:a(m,{name:"chevron left"}),icon:!0,disabled:e.currentPage===1},nextItem:{content:a(m,{name:"chevron right"}),icon:!0,disabled:e.currentPage===t},totalPages:t,pageUrl:e.pageUrl})}),z=p(e=>a("div",{className:o.wrapper+(e.className?" "+e.className:""),children:a(b,{className:o.pagination+" "+o.simple,activePage:2,siblingRange:0,firstItem:null,lastItem:null,prevItem:{content:a(m,{name:"chevron left"}),icon:!0,disabled:!e.hasPrevPage},nextItem:{content:a(m,{name:"chevron right"}),icon:!0,disabled:!e.hasNextPage},totalPages:3,pageUrl:t=>e.pageUrl(Number(t)-2)})}));export{w as P,z as S};
