"use strict"; 'use client'; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")); var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _react = _interopRequireWildcard(require("react")); var React = _react; var _propTypes = _interopRequireDefault(require("prop-types")); var _clsx = _interopRequireDefault(require("clsx")); var _integerPropType = _interopRequireDefault(require("@mui/utils/integerPropType")); var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes")); var _utils = require("@mui/base/utils"); var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses")); var _styled = _interopRequireDefault(require("../styles/styled")); var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps")); var _InputBase2 = _interopRequireDefault(require("../InputBase")); var _MenuItem = _interopRequireDefault(require("../MenuItem")); var _Select = _interopRequireDefault(require("../Select")); var _TableCell = _interopRequireDefault(require("../TableCell")); var _Toolbar = _interopRequireDefault(require("../Toolbar")); var _TablePaginationActions = _interopRequireDefault(require("./TablePaginationActions")); var _useId = _interopRequireDefault(require("../utils/useId")); var _tablePaginationClasses = _interopRequireWildcard(require("./tablePaginationClasses")); var _jsxRuntime = require("react/jsx-runtime"); var _InputBase; const _excluded = ["ActionsComponent", "backIconButtonProps", "className", "colSpan", "component", "count", "disabled", "getItemAriaLabel", "labelDisplayedRows", "labelRowsPerPage", "nextIconButtonProps", "onPageChange", "onRowsPerPageChange", "page", "rowsPerPage", "rowsPerPageOptions", "SelectProps", "showFirstButton", "showLastButton", "slotProps", "slots"]; function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } const TablePaginationRoot = (0, _styled.default)(_TableCell.default, { name: 'MuiTablePagination', slot: 'Root', overridesResolver: (props, styles) => styles.root })(({ theme }) => ({ overflow: 'auto', color: (theme.vars || theme).palette.text.primary, fontSize: theme.typography.pxToRem(14), // Increase the specificity to override TableCell. '&:last-child': { padding: 0 } })); const TablePaginationToolbar = (0, _styled.default)(_Toolbar.default, { name: 'MuiTablePagination', slot: 'Toolbar', overridesResolver: (props, styles) => (0, _extends2.default)({ [`& .${_tablePaginationClasses.default.actions}`]: styles.actions }, styles.toolbar) })(({ theme }) => ({ minHeight: 52, paddingRight: 2, [`${theme.breakpoints.up('xs')} and (orientation: landscape)`]: { minHeight: 52 }, [theme.breakpoints.up('sm')]: { minHeight: 52, paddingRight: 2 }, [`& .${_tablePaginationClasses.default.actions}`]: { flexShrink: 0, marginLeft: 20 } })); const TablePaginationSpacer = (0, _styled.default)('div', { name: 'MuiTablePagination', slot: 'Spacer', overridesResolver: (props, styles) => styles.spacer })({ flex: '1 1 100%' }); const TablePaginationSelectLabel = (0, _styled.default)('p', { name: 'MuiTablePagination', slot: 'SelectLabel', overridesResolver: (props, styles) => styles.selectLabel })(({ theme }) => (0, _extends2.default)({}, theme.typography.body2, { flexShrink: 0 })); const TablePaginationSelect = (0, _styled.default)(_Select.default, { name: 'MuiTablePagination', slot: 'Select', overridesResolver: (props, styles) => (0, _extends2.default)({ [`& .${_tablePaginationClasses.default.selectIcon}`]: styles.selectIcon, [`& .${_tablePaginationClasses.default.select}`]: styles.select }, styles.input, styles.selectRoot) })({ color: 'inherit', fontSize: 'inherit', flexShrink: 0, marginRight: 32, marginLeft: 8, [`& .${_tablePaginationClasses.default.select}`]: { paddingLeft: 8, paddingRight: 24, textAlign: 'right', textAlignLast: 'right' // Align