@snowpact/react-tanstack-query-table 1.10.4 → 1.10.6
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.
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +554 -550
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMutation as
|
|
1
|
+
import { jsxs as k, jsx as f, Fragment as Zt } from "react/jsx-runtime";
|
|
2
|
+
import { useMutation as Is, useQuery as qo, keepPreviousData as Jo } from "@tanstack/react-query";
|
|
3
3
|
import * as d from "react";
|
|
4
|
-
import Ke, { useState as ce, useEffect as mt, useRef as gt, useCallback as Se, useMemo as fe, forwardRef as
|
|
4
|
+
import Ke, { useState as ce, useEffect as mt, useRef as gt, useCallback as Se, useMemo as fe, forwardRef as Qo, useLayoutEffect as er, memo as Ms } from "react";
|
|
5
5
|
import * as qt from "react-dom";
|
|
6
6
|
import Ns, { createPortal as _s } from "react-dom";
|
|
7
7
|
import { useReactTable as Os, getFilteredRowModel as Ds, getPaginationRowModel as ks, getSortedRowModel as Fs, getCoreRowModel as Ls, flexRender as wo } from "@tanstack/react-table";
|
|
@@ -20,31 +20,31 @@ const le = ({ children: e, ...t }) => /* @__PURE__ */ f(
|
|
|
20
20
|
...t,
|
|
21
21
|
children: e
|
|
22
22
|
}
|
|
23
|
-
),
|
|
23
|
+
), tr = (e) => /* @__PURE__ */ f(le, { ...e, children: /* @__PURE__ */ f("path", { d: "M20 6 9 17l-5-5" }) }), Hn = (e) => /* @__PURE__ */ f(le, { ...e, children: /* @__PURE__ */ f("path", { d: "m6 9 6 6 6-6" }) }), $s = (e) => /* @__PURE__ */ f(le, { ...e, children: /* @__PURE__ */ f("path", { d: "m18 15-6-6-6 6" }) }), Vs = (e) => /* @__PURE__ */ f(le, { ...e, children: /* @__PURE__ */ f("path", { d: "m15 18-6-6 6-6" }) }), Bs = (e) => /* @__PURE__ */ f(le, { ...e, children: /* @__PURE__ */ f("path", { d: "m9 18 6-6-6-6" }) }), Ws = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
24
24
|
/* @__PURE__ */ f("path", { d: "m11 17-5-5 5-5" }),
|
|
25
25
|
/* @__PURE__ */ f("path", { d: "m18 17-5-5 5-5" })
|
|
26
|
-
] }), Us = (e) => /* @__PURE__ */
|
|
26
|
+
] }), Us = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
27
27
|
/* @__PURE__ */ f("path", { d: "m6 17 5-5-5-5" }),
|
|
28
28
|
/* @__PURE__ */ f("path", { d: "m13 17 5-5-5-5" })
|
|
29
|
-
] }), Hs = (e) => /* @__PURE__ */
|
|
29
|
+
] }), Hs = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
30
30
|
/* @__PURE__ */ f("path", { d: "m7 15 5 5 5-5" }),
|
|
31
31
|
/* @__PURE__ */ f("path", { d: "m7 9 5-5 5 5" })
|
|
32
|
-
] }), Ks = (e) => /* @__PURE__ */ f(le, { ...e, children: /* @__PURE__ */ f("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }) }), Gs = (e) => /* @__PURE__ */
|
|
32
|
+
] }), Ks = (e) => /* @__PURE__ */ f(le, { ...e, children: /* @__PURE__ */ f("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }) }), Gs = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
33
33
|
/* @__PURE__ */ f("path", { d: "M3 6h18" }),
|
|
34
34
|
/* @__PURE__ */ f("path", { d: "M7 12h10" }),
|
|
35
35
|
/* @__PURE__ */ f("path", { d: "M10 18h4" })
|
|
36
|
-
] }), zs = (e) => /* @__PURE__ */
|
|
36
|
+
] }), zs = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
37
37
|
/* @__PURE__ */ f("path", { d: "M10 20v-6L3.6 5.2A2 2 0 0 1 5.17 2h13.66a2 2 0 0 1 1.57 3.2L14 12.9" }),
|
|
38
38
|
/* @__PURE__ */ f("path", { d: "m22 22-4-4" }),
|
|
39
39
|
/* @__PURE__ */ f("path", { d: "m18 22 4-4" })
|
|
40
|
-
] }), js = (e) => /* @__PURE__ */ f(le, { ...e, children: /* @__PURE__ */ f("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Ys = (e) => /* @__PURE__ */
|
|
40
|
+
] }), js = (e) => /* @__PURE__ */ f(le, { ...e, children: /* @__PURE__ */ f("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Ys = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
41
41
|
/* @__PURE__ */ f("circle", { cx: "12", cy: "12", r: "1" }),
|
|
42
42
|
/* @__PURE__ */ f("circle", { cx: "12", cy: "5", r: "1" }),
|
|
43
43
|
/* @__PURE__ */ f("circle", { cx: "12", cy: "19", r: "1" })
|
|
44
|
-
] }),
|
|
44
|
+
] }), nr = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
45
45
|
/* @__PURE__ */ f("circle", { cx: "11", cy: "11", r: "8" }),
|
|
46
46
|
/* @__PURE__ */ f("path", { d: "m21 21-4.3-4.3" })
|
|
47
|
-
] }), yo = (e) => /* @__PURE__ */
|
|
47
|
+
] }), yo = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
48
48
|
/* @__PURE__ */ f("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
|
|
49
49
|
/* @__PURE__ */ f("circle", { cx: "12", cy: "12", r: "3" })
|
|
50
50
|
] }), Xs = Hn;
|
|
@@ -88,7 +88,7 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
88
88
|
if (typeof window > "u" || new URL(window.location.href).searchParams.get(e) === t) return;
|
|
89
89
|
const o = new URL(window.location.href);
|
|
90
90
|
t ? o.searchParams.set(e, t) : o.searchParams.delete(e), window.history.replaceState(window.history.state, "", o.toString());
|
|
91
|
-
},
|
|
91
|
+
}, or = ({
|
|
92
92
|
enabled: e,
|
|
93
93
|
defaultPrefilter: t,
|
|
94
94
|
defaultPageSize: n,
|
|
@@ -116,11 +116,11 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
116
116
|
return { pageIndex: 0, pageSize: n };
|
|
117
117
|
}), m = Se((x) => {
|
|
118
118
|
w((I) => {
|
|
119
|
-
const
|
|
120
|
-
return i.current && (I.pageIndex !==
|
|
119
|
+
const P = typeof x == "function" ? x(I) : x;
|
|
120
|
+
return i.current && (I.pageIndex !== P.pageIndex || I.pageSize !== P.pageSize) && (se(Ft, P.pageIndex > 0 ? String(P.pageIndex + 1) : null), se(
|
|
121
121
|
Mn,
|
|
122
|
-
|
|
123
|
-
)),
|
|
122
|
+
P.pageSize !== s.current ? String(P.pageSize) : null
|
|
123
|
+
)), P;
|
|
124
124
|
});
|
|
125
125
|
}, []), [v, b] = ce(() => {
|
|
126
126
|
if (e) {
|
|
@@ -131,8 +131,8 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
131
131
|
return {};
|
|
132
132
|
}), C = Se((x) => {
|
|
133
133
|
if (b(x), i.current) {
|
|
134
|
-
const
|
|
135
|
-
se(Lt,
|
|
134
|
+
const P = Object.keys(x).length > 0 ? rr(x) : null;
|
|
135
|
+
se(Lt, P);
|
|
136
136
|
}
|
|
137
137
|
}, []), [y, S] = ce(() => {
|
|
138
138
|
if (e) {
|
|
@@ -143,10 +143,10 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
143
143
|
return o ? [{ id: o, desc: r === "desc" }] : [];
|
|
144
144
|
}), R = Se((x) => {
|
|
145
145
|
S((I) => {
|
|
146
|
-
const
|
|
147
|
-
return i.current && (
|
|
146
|
+
const P = typeof x == "function" ? x(I) : x;
|
|
147
|
+
return i.current && (P.length > 0 ? (se(dt, P[0].id), se(ft, String(P[0].desc))) : (se(dt, null), se(ft, null))), P;
|
|
148
148
|
});
|
|
149
|
-
}, []),
|
|
149
|
+
}, []), T = fe(() => {
|
|
150
150
|
const x = o ? [{ id: o, desc: r === "desc" }] : [];
|
|
151
151
|
return l !== "" || a !== t || Object.keys(v).length > 0 || y.length !== x.length || y.length > 0 && x.length > 0 && (y[0].id !== x[0].id || y[0].desc !== x[0].desc);
|
|
152
152
|
}, [l, a, t, v, y, o, r]), E = Se(() => {
|
|
@@ -164,9 +164,9 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
164
164
|
sorting: y,
|
|
165
165
|
setSorting: R,
|
|
166
166
|
resetToDefaults: E,
|
|
167
|
-
hasActiveFilters:
|
|
167
|
+
hasActiveFilters: T
|
|
168
168
|
};
|
|
169
|
-
},
|
|
169
|
+
}, rr = (e) => {
|
|
170
170
|
const t = [];
|
|
171
171
|
for (const [n, o] of Object.entries(e)) {
|
|
172
172
|
const r = o.filter((i) => i !== "");
|
|
@@ -183,7 +183,7 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
183
183
|
s.length > 0 && (t[r] = s);
|
|
184
184
|
}
|
|
185
185
|
return t;
|
|
186
|
-
},
|
|
186
|
+
}, op = (e, t) => {
|
|
187
187
|
const n = new URL(e, typeof window < "u" ? window.location.origin : "http://localhost");
|
|
188
188
|
if (t) {
|
|
189
189
|
if (t.prefilter && n.searchParams.set(Dt, t.prefilter), t.search && n.searchParams.set(kt, t.search), t.pagination) {
|
|
@@ -191,7 +191,7 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
191
191
|
o > 0 && n.searchParams.set(Ft, String(o + 1)), r && n.searchParams.set(Mn, String(r));
|
|
192
192
|
}
|
|
193
193
|
if (t.filters && Object.keys(t.filters).length > 0) {
|
|
194
|
-
const o =
|
|
194
|
+
const o = rr(t.filters);
|
|
195
195
|
n.searchParams.set(Lt, o);
|
|
196
196
|
}
|
|
197
197
|
if (t.sorting && t.sorting.length > 0) {
|
|
@@ -211,7 +211,7 @@ const qs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
211
211
|
*
|
|
212
212
|
* @license MIT
|
|
213
213
|
*/
|
|
214
|
-
const
|
|
214
|
+
const ir = {
|
|
215
215
|
À: "A",
|
|
216
216
|
Á: "A",
|
|
217
217
|
Â: "A",
|
|
@@ -611,9 +611,9 @@ const rr = {
|
|
|
611
611
|
x̧: "x",
|
|
612
612
|
Z̧: "Z",
|
|
613
613
|
z̧: "z"
|
|
614
|
-
}, ea = Object.keys(
|
|
614
|
+
}, ea = Object.keys(ir).join("|"), ta = new RegExp(ea, "g");
|
|
615
615
|
function na(e) {
|
|
616
|
-
return e.replace(ta, (t) =>
|
|
616
|
+
return e.replace(ta, (t) => ir[t]);
|
|
617
617
|
}
|
|
618
618
|
/**
|
|
619
619
|
* @name match-sorter
|
|
@@ -631,7 +631,7 @@ const ae = {
|
|
|
631
631
|
MATCHES: 1,
|
|
632
632
|
NO_MATCH: 0
|
|
633
633
|
};
|
|
634
|
-
function
|
|
634
|
+
function sr(e, t, n) {
|
|
635
635
|
var o;
|
|
636
636
|
if (n = n || {}, n.threshold = (o = n.threshold) != null ? o : ae.MATCHES, !n.accessors) {
|
|
637
637
|
const s = bo(e, t, n);
|
|
@@ -733,12 +733,12 @@ function aa(e) {
|
|
|
733
733
|
};
|
|
734
734
|
}
|
|
735
735
|
const ca = (e, t, n, o) => {
|
|
736
|
-
const r =
|
|
736
|
+
const r = sr(e.getValue(t), n);
|
|
737
737
|
return o({ itemRank: r }), r.passed;
|
|
738
738
|
}, la = (e, t, n, o) => {
|
|
739
|
-
const r =
|
|
739
|
+
const r = sr(e.getValue(t), n, { threshold: ae.CONTAINS });
|
|
740
740
|
return o({ itemRank: r }), r.passed;
|
|
741
|
-
},
|
|
741
|
+
}, ar = "datatable-config-", xo = (e, t) => {
|
|
742
742
|
try {
|
|
743
743
|
const n = `datatable-config-${e}`, o = JSON.stringify(t);
|
|
744
744
|
document.cookie = `${n}=${encodeURIComponent(o)}; path=/`;
|
|
@@ -748,7 +748,7 @@ const ca = (e, t, n, o) => {
|
|
|
748
748
|
}, ua = (e) => {
|
|
749
749
|
var t;
|
|
750
750
|
try {
|
|
751
|
-
const n = `${
|
|
751
|
+
const n = `${ar}${e}`, o = (t = document.cookie.split("; ").find((r) => r.startsWith(`${n}=`))) == null ? void 0 : t.split("=")[1];
|
|
752
752
|
if (o) {
|
|
753
753
|
const r = decodeURIComponent(o);
|
|
754
754
|
return JSON.parse(r);
|
|
@@ -759,7 +759,7 @@ const ca = (e, t, n, o) => {
|
|
|
759
759
|
return null;
|
|
760
760
|
}, da = (e) => {
|
|
761
761
|
try {
|
|
762
|
-
const t = `${
|
|
762
|
+
const t = `${ar}${e}`;
|
|
763
763
|
document.cookie = `${t}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT`;
|
|
764
764
|
} catch (t) {
|
|
765
765
|
console.warn("Failed to delete column configuration:", t);
|
|
@@ -780,7 +780,7 @@ const ca = (e, t, n, o) => {
|
|
|
780
780
|
console.warn("Failed to generate config ID from parent component:", t);
|
|
781
781
|
}
|
|
782
782
|
return `datatable-${window.location.pathname.replace(/[^a-zA-Z0-9]/g, "-")}`;
|
|
783
|
-
},
|
|
783
|
+
}, Te = Qo(
|
|
784
784
|
({
|
|
785
785
|
children: e,
|
|
786
786
|
onClick: t,
|
|
@@ -807,7 +807,7 @@ const ca = (e, t, n, o) => {
|
|
|
807
807
|
}
|
|
808
808
|
)
|
|
809
809
|
);
|
|
810
|
-
|
|
810
|
+
Te.displayName = "Button";
|
|
811
811
|
function N(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
812
812
|
return function(r) {
|
|
813
813
|
if (e == null || e(r), n === !1 || !r.defaultPrevented)
|
|
@@ -1007,7 +1007,7 @@ var Sa = [
|
|
|
1007
1007
|
});
|
|
1008
1008
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
1009
1009
|
}, {});
|
|
1010
|
-
function
|
|
1010
|
+
function cr(e, t) {
|
|
1011
1011
|
e && qt.flushSync(() => e.dispatchEvent(t));
|
|
1012
1012
|
}
|
|
1013
1013
|
function Kn(e) {
|
|
@@ -1028,8 +1028,8 @@ function Kn(e) {
|
|
|
1028
1028
|
u.displayName = a;
|
|
1029
1029
|
const l = e + "CollectionItemSlot", p = "data-radix-collection-item", h = /* @__PURE__ */ wt(l), g = Ke.forwardRef(
|
|
1030
1030
|
(m, v) => {
|
|
1031
|
-
const { scope: b, children: C, ...y } = m, S = Ke.useRef(null), R = J(v, S),
|
|
1032
|
-
return Ke.useEffect(() => (
|
|
1031
|
+
const { scope: b, children: C, ...y } = m, S = Ke.useRef(null), R = J(v, S), T = i(l, b);
|
|
1032
|
+
return Ke.useEffect(() => (T.itemMap.set(S, { ref: S, ...y }), () => void T.itemMap.delete(S))), /* @__PURE__ */ f(h, { [p]: "", ref: R, children: C });
|
|
1033
1033
|
}
|
|
1034
1034
|
);
|
|
1035
1035
|
g.displayName = l;
|
|
@@ -1040,7 +1040,7 @@ function Kn(e) {
|
|
|
1040
1040
|
if (!C) return [];
|
|
1041
1041
|
const y = Array.from(C.querySelectorAll(`[${p}]`));
|
|
1042
1042
|
return Array.from(v.itemMap.values()).sort(
|
|
1043
|
-
(
|
|
1043
|
+
(T, E) => y.indexOf(T.ref.current) - y.indexOf(E.ref.current)
|
|
1044
1044
|
);
|
|
1045
1045
|
}, [v.collectionRef, v.itemMap]);
|
|
1046
1046
|
}
|
|
@@ -1073,7 +1073,7 @@ function Ea(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1073
1073
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
1074
1074
|
}, [n, t]);
|
|
1075
1075
|
}
|
|
1076
|
-
var Ra = "DismissableLayer", Nn = "dismissableLayer.update", Aa = "dismissableLayer.pointerDownOutside",
|
|
1076
|
+
var Ra = "DismissableLayer", Nn = "dismissableLayer.update", Aa = "dismissableLayer.pointerDownOutside", Ta = "dismissableLayer.focusOutside", Ro, lr = d.createContext({
|
|
1077
1077
|
layers: /* @__PURE__ */ new Set(),
|
|
1078
1078
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
1079
1079
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -1087,12 +1087,12 @@ var Ra = "DismissableLayer", Nn = "dismissableLayer.update", Aa = "dismissableLa
|
|
|
1087
1087
|
onInteractOutside: s,
|
|
1088
1088
|
onDismiss: a,
|
|
1089
1089
|
...c
|
|
1090
|
-
} = e, u = d.useContext(
|
|
1091
|
-
const x = E.target, I = [...u.branches].some((
|
|
1090
|
+
} = e, u = d.useContext(lr), [l, p] = d.useState(null), h = (l == null ? void 0 : l.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = J(t, (E) => p(E)), m = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(v), C = l ? m.indexOf(l) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, S = C >= b, R = Ma((E) => {
|
|
1091
|
+
const x = E.target, I = [...u.branches].some((P) => P.contains(x));
|
|
1092
1092
|
!S || I || (r == null || r(E), s == null || s(E), E.defaultPrevented || a == null || a());
|
|
1093
|
-
}, h),
|
|
1093
|
+
}, h), T = Na((E) => {
|
|
1094
1094
|
const x = E.target;
|
|
1095
|
-
[...u.branches].some((
|
|
1095
|
+
[...u.branches].some((P) => P.contains(x)) || (i == null || i(E), s == null || s(E), E.defaultPrevented || a == null || a());
|
|
1096
1096
|
}, h);
|
|
1097
1097
|
return Ea((E) => {
|
|
1098
1098
|
C === u.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && a && (E.preventDefault(), a()));
|
|
@@ -1115,8 +1115,8 @@ var Ra = "DismissableLayer", Nn = "dismissableLayer.update", Aa = "dismissableLa
|
|
|
1115
1115
|
pointerEvents: y ? S ? "auto" : "none" : void 0,
|
|
1116
1116
|
...e.style
|
|
1117
1117
|
},
|
|
1118
|
-
onFocusCapture: N(e.onFocusCapture,
|
|
1119
|
-
onBlurCapture: N(e.onBlurCapture,
|
|
1118
|
+
onFocusCapture: N(e.onFocusCapture, T.onFocusCapture),
|
|
1119
|
+
onBlurCapture: N(e.onBlurCapture, T.onBlurCapture),
|
|
1120
1120
|
onPointerDownCapture: N(
|
|
1121
1121
|
e.onPointerDownCapture,
|
|
1122
1122
|
R.onPointerDownCapture
|
|
@@ -1126,8 +1126,8 @@ var Ra = "DismissableLayer", Nn = "dismissableLayer.update", Aa = "dismissableLa
|
|
|
1126
1126
|
}
|
|
1127
1127
|
);
|
|
1128
1128
|
Gn.displayName = Ra;
|
|
1129
|
-
var
|
|
1130
|
-
const n = d.useContext(
|
|
1129
|
+
var Pa = "DismissableLayerBranch", Ia = d.forwardRef((e, t) => {
|
|
1130
|
+
const n = d.useContext(lr), o = d.useRef(null), r = J(t, o);
|
|
1131
1131
|
return d.useEffect(() => {
|
|
1132
1132
|
const i = o.current;
|
|
1133
1133
|
if (i)
|
|
@@ -1136,7 +1136,7 @@ var Ta = "DismissableLayerBranch", Ia = d.forwardRef((e, t) => {
|
|
|
1136
1136
|
};
|
|
1137
1137
|
}, [n.branches]), /* @__PURE__ */ f(K.div, { ...e, ref: r });
|
|
1138
1138
|
});
|
|
1139
|
-
Ia.displayName =
|
|
1139
|
+
Ia.displayName = Pa;
|
|
1140
1140
|
function Ma(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1141
1141
|
const n = Me(e), o = d.useRef(!1), r = d.useRef(() => {
|
|
1142
1142
|
});
|
|
@@ -1144,7 +1144,7 @@ function Ma(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1144
1144
|
const i = (a) => {
|
|
1145
1145
|
if (a.target && !o.current) {
|
|
1146
1146
|
let c = function() {
|
|
1147
|
-
|
|
1147
|
+
ur(
|
|
1148
1148
|
Aa,
|
|
1149
1149
|
n,
|
|
1150
1150
|
u,
|
|
@@ -1171,7 +1171,7 @@ function Na(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1171
1171
|
const n = Me(e), o = d.useRef(!1);
|
|
1172
1172
|
return d.useEffect(() => {
|
|
1173
1173
|
const r = (i) => {
|
|
1174
|
-
i.target && !o.current &&
|
|
1174
|
+
i.target && !o.current && ur(Ta, n, { originalEvent: i }, {
|
|
1175
1175
|
discrete: !1
|
|
1176
1176
|
});
|
|
1177
1177
|
};
|
|
@@ -1185,24 +1185,24 @@ function Ao() {
|
|
|
1185
1185
|
const e = new CustomEvent(Nn);
|
|
1186
1186
|
document.dispatchEvent(e);
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function ur(e, t, n, { discrete: o }) {
|
|
1189
1189
|
const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
1190
|
-
t && r.addEventListener(e, t, { once: !0 }), o ?
|
|
1190
|
+
t && r.addEventListener(e, t, { once: !0 }), o ? cr(r, i) : r.dispatchEvent(i);
|
|
1191
1191
|
}
|
|
1192
1192
|
var yn = 0;
|
|
1193
|
-
function
|
|
1193
|
+
function dr() {
|
|
1194
1194
|
d.useEffect(() => {
|
|
1195
1195
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
1196
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
1196
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? To()), document.body.insertAdjacentElement("beforeend", e[1] ?? To()), yn++, () => {
|
|
1197
1197
|
yn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), yn--;
|
|
1198
1198
|
};
|
|
1199
1199
|
}, []);
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function To() {
|
|
1202
1202
|
const e = document.createElement("span");
|
|
1203
1203
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
1204
1204
|
}
|
|
1205
|
-
var bn = "focusScope.autoFocusOnMount", Cn = "focusScope.autoFocusOnUnmount",
|
|
1205
|
+
var bn = "focusScope.autoFocusOnMount", Cn = "focusScope.autoFocusOnUnmount", Po = { bubbles: !1, cancelable: !0 }, _a = "FocusScope", zn = d.forwardRef((e, t) => {
|
|
1206
1206
|
const {
|
|
1207
1207
|
loop: n = !1,
|
|
1208
1208
|
trapped: o = !1,
|
|
@@ -1244,12 +1244,12 @@ var bn = "focusScope.autoFocusOnMount", Cn = "focusScope.autoFocusOnUnmount", To
|
|
|
1244
1244
|
Mo.add(g);
|
|
1245
1245
|
const m = document.activeElement;
|
|
1246
1246
|
if (!a.contains(m)) {
|
|
1247
|
-
const b = new CustomEvent(bn,
|
|
1248
|
-
a.addEventListener(bn, u), a.dispatchEvent(b), b.defaultPrevented || (Oa($a(
|
|
1247
|
+
const b = new CustomEvent(bn, Po);
|
|
1248
|
+
a.addEventListener(bn, u), a.dispatchEvent(b), b.defaultPrevented || (Oa($a(fr(a)), { select: !0 }), document.activeElement === m && Le(a));
|
|
1249
1249
|
}
|
|
1250
1250
|
return () => {
|
|
1251
1251
|
a.removeEventListener(bn, u), setTimeout(() => {
|
|
1252
|
-
const b = new CustomEvent(Cn,
|
|
1252
|
+
const b = new CustomEvent(Cn, Po);
|
|
1253
1253
|
a.addEventListener(Cn, l), a.dispatchEvent(b), b.defaultPrevented || Le(m ?? document.body, { select: !0 }), a.removeEventListener(Cn, l), Mo.remove(g);
|
|
1254
1254
|
}, 0);
|
|
1255
1255
|
};
|
|
@@ -1275,10 +1275,10 @@ function Oa(e, { select: t = !1 } = {}) {
|
|
|
1275
1275
|
if (Le(o, { select: t }), document.activeElement !== n) return;
|
|
1276
1276
|
}
|
|
1277
1277
|
function Da(e) {
|
|
1278
|
-
const t =
|
|
1278
|
+
const t = fr(e), n = Io(t, e), o = Io(t.reverse(), e);
|
|
1279
1279
|
return [n, o];
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function fr(e) {
|
|
1282
1282
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
1283
1283
|
acceptNode: (o) => {
|
|
1284
1284
|
const r = o.tagName === "INPUT" && o.type === "hidden";
|
|
@@ -1339,7 +1339,7 @@ function ze(e) {
|
|
|
1339
1339
|
n((o) => o ?? String(Ba++));
|
|
1340
1340
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
1341
1341
|
}
|
|
1342
|
-
const Wa = ["top", "right", "bottom", "left"], $e = Math.min, pe = Math.max, Wt = Math.round,
|
|
1342
|
+
const Wa = ["top", "right", "bottom", "left"], $e = Math.min, pe = Math.max, Wt = Math.round, Pt = Math.floor, Ie = (e) => ({
|
|
1343
1343
|
x: e,
|
|
1344
1344
|
y: e
|
|
1345
1345
|
}), Ua = {
|
|
@@ -1370,11 +1370,11 @@ function Yn(e) {
|
|
|
1370
1370
|
return e === "y" ? "height" : "width";
|
|
1371
1371
|
}
|
|
1372
1372
|
const Ka = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
1373
|
-
function
|
|
1373
|
+
function Pe(e) {
|
|
1374
1374
|
return Ka.has(ke(e)) ? "y" : "x";
|
|
1375
1375
|
}
|
|
1376
1376
|
function Xn(e) {
|
|
1377
|
-
return jn(
|
|
1377
|
+
return jn(Pe(e));
|
|
1378
1378
|
}
|
|
1379
1379
|
function Ga(e, t, n) {
|
|
1380
1380
|
n === void 0 && (n = !1);
|
|
@@ -1419,7 +1419,7 @@ function qa(e) {
|
|
|
1419
1419
|
...e
|
|
1420
1420
|
};
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function pr(e) {
|
|
1423
1423
|
return typeof e != "number" ? qa(e) : {
|
|
1424
1424
|
top: e,
|
|
1425
1425
|
right: e,
|
|
@@ -1450,7 +1450,7 @@ function Do(e, t, n) {
|
|
|
1450
1450
|
reference: o,
|
|
1451
1451
|
floating: r
|
|
1452
1452
|
} = e;
|
|
1453
|
-
const i =
|
|
1453
|
+
const i = Pe(t), s = Xn(t), a = Yn(s), c = ke(t), u = i === "y", l = o.x + o.width / 2 - r.width / 2, p = o.y + o.height / 2 - r.height / 2, h = o[a] / 2 - r[a] / 2;
|
|
1454
1454
|
let g;
|
|
1455
1455
|
switch (c) {
|
|
1456
1456
|
case "top":
|
|
@@ -1570,7 +1570,7 @@ async function yt(e, t) {
|
|
|
1570
1570
|
elementContext: p = "floating",
|
|
1571
1571
|
altBoundary: h = !1,
|
|
1572
1572
|
padding: g = 0
|
|
1573
|
-
} = De(t, e), w =
|
|
1573
|
+
} = De(t, e), w = pr(g), v = a[h ? p === "floating" ? "reference" : "floating" : p], b = Ht(await i.getClippingRect({
|
|
1574
1574
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
1575
1575
|
boundary: u,
|
|
1576
1576
|
rootBoundary: l,
|
|
@@ -1617,18 +1617,18 @@ const Qa = (e) => ({
|
|
|
1617
1617
|
} = De(e, t) || {};
|
|
1618
1618
|
if (u == null)
|
|
1619
1619
|
return {};
|
|
1620
|
-
const p =
|
|
1620
|
+
const p = pr(l), h = {
|
|
1621
1621
|
x: n,
|
|
1622
1622
|
y: o
|
|
1623
|
-
}, g = Xn(r), w = Yn(g), m = await s.getDimensions(u), v = g === "y", b = v ? "top" : "left", C = v ? "bottom" : "right", y = v ? "clientHeight" : "clientWidth", S = i.reference[w] + i.reference[g] - h[g] - i.floating[w], R = h[g] - i.reference[g],
|
|
1624
|
-
let E =
|
|
1625
|
-
(!E || !await (s.isElement == null ? void 0 : s.isElement(
|
|
1626
|
-
const x = S / 2 - R / 2, I = E / 2 - m[w] / 2 - 1,
|
|
1623
|
+
}, g = Xn(r), w = Yn(g), m = await s.getDimensions(u), v = g === "y", b = v ? "top" : "left", C = v ? "bottom" : "right", y = v ? "clientHeight" : "clientWidth", S = i.reference[w] + i.reference[g] - h[g] - i.floating[w], R = h[g] - i.reference[g], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
1624
|
+
let E = T ? T[y] : 0;
|
|
1625
|
+
(!E || !await (s.isElement == null ? void 0 : s.isElement(T))) && (E = a.floating[y] || i.floating[w]);
|
|
1626
|
+
const x = S / 2 - R / 2, I = E / 2 - m[w] / 2 - 1, P = $e(p[b], I), F = $e(p[C], I), L = P, $ = E - m[w] - F, D = E / 2 - m[w] / 2 + x, B = _n(L, D, $), O = !c.arrow && st(r) != null && D !== B && i.reference[w] / 2 - (D < L ? P : F) - m[w] / 2 < 0, W = O ? D < L ? D - L : D - $ : 0;
|
|
1627
1627
|
return {
|
|
1628
1628
|
[g]: h[g] + W,
|
|
1629
1629
|
data: {
|
|
1630
1630
|
[g]: B,
|
|
1631
|
-
centerOffset:
|
|
1631
|
+
centerOffset: D - B - W,
|
|
1632
1632
|
...O && {
|
|
1633
1633
|
alignmentOffset: W
|
|
1634
1634
|
}
|
|
@@ -1660,40 +1660,40 @@ const Qa = (e) => ({
|
|
|
1660
1660
|
} = De(e, t);
|
|
1661
1661
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1662
1662
|
return {};
|
|
1663
|
-
const b = ke(r), C =
|
|
1664
|
-
!h &&
|
|
1663
|
+
const b = ke(r), C = Pe(a), y = ke(a) === a, S = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), R = h || (y || !m ? [Ut(a)] : za(a)), T = w !== "none";
|
|
1664
|
+
!h && T && R.push(...Za(a, m, w, S));
|
|
1665
1665
|
const E = [a, ...R], x = await yt(t, v), I = [];
|
|
1666
|
-
let
|
|
1666
|
+
let P = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1667
1667
|
if (l && I.push(x[b]), p) {
|
|
1668
|
-
const
|
|
1669
|
-
I.push(x[
|
|
1668
|
+
const D = Ga(r, s, S);
|
|
1669
|
+
I.push(x[D[0]], x[D[1]]);
|
|
1670
1670
|
}
|
|
1671
|
-
if (
|
|
1671
|
+
if (P = [...P, {
|
|
1672
1672
|
placement: r,
|
|
1673
1673
|
overflows: I
|
|
1674
|
-
}], !I.every((
|
|
1675
|
-
var
|
|
1676
|
-
const
|
|
1677
|
-
if (B && (!(p === "alignment" ? C !==
|
|
1674
|
+
}], !I.every((D) => D <= 0)) {
|
|
1675
|
+
var F, L;
|
|
1676
|
+
const D = (((F = i.flip) == null ? void 0 : F.index) || 0) + 1, B = E[D];
|
|
1677
|
+
if (B && (!(p === "alignment" ? C !== Pe(B) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1678
1678
|
// overflows the main axis.
|
|
1679
|
-
|
|
1679
|
+
P.every((M) => Pe(M.placement) === C ? M.overflows[0] > 0 : !0)))
|
|
1680
1680
|
return {
|
|
1681
1681
|
data: {
|
|
1682
|
-
index:
|
|
1683
|
-
overflows:
|
|
1682
|
+
index: D,
|
|
1683
|
+
overflows: P
|
|
1684
1684
|
},
|
|
1685
1685
|
reset: {
|
|
1686
1686
|
placement: B
|
|
1687
1687
|
}
|
|
1688
1688
|
};
|
|
1689
|
-
let O = (L =
|
|
1689
|
+
let O = (L = P.filter((W) => W.overflows[0] <= 0).sort((W, M) => W.overflows[1] - M.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
1690
1690
|
if (!O)
|
|
1691
1691
|
switch (g) {
|
|
1692
1692
|
case "bestFit": {
|
|
1693
1693
|
var $;
|
|
1694
|
-
const W = ($ =
|
|
1695
|
-
if (
|
|
1696
|
-
const A =
|
|
1694
|
+
const W = ($ = P.filter((M) => {
|
|
1695
|
+
if (T) {
|
|
1696
|
+
const A = Pe(M.placement);
|
|
1697
1697
|
return A === C || // Create a bias to the `y` side axis due to horizontal
|
|
1698
1698
|
// reading directions favoring greater width.
|
|
1699
1699
|
A === "y";
|
|
@@ -1770,13 +1770,13 @@ const tc = function(e) {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
1772
1772
|
};
|
|
1773
|
-
},
|
|
1773
|
+
}, hr = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1774
1774
|
async function nc(e, t) {
|
|
1775
1775
|
const {
|
|
1776
1776
|
placement: n,
|
|
1777
1777
|
platform: o,
|
|
1778
1778
|
elements: r
|
|
1779
|
-
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = ke(n), a = st(n), c =
|
|
1779
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = ke(n), a = st(n), c = Pe(n) === "y", u = hr.has(s) ? -1 : 1, l = i && c ? -1 : 1, p = De(t, e);
|
|
1780
1780
|
let {
|
|
1781
1781
|
mainAxis: h,
|
|
1782
1782
|
crossAxis: g,
|
|
@@ -1848,7 +1848,7 @@ const oc = function(e) {
|
|
|
1848
1848
|
} = De(e, t), u = {
|
|
1849
1849
|
x: n,
|
|
1850
1850
|
y: o
|
|
1851
|
-
}, l = await yt(t, c), p =
|
|
1851
|
+
}, l = await yt(t, c), p = Pe(ke(r)), h = jn(p);
|
|
1852
1852
|
let g = u[h], w = u[p];
|
|
1853
1853
|
if (i) {
|
|
1854
1854
|
const v = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", C = g + l[v], y = g - l[b];
|
|
@@ -1893,7 +1893,7 @@ const oc = function(e) {
|
|
|
1893
1893
|
} = De(e, t), l = {
|
|
1894
1894
|
x: n,
|
|
1895
1895
|
y: o
|
|
1896
|
-
}, p =
|
|
1896
|
+
}, p = Pe(r), h = jn(p);
|
|
1897
1897
|
let g = l[h], w = l[p];
|
|
1898
1898
|
const m = De(a, t), v = typeof m == "number" ? {
|
|
1899
1899
|
mainAxis: m,
|
|
@@ -1909,8 +1909,8 @@ const oc = function(e) {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
if (u) {
|
|
1911
1911
|
var b, C;
|
|
1912
|
-
const y = h === "y" ? "width" : "height", S =
|
|
1913
|
-
w < R ? w = R : w >
|
|
1912
|
+
const y = h === "y" ? "width" : "height", S = hr.has(ke(r)), R = i.reference[p] - i.floating[y] + (S && ((b = s.offset) == null ? void 0 : b[p]) || 0) + (S ? 0 : v.crossAxis), T = i.reference[p] + i.reference[y] + (S ? 0 : ((C = s.offset) == null ? void 0 : C[p]) || 0) - (S ? v.crossAxis : 0);
|
|
1913
|
+
w < R ? w = R : w > T && (w = T);
|
|
1914
1914
|
}
|
|
1915
1915
|
return {
|
|
1916
1916
|
[h]: g,
|
|
@@ -1933,17 +1933,17 @@ const oc = function(e) {
|
|
|
1933
1933
|
apply: c = () => {
|
|
1934
1934
|
},
|
|
1935
1935
|
...u
|
|
1936
|
-
} = De(e, t), l = await yt(t, u), p = ke(r), h = st(r), g =
|
|
1936
|
+
} = De(e, t), l = await yt(t, u), p = ke(r), h = st(r), g = Pe(r) === "y", {
|
|
1937
1937
|
width: w,
|
|
1938
1938
|
height: m
|
|
1939
1939
|
} = i.floating;
|
|
1940
1940
|
let v, b;
|
|
1941
1941
|
p === "top" || p === "bottom" ? (v = p, b = h === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (b = p, v = h === "end" ? "top" : "bottom");
|
|
1942
|
-
const C = m - l.top - l.bottom, y = w - l.left - l.right, S = $e(m - l[v], C), R = $e(w - l[b], y),
|
|
1942
|
+
const C = m - l.top - l.bottom, y = w - l.left - l.right, S = $e(m - l[v], C), R = $e(w - l[b], y), T = !t.middlewareData.shift;
|
|
1943
1943
|
let E = S, x = R;
|
|
1944
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (x = y), (o = t.middlewareData.shift) != null && o.enabled.y && (E = C),
|
|
1945
|
-
const
|
|
1946
|
-
g ? x = w - 2 * (
|
|
1944
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (x = y), (o = t.middlewareData.shift) != null && o.enabled.y && (E = C), T && !h) {
|
|
1945
|
+
const P = pe(l.left, 0), F = pe(l.right, 0), L = pe(l.top, 0), $ = pe(l.bottom, 0);
|
|
1946
|
+
g ? x = w - 2 * (P !== 0 || F !== 0 ? P + F : pe(l.left, l.right)) : E = m - 2 * (L !== 0 || $ !== 0 ? L + $ : pe(l.top, l.bottom));
|
|
1947
1947
|
}
|
|
1948
1948
|
await c({
|
|
1949
1949
|
...t,
|
|
@@ -1963,7 +1963,7 @@ function en() {
|
|
|
1963
1963
|
return typeof window < "u";
|
|
1964
1964
|
}
|
|
1965
1965
|
function at(e) {
|
|
1966
|
-
return
|
|
1966
|
+
return mr(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1967
1967
|
}
|
|
1968
1968
|
function he(e) {
|
|
1969
1969
|
var t;
|
|
@@ -1971,9 +1971,9 @@ function he(e) {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
function _e(e) {
|
|
1973
1973
|
var t;
|
|
1974
|
-
return (t = (
|
|
1974
|
+
return (t = (mr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1976
|
+
function mr(e) {
|
|
1977
1977
|
return en() ? e instanceof Node || e instanceof he(e).Node : !1;
|
|
1978
1978
|
}
|
|
1979
1979
|
function xe(e) {
|
|
@@ -2056,14 +2056,14 @@ function Ve(e) {
|
|
|
2056
2056
|
);
|
|
2057
2057
|
return Lo(t) ? t.host : t;
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function gr(e) {
|
|
2060
2060
|
const t = Ve(e);
|
|
2061
|
-
return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ne(t) && xt(t) ? t :
|
|
2061
|
+
return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ne(t) && xt(t) ? t : gr(t);
|
|
2062
2062
|
}
|
|
2063
2063
|
function bt(e, t, n) {
|
|
2064
2064
|
var o;
|
|
2065
2065
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2066
|
-
const r =
|
|
2066
|
+
const r = gr(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = he(r);
|
|
2067
2067
|
if (i) {
|
|
2068
2068
|
const a = Dn(s);
|
|
2069
2069
|
return t.concat(s, s.visualViewport || [], xt(r) ? r : [], a && n ? bt(a) : []);
|
|
@@ -2073,7 +2073,7 @@ function bt(e, t, n) {
|
|
|
2073
2073
|
function Dn(e) {
|
|
2074
2074
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function vr(e) {
|
|
2077
2077
|
const t = Ee(e);
|
|
2078
2078
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
2079
2079
|
const r = Ne(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, a = Wt(n) !== i || Wt(o) !== s;
|
|
@@ -2094,7 +2094,7 @@ function ot(e) {
|
|
|
2094
2094
|
width: o,
|
|
2095
2095
|
height: r,
|
|
2096
2096
|
$: i
|
|
2097
|
-
} =
|
|
2097
|
+
} = vr(t);
|
|
2098
2098
|
let s = (i ? Wt(n.width) : n.width) / o, a = (i ? Wt(n.height) : n.height) / r;
|
|
2099
2099
|
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
2100
2100
|
x: s,
|
|
@@ -2102,7 +2102,7 @@ function ot(e) {
|
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
2104
|
const gc = /* @__PURE__ */ Ie(0);
|
|
2105
|
-
function
|
|
2105
|
+
function wr(e) {
|
|
2106
2106
|
const t = he(e);
|
|
2107
2107
|
return !qn() || !t.visualViewport ? gc : {
|
|
2108
2108
|
x: t.visualViewport.offsetLeft,
|
|
@@ -2117,7 +2117,7 @@ function je(e, t, n, o) {
|
|
|
2117
2117
|
const r = e.getBoundingClientRect(), i = Jn(e);
|
|
2118
2118
|
let s = Ie(1);
|
|
2119
2119
|
t && (o ? xe(o) && (s = ot(o)) : s = ot(e));
|
|
2120
|
-
const a = vc(i, n, o) ?
|
|
2120
|
+
const a = vc(i, n, o) ? wr(i) : Ie(0);
|
|
2121
2121
|
let c = (r.left + a.x) / s.x, u = (r.top + a.y) / s.y, l = r.width / s.x, p = r.height / s.y;
|
|
2122
2122
|
if (i) {
|
|
2123
2123
|
const h = he(i), g = o && xe(o) ? he(o) : o;
|
|
@@ -2138,7 +2138,7 @@ function on(e, t) {
|
|
|
2138
2138
|
const n = nn(e).scrollLeft;
|
|
2139
2139
|
return t ? t.left + n : je(_e(e)).left + n;
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2141
|
+
function yr(e, t) {
|
|
2142
2142
|
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - on(e, n), r = n.top + t.scrollTop;
|
|
2143
2143
|
return {
|
|
2144
2144
|
x: o,
|
|
@@ -2164,7 +2164,7 @@ function wc(e) {
|
|
|
2164
2164
|
const g = je(o);
|
|
2165
2165
|
u = ot(o), l.x = g.x + o.clientLeft, l.y = g.y + o.clientTop;
|
|
2166
2166
|
}
|
|
2167
|
-
const h = s && !p && !i ?
|
|
2167
|
+
const h = s && !p && !i ? yr(s, c) : Ie(0);
|
|
2168
2168
|
return {
|
|
2169
2169
|
width: n.width * u.x,
|
|
2170
2170
|
height: n.height * u.y,
|
|
@@ -2226,7 +2226,7 @@ function Vo(e, t, n) {
|
|
|
2226
2226
|
else if (xe(t))
|
|
2227
2227
|
o = xc(t, n);
|
|
2228
2228
|
else {
|
|
2229
|
-
const r =
|
|
2229
|
+
const r = wr(e);
|
|
2230
2230
|
o = {
|
|
2231
2231
|
x: t.x - r.x,
|
|
2232
2232
|
y: t.y - r.y,
|
|
@@ -2236,9 +2236,9 @@ function Vo(e, t, n) {
|
|
|
2236
2236
|
}
|
|
2237
2237
|
return Ht(o);
|
|
2238
2238
|
}
|
|
2239
|
-
function
|
|
2239
|
+
function br(e, t) {
|
|
2240
2240
|
const n = Ve(e);
|
|
2241
|
-
return n === t || !xe(n) || it(n) ? !1 : Ee(n).position === "fixed" ||
|
|
2241
|
+
return n === t || !xe(n) || it(n) ? !1 : Ee(n).position === "fixed" || br(n, t);
|
|
2242
2242
|
}
|
|
2243
2243
|
function Ec(e, t) {
|
|
2244
2244
|
const n = t.get(e);
|
|
@@ -2249,7 +2249,7 @@ function Ec(e, t) {
|
|
|
2249
2249
|
let s = i ? Ve(e) : e;
|
|
2250
2250
|
for (; xe(s) && !it(s); ) {
|
|
2251
2251
|
const a = Ee(s), c = Zn(s);
|
|
2252
|
-
!c && a.position === "fixed" && (r = null), (i ? !c && !r : !c && a.position === "static" && !!r && Sc.has(r.position) || xt(s) && !c &&
|
|
2252
|
+
!c && a.position === "fixed" && (r = null), (i ? !c && !r : !c && a.position === "static" && !!r && Sc.has(r.position) || xt(s) && !c && br(e, s)) ? o = o.filter((l) => l !== s) : r = a, s = Ve(s);
|
|
2253
2253
|
}
|
|
2254
2254
|
return t.set(e, o), o;
|
|
2255
2255
|
}
|
|
@@ -2275,13 +2275,13 @@ function Ac(e) {
|
|
|
2275
2275
|
const {
|
|
2276
2276
|
width: t,
|
|
2277
2277
|
height: n
|
|
2278
|
-
} =
|
|
2278
|
+
} = vr(e);
|
|
2279
2279
|
return {
|
|
2280
2280
|
width: t,
|
|
2281
2281
|
height: n
|
|
2282
2282
|
};
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function Tc(e, t, n) {
|
|
2285
2285
|
const o = Ne(t), r = _e(t), i = n === "fixed", s = je(e, !0, i, t);
|
|
2286
2286
|
let a = {
|
|
2287
2287
|
scrollLeft: 0,
|
|
@@ -2297,7 +2297,7 @@ function Pc(e, t, n) {
|
|
|
2297
2297
|
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
2298
2298
|
} else r && u();
|
|
2299
2299
|
i && !o && r && u();
|
|
2300
|
-
const l = r && !o && !i ?
|
|
2300
|
+
const l = r && !o && !i ? yr(r, a) : Ie(0), p = s.left + a.scrollLeft - c.x - l.x, h = s.top + a.scrollTop - c.y - l.y;
|
|
2301
2301
|
return {
|
|
2302
2302
|
x: p,
|
|
2303
2303
|
y: h,
|
|
@@ -2316,7 +2316,7 @@ function Bo(e, t) {
|
|
|
2316
2316
|
let n = e.offsetParent;
|
|
2317
2317
|
return _e(e) === n && (n = n.ownerDocument.body), n;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function Cr(e, t) {
|
|
2320
2320
|
const n = he(e);
|
|
2321
2321
|
if (tn(e))
|
|
2322
2322
|
return n;
|
|
@@ -2334,10 +2334,10 @@ function br(e, t) {
|
|
|
2334
2334
|
o = Bo(o, t);
|
|
2335
2335
|
return o && it(o) && Sn(o) && !Zn(o) ? n : o || hc(e) || n;
|
|
2336
2336
|
}
|
|
2337
|
-
const
|
|
2338
|
-
const t = this.getOffsetParent ||
|
|
2337
|
+
const Pc = async function(e) {
|
|
2338
|
+
const t = this.getOffsetParent || Cr, n = this.getDimensions, o = await n(e.floating);
|
|
2339
2339
|
return {
|
|
2340
|
-
reference:
|
|
2340
|
+
reference: Tc(e.reference, await t(e.floating), e.strategy),
|
|
2341
2341
|
floating: {
|
|
2342
2342
|
x: 0,
|
|
2343
2343
|
y: 0,
|
|
@@ -2353,15 +2353,15 @@ const Mc = {
|
|
|
2353
2353
|
convertOffsetParentRelativeRectToViewportRelativeRect: wc,
|
|
2354
2354
|
getDocumentElement: _e,
|
|
2355
2355
|
getClippingRect: Rc,
|
|
2356
|
-
getOffsetParent:
|
|
2357
|
-
getElementRects:
|
|
2356
|
+
getOffsetParent: Cr,
|
|
2357
|
+
getElementRects: Pc,
|
|
2358
2358
|
getClientRects: yc,
|
|
2359
2359
|
getDimensions: Ac,
|
|
2360
2360
|
getScale: ot,
|
|
2361
2361
|
isElement: xe,
|
|
2362
2362
|
isRTL: Ic
|
|
2363
2363
|
};
|
|
2364
|
-
function
|
|
2364
|
+
function Sr(e, t) {
|
|
2365
2365
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2366
2366
|
}
|
|
2367
2367
|
function Nc(e, t) {
|
|
@@ -2381,13 +2381,13 @@ function Nc(e, t) {
|
|
|
2381
2381
|
} = u;
|
|
2382
2382
|
if (a || t(), !h || !g)
|
|
2383
2383
|
return;
|
|
2384
|
-
const w =
|
|
2384
|
+
const w = Pt(p), m = Pt(r.clientWidth - (l + h)), v = Pt(r.clientHeight - (p + g)), b = Pt(l), y = {
|
|
2385
2385
|
rootMargin: -w + "px " + -m + "px " + -v + "px " + -b + "px",
|
|
2386
2386
|
threshold: pe(0, $e(1, c)) || 1
|
|
2387
2387
|
};
|
|
2388
2388
|
let S = !0;
|
|
2389
|
-
function R(
|
|
2390
|
-
const E =
|
|
2389
|
+
function R(T) {
|
|
2390
|
+
const E = T[0].intersectionRatio;
|
|
2391
2391
|
if (E !== c) {
|
|
2392
2392
|
if (!S)
|
|
2393
2393
|
return s();
|
|
@@ -2395,7 +2395,7 @@ function Nc(e, t) {
|
|
|
2395
2395
|
s(!1, 1e-7);
|
|
2396
2396
|
}, 1e3);
|
|
2397
2397
|
}
|
|
2398
|
-
E === 1 && !
|
|
2398
|
+
E === 1 && !Sr(u, e.getBoundingClientRect()) && s(), S = !1;
|
|
2399
2399
|
}
|
|
2400
2400
|
try {
|
|
2401
2401
|
n = new IntersectionObserver(R, {
|
|
@@ -2437,7 +2437,7 @@ function _c(e, t, n, o) {
|
|
|
2437
2437
|
c && v();
|
|
2438
2438
|
function v() {
|
|
2439
2439
|
const b = je(e);
|
|
2440
|
-
m && !
|
|
2440
|
+
m && !Sr(m, b) && n(), m = b, w = requestAnimationFrame(v);
|
|
2441
2441
|
}
|
|
2442
2442
|
return n(), () => {
|
|
2443
2443
|
var b;
|
|
@@ -2460,7 +2460,7 @@ const Oc = oc, Dc = rc, kc = ec, Fc = sc, Lc = tc, Wo = Qa, $c = ic, Vc = (e, t,
|
|
|
2460
2460
|
});
|
|
2461
2461
|
};
|
|
2462
2462
|
var Bc = typeof document < "u", Wc = function() {
|
|
2463
|
-
}, $t = Bc ?
|
|
2463
|
+
}, $t = Bc ? er : Wc;
|
|
2464
2464
|
function Kt(e, t) {
|
|
2465
2465
|
if (e === t)
|
|
2466
2466
|
return !0;
|
|
@@ -2491,11 +2491,11 @@ function Kt(e, t) {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
return e !== e && t !== t;
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2494
|
+
function xr(e) {
|
|
2495
2495
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2496
2496
|
}
|
|
2497
2497
|
function Uo(e, t) {
|
|
2498
|
-
const n =
|
|
2498
|
+
const n = xr(e);
|
|
2499
2499
|
return Math.round(t * n) / n;
|
|
2500
2500
|
}
|
|
2501
2501
|
function xn(e) {
|
|
@@ -2528,18 +2528,18 @@ function Uc(e) {
|
|
|
2528
2528
|
}), [h, g] = d.useState(o);
|
|
2529
2529
|
Kt(h, o) || g(o);
|
|
2530
2530
|
const [w, m] = d.useState(null), [v, b] = d.useState(null), C = d.useCallback((M) => {
|
|
2531
|
-
M !==
|
|
2531
|
+
M !== T.current && (T.current = M, m(M));
|
|
2532
2532
|
}, []), y = d.useCallback((M) => {
|
|
2533
2533
|
M !== E.current && (E.current = M, b(M));
|
|
2534
|
-
}, []), S = i || w, R = s || v,
|
|
2535
|
-
if (!
|
|
2534
|
+
}, []), S = i || w, R = s || v, T = d.useRef(null), E = d.useRef(null), x = d.useRef(l), I = c != null, P = xn(c), F = xn(r), L = xn(u), $ = d.useCallback(() => {
|
|
2535
|
+
if (!T.current || !E.current)
|
|
2536
2536
|
return;
|
|
2537
2537
|
const M = {
|
|
2538
2538
|
placement: t,
|
|
2539
2539
|
strategy: n,
|
|
2540
2540
|
middleware: h
|
|
2541
2541
|
};
|
|
2542
|
-
|
|
2542
|
+
F.current && (M.platform = F.current), Vc(T.current, E.current, M).then((A) => {
|
|
2543
2543
|
const Y = {
|
|
2544
2544
|
...A,
|
|
2545
2545
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -2548,29 +2548,29 @@ function Uc(e) {
|
|
|
2548
2548
|
// setting it to `true` when `open === false` (must be specified).
|
|
2549
2549
|
isPositioned: L.current !== !1
|
|
2550
2550
|
};
|
|
2551
|
-
|
|
2551
|
+
D.current && !Kt(x.current, Y) && (x.current = Y, qt.flushSync(() => {
|
|
2552
2552
|
p(Y);
|
|
2553
2553
|
}));
|
|
2554
2554
|
});
|
|
2555
|
-
}, [h, t, n,
|
|
2555
|
+
}, [h, t, n, F, L]);
|
|
2556
2556
|
$t(() => {
|
|
2557
2557
|
u === !1 && x.current.isPositioned && (x.current.isPositioned = !1, p((M) => ({
|
|
2558
2558
|
...M,
|
|
2559
2559
|
isPositioned: !1
|
|
2560
2560
|
})));
|
|
2561
2561
|
}, [u]);
|
|
2562
|
-
const
|
|
2563
|
-
$t(() => (
|
|
2564
|
-
|
|
2562
|
+
const D = d.useRef(!1);
|
|
2563
|
+
$t(() => (D.current = !0, () => {
|
|
2564
|
+
D.current = !1;
|
|
2565
2565
|
}), []), $t(() => {
|
|
2566
|
-
if (S && (
|
|
2567
|
-
if (
|
|
2568
|
-
return
|
|
2566
|
+
if (S && (T.current = S), R && (E.current = R), S && R) {
|
|
2567
|
+
if (P.current)
|
|
2568
|
+
return P.current(S, R, $);
|
|
2569
2569
|
$();
|
|
2570
2570
|
}
|
|
2571
|
-
}, [S, R, $,
|
|
2571
|
+
}, [S, R, $, P, I]);
|
|
2572
2572
|
const B = d.useMemo(() => ({
|
|
2573
|
-
reference:
|
|
2573
|
+
reference: T,
|
|
2574
2574
|
floating: E,
|
|
2575
2575
|
setReference: C,
|
|
2576
2576
|
setFloating: y
|
|
@@ -2589,7 +2589,7 @@ function Uc(e) {
|
|
|
2589
2589
|
return a ? {
|
|
2590
2590
|
...M,
|
|
2591
2591
|
transform: "translate(" + A + "px, " + Y + "px)",
|
|
2592
|
-
...
|
|
2592
|
+
...xr(O.floating) >= 1.5 && {
|
|
2593
2593
|
willChange: "transform"
|
|
2594
2594
|
}
|
|
2595
2595
|
} : {
|
|
@@ -2649,7 +2649,7 @@ const Hc = (e) => {
|
|
|
2649
2649
|
...Hc(e),
|
|
2650
2650
|
options: [e, t]
|
|
2651
2651
|
});
|
|
2652
|
-
var qc = "Arrow",
|
|
2652
|
+
var qc = "Arrow", Er = d.forwardRef((e, t) => {
|
|
2653
2653
|
const { children: n, width: o = 10, height: r = 5, ...i } = e;
|
|
2654
2654
|
return /* @__PURE__ */ f(
|
|
2655
2655
|
K.svg,
|
|
@@ -2664,8 +2664,8 @@ var qc = "Arrow", xr = d.forwardRef((e, t) => {
|
|
|
2664
2664
|
}
|
|
2665
2665
|
);
|
|
2666
2666
|
});
|
|
2667
|
-
|
|
2668
|
-
var Jc =
|
|
2667
|
+
Er.displayName = qc;
|
|
2668
|
+
var Jc = Er;
|
|
2669
2669
|
function Qc(e) {
|
|
2670
2670
|
const [t, n] = d.useState(void 0);
|
|
2671
2671
|
return re(() => {
|
|
@@ -2688,22 +2688,22 @@ function Qc(e) {
|
|
|
2688
2688
|
n(void 0);
|
|
2689
2689
|
}, [e]), t;
|
|
2690
2690
|
}
|
|
2691
|
-
var Qn = "Popper", [
|
|
2691
|
+
var Qn = "Popper", [Rr, rn] = Ze(Qn), [el, Ar] = Rr(Qn), Tr = (e) => {
|
|
2692
2692
|
const { __scopePopper: t, children: n } = e, [o, r] = d.useState(null);
|
|
2693
2693
|
return /* @__PURE__ */ f(el, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
2694
2694
|
};
|
|
2695
|
-
|
|
2696
|
-
var Pr = "PopperAnchor",
|
|
2695
|
+
Tr.displayName = Qn;
|
|
2696
|
+
var Pr = "PopperAnchor", Ir = d.forwardRef(
|
|
2697
2697
|
(e, t) => {
|
|
2698
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, i =
|
|
2698
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, i = Ar(Pr, n), s = d.useRef(null), a = J(t, s), c = d.useRef(null);
|
|
2699
2699
|
return d.useEffect(() => {
|
|
2700
2700
|
const u = c.current;
|
|
2701
2701
|
c.current = (o == null ? void 0 : o.current) || s.current, u !== c.current && i.onAnchorChange(c.current);
|
|
2702
2702
|
}), o ? null : /* @__PURE__ */ f(K.div, { ...r, ref: a });
|
|
2703
2703
|
}
|
|
2704
2704
|
);
|
|
2705
|
-
|
|
2706
|
-
var eo = "PopperContent", [tl, nl] =
|
|
2705
|
+
Ir.displayName = Pr;
|
|
2706
|
+
var eo = "PopperContent", [tl, nl] = Rr(eo), Mr = d.forwardRef(
|
|
2707
2707
|
(e, t) => {
|
|
2708
2708
|
var _, j, G, V, H, z;
|
|
2709
2709
|
const {
|
|
@@ -2721,12 +2721,12 @@ var eo = "PopperContent", [tl, nl] = Er(eo), Ir = d.forwardRef(
|
|
|
2721
2721
|
updatePositionStrategy: g = "optimized",
|
|
2722
2722
|
onPlaced: w,
|
|
2723
2723
|
...m
|
|
2724
|
-
} = e, v =
|
|
2725
|
-
padding:
|
|
2726
|
-
boundary:
|
|
2724
|
+
} = e, v = Ar(eo, n), [b, C] = d.useState(null), y = J(t, (te) => C(te)), [S, R] = d.useState(null), T = Qc(S), E = (T == null ? void 0 : T.width) ?? 0, x = (T == null ? void 0 : T.height) ?? 0, I = o + (i !== "center" ? "-" + i : ""), P = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, F = Array.isArray(u) ? u : [u], L = F.length > 0, $ = {
|
|
2725
|
+
padding: P,
|
|
2726
|
+
boundary: F.filter(rl),
|
|
2727
2727
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2728
2728
|
altBoundary: L
|
|
2729
|
-
}, { refs:
|
|
2729
|
+
}, { refs: D, floatingStyles: B, placement: O, isPositioned: W, middlewareData: M } = Uc({
|
|
2730
2730
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2731
2731
|
strategy: "fixed",
|
|
2732
2732
|
placement: I,
|
|
@@ -2756,7 +2756,7 @@ var eo = "PopperContent", [tl, nl] = Er(eo), Ir = d.forwardRef(
|
|
|
2756
2756
|
il({ arrowWidth: E, arrowHeight: x }),
|
|
2757
2757
|
h && Xc({ strategy: "referenceHidden", ...$ })
|
|
2758
2758
|
]
|
|
2759
|
-
}), [A, Y] =
|
|
2759
|
+
}), [A, Y] = Or(O), Q = Me(w);
|
|
2760
2760
|
re(() => {
|
|
2761
2761
|
W && (Q == null || Q());
|
|
2762
2762
|
}, [W, Q]);
|
|
@@ -2766,7 +2766,7 @@ var eo = "PopperContent", [tl, nl] = Er(eo), Ir = d.forwardRef(
|
|
|
2766
2766
|
}, [b]), /* @__PURE__ */ f(
|
|
2767
2767
|
"div",
|
|
2768
2768
|
{
|
|
2769
|
-
ref:
|
|
2769
|
+
ref: D.setFloating,
|
|
2770
2770
|
"data-radix-popper-content-wrapper": "",
|
|
2771
2771
|
style: {
|
|
2772
2772
|
...B,
|
|
@@ -2817,14 +2817,14 @@ var eo = "PopperContent", [tl, nl] = Er(eo), Ir = d.forwardRef(
|
|
|
2817
2817
|
);
|
|
2818
2818
|
}
|
|
2819
2819
|
);
|
|
2820
|
-
|
|
2821
|
-
var
|
|
2820
|
+
Mr.displayName = eo;
|
|
2821
|
+
var Nr = "PopperArrow", ol = {
|
|
2822
2822
|
top: "bottom",
|
|
2823
2823
|
right: "left",
|
|
2824
2824
|
bottom: "top",
|
|
2825
2825
|
left: "right"
|
|
2826
|
-
},
|
|
2827
|
-
const { __scopePopper: o, ...r } = t, i = nl(
|
|
2826
|
+
}, _r = d.forwardRef(function(t, n) {
|
|
2827
|
+
const { __scopePopper: o, ...r } = t, i = nl(Nr, o), s = ol[i.placedSide];
|
|
2828
2828
|
return (
|
|
2829
2829
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2830
2830
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -2868,7 +2868,7 @@ var Mr = "PopperArrow", ol = {
|
|
|
2868
2868
|
)
|
|
2869
2869
|
);
|
|
2870
2870
|
});
|
|
2871
|
-
|
|
2871
|
+
_r.displayName = Nr;
|
|
2872
2872
|
function rl(e) {
|
|
2873
2873
|
return e !== null;
|
|
2874
2874
|
}
|
|
@@ -2877,16 +2877,16 @@ var il = (e) => ({
|
|
|
2877
2877
|
options: e,
|
|
2878
2878
|
fn(t) {
|
|
2879
2879
|
var v, b, C;
|
|
2880
|
-
const { placement: n, rects: o, middlewareData: r } = t, s = ((v = r.arrow) == null ? void 0 : v.centerOffset) !== 0, a = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [u, l] =
|
|
2880
|
+
const { placement: n, rects: o, middlewareData: r } = t, s = ((v = r.arrow) == null ? void 0 : v.centerOffset) !== 0, a = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [u, l] = Or(n), p = { start: "0%", center: "50%", end: "100%" }[l], h = (((b = r.arrow) == null ? void 0 : b.x) ?? 0) + a / 2, g = (((C = r.arrow) == null ? void 0 : C.y) ?? 0) + c / 2;
|
|
2881
2881
|
let w = "", m = "";
|
|
2882
2882
|
return u === "bottom" ? (w = s ? p : `${h}px`, m = `${-c}px`) : u === "top" ? (w = s ? p : `${h}px`, m = `${o.floating.height + c}px`) : u === "right" ? (w = `${-c}px`, m = s ? p : `${g}px`) : u === "left" && (w = `${o.floating.width + c}px`, m = s ? p : `${g}px`), { data: { x: w, y: m } };
|
|
2883
2883
|
}
|
|
2884
2884
|
});
|
|
2885
|
-
function
|
|
2885
|
+
function Or(e) {
|
|
2886
2886
|
const [t, n = "center"] = e.split("-");
|
|
2887
2887
|
return [t, n];
|
|
2888
2888
|
}
|
|
2889
|
-
var
|
|
2889
|
+
var Dr = Tr, kr = Ir, Fr = Mr, Lr = _r, sl = "Portal", to = d.forwardRef((e, t) => {
|
|
2890
2890
|
var a;
|
|
2891
2891
|
const { container: n, ...o } = e, [r, i] = d.useState(!1);
|
|
2892
2892
|
re(() => i(!0), []);
|
|
@@ -2959,13 +2959,13 @@ function ll(e) {
|
|
|
2959
2959
|
let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2960
2960
|
return n ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2961
2961
|
}
|
|
2962
|
-
var En = "rovingFocusGroup.onEntryFocus", ul = { bubbles: !1, cancelable: !0 }, Et = "RovingFocusGroup", [kn,
|
|
2962
|
+
var En = "rovingFocusGroup.onEntryFocus", ul = { bubbles: !1, cancelable: !0 }, Et = "RovingFocusGroup", [kn, $r, dl] = Kn(Et), [fl, sn] = Ze(
|
|
2963
2963
|
Et,
|
|
2964
2964
|
[dl]
|
|
2965
|
-
), [pl, hl] = fl(Et),
|
|
2965
|
+
), [pl, hl] = fl(Et), Vr = d.forwardRef(
|
|
2966
2966
|
(e, t) => /* @__PURE__ */ f(kn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(kn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(ml, { ...e, ref: t }) }) })
|
|
2967
2967
|
);
|
|
2968
|
-
|
|
2968
|
+
Vr.displayName = Et;
|
|
2969
2969
|
var ml = d.forwardRef((e, t) => {
|
|
2970
2970
|
const {
|
|
2971
2971
|
__scopeRovingFocusGroup: n,
|
|
@@ -2983,7 +2983,7 @@ var ml = d.forwardRef((e, t) => {
|
|
|
2983
2983
|
defaultProp: a ?? null,
|
|
2984
2984
|
onChange: c,
|
|
2985
2985
|
caller: Et
|
|
2986
|
-
}), [b, C] = d.useState(!1), y = Me(u), S =
|
|
2986
|
+
}), [b, C] = d.useState(!1), y = Me(u), S = $r(n), R = d.useRef(!1), [T, E] = d.useState(0);
|
|
2987
2987
|
return d.useEffect(() => {
|
|
2988
2988
|
const x = h.current;
|
|
2989
2989
|
if (x)
|
|
@@ -3012,7 +3012,7 @@ var ml = d.forwardRef((e, t) => {
|
|
|
3012
3012
|
children: /* @__PURE__ */ f(
|
|
3013
3013
|
K.div,
|
|
3014
3014
|
{
|
|
3015
|
-
tabIndex: b ||
|
|
3015
|
+
tabIndex: b || T === 0 ? -1 : 0,
|
|
3016
3016
|
"data-orientation": o,
|
|
3017
3017
|
...p,
|
|
3018
3018
|
ref: g,
|
|
@@ -3023,12 +3023,12 @@ var ml = d.forwardRef((e, t) => {
|
|
|
3023
3023
|
onFocus: N(e.onFocus, (x) => {
|
|
3024
3024
|
const I = !R.current;
|
|
3025
3025
|
if (x.target === x.currentTarget && I && !b) {
|
|
3026
|
-
const
|
|
3027
|
-
if (x.currentTarget.dispatchEvent(
|
|
3028
|
-
const
|
|
3026
|
+
const P = new CustomEvent(En, ul);
|
|
3027
|
+
if (x.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
3028
|
+
const F = S().filter((O) => O.focusable), L = F.find((O) => O.active), $ = F.find((O) => O.id === m), B = [L, $, ...F].filter(
|
|
3029
3029
|
Boolean
|
|
3030
3030
|
).map((O) => O.ref.current);
|
|
3031
|
-
|
|
3031
|
+
Ur(B, l);
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
3034
|
R.current = !1;
|
|
@@ -3038,7 +3038,7 @@ var ml = d.forwardRef((e, t) => {
|
|
|
3038
3038
|
)
|
|
3039
3039
|
}
|
|
3040
3040
|
);
|
|
3041
|
-
}),
|
|
3041
|
+
}), Br = "RovingFocusGroupItem", Wr = d.forwardRef(
|
|
3042
3042
|
(e, t) => {
|
|
3043
3043
|
const {
|
|
3044
3044
|
__scopeRovingFocusGroup: n,
|
|
@@ -3047,7 +3047,7 @@ var ml = d.forwardRef((e, t) => {
|
|
|
3047
3047
|
tabStopId: i,
|
|
3048
3048
|
children: s,
|
|
3049
3049
|
...a
|
|
3050
|
-
} = e, c = ze(), u = i || c, l = hl(
|
|
3050
|
+
} = e, c = ze(), u = i || c, l = hl(Br, n), p = l.currentTabStopId === u, h = $r(n), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: m } = l;
|
|
3051
3051
|
return d.useEffect(() => {
|
|
3052
3052
|
if (o)
|
|
3053
3053
|
return g(), () => w();
|
|
@@ -3086,7 +3086,7 @@ var ml = d.forwardRef((e, t) => {
|
|
|
3086
3086
|
const S = y.indexOf(v.currentTarget);
|
|
3087
3087
|
y = l.loop ? yl(y, S + 1) : y.slice(S + 1);
|
|
3088
3088
|
}
|
|
3089
|
-
setTimeout(() =>
|
|
3089
|
+
setTimeout(() => Ur(y));
|
|
3090
3090
|
}
|
|
3091
3091
|
}),
|
|
3092
3092
|
children: typeof s == "function" ? s({ isCurrentTabStop: p, hasTabStop: m != null }) : s
|
|
@@ -3096,7 +3096,7 @@ var ml = d.forwardRef((e, t) => {
|
|
|
3096
3096
|
);
|
|
3097
3097
|
}
|
|
3098
3098
|
);
|
|
3099
|
-
|
|
3099
|
+
Wr.displayName = Br;
|
|
3100
3100
|
var gl = {
|
|
3101
3101
|
ArrowLeft: "prev",
|
|
3102
3102
|
ArrowUp: "prev",
|
|
@@ -3115,7 +3115,7 @@ function wl(e, t, n) {
|
|
|
3115
3115
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
3116
3116
|
return gl[o];
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function Ur(e, t = !1) {
|
|
3119
3119
|
const n = document.activeElement;
|
|
3120
3120
|
for (const o of e)
|
|
3121
3121
|
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
@@ -3123,18 +3123,18 @@ function Wr(e, t = !1) {
|
|
|
3123
3123
|
function yl(e, t) {
|
|
3124
3124
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
3125
3125
|
}
|
|
3126
|
-
var
|
|
3126
|
+
var Hr = Vr, Kr = Wr, bl = function(e) {
|
|
3127
3127
|
if (typeof document > "u")
|
|
3128
3128
|
return null;
|
|
3129
3129
|
var t = Array.isArray(e) ? e[0] : e;
|
|
3130
3130
|
return t.ownerDocument.body;
|
|
3131
|
-
}, et = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Nt = {}, Rn = 0,
|
|
3132
|
-
return e && (e.host ||
|
|
3131
|
+
}, et = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Nt = {}, Rn = 0, Gr = function(e) {
|
|
3132
|
+
return e && (e.host || Gr(e.parentNode));
|
|
3133
3133
|
}, Cl = function(e, t) {
|
|
3134
3134
|
return t.map(function(n) {
|
|
3135
3135
|
if (e.contains(n))
|
|
3136
3136
|
return n;
|
|
3137
|
-
var o =
|
|
3137
|
+
var o = Gr(n);
|
|
3138
3138
|
return o && e.contains(o) ? o : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
3139
3139
|
}).filter(function(n) {
|
|
3140
3140
|
return !!n;
|
|
@@ -3165,7 +3165,7 @@ var Ur = $r, Hr = Br, bl = function(e) {
|
|
|
3165
3165
|
et.set(p, h), i.set(p, g), h || (Mt.has(p) || p.removeAttribute(o), Mt.delete(p)), g || p.removeAttribute(n);
|
|
3166
3166
|
}), Rn--, Rn || (et = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Nt = {});
|
|
3167
3167
|
};
|
|
3168
|
-
},
|
|
3168
|
+
}, zr = function(e, t, n) {
|
|
3169
3169
|
n === void 0 && (n = "data-aria-hidden");
|
|
3170
3170
|
var o = Array.from(Array.isArray(e) ? e : [e]), r = bl(e);
|
|
3171
3171
|
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), Sl(o, r, n, "aria-hidden")) : function() {
|
|
@@ -3180,7 +3180,7 @@ var Ur = $r, Hr = Br, bl = function(e) {
|
|
|
3180
3180
|
return t;
|
|
3181
3181
|
}, Re.apply(this, arguments);
|
|
3182
3182
|
};
|
|
3183
|
-
function
|
|
3183
|
+
function jr(e, t) {
|
|
3184
3184
|
var n = {};
|
|
3185
3185
|
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
3186
3186
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3218,14 +3218,14 @@ function Al(e, t) {
|
|
|
3218
3218
|
})[0];
|
|
3219
3219
|
return n.callback = t, n.facade;
|
|
3220
3220
|
}
|
|
3221
|
-
var
|
|
3222
|
-
function
|
|
3221
|
+
var Tl = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Ho = /* @__PURE__ */ new WeakMap();
|
|
3222
|
+
function Pl(e, t) {
|
|
3223
3223
|
var n = Al(null, function(o) {
|
|
3224
3224
|
return e.forEach(function(r) {
|
|
3225
3225
|
return An(r, o);
|
|
3226
3226
|
});
|
|
3227
3227
|
});
|
|
3228
|
-
return
|
|
3228
|
+
return Tl(function() {
|
|
3229
3229
|
var o = Ho.get(n);
|
|
3230
3230
|
if (o) {
|
|
3231
3231
|
var r = new Set(o), i = new Set(e), s = n.current;
|
|
@@ -3301,8 +3301,8 @@ function Nl(e) {
|
|
|
3301
3301
|
var t = Ml(null);
|
|
3302
3302
|
return t.options = Re({ async: !0, ssr: !1 }, e), t;
|
|
3303
3303
|
}
|
|
3304
|
-
var
|
|
3305
|
-
var t = e.sideCar, n =
|
|
3304
|
+
var Yr = function(e) {
|
|
3305
|
+
var t = e.sideCar, n = jr(e, ["sideCar"]);
|
|
3306
3306
|
if (!t)
|
|
3307
3307
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
3308
3308
|
var o = t.read();
|
|
@@ -3310,22 +3310,22 @@ var jr = function(e) {
|
|
|
3310
3310
|
throw new Error("Sidecar medium not found");
|
|
3311
3311
|
return d.createElement(o, Re({}, n));
|
|
3312
3312
|
};
|
|
3313
|
-
|
|
3313
|
+
Yr.isSideCarExport = !0;
|
|
3314
3314
|
function _l(e, t) {
|
|
3315
|
-
return e.useMedium(t),
|
|
3315
|
+
return e.useMedium(t), Yr;
|
|
3316
3316
|
}
|
|
3317
|
-
var
|
|
3317
|
+
var Xr = Nl(), Tn = function() {
|
|
3318
3318
|
}, an = d.forwardRef(function(e, t) {
|
|
3319
3319
|
var n = d.useRef(null), o = d.useState({
|
|
3320
|
-
onScrollCapture:
|
|
3321
|
-
onWheelCapture:
|
|
3322
|
-
onTouchMoveCapture:
|
|
3323
|
-
}), r = o[0], i = o[1], s = e.forwardProps, a = e.children, c = e.className, u = e.removeScrollBar, l = e.enabled, p = e.shards, h = e.sideCar, g = e.noRelative, w = e.noIsolation, m = e.inert, v = e.allowPinchZoom, b = e.as, C = b === void 0 ? "div" : b, y = e.gapMode, S =
|
|
3320
|
+
onScrollCapture: Tn,
|
|
3321
|
+
onWheelCapture: Tn,
|
|
3322
|
+
onTouchMoveCapture: Tn
|
|
3323
|
+
}), r = o[0], i = o[1], s = e.forwardProps, a = e.children, c = e.className, u = e.removeScrollBar, l = e.enabled, p = e.shards, h = e.sideCar, g = e.noRelative, w = e.noIsolation, m = e.inert, v = e.allowPinchZoom, b = e.as, C = b === void 0 ? "div" : b, y = e.gapMode, S = jr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = h, T = Pl([n, t]), E = Re(Re({}, S), r);
|
|
3324
3324
|
return d.createElement(
|
|
3325
3325
|
d.Fragment,
|
|
3326
3326
|
null,
|
|
3327
|
-
l && d.createElement(R, { sideCar:
|
|
3328
|
-
s ? d.cloneElement(d.Children.only(a), Re(Re({}, E), { ref:
|
|
3327
|
+
l && d.createElement(R, { sideCar: Xr, removeScrollBar: u, shards: p, noRelative: g, noIsolation: w, inert: m, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: y }),
|
|
3328
|
+
s ? d.cloneElement(d.Children.only(a), Re(Re({}, E), { ref: T })) : d.createElement(C, Re({}, E, { className: c, ref: T }), a)
|
|
3329
3329
|
);
|
|
3330
3330
|
});
|
|
3331
3331
|
an.defaultProps = {
|
|
@@ -3375,7 +3375,7 @@ var Ll = function() {
|
|
|
3375
3375
|
};
|
|
3376
3376
|
}, [t && n]);
|
|
3377
3377
|
};
|
|
3378
|
-
},
|
|
3378
|
+
}, Zr = function() {
|
|
3379
3379
|
var e = $l(), t = function(n) {
|
|
3380
3380
|
var o = n.styles, r = n.dynamic;
|
|
3381
3381
|
return e(o, r), null;
|
|
@@ -3386,11 +3386,11 @@ var Ll = function() {
|
|
|
3386
3386
|
top: 0,
|
|
3387
3387
|
right: 0,
|
|
3388
3388
|
gap: 0
|
|
3389
|
-
},
|
|
3389
|
+
}, Pn = function(e) {
|
|
3390
3390
|
return parseInt(e || "", 10) || 0;
|
|
3391
3391
|
}, Bl = function(e) {
|
|
3392
3392
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3393
|
-
return [
|
|
3393
|
+
return [Pn(n), Pn(o), Pn(r)];
|
|
3394
3394
|
}, Wl = function(e) {
|
|
3395
3395
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
3396
3396
|
return Vl;
|
|
@@ -3401,7 +3401,7 @@ var Ll = function() {
|
|
|
3401
3401
|
right: t[2],
|
|
3402
3402
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
3403
3403
|
};
|
|
3404
|
-
}, Ul =
|
|
3404
|
+
}, Ul = Zr(), rt = "data-scroll-locked", Hl = function(e, t, n, o) {
|
|
3405
3405
|
var r = e.left, i = e.top, s = e.right, a = e.gap;
|
|
3406
3406
|
return n === void 0 && (n = "margin"), `
|
|
3407
3407
|
.`.concat(El, ` {
|
|
@@ -3476,7 +3476,7 @@ if (typeof window < "u")
|
|
|
3476
3476
|
}
|
|
3477
3477
|
var tt = Fn ? { passive: !1 } : !1, zl = function(e) {
|
|
3478
3478
|
return e.tagName === "TEXTAREA";
|
|
3479
|
-
},
|
|
3479
|
+
}, qr = function(e, t) {
|
|
3480
3480
|
if (!(e instanceof Element))
|
|
3481
3481
|
return !1;
|
|
3482
3482
|
var n = window.getComputedStyle(e);
|
|
@@ -3486,16 +3486,16 @@ var tt = Fn ? { passive: !1 } : !1, zl = function(e) {
|
|
|
3486
3486
|
!(n.overflowY === n.overflowX && !zl(e) && n[t] === "visible")
|
|
3487
3487
|
);
|
|
3488
3488
|
}, jl = function(e) {
|
|
3489
|
-
return
|
|
3489
|
+
return qr(e, "overflowY");
|
|
3490
3490
|
}, Yl = function(e) {
|
|
3491
|
-
return
|
|
3491
|
+
return qr(e, "overflowX");
|
|
3492
3492
|
}, Go = function(e, t) {
|
|
3493
3493
|
var n = t.ownerDocument, o = t;
|
|
3494
3494
|
do {
|
|
3495
3495
|
typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
|
|
3496
|
-
var r =
|
|
3496
|
+
var r = Jr(e, o);
|
|
3497
3497
|
if (r) {
|
|
3498
|
-
var i =
|
|
3498
|
+
var i = Qr(e, o), s = i[1], a = i[2];
|
|
3499
3499
|
if (s > a)
|
|
3500
3500
|
return !0;
|
|
3501
3501
|
}
|
|
@@ -3516,9 +3516,9 @@ var tt = Fn ? { passive: !1 } : !1, zl = function(e) {
|
|
|
3516
3516
|
n,
|
|
3517
3517
|
o
|
|
3518
3518
|
];
|
|
3519
|
-
}, qr = function(e, t) {
|
|
3520
|
-
return e === "v" ? jl(t) : Yl(t);
|
|
3521
3519
|
}, Jr = function(e, t) {
|
|
3520
|
+
return e === "v" ? jl(t) : Yl(t);
|
|
3521
|
+
}, Qr = function(e, t) {
|
|
3522
3522
|
return e === "v" ? Xl(t) : Zl(t);
|
|
3523
3523
|
}, ql = function(e, t) {
|
|
3524
3524
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
@@ -3527,8 +3527,8 @@ var tt = Fn ? { passive: !1 } : !1, zl = function(e) {
|
|
|
3527
3527
|
do {
|
|
3528
3528
|
if (!a)
|
|
3529
3529
|
break;
|
|
3530
|
-
var g =
|
|
3531
|
-
(w || b) &&
|
|
3530
|
+
var g = Qr(e, a), w = g[0], m = g[1], v = g[2], b = m - v - i * w;
|
|
3531
|
+
(w || b) && Jr(e, a) && (p += b, h += w);
|
|
3532
3532
|
var C = a.parentNode;
|
|
3533
3533
|
a = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
|
|
3534
3534
|
} while (
|
|
@@ -3552,7 +3552,7 @@ var tt = Fn ? { passive: !1 } : !1, zl = function(e) {
|
|
|
3552
3552
|
`);
|
|
3553
3553
|
}, tu = 0, nt = [];
|
|
3554
3554
|
function nu(e) {
|
|
3555
|
-
var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(tu++)[0], i = d.useState(
|
|
3555
|
+
var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(tu++)[0], i = d.useState(Zr)[0], s = d.useRef(e);
|
|
3556
3556
|
d.useEffect(function() {
|
|
3557
3557
|
s.current = e;
|
|
3558
3558
|
}, [e]), d.useEffect(function() {
|
|
@@ -3571,16 +3571,16 @@ function nu(e) {
|
|
|
3571
3571
|
var a = d.useCallback(function(m, v) {
|
|
3572
3572
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
3573
3573
|
return !s.current.allowPinchZoom;
|
|
3574
|
-
var b = Ot(m), C = n.current, y = "deltaX" in m ? m.deltaX : C[0] - b[0], S = "deltaY" in m ? m.deltaY : C[1] - b[1], R,
|
|
3575
|
-
if ("touches" in m && E === "h" &&
|
|
3574
|
+
var b = Ot(m), C = n.current, y = "deltaX" in m ? m.deltaX : C[0] - b[0], S = "deltaY" in m ? m.deltaY : C[1] - b[1], R, T = m.target, E = Math.abs(y) > Math.abs(S) ? "h" : "v";
|
|
3575
|
+
if ("touches" in m && E === "h" && T.type === "range")
|
|
3576
3576
|
return !1;
|
|
3577
|
-
var x = window.getSelection(), I = x && x.anchorNode,
|
|
3578
|
-
if (
|
|
3577
|
+
var x = window.getSelection(), I = x && x.anchorNode, P = I ? I === T || I.contains(T) : !1;
|
|
3578
|
+
if (P)
|
|
3579
3579
|
return !1;
|
|
3580
|
-
var
|
|
3581
|
-
if (!
|
|
3580
|
+
var F = Go(E, T);
|
|
3581
|
+
if (!F)
|
|
3582
3582
|
return !0;
|
|
3583
|
-
if (
|
|
3583
|
+
if (F ? R = E : (R = E === "v" ? "h" : "v", F = Go(E, T)), !F)
|
|
3584
3584
|
return !1;
|
|
3585
3585
|
if (!o.current && "changedTouches" in m && (y || S) && (o.current = R), !R)
|
|
3586
3586
|
return !0;
|
|
@@ -3641,22 +3641,22 @@ function ou(e) {
|
|
|
3641
3641
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3642
3642
|
return t;
|
|
3643
3643
|
}
|
|
3644
|
-
const ru = _l(
|
|
3644
|
+
const ru = _l(Xr, nu);
|
|
3645
3645
|
var no = d.forwardRef(function(e, t) {
|
|
3646
3646
|
return d.createElement(an, Re({}, e, { ref: t, sideCar: ru }));
|
|
3647
3647
|
});
|
|
3648
3648
|
no.classNames = an.classNames;
|
|
3649
|
-
var Ln = ["Enter", " "], iu = ["ArrowDown", "PageUp", "Home"],
|
|
3649
|
+
var Ln = ["Enter", " "], iu = ["ArrowDown", "PageUp", "Home"], ei = ["ArrowUp", "PageDown", "End"], su = [...iu, ...ei], au = {
|
|
3650
3650
|
ltr: [...Ln, "ArrowRight"],
|
|
3651
3651
|
rtl: [...Ln, "ArrowLeft"]
|
|
3652
3652
|
}, cu = {
|
|
3653
3653
|
ltr: ["ArrowLeft"],
|
|
3654
3654
|
rtl: ["ArrowRight"]
|
|
3655
|
-
}, Rt = "Menu", [Ct, lu, uu] = Kn(Rt), [qe,
|
|
3655
|
+
}, Rt = "Menu", [Ct, lu, uu] = Kn(Rt), [qe, ti] = Ze(Rt, [
|
|
3656
3656
|
uu,
|
|
3657
3657
|
rn,
|
|
3658
3658
|
sn
|
|
3659
|
-
]), cn = rn(),
|
|
3659
|
+
]), cn = rn(), ni = sn(), [du, Je] = qe(Rt), [fu, At] = qe(Rt), oi = (e) => {
|
|
3660
3660
|
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: s = !0 } = e, a = cn(t), [c, u] = d.useState(null), l = d.useRef(!1), p = Me(i), h = Qt(r);
|
|
3661
3661
|
return d.useEffect(() => {
|
|
3662
3662
|
const g = () => {
|
|
@@ -3665,7 +3665,7 @@ var Ln = ["Enter", " "], iu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
|
|
|
3665
3665
|
return document.addEventListener("keydown", g, { capture: !0 }), () => {
|
|
3666
3666
|
document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
|
|
3667
3667
|
};
|
|
3668
|
-
}, []), /* @__PURE__ */ f(
|
|
3668
|
+
}, []), /* @__PURE__ */ f(Dr, { ...a, children: /* @__PURE__ */ f(
|
|
3669
3669
|
du,
|
|
3670
3670
|
{
|
|
3671
3671
|
scope: t,
|
|
@@ -3687,24 +3687,24 @@ var Ln = ["Enter", " "], iu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
|
|
|
3687
3687
|
}
|
|
3688
3688
|
) });
|
|
3689
3689
|
};
|
|
3690
|
-
|
|
3690
|
+
oi.displayName = Rt;
|
|
3691
3691
|
var pu = "MenuAnchor", oo = d.forwardRef(
|
|
3692
3692
|
(e, t) => {
|
|
3693
3693
|
const { __scopeMenu: n, ...o } = e, r = cn(n);
|
|
3694
|
-
return /* @__PURE__ */ f(
|
|
3694
|
+
return /* @__PURE__ */ f(kr, { ...r, ...o, ref: t });
|
|
3695
3695
|
}
|
|
3696
3696
|
);
|
|
3697
3697
|
oo.displayName = pu;
|
|
3698
|
-
var ro = "MenuPortal", [hu,
|
|
3698
|
+
var ro = "MenuPortal", [hu, ri] = qe(ro, {
|
|
3699
3699
|
forceMount: void 0
|
|
3700
|
-
}),
|
|
3700
|
+
}), ii = (e) => {
|
|
3701
3701
|
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = Je(ro, t);
|
|
3702
3702
|
return /* @__PURE__ */ f(hu, { scope: t, forceMount: n, children: /* @__PURE__ */ f(ct, { present: n || i.open, children: /* @__PURE__ */ f(to, { asChild: !0, container: r, children: o }) }) });
|
|
3703
3703
|
};
|
|
3704
|
-
|
|
3705
|
-
var we = "MenuContent", [mu, io] = qe(we),
|
|
3704
|
+
ii.displayName = ro;
|
|
3705
|
+
var we = "MenuContent", [mu, io] = qe(we), si = d.forwardRef(
|
|
3706
3706
|
(e, t) => {
|
|
3707
|
-
const n =
|
|
3707
|
+
const n = ri(we, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Je(we, e.__scopeMenu), s = At(we, e.__scopeMenu);
|
|
3708
3708
|
return /* @__PURE__ */ f(Ct.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(ct, { present: o || i.open, children: /* @__PURE__ */ f(Ct.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ f(gu, { ...r, ref: t }) : /* @__PURE__ */ f(vu, { ...r, ref: t }) }) }) });
|
|
3709
3709
|
}
|
|
3710
3710
|
), gu = d.forwardRef(
|
|
@@ -3712,7 +3712,7 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
|
|
|
3712
3712
|
const n = Je(we, e.__scopeMenu), o = d.useRef(null), r = J(t, o);
|
|
3713
3713
|
return d.useEffect(() => {
|
|
3714
3714
|
const i = o.current;
|
|
3715
|
-
if (i) return
|
|
3715
|
+
if (i) return zr(i);
|
|
3716
3716
|
}, []), /* @__PURE__ */ f(
|
|
3717
3717
|
so,
|
|
3718
3718
|
{
|
|
@@ -3760,14 +3760,14 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
|
|
|
3760
3760
|
onDismiss: g,
|
|
3761
3761
|
disableOutsideScroll: w,
|
|
3762
3762
|
...m
|
|
3763
|
-
} = e, v = Je(we, n), b = At(we, n), C = cn(n), y =
|
|
3763
|
+
} = e, v = Je(we, n), b = At(we, n), C = cn(n), y = ni(n), S = lu(n), [R, T] = d.useState(null), E = d.useRef(null), x = J(t, E, v.onContentChange), I = d.useRef(0), P = d.useRef(""), F = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), D = d.useRef(0), B = w ? no : d.Fragment, O = w ? { as: wu, allowPinchZoom: !0 } : void 0, W = (A) => {
|
|
3764
3764
|
var _, j;
|
|
3765
|
-
const Y =
|
|
3765
|
+
const Y = P.current + A, Q = S().filter((G) => !G.disabled), oe = document.activeElement, ye = (_ = Q.find((G) => G.ref.current === oe)) == null ? void 0 : _.textValue, de = Q.map((G) => G.textValue), be = Mu(de, Y, ye), ie = (j = Q.find((G) => G.textValue === be)) == null ? void 0 : j.ref.current;
|
|
3766
3766
|
(function G(V) {
|
|
3767
|
-
|
|
3767
|
+
P.current = V, window.clearTimeout(I.current), V !== "" && (I.current = window.setTimeout(() => G(""), 1e3));
|
|
3768
3768
|
})(Y), ie && setTimeout(() => ie.focus());
|
|
3769
3769
|
};
|
|
3770
|
-
d.useEffect(() => () => window.clearTimeout(I.current), []),
|
|
3770
|
+
d.useEffect(() => () => window.clearTimeout(I.current), []), dr();
|
|
3771
3771
|
const M = d.useCallback((A) => {
|
|
3772
3772
|
var Q, oe;
|
|
3773
3773
|
return $.current === ((Q = L.current) == null ? void 0 : Q.side) && _u(A, (oe = L.current) == null ? void 0 : oe.area);
|
|
@@ -3776,7 +3776,7 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
|
|
|
3776
3776
|
mu,
|
|
3777
3777
|
{
|
|
3778
3778
|
scope: n,
|
|
3779
|
-
searchRef:
|
|
3779
|
+
searchRef: P,
|
|
3780
3780
|
onItemEnter: d.useCallback(
|
|
3781
3781
|
(A) => {
|
|
3782
3782
|
M(A) && A.preventDefault();
|
|
@@ -3786,7 +3786,7 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
|
|
|
3786
3786
|
onItemLeave: d.useCallback(
|
|
3787
3787
|
(A) => {
|
|
3788
3788
|
var Y;
|
|
3789
|
-
M(A) || ((Y = E.current) == null || Y.focus(),
|
|
3789
|
+
M(A) || ((Y = E.current) == null || Y.focus(), T(null));
|
|
3790
3790
|
},
|
|
3791
3791
|
[M]
|
|
3792
3792
|
),
|
|
@@ -3796,7 +3796,7 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
|
|
|
3796
3796
|
},
|
|
3797
3797
|
[M]
|
|
3798
3798
|
),
|
|
3799
|
-
pointerGraceTimerRef:
|
|
3799
|
+
pointerGraceTimerRef: F,
|
|
3800
3800
|
onPointerGraceIntentChange: d.useCallback((A) => {
|
|
3801
3801
|
L.current = A;
|
|
3802
3802
|
}, []),
|
|
@@ -3821,7 +3821,7 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
|
|
|
3821
3821
|
onInteractOutside: h,
|
|
3822
3822
|
onDismiss: g,
|
|
3823
3823
|
children: /* @__PURE__ */ f(
|
|
3824
|
-
|
|
3824
|
+
Hr,
|
|
3825
3825
|
{
|
|
3826
3826
|
asChild: !0,
|
|
3827
3827
|
...y,
|
|
@@ -3829,17 +3829,17 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
|
|
|
3829
3829
|
orientation: "vertical",
|
|
3830
3830
|
loop: o,
|
|
3831
3831
|
currentTabStopId: R,
|
|
3832
|
-
onCurrentTabStopIdChange:
|
|
3832
|
+
onCurrentTabStopIdChange: T,
|
|
3833
3833
|
onEntryFocus: N(c, (A) => {
|
|
3834
3834
|
b.isUsingKeyboardRef.current || A.preventDefault();
|
|
3835
3835
|
}),
|
|
3836
3836
|
preventScrollOnEntryFocus: !0,
|
|
3837
3837
|
children: /* @__PURE__ */ f(
|
|
3838
|
-
|
|
3838
|
+
Fr,
|
|
3839
3839
|
{
|
|
3840
3840
|
role: "menu",
|
|
3841
3841
|
"aria-orientation": "vertical",
|
|
3842
|
-
"data-state":
|
|
3842
|
+
"data-state": Si(v.open),
|
|
3843
3843
|
"data-radix-menu-content": "",
|
|
3844
3844
|
dir: b.dir,
|
|
3845
3845
|
...C,
|
|
@@ -3853,18 +3853,18 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
|
|
|
3853
3853
|
if (A.target !== de || !su.includes(A.key)) return;
|
|
3854
3854
|
A.preventDefault();
|
|
3855
3855
|
const ie = S().filter((_) => !_.disabled).map((_) => _.ref.current);
|
|
3856
|
-
|
|
3856
|
+
ei.includes(A.key) && ie.reverse(), Pu(ie);
|
|
3857
3857
|
}),
|
|
3858
3858
|
onBlur: N(e.onBlur, (A) => {
|
|
3859
|
-
A.currentTarget.contains(A.target) || (window.clearTimeout(I.current),
|
|
3859
|
+
A.currentTarget.contains(A.target) || (window.clearTimeout(I.current), P.current = "");
|
|
3860
3860
|
}),
|
|
3861
3861
|
onPointerMove: N(
|
|
3862
3862
|
e.onPointerMove,
|
|
3863
3863
|
St((A) => {
|
|
3864
|
-
const Y = A.target, Q =
|
|
3864
|
+
const Y = A.target, Q = D.current !== A.clientX;
|
|
3865
3865
|
if (A.currentTarget.contains(Y) && Q) {
|
|
3866
|
-
const oe = A.clientX >
|
|
3867
|
-
$.current = oe,
|
|
3866
|
+
const oe = A.clientX > D.current ? "right" : "left";
|
|
3867
|
+
$.current = oe, D.current = A.clientX;
|
|
3868
3868
|
}
|
|
3869
3869
|
})
|
|
3870
3870
|
)
|
|
@@ -3880,7 +3880,7 @@ var we = "MenuContent", [mu, io] = qe(we), ii = d.forwardRef(
|
|
|
3880
3880
|
);
|
|
3881
3881
|
}
|
|
3882
3882
|
);
|
|
3883
|
-
|
|
3883
|
+
si.displayName = we;
|
|
3884
3884
|
var yu = "MenuGroup", ao = d.forwardRef(
|
|
3885
3885
|
(e, t) => {
|
|
3886
3886
|
const { __scopeMenu: n, ...o } = e;
|
|
@@ -3888,24 +3888,24 @@ var yu = "MenuGroup", ao = d.forwardRef(
|
|
|
3888
3888
|
}
|
|
3889
3889
|
);
|
|
3890
3890
|
ao.displayName = yu;
|
|
3891
|
-
var bu = "MenuLabel",
|
|
3891
|
+
var bu = "MenuLabel", ai = d.forwardRef(
|
|
3892
3892
|
(e, t) => {
|
|
3893
3893
|
const { __scopeMenu: n, ...o } = e;
|
|
3894
3894
|
return /* @__PURE__ */ f(K.div, { ...o, ref: t });
|
|
3895
3895
|
}
|
|
3896
3896
|
);
|
|
3897
|
-
|
|
3897
|
+
ai.displayName = bu;
|
|
3898
3898
|
var Gt = "MenuItem", Yo = "menu.itemSelect", ln = d.forwardRef(
|
|
3899
3899
|
(e, t) => {
|
|
3900
3900
|
const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), s = At(Gt, e.__scopeMenu), a = io(Gt, e.__scopeMenu), c = J(t, i), u = d.useRef(!1), l = () => {
|
|
3901
3901
|
const p = i.current;
|
|
3902
3902
|
if (!n && p) {
|
|
3903
3903
|
const h = new CustomEvent(Yo, { bubbles: !0, cancelable: !0 });
|
|
3904
|
-
p.addEventListener(Yo, (g) => o == null ? void 0 : o(g), { once: !0 }),
|
|
3904
|
+
p.addEventListener(Yo, (g) => o == null ? void 0 : o(g), { once: !0 }), cr(p, h), h.defaultPrevented ? u.current = !1 : s.onClose();
|
|
3905
3905
|
}
|
|
3906
3906
|
};
|
|
3907
3907
|
return /* @__PURE__ */ f(
|
|
3908
|
-
|
|
3908
|
+
ci,
|
|
3909
3909
|
{
|
|
3910
3910
|
...r,
|
|
3911
3911
|
ref: c,
|
|
@@ -3928,9 +3928,9 @@ var Gt = "MenuItem", Yo = "menu.itemSelect", ln = d.forwardRef(
|
|
|
3928
3928
|
}
|
|
3929
3929
|
);
|
|
3930
3930
|
ln.displayName = Gt;
|
|
3931
|
-
var
|
|
3931
|
+
var ci = d.forwardRef(
|
|
3932
3932
|
(e, t) => {
|
|
3933
|
-
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, s = io(Gt, n), a =
|
|
3933
|
+
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, s = io(Gt, n), a = ni(n), c = d.useRef(null), u = J(t, c), [l, p] = d.useState(!1), [h, g] = d.useState("");
|
|
3934
3934
|
return d.useEffect(() => {
|
|
3935
3935
|
const w = c.current;
|
|
3936
3936
|
w && g((w.textContent ?? "").trim());
|
|
@@ -3940,7 +3940,7 @@ var ai = d.forwardRef(
|
|
|
3940
3940
|
scope: n,
|
|
3941
3941
|
disabled: o,
|
|
3942
3942
|
textValue: r ?? h,
|
|
3943
|
-
children: /* @__PURE__ */ f(
|
|
3943
|
+
children: /* @__PURE__ */ f(Kr, { asChild: !0, ...a, focusable: !o, children: /* @__PURE__ */ f(
|
|
3944
3944
|
K.div,
|
|
3945
3945
|
{
|
|
3946
3946
|
role: "menuitem",
|
|
@@ -3966,10 +3966,10 @@ var ai = d.forwardRef(
|
|
|
3966
3966
|
}
|
|
3967
3967
|
);
|
|
3968
3968
|
}
|
|
3969
|
-
), Cu = "MenuCheckboxItem",
|
|
3969
|
+
), Cu = "MenuCheckboxItem", li = d.forwardRef(
|
|
3970
3970
|
(e, t) => {
|
|
3971
3971
|
const { checked: n = !1, onCheckedChange: o, ...r } = e;
|
|
3972
|
-
return /* @__PURE__ */ f(
|
|
3972
|
+
return /* @__PURE__ */ f(hi, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ f(
|
|
3973
3973
|
ln,
|
|
3974
3974
|
{
|
|
3975
3975
|
role: "menuitemcheckbox",
|
|
@@ -3986,22 +3986,22 @@ var ai = d.forwardRef(
|
|
|
3986
3986
|
) });
|
|
3987
3987
|
}
|
|
3988
3988
|
);
|
|
3989
|
-
|
|
3990
|
-
var
|
|
3991
|
-
|
|
3989
|
+
li.displayName = Cu;
|
|
3990
|
+
var ui = "MenuRadioGroup", [Su, xu] = qe(
|
|
3991
|
+
ui,
|
|
3992
3992
|
{ value: void 0, onValueChange: () => {
|
|
3993
3993
|
} }
|
|
3994
|
-
),
|
|
3994
|
+
), di = d.forwardRef(
|
|
3995
3995
|
(e, t) => {
|
|
3996
3996
|
const { value: n, onValueChange: o, ...r } = e, i = Me(o);
|
|
3997
3997
|
return /* @__PURE__ */ f(Su, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ f(ao, { ...r, ref: t }) });
|
|
3998
3998
|
}
|
|
3999
3999
|
);
|
|
4000
|
-
|
|
4001
|
-
var
|
|
4000
|
+
di.displayName = ui;
|
|
4001
|
+
var fi = "MenuRadioItem", pi = d.forwardRef(
|
|
4002
4002
|
(e, t) => {
|
|
4003
|
-
const { value: n, ...o } = e, r = xu(
|
|
4004
|
-
return /* @__PURE__ */ f(
|
|
4003
|
+
const { value: n, ...o } = e, r = xu(fi, e.__scopeMenu), i = n === r.value;
|
|
4004
|
+
return /* @__PURE__ */ f(hi, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ f(
|
|
4005
4005
|
ln,
|
|
4006
4006
|
{
|
|
4007
4007
|
role: "menuitemradio",
|
|
@@ -4021,11 +4021,11 @@ var di = "MenuRadioItem", fi = d.forwardRef(
|
|
|
4021
4021
|
) });
|
|
4022
4022
|
}
|
|
4023
4023
|
);
|
|
4024
|
-
|
|
4025
|
-
var co = "MenuItemIndicator", [
|
|
4024
|
+
pi.displayName = fi;
|
|
4025
|
+
var co = "MenuItemIndicator", [hi, Eu] = qe(
|
|
4026
4026
|
co,
|
|
4027
4027
|
{ checked: !1 }
|
|
4028
|
-
),
|
|
4028
|
+
), mi = d.forwardRef(
|
|
4029
4029
|
(e, t) => {
|
|
4030
4030
|
const { __scopeMenu: n, forceMount: o, ...r } = e, i = Eu(co, n);
|
|
4031
4031
|
return /* @__PURE__ */ f(
|
|
@@ -4044,8 +4044,8 @@ var co = "MenuItemIndicator", [pi, Eu] = qe(
|
|
|
4044
4044
|
);
|
|
4045
4045
|
}
|
|
4046
4046
|
);
|
|
4047
|
-
|
|
4048
|
-
var Ru = "MenuSeparator",
|
|
4047
|
+
mi.displayName = co;
|
|
4048
|
+
var Ru = "MenuSeparator", gi = d.forwardRef(
|
|
4049
4049
|
(e, t) => {
|
|
4050
4050
|
const { __scopeMenu: n, ...o } = e;
|
|
4051
4051
|
return /* @__PURE__ */ f(
|
|
@@ -4059,17 +4059,17 @@ var Ru = "MenuSeparator", mi = d.forwardRef(
|
|
|
4059
4059
|
);
|
|
4060
4060
|
}
|
|
4061
4061
|
);
|
|
4062
|
-
|
|
4063
|
-
var Au = "MenuArrow",
|
|
4062
|
+
gi.displayName = Ru;
|
|
4063
|
+
var Au = "MenuArrow", vi = d.forwardRef(
|
|
4064
4064
|
(e, t) => {
|
|
4065
4065
|
const { __scopeMenu: n, ...o } = e, r = cn(n);
|
|
4066
|
-
return /* @__PURE__ */ f(
|
|
4066
|
+
return /* @__PURE__ */ f(Lr, { ...r, ...o, ref: t });
|
|
4067
4067
|
}
|
|
4068
4068
|
);
|
|
4069
|
-
|
|
4070
|
-
var
|
|
4069
|
+
vi.displayName = Au;
|
|
4070
|
+
var Tu = "MenuSub", [rp, wi] = qe(Tu), pt = "MenuSubTrigger", yi = d.forwardRef(
|
|
4071
4071
|
(e, t) => {
|
|
4072
|
-
const n = Je(pt, e.__scopeMenu), o = At(pt, e.__scopeMenu), r =
|
|
4072
|
+
const n = Je(pt, e.__scopeMenu), o = At(pt, e.__scopeMenu), r = wi(pt, e.__scopeMenu), i = io(pt, e.__scopeMenu), s = d.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: c } = i, u = { __scopeMenu: e.__scopeMenu }, l = d.useCallback(() => {
|
|
4073
4073
|
s.current && window.clearTimeout(s.current), s.current = null;
|
|
4074
4074
|
}, []);
|
|
4075
4075
|
return d.useEffect(() => l, [l]), d.useEffect(() => {
|
|
@@ -4078,13 +4078,13 @@ var Pu = "MenuSub", [op, vi] = qe(Pu), pt = "MenuSubTrigger", wi = d.forwardRef(
|
|
|
4078
4078
|
window.clearTimeout(p), c(null);
|
|
4079
4079
|
};
|
|
4080
4080
|
}, [a, c]), /* @__PURE__ */ f(oo, { asChild: !0, ...u, children: /* @__PURE__ */ f(
|
|
4081
|
-
|
|
4081
|
+
ci,
|
|
4082
4082
|
{
|
|
4083
4083
|
id: r.triggerId,
|
|
4084
4084
|
"aria-haspopup": "menu",
|
|
4085
4085
|
"aria-expanded": n.open,
|
|
4086
4086
|
"aria-controls": r.contentId,
|
|
4087
|
-
"data-state":
|
|
4087
|
+
"data-state": Si(n.open),
|
|
4088
4088
|
...e,
|
|
4089
4089
|
ref: Jt(t, r.onTriggerChange),
|
|
4090
4090
|
onClick: (p) => {
|
|
@@ -4137,10 +4137,10 @@ var Pu = "MenuSub", [op, vi] = qe(Pu), pt = "MenuSubTrigger", wi = d.forwardRef(
|
|
|
4137
4137
|
) });
|
|
4138
4138
|
}
|
|
4139
4139
|
);
|
|
4140
|
-
|
|
4141
|
-
var
|
|
4140
|
+
yi.displayName = pt;
|
|
4141
|
+
var bi = "MenuSubContent", Ci = d.forwardRef(
|
|
4142
4142
|
(e, t) => {
|
|
4143
|
-
const n =
|
|
4143
|
+
const n = ri(we, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Je(we, e.__scopeMenu), s = At(we, e.__scopeMenu), a = wi(bi, e.__scopeMenu), c = d.useRef(null), u = J(t, c);
|
|
4144
4144
|
return /* @__PURE__ */ f(Ct.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(ct, { present: o || i.open, children: /* @__PURE__ */ f(Ct.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(
|
|
4145
4145
|
so,
|
|
4146
4146
|
{
|
|
@@ -4173,8 +4173,8 @@ var yi = "MenuSubContent", bi = d.forwardRef(
|
|
|
4173
4173
|
) }) }) });
|
|
4174
4174
|
}
|
|
4175
4175
|
);
|
|
4176
|
-
|
|
4177
|
-
function
|
|
4176
|
+
Ci.displayName = bi;
|
|
4177
|
+
function Si(e) {
|
|
4178
4178
|
return e ? "open" : "closed";
|
|
4179
4179
|
}
|
|
4180
4180
|
function zt(e) {
|
|
@@ -4183,7 +4183,7 @@ function zt(e) {
|
|
|
4183
4183
|
function lo(e) {
|
|
4184
4184
|
return zt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
4185
4185
|
}
|
|
4186
|
-
function
|
|
4186
|
+
function Pu(e) {
|
|
4187
4187
|
const t = document.activeElement;
|
|
4188
4188
|
for (const n of e)
|
|
4189
4189
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
@@ -4217,10 +4217,10 @@ function _u(e, t) {
|
|
|
4217
4217
|
function St(e) {
|
|
4218
4218
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
4219
4219
|
}
|
|
4220
|
-
var Ou =
|
|
4220
|
+
var Ou = oi, Du = oo, ku = ii, Fu = si, Lu = ao, $u = ai, Vu = ln, Bu = li, Wu = di, Uu = pi, Hu = mi, Ku = gi, Gu = vi, zu = yi, ju = Ci, un = "DropdownMenu", [Yu] = Ze(
|
|
4221
4221
|
un,
|
|
4222
|
-
[
|
|
4223
|
-
), ue =
|
|
4222
|
+
[ti]
|
|
4223
|
+
), ue = ti(), [Xu, xi] = Yu(un), Ei = (e) => {
|
|
4224
4224
|
const {
|
|
4225
4225
|
__scopeDropdownMenu: t,
|
|
4226
4226
|
children: n,
|
|
@@ -4250,10 +4250,10 @@ var Ou = ni, Du = oo, ku = ri, Fu = ii, Lu = ao, $u = si, Vu = ln, Bu = ci, Wu =
|
|
|
4250
4250
|
}
|
|
4251
4251
|
);
|
|
4252
4252
|
};
|
|
4253
|
-
|
|
4254
|
-
var
|
|
4253
|
+
Ei.displayName = un;
|
|
4254
|
+
var Ri = "DropdownMenuTrigger", Ai = d.forwardRef(
|
|
4255
4255
|
(e, t) => {
|
|
4256
|
-
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i =
|
|
4256
|
+
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = xi(Ri, n), s = ue(n);
|
|
4257
4257
|
return /* @__PURE__ */ f(Du, { asChild: !0, ...s, children: /* @__PURE__ */ f(
|
|
4258
4258
|
K.button,
|
|
4259
4259
|
{
|
|
@@ -4277,15 +4277,15 @@ var Ei = "DropdownMenuTrigger", Ri = d.forwardRef(
|
|
|
4277
4277
|
) });
|
|
4278
4278
|
}
|
|
4279
4279
|
);
|
|
4280
|
-
|
|
4281
|
-
var Zu = "DropdownMenuPortal",
|
|
4280
|
+
Ai.displayName = Ri;
|
|
4281
|
+
var Zu = "DropdownMenuPortal", Ti = (e) => {
|
|
4282
4282
|
const { __scopeDropdownMenu: t, ...n } = e, o = ue(t);
|
|
4283
4283
|
return /* @__PURE__ */ f(ku, { ...o, ...n });
|
|
4284
4284
|
};
|
|
4285
|
-
|
|
4286
|
-
var Pi = "DropdownMenuContent",
|
|
4285
|
+
Ti.displayName = Zu;
|
|
4286
|
+
var Pi = "DropdownMenuContent", Ii = d.forwardRef(
|
|
4287
4287
|
(e, t) => {
|
|
4288
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4288
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = xi(Pi, n), i = ue(n), s = d.useRef(!1);
|
|
4289
4289
|
return /* @__PURE__ */ f(
|
|
4290
4290
|
Fu,
|
|
4291
4291
|
{
|
|
@@ -4314,7 +4314,7 @@ var Pi = "DropdownMenuContent", Ti = d.forwardRef(
|
|
|
4314
4314
|
);
|
|
4315
4315
|
}
|
|
4316
4316
|
);
|
|
4317
|
-
|
|
4317
|
+
Ii.displayName = Pi;
|
|
4318
4318
|
var qu = "DropdownMenuGroup", Ju = d.forwardRef(
|
|
4319
4319
|
(e, t) => {
|
|
4320
4320
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
@@ -4329,18 +4329,18 @@ var Qu = "DropdownMenuLabel", ed = d.forwardRef(
|
|
|
4329
4329
|
}
|
|
4330
4330
|
);
|
|
4331
4331
|
ed.displayName = Qu;
|
|
4332
|
-
var td = "DropdownMenuItem",
|
|
4332
|
+
var td = "DropdownMenuItem", Mi = d.forwardRef(
|
|
4333
4333
|
(e, t) => {
|
|
4334
4334
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4335
4335
|
return /* @__PURE__ */ f(Vu, { ...r, ...o, ref: t });
|
|
4336
4336
|
}
|
|
4337
4337
|
);
|
|
4338
|
-
|
|
4339
|
-
var nd = "DropdownMenuCheckboxItem",
|
|
4338
|
+
Mi.displayName = td;
|
|
4339
|
+
var nd = "DropdownMenuCheckboxItem", Ni = d.forwardRef((e, t) => {
|
|
4340
4340
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4341
4341
|
return /* @__PURE__ */ f(Bu, { ...r, ...o, ref: t });
|
|
4342
4342
|
});
|
|
4343
|
-
|
|
4343
|
+
Ni.displayName = nd;
|
|
4344
4344
|
var od = "DropdownMenuRadioGroup", rd = d.forwardRef((e, t) => {
|
|
4345
4345
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4346
4346
|
return /* @__PURE__ */ f(Wu, { ...r, ...o, ref: t });
|
|
@@ -4351,16 +4351,16 @@ var id = "DropdownMenuRadioItem", sd = d.forwardRef((e, t) => {
|
|
|
4351
4351
|
return /* @__PURE__ */ f(Uu, { ...r, ...o, ref: t });
|
|
4352
4352
|
});
|
|
4353
4353
|
sd.displayName = id;
|
|
4354
|
-
var ad = "DropdownMenuItemIndicator",
|
|
4354
|
+
var ad = "DropdownMenuItemIndicator", _i = d.forwardRef((e, t) => {
|
|
4355
4355
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4356
4356
|
return /* @__PURE__ */ f(Hu, { ...r, ...o, ref: t });
|
|
4357
4357
|
});
|
|
4358
|
-
|
|
4359
|
-
var cd = "DropdownMenuSeparator",
|
|
4358
|
+
_i.displayName = ad;
|
|
4359
|
+
var cd = "DropdownMenuSeparator", Oi = d.forwardRef((e, t) => {
|
|
4360
4360
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4361
4361
|
return /* @__PURE__ */ f(Ku, { ...r, ...o, ref: t });
|
|
4362
4362
|
});
|
|
4363
|
-
|
|
4363
|
+
Oi.displayName = cd;
|
|
4364
4364
|
var ld = "DropdownMenuArrow", ud = d.forwardRef(
|
|
4365
4365
|
(e, t) => {
|
|
4366
4366
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
@@ -4393,7 +4393,7 @@ var pd = "DropdownMenuSubContent", hd = d.forwardRef((e, t) => {
|
|
|
4393
4393
|
);
|
|
4394
4394
|
});
|
|
4395
4395
|
hd.displayName = pd;
|
|
4396
|
-
var md =
|
|
4396
|
+
var md = Ei, gd = Ai, vd = Ti, wd = Ii, yd = Mi, bd = Ni, Cd = _i, Sd = Oi;
|
|
4397
4397
|
function xd({ children: e, modal: t = !1 }) {
|
|
4398
4398
|
return /* @__PURE__ */ f(md, { modal: t, children: e });
|
|
4399
4399
|
}
|
|
@@ -4423,21 +4423,21 @@ function Ad({ onClick: e, disabled: t, className: n, asChild: o, children: r })
|
|
|
4423
4423
|
}
|
|
4424
4424
|
);
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4427
|
-
return /* @__PURE__ */
|
|
4426
|
+
function Td({ checked: e, onCheckedChange: t, className: n, children: o }) {
|
|
4427
|
+
return /* @__PURE__ */ k(
|
|
4428
4428
|
bd,
|
|
4429
4429
|
{
|
|
4430
4430
|
checked: e,
|
|
4431
4431
|
onCheckedChange: t,
|
|
4432
4432
|
className: q("snow-dropdown-checkbox-item", n),
|
|
4433
4433
|
children: [
|
|
4434
|
-
/* @__PURE__ */ f("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ f(Cd, { children: /* @__PURE__ */ f(
|
|
4434
|
+
/* @__PURE__ */ f("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ f(Cd, { children: /* @__PURE__ */ f(tr, { className: "snow-size-4" }) }) }),
|
|
4435
4435
|
o
|
|
4436
4436
|
]
|
|
4437
4437
|
}
|
|
4438
4438
|
);
|
|
4439
4439
|
}
|
|
4440
|
-
function
|
|
4440
|
+
function Pd() {
|
|
4441
4441
|
return /* @__PURE__ */ f(Sd, { className: "snow-dropdown-separator" });
|
|
4442
4442
|
}
|
|
4443
4443
|
const ne = {
|
|
@@ -4445,9 +4445,9 @@ const ne = {
|
|
|
4445
4445
|
Trigger: Ed,
|
|
4446
4446
|
Content: Rd,
|
|
4447
4447
|
Item: Ad,
|
|
4448
|
-
CheckboxItem:
|
|
4449
|
-
Separator:
|
|
4450
|
-
},
|
|
4448
|
+
CheckboxItem: Td,
|
|
4449
|
+
Separator: Pd
|
|
4450
|
+
}, Di = ({ to: e, children: t, className: n, target: o, rel: r, disabled: i }) => /* @__PURE__ */ f(
|
|
4451
4451
|
"a",
|
|
4452
4452
|
{
|
|
4453
4453
|
href: i ? void 0 : e,
|
|
@@ -4459,18 +4459,18 @@ const ne = {
|
|
|
4459
4459
|
children: t
|
|
4460
4460
|
}
|
|
4461
4461
|
);
|
|
4462
|
-
let uo =
|
|
4462
|
+
let uo = Di;
|
|
4463
4463
|
const Id = (e) => {
|
|
4464
4464
|
uo = e;
|
|
4465
4465
|
}, Md = () => uo, Nd = () => {
|
|
4466
|
-
uo =
|
|
4466
|
+
uo = Di;
|
|
4467
4467
|
};
|
|
4468
4468
|
let fo = {};
|
|
4469
4469
|
const _d = (e) => {
|
|
4470
4470
|
fo = e;
|
|
4471
4471
|
}, Od = () => fo, Dd = () => {
|
|
4472
4472
|
fo = {};
|
|
4473
|
-
},
|
|
4473
|
+
}, ki = {
|
|
4474
4474
|
"dataTable.search": "Search...",
|
|
4475
4475
|
"dataTable.elements": "elements",
|
|
4476
4476
|
"dataTable.paginationSize": "per page",
|
|
@@ -4488,20 +4488,20 @@ const kd = (e) => {
|
|
|
4488
4488
|
if (t !== e)
|
|
4489
4489
|
return t;
|
|
4490
4490
|
}
|
|
4491
|
-
return
|
|
4491
|
+
return ki[e] ?? e;
|
|
4492
4492
|
}, Fd = (e) => {
|
|
4493
4493
|
jt = e;
|
|
4494
4494
|
}, lt = () => kd, Ld = () => {
|
|
4495
4495
|
jt = null;
|
|
4496
4496
|
}, $d = (e) => {
|
|
4497
|
-
Object.assign(
|
|
4497
|
+
Object.assign(ki, e);
|
|
4498
4498
|
};
|
|
4499
4499
|
let Yt = !1;
|
|
4500
|
-
const
|
|
4500
|
+
const ip = (e) => {
|
|
4501
4501
|
Yt || (Fd(e.translate), e.translations && $d(e.translations), e.styles && _d(e.styles), Id(e.LinkComponent), Yt = !0);
|
|
4502
|
-
},
|
|
4502
|
+
}, sp = () => {
|
|
4503
4503
|
Yt = !1, Ld(), Nd(), Dd();
|
|
4504
|
-
},
|
|
4504
|
+
}, ap = () => Yt;
|
|
4505
4505
|
function Vd({ table: e }) {
|
|
4506
4506
|
const t = lt(), n = gt(fa()), o = fe(() => e.getAllColumns().filter((a) => {
|
|
4507
4507
|
const c = a.columnDef.header;
|
|
@@ -4540,10 +4540,10 @@ function Vd({ table: e }) {
|
|
|
4540
4540
|
a[c.id] = !u;
|
|
4541
4541
|
}), xo(n.current, a);
|
|
4542
4542
|
};
|
|
4543
|
-
return /* @__PURE__ */
|
|
4544
|
-
/* @__PURE__ */ f(ne.Trigger, { asChild: !0, children: /* @__PURE__ */ f(
|
|
4545
|
-
/* @__PURE__ */
|
|
4546
|
-
/* @__PURE__ */
|
|
4543
|
+
return /* @__PURE__ */ k(ne.Root, { children: [
|
|
4544
|
+
/* @__PURE__ */ f(ne.Trigger, { asChild: !0, children: /* @__PURE__ */ f(Te, { children: /* @__PURE__ */ f(yo, { className: "snow-size-4" }) }) }),
|
|
4545
|
+
/* @__PURE__ */ k(ne.Content, { align: "end", className: "snow-w-56", children: [
|
|
4546
|
+
/* @__PURE__ */ k("div", { className: "snow-flex snow-items-center snow-gap-2 snow-px-2 snow-py-1\\\\.5 snow-text-sm snow-font-semibold", children: [
|
|
4547
4547
|
/* @__PURE__ */ f(yo, { className: "snow-size-4" }),
|
|
4548
4548
|
t("dataTable.columnsConfiguration")
|
|
4549
4549
|
] }),
|
|
@@ -4576,7 +4576,7 @@ function Wd(e) {
|
|
|
4576
4576
|
const t = d.useRef({ value: e, previous: e });
|
|
4577
4577
|
return d.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
4578
4578
|
}
|
|
4579
|
-
var
|
|
4579
|
+
var Fi = Object.freeze({
|
|
4580
4580
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
4581
4581
|
position: "absolute",
|
|
4582
4582
|
border: 0,
|
|
@@ -4594,7 +4594,7 @@ var ki = Object.freeze({
|
|
|
4594
4594
|
{
|
|
4595
4595
|
...e,
|
|
4596
4596
|
ref: t,
|
|
4597
|
-
style: { ...
|
|
4597
|
+
style: { ...Fi, ...e.style }
|
|
4598
4598
|
}
|
|
4599
4599
|
)
|
|
4600
4600
|
);
|
|
@@ -4602,7 +4602,7 @@ Hd.displayName = Ud;
|
|
|
4602
4602
|
var Kd = [" ", "Enter", "ArrowUp", "ArrowDown"], Gd = [" ", "Enter"], Ye = "Select", [dn, fn, zd] = Kn(Ye), [ut] = Ze(Ye, [
|
|
4603
4603
|
zd,
|
|
4604
4604
|
rn
|
|
4605
|
-
]), pn = rn(), [jd, Be] = ut(Ye), [Yd, Xd] = ut(Ye),
|
|
4605
|
+
]), pn = rn(), [jd, Be] = ut(Ye), [Yd, Xd] = ut(Ye), Li = (e) => {
|
|
4606
4606
|
const {
|
|
4607
4607
|
__scopeSelect: t,
|
|
4608
4608
|
children: n,
|
|
@@ -4618,18 +4618,18 @@ var Kd = [" ", "Enter", "ArrowUp", "ArrowDown"], Gd = [" ", "Enter"], Ye = "Sele
|
|
|
4618
4618
|
disabled: h,
|
|
4619
4619
|
required: g,
|
|
4620
4620
|
form: w
|
|
4621
|
-
} = e, m = pn(t), [v, b] = d.useState(null), [C, y] = d.useState(null), [S, R] = d.useState(!1),
|
|
4621
|
+
} = e, m = pn(t), [v, b] = d.useState(null), [C, y] = d.useState(null), [S, R] = d.useState(!1), T = Qt(u), [E, x] = vt({
|
|
4622
4622
|
prop: o,
|
|
4623
4623
|
defaultProp: r ?? !1,
|
|
4624
4624
|
onChange: i,
|
|
4625
4625
|
caller: Ye
|
|
4626
|
-
}), [I,
|
|
4626
|
+
}), [I, P] = vt({
|
|
4627
4627
|
prop: s,
|
|
4628
4628
|
defaultProp: a,
|
|
4629
4629
|
onChange: c,
|
|
4630
4630
|
caller: Ye
|
|
4631
|
-
}),
|
|
4632
|
-
return /* @__PURE__ */ f(
|
|
4631
|
+
}), F = d.useRef(null), L = v ? w || !!v.closest("form") : !0, [$, D] = d.useState(/* @__PURE__ */ new Set()), B = Array.from($).map((O) => O.props.value).join(";");
|
|
4632
|
+
return /* @__PURE__ */ f(Dr, { ...m, children: /* @__PURE__ */ k(
|
|
4633
4633
|
jd,
|
|
4634
4634
|
{
|
|
4635
4635
|
required: g,
|
|
@@ -4642,11 +4642,11 @@ var Kd = [" ", "Enter", "ArrowUp", "ArrowDown"], Gd = [" ", "Enter"], Ye = "Sele
|
|
|
4642
4642
|
onValueNodeHasChildrenChange: R,
|
|
4643
4643
|
contentId: ze(),
|
|
4644
4644
|
value: I,
|
|
4645
|
-
onValueChange:
|
|
4645
|
+
onValueChange: P,
|
|
4646
4646
|
open: E,
|
|
4647
4647
|
onOpenChange: x,
|
|
4648
|
-
dir:
|
|
4649
|
-
triggerPointerDownPosRef:
|
|
4648
|
+
dir: T,
|
|
4649
|
+
triggerPointerDownPosRef: F,
|
|
4650
4650
|
disabled: h,
|
|
4651
4651
|
children: [
|
|
4652
4652
|
/* @__PURE__ */ f(dn.Provider, { scope: t, children: /* @__PURE__ */ f(
|
|
@@ -4654,10 +4654,10 @@ var Kd = [" ", "Enter", "ArrowUp", "ArrowDown"], Gd = [" ", "Enter"], Ye = "Sele
|
|
|
4654
4654
|
{
|
|
4655
4655
|
scope: e.__scopeSelect,
|
|
4656
4656
|
onNativeOptionAdd: d.useCallback((O) => {
|
|
4657
|
-
|
|
4657
|
+
D((W) => new Set(W).add(O));
|
|
4658
4658
|
}, []),
|
|
4659
4659
|
onNativeOptionRemove: d.useCallback((O) => {
|
|
4660
|
-
|
|
4660
|
+
D((W) => {
|
|
4661
4661
|
const M = new Set(W);
|
|
4662
4662
|
return M.delete(O), M;
|
|
4663
4663
|
});
|
|
@@ -4665,8 +4665,8 @@ var Kd = [" ", "Enter", "ArrowUp", "ArrowDown"], Gd = [" ", "Enter"], Ye = "Sele
|
|
|
4665
4665
|
children: n
|
|
4666
4666
|
}
|
|
4667
4667
|
) }),
|
|
4668
|
-
L ? /* @__PURE__ */
|
|
4669
|
-
|
|
4668
|
+
L ? /* @__PURE__ */ k(
|
|
4669
|
+
os,
|
|
4670
4670
|
{
|
|
4671
4671
|
"aria-hidden": !0,
|
|
4672
4672
|
required: g,
|
|
@@ -4674,7 +4674,7 @@ var Kd = [" ", "Enter", "ArrowUp", "ArrowDown"], Gd = [" ", "Enter"], Ye = "Sele
|
|
|
4674
4674
|
name: l,
|
|
4675
4675
|
autoComplete: p,
|
|
4676
4676
|
value: I,
|
|
4677
|
-
onChange: (O) =>
|
|
4677
|
+
onChange: (O) => P(O.target.value),
|
|
4678
4678
|
disabled: h,
|
|
4679
4679
|
form: w,
|
|
4680
4680
|
children: [
|
|
@@ -4688,11 +4688,11 @@ var Kd = [" ", "Enter", "ArrowUp", "ArrowDown"], Gd = [" ", "Enter"], Ye = "Sele
|
|
|
4688
4688
|
}
|
|
4689
4689
|
) });
|
|
4690
4690
|
};
|
|
4691
|
-
|
|
4692
|
-
var
|
|
4691
|
+
Li.displayName = Ye;
|
|
4692
|
+
var $i = "SelectTrigger", Vi = d.forwardRef(
|
|
4693
4693
|
(e, t) => {
|
|
4694
|
-
const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = pn(n), s = Be(
|
|
4695
|
-
const v = u().filter((y) => !y.disabled), b = v.find((y) => y.value === s.value), C =
|
|
4694
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = pn(n), s = Be($i, n), a = s.disabled || o, c = J(t, s.onTriggerChange), u = fn(n), l = d.useRef("touch"), [p, h, g] = is((m) => {
|
|
4695
|
+
const v = u().filter((y) => !y.disabled), b = v.find((y) => y.value === s.value), C = ss(v, m, b);
|
|
4696
4696
|
C !== void 0 && s.onValueChange(C.value);
|
|
4697
4697
|
}), w = (m) => {
|
|
4698
4698
|
a || (s.onOpenChange(!0), g()), m && (s.triggerPointerDownPosRef.current = {
|
|
@@ -4700,7 +4700,7 @@ var Li = "SelectTrigger", $i = d.forwardRef(
|
|
|
4700
4700
|
y: Math.round(m.pageY)
|
|
4701
4701
|
});
|
|
4702
4702
|
};
|
|
4703
|
-
return /* @__PURE__ */ f(
|
|
4703
|
+
return /* @__PURE__ */ f(kr, { asChild: !0, ...i, children: /* @__PURE__ */ f(
|
|
4704
4704
|
K.button,
|
|
4705
4705
|
{
|
|
4706
4706
|
type: "button",
|
|
@@ -4713,7 +4713,7 @@ var Li = "SelectTrigger", $i = d.forwardRef(
|
|
|
4713
4713
|
"data-state": s.open ? "open" : "closed",
|
|
4714
4714
|
disabled: a,
|
|
4715
4715
|
"data-disabled": a ? "" : void 0,
|
|
4716
|
-
"data-placeholder":
|
|
4716
|
+
"data-placeholder": rs(s.value) ? "" : void 0,
|
|
4717
4717
|
...r,
|
|
4718
4718
|
ref: c,
|
|
4719
4719
|
onClick: N(r.onClick, (m) => {
|
|
@@ -4732,10 +4732,10 @@ var Li = "SelectTrigger", $i = d.forwardRef(
|
|
|
4732
4732
|
) });
|
|
4733
4733
|
}
|
|
4734
4734
|
);
|
|
4735
|
-
|
|
4736
|
-
var
|
|
4735
|
+
Vi.displayName = $i;
|
|
4736
|
+
var Bi = "SelectValue", Wi = d.forwardRef(
|
|
4737
4737
|
(e, t) => {
|
|
4738
|
-
const { __scopeSelect: n, className: o, style: r, children: i, placeholder: s = "", ...a } = e, c = Be(
|
|
4738
|
+
const { __scopeSelect: n, className: o, style: r, children: i, placeholder: s = "", ...a } = e, c = Be(Bi, n), { onValueNodeHasChildrenChange: u } = c, l = i !== void 0, p = J(t, c.onValueNodeChange);
|
|
4739
4739
|
return re(() => {
|
|
4740
4740
|
u(l);
|
|
4741
4741
|
}, [u, l]), /* @__PURE__ */ f(
|
|
@@ -4744,22 +4744,22 @@ var Vi = "SelectValue", Bi = d.forwardRef(
|
|
|
4744
4744
|
...a,
|
|
4745
4745
|
ref: p,
|
|
4746
4746
|
style: { pointerEvents: "none" },
|
|
4747
|
-
children:
|
|
4747
|
+
children: rs(c.value) ? /* @__PURE__ */ f(Zt, { children: s }) : i
|
|
4748
4748
|
}
|
|
4749
4749
|
);
|
|
4750
4750
|
}
|
|
4751
4751
|
);
|
|
4752
|
-
|
|
4753
|
-
var Zd = "SelectIcon",
|
|
4752
|
+
Wi.displayName = Bi;
|
|
4753
|
+
var Zd = "SelectIcon", Ui = d.forwardRef(
|
|
4754
4754
|
(e, t) => {
|
|
4755
4755
|
const { __scopeSelect: n, children: o, ...r } = e;
|
|
4756
4756
|
return /* @__PURE__ */ f(K.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
|
|
4757
4757
|
}
|
|
4758
4758
|
);
|
|
4759
|
-
|
|
4760
|
-
var qd = "SelectPortal",
|
|
4761
|
-
|
|
4762
|
-
var Xe = "SelectContent",
|
|
4759
|
+
Ui.displayName = Zd;
|
|
4760
|
+
var qd = "SelectPortal", Hi = (e) => /* @__PURE__ */ f(to, { asChild: !0, ...e });
|
|
4761
|
+
Hi.displayName = qd;
|
|
4762
|
+
var Xe = "SelectContent", Ki = d.forwardRef(
|
|
4763
4763
|
(e, t) => {
|
|
4764
4764
|
const n = Be(Xe, e.__scopeSelect), [o, r] = d.useState();
|
|
4765
4765
|
if (re(() => {
|
|
@@ -4767,15 +4767,15 @@ var Xe = "SelectContent", Hi = d.forwardRef(
|
|
|
4767
4767
|
}, []), !n.open) {
|
|
4768
4768
|
const i = o;
|
|
4769
4769
|
return i ? qt.createPortal(
|
|
4770
|
-
/* @__PURE__ */ f(
|
|
4770
|
+
/* @__PURE__ */ f(Gi, { scope: e.__scopeSelect, children: /* @__PURE__ */ f(dn.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ f("div", { children: e.children }) }) }),
|
|
4771
4771
|
i
|
|
4772
4772
|
) : null;
|
|
4773
4773
|
}
|
|
4774
|
-
return /* @__PURE__ */ f(
|
|
4774
|
+
return /* @__PURE__ */ f(zi, { ...e, ref: t });
|
|
4775
4775
|
}
|
|
4776
4776
|
);
|
|
4777
|
-
|
|
4778
|
-
var Ce = 10, [
|
|
4777
|
+
Ki.displayName = Xe;
|
|
4778
|
+
var Ce = 10, [Gi, We] = ut(Xe), Jd = "SelectContentImpl", Qd = /* @__PURE__ */ wt("SelectContent.RemoveScroll"), zi = d.forwardRef(
|
|
4779
4779
|
(e, t) => {
|
|
4780
4780
|
const {
|
|
4781
4781
|
__scopeSelect: n,
|
|
@@ -4797,12 +4797,12 @@ var Ce = 10, [Ki, We] = ut(Xe), Jd = "SelectContentImpl", Qd = /* @__PURE__ */ w
|
|
|
4797
4797
|
avoidCollisions: v,
|
|
4798
4798
|
//
|
|
4799
4799
|
...b
|
|
4800
|
-
} = e, C = Be(Xe, n), [y, S] = d.useState(null), [R,
|
|
4800
|
+
} = e, C = Be(Xe, n), [y, S] = d.useState(null), [R, T] = d.useState(null), E = J(t, (_) => S(_)), [x, I] = d.useState(null), [P, F] = d.useState(
|
|
4801
4801
|
null
|
|
4802
|
-
), L = fn(n), [$,
|
|
4802
|
+
), L = fn(n), [$, D] = d.useState(!1), B = d.useRef(!1);
|
|
4803
4803
|
d.useEffect(() => {
|
|
4804
|
-
if (y) return
|
|
4805
|
-
}, [y]),
|
|
4804
|
+
if (y) return zr(y);
|
|
4805
|
+
}, [y]), dr();
|
|
4806
4806
|
const O = d.useCallback(
|
|
4807
4807
|
(_) => {
|
|
4808
4808
|
const [j, ...G] = L().map((z) => z.ref.current), [V] = G.slice(-1), H = document.activeElement;
|
|
@@ -4840,8 +4840,8 @@ var Ce = 10, [Ki, We] = ut(Xe), Jd = "SelectContentImpl", Qd = /* @__PURE__ */ w
|
|
|
4840
4840
|
window.removeEventListener("blur", _), window.removeEventListener("resize", _);
|
|
4841
4841
|
};
|
|
4842
4842
|
}, [M]);
|
|
4843
|
-
const [Y, Q] =
|
|
4844
|
-
const j = L().filter((H) => !H.disabled), G = j.find((H) => H.ref.current === document.activeElement), V =
|
|
4843
|
+
const [Y, Q] = is((_) => {
|
|
4844
|
+
const j = L().filter((H) => !H.disabled), G = j.find((H) => H.ref.current === document.activeElement), V = ss(j, _, G);
|
|
4845
4845
|
V && setTimeout(() => V.ref.current.focus());
|
|
4846
4846
|
}), oe = d.useCallback(
|
|
4847
4847
|
(_, j, G) => {
|
|
@@ -4852,10 +4852,10 @@ var Ce = 10, [Ki, We] = ut(Xe), Jd = "SelectContentImpl", Qd = /* @__PURE__ */ w
|
|
|
4852
4852
|
), ye = d.useCallback(() => y == null ? void 0 : y.focus(), [y]), de = d.useCallback(
|
|
4853
4853
|
(_, j, G) => {
|
|
4854
4854
|
const V = !B.current && !G;
|
|
4855
|
-
(C.value !== void 0 && C.value === j || V) &&
|
|
4855
|
+
(C.value !== void 0 && C.value === j || V) && F(_);
|
|
4856
4856
|
},
|
|
4857
4857
|
[C.value]
|
|
4858
|
-
), be = o === "popper" ? $n :
|
|
4858
|
+
), be = o === "popper" ? $n : ji, ie = be === $n ? {
|
|
4859
4859
|
side: a,
|
|
4860
4860
|
sideOffset: c,
|
|
4861
4861
|
align: u,
|
|
@@ -4868,18 +4868,18 @@ var Ce = 10, [Ki, We] = ut(Xe), Jd = "SelectContentImpl", Qd = /* @__PURE__ */ w
|
|
|
4868
4868
|
avoidCollisions: v
|
|
4869
4869
|
} : {};
|
|
4870
4870
|
return /* @__PURE__ */ f(
|
|
4871
|
-
|
|
4871
|
+
Gi,
|
|
4872
4872
|
{
|
|
4873
4873
|
scope: n,
|
|
4874
4874
|
content: y,
|
|
4875
4875
|
viewport: R,
|
|
4876
|
-
onViewportChange:
|
|
4876
|
+
onViewportChange: T,
|
|
4877
4877
|
itemRefCallback: oe,
|
|
4878
4878
|
selectedItem: x,
|
|
4879
4879
|
onItemLeave: ye,
|
|
4880
4880
|
itemTextRefCallback: de,
|
|
4881
4881
|
focusSelectedItem: W,
|
|
4882
|
-
selectedItemText:
|
|
4882
|
+
selectedItemText: P,
|
|
4883
4883
|
position: o,
|
|
4884
4884
|
isPositioned: $,
|
|
4885
4885
|
searchRef: Y,
|
|
@@ -4914,7 +4914,7 @@ var Ce = 10, [Ki, We] = ut(Xe), Jd = "SelectContentImpl", Qd = /* @__PURE__ */ w
|
|
|
4914
4914
|
onContextMenu: (_) => _.preventDefault(),
|
|
4915
4915
|
...b,
|
|
4916
4916
|
...ie,
|
|
4917
|
-
onPlaced: () =>
|
|
4917
|
+
onPlaced: () => D(!0),
|
|
4918
4918
|
ref: E,
|
|
4919
4919
|
style: {
|
|
4920
4920
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -4945,13 +4945,13 @@ var Ce = 10, [Ki, We] = ut(Xe), Jd = "SelectContentImpl", Qd = /* @__PURE__ */ w
|
|
|
4945
4945
|
);
|
|
4946
4946
|
}
|
|
4947
4947
|
);
|
|
4948
|
-
|
|
4949
|
-
var ef = "SelectItemAlignedPosition",
|
|
4948
|
+
zi.displayName = Jd;
|
|
4949
|
+
var ef = "SelectItemAlignedPosition", ji = d.forwardRef((e, t) => {
|
|
4950
4950
|
const { __scopeSelect: n, onPlaced: o, ...r } = e, i = Be(Xe, n), s = We(Xe, n), [a, c] = d.useState(null), [u, l] = d.useState(null), p = J(t, (E) => l(E)), h = fn(n), g = d.useRef(!1), w = d.useRef(!0), { viewport: m, selectedItem: v, selectedItemText: b, focusSelectedItem: C } = s, y = d.useCallback(() => {
|
|
4951
4951
|
if (i.trigger && i.valueNode && a && u && m && v && b) {
|
|
4952
|
-
const E = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(), I = i.valueNode.getBoundingClientRect(),
|
|
4952
|
+
const E = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(), I = i.valueNode.getBoundingClientRect(), P = b.getBoundingClientRect();
|
|
4953
4953
|
if (i.dir !== "rtl") {
|
|
4954
|
-
const H =
|
|
4954
|
+
const H = P.left - x.left, z = I.left - H, te = E.left - z, me = E.width + te, Fe = Math.max(me, x.width), Ue = window.innerWidth - Ce, He = Xo(z, [
|
|
4955
4955
|
Ce,
|
|
4956
4956
|
// Prevents the content from going off the starting edge of the
|
|
4957
4957
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -4962,15 +4962,15 @@ var ef = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
|
|
|
4962
4962
|
]);
|
|
4963
4963
|
a.style.minWidth = me + "px", a.style.left = He + "px";
|
|
4964
4964
|
} else {
|
|
4965
|
-
const H = x.right -
|
|
4965
|
+
const H = x.right - P.right, z = window.innerWidth - I.right - H, te = window.innerWidth - E.right - z, me = E.width + te, Fe = Math.max(me, x.width), Ue = window.innerWidth - Ce, He = Xo(z, [
|
|
4966
4966
|
Ce,
|
|
4967
4967
|
Math.max(Ce, Ue - Fe)
|
|
4968
4968
|
]);
|
|
4969
4969
|
a.style.minWidth = me + "px", a.style.right = He + "px";
|
|
4970
4970
|
}
|
|
4971
|
-
const
|
|
4971
|
+
const F = h(), L = window.innerHeight - Ce * 2, $ = m.scrollHeight, D = window.getComputedStyle(u), B = parseInt(D.borderTopWidth, 10), O = parseInt(D.paddingTop, 10), W = parseInt(D.borderBottomWidth, 10), M = parseInt(D.paddingBottom, 10), A = B + O + $ + M + W, Y = Math.min(v.offsetHeight * 5, A), Q = window.getComputedStyle(m), oe = parseInt(Q.paddingTop, 10), ye = parseInt(Q.paddingBottom, 10), de = E.top + E.height / 2 - Ce, be = L - de, ie = v.offsetHeight / 2, _ = v.offsetTop + ie, j = B + O + _, G = A - j;
|
|
4972
4972
|
if (j <= de) {
|
|
4973
|
-
const H =
|
|
4973
|
+
const H = F.length > 0 && v === F[F.length - 1].ref.current;
|
|
4974
4974
|
a.style.bottom = "0px";
|
|
4975
4975
|
const z = u.clientHeight - m.offsetTop - m.offsetHeight, te = Math.max(
|
|
4976
4976
|
be,
|
|
@@ -4979,7 +4979,7 @@ var ef = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
|
|
|
4979
4979
|
), me = j + te;
|
|
4980
4980
|
a.style.height = me + "px";
|
|
4981
4981
|
} else {
|
|
4982
|
-
const H =
|
|
4982
|
+
const H = F.length > 0 && v === F[0].ref.current;
|
|
4983
4983
|
a.style.top = "0px";
|
|
4984
4984
|
const te = Math.max(
|
|
4985
4985
|
de,
|
|
@@ -5007,7 +5007,7 @@ var ef = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
|
|
|
5007
5007
|
re(() => {
|
|
5008
5008
|
u && R(window.getComputedStyle(u).zIndex);
|
|
5009
5009
|
}, [u]);
|
|
5010
|
-
const
|
|
5010
|
+
const T = d.useCallback(
|
|
5011
5011
|
(E) => {
|
|
5012
5012
|
E && w.current === !0 && (y(), C == null || C(), w.current = !1);
|
|
5013
5013
|
},
|
|
@@ -5019,7 +5019,7 @@ var ef = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
|
|
|
5019
5019
|
scope: n,
|
|
5020
5020
|
contentWrapper: a,
|
|
5021
5021
|
shouldExpandOnScrollRef: g,
|
|
5022
|
-
onScrollButtonChange:
|
|
5022
|
+
onScrollButtonChange: T,
|
|
5023
5023
|
children: /* @__PURE__ */ f(
|
|
5024
5024
|
"div",
|
|
5025
5025
|
{
|
|
@@ -5050,7 +5050,7 @@ var ef = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
|
|
|
5050
5050
|
}
|
|
5051
5051
|
);
|
|
5052
5052
|
});
|
|
5053
|
-
|
|
5053
|
+
ji.displayName = ef;
|
|
5054
5054
|
var tf = "SelectPopperPosition", $n = d.forwardRef((e, t) => {
|
|
5055
5055
|
const {
|
|
5056
5056
|
__scopeSelect: n,
|
|
@@ -5059,7 +5059,7 @@ var tf = "SelectPopperPosition", $n = d.forwardRef((e, t) => {
|
|
|
5059
5059
|
...i
|
|
5060
5060
|
} = e, s = pn(n);
|
|
5061
5061
|
return /* @__PURE__ */ f(
|
|
5062
|
-
|
|
5062
|
+
Fr,
|
|
5063
5063
|
{
|
|
5064
5064
|
...s,
|
|
5065
5065
|
...i,
|
|
@@ -5080,10 +5080,10 @@ var tf = "SelectPopperPosition", $n = d.forwardRef((e, t) => {
|
|
|
5080
5080
|
);
|
|
5081
5081
|
});
|
|
5082
5082
|
$n.displayName = tf;
|
|
5083
|
-
var [nf, po] = ut(Xe, {}), Vn = "SelectViewport",
|
|
5083
|
+
var [nf, po] = ut(Xe, {}), Vn = "SelectViewport", Yi = d.forwardRef(
|
|
5084
5084
|
(e, t) => {
|
|
5085
5085
|
const { __scopeSelect: n, nonce: o, ...r } = e, i = We(Vn, n), s = po(Vn, n), a = J(t, i.onViewportChange), c = d.useRef(0);
|
|
5086
|
-
return /* @__PURE__ */
|
|
5086
|
+
return /* @__PURE__ */ k(Zt, { children: [
|
|
5087
5087
|
/* @__PURE__ */ f(
|
|
5088
5088
|
"style",
|
|
5089
5089
|
{
|
|
@@ -5132,22 +5132,22 @@ var [nf, po] = ut(Xe, {}), Vn = "SelectViewport", ji = d.forwardRef(
|
|
|
5132
5132
|
] });
|
|
5133
5133
|
}
|
|
5134
5134
|
);
|
|
5135
|
-
|
|
5136
|
-
var
|
|
5135
|
+
Yi.displayName = Vn;
|
|
5136
|
+
var Xi = "SelectGroup", [of, rf] = ut(Xi), sf = d.forwardRef(
|
|
5137
5137
|
(e, t) => {
|
|
5138
5138
|
const { __scopeSelect: n, ...o } = e, r = ze();
|
|
5139
5139
|
return /* @__PURE__ */ f(of, { scope: n, id: r, children: /* @__PURE__ */ f(K.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
|
|
5140
5140
|
}
|
|
5141
5141
|
);
|
|
5142
|
-
sf.displayName =
|
|
5143
|
-
var
|
|
5142
|
+
sf.displayName = Xi;
|
|
5143
|
+
var Zi = "SelectLabel", af = d.forwardRef(
|
|
5144
5144
|
(e, t) => {
|
|
5145
|
-
const { __scopeSelect: n, ...o } = e, r = rf(
|
|
5145
|
+
const { __scopeSelect: n, ...o } = e, r = rf(Zi, n);
|
|
5146
5146
|
return /* @__PURE__ */ f(K.div, { id: r.id, ...o, ref: t });
|
|
5147
5147
|
}
|
|
5148
5148
|
);
|
|
5149
|
-
af.displayName =
|
|
5150
|
-
var Xt = "SelectItem", [cf,
|
|
5149
|
+
af.displayName = Zi;
|
|
5150
|
+
var Xt = "SelectItem", [cf, qi] = ut(Xt), Ji = d.forwardRef(
|
|
5151
5151
|
(e, t) => {
|
|
5152
5152
|
const {
|
|
5153
5153
|
__scopeSelect: n,
|
|
@@ -5230,10 +5230,10 @@ var Xt = "SelectItem", [cf, Zi] = ut(Xt), qi = d.forwardRef(
|
|
|
5230
5230
|
);
|
|
5231
5231
|
}
|
|
5232
5232
|
);
|
|
5233
|
-
|
|
5234
|
-
var ht = "SelectItemText",
|
|
5233
|
+
Ji.displayName = Xt;
|
|
5234
|
+
var ht = "SelectItemText", Qi = d.forwardRef(
|
|
5235
5235
|
(e, t) => {
|
|
5236
|
-
const { __scopeSelect: n, className: o, style: r, ...i } = e, s = Be(ht, n), a = We(ht, n), c =
|
|
5236
|
+
const { __scopeSelect: n, className: o, style: r, ...i } = e, s = Be(ht, n), a = We(ht, n), c = qi(ht, n), u = Xd(ht, n), [l, p] = d.useState(null), h = J(
|
|
5237
5237
|
t,
|
|
5238
5238
|
(b) => p(b),
|
|
5239
5239
|
c.onItemTextChange,
|
|
@@ -5245,20 +5245,20 @@ var ht = "SelectItemText", Ji = d.forwardRef(
|
|
|
5245
5245
|
() => /* @__PURE__ */ f("option", { value: c.value, disabled: c.disabled, children: g }, c.value),
|
|
5246
5246
|
[c.disabled, c.value, g]
|
|
5247
5247
|
), { onNativeOptionAdd: m, onNativeOptionRemove: v } = u;
|
|
5248
|
-
return re(() => (m(w), () => v(w)), [m, v, w]), /* @__PURE__ */
|
|
5248
|
+
return re(() => (m(w), () => v(w)), [m, v, w]), /* @__PURE__ */ k(Zt, { children: [
|
|
5249
5249
|
/* @__PURE__ */ f(K.span, { id: c.textId, ...i, ref: h }),
|
|
5250
5250
|
c.isSelected && s.valueNode && !s.valueNodeHasChildren ? qt.createPortal(i.children, s.valueNode) : null
|
|
5251
5251
|
] });
|
|
5252
5252
|
}
|
|
5253
5253
|
);
|
|
5254
|
-
|
|
5255
|
-
var
|
|
5254
|
+
Qi.displayName = ht;
|
|
5255
|
+
var es = "SelectItemIndicator", ts = d.forwardRef(
|
|
5256
5256
|
(e, t) => {
|
|
5257
5257
|
const { __scopeSelect: n, ...o } = e;
|
|
5258
|
-
return
|
|
5258
|
+
return qi(es, n).isSelected ? /* @__PURE__ */ f(K.span, { "aria-hidden": !0, ...o, ref: t }) : null;
|
|
5259
5259
|
}
|
|
5260
5260
|
);
|
|
5261
|
-
|
|
5261
|
+
ts.displayName = es;
|
|
5262
5262
|
var Bn = "SelectScrollUpButton", lf = d.forwardRef((e, t) => {
|
|
5263
5263
|
const n = We(Bn, e.__scopeSelect), o = po(Bn, e.__scopeSelect), [r, i] = d.useState(!1), s = J(t, o.onScrollButtonChange);
|
|
5264
5264
|
return re(() => {
|
|
@@ -5271,7 +5271,7 @@ var Bn = "SelectScrollUpButton", lf = d.forwardRef((e, t) => {
|
|
|
5271
5271
|
return a(), c.addEventListener("scroll", a), () => c.removeEventListener("scroll", a);
|
|
5272
5272
|
}
|
|
5273
5273
|
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ f(
|
|
5274
|
-
|
|
5274
|
+
ns,
|
|
5275
5275
|
{
|
|
5276
5276
|
...e,
|
|
5277
5277
|
ref: s,
|
|
@@ -5295,7 +5295,7 @@ var Wn = "SelectScrollDownButton", uf = d.forwardRef((e, t) => {
|
|
|
5295
5295
|
return a(), c.addEventListener("scroll", a), () => c.removeEventListener("scroll", a);
|
|
5296
5296
|
}
|
|
5297
5297
|
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ f(
|
|
5298
|
-
|
|
5298
|
+
ns,
|
|
5299
5299
|
{
|
|
5300
5300
|
...e,
|
|
5301
5301
|
ref: s,
|
|
@@ -5307,7 +5307,7 @@ var Wn = "SelectScrollDownButton", uf = d.forwardRef((e, t) => {
|
|
|
5307
5307
|
) : null;
|
|
5308
5308
|
});
|
|
5309
5309
|
uf.displayName = Wn;
|
|
5310
|
-
var
|
|
5310
|
+
var ns = d.forwardRef((e, t) => {
|
|
5311
5311
|
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = We("SelectScrollButton", n), s = d.useRef(null), a = fn(n), c = d.useCallback(() => {
|
|
5312
5312
|
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
5313
5313
|
}, []);
|
|
@@ -5344,11 +5344,11 @@ ff.displayName = df;
|
|
|
5344
5344
|
var Un = "SelectArrow", pf = d.forwardRef(
|
|
5345
5345
|
(e, t) => {
|
|
5346
5346
|
const { __scopeSelect: n, ...o } = e, r = pn(n), i = Be(Un, n), s = We(Un, n);
|
|
5347
|
-
return i.open && s.position === "popper" ? /* @__PURE__ */ f(
|
|
5347
|
+
return i.open && s.position === "popper" ? /* @__PURE__ */ f(Lr, { ...r, ...o, ref: t }) : null;
|
|
5348
5348
|
}
|
|
5349
5349
|
);
|
|
5350
5350
|
pf.displayName = Un;
|
|
5351
|
-
var hf = "SelectBubbleInput",
|
|
5351
|
+
var hf = "SelectBubbleInput", os = d.forwardRef(
|
|
5352
5352
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
5353
5353
|
const r = d.useRef(null), i = J(o, r), s = Wd(t);
|
|
5354
5354
|
return d.useEffect(() => {
|
|
@@ -5366,18 +5366,18 @@ var hf = "SelectBubbleInput", ns = d.forwardRef(
|
|
|
5366
5366
|
K.select,
|
|
5367
5367
|
{
|
|
5368
5368
|
...n,
|
|
5369
|
-
style: { ...
|
|
5369
|
+
style: { ...Fi, ...n.style },
|
|
5370
5370
|
ref: i,
|
|
5371
5371
|
defaultValue: t
|
|
5372
5372
|
}
|
|
5373
5373
|
);
|
|
5374
5374
|
}
|
|
5375
5375
|
);
|
|
5376
|
-
|
|
5377
|
-
function
|
|
5376
|
+
os.displayName = hf;
|
|
5377
|
+
function rs(e) {
|
|
5378
5378
|
return e === "" || e === void 0;
|
|
5379
5379
|
}
|
|
5380
|
-
function
|
|
5380
|
+
function is(e) {
|
|
5381
5381
|
const t = Me(e), n = d.useRef(""), o = d.useRef(0), r = d.useCallback(
|
|
5382
5382
|
(s) => {
|
|
5383
5383
|
const a = n.current + s;
|
|
@@ -5391,7 +5391,7 @@ function rs(e) {
|
|
|
5391
5391
|
}, []);
|
|
5392
5392
|
return d.useEffect(() => () => window.clearTimeout(o.current), []), [n, r, i];
|
|
5393
5393
|
}
|
|
5394
|
-
function
|
|
5394
|
+
function ss(e, t, n) {
|
|
5395
5395
|
const r = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
|
|
5396
5396
|
let s = mf(e, Math.max(i, 0));
|
|
5397
5397
|
r.length === 1 && (s = s.filter((u) => u !== n));
|
|
@@ -5403,17 +5403,17 @@ function is(e, t, n) {
|
|
|
5403
5403
|
function mf(e, t) {
|
|
5404
5404
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
5405
5405
|
}
|
|
5406
|
-
var gf =
|
|
5406
|
+
var gf = Li, vf = Vi, wf = Wi, yf = Ui, bf = Hi, Cf = Ki, Sf = Yi, xf = Ji, Ef = Qi, Rf = ts;
|
|
5407
5407
|
function Af({ value: e, onValueChange: t, children: n }) {
|
|
5408
5408
|
return /* @__PURE__ */ f(gf, { value: e, onValueChange: t, children: n });
|
|
5409
5409
|
}
|
|
5410
|
-
function
|
|
5411
|
-
return /* @__PURE__ */
|
|
5410
|
+
function Tf({ className: e, children: t }) {
|
|
5411
|
+
return /* @__PURE__ */ k(vf, { className: q("snow-select-trigger", e), children: [
|
|
5412
5412
|
t,
|
|
5413
5413
|
/* @__PURE__ */ f(yf, { asChild: !0, children: /* @__PURE__ */ f(Xs, { className: "snow-select-icon" }) })
|
|
5414
5414
|
] });
|
|
5415
5415
|
}
|
|
5416
|
-
function
|
|
5416
|
+
function Pf({ placeholder: e }) {
|
|
5417
5417
|
return /* @__PURE__ */ f(wf, { placeholder: e });
|
|
5418
5418
|
}
|
|
5419
5419
|
function If({ children: e }) {
|
|
@@ -5428,22 +5428,22 @@ function If({ children: e }) {
|
|
|
5428
5428
|
) });
|
|
5429
5429
|
}
|
|
5430
5430
|
function Mf({ value: e, children: t }) {
|
|
5431
|
-
return /* @__PURE__ */
|
|
5432
|
-
/* @__PURE__ */ f("span", { className: "snow-select-item-indicator", children: /* @__PURE__ */ f(Rf, { children: /* @__PURE__ */ f(
|
|
5431
|
+
return /* @__PURE__ */ k(xf, { value: e, className: "snow-select-item", children: [
|
|
5432
|
+
/* @__PURE__ */ f("span", { className: "snow-select-item-indicator", children: /* @__PURE__ */ f(Rf, { children: /* @__PURE__ */ f(tr, { className: "snow-size-4" }) }) }),
|
|
5433
5433
|
/* @__PURE__ */ f(Ef, { children: t })
|
|
5434
5434
|
] });
|
|
5435
5435
|
}
|
|
5436
5436
|
const Ae = {
|
|
5437
5437
|
Root: Af,
|
|
5438
|
-
Trigger:
|
|
5439
|
-
Value:
|
|
5438
|
+
Trigger: Tf,
|
|
5439
|
+
Value: Pf,
|
|
5440
5440
|
Content: If,
|
|
5441
5441
|
Item: Mf
|
|
5442
5442
|
}, hn = [25, 50, 100];
|
|
5443
5443
|
function Nf({ table: e, isLoading: t }) {
|
|
5444
|
-
return /* @__PURE__ */ f("div", { className: "snow-pagination", children: /* @__PURE__ */
|
|
5444
|
+
return /* @__PURE__ */ f("div", { className: "snow-pagination", children: /* @__PURE__ */ k("div", { className: "snow-pagination-controls", children: [
|
|
5445
5445
|
/* @__PURE__ */ f(
|
|
5446
|
-
|
|
5446
|
+
Te,
|
|
5447
5447
|
{
|
|
5448
5448
|
className: "snow-btn-icon-lg",
|
|
5449
5449
|
onClick: () => e.setPageIndex(0),
|
|
@@ -5452,7 +5452,7 @@ function Nf({ table: e, isLoading: t }) {
|
|
|
5452
5452
|
}
|
|
5453
5453
|
),
|
|
5454
5454
|
/* @__PURE__ */ f(
|
|
5455
|
-
|
|
5455
|
+
Te,
|
|
5456
5456
|
{
|
|
5457
5457
|
className: "snow-btn-icon-lg",
|
|
5458
5458
|
onClick: () => e.previousPage(),
|
|
@@ -5460,15 +5460,15 @@ function Nf({ table: e, isLoading: t }) {
|
|
|
5460
5460
|
children: /* @__PURE__ */ f(Vs, {})
|
|
5461
5461
|
}
|
|
5462
5462
|
),
|
|
5463
|
-
/* @__PURE__ */
|
|
5463
|
+
/* @__PURE__ */ k("div", { className: "snow-pagination-display", children: [
|
|
5464
5464
|
/* @__PURE__ */ f("div", { className: "snow-pagination-current", children: t ? /* @__PURE__ */ f(js, { className: "snow-size-4 snow-animate-spin" }) : e.getState().pagination.pageIndex + 1 }),
|
|
5465
|
-
/* @__PURE__ */
|
|
5465
|
+
/* @__PURE__ */ k("span", { className: "snow-pagination-total", children: [
|
|
5466
5466
|
"de ",
|
|
5467
5467
|
e.getPageCount()
|
|
5468
5468
|
] })
|
|
5469
5469
|
] }),
|
|
5470
5470
|
/* @__PURE__ */ f(
|
|
5471
|
-
|
|
5471
|
+
Te,
|
|
5472
5472
|
{
|
|
5473
5473
|
className: "snow-btn-icon-lg",
|
|
5474
5474
|
onClick: () => e.nextPage(),
|
|
@@ -5477,7 +5477,7 @@ function Nf({ table: e, isLoading: t }) {
|
|
|
5477
5477
|
}
|
|
5478
5478
|
),
|
|
5479
5479
|
/* @__PURE__ */ f(
|
|
5480
|
-
|
|
5480
|
+
Te,
|
|
5481
5481
|
{
|
|
5482
5482
|
className: "snow-btn-icon-lg",
|
|
5483
5483
|
onClick: () => e.setPageIndex(e.getPageCount() - 1),
|
|
@@ -5493,9 +5493,9 @@ function _f({
|
|
|
5493
5493
|
enableElementLabel: n = !0
|
|
5494
5494
|
}) {
|
|
5495
5495
|
const o = lt();
|
|
5496
|
-
return /* @__PURE__ */
|
|
5496
|
+
return /* @__PURE__ */ k("div", { className: "snow-flex snow-items-center snow-gap-2 snow-whitespace-nowrap", children: [
|
|
5497
5497
|
n && /* @__PURE__ */ f("span", { className: "snow-text-sm snow-text-muted-foreground", children: o("dataTable.paginationSize") }),
|
|
5498
|
-
/* @__PURE__ */
|
|
5498
|
+
/* @__PURE__ */ k(
|
|
5499
5499
|
Ae.Root,
|
|
5500
5500
|
{
|
|
5501
5501
|
value: e.getState().pagination.pageSize.toString(),
|
|
@@ -5512,7 +5512,7 @@ function _f({
|
|
|
5512
5512
|
}
|
|
5513
5513
|
var mn = "Tabs", [Of] = Ze(mn, [
|
|
5514
5514
|
sn
|
|
5515
|
-
]),
|
|
5515
|
+
]), as = sn(), [Df, ho] = Of(mn), cs = d.forwardRef(
|
|
5516
5516
|
(e, t) => {
|
|
5517
5517
|
const {
|
|
5518
5518
|
__scopeTabs: n,
|
|
@@ -5552,12 +5552,12 @@ var mn = "Tabs", [Of] = Ze(mn, [
|
|
|
5552
5552
|
);
|
|
5553
5553
|
}
|
|
5554
5554
|
);
|
|
5555
|
-
|
|
5556
|
-
var
|
|
5555
|
+
cs.displayName = mn;
|
|
5556
|
+
var ls = "TabsList", us = d.forwardRef(
|
|
5557
5557
|
(e, t) => {
|
|
5558
|
-
const { __scopeTabs: n, loop: o = !0, ...r } = e, i = ho(
|
|
5558
|
+
const { __scopeTabs: n, loop: o = !0, ...r } = e, i = ho(ls, n), s = as(n);
|
|
5559
5559
|
return /* @__PURE__ */ f(
|
|
5560
|
-
|
|
5560
|
+
Hr,
|
|
5561
5561
|
{
|
|
5562
5562
|
asChild: !0,
|
|
5563
5563
|
...s,
|
|
@@ -5577,12 +5577,12 @@ var cs = "TabsList", ls = d.forwardRef(
|
|
|
5577
5577
|
);
|
|
5578
5578
|
}
|
|
5579
5579
|
);
|
|
5580
|
-
|
|
5581
|
-
var
|
|
5580
|
+
us.displayName = ls;
|
|
5581
|
+
var ds = "TabsTrigger", fs = d.forwardRef(
|
|
5582
5582
|
(e, t) => {
|
|
5583
|
-
const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, s = ho(
|
|
5583
|
+
const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, s = ho(ds, n), a = as(n), c = hs(s.baseId, o), u = ms(s.baseId, o), l = o === s.value;
|
|
5584
5584
|
return /* @__PURE__ */ f(
|
|
5585
|
-
|
|
5585
|
+
Kr,
|
|
5586
5586
|
{
|
|
5587
5587
|
asChild: !0,
|
|
5588
5588
|
...a,
|
|
@@ -5617,10 +5617,10 @@ var us = "TabsTrigger", ds = d.forwardRef(
|
|
|
5617
5617
|
);
|
|
5618
5618
|
}
|
|
5619
5619
|
);
|
|
5620
|
-
|
|
5621
|
-
var
|
|
5620
|
+
fs.displayName = ds;
|
|
5621
|
+
var ps = "TabsContent", kf = d.forwardRef(
|
|
5622
5622
|
(e, t) => {
|
|
5623
|
-
const { __scopeTabs: n, value: o, forceMount: r, children: i, ...s } = e, a = ho(
|
|
5623
|
+
const { __scopeTabs: n, value: o, forceMount: r, children: i, ...s } = e, a = ho(ps, n), c = hs(a.baseId, o), u = ms(a.baseId, o), l = o === a.value, p = d.useRef(l);
|
|
5624
5624
|
return d.useEffect(() => {
|
|
5625
5625
|
const h = requestAnimationFrame(() => p.current = !1);
|
|
5626
5626
|
return () => cancelAnimationFrame(h);
|
|
@@ -5645,14 +5645,14 @@ var fs = "TabsContent", kf = d.forwardRef(
|
|
|
5645
5645
|
) });
|
|
5646
5646
|
}
|
|
5647
5647
|
);
|
|
5648
|
-
kf.displayName =
|
|
5649
|
-
function
|
|
5648
|
+
kf.displayName = ps;
|
|
5649
|
+
function hs(e, t) {
|
|
5650
5650
|
return `${e}-trigger-${t}`;
|
|
5651
5651
|
}
|
|
5652
|
-
function
|
|
5652
|
+
function ms(e, t) {
|
|
5653
5653
|
return `${e}-content-${t}`;
|
|
5654
5654
|
}
|
|
5655
|
-
var Ff =
|
|
5655
|
+
var Ff = cs, Lf = us, $f = fs;
|
|
5656
5656
|
function Vf({ value: e, onValueChange: t, children: n }) {
|
|
5657
5657
|
return /* @__PURE__ */ f(Ff, { value: e, onValueChange: t, children: n });
|
|
5658
5658
|
}
|
|
@@ -5670,12 +5670,12 @@ const In = {
|
|
|
5670
5670
|
function Uf({ prefilters: e, activePrefilter: t, onPrefilterChange: n }) {
|
|
5671
5671
|
var a;
|
|
5672
5672
|
const o = Zs(), r = lt(), i = e.find((c) => c.id === t), s = e.length > 0 && t !== ((a = e[0]) == null ? void 0 : a.id);
|
|
5673
|
-
return o || e.length > 4 ? /* @__PURE__ */
|
|
5673
|
+
return o || e.length > 4 ? /* @__PURE__ */ k(Ae.Root, { value: t, onValueChange: n, children: [
|
|
5674
5674
|
/* @__PURE__ */ f(Ae.Trigger, { className: `snow-w-fit snow-min-w-32 ${s ? "snow-state-active" : ""}`, children: /* @__PURE__ */ f(Ae.Value, { children: (i == null ? void 0 : i.label) || r("dataTable.selectFilter") }) }),
|
|
5675
5675
|
/* @__PURE__ */ f(Ae.Content, { children: e.map((c) => /* @__PURE__ */ f(Ae.Item, { value: c.id, children: c.label }, c.id)) })
|
|
5676
5676
|
] }) : /* @__PURE__ */ f(In.Root, { value: t, onValueChange: n, children: /* @__PURE__ */ f(In.List, { className: s ? "snow-state-active" : "", children: e.map((c) => /* @__PURE__ */ f(In.Trigger, { value: c.id, children: c.label }, c.id)) }) });
|
|
5677
5677
|
}
|
|
5678
|
-
const mo =
|
|
5678
|
+
const mo = Qo(
|
|
5679
5679
|
({ value: e, onChange: t, onKeyDown: n, placeholder: o, className: r, type: i = "text", isActive: s, ...a }, c) => /* @__PURE__ */ f(
|
|
5680
5680
|
"input",
|
|
5681
5681
|
{
|
|
@@ -5703,7 +5703,7 @@ function Kf({ value: e = "", onDebouncedChange: t, placeholder: n }) {
|
|
|
5703
5703
|
return () => clearTimeout(s);
|
|
5704
5704
|
}, [o, e, t]);
|
|
5705
5705
|
const i = o.length > 0;
|
|
5706
|
-
return /* @__PURE__ */ f("div", { className: "snow-searchbar snow-lg:min-w-[331px]", children: /* @__PURE__ */
|
|
5706
|
+
return /* @__PURE__ */ f("div", { className: "snow-searchbar snow-lg:min-w-[331px]", children: /* @__PURE__ */ k("div", { className: "snow-flex snow-relative", children: [
|
|
5707
5707
|
/* @__PURE__ */ f(
|
|
5708
5708
|
mo,
|
|
5709
5709
|
{
|
|
@@ -5716,7 +5716,7 @@ function Kf({ value: e = "", onDebouncedChange: t, placeholder: n }) {
|
|
|
5716
5716
|
className: Od().searchBar || void 0
|
|
5717
5717
|
}
|
|
5718
5718
|
),
|
|
5719
|
-
/* @__PURE__ */ f("span", { className: "snow-searchbar-icon", children: /* @__PURE__ */ f(
|
|
5719
|
+
/* @__PURE__ */ f("span", { className: "snow-searchbar-icon", children: /* @__PURE__ */ f(nr, { className: q(i ? "snow-state-active-text" : "snow-text-muted-foreground") }) })
|
|
5720
5720
|
] }) });
|
|
5721
5721
|
}
|
|
5722
5722
|
function Gf({
|
|
@@ -5742,17 +5742,17 @@ function Gf({
|
|
|
5742
5742
|
};
|
|
5743
5743
|
if (e.options.length === 0) return null;
|
|
5744
5744
|
const p = () => s === 0 ? e.label : s === 1 ? a[0] : s === 2 ? a.join(", ") : `${a.slice(0, 2).join(", ")} +${s - 2}`;
|
|
5745
|
-
return /* @__PURE__ */
|
|
5746
|
-
/* @__PURE__ */ f(ne.Trigger, { asChild: !0, children: /* @__PURE__ */
|
|
5747
|
-
/* @__PURE__ */
|
|
5745
|
+
return /* @__PURE__ */ k(ne.Root, { children: [
|
|
5746
|
+
/* @__PURE__ */ f(ne.Trigger, { asChild: !0, children: /* @__PURE__ */ k(Te, { className: q("snow-filter-btn snow-w-full snow-justify-between", s > 0 && "snow-state-active"), children: [
|
|
5747
|
+
/* @__PURE__ */ k("div", { className: "snow-filter-btn-content", children: [
|
|
5748
5748
|
e.multipleSelection ? /* @__PURE__ */ f(Gs, { className: q("snow-size-4 snow-shrink-0", s > 0 && "snow-state-active-text") }) : /* @__PURE__ */ f(Ks, { className: q("snow-size-4 snow-shrink-0", s > 0 && "snow-state-active-text") }),
|
|
5749
5749
|
/* @__PURE__ */ f("span", { className: "snow-truncate", children: p() })
|
|
5750
5750
|
] }),
|
|
5751
5751
|
/* @__PURE__ */ f(Hn, { className: "snow-size-3\\\\.5 snow-opacity-50 snow-shrink-0" })
|
|
5752
5752
|
] }) }),
|
|
5753
|
-
/* @__PURE__ */
|
|
5754
|
-
/* @__PURE__ */ f("div", { className: "snow-p-2", children: /* @__PURE__ */
|
|
5755
|
-
/* @__PURE__ */ f(
|
|
5753
|
+
/* @__PURE__ */ k(ne.Content, { align: "start", className: "snow-w-56", children: [
|
|
5754
|
+
/* @__PURE__ */ f("div", { className: "snow-p-2", children: /* @__PURE__ */ k("div", { className: "snow-filter-search", children: [
|
|
5755
|
+
/* @__PURE__ */ f(nr, { className: "snow-filter-search-icon" }),
|
|
5756
5756
|
/* @__PURE__ */ f(
|
|
5757
5757
|
mo,
|
|
5758
5758
|
{
|
|
@@ -5776,7 +5776,7 @@ function Gf({
|
|
|
5776
5776
|
},
|
|
5777
5777
|
h.value
|
|
5778
5778
|
)),
|
|
5779
|
-
s > 0 && /* @__PURE__ */
|
|
5779
|
+
s > 0 && /* @__PURE__ */ k(Zt, { children: [
|
|
5780
5780
|
/* @__PURE__ */ f(ne.Separator, {}),
|
|
5781
5781
|
/* @__PURE__ */ f(ne.Item, { onClick: l, className: "snow-text-xs snow-cursor-pointer snow-text-center snow-text-muted-foreground", children: o("dataTable.resetFilters") })
|
|
5782
5782
|
] })
|
|
@@ -5786,7 +5786,7 @@ function Gf({
|
|
|
5786
5786
|
function zf({ column: e }) {
|
|
5787
5787
|
return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ f(Hn, { className: "snow-sort-icon" }) : /* @__PURE__ */ f($s, { className: "snow-sort-icon" }) : /* @__PURE__ */ f(Hs, { className: "snow-sort-icon" });
|
|
5788
5788
|
}
|
|
5789
|
-
function
|
|
5789
|
+
function gs({
|
|
5790
5790
|
// Data
|
|
5791
5791
|
data: e,
|
|
5792
5792
|
columns: t,
|
|
@@ -5817,16 +5817,16 @@ function ms({
|
|
|
5817
5817
|
enableSorting: S = !0,
|
|
5818
5818
|
// Column visibility (external props with internal fallback)
|
|
5819
5819
|
columnVisibility: R,
|
|
5820
|
-
onColumnVisibilityChange:
|
|
5820
|
+
onColumnVisibilityChange: T,
|
|
5821
5821
|
enableColumnConfiguration: E = !1,
|
|
5822
5822
|
// UI options
|
|
5823
5823
|
onRowClick: x,
|
|
5824
5824
|
activeRowId: I,
|
|
5825
|
-
displayTotalNumber:
|
|
5826
|
-
enableElementLabel:
|
|
5825
|
+
displayTotalNumber: P = !0,
|
|
5826
|
+
enableElementLabel: F = !0,
|
|
5827
5827
|
enablePagination: L = !0,
|
|
5828
5828
|
paginationSizes: $,
|
|
5829
|
-
enableResponsive:
|
|
5829
|
+
enableResponsive: D = !0,
|
|
5830
5830
|
texts: B,
|
|
5831
5831
|
// Reset
|
|
5832
5832
|
onResetFilters: O,
|
|
@@ -5837,32 +5837,32 @@ function ms({
|
|
|
5837
5837
|
const M = lt(), [A, Y] = ce({
|
|
5838
5838
|
pageIndex: 0,
|
|
5839
5839
|
pageSize: hn[0]
|
|
5840
|
-
}), [Q, oe] = ce(""), [ye, de] = ce({}), [be, ie] = ce([]), [_, j] = ce({}), G = i ?? A, V = s ?? Y, H = c ?? Q, z = u ?? oe, te = g ?? ye, me = w ?? de, Fe = C ?? be, Ue = y ?? ie, He = R ?? _, gn =
|
|
5840
|
+
}), [Q, oe] = ce(""), [ye, de] = ce({}), [be, ie] = ce([]), [_, j] = ce({}), G = i ?? A, V = s ?? Y, H = c ?? Q, z = u ?? oe, te = g ?? ye, me = w ?? de, Fe = C ?? be, Ue = y ?? ie, He = R ?? _, gn = T ?? j, Qe = Se(
|
|
5841
5841
|
(U) => {
|
|
5842
5842
|
z(U), V((Z) => ({ ...Z, pageIndex: 0 }));
|
|
5843
5843
|
},
|
|
5844
5844
|
[z, V]
|
|
5845
|
-
),
|
|
5845
|
+
), ws = fe(() => JSON.stringify(te), [te]);
|
|
5846
5846
|
mt(() => {
|
|
5847
5847
|
V((U) => U.pageIndex === 0 ? U : { ...U, pageIndex: 0 });
|
|
5848
|
-
}, [v,
|
|
5849
|
-
const ge = r === "server",
|
|
5848
|
+
}, [v, ws, V]);
|
|
5849
|
+
const ge = r === "server", ys = a !== void 0 ? Math.ceil(a / G.pageSize) : void 0, bs = !ge || a !== void 0, Tt = fe(() => {
|
|
5850
5850
|
const U = /* @__PURE__ */ new Set();
|
|
5851
5851
|
for (const Z of t) {
|
|
5852
5852
|
const X = Z.accessorKey ?? Z.id;
|
|
5853
5853
|
typeof X == "string" && U.add(X);
|
|
5854
5854
|
}
|
|
5855
5855
|
return U;
|
|
5856
|
-
}, [t]),
|
|
5856
|
+
}, [t]), Cs = fe(() => Fe.filter((U) => Tt.has(U.id)), [Fe, Tt]), vn = fe(() => Object.entries(te).filter(([U]) => Tt.has(U)).map(([U, Z]) => ({ id: U, value: Z })), [te, Tt]), Ss = Se((U, Z, X) => {
|
|
5857
5857
|
const ve = U.getValue(Z);
|
|
5858
5858
|
return X.includes(String(ve));
|
|
5859
5859
|
}, []), Oe = Os({
|
|
5860
5860
|
data: e,
|
|
5861
5861
|
columns: t,
|
|
5862
|
-
pageCount: ge ?
|
|
5862
|
+
pageCount: ge ? ys : void 0,
|
|
5863
5863
|
state: {
|
|
5864
5864
|
pagination: G,
|
|
5865
|
-
sorting: S ?
|
|
5865
|
+
sorting: S ? Cs : void 0,
|
|
5866
5866
|
globalFilter: !ge && l ? H : void 0,
|
|
5867
5867
|
columnFilters: !ge && (h != null && h.length) ? vn : void 0,
|
|
5868
5868
|
columnVisibility: E ? He : void 0
|
|
@@ -5882,17 +5882,17 @@ function ms({
|
|
|
5882
5882
|
...!ge && (h != null && h.length || l) ? {
|
|
5883
5883
|
getFilteredRowModel: Ds(),
|
|
5884
5884
|
filterFns: {
|
|
5885
|
-
multiSelect:
|
|
5885
|
+
multiSelect: Ss
|
|
5886
5886
|
},
|
|
5887
5887
|
globalFilterFn: l ? p === "contains" ? la : ca : void 0
|
|
5888
5888
|
} : {}
|
|
5889
|
-
}),
|
|
5889
|
+
}), xs = (U, Z) => {
|
|
5890
5890
|
const X = String(U), ve = { ...te };
|
|
5891
5891
|
Z.length === 0 ? delete ve[X] : ve[X] = Z, me(ve);
|
|
5892
|
-
},
|
|
5893
|
-
return /* @__PURE__ */
|
|
5892
|
+
}, Es = l || P || h && h.length > 0 || E, Rs = fe(() => ge ? e.length : Oe.getRowModel().rows.length, [ge, e.length, Oe, H, vn]), As = fe(() => ge && a !== void 0 ? a : Oe.getFilteredRowModel().rows.length, [ge, a, Oe, e.length, H, vn]);
|
|
5893
|
+
return /* @__PURE__ */ k("div", { className: q("snow-table-container snow-table-root", W), "data-testid": "datatable", children: [
|
|
5894
5894
|
o && !n && /* @__PURE__ */ f("div", { className: "snow-table-loading-overlay" }),
|
|
5895
|
-
|
|
5895
|
+
Es && /* @__PURE__ */ k("div", { className: "snow-table-top-bar", children: [
|
|
5896
5896
|
/* @__PURE__ */ f("div", { className: "snow-topbar-left", children: m && m.length > 0 && b && /* @__PURE__ */ f(
|
|
5897
5897
|
Uf,
|
|
5898
5898
|
{
|
|
@@ -5909,19 +5909,19 @@ function ms({
|
|
|
5909
5909
|
placeholder: (B == null ? void 0 : B.searchPlaceholder) || M("dataTable.search")
|
|
5910
5910
|
}
|
|
5911
5911
|
) }) }),
|
|
5912
|
-
/* @__PURE__ */
|
|
5912
|
+
/* @__PURE__ */ k("div", { className: "snow-topbar-right", children: [
|
|
5913
5913
|
h == null ? void 0 : h.map((U) => /* @__PURE__ */ f(
|
|
5914
5914
|
Gf,
|
|
5915
5915
|
{
|
|
5916
5916
|
filter: U,
|
|
5917
5917
|
selectedValues: te[String(U.key)],
|
|
5918
|
-
onFilterChange:
|
|
5918
|
+
onFilterChange: xs
|
|
5919
5919
|
},
|
|
5920
5920
|
String(U.key)
|
|
5921
5921
|
)),
|
|
5922
5922
|
E && /* @__PURE__ */ f(Vd, { table: Oe }),
|
|
5923
5923
|
(l || m && m.length > 0 || h && h.length > 0) && O && /* @__PURE__ */ f(
|
|
5924
|
-
|
|
5924
|
+
Te,
|
|
5925
5925
|
{
|
|
5926
5926
|
onClick: O,
|
|
5927
5927
|
title: M("dataTable.resetFilters"),
|
|
@@ -5936,10 +5936,10 @@ function ms({
|
|
|
5936
5936
|
{
|
|
5937
5937
|
className: q(
|
|
5938
5938
|
"snow-table-wrapper",
|
|
5939
|
-
|
|
5939
|
+
D && "snow-responsive-container"
|
|
5940
5940
|
),
|
|
5941
|
-
children: /* @__PURE__ */
|
|
5942
|
-
/* @__PURE__ */ f("thead", { className: q("snow-table-header",
|
|
5941
|
+
children: /* @__PURE__ */ k("table", { className: "snow-table", "data-testid": "datatable-table", children: [
|
|
5942
|
+
/* @__PURE__ */ f("thead", { className: q("snow-table-header", D && "snow-responsive-thead"), children: Oe.getHeaderGroups().map((U) => /* @__PURE__ */ f("tr", { children: U.headers.map((Z) => {
|
|
5943
5943
|
var ve;
|
|
5944
5944
|
const X = (ve = Z.column.columnDef) == null ? void 0 : ve.meta;
|
|
5945
5945
|
return /* @__PURE__ */ f(
|
|
@@ -5952,7 +5952,7 @@ function ms({
|
|
|
5952
5952
|
"--snow-col-min-width": X == null ? void 0 : X.minWidth,
|
|
5953
5953
|
"--snow-col-max-width": X == null ? void 0 : X.maxWidth
|
|
5954
5954
|
},
|
|
5955
|
-
children: Z.isPlaceholder ? null : /* @__PURE__ */
|
|
5955
|
+
children: Z.isPlaceholder ? null : /* @__PURE__ */ k("span", { className: "snow-table-header-cell-content", children: [
|
|
5956
5956
|
/* @__PURE__ */ f("h3", { children: wo(Z.column.columnDef.header, Z.getContext()) }),
|
|
5957
5957
|
S && /* @__PURE__ */ f(zf, { column: Z.column })
|
|
5958
5958
|
] })
|
|
@@ -5960,10 +5960,10 @@ function ms({
|
|
|
5960
5960
|
Z.id
|
|
5961
5961
|
);
|
|
5962
5962
|
}) }, U.id)) }),
|
|
5963
|
-
n ? /* @__PURE__ */ f("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: G.pageSize > 10 ? 10 : G.pageSize }).map((U, Z) => /* @__PURE__ */ f("tr", { className: q({ "snow-table-row-alternate": Z % 2 === 1 }), children: t.map((X, ve) => /* @__PURE__ */ f("td", { className: "snow-table-cell", children: /* @__PURE__ */ f(Bd, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${ve}`)) }, Z)) }) :
|
|
5963
|
+
n ? /* @__PURE__ */ f("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: G.pageSize > 10 ? 10 : G.pageSize }).map((U, Z) => /* @__PURE__ */ f("tr", { className: q({ "snow-table-row-alternate": Z % 2 === 1 }), children: t.map((X, ve) => /* @__PURE__ */ f("td", { className: "snow-table-cell", children: /* @__PURE__ */ f(Bd, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${ve}`)) }, Z)) }) : Rs > 0 ? /* @__PURE__ */ f(
|
|
5964
5964
|
"tbody",
|
|
5965
5965
|
{
|
|
5966
|
-
className: q("snow-divide-y snow-divide-border",
|
|
5966
|
+
className: q("snow-divide-y snow-divide-border", D && "snow-responsive-tbody"),
|
|
5967
5967
|
"data-testid": "datatable-body",
|
|
5968
5968
|
children: Oe.getRowModel().rows.map((U, Z) => /* @__PURE__ */ f(
|
|
5969
5969
|
"tr",
|
|
@@ -5975,12 +5975,12 @@ function ms({
|
|
|
5975
5975
|
"snow-table-row-alternate": Z % 2 === 1,
|
|
5976
5976
|
"snow-table-row-active": I !== void 0 && "id" in U.original && I === U.original.id
|
|
5977
5977
|
},
|
|
5978
|
-
|
|
5978
|
+
D && "snow-responsive-row"
|
|
5979
5979
|
),
|
|
5980
5980
|
children: U.getVisibleCells().map((X, ve) => {
|
|
5981
5981
|
var vo;
|
|
5982
|
-
const
|
|
5983
|
-
return /* @__PURE__ */
|
|
5982
|
+
const Ts = typeof X.column.columnDef.header == "string" ? X.column.columnDef.header : X.column.id, Ps = ve === U.getVisibleCells().length - 1, ee = (vo = X.column.columnDef) == null ? void 0 : vo.meta;
|
|
5983
|
+
return /* @__PURE__ */ k(
|
|
5984
5984
|
"td",
|
|
5985
5985
|
{
|
|
5986
5986
|
onClick: () => x && !(ee != null && ee.disableColumnClick) && x(U.original),
|
|
@@ -5988,7 +5988,7 @@ function ms({
|
|
|
5988
5988
|
x && !(ee != null && ee.disableColumnClick) && "snow-cursor-pointer",
|
|
5989
5989
|
(ee == null ? void 0 : ee.center) && "snow-align-middle snow-text-center",
|
|
5990
5990
|
(ee == null ? void 0 : ee.maxWidth) !== void 0 && "snow-cell-truncate",
|
|
5991
|
-
|
|
5991
|
+
D ? q("snow-responsive-cell", Ps && "snow-responsive-cell-last") : "snow-table-cell"
|
|
5992
5992
|
),
|
|
5993
5993
|
style: {
|
|
5994
5994
|
"--snow-col-width": ee == null ? void 0 : ee.width,
|
|
@@ -5996,8 +5996,8 @@ function ms({
|
|
|
5996
5996
|
"--snow-col-max-width": ee == null ? void 0 : ee.maxWidth
|
|
5997
5997
|
},
|
|
5998
5998
|
children: [
|
|
5999
|
-
|
|
6000
|
-
/* @__PURE__ */ f("span", { className: q(
|
|
5999
|
+
D && /* @__PURE__ */ f("span", { className: "snow-responsive-cell-label", children: Ts }),
|
|
6000
|
+
/* @__PURE__ */ f("span", { className: q(D && "snow-responsive-cell-content"), children: wo(X.column.columnDef.cell, X.getContext()) })
|
|
6001
6001
|
]
|
|
6002
6002
|
},
|
|
6003
6003
|
X.id
|
|
@@ -6011,24 +6011,26 @@ function ms({
|
|
|
6011
6011
|
] })
|
|
6012
6012
|
}
|
|
6013
6013
|
),
|
|
6014
|
-
/* @__PURE__ */
|
|
6015
|
-
|
|
6016
|
-
|
|
6014
|
+
/* @__PURE__ */ k("div", { className: "snow-table-bottom-bar", children: [
|
|
6015
|
+
P && /* @__PURE__ */ k("div", { className: "snow-table-count", "data-testid": "datatable-count", children: [
|
|
6016
|
+
As,
|
|
6017
6017
|
" ",
|
|
6018
6018
|
M("dataTable.elements")
|
|
6019
6019
|
] }),
|
|
6020
|
-
/* @__PURE__ */ f("div", { className: "snow-flex snow-justify-center", children: L &&
|
|
6021
|
-
L && /* @__PURE__ */ f("div", { className: "snow-flex snow-justify-end", children: /* @__PURE__ */ f(_f, { table: Oe, enableElementLabel:
|
|
6020
|
+
/* @__PURE__ */ f("div", { className: "snow-flex snow-justify-center", children: L && bs && /* @__PURE__ */ f(Nf, { table: Oe, isLoading: o }) }),
|
|
6021
|
+
L && /* @__PURE__ */ f("div", { className: "snow-flex snow-justify-end", children: /* @__PURE__ */ f(_f, { table: Oe, enableElementLabel: F, paginationSizes: $ }) })
|
|
6022
6022
|
] })
|
|
6023
6023
|
] });
|
|
6024
6024
|
}
|
|
6025
6025
|
const Zo = 8;
|
|
6026
6026
|
function jf({ label: e, x: t, y: n }) {
|
|
6027
6027
|
const o = gt(null), r = gt(null);
|
|
6028
|
-
return
|
|
6028
|
+
return er(() => {
|
|
6029
6029
|
const s = o.current, a = r.current;
|
|
6030
6030
|
if (!s || !a) return;
|
|
6031
|
-
const c = s.offsetWidth
|
|
6031
|
+
const c = s.offsetWidth;
|
|
6032
|
+
if (c === 0) return;
|
|
6033
|
+
const u = window.innerWidth - Zo, l = Zo;
|
|
6032
6034
|
let p = t;
|
|
6033
6035
|
if (t + c / 2 > u && (p = u - c / 2), t - c / 2 < l && (p = l + c / 2), p !== t) {
|
|
6034
6036
|
s.style.left = `${p}px`;
|
|
@@ -6036,7 +6038,7 @@ function jf({ label: e, x: t, y: n }) {
|
|
|
6036
6038
|
a.style.left = `calc(50% + ${h}%)`;
|
|
6037
6039
|
}
|
|
6038
6040
|
}, [t, e]), _s(
|
|
6039
|
-
/* @__PURE__ */
|
|
6041
|
+
/* @__PURE__ */ k("div", { ref: o, style: {
|
|
6040
6042
|
position: "fixed",
|
|
6041
6043
|
left: t,
|
|
6042
6044
|
top: n,
|
|
@@ -6072,7 +6074,7 @@ function Xf({ item: e, actions: t, onAction: n }) {
|
|
|
6072
6074
|
},
|
|
6073
6075
|
[r, n, e]
|
|
6074
6076
|
);
|
|
6075
|
-
return /* @__PURE__ */
|
|
6077
|
+
return /* @__PURE__ */ k("div", { className: "snow-action-cell", onClick: (c) => c.stopPropagation(), children: [
|
|
6076
6078
|
r.state && /* @__PURE__ */ f(jf, { ...r.state }),
|
|
6077
6079
|
i.map((c, u) => {
|
|
6078
6080
|
const l = typeof c == "function" ? c(e) : c, p = l.icon;
|
|
@@ -6083,7 +6085,7 @@ function Xf({ item: e, actions: t, onAction: n }) {
|
|
|
6083
6085
|
{
|
|
6084
6086
|
onMouseEnter: (w) => r.show(l.label, w.currentTarget),
|
|
6085
6087
|
onMouseLeave: r.hide,
|
|
6086
|
-
children: /* @__PURE__ */
|
|
6088
|
+
children: /* @__PURE__ */ k(
|
|
6087
6089
|
o,
|
|
6088
6090
|
{
|
|
6089
6091
|
to: g,
|
|
@@ -6101,8 +6103,8 @@ function Xf({ item: e, actions: t, onAction: n }) {
|
|
|
6101
6103
|
`link-${l.label}-${u}`
|
|
6102
6104
|
);
|
|
6103
6105
|
}
|
|
6104
|
-
return /* @__PURE__ */
|
|
6105
|
-
|
|
6106
|
+
return /* @__PURE__ */ k(
|
|
6107
|
+
Te,
|
|
6106
6108
|
{
|
|
6107
6109
|
className: q("snow-action-btn", l.showLabel ? "" : "snow-btn-icon", l.className),
|
|
6108
6110
|
onClick: () => a(l),
|
|
@@ -6117,13 +6119,13 @@ function Xf({ item: e, actions: t, onAction: n }) {
|
|
|
6117
6119
|
`button-${l.label}-${u}`
|
|
6118
6120
|
);
|
|
6119
6121
|
}),
|
|
6120
|
-
s.length > 0 && /* @__PURE__ */
|
|
6121
|
-
/* @__PURE__ */ f(ne.Trigger, { asChild: !0, children: /* @__PURE__ */ f(
|
|
6122
|
+
s.length > 0 && /* @__PURE__ */ k(ne.Root, { children: [
|
|
6123
|
+
/* @__PURE__ */ f(ne.Trigger, { asChild: !0, children: /* @__PURE__ */ f(Te, { className: "snow-btn-icon-lg", children: /* @__PURE__ */ f(Ys, { className: "snow-size-4" }) }) }),
|
|
6122
6124
|
/* @__PURE__ */ f(ne.Content, { align: "end", children: s.map((c, u) => {
|
|
6123
6125
|
const l = typeof c == "function" ? c(e) : c, p = l.icon;
|
|
6124
6126
|
if (l.type === "link") {
|
|
6125
6127
|
const h = l, g = h.href(e);
|
|
6126
|
-
return /* @__PURE__ */ f(ne.Item, { asChild: !0, disabled: l.disabled, children: /* @__PURE__ */
|
|
6128
|
+
return /* @__PURE__ */ f(ne.Item, { asChild: !0, disabled: l.disabled, children: /* @__PURE__ */ k(
|
|
6127
6129
|
o,
|
|
6128
6130
|
{
|
|
6129
6131
|
to: g,
|
|
@@ -6137,7 +6139,7 @@ function Xf({ item: e, actions: t, onAction: n }) {
|
|
|
6137
6139
|
}
|
|
6138
6140
|
) }, `dropdown-${l.label}-${u}`);
|
|
6139
6141
|
}
|
|
6140
|
-
return /* @__PURE__ */
|
|
6142
|
+
return /* @__PURE__ */ k(
|
|
6141
6143
|
ne.Item,
|
|
6142
6144
|
{
|
|
6143
6145
|
onClick: () => a(l),
|
|
@@ -6154,13 +6156,13 @@ function Xf({ item: e, actions: t, onAction: n }) {
|
|
|
6154
6156
|
] })
|
|
6155
6157
|
] });
|
|
6156
6158
|
}
|
|
6157
|
-
const Zf = Ms(Xf),
|
|
6159
|
+
const Zf = Ms(Xf), vs = ({
|
|
6158
6160
|
columnConfig: e,
|
|
6159
6161
|
actions: t,
|
|
6160
6162
|
filters: n,
|
|
6161
6163
|
mode: o
|
|
6162
6164
|
}) => {
|
|
6163
|
-
const r = lt(), { mutate: i } =
|
|
6165
|
+
const r = lt(), { mutate: i } = Is({
|
|
6164
6166
|
mutationFn: async (c) => c.endpoint(c.item)
|
|
6165
6167
|
}), s = async (c, u) => {
|
|
6166
6168
|
const l = typeof c == "function" ? c(u) : c;
|
|
@@ -6218,7 +6220,7 @@ const Zf = Ms(Xf), gs = ({
|
|
|
6218
6220
|
}, [e, t, n, o, r]),
|
|
6219
6221
|
handleAction: s
|
|
6220
6222
|
};
|
|
6221
|
-
},
|
|
6223
|
+
}, qf = [], cp = ({
|
|
6222
6224
|
queryKey: e,
|
|
6223
6225
|
columnConfig: t,
|
|
6224
6226
|
actions: n,
|
|
@@ -6232,7 +6234,7 @@ const Zf = Ms(Xf), gs = ({
|
|
|
6232
6234
|
fetchAllItemsEndpoint: l,
|
|
6233
6235
|
...p
|
|
6234
6236
|
}) => {
|
|
6235
|
-
var
|
|
6237
|
+
var $;
|
|
6236
6238
|
const {
|
|
6237
6239
|
pagination: h,
|
|
6238
6240
|
setPagination: g,
|
|
@@ -6244,29 +6246,31 @@ const Zf = Ms(Xf), gs = ({
|
|
|
6244
6246
|
setColumnFilters: y,
|
|
6245
6247
|
sorting: S,
|
|
6246
6248
|
setSorting: R,
|
|
6247
|
-
resetToDefaults:
|
|
6248
|
-
} =
|
|
6249
|
+
resetToDefaults: T
|
|
6250
|
+
} = or({
|
|
6249
6251
|
enabled: u,
|
|
6250
|
-
defaultPrefilter: (
|
|
6252
|
+
defaultPrefilter: ($ = r == null ? void 0 : r[0]) == null ? void 0 : $.id,
|
|
6251
6253
|
defaultPageSize: c,
|
|
6252
6254
|
defaultSortBy: s,
|
|
6253
6255
|
defaultSortOrder: a
|
|
6254
|
-
}), { data: E
|
|
6256
|
+
}), { data: E, isLoading: x, isFetching: I } = qo({
|
|
6255
6257
|
queryKey: e,
|
|
6256
|
-
queryFn: () => l()
|
|
6257
|
-
|
|
6258
|
+
queryFn: () => l(),
|
|
6259
|
+
placeholderData: Jo
|
|
6260
|
+
}), P = E ?? qf, F = fe(() => !P || !v || !i ? P : P.filter((D) => i(D, v)), [P, v, i]), { columns: L } = vs({
|
|
6258
6261
|
columnConfig: t,
|
|
6259
6262
|
actions: n,
|
|
6260
6263
|
filters: o,
|
|
6261
6264
|
mode: "client"
|
|
6262
6265
|
});
|
|
6263
6266
|
return /* @__PURE__ */ f(
|
|
6264
|
-
|
|
6267
|
+
gs,
|
|
6265
6268
|
{
|
|
6266
6269
|
mode: "client",
|
|
6267
|
-
data:
|
|
6268
|
-
columns:
|
|
6270
|
+
data: F,
|
|
6271
|
+
columns: L,
|
|
6269
6272
|
isLoading: x,
|
|
6273
|
+
isFetching: I && !x,
|
|
6270
6274
|
pagination: h,
|
|
6271
6275
|
onPaginationChange: g,
|
|
6272
6276
|
globalFilter: w,
|
|
@@ -6279,11 +6283,11 @@ const Zf = Ms(Xf), gs = ({
|
|
|
6279
6283
|
onPrefilterChange: b,
|
|
6280
6284
|
sorting: S,
|
|
6281
6285
|
onSortingChange: R,
|
|
6282
|
-
onResetFilters:
|
|
6286
|
+
onResetFilters: T,
|
|
6283
6287
|
...p
|
|
6284
6288
|
}
|
|
6285
6289
|
);
|
|
6286
|
-
},
|
|
6290
|
+
}, lp = ({
|
|
6287
6291
|
queryKey: e,
|
|
6288
6292
|
columnConfig: t,
|
|
6289
6293
|
actions: n,
|
|
@@ -6296,7 +6300,7 @@ const Zf = Ms(Xf), gs = ({
|
|
|
6296
6300
|
fetchServerEndpoint: u,
|
|
6297
6301
|
...l
|
|
6298
6302
|
}) => {
|
|
6299
|
-
var x, I,
|
|
6303
|
+
var x, I, P;
|
|
6300
6304
|
const {
|
|
6301
6305
|
pagination: p,
|
|
6302
6306
|
setPagination: h,
|
|
@@ -6309,42 +6313,42 @@ const Zf = Ms(Xf), gs = ({
|
|
|
6309
6313
|
sorting: y,
|
|
6310
6314
|
setSorting: S,
|
|
6311
6315
|
resetToDefaults: R
|
|
6312
|
-
} =
|
|
6316
|
+
} = or({
|
|
6313
6317
|
enabled: c,
|
|
6314
6318
|
defaultPrefilter: (x = r == null ? void 0 : r[0]) == null ? void 0 : x.id,
|
|
6315
6319
|
defaultPageSize: a,
|
|
6316
6320
|
defaultSortBy: i,
|
|
6317
6321
|
defaultSortOrder: s
|
|
6318
|
-
}),
|
|
6322
|
+
}), T = qo({
|
|
6319
6323
|
queryKey: [...e, "server", p, g, m, b, y],
|
|
6320
6324
|
queryFn: async () => {
|
|
6321
|
-
var
|
|
6325
|
+
var F, L;
|
|
6322
6326
|
return u({
|
|
6323
6327
|
limit: p.pageSize,
|
|
6324
6328
|
offset: p.pageIndex * p.pageSize,
|
|
6325
6329
|
search: g || void 0,
|
|
6326
6330
|
prefilter: m,
|
|
6327
6331
|
filters: Object.keys(b).length > 0 ? b : void 0,
|
|
6328
|
-
sortBy: (
|
|
6332
|
+
sortBy: (F = y[0]) == null ? void 0 : F.id,
|
|
6329
6333
|
sortOrder: (L = y[0]) != null && L.desc ? "DESC" : "ASC"
|
|
6330
6334
|
});
|
|
6331
6335
|
},
|
|
6332
|
-
placeholderData:
|
|
6333
|
-
}), { columns: E } =
|
|
6336
|
+
placeholderData: Jo
|
|
6337
|
+
}), { columns: E } = vs({
|
|
6334
6338
|
columnConfig: t,
|
|
6335
6339
|
actions: n,
|
|
6336
6340
|
filters: o,
|
|
6337
6341
|
mode: "server"
|
|
6338
6342
|
});
|
|
6339
6343
|
return /* @__PURE__ */ f(
|
|
6340
|
-
|
|
6344
|
+
gs,
|
|
6341
6345
|
{
|
|
6342
6346
|
mode: "server",
|
|
6343
|
-
data: ((I =
|
|
6347
|
+
data: ((I = T.data) == null ? void 0 : I.items) ?? [],
|
|
6344
6348
|
columns: E,
|
|
6345
|
-
isLoading:
|
|
6346
|
-
isFetching:
|
|
6347
|
-
totalCount: ((
|
|
6349
|
+
isLoading: T.isLoading,
|
|
6350
|
+
isFetching: T.isFetching,
|
|
6351
|
+
totalCount: ((P = T.data) == null ? void 0 : P.totalItemCount) ?? 0,
|
|
6348
6352
|
pagination: p,
|
|
6349
6353
|
onPaginationChange: h,
|
|
6350
6354
|
globalFilter: g,
|
|
@@ -6367,22 +6371,22 @@ export {
|
|
|
6367
6371
|
Zf as ActionCell,
|
|
6368
6372
|
Vd as ColumnConfiguration,
|
|
6369
6373
|
hn as DEFAULT_PAGE_SIZES,
|
|
6370
|
-
|
|
6374
|
+
gs as DataTable,
|
|
6371
6375
|
_f as PageSizeSelector,
|
|
6372
6376
|
Nf as Pagination,
|
|
6373
6377
|
Uf as PrefilterTabs,
|
|
6374
6378
|
Kf as SearchBar,
|
|
6375
6379
|
Gf as SingleFilterDropdown,
|
|
6376
|
-
|
|
6377
|
-
|
|
6380
|
+
cp as SnowClientDataTable,
|
|
6381
|
+
lp as SnowServerDataTable,
|
|
6378
6382
|
zf as SortButton,
|
|
6379
6383
|
jf as Tooltip,
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6384
|
+
ap as isSnowTableSetup,
|
|
6385
|
+
op as redirectToPageWithParam,
|
|
6386
|
+
sp as resetSnowTable,
|
|
6387
|
+
ip as setupSnowTable,
|
|
6388
|
+
vs as useSnowColumns,
|
|
6389
|
+
or as useTableStatePersist,
|
|
6386
6390
|
Yf as useTooltip
|
|
6387
6391
|
};
|
|
6388
6392
|
//# sourceMappingURL=index.js.map
|