"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/jsx-runtime.js"),s=require("../styles.js"),i=require("../utils.js"),d=require("../../../utils/index.js");const p=({totalItems:u,rowsPerPage:o,currentPage:r,onChangePage:c,paginationLimiter:l=3,...a})=>{const x=d.getId(a["data-testid"]),g=d.getId(a["data-trackid"]),j=i.getNumberOfPages(u,o),m=i.getPageRangeList(r,j,l).map((t,n)=>t===-1?e.jsxRuntimeExports.jsx(s.Ellipsis,{children:"..."},n):e.jsxRuntimeExports.jsx(s.PaginationButton,{"data-active":r===t,onClick:()=>c(t),"data-testid":x(`page-${t}`),"data-trackid":g(`page-${t}`),role:"button",children:t},n));return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:m})};exports.default=p;
