@noxickon/onyx 6.6.0 → 6.7.1

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 (153) hide show
  1. package/dist/code-block/CodeBlock.styles.d.ts +2 -2
  2. package/dist/code-block/CodeBlock2.js +1 -1
  3. package/dist/components/Accordion/Accordion.js +1 -1
  4. package/dist/components/Accordion/Accordion.styles.d.ts +2 -2
  5. package/dist/components/Alert/Alert.js +16 -14
  6. package/dist/components/Alert/Alert.styles.d.ts +2 -2
  7. package/dist/components/AlertDialog/AlertDialog.styles.d.ts +2 -2
  8. package/dist/components/AnimatedGradientText/AnimatedGradientText.styles.d.ts +2 -2
  9. package/dist/components/AnimatedGradientText/AnimatedGradientText2.js +1 -1
  10. package/dist/components/AppLayout/AppLayout.js +1 -1
  11. package/dist/components/AppLayout/AppLayout.styles.d.ts +26 -26
  12. package/dist/components/Autocomplete/Autocomplete.js +2 -2
  13. package/dist/components/Autocomplete/Autocomplete.styles.d.ts +64 -64
  14. package/dist/components/Avatar/Avatar.styles.d.ts +4 -4
  15. package/dist/components/Badge/Badge.js +1 -1
  16. package/dist/components/Badge/Badge.styles.d.ts +2 -2
  17. package/dist/components/BlurSwitch/BlurSwitch.styles.d.ts +2 -2
  18. package/dist/components/BlurSwitch/BlurSwitch.styles.js +4 -3
  19. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  20. package/dist/components/Breadcrumb/Breadcrumb.styles.d.ts +29 -29
  21. package/dist/components/Button/Button.js +2 -2
  22. package/dist/components/Button/Button.styles.d.ts +2 -2
  23. package/dist/components/Card/Card.styles.d.ts +2 -2
  24. package/dist/components/Checkbox/Checkbox.styles.d.ts +14 -14
  25. package/dist/components/Checkbox/Checkbox.types.d.ts +4 -1
  26. package/dist/components/CheckboxGroup/CheckboxGroup.styles.d.ts +8 -8
  27. package/dist/components/Chip/Chip.js +1 -1
  28. package/dist/components/Chip/Chip.styles.d.ts +2 -2
  29. package/dist/components/Collapsible/Collapsible.js +2 -2
  30. package/dist/components/Collapsible/Collapsible.styles.d.ts +20 -20
  31. package/dist/components/Combobox/Combobox.js +4 -4
  32. package/dist/components/Combobox/Combobox.styles.d.ts +16 -16
  33. package/dist/components/Command/Command.js +2 -2
  34. package/dist/components/Command/Command.styles.d.ts +2 -2
  35. package/dist/components/ContextMenu/ContextMenu.styles.d.ts +2 -2
  36. package/dist/components/CopyButton/CopyButton.js +1 -1
  37. package/dist/components/CopyButton/CopyButton.styles.d.ts +2 -2
  38. package/dist/components/CopyInput/CopyInput.js +1 -1
  39. package/dist/components/CopyInput/CopyInput.styles.d.ts +2 -2
  40. package/dist/components/DataTable/DataTable.d.ts +1 -1
  41. package/dist/components/DataTable/DataTable.js +737 -531
  42. package/dist/components/DataTable/DataTable.styles.d.ts +53 -5
  43. package/dist/components/DataTable/DataTable.styles.js +24 -7
  44. package/dist/components/DataTable/DataTable.types.d.ts +13 -1
  45. package/dist/components/DataTable/DataTable.utils.js +1 -1
  46. package/dist/components/DescriptionList/DescriptionList.js +1 -1
  47. package/dist/components/DescriptionList/DescriptionList.styles.d.ts +14 -14
  48. package/dist/components/Dialog/Dialog.js +1 -1
  49. package/dist/components/Dialog/Dialog.styles.d.ts +2 -2
  50. package/dist/components/Drawer/Drawer.styles.d.ts +2 -2
  51. package/dist/components/Drawer/Drawer.styles.js +2 -2
  52. package/dist/components/Drawer/Drawer2.js +4 -4
  53. package/dist/components/Dropdown/Dropdown.js +1 -1
  54. package/dist/components/Dropdown/Dropdown.styles.d.ts +2 -2
  55. package/dist/components/Field/Field.styles.d.ts +29 -29
  56. package/dist/components/Fieldset/Fieldset.styles.d.ts +11 -11
  57. package/dist/components/Footer/Footer.js +1 -1
  58. package/dist/components/Footer/Footer.styles.d.ts +2 -2
  59. package/dist/components/Header/Header.js +1 -1
  60. package/dist/components/Header/Header.styles.d.ts +2 -2
  61. package/dist/components/Header/Header.styles.js +1 -1
  62. package/dist/components/HoldToDelete/HoldToDelete.css +1 -1
  63. package/dist/components/HoldToDelete/HoldToDelete.styles.d.ts +48 -21
  64. package/dist/components/HoldToDelete/HoldToDelete.styles.js +32 -17
  65. package/dist/components/HoldToDelete/HoldToDelete2.js +97 -85
  66. package/dist/components/IconTile/IconTile.styles.d.ts +8 -8
  67. package/dist/components/Input/Input.js +1 -1
  68. package/dist/components/Input/Input.styles.d.ts +26 -26
  69. package/dist/components/Kbd/Kbd.styles.d.ts +1 -1
  70. package/dist/components/Main/Main.styles.d.ts +1 -1
  71. package/dist/components/Meter/Meter.styles.d.ts +20 -20
  72. package/dist/components/NavigationMenu/NavigationMenu.js +1 -1
  73. package/dist/components/NavigationMenu/NavigationMenu.styles.d.ts +2 -2
  74. package/dist/components/NumberInput/NumberInput.js +1 -1
  75. package/dist/components/NumberInput/NumberInput.styles.d.ts +32 -32
  76. package/dist/components/OtpField/OtpField.styles.d.ts +14 -14
  77. package/dist/components/PageProgress/PageProgress.styles.d.ts +14 -14
  78. package/dist/components/PageProgress/PageProgress.styles.js +1 -1
  79. package/dist/components/Pagination/Pagination.js +1 -1
  80. package/dist/components/Pagination/Pagination.styles.d.ts +2 -2
  81. package/dist/components/Popover/Popover.js +1 -1
  82. package/dist/components/Popover/Popover.styles.d.ts +26 -26
  83. package/dist/components/Popover/Popover.styles.js +1 -1
  84. package/dist/components/Progress/Progress.styles.d.ts +20 -20
  85. package/dist/components/Radio/Radio.styles.d.ts +19 -19
  86. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.d.ts +1 -1
  87. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.js +193 -157
  88. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.d.ts +11 -2
  89. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.js +2 -1
  90. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.types.d.ts +9 -2
  91. package/dist/components/ResponsiveOverlay/index.d.ts +1 -1
  92. package/dist/components/ScrollArea/ScrollArea.styles.d.ts +23 -23
  93. package/dist/components/ScrollArea/ScrollArea2.js +2 -2
  94. package/dist/components/Select/Select.js +1 -1
  95. package/dist/components/Select/Select.styles.d.ts +38 -38
  96. package/dist/components/Separator/Separator.styles.d.ts +1 -1
  97. package/dist/components/Sidebar/Sidebar.styles.d.ts +15 -15
  98. package/dist/components/Sidebar/Sidebar2.js +19 -19
  99. package/dist/components/SidebarRail/SidebarRail.js +1 -1
  100. package/dist/components/SidebarRail/SidebarRail.styles.d.ts +17 -17
  101. package/dist/components/Skeleton/Skeleton.styles.d.ts +11 -11
  102. package/dist/components/Slider/Slider.styles.d.ts +20 -20
  103. package/dist/components/Spinner/Spinner.styles.d.ts +2 -2
  104. package/dist/components/StatusDisplay/StatusDisplay.styles.d.ts +2 -2
  105. package/dist/components/Switch/Switch.styles.d.ts +11 -11
  106. package/dist/components/TabBar/TabBar.js +1 -1
  107. package/dist/components/TabBar/TabBar.styles.d.ts +2 -2
  108. package/dist/components/Table/Table.d.ts +1 -1
  109. package/dist/components/Table/Table.js +69 -63
  110. package/dist/components/Table/Table.styles.d.ts +8 -8
  111. package/dist/components/Table/Table.styles.js +11 -11
  112. package/dist/components/Table/Table.types.d.ts +7 -1
  113. package/dist/components/Tabs/Tabs.js +4 -4
  114. package/dist/components/Tabs/Tabs.styles.d.ts +2 -2
  115. package/dist/components/Textarea/Textarea.js +2 -2
  116. package/dist/components/Textarea/Textarea.styles.d.ts +39 -39
  117. package/dist/components/Toast/Toast.css +1 -1
  118. package/dist/components/Toast/Toast.styles.d.ts +2 -2
  119. package/dist/components/Toast/Toast.styles.js +1 -1
  120. package/dist/components/Toast/Toast2.js +16 -14
  121. package/dist/components/Toggle/Toggle.js +2 -2
  122. package/dist/components/Toggle/Toggle.styles.d.ts +6 -6
  123. package/dist/components/Tooltip/Tooltip.js +1 -1
  124. package/dist/components/Tooltip/Tooltip.styles.d.ts +17 -17
  125. package/dist/components/Tooltip/Tooltip.styles.js +1 -1
  126. package/dist/components/Typewriter/Typewriter.styles.d.ts +14 -14
  127. package/dist/components/Typewriter/Typewriter2.js +4 -4
  128. package/dist/components/VirtualList/VirtualList.styles.d.ts +14 -14
  129. package/dist/context/Auth/Auth.types.d.ts +3 -1
  130. package/dist/context/Theme/Theme.js +1 -1
  131. package/dist/hooks/useCommandShortcut/useCommandShortcut.js +1 -1
  132. package/dist/hooks/useFilter/useFilter.js +1 -1
  133. package/dist/hooks/useMediaQuery/useMediaQuery.js +1 -1
  134. package/dist/hooks/useVirtualizer/useVirtualizer.js +2 -2
  135. package/dist/hooks.js +3 -3
  136. package/dist/index.js +24 -24
  137. package/dist/internal/hooks/useControllableState/useControllableState.types.d.ts +1 -1
  138. package/dist/internal/hooks/useFormState/useFormState.js +81 -81
  139. package/dist/internal/styles/addonStyles.d.ts +28 -28
  140. package/dist/internal/styles/dialogSurfaceStyles.d.ts +1 -1
  141. package/dist/internal/styles/dialogSurfaceStyles.js +2 -2
  142. package/dist/internal/styles/menuSurfaceStyles.d.ts +1 -1
  143. package/dist/internal/styles/menuSurfaceStyles.js +1 -1
  144. package/dist/internal/styles/stackedLayerStyles.d.ts +1 -0
  145. package/dist/internal/styles/stackedLayerStyles.js +4 -0
  146. package/dist/internal/styles/tableCellStyles.d.ts +5 -0
  147. package/dist/internal/styles/tableCellStyles.js +7 -0
  148. package/dist/rest/executors/restExecutor.js +1 -1
  149. package/dist/rich-editor/RichEditor.styles.d.ts +36 -36
  150. package/dist/rich-editor/RichEditor2.js +3 -3
  151. package/dist/rich-editor/useOxRichEditor.js +1 -1
  152. package/dist/tokens/shared.css +5 -0
  153. package/package.json +17 -11
@@ -4,96 +4,229 @@ import { OxDropdown as n } from "../Dropdown/index.js";
4
4
  import { OxCheckbox as r } from "../Checkbox/Checkbox.js";
5
5
  import { OxPagination as i } from "../Pagination/index.js";
6
6
  import { OxPopover as a } from "../Popover/index.js";
7
- import { OxSkeleton as o } from "../Skeleton/Skeleton2.js";
8
- import { useControllableState as s } from "../../internal/hooks/useControllableState/useControllableState.js";
9
- import { OxTable as c } from "../Table/index.js";
10
- import { useOxPagination as l } from "../../hooks/usePagination/usePagination.js";
11
- import { dataTableVariants as u } from "./DataTable.styles.js";
12
- import { orderColumnIds as d, reorderColumns as f } from "./DataTable.utils.js";
13
- import { c as p } from "react/compiler-runtime";
14
- import { ArrowDown as m, ArrowUp as h, ArrowUpDown as g, ChevronLeft as _, ChevronRight as v, EllipsisVertical as y, EyeOff as b, Funnel as x, GripVertical as S, Lock as C, Settings2 as w, Snowflake as T } from "lucide-react";
15
- import { Children as E, Fragment as D, isValidElement as O, useId as k, useRef as A, useState as j } from "react";
16
- import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
17
- import { DndContext as F, KeyboardSensor as I, PointerSensor as L, closestCenter as R, useSensor as z, useSensors as B } from "@dnd-kit/core";
18
- import { SortableContext as V, sortableKeyboardCoordinates as H, useSortable as U, verticalListSortingStrategy as W } from "@dnd-kit/sortable";
19
- import { CSS as G } from "@dnd-kit/utilities";
20
- import { pick as K } from "es-toolkit";
7
+ import { OxScrollArea as o } from "../ScrollArea/ScrollArea2.js";
8
+ import { OxSkeleton as s } from "../Skeleton/Skeleton2.js";
9
+ import { useControllableState as c } from "../../internal/hooks/useControllableState/useControllableState.js";
10
+ import { OxTable as l } from "../Table/index.js";
11
+ import { useOxPagination as u } from "../../hooks/usePagination/usePagination.js";
12
+ import { useOxVirtualizer as d } from "../../hooks/useVirtualizer/useVirtualizer.js";
13
+ import { dataTableVariants as f } from "./DataTable.styles.js";
14
+ import { orderColumnIds as p, reorderColumns as m } from "./DataTable.utils.js";
15
+ import { c as h } from "react/compiler-runtime";
16
+ import { ArrowDown as g, ArrowUp as _, ArrowUpDown as v, ChevronLeft as y, ChevronRight as b, EllipsisVertical as x, EyeOff as S, Funnel as C, GripVertical as w, Lock as T, Settings2 as E, Snowflake as D } from "lucide-react";
17
+ import { Children as O, Fragment as k, isValidElement as A, useEffect as j, useId as M, useRef as N, useState as P } from "react";
18
+ import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
19
+ import { DndContext as R, KeyboardSensor as z, PointerSensor as B, closestCenter as V, useSensor as H, useSensors as U } from "@dnd-kit/core";
20
+ import { SortableContext as W, sortableKeyboardCoordinates as G, useSortable as K, verticalListSortingStrategy as ee } from "@dnd-kit/sortable";
21
+ import { CSS as q } from "@dnd-kit/utilities";
22
+ import { pick as te } from "es-toolkit";
21
23
  //#region src/components/DataTable/DataTable.tsx
