@owp/core 2.5.28 → 2.5.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index12.js +2 -2
  3. package/dist/_virtual/index13.js +2 -2
  4. package/dist/_virtual/index14.js +2 -2
  5. package/dist/_virtual/index16.js +4 -4
  6. package/dist/_virtual/index17.js +4 -4
  7. package/dist/_virtual/index18.js +4 -4
  8. package/dist/_virtual/index19.js +4 -4
  9. package/dist/components/OwpTable/OwpFieldTable.js +1 -1
  10. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  11. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +1 -1
  12. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  13. package/dist/index.js +54 -56
  14. package/dist/index.js.map +1 -1
  15. package/dist/layout/components/menus/PasswordChangeMenu.js +5 -5
  16. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  17. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/VisibilityOff.js.map +1 -1
  18. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  19. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  20. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  21. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  22. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  23. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  24. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  25. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  26. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  27. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  28. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  29. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  30. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  31. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  32. package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
  33. package/dist/owp-app.css +1 -1
  34. package/dist/types/index.d.ts +0 -1
  35. package/dist/utils/treeGridUtil.js +42 -42
  36. package/dist/utils/treeGridUtil.js.map +1 -1
  37. package/package.json +1 -2
  38. package/dist/components/OwpMrtTable/OwpMrtTable.js +0 -717
  39. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +0 -1
  40. package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js +0 -54
  41. package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js.map +0 -1
  42. package/dist/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.js +0 -102
  43. package/dist/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.js.map +0 -1
  44. package/dist/components/OwpMrtTable/utils/parseFromValuesOrFunc.js +0 -7
  45. package/dist/components/OwpMrtTable/utils/parseFromValuesOrFunc.js.map +0 -1
  46. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDownward.js +0 -9
  47. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDownward.js.map +0 -1
  48. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDropDownRounded.js +0 -9
  49. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDropDownRounded.js.map +0 -1
  50. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowRight.js +0 -9
  51. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowRight.js.map +0 -1
  52. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Cancel.js +0 -9
  53. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Cancel.js.map +0 -1
  54. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ClearAll.js +0 -9
  55. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ClearAll.js.map +0 -1
  56. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ContentCopy.js +0 -9
  57. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ContentCopy.js.map +0 -1
  58. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensityLarge.js +0 -9
  59. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensityLarge.js.map +0 -1
  60. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensityMedium.js +0 -9
  61. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensityMedium.js.map +0 -1
  62. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensitySmall.js +0 -9
  63. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensitySmall.js.map +0 -1
  64. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DragHandle.js +0 -9
  65. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DragHandle.js.map +0 -1
  66. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DynamicFeed.js +0 -11
  67. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DynamicFeed.js.map +0 -1
  68. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Edit.js +0 -9
  69. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Edit.js.map +0 -1
  70. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ExpandMore.js +0 -9
  71. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ExpandMore.js.map +0 -1
  72. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterAlt.js +0 -9
  73. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterAlt.js.map +0 -1
  74. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterList.js +0 -9
  75. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterList.js.map +0 -1
  76. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterListOff.js +0 -9
  77. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterListOff.js.map +0 -1
  78. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FirstPage.js +0 -9
  79. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FirstPage.js.map +0 -1
  80. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Fullscreen.js +0 -9
  81. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Fullscreen.js.map +0 -1
  82. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FullscreenExit.js +0 -9
  83. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FullscreenExit.js.map +0 -1
  84. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardDoubleArrowDown.js +0 -11
  85. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardDoubleArrowDown.js.map +0 -1
  86. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/LastPage.js +0 -9
  87. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/LastPage.js.map +0 -1
  88. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MoreHoriz.js +0 -9
  89. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MoreHoriz.js.map +0 -1
  90. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PushPin.js +0 -10
  91. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PushPin.js.map +0 -1
  92. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Save.js +0 -9
  93. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Save.js.map +0 -1
  94. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SearchOff.js +0 -11
  95. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SearchOff.js.map +0 -1
  96. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Sort.js +0 -9
  97. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Sort.js.map +0 -1
  98. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SyncAlt.js +0 -9
  99. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SyncAlt.js.map +0 -1
  100. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UnfoldMoreRounded.js +0 -9
  101. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/UnfoldMoreRounded.js.map +0 -1
  102. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ViewColumn.js +0 -9
  103. package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ViewColumn.js.map +0 -1
  104. package/dist/node_modules/.pnpm/@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.js +0 -554
  105. package/dist/node_modules/.pnpm/@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.js.map +0 -1
  106. package/dist/node_modules/.pnpm/@tanstack_react-table@8.20.6_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-table/build/lib/index.js +0 -95
  107. package/dist/node_modules/.pnpm/@tanstack_react-table@8.20.6_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-table/build/lib/index.js.map +0 -1
  108. package/dist/node_modules/.pnpm/@tanstack_react-virtual@3.11.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -40
  109. package/dist/node_modules/.pnpm/@tanstack_react-virtual@3.11.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +0 -1
  110. package/dist/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js +0 -2055
  111. package/dist/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js.map +0 -1
  112. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -454
  113. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
  114. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -54
  115. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
  116. package/dist/node_modules/.pnpm/highlight-words@2.0.0/node_modules/highlight-words/dist/highlight-words.js +0 -92
  117. package/dist/node_modules/.pnpm/highlight-words@2.0.0/node_modules/highlight-words/dist/highlight-words.js.map +0 -1
  118. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js +0 -2440
  119. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js.map +0 -1
  120. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js +0 -98
  121. package/dist/node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js.map +0 -1
  122. package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +0 -25
  123. package/dist/types/components/OwpMrtTable/index.d.ts +0 -1
  124. package/dist/types/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.d.ts +0 -14
  125. package/dist/types/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.d.ts +0 -6
  126. package/dist/types/components/OwpMrtTable/utils/parseFromValuesOrFunc.d.ts +0 -11
