'use client'; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; 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"]; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import integerPropType from '@mui/utils/integerPropType'; import chainPropTypes from '@mui/utils/chainPropTypes'; import { isHostComponent } from '@mui/base/utils'; import composeClasses from '@mui/utils/composeClasses'; import styled from '../styles/styled'; import useThemeProps from '../styles/useThemeProps'; import InputBase from '../InputBase'; import MenuItem from '../MenuItem'; import Select from '../Select'; import TableCell from '../TableCell'; import Toolbar from '../Toolbar'; import TablePaginationActions from './TablePaginationActions'; import useId from '../utils/useId'; import tablePaginationClasses, { getTablePaginationUtilityClass } from './tablePaginationClasses'; import { jsx as _jsx } from "react/jsx-runtime"; import { createElement as _createElement } from "react"; import { jsxs as _jsxs } from "react/jsx-runtime"; const TablePaginationRoot = styled(TableCell, { 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 = styled(Toolbar, { name: 'MuiTablePagination', slot: 'Toolbar', overridesResolver: (props, styles) => _extends({ [`& .${tablePaginationClasses.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.actions}`]: { flexShrink: 0, marginLeft: 20 } })); const TablePaginationSpacer = styled('div', { name: 'MuiTablePagination', slot: 'Spacer', overridesResolver: (props, styles) => styles.spacer })({ flex: '1 1 100%' }); const TablePaginationSelectLabel = styled('p', { name: 'MuiTablePagination', slot: 'SelectLabel', overridesResolver: (props, styles) => styles.selectLabel })(({ theme }) => _extends({}, theme.typography.body2, { flexShrink: 0 })); const TablePaginationSelect = styled(Select, { name: 'MuiTablePagination', slot: 'Select', overridesResolver: (props, styles) => _extends({ [`& .${tablePaginationClasses.selectIcon}`]: styles.selectIcon, [`& .${tablePaginationClasses.select}`]: styles.select }, styles.input, styles.selectRoot) })({ color: 'inherit', fontSize: 'inherit', flexShrink: 0, marginRight: 32, marginLeft: 8, [`& .${tablePaginationClasses.select}`]: { paddingLeft: 8, paddingRight: 24, textAlign: 'right', textAlignLast: 'right' // Align