{"version":3,"file":"PaginatedTable.mjs","sources":["../../../../../../../../web/src/adminPortal/components/PaginatedTable.tsx"],"sourcesContent":["import { iconButtonClasses, SxProps, tablePaginationClasses, Theme } from '@mui/material';\nimport React from 'react';\n\nimport { PaginatedTableCore, PaginatedTableCoreProps } from '../shared/components/PaginatedTable';\nimport { Table } from './Table';\nimport { Typography } from './Typography';\n\nconst tablePaginationSx: SxProps<Theme> = {\n  [`.${tablePaginationClasses.toolbar}`]: {\n    color: (theme) => theme.styleConfig.colors.primary,\n  },\n  [`.${tablePaginationClasses.selectIcon}`]: {\n    color: (theme) => theme.styleConfig.colors.primary,\n  },\n  [`.${tablePaginationClasses.actions} .${iconButtonClasses.disabled}`]: {\n    color: (theme) => theme.styleConfig.colors.secondary,\n  },\n};\n\nexport type PaginatedTableProps<T extends object> = Omit<PaginatedTableCoreProps<T>, 'keepConsistentContentHeight'>;\n\nexport const PaginatedTable = <T extends object>(props: PaginatedTableProps<T>): JSX.Element => {\n  return (\n    <PaginatedTableCore\n      {...props}\n      keepConsistentContentHeight={false}\n      TableComponent={Table<T>}\n      TypographyComponent={Typography}\n      tablePaginationSx={tablePaginationSx}\n    />\n  );\n};\n"],"names":["tablePaginationSx","tablePaginationClasses","toolbar","color","theme","styleConfig","colors","primary","selectIcon","actions","iconButtonClasses","disabled","secondary","PaginatedTable","props","React","PaginatedTableCore","keepConsistentContentHeight","TableComponent","Table","TypographyComponent","Typography"],"mappings":";;;;;;;AAOA,MAAMA,iBAAAA,GAAoC;AACxC,IAAA,CAAC,CAAC,CAAC,EAAEC,uBAAuBC,OAAO,CAAA,CAAE,GAAG;AACtCC,QAAAA,KAAAA,EAAO,CAACC,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACC,MAAM,CAACC;AAC7C,KAAA;AACA,IAAA,CAAC,CAAC,CAAC,EAAEN,uBAAuBO,UAAU,CAAA,CAAE,GAAG;AACzCL,QAAAA,KAAAA,EAAO,CAACC,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACC,MAAM,CAACC;AAC7C,KAAA;AACA,IAAA,CAAC,CAAC,CAAC,EAAEN,sBAAAA,CAAuBQ,OAAO,CAAC,EAAE,EAAEC,iBAAAA,CAAkBC,QAAQ,CAAA,CAAE,GAAG;AACrER,QAAAA,KAAAA,EAAO,CAACC,KAAAA,GAAUA,KAAAA,CAAMC,WAAW,CAACC,MAAM,CAACM;AAC7C;AACF,CAAA;AAIO,MAAMC,iBAAiB,CAAmBC,KAAAA,GAAAA;AAC/C,IAAA,qBACEC,EAAA,CAAA,aAAA,CAACC,kBAAAA,EAAAA;AACE,QAAA,GAAGF,KAAK;QACTG,2BAAAA,EAA6B,KAAA;QAC7BC,cAAAA,EAAgBC,KAAAA;QAChBC,mBAAAA,EAAqBC,UAAAA;QACrBrB,iBAAAA,EAAmBA;;AAGzB;;;;"}