fastapi-rtk 0.1.13 → 0.1.14

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 (936) hide show
  1. package/dist/constants/cjs/index.cjs +37 -0
  2. package/dist/constants/esm/index.mjs +37 -0
  3. package/dist/core/cjs/ActionIcons/Actions.cjs +28 -0
  4. package/dist/core/cjs/ActionIcons/Add/Add.cjs +15 -0
  5. package/dist/core/cjs/ActionIcons/Add/AddDialog.cjs +60 -0
  6. package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +28 -0
  7. package/dist/core/cjs/ActionIcons/Download/Download.cjs +125 -0
  8. package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +34 -0
  9. package/dist/core/cjs/ActionIcons/Edit/EditDialog.cjs +71 -0
  10. package/dist/core/cjs/ActionIcons/Modals/CommonModal.cjs +96 -0
  11. package/dist/core/cjs/ActionIcons/Modals/normalProps.cjs +17 -0
  12. package/dist/core/cjs/ActionIcons/Modals/overlayProps.cjs +25 -0
  13. package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +24 -0
  14. package/dist/core/cjs/ActionIcons/Upload/Upload.cjs +95 -0
  15. package/dist/core/cjs/ActionIcons/View/RelationPanel.cjs +17 -0
  16. package/dist/core/cjs/ActionIcons/View/View.cjs +38 -0
  17. package/dist/core/cjs/ActionIcons/View/ViewDialog.cjs +55 -0
  18. package/dist/core/cjs/ActionIcons/utils/convertToFormInputs.cjs +27 -0
  19. package/dist/core/cjs/Dialogs/AlertDialog/AlertDialog.cjs +25 -0
  20. package/dist/core/cjs/Menu/UserMenu/UserMenu.cjs +71 -0
  21. package/dist/core/cjs/Menu/UserMenu/user.module.css.cjs +11 -0
  22. package/dist/core/cjs/Tables/DataGrid/DataGrid.cjs +94 -0
  23. package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +23 -0
  24. package/dist/core/cjs/Tables/DataGrid/FormField/FormField.cjs +90 -0
  25. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormDatePicker.cjs +21 -0
  26. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormDateTimePicker.cjs +21 -0
  27. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormGeometryField.cjs +18 -0
  28. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormJsonField.cjs +45 -0
  29. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormRelatedListSelect.cjs +11 -0
  30. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormRelatedSelect.cjs +31 -0
  31. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormSelect.cjs +17 -0
  32. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormTextField.cjs +14 -0
  33. package/dist/core/cjs/Tables/DataGrid/Main/Body/Body.cjs +95 -0
  34. package/dist/core/cjs/Tables/DataGrid/Main/Body/Field/Field.cjs +37 -0
  35. package/dist/core/cjs/Tables/DataGrid/Main/Body/Field/Field.module.css.cjs +14 -0
  36. package/dist/core/cjs/Tables/DataGrid/Main/Body/Row/Row.cjs +21 -0
  37. package/dist/core/cjs/Tables/DataGrid/Main/Body/Row/Row.module.css.cjs +11 -0
  38. package/dist/core/cjs/Tables/DataGrid/Main/Header/FieldTitle/FieldTitle.cjs +74 -0
  39. package/dist/core/cjs/Tables/DataGrid/Main/Header/FieldTitle/FieldTitle.module.css.cjs +14 -0
  40. package/dist/core/cjs/Tables/DataGrid/Main/Header/Header.cjs +37 -0
  41. package/dist/core/cjs/Tables/DataGrid/Main/Main.cjs +88 -0
  42. package/dist/core/cjs/Tables/DataGrid/Main/Main.module.css.cjs +8 -0
  43. package/dist/core/cjs/Tables/DataGrid/Pagination/Pagination.cjs +104 -0
  44. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/Filter.cjs +33 -0
  45. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +138 -0
  46. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FormFilterField.cjs +16 -0
  47. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FormFilterIn.cjs +63 -0
  48. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FormOperatorField.cjs +16 -0
  49. package/dist/core/cjs/Tables/DataGrid/Toolbar/Toolbar.cjs +30 -0
  50. package/dist/core/cjs/Tables/NextGenDataGrid/FallbackWrapper.cjs +14 -0
  51. package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +216 -0
  52. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useActions.cjs +30 -0
  53. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useCheckbox.cjs +6 -0
  54. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFilters.cjs +80 -0
  55. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFiltersMenu.cjs +18 -0
  56. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/BasicFilters.cjs +23 -0
  57. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/ColumnHeaderFilter.cjs +273 -0
  58. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInput.cjs +16 -0
  59. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderBetweenInput.cjs +71 -0
  60. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderBooleanInput.cjs +28 -0
  61. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderDateInput.cjs +44 -0
  62. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderMultiSelectInput.cjs +28 -0
  63. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderSelectInput.cjs +8 -0
  64. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTagsInput.cjs +21 -0
  65. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTagsNumberInput.cjs +29 -0
  66. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTextInput.cjs +8 -0
  67. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/headerinput.module.css.cjs +9 -0
  68. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/FilterMenu.cjs +17 -0
  69. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/MultiLineHighlight.cjs +13 -0
  70. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/useColumns.cjs +134 -0
  71. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/utils.cjs +73 -0
  72. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useData.cjs +12 -0
  73. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useEvent.cjs +19 -0
  74. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useFilters.cjs +18 -0
  75. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useGlobalFilter.cjs +30 -0
  76. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/usePagination.cjs +44 -0
  77. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useQueryParams.cjs +43 -0
  78. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useSize.cjs +33 -0
  79. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useSorting.cjs +35 -0
  80. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.cjs +22 -0
  81. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.cjs +101 -0
  82. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.cjs +113 -0
  83. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.module.css.cjs +6 -0
  84. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/useToolbarAlertBanner.cjs +11 -0
  85. package/dist/core/cjs/Tables/NextGenDataGrid/utils.cjs +23 -0
  86. package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +51 -0
  87. package/dist/core/cjs/Wrappers/ApiProvider/Contexts/ApiContext.cjs +42 -0
  88. package/dist/core/cjs/Wrappers/ApiProvider/Contexts/BulkActionsContext.cjs +13 -0
  89. package/dist/core/cjs/Wrappers/ApiProvider/Contexts/FormContext.cjs +28 -0
  90. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +307 -0
  91. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideBulk.cjs +30 -0
  92. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideForm.cjs +22 -0
  93. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/createItem.cjs +14 -0
  94. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/deleteItem.cjs +10 -0
  95. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/downloadItems.cjs +40 -0
  96. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getInfo.cjs +13 -0
  97. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItem.cjs +10 -0
  98. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItems.cjs +10 -0
  99. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/updateItem.cjs +10 -0
  100. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/uploadItems.cjs +27 -0
  101. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/utils/parseResponse.cjs +19 -0
  102. package/dist/core/cjs/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.cjs +26 -0
  103. package/dist/core/cjs/Wrappers/ApiProvider/utils/convertId.cjs +12 -0
  104. package/dist/core/cjs/Wrappers/ApiProvider/utils/convertInfo.cjs +20 -0
  105. package/dist/core/cjs/Wrappers/ApiProvider/utils/createQueryParams.cjs +18 -0
  106. package/dist/core/cjs/Wrappers/ApiProvider/utils/getDefaultValues.cjs +28 -0
  107. package/dist/core/cjs/Wrappers/ApiProvider/utils/getValidationSchema.cjs +38 -0
  108. package/dist/core/cjs/Wrappers/InfiniteScroll/InfiniteScroll.cjs +32 -0
  109. package/dist/core/cjs/Wrappers/LazyLoadWrapper/LazyLoadWrapper.cjs +8 -0
  110. package/dist/core/cjs/Wrappers/Provider/Contexts/AuthContext.cjs +21 -0
  111. package/dist/core/cjs/Wrappers/Provider/Contexts/InfoContext.cjs +16 -0
  112. package/dist/core/cjs/Wrappers/Provider/Provider.cjs +25 -0
  113. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +58 -0
  114. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +19 -0
  115. package/dist/core/cjs/Wrappers/Provider/utils/authFetch.cjs +98 -0
  116. package/dist/core/cjs/Wrappers/Provider/utils/userCRUD.cjs +32 -0
  117. package/dist/core/cjs/_virtual/_commonjsHelpers.cjs +6 -0
  118. package/dist/core/cjs/_virtual/index.cjs +5 -0
  119. package/dist/core/cjs/_virtual/index2.cjs +5 -0
  120. package/dist/core/cjs/_virtual/index3.cjs +6 -0
  121. package/dist/core/cjs/_virtual/index4.cjs +4 -0
  122. package/dist/core/cjs/hooks/api/useApi.cjs +12 -0
  123. package/dist/core/cjs/hooks/api/useBulkActions.cjs +12 -0
  124. package/dist/core/cjs/hooks/api/useForms.cjs +12 -0
  125. package/dist/core/cjs/hooks/auth/useAuth.cjs +8 -0
  126. package/dist/core/cjs/hooks/auth/useInfo.cjs +8 -0
  127. package/dist/core/cjs/index.cjs +42 -0
  128. package/dist/core/esm/ActionIcons/Actions.mjs +28 -0
  129. package/dist/core/esm/ActionIcons/Add/Add.mjs +15 -0
  130. package/dist/core/esm/ActionIcons/Add/AddDialog.mjs +60 -0
  131. package/dist/core/esm/ActionIcons/Delete/Delete.mjs +28 -0
  132. package/dist/core/esm/ActionIcons/Download/Download.mjs +125 -0
  133. package/dist/core/esm/ActionIcons/Edit/Edit.mjs +34 -0
  134. package/dist/core/esm/ActionIcons/Edit/EditDialog.mjs +71 -0
  135. package/dist/core/esm/ActionIcons/Modals/CommonModal.mjs +96 -0
  136. package/dist/core/esm/ActionIcons/Modals/normalProps.mjs +17 -0
  137. package/dist/core/esm/ActionIcons/Modals/overlayProps.mjs +25 -0
  138. package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +24 -0
  139. package/dist/core/esm/ActionIcons/Upload/Upload.mjs +95 -0
  140. package/dist/core/esm/ActionIcons/View/RelationPanel.mjs +18 -0
  141. package/dist/core/esm/ActionIcons/View/View.mjs +38 -0
  142. package/dist/core/esm/ActionIcons/View/ViewDialog.mjs +55 -0
  143. package/dist/core/esm/ActionIcons/utils/convertToFormInputs.mjs +27 -0
  144. package/dist/core/esm/Dialogs/AlertDialog/AlertDialog.mjs +25 -0
  145. package/dist/core/esm/Menu/UserMenu/UserMenu.mjs +71 -0
  146. package/dist/core/esm/Menu/UserMenu/user.module.css.mjs +11 -0
  147. package/dist/core/esm/Tables/DataGrid/DataGrid.mjs +94 -0
  148. package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +23 -0
  149. package/dist/core/esm/Tables/DataGrid/FormField/FormField.mjs +90 -0
  150. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormDatePicker.mjs +21 -0
  151. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormDateTimePicker.mjs +21 -0
  152. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormGeometryField.mjs +18 -0
  153. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormJsonField.mjs +45 -0
  154. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormRelatedListSelect.mjs +11 -0
  155. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormRelatedSelect.mjs +31 -0
  156. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormSelect.mjs +17 -0
  157. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormTextField.mjs +14 -0
  158. package/dist/core/esm/Tables/DataGrid/Main/Body/Body.mjs +95 -0
  159. package/dist/core/esm/Tables/DataGrid/Main/Body/Field/Field.mjs +37 -0
  160. package/dist/core/esm/Tables/DataGrid/Main/Body/Field/Field.module.css.mjs +14 -0
  161. package/dist/core/esm/Tables/DataGrid/Main/Body/Row/Row.mjs +21 -0
  162. package/dist/core/esm/Tables/DataGrid/Main/Body/Row/Row.module.css.mjs +11 -0
  163. package/dist/core/esm/Tables/DataGrid/Main/Header/FieldTitle/FieldTitle.mjs +74 -0
  164. package/dist/core/esm/Tables/DataGrid/Main/Header/FieldTitle/FieldTitle.module.css.mjs +14 -0
  165. package/dist/core/esm/Tables/DataGrid/Main/Header/Header.mjs +37 -0
  166. package/dist/core/esm/Tables/DataGrid/Main/Main.mjs +88 -0
  167. package/dist/core/esm/Tables/DataGrid/Main/Main.module.css.mjs +8 -0
  168. package/dist/core/esm/Tables/DataGrid/Pagination/Pagination.mjs +104 -0
  169. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/Filter.mjs +33 -0
  170. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +138 -0
  171. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FormFilterField.mjs +17 -0
  172. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FormFilterIn.mjs +63 -0
  173. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FormOperatorField.mjs +17 -0
  174. package/dist/core/esm/Tables/DataGrid/Toolbar/Toolbar.mjs +30 -0
  175. package/dist/core/esm/Tables/NextGenDataGrid/FallbackWrapper.mjs +14 -0
  176. package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +216 -0
  177. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useActions.mjs +30 -0
  178. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useCheckbox.mjs +6 -0
  179. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFilters.mjs +80 -0
  180. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFiltersMenu.mjs +18 -0
  181. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/BasicFilters.mjs +23 -0
  182. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/ColumnHeaderFilter.mjs +273 -0
  183. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInput.mjs +16 -0
  184. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderBetweenInput.mjs +71 -0
  185. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderBooleanInput.mjs +28 -0
  186. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderDateInput.mjs +44 -0
  187. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderMultiSelectInput.mjs +28 -0
  188. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderSelectInput.mjs +8 -0
  189. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTagsInput.mjs +21 -0
  190. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTagsNumberInput.mjs +29 -0
  191. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTextInput.mjs +8 -0
  192. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/headerinput.module.css.mjs +9 -0
  193. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/FilterMenu.mjs +17 -0
  194. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/MultiLineHighlight.mjs +13 -0
  195. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/useColumns.mjs +134 -0
  196. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/utils.mjs +73 -0
  197. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useData.mjs +12 -0
  198. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useEvent.mjs +19 -0
  199. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useFilters.mjs +18 -0
  200. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useGlobalFilter.mjs +30 -0
  201. package/dist/core/esm/Tables/NextGenDataGrid/hooks/usePagination.mjs +44 -0
  202. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useQueryParams.mjs +43 -0
  203. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useSize.mjs +33 -0
  204. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useSorting.mjs +35 -0
  205. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.mjs +22 -0
  206. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.mjs +101 -0
  207. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.mjs +113 -0
  208. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.module.css.mjs +7 -0
  209. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/useToolbarAlertBanner.mjs +11 -0
  210. package/dist/core/esm/Tables/NextGenDataGrid/utils.mjs +23 -0
  211. package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +51 -0
  212. package/dist/core/esm/Wrappers/ApiProvider/Contexts/ApiContext.mjs +42 -0
  213. package/dist/core/esm/Wrappers/ApiProvider/Contexts/BulkActionsContext.mjs +13 -0
  214. package/dist/core/esm/Wrappers/ApiProvider/Contexts/FormContext.mjs +28 -0
  215. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +307 -0
  216. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideBulk.mjs +30 -0
  217. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideForm.mjs +22 -0
  218. package/dist/core/esm/Wrappers/ApiProvider/utils/api/createItem.mjs +14 -0
  219. package/dist/core/esm/Wrappers/ApiProvider/utils/api/deleteItem.mjs +10 -0
  220. package/dist/core/esm/Wrappers/ApiProvider/utils/api/downloadItems.mjs +40 -0
  221. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getInfo.mjs +13 -0
  222. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItem.mjs +10 -0
  223. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItems.mjs +10 -0
  224. package/dist/core/esm/Wrappers/ApiProvider/utils/api/updateItem.mjs +10 -0
  225. package/dist/core/esm/Wrappers/ApiProvider/utils/api/uploadItems.mjs +27 -0
  226. package/dist/core/esm/Wrappers/ApiProvider/utils/api/utils/parseResponse.mjs +19 -0
  227. package/dist/core/esm/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.mjs +26 -0
  228. package/dist/core/esm/Wrappers/ApiProvider/utils/convertId.mjs +12 -0
  229. package/dist/core/esm/Wrappers/ApiProvider/utils/convertInfo.mjs +20 -0
  230. package/dist/core/esm/Wrappers/ApiProvider/utils/createQueryParams.mjs +18 -0
  231. package/dist/core/esm/Wrappers/ApiProvider/utils/getDefaultValues.mjs +28 -0
  232. package/dist/core/esm/Wrappers/ApiProvider/utils/getValidationSchema.mjs +39 -0
  233. package/dist/core/esm/Wrappers/InfiniteScroll/InfiniteScroll.mjs +32 -0
  234. package/dist/core/esm/Wrappers/LazyLoadWrapper/LazyLoadWrapper.mjs +8 -0
  235. package/dist/core/esm/Wrappers/Provider/Contexts/AuthContext.mjs +21 -0
  236. package/dist/core/esm/Wrappers/Provider/Contexts/InfoContext.mjs +16 -0
  237. package/dist/core/esm/Wrappers/Provider/Provider.mjs +25 -0
  238. package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +58 -0
  239. package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +19 -0
  240. package/dist/core/esm/Wrappers/Provider/utils/authFetch.mjs +98 -0
  241. package/dist/core/esm/Wrappers/Provider/utils/userCRUD.mjs +32 -0
  242. package/dist/core/esm/_virtual/_commonjsHelpers.mjs +6 -0
  243. package/dist/core/esm/_virtual/index.mjs +5 -0
  244. package/dist/core/esm/_virtual/index2.mjs +5 -0
  245. package/dist/core/esm/_virtual/index3.mjs +7 -0
  246. package/dist/core/esm/_virtual/index4.mjs +4 -0
  247. package/dist/core/esm/hooks/api/useApi.mjs +12 -0
  248. package/dist/core/esm/hooks/api/useBulkActions.mjs +12 -0
  249. package/dist/core/esm/hooks/api/useForms.mjs +12 -0
  250. package/dist/core/esm/hooks/auth/useAuth.mjs +8 -0
  251. package/dist/core/esm/hooks/auth/useInfo.mjs +8 -0
  252. package/dist/core/esm/index.mjs +42 -0
  253. package/dist/core/style.css +1511 -0
  254. package/dist/external/cjs/@iconify_react@6.0.0_react@18.3.1/node_modules/@iconify/react/dist/iconify.cjs +1690 -0
  255. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/createReactComponent.cjs +36 -0
  256. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.cjs +29 -0
  257. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.cjs +10 -0
  258. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAppWindow.cjs +10 -0
  259. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowAutofitContent.cjs +10 -0
  260. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDown.cjs +10 -0
  261. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowUp.cjs +10 -0
  262. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsSort.cjs +10 -0
  263. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensityLarge.cjs +10 -0
  264. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensityMedium.cjs +10 -0
  265. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensitySmall.cjs +10 -0
  266. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.cjs +10 -0
  267. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.cjs +10 -0
  268. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.cjs +10 -0
  269. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeftPipe.cjs +10 -0
  270. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.cjs +10 -0
  271. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRightPipe.cjs +10 -0
  272. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronUp.cjs +10 -0
  273. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronsDown.cjs +10 -0
  274. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.cjs +10 -0
  275. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconClearAll.cjs +10 -0
  276. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.cjs +10 -0
  277. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.cjs +10 -0
  278. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.cjs +10 -0
  279. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDotsVertical.cjs +10 -0
  280. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDownload.cjs +10 -0
  281. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.cjs +10 -0
  282. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconExclamationCircle.cjs +10 -0
  283. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEye.cjs +10 -0
  284. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEyeOff.cjs +10 -0
  285. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFileTypeCsv.cjs +10 -0
  286. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.cjs +10 -0
  287. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilterCog.cjs +10 -0
  288. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilterOff.cjs +10 -0
  289. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconGripHorizontal.cjs +10 -0
  290. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconIdBadge2.cjs +10 -0
  291. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.cjs +10 -0
  292. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.cjs +10 -0
  293. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLogout.cjs +10 -0
  294. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMaximize.cjs +10 -0
  295. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMinimize.cjs +10 -0
  296. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPencil.cjs +10 -0
  297. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPinned.cjs +10 -0
  298. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.cjs +10 -0
  299. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.cjs +10 -0
  300. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconQuote.cjs +10 -0
  301. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRefresh.cjs +10 -0
  302. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.cjs +10 -0
  303. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearchOff.cjs +10 -0
  304. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.cjs +10 -0
  305. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.cjs +10 -0
  306. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.cjs +10 -0
  307. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.cjs +10 -0
  308. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconUpload.cjs +10 -0
  309. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconUsers.cjs +10 -0
  310. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconX.cjs +10 -0
  311. package/dist/external/cjs/@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.cjs +617 -0
  312. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/focusManager.cjs +77 -0
  313. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +113 -0
  314. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/mutation.cjs +254 -0
  315. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/mutationCache.cjs +139 -0
  316. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/notifyManager.cjs +83 -0
  317. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/onlineManager.cjs +66 -0
  318. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/query.cjs +397 -0
  319. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryCache.cjs +103 -0
  320. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryClient.cjs +314 -0
  321. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryObserver.cjs +454 -0
  322. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/removable.cjs +40 -0
  323. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/retryer.cjs +139 -0
  324. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/subscribable.cjs +24 -0
  325. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/thenable.cjs +34 -0
  326. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/utils.cjs +244 -0
  327. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs +46 -0
  328. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +38 -0
  329. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +45 -0
  330. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/isRestoring.cjs +24 -0
  331. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/suspense.cjs +20 -0
  332. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs +112 -0
  333. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/useQuery.cjs +8 -0
  334. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/utils.cjs +12 -0
  335. package/dist/external/cjs/@tanstack_react-table@8.20.5_react-dom@18.3.1_react@18.3.1/node_modules/@tanstack/react-table/build/lib/index.cjs +111 -0
  336. package/dist/external/cjs/@tanstack_react-virtual@3.11.2_react-dom@18.3.1_react@18.3.1/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +65 -0
  337. package/dist/external/cjs/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.cjs +3155 -0
  338. package/dist/external/cjs/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.cjs +688 -0
  339. package/dist/external/cjs/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.cjs +64 -0
  340. package/dist/external/cjs/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs +17 -0
  341. package/dist/external/cjs/dompurify@3.2.5/node_modules/dompurify/dist/purify.es.cjs +967 -0
  342. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_DataView.cjs +15 -0
  343. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Hash.cjs +30 -0
  344. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_ListCache.cjs +30 -0
  345. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Map.cjs +15 -0
  346. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_MapCache.cjs +30 -0
  347. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Promise.cjs +15 -0
  348. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Set.cjs +15 -0
  349. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_SetCache.cjs +24 -0
  350. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Stack.cjs +27 -0
  351. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Symbol.cjs +14 -0
  352. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Uint8Array.cjs +14 -0
  353. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_WeakMap.cjs +15 -0
  354. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_apply.cjs +24 -0
  355. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayIncludes.cjs +17 -0
  356. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.cjs +20 -0
  357. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.cjs +33 -0
  358. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayMap.cjs +18 -0
  359. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayPush.cjs +18 -0
  360. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayReduce.cjs +21 -0
  361. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_asciiToArray.cjs +14 -0
  362. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_asciiWords.cjs +15 -0
  363. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_assignMergeValue.cjs +19 -0
  364. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_assignValue.cjs +22 -0
  365. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_assocIndexOf.cjs +22 -0
  366. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseAssignValue.cjs +25 -0
  367. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseCreate.cjs +30 -0
  368. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseFindIndex.cjs +20 -0
  369. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseFlatten.cjs +32 -0
  370. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseFor.cjs +14 -0
  371. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseGetTag.cjs +23 -0
  372. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseIndexOf.cjs +18 -0
  373. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseIsArguments.cjs +18 -0
  374. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseIsNaN.cjs +14 -0
  375. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseIsNative.cjs +31 -0
  376. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.cjs +23 -0
  377. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseKeys.cjs +28 -0
  378. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseKeysIn.cjs +29 -0
  379. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseMerge.cjs +36 -0
  380. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.cjs +70 -0
  381. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_basePropertyOf.cjs +16 -0
  382. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseRange.cjs +20 -0
  383. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseRest.cjs +18 -0
  384. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseSetToString.cjs +23 -0
  385. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseSlice.cjs +28 -0
  386. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseTimes.cjs +18 -0
  387. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseToString.cjs +30 -0
  388. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseTrim.cjs +17 -0
  389. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseUnary.cjs +16 -0
  390. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseUniq.cjs +59 -0
  391. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_cacheHas.cjs +14 -0
  392. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_castSlice.cjs +18 -0
  393. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.cjs +18 -0
  394. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_cloneBuffer.cjs +28 -0
  395. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.cjs +17 -0
  396. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_copyArray.cjs +19 -0
  397. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_copyObject.cjs +32 -0
  398. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_coreJsData.cjs +14 -0
  399. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createAssigner.cjs +32 -0
  400. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createBaseFor.cjs +23 -0
  401. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createCaseFirst.cjs +25 -0
  402. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createCompounder.cjs +22 -0
  403. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createRange.cjs +31 -0
  404. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createSet.cjs +19 -0
  405. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_deburrLetter.cjs +208 -0
  406. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_defineProperty.cjs +21 -0
  407. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_freeGlobal.cjs +13 -0
  408. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getMapData.cjs +17 -0
  409. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getNative.cjs +18 -0
  410. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getPrototype.cjs +14 -0
  411. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getRawTag.cjs +34 -0
  412. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getTag.cjs +43 -0
  413. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getValue.cjs +14 -0
  414. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hasUnicode.cjs +17 -0
  415. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.cjs +15 -0
  416. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hashClear.cjs +17 -0
  417. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hashDelete.cjs +16 -0
  418. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hashGet.cjs +24 -0
  419. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hashHas.cjs +19 -0
  420. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hashSet.cjs +20 -0
  421. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_initCloneObject.cjs +18 -0
  422. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isFlattenable.cjs +19 -0
  423. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isIndex.cjs +18 -0
  424. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isIterateeCall.cjs +26 -0
  425. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isKeyable.cjs +15 -0
  426. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isMasked.cjs +20 -0
  427. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isPrototype.cjs +16 -0
  428. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_listCacheClear.cjs +15 -0
  429. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_listCacheDelete.cjs +29 -0
  430. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_listCacheGet.cjs +17 -0
  431. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_listCacheHas.cjs +16 -0
  432. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_listCacheSet.cjs +23 -0
  433. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_mapCacheClear.cjs +23 -0
  434. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.cjs +18 -0
  435. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_mapCacheGet.cjs +16 -0
  436. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_mapCacheHas.cjs +16 -0
  437. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_mapCacheSet.cjs +19 -0
  438. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_nativeCreate.cjs +14 -0
  439. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_nativeKeys.cjs +14 -0
  440. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.cjs +20 -0
  441. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_nodeUtil.cjs +30 -0
  442. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_objectToString.cjs +16 -0
  443. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_overArg.cjs +16 -0
  444. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_overRest.cjs +30 -0
  445. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_root.cjs +15 -0
  446. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_safeGet.cjs +20 -0
  447. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_setCacheAdd.cjs +16 -0
  448. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_setCacheHas.cjs +14 -0
  449. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_setToArray.cjs +18 -0
  450. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_setToString.cjs +15 -0
  451. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_shortOut.cjs +28 -0
  452. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stackClear.cjs +17 -0
  453. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stackDelete.cjs +16 -0
  454. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stackGet.cjs +14 -0
  455. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stackHas.cjs +14 -0
  456. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stackSet.cjs +31 -0
  457. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_strictIndexOf.cjs +20 -0
  458. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stringToArray.cjs +18 -0
  459. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_toSource.cjs +26 -0
  460. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.cjs +18 -0
  461. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_unicodeToArray.cjs +18 -0
  462. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_unicodeWords.cjs +27 -0
  463. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/constant.cjs +16 -0
  464. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/deburr.cjs +22 -0
  465. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/eq.cjs +14 -0
  466. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/identity.cjs +14 -0
  467. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isArguments.cjs +22 -0
  468. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isArray.cjs +12 -0
  469. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isArrayLike.cjs +17 -0
  470. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.cjs +17 -0
  471. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isBuffer.cjs +23 -0
  472. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isEmpty.cjs +44 -0
  473. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isFunction.cjs +22 -0
  474. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isLength.cjs +15 -0
  475. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isObject.cjs +15 -0
  476. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isObjectLike.cjs +14 -0
  477. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isPlainObject.cjs +31 -0
  478. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isSymbol.cjs +18 -0
  479. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isTypedArray.cjs +17 -0
  480. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/keysIn.cjs +18 -0
  481. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/lodash.cjs +5491 -0
  482. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/merge.cjs +17 -0
  483. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/noop.cjs +13 -0
  484. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/range.cjs +14 -0
  485. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/startCase.cjs +17 -0
  486. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/stubFalse.cjs +14 -0
  487. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/toFinite.cjs +25 -0
  488. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/toNumber.cjs +38 -0
  489. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/toPlainObject.cjs +17 -0
  490. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/toString.cjs +16 -0
  491. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/union.cjs +19 -0
  492. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/upperFirst.cjs +14 -0
  493. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/words.cjs +24 -0
  494. package/dist/external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@7.17.7_yup@1.6.1/node_modules/mantine-form-yup-resolver/dist/esm/index.cjs +20 -0
  495. package/dist/external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.7_@mantine_dates@7.17.7_@mantine_hooks@7._dm3meh6s7t7wwl37at3cedg6gm/node_modules/mantine-react-table/dist/index.esm.cjs +2950 -0
  496. package/dist/external/cjs/property-expr@2.0.6/node_modules/property-expr/index.cjs +105 -0
  497. package/dist/external/cjs/tiny-case@1.0.3/node_modules/tiny-case/index.cjs +33 -0
  498. package/dist/external/cjs/toposort@2.0.2/node_modules/toposort/index.cjs +79 -0
  499. package/dist/external/cjs/yup@1.6.1/node_modules/yup/index.esm.cjs +2331 -0
  500. package/dist/external/cjs/zustand@5.0.4_@types_react@18.3.20_react@18.3.1/node_modules/zustand/esm/react.cjs +23 -0
  501. package/dist/external/cjs/zustand@5.0.4_@types_react@18.3.20_react@18.3.1/node_modules/zustand/esm/vanilla.cjs +25 -0
  502. package/dist/external/esm/@iconify_react@6.0.0_react@18.3.1/node_modules/@iconify/react/dist/iconify.mjs +1690 -0
  503. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +37 -0
  504. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +30 -0
  505. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs +11 -0
  506. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAppWindow.mjs +11 -0
  507. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowAutofitContent.mjs +11 -0
  508. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDown.mjs +11 -0
  509. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowUp.mjs +11 -0
  510. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsSort.mjs +11 -0
  511. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensityLarge.mjs +11 -0
  512. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensityMedium.mjs +11 -0
  513. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensitySmall.mjs +11 -0
  514. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs +11 -0
  515. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +11 -0
  516. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs +11 -0
  517. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeftPipe.mjs +11 -0
  518. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs +11 -0
  519. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRightPipe.mjs +11 -0
  520. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronUp.mjs +11 -0
  521. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronsDown.mjs +11 -0
  522. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.mjs +11 -0
  523. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconClearAll.mjs +11 -0
  524. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.mjs +11 -0
  525. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.mjs +11 -0
  526. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs +11 -0
  527. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDotsVertical.mjs +11 -0
  528. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDownload.mjs +11 -0
  529. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs +11 -0
  530. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconExclamationCircle.mjs +11 -0
  531. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEye.mjs +11 -0
  532. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEyeOff.mjs +11 -0
  533. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFileTypeCsv.mjs +11 -0
  534. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.mjs +11 -0
  535. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilterCog.mjs +11 -0
  536. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilterOff.mjs +11 -0
  537. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconGripHorizontal.mjs +11 -0
  538. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconIdBadge2.mjs +11 -0
  539. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs +11 -0
  540. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.mjs +11 -0
  541. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLogout.mjs +11 -0
  542. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMaximize.mjs +11 -0
  543. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMinimize.mjs +11 -0
  544. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPencil.mjs +11 -0
  545. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPinned.mjs +11 -0
  546. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs +11 -0
  547. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs +11 -0
  548. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconQuote.mjs +11 -0
  549. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRefresh.mjs +11 -0
  550. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +11 -0
  551. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearchOff.mjs +11 -0
  552. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.mjs +11 -0
  553. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs +11 -0
  554. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs +11 -0
  555. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs +11 -0
  556. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconUpload.mjs +11 -0
  557. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconUsers.mjs +11 -0
  558. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +11 -0
  559. package/dist/external/esm/@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs +617 -0
  560. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/focusManager.mjs +77 -0
  561. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +113 -0
  562. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/mutation.mjs +254 -0
  563. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/mutationCache.mjs +139 -0
  564. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/notifyManager.mjs +83 -0
  565. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/onlineManager.mjs +66 -0
  566. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/query.mjs +397 -0
  567. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryCache.mjs +103 -0
  568. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryClient.mjs +314 -0
  569. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryObserver.mjs +454 -0
  570. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/removable.mjs +40 -0
  571. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/retryer.mjs +139 -0
  572. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/subscribable.mjs +24 -0
  573. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/thenable.mjs +34 -0
  574. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/utils.mjs +244 -0
  575. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.mjs +29 -0
  576. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +21 -0
  577. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +28 -0
  578. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/isRestoring.mjs +7 -0
  579. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/suspense.mjs +20 -0
  580. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/useBaseQuery.mjs +95 -0
  581. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/useQuery.mjs +8 -0
  582. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/utils.mjs +12 -0
  583. package/dist/external/esm/@tanstack_react-table@8.20.5_react-dom@18.3.1_react@18.3.1/node_modules/@tanstack/react-table/build/lib/index.mjs +95 -0
  584. package/dist/external/esm/@tanstack_react-virtual@3.11.2_react-dom@18.3.1_react@18.3.1/node_modules/@tanstack/react-virtual/dist/esm/index.mjs +49 -0
  585. package/dist/external/esm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.mjs +3155 -0
  586. package/dist/external/esm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.mjs +688 -0
  587. package/dist/external/esm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.mjs +64 -0
  588. package/dist/external/esm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs +17 -0
  589. package/dist/external/esm/dompurify@3.2.5/node_modules/dompurify/dist/purify.es.mjs +968 -0
  590. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_DataView.mjs +15 -0
  591. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Hash.mjs +30 -0
  592. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_ListCache.mjs +30 -0
  593. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Map.mjs +15 -0
  594. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_MapCache.mjs +30 -0
  595. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Promise.mjs +15 -0
  596. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Set.mjs +15 -0
  597. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_SetCache.mjs +24 -0
  598. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Stack.mjs +27 -0
  599. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Symbol.mjs +14 -0
  600. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Uint8Array.mjs +14 -0
  601. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_WeakMap.mjs +15 -0
  602. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_apply.mjs +24 -0
  603. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.mjs +17 -0
  604. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.mjs +20 -0
  605. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.mjs +33 -0
  606. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayMap.mjs +18 -0
  607. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayPush.mjs +18 -0
  608. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayReduce.mjs +21 -0
  609. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_asciiToArray.mjs +14 -0
  610. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_asciiWords.mjs +15 -0
  611. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.mjs +19 -0
  612. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_assignValue.mjs +22 -0
  613. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.mjs +22 -0
  614. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.mjs +25 -0
  615. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseCreate.mjs +30 -0
  616. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.mjs +20 -0
  617. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseFlatten.mjs +32 -0
  618. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseFor.mjs +14 -0
  619. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseGetTag.mjs +23 -0
  620. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseIndexOf.mjs +18 -0
  621. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.mjs +18 -0
  622. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseIsNaN.mjs +14 -0
  623. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseIsNative.mjs +31 -0
  624. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.mjs +23 -0
  625. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseKeys.mjs +28 -0
  626. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.mjs +29 -0
  627. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseMerge.mjs +36 -0
  628. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.mjs +70 -0
  629. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.mjs +16 -0
  630. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseRange.mjs +20 -0
  631. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseRest.mjs +18 -0
  632. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseSetToString.mjs +23 -0
  633. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseSlice.mjs +28 -0
  634. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseTimes.mjs +18 -0
  635. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseToString.mjs +30 -0
  636. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseTrim.mjs +17 -0
  637. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseUnary.mjs +16 -0
  638. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseUniq.mjs +59 -0
  639. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_cacheHas.mjs +14 -0
  640. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_castSlice.mjs +18 -0
  641. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.mjs +18 -0
  642. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.mjs +28 -0
  643. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.mjs +17 -0
  644. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_copyArray.mjs +19 -0
  645. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_copyObject.mjs +32 -0
  646. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_coreJsData.mjs +14 -0
  647. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createAssigner.mjs +32 -0
  648. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createBaseFor.mjs +23 -0
  649. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.mjs +25 -0
  650. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createCompounder.mjs +22 -0
  651. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createRange.mjs +31 -0
  652. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createSet.mjs +19 -0
  653. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_deburrLetter.mjs +208 -0
  654. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_defineProperty.mjs +21 -0
  655. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_freeGlobal.mjs +13 -0
  656. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getMapData.mjs +17 -0
  657. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getNative.mjs +18 -0
  658. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getPrototype.mjs +14 -0
  659. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getRawTag.mjs +34 -0
  660. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getTag.mjs +43 -0
  661. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getValue.mjs +14 -0
  662. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hasUnicode.mjs +17 -0
  663. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.mjs +15 -0
  664. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hashClear.mjs +17 -0
  665. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hashDelete.mjs +16 -0
  666. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hashGet.mjs +24 -0
  667. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hashHas.mjs +19 -0
  668. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hashSet.mjs +20 -0
  669. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_initCloneObject.mjs +18 -0
  670. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isFlattenable.mjs +19 -0
  671. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isIndex.mjs +18 -0
  672. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.mjs +26 -0
  673. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isKeyable.mjs +15 -0
  674. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isMasked.mjs +20 -0
  675. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isPrototype.mjs +16 -0
  676. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_listCacheClear.mjs +15 -0
  677. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.mjs +29 -0
  678. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_listCacheGet.mjs +17 -0
  679. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_listCacheHas.mjs +16 -0
  680. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_listCacheSet.mjs +23 -0
  681. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.mjs +23 -0
  682. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.mjs +18 -0
  683. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.mjs +16 -0
  684. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.mjs +16 -0
  685. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.mjs +19 -0
  686. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_nativeCreate.mjs +14 -0
  687. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_nativeKeys.mjs +14 -0
  688. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.mjs +20 -0
  689. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_nodeUtil.mjs +30 -0
  690. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_objectToString.mjs +16 -0
  691. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_overArg.mjs +16 -0
  692. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_overRest.mjs +30 -0
  693. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_root.mjs +15 -0
  694. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_safeGet.mjs +20 -0
  695. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.mjs +16 -0
  696. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_setCacheHas.mjs +14 -0
  697. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_setToArray.mjs +18 -0
  698. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_setToString.mjs +15 -0
  699. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_shortOut.mjs +28 -0
  700. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stackClear.mjs +17 -0
  701. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stackDelete.mjs +16 -0
  702. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stackGet.mjs +14 -0
  703. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stackHas.mjs +14 -0
  704. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stackSet.mjs +31 -0
  705. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_strictIndexOf.mjs +20 -0
  706. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stringToArray.mjs +18 -0
  707. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_toSource.mjs +26 -0
  708. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.mjs +18 -0
  709. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.mjs +18 -0
  710. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_unicodeWords.mjs +27 -0
  711. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/constant.mjs +16 -0
  712. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/deburr.mjs +22 -0
  713. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/eq.mjs +14 -0
  714. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/identity.mjs +14 -0
  715. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isArguments.mjs +22 -0
  716. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isArray.mjs +12 -0
  717. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isArrayLike.mjs +17 -0
  718. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.mjs +17 -0
  719. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isBuffer.mjs +23 -0
  720. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isEmpty.mjs +44 -0
  721. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isFunction.mjs +22 -0
  722. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isLength.mjs +15 -0
  723. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isObject.mjs +15 -0
  724. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isObjectLike.mjs +14 -0
  725. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isPlainObject.mjs +31 -0
  726. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isSymbol.mjs +18 -0
  727. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isTypedArray.mjs +17 -0
  728. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/keysIn.mjs +18 -0
  729. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/lodash.mjs +5491 -0
  730. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/merge.mjs +17 -0
  731. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/noop.mjs +13 -0
  732. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/range.mjs +14 -0
  733. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/startCase.mjs +17 -0
  734. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/stubFalse.mjs +14 -0
  735. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/toFinite.mjs +25 -0
  736. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/toNumber.mjs +38 -0
  737. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/toPlainObject.mjs +17 -0
  738. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/toString.mjs +16 -0
  739. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/union.mjs +19 -0
  740. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/upperFirst.mjs +14 -0
  741. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/words.mjs +24 -0
  742. package/dist/external/esm/mantine-form-yup-resolver@2.0.0_@mantine_form@7.17.7_yup@1.6.1/node_modules/mantine-form-yup-resolver/dist/esm/index.mjs +20 -0
  743. package/dist/external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.7_@mantine_dates@7.17.7_@mantine_hooks@7._dm3meh6s7t7wwl37at3cedg6gm/node_modules/mantine-react-table/dist/index.esm.mjs +2950 -0
  744. package/dist/external/esm/property-expr@2.0.6/node_modules/property-expr/index.mjs +105 -0
  745. package/dist/external/esm/tiny-case@1.0.3/node_modules/tiny-case/index.mjs +33 -0
  746. package/dist/external/esm/toposort@2.0.2/node_modules/toposort/index.mjs +79 -0
  747. package/dist/external/esm/yup@1.6.1/node_modules/yup/index.esm.mjs +2331 -0
  748. package/dist/external/esm/zustand@5.0.4_@types_react@18.3.20_react@18.3.1/node_modules/zustand/esm/react.mjs +23 -0
  749. package/dist/external/esm/zustand@5.0.4_@types_react@18.3.20_react@18.3.1/node_modules/zustand/esm/vanilla.mjs +25 -0
  750. package/dist/hooks/cjs/index.cjs +8 -0
  751. package/dist/hooks/cjs/useActionIcon/useActionIcon.cjs +16 -0
  752. package/dist/hooks/cjs/useActionIcon/useActionIcon.module.css.cjs +8 -0
  753. package/dist/hooks/cjs/useCustomFetch/useCustomFetch.cjs +58 -0
  754. package/dist/hooks/cjs/useTrueOnce/useTrueOnce.cjs +15 -0
  755. package/dist/hooks/esm/index.mjs +8 -0
  756. package/dist/hooks/esm/useActionIcon/useActionIcon.mjs +16 -0
  757. package/dist/hooks/esm/useActionIcon/useActionIcon.module.css.mjs +8 -0
  758. package/dist/hooks/esm/useCustomFetch/useCustomFetch.mjs +58 -0
  759. package/dist/hooks/esm/useTrueOnce/useTrueOnce.mjs +15 -0
  760. package/dist/hooks/style.css +3 -0
  761. package/dist/jsonforms/cjs/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +30 -0
  762. package/dist/jsonforms/cjs/MantineInputs/MantineBooleanInput.cjs +21 -0
  763. package/dist/jsonforms/cjs/MantineInputs/MantineDateInput.cjs +20 -0
  764. package/dist/jsonforms/cjs/MantineInputs/MantineDateTimeInput.cjs +28 -0
  765. package/dist/jsonforms/cjs/MantineInputs/MantineEnumArrayInput.cjs +20 -0
  766. package/dist/jsonforms/cjs/MantineInputs/MantineEnumInput.cjs +20 -0
  767. package/dist/jsonforms/cjs/MantineInputs/MantineJsonInput.cjs +20 -0
  768. package/dist/jsonforms/cjs/MantineInputs/MantineNumberInput.cjs +20 -0
  769. package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +41 -0
  770. package/dist/jsonforms/cjs/MantineInputs/MantineOneOfEnumInput.cjs +31 -0
  771. package/dist/jsonforms/cjs/MantineInputs/MantineTextInput.cjs +23 -0
  772. package/dist/jsonforms/cjs/_virtual/_cloneBuffer.cjs +4 -0
  773. package/dist/jsonforms/cjs/_virtual/_commonjsHelpers.cjs +8 -0
  774. package/dist/jsonforms/cjs/_virtual/_nodeUtil.cjs +4 -0
  775. package/dist/jsonforms/cjs/_virtual/isBuffer.cjs +4 -0
  776. package/dist/jsonforms/cjs/_virtual/isEmpty.cjs +6 -0
  777. package/dist/jsonforms/cjs/_virtual/lodash.cjs +5 -0
  778. package/dist/jsonforms/cjs/_virtual/lodash2.cjs +4 -0
  779. package/dist/jsonforms/cjs/_virtual/merge.cjs +6 -0
  780. package/dist/jsonforms/cjs/_virtual/range.cjs +6 -0
  781. package/dist/jsonforms/cjs/_virtual/startCase.cjs +6 -0
  782. package/dist/jsonforms/cjs/_virtual/union.cjs +6 -0
  783. package/dist/jsonforms/cjs/cells/MantineBooleanCell.cjs +10 -0
  784. package/dist/jsonforms/cjs/cells/MantineDateCell.cjs +10 -0
  785. package/dist/jsonforms/cjs/cells/MantineDateTimeCell.cjs +10 -0
  786. package/dist/jsonforms/cjs/cells/MantineEnumArrayCell.cjs +11 -0
  787. package/dist/jsonforms/cjs/cells/MantineEnumCell.cjs +13 -0
  788. package/dist/jsonforms/cjs/cells/MantineIntegerCell.cjs +10 -0
  789. package/dist/jsonforms/cjs/cells/MantineJsonCell.cjs +11 -0
  790. package/dist/jsonforms/cjs/cells/MantineNumberCell.cjs +10 -0
  791. package/dist/jsonforms/cjs/cells/MantineOneOfEnumCell.cjs +13 -0
  792. package/dist/jsonforms/cjs/cells/MantineTextCell.cjs +10 -0
  793. package/dist/jsonforms/cjs/complex/MantineArrayControl/DeleteDialog.cjs +24 -0
  794. package/dist/jsonforms/cjs/complex/MantineArrayControl/MantineArrayControl.cjs +59 -0
  795. package/dist/jsonforms/cjs/complex/MantineEnumArrayControl.cjs +11 -0
  796. package/dist/jsonforms/cjs/complex/MantineObjectControl.cjs +10 -0
  797. package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +358 -0
  798. package/dist/jsonforms/cjs/complex/MantineTableControl/NoBorderTableCell.cjs +7 -0
  799. package/dist/jsonforms/cjs/complex/MantineTableControl/TableToolbar.cjs +70 -0
  800. package/dist/jsonforms/cjs/complex/MantineTableControl/ValidationIcon.cjs +19 -0
  801. package/dist/jsonforms/cjs/controls/MantineBooleanControl.cjs +10 -0
  802. package/dist/jsonforms/cjs/controls/MantineDateControl.cjs +10 -0
  803. package/dist/jsonforms/cjs/controls/MantineDateTimeControl.cjs +10 -0
  804. package/dist/jsonforms/cjs/controls/MantineEnumControl.cjs +13 -0
  805. package/dist/jsonforms/cjs/controls/MantineIntegerControl.cjs +10 -0
  806. package/dist/jsonforms/cjs/controls/MantineJsonControl.cjs +11 -0
  807. package/dist/jsonforms/cjs/controls/MantineNumberControl.cjs +10 -0
  808. package/dist/jsonforms/cjs/controls/MantineOneOfEnumControl.cjs +13 -0
  809. package/dist/jsonforms/cjs/controls/MantineTextControl.cjs +10 -0
  810. package/dist/jsonforms/cjs/hooks/useBooleanProps.cjs +23 -0
  811. package/dist/jsonforms/cjs/hooks/useCommonProps.cjs +28 -0
  812. package/dist/jsonforms/cjs/hooks/useContextProps.cjs +21 -0
  813. package/dist/jsonforms/cjs/hooks/useDateProps.cjs +58 -0
  814. package/dist/jsonforms/cjs/hooks/useJsonProps.cjs +34 -0
  815. package/dist/jsonforms/cjs/hooks/useMultiSelectProps.cjs +12 -0
  816. package/dist/jsonforms/cjs/hooks/useNumberProps.cjs +11 -0
  817. package/dist/jsonforms/cjs/hooks/useSelectProps.cjs +11 -0
  818. package/dist/jsonforms/cjs/hooks/useTextProps.cjs +9 -0
  819. package/dist/jsonforms/cjs/hooks/useThemeCustomizer.cjs +19 -0
  820. package/dist/jsonforms/cjs/index.cjs +41 -0
  821. package/dist/jsonforms/cjs/labels/MantineLabelRenderer.cjs +17 -0
  822. package/dist/jsonforms/cjs/layouts/MantineGroupLayoutRenderer.cjs +22 -0
  823. package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +21 -0
  824. package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +21 -0
  825. package/dist/jsonforms/cjs/renderers/mantineCells.cjs +25 -0
  826. package/dist/jsonforms/cjs/renderers/mantineRenderers.cjs +41 -0
  827. package/dist/jsonforms/cjs/testers/isEnumArrayArrayControl.cjs +24 -0
  828. package/dist/jsonforms/cjs/testers/isEnumArrayControl.cjs +23 -0
  829. package/dist/jsonforms/cjs/testers/isJsonArrayControl.cjs +19 -0
  830. package/dist/jsonforms/cjs/testers/isJsonControl.cjs +19 -0
  831. package/dist/jsonforms/cjs/utils/isSchemaTypeInclude.cjs +6 -0
  832. package/dist/jsonforms/cjs/utils/layout.cjs +37 -0
  833. package/dist/jsonforms/cjs/utils/utcConverter.cjs +11 -0
  834. package/dist/jsonforms/esm/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +30 -0
  835. package/dist/jsonforms/esm/MantineInputs/MantineBooleanInput.mjs +21 -0
  836. package/dist/jsonforms/esm/MantineInputs/MantineDateInput.mjs +20 -0
  837. package/dist/jsonforms/esm/MantineInputs/MantineDateTimeInput.mjs +28 -0
  838. package/dist/jsonforms/esm/MantineInputs/MantineEnumArrayInput.mjs +20 -0
  839. package/dist/jsonforms/esm/MantineInputs/MantineEnumInput.mjs +20 -0
  840. package/dist/jsonforms/esm/MantineInputs/MantineJsonInput.mjs +20 -0
  841. package/dist/jsonforms/esm/MantineInputs/MantineNumberInput.mjs +20 -0
  842. package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +41 -0
  843. package/dist/jsonforms/esm/MantineInputs/MantineOneOfEnumInput.mjs +31 -0
  844. package/dist/jsonforms/esm/MantineInputs/MantineTextInput.mjs +23 -0
  845. package/dist/jsonforms/esm/_virtual/_cloneBuffer.mjs +4 -0
  846. package/dist/jsonforms/esm/_virtual/_commonjsHelpers.mjs +8 -0
  847. package/dist/jsonforms/esm/_virtual/_nodeUtil.mjs +4 -0
  848. package/dist/jsonforms/esm/_virtual/isBuffer.mjs +4 -0
  849. package/dist/jsonforms/esm/_virtual/isEmpty.mjs +7 -0
  850. package/dist/jsonforms/esm/_virtual/lodash.mjs +5 -0
  851. package/dist/jsonforms/esm/_virtual/lodash2.mjs +4 -0
  852. package/dist/jsonforms/esm/_virtual/merge.mjs +7 -0
  853. package/dist/jsonforms/esm/_virtual/range.mjs +7 -0
  854. package/dist/jsonforms/esm/_virtual/startCase.mjs +7 -0
  855. package/dist/jsonforms/esm/_virtual/union.mjs +7 -0
  856. package/dist/jsonforms/esm/cells/MantineBooleanCell.mjs +10 -0
  857. package/dist/jsonforms/esm/cells/MantineDateCell.mjs +10 -0
  858. package/dist/jsonforms/esm/cells/MantineDateTimeCell.mjs +10 -0
  859. package/dist/jsonforms/esm/cells/MantineEnumArrayCell.mjs +11 -0
  860. package/dist/jsonforms/esm/cells/MantineEnumCell.mjs +13 -0
  861. package/dist/jsonforms/esm/cells/MantineIntegerCell.mjs +10 -0
  862. package/dist/jsonforms/esm/cells/MantineJsonCell.mjs +11 -0
  863. package/dist/jsonforms/esm/cells/MantineNumberCell.mjs +10 -0
  864. package/dist/jsonforms/esm/cells/MantineOneOfEnumCell.mjs +13 -0
  865. package/dist/jsonforms/esm/cells/MantineTextCell.mjs +10 -0
  866. package/dist/jsonforms/esm/complex/MantineArrayControl/DeleteDialog.mjs +24 -0
  867. package/dist/jsonforms/esm/complex/MantineArrayControl/MantineArrayControl.mjs +59 -0
  868. package/dist/jsonforms/esm/complex/MantineEnumArrayControl.mjs +11 -0
  869. package/dist/jsonforms/esm/complex/MantineObjectControl.mjs +10 -0
  870. package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +358 -0
  871. package/dist/jsonforms/esm/complex/MantineTableControl/NoBorderTableCell.mjs +7 -0
  872. package/dist/jsonforms/esm/complex/MantineTableControl/TableToolbar.mjs +70 -0
  873. package/dist/jsonforms/esm/complex/MantineTableControl/ValidationIcon.mjs +19 -0
  874. package/dist/jsonforms/esm/controls/MantineBooleanControl.mjs +10 -0
  875. package/dist/jsonforms/esm/controls/MantineDateControl.mjs +10 -0
  876. package/dist/jsonforms/esm/controls/MantineDateTimeControl.mjs +10 -0
  877. package/dist/jsonforms/esm/controls/MantineEnumControl.mjs +13 -0
  878. package/dist/jsonforms/esm/controls/MantineIntegerControl.mjs +10 -0
  879. package/dist/jsonforms/esm/controls/MantineJsonControl.mjs +11 -0
  880. package/dist/jsonforms/esm/controls/MantineNumberControl.mjs +10 -0
  881. package/dist/jsonforms/esm/controls/MantineOneOfEnumControl.mjs +13 -0
  882. package/dist/jsonforms/esm/controls/MantineTextControl.mjs +10 -0
  883. package/dist/jsonforms/esm/hooks/useBooleanProps.mjs +23 -0
  884. package/dist/jsonforms/esm/hooks/useCommonProps.mjs +28 -0
  885. package/dist/jsonforms/esm/hooks/useContextProps.mjs +21 -0
  886. package/dist/jsonforms/esm/hooks/useDateProps.mjs +58 -0
  887. package/dist/jsonforms/esm/hooks/useJsonProps.mjs +34 -0
  888. package/dist/jsonforms/esm/hooks/useMultiSelectProps.mjs +12 -0
  889. package/dist/jsonforms/esm/hooks/useNumberProps.mjs +11 -0
  890. package/dist/jsonforms/esm/hooks/useSelectProps.mjs +11 -0
  891. package/dist/jsonforms/esm/hooks/useTextProps.mjs +9 -0
  892. package/dist/jsonforms/esm/hooks/useThemeCustomizer.mjs +19 -0
  893. package/dist/jsonforms/esm/index.mjs +41 -0
  894. package/dist/jsonforms/esm/labels/MantineLabelRenderer.mjs +17 -0
  895. package/dist/jsonforms/esm/layouts/MantineGroupLayoutRenderer.mjs +22 -0
  896. package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +21 -0
  897. package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +21 -0
  898. package/dist/jsonforms/esm/renderers/mantineCells.mjs +25 -0
  899. package/dist/jsonforms/esm/renderers/mantineRenderers.mjs +41 -0
  900. package/dist/jsonforms/esm/testers/isEnumArrayArrayControl.mjs +24 -0
  901. package/dist/jsonforms/esm/testers/isEnumArrayControl.mjs +23 -0
  902. package/dist/jsonforms/esm/testers/isJsonArrayControl.mjs +19 -0
  903. package/dist/jsonforms/esm/testers/isJsonControl.mjs +19 -0
  904. package/dist/jsonforms/esm/utils/isSchemaTypeInclude.mjs +6 -0
  905. package/dist/jsonforms/esm/utils/layout.mjs +37 -0
  906. package/dist/jsonforms/esm/utils/utcConverter.mjs +11 -0
  907. package/dist/utils/cjs/createFetchParams/createFetchParams.cjs +27 -0
  908. package/dist/utils/cjs/deepMerge/deepMerge.cjs +26 -0
  909. package/dist/utils/cjs/getValue/getValue.cjs +19 -0
  910. package/dist/utils/cjs/getValueOrDefault/getValueOrDefault.cjs +4 -0
  911. package/dist/utils/cjs/index.cjs +18 -0
  912. package/dist/utils/cjs/isTruthy/isTruthy.cjs +6 -0
  913. package/dist/utils/cjs/parseFromValuesOrFunc/parseFromValuesOrFunc.cjs +4 -0
  914. package/dist/utils/cjs/parseValue/parseValue.cjs +18 -0
  915. package/dist/utils/cjs/urlJoin/urlJoin.cjs +48 -0
  916. package/dist/utils/esm/createFetchParams/createFetchParams.mjs +27 -0
  917. package/dist/utils/esm/deepMerge/deepMerge.mjs +26 -0
  918. package/dist/utils/esm/getValue/getValue.mjs +19 -0
  919. package/dist/utils/esm/getValueOrDefault/getValueOrDefault.mjs +4 -0
  920. package/dist/utils/esm/index.mjs +18 -0
  921. package/dist/utils/esm/isTruthy/isTruthy.mjs +6 -0
  922. package/dist/utils/esm/parseFromValuesOrFunc/parseFromValuesOrFunc.mjs +4 -0
  923. package/dist/utils/esm/parseValue/parseValue.mjs +18 -0
  924. package/dist/utils/esm/urlJoin/urlJoin.mjs +48 -0
  925. package/dist/zustand/cjs/index.cjs +8 -0
  926. package/dist/zustand/cjs/useProxy/useProxy.cjs +15 -0
  927. package/dist/zustand/cjs/utils/compareStateWithStore.cjs +14 -0
  928. package/dist/zustand/cjs/utils/createProxy.cjs +8 -0
  929. package/dist/zustand/esm/index.mjs +8 -0
  930. package/dist/zustand/esm/useProxy/useProxy.mjs +15 -0
  931. package/dist/zustand/esm/utils/compareStateWithStore.mjs +14 -0
  932. package/dist/zustand/esm/utils/createProxy.mjs +8 -0
  933. package/package.json +59 -44
  934. package/dist/fastapi-rtk.es.js +0 -19007
  935. package/dist/fastapi-rtk.umd.js +0 -352
  936. package/dist/style.css +0 -1
