!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],o):"object"==typeof exports?exports["openstack-uicore-foundation"]=o():e["openstack-uicore-foundation"]=o()}(this,(()=>(()=>{"use strict";var e={3209:(e,o,r)=>{r.d(o,{Lr:()=>a,WU:()=>t,k6:()=>n});const t=10,n=20,a=50},6842:e=>{e.exports=require("i18n-react/dist/i18n-react")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},o={};function r(t){var n=o[t];if(void 0!==n)return n.exports;var a=o[t]={exports:{}};return e[t](a,a.exports,r),a.exports}(()=>{r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o}})(),(()=>{r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})}})(),(()=>{r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var t={};r.r(t),r.d(t,{default:()=>P});var n=r(2015),a=r(6842),i=r.n(a);const s=require("@mui/material/TablePagination");var u=r.n(s),p=r(9825),l=r.n(p),g=r(3209);const c={".MuiTablePagination-toolbar":{alignItems:"baseline",marginTop:"1.6rem"},".MuiTablePagination-selectLabel":{color:"rgba(0, 0, 0, 0.6)",fontSize:"12px",fontWeight:"normal"},".MuiTablePagination-select":{color:"rgba(0, 0, 0, 0.6)",fontSize:"12px",fontWeight:"normal"},".MuiTablePagination-spacer":{display:"none"},".MuiTablePagination-displayedRows":{marginLeft:"auto"}},d=[g.WU,g.k6,g.Lr],f=({totalRows:e,perPage:o,currentPage:r,onPageChange:t,onPerPageChange:a})=>{const s=n.useMemo((()=>a?d.includes(o)?d:[...d,o].sort(((e,o)=>e-o)):[o]),[o,a]);return n.createElement(u(),{component:"div",count:e??0,rowsPerPageOptions:s,rowsPerPage:o,page:r-1,onPageChange:(e,o)=>{t(o+1)},onRowsPerPageChange:a?e=>{a(parseInt(e.target.value,10))}:void 0,labelRowsPerPage:i().translate("mui_table.rows_per_page"),sx:c})};f.propTypes={totalRows:l().number,perPage:l().number.isRequired,currentPage:l().number.isRequired,onPageChange:l().func.isRequired,onPerPageChange:l().func};const P=f;return t})()));
//# sourceMappingURL=custom-table-pagination.js.map