@konstructio/ui 0.1.2-alpha.101 → 0.1.2-alpha.103

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 (221) hide show
  1. package/dist/AlertDialogTrigger-CgcsW_ta.js +109 -0
  2. package/dist/{Breadcrumb-Bmv0vzgt.js → Breadcrumb-Cp3abB2w.js} +1 -1
  3. package/dist/Checkbox-DzAx7n67.js +249 -0
  4. package/dist/{CommandInput-CYYsk_31.js → CommandInput-BnvRMfLI.js} +2 -2
  5. package/dist/{Counter-DWKyr569.js → Counter-CY0xGnVM.js} +2 -2
  6. package/dist/{DayPicker-CwO8Zff5.js → DayPicker-kweJz134.js} +750 -746
  7. package/dist/{DropdownButton-Beel5_gN.js → DropdownButton-DnlwdPmb.js} +1 -1
  8. package/dist/FlagSelectorList-BoYG-_It.js +852 -0
  9. package/dist/{HamburgerTrigger-7a4POUaM.js → HamburgerTrigger-1vOTrm8-.js} +2 -2
  10. package/dist/{Input-DG3snJf_.js → Input-CW0VwW2T.js} +4 -4
  11. package/dist/{Modal-Bcu6LLAp.js → Modal-Bfzggwlr.js} +2 -2
  12. package/dist/{Spinner-BegZ5yd7.js → Spinner-Lw9mZYhg.js} +1 -1
  13. package/dist/Switch-WBRr8uOJ.js +196 -0
  14. package/dist/Toast-ByH-l4XK.js +459 -0
  15. package/dist/{Wrapper-DwxJAkNQ.js → Wrapper-ClJ_Mham.js} +2 -2
  16. package/dist/{Wrapper-DtT29fc5.js → Wrapper-XeeD3av7.js} +1 -1
  17. package/dist/components/Alert/Alert.js +2 -2
  18. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  19. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  20. package/dist/components/AlertDialog/components/index.js +1 -1
  21. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  22. package/dist/components/Checkbox/Checkbox.js +1 -1
  23. package/dist/components/Command/Command.js +2 -2
  24. package/dist/components/Command/components/Command.js +1 -1
  25. package/dist/components/Command/components/CommandEmpty.js +1 -1
  26. package/dist/components/Command/components/CommandGroup.js +1 -1
  27. package/dist/components/Command/components/CommandInput.js +1 -1
  28. package/dist/components/Command/components/CommandItem.js +1 -1
  29. package/dist/components/Command/components/CommandList.js +1 -1
  30. package/dist/components/Command/components/CommandSeparator.js +1 -1
  31. package/dist/components/Command/components/DialogContent.js +2 -2
  32. package/dist/components/Command/components/DialogOverlay.js +1 -1
  33. package/dist/components/Command/components/index.js +1 -1
  34. package/dist/components/Counter/Counter.js +1 -1
  35. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
  36. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
  37. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
  38. package/dist/components/Datepicker/DatePicker.js +2 -3
  39. package/dist/components/Drawer/Drawer.js +2 -2
  40. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  41. package/dist/components/Filter/Filter.js +4 -3
  42. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +23 -24
  43. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +60 -65
  44. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +35 -43
  45. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +40 -45
  46. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +33 -34
  47. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +45 -51
  48. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +28 -0
  49. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +56 -61
  50. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +33 -34
  51. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +70 -75
  52. package/dist/components/Filter/contexts/filter.provider.js +8 -5
  53. package/dist/components/Filter/utils/index.js +1 -1
  54. package/dist/components/Input/Input.js +1 -1
  55. package/dist/components/LineChart/LineChart.js +1 -1
  56. package/dist/components/Modal/Modal.js +1 -1
  57. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  58. package/dist/components/Modal/components/index.js +1 -1
  59. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  60. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  61. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  62. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  63. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
  64. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  65. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +2 -2
  66. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
  67. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  68. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  69. package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
  70. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  71. package/dist/components/PieChart/PieChart.js +1 -1
  72. package/dist/components/Range/Range.js +1 -1
  73. package/dist/components/Select/components/List/List.js +1 -1
  74. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  75. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +1 -1
  76. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +1 -1
  77. package/dist/components/Sidebar/components/index.js +1 -1
  78. package/dist/components/Slider/Slider.js +1 -1
  79. package/dist/components/Spinner/Spinner.js +1 -1
  80. package/dist/components/Switch/Switch.js +1 -1
  81. package/dist/components/Table/components/Filter.js +1 -1
  82. package/dist/components/Tabs/Tabs.js +1 -1
  83. package/dist/components/Tabs/components/Content.js +1 -1
  84. package/dist/components/Tabs/components/List.js +1 -1
  85. package/dist/components/Tabs/components/Trigger.js +1 -1
  86. package/dist/components/TagSelect/TagSelect.js +1 -1
  87. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
  88. package/dist/components/TagSelect/components/index.js +1 -1
  89. package/dist/components/Toast/Toast.js +1 -1
  90. package/dist/components/Tooltip/Tooltip.js +1 -1
  91. package/dist/components/VirtualizedTable/VirtualizedTable.js +87 -87
  92. package/dist/components/VirtualizedTable/components/Actions/Actions.js +19 -19
  93. package/dist/components/VirtualizedTable/components/Body/Body.js +50 -49
  94. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +67 -21
  95. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
  96. package/dist/components/VirtualizedTable/components/Filter/Filter.js +53 -63
  97. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +10 -10
  98. package/dist/components/VirtualizedTable/components/Header/Header.js +47 -34
  99. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +19 -15
  100. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +10 -10
  101. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  102. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +8 -8
  103. package/dist/components/VirtualizedTable/contexts/index.js +1 -1
  104. package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
  105. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  106. package/dist/components/index.js +10 -10
  107. package/dist/{components-CYt24H4n.js → components-BIHlj4yH.js} +1 -1
  108. package/dist/{debounce-KoeGNmnW.js → debounce-C5Ycjilj.js} +14 -14
  109. package/dist/dist-2bGlmy8N2.js +165 -0
  110. package/dist/dist-BiJrNvNo.js +193 -0
  111. package/dist/dist-BuFiu480.js +13 -0
  112. package/dist/dist-C2aTw0m62.js +1320 -0
  113. package/dist/{dist-DvoMuWKO2.js → dist-C2s4VX-42.js} +4 -4
  114. package/dist/dist-CT6d9xe7.js +441 -0
  115. package/dist/dist-CTvBzxW8.js +31 -0
  116. package/dist/dist-CVDFmWf2.js +358 -0
  117. package/dist/dist-D4FePjTS.js +194 -0
  118. package/dist/dist-DISvWx7U.js +99 -0
  119. package/dist/dist-Db6UeFo4.js +291 -0
  120. package/dist/{dist-DGO9opgu.js → dist-Dse3gSmZ.js} +49 -49
  121. package/dist/dist-j7FOUrFU.js +206 -0
  122. package/dist/{dist-C8NWUTUh.js → dist-l-aDnQZC.js} +1 -1
  123. package/dist/es2015-BWf6xQHm.js +222 -0
  124. package/dist/index.js +10 -10
  125. package/dist/{isObject-1ZmdWuhC.js → isObject-BeFFiVJK.js} +8 -8
  126. package/dist/lib/components/Alert/Alert.types.d.ts +1 -1
  127. package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +1 -1
  128. package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +2 -2
  129. package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +1 -1
  130. package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +1 -1
  131. package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +1 -1
  132. package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +1 -1
  133. package/dist/lib/components/Button/Button.types.d.ts +1 -1
  134. package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
  135. package/dist/lib/components/Card/Card.types.d.ts +1 -1
  136. package/dist/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
  137. package/dist/lib/components/Command/Command.types.d.ts +1 -1
  138. package/dist/lib/components/Counter/Counter.types.d.ts +1 -1
  139. package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +1 -1
  140. package/dist/lib/components/Drawer/Drawer.types.d.ts +1 -1
  141. package/dist/lib/components/Filter/Filter.types.d.ts +1 -1
  142. package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +2 -3
  143. package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +1 -2
  144. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +2 -3
  145. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +1 -1
  146. package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.d.ts +3 -0
  147. package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +9 -0
  148. package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
  149. package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +1 -2
  150. package/dist/lib/components/Filter/contexts/filter.context.d.ts +1 -0
  151. package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +1 -1
  152. package/dist/lib/components/Input/Input.types.d.ts +1 -1
  153. package/dist/lib/components/LineChart/LineChart.types.d.ts +1 -1
  154. package/dist/lib/components/Loading/Loading.types.d.ts +1 -1
  155. package/dist/lib/components/Modal/Modal.types.d.ts +1 -1
  156. package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -1
  157. package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +1 -1
  158. package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +1 -1
  159. package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
  160. package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +1 -1
  161. package/dist/lib/components/Radio/Radio.types.d.ts +1 -1
  162. package/dist/lib/components/RadioCard/RadioCard.types.d.ts +1 -1
  163. package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +1 -1
  164. package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +1 -1
  165. package/dist/lib/components/Range/Range.types.d.ts +1 -1
  166. package/dist/lib/components/Select/Select.types.d.ts +1 -1
  167. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -2
  168. package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +1 -1
  169. package/dist/lib/components/Slider/Slider.types.d.ts +1 -1
  170. package/dist/lib/components/Spinner/Spinner.types.d.ts +2 -2
  171. package/dist/lib/components/Stepper/Stepper.types.d.ts +1 -1
  172. package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +1 -1
  173. package/dist/lib/components/Switch/Switch.types.d.ts +1 -1
  174. package/dist/lib/components/Table/Table.types.d.ts +1 -1
  175. package/dist/lib/components/Tabs/Tabs.types.d.ts +1 -1
  176. package/dist/lib/components/TagSelect/TagSelect.types.d.ts +1 -1
  177. package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +2 -2
  178. package/dist/lib/components/TagSelect/components/List/List.types.d.ts +1 -1
  179. package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
  180. package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
  181. package/dist/lib/components/TextArea/TextArea.types.d.ts +1 -1
  182. package/dist/lib/components/Toast/Toast.types.d.ts +1 -1
  183. package/dist/lib/components/Typography/Typography.types.d.ts +1 -1
  184. package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +27 -3
  185. package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
  186. package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +1 -0
  187. package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +2 -0
  188. package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -1
  189. package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
  190. package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +1 -0
  191. package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +2 -0
  192. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +1 -1
  193. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
  194. package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
  195. package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +1 -0
  196. package/dist/lib/contexts/theme.context.d.ts +1 -1
  197. package/dist/lib/contexts/theme.hook.d.ts +1 -1
  198. package/dist/package.json +34 -33
  199. package/dist/{phone-number.provider-CJJOFYk-.js → phone-number.provider-BxQCTxp8.js} +457 -457
  200. package/dist/{prop-types-CaJpPVsa.js → prop-types-CfEYxTbR.js} +52 -52
  201. package/dist/styles.css +1 -1
  202. package/dist/{table.provider-9uUt5a-s.js → table.provider-2sAkE7z_.js} +395 -368
  203. package/dist/{utils-B6A9pnrH.js → utils-B-BTGYA5.js} +193 -193
  204. package/dist/{x-CESTrenk.js → x-BI9jmc7e.js} +1 -1
  205. package/package.json +34 -33
  206. package/dist/AlertDialogTrigger-HhbFOOUE.js +0 -124
  207. package/dist/Checkbox-B1rTwzR3.js +0 -240
  208. package/dist/FlagSelectorList-BARhzfj2.js +0 -848
  209. package/dist/Switch-1RGhhTtg.js +0 -178
  210. package/dist/Toast-CS-igZor.js +0 -467
  211. package/dist/dist-7edduNXi.js +0 -398
  212. package/dist/dist-BkYHh2kH.js +0 -408
  213. package/dist/dist-C6Cif8-U.js +0 -28
  214. package/dist/dist-CeuUxVmT.js +0 -13
  215. package/dist/dist-CfYOvauX.js +0 -125
  216. package/dist/dist-CktbIsHq.js +0 -264
  217. package/dist/dist-DGqWMRtc.js +0 -183
  218. package/dist/dist-DdFwUrO22.js +0 -11
  219. package/dist/dist-DnGj9MTf.js +0 -1692
  220. package/dist/dist-eAwtFCCA.js +0 -87
  221. /package/dist/{dist-AihTpWdF2.js → dist-AihTpWdF.js} +0 -0