@@ -0,0 +1,2950 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const clsx = require("../../../../clsx@2.1.1/node_modules/clsx/dist/clsx.cjs");
5
+ const React = require("react");
6
+ const core = require("@mantine/core");
7
+ const index = require("../../../../@tanstack_react-table@8.20.5_react-dom@18.3.1_react@18.3.1/node_modules/@tanstack/react-table/build/lib/index.cjs");
8
+ const index$2 = require("../../../../@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.cjs");
9
+ const index$3 = require("../../../../@tanstack_react-virtual@3.11.2_react-dom@18.3.1_react@18.3.1/node_modules/@tanstack/react-virtual/dist/esm/index.cjs");
10
+ const hooks = require("@mantine/hooks");
11
+ const dates = require("@mantine/dates");
12
+ const index$1 = require("../../../../@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.cjs");
13
+ const IconX = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconX.cjs");
14
+ const IconSortDescending = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.cjs");
15
+ const IconSortAscending = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.cjs");
16
+ const IconSearchOff = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearchOff.cjs");
17
+ const IconSearch = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.cjs");
18
+ const IconPinnedOff = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.cjs");
19
+ const IconPinned = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPinned.cjs");
20
+ const IconMinimize = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMinimize.cjs");
21
+ const IconMaximize = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMaximize.cjs");
22
+ const IconGripHorizontal = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconGripHorizontal.cjs");
23
+ const IconFilterOff = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilterOff.cjs");
24
+ const IconFilterCog = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilterCog.cjs");
25
+ const IconFilter = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.cjs");
26
+ const IconEyeOff = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEyeOff.cjs");
27
+ const IconEdit = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.cjs");
28
+ const IconDotsVertical = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDotsVertical.cjs");
29
+ const IconDots = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.cjs");
30
+ const IconDeviceFloppy = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.cjs");
31
+ const IconColumns = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.cjs");
32
+ const IconClearAll = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconClearAll.cjs");
33
+ const IconCircleX = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.cjs");
34
+ const IconChevronsDown = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronsDown.cjs");
35
+ const IconChevronRightPipe = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRightPipe.cjs");
36
+ const IconChevronRight = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.cjs");
37
+ const IconChevronLeftPipe = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeftPipe.cjs");
38
+ const IconChevronLeft = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.cjs");
39
+ const IconChevronDown = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.cjs");
40
+ const IconBoxMultiple = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.cjs");
41
+ const IconBaselineDensitySmall = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensitySmall.cjs");
42
+ const IconBaselineDensityMedium = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensityMedium.cjs");
43
+ const IconBaselineDensityLarge = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensityLarge.cjs");
44
+ const IconArrowsSort = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsSort.cjs");
45
+ const IconArrowAutofitContent = require("../../../../@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowAutofitContent.cjs");
46
+ const index$4 = require("../../../../@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.cjs");
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
+ t[p] = s[p];
51
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
+ t[p[i]] = s[p[i]];
55
+ }
56
+ return t;
57
+ }
58
+ typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
59
+ var e = new Error(message);
60
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
61
+ };
62
+ var classes$C = { "root": "MRT_TableBody-module_root__kGhRy", "root-grid": "MRT_TableBody-module_root-grid__WdOGg", "root-no-rows": "MRT_TableBody-module_root-no-rows__iyi9K", "root-virtualized": "MRT_TableBody-module_root-virtualized__TxPAi", "empty-row-tr-grid": "MRT_TableBody-module_empty-row-tr-grid__LTgxw", "empty-row-td-grid": "MRT_TableBody-module_empty-row-td-grid__pzlgG", "empty-row-td-content": "MRT_TableBody-module_empty-row-td-content__Cc2XW", "pinned": "MRT_TableBody-module_pinned__XHpcs" };
63
+ var classes$B = { "root": "MRT_TableBodyRow-module_root__2c3D4", "root-grid": "MRT_TableBodyRow-module_root-grid__AwXTe", "root-virtualized": "MRT_TableBodyRow-module_root-virtualized__zYgxq" };
64
+ var classes$A = { "root": "MRT_TableBodyCell-module_root__Wf-zi", "root-grid": "MRT_TableBodyCell-module_root-grid__zIuC-", "root-virtualized": "MRT_TableBodyCell-module_root-virtualized__jLl8R", "root-data-col": "MRT_TableBodyCell-module_root-data-col__HHcxc", "root-nowrap": "MRT_TableBodyCell-module_root-nowrap__-k1Jo", "root-cursor-pointer": "MRT_TableBodyCell-module_root-cursor-pointer__4kw7J", "root-editable-hover": "MRT_TableBodyCell-module_root-editable-hover__2DKSa", "root-cell-hover-reveal": "MRT_TableBodyCell-module_root-cell-hover-reveal__T1fAH", "cell-hover-reveal": "MRT_TableBodyCell-module_cell-hover-reveal__Q-1Xj", "overflowing": "MRT_TableBodyCell-module_overflowing__QcXP4" };
65
+ const parseFromValuesOrFunc = (fn, arg) => fn instanceof Function ? fn(arg) : fn;
66
+ const allowedTypes = ["string", "number"];
67
+ const allowedFilterVariants = ["text", "autocomplete"];
68
+ const MRT_TableBodyCellValue = ({ cell, renderedColumnIndex = 0, renderedRowIndex = 0, table }) => {
69
+ var _a, _b;
70
+ const { getState, options: { enableFilterMatchHighlighting, mantineHighlightProps } } = table;
71
+ const { column, row } = cell;
72
+ const { columnDef } = column;
73
+ const { globalFilter, globalFilterFn } = getState();
74
+ const filterValue = column.getFilterValue();
75
+ const highlightProps = parseFromValuesOrFunc(mantineHighlightProps, {
76
+ cell,
77
+ column,
78
+ row,
79
+ table
80
+ });
81
+ let renderedCellValue = cell.getIsAggregated() && columnDef.AggregatedCell ? columnDef.AggregatedCell({
82
+ cell,
83
+ column,
84
+ row,
85
+ table
86
+ }) : row.getIsGrouped() && !cell.getIsGrouped() ? null : cell.getIsGrouped() && columnDef.GroupedCell ? columnDef.GroupedCell({
87
+ cell,
88
+ column,
89
+ row,
90
+ table
91
+ }) : void 0;
92
+ const isGroupedValue = renderedCellValue !== void 0;
93
+ if (!isGroupedValue) {
94
+ renderedCellValue = cell.renderValue();
95
+ }
96
+ if (enableFilterMatchHighlighting && columnDef.enableFilterMatchHighlighting !== false && renderedCellValue && allowedTypes.includes(typeof renderedCellValue) && (filterValue && allowedTypes.includes(typeof filterValue) && allowedFilterVariants.includes(columnDef.filterVariant) || globalFilter && allowedTypes.includes(typeof globalFilter) && column.getCanGlobalFilter())) {
97
+ let highlight = ((_b = (_a = column.getFilterValue()) !== null && _a !== void 0 ? _a : globalFilter) !== null && _b !== void 0 ? _b : "").toString();
98
+ if ((filterValue ? columnDef._filterFn : globalFilterFn) === "fuzzy") {
99
+ highlight = highlight.split(" ");
100
+ }
101
+ renderedCellValue = jsxRuntime.jsx(core.Highlight, Object.assign({ color: "yellow.3", highlight }, highlightProps, { children: renderedCellValue === null || renderedCellValue === void 0 ? void 0 : renderedCellValue.toString() }));
102
+ }
103
+ if (columnDef.Cell && !isGroupedValue) {
104
+ renderedCellValue = columnDef.Cell({
105
+ cell,
106
+ column,
107
+ renderedCellValue,
108
+ renderedColumnIndex,
109
+ renderedRowIndex,
110
+ row,
111
+ table
112
+ });
113
+ }
114
+ return renderedCellValue;
115
+ };
116
+ const parseCSSVarId = (id) => id.replace(/[^a-zA-Z0-9]/g, "_");
117
+ const getPrimaryShade = (theme) => {
118
+ var _a, _b;
119
+ return typeof theme.primaryShade === "number" ? theme.primaryShade : (_b = (_a = theme.primaryShade) === null || _a === void 0 ? void 0 : _a.dark) !== null && _b !== void 0 ? _b : 7;
120
+ };
121
+ const getPrimaryColor = (theme, shade) => theme.colors[theme.primaryColor][getPrimaryShade(theme)];
122
+ function dataVariable(name, value) {
123
+ const key = `data-${name}`;
124
+ switch (typeof value) {
125
+ case "boolean":
126
+ return value ? { [key]: "" } : null;
127
+ case "number":
128
+ return { [key]: `${value}` };
129
+ case "string":
130
+ return { [key]: value };
131
+ default:
132
+ return null;
133
+ }
134
+ }
135
+ var classes$z = { "root": "MRT_CopyButton-module_root__mkXy4" };
136
+ const MRT_CopyButton = (_a) => {
137
+ var { cell, children, table } = _a, rest = __rest(_a, ["cell", "children", "table"]);
138
+ const { options: { localization: { clickToCopy, copiedToClipboard }, mantineCopyButtonProps } } = table;
139
+ const { column, row } = cell;
140
+ const { columnDef } = column;
141
+ const arg = { cell, column, row, table };
142
+ const buttonProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineCopyButtonProps, arg)), parseFromValuesOrFunc(columnDef.mantineCopyButtonProps, arg)), rest);
143
+ return jsxRuntime.jsx(core.CopyButton, { value: cell.getValue(), children: ({ copied, copy }) => {
144
+ var _a2;
145
+ return jsxRuntime.jsx(core.Tooltip, { color: copied ? "green" : void 0, label: (_a2 = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.title) !== null && _a2 !== void 0 ? _a2 : copied ? copiedToClipboard : clickToCopy, openDelay: 1e3, withinPortal: true, children: jsxRuntime.jsx(core.UnstyledButton, Object.assign({}, buttonProps, { className: clsx.clsx("mrt-copy-button", classes$z.root, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.className), onClick: (e) => {
146
+ e.stopPropagation();
147
+ copy();
148
+ }, role: "presentation", title: void 0, children })) });
149
+ } });
150
+ };
151
+ const MRT_EditCellTextInput = (_a) => {
152
+ var _b;
153
+ var { cell, table } = _a, rest = __rest(_a, ["cell", "table"]);
154
+ const { getState, options: { createDisplayMode, editDisplayMode, mantineEditSelectProps, mantineEditTextInputProps }, refs: { editInputRefs }, setCreatingRow, setEditingCell, setEditingRow } = table;
155
+ const { column, row } = cell;
156
+ const { columnDef } = column;
157
+ const { creatingRow, editingRow } = getState();
158
+ const isCreating = (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
159
+ const isEditing = (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id;
160
+ const isSelectEdit = columnDef.editVariant === "select";
161
+ const isMultiSelectEdit = columnDef.editVariant === "multi-select";
162
+ const [value, setValue] = React.useState(() => cell.getValue());
163
+ const arg = { cell, column, row, table };
164
+ const textInputProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineEditTextInputProps, arg)), parseFromValuesOrFunc(columnDef.mantineEditTextInputProps, arg)), rest);
165
+ const selectProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineEditSelectProps, arg)), parseFromValuesOrFunc(columnDef.mantineEditSelectProps, arg)), rest);
166
+ const saveInputValueToRowCache = (newValue) => {
167
+ row._valuesCache[column.id] = newValue;
168
+ if (isCreating) {
169
+ setCreatingRow(row);
170
+ } else if (isEditing) {
171
+ setEditingRow(row);
172
+ }
173
+ };
174
+ const handleBlur = (event) => {
175
+ var _a2;
176
+ (_a2 = textInputProps.onBlur) === null || _a2 === void 0 ? void 0 : _a2.call(textInputProps, event);
177
+ saveInputValueToRowCache(value);
178
+ setEditingCell(null);
179
+ };
180
+ const handleEnterKeyDown = (event) => {
181
+ var _a2, _b2;
182
+ (_a2 = textInputProps.onKeyDown) === null || _a2 === void 0 ? void 0 : _a2.call(textInputProps, event);
183
+ if (event.key === "Enter") {
184
+ (_b2 = editInputRefs.current[cell.id]) === null || _b2 === void 0 ? void 0 : _b2.blur();
185
+ }
186
+ };
187
+ if (columnDef.Edit) {
188
+ return (_b = columnDef.Edit) === null || _b === void 0 ? void 0 : _b.call(columnDef, { cell, column, row, table });
189
+ }
190
+ const commonProps = {
191
+ disabled: parseFromValuesOrFunc(columnDef.enableEditing, row) === false,
192
+ label: ["custom", "modal"].includes(isCreating ? createDisplayMode : editDisplayMode) ? column.columnDef.header : void 0,
193
+ name: cell.id,
194
+ onClick: (e) => {
195
+ var _a2;
196
+ e.stopPropagation();
197
+ (_a2 = textInputProps === null || textInputProps === void 0 ? void 0 : textInputProps.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(textInputProps, e);
198
+ },
199
+ placeholder: !["custom", "modal"].includes(isCreating ? createDisplayMode : editDisplayMode) ? columnDef.header : void 0,
200
+ value,
201
+ variant: editDisplayMode === "table" ? "unstyled" : "default"
202
+ };
203
+ if (isSelectEdit) {
204
+ return jsxRuntime.jsx(core.Select, Object.assign({}, commonProps, { searchable: true, value }, selectProps, { onBlur: handleBlur, onChange: (value2, option) => {
205
+ var _a2, _b2;
206
+ (_b2 = (_a2 = selectProps).onChange) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, value2, option);
207
+ setValue(value2);
208
+ }, onClick: (e) => {
209
+ var _a2;
210
+ e.stopPropagation();
211
+ (_a2 = selectProps === null || selectProps === void 0 ? void 0 : selectProps.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(selectProps, e);
212
+ }, ref: (node) => {
213
+ if (node) {
214
+ editInputRefs.current[cell.id] = node;
215
+ if (selectProps.ref) {
216
+ selectProps.ref.current = node;
217
+ }
218
+ }
219
+ } }));
220
+ }
221
+ if (isMultiSelectEdit) {
222
+ return jsxRuntime.jsx(core.MultiSelect, Object.assign({}, commonProps, { searchable: true, value }, selectProps, { onBlur: handleBlur, onChange: (newValue) => {
223
+ var _a2, _b2;
224
+ (_b2 = (_a2 = selectProps).onChange) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, value);
225
+ setValue(newValue);
226
+ if (document.activeElement === editInputRefs.current[cell.id])
227
+ return;
228
+ saveInputValueToRowCache(newValue);
229
+ }, onClick: (e) => {
230
+ var _a2;
231
+ e.stopPropagation();
232
+ (_a2 = selectProps === null || selectProps === void 0 ? void 0 : selectProps.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(selectProps, e);
233
+ }, ref: (node) => {
234
+ if (node) {
235
+ editInputRefs.current[cell.id] = node;
236
+ if (selectProps.ref) {
237
+ selectProps.ref.current = node;
238
+ }
239
+ }
240
+ } }));
241
+ }
242
+ return jsxRuntime.jsx(core.TextInput, Object.assign({}, commonProps, { onKeyDown: handleEnterKeyDown, value: value !== null && value !== void 0 ? value : "" }, textInputProps, { onBlur: handleBlur, onChange: (event) => {
243
+ var _a2;
244
+ (_a2 = textInputProps.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(textInputProps, event);
245
+ setValue(event.target.value);
246
+ }, onClick: (event) => {
247
+ var _a2;
248
+ event.stopPropagation();
249
+ (_a2 = textInputProps === null || textInputProps === void 0 ? void 0 : textInputProps.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(textInputProps, event);
250
+ }, ref: (node) => {
251
+ if (node) {
252
+ editInputRefs.current[cell.id] = node;
253
+ if (textInputProps.ref) {
254
+ textInputProps.ref.current = node;
255
+ }
256
+ }
257
+ } }));
258
+ };
259
+ const MRT_TableBodyCell = (_a) => {
260
+ var _b, _c, _d, _e, _f;
261
+ var { cell, numRows = 1, renderedColumnIndex = 0, renderedRowIndex = 0, rowRef, table, virtualCell } = _a, rest = __rest(_a, ["cell", "numRows", "renderedColumnIndex", "renderedRowIndex", "rowRef", "table", "virtualCell"]);
262
+ const direction = core.useDirection();
263
+ const { getState, options: { columnResizeDirection, columnResizeMode, createDisplayMode, editDisplayMode, enableClickToCopy, enableColumnOrdering, enableColumnPinning, enableEditing, enableGrouping, layoutMode, mantineSkeletonProps, mantineTableBodyCellProps }, refs: { editInputRefs }, setEditingCell, setHoveredColumn } = table;
264
+ const { columnSizingInfo, creatingRow, density, draggingColumn, editingCell, editingRow, hoveredColumn, isLoading, showSkeletons } = getState();
265
+ const { column, row } = cell;
266
+ const { columnDef } = column;
267
+ const { columnDefType } = columnDef;
268
+ const args = {
269
+ cell,
270
+ column,
271
+ renderedColumnIndex,
272
+ renderedRowIndex,
273
+ row,
274
+ table
275
+ };
276
+ const tableCellProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableBodyCellProps, args)), parseFromValuesOrFunc(columnDef.mantineTableBodyCellProps, args)), rest);
277
+ const skeletonProps = parseFromValuesOrFunc(mantineSkeletonProps, args);
278
+ const [skeletonWidth, setSkeletonWidth] = React.useState(100);
279
+ React.useEffect(() => {
280
+ if (!isLoading && !showSkeletons || skeletonWidth !== 100)
281
+ return;
282
+ const size = column.getSize();
283
+ setSkeletonWidth(columnDefType === "display" ? size / 2 : Math.round(Math.random() * (size - size / 3) + size / 3));
284
+ }, [isLoading, showSkeletons]);
285
+ const widthStyles = {
286
+ minWidth: `max(calc(var(--col-${parseCSSVarId(column === null || column === void 0 ? void 0 : column.id)}-size) * 1px), ${(_b = columnDef.minSize) !== null && _b !== void 0 ? _b : 30}px)`,
287
+ width: `calc(var(--col-${parseCSSVarId(column.id)}-size) * 1px)`
288
+ };
289
+ if (layoutMode === "grid") {
290
+ widthStyles.flex = `${[0, false].includes(columnDef.grow) ? 0 : `var(--col-${parseCSSVarId(column.id)}-size)`} 0 auto`;
291
+ } else if (layoutMode === "grid-no-grow") {
292
+ widthStyles.flex = `${+(columnDef.grow || 0)} 0 auto`;
293
+ }
294
+ const isDraggingColumn = (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id;
295
+ const isHoveredColumn = (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id;
296
+ const isColumnPinned = enableColumnPinning && columnDef.columnDefType !== "group" && column.getIsPinned();
297
+ const isEditable = !cell.getIsPlaceholder() && parseFromValuesOrFunc(enableEditing, row) && parseFromValuesOrFunc(columnDef.enableEditing, row) !== false;
298
+ const isEditing = isEditable && !["custom", "modal"].includes(editDisplayMode) && (editDisplayMode === "table" || (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id || (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) === cell.id) && !row.getIsGrouped();
299
+ const isCreating = isEditable && createDisplayMode === "row" && (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
300
+ const showClickToCopyButton = parseFromValuesOrFunc(enableClickToCopy, cell) || parseFromValuesOrFunc(columnDef.enableClickToCopy, cell) && parseFromValuesOrFunc(columnDef.enableClickToCopy, cell) !== false;
301
+ const handleDoubleClick = (event) => {
302
+ var _a2;
303
+ (_a2 = tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.onDoubleClick) === null || _a2 === void 0 ? void 0 : _a2.call(tableCellProps, event);
304
+ if (isEditable && editDisplayMode === "cell") {
305
+ setEditingCell(cell);
306
+ setTimeout(() => {
307
+ var _a3;
308
+ const textField = editInputRefs.current[cell.id];
309
+ if (textField) {
310
+ textField.focus();
311
+ (_a3 = textField.select) === null || _a3 === void 0 ? void 0 : _a3.call(textField);
312
+ }
313
+ }, 100);
314
+ }
315
+ };
316
+ const handleDragEnter = (e) => {
317
+ var _a2;
318
+ (_a2 = tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.onDragEnter) === null || _a2 === void 0 ? void 0 : _a2.call(tableCellProps, e);
319
+ if (enableGrouping && (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === "drop-zone") {
320
+ setHoveredColumn(null);
321
+ }
322
+ if (enableColumnOrdering && draggingColumn) {
323
+ setHoveredColumn(columnDef.enableColumnOrdering !== false ? column : null);
324
+ }
325
+ };
326
+ const cellValueProps = {
327
+ cell,
328
+ renderedColumnIndex,
329
+ renderedRowIndex,
330
+ table
331
+ };
332
+ const cellHoverRevealDivRef = React.useRef(null);
333
+ const [isCellContentOverflowing, setIsCellContentOverflowing] = React.useState(false);
334
+ const onMouseEnter = () => {
335
+ if (!columnDef.enableCellHoverReveal)
336
+ return;
337
+ const div = cellHoverRevealDivRef.current;
338
+ if (div) {
339
+ const isOverflow = div.scrollWidth > div.clientWidth;
340
+ setIsCellContentOverflowing(isOverflow);
341
+ }
342
+ };
343
+ const onMouseLeave = () => {
344
+ if (!columnDef.enableCellHoverReveal)
345
+ return;
346
+ setIsCellContentOverflowing(false);
347
+ };
348
+ const renderCellContent = () => {
349
+ var _a2, _b2, _c2;
350
+ if (cell.getIsPlaceholder()) {
351
+ return (_b2 = (_a2 = columnDef.PlaceholderCell) === null || _a2 === void 0 ? void 0 : _a2.call(columnDef, { cell, column, row, table })) !== null && _b2 !== void 0 ? _b2 : null;
352
+ }
353
+ if (showSkeletons !== false && (isLoading || showSkeletons)) {
354
+ return jsxRuntime.jsx(core.Skeleton, Object.assign({ height: 20, width: skeletonWidth }, skeletonProps));
355
+ }
356
+ if (columnDefType === "display" && (["mrt-row-expand", "mrt-row-numbers", "mrt-row-select"].includes(column.id) || !row.getIsGrouped())) {
357
+ return (_c2 = columnDef.Cell) === null || _c2 === void 0 ? void 0 : _c2.call(columnDef, Object.assign({
358
+ column,
359
+ renderedCellValue: cell.renderValue(),
360
+ row,
361
+ rowRef
362
+ }, cellValueProps));
363
+ }
364
+ if (isCreating || isEditing) {
365
+ return jsxRuntime.jsx(MRT_EditCellTextInput, { cell, table });
366
+ }
367
+ if (showClickToCopyButton && columnDef.enableClickToCopy !== false) {
368
+ return jsxRuntime.jsx(MRT_CopyButton, { cell, table, children: jsxRuntime.jsx(MRT_TableBodyCellValue, Object.assign({}, cellValueProps)) });
369
+ }
370
+ return jsxRuntime.jsx(MRT_TableBodyCellValue, Object.assign({}, cellValueProps));
371
+ };
372
+ return jsxRuntime.jsx(core.TableTd, Object.assign({ "data-column-pinned": isColumnPinned || void 0, "data-dragging-column": isDraggingColumn || void 0, "data-first-right-pinned": isColumnPinned === "right" && column.getIsFirstColumn(isColumnPinned) || void 0, "data-hovered-column-target": isHoveredColumn || void 0, "data-index": renderedColumnIndex, "data-last-left-pinned": isColumnPinned === "left" && column.getIsLastColumn(isColumnPinned) || void 0, "data-last-row": renderedRowIndex === numRows - 1 || void 0, "data-resizing": columnResizeMode === "onChange" && (columnSizingInfo === null || columnSizingInfo === void 0 ? void 0 : columnSizingInfo.isResizingColumn) === column.id && columnResizeDirection || void 0 }, tableCellProps, { __vars: Object.assign({ "--mrt-cell-align": (_c = tableCellProps.align) !== null && _c !== void 0 ? _c : direction.dir === "rtl" ? "right" : "left", "--mrt-table-cell-left": isColumnPinned === "left" ? `${column.getStart(isColumnPinned)}` : void 0, "--mrt-table-cell-right": isColumnPinned === "right" ? `${column.getAfter(isColumnPinned)}` : void 0 }, tableCellProps.__vars), className: clsx.clsx(classes$A.root, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$A["root-grid"], virtualCell && classes$A["root-virtualized"], isEditable && editDisplayMode === "cell" && classes$A["root-cursor-pointer"], isEditable && ["cell", "table"].includes(editDisplayMode !== null && editDisplayMode !== void 0 ? editDisplayMode : "") && columnDefType !== "display" && classes$A["root-editable-hover"], columnDefType === "data" && classes$A["root-data-col"], density === "xs" && classes$A["root-nowrap"], columnDef.enableCellHoverReveal && classes$A["root-cell-hover-reveal"], tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.className), onDoubleClick: handleDoubleClick, onDragEnter: handleDragEnter, onMouseEnter, onMouseLeave, style: (theme) => Object.assign(Object.assign({}, widthStyles), parseFromValuesOrFunc(tableCellProps.style, theme)), children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: (_d = tableCellProps.children) !== null && _d !== void 0 ? _d : columnDef.enableCellHoverReveal ? jsxRuntime.jsxs("div", { className: clsx.clsx(columnDef.enableCellHoverReveal && !(isCreating || isEditing) && classes$A["cell-hover-reveal"], isCellContentOverflowing && classes$A["overflowing"]), ref: cellHoverRevealDivRef, children: [renderCellContent(), cell.getIsGrouped() && !columnDef.GroupedCell && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [" (", (_e = row.subRows) === null || _e === void 0 ? void 0 : _e.length, ")"] })] }) : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [renderCellContent(), cell.getIsGrouped() && !columnDef.GroupedCell && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [" (", (_f = row.subRows) === null || _f === void 0 ? void 0 : _f.length, ")"] })] }) }) }));
373
+ };
374
+ const Memo_MRT_TableBodyCell = React.memo(MRT_TableBodyCell, (prev, next2) => next2.cell === prev.cell);
375
+ var classes$y = { "root": "MRT_TableDetailPanel-module_root__vQAlM", "root-grid": "MRT_TableDetailPanel-module_root-grid__7UMC6", "root-virtual-row": "MRT_TableDetailPanel-module_root-virtual-row__r-X4Z", "inner": "MRT_TableDetailPanel-module_inner__o-Fk-", "inner-grid": "MRT_TableDetailPanel-module_inner-grid__WLZgF", "inner-expanded": "MRT_TableDetailPanel-module_inner-expanded__6tg9T", "inner-virtual": "MRT_TableDetailPanel-module_inner-virtual__TItRy" };
376
+ const MRT_TableDetailPanel = (_a) => {
377
+ var _b, _c;
378
+ var { parentRowRef, renderedRowIndex = 0, row, rowVirtualizer, striped, table, virtualRow } = _a, rest = __rest(_a, ["parentRowRef", "renderedRowIndex", "row", "rowVirtualizer", "striped", "table", "virtualRow"]);
379
+ const { getState, getVisibleLeafColumns, options: { layoutMode, mantineDetailPanelProps, mantineTableBodyRowProps, renderDetailPanel } } = table;
380
+ const { isLoading } = getState();
381
+ const tableRowProps = parseFromValuesOrFunc(mantineTableBodyRowProps, {
382
+ isDetailPanel: true,
383
+ row,
384
+ table
385
+ });
386
+ const tableCellProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineDetailPanelProps, {
387
+ row,
388
+ table
389
+ })), rest);
390
+ const internalEditComponents = row.getAllCells().filter((cell) => cell.column.columnDef.columnDefType === "data").map((cell) => jsxRuntime.jsx(MRT_EditCellTextInput, { cell, table }, cell.id));
391
+ const DetailPanel = !isLoading && row.getIsExpanded() && (renderDetailPanel === null || renderDetailPanel === void 0 ? void 0 : renderDetailPanel({ internalEditComponents, row, table }));
392
+ return jsxRuntime.jsx(core.TableTr, Object.assign({ "data-index": renderDetailPanel ? renderedRowIndex * 2 + 1 : renderedRowIndex, "data-striped": striped, ref: (node) => {
393
+ var _a2;
394
+ if (node) {
395
+ (_a2 = rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement) === null || _a2 === void 0 ? void 0 : _a2.call(rowVirtualizer, node);
396
+ }
397
+ } }, tableRowProps, { __vars: Object.assign({ "--mrt-parent-row-height": virtualRow ? `${(_c = (_b = parentRowRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect()) === null || _c === void 0 ? void 0 : _c.height}px` : void 0, "--mrt-virtual-row-start": virtualRow ? `${virtualRow.start}px` : void 0 }, tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.__vars), className: clsx.clsx("mantine-Table-tr-detail-panel", classes$y.root, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$y["root-grid"], virtualRow && classes$y["root-virtual-row"], tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.className), children: jsxRuntime.jsx(core.TableTd, Object.assign({ colSpan: getVisibleLeafColumns().length, component: "td" }, tableCellProps, { __vars: {
398
+ "--mrt-inner-width": `${table.getTotalSize()}px`
399
+ }, className: clsx.clsx("mantine-Table-td-detail-panel", classes$y.inner, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$y["inner-grid"], row.getIsExpanded() && classes$y["inner-expanded"], virtualRow && classes$y["inner-virtual"]), p: row.getIsExpanded() && DetailPanel ? "md" : 0, children: rowVirtualizer ? row.getIsExpanded() && DetailPanel : jsxRuntime.jsx(core.Collapse, { in: row.getIsExpanded(), children: DetailPanel }) })) }));
400
+ };
401
+ const fuzzy$1 = (rowA, rowB, columnId) => {
402
+ let dir = 0;
403
+ if (rowA.columnFiltersMeta[columnId]) {
404
+ dir = index$2.compareItems(rowA.columnFiltersMeta[columnId], rowB.columnFiltersMeta[columnId]);
405
+ }
406
+ return dir === 0 ? index$1.sortingFns.alphanumeric(rowA, rowB, columnId) : dir;
407
+ };
408
+ const MRT_SortingFns = Object.assign(Object.assign({}, index$1.sortingFns), { fuzzy: fuzzy$1 });
409
+ const rankGlobalFuzzy = (rowA, rowB) => Math.max(...Object.values(rowB.columnFiltersMeta).map((v) => v.rank)) - Math.max(...Object.values(rowA.columnFiltersMeta).map((v) => v.rank));
410
+ const getMRT_Rows = (table, all) => {
411
+ const { getCenterRows, getPrePaginationRowModel, getRowModel, getState, getTopRows, options: { createDisplayMode, enablePagination, enableRowPinning, manualPagination, positionCreatingRow, rowPinningDisplayMode } } = table;
412
+ const { creatingRow, pagination } = getState();
413
+ const isRankingRows = getIsRankingRows(table);
414
+ let rows = [];
415
+ if (!isRankingRows) {
416
+ rows = !enableRowPinning || (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes("sticky")) ? all ? getPrePaginationRowModel().rows : getRowModel().rows : getCenterRows();
417
+ } else {
418
+ rows = getPrePaginationRowModel().rows.sort((a, b) => rankGlobalFuzzy(a, b));
419
+ if (enablePagination && !manualPagination && !all) {
420
+ const start = pagination.pageIndex * pagination.pageSize;
421
+ rows = rows.slice(start, start + pagination.pageSize);
422
+ }
423
+ if (enableRowPinning && !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes("sticky"))) {
424
+ rows = rows.filter((row) => !row.getIsPinned());
425
+ }
426
+ }
427
+ if (enableRowPinning && (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes("sticky"))) {
428
+ const centerPinnedRowIds = rows.filter((row) => row.getIsPinned()).map((r) => r.id);
429
+ rows = [
430
+ ...getTopRows().filter((row) => !centerPinnedRowIds.includes(row.id)),
431
+ ...rows
432
+ ];
433
+ }
434
+ if (positionCreatingRow !== void 0 && creatingRow && createDisplayMode === "row") {
435
+ const creatingRowIndex = !isNaN(+positionCreatingRow) ? +positionCreatingRow : positionCreatingRow === "top" ? 0 : rows.length;
436
+ rows = [
437
+ ...rows.slice(0, creatingRowIndex),
438
+ creatingRow,
439
+ ...rows.slice(creatingRowIndex)
440
+ ];
441
+ }
442
+ return rows;
443
+ };
444
+ const getCanRankRows = (table) => {
445
+ const { getState, options: { enableGlobalFilterRankedResults, manualExpanding, manualFiltering, manualGrouping, manualSorting } } = table;
446
+ const { expanded, globalFilterFn } = getState();
447
+ return !manualExpanding && !manualFiltering && !manualGrouping && !manualSorting && enableGlobalFilterRankedResults && globalFilterFn === "fuzzy" && expanded !== true && !Object.values(expanded).some(Boolean);
448
+ };
449
+ const getIsRankingRows = (table) => {
450
+ const { globalFilter, sorting } = table.getState();
451
+ return getCanRankRows(table) && globalFilter && !Object.values(sorting).some(Boolean);
452
+ };
453
+ const getIsRowSelected = ({ row, table }) => {
454
+ const { options: { enableRowSelection } } = table;
455
+ return row.getIsSelected() || parseFromValuesOrFunc(enableRowSelection, row) && row.getCanSelectSubRows() && row.getIsAllSubRowsSelected();
456
+ };
457
+ const getMRT_RowSelectionHandler = ({ renderedRowIndex = 0, row, table }) => (event, value) => {
458
+ var _a;
459
+ const { getState, options: { enableBatchRowSelection, enableMultiRowSelection, enableRowPinning, manualPagination, rowPinningDisplayMode }, refs: { lastSelectedRowId } } = table;
460
+ const { pagination: { pageIndex, pageSize } } = getState();
461
+ const paginationOffset = manualPagination ? 0 : pageSize * pageIndex;
462
+ const wasCurrentRowChecked = getIsRowSelected({ row, table });
463
+ row.toggleSelected(value !== null && value !== void 0 ? value : !wasCurrentRowChecked);
464
+ const changedRowIds = /* @__PURE__ */ new Set([row.id]);
465
+ if (enableBatchRowSelection && enableMultiRowSelection && event.nativeEvent.shiftKey && lastSelectedRowId.current !== null) {
466
+ const rows = getMRT_Rows(table, true);
467
+ const lastIndex = rows.findIndex((r) => r.id === lastSelectedRowId.current);
468
+ if (lastIndex !== -1) {
469
+ const isLastIndexChecked = getIsRowSelected({
470
+ row: rows === null || rows === void 0 ? void 0 : rows[lastIndex],
471
+ table
472
+ });
473
+ const currentIndex = renderedRowIndex + paginationOffset;
474
+ const [start, end] = lastIndex < currentIndex ? [lastIndex, currentIndex] : [currentIndex, lastIndex];
475
+ if (wasCurrentRowChecked !== isLastIndexChecked) {
476
+ for (let i = start; i <= end; i++) {
477
+ rows[i].toggleSelected(!wasCurrentRowChecked);
478
+ changedRowIds.add(rows[i].id);
479
+ }
480
+ }
481
+ }
482
+ }
483
+ lastSelectedRowId.current = row.id;
484
+ if (row.getCanSelectSubRows() && row.getIsAllSubRowsSelected()) {
485
+ (_a = row.subRows) === null || _a === void 0 ? void 0 : _a.forEach((r) => r.toggleSelected(false));
486
+ }
487
+ if (enableRowPinning && (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes("select"))) {
488
+ changedRowIds.forEach((rowId) => {
489
+ const rowToTogglePin = table.getRow(rowId);
490
+ rowToTogglePin.pin(!wasCurrentRowChecked ? (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes("bottom")) ? "bottom" : "top" : false);
491
+ });
492
+ }
493
+ };
494
+ const getMRT_SelectAllHandler = ({ table }) => (event, value, forceAll) => {
495
+ const { options: { enableRowPinning, rowPinningDisplayMode, selectAllMode }, refs: { lastSelectedRowId } } = table;
496
+ if (selectAllMode === "all" || forceAll) {
497
+ table.toggleAllRowsSelected(value !== null && value !== void 0 ? value : event.target.checked);
498
+ } else {
499
+ table.toggleAllPageRowsSelected(value !== null && value !== void 0 ? value : event.target.checked);
500
+ }
501
+ if (enableRowPinning && (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes("select"))) {
502
+ table.setRowPinning({ bottom: [], top: [] });
503
+ }
504
+ lastSelectedRowId.current = null;
505
+ };
506
+ const MRT_TableBodyRow = (_a) => {
507
+ var _b, _c, _d;
508
+ var { children, columnVirtualizer, numRows, pinnedRowIds, renderedRowIndex = 0, row, rowVirtualizer, table, tableProps, virtualRow } = _a, rest = __rest(_a, ["children", "columnVirtualizer", "numRows", "pinnedRowIds", "renderedRowIndex", "row", "rowVirtualizer", "table", "tableProps", "virtualRow"]);
509
+ const { getState, options: { enableRowOrdering, enableRowPinning, enableStickyFooter, enableStickyHeader, layoutMode, mantineTableBodyRowProps, memoMode, renderDetailPanel, rowPinningDisplayMode }, refs: { tableFooterRef, tableHeadRef }, setHoveredRow } = table;
510
+ const { density, draggingColumn, draggingRow, editingCell, editingRow, hoveredRow, isFullScreen, rowPinning } = getState();
511
+ const visibleCells = row.getVisibleCells();
512
+ const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } = columnVirtualizer !== null && columnVirtualizer !== void 0 ? columnVirtualizer : {};
513
+ const isRowSelected = getIsRowSelected({ row, table });
514
+ const isRowPinned = enableRowPinning && row.getIsPinned();
515
+ const isRowStickyPinned = isRowPinned && (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes("sticky")) && "sticky";
516
+ const isDraggingRow = (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id;
517
+ const isHoveredRow = (hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.id) === row.id;
518
+ const tableRowProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableBodyRowProps, {
519
+ renderedRowIndex,
520
+ row,
521
+ table
522
+ })), rest);
523
+ const [bottomPinnedIndex, topPinnedIndex] = React.useMemo(() => {
524
+ if (!enableRowPinning || !isRowStickyPinned || !pinnedRowIds || !row.getIsPinned())
525
+ return [];
526
+ return [
527
+ [...pinnedRowIds].reverse().indexOf(row.id),
528
+ pinnedRowIds.indexOf(row.id)
529
+ ];
530
+ }, [pinnedRowIds, rowPinning]);
531
+ const tableHeadHeight = (enableStickyHeader || isFullScreen) && ((_b = tableHeadRef.current) === null || _b === void 0 ? void 0 : _b.clientHeight) || 0;
532
+ const tableFooterHeight = enableStickyFooter && ((_c = tableFooterRef.current) === null || _c === void 0 ? void 0 : _c.clientHeight) || 0;
533
+ const rowHeight = (
534
+ // @ts-ignore
535
+ parseInt((_d = tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.style) === null || _d === void 0 ? void 0 : _d.height, 10) || (density === "xs" ? 37 : density === "md" ? 53 : 69)
536
+ );
537
+ const handleDragEnter = (_e) => {
538
+ if (enableRowOrdering && draggingRow) {
539
+ setHoveredRow(row);
540
+ }
541
+ };
542
+ const rowRef = React.useRef(null);
543
+ let striped = tableProps.striped;
544
+ if (striped) {
545
+ if (striped === true) {
546
+ striped = "odd";
547
+ }
548
+ if (striped === "odd" && renderedRowIndex % 2 !== 0) {
549
+ striped = false;
550
+ }
551
+ if (striped === "even" && renderedRowIndex % 2 === 0) {
552
+ striped = false;
553
+ }
554
+ }
555
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(core.TableTr, Object.assign({ "data-dragging-row": isDraggingRow || void 0, "data-hovered-row-target": isHoveredRow || void 0, "data-index": renderDetailPanel ? renderedRowIndex * 2 : renderedRowIndex, "data-row-pinned": isRowStickyPinned || isRowPinned || void 0, "data-selected": isRowSelected || void 0, "data-striped": striped, onDragEnter: handleDragEnter, ref: (node) => {
556
+ if (node) {
557
+ rowRef.current = node;
558
+ rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement(node);
559
+ }
560
+ } }, tableRowProps, { __vars: Object.assign(Object.assign({}, tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.__vars), { "--mrt-pinned-row-bottom": !virtualRow && bottomPinnedIndex !== void 0 && isRowPinned ? `${bottomPinnedIndex * rowHeight + (enableStickyFooter ? tableFooterHeight - 1 : 0)}` : void 0, "--mrt-pinned-row-top": virtualRow ? void 0 : topPinnedIndex !== void 0 && isRowPinned ? `${topPinnedIndex * rowHeight + (enableStickyHeader || isFullScreen ? tableHeadHeight - 1 : 0)}` : void 0, "--mrt-virtual-row-start": virtualRow ? `${virtualRow.start}` : void 0 }), className: clsx.clsx(classes$B.root, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$B["root-grid"], virtualRow && classes$B["root-virtualized"], tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.className), children: [virtualPaddingLeft ? jsxRuntime.jsx(core.Box, { component: "td", display: "flex", w: virtualPaddingLeft }) : null, children ? children : (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : row.getVisibleCells()).map((cellOrVirtualCell, renderedColumnIndex) => {
561
+ let cell = cellOrVirtualCell;
562
+ if (columnVirtualizer) {
563
+ renderedColumnIndex = cellOrVirtualCell.index;
564
+ cell = visibleCells[renderedColumnIndex];
565
+ }
566
+ const cellProps = {
567
+ cell,
568
+ numRows,
569
+ renderedColumnIndex,
570
+ renderedRowIndex,
571
+ rowRef,
572
+ table,
573
+ virtualCell: columnVirtualizer ? cellOrVirtualCell : void 0
574
+ };
575
+ return memoMode === "cells" && cell.column.columnDef.columnDefType === "data" && !draggingColumn && !draggingRow && (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) !== cell.id && (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) !== row.id ? jsxRuntime.jsx(Memo_MRT_TableBodyCell, Object.assign({}, cellProps), cell.id) : jsxRuntime.jsx(MRT_TableBodyCell, Object.assign({}, cellProps), cell.id);
576
+ }), virtualPaddingRight ? jsxRuntime.jsx(core.Box, { component: "td", display: "flex", w: virtualPaddingRight }) : null] })), renderDetailPanel && !row.getIsGrouped() && jsxRuntime.jsx(MRT_TableDetailPanel, { parentRowRef: rowRef, renderedRowIndex, row, rowVirtualizer, striped, table, virtualRow })] });
577
+ };
578
+ const Memo_MRT_TableBodyRow = React.memo(MRT_TableBodyRow, (prev, next2) => prev.row === next2.row);
579
+ var classes$x = { "root": "MRT_ExpandButton-module_root__IFYio", "root-ltr": "MRT_ExpandButton-module_root-ltr__FHNnp", "chevron": "MRT_ExpandButton-module_chevron__XzC5P", "right": "MRT_ExpandButton-module_right__-pC-A", "up": "MRT_ExpandButton-module_up__TZGBo", "root-rtl": "MRT_ExpandButton-module_root-rtl__zoudS" };
580
+ const MRT_ExpandButton = (_a) => {
581
+ var _b, _c;
582
+ var { row, table } = _a, rest = __rest(_a, ["row", "table"]);
583
+ const direction = core.useDirection();
584
+ const { options: { icons: { IconChevronDown: IconChevronDown2 }, localization, mantineExpandButtonProps, positionExpandColumn, renderDetailPanel } } = table;
585
+ const actionIconProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineExpandButtonProps, {
586
+ row,
587
+ table
588
+ })), rest);
589
+ const internalEditComponents = row.getAllCells().filter((cell) => cell.column.columnDef.columnDefType === "data").map((cell) => jsxRuntime.jsx(MRT_EditCellTextInput, { cell, table }, cell.id));
590
+ const canExpand = row.getCanExpand();
591
+ const isExpanded = row.getIsExpanded();
592
+ const DetailPanel = !!(renderDetailPanel === null || renderDetailPanel === void 0 ? void 0 : renderDetailPanel({
593
+ internalEditComponents,
594
+ row,
595
+ table
596
+ }));
597
+ const handleToggleExpand = (event) => {
598
+ var _a2;
599
+ event.stopPropagation();
600
+ row.toggleExpanded();
601
+ (_a2 = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(actionIconProps, event);
602
+ };
603
+ const rtl = direction.dir === "rtl" || positionExpandColumn === "last";
604
+ return jsxRuntime.jsx(core.Tooltip, { disabled: !canExpand && !DetailPanel, label: (_b = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.title) !== null && _b !== void 0 ? _b : isExpanded ? localization.collapse : localization.expand, openDelay: 1e3, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": localization.expand, color: "gray", disabled: !canExpand && !DetailPanel, variant: "subtle" }, actionIconProps, { __vars: {
605
+ "--mrt-row-depth": `${row.depth}`
606
+ }, className: clsx.clsx("mrt-expand-button", classes$x.root, classes$x[`root-${rtl ? "rtl" : "ltr"}`], actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.className), onClick: handleToggleExpand, title: void 0, children: (_c = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.children) !== null && _c !== void 0 ? _c : jsxRuntime.jsx(IconChevronDown2, { className: clsx.clsx("mrt-expand-button-chevron", classes$x.chevron, !canExpand && !renderDetailPanel ? classes$x.right : isExpanded ? classes$x.up : void 0) }) })) });
607
+ };
608
+ const MRT_TableBodyEmptyRow = (_a) => {
609
+ var _b, _c;
610
+ var { table, tableProps } = _a, commonRowProps = __rest(_a, ["table", "tableProps"]);
611
+ const { getState, options: { layoutMode, localization, renderDetailPanel, renderEmptyRowsFallback }, refs: { tablePaperRef } } = table;
612
+ const { columnFilters, globalFilter } = getState();
613
+ const emptyRow = React.useMemo(() => index$1.createRow(table, "mrt-row-empty", {}, 0, 0), []);
614
+ const emptyRowProps = Object.assign(Object.assign({}, commonRowProps), { renderedRowIndex: 0, row: emptyRow, virtualRow: void 0 });
615
+ return jsxRuntime.jsxs(MRT_TableBodyRow, Object.assign({ className: clsx.clsx("mrt-table-body-row", (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$C["empty-row-tr-grid"]), table, tableProps }, emptyRowProps, { children: [renderDetailPanel && jsxRuntime.jsx(core.TableTd, { className: clsx.clsx("mrt-table-body-cell", (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$C["empty-row-td-grid"]), colSpan: 1, children: jsxRuntime.jsx(MRT_ExpandButton, { row: emptyRow, table }) }), jsxRuntime.jsx("td", { className: clsx.clsx("mrt-table-body-cell", (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$C["empty-row-td-grid"]), colSpan: table.getVisibleLeafColumns().length, children: (_b = renderEmptyRowsFallback === null || renderEmptyRowsFallback === void 0 ? void 0 : renderEmptyRowsFallback({ table })) !== null && _b !== void 0 ? _b : jsxRuntime.jsx(core.Text, { __vars: {
616
+ "--mrt-paper-width": `${(_c = tablePaperRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth}`
617
+ }, className: clsx.clsx(classes$C["empty-row-td-content"]), children: globalFilter || columnFilters.length ? localization.noResultsFound : localization.noRecordsToDisplay }) })] }));
618
+ };
619
+ const useMRT_Rows = (table) => {
620
+ const { getRowModel, getState, options: { data, enableGlobalFilterRankedResults, positionCreatingRow } } = table;
621
+ const { creatingRow, expanded, globalFilter, pagination, rowPinning, sorting } = getState();
622
+ const rows = React.useMemo(() => getMRT_Rows(table), [
623
+ creatingRow,
624
+ data,
625
+ enableGlobalFilterRankedResults,
626
+ expanded,
627
+ getRowModel().rows,
628
+ globalFilter,
629
+ pagination.pageIndex,
630
+ pagination.pageSize,
631
+ positionCreatingRow,
632
+ rowPinning,
633
+ sorting
634
+ ]);
635
+ return rows;
636
+ };
637
+ const extraIndexRangeExtractor = (range, draggingIndex) => {
638
+ const newIndexes = index$4.defaultRangeExtractor(range);
639
+ if (draggingIndex === void 0)
640
+ return newIndexes;
641
+ if (draggingIndex >= 0 && draggingIndex < Math.max(range.startIndex - range.overscan, 0)) {
642
+ newIndexes.unshift(draggingIndex);
643
+ }
644
+ if (draggingIndex >= 0 && draggingIndex > range.endIndex + range.overscan) {
645
+ newIndexes.push(draggingIndex);
646
+ }
647
+ return newIndexes;
648
+ };
649
+ const useMRT_RowVirtualizer = (table, rows) => {
650
+ var _a;
651
+ const { getRowModel, getState, options: { enableRowVirtualization, renderDetailPanel, rowVirtualizerInstanceRef, rowVirtualizerOptions }, refs: { tableContainerRef } } = table;
652
+ const { density, draggingRow, expanded } = getState();
653
+ if (!enableRowVirtualization)
654
+ return void 0;
655
+ const rowVirtualizerProps = parseFromValuesOrFunc(rowVirtualizerOptions, {
656
+ table
657
+ });
658
+ const rowCount = (_a = rows === null || rows === void 0 ? void 0 : rows.length) !== null && _a !== void 0 ? _a : getRowModel().rows.length;
659
+ const normalRowHeight = density === "xs" ? 42.7 : density === "md" ? 54.7 : 70.7;
660
+ const rowVirtualizer = index$3.useVirtualizer(Object.assign({ count: renderDetailPanel ? rowCount * 2 : rowCount, estimateSize: (index2) => renderDetailPanel && index2 % 2 === 1 ? expanded === true ? 100 : 0 : normalRowHeight, getScrollElement: () => tableContainerRef.current, measureElement: typeof window !== "undefined" && navigator.userAgent.indexOf("Firefox") === -1 ? (element) => element === null || element === void 0 ? void 0 : element.getBoundingClientRect().height : void 0, overscan: 4, rangeExtractor: React.useCallback((range) => {
661
+ var _a2;
662
+ return extraIndexRangeExtractor(range, (_a2 = draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.index) !== null && _a2 !== void 0 ? _a2 : 0);
663
+ }, [draggingRow]) }, rowVirtualizerProps));
664
+ rowVirtualizer.virtualRows = rowVirtualizer.getVirtualItems();
665
+ if (rowVirtualizerInstanceRef) {
666
+ rowVirtualizerInstanceRef.current = rowVirtualizer;
667
+ }
668
+ return rowVirtualizer;
669
+ };
670
+ const MRT_TableBody = (_a) => {
671
+ var _b, _c, _d;
672
+ var { columnVirtualizer, table, tableProps } = _a, rest = __rest(_a, ["columnVirtualizer", "table", "tableProps"]);
673
+ const { getBottomRows, getIsSomeRowsPinned, getRowModel, getState, getTopRows, options: { enableStickyFooter, enableStickyHeader, layoutMode, mantineTableBodyProps, memoMode, renderDetailPanel, rowPinningDisplayMode }, refs: { tableFooterRef, tableHeadRef } } = table;
674
+ const { isFullScreen, rowPinning } = getState();
675
+ const tableBodyProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableBodyProps, { table })), rest);
676
+ const tableHeadHeight = (enableStickyHeader || isFullScreen) && ((_b = tableHeadRef.current) === null || _b === void 0 ? void 0 : _b.clientHeight) || 0;
677
+ const tableFooterHeight = enableStickyFooter && ((_c = tableFooterRef.current) === null || _c === void 0 ? void 0 : _c.clientHeight) || 0;
678
+ const pinnedRowIds = React.useMemo(() => {
679
+ var _a2, _b2;
680
+ if (!((_a2 = rowPinning.bottom) === null || _a2 === void 0 ? void 0 : _a2.length) && !((_b2 = rowPinning.top) === null || _b2 === void 0 ? void 0 : _b2.length))
681
+ return [];
682
+ return getRowModel().rows.filter((row) => row.getIsPinned()).map((r) => r.id);
683
+ }, [rowPinning, getRowModel().rows]);
684
+ const rows = useMRT_Rows(table);
685
+ const rowVirtualizer = useMRT_RowVirtualizer(table, rows);
686
+ const { virtualRows } = rowVirtualizer !== null && rowVirtualizer !== void 0 ? rowVirtualizer : {};
687
+ const commonRowProps = {
688
+ columnVirtualizer,
689
+ numRows: rows.length,
690
+ table,
691
+ tableProps
692
+ };
693
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [!(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes("sticky")) && getIsSomeRowsPinned("top") && jsxRuntime.jsx(core.TableTbody, Object.assign({}, tableBodyProps, { __vars: Object.assign({ "--mrt-table-head-height": `${tableHeadHeight}` }, tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.__vars), className: clsx.clsx(classes$C.pinned, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$C["root-grid"], tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.className), children: getTopRows().map((row, renderedRowIndex) => {
694
+ const rowProps = Object.assign(Object.assign({}, commonRowProps), {
695
+ renderedRowIndex,
696
+ row
697
+ });
698
+ return memoMode === "rows" ? jsxRuntime.jsx(Memo_MRT_TableBodyRow, Object.assign({}, rowProps), row.id) : jsxRuntime.jsx(MRT_TableBodyRow, Object.assign({}, rowProps), row.id);
699
+ }) })), jsxRuntime.jsx(core.TableTbody, Object.assign({}, tableBodyProps, { __vars: Object.assign({ "--mrt-table-body-height": rowVirtualizer ? `${rowVirtualizer.getTotalSize()}px` : void 0 }, tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.__vars), className: clsx.clsx(classes$C.root, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$C["root-grid"], !rows.length && classes$C["root-no-rows"], rowVirtualizer && classes$C["root-virtualized"], tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.className), children: (_d = tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.children) !== null && _d !== void 0 ? _d : !rows.length ? jsxRuntime.jsx(MRT_TableBodyEmptyRow, Object.assign({}, commonRowProps)) : jsxRuntime.jsx(jsxRuntime.Fragment, { children: (virtualRows !== null && virtualRows !== void 0 ? virtualRows : rows).map((rowOrVirtualRow, renderedRowIndex) => {
700
+ if (rowVirtualizer) {
701
+ if (renderDetailPanel) {
702
+ if (rowOrVirtualRow.index % 2 === 1) {
703
+ return null;
704
+ } else {
705
+ renderedRowIndex = rowOrVirtualRow.index / 2;
706
+ }
707
+ } else {
708
+ renderedRowIndex = rowOrVirtualRow.index;
709
+ }
710
+ }
711
+ const row = rowVirtualizer ? rows[renderedRowIndex] : rowOrVirtualRow;
712
+ const props = Object.assign(Object.assign({}, commonRowProps), {
713
+ pinnedRowIds,
714
+ renderedRowIndex,
715
+ row,
716
+ rowVirtualizer,
717
+ virtualRow: rowVirtualizer ? rowOrVirtualRow : void 0
718
+ });
719
+ const key = `${row.id}-${row.index}`;
720
+ return memoMode === "rows" ? jsxRuntime.jsx(Memo_MRT_TableBodyRow, Object.assign({}, props), key) : jsxRuntime.jsx(MRT_TableBodyRow, Object.assign({}, props), key);
721
+ }) }) })), !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes("sticky")) && getIsSomeRowsPinned("bottom") && jsxRuntime.jsx(core.TableTbody, Object.assign({}, tableBodyProps, { __vars: Object.assign({ "--mrt-table-footer-height": `${tableFooterHeight}` }, tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.__vars), className: clsx.clsx(classes$C.pinned, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$C["root-grid"], tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.className), children: getBottomRows().map((row, renderedRowIndex) => {
722
+ const props = Object.assign(Object.assign({}, commonRowProps), {
723
+ renderedRowIndex,
724
+ row
725
+ });
726
+ return memoMode === "rows" ? jsxRuntime.jsx(Memo_MRT_TableBodyRow, Object.assign({}, props), row.id) : jsxRuntime.jsx(MRT_TableBodyRow, Object.assign({}, props), row.id);
727
+ }) }))] });
728
+ };
729
+ const Memo_MRT_TableBody = React.memo(MRT_TableBody, (prev, next2) => prev.table.options.data === next2.table.options.data);
730
+ var classes$w = { "grab-icon": "MRT_GrabHandleButton-module_grab-icon__mQimy" };
731
+ const MRT_GrabHandleButton = ({ actionIconProps, onDragEnd, onDragStart, table: { options: { icons: { IconGripHorizontal: IconGripHorizontal2 }, localization: { move } } } }) => {
732
+ var _a, _b;
733
+ return jsxRuntime.jsx(core.Tooltip, { label: (_a = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.title) !== null && _a !== void 0 ? _a : move, openDelay: 1e3, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": (_b = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.title) !== null && _b !== void 0 ? _b : move, draggable: true }, actionIconProps, { className: clsx.clsx("mrt-grab-handle-button", classes$w["grab-icon"], actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.className), color: "gray", onClick: (e) => {
734
+ var _a2;
735
+ e.stopPropagation();
736
+ (_a2 = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(actionIconProps, e);
737
+ }, onDragEnd, onDragStart, size: "sm", title: void 0, variant: "transparent", children: jsxRuntime.jsx(IconGripHorizontal2, { size: "100%" }) })) });
738
+ };
739
+ const MRT_TableBodyRowGrabHandle = (_a) => {
740
+ var { row, rowRef, table } = _a, rest = __rest(_a, ["row", "rowRef", "table"]);
741
+ const { options: { mantineRowDragHandleProps } } = table;
742
+ const actionIconProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineRowDragHandleProps, {
743
+ row,
744
+ table
745
+ })), rest);
746
+ const handleDragStart = (event) => {
747
+ var _a2;
748
+ (_a2 = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.onDragStart) === null || _a2 === void 0 ? void 0 : _a2.call(actionIconProps, event);
749
+ event.dataTransfer.setDragImage(rowRef.current, 0, 0);
750
+ table.setDraggingRow(row);
751
+ };
752
+ const handleDragEnd = (event) => {
753
+ var _a2;
754
+ (_a2 = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.onDragEnd) === null || _a2 === void 0 ? void 0 : _a2.call(actionIconProps, event);
755
+ table.setDraggingRow(null);
756
+ table.setHoveredRow(null);
757
+ };
758
+ return jsxRuntime.jsx(MRT_GrabHandleButton, { actionIconProps, onDragEnd: handleDragEnd, onDragStart: handleDragStart, table });
759
+ };
760
+ const MRT_RowPinButton = (_a) => {
761
+ var { pinningPosition, row, table } = _a, rest = __rest(_a, ["pinningPosition", "row", "table"]);
762
+ const { options: { icons: { IconPinned: IconPinned2, IconX: IconX2 }, localization, rowPinningDisplayMode } } = table;
763
+ const isPinned = row.getIsPinned();
764
+ const [tooltipOpened, setTooltipOpened] = React.useState(false);
765
+ const handleTogglePin = (event) => {
766
+ setTooltipOpened(false);
767
+ event.stopPropagation();
768
+ row.pin(isPinned ? false : pinningPosition);
769
+ };
770
+ return jsxRuntime.jsx(core.Tooltip, { label: isPinned ? localization.unpin : localization.pin, openDelay: 1e3, opened: tooltipOpened, children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": localization.pin, color: "gray", onClick: handleTogglePin, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false), size: "xs", style: {
771
+ height: "24px",
772
+ width: "24px"
773
+ }, variant: "subtle" }, rest, { children: isPinned ? jsxRuntime.jsx(IconX2, {}) : jsxRuntime.jsx(IconPinned2, { fontSize: "small", style: {
774
+ transform: `rotate(${rowPinningDisplayMode === "sticky" ? 135 : pinningPosition === "top" ? 180 : 0}deg)`
775
+ } }) })) });
776
+ };
777
+ const MRT_TableBodyRowPinButton = (_a) => {
778
+ var { row, table } = _a, rest = __rest(_a, ["row", "table"]);
779
+ const { getState, options: { enableRowPinning, rowPinningDisplayMode } } = table;
780
+ const { density } = getState();
781
+ const canPin = parseFromValuesOrFunc(enableRowPinning, row);
782
+ if (!canPin)
783
+ return null;
784
+ const rowPinButtonProps = Object.assign({
785
+ row,
786
+ table
787
+ }, rest);
788
+ if (rowPinningDisplayMode === "top-and-bottom" && !row.getIsPinned()) {
789
+ return jsxRuntime.jsxs(core.Box, { style: {
790
+ display: "flex",
791
+ flexDirection: density === "xs" ? "row" : "column"
792
+ }, children: [jsxRuntime.jsx(MRT_RowPinButton, Object.assign({ pinningPosition: "top" }, rowPinButtonProps)), jsxRuntime.jsx(MRT_RowPinButton, Object.assign({ pinningPosition: "bottom" }, rowPinButtonProps))] });
793
+ }
794
+ return jsxRuntime.jsx(MRT_RowPinButton, Object.assign({ pinningPosition: rowPinningDisplayMode === "bottom" ? "bottom" : "top" }, rowPinButtonProps));
795
+ };
796
+ var classes$v = { "root": "MRT_ColumnPinningButtons-module_root__scTtW", "left": "MRT_ColumnPinningButtons-module_left__W6Aog", "right": "MRT_ColumnPinningButtons-module_right__7AJE3" };
797
+ const MRT_ColumnPinningButtons = ({ column, table }) => {
798
+ const { options: { icons: { IconPinned: IconPinned2, IconPinnedOff: IconPinnedOff2 }, localization } } = table;
799
+ return jsxRuntime.jsx(core.Flex, { className: clsx.clsx("mrt-column-pinning-buttons", classes$v.root), children: column.getIsPinned() ? jsxRuntime.jsx(core.Tooltip, { label: localization.unpin, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, { color: "gray", onClick: () => column.pin(false), size: "md", variant: "subtle", children: jsxRuntime.jsx(IconPinnedOff2, {}) }) }) : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(core.Tooltip, { label: localization.pinToLeft, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, { color: "gray", onClick: () => column.pin("left"), size: "md", variant: "subtle", children: jsxRuntime.jsx(IconPinned2, { className: classes$v.left }) }) }), jsxRuntime.jsx(core.Tooltip, { label: localization.pinToRight, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, { color: "gray", onClick: () => column.pin("right"), size: "md", variant: "subtle", children: jsxRuntime.jsx(IconPinned2, { className: classes$v.right }) }) })] }) });
800
+ };
801
+ var classes$u = { "root": "MRT_EditActionButtons-module_root__BfxVZ" };
802
+ const MRT_EditActionButtons = (_a) => {
803
+ var { row, table, variant = "icon" } = _a, rest = __rest(_a, ["row", "table", "variant"]);
804
+ const { getState, options: { icons: { IconCircleX: IconCircleX2, IconDeviceFloppy: IconDeviceFloppy2 }, localization, onCreatingRowCancel, onCreatingRowSave, onEditingRowCancel, onEditingRowSave }, refs: { editInputRefs }, setCreatingRow, setEditingRow } = table;
805
+ const { creatingRow, editingRow, isSaving } = getState();
806
+ const isCreating = (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
807
+ const isEditing = (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id;
808
+ const handleCancel = () => {
809
+ if (isCreating) {
810
+ onCreatingRowCancel === null || onCreatingRowCancel === void 0 ? void 0 : onCreatingRowCancel({ row, table });
811
+ setCreatingRow(null);
812
+ } else if (isEditing) {
813
+ onEditingRowCancel === null || onEditingRowCancel === void 0 ? void 0 : onEditingRowCancel({ row, table });
814
+ setEditingRow(null);
815
+ }
816
+ row._valuesCache = {};
817
+ };
818
+ const handleSubmitRow = () => {
819
+ var _a2;
820
+ (_a2 = Object.values(editInputRefs === null || editInputRefs === void 0 ? void 0 : editInputRefs.current).filter((inputRef) => {
821
+ var _a3, _b;
822
+ return row.id === ((_b = (_a3 = inputRef === null || inputRef === void 0 ? void 0 : inputRef.name) === null || _a3 === void 0 ? void 0 : _a3.split("_")) === null || _b === void 0 ? void 0 : _b[0]);
823
+ })) === null || _a2 === void 0 ? void 0 : _a2.forEach((input) => {
824
+ if (input.value !== void 0 && Object.hasOwn(row === null || row === void 0 ? void 0 : row._valuesCache, input.name)) {
825
+ row._valuesCache[input.name] = input.value;
826
+ }
827
+ });
828
+ if (isCreating)
829
+ onCreatingRowSave === null || onCreatingRowSave === void 0 ? void 0 : onCreatingRowSave({
830
+ exitCreatingMode: () => setCreatingRow(null),
831
+ row,
832
+ table,
833
+ values: row._valuesCache
834
+ });
835
+ else if (isEditing) {
836
+ onEditingRowSave === null || onEditingRowSave === void 0 ? void 0 : onEditingRowSave({
837
+ exitEditingMode: () => setEditingRow(null),
838
+ row,
839
+ table,
840
+ values: row === null || row === void 0 ? void 0 : row._valuesCache
841
+ });
842
+ }
843
+ };
844
+ return jsxRuntime.jsx(core.Box, Object.assign({ className: clsx.clsx("mrt-edit-action-buttons", classes$u.root), onClick: (e) => e.stopPropagation() }, rest, { children: variant === "icon" ? jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(core.Tooltip, { label: localization.cancel, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, { "aria-label": localization.cancel, color: "red", onClick: handleCancel, variant: "subtle", children: jsxRuntime.jsx(IconCircleX2, {}) }) }), jsxRuntime.jsx(core.Tooltip, { label: localization.save, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, { "aria-label": localization.save, color: "blue", loading: isSaving, onClick: handleSubmitRow, variant: "subtle", children: jsxRuntime.jsx(IconDeviceFloppy2, {}) }) })] }) : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(core.Button, { onClick: handleCancel, variant: "subtle", children: localization.cancel }), jsxRuntime.jsx(core.Button, { loading: isSaving, onClick: handleSubmitRow, variant: "filled", children: localization.save })] }) }));
845
+ };
846
+ var classes$t = { "root": "MRT_ExpandAllButton-module_root__gkBZD", "chevron": "MRT_ExpandAllButton-module_chevron__Iep0j", "up": "MRT_ExpandAllButton-module_up__Xth3U", "right": "MRT_ExpandAllButton-module_right__bS4L-" };
847
+ const MRT_ExpandAllButton = (_a) => {
848
+ var _b, _c;
849
+ var { table } = _a, rest = __rest(_a, ["table"]);
850
+ const { getCanSomeRowsExpand, getIsAllRowsExpanded, getIsSomeRowsExpanded, getState, options: { icons: { IconChevronsDown: IconChevronsDown2 }, localization, mantineExpandAllButtonProps, renderDetailPanel }, toggleAllRowsExpanded } = table;
851
+ const { density, isLoading } = getState();
852
+ const actionIconProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineExpandAllButtonProps, {
853
+ table
854
+ })), rest);
855
+ const isAllRowsExpanded = getIsAllRowsExpanded();
856
+ return jsxRuntime.jsx(core.Tooltip, { label: ((_b = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.title) !== null && _b !== void 0 ? _b : isAllRowsExpanded) ? localization.collapseAll : localization.expandAll, openDelay: 1e3, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": localization.expandAll, color: "gray", variant: "subtle" }, actionIconProps, { className: clsx.clsx("mrt-expand-all-button", classes$t.root, actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.className, density), disabled: isLoading || !renderDetailPanel && !getCanSomeRowsExpand(), onClick: () => toggleAllRowsExpanded(!isAllRowsExpanded), title: void 0, children: (_c = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.children) !== null && _c !== void 0 ? _c : jsxRuntime.jsx(IconChevronsDown2, { className: clsx.clsx(classes$t.chevron, isAllRowsExpanded ? classes$t.up : getIsSomeRowsExpanded() ? classes$t.right : void 0) }) })) });
857
+ };
858
+ var classes$s = { "root": "MRT_ShowHideColumnsMenu-module_root__2UWak", "content": "MRT_ShowHideColumnsMenu-module_content__ehkWQ" };
859
+ var classes$r = { "root": "MRT_ShowHideColumnsMenuItems-module_root__wYgv-", "menu": "MRT_ShowHideColumnsMenuItems-module_menu__CeATR", "grab": "MRT_ShowHideColumnsMenuItems-module_grab__a-d-y", "pin": "MRT_ShowHideColumnsMenuItems-module_pin__P437b", "switch": "MRT_ShowHideColumnsMenuItems-module_switch__tMsdt", "header": "MRT_ShowHideColumnsMenuItems-module_header__xVkKb" };
860
+ const getColumnId = (columnDef) => {
861
+ var _a, _b, _c, _d;
862
+ return (_d = (_a = columnDef.id) !== null && _a !== void 0 ? _a : (_c = (_b = columnDef.accessorKey) === null || _b === void 0 ? void 0 : _b.toString) === null || _c === void 0 ? void 0 : _c.call(_b)) !== null && _d !== void 0 ? _d : columnDef.header;
863
+ };
864
+ const getAllLeafColumnDefs = (columns) => {
865
+ const allLeafColumnDefs = [];
866
+ const getLeafColumns = (cols) => {
867
+ cols.forEach((col) => {
868
+ if (col.columns) {
869
+ getLeafColumns(col.columns);
870
+ } else {
871
+ allLeafColumnDefs.push(col);
872
+ }
873
+ });
874
+ };
875
+ getLeafColumns(columns);
876
+ return allLeafColumnDefs;
877
+ };
878
+ const prepareColumns = ({ columnDefs, tableOptions }) => {
879
+ const { aggregationFns = {}, defaultDisplayColumn, filterFns = {}, sortingFns = {}, state: { columnFilterFns = {} } = {} } = tableOptions;
880
+ return columnDefs.map((columnDef) => {
881
+ var _a, _b;
882
+ if (!columnDef.id)
883
+ columnDef.id = getColumnId(columnDef);
884
+ if (!columnDef.columnDefType)
885
+ columnDef.columnDefType = "data";
886
+ if ((_a = columnDef.columns) === null || _a === void 0 ? void 0 : _a.length) {
887
+ columnDef.columnDefType = "group";
888
+ columnDef.columns = prepareColumns({
889
+ columnDefs: columnDef.columns,
890
+ tableOptions
891
+ });
892
+ } else if (columnDef.columnDefType === "data") {
893
+ if (Array.isArray(columnDef.aggregationFn)) {
894
+ const aggFns = columnDef.aggregationFn;
895
+ columnDef.aggregationFn = (columnId, leafRows, childRows) => aggFns.map((fn) => {
896
+ var _a2;
897
+ return (_a2 = aggregationFns[fn]) === null || _a2 === void 0 ? void 0 : _a2.call(aggregationFns, columnId, leafRows, childRows);
898
+ });
899
+ }
900
+ if (Object.keys(filterFns).includes(columnFilterFns[columnDef.id])) {
901
+ columnDef.filterFn = (_b = filterFns[columnFilterFns[columnDef.id]]) !== null && _b !== void 0 ? _b : filterFns.fuzzy;
902
+ columnDef._filterFn = columnFilterFns[columnDef.id];
903
+ }
904
+ if (Object.keys(sortingFns).includes(columnDef.sortingFn)) {
905
+ columnDef.sortingFn = sortingFns[columnDef.sortingFn];
906
+ }
907
+ } else if (columnDef.columnDefType === "display") {
908
+ columnDef = Object.assign(Object.assign({}, defaultDisplayColumn), columnDef);
909
+ }
910
+ return columnDef;
911
+ });
912
+ };
913
+ const reorderColumn = (draggedColumn, targetColumn, columnOrder) => {
914
+ if (draggedColumn.getCanPin()) {
915
+ draggedColumn.pin(targetColumn.getIsPinned());
916
+ }
917
+ const newColumnOrder = [...columnOrder];
918
+ newColumnOrder.splice(newColumnOrder.indexOf(targetColumn.id), 0, newColumnOrder.splice(newColumnOrder.indexOf(draggedColumn.id), 1)[0]);
919
+ return newColumnOrder;
920
+ };
921
+ const getDefaultColumnFilterFn = (columnDef) => {
922
+ const { filterVariant } = columnDef;
923
+ if (filterVariant === "multi-select")
924
+ return "arrIncludesSome";
925
+ if (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.includes("range"))
926
+ return "betweenInclusive";
927
+ if (["checkbox", "date", "select"].includes(filterVariant || ""))
928
+ return "equals";
929
+ return "fuzzy";
930
+ };
931
+ const MRT_ShowHideColumnsMenuItems = ({ allColumns, column, hoveredColumn, setHoveredColumn, table }) => {
932
+ var _a;
933
+ const theme = core.useMantineTheme();
934
+ const { getState, options: { enableColumnOrdering, enableColumnPinning, enableHiding, localization }, setColumnOrder } = table;
935
+ const { columnOrder } = getState();
936
+ const { columnDef } = column;
937
+ const { columnDefType } = columnDef;
938
+ const switchChecked = columnDefType !== "group" && column.getIsVisible() || columnDefType === "group" && column.getLeafColumns().some((col) => col.getIsVisible());
939
+ const handleToggleColumnHidden = (column2) => {
940
+ var _a2, _b;
941
+ if (columnDefType === "group") {
942
+ (_b = (_a2 = column2 === null || column2 === void 0 ? void 0 : column2.columns) === null || _a2 === void 0 ? void 0 : _a2.forEach) === null || _b === void 0 ? void 0 : _b.call(_a2, (childColumn) => {
943
+ childColumn.toggleVisibility(!switchChecked);
944
+ });
945
+ } else {
946
+ column2.toggleVisibility();
947
+ }
948
+ };
949
+ const menuItemRef = React.useRef(null);
950
+ const [isDragging, setIsDragging] = React.useState(false);
951
+ const handleDragStart = (e) => {
952
+ setIsDragging(true);
953
+ e.dataTransfer.setDragImage(menuItemRef.current, 0, 0);
954
+ };
955
+ const handleDragEnd = (_e) => {
956
+ setIsDragging(false);
957
+ setHoveredColumn(null);
958
+ if (hoveredColumn) {
959
+ setColumnOrder(reorderColumn(column, hoveredColumn, columnOrder));
960
+ }
961
+ };
962
+ const handleDragEnter = (_e) => {
963
+ if (!isDragging && columnDef.enableColumnOrdering !== false) {
964
+ setHoveredColumn(column);
965
+ }
966
+ };
967
+ if (!columnDef.header || columnDef.visibleInShowHideMenu === false) {
968
+ return null;
969
+ }
970
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(core.Menu.Item, Object.assign({ className: classes$r.root, component: "span", onDragEnter: handleDragEnter, ref: menuItemRef, style: {
971
+ "--_column-depth": `${(column.depth + 0.5) * 2}rem`,
972
+ "--_hover-color": getPrimaryColor(theme)
973
+ } }, dataVariable("dragging", isDragging), dataVariable("order-hovered", (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id), { children: jsxRuntime.jsxs(core.Box, { className: classes$r.menu, children: [columnDefType !== "group" && enableColumnOrdering && !allColumns.some((col) => col.columnDef.columnDefType === "group") && (columnDef.enableColumnOrdering !== false ? jsxRuntime.jsx(MRT_GrabHandleButton, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table }) : jsxRuntime.jsx(core.Box, { className: classes$r.grab })), enableColumnPinning && (column.getCanPin() ? jsxRuntime.jsx(MRT_ColumnPinningButtons, { column, table }) : jsxRuntime.jsx(core.Box, { className: classes$r.pin })), enableHiding ? jsxRuntime.jsx(core.Tooltip, { label: localization.toggleVisibility, openDelay: 1e3, withinPortal: true, children: jsxRuntime.jsx(core.Switch, { checked: switchChecked, className: classes$r.switch, disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) }) }) : jsxRuntime.jsx(core.Text, { className: classes$r.header, children: columnDef.header })] }) })), (_a = column.columns) === null || _a === void 0 ? void 0 : _a.map((c, i) => jsxRuntime.jsx(MRT_ShowHideColumnsMenuItems, { allColumns, column: c, hoveredColumn, setHoveredColumn, table }, `${i}-${c.id}`))] });
974
+ };
975
+ function defaultDisplayColumnProps({ header, id, size, tableOptions }) {
976
+ const { defaultDisplayColumn, displayColumnDefOptions, localization } = tableOptions;
977
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, defaultDisplayColumn), { header: header ? localization[header] : "", size }), displayColumnDefOptions === null || displayColumnDefOptions === void 0 ? void 0 : displayColumnDefOptions[id]), { id });
978
+ }
979
+ const showRowPinningColumn = (tableOptions) => {
980
+ const { enableRowPinning, rowPinningDisplayMode } = tableOptions;
981
+ return !!(enableRowPinning && !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.startsWith("select")));
982
+ };
983
+ const showRowDragColumn = (tableOptions) => {
984
+ const { enableRowDragging, enableRowOrdering } = tableOptions;
985
+ return !!(enableRowDragging || enableRowOrdering);
986
+ };
987
+ const showRowExpandColumn = (tableOptions) => {
988
+ const { enableExpanding, enableGrouping, renderDetailPanel, state: { grouping } } = tableOptions;
989
+ return !!(enableExpanding || enableGrouping && (grouping === null || grouping === void 0 ? void 0 : grouping.length) || renderDetailPanel);
990
+ };
991
+ const showRowActionsColumn = (tableOptions) => {
992
+ const { createDisplayMode, editDisplayMode, enableEditing, enableRowActions, state: { creatingRow } } = tableOptions;
993
+ return !!(enableRowActions || creatingRow && createDisplayMode === "row" || enableEditing && ["modal", "row"].includes(editDisplayMode !== null && editDisplayMode !== void 0 ? editDisplayMode : ""));
994
+ };
995
+ const showRowSelectionColumn = (tableOptions) => !!tableOptions.enableRowSelection;
996
+ const showRowNumbersColumn = (tableOptions) => !!tableOptions.enableRowNumbers;
997
+ const showRowSpacerColumn = (tableOptions) => tableOptions.layoutMode === "grid-no-grow";
998
+ const getLeadingDisplayColumnIds = (tableOptions) => [
999
+ showRowPinningColumn(tableOptions) && "mrt-row-pin",
1000
+ showRowDragColumn(tableOptions) && "mrt-row-drag",
1001
+ tableOptions.positionActionsColumn === "first" && showRowActionsColumn(tableOptions) && "mrt-row-actions",
1002
+ tableOptions.positionExpandColumn === "first" && showRowExpandColumn(tableOptions) && "mrt-row-expand",
1003
+ showRowSelectionColumn(tableOptions) && "mrt-row-select",
1004
+ showRowNumbersColumn(tableOptions) && "mrt-row-numbers"
1005
+ ].filter(Boolean);
1006
+ const getTrailingDisplayColumnIds = (tableOptions) => [
1007
+ tableOptions.positionActionsColumn === "last" && showRowActionsColumn(tableOptions) && "mrt-row-actions",
1008
+ tableOptions.positionExpandColumn === "last" && showRowExpandColumn(tableOptions) && "mrt-row-expand",
1009
+ showRowSpacerColumn(tableOptions) && "mrt-row-spacer"
1010
+ ].filter(Boolean);
1011
+ const getDefaultColumnOrderIds = (tableOptions, reset = false) => {
1012
+ const { state: { columnOrder: currentColumnOrderIds = [] } } = tableOptions;
1013
+ const leadingDisplayColIds = getLeadingDisplayColumnIds(tableOptions);
1014
+ const trailingDisplayColIds = getTrailingDisplayColumnIds(tableOptions);
1015
+ const defaultColumnDefIds = getAllLeafColumnDefs(tableOptions.columns).map((columnDef) => getColumnId(columnDef));
1016
+ let allLeafColumnDefIds = reset ? defaultColumnDefIds : Array.from(/* @__PURE__ */ new Set([...currentColumnOrderIds, ...defaultColumnDefIds]));
1017
+ allLeafColumnDefIds = allLeafColumnDefIds.filter((colId) => !leadingDisplayColIds.includes(colId) && !trailingDisplayColIds.includes(colId));
1018
+ return [
1019
+ ...leadingDisplayColIds,
1020
+ ...allLeafColumnDefIds,
1021
+ ...trailingDisplayColIds
1022
+ ];
1023
+ };
1024
+ const MRT_ShowHideColumnsMenu = ({ table }) => {
1025
+ const { getAllColumns, getAllLeafColumns, getCenterLeafColumns, getIsAllColumnsVisible, getIsSomeColumnsPinned, getIsSomeColumnsVisible, getLeftLeafColumns, getRightLeafColumns, getState, options: { enableColumnOrdering, enableColumnPinning, enableHiding, localization } } = table;
1026
+ const { columnOrder, columnPinning } = getState();
1027
+ const handleToggleAllColumns = (value) => {
1028
+ getAllLeafColumns().filter((col) => col.columnDef.enableHiding !== false).forEach((col) => col.toggleVisibility(value));
1029
+ };
1030
+ const allColumns = React.useMemo(() => {
1031
+ const columns = getAllColumns();
1032
+ if (columnOrder.length > 0 && !columns.some((col) => col.columnDef.columnDefType === "group")) {
1033
+ return [
1034
+ ...getLeftLeafColumns(),
1035
+ ...Array.from(new Set(columnOrder)).map((colId) => getCenterLeafColumns().find((col) => (col === null || col === void 0 ? void 0 : col.id) === colId)),
1036
+ ...getRightLeafColumns()
1037
+ ].filter(Boolean);
1038
+ }
1039
+ return columns;
1040
+ }, [
1041
+ columnOrder,
1042
+ columnPinning,
1043
+ getAllColumns(),
1044
+ getCenterLeafColumns(),
1045
+ getLeftLeafColumns(),
1046
+ getRightLeafColumns()
1047
+ ]);
1048
+ const [hoveredColumn, setHoveredColumn] = React.useState(null);
1049
+ return jsxRuntime.jsxs(core.Menu.Dropdown, { className: clsx.clsx("mrt-show-hide-columns-menu", classes$s.root), children: [jsxRuntime.jsxs(core.Flex, { className: classes$s.content, children: [enableHiding && jsxRuntime.jsx(core.Button, { disabled: !getIsSomeColumnsVisible(), onClick: () => handleToggleAllColumns(false), variant: "subtle", children: localization.hideAll }), enableColumnOrdering && jsxRuntime.jsx(core.Button, { onClick: () => table.setColumnOrder(getDefaultColumnOrderIds(table.options, true)), variant: "subtle", children: localization.resetOrder }), enableColumnPinning && jsxRuntime.jsx(core.Button, { disabled: !getIsSomeColumnsPinned(), onClick: () => table.resetColumnPinning(true), variant: "subtle", children: localization.unpinAll }), enableHiding && jsxRuntime.jsx(core.Button, { disabled: getIsAllColumnsVisible(), onClick: () => handleToggleAllColumns(true), variant: "subtle", children: localization.showAll })] }), jsxRuntime.jsx(core.Menu.Divider, {}), allColumns.map((column, index2) => jsxRuntime.jsx(MRT_ShowHideColumnsMenuItems, { allColumns, column, hoveredColumn, setHoveredColumn, table }, `${index2}-${column.id}`))] });
1050
+ };
1051
+ const MRT_ShowHideColumnsButton = (_a) => {
1052
+ var { table, title } = _a, rest = __rest(_a, ["table", "title"]);
1053
+ const { icons: { IconColumns: IconColumns2 }, localization: { showHideColumns } } = table.options;
1054
+ return jsxRuntime.jsxs(core.Menu, { closeOnItemClick: false, withinPortal: true, children: [jsxRuntime.jsx(core.Tooltip, { label: title !== null && title !== void 0 ? title : showHideColumns, withinPortal: true, children: jsxRuntime.jsx(core.Menu.Target, { children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": title !== null && title !== void 0 ? title : showHideColumns, color: "gray", size: "lg", variant: "subtle" }, rest, { children: jsxRuntime.jsx(IconColumns2, {}) })) }) }), jsxRuntime.jsx(MRT_ShowHideColumnsMenu, { table })] });
1055
+ };
1056
+ const next = {
1057
+ md: "xs",
1058
+ xl: "md",
1059
+ xs: "xl"
1060
+ };
1061
+ const MRT_ToggleDensePaddingButton = (_a) => {
1062
+ var { table: { getState, options: { icons: { IconBaselineDensityLarge: IconBaselineDensityLarge2, IconBaselineDensityMedium: IconBaselineDensityMedium2, IconBaselineDensitySmall: IconBaselineDensitySmall2 }, localization: { toggleDensity } }, setDensity }, title } = _a, rest = __rest(_a, ["table", "title"]);
1063
+ const { density } = getState();
1064
+ return jsxRuntime.jsx(core.Tooltip, { label: title !== null && title !== void 0 ? title : toggleDensity, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": title !== null && title !== void 0 ? title : toggleDensity, color: "gray", onClick: () => setDensity((current) => next[current]), size: "lg", variant: "subtle" }, rest, { children: density === "xs" ? jsxRuntime.jsx(IconBaselineDensitySmall2, {}) : density === "md" ? jsxRuntime.jsx(IconBaselineDensityMedium2, {}) : jsxRuntime.jsx(IconBaselineDensityLarge2, {}) })) });
1065
+ };
1066
+ const MRT_ToggleFiltersButton = (_a) => {
1067
+ var { table: { getState, options: { icons: { IconFilter: IconFilter2, IconFilterOff: IconFilterOff2 }, localization: { showHideFilters } }, setShowColumnFilters }, title } = _a, rest = __rest(_a, ["table", "title"]);
1068
+ const { showColumnFilters } = getState();
1069
+ return jsxRuntime.jsx(core.Tooltip, { label: title !== null && title !== void 0 ? title : showHideFilters, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": title !== null && title !== void 0 ? title : showHideFilters, color: "gray", onClick: () => setShowColumnFilters((current) => !current), size: "lg", variant: "subtle" }, rest, { children: showColumnFilters ? jsxRuntime.jsx(IconFilterOff2, {}) : jsxRuntime.jsx(IconFilter2, {}) })) });
1070
+ };
1071
+ const MRT_ToggleFullScreenButton = (_a) => {
1072
+ var { table: { getState, options: { icons: { IconMaximize: IconMaximize2, IconMinimize: IconMinimize2 }, localization: { toggleFullScreen } }, setIsFullScreen }, title } = _a, rest = __rest(_a, ["table", "title"]);
1073
+ const { isFullScreen } = getState();
1074
+ const [tooltipOpened, setTooltipOpened] = React.useState(false);
1075
+ const handleToggleFullScreen = () => {
1076
+ setTooltipOpened(false);
1077
+ setIsFullScreen((current) => !current);
1078
+ };
1079
+ return jsxRuntime.jsx(core.Tooltip, { label: title !== null && title !== void 0 ? title : toggleFullScreen, opened: tooltipOpened, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": title !== null && title !== void 0 ? title : toggleFullScreen, color: "gray", onClick: handleToggleFullScreen, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false), size: "lg", variant: "subtle" }, rest, { children: isFullScreen ? jsxRuntime.jsx(IconMinimize2, {}) : jsxRuntime.jsx(IconMaximize2, {}) })) });
1080
+ };
1081
+ const MRT_ToggleGlobalFilterButton = (_a) => {
1082
+ var { table: { getState, options: { icons: { IconSearch: IconSearch2, IconSearchOff: IconSearchOff2 }, localization: { showHideSearch } }, refs: { searchInputRef }, setShowGlobalFilter }, title } = _a, rest = __rest(_a, ["table", "title"]);
1083
+ const { globalFilter, showGlobalFilter } = getState();
1084
+ const handleToggleSearch = () => {
1085
+ setShowGlobalFilter(!showGlobalFilter);
1086
+ setTimeout(() => {
1087
+ var _a2;
1088
+ return (_a2 = searchInputRef.current) === null || _a2 === void 0 ? void 0 : _a2.focus();
1089
+ }, 100);
1090
+ };
1091
+ return jsxRuntime.jsx(core.Tooltip, { label: title !== null && title !== void 0 ? title : showHideSearch, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": title !== null && title !== void 0 ? title : showHideSearch, color: "gray", disabled: !!globalFilter, onClick: handleToggleSearch, size: "lg", variant: "subtle" }, rest, { children: showGlobalFilter ? jsxRuntime.jsx(IconSearchOff2, {}) : jsxRuntime.jsx(IconSearch2, {}) })) });
1092
+ };
1093
+ const MRT_RowActionMenu = (_a) => {
1094
+ var { handleEdit, row, table } = _a, rest = __rest(_a, ["handleEdit", "row", "table"]);
1095
+ const { options: { editDisplayMode, enableEditing, icons: { IconDots: IconDots2, IconEdit: IconEdit2 }, localization, positionActionsColumn, renderRowActionMenuItems } } = table;
1096
+ return jsxRuntime.jsxs(core.Menu, { closeOnItemClick: true, position: positionActionsColumn === "first" ? "bottom-start" : positionActionsColumn === "last" ? "bottom-end" : void 0, withinPortal: true, children: [jsxRuntime.jsx(core.Tooltip, { label: localization.rowActions, openDelay: 1e3, withinPortal: true, children: jsxRuntime.jsx(core.Menu.Target, { children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": localization.rowActions, color: "gray", onClick: (event) => event.stopPropagation(), size: "sm", variant: "subtle" }, rest, { children: jsxRuntime.jsx(IconDots2, {}) })) }) }), jsxRuntime.jsxs(core.Menu.Dropdown, { onClick: (event) => event.stopPropagation(), children: [enableEditing && editDisplayMode !== "table" && jsxRuntime.jsx(core.Menu.Item, { leftSection: jsxRuntime.jsx(IconEdit2, {}), onClick: handleEdit, children: localization.edit }), renderRowActionMenuItems === null || renderRowActionMenuItems === void 0 ? void 0 : renderRowActionMenuItems({
1097
+ row,
1098
+ table
1099
+ })] })] });
1100
+ };
1101
+ const MRT_ToggleRowActionMenuButton = ({ cell, row, table }) => {
1102
+ const { getState, options: { createDisplayMode, editDisplayMode, enableEditing, icons: { IconEdit: IconEdit2 }, localization: { edit }, renderRowActionMenuItems, renderRowActions }, setEditingRow } = table;
1103
+ const { creatingRow, editingRow } = getState();
1104
+ const isCreating = (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
1105
+ const isEditing = (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id;
1106
+ const handleStartEditMode = (event) => {
1107
+ event.stopPropagation();
1108
+ setEditingRow(Object.assign({}, row));
1109
+ };
1110
+ const showEditActionButtons = isCreating && createDisplayMode === "row" || isEditing && editDisplayMode === "row";
1111
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderRowActions && !showEditActionButtons ? renderRowActions({ cell, row, table }) : showEditActionButtons ? jsxRuntime.jsx(MRT_EditActionButtons, { row, table }) : !renderRowActionMenuItems && parseFromValuesOrFunc(enableEditing, row) ? jsxRuntime.jsx(core.Tooltip, { label: edit, openDelay: 1e3, position: "right", withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, { "aria-label": edit, color: "gray", disabled: !!editingRow && editingRow.id !== row.id, onClick: handleStartEditMode, size: "md", variant: "subtle", children: jsxRuntime.jsx(IconEdit2, {}) }) }) : renderRowActionMenuItems ? jsxRuntime.jsx(MRT_RowActionMenu, { handleEdit: handleStartEditMode, row, table }) : null });
1112
+ };
1113
+ var classes$q = { "root": "MRT_TableFooter-module_root__-JXpw", "grid": "MRT_TableFooter-module_grid__J3Ga-", "sticky": "MRT_TableFooter-module_sticky__GcoK6" };
1114
+ var classes$p = { "root": "MRT_TableFooterRow-module_root__EuoPr", "layout-mode-grid": "MRT_TableFooterRow-module_layout-mode-grid__dUEMF" };
1115
+ var classes$o = { "root": "MRT_TableFooterCell-module_root__d8Scs", "grid": "MRT_TableFooterCell-module_grid__H9jLk", "group": "MRT_TableFooterCell-module_group__l3-p-" };
1116
+ const MRT_TableFooterCell = (_a) => {
1117
+ var _b, _c, _d, _e, _f;
1118
+ var { footer, renderedColumnIndex, table } = _a, rest = __rest(_a, ["footer", "renderedColumnIndex", "table"]);
1119
+ const direction = core.useDirection();
1120
+ const { options: { enableColumnPinning, layoutMode, mantineTableFooterCellProps } } = table;
1121
+ const { column } = footer;
1122
+ const { columnDef } = column;
1123
+ const { columnDefType } = columnDef;
1124
+ const isColumnPinned = enableColumnPinning && columnDef.columnDefType !== "group" && column.getIsPinned();
1125
+ const args = { column, table };
1126
+ const tableCellProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableFooterCellProps, args)), parseFromValuesOrFunc(columnDef.mantineTableFooterCellProps, args)), rest);
1127
+ const widthStyles = {
1128
+ minWidth: `max(calc(var(--header-${parseCSSVarId(footer === null || footer === void 0 ? void 0 : footer.id)}-size) * 1px), ${(_b = columnDef.minSize) !== null && _b !== void 0 ? _b : 30}px)`,
1129
+ width: `calc(var(--header-${parseCSSVarId(footer.id)}-size) * 1px)`
1130
+ };
1131
+ if (layoutMode === "grid") {
1132
+ widthStyles.flex = `${[0, false].includes(columnDef.grow) ? 0 : `var(--header-${parseCSSVarId(footer.id)}-size)`} 0 auto`;
1133
+ } else if (layoutMode === "grid-no-grow") {
1134
+ widthStyles.flex = `${+(columnDef.grow || 0)} 0 auto`;
1135
+ }
1136
+ return jsxRuntime.jsx(core.TableTh, Object.assign({ colSpan: footer.colSpan, "data-column-pinned": isColumnPinned || void 0, "data-first-right-pinned": isColumnPinned === "right" && column.getIsFirstColumn(isColumnPinned) || void 0, "data-index": renderedColumnIndex, "data-last-left-pinned": isColumnPinned === "left" && column.getIsLastColumn(isColumnPinned) || void 0 }, tableCellProps, { __vars: Object.assign({ "--mrt-cell-align": (_c = tableCellProps.align) !== null && _c !== void 0 ? _c : columnDefType === "group" ? "center" : direction.dir === "rtl" ? "right" : "left", "--mrt-table-cell-left": isColumnPinned === "left" ? `${column.getStart(isColumnPinned)}` : void 0, "--mrt-table-cell-right": isColumnPinned === "right" ? `${column.getAfter(isColumnPinned)}` : void 0 }, tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.__vars), className: clsx.clsx(classes$o.root, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$o.grid, columnDefType === "group" && classes$o.group, tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.className), style: (theme) => Object.assign(Object.assign({}, widthStyles), parseFromValuesOrFunc(tableCellProps.style, theme)), children: (_d = tableCellProps.children) !== null && _d !== void 0 ? _d : footer.isPlaceholder ? null : (_f = (_e = parseFromValuesOrFunc(columnDef.Footer, {
1137
+ column,
1138
+ footer,
1139
+ table
1140
+ })) !== null && _e !== void 0 ? _e : columnDef.footer) !== null && _f !== void 0 ? _f : null }));
1141
+ };
1142
+ const MRT_TableFooterRow = (_a) => {
1143
+ var _b;
1144
+ var { columnVirtualizer, footerGroup, table } = _a, rest = __rest(_a, ["columnVirtualizer", "footerGroup", "table"]);
1145
+ const { options: { layoutMode, mantineTableFooterRowProps } } = table;
1146
+ const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } = columnVirtualizer !== null && columnVirtualizer !== void 0 ? columnVirtualizer : {};
1147
+ if (!((_b = footerGroup.headers) === null || _b === void 0 ? void 0 : _b.some((header) => typeof header.column.columnDef.footer === "string" && !!header.column.columnDef.footer || header.column.columnDef.Footer))) {
1148
+ return null;
1149
+ }
1150
+ const tableRowProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableFooterRowProps, {
1151
+ footerGroup,
1152
+ table
1153
+ })), rest);
1154
+ return jsxRuntime.jsxs(core.TableTr, Object.assign({ className: clsx.clsx(classes$p.root, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$p["layout-mode-grid"]) }, tableRowProps, { children: [virtualPaddingLeft ? jsxRuntime.jsx(core.Box, { component: "th", display: "flex", w: virtualPaddingLeft }) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : footerGroup.headers).map((footerOrVirtualFooter, renderedColumnIndex) => {
1155
+ let footer = footerOrVirtualFooter;
1156
+ if (columnVirtualizer) {
1157
+ renderedColumnIndex = footerOrVirtualFooter.index;
1158
+ footer = footerGroup.headers[renderedColumnIndex];
1159
+ }
1160
+ return jsxRuntime.jsx(MRT_TableFooterCell, { footer, renderedColumnIndex, table }, footer.id);
1161
+ }), virtualPaddingRight ? jsxRuntime.jsx(core.Box, { component: "th", display: "flex", w: virtualPaddingRight }) : null] }));
1162
+ };
1163
+ const MRT_TableFooter = (_a) => {
1164
+ var { columnVirtualizer, table } = _a, rest = __rest(_a, ["columnVirtualizer", "table"]);
1165
+ const { getFooterGroups, getState, options: { enableStickyFooter, layoutMode, mantineTableFooterProps }, refs: { tableFooterRef } } = table;
1166
+ const { isFullScreen } = getState();
1167
+ const tableFooterProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableFooterProps, {
1168
+ table
1169
+ })), rest);
1170
+ const stickFooter = (isFullScreen || enableStickyFooter) && enableStickyFooter !== false;
1171
+ return jsxRuntime.jsx(core.TableTfoot, Object.assign({}, tableFooterProps, { className: clsx.clsx(classes$q.root, tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.className, stickFooter && classes$q.sticky, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$q.grid), ref: (ref) => {
1172
+ tableFooterRef.current = ref;
1173
+ if (tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.ref) {
1174
+ tableFooterProps.ref.current = ref;
1175
+ }
1176
+ }, children: getFooterGroups().map((footerGroup) => jsxRuntime.jsx(MRT_TableFooterRow, { columnVirtualizer, footerGroup, table }, footerGroup.id)) }));
1177
+ };
1178
+ var classes$n = { "root": "MRT_TableHead-module_root__j9NkO", "root-grid": "MRT_TableHead-module_root-grid__c3aGl", "root-table-row-group": "MRT_TableHead-module_root-table-row-group__d9FO4", "root-sticky": "MRT_TableHead-module_root-sticky__0kuDE", "banner-tr": "MRT_TableHead-module_banner-tr__EhT-x", "banner-th": "MRT_TableHead-module_banner-th__KwM5a", "grid": "MRT_TableHead-module_grid__OJ-td" };
1179
+ var classes$m = { "root": "MRT_TableHeadRow-module_root__hUKv4", "layout-mode-grid": "MRT_TableHeadRow-module_layout-mode-grid__4ZGri", "sticky": "MRT_TableHeadRow-module_sticky__Ej7Ax" };
1180
+ var classes$l = { "root": "MRT_TableHeadCell-module_root__6y50a", "root-grid": "MRT_TableHeadCell-module_root-grid__bAf1d", "root-virtualized": "MRT_TableHeadCell-module_root-virtualized__CWLit", "root-no-select": "MRT_TableHeadCell-module_root-no-select__BEOVU", "content": "MRT_TableHeadCell-module_content__-pzSK", "content-spaced": "MRT_TableHeadCell-module_content-spaced__S85Aa", "content-center": "MRT_TableHeadCell-module_content-center__c-17L", "content-right": "MRT_TableHeadCell-module_content-right__NSRZU", "content-wrapper": "MRT_TableHeadCell-module_content-wrapper__py6aJ", "content-wrapper-hidden-overflow": "MRT_TableHeadCell-module_content-wrapper-hidden-overflow__QY40r", "content-wrapper-nowrap": "MRT_TableHeadCell-module_content-wrapper-nowrap__-4aIg", "labels": "MRT_TableHeadCell-module_labels__oiMSr", "labels-right": "MRT_TableHeadCell-module_labels-right__6ZJp-", "labels-center": "MRT_TableHeadCell-module_labels-center__MM9q8", "labels-sortable": "MRT_TableHeadCell-module_labels-sortable__tyuLr", "labels-data": "MRT_TableHeadCell-module_labels-data__PvFGO", "content-actions": "MRT_TableHeadCell-module_content-actions__utxbm" };
1181
+ var classes$k = { "filter-mode-label": "MRT_TableHeadCellFilterContainer-module_filter-mode-label__8reK-" };
1182
+ const fuzzy = (row, columnId, filterValue, addMeta) => {
1183
+ const itemRank = index$2.rankItem(row.getValue(columnId), filterValue, {
1184
+ threshold: index$2.rankings.MATCHES
1185
+ });
1186
+ addMeta(itemRank);
1187
+ return itemRank.passed;
1188
+ };
1189
+ fuzzy.autoRemove = (val) => !val;
1190
+ const contains = (row, id, filterValue) => {
1191
+ var _a;
1192
+ return (_a = row.getValue(id)) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().trim().includes(filterValue.toString().toLowerCase().trim());
1193
+ };
1194
+ contains.autoRemove = (val) => !val;
1195
+ const startsWith = (row, id, filterValue) => {
1196
+ var _a;
1197
+ return (_a = row.getValue(id)) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().trim().startsWith(filterValue.toString().toLowerCase().trim());
1198
+ };
1199
+ startsWith.autoRemove = (val) => !val;
1200
+ const endsWith = (row, id, filterValue) => {
1201
+ var _a;
1202
+ return (_a = row.getValue(id)) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().trim().endsWith(filterValue.toString().toLowerCase().trim());
1203
+ };
1204
+ endsWith.autoRemove = (val) => !val;
1205
+ const equals = (row, id, filterValue) => {
1206
+ var _a;
1207
+ return ((_a = row.getValue(id)) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().trim()) === (filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString().toLowerCase().trim());
1208
+ };
1209
+ equals.autoRemove = (val) => !val;
1210
+ const notEquals = (row, id, filterValue) => {
1211
+ var _a;
1212
+ return ((_a = row.getValue(id)) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().trim()) !== filterValue.toString().toLowerCase().trim();
1213
+ };
1214
+ notEquals.autoRemove = (val) => !val;
1215
+ const greaterThan = (row, id, filterValue) => {
1216
+ var _a;
1217
+ return !isNaN(+filterValue) && !isNaN(+row.getValue(id)) ? +row.getValue(id) > +filterValue : ((_a = row.getValue(id)) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().trim()) > (filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString().toLowerCase().trim());
1218
+ };
1219
+ greaterThan.autoRemove = (val) => !val;
1220
+ const greaterThanOrEqualTo = (row, id, filterValue) => equals(row, id, filterValue) || greaterThan(row, id, filterValue);
1221
+ greaterThanOrEqualTo.autoRemove = (val) => !val;
1222
+ const lessThan = (row, id, filterValue) => {
1223
+ var _a;
1224
+ return !isNaN(+filterValue) && !isNaN(+row.getValue(id)) ? +row.getValue(id) < +filterValue : ((_a = row.getValue(id)) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().trim()) < (filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString().toLowerCase().trim());
1225
+ };
1226
+ lessThan.autoRemove = (val) => !val;
1227
+ const lessThanOrEqualTo = (row, id, filterValue) => equals(row, id, filterValue) || lessThan(row, id, filterValue);
1228
+ lessThanOrEqualTo.autoRemove = (val) => !val;
1229
+ const between = (row, id, filterValues) => (["", void 0].includes(filterValues[0]) || greaterThan(row, id, filterValues[0])) && (!isNaN(+filterValues[0]) && !isNaN(+filterValues[1]) && +filterValues[0] > +filterValues[1] || ["", void 0].includes(filterValues[1]) || lessThan(row, id, filterValues[1]));
1230
+ between.autoRemove = (val) => !val;
1231
+ const betweenInclusive = (row, id, filterValues) => (["", void 0].includes(filterValues[0]) || greaterThanOrEqualTo(row, id, filterValues[0])) && (!isNaN(+filterValues[0]) && !isNaN(+filterValues[1]) && +filterValues[0] > +filterValues[1] || ["", void 0].includes(filterValues[1]) || lessThanOrEqualTo(row, id, filterValues[1]));
1232
+ betweenInclusive.autoRemove = (val) => !val;
1233
+ const empty = (row, id, _filterValue) => {
1234
+ var _a;
1235
+ return !((_a = row.getValue(id)) === null || _a === void 0 ? void 0 : _a.toString().trim());
1236
+ };
1237
+ empty.autoRemove = (val) => !val;
1238
+ const notEmpty = (row, id, _filterValue) => {
1239
+ var _a;
1240
+ return !!((_a = row.getValue(id)) === null || _a === void 0 ? void 0 : _a.toString().trim());
1241
+ };
1242
+ notEmpty.autoRemove = (val) => !val;
1243
+ const MRT_FilterFns = Object.assign(Object.assign({}, index$1.filterFns), {
1244
+ between,
1245
+ betweenInclusive,
1246
+ contains,
1247
+ empty,
1248
+ endsWith,
1249
+ equals,
1250
+ fuzzy,
1251
+ greaterThan,
1252
+ greaterThanOrEqualTo,
1253
+ lessThan,
1254
+ lessThanOrEqualTo,
1255
+ notEmpty,
1256
+ notEquals,
1257
+ startsWith
1258
+ });
1259
+ function localizedFilterOption(localization, option) {
1260
+ var _a;
1261
+ if (!option) {
1262
+ return "";
1263
+ }
1264
+ const key = `filter${option[0].toUpperCase()}${option.slice(1)}`;
1265
+ return (_a = localization[key]) !== null && _a !== void 0 ? _a : "";
1266
+ }
1267
+ var classes$j = { "root": "MRT_FilterCheckBox-module_root__59h9r" };
1268
+ const MRT_FilterCheckbox = (_a) => {
1269
+ var _b, _c, _d;
1270
+ var { column, table } = _a, rest = __rest(_a, ["column", "table"]);
1271
+ const { getState, options: { localization, mantineFilterCheckboxProps } } = table;
1272
+ const { density } = getState();
1273
+ const { columnDef } = column;
1274
+ const arg = { column, table };
1275
+ const checkboxProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineFilterCheckboxProps, arg)), parseFromValuesOrFunc(columnDef.mantineFilterCheckboxProps, arg)), rest);
1276
+ const filterLabel = (_b = localization.filterByColumn) === null || _b === void 0 ? void 0 : _b.replace("{column}", columnDef.header);
1277
+ const value = column.getFilterValue();
1278
+ return jsxRuntime.jsx(core.Tooltip, { label: (_c = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _c !== void 0 ? _c : filterLabel, openDelay: 1e3, withinPortal: true, children: jsxRuntime.jsx(core.Checkbox, Object.assign({ checked: value === "true", className: clsx.clsx("mrt-filter-checkbox", classes$j.root), indeterminate: value === void 0, label: (_d = checkboxProps.title) !== null && _d !== void 0 ? _d : filterLabel, size: density === "xs" ? "sm" : "md" }, checkboxProps, { onChange: (e) => {
1279
+ var _a2;
1280
+ column.setFilterValue(column.getFilterValue() === void 0 ? "true" : column.getFilterValue() === "true" ? "false" : void 0);
1281
+ (_a2 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(checkboxProps, e);
1282
+ }, onClick: (e) => {
1283
+ var _a2;
1284
+ e.stopPropagation();
1285
+ (_a2 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(checkboxProps, e);
1286
+ }, title: void 0 })) });
1287
+ };
1288
+ var classes$i = { "root": "MRT_FilterRangeFields-module_root__KfCcg" };
1289
+ var classes$h = { "root": "MRT_FilterTextInput-module_root__Ss8Ql", "date-filter": "MRT_FilterTextInput-module_date-filter__jOBLB", "range-filter": "MRT_FilterTextInput-module_range-filter__JQHAL", "not-filter-chip": "MRT_FilterTextInput-module_not-filter-chip__u8b1y", "filter-chip-badge": "MRT_FilterTextInput-module_filter-chip-badge__Sel2k" };
1290
+ const MRT_FilterTextInput = (_a) => {
1291
+ var _b, _c, _d, _e, _f, _g, _h, _j;
1292
+ var { header, rangeFilterIndex, table } = _a, rest = __rest(_a, ["header", "rangeFilterIndex", "table"]);
1293
+ const { options: { columnFilterDisplayMode, columnFilterModeOptions, icons: { IconX: IconX2 }, localization, mantineFilterAutocompleteProps, mantineFilterDateInputProps, mantineFilterMultiSelectProps = {
1294
+ clearable: true
1295
+ }, mantineFilterSelectProps, mantineFilterTextInputProps, manualFiltering }, refs: { filterInputRefs }, setColumnFilterFns } = table;
1296
+ const { column } = header;
1297
+ const { columnDef } = column;
1298
+ const arg = { column, rangeFilterIndex, table };
1299
+ const textInputProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineFilterTextInputProps, arg)), parseFromValuesOrFunc(columnDef.mantineFilterTextInputProps, arg)), rest);
1300
+ const selectProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineFilterSelectProps, arg)), parseFromValuesOrFunc(columnDef.mantineFilterSelectProps, arg));
1301
+ const multiSelectProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineFilterMultiSelectProps, arg)), parseFromValuesOrFunc(columnDef.mantineFilterMultiSelectProps, arg));
1302
+ const dateInputProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineFilterDateInputProps, arg)), parseFromValuesOrFunc(columnDef.mantineFilterDateInputProps, arg));
1303
+ const autoCompleteProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineFilterAutocompleteProps, arg)), parseFromValuesOrFunc(columnDef.mantineFilterAutocompleteProps, arg));
1304
+ const isRangeFilter = columnDef.filterVariant === "range" || columnDef.filterVariant === "date-range" || rangeFilterIndex !== void 0;
1305
+ const isSelectFilter = columnDef.filterVariant === "select";
1306
+ const isMultiSelectFilter = columnDef.filterVariant === "multi-select";
1307
+ const isDateFilter = columnDef.filterVariant === "date" || columnDef.filterVariant === "date-range";
1308
+ const isAutoCompleteFilter = columnDef.filterVariant === "autocomplete";
1309
+ const allowedColumnFilterOptions = (_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _b !== void 0 ? _b : columnFilterModeOptions;
1310
+ const currentFilterOption = columnDef._filterFn;
1311
+ const filterChipLabel = ["empty", "notEmpty"].includes(currentFilterOption) ? localizedFilterOption(localization, currentFilterOption) : "";
1312
+ const filterPlaceholder = !isRangeFilter ? (_c = textInputProps === null || textInputProps === void 0 ? void 0 : textInputProps.placeholder) !== null && _c !== void 0 ? _c : (_d = localization.filterByColumn) === null || _d === void 0 ? void 0 : _d.replace("{column}", String(columnDef.header)) : rangeFilterIndex === 0 ? localization.min : rangeFilterIndex === 1 ? localization.max : "";
1313
+ const facetedUniqueValues = column.getFacetedUniqueValues();
1314
+ const filterSelectOptions = React.useMemo(() => {
1315
+ var _a2, _b2, _c2;
1316
+ return ((_c2 = (_b2 = (_a2 = autoCompleteProps === null || autoCompleteProps === void 0 ? void 0 : autoCompleteProps.data) !== null && _a2 !== void 0 ? _a2 : selectProps === null || selectProps === void 0 ? void 0 : selectProps.data) !== null && _b2 !== void 0 ? _b2 : multiSelectProps === null || multiSelectProps === void 0 ? void 0 : multiSelectProps.data) !== null && _c2 !== void 0 ? _c2 : (isAutoCompleteFilter || isSelectFilter || isMultiSelectFilter) && facetedUniqueValues ? Array.from(facetedUniqueValues.keys()).filter((key) => key !== null).sort((a, b) => a.localeCompare(b)) : []).filter((o) => o !== void 0 && o !== null);
1317
+ }, [
1318
+ autoCompleteProps === null || autoCompleteProps === void 0 ? void 0 : autoCompleteProps.data,
1319
+ facetedUniqueValues,
1320
+ isAutoCompleteFilter,
1321
+ isMultiSelectFilter,
1322
+ isSelectFilter,
1323
+ multiSelectProps === null || multiSelectProps === void 0 ? void 0 : multiSelectProps.data,
1324
+ selectProps === null || selectProps === void 0 ? void 0 : selectProps.data
1325
+ ]);
1326
+ const isMounted = React.useRef(false);
1327
+ const [filterValue, setFilterValue] = React.useState(() => {
1328
+ var _a2, _b2;
1329
+ return isMultiSelectFilter ? column.getFilterValue() || [] : isRangeFilter ? ((_a2 = column.getFilterValue()) === null || _a2 === void 0 ? void 0 : _a2[rangeFilterIndex]) || "" : (_b2 = column.getFilterValue()) !== null && _b2 !== void 0 ? _b2 : "";
1330
+ });
1331
+ const [debouncedFilterValue] = hooks.useDebouncedValue(filterValue, manualFiltering ? 400 : 200);
1332
+ React.useEffect(() => {
1333
+ if (!isMounted.current)
1334
+ return;
1335
+ if (isRangeFilter) {
1336
+ column.setFilterValue((old) => {
1337
+ const newFilterValues = Array.isArray(old) ? old : ["", ""];
1338
+ newFilterValues[rangeFilterIndex] = debouncedFilterValue;
1339
+ return newFilterValues;
1340
+ });
1341
+ } else {
1342
+ column.setFilterValue(debouncedFilterValue !== null && debouncedFilterValue !== void 0 ? debouncedFilterValue : void 0);
1343
+ }
1344
+ }, [debouncedFilterValue]);
1345
+ React.useEffect(() => {
1346
+ if (!isMounted.current) {
1347
+ isMounted.current = true;
1348
+ return;
1349
+ }
1350
+ const tableFilterValue = column.getFilterValue();
1351
+ if (tableFilterValue === void 0) {
1352
+ handleClear();
1353
+ } else if (isRangeFilter && rangeFilterIndex !== void 0) {
1354
+ setFilterValue((tableFilterValue !== null && tableFilterValue !== void 0 ? tableFilterValue : ["", ""])[rangeFilterIndex]);
1355
+ } else {
1356
+ setFilterValue(tableFilterValue !== null && tableFilterValue !== void 0 ? tableFilterValue : "");
1357
+ }
1358
+ }, [column.getFilterValue()]);
1359
+ const handleClear = () => {
1360
+ if (isMultiSelectFilter) {
1361
+ setFilterValue([]);
1362
+ column.setFilterValue([]);
1363
+ } else if (isRangeFilter) {
1364
+ setFilterValue("");
1365
+ column.setFilterValue((old) => {
1366
+ const newFilterValues = Array.isArray(old) ? old : ["", ""];
1367
+ newFilterValues[rangeFilterIndex] = void 0;
1368
+ return newFilterValues;
1369
+ });
1370
+ } else if (isSelectFilter) {
1371
+ setFilterValue(null);
1372
+ column.setFilterValue(null);
1373
+ } else {
1374
+ setFilterValue("");
1375
+ column.setFilterValue(void 0);
1376
+ }
1377
+ };
1378
+ const handleClearEmptyFilterChip = () => {
1379
+ if (isMultiSelectFilter) {
1380
+ setFilterValue([]);
1381
+ column.setFilterValue([]);
1382
+ } else {
1383
+ setFilterValue("");
1384
+ column.setFilterValue(void 0);
1385
+ }
1386
+ setColumnFilterFns((prev) => {
1387
+ var _a2;
1388
+ return Object.assign(Object.assign({}, prev), { [header.id]: (_a2 = allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions[0]) !== null && _a2 !== void 0 ? _a2 : "fuzzy" });
1389
+ });
1390
+ };
1391
+ const _k = {
1392
+ "aria-label": filterPlaceholder,
1393
+ className: clsx.clsx("mrt-filter-text-input", classes$h.root, isDateFilter ? classes$h["date-filter"] : isRangeFilter ? classes$h["range-filter"] : !filterChipLabel && classes$h["not-filter-chip"]),
1394
+ disabled: !!filterChipLabel,
1395
+ onChange: setFilterValue,
1396
+ onClick: (event) => event.stopPropagation(),
1397
+ placeholder: filterPlaceholder,
1398
+ style: Object.assign({}, isMultiSelectFilter ? multiSelectProps === null || multiSelectProps === void 0 ? void 0 : multiSelectProps.style : isSelectFilter ? selectProps === null || selectProps === void 0 ? void 0 : selectProps.style : isDateFilter ? dateInputProps === null || dateInputProps === void 0 ? void 0 : dateInputProps.style : textInputProps === null || textInputProps === void 0 ? void 0 : textInputProps.style),
1399
+ title: filterPlaceholder,
1400
+ value: isMultiSelectFilter && !Array.isArray(filterValue) ? [] : filterValue,
1401
+ variant: "unstyled"
1402
+ }, { className } = _k, commonProps = __rest(_k, ["className"]);
1403
+ const ClearButton = filterValue ? jsxRuntime.jsx(core.ActionIcon, { "aria-label": localization.clearFilter, color: "var(--mantine-color-gray-7)", onClick: handleClear, size: "sm", title: (_e = localization.clearFilter) !== null && _e !== void 0 ? _e : "", variant: "transparent", children: jsxRuntime.jsx(IconX2, {}) }) : null;
1404
+ if (columnDef.Filter) {
1405
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: (_f = columnDef.Filter) === null || _f === void 0 ? void 0 : _f.call(columnDef, { column, header, rangeFilterIndex, table }) });
1406
+ }
1407
+ if (filterChipLabel) {
1408
+ return jsxRuntime.jsx(core.Box, { style: commonProps.style, children: jsxRuntime.jsx(core.Badge, { className: classes$h["filter-chip-badge"], onClick: handleClearEmptyFilterChip, rightSection: ClearButton, size: "lg", children: filterChipLabel }) });
1409
+ }
1410
+ if (isMultiSelectFilter) {
1411
+ return jsxRuntime.jsx(core.MultiSelect, Object.assign({}, commonProps, { searchable: true }, multiSelectProps, { className: clsx.clsx(className, multiSelectProps.className), data: filterSelectOptions, onChange: (value) => setFilterValue(value), ref: (node) => {
1412
+ if (node) {
1413
+ filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] = node;
1414
+ if (multiSelectProps.ref) {
1415
+ multiSelectProps.ref.current = node;
1416
+ }
1417
+ }
1418
+ }, rightSection: ((_g = filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString()) === null || _g === void 0 ? void 0 : _g.length) && (multiSelectProps === null || multiSelectProps === void 0 ? void 0 : multiSelectProps.clearable) ? ClearButton : void 0, style: commonProps.style }));
1419
+ }
1420
+ if (isSelectFilter) {
1421
+ return jsxRuntime.jsx(core.Select, Object.assign({}, commonProps, { clearable: true, searchable: true }, selectProps, { className: clsx.clsx(className, selectProps.className), clearButtonProps: {
1422
+ size: "md"
1423
+ }, data: filterSelectOptions, ref: (node) => {
1424
+ if (node) {
1425
+ filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] = node;
1426
+ if (selectProps.ref) {
1427
+ selectProps.ref.current = node;
1428
+ }
1429
+ }
1430
+ }, style: commonProps.style }));
1431
+ }
1432
+ if (isDateFilter) {
1433
+ return jsxRuntime.jsx(dates.DateInput, Object.assign({}, commonProps, { allowDeselect: true, clearable: true, popoverProps: { withinPortal: columnFilterDisplayMode !== "popover" } }, dateInputProps, { className: clsx.clsx(className, dateInputProps.className), onChange: (event) => commonProps.onChange(event === null ? "" : event), ref: (node) => {
1434
+ if (node) {
1435
+ filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] = node;
1436
+ if (dateInputProps.ref) {
1437
+ dateInputProps.ref.current = node;
1438
+ }
1439
+ }
1440
+ }, style: commonProps.style }));
1441
+ }
1442
+ if (isAutoCompleteFilter) {
1443
+ return jsxRuntime.jsx(core.Autocomplete, Object.assign({}, commonProps, { onChange: (value) => setFilterValue(value), rightSection: ((_h = filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString()) === null || _h === void 0 ? void 0 : _h.length) ? ClearButton : void 0 }, autoCompleteProps, { className: clsx.clsx(className, autoCompleteProps.className), data: filterSelectOptions, ref: (node) => {
1444
+ if (node) {
1445
+ filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] = node;
1446
+ if (autoCompleteProps.ref) {
1447
+ autoCompleteProps.ref.current = node;
1448
+ }
1449
+ }
1450
+ }, style: commonProps.style }));
1451
+ }
1452
+ return jsxRuntime.jsx(core.TextInput, Object.assign({}, commonProps, { onChange: (e) => setFilterValue(e.target.value), rightSection: ((_j = filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString()) === null || _j === void 0 ? void 0 : _j.length) ? ClearButton : void 0 }, textInputProps, { className: clsx.clsx(className, textInputProps.className), mt: 0, ref: (node) => {
1453
+ if (node) {
1454
+ filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] = node;
1455
+ if (textInputProps.ref) {
1456
+ textInputProps.ref.current = node;
1457
+ }
1458
+ }
1459
+ }, style: commonProps.style }));
1460
+ };
1461
+ const MRT_FilterRangeFields = (_a) => {
1462
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
1463
+ return jsxRuntime.jsxs(core.Box, Object.assign({}, rest, { className: clsx.clsx("mrt-filter-range-fields", classes$i.root, rest.className), children: [jsxRuntime.jsx(MRT_FilterTextInput, { header, rangeFilterIndex: 0, table }), jsxRuntime.jsx(MRT_FilterTextInput, { header, rangeFilterIndex: 1, table })] }));
1464
+ };
1465
+ var classes$g = { "root": "MRT_FilterRangeSlider-module_root__uwYEk" };
1466
+ const MRT_FilterRangeSlider = (_a) => {
1467
+ var _b;
1468
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
1469
+ const { options: { mantineFilterRangeSliderProps }, refs: { filterInputRefs } } = table;
1470
+ const { column } = header;
1471
+ const { columnDef } = column;
1472
+ const arg = { column, table };
1473
+ const rangeSliderProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineFilterRangeSliderProps, arg)), parseFromValuesOrFunc(columnDef.mantineFilterRangeSliderProps, arg)), rest);
1474
+ let [min, max] = rangeSliderProps.min !== void 0 && rangeSliderProps.max !== void 0 ? [rangeSliderProps.min, rangeSliderProps.max] : (_b = column.getFacetedMinMaxValues()) !== null && _b !== void 0 ? _b : [0, 1];
1475
+ if (Array.isArray(min))
1476
+ min = min[0];
1477
+ if (Array.isArray(max))
1478
+ max = max[0];
1479
+ if (min === null)
1480
+ min = 0;
1481
+ if (max === null)
1482
+ max = 1;
1483
+ const [filterValues, setFilterValues] = React.useState([
1484
+ min,
1485
+ max
1486
+ ]);
1487
+ const columnFilterValue = column.getFilterValue();
1488
+ const isMounted = React.useRef(false);
1489
+ React.useEffect(() => {
1490
+ if (isMounted.current) {
1491
+ if (columnFilterValue === void 0) {
1492
+ setFilterValues([min, max]);
1493
+ } else if (Array.isArray(columnFilterValue)) {
1494
+ setFilterValues(columnFilterValue);
1495
+ }
1496
+ }
1497
+ isMounted.current = true;
1498
+ }, [columnFilterValue, min, max]);
1499
+ return jsxRuntime.jsx(core.RangeSlider, Object.assign({ className: clsx.clsx("mrt-filter-range-slider", classes$g.root), max, min, onChange: (values) => {
1500
+ setFilterValues(values);
1501
+ }, onChangeEnd: (values) => {
1502
+ if (Array.isArray(values)) {
1503
+ if (values[0] <= min && values[1] >= max) {
1504
+ column.setFilterValue(void 0);
1505
+ } else {
1506
+ column.setFilterValue(values);
1507
+ }
1508
+ }
1509
+ }, value: filterValues }, rangeSliderProps, { ref: (node) => {
1510
+ if (node) {
1511
+ filterInputRefs.current[`${column.id}-0`] = node;
1512
+ if (rangeSliderProps === null || rangeSliderProps === void 0 ? void 0 : rangeSliderProps.ref) {
1513
+ rangeSliderProps.ref = node;
1514
+ }
1515
+ }
1516
+ } }));
1517
+ };
1518
+ var classes$f = { "symbol": "MRT_FilterOptionMenu-module_symbol__a1Bsy" };
1519
+ const mrtFilterOptions = (localization) => [
1520
+ {
1521
+ divider: false,
1522
+ label: localization.filterFuzzy,
1523
+ option: "fuzzy",
1524
+ symbol: "≈"
1525
+ },
1526
+ {
1527
+ divider: false,
1528
+ label: localization.filterContains,
1529
+ option: "contains",
1530
+ symbol: "*"
1531
+ },
1532
+ {
1533
+ divider: false,
1534
+ label: localization.filterStartsWith,
1535
+ option: "startsWith",
1536
+ symbol: "a"
1537
+ },
1538
+ {
1539
+ divider: true,
1540
+ label: localization.filterEndsWith,
1541
+ option: "endsWith",
1542
+ symbol: "z"
1543
+ },
1544
+ {
1545
+ divider: false,
1546
+ label: localization.filterEquals,
1547
+ option: "equals",
1548
+ symbol: "="
1549
+ },
1550
+ {
1551
+ divider: true,
1552
+ label: localization.filterNotEquals,
1553
+ option: "notEquals",
1554
+ symbol: "≠"
1555
+ },
1556
+ {
1557
+ divider: false,
1558
+ label: localization.filterBetween,
1559
+ option: "between",
1560
+ symbol: "⇿"
1561
+ },
1562
+ {
1563
+ divider: true,
1564
+ label: localization.filterBetweenInclusive,
1565
+ option: "betweenInclusive",
1566
+ symbol: "⬌"
1567
+ },
1568
+ {
1569
+ divider: false,
1570
+ label: localization.filterGreaterThan,
1571
+ option: "greaterThan",
1572
+ symbol: ">"
1573
+ },
1574
+ {
1575
+ divider: false,
1576
+ label: localization.filterGreaterThanOrEqualTo,
1577
+ option: "greaterThanOrEqualTo",
1578
+ symbol: "≥"
1579
+ },
1580
+ {
1581
+ divider: false,
1582
+ label: localization.filterLessThan,
1583
+ option: "lessThan",
1584
+ symbol: "<"
1585
+ },
1586
+ {
1587
+ divider: true,
1588
+ label: localization.filterLessThanOrEqualTo,
1589
+ option: "lessThanOrEqualTo",
1590
+ symbol: "≤"
1591
+ },
1592
+ {
1593
+ divider: false,
1594
+ label: localization.filterEmpty,
1595
+ option: "empty",
1596
+ symbol: "∅"
1597
+ },
1598
+ {
1599
+ divider: false,
1600
+ label: localization.filterNotEmpty,
1601
+ option: "notEmpty",
1602
+ symbol: "!∅"
1603
+ }
1604
+ ];
1605
+ const rangeModes = ["between", "betweenInclusive", "inNumberRange"];
1606
+ const emptyModes = ["empty", "notEmpty"];
1607
+ const arrModes = ["arrIncludesSome", "arrIncludesAll", "arrIncludes"];
1608
+ const rangeVariants = ["range-slider", "date-range", "range"];
1609
+ const MRT_FilterOptionMenu = ({ header, onSelect, table }) => {
1610
+ var _a, _b, _c, _d;
1611
+ const { getState, options: { columnFilterModeOptions, globalFilterModeOptions, localization, renderColumnFilterModeMenuItems, renderGlobalFilterModeMenuItems }, setColumnFilterFns, setGlobalFilterFn } = table;
1612
+ const { globalFilterFn } = getState();
1613
+ const { column } = header !== null && header !== void 0 ? header : {};
1614
+ const { columnDef } = column !== null && column !== void 0 ? column : {};
1615
+ const currentFilterValue = column === null || column === void 0 ? void 0 : column.getFilterValue();
1616
+ let allowedColumnFilterOptions = (_a = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _a !== void 0 ? _a : columnFilterModeOptions;
1617
+ if (rangeVariants.includes(columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterVariant)) {
1618
+ allowedColumnFilterOptions = [
1619
+ ...rangeModes,
1620
+ ...allowedColumnFilterOptions !== null && allowedColumnFilterOptions !== void 0 ? allowedColumnFilterOptions : []
1621
+ ].filter((option) => rangeModes.includes(option));
1622
+ }
1623
+ const internalFilterOptions = React.useMemo(() => mrtFilterOptions(localization).filter((filterOption2) => columnDef ? allowedColumnFilterOptions === void 0 || (allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.includes(filterOption2.option)) : (!globalFilterModeOptions || globalFilterModeOptions.includes(filterOption2.option)) && ["contains", "fuzzy", "startsWith"].includes(filterOption2.option)), []);
1624
+ const handleSelectFilterMode = (option) => {
1625
+ var _a2;
1626
+ const prevFilterMode = (_a2 = columnDef === null || columnDef === void 0 ? void 0 : columnDef._filterFn) !== null && _a2 !== void 0 ? _a2 : "";
1627
+ if (!header || !column) {
1628
+ setGlobalFilterFn(option);
1629
+ } else if (option !== prevFilterMode) {
1630
+ setColumnFilterFns((prev) => Object.assign(Object.assign({}, prev), { [header.id]: option }));
1631
+ if (emptyModes.includes(option)) {
1632
+ if (currentFilterValue !== " " && !emptyModes.includes(prevFilterMode)) {
1633
+ column.setFilterValue(" ");
1634
+ } else if (currentFilterValue) {
1635
+ column.setFilterValue(currentFilterValue);
1636
+ }
1637
+ } else if ((columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterVariant) === "multi-select" || arrModes.includes(option)) {
1638
+ if (currentFilterValue instanceof String || (currentFilterValue === null || currentFilterValue === void 0 ? void 0 : currentFilterValue.length)) {
1639
+ column.setFilterValue([]);
1640
+ } else if (currentFilterValue) {
1641
+ column.setFilterValue(currentFilterValue);
1642
+ }
1643
+ } else if (rangeVariants.includes(columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterVariant) || rangeModes.includes(option)) {
1644
+ if (!Array.isArray(currentFilterValue) || !(currentFilterValue === null || currentFilterValue === void 0 ? void 0 : currentFilterValue.every((v) => v === "")) && !rangeModes.includes(prevFilterMode)) {
1645
+ column.setFilterValue(["", ""]);
1646
+ } else {
1647
+ column.setFilterValue(currentFilterValue);
1648
+ }
1649
+ } else {
1650
+ if (Array.isArray(currentFilterValue)) {
1651
+ column.setFilterValue("");
1652
+ } else if (currentFilterValue === " " && emptyModes.includes(prevFilterMode)) {
1653
+ column.setFilterValue(void 0);
1654
+ } else {
1655
+ column.setFilterValue(currentFilterValue);
1656
+ }
1657
+ }
1658
+ }
1659
+ onSelect === null || onSelect === void 0 ? void 0 : onSelect();
1660
+ };
1661
+ const filterOption = !!header && columnDef ? columnDef._filterFn : globalFilterFn;
1662
+ return jsxRuntime.jsx(core.Menu.Dropdown, { children: (_d = header && column && columnDef ? (_c = (_b = columnDef.renderColumnFilterModeMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
1663
+ column,
1664
+ internalFilterOptions,
1665
+ onSelectFilterMode: handleSelectFilterMode,
1666
+ table
1667
+ })) !== null && _c !== void 0 ? _c : renderColumnFilterModeMenuItems === null || renderColumnFilterModeMenuItems === void 0 ? void 0 : renderColumnFilterModeMenuItems({
1668
+ column,
1669
+ internalFilterOptions,
1670
+ onSelectFilterMode: handleSelectFilterMode,
1671
+ table
1672
+ }) : renderGlobalFilterModeMenuItems === null || renderGlobalFilterModeMenuItems === void 0 ? void 0 : renderGlobalFilterModeMenuItems({
1673
+ internalFilterOptions,
1674
+ onSelectFilterMode: handleSelectFilterMode,
1675
+ table
1676
+ })) !== null && _d !== void 0 ? _d : internalFilterOptions.map(({ divider, label, option, symbol }, index2) => jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(core.Menu.Item, { color: option === filterOption ? "blue" : void 0, leftSection: jsxRuntime.jsx("span", { className: classes$f.symbol, children: symbol }), onClick: () => handleSelectFilterMode(option), value: option, children: label }), divider && jsxRuntime.jsx(core.Menu.Divider, {})] }, index2)) });
1677
+ };
1678
+ const MRT_TableHeadCellFilterContainer = (_a) => {
1679
+ var _b, _c;
1680
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
1681
+ const { getState, options: { columnFilterDisplayMode, columnFilterModeOptions, enableColumnFilterModes, icons: { IconFilterCog: IconFilterCog2 }, localization }, refs: { filterInputRefs } } = table;
1682
+ const { showColumnFilters } = getState();
1683
+ const { column } = header;
1684
+ const { columnDef } = column;
1685
+ const currentFilterOption = columnDef._filterFn;
1686
+ const allowedColumnFilterOptions = (_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _b !== void 0 ? _b : columnFilterModeOptions;
1687
+ const showChangeModeButton = enableColumnFilterModes && columnDef.enableColumnFilterModes !== false && (allowedColumnFilterOptions === void 0 || !!(allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.length));
1688
+ return jsxRuntime.jsx(core.Collapse, { in: showColumnFilters || columnFilterDisplayMode === "popover", children: jsxRuntime.jsxs(core.Flex, Object.assign({ direction: "column" }, rest, { children: [jsxRuntime.jsxs(core.Flex, { align: "flex-end", children: [columnDef.filterVariant === "checkbox" ? jsxRuntime.jsx(MRT_FilterCheckbox, { column, table }) : columnDef.filterVariant === "range-slider" ? jsxRuntime.jsx(MRT_FilterRangeSlider, { header, table }) : ["date-range", "range"].includes((_c = columnDef.filterVariant) !== null && _c !== void 0 ? _c : "") || ["between", "betweenInclusive", "inNumberRange"].includes(columnDef._filterFn) ? jsxRuntime.jsx(MRT_FilterRangeFields, { header, table }) : jsxRuntime.jsx(MRT_FilterTextInput, { header, table }), showChangeModeButton && jsxRuntime.jsxs(core.Menu, { withinPortal: columnFilterDisplayMode !== "popover", children: [jsxRuntime.jsx(core.Tooltip, { label: localization.changeFilterMode, position: "bottom-start", withinPortal: true, children: jsxRuntime.jsx(core.Menu.Target, { children: jsxRuntime.jsx(core.ActionIcon, { "aria-label": localization.changeFilterMode, color: "gray", size: "md", variant: "subtle", children: jsxRuntime.jsx(IconFilterCog2, {}) }) }) }), jsxRuntime.jsx(MRT_FilterOptionMenu, { header, onSelect: () => setTimeout(() => {
1689
+ var _a2;
1690
+ return (_a2 = filterInputRefs.current[`${column.id}-0`]) === null || _a2 === void 0 ? void 0 : _a2.focus();
1691
+ }, 100), table })] })] }), showChangeModeButton ? jsxRuntime.jsx(core.Text, { c: "dimmed", className: classes$k["filter-mode-label"], component: "label", children: localization.filterMode.replace("{filterType}", localizedFilterOption(localization, currentFilterOption)) }) : null] })) });
1692
+ };
1693
+ var classes$e = { "root": "MRT_TableHeadCellFilterLabel-module_root__Rur2R" };
1694
+ const MRT_TableHeadCellFilterLabel = (_a) => {
1695
+ var _b, _c, _d;
1696
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
1697
+ const { options: { columnFilterDisplayMode, icons: { IconFilter: IconFilter2 }, localization }, refs: { filterInputRefs }, setShowColumnFilters } = table;
1698
+ const { column } = header;
1699
+ const { columnDef } = column;
1700
+ const filterValue = column.getFilterValue();
1701
+ const [popoverOpened, setPopoverOpened] = React.useState(false);
1702
+ const isFilterActive = Array.isArray(filterValue) && filterValue.some(Boolean) || !!filterValue && !Array.isArray(filterValue);
1703
+ const isRangeFilter = columnDef.filterVariant === "range" || columnDef.filterVariant === "date-range" || ["between", "betweenInclusive", "inNumberRange"].includes(columnDef._filterFn);
1704
+ const currentFilterOption = columnDef._filterFn;
1705
+ const filterValueFn = columnDef.filterTooltipValueFn || ((value) => value);
1706
+ const filterTooltip = columnFilterDisplayMode === "popover" && !isFilterActive ? (_b = localization.filterByColumn) === null || _b === void 0 ? void 0 : _b.replace("{column}", String(columnDef.header)) : localization.filteringByColumn.replace("{column}", String(columnDef.header)).replace("{filterType}", localizedFilterOption(localization, currentFilterOption)).replace("{filterValue}", `"${Array.isArray(column.getFilterValue()) ? column.getFilterValue().map((v) => filterValueFn(v)).join(`" ${isRangeFilter ? localization.and : localization.or} "`) : filterValueFn(column.getFilterValue())}"`).replace('" "', "");
1707
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(core.Popover, { keepMounted: columnDef.filterVariant === "range-slider", onChange: setPopoverOpened, onClose: () => setPopoverOpened(false), opened: popoverOpened, position: "top", shadow: "xl", width: 360, withinPortal: true, children: [jsxRuntime.jsx(core.Transition, { mounted: columnFilterDisplayMode === "popover" || !!column.getFilterValue() && !isRangeFilter || isRangeFilter && (!!((_c = column.getFilterValue()) === null || _c === void 0 ? void 0 : _c[0]) || !!((_d = column.getFilterValue()) === null || _d === void 0 ? void 0 : _d[1])), transition: "scale", children: () => jsxRuntime.jsx(core.Popover.Target, { children: jsxRuntime.jsx(core.Tooltip, { disabled: popoverOpened, label: filterTooltip, multiline: true, w: filterTooltip.length > 40 ? 300 : void 0, withinPortal: true, children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ className: clsx.clsx("mrt-table-head-cell-filter-label-icon", classes$e.root), size: 18 }, dataVariable("active", isFilterActive), { onClick: (event) => {
1708
+ event.stopPropagation();
1709
+ if (columnFilterDisplayMode === "popover") {
1710
+ setPopoverOpened((opened) => !opened);
1711
+ } else {
1712
+ setShowColumnFilters(true);
1713
+ }
1714
+ setTimeout(() => {
1715
+ const input = filterInputRefs.current[`${column.id}-0`];
1716
+ input === null || input === void 0 ? void 0 : input.focus();
1717
+ input === null || input === void 0 ? void 0 : input.select();
1718
+ }, 100);
1719
+ } }, rest, { children: jsxRuntime.jsx(IconFilter2, { size: "100%" }) })) }) }) }), columnFilterDisplayMode === "popover" && jsxRuntime.jsx(core.Popover.Dropdown, { onClick: (event) => event.stopPropagation(), onKeyDown: (event) => event.key === "Enter" && setPopoverOpened(false), onMouseDown: (event) => event.stopPropagation(), children: jsxRuntime.jsx(MRT_TableHeadCellFilterContainer, { header, table }) })] }) });
1720
+ };
1721
+ const MRT_TableHeadCellGrabHandle = (_a) => {
1722
+ var { column, table, tableHeadCellRef } = _a, rest = __rest(_a, ["column", "table", "tableHeadCellRef"]);
1723
+ const { getState, options: { enableColumnOrdering, mantineColumnDragHandleProps }, setColumnOrder, setDraggingColumn, setHoveredColumn } = table;
1724
+ const { columnDef } = column;
1725
+ const { columnOrder, draggingColumn, hoveredColumn } = getState();
1726
+ const arg = { column, table };
1727
+ const actionIconProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineColumnDragHandleProps, arg)), parseFromValuesOrFunc(columnDef.mantineColumnDragHandleProps, arg)), rest);
1728
+ const handleDragStart = (event) => {
1729
+ var _a2;
1730
+ (_a2 = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.onDragStart) === null || _a2 === void 0 ? void 0 : _a2.call(actionIconProps, event);
1731
+ setDraggingColumn(column);
1732
+ event.dataTransfer.setDragImage(tableHeadCellRef.current, 0, 0);
1733
+ };
1734
+ const handleDragEnd = (event) => {
1735
+ var _a2;
1736
+ (_a2 = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.onDragEnd) === null || _a2 === void 0 ? void 0 : _a2.call(actionIconProps, event);
1737
+ if ((hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === "drop-zone") {
1738
+ column.toggleGrouping();
1739
+ } else if (enableColumnOrdering && hoveredColumn && (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) !== (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id)) {
1740
+ setColumnOrder(reorderColumn(column, hoveredColumn, columnOrder));
1741
+ }
1742
+ setDraggingColumn(null);
1743
+ setHoveredColumn(null);
1744
+ };
1745
+ return jsxRuntime.jsx(MRT_GrabHandleButton, { actionIconProps, onDragEnd: handleDragEnd, onDragStart: handleDragStart, table });
1746
+ };
1747
+ var classes$d = { "root": "MRT_TableHeadCellResizeHandle-module_root__paufe", "root-ltr": "MRT_TableHeadCellResizeHandle-module_root-ltr__652AZ", "root-rtl": "MRT_TableHeadCellResizeHandle-module_root-rtl__5VlSo", "root-hide": "MRT_TableHeadCellResizeHandle-module_root-hide__-ILlD" };
1748
+ const MRT_TableHeadCellResizeHandle = (_a) => {
1749
+ var _b;
1750
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
1751
+ const { getState, options: { columnResizeDirection, columnResizeMode }, setColumnSizingInfo } = table;
1752
+ const { density } = getState();
1753
+ const { column } = header;
1754
+ const handler = header.getResizeHandler();
1755
+ const offset = column.getIsResizing() && columnResizeMode === "onEnd" ? `translateX(${(columnResizeDirection === "rtl" ? -1 : 1) * ((_b = getState().columnSizingInfo.deltaOffset) !== null && _b !== void 0 ? _b : 0)}px)` : void 0;
1756
+ return jsxRuntime.jsx(core.Box, Object.assign({ onDoubleClick: () => {
1757
+ setColumnSizingInfo((old) => Object.assign(Object.assign({}, old), { isResizingColumn: false }));
1758
+ column.resetSize();
1759
+ }, onMouseDown: handler, onTouchStart: handler, role: "separator" }, rest, { __vars: Object.assign({ "--mrt-transform": offset }, rest.__vars), className: clsx.clsx("mrt-table-head-cell-resize-handle", classes$d.root, classes$d[`root-${columnResizeDirection}`], !header.subHeaders.length && columnResizeMode === "onChange" && classes$d["root-hide"], density, rest.className) }));
1760
+ };
1761
+ var classes$c = { "sort-icon": "MRT_TableHeadCellSortLabel-module_sort-icon__zs1xA", "multi-sort-indicator": "MRT_TableHeadCellSortLabel-module_multi-sort-indicator__MGBj2" };
1762
+ const MRT_TableHeadCellSortLabel = (_a) => {
1763
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
1764
+ const { getState, options: { icons: { IconArrowsSort: IconArrowsSort2, IconSortAscending: IconSortAscending2, IconSortDescending: IconSortDescending2 }, localization } } = table;
1765
+ const column = header.column;
1766
+ const { columnDef } = column;
1767
+ const { sorting } = getState();
1768
+ const sorted = column.getIsSorted();
1769
+ const sortIndex = column.getSortIndex();
1770
+ const sortTooltip = sorted ? sorted === "desc" ? localization.sortedByColumnDesc.replace("{column}", columnDef.header) : localization.sortedByColumnAsc.replace("{column}", columnDef.header) : column.getNextSortingOrder() === "desc" ? localization.sortByColumnDesc.replace("{column}", columnDef.header) : localization.sortByColumnAsc.replace("{column}", columnDef.header);
1771
+ const SortActionButton = jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": sortTooltip }, dataVariable("sorted", sorted), rest, { className: clsx.clsx("mrt-table-head-sort-button", classes$c["sort-icon"], rest.className), children: sorted === "desc" ? jsxRuntime.jsx(IconSortDescending2, { size: "100%" }) : sorted === "asc" ? jsxRuntime.jsx(IconSortAscending2, { size: "100%" }) : jsxRuntime.jsx(IconArrowsSort2, { size: "100%" }) }));
1772
+ return jsxRuntime.jsx(core.Tooltip, { label: sortTooltip, openDelay: 1e3, withinPortal: true, children: sorting.length < 2 || sortIndex === -1 ? SortActionButton : jsxRuntime.jsx(core.Indicator, { className: clsx.clsx("mrt-table-head-multi-sort-indicator", classes$c["multi-sort-indicator"]), inline: true, label: sortIndex + 1, offset: 4, children: SortActionButton }) });
1773
+ };
1774
+ var classes$b = { "left": "MRT_ColumnActionMenu-module_left__cfNmY", "right": "MRT_ColumnActionMenu-module_right__-nK56" };
1775
+ const MRT_ColumnActionMenu = (_a) => {
1776
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
1777
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
1778
+ const { getState, options: { columnFilterDisplayMode, enableColumnFilters, enableColumnPinning, enableColumnResizing, enableGrouping, enableHiding, enableSorting, enableSortingRemoval, icons: { IconArrowAutofitContent: IconArrowAutofitContent2, IconBoxMultiple: IconBoxMultiple2, IconClearAll: IconClearAll2, IconColumns: IconColumns2, IconDotsVertical: IconDotsVertical2, IconEyeOff: IconEyeOff2, IconFilter: IconFilter2, IconFilterOff: IconFilterOff2, IconPinned: IconPinned2, IconPinnedOff: IconPinnedOff2, IconSortAscending: IconSortAscending2, IconSortDescending: IconSortDescending2 }, localization, mantineColumnActionsButtonProps, renderColumnActionsMenuItems }, refs: { filterInputRefs }, setColumnOrder, setColumnSizingInfo, setShowColumnFilters, toggleAllColumnsVisible } = table;
1779
+ const { column } = header;
1780
+ const { columnDef } = column;
1781
+ const { columnSizing, columnVisibility } = getState();
1782
+ const arg = { column, table };
1783
+ const actionIconProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineColumnActionsButtonProps, arg)), parseFromValuesOrFunc(columnDef.mantineColumnActionsButtonProps, arg));
1784
+ const handleClearSort = () => {
1785
+ column.clearSorting();
1786
+ };
1787
+ const handleSortAsc = () => {
1788
+ column.toggleSorting(false);
1789
+ };
1790
+ const handleSortDesc = () => {
1791
+ column.toggleSorting(true);
1792
+ };
1793
+ const handleResetColumnSize = () => {
1794
+ setColumnSizingInfo((old) => Object.assign(Object.assign({}, old), { isResizingColumn: false }));
1795
+ column.resetSize();
1796
+ };
1797
+ const handleHideColumn = () => {
1798
+ column.toggleVisibility(false);
1799
+ };
1800
+ const handlePinColumn = (pinDirection) => {
1801
+ column.pin(pinDirection);
1802
+ };
1803
+ const handleGroupByColumn = () => {
1804
+ column.toggleGrouping();
1805
+ setColumnOrder((old) => ["mrt-row-expand", ...old]);
1806
+ };
1807
+ const handleClearFilter = () => {
1808
+ column.setFilterValue("");
1809
+ };
1810
+ const handleFilterByColumn = () => {
1811
+ setShowColumnFilters(true);
1812
+ setTimeout(() => {
1813
+ var _a2;
1814
+ return (_a2 = filterInputRefs.current[`${column.id}-0`]) === null || _a2 === void 0 ? void 0 : _a2.focus();
1815
+ }, 100);
1816
+ };
1817
+ const handleShowAllColumns = () => {
1818
+ toggleAllColumnsVisible(true);
1819
+ };
1820
+ const internalColumnMenuItems = jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [enableSorting && column.getCanSort() && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [enableSortingRemoval !== false && jsxRuntime.jsx(core.Menu.Item, { disabled: !column.getIsSorted(), leftSection: jsxRuntime.jsx(IconClearAll2, {}), onClick: handleClearSort, children: localization.clearSort }), jsxRuntime.jsx(core.Menu.Item, { disabled: column.getIsSorted() === "asc", leftSection: jsxRuntime.jsx(IconSortAscending2, {}), onClick: handleSortAsc, children: (_b = localization.sortByColumnAsc) === null || _b === void 0 ? void 0 : _b.replace("{column}", String(columnDef.header)) }), jsxRuntime.jsx(core.Menu.Item, { disabled: column.getIsSorted() === "desc", leftSection: jsxRuntime.jsx(IconSortDescending2, {}), onClick: handleSortDesc, children: (_c = localization.sortByColumnDesc) === null || _c === void 0 ? void 0 : _c.replace("{column}", String(columnDef.header)) }), (enableColumnFilters || enableGrouping || enableHiding) && jsxRuntime.jsx(core.Menu.Divider, {}, 3)] }), enableColumnFilters && columnFilterDisplayMode !== "popover" && column.getCanFilter() && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(core.Menu.Item, { disabled: !column.getFilterValue(), leftSection: jsxRuntime.jsx(IconFilterOff2, {}), onClick: handleClearFilter, children: localization.clearFilter }), jsxRuntime.jsx(core.Menu.Item, { leftSection: jsxRuntime.jsx(IconFilter2, {}), onClick: handleFilterByColumn, children: (_d = localization.filterByColumn) === null || _d === void 0 ? void 0 : _d.replace("{column}", String(columnDef.header)) }), (enableGrouping || enableHiding) && jsxRuntime.jsx(core.Menu.Divider, {}, 2)] }), enableGrouping && column.getCanGroup() && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(core.Menu.Item, { leftSection: jsxRuntime.jsx(IconBoxMultiple2, {}), onClick: handleGroupByColumn, children: (_e = localization[column.getIsGrouped() ? "ungroupByColumn" : "groupByColumn"]) === null || _e === void 0 ? void 0 : _e.replace("{column}", String(columnDef.header)) }), enableColumnPinning && jsxRuntime.jsx(core.Menu.Divider, {})] }), enableColumnPinning && column.getCanPin() && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(core.Menu.Item, { disabled: column.getIsPinned() === "left" || !column.getCanPin(), leftSection: jsxRuntime.jsx(IconPinned2, { className: classes$b.left }), onClick: () => handlePinColumn("left"), children: localization.pinToLeft }), jsxRuntime.jsx(core.Menu.Item, { disabled: column.getIsPinned() === "right" || !column.getCanPin(), leftSection: jsxRuntime.jsx(IconPinned2, { className: classes$b.right }), onClick: () => handlePinColumn("right"), children: localization.pinToRight }), jsxRuntime.jsx(core.Menu.Item, { disabled: !column.getIsPinned(), leftSection: jsxRuntime.jsx(IconPinnedOff2, {}), onClick: () => handlePinColumn(false), children: localization.unpin }), enableHiding && jsxRuntime.jsx(core.Menu.Divider, {})] }), enableColumnResizing && column.getCanResize() && jsxRuntime.jsx(core.Menu.Item, { disabled: !columnSizing[column.id], leftSection: jsxRuntime.jsx(IconArrowAutofitContent2, {}), onClick: handleResetColumnSize, children: localization.resetColumnSize }, 0), enableHiding && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(core.Menu.Item, { disabled: !column.getCanHide(), leftSection: jsxRuntime.jsx(IconEyeOff2, {}), onClick: handleHideColumn, children: (_f = localization.hideColumn) === null || _f === void 0 ? void 0 : _f.replace("{column}", String(columnDef.header)) }, 0), jsxRuntime.jsx(core.Menu.Item, { disabled: !Object.values(columnVisibility).filter((visible) => !visible).length, leftSection: jsxRuntime.jsx(IconColumns2, {}), onClick: handleShowAllColumns, children: (_g = localization.showAllColumns) === null || _g === void 0 ? void 0 : _g.replace("{column}", String(columnDef.header)) }, 1)] })] });
1821
+ return jsxRuntime.jsxs(core.Menu, Object.assign({ closeOnItemClick: true, position: "bottom-start", withinPortal: true }, rest, { children: [jsxRuntime.jsx(core.Tooltip, { label: (_h = actionIconProps === null || actionIconProps === void 0 ? void 0 : actionIconProps.title) !== null && _h !== void 0 ? _h : localization.columnActions, openDelay: 1e3, withinPortal: true, children: jsxRuntime.jsx(core.Menu.Target, { children: jsxRuntime.jsx(core.ActionIcon, Object.assign({ "aria-label": localization.columnActions, color: "gray", size: "sm", variant: "subtle" }, actionIconProps, { children: jsxRuntime.jsx(IconDotsVertical2, { size: "100%" }) })) }) }), jsxRuntime.jsx(core.Menu.Dropdown, { children: (_l = (_k = (_j = columnDef.renderColumnActionsMenuItems) === null || _j === void 0 ? void 0 : _j.call(columnDef, {
1822
+ column,
1823
+ internalColumnMenuItems,
1824
+ table
1825
+ })) !== null && _k !== void 0 ? _k : renderColumnActionsMenuItems === null || renderColumnActionsMenuItems === void 0 ? void 0 : renderColumnActionsMenuItems({
1826
+ column,
1827
+ internalColumnMenuItems,
1828
+ table
1829
+ })) !== null && _l !== void 0 ? _l : internalColumnMenuItems })] }));
1830
+ };
1831
+ const MRT_TableHeadCell = (_a) => {
1832
+ var _b, _c, _d, _f, _g, _h;
1833
+ var { columnVirtualizer, header, renderedHeaderIndex = 0, table } = _a, rest = __rest(_a, ["columnVirtualizer", "header", "renderedHeaderIndex", "table"]);
1834
+ const direction = core.useDirection();
1835
+ const { getState, options: { columnFilterDisplayMode, columnResizeDirection, columnResizeMode, enableColumnActions, enableColumnDragging, enableColumnOrdering, enableColumnPinning, enableGrouping, enableHeaderActionsHoverReveal, enableMultiSort, layoutMode, mantineTableHeadCellProps }, refs: { tableHeadCellRefs }, setHoveredColumn } = table;
1836
+ const { columnSizingInfo, draggingColumn, grouping, hoveredColumn } = getState();
1837
+ const { column } = header;
1838
+ const { columnDef } = column;
1839
+ const { columnDefType } = columnDef;
1840
+ const arg = { column, table };
1841
+ const tableCellProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableHeadCellProps, arg)), parseFromValuesOrFunc(columnDef.mantineTableHeadCellProps, arg)), rest);
1842
+ const widthStyles = {
1843
+ minWidth: `max(calc(var(--header-${parseCSSVarId(header === null || header === void 0 ? void 0 : header.id)}-size) * 1px), ${(_b = columnDef.minSize) !== null && _b !== void 0 ? _b : 30}px)`,
1844
+ width: `calc(var(--header-${parseCSSVarId(header.id)}-size) * 1px)`
1845
+ };
1846
+ if (layoutMode === "grid") {
1847
+ widthStyles.flex = `${[0, false].includes(columnDef.grow) ? 0 : `var(--header-${parseCSSVarId(header.id)}-size)`} 0 auto`;
1848
+ } else if (layoutMode === "grid-no-grow") {
1849
+ widthStyles.flex = `${+(columnDef.grow || 0)} 0 auto`;
1850
+ }
1851
+ const isColumnPinned = enableColumnPinning && columnDef.columnDefType !== "group" && column.getIsPinned();
1852
+ const isDraggingColumn = (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id;
1853
+ const isHoveredColumn = (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id;
1854
+ const { hovered: isHoveredHeadCell, ref: isHoveredHeadCellRef } = hooks.useHover();
1855
+ const [isOpenedColumnActions, setIsOpenedColumnActions] = React.useState(false);
1856
+ const columnActionsEnabled = (enableColumnActions || columnDef.enableColumnActions) && columnDef.enableColumnActions !== false;
1857
+ const showColumnButtons = !enableHeaderActionsHoverReveal || isOpenedColumnActions || isHoveredHeadCell && !table.getVisibleFlatColumns().find((column2) => column2.getIsResizing());
1858
+ const showDragHandle = enableColumnDragging !== false && columnDef.enableColumnDragging !== false && (enableColumnDragging || enableColumnOrdering && columnDef.enableColumnOrdering !== false || enableGrouping && columnDef.enableGrouping !== false && !grouping.includes(column.id)) && showColumnButtons;
1859
+ const headerPL = React.useMemo(() => {
1860
+ let pl = 0;
1861
+ if (column.getCanSort())
1862
+ pl++;
1863
+ if (showColumnButtons)
1864
+ pl += 1.75;
1865
+ if (showDragHandle)
1866
+ pl += 1.25;
1867
+ return pl;
1868
+ }, [showColumnButtons, showDragHandle]);
1869
+ const handleDragEnter = (_e) => {
1870
+ if (enableGrouping && (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === "drop-zone") {
1871
+ setHoveredColumn(null);
1872
+ }
1873
+ if (enableColumnOrdering && draggingColumn && columnDefType !== "group") {
1874
+ setHoveredColumn(columnDef.enableColumnOrdering !== false ? column : null);
1875
+ }
1876
+ };
1877
+ const headerElement = (columnDef === null || columnDef === void 0 ? void 0 : columnDef.Header) instanceof Function ? (_c = columnDef === null || columnDef === void 0 ? void 0 : columnDef.Header) === null || _c === void 0 ? void 0 : _c.call(columnDef, {
1878
+ column,
1879
+ header,
1880
+ table
1881
+ }) : (_d = columnDef === null || columnDef === void 0 ? void 0 : columnDef.Header) !== null && _d !== void 0 ? _d : columnDef.header;
1882
+ return jsxRuntime.jsxs(core.TableTh, Object.assign({ colSpan: header.colSpan, "data-column-pinned": isColumnPinned || void 0, "data-dragging-column": isDraggingColumn || void 0, "data-first-right-pinned": isColumnPinned === "right" && column.getIsFirstColumn(isColumnPinned) || void 0, "data-hovered-column-target": isHoveredColumn || void 0, "data-index": renderedHeaderIndex, "data-last-left-pinned": isColumnPinned === "left" && column.getIsLastColumn(isColumnPinned) || void 0, "data-resizing": columnResizeMode === "onChange" && (columnSizingInfo === null || columnSizingInfo === void 0 ? void 0 : columnSizingInfo.isResizingColumn) === column.id && columnResizeDirection || void 0 }, tableCellProps, { __vars: {
1883
+ "--mrt-table-cell-left": isColumnPinned === "left" ? `${column.getStart(isColumnPinned)}` : void 0,
1884
+ "--mrt-table-cell-right": isColumnPinned === "right" ? `${column.getAfter(isColumnPinned)}` : void 0
1885
+ }, align: columnDefType === "group" ? "center" : direction.dir === "rtl" ? "right" : "left", className: clsx.clsx(classes$l.root, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$l["root-grid"], enableMultiSort && column.getCanSort() && classes$l["root-no-select"], columnVirtualizer && classes$l["root-virtualized"], tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.className), onDragEnter: handleDragEnter, ref: (node) => {
1886
+ var _a2;
1887
+ if (node) {
1888
+ tableHeadCellRefs.current[column.id] = node;
1889
+ isHoveredHeadCellRef.current = node;
1890
+ if (columnDefType !== "group") {
1891
+ (_a2 = columnVirtualizer === null || columnVirtualizer === void 0 ? void 0 : columnVirtualizer.measureElement) === null || _a2 === void 0 ? void 0 : _a2.call(columnVirtualizer, node);
1892
+ }
1893
+ }
1894
+ }, style: (theme) => Object.assign(Object.assign({}, widthStyles), parseFromValuesOrFunc(tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.style, theme)), children: [header.isPlaceholder ? null : (_f = tableCellProps.children) !== null && _f !== void 0 ? _f : jsxRuntime.jsxs(core.Flex, { className: clsx.clsx("mrt-table-head-cell-content", classes$l.content, (columnDefType === "group" || (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === "center") && classes$l["content-center"], (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === "right" && classes$l["content-right"], column.getCanResize() && classes$l["content-spaced"]), children: [jsxRuntime.jsxs(core.Flex, { __vars: {
1895
+ "--mrt-table-head-cell-labels-padding-left": `${headerPL}`
1896
+ }, className: clsx.clsx("mrt-table-head-cell-labels", classes$l.labels, column.getCanSort() && columnDefType !== "group" && classes$l["labels-sortable"], (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === "right" ? classes$l["labels-right"] : (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === "center" && classes$l["labels-center"], columnDefType === "data" && classes$l["labels-data"]), onClick: column.getToggleSortingHandler(), children: [jsxRuntime.jsx(core.Flex, { className: clsx.clsx("mrt-table-head-cell-content-wrapper", classes$l["content-wrapper"], columnDefType === "data" && classes$l["content-wrapper-hidden-overflow"], ((_h = (_g = columnDef.header) === null || _g === void 0 ? void 0 : _g.length) !== null && _h !== void 0 ? _h : 0) < 20 && classes$l["content-wrapper-nowrap"]), children: headerElement }), column.getCanFilter() && (column.getIsFiltered() || showColumnButtons) && jsxRuntime.jsx(MRT_TableHeadCellFilterLabel, { header, table }), column.getCanSort() && (column.getIsSorted() || showColumnButtons) && jsxRuntime.jsx(MRT_TableHeadCellSortLabel, { header, table })] }), columnDefType !== "group" && jsxRuntime.jsxs(core.Flex, { className: clsx.clsx("mrt-table-head-cell-content-actions", classes$l["content-actions"]), children: [showDragHandle && jsxRuntime.jsx(MRT_TableHeadCellGrabHandle, { column, table, tableHeadCellRef: {
1897
+ current: tableHeadCellRefs.current[column.id]
1898
+ } }), columnActionsEnabled && showColumnButtons && jsxRuntime.jsx(MRT_ColumnActionMenu, { header, onChange: setIsOpenedColumnActions, opened: isOpenedColumnActions, table })] }), column.getCanResize() && jsxRuntime.jsx(MRT_TableHeadCellResizeHandle, { header, table })] }), columnFilterDisplayMode === "subheader" && column.getCanFilter() && jsxRuntime.jsx(MRT_TableHeadCellFilterContainer, { header, table })] }));
1899
+ };
1900
+ const MRT_TableHeadRow = (_a) => {
1901
+ var { columnVirtualizer, headerGroup, table } = _a, rest = __rest(_a, ["columnVirtualizer", "headerGroup", "table"]);
1902
+ const { getState, options: { enableStickyHeader, layoutMode, mantineTableHeadRowProps } } = table;
1903
+ const { isFullScreen } = getState();
1904
+ const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } = columnVirtualizer !== null && columnVirtualizer !== void 0 ? columnVirtualizer : {};
1905
+ const tableRowProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableHeadRowProps, {
1906
+ headerGroup,
1907
+ table
1908
+ })), rest);
1909
+ return jsxRuntime.jsxs(core.TableTr, Object.assign({}, tableRowProps, { className: clsx.clsx(classes$m.root, (enableStickyHeader || isFullScreen) && classes$m.sticky, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$m["layout-mode-grid"], tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.className), children: [virtualPaddingLeft ? jsxRuntime.jsx(core.Box, { component: "th", display: "flex", w: virtualPaddingLeft }) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : headerGroup.headers).map((headerOrVirtualHeader, renderedHeaderIndex) => {
1910
+ let header = headerOrVirtualHeader;
1911
+ if (columnVirtualizer) {
1912
+ renderedHeaderIndex = headerOrVirtualHeader.index;
1913
+ header = headerGroup.headers[renderedHeaderIndex];
1914
+ }
1915
+ return jsxRuntime.jsx(MRT_TableHeadCell, { columnVirtualizer, header, renderedHeaderIndex, table }, header.id);
1916
+ }), virtualPaddingRight ? jsxRuntime.jsx(core.Box, { component: "th", display: "flex", w: virtualPaddingRight }) : null] }));
1917
+ };
1918
+ var classes$a = { "alert": "MRT_ToolbarAlertBanner-module_alert__PAhUK", "alert-stacked": "MRT_ToolbarAlertBanner-module_alert-stacked__HR7Nq", "alert-bottom": "MRT_ToolbarAlertBanner-module_alert-bottom__u9L-S", "alert-badge": "MRT_ToolbarAlertBanner-module_alert-badge__GwDmX", "toolbar-alert": "MRT_ToolbarAlertBanner-module_toolbar-alert__3sJGU", "head-overlay": "MRT_ToolbarAlertBanner-module_head-overlay__Hw7jK" };
1919
+ const MRT_SelectCheckbox = (_a) => {
1920
+ var _b;
1921
+ var { renderedRowIndex = 0, row, table } = _a, rest = __rest(_a, ["renderedRowIndex", "row", "table"]);
1922
+ const { getState, options: { enableMultiRowSelection, localization, mantineSelectAllCheckboxProps, mantineSelectCheckboxProps, selectAllMode, selectDisplayMode } } = table;
1923
+ const { density, isLoading } = getState();
1924
+ const selectAll = !row;
1925
+ const allRowsSelected = selectAll ? selectAllMode === "page" ? table.getIsAllPageRowsSelected() : table.getIsAllRowsSelected() : void 0;
1926
+ const isChecked = selectAll ? allRowsSelected : getIsRowSelected({ row, table });
1927
+ const checkboxProps = Object.assign(Object.assign({}, selectAll ? parseFromValuesOrFunc(mantineSelectAllCheckboxProps, { table }) : parseFromValuesOrFunc(mantineSelectCheckboxProps, {
1928
+ row,
1929
+ table
1930
+ })), rest);
1931
+ const onSelectionChange = row ? getMRT_RowSelectionHandler({
1932
+ renderedRowIndex,
1933
+ row,
1934
+ table
1935
+ }) : void 0;
1936
+ const onSelectAllChange = getMRT_SelectAllHandler({ table });
1937
+ const commonProps = Object.assign(Object.assign({ "aria-label": selectAll ? localization.toggleSelectAll : localization.toggleSelectRow, checked: isChecked, disabled: isLoading || row && !row.getCanSelect() || (row === null || row === void 0 ? void 0 : row.id) === "mrt-row-create", onChange: (event) => {
1938
+ event.stopPropagation();
1939
+ if (selectAll) {
1940
+ onSelectAllChange(event);
1941
+ } else {
1942
+ onSelectionChange(event);
1943
+ }
1944
+ }, size: density === "xs" ? "sm" : "md" }, checkboxProps), { onClick: (e) => {
1945
+ var _a2;
1946
+ e.stopPropagation();
1947
+ (_a2 = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(checkboxProps, e);
1948
+ }, title: void 0 });
1949
+ return jsxRuntime.jsx(core.Tooltip, { label: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : selectAll ? localization.toggleSelectAll : localization.toggleSelectRow, openDelay: 1e3, withinPortal: true, children: jsxRuntime.jsx("span", { children: selectDisplayMode === "switch" ? jsxRuntime.jsx(core.Switch, Object.assign({}, commonProps)) : selectDisplayMode === "radio" || enableMultiRowSelection === false ? jsxRuntime.jsx(core.Radio, Object.assign({}, commonProps)) : jsxRuntime.jsx(core.Checkbox, Object.assign({ indeterminate: !isChecked && selectAll ? table.getIsSomeRowsSelected() : (row === null || row === void 0 ? void 0 : row.getIsSomeSelected()) && row.getCanSelectSubRows() }, commonProps)) }) });
1950
+ };
1951
+ const MRT_ToolbarAlertBanner = (_a) => {
1952
+ var _b, _c, _d;
1953
+ var { stackAlertBanner, table } = _a, rest = __rest(_a, ["stackAlertBanner", "table"]);
1954
+ const { getFilteredSelectedRowModel, getPrePaginationRowModel, getState, options: { enableRowSelection, enableSelectAll, icons: { IconX: IconX2 }, localization, mantineToolbarAlertBannerBadgeProps, mantineToolbarAlertBannerProps, manualPagination, positionToolbarAlertBanner, renderToolbarAlertBannerContent, rowCount } } = table;
1955
+ const { density, grouping, rowSelection, showAlertBanner } = getState();
1956
+ const alertProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineToolbarAlertBannerProps, {
1957
+ table
1958
+ })), rest);
1959
+ const badgeProps = parseFromValuesOrFunc(mantineToolbarAlertBannerBadgeProps, { table });
1960
+ const totalRowCount = rowCount !== null && rowCount !== void 0 ? rowCount : getPrePaginationRowModel().flatRows.length;
1961
+ const selectedRowCount = React.useMemo(() => manualPagination ? Object.values(rowSelection).filter(Boolean).length : getFilteredSelectedRowModel().rows.length, [rowSelection, totalRowCount, manualPagination]);
1962
+ const selectedAlert = selectedRowCount ? jsxRuntime.jsxs(core.Flex, { align: "center", gap: "sm", children: [(_c = (_b = localization.selectedCountOfRowCountRowsSelected) === null || _b === void 0 ? void 0 : _b.replace("{selectedCount}", selectedRowCount.toString())) === null || _c === void 0 ? void 0 : _c.replace("{rowCount}", totalRowCount.toString()), jsxRuntime.jsx(core.Button, { onClick: (event) => getMRT_SelectAllHandler({ table })(event, false, true), size: "compact-xs", variant: "subtle", children: localization.clearSelection })] }) : null;
1963
+ const groupedAlert = grouping.length > 0 ? jsxRuntime.jsxs(core.Flex, { children: [localization.groupedBy, " ", grouping.map((columnId, index2) => jsxRuntime.jsxs(React.Fragment, { children: [index2 > 0 ? localization.thenBy : "", jsxRuntime.jsxs(core.Badge, Object.assign({ className: classes$a["alert-badge"], rightSection: jsxRuntime.jsx(core.ActionIcon, { color: "white", onClick: () => table.getColumn(columnId).toggleGrouping(), size: "xs", variant: "subtle", children: jsxRuntime.jsx(IconX2, { style: { transform: "scale(0.8)" } }) }), variant: "filled" }, badgeProps, { children: [table.getColumn(columnId).columnDef.header, " "] }))] }, `${index2}-${columnId}`))] }) : null;
1964
+ return jsxRuntime.jsx(core.Collapse, { in: showAlertBanner || !!selectedAlert || !!groupedAlert, transitionDuration: stackAlertBanner ? 200 : 0, children: jsxRuntime.jsx(core.Alert, Object.assign({ color: "blue", icon: false }, alertProps, { className: clsx.clsx(classes$a.alert, stackAlertBanner && !positionToolbarAlertBanner && classes$a["alert-stacked"], !stackAlertBanner && positionToolbarAlertBanner === "bottom" && classes$a["alert-bottom"], alertProps === null || alertProps === void 0 ? void 0 : alertProps.className), children: (_d = renderToolbarAlertBannerContent === null || renderToolbarAlertBannerContent === void 0 ? void 0 : renderToolbarAlertBannerContent({
1965
+ groupedAlert,
1966
+ selectedAlert,
1967
+ table
1968
+ })) !== null && _d !== void 0 ? _d : jsxRuntime.jsxs(core.Flex, { className: clsx.clsx(classes$a["toolbar-alert"], positionToolbarAlertBanner === "head-overlay" && classes$a["head-overlay"], density), children: [enableRowSelection && enableSelectAll && positionToolbarAlertBanner === "head-overlay" && jsxRuntime.jsx(MRT_SelectCheckbox, { table }), jsxRuntime.jsxs(core.Stack, { children: [alertProps === null || alertProps === void 0 ? void 0 : alertProps.children, selectedAlert, groupedAlert] })] }) })) });
1969
+ };
1970
+ const MRT_TableHead = (_a) => {
1971
+ var { columnVirtualizer, table } = _a, rest = __rest(_a, ["columnVirtualizer", "table"]);
1972
+ const { getHeaderGroups, getSelectedRowModel, getState, options: { enableStickyHeader, layoutMode, mantineTableHeadProps, positionToolbarAlertBanner }, refs: { tableHeadRef } } = table;
1973
+ const { isFullScreen, showAlertBanner } = getState();
1974
+ const tableHeadProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableHeadProps, {
1975
+ table
1976
+ })), rest);
1977
+ const stickyHeader = enableStickyHeader || isFullScreen;
1978
+ return jsxRuntime.jsx(core.TableThead, Object.assign({}, tableHeadProps, { className: clsx.clsx(classes$n.root, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) ? classes$n["root-grid"] : classes$n["root-table-row-group"], stickyHeader && classes$n["root-sticky"], tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.className), pos: stickyHeader && (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) ? "sticky" : "relative", ref: (ref) => {
1979
+ tableHeadRef.current = ref;
1980
+ if (tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.ref) {
1981
+ tableHeadProps.ref.current = ref;
1982
+ }
1983
+ }, children: positionToolbarAlertBanner === "head-overlay" && (showAlertBanner || getSelectedRowModel().rows.length > 0) ? jsxRuntime.jsx(core.TableTr, { className: clsx.clsx(classes$n["banner-tr"], (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$n.grid), children: jsxRuntime.jsx(core.TableTh, { className: clsx.clsx(classes$n["banner-th"], (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$n.grid), colSpan: table.getVisibleLeafColumns().length, children: jsxRuntime.jsx(MRT_ToolbarAlertBanner, { table }) }) }) : getHeaderGroups().map((headerGroup) => jsxRuntime.jsx(MRT_TableHeadRow, { columnVirtualizer, headerGroup, table }, headerGroup.id)) }));
1984
+ };
1985
+ var classes$9 = { "root": "MRT_GlobalFilterTextInput-module_root__Xmcpv", "collapse": "MRT_GlobalFilterTextInput-module_collapse__v311d" };
1986
+ const MRT_GlobalFilterTextInput = (_a) => {
1987
+ var { table } = _a, rest = __rest(_a, ["table"]);
1988
+ const { getState, options: { enableGlobalFilterModes, icons: { IconSearch: IconSearch2, IconX: IconX2 }, localization, mantineSearchTextInputProps, manualFiltering, positionGlobalFilter }, refs: { searchInputRef }, setGlobalFilter } = table;
1989
+ const { globalFilter, showGlobalFilter } = getState();
1990
+ const textFieldProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineSearchTextInputProps, {
1991
+ table
1992
+ })), rest);
1993
+ const isMounted = React.useRef(false);
1994
+ const [searchValue, setSearchValue] = React.useState(globalFilter !== null && globalFilter !== void 0 ? globalFilter : "");
1995
+ const [debouncedSearchValue] = hooks.useDebouncedValue(searchValue, manualFiltering ? 500 : 250);
1996
+ React.useEffect(() => {
1997
+ setGlobalFilter(debouncedSearchValue || void 0);
1998
+ }, [debouncedSearchValue]);
1999
+ const handleClear = () => {
2000
+ setSearchValue("");
2001
+ setGlobalFilter(void 0);
2002
+ };
2003
+ React.useEffect(() => {
2004
+ if (isMounted.current) {
2005
+ if (globalFilter === void 0) {
2006
+ handleClear();
2007
+ } else {
2008
+ setSearchValue(globalFilter);
2009
+ }
2010
+ }
2011
+ isMounted.current = true;
2012
+ }, [globalFilter]);
2013
+ return jsxRuntime.jsxs(core.Collapse, { className: classes$9.collapse, in: showGlobalFilter, children: [enableGlobalFilterModes && jsxRuntime.jsxs(core.Menu, { withinPortal: true, children: [jsxRuntime.jsx(core.Menu.Target, { children: jsxRuntime.jsx(core.ActionIcon, { "aria-label": localization.changeSearchMode, color: "gray", size: "sm", variant: "transparent", children: jsxRuntime.jsx(IconSearch2, {}) }) }), jsxRuntime.jsx(MRT_FilterOptionMenu, { onSelect: handleClear, table })] }), jsxRuntime.jsx(core.TextInput, Object.assign({ leftSection: !enableGlobalFilterModes && jsxRuntime.jsx(IconSearch2, {}), mt: 0, mx: positionGlobalFilter !== "left" ? "mx" : void 0, onChange: (event) => setSearchValue(event.target.value), placeholder: localization.search, rightSection: searchValue ? jsxRuntime.jsx(core.ActionIcon, { "aria-label": localization.clearSearch, color: "gray", disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "sm", variant: "transparent", children: jsxRuntime.jsx(core.Tooltip, { label: localization.clearSearch, withinPortal: true, children: jsxRuntime.jsx(IconX2, {}) }) }) : null, value: searchValue !== null && searchValue !== void 0 ? searchValue : "", variant: "filled" }, textFieldProps, { className: clsx.clsx("mrt-global-filter-text-input", classes$9.root, textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.className), ref: (node) => {
2014
+ if (node) {
2015
+ searchInputRef.current = node;
2016
+ if (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.ref) {
2017
+ textFieldProps.ref = node;
2018
+ }
2019
+ }
2020
+ } }))] });
2021
+ };
2022
+ const createRow = (table, originalRow, rowIndex = -1, depth = 0, subRows, parentId) => index$1.createRow(table, "mrt-row-create", Object.assign({}, ...getAllLeafColumnDefs(table.options.columns).map((col) => ({
2023
+ [getColumnId(col)]: ""
2024
+ }))), rowIndex, depth, subRows, parentId);
2025
+ const getMRT_RowActionsColumnDef = (tableOptions) => {
2026
+ return Object.assign({ Cell: ({ cell, row, table }) => jsxRuntime.jsx(MRT_ToggleRowActionMenuButton, { cell, row, table }) }, defaultDisplayColumnProps({
2027
+ header: "actions",
2028
+ id: "mrt-row-actions",
2029
+ size: 70,
2030
+ tableOptions
2031
+ }));
2032
+ };
2033
+ const getMRT_RowDragColumnDef = (tableOptions) => {
2034
+ return Object.assign({ Cell: ({ row, rowRef, table }) => jsxRuntime.jsx(MRT_TableBodyRowGrabHandle, { row, rowRef, table }), grow: false }, defaultDisplayColumnProps({
2035
+ header: "move",
2036
+ id: "mrt-row-drag",
2037
+ size: 60,
2038
+ tableOptions
2039
+ }));
2040
+ };
2041
+ const getMRT_RowExpandColumnDef = (tableOptions) => {
2042
+ var _a;
2043
+ const { defaultColumn, enableExpandAll, groupedColumnMode, positionExpandColumn, renderDetailPanel, state: { grouping } } = tableOptions;
2044
+ const alignProps = positionExpandColumn === "last" ? {
2045
+ align: "right"
2046
+ } : void 0;
2047
+ return Object.assign({ Cell: ({ cell, column, row, table }) => {
2048
+ var _a2, _b, _c;
2049
+ const expandButtonProps = { row, table };
2050
+ const subRowsLength = (_a2 = row.subRows) === null || _a2 === void 0 ? void 0 : _a2.length;
2051
+ if (tableOptions.groupedColumnMode === "remove" && row.groupingColumnId) {
2052
+ return jsxRuntime.jsxs(core.Flex, { align: "center", gap: "0.25rem", children: [jsxRuntime.jsx(MRT_ExpandButton, Object.assign({}, expandButtonProps)), jsxRuntime.jsx(core.Tooltip, { label: table.getColumn(row.groupingColumnId).columnDef.header, openDelay: 1e3, position: "right", children: jsxRuntime.jsx("span", { children: row.groupingValue }) }), !!subRowsLength && jsxRuntime.jsxs("span", { children: ["(", subRowsLength, ")"] })] });
2053
+ } else {
2054
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MRT_ExpandButton, Object.assign({}, expandButtonProps)), (_c = (_b = column.columnDef).GroupedCell) === null || _c === void 0 ? void 0 : _c.call(_b, { cell, column, row, table })] });
2055
+ }
2056
+ }, Header: enableExpandAll ? ({ table }) => {
2057
+ var _a2;
2058
+ return jsxRuntime.jsxs(core.Flex, { align: "center", children: [jsxRuntime.jsx(MRT_ExpandAllButton, { table }), groupedColumnMode === "remove" && ((_a2 = grouping === null || grouping === void 0 ? void 0 : grouping.map((groupedColumnId) => table.getColumn(groupedColumnId).columnDef.header)) === null || _a2 === void 0 ? void 0 : _a2.join(", "))] });
2059
+ } : void 0, mantineTableBodyCellProps: alignProps, mantineTableHeadCellProps: alignProps }, defaultDisplayColumnProps({
2060
+ header: "expand",
2061
+ id: "mrt-row-expand",
2062
+ size: groupedColumnMode === "remove" ? (_a = defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.size) !== null && _a !== void 0 ? _a : 180 : renderDetailPanel ? enableExpandAll ? 60 : 70 : 100,
2063
+ tableOptions
2064
+ }));
2065
+ };
2066
+ const getMRT_RowNumbersColumnDef = (tableOptions) => {
2067
+ const { localization, rowNumberDisplayMode } = tableOptions;
2068
+ const { pagination: { pageIndex, pageSize } } = tableOptions.state;
2069
+ return Object.assign({ Cell: ({ renderedRowIndex = 0, row }) => {
2070
+ var _a;
2071
+ return ((_a = rowNumberDisplayMode === "static" ? renderedRowIndex + pageSize * pageIndex : row.index) !== null && _a !== void 0 ? _a : 0) + 1;
2072
+ }, grow: false, Header: () => localization.rowNumber }, defaultDisplayColumnProps({
2073
+ header: "rowNumbers",
2074
+ id: "mrt-row-numbers",
2075
+ size: 50,
2076
+ tableOptions
2077
+ }));
2078
+ };
2079
+ const getMRT_RowPinningColumnDef = (tableOptions) => {
2080
+ return Object.assign({ Cell: ({ row, table }) => jsxRuntime.jsx(MRT_TableBodyRowPinButton, { row, table }), grow: false }, defaultDisplayColumnProps({
2081
+ header: "pin",
2082
+ id: "mrt-row-pin",
2083
+ size: 60,
2084
+ tableOptions
2085
+ }));
2086
+ };
2087
+ const getMRT_RowSelectColumnDef = (tableOptions) => {
2088
+ const { enableMultiRowSelection, enableSelectAll } = tableOptions;
2089
+ return Object.assign({ Cell: ({ renderedRowIndex, row, table }) => jsxRuntime.jsx(MRT_SelectCheckbox, { renderedRowIndex, row, table }), grow: false, Header: enableSelectAll && enableMultiRowSelection ? ({ table }) => jsxRuntime.jsx(MRT_SelectCheckbox, { table }) : void 0 }, defaultDisplayColumnProps({
2090
+ header: "select",
2091
+ id: "mrt-row-select",
2092
+ size: enableSelectAll ? 60 : 70,
2093
+ tableOptions
2094
+ }));
2095
+ };
2096
+ const MRT_AggregationFns = Object.assign({}, index$1.aggregationFns);
2097
+ const MRT_Default_Icons = {
2098
+ IconArrowAutofitContent,
2099
+ IconArrowsSort,
2100
+ IconBaselineDensityLarge,
2101
+ IconBaselineDensityMedium,
2102
+ IconBaselineDensitySmall,
2103
+ IconBoxMultiple,
2104
+ IconChevronDown,
2105
+ IconChevronLeft,
2106
+ IconChevronLeftPipe,
2107
+ IconChevronRight,
2108
+ IconChevronRightPipe,
2109
+ IconChevronsDown,
2110
+ IconCircleX,
2111
+ IconClearAll,
2112
+ IconColumns,
2113
+ IconDeviceFloppy,
2114
+ IconDots,
2115
+ IconDotsVertical,
2116
+ IconEdit,
2117
+ IconEyeOff,
2118
+ IconFilter,
2119
+ IconFilterCog,
2120
+ IconFilterOff,
2121
+ IconGripHorizontal,
2122
+ IconMaximize,
2123
+ IconMinimize,
2124
+ IconPinned,
2125
+ IconPinnedOff,
2126
+ IconSearch,
2127
+ IconSearchOff,
2128
+ IconSortAscending,
2129
+ IconSortDescending,
2130
+ IconX
2131
+ };
2132
+ const MRT_Localization_EN = {
2133
+ actions: "Actions",
2134
+ and: "and",
2135
+ cancel: "Cancel",
2136
+ changeFilterMode: "Change filter mode",
2137
+ changeSearchMode: "Change search mode",
2138
+ clearFilter: "Clear filter",
2139
+ clearSearch: "Clear search",
2140
+ clearSelection: "Clear selection",
2141
+ clearSort: "Clear sort",
2142
+ clickToCopy: "Click to copy",
2143
+ copy: "Copy",
2144
+ collapse: "Collapse",
2145
+ collapseAll: "Collapse all",
2146
+ columnActions: "Column Actions",
2147
+ copiedToClipboard: "Copied to clipboard",
2148
+ dropToGroupBy: "Drop to group by {column}",
2149
+ edit: "Edit",
2150
+ expand: "Expand",
2151
+ expandAll: "Expand all",
2152
+ filterArrIncludes: "Includes",
2153
+ filterArrIncludesAll: "Includes all",
2154
+ filterArrIncludesSome: "Includes",
2155
+ filterBetween: "Between",
2156
+ filterBetweenInclusive: "Between Inclusive",
2157
+ filterByColumn: "Filter by {column}",
2158
+ filterContains: "Contains",
2159
+ filterEmpty: "Empty",
2160
+ filterEndsWith: "Ends With",
2161
+ filterEquals: "Equals",
2162
+ filterEqualsString: "Equals",
2163
+ filterFuzzy: "Fuzzy",
2164
+ filterGreaterThan: "Greater Than",
2165
+ filterGreaterThanOrEqualTo: "Greater Than Or Equal To",
2166
+ filterInNumberRange: "Between",
2167
+ filterIncludesString: "Contains",
2168
+ filterIncludesStringSensitive: "Contains",
2169
+ filterLessThan: "Less Than",
2170
+ filterLessThanOrEqualTo: "Less Than Or Equal To",
2171
+ filterMode: "Filter Mode: {filterType}",
2172
+ filterNotEmpty: "Not Empty",
2173
+ filterNotEquals: "Not Equals",
2174
+ filterStartsWith: "Starts With",
2175
+ filterWeakEquals: "Equals",
2176
+ filteringByColumn: "Filtering by {column} - {filterType} {filterValue}",
2177
+ goToFirstPage: "Go to first page",
2178
+ goToLastPage: "Go to last page",
2179
+ goToNextPage: "Go to next page",
2180
+ goToPreviousPage: "Go to previous page",
2181
+ grab: "Grab",
2182
+ groupByColumn: "Group by {column}",
2183
+ groupedBy: "Grouped by ",
2184
+ hideAll: "Hide all",
2185
+ hideColumn: "Hide {column} column",
2186
+ max: "Max",
2187
+ min: "Min",
2188
+ move: "Move",
2189
+ noRecordsToDisplay: "No records to display",
2190
+ noResultsFound: "No results found",
2191
+ of: "of",
2192
+ or: "or",
2193
+ pin: "Pin",
2194
+ pinToLeft: "Pin to left",
2195
+ pinToRight: "Pin to right",
2196
+ resetColumnSize: "Reset column size",
2197
+ resetOrder: "Reset order",
2198
+ rowActions: "Row Actions",
2199
+ rowNumber: "#",
2200
+ rowNumbers: "Row Numbers",
2201
+ rowsPerPage: "Rows per page",
2202
+ save: "Save",
2203
+ search: "Search",
2204
+ selectedCountOfRowCountRowsSelected: "{selectedCount} of {rowCount} row(s) selected",
2205
+ select: "Select",
2206
+ showAll: "Show all",
2207
+ showAllColumns: "Show all columns",
2208
+ showHideColumns: "Show/Hide columns",
2209
+ showHideFilters: "Show/Hide filters",
2210
+ showHideSearch: "Show/Hide search",
2211
+ sortByColumnAsc: "Sort by {column} ascending",
2212
+ sortByColumnDesc: "Sort by {column} descending",
2213
+ sortedByColumnAsc: "Sorted by {column} ascending",
2214
+ sortedByColumnDesc: "Sorted by {column} descending",
2215
+ thenBy: ", then by ",
2216
+ toggleDensity: "Toggle density",
2217
+ toggleFullScreen: "Toggle full screen",
2218
+ toggleSelectAll: "Toggle select all",
2219
+ toggleSelectRow: "Toggle select row",
2220
+ toggleVisibility: "Toggle visibility",
2221
+ ungroupByColumn: "Ungroup by {column}",
2222
+ unpin: "Unpin",
2223
+ unpinAll: "Unpin all"
2224
+ };
2225
+ const MRT_DefaultColumn = {
2226
+ filterVariant: "text",
2227
+ maxSize: 1e3,
2228
+ minSize: 40,
2229
+ size: 180
2230
+ };
2231
+ const MRT_DefaultDisplayColumn = {
2232
+ columnDefType: "display",
2233
+ enableClickToCopy: false,
2234
+ enableColumnActions: false,
2235
+ enableColumnDragging: false,
2236
+ enableColumnFilter: false,
2237
+ enableColumnOrdering: false,
2238
+ enableEditing: false,
2239
+ enableGlobalFilter: false,
2240
+ enableGrouping: false,
2241
+ enableHiding: false,
2242
+ enableResizing: false,
2243
+ enableSorting: false
2244
+ };
2245
+ const useMRT_TableOptions = (_a) => {
2246
+ var _b;
2247
+ var { aggregationFns, autoResetExpanded = false, columnFilterDisplayMode = "subheader", columnResizeDirection, columnResizeMode = "onChange", createDisplayMode = "modal", defaultColumn, defaultDisplayColumn, editDisplayMode = "modal", enableBatchRowSelection = true, enableBottomToolbar = true, enableColumnActions = true, enableColumnFilters = true, enableColumnOrdering = false, enableColumnPinning = false, enableColumnResizing = false, enableColumnVirtualization, enableDensityToggle = true, enableExpandAll = true, enableExpanding, enableFacetedValues = false, enableFilterMatchHighlighting = true, enableFilters = true, enableFullScreenToggle = true, enableGlobalFilter = true, enableGlobalFilterRankedResults = true, enableGrouping = false, enableHeaderActionsHoverReveal = false, enableHiding = true, enableMultiRowSelection = true, enableMultiSort = true, enablePagination = true, enableRowPinning = false, enableRowSelection = false, enableRowVirtualization, enableSelectAll = true, enableSorting = true, enableStickyHeader = false, enableTableFooter = true, enableTableHead = true, enableToolbarInternalActions = true, enableTopToolbar = true, filterFns, icons, layoutMode, localization, manualFiltering, manualGrouping, manualPagination, manualSorting, paginationDisplayMode = "default", positionActionsColumn = "first", positionCreatingRow = "top", positionExpandColumn = "first", positionGlobalFilter = "right", positionPagination = "bottom", positionToolbarAlertBanner = "top", positionToolbarDropZone = "top", rowNumberDisplayMode = "static", rowPinningDisplayMode = "sticky", selectAllMode = "page", sortingFns } = _a, rest = __rest(_a, ["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", "enableHeaderActionsHoverReveal", "enableHiding", "enableMultiRowSelection", "enableMultiSort", "enablePagination", "enableRowPinning", "enableRowSelection", "enableRowVirtualization", "enableSelectAll", "enableSorting", "enableStickyHeader", "enableTableFooter", "enableTableHead", "enableToolbarInternalActions", "enableTopToolbar", "filterFns", "icons", "layoutMode", "localization", "manualFiltering", "manualGrouping", "manualPagination", "manualSorting", "paginationDisplayMode", "positionActionsColumn", "positionCreatingRow", "positionExpandColumn", "positionGlobalFilter", "positionPagination", "positionToolbarAlertBanner", "positionToolbarDropZone", "rowNumberDisplayMode", "rowPinningDisplayMode", "selectAllMode", "sortingFns"]);
2248
+ const direction = core.useDirection();
2249
+ icons = React.useMemo(() => Object.assign(Object.assign({}, MRT_Default_Icons), icons), [icons]);
2250
+ localization = React.useMemo(() => Object.assign(Object.assign({}, MRT_Localization_EN), localization), [localization]);
2251
+ aggregationFns = React.useMemo(() => Object.assign(Object.assign({}, MRT_AggregationFns), aggregationFns), []);
2252
+ filterFns = React.useMemo(() => Object.assign(Object.assign({}, MRT_FilterFns), filterFns), []);
2253
+ sortingFns = React.useMemo(() => Object.assign(Object.assign({}, MRT_SortingFns), sortingFns), []);
2254
+ defaultColumn = React.useMemo(() => Object.assign(Object.assign({}, MRT_DefaultColumn), defaultColumn), [defaultColumn]);
2255
+ defaultDisplayColumn = React.useMemo(() => Object.assign(Object.assign({}, MRT_DefaultDisplayColumn), defaultDisplayColumn), [defaultDisplayColumn]);
2256
+ [enableColumnVirtualization, enableRowVirtualization] = React.useMemo(() => [enableColumnVirtualization, enableRowVirtualization], []);
2257
+ if (!columnResizeDirection) {
2258
+ columnResizeDirection = direction.dir || "ltr";
2259
+ }
2260
+ layoutMode = layoutMode || (enableColumnResizing ? "grid-no-grow" : "semantic");
2261
+ if (layoutMode === "semantic" && (enableRowVirtualization || enableColumnVirtualization)) {
2262
+ layoutMode = "grid";
2263
+ }
2264
+ if (enableRowVirtualization) {
2265
+ enableStickyHeader = true;
2266
+ }
2267
+ if (enablePagination === false && manualPagination === void 0) {
2268
+ manualPagination = true;
2269
+ }
2270
+ if (!((_b = rest.data) === null || _b === void 0 ? void 0 : _b.length)) {
2271
+ manualFiltering = true;
2272
+ manualGrouping = true;
2273
+ manualPagination = true;
2274
+ manualSorting = true;
2275
+ }
2276
+ return Object.assign({
2277
+ aggregationFns,
2278
+ autoResetExpanded,
2279
+ columnFilterDisplayMode,
2280
+ columnResizeDirection,
2281
+ columnResizeMode,
2282
+ createDisplayMode,
2283
+ defaultColumn,
2284
+ defaultDisplayColumn,
2285
+ editDisplayMode,
2286
+ enableBatchRowSelection,
2287
+ enableBottomToolbar,
2288
+ enableColumnActions,
2289
+ enableColumnFilters,
2290
+ enableColumnOrdering,
2291
+ enableColumnPinning,
2292
+ enableColumnResizing,
2293
+ enableColumnVirtualization,
2294
+ enableDensityToggle,
2295
+ enableExpandAll,
2296
+ enableExpanding,
2297
+ enableFacetedValues,
2298
+ enableFilterMatchHighlighting,
2299
+ enableFilters,
2300
+ enableFullScreenToggle,
2301
+ enableGlobalFilter,
2302
+ enableGlobalFilterRankedResults,
2303
+ enableGrouping,
2304
+ enableHeaderActionsHoverReveal,
2305
+ enableHiding,
2306
+ enableMultiRowSelection,
2307
+ enableMultiSort,
2308
+ enablePagination,
2309
+ enableRowPinning,
2310
+ enableRowSelection,
2311
+ enableRowVirtualization,
2312
+ enableSelectAll,
2313
+ enableSorting,
2314
+ enableStickyHeader,
2315
+ enableTableFooter,
2316
+ enableTableHead,
2317
+ enableToolbarInternalActions,
2318
+ enableTopToolbar,
2319
+ filterFns,
2320
+ getCoreRowModel: index$1.getCoreRowModel(),
2321
+ getExpandedRowModel: enableExpanding || enableGrouping ? index$1.getExpandedRowModel() : void 0,
2322
+ getFacetedMinMaxValues: enableFacetedValues ? index$1.getFacetedMinMaxValues() : void 0,
2323
+ getFacetedRowModel: enableFacetedValues ? index$1.getFacetedRowModel() : void 0,
2324
+ getFacetedUniqueValues: enableFacetedValues ? index$1.getFacetedUniqueValues() : void 0,
2325
+ getFilteredRowModel: enableColumnFilters || enableGlobalFilter || enableFilters ? index$1.getFilteredRowModel() : void 0,
2326
+ getGroupedRowModel: enableGrouping ? index$1.getGroupedRowModel() : void 0,
2327
+ getPaginationRowModel: enablePagination ? index$1.getPaginationRowModel() : void 0,
2328
+ getSortedRowModel: enableSorting ? index$1.getSortedRowModel() : void 0,
2329
+ getSubRows: (row) => row === null || row === void 0 ? void 0 : row.subRows,
2330
+ icons,
2331
+ layoutMode,
2332
+ localization,
2333
+ manualFiltering,
2334
+ manualGrouping,
2335
+ manualPagination,
2336
+ manualSorting,
2337
+ paginationDisplayMode,
2338
+ positionActionsColumn,
2339
+ positionCreatingRow,
2340
+ positionExpandColumn,
2341
+ positionGlobalFilter,
2342
+ positionPagination,
2343
+ positionToolbarAlertBanner,
2344
+ positionToolbarDropZone,
2345
+ rowNumberDisplayMode,
2346
+ rowPinningDisplayMode,
2347
+ selectAllMode,
2348
+ sortingFns
2349
+ }, rest);
2350
+ };
2351
+ const blankColProps = {
2352
+ children: null,
2353
+ style: {
2354
+ minWidth: 0,
2355
+ padding: 0,
2356
+ width: 0
2357
+ }
2358
+ };
2359
+ const getMRT_RowSpacerColumnDef = (tableOptions) => {
2360
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, defaultDisplayColumnProps({
2361
+ id: "mrt-row-spacer",
2362
+ size: 0,
2363
+ tableOptions
2364
+ })), { grow: true }), MRT_DefaultDisplayColumn), { mantineTableBodyCellProps: blankColProps, mantineTableFooterCellProps: blankColProps, mantineTableHeadCellProps: blankColProps });
2365
+ };
2366
+ const useMRT_Effects = (table) => {
2367
+ const { getIsSomeRowsPinned, getPrePaginationRowModel, getState, options: { enablePagination, enableRowPinning, rowCount } } = table;
2368
+ const { columnOrder, density, globalFilter, isFullScreen, isLoading, pagination, showSkeletons, sorting } = getState();
2369
+ const totalColumnCount = table.options.columns.length;
2370
+ const totalRowCount = rowCount !== null && rowCount !== void 0 ? rowCount : getPrePaginationRowModel().rows.length;
2371
+ const rerender = React.useReducer(() => ({}), {})[1];
2372
+ const initialBodyHeight = React.useRef();
2373
+ const previousTop = React.useRef();
2374
+ React.useEffect(() => {
2375
+ if (typeof window !== "undefined") {
2376
+ initialBodyHeight.current = document.body.style.height;
2377
+ }
2378
+ }, []);
2379
+ React.useEffect(() => {
2380
+ if (typeof window !== "undefined") {
2381
+ if (isFullScreen) {
2382
+ previousTop.current = document.body.getBoundingClientRect().top;
2383
+ document.body.style.height = "100dvh";
2384
+ } else {
2385
+ document.body.style.height = initialBodyHeight.current;
2386
+ if (!previousTop.current)
2387
+ return;
2388
+ window.scrollTo({
2389
+ behavior: "instant",
2390
+ top: -1 * previousTop.current
2391
+ });
2392
+ }
2393
+ }
2394
+ }, [isFullScreen]);
2395
+ React.useEffect(() => {
2396
+ if (totalColumnCount !== columnOrder.length) {
2397
+ table.setColumnOrder(getDefaultColumnOrderIds(table.options));
2398
+ }
2399
+ }, [totalColumnCount]);
2400
+ React.useEffect(() => {
2401
+ if (!enablePagination || isLoading || showSkeletons)
2402
+ return;
2403
+ const { pageIndex, pageSize } = pagination;
2404
+ const firstVisibleRowIndex = pageIndex * pageSize;
2405
+ if (firstVisibleRowIndex >= totalRowCount && firstVisibleRowIndex > 0) {
2406
+ table.setPageIndex(Math.ceil(totalRowCount / pageSize) - 1);
2407
+ }
2408
+ }, [totalRowCount]);
2409
+ const appliedSort = React.useRef(sorting);
2410
+ React.useEffect(() => {
2411
+ if (sorting.length) {
2412
+ appliedSort.current = sorting;
2413
+ }
2414
+ }, [sorting]);
2415
+ React.useEffect(() => {
2416
+ if (!getCanRankRows(table))
2417
+ return;
2418
+ if (globalFilter) {
2419
+ table.setSorting([]);
2420
+ } else {
2421
+ table.setSorting(() => appliedSort.current || []);
2422
+ }
2423
+ }, [globalFilter]);
2424
+ React.useEffect(() => {
2425
+ if (enableRowPinning && getIsSomeRowsPinned()) {
2426
+ setTimeout(() => {
2427
+ rerender();
2428
+ }, 150);
2429
+ }
2430
+ }, [density]);
2431
+ };
2432
+ const useMRT_TableInstance = (definedTableOptions) => {
2433
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
2434
+ const lastSelectedRowId = React.useRef(null);
2435
+ const bottomToolbarRef = React.useRef(null);
2436
+ const editInputRefs = React.useRef({});
2437
+ const filterInputRefs = React.useRef({});
2438
+ const searchInputRef = React.useRef(null);
2439
+ const tableContainerRef = React.useRef(null);
2440
+ const tableHeadCellRefs = React.useRef({});
2441
+ const tablePaperRef = React.useRef(null);
2442
+ const topToolbarRef = React.useRef(null);
2443
+ const tableHeadRef = React.useRef(null);
2444
+ const tableFooterRef = React.useRef(null);
2445
+ const initialState = React.useMemo(() => {
2446
+ var _a2, _b2, _c2;
2447
+ const initState = (_a2 = definedTableOptions.initialState) !== null && _a2 !== void 0 ? _a2 : {};
2448
+ initState.columnOrder = (_b2 = initState.columnOrder) !== null && _b2 !== void 0 ? _b2 : getDefaultColumnOrderIds(Object.assign(Object.assign({}, definedTableOptions), { state: Object.assign(Object.assign({}, definedTableOptions.initialState), definedTableOptions.state) }));
2449
+ initState.globalFilterFn = (_c2 = definedTableOptions.globalFilterFn) !== null && _c2 !== void 0 ? _c2 : "fuzzy";
2450
+ return initState;
2451
+ }, []);
2452
+ definedTableOptions.initialState = initialState;
2453
+ const [creatingRow, _setCreatingRow] = React.useState((_a = initialState.creatingRow) !== null && _a !== void 0 ? _a : null);
2454
+ const [columnFilterFns, setColumnFilterFns] = React.useState(() => Object.assign({}, ...getAllLeafColumnDefs(definedTableOptions.columns).map((col) => {
2455
+ var _a2, _b2, _c2, _d2;
2456
+ return {
2457
+ [getColumnId(col)]: col.filterFn instanceof Function ? (_a2 = col.filterFn.name) !== null && _a2 !== void 0 ? _a2 : "custom" : (_d2 = (_b2 = col.filterFn) !== null && _b2 !== void 0 ? _b2 : (_c2 = initialState === null || initialState === void 0 ? void 0 : initialState.columnFilterFns) === null || _c2 === void 0 ? void 0 : _c2[getColumnId(col)]) !== null && _d2 !== void 0 ? _d2 : getDefaultColumnFilterFn(col)
2458
+ };
2459
+ })));
2460
+ const [columnOrder, onColumnOrderChange] = React.useState((_b = initialState.columnOrder) !== null && _b !== void 0 ? _b : []);
2461
+ const [columnSizingInfo, onColumnSizingInfoChange] = React.useState((_c = initialState.columnSizingInfo) !== null && _c !== void 0 ? _c : {});
2462
+ const [density, setDensity] = React.useState((_d = initialState === null || initialState === void 0 ? void 0 : initialState.density) !== null && _d !== void 0 ? _d : "md");
2463
+ const [draggingColumn, setDraggingColumn] = React.useState((_e = initialState.draggingColumn) !== null && _e !== void 0 ? _e : null);
2464
+ const [draggingRow, setDraggingRow] = React.useState((_f = initialState.draggingRow) !== null && _f !== void 0 ? _f : null);
2465
+ const [editingCell, setEditingCell] = React.useState((_g = initialState.editingCell) !== null && _g !== void 0 ? _g : null);
2466
+ const [editingRow, setEditingRow] = React.useState((_h = initialState.editingRow) !== null && _h !== void 0 ? _h : null);
2467
+ const [globalFilterFn, setGlobalFilterFn] = React.useState((_j = initialState.globalFilterFn) !== null && _j !== void 0 ? _j : "fuzzy");
2468
+ const [grouping, onGroupingChange] = React.useState((_k = initialState.grouping) !== null && _k !== void 0 ? _k : []);
2469
+ const [hoveredColumn, setHoveredColumn] = React.useState((_l = initialState.hoveredColumn) !== null && _l !== void 0 ? _l : null);
2470
+ const [hoveredRow, setHoveredRow] = React.useState((_m = initialState.hoveredRow) !== null && _m !== void 0 ? _m : null);
2471
+ const [isFullScreen, setIsFullScreen] = React.useState((_o = initialState === null || initialState === void 0 ? void 0 : initialState.isFullScreen) !== null && _o !== void 0 ? _o : false);
2472
+ const [pagination, onPaginationChange] = React.useState((_p = initialState === null || initialState === void 0 ? void 0 : initialState.pagination) !== null && _p !== void 0 ? _p : { pageIndex: 0, pageSize: 10 });
2473
+ const [showAlertBanner, setShowAlertBanner] = React.useState((_q = initialState === null || initialState === void 0 ? void 0 : initialState.showAlertBanner) !== null && _q !== void 0 ? _q : false);
2474
+ const [showColumnFilters, setShowColumnFilters] = React.useState((_r = initialState === null || initialState === void 0 ? void 0 : initialState.showColumnFilters) !== null && _r !== void 0 ? _r : false);
2475
+ const [showGlobalFilter, setShowGlobalFilter] = React.useState((_s = initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) !== null && _s !== void 0 ? _s : false);
2476
+ const [showToolbarDropZone, setShowToolbarDropZone] = React.useState((_t = initialState === null || initialState === void 0 ? void 0 : initialState.showToolbarDropZone) !== null && _t !== void 0 ? _t : false);
2477
+ definedTableOptions.state = Object.assign({
2478
+ columnFilterFns,
2479
+ columnOrder,
2480
+ columnSizingInfo,
2481
+ creatingRow,
2482
+ density,
2483
+ draggingColumn,
2484
+ draggingRow,
2485
+ editingCell,
2486
+ editingRow,
2487
+ globalFilterFn,
2488
+ grouping,
2489
+ hoveredColumn,
2490
+ hoveredRow,
2491
+ isFullScreen,
2492
+ pagination,
2493
+ showAlertBanner,
2494
+ showColumnFilters,
2495
+ showGlobalFilter,
2496
+ showToolbarDropZone
2497
+ }, definedTableOptions.state);
2498
+ const statefulTableOptions = definedTableOptions;
2499
+ const columnDefsRef = React.useRef([]);
2500
+ statefulTableOptions.columns = statefulTableOptions.state.columnSizingInfo.isResizingColumn || statefulTableOptions.state.draggingColumn || statefulTableOptions.state.draggingRow ? columnDefsRef.current : prepareColumns({
2501
+ columnDefs: [
2502
+ ...[
2503
+ showRowPinningColumn(statefulTableOptions) && getMRT_RowPinningColumnDef(statefulTableOptions),
2504
+ showRowDragColumn(statefulTableOptions) && getMRT_RowDragColumnDef(statefulTableOptions),
2505
+ showRowActionsColumn(statefulTableOptions) && getMRT_RowActionsColumnDef(statefulTableOptions),
2506
+ showRowExpandColumn(statefulTableOptions) && getMRT_RowExpandColumnDef(statefulTableOptions),
2507
+ showRowSelectionColumn(statefulTableOptions) && getMRT_RowSelectColumnDef(statefulTableOptions),
2508
+ showRowNumbersColumn(statefulTableOptions) && getMRT_RowNumbersColumnDef(statefulTableOptions)
2509
+ ].filter(Boolean),
2510
+ ...statefulTableOptions.columns,
2511
+ ...[
2512
+ showRowSpacerColumn(statefulTableOptions) && getMRT_RowSpacerColumnDef(statefulTableOptions)
2513
+ ].filter(Boolean)
2514
+ ],
2515
+ tableOptions: statefulTableOptions
2516
+ });
2517
+ columnDefsRef.current = statefulTableOptions.columns;
2518
+ statefulTableOptions.data = React.useMemo(() => (statefulTableOptions.state.isLoading || statefulTableOptions.state.showSkeletons) && !statefulTableOptions.data.length ? [
2519
+ ...Array(Math.min(statefulTableOptions.state.pagination.pageSize, 20)).fill(null)
2520
+ ].map(() => Object.assign({}, ...getAllLeafColumnDefs(statefulTableOptions.columns).map((col) => ({
2521
+ [getColumnId(col)]: null
2522
+ })))) : statefulTableOptions.data, [
2523
+ statefulTableOptions.data,
2524
+ statefulTableOptions.state.isLoading,
2525
+ statefulTableOptions.state.showSkeletons
2526
+ ]);
2527
+ const table = index.useReactTable(Object.assign(Object.assign({
2528
+ onColumnOrderChange,
2529
+ onColumnSizingInfoChange,
2530
+ onGroupingChange,
2531
+ onPaginationChange
2532
+ }, statefulTableOptions), { globalFilterFn: (_u = statefulTableOptions.filterFns) === null || _u === void 0 ? void 0 : _u[globalFilterFn !== null && globalFilterFn !== void 0 ? globalFilterFn : "fuzzy"] }));
2533
+ table.refs = {
2534
+ bottomToolbarRef,
2535
+ editInputRefs,
2536
+ filterInputRefs,
2537
+ lastSelectedRowId,
2538
+ searchInputRef,
2539
+ tableContainerRef,
2540
+ tableFooterRef,
2541
+ tableHeadCellRefs,
2542
+ tableHeadRef,
2543
+ tablePaperRef,
2544
+ topToolbarRef
2545
+ };
2546
+ table.setCreatingRow = (row) => {
2547
+ let _row = row;
2548
+ if (row === true) {
2549
+ _row = createRow(table);
2550
+ }
2551
+ if (statefulTableOptions === null || statefulTableOptions === void 0 ? void 0 : statefulTableOptions.onCreatingRowChange) {
2552
+ statefulTableOptions.onCreatingRowChange(_row);
2553
+ } else {
2554
+ _setCreatingRow(_row);
2555
+ }
2556
+ };
2557
+ table.setColumnFilterFns = (_v = statefulTableOptions.onColumnFilterFnsChange) !== null && _v !== void 0 ? _v : setColumnFilterFns;
2558
+ table.setDensity = (_w = statefulTableOptions.onDensityChange) !== null && _w !== void 0 ? _w : setDensity;
2559
+ table.setDraggingColumn = (_x = statefulTableOptions.onDraggingColumnChange) !== null && _x !== void 0 ? _x : setDraggingColumn;
2560
+ table.setDraggingRow = (_y = statefulTableOptions.onDraggingRowChange) !== null && _y !== void 0 ? _y : setDraggingRow;
2561
+ table.setEditingCell = (_z = statefulTableOptions.onEditingCellChange) !== null && _z !== void 0 ? _z : setEditingCell;
2562
+ table.setEditingRow = (_0 = statefulTableOptions.onEditingRowChange) !== null && _0 !== void 0 ? _0 : setEditingRow;
2563
+ table.setGlobalFilterFn = (_1 = statefulTableOptions.onGlobalFilterFnChange) !== null && _1 !== void 0 ? _1 : setGlobalFilterFn;
2564
+ table.setHoveredColumn = (_2 = statefulTableOptions.onHoveredColumnChange) !== null && _2 !== void 0 ? _2 : setHoveredColumn;
2565
+ table.setHoveredRow = (_3 = statefulTableOptions.onHoveredRowChange) !== null && _3 !== void 0 ? _3 : setHoveredRow;
2566
+ table.setIsFullScreen = (_4 = statefulTableOptions.onIsFullScreenChange) !== null && _4 !== void 0 ? _4 : setIsFullScreen;
2567
+ table.setShowAlertBanner = (_5 = statefulTableOptions.onShowAlertBannerChange) !== null && _5 !== void 0 ? _5 : setShowAlertBanner;
2568
+ table.setShowColumnFilters = (_6 = statefulTableOptions.onShowColumnFiltersChange) !== null && _6 !== void 0 ? _6 : setShowColumnFilters;
2569
+ table.setShowGlobalFilter = (_7 = statefulTableOptions.onShowGlobalFilterChange) !== null && _7 !== void 0 ? _7 : setShowGlobalFilter;
2570
+ table.setShowToolbarDropZone = (_8 = statefulTableOptions.onShowToolbarDropZoneChange) !== null && _8 !== void 0 ? _8 : setShowToolbarDropZone;
2571
+ useMRT_Effects(table);
2572
+ return table;
2573
+ };
2574
+ const useMantineReactTable = (tableOptions) => useMRT_TableInstance(useMRT_TableOptions(tableOptions));
2575
+ var classes$8 = { "root": "MRT_TablePaper-module_root__q0v5L" };
2576
+ var classes$7 = { "root": "MRT_TableContainer-module_root__JIsGB", "root-sticky": "MRT_TableContainer-module_root-sticky__uC4qx", "root-fullscreen": "MRT_TableContainer-module_root-fullscreen__aM8Jg" };
2577
+ var classes$6 = { "root": "MRT_Table-module_root__ms2uS", "root-grid": "MRT_Table-module_root-grid__2Pynz" };
2578
+ const useMRT_ColumnVirtualizer = (table) => {
2579
+ var _a, _b, _c, _d;
2580
+ const { getLeftLeafColumns, getRightLeafColumns, getState, getVisibleLeafColumns, options: { columnVirtualizerInstanceRef, columnVirtualizerOptions, enableColumnPinning, enableColumnVirtualization }, refs: { tableContainerRef } } = table;
2581
+ const { columnPinning, draggingColumn } = getState();
2582
+ if (!enableColumnVirtualization)
2583
+ return void 0;
2584
+ const columnVirtualizerProps = parseFromValuesOrFunc(columnVirtualizerOptions, {
2585
+ table
2586
+ });
2587
+ const visibleColumns = getVisibleLeafColumns();
2588
+ const [leftPinnedIndexes, rightPinnedIndexes] = React.useMemo(() => enableColumnPinning ? [
2589
+ getLeftLeafColumns().map((c) => c.getPinnedIndex()),
2590
+ getRightLeafColumns().map((column) => visibleColumns.length - column.getPinnedIndex() - 1).sort((a, b) => a - b)
2591
+ ] : [[], []], [visibleColumns.length, columnPinning, enableColumnPinning]);
2592
+ const numPinnedLeft = leftPinnedIndexes.length;
2593
+ const numPinnedRight = rightPinnedIndexes.length;
2594
+ const draggingColumnIndex = React.useMemo(() => (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) ? visibleColumns.findIndex((c) => c.id === (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id)) : void 0, [draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id]);
2595
+ const columnVirtualizer = index$3.useVirtualizer(Object.assign({ count: visibleColumns.length, estimateSize: (index2) => visibleColumns[index2].getSize(), getScrollElement: () => tableContainerRef.current, horizontal: true, overscan: 3, rangeExtractor: React.useCallback((range) => {
2596
+ const newIndexes = extraIndexRangeExtractor(range, draggingColumnIndex);
2597
+ if (!numPinnedLeft && !numPinnedRight) {
2598
+ return newIndexes;
2599
+ }
2600
+ return [
2601
+ .../* @__PURE__ */ new Set([
2602
+ ...leftPinnedIndexes,
2603
+ ...newIndexes,
2604
+ ...rightPinnedIndexes
2605
+ ])
2606
+ ];
2607
+ }, [leftPinnedIndexes, rightPinnedIndexes, draggingColumnIndex]) }, columnVirtualizerProps));
2608
+ const virtualColumns = columnVirtualizer.getVirtualItems();
2609
+ columnVirtualizer.virtualColumns = virtualColumns;
2610
+ const numColumns = virtualColumns.length;
2611
+ if (numColumns) {
2612
+ const totalSize = columnVirtualizer.getTotalSize();
2613
+ const leftNonPinnedStart = ((_a = virtualColumns[numPinnedLeft]) === null || _a === void 0 ? void 0 : _a.start) || 0;
2614
+ const leftNonPinnedEnd = ((_b = virtualColumns[leftPinnedIndexes.length - 1]) === null || _b === void 0 ? void 0 : _b.end) || 0;
2615
+ const rightNonPinnedStart = ((_c = virtualColumns[numColumns - numPinnedRight]) === null || _c === void 0 ? void 0 : _c.start) || 0;
2616
+ const rightNonPinnedEnd = ((_d = virtualColumns[numColumns - numPinnedRight - 1]) === null || _d === void 0 ? void 0 : _d.end) || 0;
2617
+ columnVirtualizer.virtualPaddingLeft = leftNonPinnedStart - leftNonPinnedEnd;
2618
+ columnVirtualizer.virtualPaddingRight = totalSize - rightNonPinnedEnd - (numPinnedRight ? totalSize - rightNonPinnedStart : 0);
2619
+ }
2620
+ if (columnVirtualizerInstanceRef) {
2621
+ columnVirtualizerInstanceRef.current = columnVirtualizer;
2622
+ }
2623
+ return columnVirtualizer;
2624
+ };
2625
+ const MRT_Table = (_a) => {
2626
+ var { table } = _a, rest = __rest(_a, ["table"]);
2627
+ const { getFlatHeaders, getState, options: { columns, enableTableFooter, enableTableHead, layoutMode, mantineTableProps, memoMode } } = table;
2628
+ const { columnSizing, columnSizingInfo, columnVisibility, density } = getState();
2629
+ const tableProps = Object.assign(Object.assign({ highlightOnHover: true, horizontalSpacing: density, verticalSpacing: density }, parseFromValuesOrFunc(mantineTableProps, { table })), rest);
2630
+ const columnSizeVars = React.useMemo(() => {
2631
+ const headers = getFlatHeaders();
2632
+ const colSizes = {};
2633
+ for (let i = 0; i < headers.length; i++) {
2634
+ const header = headers[i];
2635
+ const colSize = header.getSize();
2636
+ colSizes[`--header-${parseCSSVarId(header.id)}-size`] = colSize;
2637
+ colSizes[`--col-${parseCSSVarId(header.column.id)}-size`] = colSize;
2638
+ }
2639
+ return colSizes;
2640
+ }, [columns, columnSizing, columnSizingInfo, columnVisibility]);
2641
+ const columnVirtualizer = useMRT_ColumnVirtualizer(table);
2642
+ const commonTableGroupProps = {
2643
+ columnVirtualizer,
2644
+ table
2645
+ };
2646
+ const { colorScheme } = core.useMantineColorScheme();
2647
+ const { stripedColor } = tableProps;
2648
+ return jsxRuntime.jsxs(core.Table, Object.assign({ className: clsx.clsx("mrt-table", classes$6.root, (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith("grid")) && classes$6["root-grid"], tableProps.className) }, tableProps, { __vars: Object.assign(Object.assign(Object.assign({}, columnSizeVars), { "--mrt-striped-row-background-color": stripedColor, "--mrt-striped-row-hover-background-color": stripedColor ? colorScheme === "dark" ? core.lighten(stripedColor, 0.08) : core.darken(stripedColor, 0.12) : void 0 }), tableProps.__vars), children: [enableTableHead && jsxRuntime.jsx(MRT_TableHead, Object.assign({}, commonTableGroupProps)), memoMode === "table-body" || columnSizingInfo.isResizingColumn ? jsxRuntime.jsx(Memo_MRT_TableBody, Object.assign({}, commonTableGroupProps, { tableProps })) : jsxRuntime.jsx(MRT_TableBody, Object.assign({}, commonTableGroupProps, { tableProps })), enableTableFooter && jsxRuntime.jsx(MRT_TableFooter, Object.assign({}, commonTableGroupProps))] }));
2649
+ };
2650
+ const MRT_EditRowModal = (_a) => {
2651
+ var _b;
2652
+ var { open, table } = _a, rest = __rest(_a, ["open", "table"]);
2653
+ const { getState, options: { mantineCreateRowModalProps, mantineEditRowModalProps, onCreatingRowCancel, onEditingRowCancel, renderCreateRowModalContent, renderEditRowModalContent }, setCreatingRow, setEditingRow } = table;
2654
+ const { creatingRow, editingRow } = getState();
2655
+ const row = creatingRow !== null && creatingRow !== void 0 ? creatingRow : editingRow;
2656
+ const arg = { row, table };
2657
+ const modalProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineEditRowModalProps, arg)), creatingRow && parseFromValuesOrFunc(mantineCreateRowModalProps, arg)), rest);
2658
+ const internalEditComponents = row.getAllCells().filter((cell) => cell.column.columnDef.columnDefType === "data").map((cell) => jsxRuntime.jsx(MRT_EditCellTextInput, { cell, table }, cell.id));
2659
+ const handleCancel = () => {
2660
+ var _a2;
2661
+ if (creatingRow) {
2662
+ onCreatingRowCancel === null || onCreatingRowCancel === void 0 ? void 0 : onCreatingRowCancel({ row, table });
2663
+ setCreatingRow(null);
2664
+ } else {
2665
+ onEditingRowCancel === null || onEditingRowCancel === void 0 ? void 0 : onEditingRowCancel({ row, table });
2666
+ setEditingRow(null);
2667
+ }
2668
+ row._valuesCache = {};
2669
+ (_a2 = modalProps.onClose) === null || _a2 === void 0 ? void 0 : _a2.call(modalProps);
2670
+ };
2671
+ return React.createElement(core.Modal, Object.assign({ opened: open, withCloseButton: false }, modalProps, { key: row.id, onClose: handleCancel }), (_b = creatingRow && (renderCreateRowModalContent === null || renderCreateRowModalContent === void 0 ? void 0 : renderCreateRowModalContent({
2672
+ internalEditComponents,
2673
+ row,
2674
+ table
2675
+ })) || (renderEditRowModalContent === null || renderEditRowModalContent === void 0 ? void 0 : renderEditRowModalContent({
2676
+ internalEditComponents,
2677
+ row,
2678
+ table
2679
+ }))) !== null && _b !== void 0 ? _b : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("form", { onSubmit: (e) => e.preventDefault(), children: jsxRuntime.jsx(core.Stack, { gap: "lg", pb: 24, pt: 16, children: internalEditComponents }) }), jsxRuntime.jsx(core.Flex, { justify: "flex-end", children: jsxRuntime.jsx(MRT_EditActionButtons, { row, table, variant: "text" }) })] }));
2680
+ };
2681
+ const useIsomorphicLayoutEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
2682
+ const MRT_TableContainer = (_a) => {
2683
+ var { table } = _a, rest = __rest(_a, ["table"]);
2684
+ const { getState, options: { createDisplayMode, editDisplayMode, enableStickyHeader, mantineLoadingOverlayProps, mantineTableContainerProps }, refs: { bottomToolbarRef, tableContainerRef, topToolbarRef } } = table;
2685
+ const { creatingRow, editingRow, isFullScreen, isLoading, showLoadingOverlay } = getState();
2686
+ const [totalToolbarHeight, setTotalToolbarHeight] = React.useState(0);
2687
+ const tableContainerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableContainerProps, { table })), rest);
2688
+ const loadingOverlayProps = parseFromValuesOrFunc(mantineLoadingOverlayProps, { table });
2689
+ useIsomorphicLayoutEffect(() => {
2690
+ var _a2, _b, _c, _d;
2691
+ const topToolbarHeight = typeof document !== "undefined" ? (_b = (_a2 = topToolbarRef.current) === null || _a2 === void 0 ? void 0 : _a2.offsetHeight) !== null && _b !== void 0 ? _b : 0 : 0;
2692
+ const bottomToolbarHeight = typeof document !== "undefined" ? (_d = (_c = bottomToolbarRef === null || bottomToolbarRef === void 0 ? void 0 : bottomToolbarRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight) !== null && _d !== void 0 ? _d : 0 : 0;
2693
+ setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
2694
+ });
2695
+ const createModalOpen = createDisplayMode === "modal" && creatingRow;
2696
+ const editModalOpen = editDisplayMode === "modal" && editingRow;
2697
+ return jsxRuntime.jsxs(core.Box, Object.assign({}, tableContainerProps, { __vars: Object.assign({ "--mrt-top-toolbar-height": `${totalToolbarHeight}` }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.__vars), className: clsx.clsx("mrt-table-container", classes$7.root, enableStickyHeader && classes$7["root-sticky"], isFullScreen && classes$7["root-fullscreen"], tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.className), ref: (node) => {
2698
+ if (node) {
2699
+ tableContainerRef.current = node;
2700
+ if (tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.ref) {
2701
+ tableContainerProps.ref.current = node;
2702
+ }
2703
+ }
2704
+ }, children: [jsxRuntime.jsx(core.LoadingOverlay, Object.assign({ visible: isLoading || showLoadingOverlay, zIndex: 2 }, loadingOverlayProps)), jsxRuntime.jsx(MRT_Table, { table }), (createModalOpen || editModalOpen) && jsxRuntime.jsx(MRT_EditRowModal, { open: true, table })] }));
2705
+ };
2706
+ var commonClasses = { "common-toolbar-styles": "common-styles-module_common-toolbar-styles__DnjR8" };
2707
+ var classes$5 = { "root": "MRT_BottomToolbar-module_root__VDeWo", "root-fullscreen": "MRT_BottomToolbar-module_root-fullscreen__esE15", "custom-toolbar-container": "MRT_BottomToolbar-module_custom-toolbar-container__XcDRF", "paginator-container": "MRT_BottomToolbar-module_paginator-container__A3eWY", "paginator-container-alert-banner": "MRT_BottomToolbar-module_paginator-container-alert-banner__gyqtO" };
2708
+ var classes$4 = { "collapse": "MRT_ProgressBar-module_collapse__rOLJH", "collapse-top": "MRT_ProgressBar-module_collapse-top__oCi0h" };
2709
+ const MRT_ProgressBar = (_a) => {
2710
+ var { isTopToolbar, table } = _a, rest = __rest(_a, ["isTopToolbar", "table"]);
2711
+ const { getState, options: { mantineProgressProps } } = table;
2712
+ const { isSaving, showProgressBars } = getState();
2713
+ const linearProgressProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineProgressProps, {
2714
+ isTopToolbar,
2715
+ table
2716
+ })), rest);
2717
+ return jsxRuntime.jsx(core.Collapse, { className: clsx.clsx(classes$4.collapse, isTopToolbar && classes$4["collapse-top"]), in: isSaving || showProgressBars, children: jsxRuntime.jsx(core.Progress, Object.assign({ animated: true, "aria-busy": "true", "aria-label": "Loading", radius: 0, value: 100 }, linearProgressProps)) });
2718
+ };
2719
+ var classes$3 = { "root": "MRT_TablePagination-module_root__yZ8pm", "pagesize": "MRT_TablePagination-module_pagesize__-vmTn", "with-top-margin": "MRT_TablePagination-module_with-top-margin__aM5-m" };
2720
+ const defaultRowsPerPage = [5, 10, 15, 20, 25, 30, 50, 100].map((x) => x.toString());
2721
+ const MRT_TablePagination = (_a) => {
2722
+ var _b;
2723
+ var { position = "bottom", table } = _a, props = __rest(_a, ["position", "table"]);
2724
+ const { getPrePaginationRowModel, getState, options: { enableToolbarInternalActions, icons: { IconChevronLeft: IconChevronLeft2, IconChevronLeftPipe: IconChevronLeftPipe2, IconChevronRight: IconChevronRight2, IconChevronRightPipe: IconChevronRightPipe2 }, localization, mantinePaginationProps, paginationDisplayMode, rowCount }, setPageIndex, setPageSize } = table;
2725
+ const { pagination: { pageIndex = 0, pageSize = 10 }, showGlobalFilter } = getState();
2726
+ const paginationProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantinePaginationProps, {
2727
+ table
2728
+ })), props);
2729
+ const totalRowCount = rowCount !== null && rowCount !== void 0 ? rowCount : getPrePaginationRowModel().rows.length;
2730
+ const numberOfPages = Math.ceil(totalRowCount / pageSize);
2731
+ const showFirstLastPageButtons = numberOfPages > 2;
2732
+ const firstRowIndex = pageIndex * pageSize;
2733
+ const lastRowIndex = Math.min(pageIndex * pageSize + pageSize, totalRowCount);
2734
+ const _c = paginationProps !== null && paginationProps !== void 0 ? paginationProps : {}, { rowsPerPageOptions = defaultRowsPerPage, showRowsPerPage = true, withEdges = showFirstLastPageButtons } = _c, rest = __rest(_c, ["rowsPerPageOptions", "showRowsPerPage", "withEdges"]);
2735
+ const needsTopMargin = position === "top" && enableToolbarInternalActions && !showGlobalFilter;
2736
+ return jsxRuntime.jsxs(core.Box, { className: clsx.clsx("mrt-table-pagination", classes$3.root, needsTopMargin && classes$3["with-top-margin"]), children: [(paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.showRowsPerPage) !== false && jsxRuntime.jsxs(core.Group, { gap: "xs", children: [jsxRuntime.jsx(core.Text, { id: "rpp-label", children: localization.rowsPerPage }), jsxRuntime.jsx(core.Select, { allowDeselect: false, "aria-labelledby": "rpp-label", className: classes$3.pagesize, data: (_b = paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.rowsPerPageOptions) !== null && _b !== void 0 ? _b : defaultRowsPerPage, onChange: (value) => setPageSize(+value), value: pageSize.toString() })] }), paginationDisplayMode === "pages" ? jsxRuntime.jsx(core.Pagination, Object.assign({ firstIcon: IconChevronLeftPipe2, lastIcon: IconChevronRightPipe2, nextIcon: IconChevronRight2, onChange: (newPageIndex) => setPageIndex(newPageIndex - 1), previousIcon: IconChevronLeft2, total: numberOfPages, value: pageIndex + 1, withEdges }, rest)) : paginationDisplayMode === "default" ? jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(core.Text, { children: `${lastRowIndex === 0 ? 0 : (firstRowIndex + 1).toLocaleString()}-${lastRowIndex.toLocaleString()} ${localization.of} ${totalRowCount.toLocaleString()}` }), jsxRuntime.jsxs(core.Group, { gap: 6, children: [withEdges && jsxRuntime.jsx(core.ActionIcon, { "aria-label": localization.goToFirstPage, color: "gray", disabled: pageIndex <= 0, onClick: () => setPageIndex(0), variant: "subtle", children: jsxRuntime.jsx(IconChevronLeftPipe2, {}) }), jsxRuntime.jsx(core.ActionIcon, { "aria-label": localization.goToPreviousPage, color: "gray", disabled: pageIndex <= 0, onClick: () => setPageIndex(pageIndex - 1), variant: "subtle", children: jsxRuntime.jsx(IconChevronLeft2, {}) }), jsxRuntime.jsx(core.ActionIcon, { "aria-label": localization.goToNextPage, color: "gray", disabled: lastRowIndex >= totalRowCount, onClick: () => setPageIndex(pageIndex + 1), variant: "subtle", children: jsxRuntime.jsx(IconChevronRight2, {}) }), withEdges && jsxRuntime.jsx(core.ActionIcon, { "aria-label": localization.goToLastPage, color: "gray", disabled: lastRowIndex >= totalRowCount, onClick: () => setPageIndex(numberOfPages - 1), variant: "subtle", children: jsxRuntime.jsx(IconChevronRightPipe2, {}) })] })] }) : null] });
2737
+ };
2738
+ var classes$2 = { "root": "MRT_ToolbarDropZone-module_root__eGTXb", "hovered": "MRT_ToolbarDropZone-module_hovered__g7PeJ" };
2739
+ const MRT_ToolbarDropZone = (_a) => {
2740
+ var { table } = _a, rest = __rest(_a, ["table"]);
2741
+ const { getState, options: { enableGrouping, localization }, setHoveredColumn, setShowToolbarDropZone } = table;
2742
+ const { draggingColumn, grouping, hoveredColumn, showToolbarDropZone } = getState();
2743
+ const handleDragEnter = (_event) => {
2744
+ setHoveredColumn({ id: "drop-zone" });
2745
+ };
2746
+ React.useEffect(() => {
2747
+ var _a2;
2748
+ if (((_a2 = table.options.state) === null || _a2 === void 0 ? void 0 : _a2.showToolbarDropZone) !== void 0) {
2749
+ setShowToolbarDropZone(!!enableGrouping && !!draggingColumn && draggingColumn.columnDef.enableGrouping !== false && !grouping.includes(draggingColumn.id));
2750
+ }
2751
+ }, [enableGrouping, draggingColumn, grouping]);
2752
+ return jsxRuntime.jsx(core.Transition, { mounted: showToolbarDropZone, transition: "fade", children: () => {
2753
+ var _a2, _b;
2754
+ return jsxRuntime.jsx(core.Flex, Object.assign({ className: clsx.clsx("mrt-toolbar-dropzone", classes$2.root, (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === "drop-zone" && classes$2.hovered), onDragEnter: handleDragEnter }, rest, { children: jsxRuntime.jsx(core.Text, { children: localization.dropToGroupBy.replace("{column}", (_b = (_a2 = draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.columnDef) === null || _a2 === void 0 ? void 0 : _a2.header) !== null && _b !== void 0 ? _b : "") }) }));
2755
+ } });
2756
+ };
2757
+ const MRT_BottomToolbar = (_a) => {
2758
+ var { table } = _a, rest = __rest(_a, ["table"]);
2759
+ const { getState, options: { enablePagination, mantineBottomToolbarProps, positionPagination, positionToolbarAlertBanner, positionToolbarDropZone, renderBottomToolbarCustomActions }, refs: { bottomToolbarRef } } = table;
2760
+ const { isFullScreen } = getState();
2761
+ const isMobile = hooks.useMediaQuery("(max-width: 720px)");
2762
+ const toolbarProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineBottomToolbarProps, {
2763
+ table
2764
+ })), rest);
2765
+ const stackAlertBanner = isMobile || !!renderBottomToolbarCustomActions;
2766
+ return jsxRuntime.jsxs(core.Box, Object.assign({}, toolbarProps, { className: clsx.clsx("mrt-bottom-toolbar", classes$5.root, commonClasses["common-toolbar-styles"], isFullScreen && classes$5["root-fullscreen"], toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.className), ref: (node) => {
2767
+ if (node) {
2768
+ bottomToolbarRef.current = node;
2769
+ if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
2770
+ toolbarProps.ref.current = node;
2771
+ }
2772
+ }
2773
+ }, children: [jsxRuntime.jsx(MRT_ProgressBar, { isTopToolbar: false, table }), positionToolbarAlertBanner === "bottom" && jsxRuntime.jsx(MRT_ToolbarAlertBanner, { stackAlertBanner, table }), ["both", "bottom"].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : "") && jsxRuntime.jsx(MRT_ToolbarDropZone, { table }), jsxRuntime.jsxs(core.Box, { className: classes$5["custom-toolbar-container"], children: [renderBottomToolbarCustomActions ? renderBottomToolbarCustomActions({ table }) : jsxRuntime.jsx("span", {}), jsxRuntime.jsx(core.Box, { className: clsx.clsx(classes$5["paginator-container"], stackAlertBanner && classes$5["paginator-container-alert-banner"]), children: enablePagination && ["both", "bottom"].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : "") && jsxRuntime.jsx(MRT_TablePagination, { position: "bottom", table }) })] })] }));
2774
+ };
2775
+ var classes$1 = { "root": "MRT_TopToolbar-module_root__r4-V9", "root-fullscreen": "MRT_TopToolbar-module_root-fullscreen__3itT8", "actions-container": "MRT_TopToolbar-module_actions-container__-uL0u", "actions-container-stack-alert": "MRT_TopToolbar-module_actions-container-stack-alert__OYDL6" };
2776
+ var classes = { "root": "MRT_ToolbarInternalButtons-module_root__NKoUG" };
2777
+ const MRT_ToolbarInternalButtons = (_a) => {
2778
+ var _b;
2779
+ var { table } = _a, rest = __rest(_a, ["table"]);
2780
+ const { options: { columnFilterDisplayMode, enableColumnFilters, enableColumnOrdering, enableColumnPinning, enableDensityToggle, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableHiding, initialState, renderToolbarInternalActions } } = table;
2781
+ return jsxRuntime.jsx(core.Flex, Object.assign({}, rest, { className: clsx.clsx("mrt-toolbar-internal-buttons", classes.root, rest === null || rest === void 0 ? void 0 : rest.className), children: (_b = renderToolbarInternalActions === null || renderToolbarInternalActions === void 0 ? void 0 : renderToolbarInternalActions({ table })) !== null && _b !== void 0 ? _b : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [enableFilters && enableGlobalFilter && !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && jsxRuntime.jsx(MRT_ToggleGlobalFilterButton, { table }), enableFilters && enableColumnFilters && columnFilterDisplayMode !== "popover" && jsxRuntime.jsx(MRT_ToggleFiltersButton, { table }), (enableHiding || enableColumnOrdering || enableColumnPinning) && jsxRuntime.jsx(MRT_ShowHideColumnsButton, { table }), enableDensityToggle && jsxRuntime.jsx(MRT_ToggleDensePaddingButton, { table }), enableFullScreenToggle && jsxRuntime.jsx(MRT_ToggleFullScreenButton, { table })] }) }));
2782
+ };
2783
+ const MRT_TopToolbar = (_a) => {
2784
+ var _b;
2785
+ var { table } = _a, rest = __rest(_a, ["table"]);
2786
+ const { getState, options: { enableGlobalFilter, enablePagination, enableToolbarInternalActions, mantineTopToolbarProps, positionGlobalFilter, positionPagination, positionToolbarAlertBanner, positionToolbarDropZone, renderTopToolbarCustomActions }, refs: { topToolbarRef } } = table;
2787
+ const { isFullScreen, showGlobalFilter } = getState();
2788
+ const isMobile = hooks.useMediaQuery("(max-width:720px)");
2789
+ const isTablet = hooks.useMediaQuery("(max-width:1024px)");
2790
+ const toolbarProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTopToolbarProps, { table })), rest);
2791
+ const stackAlertBanner = isMobile || !!renderTopToolbarCustomActions || showGlobalFilter && isTablet;
2792
+ const globalFilterProps = {
2793
+ style: !isTablet ? {
2794
+ zIndex: 3
2795
+ } : void 0,
2796
+ table
2797
+ };
2798
+ return jsxRuntime.jsxs(core.Box, Object.assign({}, toolbarProps, { className: clsx.clsx(commonClasses["common-toolbar-styles"], classes$1["root"], isFullScreen && classes$1["root-fullscreen"], toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.className), ref: (node) => {
2799
+ if (node) {
2800
+ topToolbarRef.current = node;
2801
+ if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
2802
+ toolbarProps.ref.current = node;
2803
+ }
2804
+ }
2805
+ }, children: [positionToolbarAlertBanner === "top" && jsxRuntime.jsx(MRT_ToolbarAlertBanner, { stackAlertBanner, table }), ["both", "top"].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : "") && jsxRuntime.jsx(MRT_ToolbarDropZone, { table }), jsxRuntime.jsxs(core.Flex, { className: clsx.clsx(classes$1["actions-container"], stackAlertBanner && classes$1["actions-container-stack-alert"]), children: [enableGlobalFilter && positionGlobalFilter === "left" && jsxRuntime.jsx(MRT_GlobalFilterTextInput, Object.assign({}, globalFilterProps)), (_b = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _b !== void 0 ? _b : jsxRuntime.jsx("span", {}), enableToolbarInternalActions ? jsxRuntime.jsxs(core.Flex, { justify: "end", wrap: "wrap-reverse", children: [enableGlobalFilter && positionGlobalFilter === "right" && jsxRuntime.jsx(MRT_GlobalFilterTextInput, Object.assign({}, globalFilterProps)), jsxRuntime.jsx(MRT_ToolbarInternalButtons, { table })] }) : enableGlobalFilter && positionGlobalFilter === "right" && jsxRuntime.jsx(MRT_GlobalFilterTextInput, Object.assign({}, globalFilterProps))] }), enablePagination && ["both", "top"].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : "") && jsxRuntime.jsx(core.Flex, { justify: "end", children: jsxRuntime.jsx(MRT_TablePagination, { position: "top", table }) }), jsxRuntime.jsx(MRT_ProgressBar, { isTopToolbar: true, table })] }));
2806
+ };
2807
+ const MRT_TablePaper = (_a) => {
2808
+ var _b, _c;
2809
+ var { table } = _a, rest = __rest(_a, ["table"]);
2810
+ const { getState, options: { enableBottomToolbar, enableTopToolbar, mantinePaperProps, renderBottomToolbar, renderTopToolbar }, refs: { tablePaperRef } } = table;
2811
+ const { isFullScreen } = getState();
2812
+ const tablePaperProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantinePaperProps, { table })), rest);
2813
+ return jsxRuntime.jsxs(core.Paper, Object.assign({ shadow: "xs", withBorder: true }, tablePaperProps, {
2814
+ className: clsx.clsx("mrt-table-paper", classes$8.root, isFullScreen && "mrt-table-paper-fullscreen", tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.className),
2815
+ ref: (ref) => {
2816
+ tablePaperRef.current = ref;
2817
+ if (tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.ref) {
2818
+ tablePaperProps.ref.current = ref;
2819
+ }
2820
+ },
2821
+ // rare case where we should use inline styles to guarantee highest specificity
2822
+ style: (theme) => Object.assign(Object.assign({ zIndex: isFullScreen ? 200 : void 0 }, parseFromValuesOrFunc(tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.style, theme)), isFullScreen ? {
2823
+ border: 0,
2824
+ borderRadius: 0,
2825
+ bottom: 0,
2826
+ height: "100vh",
2827
+ left: 0,
2828
+ margin: 0,
2829
+ maxHeight: "100vh",
2830
+ maxWidth: "100vw",
2831
+ padding: 0,
2832
+ position: "fixed",
2833
+ right: 0,
2834
+ top: 0,
2835
+ width: "100vw"
2836
+ } : null),
2837
+ children: [enableTopToolbar && ((_b = parseFromValuesOrFunc(renderTopToolbar, { table })) !== null && _b !== void 0 ? _b : jsxRuntime.jsx(MRT_TopToolbar, { table })), jsxRuntime.jsx(MRT_TableContainer, { table }), enableBottomToolbar && ((_c = parseFromValuesOrFunc(renderBottomToolbar, { table })) !== null && _c !== void 0 ? _c : jsxRuntime.jsx(MRT_BottomToolbar, { table }))]
2838
+ }));
2839
+ };
2840
+ const isTableInstanceProp = (props) => props.table !== void 0;
2841
+ const MantineReactTable = (props) => {
2842
+ let table;
2843
+ if (isTableInstanceProp(props)) {
2844
+ table = props.table;
2845
+ } else {
2846
+ table = useMantineReactTable(props);
2847
+ }
2848
+ return jsxRuntime.jsx(MRT_TablePaper, { table });
2849
+ };
2850
+ exports.MRT_AggregationFns = MRT_AggregationFns;
2851
+ exports.MRT_BottomToolbar = MRT_BottomToolbar;
2852
+ exports.MRT_ColumnActionMenu = MRT_ColumnActionMenu;
2853
+ exports.MRT_ColumnPinningButtons = MRT_ColumnPinningButtons;
2854
+ exports.MRT_CopyButton = MRT_CopyButton;
2855
+ exports.MRT_DefaultColumn = MRT_DefaultColumn;
2856
+ exports.MRT_DefaultDisplayColumn = MRT_DefaultDisplayColumn;
2857
+ exports.MRT_EditActionButtons = MRT_EditActionButtons;
2858
+ exports.MRT_EditCellTextInput = MRT_EditCellTextInput;
2859
+ exports.MRT_EditRowModal = MRT_EditRowModal;
2860
+ exports.MRT_ExpandAllButton = MRT_ExpandAllButton;
2861
+ exports.MRT_ExpandButton = MRT_ExpandButton;
2862
+ exports.MRT_FilterCheckbox = MRT_FilterCheckbox;
2863
+ exports.MRT_FilterFns = MRT_FilterFns;
2864
+ exports.MRT_FilterOptionMenu = MRT_FilterOptionMenu;
2865
+ exports.MRT_FilterRangeFields = MRT_FilterRangeFields;
2866
+ exports.MRT_FilterRangeSlider = MRT_FilterRangeSlider;
2867
+ exports.MRT_FilterTextInput = MRT_FilterTextInput;
2868
+ exports.MRT_GlobalFilterTextInput = MRT_GlobalFilterTextInput;
2869
+ exports.MRT_GrabHandleButton = MRT_GrabHandleButton;
2870
+ exports.MRT_ProgressBar = MRT_ProgressBar;
2871
+ exports.MRT_RowActionMenu = MRT_RowActionMenu;
2872
+ exports.MRT_RowPinButton = MRT_RowPinButton;
2873
+ exports.MRT_SelectCheckbox = MRT_SelectCheckbox;
2874
+ exports.MRT_ShowHideColumnsButton = MRT_ShowHideColumnsButton;
2875
+ exports.MRT_ShowHideColumnsMenu = MRT_ShowHideColumnsMenu;
2876
+ exports.MRT_ShowHideColumnsMenuItems = MRT_ShowHideColumnsMenuItems;
2877
+ exports.MRT_SortingFns = MRT_SortingFns;
2878
+ exports.MRT_Table = MRT_Table;
2879
+ exports.MRT_TableBody = MRT_TableBody;
2880
+ exports.MRT_TableBodyCell = MRT_TableBodyCell;
2881
+ exports.MRT_TableBodyCellValue = MRT_TableBodyCellValue;
2882
+ exports.MRT_TableBodyEmptyRow = MRT_TableBodyEmptyRow;
2883
+ exports.MRT_TableBodyRow = MRT_TableBodyRow;
2884
+ exports.MRT_TableBodyRowGrabHandle = MRT_TableBodyRowGrabHandle;
2885
+ exports.MRT_TableBodyRowPinButton = MRT_TableBodyRowPinButton;
2886
+ exports.MRT_TableContainer = MRT_TableContainer;
2887
+ exports.MRT_TableDetailPanel = MRT_TableDetailPanel;
2888
+ exports.MRT_TableFooter = MRT_TableFooter;
2889
+ exports.MRT_TableFooterCell = MRT_TableFooterCell;
2890
+ exports.MRT_TableFooterRow = MRT_TableFooterRow;
2891
+ exports.MRT_TableHead = MRT_TableHead;
2892
+ exports.MRT_TableHeadCell = MRT_TableHeadCell;
2893
+ exports.MRT_TableHeadCellFilterContainer = MRT_TableHeadCellFilterContainer;
2894
+ exports.MRT_TableHeadCellFilterLabel = MRT_TableHeadCellFilterLabel;
2895
+ exports.MRT_TableHeadCellGrabHandle = MRT_TableHeadCellGrabHandle;
2896
+ exports.MRT_TableHeadCellResizeHandle = MRT_TableHeadCellResizeHandle;
2897
+ exports.MRT_TableHeadCellSortLabel = MRT_TableHeadCellSortLabel;
2898
+ exports.MRT_TableHeadRow = MRT_TableHeadRow;
2899
+ exports.MRT_TablePagination = MRT_TablePagination;
2900
+ exports.MRT_TablePaper = MRT_TablePaper;
2901
+ exports.MRT_ToggleDensePaddingButton = MRT_ToggleDensePaddingButton;
2902
+ exports.MRT_ToggleFiltersButton = MRT_ToggleFiltersButton;
2903
+ exports.MRT_ToggleFullScreenButton = MRT_ToggleFullScreenButton;
2904
+ exports.MRT_ToggleGlobalFilterButton = MRT_ToggleGlobalFilterButton;
2905
+ exports.MRT_ToggleRowActionMenuButton = MRT_ToggleRowActionMenuButton;
2906
+ exports.MRT_ToolbarAlertBanner = MRT_ToolbarAlertBanner;
2907
+ exports.MRT_ToolbarDropZone = MRT_ToolbarDropZone;
2908
+ exports.MRT_ToolbarInternalButtons = MRT_ToolbarInternalButtons;
2909
+ exports.MRT_TopToolbar = MRT_TopToolbar;
2910
+ exports.MantineReactTable = MantineReactTable;
2911
+ exports.Memo_MRT_TableBody = Memo_MRT_TableBody;
2912
+ exports.Memo_MRT_TableBodyCell = Memo_MRT_TableBodyCell;
2913
+ exports.Memo_MRT_TableBodyRow = Memo_MRT_TableBodyRow;
2914
+ exports.createRow = createRow;
2915
+ exports.dataVariable = dataVariable;
2916
+ exports.defaultDisplayColumnProps = defaultDisplayColumnProps;
2917
+ exports.getAllLeafColumnDefs = getAllLeafColumnDefs;
2918
+ exports.getCanRankRows = getCanRankRows;
2919
+ exports.getColumnId = getColumnId;
2920
+ exports.getDefaultColumnFilterFn = getDefaultColumnFilterFn;
2921
+ exports.getDefaultColumnOrderIds = getDefaultColumnOrderIds;
2922
+ exports.getIsRankingRows = getIsRankingRows;
2923
+ exports.getIsRowSelected = getIsRowSelected;
2924
+ exports.getLeadingDisplayColumnIds = getLeadingDisplayColumnIds;
2925
+ exports.getMRT_RowSelectionHandler = getMRT_RowSelectionHandler;
2926
+ exports.getMRT_Rows = getMRT_Rows;
2927
+ exports.getMRT_SelectAllHandler = getMRT_SelectAllHandler;
2928
+ exports.getPrimaryColor = getPrimaryColor;
2929
+ exports.getPrimaryShade = getPrimaryShade;
2930
+ exports.getTrailingDisplayColumnIds = getTrailingDisplayColumnIds;
2931
+ exports.localizedFilterOption = localizedFilterOption;
2932
+ exports.mrtFilterOptions = mrtFilterOptions;
2933
+ exports.parseCSSVarId = parseCSSVarId;
2934
+ exports.prepareColumns = prepareColumns;
2935
+ exports.rankGlobalFuzzy = rankGlobalFuzzy;
2936
+ exports.reorderColumn = reorderColumn;
2937
+ exports.showRowActionsColumn = showRowActionsColumn;
2938
+ exports.showRowDragColumn = showRowDragColumn;
2939
+ exports.showRowExpandColumn = showRowExpandColumn;
2940
+ exports.showRowNumbersColumn = showRowNumbersColumn;
2941
+ exports.showRowPinningColumn = showRowPinningColumn;
2942
+ exports.showRowSelectionColumn = showRowSelectionColumn;
2943
+ exports.showRowSpacerColumn = showRowSpacerColumn;
2944
+ exports.useMRT_ColumnVirtualizer = useMRT_ColumnVirtualizer;
2945
+ exports.useMRT_Effects = useMRT_Effects;
2946
+ exports.useMRT_RowVirtualizer = useMRT_RowVirtualizer;
2947
+ exports.useMRT_Rows = useMRT_Rows;
2948
+ exports.useMRT_TableInstance = useMRT_TableInstance;
2949
+ exports.useMRT_TableOptions = useMRT_TableOptions;
2950
+ exports.useMantineReactTable = useMantineReactTable;