@konstructio/ui 0.1.2-alpha.78 → 0.1.2-alpha.79

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 (506) hide show
  1. package/dist/AdditionalOptions-Cx9wU01w.js +37 -0
  2. package/dist/AlertDialogTrigger-C-NMEoDd.js +146 -0
  3. package/dist/Breadcrumb-C95aOsYk.js +77 -0
  4. package/dist/CalendarPanel.css +1 -1
  5. package/dist/Checkbox-Cn0UWlk8.js +239 -0
  6. package/dist/Combination-DUTBK_qM.js +486 -0
  7. package/dist/CommandInput-BKv-EZ7T.js +76 -0
  8. package/dist/Counter-DtQu_T-D.js +191 -0
  9. package/dist/DayPicker-CNWQ1Oyd.js +2884 -0
  10. package/dist/DropdownButton-B2XkEqPt.js +92 -0
  11. package/dist/FlagSelectorList-C17nmEBM.js +597 -0
  12. package/dist/ImageUpload-BzXjGZ2w.js +181 -0
  13. package/dist/Input-GBMxM3Z7.js +188 -0
  14. package/dist/Loading-DKqxR-oV.js +16 -0
  15. package/dist/Modal-DbTe8PVX.js +76 -0
  16. package/dist/Spinner-CyuXAaC8.js +41 -0
  17. package/dist/StepIndicatorContent-D5z1Ziqg.js +30 -0
  18. package/dist/Switch-DjbC0A8y.js +136 -0
  19. package/dist/Toast-C3XjAvtC.js +478 -0
  20. package/dist/Wrapper-BWSOaT1y.js +1056 -0
  21. package/dist/Wrapper-CjUokv72.js +110 -0
  22. package/dist/Wrapper-DEJ-hyar.js +161 -0
  23. package/dist/assets/icons/components/Accounts.js +21 -35
  24. package/dist/assets/icons/components/AddChart.js +17 -25
  25. package/dist/assets/icons/components/AlertOutline.js +18 -26
  26. package/dist/assets/icons/components/AppRepo.js +14 -22
  27. package/dist/assets/icons/components/Apps.js +14 -22
  28. package/dist/assets/icons/components/Archives.js +14 -22
  29. package/dist/assets/icons/components/ArrowDown.js +14 -22
  30. package/dist/assets/icons/components/ArrowLeft.js +17 -25
  31. package/dist/assets/icons/components/ArrowRight.js +18 -26
  32. package/dist/assets/icons/components/ArrowUp.js +18 -26
  33. package/dist/assets/icons/components/BarChart.js +24 -32
  34. package/dist/assets/icons/components/BookOpen.js +18 -26
  35. package/dist/assets/icons/components/CalendarMonth.js +17 -25
  36. package/dist/assets/icons/components/Check.js +17 -25
  37. package/dist/assets/icons/components/CheckCircleFilled.js +25 -26
  38. package/dist/assets/icons/components/CheckCircleOutline.js +14 -22
  39. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +14 -20
  40. package/dist/assets/icons/components/ClockAlert.js +17 -25
  41. package/dist/assets/icons/components/ClockOutline.js +17 -25
  42. package/dist/assets/icons/components/Close.js +17 -25
  43. package/dist/assets/icons/components/Cloud.js +14 -19
  44. package/dist/assets/icons/components/CloudLockOutline.js +17 -25
  45. package/dist/assets/icons/components/Clusters.js +27 -41
  46. package/dist/assets/icons/components/CogOutline.js +17 -25
  47. package/dist/assets/icons/components/Copy.js +17 -25
  48. package/dist/assets/icons/components/Cpu.js +22 -36
  49. package/dist/assets/icons/components/Cube.js +14 -22
  50. package/dist/assets/icons/components/Datacenter.js +14 -22
  51. package/dist/assets/icons/components/Delete.js +18 -26
  52. package/dist/assets/icons/components/DollarSign.js +20 -28
  53. package/dist/assets/icons/components/Download.js +17 -25
  54. package/dist/assets/icons/components/Edit.js +17 -25
  55. package/dist/assets/icons/components/Ellipses.js +17 -25
  56. package/dist/assets/icons/components/Environments.js +19 -27
  57. package/dist/assets/icons/components/Error.js +17 -25
  58. package/dist/assets/icons/components/ErrorOutline.js +17 -25
  59. package/dist/assets/icons/components/Exclamation.js +21 -26
  60. package/dist/assets/icons/components/Git.js +17 -25
  61. package/dist/assets/icons/components/GitOpsCatalog.js +21 -35
  62. package/dist/assets/icons/components/GridView.js +11 -16
  63. package/dist/assets/icons/components/Help.js +24 -23
  64. package/dist/assets/icons/components/HideOutline.js +18 -32
  65. package/dist/assets/icons/components/Home.js +17 -25
  66. package/dist/assets/icons/components/Home2.js +20 -25
  67. package/dist/assets/icons/components/Id.js +14 -22
  68. package/dist/assets/icons/components/InfoCircle.js +28 -29
  69. package/dist/assets/icons/components/InformationOutline.js +14 -22
  70. package/dist/assets/icons/components/InvoiceList.js +17 -25
  71. package/dist/assets/icons/components/Key.js +17 -25
  72. package/dist/assets/icons/components/LightBulb.js +24 -38
  73. package/dist/assets/icons/components/Loader.js +15 -23
  74. package/dist/assets/icons/components/Network.js +14 -22
  75. package/dist/assets/icons/components/PagesStack.js +24 -23
  76. package/dist/assets/icons/components/Pageview.js +17 -25
  77. package/dist/assets/icons/components/People.js +17 -25
  78. package/dist/assets/icons/components/PhotoLibrary.js +17 -25
  79. package/dist/assets/icons/components/Pipeline.js +19 -27
  80. package/dist/assets/icons/components/Plus.js +17 -25
  81. package/dist/assets/icons/components/PowerSettings.js +15 -23
  82. package/dist/assets/icons/components/Preview.js +14 -22
  83. package/dist/assets/icons/components/ReceiptLong.js +11 -16
  84. package/dist/assets/icons/components/Refresh.js +14 -22
  85. package/dist/assets/icons/components/ScatterPlot.js +14 -19
  86. package/dist/assets/icons/components/Search.js +26 -26
  87. package/dist/assets/icons/components/Server.js +18 -26
  88. package/dist/assets/icons/components/Start.js +18 -26
  89. package/dist/assets/icons/components/TabNew.js +31 -45
  90. package/dist/assets/icons/components/Teams.js +17 -25
  91. package/dist/assets/icons/components/Upload.js +17 -25
  92. package/dist/assets/icons/components/Warning.js +17 -25
  93. package/dist/assets/icons/components/WarningTriangle.js +17 -25
  94. package/dist/assets/icons/components/X.js +17 -25
  95. package/dist/assets/icons/components/index.js +82 -82
  96. package/dist/assets/icons/index.js +88 -88
  97. package/dist/chevron-down-DgssmYWu.js +8 -0
  98. package/dist/chevron-left-DRJXef9g.js +8 -0
  99. package/dist/chevron-right-BooB_b7g.js +8 -0
  100. package/dist/chevron-up-DuS9MUNr.js +8 -0
  101. package/dist/chunk-D1xtDmiO.js +31 -0
  102. package/dist/{clsx-OuTLNxxd.js → clsx-kDhLfUq2.js} +1 -1
  103. package/dist/components/Alert/Alert.js +53 -57
  104. package/dist/components/Alert/Alert.variants.js +90 -105
  105. package/dist/components/AlertDialog/AlertDialog.js +66 -124
  106. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -6
  107. package/dist/components/AlertDialog/components/index.js +2 -2
  108. package/dist/components/AlertDialog/hooks/useAlertDialog.js +12 -7
  109. package/dist/components/Autocomplete/Autocomplete.js +55 -79
  110. package/dist/components/Autocomplete/Autocomplete.variants.js +7 -3
  111. package/dist/components/Autocomplete/components/List/List.js +30 -42
  112. package/dist/components/Autocomplete/components/List/List.variants.js +7 -7
  113. package/dist/components/Autocomplete/components/index.js +2 -2
  114. package/dist/components/Autocomplete/hooks/useAutocomplete.js +30 -61
  115. package/dist/components/Autocomplete/hooks/useNavigationList.js +42 -54
  116. package/dist/components/Badge/Badge.js +59 -74
  117. package/dist/components/Badge/Badge.variants.js +89 -99
  118. package/dist/components/Breadcrumb/Breadcrumb.js +2 -89
  119. package/dist/components/Breadcrumb/Breadcrumb.variants.js +9 -5
  120. package/dist/components/Breadcrumb/components/Item/Item.js +31 -45
  121. package/dist/components/Breadcrumb/components/Item/Item.variants.js +52 -65
  122. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -2
  123. package/dist/components/Button/Button.js +21 -39
  124. package/dist/components/Button/Button.variants.js +314 -291
  125. package/dist/components/ButtonGroup/ButtonGroup.js +80 -134
  126. package/dist/components/ButtonGroup/ButtonGroup.variants.js +20 -27
  127. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +55 -111
  128. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +88 -101
  129. package/dist/components/ButtonGroup/components/ButtonGroupItem/index.js +2 -2
  130. package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +20 -42
  131. package/dist/components/ButtonGroup/components/ButtonGroupLabel/index.js +2 -2
  132. package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +13 -32
  133. package/dist/components/ButtonGroup/components/index.js +6 -6
  134. package/dist/components/ButtonGroup/hooks/index.js +2 -2
  135. package/dist/components/ButtonGroup/hooks/useButtonGroup.js +27 -40
  136. package/dist/components/Card/Card.js +20 -32
  137. package/dist/components/Card/Card.variants.js +40 -39
  138. package/dist/components/Checkbox/Checkbox.js +2 -364
  139. package/dist/components/Checkbox/Checkbox.variants.js +54 -64
  140. package/dist/components/Command/Command.js +27 -36
  141. package/dist/components/Command/Command.variants.js +3 -3
  142. package/dist/components/Command/components/Command.js +13 -5
  143. package/dist/components/Command/components/CommandEmpty.js +10 -13
  144. package/dist/components/Command/components/CommandGroup.js +8 -14
  145. package/dist/components/Command/components/CommandInput.js +2 -82
  146. package/dist/components/Command/components/CommandItem.js +16 -25
  147. package/dist/components/Command/components/CommandList.js +9 -12
  148. package/dist/components/Command/components/CommandSeparator.js +9 -12
  149. package/dist/components/Command/components/CommandShortcut.js +8 -17
  150. package/dist/components/Command/components/DialogContent.js +19 -28
  151. package/dist/components/Command/components/DialogOverlay.js +11 -17
  152. package/dist/components/Command/components/index.js +16 -16
  153. package/dist/components/Command/contexts/Command.context.js +1 -1
  154. package/dist/components/Command/contexts/Command.provider.js +15 -21
  155. package/dist/components/Command/contexts/index.js +2 -2
  156. package/dist/components/Counter/Counter.js +3 -209
  157. package/dist/components/Counter/Counter.variants.js +35 -48
  158. package/dist/components/DateRangePicker/DateRangePicker.js +68 -153
  159. package/dist/components/DateRangePicker/DateRangePicker.variants.js +5 -5
  160. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +64 -104
  161. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +17 -17
  162. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +5 -17
  163. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +34 -56
  164. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +181 -304
  165. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +17 -36
  166. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +79 -127
  167. package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +6 -6
  168. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +2 -3
  169. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +10 -147
  170. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +19 -19
  171. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +98 -96
  172. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +75 -60
  173. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +8 -8
  174. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +54 -97
  175. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +13 -8
  176. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +40 -87
  177. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +41 -88
  178. package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.js +2 -2
  179. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.js +2 -2
  180. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +151 -156
  181. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +37 -61
  182. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +2 -2
  183. package/dist/components/DateRangePicker/components/index.js +6 -6
  184. package/dist/components/DateRangePicker/constants/index.js +2 -2
  185. package/dist/components/DateRangePicker/constants/presets.js +21 -6
  186. package/dist/components/DateRangePicker/contexts/date-range-picker.context.js +3 -3
  187. package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +4 -7
  188. package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +113 -170
  189. package/dist/components/DateRangePicker/contexts/index.js +6 -6
  190. package/dist/components/DateRangePicker/utils/disabled-dates.js +25 -45
  191. package/dist/components/DateRangePicker/utils/index.js +20 -20
  192. package/dist/components/DateRangePicker/utils/presets.js +6 -8
  193. package/dist/components/DateRangePicker/utils/validation.js +48 -60
  194. package/dist/components/Datepicker/DatePicker.js +45 -133
  195. package/dist/components/Datepicker/DatePicker.variants.js +3 -3
  196. package/dist/components/Divider/Divider.js +6 -6
  197. package/dist/components/Divider/Divider.variants.js +9 -11
  198. package/dist/components/Drawer/Drawer.js +67 -125
  199. package/dist/components/Drawer/Drawer.variants.js +59 -73
  200. package/dist/components/Drawer/components/Body/Body.js +8 -17
  201. package/dist/components/Drawer/components/Body/index.js +2 -2
  202. package/dist/components/Drawer/components/Footer/Footer.js +10 -21
  203. package/dist/components/Drawer/components/Footer/index.js +2 -2
  204. package/dist/components/Drawer/components/Header/Header.js +11 -22
  205. package/dist/components/Drawer/components/Header/index.js +2 -2
  206. package/dist/components/Drawer/components/index.js +6 -6
  207. package/dist/components/Drawer/constants/index.js +1 -1
  208. package/dist/components/Drawer/contexts/Drawer.context.js +4 -4
  209. package/dist/components/Drawer/contexts/index.js +3 -3
  210. package/dist/components/Drawer/hooks/index.js +2 -2
  211. package/dist/components/Drawer/hooks/useDrawer.js +32 -36
  212. package/dist/components/DropdownButton/DropdownButton.js +2 -133
  213. package/dist/components/Filter/Filter.js +23 -20
  214. package/dist/components/Filter/Filter.variants.js +9 -5
  215. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +48 -82
  216. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -143
  217. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +40 -71
  218. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +50 -119
  219. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +35 -57
  220. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +53 -116
  221. package/dist/components/Filter/components/ResetButton/ResetButton.js +19 -30
  222. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +72 -135
  223. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +33 -54
  224. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +72 -143
  225. package/dist/components/Filter/components/index.js +6 -6
  226. package/dist/components/Filter/contexts/filter.context.js +2 -4
  227. package/dist/components/Filter/contexts/filter.hook.js +5 -6
  228. package/dist/components/Filter/contexts/filter.provider.js +6 -3
  229. package/dist/components/Filter/contexts/index.js +4 -4
  230. package/dist/components/Filter/events/index.js +4 -8
  231. package/dist/components/Filter/utils/index.js +2 -2435
  232. package/dist/components/ImageUpload/ImageUpload.js +2 -221
  233. package/dist/components/ImageUpload/ImageUpload.variants.js +78 -95
  234. package/dist/components/Input/Input.js +2 -286
  235. package/dist/components/Input/Input.variants.js +47 -54
  236. package/dist/components/LineChart/LineChart.js +103 -133
  237. package/dist/components/Loading/Loading.js +2 -18
  238. package/dist/components/Loading/Loading.variants.js +2 -2
  239. package/dist/components/Modal/Modal.js +3 -8
  240. package/dist/components/Modal/components/Body/Body.js +8 -5
  241. package/dist/components/Modal/components/Footer/Footer.js +8 -11
  242. package/dist/components/Modal/components/Header/Header.js +8 -11
  243. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -10
  244. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +2 -2
  245. package/dist/components/Modal/components/index.js +8 -8
  246. package/dist/components/Modal/contexts/Modal.context.js +2 -4
  247. package/dist/components/Modal/contexts/Modal.provider.js +17 -20
  248. package/dist/components/Modal/contexts/index.js +2 -2
  249. package/dist/components/Modal/hooks/useModal.js +10 -10
  250. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +2 -32
  251. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +6 -6
  252. package/dist/components/MultiSelectDropdown/components/Item/Item.js +16 -24
  253. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +26 -35
  254. package/dist/components/MultiSelectDropdown/components/List/List.js +2 -28
  255. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +3 -3
  256. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +2 -124
  257. package/dist/components/MultiSelectDropdown/components/index.js +4 -5
  258. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -4
  259. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +3 -6
  260. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +100 -131
  261. package/dist/components/MultiSelectDropdown/contexts/index.js +2 -2
  262. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +12 -21
  263. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +11 -5
  264. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +31 -38
  265. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +15 -32
  266. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +2 -728
  267. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +22 -54
  268. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +37 -30
  269. package/dist/components/PhoneNumberInput/components/Wrapper.js +2 -650
  270. package/dist/components/PhoneNumberInput/components/index.js +4 -4
  271. package/dist/components/PhoneNumberInput/contexts/index.js +3 -3
  272. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +1 -1
  273. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +5 -8
  274. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +2 -6064
  275. package/dist/components/PhoneNumberInput/utils/index.js +7 -8
  276. package/dist/components/PieChart/PieChart.js +40 -66
  277. package/dist/components/ProgressBar/ProgressBar.js +27 -36
  278. package/dist/components/ProgressBar/ProgressBar.variants.js +19 -26
  279. package/dist/components/Radio/Radio.js +51 -95
  280. package/dist/components/Radio/Radio.variants.js +82 -88
  281. package/dist/components/RadioCard/RadioCard.js +14 -31
  282. package/dist/components/RadioCard/RadioCard.variants.js +7 -2
  283. package/dist/components/RadioCardGroup/RadioCardGroup.js +24 -42
  284. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +8 -12
  285. package/dist/components/RadioGroup/RadioGroup.js +26 -48
  286. package/dist/components/RadioGroup/RadioGroup.variants.js +8 -12
  287. package/dist/components/Range/Range.js +47 -59
  288. package/dist/components/Range/Range.variants.js +35 -44
  289. package/dist/components/Select/Select.js +35 -68
  290. package/dist/components/Select/Select.variants.js +49 -48
  291. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +2 -9
  292. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +3 -24
  293. package/dist/components/Select/components/EmptyList.js +2 -2
  294. package/dist/components/Select/components/List/List.js +126 -180
  295. package/dist/components/Select/components/List/List.variants.js +3 -3
  296. package/dist/components/Select/components/ListItem/ListItem.js +54 -107
  297. package/dist/components/Select/components/ListItem/ListItem.variants.js +3 -3
  298. package/dist/components/Select/components/Wrapper.js +2 -248
  299. package/dist/components/Select/components/index.js +8 -8
  300. package/dist/components/Select/constants/index.js +4 -4
  301. package/dist/components/Select/constants/list.js +2 -2
  302. package/dist/components/Select/constants/pagination.js +2 -2
  303. package/dist/components/Select/contexts/index.js +4 -4
  304. package/dist/components/Select/contexts/select.context.js +2 -2
  305. package/dist/components/Select/contexts/select.hook.js +6 -7
  306. package/dist/components/Select/contexts/select.provider.js +41 -51
  307. package/dist/components/Select/hooks/useNavigationList.js +28 -37
  308. package/dist/components/Select/hooks/useSelect.js +36 -72
  309. package/dist/components/Sidebar/Sidebar.js +22 -21
  310. package/dist/components/Sidebar/Sidebar.variants.js +4 -4
  311. package/dist/components/Sidebar/components/Footer/Footer.js +9 -6
  312. package/dist/components/Sidebar/components/Footer/Footer.variants.js +2 -2
  313. package/dist/components/Sidebar/components/Logo/Logo.js +7 -4
  314. package/dist/components/Sidebar/components/Logo/Logo.variants.js +2 -2
  315. package/dist/components/Sidebar/components/Navigation/Navigation.js +13 -13
  316. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +8 -3
  317. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +12 -22
  318. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +6 -2
  319. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +12 -23
  320. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +33 -40
  321. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +4 -4
  322. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +2 -2
  323. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -6
  324. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +3 -3
  325. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +31 -77
  326. package/dist/components/Sidebar/components/index.js +14 -14
  327. package/dist/components/Slider/Slider.js +38 -56
  328. package/dist/components/Slider/Slider.variants.js +36 -45
  329. package/dist/components/Spinner/Spinner.js +2 -55
  330. package/dist/components/Spinner/Spinner.variants.js +37 -51
  331. package/dist/components/Stepper/Stepper.js +44 -71
  332. package/dist/components/Stepper/Stepper.variants.js +270 -229
  333. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +119 -196
  334. package/dist/components/Stepper/components/StepConnector/StepConnector.js +14 -26
  335. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +2 -21
  336. package/dist/components/Stepper/components/StepItem/StepItem.js +4 -4
  337. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +69 -111
  338. package/dist/components/Stepper/constants/index.js +1 -1
  339. package/dist/components/Stepper/hooks/index.js +2 -2
  340. package/dist/components/Stepper/hooks/useStepItemLogic.js +15 -18
  341. package/dist/components/Stepper/utils/index.js +4 -5
  342. package/dist/components/Switch/Switch.js +2 -228
  343. package/dist/components/Switch/Switch.variants.js +2 -2
  344. package/dist/components/Table/Table.js +17 -24
  345. package/dist/components/Table/Table.variants.js +18 -25
  346. package/dist/components/Table/components/Body.js +8 -15
  347. package/dist/components/Table/components/Filter.js +13 -7
  348. package/dist/components/Table/components/Head.js +9 -16
  349. package/dist/components/Table/components/Row.js +14 -26
  350. package/dist/components/Table/components/index.js +6 -6
  351. package/dist/components/Tabs/Tabs.js +20 -20
  352. package/dist/components/Tabs/Tabs.variants.js +55 -72
  353. package/dist/components/Tabs/components/Content.js +12 -12
  354. package/dist/components/Tabs/components/List.js +16 -18
  355. package/dist/components/Tabs/components/Trigger.js +13 -15
  356. package/dist/components/Tabs/components/index.js +4 -4
  357. package/dist/components/Tag/Tag.js +25 -16
  358. package/dist/components/Tag/Tag.variants.js +32 -39
  359. package/dist/components/TagSelect/TagSelect.js +13 -7
  360. package/dist/components/TagSelect/TagSelect.variants.js +6 -6
  361. package/dist/components/TagSelect/components/Item/Item.js +13 -16
  362. package/dist/components/TagSelect/components/Item/Item.variants.js +21 -30
  363. package/dist/components/TagSelect/components/List/List.js +15 -7
  364. package/dist/components/TagSelect/components/List/List.variants.js +3 -3
  365. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -85
  366. package/dist/components/TagSelect/components/index.js +6 -6
  367. package/dist/components/TagSelect/contexts/TagSelect.context.js +1 -1
  368. package/dist/components/TagSelect/contexts/TagSelect.hook.js +6 -7
  369. package/dist/components/TagSelect/contexts/TagSelect.provider.js +43 -59
  370. package/dist/components/TagSelect/contexts/index.js +4 -4
  371. package/dist/components/TagSelect/hooks/useTagSelect.js +13 -22
  372. package/dist/components/TextArea/TextArea.js +26 -33
  373. package/dist/components/TextArea/TextArea.variants.js +3 -3
  374. package/dist/components/TimePicker/TimePicker.js +12 -10
  375. package/dist/components/TimePicker/TimePicker.variants.js +2 -2
  376. package/dist/components/TimePicker/components/HoursList/HoursList.js +84 -110
  377. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +53 -88
  378. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +56 -82
  379. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +128 -221
  380. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +34 -71
  381. package/dist/components/TimePicker/components/index.js +2 -2
  382. package/dist/components/TimePicker/contexts/index.js +6 -6
  383. package/dist/components/TimePicker/contexts/time-picker.context.js +1 -1
  384. package/dist/components/TimePicker/contexts/time-picker.hook.js +4 -7
  385. package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -48
  386. package/dist/components/TimePicker/utils/index.js +17 -19
  387. package/dist/components/Toast/Toast.js +3 -511
  388. package/dist/components/Toast/Toast.variants.js +32 -35
  389. package/dist/components/Tooltip/Tooltip.js +15 -34
  390. package/dist/components/Typography/Typography.js +16 -24
  391. package/dist/components/Typography/Typography.variants.js +72 -62
  392. package/dist/components/VirtualizedTable/VirtualizedTable.js +89 -159
  393. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +1 -1
  394. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +2 -2
  395. package/dist/components/VirtualizedTable/assets/chevron-down.js +13 -22
  396. package/dist/components/VirtualizedTable/assets/chevron-up.js +13 -22
  397. package/dist/components/VirtualizedTable/assets/index.js +4 -4
  398. package/dist/components/VirtualizedTable/components/Actions/Actions.js +34 -115
  399. package/dist/components/VirtualizedTable/components/Body/Body.js +49 -111
  400. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +91 -157
  401. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -30
  402. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +27 -47
  403. package/dist/components/VirtualizedTable/components/Filter/Filter.js +99 -164
  404. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +41 -56
  405. package/dist/components/VirtualizedTable/components/Header/Header.js +36 -98
  406. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +28 -62
  407. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +38 -101
  408. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +29 -49
  409. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +9 -23
  410. package/dist/components/VirtualizedTable/components/index.js +10 -10
  411. package/dist/components/VirtualizedTable/constants/index.js +3 -3
  412. package/dist/components/VirtualizedTable/constants/pagination.js +6 -1
  413. package/dist/components/VirtualizedTable/contexts/index.js +6 -6
  414. package/dist/components/VirtualizedTable/contexts/table.context.js +3 -3
  415. package/dist/components/VirtualizedTable/contexts/table.hook.js +7 -8
  416. package/dist/components/VirtualizedTable/contexts/table.provider.js +2 -268
  417. package/dist/components/VirtualizedTable/contexts/table.types.d.ts +1 -1
  418. package/dist/components/VirtualizedTable/events/index.js +19 -24
  419. package/dist/components/index.js +140 -140
  420. package/dist/components-DNFycJGm.js +120 -0
  421. package/dist/constants-D96yCePL.js +31 -0
  422. package/dist/contexts/index.js +6 -6
  423. package/dist/contexts/theme.context.js +2 -2
  424. package/dist/contexts/theme.hook.js +2 -2
  425. package/dist/contexts/theme.provider.js +2 -84
  426. package/dist/createLucideIcon-BVGkzDZC.js +42 -0
  427. package/dist/debounce-CzFlgg9h.js +86 -0
  428. package/dist/dist-B5SlrgYz.js +263 -0
  429. package/dist/{index-BZPx6jYI.js → dist-BL-H4bEw2.js} +5 -2
  430. package/dist/dist-BL8l9uRy.js +361 -0
  431. package/dist/{index-DLcqcWxM.js → dist-ByyYBtbL.js} +9 -11
  432. package/dist/dist-C8r5DW7s.js +10 -0
  433. package/dist/dist-CBnErrr1.js +58 -0
  434. package/dist/dist-COY3FRYC.js +480 -0
  435. package/dist/dist-CSP6X06u.js +1701 -0
  436. package/dist/dist-DNSmoWJp.js +469 -0
  437. package/dist/dist-DRmqW28Z2.js +7479 -0
  438. package/dist/dist-DXJSck4j.js +74 -0
  439. package/dist/dist-DXXHfL7M.js +132 -0
  440. package/dist/dist-DZNdbzbm.js +120 -0
  441. package/dist/dist-DZcOdXgW.js +13 -0
  442. package/dist/dist-DeVdyMHW2.js +31 -0
  443. package/dist/{index-3fEdeexs.js → dist-DpqiA4Yn.js} +25 -28
  444. package/dist/dist-DstQl8xY.js +10 -0
  445. package/dist/dist-DtEbXv47.js +34 -0
  446. package/dist/dist-uVUx9i0a.js +223 -0
  447. package/dist/ellipsis-vertical-My0S9QY5.js +24 -0
  448. package/dist/hooks/index.js +2 -2
  449. package/dist/hooks/useToggle.js +5 -8
  450. package/dist/icons.js +88 -88
  451. package/dist/index.js +150 -149
  452. package/dist/isObject--aYwGuhx.js +62 -0
  453. package/dist/libphonenumber-7uXgv7U8.js +81977 -0
  454. package/dist/package.json +18 -18
  455. package/dist/phone-number.provider-B5TfHi8y.js +6646 -0
  456. package/dist/prop-types-DTnODft1.js +547 -0
  457. package/dist/proxy-uLtw-ZML.js +4690 -0
  458. package/dist/style.css +1 -1
  459. package/dist/styles.css +1 -1
  460. package/dist/{index-CSWGJT-v.js → table.provider-4OQNqxH3.js} +805 -674
  461. package/dist/theme.provider-BgxXUOMP.js +74 -0
  462. package/dist/useBreadcrumb-BBm5lX0U.js +1263 -0
  463. package/dist/utils/index.js +5 -2922
  464. package/dist/utils-CQSRNcoF.js +2022 -0
  465. package/dist/utils-DHuiYnx1.js +1689 -0
  466. package/dist/x-BwIi6Wii.js +63 -0
  467. package/dist/x-a0ouxoIM.js +11 -0
  468. package/package.json +18 -18
  469. package/dist/AdditionalOptions-C2FDVZhu.js +0 -45
  470. package/dist/Combination-BtmnusWq.js +0 -480
  471. package/dist/DayPicker-CaeUXRCF.js +0 -2798
  472. package/dist/Modal-DAWdufZ_.js +0 -120
  473. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  474. package/dist/chevron-down-BBFYYzZq.js +0 -5
  475. package/dist/chevron-left-BHBf-gQY.js +0 -5
  476. package/dist/chevron-right-DvXGOiS_.js +0 -5
  477. package/dist/chevron-up-DEfvgPCw.js +0 -54
  478. package/dist/chevron-up-IlDPxR7j.js +0 -5
  479. package/dist/createLucideIcon-CP-mMPfa.js +0 -75
  480. package/dist/debounce-DJveWHr_.js +0 -114
  481. package/dist/ellipsis-vertical-Cl3yNtOy.js +0 -9
  482. package/dist/index--l0zux8V.js +0 -200
  483. package/dist/index-0ioNhtNM.js +0 -10
  484. package/dist/index-BKMaItIC.js +0 -13
  485. package/dist/index-BKjcReYh.js +0 -55
  486. package/dist/index-BOE_3f_Z.js +0 -646
  487. package/dist/index-BRXMsxSL.js +0 -27
  488. package/dist/index-BdMNhZnh.js +0 -9
  489. package/dist/index-BmVmDQGH.js +0 -662
  490. package/dist/index-BvEpLnOv.js +0 -144
  491. package/dist/index-BvoZGpli.js +0 -60
  492. package/dist/index-C7zAY3xv.js +0 -139
  493. package/dist/index-CJnS4BVW.js +0 -93
  494. package/dist/index-Cmf-IG4l.js +0 -322
  495. package/dist/index-CrCTywU1.js +0 -314
  496. package/dist/index-D29mdTf5.js +0 -34
  497. package/dist/index-DWyM654o.js +0 -478
  498. package/dist/index-Jr0cra7i.js +0 -431
  499. package/dist/index-mPinF0Ho.js +0 -1885
  500. package/dist/index-qDQP8rW4.js +0 -7281
  501. package/dist/isObject-9XxUefZH.js +0 -97
  502. package/dist/libphonenumber-aZ-2KWIf.js +0 -11581
  503. package/dist/proxy-BGrSEZuV.js +0 -5046
  504. package/dist/useBreadcrumb-C_Wb2cXs.js +0 -1435
  505. package/dist/x-B9bYxG31.js +0 -8
  506. package/dist/x-Eoa9FJjA.js +0 -62