@@ -1,2440 +0,0 @@
1
- var Zo = Object.defineProperty;
2
- var i = (e, n) => Zo(e, "name", { value: n, configurable: !0 });
3
- import { useReactTable as Xo } from "../../../../@tanstack_react-table@8.20.6_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-table/build/lib/index.js";
4
- import { useRef as be, useMemo as ce, useState as oe, useId as Yo, useReducer as Qo, useEffect as Ae, useLayoutEffect as Jo, Fragment as et, useCallback as hn, memo as Gn } from "react";
5
- import { rankItem as nt, compareItems as ot, rankings as tt } from "../../../../@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.js";
6
- import { j as o } from "../../../../../../_virtual/jsx-runtime.js";
7
- import ue from "@mui/material/IconButton";
8
- import de from "@mui/material/Tooltip";
9
- import ae from "@mui/material/Box";
10
- import Ne from "@mui/material/Button";
11
- import Bn from "@mui/material/CircularProgress";
12
- import { useTheme as qe, alpha as Ge, lighten as un, darken as $n } from "@mui/material/styles";
13
- import on from "@mui/material/Menu";
14
- import lt from "@mui/material/ListItemIcon";
15
- import Ye from "@mui/material/MenuItem";
16
- import nn from "@mui/material/Stack";
17
- import Wn from "@mui/material/Checkbox";
18
- import it from "@mui/material/Radio";
19
- import st from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowDownward.js";
20
- import rt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ArrowRight.js";
21
- import at from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Cancel.js";
22
- import dt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ChevronLeft.js";
23
- import ct from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ChevronRight.js";
24
- import ut from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ClearAll.js";
25
- import gt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Close.js";
26
- import pt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ContentCopy.js";
27
- import mt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensityLarge.js";
28
- import vt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensityMedium.js";
29
- import bt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DensitySmall.js";
30
- import ft from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DragHandle.js";
31
- import ht from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/DynamicFeed.js";
32
- import xt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Edit.js";
33
- import Ct from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ExpandMore.js";
34
- import jt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterAlt.js";
35
- import wt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterList.js";
36
- import yt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FilterListOff.js";
37
- import Rt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FirstPage.js";
38
- import St from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Fullscreen.js";
39
- import Ot from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/FullscreenExit.js";
40
- import Ft from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/KeyboardDoubleArrowDown.js";
41
- import Pt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/LastPage.js";
42
- import Tt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MoreHoriz.js";
43
- import It from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/MoreVert.js";
44
- import Mt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/PushPin.js";
45
- import _t from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/RestartAlt.js";
46
- import Dt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Save.js";
47
- import kt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Search.js";
48
- import At from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SearchOff.js";
49
- import zt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Sort.js";
50
- import Et from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/SyncAlt.js";
51
- import Bt from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/ViewColumn.js";
52
- import Ht from "../../../../@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/VisibilityOff.js";
53
- import { useVirtualizer as so } from "../../../../@tanstack_react-virtual@3.11.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-virtual/dist/esm/index.js";
54
- import Vt from "@mui/material/Paper";
55
- import Lt from "@mui/material/TableContainer";
56
- import Gt from "@mui/material/Table";
57
- import In from "@mui/material/TableBody";
58
- import xn from "@mui/material/Typography";
59
- import Cn from "@mui/material/TableRow";
60
- import $t from "@mui/material/Skeleton";
61
- import jn from "@mui/material/TableCell";
62
- import Mn from "../../../../highlight-words@2.0.0/node_modules/highlight-words/dist/highlight-words.js";
63
- import pn from "@mui/material/TextField";
64
- import tn from "@mui/material/Collapse";
65
- import Wt from "@mui/material/TableFooter";
66
- import Nt from "@mui/material/TableHead";
67
- import ro from "@mui/material/FormControlLabel";
68
- import qt from "@mui/material/Autocomplete";
69
- import Hn from "@mui/material/Chip";
70
- import mn from "@mui/material/InputAdornment";
71
- import { debounce as ao } from "@mui/material/utils";
72
- import { DatePicker as Kt } from "@mui/x-date-pickers/DatePicker";
73
- import { DateTimePicker as Ut } from "@mui/x-date-pickers/DateTimePicker";
74
- import { TimePicker as Zt } from "@mui/x-date-pickers/TimePicker";
75
- import Xt from "@mui/material/FormHelperText";
76
- import Yt from "@mui/material/Slider";
77
- import Qt from "@mui/material/Grow";
78
- import Jt from "@mui/material/Popover";
79
- import co from "@mui/material/Divider";
80
- import el from "@mui/material/Badge";
81
- import nl from "@mui/material/TableSortLabel";
82
- import ol from "@mui/material/Alert";
83
- import tl from "@mui/material/AlertTitle";
84
- import ll from "@mui/material/Dialog";
85
- import il from "@mui/material/DialogActions";
86
- import sl from "@mui/material/DialogContent";
87
- import rl from "@mui/material/DialogTitle";
88
- import vn from "@mui/material/useMediaQuery";
89
- import al from "@mui/material/LinearProgress";
90
- import dl from "@mui/material/InputLabel";
91
- import cl from "@mui/material/Pagination";
92
- import ul from "@mui/material/PaginationItem";
93
- import gl from "@mui/material/Select";
94
- import pl from "@mui/material/Fade";
95
- import ml from "@mui/material/Switch";
96
- import { createRow as vl, getSortedRowModel as bl, getPaginationRowModel as fl, getGroupedRowModel as hl, getFilteredRowModel as xl, getFacetedUniqueValues as Cl, getFacetedRowModel as jl, getFacetedMinMaxValues as wl, getExpandedRowModel as yl, getCoreRowModel as Rl, aggregationFns as Sl, filterFns as Ol, sortingFns as uo } from "../../../../@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js";
97
- import { defaultRangeExtractor as Fl } from "../../../../@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.js";
98
- const Xe = /* @__PURE__ */ i((e) => {
99
- var n, t, l, s;
100
- return (s = (n = e.id) !== null && n !== void 0 ? n : (l = (t = e.accessorKey) === null || t === void 0 ? void 0 : t.toString) === null || l === void 0 ? void 0 : l.call(t)) !== null && s !== void 0 ? s : e.header;
101
- }, "getColumnId"), bn = /* @__PURE__ */ i((e) => {
102
- const n = [], t = /* @__PURE__ */ i((l) => {
103
- l.forEach((s) => {
104
- s.columns ? t(s.columns) : n.push(s);
105
- });
106
- }, "getLeafColumns");
107
- return t(e), n;
108
- }, "getAllLeafColumnDefs"), go = /* @__PURE__ */ i(({ columnDefs: e, tableOptions: n }) => {
109
- const { aggregationFns: t = {}, defaultDisplayColumn: l, filterFns: s = {}, sortingFns: a = {}, state: { columnFilterFns: r = {} } = {} } = n;
110
- return e.map((u) => {
111
- var g, p;
112
- if (u.id || (u.id = Xe(u)), u.columnDefType || (u.columnDefType = "data"), !((g = u.columns) === null || g === void 0) && g.length)
113
- u.columnDefType = "group", u.columns = go({
114
- columnDefs: u.columns,
115
- tableOptions: n
116
- });
117
- else if (u.columnDefType === "data") {
118
- if (Array.isArray(u.aggregationFn)) {
119
- const m = u.aggregationFn;
120
- u.aggregationFn = (b, v, c) => m.map((d) => {
121
- var x;
122
- return (x = t[d]) === null || x === void 0 ? void 0 : x.call(t, b, v, c);
123
- });
124
- }
125
- Object.keys(s).includes(r[u.id]) && (u.filterFn = (p = s[r[u.id]]) !== null && p !== void 0 ? p : s.fuzzy, u._filterFn = r[u.id]), Object.keys(a).includes(u.sortingFn) && (u.sortingFn = a[u.sortingFn]);
126
- } else u.columnDefType === "display" && (u = Object.assign(Object.assign({}, l), u));
127
- return u;
128
- });
129
- }, "prepareColumns"), po = /* @__PURE__ */ i((e, n, t) => {
130
- e.getCanPin() && e.pin(n.getIsPinned());
131
- const l = [...t];
132
- return l.splice(l.indexOf(n.id), 0, l.splice(l.indexOf(e.id), 1)[0]), l;
133
- }, "reorderColumn"), Pl = /* @__PURE__ */ i((e) => {
134
- const { filterVariant: n } = e;
135
- return n === "multi-select" ? "arrIncludesSome" : n != null && n.includes("range") ? "betweenInclusive" : n === "select" || n === "checkbox" ? "equals" : "fuzzy";
136
- }, "getDefaultColumnFilterFn"), wn = /* @__PURE__ */ i(({ header: e, table: n }) => {
137
- var t;
138
- const { options: { columnFilterModeOptions: l } } = n, { column: s } = e, { columnDef: a } = s, { filterVariant: r } = a, u = !!(r != null && r.startsWith("date") || r != null && r.startsWith("time")), g = r === "autocomplete", p = (r == null ? void 0 : r.includes("range")) || ["between", "betweenInclusive", "inNumberRange"].includes(a._filterFn), m = r === "select", b = r === "multi-select", v = ["autocomplete", "text"].includes(r) || !m && !b, c = a._filterFn, d = (t = a == null ? void 0 : a.columnFilterModeOptions) !== null && t !== void 0 ? t : l, x = s.getFacetedUniqueValues();
139
- return {
140
- allowedColumnFilterOptions: d,
141
- currentFilterOption: c,
142
- facetedUniqueValues: x,
143
- isAutocompleteFilter: g,
144
- isDateFilter: u,
145
- isMultiSelectFilter: b,
146
- isRangeFilter: p,
147
- isSelectFilter: m,
148
- isTextboxFilter: v
149
- };
150
- }, "getColumnFilterInfo"), mo = /* @__PURE__ */ i(({ header: e, table: n }) => {
151
- const { column: t } = e, { columnDef: l } = t, { facetedUniqueValues: s, isAutocompleteFilter: a, isMultiSelectFilter: r, isSelectFilter: u } = wn({ header: e, table: n });
152
- return ce(() => {
153
- var g;
154
- return (g = l.filterSelectOptions) !== null && g !== void 0 ? g : (u || r || a) && s ? Array.from(s.keys()).filter((p) => p != null).sort((p, m) => p.localeCompare(m)) : void 0;
155
- }, [
156
- l.filterSelectOptions,
157
- s,
158
- r,
159
- u
160
- ]);
161
- }, "useDropdownOptions"), Tl = /* @__PURE__ */ i((e, n, t = -1, l = 0, s, a) => vl(e, "mrt-row-create", Object.assign({}, ...bn(e.options.columns).map((r) => ({
162
- [Xe(r)]: ""
163
- }))), t, l, s, a), "createRow"), Il = /* @__PURE__ */ i((e, n, t) => {
164
- let l = 0;
165
- return e.columnFiltersMeta[t] && (l = ot(e.columnFiltersMeta[t], n.columnFiltersMeta[t])), l === 0 ? uo.alphanumeric(e, n, t) : l;
166
- }, "fuzzy$1"), Ml = Object.assign(Object.assign({}, uo), { fuzzy: Il }), _l = /* @__PURE__ */ i((e, n) => Math.max(...Object.values(n.columnFiltersMeta).map((t) => t.rank)) - Math.max(...Object.values(e.columnFiltersMeta).map((t) => t.rank)), "rankGlobalFuzzy"), O = /* @__PURE__ */ i((e, n) => e instanceof Function ? e(n) : e, "parseFromValuesOrFunc"), We = /* @__PURE__ */ i((e) => {
167
- var n, t;
168
- let l = "", s = "";
169
- return e && (typeof e != "object" ? (l = e, s = e) : (l = (n = e.label) !== null && n !== void 0 ? n : e.value, s = (t = e.value) !== null && t !== void 0 ? t : l)), { label: l, value: s };
170
- }, "getValueAndLabel"), vo = /* @__PURE__ */ i((e, n) => {
171
- const { getCenterRows: t, getPrePaginationRowModel: l, getRowModel: s, getState: a, getTopRows: r, options: { createDisplayMode: u, enablePagination: g, enableRowPinning: p, manualPagination: m, positionCreatingRow: b, rowPinningDisplayMode: v } } = e, { creatingRow: c, pagination: d } = a(), x = Dl(e);
172
- let h = [];
173
- if (!x)
174
- h = !p || v != null && v.includes("sticky") ? n ? l().rows : s().rows : t();
175
- else {
176
- if (h = l().rows.sort((f, C) => _l(f, C)), g && !m && !n) {
177
- const f = d.pageIndex * d.pageSize;
178
- h = h.slice(f, f + d.pageSize);
179
- }
180
- p && !(v != null && v.includes("sticky")) && (h = h.filter((f) => !f.getIsPinned()));
181
- }
182
- if (p && (v != null && v.includes("sticky"))) {
183
- const f = h.filter((C) => C.getIsPinned()).map((C) => C.id);
184
- h = [
185
- ...r().filter((C) => !f.includes(C.id)),
186
- ...h
187
- ];
188
- }
189
- if (b !== void 0 && c && u === "row") {
190
- const f = isNaN(+b) ? b === "top" ? 0 : h.length : +b;
191
- h = [
192
- ...h.slice(0, f),
193
- c,
194
- ...h.slice(f)
195
- ];
196
- }
197
- return h;
198
- }, "getMRT_Rows"), bo = /* @__PURE__ */ i((e) => {
199
- const { getState: n, options: { enableGlobalFilterRankedResults: t, manualExpanding: l, manualFiltering: s, manualGrouping: a, manualSorting: r } } = e, { expanded: u, globalFilterFn: g } = n();
200
- return !l && !s && !a && !r && t && g === "fuzzy" && u !== !0 && !Object.values(u).some(Boolean);
201
- }, "getCanRankRows"), Dl = /* @__PURE__ */ i((e) => {
202
- const { globalFilter: n, sorting: t } = e.getState();
203
- return bo(e) && n && !Object.values(t).some(Boolean);
204
- }, "getIsRankingRows"), fn = /* @__PURE__ */ i(({ row: e, table: n }) => {
205
- const { options: { enableRowSelection: t } } = n;
206
- return e.getIsSelected() || O(t, e) && e.getCanSelectSubRows() && e.getIsAllSubRowsSelected();
207
- }, "getIsRowSelected"), fo = /* @__PURE__ */ i(({ row: e, staticRowIndex: n = 0, table: t }) => (l, s) => {
208
- var a;
209
- const { getState: r, options: { enableBatchRowSelection: u, enableMultiRowSelection: g, enableRowPinning: p, manualPagination: m, rowPinningDisplayMode: b }, refs: { lastSelectedRowId: v } } = t, { pagination: { pageIndex: c, pageSize: d } } = r(), x = m ? 0 : d * c, h = fn({ row: e, table: t });
210
- e.toggleSelected(s ?? !h);
211
- const f = /* @__PURE__ */ new Set([e.id]);
212
- if (u && g && l.nativeEvent.shiftKey && v.current !== null) {
213
- const C = vo(t, !0), w = C.findIndex((F) => F.id === v.current);
214
- if (w !== -1) {
215
- const F = fn({
216
- row: C == null ? void 0 : C[w],
217
- table: t
218
- }), S = n + x, [P, R] = w < S ? [w, S] : [S, w];
219
- if (h !== F)
220
- for (let j = P; j <= R; j++)
221
- C[j].toggleSelected(!h), f.add(C[j].id);
222
- }
223
- }
224
- v.current = e.id, e.getCanSelectSubRows() && e.getIsAllSubRowsSelected() && ((a = e.subRows) === null || a === void 0 || a.forEach((C) => C.toggleSelected(!1))), p && (b != null && b.includes("select")) && f.forEach((C) => {
225
- t.getRow(C).pin(h ? !1 : b != null && b.includes("bottom") ? "bottom" : "top");
226
- });
227
- }, "getMRT_RowSelectionHandler"), Nn = /* @__PURE__ */ i(({ table: e }) => (n, t, l) => {
228
- const { options: { enableRowPinning: s, rowPinningDisplayMode: a, selectAllMode: r }, refs: { lastSelectedRowId: u } } = e;
229
- r === "all" || l ? e.toggleAllRowsSelected(t ?? n.target.checked) : e.toggleAllPageRowsSelected(t ?? n.target.checked), s && (a != null && a.includes("select")) && e.setRowPinning({ bottom: [], top: [] }), u.current = null;
230
- }, "getMRT_SelectAllHandler"), an = /* @__PURE__ */ i((e) => e.ctrlKey && navigator.platform.toLowerCase().includes("win") || e.metaKey && navigator.platform.toLowerCase().includes("mac"), "isWinCtrlMacMeta"), ho = /* @__PURE__ */ i(({ cell: e, table: n }) => {
231
- const { enableEditing: t } = n.options, { column: { columnDef: l }, row: s } = e;
232
- return !e.getIsPlaceholder() && O(t, s) && O(l.enableEditing, s) !== !1;
233
- }, "isCellEditable"), xo = /* @__PURE__ */ i(({ cell: e, table: n }) => {
234
- const { options: { editDisplayMode: t }, refs: { editInputRefs: l } } = n, { column: s } = e;
235
- ho({ cell: e, table: n }) && t === "cell" && (n.setEditingCell(e), queueMicrotask(() => {
236
- var a, r;
237
- const u = (a = l.current) === null || a === void 0 ? void 0 : a[s.id];
238
- u && (u.focus(), (r = u.select) === null || r === void 0 || r.call(u));
239
- }));
240
- }, "openEditingCell"), qn = /* @__PURE__ */ i(({ cell: e, cellElements: n, cellValue: t, containerElement: l, event: s, header: a, parentElement: r, table: u }) => {
241
- var g, p, m, b, v, c, d, x;
242
- if (!u.options.enableKeyboardShortcuts || s.isPropagationStopped())
243
- return;
244
- const h = s.currentTarget;
245
- if (t && an(s) && s.key === "c")
246
- navigator.clipboard.writeText(t);
247
- else if (["Enter", " "].includes(s.key))
248
- if (((g = e == null ? void 0 : e.column) === null || g === void 0 ? void 0 : g.id) === "mrt-row-select")
249
- s.preventDefault(), fo({
250
- row: e.row,
251
- table: u,
252
- //@ts-expect-error
253
- staticRowIndex: +s.target.getAttribute("data-index")
254
- })(s);
255
- else if (((p = a == null ? void 0 : a.column) === null || p === void 0 ? void 0 : p.id) === "mrt-row-select" && u.options.enableSelectAll)
256
- s.preventDefault(), Nn({
257
- table: u
258
- })(s);
259
- else if (((m = e == null ? void 0 : e.column) === null || m === void 0 ? void 0 : m.id) === "mrt-row-expand" && (e.row.getCanExpand() || !((v = (b = u.options).renderDetailPanel) === null || v === void 0) && v.call(b, { row: e.row, table: u })))
260
- s.preventDefault(), e.row.toggleExpanded();
261
- else if (((c = a == null ? void 0 : a.column) === null || c === void 0 ? void 0 : c.id) === "mrt-row-expand" && u.options.enableExpandAll)
262
- s.preventDefault(), u.toggleAllRowsExpanded();
263
- else if ((e == null ? void 0 : e.column.id) === "mrt-row-pin")
264
- s.preventDefault(), e.row.getIsPinned() ? e.row.pin(!1) : e.row.pin(!((d = u.options.rowPinningDisplayMode) === null || d === void 0) && d.includes("bottom") ? "bottom" : "top");
265
- else if (a && an(s)) {
266
- const f = h.querySelector(`button[aria-label="${u.options.localization.columnActions}"]`);
267
- f && f.click();
268
- } else !((x = a == null ? void 0 : a.column) === null || x === void 0) && x.getCanSort() && (s.preventDefault(), a.column.toggleSorting());
269
- else if ([
270
- "ArrowRight",
271
- "ArrowLeft",
272
- "ArrowUp",
273
- "ArrowDown",
274
- "Home",
275
- "End",
276
- "PageUp",
277
- "PageDown"
278
- ].includes(s.key)) {
279
- s.preventDefault();
280
- const f = r || h.closest("tr"), C = l || h.closest("table"), w = n || Array.from((C == null ? void 0 : C.querySelectorAll("th, td")) || []), F = w.indexOf(h), S = parseInt(h.getAttribute("data-index") || "0");
281
- let P;
282
- const R = /* @__PURE__ */ i((T, I) => {
283
- var k;
284
- const M = T === "c" ? f : T === "f" ? C == null ? void 0 : C.querySelector("tr") : (k = C == null ? void 0 : C.lastElementChild) === null || k === void 0 ? void 0 : k.lastElementChild, _ = Array.from((M == null ? void 0 : M.children) || []);
285
- return I === "f" ? _[0] : _[_.length - 1];
286
- }, "findEdgeCell"), j = /* @__PURE__ */ i((T, I) => {
287
- var k;
288
- const M = I === "t" ? C == null ? void 0 : C.querySelector("tr") : (k = C == null ? void 0 : C.lastElementChild) === null || k === void 0 ? void 0 : k.lastElementChild;
289
- return Array.from((M == null ? void 0 : M.children) || [])[T];
290
- }, "findBottomTopCell"), y = /* @__PURE__ */ i((T, I) => (I === "f" ? w.slice(F + 1) : w.slice(0, F).reverse()).find((M) => M.matches(`[data-index="${T}"]`)), "findAdjacentCell");
291
- switch (s.key) {
292
- case "ArrowRight":
293
- P = y(S + 1, "f");
294
- break;
295
- case "ArrowLeft":
296
- P = y(S - 1, "b");
297
- break;
298
- case "ArrowUp":
299
- P = y(S, "b");
300
- break;
301
- case "ArrowDown":
302
- P = y(S, "f");
303
- break;
304
- case "Home":
305
- P = R(an(s) ? "f" : "c", "f");
306
- break;
307
- case "End":
308
- P = R(an(s) ? "l" : "c", "l");
309
- break;
310
- case "PageUp":
311
- P = j(S, "t");
312
- break;
313
- case "PageDown":
314
- P = j(S, "b");
315
- break;
316
- }
317
- P && P.focus();
318
- }
319
- }, "cellKeyboardShortcuts");
320
- function Ue({ header: e, id: n, size: t, tableOptions: l }) {
321
- const { defaultDisplayColumn: s, displayColumnDefOptions: a, localization: r } = l;
322
- return Object.assign(Object.assign(Object.assign(Object.assign({}, s), { header: e ? r[e] : "", size: t }), a == null ? void 0 : a[n]), { id: n });
323
- }
324
- i(Ue, "defaultDisplayColumnProps");
325
- const Co = /* @__PURE__ */ i((e) => {
326
- const { enableRowPinning: n, rowPinningDisplayMode: t } = e;
327
- return !!(n && !(t != null && t.startsWith("select")));
328
- }, "showRowPinningColumn"), jo = /* @__PURE__ */ i((e) => {
329
- const { enableRowDragging: n, enableRowOrdering: t } = e;
330
- return !!(n || t);
331
- }, "showRowDragColumn"), Kn = /* @__PURE__ */ i((e) => {
332
- const { enableExpanding: n, enableGrouping: t, renderDetailPanel: l, state: { grouping: s } } = e;
333
- return !!(n || t && (s != null && s.length) || l);
334
- }, "showRowExpandColumn"), Un = /* @__PURE__ */ i((e) => {
335
- const { createDisplayMode: n, editDisplayMode: t, enableEditing: l, enableRowActions: s, state: { creatingRow: a } } = e;
336
- return !!(s || a && n === "row" || l && ["modal", "row"].includes(t ?? ""));
337
- }, "showRowActionsColumn"), wo = /* @__PURE__ */ i((e) => !!e.enableRowSelection, "showRowSelectionColumn"), yo = /* @__PURE__ */ i((e) => !!e.enableRowNumbers, "showRowNumbersColumn"), Ro = /* @__PURE__ */ i((e) => e.layoutMode === "grid-no-grow", "showRowSpacerColumn"), kl = /* @__PURE__ */ i((e) => [
338
- Co(e) && "mrt-row-pin",
339
- jo(e) && "mrt-row-drag",
340
- e.positionActionsColumn === "first" && Un(e) && "mrt-row-actions",
341
- e.positionExpandColumn === "first" && Kn(e) && "mrt-row-expand",
342
- wo(e) && "mrt-row-select",
343
- yo(e) && "mrt-row-numbers"
344
- ].filter(Boolean), "getLeadingDisplayColumnIds"), Al = /* @__PURE__ */ i((e) => [
345
- e.positionActionsColumn === "last" && Un(e) && "mrt-row-actions",
346
- e.positionExpandColumn === "last" && Kn(e) && "mrt-row-expand",
347
- Ro(e) && "mrt-row-spacer"
348
- ].filter(Boolean), "getTrailingDisplayColumnIds"), Zn = /* @__PURE__ */ i((e, n = !1) => {
349
- const { state: { columnOrder: t = [] } } = e, l = kl(e), s = Al(e), a = bn(e.columns).map((u) => Xe(u));
350
- let r = n ? a : Array.from(/* @__PURE__ */ new Set([...t, ...a]));
351
- return r = r.filter((u) => !l.includes(u) && !s.includes(u)), [
352
- ...l,
353
- ...r,
354
- ...s
355
- ];
356
- }, "getDefaultColumnOrderIds"), zl = Object.assign({}, Sl), So = /* @__PURE__ */ i((e, n, t, l) => {
357
- const s = nt(e.getValue(n), t, {
358
- threshold: tt.MATCHES
359
- });
360
- return l(s), s.passed;
361
- }, "fuzzy");
362
- So.autoRemove = (e) => !e;
363
- const Oo = /* @__PURE__ */ i((e, n, t) => {
364
- var l;
365
- return !!(!((l = e.getValue(n)) === null || l === void 0) && l.toString().toLowerCase().trim().includes(t.toString().toLowerCase().trim()));
366
- }, "contains");
367
- Oo.autoRemove = (e) => !e;
368
- const Fo = /* @__PURE__ */ i((e, n, t) => {
369
- var l;
370
- return !!(!((l = e.getValue(n)) === null || l === void 0) && l.toString().toLowerCase().trim().startsWith(t.toString().toLowerCase().trim()));
371
- }, "startsWith");
372
- Fo.autoRemove = (e) => !e;
373
- const Po = /* @__PURE__ */ i((e, n, t) => {
374
- var l;
375
- return !!(!((l = e.getValue(n)) === null || l === void 0) && l.toString().toLowerCase().trim().endsWith(t.toString().toLowerCase().trim()));
376
- }, "endsWith");
377
- Po.autoRemove = (e) => !e;
378
- const yn = /* @__PURE__ */ i((e, n, t) => {
379
- var l;
380
- return ((l = e.getValue(n)) === null || l === void 0 ? void 0 : l.toString().toLowerCase().trim()) === t.toString().toLowerCase().trim();
381
- }, "equals");
382
- yn.autoRemove = (e) => !e;
383
- const To = /* @__PURE__ */ i((e, n, t) => {
384
- var l;
385
- return ((l = e.getValue(n)) === null || l === void 0 ? void 0 : l.toString().toLowerCase().trim()) !== t.toString().toLowerCase().trim();
386
- }, "notEquals");
387
- To.autoRemove = (e) => !e;
388
- const Rn = /* @__PURE__ */ i((e, n, t) => {
389
- var l, s, a;
390
- return !isNaN(+t) && !isNaN(+e.getValue(n)) ? +((l = e.getValue(n)) !== null && l !== void 0 ? l : 0) > +t : ((a = (s = e.getValue(n)) !== null && s !== void 0 ? s : "") === null || a === void 0 ? void 0 : a.toString().toLowerCase().trim()) > t.toString().toLowerCase().trim();
391
- }, "greaterThan");
392
- Rn.autoRemove = (e) => !e;
393
- const Xn = /* @__PURE__ */ i((e, n, t) => yn(e, n, t) || Rn(e, n, t), "greaterThanOrEqualTo");
394
- Xn.autoRemove = (e) => !e;
395
- const Sn = /* @__PURE__ */ i((e, n, t) => {
396
- var l, s, a;
397
- return !isNaN(+t) && !isNaN(+e.getValue(n)) ? +((l = e.getValue(n)) !== null && l !== void 0 ? l : 0) < +t : ((a = (s = e.getValue(n)) !== null && s !== void 0 ? s : "") === null || a === void 0 ? void 0 : a.toString().toLowerCase().trim()) < t.toString().toLowerCase().trim();
398
- }, "lessThan");
399
- Sn.autoRemove = (e) => !e;
400
- const Yn = /* @__PURE__ */ i((e, n, t) => yn(e, n, t) || Sn(e, n, t), "lessThanOrEqualTo");
401
- Yn.autoRemove = (e) => !e;
402
- const Io = /* @__PURE__ */ i((e, n, t) => (["", void 0].includes(t[0]) || Rn(e, n, t[0])) && (!isNaN(+t[0]) && !isNaN(+t[1]) && +t[0] > +t[1] || ["", void 0].includes(t[1]) || Sn(e, n, t[1])), "between");
403
- Io.autoRemove = (e) => !e;
404
- const Mo = /* @__PURE__ */ i((e, n, t) => (["", void 0].includes(t[0]) || Xn(e, n, t[0])) && (!isNaN(+t[0]) && !isNaN(+t[1]) && +t[0] > +t[1] || ["", void 0].includes(t[1]) || Yn(e, n, t[1])), "betweenInclusive");
405
- Mo.autoRemove = (e) => !e;
406
- const _o = /* @__PURE__ */ i((e, n, t) => {
407
- var l;
408
- return !(!((l = e.getValue(n)) === null || l === void 0) && l.toString().trim());
409
- }, "empty");
410
- _o.autoRemove = (e) => !e;
411
- const Do = /* @__PURE__ */ i((e, n, t) => {
412
- var l;
413
- return !!(!((l = e.getValue(n)) === null || l === void 0) && l.toString().trim());
414
- }, "notEmpty");
415
- Do.autoRemove = (e) => !e;
416
- const El = Object.assign(Object.assign({}, Ol), {
417
- between: Io,
418
- betweenInclusive: Mo,
419
- contains: Oo,
420
- empty: _o,
421
- endsWith: Po,
422
- equals: yn,
423
- fuzzy: So,
424
- greaterThan: Rn,
425
- greaterThanOrEqualTo: Xn,
426
- lessThan: Sn,
427
- lessThanOrEqualTo: Yn,
428
- notEmpty: Do,
429
- notEquals: To,
430
- startsWith: Fo
431
- });
432
- function L(e, n) {
433
- var t = {};
434
- for (var l in e) Object.prototype.hasOwnProperty.call(e, l) && n.indexOf(l) < 0 && (t[l] = e[l]);
435
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
436
- for (var s = 0, l = Object.getOwnPropertySymbols(e); s < l.length; s++)
437
- n.indexOf(l[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, l[s]) && (t[l[s]] = e[l[s]]);
438
- return t;
439
- }
440
- i(L, "__rest");
441
- const ko = /* @__PURE__ */ i((e) => {
442
- var { row: n, table: t, variant: l = "icon" } = e, s = L(e, ["row", "table", "variant"]);
443
- const { getState: a, options: { icons: { CancelIcon: r, SaveIcon: u }, localization: g, onCreatingRowCancel: p, onCreatingRowSave: m, onEditingRowCancel: b, onEditingRowSave: v }, refs: { editInputRefs: c }, setCreatingRow: d, setEditingRow: x } = t, { creatingRow: h, editingRow: f, isSaving: C } = a(), w = (h == null ? void 0 : h.id) === n.id, F = (f == null ? void 0 : f.id) === n.id, S = /* @__PURE__ */ i(() => {
444
- w ? (p == null || p({ row: n, table: t }), d(null)) : F && (b == null || b({ row: n, table: t }), x(null)), n._valuesCache = {};
445
- }, "handleCancel"), P = /* @__PURE__ */ i(() => {
446
- var R, j;
447
- (j = Object.values((R = c.current) !== null && R !== void 0 ? R : {}).filter((y) => {
448
- var T, I;
449
- return n.id === ((I = (T = y == null ? void 0 : y.name) === null || T === void 0 ? void 0 : T.split("_")) === null || I === void 0 ? void 0 : I[0]);
450
- })) === null || j === void 0 || j.forEach((y) => {
451
- y.value !== void 0 && Object.hasOwn(n == null ? void 0 : n._valuesCache, y.name) && (n._valuesCache[y.name] = y.value);
452
- }), w ? m == null || m({
453
- exitCreatingMode: /* @__PURE__ */ i(() => d(null), "exitCreatingMode"),
454
- row: n,
455
- table: t,
456
- values: n._valuesCache
457
- }) : F && (v == null || v({
458
- exitEditingMode: /* @__PURE__ */ i(() => x(null), "exitEditingMode"),
459
- row: n,
460
- table: t,
461
- values: n == null ? void 0 : n._valuesCache
462
- }));
463
- }, "handleSubmitRow");
464
- return o.jsx(ae, { onClick: /* @__PURE__ */ i((R) => R.stopPropagation(), "onClick"), sx: /* @__PURE__ */ i((R) => Object.assign({ display: "flex", gap: "0.75rem" }, O(s == null ? void 0 : s.sx, R)), "sx"), children: l === "icon" ? o.jsxs(o.Fragment, { children: [o.jsx(de, { title: g.cancel, children: o.jsx(ue, { "aria-label": g.cancel, onClick: S, children: o.jsx(r, {}) }) }), (w && m || F && v) && o.jsx(de, { title: g.save, children: o.jsx(ue, { "aria-label": g.save, color: "info", disabled: C, onClick: P, children: C ? o.jsx(Bn, { size: 18 }) : o.jsx(u, {}) }) })] }) : o.jsxs(o.Fragment, { children: [o.jsx(Ne, { onClick: S, sx: { minWidth: "100px" }, children: g.cancel }), o.jsxs(Ne, { disabled: C, onClick: P, sx: { minWidth: "100px" }, variant: "contained", children: [C && o.jsx(Bn, { color: "inherit", size: 18 }), g.save] })] }) });
465
- }, "MRT_EditActionButtons"), en = /* @__PURE__ */ i((e) => e.replace(/[^a-zA-Z0-9]/g, "_"), "parseCSSVarId"), Bl = /* @__PURE__ */ i((e, n) => {
466
- var t;
467
- const l = O(e, n), s = (t = l == null ? void 0 : l.baseBackgroundColor) !== null && t !== void 0 ? t : n.palette.mode === "dark" ? un(n.palette.background.default, 0.05) : n.palette.background.default;
468
- return Object.assign({ baseBackgroundColor: s, cellNavigationOutlineColor: n.palette.primary.main, draggingBorderColor: n.palette.primary.main, matchHighlightColor: n.palette.mode === "dark" ? $n(n.palette.warning.dark, 0.25) : un(n.palette.warning.light, 0.5), menuBackgroundColor: un(s, 0.07), pinnedRowBackgroundColor: Ge(n.palette.primary.main, 0.1), selectedRowBackgroundColor: Ge(n.palette.primary.main, 0.2) }, l);
469
- }, "getMRTTheme"), Vn = {
470
- content: '""',
471
- height: "100%",
472
- left: 0,
473
- position: "absolute",
474
- top: 0,
475
- width: "100%",
476
- zIndex: -1
477
- }, Ao = /* @__PURE__ */ i(({ column: e, table: n, theme: t }) => {
478
- const { baseBackgroundColor: l } = n.options.mrtTheme, s = e == null ? void 0 : e.getIsPinned();
479
- return {
480
- '&[data-pinned="true"]': {
481
- "&:before": Object.assign({ backgroundColor: Ge($n(l, t.palette.mode === "dark" ? 0.05 : 0.01), 0.97), boxShadow: e ? s === "left" && e.getIsLastColumn(s) ? `-4px 0 4px -4px ${Ge(t.palette.grey[700], 0.5)} inset` : s === "right" && e.getIsFirstColumn(s) ? `4px 0 4px -4px ${Ge(t.palette.grey[700], 0.5)} inset` : void 0 : void 0 }, Vn)
482
- }
483
- };
484
- }, "getCommonPinnedCellStyles"), Qn = /* @__PURE__ */ i(({ column: e, header: n, table: t, tableCellProps: l, theme: s }) => {
485
- var a, r, u, g, p, m;
486
- const { getState: b, options: { enableColumnVirtualization: v, layoutMode: c } } = t, { draggingColumn: d } = b(), { columnDef: x } = e, { columnDefType: h } = x, f = x.columnDefType !== "group" && e.getIsPinned(), C = {
487
- minWidth: `max(calc(var(--${n ? "header" : "col"}-${en((a = n == null ? void 0 : n.id) !== null && a !== void 0 ? a : e.id)}-size) * 1px), ${(r = x.minSize) !== null && r !== void 0 ? r : 30}px)`,
488
- width: `calc(var(--${n ? "header" : "col"}-${en((u = n == null ? void 0 : n.id) !== null && u !== void 0 ? u : e.id)}-size) * 1px)`
489
- };
490
- c === "grid" ? C.flex = `${[0, !1].includes(x.grow) ? 0 : `var(--${n ? "header" : "col"}-${en((g = n == null ? void 0 : n.id) !== null && g !== void 0 ? g : e.id)}-size)`} 0 auto` : c === "grid-no-grow" && (C.flex = `${+(x.grow || 0)} 0 auto`);
491
- const w = f ? Object.assign(Object.assign({}, Ao({ column: e, table: t, theme: s })), { left: f === "left" ? `${e.getStart("left")}px` : void 0, opacity: 0.97, position: "sticky", right: f === "right" ? `${e.getAfter("right")}px` : void 0 }) : {};
492
- return Object.assign(Object.assign(Object.assign({ backgroundColor: "inherit", backgroundImage: "inherit", display: c != null && c.startsWith("grid") ? "flex" : void 0, justifyContent: h === "group" ? "center" : c != null && c.startsWith("grid") ? l.align : void 0, opacity: ((p = t.getState().draggingColumn) === null || p === void 0 ? void 0 : p.id) === e.id || ((m = t.getState().hoveredColumn) === null || m === void 0 ? void 0 : m.id) === e.id ? 0.5 : 1, position: "relative", transition: v ? "none" : "padding 150ms ease-in-out", zIndex: e.getIsResizing() || (d == null ? void 0 : d.id) === e.id ? 2 : h !== "group" && f ? 1 : 0, "&:focus-visible": {
493
- outline: `2px solid ${t.options.mrtTheme.cellNavigationOutlineColor}`,
494
- outlineOffset: "-2px"
495
- } }, w), C), O(l == null ? void 0 : l.sx, s));
496
- }, "getCommonMRTCellStyles"), zo = /* @__PURE__ */ i(({ table: e }) => ({
497
- alignItems: "flex-start",
498
- backgroundColor: e.options.mrtTheme.baseBackgroundColor,
499
- display: "grid",
500
- flexWrap: "wrap-reverse",
501
- minHeight: "3.5rem",
502
- overflow: "hidden",
503
- position: "relative",
504
- transition: "all 150ms ease-in-out",
505
- zIndex: 1
506
- }), "getCommonToolbarStyles"), dn = /* @__PURE__ */ i((e) => e.direction === "rtl" ? { style: { transform: "scaleX(-1)" } } : void 0, "flipIconStyles"), Be = /* @__PURE__ */ i((e) => ({
507
- disableInteractive: !0,
508
- enterDelay: 1e3,
509
- enterNextDelay: 1e3,
510
- placement: e
511
- }), "getCommonTooltipProps"), Pe = /* @__PURE__ */ i((e) => {
512
- var { icon: n, label: t, onOpenSubMenu: l, table: s } = e, a = L(e, ["icon", "label", "onOpenSubMenu", "table"]);
513
- const { options: { icons: { ArrowRightIcon: r } } } = s;
514
- return o.jsxs(Ye, Object.assign({ sx: {
515
- alignItems: "center",
516
- justifyContent: "space-between",
517
- minWidth: "120px",
518
- my: 0,
519
- py: "6px"
520
- }, tabIndex: 0 }, a, { children: [o.jsxs(ae, { sx: {
521
- alignItems: "center",
522
- display: "flex"
523
- }, children: [o.jsx(lt, { children: n }), t] }), l && o.jsx(ue, { onClick: l, onMouseEnter: l, size: "small", sx: { p: 0 }, children: o.jsx(r, {}) })] }));
524
- }, "MRT_ActionMenuItem"), Hl = /* @__PURE__ */ i((e) => {
525
- var { anchorEl: n, handleEdit: t, row: l, setAnchorEl: s, staticRowIndex: a, table: r } = e, u = L(e, ["anchorEl", "handleEdit", "row", "setAnchorEl", "staticRowIndex", "table"]);
526
- const { getState: g, options: { editDisplayMode: p, enableEditing: m, icons: { EditIcon: b }, localization: v, mrtTheme: { menuBackgroundColor: c }, renderRowActionMenuItems: d } } = r, { density: x } = g(), h = ce(() => {
527
- const f = [], C = O(m, l) && ["modal", "row"].includes(p) && o.jsx(Pe, { icon: o.jsx(b, {}), label: v.edit, onClick: t, table: r }, "edit");
528
- C && f.push(C);
529
- const w = d == null ? void 0 : d({
530
- closeMenu: /* @__PURE__ */ i(() => s(null), "closeMenu"),
531
- row: l,
532
- staticRowIndex: a,
533
- table: r
534
- });
535
- return w != null && w.length && f.push(...w), f;
536
- }, [d, l, a, r]);
537
- return h.length ? o.jsx(on, Object.assign({ MenuListProps: {
538
- dense: x === "compact",
539
- sx: {
540
- backgroundColor: c
541
- }
542
- }, anchorEl: n, disableScrollLock: !0, onClick: /* @__PURE__ */ i((f) => f.stopPropagation(), "onClick"), onClose: /* @__PURE__ */ i(() => s(null), "onClose"), open: !!n }, u, { children: h })) : null;
543
- }, "MRT_RowActionMenu"), to = {
544
- "&:hover": {
545
- opacity: 1
546
- },
547
- height: "2rem",
548
- ml: "10px",
549
- opacity: 0.5,
550
- transition: "opacity 150ms",
551
- width: "2rem"
552
- }, Vl = /* @__PURE__ */ i((e) => {
553
- var n, { cell: t, row: l, staticRowIndex: s, table: a } = e, r = L(e, ["cell", "row", "staticRowIndex", "table"]);
554
- const { getState: u, options: { createDisplayMode: g, editDisplayMode: p, enableEditing: m, icons: { EditIcon: b, MoreHorizIcon: v }, localization: c, renderRowActionMenuItems: d, renderRowActions: x }, setEditingRow: h } = a, { creatingRow: f, editingRow: C } = u(), w = (f == null ? void 0 : f.id) === l.id, F = (C == null ? void 0 : C.id) === l.id, S = w && g === "row" || F && p === "row", [P, R] = oe(null), j = /* @__PURE__ */ i((T) => {
555
- T.stopPropagation(), T.preventDefault(), R(T.currentTarget);
556
- }, "handleOpenRowActionMenu"), y = /* @__PURE__ */ i((T) => {
557
- T.stopPropagation(), h(Object.assign({}, l)), R(null);
558
- }, "handleStartEditMode");
559
- return o.jsx(o.Fragment, { children: x && !S ? x({ cell: t, row: l, staticRowIndex: s, table: a }) : S ? o.jsx(ko, { row: l, table: a }) : !d && O(m, l) && ["modal", "row"].includes(p) ? o.jsx(de, { placement: "right", title: c.edit, children: o.jsx(ue, Object.assign({ "aria-label": c.edit, onClick: y, sx: to }, r, { children: o.jsx(b, {}) })) }) : !((n = d == null ? void 0 : d({
560
- row: l,
561
- staticRowIndex: s,
562
- table: a
563
- })) === null || n === void 0) && n.length ? o.jsxs(o.Fragment, { children: [o.jsx(de, Object.assign({}, Be(), { title: c.rowActions, children: o.jsx(ue, Object.assign({ "aria-label": c.rowActions, onClick: j, size: "small", sx: to }, r, { children: o.jsx(v, {}) })) })), o.jsx(Hl, { anchorEl: P, handleEdit: y, row: l, setAnchorEl: R, staticRowIndex: s, table: a })] }) : null });
564
- }, "MRT_ToggleRowActionMenuButton"), Ll = /* @__PURE__ */ i((e) => Object.assign({ Cell: /* @__PURE__ */ i(({ cell: n, row: t, staticRowIndex: l, table: s }) => o.jsx(Vl, { cell: n, row: t, staticRowIndex: l, table: s }), "Cell") }, Ue({
565
- header: "actions",
566
- id: "mrt-row-actions",
567
- size: 70,
568
- tableOptions: e
569
- })), "getMRT_RowActionsColumnDef"), Jn = /* @__PURE__ */ i((e) => {
570
- var n, t, { location: l, table: s } = e, a = L(e, ["location", "table"]);
571
- const { options: { icons: { DragHandleIcon: r }, localization: u } } = s;
572
- return o.jsx(de, Object.assign({}, Be("top"), { title: (n = a == null ? void 0 : a.title) !== null && n !== void 0 ? n : u.move, children: o.jsx(ue, Object.assign({ "aria-label": (t = a.title) !== null && t !== void 0 ? t : u.move, disableRipple: !0, draggable: "true", size: "small" }, a, { onClick: /* @__PURE__ */ i((g) => {
573
- var p;
574
- g.stopPropagation(), (p = a == null ? void 0 : a.onClick) === null || p === void 0 || p.call(a, g);
575
- }, "onClick"), sx: /* @__PURE__ */ i((g) => Object.assign({ "&:active": {
576
- cursor: "grabbing"
577
- }, "&:hover": {
578
- backgroundColor: "transparent",
579
- opacity: 1
580
- }, cursor: "grab", m: "0 -0.1rem", opacity: l === "row" ? 1 : 0.5, p: "2px", transition: "all 150ms ease-in-out" }, O(a == null ? void 0 : a.sx, g)), "sx"), title: void 0, children: o.jsx(r, {}) })) }));
581
- }, "MRT_GrabHandleButton"), Gl = /* @__PURE__ */ i((e) => {
582
- var { row: n, rowRef: t, table: l } = e, s = L(e, ["row", "rowRef", "table"]);
583
- const { options: { muiRowDragHandleProps: a } } = l, r = Object.assign(Object.assign({}, O(a, {
584
- row: n,
585
- table: l
586
- })), s), u = /* @__PURE__ */ i((p) => {
587
- var m;
588
- (m = r == null ? void 0 : r.onDragStart) === null || m === void 0 || m.call(r, p);
589
- try {
590
- p.dataTransfer.setDragImage(t.current, 0, 0);
591
- } catch (b) {
592
- console.error(b);
593
- }
594
- l.setDraggingRow(n);
595
- }, "handleDragStart"), g = /* @__PURE__ */ i((p) => {
596
- var m;
597
- (m = r == null ? void 0 : r.onDragEnd) === null || m === void 0 || m.call(r, p), l.setDraggingRow(null), l.setHoveredRow(null);
598
- }, "handleDragEnd");
599
- return o.jsx(Jn, Object.assign({}, r, { location: "row", onDragEnd: g, onDragStart: u, table: l }));
600
- }, "MRT_TableBodyRowGrabHandle"), $l = /* @__PURE__ */ i((e) => Object.assign({ Cell: /* @__PURE__ */ i(({ row: n, rowRef: t, table: l }) => o.jsx(Gl, { row: n, rowRef: t, table: l }), "Cell"), grow: !1 }, Ue({
601
- header: "move",
602
- id: "mrt-row-drag",
603
- size: 60,
604
- tableOptions: e
605
- })), "getMRT_RowDragColumnDef"), Wl = /* @__PURE__ */ i((e) => {
606
- var n, t, { table: l } = e, s = L(e, ["table"]);
607
- const { getCanSomeRowsExpand: a, getIsAllRowsExpanded: r, getIsSomeRowsExpanded: u, getState: g, options: { icons: { KeyboardDoubleArrowDownIcon: p }, localization: m, muiExpandAllButtonProps: b, renderDetailPanel: v }, toggleAllRowsExpanded: c } = l, { density: d, isLoading: x } = g(), h = Object.assign(Object.assign({}, O(b, {
608
- table: l
609
- })), s), f = r();
610
- return o.jsx(de, Object.assign({}, Be(), { title: (n = h == null ? void 0 : h.title) !== null && n !== void 0 ? n : f ? m.collapseAll : m.expandAll, children: o.jsx("span", { children: o.jsx(ue, Object.assign({ "aria-label": m.expandAll, disabled: x || !v && !a(), onClick: /* @__PURE__ */ i(() => c(!f), "onClick") }, h, { sx: /* @__PURE__ */ i((C) => Object.assign({ height: d === "compact" ? "1.75rem" : "2.25rem", mt: d !== "compact" ? "-0.25rem" : void 0, width: d === "compact" ? "1.75rem" : "2.25rem" }, O(h == null ? void 0 : h.sx, C)), "sx"), title: void 0, children: (t = h == null ? void 0 : h.children) !== null && t !== void 0 ? t : o.jsx(p, { style: {
611
- transform: `rotate(${f ? -180 : u() ? -90 : 0}deg)`,
612
- transition: "transform 150ms"
613
- } }) })) }) }));
614
- }, "MRT_ExpandAllButton"), lo = /* @__PURE__ */ i(({ row: e, staticRowIndex: n, table: t }) => {
615
- var l, s;
616
- const a = qe(), { getState: r, options: { icons: { ExpandMoreIcon: u }, localization: g, muiExpandButtonProps: p, positionExpandColumn: m, renderDetailPanel: b } } = t, { density: v } = r(), c = O(p, {
617
- row: e,
618
- staticRowIndex: n,
619
- table: t
620
- }), d = e.getCanExpand(), x = e.getIsExpanded(), h = /* @__PURE__ */ i((C) => {
621
- var w;
622
- C.stopPropagation(), e.toggleExpanded(), (w = c == null ? void 0 : c.onClick) === null || w === void 0 || w.call(c, C);
623
- }, "handleToggleExpand"), f = !!(b != null && b({ row: e, table: t }));
624
- return o.jsx(de, Object.assign({ disableHoverListener: !d && !f }, Be(), { title: (l = c == null ? void 0 : c.title) !== null && l !== void 0 ? l : x ? g.collapse : g.expand, children: o.jsx("span", { children: o.jsx(ue, Object.assign({ "aria-label": g.expand, disabled: !d && !f }, c, { onClick: h, sx: /* @__PURE__ */ i((C) => Object.assign({ height: v === "compact" ? "1.75rem" : "2.25rem", opacity: !d && !f ? 0.3 : 1, [C.direction === "rtl" || m === "last" ? "mr" : "ml"]: `${e.depth * 16}px`, width: v === "compact" ? "1.75rem" : "2.25rem" }, O(c == null ? void 0 : c.sx, C)), "sx"), title: void 0, children: (s = c == null ? void 0 : c.children) !== null && s !== void 0 ? s : o.jsx(u, { style: {
625
- transform: `rotate(${!d && !b ? m === "last" || a.direction === "rtl" ? 90 : -90 : x ? -180 : 0}deg)`,
626
- transition: "transform 150ms"
627
- } }) })) }) }));
628
- }, "MRT_ExpandButton"), Nl = /* @__PURE__ */ i((e) => {
629
- var n;
630
- const { defaultColumn: t, enableExpandAll: l, groupedColumnMode: s, positionExpandColumn: a, renderDetailPanel: r, state: { grouping: u } } = e, g = a === "last" ? {
631
- align: "right"
632
- } : void 0;
633
- return Object.assign({ Cell: /* @__PURE__ */ i(({ cell: p, column: m, row: b, staticRowIndex: v, table: c }) => {
634
- var d, x, h;
635
- const f = { row: b, staticRowIndex: v, table: c }, C = (d = b.subRows) === null || d === void 0 ? void 0 : d.length;
636
- return s === "remove" && b.groupingColumnId ? o.jsxs(nn, { alignItems: "center", flexDirection: "row", gap: "0.25rem", children: [o.jsx(lo, Object.assign({}, f)), o.jsx(de, Object.assign({}, Be("right"), { title: c.getColumn(b.groupingColumnId).columnDef.header, children: o.jsx("span", { children: b.groupingValue }) })), !!C && o.jsxs("span", { children: ["(", C, ")"] })] }) : o.jsxs(o.Fragment, { children: [o.jsx(lo, Object.assign({}, f)), (h = (x = m.columnDef).GroupedCell) === null || h === void 0 ? void 0 : h.call(x, { cell: p, column: m, row: b, table: c })] });
637
- }, "Cell"), Header: l ? ({ table: p }) => {
638
- var m;
639
- return o.jsxs(o.Fragment, { children: [o.jsx(Wl, { table: p }), s === "remove" && ((m = u == null ? void 0 : u.map((b) => p.getColumn(b).columnDef.header)) === null || m === void 0 ? void 0 : m.join(", "))] });
640
- } : void 0, muiTableBodyCellProps: g, muiTableHeadCellProps: g }, Ue({
641
- header: "expand",
642
- id: "mrt-row-expand",
643
- size: s === "remove" ? (n = t == null ? void 0 : t.size) !== null && n !== void 0 ? n : 180 : r ? l ? 60 : 70 : 100,
644
- tableOptions: e
645
- }));
646
- }, "getMRT_RowExpandColumnDef"), ql = /* @__PURE__ */ i((e) => {
647
- const { localization: n, rowNumberDisplayMode: t } = e, { pagination: { pageIndex: l, pageSize: s } } = e.state;
648
- return Object.assign({ Cell: /* @__PURE__ */ i(({ row: a, staticRowIndex: r }) => {
649
- var u;
650
- return ((u = t === "static" ? (r || 0) + (s || 0) * (l || 0) : a.index) !== null && u !== void 0 ? u : 0) + 1;
651
- }, "Cell"), Header: /* @__PURE__ */ i(() => n.rowNumber, "Header"), grow: !1 }, Ue({
652
- header: "rowNumbers",
653
- id: "mrt-row-numbers",
654
- size: 50,
655
- tableOptions: e
656
- }));
657
- }, "getMRT_RowNumbersColumnDef"), _n = /* @__PURE__ */ i((e) => {
658
- var { pinningPosition: n, row: t, table: l } = e, s = L(e, ["pinningPosition", "row", "table"]);
659
- const { options: { icons: { CloseIcon: a, PushPinIcon: r }, localization: u, rowPinningDisplayMode: g } } = l, p = t.getIsPinned(), [m, b] = oe(!1), v = /* @__PURE__ */ i((c) => {
660
- b(!1), c.stopPropagation(), t.pin(p ? !1 : n);
661
- }, "handleTogglePin");
662
- return o.jsx(de, Object.assign({}, Be(), { open: m, title: p ? u.unpin : u.pin, children: o.jsx(ue, Object.assign({ "aria-label": u.pin, onBlur: /* @__PURE__ */ i(() => b(!1), "onBlur"), onClick: v, onFocus: /* @__PURE__ */ i(() => b(!0), "onFocus"), onMouseEnter: /* @__PURE__ */ i(() => b(!0), "onMouseEnter"), onMouseLeave: /* @__PURE__ */ i(() => b(!1), "onMouseLeave"), size: "small" }, s, { sx: /* @__PURE__ */ i((c) => Object.assign({ height: "24px", width: "24px" }, O(s == null ? void 0 : s.sx, c)), "sx"), children: p ? o.jsx(a, {}) : o.jsx(r, { fontSize: "small", style: {
663
- transform: `rotate(${g === "sticky" ? 135 : n === "top" ? 180 : 0}deg)`
664
- } }) })) }));
665
- }, "MRT_RowPinButton"), Kl = /* @__PURE__ */ i((e) => {
666
- var { row: n, table: t } = e, l = L(e, ["row", "table"]);
667
- const { getState: s, options: { enableRowPinning: a, rowPinningDisplayMode: r } } = t, { density: u } = s();
668
- if (!O(a, n))
669
- return null;
670
- const p = Object.assign({
671
- row: n,
672
- table: t
673
- }, l);
674
- return r === "top-and-bottom" && !n.getIsPinned() ? o.jsxs(ae, { sx: {
675
- display: "flex",
676
- flexDirection: u === "compact" ? "row" : "column"
677
- }, children: [o.jsx(_n, Object.assign({ pinningPosition: "top" }, p)), o.jsx(_n, Object.assign({ pinningPosition: "bottom" }, p))] }) : o.jsx(_n, Object.assign({ pinningPosition: r === "bottom" ? "bottom" : "top" }, p));
678
- }, "MRT_TableBodyRowPinButton"), Ul = /* @__PURE__ */ i((e) => Object.assign({ Cell: /* @__PURE__ */ i(({ row: n, table: t }) => o.jsx(Kl, { row: n, table: t }), "Cell"), grow: !1 }, Ue({
679
- header: "pin",
680
- id: "mrt-row-pin",
681
- size: 60,
682
- tableOptions: e
683
- })), "getMRT_RowPinningColumnDef"), Ln = /* @__PURE__ */ i((e) => {
684
- var n, { row: t, staticRowIndex: l, table: s } = e, a = L(e, ["row", "staticRowIndex", "table"]);
685
- const { getState: r, options: { enableMultiRowSelection: u, localization: g, muiSelectAllCheckboxProps: p, muiSelectCheckboxProps: m, selectAllMode: b } } = s, { density: v, isLoading: c } = r(), d = !t, x = d ? b === "page" ? s.getIsAllPageRowsSelected() : s.getIsAllRowsSelected() : void 0, h = d ? x : fn({ row: t, table: s }), f = Object.assign(Object.assign({}, d ? O(p, { table: s }) : O(m, {
686
- row: t,
687
- staticRowIndex: l,
688
- table: s
689
- })), a), C = t ? fo({
690
- row: t,
691
- staticRowIndex: l,
692
- table: s
693
- }) : void 0, w = Nn({ table: s }), F = Object.assign(Object.assign({ "aria-label": d ? g.toggleSelectAll : g.toggleSelectRow, checked: h, disabled: c || t && !t.getCanSelect() || (t == null ? void 0 : t.id) === "mrt-row-create", inputProps: {
694
- "aria-label": d ? g.toggleSelectAll : g.toggleSelectRow
695
- }, onChange: /* @__PURE__ */ i((S) => {
696
- S.stopPropagation(), d ? w(S) : C(S);
697
- }, "onChange"), size: v === "compact" ? "small" : "medium" }, f), { onClick: /* @__PURE__ */ i((S) => {
698
- var P;
699
- S.stopPropagation(), (P = f == null ? void 0 : f.onClick) === null || P === void 0 || P.call(f, S);
700
- }, "onClick"), sx: /* @__PURE__ */ i((S) => Object.assign({ height: v === "compact" ? "1.75rem" : "2.5rem", m: v !== "compact" ? "-0.4rem" : void 0, width: v === "compact" ? "1.75rem" : "2.5rem", zIndex: 0 }, O(f == null ? void 0 : f.sx, S)), "sx"), title: void 0 });
701
- return o.jsx(de, Object.assign({}, Be(), { title: (n = f == null ? void 0 : f.title) !== null && n !== void 0 ? n : d ? g.toggleSelectAll : g.toggleSelectRow, children: u === !1 ? o.jsx(it, Object.assign({}, F)) : o.jsx(Wn, Object.assign({ indeterminate: !h && d ? s.getIsSomeRowsSelected() : (t == null ? void 0 : t.getIsSomeSelected()) && t.getCanSelectSubRows() }, F)) }));
702
- }, "MRT_SelectCheckbox"), Zl = /* @__PURE__ */ i((e) => {
703
- const { enableMultiRowSelection: n, enableSelectAll: t } = e;
704
- return Object.assign({ Cell: /* @__PURE__ */ i(({ row: l, staticRowIndex: s, table: a }) => o.jsx(Ln, { row: l, staticRowIndex: s, table: a }), "Cell"), Header: t && n ? ({ table: l }) => o.jsx(Ln, { table: l }) : void 0, grow: !1 }, Ue({
705
- header: "select",
706
- id: "mrt-row-select",
707
- size: t ? 60 : 70,
708
- tableOptions: e
709
- }));
710
- }, "getMRT_RowSelectColumnDef"), Xl = {
711
- ArrowDownwardIcon: st,
712
- ArrowRightIcon: rt,
713
- CancelIcon: at,
714
- ChevronLeftIcon: dt,
715
- ChevronRightIcon: ct,
716
- ClearAllIcon: ut,
717
- CloseIcon: gt,
718
- ContentCopy: pt,
719
- DensityLargeIcon: mt,
720
- DensityMediumIcon: vt,
721
- DensitySmallIcon: bt,
722
- DragHandleIcon: ft,
723
- DynamicFeedIcon: ht,
724
- EditIcon: xt,
725
- ExpandMoreIcon: Ct,
726
- FilterAltIcon: jt,
727
- FilterListIcon: wt,
728
- FilterListOffIcon: yt,
729
- FirstPageIcon: Rt,
730
- FullscreenExitIcon: Ot,
731
- FullscreenIcon: St,
732
- KeyboardDoubleArrowDownIcon: Ft,
733
- LastPageIcon: Pt,
734
- MoreHorizIcon: Tt,
735
- MoreVertIcon: It,
736
- PushPinIcon: Mt,
737
- RestartAltIcon: _t,
738
- SaveIcon: Dt,
739
- SearchIcon: kt,
740
- SearchOffIcon: At,
741
- SortIcon: zt,
742
- SyncAltIcon: Et,
743
- ViewColumnIcon: Bt,
744
- VisibilityOffIcon: Ht
745
- }, Yl = {
746
- language: "en",
747
- actions: "Actions",
748
- and: "and",
749
- cancel: "Cancel",
750
- changeFilterMode: "Change filter mode",
751
- changeSearchMode: "Change search mode",
752
- clearFilter: "Clear filter",
753
- clearSearch: "Clear search",
754
- clearSelection: "Clear selection",
755
- clearSort: "Clear sort",
756
- clickToCopy: "Click to copy",
757
- copy: "Copy",
758
- collapse: "Collapse",
759
- collapseAll: "Collapse all",
760
- columnActions: "Column Actions",
761
- copiedToClipboard: "Copied to clipboard",
762
- dropToGroupBy: "Drop to group by {column}",
763
- edit: "Edit",
764
- expand: "Expand",
765
- expandAll: "Expand all",
766
- filterArrIncludes: "Includes",
767
- filterArrIncludesAll: "Includes all",
768
- filterArrIncludesSome: "Includes",
769
- filterBetween: "Between",
770
- filterBetweenInclusive: "Between Inclusive",
771
- filterByColumn: "Filter by {column}",
772
- filterContains: "Contains",
773
- filterEmpty: "Empty",
774
- filterEndsWith: "Ends With",
775
- filterEquals: "Equals",
776
- filterEqualsString: "Equals",
777
- filterFuzzy: "Fuzzy",
778
- filterGreaterThan: "Greater Than",
779
- filterGreaterThanOrEqualTo: "Greater Than Or Equal To",
780
- filterInNumberRange: "Between",
781
- filterIncludesString: "Contains",
782
- filterIncludesStringSensitive: "Contains",
783
- filterLessThan: "Less Than",
784
- filterLessThanOrEqualTo: "Less Than Or Equal To",
785
- filterMode: "Filter Mode: {filterType}",
786
- filterNotEmpty: "Not Empty",
787
- filterNotEquals: "Not Equals",
788
- filterStartsWith: "Starts With",
789
- filterWeakEquals: "Equals",
790
- filteringByColumn: "Filtering by {column} - {filterType} {filterValue}",
791
- goToFirstPage: "Go to first page",
792
- goToLastPage: "Go to last page",
793
- goToNextPage: "Go to next page",
794
- goToPreviousPage: "Go to previous page",
795
- grab: "Grab",
796
- groupByColumn: "Group by {column}",
797
- groupedBy: "Grouped by ",
798
- hideAll: "Hide all",
799
- hideColumn: "Hide {column} column",
800
- max: "Max",
801
- min: "Min",
802
- move: "Move",
803
- noRecordsToDisplay: "No records to display",
804
- noResultsFound: "No results found",
805
- of: "of",
806
- or: "or",
807
- pin: "Pin",
808
- pinToLeft: "Pin to left",
809
- pinToRight: "Pin to right",
810
- resetColumnSize: "Reset column size",
811
- resetOrder: "Reset order",
812
- rowActions: "Row Actions",
813
- rowNumber: "#",
814
- rowNumbers: "Row Numbers",
815
- rowsPerPage: "Rows per page",
816
- save: "Save",
817
- search: "Search",
818
- selectedCountOfRowCountRowsSelected: "{selectedCount} of {rowCount} row(s) selected",
819
- select: "Select",
820
- showAll: "Show all",
821
- showAllColumns: "Show all columns",
822
- showHideColumns: "Show/Hide columns",
823
- showHideFilters: "Show/Hide filters",
824
- showHideSearch: "Show/Hide search",
825
- sortByColumnAsc: "Sort by {column} ascending",
826
- sortByColumnDesc: "Sort by {column} descending",
827
- sortedByColumnAsc: "Sorted by {column} ascending",
828
- sortedByColumnDesc: "Sorted by {column} descending",
829
- thenBy: ", then by ",
830
- toggleDensity: "Toggle density",
831
- toggleFullScreen: "Toggle full screen",
832
- toggleSelectAll: "Toggle select all",
833
- toggleSelectRow: "Toggle select row",
834
- toggleVisibility: "Toggle visibility",
835
- ungroupByColumn: "Ungroup by {column}",
836
- unpin: "Unpin",
837
- unpinAll: "Unpin all"
838
- }, Ql = {
839
- filterVariant: "text",
840
- maxSize: 1e3,
841
- minSize: 40,
842
- size: 180
843
- }, Eo = {
844
- columnDefType: "display",
845
- enableClickToCopy: !1,
846
- enableColumnActions: !1,
847
- enableColumnDragging: !1,
848
- enableColumnFilter: !1,
849
- enableColumnOrdering: !1,
850
- enableEditing: !1,
851
- enableGlobalFilter: !1,
852
- enableGrouping: !1,
853
- enableHiding: !1,
854
- enableResizing: !1,
855
- enableSorting: !1
856
- }, Jl = /* @__PURE__ */ i((e) => {
857
- var n, { aggregationFns: t, autoResetExpanded: l = !1, columnFilterDisplayMode: s = "subheader", columnResizeDirection: a, columnResizeMode: r = "onChange", createDisplayMode: u = "modal", defaultColumn: g, defaultDisplayColumn: p, editDisplayMode: m = "modal", enableBatchRowSelection: b = !0, enableBottomToolbar: v = !0, enableColumnActions: c = !0, enableColumnFilters: d = !0, enableColumnOrdering: x = !1, enableColumnPinning: h = !1, enableColumnResizing: f = !1, enableColumnVirtualization: C, enableDensityToggle: w = !0, enableExpandAll: F = !0, enableExpanding: S, enableFacetedValues: P = !1, enableFilterMatchHighlighting: R = !0, enableFilters: j = !0, enableFullScreenToggle: y = !0, enableGlobalFilter: T = !0, enableGlobalFilterRankedResults: I = !0, enableGrouping: k = !1, enableHiding: M = !0, enableKeyboardShortcuts: _ = !0, enableMultiRowSelection: D = !0, enableMultiSort: q = !0, enablePagination: Q = !0, enableRowPinning: E = !1, enableRowSelection: H = !1, enableRowVirtualization: A, enableSelectAll: $ = !0, enableSorting: le = !0, enableStickyHeader: B = !1, enableTableFooter: U = !0, enableTableHead: X = !0, enableToolbarInternalActions: J = !0, enableTopToolbar: te = !0, filterFns: G, icons: K, id: se = Yo(), layoutMode: W, localization: V, manualFiltering: ee, manualGrouping: Y, manualPagination: je, manualSorting: fe, mrtTheme: Ce, paginationDisplayMode: me = "default", positionActionsColumn: we = "first", positionCreatingRow: Te = "top", positionExpandColumn: ze = "first", positionGlobalFilter: ge = "right", positionPagination: ve = "bottom", positionToolbarAlertBanner: Fe = "top", positionToolbarDropZone: pe = "top", rowNumberDisplayMode: _e = "static", rowPinningDisplayMode: ye = "sticky", selectAllMode: Z = "page", sortingFns: ne } = e, he = L(e, ["aggregationFns", "autoResetExpanded", "columnFilterDisplayMode", "columnResizeDirection", "columnResizeMode", "createDisplayMode", "defaultColumn", "defaultDisplayColumn", "editDisplayMode", "enableBatchRowSelection", "enableBottomToolbar", "enableColumnActions", "enableColumnFilters", "enableColumnOrdering", "enableColumnPinning", "enableColumnResizing", "enableColumnVirtualization", "enableDensityToggle", "enableExpandAll", "enableExpanding", "enableFacetedValues", "enableFilterMatchHighlighting", "enableFilters", "enableFullScreenToggle", "enableGlobalFilter", "enableGlobalFilterRankedResults", "enableGrouping", "enableHiding", "enableKeyboardShortcuts", "enableMultiRowSelection", "enableMultiSort", "enablePagination", "enableRowPinning", "enableRowSelection", "enableRowVirtualization", "enableSelectAll", "enableSorting", "enableStickyHeader", "enableTableFooter", "enableTableHead", "enableToolbarInternalActions", "enableTopToolbar", "filterFns", "icons", "id", "layoutMode", "localization", "manualFiltering", "manualGrouping", "manualPagination", "manualSorting", "mrtTheme", "paginationDisplayMode", "positionActionsColumn", "positionCreatingRow", "positionExpandColumn", "positionGlobalFilter", "positionPagination", "positionToolbarAlertBanner", "positionToolbarDropZone", "rowNumberDisplayMode", "rowPinningDisplayMode", "selectAllMode", "sortingFns"]);
858
- const Re = qe();
859
- return K = ce(() => Object.assign(Object.assign({}, Xl), K), [K]), V = ce(() => Object.assign(Object.assign({}, Yl), V), [V]), Ce = ce(() => Bl(Ce, Re), [Ce, Re]), t = ce(() => Object.assign(Object.assign({}, zl), t), []), G = ce(() => Object.assign(Object.assign({}, El), G), []), ne = ce(() => Object.assign(Object.assign({}, Ml), ne), []), g = ce(() => Object.assign(Object.assign({}, Ql), g), [g]), p = ce(() => Object.assign(Object.assign({}, Eo), p), [p]), [C, A] = ce(() => [C, A], []), a || (a = Re.direction || "ltr"), W = W || (f ? "grid-no-grow" : "semantic"), W === "semantic" && (A || C) && (W = "grid"), A && (B = !0), Q === !1 && je === void 0 && (je = !0), !((n = he.data) === null || n === void 0) && n.length || (ee = !0, Y = !0, je = !0, fe = !0), Object.assign({
860
- aggregationFns: t,
861
- autoResetExpanded: l,
862
- columnFilterDisplayMode: s,
863
- columnResizeDirection: a,
864
- columnResizeMode: r,
865
- createDisplayMode: u,
866
- defaultColumn: g,
867
- defaultDisplayColumn: p,
868
- editDisplayMode: m,
869
- enableBatchRowSelection: b,
870
- enableBottomToolbar: v,
871
- enableColumnActions: c,
872
- enableColumnFilters: d,
873
- enableColumnOrdering: x,
874
- enableColumnPinning: h,
875
- enableColumnResizing: f,
876
- enableColumnVirtualization: C,
877
- enableDensityToggle: w,
878
- enableExpandAll: F,
879
- enableExpanding: S,
880
- enableFacetedValues: P,
881
- enableFilterMatchHighlighting: R,
882
- enableFilters: j,
883
- enableFullScreenToggle: y,
884
- enableGlobalFilter: T,
885
- enableGlobalFilterRankedResults: I,
886
- enableGrouping: k,
887
- enableHiding: M,
888
- enableKeyboardShortcuts: _,
889
- enableMultiRowSelection: D,
890
- enableMultiSort: q,
891
- enablePagination: Q,
892
- enableRowPinning: E,
893
- enableRowSelection: H,
894
- enableRowVirtualization: A,
895
- enableSelectAll: $,
896
- enableSorting: le,
897
- enableStickyHeader: B,
898
- enableTableFooter: U,
899
- enableTableHead: X,
900
- enableToolbarInternalActions: J,
901
- enableTopToolbar: te,
902
- filterFns: G,
903
- getCoreRowModel: Rl(),
904
- getExpandedRowModel: S || k ? yl() : void 0,
905
- getFacetedMinMaxValues: P ? wl() : void 0,
906
- getFacetedRowModel: P ? jl() : void 0,
907
- getFacetedUniqueValues: P ? Cl() : void 0,
908
- getFilteredRowModel: (d || T || j) && !ee ? xl() : void 0,
909
- getGroupedRowModel: k && !Y ? hl() : void 0,
910
- getPaginationRowModel: Q && !je ? fl() : void 0,
911
- getSortedRowModel: le && !fe ? bl() : void 0,
912
- getSubRows: /* @__PURE__ */ i((De) => De == null ? void 0 : De.subRows, "getSubRows"),
913
- icons: K,
914
- id: se,
915
- layoutMode: W,
916
- localization: V,
917
- manualFiltering: ee,
918
- manualGrouping: Y,
919
- manualPagination: je,
920
- manualSorting: fe,
921
- mrtTheme: Ce,
922
- paginationDisplayMode: me,
923
- positionActionsColumn: we,
924
- positionCreatingRow: Te,
925
- positionExpandColumn: ze,
926
- positionGlobalFilter: ge,
927
- positionPagination: ve,
928
- positionToolbarAlertBanner: Fe,
929
- positionToolbarDropZone: pe,
930
- rowNumberDisplayMode: _e,
931
- rowPinningDisplayMode: ye,
932
- selectAllMode: Z,
933
- sortingFns: ne
934
- }, he);
935
- }, "useMRT_TableOptions"), Dn = {
936
- children: null,
937
- sx: {
938
- minWidth: 0,
939
- p: 0,
940
- width: 0
941
- }
942
- }, ei = /* @__PURE__ */ i((e) => Object.assign(Object.assign(Object.assign(Object.assign({}, Ue({
943
- id: "mrt-row-spacer",
944
- size: 0,
945
- tableOptions: e
946
- })), { grow: !0 }), Eo), { muiTableBodyCellProps: Dn, muiTableFooterCellProps: Dn, muiTableHeadCellProps: Dn }), "getMRT_RowSpacerColumnDef"), ni = /* @__PURE__ */ i((e) => {
947
- const { getIsSomeRowsPinned: n, getPrePaginationRowModel: t, getState: l, options: { enablePagination: s, enableRowPinning: a, rowCount: r } } = e, { columnOrder: u, density: g, globalFilter: p, isFullScreen: m, isLoading: b, pagination: v, showSkeletons: c, sorting: d } = l(), x = e.options.columns.length, h = r ?? t().rows.length, f = Qo(() => ({}), {})[1], C = be(null), w = be(null);
948
- Ae(() => {
949
- typeof window < "u" && (C.current = document.body.style.height);
950
- }, []), Ae(() => {
951
- if (typeof window < "u")
952
- if (m)
953
- w.current = document.body.getBoundingClientRect().top, document.body.style.height = "100dvh";
954
- else {
955
- if (document.body.style.height = C.current, !w.current)
956
- return;
957
- window.scrollTo({
958
- behavior: "instant",
959
- top: -1 * w.current
960
- });
961
- }
962
- }, [m]), Ae(() => {
963
- x !== u.length && e.setColumnOrder(Zn(e.options));
964
- }, [x]), Ae(() => {
965
- if (!s || b || c)
966
- return;
967
- const { pageIndex: S, pageSize: P } = v, R = h > 0 ? Math.ceil(h / P) : 1;
968
- (S < 0 || S >= R) && e.setPageIndex(R - 1);
969
- }, [h, s, b, c]);
970
- const F = be(d);
971
- Ae(() => {
972
- d.length && (F.current = d);
973
- }, [d]), Ae(() => {
974
- bo(e) && (p ? e.setSorting([]) : e.setSorting(() => F.current || []));
975
- }, [p]), Ae(() => {
976
- a && n() && setTimeout(() => {
977
- f();
978
- }, 150);
979
- }, [g]);
980
- }, "useMRT_Effects"), oi = /* @__PURE__ */ i((e) => {
981
- var n, t, l, s, a, r, u, g, p, m, b, v, c, d, x, h, f, C, w, F, S, P, R, j, y, T, I, k, M, _, D, q, Q, E, H;
982
- const A = be(null), $ = be(null), le = be(null), B = be({}), U = be({}), X = be(null), J = be(null), te = be({}), G = be(null), K = be(null), se = be(null), W = be(null), V = ce(() => {
983
- var Me, He, Ve;
984
- const Ee = (Me = e.initialState) !== null && Me !== void 0 ? Me : {};
985
- return Ee.columnOrder = (He = Ee.columnOrder) !== null && He !== void 0 ? He : Zn(Object.assign(Object.assign({}, e), { state: Object.assign(Object.assign({}, e.initialState), e.state) })), Ee.globalFilterFn = (Ve = e.globalFilterFn) !== null && Ve !== void 0 ? Ve : "fuzzy", Ee;
986
- }, []);
987
- e.initialState = V;
988
- const [ee, Y] = oe((n = V.actionCell) !== null && n !== void 0 ? n : null), [je, fe] = oe((t = V.creatingRow) !== null && t !== void 0 ? t : null), [Ce, me] = oe(() => Object.assign({}, ...bn(e.columns).map((Me) => {
989
- var He, Ve, Ee, Tn;
990
- return {
991
- [Xe(Me)]: Me.filterFn instanceof Function ? (He = Me.filterFn.name) !== null && He !== void 0 ? He : "custom" : (Tn = (Ve = Me.filterFn) !== null && Ve !== void 0 ? Ve : (Ee = V == null ? void 0 : V.columnFilterFns) === null || Ee === void 0 ? void 0 : Ee[Xe(Me)]) !== null && Tn !== void 0 ? Tn : Pl(Me)
992
- };
993
- }))), [we, Te] = oe((l = V.columnOrder) !== null && l !== void 0 ? l : []), [ze, ge] = oe((s = V.columnSizingInfo) !== null && s !== void 0 ? s : {}), [ve, Fe] = oe((a = V == null ? void 0 : V.density) !== null && a !== void 0 ? a : "comfortable"), [pe, _e] = oe((r = V.draggingColumn) !== null && r !== void 0 ? r : null), [ye, Z] = oe((u = V.draggingRow) !== null && u !== void 0 ? u : null), [ne, he] = oe((g = V.editingCell) !== null && g !== void 0 ? g : null), [Re, De] = oe((p = V.editingRow) !== null && p !== void 0 ? p : null), [re, ke] = oe((m = V.globalFilterFn) !== null && m !== void 0 ? m : "fuzzy"), [Ke, Ze] = oe((b = V.grouping) !== null && b !== void 0 ? b : []), [Ie, On] = oe((v = V.hoveredColumn) !== null && v !== void 0 ? v : null), [Fn, ln] = oe((c = V.hoveredRow) !== null && c !== void 0 ? c : null), [sn, rn] = oe((d = V == null ? void 0 : V.isFullScreen) !== null && d !== void 0 ? d : !1), [Se, Qe] = oe((x = V == null ? void 0 : V.pagination) !== null && x !== void 0 ? x : { pageIndex: 0, pageSize: 10 }), [z, ie] = oe((h = V == null ? void 0 : V.showAlertBanner) !== null && h !== void 0 ? h : !1), [Oe, $e] = oe((f = V == null ? void 0 : V.showColumnFilters) !== null && f !== void 0 ? f : !1), [Le, Je] = oe((C = V == null ? void 0 : V.showGlobalFilter) !== null && C !== void 0 ? C : !1), [Pn, Uo] = oe((w = V == null ? void 0 : V.showToolbarDropZone) !== null && w !== void 0 ? w : !1);
994
- e.state = Object.assign({
995
- actionCell: ee,
996
- columnFilterFns: Ce,
997
- columnOrder: we,
998
- columnSizingInfo: ze,
999
- creatingRow: je,
1000
- density: ve,
1001
- draggingColumn: pe,
1002
- draggingRow: ye,
1003
- editingCell: ne,
1004
- editingRow: Re,
1005
- globalFilterFn: re,
1006
- grouping: Ke,
1007
- hoveredColumn: Ie,
1008
- hoveredRow: Fn,
1009
- isFullScreen: sn,
1010
- pagination: Se,
1011
- showAlertBanner: z,
1012
- showColumnFilters: Oe,
1013
- showGlobalFilter: Le,
1014
- showToolbarDropZone: Pn
1015
- }, e.state);
1016
- const N = e, oo = be([]);
1017
- N.columns = N.state.columnSizingInfo.isResizingColumn || N.state.draggingColumn || N.state.draggingRow ? oo.current : go({
1018
- columnDefs: [
1019
- ...[
1020
- Co(N) && Ul(N),
1021
- jo(N) && $l(N),
1022
- Un(N) && Ll(N),
1023
- Kn(N) && Nl(N),
1024
- wo(N) && Zl(N),
1025
- yo(N) && ql(N)
1026
- ].filter(Boolean),
1027
- ...N.columns,
1028
- ...[
1029
- Ro(N) && ei(N)
1030
- ].filter(Boolean)
1031
- ],
1032
- tableOptions: N
1033
- }), oo.current = N.columns, N.data = ce(() => (N.state.isLoading || N.state.showSkeletons) && !N.data.length ? [
1034
- ...Array(Math.min(N.state.pagination.pageSize, 20)).fill(null)
1035
- ].map(() => Object.assign({}, ...bn(N.columns).map((Me) => ({
1036
- [Xe(Me)]: null
1037
- })))) : N.data, [
1038
- N.data,
1039
- N.state.isLoading,
1040
- N.state.showSkeletons
1041
- ]);
1042
- const xe = Xo(Object.assign(Object.assign({
1043
- onColumnOrderChange: Te,
1044
- onColumnSizingInfoChange: ge,
1045
- onGroupingChange: Ze,
1046
- onPaginationChange: Qe
1047
- }, N), { globalFilterFn: (F = N.filterFns) === null || F === void 0 ? void 0 : F[re ?? "fuzzy"] }));
1048
- return xe.refs = {
1049
- actionCellRef: $,
1050
- bottomToolbarRef: le,
1051
- editInputRefs: B,
1052
- filterInputRefs: U,
1053
- lastSelectedRowId: A,
1054
- searchInputRef: X,
1055
- tableContainerRef: J,
1056
- tableFooterRef: W,
1057
- tableHeadCellRefs: te,
1058
- tableHeadRef: se,
1059
- tablePaperRef: G,
1060
- topToolbarRef: K
1061
- }, xe.setActionCell = (S = N.onActionCellChange) !== null && S !== void 0 ? S : Y, xe.setCreatingRow = (Me) => {
1062
- var He, Ve;
1063
- let Ee = Me;
1064
- Me === !0 && (Ee = Tl(xe)), (Ve = (He = N == null ? void 0 : N.onCreatingRowChange) === null || He === void 0 ? void 0 : He.call(N, Ee)) !== null && Ve !== void 0 || fe(Ee);
1065
- }, xe.setColumnFilterFns = (P = N.onColumnFilterFnsChange) !== null && P !== void 0 ? P : me, xe.setDensity = (R = N.onDensityChange) !== null && R !== void 0 ? R : Fe, xe.setDraggingColumn = (j = N.onDraggingColumnChange) !== null && j !== void 0 ? j : _e, xe.setDraggingRow = (y = N.onDraggingRowChange) !== null && y !== void 0 ? y : Z, xe.setEditingCell = (T = N.onEditingCellChange) !== null && T !== void 0 ? T : he, xe.setEditingRow = (I = N.onEditingRowChange) !== null && I !== void 0 ? I : De, xe.setGlobalFilterFn = (k = N.onGlobalFilterFnChange) !== null && k !== void 0 ? k : ke, xe.setHoveredColumn = (M = N.onHoveredColumnChange) !== null && M !== void 0 ? M : On, xe.setHoveredRow = (_ = N.onHoveredRowChange) !== null && _ !== void 0 ? _ : ln, xe.setIsFullScreen = (D = N.onIsFullScreenChange) !== null && D !== void 0 ? D : rn, xe.setShowAlertBanner = (q = N.onShowAlertBannerChange) !== null && q !== void 0 ? q : ie, xe.setShowColumnFilters = (Q = N.onShowColumnFiltersChange) !== null && Q !== void 0 ? Q : $e, xe.setShowGlobalFilter = (E = N.onShowGlobalFilterChange) !== null && E !== void 0 ? E : Je, xe.setShowToolbarDropZone = (H = N.onShowToolbarDropZoneChange) !== null && H !== void 0 ? H : Uo, ni(xe), xe;
1066
- }, "useMRT_TableInstance"), ti = /* @__PURE__ */ i((e) => oi(Jl(e)), "useMaterialReactTable"), Bo = /* @__PURE__ */ i((e, n) => {
1067
- const t = Fl(e);
1068
- return n === void 0 || (n >= 0 && n < Math.max(e.startIndex - e.overscan, 0) && t.unshift(n), n >= 0 && n > e.endIndex + e.overscan && t.push(n)), t;
1069
- }, "extraIndexRangeExtractor"), li = /* @__PURE__ */ i((e) => {
1070
- var n, t, l, s;
1071
- const { getState: a, options: { columnVirtualizerInstanceRef: r, columnVirtualizerOptions: u, enableColumnPinning: g, enableColumnVirtualization: p }, refs: { tableContainerRef: m } } = e, { columnPinning: b, columnVisibility: v, draggingColumn: c } = a();
1072
- if (!p)
1073
- return;
1074
- const d = O(u, {
1075
- table: e
1076
- }), x = e.getVisibleLeafColumns(), [h, f] = ce(() => g ? [
1077
- e.getLeftVisibleLeafColumns().map((j) => j.getPinnedIndex()),
1078
- e.getRightVisibleLeafColumns().map((j) => x.length - j.getPinnedIndex() - 1).sort((j, y) => j - y)
1079
- ] : [[], []], [b, v, g]), C = h.length, w = f.length, F = ce(() => c != null && c.id ? x.findIndex((j) => j.id === (c == null ? void 0 : c.id)) : void 0, [c == null ? void 0 : c.id]), S = so(Object.assign({ count: x.length, estimateSize: /* @__PURE__ */ i((j) => x[j].getSize(), "estimateSize"), getScrollElement: /* @__PURE__ */ i(() => m.current, "getScrollElement"), horizontal: !0, overscan: 3, rangeExtractor: hn((j) => {
1080
- const y = Bo(j, F);
1081
- return !C && !w ? y : [
1082
- .../* @__PURE__ */ new Set([
1083
- ...h,
1084
- ...y,
1085
- ...f
1086
- ])
1087
- ];
1088
- }, [h, f, F]) }, d)), P = S.getVirtualItems();
1089
- S.virtualColumns = P;
1090
- const R = P.length;
1091
- if (R) {
1092
- const j = S.getTotalSize(), y = ((n = P[C]) === null || n === void 0 ? void 0 : n.start) || 0, T = ((t = P[h.length - 1]) === null || t === void 0 ? void 0 : t.end) || 0, I = ((l = P[R - w]) === null || l === void 0 ? void 0 : l.start) || 0, k = ((s = P[R - w - 1]) === null || s === void 0 ? void 0 : s.end) || 0;
1093
- S.virtualPaddingLeft = y - T, S.virtualPaddingRight = j - k - (w ? j - I : 0);
1094
- }
1095
- return r && (r.current = S), S;
1096
- }, "useMRT_ColumnVirtualizer"), ii = /* @__PURE__ */ i((e, n) => {
1097
- const { getRowModel: t, getState: l, options: { enableRowVirtualization: s, renderDetailPanel: a, rowVirtualizerInstanceRef: r, rowVirtualizerOptions: u }, refs: { tableContainerRef: g } } = e, { density: p, draggingRow: m, expanded: b } = l();
1098
- if (!s)
1099
- return;
1100
- const v = O(u, {
1101
- table: e
1102
- }), c = n ?? t().rows, d = ce(() => m != null && m.id ? c.findIndex((C) => C.id === (m == null ? void 0 : m.id)) : void 0, [c, m == null ? void 0 : m.id]), x = c.length, h = p === "compact" ? 37 : p === "comfortable" ? 58 : 73, f = so(Object.assign({ count: a ? x * 2 : x, estimateSize: /* @__PURE__ */ i((C) => a && C % 2 === 1 ? b === !0 ? 100 : 0 : h, "estimateSize"), getScrollElement: /* @__PURE__ */ i(() => g.current, "getScrollElement"), measureElement: typeof window < "u" && navigator.userAgent.indexOf("Firefox") === -1 ? (C) => C == null ? void 0 : C.getBoundingClientRect().height : void 0, overscan: 4, rangeExtractor: hn((C) => Bo(C, d), [d]) }, v));
1103
- return f.virtualRows = f.getVirtualItems(), r && (r.current = f), f;
1104
- }, "useMRT_RowVirtualizer"), si = /* @__PURE__ */ i((e) => {
1105
- const { getRowModel: n, getState: t, options: { data: l, enableGlobalFilterRankedResults: s, positionCreatingRow: a } } = e, { creatingRow: r, expanded: u, globalFilter: g, pagination: p, rowPinning: m, sorting: b } = t();
1106
- return ce(() => vo(e), [
1107
- r,
1108
- l,
1109
- s,
1110
- u,
1111
- n().rows,
1112
- g,
1113
- p.pageIndex,
1114
- p.pageSize,
1115
- a,
1116
- m,
1117
- b
1118
- ]);
1119
- }, "useMRT_Rows"), kn = ["string", "number"], io = /* @__PURE__ */ i(({ cell: e, rowRef: n, staticColumnIndex: t, staticRowIndex: l, table: s }) => {
1120
- var a, r, u;
1121
- const { getState: g, options: { enableFilterMatchHighlighting: p, mrtTheme: { matchHighlightColor: m } } } = s, { column: b, row: v } = e, { columnDef: c } = b, { globalFilter: d, globalFilterFn: x } = g(), h = b.getFilterValue();
1122
- let f = e.getIsAggregated() && c.AggregatedCell ? c.AggregatedCell({
1123
- cell: e,
1124
- column: b,
1125
- row: v,
1126
- table: s,
1127
- staticColumnIndex: t,
1128
- staticRowIndex: l
1129
- }) : v.getIsGrouped() && !e.getIsGrouped() ? null : e.getIsGrouped() && c.GroupedCell ? c.GroupedCell({
1130
- cell: e,
1131
- column: b,
1132
- row: v,
1133
- table: s,
1134
- staticColumnIndex: t,
1135
- staticRowIndex: l
1136
- }) : void 0;
1137
- const C = f !== void 0;
1138
- if (C || (f = e.renderValue()), p && c.enableFilterMatchHighlighting !== !1 && String(f) && kn.includes(typeof f) && (h && kn.includes(typeof h) && ["autocomplete", "text"].includes(c.filterVariant) || d && kn.includes(typeof d) && b.getCanGlobalFilter())) {
1139
- const w = Mn === null || Mn === void 0 ? void 0 : Mn({
1140
- matchExactly: (h ? c._filterFn : x) !== "fuzzy",
1141
- query: ((a = h ?? d) !== null && a !== void 0 ? a : "").toString(),
1142
- text: f == null ? void 0 : f.toString()
1143
- });
1144
- ((w == null ? void 0 : w.length) > 1 || !((r = w == null ? void 0 : w[0]) === null || r === void 0) && r.match) && (f = o.jsx("span", { "aria-label": f, role: "note", children: (u = w == null ? void 0 : w.map(({ key: F, match: S, text: P }) => o.jsx(ae, { "aria-hidden": "true", component: "span", sx: S ? {
1145
- backgroundColor: m,
1146
- borderRadius: "2px",
1147
- color: /* @__PURE__ */ i((R) => R.palette.mode === "dark" ? R.palette.common.white : R.palette.common.black, "color"),
1148
- padding: "2px 1px"
1149
- } : void 0, children: P }, F))) !== null && u !== void 0 ? u : f }));
1150
- }
1151
- return c.Cell && !C && (f = c.Cell({
1152
- cell: e,
1153
- column: b,
1154
- renderedCellValue: f,
1155
- row: v,
1156
- rowRef: n,
1157
- staticColumnIndex: t,
1158
- staticRowIndex: l,
1159
- table: s
1160
- })), f;
1161
- }, "MRT_TableBodyCellValue"), ri = /* @__PURE__ */ i((e) => {
1162
- var n, { cell: t, table: l } = e, s = L(e, ["cell", "table"]);
1163
- const { options: { localization: a, muiCopyButtonProps: r } } = l, { column: u, row: g } = t, { columnDef: p } = u, [m, b] = oe(!1), v = /* @__PURE__ */ i((d, x) => {
1164
- d.stopPropagation(), navigator.clipboard.writeText(x), b(!0), setTimeout(() => b(!1), 4e3);
1165
- }, "handleCopy"), c = Object.assign(Object.assign(Object.assign({}, O(r, {
1166
- cell: t,
1167
- column: u,
1168
- row: g,
1169
- table: l
1170
- })), O(p.muiCopyButtonProps, {
1171
- cell: t,
1172
- column: u,
1173
- row: g,
1174
- table: l
1175
- })), s);
1176
- return o.jsx(de, Object.assign({}, Be("top"), { title: (n = c == null ? void 0 : c.title) !== null && n !== void 0 ? n : m ? a.copiedToClipboard : a.clickToCopy, children: o.jsx(Ne, Object.assign({ onClick: /* @__PURE__ */ i((d) => v(d, t.getValue()), "onClick"), size: "small", type: "button", variant: "text" }, c, { sx: /* @__PURE__ */ i((d) => Object.assign({ backgroundColor: "transparent", border: "none", color: "inherit", cursor: "copy", fontFamily: "inherit", fontSize: "inherit", letterSpacing: "inherit", m: "-0.25rem", minWidth: "unset", py: 0, textAlign: "inherit", textTransform: "inherit" }, O(c == null ? void 0 : c.sx, d)), "sx"), title: void 0 })) }));
1177
- }, "MRT_CopyButton"), Ho = /* @__PURE__ */ i((e) => {
1178
- var n, t, { cell: l, table: s } = e, a = L(e, ["cell", "table"]);
1179
- const { getState: r, options: { createDisplayMode: u, editDisplayMode: g, muiEditTextFieldProps: p }, refs: { editInputRefs: m }, setCreatingRow: b, setEditingCell: v, setEditingRow: c } = s, { column: d, row: x } = l, { columnDef: h } = d, { creatingRow: f, editingRow: C } = r(), { editSelectOptions: w, editVariant: F } = h, S = (f == null ? void 0 : f.id) === x.id, P = (C == null ? void 0 : C.id) === x.id, [R, j] = oe(() => l.getValue()), [y, T] = oe(!0), I = Object.assign(Object.assign(Object.assign({}, O(p, {
1180
- cell: l,
1181
- column: d,
1182
- row: x,
1183
- table: s
1184
- })), O(h.muiEditTextFieldProps, {
1185
- cell: l,
1186
- column: d,
1187
- row: x,
1188
- table: s
1189
- })), a), k = O(w, {
1190
- cell: l,
1191
- column: d,
1192
- row: x,
1193
- table: s
1194
- }), M = F === "select" || (I == null ? void 0 : I.select), _ = /* @__PURE__ */ i((E) => {
1195
- x._valuesCache[d.id] = E, S ? b(x) : P && c(x);
1196
- }, "saveInputValueToRowCache"), D = /* @__PURE__ */ i((E) => {
1197
- var H;
1198
- (H = I.onChange) === null || H === void 0 || H.call(I, E), j(E.target.value), M && _(E.target.value);
1199
- }, "handleChange"), q = /* @__PURE__ */ i((E) => {
1200
- var H;
1201
- (H = I.onBlur) === null || H === void 0 || H.call(I, E), _(R), v(null);
1202
- }, "handleBlur"), Q = /* @__PURE__ */ i((E) => {
1203
- var H, A, $;
1204
- (H = I.onKeyDown) === null || H === void 0 || H.call(I, E), E.key === "Enter" && !E.shiftKey && y && (($ = (A = m.current) === null || A === void 0 ? void 0 : A[d.id]) === null || $ === void 0 || $.blur());
1205
- }, "handleEnterKeyDown");
1206
- return h.Edit ? o.jsx(o.Fragment, { children: (n = h.Edit) === null || n === void 0 ? void 0 : n.call(h, { cell: l, column: d, row: x, table: s }) }) : o.jsx(pn, Object.assign({ disabled: O(h.enableEditing, x) === !1, fullWidth: !0, inputRef: /* @__PURE__ */ i((E) => {
1207
- E && (m.current[d.id] = M ? E.node : E, I.inputRef && (I.inputRef = E));
1208
- }, "inputRef"), label: ["custom", "modal"].includes(S ? u : g) ? h.header : void 0, margin: "none", name: d.id, placeholder: ["custom", "modal"].includes(S ? u : g) ? void 0 : h.header, select: M, size: "small", value: R ?? "", variant: "standard" }, I, { InputProps: Object.assign(Object.assign(Object.assign({}, I.variant !== "outlined" ? { disableUnderline: g === "table" } : {}), I.InputProps), { sx: /* @__PURE__ */ i((E) => {
1209
- var H;
1210
- return Object.assign({ mb: 0 }, O((H = I == null ? void 0 : I.InputProps) === null || H === void 0 ? void 0 : H.sx, E));
1211
- }, "sx") }), SelectProps: Object.assign({ MenuProps: { disableScrollLock: !0 } }, I.SelectProps), inputProps: Object.assign({ autoComplete: "off" }, I.inputProps), onBlur: q, onChange: D, onClick: /* @__PURE__ */ i((E) => {
1212
- var H;
1213
- E.stopPropagation(), (H = I == null ? void 0 : I.onClick) === null || H === void 0 || H.call(I, E);
1214
- }, "onClick"), onKeyDown: Q, onCompositionStart: /* @__PURE__ */ i(() => T(!1), "onCompositionStart"), onCompositionEnd: /* @__PURE__ */ i(() => T(!0), "onCompositionEnd"), children: (t = I.children) !== null && t !== void 0 ? t : k == null ? void 0 : k.map((E) => {
1215
- const { label: H, value: A } = We(E);
1216
- return o.jsx(Ye, { sx: {
1217
- alignItems: "center",
1218
- display: "flex",
1219
- gap: "0.5rem",
1220
- m: 0
1221
- }, value: A, children: H }, A);
1222
- }) }));
1223
- }, "MRT_EditCellTextField"), Vo = /* @__PURE__ */ i((e) => {
1224
- var n, t, l, s, a, { cell: r, numRows: u, rowRef: g, staticColumnIndex: p, staticRowIndex: m, table: b } = e, v = L(e, ["cell", "numRows", "rowRef", "staticColumnIndex", "staticRowIndex", "table"]);
1225
- const c = qe(), { getState: d, options: { columnResizeDirection: x, columnResizeMode: h, createDisplayMode: f, editDisplayMode: C, enableCellActions: w, enableClickToCopy: F, enableColumnOrdering: S, enableColumnPinning: P, enableGrouping: R, enableKeyboardShortcuts: j, layoutMode: y, mrtTheme: { draggingBorderColor: T }, muiSkeletonProps: I, muiTableBodyCellProps: k }, setHoveredColumn: M } = b, { actionCell: _, columnSizingInfo: D, creatingRow: q, density: Q, draggingColumn: E, draggingRow: H, editingCell: A, editingRow: $, hoveredColumn: le, hoveredRow: B, isLoading: U, showSkeletons: X } = d(), { column: J, row: te } = r, { columnDef: G } = J, { columnDefType: K } = G, se = { cell: r, column: J, row: te, table: b }, W = Object.assign(Object.assign(Object.assign({}, O(k, se)), O(G.muiTableBodyCellProps, se)), v), V = O(I, {
1226
- cell: r,
1227
- column: J,
1228
- row: te,
1229
- table: b
1230
- }), [ee, Y] = oe(100);
1231
- Ae(() => {
1232
- if (!U && !X || ee !== 100)
1233
- return;
1234
- const Z = J.getSize();
1235
- Y(K === "display" ? Z / 2 : Math.round(Math.random() * (Z - Z / 3) + Z / 3));
1236
- }, [U, X]);
1237
- const je = ce(() => {
1238
- const Z = (E == null ? void 0 : E.id) === J.id, ne = (le == null ? void 0 : le.id) === J.id, he = (H == null ? void 0 : H.id) === te.id, Re = (B == null ? void 0 : B.id) === te.id, De = J.getIsFirstColumn(), re = J.getIsLastColumn(), ke = u && m === u - 1, Ke = D.isResizingColumn === J.id, Ze = Ke && h === "onChange", Ie = Ze ? `2px solid ${T} !important` : Z || he ? `1px dashed ${c.palette.grey[500]} !important` : ne || Re || Ke ? `2px dashed ${T} !important` : void 0;
1239
- return Ze ? x === "ltr" ? { borderRight: Ie } : { borderLeft: Ie } : Ie ? {
1240
- borderBottom: he || Re || ke && !Ke ? Ie : void 0,
1241
- borderLeft: Z || ne || (he || Re) && De ? Ie : void 0,
1242
- borderRight: Z || ne || (he || Re) && re ? Ie : void 0,
1243
- borderTop: he || Re ? Ie : void 0
1244
- } : void 0;
1245
- }, [
1246
- D.isResizingColumn,
1247
- E,
1248
- H,
1249
- le,
1250
- B,
1251
- m
1252
- ]), fe = P && G.columnDefType !== "group" && J.getIsPinned(), Ce = ho({ cell: r, table: b }), me = Ce && !["custom", "modal"].includes(C) && (C === "table" || ($ == null ? void 0 : $.id) === te.id || (A == null ? void 0 : A.id) === r.id) && !te.getIsGrouped(), we = Ce && f === "row" && (q == null ? void 0 : q.id) === te.id, Te = (O(F, r) === !0 || O(G.enableClickToCopy, r) === !0) && !["context-menu", !1].includes(
1253
- // @ts-expect-error
1254
- O(G.enableClickToCopy, r)
1255
- ), ze = O(w, r), ge = {
1256
- cell: r,
1257
- table: b,
1258
- staticColumnIndex: p,
1259
- staticRowIndex: m
1260
- }, ve = /* @__PURE__ */ i((Z) => {
1261
- var ne;
1262
- (ne = W == null ? void 0 : W.onDoubleClick) === null || ne === void 0 || ne.call(W, Z), xo({ cell: r, table: b });
1263
- }, "handleDoubleClick"), Fe = /* @__PURE__ */ i((Z) => {
1264
- var ne;
1265
- (ne = W == null ? void 0 : W.onDragEnter) === null || ne === void 0 || ne.call(W, Z), R && (le == null ? void 0 : le.id) === "drop-zone" && M(null), S && E && M(G.enableColumnOrdering !== !1 ? J : null);
1266
- }, "handleDragEnter"), pe = /* @__PURE__ */ i((Z) => {
1267
- G.enableColumnOrdering !== !1 && Z.preventDefault();
1268
- }, "handleDragOver"), _e = /* @__PURE__ */ i((Z) => {
1269
- var ne;
1270
- (ne = W == null ? void 0 : W.onContextMenu) === null || ne === void 0 || ne.call(W, Z), ze && (Z.preventDefault(), b.setActionCell(r), b.refs.actionCellRef.current = Z.currentTarget);
1271
- }, "handleContextMenu"), ye = /* @__PURE__ */ i((Z) => {
1272
- var ne;
1273
- (ne = W == null ? void 0 : W.onKeyDown) === null || ne === void 0 || ne.call(W, Z), qn({
1274
- cell: r,
1275
- cellValue: r.getValue(),
1276
- event: Z,
1277
- table: b
1278
- });
1279
- }, "handleKeyDown");
1280
- return o.jsx(jn, Object.assign({ align: c.direction === "rtl" ? "right" : "left", "data-index": p, "data-pinned": !!fe || void 0, tabIndex: j ? 0 : void 0 }, W, { onKeyDown: ye, onContextMenu: _e, onDoubleClick: ve, onDragEnter: Fe, onDragOver: pe, sx: /* @__PURE__ */ i((Z) => Object.assign(Object.assign({ "&:hover": {
1281
- outline: (_ == null ? void 0 : _.id) === r.id || C === "cell" && Ce || C === "table" && (we || me) ? `1px solid ${Z.palette.grey[500]}` : void 0,
1282
- textOverflow: "clip"
1283
- }, alignItems: y != null && y.startsWith("grid") ? "center" : void 0, cursor: ze ? "context-menu" : Ce && C === "cell" ? "pointer" : "inherit", outline: (_ == null ? void 0 : _.id) === r.id ? `1px solid ${Z.palette.grey[500]}` : void 0, outlineOffset: "-1px", overflow: "hidden", p: Q === "compact" ? K === "display" ? "0 0.5rem" : "0.5rem" : Q === "comfortable" ? K === "display" ? "0.5rem 0.75rem" : "1rem" : K === "display" ? "1rem 1.25rem" : "1.5rem", textOverflow: K !== "display" ? "ellipsis" : void 0, whiteSpace: te.getIsPinned() || Q === "compact" ? "nowrap" : "normal" }, Qn({
1284
- column: J,
1285
- table: b,
1286
- tableCellProps: W,
1287
- theme: Z
1288
- })), je), "sx"), children: (n = W.children) !== null && n !== void 0 ? n : o.jsxs(o.Fragment, { children: [r.getIsPlaceholder() ? (l = (t = G.PlaceholderCell) === null || t === void 0 ? void 0 : t.call(G, { cell: r, column: J, row: te, table: b })) !== null && l !== void 0 ? l : null : X !== !1 && (U || X) ? o.jsx($t, Object.assign({ animation: "wave", height: 20, width: ee }, V)) : K === "display" && (["mrt-row-expand", "mrt-row-numbers", "mrt-row-select"].includes(J.id) || !te.getIsGrouped()) ? (s = G.Cell) === null || s === void 0 ? void 0 : s.call(G, {
1289
- cell: r,
1290
- column: J,
1291
- renderedCellValue: r.renderValue(),
1292
- row: te,
1293
- rowRef: g,
1294
- staticColumnIndex: p,
1295
- staticRowIndex: m,
1296
- table: b
1297
- }) : we || me ? o.jsx(Ho, { cell: r, table: b }) : Te && G.enableClickToCopy !== !1 ? o.jsx(ri, { cell: r, table: b, children: o.jsx(io, Object.assign({}, ge)) }) : o.jsx(io, Object.assign({}, ge)), r.getIsGrouped() && !G.GroupedCell && o.jsxs(o.Fragment, { children: [" (", (a = te.subRows) === null || a === void 0 ? void 0 : a.length, ")"] })] }) }));
1298
- }, "MRT_TableBodyCell"), ai = Gn(Vo, (e, n) => n.cell === e.cell), di = /* @__PURE__ */ i((e) => {
1299
- var { parentRowRef: n, row: t, rowVirtualizer: l, staticRowIndex: s, table: a, virtualRow: r } = e, u = L(e, ["parentRowRef", "row", "rowVirtualizer", "staticRowIndex", "table", "virtualRow"]);
1300
- const { getState: g, getVisibleLeafColumns: p, options: { layoutMode: m, mrtTheme: { baseBackgroundColor: b }, muiDetailPanelProps: v, muiTableBodyRowProps: c, renderDetailPanel: d } } = a, { isLoading: x } = g(), h = O(c, {
1301
- isDetailPanel: !0,
1302
- row: t,
1303
- staticRowIndex: s,
1304
- table: a
1305
- }), f = Object.assign(Object.assign({}, O(v, {
1306
- row: t,
1307
- table: a
1308
- })), u), C = !x && (d == null ? void 0 : d({ row: t, table: a }));
1309
- return o.jsx(Cn, Object.assign({ className: "Mui-TableBodyCell-DetailPanel", "data-index": d ? s * 2 + 1 : s, ref: /* @__PURE__ */ i((w) => {
1310
- var F;
1311
- w && ((F = l == null ? void 0 : l.measureElement) === null || F === void 0 || F.call(l, w));
1312
- }, "ref") }, h, { sx: /* @__PURE__ */ i((w) => {
1313
- var F, S;
1314
- return Object.assign({ display: m != null && m.startsWith("grid") ? "flex" : void 0, position: r ? "absolute" : void 0, top: r ? `${(S = (F = n.current) === null || F === void 0 ? void 0 : F.getBoundingClientRect()) === null || S === void 0 ? void 0 : S.height}px` : void 0, transform: r ? `translateY(${r == null ? void 0 : r.start}px)` : void 0, width: "100%" }, O(h == null ? void 0 : h.sx, w));
1315
- }, "sx"), children: o.jsx(jn, Object.assign({ className: "Mui-TableBodyCell-DetailPanel", colSpan: p().length }, f, { sx: /* @__PURE__ */ i((w) => Object.assign({ backgroundColor: r ? b : void 0, borderBottom: t.getIsExpanded() ? void 0 : "none", display: m != null && m.startsWith("grid") ? "flex" : void 0, py: C && t.getIsExpanded() ? "1rem" : 0, transition: r ? void 0 : "all 150ms ease-in-out", width: "100%" }, O(f == null ? void 0 : f.sx, w)), "sx"), children: r ? t.getIsExpanded() && C : o.jsx(tn, { in: t.getIsExpanded(), mountOnEnter: !0, unmountOnExit: !0, children: C }) })) }));
1316
- }, "MRT_TableDetailPanel"), gn = /* @__PURE__ */ i((e) => {
1317
- var n, t, l, s, { columnVirtualizer: a, numRows: r, pinnedRowIds: u, row: g, rowVirtualizer: p, staticRowIndex: m, table: b, virtualRow: v } = e, c = L(e, ["columnVirtualizer", "numRows", "pinnedRowIds", "row", "rowVirtualizer", "staticRowIndex", "table", "virtualRow"]);
1318
- const d = qe(), { getState: x, options: { enableRowOrdering: h, enableRowPinning: f, enableStickyFooter: C, enableStickyHeader: w, layoutMode: F, memoMode: S, mrtTheme: { baseBackgroundColor: P, pinnedRowBackgroundColor: R, selectedRowBackgroundColor: j }, muiTableBodyRowProps: y, renderDetailPanel: T, rowPinningDisplayMode: I }, refs: { tableFooterRef: k, tableHeadRef: M }, setHoveredRow: _ } = b, { density: D, draggingColumn: q, draggingRow: Q, editingCell: E, editingRow: H, hoveredRow: A, isFullScreen: $, rowPinning: le } = x(), B = g.getVisibleCells(), { virtualColumns: U, virtualPaddingLeft: X, virtualPaddingRight: J } = a ?? {}, te = fn({ row: g, table: b }), G = f && g.getIsPinned(), K = (Q == null ? void 0 : Q.id) === g.id, se = (A == null ? void 0 : A.id) === g.id, W = Object.assign(Object.assign({}, O(y, {
1319
- row: g,
1320
- staticRowIndex: m,
1321
- table: b
1322
- })), c), [V, ee] = ce(() => !f || !(I != null && I.includes("sticky")) || !u || !g.getIsPinned() ? [] : [
1323
- [...u].reverse().indexOf(g.id),
1324
- u.indexOf(g.id)
1325
- ], [u, le]), Y = (w || $) && ((n = M.current) === null || n === void 0 ? void 0 : n.clientHeight) || 0, je = C && ((t = k.current) === null || t === void 0 ? void 0 : t.clientHeight) || 0, fe = O(W == null ? void 0 : W.sx, d), Ce = D === "compact" ? 37 : D === "comfortable" ? 53 : 69, we = /* @ts-expect-error */ parseInt((s = (l = W == null ? void 0 : W.style) === null || l === void 0 ? void 0 : l.height) !== null && s !== void 0 ? s : fe == null ? void 0 : fe.height, 10) || void 0 || Ce, Te = /* @__PURE__ */ i((pe) => {
1326
- h && Q && _(g);
1327
- }, "handleDragEnter"), ze = /* @__PURE__ */ i((pe) => {
1328
- pe.preventDefault();
1329
- }, "handleDragOver"), ge = be(null), ve = te ? j : G ? R : void 0, Fe = (W == null ? void 0 : W.hover) !== !1 ? te ? ve : d.palette.mode === "dark" ? `${un(P, 0.3)}` : `${$n(P, 0.3)}` : void 0;
1330
- return o.jsxs(o.Fragment, { children: [o.jsxs(Cn, Object.assign({ "data-index": T ? m * 2 : m, "data-pinned": !!G || void 0, "data-selected": te || void 0, onDragEnter: Te, onDragOver: ze, ref: /* @__PURE__ */ i((pe) => {
1331
- pe && (ge.current = pe, p == null || p.measureElement(pe));
1332
- }, "ref"), selected: te }, W, { style: Object.assign({ transform: v ? `translateY(${v.start}px)` : void 0 }, W == null ? void 0 : W.style), sx: /* @__PURE__ */ i((pe) => Object.assign({ "&:hover td:after": Fe ? Object.assign({ backgroundColor: Ge(Fe, 0.3) }, Vn) : void 0, backgroundColor: `${P} !important`, bottom: !v && V !== void 0 && G ? `${V * we + (C ? je - 1 : 0)}px` : void 0, boxSizing: "border-box", display: F != null && F.startsWith("grid") ? "flex" : void 0, opacity: G ? 0.97 : K || se ? 0.5 : 1, position: v ? "absolute" : I != null && I.includes("sticky") && G ? "sticky" : "relative", td: Object.assign({}, Ao({ table: b, theme: pe })), "td:after": ve ? Object.assign({ backgroundColor: ve }, Vn) : void 0, top: v ? 0 : ee !== void 0 && G ? `${ee * we + (w || $ ? Y - 1 : 0)}px` : void 0, transition: v ? "none" : "all 150ms ease-in-out", width: "100%", zIndex: I != null && I.includes("sticky") && G ? 2 : 0 }, fe), "sx"), children: [X ? o.jsx("td", { style: { display: "flex", width: X } }) : null, (U ?? B).map((pe, _e) => {
1333
- let ye = pe;
1334
- a && (_e = pe.index, ye = B[_e]);
1335
- const Z = {
1336
- cell: ye,
1337
- numRows: r,
1338
- rowRef: ge,
1339
- staticColumnIndex: _e,
1340
- staticRowIndex: m,
1341
- table: b
1342
- }, ne = `${ye.id}-${m}`;
1343
- return ye ? S === "cells" && ye.column.columnDef.columnDefType === "data" && !q && !Q && (E == null ? void 0 : E.id) !== ye.id && (H == null ? void 0 : H.id) !== g.id ? o.jsx(ai, Object.assign({}, Z), ne) : o.jsx(Vo, Object.assign({}, Z), ne) : null;
1344
- }), J ? o.jsx("td", { style: { display: "flex", width: J } }) : null] })), T && !g.getIsGrouped() && o.jsx(di, { parentRowRef: ge, row: g, rowVirtualizer: p, staticRowIndex: m, table: b, virtualRow: v })] });
1345
- }, "MRT_TableBodyRow"), An = Gn(gn, (e, n) => e.row === n.row && e.staticRowIndex === n.staticRowIndex), Lo = /* @__PURE__ */ i((e) => {
1346
- var n, t, l, s, a, r, { columnVirtualizer: u, table: g } = e, p = L(e, ["columnVirtualizer", "table"]);
1347
- const { getBottomRows: m, getIsSomeRowsPinned: b, getRowModel: v, getState: c, getTopRows: d, options: { enableStickyFooter: x, enableStickyHeader: h, layoutMode: f, localization: C, memoMode: w, muiTableBodyProps: F, renderDetailPanel: S, renderEmptyRowsFallback: P, rowPinningDisplayMode: R }, refs: { tableFooterRef: j, tableHeadRef: y, tablePaperRef: T } } = g, { columnFilters: I, globalFilter: k, isFullScreen: M, rowPinning: _ } = c(), D = Object.assign(Object.assign({}, O(F, { table: g })), p), q = (h || M) && ((n = y.current) === null || n === void 0 ? void 0 : n.clientHeight) || 0, Q = x && ((t = j.current) === null || t === void 0 ? void 0 : t.clientHeight) || 0, E = ce(() => {
1348
- var B, U;
1349
- return !(!((B = _.bottom) === null || B === void 0) && B.length) && !(!((U = _.top) === null || U === void 0) && U.length) ? [] : v().rows.filter((X) => X.getIsPinned()).map((X) => X.id);
1350
- }, [_, v().rows]), H = si(g), A = ii(g, H), { virtualRows: $ } = A ?? {}, le = {
1351
- columnVirtualizer: u,
1352
- numRows: H.length,
1353
- table: g
1354
- };
1355
- return o.jsxs(o.Fragment, { children: [!(R != null && R.includes("sticky")) && b("top") && o.jsx(In, Object.assign({}, D, { sx: /* @__PURE__ */ i((B) => Object.assign({ display: f != null && f.startsWith("grid") ? "grid" : void 0, position: "sticky", top: q - 1, zIndex: 1 }, O(D == null ? void 0 : D.sx, B)), "sx"), children: d().map((B, U) => {
1356
- const X = Object.assign(Object.assign({}, le), {
1357
- row: B,
1358
- staticRowIndex: U
1359
- });
1360
- return w === "rows" ? o.jsx(An, Object.assign({}, X), B.id) : o.jsx(gn, Object.assign({}, X), B.id);
1361
- }) })), o.jsx(In, Object.assign({}, D, { sx: /* @__PURE__ */ i((B) => Object.assign({ display: f != null && f.startsWith("grid") ? "grid" : void 0, height: A ? `${A.getTotalSize()}px` : void 0, minHeight: H.length ? void 0 : "100px", position: "relative" }, O(D == null ? void 0 : D.sx, B)), "sx"), children: (l = D == null ? void 0 : D.children) !== null && l !== void 0 ? l : H.length ? o.jsx(o.Fragment, { children: ($ ?? H).map((B, U) => {
1362
- let X = B;
1363
- if (A) {
1364
- if (S) {
1365
- if (B.index % 2 === 1)
1366
- return null;
1367
- U = B.index / 2;
1368
- } else
1369
- U = B.index;
1370
- X = H[U];
1371
- }
1372
- const J = Object.assign(Object.assign({}, le), {
1373
- pinnedRowIds: E,
1374
- row: X,
1375
- rowVirtualizer: A,
1376
- staticRowIndex: U,
1377
- virtualRow: A ? B : void 0
1378
- }), te = `${X.id}-${X.index}`;
1379
- return w === "rows" ? o.jsx(An, Object.assign({}, J), te) : o.jsx(gn, Object.assign({}, J), te);
1380
- }) }) : o.jsx("tr", { style: {
1381
- display: f != null && f.startsWith("grid") ? "grid" : void 0
1382
- }, children: o.jsx("td", { colSpan: g.getVisibleLeafColumns().length, style: {
1383
- display: f != null && f.startsWith("grid") ? "grid" : void 0
1384
- }, children: (s = P == null ? void 0 : P({ table: g })) !== null && s !== void 0 ? s : o.jsx(xn, { sx: {
1385
- color: "text.secondary",
1386
- fontStyle: "italic",
1387
- maxWidth: `min(100vw, ${(r = (a = T.current) === null || a === void 0 ? void 0 : a.clientWidth) !== null && r !== void 0 ? r : 360}px)`,
1388
- py: "2rem",
1389
- textAlign: "center",
1390
- width: "100%"
1391
- }, children: k || I.length ? C.noResultsFound : C.noRecordsToDisplay }) }) }) })), !(R != null && R.includes("sticky")) && b("bottom") && o.jsx(In, Object.assign({}, D, { sx: /* @__PURE__ */ i((B) => Object.assign({ bottom: Q - 1, display: f != null && f.startsWith("grid") ? "grid" : void 0, position: "sticky", zIndex: 1 }, O(D == null ? void 0 : D.sx, B)), "sx"), children: m().map((B, U) => {
1392
- const X = Object.assign(Object.assign({}, le), {
1393
- row: B,
1394
- staticRowIndex: U
1395
- });
1396
- return w === "rows" ? o.jsx(An, Object.assign({}, X), B.id) : o.jsx(gn, Object.assign({}, X), B.id);
1397
- }) }))] });
1398
- }, "MRT_TableBody"), ci = Gn(Lo, (e, n) => e.table.options.data === n.table.options.data), ui = /* @__PURE__ */ i((e) => {
1399
- var n, t, l, { footer: s, staticColumnIndex: a, table: r } = e, u = L(e, ["footer", "staticColumnIndex", "table"]);
1400
- const g = qe(), { getState: p, options: { enableColumnPinning: m, muiTableFooterCellProps: b, enableKeyboardShortcuts: v } } = r, { density: c } = p(), { column: d } = s, { columnDef: x } = d, { columnDefType: h } = x, f = m && x.columnDefType !== "group" && d.getIsPinned(), C = { column: d, table: r }, w = Object.assign(Object.assign(Object.assign({}, O(b, C)), O(x.muiTableFooterCellProps, C)), u), F = /* @__PURE__ */ i((S) => {
1401
- var P;
1402
- (P = w == null ? void 0 : w.onKeyDown) === null || P === void 0 || P.call(w, S), qn({
1403
- event: S,
1404
- cellValue: s.column.columnDef.footer,
1405
- table: r
1406
- });
1407
- }, "handleKeyDown");
1408
- return o.jsx(jn, Object.assign({ align: h === "group" ? "center" : g.direction === "rtl" ? "right" : "left", colSpan: s.colSpan, "data-index": a, "data-pinned": !!f || void 0, tabIndex: v ? 0 : void 0, variant: "footer" }, w, { onKeyDown: F, sx: /* @__PURE__ */ i((S) => Object.assign(Object.assign({ fontWeight: "bold", p: c === "compact" ? "0.5rem" : c === "comfortable" ? "1rem" : "1.5rem", verticalAlign: "top" }, Qn({
1409
- column: d,
1410
- header: s,
1411
- table: r,
1412
- tableCellProps: w,
1413
- theme: S
1414
- })), O(w == null ? void 0 : w.sx, S)), "sx"), children: (n = w.children) !== null && n !== void 0 ? n : s.isPlaceholder ? null : (l = (t = O(x.Footer, {
1415
- column: d,
1416
- footer: s,
1417
- table: r
1418
- })) !== null && t !== void 0 ? t : x.footer) !== null && l !== void 0 ? l : null }));
1419
- }, "MRT_TableFooterCell"), gi = /* @__PURE__ */ i((e) => {
1420
- var n, { columnVirtualizer: t, footerGroup: l, table: s } = e, a = L(e, ["columnVirtualizer", "footerGroup", "table"]);
1421
- const { options: { layoutMode: r, mrtTheme: { baseBackgroundColor: u }, muiTableFooterRowProps: g } } = s, { virtualColumns: p, virtualPaddingLeft: m, virtualPaddingRight: b } = t ?? {};
1422
- if (!(!((n = l.headers) === null || n === void 0) && n.some((c) => typeof c.column.columnDef.footer == "string" && !!c.column.columnDef.footer || c.column.columnDef.Footer)))
1423
- return null;
1424
- const v = Object.assign(Object.assign({}, O(g, {
1425
- footerGroup: l,
1426
- table: s
1427
- })), a);
1428
- return o.jsxs(Cn, Object.assign({}, v, { sx: /* @__PURE__ */ i((c) => Object.assign({ backgroundColor: u, display: r != null && r.startsWith("grid") ? "flex" : void 0, position: "relative", width: "100%" }, O(v == null ? void 0 : v.sx, c)), "sx"), children: [m ? o.jsx("th", { style: { display: "flex", width: m } }) : null, (p ?? l.headers).map((c, d) => {
1429
- let x = c;
1430
- return t && (d = c.index, x = l.headers[d]), x ? o.jsx(ui, { footer: x, staticColumnIndex: d, table: s }, x.id) : null;
1431
- }), b ? o.jsx("th", { style: { display: "flex", width: b } }) : null] }));
1432
- }, "MRT_TableFooterRow"), pi = /* @__PURE__ */ i((e) => {
1433
- var { columnVirtualizer: n, table: t } = e, l = L(e, ["columnVirtualizer", "table"]);
1434
- const { getState: s, options: { enableStickyFooter: a, layoutMode: r, muiTableFooterProps: u }, refs: { tableFooterRef: g } } = t, { isFullScreen: p } = s(), m = Object.assign(Object.assign({}, O(u, {
1435
- table: t
1436
- })), l), b = (p || a) && a !== !1, v = t.getFooterGroups();
1437
- return v.some((c) => {
1438
- var d;
1439
- return (d = c.headers) === null || d === void 0 ? void 0 : d.some((x) => typeof x.column.columnDef.footer == "string" && !!x.column.columnDef.footer || x.column.columnDef.Footer);
1440
- }) ? o.jsx(Wt, Object.assign({}, m, { ref: /* @__PURE__ */ i((c) => {
1441
- g.current = c, m != null && m.ref && (m.ref.current = c);
1442
- }, "ref"), sx: /* @__PURE__ */ i((c) => Object.assign({ bottom: b ? 0 : void 0, display: r != null && r.startsWith("grid") ? "grid" : void 0, opacity: b ? 0.97 : void 0, outline: b ? c.palette.mode === "light" ? `1px solid ${c.palette.grey[300]}` : `1px solid ${c.palette.grey[700]}` : void 0, position: b ? "sticky" : "relative", zIndex: b ? 1 : void 0 }, O(m == null ? void 0 : m.sx, c)), "sx"), children: v.map((c) => o.jsx(gi, { columnVirtualizer: n, footerGroup: c, table: t }, c.id)) })) : null;
1443
- }, "MRT_TableFooter"), mi = /* @__PURE__ */ i((e) => [
1444
- {
1445
- divider: !1,
1446
- label: e.filterFuzzy,
1447
- option: "fuzzy",
1448
- symbol: "≈"
1449
- },
1450
- {
1451
- divider: !1,
1452
- label: e.filterContains,
1453
- option: "contains",
1454
- symbol: "*"
1455
- },
1456
- {
1457
- divider: !1,
1458
- label: e.filterStartsWith,
1459
- option: "startsWith",
1460
- symbol: "a"
1461
- },
1462
- {
1463
- divider: !0,
1464
- label: e.filterEndsWith,
1465
- option: "endsWith",
1466
- symbol: "z"
1467
- },
1468
- {
1469
- divider: !1,
1470
- label: e.filterEquals,
1471
- option: "equals",
1472
- symbol: "="
1473
- },
1474
- {
1475
- divider: !0,
1476
- label: e.filterNotEquals,
1477
- option: "notEquals",
1478
- symbol: "≠"
1479
- },
1480
- {
1481
- divider: !1,
1482
- label: e.filterBetween,
1483
- option: "between",
1484
- symbol: "⇿"
1485
- },
1486
- {
1487
- divider: !0,
1488
- label: e.filterBetweenInclusive,
1489
- option: "betweenInclusive",
1490
- symbol: "⬌"
1491
- },
1492
- {
1493
- divider: !1,
1494
- label: e.filterGreaterThan,
1495
- option: "greaterThan",
1496
- symbol: ">"
1497
- },
1498
- {
1499
- divider: !1,
1500
- label: e.filterGreaterThanOrEqualTo,
1501
- option: "greaterThanOrEqualTo",
1502
- symbol: "≥"
1503
- },
1504
- {
1505
- divider: !1,
1506
- label: e.filterLessThan,
1507
- option: "lessThan",
1508
- symbol: "<"
1509
- },
1510
- {
1511
- divider: !0,
1512
- label: e.filterLessThanOrEqualTo,
1513
- option: "lessThanOrEqualTo",
1514
- symbol: "≤"
1515
- },
1516
- {
1517
- divider: !1,
1518
- label: e.filterEmpty,
1519
- option: "empty",
1520
- symbol: "∅"
1521
- },
1522
- {
1523
- divider: !1,
1524
- label: e.filterNotEmpty,
1525
- option: "notEmpty",
1526
- symbol: "!∅"
1527
- }
1528
- ], "mrtFilterOptions"), cn = ["between", "betweenInclusive", "inNumberRange"], zn = ["empty", "notEmpty"], vi = ["arrIncludesSome", "arrIncludesAll", "arrIncludes"], bi = ["range-slider", "date-range", "datetime-range", "range"], eo = /* @__PURE__ */ i((e) => {
1529
- var n, t, l, s, { anchorEl: a, header: r, onSelect: u, setAnchorEl: g, setFilterValue: p, table: m } = e, b = L(e, ["anchorEl", "header", "onSelect", "setAnchorEl", "setFilterValue", "table"]);
1530
- const { getState: v, options: { columnFilterModeOptions: c, globalFilterModeOptions: d, localization: x, mrtTheme: { menuBackgroundColor: h }, renderColumnFilterModeMenuItems: f, renderGlobalFilterModeMenuItems: C }, setColumnFilterFns: w, setGlobalFilterFn: F } = m, { density: S, globalFilterFn: P } = v(), { column: R } = r ?? {}, { columnDef: j } = R ?? {}, y = R == null ? void 0 : R.getFilterValue();
1531
- let T = (n = j == null ? void 0 : j.columnFilterModeOptions) !== null && n !== void 0 ? n : c;
1532
- bi.includes(j == null ? void 0 : j.filterVariant) && (T = [
1533
- ...cn,
1534
- ...T ?? []
1535
- ].filter((_) => cn.includes(_)));
1536
- const I = ce(() => mi(x).filter((_) => j ? T === void 0 || (T == null ? void 0 : T.includes(_.option)) : (!d || d.includes(_.option)) && ["contains", "fuzzy", "startsWith"].includes(_.option)), []), k = /* @__PURE__ */ i((_) => {
1537
- var D, q;
1538
- const Q = (D = j == null ? void 0 : j._filterFn) !== null && D !== void 0 ? D : "";
1539
- !r || !R ? F(_) : _ !== Q && (w((E) => Object.assign(Object.assign({}, E), { [r.id]: _ })), zn.includes(_) ? y !== " " && !zn.includes(Q) ? R.setFilterValue(" ") : y && R.setFilterValue(y) : (j == null ? void 0 : j.filterVariant) === "multi-select" || vi.includes(_) ? y instanceof String || y != null && y.length ? (R.setFilterValue([]), p == null || p([])) : y && R.setFilterValue(y) : !((q = j == null ? void 0 : j.filterVariant) === null || q === void 0) && q.includes("range") || cn.includes(_) ? !Array.isArray(y) || !(y != null && y.every((E) => E === "")) && !cn.includes(Q) ? (R.setFilterValue(["", ""]), p == null || p("")) : R.setFilterValue(y) : Array.isArray(y) ? (R.setFilterValue(""), p == null || p("")) : y === " " && zn.includes(Q) ? R.setFilterValue(void 0) : R.setFilterValue(y)), g(null), u == null || u();
1540
- }, "handleSelectFilterMode"), M = r && j ? j._filterFn : P;
1541
- return o.jsx(on, Object.assign({ MenuListProps: {
1542
- dense: S === "compact",
1543
- sx: {
1544
- backgroundColor: h
1545
- }
1546
- }, anchorEl: a, anchorOrigin: { horizontal: "right", vertical: "center" }, disableScrollLock: !0, onClose: /* @__PURE__ */ i(() => g(null), "onClose"), open: !!a }, b, { children: (s = r && R && j ? (l = (t = j.renderColumnFilterModeMenuItems) === null || t === void 0 ? void 0 : t.call(j, {
1547
- column: R,
1548
- internalFilterOptions: I,
1549
- onSelectFilterMode: k,
1550
- table: m
1551
- })) !== null && l !== void 0 ? l : f == null ? void 0 : f({
1552
- column: R,
1553
- internalFilterOptions: I,
1554
- onSelectFilterMode: k,
1555
- table: m
1556
- }) : C == null ? void 0 : C({
1557
- internalFilterOptions: I,
1558
- onSelectFilterMode: k,
1559
- table: m
1560
- })) !== null && s !== void 0 ? s : I.map(({ divider: _, label: D, option: q, symbol: Q }, E) => o.jsx(Pe, { divider: _, icon: Q, label: D, onClick: /* @__PURE__ */ i(() => k(q), "onClick"), selected: q === M, table: m, value: q }, E)) }));
1561
- }, "MRT_FilterOptionMenu"), fi = /* @__PURE__ */ i((e) => {
1562
- var n, t, l, s, a, r, u, g, p, m, { anchorEl: b, header: v, setAnchorEl: c, table: d } = e, x = L(e, ["anchorEl", "header", "setAnchorEl", "table"]);
1563
- const { getAllLeafColumns: h, getState: f, options: { columnFilterDisplayMode: C, columnFilterModeOptions: w, enableColumnFilterModes: F, enableColumnFilters: S, enableColumnPinning: P, enableColumnResizing: R, enableGrouping: j, enableHiding: y, enableSorting: T, enableSortingRemoval: I, icons: { ClearAllIcon: k, DynamicFeedIcon: M, FilterListIcon: _, FilterListOffIcon: D, PushPinIcon: q, RestartAltIcon: Q, SortIcon: E, ViewColumnIcon: H, VisibilityOffIcon: A }, localization: $, mrtTheme: { menuBackgroundColor: le }, renderColumnActionsMenuItems: B }, refs: { filterInputRefs: U }, setColumnFilterFns: X, setColumnOrder: J, setColumnSizingInfo: te, setShowColumnFilters: G } = d, { column: K } = v, { columnDef: se } = K, { columnSizing: W, columnVisibility: V, density: ee, showColumnFilters: Y } = f(), je = K.getFilterValue(), [fe, Ce] = oe(null), me = /* @__PURE__ */ i(() => {
1564
- K.clearSorting(), c(null);
1565
- }, "handleClearSort"), we = /* @__PURE__ */ i(() => {
1566
- K.toggleSorting(!1), c(null);
1567
- }, "handleSortAsc"), Te = /* @__PURE__ */ i(() => {
1568
- K.toggleSorting(!0), c(null);
1569
- }, "handleSortDesc"), ze = /* @__PURE__ */ i(() => {
1570
- te((re) => Object.assign(Object.assign({}, re), { isResizingColumn: !1 })), K.resetSize(), c(null);
1571
- }, "handleResetColumnSize"), ge = /* @__PURE__ */ i(() => {
1572
- K.toggleVisibility(!1), c(null);
1573
- }, "handleHideColumn"), ve = /* @__PURE__ */ i((re) => {
1574
- K.pin(re), c(null);
1575
- }, "handlePinColumn"), Fe = /* @__PURE__ */ i(() => {
1576
- K.toggleGrouping(), J((re) => ["mrt-row-expand", ...re]), c(null);
1577
- }, "handleGroupByColumn"), pe = /* @__PURE__ */ i(() => {
1578
- K.setFilterValue(void 0), c(null), ["empty", "notEmpty"].includes(se._filterFn) && X((re) => {
1579
- var ke;
1580
- return Object.assign(Object.assign({}, re), { [v.id]: (ke = he == null ? void 0 : he[0]) !== null && ke !== void 0 ? ke : "fuzzy" });
1581
- });
1582
- }, "handleClearFilter"), _e = /* @__PURE__ */ i(() => {
1583
- G(!0), queueMicrotask(() => {
1584
- var re, ke;
1585
- return (ke = (re = U.current) === null || re === void 0 ? void 0 : re[`${K.id}-0`]) === null || ke === void 0 ? void 0 : ke.focus();
1586
- }), c(null);
1587
- }, "handleFilterByColumn"), ye = /* @__PURE__ */ i(() => {
1588
- h().filter((re) => re.columnDef.enableHiding !== !1).forEach((re) => re.toggleVisibility(!0)), c(null);
1589
- }, "handleShowAllColumns"), Z = /* @__PURE__ */ i((re) => {
1590
- re.stopPropagation(), Ce(re.currentTarget);
1591
- }, "handleOpenFilterModeMenu"), ne = !!se.filterSelectOptions, he = (n = se == null ? void 0 : se.columnFilterModeOptions) !== null && n !== void 0 ? n : w, Re = F && se.enableColumnFilterModes !== !1 && !ne && (he === void 0 || !!(he != null && he.length)), De = [
1592
- ...T && K.getCanSort() ? [
1593
- I !== !1 && o.jsx(Pe, { disabled: K.getIsSorted() === !1, icon: o.jsx(k, {}), label: $.clearSort, onClick: me, table: d }, 0),
1594
- o.jsx(Pe, { disabled: K.getIsSorted() === "asc", icon: o.jsx(E, { style: { transform: "rotate(180deg) scaleX(-1)" } }), label: (t = $.sortByColumnAsc) === null || t === void 0 ? void 0 : t.replace("{column}", String(se.header)), onClick: we, table: d }, 1),
1595
- o.jsx(Pe, { disabled: K.getIsSorted() === "desc", divider: S || j || y, icon: o.jsx(E, {}), label: (l = $.sortByColumnDesc) === null || l === void 0 ? void 0 : l.replace("{column}", String(se.header)), onClick: Te, table: d }, 2)
1596
- ] : [],
1597
- ...S && K.getCanFilter() ? [
1598
- o.jsx(Pe, { disabled: !je || Array.isArray(je) && !je.filter((re) => re).length, icon: o.jsx(D, {}), label: $.clearFilter, onClick: pe, table: d }, 3),
1599
- C === "subheader" && o.jsx(Pe, { disabled: Y && !F, divider: j || y, icon: o.jsx(_, {}), label: (s = $.filterByColumn) === null || s === void 0 ? void 0 : s.replace("{column}", String(se.header)), onClick: Y ? Z : _e, onOpenSubMenu: Re ? Z : void 0, table: d }, 4),
1600
- Re && o.jsx(eo, { anchorEl: fe, header: v, onSelect: _e, setAnchorEl: Ce, table: d }, 5)
1601
- ].filter(Boolean) : [],
1602
- ...j && K.getCanGroup() ? [
1603
- o.jsx(Pe, { divider: P, icon: o.jsx(M, {}), label: (a = $[K.getIsGrouped() ? "ungroupByColumn" : "groupByColumn"]) === null || a === void 0 ? void 0 : a.replace("{column}", String(se.header)), onClick: Fe, table: d }, 6)
1604
- ] : [],
1605
- ...P && K.getCanPin() ? [
1606
- o.jsx(Pe, { disabled: K.getIsPinned() === "left" || !K.getCanPin(), icon: o.jsx(q, { style: { transform: "rotate(90deg)" } }), label: $.pinToLeft, onClick: /* @__PURE__ */ i(() => ve("left"), "onClick"), table: d }, 7),
1607
- o.jsx(Pe, { disabled: K.getIsPinned() === "right" || !K.getCanPin(), icon: o.jsx(q, { style: { transform: "rotate(-90deg)" } }), label: $.pinToRight, onClick: /* @__PURE__ */ i(() => ve("right"), "onClick"), table: d }, 8),
1608
- o.jsx(Pe, { disabled: !K.getIsPinned(), divider: y, icon: o.jsx(q, {}), label: $.unpin, onClick: /* @__PURE__ */ i(() => ve(!1), "onClick"), table: d }, 9)
1609
- ] : [],
1610
- ...R && K.getCanResize() ? [
1611
- o.jsx(Pe, { disabled: W[K.id] === void 0, icon: o.jsx(Q, {}), label: $.resetColumnSize, onClick: ze, table: d }, 10)
1612
- ] : [],
1613
- ...y ? [
1614
- o.jsx(Pe, { disabled: !K.getCanHide(), icon: o.jsx(A, {}), label: (r = $.hideColumn) === null || r === void 0 ? void 0 : r.replace("{column}", String(se.header)), onClick: ge, table: d }, 11),
1615
- o.jsx(Pe, { disabled: !Object.values(V).filter((re) => !re).length, icon: o.jsx(H, {}), label: (u = $.showAllColumns) === null || u === void 0 ? void 0 : u.replace("{column}", String(se.header)), onClick: ye, table: d }, 12)
1616
- ] : []
1617
- ].filter(Boolean);
1618
- return o.jsx(on, Object.assign({ MenuListProps: {
1619
- dense: ee === "compact",
1620
- sx: {
1621
- backgroundColor: le
1622
- }
1623
- }, anchorEl: b, disableScrollLock: !0, onClose: /* @__PURE__ */ i(() => c(null), "onClose"), open: !!b }, x, { children: (m = (p = (g = se.renderColumnActionsMenuItems) === null || g === void 0 ? void 0 : g.call(se, {
1624
- closeMenu: /* @__PURE__ */ i(() => c(null), "closeMenu"),
1625
- column: K,
1626
- internalColumnMenuItems: De,
1627
- table: d
1628
- })) !== null && p !== void 0 ? p : B == null ? void 0 : B({
1629
- closeMenu: /* @__PURE__ */ i(() => c(null), "closeMenu"),
1630
- column: K,
1631
- internalColumnMenuItems: De,
1632
- table: d
1633
- })) !== null && m !== void 0 ? m : De }));
1634
- }, "MRT_ColumnActionMenu"), hi = /* @__PURE__ */ i((e) => {
1635
- var n, t, { header: l, table: s } = e, a = L(e, ["header", "table"]);
1636
- const { options: { icons: { MoreVertIcon: r }, localization: u, muiColumnActionsButtonProps: g } } = s, { column: p } = l, { columnDef: m } = p, [b, v] = oe(null), c = /* @__PURE__ */ i((x) => {
1637
- x.stopPropagation(), x.preventDefault(), v(x.currentTarget);
1638
- }, "handleClick"), d = Object.assign(Object.assign(Object.assign({}, O(g, {
1639
- column: p,
1640
- table: s
1641
- })), O(m.muiColumnActionsButtonProps, {
1642
- column: p,
1643
- table: s
1644
- })), a);
1645
- return o.jsxs(o.Fragment, { children: [o.jsx(de, Object.assign({}, Be("top"), { title: (n = d == null ? void 0 : d.title) !== null && n !== void 0 ? n : u.columnActions, children: o.jsx(ue, Object.assign({ "aria-label": u.columnActions, onClick: c, size: "small" }, d, { sx: /* @__PURE__ */ i((x) => Object.assign({ "&:hover": {
1646
- opacity: 1
1647
- }, height: "2rem", m: "-8px -4px", opacity: 0.3, transition: "all 150ms", width: "2rem" }, O(d == null ? void 0 : d.sx, x)), "sx"), title: void 0, children: (t = d == null ? void 0 : d.children) !== null && t !== void 0 ? t : o.jsx(r, { style: { transform: "scale(0.9)" } }) })) })), b && o.jsx(fi, { anchorEl: b, header: l, setAnchorEl: v, table: s })] });
1648
- }, "MRT_TableHeadCellColumnActionsButton"), xi = /* @__PURE__ */ i((e) => {
1649
- var n, t, l, { column: s, table: a } = e, r = L(e, ["column", "table"]);
1650
- const { getState: u, options: { localization: g, muiFilterCheckboxProps: p } } = a, { density: m } = u(), { columnDef: b } = s, v = Object.assign(Object.assign(Object.assign({}, O(p, {
1651
- column: s,
1652
- table: a
1653
- })), O(b.muiFilterCheckboxProps, {
1654
- column: s,
1655
- table: a
1656
- })), r), c = (n = g.filterByColumn) === null || n === void 0 ? void 0 : n.replace("{column}", b.header);
1657
- return o.jsx(de, Object.assign({}, Be(), { title: (t = v == null ? void 0 : v.title) !== null && t !== void 0 ? t : c, children: o.jsx(ro, { control: o.jsx(Wn, Object.assign({ checked: s.getFilterValue() === "true", color: s.getFilterValue() === void 0 ? "default" : "primary", indeterminate: s.getFilterValue() === void 0, size: m === "compact" ? "small" : "medium" }, v, { onChange: /* @__PURE__ */ i((d, x) => {
1658
- var h;
1659
- s.setFilterValue(s.getFilterValue() === void 0 ? "true" : s.getFilterValue() === "true" ? "false" : void 0), (h = v == null ? void 0 : v.onChange) === null || h === void 0 || h.call(v, d, x);
1660
- }, "onChange"), onClick: /* @__PURE__ */ i((d) => {
1661
- var x;
1662
- d.stopPropagation(), (x = v == null ? void 0 : v.onClick) === null || x === void 0 || x.call(v, d);
1663
- }, "onClick"), sx: /* @__PURE__ */ i((d) => Object.assign({ height: "2.5rem", width: "2.5rem" }, O(v == null ? void 0 : v.sx, d)), "sx") })), disableTypography: !0, label: (l = v.title) !== null && l !== void 0 ? l : c, sx: { color: "text.secondary", fontWeight: "normal", mt: "-4px" }, title: void 0 }) }));
1664
- }, "MRT_FilterCheckbox"), Go = /* @__PURE__ */ i((e) => {
1665
- var n, t, l, s, a, r, u, g, p, m, b, v, c, d, x, h, f, C, w, F, S, P, R, { header: j, rangeFilterIndex: y, table: T } = e, I = L(e, ["header", "rangeFilterIndex", "table"]);
1666
- const { options: { enableColumnFilterModes: k, icons: { CloseIcon: M, FilterListIcon: _ }, localization: D, manualFiltering: q, muiFilterAutocompleteProps: Q, muiFilterDatePickerProps: E, muiFilterDateTimePickerProps: H, muiFilterTextFieldProps: A, muiFilterTimePickerProps: $ }, refs: { filterInputRefs: le }, setColumnFilterFns: B } = T, { column: U } = j, { columnDef: X } = U, { filterVariant: J } = X, te = { column: U, rangeFilterIndex: y, table: T }, G = Object.assign(Object.assign(Object.assign({}, O(A, te)), O(X.muiFilterTextFieldProps, te)), I), K = Object.assign(Object.assign({}, O(Q, te)), O(X.muiFilterAutocompleteProps, te)), se = Object.assign(Object.assign({}, O(E, te)), O(X.muiFilterDatePickerProps, te)), W = Object.assign(Object.assign({}, O(H, te)), O(X.muiFilterDateTimePickerProps, te)), V = Object.assign(Object.assign({}, O($, te)), O(X.muiFilterTimePickerProps, te)), { allowedColumnFilterOptions: ee, currentFilterOption: Y, facetedUniqueValues: je, isAutocompleteFilter: fe, isDateFilter: Ce, isMultiSelectFilter: me, isRangeFilter: we, isSelectFilter: Te, isTextboxFilter: ze } = wn({ header: j, table: T }), ge = mo({ header: j, table: T }), ve = ["empty", "notEmpty"].includes(Y) ? D[`filter${((t = (n = Y == null ? void 0 : Y.charAt) === null || n === void 0 ? void 0 : n.call(Y, 0)) === null || t === void 0 ? void 0 : t.toUpperCase()) + (Y == null ? void 0 : Y.slice(1))}`] : "", Fe = we ? y === 0 ? D.min : y === 1 ? D.max : "" : (l = G == null ? void 0 : G.placeholder) !== null && l !== void 0 ? l : (s = D.filterByColumn) === null || s === void 0 ? void 0 : s.replace("{column}", String(X.header)), pe = !!(k && X.enableColumnFilterModes !== !1 && !y && (ee === void 0 || ee != null && ee.length)), [_e, ye] = oe(null), [Z, ne] = oe(() => {
1667
- var z, ie;
1668
- return me ? U.getFilterValue() || [] : we ? ((z = U.getFilterValue()) === null || z === void 0 ? void 0 : z[y]) || "" : fe ? typeof U.getFilterValue() == "string" ? U.getFilterValue() : "" : (ie = U.getFilterValue()) !== null && ie !== void 0 ? ie : "";
1669
- }), [he, Re] = oe(() => fe && U.getFilterValue() || null), De = hn(ao((z) => {
1670
- we ? U.setFilterValue((ie) => {
1671
- const Oe = ie ?? ["", ""];
1672
- return Oe[y] = z ?? void 0, Oe;
1673
- }) : U.setFilterValue(z ?? void 0);
1674
- }, ze ? q ? 400 : 200 : 1), []), re = /* @__PURE__ */ i((z) => {
1675
- ne(z ?? ""), De(z);
1676
- }, "handleChange"), ke = /* @__PURE__ */ i((z) => {
1677
- var ie;
1678
- const Oe = G.type === "date" ? z.target.valueAsDate : G.type === "number" ? z.target.valueAsNumber : z.target.value;
1679
- re(Oe), (ie = G == null ? void 0 : G.onChange) === null || ie === void 0 || ie.call(G, z);
1680
- }, "handleTextFieldChange"), Ke = /* @__PURE__ */ i((z, ie, Oe) => {
1681
- re(ie);
1682
- }, "handleAutocompleteInputChange"), Ze = /* @__PURE__ */ i((z) => {
1683
- Re(z), De(We(z).value);
1684
- }, "handleAutocompleteChange"), Ie = /* @__PURE__ */ i(() => {
1685
- me ? (ne([]), U.setFilterValue([])) : we ? (ne(""), U.setFilterValue((z) => {
1686
- const ie = Array.isArray(z) && z || ["", ""];
1687
- return ie[y] = void 0, ie;
1688
- })) : fe ? (Re(null), ne("")) : (ne(""), U.setFilterValue(void 0));
1689
- }, "handleClear"), On = /* @__PURE__ */ i(() => {
1690
- ne(""), U.setFilterValue(void 0), B((z) => {
1691
- var ie;
1692
- return Object.assign(Object.assign({}, z), { [j.id]: (ie = ee == null ? void 0 : ee[0]) !== null && ie !== void 0 ? ie : "fuzzy" });
1693
- });
1694
- }, "handleClearEmptyFilterChip"), Fn = /* @__PURE__ */ i((z) => {
1695
- ye(z.currentTarget);
1696
- }, "handleFilterMenuOpen"), ln = be(!1);
1697
- if (Ae(() => {
1698
- if (ln.current) {
1699
- const z = U.getFilterValue();
1700
- z === void 0 ? Ie() : ne(we && y !== void 0 ? z[y] : z);
1701
- }
1702
- ln.current = !0;
1703
- }, [U.getFilterValue()]), X.Filter)
1704
- return o.jsx(o.Fragment, { children: (a = X.Filter) === null || a === void 0 ? void 0 : a.call(X, { column: U, header: j, rangeFilterIndex: y, table: T }) });
1705
- const sn = !fe && !Ce && !ve ? o.jsx(mn, { position: "end", sx: {
1706
- mr: Te || me ? "20px" : void 0,
1707
- visibility: ((r = Z == null ? void 0 : Z.length) !== null && r !== void 0 ? r : 0) > 0 ? "visible" : "hidden"
1708
- }, children: o.jsx(de, { placement: "right", title: (u = D.clearFilter) !== null && u !== void 0 ? u : "", children: o.jsx("span", { children: o.jsx(ue, { "aria-label": D.clearFilter, disabled: !(!((g = Z == null ? void 0 : Z.toString()) === null || g === void 0) && g.length), onClick: Ie, size: "small", sx: {
1709
- height: "2rem",
1710
- transform: "scale(0.9)",
1711
- width: "2rem"
1712
- }, children: o.jsx(M, {}) }) }) }) }) : null, rn = pe ? o.jsxs(mn, { position: "start", children: [o.jsx(de, { title: D.changeFilterMode, children: o.jsx("span", { children: o.jsx(ue, { "aria-label": D.changeFilterMode, onClick: Fn, size: "small", sx: { height: "1.75rem", width: "1.75rem" }, children: o.jsx(_, {}) }) }) }), ve && o.jsx(Hn, { label: ve, onDelete: On })] }) : null, Se = Object.assign(Object.assign({ fullWidth: !0, helperText: pe ? o.jsx("label", { children: D.filterMode.replace("{filterType}", D[`filter${((p = Y == null ? void 0 : Y.charAt(0)) === null || p === void 0 ? void 0 : p.toUpperCase()) + (Y == null ? void 0 : Y.slice(1))}`]) }) : null, inputRef: /* @__PURE__ */ i((z) => {
1713
- le.current[`${U.id}-${y ?? 0}`] = z, G.inputRef && (G.inputRef = z);
1714
- }, "inputRef"), margin: "none", placeholder: ve || Te || me ? void 0 : Fe, variant: "standard" }, G), { slotProps: Object.assign(Object.assign({}, G.slotProps), { formHelperText: Object.assign({ sx: {
1715
- fontSize: "0.75rem",
1716
- lineHeight: "0.8rem",
1717
- whiteSpace: "nowrap"
1718
- } }, (m = G.slotProps) === null || m === void 0 ? void 0 : m.formHelperText), input: sn ? Object.assign({ endAdornment: sn, startAdornment: rn }, (b = G.slotProps) === null || b === void 0 ? void 0 : b.input) : Object.assign({ startAdornment: rn }, (v = G.slotProps) === null || v === void 0 ? void 0 : v.input), htmlInput: Object.assign({ "aria-label": Fe, autoComplete: "off", disabled: !!ve, sx: {
1719
- textOverflow: "ellipsis",
1720
- width: ve ? 0 : void 0
1721
- }, title: Fe }, (c = G.slotProps) === null || c === void 0 ? void 0 : c.htmlInput) }), onKeyDown: /* @__PURE__ */ i((z) => {
1722
- var ie;
1723
- z.stopPropagation(), (ie = G.onKeyDown) === null || ie === void 0 || ie.call(G, z);
1724
- }, "onKeyDown"), sx: /* @__PURE__ */ i((z) => Object.assign({ minWidth: Ce ? "160px" : k && y === 0 ? "110px" : we ? "100px" : ve ? "auto" : "120px", mx: "-2px", p: 0, width: "calc(100% + 4px)" }, O(G == null ? void 0 : G.sx, z)), "sx") }), Qe = {
1725
- onChange: /* @__PURE__ */ i((z) => {
1726
- re(z);
1727
- }, "onChange"),
1728
- value: Z || null
1729
- };
1730
- return o.jsxs(o.Fragment, { children: [J != null && J.startsWith("time") ? o.jsx(Zt, Object.assign({}, Qe, V, { slotProps: {
1731
- field: Object.assign({ clearable: !0, onClear: /* @__PURE__ */ i(() => Ie(), "onClear") }, (d = V == null ? void 0 : V.slotProps) === null || d === void 0 ? void 0 : d.field),
1732
- textField: Object.assign(Object.assign({}, Se), (x = V == null ? void 0 : V.slotProps) === null || x === void 0 ? void 0 : x.textField)
1733
- } })) : J != null && J.startsWith("datetime") ? o.jsx(Ut, Object.assign({}, Qe, W, { slotProps: {
1734
- field: Object.assign({ clearable: !0, onClear: /* @__PURE__ */ i(() => Ie(), "onClear") }, (h = W == null ? void 0 : W.slotProps) === null || h === void 0 ? void 0 : h.field),
1735
- textField: Object.assign(Object.assign({}, Se), (f = W == null ? void 0 : W.slotProps) === null || f === void 0 ? void 0 : f.textField)
1736
- } })) : J != null && J.startsWith("date") ? o.jsx(Kt, Object.assign({}, Qe, se, { slotProps: {
1737
- field: Object.assign({ clearable: !0, onClear: /* @__PURE__ */ i(() => Ie(), "onClear") }, (C = se == null ? void 0 : se.slotProps) === null || C === void 0 ? void 0 : C.field),
1738
- textField: Object.assign(Object.assign({}, Se), (w = se == null ? void 0 : se.slotProps) === null || w === void 0 ? void 0 : w.textField)
1739
- } })) : fe ? o.jsx(qt, Object.assign({ freeSolo: !0, getOptionLabel: /* @__PURE__ */ i((z) => We(z).label, "getOptionLabel"), onChange: /* @__PURE__ */ i((z, ie) => Ze(ie), "onChange"), options: (F = ge == null ? void 0 : ge.map((z) => We(z))) !== null && F !== void 0 ? F : [], inputValue: Z, onInputChange: Ke }, K, { renderInput: /* @__PURE__ */ i((z) => {
1740
- var ie, Oe, $e, Le, Je;
1741
- return o.jsx(pn, Object.assign({}, Se, z, { slotProps: Object.assign(Object.assign(Object.assign({}, z.slotProps), Se.slotProps), { input: Object.assign(Object.assign(Object.assign({}, z.InputProps), (ie = z.slotProps) === null || ie === void 0 ? void 0 : ie.input), { startAdornment: (
1742
- //@ts-expect-error
1743
- ($e = (Oe = Se == null ? void 0 : Se.slotProps) === null || Oe === void 0 ? void 0 : Oe.input) === null || $e === void 0 ? void 0 : $e.startAdornment
1744
- ) }), htmlInput: Object.assign(Object.assign(Object.assign({}, z.inputProps), (Le = z.slotProps) === null || Le === void 0 ? void 0 : Le.htmlInput), (Je = Se == null ? void 0 : Se.slotProps) === null || Je === void 0 ? void 0 : Je.htmlInput) }), onClick: /* @__PURE__ */ i((Pn) => Pn.stopPropagation(), "onClick") }));
1745
- }, "renderInput"), value: he })) : o.jsx(pn, Object.assign({ select: Te || me }, Se, { slotProps: Object.assign(Object.assign({}, Se.slotProps), { inputLabel: Object.assign({ shrink: Te || me }, (S = Se.slotProps) === null || S === void 0 ? void 0 : S.inputLabel), select: Object.assign({ MenuProps: { disableScrollLock: !0 }, displayEmpty: !0, multiple: me, renderValue: me ? (z) => !Array.isArray(z) || (z == null ? void 0 : z.length) === 0 ? o.jsx(ae, { sx: { opacity: 0.5 }, children: Fe }) : o.jsx(ae, { sx: { display: "flex", flexWrap: "wrap", gap: "2px" }, children: z.map((ie) => {
1746
- const Oe = ge == null ? void 0 : ge.find(($e) => We($e).value === ie);
1747
- return o.jsx(Hn, { label: We(Oe).label }, ie);
1748
- }) }) : void 0 }, (P = Se.slotProps) === null || P === void 0 ? void 0 : P.select) }), onChange: ke, onClick: /* @__PURE__ */ i((z) => z.stopPropagation(), "onClick"), value: me ? Array.isArray(Z) ? Z : [] : Z, children: (Te || me) && [
1749
- o.jsx(Ye, { disabled: !0, divider: !0, hidden: !0, value: "", children: o.jsx(ae, { sx: { opacity: 0.5 }, children: Fe }) }, "p"),
1750
- (R = G.children) !== null && R !== void 0 ? R : ge == null ? void 0 : ge.map((z, ie) => {
1751
- var Oe;
1752
- const { label: $e, value: Le } = We(z);
1753
- return o.jsxs(Ye, { sx: {
1754
- alignItems: "center",
1755
- display: "flex",
1756
- gap: "0.5rem",
1757
- m: 0
1758
- }, value: Le, children: [me && o.jsx(Wn, { checked: ((Oe = U.getFilterValue()) !== null && Oe !== void 0 ? Oe : []).includes(Le), sx: { mr: "0.5rem" } }), $e, " ", !X.filterSelectOptions && `(${je.get(Le)})`] }, `${ie}-${Le}`);
1759
- })
1760
- ] })), o.jsx(eo, { anchorEl: _e, header: j, setAnchorEl: ye, setFilterValue: ne, table: T })] });
1761
- }, "MRT_FilterTextField"), Ci = /* @__PURE__ */ i((e) => {
1762
- var { header: n, table: t } = e, l = L(e, ["header", "table"]);
1763
- return o.jsx(ae, Object.assign({}, l, { sx: /* @__PURE__ */ i((s) => Object.assign({ display: "grid", gap: "1rem", gridTemplateColumns: "1fr 1fr" }, O(l == null ? void 0 : l.sx, s)), "sx"), children: [0, 1].map((s) => o.jsx(Go, { header: n, rangeFilterIndex: s, table: t }, s)) }));
1764
- }, "MRT_FilterRangeFields"), ji = /* @__PURE__ */ i((e) => {
1765
- var n, t, { header: l, table: s } = e, a = L(e, ["header", "table"]);
1766
- const { options: { enableColumnFilterModes: r, localization: u, muiFilterSliderProps: g }, refs: { filterInputRefs: p } } = s, { column: m } = l, { columnDef: b } = m, v = b._filterFn, c = r && b.enableColumnFilterModes !== !1, d = Object.assign(Object.assign(Object.assign({}, O(g, { column: m, table: s })), O(b.muiFilterSliderProps, { column: m, table: s })), a);
1767
- let [x, h] = d.min !== void 0 && d.max !== void 0 ? [d.min, d.max] : (n = m.getFacetedMinMaxValues()) !== null && n !== void 0 ? n : [0, 1];
1768
- Array.isArray(x) && (x = x[0]), Array.isArray(h) && (h = h[0]), x === null && (x = 0), h === null && (h = 1);
1769
- const [f, C] = oe([x, h]), w = m.getFilterValue(), F = be(!1), S = /* @__PURE__ */ i((P) => {
1770
- (P.key === "ArrowLeft" || P.key === "ArrowRight") && P.stopPropagation();
1771
- }, "handleKeyDown");
1772
- return Ae(() => {
1773
- F.current && (w === void 0 ? C([x, h]) : Array.isArray(w) && C(w)), F.current = !0;
1774
- }, [w, x, h]), o.jsxs(nn, { children: [o.jsx(Yt, Object.assign({ disableSwap: !0, max: h, min: x, onChange: /* @__PURE__ */ i((P, R) => {
1775
- C(R);
1776
- }, "onChange"), onChangeCommitted: /* @__PURE__ */ i((P, R) => {
1777
- Array.isArray(R) && (R[0] <= x && R[1] >= h ? m.setFilterValue(void 0) : m.setFilterValue(R));
1778
- }, "onChangeCommitted"), onKeyDown: S, value: f, valueLabelDisplay: "auto" }, d, { slotProps: {
1779
- input: {
1780
- ref: /* @__PURE__ */ i((P) => {
1781
- var R, j;
1782
- P && (p.current[`${m.id}-0`] = P, !((j = (R = d == null ? void 0 : d.slotProps) === null || R === void 0 ? void 0 : R.input) === null || j === void 0) && j.ref && (d.slotProps.input.ref = P));
1783
- }, "ref")
1784
- }
1785
- }, sx: /* @__PURE__ */ i((P) => Object.assign({ m: "auto", minWidth: `${m.getSize() - 50}px`, mt: c ? "6px" : "10px", px: "4px", width: "calc(100% - 8px)" }, O(d == null ? void 0 : d.sx, P)), "sx") })), c ? o.jsx(Xt, { sx: {
1786
- fontSize: "0.75rem",
1787
- lineHeight: "0.8rem",
1788
- m: "-3px -6px",
1789
- whiteSpace: "nowrap"
1790
- }, children: u.filterMode.replace("{filterType}", u[`filter${((t = v == null ? void 0 : v.charAt(0)) === null || t === void 0 ? void 0 : t.toUpperCase()) + (v == null ? void 0 : v.slice(1))}`]) }) : null] });
1791
- }, "MRT_FilterRangeSlider"), $o = /* @__PURE__ */ i((e) => {
1792
- var { header: n, table: t } = e, l = L(e, ["header", "table"]);
1793
- const { getState: s, options: { columnFilterDisplayMode: a } } = t, { showColumnFilters: r } = s(), { column: u } = n, { columnDef: g } = u, { isRangeFilter: p } = wn({ header: n, table: t });
1794
- return o.jsx(tn, Object.assign({ in: r || a === "popover", mountOnEnter: !0, unmountOnExit: !0 }, l, { children: g.filterVariant === "checkbox" ? o.jsx(xi, { column: u, table: t }) : g.filterVariant === "range-slider" ? o.jsx(ji, { header: n, table: t }) : p ? o.jsx(Ci, { header: n, table: t }) : o.jsx(Go, { header: n, table: t }) }));
1795
- }, "MRT_TableHeadCellFilterContainer"), wi = /* @__PURE__ */ i((e) => {
1796
- var n, { header: t, table: l } = e, s = L(e, ["header", "table"]);
1797
- const { options: { columnFilterDisplayMode: a, icons: { FilterAltIcon: r }, localization: u }, refs: { filterInputRefs: g }, setShowColumnFilters: p } = l, { column: m } = t, { columnDef: b } = m, v = m.getFilterValue(), [c, d] = oe(null), { currentFilterOption: x, isMultiSelectFilter: h, isRangeFilter: f, isSelectFilter: C } = wn({ header: t, table: l }), w = mo({ header: t, table: l }), F = /* @__PURE__ */ i((R) => We(w == null ? void 0 : w.find((j) => We(j).value === (R !== void 0 ? v[R] : v))).label, "getSelectLabel"), S = Array.isArray(v) && v.some(Boolean) || !!v && !Array.isArray(v), P = a === "popover" && !S ? (n = u.filterByColumn) === null || n === void 0 ? void 0 : n.replace("{column}", String(b.header)) : u.filteringByColumn.replace("{column}", String(b.header)).replace("{filterType}", x ? u[`filter${x.charAt(0).toUpperCase() + x.slice(1)}`] : "").replace("{filterValue}", `"${Array.isArray(v) ? v.map((R, j) => h ? F(j) : R).join(`" ${f ? u.and : u.or} "`) : C ? F() : v}"`).replace('" "', "");
1798
- return o.jsxs(o.Fragment, { children: [o.jsx(Qt, { in: a === "popover" || !!v && !f || f && (!!(v != null && v[0]) || !!(v != null && v[1])), unmountOnExit: !0, children: o.jsx(ae, { component: "span", sx: { flex: "0 0" }, children: o.jsx(de, { placement: "top", title: P, children: o.jsx(ue, Object.assign({ disableRipple: !0, onClick: /* @__PURE__ */ i((R) => {
1799
- a === "popover" ? d(R.currentTarget) : p(!0), queueMicrotask(() => {
1800
- var j, y, T, I, k, M;
1801
- (T = (y = (j = g.current) === null || j === void 0 ? void 0 : j[`${m.id}-0`]) === null || y === void 0 ? void 0 : y.focus) === null || T === void 0 || T.call(y), (M = (k = (I = g.current) === null || I === void 0 ? void 0 : I[`${m.id}-0`]) === null || k === void 0 ? void 0 : k.select) === null || M === void 0 || M.call(k);
1802
- }), R.stopPropagation();
1803
- }, "onClick"), size: "small" }, s, { sx: /* @__PURE__ */ i((R) => Object.assign({ height: "16px", ml: "4px", opacity: S ? 1 : 0.3, p: "8px", transform: "scale(0.75)", transition: "all 150ms ease-in-out", width: "16px" }, O(s == null ? void 0 : s.sx, R)), "sx"), children: o.jsx(r, {}) })) }) }) }), a === "popover" && o.jsx(Jt, { anchorEl: c, anchorOrigin: {
1804
- horizontal: "center",
1805
- vertical: "top"
1806
- }, disableScrollLock: !0, onClick: /* @__PURE__ */ i((R) => R.stopPropagation(), "onClick"), onClose: /* @__PURE__ */ i((R) => {
1807
- R.stopPropagation(), d(null);
1808
- }, "onClose"), onKeyDown: /* @__PURE__ */ i((R) => R.key === "Enter" && d(null), "onKeyDown"), open: !!c, slotProps: { paper: { sx: { overflow: "visible" } } }, transformOrigin: {
1809
- horizontal: "center",
1810
- vertical: "bottom"
1811
- }, children: o.jsx(ae, { sx: { p: "1rem" }, children: o.jsx($o, { header: t, table: l }) }) })] });
1812
- }, "MRT_TableHeadCellFilterLabel"), yi = /* @__PURE__ */ i((e) => {
1813
- var { column: n, table: t, tableHeadCellRef: l } = e, s = L(e, ["column", "table", "tableHeadCellRef"]);
1814
- const { getState: a, options: { enableColumnOrdering: r, muiColumnDragHandleProps: u }, setColumnOrder: g, setColumnPinning: p, setDraggingColumn: m, setHoveredColumn: b } = t, { columnDef: v } = n, { columnOrder: c, draggingColumn: d, hoveredColumn: x } = a(), h = Object.assign(Object.assign(Object.assign({}, O(u, { column: n, table: t })), O(v.muiColumnDragHandleProps, {
1815
- column: n,
1816
- table: t
1817
- })), s), f = /* @__PURE__ */ i((w) => {
1818
- var F;
1819
- (F = h == null ? void 0 : h.onDragStart) === null || F === void 0 || F.call(h, w), m(n);
1820
- try {
1821
- w.dataTransfer.setDragImage(l.current, 0, 0);
1822
- } catch (S) {
1823
- console.error(S);
1824
- }
1825
- }, "handleDragStart"), C = /* @__PURE__ */ i((w) => {
1826
- var F;
1827
- if ((F = h == null ? void 0 : h.onDragEnd) === null || F === void 0 || F.call(h, w), (x == null ? void 0 : x.id) === "drop-zone")
1828
- n.toggleGrouping();
1829
- else if (r && x && (x == null ? void 0 : x.id) !== (d == null ? void 0 : d.id)) {
1830
- const S = po(n, x, c);
1831
- g(S), p(({ left: P = [], right: R = [] }) => ({
1832
- left: S.filter((j) => P.includes(j)),
1833
- right: S.filter((j) => R.includes(j))
1834
- }));
1835
- }
1836
- m(null), b(null);
1837
- }, "handleDragEnd");
1838
- return o.jsx(Jn, Object.assign({}, h, { onDragEnd: C, onDragStart: f, table: t }));
1839
- }, "MRT_TableHeadCellGrabHandle"), Ri = /* @__PURE__ */ i((e) => {
1840
- var n, { header: t, table: l } = e, s = L(e, ["header", "table"]);
1841
- const { getState: a, options: { columnResizeDirection: r, columnResizeMode: u }, setColumnSizingInfo: g } = l, { density: p } = a(), { column: m } = t, b = t.getResizeHandler(), v = p === "compact" ? "-8px" : p === "comfortable" ? "-16px" : "-24px", c = m.columnDef.columnDefType === "display" ? "4px" : "0";
1842
- return o.jsx(ae, { className: "Mui-TableHeadCell-ResizeHandle-Wrapper", onDoubleClick: /* @__PURE__ */ i(() => {
1843
- g((d) => Object.assign(Object.assign({}, d), { isResizingColumn: !1 })), m.resetSize();
1844
- }, "onDoubleClick"), onMouseDown: b, onTouchStart: b, style: {
1845
- transform: m.getIsResizing() && u === "onEnd" ? `translateX(${(r === "rtl" ? -1 : 1) * ((n = a().columnSizingInfo.deltaOffset) !== null && n !== void 0 ? n : 0)}px)` : void 0
1846
- }, sx: /* @__PURE__ */ i((d) => ({
1847
- "&:active > hr": {
1848
- backgroundColor: d.palette.info.main,
1849
- opacity: t.subHeaders.length || u === "onEnd" ? 1 : 0
1850
- },
1851
- cursor: "col-resize",
1852
- left: r === "rtl" ? c : void 0,
1853
- ml: r === "rtl" ? v : void 0,
1854
- mr: r === "ltr" ? v : void 0,
1855
- position: "absolute",
1856
- px: "4px",
1857
- right: r === "ltr" ? c : void 0
1858
- }), "sx"), children: o.jsx(co, { className: "Mui-TableHeadCell-ResizeHandle-Divider", flexItem: !0, orientation: "vertical", sx: /* @__PURE__ */ i((d) => Object.assign({ borderRadius: "2px", borderWidth: "2px", height: "24px", touchAction: "none", transform: "translateX(4px)", transition: m.getIsResizing() ? void 0 : "all 150ms ease-in-out", userSelect: "none", zIndex: 4 }, O(s == null ? void 0 : s.sx, d)), "sx") }) });
1859
- }, "MRT_TableHeadCellResizeHandle"), Si = /* @__PURE__ */ i((e) => {
1860
- var { header: n, table: t } = e, l = L(e, ["header", "table"]);
1861
- const { getState: s, options: { icons: { ArrowDownwardIcon: a, SyncAltIcon: r }, localization: u } } = t, { column: g } = n, { columnDef: p } = g, { isLoading: m, showSkeletons: b, sorting: v } = s(), c = !!g.getIsSorted(), d = m || b ? "" : g.getIsSorted() ? g.getIsSorted() === "desc" ? u.sortedByColumnDesc.replace("{column}", p.header) : u.sortedByColumnAsc.replace("{column}", p.header) : g.getNextSortingOrder() === "desc" ? u.sortByColumnDesc.replace("{column}", p.header) : u.sortByColumnAsc.replace("{column}", p.header), x = c ? g.getIsSorted() : void 0;
1862
- return o.jsx(de, { placement: "top", title: d, children: o.jsx(el, { badgeContent: v.length > 1 ? g.getSortIndex() + 1 : 0, overlap: "circular", children: o.jsx(nl, Object.assign({ IconComponent: c ? a : (h) => o.jsx(r, Object.assign({}, h, { direction: x, style: {
1863
- transform: "rotate(-90deg) scaleX(0.9) translateX(-1px)"
1864
- } })), active: !0, "aria-label": d, direction: x, onClick: /* @__PURE__ */ i((h) => {
1865
- var f;
1866
- h.stopPropagation(), (f = n.column.getToggleSortingHandler()) === null || f === void 0 || f(h);
1867
- }, "onClick") }, l, { sx: /* @__PURE__ */ i((h) => Object.assign({ ".MuiTableSortLabel-icon": {
1868
- color: `${h.palette.mode === "dark" ? h.palette.text.primary : h.palette.text.secondary} !important`
1869
- }, flex: "0 0", opacity: c ? 1 : 0.3, transition: "all 150ms ease-in-out", width: "3ch" }, O(l == null ? void 0 : l.sx, h)), "sx") })) }) });
1870
- }, "MRT_TableHeadCellSortLabel"), Oi = /* @__PURE__ */ i((e) => {
1871
- var n, t, l, s, a, r, u, { columnVirtualizer: g, header: p, staticColumnIndex: m, table: b } = e, v = L(e, ["columnVirtualizer", "header", "staticColumnIndex", "table"]);
1872
- const c = qe(), { getState: d, options: { columnFilterDisplayMode: x, columnResizeDirection: h, columnResizeMode: f, enableKeyboardShortcuts: C, enableColumnActions: w, enableColumnDragging: F, enableColumnOrdering: S, enableColumnPinning: P, enableGrouping: R, enableMultiSort: j, layoutMode: y, mrtTheme: { draggingBorderColor: T }, muiTableHeadCellProps: I }, refs: { tableHeadCellRefs: k }, setHoveredColumn: M } = b, { columnSizingInfo: _, density: D, draggingColumn: q, grouping: Q, hoveredColumn: E, showColumnFilters: H } = d(), { column: A } = p, { columnDef: $ } = A, { columnDefType: le } = $, B = Object.assign(Object.assign(Object.assign({}, O(I, { column: A, table: b })), O($.muiTableHeadCellProps, {
1873
- column: A,
1874
- table: b
1875
- })), v), U = P && $.columnDefType !== "group" && A.getIsPinned(), X = (w || $.enableColumnActions) && $.enableColumnActions !== !1, J = F !== !1 && $.enableColumnDragging !== !1 && (F || S && $.enableColumnOrdering !== !1 || R && $.enableGrouping !== !1 && !Q.includes(A.id)), te = ce(() => {
1876
- let ee = 0;
1877
- return A.getCanSort() && (ee += 1), X && (ee += 1.75), J && (ee += 1.5), ee;
1878
- }, [X, J]), G = ce(() => {
1879
- const ee = _.isResizingColumn === A.id && f === "onChange" && !p.subHeaders.length, Y = ee ? `2px solid ${T} !important` : (q == null ? void 0 : q.id) === A.id ? `1px dashed ${c.palette.grey[500]}` : (E == null ? void 0 : E.id) === A.id ? `2px dashed ${T}` : void 0;
1880
- return ee ? h === "ltr" ? { borderRight: Y } : { borderLeft: Y } : Y ? {
1881
- borderLeft: Y,
1882
- borderRight: Y,
1883
- borderTop: Y
1884
- } : void 0;
1885
- }, [q, E, _.isResizingColumn]), K = /* @__PURE__ */ i((ee) => {
1886
- R && (E == null ? void 0 : E.id) === "drop-zone" && M(null), S && q && le !== "group" && M($.enableColumnOrdering !== !1 ? A : null);
1887
- }, "handleDragEnter"), se = /* @__PURE__ */ i((ee) => {
1888
- $.enableColumnOrdering !== !1 && ee.preventDefault();
1889
- }, "handleDragOver"), W = /* @__PURE__ */ i((ee) => {
1890
- var Y;
1891
- (Y = B == null ? void 0 : B.onKeyDown) === null || Y === void 0 || Y.call(B, ee), qn({
1892
- event: ee,
1893
- cellValue: p.column.columnDef.header,
1894
- table: b,
1895
- header: p
1896
- });
1897
- }, "handleKeyDown"), V = (n = O($.Header, {
1898
- column: A,
1899
- header: p,
1900
- table: b
1901
- })) !== null && n !== void 0 ? n : $.header;
1902
- return o.jsxs(jn, Object.assign({ align: le === "group" ? "center" : c.direction === "rtl" ? "right" : "left", "aria-sort": A.getIsSorted() ? A.getIsSorted() === "asc" ? "ascending" : "descending" : "none", colSpan: p.colSpan, "data-can-sort": A.getCanSort() || void 0, "data-index": m, "data-pinned": !!U || void 0, "data-sort": A.getIsSorted() || void 0, onDragEnter: K, onDragOver: se, ref: /* @__PURE__ */ i((ee) => {
1903
- var Y;
1904
- ee && (k.current[A.id] = ee, le !== "group" && ((Y = g == null ? void 0 : g.measureElement) === null || Y === void 0 || Y.call(g, ee)));
1905
- }, "ref"), tabIndex: C ? 0 : void 0 }, B, { onKeyDown: W, sx: /* @__PURE__ */ i((ee) => Object.assign(Object.assign({ "& :hover": {
1906
- ".MuiButtonBase-root": {
1907
- opacity: 1
1908
- }
1909
- }, flexDirection: y != null && y.startsWith("grid") ? "column" : void 0, fontWeight: "bold", overflow: "visible", p: D === "compact" ? "0.5rem" : D === "comfortable" ? le === "display" ? "0.75rem" : "1rem" : le === "display" ? "1rem 1.25rem" : "1.5rem", pb: le === "display" ? 0 : H || D === "compact" ? "0.4rem" : "0.6rem", pt: le === "group" || D === "compact" ? "0.25rem" : D === "comfortable" ? ".75rem" : "1.25rem", userSelect: j && A.getCanSort() ? "none" : void 0, verticalAlign: "top" }, Qn({
1910
- column: A,
1911
- header: p,
1912
- table: b,
1913
- tableCellProps: B,
1914
- theme: ee
1915
- })), G), "sx"), children: [p.isPlaceholder ? null : (t = B.children) !== null && t !== void 0 ? t : o.jsxs(ae, { className: "Mui-TableHeadCell-Content", sx: {
1916
- alignItems: "center",
1917
- display: "flex",
1918
- flexDirection: (B == null ? void 0 : B.align) === "right" ? "row-reverse" : "row",
1919
- justifyContent: le === "group" || (B == null ? void 0 : B.align) === "center" ? "center" : A.getCanResize() ? "space-between" : "flex-start",
1920
- position: "relative",
1921
- width: "100%"
1922
- }, children: [o.jsxs(ae, { className: "Mui-TableHeadCell-Content-Labels", onClick: A.getToggleSortingHandler(), sx: {
1923
- alignItems: "center",
1924
- cursor: A.getCanSort() && le !== "group" ? "pointer" : void 0,
1925
- display: "flex",
1926
- flexDirection: (B == null ? void 0 : B.align) === "right" ? "row-reverse" : "row",
1927
- overflow: le === "data" ? "hidden" : void 0,
1928
- pl: (B == null ? void 0 : B.align) === "center" ? `${te}rem` : void 0
1929
- }, children: [o.jsx(ae, { className: "Mui-TableHeadCell-Content-Wrapper", sx: {
1930
- "&:hover": {
1931
- textOverflow: "clip"
1932
- },
1933
- minWidth: `${Math.min((s = (l = $.header) === null || l === void 0 ? void 0 : l.length) !== null && s !== void 0 ? s : 0, 4)}ch`,
1934
- overflow: le === "data" ? "hidden" : void 0,
1935
- textOverflow: "ellipsis",
1936
- whiteSpace: ((r = (a = $.header) === null || a === void 0 ? void 0 : a.length) !== null && r !== void 0 ? r : 0) < 20 ? "nowrap" : "normal"
1937
- }, children: V }), A.getCanFilter() && o.jsx(wi, { header: p, table: b }), A.getCanSort() && o.jsx(Si, { header: p, table: b })] }), le !== "group" && o.jsxs(ae, { className: "Mui-TableHeadCell-Content-Actions", sx: {
1938
- whiteSpace: "nowrap"
1939
- }, children: [J && o.jsx(yi, { column: A, table: b, tableHeadCellRef: {
1940
- current: (u = k.current) === null || u === void 0 ? void 0 : u[A.id]
1941
- } }), X && o.jsx(hi, { header: p, table: b })] }), A.getCanResize() && o.jsx(Ri, { header: p, table: b })] }), x === "subheader" && A.getCanFilter() && o.jsx($o, { header: p, table: b })] }));
1942
- }, "MRT_TableHeadCell"), Fi = /* @__PURE__ */ i((e) => {
1943
- var { columnVirtualizer: n, headerGroup: t, table: l } = e, s = L(e, ["columnVirtualizer", "headerGroup", "table"]);
1944
- const { options: { enableStickyHeader: a, layoutMode: r, mrtTheme: { baseBackgroundColor: u }, muiTableHeadRowProps: g } } = l, { virtualColumns: p, virtualPaddingLeft: m, virtualPaddingRight: b } = n ?? {}, v = Object.assign(Object.assign({}, O(g, {
1945
- headerGroup: t,
1946
- table: l
1947
- })), s);
1948
- return o.jsxs(Cn, Object.assign({}, v, { sx: /* @__PURE__ */ i((c) => Object.assign({ backgroundColor: u, boxShadow: `4px 0 8px ${Ge(c.palette.common.black, 0.1)}`, display: r != null && r.startsWith("grid") ? "flex" : void 0, position: a && r === "semantic" ? "sticky" : "relative", top: 0 }, O(v == null ? void 0 : v.sx, c)), "sx"), children: [m ? o.jsx("th", { style: { display: "flex", width: m } }) : null, (p ?? t.headers).map((c, d) => {
1949
- let x = c;
1950
- return n && (d = c.index, x = t.headers[d]), x ? o.jsx(Oi, { columnVirtualizer: n, header: x, staticColumnIndex: d, table: l }, x.id) : null;
1951
- }), b ? o.jsx("th", { style: { display: "flex", width: b } }) : null] }));
1952
- }, "MRT_TableHeadRow"), no = /* @__PURE__ */ i((e) => {
1953
- var n, t, l, { stackAlertBanner: s, table: a } = e, r = L(e, ["stackAlertBanner", "table"]);
1954
- const { getFilteredSelectedRowModel: u, getCoreRowModel: g, getState: p, options: { enableRowSelection: m, enableSelectAll: b, localization: v, manualPagination: c, muiToolbarAlertBannerChipProps: d, muiToolbarAlertBannerProps: x, positionToolbarAlertBanner: h, renderToolbarAlertBannerContent: f, rowCount: C }, refs: { tablePaperRef: w } } = a, { density: F, grouping: S, rowSelection: P, showAlertBanner: R } = p(), j = Object.assign(Object.assign({}, O(x, {
1955
- table: a
1956
- })), r), y = O(d, {
1957
- table: a
1958
- }), T = C ?? g().rows.length, I = u().rows.length, k = ce(() => c ? Object.values(P).filter(Boolean).length : I, [P, T, c, I]), M = k > 0 ? o.jsxs(nn, { alignItems: "center", direction: "row", gap: "16px", children: [(t = (n = v.selectedCountOfRowCountRowsSelected) === null || n === void 0 ? void 0 : n.replace("{selectedCount}", k.toLocaleString(v.language))) === null || t === void 0 ? void 0 : t.replace("{rowCount}", T.toLocaleString(v.language)), o.jsx(Ne, { onClick: /* @__PURE__ */ i((D) => Nn({ table: a })(D, !1, !0), "onClick"), size: "small", sx: { p: "2px" }, children: v.clearSelection })] }) : null, _ = S.length > 0 ? o.jsxs("span", { children: [v.groupedBy, " ", S.map((D, q) => o.jsxs(et, { children: [q > 0 ? v.thenBy : "", o.jsx(Hn, Object.assign({ label: a.getColumn(D).columnDef.header, onDelete: /* @__PURE__ */ i(() => a.getColumn(D).toggleGrouping(), "onDelete") }, y))] }, `${q}-${D}`))] }) : null;
1959
- return o.jsx(tn, { in: R || !!M || !!_, timeout: s ? 200 : 0, children: o.jsx(ol, Object.assign({ color: "info", icon: !1 }, j, { sx: /* @__PURE__ */ i((D) => {
1960
- var q, Q;
1961
- return Object.assign({ "& .MuiAlert-message": {
1962
- maxWidth: `calc(${(Q = (q = w.current) === null || q === void 0 ? void 0 : q.clientWidth) !== null && Q !== void 0 ? Q : 360}px - 1rem)`,
1963
- width: "100%"
1964
- }, borderRadius: 0, fontSize: "1rem", left: 0, mb: s ? 0 : h === "bottom" ? "-1rem" : void 0, p: 0, position: "relative", right: 0, top: 0, width: "100%", zIndex: 2 }, O(j == null ? void 0 : j.sx, D));
1965
- }, "sx"), children: (l = f == null ? void 0 : f({
1966
- groupedAlert: _,
1967
- selectedAlert: M,
1968
- table: a
1969
- })) !== null && l !== void 0 ? l : o.jsxs(o.Fragment, { children: [(j == null ? void 0 : j.title) && o.jsx(tl, { children: j.title }), o.jsxs(nn, { sx: {
1970
- p: h !== "head-overlay" ? "0.5rem 1rem" : F === "spacious" ? "0.75rem 1.25rem" : F === "comfortable" ? "0.5rem 0.75rem" : "0.25rem 0.5rem"
1971
- }, children: [j == null ? void 0 : j.children, (j == null ? void 0 : j.children) && (M || _) && o.jsx("br", {}), o.jsxs(ae, { sx: { display: "flex" }, children: [m && b && h === "head-overlay" && o.jsx(Ln, { table: a }), " ", M] }), M && _ && o.jsx("br", {}), _] })] }) })) });
1972
- }, "MRT_ToolbarAlertBanner"), Pi = /* @__PURE__ */ i((e) => {
1973
- var { columnVirtualizer: n, table: t } = e, l = L(e, ["columnVirtualizer", "table"]);
1974
- const { getState: s, options: { enableStickyHeader: a, layoutMode: r, muiTableHeadProps: u, positionToolbarAlertBanner: g }, refs: { tableHeadRef: p } } = t, { isFullScreen: m, showAlertBanner: b } = s(), v = Object.assign(Object.assign({}, O(u, { table: t })), l), c = a || m;
1975
- return o.jsx(Nt, Object.assign({}, v, { ref: /* @__PURE__ */ i((d) => {
1976
- p.current = d, v != null && v.ref && (v.ref.current = d);
1977
- }, "ref"), sx: /* @__PURE__ */ i((d) => Object.assign({ display: r != null && r.startsWith("grid") ? "grid" : void 0, opacity: 0.97, position: c ? "sticky" : "relative", top: c && (r != null && r.startsWith("grid")) ? 0 : void 0, zIndex: c ? 2 : void 0 }, O(v == null ? void 0 : v.sx, d)), "sx"), children: g === "head-overlay" && (b || t.getSelectedRowModel().rows.length > 0) ? o.jsx("tr", { style: {
1978
- display: r != null && r.startsWith("grid") ? "grid" : void 0
1979
- }, children: o.jsx("th", { colSpan: t.getVisibleLeafColumns().length, style: {
1980
- display: r != null && r.startsWith("grid") ? "grid" : void 0,
1981
- padding: 0
1982
- }, children: o.jsx(no, { table: t }) }) }) : t.getHeaderGroups().map((d) => o.jsx(Fi, { columnVirtualizer: n, headerGroup: d, table: t }, d.id)) }));
1983
- }, "MRT_TableHead"), Ti = /* @__PURE__ */ i((e) => {
1984
- var { table: n } = e, t = L(e, ["table"]);
1985
- const { getFlatHeaders: l, getState: s, options: { columns: a, enableStickyHeader: r, enableTableFooter: u, enableTableHead: g, layoutMode: p, memoMode: m, muiTableProps: b, renderCaption: v } } = n, { columnSizing: c, columnSizingInfo: d, columnVisibility: x, isFullScreen: h } = s(), f = Object.assign(Object.assign({}, O(b, { table: n })), t), C = O(v, { table: n }), w = ce(() => {
1986
- const P = l(), R = {};
1987
- for (let j = 0; j < P.length; j++) {
1988
- const y = P[j], T = y.getSize();
1989
- R[`--header-${en(y.id)}-size`] = T, R[`--col-${en(y.column.id)}-size`] = T;
1990
- }
1991
- return R;
1992
- }, [a, c, d, x]), S = {
1993
- columnVirtualizer: li(n),
1994
- table: n
1995
- };
1996
- return o.jsxs(Gt, Object.assign({ stickyHeader: r || h }, f, { style: Object.assign(Object.assign({}, w), f == null ? void 0 : f.style), sx: /* @__PURE__ */ i((P) => Object.assign({ borderCollapse: "separate", display: p != null && p.startsWith("grid") ? "grid" : void 0, position: "relative" }, O(f == null ? void 0 : f.sx, P)), "sx"), children: [!!C && o.jsx("caption", { children: C }), g && o.jsx(Pi, Object.assign({}, S)), m === "table-body" || d.isResizingColumn ? o.jsx(ci, Object.assign({}, S)) : o.jsx(Lo, Object.assign({}, S)), u && o.jsx(pi, Object.assign({}, S))] }));
1997
- }, "MRT_Table"), Ii = /* @__PURE__ */ i((e) => {
1998
- var n, { table: t } = e, l = L(e, ["table"]);
1999
- const { options: { id: s, localization: a, mrtTheme: { baseBackgroundColor: r }, muiCircularProgressProps: u } } = t, g = Object.assign(Object.assign({}, O(u, { table: t })), l);
2000
- return o.jsx(ae, { sx: {
2001
- alignItems: "center",
2002
- backgroundColor: Ge(r, 0.5),
2003
- bottom: 0,
2004
- display: "flex",
2005
- justifyContent: "center",
2006
- left: 0,
2007
- maxHeight: "100vh",
2008
- position: "absolute",
2009
- right: 0,
2010
- top: 0,
2011
- width: "100%",
2012
- zIndex: 3
2013
- }, children: (n = g == null ? void 0 : g.Component) !== null && n !== void 0 ? n : o.jsx(Bn, Object.assign({ "aria-label": a.noRecordsToDisplay, id: `mrt-progress-${s}` }, g)) });
2014
- }, "MRT_TableLoadingOverlay"), Mi = /* @__PURE__ */ i((e) => {
2015
- var n, t, { table: l } = e, s = L(e, ["table"]);
2016
- const { getState: a, options: { editDisplayMode: r, enableClickToCopy: u, enableEditing: g, icons: { ContentCopy: p, EditIcon: m }, localization: b, mrtTheme: { menuBackgroundColor: v }, renderCellActionMenuItems: c }, refs: { actionCellRef: d } } = l, { actionCell: x, density: h } = a(), f = x, { row: C } = f, { column: w } = f, { columnDef: F } = w, S = /* @__PURE__ */ i((y) => {
2017
- y == null || y.stopPropagation(), l.setActionCell(null), d.current = null;
2018
- }, "handleClose"), P = [
2019
- (O(u, f) === "context-menu" || O(F.enableClickToCopy, f) === "context-menu") && o.jsx(Pe, { icon: o.jsx(p, {}), label: b.copy, onClick: /* @__PURE__ */ i((y) => {
2020
- y.stopPropagation(), navigator.clipboard.writeText(f.getValue()), S();
2021
- }, "onClick"), table: l }, "mrt-copy"),
2022
- O(g, C) && r === "cell" && o.jsx(Pe, { icon: o.jsx(m, {}), label: b.edit, onClick: /* @__PURE__ */ i(() => {
2023
- xo({ cell: f, table: l }), S();
2024
- }, "onClick"), table: l }, "mrt-edit")
2025
- ].filter(Boolean), R = {
2026
- cell: f,
2027
- closeMenu: S,
2028
- column: w,
2029
- internalMenuItems: P,
2030
- row: C,
2031
- table: l
2032
- }, j = (t = (n = F.renderCellActionMenuItems) === null || n === void 0 ? void 0 : n.call(F, R)) !== null && t !== void 0 ? t : c == null ? void 0 : c(R);
2033
- return (!!(j != null && j.length) || !!(P != null && P.length)) && o.jsx(on, Object.assign({ MenuListProps: {
2034
- dense: h === "compact",
2035
- sx: {
2036
- backgroundColor: v
2037
- }
2038
- }, anchorEl: d.current, disableScrollLock: !0, onClick: /* @__PURE__ */ i((y) => y.stopPropagation(), "onClick"), onClose: S, open: !!f, transformOrigin: { horizontal: -100, vertical: 8 } }, s, { children: j ?? P }));
2039
- }, "MRT_CellActionMenu"), _i = /* @__PURE__ */ i((e) => {
2040
- var n, { open: t, table: l } = e, s = L(e, ["open", "table"]);
2041
- const { getState: a, options: { localization: r, muiCreateRowModalProps: u, muiEditRowDialogProps: g, onCreatingRowCancel: p, onEditingRowCancel: m, renderCreateRowDialogContent: b, renderEditRowDialogContent: v }, setCreatingRow: c, setEditingRow: d } = l, { creatingRow: x, editingRow: h } = a(), f = x ?? h, C = Object.assign(Object.assign(Object.assign({}, O(g, { row: f, table: l })), x && O(u, { row: f, table: l })), s), w = f.getAllCells().filter((F) => F.column.columnDef.columnDefType === "data").map((F) => o.jsx(Ho, { cell: F, table: l }, F.id));
2042
- return o.jsx(ll, Object.assign({ fullWidth: !0, maxWidth: "xs", onClose: /* @__PURE__ */ i((F, S) => {
2043
- var P;
2044
- x ? (p == null || p({ row: f, table: l }), c(null)) : (m == null || m({ row: f, table: l }), d(null)), f._valuesCache = {}, (P = C.onClose) === null || P === void 0 || P.call(C, F, S);
2045
- }, "onClose"), open: t }, C, { children: (n = x && (b == null ? void 0 : b({
2046
- internalEditComponents: w,
2047
- row: f,
2048
- table: l
2049
- })) || (v == null ? void 0 : v({
2050
- internalEditComponents: w,
2051
- row: f,
2052
- table: l
2053
- }))) !== null && n !== void 0 ? n : o.jsxs(o.Fragment, { children: [o.jsx(rl, { sx: { textAlign: "center" }, children: r.edit }), o.jsx(sl, { children: o.jsx("form", { onSubmit: /* @__PURE__ */ i((F) => F.preventDefault(), "onSubmit"), children: o.jsx(nn, { sx: {
2054
- gap: "32px",
2055
- paddingTop: "16px",
2056
- width: "100%"
2057
- }, children: w }) }) }), o.jsx(il, { sx: { p: "1.25rem" }, children: o.jsx(ko, { row: f, table: l, variant: "text" }) })] }) }));
2058
- }, "MRT_EditRowModal"), Di = typeof window < "u" ? Jo : Ae, ki = /* @__PURE__ */ i((e) => {
2059
- var { table: n } = e, t = L(e, ["table"]);
2060
- const { getState: l, options: { createDisplayMode: s, editDisplayMode: a, enableCellActions: r, enableStickyHeader: u, muiTableContainerProps: g }, refs: { bottomToolbarRef: p, tableContainerRef: m, topToolbarRef: b } } = n, { actionCell: v, creatingRow: c, editingRow: d, isFullScreen: x, isLoading: h, showLoadingOverlay: f } = l(), C = f !== !1 && (h || f), [w, F] = oe(0), S = Object.assign(Object.assign({}, O(g, {
2061
- table: n
2062
- })), t);
2063
- Di(() => {
2064
- var j, y, T, I;
2065
- const k = typeof document < "u" && (y = (j = b.current) === null || j === void 0 ? void 0 : j.offsetHeight) !== null && y !== void 0 ? y : 0, M = typeof document < "u" && (I = (T = p == null ? void 0 : p.current) === null || T === void 0 ? void 0 : T.offsetHeight) !== null && I !== void 0 ? I : 0;
2066
- F(k + M);
2067
- });
2068
- const P = s === "modal" && c, R = a === "modal" && d;
2069
- return o.jsxs(Lt, Object.assign({ "aria-busy": C, "aria-describedby": C ? "mrt-progress" : void 0 }, S, { ref: /* @__PURE__ */ i((j) => {
2070
- j && (m.current = j, S != null && S.ref && (S.ref.current = j));
2071
- }, "ref"), style: Object.assign({ maxHeight: x ? `calc(100vh - ${w}px)` : void 0 }, S == null ? void 0 : S.style), sx: /* @__PURE__ */ i((j) => Object.assign({ maxHeight: u ? `clamp(350px, calc(100vh - ${w}px), 9999px)` : void 0, maxWidth: "100%", overflow: "auto", position: "relative" }, O(S == null ? void 0 : S.sx, j)), "sx"), children: [C ? o.jsx(Ii, { table: n }) : null, o.jsx(Ti, { table: n }), (P || R) && o.jsx(_i, { open: !0, table: n }), r && v && o.jsx(Mi, { table: n })] }));
2072
- }, "MRT_TableContainer"), Wo = /* @__PURE__ */ i((e) => {
2073
- var { isTopToolbar: n, table: t } = e, l = L(e, ["isTopToolbar", "table"]);
2074
- const { getState: s, options: { muiLinearProgressProps: a } } = t, { isSaving: r, showProgressBars: u } = s(), g = Object.assign(Object.assign({}, O(a, {
2075
- isTopToolbar: n,
2076
- table: t
2077
- })), l);
2078
- return o.jsx(tn, { in: u !== !1 && (u || r), mountOnEnter: !0, sx: {
2079
- bottom: n ? 0 : void 0,
2080
- position: "absolute",
2081
- top: n ? void 0 : 0,
2082
- width: "100%"
2083
- }, unmountOnExit: !0, children: o.jsx(al, Object.assign({ "aria-busy": "true", "aria-label": "Loading", sx: { position: "relative" } }, g)) });
2084
- }, "MRT_LinearProgressBar"), Ai = [5, 10, 15, 20, 25, 30, 50, 100], No = /* @__PURE__ */ i((e) => {
2085
- var { position: n = "bottom", table: t } = e, l = L(e, ["position", "table"]);
2086
- const s = qe(), a = vn("(max-width: 720px)"), { getState: r, options: { enableToolbarInternalActions: u, icons: { ChevronLeftIcon: g, ChevronRightIcon: p, FirstPageIcon: m, LastPageIcon: b }, id: v, localization: c, muiPaginationProps: d, paginationDisplayMode: x } } = t, { pagination: { pageIndex: h = 0, pageSize: f = 10 } } = r(), C = Object.assign(Object.assign({}, O(d, {
2087
- table: t
2088
- })), l), w = t.getRowCount(), F = t.getPageCount(), S = F > 2, P = h * f, R = Math.min(h * f + f, w), j = C ?? {}, { SelectProps: y = {}, disabled: T = !1, rowsPerPageOptions: I = Ai, showFirstButton: k = S, showLastButton: M = S, showRowsPerPage: _ = !0 } = j, D = L(j, ["SelectProps", "disabled", "rowsPerPageOptions", "showFirstButton", "showLastButton", "showRowsPerPage"]), q = h <= 0 || T, Q = R >= w || T;
2089
- a && (y == null ? void 0 : y.native) !== !1 && (y.native = !0);
2090
- const E = Be();
2091
- return o.jsxs(ae, { className: "MuiTablePagination-root", sx: {
2092
- alignItems: "center",
2093
- display: "flex",
2094
- flexWrap: "wrap",
2095
- gap: "8px",
2096
- justifyContent: { md: "space-between", sm: "center" },
2097
- justifySelf: "flex-end",
2098
- mt: n === "top" && u ? "3rem" : void 0,
2099
- position: "relative",
2100
- px: "8px",
2101
- py: "12px",
2102
- zIndex: 2
2103
- }, children: [_ && o.jsxs(ae, { sx: { alignItems: "center", display: "flex", gap: "8px" }, children: [o.jsx(dl, { htmlFor: `mrt-rows-per-page-${v}`, sx: { mb: 0 }, children: c.rowsPerPage }), o.jsx(gl, Object.assign({ MenuProps: { disableScrollLock: !0 }, disableUnderline: !0, disabled: T, inputProps: {
2104
- "aria-label": c.rowsPerPage,
2105
- id: `mrt-rows-per-page-${v}`
2106
- }, label: c.rowsPerPage, onChange: /* @__PURE__ */ i((H) => t.setPageSize(+H.target.value), "onChange"), sx: { mb: 0 }, value: f, variant: "standard" }, y, { children: I.map((H) => {
2107
- var A;
2108
- const $ = typeof H != "number" ? H.value : H, le = typeof H != "number" ? H.label : `${H}`;
2109
- return (A = y == null ? void 0 : y.children) !== null && A !== void 0 ? A : y != null && y.native ? o.jsx("option", { value: $, children: le }, $) : o.jsx(Ye, { sx: { m: 0 }, value: $, children: le }, $);
2110
- }) }))] }), x === "pages" ? o.jsx(cl, Object.assign({ count: F, disabled: T, onChange: /* @__PURE__ */ i((H, A) => t.setPageIndex(A - 1), "onChange"), page: h + 1, renderItem: /* @__PURE__ */ i((H) => o.jsx(ul, Object.assign({ slots: {
2111
- first: m,
2112
- last: b,
2113
- next: p,
2114
- previous: g
2115
- } }, H)), "renderItem"), showFirstButton: k, showLastButton: M }, D)) : x === "default" ? o.jsxs(o.Fragment, { children: [o.jsx(xn, { align: "center", component: "span", sx: { m: "0 4px", minWidth: "8ch" }, variant: "body2", children: `${R === 0 ? 0 : (P + 1).toLocaleString(c.language)}-${R.toLocaleString(c.language)} ${c.of} ${w.toLocaleString(c.language)}` }), o.jsxs(ae, { gap: "xs", children: [k && o.jsx(de, Object.assign({}, E, { title: c.goToFirstPage, children: o.jsx("span", { children: o.jsx(ue, { "aria-label": c.goToFirstPage, disabled: q, onClick: /* @__PURE__ */ i(() => t.firstPage(), "onClick"), size: "small", children: o.jsx(m, Object.assign({}, dn(s))) }) }) })), o.jsx(de, Object.assign({}, E, { title: c.goToPreviousPage, children: o.jsx("span", { children: o.jsx(ue, { "aria-label": c.goToPreviousPage, disabled: q, onClick: /* @__PURE__ */ i(() => t.previousPage(), "onClick"), size: "small", children: o.jsx(g, Object.assign({}, dn(s))) }) }) })), o.jsx(de, Object.assign({}, E, { title: c.goToNextPage, children: o.jsx("span", { children: o.jsx(ue, { "aria-label": c.goToNextPage, disabled: Q, onClick: /* @__PURE__ */ i(() => t.nextPage(), "onClick"), size: "small", children: o.jsx(p, Object.assign({}, dn(s))) }) }) })), M && o.jsx(de, Object.assign({}, E, { title: c.goToLastPage, children: o.jsx("span", { children: o.jsx(ue, { "aria-label": c.goToLastPage, disabled: Q, onClick: /* @__PURE__ */ i(() => t.lastPage(), "onClick"), size: "small", children: o.jsx(b, Object.assign({}, dn(s))) }) }) }))] })] }) : null] });
2116
- }, "MRT_TablePagination"), qo = /* @__PURE__ */ i((e) => {
2117
- var n, t, { table: l } = e, s = L(e, ["table"]);
2118
- const { getState: a, options: { enableGrouping: r, localization: u }, setHoveredColumn: g, setShowToolbarDropZone: p } = l, { draggingColumn: m, grouping: b, hoveredColumn: v, showToolbarDropZone: c } = a(), d = /* @__PURE__ */ i((h) => {
2119
- g({ id: "drop-zone" });
2120
- }, "handleDragEnter"), x = /* @__PURE__ */ i((h) => {
2121
- h.preventDefault();
2122
- }, "handleDragOver");
2123
- return Ae(() => {
2124
- var h;
2125
- ((h = l.options.state) === null || h === void 0 ? void 0 : h.showToolbarDropZone) !== void 0 && p(!!r && !!m && m.columnDef.enableGrouping !== !1 && !b.includes(m.id));
2126
- }, [r, m, b]), o.jsx(pl, { in: c, children: o.jsx(ae, Object.assign({ className: "Mui-ToolbarDropZone", onDragEnter: d, onDragOver: x }, s, { sx: /* @__PURE__ */ i((h) => Object.assign({ alignItems: "center", backdropFilter: "blur(4px)", backgroundColor: Ge(h.palette.info.main, (v == null ? void 0 : v.id) === "drop-zone" ? 0.2 : 0.1), border: `dashed ${h.palette.info.main} 2px`, boxSizing: "border-box", display: "flex", height: "100%", justifyContent: "center", position: "absolute", width: "100%", zIndex: 4 }, O(s == null ? void 0 : s.sx, h)), "sx"), children: o.jsx(xn, { fontStyle: "italic", children: u.dropToGroupBy.replace("{column}", (t = (n = m == null ? void 0 : m.columnDef) === null || n === void 0 ? void 0 : n.header) !== null && t !== void 0 ? t : "") }) })) });
2127
- }, "MRT_ToolbarDropZone"), zi = /* @__PURE__ */ i((e) => {
2128
- var { table: n } = e, t = L(e, ["table"]);
2129
- const { getState: l, options: { enablePagination: s, muiBottomToolbarProps: a, positionPagination: r, positionToolbarAlertBanner: u, positionToolbarDropZone: g, renderBottomToolbarCustomActions: p }, refs: { bottomToolbarRef: m } } = n, { isFullScreen: b } = l(), v = vn("(max-width:720px)"), c = Object.assign(Object.assign({}, O(a, { table: n })), t), d = v || !!p;
2130
- return o.jsxs(ae, Object.assign({}, c, { ref: /* @__PURE__ */ i((x) => {
2131
- x && (m.current = x, c != null && c.ref && (c.ref.current = x));
2132
- }, "ref"), sx: /* @__PURE__ */ i((x) => Object.assign(Object.assign(Object.assign({}, zo({ table: n })), { bottom: b ? "0" : void 0, boxShadow: `0 1px 2px -1px ${Ge(x.palette.grey[700], 0.5)} inset`, left: 0, position: b ? "fixed" : "relative", right: 0 }), O(c == null ? void 0 : c.sx, x)), "sx"), children: [o.jsx(Wo, { isTopToolbar: !1, table: n }), u === "bottom" && o.jsx(no, { stackAlertBanner: d, table: n }), ["both", "bottom"].includes(g ?? "") && o.jsx(qo, { table: n }), o.jsxs(ae, { sx: {
2133
- alignItems: "center",
2134
- boxSizing: "border-box",
2135
- display: "flex",
2136
- justifyContent: "space-between",
2137
- p: "0.5rem",
2138
- width: "100%"
2139
- }, children: [p ? p({ table: n }) : o.jsx("span", {}), o.jsx(ae, { sx: {
2140
- display: "flex",
2141
- justifyContent: "flex-end",
2142
- position: d ? "relative" : "absolute",
2143
- right: 0,
2144
- top: 0
2145
- }, children: s && ["both", "bottom"].includes(r ?? "") && o.jsx(No, { position: "bottom", table: n }) })] })] }));
2146
- }, "MRT_BottomToolbar"), Ei = /* @__PURE__ */ i((e) => {
2147
- var { column: n, table: t } = e, l = L(e, ["column", "table"]);
2148
- const { options: { icons: { PushPinIcon: s }, localization: a } } = t, r = /* @__PURE__ */ i((u) => {
2149
- n.pin(u);
2150
- }, "handlePinColumn");
2151
- return o.jsx(ae, Object.assign({}, l, { sx: /* @__PURE__ */ i((u) => Object.assign({ minWidth: "70px", textAlign: "center" }, O(l == null ? void 0 : l.sx, u)), "sx"), children: n.getIsPinned() ? o.jsx(de, { title: a.unpin, children: o.jsx(ue, { onClick: /* @__PURE__ */ i(() => r(!1), "onClick"), size: "small", children: o.jsx(s, {}) }) }) : o.jsxs(o.Fragment, { children: [o.jsx(de, { title: a.pinToLeft, children: o.jsx(ue, { onClick: /* @__PURE__ */ i(() => r("left"), "onClick"), size: "small", children: o.jsx(s, { style: {
2152
- transform: "rotate(90deg)"
2153
- } }) }) }), o.jsx(de, { title: a.pinToRight, children: o.jsx(ue, { onClick: /* @__PURE__ */ i(() => r("right"), "onClick"), size: "small", children: o.jsx(s, { style: {
2154
- transform: "rotate(-90deg)"
2155
- } }) }) })] }) }));
2156
- }, "MRT_ColumnPinningButtons"), Ko = /* @__PURE__ */ i((e) => {
2157
- var n, { allColumns: t, column: l, hoveredColumn: s, isNestedColumns: a, setHoveredColumn: r, table: u } = e, g = L(e, ["allColumns", "column", "hoveredColumn", "isNestedColumns", "setHoveredColumn", "table"]);
2158
- const { getState: p, options: { enableColumnOrdering: m, enableColumnPinning: b, enableHiding: v, localization: c, mrtTheme: { draggingBorderColor: d } }, setColumnOrder: x, setColumnPinning: h } = u, { columnOrder: f } = p(), { columnDef: C } = l, { columnDefType: w } = C, F = l.getIsVisible(), S = /* @__PURE__ */ i((k) => {
2159
- var M, _;
2160
- w === "group" ? (_ = (M = k == null ? void 0 : k.columns) === null || M === void 0 ? void 0 : M.forEach) === null || _ === void 0 || _.call(M, (D) => {
2161
- D.toggleVisibility(!F);
2162
- }) : k.toggleVisibility();
2163
- }, "handleToggleColumnHidden"), P = be(null), [R, j] = oe(!1), y = /* @__PURE__ */ i((k) => {
2164
- j(!0);
2165
- try {
2166
- k.dataTransfer.setDragImage(P.current, 0, 0);
2167
- } catch (M) {
2168
- console.error(M);
2169
- }
2170
- }, "handleDragStart"), T = /* @__PURE__ */ i((k) => {
2171
- if (j(!1), r(null), s) {
2172
- const M = po(l, s, f);
2173
- x(M), h(({ left: _ = [], right: D = [] }) => ({
2174
- left: M.filter((q) => _.includes(q)),
2175
- right: M.filter((q) => D.includes(q))
2176
- }));
2177
- }
2178
- }, "handleDragEnd"), I = /* @__PURE__ */ i((k) => {
2179
- !R && C.enableColumnOrdering !== !1 && r(l);
2180
- }, "handleDragEnter");
2181
- return !C.header || C.visibleInShowHideMenu === !1 ? null : o.jsxs(o.Fragment, { children: [o.jsx(Ye, Object.assign({ disableRipple: !0, onDragEnter: I, ref: P }, g, { sx: /* @__PURE__ */ i((k) => Object.assign({ alignItems: "center", justifyContent: "flex-start", my: 0, opacity: R ? 0.5 : 1, outline: R ? `2px dashed ${k.palette.grey[500]}` : (s == null ? void 0 : s.id) === l.id ? `2px dashed ${d}` : "none", outlineOffset: "-2px", pl: `${(l.depth + 0.5) * 2}rem`, py: "6px" }, O(g == null ? void 0 : g.sx, k)), "sx"), children: o.jsxs(ae, { sx: {
2182
- display: "flex",
2183
- flexWrap: "nowrap",
2184
- gap: "8px"
2185
- }, children: [w !== "group" && m && !a && (C.enableColumnOrdering !== !1 ? o.jsx(Jn, { onDragEnd: T, onDragStart: y, table: u }) : o.jsx(ae, { sx: { width: "28px" } })), b && (l.getCanPin() ? o.jsx(Ei, { column: l, table: u }) : o.jsx(ae, { sx: { width: "70px" } })), v ? o.jsx(ro, { checked: F, componentsProps: {
2186
- typography: {
2187
- sx: {
2188
- mb: 0,
2189
- opacity: w !== "display" ? 1 : 0.5
2190
- }
2191
- }
2192
- }, control: o.jsx(de, Object.assign({}, Be(), { title: c.toggleVisibility, children: o.jsx(ml, {}) })), disabled: !l.getCanHide(), label: C.header, onChange: /* @__PURE__ */ i(() => S(l), "onChange") }) : o.jsx(xn, { sx: { alignSelf: "center" }, children: C.header })] }) })), (n = l.columns) === null || n === void 0 ? void 0 : n.map((k, M) => o.jsx(Ko, { allColumns: t, column: k, hoveredColumn: s, isNestedColumns: a, setHoveredColumn: r, table: u }, `${M}-${k.id}`))] });
2193
- }, "MRT_ShowHideColumnsMenuItems"), Bi = /* @__PURE__ */ i((e) => {
2194
- var { anchorEl: n, setAnchorEl: t, table: l } = e, s = L(e, ["anchorEl", "setAnchorEl", "table"]);
2195
- const { getAllColumns: a, getAllLeafColumns: r, getCenterLeafColumns: u, getIsAllColumnsVisible: g, getIsSomeColumnsPinned: p, getIsSomeColumnsVisible: m, getLeftLeafColumns: b, getRightLeafColumns: v, getState: c, initialState: d, options: { enableColumnOrdering: x, enableColumnPinning: h, enableHiding: f, localization: C, mrtTheme: { menuBackgroundColor: w } } } = l, { columnOrder: F, columnPinning: S, density: P } = c(), R = /* @__PURE__ */ i((M) => {
2196
- r().filter((_) => _.columnDef.enableHiding !== !1).forEach((_) => _.toggleVisibility(M));
2197
- }, "handleToggleAllColumns"), j = ce(() => {
2198
- const M = a();
2199
- return F.length > 0 && !M.some((_) => _.columnDef.columnDefType === "group") ? [
2200
- ...b(),
2201
- ...Array.from(new Set(F)).map((_) => u().find((D) => (D == null ? void 0 : D.id) === _)),
2202
- ...v()
2203
- ].filter(Boolean) : M;
2204
- }, [
2205
- F,
2206
- S,
2207
- a(),
2208
- u(),
2209
- b(),
2210
- v()
2211
- ]), y = j.some((M) => M.columnDef.columnDefType === "group"), T = ce(() => F.length !== d.columnOrder.length || !F.every((M, _) => M === d.columnOrder[_]), [F, d.columnOrder]), [I, k] = oe(null);
2212
- return o.jsxs(on, Object.assign({ MenuListProps: {
2213
- dense: P === "compact",
2214
- sx: {
2215
- backgroundColor: w
2216
- }
2217
- }, anchorEl: n, disableScrollLock: !0, onClose: /* @__PURE__ */ i(() => t(null), "onClose"), open: !!n }, s, { children: [o.jsxs(ae, { sx: {
2218
- display: "flex",
2219
- justifyContent: "space-between",
2220
- p: "0.5rem",
2221
- pt: 0
2222
- }, children: [f && o.jsx(Ne, { disabled: !m(), onClick: /* @__PURE__ */ i(() => R(!1), "onClick"), children: C.hideAll }), x && o.jsx(Ne, { onClick: /* @__PURE__ */ i(() => l.setColumnOrder(Zn(l.options, !0)), "onClick"), disabled: !T, children: C.resetOrder }), h && o.jsx(Ne, { disabled: !p(), onClick: /* @__PURE__ */ i(() => l.resetColumnPinning(!0), "onClick"), children: C.unpinAll }), f && o.jsx(Ne, { disabled: g(), onClick: /* @__PURE__ */ i(() => R(!0), "onClick"), children: C.showAll })] }), o.jsx(co, {}), j.map((M, _) => o.jsx(Ko, { allColumns: j, column: M, hoveredColumn: I, isNestedColumns: y, setHoveredColumn: k, table: l }, `${_}-${M.id}`))] }));
2223
- }, "MRT_ShowHideColumnsMenu"), Hi = /* @__PURE__ */ i((e) => {
2224
- var n, { table: t } = e, l = L(e, ["table"]);
2225
- const { options: { icons: { ViewColumnIcon: s }, localization: a } } = t, [r, u] = oe(null), g = /* @__PURE__ */ i((p) => {
2226
- u(p.currentTarget);
2227
- }, "handleClick");
2228
- return o.jsxs(o.Fragment, { children: [o.jsx(de, { title: (n = l == null ? void 0 : l.title) !== null && n !== void 0 ? n : a.showHideColumns, children: o.jsx(ue, Object.assign({ "aria-label": a.showHideColumns, onClick: g }, l, { title: void 0, children: o.jsx(s, {}) })) }), r && o.jsx(Bi, { anchorEl: r, setAnchorEl: u, table: t })] });
2229
- }, "MRT_ShowHideColumnsButton"), Vi = /* @__PURE__ */ i((e) => {
2230
- var n, { table: t } = e, l = L(e, ["table"]);
2231
- const { getState: s, options: { icons: { DensityLargeIcon: a, DensityMediumIcon: r, DensitySmallIcon: u }, localization: g }, setDensity: p } = t, { density: m } = s(), b = /* @__PURE__ */ i(() => {
2232
- p(m === "comfortable" ? "compact" : m === "compact" ? "spacious" : "comfortable");
2233
- }, "handleToggleDensePadding");
2234
- return o.jsx(de, { title: (n = l == null ? void 0 : l.title) !== null && n !== void 0 ? n : g.toggleDensity, children: o.jsx(ue, Object.assign({ "aria-label": g.toggleDensity, onClick: b }, l, { title: void 0, children: m === "compact" ? o.jsx(u, {}) : m === "comfortable" ? o.jsx(r, {}) : o.jsx(a, {}) })) });
2235
- }, "MRT_ToggleDensePaddingButton"), Li = /* @__PURE__ */ i((e) => {
2236
- var n, { table: t } = e, l = L(e, ["table"]);
2237
- const { getState: s, options: { icons: { FilterListIcon: a, FilterListOffIcon: r }, localization: u }, setShowColumnFilters: g } = t, { showColumnFilters: p } = s(), m = /* @__PURE__ */ i(() => {
2238
- g(!p);
2239
- }, "handleToggleShowFilters");
2240
- return o.jsx(de, { title: (n = l == null ? void 0 : l.title) !== null && n !== void 0 ? n : u.showHideFilters, children: o.jsx(ue, Object.assign({ "aria-label": u.showHideFilters, onClick: m }, l, { title: void 0, children: p ? o.jsx(r, {}) : o.jsx(a, {}) })) });
2241
- }, "MRT_ToggleFiltersButton"), Gi = /* @__PURE__ */ i((e) => {
2242
- var n, { table: t } = e, l = L(e, ["table"]);
2243
- const { getState: s, options: { icons: { FullscreenExitIcon: a, FullscreenIcon: r }, localization: u }, setIsFullScreen: g } = t, { isFullScreen: p } = s(), [m, b] = oe(!1), v = /* @__PURE__ */ i(() => {
2244
- b(!1), g(!p);
2245
- }, "handleToggleFullScreen");
2246
- return o.jsx(de, { open: m, title: (n = l == null ? void 0 : l.title) !== null && n !== void 0 ? n : u.toggleFullScreen, children: o.jsx(ue, Object.assign({ "aria-label": u.toggleFullScreen, onBlur: /* @__PURE__ */ i(() => b(!1), "onBlur"), onClick: v, onFocus: /* @__PURE__ */ i(() => b(!0), "onFocus"), onMouseEnter: /* @__PURE__ */ i(() => b(!0), "onMouseEnter"), onMouseLeave: /* @__PURE__ */ i(() => b(!1), "onMouseLeave") }, l, { title: void 0, children: p ? o.jsx(a, {}) : o.jsx(r, {}) })) });
2247
- }, "MRT_ToggleFullScreenButton"), $i = /* @__PURE__ */ i((e) => {
2248
- var n, t, { table: l } = e, s = L(e, ["table"]);
2249
- const { getState: a, options: { icons: { SearchIcon: r, SearchOffIcon: u }, localization: g }, refs: { searchInputRef: p }, setShowGlobalFilter: m } = l, { globalFilter: b, showGlobalFilter: v } = a(), c = /* @__PURE__ */ i(() => {
2250
- m(!v), queueMicrotask(() => {
2251
- var d;
2252
- return (d = p.current) === null || d === void 0 ? void 0 : d.focus();
2253
- });
2254
- }, "handleToggleSearch");
2255
- return o.jsx(de, { title: (n = s == null ? void 0 : s.title) !== null && n !== void 0 ? n : g.showHideSearch, children: o.jsx(ue, Object.assign({ "aria-label": (t = s == null ? void 0 : s.title) !== null && t !== void 0 ? t : g.showHideSearch, disabled: !!b && v, onClick: c }, s, { title: void 0, children: v ? o.jsx(u, {}) : o.jsx(r, {}) })) });
2256
- }, "MRT_ToggleGlobalFilterButton"), Wi = /* @__PURE__ */ i((e) => {
2257
- var n, { table: t } = e, l = L(e, ["table"]);
2258
- const { options: { columnFilterDisplayMode: s, enableColumnFilters: a, enableColumnOrdering: r, enableColumnPinning: u, enableDensityToggle: g, enableFilters: p, enableFullScreenToggle: m, enableGlobalFilter: b, enableHiding: v, initialState: c, renderToolbarInternalActions: d } } = t;
2259
- return o.jsx(ae, Object.assign({}, l, { sx: /* @__PURE__ */ i((x) => Object.assign({ alignItems: "center", display: "flex", zIndex: 3 }, O(l == null ? void 0 : l.sx, x)), "sx"), children: (n = d == null ? void 0 : d({
2260
- table: t
2261
- })) !== null && n !== void 0 ? n : o.jsxs(o.Fragment, { children: [p && b && !(c != null && c.showGlobalFilter) && o.jsx($i, { table: t }), p && a && s !== "popover" && o.jsx(Li, { table: t }), (v || r || u) && o.jsx(Hi, { table: t }), g && o.jsx(Vi, { table: t }), m && o.jsx(Gi, { table: t })] }) }));
2262
- }, "MRT_ToolbarInternalButtons"), En = /* @__PURE__ */ i((e) => {
2263
- var n, { table: t } = e, l = L(e, ["table"]);
2264
- const { getState: s, options: { enableGlobalFilterModes: a, icons: { CloseIcon: r, SearchIcon: u }, localization: g, manualFiltering: p, muiSearchTextFieldProps: m }, refs: { searchInputRef: b }, setGlobalFilter: v } = t, { globalFilter: c, showGlobalFilter: d } = s(), x = Object.assign(Object.assign({}, O(m, {
2265
- table: t
2266
- })), l), h = be(!1), [f, C] = oe(null), [w, F] = oe(c ?? ""), S = hn(ao((y) => {
2267
- var T;
2268
- v((T = y.target.value) !== null && T !== void 0 ? T : void 0);
2269
- }, p ? 500 : 250), []), P = /* @__PURE__ */ i((y) => {
2270
- F(y.target.value), S(y);
2271
- }, "handleChange"), R = /* @__PURE__ */ i((y) => {
2272
- C(y.currentTarget);
2273
- }, "handleGlobalFilterMenuOpen"), j = /* @__PURE__ */ i(() => {
2274
- F(""), v(void 0);
2275
- }, "handleClear");
2276
- return Ae(() => {
2277
- h.current && (c === void 0 ? j() : F(c)), h.current = !0;
2278
- }, [c]), o.jsxs(tn, { in: d, mountOnEnter: !0, orientation: "horizontal", unmountOnExit: !0, children: [o.jsx(pn, Object.assign({ inputProps: Object.assign({ autoComplete: "off" }, x.inputProps), onChange: P, placeholder: g.search, size: "small", value: w ?? "", variant: "outlined" }, x, { InputProps: Object.assign(Object.assign({ endAdornment: o.jsx(mn, { position: "end", children: o.jsx(de, { title: (n = g.clearSearch) !== null && n !== void 0 ? n : "", children: o.jsx("span", { children: o.jsx(ue, { "aria-label": g.clearSearch, disabled: !(w != null && w.length), onClick: j, size: "small", children: o.jsx(r, {}) }) }) }) }), startAdornment: a ? o.jsx(mn, { position: "start", children: o.jsx(de, { title: g.changeSearchMode, children: o.jsx(ue, { "aria-label": g.changeSearchMode, onClick: R, size: "small", sx: { height: "1.75rem", width: "1.75rem" }, children: o.jsx(u, {}) }) }) }) : o.jsx(u, { style: { marginRight: "4px" } }) }, x.InputProps), { sx: /* @__PURE__ */ i((y) => {
2279
- var T;
2280
- return Object.assign({ mb: 0 }, O((T = x == null ? void 0 : x.InputProps) === null || T === void 0 ? void 0 : T.sx, y));
2281
- }, "sx") }), inputRef: /* @__PURE__ */ i((y) => {
2282
- b.current = y, x != null && x.inputRef && (x.inputRef = y);
2283
- }, "inputRef") })), o.jsx(eo, { anchorEl: f, onSelect: j, setAnchorEl: C, table: t })] });
2284
- }, "MRT_GlobalFilterTextField"), Ni = /* @__PURE__ */ i(({ table: e }) => {
2285
- var n;
2286
- const { getState: t, options: { enableGlobalFilter: l, enablePagination: s, enableToolbarInternalActions: a, muiTopToolbarProps: r, positionGlobalFilter: u, positionPagination: g, positionToolbarAlertBanner: p, positionToolbarDropZone: m, renderTopToolbarCustomActions: b }, refs: { topToolbarRef: v } } = e, { isFullScreen: c, showGlobalFilter: d } = t(), x = vn("(max-width:720px)"), h = vn("(max-width:1024px)"), f = O(r, { table: e }), C = x || !!b || d && h, w = {
2287
- sx: h ? void 0 : {
2288
- zIndex: 2
2289
- },
2290
- table: e
2291
- };
2292
- return o.jsxs(ae, Object.assign({}, f, { ref: /* @__PURE__ */ i((F) => {
2293
- v.current = F, f != null && f.ref && (f.ref.current = F);
2294
- }, "ref"), sx: /* @__PURE__ */ i((F) => Object.assign(Object.assign(Object.assign({}, zo({ table: e })), { position: c ? "sticky" : "relative", top: c ? "0" : void 0 }), O(f == null ? void 0 : f.sx, F)), "sx"), children: [p === "top" && o.jsx(no, { stackAlertBanner: C, table: e }), ["both", "top"].includes(m ?? "") && o.jsx(qo, { table: e }), o.jsxs(ae, { sx: {
2295
- alignItems: "flex-start",
2296
- boxSizing: "border-box",
2297
- display: "flex",
2298
- gap: "0.5rem",
2299
- justifyContent: "space-between",
2300
- p: "0.5rem",
2301
- position: C ? "relative" : "absolute",
2302
- right: 0,
2303
- top: 0,
2304
- width: "100%"
2305
- }, children: [l && u === "left" && o.jsx(En, Object.assign({}, w)), (n = b == null ? void 0 : b({ table: e })) !== null && n !== void 0 ? n : o.jsx("span", {}), a ? o.jsxs(ae, { sx: {
2306
- alignItems: "center",
2307
- display: "flex",
2308
- flexWrap: "wrap-reverse",
2309
- gap: "0.5rem",
2310
- justifyContent: "flex-end"
2311
- }, children: [l && u === "right" && o.jsx(En, Object.assign({}, w)), o.jsx(Wi, { table: e })] }) : l && u === "right" && o.jsx(En, Object.assign({}, w))] }), s && ["both", "top"].includes(g ?? "") && o.jsx(No, { position: "top", table: e }), o.jsx(Wo, { isTopToolbar: !0, table: e })] }));
2312
- }, "MRT_TopToolbar"), qi = /* @__PURE__ */ i((e) => {
2313
- var n, t, { table: l } = e, s = L(e, ["table"]);
2314
- const { getState: a, options: { enableBottomToolbar: r, enableTopToolbar: u, mrtTheme: { baseBackgroundColor: g }, muiTablePaperProps: p, renderBottomToolbar: m, renderTopToolbar: b }, refs: { tablePaperRef: v } } = l, { isFullScreen: c } = a(), d = Object.assign(Object.assign({}, O(p, { table: l })), s), x = qe();
2315
- return o.jsxs(Vt, Object.assign({ elevation: 2, onKeyDown: /* @__PURE__ */ i((h) => h.key === "Escape" && l.setIsFullScreen(!1), "onKeyDown") }, d, { ref: /* @__PURE__ */ i((h) => {
2316
- v.current = h, d != null && d.ref && (d.ref.current = h);
2317
- }, "ref"), style: Object.assign(Object.assign({}, c ? {
2318
- bottom: 0,
2319
- height: "100dvh",
2320
- left: 0,
2321
- margin: 0,
2322
- maxHeight: "100dvh",
2323
- maxWidth: "100dvw",
2324
- padding: 0,
2325
- position: "fixed",
2326
- right: 0,
2327
- top: 0,
2328
- width: "100dvw",
2329
- zIndex: x.zIndex.modal
2330
- } : {}), d == null ? void 0 : d.style), sx: /* @__PURE__ */ i((h) => Object.assign({ backgroundColor: g, backgroundImage: "unset", overflow: "hidden", transition: "all 100ms ease-in-out" }, O(d == null ? void 0 : d.sx, h)), "sx"), children: [u && ((n = O(b, { table: l })) !== null && n !== void 0 ? n : o.jsx(Ni, { table: l })), o.jsx(ki, { table: l }), r && ((t = O(m, { table: l })) !== null && t !== void 0 ? t : o.jsx(zi, { table: l }))] }));
2331
- }, "MRT_TablePaper"), Ki = /* @__PURE__ */ i((e) => e.table !== void 0, "isTableInstanceProp"), zr = /* @__PURE__ */ i((e) => {
2332
- let n;
2333
- return Ki(e) ? n = e.table : n = ti(e), o.jsx(qi, { table: n });
2334
- }, "MaterialReactTable");
2335
- export {
2336
- Pe as MRT_ActionMenuItem,
2337
- zl as MRT_AggregationFns,
2338
- zi as MRT_BottomToolbar,
2339
- fi as MRT_ColumnActionMenu,
2340
- Ei as MRT_ColumnPinningButtons,
2341
- ri as MRT_CopyButton,
2342
- Ql as MRT_DefaultColumn,
2343
- Eo as MRT_DefaultDisplayColumn,
2344
- ko as MRT_EditActionButtons,
2345
- Ho as MRT_EditCellTextField,
2346
- _i as MRT_EditRowModal,
2347
- Wl as MRT_ExpandAllButton,
2348
- lo as MRT_ExpandButton,
2349
- xi as MRT_FilterCheckbox,
2350
- El as MRT_FilterFns,
2351
- eo as MRT_FilterOptionMenu,
2352
- Ci as MRT_FilterRangeFields,
2353
- ji as MRT_FilterRangeSlider,
2354
- Go as MRT_FilterTextField,
2355
- En as MRT_GlobalFilterTextField,
2356
- Jn as MRT_GrabHandleButton,
2357
- Wo as MRT_LinearProgressBar,
2358
- Hl as MRT_RowActionMenu,
2359
- _n as MRT_RowPinButton,
2360
- Ln as MRT_SelectCheckbox,
2361
- Hi as MRT_ShowHideColumnsButton,
2362
- Bi as MRT_ShowHideColumnsMenu,
2363
- Ko as MRT_ShowHideColumnsMenuItems,
2364
- Ml as MRT_SortingFns,
2365
- Ti as MRT_Table,
2366
- Lo as MRT_TableBody,
2367
- Vo as MRT_TableBodyCell,
2368
- io as MRT_TableBodyCellValue,
2369
- gn as MRT_TableBodyRow,
2370
- Gl as MRT_TableBodyRowGrabHandle,
2371
- Kl as MRT_TableBodyRowPinButton,
2372
- ki as MRT_TableContainer,
2373
- di as MRT_TableDetailPanel,
2374
- pi as MRT_TableFooter,
2375
- ui as MRT_TableFooterCell,
2376
- gi as MRT_TableFooterRow,
2377
- Pi as MRT_TableHead,
2378
- Oi as MRT_TableHeadCell,
2379
- hi as MRT_TableHeadCellColumnActionsButton,
2380
- $o as MRT_TableHeadCellFilterContainer,
2381
- wi as MRT_TableHeadCellFilterLabel,
2382
- yi as MRT_TableHeadCellGrabHandle,
2383
- Ri as MRT_TableHeadCellResizeHandle,
2384
- Si as MRT_TableHeadCellSortLabel,
2385
- Fi as MRT_TableHeadRow,
2386
- Ii as MRT_TableLoadingOverlay,
2387
- No as MRT_TablePagination,
2388
- qi as MRT_TablePaper,
2389
- Vi as MRT_ToggleDensePaddingButton,
2390
- Li as MRT_ToggleFiltersButton,
2391
- Gi as MRT_ToggleFullScreenButton,
2392
- $i as MRT_ToggleGlobalFilterButton,
2393
- Vl as MRT_ToggleRowActionMenuButton,
2394
- no as MRT_ToolbarAlertBanner,
2395
- qo as MRT_ToolbarDropZone,
2396
- Wi as MRT_ToolbarInternalButtons,
2397
- Ni as MRT_TopToolbar,
2398
- zr as MaterialReactTable,
2399
- ci as Memo_MRT_TableBody,
2400
- ai as Memo_MRT_TableBodyCell,
2401
- An as Memo_MRT_TableBodyRow,
2402
- qn as cellKeyboardShortcuts,
2403
- Tl as createRow,
2404
- Ue as defaultDisplayColumnProps,
2405
- bn as getAllLeafColumnDefs,
2406
- bo as getCanRankRows,
2407
- wn as getColumnFilterInfo,
2408
- Xe as getColumnId,
2409
- Pl as getDefaultColumnFilterFn,
2410
- Zn as getDefaultColumnOrderIds,
2411
- Dl as getIsRankingRows,
2412
- fn as getIsRowSelected,
2413
- kl as getLeadingDisplayColumnIds,
2414
- fo as getMRT_RowSelectionHandler,
2415
- vo as getMRT_Rows,
2416
- Nn as getMRT_SelectAllHandler,
2417
- Al as getTrailingDisplayColumnIds,
2418
- ho as isCellEditable,
2419
- mi as mrtFilterOptions,
2420
- xo as openEditingCell,
2421
- go as prepareColumns,
2422
- _l as rankGlobalFuzzy,
2423
- po as reorderColumn,
2424
- Un as showRowActionsColumn,
2425
- jo as showRowDragColumn,
2426
- Kn as showRowExpandColumn,
2427
- yo as showRowNumbersColumn,
2428
- Co as showRowPinningColumn,
2429
- wo as showRowSelectionColumn,
2430
- Ro as showRowSpacerColumn,
2431
- mo as useDropdownOptions,
2432
- li as useMRT_ColumnVirtualizer,
2433
- ni as useMRT_Effects,
2434
- ii as useMRT_RowVirtualizer,
2435
- si as useMRT_Rows,
2436
- oi as useMRT_TableInstance,
2437
- Jl as useMRT_TableOptions,
2438
- ti as useMaterialReactTable
2439
- };
2440
- //# sourceMappingURL=index.esm.js.map