'use client'; var _InputBase; 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 composeClasses from '@mui/utils/composeClasses'; import { styled } from "../zero-styled/index.js"; import memoTheme from "../utils/memoTheme.js"; import { useDefaultProps } from "../DefaultPropsProvider/index.js"; import InputBase from "../InputBase/index.js"; import MenuItem from "../MenuItem/index.js"; import Select from "../Select/index.js"; import TableCell from "../TableCell/index.js"; import Toolbar from "../Toolbar/index.js"; import TablePaginationActions from "../TablePaginationActions/index.js"; import useId from "../utils/useId.js"; import tablePaginationClasses, { getTablePaginationUtilityClass } from "./tablePaginationClasses.js"; import useSlot from "../utils/useSlot.js"; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { createElement as _createElement } from "react"; const TablePaginationRoot = styled(TableCell, { name: 'MuiTablePagination', slot: 'Root' })(memoTheme(({ 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) => ({ [`& .${tablePaginationClasses.actions}`]: styles.actions, ...styles.toolbar }) })(memoTheme(({ 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' })({ flex: '1 1 100%' }); const TablePaginationSelectLabel = styled('p', { name: 'MuiTablePagination', slot: 'SelectLabel' })(memoTheme(({ theme }) => ({ ...theme.typography.body2, flexShrink: 0 }))); const TablePaginationSelect = styled(Select, { name: 'MuiTablePagination', slot: 'Select', overridesResolver: (props, styles) => ({ [`& .${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