@@ -1,13 +1,13 @@
1
- import { n as _t } from "./dist-C6Cif8-U.js";
2
- import { t as se } from "./utils-Cx-WzRZF.js";
3
- import { t as Ft } from "./chevron-right-CDwgDdp-.js";
1
+ import { n as At } from "./dist-CTvBzxW8.js";
2
+ import { t as Z } from "./utils-Cx-WzRZF.js";
3
+ import { t as Dt } from "./chevron-right-CDwgDdp-.js";
4
4
  import "./components/VirtualizedTable/constants/pagination.js";
5
- import { TableContext as $t } from "./components/VirtualizedTable/contexts/table.context.js";
5
+ import { TableContext as Lt } from "./components/VirtualizedTable/contexts/table.context.js";
6
6
  import { VirtualizedTableEvent as _e } from "./components/VirtualizedTable/events/index.js";
7
- import * as Ee from "react";
8
- import { useCallback as O, useEffect as Fe, useMemo as j, useState as P } from "react";
9
- import { jsx as ue } from "react/jsx-runtime";
10
- import { useQuery as Mt } from "@tanstack/react-query";
7
+ import * as ye from "react";
8
+ import { useCallback as O, useEffect as ae, useMemo as k, useRef as Ke, useState as I } from "react";
9
+ import { jsx as ge } from "react/jsx-runtime";
10
+ import { useQuery as Ht } from "@tanstack/react-query";
11
11
  function z(e, o) {
12
12
  return typeof e == "function" ? e(o) : e;
13
13
  }
@@ -19,13 +19,13 @@ function x(e, o) {
19
19
  }));
20
20
  };
21
21
  }
22
- function fe(e) {
22
+ function pe(e) {
23
23
  return e instanceof Function;
24
24
  }
25
- function Vt(e) {
25
+ function Gt(e) {
26
26
  return Array.isArray(e) && e.every((o) => typeof o == "number");
27
27
  }
28
- function Pt(e, o) {
28
+ function Ot(e, o) {
29
29
  const t = [], n = (r) => {
30
30
  r.forEach((i) => {
31
31
  t.push(i);
@@ -67,7 +67,7 @@ function C(e, o, t, n) {
67
67
  onChange: n
68
68
  };
69
69
  }
70
- function xt(e, o, t, n) {
70
+ function zt(e, o, t, n) {
71
71
  const r = () => {
72
72
  var l;
73
73
  return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
@@ -95,7 +95,7 @@ function xt(e, o, t, n) {
95
95
  l.createCell == null || l.createCell(i, t, o, e);
96
96
  }, {}), i;
97
97
  }
98
- function It(e, o, t, n) {
98
+ function Tt(e, o, t, n) {
99
99
  var r, i;
100
100
  const l = {
101
101
  ...e._getDefaultColumnDef(),
@@ -130,8 +130,8 @@ function It(e, o, t, n) {
130
130
  for (const g of e._features) g.createColumn == null || g.createColumn(d, e);
131
131
  return d;
132
132
  }
133
- var V = "debugHeaders";
134
- function Ne(e, o, t) {
133
+ var M = "debugHeaders";
134
+ function Xe(e, o, t) {
135
135
  var n;
136
136
  let r = {
137
137
  id: (n = t.id) != null ? n : o.id,
@@ -160,7 +160,7 @@ function Ne(e, o, t) {
160
160
  i.createHeader == null || i.createHeader(r, e);
161
161
  }), r;
162
162
  }
163
- var yt = { createTable: (e) => {
163
+ var Bt = { createTable: (e) => {
164
164
  e.getHeaderGroups = m(() => [
165
165
  e.getAllColumns(),
166
166
  e.getVisibleLeafColumns(),
@@ -169,40 +169,40 @@ var yt = { createTable: (e) => {
169
169
  ], (o, t, n, r) => {
170
170
  var i, l;
171
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 ae(o, [
172
+ return de(o, [
173
173
  ...s,
174
174
  ...a,
175
175
  ...u
176
176
  ], e);
177
- }, C(e.options, V, "getHeaderGroups")), e.getCenterHeaderGroups = m(() => [
177
+ }, C(e.options, M, "getHeaderGroups")), e.getCenterHeaderGroups = m(() => [
178
178
  e.getAllColumns(),
179
179
  e.getVisibleLeafColumns(),
180
180
  e.getState().columnPinning.left,
181
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))), ae(o, t, e, "center")), C(e.options, V, "getCenterHeaderGroups")), e.getLeftHeaderGroups = m(() => [
182
+ ], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), de(o, t, e, "center")), C(e.options, M, "getCenterHeaderGroups")), e.getLeftHeaderGroups = m(() => [
183
183
  e.getAllColumns(),
184
184
  e.getVisibleLeafColumns(),
185
185
  e.getState().columnPinning.left
186
186
  ], (o, t, n) => {
187
187
  var r;
188
- return ae(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(() => [
188
+ return de(o, (r = n?.map((i) => t.find((l) => l.id === i)).filter(Boolean)) != null ? r : [], e, "left");
189
+ }, C(e.options, M, "getLeftHeaderGroups")), e.getRightHeaderGroups = m(() => [
190
190
  e.getAllColumns(),
191
191
  e.getVisibleLeafColumns(),
192
192
  e.getState().columnPinning.right
193
193
  ], (o, t, n) => {
194
194
  var r;
195
- return ae(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) => {
195
+ return de(o, (r = n?.map((i) => t.find((l) => l.id === i)).filter(Boolean)) != null ? r : [], e, "right");
196
+ }, C(e.options, M, "getRightHeaderGroups")), e.getFooterGroups = m(() => [e.getHeaderGroups()], (o) => [...o].reverse(), C(e.options, M, "getFooterGroups")), e.getLeftFooterGroups = m(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), C(e.options, M, "getLeftFooterGroups")), e.getCenterFooterGroups = m(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), C(e.options, M, "getCenterFooterGroups")), e.getRightFooterGroups = m(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), C(e.options, M, "getRightFooterGroups")), e.getFlatHeaders = m(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, M, "getFlatHeaders")), e.getLeftFlatHeaders = m(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, M, "getLeftFlatHeaders")), e.getCenterFlatHeaders = m(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, M, "getCenterFlatHeaders")), e.getRightFlatHeaders = m(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, M, "getRightFlatHeaders")), e.getCenterLeafHeaders = m(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
197
197
  var n;
198
198
  return !((n = t.subHeaders) != null && n.length);
199
- }), C(e.options, V, "getCenterLeafHeaders")), e.getLeftLeafHeaders = m(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
199
+ }), C(e.options, M, "getCenterLeafHeaders")), e.getLeftLeafHeaders = m(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
200
200
  var n;
201
201
  return !((n = t.subHeaders) != null && n.length);
202
- }), C(e.options, V, "getLeftLeafHeaders")), e.getRightLeafHeaders = m(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
202
+ }), C(e.options, M, "getLeftLeafHeaders")), e.getRightLeafHeaders = m(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
203
203
  var n;
204
204
  return !((n = t.subHeaders) != null && n.length);
205
- }), C(e.options, V, "getRightLeafHeaders")), e.getLeafHeaders = m(() => [
205
+ }), C(e.options, M, "getRightLeafHeaders")), e.getLeafHeaders = m(() => [
206
206
  e.getLeftHeaderGroups(),
207
207
  e.getCenterHeaderGroups(),
208
208
  e.getRightHeaderGroups()
@@ -213,9 +213,9 @@ var yt = { createTable: (e) => {
213
213
  ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [],
214
214
  ...(u = (a = n[0]) == null ? void 0 : a.headers) != null ? u : []
215
215
  ].map((d) => d.getLeafHeaders()).flat();
216
- }, C(e.options, V, "getLeafHeaders"));
216
+ }, C(e.options, M, "getLeafHeaders"));
217
217
  } };