@@ -1,22 +1,31 @@
1
- import * as j from "react";
2
- function I(e, o) {
1
+ import { n as ht } from "./dist-CBnErrr1.js";
2
+ import { t as le } from "./utils-DHuiYnx1.js";
3
+ import { t as _t } from "./chevron-right-BooB_b7g.js";
4
+ import "./components/VirtualizedTable/constants/pagination.js";
5
+ import { TableContext as Ft } from "./components/VirtualizedTable/contexts/table.context.js";
6
+ import { VirtualizedTableEvent as he } from "./components/VirtualizedTable/events/index.js";
7
+ import * as ye from "react";
8
+ import { useCallback as H, useEffect as _e, useMemo as N, useState as P } from "react";
9
+ import { jsx as se } from "react/jsx-runtime";
10
+ import { useQuery as $t } from "@tanstack/react-query";
11
+ function O(e, o) {
3
12
  return typeof e == "function" ? e(o) : e;
4
13
  }
5
- function $(e, o) {
14
+ function x(e, o) {
6
15
  return (t) => {
7
16
  o.setState((n) => ({
8
17
  ...n,
9
- [e]: I(t, n[e])
18
+ [e]: O(t, n[e])
10
19
  }));
11
20
  };
12
21
  }
13
- function L(e) {
22
+ function de(e) {
14
23
  return e instanceof Function;
15
24
  }
16
- function Se(e) {
25
+ function Mt(e) {
17
26
  return Array.isArray(e) && e.every((o) => typeof o == "number");
18
27
  }
19
- function me(e, o) {
28
+ function Vt(e, o) {
20
29
  const t = [], n = (r) => {
21
30
  r.forEach((i) => {
22
31
  t.push(i);
@@ -32,20 +41,18 @@ function m(e, o, t) {
32
41
  let l;
33
42
  t.key && t.debug && (l = Date.now());
34
43
  const s = e(i);
35
- if (!(s.length !== n.length || s.some((d, S) => n[S] !== d)))
36
- return r;
44
+ if (!(s.length !== n.length || s.some((a, d) => n[d] !== a))) return r;
37
45
  n = s;
38
- let g;
39
- if (t.key && t.debug && (g = Date.now()), r = o(...s), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
40
- const d = Math.round((Date.now() - l) * 100) / 100, S = Math.round((Date.now() - g) * 100) / 100, f = S / 16, a = (c, p) => {
41
- for (c = String(c); c.length < p; )
42
- c = " " + c;
46
+ let u;
47
+ if (t.key && t.debug && (u = Date.now()), r = o(...s), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
48
+ const a = Math.round((Date.now() - l) * 100) / 100, d = Math.round((Date.now() - u) * 100) / 100, g = d / 16, f = (c, p) => {
49
+ for (c = String(c); c.length < p; ) c = " " + c;
43
50
  return c;
44
51
  };
45
- console.info(`%c⏱ ${a(S, 5)} /${a(d, 5)} ms`, `
52
+ console.info(`%c⏱ ${f(d, 5)} /${f(a, 5)} ms`, `
46
53
  font-size: .6rem;
47
54
  font-weight: bold;
48
- color: hsl(${Math.max(0, Math.min(120 - 120 * f, 120))}deg 100% 31%);`, t?.key);
55
+ color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, t?.key);
49
56
  }
50
57
  return r;
51
58
  };
@@ -60,7 +67,7 @@ function C(e, o, t, n) {
60
67
  onChange: n
61
68
  };
62
69
  }
63
- function Ce(e, o, t, n) {
70
+ function Pt(e, o, t, n) {
64
71
  const r = () => {
65
72
  var l;
66
73
  return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
@@ -70,63 +77,63 @@ function Ce(e, o, t, n) {
70
77
  column: t,
71
78
  getValue: () => o.getValue(n),
72
79
  renderValue: r,
73
- getContext: m(() => [e, t, o, i], (l, s, u, g) => ({
80
+ getContext: m(() => [
81
+ e,
82
+ t,
83
+ o,
84
+ i
85
+ ], (l, s, u, a) => ({
74
86
  table: l,
75
87
  column: s,
76
88
  row: u,
77
- cell: g,
78
- getValue: g.getValue,
79
- renderValue: g.renderValue
89
+ cell: a,
90
+ getValue: a.getValue,
91
+ renderValue: a.renderValue
80
92
  }), C(e.options, "debugCells", "cell.getContext"))
81
93
  };
82
94
  return e._features.forEach((l) => {
83
95
  l.createCell == null || l.createCell(i, t, o, e);
84
96
  }, {}), i;
85
97
  }
86
- function Re(e, o, t, n) {
98
+ function xt(e, o, t, n) {
87
99
  var r, i;
88
- const s = {
100
+ const l = {
89
101
  ...e._getDefaultColumnDef(),
90
102
  ...o
91
- }, u = s.accessorKey;
92
- let g = (r = (i = s.id) != null ? i : u ? typeof String.prototype.replaceAll == "function" ? u.replaceAll(".", "_") : u.replace(/\./g, "_") : void 0) != null ? r : typeof s.header == "string" ? s.header : void 0, d;
93
- if (s.accessorFn ? d = s.accessorFn : u && (u.includes(".") ? d = (f) => {
94
- let a = f;
95
- for (const p of u.split(".")) {
103
+ }, s = l.accessorKey;
104
+ let u = (r = (i = l.id) != null ? i : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? r : typeof l.header == "string" ? l.header : void 0, a;
105
+ if (l.accessorFn ? a = l.accessorFn : s && (s.includes(".") ? a = (g) => {
106
+ let f = g;
107
+ for (const p of s.split(".")) {
96
108
  var c;
97
- a = (c = a) == null ? void 0 : c[p], process.env.NODE_ENV !== "production" && a === void 0 && console.warn(`"${p}" in deeply nested key "${u}" returned undefined.`);
109
+ f = (c = f) == null ? void 0 : c[p], process.env.NODE_ENV !== "production" && f === void 0 && console.warn(`"${p}" in deeply nested key "${s}" returned undefined.`);
98
110
  }
99
- return a;
100
- } : d = (f) => f[s.accessorKey]), !g)
101
- throw process.env.NODE_ENV !== "production" ? new Error(s.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
102
- let S = {
103
- id: `${String(g)}`,
104
- accessorFn: d,
111
+ return f;
112
+ } : a = (g) => g[l.accessorKey]), !u)
113
+ throw process.env.NODE_ENV !== "production" ? new Error(l.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
114
+ let d = {
115
+ id: `${String(u)}`,
116
+ accessorFn: a,
105
117
  parent: n,
106
118
  depth: t,
107
- columnDef: s,
119
+ columnDef: l,
108
120
  columns: [],
109
121
  getFlatColumns: m(() => [!0], () => {
110
- var f;
111
- return [S, ...(f = S.columns) == null ? void 0 : f.flatMap((a) => a.getFlatColumns())];
122
+ var g;
123
+ return [d, ...(g = d.columns) == null ? void 0 : g.flatMap((f) => f.getFlatColumns())];
112
124
  }, C(e.options, "debugColumns", "column.getFlatColumns")),
113
- getLeafColumns: m(() => [e._getOrderColumnsFn()], (f) => {
114
- var a;
115
- if ((a = S.columns) != null && a.length) {
116
- let c = S.columns.flatMap((p) => p.getLeafColumns());
117
- return f(c);
118
- }
119
- return [S];
125
+ getLeafColumns: m(() => [e._getOrderColumnsFn()], (g) => {
126
+ var f;
127
+ return (f = d.columns) != null && f.length ? g(d.columns.flatMap((c) => c.getLeafColumns())) : [d];
120
128
  }, C(e.options, "debugColumns", "column.getLeafColumns"))
121
129
  };
122
- for (const f of e._features)
123
- f.createColumn == null || f.createColumn(S, e);
124
- return S;
130
+ for (const g of e._features) g.createColumn == null || g.createColumn(d, e);
131
+ return d;
125
132
  }
126
- const _ = "debugHeaders";
127
- function ne(e, o, t) {
133
+ var V = "debugHeaders";
134
+ function qe(e, o, t) {
128
135
  var n;
129
- let i = {
136
+ let r = {
130
137
  id: (n = t.id) != null ? n : o.id,
131
138
  column: o,
132
139
  index: t.index,
@@ -138,107 +145,134 @@ function ne(e, o, t) {
138
145
  rowSpan: 0,
139
146
  headerGroup: null,
140
147
  getLeafHeaders: () => {
141
- const l = [], s = (u) => {
142
- u.subHeaders && u.subHeaders.length && u.subHeaders.map(s), l.push(u);
148
+ const i = [], l = (s) => {
149
+ s.subHeaders && s.subHeaders.length && s.subHeaders.map(l), i.push(s);
143
150
  };
144
- return s(i), l;
151
+ return l(r), i;
145
152
  },
146
153
  getContext: () => ({
147
154
  table: e,
148
- header: i,
155
+ header: r,
149
156
  column: o
150
157
  })
151
158
  };
152
- return e._features.forEach((l) => {
153
- l.createHeader == null || l.createHeader(i, e);
154
- }), i;
159
+ return e._features.forEach((i) => {
160
+ i.createHeader == null || i.createHeader(r, e);
161
+ }), r;
155
162
  }
156
- const we = {
157
- createTable: (e) => {
158
- e.getHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
159
- var i, l;
160
- const s = (i = n?.map((S) => t.find((f) => f.id === S)).filter(Boolean)) != null ? i : [], u = (l = r?.map((S) => t.find((f) => f.id === S)).filter(Boolean)) != null ? l : [], g = t.filter((S) => !(n != null && n.includes(S.id)) && !(r != null && r.includes(S.id)));
161
- return H(o, [...s, ...g, ...u], e);
162
- }, C(e.options, _, "getHeaderGroups")), e.getCenterHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), H(o, t, e, "center")), C(e.options, _, "getCenterHeaderGroups")), e.getLeftHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
163
- var r;
164
- const i = (r = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
165
- return H(o, i, e, "left");
166
- }, C(e.options, _, "getLeftHeaderGroups")), e.getRightHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
167
- var r;
168
- const i = (r = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
169
- return H(o, i, e, "right");
170
- }, C(e.options, _, "getRightHeaderGroups")), e.getFooterGroups = m(() => [e.getHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getFooterGroups")), e.getLeftFooterGroups = m(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getLeftFooterGroups")), e.getCenterFooterGroups = m(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getCenterFooterGroups")), e.getRightFooterGroups = m(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getRightFooterGroups")), e.getFlatHeaders = m(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getFlatHeaders")), e.getLeftFlatHeaders = m(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getLeftFlatHeaders")), e.getCenterFlatHeaders = m(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getCenterFlatHeaders")), e.getRightFlatHeaders = m(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getRightFlatHeaders")), e.getCenterLeafHeaders = m(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
171
- var n;
172
- return !((n = t.subHeaders) != null && n.length);
173
- }), C(e.options, _, "getCenterLeafHeaders")), e.getLeftLeafHeaders = m(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
174
- var n;
175
- return !((n = t.subHeaders) != null && n.length);
176
- }), C(e.options, _, "getLeftLeafHeaders")), e.getRightLeafHeaders = m(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
177
- var n;
178
- return !((n = t.subHeaders) != null && n.length);
179
- }), C(e.options, _, "getRightLeafHeaders")), e.getLeafHeaders = m(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
180
- var r, i, l, s, u, g;
181
- return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [], ...(u = (g = n[0]) == null ? void 0 : g.headers) != null ? u : []].map((d) => d.getLeafHeaders()).flat();
182
- }, C(e.options, _, "getLeafHeaders"));
183
- }
184
- };
185
- function H(e, o, t, n) {
163
+ var It = { createTable: (e) => {
164
+ e.getHeaderGroups = m(() => [
165
+ e.getAllColumns(),
166
+ e.getVisibleLeafColumns(),
167
+ e.getState().columnPinning.left,
168
+ e.getState().columnPinning.right
169
+ ], (o, t, n, r) => {
170
+ var i, l;
171
+ const s = (i = n?.map((d) => t.find((g) => g.id === d)).filter(Boolean)) != null ? i : [], u = (l = r?.map((d) => t.find((g) => g.id === d)).filter(Boolean)) != null ? l : [], a = t.filter((d) => !(n != null && n.includes(d.id)) && !(r != null && r.includes(d.id)));
172
+ return ue(o, [
173
+ ...s,
174
+ ...a,
175
+ ...u
176
+ ], e);
177
+ }, C(e.options, V, "getHeaderGroups")), e.getCenterHeaderGroups = m(() => [
178
+ e.getAllColumns(),
179
+ e.getVisibleLeafColumns(),
180
+ e.getState().columnPinning.left,
181
+ e.getState().columnPinning.right
182
+ ], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), ue(o, t, e, "center")), C(e.options, V, "getCenterHeaderGroups")), e.getLeftHeaderGroups = m(() => [
183
+ e.getAllColumns(),
184
+ e.getVisibleLeafColumns(),
185
+ e.getState().columnPinning.left
186
+ ], (o, t, n) => {
187
+ var r;
188
+ return ue(o, (r = n?.map((i) => t.find((l) => l.id === i)).filter(Boolean)) != null ? r : [], e, "left");
189
+ }, C(e.options, V, "getLeftHeaderGroups")), e.getRightHeaderGroups = m(() => [
190
+ e.getAllColumns(),
191
+ e.getVisibleLeafColumns(),
192
+ e.getState().columnPinning.right
193
+ ], (o, t, n) => {
194
+ var r;
195
+ return ue(o, (r = n?.map((i) => t.find((l) => l.id === i)).filter(Boolean)) != null ? r : [], e, "right");
196
+ }, C(e.options, V, "getRightHeaderGroups")), e.getFooterGroups = m(() => [e.getHeaderGroups()], (o) => [...o].reverse(), C(e.options, V, "getFooterGroups")), e.getLeftFooterGroups = m(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), C(e.options, V, "getLeftFooterGroups")), e.getCenterFooterGroups = m(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), C(e.options, V, "getCenterFooterGroups")), e.getRightFooterGroups = m(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), C(e.options, V, "getRightFooterGroups")), e.getFlatHeaders = m(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, V, "getFlatHeaders")), e.getLeftFlatHeaders = m(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, V, "getLeftFlatHeaders")), e.getCenterFlatHeaders = m(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, V, "getCenterFlatHeaders")), e.getRightFlatHeaders = m(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, V, "getRightFlatHeaders")), e.getCenterLeafHeaders = m(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
197
+ var n;
198
+ return !((n = t.subHeaders) != null && n.length);
199
+ }), C(e.options, V, "getCenterLeafHeaders")), e.getLeftLeafHeaders = m(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
200
+ var n;
201
+ return !((n = t.subHeaders) != null && n.length);
202
+ }), C(e.options, V, "getLeftLeafHeaders")), e.getRightLeafHeaders = m(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
203
+ var n;
204
+ return !((n = t.subHeaders) != null && n.length);
205
+ }), C(e.options, V, "getRightLeafHeaders")), e.getLeafHeaders = m(() => [
206
+ e.getLeftHeaderGroups(),
207
+ e.getCenterHeaderGroups(),
208
+ e.getRightHeaderGroups()
209
+ ], (o, t, n) => {
210
+ var r, i, l, s, u, a;
211
+ return [
212
+ ...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [],
213
+ ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [],
214
+ ...(u = (a = n[0]) == null ? void 0 : a.headers) != null ? u : []
215
+ ].map((d) => d.getLeafHeaders()).flat();
216
+ }, C(e.options, V, "getLeafHeaders"));
217
+ } };
218
+ function ue(e, o, t, n) {
186
219
  var r, i;
187
220
  let l = 0;
188
- const s = function(f, a) {
189
- a === void 0 && (a = 1), l = Math.max(l, a), f.filter((c) => c.getIsVisible()).forEach((c) => {
221
+ const s = function(g, f) {
222
+ f === void 0 && (f = 1), l = Math.max(l, f), g.filter((c) => c.getIsVisible()).forEach((c) => {
190
223
  var p;
191
- (p = c.columns) != null && p.length && s(c.columns, a + 1);
224
+ (p = c.columns) != null && p.length && s(c.columns, f + 1);
192
225
  }, 0);
193
226
  };
194
227
  s(e);
195
228
  let u = [];
196
- const g = (f, a) => {
229
+ const a = (g, f) => {
197
230
  const c = {
198
- depth: a,
199
- id: [n, `${a}`].filter(Boolean).join("_"),
231
+ depth: f,
232
+ id: [n, `${f}`].filter(Boolean).join("_"),
200
233
  headers: []
201
234
  }, p = [];
202
- f.forEach((w) => {
203
- const R = [...p].reverse()[0], v = w.column.depth === c.depth;
204
- let h, M = !1;
205
- if (v && w.column.parent ? h = w.column.parent : (h = w.column, M = !0), R && R?.column === h)
206
- R.subHeaders.push(w);
235
+ g.forEach((v) => {
236
+ const F = [...p].reverse()[0], R = v.column.depth === c.depth;
237
+ let w, $ = !1;
238
+ if (R && v.column.parent ? w = v.column.parent : (w = v.column, $ = !0), F && F?.column === w) F.subHeaders.push(v);
207
239
  else {
208
- const F = ne(t, h, {
209
- id: [n, a, h.id, w?.id].filter(Boolean).join("_"),
210
- isPlaceholder: M,
211
- placeholderId: M ? `${p.filter((y) => y.column === h).length}` : void 0,
212
- depth: a,
240
+ const I = qe(t, w, {
241
+ id: [
242
+ n,
243
+ f,
244
+ w.id,
245
+ v?.id
246
+ ].filter(Boolean).join("_"),
247
+ isPlaceholder: $,
248
+ placeholderId: $ ? `${p.filter((M) => M.column === w).length}` : void 0,
249
+ depth: f,
213
250
  index: p.length
214
251
  });
215
- F.subHeaders.push(w), p.push(F);
252
+ I.subHeaders.push(v), p.push(I);
216
253
  }
217
- c.headers.push(w), w.headerGroup = c;
218
- }), u.push(c), a > 0 && g(p, a - 1);
219
- }, d = o.map((f, a) => ne(t, f, {
254
+ c.headers.push(v), v.headerGroup = c;
255
+ }), u.push(c), f > 0 && a(p, f - 1);
256
+ };
257
+ a(o.map((g, f) => qe(t, g, {
220
258
  depth: l,
221
- index: a
222
- }));
223
- g(d, l - 1), u.reverse();
224
- const S = (f) => f.filter((c) => c.column.getIsVisible()).map((c) => {
225
- let p = 0, w = 0, R = [0];
226
- c.subHeaders && c.subHeaders.length ? (R = [], S(c.subHeaders).forEach((h) => {
227
- let {
228
- colSpan: M,
229
- rowSpan: F
230
- } = h;
231
- p += M, R.push(F);
232
- })) : p = 1;
233
- const v = Math.min(...R);
234
- return w = w + v, c.colSpan = p, c.rowSpan = w, {
235
- colSpan: p,
236
- rowSpan: w
259
+ index: f
260
+ })), l - 1), u.reverse();
261
+ const d = (g) => g.filter((f) => f.column.getIsVisible()).map((f) => {
262
+ let c = 0, p = 0, v = [0];
263
+ f.subHeaders && f.subHeaders.length ? (v = [], d(f.subHeaders).forEach((R) => {
264
+ let { colSpan: w, rowSpan: $ } = R;
265
+ c += w, v.push($);
266
+ })) : c = 1;
267
+ const F = Math.min(...v);
268
+ return p = p + F, f.colSpan = c, f.rowSpan = p, {
269
+ colSpan: c,
270
+ rowSpan: p
237
271
  };
238
272
  });
239
- return S((r = (i = u[0]) == null ? void 0 : i.headers) != null ? r : []), u;
273
+ return d((r = (i = u[0]) == null ? void 0 : i.headers) != null ? r : []), u;
240
274
  }
241
- const ve = (e, o, t, n, r, i, l) => {
275
+ var yt = (e, o, t, n, r, i, l) => {
242
276
  let s = {
243
277
  id: o,
244
278
  index: n,
@@ -248,91 +282,87 @@ const ve = (e, o, t, n, r, i, l) => {
248
282
  _valuesCache: {},
249
283
  _uniqueValuesCache: {},
250
284
  getValue: (u) => {
251
- if (s._valuesCache.hasOwnProperty(u))
252
- return s._valuesCache[u];
253
- const g = e.getColumn(u);
254
- if (g != null && g.accessorFn)
255
- return s._valuesCache[u] = g.accessorFn(s.original, n), s._valuesCache[u];
285
+ if (s._valuesCache.hasOwnProperty(u)) return s._valuesCache[u];
286
+ const a = e.getColumn(u);
287
+ if (a != null && a.accessorFn)
288
+ return s._valuesCache[u] = a.accessorFn(s.original, n), s._valuesCache[u];
256
289
  },
257
290
  getUniqueValues: (u) => {
258
- if (s._uniqueValuesCache.hasOwnProperty(u))
259
- return s._uniqueValuesCache[u];
260
- const g = e.getColumn(u);
261
- if (g != null && g.accessorFn)
262
- return g.columnDef.getUniqueValues ? (s._uniqueValuesCache[u] = g.columnDef.getUniqueValues(s.original, n), s._uniqueValuesCache[u]) : (s._uniqueValuesCache[u] = [s.getValue(u)], s._uniqueValuesCache[u]);
291
+ if (s._uniqueValuesCache.hasOwnProperty(u)) return s._uniqueValuesCache[u];
292
+ const a = e.getColumn(u);
293
+ if (a != null && a.accessorFn)
294
+ return a.columnDef.getUniqueValues ? (s._uniqueValuesCache[u] = a.columnDef.getUniqueValues(s.original, n), s._uniqueValuesCache[u]) : (s._uniqueValuesCache[u] = [s.getValue(u)], s._uniqueValuesCache[u]);
263
295
  },
264
296
  renderValue: (u) => {
265
- var g;
266
- return (g = s.getValue(u)) != null ? g : e.options.renderFallbackValue;
297
+ var a;
298
+ return (a = s.getValue(u)) != null ? a : e.options.renderFallbackValue;
267
299
  },
268
- subRows: [],
269
- getLeafRows: () => me(s.subRows, (u) => u.subRows),
300
+ subRows: i ?? [],
301
+ getLeafRows: () => Vt(s.subRows, (u) => u.subRows),
270
302
  getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
271
303
  getParentRows: () => {
272
- let u = [], g = s;
304
+ let u = [], a = s;
273
305
  for (; ; ) {
274
- const d = g.getParentRow();
306
+ const d = a.getParentRow();
275
307
  if (!d) break;
276
- u.push(d), g = d;
308
+ u.push(d), a = d;
277
309
  }
278
310
  return u.reverse();
279
311
  },
280
- getAllCells: m(() => [e.getAllLeafColumns()], (u) => u.map((g) => Ce(e, s, g, g.id)), C(e.options, "debugRows", "getAllCells")),
281
- _getAllCellsByColumnId: m(() => [s.getAllCells()], (u) => u.reduce((g, d) => (g[d.column.id] = d, g), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
312
+ getAllCells: m(() => [e.getAllLeafColumns()], (u) => u.map((a) => Pt(e, s, a, a.id)), C(e.options, "debugRows", "getAllCells")),
313
+ _getAllCellsByColumnId: m(() => [s.getAllCells()], (u) => u.reduce((a, d) => (a[d.column.id] = d, a), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
282
314
  };
283
315
  for (let u = 0; u < e._features.length; u++) {
284
- const g = e._features[u];
285
- g == null || g.createRow == null || g.createRow(s, e);
316
+ const a = e._features[u];
317
+ a == null || a.createRow == null || a.createRow(s, e);
286
318
  }
287
319
  return s;
288
- }, he = {
289
- createColumn: (e, o) => {
290
- e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
291
- if (e._getFacetedMinMaxValues)
292
- return e._getFacetedMinMaxValues();
293
- };
294
- }
295
- }, re = (e, o, t) => {
320
+ }, Et = { createColumn: (e, o) => {
321
+ e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
322
+ if (e._getFacetedMinMaxValues)
323
+ return e._getFacetedMinMaxValues();
324
+ };
325
+ } }, je = (e, o, t) => {
296
326
  var n, r;
297
327
  const i = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
298
328
  return !!(!((r = e.getValue(o)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(i));
299
329
  };
300
- re.autoRemove = (e) => V(e);
301
- const ie = (e, o, t) => {
330
+ je.autoRemove = (e) => E(e);
331
+ var ke = (e, o, t) => {
302
332
  var n;
303
333
  return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
304
334
  };
305
- ie.autoRemove = (e) => V(e);
306
- const le = (e, o, t) => {
335
+ ke.autoRemove = (e) => E(e);
336
+ var Ue = (e, o, t) => {
307
337
  var n;
308
338
  return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === t?.toLowerCase();
309
339
  };
310
- le.autoRemove = (e) => V(e);
311
- const se = (e, o, t) => {
340
+ Ue.autoRemove = (e) => E(e);
341
+ var Ke = (e, o, t) => {
312
342
  var n;
313
343
  return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
314
344
  };
315
- se.autoRemove = (e) => V(e);
316
- const ue = (e, o, t) => !t.some((n) => {
345
+ Ke.autoRemove = (e) => E(e);
346
+ var Xe = (e, o, t) => !t.some((n) => {
317
347
  var r;
318
348
  return !((r = e.getValue(o)) != null && r.includes(n));
319
349
  });
320
- ue.autoRemove = (e) => V(e) || !(e != null && e.length);
321
- const ge = (e, o, t) => t.some((n) => {
350
+ Xe.autoRemove = (e) => E(e) || !(e != null && e.length);
351
+ var We = (e, o, t) => t.some((n) => {
322
352
  var r;
323
353
  return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
324
354
  });
325
- ge.autoRemove = (e) => V(e) || !(e != null && e.length);
326
- const ae = (e, o, t) => e.getValue(o) === t;
327
- ae.autoRemove = (e) => V(e);
328
- const de = (e, o, t) => e.getValue(o) == t;
329
- de.autoRemove = (e) => V(e);
330
- const W = (e, o, t) => {
355
+ We.autoRemove = (e) => E(e) || !(e != null && e.length);
356
+ var Qe = (e, o, t) => e.getValue(o) === t;
357
+ Qe.autoRemove = (e) => E(e);
358
+ var Ze = (e, o, t) => e.getValue(o) == t;
359
+ Ze.autoRemove = (e) => E(e);
360
+ var He = (e, o, t) => {
331
361
  let [n, r] = t;
332
362
  const i = e.getValue(o);
333
363
  return i >= n && i <= r;
334
364
  };
335
- W.resolveFilterValue = (e) => {
365
+ He.resolveFilterValue = (e) => {
336
366
  let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n, l = t === null || Number.isNaN(r) ? 1 / 0 : r;
337
367
  if (i > l) {
338
368
  const s = i;
@@ -340,44 +370,39 @@ W.resolveFilterValue = (e) => {
340
370
  }
341
371
  return [i, l];
342
372
  };
343
- W.autoRemove = (e) => V(e) || V(e[0]) && V(e[1]);
344
- const P = {
345
- includesString: re,
346
- includesStringSensitive: ie,
347
- equalsString: le,
348
- arrIncludes: se,
349
- arrIncludesAll: ue,
350
- arrIncludesSome: ge,
351
- equals: ae,
352
- weakEquals: de,
353
- inNumberRange: W
373
+ He.autoRemove = (e) => E(e) || E(e[0]) && E(e[1]);
374
+ var L = {
375
+ includesString: je,
376
+ includesStringSensitive: ke,
377
+ equalsString: Ue,
378
+ arrIncludes: Ke,
379
+ arrIncludesAll: Xe,
380
+ arrIncludesSome: We,
381
+ equals: Qe,
382
+ weakEquals: Ze,
383
+ inNumberRange: He
354
384
  };
355
- function V(e) {
385
+ function E(e) {
356
386
  return e == null || e === "";
357
387
  }
358
- const _e = {
359
- getDefaultColumnDef: () => ({
360
- filterFn: "auto"
361
- }),
388
+ var Dt = {
389
+ getDefaultColumnDef: () => ({ filterFn: "auto" }),
362
390
  getInitialState: (e) => ({
363
391
  columnFilters: [],
364
392
  ...e
365
393
  }),
366
394
  getDefaultOptions: (e) => ({
367
- onColumnFiltersChange: $("columnFilters", e),
395
+ onColumnFiltersChange: x("columnFilters", e),
368
396
  filterFromLeafRows: !1,
369
397
  maxLeafRowFilterDepth: 100
370
398
  }),
371
399
  createColumn: (e, o) => {
372
400
  e.getAutoFilterFn = () => {
373
401
  const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
374
- return typeof n == "string" ? P.includesString : typeof n == "number" ? P.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? P.equals : Array.isArray(n) ? P.arrIncludes : P.weakEquals;
402
+ return typeof n == "string" ? L.includesString : typeof n == "number" ? L.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? L.equals : Array.isArray(n) ? L.arrIncludes : L.weakEquals;
375
403
  }, e.getFilterFn = () => {
376
404
  var t, n;
377
- return L(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
378
- // @ts-ignore
379
- (t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : P[e.columnDef.filterFn]
380
- );
405
+ return de(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : L[e.columnDef.filterFn];
381
406
  }, e.getCanFilter = () => {
382
407
  var t, n, r;
383
408
  return ((t = e.columnDef.enableColumnFilter) != null ? t : !0) && ((n = o.options.enableColumnFilters) != null ? n : !0) && ((r = o.options.enableFilters) != null ? r : !0) && !!e.accessorFn;
@@ -389,8 +414,8 @@ const _e = {
389
414
  return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
390
415
  }, e.setFilterValue = (t) => {
391
416
  o.setColumnFilters((n) => {
392
- const r = e.getFilterFn(), i = n?.find((d) => d.id === e.id), l = I(t, i ? i.value : void 0);
393
- if (oe(r, l, e)) {
417
+ const r = e.getFilterFn(), i = n?.find((d) => d.id === e.id), l = O(t, i ? i.value : void 0);
418
+ if (Ne(r, l, e)) {
394
419
  var s;
395
420
  return (s = n?.filter((d) => d.id !== e.id)) != null ? s : [];
396
421
  }
@@ -399,8 +424,8 @@ const _e = {
399
424
  value: l
400
425
  };
401
426
  if (i) {
402
- var g;
403
- return (g = n?.map((d) => d.id === e.id ? u : d)) != null ? g : [];
427
+ var a;
428
+ return (a = n?.map((d) => d.id === e.id ? u : d)) != null ? a : [];
404
429
  }
405
430
  return n != null && n.length ? [...n, u] : [u];
406
431
  });
@@ -413,14 +438,9 @@ const _e = {
413
438
  e.setColumnFilters = (o) => {
414
439
  const t = e.getAllLeafColumns(), n = (r) => {
415
440
  var i;
416
- return (i = I(o, r)) == null ? void 0 : i.filter((l) => {
441
+ return (i = O(o, r)) == null ? void 0 : i.filter((l) => {
417
442
  const s = t.find((u) => u.id === l.id);
418
- if (s) {
419
- const u = s.getFilterFn();
420
- if (oe(u, l.value, s))
421
- return !1;
422
- }
423
- return !0;
443
+ return !(s && Ne(s.getFilterFn(), l.value, s));
424
444
  });
425
445
  };
426
446
  e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange(n);
@@ -430,57 +450,54 @@ const _e = {
430
450
  }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
431
451
  }
432
452
  };
433
- function oe(e, o, t) {
453
+ function Ne(e, o, t) {
434
454
  return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
435
455
  }
436
- const Fe = (e, o, t) => t.reduce((n, r) => {
456
+ var At = (e, o, t) => t.reduce((n, r) => {
437
457
  const i = r.getValue(e);
438
458
  return n + (typeof i == "number" ? i : 0);
439
- }, 0), $e = (e, o, t) => {
459
+ }, 0), Lt = (e, o, t) => {
440
460
  let n;
441
461
  return t.forEach((r) => {
442
462
  const i = r.getValue(e);
443
463
  i != null && (n > i || n === void 0 && i >= i) && (n = i);
444
464
  }), n;
445
- }, Ve = (e, o, t) => {
465
+ }, Gt = (e, o, t) => {
446
466
  let n;
447
467
  return t.forEach((r) => {
448
468
  const i = r.getValue(e);
449
469
  i != null && (n < i || n === void 0 && i >= i) && (n = i);
450
470
  }), n;
451
- }, Me = (e, o, t) => {
471
+ }, Ht = (e, o, t) => {
452
472
  let n, r;
453
473
  return t.forEach((i) => {
454
474
  const l = i.getValue(e);
455
475
  l != null && (n === void 0 ? l >= l && (n = r = l) : (n > l && (n = l), r < l && (r = l)));
456
476
  }), [n, r];
457
- }, Pe = (e, o) => {
477
+ }, Ot = (e, o) => {
458
478
  let t = 0, n = 0;
459
479
  if (o.forEach((r) => {
460
480
  let i = r.getValue(e);
461
481
  i != null && (i = +i) >= i && (++t, n += i);
462
482
  }), t) return n / t;
463
- }, Ie = (e, o) => {
464
- if (!o.length)
465
- return;
483
+ }, zt = (e, o) => {
484
+ if (!o.length) return;
466
485
  const t = o.map((i) => i.getValue(e));
467
- if (!Se(t))
468
- return;
469
- if (t.length === 1)
470
- return t[0];
486
+ if (!Mt(t)) return;
487
+ if (t.length === 1) return t[0];
471
488
  const n = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
472
489
  return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
473
- }, xe = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), ye = (e, o) => new Set(o.map((t) => t.getValue(e))).size, De = (e, o) => o.length, z = {
474
- sum: Fe,
475
- min: $e,
476
- max: Ve,
477
- extent: Me,
478
- mean: Pe,
479
- median: Ie,
480
- unique: xe,
481
- uniqueCount: ye,
482
- count: De
483
- }, Ee = {
490
+ }, Tt = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), Bt = (e, o) => new Set(o.map((t) => t.getValue(e))).size, qt = (e, o) => o.length, Fe = {
491
+ sum: At,
492
+ min: Lt,
493
+ max: Gt,
494
+ extent: Ht,
495
+ mean: Ot,
496
+ median: zt,
497
+ unique: Tt,
498
+ uniqueCount: Bt,
499
+ count: qt
500
+ }, Nt = {
484
501
  getDefaultColumnDef: () => ({
485
502
  aggregatedCell: (e) => {
486
503
  var o, t;
@@ -493,7 +510,7 @@ const Fe = (e, o, t) => t.reduce((n, r) => {
493
510
  ...e
494
511
  }),
495
512
  getDefaultOptions: (e) => ({
496
- onGroupingChange: $("grouping", e),
513
+ onGroupingChange: x("grouping", e),
497
514
  groupedColumnMode: "reorder"
498
515
  }),
499
516
  createColumn: (e, o) => {
@@ -515,15 +532,12 @@ const Fe = (e, o, t) => t.reduce((n, r) => {
515
532
  };
516
533
  }, e.getAutoAggregationFn = () => {
517
534
  const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
518
- if (typeof n == "number")
519
- return z.sum;
520
- if (Object.prototype.toString.call(n) === "[object Date]")
521
- return z.extent;
535
+ if (typeof n == "number") return Fe.sum;
536
+ if (Object.prototype.toString.call(n) === "[object Date]") return Fe.extent;
522
537
  }, e.getAggregationFn = () => {
523
538
  var t, n;
524
- if (!e)
525
- throw new Error();
526
- return L(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : z[e.columnDef.aggregationFn];
539
+ if (!e) throw new Error();
540
+ return de(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : Fe[e.columnDef.aggregationFn];
527
541
  };
528
542
  },
529
543
  createTable: (e) => {
@@ -534,8 +548,7 @@ const Fe = (e, o, t) => t.reduce((n, r) => {
534
548
  },
535
549
  createRow: (e, o) => {
536
550
  e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (t) => {
537
- if (e._groupingValuesCache.hasOwnProperty(t))
538
- return e._groupingValuesCache[t];
551
+ if (e._groupingValuesCache.hasOwnProperty(t)) return e._groupingValuesCache[t];
539
552
  const n = o.getColumn(t);
540
553
  return n != null && n.columnDef.getGroupingValue ? (e._groupingValuesCache[t] = n.columnDef.getGroupingValue(e.original), e._groupingValuesCache[t]) : e.getValue(t);
541
554
  }, e._groupingValuesCache = {};
@@ -547,27 +560,24 @@ const Fe = (e, o, t) => t.reduce((n, r) => {
547
560
  };
548
561
  }
549
562
  };
550
- function He(e, o, t) {
551
- if (!(o != null && o.length) || !t)
552
- return e;
553
- const n = e.filter((i) => !o.includes(i.id));
554
- return t === "remove" ? n : [...o.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...n];
563
+ function jt(e, o, t) {
564
+ if (!(o != null && o.length) || !t) return e;
565
+ const n = e.filter((r) => !o.includes(r.id));
566
+ return t === "remove" ? n : [...o.map((r) => e.find((i) => i.id === r)).filter(Boolean), ...n];
555
567
  }
556
- const Ge = {
568
+ var kt = {
557
569
  getInitialState: (e) => ({
558
570
  columnOrder: [],
559
571
  ...e
560
572
  }),
561
- getDefaultOptions: (e) => ({
562
- onColumnOrderChange: $("columnOrder", e)
563
- }),
573
+ getDefaultOptions: (e) => ({ onColumnOrderChange: x("columnOrder", e) }),
564
574
  createColumn: (e, o) => {
565
- e.getIndex = m((t) => [E(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
575
+ e.getIndex = m((t) => [Z(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
566
576
  var n;
567
- return ((n = E(o, t)[0]) == null ? void 0 : n.id) === e.id;
577
+ return ((n = Z(o, t)[0]) == null ? void 0 : n.id) === e.id;
568
578
  }, e.getIsLastColumn = (t) => {
569
579
  var n;
570
- const r = E(o, t);
580
+ const r = Z(o, t);
571
581
  return ((n = r[r.length - 1]) == null ? void 0 : n.id) === e.id;
572
582
  };
573
583
  },
@@ -575,32 +585,33 @@ const Ge = {
575
585
  e.setColumnOrder = (o) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(o), e.resetColumnOrder = (o) => {
576
586
  var t;
577
587
  e.setColumnOrder(o ? [] : (t = e.initialState.columnOrder) != null ? t : []);
578
- }, e._getOrderColumnsFn = m(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (r) => {
588
+ }, e._getOrderColumnsFn = m(() => [
589
+ e.getState().columnOrder,
590
+ e.getState().grouping,
591
+ e.options.groupedColumnMode
592
+ ], (o, t, n) => (r) => {
579
593
  let i = [];
580
- if (!(o != null && o.length))
581
- i = r;
594
+ if (!(o != null && o.length)) i = r;
582
595
  else {
583
596
  const l = [...o], s = [...r];
584
597
  for (; s.length && l.length; ) {
585
- const u = l.shift(), g = s.findIndex((d) => d.id === u);
586
- g > -1 && i.push(s.splice(g, 1)[0]);
598
+ const u = l.shift(), a = s.findIndex((d) => d.id === u);
599
+ a > -1 && i.push(s.splice(a, 1)[0]);
587
600
  }
588
601
  i = [...i, ...s];
589
602
  }
590
- return He(i, t, n);
603
+ return jt(i, t, n);
591
604
  }, C(e.options, "debugTable", "_getOrderColumnsFn"));
592
605
  }
593
- }, O = () => ({
606
+ }, $e = () => ({
594
607
  left: [],
595
608
  right: []
596
- }), Ae = {
609
+ }), Ut = {
597
610
  getInitialState: (e) => ({
598
- columnPinning: O(),
611
+ columnPinning: $e(),
599
612
  ...e
600
613
  }),
601
- getDefaultOptions: (e) => ({
602
- onColumnPinningChange: $("columnPinning", e)
603
- }),
614
+ getDefaultOptions: (e) => ({ onColumnPinningChange: x("columnPinning", e) }),
604
615
  createColumn: (e, o) => {
605
616
  e.pin = (t) => {
606
617
  const n = e.getLeafColumns().map((r) => r.id).filter(Boolean);
@@ -609,30 +620,27 @@ const Ge = {
609
620
  if (t === "right") {
610
621
  var s, u;
611
622
  return {
612
- left: ((s = r?.left) != null ? s : []).filter((S) => !(n != null && n.includes(S))),
613
- right: [...((u = r?.right) != null ? u : []).filter((S) => !(n != null && n.includes(S))), ...n]
623
+ left: ((s = r?.left) != null ? s : []).filter((g) => !(n != null && n.includes(g))),
624
+ right: [...((u = r?.right) != null ? u : []).filter((g) => !(n != null && n.includes(g))), ...n]
614
625
  };
615
626
  }
616
627
  if (t === "left") {
617
- var g, d;
628
+ var a, d;
618
629
  return {
619
- left: [...((g = r?.left) != null ? g : []).filter((S) => !(n != null && n.includes(S))), ...n],
620
- right: ((d = r?.right) != null ? d : []).filter((S) => !(n != null && n.includes(S)))
630
+ left: [...((a = r?.left) != null ? a : []).filter((g) => !(n != null && n.includes(g))), ...n],
631
+ right: ((d = r?.right) != null ? d : []).filter((g) => !(n != null && n.includes(g)))
621
632
  };
622
633
  }
623
634
  return {
624
- left: ((i = r?.left) != null ? i : []).filter((S) => !(n != null && n.includes(S))),
625
- right: ((l = r?.right) != null ? l : []).filter((S) => !(n != null && n.includes(S)))
635
+ left: ((i = r?.left) != null ? i : []).filter((g) => !(n != null && n.includes(g))),
636
+ right: ((l = r?.right) != null ? l : []).filter((g) => !(n != null && n.includes(g)))
626
637
  };
627
638
  });
628
- }, e.getCanPin = () => e.getLeafColumns().some((n) => {
629
- var r, i, l;
630
- return ((r = n.columnDef.enablePinning) != null ? r : !0) && ((i = (l = o.options.enableColumnPinning) != null ? l : o.options.enablePinning) != null ? i : !0);
639
+ }, e.getCanPin = () => e.getLeafColumns().some((t) => {
640
+ var n, r, i;
641
+ return ((n = t.columnDef.enablePinning) != null ? n : !0) && ((r = (i = o.options.enableColumnPinning) != null ? i : o.options.enablePinning) != null ? r : !0);
631
642
  }), e.getIsPinned = () => {
632
- const t = e.getLeafColumns().map((s) => s.id), {
633
- left: n,
634
- right: r
635
- } = o.getState().columnPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
643
+ const t = e.getLeafColumns().map((s) => s.id), { left: n, right: r } = o.getState().columnPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
636
644
  return i ? "left" : l ? "right" : !1;
637
645
  }, e.getPinnedIndex = () => {
638
646
  var t, n;
@@ -641,21 +649,25 @@ const Ge = {
641
649
  };
642
650
  },
643
651
  createRow: (e, o) => {
644
- e.getCenterVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
652
+ e.getCenterVisibleCells = m(() => [
653
+ e._getAllVisibleCells(),
654
+ o.getState().columnPinning.left,
655
+ o.getState().columnPinning.right
656
+ ], (t, n, r) => {
645
657
  const i = [...n ?? [], ...r ?? []];
646
658
  return t.filter((l) => !i.includes(l.column.id));
647
- }, C(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
648
- ...i,
659
+ }, C(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((r) => t.find((i) => i.column.id === r)).filter(Boolean).map((r) => ({
660
+ ...r,
649
661
  position: "left"
650
- })), C(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
651
- ...i,
662
+ })), C(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((r) => t.find((i) => i.column.id === r)).filter(Boolean).map((r) => ({
663
+ ...r,
652
664
  position: "right"
653
665
  })), C(o.options, "debugRows", "getRightVisibleCells"));
654
666
  },
655
667
  createTable: (e) => {
656
668
  e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
657
669
  var t, n;
658
- return e.setColumnPinning(o ? O() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : O());
670
+ return e.setColumnPinning(o ? $e() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : $e());
659
671
  }, e.getIsSomeColumnsPinned = (o) => {
660
672
  var t;
661
673
  const n = e.getState().columnPinning;
@@ -664,50 +676,59 @@ const Ge = {
664
676
  return !!((r = n.left) != null && r.length || (i = n.right) != null && i.length);
665
677
  }
666
678
  return !!((t = n[o]) != null && t.length);
667
- }, e.getLeftLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
679
+ }, e.getLeftLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = m(() => [
680
+ e.getAllLeafColumns(),
681
+ e.getState().columnPinning.left,
682
+ e.getState().columnPinning.right
683
+ ], (o, t, n) => {
668
684
  const r = [...t ?? [], ...n ?? []];
669
685
  return o.filter((i) => !r.includes(i.id));
670
686
  }, C(e.options, "debugColumns", "getCenterLeafColumns"));
671
687
  }
672
688
  };
673
- function Le(e) {
689
+ function Kt(e) {
674
690
  return e || (typeof document < "u" ? document : null);
675
691
  }
676
- const G = {
692
+ var ae = {
677
693
  size: 150,
678
694
  minSize: 20,
679
695
  maxSize: Number.MAX_SAFE_INTEGER
680
- }, B = () => ({
696
+ }, Me = () => ({
681
697
  startOffset: null,
682
698
  startSize: null,
683
699
  deltaOffset: null,
684
700
  deltaPercentage: null,
685
701
  isResizingColumn: !1,
686
702
  columnSizingStart: []
687
- }), ze = {
688
- getDefaultColumnDef: () => G,
703
+ }), Xt = {
704
+ getDefaultColumnDef: () => ae,
689
705
  getInitialState: (e) => ({
690
706
  columnSizing: {},
691
- columnSizingInfo: B(),
707
+ columnSizingInfo: Me(),
692
708
  ...e
693
709
  }),
694
710
  getDefaultOptions: (e) => ({
695
711
  columnResizeMode: "onEnd",
696
712
  columnResizeDirection: "ltr",
697
- onColumnSizingChange: $("columnSizing", e),
698
- onColumnSizingInfoChange: $("columnSizingInfo", e)
713
+ onColumnSizingChange: x("columnSizing", e),
714
+ onColumnSizingInfoChange: x("columnSizingInfo", e)
699
715
  }),
700
716
  createColumn: (e, o) => {
701
717
  e.getSize = () => {
702
718
  var t, n, r;
703
719
  const i = o.getState().columnSizing[e.id];
704
- return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : G.minSize, (n = i ?? e.columnDef.size) != null ? n : G.size), (r = e.columnDef.maxSize) != null ? r : G.maxSize);
705
- }, e.getStart = m((t) => [t, E(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getStart")), e.getAfter = m((t) => [t, E(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
720
+ return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : ae.minSize, (n = i ?? e.columnDef.size) != null ? n : ae.size), (r = e.columnDef.maxSize) != null ? r : ae.maxSize);
721
+ }, e.getStart = m((t) => [
722
+ t,
723
+ Z(o, t),
724
+ o.getState().columnSizing
725
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getStart")), e.getAfter = m((t) => [
726
+ t,
727
+ Z(o, t),
728
+ o.getState().columnSizing
729
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
706
730
  o.setColumnSizing((t) => {
707
- let {
708
- [e.id]: n,
709
- ...r
710
- } = t;
731
+ let { [e.id]: n, ...r } = t;
711
732
  return r;
712
733
  });
713
734
  }, e.getCanResize = () => {
@@ -719,8 +740,7 @@ const G = {
719
740
  e.getSize = () => {
720
741
  let t = 0;
721
742
  const n = (r) => {
722
- if (r.subHeaders.length)
723
- r.subHeaders.forEach(n);
743
+ if (r.subHeaders.length) r.subHeaders.forEach(n);
724
744
  else {
725
745
  var i;
726
746
  t += (i = r.column.getSize()) != null ? i : 0;
@@ -736,27 +756,27 @@ const G = {
736
756
  }, e.getResizeHandler = (t) => {
737
757
  const n = o.getColumn(e.column.id), r = n?.getCanResize();
738
758
  return (i) => {
739
- if (!n || !r || (i.persist == null || i.persist(), T(i) && i.touches && i.touches.length > 1))
759
+ if (!n || !r || (i.persist == null || i.persist(), Ve(i) && i.touches && i.touches.length > 1))
740
760
  return;
741
- const l = e.getSize(), s = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], u = T(i) ? Math.round(i.touches[0].clientX) : i.clientX, g = {}, d = (R, v) => {
742
- typeof v == "number" && (o.setColumnSizingInfo((h) => {
743
- var M, F;
744
- const y = o.options.columnResizeDirection === "rtl" ? -1 : 1, b = (v - ((M = h?.startOffset) != null ? M : 0)) * y, ee = Math.max(b / ((F = h?.startSize) != null ? F : 0), -0.999999);
745
- return h.columnSizingStart.forEach((ce) => {
746
- let [pe, te] = ce;
747
- g[pe] = Math.round(Math.max(te + te * ee, 0) * 100) / 100;
761
+ const l = e.getSize(), s = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], u = Ve(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, d = (R, w) => {
762
+ typeof w == "number" && (o.setColumnSizingInfo(($) => {
763
+ var I, M;
764
+ const T = o.options.columnResizeDirection === "rtl" ? -1 : 1, j = (w - ((I = $?.startOffset) != null ? I : 0)) * T, J = Math.max(j / ((M = $?.startSize) != null ? M : 0), -0.999999);
765
+ return $.columnSizingStart.forEach((fe) => {
766
+ let [k, G] = fe;
767
+ a[k] = Math.round(Math.max(G + G * J, 0) * 100) / 100;
748
768
  }), {
749
- ...h,
750
- deltaOffset: b,
751
- deltaPercentage: ee
769
+ ...$,
770
+ deltaOffset: j,
771
+ deltaPercentage: J
752
772
  };
753
- }), (o.options.columnResizeMode === "onChange" || R === "end") && o.setColumnSizing((h) => ({
754
- ...h,
755
- ...g
773
+ }), (o.options.columnResizeMode === "onChange" || R === "end") && o.setColumnSizing(($) => ({
774
+ ...$,
775
+ ...a
756
776
  })));
757
- }, S = (R) => d("move", R), f = (R) => {
758
- d("end", R), o.setColumnSizingInfo((v) => ({
759
- ...v,
777
+ }, g = (R) => d("move", R), f = (R) => {
778
+ d("end", R), o.setColumnSizingInfo((w) => ({
779
+ ...w,
760
780
  isResizingColumn: !1,
761
781
  startOffset: null,
762
782
  startSize: null,
@@ -764,21 +784,19 @@ const G = {
764
784
  deltaPercentage: null,
765
785
  columnSizingStart: []
766
786
  }));
767
- }, a = Le(t), c = {
768
- moveHandler: (R) => S(R.clientX),
787
+ }, c = Kt(t), p = {
788
+ moveHandler: (R) => g(R.clientX),
769
789
  upHandler: (R) => {
770
- a?.removeEventListener("mousemove", c.moveHandler), a?.removeEventListener("mouseup", c.upHandler), f(R.clientX);
790
+ c?.removeEventListener("mousemove", p.moveHandler), c?.removeEventListener("mouseup", p.upHandler), f(R.clientX);
771
791
  }
772
- }, p = {
773
- moveHandler: (R) => (R.cancelable && (R.preventDefault(), R.stopPropagation()), S(R.touches[0].clientX), !1),
792
+ }, v = {
793
+ moveHandler: (R) => (R.cancelable && (R.preventDefault(), R.stopPropagation()), g(R.touches[0].clientX), !1),
774
794
  upHandler: (R) => {
775
- var v;
776
- a?.removeEventListener("touchmove", p.moveHandler), a?.removeEventListener("touchend", p.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), f((v = R.touches[0]) == null ? void 0 : v.clientX);
795
+ var w;
796
+ c?.removeEventListener("touchmove", v.moveHandler), c?.removeEventListener("touchend", v.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), f((w = R.touches[0]) == null ? void 0 : w.clientX);
777
797
  }
778
- }, w = Oe() ? {
779
- passive: !1
780
- } : !1;
781
- T(i) ? (a?.addEventListener("touchmove", p.moveHandler, w), a?.addEventListener("touchend", p.upHandler, w)) : (a?.addEventListener("mousemove", c.moveHandler, w), a?.addEventListener("mouseup", c.upHandler, w)), o.setColumnSizingInfo((R) => ({
798
+ }, F = Wt() ? { passive: !1 } : !1;
799
+ Ve(i) ? (c?.addEventListener("touchmove", v.moveHandler, F), c?.addEventListener("touchend", v.upHandler, F)) : (c?.addEventListener("mousemove", p.moveHandler, F), c?.addEventListener("mouseup", p.upHandler, F)), o.setColumnSizingInfo((R) => ({
782
800
  ...R,
783
801
  startOffset: u,
784
802
  startSize: l,
@@ -796,7 +814,7 @@ const G = {
796
814
  e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
797
815
  }, e.resetHeaderSizeInfo = (o) => {
798
816
  var t;
799
- e.setColumnSizingInfo(o ? B() : (t = e.initialState.columnSizingInfo) != null ? t : B());
817
+ e.setColumnSizingInfo(o ? Me() : (t = e.initialState.columnSizingInfo) != null ? t : Me());
800
818
  }, e.getTotalSize = () => {
801
819
  var o, t;
802
820
  return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
@@ -811,35 +829,30 @@ const G = {
811
829
  return (o = (t = e.getRightHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
812
830
  };
813
831
  }
814
- };
815
- let A = null;
816
- function Oe() {
817
- if (typeof A == "boolean") return A;
832
+ }, ge = null;
833
+ function Wt() {
834
+ if (typeof ge == "boolean") return ge;
818
835
  let e = !1;
819
836
  try {
820
- const o = {
821
- get passive() {
822
- return e = !0, !1;
823
- }
824
- }, t = () => {
837
+ const o = { get passive() {
838
+ return e = !0, !1;
839
+ } }, t = () => {
825
840
  };
826
841
  window.addEventListener("test", t, o), window.removeEventListener("test", t);
827
842
  } catch {
828
843
  e = !1;
829
844
  }
830
- return A = e, A;
845
+ return ge = e, ge;
831
846
  }
832
- function T(e) {
847
+ function Ve(e) {
833
848
  return e.type === "touchstart";
834
849
  }
835
- const Be = {
850
+ var Qt = {
836
851
  getInitialState: (e) => ({
837
852
  columnVisibility: {},
838
853
  ...e
839
854
  }),
840
- getDefaultOptions: (e) => ({
841
- onColumnVisibilityChange: $("columnVisibility", e)
842
- }),
855
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: x("columnVisibility", e) }),
843
856
  createColumn: (e, o) => {
844
857
  e.toggleVisibility = (t) => {
845
858
  e.getCanHide() && o.setColumnVisibility((n) => ({
@@ -858,7 +871,15 @@ const Be = {
858
871
  };
859
872
  },
860
873
  createRow: (e, o) => {
861
- e._getAllVisibleCells = m(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), C(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = m(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, r) => [...t, ...n, ...r], C(o.options, "debugRows", "getVisibleCells"));
874
+ e._getAllVisibleCells = m(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), C(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = m(() => [
875
+ e.getLeftVisibleCells(),
876
+ e.getCenterVisibleCells(),
877
+ e.getRightVisibleCells()
878
+ ], (t, n, r) => [
879
+ ...t,
880
+ ...n,
881
+ ...r
882
+ ], C(o.options, "debugRows", "getVisibleCells"));
862
883
  },
863
884
  createTable: (e) => {
864
885
  const o = (t, n) => m(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), C(e.options, "debugColumns", t));
@@ -877,23 +898,21 @@ const Be = {
877
898
  };
878
899
  }
879
900
  };
880
- function E(e, o) {
901
+ function Z(e, o) {
881
902
  return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
882
903
  }
883
- const Te = {
884
- createTable: (e) => {
885
- e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
886
- if (e._getGlobalFacetedMinMaxValues)
887
- return e._getGlobalFacetedMinMaxValues();
888
- };
889
- }
890
- }, qe = {
904
+ var Zt = { createTable: (e) => {
905
+ e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
906
+ if (e._getGlobalFacetedMinMaxValues)
907
+ return e._getGlobalFacetedMinMaxValues();
908
+ };
909
+ } }, Jt = {
891
910
  getInitialState: (e) => ({
892
911
  globalFilter: void 0,
893
912
  ...e
894
913
  }),
895
914
  getDefaultOptions: (e) => ({
896
- onGlobalFilterChange: $("globalFilter", e),
915
+ onGlobalFilterChange: x("globalFilter", e),
897
916
  globalFilterFn: "auto",
898
917
  getColumnCanGlobalFilter: (o) => {
899
918
  var t;
@@ -908,25 +927,23 @@ const Te = {
908
927
  };
909
928
  },
910
929
  createTable: (e) => {
911
- e.getGlobalAutoFilterFn = () => P.includesString, e.getGlobalFilterFn = () => {
930
+ e.getGlobalAutoFilterFn = () => L.includesString, e.getGlobalFilterFn = () => {
912
931
  var o, t;
913
- const {
914
- globalFilterFn: n
915
- } = e.options;
916
- return L(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : P[n];
932
+ const { globalFilterFn: n } = e.options;
933
+ return de(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : L[n];
917
934
  }, e.setGlobalFilter = (o) => {
918
935
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
919
936
  }, e.resetGlobalFilter = (o) => {
920
937
  e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
921
938
  };
922
939
  }
923
- }, Ne = {
940
+ }, Yt = {
924
941
  getInitialState: (e) => ({
925
942
  expanded: {},
926
943
  ...e
927
944
  }),
928
945
  getDefaultOptions: (e) => ({
929
- onExpandedChange: $("expanded", e),
946
+ onExpandedChange: x("expanded", e),
930
947
  paginateExpandedRows: !0
931
948
  }),
932
949
  createTable: (e) => {
@@ -960,9 +977,9 @@ const Te = {
960
977
  return typeof n == "boolean" ? n === !0 : !(!Object.keys(n).length || e.getRowModel().flatRows.some((r) => !r.getIsExpanded()));
961
978
  }, e.getExpandedDepth = () => {
962
979
  let n = 0;
963
- return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((i) => {
964
- const l = i.split(".");
965
- n = Math.max(n, l.length);
980
+ return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((r) => {
981
+ const i = r.split(".");
982
+ n = Math.max(n, i.length);
966
983
  }), n;
967
984
  }, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
968
985
  },
@@ -974,16 +991,12 @@ const Te = {
974
991
  let l = {};
975
992
  if (n === !0 ? Object.keys(o.getRowModel().rowsById).forEach((s) => {
976
993
  l[s] = !0;
977
- }) : l = n, t = (r = t) != null ? r : !i, !i && t)
978
- return {
979
- ...l,
980
- [e.id]: !0
981
- };
994
+ }) : l = n, t = (r = t) != null ? r : !i, !i && t) return {
995
+ ...l,
996
+ [e.id]: !0
997
+ };
982
998
  if (i && !t) {
983
- const {
984
- [e.id]: s,
985
- ...u
986
- } = l;
999
+ const { [e.id]: s, ...u } = l;
987
1000
  return u;
988
1001
  }
989
1002
  return n;
@@ -1007,20 +1020,18 @@ const Te = {
1007
1020
  };
1008
1021
  };
1009
1022
  }
1010
- }, U = 0, X = 10, q = () => ({
1011
- pageIndex: U,
1012
- pageSize: X
1013
- }), ke = {
1023
+ }, Ee = 0, De = 10, Pe = () => ({
1024
+ pageIndex: Ee,
1025
+ pageSize: De
1026
+ }), bt = {
1014
1027
  getInitialState: (e) => ({
1015
1028
  ...e,
1016
1029
  pagination: {
1017
- ...q(),
1030
+ ...Pe(),
1018
1031
  ...e?.pagination
1019
1032
  }
1020
1033
  }),
1021
- getDefaultOptions: (e) => ({
1022
- onPaginationChange: $("pagination", e)
1023
- }),
1034
+ getDefaultOptions: (e) => ({ onPaginationChange: x("pagination", e) }),
1024
1035
  createTable: (e) => {
1025
1036
  let o = !1, t = !1;
1026
1037
  e._autoResetPageIndex = () => {
@@ -1038,14 +1049,14 @@ const Te = {
1038
1049
  });
1039
1050
  }
1040
1051
  }, e.setPagination = (n) => {
1041
- const r = (i) => I(n, i);
1052
+ const r = (i) => O(n, i);
1042
1053
  return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
1043
1054
  }, e.resetPagination = (n) => {
1044
1055
  var r;
1045
- e.setPagination(n ? q() : (r = e.initialState.pagination) != null ? r : q());
1056
+ e.setPagination(n ? Pe() : (r = e.initialState.pagination) != null ? r : Pe());
1046
1057
  }, e.setPageIndex = (n) => {
1047
1058
  e.setPagination((r) => {
1048
- let i = I(n, r.pageIndex);
1059
+ let i = O(n, r.pageIndex);
1049
1060
  const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
1050
1061
  return i = Math.max(0, Math.min(i, l)), {
1051
1062
  ...r,
@@ -1054,13 +1065,13 @@ const Te = {
1054
1065
  });
1055
1066
  }, e.resetPageIndex = (n) => {
1056
1067
  var r, i;
1057
- e.setPageIndex(n ? U : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : U);
1068
+ e.setPageIndex(n ? Ee : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : Ee);
1058
1069
  }, e.resetPageSize = (n) => {
1059
1070
  var r, i;
1060
- e.setPageSize(n ? X : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : X);
1071
+ e.setPageSize(n ? De : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : De);
1061
1072
  }, e.setPageSize = (n) => {
1062
1073
  e.setPagination((r) => {
1063
- const i = Math.max(1, I(n, r.pageSize)), l = r.pageSize * r.pageIndex, s = Math.floor(l / i);
1074
+ const i = Math.max(1, O(n, r.pageSize)), l = r.pageSize * r.pageIndex, s = Math.floor(l / i);
1064
1075
  return {
1065
1076
  ...r,
1066
1077
  pageIndex: s,
@@ -1069,7 +1080,7 @@ const Te = {
1069
1080
  });
1070
1081
  }, e.setPageCount = (n) => e.setPagination((r) => {
1071
1082
  var i;
1072
- let l = I(n, (i = e.options.pageCount) != null ? i : -1);
1083
+ let l = O(n, (i = e.options.pageCount) != null ? i : -1);
1073
1084
  return typeof l == "number" && (l = Math.max(-1, l)), {
1074
1085
  ...r,
1075
1086
  pageCount: l
@@ -1078,9 +1089,7 @@ const Te = {
1078
1089
  let r = [];
1079
1090
  return n && n > 0 && (r = [...new Array(n)].fill(null).map((i, l) => l)), r;
1080
1091
  }, C(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
1081
- const {
1082
- pageIndex: n
1083
- } = e.getState().pagination, r = e.getPageCount();
1092
+ const { pageIndex: n } = e.getState().pagination, r = e.getPageCount();
1084
1093
  return r === -1 ? !0 : r === 0 ? !1 : n < r - 1;
1085
1094
  }, e.previousPage = () => e.setPageIndex((n) => n - 1), e.nextPage = () => e.setPageIndex((n) => n + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => {
1086
1095
  var n;
@@ -1090,72 +1099,62 @@ const Te = {
1090
1099
  return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
1091
1100
  };
1092
1101
  }
1093
- }, N = () => ({
1102
+ }, xe = () => ({
1094
1103
  top: [],
1095
1104
  bottom: []
1096
- }), je = {
1105
+ }), en = {
1097
1106
  getInitialState: (e) => ({
1098
- rowPinning: N(),
1107
+ rowPinning: xe(),
1099
1108
  ...e
1100
1109
  }),
1101
- getDefaultOptions: (e) => ({
1102
- onRowPinningChange: $("rowPinning", e)
1103
- }),
1110
+ getDefaultOptions: (e) => ({ onRowPinningChange: x("rowPinning", e) }),
1104
1111
  createRow: (e, o) => {
1105
1112
  e.pin = (t, n, r) => {
1106
1113
  const i = n ? e.getLeafRows().map((u) => {
1107
- let {
1108
- id: g
1109
- } = u;
1110
- return g;
1114
+ let { id: a } = u;
1115
+ return a;
1111
1116
  }) : [], l = r ? e.getParentRows().map((u) => {
1112
- let {
1113
- id: g
1114
- } = u;
1115
- return g;
1116
- }) : [], s = /* @__PURE__ */ new Set([...l, e.id, ...i]);
1117
+ let { id: a } = u;
1118
+ return a;
1119
+ }) : [], s = /* @__PURE__ */ new Set([
1120
+ ...l,
1121
+ e.id,
1122
+ ...i
1123
+ ]);
1117
1124
  o.setRowPinning((u) => {
1118
- var g, d;
1125
+ var a, d;
1119
1126
  if (t === "bottom") {
1120
- var S, f;
1127
+ var g, f;
1121
1128
  return {
1122
- top: ((S = u?.top) != null ? S : []).filter((p) => !(s != null && s.has(p))),
1123
- bottom: [...((f = u?.bottom) != null ? f : []).filter((p) => !(s != null && s.has(p))), ...Array.from(s)]
1129
+ top: ((g = u?.top) != null ? g : []).filter((v) => !(s != null && s.has(v))),
1130
+ bottom: [...((f = u?.bottom) != null ? f : []).filter((v) => !(s != null && s.has(v))), ...Array.from(s)]
1124
1131
  };
1125
1132
  }
1126
1133
  if (t === "top") {
1127
- var a, c;
1134
+ var c, p;
1128
1135
  return {
1129
- top: [...((a = u?.top) != null ? a : []).filter((p) => !(s != null && s.has(p))), ...Array.from(s)],
1130
- bottom: ((c = u?.bottom) != null ? c : []).filter((p) => !(s != null && s.has(p)))
1136
+ top: [...((c = u?.top) != null ? c : []).filter((v) => !(s != null && s.has(v))), ...Array.from(s)],
1137
+ bottom: ((p = u?.bottom) != null ? p : []).filter((v) => !(s != null && s.has(v)))
1131
1138
  };
1132
1139
  }
1133
1140
  return {
1134
- top: ((g = u?.top) != null ? g : []).filter((p) => !(s != null && s.has(p))),
1135
- bottom: ((d = u?.bottom) != null ? d : []).filter((p) => !(s != null && s.has(p)))
1141
+ top: ((a = u?.top) != null ? a : []).filter((v) => !(s != null && s.has(v))),
1142
+ bottom: ((d = u?.bottom) != null ? d : []).filter((v) => !(s != null && s.has(v)))
1136
1143
  };
1137
1144
  });
1138
1145
  }, e.getCanPin = () => {
1139
1146
  var t;
1140
- const {
1141
- enableRowPinning: n,
1142
- enablePinning: r
1143
- } = o.options;
1147
+ const { enableRowPinning: n, enablePinning: r } = o.options;
1144
1148
  return typeof n == "function" ? n(e) : (t = n ?? r) != null ? t : !0;
1145
1149
  }, e.getIsPinned = () => {
1146
- const t = [e.id], {
1147
- top: n,
1148
- bottom: r
1149
- } = o.getState().rowPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
1150
+ const t = [e.id], { top: n, bottom: r } = o.getState().rowPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
1150
1151
  return i ? "top" : l ? "bottom" : !1;
1151
1152
  }, e.getPinnedIndex = () => {
1152
1153
  var t, n;
1153
1154
  const r = e.getIsPinned();
1154
1155
  if (!r) return -1;
1155
1156
  const i = (t = r === "top" ? o.getTopRows() : o.getBottomRows()) == null ? void 0 : t.map((l) => {
1156
- let {
1157
- id: s
1158
- } = l;
1157
+ let { id: s } = l;
1159
1158
  return s;
1160
1159
  });
1161
1160
  return (n = i?.indexOf(e.id)) != null ? n : -1;
@@ -1164,7 +1163,7 @@ const Te = {
1164
1163
  createTable: (e) => {
1165
1164
  e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
1166
1165
  var t, n;
1167
- return e.setRowPinning(o ? N() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : N());
1166
+ return e.setRowPinning(o ? xe() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : xe());
1168
1167
  }, e.getIsSomeRowsPinned = (o) => {
1169
1168
  var t;
1170
1169
  const n = e.getState().rowPinning;
@@ -1175,38 +1174,32 @@ const Te = {
1175
1174
  return !!((t = n[o]) != null && t.length);
1176
1175
  }, e._getPinnedRows = (o, t, n) => {
1177
1176
  var r;
1178
- return ((r = e.options.keepPinnedRows) == null || r ? (
1179
- //get all rows that are pinned even if they would not be otherwise visible
1180
- //account for expanded parent rows, but not pagination or filtering
1181
- (t ?? []).map((l) => {
1182
- const s = e.getRow(l, !0);
1183
- return s.getIsAllParentsExpanded() ? s : null;
1184
- })
1185
- ) : (
1186
- //else get only visible rows that are pinned
1187
- (t ?? []).map((l) => o.find((s) => s.id === l))
1188
- )).filter(Boolean).map((l) => ({
1189
- ...l,
1177
+ return ((r = e.options.keepPinnedRows) == null || r ? (t ?? []).map((i) => {
1178
+ const l = e.getRow(i, !0);
1179
+ return l.getIsAllParentsExpanded() ? l : null;
1180
+ }) : (t ?? []).map((i) => o.find((l) => l.id === i))).filter(Boolean).map((i) => ({
1181
+ ...i,
1190
1182
  position: n
1191
1183
  }));
1192
- }, e.getTopRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), C(e.options, "debugRows", "getTopRows")), e.getBottomRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), C(e.options, "debugRows", "getBottomRows")), e.getCenterRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
1184
+ }, e.getTopRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), C(e.options, "debugRows", "getTopRows")), e.getBottomRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), C(e.options, "debugRows", "getBottomRows")), e.getCenterRows = m(() => [
1185
+ e.getRowModel().rows,
1186
+ e.getState().rowPinning.top,
1187
+ e.getState().rowPinning.bottom
1188
+ ], (o, t, n) => {
1193
1189
  const r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
1194
1190
  return o.filter((i) => !r.has(i.id));
1195
1191
  }, C(e.options, "debugRows", "getCenterRows"));
1196
1192
  }
1197
- }, Ue = {
1193
+ }, tn = {
1198
1194
  getInitialState: (e) => ({
1199
1195
  rowSelection: {},
1200
1196
  ...e
1201
1197
  }),
1202
1198
  getDefaultOptions: (e) => ({
1203
- onRowSelectionChange: $("rowSelection", e),
1199
+ onRowSelectionChange: x("rowSelection", e),
1204
1200
  enableRowSelection: !0,
1205
1201
  enableMultiRowSelection: !0,
1206
1202
  enableSubRowSelection: !0
1207
- // enableGroupingRowSelection: false,
1208
- // isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
1209
- // isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
1210
1203
  }),
1211
1204
  createTable: (e) => {
1212
1205
  e.setRowSelection = (o) => e.options.onRowSelectionChange == null ? void 0 : e.options.onRowSelectionChange(o), e.resetRowSelection = (o) => {
@@ -1215,9 +1208,7 @@ const Te = {
1215
1208
  }, e.toggleAllRowsSelected = (o) => {
1216
1209
  e.setRowSelection((t) => {
1217
1210
  o = typeof o < "u" ? o : !e.getIsAllRowsSelected();
1218
- const n = {
1219
- ...t
1220
- }, r = e.getPreGroupedRowModel().flatRows;
1211
+ const n = { ...t }, r = e.getPreGroupedRowModel().flatRows;
1221
1212
  return o ? r.forEach((i) => {
1222
1213
  i.getCanSelect() && (n[i.id] = !0);
1223
1214
  }) : r.forEach((i) => {
@@ -1225,34 +1216,28 @@ const Te = {
1225
1216
  }), n;
1226
1217
  });
1227
1218
  }, e.toggleAllPageRowsSelected = (o) => e.setRowSelection((t) => {
1228
- const n = typeof o < "u" ? o : !e.getIsAllPageRowsSelected(), r = {
1229
- ...t
1230
- };
1219
+ const n = typeof o < "u" ? o : !e.getIsAllPageRowsSelected(), r = { ...t };
1231
1220
  return e.getRowModel().rows.forEach((i) => {
1232
- K(r, i.id, n, !0, e);
1221
+ Ae(r, i.id, n, !0, e);
1233
1222
  }), r;
1234
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1223
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? Ie(e, t) : {
1235
1224
  rows: [],
1236
1225
  flatRows: [],
1237
1226
  rowsById: {}
1238
- }, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1227
+ }, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? Ie(e, t) : {
1239
1228
  rows: [],
1240
1229
  flatRows: [],
1241
1230
  rowsById: {}
1242
- }, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1231
+ }, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? Ie(e, t) : {
1243
1232
  rows: [],
1244
1233
  flatRows: [],
1245
1234
  rowsById: {}
1246
1235
  }, C(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
1247
- const o = e.getFilteredRowModel().flatRows, {
1248
- rowSelection: t
1249
- } = e.getState();
1236
+ const o = e.getFilteredRowModel().flatRows, { rowSelection: t } = e.getState();
1250
1237
  let n = !!(o.length && Object.keys(t).length);
1251
1238
  return n && o.some((r) => r.getCanSelect() && !t[r.id]) && (n = !1), n;
1252
1239
  }, e.getIsAllPageRowsSelected = () => {
1253
- const o = e.getPaginationRowModel().flatRows.filter((r) => r.getCanSelect()), {
1254
- rowSelection: t
1255
- } = e.getState();
1240
+ const o = e.getPaginationRowModel().flatRows.filter((r) => r.getCanSelect()), { rowSelection: t } = e.getState();
1256
1241
  let n = !!o.length;
1257
1242
  return n && o.some((r) => !t[r.id]) && (n = !1), n;
1258
1243
  }, e.getIsSomeRowsSelected = () => {
@@ -1273,28 +1258,19 @@ const Te = {
1273
1258
  const r = e.getIsSelected();
1274
1259
  o.setRowSelection((i) => {
1275
1260
  var l;
1276
- if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t)
1277
- return i;
1278
- const s = {
1279
- ...i
1280
- };
1281
- return K(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
1261
+ if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t) return i;
1262
+ const s = { ...i };
1263
+ return Ae(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
1282
1264
  });
1283
1265
  }, e.getIsSelected = () => {
1284
- const {
1285
- rowSelection: t
1286
- } = o.getState();
1287
- return Y(e, t);
1266
+ const { rowSelection: t } = o.getState();
1267
+ return Oe(e, t);
1288
1268
  }, e.getIsSomeSelected = () => {
1289
- const {
1290
- rowSelection: t
1291
- } = o.getState();
1292
- return J(e, t) === "some";
1269
+ const { rowSelection: t } = o.getState();
1270
+ return Le(e, t) === "some";
1293
1271
  }, e.getIsAllSubRowsSelected = () => {
1294
- const {
1295
- rowSelection: t
1296
- } = o.getState();
1297
- return J(e, t) === "all";
1272
+ const { rowSelection: t } = o.getState();
1273
+ return Le(e, t) === "all";
1298
1274
  }, e.getCanSelect = () => {
1299
1275
  var t;
1300
1276
  return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
@@ -1312,21 +1288,20 @@ const Te = {
1312
1288
  };
1313
1289
  };
1314
1290
  }
1315
- }, K = (e, o, t, n, r) => {
1291
+ }, Ae = (e, o, t, n, r) => {
1316
1292
  var i;
1317
1293
  const l = r.getRow(o, !0);
1318
- t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => K(e, s.id, t, n, r));
1294
+ t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => Ae(e, s.id, t, n, r));
1319
1295
  };
1320
- function k(e, o) {
1296
+ function Ie(e, o) {
1321
1297
  const t = e.getState().rowSelection, n = [], r = {}, i = function(l, s) {
1322
1298
  return l.map((u) => {
1323
- var g;
1324
- const d = Y(u, t);
1325
- if (d && (n.push(u), r[u.id] = u), (g = u.subRows) != null && g.length && (u = {
1299
+ var a;
1300
+ const d = Oe(u, t);
1301
+ if (d && (n.push(u), r[u.id] = u), (a = u.subRows) != null && a.length && (u = {
1326
1302
  ...u,
1327
1303
  subRows: i(u.subRows)
1328
- }), d)
1329
- return u;
1304
+ }), d) return u;
1330
1305
  }).filter(Boolean);
1331
1306
  };
1332
1307
  return {
@@ -1335,59 +1310,54 @@ function k(e, o) {
1335
1310
  rowsById: r
1336
1311
  };
1337
1312
  }
1338
- function Y(e, o) {
1313
+ function Oe(e, o) {
1339
1314
  var t;
1340
1315
  return (t = o[e.id]) != null ? t : !1;
1341
1316
  }
1342
- function J(e, o, t) {
1317
+ function Le(e, o, t) {
1343
1318
  var n;
1344
1319
  if (!((n = e.subRows) != null && n.length)) return !1;
1345
1320
  let r = !0, i = !1;
1346
1321
  return e.subRows.forEach((l) => {
1347
- if (!(i && !r) && (l.getCanSelect() && (Y(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
1348
- const s = J(l, o);
1322
+ if (!(i && !r) && (l.getCanSelect() && (Oe(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
1323
+ const s = Le(l, o);
1349
1324
  s === "all" ? i = !0 : (s === "some" && (i = !0), r = !1);
1350
1325
  }
1351
1326
  }), r ? "all" : i ? "some" : !1;
1352
1327
  }
1353
- const Q = /([0-9]+)/gm, Xe = (e, o, t) => fe(x(e.getValue(t)).toLowerCase(), x(o.getValue(t)).toLowerCase()), Ke = (e, o, t) => fe(x(e.getValue(t)), x(o.getValue(t))), Je = (e, o, t) => Z(x(e.getValue(t)).toLowerCase(), x(o.getValue(t)).toLowerCase()), Qe = (e, o, t) => Z(x(e.getValue(t)), x(o.getValue(t))), We = (e, o, t) => {
1328
+ var Ge = /([0-9]+)/gm, nn = (e, o, t) => Je(z(e.getValue(t)).toLowerCase(), z(o.getValue(t)).toLowerCase()), on = (e, o, t) => Je(z(e.getValue(t)), z(o.getValue(t))), rn = (e, o, t) => ze(z(e.getValue(t)).toLowerCase(), z(o.getValue(t)).toLowerCase()), ln = (e, o, t) => ze(z(e.getValue(t)), z(o.getValue(t))), sn = (e, o, t) => {
1354
1329
  const n = e.getValue(t), r = o.getValue(t);
1355
1330
  return n > r ? 1 : n < r ? -1 : 0;
1356
- }, Ye = (e, o, t) => Z(e.getValue(t), o.getValue(t));
1357
- function Z(e, o) {
1331
+ }, un = (e, o, t) => ze(e.getValue(t), o.getValue(t));
1332
+ function ze(e, o) {
1358
1333
  return e === o ? 0 : e > o ? 1 : -1;
1359
1334
  }
1360
- function x(e) {
1335
+ function z(e) {
1361
1336
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
1362
1337
  }
1363
- function fe(e, o) {
1364
- const t = e.split(Q).filter(Boolean), n = o.split(Q).filter(Boolean);
1338
+ function Je(e, o) {
1339
+ const t = e.split(Ge).filter(Boolean), n = o.split(Ge).filter(Boolean);
1365
1340
  for (; t.length && n.length; ) {
1366
1341
  const r = t.shift(), i = n.shift(), l = parseInt(r, 10), s = parseInt(i, 10), u = [l, s].sort();
1367
1342
  if (isNaN(u[0])) {
1368
- if (r > i)
1369
- return 1;
1370
- if (i > r)
1371
- return -1;
1343
+ if (r > i) return 1;
1344
+ if (i > r) return -1;
1372
1345
  continue;
1373
1346
  }
1374
- if (isNaN(u[1]))
1375
- return isNaN(l) ? -1 : 1;
1376
- if (l > s)
1377
- return 1;
1378
- if (s > l)
1379
- return -1;
1347
+ if (isNaN(u[1])) return isNaN(l) ? -1 : 1;
1348
+ if (l > s) return 1;
1349
+ if (s > l) return -1;
1380
1350
  }
1381
1351
  return t.length - n.length;
1382
1352
  }
1383
- const D = {
1384
- alphanumeric: Xe,
1385
- alphanumericCaseSensitive: Ke,
1386
- text: Je,
1387
- textCaseSensitive: Qe,
1388
- datetime: We,
1389
- basic: Ye
1390
- }, Ze = {
1353
+ var Q = {
1354
+ alphanumeric: nn,
1355
+ alphanumericCaseSensitive: on,
1356
+ text: rn,
1357
+ textCaseSensitive: ln,
1358
+ datetime: sn,
1359
+ basic: un
1360
+ }, an = {
1391
1361
  getInitialState: (e) => ({
1392
1362
  sorting: [],
1393
1363
  ...e
@@ -1397,7 +1367,7 @@ const D = {
1397
1367
  sortUndefined: 1
1398
1368
  }),
1399
1369
  getDefaultOptions: (e) => ({
1400
- onSortingChange: $("sorting", e),
1370
+ onSortingChange: x("sorting", e),
1401
1371
  isMultiSortEvent: (o) => o.shiftKey
1402
1372
  }),
1403
1373
  createColumn: (e, o) => {
@@ -1406,39 +1376,37 @@ const D = {
1406
1376
  let n = !1;
1407
1377
  for (const r of t) {
1408
1378
  const i = r?.getValue(e.id);
1409
- if (Object.prototype.toString.call(i) === "[object Date]")
1410
- return D.datetime;
1411
- if (typeof i == "string" && (n = !0, i.split(Q).length > 1))
1412
- return D.alphanumeric;
1379
+ if (Object.prototype.toString.call(i) === "[object Date]") return Q.datetime;
1380
+ if (typeof i == "string" && (n = !0, i.split(Ge).length > 1))
1381
+ return Q.alphanumeric;
1413
1382
  }
1414
- return n ? D.text : D.basic;
1383
+ return n ? Q.text : Q.basic;
1415
1384
  }, e.getAutoSortDir = () => {
1416
1385
  const t = o.getFilteredRowModel().flatRows[0];
1417
1386
  return typeof t?.getValue(e.id) == "string" ? "asc" : "desc";
1418
1387
  }, e.getSortingFn = () => {
1419
1388
  var t, n;
1420
- if (!e)
1421
- throw new Error();
1422
- return L(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : D[e.columnDef.sortingFn];
1389
+ if (!e) throw new Error();
1390
+ return de(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : Q[e.columnDef.sortingFn];
1423
1391
  }, e.toggleSorting = (t, n) => {
1424
1392
  const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
1425
1393
  o.setSorting((l) => {
1426
- const s = l?.find((a) => a.id === e.id), u = l?.findIndex((a) => a.id === e.id);
1427
- let g = [], d, S = i ? t : r === "desc";
1394
+ const s = l?.find((c) => c.id === e.id), u = l?.findIndex((c) => c.id === e.id);
1395
+ let a = [], d, g = i ? t : r === "desc";
1428
1396
  if (l != null && l.length && e.getCanMultiSort() && n ? s ? d = "toggle" : d = "add" : l != null && l.length && u !== l.length - 1 ? d = "replace" : s ? d = "toggle" : d = "replace", d === "toggle" && (i || r || (d = "remove")), d === "add") {
1429
1397
  var f;
1430
- g = [...l, {
1398
+ a = [...l, {
1431
1399
  id: e.id,
1432
- desc: S
1433
- }], g.splice(0, g.length - ((f = o.options.maxMultiSortColCount) != null ? f : Number.MAX_SAFE_INTEGER));
1434
- } else d === "toggle" ? g = l.map((a) => a.id === e.id ? {
1435
- ...a,
1436
- desc: S
1437
- } : a) : d === "remove" ? g = l.filter((a) => a.id !== e.id) : g = [{
1400
+ desc: g
1401
+ }], a.splice(0, a.length - ((f = o.options.maxMultiSortColCount) != null ? f : Number.MAX_SAFE_INTEGER));
1402
+ } else d === "toggle" ? a = l.map((c) => c.id === e.id ? {
1403
+ ...c,
1404
+ desc: g
1405
+ } : c) : d === "remove" ? a = l.filter((c) => c.id !== e.id) : a = [{
1438
1406
  id: e.id,
1439
- desc: S
1407
+ desc: g
1440
1408
  }];
1441
- return g;
1409
+ return a;
1442
1410
  });
1443
1411
  }, e.getFirstSortDir = () => {
1444
1412
  var t, n;
@@ -1446,8 +1414,7 @@ const D = {
1446
1414
  }, e.getNextSortingOrder = (t) => {
1447
1415
  var n, r;
1448
1416
  const i = e.getFirstSortDir(), l = e.getIsSorted();
1449
- return l ? l !== i && ((n = o.options.enableSortingRemoval) == null || n) && // If enableSortRemove, enable in general
1450
- (!(t && (r = o.options.enableMultiRemove) != null) || r) ? !1 : l === "desc" ? "asc" : "desc" : i;
1417
+ return l ? l !== i && ((n = o.options.enableSortingRemoval) == null || n) && (!(t && (r = o.options.enableMultiRemove) != null) || r) ? !1 : l === "desc" ? "asc" : "desc" : i;
1451
1418
  }, e.getCanSort = () => {
1452
1419
  var t, n;
1453
1420
  return ((t = e.columnDef.enableSorting) != null ? t : !0) && ((n = o.options.enableSorting) != null ? n : !0) && !!e.accessorFn;
@@ -1476,134 +1443,117 @@ const D = {
1476
1443
  e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
1477
1444
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
1478
1445
  }
1479
- }, be = [
1480
- we,
1481
- Be,
1482
- Ge,
1483
- Ae,
1484
- he,
1485
- _e,
1486
- Te,
1487
- //depends on ColumnFaceting
1488
- qe,
1489
- //depends on ColumnFiltering
1490
- Ze,
1491
- Ee,
1492
- //depends on RowSorting
1493
- Ne,
1494
- ke,
1495
- je,
1496
- Ue,
1497
- ze
1446
+ }, gn = [
1447
+ It,
1448
+ Qt,
1449
+ kt,
1450
+ Ut,
1451
+ Et,
1452
+ Dt,
1453
+ Zt,
1454
+ Jt,
1455
+ an,
1456
+ Nt,
1457
+ Yt,
1458
+ bt,
1459
+ en,
1460
+ tn,
1461
+ Xt
1498
1462
  ];
1499
- function et(e) {
1463
+ function dn(e) {
1500
1464
  var o, t;
1501
1465
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
1502
- const n = [...be, ...(o = e._features) != null ? o : []];
1503
- let r = {
1504
- _features: n
1505
- };
1506
- const i = r._features.reduce((f, a) => Object.assign(f, a.getDefaultOptions == null ? void 0 : a.getDefaultOptions(r)), {}), l = (f) => r.options.mergeOptions ? r.options.mergeOptions(i, f) : {
1466
+ const n = [...gn, ...(o = e._features) != null ? o : []];
1467
+ let r = { _features: n };
1468
+ const i = r._features.reduce((g, f) => Object.assign(g, f.getDefaultOptions == null ? void 0 : f.getDefaultOptions(r)), {}), l = (g) => r.options.mergeOptions ? r.options.mergeOptions(i, g) : {
1507
1469
  ...i,
1508
- ...f
1509
- };
1510
- let u = {
1511
- ...{},
1512
- ...(t = e.initialState) != null ? t : {}
1470
+ ...g
1513
1471
  };
1514
- r._features.forEach((f) => {
1515
- var a;
1516
- u = (a = f.getInitialState == null ? void 0 : f.getInitialState(u)) != null ? a : u;
1472
+ let s = { ...(t = e.initialState) != null ? t : {} };
1473
+ r._features.forEach((g) => {
1474
+ var f;
1475
+ s = (f = g.getInitialState == null ? void 0 : g.getInitialState(s)) != null ? f : s;
1517
1476
  });
1518
- const g = [];
1519
- let d = !1;
1520
- const S = {
1477
+ const u = [];
1478
+ let a = !1;
1479
+ const d = {
1521
1480
  _features: n,
1522
1481
  options: {
1523
1482
  ...i,
1524
1483
  ...e
1525
1484
  },
1526
- initialState: u,
1527
- _queue: (f) => {
1528
- g.push(f), d || (d = !0, Promise.resolve().then(() => {
1529
- for (; g.length; )
1530
- g.shift()();
1531
- d = !1;
1532
- }).catch((a) => setTimeout(() => {
1533
- throw a;
1485
+ initialState: s,
1486
+ _queue: (g) => {
1487
+ u.push(g), a || (a = !0, Promise.resolve().then(() => {
1488
+ for (; u.length; ) u.shift()();
1489
+ a = !1;
1490
+ }).catch((f) => setTimeout(() => {
1491
+ throw f;
1534
1492
  })));
1535
1493
  },
1536
1494
  reset: () => {
1537
1495
  r.setState(r.initialState);
1538
1496
  },
1539
- setOptions: (f) => {
1540
- const a = I(f, r.options);
1541
- r.options = l(a);
1497
+ setOptions: (g) => {
1498
+ r.options = l(O(g, r.options));
1542
1499
  },
1543
1500
  getState: () => r.options.state,
1544
- setState: (f) => {
1545
- r.options.onStateChange == null || r.options.onStateChange(f);
1501
+ setState: (g) => {
1502
+ r.options.onStateChange == null || r.options.onStateChange(g);
1546
1503
  },
1547
- _getRowId: (f, a, c) => {
1504
+ _getRowId: (g, f, c) => {
1548
1505
  var p;
1549
- return (p = r.options.getRowId == null ? void 0 : r.options.getRowId(f, a, c)) != null ? p : `${c ? [c.id, a].join(".") : a}`;
1506
+ return (p = r.options.getRowId == null ? void 0 : r.options.getRowId(g, f, c)) != null ? p : `${c ? [c.id, f].join(".") : f}`;
1550
1507
  },
1551
1508
  getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
1552
- // The final calls start at the bottom of the model,
1553
- // expanded rows, which then work their way up
1554
1509
  getRowModel: () => r.getPaginationRowModel(),
1555
- //in next version, we should just pass in the row model as the optional 2nd arg
1556
- getRow: (f, a) => {
1557
- let c = (a ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[f];
1558
- if (!c && (c = r.getCoreRowModel().rowsById[f], !c))
1559
- throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${f}`) : new Error();
1510
+ getRow: (g, f) => {
1511
+ let c = (f ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[g];
1512
+ if (!c && (c = r.getCoreRowModel().rowsById[g], !c))
1513
+ throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
1560
1514
  return c;
1561
1515
  },
1562
- _getDefaultColumnDef: m(() => [r.options.defaultColumn], (f) => {
1563
- var a;
1564
- return f = (a = f) != null ? a : {}, {
1516
+ _getDefaultColumnDef: m(() => [r.options.defaultColumn], (g) => {
1517
+ var f;
1518
+ return g = (f = g) != null ? f : {}, {
1565
1519
  header: (c) => {
1566
1520
  const p = c.header.column.columnDef;
1567
1521
  return p.accessorKey ? p.accessorKey : p.accessorFn ? p.id : null;
1568
1522
  },
1569
- // footer: props => props.header.column.id,
1570
1523
  cell: (c) => {
1571
- var p, w;
1572
- return (p = (w = c.renderValue()) == null || w.toString == null ? void 0 : w.toString()) != null ? p : null;
1524
+ var p, v;
1525
+ return (p = (v = c.renderValue()) == null || v.toString == null ? void 0 : v.toString()) != null ? p : null;
1573
1526
  },
1574
1527
  ...r._features.reduce((c, p) => Object.assign(c, p.getDefaultColumnDef == null ? void 0 : p.getDefaultColumnDef()), {}),
1575
- ...f
1528
+ ...g
1576
1529
  };
1577
1530
  }, C(e, "debugColumns", "_getDefaultColumnDef")),
1578
1531
  _getColumnDefs: () => r.options.columns,
1579
- getAllColumns: m(() => [r._getColumnDefs()], (f) => {
1580
- const a = function(c, p, w) {
1581
- return w === void 0 && (w = 0), c.map((R) => {
1582
- const v = Re(r, R, w, p), h = R;
1583
- return v.columns = h.columns ? a(h.columns, v, w + 1) : [], v;
1532
+ getAllColumns: m(() => [r._getColumnDefs()], (g) => {
1533
+ const f = function(c, p, v) {
1534
+ return v === void 0 && (v = 0), c.map((F) => {
1535
+ const R = xt(r, F, v, p), w = F;
1536
+ return R.columns = w.columns ? f(w.columns, R, v + 1) : [], R;
1584
1537
  });
1585
1538
  };
1586
- return a(f);
1539
+ return f(g);
1587
1540
  }, C(e, "debugColumns", "getAllColumns")),
1588
- getAllFlatColumns: m(() => [r.getAllColumns()], (f) => f.flatMap((a) => a.getFlatColumns()), C(e, "debugColumns", "getAllFlatColumns")),
1589
- _getAllFlatColumnsById: m(() => [r.getAllFlatColumns()], (f) => f.reduce((a, c) => (a[c.id] = c, a), {}), C(e, "debugColumns", "getAllFlatColumnsById")),
1590
- getAllLeafColumns: m(() => [r.getAllColumns(), r._getOrderColumnsFn()], (f, a) => {
1591
- let c = f.flatMap((p) => p.getLeafColumns());
1592
- return a(c);
1593
- }, C(e, "debugColumns", "getAllLeafColumns")),
1594
- getColumn: (f) => {
1595
- const a = r._getAllFlatColumnsById()[f];
1596
- return process.env.NODE_ENV !== "production" && !a && console.error(`[Table] Column with id '${f}' does not exist.`), a;
1541
+ getAllFlatColumns: m(() => [r.getAllColumns()], (g) => g.flatMap((f) => f.getFlatColumns()), C(e, "debugColumns", "getAllFlatColumns")),
1542
+ _getAllFlatColumnsById: m(() => [r.getAllFlatColumns()], (g) => g.reduce((f, c) => (f[c.id] = c, f), {}), C(e, "debugColumns", "getAllFlatColumnsById")),
1543
+ getAllLeafColumns: m(() => [r.getAllColumns(), r._getOrderColumnsFn()], (g, f) => f(g.flatMap((c) => c.getLeafColumns())), C(e, "debugColumns", "getAllLeafColumns")),
1544
+ getColumn: (g) => {
1545
+ const f = r._getAllFlatColumnsById()[g];
1546
+ return process.env.NODE_ENV !== "production" && !f && console.error(`[Table] Column with id '${g}' does not exist.`), f;
1597
1547
  }
1598
1548
  };
1599
- Object.assign(r, S);
1600
- for (let f = 0; f < r._features.length; f++) {
1601
- const a = r._features[f];
1602
- a == null || a.createTable == null || a.createTable(r);
1549
+ Object.assign(r, d);
1550
+ for (let g = 0; g < r._features.length; g++) {
1551
+ const f = r._features[g];
1552
+ f == null || f.createTable == null || f.createTable(r);
1603
1553
  }
1604
1554
  return r;
1605
1555
  }
1606
- function rt() {
1556
+ function fn() {
1607
1557
  return (e) => m(() => [e.options.data], (o) => {
1608
1558
  const t = {
1609
1559
  rows: [],
@@ -1612,11 +1562,11 @@ function rt() {
1612
1562
  }, n = function(r, i, l) {
1613
1563
  i === void 0 && (i = 0);
1614
1564
  const s = [];
1615
- for (let g = 0; g < r.length; g++) {
1616
- const d = ve(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l?.id);
1565
+ for (let a = 0; a < r.length; a++) {
1566
+ const d = yt(e, e._getRowId(r[a], a, l), r[a], a, i, void 0, l?.id);
1617
1567
  if (t.flatRows.push(d), t.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
1618
1568
  var u;
1619
- d.originalSubRows = e.options.getSubRows(r[g], g), (u = d.originalSubRows) != null && u.length && (d.subRows = n(d.originalSubRows, i + 1, d));
1569
+ d.originalSubRows = e.options.getSubRows(r[a], a), (u = d.originalSubRows) != null && u.length && (d.subRows = n(d.originalSubRows, i + 1, d));
1620
1570
  }
1621
1571
  }
1622
1572
  return s;
@@ -1624,47 +1574,44 @@ function rt() {
1624
1574
  return t.rows = n(o), t;
1625
1575
  }, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
1626
1576
  }
1627
- function it() {
1577
+ function cn() {
1628
1578
  return (e) => m(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
1629
- if (!t.rows.length || !(o != null && o.length))
1630
- return t;
1579
+ if (!t.rows.length || !(o != null && o.length)) return t;
1631
1580
  const n = e.getState().sorting, r = [], i = n.filter((u) => {
1632
- var g;
1633
- return (g = e.getColumn(u.id)) == null ? void 0 : g.getCanSort();
1581
+ var a;
1582
+ return (a = e.getColumn(u.id)) == null ? void 0 : a.getCanSort();
1634
1583
  }), l = {};
1635
1584
  i.forEach((u) => {
1636
- const g = e.getColumn(u.id);
1637
- g && (l[u.id] = {
1638
- sortUndefined: g.columnDef.sortUndefined,
1639
- invertSorting: g.columnDef.invertSorting,
1640
- sortingFn: g.getSortingFn()
1585
+ const a = e.getColumn(u.id);
1586
+ a && (l[u.id] = {
1587
+ sortUndefined: a.columnDef.sortUndefined,
1588
+ invertSorting: a.columnDef.invertSorting,
1589
+ sortingFn: a.getSortingFn()
1641
1590
  });
1642
1591
  });
1643
1592
  const s = (u) => {
1644
- const g = u.map((d) => ({
1645
- ...d
1646
- }));
1647
- return g.sort((d, S) => {
1648
- for (let a = 0; a < i.length; a += 1) {
1593
+ const a = u.map((d) => ({ ...d }));
1594
+ return a.sort((d, g) => {
1595
+ for (let c = 0; c < i.length; c += 1) {
1649
1596
  var f;
1650
- const c = i[a], p = l[c.id], w = p.sortUndefined, R = (f = c?.desc) != null ? f : !1;
1651
- let v = 0;
1652
- if (w) {
1653
- const h = d.getValue(c.id), M = S.getValue(c.id), F = h === void 0, y = M === void 0;
1654
- if (F || y) {
1655
- if (w === "first") return F ? -1 : 1;
1656
- if (w === "last") return F ? 1 : -1;
1657
- v = F && y ? 0 : F ? w : -w;
1597
+ const p = i[c], v = l[p.id], F = v.sortUndefined, R = (f = p?.desc) != null ? f : !1;
1598
+ let w = 0;
1599
+ if (F) {
1600
+ const $ = d.getValue(p.id), I = g.getValue(p.id), M = $ === void 0, T = I === void 0;
1601
+ if (M || T) {
1602
+ if (F === "first") return M ? -1 : 1;
1603
+ if (F === "last") return M ? 1 : -1;
1604
+ w = M && T ? 0 : M ? F : -F;
1658
1605
  }
1659
1606
  }
1660
- if (v === 0 && (v = p.sortingFn(d, S, c.id)), v !== 0)
1661
- return R && (v *= -1), p.invertSorting && (v *= -1), v;
1607
+ if (w === 0 && (w = v.sortingFn(d, g, p.id)), w !== 0)
1608
+ return R && (w *= -1), v.invertSorting && (w *= -1), w;
1662
1609
  }
1663
- return d.index - S.index;
1664
- }), g.forEach((d) => {
1665
- var S;
1666
- r.push(d), (S = d.subRows) != null && S.length && (d.subRows = s(d.subRows));
1667
- }), g;
1610
+ return d.index - g.index;
1611
+ }), a.forEach((d) => {
1612
+ var g;
1613
+ r.push(d), (g = d.subRows) != null && g.length && (d.subRows = s(d.subRows));
1614
+ }), a;
1668
1615
  };
1669
1616
  return {
1670
1617
  rows: s(t.rows),
@@ -1673,33 +1620,29 @@ function it() {
1673
1620
  };
1674
1621
  }, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
1675
1622
  }
1676
- function lt(e, o) {
1677
- return e ? tt(e) ? /* @__PURE__ */ j.createElement(e, o) : e : null;
1623
+ function In(e, o) {
1624
+ return e ? pn(e) ? /* @__PURE__ */ ye.createElement(e, o) : e : null;
1678
1625
  }
1679
- function tt(e) {
1680
- return nt(e) || typeof e == "function" || ot(e);
1626
+ function pn(e) {
1627
+ return Sn(e) || typeof e == "function" || mn(e);
1681
1628
  }
1682
- function nt(e) {
1629
+ function Sn(e) {
1683
1630
  return typeof e == "function" && (() => {
1684
1631
  const o = Object.getPrototypeOf(e);
1685
1632
  return o.prototype && o.prototype.isReactComponent;
1686
1633
  })();
1687
1634
  }
1688
- function ot(e) {
1635
+ function mn(e) {
1689
1636
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
1690
1637
  }
1691
- function st(e) {
1638
+ function Cn(e) {
1692
1639
  const o = {
1693
1640
  state: {},
1694
- // Dummy state
1695
1641
  onStateChange: () => {
1696
1642
  },
1697
- // noop
1698
1643
  renderFallbackValue: null,
1699
1644
  ...e
1700
- }, [t] = j.useState(() => ({
1701
- current: et(o)
1702
- })), [n, r] = j.useState(() => t.current.initialState);
1645
+ }, [t] = ye.useState(() => ({ current: dn(o) })), [n, r] = ye.useState(() => t.current.initialState);
1703
1646
  return t.current.setOptions((i) => ({
1704
1647
  ...i,
1705
1648
  ...e,
@@ -1707,16 +1650,204 @@ function st(e) {
1707
1650
  ...n,
1708
1651
  ...e.state
1709
1652
  },
1710
- // Similarly, we'll maintain both our internal state and any user-provided
1711
- // state.
1712
1653
  onStateChange: (l) => {
1713
1654
  r(l), e.onStateChange == null || e.onStateChange(l);
1714
1655
  }
1715
1656
  })), t.current;
1716
1657
  }
1658
+ var yn = ({ children: e, classNameExpandedCell: o, classNameExpandedContent: t, classNameExpandedRow: n, classNameExpandedHeader: r, classNameActiveExpandedRow: i, classNameHoverRow: l, columns: s = [], data: u = [], defaultExpanded: a, enableExpandedRow: d, enableHoverRow: g, expandedState: f, id: c, isPaginationEnabled: p, queryOptions: v = {}, totalItems: F, getRowId: R, fetchData: w, onExpandedChange: $, renderExpandedRow: I, keepExpandColumnVisible: M }) => {
1659
+ const [T, j] = P([]), [J, fe] = P(!!w), [k, G] = P(0), [Y, Ye] = P(), [U, be] = P(10), [et, tt] = P(F), ce = w ? et : F, nt = N(() => Math.ceil(ce / U), [ce, U]), [b, ot] = P({}), [ee, rt] = P({}), [te, it] = P({}), [ne, lt] = P({}), pe = $t({
1660
+ queryKey: (() => {
1661
+ const S = typeof c == "string" || typeof c == "number" ? [c] : c;
1662
+ return p && S.push(k, U), Y && S.push(Y), Object.entries(b).forEach(([h, _]) => {
1663
+ S.push(`${h}:${_.join(",")}`);
1664
+ }), Object.entries(ee).forEach(([h, _]) => {
1665
+ _ && S.push(`${h}:${_}`);
1666
+ }), Object.entries(te).forEach(([h, _]) => {
1667
+ _ && S.push(`${h}:${_.from ?? ""}-${_.to ?? ""}`);
1668
+ }), Object.entries(ne).forEach(([h, _]) => {
1669
+ _ && S.push(`${h}:${_}`);
1670
+ }), S;
1671
+ })(),
1672
+ refetchOnMount: !1,
1673
+ refetchOnWindowFocus: !1,
1674
+ initialData: u,
1675
+ enabled: !!w,
1676
+ queryFn: async ({ signal: S }) => w({
1677
+ page: Math.max(k + 1, 1),
1678
+ pageSize: U,
1679
+ termOfSearch: Y,
1680
+ ...Object.keys(b).length > 0 ? b : {},
1681
+ ...Object.keys(ee).length > 0 ? ee : {},
1682
+ ...Object.keys(te).length > 0 ? te : {},
1683
+ ...Object.keys(ne).length > 0 ? ne : {}
1684
+ }, S).then(({ data: h, totalItemsCount: _ }) => (fe(!1), _ && tt(_), h)),
1685
+ ...v
1686
+ }), K = w ? pe.data : u, st = w ? pe.isLoading : !1, Se = w ? pe.isFetching : !1, ut = H((S) => {
1687
+ Ye(S), G(0);
1688
+ }, []), at = H((S, h) => {
1689
+ const _ = S.toLowerCase().replace(/\s+/g, "_");
1690
+ ot((A) => ({
1691
+ ...A,
1692
+ [_]: h
1693
+ }));
1694
+ }, []), gt = H((S, h) => {
1695
+ const _ = S.toLowerCase().replace(/\s+/g, "_");
1696
+ rt((A) => ({
1697
+ ...A,
1698
+ [_]: h?.toISOString()
1699
+ })), G(0);
1700
+ }, []), dt = H((S, h) => {
1701
+ const _ = S.toLowerCase().replace(/\s+/g, "_");
1702
+ it((A) => ({
1703
+ ...A,
1704
+ [_]: h ? {
1705
+ from: h.from?.toISOString(),
1706
+ to: h.to?.toISOString()
1707
+ } : void 0
1708
+ })), G(0);
1709
+ }, []), ft = H((S, h) => {
1710
+ const _ = S.toLowerCase().replace(/\s+/g, "_");
1711
+ lt((A) => ({
1712
+ ...A,
1713
+ [_]: h?.toISOString()
1714
+ })), G(0);
1715
+ }, []), ct = H((S) => G(S), []), pt = H((S) => be(S), []), [St, mt] = P(a ?? {}), me = f !== void 0, B = me ? f : St, X = H((S) => {
1716
+ const h = typeof S == "function" ? S(B) : S;
1717
+ me || mt(h), $?.(S);
1718
+ }, [
1719
+ B,
1720
+ me,
1721
+ $
1722
+ ]);
1723
+ _e(() => {
1724
+ if (!d) return;
1725
+ const S = Array.isArray(c) ? c.join(",") : String(c), h = new AbortController(), _ = (W) => {
1726
+ const { detail: y } = W;
1727
+ y.tableId === S && X((D) => typeof D == "boolean" ? { [y.rowId]: !0 } : {
1728
+ ...D,
1729
+ [y.rowId]: !0
1730
+ });
1731
+ }, A = (W) => {
1732
+ const { detail: y } = W;
1733
+ y.tableId === S && X((D) => {
1734
+ if (typeof D == "boolean") return {};
1735
+ const ie = { ...D };
1736
+ return delete ie[y.rowId], ie;
1737
+ });
1738
+ }, wt = (W) => {
1739
+ const { detail: y } = W;
1740
+ y.tableId === S && X((D) => {
1741
+ if (typeof D == "boolean") return { [y.rowId]: !D };
1742
+ const ie = !!D[y.rowId], we = { ...D };
1743
+ return ie ? delete we[y.rowId] : we[y.rowId] = !0, we;
1744
+ });
1745
+ };
1746
+ return document.addEventListener(he.EXPAND_ROW, _, { signal: h.signal }), document.addEventListener(he.COLLAPSE_ROW, A, { signal: h.signal }), document.addEventListener(he.TOGGLE_ROW, wt, { signal: h.signal }), () => h.abort();
1747
+ }, [
1748
+ d,
1749
+ c,
1750
+ X
1751
+ ]);
1752
+ const Ce = N(() => K.some((S) => !!S.meta?.expandedRow), [K]), oe = N(() => Se ? [] : K.map((S, h) => R ? R(S, h) : String(h)), [
1753
+ K,
1754
+ R,
1755
+ Se
1756
+ ]), Ct = N(() => typeof B == "boolean" ? B : oe.some((S) => !!B[S]), [B, oe]), vt = N(() => typeof M == "boolean" ? M : typeof M == "object" ? oe.some((S) => !!M[S]) : !1, [M, oe]), ve = Ce || I && (Ct || vt), [q, Te] = P(!!ve);
1757
+ _e(() => {
1758
+ if (ve) {
1759
+ const S = requestAnimationFrame(() => Te(!0));
1760
+ return () => cancelAnimationFrame(S);
1761
+ } else Te(!1);
1762
+ }, [ve]);
1763
+ const [re, Be] = P(!q);
1764
+ _e(() => {
1765
+ if (q) Be(!1);
1766
+ else {
1767
+ const S = setTimeout(() => Be(!0), 300);
1768
+ return () => clearTimeout(S);
1769
+ }
1770
+ }, [q]);
1771
+ const Re = N(() => !d || !Ce && !I ? null : {
1772
+ id: "__expand",
1773
+ header: () => /* @__PURE__ */ se(ht, { children: "Expand Column" }),
1774
+ cell: ({ row: S }) => {
1775
+ const { meta: h } = S.original, _ = typeof M == "object" && !!M[S.id];
1776
+ return !h?.expandedRow && !S.getIsExpanded() && !_ ? null : /* @__PURE__ */ se("button", {
1777
+ type: "button",
1778
+ className: "hover:cursor-pointer",
1779
+ onClick: () => S.toggleExpanded(),
1780
+ "aria-label": S.getIsExpanded() ? "Collapse row" : "Expand row",
1781
+ children: /* @__PURE__ */ se(_t, { className: le("size-4 transition-transform text-slate-400 dark:text-metal-400", { "-rotate-90": S.getIsExpanded() }) })
1782
+ });
1783
+ },
1784
+ enableSorting: !1,
1785
+ meta: {
1786
+ headerClassName: le("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", q ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0", re && "!border-0 !rounded-none [&+th]:rounded-tl-lg dark:[&+th]:border-l"),
1787
+ className: le("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", q ? le("w-10 max-w-10 px-1 text-center", r) : "w-0 max-w-0 !p-0", re && "!border-0 dark:[&+td]:border-l")
1788
+ }
1789
+ }, [
1790
+ d,
1791
+ Ce,
1792
+ I,
1793
+ q,
1794
+ re,
1795
+ M
1796
+ ]), Rt = Cn({
1797
+ data: K,
1798
+ columns: N(() => Re ? [Re, ...s] : s, [s, Re]),
1799
+ ...R ? { getRowId: R } : {},
1800
+ state: {
1801
+ sorting: T,
1802
+ ...d ? { expanded: B } : {}
1803
+ },
1804
+ onSortingChange: j,
1805
+ ...d ? {
1806
+ onExpandedChange: X,
1807
+ manualExpanding: !0
1808
+ } : {},
1809
+ getCoreRowModel: fn(),
1810
+ getSortedRowModel: cn()
1811
+ });
1812
+ return /* @__PURE__ */ se(Ft.Provider, {
1813
+ value: {
1814
+ classNameActiveExpandedRow: i,
1815
+ classNameExpandedCell: o,
1816
+ classNameExpandedContent: t,
1817
+ classNameExpandedRow: n,
1818
+ classNameHoverRow: l,
1819
+ enableExpandedRow: d,
1820
+ enableHoverRow: g,
1821
+ isBorderOnAdjacentCell: re,
1822
+ isExpandColumnVisible: q,
1823
+ isFirstLoad: J,
1824
+ multiselectSelected: b,
1825
+ dateFilters: ee,
1826
+ dateRangeFilters: te,
1827
+ timeFilters: ne,
1828
+ page: k,
1829
+ pageSize: U,
1830
+ sortedData: T,
1831
+ table: Rt,
1832
+ tableFetching: Se,
1833
+ tableLoading: st,
1834
+ termOfSearch: Y,
1835
+ totalItems: ce,
1836
+ totalPages: nt,
1837
+ handlePage: ct,
1838
+ onChangeTermOfSearch: ut,
1839
+ onPageSize: pt,
1840
+ onSelectMultiselect: at,
1841
+ onSelectDateFilter: gt,
1842
+ onSelectDateRangeFilter: dt,
1843
+ onSelectTimeFilter: ft,
1844
+ onSorting: j,
1845
+ renderExpandedRow: I
1846
+ },
1847
+ children: e
1848
+ });
1849
+ };
1717
1850
  export {
1718
- rt as a,
1719
- lt as f,
1720
- it as g,
1721
- st as u
1851
+ In as n,
1852
+ yn as t
1722
1853
  };