22
- var ee = "__ox-expand", q = "__ox-select", J = [
24
+ var ne = "__ox-expand", re = "__ox-select", ie = [
23
25
  "w-3/5",
24
26
  "w-2/5",
25
27
  "w-4/5"
26
- ], { Provider: te, useRequiredContext: Y } = e("OxDataTable"), X = (...e) => e.filter(Boolean).join(" ") || void 0, ne = (e) => {
28
+ ], ae = 43, oe = 33, se = 86, J = 66, Y = 39, ce = 29, le = 1, ue = (e) => e + le + 1;
29
+ function de(e, { canExpand: t, expandedRowIds: n, getRowGroupId: r, getRowId: i, withDetailItems: a }) {
30
+ let o = [], s = /* @__PURE__ */ new Map(), c;
31
+ for (let [l, u] of e.entries()) {
32
+ if (r != null) {
33
+ let e = r(u);
34
+ if (c == null || c.groupId !== e) {
35
+ let t = s.get(e) ?? 0;
36
+ s.set(e, t + 1), c = {
37
+ groupId: e,
38
+ kind: "group",
39
+ occurrence: t,
40
+ rows: []
41
+ }, o.push(c);
42
+ }
43
+ c.rows.push(u);
44
+ }
45
+ o.push({
46
+ dataIndex: l,
47
+ kind: "row",
48
+ row: u
49
+ }), a && t(u) && n.has(i(u)) && o.push({
50
+ dataIndex: l,
51
+ kind: "detail",
52
+ row: u
53
+ });
54
+ }
55
+ return o;
56
+ }
57
+ function fe(e, { defaultDetailHeight: t, defaultGroupHeight: n, defaultRowHeight: r, estimateSize: i }) {
58
+ return e.kind === "group" ? n : e.kind === "detail" ? t : i?.(e.dataIndex) ?? r;
59
+ }
60
+ var pe = "__ox-detached", X = (e, t) => `__ox-group-${String(e)}-${t}`, me = (e) => `__ox-detail-${e}`, he = (e) => `__ox-row-${e}`;
61
+ function ge(e, t) {
62
+ if (e == null) return pe;
63
+ if (e.kind === "group") return X(e.occurrence, e.groupId);
64
+ let n = t(e.row);
65
+ return e.kind === "detail" ? me(n) : he(n);
66
+ }
67
+ function _e(e, t, n) {
68
+ return t != null && (n?.(e) ?? !0);
69
+ }
70
+ var ve = (e) => e === "compact" ? oe : ae, ye = (e) => e === "compact" ? J : se, be = (e) => e === "compact" ? ce : Y;
71
+ function xe(e, t) {
72
+ let n = e.filter((e) => !e.sticky), r = n[0], i = n.at(-1);
73
+ if (r == null || i == null) return;
74
+ let a = e.filter((e) => e.sticky && e.index > i.index), o = i.index, s = 0;
75
+ for (let e of a) {
76
+ if (e.index !== o + 1) break;
77
+ o = e.index, s += e.size;
78
+ }
79
+ let c = e.findLast((e) => e.sticky && e.index < r.index);
80
+ return {
81
+ bottomHeight: t - (i.start + i.size) - s,
82
+ endIndex: o,
83
+ pinnedItem: c,
84
+ startIndex: r.index,
85
+ topHeight: r.start - (c?.size ?? 0)
86
+ };
87
+ }
88
+ var { Provider: Se, useRequiredContext: Ce } = e("OxDataTable"), Z = (...e) => e.filter(Boolean).join(" ") || void 0, we = (e) => {
27
89
  if (typeof e == "number") return e;
28
90
  if (typeof e == "string" && e.endsWith("px")) return Number.parseFloat(e);
29
- }, re = (e) => e == null ? null : typeof e == "string" || typeof e == "number" ? e : typeof e == "boolean" ? e ? "Yes" : "No" : null, Z = (e) => O(e) && e.type === we;
30
- function ie(e) {
31
- let t = p(56), { caption: n, children: r, className: i, columnOrder: a, columnVisibility: l, columns: f, data: m, defaultColumnOrder: h, defaultColumnVisibility: g, defaultExpandedRows: _, defaultFrozenColumns: v, defaultPage: y, defaultSelectedRows: b, defaultSort: x, density: S, emptyState: C, endReachedThreshold: w, frozenColumns: T, getRowCanExpand: D, getRowId: O, hover: j, loading: M, maxHeight: F, onColumnOrderChange: I, onColumnVisibilityChange: L, onEndReached: R, onFrozenColumnsChange: z, onPageChange: B, onSelectionChange: V, onSortChange: H, page: U, pageSize: W, paginationMode: G, renderExpandedRow: K, rowCount: Y, selectable: re, selectedRows: Z, sort: ie, stickyHeader: he } = e, Q = x === void 0 ? null : x, ge = S === void 0 ? "comfortable" : S, _e = C === void 0 ? "No results." : C, ve = w === void 0 ? 320 : w, ye = j === void 0 ? !0 : j, be = M === void 0 ? !1 : M, xe = W === void 0 ? 10 : W, Se = G === void 0 ? "pages" : G, Ce = re === void 0 ? !1 : re, we = he === void 0 ? !0 : he, Te = k(), $ = u({ density: ge }), Ee = new Map(f.map(pe)), De = fe, Oe;
32
- t[0] !== f || t[1] !== h ? (Oe = h ?? f.map(de), t[0] = f, t[1] = h, t[2] = Oe) : Oe = t[2];
33
- let ke;
34
- t[3] !== a || t[4] !== I || t[5] !== Oe ? (ke = {
91
+ }, Te = (e) => e == null ? null : typeof e == "string" || typeof e == "number" ? e : typeof e == "boolean" ? e ? "Yes" : "No" : null, Ee = (e) => A(e) && e.type === Xe, De = ({ headHeight: e, maxHeight: t, stickyHeader: n }) => {
92
+ if (!(t == null && !n)) return {
93
+ ...t != null && { "--ox-data-table-max-h": typeof t == "number" ? `${t}px` : t },
94
+ ...n && { "--ox-data-table-head-h": `${e}px` }
95
+ };
96
+ };
97
+ function Oe(e) {
98
+ let t = h(3), [n, r] = P(0), i, a;
99
+ return t[0] === e ? (i = t[1], a = t[2]) : (i = () => {
100
+ let t = e.current;
101
+ if (t == null || typeof ResizeObserver > "u") return;
102
+ let n = () => {
103
+ r(t.offsetHeight);
104
+ };
105
+ n();
106
+ let i = new ResizeObserver(n);
107
+ return i.observe(t), () => i.disconnect();
108
+ }, a = [e], t[0] = e, t[1] = i, t[2] = a), j(i, a), n;
109
+ }
110
+ function ke(e, t) {
111
+ let n = h(6), { enabled: r, onEndReached: i, threshold: a } = t, o = N(!1), s, c;
112
+ n[0] !== r || n[1] !== i || n[2] !== e || n[3] !== a ? (s = () => {
113
+ let t = e.current;
114
+ if (!r || i == null || t == null) return;
115
+ let n = () => {
116
+ if (t.scrollHeight - t.scrollTop - t.clientHeight > a) {
117
+ o.current = !1;
118
+ return;
119
+ }
120
+ o.current || (o.current = !0, i());
121
+ };
122
+ return t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);
123
+ }, c = [
124
+ e,
125
+ r,
126
+ i,
127
+ a
128
+ ], n[0] = r, n[1] = i, n[2] = e, n[3] = a, n[4] = s, n[5] = c) : (s = n[4], c = n[5]), j(s, c);
129
+ }
130
+ function Ae(e) {
131
+ let t = h(73), { caption: n, children: r, className: i, columnOrder: a, columnVisibility: u, columns: m, data: g, defaultColumnOrder: _, defaultColumnVisibility: v, defaultExpandedRows: y, defaultFrozenColumns: b, defaultPage: x, defaultSelectedRows: S, defaultSort: C, density: w, emptyState: T, endReachedThreshold: E, estimateSize: D, expandedRows: k, frozenColumns: A, getRowCanExpand: j, getRowGroupId: P, getRowId: F, hover: R, loading: z, maxHeight: B, onColumnOrderChange: V, onColumnVisibilityChange: H, onEndReached: U, onExpandedChange: W, onFrozenColumnsChange: G, onPageChange: K, onSelectionChange: ee, onSortChange: q, overscan: te, page: ae, pageSize: oe, paginationMode: se, renderExpandedRow: J, renderGroupHeader: Y, rowCount: ce, selectable: le, selectedRows: pe, sort: X, stickyHeader: Ce } = e, Te = C === void 0 ? null : C, Ee = w === void 0 ? "comfortable" : w, Ae = T === void 0 ? "No results." : T, He = E === void 0 ? 320 : E, Ue = R === void 0 || R, We = z !== void 0 && z, Ge = oe === void 0 ? 10 : oe, Ke = se === void 0 ? "pages" : se, qe = le !== void 0 && le, Je = Ce === void 0 || Ce, Ye = M(), Q = Ke === "virtual", $ = f({
132
+ density: Ee,
133
+ stickyHeader: Je
134
+ }), Xe = N(null), Ze = N(null), Qe = N(null), $e = Oe(Qe), et = ve(Ee), tt = ye(Ee), nt = be(Ee), rt;
135
+ t[0] === y ? rt = t[1] : (rt = y ?? /* @__PURE__ */ new Set(), t[0] = y, t[1] = rt);
136
+ let it;
137
+ t[2] !== k || t[3] !== W || t[4] !== rt ? (it = {
138
+ prop: k,
139
+ defaultProp: rt,
140
+ onChange: W
141
+ }, t[2] = k, t[3] = W, t[4] = rt, t[5] = it) : it = t[5];
142
+ let [at, ot] = c(it), st;
143
+ t[6] !== j || t[7] !== J ? (st = (e) => _e(e, J, j), t[6] = j, t[7] = J, t[8] = st) : st = t[8];
144
+ let ct = st, lt = de(g, {
145
+ canExpand: ct,
146
+ expandedRowIds: at,
147
+ getRowGroupId: Y == null ? void 0 : P,
148
+ getRowId: F,
149
+ withDetailItems: Q
150
+ }), ut = lt.flatMap(Be), dt = d({
151
+ count: Q ? lt.length : 0,
152
+ estimateSize: (e) => fe(lt[e], {
153
+ defaultDetailHeight: tt,
154
+ defaultGroupHeight: nt,
155
+ defaultRowHeight: et,
156
+ estimateSize: D
157
+ }),
158
+ getItemKey: (e) => ge(lt[e], F),
159
+ overscan: te,
160
+ scrollRef: Q ? Xe : Ze,
161
+ stickyIndices: ut
162
+ }), ft = new Map(m.map(ze)), pt = Re, mt;
163
+ t[9] !== m || t[10] !== _ ? (mt = _ ?? m.map(Le), t[9] = m, t[10] = _, t[11] = mt) : mt = t[11];
164
+ let ht;
165
+ t[12] !== a || t[13] !== V || t[14] !== mt ? (ht = {
35
166
  prop: a,
36
- defaultProp: Oe,
37
- onChange: I
38
- }, t[3] = a, t[4] = I, t[5] = Oe, t[6] = ke) : ke = t[6];
39
- let [Ae, je] = s(ke), Me;
40
- t[7] === g ? Me = t[8] : (Me = g ?? {}, t[7] = g, t[8] = Me);
41
- let Ne;
42
- t[9] !== l || t[10] !== L || t[11] !== Me ? (Ne = {
43
- prop: l,
44
- defaultProp: Me,
45
- onChange: L
46
- }, t[9] = l, t[10] = L, t[11] = Me, t[12] = Ne) : Ne = t[12];
47
- let [Pe, Fe] = s(Ne), Ie;
48
- t[13] === v ? Ie = t[14] : (Ie = v ?? [], t[13] = v, t[14] = Ie);
49
- let Le;
50
- t[15] !== T || t[16] !== z || t[17] !== Ie ? (Le = {
51
- prop: T,
52
- defaultProp: Ie,
53
- onChange: z
54
- }, t[15] = T, t[16] = z, t[17] = Ie, t[18] = Le) : Le = t[18];
55
- let [Re, ze] = s(Le), Be;
56
- t[19] !== Q || t[20] !== ie ? (Be = {
57
- prop: ie,
58
- defaultProp: Q
59
- }, t[19] = Q, t[20] = ie, t[21] = Be) : Be = t[21];
60
- let [Ve, He] = s(Be), Ue;
61
- t[22] === b ? Ue = t[23] : (Ue = b ?? /* @__PURE__ */ new Set(), t[22] = b, t[23] = Ue);
62
- let We;
63
- t[24] !== V || t[25] !== Z || t[26] !== Ue ? (We = {
64
- prop: Z,
65
- defaultProp: Ue,
167
+ defaultProp: mt,
66
168
  onChange: V
67
- }, t[24] = V, t[25] = Z, t[26] = Ue, t[27] = We) : We = t[27];
68
- let [Ge, Ke] = s(We), qe = y ?? 1, Je;
69
- t[28] !== B || t[29] !== U || t[30] !== qe ? (Je = {
70
- prop: U,
71
- defaultProp: qe,
72
- onChange: B
73
- }, t[28] = B, t[29] = U, t[30] = qe, t[31] = Je) : Je = t[31];
74
- let [Ye, Xe] = s(Je), Ze = d(f, Ae), Qe = (e) => Pe[e] !== !1, $e = Ze.map((e) => Ee.get(e)).filter(ue), et = [...$e.filter(le), ...$e.filter(ce)], tt = et.filter((e) => e.system || Qe(e.id)), nt = new Set(Re), rt = tt.filter((e) => nt.has(e.id)), it = [...rt, ...tt.filter((e) => !nt.has(e.id))], at = nt.size > 0, ot = [];
75
- K && ot.push({
76
- key: ee,
169
+ }, t[12] = a, t[13] = V, t[14] = mt, t[15] = ht) : ht = t[15];
170
+ let [gt, _t] = c(ht), vt;
171
+ t[16] === v ? vt = t[17] : (vt = v ?? {}, t[16] = v, t[17] = vt);
172
+ let yt;
173
+ t[18] !== u || t[19] !== H || t[20] !== vt ? (yt = {
174
+ prop: u,
175
+ defaultProp: vt,
176
+ onChange: H
177
+ }, t[18] = u, t[19] = H, t[20] = vt, t[21] = yt) : yt = t[21];
178
+ let [bt, xt] = c(yt), St;
179
+ t[22] === b ? St = t[23] : (St = b ?? [], t[22] = b, t[23] = St);
180
+ let Ct;
181
+ t[24] !== A || t[25] !== G || t[26] !== St ? (Ct = {
182
+ prop: A,
183
+ defaultProp: St,
184
+ onChange: G
185
+ }, t[24] = A, t[25] = G, t[26] = St, t[27] = Ct) : Ct = t[27];
186
+ let [wt, Tt] = c(Ct), Et;
187
+ t[28] !== Te || t[29] !== X ? (Et = {
188
+ prop: X,
189
+ defaultProp: Te
190
+ }, t[28] = Te, t[29] = X, t[30] = Et) : Et = t[30];
191
+ let [Dt, Ot] = c(Et), kt;
192
+ t[31] === S ? kt = t[32] : (kt = S ?? /* @__PURE__ */ new Set(), t[31] = S, t[32] = kt);
193
+ let At;
194
+ t[33] !== ee || t[34] !== pe || t[35] !== kt ? (At = {
195
+ prop: pe,
196
+ defaultProp: kt,
197
+ onChange: ee
198
+ }, t[33] = ee, t[34] = pe, t[35] = kt, t[36] = At) : At = t[36];
199
+ let [jt, Mt] = c(At), Nt = x ?? 1, Pt;
200
+ t[37] !== K || t[38] !== ae || t[39] !== Nt ? (Pt = {
201
+ prop: ae,
202
+ defaultProp: Nt,
203
+ onChange: K
204
+ }, t[37] = K, t[38] = ae, t[39] = Nt, t[40] = Pt) : Pt = t[40];
205
+ let [Ft, It] = c(Pt), Lt = p(m, gt), Rt = (e) => bt[e] !== !1, zt = Lt.map((e) => ft.get(e)).filter(Ie), Bt = [...zt.filter(Fe), ...zt.filter(Pe)], Vt = Bt.filter((e) => e.system || Rt(e.id)), Ht = new Set(wt), Ut = Vt.filter((e) => Ht.has(e.id)), Wt = [...Ut, ...Vt.filter((e) => !Ht.has(e.id))], Gt = Ht.size > 0, Kt = [];
206
+ J && Kt.push({
207
+ key: ne,
77
208
  width: 44
78
- }), Ce && ot.push({
79
- key: q,
209
+ }), qe && Kt.push({
210
+ key: re,
80
211
  width: 48
81
212
  });
82
- for (let e of rt) ot.push({
213
+ for (let e of Ut) Kt.push({
83
214
  key: e.id,
84
- width: ne(e.width) ?? ne(e.minWidth) ?? 200
215
+ width: we(e.width) ?? we(e.minWidth) ?? 200
85
216
  });
86
- let st = /* @__PURE__ */ new Map(), ct = 0;
87
- for (let e of ot) st.set(e.key, ct), ct += e.width;
88
- let lt = ot.at(-1)?.key, ut = (e, t, n) => {
217
+ let qt = /* @__PURE__ */ new Map(), Jt = 0;
218
+ for (let e of Kt) qt.set(e.key, Jt), Jt += e.width;
219
+ let Yt = Kt.at(-1)?.key, Xt = (e, t, n) => {
89
220
  let r = {};
90
221
  t != null && (r.width = t), n != null && (r.minWidth = n);
91
222
  let i, a, o;
92
- if (st.has(e)) if (at) i = "left", r.left = st.get(e), e !== lt && (a = "shadow-none", o = "shadow-none");
93
- else {
94
- Object.assign(r, { "--ox-frozen-left": `${st.get(e)}px` });
95
- let t = e === lt ? $.frozenEdge() : void 0;
96
- a = X($.frozenHead(), t), o = X($.frozenCell(), t);
223
+ if (qt.has(e)) {
224
+ if (Gt) i = "left", r.left = qt.get(e), e !== Yt && (a = "shadow-none", o = "shadow-none");
225
+ else {
226
+ Object.assign(r, { "--ox-frozen-left": `${qt.get(e)}px` });
227
+ let t = e === Yt ? $.frozenEdge() : void 0;
228
+ a = Z($.frozenHead(), t), o = Z($.frozenCell(), t);
229
+ }
97
230
  }
98
231
  return {
99
232
  sticky: i,
@@ -101,517 +234,590 @@ function ie(e) {
101
234
  cellClass: o,
102
235
  style: Object.keys(r).length > 0 ? r : void 0
103
236
  };
104
- }, dt;
105
- t[32] !== H || t[33] !== He || t[34] !== Ve ? (dt = (e, t) => {
237
+ }, Zt;
238
+ t[41] !== q || t[42] !== Ot || t[43] !== Dt ? (Zt = (e, t) => {
106
239
  let n;
107
- n = t === void 0 ? !Ve || Ve.columnId !== e ? {
240
+ n = t === void 0 ? !Dt || Dt.columnId !== e ? {
108
241
  columnId: e,
109
242
  direction: "asc"
110
- } : Ve.direction === "asc" ? {
243
+ } : Dt.direction === "asc" ? {
111
244
  columnId: e,
112
245
  direction: "desc"
113
246
  } : null : t === null ? null : {
114
247
  columnId: e,
115
248
  direction: t
116
- }, He(n), H?.(e, n?.direction ?? null);
117
- }, t[32] = H, t[33] = He, t[34] = Ve, t[35] = dt) : dt = t[35];
118
- let ft = dt, pt;
119
- t[36] === ze ? pt = t[37] : (pt = (e) => {
120
- ze((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
121
- }, t[36] = ze, t[37] = pt);
122
- let mt = pt, ht;
123
- t[38] === Fe ? ht = t[39] : (ht = (e) => {
124
- Fe((t) => ({
249
+ }, Ot(n), q?.(e, n?.direction ?? null);
250
+ }, t[41] = q, t[42] = Ot, t[43] = Dt, t[44] = Zt) : Zt = t[44];
251
+ let Qt = Zt, $t;
252
+ t[45] === Tt ? $t = t[46] : ($t = (e) => {
253
+ Tt((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
254
+ }, t[45] = Tt, t[46] = $t);
255
+ let en = $t, tn;
256
+ t[47] === xt ? tn = t[48] : (tn = (e) => {
257
+ xt((t) => ({
125
258
  ...t,
126
259
  [e]: !1
127
260
  }));
128
- }, t[38] = Fe, t[39] = ht);
129
- let gt = ht, _t;
130
- t[40] === Ke ? _t = t[41] : (_t = () => Ke(/* @__PURE__ */ new Set()), t[40] = Ke, t[41] = _t);
131
- let vt = _t, yt;
132
- t[42] !== O || t[43] !== Ge ? (yt = (e) => Ge.has(O(e)), t[42] = O, t[43] = Ge, t[44] = yt) : yt = t[44];
133
- let bt = m.filter(yt), xt = Y == null ? void 0 : Math.max(1, Math.ceil(Y / xe)), St = {
134
- baseId: Te,
135
- clearSelection: vt,
136
- columnVisibility: Pe,
137
- density: ge,
138
- frozenColumns: nt,
139
- hideColumn: gt,
140
- orderedColumns: et.map((e) => ({
261
+ }, t[47] = xt, t[48] = tn);
262
+ let nn = tn, rn;
263
+ t[49] === Mt ? rn = t[50] : (rn = () => Mt(/* @__PURE__ */ new Set()), t[49] = Mt, t[50] = rn);
264
+ let an = rn, on;
265
+ t[51] !== F || t[52] !== jt ? (on = (e) => jt.has(F(e)), t[51] = F, t[52] = jt, t[53] = on) : on = t[53];
266
+ let sn = g.filter(on), cn = ce == null ? void 0 : Math.max(1, Math.ceil(ce / Ge)), ln = {
267
+ baseId: Ye,
268
+ clearSelection: an,
269
+ columnVisibility: bt,
270
+ density: Ee,
271
+ frozenColumns: Ht,
272
+ hideColumn: nn,
273
+ orderedColumns: Bt.map((e) => ({
141
274
  header: e.header,
142
- hideable: De(e),
275
+ hideable: pt(e),
143
276
  id: e.id,
144
277
  locked: e.locked ?? !1,
145
278
  system: e.system ?? !1
146
279
  })),
147
- page: Ye,
148
- pageCount: xt,
149
- pageSize: xe,
150
- paginationMode: Se,
151
- requestSort: ft,
152
- rowCount: Y,
153
- selectable: Ce,
154
- selectedCount: bt.length,
155
- selectedRows: bt,
156
- setColumnOrder: je,
157
- setColumnVisibility: Fe,
158
- setPage: Xe,
159
- sort: Ve,
160
- toggleFrozen: mt
161
- }, Ct = A(!1), wt;
162
- t[45] !== ve || t[46] !== R || t[47] !== Se ? (wt = (e) => {
163
- if (Se !== "infinite" || !R) return;
164
- let t = e.currentTarget;
165
- t.scrollHeight - t.scrollTop - t.clientHeight <= ve ? Ct.current || (Ct.current = !0, R()) : Ct.current = !1;
166
- }, t[45] = ve, t[46] = R, t[47] = Se, t[48] = wt) : wt = t[48];
167
- let Tt = wt, Et, Dt;
168
- if (t[49] !== r) {
169
- let e = E.toArray(r);
170
- Dt = e.filter(se), Et = e.filter(oe), t[49] = r, t[50] = Et, t[51] = Dt;
171
- } else Et = t[50], Dt = t[51];
172
- let Ot = Et, kt = it.length + +!!Ce + +!!K, At = ut(ee), jt = ut(q), Mt = at ? void 0 : $.selectCol(), Nt = ae, Pt = () => be && Se === "pages" ? Array.from({ length: Math.min(xe, 8) }, (e, t) => /* @__PURE__ */ P(c.Row, { children: [
173
- K != null && /* @__PURE__ */ N(c.Cell, {
174
- className: X("w-11", At.cellClass),
175
- sticky: At.sticky,
176
- style: At.style
177
- }),
178
- Ce && /* @__PURE__ */ N(c.Cell, {
179
- className: X(Mt, jt.cellClass),
180
- sticky: jt.sticky,
181
- style: jt.style
182
- }),
183
- it.map((e, n) => {
184
- let r = ut(e.id, e.width, e.minWidth);
185
- return /* @__PURE__ */ N(c.Cell, {
186
- align: e.align,
187
- className: r.cellClass,
188
- sticky: r.sticky,
189
- style: r.style,
190
- children: /* @__PURE__ */ N(o, { className: X("h-2.5", J[(t + n) % J.length]) })
191
- }, e.id);
192
- })
193
- ] }, `__ox-skeleton-${t}`)) : m.length === 0 ? /* @__PURE__ */ N(c.Row, { children: /* @__PURE__ */ N(c.Cell, {
194
- className: $.empty(),
195
- colSpan: kt || 1,
196
- children: _e
197
- }) }, "__ox-empty") : m.flatMap((e) => {
198
- let t = O(e), n = K != null && (D?.(e) ?? !0), r = [/* @__PURE__ */ P(c.Row, {
199
- rowId: t,
280
+ page: Ft,
281
+ pageCount: cn,
282
+ pageSize: Ge,
283
+ paginationMode: Ke,
284
+ requestSort: Qt,
285
+ rowCount: ce,
286
+ selectable: qe,
287
+ selectedCount: sn.length,
288
+ selectedRows: sn,
289
+ setColumnOrder: _t,
290
+ setColumnVisibility: xt,
291
+ setPage: It,
292
+ sort: Dt,
293
+ toggleFrozen: en
294
+ }, un = Ke === "infinite", dn;
295
+ t[54] !== He || t[55] !== U || t[56] !== un ? (dn = {
296
+ enabled: un,
297
+ onEndReached: U,
298
+ threshold: He
299
+ }, t[54] = He, t[55] = U, t[56] = un, t[57] = dn) : dn = t[57], ke(Xe, dn);
300
+ let fn;
301
+ t[58] !== $e || t[59] !== B || t[60] !== Je ? (fn = De({
302
+ headHeight: $e,
303
+ maxHeight: B,
304
+ stickyHeader: Je
305
+ }), t[58] = $e, t[59] = B, t[60] = Je, t[61] = fn) : fn = t[61];
306
+ let pn = fn, mn, hn;
307
+ if (t[62] !== r) {
308
+ let e = O.toArray(r);
309
+ hn = e.filter(Ne), mn = e.filter(Me), t[62] = r, t[63] = mn, t[64] = hn;
310
+ } else mn = t[63], hn = t[64];
311
+ let gn = mn, _n = Wt.length + +!!qe + +!!J, vn = Xt(ne), yn = Xt(re), bn = Gt ? void 0 : $.selectCol(), xn = je, Sn;
312
+ t[65] === dt.measureElement ? Sn = t[66] : (Sn = (e) => ({
313
+ "aria-rowindex": ue(e.index),
314
+ "data-index": e.index,
315
+ "data-sticky": e.sticky ? "" : void 0,
316
+ ref: dt.measureElement
317
+ }), t[65] = dt.measureElement, t[66] = Sn);
318
+ let Cn = Sn, wn = (e, t) => {
319
+ let n = F(e), r = ct(e);
320
+ return /* @__PURE__ */ L(l.Row, {
321
+ rowId: n,
322
+ ...t,
200
323
  children: [
201
- K != null && /* @__PURE__ */ N(c.Cell, {
324
+ J != null && /* @__PURE__ */ I(l.Cell, {
202
325
  align: "center",
203
- className: X("w-11", At.cellClass),
204
- sticky: At.sticky,
205
- style: At.style,
206
- children: n && /* @__PURE__ */ N(c.ExpandTrigger, {})
326
+ className: Z("w-11", vn.cellClass),
327
+ sticky: vn.sticky,
328
+ style: vn.style,
329
+ children: r && /* @__PURE__ */ I(l.ExpandTrigger, {})
207
330
  }),
208
- Ce && /* @__PURE__ */ N(c.SelectCell, {
209
- className: X(Mt, jt.cellClass),
210
- sticky: jt.sticky,
211
- style: jt.style
331
+ qe && /* @__PURE__ */ I(l.SelectCell, {
332
+ className: Z(bn, yn.cellClass),
333
+ sticky: yn.sticky,
334
+ style: yn.style
212
335
  }),
213
- it.map((t) => {
214
- let n = ut(t.id, t.width, t.minWidth);
215
- return /* @__PURE__ */ N(c.Cell, {
336
+ Wt.map((t) => {
337
+ let n = Xt(t.id, t.width, t.minWidth);
338
+ return /* @__PURE__ */ I(l.Cell, {
216
339
  align: t.align,
217
340
  className: n.cellClass,
218
341
  sticky: n.sticky,
219
342
  style: n.style,
220
- children: Nt(t, e)
343
+ children: xn(t, e)
221
344
  }, t.id);
222
345
  })
223
346
  ]
224
- }, t)];
225
- return n && r.push(/* @__PURE__ */ N(c.ExpandedRow, {
347
+ }, he(n));
348
+ }, Tn = (e) => {
349
+ let t = F(e), n = [wn(e)];
350
+ return ct(e) && n.push(/* @__PURE__ */ I(l.ExpandedRow, {
226
351
  rowId: t,
227
- children: K(e)
228
- }, `${t}__detail`)), r;
229
- }), Ft;
230
- t[52] === F ? Ft = t[53] : (Ft = F == null ? void 0 : { maxHeight: F }, t[52] = F, t[53] = Ft);
231
- let It;
232
- return t[54] === n ? It = t[55] : (It = n != null && /* @__PURE__ */ N(c.Caption, { children: n }), t[54] = n, t[55] = It), /* @__PURE__ */ N(te, {
233
- value: St,
234
- children: /* @__PURE__ */ P("div", {
352
+ children: J(e)
353
+ }, me(t))), n;
354
+ }, En = (e, t) => /* @__PURE__ */ I(l.Row, {
355
+ className: $.groupRow(),
356
+ "data-ox-group-id": e.groupId,
357
+ ...t,
358
+ children: /* @__PURE__ */ I("th", {
359
+ className: $.groupCell(),
360
+ colSpan: _n || 1,
361
+ "data-ox-slot": "data-table-group-cell",
362
+ children: Y?.(e.groupId, e.rows)
363
+ })
364
+ }, ge(e, F)), Dn = (e) => {
365
+ let t = lt[e.index], n = Cn(e);
366
+ if (t.kind === "group") return En(t, n);
367
+ if (t.kind === "detail") {
368
+ let e = F(t.row);
369
+ return /* @__PURE__ */ I(l.ExpandedRow, {
370
+ rowId: e,
371
+ ...n,
372
+ children: J(t.row)
373
+ }, me(e));
374
+ }
375
+ return wn(t.row, n);
376
+ }, On = (e, t) => /* @__PURE__ */ I("tr", {
377
+ "aria-hidden": "true",
378
+ "data-ox-slot": "data-table-virtual-spacer",
379
+ children: /* @__PURE__ */ I("td", {
380
+ className: $.virtualSpacerCell(),
381
+ colSpan: _n || 1,
382
+ style: { height: t }
383
+ })
384
+ }, `__ox-virtual-spacer-${e}`), kn = () => {
385
+ let { totalSize: e, virtualItems: t } = dt, n = xe(t, e);
386
+ if (n == null) return e > 0 ? On("top", e) : null;
387
+ let { bottomHeight: r, endIndex: i, pinnedItem: a, startIndex: o, topHeight: s } = n, c = [];
388
+ s > 0 && c.push(On("top", s)), a != null && c.push(Dn(a));
389
+ for (let e of t) e.index >= o && e.index <= i && c.push(Dn(e));
390
+ return r > 0 && c.push(On("bottom", r)), c;
391
+ }, An = () => We && (Ke === "pages" || Q) ? Array.from({ length: Math.min(Ge, 8) }, (e, t) => /* @__PURE__ */ L(l.Row, { children: [
392
+ J != null && /* @__PURE__ */ I(l.Cell, {
393
+ className: Z("w-11", vn.cellClass),
394
+ sticky: vn.sticky,
395
+ style: vn.style
396
+ }),
397
+ qe && /* @__PURE__ */ I(l.Cell, {
398
+ className: Z(bn, yn.cellClass),
399
+ sticky: yn.sticky,
400
+ style: yn.style
401
+ }),
402
+ Wt.map((e, n) => {
403
+ let r = Xt(e.id, e.width, e.minWidth);
404
+ return /* @__PURE__ */ I(l.Cell, {
405
+ align: e.align,
406
+ className: r.cellClass,
407
+ sticky: r.sticky,
408
+ style: r.style,
409
+ children: /* @__PURE__ */ I(s, { className: Z("h-2.5", ie[(t + n) % ie.length]) })
410
+ }, e.id);
411
+ })
412
+ ] }, `__ox-skeleton-${t}`)) : g.length === 0 ? /* @__PURE__ */ I(l.Row, { children: /* @__PURE__ */ I(l.Cell, {
413
+ className: $.empty(),
414
+ colSpan: _n || 1,
415
+ children: Ae
416
+ }) }, "__ox-empty") : Q ? kn() : lt.flatMap((e) => e.kind === "group" ? [En(e)] : Tn(e.row)), jn;
417
+ t[67] !== g || t[68] !== F || t[69] !== Q ? (jn = Q ? g.map((e) => F(e)) : void 0, t[67] = g, t[68] = F, t[69] = Q, t[70] = jn) : jn = t[70];
418
+ let Mn;
419
+ return t[71] === n ? Mn = t[72] : (Mn = n != null && /* @__PURE__ */ I(l.Caption, { children: n }), t[71] = n, t[72] = Mn), /* @__PURE__ */ I(Se, {
420
+ value: ln,
421
+ children: /* @__PURE__ */ L("div", {
235
422
  className: $.root({ class: i }),
236
423
  "data-ox-slot": "data-table",
237
424
  children: [
238
- Dt,
239
- /* @__PURE__ */ P("div", {
240
- "aria-busy": be || void 0,
425
+ hn,
426
+ /* @__PURE__ */ L(o, {
427
+ "aria-busy": We || void 0,
241
428
  className: $.scroll(),
242
429
  "data-ox-slot": "data-table-scroll",
243
- style: Ft,
244
- onScroll: Tt,
245
- children: [/* @__PURE__ */ P(c, {
246
- defaultExpandedRows: _,
247
- density: ge,
248
- hover: ye,
249
- selectable: Ce,
250
- selectedRows: Ge,
251
- stickyHeader: we,
430
+ orientation: "both",
431
+ scrollbarClassName: $.scrollScrollbar(),
432
+ style: pn,
433
+ viewportClassName: $.scrollViewport(),
434
+ viewportRef: Xe,
435
+ children: [/* @__PURE__ */ L(l, {
436
+ "aria-rowcount": Q ? lt.length + 1 : void 0,
437
+ density: Ee,
438
+ expandedRows: at,
439
+ hover: Ue,
440
+ selectable: qe,
441
+ selectableRowIds: jn,
442
+ selectedRows: jt,
443
+ stickyHeader: Je,
252
444
  unwrapped: !0,
253
- onSelectedChange: Ke,
445
+ onExpandedChange: ot,
446
+ onSelectedChange: Mt,
254
447
  children: [
255
- It,
256
- /* @__PURE__ */ N(c.Header, { children: /* @__PURE__ */ P(c.Row, { children: [
257
- K != null && /* @__PURE__ */ N(c.Head, {
258
- className: X("w-11", At.headClass),
259
- sticky: At.sticky,
260
- style: At.style
261
- }),
262
- Ce && /* @__PURE__ */ N(c.SelectAllCell, {
263
- className: X(Mt, jt.headClass),
264
- sticky: jt.sticky,
265
- style: jt.style
266
- }),
267
- it.map((e) => {
268
- let t = ut(e.id, e.width, e.minWidth);
269
- return /* @__PURE__ */ N(me, {
270
- id: e.id,
271
- align: e.align,
272
- className: t.headClass,
273
- freezable: e.freezable,
274
- header: e.header,
275
- hideable: De(e),
276
- locked: e.locked,
277
- sortable: e.sortable,
278
- sticky: t.sticky,
279
- style: t.style
280
- }, e.id);
448
+ Mn,
449
+ /* @__PURE__ */ I(l.Header, {
450
+ ref: Qe,
451
+ children: /* @__PURE__ */ L(l.Row, {
452
+ "aria-rowindex": Q ? 1 : void 0,
453
+ children: [
454
+ J != null && /* @__PURE__ */ I(l.Head, {
455
+ className: Z("w-11", vn.headClass),
456
+ sticky: vn.sticky,
457
+ style: vn.style
458
+ }),
459
+ qe && /* @__PURE__ */ I(l.SelectAllCell, {
460
+ className: Z(bn, yn.headClass),
461
+ sticky: yn.sticky,
462
+ style: yn.style
463
+ }),
464
+ Wt.map((e) => {
465
+ let t = Xt(e.id, e.width, e.minWidth);
466
+ return /* @__PURE__ */ I(Ve, {
467
+ id: e.id,
468
+ align: e.align,
469
+ className: t.headClass,
470
+ freezable: e.freezable,
471
+ header: e.header,
472
+ hideable: pt(e),
473
+ locked: e.locked,
474
+ sortable: e.sortable,
475
+ sticky: t.sticky,
476
+ style: t.style
477
+ }, e.id);
478
+ })
479
+ ]
281
480
  })
282
- ] }) }),
283
- /* @__PURE__ */ N(c.Body, { children: Pt() })
481
+ }),
482
+ /* @__PURE__ */ I(l.Body, { children: An() })
284
483
  ]
285
- }), Se === "infinite" && be && /* @__PURE__ */ P("div", {
484
+ }), Ke === "infinite" && We && /* @__PURE__ */ L("div", {
286
485
  className: $.footer(),
287
486
  "data-ox-slot": "data-table-loading",
288
- children: [/* @__PURE__ */ N("span", {
487
+ children: [/* @__PURE__ */ I("span", {
289
488
  "aria-hidden": "true",
290
489
  className: $.spinner()
291
490
  }), "Loading more…"]
292
491
  })]
293
492
  }),
294
- Ot
493
+ gn
295
494
  ]
296
495
  })
297
496
  });
298
497
  }
299
- function ae(e, t) {
300
- return e.cell ? e.cell(t) : re(typeof e.accessor == "function" ? e.accessor(t) : t[e.accessor]);
498
+ function je(e, t) {
499
+ return e.cell ? e.cell(t) : Te(typeof e.accessor == "function" ? e.accessor(t) : t[e.accessor]);
301
500
  }
302
- function oe(e) {
303
- return Z(e);
501
+ function Me(e) {
502
+ return Ee(e);
304
503
  }
305
- function se(e) {
306
- return !Z(e);
504
+ function Ne(e) {
505
+ return !Ee(e);
307
506
  }
308
- function ce(e) {
507
+ function Pe(e) {
309
508
  return e.system;
310
509
  }
311
- function le(e) {
510
+ function Fe(e) {
312
511
  return !e.system;
313
512
  }
314
- function ue(e) {
513
+ function Ie(e) {
315
514
  return e != null;
316
515
  }
317
- function de(e) {
516
+ function Le(e) {
318
517
  return e.id;
319
518
  }
320
- function fe(e) {
519
+ function Re(e) {
321
520
  return e.system ? !1 : e.hideable ?? !e.locked;
322
521
  }
323
- function pe(e) {
522
+ function ze(e) {
324
523
  return [e.id, e];
325
524
  }
326
- function me(e) {
327
- let t = p(43), { align: r, className: i, freezable: a, header: o, hideable: s, id: l, locked: d, sortable: f, sticky: _, style: v } = e, { density: x, frozenColumns: S, hideColumn: w, requestSort: E, sort: D, toggleFrozen: O } = Y(), k;
328
- t[0] !== S || t[1] !== l ? (k = S.has(l), t[0] = S, t[1] = l, t[2] = k) : k = t[2];
329
- let A = k, j = D?.columnId === l, F, I, L, R, z, B, V, H, U;
330
- if (t[3] !== r || t[4] !== i || t[5] !== x || t[6] !== a || t[7] !== o || t[8] !== w || t[9] !== s || t[10] !== l || t[11] !== j || t[12] !== A || t[13] !== d || t[14] !== E || t[15] !== D?.direction || t[16] !== f || t[17] !== _ || t[18] !== v || t[19] !== O) {
331
- let e = u({
332
- density: x,
525
+ function Be(e, t) {
526
+ return e.kind === "group" ? [t] : [];
527
+ }
528
+ function Ve(e) {
529
+ let t = h(43), { align: r, className: i, freezable: a, header: o, hideable: s, id: c, locked: u, sortable: d, sticky: p, style: m } = e, { density: y, frozenColumns: b, hideColumn: C, requestSort: w, sort: E, toggleFrozen: O } = Ce(), k;
530
+ t[0] !== b || t[1] !== c ? (k = b.has(c), t[0] = b, t[1] = c, t[2] = k) : k = t[2];
531
+ let A = k, j = E?.columnId === c, M, N, P, R, z, B, V, H, U;
532
+ if (t[3] !== r || t[4] !== i || t[5] !== y || t[6] !== a || t[7] !== o || t[8] !== C || t[9] !== s || t[10] !== c || t[11] !== j || t[12] !== A || t[13] !== u || t[14] !== w || t[15] !== E?.direction || t[16] !== d || t[17] !== p || t[18] !== m || t[19] !== O) {
533
+ let e = f({
534
+ density: y,
333
535
  sortActive: j
334
- }), p = !!(f || a || s), S = /* @__PURE__ */ N(g, {
536
+ }), h = !!(d || a || s), b = /* @__PURE__ */ I(v, {
335
537
  "aria-hidden": "true",
336
538
  className: e.headSortIcon()
337
539
  });
338
- j && (S = D?.direction === "desc" ? /* @__PURE__ */ N(m, {
540
+ j && (b = E?.direction === "desc" ? /* @__PURE__ */ I(g, {
339
541
  "aria-hidden": "true",
340
542
  className: e.headSortIcon()
341
- }) : /* @__PURE__ */ N(h, {
543
+ }) : /* @__PURE__ */ I(_, {
342
544
  "aria-hidden": "true",
343
545
  className: e.headSortIcon()
344
- })), F = c.Head, B = r, t[29] === i ? V = t[30] : (V = X("group/head", i), t[29] = i, t[30] = V), H = _, U = v, I = e.headCell(), L = d && /* @__PURE__ */ N(C, {
546
+ })), M = l.Head, B = r, t[29] === i ? V = t[30] : (V = Z("group/head", i), t[29] = i, t[30] = V), H = p, U = m, N = e.headCell(), P = u && /* @__PURE__ */ I(T, {
345
547
  "aria-hidden": "true",
346
548
  className: e.lockIcon()
347
- }), R = f ? /* @__PURE__ */ P("button", {
348
- "aria-label": `Sort by ${typeof o == "string" ? o : l}`,
549
+ }), R = d ? /* @__PURE__ */ L("button", {
550
+ "aria-label": `Sort by ${typeof o == "string" ? o : c}`,
349
551
  className: e.headSort(),
350
552
  type: "button",
351
- onClick: () => E(l),
352
- children: [o, S]
353
- }) : /* @__PURE__ */ N("span", { children: o }), z = p && /* @__PURE__ */ P(n, { children: [/* @__PURE__ */ N(n.Trigger, { children: /* @__PURE__ */ N("button", {
553
+ onClick: () => w(c),
554
+ children: [o, b]
555
+ }) : /* @__PURE__ */ I("span", { children: o }), z = h && /* @__PURE__ */ L(n, { children: [/* @__PURE__ */ I(n.Trigger, { children: /* @__PURE__ */ I("button", {
354
556
  "aria-label": "Column options",
355
557
  className: e.headMenuTrigger(),
356
558
  type: "button",
357
- children: /* @__PURE__ */ N(y, { className: "size-4" })
358
- }) }), /* @__PURE__ */ P(n.Content, {
559
+ children: /* @__PURE__ */ I(x, { className: "size-4" })
560
+ }) }), /* @__PURE__ */ L(n.Content, {
359
561
  align: "end",
360
562
  children: [
361
- f && /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P(n.Item, {
362
- onClick: () => E(l, "asc"),
363
- children: [/* @__PURE__ */ N(h, {}), "Sort ascending"]
364
- }), /* @__PURE__ */ P(n.Item, {
365
- onClick: () => E(l, "desc"),
366
- children: [/* @__PURE__ */ N(m, {}), "Sort descending"]
563
+ d && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(n.Item, {
564
+ onClick: () => w(c, "asc"),
565
+ children: [/* @__PURE__ */ I(_, {}), "Sort ascending"]
566
+ }), /* @__PURE__ */ L(n.Item, {
567
+ onClick: () => w(c, "desc"),
568
+ children: [/* @__PURE__ */ I(g, {}), "Sort descending"]
367
569
  })] }),
368
- f && (a || s) && /* @__PURE__ */ N(n.Separator, {}),
369
- a && /* @__PURE__ */ P(n.Item, {
370
- onClick: () => O(l),
371
- children: [/* @__PURE__ */ N(T, {}), A ? "Unfreeze column" : "Freeze column"]
570
+ d && (a || s) && /* @__PURE__ */ I(n.Separator, {}),
571
+ a && /* @__PURE__ */ L(n.Item, {
572
+ onClick: () => O(c),
573
+ children: [/* @__PURE__ */ I(D, {}), A ? "Unfreeze column" : "Freeze column"]
372
574
  }),
373
- s && /* @__PURE__ */ P(n.Item, {
374
- onClick: () => w(l),
375
- children: [/* @__PURE__ */ N(b, {}), "Hide column"]
575
+ s && /* @__PURE__ */ L(n.Item, {
576
+ onClick: () => C(c),
577
+ children: [/* @__PURE__ */ I(S, {}), "Hide column"]
376
578
  })
377
579
  ]
378
- })] }), t[3] = r, t[4] = i, t[5] = x, t[6] = a, t[7] = o, t[8] = w, t[9] = s, t[10] = l, t[11] = j, t[12] = A, t[13] = d, t[14] = E, t[15] = D?.direction, t[16] = f, t[17] = _, t[18] = v, t[19] = O, t[20] = F, t[21] = I, t[22] = L, t[23] = R, t[24] = z, t[25] = B, t[26] = V, t[27] = H, t[28] = U;
379
- } else F = t[20], I = t[21], L = t[22], R = t[23], z = t[24], B = t[25], V = t[26], H = t[27], U = t[28];
580
+ })] }), t[3] = r, t[4] = i, t[5] = y, t[6] = a, t[7] = o, t[8] = C, t[9] = s, t[10] = c, t[11] = j, t[12] = A, t[13] = u, t[14] = w, t[15] = E?.direction, t[16] = d, t[17] = p, t[18] = m, t[19] = O, t[20] = M, t[21] = N, t[22] = P, t[23] = R, t[24] = z, t[25] = B, t[26] = V, t[27] = H, t[28] = U;
581
+ } else M = t[20], N = t[21], P = t[22], R = t[23], z = t[24], B = t[25], V = t[26], H = t[27], U = t[28];
380
582
  let W;
381
- t[31] !== I || t[32] !== L || t[33] !== R || t[34] !== z ? (W = /* @__PURE__ */ P("span", {
382
- className: I,
583
+ t[31] !== N || t[32] !== P || t[33] !== R || t[34] !== z ? (W = /* @__PURE__ */ L("span", {
584
+ className: N,
383
585
  children: [
384
- L,
586
+ P,
385
587
  R,
386
588
  z
387
589
  ]
388
- }), t[31] = I, t[32] = L, t[33] = R, t[34] = z, t[35] = W) : W = t[35];
590
+ }), t[31] = N, t[32] = P, t[33] = R, t[34] = z, t[35] = W) : W = t[35];
389
591
  let G;
390
- return t[36] !== F || t[37] !== W || t[38] !== B || t[39] !== V || t[40] !== H || t[41] !== U ? (G = /* @__PURE__ */ N(F, {
592
+ return t[36] !== M || t[37] !== W || t[38] !== B || t[39] !== V || t[40] !== H || t[41] !== U ? (G = /* @__PURE__ */ I(M, {
391
593
  align: B,
392
594
  className: V,
393
595
  sticky: H,
394
596
  style: U,
395
597
  children: W
396
- }), t[36] = F, t[37] = W, t[38] = B, t[39] = V, t[40] = H, t[41] = U, t[42] = G) : G = t[42], G;
598
+ }), t[36] = M, t[37] = W, t[38] = B, t[39] = V, t[40] = H, t[41] = U, t[42] = G) : G = t[42], G;
397
599
  }
398
- function he(e) {
399
- let t = p(6), { children: n, className: r } = e, { density: i } = Y(), a;
400
- t[0] !== r || t[1] !== i ? (a = u({ density: i }).toolbar({ class: r }), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
600
+ function He(e) {
601
+ let t = h(6), { children: n, className: r } = e, { density: i } = Ce(), a;
602
+ t[0] !== r || t[1] !== i ? (a = f({ density: i }).toolbar({ class: r }), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
401
603
  let o;
402
- return t[3] !== n || t[4] !== a ? (o = /* @__PURE__ */ N("div", {
604
+ return t[3] !== n || t[4] !== a ? (o = /* @__PURE__ */ I("div", {
403
605
  className: a,
404
606
  "data-ox-slot": "toolbar",
405
607
  children: n
406
608
  }), t[3] = n, t[4] = a, t[5] = o) : o = t[5], o;
407
609
  }
408
- function Q(e) {
409
- let t = p(5), { children: n, className: r } = e, i;
410
- t[0] === r ? i = t[1] : (i = u({}).toolbarGroup({ class: r }), t[0] = r, t[1] = i);
610
+ function Ue(e) {
611
+ let t = h(5), { children: n, className: r } = e, i;
612
+ t[0] === r ? i = t[1] : (i = f({}).toolbarGroup({ class: r }), t[0] = r, t[1] = i);
411
613
  let a;
412
- return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ N("div", {
614
+ return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ I("div", {
413
615
  className: i,
414
616
  "data-ox-slot": "toolbar-group",
415
617
  children: n
416
618
  }), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
417
619
  }
418
- function ge() {
419
- let e = p(1), t;
420
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ N("span", {
421
- "aria-hidden": "true",
422
- className: u({}).divider(),
423
- "data-ox-slot": "toolbar-divider"
424
- }), e[0] = t) : t = e[0], t;
425
- }
426
- function _e(e) {
427
- let t = p(18), { children: n, className: r, rowClassName: i, slot: a, trailing: o } = e, s = u({}), c;
428
- t[0] === n ? c = t[1] : (c = E.toArray(n), t[0] = n, t[1] = c);
429
- let l = c.length > 0, d;
430
- t[2] !== n || t[3] !== o ? (d = {
620
+ function We() {
621
+ let e = h(1), t;
622
+ if (e[0] === Symbol.for("react.memo_cache_sentinel")) {
623
+ let n = f({});
624
+ t = /* @__PURE__ */ I("span", {
625
+ "aria-hidden": "true",
626
+ className: n.divider(),
627
+ "data-ox-slot": "toolbar-divider"
628
+ }), e[0] = t;
629
+ } else t = e[0];
630
+ return t;
631
+ }
632
+ function Ge(e) {
633
+ let t = h(18), { children: n, className: r, rowClassName: i, slot: a, trailing: o } = e, s = f({}), c;
634
+ t[0] === n ? c = t[1] : (c = O.toArray(n), t[0] = n, t[1] = c);
635
+ let l = c.length > 0, u;
636
+ t[2] !== n || t[3] !== o ? (u = {
431
637
  children: n,
432
638
  trailing: o
433
- }, t[2] = n, t[3] = o, t[4] = d) : d = t[4];
434
- let [f, m] = j(d);
435
- l && (n !== f.children || o !== f.trailing) && m({
639
+ }, t[2] = n, t[3] = o, t[4] = u) : u = t[4];
640
+ let [d, p] = P(u);
641
+ l && (n !== d.children || o !== d.trailing) && p({
436
642
  children: n,
437
643
  trailing: o
438
644
  });
439
- let h = s.collapse({ class: r }), g = l ? void 0 : !0, _ = !l, v = s.collapseClip(), y = l ? n : f.children, b = l ? o : f.trailing, x;
440
- t[5] !== i || t[6] !== y || t[7] !== b ? (x = /* @__PURE__ */ P("div", {
645
+ let m = s.collapse({ class: r }), g = !l || void 0, _ = !l, v = s.collapseClip(), y = l ? n : d.children, b = l ? o : d.trailing, x;
646
+ t[5] !== i || t[6] !== y || t[7] !== b ? (x = /* @__PURE__ */ L("div", {
441
647
  className: i,
442
648
  children: [y, b]
443
649
  }), t[5] = i, t[6] = y, t[7] = b, t[8] = x) : x = t[8];
444
650
  let S;
445
- t[9] !== v || t[10] !== x ? (S = /* @__PURE__ */ N("div", {
651
+ t[9] !== v || t[10] !== x ? (S = /* @__PURE__ */ I("div", {
446
652
  className: v,
447
653
  children: x
448
654
  }), t[9] = v, t[10] = x, t[11] = S) : S = t[11];
449
655
  let C;
450
- return t[12] !== a || t[13] !== S || t[14] !== h || t[15] !== g || t[16] !== _ ? (C = /* @__PURE__ */ N("div", {
451
- className: h,
656
+ return t[12] !== a || t[13] !== S || t[14] !== m || t[15] !== g || t[16] !== _ ? (C = /* @__PURE__ */ I("div", {
657
+ className: m,
452
658
  "data-collapsed": g,
453
659
  "data-ox-slot": a,
454
660
  inert: _,
455
661
  children: S
456
- }), t[12] = a, t[13] = S, t[14] = h, t[15] = g, t[16] = _, t[17] = C) : C = t[17], C;
662
+ }), t[12] = a, t[13] = S, t[14] = m, t[15] = g, t[16] = _, t[17] = C) : C = t[17], C;
457
663
  }
458
- function ve(e) {
459
- let n = p(20), { children: r, className: i, clearLabel: a, onClearAll: o } = e, s = a === void 0 ? "Clear all" : a, c, l, d, f;
664
+ function Ke(e) {
665
+ let n = h(20), { children: r, className: i, clearLabel: a, onClearAll: o } = e, s = a === void 0 ? "Clear all" : a, c, l, u, d;
460
666
  if (n[0] !== r || n[1] !== i || n[2] !== s || n[3] !== o) {
461
- let e = u({}), a;
462
- n[8] === r ? a = n[9] : (a = E.toArray(r), n[8] = r, n[9] = a);
667
+ let e = f({}), a;
668
+ n[8] === r ? a = n[9] : (a = O.toArray(r), n[8] = r, n[9] = a);
463
669
  let p = a.length, m;
464
- n[10] !== p || n[11] !== s || n[12] !== o ? (m = o == null || p < 2 ? void 0 : /* @__PURE__ */ N(t, {
670
+ n[10] !== p || n[11] !== s || n[12] !== o ? (m = o == null || p < 2 ? void 0 : /* @__PURE__ */ I(t, {
465
671
  variant: "ghost",
466
672
  onClick: o,
467
673
  children: s
468
- }), n[10] = p, n[11] = s, n[12] = o, n[13] = m) : m = n[13], l = m, c = _e, d = i, f = e.filterChipsRow(), n[0] = r, n[1] = i, n[2] = s, n[3] = o, n[4] = c, n[5] = l, n[6] = d, n[7] = f;
469
- } else c = n[4], l = n[5], d = n[6], f = n[7];
470
- let m;
471
- return n[14] !== c || n[15] !== r || n[16] !== l || n[17] !== d || n[18] !== f ? (m = /* @__PURE__ */ N(c, {
472
- className: d,
473
- rowClassName: f,
674
+ }), n[10] = p, n[11] = s, n[12] = o, n[13] = m) : m = n[13], l = m, c = Ge, u = i, d = e.filterChipsRow(), n[0] = r, n[1] = i, n[2] = s, n[3] = o, n[4] = c, n[5] = l, n[6] = u, n[7] = d;
675
+ } else c = n[4], l = n[5], u = n[6], d = n[7];
676
+ let p;
677
+ return n[14] !== c || n[15] !== r || n[16] !== l || n[17] !== u || n[18] !== d ? (p = /* @__PURE__ */ I(c, {
678
+ className: u,
679
+ rowClassName: d,
474
680
  slot: "filter-chips",
475
681
  trailing: l,
476
682
  children: r
477
- }), n[14] = c, n[15] = r, n[16] = l, n[17] = d, n[18] = f, n[19] = m) : m = n[19], m;
683
+ }), n[14] = c, n[15] = r, n[16] = l, n[17] = u, n[18] = d, n[19] = p) : p = n[19], p;
478
684
  }
479
- function ye(e) {
480
- let n = p(30), { className: i, groups: o, trigger: s, triggerLabel: c } = e, l, d, f, m, h, g, _;
685
+ function qe(e) {
686
+ let n = h(30), { className: i, groups: o, trigger: s, triggerLabel: c } = e, l, u, d, p, m, g, _;
481
687
  if (n[0] !== i || n[1] !== o || n[2] !== s || n[3] !== c) {
482
- let e = u({});
483
- d = a;
484
- let p;
485
- n[11] !== s || n[12] !== c ? (p = s ?? /* @__PURE__ */ N(t, {
688
+ let e = f({});
689
+ u = a;
690
+ let h;
691
+ n[11] !== s || n[12] !== c ? (h = s ?? /* @__PURE__ */ I(t, {
486
692
  "aria-label": c ?? "Filter",
487
693
  isIconOnly: !0,
488
694
  variant: "ghost",
489
- children: /* @__PURE__ */ N(x, {})
490
- }), n[11] = s, n[12] = c, n[13] = p) : p = n[13], n[14] === p ? _ = n[15] : (_ = /* @__PURE__ */ N(a.Trigger, { children: p }), n[14] = p, n[15] = _), l = a.Content, h = "end", n[16] === i ? g = n[17] : (g = X("w-56 p-1.5", i), n[16] = i, n[17] = g), f = "filter-menu", m = o.map((t, n) => /* @__PURE__ */ P(D, { children: [
491
- n > 0 && /* @__PURE__ */ N("div", { className: e.configSeparator() }),
492
- /* @__PURE__ */ N("div", {
695
+ children: /* @__PURE__ */ I(C, {})
696
+ }), n[11] = s, n[12] = c, n[13] = h) : h = n[13], n[14] === h ? _ = n[15] : (_ = /* @__PURE__ */ I(a.Trigger, { children: h }), n[14] = h, n[15] = _), l = a.Content, m = "end", n[16] === i ? g = n[17] : (g = Z("w-56 p-1.5", i), n[16] = i, n[17] = g), d = "filter-menu", p = o.map((t, n) => /* @__PURE__ */ L(k, { children: [
697
+ n > 0 && /* @__PURE__ */ I("div", { className: e.configSeparator() }),
698
+ /* @__PURE__ */ I("div", {
493
699
  className: e.configTitle(),
494
700
  children: t.label
495
701
  }),
496
- t.options.map((n) => /* @__PURE__ */ P("label", {
702
+ t.options.map((n) => /* @__PURE__ */ L("label", {
497
703
  className: e.filterMenuItem(),
498
- children: [/* @__PURE__ */ N(r, {
704
+ children: [/* @__PURE__ */ I(r, {
499
705
  checked: t.selected.has(n.value),
500
706
  onCheckedChange: () => t.onToggle(n.value)
501
- }), /* @__PURE__ */ N("span", {
707
+ }), /* @__PURE__ */ I("span", {
502
708
  className: e.configLabel(),
503
709
  children: n.label
504
710
  })]
505
711
  }, n.value))
506
- ] }, t.id ?? n)), n[0] = i, n[1] = o, n[2] = s, n[3] = c, n[4] = l, n[5] = d, n[6] = f, n[7] = m, n[8] = h, n[9] = g, n[10] = _;
507
- } else l = n[4], d = n[5], f = n[6], m = n[7], h = n[8], g = n[9], _ = n[10];
712
+ ] }, t.id ?? n)), n[0] = i, n[1] = o, n[2] = s, n[3] = c, n[4] = l, n[5] = u, n[6] = d, n[7] = p, n[8] = m, n[9] = g, n[10] = _;
713
+ } else l = n[4], u = n[5], d = n[6], p = n[7], m = n[8], g = n[9], _ = n[10];
508
714
  let v;
509
- n[18] !== f || n[19] !== m ? (v = /* @__PURE__ */ N("div", {
510
- "data-ox-slot": f,
511
- children: m
512
- }), n[18] = f, n[19] = m, n[20] = v) : v = n[20];
715
+ n[18] !== d || n[19] !== p ? (v = /* @__PURE__ */ I("div", {
716
+ "data-ox-slot": d,
717
+ children: p
718
+ }), n[18] = d, n[19] = p, n[20] = v) : v = n[20];
513
719
  let y;
514
- n[21] !== l || n[22] !== h || n[23] !== g || n[24] !== v ? (y = /* @__PURE__ */ N(l, {
515
- align: h,
720
+ n[21] !== l || n[22] !== m || n[23] !== g || n[24] !== v ? (y = /* @__PURE__ */ I(l, {
721
+ align: m,
516
722
  className: g,
517
723
  children: v
518
- }), n[21] = l, n[22] = h, n[23] = g, n[24] = v, n[25] = y) : y = n[25];
724
+ }), n[21] = l, n[22] = m, n[23] = g, n[24] = v, n[25] = y) : y = n[25];
519
725
  let b;
520
- return n[26] !== d || n[27] !== _ || n[28] !== y ? (b = /* @__PURE__ */ P(d, { children: [_, y] }), n[26] = d, n[27] = _, n[28] = y, n[29] = b) : b = n[29], b;
726
+ return n[26] !== u || n[27] !== _ || n[28] !== y ? (b = /* @__PURE__ */ L(u, { children: [_, y] }), n[26] = u, n[27] = _, n[28] = y, n[29] = b) : b = n[29], b;
521
727
  }
522
- function be(e) {
523
- let t = p(18), { className: n, rows: r, toolbar: i } = e, a = r === void 0 ? 6 : r, s = i === void 0 ? !0 : i, c, l, d, f, m;
524
- if (t[0] !== n || t[1] !== s) {
525
- let e = u({});
526
- l = "true", d = e.skeleton({ class: n }), f = "data-table-skeleton", m = s && /* @__PURE__ */ P("div", {
728
+ function Je(e) {
729
+ let t = h(18), { className: n, rows: r, toolbar: i } = e, a = r === void 0 ? 6 : r, o = i === void 0 || i, c, l, u, d, p;
730
+ if (t[0] !== n || t[1] !== o) {
731
+ let e = f({});
732
+ l = "true", u = e.skeleton({ class: n }), d = "data-table-skeleton", p = o && /* @__PURE__ */ L("div", {
527
733
  className: e.skeletonToolbar(),
528
- children: [/* @__PURE__ */ N(o, { className: "h-8 w-72 rounded-control" }), /* @__PURE__ */ N(o, { className: "h-3.5 w-24 rounded-sm" })]
529
- }), c = e.skeletonBody(), t[0] = n, t[1] = s, t[2] = c, t[3] = l, t[4] = d, t[5] = f, t[6] = m;
530
- } else c = t[2], l = t[3], d = t[4], f = t[5], m = t[6];
531
- let h;
532
- t[7] === a ? h = t[8] : (h = Array.from({ length: a }, xe), t[7] = a, t[8] = h);
734
+ children: [/* @__PURE__ */ I(s, { className: "h-8 w-72 rounded-control" }), /* @__PURE__ */ I(s, { className: "h-3.5 w-24 rounded-sm" })]
735
+ }), c = e.skeletonBody(), t[0] = n, t[1] = o, t[2] = c, t[3] = l, t[4] = u, t[5] = d, t[6] = p;
736
+ } else c = t[2], l = t[3], u = t[4], d = t[5], p = t[6];
737
+ let m;
738
+ t[7] === a ? m = t[8] : (m = Array.from({ length: a }, Ye), t[7] = a, t[8] = m);
533
739
  let g;
534
- t[9] !== c || t[10] !== h ? (g = /* @__PURE__ */ N("div", {
740
+ t[9] !== c || t[10] !== m ? (g = /* @__PURE__ */ I("div", {
535
741
  className: c,
536
- children: h
537
- }), t[9] = c, t[10] = h, t[11] = g) : g = t[11];
742
+ children: m
743
+ }), t[9] = c, t[10] = m, t[11] = g) : g = t[11];
538
744
  let _;
539
- return t[12] !== l || t[13] !== d || t[14] !== f || t[15] !== m || t[16] !== g ? (_ = /* @__PURE__ */ P("div", {
745
+ return t[12] !== l || t[13] !== u || t[14] !== d || t[15] !== p || t[16] !== g ? (_ = /* @__PURE__ */ L("div", {
540
746
  "aria-hidden": l,
541
- className: d,
542
- "data-ox-slot": f,
543
- children: [m, g]
544
- }), t[12] = l, t[13] = d, t[14] = f, t[15] = m, t[16] = g, t[17] = _) : _ = t[17], _;
747
+ className: u,
748
+ "data-ox-slot": d,
749
+ children: [p, g]
750
+ }), t[12] = l, t[13] = u, t[14] = d, t[15] = p, t[16] = g, t[17] = _) : _ = t[17], _;
545
751
  }
546
- function xe(e, t) {
547
- return /* @__PURE__ */ N(o, { className: "h-9.5 w-full rounded-sm" }, t);
752
+ function Ye(e, t) {
753
+ return /* @__PURE__ */ I(s, { className: "h-9.5 w-full rounded-sm" }, t);
548
754
  }
549
- function Se(e) {
550
- let t = p(11), { children: n, count: r, fallback: i } = e, { clearSelection: a, selectedCount: o, selectedRows: s } = Y(), c = r ?? o;
755
+ function Q(e) {
756
+ let t = h(11), { children: n, count: r, fallback: i } = e, { clearSelection: a, selectedCount: o, selectedRows: s } = Ce(), c = r ?? o;
551
757
  if (c === 0) {
552
758
  let e;
553
- return t[0] === i ? e = t[1] : (e = i == null ? null : /* @__PURE__ */ N(M, { children: i }), t[0] = i, t[1] = e), e;
759
+ return t[0] === i ? e = t[1] : (e = i == null ? null : /* @__PURE__ */ I(F, { children: i }), t[0] = i, t[1] = e), e;
554
760
  }
555
761
  let l;
556
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (l = u({}).selectionActions(), t[2] = l) : l = t[2];
557
- let d = s, f;
558
- t[3] !== n || t[4] !== a || t[5] !== c || t[6] !== d ? (f = n({
762
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (l = f({}).selectionActions(), t[2] = l) : l = t[2];
763
+ let u = s, d;
764
+ t[3] !== n || t[4] !== a || t[5] !== c || t[6] !== u ? (d = n({
559
765
  clearSelection: a,
560
766
  selectedCount: c,
561
- selectedRows: d
562
- }), t[3] = n, t[4] = a, t[5] = c, t[6] = d, t[7] = f) : f = t[7];
563
- let m;
564
- return t[8] !== l || t[9] !== f ? (m = /* @__PURE__ */ N("div", {
767
+ selectedRows: u
768
+ }), t[3] = n, t[4] = a, t[5] = c, t[6] = u, t[7] = d) : d = t[7];
769
+ let p;
770
+ return t[8] !== l || t[9] !== d ? (p = /* @__PURE__ */ I("div", {
565
771
  className: l,
566
772
  "data-ox-slot": "selection-actions",
567
- children: f
568
- }), t[8] = l, t[9] = f, t[10] = m) : m = t[10], m;
773
+ children: d
774
+ }), t[8] = l, t[9] = d, t[10] = p) : p = t[10], p;
569
775
  }
570
- function Ce(e) {
571
- let n = p(90), { className: r, layout: a, nextLabel: o, previousLabel: s, summary: c, variant: d } = e, f = a === void 0 ? "end" : a, m = o === void 0 ? "Next page" : o, h = s === void 0 ? "Previous page" : s, g = d === void 0 ? "simple" : d, { page: y, pageCount: b, pageSize: x, rowCount: S, setPage: C } = Y(), w = b ?? 1, T;
572
- n[0] !== y || n[1] !== w ? (T = {
776
+ function $(e) {
777
+ let n = h(90), { className: r, layout: a, nextLabel: o, previousLabel: s, summary: c, variant: l } = e, d = a === void 0 ? "end" : a, p = o === void 0 ? "Next page" : o, m = s === void 0 ? "Previous page" : s, g = l === void 0 ? "simple" : l, { page: _, pageCount: v, pageSize: x, rowCount: S, setPage: C } = Ce(), w = v ?? 1, T;
778
+ n[0] !== _ || n[1] !== w ? (T = {
573
779
  total: w,
574
- page: y
575
- }, n[0] = y, n[1] = w, n[2] = T) : T = n[2];
576
- let { currentPage: E, isFirst: D, isLast: O, nextPage: k, previousPage: A, range: j } = l(T), F = g === "numbered" && b != null, I = F && f === "split" ? "end" : f, L, R, z, B, V, H, U;
577
- if (n[3] !== r || n[4] !== E || n[5] !== D || n[6] !== O || n[7] !== F || n[8] !== m || n[9] !== k || n[10] !== y || n[11] !== b || n[12] !== x || n[13] !== h || n[14] !== A || n[15] !== j || n[16] !== I || n[17] !== S || n[18] !== C || n[19] !== c) {
780
+ page: _
781
+ }, n[0] = _, n[1] = w, n[2] = T) : T = n[2];
782
+ let { currentPage: E, isFirst: D, isLast: O, nextPage: k, previousPage: A, range: j } = u(T), M = g === "numbered" && v != null, N = M && d === "split" ? "end" : d, P, R, z, B, V, H, U;
783
+ if (n[3] !== r || n[4] !== E || n[5] !== D || n[6] !== O || n[7] !== M || n[8] !== p || n[9] !== k || n[10] !== _ || n[11] !== v || n[12] !== x || n[13] !== m || n[14] !== A || n[15] !== j || n[16] !== N || n[17] !== S || n[18] !== C || n[19] !== c) {
578
784
  B = Symbol.for("react.early_return_sentinel");
579
785
  bb0: {
580
- let e = u({ paginationLayout: I }), a = y > 1, o = b == null ? !0 : y < b, s = S === 0 ? 0 : (y - 1) * x + 1, l = S == null ? y * x : Math.min(y * x, S), d;
581
- n[27] !== l || n[28] !== S || n[29] !== s || n[30] !== c ? (d = c ?? /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("span", {
786
+ let e = f({ paginationLayout: N }), a = _ > 1, o = v == null || _ < v, s = S === 0 ? 0 : (_ - 1) * x + 1, l = S == null ? _ * x : Math.min(_ * x, S), u;
787
+ n[27] !== l || n[28] !== S || n[29] !== s || n[30] !== c ? (u = c ?? /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L("span", {
582
788
  className: "font-medium text-fg",
583
789
  children: [
584
790
  s,
585
791
  "–",
586
792
  l
587
793
  ]
588
- }), S == null ? null : ` of ${S}`] }), n[27] = l, n[28] = S, n[29] = s, n[30] = c, n[31] = d) : d = n[31];
589
- let f = /* @__PURE__ */ N("span", {
590
- className: e.pagerSummary({ class: I === "split" ? "justify-self-center" : "" }),
591
- children: d
794
+ }), S == null ? null : ` of ${S}`] }), n[27] = l, n[28] = S, n[29] = s, n[30] = c, n[31] = u) : u = n[31];
795
+ let d = /* @__PURE__ */ I("span", {
796
+ className: e.pagerSummary({ class: N === "split" ? "justify-self-center" : "" }),
797
+ children: u
592
798
  });
593
- if (F) {
594
- if (b <= 1) {
595
- B = /* @__PURE__ */ N("div", {
799
+ if (M) {
800
+ if (v <= 1) {
801
+ B = /* @__PURE__ */ I("div", {
596
802
  className: e.pager({ class: r }),
597
- "data-layout": I,
803
+ "data-layout": N,
598
804
  "data-ox-slot": "pagination",
599
- children: f
805
+ children: d
600
806
  });
601
807
  break bb0;
602
808
  }
603
809
  let t;
604
810
  n[32] !== A || n[33] !== C ? (t = () => C(A), n[32] = A, n[33] = C, n[34] = t) : t = n[34];
605
811
  let a;
606
- n[35] !== D || n[36] !== h || n[37] !== t ? (a = /* @__PURE__ */ N(i.Previous, {
607
- "aria-label": h,
812
+ n[35] !== D || n[36] !== m || n[37] !== t ? (a = /* @__PURE__ */ I(i.Previous, {
813
+ "aria-label": m,
608
814
  disabled: D,
609
815
  onClick: t
610
- }), n[35] = D, n[36] = h, n[37] = t, n[38] = a) : a = n[38];
816
+ }), n[35] = D, n[36] = m, n[37] = t, n[38] = a) : a = n[38];
611
817
  let o;
612
818
  if (n[39] !== E || n[40] !== j || n[41] !== C) {
613
819
  let e;
614
- n[43] !== E || n[44] !== C ? (e = (e, t) => e === "ellipsis" ? /* @__PURE__ */ N(i.Ellipsis, {}, `ellipsis-${String(t)}`) : /* @__PURE__ */ N(i.Item, {
820
+ n[43] !== E || n[44] !== C ? (e = (e, t) => e === "ellipsis" ? /* @__PURE__ */ I(i.Ellipsis, {}, `ellipsis-${String(t)}`) : /* @__PURE__ */ I(i.Item, {
615
821
  current: e === E,
616
822
  onClick: () => C(e),
617
823
  children: e
@@ -620,275 +826,275 @@ function Ce(e) {
620
826
  let s;
621
827
  n[46] !== k || n[47] !== C ? (s = () => C(k), n[46] = k, n[47] = C, n[48] = s) : s = n[48];
622
828
  let c;
623
- n[49] !== O || n[50] !== m || n[51] !== s ? (c = /* @__PURE__ */ N(i.Next, {
624
- "aria-label": m,
829
+ n[49] !== O || n[50] !== p || n[51] !== s ? (c = /* @__PURE__ */ I(i.Next, {
830
+ "aria-label": p,
625
831
  disabled: O,
626
832
  onClick: s
627
- }), n[49] = O, n[50] = m, n[51] = s, n[52] = c) : c = n[52];
833
+ }), n[49] = O, n[50] = p, n[51] = s, n[52] = c) : c = n[52];
628
834
  let l;
629
- n[53] !== b || n[54] !== a || n[55] !== o || n[56] !== c ? (l = /* @__PURE__ */ P(i, {
630
- total: b,
835
+ n[53] !== v || n[54] !== a || n[55] !== o || n[56] !== c ? (l = /* @__PURE__ */ L(i, {
836
+ total: v,
631
837
  children: [
632
838
  a,
633
839
  o,
634
840
  c
635
841
  ]
636
- }), n[53] = b, n[54] = a, n[55] = o, n[56] = c, n[57] = l) : l = n[57];
637
- let u = l, d;
638
- n[58] !== u || n[59] !== I || n[60] !== f ? (d = I === "center" ? /* @__PURE__ */ P(M, { children: [u, f] }) : /* @__PURE__ */ P(M, { children: [f, u] }), n[58] = u, n[59] = I, n[60] = f, n[61] = d) : d = n[61], B = /* @__PURE__ */ N("div", {
842
+ }), n[53] = v, n[54] = a, n[55] = o, n[56] = c, n[57] = l) : l = n[57];
843
+ let u = l, f;
844
+ n[58] !== u || n[59] !== N || n[60] !== d ? (f = N === "center" ? /* @__PURE__ */ L(F, { children: [u, d] }) : /* @__PURE__ */ L(F, { children: [d, u] }), n[58] = u, n[59] = N, n[60] = d, n[61] = f) : f = n[61], B = /* @__PURE__ */ I("div", {
639
845
  className: e.pager({ class: r }),
640
- "data-layout": I,
846
+ "data-layout": N,
641
847
  "data-ox-slot": "pagination",
642
- children: d
848
+ children: f
643
849
  });
644
850
  break bb0;
645
851
  }
646
- let p = !a, g;
647
- n[62] !== y || n[63] !== C ? (g = () => C(y - 1), n[62] = y, n[63] = C, n[64] = g) : g = n[64];
852
+ let h = !a, g;
853
+ n[62] !== _ || n[63] !== C ? (g = () => C(_ - 1), n[62] = _, n[63] = C, n[64] = g) : g = n[64];
648
854
  let w;
649
- n[65] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ N(_, {}), n[65] = w) : w = n[65];
855
+ n[65] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ I(y, {}), n[65] = w) : w = n[65];
650
856
  let T;
651
- n[66] !== h || n[67] !== p || n[68] !== g ? (T = /* @__PURE__ */ N(t, {
652
- "aria-label": h,
653
- disabled: p,
857
+ n[66] !== m || n[67] !== h || n[68] !== g ? (T = /* @__PURE__ */ I(t, {
858
+ "aria-label": m,
859
+ disabled: h,
654
860
  isIconOnly: !0,
655
861
  variant: "ghost",
656
862
  onClick: g,
657
863
  children: w
658
- }), n[66] = h, n[67] = p, n[68] = g, n[69] = T) : T = n[69];
864
+ }), n[66] = m, n[67] = h, n[68] = g, n[69] = T) : T = n[69];
659
865
  let W = T, G = !o, K;
660
- n[70] !== y || n[71] !== C ? (K = () => C(y + 1), n[70] = y, n[71] = C, n[72] = K) : K = n[72];
866
+ n[70] !== _ || n[71] !== C ? (K = () => C(_ + 1), n[70] = _, n[71] = C, n[72] = K) : K = n[72];
661
867
  let ee;
662
- n[73] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ N(v, {}), n[73] = ee) : ee = n[73];
868
+ n[73] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ I(b, {}), n[73] = ee) : ee = n[73];
663
869
  let q;
664
- n[74] !== m || n[75] !== G || n[76] !== K ? (q = /* @__PURE__ */ N(t, {
665
- "aria-label": m,
870
+ n[74] !== p || n[75] !== G || n[76] !== K ? (q = /* @__PURE__ */ I(t, {
871
+ "aria-label": p,
666
872
  disabled: G,
667
873
  isIconOnly: !0,
668
874
  variant: "ghost",
669
875
  onClick: K,
670
876
  children: ee
671
- }), n[74] = m, n[75] = G, n[76] = K, n[77] = q) : q = n[77];
672
- let J = q;
673
- V = e.pager({ class: r }), H = I, U = "pagination", L = I === "end" && /* @__PURE__ */ P(M, { children: [f, /* @__PURE__ */ P("span", {
877
+ }), n[74] = p, n[75] = G, n[76] = K, n[77] = q) : q = n[77];
878
+ let te = q;
879
+ V = e.pager({ class: r }), H = N, U = "pagination", P = N === "end" && /* @__PURE__ */ L(F, { children: [d, /* @__PURE__ */ L("span", {
674
880
  className: e.pagerNav(),
675
- children: [W, J]
676
- })] }), n[78] !== J || n[79] !== W || n[80] !== I || n[81] !== f ? (R = I === "center" && /* @__PURE__ */ P(M, { children: [
881
+ children: [W, te]
882
+ })] }), n[78] !== te || n[79] !== W || n[80] !== N || n[81] !== d ? (R = N === "center" && /* @__PURE__ */ L(F, { children: [
677
883
  W,
678
- f,
679
- J
680
- ] }), n[78] = J, n[79] = W, n[80] = I, n[81] = f, n[82] = R) : R = n[82], z = I === "split" && /* @__PURE__ */ P(M, { children: [
681
- /* @__PURE__ */ N("span", {
884
+ d,
885
+ te
886
+ ] }), n[78] = te, n[79] = W, n[80] = N, n[81] = d, n[82] = R) : R = n[82], z = N === "split" && /* @__PURE__ */ L(F, { children: [
887
+ /* @__PURE__ */ I("span", {
682
888
  className: e.pagerNav({ class: "justify-self-start" }),
683
889
  children: W
684
890
  }),
685
- f,
686
- /* @__PURE__ */ N("span", {
891
+ d,
892
+ /* @__PURE__ */ I("span", {
687
893
  className: e.pagerNav({ class: "justify-self-end" }),
688
- children: J
894
+ children: te
689
895
  })
690
896
  ] });
691
897
  }
692
- n[3] = r, n[4] = E, n[5] = D, n[6] = O, n[7] = F, n[8] = m, n[9] = k, n[10] = y, n[11] = b, n[12] = x, n[13] = h, n[14] = A, n[15] = j, n[16] = I, n[17] = S, n[18] = C, n[19] = c, n[20] = L, n[21] = R, n[22] = z, n[23] = B, n[24] = V, n[25] = H, n[26] = U;
693
- } else L = n[20], R = n[21], z = n[22], B = n[23], V = n[24], H = n[25], U = n[26];
898
+ n[3] = r, n[4] = E, n[5] = D, n[6] = O, n[7] = M, n[8] = p, n[9] = k, n[10] = _, n[11] = v, n[12] = x, n[13] = m, n[14] = A, n[15] = j, n[16] = N, n[17] = S, n[18] = C, n[19] = c, n[20] = P, n[21] = R, n[22] = z, n[23] = B, n[24] = V, n[25] = H, n[26] = U;
899
+ } else P = n[20], R = n[21], z = n[22], B = n[23], V = n[24], H = n[25], U = n[26];
694
900
  if (B !== Symbol.for("react.early_return_sentinel")) return B;
695
901
  let W;
696
- return n[83] !== L || n[84] !== R || n[85] !== z || n[86] !== V || n[87] !== H || n[88] !== U ? (W = /* @__PURE__ */ P("div", {
902
+ return n[83] !== P || n[84] !== R || n[85] !== z || n[86] !== V || n[87] !== H || n[88] !== U ? (W = /* @__PURE__ */ L("div", {
697
903
  className: V,
698
904
  "data-layout": H,
699
905
  "data-ox-slot": U,
700
906
  children: [
701
- L,
907
+ P,
702
908
  R,
703
909
  z
704
910
  ]
705
- }), n[83] = L, n[84] = R, n[85] = z, n[86] = V, n[87] = H, n[88] = U, n[89] = W) : W = n[89], W;
911
+ }), n[83] = P, n[84] = R, n[85] = z, n[86] = V, n[87] = H, n[88] = U, n[89] = W) : W = n[89], W;
706
912
  }
707
- function we(e) {
708
- let t = p(6), { children: n, className: r } = e, { density: i } = Y(), a;
709
- t[0] !== r || t[1] !== i ? (a = u({ density: i }).footerBar({ class: r }), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
913
+ function Xe(e) {
914
+ let t = h(6), { children: n, className: r } = e, { density: i } = Ce(), a;
915
+ t[0] !== r || t[1] !== i ? (a = f({ density: i }).footerBar({ class: r }), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
710
916
  let o;
711
- return t[3] !== n || t[4] !== a ? (o = /* @__PURE__ */ N("div", {
917
+ return t[3] !== n || t[4] !== a ? (o = /* @__PURE__ */ I("div", {
712
918
  className: a,
713
919
  "data-ox-slot": "data-table-footer",
714
920
  children: n
715
921
  }), t[3] = n, t[4] = a, t[5] = o) : o = t[5], o;
716
922
  }
717
- function Te(e) {
718
- let t = p(29), { column: n, draftVisible: i, onToggleVisible: a } = e, o = u({}), s = k(), c = n.locked || !n.hideable, l;
923
+ function Ze(e) {
924
+ let t = h(29), { column: n, draftVisible: i, onToggleVisible: a } = e, o = f({}), s = M(), c = n.locked || !n.hideable, l;
719
925
  t[0] !== n.id || t[1] !== n.locked ? (l = {
720
926
  id: n.id,
721
927
  disabled: n.locked
722
928
  }, t[0] = n.id, t[1] = n.locked, t[2] = l) : l = t[2];
723
- let { attributes: d, isDragging: f, listeners: m, setNodeRef: h, transform: g, transition: _ } = U(l), v;
724
- t[3] === g ? v = t[4] : (v = G.Transform.toString(g), t[3] = g, t[4] = v);
725
- let y = f ? .6 : void 0, b;
929
+ let { attributes: u, isDragging: d, listeners: p, setNodeRef: m, transform: g, transition: _ } = K(l), v;
930
+ t[3] === g ? v = t[4] : (v = q.Transform.toString(g), t[3] = g, t[4] = v);
931
+ let y = d ? .6 : void 0, b;
726
932
  t[5] !== v || t[6] !== y || t[7] !== _ ? (b = {
727
933
  transform: v,
728
934
  transition: _,
729
935
  opacity: y
730
936
  }, t[5] = v, t[6] = y, t[7] = _, t[8] = b) : b = t[8];
731
- let x = b, C = o.configItem(), w = c || void 0, T = n.locked ? /* @__PURE__ */ N("span", {
937
+ let x = b, S = o.configItem(), C = c || void 0, T = n.locked ? /* @__PURE__ */ I("span", {
732
938
  "aria-hidden": "true",
733
939
  className: o.configHandleLocked(),
734
- children: /* @__PURE__ */ N(S, { className: "size-4" })
735
- }) : /* @__PURE__ */ N("button", {
940
+ children: /* @__PURE__ */ I(w, { className: "size-4" })
941
+ }) : /* @__PURE__ */ I("button", {
736
942
  "aria-label": "Drag to reorder",
737
943
  className: o.configHandle(),
738
944
  type: "button",
739
- ...d,
740
- ...m,
741
- children: /* @__PURE__ */ N(S, { className: "size-4" })
945
+ ...u,
946
+ ...p,
947
+ children: /* @__PURE__ */ I(w, { className: "size-4" })
742
948
  }), E = n.locked ? !0 : i, D;
743
949
  t[9] !== n.id || t[10] !== a ? (D = () => a(n.id), t[9] = n.id, t[10] = a, t[11] = D) : D = t[11];
744
950
  let O;
745
- t[12] !== c || t[13] !== s || t[14] !== E || t[15] !== D ? (O = /* @__PURE__ */ N(r, {
951
+ t[12] !== c || t[13] !== s || t[14] !== E || t[15] !== D ? (O = /* @__PURE__ */ I(r, {
746
952
  id: s,
747
953
  checked: E,
748
954
  disabled: c,
749
955
  onCheckedChange: D
750
956
  }), t[12] = c, t[13] = s, t[14] = E, t[15] = D, t[16] = O) : O = t[16];
751
- let A = X(o.configLabel(), c ? "cursor-not-allowed opacity-50" : "cursor-pointer select-none"), j;
752
- t[17] !== n.header || t[18] !== s || t[19] !== A ? (j = /* @__PURE__ */ N("label", {
753
- className: A,
957
+ let k = Z(o.configLabel(), c ? "cursor-not-allowed opacity-50" : "cursor-pointer select-none"), A;
958
+ t[17] !== n.header || t[18] !== s || t[19] !== k ? (A = /* @__PURE__ */ I("label", {
959
+ className: k,
754
960
  htmlFor: s,
755
961
  children: n.header
756
- }), t[17] = n.header, t[18] = s, t[19] = A, t[20] = j) : j = t[20];
757
- let M;
758
- return t[21] !== h || t[22] !== x || t[23] !== O || t[24] !== j || t[25] !== C || t[26] !== w || t[27] !== T ? (M = /* @__PURE__ */ P("div", {
759
- className: C,
760
- "data-disabled": w,
761
- ref: h,
962
+ }), t[17] = n.header, t[18] = s, t[19] = k, t[20] = A) : A = t[20];
963
+ let j;
964
+ return t[21] !== m || t[22] !== x || t[23] !== O || t[24] !== A || t[25] !== S || t[26] !== C || t[27] !== T ? (j = /* @__PURE__ */ L("div", {
965
+ className: S,
966
+ "data-disabled": C,
967
+ ref: m,
762
968
  style: x,
763
969
  children: [
764
970
  T,
765
971
  O,
766
- j
972
+ A
767
973
  ]
768
- }), t[21] = h, t[22] = x, t[23] = O, t[24] = j, t[25] = C, t[26] = w, t[27] = T, t[28] = M) : M = t[28], M;
974
+ }), t[21] = m, t[22] = x, t[23] = O, t[24] = A, t[25] = S, t[26] = C, t[27] = T, t[28] = j) : j = t[28], j;
769
975
  }
770
- function $(e) {
771
- let n = p(48), { applyLabel: r, cancelLabel: i, className: o, title: s, trigger: c } = e, l = r === void 0 ? "Apply" : r, d = i === void 0 ? "Cancel" : i, m = s === void 0 ? "Configure table" : s, { columnVisibility: h, orderedColumns: g, setColumnOrder: _, setColumnVisibility: v } = Y(), y;
772
- n[0] === g ? y = n[1] : (y = g.filter(Ae), n[0] = g, n[1] = y);
773
- let b = y, x = u({}), [S, C] = j(!1), T;
774
- n[2] === b ? T = n[3] : (T = () => b.map(ke), n[2] = b, n[3] = T);
775
- let [E, D] = j(T), O;
776
- n[4] === h ? O = n[5] : (O = () => h, n[4] = h, n[5] = O);
777
- let [k, A] = j(O), M;
778
- n[6] === b ? M = n[7] : (M = new Map(b.map(Oe)), n[6] = b, n[7] = M);
779
- let U = M, G;
780
- n[8] !== h || n[9] !== b || n[10] !== C ? (G = (e) => {
781
- e && (D(b.map(De)), A(h)), C(e);
782
- }, n[8] = h, n[9] = b, n[10] = C, n[11] = G) : G = n[11];
783
- let ee = G, q;
784
- n[12] === Symbol.for("react.memo_cache_sentinel") ? (q = { activationConstraint: { distance: 4 } }, n[12] = q) : q = n[12];
785
- let J;
786
- n[13] === Symbol.for("react.memo_cache_sentinel") ? (J = { coordinateGetter: H }, n[13] = J) : J = n[13];
787
- let te = B(z(L, q), z(I, J)), ne;
788
- n[14] === Symbol.for("react.memo_cache_sentinel") ? (ne = (e) => {
976
+ function Qe(e) {
977
+ let n = h(48), { applyLabel: r, cancelLabel: i, className: o, title: s, trigger: c } = e, l = r === void 0 ? "Apply" : r, u = i === void 0 ? "Cancel" : i, d = s === void 0 ? "Configure table" : s, { columnVisibility: p, orderedColumns: g, setColumnOrder: _, setColumnVisibility: v } = Ce(), y;
978
+ n[0] === g ? y = n[1] : (y = g.filter(rt), n[0] = g, n[1] = y);
979
+ let b = y, x = f({}), [S, C] = P(!1), w;
980
+ n[2] === b ? w = n[3] : (w = () => b.map(nt), n[2] = b, n[3] = w);
981
+ let [T, D] = P(w), O;
982
+ n[4] === p ? O = n[5] : (O = () => p, n[4] = p, n[5] = O);
983
+ let [k, A] = P(O), j;
984
+ n[6] === b ? j = n[7] : (j = new Map(b.map(tt)), n[6] = b, n[7] = j);
985
+ let M = j, N;
986
+ n[8] !== p || n[9] !== b || n[10] !== C ? (N = (e) => {
987
+ e && (D(b.map(et)), A(p)), C(e);
988
+ }, n[8] = p, n[9] = b, n[10] = C, n[11] = N) : N = n[11];
989
+ let F = N, K;
990
+ n[12] === Symbol.for("react.memo_cache_sentinel") ? (K = { activationConstraint: { distance: 4 } }, n[12] = K) : K = n[12];
991
+ let q;
992
+ n[13] === Symbol.for("react.memo_cache_sentinel") ? (q = { coordinateGetter: G }, n[13] = q) : q = n[13];
993
+ let ne = U(H(B, K), H(z, q)), re;
994
+ n[14] === Symbol.for("react.memo_cache_sentinel") ? (re = (e) => {
789
995
  let { active: t, over: n } = e;
790
- D((e) => f(e, String(t.id), n == null ? null : String(n.id)));
791
- }, n[14] = ne) : ne = n[14];
792
- let re = ne, Z;
793
- n[15] === Symbol.for("react.memo_cache_sentinel") ? (Z = (e) => {
996
+ D((e) => m(e, String(t.id), n == null ? null : String(n.id)));
997
+ }, n[14] = re) : re = n[14];
998
+ let ie = re, ae;
999
+ n[15] === Symbol.for("react.memo_cache_sentinel") ? (ae = (e) => {
794
1000
  A((t) => ({
795
1001
  ...t,
796
1002
  [e]: t[e] === !1
797
1003
  }));
798
- }, n[15] = Z) : Z = n[15];
799
- let ie = Z, ae;
800
- n[16] !== b || n[17] !== E || n[18] !== k || n[19] !== _ || n[20] !== v || n[21] !== C ? (ae = () => {
801
- let e = b.map(Ee), t = new Set(e);
802
- _(E.filter((e) => t.has(e))), v(K(k, e)), C(!1);
803
- }, n[16] = b, n[17] = E, n[18] = k, n[19] = _, n[20] = v, n[21] = C, n[22] = ae) : ae = n[22];
1004
+ }, n[15] = ae) : ae = n[15];
804
1005
  let oe = ae, se;
805
- n[23] === c ? se = n[24] : (se = c ?? /* @__PURE__ */ N(t, {
1006
+ n[16] !== b || n[17] !== T || n[18] !== k || n[19] !== _ || n[20] !== v || n[21] !== C ? (se = () => {
1007
+ let e = b.map($e), t = new Set(e);
1008
+ _(T.filter((e) => t.has(e))), v(te(k, e)), C(!1);
1009
+ }, n[16] = b, n[17] = T, n[18] = k, n[19] = _, n[20] = v, n[21] = C, n[22] = se) : se = n[22];
1010
+ let J = se, Y;
1011
+ n[23] === c ? Y = n[24] : (Y = c ?? /* @__PURE__ */ I(t, {
806
1012
  "aria-label": "Configure table",
807
1013
  isIconOnly: !0,
808
1014
  variant: "ghost",
809
- children: /* @__PURE__ */ N(w, {})
810
- }), n[23] = c, n[24] = se);
1015
+ children: /* @__PURE__ */ I(E, {})
1016
+ }), n[23] = c, n[24] = Y);
811
1017
  let ce;
812
- n[25] === se ? ce = n[26] : (ce = /* @__PURE__ */ N(a.Trigger, { children: se }), n[25] = se, n[26] = ce);
1018
+ n[25] === Y ? ce = n[26] : (ce = /* @__PURE__ */ I(a.Trigger, { children: Y }), n[25] = Y, n[26] = ce);
813
1019
  let le;
814
- n[27] === o ? le = n[28] : (le = X("p-1.5", o), n[27] = o, n[28] = le);
1020
+ n[27] === o ? le = n[28] : (le = Z("p-1.5", o), n[27] = o, n[28] = le);
815
1021
  let ue = x.configPanel(), de = x.configList(), fe;
816
- if (n[29] !== E || n[30] !== k || n[31] !== U) {
1022
+ if (n[29] !== T || n[30] !== k || n[31] !== M) {
817
1023
  let e;
818
- n[33] !== k || n[34] !== U ? (e = (e) => {
819
- let t = U.get(e);
820
- return t == null ? null : /* @__PURE__ */ N(Te, {
1024
+ n[33] !== k || n[34] !== M ? (e = (e) => {
1025
+ let t = M.get(e);
1026
+ return t == null ? null : /* @__PURE__ */ I(Ze, {
821
1027
  column: t,
822
1028
  draftVisible: k[e] !== !1,
823
- onToggleVisible: ie
1029
+ onToggleVisible: oe
824
1030
  }, e);
825
- }, n[33] = k, n[34] = U, n[35] = e) : e = n[35], fe = E.map(e), n[29] = E, n[30] = k, n[31] = U, n[32] = fe;
1031
+ }, n[33] = k, n[34] = M, n[35] = e) : e = n[35], fe = T.map(e), n[29] = T, n[30] = k, n[31] = M, n[32] = fe;
826
1032
  } else fe = n[32];
827
- let pe = x.configActions(), me;
828
- n[36] === C ? me = n[37] : (me = () => C(!1), n[36] = C, n[37] = me);
829
- let he;
830
- n[38] !== d || n[39] !== me ? (he = /* @__PURE__ */ N(t, {
1033
+ let pe = x.configActions(), X;
1034
+ n[36] === C ? X = n[37] : (X = () => C(!1), n[36] = C, n[37] = X);
1035
+ let me;
1036
+ n[38] !== u || n[39] !== X ? (me = /* @__PURE__ */ I(t, {
831
1037
  variant: "outline",
832
- onClick: me,
833
- children: d
834
- }), n[38] = d, n[39] = me, n[40] = he) : he = n[40];
835
- let Q;
836
- n[41] !== oe || n[42] !== l ? (Q = /* @__PURE__ */ N(t, {
837
- onClick: oe,
1038
+ onClick: X,
1039
+ children: u
1040
+ }), n[38] = u, n[39] = X, n[40] = me) : me = n[40];
1041
+ let he;
1042
+ n[41] !== J || n[42] !== l ? (he = /* @__PURE__ */ I(t, {
1043
+ onClick: J,
838
1044
  children: l
839
- }), n[41] = oe, n[42] = l, n[43] = Q) : Q = n[43];
1045
+ }), n[41] = J, n[42] = l, n[43] = he) : he = n[43];
840
1046
  let ge;
841
- return n[44] !== pe || n[45] !== he || n[46] !== Q ? (ge = /* @__PURE__ */ P("div", {
1047
+ return n[44] !== pe || n[45] !== me || n[46] !== he ? (ge = /* @__PURE__ */ L("div", {
842
1048
  className: pe,
843
- children: [he, Q]
844
- }), n[44] = pe, n[45] = he, n[46] = Q, n[47] = ge) : ge = n[47], /* @__PURE__ */ P(a, {
1049
+ children: [me, he]
1050
+ }), n[44] = pe, n[45] = me, n[46] = he, n[47] = ge) : ge = n[47], /* @__PURE__ */ L(a, {
845
1051
  open: S,
846
- onOpenChange: ee,
847
- children: [ce, /* @__PURE__ */ N(a.Content, {
1052
+ onOpenChange: F,
1053
+ children: [ce, /* @__PURE__ */ I(a.Content, {
848
1054
  align: "start",
849
1055
  className: le,
850
- children: /* @__PURE__ */ P("div", {
1056
+ children: /* @__PURE__ */ L("div", {
851
1057
  className: ue,
852
1058
  children: [
853
- /* @__PURE__ */ N("div", {
1059
+ /* @__PURE__ */ I("div", {
854
1060
  className: x.configTitle(),
855
- children: m
1061
+ children: d
856
1062
  }),
857
- /* @__PURE__ */ N("div", { className: x.configSeparator() }),
858
- /* @__PURE__ */ N(F, {
859
- collisionDetection: R,
860
- sensors: te,
861
- onDragEnd: re,
862
- children: /* @__PURE__ */ N(V, {
863
- items: E,
864
- strategy: W,
865
- children: /* @__PURE__ */ N("div", {
1063
+ /* @__PURE__ */ I("div", { className: x.configSeparator() }),
1064
+ /* @__PURE__ */ I(R, {
1065
+ collisionDetection: V,
1066
+ sensors: ne,
1067
+ onDragEnd: ie,
1068
+ children: /* @__PURE__ */ I(W, {
1069
+ items: T,
1070
+ strategy: ee,
1071
+ children: /* @__PURE__ */ I("div", {
866
1072
  className: de,
867
1073
  children: fe
868
1074
  })
869
1075
  })
870
1076
  }),
871
- /* @__PURE__ */ N("div", { className: x.configSeparator() }),
1077
+ /* @__PURE__ */ I("div", { className: x.configSeparator() }),
872
1078
  ge
873
1079
  ]
874
1080
  })
875
1081
  })]
876
1082
  });
877
1083
  }
878
- function Ee(e) {
1084
+ function $e(e) {
879
1085
  return e.id;
880
1086
  }
881
- function De(e) {
1087
+ function et(e) {
882
1088
  return e.id;
883
1089
  }
884
- function Oe(e) {
1090
+ function tt(e) {
885
1091
  return [e.id, e];
886
1092
  }
887
- function ke(e) {
1093
+ function nt(e) {
888
1094
  return e.id;
889
1095
  }
890
- function Ae(e) {
1096
+ function rt(e) {
891
1097
  return !e.system;
892
1098
  }
893
1099
  //#endregion
894
- export { $ as OxDataTableColumnConfig, ge as OxDataTableDivider, ve as OxDataTableFilterChips, ye as OxDataTableFilterMenu, we as OxDataTableFooter, Ce as OxDataTablePagination, ie as OxDataTableRoot, Se as OxDataTableSelectionActions, be as OxDataTableSkeleton, he as OxDataTableToolbar, Q as OxDataTableToolbarGroup };
1100
+ export { Qe as OxDataTableColumnConfig, We as OxDataTableDivider, Ke as OxDataTableFilterChips, qe as OxDataTableFilterMenu, Xe as OxDataTableFooter, $ as OxDataTablePagination, Ae as OxDataTableRoot, Q as OxDataTableSelectionActions, Je as OxDataTableSkeleton, He as OxDataTableToolbar, Ue as OxDataTableToolbarGroup };