218
- function ae(e, o, t, n) {
218
+ function de(e, o, t, n) {
219
219
  var r, i;
220
220
  let l = 0;
221
221
  const s = function(g, f) {
@@ -233,46 +233,46 @@ function ae(e, o, t, n) {
233
233
  headers: []
234
234
  }, p = [];
235
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);
236
+ const $ = [...p].reverse()[0], R = v.column.depth === c.depth;
237
+ let h, _ = !1;
238
+ if (R && v.column.parent ? h = v.column.parent : (h = v.column, _ = !0), $ && $?.column === h) $.subHeaders.push(v);
239
239
  else {
240
- const I = Ne(t, w, {
240
+ const A = Xe(t, h, {
241
241
  id: [
242
242
  n,
243
243
  f,
244
- w.id,
244
+ h.id,
245
245
  v?.id
246
246
  ].filter(Boolean).join("_"),
247
- isPlaceholder: $,
248
- placeholderId: $ ? `${p.filter((M) => M.column === w).length}` : void 0,
247
+ isPlaceholder: _,
248
+ placeholderId: _ ? `${p.filter((P) => P.column === h).length}` : void 0,
249
249
  depth: f,
250
250
  index: p.length
251
251
  });
252
- I.subHeaders.push(v), p.push(I);
252
+ A.subHeaders.push(v), p.push(A);
253
253
  }
254
254
  c.headers.push(v), v.headerGroup = c;
255
255
  }), u.push(c), f > 0 && a(p, f - 1);
256
256
  };
257
- a(o.map((g, f) => Ne(t, g, {
257
+ a(o.map((g, f) => Xe(t, g, {
258
258
  depth: l,
259
259
  index: f
260
260
  })), l - 1), u.reverse();
261
261
  const d = (g) => g.filter((f) => f.column.getIsVisible()).map((f) => {
262
262
  let c = 0, p = 0, v = [0];
263
263
  f.subHeaders && f.subHeaders.length ? (v = [], d(f.subHeaders).forEach((R) => {
264
- let { colSpan: w, rowSpan: $ } = R;
265
- c += w, v.push($);
264
+ let { colSpan: h, rowSpan: _ } = R;
265
+ c += h, v.push(_);
266
266
  })) : c = 1;
267
- const F = Math.min(...v);
268
- return p = p + F, f.colSpan = c, f.rowSpan = p, {
267
+ const $ = Math.min(...v);
268
+ return p = p + $, f.colSpan = c, f.rowSpan = p, {
269
269
  colSpan: c,
270
270
  rowSpan: p
271
271
  };
272
272
  });
273
273
  return d((r = (i = u[0]) == null ? void 0 : i.headers) != null ? r : []), u;
274
274
  }
275
- var Et = (e, o, t, n, r, i, l) => {
275
+ var qt = (e, o, t, n, r, i, l) => {
276
276
  let s = {
277
277
  id: o,
278
278
  index: n,
@@ -298,7 +298,7 @@ var Et = (e, o, t, n, r, i, l) => {
298
298
  return (a = s.getValue(u)) != null ? a : e.options.renderFallbackValue;
299
299
  },
300
300
  subRows: i ?? [],
301
- getLeafRows: () => Pt(s.subRows, (u) => u.subRows),
301
+ getLeafRows: () => Ot(s.subRows, (u) => u.subRows),
302
302
  getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
303
303
  getParentRows: () => {
304
304
  let u = [], a = s;
@@ -309,7 +309,7 @@ var Et = (e, o, t, n, r, i, l) => {
309
309
  }
310
310
  return u.reverse();
311
311
  },
312
- getAllCells: m(() => [e.getAllLeafColumns()], (u) => u.map((a) => xt(e, s, a, a.id)), C(e.options, "debugRows", "getAllCells")),
312
+ getAllCells: m(() => [e.getAllLeafColumns()], (u) => u.map((a) => zt(e, s, a, a.id)), C(e.options, "debugRows", "getAllCells")),
313
313
  _getAllCellsByColumnId: m(() => [s.getAllCells()], (u) => u.reduce((a, d) => (a[d.column.id] = d, a), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
314
314
  };
315
315
  for (let u = 0; u < e._features.length; u++) {
@@ -317,52 +317,52 @@ var Et = (e, o, t, n, r, i, l) => {
317
317
  a == null || a.createRow == null || a.createRow(s, e);
318
318
  }
319
319
  return s;
320
- }, Dt = { createColumn: (e, o) => {
320
+ }, Nt = { createColumn: (e, o) => {
321
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
322
  if (e._getFacetedMinMaxValues)
323
323
  return e._getFacetedMinMaxValues();
324
324
  };
325
- } }, ke = (e, o, t) => {
325
+ } }, Ye = (e, o, t) => {
326
326
  var n, r;
327
327
  const i = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
328
328
  return !!(!((r = e.getValue(o)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(i));
329
329
  };
330
- ke.autoRemove = (e) => E(e);
331
- var Ue = (e, o, t) => {
330
+ Ye.autoRemove = (e) => E(e);
331
+ var Ze = (e, o, t) => {
332
332
  var n;
333
333
  return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
334
334
  };
335
- Ue.autoRemove = (e) => E(e);
336
- var Ke = (e, o, t) => {
335
+ Ze.autoRemove = (e) => E(e);
336
+ var Je = (e, o, t) => {
337
337
  var n;
338
338
  return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === t?.toLowerCase();
339
339
  };
340
- Ke.autoRemove = (e) => E(e);
341
- var Xe = (e, o, t) => {
340
+ Je.autoRemove = (e) => E(e);
341
+ var be = (e, o, t) => {
342
342
  var n;
343
343
  return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
344
344
  };
345
- Xe.autoRemove = (e) => E(e);
346
- var We = (e, o, t) => !t.some((n) => {
345
+ be.autoRemove = (e) => E(e);
346
+ var et = (e, o, t) => !t.some((n) => {
347
347
  var r;
348
348
  return !((r = e.getValue(o)) != null && r.includes(n));
349
349
  });
350
- We.autoRemove = (e) => E(e) || !(e != null && e.length);
351
- var Qe = (e, o, t) => t.some((n) => {
350
+ et.autoRemove = (e) => E(e) || !(e != null && e.length);
351
+ var tt = (e, o, t) => t.some((n) => {
352
352
  var r;
353
353
  return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
354
354
  });
355
- Qe.autoRemove = (e) => E(e) || !(e != null && e.length);
356
- var Ze = (e, o, t) => e.getValue(o) === t;
357
- Ze.autoRemove = (e) => E(e);
358
- var Je = (e, o, t) => e.getValue(o) == t;
359
- Je.autoRemove = (e) => E(e);
360
- var Oe = (e, o, t) => {
355
+ tt.autoRemove = (e) => E(e) || !(e != null && e.length);
356
+ var nt = (e, o, t) => e.getValue(o) === t;
357
+ nt.autoRemove = (e) => E(e);
358
+ var ot = (e, o, t) => e.getValue(o) == t;
359
+ ot.autoRemove = (e) => E(e);
360
+ var Ge = (e, o, t) => {
361
361
  let [n, r] = t;
362
362
  const i = e.getValue(o);
363
363
  return i >= n && i <= r;
364
364
  };
365
- Oe.resolveFilterValue = (e) => {
365
+ Ge.resolveFilterValue = (e) => {
366
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;
367
367
  if (i > l) {
368
368
  const s = i;
@@ -370,22 +370,22 @@ Oe.resolveFilterValue = (e) => {
370
370
  }
371
371
  return [i, l];
372
372
  };
373
- Oe.autoRemove = (e) => E(e) || E(e[0]) && E(e[1]);
374
- var L = {
375
- includesString: ke,
376
- includesStringSensitive: Ue,
377
- equalsString: Ke,
378
- arrIncludes: Xe,
379
- arrIncludesAll: We,
380
- arrIncludesSome: Qe,
381
- equals: Ze,
382
- weakEquals: Je,
383
- inNumberRange: Oe
373
+ Ge.autoRemove = (e) => E(e) || E(e[0]) && E(e[1]);
374
+ var H = {
375
+ includesString: Ye,
376
+ includesStringSensitive: Ze,
377
+ equalsString: Je,
378
+ arrIncludes: be,
379
+ arrIncludesAll: et,
380
+ arrIncludesSome: tt,
381
+ equals: nt,
382
+ weakEquals: ot,
383
+ inNumberRange: Ge
384
384
  };
385
385
  function E(e) {
386
386
  return e == null || e === "";
387
387
  }
388
- var At = {
388
+ var jt = {
389
389
  getDefaultColumnDef: () => ({ filterFn: "auto" }),
390
390
  getInitialState: (e) => ({
391
391
  columnFilters: [],
@@ -399,10 +399,10 @@ var At = {
399
399
  createColumn: (e, o) => {
400
400
  e.getAutoFilterFn = () => {
401
401
  const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
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;
402
+ return typeof n == "string" ? H.includesString : typeof n == "number" ? H.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? H.equals : Array.isArray(n) ? H.arrIncludes : H.weakEquals;
403
403
  }, e.getFilterFn = () => {
404
404
  var t, n;
405
- return fe(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];
405
+ return pe(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 : H[e.columnDef.filterFn];
406
406
  }, e.getCanFilter = () => {
407
407
  var t, n, r;
408
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;
@@ -415,7 +415,7 @@ var At = {
415
415
  }, e.setFilterValue = (t) => {
416
416
  o.setColumnFilters((n) => {
417
417
  const r = e.getFilterFn(), i = n?.find((d) => d.id === e.id), l = z(t, i ? i.value : void 0);
418
- if (je(r, l, e)) {
418
+ if (We(r, l, e)) {
419
419
  var s;
420
420
  return (s = n?.filter((d) => d.id !== e.id)) != null ? s : [];
421
421
  }
@@ -440,7 +440,7 @@ var At = {
440
440
  var i;
441
441
  return (i = z(o, r)) == null ? void 0 : i.filter((l) => {
442
442
  const s = t.find((u) => u.id === l.id);
443
- return !(s && je(s.getFilterFn(), l.value, s));
443
+ return !(s && We(s.getFilterFn(), l.value, s));
444
444
  });
445
445
  };
446
446
  e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange(n);
@@ -450,54 +450,54 @@ var At = {
450
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());
451
451
  }
452
452
  };
453
- function je(e, o, t) {
453
+ function We(e, o, t) {
454
454
  return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
455
455
  }
456
- var Lt = (e, o, t) => t.reduce((n, r) => {
456
+ var kt = (e, o, t) => t.reduce((n, r) => {
457
457
  const i = r.getValue(e);
458
458
  return n + (typeof i == "number" ? i : 0);
459
- }, 0), Gt = (e, o, t) => {
459
+ }, 0), Ut = (e, o, t) => {
460
460
  let n;
461
461
  return t.forEach((r) => {
462
462
  const i = r.getValue(e);
463
463
  i != null && (n > i || n === void 0 && i >= i) && (n = i);
464
464
  }), n;
465
- }, Ht = (e, o, t) => {
465
+ }, Kt = (e, o, t) => {
466
466
  let n;
467
467
  return t.forEach((r) => {
468
468
  const i = r.getValue(e);
469
469
  i != null && (n < i || n === void 0 && i >= i) && (n = i);
470
470
  }), n;
471
- }, Ot = (e, o, t) => {
471
+ }, Xt = (e, o, t) => {
472
472
  let n, r;
473
473
  return t.forEach((i) => {
474
474
  const l = i.getValue(e);
475
475
  l != null && (n === void 0 ? l >= l && (n = r = l) : (n > l && (n = l), r < l && (r = l)));
476
476
  }), [n, r];
477
- }, zt = (e, o) => {
477
+ }, Wt = (e, o) => {
478
478
  let t = 0, n = 0;
479
479
  if (o.forEach((r) => {
480
480
  let i = r.getValue(e);
481
481
  i != null && (i = +i) >= i && (++t, n += i);
482
482
  }), t) return n / t;
483
- }, Tt = (e, o) => {
483
+ }, Qt = (e, o) => {
484
484
  if (!o.length) return;
485
485
  const t = o.map((i) => i.getValue(e));
486
- if (!Vt(t)) return;
486
+ if (!Gt(t)) return;
487
487
  if (t.length === 1) return t[0];
488
488
  const n = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
489
489
  return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
490
- }, Bt = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), qt = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Nt = (e, o) => o.length, $e = {
491
- sum: Lt,
492
- min: Gt,
493
- max: Ht,
494
- extent: Ot,
495
- mean: zt,
496
- median: Tt,
497
- unique: Bt,
498
- uniqueCount: qt,
499
- count: Nt
500
- }, jt = {
490
+ }, Yt = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), Zt = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Jt = (e, o) => o.length, Fe = {
491
+ sum: kt,
492
+ min: Ut,
493
+ max: Kt,
494
+ extent: Xt,
495
+ mean: Wt,
496
+ median: Qt,
497
+ unique: Yt,
498
+ uniqueCount: Zt,
499
+ count: Jt
500
+ }, bt = {
501
501
  getDefaultColumnDef: () => ({
502
502
  aggregatedCell: (e) => {
503
503
  var o, t;
@@ -532,12 +532,12 @@ var Lt = (e, o, t) => t.reduce((n, r) => {
532
532
  };
533
533
  }, e.getAutoAggregationFn = () => {
534
534
  const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
535
- if (typeof n == "number") return $e.sum;
536
- if (Object.prototype.toString.call(n) === "[object Date]") return $e.extent;
535
+ if (typeof n == "number") return Fe.sum;
536
+ if (Object.prototype.toString.call(n) === "[object Date]") return Fe.extent;
537
537
  }, e.getAggregationFn = () => {
538
538
  var t, n;
539
539
  if (!e) throw new Error();
540
- return fe(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 : $e[e.columnDef.aggregationFn];
540
+ return pe(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];
541
541
  };
542
542
  },
543
543
  createTable: (e) => {
@@ -560,24 +560,24 @@ var Lt = (e, o, t) => t.reduce((n, r) => {
560
560
  };
561
561
  }
562
562
  };
563
- function kt(e, o, t) {
563
+ function en(e, o, t) {
564
564
  if (!(o != null && o.length) || !t) return e;
565
565
  const n = e.filter((r) => !o.includes(r.id));
566
566
  return t === "remove" ? n : [...o.map((r) => e.find((i) => i.id === r)).filter(Boolean), ...n];
567
567
  }
568
- var Ut = {
568
+ var tn = {
569
569
  getInitialState: (e) => ({
570
570
  columnOrder: [],
571
571
  ...e
572
572
  }),
573
573
  getDefaultOptions: (e) => ({ onColumnOrderChange: x("columnOrder", e) }),
574
574
  createColumn: (e, o) => {
575
- e.getIndex = m((t) => [J(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
575
+ e.getIndex = m((t) => [b(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
576
576
  var n;
577
- return ((n = J(o, t)[0]) == null ? void 0 : n.id) === e.id;
577
+ return ((n = b(o, t)[0]) == null ? void 0 : n.id) === e.id;
578
578
  }, e.getIsLastColumn = (t) => {
579
579
  var n;
580
- const r = J(o, t);
580
+ const r = b(o, t);
581
581
  return ((n = r[r.length - 1]) == null ? void 0 : n.id) === e.id;
582
582
  };
583
583
  },
@@ -600,15 +600,15 @@ var Ut = {
600
600
  }
601
601
  i = [...i, ...s];
602
602
  }
603
- return kt(i, t, n);
603
+ return en(i, t, n);
604
604
  }, C(e.options, "debugTable", "_getOrderColumnsFn"));
605
605
  }
606
- }, Me = () => ({
606
+ }, $e = () => ({
607
607
  left: [],
608
608
  right: []
609
- }), Kt = {
609
+ }), nn = {
610
610
  getInitialState: (e) => ({
611
- columnPinning: Me(),
611
+ columnPinning: $e(),
612
612
  ...e
613
613
  }),
614
614
  getDefaultOptions: (e) => ({ onColumnPinningChange: x("columnPinning", e) }),
@@ -667,7 +667,7 @@ var Ut = {
667
667
  createTable: (e) => {
668
668
  e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
669
669
  var t, n;
670
- return e.setColumnPinning(o ? Me() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : Me());
670
+ return e.setColumnPinning(o ? $e() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : $e());
671
671
  }, e.getIsSomeColumnsPinned = (o) => {
672
672
  var t;
673
673
  const n = e.getState().columnPinning;
@@ -686,25 +686,25 @@ var Ut = {
686
686
  }, C(e.options, "debugColumns", "getCenterLeafColumns"));
687
687
  }
688
688
  };
689
- function Xt(e) {
689
+ function on(e) {
690
690
  return e || (typeof document < "u" ? document : null);
691
691
  }
692
- var ge = {
692
+ var fe = {
693
693
  size: 150,
694
694
  minSize: 20,
695
695
  maxSize: Number.MAX_SAFE_INTEGER
696
- }, Ve = () => ({
696
+ }, Me = () => ({
697
697
  startOffset: null,
698
698
  startSize: null,
699
699
  deltaOffset: null,
700
700
  deltaPercentage: null,
701
701
  isResizingColumn: !1,
702
702
  columnSizingStart: []
703
- }), Wt = {
704
- getDefaultColumnDef: () => ge,
703
+ }), rn = {
704
+ getDefaultColumnDef: () => fe,
705
705
  getInitialState: (e) => ({
706
706
  columnSizing: {},
707
- columnSizingInfo: Ve(),
707
+ columnSizingInfo: Me(),
708
708
  ...e
709
709
  }),
710
710
  getDefaultOptions: (e) => ({
@@ -717,14 +717,14 @@ var ge = {
717
717
  e.getSize = () => {
718
718
  var t, n, r;
719
719
  const i = o.getState().columnSizing[e.id];
720
- return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : ge.minSize, (n = i ?? e.columnDef.size) != null ? n : ge.size), (r = e.columnDef.maxSize) != null ? r : ge.maxSize);
720
+ return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : fe.minSize, (n = i ?? e.columnDef.size) != null ? n : fe.size), (r = e.columnDef.maxSize) != null ? r : fe.maxSize);
721
721
  }, e.getStart = m((t) => [
722
722
  t,
723
- J(o, t),
723
+ b(o, t),
724
724
  o.getState().columnSizing
725
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
726
  t,
727
- J(o, t),
727
+ b(o, t),
728
728
  o.getState().columnSizing
729
729
  ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
730
730
  o.setColumnSizing((t) => {
@@ -758,25 +758,25 @@ var ge = {
758
758
  return (i) => {
759
759
  if (!n || !r || (i.persist == null || i.persist(), Pe(i) && i.touches && i.touches.length > 1))
760
760
  return;
761
- const l = e.getSize(), s = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], u = Pe(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 B = o.options.columnResizeDirection === "rtl" ? -1 : 1, k = (w - ((I = $?.startOffset) != null ? I : 0)) * B, Y = Math.max(k / ((M = $?.startSize) != null ? M : 0), -0.999999);
765
- return $.columnSizingStart.forEach((ce) => {
766
- let [U, G] = ce;
767
- a[U] = Math.round(Math.max(G + G * Y, 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 = Pe(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, d = (R, h) => {
762
+ typeof h == "number" && (o.setColumnSizingInfo((_) => {
763
+ var A, P;
764
+ const V = o.options.columnResizeDirection === "rtl" ? -1 : 1, U = (h - ((A = _?.startOffset) != null ? A : 0)) * V, K = Math.max(U / ((P = _?.startSize) != null ? P : 0), -0.999999);
765
+ return _.columnSizingStart.forEach((Se) => {
766
+ let [me, N] = Se;
767
+ a[me] = Math.round(Math.max(N + N * K, 0) * 100) / 100;
768
768
  }), {
769
- ...$,
770
- deltaOffset: k,
771
- deltaPercentage: Y
769
+ ..._,
770
+ deltaOffset: U,
771
+ deltaPercentage: K
772
772
  };
773
- }), (o.options.columnResizeMode === "onChange" || R === "end") && o.setColumnSizing(($) => ({
774
- ...$,
773
+ }), (o.options.columnResizeMode === "onChange" || R === "end") && o.setColumnSizing((_) => ({
774
+ ..._,
775
775
  ...a
776
776
  })));
777
777
  }, g = (R) => d("move", R), f = (R) => {
778
- d("end", R), o.setColumnSizingInfo((w) => ({
779
- ...w,
778
+ d("end", R), o.setColumnSizingInfo((h) => ({
779
+ ...h,
780
780
  isResizingColumn: !1,
781
781
  startOffset: null,
782
782
  startSize: null,
@@ -784,7 +784,7 @@ var ge = {
784
784
  deltaPercentage: null,
785
785
  columnSizingStart: []
786
786
  }));
787
- }, c = Xt(t), p = {
787
+ }, c = on(t), p = {
788
788
  moveHandler: (R) => g(R.clientX),
789
789
  upHandler: (R) => {
790
790
  c?.removeEventListener("mousemove", p.moveHandler), c?.removeEventListener("mouseup", p.upHandler), f(R.clientX);
@@ -792,11 +792,11 @@ var ge = {
792
792
  }, v = {
793
793
  moveHandler: (R) => (R.cancelable && (R.preventDefault(), R.stopPropagation()), g(R.touches[0].clientX), !1),
794
794
  upHandler: (R) => {
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);
795
+ var h;
796
+ c?.removeEventListener("touchmove", v.moveHandler), c?.removeEventListener("touchend", v.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), f((h = R.touches[0]) == null ? void 0 : h.clientX);
797
797
  }
798
- }, F = Qt() ? { passive: !1 } : !1;
799
- Pe(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) => ({
798
+ }, $ = ln() ? { passive: !1 } : !1;
799
+ Pe(i) ? (c?.addEventListener("touchmove", v.moveHandler, $), c?.addEventListener("touchend", v.upHandler, $)) : (c?.addEventListener("mousemove", p.moveHandler, $), c?.addEventListener("mouseup", p.upHandler, $)), o.setColumnSizingInfo((R) => ({
800
800
  ...R,
801
801
  startOffset: u,
802
802
  startSize: l,
@@ -814,7 +814,7 @@ var ge = {
814
814
  e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
815
815
  }, e.resetHeaderSizeInfo = (o) => {
816
816
  var t;
817
- e.setColumnSizingInfo(o ? Ve() : (t = e.initialState.columnSizingInfo) != null ? t : Ve());
817
+ e.setColumnSizingInfo(o ? Me() : (t = e.initialState.columnSizingInfo) != null ? t : Me());
818
818
  }, e.getTotalSize = () => {
819
819
  var o, t;
820
820
  return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
@@ -829,9 +829,9 @@ var ge = {
829
829
  return (o = (t = e.getRightHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
830
830
  };
831
831
  }
832
- }, de = null;
833
- function Qt() {
834
- if (typeof de == "boolean") return de;
832
+ }, ce = null;
833
+ function ln() {
834
+ if (typeof ce == "boolean") return ce;
835
835
  let e = !1;
836
836
  try {
837
837
  const o = { get passive() {
@@ -842,12 +842,12 @@ function Qt() {
842
842
  } catch {
843
843
  e = !1;
844
844
  }
845
- return de = e, de;
845
+ return ce = e, ce;
846
846
  }
847
847
  function Pe(e) {
848
848
  return e.type === "touchstart";
849
849
  }
850
- var Zt = {
850
+ var sn = {
851
851
  getInitialState: (e) => ({
852
852
  columnVisibility: {},
853
853
  ...e
@@ -898,15 +898,15 @@ var Zt = {
898
898
  };
899
899
  }
900
900
  };
901
- function J(e, o) {
901
+ function b(e, o) {
902
902
  return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
903
903
  }
904
- var Jt = { createTable: (e) => {
904
+ var un = { createTable: (e) => {
905
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
906
  if (e._getGlobalFacetedMinMaxValues)
907
907
  return e._getGlobalFacetedMinMaxValues();
908
908
  };
909
- } }, Yt = {
909
+ } }, an = {
910
910
  getInitialState: (e) => ({
911
911
  globalFilter: void 0,
912
912
  ...e
@@ -927,17 +927,17 @@ var Jt = { createTable: (e) => {
927
927
  };
928
928
  },
929
929
  createTable: (e) => {
930
- e.getGlobalAutoFilterFn = () => L.includesString, e.getGlobalFilterFn = () => {
930
+ e.getGlobalAutoFilterFn = () => H.includesString, e.getGlobalFilterFn = () => {
931
931
  var o, t;
932
932
  const { globalFilterFn: n } = e.options;
933
- return fe(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : L[n];
933
+ return pe(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : H[n];
934
934
  }, e.setGlobalFilter = (o) => {
935
935
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
936
936
  }, e.resetGlobalFilter = (o) => {
937
937
  e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
938
938
  };
939
939
  }
940
- }, bt = {
940
+ }, gn = {
941
941
  getInitialState: (e) => ({
942
942
  expanded: {},
943
943
  ...e
@@ -1020,14 +1020,14 @@ var Jt = { createTable: (e) => {
1020
1020
  };
1021
1021
  };
1022
1022
  }
1023
- }, De = 0, Ae = 10, xe = () => ({
1024
- pageIndex: De,
1023
+ }, Ee = 0, Ae = 10, Ve = () => ({
1024
+ pageIndex: Ee,
1025
1025
  pageSize: Ae
1026
- }), en = {
1026
+ }), dn = {
1027
1027
  getInitialState: (e) => ({
1028
1028
  ...e,
1029
1029
  pagination: {
1030
- ...xe(),
1030
+ ...Ve(),
1031
1031
  ...e?.pagination
1032
1032
  }
1033
1033
  }),
@@ -1053,7 +1053,7 @@ var Jt = { createTable: (e) => {
1053
1053
  return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
1054
1054
  }, e.resetPagination = (n) => {
1055
1055
  var r;
1056
- e.setPagination(n ? xe() : (r = e.initialState.pagination) != null ? r : xe());
1056
+ e.setPagination(n ? Ve() : (r = e.initialState.pagination) != null ? r : Ve());
1057
1057
  }, e.setPageIndex = (n) => {
1058
1058
  e.setPagination((r) => {
1059
1059
  let i = z(n, r.pageIndex);
@@ -1065,7 +1065,7 @@ var Jt = { createTable: (e) => {
1065
1065
  });
1066
1066
  }, e.resetPageIndex = (n) => {
1067
1067
  var r, i;
1068
- e.setPageIndex(n ? De : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : De);
1068
+ e.setPageIndex(n ? Ee : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : Ee);
1069
1069
  }, e.resetPageSize = (n) => {
1070
1070
  var r, i;
1071
1071
  e.setPageSize(n ? Ae : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : Ae);
@@ -1102,7 +1102,7 @@ var Jt = { createTable: (e) => {
1102
1102
  }, Ie = () => ({
1103
1103
  top: [],
1104
1104
  bottom: []
1105
- }), tn = {
1105
+ }), fn = {
1106
1106
  getInitialState: (e) => ({
1107
1107
  rowPinning: Ie(),
1108
1108
  ...e
@@ -1190,7 +1190,7 @@ var Jt = { createTable: (e) => {
1190
1190
  return o.filter((i) => !r.has(i.id));
1191
1191
  }, C(e.options, "debugRows", "getCenterRows"));
1192
1192
  }
1193
- }, nn = {
1193
+ }, cn = {
1194
1194
  getInitialState: (e) => ({
1195
1195
  rowSelection: {},
1196
1196
  ...e
@@ -1218,17 +1218,17 @@ var Jt = { createTable: (e) => {
1218
1218
  }, e.toggleAllPageRowsSelected = (o) => e.setRowSelection((t) => {
1219
1219
  const n = typeof o < "u" ? o : !e.getIsAllPageRowsSelected(), r = { ...t };
1220
1220
  return e.getRowModel().rows.forEach((i) => {
1221
- Le(r, i.id, n, !0, e);
1221
+ De(r, i.id, n, !0, e);
1222
1222
  }), r;
1223
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? ye(e, t) : {
1223
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? xe(e, t) : {
1224
1224
  rows: [],
1225
1225
  flatRows: [],
1226
1226
  rowsById: {}
1227
- }, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? ye(e, t) : {
1227
+ }, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? xe(e, t) : {
1228
1228
  rows: [],
1229
1229
  flatRows: [],
1230
1230
  rowsById: {}
1231
- }, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? ye(e, t) : {
1231
+ }, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? xe(e, t) : {
1232
1232
  rows: [],
1233
1233
  flatRows: [],
1234
1234
  rowsById: {}
@@ -1260,17 +1260,17 @@ var Jt = { createTable: (e) => {
1260
1260
  var l;
1261
1261
  if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t) return i;
1262
1262
  const s = { ...i };
1263
- return Le(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
1263
+ return De(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
1264
1264
  });
1265
1265
  }, e.getIsSelected = () => {
1266
1266
  const { rowSelection: t } = o.getState();
1267
- return ze(e, t);
1267
+ return Oe(e, t);
1268
1268
  }, e.getIsSomeSelected = () => {
1269
1269
  const { rowSelection: t } = o.getState();
1270
- return Ge(e, t) === "some";
1270
+ return Le(e, t) === "some";
1271
1271
  }, e.getIsAllSubRowsSelected = () => {
1272
1272
  const { rowSelection: t } = o.getState();
1273
- return Ge(e, t) === "all";
1273
+ return Le(e, t) === "all";
1274
1274
  }, e.getCanSelect = () => {
1275
1275
  var t;
1276
1276
  return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
@@ -1288,16 +1288,16 @@ var Jt = { createTable: (e) => {
1288
1288
  };
1289
1289
  };
1290
1290
  }
1291
- }, Le = (e, o, t, n, r) => {
1291
+ }, De = (e, o, t, n, r) => {
1292
1292
  var i;
1293
1293
  const l = r.getRow(o, !0);
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) => Le(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) => De(e, s.id, t, n, r));
1295
1295
  };
1296
- function ye(e, o) {
1296
+ function xe(e, o) {
1297
1297
  const t = e.getState().rowSelection, n = [], r = {}, i = function(l, s) {
1298
1298
  return l.map((u) => {
1299
1299
  var a;
1300
- const d = ze(u, t);
1300
+ const d = Oe(u, t);
1301
1301
  if (d && (n.push(u), r[u.id] = u), (a = u.subRows) != null && a.length && (u = {
1302
1302
  ...u,
1303
1303
  subRows: i(u.subRows)
@@ -1310,32 +1310,32 @@ function ye(e, o) {
1310
1310
  rowsById: r
1311
1311
  };
1312
1312
  }
1313
- function ze(e, o) {
1313
+ function Oe(e, o) {
1314
1314
  var t;
1315
1315
  return (t = o[e.id]) != null ? t : !1;
1316
1316
  }
1317
- function Ge(e, o, t) {
1317
+ function Le(e, o, t) {
1318
1318
  var n;
1319
1319
  if (!((n = e.subRows) != null && n.length)) return !1;
1320
1320
  let r = !0, i = !1;
1321
1321
  return e.subRows.forEach((l) => {
1322
- if (!(i && !r) && (l.getCanSelect() && (ze(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
1323
- const s = Ge(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);
1324
1324
  s === "all" ? i = !0 : (s === "some" && (i = !0), r = !1);
1325
1325
  }
1326
1326
  }), r ? "all" : i ? "some" : !1;
1327
1327
  }
1328
- var He = /([0-9]+)/gm, on = (e, o, t) => Ye(T(e.getValue(t)).toLowerCase(), T(o.getValue(t)).toLowerCase()), rn = (e, o, t) => Ye(T(e.getValue(t)), T(o.getValue(t))), ln = (e, o, t) => Te(T(e.getValue(t)).toLowerCase(), T(o.getValue(t)).toLowerCase()), sn = (e, o, t) => Te(T(e.getValue(t)), T(o.getValue(t))), un = (e, o, t) => {
1328
+ var He = /([0-9]+)/gm, pn = (e, o, t) => rt(T(e.getValue(t)).toLowerCase(), T(o.getValue(t)).toLowerCase()), Sn = (e, o, t) => rt(T(e.getValue(t)), T(o.getValue(t))), mn = (e, o, t) => ze(T(e.getValue(t)).toLowerCase(), T(o.getValue(t)).toLowerCase()), Cn = (e, o, t) => ze(T(e.getValue(t)), T(o.getValue(t))), vn = (e, o, t) => {
1329
1329
  const n = e.getValue(t), r = o.getValue(t);
1330
1330
  return n > r ? 1 : n < r ? -1 : 0;
1331
- }, an = (e, o, t) => Te(e.getValue(t), o.getValue(t));
1332
- function Te(e, o) {
1331
+ }, Rn = (e, o, t) => ze(e.getValue(t), o.getValue(t));
1332
+ function ze(e, o) {
1333
1333
  return e === o ? 0 : e > o ? 1 : -1;
1334
1334
  }
1335
1335
  function T(e) {
1336
1336
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
1337
1337
  }
1338
- function Ye(e, o) {
1338
+ function rt(e, o) {
1339
1339
  const t = e.split(He).filter(Boolean), n = o.split(He).filter(Boolean);
1340
1340
  for (; t.length && n.length; ) {
1341
1341
  const r = t.shift(), i = n.shift(), l = parseInt(r, 10), s = parseInt(i, 10), u = [l, s].sort();
@@ -1350,14 +1350,14 @@ function Ye(e, o) {
1350
1350
  }
1351
1351
  return t.length - n.length;
1352
1352
  }
1353
- var Z = {
1354
- alphanumeric: on,
1355
- alphanumericCaseSensitive: rn,
1356
- text: ln,
1357
- textCaseSensitive: sn,
1358
- datetime: un,
1359
- basic: an
1360
- }, gn = {
1353
+ var J = {
1354
+ alphanumeric: pn,
1355
+ alphanumericCaseSensitive: Sn,
1356
+ text: mn,
1357
+ textCaseSensitive: Cn,
1358
+ datetime: vn,
1359
+ basic: Rn
1360
+ }, wn = {
1361
1361
  getInitialState: (e) => ({
1362
1362
  sorting: [],
1363
1363
  ...e
@@ -1376,18 +1376,18 @@ var Z = {
1376
1376
  let n = !1;
1377
1377
  for (const r of t) {
1378
1378
  const i = r?.getValue(e.id);
1379
- if (Object.prototype.toString.call(i) === "[object Date]") return Z.datetime;
1379
+ if (Object.prototype.toString.call(i) === "[object Date]") return J.datetime;
1380
1380
  if (typeof i == "string" && (n = !0, i.split(He).length > 1))
1381
- return Z.alphanumeric;
1381
+ return J.alphanumeric;
1382
1382
  }
1383
- return n ? Z.text : Z.basic;
1383
+ return n ? J.text : J.basic;
1384
1384
  }, e.getAutoSortDir = () => {
1385
1385
  const t = o.getFilteredRowModel().flatRows[0];
1386
1386
  return typeof t?.getValue(e.id) == "string" ? "asc" : "desc";
1387
1387
  }, e.getSortingFn = () => {
1388
1388
  var t, n;
1389
1389
  if (!e) throw new Error();
1390
- return fe(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 : Z[e.columnDef.sortingFn];
1390
+ return pe(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 : J[e.columnDef.sortingFn];
1391
1391
  }, e.toggleSorting = (t, n) => {
1392
1392
  const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
1393
1393
  o.setSorting((l) => {
@@ -1443,27 +1443,27 @@ var Z = {
1443
1443
  e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
1444
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());
1445
1445
  }
1446
- }, dn = [
1447
- yt,
1448
- Zt,
1449
- Ut,
1450
- Kt,
1451
- Dt,
1452
- At,
1453
- Jt,
1454
- Yt,
1455
- gn,
1456
- jt,
1457
- bt,
1458
- en,
1446
+ }, hn = [
1447
+ Bt,
1448
+ sn,
1459
1449
  tn,
1460
1450
  nn,
1461
- Wt
1451
+ Nt,
1452
+ jt,
1453
+ un,
1454
+ an,
1455
+ wn,
1456
+ bt,
1457
+ gn,
1458
+ dn,
1459
+ fn,
1460
+ cn,
1461
+ rn
1462
1462
  ];
1463
- function fn(e) {
1463
+ function _n(e) {
1464
1464
  var o, t;
1465
1465
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
1466
- const n = [...dn, ...(o = e._features) != null ? o : []];
1466
+ const n = [...hn, ...(o = e._features) != null ? o : []];
1467
1467
  let r = { _features: n };
1468
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) : {
1469
1469
  ...i,
@@ -1532,9 +1532,9 @@ function fn(e) {
1532
1532
  _getColumnDefs: () => r.options.columns,
1533
1533
  getAllColumns: m(() => [r._getColumnDefs()], (g) => {
1534
1534
  const f = function(c, p, v) {
1535
- return v === void 0 && (v = 0), c.map((F) => {
1536
- const R = It(r, F, v, p), w = F;
1537
- return R.columns = w.columns ? f(w.columns, R, v + 1) : [], R;
1535
+ return v === void 0 && (v = 0), c.map(($) => {
1536
+ const R = Tt(r, $, v, p), h = $;
1537
+ return R.columns = h.columns ? f(h.columns, R, v + 1) : [], R;
1538
1538
  });
1539
1539
  };
1540
1540
  return f(g);
@@ -1554,7 +1554,7 @@ function fn(e) {
1554
1554
  }
1555
1555
  return r;
1556
1556
  }
1557
- function cn() {
1557
+ function Fn() {
1558
1558
  return (e) => m(() => [e.options.data], (o) => {
1559
1559
  const t = {
1560
1560
  rows: [],
@@ -1564,7 +1564,7 @@ function cn() {
1564
1564
  i === void 0 && (i = 0);
1565
1565
  const s = [];
1566
1566
  for (let a = 0; a < r.length; a++) {
1567
- const d = Et(e, e._getRowId(r[a], a, l), r[a], a, i, void 0, l?.id);
1567
+ const d = qt(e, e._getRowId(r[a], a, l), r[a], a, i, void 0, l?.id);
1568
1568
  if (t.flatRows.push(d), t.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
1569
1569
  var u;
1570
1570
  d.originalSubRows = e.options.getSubRows(r[a], a), (u = d.originalSubRows) != null && u.length && (d.subRows = n(d.originalSubRows, i + 1, d));
@@ -1575,7 +1575,7 @@ function cn() {
1575
1575
  return t.rows = n(o), t;
1576
1576
  }, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
1577
1577
  }
1578
- function pn() {
1578
+ function $n() {
1579
1579
  return (e) => m(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
1580
1580
  if (!t.rows.length || !(o != null && o.length)) return t;
1581
1581
  const n = e.getState().sorting, r = [], i = n.filter((u) => {
@@ -1595,18 +1595,18 @@ function pn() {
1595
1595
  return a.sort((d, g) => {
1596
1596
  for (let c = 0; c < i.length; c += 1) {
1597
1597
  var f;
1598
- const p = i[c], v = l[p.id], F = v.sortUndefined, R = (f = p?.desc) != null ? f : !1;
1599
- let w = 0;
1600
- if (F) {
1601
- const $ = d.getValue(p.id), I = g.getValue(p.id), M = $ === void 0, B = I === void 0;
1602
- if (M || B) {
1603
- if (F === "first") return M ? -1 : 1;
1604
- if (F === "last") return M ? 1 : -1;
1605
- w = M && B ? 0 : M ? F : -F;
1598
+ const p = i[c], v = l[p.id], $ = v.sortUndefined, R = (f = p?.desc) != null ? f : !1;
1599
+ let h = 0;
1600
+ if ($) {
1601
+ const _ = d.getValue(p.id), A = g.getValue(p.id), P = _ === void 0, V = A === void 0;
1602
+ if (P || V) {
1603
+ if ($ === "first") return P ? -1 : 1;
1604
+ if ($ === "last") return P ? 1 : -1;
1605
+ h = P && V ? 0 : P ? $ : -$;
1606
1606
  }
1607
1607
  }
1608
- if (w === 0 && (w = v.sortingFn(d, g, p.id)), w !== 0)
1609
- return R && (w *= -1), v.invertSorting && (w *= -1), w;
1608
+ if (h === 0 && (h = v.sortingFn(d, g, p.id)), h !== 0)
1609
+ return R && (h *= -1), v.invertSorting && (h *= -1), h;
1610
1610
  }
1611
1611
  return d.index - g.index;
1612
1612
  }), a.forEach((d) => {
@@ -1621,29 +1621,29 @@ function pn() {
1621
1621
  };
1622
1622
  }, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
1623
1623
  }
1624
- function yn(e, o) {
1625
- return e ? Sn(e) ? /* @__PURE__ */ Ee.createElement(e, o) : e : null;
1624
+ function qn(e, o) {
1625
+ return e ? Mn(e) ? /* @__PURE__ */ ye.createElement(e, o) : e : null;
1626
1626
  }
1627
- function Sn(e) {
1628
- return mn(e) || typeof e == "function" || Cn(e);
1627
+ function Mn(e) {
1628
+ return Pn(e) || typeof e == "function" || Vn(e);
1629
1629
  }
1630
- function mn(e) {
1630
+ function Pn(e) {
1631
1631
  return typeof e == "function" && (() => {
1632
1632
  const o = Object.getPrototypeOf(e);
1633
1633
  return o.prototype && o.prototype.isReactComponent;
1634
1634
  })();
1635
1635
  }
1636
- function Cn(e) {
1636
+ function Vn(e) {
1637
1637
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
1638
1638
  }
1639
- function vn(e) {
1639
+ function In(e) {
1640
1640
  const o = {
1641
1641
  state: {},
1642
1642
  onStateChange: () => {
1643
1643
  },
1644
1644
  renderFallbackValue: null,
1645
1645
  ...e
1646
- }, [t] = Ee.useState(() => ({ current: fn(o) })), [n, r] = Ee.useState(() => t.current.initialState);
1646
+ }, [t] = ye.useState(() => ({ current: _n(o) })), [n, r] = ye.useState(() => t.current.initialState);
1647
1647
  return t.current.setOptions((i) => ({
1648
1648
  ...i,
1649
1649
  ...e,
@@ -1656,161 +1656,186 @@ function vn(e) {
1656
1656
  }
1657
1657
  })), t.current;
1658
1658
  }
1659
- var En = ({ 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 }) => {
1660
- const [B, k] = P([]), [Y, ce] = P(!!w), [U, G] = P(0), [b, be] = P(), [K, et] = P(10), [tt, nt] = P(F), pe = w ? tt : F, ot = j(() => Math.ceil(pe / K), [pe, K]), [ee, rt] = P({}), [te, it] = P({}), [ne, lt] = P({}), [oe, st] = P({}), Se = Mt({
1661
- queryKey: (() => {
1662
- const S = typeof c == "string" || typeof c == "number" ? [c] : c;
1663
- return p && S.push(U, K), b && S.push(b), Object.entries(ee).forEach(([h, _]) => {
1664
- S.push(`${h}:${_.join(",")}`);
1665
- }), Object.entries(te).forEach(([h, _]) => {
1666
- _ && S.push(`${h}:${_}`);
1667
- }), Object.entries(ne).forEach(([h, _]) => {
1668
- _ && S.push(`${h}:${_.from ?? ""}-${_.to ?? ""}`);
1669
- }), Object.entries(oe).forEach(([h, _]) => {
1670
- _ && S.push(`${h}:${_}`);
1671
- }), S;
1672
- })(),
1659
+ var Qe = [
1660
+ "data",
1661
+ "error",
1662
+ "isError",
1663
+ "isLoading",
1664
+ "isFetching",
1665
+ "dataUpdatedAt"
1666
+ ], xn = [], yn = (e) => e === void 0 || e === "all" ? e : typeof e == "function" ? () => {
1667
+ const o = e();
1668
+ return o === void 0 || o === "all" ? o : [.../* @__PURE__ */ new Set([...o, ...Qe])];
1669
+ } : [.../* @__PURE__ */ new Set([...e, ...Qe])], Nn = ({ 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, headerContent: c, id: p, isPaginationEnabled: v, queryOptions: $ = {}, totalItems: R, getRowId: h, fetchData: _, onExpandedChange: A, renderExpandedRow: P, keepExpandColumnVisible: V }) => {
1670
+ const [U, K] = I([]), [Se, me] = I(!!_), [N, X] = I(0), [ee, it] = I(), [te, lt] = I(10), [st, ut] = I(R), Te = _ ? st : R, at = Math.ceil(Te / te), [ne, gt] = I({}), [oe, dt] = I({}), [re, ft] = I({}), [ie, ct] = I({}), pt = () => {
1671
+ const S = typeof p == "string" || typeof p == "number" ? [p] : [...p];
1672
+ return v && S.push(N, te), ee && S.push(ee), Object.entries(ne).forEach(([w, F]) => {
1673
+ S.push(`${w}:${F.join(",")}`);
1674
+ }), Object.entries(oe).forEach(([w, F]) => {
1675
+ F && S.push(`${w}:${F}`);
1676
+ }), Object.entries(re).forEach(([w, F]) => {
1677
+ F && S.push(`${w}:${F.from ?? ""}-${F.to ?? ""}`);
1678
+ }), Object.entries(ie).forEach(([w, F]) => {
1679
+ F && S.push(`${w}:${F}`);
1680
+ }), S;
1681
+ }, { notifyOnChangeProps: St, ...Be } = $, qe = Ke({}), Ne = Ke(!1), j = Ht({
1673
1682
  refetchOnMount: !1,
1674
1683
  refetchOnWindowFocus: !1,
1675
- initialData: u,
1676
- enabled: !!w,
1677
- queryFn: async ({ signal: S }) => w({
1678
- page: Math.max(U + 1, 1),
1679
- pageSize: K,
1680
- termOfSearch: b,
1681
- ...Object.keys(ee).length > 0 ? ee : {},
1682
- ...Object.keys(te).length > 0 ? te : {},
1683
- ...Object.keys(ne).length > 0 ? ne : {},
1684
- ...Object.keys(oe).length > 0 ? oe : {}
1685
- }, S).then(({ data: h, totalItemsCount: _ }) => (ce(!1), _ && nt(_), h)),
1686
- ...v
1687
- }), X = w ? Se.data : u, ut = w ? Se.isLoading : !1, me = w ? Se.isFetching : !1, at = O((S) => {
1688
- be(S), G(0);
1689
- }, []), gt = O((S, h) => {
1690
- const _ = S.toLowerCase().replace(/\s+/g, "_");
1691
- rt((A) => ({
1692
- ...A,
1693
- [_]: h
1684
+ ...Be,
1685
+ notifyOnChangeProps: yn(St),
1686
+ queryKey: pt(),
1687
+ enabled: (S) => {
1688
+ if (!_) return !1;
1689
+ const { enabled: w } = Be;
1690
+ return typeof w == "function" ? !!w(S) : w ?? !0;
1691
+ },
1692
+ initialData: () => {
1693
+ if (!(Ne.current || u.length === 0))
1694
+ return Ne.current = !0, u;
1695
+ },
1696
+ queryFn: async ({ signal: S }) => {
1697
+ const { data: w, totalItemsCount: F } = await _({
1698
+ page: Math.max(N + 1, 1),
1699
+ pageSize: te,
1700
+ termOfSearch: ee,
1701
+ ...Object.keys(ne).length > 0 ? ne : {},
1702
+ ...Object.keys(oe).length > 0 ? oe : {},
1703
+ ...Object.keys(re).length > 0 ? re : {},
1704
+ ...Object.keys(ie).length > 0 ? ie : {}
1705
+ }, S);
1706
+ return qe.current = { totalItemsCount: F }, w;
1707
+ }
1708
+ }), W = _ ? j.data ?? xn : u, mt = _ ? j.isLoading : !1, Ct = _ ? j.isFetching : !1, vt = _ ? j.error : null, je = !!c;
1709
+ ae(() => {
1710
+ if (!_ || j.dataUpdatedAt === 0) return;
1711
+ me(!1);
1712
+ const { totalItemsCount: S } = qe.current;
1713
+ S && ut(S);
1714
+ }, [_, j.dataUpdatedAt]);
1715
+ const Rt = O((S) => {
1716
+ it(S), X(0);
1717
+ }, []), wt = O((S, w) => {
1718
+ const F = S.toLowerCase().replace(/\s+/g, "_");
1719
+ gt((L) => ({
1720
+ ...L,
1721
+ [F]: w
1694
1722
  }));
1695
- }, []), dt = O((S, h) => {
1696
- const _ = S.toLowerCase().replace(/\s+/g, "_");
1697
- it((A) => ({
1698
- ...A,
1699
- [_]: h?.toISOString()
1700
- })), G(0);
1701
- }, []), ft = O((S, h) => {
1702
- const _ = S.toLowerCase().replace(/\s+/g, "_");
1703
- lt((A) => ({
1704
- ...A,
1705
- [_]: h ? {
1706
- from: h.from?.toISOString(),
1707
- to: h.to?.toISOString()
1723
+ }, []), ht = O((S, w) => {
1724
+ const F = S.toLowerCase().replace(/\s+/g, "_");
1725
+ dt((L) => ({
1726
+ ...L,
1727
+ [F]: w?.toISOString()
1728
+ })), X(0);
1729
+ }, []), _t = O((S, w) => {
1730
+ const F = S.toLowerCase().replace(/\s+/g, "_");
1731
+ ft((L) => ({
1732
+ ...L,
1733
+ [F]: w ? {
1734
+ from: w.from?.toISOString(),
1735
+ to: w.to?.toISOString()
1708
1736
  } : void 0
1709
- })), G(0);
1710
- }, []), ct = O((S, h) => {
1711
- const _ = S.toLowerCase().replace(/\s+/g, "_");
1712
- st((A) => ({
1713
- ...A,
1714
- [_]: h?.toISOString()
1715
- })), G(0);
1716
- }, []), pt = O((S) => G(S), []), St = O((S) => et(S), []), [mt, Ct] = P(a ?? {}), Ce = f !== void 0, q = Ce ? f : mt, W = O((S) => {
1717
- const h = typeof S == "function" ? S(q) : S;
1718
- Ce || Ct(h), $?.(S);
1737
+ })), X(0);
1738
+ }, []), Ft = O((S, w) => {
1739
+ const F = S.toLowerCase().replace(/\s+/g, "_");
1740
+ ct((L) => ({
1741
+ ...L,
1742
+ [F]: w?.toISOString()
1743
+ })), X(0);
1744
+ }, []), $t = O((S) => X(S), []), Mt = O((S) => lt(S), []), [Pt, Vt] = I(a ?? {}), Ce = f !== void 0, B = Ce ? f : Pt, Q = O((S) => {
1745
+ const w = typeof S == "function" ? S(B) : S;
1746
+ Ce || Vt(w), A?.(S);
1719
1747
  }, [
1720
- q,
1748
+ B,
1721
1749
  Ce,
1722
- $
1750
+ A
1723
1751
  ]);
1724
- Fe(() => {
1752
+ ae(() => {
1725
1753
  if (!d) return;
1726
- const S = Array.isArray(c) ? c.join(",") : String(c), h = new AbortController(), _ = (Q) => {
1727
- const { detail: H } = Q, { rowId: y } = H;
1728
- H.tableId !== S || !y || W((D) => typeof D == "boolean" ? { [y]: !0 } : {
1754
+ const S = Array.isArray(p) ? p.join(",") : String(p), w = new AbortController(), F = (Y) => {
1755
+ const { detail: G } = Y, { rowId: y } = G;
1756
+ G.tableId !== S || !y || Q((D) => typeof D == "boolean" ? { [y]: !0 } : {
1729
1757
  ...D,
1730
1758
  [y]: !0
1731
1759
  });
1732
- }, A = (Q) => {
1733
- const { detail: H } = Q, { rowId: y } = H;
1734
- H.tableId !== S || !y || W((D) => {
1760
+ }, L = (Y) => {
1761
+ const { detail: G } = Y, { rowId: y } = G;
1762
+ G.tableId !== S || !y || Q((D) => {
1735
1763
  if (typeof D == "boolean") return {};
1736
- const le = { ...D };
1737
- return delete le[y], le;
1764
+ const ue = { ...D };
1765
+ return delete ue[y], ue;
1738
1766
  });
1739
- }, ht = (Q) => {
1740
- const { detail: H } = Q, { rowId: y } = H;
1741
- H.tableId !== S || !y || W((D) => {
1767
+ }, Et = (Y) => {
1768
+ const { detail: G } = Y, { rowId: y } = G;
1769
+ G.tableId !== S || !y || Q((D) => {
1742
1770
  if (typeof D == "boolean") return { [y]: !D };
1743
- const le = !!D[y], he = { ...D };
1744
- return le ? delete he[y] : he[y] = !0, he;
1771
+ const ue = !!D[y], he = { ...D };
1772
+ return ue ? delete he[y] : he[y] = !0, he;
1745
1773
  });
1746
1774
  };
1747
- return document.addEventListener(_e.EXPAND_ROW, _, { signal: h.signal }), document.addEventListener(_e.COLLAPSE_ROW, A, { signal: h.signal }), document.addEventListener(_e.TOGGLE_ROW, ht, { signal: h.signal }), () => h.abort();
1775
+ return document.addEventListener(_e.EXPAND_ROW, F, { signal: w.signal }), document.addEventListener(_e.COLLAPSE_ROW, L, { signal: w.signal }), document.addEventListener(_e.TOGGLE_ROW, Et, { signal: w.signal }), () => w.abort();
1748
1776
  }, [
1749
1777
  d,
1750
- c,
1751
- W
1778
+ p,
1779
+ Q
1752
1780
  ]);
1753
- const ve = j(() => X.some((S) => !!S.meta?.expandedRow), [X]), re = j(() => me ? [] : X.map((S, h) => R ? R(S, h) : String(h)), [
1754
- X,
1755
- R,
1756
- me
1757
- ]), vt = j(() => typeof q == "boolean" ? q : re.some((S) => !!q[S]), [q, re]), Rt = j(() => typeof M == "boolean" ? M : typeof M == "object" ? re.some((S) => !!M[S]) : !1, [M, re]), Re = ve || I && (vt || Rt), [N, Be] = P(!!Re);
1758
- Fe(() => {
1781
+ const ve = k(() => W.some((S) => !!S.meta?.expandedRow), [W]), le = k(() => W.map((S, w) => h ? h(S, w) : String(w)), [W, h]), It = k(() => typeof B == "boolean" ? B : le.some((S) => !!B[S]), [B, le]), xt = k(() => typeof V == "boolean" ? V : typeof V == "object" ? le.some((S) => !!V[S]) : !1, [V, le]), Re = ve || P && (It || xt), [q, ke] = I(!!Re);
1782
+ ae(() => {
1759
1783
  if (Re) {
1760
- const S = requestAnimationFrame(() => Be(!0));
1784
+ const S = requestAnimationFrame(() => ke(!0));
1761
1785
  return () => cancelAnimationFrame(S);
1762
- } else Be(!1);
1786
+ } else ke(!1);
1763
1787
  }, [Re]);
1764
- const [ie, qe] = P(!N);
1765
- Fe(() => {
1766
- if (N) qe(!1);
1788
+ const [se, Ue] = I(!q);
1789
+ ae(() => {
1790
+ if (q) Ue(!1);
1767
1791
  else {
1768
- const S = setTimeout(() => qe(!0), 300);
1792
+ const S = setTimeout(() => Ue(!0), 300);
1769
1793
  return () => clearTimeout(S);
1770
1794
  }
1771
- }, [N]);
1772
- const we = j(() => !d || !ve && !I ? null : {
1795
+ }, [q]);
1796
+ const we = k(() => !d || !ve && !P ? null : {
1773
1797
  id: "__expand",
1774
- header: () => /* @__PURE__ */ ue(_t, { children: "Expand Column" }),
1798
+ header: () => /* @__PURE__ */ ge(At, { children: "Expand Column" }),
1775
1799
  cell: ({ row: S }) => {
1776
- const { meta: h } = S.original, _ = typeof M == "object" && !!M[S.id];
1777
- return !h?.expandedRow && !S.getIsExpanded() && !_ ? null : /* @__PURE__ */ ue("button", {
1800
+ const { meta: w } = S.original, F = typeof V == "object" && !!V[S.id];
1801
+ return !w?.expandedRow && !S.getIsExpanded() && !F ? null : /* @__PURE__ */ ge("button", {
1778
1802
  type: "button",
1779
1803
  className: "hover:cursor-pointer",
1780
1804
  onClick: () => S.toggleExpanded(),
1781
1805
  "aria-label": S.getIsExpanded() ? "Collapse row" : "Expand row",
1782
- children: /* @__PURE__ */ ue(Ft, { className: se("size-4 transition-transform text-slate-400 dark:text-metal-400", { "-rotate-90": S.getIsExpanded() }) })
1806
+ children: /* @__PURE__ */ ge(Dt, { className: Z("size-4 transition-transform text-slate-400 dark:text-metal-400", { "-rotate-90": S.getIsExpanded() }) })
1783
1807
  });
1784
1808
  },
1785
1809
  enableSorting: !1,
1786
1810
  meta: {
1787
- headerClassName: se("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", N ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0", ie && "!border-0 !rounded-none [&+th]:rounded-tl-lg dark:[&+th]:border-l"),
1788
- className: se("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", N ? se("w-10 max-w-10 px-1 text-center", r) : "w-0 max-w-0 !p-0", ie && "!border-0 dark:[&+td]:border-l")
1811
+ headerClassName: Z("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", se && Z("!border-0 !rounded-none dark:[&+th]:border-l", !je && "[&+th]:rounded-tl-lg")),
1812
+ className: Z("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", q ? Z("w-10 max-w-10 px-1 text-center", r) : "w-0 max-w-0 !p-0", se && "!border-0 dark:[&+td]:border-l")
1789
1813
  }
1790
1814
  }, [
1791
1815
  d,
1792
1816
  ve,
1793
- I,
1794
- N,
1795
- ie,
1796
- M
1797
- ]), wt = vn({
1798
- data: X,
1799
- columns: j(() => we ? [we, ...s] : s, [s, we]),
1800
- ...R ? { getRowId: R } : {},
1817
+ je,
1818
+ P,
1819
+ q,
1820
+ se,
1821
+ V
1822
+ ]), yt = In({
1823
+ data: W,
1824
+ columns: k(() => we ? [we, ...s] : s, [s, we]),
1825
+ ...h ? { getRowId: h } : {},
1801
1826
  state: {
1802
- sorting: B,
1803
- ...d ? { expanded: q } : {}
1827
+ sorting: U,
1828
+ ...d ? { expanded: B } : {}
1804
1829
  },
1805
- onSortingChange: k,
1830
+ onSortingChange: K,
1806
1831
  ...d ? {
1807
- onExpandedChange: W,
1832
+ onExpandedChange: Q,
1808
1833
  manualExpanding: !0
1809
1834
  } : {},
1810
- getCoreRowModel: cn(),
1811
- getSortedRowModel: pn()
1835
+ getCoreRowModel: Fn(),
1836
+ getSortedRowModel: $n()
1812
1837
  });
1813
- return /* @__PURE__ */ ue($t.Provider, {
1838
+ return /* @__PURE__ */ ge(Lt.Provider, {
1814
1839
  value: {
1815
1840
  classNameActiveExpandedRow: i,
1816
1841
  classNameExpandedCell: o,
@@ -1819,36 +1844,38 @@ var En = ({ children: e, classNameExpandedCell: o, classNameExpandedContent: t,
1819
1844
  classNameHoverRow: l,
1820
1845
  enableExpandedRow: d,
1821
1846
  enableHoverRow: g,
1822
- isBorderOnAdjacentCell: ie,
1823
- isExpandColumnVisible: N,
1824
- isFirstLoad: Y,
1825
- multiselectSelected: ee,
1826
- dateFilters: te,
1827
- dateRangeFilters: ne,
1828
- timeFilters: oe,
1829
- page: U,
1830
- pageSize: K,
1831
- sortedData: B,
1832
- table: wt,
1833
- tableFetching: me,
1834
- tableLoading: ut,
1835
- termOfSearch: b,
1836
- totalItems: pe,
1837
- totalPages: ot,
1838
- handlePage: pt,
1839
- onChangeTermOfSearch: at,
1840
- onPageSize: St,
1841
- onSelectMultiselect: gt,
1842
- onSelectDateFilter: dt,
1843
- onSelectDateRangeFilter: ft,
1844
- onSelectTimeFilter: ct,
1845
- onSorting: k,
1846
- renderExpandedRow: I
1847
+ isBorderOnAdjacentCell: se,
1848
+ isExpandColumnVisible: q,
1849
+ isFirstLoad: Se,
1850
+ multiselectSelected: ne,
1851
+ dateFilters: oe,
1852
+ dateRangeFilters: re,
1853
+ timeFilters: ie,
1854
+ page: N,
1855
+ pageSize: te,
1856
+ sortedData: U,
1857
+ table: yt,
1858
+ tableFetching: Ct,
1859
+ tableLoading: mt,
1860
+ tableError: vt,
1861
+ headerContent: c,
1862
+ termOfSearch: ee,
1863
+ totalItems: Te,
1864
+ totalPages: at,
1865
+ handlePage: $t,
1866
+ onChangeTermOfSearch: Rt,
1867
+ onPageSize: Mt,
1868
+ onSelectMultiselect: wt,
1869
+ onSelectDateFilter: ht,
1870
+ onSelectDateRangeFilter: _t,
1871
+ onSelectTimeFilter: Ft,
1872
+ onSorting: K,
1873
+ renderExpandedRow: P
1847
1874
  },
1848
1875
  children: e
1849
1876
  });
1850
1877
  };
1851
1878
  export {
1852
- yn as n,
1853
- En as t
1879
+ qn as n,
1880
+ Nn as t
1854
1881
  };