@snowpact/react-tanstack-query-table 1.5.5 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +685 -681
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import { useMutation as Es, useQuery as Qo, keepPreviousData as Rs } from "@tans
|
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import He, { useState as ae, useEffect as pt, useRef as Rn, useCallback as be, useMemo as Ce, forwardRef as er, useLayoutEffect as As, memo as Ps } from "react";
|
|
5
5
|
import * as jt from "react-dom";
|
|
6
|
-
import Ts, { createPortal as
|
|
7
|
-
import { useReactTable as
|
|
8
|
-
const
|
|
6
|
+
import Ts, { createPortal as Ms } from "react-dom";
|
|
7
|
+
import { useReactTable as Is, getFilteredRowModel as Ns, getPaginationRowModel as _s, getSortedRowModel as Os, getCoreRowModel as Ds, flexRender as bo } from "@tanstack/react-table";
|
|
8
|
+
const ce = ({ children: e, ...t }) => /* @__PURE__ */ p(
|
|
9
9
|
"svg",
|
|
10
10
|
{
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -20,30 +20,34 @@ const de = ({ children: e, ...t }) => /* @__PURE__ */ p(
|
|
|
20
20
|
...t,
|
|
21
21
|
children: e
|
|
22
22
|
}
|
|
23
|
-
), tr = (e) => /* @__PURE__ */ p(
|
|
23
|
+
), tr = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "M20 6 9 17l-5-5" }) }), Wn = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m6 9 6 6 6-6" }) }), ks = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m18 15-6-6-6 6" }) }), Fs = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m15 18-6-6 6-6" }) }), Ls = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "m9 18 6-6-6-6" }) }), $s = (e) => /* @__PURE__ */ k(ce, { ...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
|
-
] }), Vs = (e) => /* @__PURE__ */ k(
|
|
26
|
+
] }), Vs = (e) => /* @__PURE__ */ k(ce, { ...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
|
-
] }), Bs = (e) => /* @__PURE__ */ k(
|
|
29
|
+
] }), Bs = (e) => /* @__PURE__ */ k(ce, { ...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
|
-
] }), Ws = (e) => /* @__PURE__ */ p(
|
|
32
|
+
] }), Ws = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }) }), Us = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
|
|
33
|
+
/* @__PURE__ */ p("path", { d: "M3 6h18" }),
|
|
34
|
+
/* @__PURE__ */ p("path", { d: "M7 12h10" }),
|
|
35
|
+
/* @__PURE__ */ p("path", { d: "M10 18h4" })
|
|
36
|
+
] }), Hs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
|
|
33
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" }),
|
|
34
38
|
/* @__PURE__ */ p("path", { d: "m22 22-4-4" }),
|
|
35
39
|
/* @__PURE__ */ p("path", { d: "m18 22 4-4" })
|
|
36
|
-
] }),
|
|
40
|
+
] }), Ks = (e) => /* @__PURE__ */ p(ce, { ...e, children: /* @__PURE__ */ p("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }), Gs = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
|
|
37
41
|
/* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "1" }),
|
|
38
42
|
/* @__PURE__ */ p("circle", { cx: "12", cy: "5", r: "1" }),
|
|
39
43
|
/* @__PURE__ */ p("circle", { cx: "12", cy: "19", r: "1" })
|
|
40
|
-
] }), nr = (e) => /* @__PURE__ */ k(
|
|
44
|
+
] }), nr = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
|
|
41
45
|
/* @__PURE__ */ p("circle", { cx: "11", cy: "11", r: "8" }),
|
|
42
46
|
/* @__PURE__ */ p("path", { d: "m21 21-4.3-4.3" })
|
|
43
|
-
] }), Co = (e) => /* @__PURE__ */ k(
|
|
47
|
+
] }), Co = (e) => /* @__PURE__ */ k(ce, { ...e, children: [
|
|
44
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" }),
|
|
45
49
|
/* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "3" })
|
|
46
|
-
] }),
|
|
50
|
+
] }), zs = Wn;
|
|
47
51
|
function X(...e) {
|
|
48
52
|
const t = [], n = (o) => {
|
|
49
53
|
if (o) {
|
|
@@ -62,7 +66,7 @@ function X(...e) {
|
|
|
62
66
|
return t.join(" ");
|
|
63
67
|
}
|
|
64
68
|
const pn = 768;
|
|
65
|
-
function
|
|
69
|
+
function js() {
|
|
66
70
|
const [e, t] = ae(void 0);
|
|
67
71
|
return pt(() => {
|
|
68
72
|
if (typeof window > "u" || !window.matchMedia)
|
|
@@ -73,7 +77,7 @@ function zs() {
|
|
|
73
77
|
return n.addEventListener("change", o), t(window.innerWidth < pn), () => n.removeEventListener("change", o);
|
|
74
78
|
}, []), !!e;
|
|
75
79
|
}
|
|
76
|
-
const
|
|
80
|
+
const Ys = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0, Xs = (e) => Ys(e) ? String(e) : JSON.stringify(e, null, 2), _t = "dt_prefilter", Ot = "dt_search", Dt = "dt_page", An = "dt_pageSize", kt = "dt_filters", lt = "dt_sortBy", ut = "dt_sortDesc", Ke = (e) => {
|
|
77
81
|
if (typeof window > "u") return null;
|
|
78
82
|
try {
|
|
79
83
|
return new URL(window.location.href).searchParams.get(e);
|
|
@@ -103,17 +107,17 @@ const js = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
103
107
|
u(x), i.current && se(Ot, x || null);
|
|
104
108
|
}, []), [g, w] = ae(() => {
|
|
105
109
|
if (e) {
|
|
106
|
-
const x = Ke(Dt),
|
|
110
|
+
const x = Ke(Dt), M = Ke(An);
|
|
107
111
|
return {
|
|
108
112
|
pageIndex: x ? parseInt(x, 10) - 1 : 0,
|
|
109
|
-
pageSize:
|
|
113
|
+
pageSize: M ? parseInt(M, 10) : n
|
|
110
114
|
};
|
|
111
115
|
}
|
|
112
116
|
return { pageIndex: 0, pageSize: n };
|
|
113
117
|
}), h = be((x) => {
|
|
114
|
-
w((
|
|
115
|
-
const T = typeof x == "function" ? x(
|
|
116
|
-
return i.current && (
|
|
118
|
+
w((M) => {
|
|
119
|
+
const T = typeof x == "function" ? x(M) : x;
|
|
120
|
+
return i.current && (M.pageIndex !== T.pageIndex || M.pageSize !== T.pageSize) && (se(Dt, T.pageIndex > 0 ? String(T.pageIndex + 1) : null), se(
|
|
117
121
|
An,
|
|
118
122
|
T.pageSize !== a.current ? String(T.pageSize) : null
|
|
119
123
|
)), T;
|
|
@@ -122,7 +126,7 @@ const js = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
122
126
|
if (e) {
|
|
123
127
|
const x = Ke(kt);
|
|
124
128
|
if (x)
|
|
125
|
-
return
|
|
129
|
+
return Zs(x);
|
|
126
130
|
}
|
|
127
131
|
return {};
|
|
128
132
|
}), C = be((x) => {
|
|
@@ -132,14 +136,14 @@ const js = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
132
136
|
}
|
|
133
137
|
}, []), [b, S] = ae(() => {
|
|
134
138
|
if (e) {
|
|
135
|
-
const x = Ke(lt),
|
|
139
|
+
const x = Ke(lt), M = Ke(ut);
|
|
136
140
|
if (x)
|
|
137
|
-
return [{ id: x, desc:
|
|
141
|
+
return [{ id: x, desc: M === "true" }];
|
|
138
142
|
}
|
|
139
143
|
return o ? [{ id: o, desc: r === "desc" }] : [];
|
|
140
144
|
}), R = be((x) => {
|
|
141
|
-
S((
|
|
142
|
-
const T = typeof x == "function" ? x(
|
|
145
|
+
S((M) => {
|
|
146
|
+
const T = typeof x == "function" ? x(M) : x;
|
|
143
147
|
return i.current && (T.length > 0 ? (se(lt, T[0].id), se(ut, String(T[0].desc))) : (se(lt, null), se(ut, null))), T;
|
|
144
148
|
});
|
|
145
149
|
}, []), A = Ce(() => {
|
|
@@ -169,7 +173,7 @@ const js = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
169
173
|
!n || r.length === 0 || t.push(`${n}:${r.join(",")}`);
|
|
170
174
|
}
|
|
171
175
|
return t.join("|");
|
|
172
|
-
},
|
|
176
|
+
}, Zs = (e) => {
|
|
173
177
|
if (!e) return {};
|
|
174
178
|
const t = {}, n = e.split("|").map((o) => o.trim()).filter(Boolean);
|
|
175
179
|
for (const o of n) {
|
|
@@ -179,7 +183,7 @@ const js = (e) => typeof e == "string" || typeof e == "number" || typeof e == "b
|
|
|
179
183
|
a.length > 0 && (t[r] = a);
|
|
180
184
|
}
|
|
181
185
|
return t;
|
|
182
|
-
},
|
|
186
|
+
}, Xf = (e, t) => {
|
|
183
187
|
const n = new URL(e, typeof window < "u" ? window.location.origin : "http://localhost");
|
|
184
188
|
if (t) {
|
|
185
189
|
if (t.prefilter && n.searchParams.set(_t, t.prefilter), t.search && n.searchParams.set(Ot, t.search), t.pagination) {
|
|
@@ -607,9 +611,9 @@ const ir = {
|
|
|
607
611
|
x̧: "x",
|
|
608
612
|
Z̧: "Z",
|
|
609
613
|
z̧: "z"
|
|
610
|
-
},
|
|
611
|
-
function
|
|
612
|
-
return e.replace(
|
|
614
|
+
}, qs = Object.keys(ir).join("|"), Js = new RegExp(qs, "g");
|
|
615
|
+
function Qs(e) {
|
|
616
|
+
return e.replace(Js, (t) => ir[t]);
|
|
613
617
|
}
|
|
614
618
|
/**
|
|
615
619
|
* @name match-sorter
|
|
@@ -617,7 +621,7 @@ function Js(e) {
|
|
|
617
621
|
* @copyright (c) 2099 Kent C. Dodds
|
|
618
622
|
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
|
619
623
|
*/
|
|
620
|
-
const
|
|
624
|
+
const de = {
|
|
621
625
|
CASE_SENSITIVE_EQUAL: 7,
|
|
622
626
|
EQUAL: 6,
|
|
623
627
|
STARTS_WITH: 5,
|
|
@@ -627,9 +631,9 @@ const ue = {
|
|
|
627
631
|
MATCHES: 1,
|
|
628
632
|
NO_MATCH: 0
|
|
629
633
|
};
|
|
630
|
-
function
|
|
634
|
+
function ea(e, t, n) {
|
|
631
635
|
var o;
|
|
632
|
-
if (n = n || {}, n.threshold = (o = n.threshold) != null ? o :
|
|
636
|
+
if (n = n || {}, n.threshold = (o = n.threshold) != null ? o : de.MATCHES, !n.accessors) {
|
|
633
637
|
const a = So(e, t, n);
|
|
634
638
|
return {
|
|
635
639
|
// ends up being duplicate of 'item' in matches but consistent
|
|
@@ -640,9 +644,9 @@ function Qs(e, t, n) {
|
|
|
640
644
|
passed: a >= n.threshold
|
|
641
645
|
};
|
|
642
646
|
}
|
|
643
|
-
const r =
|
|
647
|
+
const r = ra(e, n.accessors), i = {
|
|
644
648
|
rankedValue: e,
|
|
645
|
-
rank:
|
|
649
|
+
rank: de.NO_MATCH,
|
|
646
650
|
accessorIndex: -1,
|
|
647
651
|
accessorThreshold: n.threshold,
|
|
648
652
|
passed: !1
|
|
@@ -655,14 +659,14 @@ function Qs(e, t, n) {
|
|
|
655
659
|
maxRanking: f,
|
|
656
660
|
threshold: u = n.threshold
|
|
657
661
|
} = s.attributes;
|
|
658
|
-
c < l && c >=
|
|
662
|
+
c < l && c >= de.MATCHES ? c = l : c > f && (c = f), c = Math.min(c, f), c >= u && c > i.rank && (i.rank = c, i.passed = !0, i.accessorIndex = a, i.accessorThreshold = u, i.rankedValue = s.itemValue);
|
|
659
663
|
}
|
|
660
664
|
return i;
|
|
661
665
|
}
|
|
662
666
|
function So(e, t, n) {
|
|
663
|
-
return e = xo(e, n), t = xo(t, n), t.length > e.length ?
|
|
667
|
+
return e = xo(e, n), t = xo(t, n), t.length > e.length ? de.NO_MATCH : e === t ? de.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? de.EQUAL : e.startsWith(t) ? de.STARTS_WITH : e.includes(` ${t}`) ? de.WORD_STARTS_WITH : e.includes(t) ? de.CONTAINS : t.length === 1 ? de.NO_MATCH : ta(e).includes(t) ? de.ACRONYM : na(e, t));
|
|
664
668
|
}
|
|
665
|
-
function
|
|
669
|
+
function ta(e) {
|
|
666
670
|
let t = "";
|
|
667
671
|
return e.split(" ").forEach((o) => {
|
|
668
672
|
o.split("-").forEach((i) => {
|
|
@@ -670,7 +674,7 @@ function ea(e) {
|
|
|
670
674
|
});
|
|
671
675
|
}), t;
|
|
672
676
|
}
|
|
673
|
-
function
|
|
677
|
+
function na(e, t) {
|
|
674
678
|
let n = 0, o = 0;
|
|
675
679
|
function r(c, l, f) {
|
|
676
680
|
for (let u = f, m = l.length; u < m; u++)
|
|
@@ -680,16 +684,16 @@ function ta(e, t) {
|
|
|
680
684
|
}
|
|
681
685
|
function i(c) {
|
|
682
686
|
const l = 1 / c, f = n / t.length;
|
|
683
|
-
return
|
|
687
|
+
return de.MATCHES + f * l;
|
|
684
688
|
}
|
|
685
689
|
const a = r(t[0], e, 0);
|
|
686
690
|
if (a < 0)
|
|
687
|
-
return
|
|
691
|
+
return de.NO_MATCH;
|
|
688
692
|
o = a;
|
|
689
693
|
for (let c = 1, l = t.length; c < l; c++) {
|
|
690
694
|
const f = t[c];
|
|
691
695
|
if (o = r(f, e, o), !(o > -1))
|
|
692
|
-
return
|
|
696
|
+
return de.NO_MATCH;
|
|
693
697
|
}
|
|
694
698
|
const s = o - a;
|
|
695
699
|
return i(s);
|
|
@@ -698,18 +702,18 @@ function xo(e, t) {
|
|
|
698
702
|
let {
|
|
699
703
|
keepDiacritics: n
|
|
700
704
|
} = t;
|
|
701
|
-
return e = `${e}`, n || (e =
|
|
705
|
+
return e = `${e}`, n || (e = Qs(e)), e;
|
|
702
706
|
}
|
|
703
|
-
function
|
|
707
|
+
function oa(e, t) {
|
|
704
708
|
let n = t;
|
|
705
709
|
typeof t == "object" && (n = t.accessor);
|
|
706
710
|
const o = n(e);
|
|
707
711
|
return o == null ? [] : Array.isArray(o) ? o : [String(o)];
|
|
708
712
|
}
|
|
709
|
-
function
|
|
713
|
+
function ra(e, t) {
|
|
710
714
|
const n = [];
|
|
711
715
|
for (let o = 0, r = t.length; o < r; o++) {
|
|
712
|
-
const i = t[o], a =
|
|
716
|
+
const i = t[o], a = ia(i), s = oa(e, i);
|
|
713
717
|
for (let c = 0, l = s.length; c < l; c++)
|
|
714
718
|
n.push({
|
|
715
719
|
itemValue: s[c],
|
|
@@ -722,14 +726,14 @@ const Eo = {
|
|
|
722
726
|
maxRanking: 1 / 0,
|
|
723
727
|
minRanking: -1 / 0
|
|
724
728
|
};
|
|
725
|
-
function
|
|
729
|
+
function ia(e) {
|
|
726
730
|
return typeof e == "function" ? Eo : {
|
|
727
731
|
...Eo,
|
|
728
732
|
...e
|
|
729
733
|
};
|
|
730
734
|
}
|
|
731
|
-
const
|
|
732
|
-
const r =
|
|
735
|
+
const sa = (e, t, n, o) => {
|
|
736
|
+
const r = ea(e.getValue(t), n);
|
|
733
737
|
return o({
|
|
734
738
|
itemRank: r
|
|
735
739
|
}), r.passed;
|
|
@@ -740,7 +744,7 @@ const ia = (e, t, n, o) => {
|
|
|
740
744
|
} catch (n) {
|
|
741
745
|
console.warn("Failed to save column configuration:", n);
|
|
742
746
|
}
|
|
743
|
-
},
|
|
747
|
+
}, aa = (e) => {
|
|
744
748
|
var t;
|
|
745
749
|
try {
|
|
746
750
|
const n = `${sr}${e}`, o = (t = document.cookie.split("; ").find((r) => r.startsWith(`${n}=`))) == null ? void 0 : t.split("=")[1];
|
|
@@ -752,14 +756,14 @@ const ia = (e, t, n, o) => {
|
|
|
752
756
|
console.warn("Failed to load column configuration:", n);
|
|
753
757
|
}
|
|
754
758
|
return null;
|
|
755
|
-
},
|
|
759
|
+
}, ca = (e) => {
|
|
756
760
|
try {
|
|
757
761
|
const t = `${sr}${e}`;
|
|
758
762
|
document.cookie = `${t}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT`;
|
|
759
763
|
} catch (t) {
|
|
760
764
|
console.warn("Failed to delete column configuration:", t);
|
|
761
765
|
}
|
|
762
|
-
},
|
|
766
|
+
}, la = () => {
|
|
763
767
|
try {
|
|
764
768
|
const t = new Error().stack;
|
|
765
769
|
if (t) {
|
|
@@ -775,7 +779,7 @@ const ia = (e, t, n, o) => {
|
|
|
775
779
|
console.warn("Failed to generate config ID from parent component:", t);
|
|
776
780
|
}
|
|
777
781
|
return `datatable-${window.location.pathname.replace(/[^a-zA-Z0-9]/g, "-")}`;
|
|
778
|
-
},
|
|
782
|
+
}, ua = {
|
|
779
783
|
default: "",
|
|
780
784
|
danger: "snow-btn-danger",
|
|
781
785
|
warning: "snow-btn-warning",
|
|
@@ -803,7 +807,7 @@ const ia = (e, t, n, o) => {
|
|
|
803
807
|
onMouseLeave: r,
|
|
804
808
|
disabled: i,
|
|
805
809
|
title: c,
|
|
806
|
-
className: X("snow-btn",
|
|
810
|
+
className: X("snow-btn", ua[t], a),
|
|
807
811
|
...l,
|
|
808
812
|
children: e
|
|
809
813
|
}
|
|
@@ -870,9 +874,9 @@ function Xe(e, t = []) {
|
|
|
870
874
|
);
|
|
871
875
|
};
|
|
872
876
|
};
|
|
873
|
-
return r.scopeName = e, [o,
|
|
877
|
+
return r.scopeName = e, [o, da(r, ...t)];
|
|
874
878
|
}
|
|
875
|
-
function
|
|
879
|
+
function da(...e) {
|
|
876
880
|
const t = e[0];
|
|
877
881
|
if (e.length === 1) return t;
|
|
878
882
|
const n = () => {
|
|
@@ -891,7 +895,7 @@ function ua(...e) {
|
|
|
891
895
|
return n.scopeName = t.scopeName, n;
|
|
892
896
|
}
|
|
893
897
|
var oe = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
|
|
894
|
-
},
|
|
898
|
+
}, fa = d[" useInsertionEffect ".trim().toString()] || oe;
|
|
895
899
|
function mt({
|
|
896
900
|
prop: e,
|
|
897
901
|
defaultProp: t,
|
|
@@ -899,7 +903,7 @@ function mt({
|
|
|
899
903
|
},
|
|
900
904
|
caller: o
|
|
901
905
|
}) {
|
|
902
|
-
const [r, i, a] =
|
|
906
|
+
const [r, i, a] = pa({
|
|
903
907
|
defaultProp: t,
|
|
904
908
|
onChange: n
|
|
905
909
|
}), s = e !== void 0, c = s ? e : r;
|
|
@@ -916,7 +920,7 @@ function mt({
|
|
|
916
920
|
(f) => {
|
|
917
921
|
var u;
|
|
918
922
|
if (s) {
|
|
919
|
-
const m =
|
|
923
|
+
const m = ma(f) ? f(e) : f;
|
|
920
924
|
m !== e && ((u = a.current) == null || u.call(a, m));
|
|
921
925
|
} else
|
|
922
926
|
i(f);
|
|
@@ -925,25 +929,25 @@ function mt({
|
|
|
925
929
|
);
|
|
926
930
|
return [c, l];
|
|
927
931
|
}
|
|
928
|
-
function
|
|
932
|
+
function pa({
|
|
929
933
|
defaultProp: e,
|
|
930
934
|
onChange: t
|
|
931
935
|
}) {
|
|
932
936
|
const [n, o] = d.useState(e), r = d.useRef(n), i = d.useRef(t);
|
|
933
|
-
return
|
|
937
|
+
return fa(() => {
|
|
934
938
|
i.current = t;
|
|
935
939
|
}, [t]), d.useEffect(() => {
|
|
936
940
|
var a;
|
|
937
941
|
r.current !== n && ((a = i.current) == null || a.call(i, n), r.current = n);
|
|
938
942
|
}, [n, r]), [n, o, i];
|
|
939
943
|
}
|
|
940
|
-
function
|
|
944
|
+
function ma(e) {
|
|
941
945
|
return typeof e == "function";
|
|
942
946
|
}
|
|
943
947
|
// @__NO_SIDE_EFFECTS__
|
|
944
948
|
function ht(e) {
|
|
945
|
-
const t = /* @__PURE__ */
|
|
946
|
-
const { children: i, ...a } = o, s = d.Children.toArray(i), c = s.find(
|
|
949
|
+
const t = /* @__PURE__ */ ha(e), n = d.forwardRef((o, r) => {
|
|
950
|
+
const { children: i, ...a } = o, s = d.Children.toArray(i), c = s.find(va);
|
|
947
951
|
if (c) {
|
|
948
952
|
const l = c.props.children, f = s.map((u) => u === c ? d.Children.count(l) > 1 ? d.Children.only(null) : d.isValidElement(l) ? l.props.children : null : u);
|
|
949
953
|
return /* @__PURE__ */ p(t, { ...a, ref: r, children: d.isValidElement(l) ? d.cloneElement(l, void 0, f) : null });
|
|
@@ -953,22 +957,22 @@ function ht(e) {
|
|
|
953
957
|
return n.displayName = `${e}.Slot`, n;
|
|
954
958
|
}
|
|
955
959
|
// @__NO_SIDE_EFFECTS__
|
|
956
|
-
function
|
|
960
|
+
function ha(e) {
|
|
957
961
|
const t = d.forwardRef((n, o) => {
|
|
958
962
|
const { children: r, ...i } = n;
|
|
959
963
|
if (d.isValidElement(r)) {
|
|
960
|
-
const a =
|
|
964
|
+
const a = ya(r), s = wa(i, r.props);
|
|
961
965
|
return r.type !== d.Fragment && (s.ref = o ? Yt(o, a) : a), d.cloneElement(r, s);
|
|
962
966
|
}
|
|
963
967
|
return d.Children.count(r) > 1 ? d.Children.only(null) : null;
|
|
964
968
|
});
|
|
965
969
|
return t.displayName = `${e}.SlotClone`, t;
|
|
966
970
|
}
|
|
967
|
-
var
|
|
968
|
-
function
|
|
969
|
-
return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
971
|
+
var ga = Symbol("radix.slottable");
|
|
972
|
+
function va(e) {
|
|
973
|
+
return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ga;
|
|
970
974
|
}
|
|
971
|
-
function
|
|
975
|
+
function wa(e, t) {
|
|
972
976
|
const n = { ...t };
|
|
973
977
|
for (const o in t) {
|
|
974
978
|
const r = e[o], i = t[o];
|
|
@@ -979,12 +983,12 @@ function va(e, t) {
|
|
|
979
983
|
}
|
|
980
984
|
return { ...e, ...n };
|
|
981
985
|
}
|
|
982
|
-
function
|
|
986
|
+
function ya(e) {
|
|
983
987
|
var o, r;
|
|
984
988
|
let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
985
989
|
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);
|
|
986
990
|
}
|
|
987
|
-
var
|
|
991
|
+
var ba = [
|
|
988
992
|
"a",
|
|
989
993
|
"button",
|
|
990
994
|
"div",
|
|
@@ -1002,7 +1006,7 @@ var ya = [
|
|
|
1002
1006
|
"span",
|
|
1003
1007
|
"svg",
|
|
1004
1008
|
"ul"
|
|
1005
|
-
], U =
|
|
1009
|
+
], U = ba.reduce((e, t) => {
|
|
1006
1010
|
const n = /* @__PURE__ */ ht(`Primitive.${t}`), o = d.forwardRef((r, i) => {
|
|
1007
1011
|
const { asChild: a, ...s } = r, c = a ? n : t;
|
|
1008
1012
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(c, { ...s, ref: i });
|
|
@@ -1052,12 +1056,12 @@ function Un(e) {
|
|
|
1052
1056
|
o
|
|
1053
1057
|
];
|
|
1054
1058
|
}
|
|
1055
|
-
var
|
|
1059
|
+
var Ca = d.createContext(void 0);
|
|
1056
1060
|
function Xt(e) {
|
|
1057
|
-
const t = d.useContext(
|
|
1061
|
+
const t = d.useContext(Ca);
|
|
1058
1062
|
return e || t || "ltr";
|
|
1059
1063
|
}
|
|
1060
|
-
function
|
|
1064
|
+
function Me(e) {
|
|
1061
1065
|
const t = d.useRef(e);
|
|
1062
1066
|
return d.useEffect(() => {
|
|
1063
1067
|
t.current = e;
|
|
@@ -1066,8 +1070,8 @@ function Ie(e) {
|
|
|
1066
1070
|
return (o = t.current) == null ? void 0 : o.call(t, ...n);
|
|
1067
1071
|
}, []);
|
|
1068
1072
|
}
|
|
1069
|
-
function
|
|
1070
|
-
const n =
|
|
1073
|
+
function Sa(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1074
|
+
const n = Me(e);
|
|
1071
1075
|
d.useEffect(() => {
|
|
1072
1076
|
const o = (r) => {
|
|
1073
1077
|
r.key === "Escape" && n(r);
|
|
@@ -1075,7 +1079,7 @@ function Ca(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1075
1079
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
1076
1080
|
}, [n, t]);
|
|
1077
1081
|
}
|
|
1078
|
-
var
|
|
1082
|
+
var xa = "DismissableLayer", Pn = "dismissableLayer.update", Ea = "dismissableLayer.pointerDownOutside", Ra = "dismissableLayer.focusOutside", Po, cr = d.createContext({
|
|
1079
1083
|
layers: /* @__PURE__ */ new Set(),
|
|
1080
1084
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
1081
1085
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -1089,14 +1093,14 @@ var Sa = "DismissableLayer", Pn = "dismissableLayer.update", xa = "dismissableLa
|
|
|
1089
1093
|
onInteractOutside: a,
|
|
1090
1094
|
onDismiss: s,
|
|
1091
1095
|
...c
|
|
1092
|
-
} = e, l = d.useContext(cr), [f, u] = d.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = Z(t, (E) => u(E)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), C = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, S = C >= y, R =
|
|
1093
|
-
const x = E.target,
|
|
1094
|
-
!S ||
|
|
1095
|
-
}, m), A =
|
|
1096
|
+
} = e, l = d.useContext(cr), [f, u] = d.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), w = Z(t, (E) => u(E)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), C = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, S = C >= y, R = Ta((E) => {
|
|
1097
|
+
const x = E.target, M = [...l.branches].some((T) => T.contains(x));
|
|
1098
|
+
!S || M || (r == null || r(E), a == null || a(E), E.defaultPrevented || s == null || s());
|
|
1099
|
+
}, m), A = Ma((E) => {
|
|
1096
1100
|
const x = E.target;
|
|
1097
1101
|
[...l.branches].some((T) => T.contains(x)) || (i == null || i(E), a == null || a(E), E.defaultPrevented || s == null || s());
|
|
1098
1102
|
}, m);
|
|
1099
|
-
return
|
|
1103
|
+
return Sa((E) => {
|
|
1100
1104
|
C === l.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
|
|
1101
1105
|
}, m), d.useEffect(() => {
|
|
1102
1106
|
if (f)
|
|
@@ -1127,8 +1131,8 @@ var Sa = "DismissableLayer", Pn = "dismissableLayer.update", xa = "dismissableLa
|
|
|
1127
1131
|
);
|
|
1128
1132
|
}
|
|
1129
1133
|
);
|
|
1130
|
-
Hn.displayName =
|
|
1131
|
-
var
|
|
1134
|
+
Hn.displayName = xa;
|
|
1135
|
+
var Aa = "DismissableLayerBranch", Pa = d.forwardRef((e, t) => {
|
|
1132
1136
|
const n = d.useContext(cr), o = d.useRef(null), r = Z(t, o);
|
|
1133
1137
|
return d.useEffect(() => {
|
|
1134
1138
|
const i = o.current;
|
|
@@ -1138,16 +1142,16 @@ var Ra = "DismissableLayerBranch", Aa = d.forwardRef((e, t) => {
|
|
|
1138
1142
|
};
|
|
1139
1143
|
}, [n.branches]), /* @__PURE__ */ p(U.div, { ...e, ref: r });
|
|
1140
1144
|
});
|
|
1141
|
-
|
|
1142
|
-
function
|
|
1143
|
-
const n =
|
|
1145
|
+
Pa.displayName = Aa;
|
|
1146
|
+
function Ta(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1147
|
+
const n = Me(e), o = d.useRef(!1), r = d.useRef(() => {
|
|
1144
1148
|
});
|
|
1145
1149
|
return d.useEffect(() => {
|
|
1146
1150
|
const i = (s) => {
|
|
1147
1151
|
if (s.target && !o.current) {
|
|
1148
1152
|
let c = function() {
|
|
1149
1153
|
lr(
|
|
1150
|
-
|
|
1154
|
+
Ea,
|
|
1151
1155
|
n,
|
|
1152
1156
|
l,
|
|
1153
1157
|
{ discrete: !0 }
|
|
@@ -1169,11 +1173,11 @@ function Pa(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
1169
1173
|
onPointerDownCapture: () => o.current = !0
|
|
1170
1174
|
};
|
|
1171
1175
|
}
|
|
1172
|
-
function
|
|
1173
|
-
const n =
|
|
1176
|
+
function Ma(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
1177
|
+
const n = Me(e), o = d.useRef(!1);
|
|
1174
1178
|
return d.useEffect(() => {
|
|
1175
1179
|
const r = (i) => {
|
|
1176
|
-
i.target && !o.current && lr(
|
|
1180
|
+
i.target && !o.current && lr(Ra, n, { originalEvent: i }, {
|
|
1177
1181
|
discrete: !1
|
|
1178
1182
|
});
|
|
1179
1183
|
};
|
|
@@ -1195,23 +1199,23 @@ var mn = 0;
|
|
|
1195
1199
|
function ur() {
|
|
1196
1200
|
d.useEffect(() => {
|
|
1197
1201
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
1198
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
1202
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Mo()), document.body.insertAdjacentElement("beforeend", e[1] ?? Mo()), mn++, () => {
|
|
1199
1203
|
mn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), mn--;
|
|
1200
1204
|
};
|
|
1201
1205
|
}, []);
|
|
1202
1206
|
}
|
|
1203
|
-
function
|
|
1207
|
+
function Mo() {
|
|
1204
1208
|
const e = document.createElement("span");
|
|
1205
1209
|
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;
|
|
1206
1210
|
}
|
|
1207
|
-
var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount",
|
|
1211
|
+
var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Io = { bubbles: !1, cancelable: !0 }, Ia = "FocusScope", Kn = d.forwardRef((e, t) => {
|
|
1208
1212
|
const {
|
|
1209
1213
|
loop: n = !1,
|
|
1210
1214
|
trapped: o = !1,
|
|
1211
1215
|
onMountAutoFocus: r,
|
|
1212
1216
|
onUnmountAutoFocus: i,
|
|
1213
1217
|
...a
|
|
1214
|
-
} = e, [s, c] = d.useState(null), l =
|
|
1218
|
+
} = e, [s, c] = d.useState(null), l = Me(r), f = Me(i), u = d.useRef(null), m = Z(t, (h) => c(h)), g = d.useRef({
|
|
1215
1219
|
paused: !1,
|
|
1216
1220
|
pause() {
|
|
1217
1221
|
this.paused = !0;
|
|
@@ -1246,12 +1250,12 @@ var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Mo
|
|
|
1246
1250
|
_o.add(g);
|
|
1247
1251
|
const h = document.activeElement;
|
|
1248
1252
|
if (!s.contains(h)) {
|
|
1249
|
-
const y = new CustomEvent(hn,
|
|
1250
|
-
s.addEventListener(hn, l), s.dispatchEvent(y), y.defaultPrevented || (
|
|
1253
|
+
const y = new CustomEvent(hn, Io);
|
|
1254
|
+
s.addEventListener(hn, l), s.dispatchEvent(y), y.defaultPrevented || (Na(Fa(dr(s)), { select: !0 }), document.activeElement === h && ke(s));
|
|
1251
1255
|
}
|
|
1252
1256
|
return () => {
|
|
1253
1257
|
s.removeEventListener(hn, l), setTimeout(() => {
|
|
1254
|
-
const y = new CustomEvent(gn,
|
|
1258
|
+
const y = new CustomEvent(gn, Io);
|
|
1255
1259
|
s.addEventListener(gn, f), s.dispatchEvent(y), y.defaultPrevented || ke(h ?? document.body, { select: !0 }), s.removeEventListener(gn, f), _o.remove(g);
|
|
1256
1260
|
}, 0);
|
|
1257
1261
|
};
|
|
@@ -1262,7 +1266,7 @@ var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Mo
|
|
|
1262
1266
|
if (!n && !o || g.paused) return;
|
|
1263
1267
|
const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, y = document.activeElement;
|
|
1264
1268
|
if (v && y) {
|
|
1265
|
-
const C = h.currentTarget, [b, S] =
|
|
1269
|
+
const C = h.currentTarget, [b, S] = _a(C);
|
|
1266
1270
|
b && S ? !h.shiftKey && y === S ? (h.preventDefault(), n && ke(b, { select: !0 })) : h.shiftKey && y === b && (h.preventDefault(), n && ke(S, { select: !0 })) : y === C && h.preventDefault();
|
|
1267
1271
|
}
|
|
1268
1272
|
},
|
|
@@ -1271,12 +1275,12 @@ var hn = "focusScope.autoFocusOnMount", gn = "focusScope.autoFocusOnUnmount", Mo
|
|
|
1271
1275
|
return /* @__PURE__ */ p(U.div, { tabIndex: -1, ...a, ref: m, onKeyDown: w });
|
|
1272
1276
|
});
|
|
1273
1277
|
Kn.displayName = Ia;
|
|
1274
|
-
function
|
|
1278
|
+
function Na(e, { select: t = !1 } = {}) {
|
|
1275
1279
|
const n = document.activeElement;
|
|
1276
1280
|
for (const o of e)
|
|
1277
1281
|
if (ke(o, { select: t }), document.activeElement !== n) return;
|
|
1278
1282
|
}
|
|
1279
|
-
function
|
|
1283
|
+
function _a(e) {
|
|
1280
1284
|
const t = dr(e), n = No(t, e), o = No(t.reverse(), e);
|
|
1281
1285
|
return [n, o];
|
|
1282
1286
|
}
|
|
@@ -1292,9 +1296,9 @@ function dr(e) {
|
|
|
1292
1296
|
}
|
|
1293
1297
|
function No(e, t) {
|
|
1294
1298
|
for (const n of e)
|
|
1295
|
-
if (!
|
|
1299
|
+
if (!Oa(n, { upTo: t })) return n;
|
|
1296
1300
|
}
|
|
1297
|
-
function
|
|
1301
|
+
function Oa(e, { upTo: t }) {
|
|
1298
1302
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1299
1303
|
for (; e; ) {
|
|
1300
1304
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -1303,17 +1307,17 @@ function _a(e, { upTo: t }) {
|
|
|
1303
1307
|
}
|
|
1304
1308
|
return !1;
|
|
1305
1309
|
}
|
|
1306
|
-
function
|
|
1310
|
+
function Da(e) {
|
|
1307
1311
|
return e instanceof HTMLInputElement && "select" in e;
|
|
1308
1312
|
}
|
|
1309
1313
|
function ke(e, { select: t = !1 } = {}) {
|
|
1310
1314
|
if (e && e.focus) {
|
|
1311
1315
|
const n = document.activeElement;
|
|
1312
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
1316
|
+
e.focus({ preventScroll: !0 }), e !== n && Da(e) && t && e.select();
|
|
1313
1317
|
}
|
|
1314
1318
|
}
|
|
1315
|
-
var _o =
|
|
1316
|
-
function
|
|
1319
|
+
var _o = ka();
|
|
1320
|
+
function ka() {
|
|
1317
1321
|
let e = [];
|
|
1318
1322
|
return {
|
|
1319
1323
|
add(t) {
|
|
@@ -1330,26 +1334,26 @@ function Oo(e, t) {
|
|
|
1330
1334
|
const n = [...e], o = n.indexOf(t);
|
|
1331
1335
|
return o !== -1 && n.splice(o, 1), n;
|
|
1332
1336
|
}
|
|
1333
|
-
function
|
|
1337
|
+
function Fa(e) {
|
|
1334
1338
|
return e.filter((t) => t.tagName !== "A");
|
|
1335
1339
|
}
|
|
1336
|
-
var
|
|
1337
|
-
}),
|
|
1340
|
+
var La = d[" useId ".trim().toString()] || (() => {
|
|
1341
|
+
}), $a = 0;
|
|
1338
1342
|
function Ge(e) {
|
|
1339
|
-
const [t, n] = d.useState(
|
|
1343
|
+
const [t, n] = d.useState(La());
|
|
1340
1344
|
return oe(() => {
|
|
1341
|
-
n((o) => o ?? String(
|
|
1345
|
+
n((o) => o ?? String($a++));
|
|
1342
1346
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
1343
1347
|
}
|
|
1344
|
-
const
|
|
1348
|
+
const Va = ["top", "right", "bottom", "left"], Fe = Math.min, fe = Math.max, Vt = Math.round, At = Math.floor, Te = (e) => ({
|
|
1345
1349
|
x: e,
|
|
1346
1350
|
y: e
|
|
1347
|
-
}),
|
|
1351
|
+
}), Ba = {
|
|
1348
1352
|
left: "right",
|
|
1349
1353
|
right: "left",
|
|
1350
1354
|
bottom: "top",
|
|
1351
1355
|
top: "bottom"
|
|
1352
|
-
},
|
|
1356
|
+
}, Wa = {
|
|
1353
1357
|
start: "end",
|
|
1354
1358
|
end: "start"
|
|
1355
1359
|
};
|
|
@@ -1371,48 +1375,48 @@ function Gn(e) {
|
|
|
1371
1375
|
function zn(e) {
|
|
1372
1376
|
return e === "y" ? "height" : "width";
|
|
1373
1377
|
}
|
|
1374
|
-
const
|
|
1378
|
+
const Ua = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
1375
1379
|
function Pe(e) {
|
|
1376
|
-
return
|
|
1380
|
+
return Ua.has(De(e)) ? "y" : "x";
|
|
1377
1381
|
}
|
|
1378
1382
|
function jn(e) {
|
|
1379
1383
|
return Gn(Pe(e));
|
|
1380
1384
|
}
|
|
1381
|
-
function
|
|
1385
|
+
function Ha(e, t, n) {
|
|
1382
1386
|
n === void 0 && (n = !1);
|
|
1383
1387
|
const o = rt(e), r = jn(e), i = zn(r);
|
|
1384
1388
|
let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1385
1389
|
return t.reference[i] > t.floating[i] && (a = Bt(a)), [a, Bt(a)];
|
|
1386
1390
|
}
|
|
1387
|
-
function
|
|
1391
|
+
function Ka(e) {
|
|
1388
1392
|
const t = Bt(e);
|
|
1389
|
-
return [
|
|
1393
|
+
return [Mn(e), t, Mn(t)];
|
|
1390
1394
|
}
|
|
1391
|
-
function
|
|
1392
|
-
return e.replace(/start|end/g, (t) =>
|
|
1395
|
+
function Mn(e) {
|
|
1396
|
+
return e.replace(/start|end/g, (t) => Wa[t]);
|
|
1393
1397
|
}
|
|
1394
|
-
const Do = ["left", "right"], ko = ["right", "left"],
|
|
1395
|
-
function
|
|
1398
|
+
const Do = ["left", "right"], ko = ["right", "left"], Ga = ["top", "bottom"], za = ["bottom", "top"];
|
|
1399
|
+
function ja(e, t, n) {
|
|
1396
1400
|
switch (e) {
|
|
1397
1401
|
case "top":
|
|
1398
1402
|
case "bottom":
|
|
1399
1403
|
return n ? t ? ko : Do : t ? Do : ko;
|
|
1400
1404
|
case "left":
|
|
1401
1405
|
case "right":
|
|
1402
|
-
return t ?
|
|
1406
|
+
return t ? Ga : za;
|
|
1403
1407
|
default:
|
|
1404
1408
|
return [];
|
|
1405
1409
|
}
|
|
1406
1410
|
}
|
|
1407
|
-
function
|
|
1411
|
+
function Ya(e, t, n, o) {
|
|
1408
1412
|
const r = rt(e);
|
|
1409
|
-
let i =
|
|
1410
|
-
return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(
|
|
1413
|
+
let i = ja(De(e), n === "start", o);
|
|
1414
|
+
return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(Mn)))), i;
|
|
1411
1415
|
}
|
|
1412
1416
|
function Bt(e) {
|
|
1413
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1417
|
+
return e.replace(/left|right|bottom|top/g, (t) => Ba[t]);
|
|
1414
1418
|
}
|
|
1415
|
-
function
|
|
1419
|
+
function Xa(e) {
|
|
1416
1420
|
return {
|
|
1417
1421
|
top: 0,
|
|
1418
1422
|
right: 0,
|
|
@@ -1422,7 +1426,7 @@ function Ya(e) {
|
|
|
1422
1426
|
};
|
|
1423
1427
|
}
|
|
1424
1428
|
function fr(e) {
|
|
1425
|
-
return typeof e != "number" ?
|
|
1429
|
+
return typeof e != "number" ? Xa(e) : {
|
|
1426
1430
|
top: e,
|
|
1427
1431
|
right: e,
|
|
1428
1432
|
bottom: e,
|
|
@@ -1495,7 +1499,7 @@ function Fo(e, t, n) {
|
|
|
1495
1499
|
}
|
|
1496
1500
|
return g;
|
|
1497
1501
|
}
|
|
1498
|
-
const
|
|
1502
|
+
const Za = async (e, t, n) => {
|
|
1499
1503
|
const {
|
|
1500
1504
|
placement: o = "bottom",
|
|
1501
1505
|
strategy: r = "absolute",
|
|
@@ -1601,7 +1605,7 @@ async function gt(e, t) {
|
|
|
1601
1605
|
right: (R.right - y.right + w.right) / S.x
|
|
1602
1606
|
};
|
|
1603
1607
|
}
|
|
1604
|
-
const
|
|
1608
|
+
const qa = (e) => ({
|
|
1605
1609
|
name: "arrow",
|
|
1606
1610
|
options: e,
|
|
1607
1611
|
async fn(t) {
|
|
@@ -1625,7 +1629,7 @@ const Za = (e) => ({
|
|
|
1625
1629
|
}, g = jn(r), w = zn(g), h = await a.getDimensions(l), v = g === "y", y = v ? "top" : "left", C = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", S = i.reference[w] + i.reference[g] - m[g] - i.floating[w], R = m[g] - i.reference[g], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
|
|
1626
1630
|
let E = A ? A[b] : 0;
|
|
1627
1631
|
(!E || !await (a.isElement == null ? void 0 : a.isElement(A))) && (E = s.floating[b] || i.floating[w]);
|
|
1628
|
-
const x = S / 2 - R / 2,
|
|
1632
|
+
const x = S / 2 - R / 2, M = E / 2 - h[w] / 2 - 1, T = Fe(u[y], M), D = Fe(u[C], M), L = T, $ = E - h[w] - D, F = E / 2 - h[w] / 2 + x, K = Tn(L, F, $), O = !c.arrow && rt(r) != null && F !== K && i.reference[w] / 2 - (F < L ? T : D) - h[w] / 2 < 0, B = O ? F < L ? F - L : F - $ : 0;
|
|
1629
1633
|
return {
|
|
1630
1634
|
[g]: m[g] + B,
|
|
1631
1635
|
data: {
|
|
@@ -1638,7 +1642,7 @@ const Za = (e) => ({
|
|
|
1638
1642
|
reset: O
|
|
1639
1643
|
};
|
|
1640
1644
|
}
|
|
1641
|
-
}),
|
|
1645
|
+
}), Ja = function(e) {
|
|
1642
1646
|
return e === void 0 && (e = {}), {
|
|
1643
1647
|
name: "flip",
|
|
1644
1648
|
options: e,
|
|
@@ -1662,18 +1666,18 @@ const Za = (e) => ({
|
|
|
1662
1666
|
} = Oe(e, t);
|
|
1663
1667
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1664
1668
|
return {};
|
|
1665
|
-
const y = De(r), C = Pe(s), b = De(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), R = m || (b || !h ? [Bt(s)] :
|
|
1666
|
-
!m && A && R.push(...
|
|
1667
|
-
const E = [s, ...R], x = await gt(t, v),
|
|
1669
|
+
const y = De(r), C = Pe(s), b = De(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), R = m || (b || !h ? [Bt(s)] : Ka(s)), A = w !== "none";
|
|
1670
|
+
!m && A && R.push(...Ya(s, h, w, S));
|
|
1671
|
+
const E = [s, ...R], x = await gt(t, v), M = [];
|
|
1668
1672
|
let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1669
|
-
if (f &&
|
|
1670
|
-
const F =
|
|
1671
|
-
|
|
1673
|
+
if (f && M.push(x[y]), u) {
|
|
1674
|
+
const F = Ha(r, a, S);
|
|
1675
|
+
M.push(x[F[0]], x[F[1]]);
|
|
1672
1676
|
}
|
|
1673
1677
|
if (T = [...T, {
|
|
1674
1678
|
placement: r,
|
|
1675
|
-
overflows:
|
|
1676
|
-
}], !
|
|
1679
|
+
overflows: M
|
|
1680
|
+
}], !M.every((F) => F <= 0)) {
|
|
1677
1681
|
var D, L;
|
|
1678
1682
|
const F = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, K = E[F];
|
|
1679
1683
|
if (K && (!(u === "alignment" ? C !== Pe(K) : !1) || // We leave the current main axis only if every placement on that axis
|
|
@@ -1729,9 +1733,9 @@ function Lo(e, t) {
|
|
|
1729
1733
|
};
|
|
1730
1734
|
}
|
|
1731
1735
|
function $o(e) {
|
|
1732
|
-
return
|
|
1736
|
+
return Va.some((t) => e[t] >= 0);
|
|
1733
1737
|
}
|
|
1734
|
-
const
|
|
1738
|
+
const Qa = function(e) {
|
|
1735
1739
|
return e === void 0 && (e = {}), {
|
|
1736
1740
|
name: "hide",
|
|
1737
1741
|
options: e,
|
|
@@ -1773,7 +1777,7 @@ const Ja = function(e) {
|
|
|
1773
1777
|
}
|
|
1774
1778
|
};
|
|
1775
1779
|
}, pr = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1776
|
-
async function
|
|
1780
|
+
async function ec(e, t) {
|
|
1777
1781
|
const {
|
|
1778
1782
|
placement: n,
|
|
1779
1783
|
platform: o,
|
|
@@ -1800,7 +1804,7 @@ async function Qa(e, t) {
|
|
|
1800
1804
|
y: g * f
|
|
1801
1805
|
};
|
|
1802
1806
|
}
|
|
1803
|
-
const
|
|
1807
|
+
const tc = function(e) {
|
|
1804
1808
|
return e === void 0 && (e = 0), {
|
|
1805
1809
|
name: "offset",
|
|
1806
1810
|
options: e,
|
|
@@ -1811,7 +1815,7 @@ const ec = function(e) {
|
|
|
1811
1815
|
y: i,
|
|
1812
1816
|
placement: a,
|
|
1813
1817
|
middlewareData: s
|
|
1814
|
-
} = t, c = await
|
|
1818
|
+
} = t, c = await ec(t, e);
|
|
1815
1819
|
return a === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
|
|
1816
1820
|
x: r + c.x,
|
|
1817
1821
|
y: i + c.y,
|
|
@@ -1822,7 +1826,7 @@ const ec = function(e) {
|
|
|
1822
1826
|
};
|
|
1823
1827
|
}
|
|
1824
1828
|
};
|
|
1825
|
-
},
|
|
1829
|
+
}, nc = function(e) {
|
|
1826
1830
|
return e === void 0 && (e = {}), {
|
|
1827
1831
|
name: "shift",
|
|
1828
1832
|
options: e,
|
|
@@ -1878,7 +1882,7 @@ const ec = function(e) {
|
|
|
1878
1882
|
};
|
|
1879
1883
|
}
|
|
1880
1884
|
};
|
|
1881
|
-
},
|
|
1885
|
+
}, oc = function(e) {
|
|
1882
1886
|
return e === void 0 && (e = {}), {
|
|
1883
1887
|
options: e,
|
|
1884
1888
|
fn(t) {
|
|
@@ -1920,7 +1924,7 @@ const ec = function(e) {
|
|
|
1920
1924
|
};
|
|
1921
1925
|
}
|
|
1922
1926
|
};
|
|
1923
|
-
},
|
|
1927
|
+
}, rc = function(e) {
|
|
1924
1928
|
return e === void 0 && (e = {}), {
|
|
1925
1929
|
name: "size",
|
|
1926
1930
|
options: e,
|
|
@@ -1952,8 +1956,8 @@ const ec = function(e) {
|
|
|
1952
1956
|
availableWidth: x,
|
|
1953
1957
|
availableHeight: E
|
|
1954
1958
|
});
|
|
1955
|
-
const
|
|
1956
|
-
return w !==
|
|
1959
|
+
const M = await a.getDimensions(s.floating);
|
|
1960
|
+
return w !== M.width || h !== M.height ? {
|
|
1957
1961
|
reset: {
|
|
1958
1962
|
rects: !0
|
|
1959
1963
|
}
|
|
@@ -1981,13 +1985,13 @@ function mr(e) {
|
|
|
1981
1985
|
function Se(e) {
|
|
1982
1986
|
return Zt() ? e instanceof Element || e instanceof pe(e).Element : !1;
|
|
1983
1987
|
}
|
|
1984
|
-
function
|
|
1988
|
+
function Ie(e) {
|
|
1985
1989
|
return Zt() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
|
|
1986
1990
|
}
|
|
1987
1991
|
function Vo(e) {
|
|
1988
1992
|
return !Zt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof pe(e).ShadowRoot;
|
|
1989
1993
|
}
|
|
1990
|
-
const
|
|
1994
|
+
const ic = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
1991
1995
|
function bt(e) {
|
|
1992
1996
|
const {
|
|
1993
1997
|
overflow: t,
|
|
@@ -1995,15 +1999,15 @@ function bt(e) {
|
|
|
1995
1999
|
overflowY: o,
|
|
1996
2000
|
display: r
|
|
1997
2001
|
} = xe(e);
|
|
1998
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !
|
|
2002
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !ic.has(r);
|
|
1999
2003
|
}
|
|
2000
|
-
const
|
|
2001
|
-
function
|
|
2002
|
-
return
|
|
2004
|
+
const sc = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
2005
|
+
function ac(e) {
|
|
2006
|
+
return sc.has(it(e));
|
|
2003
2007
|
}
|
|
2004
|
-
const
|
|
2008
|
+
const cc = [":popover-open", ":modal"];
|
|
2005
2009
|
function qt(e) {
|
|
2006
|
-
return
|
|
2010
|
+
return cc.some((t) => {
|
|
2007
2011
|
try {
|
|
2008
2012
|
return e.matches(t);
|
|
2009
2013
|
} catch {
|
|
@@ -2011,14 +2015,14 @@ function qt(e) {
|
|
|
2011
2015
|
}
|
|
2012
2016
|
});
|
|
2013
2017
|
}
|
|
2014
|
-
const
|
|
2018
|
+
const lc = ["transform", "translate", "scale", "rotate", "perspective"], uc = ["transform", "translate", "scale", "rotate", "perspective", "filter"], dc = ["paint", "layout", "strict", "content"];
|
|
2015
2019
|
function Yn(e) {
|
|
2016
2020
|
const t = Xn(), n = Se(e) ? xe(e) : e;
|
|
2017
|
-
return
|
|
2021
|
+
return lc.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) || uc.some((o) => (n.willChange || "").includes(o)) || dc.some((o) => (n.contain || "").includes(o));
|
|
2018
2022
|
}
|
|
2019
|
-
function
|
|
2023
|
+
function fc(e) {
|
|
2020
2024
|
let t = Le(e);
|
|
2021
|
-
for (;
|
|
2025
|
+
for (; Ie(t) && !ot(t); ) {
|
|
2022
2026
|
if (Yn(t))
|
|
2023
2027
|
return t;
|
|
2024
2028
|
if (qt(t))
|
|
@@ -2030,9 +2034,9 @@ function dc(e) {
|
|
|
2030
2034
|
function Xn() {
|
|
2031
2035
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2032
2036
|
}
|
|
2033
|
-
const
|
|
2037
|
+
const pc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
2034
2038
|
function ot(e) {
|
|
2035
|
-
return
|
|
2039
|
+
return pc.has(it(e));
|
|
2036
2040
|
}
|
|
2037
2041
|
function xe(e) {
|
|
2038
2042
|
return pe(e).getComputedStyle(e);
|
|
@@ -2060,25 +2064,25 @@ function Le(e) {
|
|
|
2060
2064
|
}
|
|
2061
2065
|
function hr(e) {
|
|
2062
2066
|
const t = Le(e);
|
|
2063
|
-
return ot(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
2067
|
+
return ot(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ie(t) && bt(t) ? t : hr(t);
|
|
2064
2068
|
}
|
|
2065
2069
|
function vt(e, t, n) {
|
|
2066
2070
|
var o;
|
|
2067
2071
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2068
2072
|
const r = hr(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = pe(r);
|
|
2069
2073
|
if (i) {
|
|
2070
|
-
const s =
|
|
2074
|
+
const s = In(a);
|
|
2071
2075
|
return t.concat(a, a.visualViewport || [], bt(r) ? r : [], s && n ? vt(s) : []);
|
|
2072
2076
|
}
|
|
2073
2077
|
return t.concat(r, vt(r, [], n));
|
|
2074
2078
|
}
|
|
2075
|
-
function
|
|
2079
|
+
function In(e) {
|
|
2076
2080
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2077
2081
|
}
|
|
2078
2082
|
function gr(e) {
|
|
2079
2083
|
const t = xe(e);
|
|
2080
2084
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
2081
|
-
const r =
|
|
2085
|
+
const r = Ie(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = Vt(n) !== i || Vt(o) !== a;
|
|
2082
2086
|
return s && (n = i, o = a), {
|
|
2083
2087
|
width: n,
|
|
2084
2088
|
height: o,
|
|
@@ -2090,7 +2094,7 @@ function Zn(e) {
|
|
|
2090
2094
|
}
|
|
2091
2095
|
function tt(e) {
|
|
2092
2096
|
const t = Zn(e);
|
|
2093
|
-
if (!
|
|
2097
|
+
if (!Ie(t))
|
|
2094
2098
|
return Te(1);
|
|
2095
2099
|
const n = t.getBoundingClientRect(), {
|
|
2096
2100
|
width: o,
|
|
@@ -2103,15 +2107,15 @@ function tt(e) {
|
|
|
2103
2107
|
y: s
|
|
2104
2108
|
};
|
|
2105
2109
|
}
|
|
2106
|
-
const
|
|
2110
|
+
const mc = /* @__PURE__ */ Te(0);
|
|
2107
2111
|
function vr(e) {
|
|
2108
2112
|
const t = pe(e);
|
|
2109
|
-
return !Xn() || !t.visualViewport ?
|
|
2113
|
+
return !Xn() || !t.visualViewport ? mc : {
|
|
2110
2114
|
x: t.visualViewport.offsetLeft,
|
|
2111
2115
|
y: t.visualViewport.offsetTop
|
|
2112
2116
|
};
|
|
2113
2117
|
}
|
|
2114
|
-
function
|
|
2118
|
+
function hc(e, t, n) {
|
|
2115
2119
|
return t === void 0 && (t = !1), !n || t && n !== pe(e) ? !1 : t;
|
|
2116
2120
|
}
|
|
2117
2121
|
function ze(e, t, n, o) {
|
|
@@ -2119,14 +2123,14 @@ function ze(e, t, n, o) {
|
|
|
2119
2123
|
const r = e.getBoundingClientRect(), i = Zn(e);
|
|
2120
2124
|
let a = Te(1);
|
|
2121
2125
|
t && (o ? Se(o) && (a = tt(o)) : a = tt(e));
|
|
2122
|
-
const s =
|
|
2126
|
+
const s = hc(i, n, o) ? vr(i) : Te(0);
|
|
2123
2127
|
let c = (r.left + s.x) / a.x, l = (r.top + s.y) / a.y, f = r.width / a.x, u = r.height / a.y;
|
|
2124
2128
|
if (i) {
|
|
2125
2129
|
const m = pe(i), g = o && Se(o) ? pe(o) : o;
|
|
2126
|
-
let w = m, h =
|
|
2130
|
+
let w = m, h = In(w);
|
|
2127
2131
|
for (; h && o && g !== w; ) {
|
|
2128
2132
|
const v = tt(h), y = h.getBoundingClientRect(), C = xe(h), b = y.left + (h.clientLeft + parseFloat(C.paddingLeft)) * v.x, S = y.top + (h.clientTop + parseFloat(C.paddingTop)) * v.y;
|
|
2129
|
-
c *= v.x, l *= v.y, f *= v.x, u *= v.y, c += b, l += S, w = pe(h), h =
|
|
2133
|
+
c *= v.x, l *= v.y, f *= v.x, u *= v.y, c += b, l += S, w = pe(h), h = In(w);
|
|
2130
2134
|
}
|
|
2131
2135
|
}
|
|
2132
2136
|
return Wt({
|
|
@@ -2147,7 +2151,7 @@ function wr(e, t) {
|
|
|
2147
2151
|
y: r
|
|
2148
2152
|
};
|
|
2149
2153
|
}
|
|
2150
|
-
function
|
|
2154
|
+
function gc(e) {
|
|
2151
2155
|
let {
|
|
2152
2156
|
elements: t,
|
|
2153
2157
|
rect: n,
|
|
@@ -2161,8 +2165,8 @@ function hc(e) {
|
|
|
2161
2165
|
scrollLeft: 0,
|
|
2162
2166
|
scrollTop: 0
|
|
2163
2167
|
}, l = Te(1);
|
|
2164
|
-
const f = Te(0), u =
|
|
2165
|
-
if ((u || !u && !i) && ((it(o) !== "body" || bt(a)) && (c = Jt(o)),
|
|
2168
|
+
const f = Te(0), u = Ie(o);
|
|
2169
|
+
if ((u || !u && !i) && ((it(o) !== "body" || bt(a)) && (c = Jt(o)), Ie(o))) {
|
|
2166
2170
|
const g = ze(o);
|
|
2167
2171
|
l = tt(o), f.x = g.x + o.clientLeft, f.y = g.y + o.clientTop;
|
|
2168
2172
|
}
|
|
@@ -2174,10 +2178,10 @@ function hc(e) {
|
|
|
2174
2178
|
y: n.y * l.y - c.scrollTop * l.y + f.y + m.y
|
|
2175
2179
|
};
|
|
2176
2180
|
}
|
|
2177
|
-
function
|
|
2181
|
+
function vc(e) {
|
|
2178
2182
|
return Array.from(e.getClientRects());
|
|
2179
2183
|
}
|
|
2180
|
-
function
|
|
2184
|
+
function wc(e) {
|
|
2181
2185
|
const t = Ne(e), n = Jt(e), o = e.ownerDocument.body, r = fe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = fe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
2182
2186
|
let a = -n.scrollLeft + Qt(e);
|
|
2183
2187
|
const s = -n.scrollTop;
|
|
@@ -2189,7 +2193,7 @@ function vc(e) {
|
|
|
2189
2193
|
};
|
|
2190
2194
|
}
|
|
2191
2195
|
const Bo = 25;
|
|
2192
|
-
function
|
|
2196
|
+
function yc(e, t) {
|
|
2193
2197
|
const n = pe(e), o = Ne(e), r = n.visualViewport;
|
|
2194
2198
|
let i = o.clientWidth, a = o.clientHeight, s = 0, c = 0;
|
|
2195
2199
|
if (r) {
|
|
@@ -2209,9 +2213,9 @@ function wc(e, t) {
|
|
|
2209
2213
|
y: c
|
|
2210
2214
|
};
|
|
2211
2215
|
}
|
|
2212
|
-
const
|
|
2213
|
-
function
|
|
2214
|
-
const n = ze(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i =
|
|
2216
|
+
const bc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
2217
|
+
function Cc(e, t) {
|
|
2218
|
+
const n = ze(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Ie(e) ? tt(e) : Te(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, c = r * i.x, l = o * i.y;
|
|
2215
2219
|
return {
|
|
2216
2220
|
width: a,
|
|
2217
2221
|
height: s,
|
|
@@ -2222,11 +2226,11 @@ function bc(e, t) {
|
|
|
2222
2226
|
function Wo(e, t, n) {
|
|
2223
2227
|
let o;
|
|
2224
2228
|
if (t === "viewport")
|
|
2225
|
-
o =
|
|
2229
|
+
o = yc(e, n);
|
|
2226
2230
|
else if (t === "document")
|
|
2227
|
-
o =
|
|
2231
|
+
o = wc(Ne(e));
|
|
2228
2232
|
else if (Se(t))
|
|
2229
|
-
o =
|
|
2233
|
+
o = Cc(t, n);
|
|
2230
2234
|
else {
|
|
2231
2235
|
const r = vr(e);
|
|
2232
2236
|
o = {
|
|
@@ -2242,7 +2246,7 @@ function yr(e, t) {
|
|
|
2242
2246
|
const n = Le(e);
|
|
2243
2247
|
return n === t || !Se(n) || ot(n) ? !1 : xe(n).position === "fixed" || yr(n, t);
|
|
2244
2248
|
}
|
|
2245
|
-
function
|
|
2249
|
+
function Sc(e, t) {
|
|
2246
2250
|
const n = t.get(e);
|
|
2247
2251
|
if (n)
|
|
2248
2252
|
return n;
|
|
@@ -2251,18 +2255,18 @@ function Cc(e, t) {
|
|
|
2251
2255
|
let a = i ? Le(e) : e;
|
|
2252
2256
|
for (; Se(a) && !ot(a); ) {
|
|
2253
2257
|
const s = xe(a), c = Yn(a);
|
|
2254
|
-
!c && s.position === "fixed" && (r = null), (i ? !c && !r : !c && s.position === "static" && !!r &&
|
|
2258
|
+
!c && s.position === "fixed" && (r = null), (i ? !c && !r : !c && s.position === "static" && !!r && bc.has(r.position) || bt(a) && !c && yr(e, a)) ? o = o.filter((f) => f !== a) : r = s, a = Le(a);
|
|
2255
2259
|
}
|
|
2256
2260
|
return t.set(e, o), o;
|
|
2257
2261
|
}
|
|
2258
|
-
function
|
|
2262
|
+
function xc(e) {
|
|
2259
2263
|
let {
|
|
2260
2264
|
element: t,
|
|
2261
2265
|
boundary: n,
|
|
2262
2266
|
rootBoundary: o,
|
|
2263
2267
|
strategy: r
|
|
2264
2268
|
} = e;
|
|
2265
|
-
const a = [...n === "clippingAncestors" ? qt(t) ? [] :
|
|
2269
|
+
const a = [...n === "clippingAncestors" ? qt(t) ? [] : Sc(t, this._c) : [].concat(n), o], s = a[0], c = a.reduce((l, f) => {
|
|
2266
2270
|
const u = Wo(t, f, r);
|
|
2267
2271
|
return l.top = fe(u.top, l.top), l.right = Fe(u.right, l.right), l.bottom = Fe(u.bottom, l.bottom), l.left = fe(u.left, l.left), l;
|
|
2268
2272
|
}, Wo(t, s, r));
|
|
@@ -2273,7 +2277,7 @@ function Sc(e) {
|
|
|
2273
2277
|
y: c.top
|
|
2274
2278
|
};
|
|
2275
2279
|
}
|
|
2276
|
-
function
|
|
2280
|
+
function Ec(e) {
|
|
2277
2281
|
const {
|
|
2278
2282
|
width: t,
|
|
2279
2283
|
height: n
|
|
@@ -2283,8 +2287,8 @@ function xc(e) {
|
|
|
2283
2287
|
height: n
|
|
2284
2288
|
};
|
|
2285
2289
|
}
|
|
2286
|
-
function
|
|
2287
|
-
const o =
|
|
2290
|
+
function Rc(e, t, n) {
|
|
2291
|
+
const o = Ie(t), r = Ne(t), i = n === "fixed", a = ze(e, !0, i, t);
|
|
2288
2292
|
let s = {
|
|
2289
2293
|
scrollLeft: 0,
|
|
2290
2294
|
scrollTop: 0
|
|
@@ -2311,7 +2315,7 @@ function vn(e) {
|
|
|
2311
2315
|
return xe(e).position === "static";
|
|
2312
2316
|
}
|
|
2313
2317
|
function Uo(e, t) {
|
|
2314
|
-
if (!
|
|
2318
|
+
if (!Ie(e) || xe(e).position === "fixed")
|
|
2315
2319
|
return null;
|
|
2316
2320
|
if (t)
|
|
2317
2321
|
return t(e);
|
|
@@ -2322,7 +2326,7 @@ function br(e, t) {
|
|
|
2322
2326
|
const n = pe(e);
|
|
2323
2327
|
if (qt(e))
|
|
2324
2328
|
return n;
|
|
2325
|
-
if (!
|
|
2329
|
+
if (!Ie(e)) {
|
|
2326
2330
|
let r = Le(e);
|
|
2327
2331
|
for (; r && !ot(r); ) {
|
|
2328
2332
|
if (Se(r) && !vn(r))
|
|
@@ -2332,14 +2336,14 @@ function br(e, t) {
|
|
|
2332
2336
|
return n;
|
|
2333
2337
|
}
|
|
2334
2338
|
let o = Uo(e, t);
|
|
2335
|
-
for (; o &&
|
|
2339
|
+
for (; o && ac(o) && vn(o); )
|
|
2336
2340
|
o = Uo(o, t);
|
|
2337
|
-
return o && ot(o) && vn(o) && !Yn(o) ? n : o ||
|
|
2341
|
+
return o && ot(o) && vn(o) && !Yn(o) ? n : o || fc(e) || n;
|
|
2338
2342
|
}
|
|
2339
|
-
const
|
|
2343
|
+
const Ac = async function(e) {
|
|
2340
2344
|
const t = this.getOffsetParent || br, n = this.getDimensions, o = await n(e.floating);
|
|
2341
2345
|
return {
|
|
2342
|
-
reference:
|
|
2346
|
+
reference: Rc(e.reference, await t(e.floating), e.strategy),
|
|
2343
2347
|
floating: {
|
|
2344
2348
|
x: 0,
|
|
2345
2349
|
y: 0,
|
|
@@ -2348,25 +2352,25 @@ const Rc = async function(e) {
|
|
|
2348
2352
|
}
|
|
2349
2353
|
};
|
|
2350
2354
|
};
|
|
2351
|
-
function
|
|
2355
|
+
function Pc(e) {
|
|
2352
2356
|
return xe(e).direction === "rtl";
|
|
2353
2357
|
}
|
|
2354
|
-
const
|
|
2355
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2358
|
+
const Tc = {
|
|
2359
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: gc,
|
|
2356
2360
|
getDocumentElement: Ne,
|
|
2357
|
-
getClippingRect:
|
|
2361
|
+
getClippingRect: xc,
|
|
2358
2362
|
getOffsetParent: br,
|
|
2359
|
-
getElementRects:
|
|
2360
|
-
getClientRects:
|
|
2361
|
-
getDimensions:
|
|
2363
|
+
getElementRects: Ac,
|
|
2364
|
+
getClientRects: vc,
|
|
2365
|
+
getDimensions: Ec,
|
|
2362
2366
|
getScale: tt,
|
|
2363
2367
|
isElement: Se,
|
|
2364
|
-
isRTL:
|
|
2368
|
+
isRTL: Pc
|
|
2365
2369
|
};
|
|
2366
2370
|
function Cr(e, t) {
|
|
2367
2371
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2368
2372
|
}
|
|
2369
|
-
function
|
|
2373
|
+
function Mc(e, t) {
|
|
2370
2374
|
let n = null, o;
|
|
2371
2375
|
const r = Ne(e);
|
|
2372
2376
|
function i() {
|
|
@@ -2426,7 +2430,7 @@ function Ic(e, t, n, o) {
|
|
|
2426
2430
|
passive: !0
|
|
2427
2431
|
}), i && y.addEventListener("resize", n);
|
|
2428
2432
|
});
|
|
2429
|
-
const u = l && s ?
|
|
2433
|
+
const u = l && s ? Mc(l, n) : null;
|
|
2430
2434
|
let m = -1, g = null;
|
|
2431
2435
|
a && (g = new ResizeObserver((y) => {
|
|
2432
2436
|
let [C] = y;
|
|
@@ -2448,21 +2452,21 @@ function Ic(e, t, n, o) {
|
|
|
2448
2452
|
}), u == null || u(), (y = g) == null || y.disconnect(), g = null, c && cancelAnimationFrame(w);
|
|
2449
2453
|
};
|
|
2450
2454
|
}
|
|
2451
|
-
const
|
|
2455
|
+
const Nc = tc, _c = nc, Oc = Ja, Dc = rc, kc = Qa, Ho = qa, Fc = oc, Lc = (e, t, n) => {
|
|
2452
2456
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
2453
|
-
platform:
|
|
2457
|
+
platform: Tc,
|
|
2454
2458
|
...n
|
|
2455
2459
|
}, i = {
|
|
2456
2460
|
...r.platform,
|
|
2457
2461
|
_c: o
|
|
2458
2462
|
};
|
|
2459
|
-
return
|
|
2463
|
+
return Za(e, t, {
|
|
2460
2464
|
...r,
|
|
2461
2465
|
platform: i
|
|
2462
2466
|
});
|
|
2463
2467
|
};
|
|
2464
|
-
var
|
|
2465
|
-
}, Ft =
|
|
2468
|
+
var $c = typeof document < "u", Vc = function() {
|
|
2469
|
+
}, Ft = $c ? As : Vc;
|
|
2466
2470
|
function Ut(e, t) {
|
|
2467
2471
|
if (e === t)
|
|
2468
2472
|
return !0;
|
|
@@ -2506,7 +2510,7 @@ function wn(e) {
|
|
|
2506
2510
|
t.current = e;
|
|
2507
2511
|
}), t;
|
|
2508
2512
|
}
|
|
2509
|
-
function
|
|
2513
|
+
function Bc(e) {
|
|
2510
2514
|
e === void 0 && (e = {});
|
|
2511
2515
|
const {
|
|
2512
2516
|
placement: t = "bottom",
|
|
@@ -2533,7 +2537,7 @@ function Vc(e) {
|
|
|
2533
2537
|
_ !== A.current && (A.current = _, h(_));
|
|
2534
2538
|
}, []), b = d.useCallback((_) => {
|
|
2535
2539
|
_ !== E.current && (E.current = _, y(_));
|
|
2536
|
-
}, []), S = i || w, R = a || v, A = d.useRef(null), E = d.useRef(null), x = d.useRef(f),
|
|
2540
|
+
}, []), S = i || w, R = a || v, A = d.useRef(null), E = d.useRef(null), x = d.useRef(f), M = c != null, T = wn(c), D = wn(r), L = wn(l), $ = d.useCallback(() => {
|
|
2537
2541
|
if (!A.current || !E.current)
|
|
2538
2542
|
return;
|
|
2539
2543
|
const _ = {
|
|
@@ -2541,7 +2545,7 @@ function Vc(e) {
|
|
|
2541
2545
|
strategy: n,
|
|
2542
2546
|
middleware: m
|
|
2543
2547
|
};
|
|
2544
|
-
D.current && (_.platform = D.current),
|
|
2548
|
+
D.current && (_.platform = D.current), Lc(A.current, E.current, _).then((P) => {
|
|
2545
2549
|
const j = {
|
|
2546
2550
|
...P,
|
|
2547
2551
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -2570,7 +2574,7 @@ function Vc(e) {
|
|
|
2570
2574
|
return T.current(S, R, $);
|
|
2571
2575
|
$();
|
|
2572
2576
|
}
|
|
2573
|
-
}, [S, R, $, T,
|
|
2577
|
+
}, [S, R, $, T, M]);
|
|
2574
2578
|
const K = d.useMemo(() => ({
|
|
2575
2579
|
reference: A,
|
|
2576
2580
|
floating: E,
|
|
@@ -2608,7 +2612,7 @@ function Vc(e) {
|
|
|
2608
2612
|
floatingStyles: B
|
|
2609
2613
|
}), [f, $, K, O, B]);
|
|
2610
2614
|
}
|
|
2611
|
-
const
|
|
2615
|
+
const Wc = (e) => {
|
|
2612
2616
|
function t(n) {
|
|
2613
2617
|
return {}.hasOwnProperty.call(n, "current");
|
|
2614
2618
|
}
|
|
@@ -2629,17 +2633,14 @@ const Bc = (e) => {
|
|
|
2629
2633
|
}).fn(n) : {};
|
|
2630
2634
|
}
|
|
2631
2635
|
};
|
|
2632
|
-
},
|
|
2633
|
-
...Mc(e),
|
|
2634
|
-
options: [e, t]
|
|
2635
|
-
}), Uc = (e, t) => ({
|
|
2636
|
+
}, Uc = (e, t) => ({
|
|
2636
2637
|
...Nc(e),
|
|
2637
2638
|
options: [e, t]
|
|
2638
2639
|
}), Hc = (e, t) => ({
|
|
2639
|
-
...
|
|
2640
|
+
..._c(e),
|
|
2640
2641
|
options: [e, t]
|
|
2641
2642
|
}), Kc = (e, t) => ({
|
|
2642
|
-
...
|
|
2643
|
+
...Fc(e),
|
|
2643
2644
|
options: [e, t]
|
|
2644
2645
|
}), Gc = (e, t) => ({
|
|
2645
2646
|
...Oc(e),
|
|
@@ -2648,10 +2649,13 @@ const Bc = (e) => {
|
|
|
2648
2649
|
...Dc(e),
|
|
2649
2650
|
options: [e, t]
|
|
2650
2651
|
}), jc = (e, t) => ({
|
|
2651
|
-
...
|
|
2652
|
+
...kc(e),
|
|
2653
|
+
options: [e, t]
|
|
2654
|
+
}), Yc = (e, t) => ({
|
|
2655
|
+
...Wc(e),
|
|
2652
2656
|
options: [e, t]
|
|
2653
2657
|
});
|
|
2654
|
-
var
|
|
2658
|
+
var Xc = "Arrow", xr = d.forwardRef((e, t) => {
|
|
2655
2659
|
const { children: n, width: o = 10, height: r = 5, ...i } = e;
|
|
2656
2660
|
return /* @__PURE__ */ p(
|
|
2657
2661
|
U.svg,
|
|
@@ -2666,9 +2670,9 @@ var Yc = "Arrow", xr = d.forwardRef((e, t) => {
|
|
|
2666
2670
|
}
|
|
2667
2671
|
);
|
|
2668
2672
|
});
|
|
2669
|
-
xr.displayName =
|
|
2670
|
-
var
|
|
2671
|
-
function
|
|
2673
|
+
xr.displayName = Xc;
|
|
2674
|
+
var Zc = xr;
|
|
2675
|
+
function qc(e) {
|
|
2672
2676
|
const [t, n] = d.useState(void 0);
|
|
2673
2677
|
return oe(() => {
|
|
2674
2678
|
if (e) {
|
|
@@ -2690,9 +2694,9 @@ function Zc(e) {
|
|
|
2690
2694
|
n(void 0);
|
|
2691
2695
|
}, [e]), t;
|
|
2692
2696
|
}
|
|
2693
|
-
var qn = "Popper", [Er, en] = Xe(qn), [
|
|
2697
|
+
var qn = "Popper", [Er, en] = Xe(qn), [Jc, Rr] = Er(qn), Ar = (e) => {
|
|
2694
2698
|
const { __scopePopper: t, children: n } = e, [o, r] = d.useState(null);
|
|
2695
|
-
return /* @__PURE__ */ p(
|
|
2699
|
+
return /* @__PURE__ */ p(Jc, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
2696
2700
|
};
|
|
2697
2701
|
Ar.displayName = qn;
|
|
2698
2702
|
var Pr = "PopperAnchor", Tr = d.forwardRef(
|
|
@@ -2705,9 +2709,9 @@ var Pr = "PopperAnchor", Tr = d.forwardRef(
|
|
|
2705
2709
|
}
|
|
2706
2710
|
);
|
|
2707
2711
|
Tr.displayName = Pr;
|
|
2708
|
-
var Jn = "PopperContent", [
|
|
2712
|
+
var Jn = "PopperContent", [Qc, el] = Er(Jn), Mr = d.forwardRef(
|
|
2709
2713
|
(e, t) => {
|
|
2710
|
-
var
|
|
2714
|
+
var I, W, G, H, V, z;
|
|
2711
2715
|
const {
|
|
2712
2716
|
__scopePopper: n,
|
|
2713
2717
|
side: o = "bottom",
|
|
@@ -2723,15 +2727,15 @@ var Jn = "PopperContent", [Jc, Qc] = Er(Jn), Ir = d.forwardRef(
|
|
|
2723
2727
|
updatePositionStrategy: g = "optimized",
|
|
2724
2728
|
onPlaced: w,
|
|
2725
2729
|
...h
|
|
2726
|
-
} = e, v = Rr(Jn, n), [y, C] = d.useState(null), b = Z(t, (ie) => C(ie)), [S, R] = d.useState(null), A =
|
|
2730
|
+
} = e, v = Rr(Jn, n), [y, C] = d.useState(null), b = Z(t, (ie) => C(ie)), [S, R] = d.useState(null), A = qc(S), E = (A == null ? void 0 : A.width) ?? 0, x = (A == null ? void 0 : A.height) ?? 0, M = o + (i !== "center" ? "-" + i : ""), T = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, D = Array.isArray(l) ? l : [l], L = D.length > 0, $ = {
|
|
2727
2731
|
padding: T,
|
|
2728
|
-
boundary: D.filter(
|
|
2732
|
+
boundary: D.filter(nl),
|
|
2729
2733
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2730
2734
|
altBoundary: L
|
|
2731
|
-
}, { refs: F, floatingStyles: K, placement: O, isPositioned: B, middlewareData: _ } =
|
|
2735
|
+
}, { refs: F, floatingStyles: K, placement: O, isPositioned: B, middlewareData: _ } = Bc({
|
|
2732
2736
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2733
2737
|
strategy: "fixed",
|
|
2734
|
-
placement:
|
|
2738
|
+
placement: M,
|
|
2735
2739
|
whileElementsMounted: (...ie) => Ic(...ie, {
|
|
2736
2740
|
animationFrame: g === "always"
|
|
2737
2741
|
}),
|
|
@@ -2739,30 +2743,30 @@ var Jn = "PopperContent", [Jc, Qc] = Er(Jn), Ir = d.forwardRef(
|
|
|
2739
2743
|
reference: v.anchor
|
|
2740
2744
|
},
|
|
2741
2745
|
middleware: [
|
|
2742
|
-
|
|
2743
|
-
c &&
|
|
2746
|
+
Uc({ mainAxis: r + x, alignmentAxis: a }),
|
|
2747
|
+
c && Hc({
|
|
2744
2748
|
mainAxis: !0,
|
|
2745
2749
|
crossAxis: !1,
|
|
2746
|
-
limiter: u === "partial" ?
|
|
2750
|
+
limiter: u === "partial" ? Kc() : void 0,
|
|
2747
2751
|
...$
|
|
2748
2752
|
}),
|
|
2749
|
-
c &&
|
|
2750
|
-
|
|
2753
|
+
c && Gc({ ...$ }),
|
|
2754
|
+
zc({
|
|
2751
2755
|
...$,
|
|
2752
2756
|
apply: ({ elements: ie, rects: me, availableWidth: Be, availableHeight: We }) => {
|
|
2753
2757
|
const { width: Ue, height: fn } = me.reference, te = ie.floating.style;
|
|
2754
2758
|
te.setProperty("--radix-popper-available-width", `${Be}px`), te.setProperty("--radix-popper-available-height", `${We}px`), te.setProperty("--radix-popper-anchor-width", `${Ue}px`), te.setProperty("--radix-popper-anchor-height", `${fn}px`);
|
|
2755
2759
|
}
|
|
2756
2760
|
}),
|
|
2757
|
-
S &&
|
|
2758
|
-
|
|
2759
|
-
m &&
|
|
2761
|
+
S && Yc({ element: S, padding: s }),
|
|
2762
|
+
ol({ arrowWidth: E, arrowHeight: x }),
|
|
2763
|
+
m && jc({ strategy: "referenceHidden", ...$ })
|
|
2760
2764
|
]
|
|
2761
|
-
}), [P, j] = _r(O), q =
|
|
2765
|
+
}), [P, j] = _r(O), q = Me(w);
|
|
2762
2766
|
oe(() => {
|
|
2763
2767
|
B && (q == null || q());
|
|
2764
2768
|
}, [B, q]);
|
|
2765
|
-
const ne = (
|
|
2769
|
+
const ne = (I = _.arrow) == null ? void 0 : I.x, ve = (W = _.arrow) == null ? void 0 : W.y, ue = ((G = _.arrow) == null ? void 0 : G.centerOffset) !== 0, [we, re] = d.useState();
|
|
2766
2770
|
return oe(() => {
|
|
2767
2771
|
y && re(window.getComputedStyle(y).zIndex);
|
|
2768
2772
|
}, [y]), /* @__PURE__ */ p(
|
|
@@ -2790,14 +2794,14 @@ var Jn = "PopperContent", [Jc, Qc] = Er(Jn), Ir = d.forwardRef(
|
|
|
2790
2794
|
},
|
|
2791
2795
|
dir: e.dir,
|
|
2792
2796
|
children: /* @__PURE__ */ p(
|
|
2793
|
-
|
|
2797
|
+
Qc,
|
|
2794
2798
|
{
|
|
2795
2799
|
scope: n,
|
|
2796
2800
|
placedSide: P,
|
|
2797
2801
|
onArrowChange: R,
|
|
2798
2802
|
arrowX: ne,
|
|
2799
2803
|
arrowY: ve,
|
|
2800
|
-
shouldHideArrow:
|
|
2804
|
+
shouldHideArrow: ue,
|
|
2801
2805
|
children: /* @__PURE__ */ p(
|
|
2802
2806
|
U.div,
|
|
2803
2807
|
{
|
|
@@ -2819,14 +2823,14 @@ var Jn = "PopperContent", [Jc, Qc] = Er(Jn), Ir = d.forwardRef(
|
|
|
2819
2823
|
);
|
|
2820
2824
|
}
|
|
2821
2825
|
);
|
|
2822
|
-
|
|
2823
|
-
var
|
|
2826
|
+
Mr.displayName = Jn;
|
|
2827
|
+
var Ir = "PopperArrow", tl = {
|
|
2824
2828
|
top: "bottom",
|
|
2825
2829
|
right: "left",
|
|
2826
2830
|
bottom: "top",
|
|
2827
2831
|
left: "right"
|
|
2828
2832
|
}, Nr = d.forwardRef(function(t, n) {
|
|
2829
|
-
const { __scopePopper: o, ...r } = t, i =
|
|
2833
|
+
const { __scopePopper: o, ...r } = t, i = el(Ir, o), a = tl[i.placedSide];
|
|
2830
2834
|
return (
|
|
2831
2835
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2832
2836
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -2855,7 +2859,7 @@ var Mr = "PopperArrow", el = {
|
|
|
2855
2859
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2856
2860
|
},
|
|
2857
2861
|
children: /* @__PURE__ */ p(
|
|
2858
|
-
|
|
2862
|
+
Zc,
|
|
2859
2863
|
{
|
|
2860
2864
|
...r,
|
|
2861
2865
|
ref: n,
|
|
@@ -2870,11 +2874,11 @@ var Mr = "PopperArrow", el = {
|
|
|
2870
2874
|
)
|
|
2871
2875
|
);
|
|
2872
2876
|
});
|
|
2873
|
-
Nr.displayName =
|
|
2874
|
-
function
|
|
2877
|
+
Nr.displayName = Ir;
|
|
2878
|
+
function nl(e) {
|
|
2875
2879
|
return e !== null;
|
|
2876
2880
|
}
|
|
2877
|
-
var
|
|
2881
|
+
var ol = (e) => ({
|
|
2878
2882
|
name: "transformOrigin",
|
|
2879
2883
|
options: e,
|
|
2880
2884
|
fn(t) {
|
|
@@ -2888,24 +2892,24 @@ function _r(e) {
|
|
|
2888
2892
|
const [t, n = "center"] = e.split("-");
|
|
2889
2893
|
return [t, n];
|
|
2890
2894
|
}
|
|
2891
|
-
var Or = Ar, Dr = Tr, kr =
|
|
2895
|
+
var Or = Ar, Dr = Tr, kr = Mr, Fr = Nr, rl = "Portal", Qn = d.forwardRef((e, t) => {
|
|
2892
2896
|
var s;
|
|
2893
2897
|
const { container: n, ...o } = e, [r, i] = d.useState(!1);
|
|
2894
2898
|
oe(() => i(!0), []);
|
|
2895
2899
|
const a = n || r && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
|
|
2896
2900
|
return a ? Ts.createPortal(/* @__PURE__ */ p(U.div, { ...o, ref: t }), a) : null;
|
|
2897
2901
|
});
|
|
2898
|
-
Qn.displayName =
|
|
2899
|
-
function
|
|
2902
|
+
Qn.displayName = rl;
|
|
2903
|
+
function il(e, t) {
|
|
2900
2904
|
return d.useReducer((n, o) => t[n][o] ?? n, e);
|
|
2901
2905
|
}
|
|
2902
2906
|
var st = (e) => {
|
|
2903
|
-
const { present: t, children: n } = e, o =
|
|
2907
|
+
const { present: t, children: n } = e, o = sl(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), i = Z(o.ref, al(r));
|
|
2904
2908
|
return typeof n == "function" || o.isPresent ? d.cloneElement(r, { ref: i }) : null;
|
|
2905
2909
|
};
|
|
2906
2910
|
st.displayName = "Presence";
|
|
2907
|
-
function
|
|
2908
|
-
const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, c] =
|
|
2911
|
+
function sl(e) {
|
|
2912
|
+
const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, c] = il(a, {
|
|
2909
2913
|
mounted: {
|
|
2910
2914
|
UNMOUNT: "unmounted",
|
|
2911
2915
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2956,19 +2960,19 @@ function il(e) {
|
|
|
2956
2960
|
function Pt(e) {
|
|
2957
2961
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
2958
2962
|
}
|
|
2959
|
-
function
|
|
2963
|
+
function al(e) {
|
|
2960
2964
|
var o, r;
|
|
2961
2965
|
let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2962
2966
|
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);
|
|
2963
2967
|
}
|
|
2964
|
-
var yn = "rovingFocusGroup.onEntryFocus",
|
|
2968
|
+
var yn = "rovingFocusGroup.onEntryFocus", cl = { bubbles: !1, cancelable: !0 }, Ct = "RovingFocusGroup", [Nn, Lr, ll] = Un(Ct), [ul, tn] = Xe(
|
|
2965
2969
|
Ct,
|
|
2966
|
-
[
|
|
2967
|
-
), [
|
|
2968
|
-
(e, t) => /* @__PURE__ */ p(Nn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Nn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(
|
|
2970
|
+
[ll]
|
|
2971
|
+
), [dl, fl] = ul(Ct), $r = d.forwardRef(
|
|
2972
|
+
(e, t) => /* @__PURE__ */ p(Nn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Nn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(pl, { ...e, ref: t }) }) })
|
|
2969
2973
|
);
|
|
2970
2974
|
$r.displayName = Ct;
|
|
2971
|
-
var
|
|
2975
|
+
var pl = d.forwardRef((e, t) => {
|
|
2972
2976
|
const {
|
|
2973
2977
|
__scopeRovingFocusGroup: n,
|
|
2974
2978
|
orientation: o,
|
|
@@ -2985,13 +2989,13 @@ var fl = d.forwardRef((e, t) => {
|
|
|
2985
2989
|
defaultProp: s ?? null,
|
|
2986
2990
|
onChange: c,
|
|
2987
2991
|
caller: Ct
|
|
2988
|
-
}), [y, C] = d.useState(!1), b =
|
|
2992
|
+
}), [y, C] = d.useState(!1), b = Me(l), S = Lr(n), R = d.useRef(!1), [A, E] = d.useState(0);
|
|
2989
2993
|
return d.useEffect(() => {
|
|
2990
2994
|
const x = m.current;
|
|
2991
2995
|
if (x)
|
|
2992
2996
|
return x.addEventListener(yn, b), () => x.removeEventListener(yn, b);
|
|
2993
2997
|
}, [b]), /* @__PURE__ */ p(
|
|
2994
|
-
|
|
2998
|
+
dl,
|
|
2995
2999
|
{
|
|
2996
3000
|
scope: n,
|
|
2997
3001
|
orientation: o,
|
|
@@ -3023,9 +3027,9 @@ var fl = d.forwardRef((e, t) => {
|
|
|
3023
3027
|
R.current = !0;
|
|
3024
3028
|
}),
|
|
3025
3029
|
onFocus: N(e.onFocus, (x) => {
|
|
3026
|
-
const
|
|
3027
|
-
if (x.target === x.currentTarget &&
|
|
3028
|
-
const T = new CustomEvent(yn,
|
|
3030
|
+
const M = !R.current;
|
|
3031
|
+
if (x.target === x.currentTarget && M && !y) {
|
|
3032
|
+
const T = new CustomEvent(yn, cl);
|
|
3029
3033
|
if (x.currentTarget.dispatchEvent(T), !T.defaultPrevented) {
|
|
3030
3034
|
const D = S().filter((O) => O.focusable), L = D.find((O) => O.active), $ = D.find((O) => O.id === h), K = [L, $, ...D].filter(
|
|
3031
3035
|
Boolean
|
|
@@ -3049,7 +3053,7 @@ var fl = d.forwardRef((e, t) => {
|
|
|
3049
3053
|
tabStopId: i,
|
|
3050
3054
|
children: a,
|
|
3051
3055
|
...s
|
|
3052
|
-
} = e, c = Ge(), l = i || c, f =
|
|
3056
|
+
} = e, c = Ge(), l = i || c, f = fl(Vr, n), u = f.currentTabStopId === l, m = Lr(n), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: h } = f;
|
|
3053
3057
|
return d.useEffect(() => {
|
|
3054
3058
|
if (o)
|
|
3055
3059
|
return g(), () => w();
|
|
@@ -3077,7 +3081,7 @@ var fl = d.forwardRef((e, t) => {
|
|
|
3077
3081
|
return;
|
|
3078
3082
|
}
|
|
3079
3083
|
if (v.target !== v.currentTarget) return;
|
|
3080
|
-
const y =
|
|
3084
|
+
const y = gl(v, f.orientation, f.dir);
|
|
3081
3085
|
if (y !== void 0) {
|
|
3082
3086
|
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
|
|
3083
3087
|
v.preventDefault();
|
|
@@ -3086,7 +3090,7 @@ var fl = d.forwardRef((e, t) => {
|
|
|
3086
3090
|
else if (y === "prev" || y === "next") {
|
|
3087
3091
|
y === "prev" && b.reverse();
|
|
3088
3092
|
const S = b.indexOf(v.currentTarget);
|
|
3089
|
-
b = f.loop ?
|
|
3093
|
+
b = f.loop ? vl(b, S + 1) : b.slice(S + 1);
|
|
3090
3094
|
}
|
|
3091
3095
|
setTimeout(() => Wr(b));
|
|
3092
3096
|
}
|
|
@@ -3099,7 +3103,7 @@ var fl = d.forwardRef((e, t) => {
|
|
|
3099
3103
|
}
|
|
3100
3104
|
);
|
|
3101
3105
|
Br.displayName = Vr;
|
|
3102
|
-
var
|
|
3106
|
+
var ml = {
|
|
3103
3107
|
ArrowLeft: "prev",
|
|
3104
3108
|
ArrowUp: "prev",
|
|
3105
3109
|
ArrowRight: "next",
|
|
@@ -3109,30 +3113,30 @@ var pl = {
|
|
|
3109
3113
|
PageDown: "last",
|
|
3110
3114
|
End: "last"
|
|
3111
3115
|
};
|
|
3112
|
-
function
|
|
3116
|
+
function hl(e, t) {
|
|
3113
3117
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
3114
3118
|
}
|
|
3115
|
-
function
|
|
3116
|
-
const o =
|
|
3119
|
+
function gl(e, t, n) {
|
|
3120
|
+
const o = hl(e.key, n);
|
|
3117
3121
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
3118
|
-
return
|
|
3122
|
+
return ml[o];
|
|
3119
3123
|
}
|
|
3120
3124
|
function Wr(e, t = !1) {
|
|
3121
3125
|
const n = document.activeElement;
|
|
3122
3126
|
for (const o of e)
|
|
3123
3127
|
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
3124
3128
|
}
|
|
3125
|
-
function
|
|
3129
|
+
function vl(e, t) {
|
|
3126
3130
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
3127
3131
|
}
|
|
3128
|
-
var Ur = $r, Hr = Br,
|
|
3132
|
+
var Ur = $r, Hr = Br, wl = function(e) {
|
|
3129
3133
|
if (typeof document > "u")
|
|
3130
3134
|
return null;
|
|
3131
3135
|
var t = Array.isArray(e) ? e[0] : e;
|
|
3132
3136
|
return t.ownerDocument.body;
|
|
3133
|
-
}, Je = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(),
|
|
3137
|
+
}, Je = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Mt = {}, bn = 0, Kr = function(e) {
|
|
3134
3138
|
return e && (e.host || Kr(e.parentNode));
|
|
3135
|
-
},
|
|
3139
|
+
}, yl = function(e, t) {
|
|
3136
3140
|
return t.map(function(n) {
|
|
3137
3141
|
if (e.contains(n))
|
|
3138
3142
|
return n;
|
|
@@ -3141,10 +3145,10 @@ var Ur = $r, Hr = Br, vl = function(e) {
|
|
|
3141
3145
|
}).filter(function(n) {
|
|
3142
3146
|
return !!n;
|
|
3143
3147
|
});
|
|
3144
|
-
},
|
|
3145
|
-
var r =
|
|
3146
|
-
|
|
3147
|
-
var i =
|
|
3148
|
+
}, bl = function(e, t, n, o) {
|
|
3149
|
+
var r = yl(t, Array.isArray(e) ? e : [e]);
|
|
3150
|
+
Mt[n] || (Mt[n] = /* @__PURE__ */ new WeakMap());
|
|
3151
|
+
var i = Mt[n], a = [], s = /* @__PURE__ */ new Set(), c = new Set(r), l = function(u) {
|
|
3148
3152
|
!u || s.has(u) || (s.add(u), l(u.parentNode));
|
|
3149
3153
|
};
|
|
3150
3154
|
r.forEach(l);
|
|
@@ -3165,12 +3169,12 @@ var Ur = $r, Hr = Br, vl = function(e) {
|
|
|
3165
3169
|
a.forEach(function(u) {
|
|
3166
3170
|
var m = Je.get(u) - 1, g = i.get(u) - 1;
|
|
3167
3171
|
Je.set(u, m), i.set(u, g), m || (Tt.has(u) || u.removeAttribute(o), Tt.delete(u)), g || u.removeAttribute(n);
|
|
3168
|
-
}), bn--, bn || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(),
|
|
3172
|
+
}), bn--, bn || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Mt = {});
|
|
3169
3173
|
};
|
|
3170
3174
|
}, Gr = function(e, t, n) {
|
|
3171
3175
|
n === void 0 && (n = "data-aria-hidden");
|
|
3172
|
-
var o = Array.from(Array.isArray(e) ? e : [e]), r =
|
|
3173
|
-
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))),
|
|
3176
|
+
var o = Array.from(Array.isArray(e) ? e : [e]), r = wl(e);
|
|
3177
|
+
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), bl(o, r, n, "aria-hidden")) : function() {
|
|
3174
3178
|
return null;
|
|
3175
3179
|
};
|
|
3176
3180
|
}, Ee = function() {
|
|
@@ -3190,16 +3194,16 @@ function zr(e, t) {
|
|
|
3190
3194
|
t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
|
|
3191
3195
|
return n;
|
|
3192
3196
|
}
|
|
3193
|
-
function
|
|
3197
|
+
function Cl(e, t, n) {
|
|
3194
3198
|
if (n || arguments.length === 2) for (var o = 0, r = t.length, i; o < r; o++)
|
|
3195
3199
|
(i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
|
|
3196
3200
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
3197
3201
|
}
|
|
3198
|
-
var Lt = "right-scroll-bar-position", $t = "width-before-scroll-bar",
|
|
3202
|
+
var Lt = "right-scroll-bar-position", $t = "width-before-scroll-bar", Sl = "with-scroll-bars-hidden", xl = "--removed-body-scroll-bar-size";
|
|
3199
3203
|
function Cn(e, t) {
|
|
3200
3204
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3201
3205
|
}
|
|
3202
|
-
function
|
|
3206
|
+
function El(e, t) {
|
|
3203
3207
|
var n = ae(function() {
|
|
3204
3208
|
return {
|
|
3205
3209
|
// value
|
|
@@ -3220,14 +3224,14 @@ function xl(e, t) {
|
|
|
3220
3224
|
})[0];
|
|
3221
3225
|
return n.callback = t, n.facade;
|
|
3222
3226
|
}
|
|
3223
|
-
var
|
|
3224
|
-
function
|
|
3225
|
-
var n =
|
|
3227
|
+
var Rl = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Go = /* @__PURE__ */ new WeakMap();
|
|
3228
|
+
function Al(e, t) {
|
|
3229
|
+
var n = El(null, function(o) {
|
|
3226
3230
|
return e.forEach(function(r) {
|
|
3227
3231
|
return Cn(r, o);
|
|
3228
3232
|
});
|
|
3229
3233
|
});
|
|
3230
|
-
return
|
|
3234
|
+
return Rl(function() {
|
|
3231
3235
|
var o = Go.get(n);
|
|
3232
3236
|
if (o) {
|
|
3233
3237
|
var r = new Set(o), i = new Set(e), a = n.current;
|
|
@@ -3240,11 +3244,11 @@ function Rl(e, t) {
|
|
|
3240
3244
|
Go.set(n, e);
|
|
3241
3245
|
}, [e]), n;
|
|
3242
3246
|
}
|
|
3243
|
-
function
|
|
3247
|
+
function Pl(e) {
|
|
3244
3248
|
return e;
|
|
3245
3249
|
}
|
|
3246
|
-
function
|
|
3247
|
-
t === void 0 && (t =
|
|
3250
|
+
function Tl(e, t) {
|
|
3251
|
+
t === void 0 && (t = Pl);
|
|
3248
3252
|
var n = [], o = !1, r = {
|
|
3249
3253
|
read: function() {
|
|
3250
3254
|
if (o)
|
|
@@ -3298,9 +3302,9 @@ function Pl(e, t) {
|
|
|
3298
3302
|
};
|
|
3299
3303
|
return r;
|
|
3300
3304
|
}
|
|
3301
|
-
function
|
|
3305
|
+
function Ml(e) {
|
|
3302
3306
|
e === void 0 && (e = {});
|
|
3303
|
-
var t =
|
|
3307
|
+
var t = Tl(null);
|
|
3304
3308
|
return t.options = Ee({ async: !0, ssr: !1 }, e), t;
|
|
3305
3309
|
}
|
|
3306
3310
|
var jr = function(e) {
|
|
@@ -3316,13 +3320,13 @@ jr.isSideCarExport = !0;
|
|
|
3316
3320
|
function Il(e, t) {
|
|
3317
3321
|
return e.useMedium(t), jr;
|
|
3318
3322
|
}
|
|
3319
|
-
var Yr =
|
|
3323
|
+
var Yr = Ml(), Sn = function() {
|
|
3320
3324
|
}, nn = d.forwardRef(function(e, t) {
|
|
3321
3325
|
var n = d.useRef(null), o = d.useState({
|
|
3322
3326
|
onScrollCapture: Sn,
|
|
3323
3327
|
onWheelCapture: Sn,
|
|
3324
3328
|
onTouchMoveCapture: Sn
|
|
3325
|
-
}), r = o[0], i = o[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, m = e.sideCar, g = e.noRelative, w = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, C = y === void 0 ? "div" : y, b = e.gapMode, S = zr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, A =
|
|
3329
|
+
}), r = o[0], i = o[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, m = e.sideCar, g = e.noRelative, w = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, C = y === void 0 ? "div" : y, b = e.gapMode, S = zr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, A = Al([n, t]), E = Ee(Ee({}, S), r);
|
|
3326
3330
|
return d.createElement(
|
|
3327
3331
|
d.Fragment,
|
|
3328
3332
|
null,
|
|
@@ -3339,37 +3343,37 @@ nn.classNames = {
|
|
|
3339
3343
|
fullWidth: $t,
|
|
3340
3344
|
zeroRight: Lt
|
|
3341
3345
|
};
|
|
3342
|
-
var
|
|
3346
|
+
var Nl = function() {
|
|
3343
3347
|
if (typeof __webpack_nonce__ < "u")
|
|
3344
3348
|
return __webpack_nonce__;
|
|
3345
3349
|
};
|
|
3346
|
-
function
|
|
3350
|
+
function _l() {
|
|
3347
3351
|
if (!document)
|
|
3348
3352
|
return null;
|
|
3349
3353
|
var e = document.createElement("style");
|
|
3350
3354
|
e.type = "text/css";
|
|
3351
|
-
var t =
|
|
3355
|
+
var t = Nl();
|
|
3352
3356
|
return t && e.setAttribute("nonce", t), e;
|
|
3353
3357
|
}
|
|
3354
|
-
function
|
|
3358
|
+
function Ol(e, t) {
|
|
3355
3359
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
3356
3360
|
}
|
|
3357
|
-
function
|
|
3361
|
+
function Dl(e) {
|
|
3358
3362
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
3359
3363
|
t.appendChild(e);
|
|
3360
3364
|
}
|
|
3361
|
-
var
|
|
3365
|
+
var kl = function() {
|
|
3362
3366
|
var e = 0, t = null;
|
|
3363
3367
|
return {
|
|
3364
3368
|
add: function(n) {
|
|
3365
|
-
e == 0 && (t =
|
|
3369
|
+
e == 0 && (t = _l()) && (Ol(t, n), Dl(t)), e++;
|
|
3366
3370
|
},
|
|
3367
3371
|
remove: function() {
|
|
3368
3372
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
3369
3373
|
}
|
|
3370
3374
|
};
|
|
3371
|
-
},
|
|
3372
|
-
var e =
|
|
3375
|
+
}, Fl = function() {
|
|
3376
|
+
var e = kl();
|
|
3373
3377
|
return function(t, n) {
|
|
3374
3378
|
d.useEffect(function() {
|
|
3375
3379
|
return e.add(t), function() {
|
|
@@ -3378,35 +3382,35 @@ var Dl = function() {
|
|
|
3378
3382
|
}, [t && n]);
|
|
3379
3383
|
};
|
|
3380
3384
|
}, Xr = function() {
|
|
3381
|
-
var e =
|
|
3385
|
+
var e = Fl(), t = function(n) {
|
|
3382
3386
|
var o = n.styles, r = n.dynamic;
|
|
3383
3387
|
return e(o, r), null;
|
|
3384
3388
|
};
|
|
3385
3389
|
return t;
|
|
3386
|
-
},
|
|
3390
|
+
}, Ll = {
|
|
3387
3391
|
left: 0,
|
|
3388
3392
|
top: 0,
|
|
3389
3393
|
right: 0,
|
|
3390
3394
|
gap: 0
|
|
3391
3395
|
}, xn = function(e) {
|
|
3392
3396
|
return parseInt(e || "", 10) || 0;
|
|
3393
|
-
},
|
|
3397
|
+
}, $l = function(e) {
|
|
3394
3398
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3395
3399
|
return [xn(n), xn(o), xn(r)];
|
|
3396
|
-
},
|
|
3400
|
+
}, Vl = function(e) {
|
|
3397
3401
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
3398
|
-
return
|
|
3399
|
-
var t =
|
|
3402
|
+
return Ll;
|
|
3403
|
+
var t = $l(e), n = document.documentElement.clientWidth, o = window.innerWidth;
|
|
3400
3404
|
return {
|
|
3401
3405
|
left: t[0],
|
|
3402
3406
|
top: t[1],
|
|
3403
3407
|
right: t[2],
|
|
3404
3408
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
3405
3409
|
};
|
|
3406
|
-
},
|
|
3410
|
+
}, Bl = Xr(), nt = "data-scroll-locked", Wl = function(e, t, n, o) {
|
|
3407
3411
|
var r = e.left, i = e.top, a = e.right, s = e.gap;
|
|
3408
3412
|
return n === void 0 && (n = "margin"), `
|
|
3409
|
-
.`.concat(
|
|
3413
|
+
.`.concat(Sl, ` {
|
|
3410
3414
|
overflow: hidden `).concat(o, `;
|
|
3411
3415
|
padding-right: `).concat(s, "px ").concat(o, `;
|
|
3412
3416
|
}
|
|
@@ -3444,39 +3448,39 @@ var Dl = function() {
|
|
|
3444
3448
|
}
|
|
3445
3449
|
|
|
3446
3450
|
body[`).concat(nt, `] {
|
|
3447
|
-
`).concat(
|
|
3451
|
+
`).concat(xl, ": ").concat(s, `px;
|
|
3448
3452
|
}
|
|
3449
3453
|
`);
|
|
3450
3454
|
}, zo = function() {
|
|
3451
3455
|
var e = parseInt(document.body.getAttribute(nt) || "0", 10);
|
|
3452
3456
|
return isFinite(e) ? e : 0;
|
|
3453
|
-
},
|
|
3457
|
+
}, Ul = function() {
|
|
3454
3458
|
d.useEffect(function() {
|
|
3455
3459
|
return document.body.setAttribute(nt, (zo() + 1).toString()), function() {
|
|
3456
3460
|
var e = zo() - 1;
|
|
3457
3461
|
e <= 0 ? document.body.removeAttribute(nt) : document.body.setAttribute(nt, e.toString());
|
|
3458
3462
|
};
|
|
3459
3463
|
}, []);
|
|
3460
|
-
},
|
|
3464
|
+
}, Hl = function(e) {
|
|
3461
3465
|
var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o;
|
|
3462
|
-
|
|
3466
|
+
Ul();
|
|
3463
3467
|
var i = d.useMemo(function() {
|
|
3464
|
-
return
|
|
3468
|
+
return Vl(r);
|
|
3465
3469
|
}, [r]);
|
|
3466
|
-
return d.createElement(
|
|
3470
|
+
return d.createElement(Bl, { styles: Wl(i, !t, r, n ? "" : "!important") });
|
|
3467
3471
|
}, _n = !1;
|
|
3468
3472
|
if (typeof window < "u")
|
|
3469
3473
|
try {
|
|
3470
|
-
var
|
|
3474
|
+
var It = Object.defineProperty({}, "passive", {
|
|
3471
3475
|
get: function() {
|
|
3472
3476
|
return _n = !0, !0;
|
|
3473
3477
|
}
|
|
3474
3478
|
});
|
|
3475
|
-
window.addEventListener("test",
|
|
3479
|
+
window.addEventListener("test", It, It), window.removeEventListener("test", It, It);
|
|
3476
3480
|
} catch {
|
|
3477
3481
|
_n = !1;
|
|
3478
3482
|
}
|
|
3479
|
-
var Qe = _n ? { passive: !1 } : !1,
|
|
3483
|
+
var Qe = _n ? { passive: !1 } : !1, Kl = function(e) {
|
|
3480
3484
|
return e.tagName === "TEXTAREA";
|
|
3481
3485
|
}, Zr = function(e, t) {
|
|
3482
3486
|
if (!(e instanceof Element))
|
|
@@ -3485,11 +3489,11 @@ var Qe = _n ? { passive: !1 } : !1, Hl = function(e) {
|
|
|
3485
3489
|
return (
|
|
3486
3490
|
// not-not-scrollable
|
|
3487
3491
|
n[t] !== "hidden" && // contains scroll inside self
|
|
3488
|
-
!(n.overflowY === n.overflowX && !
|
|
3492
|
+
!(n.overflowY === n.overflowX && !Kl(e) && n[t] === "visible")
|
|
3489
3493
|
);
|
|
3490
|
-
}, Kl = function(e) {
|
|
3491
|
-
return Zr(e, "overflowY");
|
|
3492
3494
|
}, Gl = function(e) {
|
|
3495
|
+
return Zr(e, "overflowY");
|
|
3496
|
+
}, zl = function(e) {
|
|
3493
3497
|
return Zr(e, "overflowX");
|
|
3494
3498
|
}, jo = function(e, t) {
|
|
3495
3499
|
var n = t.ownerDocument, o = t;
|
|
@@ -3504,14 +3508,14 @@ var Qe = _n ? { passive: !1 } : !1, Hl = function(e) {
|
|
|
3504
3508
|
o = o.parentNode;
|
|
3505
3509
|
} while (o && o !== n.body);
|
|
3506
3510
|
return !1;
|
|
3507
|
-
},
|
|
3511
|
+
}, jl = function(e) {
|
|
3508
3512
|
var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
|
|
3509
3513
|
return [
|
|
3510
3514
|
t,
|
|
3511
3515
|
n,
|
|
3512
3516
|
o
|
|
3513
3517
|
];
|
|
3514
|
-
},
|
|
3518
|
+
}, Yl = function(e) {
|
|
3515
3519
|
var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
|
|
3516
3520
|
return [
|
|
3517
3521
|
t,
|
|
@@ -3519,13 +3523,13 @@ var Qe = _n ? { passive: !1 } : !1, Hl = function(e) {
|
|
|
3519
3523
|
o
|
|
3520
3524
|
];
|
|
3521
3525
|
}, qr = function(e, t) {
|
|
3522
|
-
return e === "v" ?
|
|
3526
|
+
return e === "v" ? Gl(t) : zl(t);
|
|
3523
3527
|
}, Jr = function(e, t) {
|
|
3524
|
-
return e === "v" ?
|
|
3525
|
-
},
|
|
3528
|
+
return e === "v" ? jl(t) : Yl(t);
|
|
3529
|
+
}, Xl = function(e, t) {
|
|
3526
3530
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3527
|
-
},
|
|
3528
|
-
var i =
|
|
3531
|
+
}, Zl = function(e, t, n, o, r) {
|
|
3532
|
+
var i = Xl(e, window.getComputedStyle(t).direction), a = i * o, s = n.target, c = t.contains(s), l = !1, f = a > 0, u = 0, m = 0;
|
|
3529
3533
|
do {
|
|
3530
3534
|
if (!s)
|
|
3531
3535
|
break;
|
|
@@ -3545,22 +3549,22 @@ var Qe = _n ? { passive: !1 } : !1, Hl = function(e) {
|
|
|
3545
3549
|
return [e.deltaX, e.deltaY];
|
|
3546
3550
|
}, Xo = function(e) {
|
|
3547
3551
|
return e && "current" in e ? e.current : e;
|
|
3548
|
-
},
|
|
3552
|
+
}, ql = function(e, t) {
|
|
3549
3553
|
return e[0] === t[0] && e[1] === t[1];
|
|
3550
|
-
},
|
|
3554
|
+
}, Jl = function(e) {
|
|
3551
3555
|
return `
|
|
3552
3556
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
3553
3557
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
3554
3558
|
`);
|
|
3555
|
-
},
|
|
3556
|
-
function
|
|
3557
|
-
var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(
|
|
3559
|
+
}, Ql = 0, et = [];
|
|
3560
|
+
function eu(e) {
|
|
3561
|
+
var t = d.useRef([]), n = d.useRef([0, 0]), o = d.useRef(), r = d.useState(Ql++)[0], i = d.useState(Xr)[0], a = d.useRef(e);
|
|
3558
3562
|
d.useEffect(function() {
|
|
3559
3563
|
a.current = e;
|
|
3560
3564
|
}, [e]), d.useEffect(function() {
|
|
3561
3565
|
if (e.inert) {
|
|
3562
3566
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
3563
|
-
var h =
|
|
3567
|
+
var h = Cl([e.lockRef.current], (e.shards || []).map(Xo), !0).filter(Boolean);
|
|
3564
3568
|
return h.forEach(function(v) {
|
|
3565
3569
|
return v.classList.add("allow-interactivity-".concat(r));
|
|
3566
3570
|
}), function() {
|
|
@@ -3576,7 +3580,7 @@ function Ql(e) {
|
|
|
3576
3580
|
var y = Nt(h), C = n.current, b = "deltaX" in h ? h.deltaX : C[0] - y[0], S = "deltaY" in h ? h.deltaY : C[1] - y[1], R, A = h.target, E = Math.abs(b) > Math.abs(S) ? "h" : "v";
|
|
3577
3581
|
if ("touches" in h && E === "h" && A.type === "range")
|
|
3578
3582
|
return !1;
|
|
3579
|
-
var x = window.getSelection(),
|
|
3583
|
+
var x = window.getSelection(), M = x && x.anchorNode, T = M ? M === A || M.contains(A) : !1;
|
|
3580
3584
|
if (T)
|
|
3581
3585
|
return !1;
|
|
3582
3586
|
var D = jo(E, A);
|
|
@@ -3587,12 +3591,12 @@ function Ql(e) {
|
|
|
3587
3591
|
if (!o.current && "changedTouches" in h && (b || S) && (o.current = R), !R)
|
|
3588
3592
|
return !0;
|
|
3589
3593
|
var L = o.current || R;
|
|
3590
|
-
return
|
|
3594
|
+
return Zl(L, v, h, L === "h" ? b : S);
|
|
3591
3595
|
}, []), c = d.useCallback(function(h) {
|
|
3592
3596
|
var v = h;
|
|
3593
3597
|
if (!(!et.length || et[et.length - 1] !== i)) {
|
|
3594
3598
|
var y = "deltaY" in v ? Yo(v) : Nt(v), C = t.current.filter(function(R) {
|
|
3595
|
-
return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) &&
|
|
3599
|
+
return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && ql(R.delta, y);
|
|
3596
3600
|
})[0];
|
|
3597
3601
|
if (C && C.should) {
|
|
3598
3602
|
v.cancelable && v.preventDefault();
|
|
@@ -3606,7 +3610,7 @@ function Ql(e) {
|
|
|
3606
3610
|
}
|
|
3607
3611
|
}
|
|
3608
3612
|
}, []), l = d.useCallback(function(h, v, y, C) {
|
|
3609
|
-
var b = { name: h, delta: v, target: y, should: C, shadowParent:
|
|
3613
|
+
var b = { name: h, delta: v, target: y, should: C, shadowParent: tu(y) };
|
|
3610
3614
|
t.current.push(b), setTimeout(function() {
|
|
3611
3615
|
t.current = t.current.filter(function(S) {
|
|
3612
3616
|
return S !== b;
|
|
@@ -3634,32 +3638,32 @@ function Ql(e) {
|
|
|
3634
3638
|
return d.createElement(
|
|
3635
3639
|
d.Fragment,
|
|
3636
3640
|
null,
|
|
3637
|
-
w ? d.createElement(i, { styles:
|
|
3638
|
-
g ? d.createElement(
|
|
3641
|
+
w ? d.createElement(i, { styles: Jl(r) }) : null,
|
|
3642
|
+
g ? d.createElement(Hl, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
3639
3643
|
);
|
|
3640
3644
|
}
|
|
3641
|
-
function
|
|
3645
|
+
function tu(e) {
|
|
3642
3646
|
for (var t = null; e !== null; )
|
|
3643
3647
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3644
3648
|
return t;
|
|
3645
3649
|
}
|
|
3646
|
-
const
|
|
3650
|
+
const nu = Il(Yr, eu);
|
|
3647
3651
|
var eo = d.forwardRef(function(e, t) {
|
|
3648
|
-
return d.createElement(nn, Ee({}, e, { ref: t, sideCar:
|
|
3652
|
+
return d.createElement(nn, Ee({}, e, { ref: t, sideCar: nu }));
|
|
3649
3653
|
});
|
|
3650
3654
|
eo.classNames = nn.classNames;
|
|
3651
|
-
var On = ["Enter", " "],
|
|
3655
|
+
var On = ["Enter", " "], ou = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp", "PageDown", "End"], ru = [...ou, ...Qr], iu = {
|
|
3652
3656
|
ltr: [...On, "ArrowRight"],
|
|
3653
3657
|
rtl: [...On, "ArrowLeft"]
|
|
3654
|
-
},
|
|
3658
|
+
}, su = {
|
|
3655
3659
|
ltr: ["ArrowLeft"],
|
|
3656
3660
|
rtl: ["ArrowRight"]
|
|
3657
|
-
}, St = "Menu", [wt,
|
|
3658
|
-
|
|
3661
|
+
}, St = "Menu", [wt, au, cu] = Un(St), [Ze, ei] = Xe(St, [
|
|
3662
|
+
cu,
|
|
3659
3663
|
en,
|
|
3660
3664
|
tn
|
|
3661
|
-
]), on = en(), ti = tn(), [
|
|
3662
|
-
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = on(t), [c, l] = d.useState(null), f = d.useRef(!1), u =
|
|
3665
|
+
]), on = en(), ti = tn(), [lu, qe] = Ze(St), [uu, xt] = Ze(St), ni = (e) => {
|
|
3666
|
+
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = on(t), [c, l] = d.useState(null), f = d.useRef(!1), u = Me(i), m = Xt(r);
|
|
3663
3667
|
return d.useEffect(() => {
|
|
3664
3668
|
const g = () => {
|
|
3665
3669
|
f.current = !0, document.addEventListener("pointerdown", w, { capture: !0, once: !0 }), document.addEventListener("pointermove", w, { capture: !0, once: !0 });
|
|
@@ -3668,7 +3672,7 @@ var On = ["Enter", " "], nu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
|
|
|
3668
3672
|
document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
|
|
3669
3673
|
};
|
|
3670
3674
|
}, []), /* @__PURE__ */ p(Or, { ...s, children: /* @__PURE__ */ p(
|
|
3671
|
-
|
|
3675
|
+
lu,
|
|
3672
3676
|
{
|
|
3673
3677
|
scope: t,
|
|
3674
3678
|
open: n,
|
|
@@ -3676,7 +3680,7 @@ var On = ["Enter", " "], nu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
|
|
|
3676
3680
|
content: c,
|
|
3677
3681
|
onContentChange: l,
|
|
3678
3682
|
children: /* @__PURE__ */ p(
|
|
3679
|
-
|
|
3683
|
+
uu,
|
|
3680
3684
|
{
|
|
3681
3685
|
scope: t,
|
|
3682
3686
|
onClose: d.useCallback(() => u(!1), [u]),
|
|
@@ -3690,26 +3694,26 @@ var On = ["Enter", " "], nu = ["ArrowDown", "PageUp", "Home"], Qr = ["ArrowUp",
|
|
|
3690
3694
|
) });
|
|
3691
3695
|
};
|
|
3692
3696
|
ni.displayName = St;
|
|
3693
|
-
var
|
|
3697
|
+
var du = "MenuAnchor", to = d.forwardRef(
|
|
3694
3698
|
(e, t) => {
|
|
3695
3699
|
const { __scopeMenu: n, ...o } = e, r = on(n);
|
|
3696
3700
|
return /* @__PURE__ */ p(Dr, { ...r, ...o, ref: t });
|
|
3697
3701
|
}
|
|
3698
3702
|
);
|
|
3699
|
-
to.displayName =
|
|
3700
|
-
var no = "MenuPortal", [
|
|
3703
|
+
to.displayName = du;
|
|
3704
|
+
var no = "MenuPortal", [fu, oi] = Ze(no, {
|
|
3701
3705
|
forceMount: void 0
|
|
3702
3706
|
}), ri = (e) => {
|
|
3703
3707
|
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = qe(no, t);
|
|
3704
|
-
return /* @__PURE__ */ p(
|
|
3708
|
+
return /* @__PURE__ */ p(fu, { scope: t, forceMount: n, children: /* @__PURE__ */ p(st, { present: n || i.open, children: /* @__PURE__ */ p(Qn, { asChild: !0, container: r, children: o }) }) });
|
|
3705
3709
|
};
|
|
3706
3710
|
ri.displayName = no;
|
|
3707
|
-
var ge = "MenuContent", [
|
|
3711
|
+
var ge = "MenuContent", [pu, oo] = Ze(ge), ii = d.forwardRef(
|
|
3708
3712
|
(e, t) => {
|
|
3709
3713
|
const n = oi(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = qe(ge, e.__scopeMenu), a = xt(ge, e.__scopeMenu);
|
|
3710
|
-
return /* @__PURE__ */ p(wt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(wt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(
|
|
3714
|
+
return /* @__PURE__ */ p(wt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(st, { present: o || i.open, children: /* @__PURE__ */ p(wt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(mu, { ...r, ref: t }) : /* @__PURE__ */ p(hu, { ...r, ref: t }) }) }) });
|
|
3711
3715
|
}
|
|
3712
|
-
),
|
|
3716
|
+
), mu = d.forwardRef(
|
|
3713
3717
|
(e, t) => {
|
|
3714
3718
|
const n = qe(ge, e.__scopeMenu), o = d.useRef(null), r = Z(t, o);
|
|
3715
3719
|
return d.useEffect(() => {
|
|
@@ -3732,7 +3736,7 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
|
|
|
3732
3736
|
}
|
|
3733
3737
|
);
|
|
3734
3738
|
}
|
|
3735
|
-
),
|
|
3739
|
+
), hu = d.forwardRef((e, t) => {
|
|
3736
3740
|
const n = qe(ge, e.__scopeMenu);
|
|
3737
3741
|
return /* @__PURE__ */ p(
|
|
3738
3742
|
ro,
|
|
@@ -3745,7 +3749,7 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
|
|
|
3745
3749
|
onDismiss: () => n.onOpenChange(!1)
|
|
3746
3750
|
}
|
|
3747
3751
|
);
|
|
3748
|
-
}),
|
|
3752
|
+
}), gu = /* @__PURE__ */ ht("MenuContent.ScrollLock"), ro = d.forwardRef(
|
|
3749
3753
|
(e, t) => {
|
|
3750
3754
|
const {
|
|
3751
3755
|
__scopeMenu: n,
|
|
@@ -3762,20 +3766,20 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
|
|
|
3762
3766
|
onDismiss: g,
|
|
3763
3767
|
disableOutsideScroll: w,
|
|
3764
3768
|
...h
|
|
3765
|
-
} = e, v = qe(ge, n), y = xt(ge, n), C = on(n), b = ti(n), S =
|
|
3766
|
-
var
|
|
3767
|
-
const j = T.current + P, q = S().filter((G) => !G.disabled), ne = document.activeElement, ve = (
|
|
3769
|
+
} = e, v = qe(ge, n), y = xt(ge, n), C = on(n), b = ti(n), S = au(n), [R, A] = d.useState(null), E = d.useRef(null), x = Z(t, E, v.onContentChange), M = d.useRef(0), T = d.useRef(""), D = d.useRef(0), L = d.useRef(null), $ = d.useRef("right"), F = d.useRef(0), K = w ? eo : d.Fragment, O = w ? { as: gu, allowPinchZoom: !0 } : void 0, B = (P) => {
|
|
3770
|
+
var I, W;
|
|
3771
|
+
const j = T.current + P, q = S().filter((G) => !G.disabled), ne = document.activeElement, ve = (I = q.find((G) => G.ref.current === ne)) == null ? void 0 : I.textValue, ue = q.map((G) => G.textValue), we = Tu(ue, j, ve), re = (W = q.find((G) => G.textValue === we)) == null ? void 0 : W.ref.current;
|
|
3768
3772
|
(function G(H) {
|
|
3769
|
-
T.current = H, window.clearTimeout(
|
|
3773
|
+
T.current = H, window.clearTimeout(M.current), H !== "" && (M.current = window.setTimeout(() => G(""), 1e3));
|
|
3770
3774
|
})(j), re && setTimeout(() => re.focus());
|
|
3771
3775
|
};
|
|
3772
|
-
d.useEffect(() => () => window.clearTimeout(
|
|
3776
|
+
d.useEffect(() => () => window.clearTimeout(M.current), []), ur();
|
|
3773
3777
|
const _ = d.useCallback((P) => {
|
|
3774
3778
|
var q, ne;
|
|
3775
3779
|
return $.current === ((q = L.current) == null ? void 0 : q.side) && Iu(P, (ne = L.current) == null ? void 0 : ne.area);
|
|
3776
3780
|
}, []);
|
|
3777
3781
|
return /* @__PURE__ */ p(
|
|
3778
|
-
|
|
3782
|
+
pu,
|
|
3779
3783
|
{
|
|
3780
3784
|
scope: n,
|
|
3781
3785
|
searchRef: T,
|
|
@@ -3851,14 +3855,14 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
|
|
|
3851
3855
|
onKeyDown: N(h.onKeyDown, (P) => {
|
|
3852
3856
|
const q = P.target.closest("[data-radix-menu-content]") === P.currentTarget, ne = P.ctrlKey || P.altKey || P.metaKey, ve = P.key.length === 1;
|
|
3853
3857
|
q && (P.key === "Tab" && P.preventDefault(), !ne && ve && B(P.key));
|
|
3854
|
-
const
|
|
3855
|
-
if (P.target !==
|
|
3858
|
+
const ue = E.current;
|
|
3859
|
+
if (P.target !== ue || !ru.includes(P.key)) return;
|
|
3856
3860
|
P.preventDefault();
|
|
3857
|
-
const re = S().filter((
|
|
3858
|
-
Qr.includes(P.key) && re.reverse(),
|
|
3861
|
+
const re = S().filter((I) => !I.disabled).map((I) => I.ref.current);
|
|
3862
|
+
Qr.includes(P.key) && re.reverse(), Au(re);
|
|
3859
3863
|
}),
|
|
3860
3864
|
onBlur: N(e.onBlur, (P) => {
|
|
3861
|
-
P.currentTarget.contains(P.target) || (window.clearTimeout(
|
|
3865
|
+
P.currentTarget.contains(P.target) || (window.clearTimeout(M.current), T.current = "");
|
|
3862
3866
|
}),
|
|
3863
3867
|
onPointerMove: N(
|
|
3864
3868
|
e.onPointerMove,
|
|
@@ -3883,20 +3887,20 @@ var ge = "MenuContent", [fu, oo] = Ze(ge), ii = d.forwardRef(
|
|
|
3883
3887
|
}
|
|
3884
3888
|
);
|
|
3885
3889
|
ii.displayName = ge;
|
|
3886
|
-
var
|
|
3890
|
+
var vu = "MenuGroup", io = d.forwardRef(
|
|
3887
3891
|
(e, t) => {
|
|
3888
3892
|
const { __scopeMenu: n, ...o } = e;
|
|
3889
3893
|
return /* @__PURE__ */ p(U.div, { role: "group", ...o, ref: t });
|
|
3890
3894
|
}
|
|
3891
3895
|
);
|
|
3892
|
-
io.displayName =
|
|
3893
|
-
var
|
|
3896
|
+
io.displayName = vu;
|
|
3897
|
+
var wu = "MenuLabel", si = d.forwardRef(
|
|
3894
3898
|
(e, t) => {
|
|
3895
3899
|
const { __scopeMenu: n, ...o } = e;
|
|
3896
3900
|
return /* @__PURE__ */ p(U.div, { ...o, ref: t });
|
|
3897
3901
|
}
|
|
3898
3902
|
);
|
|
3899
|
-
si.displayName =
|
|
3903
|
+
si.displayName = wu;
|
|
3900
3904
|
var Ht = "MenuItem", Zo = "menu.itemSelect", rn = d.forwardRef(
|
|
3901
3905
|
(e, t) => {
|
|
3902
3906
|
const { disabled: n = !1, onSelect: o, ...r } = e, i = d.useRef(null), a = xt(Ht, e.__scopeMenu), s = oo(Ht, e.__scopeMenu), c = Z(t, i), l = d.useRef(!1), f = () => {
|
|
@@ -3968,7 +3972,7 @@ var ai = d.forwardRef(
|
|
|
3968
3972
|
}
|
|
3969
3973
|
);
|
|
3970
3974
|
}
|
|
3971
|
-
),
|
|
3975
|
+
), yu = "MenuCheckboxItem", ci = d.forwardRef(
|
|
3972
3976
|
(e, t) => {
|
|
3973
3977
|
const { checked: n = !1, onCheckedChange: o, ...r } = e;
|
|
3974
3978
|
return /* @__PURE__ */ p(pi, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p(
|
|
@@ -3988,21 +3992,21 @@ var ai = d.forwardRef(
|
|
|
3988
3992
|
) });
|
|
3989
3993
|
}
|
|
3990
3994
|
);
|
|
3991
|
-
ci.displayName =
|
|
3992
|
-
var li = "MenuRadioGroup", [
|
|
3995
|
+
ci.displayName = yu;
|
|
3996
|
+
var li = "MenuRadioGroup", [bu, Cu] = Ze(
|
|
3993
3997
|
li,
|
|
3994
3998
|
{ value: void 0, onValueChange: () => {
|
|
3995
3999
|
} }
|
|
3996
4000
|
), ui = d.forwardRef(
|
|
3997
4001
|
(e, t) => {
|
|
3998
|
-
const { value: n, onValueChange: o, ...r } = e, i =
|
|
3999
|
-
return /* @__PURE__ */ p(
|
|
4002
|
+
const { value: n, onValueChange: o, ...r } = e, i = Me(o);
|
|
4003
|
+
return /* @__PURE__ */ p(bu, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ p(io, { ...r, ref: t }) });
|
|
4000
4004
|
}
|
|
4001
4005
|
);
|
|
4002
4006
|
ui.displayName = li;
|
|
4003
4007
|
var di = "MenuRadioItem", fi = d.forwardRef(
|
|
4004
4008
|
(e, t) => {
|
|
4005
|
-
const { value: n, ...o } = e, r =
|
|
4009
|
+
const { value: n, ...o } = e, r = Cu(di, e.__scopeMenu), i = n === r.value;
|
|
4006
4010
|
return /* @__PURE__ */ p(pi, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ p(
|
|
4007
4011
|
rn,
|
|
4008
4012
|
{
|
|
@@ -4024,12 +4028,12 @@ var di = "MenuRadioItem", fi = d.forwardRef(
|
|
|
4024
4028
|
}
|
|
4025
4029
|
);
|
|
4026
4030
|
fi.displayName = di;
|
|
4027
|
-
var so = "MenuItemIndicator", [pi,
|
|
4031
|
+
var so = "MenuItemIndicator", [pi, Su] = Ze(
|
|
4028
4032
|
so,
|
|
4029
4033
|
{ checked: !1 }
|
|
4030
4034
|
), mi = d.forwardRef(
|
|
4031
4035
|
(e, t) => {
|
|
4032
|
-
const { __scopeMenu: n, forceMount: o, ...r } = e, i =
|
|
4036
|
+
const { __scopeMenu: n, forceMount: o, ...r } = e, i = Su(so, n);
|
|
4033
4037
|
return /* @__PURE__ */ p(
|
|
4034
4038
|
st,
|
|
4035
4039
|
{
|
|
@@ -4047,7 +4051,7 @@ var so = "MenuItemIndicator", [pi, Cu] = Ze(
|
|
|
4047
4051
|
}
|
|
4048
4052
|
);
|
|
4049
4053
|
mi.displayName = so;
|
|
4050
|
-
var
|
|
4054
|
+
var xu = "MenuSeparator", hi = d.forwardRef(
|
|
4051
4055
|
(e, t) => {
|
|
4052
4056
|
const { __scopeMenu: n, ...o } = e;
|
|
4053
4057
|
return /* @__PURE__ */ p(
|
|
@@ -4061,15 +4065,15 @@ var Su = "MenuSeparator", hi = d.forwardRef(
|
|
|
4061
4065
|
);
|
|
4062
4066
|
}
|
|
4063
4067
|
);
|
|
4064
|
-
hi.displayName =
|
|
4065
|
-
var
|
|
4068
|
+
hi.displayName = xu;
|
|
4069
|
+
var Eu = "MenuArrow", gi = d.forwardRef(
|
|
4066
4070
|
(e, t) => {
|
|
4067
4071
|
const { __scopeMenu: n, ...o } = e, r = on(n);
|
|
4068
4072
|
return /* @__PURE__ */ p(Fr, { ...r, ...o, ref: t });
|
|
4069
4073
|
}
|
|
4070
4074
|
);
|
|
4071
|
-
gi.displayName =
|
|
4072
|
-
var
|
|
4075
|
+
gi.displayName = Eu;
|
|
4076
|
+
var Ru = "MenuSub", [Zf, vi] = Ze(Ru), dt = "MenuSubTrigger", wi = d.forwardRef(
|
|
4073
4077
|
(e, t) => {
|
|
4074
4078
|
const n = qe(dt, e.__scopeMenu), o = xt(dt, e.__scopeMenu), r = vi(dt, e.__scopeMenu), i = oo(dt, e.__scopeMenu), a = d.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = i, l = { __scopeMenu: e.__scopeMenu }, f = d.useCallback(() => {
|
|
4075
4079
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
@@ -4133,7 +4137,7 @@ var Eu = "MenuSub", [Xf, vi] = Ze(Eu), dt = "MenuSubTrigger", wi = d.forwardRef(
|
|
|
4133
4137
|
onKeyDown: N(e.onKeyDown, (u) => {
|
|
4134
4138
|
var g;
|
|
4135
4139
|
const m = i.searchRef.current !== "";
|
|
4136
|
-
e.disabled || m && u.key === " " ||
|
|
4140
|
+
e.disabled || m && u.key === " " || iu[o.dir].includes(u.key) && (n.onOpenChange(!0), (g = n.content) == null || g.focus(), u.preventDefault());
|
|
4137
4141
|
})
|
|
4138
4142
|
}
|
|
4139
4143
|
) });
|
|
@@ -4168,7 +4172,7 @@ var yi = "MenuSubContent", bi = d.forwardRef(
|
|
|
4168
4172
|
}),
|
|
4169
4173
|
onKeyDown: N(e.onKeyDown, (f) => {
|
|
4170
4174
|
var g;
|
|
4171
|
-
const u = f.currentTarget.contains(f.target), m =
|
|
4175
|
+
const u = f.currentTarget.contains(f.target), m = su[a.dir].includes(f.key);
|
|
4172
4176
|
u && m && (i.onOpenChange(!1), (g = s.trigger) == null || g.focus(), f.preventDefault());
|
|
4173
4177
|
})
|
|
4174
4178
|
}
|
|
@@ -4185,24 +4189,24 @@ function Kt(e) {
|
|
|
4185
4189
|
function ao(e) {
|
|
4186
4190
|
return Kt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
4187
4191
|
}
|
|
4188
|
-
function
|
|
4192
|
+
function Au(e) {
|
|
4189
4193
|
const t = document.activeElement;
|
|
4190
4194
|
for (const n of e)
|
|
4191
4195
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
4192
4196
|
}
|
|
4193
|
-
function
|
|
4197
|
+
function Pu(e, t) {
|
|
4194
4198
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
4195
4199
|
}
|
|
4196
|
-
function
|
|
4200
|
+
function Tu(e, t, n) {
|
|
4197
4201
|
const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
|
|
4198
|
-
let a =
|
|
4202
|
+
let a = Pu(e, Math.max(i, 0));
|
|
4199
4203
|
r.length === 1 && (a = a.filter((l) => l !== n));
|
|
4200
4204
|
const c = a.find(
|
|
4201
4205
|
(l) => l.toLowerCase().startsWith(r.toLowerCase())
|
|
4202
4206
|
);
|
|
4203
4207
|
return c !== n ? c : void 0;
|
|
4204
4208
|
}
|
|
4205
|
-
function
|
|
4209
|
+
function Mu(e, t) {
|
|
4206
4210
|
const { x: n, y: o } = e;
|
|
4207
4211
|
let r = !1;
|
|
4208
4212
|
for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
|
|
@@ -4214,15 +4218,15 @@ function Tu(e, t) {
|
|
|
4214
4218
|
function Iu(e, t) {
|
|
4215
4219
|
if (!t) return !1;
|
|
4216
4220
|
const n = { x: e.clientX, y: e.clientY };
|
|
4217
|
-
return
|
|
4221
|
+
return Mu(n, t);
|
|
4218
4222
|
}
|
|
4219
4223
|
function yt(e) {
|
|
4220
4224
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
4221
4225
|
}
|
|
4222
|
-
var
|
|
4226
|
+
var Nu = ni, _u = to, Ou = ri, Du = ii, ku = io, Fu = si, Lu = rn, $u = ci, Vu = ui, Bu = fi, Wu = mi, Uu = hi, Hu = gi, Ku = wi, Gu = bi, sn = "DropdownMenu", [zu] = Xe(
|
|
4223
4227
|
sn,
|
|
4224
4228
|
[ei]
|
|
4225
|
-
),
|
|
4229
|
+
), le = ei(), [ju, Si] = zu(sn), xi = (e) => {
|
|
4226
4230
|
const {
|
|
4227
4231
|
__scopeDropdownMenu: t,
|
|
4228
4232
|
children: n,
|
|
@@ -4231,14 +4235,14 @@ var Mu = ni, Nu = to, _u = ri, Ou = ii, Du = io, ku = si, Fu = rn, Lu = ci, $u =
|
|
|
4231
4235
|
defaultOpen: i,
|
|
4232
4236
|
onOpenChange: a,
|
|
4233
4237
|
modal: s = !0
|
|
4234
|
-
} = e, c =
|
|
4238
|
+
} = e, c = le(t), l = d.useRef(null), [f, u] = mt({
|
|
4235
4239
|
prop: r,
|
|
4236
4240
|
defaultProp: i ?? !1,
|
|
4237
4241
|
onChange: a,
|
|
4238
4242
|
caller: sn
|
|
4239
4243
|
});
|
|
4240
4244
|
return /* @__PURE__ */ p(
|
|
4241
|
-
|
|
4245
|
+
ju,
|
|
4242
4246
|
{
|
|
4243
4247
|
scope: t,
|
|
4244
4248
|
triggerId: Ge(),
|
|
@@ -4248,15 +4252,15 @@ var Mu = ni, Nu = to, _u = ri, Ou = ii, Du = io, ku = si, Fu = rn, Lu = ci, $u =
|
|
|
4248
4252
|
onOpenChange: u,
|
|
4249
4253
|
onOpenToggle: d.useCallback(() => u((m) => !m), [u]),
|
|
4250
4254
|
modal: s,
|
|
4251
|
-
children: /* @__PURE__ */ p(
|
|
4255
|
+
children: /* @__PURE__ */ p(Nu, { ...c, open: f, onOpenChange: u, dir: o, modal: s, children: n })
|
|
4252
4256
|
}
|
|
4253
4257
|
);
|
|
4254
4258
|
};
|
|
4255
4259
|
xi.displayName = sn;
|
|
4256
4260
|
var Ei = "DropdownMenuTrigger", Ri = d.forwardRef(
|
|
4257
4261
|
(e, t) => {
|
|
4258
|
-
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = Si(Ei, n), a =
|
|
4259
|
-
return /* @__PURE__ */ p(
|
|
4262
|
+
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = Si(Ei, n), a = le(n);
|
|
4263
|
+
return /* @__PURE__ */ p(_u, { asChild: !0, ...a, children: /* @__PURE__ */ p(
|
|
4260
4264
|
U.button,
|
|
4261
4265
|
{
|
|
4262
4266
|
type: "button",
|
|
@@ -4280,16 +4284,16 @@ var Ei = "DropdownMenuTrigger", Ri = d.forwardRef(
|
|
|
4280
4284
|
}
|
|
4281
4285
|
);
|
|
4282
4286
|
Ri.displayName = Ei;
|
|
4283
|
-
var
|
|
4284
|
-
const { __scopeDropdownMenu: t, ...n } = e, o =
|
|
4285
|
-
return /* @__PURE__ */ p(
|
|
4287
|
+
var Yu = "DropdownMenuPortal", Ai = (e) => {
|
|
4288
|
+
const { __scopeDropdownMenu: t, ...n } = e, o = le(t);
|
|
4289
|
+
return /* @__PURE__ */ p(Ou, { ...o, ...n });
|
|
4286
4290
|
};
|
|
4287
|
-
Ai.displayName =
|
|
4291
|
+
Ai.displayName = Yu;
|
|
4288
4292
|
var Pi = "DropdownMenuContent", Ti = d.forwardRef(
|
|
4289
4293
|
(e, t) => {
|
|
4290
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = Si(Pi, n), i =
|
|
4294
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = Si(Pi, n), i = le(n), a = d.useRef(!1);
|
|
4291
4295
|
return /* @__PURE__ */ p(
|
|
4292
|
-
|
|
4296
|
+
Du,
|
|
4293
4297
|
{
|
|
4294
4298
|
id: r.contentId,
|
|
4295
4299
|
"aria-labelledby": r.triggerId,
|
|
@@ -4317,68 +4321,68 @@ var Pi = "DropdownMenuContent", Ti = d.forwardRef(
|
|
|
4317
4321
|
}
|
|
4318
4322
|
);
|
|
4319
4323
|
Ti.displayName = Pi;
|
|
4320
|
-
var
|
|
4324
|
+
var Xu = "DropdownMenuGroup", Zu = d.forwardRef(
|
|
4321
4325
|
(e, t) => {
|
|
4322
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4323
|
-
return /* @__PURE__ */ p(
|
|
4326
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4327
|
+
return /* @__PURE__ */ p(ku, { ...r, ...o, ref: t });
|
|
4324
4328
|
}
|
|
4325
4329
|
);
|
|
4326
|
-
|
|
4327
|
-
var
|
|
4330
|
+
Zu.displayName = Xu;
|
|
4331
|
+
var qu = "DropdownMenuLabel", Ju = d.forwardRef(
|
|
4328
4332
|
(e, t) => {
|
|
4329
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4330
|
-
return /* @__PURE__ */ p(
|
|
4333
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4334
|
+
return /* @__PURE__ */ p(Fu, { ...r, ...o, ref: t });
|
|
4331
4335
|
}
|
|
4332
4336
|
);
|
|
4333
|
-
|
|
4334
|
-
var
|
|
4337
|
+
Ju.displayName = qu;
|
|
4338
|
+
var Qu = "DropdownMenuItem", Mi = d.forwardRef(
|
|
4335
4339
|
(e, t) => {
|
|
4336
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4337
|
-
return /* @__PURE__ */ p(
|
|
4340
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4341
|
+
return /* @__PURE__ */ p(Lu, { ...r, ...o, ref: t });
|
|
4338
4342
|
}
|
|
4339
4343
|
);
|
|
4340
|
-
Ii.displayName = Ju;
|
|
4341
|
-
var Qu = "DropdownMenuCheckboxItem", Mi = d.forwardRef((e, t) => {
|
|
4342
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = ce(n);
|
|
4343
|
-
return /* @__PURE__ */ p(Lu, { ...r, ...o, ref: t });
|
|
4344
|
-
});
|
|
4345
4344
|
Mi.displayName = Qu;
|
|
4346
|
-
var ed = "
|
|
4347
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4345
|
+
var ed = "DropdownMenuCheckboxItem", Ii = d.forwardRef((e, t) => {
|
|
4346
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4348
4347
|
return /* @__PURE__ */ p($u, { ...r, ...o, ref: t });
|
|
4349
4348
|
});
|
|
4350
|
-
|
|
4351
|
-
var
|
|
4352
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4349
|
+
Ii.displayName = ed;
|
|
4350
|
+
var td = "DropdownMenuRadioGroup", nd = d.forwardRef((e, t) => {
|
|
4351
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4353
4352
|
return /* @__PURE__ */ p(Vu, { ...r, ...o, ref: t });
|
|
4354
4353
|
});
|
|
4355
|
-
|
|
4356
|
-
var
|
|
4357
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4354
|
+
nd.displayName = td;
|
|
4355
|
+
var od = "DropdownMenuRadioItem", rd = d.forwardRef((e, t) => {
|
|
4356
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4358
4357
|
return /* @__PURE__ */ p(Bu, { ...r, ...o, ref: t });
|
|
4359
4358
|
});
|
|
4360
|
-
|
|
4361
|
-
var id = "
|
|
4362
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4359
|
+
rd.displayName = od;
|
|
4360
|
+
var id = "DropdownMenuItemIndicator", Ni = d.forwardRef((e, t) => {
|
|
4361
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4363
4362
|
return /* @__PURE__ */ p(Wu, { ...r, ...o, ref: t });
|
|
4364
4363
|
});
|
|
4365
|
-
|
|
4366
|
-
var sd = "
|
|
4364
|
+
Ni.displayName = id;
|
|
4365
|
+
var sd = "DropdownMenuSeparator", _i = d.forwardRef((e, t) => {
|
|
4366
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4367
|
+
return /* @__PURE__ */ p(Uu, { ...r, ...o, ref: t });
|
|
4368
|
+
});
|
|
4369
|
+
_i.displayName = sd;
|
|
4370
|
+
var ad = "DropdownMenuArrow", cd = d.forwardRef(
|
|
4367
4371
|
(e, t) => {
|
|
4368
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4369
|
-
return /* @__PURE__ */ p(
|
|
4372
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4373
|
+
return /* @__PURE__ */ p(Hu, { ...r, ...o, ref: t });
|
|
4370
4374
|
}
|
|
4371
4375
|
);
|
|
4372
|
-
|
|
4373
|
-
var
|
|
4374
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4375
|
-
return /* @__PURE__ */ p(
|
|
4376
|
+
cd.displayName = ad;
|
|
4377
|
+
var ld = "DropdownMenuSubTrigger", ud = d.forwardRef((e, t) => {
|
|
4378
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4379
|
+
return /* @__PURE__ */ p(Ku, { ...r, ...o, ref: t });
|
|
4376
4380
|
});
|
|
4377
|
-
|
|
4378
|
-
var
|
|
4379
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4381
|
+
ud.displayName = ld;
|
|
4382
|
+
var dd = "DropdownMenuSubContent", fd = d.forwardRef((e, t) => {
|
|
4383
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
4380
4384
|
return /* @__PURE__ */ p(
|
|
4381
|
-
|
|
4385
|
+
Gu,
|
|
4382
4386
|
{
|
|
4383
4387
|
...r,
|
|
4384
4388
|
...o,
|
|
@@ -4394,17 +4398,17 @@ var ud = "DropdownMenuSubContent", dd = d.forwardRef((e, t) => {
|
|
|
4394
4398
|
}
|
|
4395
4399
|
);
|
|
4396
4400
|
});
|
|
4397
|
-
|
|
4398
|
-
var
|
|
4399
|
-
function
|
|
4400
|
-
return /* @__PURE__ */ p(
|
|
4401
|
+
fd.displayName = dd;
|
|
4402
|
+
var pd = xi, md = Ri, hd = Ai, gd = Ti, vd = Mi, wd = Ii, yd = Ni, bd = _i;
|
|
4403
|
+
function Cd({ children: e, modal: t = !1 }) {
|
|
4404
|
+
return /* @__PURE__ */ p(pd, { modal: t, children: e });
|
|
4401
4405
|
}
|
|
4402
|
-
function
|
|
4403
|
-
return /* @__PURE__ */ p(
|
|
4406
|
+
function Sd({ asChild: e, children: t }) {
|
|
4407
|
+
return /* @__PURE__ */ p(md, { asChild: e, children: t });
|
|
4404
4408
|
}
|
|
4405
|
-
function
|
|
4406
|
-
return /* @__PURE__ */ p(
|
|
4407
|
-
|
|
4409
|
+
function xd({ align: e = "end", sideOffset: t = 4, className: n, children: o }) {
|
|
4410
|
+
return /* @__PURE__ */ p(hd, { children: /* @__PURE__ */ p(
|
|
4411
|
+
gd,
|
|
4408
4412
|
{
|
|
4409
4413
|
align: e,
|
|
4410
4414
|
sideOffset: t,
|
|
@@ -4413,9 +4417,9 @@ function Sd({ align: e = "end", sideOffset: t = 4, className: n, children: o })
|
|
|
4413
4417
|
}
|
|
4414
4418
|
) });
|
|
4415
4419
|
}
|
|
4416
|
-
function
|
|
4420
|
+
function Ed({ onClick: e, disabled: t, className: n, asChild: o, children: r }) {
|
|
4417
4421
|
return /* @__PURE__ */ p(
|
|
4418
|
-
|
|
4422
|
+
vd,
|
|
4419
4423
|
{
|
|
4420
4424
|
onClick: e,
|
|
4421
4425
|
disabled: t,
|
|
@@ -4425,31 +4429,31 @@ function xd({ onClick: e, disabled: t, className: n, asChild: o, children: r })
|
|
|
4425
4429
|
}
|
|
4426
4430
|
);
|
|
4427
4431
|
}
|
|
4428
|
-
function
|
|
4432
|
+
function Rd({ checked: e, onCheckedChange: t, className: n, children: o }) {
|
|
4429
4433
|
return /* @__PURE__ */ k(
|
|
4430
|
-
|
|
4434
|
+
wd,
|
|
4431
4435
|
{
|
|
4432
4436
|
checked: e,
|
|
4433
4437
|
onCheckedChange: t,
|
|
4434
4438
|
className: X("snow-dropdown-checkbox-item", n),
|
|
4435
4439
|
children: [
|
|
4436
|
-
/* @__PURE__ */ p("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ p(
|
|
4440
|
+
/* @__PURE__ */ p("span", { className: "snow-dropdown-checkbox-indicator", children: /* @__PURE__ */ p(yd, { children: /* @__PURE__ */ p(tr, { className: "snow-size-4" }) }) }),
|
|
4437
4441
|
o
|
|
4438
4442
|
]
|
|
4439
4443
|
}
|
|
4440
4444
|
);
|
|
4441
4445
|
}
|
|
4442
|
-
function
|
|
4443
|
-
return /* @__PURE__ */ p(
|
|
4446
|
+
function Ad() {
|
|
4447
|
+
return /* @__PURE__ */ p(bd, { className: "snow-dropdown-separator" });
|
|
4444
4448
|
}
|
|
4445
4449
|
const ee = {
|
|
4446
|
-
Root:
|
|
4447
|
-
Trigger:
|
|
4448
|
-
Content:
|
|
4449
|
-
Item:
|
|
4450
|
-
CheckboxItem:
|
|
4451
|
-
Separator:
|
|
4452
|
-
},
|
|
4450
|
+
Root: Cd,
|
|
4451
|
+
Trigger: Sd,
|
|
4452
|
+
Content: xd,
|
|
4453
|
+
Item: Ed,
|
|
4454
|
+
CheckboxItem: Rd,
|
|
4455
|
+
Separator: Ad
|
|
4456
|
+
}, Pd = ({ to: e, children: t, className: n, target: o, rel: r, disabled: i }) => /* @__PURE__ */ p(
|
|
4453
4457
|
"a",
|
|
4454
4458
|
{
|
|
4455
4459
|
href: i ? void 0 : e,
|
|
@@ -4461,10 +4465,10 @@ const ee = {
|
|
|
4461
4465
|
children: t
|
|
4462
4466
|
}
|
|
4463
4467
|
);
|
|
4464
|
-
let Oi =
|
|
4465
|
-
const
|
|
4468
|
+
let Oi = Pd;
|
|
4469
|
+
const Td = (e) => {
|
|
4466
4470
|
Oi = e;
|
|
4467
|
-
},
|
|
4471
|
+
}, Md = () => Oi, Di = {
|
|
4468
4472
|
"dataTable.search": "Search...",
|
|
4469
4473
|
"dataTable.elements": "elements",
|
|
4470
4474
|
"dataTable.paginationSize": "per page",
|
|
@@ -4483,17 +4487,17 @@ const Id = (e) => {
|
|
|
4483
4487
|
return t;
|
|
4484
4488
|
}
|
|
4485
4489
|
return Di[e] ?? e;
|
|
4486
|
-
},
|
|
4490
|
+
}, Nd = (e) => {
|
|
4487
4491
|
Dn = e;
|
|
4488
|
-
}, at = () => Id,
|
|
4492
|
+
}, at = () => Id, _d = (e) => {
|
|
4489
4493
|
Object.assign(Di, e);
|
|
4490
4494
|
};
|
|
4491
4495
|
let kn = !1;
|
|
4492
|
-
const
|
|
4493
|
-
kn || (
|
|
4494
|
-
},
|
|
4495
|
-
function
|
|
4496
|
-
const t = at(), n = Rn(
|
|
4496
|
+
const qf = (e) => {
|
|
4497
|
+
kn || (Nd(e.translate), e.translations && _d(e.translations), Td(e.LinkComponent), kn = !0);
|
|
4498
|
+
}, Jf = () => kn;
|
|
4499
|
+
function Od({ table: e }) {
|
|
4500
|
+
const t = at(), n = Rn(la()), o = Ce(() => e.getAllColumns().filter((s) => {
|
|
4497
4501
|
const c = s.columnDef.header;
|
|
4498
4502
|
return !(!c || typeof c == "string" && c.trim() === "" || s.columnDef.enableHiding === !1);
|
|
4499
4503
|
}), [e]), r = () => {
|
|
@@ -4504,12 +4508,12 @@ function _d({ table: e }) {
|
|
|
4504
4508
|
});
|
|
4505
4509
|
};
|
|
4506
4510
|
pt(() => {
|
|
4507
|
-
const s =
|
|
4511
|
+
const s = aa(n.current);
|
|
4508
4512
|
let c = !1;
|
|
4509
4513
|
s ? (Object.entries(s).forEach(([l, f]) => {
|
|
4510
4514
|
const u = e.getColumn(l);
|
|
4511
4515
|
u ? u.toggleVisibility(f) : c = !0;
|
|
4512
|
-
}), c &&
|
|
4516
|
+
}), c && ca(n.current)) : r();
|
|
4513
4517
|
}, [n.current, e, o]);
|
|
4514
4518
|
const i = (s, c) => {
|
|
4515
4519
|
const l = e.getColumn(s);
|
|
@@ -4556,13 +4560,13 @@ function _d({ table: e }) {
|
|
|
4556
4560
|
] })
|
|
4557
4561
|
] });
|
|
4558
4562
|
}
|
|
4559
|
-
function
|
|
4563
|
+
function Dd({ className: e }) {
|
|
4560
4564
|
return /* @__PURE__ */ p("div", { className: X("snow-skeleton", e) });
|
|
4561
4565
|
}
|
|
4562
4566
|
function qo(e, [t, n]) {
|
|
4563
4567
|
return Math.min(n, Math.max(t, e));
|
|
4564
4568
|
}
|
|
4565
|
-
function
|
|
4569
|
+
function kd(e) {
|
|
4566
4570
|
const t = d.useRef({ value: e, previous: e });
|
|
4567
4571
|
return d.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
4568
4572
|
}
|
|
@@ -4578,7 +4582,7 @@ var ki = Object.freeze({
|
|
|
4578
4582
|
clip: "rect(0, 0, 0, 0)",
|
|
4579
4583
|
whiteSpace: "nowrap",
|
|
4580
4584
|
wordWrap: "normal"
|
|
4581
|
-
}),
|
|
4585
|
+
}), Fd = "VisuallyHidden", Ld = d.forwardRef(
|
|
4582
4586
|
(e, t) => /* @__PURE__ */ p(
|
|
4583
4587
|
U.span,
|
|
4584
4588
|
{
|
|
@@ -4588,11 +4592,11 @@ var ki = Object.freeze({
|
|
|
4588
4592
|
}
|
|
4589
4593
|
)
|
|
4590
4594
|
);
|
|
4591
|
-
|
|
4592
|
-
var
|
|
4593
|
-
|
|
4595
|
+
Ld.displayName = Fd;
|
|
4596
|
+
var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], Vd = [" ", "Enter"], je = "Select", [an, cn, Bd] = Un(je), [ct] = Xe(je, [
|
|
4597
|
+
Bd,
|
|
4594
4598
|
en
|
|
4595
|
-
]), ln = en(), [
|
|
4599
|
+
]), ln = en(), [Wd, $e] = ct(je), [Ud, Hd] = ct(je), Fi = (e) => {
|
|
4596
4600
|
const {
|
|
4597
4601
|
__scopeSelect: t,
|
|
4598
4602
|
children: n,
|
|
@@ -4613,14 +4617,14 @@ var Ld = [" ", "Enter", "ArrowUp", "ArrowDown"], $d = [" ", "Enter"], je = "Sele
|
|
|
4613
4617
|
defaultProp: r ?? !1,
|
|
4614
4618
|
onChange: i,
|
|
4615
4619
|
caller: je
|
|
4616
|
-
}), [
|
|
4620
|
+
}), [M, T] = mt({
|
|
4617
4621
|
prop: a,
|
|
4618
4622
|
defaultProp: s,
|
|
4619
4623
|
onChange: c,
|
|
4620
4624
|
caller: je
|
|
4621
4625
|
}), D = d.useRef(null), L = v ? w || !!v.closest("form") : !0, [$, F] = d.useState(/* @__PURE__ */ new Set()), K = Array.from($).map((O) => O.props.value).join(";");
|
|
4622
4626
|
return /* @__PURE__ */ p(Or, { ...h, children: /* @__PURE__ */ k(
|
|
4623
|
-
|
|
4627
|
+
Wd,
|
|
4624
4628
|
{
|
|
4625
4629
|
required: g,
|
|
4626
4630
|
scope: t,
|
|
@@ -4631,7 +4635,7 @@ var Ld = [" ", "Enter", "ArrowUp", "ArrowDown"], $d = [" ", "Enter"], je = "Sele
|
|
|
4631
4635
|
valueNodeHasChildren: S,
|
|
4632
4636
|
onValueNodeHasChildrenChange: R,
|
|
4633
4637
|
contentId: Ge(),
|
|
4634
|
-
value:
|
|
4638
|
+
value: M,
|
|
4635
4639
|
onValueChange: T,
|
|
4636
4640
|
open: E,
|
|
4637
4641
|
onOpenChange: x,
|
|
@@ -4640,7 +4644,7 @@ var Ld = [" ", "Enter", "ArrowUp", "ArrowDown"], $d = [" ", "Enter"], je = "Sele
|
|
|
4640
4644
|
disabled: m,
|
|
4641
4645
|
children: [
|
|
4642
4646
|
/* @__PURE__ */ p(an.Provider, { scope: t, children: /* @__PURE__ */ p(
|
|
4643
|
-
|
|
4647
|
+
Ud,
|
|
4644
4648
|
{
|
|
4645
4649
|
scope: e.__scopeSelect,
|
|
4646
4650
|
onNativeOptionAdd: d.useCallback((O) => {
|
|
@@ -4663,12 +4667,12 @@ var Ld = [" ", "Enter", "ArrowUp", "ArrowDown"], $d = [" ", "Enter"], je = "Sele
|
|
|
4663
4667
|
tabIndex: -1,
|
|
4664
4668
|
name: f,
|
|
4665
4669
|
autoComplete: u,
|
|
4666
|
-
value:
|
|
4670
|
+
value: M,
|
|
4667
4671
|
onChange: (O) => T(O.target.value),
|
|
4668
4672
|
disabled: m,
|
|
4669
4673
|
form: w,
|
|
4670
4674
|
children: [
|
|
4671
|
-
|
|
4675
|
+
M === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
|
|
4672
4676
|
Array.from($)
|
|
4673
4677
|
]
|
|
4674
4678
|
},
|
|
@@ -4716,7 +4720,7 @@ var Li = "SelectTrigger", $i = d.forwardRef(
|
|
|
4716
4720
|
}),
|
|
4717
4721
|
onKeyDown: N(r.onKeyDown, (h) => {
|
|
4718
4722
|
const v = u.current !== "";
|
|
4719
|
-
!(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && m(h.key), !(v && h.key === " ") &&
|
|
4723
|
+
!(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && m(h.key), !(v && h.key === " ") && $d.includes(h.key) && (w(), h.preventDefault());
|
|
4720
4724
|
})
|
|
4721
4725
|
}
|
|
4722
4726
|
) });
|
|
@@ -4740,15 +4744,15 @@ var Vi = "SelectValue", Bi = d.forwardRef(
|
|
|
4740
4744
|
}
|
|
4741
4745
|
);
|
|
4742
4746
|
Bi.displayName = Vi;
|
|
4743
|
-
var
|
|
4747
|
+
var Kd = "SelectIcon", Wi = d.forwardRef(
|
|
4744
4748
|
(e, t) => {
|
|
4745
4749
|
const { __scopeSelect: n, children: o, ...r } = e;
|
|
4746
4750
|
return /* @__PURE__ */ p(U.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
|
|
4747
4751
|
}
|
|
4748
4752
|
);
|
|
4749
|
-
Wi.displayName =
|
|
4750
|
-
var
|
|
4751
|
-
Ui.displayName =
|
|
4753
|
+
Wi.displayName = Kd;
|
|
4754
|
+
var Gd = "SelectPortal", Ui = (e) => /* @__PURE__ */ p(Qn, { asChild: !0, ...e });
|
|
4755
|
+
Ui.displayName = Gd;
|
|
4752
4756
|
var Ye = "SelectContent", Hi = d.forwardRef(
|
|
4753
4757
|
(e, t) => {
|
|
4754
4758
|
const n = $e(Ye, e.__scopeSelect), [o, r] = d.useState();
|
|
@@ -4765,7 +4769,7 @@ var Ye = "SelectContent", Hi = d.forwardRef(
|
|
|
4765
4769
|
}
|
|
4766
4770
|
);
|
|
4767
4771
|
Hi.displayName = Ye;
|
|
4768
|
-
var ye = 10, [Ki, Ve] = ct(Ye),
|
|
4772
|
+
var ye = 10, [Ki, Ve] = ct(Ye), zd = "SelectContentImpl", jd = /* @__PURE__ */ ht("SelectContent.RemoveScroll"), Gi = d.forwardRef(
|
|
4769
4773
|
(e, t) => {
|
|
4770
4774
|
const {
|
|
4771
4775
|
__scopeSelect: n,
|
|
@@ -4787,16 +4791,16 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
|
|
|
4787
4791
|
avoidCollisions: v,
|
|
4788
4792
|
//
|
|
4789
4793
|
...y
|
|
4790
|
-
} = e, C = $e(Ye, n), [b, S] = d.useState(null), [R, A] = d.useState(null), E = Z(t, (
|
|
4794
|
+
} = e, C = $e(Ye, n), [b, S] = d.useState(null), [R, A] = d.useState(null), E = Z(t, (I) => S(I)), [x, M] = d.useState(null), [T, D] = d.useState(
|
|
4791
4795
|
null
|
|
4792
4796
|
), L = cn(n), [$, F] = d.useState(!1), K = d.useRef(!1);
|
|
4793
4797
|
d.useEffect(() => {
|
|
4794
4798
|
if (b) return Gr(b);
|
|
4795
4799
|
}, [b]), ur();
|
|
4796
4800
|
const O = d.useCallback(
|
|
4797
|
-
(
|
|
4801
|
+
(I) => {
|
|
4798
4802
|
const [W, ...G] = L().map((z) => z.ref.current), [H] = G.slice(-1), V = document.activeElement;
|
|
4799
|
-
for (const z of
|
|
4803
|
+
for (const z of I)
|
|
4800
4804
|
if (z === V || (z == null || z.scrollIntoView({ block: "nearest" }), z === W && R && (R.scrollTop = 0), z === H && R && (R.scrollTop = R.scrollHeight), z == null || z.focus(), document.activeElement !== V)) return;
|
|
4801
4805
|
},
|
|
4802
4806
|
[L, R]
|
|
@@ -4810,39 +4814,39 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
|
|
|
4810
4814
|
const { onOpenChange: _, triggerPointerDownPosRef: P } = C;
|
|
4811
4815
|
d.useEffect(() => {
|
|
4812
4816
|
if (b) {
|
|
4813
|
-
let
|
|
4817
|
+
let I = { x: 0, y: 0 };
|
|
4814
4818
|
const W = (H) => {
|
|
4815
4819
|
var V, z;
|
|
4816
|
-
|
|
4820
|
+
I = {
|
|
4817
4821
|
x: Math.abs(Math.round(H.pageX) - (((V = P.current) == null ? void 0 : V.x) ?? 0)),
|
|
4818
4822
|
y: Math.abs(Math.round(H.pageY) - (((z = P.current) == null ? void 0 : z.y) ?? 0))
|
|
4819
4823
|
};
|
|
4820
4824
|
}, G = (H) => {
|
|
4821
|
-
|
|
4825
|
+
I.x <= 10 && I.y <= 10 ? H.preventDefault() : b.contains(H.target) || _(!1), document.removeEventListener("pointermove", W), P.current = null;
|
|
4822
4826
|
};
|
|
4823
4827
|
return P.current !== null && (document.addEventListener("pointermove", W), document.addEventListener("pointerup", G, { capture: !0, once: !0 })), () => {
|
|
4824
4828
|
document.removeEventListener("pointermove", W), document.removeEventListener("pointerup", G, { capture: !0 });
|
|
4825
4829
|
};
|
|
4826
4830
|
}
|
|
4827
4831
|
}, [b, _, P]), d.useEffect(() => {
|
|
4828
|
-
const
|
|
4829
|
-
return window.addEventListener("blur",
|
|
4830
|
-
window.removeEventListener("blur",
|
|
4832
|
+
const I = () => _(!1);
|
|
4833
|
+
return window.addEventListener("blur", I), window.addEventListener("resize", I), () => {
|
|
4834
|
+
window.removeEventListener("blur", I), window.removeEventListener("resize", I);
|
|
4831
4835
|
};
|
|
4832
4836
|
}, [_]);
|
|
4833
|
-
const [j, q] = rs((
|
|
4834
|
-
const W = L().filter((V) => !V.disabled), G = W.find((V) => V.ref.current === document.activeElement), H = is(W,
|
|
4837
|
+
const [j, q] = rs((I) => {
|
|
4838
|
+
const W = L().filter((V) => !V.disabled), G = W.find((V) => V.ref.current === document.activeElement), H = is(W, I, G);
|
|
4835
4839
|
H && setTimeout(() => H.ref.current.focus());
|
|
4836
4840
|
}), ne = d.useCallback(
|
|
4837
|
-
(
|
|
4841
|
+
(I, W, G) => {
|
|
4838
4842
|
const H = !K.current && !G;
|
|
4839
|
-
(C.value !== void 0 && C.value === W || H) && (I
|
|
4843
|
+
(C.value !== void 0 && C.value === W || H) && (M(I), H && (K.current = !0));
|
|
4840
4844
|
},
|
|
4841
4845
|
[C.value]
|
|
4842
|
-
), ve = d.useCallback(() => b == null ? void 0 : b.focus(), [b]),
|
|
4843
|
-
(
|
|
4846
|
+
), ve = d.useCallback(() => b == null ? void 0 : b.focus(), [b]), ue = d.useCallback(
|
|
4847
|
+
(I, W, G) => {
|
|
4844
4848
|
const H = !K.current && !G;
|
|
4845
|
-
(C.value !== void 0 && C.value === W || H) && D(
|
|
4849
|
+
(C.value !== void 0 && C.value === W || H) && D(I);
|
|
4846
4850
|
},
|
|
4847
4851
|
[C.value]
|
|
4848
4852
|
), we = o === "popper" ? Fn : zi, re = we === Fn ? {
|
|
@@ -4867,23 +4871,23 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
|
|
|
4867
4871
|
itemRefCallback: ne,
|
|
4868
4872
|
selectedItem: x,
|
|
4869
4873
|
onItemLeave: ve,
|
|
4870
|
-
itemTextRefCallback:
|
|
4874
|
+
itemTextRefCallback: ue,
|
|
4871
4875
|
focusSelectedItem: B,
|
|
4872
4876
|
selectedItemText: T,
|
|
4873
4877
|
position: o,
|
|
4874
4878
|
isPositioned: $,
|
|
4875
4879
|
searchRef: j,
|
|
4876
|
-
children: /* @__PURE__ */ p(eo, { as:
|
|
4880
|
+
children: /* @__PURE__ */ p(eo, { as: jd, allowPinchZoom: !0, children: /* @__PURE__ */ p(
|
|
4877
4881
|
Kn,
|
|
4878
4882
|
{
|
|
4879
4883
|
asChild: !0,
|
|
4880
4884
|
trapped: C.open,
|
|
4881
|
-
onMountAutoFocus: (
|
|
4882
|
-
|
|
4885
|
+
onMountAutoFocus: (I) => {
|
|
4886
|
+
I.preventDefault();
|
|
4883
4887
|
},
|
|
4884
|
-
onUnmountAutoFocus: N(r, (
|
|
4888
|
+
onUnmountAutoFocus: N(r, (I) => {
|
|
4885
4889
|
var W;
|
|
4886
|
-
(W = C.trigger) == null || W.focus({ preventScroll: !0 }),
|
|
4890
|
+
(W = C.trigger) == null || W.focus({ preventScroll: !0 }), I.preventDefault();
|
|
4887
4891
|
}),
|
|
4888
4892
|
children: /* @__PURE__ */ p(
|
|
4889
4893
|
Hn,
|
|
@@ -4892,7 +4896,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
|
|
|
4892
4896
|
disableOutsidePointerEvents: !0,
|
|
4893
4897
|
onEscapeKeyDown: i,
|
|
4894
4898
|
onPointerDownOutside: a,
|
|
4895
|
-
onFocusOutside: (
|
|
4899
|
+
onFocusOutside: (I) => I.preventDefault(),
|
|
4896
4900
|
onDismiss: () => C.onOpenChange(!1),
|
|
4897
4901
|
children: /* @__PURE__ */ p(
|
|
4898
4902
|
we,
|
|
@@ -4901,7 +4905,7 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
|
|
|
4901
4905
|
id: C.contentId,
|
|
4902
4906
|
"data-state": C.open ? "open" : "closed",
|
|
4903
4907
|
dir: C.dir,
|
|
4904
|
-
onContextMenu: (
|
|
4908
|
+
onContextMenu: (I) => I.preventDefault(),
|
|
4905
4909
|
...y,
|
|
4906
4910
|
...re,
|
|
4907
4911
|
onPlaced: () => F(!0),
|
|
@@ -4914,15 +4918,15 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
|
|
|
4914
4918
|
outline: "none",
|
|
4915
4919
|
...y.style
|
|
4916
4920
|
},
|
|
4917
|
-
onKeyDown: N(y.onKeyDown, (
|
|
4918
|
-
const W =
|
|
4919
|
-
if (
|
|
4921
|
+
onKeyDown: N(y.onKeyDown, (I) => {
|
|
4922
|
+
const W = I.ctrlKey || I.altKey || I.metaKey;
|
|
4923
|
+
if (I.key === "Tab" && I.preventDefault(), !W && I.key.length === 1 && q(I.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(I.key)) {
|
|
4920
4924
|
let H = L().filter((V) => !V.disabled).map((V) => V.ref.current);
|
|
4921
|
-
if (["ArrowUp", "End"].includes(
|
|
4922
|
-
const V =
|
|
4925
|
+
if (["ArrowUp", "End"].includes(I.key) && (H = H.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(I.key)) {
|
|
4926
|
+
const V = I.target, z = H.indexOf(V);
|
|
4923
4927
|
H = H.slice(z + 1);
|
|
4924
4928
|
}
|
|
4925
|
-
setTimeout(() => O(H)),
|
|
4929
|
+
setTimeout(() => O(H)), I.preventDefault();
|
|
4926
4930
|
}
|
|
4927
4931
|
})
|
|
4928
4932
|
}
|
|
@@ -4935,13 +4939,13 @@ var ye = 10, [Ki, Ve] = ct(Ye), Gd = "SelectContentImpl", zd = /* @__PURE__ */ h
|
|
|
4935
4939
|
);
|
|
4936
4940
|
}
|
|
4937
4941
|
);
|
|
4938
|
-
Gi.displayName =
|
|
4939
|
-
var
|
|
4942
|
+
Gi.displayName = zd;
|
|
4943
|
+
var Yd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
|
|
4940
4944
|
const { __scopeSelect: n, onPlaced: o, ...r } = e, i = $e(Ye, n), a = Ve(Ye, n), [s, c] = d.useState(null), [l, f] = d.useState(null), u = Z(t, (E) => f(E)), m = cn(n), g = d.useRef(!1), w = d.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: C } = a, b = d.useCallback(() => {
|
|
4941
4945
|
if (i.trigger && i.valueNode && s && l && h && v && y) {
|
|
4942
|
-
const E = i.trigger.getBoundingClientRect(), x = l.getBoundingClientRect(),
|
|
4946
|
+
const E = i.trigger.getBoundingClientRect(), x = l.getBoundingClientRect(), M = i.valueNode.getBoundingClientRect(), T = y.getBoundingClientRect();
|
|
4943
4947
|
if (i.dir !== "rtl") {
|
|
4944
|
-
const V = T.left - x.left, z =
|
|
4948
|
+
const V = T.left - x.left, z = M.left - V, ie = E.left - z, me = E.width + ie, Be = Math.max(me, x.width), We = window.innerWidth - ye, Ue = qo(z, [
|
|
4945
4949
|
ye,
|
|
4946
4950
|
// Prevents the content from going off the starting edge of the
|
|
4947
4951
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -4952,14 +4956,14 @@ var jd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
|
|
|
4952
4956
|
]);
|
|
4953
4957
|
s.style.minWidth = me + "px", s.style.left = Ue + "px";
|
|
4954
4958
|
} else {
|
|
4955
|
-
const V = x.right - T.right, z = window.innerWidth -
|
|
4959
|
+
const V = x.right - T.right, z = window.innerWidth - M.right - V, ie = window.innerWidth - E.right - z, me = E.width + ie, Be = Math.max(me, x.width), We = window.innerWidth - ye, Ue = qo(z, [
|
|
4956
4960
|
ye,
|
|
4957
4961
|
Math.max(ye, We - Be)
|
|
4958
4962
|
]);
|
|
4959
4963
|
s.style.minWidth = me + "px", s.style.right = Ue + "px";
|
|
4960
4964
|
}
|
|
4961
|
-
const D = m(), L = window.innerHeight - ye * 2, $ = h.scrollHeight, F = window.getComputedStyle(l), K = parseInt(F.borderTopWidth, 10), O = parseInt(F.paddingTop, 10), B = parseInt(F.borderBottomWidth, 10), _ = parseInt(F.paddingBottom, 10), P = K + O + $ + _ + B, j = Math.min(v.offsetHeight * 5, P), q = window.getComputedStyle(h), ne = parseInt(q.paddingTop, 10), ve = parseInt(q.paddingBottom, 10),
|
|
4962
|
-
if (W <=
|
|
4965
|
+
const D = m(), L = window.innerHeight - ye * 2, $ = h.scrollHeight, F = window.getComputedStyle(l), K = parseInt(F.borderTopWidth, 10), O = parseInt(F.paddingTop, 10), B = parseInt(F.borderBottomWidth, 10), _ = parseInt(F.paddingBottom, 10), P = K + O + $ + _ + B, j = Math.min(v.offsetHeight * 5, P), q = window.getComputedStyle(h), ne = parseInt(q.paddingTop, 10), ve = parseInt(q.paddingBottom, 10), ue = E.top + E.height / 2 - ye, we = L - ue, re = v.offsetHeight / 2, I = v.offsetTop + re, W = K + O + I, G = P - W;
|
|
4966
|
+
if (W <= ue) {
|
|
4963
4967
|
const V = D.length > 0 && v === D[D.length - 1].ref.current;
|
|
4964
4968
|
s.style.bottom = "0px";
|
|
4965
4969
|
const z = l.clientHeight - h.offsetTop - h.offsetHeight, ie = Math.max(
|
|
@@ -4972,11 +4976,11 @@ var jd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
|
|
|
4972
4976
|
const V = D.length > 0 && v === D[0].ref.current;
|
|
4973
4977
|
s.style.top = "0px";
|
|
4974
4978
|
const ie = Math.max(
|
|
4975
|
-
|
|
4979
|
+
ue,
|
|
4976
4980
|
K + h.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
4977
4981
|
(V ? ne : 0) + re
|
|
4978
4982
|
) + G;
|
|
4979
|
-
s.style.height = ie + "px", h.scrollTop = W -
|
|
4983
|
+
s.style.height = ie + "px", h.scrollTop = W - ue + h.offsetTop;
|
|
4980
4984
|
}
|
|
4981
4985
|
s.style.margin = `${ye}px 0`, s.style.minHeight = j + "px", s.style.maxHeight = L + "px", o == null || o(), requestAnimationFrame(() => g.current = !0);
|
|
4982
4986
|
}
|
|
@@ -5004,7 +5008,7 @@ var jd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
|
|
|
5004
5008
|
[b, C]
|
|
5005
5009
|
);
|
|
5006
5010
|
return /* @__PURE__ */ p(
|
|
5007
|
-
|
|
5011
|
+
Zd,
|
|
5008
5012
|
{
|
|
5009
5013
|
scope: n,
|
|
5010
5014
|
contentWrapper: s,
|
|
@@ -5040,8 +5044,8 @@ var jd = "SelectItemAlignedPosition", zi = d.forwardRef((e, t) => {
|
|
|
5040
5044
|
}
|
|
5041
5045
|
);
|
|
5042
5046
|
});
|
|
5043
|
-
zi.displayName =
|
|
5044
|
-
var
|
|
5047
|
+
zi.displayName = Yd;
|
|
5048
|
+
var Xd = "SelectPopperPosition", Fn = d.forwardRef((e, t) => {
|
|
5045
5049
|
const {
|
|
5046
5050
|
__scopeSelect: n,
|
|
5047
5051
|
align: o = "start",
|
|
@@ -5069,8 +5073,8 @@ var Yd = "SelectPopperPosition", Fn = d.forwardRef((e, t) => {
|
|
|
5069
5073
|
}
|
|
5070
5074
|
);
|
|
5071
5075
|
});
|
|
5072
|
-
Fn.displayName =
|
|
5073
|
-
var [
|
|
5076
|
+
Fn.displayName = Xd;
|
|
5077
|
+
var [Zd, co] = ct(Ye, {}), Ln = "SelectViewport", ji = d.forwardRef(
|
|
5074
5078
|
(e, t) => {
|
|
5075
5079
|
const { __scopeSelect: n, nonce: o, ...r } = e, i = Ve(Ln, n), a = co(Ln, n), s = Z(t, i.onViewportChange), c = d.useRef(0);
|
|
5076
5080
|
return /* @__PURE__ */ k(zt, { children: [
|
|
@@ -5123,21 +5127,21 @@ var [Xd, co] = ct(Ye, {}), Ln = "SelectViewport", ji = d.forwardRef(
|
|
|
5123
5127
|
}
|
|
5124
5128
|
);
|
|
5125
5129
|
ji.displayName = Ln;
|
|
5126
|
-
var Yi = "SelectGroup", [
|
|
5130
|
+
var Yi = "SelectGroup", [qd, Jd] = ct(Yi), Qd = d.forwardRef(
|
|
5127
5131
|
(e, t) => {
|
|
5128
5132
|
const { __scopeSelect: n, ...o } = e, r = Ge();
|
|
5129
|
-
return /* @__PURE__ */ p(
|
|
5133
|
+
return /* @__PURE__ */ p(qd, { scope: n, id: r, children: /* @__PURE__ */ p(U.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
|
|
5130
5134
|
}
|
|
5131
5135
|
);
|
|
5132
|
-
|
|
5133
|
-
var Xi = "SelectLabel",
|
|
5136
|
+
Qd.displayName = Yi;
|
|
5137
|
+
var Xi = "SelectLabel", ef = d.forwardRef(
|
|
5134
5138
|
(e, t) => {
|
|
5135
|
-
const { __scopeSelect: n, ...o } = e, r =
|
|
5139
|
+
const { __scopeSelect: n, ...o } = e, r = Jd(Xi, n);
|
|
5136
5140
|
return /* @__PURE__ */ p(U.div, { id: r.id, ...o, ref: t });
|
|
5137
5141
|
}
|
|
5138
5142
|
);
|
|
5139
|
-
|
|
5140
|
-
var Gt = "SelectItem", [
|
|
5143
|
+
ef.displayName = Xi;
|
|
5144
|
+
var Gt = "SelectItem", [tf, Zi] = ct(Gt), qi = d.forwardRef(
|
|
5141
5145
|
(e, t) => {
|
|
5142
5146
|
const {
|
|
5143
5147
|
__scopeSelect: n,
|
|
@@ -5159,7 +5163,7 @@ var Gt = "SelectItem", [ef, Zi] = ct(Gt), qi = d.forwardRef(
|
|
|
5159
5163
|
"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."
|
|
5160
5164
|
);
|
|
5161
5165
|
return /* @__PURE__ */ p(
|
|
5162
|
-
|
|
5166
|
+
tf,
|
|
5163
5167
|
{
|
|
5164
5168
|
scope: n,
|
|
5165
5169
|
value: o,
|
|
@@ -5210,7 +5214,7 @@ var Gt = "SelectItem", [ef, Zi] = ct(Gt), qi = d.forwardRef(
|
|
|
5210
5214
|
}),
|
|
5211
5215
|
onKeyDown: N(a.onKeyDown, (C) => {
|
|
5212
5216
|
var S;
|
|
5213
|
-
((S = c.searchRef) == null ? void 0 : S.current) !== "" && C.key === " " || (
|
|
5217
|
+
((S = c.searchRef) == null ? void 0 : S.current) !== "" && C.key === " " || (Vd.includes(C.key) && y(), C.key === " " && C.preventDefault());
|
|
5214
5218
|
})
|
|
5215
5219
|
}
|
|
5216
5220
|
)
|
|
@@ -5223,7 +5227,7 @@ var Gt = "SelectItem", [ef, Zi] = ct(Gt), qi = d.forwardRef(
|
|
|
5223
5227
|
qi.displayName = Gt;
|
|
5224
5228
|
var ft = "SelectItemText", Ji = d.forwardRef(
|
|
5225
5229
|
(e, t) => {
|
|
5226
|
-
const { __scopeSelect: n, className: o, style: r, ...i } = e, a = $e(ft, n), s = Ve(ft, n), c = Zi(ft, n), l =
|
|
5230
|
+
const { __scopeSelect: n, className: o, style: r, ...i } = e, a = $e(ft, n), s = Ve(ft, n), c = Zi(ft, n), l = Hd(ft, n), [f, u] = d.useState(null), m = Z(
|
|
5227
5231
|
t,
|
|
5228
5232
|
(y) => u(y),
|
|
5229
5233
|
c.onItemTextChange,
|
|
@@ -5249,7 +5253,7 @@ var Qi = "SelectItemIndicator", es = d.forwardRef(
|
|
|
5249
5253
|
}
|
|
5250
5254
|
);
|
|
5251
5255
|
es.displayName = Qi;
|
|
5252
|
-
var $n = "SelectScrollUpButton",
|
|
5256
|
+
var $n = "SelectScrollUpButton", nf = d.forwardRef((e, t) => {
|
|
5253
5257
|
const n = Ve($n, e.__scopeSelect), o = co($n, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
|
|
5254
5258
|
return oe(() => {
|
|
5255
5259
|
if (n.viewport && n.isPositioned) {
|
|
@@ -5272,8 +5276,8 @@ var $n = "SelectScrollUpButton", tf = d.forwardRef((e, t) => {
|
|
|
5272
5276
|
}
|
|
5273
5277
|
) : null;
|
|
5274
5278
|
});
|
|
5275
|
-
|
|
5276
|
-
var Vn = "SelectScrollDownButton",
|
|
5279
|
+
nf.displayName = $n;
|
|
5280
|
+
var Vn = "SelectScrollDownButton", of = d.forwardRef((e, t) => {
|
|
5277
5281
|
const n = Ve(Vn, e.__scopeSelect), o = co(Vn, e.__scopeSelect), [r, i] = d.useState(!1), a = Z(t, o.onScrollButtonChange);
|
|
5278
5282
|
return oe(() => {
|
|
5279
5283
|
if (n.viewport && n.isPositioned) {
|
|
@@ -5296,7 +5300,7 @@ var Vn = "SelectScrollDownButton", nf = d.forwardRef((e, t) => {
|
|
|
5296
5300
|
}
|
|
5297
5301
|
) : null;
|
|
5298
5302
|
});
|
|
5299
|
-
|
|
5303
|
+
of.displayName = Vn;
|
|
5300
5304
|
var ts = d.forwardRef((e, t) => {
|
|
5301
5305
|
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, i = Ve("SelectScrollButton", n), a = d.useRef(null), s = cn(n), c = d.useCallback(() => {
|
|
5302
5306
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
@@ -5324,23 +5328,23 @@ var ts = d.forwardRef((e, t) => {
|
|
|
5324
5328
|
})
|
|
5325
5329
|
}
|
|
5326
5330
|
);
|
|
5327
|
-
}),
|
|
5331
|
+
}), rf = "SelectSeparator", sf = d.forwardRef(
|
|
5328
5332
|
(e, t) => {
|
|
5329
5333
|
const { __scopeSelect: n, ...o } = e;
|
|
5330
5334
|
return /* @__PURE__ */ p(U.div, { "aria-hidden": !0, ...o, ref: t });
|
|
5331
5335
|
}
|
|
5332
5336
|
);
|
|
5333
|
-
|
|
5334
|
-
var Bn = "SelectArrow",
|
|
5337
|
+
sf.displayName = rf;
|
|
5338
|
+
var Bn = "SelectArrow", af = d.forwardRef(
|
|
5335
5339
|
(e, t) => {
|
|
5336
5340
|
const { __scopeSelect: n, ...o } = e, r = ln(n), i = $e(Bn, n), a = Ve(Bn, n);
|
|
5337
5341
|
return i.open && a.position === "popper" ? /* @__PURE__ */ p(Fr, { ...r, ...o, ref: t }) : null;
|
|
5338
5342
|
}
|
|
5339
5343
|
);
|
|
5340
|
-
|
|
5341
|
-
var
|
|
5344
|
+
af.displayName = Bn;
|
|
5345
|
+
var cf = "SelectBubbleInput", ns = d.forwardRef(
|
|
5342
5346
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
5343
|
-
const r = d.useRef(null), i = Z(o, r), a =
|
|
5347
|
+
const r = d.useRef(null), i = Z(o, r), a = kd(t);
|
|
5344
5348
|
return d.useEffect(() => {
|
|
5345
5349
|
const s = r.current;
|
|
5346
5350
|
if (!s) return;
|
|
@@ -5363,12 +5367,12 @@ var af = "SelectBubbleInput", ns = d.forwardRef(
|
|
|
5363
5367
|
);
|
|
5364
5368
|
}
|
|
5365
5369
|
);
|
|
5366
|
-
ns.displayName =
|
|
5370
|
+
ns.displayName = cf;
|
|
5367
5371
|
function os(e) {
|
|
5368
5372
|
return e === "" || e === void 0;
|
|
5369
5373
|
}
|
|
5370
5374
|
function rs(e) {
|
|
5371
|
-
const t =
|
|
5375
|
+
const t = Me(e), n = d.useRef(""), o = d.useRef(0), r = d.useCallback(
|
|
5372
5376
|
(a) => {
|
|
5373
5377
|
const s = n.current + a;
|
|
5374
5378
|
t(s), (function c(l) {
|
|
@@ -5383,54 +5387,54 @@ function rs(e) {
|
|
|
5383
5387
|
}
|
|
5384
5388
|
function is(e, t, n) {
|
|
5385
5389
|
const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
|
|
5386
|
-
let a =
|
|
5390
|
+
let a = lf(e, Math.max(i, 0));
|
|
5387
5391
|
r.length === 1 && (a = a.filter((l) => l !== n));
|
|
5388
5392
|
const c = a.find(
|
|
5389
5393
|
(l) => l.textValue.toLowerCase().startsWith(r.toLowerCase())
|
|
5390
5394
|
);
|
|
5391
5395
|
return c !== n ? c : void 0;
|
|
5392
5396
|
}
|
|
5393
|
-
function
|
|
5397
|
+
function lf(e, t) {
|
|
5394
5398
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
5395
5399
|
}
|
|
5396
|
-
var
|
|
5397
|
-
function
|
|
5398
|
-
return /* @__PURE__ */ p(
|
|
5400
|
+
var uf = Fi, df = $i, ff = Bi, pf = Wi, mf = Ui, hf = Hi, gf = ji, vf = qi, wf = Ji, yf = es;
|
|
5401
|
+
function bf({ value: e, onValueChange: t, children: n }) {
|
|
5402
|
+
return /* @__PURE__ */ p(uf, { value: e, onValueChange: t, children: n });
|
|
5399
5403
|
}
|
|
5400
|
-
function
|
|
5401
|
-
return /* @__PURE__ */ k(
|
|
5404
|
+
function Cf({ className: e, children: t }) {
|
|
5405
|
+
return /* @__PURE__ */ k(df, { className: X("snow-select-trigger", e), children: [
|
|
5402
5406
|
t,
|
|
5403
|
-
/* @__PURE__ */ p(
|
|
5407
|
+
/* @__PURE__ */ p(pf, { asChild: !0, children: /* @__PURE__ */ p(zs, { className: "snow-select-icon" }) })
|
|
5404
5408
|
] });
|
|
5405
5409
|
}
|
|
5406
|
-
function
|
|
5407
|
-
return /* @__PURE__ */ p(
|
|
5410
|
+
function Sf({ placeholder: e }) {
|
|
5411
|
+
return /* @__PURE__ */ p(ff, { placeholder: e });
|
|
5408
5412
|
}
|
|
5409
|
-
function
|
|
5410
|
-
return /* @__PURE__ */ p(
|
|
5411
|
-
|
|
5413
|
+
function xf({ children: e }) {
|
|
5414
|
+
return /* @__PURE__ */ p(mf, { children: /* @__PURE__ */ p(
|
|
5415
|
+
hf,
|
|
5412
5416
|
{
|
|
5413
5417
|
className: "snow-select-content",
|
|
5414
5418
|
position: "popper",
|
|
5415
5419
|
sideOffset: 4,
|
|
5416
|
-
children: /* @__PURE__ */ p(
|
|
5420
|
+
children: /* @__PURE__ */ p(gf, { className: "snow-select-viewport", children: e })
|
|
5417
5421
|
}
|
|
5418
5422
|
) });
|
|
5419
5423
|
}
|
|
5420
|
-
function
|
|
5421
|
-
return /* @__PURE__ */ k(
|
|
5422
|
-
/* @__PURE__ */ p("span", { className: "snow-select-item-indicator", children: /* @__PURE__ */ p(
|
|
5423
|
-
/* @__PURE__ */ p(
|
|
5424
|
+
function Ef({ value: e, children: t }) {
|
|
5425
|
+
return /* @__PURE__ */ k(vf, { value: e, className: "snow-select-item", children: [
|
|
5426
|
+
/* @__PURE__ */ p("span", { className: "snow-select-item-indicator", children: /* @__PURE__ */ p(yf, { children: /* @__PURE__ */ p(tr, { className: "snow-size-4" }) }) }),
|
|
5427
|
+
/* @__PURE__ */ p(wf, { children: t })
|
|
5424
5428
|
] });
|
|
5425
5429
|
}
|
|
5426
5430
|
const Re = {
|
|
5427
|
-
Root:
|
|
5428
|
-
Trigger:
|
|
5429
|
-
Value:
|
|
5430
|
-
Content:
|
|
5431
|
-
Item:
|
|
5431
|
+
Root: bf,
|
|
5432
|
+
Trigger: Cf,
|
|
5433
|
+
Value: Sf,
|
|
5434
|
+
Content: xf,
|
|
5435
|
+
Item: Ef
|
|
5432
5436
|
}, un = [25, 50, 100];
|
|
5433
|
-
function
|
|
5437
|
+
function Rf({ table: e, isLoading: t }) {
|
|
5434
5438
|
return /* @__PURE__ */ p("div", { className: "snow-pagination", children: /* @__PURE__ */ k("div", { className: "snow-pagination-controls", children: [
|
|
5435
5439
|
/* @__PURE__ */ p(
|
|
5436
5440
|
Ae,
|
|
@@ -5451,7 +5455,7 @@ function Ef({ table: e, isLoading: t }) {
|
|
|
5451
5455
|
}
|
|
5452
5456
|
),
|
|
5453
5457
|
/* @__PURE__ */ k("div", { className: "snow-pagination-display", children: [
|
|
5454
|
-
/* @__PURE__ */ p("div", { className: "snow-pagination-current", children: t ? /* @__PURE__ */ p(
|
|
5458
|
+
/* @__PURE__ */ p("div", { className: "snow-pagination-current", children: t ? /* @__PURE__ */ p(Ks, { className: "snow-size-4 snow-animate-spin" }) : e.getState().pagination.pageIndex + 1 }),
|
|
5455
5459
|
/* @__PURE__ */ k("span", { className: "snow-pagination-total", children: [
|
|
5456
5460
|
"de ",
|
|
5457
5461
|
e.getPageCount()
|
|
@@ -5477,7 +5481,7 @@ function Ef({ table: e, isLoading: t }) {
|
|
|
5477
5481
|
)
|
|
5478
5482
|
] }) });
|
|
5479
5483
|
}
|
|
5480
|
-
function
|
|
5484
|
+
function Af({
|
|
5481
5485
|
table: e,
|
|
5482
5486
|
paginationSizes: t = un,
|
|
5483
5487
|
enableElementLabel: n = !0
|
|
@@ -5500,9 +5504,9 @@ function Rf({
|
|
|
5500
5504
|
)
|
|
5501
5505
|
] });
|
|
5502
5506
|
}
|
|
5503
|
-
var dn = "Tabs", [
|
|
5507
|
+
var dn = "Tabs", [Pf] = Xe(dn, [
|
|
5504
5508
|
tn
|
|
5505
|
-
]), ss = tn(), [
|
|
5509
|
+
]), ss = tn(), [Tf, lo] = Pf(dn), as = d.forwardRef(
|
|
5506
5510
|
(e, t) => {
|
|
5507
5511
|
const {
|
|
5508
5512
|
__scopeTabs: n,
|
|
@@ -5520,7 +5524,7 @@ var dn = "Tabs", [Af] = Xe(dn, [
|
|
|
5520
5524
|
caller: dn
|
|
5521
5525
|
});
|
|
5522
5526
|
return /* @__PURE__ */ p(
|
|
5523
|
-
|
|
5527
|
+
Tf,
|
|
5524
5528
|
{
|
|
5525
5529
|
scope: n,
|
|
5526
5530
|
baseId: Ge(),
|
|
@@ -5608,7 +5612,7 @@ var us = "TabsTrigger", ds = d.forwardRef(
|
|
|
5608
5612
|
}
|
|
5609
5613
|
);
|
|
5610
5614
|
ds.displayName = us;
|
|
5611
|
-
var fs = "TabsContent",
|
|
5615
|
+
var fs = "TabsContent", Mf = d.forwardRef(
|
|
5612
5616
|
(e, t) => {
|
|
5613
5617
|
const { __scopeTabs: n, value: o, forceMount: r, children: i, ...a } = e, s = lo(fs, n), c = ps(s.baseId, o), l = ms(s.baseId, o), f = o === s.value, u = d.useRef(f);
|
|
5614
5618
|
return d.useEffect(() => {
|
|
@@ -5635,31 +5639,31 @@ var fs = "TabsContent", Tf = d.forwardRef(
|
|
|
5635
5639
|
) });
|
|
5636
5640
|
}
|
|
5637
5641
|
);
|
|
5638
|
-
|
|
5642
|
+
Mf.displayName = fs;
|
|
5639
5643
|
function ps(e, t) {
|
|
5640
5644
|
return `${e}-trigger-${t}`;
|
|
5641
5645
|
}
|
|
5642
5646
|
function ms(e, t) {
|
|
5643
5647
|
return `${e}-content-${t}`;
|
|
5644
5648
|
}
|
|
5645
|
-
var If = as,
|
|
5646
|
-
function
|
|
5649
|
+
var If = as, Nf = ls, _f = ds;
|
|
5650
|
+
function Of({ value: e, onValueChange: t, children: n }) {
|
|
5647
5651
|
return /* @__PURE__ */ p(If, { value: e, onValueChange: t, children: n });
|
|
5648
5652
|
}
|
|
5649
|
-
function
|
|
5650
|
-
return /* @__PURE__ */ p(
|
|
5653
|
+
function Df({ children: e, className: t }) {
|
|
5654
|
+
return /* @__PURE__ */ p(Nf, { className: X("snow-tabs-list", t), children: e });
|
|
5651
5655
|
}
|
|
5652
|
-
function
|
|
5653
|
-
return /* @__PURE__ */ p(
|
|
5656
|
+
function kf({ value: e, children: t }) {
|
|
5657
|
+
return /* @__PURE__ */ p(_f, { value: e, className: "snow-tabs-trigger", children: t });
|
|
5654
5658
|
}
|
|
5655
5659
|
const En = {
|
|
5656
|
-
Root:
|
|
5657
|
-
List:
|
|
5658
|
-
Trigger:
|
|
5660
|
+
Root: Of,
|
|
5661
|
+
List: Df,
|
|
5662
|
+
Trigger: kf
|
|
5659
5663
|
};
|
|
5660
|
-
function
|
|
5664
|
+
function Ff({ prefilters: e, activePrefilter: t, onPrefilterChange: n }) {
|
|
5661
5665
|
var s;
|
|
5662
|
-
const o =
|
|
5666
|
+
const o = js(), r = at(), i = e.find((c) => c.id === t), a = e.length > 0 && t !== ((s = e[0]) == null ? void 0 : s.id);
|
|
5663
5667
|
return o || e.length > 4 ? /* @__PURE__ */ k(Re.Root, { value: t, onValueChange: n, children: [
|
|
5664
5668
|
/* @__PURE__ */ p(Re.Trigger, { className: `snow-w-fit snow-min-w-32 ${a ? "snow-state-active" : ""}`, children: /* @__PURE__ */ p(Re.Value, { children: (i == null ? void 0 : i.label) || r("dataTable.selectFilter") }) }),
|
|
5665
5669
|
/* @__PURE__ */ p(Re.Content, { children: e.map((c) => /* @__PURE__ */ p(Re.Item, { value: c.id, children: c.label }, c.id)) })
|
|
@@ -5681,15 +5685,15 @@ const uo = er(
|
|
|
5681
5685
|
)
|
|
5682
5686
|
);
|
|
5683
5687
|
uo.displayName = "Input";
|
|
5684
|
-
const
|
|
5685
|
-
function
|
|
5688
|
+
const Lf = 500;
|
|
5689
|
+
function $f({ value: e = "", onDebouncedChange: t, placeholder: n }) {
|
|
5686
5690
|
const [o, r] = ae(e);
|
|
5687
5691
|
pt(() => {
|
|
5688
5692
|
r(e);
|
|
5689
5693
|
}, [e]), pt(() => {
|
|
5690
5694
|
const a = setTimeout(() => {
|
|
5691
5695
|
o !== e && (t == null || t(o));
|
|
5692
|
-
},
|
|
5696
|
+
}, Lf);
|
|
5693
5697
|
return () => clearTimeout(a);
|
|
5694
5698
|
}, [o, e, t]);
|
|
5695
5699
|
const i = o.length > 0;
|
|
@@ -5708,7 +5712,7 @@ function Lf({ value: e = "", onDebouncedChange: t, placeholder: n }) {
|
|
|
5708
5712
|
/* @__PURE__ */ p("span", { className: "snow-searchbar-icon", children: /* @__PURE__ */ p(nr, { className: X(i ? "snow-state-active-text" : "snow-text-muted-foreground") }) })
|
|
5709
5713
|
] }) });
|
|
5710
5714
|
}
|
|
5711
|
-
function
|
|
5715
|
+
function Vf({
|
|
5712
5716
|
filter: e,
|
|
5713
5717
|
selectedValues: t = [],
|
|
5714
5718
|
onFilterChange: n
|
|
@@ -5734,7 +5738,7 @@ function $f({
|
|
|
5734
5738
|
return /* @__PURE__ */ k(ee.Root, { children: [
|
|
5735
5739
|
/* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ k(Ae, { className: X("snow-filter-btn snow-w-full snow-justify-between", a > 0 && "snow-state-active"), children: [
|
|
5736
5740
|
/* @__PURE__ */ k("div", { className: "snow-filter-btn-content", children: [
|
|
5737
|
-
/* @__PURE__ */ p(Ws, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }),
|
|
5741
|
+
e.multipleSelection ? /* @__PURE__ */ p(Us, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }) : /* @__PURE__ */ p(Ws, { className: X("snow-size-4 snow-shrink-0", a > 0 && "snow-state-active-text") }),
|
|
5738
5742
|
/* @__PURE__ */ p("span", { className: "snow-truncate", children: u() })
|
|
5739
5743
|
] }),
|
|
5740
5744
|
/* @__PURE__ */ p(Wn, { className: "snow-size-3\\\\.5 snow-opacity-50 snow-shrink-0" })
|
|
@@ -5767,12 +5771,12 @@ function $f({
|
|
|
5767
5771
|
)),
|
|
5768
5772
|
a > 0 && /* @__PURE__ */ k(zt, { children: [
|
|
5769
5773
|
/* @__PURE__ */ p(ee.Separator, {}),
|
|
5770
|
-
/* @__PURE__ */ p(ee.Item, { onClick: f, className: "snow-text-xs snow-cursor-pointer", children: o("dataTable.resetFilters") })
|
|
5774
|
+
/* @__PURE__ */ p(ee.Item, { onClick: f, className: "snow-text-xs snow-cursor-pointer snow-text-center snow-text-muted-foreground", children: o("dataTable.resetFilters") })
|
|
5771
5775
|
] })
|
|
5772
5776
|
] })
|
|
5773
5777
|
] });
|
|
5774
5778
|
}
|
|
5775
|
-
function
|
|
5779
|
+
function Bf({ column: e }) {
|
|
5776
5780
|
return e.getCanSort() === !1 ? null : e.getIsSorted() ? e.getIsSorted() === "desc" ? /* @__PURE__ */ p(Wn, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(ks, { className: "snow-sort-icon" }) : /* @__PURE__ */ p(Bs, { className: "snow-sort-icon" });
|
|
5777
5781
|
}
|
|
5778
5782
|
function hs({
|
|
@@ -5810,7 +5814,7 @@ function hs({
|
|
|
5810
5814
|
// UI options
|
|
5811
5815
|
onRowClick: E,
|
|
5812
5816
|
activeRowId: x,
|
|
5813
|
-
displayTotalNumber:
|
|
5817
|
+
displayTotalNumber: M = !0,
|
|
5814
5818
|
enableElementLabel: T = !0,
|
|
5815
5819
|
enablePagination: D = !0,
|
|
5816
5820
|
paginationSizes: L,
|
|
@@ -5823,7 +5827,7 @@ function hs({
|
|
|
5823
5827
|
const O = at(), [B, _] = ae({
|
|
5824
5828
|
pageIndex: 0,
|
|
5825
5829
|
pageSize: un[0]
|
|
5826
|
-
}), [P, j] = ae(""), [q, ne] = ae({}), [ve,
|
|
5830
|
+
}), [P, j] = ae(""), [q, ne] = ae({}), [ve, ue] = ae([]), [we, re] = ae({}), I = i ?? B, W = a ?? _, G = c ?? P, H = l ?? j, V = m ?? q, z = g ?? ne, ie = y ?? ve, me = C ?? ue, Be = S ?? we, We = R ?? re, Ue = be(
|
|
5827
5831
|
(Y) => {
|
|
5828
5832
|
H(Y), W((J) => ({ ...J, pageIndex: 0 }));
|
|
5829
5833
|
},
|
|
@@ -5832,15 +5836,15 @@ function hs({
|
|
|
5832
5836
|
pt(() => {
|
|
5833
5837
|
W((Y) => Y.pageIndex === 0 ? Y : { ...Y, pageIndex: 0 });
|
|
5834
5838
|
}, [h, fn, W]);
|
|
5835
|
-
const te = r === "server", vs = s !== void 0 ? Math.ceil(s /
|
|
5839
|
+
const te = r === "server", vs = s !== void 0 ? Math.ceil(s / I.pageSize) : void 0, ws = !te || s !== void 0, fo = Ce(() => Object.entries(V).map(([Y, J]) => ({ id: Y, value: J })), [V]), ys = be((Y, J, Q) => {
|
|
5836
5840
|
const he = Y.getValue(J);
|
|
5837
5841
|
return Q.includes(String(he));
|
|
5838
|
-
}, []), _e =
|
|
5842
|
+
}, []), _e = Is({
|
|
5839
5843
|
data: e,
|
|
5840
5844
|
columns: t,
|
|
5841
5845
|
pageCount: te ? vs : void 0,
|
|
5842
5846
|
state: {
|
|
5843
|
-
pagination:
|
|
5847
|
+
pagination: I,
|
|
5844
5848
|
sorting: b ? ie : void 0,
|
|
5845
5849
|
globalFilter: !te && f ? G : void 0,
|
|
5846
5850
|
columnFilters: !te && (u != null && u.length) ? fo : void 0,
|
|
@@ -5863,17 +5867,17 @@ function hs({
|
|
|
5863
5867
|
filterFns: {
|
|
5864
5868
|
multiSelect: ys
|
|
5865
5869
|
},
|
|
5866
|
-
globalFilterFn: f ?
|
|
5870
|
+
globalFilterFn: f ? sa : void 0
|
|
5867
5871
|
} : {}
|
|
5868
5872
|
}), bs = (Y, J) => {
|
|
5869
5873
|
const Q = String(Y), he = { ...V };
|
|
5870
5874
|
J.length === 0 ? delete he[Q] : he[Q] = J, z(he);
|
|
5871
|
-
}, Cs = f ||
|
|
5875
|
+
}, Cs = f || M || u && u.length > 0 || A, Ss = Ce(() => te ? e.length : _e.getRowModel().rows.length, [te, e.length, _e]), xs = Ce(() => te && s !== void 0 ? s : _e.getFilteredRowModel().rows.length, [te, s, _e, e.length, G, fo]);
|
|
5872
5876
|
return /* @__PURE__ */ k("div", { className: "snow-table-container snow-table-root", "data-testid": "datatable", children: [
|
|
5873
5877
|
o && !n && /* @__PURE__ */ p("div", { className: "snow-table-loading-overlay" }),
|
|
5874
5878
|
Cs && /* @__PURE__ */ k("div", { className: "snow-table-top-bar", children: [
|
|
5875
5879
|
/* @__PURE__ */ p("div", { className: "snow-topbar-left", children: w && w.length > 0 && v && /* @__PURE__ */ p(
|
|
5876
|
-
|
|
5880
|
+
Ff,
|
|
5877
5881
|
{
|
|
5878
5882
|
prefilters: w,
|
|
5879
5883
|
activePrefilter: h ?? ((po = w[0]) == null ? void 0 : po.id) ?? "",
|
|
@@ -5881,7 +5885,7 @@ function hs({
|
|
|
5881
5885
|
}
|
|
5882
5886
|
) }),
|
|
5883
5887
|
/* @__PURE__ */ p("div", { className: "snow-topbar-center", children: f && /* @__PURE__ */ p("div", { className: "snow-w-full snow-max-w-sm", children: /* @__PURE__ */ p(
|
|
5884
|
-
|
|
5888
|
+
$f,
|
|
5885
5889
|
{
|
|
5886
5890
|
value: G,
|
|
5887
5891
|
onDebouncedChange: Ue,
|
|
@@ -5890,7 +5894,7 @@ function hs({
|
|
|
5890
5894
|
) }) }),
|
|
5891
5895
|
/* @__PURE__ */ k("div", { className: "snow-topbar-right", children: [
|
|
5892
5896
|
u == null ? void 0 : u.map((Y) => /* @__PURE__ */ p(
|
|
5893
|
-
|
|
5897
|
+
Vf,
|
|
5894
5898
|
{
|
|
5895
5899
|
filter: Y,
|
|
5896
5900
|
selectedValues: V[String(Y.key)],
|
|
@@ -5898,14 +5902,14 @@ function hs({
|
|
|
5898
5902
|
},
|
|
5899
5903
|
String(Y.key)
|
|
5900
5904
|
)),
|
|
5901
|
-
A && /* @__PURE__ */ p(
|
|
5905
|
+
A && /* @__PURE__ */ p(Od, { table: _e }),
|
|
5902
5906
|
(f || w && w.length > 0 || u && u.length > 0) && K && /* @__PURE__ */ p(
|
|
5903
5907
|
Ae,
|
|
5904
5908
|
{
|
|
5905
5909
|
onClick: K,
|
|
5906
5910
|
title: O("dataTable.resetFilters"),
|
|
5907
5911
|
"data-testid": "datatable-reset-filters",
|
|
5908
|
-
children: /* @__PURE__ */ p(
|
|
5912
|
+
children: /* @__PURE__ */ p(Hs, { className: "snow-size-4" })
|
|
5909
5913
|
}
|
|
5910
5914
|
)
|
|
5911
5915
|
] })
|
|
@@ -5931,13 +5935,13 @@ function hs({
|
|
|
5931
5935
|
},
|
|
5932
5936
|
children: J.isPlaceholder ? null : /* @__PURE__ */ k("span", { className: "snow-table-header-cell-content", children: [
|
|
5933
5937
|
/* @__PURE__ */ p("h3", { children: bo(J.column.columnDef.header, J.getContext()) }),
|
|
5934
|
-
b && /* @__PURE__ */ p(
|
|
5938
|
+
b && /* @__PURE__ */ p(Bf, { column: J.column })
|
|
5935
5939
|
] })
|
|
5936
5940
|
},
|
|
5937
5941
|
J.id
|
|
5938
5942
|
);
|
|
5939
5943
|
}) }, Y.id)) }),
|
|
5940
|
-
n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length:
|
|
5944
|
+
n ? /* @__PURE__ */ p("tbody", { className: "snow-divide-y snow-divide-border", "data-testid": "datatable-loading", children: Array.from({ length: I.pageSize > 10 ? 10 : I.pageSize }).map((Y, J) => /* @__PURE__ */ p("tr", { className: X({ "snow-table-row-alternate": J % 2 === 1 }), children: t.map((Q, he) => /* @__PURE__ */ p("td", { className: "snow-table-cell", children: /* @__PURE__ */ p(Dd, { className: "snow-h-4 snow-w-full" }) }, `skeleton-table-${he}`)) }, J)) }) : Ss > 0 ? /* @__PURE__ */ p(
|
|
5941
5945
|
"tbody",
|
|
5942
5946
|
{
|
|
5943
5947
|
className: X("snow-divide-y snow-divide-border", $ && "snow-responsive-tbody"),
|
|
@@ -5986,18 +5990,18 @@ function hs({
|
|
|
5986
5990
|
}
|
|
5987
5991
|
),
|
|
5988
5992
|
/* @__PURE__ */ k("div", { className: "snow-table-bottom-bar", children: [
|
|
5989
|
-
|
|
5993
|
+
M && /* @__PURE__ */ k("div", { className: "snow-table-count", "data-testid": "datatable-count", children: [
|
|
5990
5994
|
xs,
|
|
5991
5995
|
" ",
|
|
5992
5996
|
O("dataTable.elements")
|
|
5993
5997
|
] }),
|
|
5994
|
-
/* @__PURE__ */ p("div", { className: "snow-flex snow-justify-center", children: D && ws && /* @__PURE__ */ p(
|
|
5995
|
-
D && /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-end", children: /* @__PURE__ */ p(
|
|
5998
|
+
/* @__PURE__ */ p("div", { className: "snow-flex snow-justify-center", children: D && ws && /* @__PURE__ */ p(Rf, { table: _e, isLoading: o }) }),
|
|
5999
|
+
D && /* @__PURE__ */ p("div", { className: "snow-flex snow-justify-end", children: /* @__PURE__ */ p(Af, { table: _e, enableElementLabel: T, paginationSizes: L }) })
|
|
5996
6000
|
] })
|
|
5997
6001
|
] });
|
|
5998
6002
|
}
|
|
5999
|
-
function
|
|
6000
|
-
return
|
|
6003
|
+
function Wf({ label: e, x: t, y: n }) {
|
|
6004
|
+
return Ms(
|
|
6001
6005
|
/* @__PURE__ */ k("div", { style: {
|
|
6002
6006
|
position: "fixed",
|
|
6003
6007
|
left: t,
|
|
@@ -6018,8 +6022,8 @@ const Jo = {
|
|
|
6018
6022
|
info: "snow-variant-info",
|
|
6019
6023
|
success: "snow-variant-success"
|
|
6020
6024
|
};
|
|
6021
|
-
function
|
|
6022
|
-
const o =
|
|
6025
|
+
function Uf({ item: e, actions: t, onAction: n }) {
|
|
6026
|
+
const o = Md(), [r, i] = ae(null), a = be((u, m) => {
|
|
6023
6027
|
const g = m.getBoundingClientRect();
|
|
6024
6028
|
let w = g.left + g.width / 2;
|
|
6025
6029
|
const h = g.top - 8, v = window.innerWidth - 8, y = 8, C = u.length * 7 + 16;
|
|
@@ -6039,7 +6043,7 @@ function Wf({ item: e, actions: t, onAction: n }) {
|
|
|
6039
6043
|
[n, e]
|
|
6040
6044
|
);
|
|
6041
6045
|
return /* @__PURE__ */ k("div", { className: "snow-action-cell", children: [
|
|
6042
|
-
r && /* @__PURE__ */ p(
|
|
6046
|
+
r && /* @__PURE__ */ p(Wf, { ...r }),
|
|
6043
6047
|
c.map((u, m) => {
|
|
6044
6048
|
const g = typeof u == "function" ? u(e) : u, w = g.icon;
|
|
6045
6049
|
if (g.type === "link") {
|
|
@@ -6085,7 +6089,7 @@ function Wf({ item: e, actions: t, onAction: n }) {
|
|
|
6085
6089
|
);
|
|
6086
6090
|
}),
|
|
6087
6091
|
l.length > 0 && /* @__PURE__ */ k(ee.Root, { children: [
|
|
6088
|
-
/* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Ae, { className: "snow-btn-icon-lg", children: /* @__PURE__ */ p(
|
|
6092
|
+
/* @__PURE__ */ p(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ p(Ae, { className: "snow-btn-icon-lg", children: /* @__PURE__ */ p(Gs, { className: "snow-size-4" }) }) }),
|
|
6089
6093
|
/* @__PURE__ */ p(ee.Content, { align: "end", children: l.map((u, m) => {
|
|
6090
6094
|
const g = typeof u == "function" ? u(e) : u, w = g.icon, h = g.variant && Jo[g.variant] ? Jo[g.variant] : "";
|
|
6091
6095
|
if (g.type === "link") {
|
|
@@ -6121,7 +6125,7 @@ function Wf({ item: e, actions: t, onAction: n }) {
|
|
|
6121
6125
|
] })
|
|
6122
6126
|
] });
|
|
6123
6127
|
}
|
|
6124
|
-
const
|
|
6128
|
+
const Hf = Ps(Uf), gs = ({
|
|
6125
6129
|
columnConfig: e,
|
|
6126
6130
|
actions: t,
|
|
6127
6131
|
filters: n,
|
|
@@ -6168,7 +6172,7 @@ const Uf = Ps(Wf), gs = ({
|
|
|
6168
6172
|
meta: l.meta,
|
|
6169
6173
|
cell: ({ row: u }) => {
|
|
6170
6174
|
const m = u.original[l.key];
|
|
6171
|
-
return l.render ? l.render(u.original) :
|
|
6175
|
+
return l.render ? l.render(u.original) : Xs(m);
|
|
6172
6176
|
}
|
|
6173
6177
|
};
|
|
6174
6178
|
});
|
|
@@ -6180,12 +6184,12 @@ const Uf = Ps(Wf), gs = ({
|
|
|
6180
6184
|
},
|
|
6181
6185
|
enableSorting: !1,
|
|
6182
6186
|
enableHiding: !1,
|
|
6183
|
-
cell: ({ row: l }) => /* @__PURE__ */ p(
|
|
6187
|
+
cell: ({ row: l }) => /* @__PURE__ */ p(Hf, { item: l.original, actions: t, onAction: a })
|
|
6184
6188
|
}), c;
|
|
6185
6189
|
}, [e, t, n, o, r]),
|
|
6186
6190
|
handleAction: a
|
|
6187
6191
|
};
|
|
6188
|
-
},
|
|
6192
|
+
}, Qf = ({
|
|
6189
6193
|
queryKey: e,
|
|
6190
6194
|
columnConfig: t,
|
|
6191
6195
|
actions: n,
|
|
@@ -6221,7 +6225,7 @@ const Uf = Ps(Wf), gs = ({
|
|
|
6221
6225
|
}), { data: E = [], isLoading: x } = Qo({
|
|
6222
6226
|
queryKey: e,
|
|
6223
6227
|
queryFn: f
|
|
6224
|
-
}),
|
|
6228
|
+
}), M = Ce(() => !E || !v || !i ? E : E.filter((L) => i(L, v)), [E, v, i]), { columns: T } = gs({
|
|
6225
6229
|
columnConfig: t,
|
|
6226
6230
|
actions: n,
|
|
6227
6231
|
filters: o,
|
|
@@ -6231,7 +6235,7 @@ const Uf = Ps(Wf), gs = ({
|
|
|
6231
6235
|
hs,
|
|
6232
6236
|
{
|
|
6233
6237
|
mode: "client",
|
|
6234
|
-
data:
|
|
6238
|
+
data: M,
|
|
6235
6239
|
columns: T,
|
|
6236
6240
|
isLoading: x,
|
|
6237
6241
|
pagination: m,
|
|
@@ -6250,7 +6254,7 @@ const Uf = Ps(Wf), gs = ({
|
|
|
6250
6254
|
...u
|
|
6251
6255
|
}
|
|
6252
6256
|
);
|
|
6253
|
-
},
|
|
6257
|
+
}, ep = ({
|
|
6254
6258
|
queryKey: e,
|
|
6255
6259
|
columnConfig: t,
|
|
6256
6260
|
actions: n,
|
|
@@ -6263,7 +6267,7 @@ const Uf = Ps(Wf), gs = ({
|
|
|
6263
6267
|
fetchServerEndpoint: l,
|
|
6264
6268
|
...f
|
|
6265
6269
|
}) => {
|
|
6266
|
-
var x,
|
|
6270
|
+
var x, M, T;
|
|
6267
6271
|
const {
|
|
6268
6272
|
pagination: u,
|
|
6269
6273
|
setPagination: m,
|
|
@@ -6307,7 +6311,7 @@ const Uf = Ps(Wf), gs = ({
|
|
|
6307
6311
|
hs,
|
|
6308
6312
|
{
|
|
6309
6313
|
mode: "server",
|
|
6310
|
-
data: ((
|
|
6314
|
+
data: ((M = A.data) == null ? void 0 : M.items) ?? [],
|
|
6311
6315
|
columns: E,
|
|
6312
6316
|
isLoading: A.isLoading,
|
|
6313
6317
|
isFetching: A.isFetching,
|
|
@@ -6331,21 +6335,21 @@ const Uf = Ps(Wf), gs = ({
|
|
|
6331
6335
|
);
|
|
6332
6336
|
};
|
|
6333
6337
|
export {
|
|
6334
|
-
|
|
6335
|
-
|
|
6338
|
+
Hf as ActionCell,
|
|
6339
|
+
Od as ColumnConfiguration,
|
|
6336
6340
|
un as DEFAULT_PAGE_SIZES,
|
|
6337
6341
|
hs as DataTable,
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6342
|
+
Af as PageSizeSelector,
|
|
6343
|
+
Rf as Pagination,
|
|
6344
|
+
Ff as PrefilterTabs,
|
|
6345
|
+
$f as SearchBar,
|
|
6346
|
+
Vf as SingleFilterDropdown,
|
|
6347
|
+
Qf as SnowClientDataTable,
|
|
6348
|
+
ep as SnowServerDataTable,
|
|
6349
|
+
Bf as SortButton,
|
|
6350
|
+
Jf as isSnowTableSetup,
|
|
6351
|
+
Xf as redirectToPageWithParam,
|
|
6352
|
+
qf as setupSnowTable,
|
|
6349
6353
|
gs as useSnowColumns,
|
|
6350
6354
|
or as useTableStatePersist
|
|
6351
6355
|
};
|