@service_laboratory/auth 2.0.20 → 2.0.21
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.js +893 -877
- package/dist/index.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import F, { forwardRef as qt, createElement as Ke, useLayoutEffect as
|
|
2
|
+
import F, { forwardRef as qt, createElement as Ke, useLayoutEffect as Xi, useState as $r } from "react";
|
|
3
3
|
var Et = { exports: {} }, nt = {};
|
|
4
4
|
var On;
|
|
5
|
-
function
|
|
5
|
+
function qi() {
|
|
6
6
|
if (On) return nt;
|
|
7
7
|
On = 1;
|
|
8
8
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
@@ -25,7 +25,7 @@ function Yi() {
|
|
|
25
25
|
}
|
|
26
26
|
var ot = {};
|
|
27
27
|
var jn;
|
|
28
|
-
function
|
|
28
|
+
function Zi() {
|
|
29
29
|
return jn || (jn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
30
|
function e(h) {
|
|
31
31
|
if (h == null) return null;
|
|
@@ -258,15 +258,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
258
258
|
})()), ot;
|
|
259
259
|
}
|
|
260
260
|
var Tn;
|
|
261
|
-
function
|
|
262
|
-
return Tn || (Tn = 1, process.env.NODE_ENV === "production" ? Et.exports =
|
|
261
|
+
function Ji() {
|
|
262
|
+
return Tn || (Tn = 1, process.env.NODE_ENV === "production" ? Et.exports = qi() : Et.exports = Zi()), Et.exports;
|
|
263
263
|
}
|
|
264
|
-
var O =
|
|
265
|
-
function
|
|
264
|
+
var O = Ji();
|
|
265
|
+
function Qi(e) {
|
|
266
266
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
267
267
|
}
|
|
268
268
|
var ur = { exports: {} }, at = {}, Nn;
|
|
269
|
-
function
|
|
269
|
+
function es() {
|
|
270
270
|
if (Nn) return at;
|
|
271
271
|
Nn = 1;
|
|
272
272
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
@@ -288,7 +288,7 @@ function Ji() {
|
|
|
288
288
|
return at.Fragment = t, at.jsx = r, at.jsxs = r, at;
|
|
289
289
|
}
|
|
290
290
|
var kt = {}, Dn;
|
|
291
|
-
function
|
|
291
|
+
function ts() {
|
|
292
292
|
return Dn || (Dn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
293
293
|
function e(h) {
|
|
294
294
|
if (h == null) return null;
|
|
@@ -521,24 +521,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
521
521
|
})()), kt;
|
|
522
522
|
}
|
|
523
523
|
var An;
|
|
524
|
-
function
|
|
525
|
-
return An || (An = 1, process.env.NODE_ENV === "production" ? ur.exports =
|
|
524
|
+
function rs() {
|
|
525
|
+
return An || (An = 1, process.env.NODE_ENV === "production" ? ur.exports = es() : ur.exports = ts()), ur.exports;
|
|
526
526
|
}
|
|
527
|
-
var b =
|
|
528
|
-
function
|
|
527
|
+
var b = rs();
|
|
528
|
+
function Ao(e) {
|
|
529
529
|
var t, r, n = "";
|
|
530
530
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
531
531
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
532
532
|
var o = e.length;
|
|
533
|
-
for (t = 0; t < o; t++) e[t] && (r =
|
|
533
|
+
for (t = 0; t < o; t++) e[t] && (r = Ao(e[t])) && (n && (n += " "), n += r);
|
|
534
534
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
535
535
|
return n;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
538
|
-
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t =
|
|
537
|
+
function Po() {
|
|
538
|
+
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Ao(e)) && (n && (n += " "), n += t);
|
|
539
539
|
return n;
|
|
540
540
|
}
|
|
541
|
-
const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn =
|
|
541
|
+
const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Po, ns = (e, t) => (r) => {
|
|
542
542
|
var n;
|
|
543
543
|
if (t?.variants == null) return Mn(e, r?.class, r?.className);
|
|
544
544
|
const { variants: o, defaultVariants: a } = t, i = Object.keys(o).map((l) => {
|
|
@@ -567,25 +567,25 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Ao, t
|
|
|
567
567
|
] : l;
|
|
568
568
|
}, []);
|
|
569
569
|
return Mn(e, i, u, r?.class, r?.className);
|
|
570
|
-
}, Wr = "-",
|
|
571
|
-
const t =
|
|
570
|
+
}, Wr = "-", os = (e) => {
|
|
571
|
+
const t = is(e), {
|
|
572
572
|
conflictingClassGroups: r,
|
|
573
573
|
conflictingClassGroupModifiers: n
|
|
574
574
|
} = e;
|
|
575
575
|
return {
|
|
576
576
|
getClassGroupId: (o) => {
|
|
577
577
|
const a = o.split(Wr);
|
|
578
|
-
return a[0] === "" && a.length !== 1 && a.shift(),
|
|
578
|
+
return a[0] === "" && a.length !== 1 && a.shift(), Mo(a, t) || as(o);
|
|
579
579
|
},
|
|
580
580
|
getConflictingClassGroupIds: (o, a) => {
|
|
581
581
|
const i = r[o] || [];
|
|
582
582
|
return a && n[o] ? [...i, ...n[o]] : i;
|
|
583
583
|
}
|
|
584
584
|
};
|
|
585
|
-
},
|
|
585
|
+
}, Mo = (e, t) => {
|
|
586
586
|
if (e.length === 0)
|
|
587
587
|
return t.classGroupId;
|
|
588
|
-
const r = e[0], n = t.nextPart.get(r), o = n ?
|
|
588
|
+
const r = e[0], n = t.nextPart.get(r), o = n ? Mo(e.slice(1), n) : void 0;
|
|
589
589
|
if (o)
|
|
590
590
|
return o;
|
|
591
591
|
if (t.validators.length === 0)
|
|
@@ -594,13 +594,13 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Ao, t
|
|
|
594
594
|
return t.validators.find(({
|
|
595
595
|
validator: i
|
|
596
596
|
}) => i(a))?.classGroupId;
|
|
597
|
-
}, Ln = /^\[(.+)\]$/,
|
|
597
|
+
}, Ln = /^\[(.+)\]$/, as = (e) => {
|
|
598
598
|
if (Ln.test(e)) {
|
|
599
599
|
const t = Ln.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
|
|
600
600
|
if (r)
|
|
601
601
|
return "arbitrary.." + r;
|
|
602
602
|
}
|
|
603
|
-
},
|
|
603
|
+
}, is = (e) => {
|
|
604
604
|
const {
|
|
605
605
|
theme: t,
|
|
606
606
|
classGroups: r
|
|
@@ -619,7 +619,7 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Ao, t
|
|
|
619
619
|
return;
|
|
620
620
|
}
|
|
621
621
|
if (typeof o == "function") {
|
|
622
|
-
if (
|
|
622
|
+
if (ss(o)) {
|
|
623
623
|
Or(o(n), t, r, n);
|
|
624
624
|
return;
|
|
625
625
|
}
|
|
@@ -641,7 +641,7 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Ao, t
|
|
|
641
641
|
validators: []
|
|
642
642
|
}), r = r.nextPart.get(n);
|
|
643
643
|
}), r;
|
|
644
|
-
},
|
|
644
|
+
}, ss = (e) => e.isThemeGetter, ls = (e) => {
|
|
645
645
|
if (e < 1)
|
|
646
646
|
return {
|
|
647
647
|
get: () => {
|
|
@@ -665,7 +665,7 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Ao, t
|
|
|
665
665
|
r.has(a) ? r.set(a, i) : o(a, i);
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
|
-
}, jr = "!", Tr = ":",
|
|
668
|
+
}, jr = "!", Tr = ":", cs = Tr.length, us = (e) => {
|
|
669
669
|
const {
|
|
670
670
|
prefix: t,
|
|
671
671
|
experimentalParseClassName: r
|
|
@@ -677,7 +677,7 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Ao, t
|
|
|
677
677
|
let g = o[y];
|
|
678
678
|
if (i === 0 && s === 0) {
|
|
679
679
|
if (g === Tr) {
|
|
680
|
-
a.push(o.slice(u, y)), u = y +
|
|
680
|
+
a.push(o.slice(u, y)), u = y + cs;
|
|
681
681
|
continue;
|
|
682
682
|
}
|
|
683
683
|
if (g === "/") {
|
|
@@ -687,7 +687,7 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Ao, t
|
|
|
687
687
|
}
|
|
688
688
|
g === "[" ? i++ : g === "]" ? i-- : g === "(" ? s++ : g === ")" && s--;
|
|
689
689
|
}
|
|
690
|
-
const p = a.length === 0 ? o : o.substring(u), c =
|
|
690
|
+
const p = a.length === 0 ? o : o.substring(u), c = ds(p), d = c !== p, m = l && l > u ? l - u : void 0;
|
|
691
691
|
return {
|
|
692
692
|
modifiers: a,
|
|
693
693
|
hasImportantModifier: d,
|
|
@@ -713,7 +713,7 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Ao, t
|
|
|
713
713
|
});
|
|
714
714
|
}
|
|
715
715
|
return n;
|
|
716
|
-
},
|
|
716
|
+
}, ds = (e) => e.endsWith(jr) ? e.substring(0, e.length - 1) : e.startsWith(jr) ? e.substring(1) : e, fs = (e) => {
|
|
717
717
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
|
|
718
718
|
return (r) => {
|
|
719
719
|
if (r.length <= 1)
|
|
@@ -724,18 +724,18 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Ao, t
|
|
|
724
724
|
a[0] === "[" || t[a] ? (n.push(...o.sort(), a), o = []) : o.push(a);
|
|
725
725
|
}), n.push(...o.sort()), n;
|
|
726
726
|
};
|
|
727
|
-
},
|
|
728
|
-
cache:
|
|
729
|
-
parseClassName:
|
|
730
|
-
sortModifiers:
|
|
731
|
-
...
|
|
732
|
-
}),
|
|
727
|
+
}, ps = (e) => ({
|
|
728
|
+
cache: ls(e.cacheSize),
|
|
729
|
+
parseClassName: us(e),
|
|
730
|
+
sortModifiers: fs(e),
|
|
731
|
+
...os(e)
|
|
732
|
+
}), ms = /\s+/, gs = (e, t) => {
|
|
733
733
|
const {
|
|
734
734
|
parseClassName: r,
|
|
735
735
|
getClassGroupId: n,
|
|
736
736
|
getConflictingClassGroupIds: o,
|
|
737
737
|
sortModifiers: a
|
|
738
|
-
} = t, i = [], s = e.trim().split(
|
|
738
|
+
} = t, i = [], s = e.trim().split(ms);
|
|
739
739
|
let u = "";
|
|
740
740
|
for (let l = s.length - 1; l >= 0; l -= 1) {
|
|
741
741
|
const p = s[l], {
|
|
@@ -774,52 +774,52 @@ const Pn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Ao, t
|
|
|
774
774
|
}
|
|
775
775
|
return u;
|
|
776
776
|
};
|
|
777
|
-
function
|
|
777
|
+
function hs() {
|
|
778
778
|
let e = 0, t, r, n = "";
|
|
779
779
|
for (; e < arguments.length; )
|
|
780
|
-
(t = arguments[e++]) && (r =
|
|
780
|
+
(t = arguments[e++]) && (r = Lo(t)) && (n && (n += " "), n += r);
|
|
781
781
|
return n;
|
|
782
782
|
}
|
|
783
|
-
const
|
|
783
|
+
const Lo = (e) => {
|
|
784
784
|
if (typeof e == "string")
|
|
785
785
|
return e;
|
|
786
786
|
let t, r = "";
|
|
787
787
|
for (let n = 0; n < e.length; n++)
|
|
788
|
-
e[n] && (t =
|
|
788
|
+
e[n] && (t = Lo(e[n])) && (r && (r += " "), r += t);
|
|
789
789
|
return r;
|
|
790
790
|
};
|
|
791
|
-
function
|
|
791
|
+
function ys(e, ...t) {
|
|
792
792
|
let r, n, o, a = i;
|
|
793
793
|
function i(u) {
|
|
794
794
|
const l = t.reduce((p, c) => c(p), e());
|
|
795
|
-
return r =
|
|
795
|
+
return r = ps(l), n = r.cache.get, o = r.cache.set, a = s, s(u);
|
|
796
796
|
}
|
|
797
797
|
function s(u) {
|
|
798
798
|
const l = n(u);
|
|
799
799
|
if (l)
|
|
800
800
|
return l;
|
|
801
|
-
const p =
|
|
801
|
+
const p = gs(u, r);
|
|
802
802
|
return o(u, p), p;
|
|
803
803
|
}
|
|
804
804
|
return function() {
|
|
805
|
-
return a(
|
|
805
|
+
return a(hs.apply(null, arguments));
|
|
806
806
|
};
|
|
807
807
|
}
|
|
808
808
|
const te = (e) => {
|
|
809
809
|
const t = (r) => r[e] || [];
|
|
810
810
|
return t.isThemeGetter = !0, t;
|
|
811
|
-
},
|
|
811
|
+
}, Io = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Fo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, vs = /^\d+\/\d+$/, bs = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ws = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _s = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Es = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ze = (e) => vs.test(e), W = (e) => !!e && !Number.isNaN(Number(e)), Ce = (e) => !!e && Number.isInteger(Number(e)), dr = (e) => e.endsWith("%") && W(e.slice(0, -1)), _e = (e) => bs.test(e), ks = () => !0, Rs = (e) => (
|
|
812
812
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
813
813
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
814
814
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
815
|
-
|
|
816
|
-
),
|
|
817
|
-
const n =
|
|
815
|
+
ws.test(e) && !xs.test(e)
|
|
816
|
+
), Vo = () => !1, Ss = (e) => _s.test(e), Cs = (e) => Es.test(e), Os = (e) => !D(e) && !A(e), js = (e) => Ze(e, Wo, Vo), D = (e) => Io.test(e), De = (e) => Ze(e, Uo, Rs), fr = (e) => Ze(e, Ps, W), Fn = (e) => Ze(e, zo, Vo), Ts = (e) => Ze(e, $o, Cs), Rt = (e) => Ze(e, Bo, Ss), A = (e) => Fo.test(e), it = (e) => Je(e, Uo), Ns = (e) => Je(e, Ms), Vn = (e) => Je(e, zo), Ds = (e) => Je(e, Wo), As = (e) => Je(e, $o), St = (e) => Je(e, Bo, !0), Ze = (e, t, r) => {
|
|
817
|
+
const n = Io.exec(e);
|
|
818
818
|
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
819
819
|
}, Je = (e, t, r = !1) => {
|
|
820
|
-
const n =
|
|
820
|
+
const n = Fo.exec(e);
|
|
821
821
|
return n ? n[1] ? t(n[1]) : r : !1;
|
|
822
|
-
},
|
|
822
|
+
}, zo = (e) => e === "position" || e === "percentage", $o = (e) => e === "image" || e === "url", Wo = (e) => e === "length" || e === "size" || e === "bg-size", Uo = (e) => e === "length", Ps = (e) => e === "number", Ms = (e) => e === "family-name", Bo = (e) => e === "shadow", Ls = () => {
|
|
823
823
|
const e = te("color"), t = te("font"), r = te("text"), n = te("font-weight"), o = te("tracking"), a = te("leading"), i = te("breakpoint"), s = te("container"), u = te("spacing"), l = te("radius"), p = te("shadow"), c = te("inset-shadow"), d = te("text-shadow"), m = te("drop-shadow"), y = te("blur"), g = te("perspective"), v = te("aspect"), w = te("ease"), x = te("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [
|
|
824
824
|
"center",
|
|
825
825
|
"top",
|
|
@@ -844,7 +844,7 @@ const te = (e) => {
|
|
|
844
844
|
position: [A, D]
|
|
845
845
|
}], h = () => ["no-repeat", {
|
|
846
846
|
repeat: ["", "x", "y", "space", "round"]
|
|
847
|
-
}], S = () => ["auto", "cover", "contain",
|
|
847
|
+
}], S = () => ["auto", "cover", "contain", Ds, js, {
|
|
848
848
|
size: [A, D]
|
|
849
849
|
}], P = () => [dr, it, De], M = () => [
|
|
850
850
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -869,11 +869,11 @@ const te = (e) => {
|
|
|
869
869
|
aspect: ["video"],
|
|
870
870
|
blur: [_e],
|
|
871
871
|
breakpoint: [_e],
|
|
872
|
-
color: [
|
|
872
|
+
color: [ks],
|
|
873
873
|
container: [_e],
|
|
874
874
|
"drop-shadow": [_e],
|
|
875
875
|
ease: ["in", "out", "in-out"],
|
|
876
|
-
font: [
|
|
876
|
+
font: [Os],
|
|
877
877
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
878
878
|
"inset-shadow": [_e],
|
|
879
879
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1585,7 +1585,7 @@ const te = (e) => {
|
|
|
1585
1585
|
* @see https://tailwindcss.com/docs/font-family
|
|
1586
1586
|
*/
|
|
1587
1587
|
"font-family": [{
|
|
1588
|
-
font: [
|
|
1588
|
+
font: [Ns, D, t]
|
|
1589
1589
|
}],
|
|
1590
1590
|
/**
|
|
1591
1591
|
* Font Variant Numeric
|
|
@@ -1840,7 +1840,7 @@ const te = (e) => {
|
|
|
1840
1840
|
}, Ce, A, D],
|
|
1841
1841
|
radial: ["", A, D],
|
|
1842
1842
|
conic: [Ce, A, D]
|
|
1843
|
-
},
|
|
1843
|
+
}, As, Ts]
|
|
1844
1844
|
}],
|
|
1845
1845
|
/**
|
|
1846
1846
|
* Background Color
|
|
@@ -3289,11 +3289,11 @@ const te = (e) => {
|
|
|
3289
3289
|
},
|
|
3290
3290
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3291
3291
|
};
|
|
3292
|
-
},
|
|
3293
|
-
function
|
|
3294
|
-
return
|
|
3292
|
+
}, Is = /* @__PURE__ */ ys(Ls);
|
|
3293
|
+
function ce(...e) {
|
|
3294
|
+
return Is(Po(e));
|
|
3295
3295
|
}
|
|
3296
|
-
function
|
|
3296
|
+
function Fs(e, t) {
|
|
3297
3297
|
const r = f.createContext(t), n = (a) => {
|
|
3298
3298
|
const { children: i, ...s } = a, u = f.useMemo(() => s, Object.values(s));
|
|
3299
3299
|
return /* @__PURE__ */ b.jsx(r.Provider, { value: u, children: i });
|
|
@@ -3335,9 +3335,9 @@ function Se(e, t = []) {
|
|
|
3335
3335
|
);
|
|
3336
3336
|
};
|
|
3337
3337
|
};
|
|
3338
|
-
return o.scopeName = e, [n,
|
|
3338
|
+
return o.scopeName = e, [n, Vs(o, ...t)];
|
|
3339
3339
|
}
|
|
3340
|
-
function
|
|
3340
|
+
function Vs(...e) {
|
|
3341
3341
|
const t = e[0];
|
|
3342
3342
|
if (e.length === 1) return t;
|
|
3343
3343
|
const r = () => {
|
|
@@ -3361,9 +3361,9 @@ function Ee(e) {
|
|
|
3361
3361
|
t.current = e;
|
|
3362
3362
|
}), f.useMemo(() => (...r) => t.current?.(...r), []);
|
|
3363
3363
|
}
|
|
3364
|
-
var
|
|
3364
|
+
var fe = globalThis?.document ? f.useLayoutEffect : () => {
|
|
3365
3365
|
}, Ct = { exports: {} }, re = {}, zn;
|
|
3366
|
-
function
|
|
3366
|
+
function zs() {
|
|
3367
3367
|
if (zn) return re;
|
|
3368
3368
|
zn = 1;
|
|
3369
3369
|
var e = F;
|
|
@@ -3496,7 +3496,7 @@ function Fs() {
|
|
|
3496
3496
|
}, re.version = "19.1.1", re;
|
|
3497
3497
|
}
|
|
3498
3498
|
var oe = {}, $n;
|
|
3499
|
-
function
|
|
3499
|
+
function $s() {
|
|
3500
3500
|
return $n || ($n = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
3501
3501
|
function e() {
|
|
3502
3502
|
}
|
|
@@ -3700,7 +3700,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3700
3700
|
})()), oe;
|
|
3701
3701
|
}
|
|
3702
3702
|
var Wn;
|
|
3703
|
-
function
|
|
3703
|
+
function Ws() {
|
|
3704
3704
|
if (Wn) return Ct.exports;
|
|
3705
3705
|
Wn = 1;
|
|
3706
3706
|
function e() {
|
|
@@ -3714,10 +3714,10 @@ function zs() {
|
|
|
3714
3714
|
}
|
|
3715
3715
|
}
|
|
3716
3716
|
}
|
|
3717
|
-
return process.env.NODE_ENV === "production" ? (e(), Ct.exports =
|
|
3717
|
+
return process.env.NODE_ENV === "production" ? (e(), Ct.exports = zs()) : Ct.exports = $s(), Ct.exports;
|
|
3718
3718
|
}
|
|
3719
|
-
var Ur =
|
|
3720
|
-
const
|
|
3719
|
+
var Ur = Ws();
|
|
3720
|
+
const Us = /* @__PURE__ */ Qi(Ur);
|
|
3721
3721
|
function Un(e, t) {
|
|
3722
3722
|
if (typeof e == "function")
|
|
3723
3723
|
return e(t);
|
|
@@ -3744,8 +3744,8 @@ function ee(...e) {
|
|
|
3744
3744
|
}
|
|
3745
3745
|
// @__NO_SIDE_EFFECTS__
|
|
3746
3746
|
function Ye(e) {
|
|
3747
|
-
const t = /* @__PURE__ */
|
|
3748
|
-
const { children: a, ...i } = n, s = f.Children.toArray(a), u = s.find(
|
|
3747
|
+
const t = /* @__PURE__ */ Bs(e), r = f.forwardRef((n, o) => {
|
|
3748
|
+
const { children: a, ...i } = n, s = f.Children.toArray(a), u = s.find(Hs);
|
|
3749
3749
|
if (u) {
|
|
3750
3750
|
const l = u.props.children, p = s.map((c) => c === u ? f.Children.count(l) > 1 ? f.Children.only(null) : f.isValidElement(l) ? l.props.children : null : c);
|
|
3751
3751
|
return /* @__PURE__ */ b.jsx(t, { ...i, ref: o, children: f.isValidElement(l) ? f.cloneElement(l, void 0, p) : null });
|
|
@@ -3754,29 +3754,29 @@ function Ye(e) {
|
|
|
3754
3754
|
});
|
|
3755
3755
|
return r.displayName = `${e}.Slot`, r;
|
|
3756
3756
|
}
|
|
3757
|
-
var
|
|
3757
|
+
var Go = /* @__PURE__ */ Ye("Slot");
|
|
3758
3758
|
// @__NO_SIDE_EFFECTS__
|
|
3759
|
-
function
|
|
3759
|
+
function Bs(e) {
|
|
3760
3760
|
const t = f.forwardRef((r, n) => {
|
|
3761
3761
|
const { children: o, ...a } = r;
|
|
3762
3762
|
if (f.isValidElement(o)) {
|
|
3763
|
-
const i =
|
|
3763
|
+
const i = Ys(o), s = Ks(a, o.props);
|
|
3764
3764
|
return o.type !== f.Fragment && (s.ref = n ? vt(n, i) : i), f.cloneElement(o, s);
|
|
3765
3765
|
}
|
|
3766
3766
|
return f.Children.count(o) > 1 ? f.Children.only(null) : null;
|
|
3767
3767
|
});
|
|
3768
3768
|
return t.displayName = `${e}.SlotClone`, t;
|
|
3769
3769
|
}
|
|
3770
|
-
var
|
|
3770
|
+
var Ho = /* @__PURE__ */ Symbol("radix.slottable");
|
|
3771
3771
|
// @__NO_SIDE_EFFECTS__
|
|
3772
|
-
function
|
|
3772
|
+
function Gs(e) {
|
|
3773
3773
|
const t = ({ children: r }) => /* @__PURE__ */ b.jsx(b.Fragment, { children: r });
|
|
3774
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
3774
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = Ho, t;
|
|
3775
3775
|
}
|
|
3776
|
-
function
|
|
3777
|
-
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
3776
|
+
function Hs(e) {
|
|
3777
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ho;
|
|
3778
3778
|
}
|
|
3779
|
-
function
|
|
3779
|
+
function Ks(e, t) {
|
|
3780
3780
|
const r = { ...t };
|
|
3781
3781
|
for (const n in t) {
|
|
3782
3782
|
const o = e[n], a = t[n];
|
|
@@ -3787,11 +3787,11 @@ function Gs(e, t) {
|
|
|
3787
3787
|
}
|
|
3788
3788
|
return { ...e, ...r };
|
|
3789
3789
|
}
|
|
3790
|
-
function
|
|
3790
|
+
function Ys(e) {
|
|
3791
3791
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
3792
3792
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
3793
3793
|
}
|
|
3794
|
-
var
|
|
3794
|
+
var Xs = [
|
|
3795
3795
|
"a",
|
|
3796
3796
|
"button",
|
|
3797
3797
|
"div",
|
|
@@ -3809,18 +3809,18 @@ var Ks = [
|
|
|
3809
3809
|
"span",
|
|
3810
3810
|
"svg",
|
|
3811
3811
|
"ul"
|
|
3812
|
-
], J =
|
|
3812
|
+
], J = Xs.reduce((e, t) => {
|
|
3813
3813
|
const r = /* @__PURE__ */ Ye(`Primitive.${t}`), n = f.forwardRef((o, a) => {
|
|
3814
3814
|
const { asChild: i, ...s } = o, u = i ? r : t;
|
|
3815
3815
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ b.jsx(u, { ...s, ref: a });
|
|
3816
3816
|
});
|
|
3817
3817
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
3818
3818
|
}, {});
|
|
3819
|
-
function
|
|
3819
|
+
function Ko(e, t) {
|
|
3820
3820
|
e && Ur.flushSync(() => e.dispatchEvent(t));
|
|
3821
3821
|
}
|
|
3822
3822
|
var pr = { exports: {} }, mr = {}, Bn;
|
|
3823
|
-
function
|
|
3823
|
+
function qs() {
|
|
3824
3824
|
if (Bn) return mr;
|
|
3825
3825
|
Bn = 1;
|
|
3826
3826
|
var e = F;
|
|
@@ -3861,7 +3861,7 @@ function Ys() {
|
|
|
3861
3861
|
return mr.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : p, mr;
|
|
3862
3862
|
}
|
|
3863
3863
|
var Gn = {}, Hn;
|
|
3864
|
-
function
|
|
3864
|
+
function Zs() {
|
|
3865
3865
|
return Hn || (Hn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
3866
3866
|
function e(m, y) {
|
|
3867
3867
|
return m === y && (m !== 0 || 1 / m === 1 / y) || m !== m && y !== y;
|
|
@@ -3914,26 +3914,26 @@ function Xs() {
|
|
|
3914
3914
|
})()), Gn;
|
|
3915
3915
|
}
|
|
3916
3916
|
var Kn;
|
|
3917
|
-
function qs() {
|
|
3918
|
-
return Kn || (Kn = 1, process.env.NODE_ENV === "production" ? pr.exports = Ys() : pr.exports = Xs()), pr.exports;
|
|
3919
|
-
}
|
|
3920
|
-
var Zs = qs();
|
|
3921
3917
|
function Js() {
|
|
3922
|
-
return Zs.
|
|
3923
|
-
|
|
3918
|
+
return Kn || (Kn = 1, process.env.NODE_ENV === "production" ? pr.exports = qs() : pr.exports = Zs()), pr.exports;
|
|
3919
|
+
}
|
|
3920
|
+
var Qs = Js();
|
|
3921
|
+
function el() {
|
|
3922
|
+
return Qs.useSyncExternalStore(
|
|
3923
|
+
tl,
|
|
3924
3924
|
() => !0,
|
|
3925
3925
|
() => !1
|
|
3926
3926
|
);
|
|
3927
3927
|
}
|
|
3928
|
-
function
|
|
3928
|
+
function tl() {
|
|
3929
3929
|
return () => {
|
|
3930
3930
|
};
|
|
3931
3931
|
}
|
|
3932
|
-
var Br = "Avatar", [
|
|
3932
|
+
var Br = "Avatar", [rl, tm] = Se(Br), [nl, Yo] = rl(Br), ol = f.forwardRef(
|
|
3933
3933
|
(e, t) => {
|
|
3934
3934
|
const { __scopeAvatar: r, ...n } = e, [o, a] = f.useState("idle");
|
|
3935
3935
|
return /* @__PURE__ */ b.jsx(
|
|
3936
|
-
|
|
3936
|
+
nl,
|
|
3937
3937
|
{
|
|
3938
3938
|
scope: r,
|
|
3939
3939
|
imageLoadingStatus: o,
|
|
@@ -3943,22 +3943,22 @@ var Br = "Avatar", [el, em] = Se(Br), [tl, Ko] = el(Br), rl = f.forwardRef(
|
|
|
3943
3943
|
);
|
|
3944
3944
|
}
|
|
3945
3945
|
);
|
|
3946
|
-
|
|
3947
|
-
var
|
|
3946
|
+
ol.displayName = Br;
|
|
3947
|
+
var Xo = "AvatarImage", al = f.forwardRef(
|
|
3948
3948
|
(e, t) => {
|
|
3949
3949
|
const { __scopeAvatar: r, src: n, onLoadingStatusChange: o = () => {
|
|
3950
|
-
}, ...a } = e, i =
|
|
3950
|
+
}, ...a } = e, i = Yo(Xo, r), s = sl(n, a), u = Ee((l) => {
|
|
3951
3951
|
o(l), i.onImageLoadingStatusChange(l);
|
|
3952
3952
|
});
|
|
3953
|
-
return
|
|
3953
|
+
return fe(() => {
|
|
3954
3954
|
s !== "idle" && u(s);
|
|
3955
3955
|
}, [s, u]), s === "loaded" ? /* @__PURE__ */ b.jsx(J.img, { ...a, ref: t, src: n }) : null;
|
|
3956
3956
|
}
|
|
3957
3957
|
);
|
|
3958
|
-
|
|
3959
|
-
var
|
|
3958
|
+
al.displayName = Xo;
|
|
3959
|
+
var qo = "AvatarFallback", il = f.forwardRef(
|
|
3960
3960
|
(e, t) => {
|
|
3961
|
-
const { __scopeAvatar: r, delayMs: n, ...o } = e, a =
|
|
3961
|
+
const { __scopeAvatar: r, delayMs: n, ...o } = e, a = Yo(qo, r), [i, s] = f.useState(n === void 0);
|
|
3962
3962
|
return f.useEffect(() => {
|
|
3963
3963
|
if (n !== void 0) {
|
|
3964
3964
|
const u = window.setTimeout(() => s(!0), n);
|
|
@@ -3967,17 +3967,17 @@ var Xo = "AvatarFallback", ol = f.forwardRef(
|
|
|
3967
3967
|
}, [n]), i && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ b.jsx(J.span, { ...o, ref: t }) : null;
|
|
3968
3968
|
}
|
|
3969
3969
|
);
|
|
3970
|
-
|
|
3970
|
+
il.displayName = qo;
|
|
3971
3971
|
function Yn(e, t) {
|
|
3972
3972
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
3973
3973
|
}
|
|
3974
|
-
function
|
|
3975
|
-
const n =
|
|
3974
|
+
function sl(e, { referrerPolicy: t, crossOrigin: r }) {
|
|
3975
|
+
const n = el(), o = f.useRef(null), a = n ? (o.current || (o.current = new window.Image()), o.current) : null, [i, s] = f.useState(
|
|
3976
3976
|
() => Yn(a, e)
|
|
3977
3977
|
);
|
|
3978
|
-
return
|
|
3978
|
+
return fe(() => {
|
|
3979
3979
|
s(Yn(a, e));
|
|
3980
|
-
}, [a, e]),
|
|
3980
|
+
}, [a, e]), fe(() => {
|
|
3981
3981
|
const u = (c) => () => {
|
|
3982
3982
|
s(c);
|
|
3983
3983
|
};
|
|
@@ -3988,18 +3988,18 @@ function al(e, { referrerPolicy: t, crossOrigin: r }) {
|
|
|
3988
3988
|
};
|
|
3989
3989
|
}, [a, r, t]), i;
|
|
3990
3990
|
}
|
|
3991
|
-
const
|
|
3991
|
+
const ll = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), cl = (e) => e.replace(
|
|
3992
3992
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3993
3993
|
(t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
|
|
3994
3994
|
), Xn = (e) => {
|
|
3995
|
-
const t =
|
|
3995
|
+
const t = cl(e);
|
|
3996
3996
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3997
|
-
},
|
|
3997
|
+
}, Zo = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), ul = (e) => {
|
|
3998
3998
|
for (const t in e)
|
|
3999
3999
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
4000
4000
|
return !0;
|
|
4001
4001
|
};
|
|
4002
|
-
var
|
|
4002
|
+
var dl = {
|
|
4003
4003
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4004
4004
|
width: 24,
|
|
4005
4005
|
height: 24,
|
|
@@ -4010,7 +4010,7 @@ var cl = {
|
|
|
4010
4010
|
strokeLinecap: "round",
|
|
4011
4011
|
strokeLinejoin: "round"
|
|
4012
4012
|
};
|
|
4013
|
-
const
|
|
4013
|
+
const fl = qt(
|
|
4014
4014
|
({
|
|
4015
4015
|
color: e = "currentColor",
|
|
4016
4016
|
size: t = 24,
|
|
@@ -4024,13 +4024,13 @@ const ul = qt(
|
|
|
4024
4024
|
"svg",
|
|
4025
4025
|
{
|
|
4026
4026
|
ref: u,
|
|
4027
|
-
...
|
|
4027
|
+
...dl,
|
|
4028
4028
|
width: t,
|
|
4029
4029
|
height: t,
|
|
4030
4030
|
stroke: e,
|
|
4031
4031
|
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
4032
|
-
className:
|
|
4033
|
-
...!a && !
|
|
4032
|
+
className: Zo("lucide", o),
|
|
4033
|
+
...!a && !ul(s) && { "aria-hidden": "true" },
|
|
4034
4034
|
...s
|
|
4035
4035
|
},
|
|
4036
4036
|
[
|
|
@@ -4040,11 +4040,11 @@ const ul = qt(
|
|
|
4040
4040
|
)
|
|
4041
4041
|
), Qe = (e, t) => {
|
|
4042
4042
|
const r = qt(
|
|
4043
|
-
({ className: n, ...o }, a) => Ke(
|
|
4043
|
+
({ className: n, ...o }, a) => Ke(fl, {
|
|
4044
4044
|
ref: a,
|
|
4045
4045
|
iconNode: t,
|
|
4046
|
-
className:
|
|
4047
|
-
`lucide-${
|
|
4046
|
+
className: Zo(
|
|
4047
|
+
`lucide-${ll(Xn(e))}`,
|
|
4048
4048
|
`lucide-${e}`,
|
|
4049
4049
|
n
|
|
4050
4050
|
),
|
|
@@ -4052,29 +4052,29 @@ const ul = qt(
|
|
|
4052
4052
|
})
|
|
4053
4053
|
);
|
|
4054
4054
|
return r.displayName = Xn(e), r;
|
|
4055
|
-
},
|
|
4056
|
-
Qe("check",
|
|
4057
|
-
const
|
|
4058
|
-
Qe("chevron-right",
|
|
4059
|
-
const
|
|
4060
|
-
Qe("circle",
|
|
4061
|
-
const
|
|
4055
|
+
}, pl = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
4056
|
+
Qe("check", pl);
|
|
4057
|
+
const ml = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
4058
|
+
Qe("chevron-right", ml);
|
|
4059
|
+
const gl = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
|
|
4060
|
+
Qe("circle", gl);
|
|
4061
|
+
const hl = [
|
|
4062
4062
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
4063
4063
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
4064
4064
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
4065
4065
|
];
|
|
4066
|
-
Qe("ellipsis",
|
|
4067
|
-
const
|
|
4066
|
+
Qe("ellipsis", hl);
|
|
4067
|
+
const yl = [
|
|
4068
4068
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
4069
4069
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
4070
4070
|
];
|
|
4071
|
-
Qe("panel-left",
|
|
4072
|
-
const
|
|
4071
|
+
Qe("panel-left", yl);
|
|
4072
|
+
const vl = [
|
|
4073
4073
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
4074
4074
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
4075
4075
|
];
|
|
4076
|
-
Qe("x",
|
|
4077
|
-
const
|
|
4076
|
+
Qe("x", vl);
|
|
4077
|
+
const bl = ns(
|
|
4078
4078
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
4079
4079
|
{
|
|
4080
4080
|
variants: {
|
|
@@ -4108,14 +4108,14 @@ function Gr({
|
|
|
4108
4108
|
asChild: n = !1,
|
|
4109
4109
|
...o
|
|
4110
4110
|
}) {
|
|
4111
|
-
const a = n ?
|
|
4111
|
+
const a = n ? Go : "button";
|
|
4112
4112
|
return /* @__PURE__ */ b.jsx(
|
|
4113
4113
|
a,
|
|
4114
4114
|
{
|
|
4115
4115
|
"data-slot": "button",
|
|
4116
4116
|
"data-variant": t,
|
|
4117
4117
|
"data-size": r,
|
|
4118
|
-
className:
|
|
4118
|
+
className: ce(bl({ variant: t, size: r, className: e })),
|
|
4119
4119
|
...o
|
|
4120
4120
|
}
|
|
4121
4121
|
);
|
|
@@ -4125,7 +4125,7 @@ function Hr({ className: e, ...t }) {
|
|
|
4125
4125
|
"div",
|
|
4126
4126
|
{
|
|
4127
4127
|
"data-slot": "card",
|
|
4128
|
-
className:
|
|
4128
|
+
className: ce(
|
|
4129
4129
|
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
4130
4130
|
e
|
|
4131
4131
|
),
|
|
@@ -4138,7 +4138,7 @@ function Kr({ className: e, ...t }) {
|
|
|
4138
4138
|
"div",
|
|
4139
4139
|
{
|
|
4140
4140
|
"data-slot": "card-header",
|
|
4141
|
-
className:
|
|
4141
|
+
className: ce(
|
|
4142
4142
|
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
4143
4143
|
e
|
|
4144
4144
|
),
|
|
@@ -4151,7 +4151,7 @@ function Yr({ className: e, ...t }) {
|
|
|
4151
4151
|
"div",
|
|
4152
4152
|
{
|
|
4153
4153
|
"data-slot": "card-title",
|
|
4154
|
-
className:
|
|
4154
|
+
className: ce("leading-none font-semibold", e),
|
|
4155
4155
|
...t
|
|
4156
4156
|
}
|
|
4157
4157
|
);
|
|
@@ -4161,7 +4161,7 @@ function Xr({ className: e, ...t }) {
|
|
|
4161
4161
|
"div",
|
|
4162
4162
|
{
|
|
4163
4163
|
"data-slot": "card-description",
|
|
4164
|
-
className:
|
|
4164
|
+
className: ce("text-muted-foreground text-sm", e),
|
|
4165
4165
|
...t
|
|
4166
4166
|
}
|
|
4167
4167
|
);
|
|
@@ -4171,7 +4171,7 @@ function qr({ className: e, ...t }) {
|
|
|
4171
4171
|
"div",
|
|
4172
4172
|
{
|
|
4173
4173
|
"data-slot": "card-content",
|
|
4174
|
-
className:
|
|
4174
|
+
className: ce("px-6", e),
|
|
4175
4175
|
...t
|
|
4176
4176
|
}
|
|
4177
4177
|
);
|
|
@@ -4182,15 +4182,15 @@ function I(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
4182
4182
|
return t?.(n);
|
|
4183
4183
|
};
|
|
4184
4184
|
}
|
|
4185
|
-
var
|
|
4186
|
-
function
|
|
4185
|
+
var wl = f[" useInsertionEffect ".trim().toString()] || fe;
|
|
4186
|
+
function Jo({
|
|
4187
4187
|
prop: e,
|
|
4188
4188
|
defaultProp: t,
|
|
4189
4189
|
onChange: r = () => {
|
|
4190
4190
|
},
|
|
4191
4191
|
caller: n
|
|
4192
4192
|
}) {
|
|
4193
|
-
const [o, a, i] =
|
|
4193
|
+
const [o, a, i] = xl({
|
|
4194
4194
|
defaultProp: t,
|
|
4195
4195
|
onChange: r
|
|
4196
4196
|
}), s = e !== void 0, u = s ? e : o;
|
|
@@ -4206,7 +4206,7 @@ function Zo({
|
|
|
4206
4206
|
const l = f.useCallback(
|
|
4207
4207
|
(p) => {
|
|
4208
4208
|
if (s) {
|
|
4209
|
-
const c =
|
|
4209
|
+
const c = _l(p) ? p(e) : p;
|
|
4210
4210
|
c !== e && i.current?.(c);
|
|
4211
4211
|
} else
|
|
4212
4212
|
a(p);
|
|
@@ -4215,30 +4215,30 @@ function Zo({
|
|
|
4215
4215
|
);
|
|
4216
4216
|
return [u, l];
|
|
4217
4217
|
}
|
|
4218
|
-
function
|
|
4218
|
+
function xl({
|
|
4219
4219
|
defaultProp: e,
|
|
4220
4220
|
onChange: t
|
|
4221
4221
|
}) {
|
|
4222
4222
|
const [r, n] = f.useState(e), o = f.useRef(r), a = f.useRef(t);
|
|
4223
|
-
return
|
|
4223
|
+
return wl(() => {
|
|
4224
4224
|
a.current = t;
|
|
4225
4225
|
}, [t]), f.useEffect(() => {
|
|
4226
4226
|
o.current !== r && (a.current?.(r), o.current = r);
|
|
4227
4227
|
}, [r, o]), [r, n, a];
|
|
4228
4228
|
}
|
|
4229
|
-
function
|
|
4229
|
+
function _l(e) {
|
|
4230
4230
|
return typeof e == "function";
|
|
4231
4231
|
}
|
|
4232
|
-
function
|
|
4232
|
+
function El(e, t) {
|
|
4233
4233
|
return f.useReducer((r, n) => t[r][n] ?? r, e);
|
|
4234
4234
|
}
|
|
4235
4235
|
var Ne = (e) => {
|
|
4236
|
-
const { present: t, children: r } = e, n =
|
|
4236
|
+
const { present: t, children: r } = e, n = kl(t), o = typeof r == "function" ? r({ present: n.isPresent }) : f.Children.only(r), a = ee(n.ref, Rl(o));
|
|
4237
4237
|
return typeof r == "function" || n.isPresent ? f.cloneElement(o, { ref: a }) : null;
|
|
4238
4238
|
};
|
|
4239
4239
|
Ne.displayName = "Presence";
|
|
4240
|
-
function
|
|
4241
|
-
const [t, r] = f.useState(), n = f.useRef(null), o = f.useRef(e), a = f.useRef("none"), i = e ? "mounted" : "unmounted", [s, u] =
|
|
4240
|
+
function kl(e) {
|
|
4241
|
+
const [t, r] = f.useState(), n = f.useRef(null), o = f.useRef(e), a = f.useRef("none"), i = e ? "mounted" : "unmounted", [s, u] = El(i, {
|
|
4242
4242
|
mounted: {
|
|
4243
4243
|
UNMOUNT: "unmounted",
|
|
4244
4244
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4254,13 +4254,13 @@ function _l(e) {
|
|
|
4254
4254
|
return f.useEffect(() => {
|
|
4255
4255
|
const l = Ot(n.current);
|
|
4256
4256
|
a.current = s === "mounted" ? l : "none";
|
|
4257
|
-
}, [s]),
|
|
4257
|
+
}, [s]), fe(() => {
|
|
4258
4258
|
const l = n.current, p = o.current;
|
|
4259
4259
|
if (p !== e) {
|
|
4260
4260
|
const c = a.current, d = Ot(l);
|
|
4261
4261
|
e ? u("MOUNT") : d === "none" || l?.display === "none" ? u("UNMOUNT") : u(p && c !== d ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
4262
4262
|
}
|
|
4263
|
-
}, [e, u]),
|
|
4263
|
+
}, [e, u]), fe(() => {
|
|
4264
4264
|
if (t) {
|
|
4265
4265
|
let l;
|
|
4266
4266
|
const p = t.ownerDocument.defaultView ?? window, c = (m) => {
|
|
@@ -4289,19 +4289,19 @@ function _l(e) {
|
|
|
4289
4289
|
function Ot(e) {
|
|
4290
4290
|
return e?.animationName || "none";
|
|
4291
4291
|
}
|
|
4292
|
-
function
|
|
4292
|
+
function Rl(e) {
|
|
4293
4293
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
4294
4294
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
4295
4295
|
}
|
|
4296
|
-
var
|
|
4297
|
-
}),
|
|
4298
|
-
function
|
|
4299
|
-
const [t, r] = f.useState(
|
|
4300
|
-
return
|
|
4301
|
-
r((n) => n ?? String(
|
|
4296
|
+
var Sl = f[" useId ".trim().toString()] || (() => {
|
|
4297
|
+
}), Cl = 0;
|
|
4298
|
+
function Qo(e) {
|
|
4299
|
+
const [t, r] = f.useState(Sl());
|
|
4300
|
+
return fe(() => {
|
|
4301
|
+
r((n) => n ?? String(Cl++));
|
|
4302
4302
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
4303
4303
|
}
|
|
4304
|
-
var Zt = "Collapsible", [
|
|
4304
|
+
var Zt = "Collapsible", [Ol, rm] = Se(Zt), [jl, Zr] = Ol(Zt), Tl = f.forwardRef(
|
|
4305
4305
|
(e, t) => {
|
|
4306
4306
|
const {
|
|
4307
4307
|
__scopeCollapsible: r,
|
|
@@ -4310,18 +4310,18 @@ var Zt = "Collapsible", [Sl, tm] = Se(Zt), [Cl, Zr] = Sl(Zt), Ol = f.forwardRef(
|
|
|
4310
4310
|
disabled: a,
|
|
4311
4311
|
onOpenChange: i,
|
|
4312
4312
|
...s
|
|
4313
|
-
} = e, [u, l] =
|
|
4313
|
+
} = e, [u, l] = Jo({
|
|
4314
4314
|
prop: n,
|
|
4315
4315
|
defaultProp: o ?? !1,
|
|
4316
4316
|
onChange: i,
|
|
4317
4317
|
caller: Zt
|
|
4318
4318
|
});
|
|
4319
4319
|
return /* @__PURE__ */ b.jsx(
|
|
4320
|
-
|
|
4320
|
+
jl,
|
|
4321
4321
|
{
|
|
4322
4322
|
scope: r,
|
|
4323
4323
|
disabled: a,
|
|
4324
|
-
contentId:
|
|
4324
|
+
contentId: Qo(),
|
|
4325
4325
|
open: u,
|
|
4326
4326
|
onOpenToggle: f.useCallback(() => l((p) => !p), [l]),
|
|
4327
4327
|
children: /* @__PURE__ */ b.jsx(
|
|
@@ -4337,10 +4337,10 @@ var Zt = "Collapsible", [Sl, tm] = Se(Zt), [Cl, Zr] = Sl(Zt), Ol = f.forwardRef(
|
|
|
4337
4337
|
);
|
|
4338
4338
|
}
|
|
4339
4339
|
);
|
|
4340
|
-
|
|
4341
|
-
var
|
|
4340
|
+
Tl.displayName = Zt;
|
|
4341
|
+
var ea = "CollapsibleTrigger", Nl = f.forwardRef(
|
|
4342
4342
|
(e, t) => {
|
|
4343
|
-
const { __scopeCollapsible: r, ...n } = e, o = Zr(
|
|
4343
|
+
const { __scopeCollapsible: r, ...n } = e, o = Zr(ea, r);
|
|
4344
4344
|
return /* @__PURE__ */ b.jsx(
|
|
4345
4345
|
J.button,
|
|
4346
4346
|
{
|
|
@@ -4357,20 +4357,20 @@ var Qo = "CollapsibleTrigger", jl = f.forwardRef(
|
|
|
4357
4357
|
);
|
|
4358
4358
|
}
|
|
4359
4359
|
);
|
|
4360
|
-
|
|
4361
|
-
var Jr = "CollapsibleContent",
|
|
4360
|
+
Nl.displayName = ea;
|
|
4361
|
+
var Jr = "CollapsibleContent", Dl = f.forwardRef(
|
|
4362
4362
|
(e, t) => {
|
|
4363
4363
|
const { forceMount: r, ...n } = e, o = Zr(Jr, e.__scopeCollapsible);
|
|
4364
|
-
return /* @__PURE__ */ b.jsx(Ne, { present: r || o.open, children: ({ present: a }) => /* @__PURE__ */ b.jsx(
|
|
4364
|
+
return /* @__PURE__ */ b.jsx(Ne, { present: r || o.open, children: ({ present: a }) => /* @__PURE__ */ b.jsx(Al, { ...n, ref: t, present: a }) });
|
|
4365
4365
|
}
|
|
4366
4366
|
);
|
|
4367
|
-
|
|
4368
|
-
var
|
|
4367
|
+
Dl.displayName = Jr;
|
|
4368
|
+
var Al = f.forwardRef((e, t) => {
|
|
4369
4369
|
const { __scopeCollapsible: r, present: n, children: o, ...a } = e, i = Zr(Jr, r), [s, u] = f.useState(n), l = f.useRef(null), p = ee(t, l), c = f.useRef(0), d = c.current, m = f.useRef(0), y = m.current, g = i.open || s, v = f.useRef(g), w = f.useRef(void 0);
|
|
4370
4370
|
return f.useEffect(() => {
|
|
4371
4371
|
const x = requestAnimationFrame(() => v.current = !1);
|
|
4372
4372
|
return () => cancelAnimationFrame(x);
|
|
4373
|
-
}, []),
|
|
4373
|
+
}, []), fe(() => {
|
|
4374
4374
|
const x = l.current;
|
|
4375
4375
|
if (x) {
|
|
4376
4376
|
w.current = w.current || {
|
|
@@ -4401,7 +4401,7 @@ var Nl = f.forwardRef((e, t) => {
|
|
|
4401
4401
|
function Qr(e) {
|
|
4402
4402
|
return e ? "open" : "closed";
|
|
4403
4403
|
}
|
|
4404
|
-
function
|
|
4404
|
+
function ta(e) {
|
|
4405
4405
|
const t = e + "CollectionProvider", [r, n] = Se(t), [o, a] = r(
|
|
4406
4406
|
t,
|
|
4407
4407
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -4443,12 +4443,12 @@ function ea(e) {
|
|
|
4443
4443
|
n
|
|
4444
4444
|
];
|
|
4445
4445
|
}
|
|
4446
|
-
var
|
|
4447
|
-
function
|
|
4448
|
-
const t = f.useContext(
|
|
4446
|
+
var Pl = f.createContext(void 0);
|
|
4447
|
+
function Ml(e) {
|
|
4448
|
+
const t = f.useContext(Pl);
|
|
4449
4449
|
return e || t || "ltr";
|
|
4450
4450
|
}
|
|
4451
|
-
function
|
|
4451
|
+
function Ll(e, t = globalThis?.document) {
|
|
4452
4452
|
const r = Ee(e);
|
|
4453
4453
|
f.useEffect(() => {
|
|
4454
4454
|
const n = (o) => {
|
|
@@ -4457,7 +4457,7 @@ function Pl(e, t = globalThis?.document) {
|
|
|
4457
4457
|
return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
|
|
4458
4458
|
}, [r, t]);
|
|
4459
4459
|
}
|
|
4460
|
-
var
|
|
4460
|
+
var Il = "DismissableLayer", Nr = "dismissableLayer.update", Fl = "dismissableLayer.pointerDownOutside", Vl = "dismissableLayer.focusOutside", qn, ra = f.createContext({
|
|
4461
4461
|
layers: /* @__PURE__ */ new Set(),
|
|
4462
4462
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4463
4463
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -4471,14 +4471,14 @@ var Ml = "DismissableLayer", Nr = "dismissableLayer.update", Ll = "dismissableLa
|
|
|
4471
4471
|
onInteractOutside: i,
|
|
4472
4472
|
onDismiss: s,
|
|
4473
4473
|
...u
|
|
4474
|
-
} = e, l = f.useContext(
|
|
4474
|
+
} = e, l = f.useContext(ra), [p, c] = f.useState(null), d = p?.ownerDocument ?? globalThis?.document, [, m] = f.useState({}), y = ee(t, (j) => c(j)), g = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = g.indexOf(v), x = p ? g.indexOf(p) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, _ = x >= w, C = Wl((j) => {
|
|
4475
4475
|
const R = j.target, L = [...l.branches].some((U) => U.contains(R));
|
|
4476
4476
|
!_ || L || (o?.(j), i?.(j), j.defaultPrevented || s?.());
|
|
4477
|
-
}, d), T =
|
|
4477
|
+
}, d), T = Ul((j) => {
|
|
4478
4478
|
const R = j.target;
|
|
4479
4479
|
[...l.branches].some((L) => L.contains(R)) || (a?.(j), i?.(j), j.defaultPrevented || s?.());
|
|
4480
4480
|
}, d);
|
|
4481
|
-
return
|
|
4481
|
+
return Ll((j) => {
|
|
4482
4482
|
x === l.layers.size - 1 && (n?.(j), !j.defaultPrevented && s && (j.preventDefault(), s()));
|
|
4483
4483
|
}, d), f.useEffect(() => {
|
|
4484
4484
|
if (p)
|
|
@@ -4509,9 +4509,9 @@ var Ml = "DismissableLayer", Nr = "dismissableLayer.update", Ll = "dismissableLa
|
|
|
4509
4509
|
);
|
|
4510
4510
|
}
|
|
4511
4511
|
);
|
|
4512
|
-
Jt.displayName =
|
|
4513
|
-
var
|
|
4514
|
-
const r = f.useContext(
|
|
4512
|
+
Jt.displayName = Il;
|
|
4513
|
+
var zl = "DismissableLayerBranch", $l = f.forwardRef((e, t) => {
|
|
4514
|
+
const r = f.useContext(ra), n = f.useRef(null), o = ee(t, n);
|
|
4515
4515
|
return f.useEffect(() => {
|
|
4516
4516
|
const a = n.current;
|
|
4517
4517
|
if (a)
|
|
@@ -4520,16 +4520,16 @@ var Fl = "DismissableLayerBranch", Vl = f.forwardRef((e, t) => {
|
|
|
4520
4520
|
};
|
|
4521
4521
|
}, [r.branches]), /* @__PURE__ */ b.jsx(J.div, { ...e, ref: o });
|
|
4522
4522
|
});
|
|
4523
|
-
|
|
4524
|
-
function
|
|
4523
|
+
$l.displayName = zl;
|
|
4524
|
+
function Wl(e, t = globalThis?.document) {
|
|
4525
4525
|
const r = Ee(e), n = f.useRef(!1), o = f.useRef(() => {
|
|
4526
4526
|
});
|
|
4527
4527
|
return f.useEffect(() => {
|
|
4528
4528
|
const a = (s) => {
|
|
4529
4529
|
if (s.target && !n.current) {
|
|
4530
4530
|
let u = function() {
|
|
4531
|
-
|
|
4532
|
-
|
|
4531
|
+
na(
|
|
4532
|
+
Fl,
|
|
4533
4533
|
r,
|
|
4534
4534
|
l,
|
|
4535
4535
|
{ discrete: !0 }
|
|
@@ -4551,11 +4551,11 @@ function zl(e, t = globalThis?.document) {
|
|
|
4551
4551
|
onPointerDownCapture: () => n.current = !0
|
|
4552
4552
|
};
|
|
4553
4553
|
}
|
|
4554
|
-
function
|
|
4554
|
+
function Ul(e, t = globalThis?.document) {
|
|
4555
4555
|
const r = Ee(e), n = f.useRef(!1);
|
|
4556
4556
|
return f.useEffect(() => {
|
|
4557
4557
|
const o = (a) => {
|
|
4558
|
-
a.target && !n.current &&
|
|
4558
|
+
a.target && !n.current && na(Vl, r, { originalEvent: a }, {
|
|
4559
4559
|
discrete: !1
|
|
4560
4560
|
});
|
|
4561
4561
|
};
|
|
@@ -4569,12 +4569,12 @@ function Zn() {
|
|
|
4569
4569
|
const e = new CustomEvent(Nr);
|
|
4570
4570
|
document.dispatchEvent(e);
|
|
4571
4571
|
}
|
|
4572
|
-
function
|
|
4572
|
+
function na(e, t, r, { discrete: n }) {
|
|
4573
4573
|
const o = r.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
4574
|
-
t && o.addEventListener(e, t, { once: !0 }), n ?
|
|
4574
|
+
t && o.addEventListener(e, t, { once: !0 }), n ? Ko(o, a) : o.dispatchEvent(a);
|
|
4575
4575
|
}
|
|
4576
4576
|
var gr = 0;
|
|
4577
|
-
function
|
|
4577
|
+
function oa() {
|
|
4578
4578
|
f.useEffect(() => {
|
|
4579
4579
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
4580
4580
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Jn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Jn()), gr++, () => {
|
|
@@ -4586,7 +4586,7 @@ function Jn() {
|
|
|
4586
4586
|
const e = document.createElement("span");
|
|
4587
4587
|
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;
|
|
4588
4588
|
}
|
|
4589
|
-
var hr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", Qn = { bubbles: !1, cancelable: !0 },
|
|
4589
|
+
var hr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", Qn = { bubbles: !1, cancelable: !0 }, Bl = "FocusScope", en = f.forwardRef((e, t) => {
|
|
4590
4590
|
const {
|
|
4591
4591
|
loop: r = !1,
|
|
4592
4592
|
trapped: n = !1,
|
|
@@ -4629,7 +4629,7 @@ var hr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", Qn
|
|
|
4629
4629
|
const g = document.activeElement;
|
|
4630
4630
|
if (!s.contains(g)) {
|
|
4631
4631
|
const v = new CustomEvent(hr, Qn);
|
|
4632
|
-
s.addEventListener(hr, l), s.dispatchEvent(v), v.defaultPrevented || (
|
|
4632
|
+
s.addEventListener(hr, l), s.dispatchEvent(v), v.defaultPrevented || (Gl(ql(aa(s)), { select: !0 }), document.activeElement === g && Oe(s));
|
|
4633
4633
|
}
|
|
4634
4634
|
return () => {
|
|
4635
4635
|
s.removeEventListener(hr, l), setTimeout(() => {
|
|
@@ -4644,7 +4644,7 @@ var hr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", Qn
|
|
|
4644
4644
|
if (!r && !n || m.paused) return;
|
|
4645
4645
|
const v = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, w = document.activeElement;
|
|
4646
4646
|
if (v && w) {
|
|
4647
|
-
const x = g.currentTarget, [E, _] =
|
|
4647
|
+
const x = g.currentTarget, [E, _] = Hl(x);
|
|
4648
4648
|
E && _ ? !g.shiftKey && w === _ ? (g.preventDefault(), r && Oe(E, { select: !0 })) : g.shiftKey && w === E && (g.preventDefault(), r && Oe(_, { select: !0 })) : w === x && g.preventDefault();
|
|
4649
4649
|
}
|
|
4650
4650
|
},
|
|
@@ -4652,17 +4652,17 @@ var hr = "focusScope.autoFocusOnMount", yr = "focusScope.autoFocusOnUnmount", Qn
|
|
|
4652
4652
|
);
|
|
4653
4653
|
return /* @__PURE__ */ b.jsx(J.div, { tabIndex: -1, ...i, ref: d, onKeyDown: y });
|
|
4654
4654
|
});
|
|
4655
|
-
en.displayName =
|
|
4656
|
-
function
|
|
4655
|
+
en.displayName = Bl;
|
|
4656
|
+
function Gl(e, { select: t = !1 } = {}) {
|
|
4657
4657
|
const r = document.activeElement;
|
|
4658
4658
|
for (const n of e)
|
|
4659
4659
|
if (Oe(n, { select: t }), document.activeElement !== r) return;
|
|
4660
4660
|
}
|
|
4661
|
-
function
|
|
4662
|
-
const t =
|
|
4661
|
+
function Hl(e) {
|
|
4662
|
+
const t = aa(e), r = eo(t, e), n = eo(t.reverse(), e);
|
|
4663
4663
|
return [r, n];
|
|
4664
4664
|
}
|
|
4665
|
-
function
|
|
4665
|
+
function aa(e) {
|
|
4666
4666
|
const t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
4667
4667
|
acceptNode: (n) => {
|
|
4668
4668
|
const o = n.tagName === "INPUT" && n.type === "hidden";
|
|
@@ -4674,9 +4674,9 @@ function oa(e) {
|
|
|
4674
4674
|
}
|
|
4675
4675
|
function eo(e, t) {
|
|
4676
4676
|
for (const r of e)
|
|
4677
|
-
if (!
|
|
4677
|
+
if (!Kl(r, { upTo: t })) return r;
|
|
4678
4678
|
}
|
|
4679
|
-
function
|
|
4679
|
+
function Kl(e, { upTo: t }) {
|
|
4680
4680
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
4681
4681
|
for (; e; ) {
|
|
4682
4682
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -4685,17 +4685,17 @@ function Gl(e, { upTo: t }) {
|
|
|
4685
4685
|
}
|
|
4686
4686
|
return !1;
|
|
4687
4687
|
}
|
|
4688
|
-
function
|
|
4688
|
+
function Yl(e) {
|
|
4689
4689
|
return e instanceof HTMLInputElement && "select" in e;
|
|
4690
4690
|
}
|
|
4691
4691
|
function Oe(e, { select: t = !1 } = {}) {
|
|
4692
4692
|
if (e && e.focus) {
|
|
4693
4693
|
const r = document.activeElement;
|
|
4694
|
-
e.focus({ preventScroll: !0 }), e !== r &&
|
|
4694
|
+
e.focus({ preventScroll: !0 }), e !== r && Yl(e) && t && e.select();
|
|
4695
4695
|
}
|
|
4696
4696
|
}
|
|
4697
|
-
var to =
|
|
4698
|
-
function
|
|
4697
|
+
var to = Xl();
|
|
4698
|
+
function Xl() {
|
|
4699
4699
|
let e = [];
|
|
4700
4700
|
return {
|
|
4701
4701
|
add(t) {
|
|
@@ -4711,18 +4711,18 @@ function ro(e, t) {
|
|
|
4711
4711
|
const r = [...e], n = r.indexOf(t);
|
|
4712
4712
|
return n !== -1 && r.splice(n, 1), r;
|
|
4713
4713
|
}
|
|
4714
|
-
function
|
|
4714
|
+
function ql(e) {
|
|
4715
4715
|
return e.filter((t) => t.tagName !== "A");
|
|
4716
4716
|
}
|
|
4717
|
-
const
|
|
4717
|
+
const Zl = ["top", "right", "bottom", "left"], je = Math.min, se = Math.max, zt = Math.round, jt = Math.floor, ye = (e) => ({
|
|
4718
4718
|
x: e,
|
|
4719
4719
|
y: e
|
|
4720
|
-
}),
|
|
4720
|
+
}), Jl = {
|
|
4721
4721
|
left: "right",
|
|
4722
4722
|
right: "left",
|
|
4723
4723
|
bottom: "top",
|
|
4724
4724
|
top: "bottom"
|
|
4725
|
-
},
|
|
4725
|
+
}, Ql = {
|
|
4726
4726
|
start: "end",
|
|
4727
4727
|
end: "start"
|
|
4728
4728
|
};
|
|
@@ -4744,48 +4744,48 @@ function tn(e) {
|
|
|
4744
4744
|
function rn(e) {
|
|
4745
4745
|
return e === "y" ? "height" : "width";
|
|
4746
4746
|
}
|
|
4747
|
-
const
|
|
4747
|
+
const ec = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
4748
4748
|
function he(e) {
|
|
4749
|
-
return
|
|
4749
|
+
return ec.has(Re(e)) ? "y" : "x";
|
|
4750
4750
|
}
|
|
4751
4751
|
function nn(e) {
|
|
4752
4752
|
return tn(he(e));
|
|
4753
4753
|
}
|
|
4754
|
-
function
|
|
4754
|
+
function tc(e, t, r) {
|
|
4755
4755
|
r === void 0 && (r = !1);
|
|
4756
4756
|
const n = et(e), o = nn(e), a = rn(o);
|
|
4757
4757
|
let i = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
4758
4758
|
return t.reference[a] > t.floating[a] && (i = $t(i)), [i, $t(i)];
|
|
4759
4759
|
}
|
|
4760
|
-
function
|
|
4760
|
+
function rc(e) {
|
|
4761
4761
|
const t = $t(e);
|
|
4762
4762
|
return [Ar(e), t, Ar(t)];
|
|
4763
4763
|
}
|
|
4764
4764
|
function Ar(e) {
|
|
4765
|
-
return e.replace(/start|end/g, (t) =>
|
|
4765
|
+
return e.replace(/start|end/g, (t) => Ql[t]);
|
|
4766
4766
|
}
|
|
4767
|
-
const no = ["left", "right"], oo = ["right", "left"],
|
|
4768
|
-
function
|
|
4767
|
+
const no = ["left", "right"], oo = ["right", "left"], nc = ["top", "bottom"], oc = ["bottom", "top"];
|
|
4768
|
+
function ac(e, t, r) {
|
|
4769
4769
|
switch (e) {
|
|
4770
4770
|
case "top":
|
|
4771
4771
|
case "bottom":
|
|
4772
4772
|
return r ? t ? oo : no : t ? no : oo;
|
|
4773
4773
|
case "left":
|
|
4774
4774
|
case "right":
|
|
4775
|
-
return t ?
|
|
4775
|
+
return t ? nc : oc;
|
|
4776
4776
|
default:
|
|
4777
4777
|
return [];
|
|
4778
4778
|
}
|
|
4779
4779
|
}
|
|
4780
|
-
function
|
|
4780
|
+
function ic(e, t, r, n) {
|
|
4781
4781
|
const o = et(e);
|
|
4782
|
-
let a =
|
|
4782
|
+
let a = ac(Re(e), r === "start", n);
|
|
4783
4783
|
return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(Ar)))), a;
|
|
4784
4784
|
}
|
|
4785
4785
|
function $t(e) {
|
|
4786
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4786
|
+
return e.replace(/left|right|bottom|top/g, (t) => Jl[t]);
|
|
4787
4787
|
}
|
|
4788
|
-
function
|
|
4788
|
+
function sc(e) {
|
|
4789
4789
|
return {
|
|
4790
4790
|
top: 0,
|
|
4791
4791
|
right: 0,
|
|
@@ -4794,8 +4794,8 @@ function ac(e) {
|
|
|
4794
4794
|
...e
|
|
4795
4795
|
};
|
|
4796
4796
|
}
|
|
4797
|
-
function
|
|
4798
|
-
return typeof e != "number" ?
|
|
4797
|
+
function ia(e) {
|
|
4798
|
+
return typeof e != "number" ? sc(e) : {
|
|
4799
4799
|
top: e,
|
|
4800
4800
|
right: e,
|
|
4801
4801
|
bottom: e,
|
|
@@ -4868,7 +4868,7 @@ function ao(e, t, r) {
|
|
|
4868
4868
|
}
|
|
4869
4869
|
return m;
|
|
4870
4870
|
}
|
|
4871
|
-
const
|
|
4871
|
+
const lc = async (e, t, r) => {
|
|
4872
4872
|
const {
|
|
4873
4873
|
placement: n = "bottom",
|
|
4874
4874
|
strategy: o = "absolute",
|
|
@@ -4945,7 +4945,7 @@ async function ct(e, t) {
|
|
|
4945
4945
|
elementContext: c = "floating",
|
|
4946
4946
|
altBoundary: d = !1,
|
|
4947
4947
|
padding: m = 0
|
|
4948
|
-
} = ke(t, e), y =
|
|
4948
|
+
} = ke(t, e), y = ia(m), g = s[d ? c === "floating" ? "reference" : "floating" : c], v = Wt(await a.getClippingRect({
|
|
4949
4949
|
element: (r = await (a.isElement == null ? void 0 : a.isElement(g))) == null || r ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
4950
4950
|
boundary: l,
|
|
4951
4951
|
rootBoundary: p,
|
|
@@ -4974,7 +4974,7 @@ async function ct(e, t) {
|
|
|
4974
4974
|
right: (_.right - v.right + y.right) / E.x
|
|
4975
4975
|
};
|
|
4976
4976
|
}
|
|
4977
|
-
const
|
|
4977
|
+
const cc = (e) => ({
|
|
4978
4978
|
name: "arrow",
|
|
4979
4979
|
options: e,
|
|
4980
4980
|
async fn(t) {
|
|
@@ -4992,7 +4992,7 @@ const sc = (e) => ({
|
|
|
4992
4992
|
} = ke(e, t) || {};
|
|
4993
4993
|
if (l == null)
|
|
4994
4994
|
return {};
|
|
4995
|
-
const c =
|
|
4995
|
+
const c = ia(p), d = {
|
|
4996
4996
|
x: r,
|
|
4997
4997
|
y: n
|
|
4998
4998
|
}, m = nn(o), y = rn(m), g = await i.getDimensions(l), v = m === "y", w = v ? "top" : "left", x = v ? "bottom" : "right", E = v ? "clientHeight" : "clientWidth", _ = a.reference[y] + a.reference[m] - d[m] - a.floating[y], C = d[m] - a.reference[m], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
|
|
@@ -5011,7 +5011,7 @@ const sc = (e) => ({
|
|
|
5011
5011
|
reset: G
|
|
5012
5012
|
};
|
|
5013
5013
|
}
|
|
5014
|
-
}),
|
|
5014
|
+
}), uc = function(e) {
|
|
5015
5015
|
return e === void 0 && (e = {}), {
|
|
5016
5016
|
name: "flip",
|
|
5017
5017
|
options: e,
|
|
@@ -5035,12 +5035,12 @@ const sc = (e) => ({
|
|
|
5035
5035
|
} = ke(e, t);
|
|
5036
5036
|
if ((r = a.arrow) != null && r.alignmentOffset)
|
|
5037
5037
|
return {};
|
|
5038
|
-
const w = Re(o), x = he(s), E = Re(s) === s, _ = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), C = d || (E || !g ? [$t(s)] :
|
|
5039
|
-
!d && T && C.push(...
|
|
5038
|
+
const w = Re(o), x = he(s), E = Re(s) === s, _ = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), C = d || (E || !g ? [$t(s)] : rc(s)), T = y !== "none";
|
|
5039
|
+
!d && T && C.push(...ic(s, g, y, _));
|
|
5040
5040
|
const j = [s, ...C], R = await ct(t, v), L = [];
|
|
5041
5041
|
let U = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
5042
5042
|
if (p && L.push(R[w]), c) {
|
|
5043
|
-
const $ =
|
|
5043
|
+
const $ = tc(o, i, _);
|
|
5044
5044
|
L.push(R[$[0]], R[$[1]]);
|
|
5045
5045
|
}
|
|
5046
5046
|
if (U = [...U, {
|
|
@@ -5102,9 +5102,9 @@ function io(e, t) {
|
|
|
5102
5102
|
};
|
|
5103
5103
|
}
|
|
5104
5104
|
function so(e) {
|
|
5105
|
-
return
|
|
5105
|
+
return Zl.some((t) => e[t] >= 0);
|
|
5106
5106
|
}
|
|
5107
|
-
const
|
|
5107
|
+
const dc = function(e) {
|
|
5108
5108
|
return e === void 0 && (e = {}), {
|
|
5109
5109
|
name: "hide",
|
|
5110
5110
|
options: e,
|
|
@@ -5145,13 +5145,13 @@ const cc = function(e) {
|
|
|
5145
5145
|
}
|
|
5146
5146
|
}
|
|
5147
5147
|
};
|
|
5148
|
-
},
|
|
5149
|
-
async function
|
|
5148
|
+
}, sa = /* @__PURE__ */ new Set(["left", "top"]);
|
|
5149
|
+
async function fc(e, t) {
|
|
5150
5150
|
const {
|
|
5151
5151
|
placement: r,
|
|
5152
5152
|
platform: n,
|
|
5153
5153
|
elements: o
|
|
5154
|
-
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), i = Re(r), s = et(r), u = he(r) === "y", l =
|
|
5154
|
+
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), i = Re(r), s = et(r), u = he(r) === "y", l = sa.has(i) ? -1 : 1, p = a && u ? -1 : 1, c = ke(t, e);
|
|
5155
5155
|
let {
|
|
5156
5156
|
mainAxis: d,
|
|
5157
5157
|
crossAxis: m,
|
|
@@ -5173,7 +5173,7 @@ async function uc(e, t) {
|
|
|
5173
5173
|
y: m * p
|
|
5174
5174
|
};
|
|
5175
5175
|
}
|
|
5176
|
-
const
|
|
5176
|
+
const pc = function(e) {
|
|
5177
5177
|
return e === void 0 && (e = 0), {
|
|
5178
5178
|
name: "offset",
|
|
5179
5179
|
options: e,
|
|
@@ -5184,7 +5184,7 @@ const dc = function(e) {
|
|
|
5184
5184
|
y: a,
|
|
5185
5185
|
placement: i,
|
|
5186
5186
|
middlewareData: s
|
|
5187
|
-
} = t, u = await
|
|
5187
|
+
} = t, u = await fc(t, e);
|
|
5188
5188
|
return i === ((r = s.offset) == null ? void 0 : r.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
|
|
5189
5189
|
x: o + u.x,
|
|
5190
5190
|
y: a + u.y,
|
|
@@ -5195,7 +5195,7 @@ const dc = function(e) {
|
|
|
5195
5195
|
};
|
|
5196
5196
|
}
|
|
5197
5197
|
};
|
|
5198
|
-
},
|
|
5198
|
+
}, mc = function(e) {
|
|
5199
5199
|
return e === void 0 && (e = {}), {
|
|
5200
5200
|
name: "shift",
|
|
5201
5201
|
options: e,
|
|
@@ -5251,7 +5251,7 @@ const dc = function(e) {
|
|
|
5251
5251
|
};
|
|
5252
5252
|
}
|
|
5253
5253
|
};
|
|
5254
|
-
},
|
|
5254
|
+
}, gc = function(e) {
|
|
5255
5255
|
return e === void 0 && (e = {}), {
|
|
5256
5256
|
options: e,
|
|
5257
5257
|
fn(t) {
|
|
@@ -5284,7 +5284,7 @@ const dc = function(e) {
|
|
|
5284
5284
|
}
|
|
5285
5285
|
if (l) {
|
|
5286
5286
|
var w, x;
|
|
5287
|
-
const E = d === "y" ? "width" : "height", _ =
|
|
5287
|
+
const E = d === "y" ? "width" : "height", _ = sa.has(Re(o)), C = a.reference[c] - a.floating[E] + (_ && ((w = i.offset) == null ? void 0 : w[c]) || 0) + (_ ? 0 : v.crossAxis), T = a.reference[c] + a.reference[E] + (_ ? 0 : ((x = i.offset) == null ? void 0 : x[c]) || 0) - (_ ? v.crossAxis : 0);
|
|
5288
5288
|
y < C ? y = C : y > T && (y = T);
|
|
5289
5289
|
}
|
|
5290
5290
|
return {
|
|
@@ -5293,7 +5293,7 @@ const dc = function(e) {
|
|
|
5293
5293
|
};
|
|
5294
5294
|
}
|
|
5295
5295
|
};
|
|
5296
|
-
},
|
|
5296
|
+
}, hc = function(e) {
|
|
5297
5297
|
return e === void 0 && (e = {}), {
|
|
5298
5298
|
name: "size",
|
|
5299
5299
|
options: e,
|
|
@@ -5338,7 +5338,7 @@ function Qt() {
|
|
|
5338
5338
|
return typeof window < "u";
|
|
5339
5339
|
}
|
|
5340
5340
|
function tt(e) {
|
|
5341
|
-
return
|
|
5341
|
+
return la(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5342
5342
|
}
|
|
5343
5343
|
function le(e) {
|
|
5344
5344
|
var t;
|
|
@@ -5346,9 +5346,9 @@ function le(e) {
|
|
|
5346
5346
|
}
|
|
5347
5347
|
function be(e) {
|
|
5348
5348
|
var t;
|
|
5349
|
-
return (t = (
|
|
5349
|
+
return (t = (la(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5350
5350
|
}
|
|
5351
|
-
function
|
|
5351
|
+
function la(e) {
|
|
5352
5352
|
return Qt() ? e instanceof Node || e instanceof le(e).Node : !1;
|
|
5353
5353
|
}
|
|
5354
5354
|
function pe(e) {
|
|
@@ -5360,7 +5360,7 @@ function ve(e) {
|
|
|
5360
5360
|
function lo(e) {
|
|
5361
5361
|
return !Qt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof le(e).ShadowRoot;
|
|
5362
5362
|
}
|
|
5363
|
-
const
|
|
5363
|
+
const yc = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
5364
5364
|
function bt(e) {
|
|
5365
5365
|
const {
|
|
5366
5366
|
overflow: t,
|
|
@@ -5368,15 +5368,15 @@ function bt(e) {
|
|
|
5368
5368
|
overflowY: n,
|
|
5369
5369
|
display: o
|
|
5370
5370
|
} = me(e);
|
|
5371
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !
|
|
5371
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !yc.has(o);
|
|
5372
5372
|
}
|
|
5373
|
-
const
|
|
5374
|
-
function
|
|
5375
|
-
return
|
|
5373
|
+
const vc = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
5374
|
+
function bc(e) {
|
|
5375
|
+
return vc.has(tt(e));
|
|
5376
5376
|
}
|
|
5377
|
-
const
|
|
5377
|
+
const wc = [":popover-open", ":modal"];
|
|
5378
5378
|
function er(e) {
|
|
5379
|
-
return
|
|
5379
|
+
return wc.some((t) => {
|
|
5380
5380
|
try {
|
|
5381
5381
|
return e.matches(t);
|
|
5382
5382
|
} catch {
|
|
@@ -5384,12 +5384,12 @@ function er(e) {
|
|
|
5384
5384
|
}
|
|
5385
5385
|
});
|
|
5386
5386
|
}
|
|
5387
|
-
const
|
|
5387
|
+
const xc = ["transform", "translate", "scale", "rotate", "perspective"], _c = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ec = ["paint", "layout", "strict", "content"];
|
|
5388
5388
|
function on(e) {
|
|
5389
5389
|
const t = an(), r = pe(e) ? me(e) : e;
|
|
5390
|
-
return
|
|
5390
|
+
return xc.some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || _c.some((n) => (r.willChange || "").includes(n)) || Ec.some((n) => (r.contain || "").includes(n));
|
|
5391
5391
|
}
|
|
5392
|
-
function
|
|
5392
|
+
function kc(e) {
|
|
5393
5393
|
let t = Te(e);
|
|
5394
5394
|
for (; ve(t) && !Xe(t); ) {
|
|
5395
5395
|
if (on(t))
|
|
@@ -5403,9 +5403,9 @@ function _c(e) {
|
|
|
5403
5403
|
function an() {
|
|
5404
5404
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
5405
5405
|
}
|
|
5406
|
-
const
|
|
5406
|
+
const Rc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
5407
5407
|
function Xe(e) {
|
|
5408
|
-
return
|
|
5408
|
+
return Rc.has(tt(e));
|
|
5409
5409
|
}
|
|
5410
5410
|
function me(e) {
|
|
5411
5411
|
return le(e).getComputedStyle(e);
|
|
@@ -5431,14 +5431,14 @@ function Te(e) {
|
|
|
5431
5431
|
);
|
|
5432
5432
|
return lo(t) ? t.host : t;
|
|
5433
5433
|
}
|
|
5434
|
-
function
|
|
5434
|
+
function ca(e) {
|
|
5435
5435
|
const t = Te(e);
|
|
5436
|
-
return Xe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ve(t) && bt(t) ? t :
|
|
5436
|
+
return Xe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ve(t) && bt(t) ? t : ca(t);
|
|
5437
5437
|
}
|
|
5438
5438
|
function ut(e, t, r) {
|
|
5439
5439
|
var n;
|
|
5440
5440
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
5441
|
-
const o =
|
|
5441
|
+
const o = ca(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = le(o);
|
|
5442
5442
|
if (a) {
|
|
5443
5443
|
const s = Pr(i);
|
|
5444
5444
|
return t.concat(i, i.visualViewport || [], bt(o) ? o : [], s && r ? ut(s) : []);
|
|
@@ -5448,7 +5448,7 @@ function ut(e, t, r) {
|
|
|
5448
5448
|
function Pr(e) {
|
|
5449
5449
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5450
5450
|
}
|
|
5451
|
-
function
|
|
5451
|
+
function ua(e) {
|
|
5452
5452
|
const t = me(e);
|
|
5453
5453
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
5454
5454
|
const o = ve(e), a = o ? e.offsetWidth : r, i = o ? e.offsetHeight : n, s = zt(r) !== a || zt(n) !== i;
|
|
@@ -5469,22 +5469,22 @@ function Be(e) {
|
|
|
5469
5469
|
width: n,
|
|
5470
5470
|
height: o,
|
|
5471
5471
|
$: a
|
|
5472
|
-
} =
|
|
5472
|
+
} = ua(t);
|
|
5473
5473
|
let i = (a ? zt(r.width) : r.width) / n, s = (a ? zt(r.height) : r.height) / o;
|
|
5474
5474
|
return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
5475
5475
|
x: i,
|
|
5476
5476
|
y: s
|
|
5477
5477
|
};
|
|
5478
5478
|
}
|
|
5479
|
-
const
|
|
5480
|
-
function
|
|
5479
|
+
const Sc = /* @__PURE__ */ ye(0);
|
|
5480
|
+
function da(e) {
|
|
5481
5481
|
const t = le(e);
|
|
5482
|
-
return !an() || !t.visualViewport ?
|
|
5482
|
+
return !an() || !t.visualViewport ? Sc : {
|
|
5483
5483
|
x: t.visualViewport.offsetLeft,
|
|
5484
5484
|
y: t.visualViewport.offsetTop
|
|
5485
5485
|
};
|
|
5486
5486
|
}
|
|
5487
|
-
function
|
|
5487
|
+
function Cc(e, t, r) {
|
|
5488
5488
|
return t === void 0 && (t = !1), !r || t && r !== le(e) ? !1 : t;
|
|
5489
5489
|
}
|
|
5490
5490
|
function Me(e, t, r, n) {
|
|
@@ -5492,7 +5492,7 @@ function Me(e, t, r, n) {
|
|
|
5492
5492
|
const o = e.getBoundingClientRect(), a = sn(e);
|
|
5493
5493
|
let i = ye(1);
|
|
5494
5494
|
t && (n ? pe(n) && (i = Be(n)) : i = Be(e));
|
|
5495
|
-
const s =
|
|
5495
|
+
const s = Cc(a, r, n) ? da(a) : ye(0);
|
|
5496
5496
|
let u = (o.left + s.x) / i.x, l = (o.top + s.y) / i.y, p = o.width / i.x, c = o.height / i.y;
|
|
5497
5497
|
if (a) {
|
|
5498
5498
|
const d = le(a), m = n && pe(n) ? le(n) : n;
|
|
@@ -5513,14 +5513,14 @@ function rr(e, t) {
|
|
|
5513
5513
|
const r = tr(e).scrollLeft;
|
|
5514
5514
|
return t ? t.left + r : Me(be(e)).left + r;
|
|
5515
5515
|
}
|
|
5516
|
-
function
|
|
5516
|
+
function fa(e, t) {
|
|
5517
5517
|
const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - rr(e, r), o = r.top + t.scrollTop;
|
|
5518
5518
|
return {
|
|
5519
5519
|
x: n,
|
|
5520
5520
|
y: o
|
|
5521
5521
|
};
|
|
5522
5522
|
}
|
|
5523
|
-
function
|
|
5523
|
+
function Oc(e) {
|
|
5524
5524
|
let {
|
|
5525
5525
|
elements: t,
|
|
5526
5526
|
rect: r,
|
|
@@ -5539,7 +5539,7 @@ function Sc(e) {
|
|
|
5539
5539
|
const m = Me(n);
|
|
5540
5540
|
l = Be(n), p.x = m.x + n.clientLeft, p.y = m.y + n.clientTop;
|
|
5541
5541
|
}
|
|
5542
|
-
const d = i && !c && !a ?
|
|
5542
|
+
const d = i && !c && !a ? fa(i, u) : ye(0);
|
|
5543
5543
|
return {
|
|
5544
5544
|
width: r.width * l.x,
|
|
5545
5545
|
height: r.height * l.y,
|
|
@@ -5547,10 +5547,10 @@ function Sc(e) {
|
|
|
5547
5547
|
y: r.y * l.y - u.scrollTop * l.y + p.y + d.y
|
|
5548
5548
|
};
|
|
5549
5549
|
}
|
|
5550
|
-
function
|
|
5550
|
+
function jc(e) {
|
|
5551
5551
|
return Array.from(e.getClientRects());
|
|
5552
5552
|
}
|
|
5553
|
-
function
|
|
5553
|
+
function Tc(e) {
|
|
5554
5554
|
const t = be(e), r = tr(e), n = e.ownerDocument.body, o = se(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = se(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
5555
5555
|
let i = -r.scrollLeft + rr(e);
|
|
5556
5556
|
const s = -r.scrollTop;
|
|
@@ -5562,7 +5562,7 @@ function Oc(e) {
|
|
|
5562
5562
|
};
|
|
5563
5563
|
}
|
|
5564
5564
|
const co = 25;
|
|
5565
|
-
function
|
|
5565
|
+
function Nc(e, t) {
|
|
5566
5566
|
const r = le(e), n = be(e), o = r.visualViewport;
|
|
5567
5567
|
let a = n.clientWidth, i = n.clientHeight, s = 0, u = 0;
|
|
5568
5568
|
if (o) {
|
|
@@ -5582,8 +5582,8 @@ function jc(e, t) {
|
|
|
5582
5582
|
y: u
|
|
5583
5583
|
};
|
|
5584
5584
|
}
|
|
5585
|
-
const
|
|
5586
|
-
function
|
|
5585
|
+
const Dc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
5586
|
+
function Ac(e, t) {
|
|
5587
5587
|
const r = Me(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, a = ve(e) ? Be(e) : ye(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, u = o * a.x, l = n * a.y;
|
|
5588
5588
|
return {
|
|
5589
5589
|
width: i,
|
|
@@ -5595,13 +5595,13 @@ function Nc(e, t) {
|
|
|
5595
5595
|
function uo(e, t, r) {
|
|
5596
5596
|
let n;
|
|
5597
5597
|
if (t === "viewport")
|
|
5598
|
-
n =
|
|
5598
|
+
n = Nc(e, r);
|
|
5599
5599
|
else if (t === "document")
|
|
5600
|
-
n =
|
|
5600
|
+
n = Tc(be(e));
|
|
5601
5601
|
else if (pe(t))
|
|
5602
|
-
n =
|
|
5602
|
+
n = Ac(t, r);
|
|
5603
5603
|
else {
|
|
5604
|
-
const o =
|
|
5604
|
+
const o = da(e);
|
|
5605
5605
|
n = {
|
|
5606
5606
|
x: t.x - o.x,
|
|
5607
5607
|
y: t.y - o.y,
|
|
@@ -5611,11 +5611,11 @@ function uo(e, t, r) {
|
|
|
5611
5611
|
}
|
|
5612
5612
|
return Wt(n);
|
|
5613
5613
|
}
|
|
5614
|
-
function
|
|
5614
|
+
function pa(e, t) {
|
|
5615
5615
|
const r = Te(e);
|
|
5616
|
-
return r === t || !pe(r) || Xe(r) ? !1 : me(r).position === "fixed" ||
|
|
5616
|
+
return r === t || !pe(r) || Xe(r) ? !1 : me(r).position === "fixed" || pa(r, t);
|
|
5617
5617
|
}
|
|
5618
|
-
function
|
|
5618
|
+
function Pc(e, t) {
|
|
5619
5619
|
const r = t.get(e);
|
|
5620
5620
|
if (r)
|
|
5621
5621
|
return r;
|
|
@@ -5624,18 +5624,18 @@ function Dc(e, t) {
|
|
|
5624
5624
|
let i = a ? Te(e) : e;
|
|
5625
5625
|
for (; pe(i) && !Xe(i); ) {
|
|
5626
5626
|
const s = me(i), u = on(i);
|
|
5627
|
-
!u && s.position === "fixed" && (o = null), (a ? !u && !o : !u && s.position === "static" && o &&
|
|
5627
|
+
!u && s.position === "fixed" && (o = null), (a ? !u && !o : !u && s.position === "static" && o && Dc.has(o.position) || bt(i) && !u && pa(e, i)) ? n = n.filter((l) => l !== i) : o = s, i = Te(i);
|
|
5628
5628
|
}
|
|
5629
5629
|
return t.set(e, n), n;
|
|
5630
5630
|
}
|
|
5631
|
-
function
|
|
5631
|
+
function Mc(e) {
|
|
5632
5632
|
let {
|
|
5633
5633
|
element: t,
|
|
5634
5634
|
boundary: r,
|
|
5635
5635
|
rootBoundary: n,
|
|
5636
5636
|
strategy: o
|
|
5637
5637
|
} = e;
|
|
5638
|
-
const a = [...r === "clippingAncestors" ? er(t) ? [] :
|
|
5638
|
+
const a = [...r === "clippingAncestors" ? er(t) ? [] : Pc(t, this._c) : [].concat(r), n], i = a[0], s = a.reduce((u, l) => {
|
|
5639
5639
|
const p = uo(t, l, o);
|
|
5640
5640
|
return u.top = se(p.top, u.top), u.right = je(p.right, u.right), u.bottom = je(p.bottom, u.bottom), u.left = se(p.left, u.left), u;
|
|
5641
5641
|
}, uo(t, i, o));
|
|
@@ -5646,17 +5646,17 @@ function Ac(e) {
|
|
|
5646
5646
|
y: s.top
|
|
5647
5647
|
};
|
|
5648
5648
|
}
|
|
5649
|
-
function
|
|
5649
|
+
function Lc(e) {
|
|
5650
5650
|
const {
|
|
5651
5651
|
width: t,
|
|
5652
5652
|
height: r
|
|
5653
|
-
} =
|
|
5653
|
+
} = ua(e);
|
|
5654
5654
|
return {
|
|
5655
5655
|
width: t,
|
|
5656
5656
|
height: r
|
|
5657
5657
|
};
|
|
5658
5658
|
}
|
|
5659
|
-
function
|
|
5659
|
+
function Ic(e, t, r) {
|
|
5660
5660
|
const n = ve(t), o = be(t), a = r === "fixed", i = Me(e, !0, a, t);
|
|
5661
5661
|
let s = {
|
|
5662
5662
|
scrollLeft: 0,
|
|
@@ -5672,7 +5672,7 @@ function Mc(e, t, r) {
|
|
|
5672
5672
|
u.x = m.x + t.clientLeft, u.y = m.y + t.clientTop;
|
|
5673
5673
|
} else o && l();
|
|
5674
5674
|
a && !n && o && l();
|
|
5675
|
-
const p = o && !n && !a ?
|
|
5675
|
+
const p = o && !n && !a ? fa(o, s) : ye(0), c = i.left + s.scrollLeft - u.x - p.x, d = i.top + s.scrollTop - u.y - p.y;
|
|
5676
5676
|
return {
|
|
5677
5677
|
x: c,
|
|
5678
5678
|
y: d,
|
|
@@ -5691,7 +5691,7 @@ function fo(e, t) {
|
|
|
5691
5691
|
let r = e.offsetParent;
|
|
5692
5692
|
return be(e) === r && (r = r.ownerDocument.body), r;
|
|
5693
5693
|
}
|
|
5694
|
-
function
|
|
5694
|
+
function ma(e, t) {
|
|
5695
5695
|
const r = le(e);
|
|
5696
5696
|
if (er(e))
|
|
5697
5697
|
return r;
|
|
@@ -5705,14 +5705,14 @@ function pa(e, t) {
|
|
|
5705
5705
|
return r;
|
|
5706
5706
|
}
|
|
5707
5707
|
let n = fo(e, t);
|
|
5708
|
-
for (; n &&
|
|
5708
|
+
for (; n && bc(n) && vr(n); )
|
|
5709
5709
|
n = fo(n, t);
|
|
5710
|
-
return n && Xe(n) && vr(n) && !on(n) ? r : n ||
|
|
5710
|
+
return n && Xe(n) && vr(n) && !on(n) ? r : n || kc(e) || r;
|
|
5711
5711
|
}
|
|
5712
|
-
const
|
|
5713
|
-
const t = this.getOffsetParent ||
|
|
5712
|
+
const Fc = async function(e) {
|
|
5713
|
+
const t = this.getOffsetParent || ma, r = this.getDimensions, n = await r(e.floating);
|
|
5714
5714
|
return {
|
|
5715
|
-
reference:
|
|
5715
|
+
reference: Ic(e.reference, await t(e.floating), e.strategy),
|
|
5716
5716
|
floating: {
|
|
5717
5717
|
x: 0,
|
|
5718
5718
|
y: 0,
|
|
@@ -5721,25 +5721,25 @@ const Lc = async function(e) {
|
|
|
5721
5721
|
}
|
|
5722
5722
|
};
|
|
5723
5723
|
};
|
|
5724
|
-
function
|
|
5724
|
+
function Vc(e) {
|
|
5725
5725
|
return me(e).direction === "rtl";
|
|
5726
5726
|
}
|
|
5727
|
-
const
|
|
5728
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5727
|
+
const zc = {
|
|
5728
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Oc,
|
|
5729
5729
|
getDocumentElement: be,
|
|
5730
|
-
getClippingRect:
|
|
5731
|
-
getOffsetParent:
|
|
5732
|
-
getElementRects:
|
|
5733
|
-
getClientRects:
|
|
5734
|
-
getDimensions:
|
|
5730
|
+
getClippingRect: Mc,
|
|
5731
|
+
getOffsetParent: ma,
|
|
5732
|
+
getElementRects: Fc,
|
|
5733
|
+
getClientRects: jc,
|
|
5734
|
+
getDimensions: Lc,
|
|
5735
5735
|
getScale: Be,
|
|
5736
5736
|
isElement: pe,
|
|
5737
|
-
isRTL:
|
|
5737
|
+
isRTL: Vc
|
|
5738
5738
|
};
|
|
5739
|
-
function
|
|
5739
|
+
function ga(e, t) {
|
|
5740
5740
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5741
5741
|
}
|
|
5742
|
-
function
|
|
5742
|
+
function $c(e, t) {
|
|
5743
5743
|
let r = null, n;
|
|
5744
5744
|
const o = be(e);
|
|
5745
5745
|
function a() {
|
|
@@ -5770,7 +5770,7 @@ function Vc(e, t) {
|
|
|
5770
5770
|
i(!1, 1e-7);
|
|
5771
5771
|
}, 1e3);
|
|
5772
5772
|
}
|
|
5773
|
-
T === 1 && !
|
|
5773
|
+
T === 1 && !ga(l, e.getBoundingClientRect()) && i(), E = !1;
|
|
5774
5774
|
}
|
|
5775
5775
|
try {
|
|
5776
5776
|
r = new IntersectionObserver(_, {
|
|
@@ -5785,7 +5785,7 @@ function Vc(e, t) {
|
|
|
5785
5785
|
}
|
|
5786
5786
|
return i(!0), a;
|
|
5787
5787
|
}
|
|
5788
|
-
function
|
|
5788
|
+
function Wc(e, t, r, n) {
|
|
5789
5789
|
n === void 0 && (n = {});
|
|
5790
5790
|
const {
|
|
5791
5791
|
ancestorScroll: o = !0,
|
|
@@ -5799,7 +5799,7 @@ function zc(e, t, r, n) {
|
|
|
5799
5799
|
passive: !0
|
|
5800
5800
|
}), a && w.addEventListener("resize", r);
|
|
5801
5801
|
});
|
|
5802
|
-
const c = l && s ?
|
|
5802
|
+
const c = l && s ? $c(l, r) : null;
|
|
5803
5803
|
let d = -1, m = null;
|
|
5804
5804
|
i && (m = new ResizeObserver((w) => {
|
|
5805
5805
|
let [x] = w;
|
|
@@ -5812,7 +5812,7 @@ function zc(e, t, r, n) {
|
|
|
5812
5812
|
u && v();
|
|
5813
5813
|
function v() {
|
|
5814
5814
|
const w = Me(e);
|
|
5815
|
-
g && !
|
|
5815
|
+
g && !ga(g, w) && r(), g = w, y = requestAnimationFrame(v);
|
|
5816
5816
|
}
|
|
5817
5817
|
return r(), () => {
|
|
5818
5818
|
var w;
|
|
@@ -5821,21 +5821,21 @@ function zc(e, t, r, n) {
|
|
|
5821
5821
|
}), c?.(), (w = m) == null || w.disconnect(), m = null, u && cancelAnimationFrame(y);
|
|
5822
5822
|
};
|
|
5823
5823
|
}
|
|
5824
|
-
const
|
|
5824
|
+
const Uc = pc, Bc = mc, Gc = uc, Hc = hc, Kc = dc, po = cc, Yc = gc, Xc = (e, t, r) => {
|
|
5825
5825
|
const n = /* @__PURE__ */ new Map(), o = {
|
|
5826
|
-
platform:
|
|
5826
|
+
platform: zc,
|
|
5827
5827
|
...r
|
|
5828
5828
|
}, a = {
|
|
5829
5829
|
...o.platform,
|
|
5830
5830
|
_c: n
|
|
5831
5831
|
};
|
|
5832
|
-
return
|
|
5832
|
+
return lc(e, t, {
|
|
5833
5833
|
...o,
|
|
5834
5834
|
platform: a
|
|
5835
5835
|
});
|
|
5836
5836
|
};
|
|
5837
|
-
var
|
|
5838
|
-
}, Mt =
|
|
5837
|
+
var qc = typeof document < "u", Zc = function() {
|
|
5838
|
+
}, Mt = qc ? Xi : Zc;
|
|
5839
5839
|
function Ut(e, t) {
|
|
5840
5840
|
if (e === t)
|
|
5841
5841
|
return !0;
|
|
@@ -5866,11 +5866,11 @@ function Ut(e, t) {
|
|
|
5866
5866
|
}
|
|
5867
5867
|
return e !== e && t !== t;
|
|
5868
5868
|
}
|
|
5869
|
-
function
|
|
5869
|
+
function ha(e) {
|
|
5870
5870
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5871
5871
|
}
|
|
5872
5872
|
function mo(e, t) {
|
|
5873
|
-
const r =
|
|
5873
|
+
const r = ha(e);
|
|
5874
5874
|
return Math.round(t * r) / r;
|
|
5875
5875
|
}
|
|
5876
5876
|
function br(e) {
|
|
@@ -5879,7 +5879,7 @@ function br(e) {
|
|
|
5879
5879
|
t.current = e;
|
|
5880
5880
|
}), t;
|
|
5881
5881
|
}
|
|
5882
|
-
function
|
|
5882
|
+
function Jc(e) {
|
|
5883
5883
|
e === void 0 && (e = {});
|
|
5884
5884
|
const {
|
|
5885
5885
|
placement: t = "bottom",
|
|
@@ -5914,7 +5914,7 @@ function qc(e) {
|
|
|
5914
5914
|
strategy: r,
|
|
5915
5915
|
middleware: d
|
|
5916
5916
|
};
|
|
5917
|
-
B.current && (k.platform = B.current),
|
|
5917
|
+
B.current && (k.platform = B.current), Xc(T.current, j.current, k).then((N) => {
|
|
5918
5918
|
const h = {
|
|
5919
5919
|
...N,
|
|
5920
5920
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5964,7 +5964,7 @@ function qc(e) {
|
|
|
5964
5964
|
return s ? {
|
|
5965
5965
|
...k,
|
|
5966
5966
|
transform: "translate(" + N + "px, " + h + "px)",
|
|
5967
|
-
...
|
|
5967
|
+
...ha(G.floating) >= 1.5 && {
|
|
5968
5968
|
willChange: "transform"
|
|
5969
5969
|
}
|
|
5970
5970
|
} : {
|
|
@@ -5981,7 +5981,7 @@ function qc(e) {
|
|
|
5981
5981
|
floatingStyles: H
|
|
5982
5982
|
}), [p, Z, Y, G, H]);
|
|
5983
5983
|
}
|
|
5984
|
-
const
|
|
5984
|
+
const Qc = (e) => {
|
|
5985
5985
|
function t(r) {
|
|
5986
5986
|
return {}.hasOwnProperty.call(r, "current");
|
|
5987
5987
|
}
|
|
@@ -6002,29 +6002,29 @@ const Zc = (e) => {
|
|
|
6002
6002
|
}).fn(r) : {};
|
|
6003
6003
|
}
|
|
6004
6004
|
};
|
|
6005
|
-
},
|
|
6006
|
-
|
|
6007
|
-
options: [e, t]
|
|
6008
|
-
}), Qc = (e, t) => ({
|
|
6009
|
-
...Wc(e),
|
|
6010
|
-
options: [e, t]
|
|
6011
|
-
}), eu = (e, t) => ({
|
|
6012
|
-
...Hc(e),
|
|
6005
|
+
}, eu = (e, t) => ({
|
|
6006
|
+
...Uc(e),
|
|
6013
6007
|
options: [e, t]
|
|
6014
6008
|
}), tu = (e, t) => ({
|
|
6015
|
-
...
|
|
6009
|
+
...Bc(e),
|
|
6016
6010
|
options: [e, t]
|
|
6017
6011
|
}), ru = (e, t) => ({
|
|
6018
|
-
...
|
|
6012
|
+
...Yc(e),
|
|
6019
6013
|
options: [e, t]
|
|
6020
6014
|
}), nu = (e, t) => ({
|
|
6021
6015
|
...Gc(e),
|
|
6022
6016
|
options: [e, t]
|
|
6023
6017
|
}), ou = (e, t) => ({
|
|
6024
|
-
...
|
|
6018
|
+
...Hc(e),
|
|
6019
|
+
options: [e, t]
|
|
6020
|
+
}), au = (e, t) => ({
|
|
6021
|
+
...Kc(e),
|
|
6022
|
+
options: [e, t]
|
|
6023
|
+
}), iu = (e, t) => ({
|
|
6024
|
+
...Qc(e),
|
|
6025
6025
|
options: [e, t]
|
|
6026
6026
|
});
|
|
6027
|
-
var
|
|
6027
|
+
var su = "Arrow", ya = f.forwardRef((e, t) => {
|
|
6028
6028
|
const { children: r, width: n = 10, height: o = 5, ...a } = e;
|
|
6029
6029
|
return /* @__PURE__ */ b.jsx(
|
|
6030
6030
|
J.svg,
|
|
@@ -6039,11 +6039,11 @@ var au = "Arrow", ha = f.forwardRef((e, t) => {
|
|
|
6039
6039
|
}
|
|
6040
6040
|
);
|
|
6041
6041
|
});
|
|
6042
|
-
|
|
6043
|
-
var
|
|
6044
|
-
function
|
|
6042
|
+
ya.displayName = su;
|
|
6043
|
+
var lu = ya;
|
|
6044
|
+
function cu(e) {
|
|
6045
6045
|
const [t, r] = f.useState(void 0);
|
|
6046
|
-
return
|
|
6046
|
+
return fe(() => {
|
|
6047
6047
|
if (e) {
|
|
6048
6048
|
r({ width: e.offsetWidth, height: e.offsetHeight });
|
|
6049
6049
|
const n = new ResizeObserver((o) => {
|
|
@@ -6063,17 +6063,17 @@ function su(e) {
|
|
|
6063
6063
|
r(void 0);
|
|
6064
6064
|
}, [e]), t;
|
|
6065
6065
|
}
|
|
6066
|
-
var
|
|
6066
|
+
var va = "Popper", [ba, nr] = Se(va), [nm, wa] = ba(va), xa = "PopperAnchor", _a = f.forwardRef(
|
|
6067
6067
|
(e, t) => {
|
|
6068
|
-
const { __scopePopper: r, virtualRef: n, ...o } = e, a =
|
|
6068
|
+
const { __scopePopper: r, virtualRef: n, ...o } = e, a = wa(xa, r), i = f.useRef(null), s = ee(t, i), u = f.useRef(null);
|
|
6069
6069
|
return f.useEffect(() => {
|
|
6070
6070
|
const l = u.current;
|
|
6071
6071
|
u.current = n?.current || i.current, l !== u.current && a.onAnchorChange(u.current);
|
|
6072
6072
|
}), n ? null : /* @__PURE__ */ b.jsx(J.div, { ...o, ref: s });
|
|
6073
6073
|
}
|
|
6074
6074
|
);
|
|
6075
|
-
|
|
6076
|
-
var ln = "PopperContent", [
|
|
6075
|
+
_a.displayName = xa;
|
|
6076
|
+
var ln = "PopperContent", [uu, du] = ba(ln), Ea = f.forwardRef(
|
|
6077
6077
|
(e, t) => {
|
|
6078
6078
|
const {
|
|
6079
6079
|
__scopePopper: r,
|
|
@@ -6090,47 +6090,47 @@ var ln = "PopperContent", [lu, cu] = va(ln), _a = f.forwardRef(
|
|
|
6090
6090
|
updatePositionStrategy: m = "optimized",
|
|
6091
6091
|
onPlaced: y,
|
|
6092
6092
|
...g
|
|
6093
|
-
} = e, v =
|
|
6093
|
+
} = e, v = wa(ln, r), [w, x] = f.useState(null), E = ee(t, (V) => x(V)), [_, C] = f.useState(null), T = cu(_), j = T?.width ?? 0, R = T?.height ?? 0, L = n + (a !== "center" ? "-" + a : ""), U = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, B = Array.isArray(l) ? l : [l], X = B.length > 0, Z = {
|
|
6094
6094
|
padding: U,
|
|
6095
|
-
boundary: B.filter(
|
|
6095
|
+
boundary: B.filter(pu),
|
|
6096
6096
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
6097
6097
|
altBoundary: X
|
|
6098
|
-
}, { refs: $, floatingStyles: Y, placement: G, isPositioned: H, middlewareData: k } =
|
|
6098
|
+
}, { refs: $, floatingStyles: Y, placement: G, isPositioned: H, middlewareData: k } = Jc({
|
|
6099
6099
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
6100
6100
|
strategy: "fixed",
|
|
6101
6101
|
placement: L,
|
|
6102
|
-
whileElementsMounted: (...V) =>
|
|
6102
|
+
whileElementsMounted: (...V) => Wc(...V, {
|
|
6103
6103
|
animationFrame: m === "always"
|
|
6104
6104
|
}),
|
|
6105
6105
|
elements: {
|
|
6106
6106
|
reference: v.anchor
|
|
6107
6107
|
},
|
|
6108
6108
|
middleware: [
|
|
6109
|
-
|
|
6110
|
-
u &&
|
|
6109
|
+
eu({ mainAxis: o + R, alignmentAxis: i }),
|
|
6110
|
+
u && tu({
|
|
6111
6111
|
mainAxis: !0,
|
|
6112
6112
|
crossAxis: !1,
|
|
6113
|
-
limiter: c === "partial" ?
|
|
6113
|
+
limiter: c === "partial" ? ru() : void 0,
|
|
6114
6114
|
...Z
|
|
6115
6115
|
}),
|
|
6116
|
-
u &&
|
|
6117
|
-
|
|
6116
|
+
u && nu({ ...Z }),
|
|
6117
|
+
ou({
|
|
6118
6118
|
...Z,
|
|
6119
6119
|
apply: ({ elements: V, rects: z, availableWidth: Q, availableHeight: ae }) => {
|
|
6120
6120
|
const { width: xe, height: Ve } = z.reference, _t = V.floating.style;
|
|
6121
6121
|
_t.setProperty("--radix-popper-available-width", `${Q}px`), _t.setProperty("--radix-popper-available-height", `${ae}px`), _t.setProperty("--radix-popper-anchor-width", `${xe}px`), _t.setProperty("--radix-popper-anchor-height", `${Ve}px`);
|
|
6122
6122
|
}
|
|
6123
6123
|
}),
|
|
6124
|
-
_ &&
|
|
6125
|
-
|
|
6126
|
-
d &&
|
|
6124
|
+
_ && iu({ element: _, padding: s }),
|
|
6125
|
+
mu({ arrowWidth: j, arrowHeight: R }),
|
|
6126
|
+
d && au({ strategy: "referenceHidden", ...Z })
|
|
6127
6127
|
]
|
|
6128
|
-
}), [N, h] =
|
|
6129
|
-
|
|
6128
|
+
}), [N, h] = Sa(G), S = Ee(y);
|
|
6129
|
+
fe(() => {
|
|
6130
6130
|
H && S?.();
|
|
6131
6131
|
}, [H, S]);
|
|
6132
6132
|
const P = k.arrow?.x, M = k.arrow?.y, K = k.arrow?.centerOffset !== 0, [q, ne] = f.useState();
|
|
6133
|
-
return
|
|
6133
|
+
return fe(() => {
|
|
6134
6134
|
w && ne(window.getComputedStyle(w).zIndex);
|
|
6135
6135
|
}, [w]), /* @__PURE__ */ b.jsx(
|
|
6136
6136
|
"div",
|
|
@@ -6157,7 +6157,7 @@ var ln = "PopperContent", [lu, cu] = va(ln), _a = f.forwardRef(
|
|
|
6157
6157
|
},
|
|
6158
6158
|
dir: e.dir,
|
|
6159
6159
|
children: /* @__PURE__ */ b.jsx(
|
|
6160
|
-
|
|
6160
|
+
uu,
|
|
6161
6161
|
{
|
|
6162
6162
|
scope: r,
|
|
6163
6163
|
placedSide: N,
|
|
@@ -6186,14 +6186,14 @@ var ln = "PopperContent", [lu, cu] = va(ln), _a = f.forwardRef(
|
|
|
6186
6186
|
);
|
|
6187
6187
|
}
|
|
6188
6188
|
);
|
|
6189
|
-
|
|
6190
|
-
var
|
|
6189
|
+
Ea.displayName = ln;
|
|
6190
|
+
var ka = "PopperArrow", fu = {
|
|
6191
6191
|
top: "bottom",
|
|
6192
6192
|
right: "left",
|
|
6193
6193
|
bottom: "top",
|
|
6194
6194
|
left: "right"
|
|
6195
|
-
},
|
|
6196
|
-
const { __scopePopper: r, ...n } = e, o =
|
|
6195
|
+
}, Ra = f.forwardRef(function(e, t) {
|
|
6196
|
+
const { __scopePopper: r, ...n } = e, o = du(ka, r), a = fu[o.placedSide];
|
|
6197
6197
|
return (
|
|
6198
6198
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
6199
6199
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -6222,7 +6222,7 @@ var Ea = "PopperArrow", uu = {
|
|
|
6222
6222
|
visibility: o.shouldHideArrow ? "hidden" : void 0
|
|
6223
6223
|
},
|
|
6224
6224
|
children: /* @__PURE__ */ b.jsx(
|
|
6225
|
-
|
|
6225
|
+
lu,
|
|
6226
6226
|
{
|
|
6227
6227
|
...n,
|
|
6228
6228
|
ref: t,
|
|
@@ -6237,38 +6237,38 @@ var Ea = "PopperArrow", uu = {
|
|
|
6237
6237
|
)
|
|
6238
6238
|
);
|
|
6239
6239
|
});
|
|
6240
|
-
|
|
6241
|
-
function
|
|
6240
|
+
Ra.displayName = ka;
|
|
6241
|
+
function pu(e) {
|
|
6242
6242
|
return e !== null;
|
|
6243
6243
|
}
|
|
6244
|
-
var
|
|
6244
|
+
var mu = (e) => ({
|
|
6245
6245
|
name: "transformOrigin",
|
|
6246
6246
|
options: e,
|
|
6247
6247
|
fn(t) {
|
|
6248
|
-
const { placement: r, rects: n, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [u, l] =
|
|
6248
|
+
const { placement: r, rects: n, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [u, l] = Sa(r), p = { start: "0%", center: "50%", end: "100%" }[l], c = (o.arrow?.x ?? 0) + i / 2, d = (o.arrow?.y ?? 0) + s / 2;
|
|
6249
6249
|
let m = "", y = "";
|
|
6250
6250
|
return u === "bottom" ? (m = a ? p : `${c}px`, y = `${-s}px`) : u === "top" ? (m = a ? p : `${c}px`, y = `${n.floating.height + s}px`) : u === "right" ? (m = `${-s}px`, y = a ? p : `${d}px`) : u === "left" && (m = `${n.floating.width + s}px`, y = a ? p : `${d}px`), { data: { x: m, y } };
|
|
6251
6251
|
}
|
|
6252
6252
|
});
|
|
6253
|
-
function
|
|
6253
|
+
function Sa(e) {
|
|
6254
6254
|
const [t, r = "center"] = e.split("-");
|
|
6255
6255
|
return [t, r];
|
|
6256
6256
|
}
|
|
6257
|
-
var
|
|
6257
|
+
var Ca = _a, Oa = Ea, ja = Ra, gu = "Portal", hu = f.forwardRef((e, t) => {
|
|
6258
6258
|
const { container: r, ...n } = e, [o, a] = f.useState(!1);
|
|
6259
|
-
|
|
6259
|
+
fe(() => a(!0), []);
|
|
6260
6260
|
const i = r || o && globalThis?.document?.body;
|
|
6261
|
-
return i ?
|
|
6261
|
+
return i ? Us.createPortal(/* @__PURE__ */ b.jsx(J.div, { ...n, ref: t }), i) : null;
|
|
6262
6262
|
});
|
|
6263
|
-
|
|
6264
|
-
var wr = "rovingFocusGroup.onEntryFocus",
|
|
6263
|
+
hu.displayName = gu;
|
|
6264
|
+
var wr = "rovingFocusGroup.onEntryFocus", yu = { bubbles: !1, cancelable: !0 }, wt = "RovingFocusGroup", [Mr, Ta, vu] = ta(wt), [bu, Na] = Se(
|
|
6265
6265
|
wt,
|
|
6266
|
-
[
|
|
6267
|
-
), [
|
|
6268
|
-
(e, t) => /* @__PURE__ */ b.jsx(Mr.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ b.jsx(Mr.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ b.jsx(
|
|
6266
|
+
[vu]
|
|
6267
|
+
), [wu, xu] = bu(wt), Da = f.forwardRef(
|
|
6268
|
+
(e, t) => /* @__PURE__ */ b.jsx(Mr.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ b.jsx(Mr.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ b.jsx(_u, { ...e, ref: t }) }) })
|
|
6269
6269
|
);
|
|
6270
|
-
|
|
6271
|
-
var
|
|
6270
|
+
Da.displayName = wt;
|
|
6271
|
+
var _u = f.forwardRef((e, t) => {
|
|
6272
6272
|
const {
|
|
6273
6273
|
__scopeRovingFocusGroup: r,
|
|
6274
6274
|
orientation: n,
|
|
@@ -6280,18 +6280,18 @@ var wu = f.forwardRef((e, t) => {
|
|
|
6280
6280
|
onEntryFocus: l,
|
|
6281
6281
|
preventScrollOnEntryFocus: p = !1,
|
|
6282
6282
|
...c
|
|
6283
|
-
} = e, d = f.useRef(null), m = ee(t, d), y =
|
|
6283
|
+
} = e, d = f.useRef(null), m = ee(t, d), y = Ml(a), [g, v] = Jo({
|
|
6284
6284
|
prop: i,
|
|
6285
6285
|
defaultProp: s ?? null,
|
|
6286
6286
|
onChange: u,
|
|
6287
6287
|
caller: wt
|
|
6288
|
-
}), [w, x] = f.useState(!1), E = Ee(l), _ =
|
|
6288
|
+
}), [w, x] = f.useState(!1), E = Ee(l), _ = Ta(r), C = f.useRef(!1), [T, j] = f.useState(0);
|
|
6289
6289
|
return f.useEffect(() => {
|
|
6290
6290
|
const R = d.current;
|
|
6291
6291
|
if (R)
|
|
6292
6292
|
return R.addEventListener(wr, E), () => R.removeEventListener(wr, E);
|
|
6293
6293
|
}, [E]), /* @__PURE__ */ b.jsx(
|
|
6294
|
-
|
|
6294
|
+
wu,
|
|
6295
6295
|
{
|
|
6296
6296
|
scope: r,
|
|
6297
6297
|
orientation: n,
|
|
@@ -6325,12 +6325,12 @@ var wu = f.forwardRef((e, t) => {
|
|
|
6325
6325
|
onFocus: I(e.onFocus, (R) => {
|
|
6326
6326
|
const L = !C.current;
|
|
6327
6327
|
if (R.target === R.currentTarget && L && !w) {
|
|
6328
|
-
const U = new CustomEvent(wr,
|
|
6328
|
+
const U = new CustomEvent(wr, yu);
|
|
6329
6329
|
if (R.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
|
|
6330
6330
|
const B = _().filter((Y) => Y.focusable), X = B.find((Y) => Y.active), Z = B.find((Y) => Y.id === g), $ = [X, Z, ...B].filter(
|
|
6331
6331
|
Boolean
|
|
6332
6332
|
).map((Y) => Y.ref.current);
|
|
6333
|
-
|
|
6333
|
+
Ma($, p);
|
|
6334
6334
|
}
|
|
6335
6335
|
}
|
|
6336
6336
|
C.current = !1;
|
|
@@ -6340,7 +6340,7 @@ var wu = f.forwardRef((e, t) => {
|
|
|
6340
6340
|
)
|
|
6341
6341
|
}
|
|
6342
6342
|
);
|
|
6343
|
-
}),
|
|
6343
|
+
}), Aa = "RovingFocusGroupItem", Pa = f.forwardRef(
|
|
6344
6344
|
(e, t) => {
|
|
6345
6345
|
const {
|
|
6346
6346
|
__scopeRovingFocusGroup: r,
|
|
@@ -6349,7 +6349,7 @@ var wu = f.forwardRef((e, t) => {
|
|
|
6349
6349
|
tabStopId: a,
|
|
6350
6350
|
children: i,
|
|
6351
6351
|
...s
|
|
6352
|
-
} = e, u =
|
|
6352
|
+
} = e, u = Qo(), l = a || u, p = xu(Aa, r), c = p.currentTabStopId === l, d = Ta(r), { onFocusableItemAdd: m, onFocusableItemRemove: y, currentTabStopId: g } = p;
|
|
6353
6353
|
return f.useEffect(() => {
|
|
6354
6354
|
if (n)
|
|
6355
6355
|
return m(), () => y();
|
|
@@ -6377,7 +6377,7 @@ var wu = f.forwardRef((e, t) => {
|
|
|
6377
6377
|
return;
|
|
6378
6378
|
}
|
|
6379
6379
|
if (v.target !== v.currentTarget) return;
|
|
6380
|
-
const w =
|
|
6380
|
+
const w = Ru(v, p.orientation, p.dir);
|
|
6381
6381
|
if (w !== void 0) {
|
|
6382
6382
|
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
|
|
6383
6383
|
v.preventDefault();
|
|
@@ -6386,9 +6386,9 @@ var wu = f.forwardRef((e, t) => {
|
|
|
6386
6386
|
else if (w === "prev" || w === "next") {
|
|
6387
6387
|
w === "prev" && x.reverse();
|
|
6388
6388
|
const E = x.indexOf(v.currentTarget);
|
|
6389
|
-
x = p.loop ?
|
|
6389
|
+
x = p.loop ? Su(x, E + 1) : x.slice(E + 1);
|
|
6390
6390
|
}
|
|
6391
|
-
setTimeout(() =>
|
|
6391
|
+
setTimeout(() => Ma(x));
|
|
6392
6392
|
}
|
|
6393
6393
|
}),
|
|
6394
6394
|
children: typeof i == "function" ? i({ isCurrentTabStop: c, hasTabStop: g != null }) : i
|
|
@@ -6398,8 +6398,8 @@ var wu = f.forwardRef((e, t) => {
|
|
|
6398
6398
|
);
|
|
6399
6399
|
}
|
|
6400
6400
|
);
|
|
6401
|
-
|
|
6402
|
-
var
|
|
6401
|
+
Pa.displayName = Aa;
|
|
6402
|
+
var Eu = {
|
|
6403
6403
|
ArrowLeft: "prev",
|
|
6404
6404
|
ArrowUp: "prev",
|
|
6405
6405
|
ArrowRight: "next",
|
|
@@ -6409,40 +6409,40 @@ var xu = {
|
|
|
6409
6409
|
PageDown: "last",
|
|
6410
6410
|
End: "last"
|
|
6411
6411
|
};
|
|
6412
|
-
function
|
|
6412
|
+
function ku(e, t) {
|
|
6413
6413
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
6414
6414
|
}
|
|
6415
|
-
function
|
|
6416
|
-
const n =
|
|
6415
|
+
function Ru(e, t, r) {
|
|
6416
|
+
const n = ku(e.key, r);
|
|
6417
6417
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
|
|
6418
|
-
return
|
|
6418
|
+
return Eu[n];
|
|
6419
6419
|
}
|
|
6420
|
-
function
|
|
6420
|
+
function Ma(e, t = !1) {
|
|
6421
6421
|
const r = document.activeElement;
|
|
6422
6422
|
for (const n of e)
|
|
6423
6423
|
if (n === r || (n.focus({ preventScroll: t }), document.activeElement !== r)) return;
|
|
6424
6424
|
}
|
|
6425
|
-
function
|
|
6425
|
+
function Su(e, t) {
|
|
6426
6426
|
return e.map((r, n) => e[(t + n) % e.length]);
|
|
6427
6427
|
}
|
|
6428
|
-
var
|
|
6428
|
+
var Cu = Da, Ou = Pa, ju = function(e) {
|
|
6429
6429
|
if (typeof document > "u")
|
|
6430
6430
|
return null;
|
|
6431
6431
|
var t = Array.isArray(e) ? e[0] : e;
|
|
6432
6432
|
return t.ownerDocument.body;
|
|
6433
|
-
}, $e = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Nt = {}, xr = 0,
|
|
6434
|
-
return e && (e.host ||
|
|
6435
|
-
},
|
|
6433
|
+
}, $e = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Nt = {}, xr = 0, La = function(e) {
|
|
6434
|
+
return e && (e.host || La(e.parentNode));
|
|
6435
|
+
}, Tu = function(e, t) {
|
|
6436
6436
|
return t.map(function(r) {
|
|
6437
6437
|
if (e.contains(r))
|
|
6438
6438
|
return r;
|
|
6439
|
-
var n =
|
|
6439
|
+
var n = La(r);
|
|
6440
6440
|
return n && e.contains(n) ? n : (console.error("aria-hidden", r, "in not contained inside", e, ". Doing nothing"), null);
|
|
6441
6441
|
}).filter(function(r) {
|
|
6442
6442
|
return !!r;
|
|
6443
6443
|
});
|
|
6444
|
-
},
|
|
6445
|
-
var o =
|
|
6444
|
+
}, Nu = function(e, t, r, n) {
|
|
6445
|
+
var o = Tu(t, Array.isArray(e) ? e : [e]);
|
|
6446
6446
|
Nt[r] || (Nt[r] = /* @__PURE__ */ new WeakMap());
|
|
6447
6447
|
var a = Nt[r], i = [], s = /* @__PURE__ */ new Set(), u = new Set(o), l = function(c) {
|
|
6448
6448
|
!c || s.has(c) || (s.add(c), l(c.parentNode));
|
|
@@ -6467,10 +6467,10 @@ var Ru = Na, Su = Aa, Cu = function(e) {
|
|
|
6467
6467
|
$e.set(c, d), a.set(c, m), d || (Tt.has(c) || c.removeAttribute(n), Tt.delete(c)), m || c.removeAttribute(r);
|
|
6468
6468
|
}), xr--, xr || ($e = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Nt = {});
|
|
6469
6469
|
};
|
|
6470
|
-
},
|
|
6470
|
+
}, Ia = function(e, t, r) {
|
|
6471
6471
|
r === void 0 && (r = "data-aria-hidden");
|
|
6472
|
-
var n = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
6473
|
-
return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
6472
|
+
var n = Array.from(Array.isArray(e) ? e : [e]), o = ju(e);
|
|
6473
|
+
return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live], script"))), Nu(n, o, r, "aria-hidden")) : function() {
|
|
6474
6474
|
return null;
|
|
6475
6475
|
};
|
|
6476
6476
|
}, ge = function() {
|
|
@@ -6482,7 +6482,7 @@ var Ru = Na, Su = Aa, Cu = function(e) {
|
|
|
6482
6482
|
return e;
|
|
6483
6483
|
}, ge.apply(this, arguments);
|
|
6484
6484
|
};
|
|
6485
|
-
function
|
|
6485
|
+
function Fa(e, t) {
|
|
6486
6486
|
var r = {};
|
|
6487
6487
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
6488
6488
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -6490,16 +6490,16 @@ function Ia(e, t) {
|
|
|
6490
6490
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
6491
6491
|
return r;
|
|
6492
6492
|
}
|
|
6493
|
-
function
|
|
6493
|
+
function Du(e, t, r) {
|
|
6494
6494
|
for (var n = 0, o = t.length, a; n < o; n++)
|
|
6495
6495
|
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
6496
6496
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
6497
6497
|
}
|
|
6498
|
-
var Lt = "right-scroll-bar-position", It = "width-before-scroll-bar",
|
|
6498
|
+
var Lt = "right-scroll-bar-position", It = "width-before-scroll-bar", Au = "with-scroll-bars-hidden", Pu = "--removed-body-scroll-bar-size";
|
|
6499
6499
|
function _r(e, t) {
|
|
6500
6500
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
6501
6501
|
}
|
|
6502
|
-
function
|
|
6502
|
+
function Mu(e, t) {
|
|
6503
6503
|
var r = $r(function() {
|
|
6504
6504
|
return {
|
|
6505
6505
|
// value
|
|
@@ -6520,14 +6520,14 @@ function Au(e, t) {
|
|
|
6520
6520
|
})[0];
|
|
6521
6521
|
return r.callback = t, r.facade;
|
|
6522
6522
|
}
|
|
6523
|
-
var
|
|
6524
|
-
function
|
|
6525
|
-
var r =
|
|
6523
|
+
var Lu = typeof window < "u" ? f.useLayoutEffect : f.useEffect, go = /* @__PURE__ */ new WeakMap();
|
|
6524
|
+
function Iu(e, t) {
|
|
6525
|
+
var r = Mu(null, function(n) {
|
|
6526
6526
|
return e.forEach(function(o) {
|
|
6527
6527
|
return _r(o, n);
|
|
6528
6528
|
});
|
|
6529
6529
|
});
|
|
6530
|
-
return
|
|
6530
|
+
return Lu(function() {
|
|
6531
6531
|
var n = go.get(r);
|
|
6532
6532
|
if (n) {
|
|
6533
6533
|
var o = new Set(n), a = new Set(e), i = r.current;
|
|
@@ -6540,11 +6540,11 @@ function Mu(e, t) {
|
|
|
6540
6540
|
go.set(r, e);
|
|
6541
6541
|
}, [e]), r;
|
|
6542
6542
|
}
|
|
6543
|
-
function
|
|
6543
|
+
function Fu(e) {
|
|
6544
6544
|
return e;
|
|
6545
6545
|
}
|
|
6546
|
-
function
|
|
6547
|
-
t === void 0 && (t =
|
|
6546
|
+
function Vu(e, t) {
|
|
6547
|
+
t === void 0 && (t = Fu);
|
|
6548
6548
|
var r = [], n = !1, o = {
|
|
6549
6549
|
read: function() {
|
|
6550
6550
|
if (n)
|
|
@@ -6598,13 +6598,13 @@ function Iu(e, t) {
|
|
|
6598
6598
|
};
|
|
6599
6599
|
return o;
|
|
6600
6600
|
}
|
|
6601
|
-
function
|
|
6601
|
+
function zu(e) {
|
|
6602
6602
|
e === void 0 && (e = {});
|
|
6603
|
-
var t =
|
|
6603
|
+
var t = Vu(null);
|
|
6604
6604
|
return t.options = ge({ async: !0, ssr: !1 }, e), t;
|
|
6605
6605
|
}
|
|
6606
|
-
var
|
|
6607
|
-
var t = e.sideCar, r =
|
|
6606
|
+
var Va = function(e) {
|
|
6607
|
+
var t = e.sideCar, r = Fa(e, ["sideCar"]);
|
|
6608
6608
|
if (!t)
|
|
6609
6609
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
6610
6610
|
var n = t.read();
|
|
@@ -6612,21 +6612,21 @@ var Fa = function(e) {
|
|
|
6612
6612
|
throw new Error("Sidecar medium not found");
|
|
6613
6613
|
return f.createElement(n, ge({}, r));
|
|
6614
6614
|
};
|
|
6615
|
-
|
|
6616
|
-
function
|
|
6617
|
-
return e.useMedium(t),
|
|
6615
|
+
Va.isSideCarExport = !0;
|
|
6616
|
+
function $u(e, t) {
|
|
6617
|
+
return e.useMedium(t), Va;
|
|
6618
6618
|
}
|
|
6619
|
-
var
|
|
6619
|
+
var za = zu(), Er = function() {
|
|
6620
6620
|
}, or = f.forwardRef(function(e, t) {
|
|
6621
6621
|
var r = f.useRef(null), n = f.useState({
|
|
6622
6622
|
onScrollCapture: Er,
|
|
6623
6623
|
onWheelCapture: Er,
|
|
6624
6624
|
onTouchMoveCapture: Er
|
|
6625
|
-
}), o = n[0], a = n[1], i = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, p = e.enabled, c = e.shards, d = e.sideCar, m = e.noRelative, y = e.noIsolation, g = e.inert, v = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, E = e.gapMode, _ =
|
|
6625
|
+
}), o = n[0], a = n[1], i = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, p = e.enabled, c = e.shards, d = e.sideCar, m = e.noRelative, y = e.noIsolation, g = e.inert, v = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, E = e.gapMode, _ = Fa(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = d, T = Iu([r, t]), j = ge(ge({}, _), o);
|
|
6626
6626
|
return f.createElement(
|
|
6627
6627
|
f.Fragment,
|
|
6628
6628
|
null,
|
|
6629
|
-
p && f.createElement(C, { sideCar:
|
|
6629
|
+
p && f.createElement(C, { sideCar: za, removeScrollBar: l, shards: c, noRelative: m, noIsolation: y, inert: g, setCallbacks: a, allowPinchZoom: !!v, lockRef: r, gapMode: E }),
|
|
6630
6630
|
i ? f.cloneElement(f.Children.only(s), ge(ge({}, j), { ref: T })) : f.createElement(x, ge({}, j, { className: u, ref: T }), s)
|
|
6631
6631
|
);
|
|
6632
6632
|
});
|
|
@@ -6639,37 +6639,37 @@ or.classNames = {
|
|
|
6639
6639
|
fullWidth: It,
|
|
6640
6640
|
zeroRight: Lt
|
|
6641
6641
|
};
|
|
6642
|
-
var
|
|
6642
|
+
var Wu = function() {
|
|
6643
6643
|
if (typeof __webpack_nonce__ < "u")
|
|
6644
6644
|
return __webpack_nonce__;
|
|
6645
6645
|
};
|
|
6646
|
-
function
|
|
6646
|
+
function Uu() {
|
|
6647
6647
|
if (!document)
|
|
6648
6648
|
return null;
|
|
6649
6649
|
var e = document.createElement("style");
|
|
6650
6650
|
e.type = "text/css";
|
|
6651
|
-
var t =
|
|
6651
|
+
var t = Wu();
|
|
6652
6652
|
return t && e.setAttribute("nonce", t), e;
|
|
6653
6653
|
}
|
|
6654
|
-
function
|
|
6654
|
+
function Bu(e, t) {
|
|
6655
6655
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
6656
6656
|
}
|
|
6657
|
-
function
|
|
6657
|
+
function Gu(e) {
|
|
6658
6658
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
6659
6659
|
t.appendChild(e);
|
|
6660
6660
|
}
|
|
6661
|
-
var
|
|
6661
|
+
var Hu = function() {
|
|
6662
6662
|
var e = 0, t = null;
|
|
6663
6663
|
return {
|
|
6664
6664
|
add: function(r) {
|
|
6665
|
-
e == 0 && (t =
|
|
6665
|
+
e == 0 && (t = Uu()) && (Bu(t, r), Gu(t)), e++;
|
|
6666
6666
|
},
|
|
6667
6667
|
remove: function() {
|
|
6668
6668
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
6669
6669
|
}
|
|
6670
6670
|
};
|
|
6671
|
-
},
|
|
6672
|
-
var e =
|
|
6671
|
+
}, Ku = function() {
|
|
6672
|
+
var e = Hu();
|
|
6673
6673
|
return function(t, r) {
|
|
6674
6674
|
f.useEffect(function() {
|
|
6675
6675
|
return e.add(t), function() {
|
|
@@ -6677,36 +6677,36 @@ var Bu = function() {
|
|
|
6677
6677
|
};
|
|
6678
6678
|
}, [t && r]);
|
|
6679
6679
|
};
|
|
6680
|
-
},
|
|
6681
|
-
var e =
|
|
6680
|
+
}, $a = function() {
|
|
6681
|
+
var e = Ku(), t = function(r) {
|
|
6682
6682
|
var n = r.styles, o = r.dynamic;
|
|
6683
6683
|
return e(n, o), null;
|
|
6684
6684
|
};
|
|
6685
6685
|
return t;
|
|
6686
|
-
},
|
|
6686
|
+
}, Yu = {
|
|
6687
6687
|
left: 0,
|
|
6688
6688
|
top: 0,
|
|
6689
6689
|
right: 0,
|
|
6690
6690
|
gap: 0
|
|
6691
6691
|
}, kr = function(e) {
|
|
6692
6692
|
return parseInt(e || "", 10) || 0;
|
|
6693
|
-
},
|
|
6693
|
+
}, Xu = function(e) {
|
|
6694
6694
|
var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
6695
6695
|
return [kr(r), kr(n), kr(o)];
|
|
6696
|
-
},
|
|
6696
|
+
}, qu = function(e) {
|
|
6697
6697
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
6698
|
-
return
|
|
6699
|
-
var t =
|
|
6698
|
+
return Yu;
|
|
6699
|
+
var t = Xu(e), r = document.documentElement.clientWidth, n = window.innerWidth;
|
|
6700
6700
|
return {
|
|
6701
6701
|
left: t[0],
|
|
6702
6702
|
top: t[1],
|
|
6703
6703
|
right: t[2],
|
|
6704
6704
|
gap: Math.max(0, n - r + t[2] - t[0])
|
|
6705
6705
|
};
|
|
6706
|
-
},
|
|
6706
|
+
}, Zu = $a(), Ge = "data-scroll-locked", Ju = function(e, t, r, n) {
|
|
6707
6707
|
var o = e.left, a = e.top, i = e.right, s = e.gap;
|
|
6708
6708
|
return r === void 0 && (r = "margin"), `
|
|
6709
|
-
.`.concat(
|
|
6709
|
+
.`.concat(Au, ` {
|
|
6710
6710
|
overflow: hidden `).concat(n, `;
|
|
6711
6711
|
padding-right: `).concat(s, "px ").concat(n, `;
|
|
6712
6712
|
}
|
|
@@ -6744,26 +6744,26 @@ var Bu = function() {
|
|
|
6744
6744
|
}
|
|
6745
6745
|
|
|
6746
6746
|
body[`).concat(Ge, `] {
|
|
6747
|
-
`).concat(
|
|
6747
|
+
`).concat(Pu, ": ").concat(s, `px;
|
|
6748
6748
|
}
|
|
6749
6749
|
`);
|
|
6750
6750
|
}, ho = function() {
|
|
6751
6751
|
var e = parseInt(document.body.getAttribute(Ge) || "0", 10);
|
|
6752
6752
|
return isFinite(e) ? e : 0;
|
|
6753
|
-
},
|
|
6753
|
+
}, Qu = function() {
|
|
6754
6754
|
f.useEffect(function() {
|
|
6755
6755
|
return document.body.setAttribute(Ge, (ho() + 1).toString()), function() {
|
|
6756
6756
|
var e = ho() - 1;
|
|
6757
6757
|
e <= 0 ? document.body.removeAttribute(Ge) : document.body.setAttribute(Ge, e.toString());
|
|
6758
6758
|
};
|
|
6759
6759
|
}, []);
|
|
6760
|
-
},
|
|
6760
|
+
}, ed = function(e) {
|
|
6761
6761
|
var t = e.noRelative, r = e.noImportant, n = e.gapMode, o = n === void 0 ? "margin" : n;
|
|
6762
|
-
|
|
6762
|
+
Qu();
|
|
6763
6763
|
var a = f.useMemo(function() {
|
|
6764
|
-
return
|
|
6764
|
+
return qu(o);
|
|
6765
6765
|
}, [o]);
|
|
6766
|
-
return f.createElement(
|
|
6766
|
+
return f.createElement(Zu, { styles: Ju(a, !t, o, r ? "" : "!important") });
|
|
6767
6767
|
}, Lr = !1;
|
|
6768
6768
|
if (typeof window < "u")
|
|
6769
6769
|
try {
|
|
@@ -6776,61 +6776,61 @@ if (typeof window < "u")
|
|
|
6776
6776
|
} catch {
|
|
6777
6777
|
Lr = !1;
|
|
6778
6778
|
}
|
|
6779
|
-
var We = Lr ? { passive: !1 } : !1,
|
|
6779
|
+
var We = Lr ? { passive: !1 } : !1, td = function(e) {
|
|
6780
6780
|
return e.tagName === "TEXTAREA";
|
|
6781
|
-
},
|
|
6781
|
+
}, Wa = function(e, t) {
|
|
6782
6782
|
if (!(e instanceof Element))
|
|
6783
6783
|
return !1;
|
|
6784
6784
|
var r = window.getComputedStyle(e);
|
|
6785
6785
|
return (
|
|
6786
6786
|
// not-not-scrollable
|
|
6787
6787
|
r[t] !== "hidden" && // contains scroll inside self
|
|
6788
|
-
!(r.overflowY === r.overflowX && !
|
|
6788
|
+
!(r.overflowY === r.overflowX && !td(e) && r[t] === "visible")
|
|
6789
6789
|
);
|
|
6790
|
-
},
|
|
6791
|
-
return
|
|
6792
|
-
},
|
|
6793
|
-
return
|
|
6790
|
+
}, rd = function(e) {
|
|
6791
|
+
return Wa(e, "overflowY");
|
|
6792
|
+
}, nd = function(e) {
|
|
6793
|
+
return Wa(e, "overflowX");
|
|
6794
6794
|
}, yo = function(e, t) {
|
|
6795
6795
|
var r = t.ownerDocument, n = t;
|
|
6796
6796
|
do {
|
|
6797
6797
|
typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host);
|
|
6798
|
-
var o =
|
|
6798
|
+
var o = Ua(e, n);
|
|
6799
6799
|
if (o) {
|
|
6800
|
-
var a =
|
|
6800
|
+
var a = Ba(e, n), i = a[1], s = a[2];
|
|
6801
6801
|
if (i > s)
|
|
6802
6802
|
return !0;
|
|
6803
6803
|
}
|
|
6804
6804
|
n = n.parentNode;
|
|
6805
6805
|
} while (n && n !== r.body);
|
|
6806
6806
|
return !1;
|
|
6807
|
-
},
|
|
6807
|
+
}, od = function(e) {
|
|
6808
6808
|
var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight;
|
|
6809
6809
|
return [
|
|
6810
6810
|
t,
|
|
6811
6811
|
r,
|
|
6812
6812
|
n
|
|
6813
6813
|
];
|
|
6814
|
-
},
|
|
6814
|
+
}, ad = function(e) {
|
|
6815
6815
|
var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth;
|
|
6816
6816
|
return [
|
|
6817
6817
|
t,
|
|
6818
6818
|
r,
|
|
6819
6819
|
n
|
|
6820
6820
|
];
|
|
6821
|
-
}, Wa = function(e, t) {
|
|
6822
|
-
return e === "v" ? ed(t) : td(t);
|
|
6823
6821
|
}, Ua = function(e, t) {
|
|
6824
6822
|
return e === "v" ? rd(t) : nd(t);
|
|
6825
|
-
},
|
|
6823
|
+
}, Ba = function(e, t) {
|
|
6824
|
+
return e === "v" ? od(t) : ad(t);
|
|
6825
|
+
}, id = function(e, t) {
|
|
6826
6826
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
6827
|
-
},
|
|
6828
|
-
var a =
|
|
6827
|
+
}, sd = function(e, t, r, n, o) {
|
|
6828
|
+
var a = id(e, window.getComputedStyle(t).direction), i = a * n, s = r.target, u = t.contains(s), l = !1, p = i > 0, c = 0, d = 0;
|
|
6829
6829
|
do {
|
|
6830
6830
|
if (!s)
|
|
6831
6831
|
break;
|
|
6832
|
-
var m =
|
|
6833
|
-
(y || w) &&
|
|
6832
|
+
var m = Ba(e, s), y = m[0], g = m[1], v = m[2], w = g - v - a * y;
|
|
6833
|
+
(y || w) && Ua(e, s) && (c += w, d += y);
|
|
6834
6834
|
var x = s.parentNode;
|
|
6835
6835
|
s = x && x.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? x.host : x;
|
|
6836
6836
|
} while (
|
|
@@ -6845,22 +6845,22 @@ var We = Lr ? { passive: !1 } : !1, Qu = function(e) {
|
|
|
6845
6845
|
return [e.deltaX, e.deltaY];
|
|
6846
6846
|
}, bo = function(e) {
|
|
6847
6847
|
return e && "current" in e ? e.current : e;
|
|
6848
|
-
},
|
|
6848
|
+
}, ld = function(e, t) {
|
|
6849
6849
|
return e[0] === t[0] && e[1] === t[1];
|
|
6850
|
-
},
|
|
6850
|
+
}, cd = function(e) {
|
|
6851
6851
|
return `
|
|
6852
6852
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
6853
6853
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
6854
6854
|
`);
|
|
6855
|
-
},
|
|
6856
|
-
function
|
|
6857
|
-
var t = f.useRef([]), r = f.useRef([0, 0]), n = f.useRef(), o = f.useState(
|
|
6855
|
+
}, ud = 0, Ue = [];
|
|
6856
|
+
function dd(e) {
|
|
6857
|
+
var t = f.useRef([]), r = f.useRef([0, 0]), n = f.useRef(), o = f.useState(ud++)[0], a = f.useState($a)[0], i = f.useRef(e);
|
|
6858
6858
|
f.useEffect(function() {
|
|
6859
6859
|
i.current = e;
|
|
6860
6860
|
}, [e]), f.useEffect(function() {
|
|
6861
6861
|
if (e.inert) {
|
|
6862
6862
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
6863
|
-
var g =
|
|
6863
|
+
var g = Du([e.lockRef.current], (e.shards || []).map(bo)).filter(Boolean);
|
|
6864
6864
|
return g.forEach(function(v) {
|
|
6865
6865
|
return v.classList.add("allow-interactivity-".concat(o));
|
|
6866
6866
|
}), function() {
|
|
@@ -6887,12 +6887,12 @@ function cd(e) {
|
|
|
6887
6887
|
if (!n.current && "changedTouches" in g && (E || _) && (n.current = C), !C)
|
|
6888
6888
|
return !0;
|
|
6889
6889
|
var X = n.current || C;
|
|
6890
|
-
return
|
|
6890
|
+
return sd(X, v, g, X === "h" ? E : _);
|
|
6891
6891
|
}, []), u = f.useCallback(function(g) {
|
|
6892
6892
|
var v = g;
|
|
6893
6893
|
if (!(!Ue.length || Ue[Ue.length - 1] !== a)) {
|
|
6894
6894
|
var w = "deltaY" in v ? vo(v) : At(v), x = t.current.filter(function(C) {
|
|
6895
|
-
return C.name === v.type && (C.target === v.target || v.target === C.shadowParent) &&
|
|
6895
|
+
return C.name === v.type && (C.target === v.target || v.target === C.shadowParent) && ld(C.delta, w);
|
|
6896
6896
|
})[0];
|
|
6897
6897
|
if (x && x.should) {
|
|
6898
6898
|
v.cancelable && v.preventDefault();
|
|
@@ -6906,7 +6906,7 @@ function cd(e) {
|
|
|
6906
6906
|
}
|
|
6907
6907
|
}
|
|
6908
6908
|
}, []), l = f.useCallback(function(g, v, w, x) {
|
|
6909
|
-
var E = { name: g, delta: v, target: w, should: x, shadowParent:
|
|
6909
|
+
var E = { name: g, delta: v, target: w, should: x, shadowParent: fd(w) };
|
|
6910
6910
|
t.current.push(E), setTimeout(function() {
|
|
6911
6911
|
t.current = t.current.filter(function(_) {
|
|
6912
6912
|
return _ !== E;
|
|
@@ -6934,50 +6934,50 @@ function cd(e) {
|
|
|
6934
6934
|
return f.createElement(
|
|
6935
6935
|
f.Fragment,
|
|
6936
6936
|
null,
|
|
6937
|
-
y ? f.createElement(a, { styles:
|
|
6938
|
-
m ? f.createElement(
|
|
6937
|
+
y ? f.createElement(a, { styles: cd(o) }) : null,
|
|
6938
|
+
m ? f.createElement(ed, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
6939
6939
|
);
|
|
6940
6940
|
}
|
|
6941
|
-
function
|
|
6941
|
+
function fd(e) {
|
|
6942
6942
|
for (var t = null; e !== null; )
|
|
6943
6943
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
6944
6944
|
return t;
|
|
6945
6945
|
}
|
|
6946
|
-
const
|
|
6946
|
+
const pd = $u(za, dd);
|
|
6947
6947
|
var cn = f.forwardRef(function(e, t) {
|
|
6948
|
-
return f.createElement(or, ge({}, e, { ref: t, sideCar:
|
|
6948
|
+
return f.createElement(or, ge({}, e, { ref: t, sideCar: pd }));
|
|
6949
6949
|
});
|
|
6950
6950
|
cn.classNames = or.classNames;
|
|
6951
|
-
var Ir = ["Enter", " "],
|
|
6951
|
+
var Ir = ["Enter", " "], md = ["ArrowDown", "PageUp", "Home"], Ga = ["ArrowUp", "PageDown", "End"], gd = [...md, ...Ga], hd = {
|
|
6952
6952
|
ltr: [...Ir, "ArrowRight"],
|
|
6953
6953
|
rtl: [...Ir, "ArrowLeft"]
|
|
6954
|
-
},
|
|
6954
|
+
}, yd = {
|
|
6955
6955
|
ltr: ["ArrowLeft"],
|
|
6956
6956
|
rtl: ["ArrowRight"]
|
|
6957
|
-
}, ar = "Menu", [dt,
|
|
6958
|
-
|
|
6957
|
+
}, ar = "Menu", [dt, vd, bd] = ta(ar), [Fe, Ha] = Se(ar, [
|
|
6958
|
+
bd,
|
|
6959
6959
|
nr,
|
|
6960
|
-
|
|
6961
|
-
]), un = nr(),
|
|
6960
|
+
Na
|
|
6961
|
+
]), un = nr(), Ka = Na(), [om, rt] = Fe(ar), [am, xt] = Fe(ar), wd = "MenuAnchor", dn = f.forwardRef(
|
|
6962
6962
|
(e, t) => {
|
|
6963
6963
|
const { __scopeMenu: r, ...n } = e, o = un(r);
|
|
6964
|
-
return /* @__PURE__ */ b.jsx(
|
|
6964
|
+
return /* @__PURE__ */ b.jsx(Ca, { ...o, ...n, ref: t });
|
|
6965
6965
|
}
|
|
6966
6966
|
);
|
|
6967
|
-
dn.displayName =
|
|
6968
|
-
var
|
|
6967
|
+
dn.displayName = wd;
|
|
6968
|
+
var xd = "MenuPortal", [im, Ya] = Fe(xd, {
|
|
6969
6969
|
forceMount: void 0
|
|
6970
|
-
}),
|
|
6970
|
+
}), de = "MenuContent", [_d, fn] = Fe(de), Xa = f.forwardRef(
|
|
6971
6971
|
(e, t) => {
|
|
6972
|
-
const r =
|
|
6973
|
-
return /* @__PURE__ */ b.jsx(dt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ b.jsx(Ne, { present: n || a.open, children: /* @__PURE__ */ b.jsx(dt.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ b.jsx(
|
|
6972
|
+
const r = Ya(de, e.__scopeMenu), { forceMount: n = r.forceMount, ...o } = e, a = rt(de, e.__scopeMenu), i = xt(de, e.__scopeMenu);
|
|
6973
|
+
return /* @__PURE__ */ b.jsx(dt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ b.jsx(Ne, { present: n || a.open, children: /* @__PURE__ */ b.jsx(dt.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ b.jsx(Ed, { ...o, ref: t }) : /* @__PURE__ */ b.jsx(kd, { ...o, ref: t }) }) }) });
|
|
6974
6974
|
}
|
|
6975
|
-
),
|
|
6975
|
+
), Ed = f.forwardRef(
|
|
6976
6976
|
(e, t) => {
|
|
6977
|
-
const r = rt(
|
|
6977
|
+
const r = rt(de, e.__scopeMenu), n = f.useRef(null), o = ee(t, n);
|
|
6978
6978
|
return f.useEffect(() => {
|
|
6979
6979
|
const a = n.current;
|
|
6980
|
-
if (a) return
|
|
6980
|
+
if (a) return Ia(a);
|
|
6981
6981
|
}, []), /* @__PURE__ */ b.jsx(
|
|
6982
6982
|
pn,
|
|
6983
6983
|
{
|
|
@@ -6995,8 +6995,8 @@ var bd = "MenuPortal", [am, Ka] = Fe(bd, {
|
|
|
6995
6995
|
}
|
|
6996
6996
|
);
|
|
6997
6997
|
}
|
|
6998
|
-
),
|
|
6999
|
-
const r = rt(
|
|
6998
|
+
), kd = f.forwardRef((e, t) => {
|
|
6999
|
+
const r = rt(de, e.__scopeMenu);
|
|
7000
7000
|
return /* @__PURE__ */ b.jsx(
|
|
7001
7001
|
pn,
|
|
7002
7002
|
{
|
|
@@ -7008,7 +7008,7 @@ var bd = "MenuPortal", [am, Ka] = Fe(bd, {
|
|
|
7008
7008
|
onDismiss: () => r.onOpenChange(!1)
|
|
7009
7009
|
}
|
|
7010
7010
|
);
|
|
7011
|
-
}),
|
|
7011
|
+
}), Rd = /* @__PURE__ */ Ye("MenuContent.ScrollLock"), pn = f.forwardRef(
|
|
7012
7012
|
(e, t) => {
|
|
7013
7013
|
const {
|
|
7014
7014
|
__scopeMenu: r,
|
|
@@ -7025,16 +7025,16 @@ var bd = "MenuPortal", [am, Ka] = Fe(bd, {
|
|
|
7025
7025
|
onDismiss: m,
|
|
7026
7026
|
disableOutsideScroll: y,
|
|
7027
7027
|
...g
|
|
7028
|
-
} = e, v = rt(
|
|
7029
|
-
const h = U.current + N, S = _().filter((V) => !V.disabled), P = document.activeElement, M = S.find((V) => V.ref.current === P)?.textValue, K = S.map((V) => V.textValue), q =
|
|
7028
|
+
} = e, v = rt(de, r), w = xt(de, r), x = un(r), E = Ka(r), _ = vd(r), [C, T] = f.useState(null), j = f.useRef(null), R = ee(t, j, v.onContentChange), L = f.useRef(0), U = f.useRef(""), B = f.useRef(0), X = f.useRef(null), Z = f.useRef("right"), $ = f.useRef(0), Y = y ? cn : f.Fragment, G = y ? { as: Rd, allowPinchZoom: !0 } : void 0, H = (N) => {
|
|
7029
|
+
const h = U.current + N, S = _().filter((V) => !V.disabled), P = document.activeElement, M = S.find((V) => V.ref.current === P)?.textValue, K = S.map((V) => V.textValue), q = Id(K, h, M), ne = S.find((V) => V.textValue === q)?.ref.current;
|
|
7030
7030
|
(function V(z) {
|
|
7031
7031
|
U.current = z, window.clearTimeout(L.current), z !== "" && (L.current = window.setTimeout(() => V(""), 1e3));
|
|
7032
7032
|
})(h), ne && setTimeout(() => ne.focus());
|
|
7033
7033
|
};
|
|
7034
|
-
f.useEffect(() => () => window.clearTimeout(L.current), []),
|
|
7035
|
-
const k = f.useCallback((N) => Z.current === X.current?.side &&
|
|
7034
|
+
f.useEffect(() => () => window.clearTimeout(L.current), []), oa();
|
|
7035
|
+
const k = f.useCallback((N) => Z.current === X.current?.side && Vd(N, X.current?.area), []);
|
|
7036
7036
|
return /* @__PURE__ */ b.jsx(
|
|
7037
|
-
|
|
7037
|
+
_d,
|
|
7038
7038
|
{
|
|
7039
7039
|
scope: r,
|
|
7040
7040
|
searchRef: U,
|
|
@@ -7080,7 +7080,7 @@ var bd = "MenuPortal", [am, Ka] = Fe(bd, {
|
|
|
7080
7080
|
onInteractOutside: d,
|
|
7081
7081
|
onDismiss: m,
|
|
7082
7082
|
children: /* @__PURE__ */ b.jsx(
|
|
7083
|
-
|
|
7083
|
+
Cu,
|
|
7084
7084
|
{
|
|
7085
7085
|
asChild: !0,
|
|
7086
7086
|
...E,
|
|
@@ -7094,11 +7094,11 @@ var bd = "MenuPortal", [am, Ka] = Fe(bd, {
|
|
|
7094
7094
|
}),
|
|
7095
7095
|
preventScrollOnEntryFocus: !0,
|
|
7096
7096
|
children: /* @__PURE__ */ b.jsx(
|
|
7097
|
-
|
|
7097
|
+
Oa,
|
|
7098
7098
|
{
|
|
7099
7099
|
role: "menu",
|
|
7100
7100
|
"aria-orientation": "vertical",
|
|
7101
|
-
"data-state":
|
|
7101
|
+
"data-state": di(v.open),
|
|
7102
7102
|
"data-radix-menu-content": "",
|
|
7103
7103
|
dir: w.dir,
|
|
7104
7104
|
...x,
|
|
@@ -7109,10 +7109,10 @@ var bd = "MenuPortal", [am, Ka] = Fe(bd, {
|
|
|
7109
7109
|
const h = N.target.closest("[data-radix-menu-content]") === N.currentTarget, S = N.ctrlKey || N.altKey || N.metaKey, P = N.key.length === 1;
|
|
7110
7110
|
h && (N.key === "Tab" && N.preventDefault(), !S && P && H(N.key));
|
|
7111
7111
|
const M = j.current;
|
|
7112
|
-
if (N.target !== M || !
|
|
7112
|
+
if (N.target !== M || !gd.includes(N.key)) return;
|
|
7113
7113
|
N.preventDefault();
|
|
7114
7114
|
const K = _().filter((q) => !q.disabled).map((q) => q.ref.current);
|
|
7115
|
-
|
|
7115
|
+
Ga.includes(N.key) && K.reverse(), Md(K);
|
|
7116
7116
|
}),
|
|
7117
7117
|
onBlur: I(e.onBlur, (N) => {
|
|
7118
7118
|
N.currentTarget.contains(N.target) || (window.clearTimeout(L.current), U.current = "");
|
|
@@ -7139,32 +7139,32 @@ var bd = "MenuPortal", [am, Ka] = Fe(bd, {
|
|
|
7139
7139
|
);
|
|
7140
7140
|
}
|
|
7141
7141
|
);
|
|
7142
|
-
|
|
7143
|
-
var
|
|
7142
|
+
Xa.displayName = de;
|
|
7143
|
+
var Sd = "MenuGroup", mn = f.forwardRef(
|
|
7144
7144
|
(e, t) => {
|
|
7145
7145
|
const { __scopeMenu: r, ...n } = e;
|
|
7146
7146
|
return /* @__PURE__ */ b.jsx(J.div, { role: "group", ...n, ref: t });
|
|
7147
7147
|
}
|
|
7148
7148
|
);
|
|
7149
|
-
mn.displayName =
|
|
7150
|
-
var
|
|
7149
|
+
mn.displayName = Sd;
|
|
7150
|
+
var Cd = "MenuLabel", qa = f.forwardRef(
|
|
7151
7151
|
(e, t) => {
|
|
7152
7152
|
const { __scopeMenu: r, ...n } = e;
|
|
7153
7153
|
return /* @__PURE__ */ b.jsx(J.div, { ...n, ref: t });
|
|
7154
7154
|
}
|
|
7155
7155
|
);
|
|
7156
|
-
|
|
7156
|
+
qa.displayName = Cd;
|
|
7157
7157
|
var Bt = "MenuItem", wo = "menu.itemSelect", ir = f.forwardRef(
|
|
7158
7158
|
(e, t) => {
|
|
7159
7159
|
const { disabled: r = !1, onSelect: n, ...o } = e, a = f.useRef(null), i = xt(Bt, e.__scopeMenu), s = fn(Bt, e.__scopeMenu), u = ee(t, a), l = f.useRef(!1), p = () => {
|
|
7160
7160
|
const c = a.current;
|
|
7161
7161
|
if (!r && c) {
|
|
7162
7162
|
const d = new CustomEvent(wo, { bubbles: !0, cancelable: !0 });
|
|
7163
|
-
c.addEventListener(wo, (m) => n?.(m), { once: !0 }),
|
|
7163
|
+
c.addEventListener(wo, (m) => n?.(m), { once: !0 }), Ko(c, d), d.defaultPrevented ? l.current = !1 : i.onClose();
|
|
7164
7164
|
}
|
|
7165
7165
|
};
|
|
7166
7166
|
return /* @__PURE__ */ b.jsx(
|
|
7167
|
-
|
|
7167
|
+
Za,
|
|
7168
7168
|
{
|
|
7169
7169
|
...o,
|
|
7170
7170
|
ref: u,
|
|
@@ -7185,9 +7185,9 @@ var Bt = "MenuItem", wo = "menu.itemSelect", ir = f.forwardRef(
|
|
|
7185
7185
|
}
|
|
7186
7186
|
);
|
|
7187
7187
|
ir.displayName = Bt;
|
|
7188
|
-
var
|
|
7188
|
+
var Za = f.forwardRef(
|
|
7189
7189
|
(e, t) => {
|
|
7190
|
-
const { __scopeMenu: r, disabled: n = !1, textValue: o, ...a } = e, i = fn(Bt, r), s =
|
|
7190
|
+
const { __scopeMenu: r, disabled: n = !1, textValue: o, ...a } = e, i = fn(Bt, r), s = Ka(r), u = f.useRef(null), l = ee(t, u), [p, c] = f.useState(!1), [d, m] = f.useState("");
|
|
7191
7191
|
return f.useEffect(() => {
|
|
7192
7192
|
const y = u.current;
|
|
7193
7193
|
y && m((y.textContent ?? "").trim());
|
|
@@ -7197,7 +7197,7 @@ var qa = f.forwardRef(
|
|
|
7197
7197
|
scope: r,
|
|
7198
7198
|
disabled: n,
|
|
7199
7199
|
textValue: o ?? d,
|
|
7200
|
-
children: /* @__PURE__ */ b.jsx(
|
|
7200
|
+
children: /* @__PURE__ */ b.jsx(Ou, { asChild: !0, ...s, focusable: !n, children: /* @__PURE__ */ b.jsx(
|
|
7201
7201
|
J.div,
|
|
7202
7202
|
{
|
|
7203
7203
|
role: "menuitem",
|
|
@@ -7223,10 +7223,10 @@ var qa = f.forwardRef(
|
|
|
7223
7223
|
}
|
|
7224
7224
|
);
|
|
7225
7225
|
}
|
|
7226
|
-
),
|
|
7226
|
+
), Od = "MenuCheckboxItem", Ja = f.forwardRef(
|
|
7227
7227
|
(e, t) => {
|
|
7228
7228
|
const { checked: r = !1, onCheckedChange: n, ...o } = e;
|
|
7229
|
-
return /* @__PURE__ */ b.jsx(
|
|
7229
|
+
return /* @__PURE__ */ b.jsx(ni, { scope: e.__scopeMenu, checked: r, children: /* @__PURE__ */ b.jsx(
|
|
7230
7230
|
ir,
|
|
7231
7231
|
{
|
|
7232
7232
|
role: "menuitemcheckbox",
|
|
@@ -7243,22 +7243,22 @@ var qa = f.forwardRef(
|
|
|
7243
7243
|
) });
|
|
7244
7244
|
}
|
|
7245
7245
|
);
|
|
7246
|
-
|
|
7247
|
-
var
|
|
7248
|
-
|
|
7246
|
+
Ja.displayName = Od;
|
|
7247
|
+
var Qa = "MenuRadioGroup", [jd, Td] = Fe(
|
|
7248
|
+
Qa,
|
|
7249
7249
|
{ value: void 0, onValueChange: () => {
|
|
7250
7250
|
} }
|
|
7251
|
-
),
|
|
7251
|
+
), ei = f.forwardRef(
|
|
7252
7252
|
(e, t) => {
|
|
7253
7253
|
const { value: r, onValueChange: n, ...o } = e, a = Ee(n);
|
|
7254
|
-
return /* @__PURE__ */ b.jsx(
|
|
7254
|
+
return /* @__PURE__ */ b.jsx(jd, { scope: e.__scopeMenu, value: r, onValueChange: a, children: /* @__PURE__ */ b.jsx(mn, { ...o, ref: t }) });
|
|
7255
7255
|
}
|
|
7256
7256
|
);
|
|
7257
|
-
|
|
7258
|
-
var
|
|
7257
|
+
ei.displayName = Qa;
|
|
7258
|
+
var ti = "MenuRadioItem", ri = f.forwardRef(
|
|
7259
7259
|
(e, t) => {
|
|
7260
|
-
const { value: r, ...n } = e, o =
|
|
7261
|
-
return /* @__PURE__ */ b.jsx(
|
|
7260
|
+
const { value: r, ...n } = e, o = Td(ti, e.__scopeMenu), a = r === o.value;
|
|
7261
|
+
return /* @__PURE__ */ b.jsx(ni, { scope: e.__scopeMenu, checked: a, children: /* @__PURE__ */ b.jsx(
|
|
7262
7262
|
ir,
|
|
7263
7263
|
{
|
|
7264
7264
|
role: "menuitemradio",
|
|
@@ -7275,13 +7275,13 @@ var ei = "MenuRadioItem", ti = f.forwardRef(
|
|
|
7275
7275
|
) });
|
|
7276
7276
|
}
|
|
7277
7277
|
);
|
|
7278
|
-
|
|
7279
|
-
var gn = "MenuItemIndicator", [
|
|
7278
|
+
ri.displayName = ti;
|
|
7279
|
+
var gn = "MenuItemIndicator", [ni, Nd] = Fe(
|
|
7280
7280
|
gn,
|
|
7281
7281
|
{ checked: !1 }
|
|
7282
|
-
),
|
|
7282
|
+
), oi = f.forwardRef(
|
|
7283
7283
|
(e, t) => {
|
|
7284
|
-
const { __scopeMenu: r, forceMount: n, ...o } = e, a =
|
|
7284
|
+
const { __scopeMenu: r, forceMount: n, ...o } = e, a = Nd(gn, r);
|
|
7285
7285
|
return /* @__PURE__ */ b.jsx(
|
|
7286
7286
|
Ne,
|
|
7287
7287
|
{
|
|
@@ -7298,8 +7298,8 @@ var gn = "MenuItemIndicator", [ri, jd] = Fe(
|
|
|
7298
7298
|
);
|
|
7299
7299
|
}
|
|
7300
7300
|
);
|
|
7301
|
-
|
|
7302
|
-
var
|
|
7301
|
+
oi.displayName = gn;
|
|
7302
|
+
var Dd = "MenuSeparator", ai = f.forwardRef(
|
|
7303
7303
|
(e, t) => {
|
|
7304
7304
|
const { __scopeMenu: r, ...n } = e;
|
|
7305
7305
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -7313,17 +7313,17 @@ var Td = "MenuSeparator", oi = f.forwardRef(
|
|
|
7313
7313
|
);
|
|
7314
7314
|
}
|
|
7315
7315
|
);
|
|
7316
|
-
|
|
7317
|
-
var
|
|
7316
|
+
ai.displayName = Dd;
|
|
7317
|
+
var Ad = "MenuArrow", ii = f.forwardRef(
|
|
7318
7318
|
(e, t) => {
|
|
7319
7319
|
const { __scopeMenu: r, ...n } = e, o = un(r);
|
|
7320
|
-
return /* @__PURE__ */ b.jsx(
|
|
7320
|
+
return /* @__PURE__ */ b.jsx(ja, { ...o, ...n, ref: t });
|
|
7321
7321
|
}
|
|
7322
7322
|
);
|
|
7323
|
-
|
|
7324
|
-
var
|
|
7323
|
+
ii.displayName = Ad;
|
|
7324
|
+
var Pd = "MenuSub", [sm, si] = Fe(Pd), st = "MenuSubTrigger", li = f.forwardRef(
|
|
7325
7325
|
(e, t) => {
|
|
7326
|
-
const r = rt(st, e.__scopeMenu), n = xt(st, e.__scopeMenu), o =
|
|
7326
|
+
const r = rt(st, e.__scopeMenu), n = xt(st, e.__scopeMenu), o = si(st, e.__scopeMenu), a = fn(st, e.__scopeMenu), i = f.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: u } = a, l = { __scopeMenu: e.__scopeMenu }, p = f.useCallback(() => {
|
|
7327
7327
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
7328
7328
|
}, []);
|
|
7329
7329
|
return f.useEffect(() => p, [p]), f.useEffect(() => {
|
|
@@ -7332,13 +7332,13 @@ var Dd = "MenuSub", [im, ii] = Fe(Dd), st = "MenuSubTrigger", si = f.forwardRef(
|
|
|
7332
7332
|
window.clearTimeout(c), u(null);
|
|
7333
7333
|
};
|
|
7334
7334
|
}, [s, u]), /* @__PURE__ */ b.jsx(dn, { asChild: !0, ...l, children: /* @__PURE__ */ b.jsx(
|
|
7335
|
-
|
|
7335
|
+
Za,
|
|
7336
7336
|
{
|
|
7337
7337
|
id: o.triggerId,
|
|
7338
7338
|
"aria-haspopup": "menu",
|
|
7339
7339
|
"aria-expanded": r.open,
|
|
7340
7340
|
"aria-controls": o.contentId,
|
|
7341
|
-
"data-state":
|
|
7341
|
+
"data-state": di(r.open),
|
|
7342
7342
|
...e,
|
|
7343
7343
|
ref: vt(t, o.onTriggerChange),
|
|
7344
7344
|
onClick: (c) => {
|
|
@@ -7382,16 +7382,16 @@ var Dd = "MenuSub", [im, ii] = Fe(Dd), st = "MenuSubTrigger", si = f.forwardRef(
|
|
|
7382
7382
|
),
|
|
7383
7383
|
onKeyDown: I(e.onKeyDown, (c) => {
|
|
7384
7384
|
const d = a.searchRef.current !== "";
|
|
7385
|
-
e.disabled || d && c.key === " " ||
|
|
7385
|
+
e.disabled || d && c.key === " " || hd[n.dir].includes(c.key) && (r.onOpenChange(!0), r.content?.focus(), c.preventDefault());
|
|
7386
7386
|
})
|
|
7387
7387
|
}
|
|
7388
7388
|
) });
|
|
7389
7389
|
}
|
|
7390
7390
|
);
|
|
7391
|
-
|
|
7392
|
-
var
|
|
7391
|
+
li.displayName = st;
|
|
7392
|
+
var ci = "MenuSubContent", ui = f.forwardRef(
|
|
7393
7393
|
(e, t) => {
|
|
7394
|
-
const r =
|
|
7394
|
+
const r = Ya(de, e.__scopeMenu), { forceMount: n = r.forceMount, ...o } = e, a = rt(de, e.__scopeMenu), i = xt(de, e.__scopeMenu), s = si(ci, e.__scopeMenu), u = f.useRef(null), l = ee(t, u);
|
|
7395
7395
|
return /* @__PURE__ */ b.jsx(dt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ b.jsx(Ne, { present: n || a.open, children: /* @__PURE__ */ b.jsx(dt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ b.jsx(
|
|
7396
7396
|
pn,
|
|
7397
7397
|
{
|
|
@@ -7415,15 +7415,15 @@ var li = "MenuSubContent", ci = f.forwardRef(
|
|
|
7415
7415
|
i.onClose(), p.preventDefault();
|
|
7416
7416
|
}),
|
|
7417
7417
|
onKeyDown: I(e.onKeyDown, (p) => {
|
|
7418
|
-
const c = p.currentTarget.contains(p.target), d =
|
|
7418
|
+
const c = p.currentTarget.contains(p.target), d = yd[i.dir].includes(p.key);
|
|
7419
7419
|
c && d && (a.onOpenChange(!1), s.trigger?.focus(), p.preventDefault());
|
|
7420
7420
|
})
|
|
7421
7421
|
}
|
|
7422
7422
|
) }) }) });
|
|
7423
7423
|
}
|
|
7424
7424
|
);
|
|
7425
|
-
|
|
7426
|
-
function
|
|
7425
|
+
ui.displayName = ci;
|
|
7426
|
+
function di(e) {
|
|
7427
7427
|
return e ? "open" : "closed";
|
|
7428
7428
|
}
|
|
7429
7429
|
function Gt(e) {
|
|
@@ -7432,24 +7432,24 @@ function Gt(e) {
|
|
|
7432
7432
|
function hn(e) {
|
|
7433
7433
|
return Gt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
7434
7434
|
}
|
|
7435
|
-
function
|
|
7435
|
+
function Md(e) {
|
|
7436
7436
|
const t = document.activeElement;
|
|
7437
7437
|
for (const r of e)
|
|
7438
7438
|
if (r === t || (r.focus(), document.activeElement !== t)) return;
|
|
7439
7439
|
}
|
|
7440
|
-
function
|
|
7440
|
+
function Ld(e, t) {
|
|
7441
7441
|
return e.map((r, n) => e[(t + n) % e.length]);
|
|
7442
7442
|
}
|
|
7443
|
-
function
|
|
7443
|
+
function Id(e, t, r) {
|
|
7444
7444
|
const n = t.length > 1 && Array.from(t).every((s) => s === t[0]) ? t[0] : t, o = r ? e.indexOf(r) : -1;
|
|
7445
|
-
let a =
|
|
7445
|
+
let a = Ld(e, Math.max(o, 0));
|
|
7446
7446
|
n.length === 1 && (a = a.filter((s) => s !== r));
|
|
7447
7447
|
const i = a.find(
|
|
7448
7448
|
(s) => s.toLowerCase().startsWith(n.toLowerCase())
|
|
7449
7449
|
);
|
|
7450
7450
|
return i !== r ? i : void 0;
|
|
7451
7451
|
}
|
|
7452
|
-
function
|
|
7452
|
+
function Fd(e, t) {
|
|
7453
7453
|
const { x: r, y: n } = e;
|
|
7454
7454
|
let o = !1;
|
|
7455
7455
|
for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
|
|
@@ -7458,21 +7458,21 @@ function Ld(e, t) {
|
|
|
7458
7458
|
}
|
|
7459
7459
|
return o;
|
|
7460
7460
|
}
|
|
7461
|
-
function
|
|
7461
|
+
function Vd(e, t) {
|
|
7462
7462
|
if (!t) return !1;
|
|
7463
7463
|
const r = { x: e.clientX, y: e.clientY };
|
|
7464
|
-
return
|
|
7464
|
+
return Fd(r, t);
|
|
7465
7465
|
}
|
|
7466
7466
|
function ft(e) {
|
|
7467
7467
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
7468
7468
|
}
|
|
7469
|
-
var
|
|
7470
|
-
|
|
7471
|
-
[
|
|
7472
|
-
),
|
|
7469
|
+
var zd = dn, $d = Xa, Wd = mn, Ud = qa, Bd = ir, Gd = Ja, Hd = ei, Kd = ri, Yd = oi, Xd = ai, qd = ii, Zd = li, Jd = ui, fi = "DropdownMenu", [Qd, lm] = Se(
|
|
7470
|
+
fi,
|
|
7471
|
+
[Ha]
|
|
7472
|
+
), ue = Ha(), [cm, pi] = Qd(fi), mi = "DropdownMenuTrigger", ef = f.forwardRef(
|
|
7473
7473
|
(e, t) => {
|
|
7474
|
-
const { __scopeDropdownMenu: r, disabled: n = !1, ...o } = e, a =
|
|
7475
|
-
return /* @__PURE__ */ b.jsx(
|
|
7474
|
+
const { __scopeDropdownMenu: r, disabled: n = !1, ...o } = e, a = pi(mi, r), i = ue(r);
|
|
7475
|
+
return /* @__PURE__ */ b.jsx(zd, { asChild: !0, ...i, children: /* @__PURE__ */ b.jsx(
|
|
7476
7476
|
J.button,
|
|
7477
7477
|
{
|
|
7478
7478
|
type: "button",
|
|
@@ -7495,12 +7495,12 @@ var Fd = dn, Vd = Ya, zd = mn, $d = Xa, Wd = ir, Ud = Za, Bd = Qa, Gd = ti, Hd =
|
|
|
7495
7495
|
) });
|
|
7496
7496
|
}
|
|
7497
7497
|
);
|
|
7498
|
-
|
|
7499
|
-
var
|
|
7498
|
+
ef.displayName = mi;
|
|
7499
|
+
var gi = "DropdownMenuContent", tf = f.forwardRef(
|
|
7500
7500
|
(e, t) => {
|
|
7501
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
7501
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = pi(gi, r), a = ue(r), i = f.useRef(!1);
|
|
7502
7502
|
return /* @__PURE__ */ b.jsx(
|
|
7503
|
-
|
|
7503
|
+
$d,
|
|
7504
7504
|
{
|
|
7505
7505
|
id: o.contentId,
|
|
7506
7506
|
"aria-labelledby": o.triggerId,
|
|
@@ -7526,69 +7526,69 @@ var mi = "DropdownMenuContent", Qd = f.forwardRef(
|
|
|
7526
7526
|
);
|
|
7527
7527
|
}
|
|
7528
7528
|
);
|
|
7529
|
-
|
|
7530
|
-
var
|
|
7529
|
+
tf.displayName = gi;
|
|
7530
|
+
var rf = "DropdownMenuGroup", nf = f.forwardRef(
|
|
7531
7531
|
(e, t) => {
|
|
7532
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
7533
|
-
return /* @__PURE__ */ b.jsx(
|
|
7532
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7533
|
+
return /* @__PURE__ */ b.jsx(Wd, { ...o, ...n, ref: t });
|
|
7534
7534
|
}
|
|
7535
7535
|
);
|
|
7536
|
-
|
|
7537
|
-
var
|
|
7536
|
+
nf.displayName = rf;
|
|
7537
|
+
var of = "DropdownMenuLabel", af = f.forwardRef(
|
|
7538
7538
|
(e, t) => {
|
|
7539
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
7540
|
-
return /* @__PURE__ */ b.jsx(
|
|
7539
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7540
|
+
return /* @__PURE__ */ b.jsx(Ud, { ...o, ...n, ref: t });
|
|
7541
7541
|
}
|
|
7542
7542
|
);
|
|
7543
|
-
|
|
7544
|
-
var
|
|
7543
|
+
af.displayName = of;
|
|
7544
|
+
var sf = "DropdownMenuItem", lf = f.forwardRef(
|
|
7545
7545
|
(e, t) => {
|
|
7546
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
7547
|
-
return /* @__PURE__ */ b.jsx(
|
|
7546
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7547
|
+
return /* @__PURE__ */ b.jsx(Bd, { ...o, ...n, ref: t });
|
|
7548
7548
|
}
|
|
7549
7549
|
);
|
|
7550
|
-
af.displayName = of;
|
|
7551
|
-
var sf = "DropdownMenuCheckboxItem", lf = f.forwardRef((e, t) => {
|
|
7552
|
-
const { __scopeDropdownMenu: r, ...n } = e, o = ce(r);
|
|
7553
|
-
return /* @__PURE__ */ b.jsx(Ud, { ...o, ...n, ref: t });
|
|
7554
|
-
});
|
|
7555
7550
|
lf.displayName = sf;
|
|
7556
|
-
var cf = "
|
|
7557
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
7558
|
-
return /* @__PURE__ */ b.jsx(
|
|
7551
|
+
var cf = "DropdownMenuCheckboxItem", uf = f.forwardRef((e, t) => {
|
|
7552
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7553
|
+
return /* @__PURE__ */ b.jsx(Gd, { ...o, ...n, ref: t });
|
|
7559
7554
|
});
|
|
7560
7555
|
uf.displayName = cf;
|
|
7561
|
-
var df = "
|
|
7562
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
7563
|
-
return /* @__PURE__ */ b.jsx(
|
|
7556
|
+
var df = "DropdownMenuRadioGroup", ff = f.forwardRef((e, t) => {
|
|
7557
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7558
|
+
return /* @__PURE__ */ b.jsx(Hd, { ...o, ...n, ref: t });
|
|
7564
7559
|
});
|
|
7565
7560
|
ff.displayName = df;
|
|
7566
|
-
var pf = "
|
|
7567
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
7568
|
-
return /* @__PURE__ */ b.jsx(
|
|
7561
|
+
var pf = "DropdownMenuRadioItem", mf = f.forwardRef((e, t) => {
|
|
7562
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7563
|
+
return /* @__PURE__ */ b.jsx(Kd, { ...o, ...n, ref: t });
|
|
7569
7564
|
});
|
|
7570
7565
|
mf.displayName = pf;
|
|
7571
|
-
var gf = "
|
|
7572
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
7573
|
-
return /* @__PURE__ */ b.jsx(
|
|
7566
|
+
var gf = "DropdownMenuItemIndicator", hf = f.forwardRef((e, t) => {
|
|
7567
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7568
|
+
return /* @__PURE__ */ b.jsx(Yd, { ...o, ...n, ref: t });
|
|
7574
7569
|
});
|
|
7575
7570
|
hf.displayName = gf;
|
|
7576
|
-
var yf = "
|
|
7571
|
+
var yf = "DropdownMenuSeparator", vf = f.forwardRef((e, t) => {
|
|
7572
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7573
|
+
return /* @__PURE__ */ b.jsx(Xd, { ...o, ...n, ref: t });
|
|
7574
|
+
});
|
|
7575
|
+
vf.displayName = yf;
|
|
7576
|
+
var bf = "DropdownMenuArrow", wf = f.forwardRef(
|
|
7577
7577
|
(e, t) => {
|
|
7578
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
7579
|
-
return /* @__PURE__ */ b.jsx(
|
|
7578
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7579
|
+
return /* @__PURE__ */ b.jsx(qd, { ...o, ...n, ref: t });
|
|
7580
7580
|
}
|
|
7581
7581
|
);
|
|
7582
|
-
vf.displayName = yf;
|
|
7583
|
-
var bf = "DropdownMenuSubTrigger", wf = f.forwardRef((e, t) => {
|
|
7584
|
-
const { __scopeDropdownMenu: r, ...n } = e, o = ce(r);
|
|
7585
|
-
return /* @__PURE__ */ b.jsx(Xd, { ...o, ...n, ref: t });
|
|
7586
|
-
});
|
|
7587
7582
|
wf.displayName = bf;
|
|
7588
|
-
var xf = "
|
|
7589
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
7583
|
+
var xf = "DropdownMenuSubTrigger", _f = f.forwardRef((e, t) => {
|
|
7584
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7585
|
+
return /* @__PURE__ */ b.jsx(Zd, { ...o, ...n, ref: t });
|
|
7586
|
+
});
|
|
7587
|
+
_f.displayName = xf;
|
|
7588
|
+
var Ef = "DropdownMenuSubContent", kf = f.forwardRef((e, t) => {
|
|
7589
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = ue(r);
|
|
7590
7590
|
return /* @__PURE__ */ b.jsx(
|
|
7591
|
-
|
|
7591
|
+
Jd,
|
|
7592
7592
|
{
|
|
7593
7593
|
...o,
|
|
7594
7594
|
...n,
|
|
@@ -7604,8 +7604,8 @@ var xf = "DropdownMenuSubContent", _f = f.forwardRef((e, t) => {
|
|
|
7604
7604
|
}
|
|
7605
7605
|
);
|
|
7606
7606
|
});
|
|
7607
|
-
|
|
7608
|
-
var
|
|
7607
|
+
kf.displayName = Ef;
|
|
7608
|
+
var Rf = "Label", hi = f.forwardRef((e, t) => /* @__PURE__ */ b.jsx(
|
|
7609
7609
|
J.label,
|
|
7610
7610
|
{
|
|
7611
7611
|
...e,
|
|
@@ -7615,17 +7615,17 @@ var Ef = "Label", gi = f.forwardRef((e, t) => /* @__PURE__ */ b.jsx(
|
|
|
7615
7615
|
}
|
|
7616
7616
|
}
|
|
7617
7617
|
));
|
|
7618
|
-
|
|
7619
|
-
var
|
|
7618
|
+
hi.displayName = Rf;
|
|
7619
|
+
var Sf = hi;
|
|
7620
7620
|
function pt({
|
|
7621
7621
|
className: e,
|
|
7622
7622
|
...t
|
|
7623
7623
|
}) {
|
|
7624
7624
|
return /* @__PURE__ */ b.jsx(
|
|
7625
|
-
|
|
7625
|
+
Sf,
|
|
7626
7626
|
{
|
|
7627
7627
|
"data-slot": "label",
|
|
7628
|
-
className:
|
|
7628
|
+
className: ce(
|
|
7629
7629
|
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
7630
7630
|
e
|
|
7631
7631
|
),
|
|
@@ -7633,19 +7633,19 @@ function pt({
|
|
|
7633
7633
|
}
|
|
7634
7634
|
);
|
|
7635
7635
|
}
|
|
7636
|
-
var
|
|
7637
|
-
function
|
|
7636
|
+
var Cf = /* @__PURE__ */ Symbol.for("react.lazy"), Ht = f[" use ".trim().toString()];
|
|
7637
|
+
function Of(e) {
|
|
7638
7638
|
return typeof e == "object" && e !== null && "then" in e;
|
|
7639
7639
|
}
|
|
7640
|
-
function
|
|
7641
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof ===
|
|
7640
|
+
function yi(e) {
|
|
7641
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Cf && "_payload" in e && Of(e._payload);
|
|
7642
7642
|
}
|
|
7643
7643
|
// @__NO_SIDE_EFFECTS__
|
|
7644
|
-
function
|
|
7645
|
-
const t = /* @__PURE__ */
|
|
7644
|
+
function jf(e) {
|
|
7645
|
+
const t = /* @__PURE__ */ Tf(e), r = f.forwardRef((n, o) => {
|
|
7646
7646
|
let { children: a, ...i } = n;
|
|
7647
|
-
|
|
7648
|
-
const s = f.Children.toArray(a), u = s.find(
|
|
7647
|
+
yi(a) && typeof Ht == "function" && (a = Ht(a._payload));
|
|
7648
|
+
const s = f.Children.toArray(a), u = s.find(Df);
|
|
7649
7649
|
if (u) {
|
|
7650
7650
|
const l = u.props.children, p = s.map((c) => c === u ? f.Children.count(l) > 1 ? f.Children.only(null) : f.isValidElement(l) ? l.props.children : null : c);
|
|
7651
7651
|
return /* @__PURE__ */ b.jsx(t, { ...i, ref: o, children: f.isValidElement(l) ? f.cloneElement(l, void 0, p) : null });
|
|
@@ -7655,22 +7655,22 @@ function Cf(e) {
|
|
|
7655
7655
|
return r.displayName = `${e}.Slot`, r;
|
|
7656
7656
|
}
|
|
7657
7657
|
// @__NO_SIDE_EFFECTS__
|
|
7658
|
-
function
|
|
7658
|
+
function Tf(e) {
|
|
7659
7659
|
const t = f.forwardRef((r, n) => {
|
|
7660
7660
|
let { children: o, ...a } = r;
|
|
7661
|
-
if (
|
|
7662
|
-
const i =
|
|
7661
|
+
if (yi(o) && typeof Ht == "function" && (o = Ht(o._payload)), f.isValidElement(o)) {
|
|
7662
|
+
const i = Pf(o), s = Af(a, o.props);
|
|
7663
7663
|
return o.type !== f.Fragment && (s.ref = n ? vt(n, i) : i), f.cloneElement(o, s);
|
|
7664
7664
|
}
|
|
7665
7665
|
return f.Children.count(o) > 1 ? f.Children.only(null) : null;
|
|
7666
7666
|
});
|
|
7667
7667
|
return t.displayName = `${e}.SlotClone`, t;
|
|
7668
7668
|
}
|
|
7669
|
-
var
|
|
7670
|
-
function
|
|
7671
|
-
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
7669
|
+
var Nf = /* @__PURE__ */ Symbol("radix.slottable");
|
|
7670
|
+
function Df(e) {
|
|
7671
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Nf;
|
|
7672
7672
|
}
|
|
7673
|
-
function
|
|
7673
|
+
function Af(e, t) {
|
|
7674
7674
|
const r = { ...t };
|
|
7675
7675
|
for (const n in t) {
|
|
7676
7676
|
const o = e[n], a = t[n];
|
|
@@ -7681,11 +7681,11 @@ function Nf(e, t) {
|
|
|
7681
7681
|
}
|
|
7682
7682
|
return { ...e, ...r };
|
|
7683
7683
|
}
|
|
7684
|
-
function
|
|
7684
|
+
function Pf(e) {
|
|
7685
7685
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
7686
7686
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
7687
7687
|
}
|
|
7688
|
-
var
|
|
7688
|
+
var Mf = [
|
|
7689
7689
|
"a",
|
|
7690
7690
|
"button",
|
|
7691
7691
|
"div",
|
|
@@ -7703,14 +7703,14 @@ var Af = [
|
|
|
7703
7703
|
"span",
|
|
7704
7704
|
"svg",
|
|
7705
7705
|
"ul"
|
|
7706
|
-
], yn =
|
|
7707
|
-
const r = /* @__PURE__ */
|
|
7706
|
+
], yn = Mf.reduce((e, t) => {
|
|
7707
|
+
const r = /* @__PURE__ */ jf(`Primitive.${t}`), n = f.forwardRef((o, a) => {
|
|
7708
7708
|
const { asChild: i, ...s } = o, u = i ? r : t;
|
|
7709
7709
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ b.jsx(u, { ...s, ref: a });
|
|
7710
7710
|
});
|
|
7711
7711
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
7712
|
-
}, {}),
|
|
7713
|
-
const { decorative: r, orientation: n = xo, ...o } = e, a =
|
|
7712
|
+
}, {}), Lf = "Separator", xo = "horizontal", If = ["horizontal", "vertical"], Ff = f.forwardRef((e, t) => {
|
|
7713
|
+
const { decorative: r, orientation: n = xo, ...o } = e, a = Vf(n) ? n : xo, i = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
7714
7714
|
return /* @__PURE__ */ b.jsx(
|
|
7715
7715
|
yn.div,
|
|
7716
7716
|
{
|
|
@@ -7721,16 +7721,16 @@ var Af = [
|
|
|
7721
7721
|
}
|
|
7722
7722
|
);
|
|
7723
7723
|
});
|
|
7724
|
-
|
|
7725
|
-
function
|
|
7726
|
-
return
|
|
7724
|
+
Ff.displayName = Lf;
|
|
7725
|
+
function Vf(e) {
|
|
7726
|
+
return If.includes(e);
|
|
7727
7727
|
}
|
|
7728
7728
|
function vn({ className: e, ...t }) {
|
|
7729
7729
|
return /* @__PURE__ */ b.jsx(
|
|
7730
7730
|
"p",
|
|
7731
7731
|
{
|
|
7732
7732
|
"data-slot": "field-description",
|
|
7733
|
-
className:
|
|
7733
|
+
className: ce(
|
|
7734
7734
|
"text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
|
|
7735
7735
|
"last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
|
|
7736
7736
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
@@ -7740,35 +7740,35 @@ function vn({ className: e, ...t }) {
|
|
|
7740
7740
|
}
|
|
7741
7741
|
);
|
|
7742
7742
|
}
|
|
7743
|
-
var
|
|
7744
|
-
const
|
|
7745
|
-
var Le = (e) => !bn(e) && !Array.isArray(e) &&
|
|
7743
|
+
var zf = (e) => e.type === "checkbox", lt = (e) => e instanceof Date, bn = (e) => e == null;
|
|
7744
|
+
const vi = (e) => typeof e == "object";
|
|
7745
|
+
var Le = (e) => !bn(e) && !Array.isArray(e) && vi(e) && !lt(e), $f = (e) => Le(e) && e.target ? zf(e.target) ? e.target.checked : e.target.value : e, Wf = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Uf = (e, t) => e.has(Wf(t)), Bf = (e) => {
|
|
7746
7746
|
const t = e.constructor && e.constructor.prototype;
|
|
7747
7747
|
return Le(t) && t.hasOwnProperty("isPrototypeOf");
|
|
7748
|
-
},
|
|
7749
|
-
function
|
|
7748
|
+
}, Gf = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
7749
|
+
function bi(e) {
|
|
7750
7750
|
let t;
|
|
7751
7751
|
const r = Array.isArray(e), n = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
7752
7752
|
if (e instanceof Date)
|
|
7753
7753
|
t = new Date(e);
|
|
7754
|
-
else if (!(
|
|
7755
|
-
if (t = r ? [] : Object.create(Object.getPrototypeOf(e)), !r && !
|
|
7754
|
+
else if (!(Gf && (e instanceof Blob || n)) && (r || Le(e)))
|
|
7755
|
+
if (t = r ? [] : Object.create(Object.getPrototypeOf(e)), !r && !Bf(e))
|
|
7756
7756
|
t = e;
|
|
7757
7757
|
else
|
|
7758
7758
|
for (const o in e)
|
|
7759
|
-
e.hasOwnProperty(o) && (t[o] =
|
|
7759
|
+
e.hasOwnProperty(o) && (t[o] = bi(e[o]));
|
|
7760
7760
|
else
|
|
7761
7761
|
return e;
|
|
7762
7762
|
return t;
|
|
7763
7763
|
}
|
|
7764
|
-
var
|
|
7764
|
+
var wi = (e) => /^\w*$/.test(e), Fr = (e) => e === void 0, Hf = (e) => Array.isArray(e) ? e.filter(Boolean) : [], xi = (e) => Hf(e.replace(/["|']|\]/g, "").split(/\.|\[/)), ie = (e, t, r) => {
|
|
7765
7765
|
if (!t || !Le(e))
|
|
7766
7766
|
return r;
|
|
7767
|
-
const n = (
|
|
7767
|
+
const n = (wi(t) ? [t] : xi(t)).reduce((o, a) => bn(o) ? o : o[a], e);
|
|
7768
7768
|
return Fr(n) || n === e ? Fr(e[t]) ? r : e[t] : n;
|
|
7769
7769
|
}, Rr = (e) => typeof e == "boolean", _o = (e, t, r) => {
|
|
7770
7770
|
let n = -1;
|
|
7771
|
-
const o =
|
|
7771
|
+
const o = wi(t) ? [t] : xi(t), a = o.length, i = a - 1;
|
|
7772
7772
|
for (; ++n < a; ) {
|
|
7773
7773
|
const s = o[n];
|
|
7774
7774
|
let u = r;
|
|
@@ -7788,11 +7788,11 @@ const Eo = {
|
|
|
7788
7788
|
all: "all"
|
|
7789
7789
|
}, wn = F.createContext(null);
|
|
7790
7790
|
wn.displayName = "HookFormContext";
|
|
7791
|
-
const sr = () => F.useContext(wn),
|
|
7791
|
+
const sr = () => F.useContext(wn), Kf = (e) => {
|
|
7792
7792
|
const { children: t, ...r } = e;
|
|
7793
7793
|
return F.createElement(wn.Provider, { value: r }, t);
|
|
7794
7794
|
};
|
|
7795
|
-
var
|
|
7795
|
+
var Yf = (e, t, r, n = !0) => {
|
|
7796
7796
|
const o = {
|
|
7797
7797
|
defaultValues: t._defaultValues
|
|
7798
7798
|
};
|
|
@@ -7805,8 +7805,8 @@ var Hf = (e, t, r, n = !0) => {
|
|
|
7805
7805
|
});
|
|
7806
7806
|
return o;
|
|
7807
7807
|
};
|
|
7808
|
-
const
|
|
7809
|
-
function
|
|
7808
|
+
const _i = typeof window < "u" ? F.useLayoutEffect : F.useEffect;
|
|
7809
|
+
function Ei(e) {
|
|
7810
7810
|
const t = sr(), { control: r = t.control, disabled: n, name: o, exact: a } = e || {}, [i, s] = F.useState(r._formState), u = F.useRef({
|
|
7811
7811
|
isDirty: !1,
|
|
7812
7812
|
isLoading: !1,
|
|
@@ -7817,7 +7817,7 @@ function _i(e) {
|
|
|
7817
7817
|
isValid: !1,
|
|
7818
7818
|
errors: !1
|
|
7819
7819
|
});
|
|
7820
|
-
return
|
|
7820
|
+
return _i(() => r._subscribe({
|
|
7821
7821
|
name: o,
|
|
7822
7822
|
formState: u.current,
|
|
7823
7823
|
exact: a,
|
|
@@ -7829,9 +7829,9 @@ function _i(e) {
|
|
|
7829
7829
|
}
|
|
7830
7830
|
}), [o, n, a]), F.useEffect(() => {
|
|
7831
7831
|
u.current.isValid && r._setValid(!0);
|
|
7832
|
-
}, [r]), F.useMemo(() =>
|
|
7832
|
+
}, [r]), F.useMemo(() => Yf(i, r, u.current, !1), [i, r]);
|
|
7833
7833
|
}
|
|
7834
|
-
var
|
|
7834
|
+
var Xf = (e) => typeof e == "string", Ro = (e, t, r, n, o) => Xf(e) ? ie(r, e, o) : Array.isArray(e) ? e.map((a) => ie(r, a)) : r, So = (e) => bn(e) || !vi(e);
|
|
7835
7835
|
function Ft(e, t, r = /* @__PURE__ */ new WeakSet()) {
|
|
7836
7836
|
if (So(e) || So(t))
|
|
7837
7837
|
return Object.is(e, t);
|
|
@@ -7855,7 +7855,7 @@ function Ft(e, t, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
7855
7855
|
}
|
|
7856
7856
|
return !0;
|
|
7857
7857
|
}
|
|
7858
|
-
function
|
|
7858
|
+
function qf(e) {
|
|
7859
7859
|
const t = sr(), { control: r = t.control, name: n, defaultValue: o, disabled: a, exact: i, compute: s } = e || {}, u = F.useRef(o), l = F.useRef(s), p = F.useRef(void 0), c = F.useRef(r), d = F.useRef(n);
|
|
7860
7860
|
l.current = s;
|
|
7861
7861
|
const [m, y] = F.useState(() => {
|
|
@@ -7874,7 +7874,7 @@ function Yf(e) {
|
|
|
7874
7874
|
y(C);
|
|
7875
7875
|
}
|
|
7876
7876
|
}, [r._formValues, r._names, a, n]);
|
|
7877
|
-
|
|
7877
|
+
_i(() => ((c.current !== r || !Ft(d.current, n)) && (c.current = r, d.current = n, v()), r._subscribe({
|
|
7878
7878
|
name: n,
|
|
7879
7879
|
formState: {
|
|
7880
7880
|
values: !0
|
|
@@ -7892,13 +7892,13 @@ function Yf(e) {
|
|
|
7892
7892
|
}, [a, w, n, x, g]);
|
|
7893
7893
|
return E !== null ? E : m;
|
|
7894
7894
|
}
|
|
7895
|
-
function
|
|
7896
|
-
const t = sr(), { name: r, disabled: n, control: o = t.control, shouldUnregister: a, defaultValue: i, exact: s = !0 } = e, u =
|
|
7895
|
+
function Zf(e) {
|
|
7896
|
+
const t = sr(), { name: r, disabled: n, control: o = t.control, shouldUnregister: a, defaultValue: i, exact: s = !0 } = e, u = Uf(o._names.array, r), l = F.useMemo(() => ie(o._formValues, r, ie(o._defaultValues, r, i)), [o, r, i]), p = qf({
|
|
7897
7897
|
control: o,
|
|
7898
7898
|
name: r,
|
|
7899
7899
|
defaultValue: l,
|
|
7900
7900
|
exact: s
|
|
7901
|
-
}), c =
|
|
7901
|
+
}), c = Ei({
|
|
7902
7902
|
control: o,
|
|
7903
7903
|
name: r,
|
|
7904
7904
|
exact: s
|
|
@@ -7931,7 +7931,7 @@ function Xf(e) {
|
|
|
7931
7931
|
}
|
|
7932
7932
|
}), [c, r]), v = F.useCallback((_) => y.current.onChange({
|
|
7933
7933
|
target: {
|
|
7934
|
-
value:
|
|
7934
|
+
value: $f(_),
|
|
7935
7935
|
name: r
|
|
7936
7936
|
},
|
|
7937
7937
|
type: Eo.CHANGE
|
|
@@ -7968,7 +7968,7 @@ function Xf(e) {
|
|
|
7968
7968
|
L && L._f && (L._f.mount = R);
|
|
7969
7969
|
};
|
|
7970
7970
|
if (T(r, !0), _) {
|
|
7971
|
-
const j =
|
|
7971
|
+
const j = bi(ie(o._options.defaultValues, r, d.current.defaultValue));
|
|
7972
7972
|
_o(o._defaultValues, r, j), Fr(ie(o._formValues, r)) && _o(o._formValues, r, j);
|
|
7973
7973
|
}
|
|
7974
7974
|
return !u && o.register(r), m.current = r, () => {
|
|
@@ -7985,12 +7985,12 @@ function Xf(e) {
|
|
|
7985
7985
|
fieldState: g
|
|
7986
7986
|
}), [E, c, g]);
|
|
7987
7987
|
}
|
|
7988
|
-
const
|
|
7988
|
+
const Jf = (e) => e.render(Zf(e)), xn = Kf, ki = f.createContext(
|
|
7989
7989
|
{}
|
|
7990
7990
|
), mt = ({
|
|
7991
7991
|
...e
|
|
7992
|
-
}) => /* @__PURE__ */ b.jsx(
|
|
7993
|
-
const e = f.useContext(
|
|
7992
|
+
}) => /* @__PURE__ */ b.jsx(ki.Provider, { value: { name: e.name }, children: /* @__PURE__ */ b.jsx(Jf, { ...e }) }), Ri = () => {
|
|
7993
|
+
const e = f.useContext(ki), t = f.useContext(Si), { getFieldState: r } = sr(), n = Ei({ name: e.name }), o = r(e.name, n);
|
|
7994
7994
|
if (!e)
|
|
7995
7995
|
throw new Error("useFormField should be used within <FormField>");
|
|
7996
7996
|
const { id: a } = t;
|
|
@@ -8002,24 +8002,24 @@ const qf = (e) => e.render(Xf(e)), xn = Gf, Ei = f.createContext(
|
|
|
8002
8002
|
formMessageId: `${a}-form-item-message`,
|
|
8003
8003
|
...o
|
|
8004
8004
|
};
|
|
8005
|
-
},
|
|
8005
|
+
}, Si = f.createContext(
|
|
8006
8006
|
{}
|
|
8007
8007
|
);
|
|
8008
8008
|
function gt({ className: e, ...t }) {
|
|
8009
8009
|
const r = f.useId();
|
|
8010
|
-
return /* @__PURE__ */ b.jsx(
|
|
8010
|
+
return /* @__PURE__ */ b.jsx(Si.Provider, { value: { id: r }, children: /* @__PURE__ */ b.jsx(
|
|
8011
8011
|
"div",
|
|
8012
8012
|
{
|
|
8013
8013
|
"data-slot": "form-item",
|
|
8014
|
-
className:
|
|
8014
|
+
className: ce("grid gap-2", e),
|
|
8015
8015
|
...t
|
|
8016
8016
|
}
|
|
8017
8017
|
) });
|
|
8018
8018
|
}
|
|
8019
8019
|
function ht({ ...e }) {
|
|
8020
|
-
const { error: t, formItemId: r, formDescriptionId: n, formMessageId: o } =
|
|
8020
|
+
const { error: t, formItemId: r, formDescriptionId: n, formMessageId: o } = Ri();
|
|
8021
8021
|
return /* @__PURE__ */ b.jsx(
|
|
8022
|
-
|
|
8022
|
+
Go,
|
|
8023
8023
|
{
|
|
8024
8024
|
"data-slot": "form-control",
|
|
8025
8025
|
id: r,
|
|
@@ -8029,13 +8029,26 @@ function ht({ ...e }) {
|
|
|
8029
8029
|
}
|
|
8030
8030
|
);
|
|
8031
8031
|
}
|
|
8032
|
+
function Co({ className: e, ...t }) {
|
|
8033
|
+
const { error: r, formMessageId: n } = Ri(), o = r ? String(r?.message ?? "") : t.children;
|
|
8034
|
+
return o ? /* @__PURE__ */ b.jsx(
|
|
8035
|
+
"p",
|
|
8036
|
+
{
|
|
8037
|
+
"data-slot": "form-message",
|
|
8038
|
+
id: n,
|
|
8039
|
+
className: ce("text-destructive text-sm", e),
|
|
8040
|
+
...t,
|
|
8041
|
+
children: o
|
|
8042
|
+
}
|
|
8043
|
+
) : null;
|
|
8044
|
+
}
|
|
8032
8045
|
function yt({ className: e, type: t, ...r }) {
|
|
8033
8046
|
return /* @__PURE__ */ b.jsx(
|
|
8034
8047
|
"input",
|
|
8035
8048
|
{
|
|
8036
8049
|
type: t,
|
|
8037
8050
|
"data-slot": "input",
|
|
8038
|
-
className:
|
|
8051
|
+
className: ce(
|
|
8039
8052
|
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
8040
8053
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
8041
8054
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
@@ -8045,7 +8058,7 @@ function yt({ className: e, type: t, ...r }) {
|
|
|
8045
8058
|
}
|
|
8046
8059
|
);
|
|
8047
8060
|
}
|
|
8048
|
-
function
|
|
8061
|
+
function Qf(e, t = []) {
|
|
8049
8062
|
let r = [];
|
|
8050
8063
|
function n(a, i) {
|
|
8051
8064
|
const s = f.createContext(i);
|
|
@@ -8075,9 +8088,9 @@ function Jf(e, t = []) {
|
|
|
8075
8088
|
);
|
|
8076
8089
|
};
|
|
8077
8090
|
};
|
|
8078
|
-
return o.scopeName = e, [n,
|
|
8091
|
+
return o.scopeName = e, [n, ep(o, ...t)];
|
|
8079
8092
|
}
|
|
8080
|
-
function
|
|
8093
|
+
function ep(...e) {
|
|
8081
8094
|
const t = e[0];
|
|
8082
8095
|
if (e.length === 1) return t;
|
|
8083
8096
|
const r = () => {
|
|
@@ -8095,20 +8108,20 @@ function Qf(...e) {
|
|
|
8095
8108
|
};
|
|
8096
8109
|
return r.scopeName = t.scopeName, r;
|
|
8097
8110
|
}
|
|
8098
|
-
var _n = "Progress", En = 100, [
|
|
8111
|
+
var _n = "Progress", En = 100, [tp, um] = Qf(_n), [rp, np] = tp(_n), op = f.forwardRef(
|
|
8099
8112
|
(e, t) => {
|
|
8100
8113
|
const {
|
|
8101
8114
|
__scopeProgress: r,
|
|
8102
8115
|
value: n = null,
|
|
8103
8116
|
max: o,
|
|
8104
|
-
getValueLabel: a =
|
|
8117
|
+
getValueLabel: a = ip,
|
|
8105
8118
|
...i
|
|
8106
8119
|
} = e;
|
|
8107
|
-
(o || o === 0) && !
|
|
8108
|
-
const s =
|
|
8109
|
-
n !== null && !
|
|
8110
|
-
const u =
|
|
8111
|
-
return /* @__PURE__ */ b.jsx(
|
|
8120
|
+
(o || o === 0) && !Oo(o) && console.error(sp(`${o}`, "Progress"));
|
|
8121
|
+
const s = Oo(o) ? o : En;
|
|
8122
|
+
n !== null && !jo(n, s) && console.error(lp(`${n}`, "Progress"));
|
|
8123
|
+
const u = jo(n, s) ? n : null, l = Kt(u) ? a(u, s) : void 0;
|
|
8124
|
+
return /* @__PURE__ */ b.jsx(rp, { scope: r, value: u, max: s, children: /* @__PURE__ */ b.jsx(
|
|
8112
8125
|
yn.div,
|
|
8113
8126
|
{
|
|
8114
8127
|
"aria-valuemax": s,
|
|
@@ -8116,7 +8129,7 @@ var _n = "Progress", En = 100, [ep, cm] = Jf(_n), [tp, rp] = ep(_n), np = f.forw
|
|
|
8116
8129
|
"aria-valuenow": Kt(u) ? u : void 0,
|
|
8117
8130
|
"aria-valuetext": l,
|
|
8118
8131
|
role: "progressbar",
|
|
8119
|
-
"data-state":
|
|
8132
|
+
"data-state": Oi(u, s),
|
|
8120
8133
|
"data-value": u ?? void 0,
|
|
8121
8134
|
"data-max": s,
|
|
8122
8135
|
...i,
|
|
@@ -8125,14 +8138,14 @@ var _n = "Progress", En = 100, [ep, cm] = Jf(_n), [tp, rp] = ep(_n), np = f.forw
|
|
|
8125
8138
|
) });
|
|
8126
8139
|
}
|
|
8127
8140
|
);
|
|
8128
|
-
|
|
8129
|
-
var
|
|
8141
|
+
op.displayName = _n;
|
|
8142
|
+
var Ci = "ProgressIndicator", ap = f.forwardRef(
|
|
8130
8143
|
(e, t) => {
|
|
8131
|
-
const { __scopeProgress: r, ...n } = e, o =
|
|
8144
|
+
const { __scopeProgress: r, ...n } = e, o = np(Ci, r);
|
|
8132
8145
|
return /* @__PURE__ */ b.jsx(
|
|
8133
8146
|
yn.div,
|
|
8134
8147
|
{
|
|
8135
|
-
"data-state":
|
|
8148
|
+
"data-state": Oi(o.value, o.max),
|
|
8136
8149
|
"data-value": o.value ?? void 0,
|
|
8137
8150
|
"data-max": o.max,
|
|
8138
8151
|
...n,
|
|
@@ -8141,26 +8154,26 @@ var Ri = "ProgressIndicator", op = f.forwardRef(
|
|
|
8141
8154
|
);
|
|
8142
8155
|
}
|
|
8143
8156
|
);
|
|
8144
|
-
|
|
8145
|
-
function
|
|
8157
|
+
ap.displayName = Ci;
|
|
8158
|
+
function ip(e, t) {
|
|
8146
8159
|
return `${Math.round(e / t * 100)}%`;
|
|
8147
8160
|
}
|
|
8148
|
-
function
|
|
8161
|
+
function Oi(e, t) {
|
|
8149
8162
|
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
8150
8163
|
}
|
|
8151
8164
|
function Kt(e) {
|
|
8152
8165
|
return typeof e == "number";
|
|
8153
8166
|
}
|
|
8154
|
-
function
|
|
8167
|
+
function Oo(e) {
|
|
8155
8168
|
return Kt(e) && !isNaN(e) && e > 0;
|
|
8156
8169
|
}
|
|
8157
|
-
function
|
|
8170
|
+
function jo(e, t) {
|
|
8158
8171
|
return Kt(e) && !isNaN(e) && e <= t && e >= 0;
|
|
8159
8172
|
}
|
|
8160
|
-
function
|
|
8173
|
+
function sp(e, t) {
|
|
8161
8174
|
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${En}\`.`;
|
|
8162
8175
|
}
|
|
8163
|
-
function
|
|
8176
|
+
function lp(e, t) {
|
|
8164
8177
|
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
8165
8178
|
- a positive number
|
|
8166
8179
|
- less than the value passed to \`max\` (or ${En} if no \`max\` prop is set)
|
|
@@ -8168,9 +8181,9 @@ function sp(e, t) {
|
|
|
8168
8181
|
|
|
8169
8182
|
Defaulting to \`null\`.`;
|
|
8170
8183
|
}
|
|
8171
|
-
var
|
|
8184
|
+
var ji = "Dialog", [Ti, dm] = Se(ji), [fm, we] = Ti(ji), Ni = "DialogTrigger", cp = f.forwardRef(
|
|
8172
8185
|
(e, t) => {
|
|
8173
|
-
const { __scopeDialog: r, ...n } = e, o = we(
|
|
8186
|
+
const { __scopeDialog: r, ...n } = e, o = we(Ni, r), a = ee(t, o.triggerRef);
|
|
8174
8187
|
return /* @__PURE__ */ b.jsx(
|
|
8175
8188
|
J.button,
|
|
8176
8189
|
{
|
|
@@ -8186,23 +8199,23 @@ var Ci = "Dialog", [Oi, um] = Se(Ci), [dm, we] = Oi(Ci), ji = "DialogTrigger", l
|
|
|
8186
8199
|
);
|
|
8187
8200
|
}
|
|
8188
8201
|
);
|
|
8189
|
-
|
|
8190
|
-
var
|
|
8202
|
+
cp.displayName = Ni;
|
|
8203
|
+
var up = "DialogPortal", [pm, Di] = Ti(up, {
|
|
8191
8204
|
forceMount: void 0
|
|
8192
|
-
}), Yt = "DialogOverlay",
|
|
8205
|
+
}), Yt = "DialogOverlay", dp = f.forwardRef(
|
|
8193
8206
|
(e, t) => {
|
|
8194
|
-
const r =
|
|
8195
|
-
return a.modal ? /* @__PURE__ */ b.jsx(Ne, { present: n || a.open, children: /* @__PURE__ */ b.jsx(
|
|
8207
|
+
const r = Di(Yt, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = we(Yt, e.__scopeDialog);
|
|
8208
|
+
return a.modal ? /* @__PURE__ */ b.jsx(Ne, { present: n || a.open, children: /* @__PURE__ */ b.jsx(pp, { ...o, ref: t }) }) : null;
|
|
8196
8209
|
}
|
|
8197
8210
|
);
|
|
8198
|
-
|
|
8199
|
-
var
|
|
8211
|
+
dp.displayName = Yt;
|
|
8212
|
+
var fp = /* @__PURE__ */ Ye("DialogOverlay.RemoveScroll"), pp = f.forwardRef(
|
|
8200
8213
|
(e, t) => {
|
|
8201
8214
|
const { __scopeDialog: r, ...n } = e, o = we(Yt, r);
|
|
8202
8215
|
return (
|
|
8203
8216
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
8204
8217
|
// ie. when `Overlay` and `Content` are siblings
|
|
8205
|
-
/* @__PURE__ */ b.jsx(cn, { as:
|
|
8218
|
+
/* @__PURE__ */ b.jsx(cn, { as: fp, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ b.jsx(
|
|
8206
8219
|
J.div,
|
|
8207
8220
|
{
|
|
8208
8221
|
"data-state": Rn(o.open),
|
|
@@ -8213,21 +8226,21 @@ var dp = /* @__PURE__ */ Ye("DialogOverlay.RemoveScroll"), fp = f.forwardRef(
|
|
|
8213
8226
|
) })
|
|
8214
8227
|
);
|
|
8215
8228
|
}
|
|
8216
|
-
), Ie = "DialogContent",
|
|
8229
|
+
), Ie = "DialogContent", mp = f.forwardRef(
|
|
8217
8230
|
(e, t) => {
|
|
8218
|
-
const r =
|
|
8219
|
-
return /* @__PURE__ */ b.jsx(Ne, { present: n || a.open, children: a.modal ? /* @__PURE__ */ b.jsx(
|
|
8231
|
+
const r = Di(Ie, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = we(Ie, e.__scopeDialog);
|
|
8232
|
+
return /* @__PURE__ */ b.jsx(Ne, { present: n || a.open, children: a.modal ? /* @__PURE__ */ b.jsx(gp, { ...o, ref: t }) : /* @__PURE__ */ b.jsx(hp, { ...o, ref: t }) });
|
|
8220
8233
|
}
|
|
8221
8234
|
);
|
|
8222
|
-
|
|
8223
|
-
var
|
|
8235
|
+
mp.displayName = Ie;
|
|
8236
|
+
var gp = f.forwardRef(
|
|
8224
8237
|
(e, t) => {
|
|
8225
8238
|
const r = we(Ie, e.__scopeDialog), n = f.useRef(null), o = ee(t, r.contentRef, n);
|
|
8226
8239
|
return f.useEffect(() => {
|
|
8227
8240
|
const a = n.current;
|
|
8228
|
-
if (a) return
|
|
8241
|
+
if (a) return Ia(a);
|
|
8229
8242
|
}, []), /* @__PURE__ */ b.jsx(
|
|
8230
|
-
|
|
8243
|
+
Ai,
|
|
8231
8244
|
{
|
|
8232
8245
|
...e,
|
|
8233
8246
|
ref: o,
|
|
@@ -8247,11 +8260,11 @@ var mp = f.forwardRef(
|
|
|
8247
8260
|
}
|
|
8248
8261
|
);
|
|
8249
8262
|
}
|
|
8250
|
-
),
|
|
8263
|
+
), hp = f.forwardRef(
|
|
8251
8264
|
(e, t) => {
|
|
8252
8265
|
const r = we(Ie, e.__scopeDialog), n = f.useRef(!1), o = f.useRef(!1);
|
|
8253
8266
|
return /* @__PURE__ */ b.jsx(
|
|
8254
|
-
|
|
8267
|
+
Ai,
|
|
8255
8268
|
{
|
|
8256
8269
|
...e,
|
|
8257
8270
|
ref: t,
|
|
@@ -8268,10 +8281,10 @@ var mp = f.forwardRef(
|
|
|
8268
8281
|
}
|
|
8269
8282
|
);
|
|
8270
8283
|
}
|
|
8271
|
-
),
|
|
8284
|
+
), Ai = f.forwardRef(
|
|
8272
8285
|
(e, t) => {
|
|
8273
8286
|
const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, s = we(Ie, r), u = f.useRef(null), l = ee(t, u);
|
|
8274
|
-
return
|
|
8287
|
+
return oa(), /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
8275
8288
|
/* @__PURE__ */ b.jsx(
|
|
8276
8289
|
en,
|
|
8277
8290
|
{
|
|
@@ -8296,28 +8309,28 @@ var mp = f.forwardRef(
|
|
|
8296
8309
|
}
|
|
8297
8310
|
),
|
|
8298
8311
|
/* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
8299
|
-
/* @__PURE__ */ b.jsx(
|
|
8300
|
-
/* @__PURE__ */ b.jsx(
|
|
8312
|
+
/* @__PURE__ */ b.jsx(wp, { titleId: s.titleId }),
|
|
8313
|
+
/* @__PURE__ */ b.jsx(_p, { contentRef: u, descriptionId: s.descriptionId })
|
|
8301
8314
|
] })
|
|
8302
8315
|
] });
|
|
8303
8316
|
}
|
|
8304
|
-
), kn = "DialogTitle",
|
|
8317
|
+
), kn = "DialogTitle", yp = f.forwardRef(
|
|
8305
8318
|
(e, t) => {
|
|
8306
8319
|
const { __scopeDialog: r, ...n } = e, o = we(kn, r);
|
|
8307
8320
|
return /* @__PURE__ */ b.jsx(J.h2, { id: o.titleId, ...n, ref: t });
|
|
8308
8321
|
}
|
|
8309
8322
|
);
|
|
8310
|
-
|
|
8311
|
-
var
|
|
8323
|
+
yp.displayName = kn;
|
|
8324
|
+
var Pi = "DialogDescription", vp = f.forwardRef(
|
|
8312
8325
|
(e, t) => {
|
|
8313
|
-
const { __scopeDialog: r, ...n } = e, o = we(
|
|
8326
|
+
const { __scopeDialog: r, ...n } = e, o = we(Pi, r);
|
|
8314
8327
|
return /* @__PURE__ */ b.jsx(J.p, { id: o.descriptionId, ...n, ref: t });
|
|
8315
8328
|
}
|
|
8316
8329
|
);
|
|
8317
|
-
|
|
8318
|
-
var
|
|
8330
|
+
vp.displayName = Pi;
|
|
8331
|
+
var Mi = "DialogClose", bp = f.forwardRef(
|
|
8319
8332
|
(e, t) => {
|
|
8320
|
-
const { __scopeDialog: r, ...n } = e, o = we(
|
|
8333
|
+
const { __scopeDialog: r, ...n } = e, o = we(Mi, r);
|
|
8321
8334
|
return /* @__PURE__ */ b.jsx(
|
|
8322
8335
|
J.button,
|
|
8323
8336
|
{
|
|
@@ -8329,16 +8342,16 @@ var Ai = "DialogClose", vp = f.forwardRef(
|
|
|
8329
8342
|
);
|
|
8330
8343
|
}
|
|
8331
8344
|
);
|
|
8332
|
-
|
|
8345
|
+
bp.displayName = Mi;
|
|
8333
8346
|
function Rn(e) {
|
|
8334
8347
|
return e ? "open" : "closed";
|
|
8335
8348
|
}
|
|
8336
|
-
var
|
|
8349
|
+
var Li = "DialogTitleWarning", [mm, Ii] = Fs(Li, {
|
|
8337
8350
|
contentName: Ie,
|
|
8338
8351
|
titleName: kn,
|
|
8339
8352
|
docsSlug: "dialog"
|
|
8340
|
-
}),
|
|
8341
|
-
const t =
|
|
8353
|
+
}), wp = ({ titleId: e }) => {
|
|
8354
|
+
const t = Ii(Li), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
8342
8355
|
|
|
8343
8356
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
8344
8357
|
|
|
@@ -8346,13 +8359,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
8346
8359
|
return f.useEffect(() => {
|
|
8347
8360
|
e && (document.getElementById(e) || console.error(r));
|
|
8348
8361
|
}, [r, e]), null;
|
|
8349
|
-
},
|
|
8350
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
8362
|
+
}, xp = "DialogDescriptionWarning", _p = ({ contentRef: e, descriptionId: t }) => {
|
|
8363
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ii(xp).contentName}}.`;
|
|
8351
8364
|
return f.useEffect(() => {
|
|
8352
8365
|
const n = e.current?.getAttribute("aria-describedby");
|
|
8353
8366
|
t && n && (document.getElementById(t) || console.warn(r));
|
|
8354
8367
|
}, [r, e, t]), null;
|
|
8355
|
-
},
|
|
8368
|
+
}, Ep = Object.freeze({
|
|
8356
8369
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
8357
8370
|
position: "absolute",
|
|
8358
8371
|
border: 0,
|
|
@@ -8364,23 +8377,23 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
8364
8377
|
clip: "rect(0, 0, 0, 0)",
|
|
8365
8378
|
whiteSpace: "nowrap",
|
|
8366
8379
|
wordWrap: "normal"
|
|
8367
|
-
}),
|
|
8380
|
+
}), kp = "VisuallyHidden", Fi = f.forwardRef(
|
|
8368
8381
|
(e, t) => /* @__PURE__ */ b.jsx(
|
|
8369
8382
|
J.span,
|
|
8370
8383
|
{
|
|
8371
8384
|
...e,
|
|
8372
8385
|
ref: t,
|
|
8373
|
-
style: { ...
|
|
8386
|
+
style: { ...Ep, ...e.style }
|
|
8374
8387
|
}
|
|
8375
8388
|
)
|
|
8376
8389
|
);
|
|
8377
|
-
|
|
8378
|
-
var
|
|
8390
|
+
Fi.displayName = kp;
|
|
8391
|
+
var Rp = Fi, [lr, gm] = Se("Tooltip", [
|
|
8379
8392
|
nr
|
|
8380
|
-
]), Sn = nr(),
|
|
8393
|
+
]), Sn = nr(), Sp = "TooltipProvider", To = "tooltip.open", [hm, Vi] = lr(Sp), zi = "Tooltip", [ym, cr] = lr(zi), Vr = "TooltipTrigger", Cp = f.forwardRef(
|
|
8381
8394
|
(e, t) => {
|
|
8382
|
-
const { __scopeTooltip: r, ...n } = e, o = cr(Vr, r), a =
|
|
8383
|
-
return f.useEffect(() => () => document.removeEventListener("pointerup", c), [c]), /* @__PURE__ */ b.jsx(
|
|
8395
|
+
const { __scopeTooltip: r, ...n } = e, o = cr(Vr, r), a = Vi(Vr, r), i = Sn(r), s = f.useRef(null), u = ee(t, s, o.onTriggerChange), l = f.useRef(!1), p = f.useRef(!1), c = f.useCallback(() => l.current = !1, []);
|
|
8396
|
+
return f.useEffect(() => () => document.removeEventListener("pointerup", c), [c]), /* @__PURE__ */ b.jsx(Ca, { asChild: !0, ...i, children: /* @__PURE__ */ b.jsx(
|
|
8384
8397
|
J.button,
|
|
8385
8398
|
{
|
|
8386
8399
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -8405,20 +8418,20 @@ var kp = Li, [lr, mm] = Se("Tooltip", [
|
|
|
8405
8418
|
) });
|
|
8406
8419
|
}
|
|
8407
8420
|
);
|
|
8408
|
-
|
|
8409
|
-
var
|
|
8421
|
+
Cp.displayName = Vr;
|
|
8422
|
+
var Op = "TooltipPortal", [vm, jp] = lr(Op, {
|
|
8410
8423
|
forceMount: void 0
|
|
8411
|
-
}), qe = "TooltipContent",
|
|
8424
|
+
}), qe = "TooltipContent", Tp = f.forwardRef(
|
|
8412
8425
|
(e, t) => {
|
|
8413
|
-
const r =
|
|
8414
|
-
return /* @__PURE__ */ b.jsx(Ne, { present: n || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ b.jsx(
|
|
8426
|
+
const r = jp(qe, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...a } = e, i = cr(qe, e.__scopeTooltip);
|
|
8427
|
+
return /* @__PURE__ */ b.jsx(Ne, { present: n || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ b.jsx($i, { side: o, ...a, ref: t }) : /* @__PURE__ */ b.jsx(Np, { side: o, ...a, ref: t }) });
|
|
8415
8428
|
}
|
|
8416
|
-
),
|
|
8417
|
-
const r = cr(qe, e.__scopeTooltip), n =
|
|
8429
|
+
), Np = f.forwardRef((e, t) => {
|
|
8430
|
+
const r = cr(qe, e.__scopeTooltip), n = Vi(qe, e.__scopeTooltip), o = f.useRef(null), a = ee(t, o), [i, s] = f.useState(null), { trigger: u, onClose: l } = r, p = o.current, { onPointerInTransitChange: c } = n, d = f.useCallback(() => {
|
|
8418
8431
|
s(null), c(!1);
|
|
8419
8432
|
}, [c]), m = f.useCallback(
|
|
8420
8433
|
(y, g) => {
|
|
8421
|
-
const v = y.currentTarget, w = { x: y.clientX, y: y.clientY }, x =
|
|
8434
|
+
const v = y.currentTarget, w = { x: y.clientX, y: y.clientY }, x = Lp(w, v.getBoundingClientRect()), E = Ip(w, x), _ = Fp(g.getBoundingClientRect()), C = zp([...E, ..._]);
|
|
8422
8435
|
s(C), c(!0);
|
|
8423
8436
|
},
|
|
8424
8437
|
[c]
|
|
@@ -8433,13 +8446,13 @@ var Cp = "TooltipPortal", [ym, Op] = lr(Cp, {
|
|
|
8433
8446
|
}, [u, p, m, d]), f.useEffect(() => {
|
|
8434
8447
|
if (i) {
|
|
8435
8448
|
const y = (g) => {
|
|
8436
|
-
const v = g.target, w = { x: g.clientX, y: g.clientY }, x = u?.contains(v) || p?.contains(v), E = !
|
|
8449
|
+
const v = g.target, w = { x: g.clientX, y: g.clientY }, x = u?.contains(v) || p?.contains(v), E = !Vp(w, i);
|
|
8437
8450
|
x ? d() : E && (d(), l());
|
|
8438
8451
|
};
|
|
8439
8452
|
return document.addEventListener("pointermove", y), () => document.removeEventListener("pointermove", y);
|
|
8440
8453
|
}
|
|
8441
|
-
}, [u, p, i, l, d]), /* @__PURE__ */ b.jsx(
|
|
8442
|
-
}), [
|
|
8454
|
+
}, [u, p, i, l, d]), /* @__PURE__ */ b.jsx($i, { ...e, ref: a });
|
|
8455
|
+
}), [Dp, Ap] = lr(zi, { isInside: !1 }), Pp = /* @__PURE__ */ Gs("TooltipContent"), $i = f.forwardRef(
|
|
8443
8456
|
(e, t) => {
|
|
8444
8457
|
const {
|
|
8445
8458
|
__scopeTooltip: r,
|
|
@@ -8449,7 +8462,7 @@ var Cp = "TooltipPortal", [ym, Op] = lr(Cp, {
|
|
|
8449
8462
|
onPointerDownOutside: i,
|
|
8450
8463
|
...s
|
|
8451
8464
|
} = e, u = cr(qe, r), l = Sn(r), { onClose: p } = u;
|
|
8452
|
-
return f.useEffect(() => (document.addEventListener(
|
|
8465
|
+
return f.useEffect(() => (document.addEventListener(To, p), () => document.removeEventListener(To, p)), [p]), f.useEffect(() => {
|
|
8453
8466
|
if (u.trigger) {
|
|
8454
8467
|
const c = (d) => {
|
|
8455
8468
|
d.target?.contains(u.trigger) && p();
|
|
@@ -8466,7 +8479,7 @@ var Cp = "TooltipPortal", [ym, Op] = lr(Cp, {
|
|
|
8466
8479
|
onFocusOutside: (c) => c.preventDefault(),
|
|
8467
8480
|
onDismiss: p,
|
|
8468
8481
|
children: /* @__PURE__ */ b.jsxs(
|
|
8469
|
-
|
|
8482
|
+
Oa,
|
|
8470
8483
|
{
|
|
8471
8484
|
"data-state": u.stateAttribute,
|
|
8472
8485
|
...l,
|
|
@@ -8481,8 +8494,8 @@ var Cp = "TooltipPortal", [ym, Op] = lr(Cp, {
|
|
|
8481
8494
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
8482
8495
|
},
|
|
8483
8496
|
children: [
|
|
8484
|
-
/* @__PURE__ */ b.jsx(
|
|
8485
|
-
/* @__PURE__ */ b.jsx(
|
|
8497
|
+
/* @__PURE__ */ b.jsx(Pp, { children: n }),
|
|
8498
|
+
/* @__PURE__ */ b.jsx(Dp, { scope: r, isInside: !0, children: /* @__PURE__ */ b.jsx(Rp, { id: u.contentId, role: "tooltip", children: o || n }) })
|
|
8486
8499
|
]
|
|
8487
8500
|
}
|
|
8488
8501
|
)
|
|
@@ -8490,18 +8503,18 @@ var Cp = "TooltipPortal", [ym, Op] = lr(Cp, {
|
|
|
8490
8503
|
);
|
|
8491
8504
|
}
|
|
8492
8505
|
);
|
|
8493
|
-
|
|
8494
|
-
var
|
|
8506
|
+
Tp.displayName = qe;
|
|
8507
|
+
var Wi = "TooltipArrow", Mp = f.forwardRef(
|
|
8495
8508
|
(e, t) => {
|
|
8496
8509
|
const { __scopeTooltip: r, ...n } = e, o = Sn(r);
|
|
8497
|
-
return
|
|
8498
|
-
|
|
8510
|
+
return Ap(
|
|
8511
|
+
Wi,
|
|
8499
8512
|
r
|
|
8500
|
-
).isInside ? null : /* @__PURE__ */ b.jsx(
|
|
8513
|
+
).isInside ? null : /* @__PURE__ */ b.jsx(ja, { ...o, ...n, ref: t });
|
|
8501
8514
|
}
|
|
8502
8515
|
);
|
|
8503
|
-
|
|
8504
|
-
function
|
|
8516
|
+
Mp.displayName = Wi;
|
|
8517
|
+
function Lp(e, t) {
|
|
8505
8518
|
const r = Math.abs(t.top - e.y), n = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
8506
8519
|
switch (Math.min(r, n, o, a)) {
|
|
8507
8520
|
case a:
|
|
@@ -8516,7 +8529,7 @@ function Mp(e, t) {
|
|
|
8516
8529
|
throw new Error("unreachable");
|
|
8517
8530
|
}
|
|
8518
8531
|
}
|
|
8519
|
-
function
|
|
8532
|
+
function Ip(e, t, r = 5) {
|
|
8520
8533
|
const n = [];
|
|
8521
8534
|
switch (t) {
|
|
8522
8535
|
case "top":
|
|
@@ -8546,7 +8559,7 @@ function Lp(e, t, r = 5) {
|
|
|
8546
8559
|
}
|
|
8547
8560
|
return n;
|
|
8548
8561
|
}
|
|
8549
|
-
function
|
|
8562
|
+
function Fp(e) {
|
|
8550
8563
|
const { top: t, right: r, bottom: n, left: o } = e;
|
|
8551
8564
|
return [
|
|
8552
8565
|
{ x: o, y: t },
|
|
@@ -8555,7 +8568,7 @@ function Ip(e) {
|
|
|
8555
8568
|
{ x: o, y: n }
|
|
8556
8569
|
];
|
|
8557
8570
|
}
|
|
8558
|
-
function
|
|
8571
|
+
function Vp(e, t) {
|
|
8559
8572
|
const { x: r, y: n } = e;
|
|
8560
8573
|
let o = !1;
|
|
8561
8574
|
for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
|
|
@@ -8564,11 +8577,11 @@ function Fp(e, t) {
|
|
|
8564
8577
|
}
|
|
8565
8578
|
return o;
|
|
8566
8579
|
}
|
|
8567
|
-
function
|
|
8580
|
+
function zp(e) {
|
|
8568
8581
|
const t = e.slice();
|
|
8569
|
-
return t.sort((r, n) => r.x < n.x ? -1 : r.x > n.x ? 1 : r.y < n.y ? -1 : r.y > n.y ? 1 : 0),
|
|
8582
|
+
return t.sort((r, n) => r.x < n.x ? -1 : r.x > n.x ? 1 : r.y < n.y ? -1 : r.y > n.y ? 1 : 0), $p(t);
|
|
8570
8583
|
}
|
|
8571
|
-
function
|
|
8584
|
+
function $p(e) {
|
|
8572
8585
|
if (e.length <= 1) return e.slice();
|
|
8573
8586
|
const t = [];
|
|
8574
8587
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -8594,18 +8607,18 @@ function zp(e) {
|
|
|
8594
8607
|
return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
|
|
8595
8608
|
}
|
|
8596
8609
|
f.createContext(null);
|
|
8597
|
-
const
|
|
8610
|
+
const Wp = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Up = (e) => e.replace(
|
|
8598
8611
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
8599
8612
|
(t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
|
|
8600
|
-
),
|
|
8601
|
-
const t =
|
|
8613
|
+
), No = (e) => {
|
|
8614
|
+
const t = Up(e);
|
|
8602
8615
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
8603
|
-
},
|
|
8616
|
+
}, Ui = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), Bp = (e) => {
|
|
8604
8617
|
for (const t in e)
|
|
8605
8618
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
8606
8619
|
return !0;
|
|
8607
8620
|
};
|
|
8608
|
-
var
|
|
8621
|
+
var Gp = {
|
|
8609
8622
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8610
8623
|
width: 24,
|
|
8611
8624
|
height: 24,
|
|
@@ -8616,7 +8629,7 @@ var Bp = {
|
|
|
8616
8629
|
strokeLinecap: "round",
|
|
8617
8630
|
strokeLinejoin: "round"
|
|
8618
8631
|
};
|
|
8619
|
-
const
|
|
8632
|
+
const Hp = qt(
|
|
8620
8633
|
({
|
|
8621
8634
|
color: e = "currentColor",
|
|
8622
8635
|
size: t = 24,
|
|
@@ -8630,13 +8643,13 @@ const Gp = qt(
|
|
|
8630
8643
|
"svg",
|
|
8631
8644
|
{
|
|
8632
8645
|
ref: u,
|
|
8633
|
-
...
|
|
8646
|
+
...Gp,
|
|
8634
8647
|
width: t,
|
|
8635
8648
|
height: t,
|
|
8636
8649
|
stroke: e,
|
|
8637
8650
|
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
8638
|
-
className:
|
|
8639
|
-
...!a && !
|
|
8651
|
+
className: Ui("lucide", o),
|
|
8652
|
+
...!a && !Bp(s) && { "aria-hidden": "true" },
|
|
8640
8653
|
...s
|
|
8641
8654
|
},
|
|
8642
8655
|
[
|
|
@@ -8647,20 +8660,20 @@ const Gp = qt(
|
|
|
8647
8660
|
);
|
|
8648
8661
|
const Cn = (e, t) => {
|
|
8649
8662
|
const r = qt(
|
|
8650
|
-
({ className: n, ...o }, a) => Ke(
|
|
8663
|
+
({ className: n, ...o }, a) => Ke(Hp, {
|
|
8651
8664
|
ref: a,
|
|
8652
8665
|
iconNode: t,
|
|
8653
|
-
className:
|
|
8654
|
-
`lucide-${
|
|
8666
|
+
className: Ui(
|
|
8667
|
+
`lucide-${Wp(No(e))}`,
|
|
8655
8668
|
`lucide-${e}`,
|
|
8656
8669
|
n
|
|
8657
8670
|
),
|
|
8658
8671
|
...o
|
|
8659
8672
|
})
|
|
8660
8673
|
);
|
|
8661
|
-
return r.displayName =
|
|
8674
|
+
return r.displayName = No(e), r;
|
|
8662
8675
|
};
|
|
8663
|
-
const
|
|
8676
|
+
const Kp = [
|
|
8664
8677
|
[
|
|
8665
8678
|
"path",
|
|
8666
8679
|
{
|
|
@@ -8677,8 +8690,8 @@ const Hp = [
|
|
|
8677
8690
|
}
|
|
8678
8691
|
],
|
|
8679
8692
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
8680
|
-
],
|
|
8681
|
-
const
|
|
8693
|
+
], Bi = Cn("eye-off", Kp);
|
|
8694
|
+
const Yp = [
|
|
8682
8695
|
[
|
|
8683
8696
|
"path",
|
|
8684
8697
|
{
|
|
@@ -8687,32 +8700,31 @@ const Kp = [
|
|
|
8687
8700
|
}
|
|
8688
8701
|
],
|
|
8689
8702
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
8690
|
-
],
|
|
8691
|
-
const
|
|
8692
|
-
function
|
|
8703
|
+
], Gi = Cn("eye", Yp);
|
|
8704
|
+
const Xp = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Hi = Cn("loader-circle", Xp);
|
|
8705
|
+
function bm(e) {
|
|
8693
8706
|
const [t, r] = $r(!1);
|
|
8694
|
-
return /* @__PURE__ */ O.
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
/* @__PURE__ */ O.
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
/* @__PURE__ */ O.
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
render: ({ field: n }) => /* @__PURE__ */ O.jsx(gt, { children: /* @__PURE__ */ O.jsx(ht, { children: /* @__PURE__ */ O.jsx(
|
|
8707
|
+
return /* @__PURE__ */ O.jsx("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ O.jsxs(
|
|
8708
|
+
Hr,
|
|
8709
|
+
{
|
|
8710
|
+
className: ce("transition-opacity", {
|
|
8711
|
+
"opacity-50": e.form.formState.isSubmitting
|
|
8712
|
+
}),
|
|
8713
|
+
children: [
|
|
8714
|
+
/* @__PURE__ */ O.jsxs(Kr, { children: [
|
|
8715
|
+
/* @__PURE__ */ O.jsx(Yr, { className: "text-2xl", children: e.loginFormTitle }),
|
|
8716
|
+
/* @__PURE__ */ O.jsx(Xr, { children: e.loginFormDescription })
|
|
8717
|
+
] }),
|
|
8718
|
+
/* @__PURE__ */ O.jsx(qr, { children: /* @__PURE__ */ O.jsx(xn, { ...e.form, children: /* @__PURE__ */ O.jsx("form", { onSubmit: e.form.handleSubmit(e.submit), children: /* @__PURE__ */ O.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
8719
|
+
/* @__PURE__ */ O.jsxs("div", { className: "grid gap-2", children: [
|
|
8720
|
+
/* @__PURE__ */ O.jsx(pt, { htmlFor: "email", children: e.emailLabel }),
|
|
8721
|
+
/* @__PURE__ */ O.jsx(
|
|
8722
|
+
mt,
|
|
8723
|
+
{
|
|
8724
|
+
control: e.form.control,
|
|
8725
|
+
name: "email",
|
|
8726
|
+
render: ({ field: n }) => /* @__PURE__ */ O.jsxs(gt, { children: [
|
|
8727
|
+
/* @__PURE__ */ O.jsx(ht, { children: /* @__PURE__ */ O.jsx(
|
|
8716
8728
|
yt,
|
|
8717
8729
|
{
|
|
8718
8730
|
disabled: e.form.formState.isSubmitting,
|
|
@@ -8721,23 +8733,26 @@ function vm(e) {
|
|
|
8721
8733
|
required: !0,
|
|
8722
8734
|
...n
|
|
8723
8735
|
}
|
|
8724
|
-
) })
|
|
8725
|
-
|
|
8726
|
-
|
|
8736
|
+
) }),
|
|
8737
|
+
/* @__PURE__ */ O.jsx(Co, {})
|
|
8738
|
+
] })
|
|
8739
|
+
}
|
|
8740
|
+
)
|
|
8741
|
+
] }),
|
|
8742
|
+
/* @__PURE__ */ O.jsxs("div", { className: "grid gap-2", children: [
|
|
8743
|
+
/* @__PURE__ */ O.jsxs("div", { className: "flex items-center", children: [
|
|
8744
|
+
/* @__PURE__ */ O.jsx(pt, { htmlFor: "password", children: e.passwordLabel }),
|
|
8745
|
+
e.resetPasswordLinkComponent ? e.resetPasswordLinkComponent() : null
|
|
8727
8746
|
] }),
|
|
8728
|
-
/* @__PURE__ */ O.
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
{
|
|
8736
|
-
control: e.form.control,
|
|
8737
|
-
name: "password",
|
|
8738
|
-
render: ({ field: n }) => /* @__PURE__ */ O.jsx(gt, { children: /* @__PURE__ */ O.jsx(ht, { className: "relative", children: /* @__PURE__ */ O.jsxs("div", { className: "relative", children: [
|
|
8747
|
+
/* @__PURE__ */ O.jsx(
|
|
8748
|
+
mt,
|
|
8749
|
+
{
|
|
8750
|
+
control: e.form.control,
|
|
8751
|
+
name: "password",
|
|
8752
|
+
render: ({ field: n }) => /* @__PURE__ */ O.jsxs(gt, { children: [
|
|
8753
|
+
/* @__PURE__ */ O.jsx(ht, { className: "relative", children: /* @__PURE__ */ O.jsxs("div", { className: "relative", children: [
|
|
8739
8754
|
t ? /* @__PURE__ */ O.jsx(
|
|
8740
|
-
|
|
8755
|
+
Bi,
|
|
8741
8756
|
{
|
|
8742
8757
|
className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",
|
|
8743
8758
|
onClick: () => {
|
|
@@ -8745,7 +8760,7 @@ function vm(e) {
|
|
|
8745
8760
|
}
|
|
8746
8761
|
}
|
|
8747
8762
|
) : /* @__PURE__ */ O.jsx(
|
|
8748
|
-
|
|
8763
|
+
Gi,
|
|
8749
8764
|
{
|
|
8750
8765
|
className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",
|
|
8751
8766
|
onClick: () => {
|
|
@@ -8756,42 +8771,43 @@ function vm(e) {
|
|
|
8756
8771
|
/* @__PURE__ */ O.jsx(
|
|
8757
8772
|
yt,
|
|
8758
8773
|
{
|
|
8759
|
-
type: t ? "text" : "password",
|
|
8760
8774
|
placeholder: "********",
|
|
8761
8775
|
disabled: e.form.formState.isSubmitting,
|
|
8762
8776
|
...n,
|
|
8763
|
-
className: "pr-10"
|
|
8777
|
+
className: "pr-10",
|
|
8778
|
+
"aria-invalid": !!e.form.formState.errors?.password
|
|
8764
8779
|
}
|
|
8765
8780
|
)
|
|
8766
|
-
] }) })
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
] }),
|
|
8770
|
-
/* @__PURE__ */ O.jsxs(
|
|
8771
|
-
Gr,
|
|
8772
|
-
{
|
|
8773
|
-
type: "submit",
|
|
8774
|
-
className: "w-full cursor-pointer",
|
|
8775
|
-
disabled: e.form.formState.isSubmitting,
|
|
8776
|
-
children: [
|
|
8777
|
-
e.submitButtonLabel,
|
|
8778
|
-
e.form.formState.isSubmitting && /* @__PURE__ */ O.jsx(Bi, { className: "animate-spin" })
|
|
8779
|
-
]
|
|
8781
|
+
] }) }),
|
|
8782
|
+
/* @__PURE__ */ O.jsx(Co, {})
|
|
8783
|
+
] })
|
|
8780
8784
|
}
|
|
8781
|
-
)
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8785
|
+
)
|
|
8786
|
+
] }),
|
|
8787
|
+
/* @__PURE__ */ O.jsxs(
|
|
8788
|
+
Gr,
|
|
8789
|
+
{
|
|
8790
|
+
type: "submit",
|
|
8791
|
+
className: "w-full cursor-pointer",
|
|
8792
|
+
disabled: e.form.formState.isSubmitting,
|
|
8793
|
+
children: [
|
|
8794
|
+
e.submitButtonLabel,
|
|
8795
|
+
e.form.formState.isSubmitting && /* @__PURE__ */ O.jsx(Hi, { className: "animate-spin" })
|
|
8796
|
+
]
|
|
8797
|
+
}
|
|
8798
|
+
),
|
|
8799
|
+
e.signUpLinkComponent ? /* @__PURE__ */ O.jsx(vn, { className: "text-center", children: e.signUpLinkComponent() }) : null
|
|
8800
|
+
] }) }) }) })
|
|
8801
|
+
]
|
|
8802
|
+
}
|
|
8803
|
+
) });
|
|
8788
8804
|
}
|
|
8789
|
-
function
|
|
8805
|
+
function wm(e) {
|
|
8790
8806
|
const [t, r] = $r(!1);
|
|
8791
8807
|
return /* @__PURE__ */ O.jsx("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ O.jsxs(
|
|
8792
8808
|
Hr,
|
|
8793
8809
|
{
|
|
8794
|
-
className:
|
|
8810
|
+
className: ce({
|
|
8795
8811
|
"opacity-50": e.form.formState.isSubmitting
|
|
8796
8812
|
}),
|
|
8797
8813
|
children: [
|
|
@@ -8832,7 +8848,7 @@ function bm(e) {
|
|
|
8832
8848
|
name: "password",
|
|
8833
8849
|
render: ({ field: n }) => /* @__PURE__ */ O.jsx(gt, { children: /* @__PURE__ */ O.jsx(ht, { className: "relative", children: /* @__PURE__ */ O.jsxs("div", { className: "relative", children: [
|
|
8834
8850
|
t ? /* @__PURE__ */ O.jsx(
|
|
8835
|
-
|
|
8851
|
+
Bi,
|
|
8836
8852
|
{
|
|
8837
8853
|
className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",
|
|
8838
8854
|
onClick: () => {
|
|
@@ -8840,7 +8856,7 @@ function bm(e) {
|
|
|
8840
8856
|
}
|
|
8841
8857
|
}
|
|
8842
8858
|
) : /* @__PURE__ */ O.jsx(
|
|
8843
|
-
|
|
8859
|
+
Gi,
|
|
8844
8860
|
{
|
|
8845
8861
|
className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",
|
|
8846
8862
|
onClick: () => {
|
|
@@ -8870,7 +8886,7 @@ function bm(e) {
|
|
|
8870
8886
|
disabled: e.form.formState.isSubmitting,
|
|
8871
8887
|
children: [
|
|
8872
8888
|
e.submitButtonLabel,
|
|
8873
|
-
e.form.formState.isSubmitting && /* @__PURE__ */ O.jsx(
|
|
8889
|
+
e.form.formState.isSubmitting && /* @__PURE__ */ O.jsx(Hi, { className: "animate-spin" })
|
|
8874
8890
|
]
|
|
8875
8891
|
}
|
|
8876
8892
|
),
|
|
@@ -8880,7 +8896,7 @@ function bm(e) {
|
|
|
8880
8896
|
}
|
|
8881
8897
|
) });
|
|
8882
8898
|
}
|
|
8883
|
-
function
|
|
8899
|
+
function xm(e) {
|
|
8884
8900
|
return /* @__PURE__ */ O.jsx("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ O.jsxs(Hr, { children: [
|
|
8885
8901
|
/* @__PURE__ */ O.jsxs(Kr, { children: [
|
|
8886
8902
|
/* @__PURE__ */ O.jsx(Yr, { className: "text-2xl", children: e.activateAccountTitle }),
|
|
@@ -8915,8 +8931,8 @@ const He = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), Xt
|
|
|
8915
8931
|
current: []
|
|
8916
8932
|
};
|
|
8917
8933
|
let Sr = !1;
|
|
8918
|
-
const Pt = /* @__PURE__ */ new Set(),
|
|
8919
|
-
function
|
|
8934
|
+
const Pt = /* @__PURE__ */ new Set(), Do = /* @__PURE__ */ new Map();
|
|
8935
|
+
function Ki(e) {
|
|
8920
8936
|
const t = Array.from(e).sort((r, n) => r instanceof Pe && r.options.deps.includes(n) ? 1 : n instanceof Pe && n.options.deps.includes(r) ? -1 : 0);
|
|
8921
8937
|
for (const r of t) {
|
|
8922
8938
|
if (Xt.current.includes(r))
|
|
@@ -8926,11 +8942,11 @@ function Gi(e) {
|
|
|
8926
8942
|
if (n)
|
|
8927
8943
|
for (const o of n) {
|
|
8928
8944
|
const a = He.get(o);
|
|
8929
|
-
a &&
|
|
8945
|
+
a && Ki(a);
|
|
8930
8946
|
}
|
|
8931
8947
|
}
|
|
8932
8948
|
}
|
|
8933
|
-
function
|
|
8949
|
+
function qp(e) {
|
|
8934
8950
|
e.listeners.forEach(
|
|
8935
8951
|
(t) => t({
|
|
8936
8952
|
prevVal: e.prevState,
|
|
@@ -8938,7 +8954,7 @@ function Xp(e) {
|
|
|
8938
8954
|
})
|
|
8939
8955
|
);
|
|
8940
8956
|
}
|
|
8941
|
-
function
|
|
8957
|
+
function Zp(e) {
|
|
8942
8958
|
e.listeners.forEach(
|
|
8943
8959
|
(t) => t({
|
|
8944
8960
|
prevVal: e.prevState,
|
|
@@ -8946,32 +8962,32 @@ function qp(e) {
|
|
|
8946
8962
|
})
|
|
8947
8963
|
);
|
|
8948
8964
|
}
|
|
8949
|
-
function
|
|
8965
|
+
function Jp(e) {
|
|
8950
8966
|
if (Pt.add(e), !Sr)
|
|
8951
8967
|
try {
|
|
8952
8968
|
for (Sr = !0; Pt.size > 0; ) {
|
|
8953
8969
|
const t = Array.from(Pt);
|
|
8954
8970
|
Pt.clear();
|
|
8955
8971
|
for (const r of t) {
|
|
8956
|
-
const n =
|
|
8957
|
-
r.prevState = n,
|
|
8972
|
+
const n = Do.get(r) ?? r.prevState;
|
|
8973
|
+
r.prevState = n, qp(r);
|
|
8958
8974
|
}
|
|
8959
8975
|
for (const r of t) {
|
|
8960
8976
|
const n = He.get(r);
|
|
8961
|
-
n && (Xt.current.push(r),
|
|
8977
|
+
n && (Xt.current.push(r), Ki(n));
|
|
8962
8978
|
}
|
|
8963
8979
|
for (const r of t) {
|
|
8964
8980
|
const n = He.get(r);
|
|
8965
8981
|
if (n)
|
|
8966
8982
|
for (const o of n)
|
|
8967
|
-
|
|
8983
|
+
Zp(o);
|
|
8968
8984
|
}
|
|
8969
8985
|
}
|
|
8970
8986
|
} finally {
|
|
8971
|
-
Sr = !1, Xt.current = [],
|
|
8987
|
+
Sr = !1, Xt.current = [], Do.clear();
|
|
8972
8988
|
}
|
|
8973
8989
|
}
|
|
8974
|
-
function
|
|
8990
|
+
function Qp(e) {
|
|
8975
8991
|
return typeof e == "function";
|
|
8976
8992
|
}
|
|
8977
8993
|
class zr {
|
|
@@ -8987,7 +9003,7 @@ class zr {
|
|
|
8987
9003
|
}
|
|
8988
9004
|
setState(t) {
|
|
8989
9005
|
var r, n, o;
|
|
8990
|
-
this.prevState = this.state, (r = this.options) != null && r.updateFn ? this.state = this.options.updateFn(this.prevState)(t) :
|
|
9006
|
+
this.prevState = this.state, (r = this.options) != null && r.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : Qp(t) ? this.state = t(this.prevState) : this.state = t, (o = (n = this.options) == null ? void 0 : n.onUpdate) == null || o.call(n), Jp(this);
|
|
8991
9007
|
}
|
|
8992
9008
|
}
|
|
8993
9009
|
class Pe {
|
|
@@ -9061,7 +9077,7 @@ class Pe {
|
|
|
9061
9077
|
}
|
|
9062
9078
|
}
|
|
9063
9079
|
}
|
|
9064
|
-
const Cr = "Authorization",
|
|
9080
|
+
const Cr = "Authorization", Yi = () => ({
|
|
9065
9081
|
user: {
|
|
9066
9082
|
id: null,
|
|
9067
9083
|
email: null,
|
|
@@ -9072,11 +9088,11 @@ const Cr = "Authorization", Hi = () => ({
|
|
|
9072
9088
|
sessionID: null,
|
|
9073
9089
|
isAuthenticated: !1,
|
|
9074
9090
|
isLoaded: !1
|
|
9075
|
-
}), Ae = new zr(
|
|
9091
|
+
}), Ae = new zr(Yi()), _m = new Pe({
|
|
9076
9092
|
fn: () => !!Ae.state.user?.roles.find((e) => e.name === "admin"),
|
|
9077
9093
|
deps: [Ae]
|
|
9078
9094
|
});
|
|
9079
|
-
class
|
|
9095
|
+
class Em {
|
|
9080
9096
|
accountStore;
|
|
9081
9097
|
httpClient;
|
|
9082
9098
|
constructor(t) {
|
|
@@ -9120,7 +9136,7 @@ class _m {
|
|
|
9120
9136
|
this._initUserData(r.data);
|
|
9121
9137
|
}
|
|
9122
9138
|
logout() {
|
|
9123
|
-
Ae.setState(() => ({ ...
|
|
9139
|
+
Ae.setState(() => ({ ...Yi(), isLoaded: !0 })), this._clearAuthData();
|
|
9124
9140
|
}
|
|
9125
9141
|
startResetPassword(t) {
|
|
9126
9142
|
return this.httpClient.post(
|
|
@@ -9155,9 +9171,9 @@ class _m {
|
|
|
9155
9171
|
}
|
|
9156
9172
|
}
|
|
9157
9173
|
export {
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9174
|
+
xm as ActivateAccountForm,
|
|
9175
|
+
Em as Auth,
|
|
9176
|
+
bm as LoginForm,
|
|
9177
|
+
wm as SignUpForm,
|
|
9178
|
+
_m as isAdmin
|
|
9163
9179
|
};
|