@snowpact/react-tanstack-query-table 1.7.4 → 1.7.5
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/README.md +20 -0
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.js +628 -623
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as k, jsx as p, Fragment as Gt } from "react/jsx-runtime";
|
|
2
|
-
import { useMutation as
|
|
2
|
+
import { useMutation as bs, useQuery as zo, keepPreviousData as Cs } from "@tanstack/react-query";
|
|
3
3
|
import * as d from "react";
|
|
4
|
-
import Ke, { useState as ce, useEffect as ht, useRef as Rn, useCallback as Ce, useMemo as Se, forwardRef as jo, useLayoutEffect as
|
|
4
|
+
import Ke, { useState as ce, useEffect as ht, useRef as Rn, useCallback as Ce, useMemo as Se, forwardRef as jo, useLayoutEffect as Ss, memo as xs } from "react";
|
|
5
5
|
import * as zt from "react-dom";
|
|
6
|
-
import
|
|
7
|
-
import { useReactTable as
|
|
6
|
+
import Es, { createPortal as Rs } from "react-dom";
|
|
7
|
+
import { useReactTable as As, getFilteredRowModel as Ps, getPaginationRowModel as Ts, getSortedRowModel as Is, getCoreRowModel as Ms, flexRender as ho } from "@tanstack/react-table";
|
|
8
8
|
const le = ({ children: e, ...t }) => /* @__PURE__ */ p(
|
|
9
9
|
"svg",
|
|
10
10
|
{
|
|
@@ -20,24 +20,24 @@ const le = ({ children: e, ...t }) => /* @__PURE__ */ p(
|
|
|
20
20
|
...t,
|
|
21
21
|
children: e
|
|
22
22
|
}
|
|
23
|
-
), Yo = (e) => /* @__PURE__ */ p(le, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Wn = (e) => /* @__PURE__ */ p(le, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }),
|
|
23
|
+
), Yo = (e) => /* @__PURE__ */ p(le, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Wn = (e) => /* @__PURE__ */ p(le, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), Ns = (e) => /* @__PURE__ */ p(le, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), _s = (e) => /* @__PURE__ */ p(le, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Os = (e) => /* @__PURE__ */ p(le, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), Ds = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
24
24
|
/* @__PURE__ */ p("path", { d: "m11 17-5-5 5-5" }),
|
|
25
25
|
/* @__PURE__ */ p("path", { d: "m18 17-5-5 5-5" })
|
|
26
|
-
] }),
|
|
26
|
+
] }), ks = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
27
27
|
/* @__PURE__ */ p("path", { d: "m6 17 5-5-5-5" }),
|
|
28
28
|
/* @__PURE__ */ p("path", { d: "m13 17 5-5-5-5" })
|
|
29
|
-
] }),
|
|
29
|
+
] }), Fs = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
30
30
|
/* @__PURE__ */ p("path", { d: "m7 15 5 5 5-5" }),
|
|
31
31
|
/* @__PURE__ */ p("path", { d: "m7 9 5-5 5 5" })
|
|
32
|
-
] }),
|
|
32
|
+
] }), Ls = (e) => /* @__PURE__ */ p(le, { ...e, children: /* @__PURE__ */ p("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }) }), $s = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
33
33
|
/* @__PURE__ */ p("path", { d: "M3 6h18" }),
|
|
34
34
|
/* @__PURE__ */ p("path", { d: "M7 12h10" }),
|
|
35
35
|
/* @__PURE__ */ p("path", { d: "M10 18h4" })
|
|
36
|
-
] }),
|
|
36
|
+
] }), Vs = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
37
37
|
/* @__PURE__ */ p("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__ */ p("path", { d: "m22 22-4-4" }),
|
|
39
39
|
/* @__PURE__ */ p("path", { d: "m18 22 4-4" })
|
|
40
|
-
] }),
|
|
40
|
+
] }), Bs = (e) => /* @__PURE__ */ p(le, { ...e, children: /* @__PURE__ */ p("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Ws = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
41
41
|
/* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "1" }),
|
|
42
42
|
/* @__PURE__ */ p("circle", { cx: "12", cy: "5", r: "1" }),
|
|
43
43
|
/* @__PURE__ */ p("circle", { cx: "12", cy: "19", r: "1" })
|
|
@@ -47,7 +47,7 @@ const le = ({ children: e, ...t }) => /* @__PURE__ */ p(
|
|
|
47
47
|
] }), mo = (e) => /* @__PURE__ */ k(le, { ...e, children: [
|
|
48
48
|
/* @__PURE__ */ p("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__ */ p("circle", { cx: "12", cy: "12", r: "3" })
|
|
50
|
-
] }),
|
|
50
|
+
] }), Us = Wn;
|
|
51
51
|
function q(...e) {
|
|
52
52
|
const t = [], n = (o) => {
|
|
53
53
|
if (o) {
|
|
@@ -66,7 +66,7 @@ function q(...e) {
|
|
|
66
66
|
return t.join(" ");
|
|
67
67
|
}
|
|
68
68
|
const pn = 768;
|
|
69
|
-
function
|
|
69
|
+
function Hs() {
|
|
70
70
|
const [e, t] = ce(void 0);
|
|
71
71
|
return ht(() => {
|
|
72
72
|
if (typeof window > "u" || !window.matchMedia)
|
|
@@ -77,7 +77,7 @@ function Us() {
|
|
|
77
77
|
return n.addEventListener("change", o), t(window.innerWidth < pn), () => n.removeEventListener("change", o);
|
|
78
78
|
}, []), !!e;
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const Ks = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, Gs = (e) => Ks(e) ? String(e) : JSON.stringify(e, null, 2), Nt = "dt_prefilter", _t = "dt_search", Ot = "dt_page", An = "dt_pageSize", Dt = "dt_filters", ut = "dt_sortBy", dt = "dt_sortDesc", Ge = (e) => {
|
|
81
81
|
if (typeof window > "u") return null;
|
|
82
82
|
try {
|
|
83
83
|
return new URL(window.location.href).searchParams.get(e);
|
|
@@ -126,7 +126,7 @@ const Hs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
126
126
|
if (e) {
|
|
127
127
|
const x = Ge(Dt);
|
|
128
128
|
if (x)
|
|
129
|
-
return
|
|
129
|
+
return zs(x);
|
|
130
130
|
}
|
|
131
131
|
return {};
|
|
132
132
|
}), C = Ce((x) => {
|
|
@@ -173,7 +173,7 @@ const Hs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
173
173
|
!n || r.length === 0 || t.push(`${n}:${r.join(",")}`);
|
|
174
174
|
}
|
|
175
175
|
return t.join("|");
|
|
176
|
-
},
|
|
176
|
+
}, zs = (e) => {
|
|
177
177
|
if (!e) return {};
|
|
178
178
|
const t = {}, n = e.split("|").map((o) => o.trim()).filter(Boolean);
|
|
179
179
|
for (const o of n) {
|
|
@@ -183,7 +183,7 @@ const Hs = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
183
183
|
a.length > 0 && (t[r] = a);
|
|
184
184
|
}
|
|
185
185
|
return t;
|
|
186
|
-
},
|
|
186
|
+
}, jf = (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(Nt, t.prefilter), t.search && n.searchParams.set(_t, t.search), t.pagination) {
|
|
@@ -611,9 +611,9 @@ const Jo = {
|
|
|
611
611
|
x̧: "x",
|
|
612
612
|
Z̧: "Z",
|
|
613
613
|
z̧: "z"
|
|
614
|
-
},
|
|
615
|
-
function
|
|
616
|
-
return e.replace(
|
|
614
|
+
}, js = Object.keys(Jo).join("|"), Ys = new RegExp(js, "g");
|
|
615
|
+
function Xs(e) {
|
|
616
|
+
return e.replace(Ys, (t) => Jo[t]);
|
|
617
617
|
}
|
|
618
618
|
/**
|
|
619
619
|
* @name match-sorter
|
|
@@ -631,7 +631,7 @@ const fe = {
|
|
|
631
631
|
MATCHES: 1,
|
|
632
632
|
NO_MATCH: 0
|
|
633
633
|
};
|
|
634
|
-
function
|
|
634
|
+
function Zs(e, t, n) {
|
|
635
635
|
var o;
|
|
636
636
|
if (n = n || {}, n.threshold = (o = n.threshold) != null ? o : fe.MATCHES, !n.accessors) {
|
|
637
637
|
const a = go(e, t, n);
|
|
@@ -644,7 +644,7 @@ function Xs(e, t, n) {
|
|
|
644
644
|
passed: a >= n.threshold
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
|
-
const r =
|
|
647
|
+
const r = ea(e, n.accessors), i = {
|
|
648
648
|
rankedValue: e,
|
|
649
649
|
rank: fe.NO_MATCH,
|
|
650
650
|
accessorIndex: -1,
|
|
@@ -664,9 +664,9 @@ function Xs(e, t, n) {
|
|
|
664
664
|
return i;
|
|
665
665
|
}
|
|
666
666
|
function go(e, t, n) {
|
|
667
|
-
return e = vo(e, n), t = vo(t, n), t.length > e.length ? fe.NO_MATCH : e === t ? fe.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? fe.EQUAL : e.startsWith(t) ? fe.STARTS_WITH : e.includes(` ${t}`) ? fe.WORD_STARTS_WITH : e.includes(t) ? fe.CONTAINS : t.length === 1 ? fe.NO_MATCH :
|
|
667
|
+
return e = vo(e, n), t = vo(t, n), t.length > e.length ? fe.NO_MATCH : e === t ? fe.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? fe.EQUAL : e.startsWith(t) ? fe.STARTS_WITH : e.includes(` ${t}`) ? fe.WORD_STARTS_WITH : e.includes(t) ? fe.CONTAINS : t.length === 1 ? fe.NO_MATCH : qs(e).includes(t) ? fe.ACRONYM : Js(e, t));
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function qs(e) {
|
|
670
670
|
let t = "";
|
|
671
671
|
return e.split(" ").forEach((o) => {
|
|
672
672
|
o.split("-").forEach((i) => {
|
|
@@ -674,7 +674,7 @@ function Zs(e) {
|
|
|
674
674
|
});
|
|
675
675
|
}), t;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Js(e, t) {
|
|
678
678
|
let n = 0, o = 0;
|
|
679
679
|
function r(c, u, l) {
|
|
680
680
|
for (let f = l, h = u.length; f < h; f++)
|
|
@@ -702,18 +702,18 @@ function vo(e, t) {
|
|
|
702
702
|
let {
|
|
703
703
|
keepDiacritics: n
|
|
704
704
|
} = t;
|
|
705
|
-
return e = `${e}`, n || (e =
|
|
705
|
+
return e = `${e}`, n || (e = Xs(e)), e;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function Qs(e, t) {
|
|
708
708
|
let n = t;
|
|
709
709
|
typeof t == "object" && (n = t.accessor);
|
|
710
710
|
const o = n(e);
|
|
711
711
|
return o == null ? [] : Array.isArray(o) ? o : [String(o)];
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function ea(e, t) {
|
|
714
714
|
const n = [];
|
|
715
715
|
for (let o = 0, r = t.length; o < r; o++) {
|
|
716
|
-
const i = t[o], a =
|
|
716
|
+
const i = t[o], a = ta(i), s = Qs(e, i);
|
|
717
717
|
for (let c = 0, u = s.length; c < u; c++)
|
|
718
718
|
n.push({
|
|
719
719
|
itemValue: s[c],
|
|
@@ -726,14 +726,14 @@ const wo = {
|
|
|
726
726
|
maxRanking: 1 / 0,
|
|
727
727
|
minRanking: -1 / 0
|
|
728
728
|
};
|
|
729
|
-
function
|
|
729
|
+
function ta(e) {
|
|
730
730
|
return typeof e == "function" ? wo : {
|
|
731
731
|
...wo,
|
|
732
732
|
...e
|
|
733
733
|
};
|
|
734
734
|
}
|
|
735
|
-
const
|
|
736
|
-
const r =
|
|
735
|
+
const na = (e, t, n, o) => {
|
|
736
|
+
const r = Zs(e.getValue(t), n);
|
|
737
737
|
return o({
|
|
738
738
|
itemRank: r
|
|
739
739
|
}), r.passed;
|
|
@@ -744,7 +744,7 @@ const ta = (e, t, n, o) => {
|
|
|
744
744
|
} catch (n) {
|
|
745
745
|
console.warn("Failed to save column configuration:", n);
|
|
746
746
|
}
|
|
747
|
-
},
|
|
747
|
+
}, oa = (e) => {
|
|
748
748
|
var t;
|
|
749
749
|
try {
|
|
750
750
|
const n = `${Qo}${e}`, o = (t = document.cookie.split("; ").find((r) => r.startsWith(`${n}=`))) == null ? void 0 : t.split("=")[1];
|
|
@@ -756,14 +756,14 @@ const ta = (e, t, n, o) => {
|
|
|
756
756
|
console.warn("Failed to load column configuration:", n);
|
|
757
757
|
}
|
|
758
758
|
return null;
|
|
759
|
-
},
|
|
759
|
+
}, ra = (e) => {
|
|
760
760
|
try {
|
|
761
761
|
const t = `${Qo}${e}`;
|
|
762
762
|
document.cookie = `${t}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT`;
|
|
763
763
|
} catch (t) {
|
|
764
764
|
console.warn("Failed to delete column configuration:", t);
|
|
765
765
|
}
|
|
766
|
-
},
|
|
766
|
+
}, ia = () => {
|
|
767
767
|
try {
|
|
768
768
|
const t = new Error().stack;
|
|
769
769
|
if (t) {
|
|
@@ -867,9 +867,9 @@ function Ze(e, t = []) {
|
|
|
867
867
|
);
|
|
868
868
|
};
|
|
869
869
|
};
|
|
870
|
-
return r.scopeName = e, [o,
|
|
870
|
+
return r.scopeName = e, [o, sa(r, ...t)];
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function sa(...e) {
|
|
873
873
|
const t = e[0];
|
|
874
874
|
if (e.length === 1) return t;
|
|
875
875
|
const n = () => {
|
|
@@ -888,7 +888,7 @@ function ia(...e) {
|
|
|
888
888
|
return n.scopeName = t.scopeName, n;
|
|
889
889
|
}
|
|
890
890
|
var re = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
|
|
891
|
-
},
|
|
891
|
+
}, aa = d[" useInsertionEffect ".trim().toString()] || re;
|
|
892
892
|
function mt({
|
|
893
893
|
prop: e,
|
|
894
894
|
defaultProp: t,
|
|
@@ -896,7 +896,7 @@ function mt({
|
|
|
896
896
|
},
|
|
897
897
|
caller: o
|
|
898
898
|
}) {
|
|
899
|
-
const [r, i, a] =
|
|
899
|
+
const [r, i, a] = ca({
|
|
900
900
|
defaultProp: t,
|
|
901
901
|
onChange: n
|
|
902
902
|
}), s = e !== void 0, c = s ? e : r;
|
|
@@ -913,7 +913,7 @@ function mt({
|
|
|
913
913
|
(l) => {
|
|
914
914
|
var f;
|
|
915
915
|
if (s) {
|
|
916
|
-
const h =
|
|
916
|
+
const h = la(l) ? l(e) : l;
|
|
917
917
|
h !== e && ((f = a.current) == null || f.call(a, h));
|
|
918
918
|
} else
|
|
919
919
|
i(l);
|
|
@@ -922,25 +922,25 @@ function mt({
|
|
|
922
922
|
);
|
|
923
923
|
return [c, u];
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function ca({
|
|
926
926
|
defaultProp: e,
|
|
927
927
|
onChange: t
|
|
928
928
|
}) {
|
|
929
929
|
const [n, o] = d.useState(e), r = d.useRef(n), i = d.useRef(t);
|
|
930
|
-
return
|
|
930
|
+
return aa(() => {
|
|
931
931
|
i.current = t;
|
|
932
932
|
}, [t]), d.useEffect(() => {
|
|
933
933
|
var a;
|
|
934
934
|
r.current !== n && ((a = i.current) == null || a.call(i, n), r.current = n);
|
|
935
935
|
}, [n, r]), [n, o, i];
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function la(e) {
|
|
938
938
|
return typeof e == "function";
|
|
939
939
|
}
|
|
940
940
|
// @__NO_SIDE_EFFECTS__
|
|
941
941
|
function gt(e) {
|
|
942
|
-
const t = /* @__PURE__ */
|
|
943
|
-
const { children: i, ...a } = o, s = d.Children.toArray(i), c = s.find(
|
|
942
|
+
const t = /* @__PURE__ */ ua(e), n = d.forwardRef((o, r) => {
|
|
943
|
+
const { children: i, ...a } = o, s = d.Children.toArray(i), c = s.find(fa);
|
|
944
944
|
if (c) {
|
|
945
945
|
const u = c.props.children, l = s.map((f) => f === c ? d.Children.count(u) > 1 ? d.Children.only(null) : d.isValidElement(u) ? u.props.children : null : f);
|
|
946
946
|
return /* @__PURE__ */ p(t, { ...a, ref: r, children: d.isValidElement(u) ? d.cloneElement(u, void 0, l) : null });
|
|
@@ -950,22 +950,22 @@ function gt(e) {
|
|
|
950
950
|
return n.displayName = `${e}.Slot`, n;
|
|
951
951
|
}
|
|
952
952
|
// @__NO_SIDE_EFFECTS__
|
|
953
|
-
function
|
|
953
|
+
function ua(e) {
|
|
954
954
|
const t = d.forwardRef((n, o) => {
|
|
955
955
|
const { children: r, ...i } = n;
|
|
956
956
|
if (d.isValidElement(r)) {
|
|
957
|
-
const a =
|
|
957
|
+
const a = ha(r), s = pa(i, r.props);
|
|
958
958
|
return r.type !== d.Fragment && (s.ref = o ? jt(o, a) : a), d.cloneElement(r, s);
|
|
959
959
|
}
|
|
960
960
|
return d.Children.count(r) > 1 ? d.Children.only(null) : null;
|
|
961
961
|
});
|
|
962
962
|
return t.displayName = `${e}.SlotClone`, t;
|
|
963
963
|
}
|
|
964
|
-
var
|
|
965
|
-
function
|
|
966
|
-
return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
964
|
+
var da = Symbol("radix.slottable");
|
|
965
|
+
function fa(e) {
|
|
966
|
+
return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === da;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function pa(e, t) {
|
|
969
969
|
const n = { ...t };
|
|
970
970
|
for (const o in t) {
|
|
971
971
|
const r = e[o], i = t[o];
|
|
@@ -976,12 +976,12 @@ function fa(e, t) {
|
|
|
976
976
|
}
|
|
977
977
|
return { ...e, ...n };
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function ha(e) {
|
|
980
980
|
var o, r;
|
|
981
981
|
let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
982
982
|
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);
|
|
983
983
|
}
|
|
984
|
-
var
|
|
984
|
+
var ma = [
|
|
985
985
|
"a",
|
|
986
986
|
"button",
|
|
987
987
|
"div",
|
|
@@ -999,7 +999,7 @@ var ha = [
|
|
|
999
999
|
"span",
|
|
1000
1000
|
"svg",
|
|
1001
1001
|
"ul"
|
|
1002
|
-
], U =
|
|
1002
|
+
], U = ma.reduce((e, t) => {
|
|
1003
1003
|
const n = /* @__PURE__ */ gt(`Primitive.${t}`), o = d.forwardRef((r, i) => {
|
|
1004
1004
|
const { asChild: a, ...s } = r, c = a ? n : t;
|
|
1005
1005
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(c, { ...s, ref: i });
|
|
@@ -1049,9 +1049,9 @@ function Un(e) {
|
|
|
1049
1049
|
o
|
|
1050
1050
|
];
|
|
1051
1051
|
}
|
|
1052
|
-
var
|
|
1052
|
+
var ga = d.createContext(void 0);
|
|
1053
1053
|
function Yt(e) {
|
|
1054
|
-
const t = d.useContext(
|
|
1054
|
+
const t = d.useContext(ga);
|
|
1055
1055
|
return e || t || "ltr";
|
|
1056
1056
|
}
|
|
1057
1057
|
function Me(e) {
|
|
@@ -1063,7 +1063,7 @@ function Me(e) {
|
|
|
1063
1063
|
return (o = t.current) == null ? void 0 : o.call(t, ...n);
|
|
1064
1064
|
}, []);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function va(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1067
1067
|
const n = Me(e);
|
|
1068
1068
|
d.useEffect(() => {
|
|
1069
1069
|
const o = (r) => {
|
|
@@ -1072,7 +1072,7 @@ function ga(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1072
1072
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
1073
1073
|
}, [n, t]);
|
|
1074
1074
|
}
|
|
1075
|
-
var
|
|
1075
|
+
var wa = "DismissableLayer", Pn = "dismissableLayer.update", ya = "dismissableLayer.pointerDownOutside", ba = "dismissableLayer.focusOutside", Co, tr = d.createContext({
|
|
1076
1076
|
layers: /* @__PURE__ */ new Set(),
|
|
1077
1077
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
1078
1078
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -1086,14 +1086,14 @@ var va = "DismissableLayer", Pn = "dismissableLayer.update", wa = "dismissableLa
|
|
|
1086
1086
|
onInteractOutside: a,
|
|
1087
1087
|
onDismiss: s,
|
|
1088
1088
|
...c
|
|
1089
|
-
} = e, u = d.useContext(tr), [l, f] = d.useState(null), h = (l == null ? void 0 : l.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = X(t, (E) => f(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 =
|
|
1089
|
+
} = e, u = d.useContext(tr), [l, f] = d.useState(null), h = (l == null ? void 0 : l.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = X(t, (E) => f(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 = xa((E) => {
|
|
1090
1090
|
const x = E.target, I = [...u.branches].some((T) => T.contains(x));
|
|
1091
1091
|
!S || I || (r == null || r(E), a == null || a(E), E.defaultPrevented || s == null || s());
|
|
1092
|
-
}, h), A =
|
|
1092
|
+
}, h), A = Ea((E) => {
|
|
1093
1093
|
const x = E.target;
|
|
1094
1094
|
[...u.branches].some((T) => T.contains(x)) || (i == null || i(E), a == null || a(E), E.defaultPrevented || s == null || s());
|
|
1095
1095
|
}, h);
|
|
1096
|
-
return
|
|
1096
|
+
return va((E) => {
|
|
1097
1097
|
C === u.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
|
|
1098
1098
|
}, h), d.useEffect(() => {
|
|
1099
1099
|
if (l)
|
|
@@ -1124,8 +1124,8 @@ var va = "DismissableLayer", Pn = "dismissableLayer.update", wa = "dismissableLa
|
|
|
1124
1124
|
);
|
|
1125
1125
|
}
|
|
1126
1126
|
);
|
|
1127
|
-
Hn.displayName =
|
|
1128
|
-
var
|
|
1127
|
+
Hn.displayName = wa;
|
|
1128
|
+
var Ca = "DismissableLayerBranch", Sa = d.forwardRef((e, t) => {
|
|
1129
1129
|
const n = d.useContext(tr), o = d.useRef(null), r = X(t, o);
|
|
1130
1130
|
return d.useEffect(() => {
|
|
1131
1131
|
const i = o.current;
|
|
@@ -1135,8 +1135,8 @@ var ba = "DismissableLayerBranch", Ca = d.forwardRef((e, t) => {
|
|
|
1135
1135
|
};
|
|
1136
1136
|
}, [n.branches]), /* @__PURE__ */ p(U.div, { ...e, ref: r });
|
|
1137
1137
|
});
|
|
1138
|
-
|
|
1139
|
-
function
|
|
1138
|
+
Sa.displayName = Ca;
|
|
1139
|
+
function xa(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1140
1140
|
const n = Me(e), o = d.useRef(!1), r = d.useRef(() => {
|
|
1141
1141
|
});
|
|
1142
1142
|
return d.useEffect(() => {
|
|
@@ -1144,7 +1144,7 @@ function Sa(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1144
1144
|
if (s.target && !o.current) {
|
|
1145
1145
|
let c = function() {
|
|
1146
1146
|
nr(
|
|
1147
|
-
|
|
1147
|
+
ya,
|
|
1148
1148
|
n,
|
|
1149
1149
|
u,
|
|
1150
1150
|
{ discrete: !0 }
|
|
@@ -1166,11 +1166,11 @@ function Sa(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1166
1166
|
onPointerDownCapture: () => o.current = !0
|
|
1167
1167
|
};
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function Ea(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1170
1170
|
const n = Me(e), o = d.useRef(!1);
|
|
1171
1171
|
return d.useEffect(() => {
|
|
1172
1172
|
const r = (i) => {
|
|
1173
|
-
i.target && !o.current && nr(
|
|
1173
|
+
i.target && !o.current && nr(ba, n, { originalEvent: i }, {
|
|
1174
1174
|
discrete: !1
|
|
1175
1175
|
});
|
|
1176
1176
|
};
|
|
@@ -1201,7 +1201,7 @@ function xo() {
|
|
|
1201
1201
|
const e = document.createElement("span");
|
|
1202
1202
|
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;
|
|
1203
1203
|
}
|
|
1204
|
-
var mn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Eo = { bubbles: !1, cancelable: !0 },
|
|
1204
|
+
var mn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Eo = { bubbles: !1, cancelable: !0 }, Ra = "FocusScope", Kn = d.forwardRef((e, t) => {
|
|
1205
1205
|
const {
|
|
1206
1206
|
loop: n = !1,
|
|
1207
1207
|
trapped: o = !1,
|
|
@@ -1244,7 +1244,7 @@ var mn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Eo
|
|
|
1244
1244
|
const m = document.activeElement;
|
|
1245
1245
|
if (!s.contains(m)) {
|
|
1246
1246
|
const b = new CustomEvent(mn, Eo);
|
|
1247
|
-
s.addEventListener(mn, u), s.dispatchEvent(b), b.defaultPrevented || (
|
|
1247
|
+
s.addEventListener(mn, u), s.dispatchEvent(b), b.defaultPrevented || (Aa(Na(rr(s)), { select: !0 }), document.activeElement === m && Fe(s));
|
|
1248
1248
|
}
|
|
1249
1249
|
return () => {
|
|
1250
1250
|
s.removeEventListener(mn, u), setTimeout(() => {
|
|
@@ -1259,7 +1259,7 @@ var mn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Eo
|
|
|
1259
1259
|
if (!n && !o || g.paused) return;
|
|
1260
1260
|
const v = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, b = document.activeElement;
|
|
1261
1261
|
if (v && b) {
|
|
1262
|
-
const C = m.currentTarget, [y, S] =
|
|
1262
|
+
const C = m.currentTarget, [y, S] = Pa(C);
|
|
1263
1263
|
y && S ? !m.shiftKey && b === S ? (m.preventDefault(), n && Fe(y, { select: !0 })) : m.shiftKey && b === y && (m.preventDefault(), n && Fe(S, { select: !0 })) : b === C && m.preventDefault();
|
|
1264
1264
|
}
|
|
1265
1265
|
},
|
|
@@ -1267,13 +1267,13 @@ var mn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Eo
|
|
|
1267
1267
|
);
|
|
1268
1268
|
return /* @__PURE__ */ p(U.div, { tabIndex: -1, ...a, ref: h, onKeyDown: w });
|
|
1269
1269
|
});
|
|
1270
|
-
Kn.displayName =
|
|
1271
|
-
function
|
|
1270
|
+
Kn.displayName = Ra;
|
|
1271
|
+
function Aa(e, { select: t = !1 } = {}) {
|
|
1272
1272
|
const n = document.activeElement;
|
|
1273
1273
|
for (const o of e)
|
|
1274
1274
|
if (Fe(o, { select: t }), document.activeElement !== n) return;
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function Pa(e) {
|
|
1277
1277
|
const t = rr(e), n = Ro(t, e), o = Ro(t.reverse(), e);
|
|
1278
1278
|
return [n, o];
|
|
1279
1279
|
}
|
|
@@ -1289,9 +1289,9 @@ function rr(e) {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
function Ro(e, t) {
|
|
1291
1291
|
for (const n of e)
|
|
1292
|
-
if (!
|
|
1292
|
+
if (!Ta(n, { upTo: t })) return n;
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function Ta(e, { upTo: t }) {
|
|
1295
1295
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1296
1296
|
for (; e; ) {
|
|
1297
1297
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -1300,17 +1300,17 @@ function Pa(e, { upTo: t }) {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return !1;
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function Ia(e) {
|
|
1304
1304
|
return e instanceof HTMLInputElement && "select" in e;
|
|
1305
1305
|
}
|
|
1306
1306
|
function Fe(e, { select: t = !1 } = {}) {
|
|
1307
1307
|
if (e && e.focus) {
|
|
1308
1308
|
const n = document.activeElement;
|
|
1309
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
1309
|
+
e.focus({ preventScroll: !0 }), e !== n && Ia(e) && t && e.select();
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
|
-
var Ao =
|
|
1313
|
-
function
|
|
1312
|
+
var Ao = Ma();
|
|
1313
|
+
function Ma() {
|
|
1314
1314
|
let e = [];
|
|
1315
1315
|
return {
|
|
1316
1316
|
add(t) {
|
|
@@ -1327,26 +1327,26 @@ function Po(e, t) {
|
|
|
1327
1327
|
const n = [...e], o = n.indexOf(t);
|
|
1328
1328
|
return o !== -1 && n.splice(o, 1), n;
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function Na(e) {
|
|
1331
1331
|
return e.filter((t) => t.tagName !== "A");
|
|
1332
1332
|
}
|
|
1333
|
-
var
|
|
1334
|
-
}),
|
|
1333
|
+
var _a = d[" useId ".trim().toString()] || (() => {
|
|
1334
|
+
}), Oa = 0;
|
|
1335
1335
|
function ze(e) {
|
|
1336
|
-
const [t, n] = d.useState(
|
|
1336
|
+
const [t, n] = d.useState(_a());
|
|
1337
1337
|
return re(() => {
|
|
1338
|
-
n((o) => o ?? String(
|
|
1338
|
+
n((o) => o ?? String(Oa++));
|
|
1339
1339
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
1340
1340
|
}
|
|
1341
|
-
const
|
|
1341
|
+
const Da = ["top", "right", "bottom", "left"], Le = Math.min, pe = Math.max, $t = Math.round, Rt = Math.floor, Ie = (e) => ({
|
|
1342
1342
|
x: e,
|
|
1343
1343
|
y: e
|
|
1344
|
-
}),
|
|
1344
|
+
}), ka = {
|
|
1345
1345
|
left: "right",
|
|
1346
1346
|
right: "left",
|
|
1347
1347
|
bottom: "top",
|
|
1348
1348
|
top: "bottom"
|
|
1349
|
-
},
|
|
1349
|
+
}, Fa = {
|
|
1350
1350
|
start: "end",
|
|
1351
1351
|
end: "start"
|
|
1352
1352
|
};
|
|
@@ -1368,48 +1368,48 @@ function Gn(e) {
|
|
|
1368
1368
|
function zn(e) {
|
|
1369
1369
|
return e === "y" ? "height" : "width";
|
|
1370
1370
|
}
|
|
1371
|
-
const
|
|
1371
|
+
const La = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
1372
1372
|
function Te(e) {
|
|
1373
|
-
return
|
|
1373
|
+
return La.has(ke(e)) ? "y" : "x";
|
|
1374
1374
|
}
|
|
1375
1375
|
function jn(e) {
|
|
1376
1376
|
return Gn(Te(e));
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function $a(e, t, n) {
|
|
1379
1379
|
n === void 0 && (n = !1);
|
|
1380
1380
|
const o = it(e), r = jn(e), i = zn(r);
|
|
1381
1381
|
let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1382
1382
|
return t.reference[i] > t.floating[i] && (a = Vt(a)), [a, Vt(a)];
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1384
|
+
function Va(e) {
|
|
1385
1385
|
const t = Vt(e);
|
|
1386
1386
|
return [In(e), t, In(t)];
|
|
1387
1387
|
}
|
|
1388
1388
|
function In(e) {
|
|
1389
|
-
return e.replace(/start|end/g, (t) =>
|
|
1389
|
+
return e.replace(/start|end/g, (t) => Fa[t]);
|
|
1390
1390
|
}
|
|
1391
|
-
const To = ["left", "right"], Io = ["right", "left"],
|
|
1392
|
-
function
|
|
1391
|
+
const To = ["left", "right"], Io = ["right", "left"], Ba = ["top", "bottom"], Wa = ["bottom", "top"];
|
|
1392
|
+
function Ua(e, t, n) {
|
|
1393
1393
|
switch (e) {
|
|
1394
1394
|
case "top":
|
|
1395
1395
|
case "bottom":
|
|
1396
1396
|
return n ? t ? Io : To : t ? To : Io;
|
|
1397
1397
|
case "left":
|
|
1398
1398
|
case "right":
|
|
1399
|
-
return t ?
|
|
1399
|
+
return t ? Ba : Wa;
|
|
1400
1400
|
default:
|
|
1401
1401
|
return [];
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Ha(e, t, n, o) {
|
|
1405
1405
|
const r = it(e);
|
|
1406
|
-
let i =
|
|
1406
|
+
let i = Ua(ke(e), n === "start", o);
|
|
1407
1407
|
return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(In)))), i;
|
|
1408
1408
|
}
|
|
1409
1409
|
function Vt(e) {
|
|
1410
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1410
|
+
return e.replace(/left|right|bottom|top/g, (t) => ka[t]);
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function Ka(e) {
|
|
1413
1413
|
return {
|
|
1414
1414
|
top: 0,
|
|
1415
1415
|
right: 0,
|
|
@@ -1419,7 +1419,7 @@ function Ha(e) {
|
|
|
1419
1419
|
};
|
|
1420
1420
|
}
|
|
1421
1421
|
function ir(e) {
|
|
1422
|
-
return typeof e != "number" ?
|
|
1422
|
+
return typeof e != "number" ? Ka(e) : {
|
|
1423
1423
|
top: e,
|
|
1424
1424
|
right: e,
|
|
1425
1425
|
bottom: e,
|
|
@@ -1492,7 +1492,7 @@ function Mo(e, t, n) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
return g;
|
|
1494
1494
|
}
|
|
1495
|
-
const
|
|
1495
|
+
const Ga = async (e, t, n) => {
|
|
1496
1496
|
const {
|
|
1497
1497
|
placement: o = "bottom",
|
|
1498
1498
|
strategy: r = "absolute",
|
|
@@ -1598,7 +1598,7 @@ async function vt(e, t) {
|
|
|
1598
1598
|
right: (R.right - b.right + w.right) / S.x
|
|
1599
1599
|
};
|
|
1600
1600
|
}
|
|
1601
|
-
const
|
|
1601
|
+
const za = (e) => ({
|
|
1602
1602
|
name: "arrow",
|
|
1603
1603
|
options: e,
|
|
1604
1604
|
async fn(t) {
|
|
@@ -1635,7 +1635,7 @@ const Ga = (e) => ({
|
|
|
1635
1635
|
reset: O
|
|
1636
1636
|
};
|
|
1637
1637
|
}
|
|
1638
|
-
}),
|
|
1638
|
+
}), ja = function(e) {
|
|
1639
1639
|
return e === void 0 && (e = {}), {
|
|
1640
1640
|
name: "flip",
|
|
1641
1641
|
options: e,
|
|
@@ -1659,12 +1659,12 @@ const Ga = (e) => ({
|
|
|
1659
1659
|
} = De(e, t);
|
|
1660
1660
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1661
1661
|
return {};
|
|
1662
|
-
const b = ke(r), C = Te(s), y = ke(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), R = h || (y || !m ? [Vt(s)] :
|
|
1663
|
-
!h && A && R.push(...
|
|
1662
|
+
const b = ke(r), C = Te(s), y = ke(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), R = h || (y || !m ? [Vt(s)] : Va(s)), A = w !== "none";
|
|
1663
|
+
!h && A && R.push(...Ha(s, m, w, S));
|
|
1664
1664
|
const E = [s, ...R], x = await vt(t, v), I = [];
|
|
1665
1665
|
let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1666
1666
|
if (l && I.push(x[b]), f) {
|
|
1667
|
-
const F =
|
|
1667
|
+
const F = $a(r, a, S);
|
|
1668
1668
|
I.push(x[F[0]], x[F[1]]);
|
|
1669
1669
|
}
|
|
1670
1670
|
if (T = [...T, {
|
|
@@ -1726,9 +1726,9 @@ function No(e, t) {
|
|
|
1726
1726
|
};
|
|
1727
1727
|
}
|
|
1728
1728
|
function _o(e) {
|
|
1729
|
-
return
|
|
1729
|
+
return Da.some((t) => e[t] >= 0);
|
|
1730
1730
|
}
|
|
1731
|
-
const
|
|
1731
|
+
const Ya = function(e) {
|
|
1732
1732
|
return e === void 0 && (e = {}), {
|
|
1733
1733
|
name: "hide",
|
|
1734
1734
|
options: e,
|
|
@@ -1770,7 +1770,7 @@ const ja = function(e) {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
};
|
|
1772
1772
|
}, sr = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1773
|
-
async function
|
|
1773
|
+
async function Xa(e, t) {
|
|
1774
1774
|
const {
|
|
1775
1775
|
placement: n,
|
|
1776
1776
|
platform: o,
|
|
@@ -1797,7 +1797,7 @@ async function Ya(e, t) {
|
|
|
1797
1797
|
y: g * l
|
|
1798
1798
|
};
|
|
1799
1799
|
}
|
|
1800
|
-
const
|
|
1800
|
+
const Za = function(e) {
|
|
1801
1801
|
return e === void 0 && (e = 0), {
|
|
1802
1802
|
name: "offset",
|
|
1803
1803
|
options: e,
|
|
@@ -1808,7 +1808,7 @@ const Xa = function(e) {
|
|
|
1808
1808
|
y: i,
|
|
1809
1809
|
placement: a,
|
|
1810
1810
|
middlewareData: s
|
|
1811
|
-
} = t, c = await
|
|
1811
|
+
} = t, c = await Xa(t, e);
|
|
1812
1812
|
return a === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
|
|
1813
1813
|
x: r + c.x,
|
|
1814
1814
|
y: i + c.y,
|
|
@@ -1819,7 +1819,7 @@ const Xa = function(e) {
|
|
|
1819
1819
|
};
|
|
1820
1820
|
}
|
|
1821
1821
|
};
|
|
1822
|
-
},
|
|
1822
|
+
}, qa = function(e) {
|
|
1823
1823
|
return e === void 0 && (e = {}), {
|
|
1824
1824
|
name: "shift",
|
|
1825
1825
|
options: e,
|
|
@@ -1875,7 +1875,7 @@ const Xa = function(e) {
|
|
|
1875
1875
|
};
|
|
1876
1876
|
}
|
|
1877
1877
|
};
|
|
1878
|
-
},
|
|
1878
|
+
}, Ja = function(e) {
|
|
1879
1879
|
return e === void 0 && (e = {}), {
|
|
1880
1880
|
options: e,
|
|
1881
1881
|
fn(t) {
|
|
@@ -1917,7 +1917,7 @@ const Xa = function(e) {
|
|
|
1917
1917
|
};
|
|
1918
1918
|
}
|
|
1919
1919
|
};
|
|
1920
|
-
},
|
|
1920
|
+
}, Qa = function(e) {
|
|
1921
1921
|
return e === void 0 && (e = {}), {
|
|
1922
1922
|
name: "size",
|
|
1923
1923
|
options: e,
|
|
@@ -1984,7 +1984,7 @@ function Ne(e) {
|
|
|
1984
1984
|
function Oo(e) {
|
|
1985
1985
|
return !Xt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof he(e).ShadowRoot;
|
|
1986
1986
|
}
|
|
1987
|
-
const
|
|
1987
|
+
const ec = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
1988
1988
|
function Ct(e) {
|
|
1989
1989
|
const {
|
|
1990
1990
|
overflow: t,
|
|
@@ -1992,15 +1992,15 @@ function Ct(e) {
|
|
|
1992
1992
|
overflowY: o,
|
|
1993
1993
|
display: r
|
|
1994
1994
|
} = Ee(e);
|
|
1995
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !
|
|
1995
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !ec.has(r);
|
|
1996
1996
|
}
|
|
1997
|
-
const
|
|
1998
|
-
function
|
|
1999
|
-
return
|
|
1997
|
+
const tc = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
1998
|
+
function nc(e) {
|
|
1999
|
+
return tc.has(st(e));
|
|
2000
2000
|
}
|
|
2001
|
-
const
|
|
2001
|
+
const oc = [":popover-open", ":modal"];
|
|
2002
2002
|
function Zt(e) {
|
|
2003
|
-
return
|
|
2003
|
+
return oc.some((t) => {
|
|
2004
2004
|
try {
|
|
2005
2005
|
return e.matches(t);
|
|
2006
2006
|
} catch {
|
|
@@ -2008,12 +2008,12 @@ function Zt(e) {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
});
|
|
2010
2010
|
}
|
|
2011
|
-
const
|
|
2011
|
+
const rc = ["transform", "translate", "scale", "rotate", "perspective"], ic = ["transform", "translate", "scale", "rotate", "perspective", "filter"], sc = ["paint", "layout", "strict", "content"];
|
|
2012
2012
|
function Yn(e) {
|
|
2013
2013
|
const t = Xn(), n = xe(e) ? Ee(e) : e;
|
|
2014
|
-
return
|
|
2014
|
+
return rc.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ic.some((o) => (n.willChange || "").includes(o)) || sc.some((o) => (n.contain || "").includes(o));
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function ac(e) {
|
|
2017
2017
|
let t = $e(e);
|
|
2018
2018
|
for (; Ne(t) && !rt(t); ) {
|
|
2019
2019
|
if (Yn(t))
|
|
@@ -2027,9 +2027,9 @@ function sc(e) {
|
|
|
2027
2027
|
function Xn() {
|
|
2028
2028
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2029
2029
|
}
|
|
2030
|
-
const
|
|
2030
|
+
const cc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
2031
2031
|
function rt(e) {
|
|
2032
|
-
return
|
|
2032
|
+
return cc.has(st(e));
|
|
2033
2033
|
}
|
|
2034
2034
|
function Ee(e) {
|
|
2035
2035
|
return he(e).getComputedStyle(e);
|
|
@@ -2100,15 +2100,15 @@ function nt(e) {
|
|
|
2100
2100
|
y: s
|
|
2101
2101
|
};
|
|
2102
2102
|
}
|
|
2103
|
-
const
|
|
2103
|
+
const lc = /* @__PURE__ */ Ie(0);
|
|
2104
2104
|
function ur(e) {
|
|
2105
2105
|
const t = he(e);
|
|
2106
|
-
return !Xn() || !t.visualViewport ?
|
|
2106
|
+
return !Xn() || !t.visualViewport ? lc : {
|
|
2107
2107
|
x: t.visualViewport.offsetLeft,
|
|
2108
2108
|
y: t.visualViewport.offsetTop
|
|
2109
2109
|
};
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function uc(e, t, n) {
|
|
2112
2112
|
return t === void 0 && (t = !1), !n || t && n !== he(e) ? !1 : t;
|
|
2113
2113
|
}
|
|
2114
2114
|
function je(e, t, n, o) {
|
|
@@ -2116,7 +2116,7 @@ function je(e, t, n, o) {
|
|
|
2116
2116
|
const r = e.getBoundingClientRect(), i = Zn(e);
|
|
2117
2117
|
let a = Ie(1);
|
|
2118
2118
|
t && (o ? xe(o) && (a = nt(o)) : a = nt(e));
|
|
2119
|
-
const s =
|
|
2119
|
+
const s = uc(i, n, o) ? ur(i) : Ie(0);
|
|
2120
2120
|
let c = (r.left + s.x) / a.x, u = (r.top + s.y) / a.y, l = r.width / a.x, f = r.height / a.y;
|
|
2121
2121
|
if (i) {
|
|
2122
2122
|
const h = he(i), g = o && xe(o) ? he(o) : o;
|
|
@@ -2144,7 +2144,7 @@ function dr(e, t) {
|
|
|
2144
2144
|
y: r
|
|
2145
2145
|
};
|
|
2146
2146
|
}
|
|
2147
|
-
function
|
|
2147
|
+
function dc(e) {
|
|
2148
2148
|
let {
|
|
2149
2149
|
elements: t,
|
|
2150
2150
|
rect: n,
|
|
@@ -2171,10 +2171,10 @@ function uc(e) {
|
|
|
2171
2171
|
y: n.y * u.y - c.scrollTop * u.y + l.y + h.y
|
|
2172
2172
|
};
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2174
|
+
function fc(e) {
|
|
2175
2175
|
return Array.from(e.getClientRects());
|
|
2176
2176
|
}
|
|
2177
|
-
function
|
|
2177
|
+
function pc(e) {
|
|
2178
2178
|
const t = _e(e), n = qt(e), o = e.ownerDocument.body, r = pe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = pe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
2179
2179
|
let a = -n.scrollLeft + Jt(e);
|
|
2180
2180
|
const s = -n.scrollTop;
|
|
@@ -2186,7 +2186,7 @@ function fc(e) {
|
|
|
2186
2186
|
};
|
|
2187
2187
|
}
|
|
2188
2188
|
const Do = 25;
|
|
2189
|
-
function
|
|
2189
|
+
function hc(e, t) {
|
|
2190
2190
|
const n = he(e), o = _e(e), r = n.visualViewport;
|
|
2191
2191
|
let i = o.clientWidth, a = o.clientHeight, s = 0, c = 0;
|
|
2192
2192
|
if (r) {
|
|
@@ -2206,8 +2206,8 @@ function pc(e, t) {
|
|
|
2206
2206
|
y: c
|
|
2207
2207
|
};
|
|
2208
2208
|
}
|
|
2209
|
-
const
|
|
2210
|
-
function
|
|
2209
|
+
const mc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
2210
|
+
function gc(e, t) {
|
|
2211
2211
|
const n = je(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Ne(e) ? nt(e) : Ie(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, c = r * i.x, u = o * i.y;
|
|
2212
2212
|
return {
|
|
2213
2213
|
width: a,
|
|
@@ -2219,11 +2219,11 @@ function mc(e, t) {
|
|
|
2219
2219
|
function ko(e, t, n) {
|
|
2220
2220
|
let o;
|
|
2221
2221
|
if (t === "viewport")
|
|
2222
|
-
o =
|
|
2222
|
+
o = hc(e, n);
|
|
2223
2223
|
else if (t === "document")
|
|
2224
|
-
o =
|
|
2224
|
+
o = pc(_e(e));
|
|
2225
2225
|
else if (xe(t))
|
|
2226
|
-
o =
|
|
2226
|
+
o = gc(t, n);
|
|
2227
2227
|
else {
|
|
2228
2228
|
const r = ur(e);
|
|
2229
2229
|
o = {
|
|
@@ -2239,7 +2239,7 @@ function fr(e, t) {
|
|
|
2239
2239
|
const n = $e(e);
|
|
2240
2240
|
return n === t || !xe(n) || rt(n) ? !1 : Ee(n).position === "fixed" || fr(n, t);
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2242
|
+
function vc(e, t) {
|
|
2243
2243
|
const n = t.get(e);
|
|
2244
2244
|
if (n)
|
|
2245
2245
|
return n;
|
|
@@ -2248,18 +2248,18 @@ function gc(e, t) {
|
|
|
2248
2248
|
let a = i ? $e(e) : e;
|
|
2249
2249
|
for (; xe(a) && !rt(a); ) {
|
|
2250
2250
|
const s = Ee(a), c = Yn(a);
|
|
2251
|
-
!c && s.position === "fixed" && (r = null), (i ? !c && !r : !c && s.position === "static" && !!r &&
|
|
2251
|
+
!c && s.position === "fixed" && (r = null), (i ? !c && !r : !c && s.position === "static" && !!r && mc.has(r.position) || Ct(a) && !c && fr(e, a)) ? o = o.filter((l) => l !== a) : r = s, a = $e(a);
|
|
2252
2252
|
}
|
|
2253
2253
|
return t.set(e, o), o;
|
|
2254
2254
|
}
|
|
2255
|
-
function
|
|
2255
|
+
function wc(e) {
|
|
2256
2256
|
let {
|
|
2257
2257
|
element: t,
|
|
2258
2258
|
boundary: n,
|
|
2259
2259
|
rootBoundary: o,
|
|
2260
2260
|
strategy: r
|
|
2261
2261
|
} = e;
|
|
2262
|
-
const a = [...n === "clippingAncestors" ? Zt(t) ? [] :
|
|
2262
|
+
const a = [...n === "clippingAncestors" ? Zt(t) ? [] : vc(t, this._c) : [].concat(n), o], s = a[0], c = a.reduce((u, l) => {
|
|
2263
2263
|
const f = ko(t, l, r);
|
|
2264
2264
|
return u.top = pe(f.top, u.top), u.right = Le(f.right, u.right), u.bottom = Le(f.bottom, u.bottom), u.left = pe(f.left, u.left), u;
|
|
2265
2265
|
}, ko(t, s, r));
|
|
@@ -2270,7 +2270,7 @@ function vc(e) {
|
|
|
2270
2270
|
y: c.top
|
|
2271
2271
|
};
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function yc(e) {
|
|
2274
2274
|
const {
|
|
2275
2275
|
width: t,
|
|
2276
2276
|
height: n
|
|
@@ -2280,7 +2280,7 @@ function wc(e) {
|
|
|
2280
2280
|
height: n
|
|
2281
2281
|
};
|
|
2282
2282
|
}
|
|
2283
|
-
function
|
|
2283
|
+
function bc(e, t, n) {
|
|
2284
2284
|
const o = Ne(t), r = _e(t), i = n === "fixed", a = je(e, !0, i, t);
|
|
2285
2285
|
let s = {
|
|
2286
2286
|
scrollLeft: 0,
|
|
@@ -2329,14 +2329,14 @@ function pr(e, t) {
|
|
|
2329
2329
|
return n;
|
|
2330
2330
|
}
|
|
2331
2331
|
let o = Fo(e, t);
|
|
2332
|
-
for (; o &&
|
|
2332
|
+
for (; o && nc(o) && vn(o); )
|
|
2333
2333
|
o = Fo(o, t);
|
|
2334
|
-
return o && rt(o) && vn(o) && !Yn(o) ? n : o ||
|
|
2334
|
+
return o && rt(o) && vn(o) && !Yn(o) ? n : o || ac(e) || n;
|
|
2335
2335
|
}
|
|
2336
|
-
const
|
|
2336
|
+
const Cc = async function(e) {
|
|
2337
2337
|
const t = this.getOffsetParent || pr, n = this.getDimensions, o = await n(e.floating);
|
|
2338
2338
|
return {
|
|
2339
|
-
reference:
|
|
2339
|
+
reference: bc(e.reference, await t(e.floating), e.strategy),
|
|
2340
2340
|
floating: {
|
|
2341
2341
|
x: 0,
|
|
2342
2342
|
y: 0,
|
|
@@ -2345,25 +2345,25 @@ const bc = async function(e) {
|
|
|
2345
2345
|
}
|
|
2346
2346
|
};
|
|
2347
2347
|
};
|
|
2348
|
-
function
|
|
2348
|
+
function Sc(e) {
|
|
2349
2349
|
return Ee(e).direction === "rtl";
|
|
2350
2350
|
}
|
|
2351
|
-
const
|
|
2352
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2351
|
+
const xc = {
|
|
2352
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: dc,
|
|
2353
2353
|
getDocumentElement: _e,
|
|
2354
|
-
getClippingRect:
|
|
2354
|
+
getClippingRect: wc,
|
|
2355
2355
|
getOffsetParent: pr,
|
|
2356
|
-
getElementRects:
|
|
2357
|
-
getClientRects:
|
|
2358
|
-
getDimensions:
|
|
2356
|
+
getElementRects: Cc,
|
|
2357
|
+
getClientRects: fc,
|
|
2358
|
+
getDimensions: yc,
|
|
2359
2359
|
getScale: nt,
|
|
2360
2360
|
isElement: xe,
|
|
2361
|
-
isRTL:
|
|
2361
|
+
isRTL: Sc
|
|
2362
2362
|
};
|
|
2363
2363
|
function hr(e, t) {
|
|
2364
2364
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function Ec(e, t) {
|
|
2367
2367
|
let n = null, o;
|
|
2368
2368
|
const r = _e(e);
|
|
2369
2369
|
function i() {
|
|
@@ -2409,7 +2409,7 @@ function xc(e, t) {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
return a(!0), i;
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2412
|
+
function Rc(e, t, n, o) {
|
|
2413
2413
|
o === void 0 && (o = {});
|
|
2414
2414
|
const {
|
|
2415
2415
|
ancestorScroll: r = !0,
|
|
@@ -2423,7 +2423,7 @@ function Ec(e, t, n, o) {
|
|
|
2423
2423
|
passive: !0
|
|
2424
2424
|
}), i && b.addEventListener("resize", n);
|
|
2425
2425
|
});
|
|
2426
|
-
const f = u && s ?
|
|
2426
|
+
const f = u && s ? Ec(u, n) : null;
|
|
2427
2427
|
let h = -1, g = null;
|
|
2428
2428
|
a && (g = new ResizeObserver((b) => {
|
|
2429
2429
|
let [C] = b;
|
|
@@ -2445,21 +2445,21 @@ function Ec(e, t, n, o) {
|
|
|
2445
2445
|
}), f == null || f(), (b = g) == null || b.disconnect(), g = null, c && cancelAnimationFrame(w);
|
|
2446
2446
|
};
|
|
2447
2447
|
}
|
|
2448
|
-
const
|
|
2448
|
+
const Ac = Za, Pc = qa, Tc = ja, Ic = Qa, Mc = Ya, Lo = za, Nc = Ja, _c = (e, t, n) => {
|
|
2449
2449
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
2450
|
-
platform:
|
|
2450
|
+
platform: xc,
|
|
2451
2451
|
...n
|
|
2452
2452
|
}, i = {
|
|
2453
2453
|
...r.platform,
|
|
2454
2454
|
_c: o
|
|
2455
2455
|
};
|
|
2456
|
-
return
|
|
2456
|
+
return Ga(e, t, {
|
|
2457
2457
|
...r,
|
|
2458
2458
|
platform: i
|
|
2459
2459
|
});
|
|
2460
2460
|
};
|
|
2461
|
-
var
|
|
2462
|
-
}, kt =
|
|
2461
|
+
var Oc = typeof document < "u", Dc = function() {
|
|
2462
|
+
}, kt = Oc ? Ss : Dc;
|
|
2463
2463
|
function Wt(e, t) {
|
|
2464
2464
|
if (e === t)
|
|
2465
2465
|
return !0;
|
|
@@ -2503,7 +2503,7 @@ function wn(e) {
|
|
|
2503
2503
|
t.current = e;
|
|
2504
2504
|
}), t;
|
|
2505
2505
|
}
|
|
2506
|
-
function
|
|
2506
|
+
function kc(e) {
|
|
2507
2507
|
e === void 0 && (e = {});
|
|
2508
2508
|
const {
|
|
2509
2509
|
placement: t = "bottom",
|
|
@@ -2538,7 +2538,7 @@ function Dc(e) {
|
|
|
2538
2538
|
strategy: n,
|
|
2539
2539
|
middleware: h
|
|
2540
2540
|
};
|
|
2541
|
-
D.current && (_.platform = D.current),
|
|
2541
|
+
D.current && (_.platform = D.current), _c(A.current, E.current, _).then((P) => {
|
|
2542
2542
|
const j = {
|
|
2543
2543
|
...P,
|
|
2544
2544
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -2605,7 +2605,7 @@ function Dc(e) {
|
|
|
2605
2605
|
floatingStyles: B
|
|
2606
2606
|
}), [l, $, G, O, B]);
|
|
2607
2607
|
}
|
|
2608
|
-
const
|
|
2608
|
+
const Fc = (e) => {
|
|
2609
2609
|
function t(n) {
|
|
2610
2610
|
return {}.hasOwnProperty.call(n, "current");
|
|
2611
2611
|
}
|
|
@@ -2626,17 +2626,14 @@ const kc = (e) => {
|
|
|
2626
2626
|
}).fn(n) : {};
|
|
2627
2627
|
}
|
|
2628
2628
|
};
|
|
2629
|
-
},
|
|
2630
|
-
...Rc(e),
|
|
2631
|
-
options: [e, t]
|
|
2632
|
-
}), Lc = (e, t) => ({
|
|
2629
|
+
}, Lc = (e, t) => ({
|
|
2633
2630
|
...Ac(e),
|
|
2634
2631
|
options: [e, t]
|
|
2635
2632
|
}), $c = (e, t) => ({
|
|
2636
|
-
...
|
|
2633
|
+
...Pc(e),
|
|
2637
2634
|
options: [e, t]
|
|
2638
2635
|
}), Vc = (e, t) => ({
|
|
2639
|
-
...
|
|
2636
|
+
...Nc(e),
|
|
2640
2637
|
options: [e, t]
|
|
2641
2638
|
}), Bc = (e, t) => ({
|
|
2642
2639
|
...Tc(e),
|
|
@@ -2645,10 +2642,13 @@ const kc = (e) => {
|
|
|
2645
2642
|
...Ic(e),
|
|
2646
2643
|
options: [e, t]
|
|
2647
2644
|
}), Uc = (e, t) => ({
|
|
2648
|
-
...
|
|
2645
|
+
...Mc(e),
|
|
2646
|
+
options: [e, t]
|
|
2647
|
+
}), Hc = (e, t) => ({
|
|
2648
|
+
...Fc(e),
|
|
2649
2649
|
options: [e, t]
|
|
2650
2650
|
});
|
|
2651
|
-
var
|
|
2651
|
+
var Kc = "Arrow", gr = d.forwardRef((e, t) => {
|
|
2652
2652
|
const { children: n, width: o = 10, height: r = 5, ...i } = e;
|
|
2653
2653
|
return /* @__PURE__ */ p(
|
|
2654
2654
|
U.svg,
|
|
@@ -2663,9 +2663,9 @@ var Hc = "Arrow", gr = d.forwardRef((e, t) => {
|
|
|
2663
2663
|
}
|
|
2664
2664
|
);
|
|
2665
2665
|
});
|
|
2666
|
-
gr.displayName =
|
|
2667
|
-
var
|
|
2668
|
-
function
|
|
2666
|
+
gr.displayName = Kc;
|
|
2667
|
+
var Gc = gr;
|
|
2668
|
+
function zc(e) {
|
|
2669
2669
|
const [t, n] = d.useState(void 0);
|
|
2670
2670
|
return re(() => {
|
|
2671
2671
|
if (e) {
|
|
@@ -2687,9 +2687,9 @@ function Gc(e) {
|
|
|
2687
2687
|
n(void 0);
|
|
2688
2688
|
}, [e]), t;
|
|
2689
2689
|
}
|
|
2690
|
-
var qn = "Popper", [vr, Qt] = Ze(qn), [
|
|
2690
|
+
var qn = "Popper", [vr, Qt] = Ze(qn), [jc, wr] = vr(qn), yr = (e) => {
|
|
2691
2691
|
const { __scopePopper: t, children: n } = e, [o, r] = d.useState(null);
|
|
2692
|
-
return /* @__PURE__ */ p(
|
|
2692
|
+
return /* @__PURE__ */ p(jc, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
2693
2693
|
};
|
|
2694
2694
|
yr.displayName = qn;
|
|
2695
2695
|
var br = "PopperAnchor", Cr = d.forwardRef(
|
|
@@ -2702,7 +2702,7 @@ var br = "PopperAnchor", Cr = d.forwardRef(
|
|
|
2702
2702
|
}
|
|
2703
2703
|
);
|
|
2704
2704
|
Cr.displayName = br;
|
|
2705
|
-
var Jn = "PopperContent", [
|
|
2705
|
+
var Jn = "PopperContent", [Yc, Xc] = vr(Jn), Sr = d.forwardRef(
|
|
2706
2706
|
(e, t) => {
|
|
2707
2707
|
var M, W, K, H, V, z;
|
|
2708
2708
|
const {
|
|
@@ -2720,40 +2720,40 @@ var Jn = "PopperContent", [jc, Yc] = vr(Jn), Sr = d.forwardRef(
|
|
|
2720
2720
|
updatePositionStrategy: g = "optimized",
|
|
2721
2721
|
onPlaced: w,
|
|
2722
2722
|
...m
|
|
2723
|
-
} = e, v = wr(Jn, n), [b, C] = d.useState(null), y = X(t, (se) => C(se)), [S, R] = d.useState(null), A =
|
|
2723
|
+
} = e, v = wr(Jn, n), [b, C] = d.useState(null), y = X(t, (se) => C(se)), [S, R] = d.useState(null), A = zc(S), E = (A == null ? void 0 : A.width) ?? 0, x = (A == null ? void 0 : A.height) ?? 0, I = o + (i !== "center" ? "-" + i : ""), T = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, D = Array.isArray(u) ? u : [u], L = D.length > 0, $ = {
|
|
2724
2724
|
padding: T,
|
|
2725
|
-
boundary: D.filter(
|
|
2725
|
+
boundary: D.filter(qc),
|
|
2726
2726
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2727
2727
|
altBoundary: L
|
|
2728
|
-
}, { refs: F, floatingStyles: G, placement: O, isPositioned: B, middlewareData: _ } =
|
|
2728
|
+
}, { refs: F, floatingStyles: G, placement: O, isPositioned: B, middlewareData: _ } = kc({
|
|
2729
2729
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2730
2730
|
strategy: "fixed",
|
|
2731
2731
|
placement: I,
|
|
2732
|
-
whileElementsMounted: (...se) =>
|
|
2732
|
+
whileElementsMounted: (...se) => Rc(...se, {
|
|
2733
2733
|
animationFrame: g === "always"
|
|
2734
2734
|
}),
|
|
2735
2735
|
elements: {
|
|
2736
2736
|
reference: v.anchor
|
|
2737
2737
|
},
|
|
2738
2738
|
middleware: [
|
|
2739
|
-
|
|
2740
|
-
c &&
|
|
2739
|
+
Lc({ mainAxis: r + x, alignmentAxis: a }),
|
|
2740
|
+
c && $c({
|
|
2741
2741
|
mainAxis: !0,
|
|
2742
2742
|
crossAxis: !1,
|
|
2743
|
-
limiter: f === "partial" ?
|
|
2743
|
+
limiter: f === "partial" ? Vc() : void 0,
|
|
2744
2744
|
...$
|
|
2745
2745
|
}),
|
|
2746
|
-
c &&
|
|
2747
|
-
|
|
2746
|
+
c && Bc({ ...$ }),
|
|
2747
|
+
Wc({
|
|
2748
2748
|
...$,
|
|
2749
2749
|
apply: ({ elements: se, rects: me, availableWidth: We, availableHeight: Ue }) => {
|
|
2750
2750
|
const { width: He, height: dn } = me.reference, ne = se.floating.style;
|
|
2751
2751
|
ne.setProperty("--radix-popper-available-width", `${We}px`), ne.setProperty("--radix-popper-available-height", `${Ue}px`), ne.setProperty("--radix-popper-anchor-width", `${He}px`), ne.setProperty("--radix-popper-anchor-height", `${dn}px`);
|
|
2752
2752
|
}
|
|
2753
2753
|
}),
|
|
2754
|
-
S &&
|
|
2755
|
-
|
|
2756
|
-
h &&
|
|
2754
|
+
S && Hc({ element: S, padding: s }),
|
|
2755
|
+
Jc({ arrowWidth: E, arrowHeight: x }),
|
|
2756
|
+
h && Uc({ strategy: "referenceHidden", ...$ })
|
|
2757
2757
|
]
|
|
2758
2758
|
}), [P, j] = Rr(O), J = Me(w);
|
|
2759
2759
|
re(() => {
|
|
@@ -2787,7 +2787,7 @@ var Jn = "PopperContent", [jc, Yc] = vr(Jn), Sr = d.forwardRef(
|
|
|
2787
2787
|
},
|
|
2788
2788
|
dir: e.dir,
|
|
2789
2789
|
children: /* @__PURE__ */ p(
|
|
2790
|
-
|
|
2790
|
+
Yc,
|
|
2791
2791
|
{
|
|
2792
2792
|
scope: n,
|
|
2793
2793
|
placedSide: P,
|
|
@@ -2817,13 +2817,13 @@ var Jn = "PopperContent", [jc, Yc] = vr(Jn), Sr = d.forwardRef(
|
|
|
2817
2817
|
}
|
|
2818
2818
|
);
|
|
2819
2819
|
Sr.displayName = Jn;
|
|
2820
|
-
var xr = "PopperArrow",
|
|
2820
|
+
var xr = "PopperArrow", Zc = {
|
|
2821
2821
|
top: "bottom",
|
|
2822
2822
|
right: "left",
|
|
2823
2823
|
bottom: "top",
|
|
2824
2824
|
left: "right"
|
|
2825
2825
|
}, Er = d.forwardRef(function(t, n) {
|
|
2826
|
-
const { __scopePopper: o, ...r } = t, i =
|
|
2826
|
+
const { __scopePopper: o, ...r } = t, i = Xc(xr, o), a = Zc[i.placedSide];
|
|
2827
2827
|
return (
|
|
2828
2828
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2829
2829
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -2852,7 +2852,7 @@ var xr = "PopperArrow", Xc = {
|
|
|
2852
2852
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2853
2853
|
},
|
|
2854
2854
|
children: /* @__PURE__ */ p(
|
|
2855
|
-
|
|
2855
|
+
Gc,
|
|
2856
2856
|
{
|
|
2857
2857
|
...r,
|
|
2858
2858
|
ref: n,
|
|
@@ -2868,10 +2868,10 @@ var xr = "PopperArrow", Xc = {
|
|
|
2868
2868
|
);
|
|
2869
2869
|
});
|
|
2870
2870
|
Er.displayName = xr;
|
|
2871
|
-
function
|
|
2871
|
+
function qc(e) {
|
|
2872
2872
|
return e !== null;
|
|
2873
2873
|
}
|
|
2874
|
-
var
|
|
2874
|
+
var Jc = (e) => ({
|
|
2875
2875
|
name: "transformOrigin",
|
|
2876
2876
|
options: e,
|
|
2877
2877
|
fn(t) {
|
|
@@ -2885,24 +2885,24 @@ function Rr(e) {
|
|
|
2885
2885
|
const [t, n = "center"] = e.split("-");
|
|
2886
2886
|
return [t, n];
|
|
2887
2887
|
}
|
|
2888
|
-
var Ar = yr, Pr = Cr, Tr = Sr, Ir = Er,
|
|
2888
|
+
var Ar = yr, Pr = Cr, Tr = Sr, Ir = Er, Qc = "Portal", Qn = d.forwardRef((e, t) => {
|
|
2889
2889
|
var s;
|
|
2890
2890
|
const { container: n, ...o } = e, [r, i] = d.useState(!1);
|
|
2891
2891
|
re(() => i(!0), []);
|
|
2892
2892
|
const a = n || r && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
|
|
2893
|
-
return a ?
|
|
2893
|
+
return a ? Es.createPortal(/* @__PURE__ */ p(U.div, { ...o, ref: t }), a) : null;
|
|
2894
2894
|
});
|
|
2895
|
-
Qn.displayName =
|
|
2896
|
-
function
|
|
2895
|
+
Qn.displayName = Qc;
|
|
2896
|
+
function el(e, t) {
|
|
2897
2897
|
return d.useReducer((n, o) => t[n][o] ?? n, e);
|
|
2898
2898
|
}
|
|
2899
2899
|
var at = (e) => {
|
|
2900
|
-
const { present: t, children: n } = e, o =
|
|
2900
|
+
const { present: t, children: n } = e, o = tl(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), i = X(o.ref, nl(r));
|
|
2901
2901
|
return typeof n == "function" || o.isPresent ? d.cloneElement(r, { ref: i }) : null;
|
|
2902
2902
|
};
|
|
2903
2903
|
at.displayName = "Presence";
|
|
2904
|
-
function
|
|
2905
|
-
const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, c] =
|
|
2904
|
+
function tl(e) {
|
|
2905
|
+
const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, c] = el(a, {
|
|
2906
2906
|
mounted: {
|
|
2907
2907
|
UNMOUNT: "unmounted",
|
|
2908
2908
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2953,19 +2953,19 @@ function el(e) {
|
|
|
2953
2953
|
function At(e) {
|
|
2954
2954
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
2955
2955
|
}
|
|
2956
|
-
function
|
|
2956
|
+
function nl(e) {
|
|
2957
2957
|
var o, r;
|
|
2958
2958
|
let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2959
2959
|
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);
|
|
2960
2960
|
}
|
|
2961
|
-
var yn = "rovingFocusGroup.onEntryFocus",
|
|
2961
|
+
var yn = "rovingFocusGroup.onEntryFocus", ol = { bubbles: !1, cancelable: !0 }, St = "RovingFocusGroup", [Nn, Mr, rl] = Un(St), [il, en] = Ze(
|
|
2962
2962
|
St,
|
|
2963
|
-
[
|
|
2964
|
-
), [
|
|
2965
|
-
(e, t) => /* @__PURE__ */ p(Nn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Nn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(
|
|
2963
|
+
[rl]
|
|
2964
|
+
), [sl, al] = il(St), Nr = d.forwardRef(
|
|
2965
|
+
(e, t) => /* @__PURE__ */ p(Nn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Nn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(cl, { ...e, ref: t }) }) })
|
|
2966
2966
|
);
|
|
2967
2967
|
Nr.displayName = St;
|
|
2968
|
-
var
|
|
2968
|
+
var cl = d.forwardRef((e, t) => {
|
|
2969
2969
|
const {
|
|
2970
2970
|
__scopeRovingFocusGroup: n,
|
|
2971
2971
|
orientation: o,
|
|
@@ -2988,7 +2988,7 @@ var al = d.forwardRef((e, t) => {
|
|
|
2988
2988
|
if (x)
|
|
2989
2989
|
return x.addEventListener(yn, y), () => x.removeEventListener(yn, y);
|
|
2990
2990
|
}, [y]), /* @__PURE__ */ p(
|
|
2991
|
-
|
|
2991
|
+
sl,
|
|
2992
2992
|
{
|
|
2993
2993
|
scope: n,
|
|
2994
2994
|
orientation: o,
|
|
@@ -3022,7 +3022,7 @@ var al = d.forwardRef((e, t) => {
|
|
|
3022
3022
|
onFocus: N(e.onFocus, (x) => {
|
|
3023
3023
|
const I = !R.current;
|
|
3024
3024
|
if (x.target === x.currentTarget && I && !b) {
|
|
3025
|
-
const T = new CustomEvent(yn,
|
|
3025
|
+
const T = new CustomEvent(yn, ol);
|
|
3026
3026
|
if (x.currentTarget.dispatchEvent(T), !T.defaultPrevented) {
|
|
3027
3027
|
const D = S().filter((O) => O.focusable), L = D.find((O) => O.active), $ = D.find((O) => O.id === m), G = [L, $, ...D].filter(
|
|
3028
3028
|
Boolean
|
|
@@ -3046,7 +3046,7 @@ var al = d.forwardRef((e, t) => {
|
|
|
3046
3046
|
tabStopId: i,
|
|
3047
3047
|
children: a,
|
|
3048
3048
|
...s
|
|
3049
|
-
} = e, c = ze(), u = i || c, l =
|
|
3049
|
+
} = e, c = ze(), u = i || c, l = al(_r, n), f = l.currentTabStopId === u, h = Mr(n), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: m } = l;
|
|
3050
3050
|
return d.useEffect(() => {
|
|
3051
3051
|
if (o)
|
|
3052
3052
|
return g(), () => w();
|
|
@@ -3074,7 +3074,7 @@ var al = d.forwardRef((e, t) => {
|
|
|
3074
3074
|
return;
|
|
3075
3075
|
}
|
|
3076
3076
|
if (v.target !== v.currentTarget) return;
|
|
3077
|
-
const b =
|
|
3077
|
+
const b = dl(v, l.orientation, l.dir);
|
|
3078
3078
|
if (b !== void 0) {
|
|
3079
3079
|
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
|
|
3080
3080
|
v.preventDefault();
|
|
@@ -3083,7 +3083,7 @@ var al = d.forwardRef((e, t) => {
|
|
|
3083
3083
|
else if (b === "prev" || b === "next") {
|
|
3084
3084
|
b === "prev" && y.reverse();
|
|
3085
3085
|
const S = y.indexOf(v.currentTarget);
|
|
3086
|
-
y = l.loop ?
|
|
3086
|
+
y = l.loop ? fl(y, S + 1) : y.slice(S + 1);
|
|
3087
3087
|
}
|
|
3088
3088
|
setTimeout(() => Dr(y));
|
|
3089
3089
|
}
|
|
@@ -3096,7 +3096,7 @@ var al = d.forwardRef((e, t) => {
|
|
|
3096
3096
|
}
|
|
3097
3097
|
);
|
|
3098
3098
|
Or.displayName = _r;
|
|
3099
|
-
var
|
|
3099
|
+
var ll = {
|
|
3100
3100
|
ArrowLeft: "prev",
|
|
3101
3101
|
ArrowUp: "prev",
|
|
3102
3102
|
ArrowRight: "next",
|
|
@@ -3106,30 +3106,30 @@ var cl = {
|
|
|
3106
3106
|
PageDown: "last",
|
|
3107
3107
|
End: "last"
|
|
3108
3108
|
};
|
|
3109
|
-
function
|
|
3109
|
+
function ul(e, t) {
|
|
3110
3110
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3113
|
-
const o =
|
|
3112
|
+
function dl(e, t, n) {
|
|
3113
|
+
const o = ul(e.key, n);
|
|
3114
3114
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
3115
|
-
return
|
|
3115
|
+
return ll[o];
|
|
3116
3116
|
}
|
|
3117
3117
|
function Dr(e, t = !1) {
|
|
3118
3118
|
const n = document.activeElement;
|
|
3119
3119
|
for (const o of e)
|
|
3120
3120
|
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
3121
3121
|
}
|
|
3122
|
-
function
|
|
3122
|
+
function fl(e, t) {
|
|
3123
3123
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
3124
3124
|
}
|
|
3125
|
-
var kr = Nr, Fr = Or,
|
|
3125
|
+
var kr = Nr, Fr = Or, pl = function(e) {
|
|
3126
3126
|
if (typeof document > "u")
|
|
3127
3127
|
return null;
|
|
3128
3128
|
var t = Array.isArray(e) ? e[0] : e;
|
|
3129
3129
|
return t.ownerDocument.body;
|
|
3130
3130
|
}, Qe = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), Tt = {}, bn = 0, Lr = function(e) {
|
|
3131
3131
|
return e && (e.host || Lr(e.parentNode));
|
|
3132
|
-
},
|
|
3132
|
+
}, hl = function(e, t) {
|
|
3133
3133
|
return t.map(function(n) {
|
|
3134
3134
|
if (e.contains(n))
|
|
3135
3135
|
return n;
|
|
@@ -3138,8 +3138,8 @@ var kr = Nr, Fr = Or, fl = function(e) {
|
|
|
3138
3138
|
}).filter(function(n) {
|
|
3139
3139
|
return !!n;
|
|
3140
3140
|
});
|
|
3141
|
-
},
|
|
3142
|
-
var r =
|
|
3141
|
+
}, ml = function(e, t, n, o) {
|
|
3142
|
+
var r = hl(t, Array.isArray(e) ? e : [e]);
|
|
3143
3143
|
Tt[n] || (Tt[n] = /* @__PURE__ */ new WeakMap());
|
|
3144
3144
|
var i = Tt[n], a = [], s = /* @__PURE__ */ new Set(), c = new Set(r), u = function(f) {
|
|
3145
3145
|
!f || s.has(f) || (s.add(f), u(f.parentNode));
|
|
@@ -3166,8 +3166,8 @@ var kr = Nr, Fr = Or, fl = function(e) {
|
|
|
3166
3166
|
};
|
|
3167
3167
|
}, $r = function(e, t, n) {
|
|
3168
3168
|
n === void 0 && (n = "data-aria-hidden");
|
|
3169
|
-
var o = Array.from(Array.isArray(e) ? e : [e]), r =
|
|
3170
|
-
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))),
|
|
3169
|
+
var o = Array.from(Array.isArray(e) ? e : [e]), r = pl(e);
|
|
3170
|
+
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), ml(o, r, n, "aria-hidden")) : function() {
|
|
3171
3171
|
return null;
|
|
3172
3172
|
};
|
|
3173
3173
|
}, Re = function() {
|
|
@@ -3187,16 +3187,16 @@ function Vr(e, t) {
|
|
|
3187
3187
|
t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
|
|
3188
3188
|
return n;
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function gl(e, t, n) {
|
|
3191
3191
|
if (n || arguments.length === 2) for (var o = 0, r = t.length, i; o < r; o++)
|
|
3192
3192
|
(i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
|
|
3193
3193
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
3194
3194
|
}
|
|
3195
|
-
var Ft = "right-scroll-bar-position", Lt = "width-before-scroll-bar",
|
|
3195
|
+
var Ft = "right-scroll-bar-position", Lt = "width-before-scroll-bar", vl = "with-scroll-bars-hidden", wl = "--removed-body-scroll-bar-size";
|
|
3196
3196
|
function Cn(e, t) {
|
|
3197
3197
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3199
|
+
function yl(e, t) {
|
|
3200
3200
|
var n = ce(function() {
|
|
3201
3201
|
return {
|
|
3202
3202
|
// value
|
|
@@ -3217,14 +3217,14 @@ function wl(e, t) {
|
|
|
3217
3217
|
})[0];
|
|
3218
3218
|
return n.callback = t, n.facade;
|
|
3219
3219
|
}
|
|
3220
|
-
var
|
|
3221
|
-
function
|
|
3222
|
-
var n =
|
|
3220
|
+
var bl = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Vo = /* @__PURE__ */ new WeakMap();
|
|
3221
|
+
function Cl(e, t) {
|
|
3222
|
+
var n = yl(null, function(o) {
|
|
3223
3223
|
return e.forEach(function(r) {
|
|
3224
3224
|
return Cn(r, o);
|
|
3225
3225
|
});
|
|
3226
3226
|
});
|
|
3227
|
-
return
|
|
3227
|
+
return bl(function() {
|
|
3228
3228
|
var o = Vo.get(n);
|
|
3229
3229
|
if (o) {
|
|
3230
3230
|
var r = new Set(o), i = new Set(e), a = n.current;
|
|
@@ -3237,11 +3237,11 @@ function bl(e, t) {
|
|
|
3237
3237
|
Vo.set(n, e);
|
|
3238
3238
|
}, [e]), n;
|
|
3239
3239
|
}
|
|
3240
|
-
function
|
|
3240
|
+
function Sl(e) {
|
|
3241
3241
|
return e;
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3244
|
-
t === void 0 && (t =
|
|
3243
|
+
function xl(e, t) {
|
|
3244
|
+
t === void 0 && (t = Sl);
|
|
3245
3245
|
var n = [], o = !1, r = {
|
|
3246
3246
|
read: function() {
|
|
3247
3247
|
if (o)
|
|
@@ -3295,9 +3295,9 @@ function Sl(e, t) {
|
|
|
3295
3295
|
};
|
|
3296
3296
|
return r;
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3298
|
+
function El(e) {
|
|
3299
3299
|
e === void 0 && (e = {});
|
|
3300
|
-
var t =
|
|
3300
|
+
var t = xl(null);
|
|
3301
3301
|
return t.options = Re({ async: !0, ssr: !1 }, e), t;
|
|
3302
3302
|
}
|
|
3303
3303
|
var Br = function(e) {
|
|
@@ -3310,16 +3310,16 @@ var Br = function(e) {
|
|
|
3310
3310
|
return d.createElement(o, Re({}, n));
|
|
3311
3311
|
};
|
|
3312
3312
|
Br.isSideCarExport = !0;
|
|
3313
|
-
function
|
|
3313
|
+
function Rl(e, t) {
|
|
3314
3314
|
return e.useMedium(t), Br;
|
|
3315
3315
|
}
|
|
3316
|
-
var Wr =
|
|
3316
|
+
var Wr = El(), Sn = function() {
|
|
3317
3317
|
}, tn = d.forwardRef(function(e, t) {
|
|
3318
3318
|
var n = d.useRef(null), o = d.useState({
|
|
3319
3319
|
onScrollCapture: Sn,
|
|
3320
3320
|
onWheelCapture: Sn,
|
|
3321
3321
|
onTouchMoveCapture: Sn
|
|
3322
|
-
}), r = o[0], i = o[1], a = e.forwardProps, s = e.children, c = e.className, u = e.removeScrollBar, l = e.enabled, f = 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 = Vr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = h, A =
|
|
3322
|
+
}), r = o[0], i = o[1], a = e.forwardProps, s = e.children, c = e.className, u = e.removeScrollBar, l = e.enabled, f = 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 = Vr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = h, A = Cl([n, t]), E = Re(Re({}, S), r);
|
|
3323
3323
|
return d.createElement(
|
|
3324
3324
|
d.Fragment,
|
|
3325
3325
|
null,
|
|
@@ -3336,37 +3336,37 @@ tn.classNames = {
|
|
|
3336
3336
|
fullWidth: Lt,
|
|
3337
3337
|
zeroRight: Ft
|
|
3338
3338
|
};
|
|
3339
|
-
var
|
|
3339
|
+
var Al = function() {
|
|
3340
3340
|
if (typeof __webpack_nonce__ < "u")
|
|
3341
3341
|
return __webpack_nonce__;
|
|
3342
3342
|
};
|
|
3343
|
-
function
|
|
3343
|
+
function Pl() {
|
|
3344
3344
|
if (!document)
|
|
3345
3345
|
return null;
|
|
3346
3346
|
var e = document.createElement("style");
|
|
3347
3347
|
e.type = "text/css";
|
|
3348
|
-
var t =
|
|
3348
|
+
var t = Al();
|
|
3349
3349
|
return t && e.setAttribute("nonce", t), e;
|
|
3350
3350
|
}
|
|
3351
|
-
function
|
|
3351
|
+
function Tl(e, t) {
|
|
3352
3352
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
3353
3353
|
}
|
|
3354
|
-
function
|
|
3354
|
+
function Il(e) {
|
|
3355
3355
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
3356
3356
|
t.appendChild(e);
|
|
3357
3357
|
}
|
|
3358
|
-
var
|
|
3358
|
+
var Ml = function() {
|
|
3359
3359
|
var e = 0, t = null;
|
|
3360
3360
|
return {
|
|
3361
3361
|
add: function(n) {
|
|
3362
|
-
e == 0 && (t =
|
|
3362
|
+
e == 0 && (t = Pl()) && (Tl(t, n), Il(t)), e++;
|
|
3363
3363
|
},
|
|
3364
3364
|
remove: function() {
|
|
3365
3365
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
3366
3366
|
}
|
|
3367
3367
|
};
|
|
3368
|
-
},
|
|
3369
|
-
var e =
|
|
3368
|
+
}, Nl = function() {
|
|
3369
|
+
var e = Ml();
|
|
3370
3370
|
return function(t, n) {
|
|
3371
3371
|
d.useEffect(function() {
|
|
3372
3372
|
return e.add(t), function() {
|
|
@@ -3375,35 +3375,35 @@ var Il = function() {
|
|
|
3375
3375
|
}, [t && n]);
|
|
3376
3376
|
};
|
|
3377
3377
|
}, Ur = function() {
|
|
3378
|
-
var e =
|
|
3378
|
+
var e = Nl(), t = function(n) {
|
|
3379
3379
|
var o = n.styles, r = n.dynamic;
|
|
3380
3380
|
return e(o, r), null;
|
|
3381
3381
|
};
|
|
3382
3382
|
return t;
|
|
3383
|
-
},
|
|
3383
|
+
}, _l = {
|
|
3384
3384
|
left: 0,
|
|
3385
3385
|
top: 0,
|
|
3386
3386
|
right: 0,
|
|
3387
3387
|
gap: 0
|
|
3388
3388
|
}, xn = function(e) {
|
|
3389
3389
|
return parseInt(e || "", 10) || 0;
|
|
3390
|
-
},
|
|
3390
|
+
}, Ol = function(e) {
|
|
3391
3391
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3392
3392
|
return [xn(n), xn(o), xn(r)];
|
|
3393
|
-
},
|
|
3393
|
+
}, Dl = function(e) {
|
|
3394
3394
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
3395
|
-
return
|
|
3396
|
-
var t =
|
|
3395
|
+
return _l;
|
|
3396
|
+
var t = Ol(e), n = document.documentElement.clientWidth, o = window.innerWidth;
|
|
3397
3397
|
return {
|
|
3398
3398
|
left: t[0],
|
|
3399
3399
|
top: t[1],
|
|
3400
3400
|
right: t[2],
|
|
3401
3401
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
3402
3402
|
};
|
|
3403
|
-
},
|
|
3403
|
+
}, kl = Ur(), ot = "data-scroll-locked", Fl = function(e, t, n, o) {
|
|
3404
3404
|
var r = e.left, i = e.top, a = e.right, s = e.gap;
|
|
3405
3405
|
return n === void 0 && (n = "margin"), `
|
|
3406
|
-
.`.concat(
|
|
3406
|
+
.`.concat(vl, ` {
|
|
3407
3407
|
overflow: hidden `).concat(o, `;
|
|
3408
3408
|
padding-right: `).concat(s, "px ").concat(o, `;
|
|
3409
3409
|
}
|
|
@@ -3441,26 +3441,26 @@ var Il = function() {
|
|
|
3441
3441
|
}
|
|
3442
3442
|
|
|
3443
3443
|
body[`).concat(ot, `] {
|
|
3444
|
-
`).concat(
|
|
3444
|
+
`).concat(wl, ": ").concat(s, `px;
|
|
3445
3445
|
}
|
|
3446
3446
|
`);
|
|
3447
3447
|
}, Bo = function() {
|
|
3448
3448
|
var e = parseInt(document.body.getAttribute(ot) || "0", 10);
|
|
3449
3449
|
return isFinite(e) ? e : 0;
|
|
3450
|
-
},
|
|
3450
|
+
}, Ll = function() {
|
|
3451
3451
|
d.useEffect(function() {
|
|
3452
3452
|
return document.body.setAttribute(ot, (Bo() + 1).toString()), function() {
|
|
3453
3453
|
var e = Bo() - 1;
|
|
3454
3454
|
e <= 0 ? document.body.removeAttribute(ot) : document.body.setAttribute(ot, e.toString());
|
|
3455
3455
|
};
|
|
3456
3456
|
}, []);
|
|
3457
|
-
},
|
|
3457
|
+
}, $l = function(e) {
|
|
3458
3458
|
var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o;
|
|
3459
|
-
|
|
3459
|
+
Ll();
|
|
3460
3460
|
var i = d.useMemo(function() {
|
|
3461
|
-
return
|
|
3461
|
+
return Dl(r);
|
|
3462
3462
|
}, [r]);
|
|
3463
|
-
return d.createElement(
|
|
3463
|
+
return d.createElement(kl, { styles: Fl(i, !t, r, n ? "" : "!important") });
|
|
3464
3464
|
}, _n = !1;
|
|
3465
3465
|
if (typeof window < "u")
|
|
3466
3466
|
try {
|
|
@@ -3473,7 +3473,7 @@ if (typeof window < "u")
|
|
|
3473
3473
|
} catch {
|
|
3474
3474
|
_n = !1;
|
|
3475
3475
|
}
|
|
3476
|
-
var et = _n ? { passive: !1 } : !1,
|
|
3476
|
+
var et = _n ? { passive: !1 } : !1, Vl = function(e) {
|
|
3477
3477
|
return e.tagName === "TEXTAREA";
|
|
3478
3478
|
}, Hr = function(e, t) {
|
|
3479
3479
|
if (!(e instanceof Element))
|
|
@@ -3482,11 +3482,11 @@ var et = _n ? { passive: !1 } : !1, $l = function(e) {
|
|
|
3482
3482
|
return (
|
|
3483
3483
|
// not-not-scrollable
|
|
3484
3484
|
n[t] !== "hidden" && // contains scroll inside self
|
|
3485
|
-
!(n.overflowY === n.overflowX &&
|
|
3485
|
+
!(n.overflowY === n.overflowX && !Vl(e) && n[t] === "visible")
|
|
3486
3486
|
);
|
|
3487
|
-
}, Vl = function(e) {
|
|
3488
|
-
return Hr(e, "overflowY");
|
|
3489
3487
|
}, Bl = function(e) {
|
|
3488
|
+
return Hr(e, "overflowY");
|
|
3489
|
+
}, Wl = function(e) {
|
|
3490
3490
|
return Hr(e, "overflowX");
|
|
3491
3491
|
}, Wo = function(e, t) {
|
|
3492
3492
|
var n = t.ownerDocument, o = t;
|
|
@@ -3501,14 +3501,14 @@ var et = _n ? { passive: !1 } : !1, $l = function(e) {
|
|
|
3501
3501
|
o = o.parentNode;
|
|
3502
3502
|
} while (o && o !== n.body);
|
|
3503
3503
|
return !1;
|
|
3504
|
-
},
|
|
3504
|
+
}, Ul = function(e) {
|
|
3505
3505
|
var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
|
|
3506
3506
|
return [
|
|
3507
3507
|
t,
|
|
3508
3508
|
n,
|
|
3509
3509
|
o
|
|
3510
3510
|
];
|
|
3511
|
-
},
|
|
3511
|
+
}, Hl = function(e) {
|
|
3512
3512
|
var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
|
|
3513
3513
|
return [
|
|
3514
3514
|
t,
|
|
@@ -3516,13 +3516,13 @@ var et = _n ? { passive: !1 } : !1, $l = function(e) {
|
|
|
3516
3516
|
o
|
|
3517
3517
|
];
|
|
3518
3518
|
}, Kr = function(e, t) {
|
|
3519
|
-
return e === "v" ?
|
|
3519
|
+
return e === "v" ? Bl(t) : Wl(t);
|
|
3520
3520
|
}, Gr = function(e, t) {
|
|
3521
|
-
return e === "v" ?
|
|
3522
|
-
},
|
|
3521
|
+
return e === "v" ? Ul(t) : Hl(t);
|
|
3522
|
+
}, Kl = function(e, t) {
|
|
3523
3523
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3524
|
-
},
|
|
3525
|
-
var i =
|
|
3524
|
+
}, Gl = function(e, t, n, o, r) {
|
|
3525
|
+
var i = Kl(e, window.getComputedStyle(t).direction), a = i * o, s = n.target, c = t.contains(s), u = !1, l = a > 0, f = 0, h = 0;
|
|
3526
3526
|
do {
|
|
3527
3527
|
if (!s)
|
|
3528
3528
|
break;
|
|
@@ -3542,22 +3542,22 @@ var et = _n ? { passive: !1 } : !1, $l = function(e) {
|
|
|
3542
3542
|
return [e.deltaX, e.deltaY];
|
|
3543
3543
|
}, Ho = function(e) {
|
|
3544
3544
|
return e && "current" in e ? e.current : e;
|
|
3545
|
-
},
|
|
3545
|
+
}, zl = function(e, t) {
|
|
3546
3546
|
return e[0] === t[0] && e[1] === t[1];
|
|
3547
|
-
},
|
|
3547
|
+
}, jl = function(e) {
|
|
3548
3548
|
return `
|
|
3549
3549
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
3550
3550
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
3551
3551
|
`);
|
|
3552
|
-
},
|
|
3553
|
-
function
|
|
3554
|
-
var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(
|
|
3552
|
+
}, Yl = 0, tt = [];
|
|
3553
|
+
function Xl(e) {
|
|
3554
|
+
var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(Yl++)[0], i = d.useState(Ur)[0], a = d.useRef(e);
|
|
3555
3555
|
d.useEffect(function() {
|
|
3556
3556
|
a.current = e;
|
|
3557
3557
|
}, [e]), d.useEffect(function() {
|
|
3558
3558
|
if (e.inert) {
|
|
3559
3559
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
3560
|
-
var m =
|
|
3560
|
+
var m = gl([e.lockRef.current], (e.shards || []).map(Ho), !0).filter(Boolean);
|
|
3561
3561
|
return m.forEach(function(v) {
|
|
3562
3562
|
return v.classList.add("allow-interactivity-".concat(r));
|
|
3563
3563
|
}), function() {
|
|
@@ -3584,12 +3584,12 @@ function Yl(e) {
|
|
|
3584
3584
|
if (!o.current && "changedTouches" in m && (y || S) && (o.current = R), !R)
|
|
3585
3585
|
return !0;
|
|
3586
3586
|
var L = o.current || R;
|
|
3587
|
-
return
|
|
3587
|
+
return Gl(L, v, m, L === "h" ? y : S);
|
|
3588
3588
|
}, []), c = d.useCallback(function(m) {
|
|
3589
3589
|
var v = m;
|
|
3590
3590
|
if (!(!tt.length || tt[tt.length - 1] !== i)) {
|
|
3591
3591
|
var b = "deltaY" in v ? Uo(v) : Mt(v), C = t.current.filter(function(R) {
|
|
3592
|
-
return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) &&
|
|
3592
|
+
return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && zl(R.delta, b);
|
|
3593
3593
|
})[0];
|
|
3594
3594
|
if (C && C.should) {
|
|
3595
3595
|
v.cancelable && v.preventDefault();
|
|
@@ -3603,7 +3603,7 @@ function Yl(e) {
|
|
|
3603
3603
|
}
|
|
3604
3604
|
}
|
|
3605
3605
|
}, []), u = d.useCallback(function(m, v, b, C) {
|
|
3606
|
-
var y = { name: m, delta: v, target: b, should: C, shadowParent:
|
|
3606
|
+
var y = { name: m, delta: v, target: b, should: C, shadowParent: Zl(b) };
|
|
3607
3607
|
t.current.push(y), setTimeout(function() {
|
|
3608
3608
|
t.current = t.current.filter(function(S) {
|
|
3609
3609
|
return S !== y;
|
|
@@ -3631,31 +3631,31 @@ function Yl(e) {
|
|
|
3631
3631
|
return d.createElement(
|
|
3632
3632
|
d.Fragment,
|
|
3633
3633
|
null,
|
|
3634
|
-
w ? d.createElement(i, { styles:
|
|
3635
|
-
g ? d.createElement(
|
|
3634
|
+
w ? d.createElement(i, { styles: jl(r) }) : null,
|
|
3635
|
+
g ? d.createElement($l, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
3636
3636
|
);
|
|
3637
3637
|
}
|
|
3638
|
-
function
|
|
3638
|
+
function Zl(e) {
|
|
3639
3639
|
for (var t = null; e !== null; )
|
|
3640
3640
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3641
3641
|
return t;
|
|
3642
3642
|
}
|
|
3643
|
-
const
|
|
3643
|
+
const ql = Rl(Wr, Xl);
|
|
3644
3644
|
var eo = d.forwardRef(function(e, t) {
|
|
3645
|
-
return d.createElement(tn, Re({}, e, { ref: t, sideCar:
|
|
3645
|
+
return d.createElement(tn, Re({}, e, { ref: t, sideCar: ql }));
|
|
3646
3646
|
});
|
|
3647
3647
|
eo.classNames = tn.classNames;
|
|
3648
|
-
var On = ["Enter", " "],
|
|
3648
|
+
var On = ["Enter", " "], Jl = ["ArrowDown", "PageUp", "Home"], zr = ["ArrowUp", "PageDown", "End"], Ql = [...Jl, ...zr], eu = {
|
|
3649
3649
|
ltr: [...On, "ArrowRight"],
|
|
3650
3650
|
rtl: [...On, "ArrowLeft"]
|
|
3651
|
-
},
|
|
3651
|
+
}, tu = {
|
|
3652
3652
|
ltr: ["ArrowLeft"],
|
|
3653
3653
|
rtl: ["ArrowRight"]
|
|
3654
|
-
}, xt = "Menu", [yt,
|
|
3655
|
-
|
|
3654
|
+
}, xt = "Menu", [yt, nu, ou] = Un(xt), [qe, jr] = Ze(xt, [
|
|
3655
|
+
ou,
|
|
3656
3656
|
Qt,
|
|
3657
3657
|
en
|
|
3658
|
-
]), nn = Qt(), Yr = en(), [
|
|
3658
|
+
]), nn = Qt(), Yr = en(), [ru, Je] = qe(xt), [iu, Et] = qe(xt), Xr = (e) => {
|
|
3659
3659
|
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = nn(t), [c, u] = d.useState(null), l = d.useRef(!1), f = Me(i), h = Yt(r);
|
|
3660
3660
|
return d.useEffect(() => {
|
|
3661
3661
|
const g = () => {
|
|
@@ -3665,7 +3665,7 @@ var On = ["Enter", " "], ql = ["ArrowDown", "PageUp", "Home"], zr = ["ArrowUp",
|
|
|
3665
3665
|
document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
|
|
3666
3666
|
};
|
|
3667
3667
|
}, []), /* @__PURE__ */ p(Ar, { ...s, children: /* @__PURE__ */ p(
|
|
3668
|
-
|
|
3668
|
+
ru,
|
|
3669
3669
|
{
|
|
3670
3670
|
scope: t,
|
|
3671
3671
|
open: n,
|
|
@@ -3673,7 +3673,7 @@ var On = ["Enter", " "], ql = ["ArrowDown", "PageUp", "Home"], zr = ["ArrowUp",
|
|
|
3673
3673
|
content: c,
|
|
3674
3674
|
onContentChange: u,
|
|
3675
3675
|
children: /* @__PURE__ */ p(
|
|
3676
|
-
|
|
3676
|
+
iu,
|
|
3677
3677
|
{
|
|
3678
3678
|
scope: t,
|
|
3679
3679
|
onClose: d.useCallback(() => f(!1), [f]),
|
|
@@ -3687,26 +3687,26 @@ var On = ["Enter", " "], ql = ["ArrowDown", "PageUp", "Home"], zr = ["ArrowUp",
|
|
|
3687
3687
|
) });
|
|
3688
3688
|
};
|
|
3689
3689
|
Xr.displayName = xt;
|
|
3690
|
-
var
|
|
3690
|
+
var su = "MenuAnchor", to = d.forwardRef(
|
|
3691
3691
|
(e, t) => {
|
|
3692
3692
|
const { __scopeMenu: n, ...o } = e, r = nn(n);
|
|
3693
3693
|
return /* @__PURE__ */ p(Pr, { ...r, ...o, ref: t });
|
|
3694
3694
|
}
|
|
3695
3695
|
);
|
|
3696
|
-
to.displayName =
|
|
3697
|
-
var no = "MenuPortal", [
|
|
3696
|
+
to.displayName = su;
|
|
3697
|
+
var no = "MenuPortal", [au, Zr] = qe(no, {
|
|
3698
3698
|
forceMount: void 0
|
|
3699
3699
|
}), qr = (e) => {
|
|
3700
3700
|
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = Je(no, t);
|
|
3701
|
-
return /* @__PURE__ */ p(
|
|
3701
|
+
return /* @__PURE__ */ p(au, { scope: t, forceMount: n, children: /* @__PURE__ */ p(at, { present: n || i.open, children: /* @__PURE__ */ p(Qn, { asChild: !0, container: r, children: o }) }) });
|
|
3702
3702
|
};
|
|
3703
3703
|
qr.displayName = no;
|
|
3704
|
-
var ve = "MenuContent", [
|
|
3704
|
+
var ve = "MenuContent", [cu, oo] = qe(ve), Jr = d.forwardRef(
|
|
3705
3705
|
(e, t) => {
|
|
3706
3706
|
const n = Zr(ve, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Je(ve, e.__scopeMenu), a = Et(ve, e.__scopeMenu);
|
|
3707
|
-
return /* @__PURE__ */ p(yt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(at, { present: o || i.open, children: /* @__PURE__ */ p(yt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(
|
|
3707
|
+
return /* @__PURE__ */ p(yt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(at, { present: o || i.open, children: /* @__PURE__ */ p(yt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(lu, { ...r, ref: t }) : /* @__PURE__ */ p(uu, { ...r, ref: t }) }) }) });
|
|
3708
3708
|
}
|
|
3709
|
-
),
|
|
3709
|
+
), lu = d.forwardRef(
|
|
3710
3710
|
(e, t) => {
|
|
3711
3711
|
const n = Je(ve, e.__scopeMenu), o = d.useRef(null), r = X(t, o);
|
|
3712
3712
|
return d.useEffect(() => {
|
|
@@ -3729,7 +3729,7 @@ var ve = "MenuContent", [au, oo] = qe(ve), Jr = d.forwardRef(
|
|
|
3729
3729
|
}
|
|
3730
3730
|
);
|
|
3731
3731
|
}
|
|
3732
|
-
),
|
|
3732
|
+
), uu = d.forwardRef((e, t) => {
|
|
3733
3733
|
const n = Je(ve, e.__scopeMenu);
|
|
3734
3734
|
return /* @__PURE__ */ p(
|
|
3735
3735
|
ro,
|
|
@@ -3742,7 +3742,7 @@ var ve = "MenuContent", [au, oo] = qe(ve), Jr = d.forwardRef(
|
|
|
3742
3742
|
onDismiss: () => n.onOpenChange(!1)
|
|
3743
3743
|
}
|
|
3744
3744
|
);
|
|
3745
|
-
}),
|
|
3745
|
+
}), du = /* @__PURE__ */ gt("MenuContent.ScrollLock"), ro = d.forwardRef(
|
|
3746
3746
|
(e, t) => {
|
|
3747
3747
|
const {
|
|
3748
3748
|
__scopeMenu: n,
|
|
@@ -3759,9 +3759,9 @@ var ve = "MenuContent", [au, oo] = qe(ve), Jr = d.forwardRef(
|
|
|
3759
3759
|
onDismiss: g,
|
|
3760
3760
|
disableOutsideScroll: w,
|
|
3761
3761
|
...m
|
|
3762
|
-
} = e, v = Je(ve, n), b = Et(ve, n), C = nn(n), y = Yr(n), S =
|
|
3762
|
+
} = e, v = Je(ve, n), b = Et(ve, n), C = nn(n), y = Yr(n), S = nu(n), [R, A] = d.useState(null), E = d.useRef(null), x = X(t, E, v.onContentChange), I = d.useRef(0), T = d.useRef(""), D = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), G = w ? eo : d.Fragment, O = w ? { as: du, allowPinchZoom: !0 } : void 0, B = (P) => {
|
|
3763
3763
|
var M, W;
|
|
3764
|
-
const j = T.current + P, J = S().filter((K) => !K.disabled), oe = document.activeElement, we = (M = J.find((K) => K.ref.current === oe)) == null ? void 0 : M.textValue, de = J.map((K) => K.textValue), ye =
|
|
3764
|
+
const j = T.current + P, J = S().filter((K) => !K.disabled), oe = document.activeElement, we = (M = J.find((K) => K.ref.current === oe)) == null ? void 0 : M.textValue, de = J.map((K) => K.textValue), ye = xu(de, j, we), ie = (W = J.find((K) => K.textValue === ye)) == null ? void 0 : W.ref.current;
|
|
3765
3765
|
(function K(H) {
|
|
3766
3766
|
T.current = H, window.clearTimeout(I.current), H !== "" && (I.current = window.setTimeout(() => K(""), 1e3));
|
|
3767
3767
|
})(j), ie && setTimeout(() => ie.focus());
|
|
@@ -3769,10 +3769,10 @@ var ve = "MenuContent", [au, oo] = qe(ve), Jr = d.forwardRef(
|
|
|
3769
3769
|
d.useEffect(() => () => window.clearTimeout(I.current), []), or();
|
|
3770
3770
|
const _ = d.useCallback((P) => {
|
|
3771
3771
|
var J, oe;
|
|
3772
|
-
return $.current === ((J = L.current) == null ? void 0 : J.side) &&
|
|
3772
|
+
return $.current === ((J = L.current) == null ? void 0 : J.side) && Ru(P, (oe = L.current) == null ? void 0 : oe.area);
|
|
3773
3773
|
}, []);
|
|
3774
3774
|
return /* @__PURE__ */ p(
|
|
3775
|
-
|
|
3775
|
+
cu,
|
|
3776
3776
|
{
|
|
3777
3777
|
scope: n,
|
|
3778
3778
|
searchRef: T,
|
|
@@ -3849,10 +3849,10 @@ var ve = "MenuContent", [au, oo] = qe(ve), Jr = d.forwardRef(
|
|
|
3849
3849
|
const J = P.target.closest("[data-radix-menu-content]") === P.currentTarget, oe = P.ctrlKey || P.altKey || P.metaKey, we = P.key.length === 1;
|
|
3850
3850
|
J && (P.key === "Tab" && P.preventDefault(), !oe && we && B(P.key));
|
|
3851
3851
|
const de = E.current;
|
|
3852
|
-
if (P.target !== de || !
|
|
3852
|
+
if (P.target !== de || !Ql.includes(P.key)) return;
|
|
3853
3853
|
P.preventDefault();
|
|
3854
3854
|
const ie = S().filter((M) => !M.disabled).map((M) => M.ref.current);
|
|
3855
|
-
zr.includes(P.key) && ie.reverse(),
|
|
3855
|
+
zr.includes(P.key) && ie.reverse(), Cu(ie);
|
|
3856
3856
|
}),
|
|
3857
3857
|
onBlur: N(e.onBlur, (P) => {
|
|
3858
3858
|
P.currentTarget.contains(P.target) || (window.clearTimeout(I.current), T.current = "");
|
|
@@ -3880,20 +3880,20 @@ var ve = "MenuContent", [au, oo] = qe(ve), Jr = d.forwardRef(
|
|
|
3880
3880
|
}
|
|
3881
3881
|
);
|
|
3882
3882
|
Jr.displayName = ve;
|
|
3883
|
-
var
|
|
3883
|
+
var fu = "MenuGroup", io = d.forwardRef(
|
|
3884
3884
|
(e, t) => {
|
|
3885
3885
|
const { __scopeMenu: n, ...o } = e;
|
|
3886
3886
|
return /* @__PURE__ */ p(U.div, { role: "group", ...o, ref: t });
|
|
3887
3887
|
}
|
|
3888
3888
|
);
|
|
3889
|
-
io.displayName =
|
|
3890
|
-
var
|
|
3889
|
+
io.displayName = fu;
|
|
3890
|
+
var pu = "MenuLabel", Qr = d.forwardRef(
|
|
3891
3891
|
(e, t) => {
|
|
3892
3892
|
const { __scopeMenu: n, ...o } = e;
|
|
3893
3893
|
return /* @__PURE__ */ p(U.div, { ...o, ref: t });
|
|
3894
3894
|
}
|
|
3895
3895
|
);
|
|
3896
|
-
Qr.displayName =
|
|
3896
|
+
Qr.displayName = pu;
|
|
3897
3897
|
var Ut = "MenuItem", Ko = "menu.itemSelect", on = d.forwardRef(
|
|
3898
3898
|
(e, t) => {
|
|
3899
3899
|
const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), a = Et(Ut, e.__scopeMenu), s = oo(Ut, e.__scopeMenu), c = X(t, i), u = d.useRef(!1), l = () => {
|
|
@@ -3965,7 +3965,7 @@ var ei = d.forwardRef(
|
|
|
3965
3965
|
}
|
|
3966
3966
|
);
|
|
3967
3967
|
}
|
|
3968
|
-
),
|
|
3968
|
+
), hu = "MenuCheckboxItem", ti = d.forwardRef(
|
|
3969
3969
|
(e, t) => {
|
|
3970
3970
|
const { checked: n = !1, onCheckedChange: o, ...r } = e;
|
|
3971
3971
|
return /* @__PURE__ */ p(si, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p(
|
|
@@ -3985,21 +3985,21 @@ var ei = d.forwardRef(
|
|
|
3985
3985
|
) });
|
|
3986
3986
|
}
|
|
3987
3987
|
);
|
|
3988
|
-
ti.displayName =
|
|
3989
|
-
var ni = "MenuRadioGroup", [
|
|
3988
|
+
ti.displayName = hu;
|
|
3989
|
+
var ni = "MenuRadioGroup", [mu, gu] = qe(
|
|
3990
3990
|
ni,
|
|
3991
3991
|
{ value: void 0, onValueChange: () => {
|
|
3992
3992
|
} }
|
|
3993
3993
|
), oi = d.forwardRef(
|
|
3994
3994
|
(e, t) => {
|
|
3995
3995
|
const { value: n, onValueChange: o, ...r } = e, i = Me(o);
|
|
3996
|
-
return /* @__PURE__ */ p(
|
|
3996
|
+
return /* @__PURE__ */ p(mu, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ p(io, { ...r, ref: t }) });
|
|
3997
3997
|
}
|
|
3998
3998
|
);
|
|
3999
3999
|
oi.displayName = ni;
|
|
4000
4000
|
var ri = "MenuRadioItem", ii = d.forwardRef(
|
|
4001
4001
|
(e, t) => {
|
|
4002
|
-
const { value: n, ...o } = e, r =
|
|
4002
|
+
const { value: n, ...o } = e, r = gu(ri, e.__scopeMenu), i = n === r.value;
|
|
4003
4003
|
return /* @__PURE__ */ p(si, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ p(
|
|
4004
4004
|
on,
|
|
4005
4005
|
{
|
|
@@ -4021,12 +4021,12 @@ var ri = "MenuRadioItem", ii = d.forwardRef(
|
|
|
4021
4021
|
}
|
|
4022
4022
|
);
|
|
4023
4023
|
ii.displayName = ri;
|
|
4024
|
-
var so = "MenuItemIndicator", [si,
|
|
4024
|
+
var so = "MenuItemIndicator", [si, vu] = qe(
|
|
4025
4025
|
so,
|
|
4026
4026
|
{ checked: !1 }
|
|
4027
4027
|
), ai = d.forwardRef(
|
|
4028
4028
|
(e, t) => {
|
|
4029
|
-
const { __scopeMenu: n, forceMount: o, ...r } = e, i =
|
|
4029
|
+
const { __scopeMenu: n, forceMount: o, ...r } = e, i = vu(so, n);
|
|
4030
4030
|
return /* @__PURE__ */ p(
|
|
4031
4031
|
at,
|
|
4032
4032
|
{
|
|
@@ -4044,7 +4044,7 @@ var so = "MenuItemIndicator", [si, gu] = qe(
|
|
|
4044
4044
|
}
|
|
4045
4045
|
);
|
|
4046
4046
|
ai.displayName = so;
|
|
4047
|
-
var
|
|
4047
|
+
var wu = "MenuSeparator", ci = d.forwardRef(
|
|
4048
4048
|
(e, t) => {
|
|
4049
4049
|
const { __scopeMenu: n, ...o } = e;
|
|
4050
4050
|
return /* @__PURE__ */ p(
|
|
@@ -4058,15 +4058,15 @@ var vu = "MenuSeparator", ci = d.forwardRef(
|
|
|
4058
4058
|
);
|
|
4059
4059
|
}
|
|
4060
4060
|
);
|
|
4061
|
-
ci.displayName =
|
|
4062
|
-
var
|
|
4061
|
+
ci.displayName = wu;
|
|
4062
|
+
var yu = "MenuArrow", li = d.forwardRef(
|
|
4063
4063
|
(e, t) => {
|
|
4064
4064
|
const { __scopeMenu: n, ...o } = e, r = nn(n);
|
|
4065
4065
|
return /* @__PURE__ */ p(Ir, { ...r, ...o, ref: t });
|
|
4066
4066
|
}
|
|
4067
4067
|
);
|
|
4068
|
-
li.displayName =
|
|
4069
|
-
var
|
|
4068
|
+
li.displayName = yu;
|
|
4069
|
+
var bu = "MenuSub", [Yf, ui] = qe(bu), ft = "MenuSubTrigger", di = d.forwardRef(
|
|
4070
4070
|
(e, t) => {
|
|
4071
4071
|
const n = Je(ft, e.__scopeMenu), o = Et(ft, e.__scopeMenu), r = ui(ft, e.__scopeMenu), i = oo(ft, e.__scopeMenu), a = d.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = i, u = { __scopeMenu: e.__scopeMenu }, l = d.useCallback(() => {
|
|
4072
4072
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
@@ -4130,7 +4130,7 @@ var yu = "MenuSub", [Gf, ui] = qe(yu), ft = "MenuSubTrigger", di = d.forwardRef(
|
|
|
4130
4130
|
onKeyDown: N(e.onKeyDown, (f) => {
|
|
4131
4131
|
var g;
|
|
4132
4132
|
const h = i.searchRef.current !== "";
|
|
4133
|
-
e.disabled || h && f.key === " " ||
|
|
4133
|
+
e.disabled || h && f.key === " " || eu[o.dir].includes(f.key) && (n.onOpenChange(!0), (g = n.content) == null || g.focus(), f.preventDefault());
|
|
4134
4134
|
})
|
|
4135
4135
|
}
|
|
4136
4136
|
) });
|
|
@@ -4165,7 +4165,7 @@ var fi = "MenuSubContent", pi = d.forwardRef(
|
|
|
4165
4165
|
}),
|
|
4166
4166
|
onKeyDown: N(e.onKeyDown, (l) => {
|
|
4167
4167
|
var g;
|
|
4168
|
-
const f = l.currentTarget.contains(l.target), h =
|
|
4168
|
+
const f = l.currentTarget.contains(l.target), h = tu[a.dir].includes(l.key);
|
|
4169
4169
|
f && h && (i.onOpenChange(!1), (g = s.trigger) == null || g.focus(), l.preventDefault());
|
|
4170
4170
|
})
|
|
4171
4171
|
}
|
|
@@ -4182,24 +4182,24 @@ function Ht(e) {
|
|
|
4182
4182
|
function ao(e) {
|
|
4183
4183
|
return Ht(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
4184
4184
|
}
|
|
4185
|
-
function
|
|
4185
|
+
function Cu(e) {
|
|
4186
4186
|
const t = document.activeElement;
|
|
4187
4187
|
for (const n of e)
|
|
4188
4188
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
4189
4189
|
}
|
|
4190
|
-
function
|
|
4190
|
+
function Su(e, t) {
|
|
4191
4191
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
4192
4192
|
}
|
|
4193
|
-
function
|
|
4193
|
+
function xu(e, t, n) {
|
|
4194
4194
|
const r = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
|
|
4195
|
-
let a =
|
|
4195
|
+
let a = Su(e, Math.max(i, 0));
|
|
4196
4196
|
r.length === 1 && (a = a.filter((u) => u !== n));
|
|
4197
4197
|
const c = a.find(
|
|
4198
4198
|
(u) => u.toLowerCase().startsWith(r.toLowerCase())
|
|
4199
4199
|
);
|
|
4200
4200
|
return c !== n ? c : void 0;
|
|
4201
4201
|
}
|
|
4202
|
-
function
|
|
4202
|
+
function Eu(e, t) {
|
|
4203
4203
|
const { x: n, y: o } = e;
|
|
4204
4204
|
let r = !1;
|
|
4205
4205
|
for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
|
|
@@ -4208,18 +4208,18 @@ function xu(e, t) {
|
|
|
4208
4208
|
}
|
|
4209
4209
|
return r;
|
|
4210
4210
|
}
|
|
4211
|
-
function
|
|
4211
|
+
function Ru(e, t) {
|
|
4212
4212
|
if (!t) return !1;
|
|
4213
4213
|
const n = { x: e.clientX, y: e.clientY };
|
|
4214
|
-
return
|
|
4214
|
+
return Eu(n, t);
|
|
4215
4215
|
}
|
|
4216
4216
|
function bt(e) {
|
|
4217
4217
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
4218
4218
|
}
|
|
4219
|
-
var
|
|
4219
|
+
var Au = Xr, Pu = to, Tu = qr, Iu = Jr, Mu = io, Nu = Qr, _u = on, Ou = ti, Du = oi, ku = ii, Fu = ai, Lu = ci, $u = li, Vu = di, Bu = pi, rn = "DropdownMenu", [Wu] = Ze(
|
|
4220
4220
|
rn,
|
|
4221
4221
|
[jr]
|
|
4222
|
-
), ue = jr(), [
|
|
4222
|
+
), ue = jr(), [Uu, mi] = Wu(rn), gi = (e) => {
|
|
4223
4223
|
const {
|
|
4224
4224
|
__scopeDropdownMenu: t,
|
|
4225
4225
|
children: n,
|
|
@@ -4235,7 +4235,7 @@ var Ru = Xr, Au = to, Pu = qr, Tu = Jr, Iu = io, Mu = Qr, Nu = on, _u = ti, Ou =
|
|
|
4235
4235
|
caller: rn
|
|
4236
4236
|
});
|
|
4237
4237
|
return /* @__PURE__ */ p(
|
|
4238
|
-
|
|
4238
|
+
Uu,
|
|
4239
4239
|
{
|
|
4240
4240
|
scope: t,
|
|
4241
4241
|
triggerId: ze(),
|
|
@@ -4245,7 +4245,7 @@ var Ru = Xr, Au = to, Pu = qr, Tu = Jr, Iu = io, Mu = Qr, Nu = on, _u = ti, Ou =
|
|
|
4245
4245
|
onOpenChange: f,
|
|
4246
4246
|
onOpenToggle: d.useCallback(() => f((h) => !h), [f]),
|
|
4247
4247
|
modal: s,
|
|
4248
|
-
children: /* @__PURE__ */ p(
|
|
4248
|
+
children: /* @__PURE__ */ p(Au, { ...c, open: l, onOpenChange: f, dir: o, modal: s, children: n })
|
|
4249
4249
|
}
|
|
4250
4250
|
);
|
|
4251
4251
|
};
|
|
@@ -4253,7 +4253,7 @@ gi.displayName = rn;
|
|
|
4253
4253
|
var vi = "DropdownMenuTrigger", wi = d.forwardRef(
|
|
4254
4254
|
(e, t) => {
|
|
4255
4255
|
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = mi(vi, n), a = ue(n);
|
|
4256
|
-
return /* @__PURE__ */ p(
|
|
4256
|
+
return /* @__PURE__ */ p(Pu, { asChild: !0, ...a, children: /* @__PURE__ */ p(
|
|
4257
4257
|
U.button,
|
|
4258
4258
|
{
|
|
4259
4259
|
type: "button",
|
|
@@ -4277,16 +4277,16 @@ var vi = "DropdownMenuTrigger", wi = d.forwardRef(
|
|
|
4277
4277
|
}
|
|
4278
4278
|
);
|
|
4279
4279
|
wi.displayName = vi;
|
|
4280
|
-
var
|
|
4280
|
+
var Hu = "DropdownMenuPortal", yi = (e) => {
|
|
4281
4281
|
const { __scopeDropdownMenu: t, ...n } = e, o = ue(t);
|
|
4282
|
-
return /* @__PURE__ */ p(
|
|
4282
|
+
return /* @__PURE__ */ p(Tu, { ...o, ...n });
|
|
4283
4283
|
};
|
|
4284
|
-
yi.displayName =
|
|
4284
|
+
yi.displayName = Hu;
|
|
4285
4285
|
var bi = "DropdownMenuContent", Ci = d.forwardRef(
|
|
4286
4286
|
(e, t) => {
|
|
4287
4287
|
const { __scopeDropdownMenu: n, ...o } = e, r = mi(bi, n), i = ue(n), a = d.useRef(!1);
|
|
4288
4288
|
return /* @__PURE__ */ p(
|
|
4289
|
-
|
|
4289
|
+
Iu,
|
|
4290
4290
|
{
|
|
4291
4291
|
id: r.contentId,
|
|
4292
4292
|
"aria-labelledby": r.triggerId,
|
|
@@ -4314,68 +4314,68 @@ var bi = "DropdownMenuContent", Ci = d.forwardRef(
|
|
|
4314
4314
|
}
|
|
4315
4315
|
);
|
|
4316
4316
|
Ci.displayName = bi;
|
|
4317
|
-
var
|
|
4317
|
+
var Ku = "DropdownMenuGroup", Gu = d.forwardRef(
|
|
4318
4318
|
(e, t) => {
|
|
4319
4319
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4320
|
-
return /* @__PURE__ */ p(
|
|
4320
|
+
return /* @__PURE__ */ p(Mu, { ...r, ...o, ref: t });
|
|
4321
4321
|
}
|
|
4322
4322
|
);
|
|
4323
|
-
|
|
4324
|
-
var
|
|
4323
|
+
Gu.displayName = Ku;
|
|
4324
|
+
var zu = "DropdownMenuLabel", ju = d.forwardRef(
|
|
4325
4325
|
(e, t) => {
|
|
4326
4326
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4327
|
-
return /* @__PURE__ */ p(
|
|
4327
|
+
return /* @__PURE__ */ p(Nu, { ...r, ...o, ref: t });
|
|
4328
4328
|
}
|
|
4329
4329
|
);
|
|
4330
|
-
|
|
4331
|
-
var
|
|
4330
|
+
ju.displayName = zu;
|
|
4331
|
+
var Yu = "DropdownMenuItem", Si = d.forwardRef(
|
|
4332
4332
|
(e, t) => {
|
|
4333
4333
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4334
|
-
return /* @__PURE__ */ p(
|
|
4334
|
+
return /* @__PURE__ */ p(_u, { ...r, ...o, ref: t });
|
|
4335
4335
|
}
|
|
4336
4336
|
);
|
|
4337
|
-
Si.displayName =
|
|
4338
|
-
var
|
|
4339
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4340
|
-
return /* @__PURE__ */ p(_u, { ...r, ...o, ref: t });
|
|
4341
|
-
});
|
|
4342
|
-
xi.displayName = Yu;
|
|
4343
|
-
var Xu = "DropdownMenuRadioGroup", Zu = d.forwardRef((e, t) => {
|
|
4337
|
+
Si.displayName = Yu;
|
|
4338
|
+
var Xu = "DropdownMenuCheckboxItem", xi = d.forwardRef((e, t) => {
|
|
4344
4339
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4345
4340
|
return /* @__PURE__ */ p(Ou, { ...r, ...o, ref: t });
|
|
4346
4341
|
});
|
|
4347
|
-
|
|
4348
|
-
var
|
|
4342
|
+
xi.displayName = Xu;
|
|
4343
|
+
var Zu = "DropdownMenuRadioGroup", qu = d.forwardRef((e, t) => {
|
|
4349
4344
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4350
4345
|
return /* @__PURE__ */ p(Du, { ...r, ...o, ref: t });
|
|
4351
4346
|
});
|
|
4352
|
-
|
|
4353
|
-
var
|
|
4347
|
+
qu.displayName = Zu;
|
|
4348
|
+
var Ju = "DropdownMenuRadioItem", Qu = d.forwardRef((e, t) => {
|
|
4354
4349
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4355
4350
|
return /* @__PURE__ */ p(ku, { ...r, ...o, ref: t });
|
|
4356
4351
|
});
|
|
4357
|
-
|
|
4358
|
-
var ed = "
|
|
4352
|
+
Qu.displayName = Ju;
|
|
4353
|
+
var ed = "DropdownMenuItemIndicator", Ei = d.forwardRef((e, t) => {
|
|
4359
4354
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4360
4355
|
return /* @__PURE__ */ p(Fu, { ...r, ...o, ref: t });
|
|
4361
4356
|
});
|
|
4362
|
-
|
|
4363
|
-
var td = "
|
|
4357
|
+
Ei.displayName = ed;
|
|
4358
|
+
var td = "DropdownMenuSeparator", Ri = d.forwardRef((e, t) => {
|
|
4359
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4360
|
+
return /* @__PURE__ */ p(Lu, { ...r, ...o, ref: t });
|
|
4361
|
+
});
|
|
4362
|
+
Ri.displayName = td;
|
|
4363
|
+
var nd = "DropdownMenuArrow", od = d.forwardRef(
|
|
4364
4364
|
(e, t) => {
|
|
4365
4365
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4366
|
-
return /* @__PURE__ */ p(
|
|
4366
|
+
return /* @__PURE__ */ p($u, { ...r, ...o, ref: t });
|
|
4367
4367
|
}
|
|
4368
4368
|
);
|
|
4369
|
-
|
|
4370
|
-
var
|
|
4369
|
+
od.displayName = nd;
|
|
4370
|
+
var rd = "DropdownMenuSubTrigger", id = d.forwardRef((e, t) => {
|
|
4371
4371
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4372
|
-
return /* @__PURE__ */ p(
|
|
4372
|
+
return /* @__PURE__ */ p(Vu, { ...r, ...o, ref: t });
|
|
4373
4373
|
});
|
|
4374
|
-
|
|
4375
|
-
var
|
|
4374
|
+
id.displayName = rd;
|
|
4375
|
+
var sd = "DropdownMenuSubContent", ad = d.forwardRef((e, t) => {
|
|
4376
4376
|
const { __scopeDropdownMenu: n, ...o } = e, r = ue(n);
|
|
4377
4377
|
return /* @__PURE__ */ p(
|
|
4378
|
-
|
|
4378
|
+
Bu,
|
|
4379
4379
|
{
|
|
4380
4380
|
...r,
|
|
4381
4381
|
...o,
|
|
@@ -4391,17 +4391,17 @@ var id = "DropdownMenuSubContent", sd = d.forwardRef((e, t) => {
|
|
|
4391
4391
|
}
|
|
4392
4392
|
);
|
|
4393
4393
|
});
|
|
4394
|
-
|
|
4395
|
-
var
|
|
4396
|
-
function
|
|
4397
|
-
return /* @__PURE__ */ p(
|
|
4394
|
+
ad.displayName = sd;
|
|
4395
|
+
var cd = gi, ld = wi, ud = yi, dd = Ci, fd = Si, pd = xi, hd = Ei, md = Ri;
|
|
4396
|
+
function gd({ children: e, modal: t = !1 }) {
|
|
4397
|
+
return /* @__PURE__ */ p(cd, { modal: t, children: e });
|
|
4398
4398
|
}
|
|
4399
|
-
function
|
|
4400
|
-
return /* @__PURE__ */ p(
|
|
4399
|
+
function vd({ asChild: e, children: t }) {
|
|
4400
|
+
return /* @__PURE__ */ p(ld, { asChild: e, children: t });
|
|
4401
4401
|
}
|
|
4402
|
-
function
|
|
4403
|
-
return /* @__PURE__ */ p(
|
|
4404
|
-
|
|
4402
|
+
function wd({ align: e = "end", sideOffset: t = 4, className: n, children: o }) {
|
|
4403
|
+
return /* @__PURE__ */ p(ud, { children: /* @__PURE__ */ p(
|
|
4404
|
+
dd,
|
|
4405
4405
|
{
|
|
4406
4406
|
align: e,
|
|
4407
4407
|
sideOffset: t,
|
|
@@ -4410,9 +4410,9 @@ function vd({ align: e = "end", sideOffset: t = 4, className: n, children: o })
|
|
|
4410
4410
|
}
|
|
4411
4411
|
) });
|
|
4412
4412
|
}
|
|
4413
|
-
function
|
|
4413
|
+
function yd({ onClick: e, disabled: t, className: n, asChild: o, children: r }) {
|
|
4414
4414
|
return /* @__PURE__ */ p(
|
|
4415
|
-
|
|
4415
|
+
fd,
|
|
4416
4416
|
{
|
|
4417
4417
|
onClick: e,
|
|
4418
4418
|
disabled: t,
|
|
@@ -4422,31 +4422,31 @@ function wd({ onClick: e, disabled: t, className: n, asChild: o, children: r })
|
|
|
4422
4422
|
}
|
|
4423
4423
|
);
|
|
4424
4424
|
}
|
|
4425
|
-
function
|
|
4425
|
+
function bd({ checked: e, onCheckedChange: t, className: n, children: o }) {
|
|
4426
4426
|
return /* @__PURE__ */ k(
|
|
4427
|
-
|
|
4427
|
+
pd,
|
|
4428
4428
|
{
|
|
4429
4429
|
checked: e,
|
|
4430
4430
|
onCheckedChange: t,
|
|
4431
4431
|
className: q("snow-dropdown-checkbox-item", n),
|
|
4432
4432
|
children: [
|
|
4433
|
-
/* @__PURE__ */ p("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ p(
|
|
4433
|
+
/* @__PURE__ */ p("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ p(hd, { children: /* @__PURE__ */ p(Yo, { className: "snow-size-4" }) }) }),
|
|
4434
4434
|
o
|
|
4435
4435
|
]
|
|
4436
4436
|
}
|
|
4437
4437
|
);
|
|
4438
4438
|
}
|
|
4439
|
-
function
|
|
4440
|
-
return /* @__PURE__ */ p(
|
|
4439
|
+
function Cd() {
|
|
4440
|
+
return /* @__PURE__ */ p(md, { className: "snow-dropdown-separator" });
|
|
4441
4441
|
}
|
|
4442
4442
|
const te = {
|
|
4443
|
-
Root:
|
|
4444
|
-
Trigger:
|
|
4445
|
-
Content:
|
|
4446
|
-
Item:
|
|
4447
|
-
CheckboxItem:
|
|
4448
|
-
Separator:
|
|
4449
|
-
},
|
|
4443
|
+
Root: gd,
|
|
4444
|
+
Trigger: vd,
|
|
4445
|
+
Content: wd,
|
|
4446
|
+
Item: yd,
|
|
4447
|
+
CheckboxItem: bd,
|
|
4448
|
+
Separator: Cd
|
|
4449
|
+
}, Sd = ({ to: e, children: t, className: n, target: o, rel: r, disabled: i }) => /* @__PURE__ */ p(
|
|
4450
4450
|
"a",
|
|
4451
4451
|
{
|
|
4452
4452
|
href: i ? void 0 : e,
|
|
@@ -4458,10 +4458,14 @@ const te = {
|
|
|
4458
4458
|
children: t
|
|
4459
4459
|
}
|
|
4460
4460
|
);
|
|
4461
|
-
let Ai =
|
|
4462
|
-
const
|
|
4461
|
+
let Ai = Sd;
|
|
4462
|
+
const xd = (e) => {
|
|
4463
4463
|
Ai = e;
|
|
4464
|
-
},
|
|
4464
|
+
}, Ed = () => Ai;
|
|
4465
|
+
let Pi = {};
|
|
4466
|
+
const Rd = (e) => {
|
|
4467
|
+
Pi = e;
|
|
4468
|
+
}, Ad = () => Pi, Ti = {
|
|
4465
4469
|
"dataTable.search": "Search...",
|
|
4466
4470
|
"dataTable.elements": "elements",
|
|
4467
4471
|
"dataTable.paginationSize": "per page",
|
|
@@ -4473,24 +4477,24 @@ const Sd = (e) => {
|
|
|
4473
4477
|
"dataTable.selectFilter": "Select..."
|
|
4474
4478
|
};
|
|
4475
4479
|
let Dn = null;
|
|
4476
|
-
const
|
|
4480
|
+
const Pd = (e) => {
|
|
4477
4481
|
if (Dn) {
|
|
4478
4482
|
const t = Dn(e);
|
|
4479
4483
|
if (t !== e)
|
|
4480
4484
|
return t;
|
|
4481
4485
|
}
|
|
4482
|
-
return
|
|
4483
|
-
},
|
|
4486
|
+
return Ti[e] ?? e;
|
|
4487
|
+
}, Td = (e) => {
|
|
4484
4488
|
Dn = e;
|
|
4485
|
-
}, ct = () =>
|
|
4486
|
-
Object.assign(
|
|
4489
|
+
}, ct = () => Pd, Id = (e) => {
|
|
4490
|
+
Object.assign(Ti, e);
|
|
4487
4491
|
};
|
|
4488
4492
|
let kn = !1;
|
|
4489
|
-
const
|
|
4490
|
-
kn || (
|
|
4491
|
-
},
|
|
4492
|
-
function
|
|
4493
|
-
const t = ct(), n = Rn(
|
|
4493
|
+
const Xf = (e) => {
|
|
4494
|
+
kn || (Td(e.translate), e.translations && Id(e.translations), e.styles && Rd(e.styles), xd(e.LinkComponent), kn = !0);
|
|
4495
|
+
}, Zf = () => kn;
|
|
4496
|
+
function Md({ table: e }) {
|
|
4497
|
+
const t = ct(), n = Rn(ia()), o = Se(() => e.getAllColumns().filter((s) => {
|
|
4494
4498
|
const c = s.columnDef.header;
|
|
4495
4499
|
return !(!c || typeof c == "string" && c.trim() === "" || s.columnDef.enableHiding === !1);
|
|
4496
4500
|
}), [e]), r = () => {
|
|
@@ -4501,12 +4505,12 @@ function Pd({ table: e }) {
|
|
|
4501
4505
|
});
|
|
4502
4506
|
};
|
|
4503
4507
|
ht(() => {
|
|
4504
|
-
const s =
|
|
4508
|
+
const s = oa(n.current);
|
|
4505
4509
|
let c = !1;
|
|
4506
4510
|
s ? (Object.entries(s).forEach(([u, l]) => {
|
|
4507
4511
|
const f = e.getColumn(u);
|
|
4508
4512
|
f ? f.toggleVisibility(l) : c = !0;
|
|
4509
|
-
}), c &&
|
|
4513
|
+
}), c && ra(n.current)) : r();
|
|
4510
4514
|
}, [n.current, e, o]);
|
|
4511
4515
|
const i = (s, c) => {
|
|
4512
4516
|
const u = e.getColumn(s);
|
|
@@ -4553,17 +4557,17 @@ function Pd({ table: e }) {
|
|
|
4553
4557
|
] })
|
|
4554
4558
|
] });
|
|
4555
4559
|
}
|
|
4556
|
-
function
|
|
4560
|
+
function Nd({ className: e }) {
|
|
4557
4561
|
return /* @__PURE__ */ p("div", { className: q("snow-skeleton", e) });
|
|
4558
4562
|
}
|
|
4559
4563
|
function Go(e, [t, n]) {
|
|
4560
4564
|
return Math.min(n, Math.max(t, e));
|
|
4561
4565
|
}
|
|
4562
|
-
function
|
|
4566
|
+
function _d(e) {
|
|
4563
4567
|
const t = d.useRef({ value: e, previous: e });
|
|
4564
4568
|
return d.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
4565
4569
|
}
|
|
4566
|
-
var
|
|
4570
|
+
var Ii = Object.freeze({
|
|
4567
4571
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
4568
4572
|
position: "absolute",
|
|
4569
4573
|
border: 0,
|
|
@@ -4575,21 +4579,21 @@ var Ti = Object.freeze({
|
|
|
4575
4579
|
clip: "rect(0, 0, 0, 0)",
|
|
4576
4580
|
whiteSpace: "nowrap",
|
|
4577
4581
|
wordWrap: "normal"
|
|
4578
|
-
}),
|
|
4582
|
+
}), Od = "VisuallyHidden", Dd = d.forwardRef(
|
|
4579
4583
|
(e, t) => /* @__PURE__ */ p(
|
|
4580
4584
|
U.span,
|
|
4581
4585
|
{
|
|
4582
4586
|
...e,
|
|
4583
4587
|
ref: t,
|
|
4584
|
-
style: { ...
|
|
4588
|
+
style: { ...Ii, ...e.style }
|
|
4585
4589
|
}
|
|
4586
4590
|
)
|
|
4587
4591
|
);
|
|
4588
|
-
|
|
4589
|
-
var
|
|
4590
|
-
|
|
4592
|
+
Dd.displayName = Od;
|
|
4593
|
+
var kd = [" ", "Enter", "ArrowUp", "ArrowDown"], Fd = [" ", "Enter"], Ye = "Select", [sn, an, Ld] = Un(Ye), [lt] = Ze(Ye, [
|
|
4594
|
+
Ld,
|
|
4591
4595
|
Qt
|
|
4592
|
-
]), cn = Qt(), [
|
|
4596
|
+
]), cn = Qt(), [$d, Ve] = lt(Ye), [Vd, Bd] = lt(Ye), Mi = (e) => {
|
|
4593
4597
|
const {
|
|
4594
4598
|
__scopeSelect: t,
|
|
4595
4599
|
children: n,
|
|
@@ -4617,7 +4621,7 @@ var _d = [" ", "Enter", "ArrowUp", "ArrowDown"], Od = [" ", "Enter"], Ye = "Sele
|
|
|
4617
4621
|
caller: Ye
|
|
4618
4622
|
}), D = d.useRef(null), L = v ? w || !!v.closest("form") : !0, [$, F] = d.useState(/* @__PURE__ */ new Set()), G = Array.from($).map((O) => O.props.value).join(";");
|
|
4619
4623
|
return /* @__PURE__ */ p(Ar, { ...m, children: /* @__PURE__ */ k(
|
|
4620
|
-
|
|
4624
|
+
$d,
|
|
4621
4625
|
{
|
|
4622
4626
|
required: g,
|
|
4623
4627
|
scope: t,
|
|
@@ -4637,7 +4641,7 @@ var _d = [" ", "Enter", "ArrowUp", "ArrowDown"], Od = [" ", "Enter"], Ye = "Sele
|
|
|
4637
4641
|
disabled: h,
|
|
4638
4642
|
children: [
|
|
4639
4643
|
/* @__PURE__ */ p(sn.Provider, { scope: t, children: /* @__PURE__ */ p(
|
|
4640
|
-
|
|
4644
|
+
Vd,
|
|
4641
4645
|
{
|
|
4642
4646
|
scope: e.__scopeSelect,
|
|
4643
4647
|
onNativeOptionAdd: d.useCallback((O) => {
|
|
@@ -4653,7 +4657,7 @@ var _d = [" ", "Enter", "ArrowUp", "ArrowDown"], Od = [" ", "Enter"], Ye = "Sele
|
|
|
4653
4657
|
}
|
|
4654
4658
|
) }),
|
|
4655
4659
|
L ? /* @__PURE__ */ k(
|
|
4656
|
-
|
|
4660
|
+
Zi,
|
|
4657
4661
|
{
|
|
4658
4662
|
"aria-hidden": !0,
|
|
4659
4663
|
required: g,
|
|
@@ -4675,11 +4679,11 @@ var _d = [" ", "Enter", "ArrowUp", "ArrowDown"], Od = [" ", "Enter"], Ye = "Sele
|
|
|
4675
4679
|
}
|
|
4676
4680
|
) });
|
|
4677
4681
|
};
|
|
4678
|
-
|
|
4679
|
-
var
|
|
4682
|
+
Mi.displayName = Ye;
|
|
4683
|
+
var Ni = "SelectTrigger", _i = d.forwardRef(
|
|
4680
4684
|
(e, t) => {
|
|
4681
|
-
const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = cn(n), a = Ve(
|
|
4682
|
-
const v = u().filter((y) => !y.disabled), b = v.find((y) => y.value === a.value), C =
|
|
4685
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = cn(n), a = Ve(Ni, n), s = a.disabled || o, c = X(t, a.onTriggerChange), u = an(n), l = d.useRef("touch"), [f, h, g] = Ji((m) => {
|
|
4686
|
+
const v = u().filter((y) => !y.disabled), b = v.find((y) => y.value === a.value), C = Qi(v, m, b);
|
|
4683
4687
|
C !== void 0 && a.onValueChange(C.value);
|
|
4684
4688
|
}), w = (m) => {
|
|
4685
4689
|
s || (a.onOpenChange(!0), g()), m && (a.triggerPointerDownPosRef.current = {
|
|
@@ -4700,7 +4704,7 @@ var Mi = "SelectTrigger", Ni = d.forwardRef(
|
|
|
4700
4704
|
"data-state": a.open ? "open" : "closed",
|
|
4701
4705
|
disabled: s,
|
|
4702
4706
|
"data-disabled": s ? "" : void 0,
|
|
4703
|
-
"data-placeholder":
|
|
4707
|
+
"data-placeholder": qi(a.value) ? "" : void 0,
|
|
4704
4708
|
...r,
|
|
4705
4709
|
ref: c,
|
|
4706
4710
|
onClick: N(r.onClick, (m) => {
|
|
@@ -4713,16 +4717,16 @@ var Mi = "SelectTrigger", Ni = d.forwardRef(
|
|
|
4713
4717
|
}),
|
|
4714
4718
|
onKeyDown: N(r.onKeyDown, (m) => {
|
|
4715
4719
|
const v = f.current !== "";
|
|
4716
|
-
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && h(m.key), !(v && m.key === " ") &&
|
|
4720
|
+
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && h(m.key), !(v && m.key === " ") && kd.includes(m.key) && (w(), m.preventDefault());
|
|
4717
4721
|
})
|
|
4718
4722
|
}
|
|
4719
4723
|
) });
|
|
4720
4724
|
}
|
|
4721
4725
|
);
|
|
4722
|
-
|
|
4723
|
-
var
|
|
4726
|
+
_i.displayName = Ni;
|
|
4727
|
+
var Oi = "SelectValue", Di = d.forwardRef(
|
|
4724
4728
|
(e, t) => {
|
|
4725
|
-
const { __scopeSelect: n, className: o, style: r, children: i, placeholder: a = "", ...s } = e, c = Ve(
|
|
4729
|
+
const { __scopeSelect: n, className: o, style: r, children: i, placeholder: a = "", ...s } = e, c = Ve(Oi, n), { onValueNodeHasChildrenChange: u } = c, l = i !== void 0, f = X(t, c.onValueNodeChange);
|
|
4726
4730
|
return re(() => {
|
|
4727
4731
|
u(l);
|
|
4728
4732
|
}, [u, l]), /* @__PURE__ */ p(
|
|
@@ -4731,22 +4735,22 @@ var _i = "SelectValue", Oi = d.forwardRef(
|
|
|
4731
4735
|
...s,
|
|
4732
4736
|
ref: f,
|
|
4733
4737
|
style: { pointerEvents: "none" },
|
|
4734
|
-
children:
|
|
4738
|
+
children: qi(c.value) ? /* @__PURE__ */ p(Gt, { children: a }) : i
|
|
4735
4739
|
}
|
|
4736
4740
|
);
|
|
4737
4741
|
}
|
|
4738
4742
|
);
|
|
4739
|
-
|
|
4740
|
-
var
|
|
4743
|
+
Di.displayName = Oi;
|
|
4744
|
+
var Wd = "SelectIcon", ki = d.forwardRef(
|
|
4741
4745
|
(e, t) => {
|
|
4742
4746
|
const { __scopeSelect: n, children: o, ...r } = e;
|
|
4743
4747
|
return /* @__PURE__ */ p(U.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
|
|
4744
4748
|
}
|
|
4745
4749
|
);
|
|
4746
|
-
|
|
4747
|
-
var
|
|
4748
|
-
|
|
4749
|
-
var Xe = "SelectContent",
|
|
4750
|
+
ki.displayName = Wd;
|
|
4751
|
+
var Ud = "SelectPortal", Fi = (e) => /* @__PURE__ */ p(Qn, { asChild: !0, ...e });
|
|
4752
|
+
Fi.displayName = Ud;
|
|
4753
|
+
var Xe = "SelectContent", Li = d.forwardRef(
|
|
4750
4754
|
(e, t) => {
|
|
4751
4755
|
const n = Ve(Xe, e.__scopeSelect), [o, r] = d.useState();
|
|
4752
4756
|
if (re(() => {
|
|
@@ -4754,15 +4758,15 @@ var Xe = "SelectContent", Fi = d.forwardRef(
|
|
|
4754
4758
|
}, []), !n.open) {
|
|
4755
4759
|
const i = o;
|
|
4756
4760
|
return i ? zt.createPortal(
|
|
4757
|
-
/* @__PURE__ */ p(
|
|
4761
|
+
/* @__PURE__ */ p($i, { scope: e.__scopeSelect, children: /* @__PURE__ */ p(sn.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ p("div", { children: e.children }) }) }),
|
|
4758
4762
|
i
|
|
4759
4763
|
) : null;
|
|
4760
4764
|
}
|
|
4761
|
-
return /* @__PURE__ */ p(
|
|
4765
|
+
return /* @__PURE__ */ p(Vi, { ...e, ref: t });
|
|
4762
4766
|
}
|
|
4763
4767
|
);
|
|
4764
|
-
|
|
4765
|
-
var be = 10, [
|
|
4768
|
+
Li.displayName = Xe;
|
|
4769
|
+
var be = 10, [$i, Be] = lt(Xe), Hd = "SelectContentImpl", Kd = /* @__PURE__ */ gt("SelectContent.RemoveScroll"), Vi = d.forwardRef(
|
|
4766
4770
|
(e, t) => {
|
|
4767
4771
|
const {
|
|
4768
4772
|
__scopeSelect: n,
|
|
@@ -4827,8 +4831,8 @@ var be = 10, [Li, Be] = lt(Xe), Bd = "SelectContentImpl", Wd = /* @__PURE__ */ g
|
|
|
4827
4831
|
window.removeEventListener("blur", M), window.removeEventListener("resize", M);
|
|
4828
4832
|
};
|
|
4829
4833
|
}, [_]);
|
|
4830
|
-
const [j, J] =
|
|
4831
|
-
const W = L().filter((V) => !V.disabled), K = W.find((V) => V.ref.current === document.activeElement), H =
|
|
4834
|
+
const [j, J] = Ji((M) => {
|
|
4835
|
+
const W = L().filter((V) => !V.disabled), K = W.find((V) => V.ref.current === document.activeElement), H = Qi(W, M, K);
|
|
4832
4836
|
H && setTimeout(() => H.ref.current.focus());
|
|
4833
4837
|
}), oe = d.useCallback(
|
|
4834
4838
|
(M, W, K) => {
|
|
@@ -4842,7 +4846,7 @@ var be = 10, [Li, Be] = lt(Xe), Bd = "SelectContentImpl", Wd = /* @__PURE__ */ g
|
|
|
4842
4846
|
(C.value !== void 0 && C.value === W || H) && D(M);
|
|
4843
4847
|
},
|
|
4844
4848
|
[C.value]
|
|
4845
|
-
), ye = o === "popper" ? Fn :
|
|
4849
|
+
), ye = o === "popper" ? Fn : Bi, ie = ye === Fn ? {
|
|
4846
4850
|
side: s,
|
|
4847
4851
|
sideOffset: c,
|
|
4848
4852
|
align: u,
|
|
@@ -4855,7 +4859,7 @@ var be = 10, [Li, Be] = lt(Xe), Bd = "SelectContentImpl", Wd = /* @__PURE__ */ g
|
|
|
4855
4859
|
avoidCollisions: v
|
|
4856
4860
|
} : {};
|
|
4857
4861
|
return /* @__PURE__ */ p(
|
|
4858
|
-
|
|
4862
|
+
$i,
|
|
4859
4863
|
{
|
|
4860
4864
|
scope: n,
|
|
4861
4865
|
content: y,
|
|
@@ -4870,7 +4874,7 @@ var be = 10, [Li, Be] = lt(Xe), Bd = "SelectContentImpl", Wd = /* @__PURE__ */ g
|
|
|
4870
4874
|
position: o,
|
|
4871
4875
|
isPositioned: $,
|
|
4872
4876
|
searchRef: j,
|
|
4873
|
-
children: /* @__PURE__ */ p(eo, { as:
|
|
4877
|
+
children: /* @__PURE__ */ p(eo, { as: Kd, allowPinchZoom: !0, children: /* @__PURE__ */ p(
|
|
4874
4878
|
Kn,
|
|
4875
4879
|
{
|
|
4876
4880
|
asChild: !0,
|
|
@@ -4932,8 +4936,8 @@ var be = 10, [Li, Be] = lt(Xe), Bd = "SelectContentImpl", Wd = /* @__PURE__ */ g
|
|
|
4932
4936
|
);
|
|
4933
4937
|
}
|
|
4934
4938
|
);
|
|
4935
|
-
|
|
4936
|
-
var
|
|
4939
|
+
Vi.displayName = Hd;
|
|
4940
|
+
var Gd = "SelectItemAlignedPosition", Bi = d.forwardRef((e, t) => {
|
|
4937
4941
|
const { __scopeSelect: n, onPlaced: o, ...r } = e, i = Ve(Xe, n), a = Be(Xe, n), [s, c] = d.useState(null), [u, l] = d.useState(null), f = X(t, (E) => l(E)), h = an(n), g = d.useRef(!1), w = d.useRef(!0), { viewport: m, selectedItem: v, selectedItemText: b, focusSelectedItem: C } = a, y = d.useCallback(() => {
|
|
4938
4942
|
if (i.trigger && i.valueNode && s && u && m && v && b) {
|
|
4939
4943
|
const E = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(), I = i.valueNode.getBoundingClientRect(), T = b.getBoundingClientRect();
|
|
@@ -5001,7 +5005,7 @@ var Ud = "SelectItemAlignedPosition", Vi = d.forwardRef((e, t) => {
|
|
|
5001
5005
|
[y, C]
|
|
5002
5006
|
);
|
|
5003
5007
|
return /* @__PURE__ */ p(
|
|
5004
|
-
|
|
5008
|
+
jd,
|
|
5005
5009
|
{
|
|
5006
5010
|
scope: n,
|
|
5007
5011
|
contentWrapper: s,
|
|
@@ -5037,8 +5041,8 @@ var Ud = "SelectItemAlignedPosition", Vi = d.forwardRef((e, t) => {
|
|
|
5037
5041
|
}
|
|
5038
5042
|
);
|
|
5039
5043
|
});
|
|
5040
|
-
|
|
5041
|
-
var
|
|
5044
|
+
Bi.displayName = Gd;
|
|
5045
|
+
var zd = "SelectPopperPosition", Fn = d.forwardRef((e, t) => {
|
|
5042
5046
|
const {
|
|
5043
5047
|
__scopeSelect: n,
|
|
5044
5048
|
align: o = "start",
|
|
@@ -5066,8 +5070,8 @@ var Hd = "SelectPopperPosition", Fn = d.forwardRef((e, t) => {
|
|
|
5066
5070
|
}
|
|
5067
5071
|
);
|
|
5068
5072
|
});
|
|
5069
|
-
Fn.displayName =
|
|
5070
|
-
var [
|
|
5073
|
+
Fn.displayName = zd;
|
|
5074
|
+
var [jd, co] = lt(Xe, {}), Ln = "SelectViewport", Wi = d.forwardRef(
|
|
5071
5075
|
(e, t) => {
|
|
5072
5076
|
const { __scopeSelect: n, nonce: o, ...r } = e, i = Be(Ln, n), a = co(Ln, n), s = X(t, i.onViewportChange), c = d.useRef(0);
|
|
5073
5077
|
return /* @__PURE__ */ k(Gt, { children: [
|
|
@@ -5119,22 +5123,22 @@ var [Kd, co] = lt(Xe, {}), Ln = "SelectViewport", Bi = d.forwardRef(
|
|
|
5119
5123
|
] });
|
|
5120
5124
|
}
|
|
5121
5125
|
);
|
|
5122
|
-
|
|
5123
|
-
var
|
|
5126
|
+
Wi.displayName = Ln;
|
|
5127
|
+
var Ui = "SelectGroup", [Yd, Xd] = lt(Ui), Zd = d.forwardRef(
|
|
5124
5128
|
(e, t) => {
|
|
5125
5129
|
const { __scopeSelect: n, ...o } = e, r = ze();
|
|
5126
|
-
return /* @__PURE__ */ p(
|
|
5130
|
+
return /* @__PURE__ */ p(Yd, { scope: n, id: r, children: /* @__PURE__ */ p(U.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
|
|
5127
5131
|
}
|
|
5128
5132
|
);
|
|
5129
|
-
|
|
5130
|
-
var
|
|
5133
|
+
Zd.displayName = Ui;
|
|
5134
|
+
var Hi = "SelectLabel", qd = d.forwardRef(
|
|
5131
5135
|
(e, t) => {
|
|
5132
|
-
const { __scopeSelect: n, ...o } = e, r =
|
|
5136
|
+
const { __scopeSelect: n, ...o } = e, r = Xd(Hi, n);
|
|
5133
5137
|
return /* @__PURE__ */ p(U.div, { id: r.id, ...o, ref: t });
|
|
5134
5138
|
}
|
|
5135
5139
|
);
|
|
5136
|
-
|
|
5137
|
-
var Kt = "SelectItem", [
|
|
5140
|
+
qd.displayName = Hi;
|
|
5141
|
+
var Kt = "SelectItem", [Jd, Ki] = lt(Kt), Gi = d.forwardRef(
|
|
5138
5142
|
(e, t) => {
|
|
5139
5143
|
const {
|
|
5140
5144
|
__scopeSelect: n,
|
|
@@ -5156,7 +5160,7 @@ var Kt = "SelectItem", [Xd, Hi] = lt(Kt), Ki = d.forwardRef(
|
|
|
5156
5160
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
5157
5161
|
);
|
|
5158
5162
|
return /* @__PURE__ */ p(
|
|
5159
|
-
|
|
5163
|
+
Jd,
|
|
5160
5164
|
{
|
|
5161
5165
|
scope: n,
|
|
5162
5166
|
value: o,
|
|
@@ -5207,7 +5211,7 @@ var Kt = "SelectItem", [Xd, Hi] = lt(Kt), Ki = d.forwardRef(
|
|
|
5207
5211
|
}),
|
|
5208
5212
|
onKeyDown: N(a.onKeyDown, (C) => {
|
|
5209
5213
|
var S;
|
|
5210
|
-
((S = c.searchRef) == null ? void 0 : S.current) !== "" && C.key === " " || (
|
|
5214
|
+
((S = c.searchRef) == null ? void 0 : S.current) !== "" && C.key === " " || (Fd.includes(C.key) && b(), C.key === " " && C.preventDefault());
|
|
5211
5215
|
})
|
|
5212
5216
|
}
|
|
5213
5217
|
)
|
|
@@ -5217,10 +5221,10 @@ var Kt = "SelectItem", [Xd, Hi] = lt(Kt), Ki = d.forwardRef(
|
|
|
5217
5221
|
);
|
|
5218
5222
|
}
|
|
5219
5223
|
);
|
|
5220
|
-
|
|
5221
|
-
var pt = "SelectItemText",
|
|
5224
|
+
Gi.displayName = Kt;
|
|
5225
|
+
var pt = "SelectItemText", zi = d.forwardRef(
|
|
5222
5226
|
(e, t) => {
|
|
5223
|
-
const { __scopeSelect: n, className: o, style: r, ...i } = e, a = Ve(pt, n), s = Be(pt, n), c =
|
|
5227
|
+
const { __scopeSelect: n, className: o, style: r, ...i } = e, a = Ve(pt, n), s = Be(pt, n), c = Ki(pt, n), u = Bd(pt, n), [l, f] = d.useState(null), h = X(
|
|
5224
5228
|
t,
|
|
5225
5229
|
(b) => f(b),
|
|
5226
5230
|
c.onItemTextChange,
|
|
@@ -5238,15 +5242,15 @@ var pt = "SelectItemText", Gi = d.forwardRef(
|
|
|
5238
5242
|
] });
|
|
5239
5243
|
}
|
|
5240
5244
|
);
|
|
5241
|
-
|
|
5242
|
-
var
|
|
5245
|
+
zi.displayName = pt;
|
|
5246
|
+
var ji = "SelectItemIndicator", Yi = d.forwardRef(
|
|
5243
5247
|
(e, t) => {
|
|
5244
5248
|
const { __scopeSelect: n, ...o } = e;
|
|
5245
|
-
return
|
|
5249
|
+
return Ki(ji, n).isSelected ? /* @__PURE__ */ p(U.span, { "aria-hidden": !0, ...o, ref: t }) : null;
|
|
5246
5250
|
}
|
|
5247
5251
|
);
|
|
5248
|
-
|
|
5249
|
-
var $n = "SelectScrollUpButton",
|
|
5252
|
+
Yi.displayName = ji;
|
|
5253
|
+
var $n = "SelectScrollUpButton", Qd = d.forwardRef((e, t) => {
|
|
5250
5254
|
const n = Be($n, e.__scopeSelect), o = co($n, e.__scopeSelect), [r, i] = d.useState(!1), a = X(t, o.onScrollButtonChange);
|
|
5251
5255
|
return re(() => {
|
|
5252
5256
|
if (n.viewport && n.isPositioned) {
|
|
@@ -5258,7 +5262,7 @@ var $n = "SelectScrollUpButton", Zd = d.forwardRef((e, t) => {
|
|
|
5258
5262
|
return s(), c.addEventListener("scroll", s), () => c.removeEventListener("scroll", s);
|
|
5259
5263
|
}
|
|
5260
5264
|
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ p(
|
|
5261
|
-
|
|
5265
|
+
Xi,
|
|
5262
5266
|
{
|
|
5263
5267
|
...e,
|
|
5264
5268
|
ref: a,
|
|
@@ -5269,8 +5273,8 @@ var $n = "SelectScrollUpButton", Zd = d.forwardRef((e, t) => {
|
|
|
5269
5273
|
}
|
|
5270
5274
|
) : null;
|
|
5271
5275
|
});
|
|
5272
|
-
|
|
5273
|
-
var Vn = "SelectScrollDownButton",
|
|
5276
|
+
Qd.displayName = $n;
|
|
5277
|
+
var Vn = "SelectScrollDownButton", ef = d.forwardRef((e, t) => {
|
|
5274
5278
|
const n = Be(Vn, e.__scopeSelect), o = co(Vn, e.__scopeSelect), [r, i] = d.useState(!1), a = X(t, o.onScrollButtonChange);
|
|
5275
5279
|
return re(() => {
|
|
5276
5280
|
if (n.viewport && n.isPositioned) {
|
|
@@ -5282,7 +5286,7 @@ var Vn = "SelectScrollDownButton", qd = d.forwardRef((e, t) => {
|
|
|
5282
5286
|
return s(), c.addEventListener("scroll", s), () => c.removeEventListener("scroll", s);
|
|
5283
5287
|
}
|
|
5284
5288
|
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ p(
|
|
5285
|
-
|
|
5289
|
+
Xi,
|
|
5286
5290
|
{
|
|
5287
5291
|
...e,
|
|
5288
5292
|
ref: a,
|
|
@@ -5293,8 +5297,8 @@ var Vn = "SelectScrollDownButton", qd = d.forwardRef((e, t) => {
|
|
|
5293
5297
|
}
|
|
5294
5298
|
) : null;
|
|
5295
5299
|
});
|
|
5296
|
-
|
|
5297
|
-
var
|
|
5300
|
+
ef.displayName = Vn;
|
|
5301
|
+
var Xi = d.forwardRef((e, t) => {
|
|
5298
5302
|
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = Be("SelectScrollButton", n), a = d.useRef(null), s = an(n), c = d.useCallback(() => {
|
|
5299
5303
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
5300
5304
|
}, []);
|
|
@@ -5321,23 +5325,23 @@ var Yi = d.forwardRef((e, t) => {
|
|
|
5321
5325
|
})
|
|
5322
5326
|
}
|
|
5323
5327
|
);
|
|
5324
|
-
}),
|
|
5328
|
+
}), tf = "SelectSeparator", nf = d.forwardRef(
|
|
5325
5329
|
(e, t) => {
|
|
5326
5330
|
const { __scopeSelect: n, ...o } = e;
|
|
5327
5331
|
return /* @__PURE__ */ p(U.div, { "aria-hidden": !0, ...o, ref: t });
|
|
5328
5332
|
}
|
|
5329
5333
|
);
|
|
5330
|
-
|
|
5331
|
-
var Bn = "SelectArrow",
|
|
5334
|
+
nf.displayName = tf;
|
|
5335
|
+
var Bn = "SelectArrow", of = d.forwardRef(
|
|
5332
5336
|
(e, t) => {
|
|
5333
5337
|
const { __scopeSelect: n, ...o } = e, r = cn(n), i = Ve(Bn, n), a = Be(Bn, n);
|
|
5334
5338
|
return i.open && a.position === "popper" ? /* @__PURE__ */ p(Ir, { ...r, ...o, ref: t }) : null;
|
|
5335
5339
|
}
|
|
5336
5340
|
);
|
|
5337
|
-
|
|
5338
|
-
var
|
|
5341
|
+
of.displayName = Bn;
|
|
5342
|
+
var rf = "SelectBubbleInput", Zi = d.forwardRef(
|
|
5339
5343
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
5340
|
-
const r = d.useRef(null), i = X(o, r), a =
|
|
5344
|
+
const r = d.useRef(null), i = X(o, r), a = _d(t);
|
|
5341
5345
|
return d.useEffect(() => {
|
|
5342
5346
|
const s = r.current;
|
|
5343
5347
|
if (!s) return;
|
|
@@ -5353,18 +5357,18 @@ var tf = "SelectBubbleInput", Xi = d.forwardRef(
|
|
|
5353
5357
|
U.select,
|
|
5354
5358
|
{
|
|
5355
5359
|
...n,
|
|
5356
|
-
style: { ...
|
|
5360
|
+
style: { ...Ii, ...n.style },
|
|
5357
5361
|
ref: i,
|
|
5358
5362
|
defaultValue: t
|
|
5359
5363
|
}
|
|
5360
5364
|
);
|
|
5361
5365
|
}
|
|
5362
5366
|
);
|
|
5363
|
-
|
|
5364
|
-
function
|
|
5367
|
+
Zi.displayName = rf;
|
|
5368
|
+
function qi(e) {
|
|
5365
5369
|
return e === "" || e === void 0;
|
|
5366
5370
|
}
|
|
5367
|
-
function
|
|
5371
|
+
function Ji(e) {
|
|
5368
5372
|
const t = Me(e), n = d.useRef(""), o = d.useRef(0), r = d.useCallback(
|
|
5369
5373
|
(a) => {
|
|
5370
5374
|
const s = n.current + a;
|
|
@@ -5378,56 +5382,56 @@ function qi(e) {
|
|
|
5378
5382
|
}, []);
|
|
5379
5383
|
return d.useEffect(() => () => window.clearTimeout(o.current), []), [n, r, i];
|
|
5380
5384
|
}
|
|
5381
|
-
function
|
|
5385
|
+
function Qi(e, t, n) {
|
|
5382
5386
|
const r = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
|
|
5383
|
-
let a =
|
|
5387
|
+
let a = sf(e, Math.max(i, 0));
|
|
5384
5388
|
r.length === 1 && (a = a.filter((u) => u !== n));
|
|
5385
5389
|
const c = a.find(
|
|
5386
5390
|
(u) => u.textValue.toLowerCase().startsWith(r.toLowerCase())
|
|
5387
5391
|
);
|
|
5388
5392
|
return c !== n ? c : void 0;
|
|
5389
5393
|
}
|
|
5390
|
-
function
|
|
5394
|
+
function sf(e, t) {
|
|
5391
5395
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
5392
5396
|
}
|
|
5393
|
-
var
|
|
5394
|
-
function
|
|
5395
|
-
return /* @__PURE__ */ p(
|
|
5397
|
+
var af = Mi, cf = _i, lf = Di, uf = ki, df = Fi, ff = Li, pf = Wi, hf = Gi, mf = zi, gf = Yi;
|
|
5398
|
+
function vf({ value: e, onValueChange: t, children: n }) {
|
|
5399
|
+
return /* @__PURE__ */ p(af, { value: e, onValueChange: t, children: n });
|
|
5396
5400
|
}
|
|
5397
|
-
function
|
|
5398
|
-
return /* @__PURE__ */ k(
|
|
5401
|
+
function wf({ className: e, children: t }) {
|
|
5402
|
+
return /* @__PURE__ */ k(cf, { className: q("snow-select-trigger", e), children: [
|
|
5399
5403
|
t,
|
|
5400
|
-
/* @__PURE__ */ p(
|
|
5404
|
+
/* @__PURE__ */ p(uf, { asChild: !0, children: /* @__PURE__ */ p(Us, { className: "snow-select-icon" }) })
|
|
5401
5405
|
] });
|
|
5402
5406
|
}
|
|
5403
|
-
function
|
|
5404
|
-
return /* @__PURE__ */ p(
|
|
5407
|
+
function yf({ placeholder: e }) {
|
|
5408
|
+
return /* @__PURE__ */ p(lf, { placeholder: e });
|
|
5405
5409
|
}
|
|
5406
|
-
function
|
|
5407
|
-
return /* @__PURE__ */ p(
|
|
5408
|
-
|
|
5410
|
+
function bf({ children: e }) {
|
|
5411
|
+
return /* @__PURE__ */ p(df, { children: /* @__PURE__ */ p(
|
|
5412
|
+
ff,
|
|
5409
5413
|
{
|
|
5410
5414
|
className: "snow-select-content",
|
|
5411
5415
|
position: "popper",
|
|
5412
5416
|
sideOffset: 4,
|
|
5413
|
-
children: /* @__PURE__ */ p(
|
|
5417
|
+
children: /* @__PURE__ */ p(pf, { className: "snow-select-viewport", children: e })
|
|
5414
5418
|
}
|
|
5415
5419
|
) });
|
|
5416
5420
|
}
|
|
5417
|
-
function
|
|
5418
|
-
return /* @__PURE__ */ k(
|
|
5419
|
-
/* @__PURE__ */ p("span", { className: "snow-select-item-indicator", children: /* @__PURE__ */ p(
|
|
5420
|
-
/* @__PURE__ */ p(
|
|
5421
|
+
function Cf({ value: e, children: t }) {
|
|
5422
|
+
return /* @__PURE__ */ k(hf, { value: e, className: "snow-select-item", children: [
|
|
5423
|
+
/* @__PURE__ */ p("span", { className: "snow-select-item-indicator", children: /* @__PURE__ */ p(gf, { children: /* @__PURE__ */ p(Yo, { className: "snow-size-4" }) }) }),
|
|
5424
|
+
/* @__PURE__ */ p(mf, { children: t })
|
|
5421
5425
|
] });
|
|
5422
5426
|
}
|
|
5423
5427
|
const Ae = {
|
|
5424
|
-
Root:
|
|
5425
|
-
Trigger:
|
|
5426
|
-
Value:
|
|
5427
|
-
Content:
|
|
5428
|
-
Item:
|
|
5428
|
+
Root: vf,
|
|
5429
|
+
Trigger: wf,
|
|
5430
|
+
Value: yf,
|
|
5431
|
+
Content: bf,
|
|
5432
|
+
Item: Cf
|
|
5429
5433
|
}, ln = [25, 50, 100];
|
|
5430
|
-
function
|
|
5434
|
+
function Sf({ table: e, isLoading: t }) {
|
|
5431
5435
|
return /* @__PURE__ */ p("div", { className: "snow-pagination", children: /* @__PURE__ */ k("div", { className: "snow-pagination-controls", children: [
|
|
5432
5436
|
/* @__PURE__ */ p(
|
|
5433
5437
|
Pe,
|
|
@@ -5435,7 +5439,7 @@ function yf({ table: e, isLoading: t }) {
|
|
|
5435
5439
|
className: "snow-btn-icon-lg",
|
|
5436
5440
|
onClick: () => e.setPageIndex(0),
|
|
5437
5441
|
disabled: !e.getCanPreviousPage() || t,
|
|
5438
|
-
children: /* @__PURE__ */ p(
|
|
5442
|
+
children: /* @__PURE__ */ p(Ds, {})
|
|
5439
5443
|
}
|
|
5440
5444
|
),
|
|
5441
5445
|
/* @__PURE__ */ p(
|
|
@@ -5444,11 +5448,11 @@ function yf({ table: e, isLoading: t }) {
|
|
|
5444
5448
|
className: "snow-btn-icon-lg",
|
|
5445
5449
|
onClick: () => e.previousPage(),
|
|
5446
5450
|
disabled: !e.getCanPreviousPage() || t,
|
|
5447
|
-
children: /* @__PURE__ */ p(
|
|
5451
|
+
children: /* @__PURE__ */ p(_s, {})
|
|
5448
5452
|
}
|
|
5449
5453
|
),
|
|
5450
5454
|
/* @__PURE__ */ k("div", { className: "snow-pagination-display", children: [
|
|
5451
|
-
/* @__PURE__ */ p("div", { className: "snow-pagination-current", children: t ? /* @__PURE__ */ p(
|
|
5455
|
+
/* @__PURE__ */ p("div", { className: "snow-pagination-current", children: t ? /* @__PURE__ */ p(Bs, { className: "snow-size-4 snow-animate-spin" }) : e.getState().pagination.pageIndex + 1 }),
|
|
5452
5456
|
/* @__PURE__ */ k("span", { className: "snow-pagination-total", children: [
|
|
5453
5457
|
"de ",
|
|
5454
5458
|
e.getPageCount()
|
|
@@ -5460,7 +5464,7 @@ function yf({ table: e, isLoading: t }) {
|
|
|
5460
5464
|
className: "snow-btn-icon-lg",
|
|
5461
5465
|
onClick: () => e.nextPage(),
|
|
5462
5466
|
disabled: !e.getCanNextPage() || t,
|
|
5463
|
-
children: /* @__PURE__ */ p(
|
|
5467
|
+
children: /* @__PURE__ */ p(Os, {})
|
|
5464
5468
|
}
|
|
5465
5469
|
),
|
|
5466
5470
|
/* @__PURE__ */ p(
|
|
@@ -5469,12 +5473,12 @@ function yf({ table: e, isLoading: t }) {
|
|
|
5469
5473
|
className: "snow-btn-icon-lg",
|
|
5470
5474
|
onClick: () => e.setPageIndex(e.getPageCount() - 1),
|
|
5471
5475
|
disabled: !e.getCanNextPage() || t,
|
|
5472
|
-
children: /* @__PURE__ */ p(
|
|
5476
|
+
children: /* @__PURE__ */ p(ks, {})
|
|
5473
5477
|
}
|
|
5474
5478
|
)
|
|
5475
5479
|
] }) });
|
|
5476
5480
|
}
|
|
5477
|
-
function
|
|
5481
|
+
function xf({
|
|
5478
5482
|
table: e,
|
|
5479
5483
|
paginationSizes: t = ln,
|
|
5480
5484
|
enableElementLabel: n = !0
|
|
@@ -5497,9 +5501,9 @@ function bf({
|
|
|
5497
5501
|
)
|
|
5498
5502
|
] });
|
|
5499
5503
|
}
|
|
5500
|
-
var un = "Tabs", [
|
|
5504
|
+
var un = "Tabs", [Ef] = Ze(un, [
|
|
5501
5505
|
en
|
|
5502
|
-
]),
|
|
5506
|
+
]), es = en(), [Rf, lo] = Ef(un), ts = d.forwardRef(
|
|
5503
5507
|
(e, t) => {
|
|
5504
5508
|
const {
|
|
5505
5509
|
__scopeTabs: n,
|
|
@@ -5517,7 +5521,7 @@ var un = "Tabs", [Cf] = Ze(un, [
|
|
|
5517
5521
|
caller: un
|
|
5518
5522
|
});
|
|
5519
5523
|
return /* @__PURE__ */ p(
|
|
5520
|
-
|
|
5524
|
+
Rf,
|
|
5521
5525
|
{
|
|
5522
5526
|
scope: n,
|
|
5523
5527
|
baseId: ze(),
|
|
@@ -5539,10 +5543,10 @@ var un = "Tabs", [Cf] = Ze(un, [
|
|
|
5539
5543
|
);
|
|
5540
5544
|
}
|
|
5541
5545
|
);
|
|
5542
|
-
|
|
5543
|
-
var
|
|
5546
|
+
ts.displayName = un;
|
|
5547
|
+
var ns = "TabsList", os = d.forwardRef(
|
|
5544
5548
|
(e, t) => {
|
|
5545
|
-
const { __scopeTabs: n, loop: o = !0, ...r } = e, i = lo(
|
|
5549
|
+
const { __scopeTabs: n, loop: o = !0, ...r } = e, i = lo(ns, n), a = es(n);
|
|
5546
5550
|
return /* @__PURE__ */ p(
|
|
5547
5551
|
kr,
|
|
5548
5552
|
{
|
|
@@ -5564,10 +5568,10 @@ var ts = "TabsList", ns = d.forwardRef(
|
|
|
5564
5568
|
);
|
|
5565
5569
|
}
|
|
5566
5570
|
);
|
|
5567
|
-
|
|
5568
|
-
var
|
|
5571
|
+
os.displayName = ns;
|
|
5572
|
+
var rs = "TabsTrigger", is = d.forwardRef(
|
|
5569
5573
|
(e, t) => {
|
|
5570
|
-
const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, a = lo(
|
|
5574
|
+
const { __scopeTabs: n, value: o, disabled: r = !1, ...i } = e, a = lo(rs, n), s = es(n), c = as(a.baseId, o), u = cs(a.baseId, o), l = o === a.value;
|
|
5571
5575
|
return /* @__PURE__ */ p(
|
|
5572
5576
|
Fr,
|
|
5573
5577
|
{
|
|
@@ -5604,10 +5608,10 @@ var os = "TabsTrigger", rs = d.forwardRef(
|
|
|
5604
5608
|
);
|
|
5605
5609
|
}
|
|
5606
5610
|
);
|
|
5607
|
-
|
|
5608
|
-
var
|
|
5611
|
+
is.displayName = rs;
|
|
5612
|
+
var ss = "TabsContent", Af = d.forwardRef(
|
|
5609
5613
|
(e, t) => {
|
|
5610
|
-
const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = lo(
|
|
5614
|
+
const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = lo(ss, n), c = as(s.baseId, o), u = cs(s.baseId, o), l = o === s.value, f = d.useRef(l);
|
|
5611
5615
|
return d.useEffect(() => {
|
|
5612
5616
|
const h = requestAnimationFrame(() => f.current = !1);
|
|
5613
5617
|
return () => cancelAnimationFrame(h);
|
|
@@ -5632,31 +5636,31 @@ var is = "TabsContent", xf = d.forwardRef(
|
|
|
5632
5636
|
) });
|
|
5633
5637
|
}
|
|
5634
5638
|
);
|
|
5635
|
-
|
|
5636
|
-
function
|
|
5639
|
+
Af.displayName = ss;
|
|
5640
|
+
function as(e, t) {
|
|
5637
5641
|
return `${e}-trigger-${t}`;
|
|
5638
5642
|
}
|
|
5639
|
-
function
|
|
5643
|
+
function cs(e, t) {
|
|
5640
5644
|
return `${e}-content-${t}`;
|
|
5641
5645
|
}
|
|
5642
|
-
var
|
|
5643
|
-
function
|
|
5644
|
-
return /* @__PURE__ */ p(
|
|
5646
|
+
var Pf = ts, Tf = os, If = is;
|
|
5647
|
+
function Mf({ value: e, onValueChange: t, children: n }) {
|
|
5648
|
+
return /* @__PURE__ */ p(Pf, { value: e, onValueChange: t, children: n });
|
|
5645
5649
|
}
|
|
5646
|
-
function
|
|
5647
|
-
return /* @__PURE__ */ p(
|
|
5650
|
+
function Nf({ children: e, className: t }) {
|
|
5651
|
+
return /* @__PURE__ */ p(Tf, { className: q("snow-tabs-list", t), children: e });
|
|
5648
5652
|
}
|
|
5649
|
-
function
|
|
5650
|
-
return /* @__PURE__ */ p(
|
|
5653
|
+
function _f({ value: e, children: t }) {
|
|
5654
|
+
return /* @__PURE__ */ p(If, { value: e, className: "snow-tabs-trigger", children: t });
|
|
5651
5655
|
}
|
|
5652
5656
|
const En = {
|
|
5653
|
-
Root:
|
|
5654
|
-
List:
|
|
5655
|
-
Trigger:
|
|
5657
|
+
Root: Mf,
|
|
5658
|
+
List: Nf,
|
|
5659
|
+
Trigger: _f
|
|
5656
5660
|
};
|
|
5657
|
-
function
|
|
5661
|
+
function Of({ prefilters: e, activePrefilter: t, onPrefilterChange: n }) {
|
|
5658
5662
|
var s;
|
|
5659
|
-
const o =
|
|
5663
|
+
const o = Hs(), r = ct(), i = e.find((c) => c.id === t), a = e.length > 0 && t !== ((s = e[0]) == null ? void 0 : s.id);
|
|
5660
5664
|
return o || e.length > 4 ? /* @__PURE__ */ k(Ae.Root, { value: t, onValueChange: n, children: [
|
|
5661
5665
|
/* @__PURE__ */ p(Ae.Trigger, { className: `snow-w-fit snow-min-w-32 ${a ? "snow-state-active" : ""}`, children: /* @__PURE__ */ p(Ae.Value, { children: (i == null ? void 0 : i.label) || r("dataTable.selectFilter") }) }),
|
|
5662
5666
|
/* @__PURE__ */ p(Ae.Content, { children: e.map((c) => /* @__PURE__ */ p(Ae.Item, { value: c.id, children: c.label }, c.id)) })
|
|
@@ -5678,15 +5682,15 @@ const uo = jo(
|
|
|
5678
5682
|
)
|
|
5679
5683
|
);
|
|
5680
5684
|
uo.displayName = "Input";
|
|
5681
|
-
const
|
|
5682
|
-
function
|
|
5685
|
+
const Df = 500;
|
|
5686
|
+
function kf({ value: e = "", onDebouncedChange: t, placeholder: n }) {
|
|
5683
5687
|
const [o, r] = ce(e);
|
|
5684
5688
|
ht(() => {
|
|
5685
5689
|
r(e);
|
|
5686
5690
|
}, [e]), ht(() => {
|
|
5687
5691
|
const a = setTimeout(() => {
|
|
5688
5692
|
o !== e && (t == null || t(o));
|
|
5689
|
-
},
|
|
5693
|
+
}, Df);
|
|
5690
5694
|
return () => clearTimeout(a);
|
|
5691
5695
|
}, [o, e, t]);
|
|
5692
5696
|
const i = o.length > 0;
|
|
@@ -5699,13 +5703,14 @@ function _f({ value: e = "", onDebouncedChange: t, placeholder: n }) {
|
|
|
5699
5703
|
onChange: (a) => r(a.target.value),
|
|
5700
5704
|
value: o,
|
|
5701
5705
|
placeholder: n,
|
|
5702
|
-
isActive: i
|
|
5706
|
+
isActive: i,
|
|
5707
|
+
className: Ad().searchBar || void 0
|
|
5703
5708
|
}
|
|
5704
5709
|
),
|
|
5705
5710
|
/* @__PURE__ */ p("span", { className: "snow-searchbar-icon", children: /* @__PURE__ */ p(Xo, { className: q(i ? "snow-state-active-text" : "snow-text-muted-foreground") }) })
|
|
5706
5711
|
] }) });
|
|
5707
5712
|
}
|
|
5708
|
-
function
|
|
5713
|
+
function Ff({
|
|
5709
5714
|
filter: e,
|
|
5710
5715
|
selectedValues: t = [],
|
|
5711
5716
|
onFilterChange: n
|
|
@@ -5731,7 +5736,7 @@ function Of({
|
|
|
5731
5736
|
return /* @__PURE__ */ k(te.Root, { children: [
|
|
5732
5737
|
/* @__PURE__ */ p(te.Trigger, { asChild: !0, children: /* @__PURE__ */ k(Pe, { className: q("snow-filter-btn snow-w-full snow-justify-between", a > 0 && "snow-state-active"), children: [
|
|
5733
5738
|
/* @__PURE__ */ k("div", { className: "snow-filter-btn-content", children: [
|
|
5734
|
-
e.multipleSelection ? /* @__PURE__ */ p(
|
|
5739
|
+
e.multipleSelection ? /* @__PURE__ */ p($s, { className: q("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }) : /* @__PURE__ */ p(Ls, { className: q("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }),
|
|
5735
5740
|
/* @__PURE__ */ p("span", { className: "snow-truncate", children: f() })
|
|
5736
5741
|
] }),
|
|
5737
5742
|
/* @__PURE__ */ p(Wn, { className: "snow-size-3\\\\.5 snow-opacity-50 snow-shrink-0" })
|
|
@@ -5769,10 +5774,10 @@ function Of({
|
|
|
5769
5774
|
] })
|
|
5770
5775
|
] });
|
|
5771
5776
|
}
|
|
5772
|
-
function
|
|
5773
|
-
return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Wn, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(
|
|
5777
|
+
function Lf({ column: e }) {
|
|
5778
|
+
return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Wn, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(Ns, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(Fs, { className: "snow-sort-icon" });
|
|
5774
5779
|
}
|
|
5775
|
-
function
|
|
5780
|
+
function ls({
|
|
5776
5781
|
// Data
|
|
5777
5782
|
data: e,
|
|
5778
5783
|
columns: t,
|
|
@@ -5829,13 +5834,13 @@ function cs({
|
|
|
5829
5834
|
ht(() => {
|
|
5830
5835
|
W((Y) => Y.pageIndex === 0 ? Y : { ...Y, pageIndex: 0 });
|
|
5831
5836
|
}, [m, dn, W]);
|
|
5832
|
-
const ne = r === "server",
|
|
5837
|
+
const ne = r === "server", ds = s !== void 0 ? Math.ceil(s / M.pageSize) : void 0, fs = !ne || s !== void 0, fn = Se(() => Object.entries(V).map(([Y, Q]) => ({ id: Y, value: Q })), [V]), ps = Ce((Y, Q, Z) => {
|
|
5833
5838
|
const ge = Y.getValue(Q);
|
|
5834
5839
|
return Z.includes(String(ge));
|
|
5835
|
-
}, []), Oe =
|
|
5840
|
+
}, []), Oe = As({
|
|
5836
5841
|
data: e,
|
|
5837
5842
|
columns: t,
|
|
5838
|
-
pageCount: ne ?
|
|
5843
|
+
pageCount: ne ? ds : void 0,
|
|
5839
5844
|
state: {
|
|
5840
5845
|
pagination: M,
|
|
5841
5846
|
sorting: y ? se : void 0,
|
|
@@ -5851,26 +5856,26 @@ function cs({
|
|
|
5851
5856
|
manualFiltering: ne,
|
|
5852
5857
|
manualSorting: ne,
|
|
5853
5858
|
// Row models
|
|
5854
|
-
getCoreRowModel:
|
|
5855
|
-
getSortedRowModel:
|
|
5856
|
-
getPaginationRowModel: D ?
|
|
5859
|
+
getCoreRowModel: Ms(),
|
|
5860
|
+
getSortedRowModel: Is(),
|
|
5861
|
+
getPaginationRowModel: D ? Ts() : void 0,
|
|
5857
5862
|
// Client-side filtering (only when not in manual mode)
|
|
5858
5863
|
...!ne && (f != null && f.length || l) ? {
|
|
5859
|
-
getFilteredRowModel:
|
|
5864
|
+
getFilteredRowModel: Ps(),
|
|
5860
5865
|
filterFns: {
|
|
5861
|
-
multiSelect:
|
|
5866
|
+
multiSelect: ps
|
|
5862
5867
|
},
|
|
5863
|
-
globalFilterFn: l ?
|
|
5868
|
+
globalFilterFn: l ? na : void 0
|
|
5864
5869
|
} : {}
|
|
5865
|
-
}),
|
|
5870
|
+
}), hs = (Y, Q) => {
|
|
5866
5871
|
const Z = String(Y), ge = { ...V };
|
|
5867
5872
|
Q.length === 0 ? delete ge[Z] : ge[Z] = Q, z(ge);
|
|
5868
|
-
},
|
|
5873
|
+
}, ms = l || I || f && f.length > 0 || A, gs = Se(() => ne ? e.length : Oe.getRowModel().rows.length, [ne, e.length, Oe, K, fn]), vs = Se(() => ne && s !== void 0 ? s : Oe.getFilteredRowModel().rows.length, [ne, s, Oe, e.length, K, fn]);
|
|
5869
5874
|
return /* @__PURE__ */ k("div", { className: "snow-table-container snow-table-root", "data-testid": "datatable", children: [
|
|
5870
5875
|
o && !n && /* @__PURE__ */ p("div", { className: "snow-table-loading-overlay" }),
|
|
5871
|
-
|
|
5876
|
+
ms && /* @__PURE__ */ k("div", { className: "snow-table-top-bar", children: [
|
|
5872
5877
|
/* @__PURE__ */ p("div", { className: "snow-topbar-left", children: w && w.length > 0 && v && /* @__PURE__ */ p(
|
|
5873
|
-
|
|
5878
|
+
Of,
|
|
5874
5879
|
{
|
|
5875
5880
|
prefilters: w,
|
|
5876
5881
|
activePrefilter: m ?? ((fo = w[0]) == null ? void 0 : fo.id) ?? "",
|
|
@@ -5878,7 +5883,7 @@ function cs({
|
|
|
5878
5883
|
}
|
|
5879
5884
|
) }),
|
|
5880
5885
|
/* @__PURE__ */ p("div", { className: "snow-topbar-center", children: l && /* @__PURE__ */ p("div", { className: "snow-w-full snow-max-w-sm", children: /* @__PURE__ */ p(
|
|
5881
|
-
|
|
5886
|
+
kf,
|
|
5882
5887
|
{
|
|
5883
5888
|
value: K,
|
|
5884
5889
|
onDebouncedChange: He,
|
|
@@ -5887,22 +5892,22 @@ function cs({
|
|
|
5887
5892
|
) }) }),
|
|
5888
5893
|
/* @__PURE__ */ k("div", { className: "snow-topbar-right", children: [
|
|
5889
5894
|
f == null ? void 0 : f.map((Y) => /* @__PURE__ */ p(
|
|
5890
|
-
|
|
5895
|
+
Ff,
|
|
5891
5896
|
{
|
|
5892
5897
|
filter: Y,
|
|
5893
5898
|
selectedValues: V[String(Y.key)],
|
|
5894
|
-
onFilterChange:
|
|
5899
|
+
onFilterChange: hs
|
|
5895
5900
|
},
|
|
5896
5901
|
String(Y.key)
|
|
5897
5902
|
)),
|
|
5898
|
-
A && /* @__PURE__ */ p(
|
|
5903
|
+
A && /* @__PURE__ */ p(Md, { table: Oe }),
|
|
5899
5904
|
(l || w && w.length > 0 || f && f.length > 0) && G && /* @__PURE__ */ p(
|
|
5900
5905
|
Pe,
|
|
5901
5906
|
{
|
|
5902
5907
|
onClick: G,
|
|
5903
5908
|
title: O("dataTable.resetFilters"),
|
|
5904
5909
|
"data-testid": "datatable-reset-filters",
|
|
5905
|
-
children: /* @__PURE__ */ p(
|
|
5910
|
+
children: /* @__PURE__ */ p(Vs, { className: "snow-size-4" })
|
|
5906
5911
|
}
|
|
5907
5912
|
)
|
|
5908
5913
|
] })
|
|
@@ -5930,13 +5935,13 @@ function cs({
|
|
|
5930
5935
|
},
|
|
5931
5936
|
children: Q.isPlaceholder ? null : /* @__PURE__ */ k("span", { className: "snow-table-header-cell-content", children: [
|
|
5932
5937
|
/* @__PURE__ */ p("h3", { children: ho(Q.column.columnDef.header, Q.getContext()) }),
|
|
5933
|
-
y && /* @__PURE__ */ p(
|
|
5938
|
+
y && /* @__PURE__ */ p(Lf, { column: Q.column })
|
|
5934
5939
|
] })
|
|
5935
5940
|
},
|
|
5936
5941
|
Q.id
|
|
5937
5942
|
);
|
|
5938
5943
|
}) }, Y.id)) }),
|
|
5939
|
-
n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: M.pageSize > 10 ? 10 : M.pageSize }).map((Y, Q) => /* @__PURE__ */ p("tr", { className: q({ "snow-table-row-alternate": Q % 2 === 1 }), children: t.map((Z, ge) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(
|
|
5944
|
+
n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: M.pageSize > 10 ? 10 : M.pageSize }).map((Y, Q) => /* @__PURE__ */ p("tr", { className: q({ "snow-table-row-alternate": Q % 2 === 1 }), children: t.map((Z, ge) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(Nd, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${ge}`)) }, Q)) }) : gs > 0 ? /* @__PURE__ */ p(
|
|
5940
5945
|
"tbody",
|
|
5941
5946
|
{
|
|
5942
5947
|
className: q("snow-divide-y snow-divide-border", $ && "snow-responsive-tbody"),
|
|
@@ -5955,7 +5960,7 @@ function cs({
|
|
|
5955
5960
|
),
|
|
5956
5961
|
children: Y.getVisibleCells().map((Z, ge) => {
|
|
5957
5962
|
var po;
|
|
5958
|
-
const
|
|
5963
|
+
const ws = typeof Z.column.columnDef.header == "string" ? Z.column.columnDef.header : Z.column.id, ys = ge === Y.getVisibleCells().length - 1, ee = (po = Z.column.columnDef) == null ? void 0 : po.meta;
|
|
5959
5964
|
return /* @__PURE__ */ k(
|
|
5960
5965
|
"td",
|
|
5961
5966
|
{
|
|
@@ -5964,7 +5969,7 @@ function cs({
|
|
|
5964
5969
|
E && !(ee != null && ee.disableColumnClick) && "snow-cursor-pointer",
|
|
5965
5970
|
(ee == null ? void 0 : ee.center) && "snow-align-middle snow-text-center",
|
|
5966
5971
|
(ee == null ? void 0 : ee.maxWidth) !== void 0 && "snow-cell-truncate",
|
|
5967
|
-
$ ? q("snow-responsive-cell",
|
|
5972
|
+
$ ? q("snow-responsive-cell", ys && "snow-responsive-cell-last") : "snow-table-cell"
|
|
5968
5973
|
),
|
|
5969
5974
|
style: {
|
|
5970
5975
|
"--snow-col-width": ee == null ? void 0 : ee.width,
|
|
@@ -5972,7 +5977,7 @@ function cs({
|
|
|
5972
5977
|
"--snow-col-max-width": ee == null ? void 0 : ee.maxWidth
|
|
5973
5978
|
},
|
|
5974
5979
|
children: [
|
|
5975
|
-
$ && /* @__PURE__ */ p("span", { className: "snow-responsive-cell-label", children:
|
|
5980
|
+
$ && /* @__PURE__ */ p("span", { className: "snow-responsive-cell-label", children: ws }),
|
|
5976
5981
|
/* @__PURE__ */ p("span", { className: q($ && "snow-responsive-cell-content"), children: ho(Z.column.columnDef.cell, Z.getContext()) })
|
|
5977
5982
|
]
|
|
5978
5983
|
},
|
|
@@ -5989,17 +5994,17 @@ function cs({
|
|
|
5989
5994
|
),
|
|
5990
5995
|
/* @__PURE__ */ k("div", { className: "snow-table-bottom-bar", children: [
|
|
5991
5996
|
I && /* @__PURE__ */ k("div", { className: "snow-table-count", "data-testid": "datatable-count", children: [
|
|
5992
|
-
|
|
5997
|
+
vs,
|
|
5993
5998
|
" ",
|
|
5994
5999
|
O("dataTable.elements")
|
|
5995
6000
|
] }),
|
|
5996
|
-
/* @__PURE__ */ p("div", { className: "snow-flex snow-justify-center", children: D &&
|
|
5997
|
-
D && /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-end", children: /* @__PURE__ */ p(
|
|
6001
|
+
/* @__PURE__ */ p("div", { className: "snow-flex snow-justify-center", children: D && fs && /* @__PURE__ */ p(Sf, { table: Oe, isLoading: o }) }),
|
|
6002
|
+
D && /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-end", children: /* @__PURE__ */ p(xf, { table: Oe, enableElementLabel: T, paginationSizes: L }) })
|
|
5998
6003
|
] })
|
|
5999
6004
|
] });
|
|
6000
6005
|
}
|
|
6001
|
-
function
|
|
6002
|
-
return
|
|
6006
|
+
function $f({ label: e, x: t, y: n }) {
|
|
6007
|
+
return Rs(
|
|
6003
6008
|
/* @__PURE__ */ k("div", { style: {
|
|
6004
6009
|
position: "fixed",
|
|
6005
6010
|
left: t,
|
|
@@ -6014,7 +6019,7 @@ function kf({ label: e, x: t, y: n }) {
|
|
|
6014
6019
|
document.body
|
|
6015
6020
|
);
|
|
6016
6021
|
}
|
|
6017
|
-
function
|
|
6022
|
+
function Vf() {
|
|
6018
6023
|
const [e, t] = ce(null), n = Ce((r, i) => {
|
|
6019
6024
|
const a = i.getBoundingClientRect();
|
|
6020
6025
|
let s = a.left + a.width / 2;
|
|
@@ -6025,8 +6030,8 @@ function Ff() {
|
|
|
6025
6030
|
}, []);
|
|
6026
6031
|
return { state: e, show: n, hide: o };
|
|
6027
6032
|
}
|
|
6028
|
-
function
|
|
6029
|
-
const o =
|
|
6033
|
+
function Bf({ item: e, actions: t, onAction: n }) {
|
|
6034
|
+
const o = Ed(), r = Vf(), { buttonActions: i, dropdownActions: a } = Se(() => {
|
|
6030
6035
|
const c = t.filter((u) => !(typeof u == "function" ? u(e) : u).hidden);
|
|
6031
6036
|
return {
|
|
6032
6037
|
buttonActions: c.filter((u) => (typeof u == "function" ? u(e) : u).display !== "dropdown"),
|
|
@@ -6039,7 +6044,7 @@ function Lf({ item: e, actions: t, onAction: n }) {
|
|
|
6039
6044
|
[r, n, e]
|
|
6040
6045
|
);
|
|
6041
6046
|
return /* @__PURE__ */ k("div", { className: "snow-action-cell", children: [
|
|
6042
|
-
r.state && /* @__PURE__ */ p(
|
|
6047
|
+
r.state && /* @__PURE__ */ p($f, { ...r.state }),
|
|
6043
6048
|
i.map((c, u) => {
|
|
6044
6049
|
const l = typeof c == "function" ? c(e) : c, f = l.icon;
|
|
6045
6050
|
if (l.type === "link") {
|
|
@@ -6084,7 +6089,7 @@ function Lf({ item: e, actions: t, onAction: n }) {
|
|
|
6084
6089
|
);
|
|
6085
6090
|
}),
|
|
6086
6091
|
a.length > 0 && /* @__PURE__ */ k(te.Root, { children: [
|
|
6087
|
-
/* @__PURE__ */ p(te.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Pe, { className: "snow-btn-icon-lg", children: /* @__PURE__ */ p(
|
|
6092
|
+
/* @__PURE__ */ p(te.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Pe, { className: "snow-btn-icon-lg", children: /* @__PURE__ */ p(Ws, { className: "snow-size-4" }) }) }),
|
|
6088
6093
|
/* @__PURE__ */ p(te.Content, { align: "end", children: a.map((c, u) => {
|
|
6089
6094
|
const l = typeof c == "function" ? c(e) : c, f = l.icon;
|
|
6090
6095
|
if (l.type === "link") {
|
|
@@ -6120,13 +6125,13 @@ function Lf({ item: e, actions: t, onAction: n }) {
|
|
|
6120
6125
|
] })
|
|
6121
6126
|
] });
|
|
6122
6127
|
}
|
|
6123
|
-
const
|
|
6128
|
+
const Wf = xs(Bf), us = ({
|
|
6124
6129
|
columnConfig: e,
|
|
6125
6130
|
actions: t,
|
|
6126
6131
|
filters: n,
|
|
6127
6132
|
mode: o
|
|
6128
6133
|
}) => {
|
|
6129
|
-
const r = ct(), { mutate: i } =
|
|
6134
|
+
const r = ct(), { mutate: i } = bs({
|
|
6130
6135
|
mutationFn: async (c) => c.endpoint(c.item)
|
|
6131
6136
|
}), a = async (c, u) => {
|
|
6132
6137
|
const l = typeof c == "function" ? c(u) : c;
|
|
@@ -6167,7 +6172,7 @@ const $f = Ss(Lf), ls = ({
|
|
|
6167
6172
|
meta: u.meta,
|
|
6168
6173
|
cell: ({ row: f }) => {
|
|
6169
6174
|
const h = f.original[u.key];
|
|
6170
|
-
return u.render ? u.render(f.original) :
|
|
6175
|
+
return u.render ? u.render(f.original) : Gs(h);
|
|
6171
6176
|
}
|
|
6172
6177
|
};
|
|
6173
6178
|
});
|
|
@@ -6179,12 +6184,12 @@ const $f = Ss(Lf), ls = ({
|
|
|
6179
6184
|
},
|
|
6180
6185
|
enableSorting: !1,
|
|
6181
6186
|
enableHiding: !1,
|
|
6182
|
-
cell: ({ row: u }) => /* @__PURE__ */ p(
|
|
6187
|
+
cell: ({ row: u }) => /* @__PURE__ */ p(Wf, { item: u.original, actions: t, onAction: a })
|
|
6183
6188
|
}), c;
|
|
6184
6189
|
}, [e, t, n, o, r]),
|
|
6185
6190
|
handleAction: a
|
|
6186
6191
|
};
|
|
6187
|
-
},
|
|
6192
|
+
}, qf = ({
|
|
6188
6193
|
queryKey: e,
|
|
6189
6194
|
columnConfig: t,
|
|
6190
6195
|
actions: n,
|
|
@@ -6220,14 +6225,14 @@ const $f = Ss(Lf), ls = ({
|
|
|
6220
6225
|
}), { data: E = [], isLoading: x } = zo({
|
|
6221
6226
|
queryKey: e,
|
|
6222
6227
|
queryFn: l
|
|
6223
|
-
}), I = Se(() => !E || !v || !i ? E : E.filter((L) => i(L, v)), [E, v, i]), { columns: T } =
|
|
6228
|
+
}), I = Se(() => !E || !v || !i ? E : E.filter((L) => i(L, v)), [E, v, i]), { columns: T } = us({
|
|
6224
6229
|
columnConfig: t,
|
|
6225
6230
|
actions: n,
|
|
6226
6231
|
filters: o,
|
|
6227
6232
|
mode: "client"
|
|
6228
6233
|
});
|
|
6229
6234
|
return /* @__PURE__ */ p(
|
|
6230
|
-
|
|
6235
|
+
ls,
|
|
6231
6236
|
{
|
|
6232
6237
|
mode: "client",
|
|
6233
6238
|
data: I,
|
|
@@ -6249,7 +6254,7 @@ const $f = Ss(Lf), ls = ({
|
|
|
6249
6254
|
...f
|
|
6250
6255
|
}
|
|
6251
6256
|
);
|
|
6252
|
-
},
|
|
6257
|
+
}, Jf = ({
|
|
6253
6258
|
queryKey: e,
|
|
6254
6259
|
columnConfig: t,
|
|
6255
6260
|
actions: n,
|
|
@@ -6295,15 +6300,15 @@ const $f = Ss(Lf), ls = ({
|
|
|
6295
6300
|
sortOrder: (L = y[0]) != null && L.desc ? "DESC" : "ASC"
|
|
6296
6301
|
});
|
|
6297
6302
|
},
|
|
6298
|
-
placeholderData:
|
|
6299
|
-
}), { columns: E } =
|
|
6303
|
+
placeholderData: Cs
|
|
6304
|
+
}), { columns: E } = us({
|
|
6300
6305
|
columnConfig: t,
|
|
6301
6306
|
actions: n,
|
|
6302
6307
|
filters: o,
|
|
6303
6308
|
mode: "server"
|
|
6304
6309
|
});
|
|
6305
6310
|
return /* @__PURE__ */ p(
|
|
6306
|
-
|
|
6311
|
+
ls,
|
|
6307
6312
|
{
|
|
6308
6313
|
mode: "server",
|
|
6309
6314
|
data: ((I = A.data) == null ? void 0 : I.items) ?? [],
|
|
@@ -6330,24 +6335,24 @@ const $f = Ss(Lf), ls = ({
|
|
|
6330
6335
|
);
|
|
6331
6336
|
};
|
|
6332
6337
|
export {
|
|
6333
|
-
|
|
6334
|
-
|
|
6338
|
+
Wf as ActionCell,
|
|
6339
|
+
Md as ColumnConfiguration,
|
|
6335
6340
|
ln as DEFAULT_PAGE_SIZES,
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6341
|
+
ls as DataTable,
|
|
6342
|
+
xf as PageSizeSelector,
|
|
6343
|
+
Sf as Pagination,
|
|
6344
|
+
Of as PrefilterTabs,
|
|
6345
|
+
kf as SearchBar,
|
|
6346
|
+
Ff as SingleFilterDropdown,
|
|
6347
|
+
qf as SnowClientDataTable,
|
|
6348
|
+
Jf as SnowServerDataTable,
|
|
6349
|
+
Lf as SortButton,
|
|
6350
|
+
$f as Tooltip,
|
|
6351
|
+
Zf as isSnowTableSetup,
|
|
6352
|
+
jf as redirectToPageWithParam,
|
|
6353
|
+
Xf as setupSnowTable,
|
|
6354
|
+
us as useSnowColumns,
|
|
6350
6355
|
Zo as useTableStatePersist,
|
|
6351
|
-
|
|
6356
|
+
Vf as useTooltip
|
|
6352
6357
|
};
|
|
6353
6358
|
//# sourceMappingURL=index.js.map
|