@golocalinteractive/golocal-cloud-wrapper 1.0.47 → 1.0.48
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import pe, { useContext as
|
|
3
|
-
import * as
|
|
2
|
+
import pe, { useContext as ir, createContext as $o, useMemo as Vn, useRef as ze, useEffect as cr, useLayoutEffect as Vo, createElement as Yt, useCallback as wn, useDebugValue as Li, forwardRef as Ho, useState as lr } from "react";
|
|
3
|
+
import * as zo from "react-dom";
|
|
4
4
|
import Fi from "react-dom";
|
|
5
5
|
var Nt = { exports: {} }, mt = {};
|
|
6
6
|
/**
|
|
@@ -12,10 +12,10 @@ var Nt = { exports: {} }, mt = {};
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
15
|
+
var Gr;
|
|
16
16
|
function $i() {
|
|
17
|
-
if (
|
|
18
|
-
|
|
17
|
+
if (Gr) return mt;
|
|
18
|
+
Gr = 1;
|
|
19
19
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
20
20
|
function n(r, o, s) {
|
|
21
21
|
var a = null;
|
|
@@ -44,9 +44,9 @@ var ht = {};
|
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
var
|
|
47
|
+
var Ur;
|
|
48
48
|
function Vi() {
|
|
49
|
-
return
|
|
49
|
+
return Ur || (Ur = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
50
|
function e(y) {
|
|
51
51
|
if (y == null) return null;
|
|
52
52
|
if (typeof y == "function")
|
|
@@ -277,9 +277,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
277
277
|
};
|
|
278
278
|
}()), ht;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
280
|
+
var Kr;
|
|
281
281
|
function Hi() {
|
|
282
|
-
return
|
|
282
|
+
return Kr || (Kr = 1, process.env.NODE_ENV === "production" ? Nt.exports = $i() : Nt.exports = Vi()), Nt.exports;
|
|
283
283
|
}
|
|
284
284
|
var u = Hi(), Ot = { exports: {} }, yn = {};
|
|
285
285
|
/**
|
|
@@ -291,10 +291,10 @@ var u = Hi(), Ot = { exports: {} }, yn = {};
|
|
|
291
291
|
* This source code is licensed under the MIT license found in the
|
|
292
292
|
* LICENSE file in the root directory of this source tree.
|
|
293
293
|
*/
|
|
294
|
-
var
|
|
294
|
+
var Yr;
|
|
295
295
|
function zi() {
|
|
296
|
-
if (
|
|
297
|
-
|
|
296
|
+
if (Yr) return yn;
|
|
297
|
+
Yr = 1;
|
|
298
298
|
var e = pe;
|
|
299
299
|
function t(f, m) {
|
|
300
300
|
return f === m && (f !== 0 || 1 / f === 1 / m) || f !== f && m !== m;
|
|
@@ -342,9 +342,9 @@ var Cn = {};
|
|
|
342
342
|
* This source code is licensed under the MIT license found in the
|
|
343
343
|
* LICENSE file in the root directory of this source tree.
|
|
344
344
|
*/
|
|
345
|
-
var
|
|
345
|
+
var qr;
|
|
346
346
|
function Wi() {
|
|
347
|
-
return
|
|
347
|
+
return qr || (qr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
348
348
|
function e(h, b) {
|
|
349
349
|
return h === b && (h !== 0 || 1 / h === 1 / b) || h !== h && b !== b;
|
|
350
350
|
}
|
|
@@ -395,13 +395,13 @@ function Wi() {
|
|
|
395
395
|
Cn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
396
396
|
}()), Cn;
|
|
397
397
|
}
|
|
398
|
-
var
|
|
398
|
+
var Xr;
|
|
399
399
|
function Bi() {
|
|
400
|
-
return
|
|
400
|
+
return Xr || (Xr = 1, process.env.NODE_ENV === "production" ? Ot.exports = zi() : Ot.exports = Wi()), Ot.exports;
|
|
401
401
|
}
|
|
402
402
|
var Gi = Bi();
|
|
403
|
-
const
|
|
404
|
-
var
|
|
403
|
+
const Wo = 0, Bo = 1, Go = 2, Zr = 3;
|
|
404
|
+
var Jr = Object.prototype.hasOwnProperty;
|
|
405
405
|
function Hn(e, t) {
|
|
406
406
|
var n, r;
|
|
407
407
|
if (e === t) return !0;
|
|
@@ -416,7 +416,7 @@ function Hn(e, t) {
|
|
|
416
416
|
if (!n || typeof e == "object") {
|
|
417
417
|
r = 0;
|
|
418
418
|
for (n in e)
|
|
419
|
-
if (
|
|
419
|
+
if (Jr.call(e, n) && ++r && !Jr.call(t, n) || !(n in t) || !Hn(e[n], t[n])) return !1;
|
|
420
420
|
return Object.keys(t).length === r;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
@@ -429,7 +429,7 @@ const Pe = /* @__PURE__ */ new WeakMap(), Be = () => {
|
|
|
429
429
|
), qt = Object, K = (e) => e === le, we = (e) => typeof e == "function", Ie = (e, t) => ({
|
|
430
430
|
...e,
|
|
431
431
|
...t
|
|
432
|
-
}),
|
|
432
|
+
}), Uo = (e) => we(e.then), En = {}, Pt = {}, ur = "undefined", St = typeof window != ur, zn = typeof document != ur, Ui = St && "Deno" in window, Ki = () => St && typeof window.requestAnimationFrame != ur, Ko = (e, t) => {
|
|
433
433
|
const n = Pe.get(e);
|
|
434
434
|
return [
|
|
435
435
|
// Getter
|
|
@@ -474,7 +474,7 @@ const Yi = () => Wn, [Bn, Gn] = St && window.addEventListener ? [
|
|
|
474
474
|
}, Qi = {
|
|
475
475
|
initFocus: Xi,
|
|
476
476
|
initReconnect: Zi
|
|
477
|
-
},
|
|
477
|
+
}, Qr = !pe.useId, bt = !St || Ui, ec = (e) => Ki() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Bt = bt ? cr : Vo, Sn = typeof navigator < "u" && navigator.connection, eo = !bt && Sn && ([
|
|
478
478
|
"slow-2g",
|
|
479
479
|
"2g"
|
|
480
480
|
].includes(Sn.effectiveType) || Sn.saveData), Dt = /* @__PURE__ */ new WeakMap(), Rn = (e, t) => qt.prototype.toString.call(e) === `[object ${t}]`;
|
|
@@ -499,7 +499,7 @@ const Un = (e) => {
|
|
|
499
499
|
} else
|
|
500
500
|
s = n ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
|
501
501
|
return s;
|
|
502
|
-
},
|
|
502
|
+
}, dr = (e) => {
|
|
503
503
|
if (we(e))
|
|
504
504
|
try {
|
|
505
505
|
e = e();
|
|
@@ -514,7 +514,7 @@ const Un = (e) => {
|
|
|
514
514
|
};
|
|
515
515
|
let nc = 0;
|
|
516
516
|
const Kn = () => ++nc;
|
|
517
|
-
async function
|
|
517
|
+
async function Yo(...e) {
|
|
518
518
|
const [t, n, r, o] = e, s = Ie({
|
|
519
519
|
populateCache: !0,
|
|
520
520
|
throwOnError: !0
|
|
@@ -534,11 +534,11 @@ async function Ko(...e) {
|
|
|
534
534
|
}
|
|
535
535
|
return f(n);
|
|
536
536
|
async function f(m) {
|
|
537
|
-
const [h] =
|
|
537
|
+
const [h] = dr(m);
|
|
538
538
|
if (!h) return;
|
|
539
|
-
const [b, g] =
|
|
539
|
+
const [b, g] = Ko(t, h), [x, v, w, E] = Pe.get(t), S = () => {
|
|
540
540
|
const V = x[h];
|
|
541
|
-
return (we(s.revalidate) ? s.revalidate(b().data, m) : s.revalidate !== !1) && (delete w[h], delete E[h], V && V[0]) ? V[0](
|
|
541
|
+
return (we(s.revalidate) ? s.revalidate(b().data, m) : s.revalidate !== !1) && (delete w[h], delete E[h], V && V[0]) ? V[0](Go).then(() => b().data) : b().data;
|
|
542
542
|
};
|
|
543
543
|
if (e.length < 3)
|
|
544
544
|
return S();
|
|
@@ -558,7 +558,7 @@ async function Ko(...e) {
|
|
|
558
558
|
} catch (V) {
|
|
559
559
|
A = V;
|
|
560
560
|
}
|
|
561
|
-
if (R &&
|
|
561
|
+
if (R && Uo(R))
|
|
562
562
|
if (R = await R.catch((V) => {
|
|
563
563
|
A = V;
|
|
564
564
|
}), M !== v[h][0]) {
|
|
@@ -593,12 +593,12 @@ async function Ko(...e) {
|
|
|
593
593
|
return R;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
const
|
|
596
|
+
const to = (e, t) => {
|
|
597
597
|
for (const n in e)
|
|
598
598
|
e[n][0] && e[n][0](t);
|
|
599
|
-
},
|
|
599
|
+
}, qo = (e, t) => {
|
|
600
600
|
if (!Pe.has(e)) {
|
|
601
|
-
const n = Ie(Qi, t), r = /* @__PURE__ */ Object.create(null), o =
|
|
601
|
+
const n = Ie(Qi, t), r = /* @__PURE__ */ Object.create(null), o = Yo.bind(le, e);
|
|
602
602
|
let s = Be;
|
|
603
603
|
const a = /* @__PURE__ */ Object.create(null), i = (d, f) => {
|
|
604
604
|
const m = a[d] || [];
|
|
@@ -619,7 +619,7 @@ const eo = (e, t) => {
|
|
|
619
619
|
c,
|
|
620
620
|
i
|
|
621
621
|
]), !bt)) {
|
|
622
|
-
const d = n.initFocus(setTimeout.bind(le,
|
|
622
|
+
const d = n.initFocus(setTimeout.bind(le, to.bind(le, r, Wo))), f = n.initReconnect(setTimeout.bind(le, to.bind(le, r, Bo)));
|
|
623
623
|
s = () => {
|
|
624
624
|
d && d(), f && f(), Pe.delete(e);
|
|
625
625
|
};
|
|
@@ -639,7 +639,7 @@ const eo = (e, t) => {
|
|
|
639
639
|
}, rc = (e, t, n, r, o) => {
|
|
640
640
|
const s = n.errorRetryCount, a = o.retryCount, i = ~~((Math.random() + 0.5) * (1 << (a < 8 ? a : 8))) * n.errorRetryInterval;
|
|
641
641
|
!K(s) && a > s || setTimeout(r, i, o);
|
|
642
|
-
}, oc = Hn, [
|
|
642
|
+
}, oc = Hn, [fr, sc] = qo(/* @__PURE__ */ new Map()), Xo = Ie(
|
|
643
643
|
{
|
|
644
644
|
// events
|
|
645
645
|
onLoadingSlow: Be,
|
|
@@ -653,37 +653,37 @@ const eo = (e, t) => {
|
|
|
653
653
|
revalidateIfStale: !0,
|
|
654
654
|
shouldRetryOnError: !0,
|
|
655
655
|
// timeouts
|
|
656
|
-
errorRetryInterval:
|
|
656
|
+
errorRetryInterval: eo ? 1e4 : 5e3,
|
|
657
657
|
focusThrottleInterval: 5 * 1e3,
|
|
658
658
|
dedupingInterval: 2 * 1e3,
|
|
659
|
-
loadingTimeout:
|
|
659
|
+
loadingTimeout: eo ? 5e3 : 3e3,
|
|
660
660
|
// providers
|
|
661
661
|
compare: oc,
|
|
662
662
|
isPaused: () => !1,
|
|
663
|
-
cache:
|
|
663
|
+
cache: fr,
|
|
664
664
|
mutate: sc,
|
|
665
665
|
fallback: {}
|
|
666
666
|
},
|
|
667
667
|
// use web preset by default
|
|
668
668
|
Ji
|
|
669
|
-
),
|
|
669
|
+
), Zo = (e, t) => {
|
|
670
670
|
const n = Ie(e, t);
|
|
671
671
|
if (t) {
|
|
672
672
|
const { use: r, fallback: o } = e, { use: s, fallback: a } = t;
|
|
673
673
|
r && s && (n.use = r.concat(s)), o && a && (n.fallback = Ie(o, a));
|
|
674
674
|
}
|
|
675
675
|
return n;
|
|
676
|
-
}, Yn =
|
|
677
|
-
const { value: t } = e, n =
|
|
676
|
+
}, Yn = $o({}), ac = (e) => {
|
|
677
|
+
const { value: t } = e, n = ir(Yn), r = we(t), o = Vn(() => r ? t(n) : t, [
|
|
678
678
|
r,
|
|
679
679
|
n,
|
|
680
680
|
t
|
|
681
|
-
]), s = Vn(() => r ? o :
|
|
681
|
+
]), s = Vn(() => r ? o : Zo(n, o), [
|
|
682
682
|
r,
|
|
683
683
|
n,
|
|
684
684
|
o
|
|
685
685
|
]), a = o && o.provider, i = ze(le);
|
|
686
|
-
a && !i.current && (i.current =
|
|
686
|
+
a && !i.current && (i.current = qo(a(s.cache || fr), o));
|
|
687
687
|
const c = i.current;
|
|
688
688
|
return c && (s.cache = c[0], s.mutate = c[1]), Bt(() => {
|
|
689
689
|
if (c)
|
|
@@ -691,8 +691,8 @@ const eo = (e, t) => {
|
|
|
691
691
|
}, []), Yt(Yn.Provider, Ie(e, {
|
|
692
692
|
value: s
|
|
693
693
|
}));
|
|
694
|
-
}, ic = "$inf$",
|
|
695
|
-
|
|
694
|
+
}, ic = "$inf$", Jo = St && window.__SWR_DEVTOOLS_USE__, cc = Jo ? window.__SWR_DEVTOOLS_USE__ : [], lc = () => {
|
|
695
|
+
Jo && (window.__SWR_DEVTOOLS_REACT__ = pe);
|
|
696
696
|
}, uc = (e) => we(e[1]) ? [
|
|
697
697
|
e[0],
|
|
698
698
|
e[1],
|
|
@@ -701,14 +701,14 @@ const eo = (e, t) => {
|
|
|
701
701
|
e[0],
|
|
702
702
|
null,
|
|
703
703
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
704
|
-
], dc = () => Ie(
|
|
705
|
-
const [a] =
|
|
704
|
+
], dc = () => Ie(Xo, ir(Yn)), fc = (e) => (t, n, r) => e(t, n && ((...s) => {
|
|
705
|
+
const [a] = dr(t), [, , , i] = Pe.get(fr);
|
|
706
706
|
if (a.startsWith(ic))
|
|
707
707
|
return n(...s);
|
|
708
708
|
const c = i[a];
|
|
709
709
|
return K(c) ? n(...s) : (delete i[a], c);
|
|
710
710
|
}), r), pc = cc.concat(fc), mc = (e) => function(...n) {
|
|
711
|
-
const r = dc(), [o, s, a] = uc(n), i =
|
|
711
|
+
const r = dc(), [o, s, a] = uc(n), i = Zo(r, a);
|
|
712
712
|
let c = e;
|
|
713
713
|
const { use: p } = i, d = (p || []).concat(pc);
|
|
714
714
|
for (let f = d.length; f--; )
|
|
@@ -744,7 +744,7 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
744
744
|
}), Mn = {
|
|
745
745
|
dedupe: !0
|
|
746
746
|
}, gc = (e, t, n) => {
|
|
747
|
-
const { cache: r, compare: o, suspense: s, fallbackData: a, revalidateOnMount: i, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: d, refreshWhenOffline: f, keepPreviousData: m } = n, [h, b, g, x] = Pe.get(r), [v, w] =
|
|
747
|
+
const { cache: r, compare: o, suspense: s, fallbackData: a, revalidateOnMount: i, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: d, refreshWhenOffline: f, keepPreviousData: m } = n, [h, b, g, x] = Pe.get(r), [v, w] = dr(e), E = ze(!1), S = ze(!1), R = ze(v), A = ze(t), M = ze(n), C = () => M.current, D = () => C().isVisible() && C().isOnline(), [I, B, W, V] = Ko(r, v), H = ze({}).current, Y = K(a) ? K(n.fallback) ? le : n.fallback[v] : a, L = (X, Z) => {
|
|
748
748
|
for (const ie in H) {
|
|
749
749
|
const te = ie;
|
|
750
750
|
if (te === "data") {
|
|
@@ -783,31 +783,31 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
783
783
|
r,
|
|
784
784
|
v
|
|
785
785
|
]
|
|
786
|
-
), G[0], G[1]), T = !E.current, y = h[v] && h[v].length > 0, k = _.data, j = K(k) ? Y &&
|
|
786
|
+
), G[0], G[1]), T = !E.current, y = h[v] && h[v].length > 0, k = _.data, j = K(k) ? Y && Uo(Y) ? _n(Y) : Y : k, $ = _.error, q = ze(j), ee = m ? K(k) ? K(q.current) ? j : q.current : k : j, ce = y && !K($) ? !1 : T && !K(i) ? i : C().isPaused() ? !1 : s ? K(j) ? !1 : c : K(j) || c, U = !!(v && t && T && ce), J = K(_.isValidating) ? U : _.isValidating, Q = K(_.isLoading) ? U : _.isLoading, oe = wn(
|
|
787
787
|
async (X) => {
|
|
788
788
|
const Z = A.current;
|
|
789
789
|
if (!v || !Z || S.current || C().isPaused())
|
|
790
790
|
return !1;
|
|
791
791
|
let ie, te, me = !0;
|
|
792
|
-
const Ve = X || {}, re = !g[v] || !Ve.dedupe, fe = () =>
|
|
792
|
+
const Ve = X || {}, re = !g[v] || !Ve.dedupe, fe = () => Qr ? !S.current && v === R.current && E.current : v === R.current, ke = {
|
|
793
793
|
isValidating: !1,
|
|
794
794
|
isLoading: !1
|
|
795
|
-
}, Hr = () => {
|
|
796
|
-
B(ke);
|
|
797
795
|
}, zr = () => {
|
|
796
|
+
B(ke);
|
|
797
|
+
}, Wr = () => {
|
|
798
798
|
const ve = g[v];
|
|
799
799
|
ve && ve[1] === te && delete g[v];
|
|
800
|
-
},
|
|
800
|
+
}, Br = {
|
|
801
801
|
isValidating: !0
|
|
802
802
|
};
|
|
803
|
-
K(I().data) && (
|
|
803
|
+
K(I().data) && (Br.isLoading = !0);
|
|
804
804
|
try {
|
|
805
|
-
if (re && (B(
|
|
805
|
+
if (re && (B(Br), n.loadingTimeout && K(I().data) && setTimeout(() => {
|
|
806
806
|
me && fe() && C().onLoadingSlow(v, n);
|
|
807
807
|
}, n.loadingTimeout), g[v] = [
|
|
808
808
|
Z(w),
|
|
809
809
|
Kn()
|
|
810
|
-
]), [ie, te] = g[v], ie = await ie, re && setTimeout(
|
|
810
|
+
]), [ie, te] = g[v], ie = await ie, re && setTimeout(Wr, n.dedupingInterval), !g[v] || g[v][1] !== te)
|
|
811
811
|
return re && fe() && C().onDiscarded(v), !1;
|
|
812
812
|
ke.error = le;
|
|
813
813
|
const ve = b[v];
|
|
@@ -815,21 +815,21 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
815
815
|
(te <= ve[0] || // case 2
|
|
816
816
|
te <= ve[1] || // case 3
|
|
817
817
|
ve[1] === 0))
|
|
818
|
-
return
|
|
818
|
+
return zr(), re && fe() && C().onDiscarded(v), !1;
|
|
819
819
|
const Ne = I().data;
|
|
820
820
|
ke.data = o(Ne, ie) ? Ne : ie, re && fe() && C().onSuccess(ie, v, n);
|
|
821
821
|
} catch (ve) {
|
|
822
|
-
|
|
822
|
+
Wr();
|
|
823
823
|
const Ne = C(), { shouldRetryOnError: bn } = Ne;
|
|
824
|
-
Ne.isPaused() || (ke.error = ve, re && fe() && (Ne.onError(ve, v, Ne), (bn === !0 || we(bn) && bn(ve)) && (!C().revalidateOnFocus || !C().revalidateOnReconnect || D()) && Ne.onErrorRetry(ve, v, Ne, (
|
|
824
|
+
Ne.isPaused() || (ke.error = ve, re && fe() && (Ne.onError(ve, v, Ne), (bn === !0 || we(bn) && bn(ve)) && (!C().revalidateOnFocus || !C().revalidateOnReconnect || D()) && Ne.onErrorRetry(ve, v, Ne, (ji) => {
|
|
825
825
|
const xn = h[v];
|
|
826
|
-
xn && xn[0] && xn[0](
|
|
826
|
+
xn && xn[0] && xn[0](Zr, ji);
|
|
827
827
|
}, {
|
|
828
828
|
retryCount: (Ve.retryCount || 0) + 1,
|
|
829
829
|
dedupe: !0
|
|
830
830
|
})));
|
|
831
831
|
}
|
|
832
|
-
return me = !1,
|
|
832
|
+
return me = !1, zr(), !0;
|
|
833
833
|
},
|
|
834
834
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
|
835
835
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
|
@@ -848,7 +848,7 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
848
848
|
]
|
|
849
849
|
), xe = wn(
|
|
850
850
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
851
|
-
(...X) =>
|
|
851
|
+
(...X) => Yo(r, R.current, ...X),
|
|
852
852
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
853
853
|
[]
|
|
854
854
|
);
|
|
@@ -860,15 +860,15 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
860
860
|
let Z = 0;
|
|
861
861
|
C().revalidateOnFocus && (Z = Date.now() + C().focusThrottleInterval);
|
|
862
862
|
const te = hc(v, h, (me, Ve = {}) => {
|
|
863
|
-
if (me ==
|
|
863
|
+
if (me == Wo) {
|
|
864
864
|
const re = Date.now();
|
|
865
865
|
C().revalidateOnFocus && re > Z && D() && (Z = re + C().focusThrottleInterval, X());
|
|
866
|
-
} else if (me ==
|
|
866
|
+
} else if (me == Bo)
|
|
867
867
|
C().revalidateOnReconnect && D() && X();
|
|
868
868
|
else {
|
|
869
|
-
if (me ==
|
|
869
|
+
if (me == Go)
|
|
870
870
|
return oe();
|
|
871
|
-
if (me ==
|
|
871
|
+
if (me == Zr)
|
|
872
872
|
return oe(Ve);
|
|
873
873
|
}
|
|
874
874
|
});
|
|
@@ -897,7 +897,7 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
897
897
|
f,
|
|
898
898
|
v
|
|
899
899
|
]), Li(ee), s && K(j) && v) {
|
|
900
|
-
if (!
|
|
900
|
+
if (!Qr && bt)
|
|
901
901
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
902
902
|
A.current = t, M.current = n, S.current = !1;
|
|
903
903
|
const X = x[v];
|
|
@@ -927,7 +927,7 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
929
|
}, vc = qt.defineProperty(ac, "defaultValue", {
|
|
930
|
-
value:
|
|
930
|
+
value: Xo
|
|
931
931
|
}), bc = mc(gc);
|
|
932
932
|
function xc(e) {
|
|
933
933
|
return e && !e.startsWith("/") ? `/${e}` : e;
|
|
@@ -968,14 +968,14 @@ function Ec() {
|
|
|
968
968
|
invalidate: () => r()
|
|
969
969
|
};
|
|
970
970
|
}
|
|
971
|
-
var
|
|
971
|
+
var no;
|
|
972
972
|
(function(e) {
|
|
973
973
|
e.MISSING_SESSION = "missing_session", e.MISSING_REFRESH_TOKEN = "missing_refresh_token", e.FAILED_TO_REFRESH_TOKEN = "failed_to_refresh_token";
|
|
974
|
-
})(
|
|
975
|
-
var
|
|
974
|
+
})(no || (no = {}));
|
|
975
|
+
var ro;
|
|
976
976
|
(function(e) {
|
|
977
977
|
e.MISSING_SESSION = "missing_session", e.MISSING_REFRESH_TOKEN = "missing_refresh_token", e.FAILED_TO_EXCHANGE = "failed_to_exchange_refresh_token";
|
|
978
|
-
})(
|
|
978
|
+
})(ro || (ro = {}));
|
|
979
979
|
function Sc({ user: e, children: t }) {
|
|
980
980
|
return pe.createElement(vc, { value: {
|
|
981
981
|
fallback: {
|
|
@@ -992,10 +992,10 @@ function Sc({ user: e, children: t }) {
|
|
|
992
992
|
const Rc = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), _c = (e) => e.replace(
|
|
993
993
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
994
994
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
995
|
-
),
|
|
995
|
+
), oo = (e) => {
|
|
996
996
|
const t = _c(e);
|
|
997
997
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
998
|
-
},
|
|
998
|
+
}, Qo = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Mc = (e) => {
|
|
999
999
|
for (const t in e)
|
|
1000
1000
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
1001
1001
|
return !0;
|
|
@@ -1023,7 +1023,7 @@ var Ac = {
|
|
|
1023
1023
|
* This source code is licensed under the ISC license.
|
|
1024
1024
|
* See the LICENSE file in the root directory of this source tree.
|
|
1025
1025
|
*/
|
|
1026
|
-
const Tc =
|
|
1026
|
+
const Tc = Ho(
|
|
1027
1027
|
({
|
|
1028
1028
|
color: e = "currentColor",
|
|
1029
1029
|
size: t = 24,
|
|
@@ -1042,7 +1042,7 @@ const Tc = Vo(
|
|
|
1042
1042
|
height: t,
|
|
1043
1043
|
stroke: e,
|
|
1044
1044
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
1045
|
-
className:
|
|
1045
|
+
className: Qo("lucide", o),
|
|
1046
1046
|
...!s && !Mc(i) && { "aria-hidden": "true" },
|
|
1047
1047
|
...i
|
|
1048
1048
|
},
|
|
@@ -1059,19 +1059,19 @@ const Tc = Vo(
|
|
|
1059
1059
|
* See the LICENSE file in the root directory of this source tree.
|
|
1060
1060
|
*/
|
|
1061
1061
|
const ue = (e, t) => {
|
|
1062
|
-
const n =
|
|
1062
|
+
const n = Ho(
|
|
1063
1063
|
({ className: r, ...o }, s) => Yt(Tc, {
|
|
1064
1064
|
ref: s,
|
|
1065
1065
|
iconNode: t,
|
|
1066
|
-
className:
|
|
1067
|
-
`lucide-${Rc(
|
|
1066
|
+
className: Qo(
|
|
1067
|
+
`lucide-${Rc(oo(e))}`,
|
|
1068
1068
|
`lucide-${e}`,
|
|
1069
1069
|
r
|
|
1070
1070
|
),
|
|
1071
1071
|
...o
|
|
1072
1072
|
})
|
|
1073
1073
|
);
|
|
1074
|
-
return n.displayName =
|
|
1074
|
+
return n.displayName = oo(e), n;
|
|
1075
1075
|
};
|
|
1076
1076
|
/**
|
|
1077
1077
|
* @license lucide-react v0.522.0 - ISC
|
|
@@ -1146,7 +1146,7 @@ const Ic = [
|
|
|
1146
1146
|
const Lc = [
|
|
1147
1147
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
1148
1148
|
["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
|
|
1149
|
-
],
|
|
1149
|
+
], so = ue("chart-line", Lc);
|
|
1150
1150
|
/**
|
|
1151
1151
|
* @license lucide-react v0.522.0 - ISC
|
|
1152
1152
|
*
|
|
@@ -1183,7 +1183,7 @@ const zc = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Wc = ue("chevron-do
|
|
|
1183
1183
|
* This source code is licensed under the ISC license.
|
|
1184
1184
|
* See the LICENSE file in the root directory of this source tree.
|
|
1185
1185
|
*/
|
|
1186
|
-
const Bc = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
1186
|
+
const Bc = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], es = ue("chevron-right", Bc);
|
|
1187
1187
|
/**
|
|
1188
1188
|
* @license lucide-react v0.522.0 - ISC
|
|
1189
1189
|
*
|
|
@@ -1217,7 +1217,7 @@ const qc = [
|
|
|
1217
1217
|
key: "1d0kgt"
|
|
1218
1218
|
}
|
|
1219
1219
|
]
|
|
1220
|
-
],
|
|
1220
|
+
], ts = ue("house", qc);
|
|
1221
1221
|
/**
|
|
1222
1222
|
* @license lucide-react v0.522.0 - ISC
|
|
1223
1223
|
*
|
|
@@ -1248,7 +1248,7 @@ const Jc = [
|
|
|
1248
1248
|
const el = [
|
|
1249
1249
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
1250
1250
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
1251
|
-
],
|
|
1251
|
+
], ao = ue("user", el);
|
|
1252
1252
|
/**
|
|
1253
1253
|
* @license lucide-react v0.522.0 - ISC
|
|
1254
1254
|
*
|
|
@@ -1259,7 +1259,7 @@ const tl = [
|
|
|
1259
1259
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
1260
1260
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
1261
1261
|
], nl = ue("x", tl);
|
|
1262
|
-
function
|
|
1262
|
+
function io(e, t) {
|
|
1263
1263
|
if (typeof e == "function")
|
|
1264
1264
|
return e(t);
|
|
1265
1265
|
e != null && (e.current = t);
|
|
@@ -1268,14 +1268,14 @@ function rn(...e) {
|
|
|
1268
1268
|
return (t) => {
|
|
1269
1269
|
let n = !1;
|
|
1270
1270
|
const r = e.map((o) => {
|
|
1271
|
-
const s =
|
|
1271
|
+
const s = io(o, t);
|
|
1272
1272
|
return !n && typeof s == "function" && (n = !0), s;
|
|
1273
1273
|
});
|
|
1274
1274
|
if (n)
|
|
1275
1275
|
return () => {
|
|
1276
1276
|
for (let o = 0; o < r.length; o++) {
|
|
1277
1277
|
const s = r[o];
|
|
1278
|
-
typeof s == "function" ? s() :
|
|
1278
|
+
typeof s == "function" ? s() : io(e[o], null);
|
|
1279
1279
|
}
|
|
1280
1280
|
};
|
|
1281
1281
|
};
|
|
@@ -1308,14 +1308,14 @@ function rl(e) {
|
|
|
1308
1308
|
});
|
|
1309
1309
|
return t.displayName = `${e}.SlotClone`, t;
|
|
1310
1310
|
}
|
|
1311
|
-
var
|
|
1311
|
+
var ns = Symbol("radix.slottable");
|
|
1312
1312
|
// @__NO_SIDE_EFFECTS__
|
|
1313
1313
|
function ol(e) {
|
|
1314
1314
|
const t = ({ children: n }) => /* @__PURE__ */ u.jsx(u.Fragment, { children: n });
|
|
1315
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
1315
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = ns, t;
|
|
1316
1316
|
}
|
|
1317
1317
|
function sl(e) {
|
|
1318
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
1318
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ns;
|
|
1319
1319
|
}
|
|
1320
1320
|
function al(e, t) {
|
|
1321
1321
|
const n = { ...t };
|
|
@@ -1333,26 +1333,26 @@ function il(e) {
|
|
|
1333
1333
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1334
1334
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function rs(e) {
|
|
1337
1337
|
var t, n, r = "";
|
|
1338
1338
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1339
1339
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1340
1340
|
var o = e.length;
|
|
1341
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
1341
|
+
for (t = 0; t < o; t++) e[t] && (n = rs(e[t])) && (r && (r += " "), r += n);
|
|
1342
1342
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1343
1343
|
return r;
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1346
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
1345
|
+
function os() {
|
|
1346
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = rs(e)) && (r && (r += " "), r += t);
|
|
1347
1347
|
return r;
|
|
1348
1348
|
}
|
|
1349
|
-
const
|
|
1349
|
+
const co = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, lo = os, pr = (e, t) => (n) => {
|
|
1350
1350
|
var r;
|
|
1351
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
1351
|
+
if ((t == null ? void 0 : t.variants) == null) return lo(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
1352
1352
|
const { variants: o, defaultVariants: s } = t, a = Object.keys(o).map((p) => {
|
|
1353
1353
|
const d = n == null ? void 0 : n[p], f = s == null ? void 0 : s[p];
|
|
1354
1354
|
if (d === null) return null;
|
|
1355
|
-
const m =
|
|
1355
|
+
const m = co(d) || co(f);
|
|
1356
1356
|
return o[p][m];
|
|
1357
1357
|
}), i = n && Object.entries(n).reduce((p, d) => {
|
|
1358
1358
|
let [f, m] = d;
|
|
@@ -1374,38 +1374,38 @@ const io = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, co = rs, f
|
|
|
1374
1374
|
m
|
|
1375
1375
|
] : p;
|
|
1376
1376
|
}, []);
|
|
1377
|
-
return
|
|
1378
|
-
},
|
|
1377
|
+
return lo(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
1378
|
+
}, mr = "-", cl = (e) => {
|
|
1379
1379
|
const t = ul(e), {
|
|
1380
1380
|
conflictingClassGroups: n,
|
|
1381
1381
|
conflictingClassGroupModifiers: r
|
|
1382
1382
|
} = e;
|
|
1383
1383
|
return {
|
|
1384
1384
|
getClassGroupId: (a) => {
|
|
1385
|
-
const i = a.split(
|
|
1386
|
-
return i[0] === "" && i.length !== 1 && i.shift(),
|
|
1385
|
+
const i = a.split(mr);
|
|
1386
|
+
return i[0] === "" && i.length !== 1 && i.shift(), ss(i, t) || ll(a);
|
|
1387
1387
|
},
|
|
1388
1388
|
getConflictingClassGroupIds: (a, i) => {
|
|
1389
1389
|
const c = n[a] || [];
|
|
1390
1390
|
return i && r[a] ? [...c, ...r[a]] : c;
|
|
1391
1391
|
}
|
|
1392
1392
|
};
|
|
1393
|
-
},
|
|
1393
|
+
}, ss = (e, t) => {
|
|
1394
1394
|
var a;
|
|
1395
1395
|
if (e.length === 0)
|
|
1396
1396
|
return t.classGroupId;
|
|
1397
|
-
const n = e[0], r = t.nextPart.get(n), o = r ?
|
|
1397
|
+
const n = e[0], r = t.nextPart.get(n), o = r ? ss(e.slice(1), r) : void 0;
|
|
1398
1398
|
if (o)
|
|
1399
1399
|
return o;
|
|
1400
1400
|
if (t.validators.length === 0)
|
|
1401
1401
|
return;
|
|
1402
|
-
const s = e.join(
|
|
1402
|
+
const s = e.join(mr);
|
|
1403
1403
|
return (a = t.validators.find(({
|
|
1404
1404
|
validator: i
|
|
1405
1405
|
}) => i(s))) == null ? void 0 : a.classGroupId;
|
|
1406
|
-
},
|
|
1407
|
-
if (
|
|
1408
|
-
const t =
|
|
1406
|
+
}, uo = /^\[(.+)\]$/, ll = (e) => {
|
|
1407
|
+
if (uo.test(e)) {
|
|
1408
|
+
const t = uo.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
1409
1409
|
if (n)
|
|
1410
1410
|
return "arbitrary.." + n;
|
|
1411
1411
|
}
|
|
@@ -1423,7 +1423,7 @@ const io = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, co = rs, f
|
|
|
1423
1423
|
}, qn = (e, t, n, r) => {
|
|
1424
1424
|
e.forEach((o) => {
|
|
1425
1425
|
if (typeof o == "string") {
|
|
1426
|
-
const s = o === "" ? t :
|
|
1426
|
+
const s = o === "" ? t : fo(t, o);
|
|
1427
1427
|
s.classGroupId = n;
|
|
1428
1428
|
return;
|
|
1429
1429
|
}
|
|
@@ -1439,12 +1439,12 @@ const io = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, co = rs, f
|
|
|
1439
1439
|
return;
|
|
1440
1440
|
}
|
|
1441
1441
|
Object.entries(o).forEach(([s, a]) => {
|
|
1442
|
-
qn(a,
|
|
1442
|
+
qn(a, fo(t, s), n, r);
|
|
1443
1443
|
});
|
|
1444
1444
|
});
|
|
1445
|
-
},
|
|
1445
|
+
}, fo = (e, t) => {
|
|
1446
1446
|
let n = e;
|
|
1447
|
-
return t.split(
|
|
1447
|
+
return t.split(mr).forEach((r) => {
|
|
1448
1448
|
n.nextPart.has(r) || n.nextPart.set(r, {
|
|
1449
1449
|
nextPart: /* @__PURE__ */ new Map(),
|
|
1450
1450
|
validators: []
|
|
@@ -1586,15 +1586,15 @@ const io = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, co = rs, f
|
|
|
1586
1586
|
function wl() {
|
|
1587
1587
|
let e = 0, t, n, r = "";
|
|
1588
1588
|
for (; e < arguments.length; )
|
|
1589
|
-
(t = arguments[e++]) && (n =
|
|
1589
|
+
(t = arguments[e++]) && (n = as(t)) && (r && (r += " "), r += n);
|
|
1590
1590
|
return r;
|
|
1591
1591
|
}
|
|
1592
|
-
const
|
|
1592
|
+
const as = (e) => {
|
|
1593
1593
|
if (typeof e == "string")
|
|
1594
1594
|
return e;
|
|
1595
1595
|
let t, n = "";
|
|
1596
1596
|
for (let r = 0; r < e.length; r++)
|
|
1597
|
-
e[r] && (t =
|
|
1597
|
+
e[r] && (t = as(e[r])) && (n && (n += " "), n += t);
|
|
1598
1598
|
return n;
|
|
1599
1599
|
};
|
|
1600
1600
|
function yl(e, ...t) {
|
|
@@ -1617,18 +1617,18 @@ function yl(e, ...t) {
|
|
|
1617
1617
|
const se = (e) => {
|
|
1618
1618
|
const t = (n) => n[e] || [];
|
|
1619
1619
|
return t.isThemeGetter = !0, t;
|
|
1620
|
-
},
|
|
1620
|
+
}, is = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, cs = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cl = /^\d+\/\d+$/, El = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Sl = /\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$/, Rl = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _l = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ml = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, et = (e) => Cl.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), He = (e) => !!e && Number.isInteger(Number(e)), An = (e) => e.endsWith("%") && z(e.slice(0, -1)), Oe = (e) => El.test(e), Al = () => !0, Tl = (e) => (
|
|
1621
1621
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1622
1622
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1623
1623
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1624
1624
|
Sl.test(e) && !Rl.test(e)
|
|
1625
|
-
),
|
|
1626
|
-
const r =
|
|
1625
|
+
), ls = () => !1, kl = (e) => _l.test(e), Nl = (e) => Ml.test(e), Ol = (e) => !N(e) && !O(e), Pl = (e) => ut(e, fs, ls), N = (e) => is.test(e), qe = (e) => ut(e, ps, Tl), Tn = (e) => ut(e, Fl, z), po = (e) => ut(e, us, ls), Dl = (e) => ut(e, ds, Nl), jt = (e) => ut(e, ms, kl), O = (e) => cs.test(e), gt = (e) => dt(e, ps), Il = (e) => dt(e, $l), mo = (e) => dt(e, us), jl = (e) => dt(e, fs), Ll = (e) => dt(e, ds), Lt = (e) => dt(e, ms, !0), ut = (e, t, n) => {
|
|
1626
|
+
const r = is.exec(e);
|
|
1627
1627
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
1628
1628
|
}, dt = (e, t, n = !1) => {
|
|
1629
|
-
const r =
|
|
1629
|
+
const r = cs.exec(e);
|
|
1630
1630
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1631
|
-
},
|
|
1631
|
+
}, us = (e) => e === "position" || e === "percentage", ds = (e) => e === "image" || e === "url", fs = (e) => e === "length" || e === "size" || e === "bg-size", ps = (e) => e === "length", Fl = (e) => e === "number", $l = (e) => e === "family-name", ms = (e) => e === "shadow", Vl = () => {
|
|
1632
1632
|
const e = se("color"), t = se("font"), n = se("text"), r = se("font-weight"), o = se("tracking"), s = se("leading"), a = se("breakpoint"), i = se("container"), c = se("spacing"), p = se("radius"), d = se("shadow"), f = se("inset-shadow"), m = se("text-shadow"), h = se("drop-shadow"), b = se("blur"), g = se("perspective"), x = se("aspect"), v = se("ease"), w = se("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
1633
1633
|
"center",
|
|
1634
1634
|
"top",
|
|
@@ -1649,7 +1649,7 @@ const se = (e) => {
|
|
|
1649
1649
|
"left-bottom"
|
|
1650
1650
|
], R = () => [...S(), O, N], A = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", "contain", "none"], C = () => [O, N, c], D = () => [et, "full", "auto", ...C()], I = () => [He, "none", "subgrid", O, N], B = () => ["auto", {
|
|
1651
1651
|
span: ["full", He, O, N]
|
|
1652
|
-
}, He, O, N], W = () => [He, "auto", O, N], V = () => ["auto", "min", "max", "fr", O, N], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...C()], G = () => [et, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], _ = () => [e, O, N], T = () => [...S(),
|
|
1652
|
+
}, He, O, N], W = () => [He, "auto", O, N], V = () => ["auto", "min", "max", "fr", O, N], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...C()], G = () => [et, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], _ = () => [e, O, N], T = () => [...S(), mo, po, {
|
|
1653
1653
|
position: [O, N]
|
|
1654
1654
|
}], y = () => ["no-repeat", {
|
|
1655
1655
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -1663,7 +1663,7 @@ const se = (e) => {
|
|
|
1663
1663
|
p,
|
|
1664
1664
|
O,
|
|
1665
1665
|
N
|
|
1666
|
-
], q = () => ["", z, gt, qe], ee = () => ["solid", "dashed", "dotted", "double"], ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [z, An,
|
|
1666
|
+
], q = () => ["", z, gt, qe], ee = () => ["solid", "dashed", "dotted", "double"], ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [z, An, mo, po], J = () => [
|
|
1667
1667
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1668
1668
|
"",
|
|
1669
1669
|
"none",
|
|
@@ -4100,9 +4100,9 @@ const se = (e) => {
|
|
|
4100
4100
|
};
|
|
4101
4101
|
}, Hl = /* @__PURE__ */ yl(Vl);
|
|
4102
4102
|
function P(...e) {
|
|
4103
|
-
return Hl(
|
|
4103
|
+
return Hl(os(e));
|
|
4104
4104
|
}
|
|
4105
|
-
const zl =
|
|
4105
|
+
const zl = pr(
|
|
4106
4106
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
4107
4107
|
{
|
|
4108
4108
|
variants: {
|
|
@@ -4126,7 +4126,7 @@ const zl = fr(
|
|
|
4126
4126
|
size: "default"
|
|
4127
4127
|
}
|
|
4128
4128
|
}
|
|
4129
|
-
),
|
|
4129
|
+
), hr = l.forwardRef(
|
|
4130
4130
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => {
|
|
4131
4131
|
const a = r ? lt : "button";
|
|
4132
4132
|
return /* @__PURE__ */ u.jsx(
|
|
@@ -4139,8 +4139,8 @@ const zl = fr(
|
|
|
4139
4139
|
);
|
|
4140
4140
|
}
|
|
4141
4141
|
);
|
|
4142
|
-
|
|
4143
|
-
function
|
|
4142
|
+
hr.displayName = "Button";
|
|
4143
|
+
function p0({ className: e, ...t }) {
|
|
4144
4144
|
return /* @__PURE__ */ u.jsx(
|
|
4145
4145
|
"div",
|
|
4146
4146
|
{
|
|
@@ -4153,7 +4153,7 @@ function d0({ className: e, ...t }) {
|
|
|
4153
4153
|
}
|
|
4154
4154
|
);
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4156
|
+
function m0({ className: e, ...t }) {
|
|
4157
4157
|
return /* @__PURE__ */ u.jsx(
|
|
4158
4158
|
"div",
|
|
4159
4159
|
{
|
|
@@ -4166,7 +4166,7 @@ function f0({ className: e, ...t }) {
|
|
|
4166
4166
|
}
|
|
4167
4167
|
);
|
|
4168
4168
|
}
|
|
4169
|
-
function
|
|
4169
|
+
function h0({ className: e, ...t }) {
|
|
4170
4170
|
return /* @__PURE__ */ u.jsx(
|
|
4171
4171
|
"div",
|
|
4172
4172
|
{
|
|
@@ -4176,7 +4176,7 @@ function p0({ className: e, ...t }) {
|
|
|
4176
4176
|
}
|
|
4177
4177
|
);
|
|
4178
4178
|
}
|
|
4179
|
-
function
|
|
4179
|
+
function g0({ className: e, ...t }) {
|
|
4180
4180
|
return /* @__PURE__ */ u.jsx(
|
|
4181
4181
|
"div",
|
|
4182
4182
|
{
|
|
@@ -4186,7 +4186,7 @@ function m0({ className: e, ...t }) {
|
|
|
4186
4186
|
}
|
|
4187
4187
|
);
|
|
4188
4188
|
}
|
|
4189
|
-
function
|
|
4189
|
+
function v0({ className: e, ...t }) {
|
|
4190
4190
|
return /* @__PURE__ */ u.jsx(
|
|
4191
4191
|
"div",
|
|
4192
4192
|
{
|
|
@@ -4199,7 +4199,7 @@ function h0({ className: e, ...t }) {
|
|
|
4199
4199
|
}
|
|
4200
4200
|
);
|
|
4201
4201
|
}
|
|
4202
|
-
function
|
|
4202
|
+
function b0({ className: e, ...t }) {
|
|
4203
4203
|
return /* @__PURE__ */ u.jsx(
|
|
4204
4204
|
"div",
|
|
4205
4205
|
{
|
|
@@ -4209,7 +4209,7 @@ function g0({ className: e, ...t }) {
|
|
|
4209
4209
|
}
|
|
4210
4210
|
);
|
|
4211
4211
|
}
|
|
4212
|
-
function
|
|
4212
|
+
function x0({ className: e, ...t }) {
|
|
4213
4213
|
return /* @__PURE__ */ u.jsx(
|
|
4214
4214
|
"div",
|
|
4215
4215
|
{
|
|
@@ -4220,15 +4220,15 @@ function v0({ className: e, ...t }) {
|
|
|
4220
4220
|
);
|
|
4221
4221
|
}
|
|
4222
4222
|
function Wl() {
|
|
4223
|
-
const [e, t] =
|
|
4224
|
-
return
|
|
4223
|
+
const [e, t] = lr(!1);
|
|
4224
|
+
return cr(() => {
|
|
4225
4225
|
const n = () => {
|
|
4226
4226
|
t(window.innerWidth < 768);
|
|
4227
4227
|
};
|
|
4228
4228
|
return n(), window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
|
4229
4229
|
}, []), e;
|
|
4230
4230
|
}
|
|
4231
|
-
const
|
|
4231
|
+
const hs = l.forwardRef(
|
|
4232
4232
|
({ className: e, type: t, ...n }, r) => /* @__PURE__ */ u.jsx(
|
|
4233
4233
|
"input",
|
|
4234
4234
|
{
|
|
@@ -4242,7 +4242,7 @@ const ms = l.forwardRef(
|
|
|
4242
4242
|
}
|
|
4243
4243
|
)
|
|
4244
4244
|
);
|
|
4245
|
-
|
|
4245
|
+
hs.displayName = "Input";
|
|
4246
4246
|
var Bl = [
|
|
4247
4247
|
"a",
|
|
4248
4248
|
"button",
|
|
@@ -4268,11 +4268,11 @@ var Bl = [
|
|
|
4268
4268
|
});
|
|
4269
4269
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
4270
4270
|
}, {});
|
|
4271
|
-
function
|
|
4272
|
-
e &&
|
|
4271
|
+
function gs(e, t) {
|
|
4272
|
+
e && zo.flushSync(() => e.dispatchEvent(t));
|
|
4273
4273
|
}
|
|
4274
|
-
var Gl = "Separator",
|
|
4275
|
-
const { decorative: n, orientation: r =
|
|
4274
|
+
var Gl = "Separator", ho = "horizontal", Ul = ["horizontal", "vertical"], vs = l.forwardRef((e, t) => {
|
|
4275
|
+
const { decorative: n, orientation: r = ho, ...o } = e, s = Kl(r) ? r : ho, i = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
4276
4276
|
return /* @__PURE__ */ u.jsx(
|
|
4277
4277
|
ne.div,
|
|
4278
4278
|
{
|
|
@@ -4283,14 +4283,14 @@ var Gl = "Separator", mo = "horizontal", Ul = ["horizontal", "vertical"], gs = l
|
|
|
4283
4283
|
}
|
|
4284
4284
|
);
|
|
4285
4285
|
});
|
|
4286
|
-
|
|
4286
|
+
vs.displayName = Gl;
|
|
4287
4287
|
function Kl(e) {
|
|
4288
4288
|
return Ul.includes(e);
|
|
4289
4289
|
}
|
|
4290
|
-
var
|
|
4291
|
-
const
|
|
4290
|
+
var bs = vs;
|
|
4291
|
+
const gr = l.forwardRef(
|
|
4292
4292
|
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ u.jsx(
|
|
4293
|
-
|
|
4293
|
+
bs,
|
|
4294
4294
|
{
|
|
4295
4295
|
ref: o,
|
|
4296
4296
|
decorative: n,
|
|
@@ -4304,7 +4304,7 @@ const hr = l.forwardRef(
|
|
|
4304
4304
|
}
|
|
4305
4305
|
)
|
|
4306
4306
|
);
|
|
4307
|
-
|
|
4307
|
+
gr.displayName = bs.displayName;
|
|
4308
4308
|
function F(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
4309
4309
|
return function(o) {
|
|
4310
4310
|
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
@@ -4451,7 +4451,7 @@ function tu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4451
4451
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
4452
4452
|
}, [n, t]);
|
|
4453
4453
|
}
|
|
4454
|
-
var nu = "DismissableLayer", Jn = "dismissableLayer.update", ru = "dismissableLayer.pointerDownOutside", ou = "dismissableLayer.focusOutside",
|
|
4454
|
+
var nu = "DismissableLayer", Jn = "dismissableLayer.update", ru = "dismissableLayer.pointerDownOutside", ou = "dismissableLayer.focusOutside", go, xs = l.createContext({
|
|
4455
4455
|
layers: /* @__PURE__ */ new Set(),
|
|
4456
4456
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4457
4457
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -4465,7 +4465,7 @@ var nu = "DismissableLayer", Jn = "dismissableLayer.update", ru = "dismissableLa
|
|
|
4465
4465
|
onInteractOutside: a,
|
|
4466
4466
|
onDismiss: i,
|
|
4467
4467
|
...c
|
|
4468
|
-
} = e, p = l.useContext(
|
|
4468
|
+
} = e, p = l.useContext(xs), [d, f] = l.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = l.useState({}), b = ae(t, (M) => f(M)), g = Array.from(p.layers), [x] = [...p.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(x), w = d ? g.indexOf(d) : -1, E = p.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= v, R = iu((M) => {
|
|
4469
4469
|
const C = M.target, D = [...p.branches].some((I) => I.contains(C));
|
|
4470
4470
|
!S || D || (o == null || o(M), a == null || a(M), M.defaultPrevented || i == null || i());
|
|
4471
4471
|
}, m), A = cu((M) => {
|
|
@@ -4476,11 +4476,11 @@ var nu = "DismissableLayer", Jn = "dismissableLayer.update", ru = "dismissableLa
|
|
|
4476
4476
|
w === p.layers.size - 1 && (r == null || r(M), !M.defaultPrevented && i && (M.preventDefault(), i()));
|
|
4477
4477
|
}, m), l.useEffect(() => {
|
|
4478
4478
|
if (d)
|
|
4479
|
-
return n && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
4480
|
-
n && p.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents =
|
|
4479
|
+
return n && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (go = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), p.layersWithOutsidePointerEventsDisabled.add(d)), p.layers.add(d), vo(), () => {
|
|
4480
|
+
n && p.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = go);
|
|
4481
4481
|
};
|
|
4482
4482
|
}, [d, m, n, p]), l.useEffect(() => () => {
|
|
4483
|
-
d && (p.layers.delete(d), p.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
4483
|
+
d && (p.layers.delete(d), p.layersWithOutsidePointerEventsDisabled.delete(d), vo());
|
|
4484
4484
|
}, [d, p]), l.useEffect(() => {
|
|
4485
4485
|
const M = () => h({});
|
|
4486
4486
|
return document.addEventListener(Jn, M), () => document.removeEventListener(Jn, M);
|
|
@@ -4505,7 +4505,7 @@ var nu = "DismissableLayer", Jn = "dismissableLayer.update", ru = "dismissableLa
|
|
|
4505
4505
|
);
|
|
4506
4506
|
on.displayName = nu;
|
|
4507
4507
|
var su = "DismissableLayerBranch", au = l.forwardRef((e, t) => {
|
|
4508
|
-
const n = l.useContext(
|
|
4508
|
+
const n = l.useContext(xs), r = l.useRef(null), o = ae(t, r);
|
|
4509
4509
|
return l.useEffect(() => {
|
|
4510
4510
|
const s = r.current;
|
|
4511
4511
|
if (s)
|
|
@@ -4522,7 +4522,7 @@ function iu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4522
4522
|
const s = (i) => {
|
|
4523
4523
|
if (i.target && !r.current) {
|
|
4524
4524
|
let c = function() {
|
|
4525
|
-
|
|
4525
|
+
ws(
|
|
4526
4526
|
ru,
|
|
4527
4527
|
n,
|
|
4528
4528
|
p,
|
|
@@ -4549,7 +4549,7 @@ function cu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4549
4549
|
const n = Me(e), r = l.useRef(!1);
|
|
4550
4550
|
return l.useEffect(() => {
|
|
4551
4551
|
const o = (s) => {
|
|
4552
|
-
s.target && !r.current &&
|
|
4552
|
+
s.target && !r.current && ws(ou, n, { originalEvent: s }, {
|
|
4553
4553
|
discrete: !1
|
|
4554
4554
|
});
|
|
4555
4555
|
};
|
|
@@ -4559,15 +4559,15 @@ function cu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4559
4559
|
onBlurCapture: () => r.current = !1
|
|
4560
4560
|
};
|
|
4561
4561
|
}
|
|
4562
|
-
function
|
|
4562
|
+
function vo() {
|
|
4563
4563
|
const e = new CustomEvent(Jn);
|
|
4564
4564
|
document.dispatchEvent(e);
|
|
4565
4565
|
}
|
|
4566
|
-
function
|
|
4566
|
+
function ws(e, t, n, { discrete: r }) {
|
|
4567
4567
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
4568
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
4568
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? gs(o, s) : o.dispatchEvent(s);
|
|
4569
4569
|
}
|
|
4570
|
-
var kn = "focusScope.autoFocusOnMount", Nn = "focusScope.autoFocusOnUnmount",
|
|
4570
|
+
var kn = "focusScope.autoFocusOnMount", Nn = "focusScope.autoFocusOnUnmount", bo = { bubbles: !1, cancelable: !0 }, lu = "FocusScope", vr = l.forwardRef((e, t) => {
|
|
4571
4571
|
const {
|
|
4572
4572
|
loop: n = !1,
|
|
4573
4573
|
trapped: r = !1,
|
|
@@ -4606,16 +4606,16 @@ var kn = "focusScope.autoFocusOnMount", Nn = "focusScope.autoFocusOnUnmount", vo
|
|
|
4606
4606
|
}
|
|
4607
4607
|
}, [r, i, h.paused]), l.useEffect(() => {
|
|
4608
4608
|
if (i) {
|
|
4609
|
-
|
|
4609
|
+
wo.add(h);
|
|
4610
4610
|
const g = document.activeElement;
|
|
4611
4611
|
if (!i.contains(g)) {
|
|
4612
|
-
const v = new CustomEvent(kn,
|
|
4613
|
-
i.addEventListener(kn, p), i.dispatchEvent(v), v.defaultPrevented || (uu(hu(
|
|
4612
|
+
const v = new CustomEvent(kn, bo);
|
|
4613
|
+
i.addEventListener(kn, p), i.dispatchEvent(v), v.defaultPrevented || (uu(hu(ys(i)), { select: !0 }), document.activeElement === g && We(i));
|
|
4614
4614
|
}
|
|
4615
4615
|
return () => {
|
|
4616
4616
|
i.removeEventListener(kn, p), setTimeout(() => {
|
|
4617
|
-
const v = new CustomEvent(Nn,
|
|
4618
|
-
i.addEventListener(Nn, d), i.dispatchEvent(v), v.defaultPrevented || We(g ?? document.body, { select: !0 }), i.removeEventListener(Nn, d),
|
|
4617
|
+
const v = new CustomEvent(Nn, bo);
|
|
4618
|
+
i.addEventListener(Nn, d), i.dispatchEvent(v), v.defaultPrevented || We(g ?? document.body, { select: !0 }), i.removeEventListener(Nn, d), wo.remove(h);
|
|
4619
4619
|
}, 0);
|
|
4620
4620
|
};
|
|
4621
4621
|
}
|
|
@@ -4633,17 +4633,17 @@ var kn = "focusScope.autoFocusOnMount", Nn = "focusScope.autoFocusOnUnmount", vo
|
|
|
4633
4633
|
);
|
|
4634
4634
|
return /* @__PURE__ */ u.jsx(ne.div, { tabIndex: -1, ...a, ref: m, onKeyDown: b });
|
|
4635
4635
|
});
|
|
4636
|
-
|
|
4636
|
+
vr.displayName = lu;
|
|
4637
4637
|
function uu(e, { select: t = !1 } = {}) {
|
|
4638
4638
|
const n = document.activeElement;
|
|
4639
4639
|
for (const r of e)
|
|
4640
4640
|
if (We(r, { select: t }), document.activeElement !== n) return;
|
|
4641
4641
|
}
|
|
4642
4642
|
function du(e) {
|
|
4643
|
-
const t =
|
|
4643
|
+
const t = ys(e), n = xo(t, e), r = xo(t.reverse(), e);
|
|
4644
4644
|
return [n, r];
|
|
4645
4645
|
}
|
|
4646
|
-
function
|
|
4646
|
+
function ys(e) {
|
|
4647
4647
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
4648
4648
|
acceptNode: (r) => {
|
|
4649
4649
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -4653,7 +4653,7 @@ function ws(e) {
|
|
|
4653
4653
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
4654
4654
|
return t;
|
|
4655
4655
|
}
|
|
4656
|
-
function
|
|
4656
|
+
function xo(e, t) {
|
|
4657
4657
|
for (const n of e)
|
|
4658
4658
|
if (!fu(n, { upTo: t })) return n;
|
|
4659
4659
|
}
|
|
@@ -4675,35 +4675,35 @@ function We(e, { select: t = !1 } = {}) {
|
|
|
4675
4675
|
e.focus({ preventScroll: !0 }), e !== n && pu(e) && t && e.select();
|
|
4676
4676
|
}
|
|
4677
4677
|
}
|
|
4678
|
-
var
|
|
4678
|
+
var wo = mu();
|
|
4679
4679
|
function mu() {
|
|
4680
4680
|
let e = [];
|
|
4681
4681
|
return {
|
|
4682
4682
|
add(t) {
|
|
4683
4683
|
const n = e[0];
|
|
4684
|
-
t !== n && (n == null || n.pause()), e =
|
|
4684
|
+
t !== n && (n == null || n.pause()), e = yo(e, t), e.unshift(t);
|
|
4685
4685
|
},
|
|
4686
4686
|
remove(t) {
|
|
4687
4687
|
var n;
|
|
4688
|
-
e =
|
|
4688
|
+
e = yo(e, t), (n = e[0]) == null || n.resume();
|
|
4689
4689
|
}
|
|
4690
4690
|
};
|
|
4691
4691
|
}
|
|
4692
|
-
function
|
|
4692
|
+
function yo(e, t) {
|
|
4693
4693
|
const n = [...e], r = n.indexOf(t);
|
|
4694
4694
|
return r !== -1 && n.splice(r, 1), n;
|
|
4695
4695
|
}
|
|
4696
4696
|
function hu(e) {
|
|
4697
4697
|
return e.filter((t) => t.tagName !== "A");
|
|
4698
4698
|
}
|
|
4699
|
-
var gu = "Portal",
|
|
4699
|
+
var gu = "Portal", br = l.forwardRef((e, t) => {
|
|
4700
4700
|
var i;
|
|
4701
4701
|
const { container: n, ...r } = e, [o, s] = l.useState(!1);
|
|
4702
4702
|
Ge(() => s(!0), []);
|
|
4703
4703
|
const a = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
4704
4704
|
return a ? Fi.createPortal(/* @__PURE__ */ u.jsx(ne.div, { ...r, ref: t }), a) : null;
|
|
4705
4705
|
});
|
|
4706
|
-
|
|
4706
|
+
br.displayName = gu;
|
|
4707
4707
|
function vu(e, t) {
|
|
4708
4708
|
return l.useReducer((n, r) => t[n][r] ?? n, e);
|
|
4709
4709
|
}
|
|
@@ -4770,15 +4770,15 @@ function xu(e) {
|
|
|
4770
4770
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
4771
4771
|
}
|
|
4772
4772
|
var On = 0;
|
|
4773
|
-
function
|
|
4773
|
+
function Cs() {
|
|
4774
4774
|
l.useEffect(() => {
|
|
4775
4775
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
4776
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
4776
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Co()), document.body.insertAdjacentElement("beforeend", e[1] ?? Co()), On++, () => {
|
|
4777
4777
|
On === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), On--;
|
|
4778
4778
|
};
|
|
4779
4779
|
}, []);
|
|
4780
4780
|
}
|
|
4781
|
-
function
|
|
4781
|
+
function Co() {
|
|
4782
4782
|
const e = document.createElement("span");
|
|
4783
4783
|
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;
|
|
4784
4784
|
}
|
|
@@ -4791,7 +4791,7 @@ var Se = function() {
|
|
|
4791
4791
|
return t;
|
|
4792
4792
|
}, Se.apply(this, arguments);
|
|
4793
4793
|
};
|
|
4794
|
-
function
|
|
4794
|
+
function Es(e, t) {
|
|
4795
4795
|
var n = {};
|
|
4796
4796
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4797
4797
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -4809,7 +4809,7 @@ function Pn(e, t) {
|
|
|
4809
4809
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4810
4810
|
}
|
|
4811
4811
|
function Eu(e, t) {
|
|
4812
|
-
var n =
|
|
4812
|
+
var n = lr(function() {
|
|
4813
4813
|
return {
|
|
4814
4814
|
// value
|
|
4815
4815
|
value: e,
|
|
@@ -4829,7 +4829,7 @@ function Eu(e, t) {
|
|
|
4829
4829
|
})[0];
|
|
4830
4830
|
return n.callback = t, n.facade;
|
|
4831
4831
|
}
|
|
4832
|
-
var Su = typeof window < "u" ? l.useLayoutEffect : l.useEffect,
|
|
4832
|
+
var Su = typeof window < "u" ? l.useLayoutEffect : l.useEffect, Eo = /* @__PURE__ */ new WeakMap();
|
|
4833
4833
|
function Ru(e, t) {
|
|
4834
4834
|
var n = Eu(null, function(r) {
|
|
4835
4835
|
return e.forEach(function(o) {
|
|
@@ -4837,7 +4837,7 @@ function Ru(e, t) {
|
|
|
4837
4837
|
});
|
|
4838
4838
|
});
|
|
4839
4839
|
return Su(function() {
|
|
4840
|
-
var r =
|
|
4840
|
+
var r = Eo.get(n);
|
|
4841
4841
|
if (r) {
|
|
4842
4842
|
var o = new Set(r), s = new Set(e), a = n.current;
|
|
4843
4843
|
o.forEach(function(i) {
|
|
@@ -4846,7 +4846,7 @@ function Ru(e, t) {
|
|
|
4846
4846
|
o.has(i) || Pn(i, a);
|
|
4847
4847
|
});
|
|
4848
4848
|
}
|
|
4849
|
-
|
|
4849
|
+
Eo.set(n, e);
|
|
4850
4850
|
}, [e]), n;
|
|
4851
4851
|
}
|
|
4852
4852
|
function _u(e) {
|
|
@@ -4912,8 +4912,8 @@ function Au(e) {
|
|
|
4912
4912
|
var t = Mu(null);
|
|
4913
4913
|
return t.options = Se({ async: !0, ssr: !1 }, e), t;
|
|
4914
4914
|
}
|
|
4915
|
-
var
|
|
4916
|
-
var t = e.sideCar, n =
|
|
4915
|
+
var Ss = function(e) {
|
|
4916
|
+
var t = e.sideCar, n = Es(e, ["sideCar"]);
|
|
4917
4917
|
if (!t)
|
|
4918
4918
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
4919
4919
|
var r = t.read();
|
|
@@ -4921,21 +4921,21 @@ var Es = function(e) {
|
|
|
4921
4921
|
throw new Error("Sidecar medium not found");
|
|
4922
4922
|
return l.createElement(r, Se({}, n));
|
|
4923
4923
|
};
|
|
4924
|
-
|
|
4924
|
+
Ss.isSideCarExport = !0;
|
|
4925
4925
|
function Tu(e, t) {
|
|
4926
|
-
return e.useMedium(t),
|
|
4926
|
+
return e.useMedium(t), Ss;
|
|
4927
4927
|
}
|
|
4928
|
-
var
|
|
4928
|
+
var Rs = Au(), Dn = function() {
|
|
4929
4929
|
}, sn = l.forwardRef(function(e, t) {
|
|
4930
4930
|
var n = l.useRef(null), r = l.useState({
|
|
4931
4931
|
onScrollCapture: Dn,
|
|
4932
4932
|
onWheelCapture: Dn,
|
|
4933
4933
|
onTouchMoveCapture: Dn
|
|
4934
|
-
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, p = e.removeScrollBar, d = e.enabled, f = e.shards, m = e.sideCar, h = e.noRelative, b = e.noIsolation, g = e.inert, x = e.allowPinchZoom, v = e.as, w = v === void 0 ? "div" : v, E = e.gapMode, S =
|
|
4934
|
+
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, p = e.removeScrollBar, d = e.enabled, f = e.shards, m = e.sideCar, h = e.noRelative, b = e.noIsolation, g = e.inert, x = e.allowPinchZoom, v = e.as, w = v === void 0 ? "div" : v, E = e.gapMode, S = Es(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, A = Ru([n, t]), M = Se(Se({}, S), o);
|
|
4935
4935
|
return l.createElement(
|
|
4936
4936
|
l.Fragment,
|
|
4937
4937
|
null,
|
|
4938
|
-
d && l.createElement(R, { sideCar:
|
|
4938
|
+
d && l.createElement(R, { sideCar: Rs, removeScrollBar: p, shards: f, noRelative: h, noIsolation: b, inert: g, setCallbacks: s, allowPinchZoom: !!x, lockRef: n, gapMode: E }),
|
|
4939
4939
|
a ? l.cloneElement(l.Children.only(i), Se(Se({}, M), { ref: A })) : l.createElement(w, Se({}, M, { className: c, ref: A }), i)
|
|
4940
4940
|
);
|
|
4941
4941
|
});
|
|
@@ -4986,7 +4986,7 @@ var Du = function() {
|
|
|
4986
4986
|
};
|
|
4987
4987
|
}, [t && n]);
|
|
4988
4988
|
};
|
|
4989
|
-
},
|
|
4989
|
+
}, _s = function() {
|
|
4990
4990
|
var e = Iu(), t = function(n) {
|
|
4991
4991
|
var r = n.styles, o = n.dynamic;
|
|
4992
4992
|
return e(r, o), null;
|
|
@@ -5012,7 +5012,7 @@ var Du = function() {
|
|
|
5012
5012
|
right: t[2],
|
|
5013
5013
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
5014
5014
|
};
|
|
5015
|
-
}, $u =
|
|
5015
|
+
}, $u = _s(), ot = "data-scroll-locked", Vu = function(e, t, n, r) {
|
|
5016
5016
|
var o = e.left, s = e.top, a = e.right, i = e.gap;
|
|
5017
5017
|
return n === void 0 && (n = "margin"), `
|
|
5018
5018
|
.`.concat(yu, ` {
|
|
@@ -5056,13 +5056,13 @@ var Du = function() {
|
|
|
5056
5056
|
`).concat(Cu, ": ").concat(i, `px;
|
|
5057
5057
|
}
|
|
5058
5058
|
`);
|
|
5059
|
-
},
|
|
5059
|
+
}, So = function() {
|
|
5060
5060
|
var e = parseInt(document.body.getAttribute(ot) || "0", 10);
|
|
5061
5061
|
return isFinite(e) ? e : 0;
|
|
5062
5062
|
}, Hu = function() {
|
|
5063
5063
|
l.useEffect(function() {
|
|
5064
|
-
return document.body.setAttribute(ot, (
|
|
5065
|
-
var e =
|
|
5064
|
+
return document.body.setAttribute(ot, (So() + 1).toString()), function() {
|
|
5065
|
+
var e = So() - 1;
|
|
5066
5066
|
e <= 0 ? document.body.removeAttribute(ot) : document.body.setAttribute(ot, e.toString());
|
|
5067
5067
|
};
|
|
5068
5068
|
}, []);
|
|
@@ -5087,7 +5087,7 @@ if (typeof window < "u")
|
|
|
5087
5087
|
}
|
|
5088
5088
|
var tt = Qn ? { passive: !1 } : !1, Wu = function(e) {
|
|
5089
5089
|
return e.tagName === "TEXTAREA";
|
|
5090
|
-
},
|
|
5090
|
+
}, Ms = function(e, t) {
|
|
5091
5091
|
if (!(e instanceof Element))
|
|
5092
5092
|
return !1;
|
|
5093
5093
|
var n = window.getComputedStyle(e);
|
|
@@ -5097,16 +5097,16 @@ var tt = Qn ? { passive: !1 } : !1, Wu = function(e) {
|
|
|
5097
5097
|
!(n.overflowY === n.overflowX && !Wu(e) && n[t] === "visible")
|
|
5098
5098
|
);
|
|
5099
5099
|
}, Bu = function(e) {
|
|
5100
|
-
return
|
|
5100
|
+
return Ms(e, "overflowY");
|
|
5101
5101
|
}, Gu = function(e) {
|
|
5102
|
-
return
|
|
5103
|
-
},
|
|
5102
|
+
return Ms(e, "overflowX");
|
|
5103
|
+
}, Ro = function(e, t) {
|
|
5104
5104
|
var n = t.ownerDocument, r = t;
|
|
5105
5105
|
do {
|
|
5106
5106
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
5107
|
-
var o =
|
|
5107
|
+
var o = As(e, r);
|
|
5108
5108
|
if (o) {
|
|
5109
|
-
var s =
|
|
5109
|
+
var s = Ts(e, r), a = s[1], i = s[2];
|
|
5110
5110
|
if (a > i)
|
|
5111
5111
|
return !0;
|
|
5112
5112
|
}
|
|
@@ -5127,9 +5127,9 @@ var tt = Qn ? { passive: !1 } : !1, Wu = function(e) {
|
|
|
5127
5127
|
n,
|
|
5128
5128
|
r
|
|
5129
5129
|
];
|
|
5130
|
-
}, Ms = function(e, t) {
|
|
5131
|
-
return e === "v" ? Bu(t) : Gu(t);
|
|
5132
5130
|
}, As = function(e, t) {
|
|
5131
|
+
return e === "v" ? Bu(t) : Gu(t);
|
|
5132
|
+
}, Ts = function(e, t) {
|
|
5133
5133
|
return e === "v" ? Uu(t) : Ku(t);
|
|
5134
5134
|
}, Yu = function(e, t) {
|
|
5135
5135
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
@@ -5138,8 +5138,8 @@ var tt = Qn ? { passive: !1 } : !1, Wu = function(e) {
|
|
|
5138
5138
|
do {
|
|
5139
5139
|
if (!i)
|
|
5140
5140
|
break;
|
|
5141
|
-
var h =
|
|
5142
|
-
(b || v) &&
|
|
5141
|
+
var h = Ts(e, i), b = h[0], g = h[1], x = h[2], v = g - x - s * b;
|
|
5142
|
+
(b || v) && As(e, i) && (f += v, m += b);
|
|
5143
5143
|
var w = i.parentNode;
|
|
5144
5144
|
i = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
|
|
5145
5145
|
} while (
|
|
@@ -5150,9 +5150,9 @@ var tt = Qn ? { passive: !1 } : !1, Wu = function(e) {
|
|
|
5150
5150
|
return (d && Math.abs(f) < 1 || !d && Math.abs(m) < 1) && (p = !0), p;
|
|
5151
5151
|
}, Vt = function(e) {
|
|
5152
5152
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
5153
|
-
}, Ro = function(e) {
|
|
5154
|
-
return [e.deltaX, e.deltaY];
|
|
5155
5153
|
}, _o = function(e) {
|
|
5154
|
+
return [e.deltaX, e.deltaY];
|
|
5155
|
+
}, Mo = function(e) {
|
|
5156
5156
|
return e && "current" in e ? e.current : e;
|
|
5157
5157
|
}, Xu = function(e, t) {
|
|
5158
5158
|
return e[0] === t[0] && e[1] === t[1];
|
|
@@ -5163,13 +5163,13 @@ var tt = Qn ? { passive: !1 } : !1, Wu = function(e) {
|
|
|
5163
5163
|
`);
|
|
5164
5164
|
}, Ju = 0, nt = [];
|
|
5165
5165
|
function Qu(e) {
|
|
5166
|
-
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(Ju++)[0], s = l.useState(
|
|
5166
|
+
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(Ju++)[0], s = l.useState(_s)[0], a = l.useRef(e);
|
|
5167
5167
|
l.useEffect(function() {
|
|
5168
5168
|
a.current = e;
|
|
5169
5169
|
}, [e]), l.useEffect(function() {
|
|
5170
5170
|
if (e.inert) {
|
|
5171
5171
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
5172
|
-
var g = wu([e.lockRef.current], (e.shards || []).map(
|
|
5172
|
+
var g = wu([e.lockRef.current], (e.shards || []).map(Mo), !0).filter(Boolean);
|
|
5173
5173
|
return g.forEach(function(x) {
|
|
5174
5174
|
return x.classList.add("allow-interactivity-".concat(o));
|
|
5175
5175
|
}), function() {
|
|
@@ -5185,10 +5185,10 @@ function Qu(e) {
|
|
|
5185
5185
|
var v = Vt(g), w = n.current, E = "deltaX" in g ? g.deltaX : w[0] - v[0], S = "deltaY" in g ? g.deltaY : w[1] - v[1], R, A = g.target, M = Math.abs(E) > Math.abs(S) ? "h" : "v";
|
|
5186
5186
|
if ("touches" in g && M === "h" && A.type === "range")
|
|
5187
5187
|
return !1;
|
|
5188
|
-
var C =
|
|
5188
|
+
var C = Ro(M, A);
|
|
5189
5189
|
if (!C)
|
|
5190
5190
|
return !0;
|
|
5191
|
-
if (C ? R = M : (R = M === "v" ? "h" : "v", C =
|
|
5191
|
+
if (C ? R = M : (R = M === "v" ? "h" : "v", C = Ro(M, A)), !C)
|
|
5192
5192
|
return !1;
|
|
5193
5193
|
if (!r.current && "changedTouches" in g && (E || S) && (r.current = R), !R)
|
|
5194
5194
|
return !0;
|
|
@@ -5197,7 +5197,7 @@ function Qu(e) {
|
|
|
5197
5197
|
}, []), c = l.useCallback(function(g) {
|
|
5198
5198
|
var x = g;
|
|
5199
5199
|
if (!(!nt.length || nt[nt.length - 1] !== s)) {
|
|
5200
|
-
var v = "deltaY" in x ?
|
|
5200
|
+
var v = "deltaY" in x ? _o(x) : Vt(x), w = t.current.filter(function(R) {
|
|
5201
5201
|
return R.name === x.type && (R.target === x.target || x.target === R.shadowParent) && Xu(R.delta, v);
|
|
5202
5202
|
})[0];
|
|
5203
5203
|
if (w && w.should) {
|
|
@@ -5205,7 +5205,7 @@ function Qu(e) {
|
|
|
5205
5205
|
return;
|
|
5206
5206
|
}
|
|
5207
5207
|
if (!w) {
|
|
5208
|
-
var E = (a.current.shards || []).map(
|
|
5208
|
+
var E = (a.current.shards || []).map(Mo).filter(Boolean).filter(function(R) {
|
|
5209
5209
|
return R.contains(x.target);
|
|
5210
5210
|
}), S = E.length > 0 ? i(x, E[0]) : !a.current.noIsolation;
|
|
5211
5211
|
S && x.cancelable && x.preventDefault();
|
|
@@ -5221,7 +5221,7 @@ function Qu(e) {
|
|
|
5221
5221
|
}, []), d = l.useCallback(function(g) {
|
|
5222
5222
|
n.current = Vt(g), r.current = void 0;
|
|
5223
5223
|
}, []), f = l.useCallback(function(g) {
|
|
5224
|
-
p(g.type,
|
|
5224
|
+
p(g.type, _o(g), g.target, i(g, e.lockRef.current));
|
|
5225
5225
|
}, []), m = l.useCallback(function(g) {
|
|
5226
5226
|
p(g.type, Vt(g), g.target, i(g, e.lockRef.current));
|
|
5227
5227
|
}, []);
|
|
@@ -5249,23 +5249,23 @@ function ed(e) {
|
|
|
5249
5249
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
5250
5250
|
return t;
|
|
5251
5251
|
}
|
|
5252
|
-
const td = Tu(
|
|
5253
|
-
var
|
|
5252
|
+
const td = Tu(Rs, Qu);
|
|
5253
|
+
var xr = l.forwardRef(function(e, t) {
|
|
5254
5254
|
return l.createElement(sn, Se({}, e, { ref: t, sideCar: td }));
|
|
5255
5255
|
});
|
|
5256
|
-
|
|
5256
|
+
xr.classNames = sn.classNames;
|
|
5257
5257
|
var nd = function(e) {
|
|
5258
5258
|
if (typeof document > "u")
|
|
5259
5259
|
return null;
|
|
5260
5260
|
var t = Array.isArray(e) ? e[0] : e;
|
|
5261
5261
|
return t.ownerDocument.body;
|
|
5262
|
-
}, rt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), zt = {}, jn = 0,
|
|
5263
|
-
return e && (e.host ||
|
|
5262
|
+
}, rt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), zt = {}, jn = 0, ks = function(e) {
|
|
5263
|
+
return e && (e.host || ks(e.parentNode));
|
|
5264
5264
|
}, rd = function(e, t) {
|
|
5265
5265
|
return t.map(function(n) {
|
|
5266
5266
|
if (e.contains(n))
|
|
5267
5267
|
return n;
|
|
5268
|
-
var r =
|
|
5268
|
+
var r = ks(n);
|
|
5269
5269
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
5270
5270
|
}).filter(function(n) {
|
|
5271
5271
|
return !!n;
|
|
@@ -5296,13 +5296,13 @@ var nd = function(e) {
|
|
|
5296
5296
|
rt.set(f, m), s.set(f, h), m || (Ht.has(f) || f.removeAttribute(r), Ht.delete(f)), h || f.removeAttribute(n);
|
|
5297
5297
|
}), jn--, jn || (rt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), zt = {});
|
|
5298
5298
|
};
|
|
5299
|
-
},
|
|
5299
|
+
}, Ns = function(e, t, n) {
|
|
5300
5300
|
n === void 0 && (n = "data-aria-hidden");
|
|
5301
5301
|
var r = Array.from(Array.isArray(e) ? e : [e]), o = nd(e);
|
|
5302
5302
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), od(r, o, n, "aria-hidden")) : function() {
|
|
5303
5303
|
return null;
|
|
5304
5304
|
};
|
|
5305
|
-
}, an = "Dialog", [
|
|
5305
|
+
}, an = "Dialog", [Os, w0] = Je(an), [sd, Ee] = Os(an), Ps = (e) => {
|
|
5306
5306
|
const {
|
|
5307
5307
|
__scopeDialog: t,
|
|
5308
5308
|
children: n,
|
|
@@ -5333,10 +5333,10 @@ var nd = function(e) {
|
|
|
5333
5333
|
}
|
|
5334
5334
|
);
|
|
5335
5335
|
};
|
|
5336
|
-
|
|
5337
|
-
var
|
|
5336
|
+
Ps.displayName = an;
|
|
5337
|
+
var Ds = "DialogTrigger", Is = l.forwardRef(
|
|
5338
5338
|
(e, t) => {
|
|
5339
|
-
const { __scopeDialog: n, ...r } = e, o = Ee(
|
|
5339
|
+
const { __scopeDialog: n, ...r } = e, o = Ee(Ds, n), s = ae(t, o.triggerRef);
|
|
5340
5340
|
return /* @__PURE__ */ u.jsx(
|
|
5341
5341
|
ne.button,
|
|
5342
5342
|
{
|
|
@@ -5344,7 +5344,7 @@ var Ps = "DialogTrigger", Ds = l.forwardRef(
|
|
|
5344
5344
|
"aria-haspopup": "dialog",
|
|
5345
5345
|
"aria-expanded": o.open,
|
|
5346
5346
|
"aria-controls": o.contentId,
|
|
5347
|
-
"data-state":
|
|
5347
|
+
"data-state": Cr(o.open),
|
|
5348
5348
|
...r,
|
|
5349
5349
|
ref: s,
|
|
5350
5350
|
onClick: F(e.onClick, o.onOpenToggle)
|
|
@@ -5352,31 +5352,31 @@ var Ps = "DialogTrigger", Ds = l.forwardRef(
|
|
|
5352
5352
|
);
|
|
5353
5353
|
}
|
|
5354
5354
|
);
|
|
5355
|
-
|
|
5356
|
-
var
|
|
5355
|
+
Is.displayName = Ds;
|
|
5356
|
+
var wr = "DialogPortal", [ad, js] = Os(wr, {
|
|
5357
5357
|
forceMount: void 0
|
|
5358
|
-
}),
|
|
5359
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Ee(
|
|
5360
|
-
return /* @__PURE__ */ u.jsx(ad, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ u.jsx(Fe, { present: n || s.open, children: /* @__PURE__ */ u.jsx(
|
|
5358
|
+
}), Ls = (e) => {
|
|
5359
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Ee(wr, t);
|
|
5360
|
+
return /* @__PURE__ */ u.jsx(ad, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ u.jsx(Fe, { present: n || s.open, children: /* @__PURE__ */ u.jsx(br, { asChild: !0, container: o, children: a }) })) });
|
|
5361
5361
|
};
|
|
5362
|
-
|
|
5363
|
-
var Xt = "DialogOverlay",
|
|
5362
|
+
Ls.displayName = wr;
|
|
5363
|
+
var Xt = "DialogOverlay", Fs = l.forwardRef(
|
|
5364
5364
|
(e, t) => {
|
|
5365
|
-
const n =
|
|
5365
|
+
const n = js(Xt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Ee(Xt, e.__scopeDialog);
|
|
5366
5366
|
return s.modal ? /* @__PURE__ */ u.jsx(Fe, { present: r || s.open, children: /* @__PURE__ */ u.jsx(cd, { ...o, ref: t }) }) : null;
|
|
5367
5367
|
}
|
|
5368
5368
|
);
|
|
5369
|
-
|
|
5369
|
+
Fs.displayName = Xt;
|
|
5370
5370
|
var id = /* @__PURE__ */ at("DialogOverlay.RemoveScroll"), cd = l.forwardRef(
|
|
5371
5371
|
(e, t) => {
|
|
5372
5372
|
const { __scopeDialog: n, ...r } = e, o = Ee(Xt, n);
|
|
5373
5373
|
return (
|
|
5374
5374
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
5375
5375
|
// ie. when `Overlay` and `Content` are siblings
|
|
5376
|
-
/* @__PURE__ */ u.jsx(
|
|
5376
|
+
/* @__PURE__ */ u.jsx(xr, { as: id, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u.jsx(
|
|
5377
5377
|
ne.div,
|
|
5378
5378
|
{
|
|
5379
|
-
"data-state":
|
|
5379
|
+
"data-state": Cr(o.open),
|
|
5380
5380
|
...r,
|
|
5381
5381
|
ref: t,
|
|
5382
5382
|
style: { pointerEvents: "auto", ...r.style }
|
|
@@ -5384,21 +5384,21 @@ var id = /* @__PURE__ */ at("DialogOverlay.RemoveScroll"), cd = l.forwardRef(
|
|
|
5384
5384
|
) })
|
|
5385
5385
|
);
|
|
5386
5386
|
}
|
|
5387
|
-
), Xe = "DialogContent",
|
|
5387
|
+
), Xe = "DialogContent", $s = l.forwardRef(
|
|
5388
5388
|
(e, t) => {
|
|
5389
|
-
const n =
|
|
5389
|
+
const n = js(Xe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Ee(Xe, e.__scopeDialog);
|
|
5390
5390
|
return /* @__PURE__ */ u.jsx(Fe, { present: r || s.open, children: s.modal ? /* @__PURE__ */ u.jsx(ld, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(ud, { ...o, ref: t }) });
|
|
5391
5391
|
}
|
|
5392
5392
|
);
|
|
5393
|
-
|
|
5393
|
+
$s.displayName = Xe;
|
|
5394
5394
|
var ld = l.forwardRef(
|
|
5395
5395
|
(e, t) => {
|
|
5396
5396
|
const n = Ee(Xe, e.__scopeDialog), r = l.useRef(null), o = ae(t, n.contentRef, r);
|
|
5397
5397
|
return l.useEffect(() => {
|
|
5398
5398
|
const s = r.current;
|
|
5399
|
-
if (s) return
|
|
5399
|
+
if (s) return Ns(s);
|
|
5400
5400
|
}, []), /* @__PURE__ */ u.jsx(
|
|
5401
|
-
|
|
5401
|
+
Vs,
|
|
5402
5402
|
{
|
|
5403
5403
|
...e,
|
|
5404
5404
|
ref: o,
|
|
@@ -5423,7 +5423,7 @@ var ld = l.forwardRef(
|
|
|
5423
5423
|
(e, t) => {
|
|
5424
5424
|
const n = Ee(Xe, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
|
|
5425
5425
|
return /* @__PURE__ */ u.jsx(
|
|
5426
|
-
|
|
5426
|
+
Vs,
|
|
5427
5427
|
{
|
|
5428
5428
|
...e,
|
|
5429
5429
|
ref: t,
|
|
@@ -5442,12 +5442,12 @@ var ld = l.forwardRef(
|
|
|
5442
5442
|
}
|
|
5443
5443
|
);
|
|
5444
5444
|
}
|
|
5445
|
-
),
|
|
5445
|
+
), Vs = l.forwardRef(
|
|
5446
5446
|
(e, t) => {
|
|
5447
5447
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Ee(Xe, n), c = l.useRef(null), p = ae(t, c);
|
|
5448
|
-
return
|
|
5448
|
+
return Cs(), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
5449
5449
|
/* @__PURE__ */ u.jsx(
|
|
5450
|
-
|
|
5450
|
+
vr,
|
|
5451
5451
|
{
|
|
5452
5452
|
asChild: !0,
|
|
5453
5453
|
loop: !0,
|
|
@@ -5461,7 +5461,7 @@ var ld = l.forwardRef(
|
|
|
5461
5461
|
id: i.contentId,
|
|
5462
5462
|
"aria-describedby": i.descriptionId,
|
|
5463
5463
|
"aria-labelledby": i.titleId,
|
|
5464
|
-
"data-state":
|
|
5464
|
+
"data-state": Cr(i.open),
|
|
5465
5465
|
...a,
|
|
5466
5466
|
ref: p,
|
|
5467
5467
|
onDismiss: () => i.onOpenChange(!1)
|
|
@@ -5475,23 +5475,23 @@ var ld = l.forwardRef(
|
|
|
5475
5475
|
] })
|
|
5476
5476
|
] });
|
|
5477
5477
|
}
|
|
5478
|
-
),
|
|
5478
|
+
), yr = "DialogTitle", Hs = l.forwardRef(
|
|
5479
5479
|
(e, t) => {
|
|
5480
|
-
const { __scopeDialog: n, ...r } = e, o = Ee(
|
|
5480
|
+
const { __scopeDialog: n, ...r } = e, o = Ee(yr, n);
|
|
5481
5481
|
return /* @__PURE__ */ u.jsx(ne.h2, { id: o.titleId, ...r, ref: t });
|
|
5482
5482
|
}
|
|
5483
5483
|
);
|
|
5484
|
-
|
|
5485
|
-
var
|
|
5484
|
+
Hs.displayName = yr;
|
|
5485
|
+
var zs = "DialogDescription", Ws = l.forwardRef(
|
|
5486
5486
|
(e, t) => {
|
|
5487
|
-
const { __scopeDialog: n, ...r } = e, o = Ee(
|
|
5487
|
+
const { __scopeDialog: n, ...r } = e, o = Ee(zs, n);
|
|
5488
5488
|
return /* @__PURE__ */ u.jsx(ne.p, { id: o.descriptionId, ...r, ref: t });
|
|
5489
5489
|
}
|
|
5490
5490
|
);
|
|
5491
|
-
|
|
5492
|
-
var
|
|
5491
|
+
Ws.displayName = zs;
|
|
5492
|
+
var Bs = "DialogClose", Gs = l.forwardRef(
|
|
5493
5493
|
(e, t) => {
|
|
5494
|
-
const { __scopeDialog: n, ...r } = e, o = Ee(
|
|
5494
|
+
const { __scopeDialog: n, ...r } = e, o = Ee(Bs, n);
|
|
5495
5495
|
return /* @__PURE__ */ u.jsx(
|
|
5496
5496
|
ne.button,
|
|
5497
5497
|
{
|
|
@@ -5503,16 +5503,16 @@ var Ws = "DialogClose", Bs = l.forwardRef(
|
|
|
5503
5503
|
);
|
|
5504
5504
|
}
|
|
5505
5505
|
);
|
|
5506
|
-
|
|
5507
|
-
function
|
|
5506
|
+
Gs.displayName = Bs;
|
|
5507
|
+
function Cr(e) {
|
|
5508
5508
|
return e ? "open" : "closed";
|
|
5509
5509
|
}
|
|
5510
|
-
var
|
|
5510
|
+
var Us = "DialogTitleWarning", [y0, Ks] = Yl(Us, {
|
|
5511
5511
|
contentName: Xe,
|
|
5512
|
-
titleName:
|
|
5512
|
+
titleName: yr,
|
|
5513
5513
|
docsSlug: "dialog"
|
|
5514
5514
|
}), dd = ({ titleId: e }) => {
|
|
5515
|
-
const t = Us
|
|
5515
|
+
const t = Ks(Us), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
5516
5516
|
|
|
5517
5517
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
5518
5518
|
|
|
@@ -5521,15 +5521,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5521
5521
|
e && (document.getElementById(e) || console.error(n));
|
|
5522
5522
|
}, [n, e]), null;
|
|
5523
5523
|
}, fd = "DialogDescriptionWarning", pd = ({ contentRef: e, descriptionId: t }) => {
|
|
5524
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
5524
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ks(fd).contentName}}.`;
|
|
5525
5525
|
return l.useEffect(() => {
|
|
5526
5526
|
var s;
|
|
5527
5527
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
5528
5528
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
5529
5529
|
}, [r, e, t]), null;
|
|
5530
|
-
}, md =
|
|
5531
|
-
const vd = md,
|
|
5532
|
-
|
|
5530
|
+
}, md = Ps, hd = Is, gd = Ls, Ys = Fs, qs = $s, Xs = Hs, Zs = Ws, Js = Gs;
|
|
5531
|
+
const vd = md, C0 = hd, E0 = Js, bd = gd, Qs = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
5532
|
+
Ys,
|
|
5533
5533
|
{
|
|
5534
5534
|
className: P(
|
|
5535
5535
|
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -5539,8 +5539,8 @@ const vd = md, w0 = hd, y0 = Zs, bd = gd, Js = l.forwardRef(({ className: e, ...
|
|
|
5539
5539
|
ref: n
|
|
5540
5540
|
}
|
|
5541
5541
|
));
|
|
5542
|
-
|
|
5543
|
-
const xd =
|
|
5542
|
+
Qs.displayName = Ys.displayName;
|
|
5543
|
+
const xd = pr(
|
|
5544
5544
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
5545
5545
|
{
|
|
5546
5546
|
variants: {
|
|
@@ -5555,17 +5555,17 @@ const xd = fr(
|
|
|
5555
5555
|
side: "right"
|
|
5556
5556
|
}
|
|
5557
5557
|
}
|
|
5558
|
-
),
|
|
5559
|
-
/* @__PURE__ */ u.jsx(
|
|
5558
|
+
), ea = l.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ u.jsxs(bd, { children: [
|
|
5559
|
+
/* @__PURE__ */ u.jsx(Qs, {}),
|
|
5560
5560
|
/* @__PURE__ */ u.jsxs(
|
|
5561
|
-
|
|
5561
|
+
qs,
|
|
5562
5562
|
{
|
|
5563
5563
|
ref: o,
|
|
5564
5564
|
className: P(xd({ side: e }), t),
|
|
5565
5565
|
...r,
|
|
5566
5566
|
children: [
|
|
5567
5567
|
n,
|
|
5568
|
-
/* @__PURE__ */ u.jsxs(
|
|
5568
|
+
/* @__PURE__ */ u.jsxs(Js, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
5569
5569
|
/* @__PURE__ */ u.jsx(nl, { className: "h-4 w-4" }),
|
|
5570
5570
|
/* @__PURE__ */ u.jsx("span", { className: "sr-only", children: "Close" })
|
|
5571
5571
|
] })
|
|
@@ -5573,8 +5573,8 @@ const xd = fr(
|
|
|
5573
5573
|
}
|
|
5574
5574
|
)
|
|
5575
5575
|
] }));
|
|
5576
|
-
|
|
5577
|
-
const
|
|
5576
|
+
ea.displayName = qs.displayName;
|
|
5577
|
+
const ta = ({
|
|
5578
5578
|
className: e,
|
|
5579
5579
|
...t
|
|
5580
5580
|
}) => /* @__PURE__ */ u.jsx(
|
|
@@ -5587,7 +5587,7 @@ const ea = ({
|
|
|
5587
5587
|
...t
|
|
5588
5588
|
}
|
|
5589
5589
|
);
|
|
5590
|
-
|
|
5590
|
+
ta.displayName = "SheetHeader";
|
|
5591
5591
|
const wd = ({
|
|
5592
5592
|
className: e,
|
|
5593
5593
|
...t
|
|
@@ -5602,25 +5602,25 @@ const wd = ({
|
|
|
5602
5602
|
}
|
|
5603
5603
|
);
|
|
5604
5604
|
wd.displayName = "SheetFooter";
|
|
5605
|
-
const
|
|
5606
|
-
|
|
5605
|
+
const na = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
5606
|
+
Xs,
|
|
5607
5607
|
{
|
|
5608
5608
|
ref: n,
|
|
5609
5609
|
className: P("text-lg font-semibold text-foreground", e),
|
|
5610
5610
|
...t
|
|
5611
5611
|
}
|
|
5612
5612
|
));
|
|
5613
|
-
|
|
5614
|
-
const
|
|
5615
|
-
|
|
5613
|
+
na.displayName = Xs.displayName;
|
|
5614
|
+
const ra = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
5615
|
+
Zs,
|
|
5616
5616
|
{
|
|
5617
5617
|
ref: n,
|
|
5618
5618
|
className: P("text-sm text-muted-foreground", e),
|
|
5619
5619
|
...t
|
|
5620
5620
|
}
|
|
5621
5621
|
));
|
|
5622
|
-
|
|
5623
|
-
function
|
|
5622
|
+
ra.displayName = Zs.displayName;
|
|
5623
|
+
function Ao({
|
|
5624
5624
|
className: e,
|
|
5625
5625
|
...t
|
|
5626
5626
|
}) {
|
|
@@ -5656,21 +5656,21 @@ function Le(e) {
|
|
|
5656
5656
|
function ft(e) {
|
|
5657
5657
|
return e.split("-")[1];
|
|
5658
5658
|
}
|
|
5659
|
-
function
|
|
5659
|
+
function Er(e) {
|
|
5660
5660
|
return e === "x" ? "y" : "x";
|
|
5661
5661
|
}
|
|
5662
|
-
function
|
|
5662
|
+
function Sr(e) {
|
|
5663
5663
|
return e === "y" ? "height" : "width";
|
|
5664
5664
|
}
|
|
5665
5665
|
function Re(e) {
|
|
5666
5666
|
return ["top", "bottom"].includes(Le(e)) ? "y" : "x";
|
|
5667
5667
|
}
|
|
5668
|
-
function
|
|
5669
|
-
return
|
|
5668
|
+
function Rr(e) {
|
|
5669
|
+
return Er(Re(e));
|
|
5670
5670
|
}
|
|
5671
5671
|
function Sd(e, t, n) {
|
|
5672
5672
|
n === void 0 && (n = !1);
|
|
5673
|
-
const r = ft(e), o =
|
|
5673
|
+
const r = ft(e), o = Rr(e), s = Sr(o);
|
|
5674
5674
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
5675
5675
|
return t.reference[s] > t.floating[s] && (a = Jt(a)), [a, Jt(a)];
|
|
5676
5676
|
}
|
|
@@ -5711,7 +5711,7 @@ function Ad(e) {
|
|
|
5711
5711
|
...e
|
|
5712
5712
|
};
|
|
5713
5713
|
}
|
|
5714
|
-
function
|
|
5714
|
+
function oa(e) {
|
|
5715
5715
|
return typeof e != "number" ? Ad(e) : {
|
|
5716
5716
|
top: e,
|
|
5717
5717
|
right: e,
|
|
@@ -5737,12 +5737,12 @@ function Qt(e) {
|
|
|
5737
5737
|
y: n
|
|
5738
5738
|
};
|
|
5739
5739
|
}
|
|
5740
|
-
function
|
|
5740
|
+
function To(e, t, n) {
|
|
5741
5741
|
let {
|
|
5742
5742
|
reference: r,
|
|
5743
5743
|
floating: o
|
|
5744
5744
|
} = e;
|
|
5745
|
-
const s = Re(t), a =
|
|
5745
|
+
const s = Re(t), a = Rr(t), i = Sr(a), c = Le(t), p = s === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, m = r[i] / 2 - o[i] / 2;
|
|
5746
5746
|
let h;
|
|
5747
5747
|
switch (c) {
|
|
5748
5748
|
case "top":
|
|
@@ -5799,7 +5799,7 @@ const Td = async (e, t, n) => {
|
|
|
5799
5799
|
}), {
|
|
5800
5800
|
x: d,
|
|
5801
5801
|
y: f
|
|
5802
|
-
} =
|
|
5802
|
+
} = To(p, r, c), m = r, h = {}, b = 0;
|
|
5803
5803
|
for (let g = 0; g < i.length; g++) {
|
|
5804
5804
|
const {
|
|
5805
5805
|
name: x,
|
|
@@ -5836,7 +5836,7 @@ const Td = async (e, t, n) => {
|
|
|
5836
5836
|
}) : R.rects), {
|
|
5837
5837
|
x: d,
|
|
5838
5838
|
y: f
|
|
5839
|
-
} =
|
|
5839
|
+
} = To(p, m, c)), g = -1);
|
|
5840
5840
|
}
|
|
5841
5841
|
return {
|
|
5842
5842
|
x: d,
|
|
@@ -5862,7 +5862,7 @@ async function xt(e, t) {
|
|
|
5862
5862
|
elementContext: f = "floating",
|
|
5863
5863
|
altBoundary: m = !1,
|
|
5864
5864
|
padding: h = 0
|
|
5865
|
-
} = je(t, e), b =
|
|
5865
|
+
} = je(t, e), b = oa(h), x = i[m ? f === "floating" ? "reference" : "floating" : f], v = Qt(await s.getClippingRect({
|
|
5866
5866
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
5867
5867
|
boundary: p,
|
|
5868
5868
|
rootBoundary: d,
|
|
@@ -5909,10 +5909,10 @@ const kd = (e) => ({
|
|
|
5909
5909
|
} = je(e, t) || {};
|
|
5910
5910
|
if (p == null)
|
|
5911
5911
|
return {};
|
|
5912
|
-
const f =
|
|
5912
|
+
const f = oa(d), m = {
|
|
5913
5913
|
x: n,
|
|
5914
5914
|
y: r
|
|
5915
|
-
}, h =
|
|
5915
|
+
}, h = Rr(o), b = Sr(h), g = await a.getDimensions(p), x = h === "y", v = x ? "top" : "left", w = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", S = s.reference[b] + s.reference[h] - m[h] - s.floating[b], R = m[h] - s.reference[h], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(p));
|
|
5916
5916
|
let M = A ? A[E] : 0;
|
|
5917
5917
|
(!M || !await (a.isElement == null ? void 0 : a.isElement(A))) && (M = i.floating[E] || s.floating[b]);
|
|
5918
5918
|
const C = S / 2 - R / 2, D = M / 2 - g[b] / 2 - 1, I = Ue(f[v], D), B = Ue(f[w], D), W = I, V = M - g[b] - B, H = M / 2 - g[b] / 2 + C, Y = er(W, H, V), L = !c.arrow && ft(o) != null && H !== Y && s.reference[b] / 2 - (H < W ? I : B) - g[b] / 2 < 0, G = L ? H < W ? H - W : H - V : 0;
|
|
@@ -6010,7 +6010,7 @@ const kd = (e) => ({
|
|
|
6010
6010
|
}
|
|
6011
6011
|
};
|
|
6012
6012
|
};
|
|
6013
|
-
function
|
|
6013
|
+
function ko(e, t) {
|
|
6014
6014
|
return {
|
|
6015
6015
|
top: e.top - t.height,
|
|
6016
6016
|
right: e.right - t.width,
|
|
@@ -6018,7 +6018,7 @@ function To(e, t) {
|
|
|
6018
6018
|
left: e.left - t.width
|
|
6019
6019
|
};
|
|
6020
6020
|
}
|
|
6021
|
-
function
|
|
6021
|
+
function No(e) {
|
|
6022
6022
|
return yd.some((t) => e[t] >= 0);
|
|
6023
6023
|
}
|
|
6024
6024
|
const Od = function(e) {
|
|
@@ -6037,11 +6037,11 @@ const Od = function(e) {
|
|
|
6037
6037
|
const s = await xt(t, {
|
|
6038
6038
|
...o,
|
|
6039
6039
|
elementContext: "reference"
|
|
6040
|
-
}), a =
|
|
6040
|
+
}), a = ko(s, n.reference);
|
|
6041
6041
|
return {
|
|
6042
6042
|
data: {
|
|
6043
6043
|
referenceHiddenOffsets: a,
|
|
6044
|
-
referenceHidden:
|
|
6044
|
+
referenceHidden: No(a)
|
|
6045
6045
|
}
|
|
6046
6046
|
};
|
|
6047
6047
|
}
|
|
@@ -6049,11 +6049,11 @@ const Od = function(e) {
|
|
|
6049
6049
|
const s = await xt(t, {
|
|
6050
6050
|
...o,
|
|
6051
6051
|
altBoundary: !0
|
|
6052
|
-
}), a =
|
|
6052
|
+
}), a = ko(s, n.floating);
|
|
6053
6053
|
return {
|
|
6054
6054
|
data: {
|
|
6055
6055
|
escapedOffsets: a,
|
|
6056
|
-
escaped:
|
|
6056
|
+
escaped: No(a)
|
|
6057
6057
|
}
|
|
6058
6058
|
};
|
|
6059
6059
|
}
|
|
@@ -6140,7 +6140,7 @@ const Dd = function(e) {
|
|
|
6140
6140
|
} = je(e, t), p = {
|
|
6141
6141
|
x: n,
|
|
6142
6142
|
y: r
|
|
6143
|
-
}, d = await xt(t, c), f = Re(Le(o)), m =
|
|
6143
|
+
}, d = await xt(t, c), f = Re(Le(o)), m = Er(f);
|
|
6144
6144
|
let h = p[m], b = p[f];
|
|
6145
6145
|
if (s) {
|
|
6146
6146
|
const x = m === "y" ? "top" : "left", v = m === "y" ? "bottom" : "right", w = h + d[x], E = h - d[v];
|
|
@@ -6185,7 +6185,7 @@ const Dd = function(e) {
|
|
|
6185
6185
|
} = je(e, t), d = {
|
|
6186
6186
|
x: n,
|
|
6187
6187
|
y: r
|
|
6188
|
-
}, f = Re(o), m =
|
|
6188
|
+
}, f = Re(o), m = Er(f);
|
|
6189
6189
|
let h = d[m], b = d[f];
|
|
6190
6190
|
const g = je(i, t), x = typeof g == "number" ? {
|
|
6191
6191
|
mainAxis: g,
|
|
@@ -6255,7 +6255,7 @@ function cn() {
|
|
|
6255
6255
|
return typeof window < "u";
|
|
6256
6256
|
}
|
|
6257
6257
|
function pt(e) {
|
|
6258
|
-
return
|
|
6258
|
+
return sa(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
6259
6259
|
}
|
|
6260
6260
|
function ge(e) {
|
|
6261
6261
|
var t;
|
|
@@ -6263,9 +6263,9 @@ function ge(e) {
|
|
|
6263
6263
|
}
|
|
6264
6264
|
function Te(e) {
|
|
6265
6265
|
var t;
|
|
6266
|
-
return (t = (
|
|
6266
|
+
return (t = (sa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6267
6267
|
}
|
|
6268
|
-
function
|
|
6268
|
+
function sa(e) {
|
|
6269
6269
|
return cn() ? e instanceof Node || e instanceof ge(e).Node : !1;
|
|
6270
6270
|
}
|
|
6271
6271
|
function ye(e) {
|
|
@@ -6274,7 +6274,7 @@ function ye(e) {
|
|
|
6274
6274
|
function Ae(e) {
|
|
6275
6275
|
return cn() ? e instanceof HTMLElement || e instanceof ge(e).HTMLElement : !1;
|
|
6276
6276
|
}
|
|
6277
|
-
function
|
|
6277
|
+
function Oo(e) {
|
|
6278
6278
|
return !cn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ge(e).ShadowRoot;
|
|
6279
6279
|
}
|
|
6280
6280
|
function _t(e) {
|
|
@@ -6298,14 +6298,14 @@ function ln(e) {
|
|
|
6298
6298
|
}
|
|
6299
6299
|
});
|
|
6300
6300
|
}
|
|
6301
|
-
function
|
|
6302
|
-
const t =
|
|
6301
|
+
function _r(e) {
|
|
6302
|
+
const t = Mr(), n = ye(e) ? Ce(e) : e;
|
|
6303
6303
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
6304
6304
|
}
|
|
6305
6305
|
function $d(e) {
|
|
6306
6306
|
let t = Ke(e);
|
|
6307
6307
|
for (; Ae(t) && !it(t); ) {
|
|
6308
|
-
if (
|
|
6308
|
+
if (_r(t))
|
|
6309
6309
|
return t;
|
|
6310
6310
|
if (ln(t))
|
|
6311
6311
|
return null;
|
|
@@ -6313,7 +6313,7 @@ function $d(e) {
|
|
|
6313
6313
|
}
|
|
6314
6314
|
return null;
|
|
6315
6315
|
}
|
|
6316
|
-
function
|
|
6316
|
+
function Mr() {
|
|
6317
6317
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
6318
6318
|
}
|
|
6319
6319
|
function it(e) {
|
|
@@ -6338,19 +6338,19 @@ function Ke(e) {
|
|
|
6338
6338
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
6339
6339
|
e.assignedSlot || // DOM Element detected.
|
|
6340
6340
|
e.parentNode || // ShadowRoot detected.
|
|
6341
|
-
|
|
6341
|
+
Oo(e) && e.host || // Fallback.
|
|
6342
6342
|
Te(e)
|
|
6343
6343
|
);
|
|
6344
|
-
return
|
|
6344
|
+
return Oo(t) ? t.host : t;
|
|
6345
6345
|
}
|
|
6346
|
-
function
|
|
6346
|
+
function aa(e) {
|
|
6347
6347
|
const t = Ke(e);
|
|
6348
|
-
return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ae(t) && _t(t) ? t :
|
|
6348
|
+
return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ae(t) && _t(t) ? t : aa(t);
|
|
6349
6349
|
}
|
|
6350
6350
|
function wt(e, t, n) {
|
|
6351
6351
|
var r;
|
|
6352
6352
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6353
|
-
const o =
|
|
6353
|
+
const o = aa(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = ge(o);
|
|
6354
6354
|
if (s) {
|
|
6355
6355
|
const i = nr(a);
|
|
6356
6356
|
return t.concat(a, a.visualViewport || [], _t(o) ? o : [], i && n ? wt(i) : []);
|
|
@@ -6360,7 +6360,7 @@ function wt(e, t, n) {
|
|
|
6360
6360
|
function nr(e) {
|
|
6361
6361
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
6362
6362
|
}
|
|
6363
|
-
function
|
|
6363
|
+
function ia(e) {
|
|
6364
6364
|
const t = Ce(e);
|
|
6365
6365
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
6366
6366
|
const o = Ae(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i = Zt(n) !== s || Zt(r) !== a;
|
|
@@ -6370,18 +6370,18 @@ function aa(e) {
|
|
|
6370
6370
|
$: i
|
|
6371
6371
|
};
|
|
6372
6372
|
}
|
|
6373
|
-
function
|
|
6373
|
+
function Ar(e) {
|
|
6374
6374
|
return ye(e) ? e : e.contextElement;
|
|
6375
6375
|
}
|
|
6376
6376
|
function st(e) {
|
|
6377
|
-
const t =
|
|
6377
|
+
const t = Ar(e);
|
|
6378
6378
|
if (!Ae(t))
|
|
6379
6379
|
return _e(1);
|
|
6380
6380
|
const n = t.getBoundingClientRect(), {
|
|
6381
6381
|
width: r,
|
|
6382
6382
|
height: o,
|
|
6383
6383
|
$: s
|
|
6384
|
-
} =
|
|
6384
|
+
} = ia(t);
|
|
6385
6385
|
let a = (s ? Zt(n.width) : n.width) / r, i = (s ? Zt(n.height) : n.height) / o;
|
|
6386
6386
|
return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
6387
6387
|
x: a,
|
|
@@ -6389,9 +6389,9 @@ function st(e) {
|
|
|
6389
6389
|
};
|
|
6390
6390
|
}
|
|
6391
6391
|
const Vd = /* @__PURE__ */ _e(0);
|
|
6392
|
-
function
|
|
6392
|
+
function ca(e) {
|
|
6393
6393
|
const t = ge(e);
|
|
6394
|
-
return !
|
|
6394
|
+
return !Mr() || !t.visualViewport ? Vd : {
|
|
6395
6395
|
x: t.visualViewport.offsetLeft,
|
|
6396
6396
|
y: t.visualViewport.offsetTop
|
|
6397
6397
|
};
|
|
@@ -6401,10 +6401,10 @@ function Hd(e, t, n) {
|
|
|
6401
6401
|
}
|
|
6402
6402
|
function Ze(e, t, n, r) {
|
|
6403
6403
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
6404
|
-
const o = e.getBoundingClientRect(), s =
|
|
6404
|
+
const o = e.getBoundingClientRect(), s = Ar(e);
|
|
6405
6405
|
let a = _e(1);
|
|
6406
6406
|
t && (r ? ye(r) && (a = st(r)) : a = st(e));
|
|
6407
|
-
const i = Hd(s, n, r) ?
|
|
6407
|
+
const i = Hd(s, n, r) ? ca(s) : _e(0);
|
|
6408
6408
|
let c = (o.left + i.x) / a.x, p = (o.top + i.y) / a.y, d = o.width / a.x, f = o.height / a.y;
|
|
6409
6409
|
if (s) {
|
|
6410
6410
|
const m = ge(s), h = r && ye(r) ? ge(r) : r;
|
|
@@ -6421,15 +6421,15 @@ function Ze(e, t, n, r) {
|
|
|
6421
6421
|
y: p
|
|
6422
6422
|
});
|
|
6423
6423
|
}
|
|
6424
|
-
function
|
|
6424
|
+
function Tr(e, t) {
|
|
6425
6425
|
const n = un(e).scrollLeft;
|
|
6426
6426
|
return t ? t.left + n : Ze(Te(e)).left + n;
|
|
6427
6427
|
}
|
|
6428
|
-
function
|
|
6428
|
+
function la(e, t, n) {
|
|
6429
6429
|
n === void 0 && (n = !1);
|
|
6430
6430
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
6431
6431
|
// RTL <body> scrollbar.
|
|
6432
|
-
|
|
6432
|
+
Tr(e, r)
|
|
6433
6433
|
)), s = r.top + t.scrollTop;
|
|
6434
6434
|
return {
|
|
6435
6435
|
x: o,
|
|
@@ -6455,7 +6455,7 @@ function zd(e) {
|
|
|
6455
6455
|
const h = Ze(r);
|
|
6456
6456
|
p = st(r), d.x = h.x + r.clientLeft, d.y = h.y + r.clientTop;
|
|
6457
6457
|
}
|
|
6458
|
-
const m = a && !f && !s ?
|
|
6458
|
+
const m = a && !f && !s ? la(a, c, !0) : _e(0);
|
|
6459
6459
|
return {
|
|
6460
6460
|
width: n.width * p.x,
|
|
6461
6461
|
height: n.height * p.y,
|
|
@@ -6468,7 +6468,7 @@ function Wd(e) {
|
|
|
6468
6468
|
}
|
|
6469
6469
|
function Bd(e) {
|
|
6470
6470
|
const t = Te(e), n = un(e), r = e.ownerDocument.body, o = he(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = he(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
6471
|
-
let a = -n.scrollLeft +
|
|
6471
|
+
let a = -n.scrollLeft + Tr(e);
|
|
6472
6472
|
const i = -n.scrollTop;
|
|
6473
6473
|
return Ce(r).direction === "rtl" && (a += he(t.clientWidth, r.clientWidth) - o), {
|
|
6474
6474
|
width: o,
|
|
@@ -6482,7 +6482,7 @@ function Gd(e, t) {
|
|
|
6482
6482
|
let s = r.clientWidth, a = r.clientHeight, i = 0, c = 0;
|
|
6483
6483
|
if (o) {
|
|
6484
6484
|
s = o.width, a = o.height;
|
|
6485
|
-
const p =
|
|
6485
|
+
const p = Mr();
|
|
6486
6486
|
(!p || p && t === "fixed") && (i = o.offsetLeft, c = o.offsetTop);
|
|
6487
6487
|
}
|
|
6488
6488
|
return {
|
|
@@ -6501,7 +6501,7 @@ function Ud(e, t) {
|
|
|
6501
6501
|
y: p
|
|
6502
6502
|
};
|
|
6503
6503
|
}
|
|
6504
|
-
function
|
|
6504
|
+
function Po(e, t, n) {
|
|
6505
6505
|
let r;
|
|
6506
6506
|
if (t === "viewport")
|
|
6507
6507
|
r = Gd(e, n);
|
|
@@ -6510,7 +6510,7 @@ function Oo(e, t, n) {
|
|
|
6510
6510
|
else if (ye(t))
|
|
6511
6511
|
r = Ud(t, n);
|
|
6512
6512
|
else {
|
|
6513
|
-
const o =
|
|
6513
|
+
const o = ca(e);
|
|
6514
6514
|
r = {
|
|
6515
6515
|
x: t.x - o.x,
|
|
6516
6516
|
y: t.y - o.y,
|
|
@@ -6520,9 +6520,9 @@ function Oo(e, t, n) {
|
|
|
6520
6520
|
}
|
|
6521
6521
|
return Qt(r);
|
|
6522
6522
|
}
|
|
6523
|
-
function
|
|
6523
|
+
function ua(e, t) {
|
|
6524
6524
|
const n = Ke(e);
|
|
6525
|
-
return n === t || !ye(n) || it(n) ? !1 : Ce(n).position === "fixed" ||
|
|
6525
|
+
return n === t || !ye(n) || it(n) ? !1 : Ce(n).position === "fixed" || ua(n, t);
|
|
6526
6526
|
}
|
|
6527
6527
|
function Kd(e, t) {
|
|
6528
6528
|
const n = t.get(e);
|
|
@@ -6532,8 +6532,8 @@ function Kd(e, t) {
|
|
|
6532
6532
|
const s = Ce(e).position === "fixed";
|
|
6533
6533
|
let a = s ? Ke(e) : e;
|
|
6534
6534
|
for (; ye(a) && !it(a); ) {
|
|
6535
|
-
const i = Ce(a), c =
|
|
6536
|
-
!c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _t(a) && !c &&
|
|
6535
|
+
const i = Ce(a), c = _r(a);
|
|
6536
|
+
!c && i.position === "fixed" && (o = null), (s ? !c && !o : !c && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _t(a) && !c && ua(e, a)) ? r = r.filter((d) => d !== a) : o = i, a = Ke(a);
|
|
6537
6537
|
}
|
|
6538
6538
|
return t.set(e, r), r;
|
|
6539
6539
|
}
|
|
@@ -6545,9 +6545,9 @@ function Yd(e) {
|
|
|
6545
6545
|
strategy: o
|
|
6546
6546
|
} = e;
|
|
6547
6547
|
const a = [...n === "clippingAncestors" ? ln(t) ? [] : Kd(t, this._c) : [].concat(n), r], i = a[0], c = a.reduce((p, d) => {
|
|
6548
|
-
const f =
|
|
6548
|
+
const f = Po(t, d, o);
|
|
6549
6549
|
return p.top = he(f.top, p.top), p.right = Ue(f.right, p.right), p.bottom = Ue(f.bottom, p.bottom), p.left = he(f.left, p.left), p;
|
|
6550
|
-
},
|
|
6550
|
+
}, Po(t, i, o));
|
|
6551
6551
|
return {
|
|
6552
6552
|
width: c.right - c.left,
|
|
6553
6553
|
height: c.bottom - c.top,
|
|
@@ -6559,7 +6559,7 @@ function qd(e) {
|
|
|
6559
6559
|
const {
|
|
6560
6560
|
width: t,
|
|
6561
6561
|
height: n
|
|
6562
|
-
} =
|
|
6562
|
+
} = ia(e);
|
|
6563
6563
|
return {
|
|
6564
6564
|
width: t,
|
|
6565
6565
|
height: n
|
|
@@ -6573,7 +6573,7 @@ function Xd(e, t, n) {
|
|
|
6573
6573
|
};
|
|
6574
6574
|
const c = _e(0);
|
|
6575
6575
|
function p() {
|
|
6576
|
-
c.x =
|
|
6576
|
+
c.x = Tr(o);
|
|
6577
6577
|
}
|
|
6578
6578
|
if (r || !r && !s)
|
|
6579
6579
|
if ((pt(t) !== "body" || _t(o)) && (i = un(t)), r) {
|
|
@@ -6581,7 +6581,7 @@ function Xd(e, t, n) {
|
|
|
6581
6581
|
c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
|
|
6582
6582
|
} else o && p();
|
|
6583
6583
|
s && !r && o && p();
|
|
6584
|
-
const d = o && !r && !s ?
|
|
6584
|
+
const d = o && !r && !s ? la(o, i) : _e(0), f = a.left + i.scrollLeft - c.x - d.x, m = a.top + i.scrollTop - c.y - d.y;
|
|
6585
6585
|
return {
|
|
6586
6586
|
x: f,
|
|
6587
6587
|
y: m,
|
|
@@ -6592,7 +6592,7 @@ function Xd(e, t, n) {
|
|
|
6592
6592
|
function Ln(e) {
|
|
6593
6593
|
return Ce(e).position === "static";
|
|
6594
6594
|
}
|
|
6595
|
-
function
|
|
6595
|
+
function Do(e, t) {
|
|
6596
6596
|
if (!Ae(e) || Ce(e).position === "fixed")
|
|
6597
6597
|
return null;
|
|
6598
6598
|
if (t)
|
|
@@ -6600,7 +6600,7 @@ function Po(e, t) {
|
|
|
6600
6600
|
let n = e.offsetParent;
|
|
6601
6601
|
return Te(e) === n && (n = n.ownerDocument.body), n;
|
|
6602
6602
|
}
|
|
6603
|
-
function
|
|
6603
|
+
function da(e, t) {
|
|
6604
6604
|
const n = ge(e);
|
|
6605
6605
|
if (ln(e))
|
|
6606
6606
|
return n;
|
|
@@ -6613,13 +6613,13 @@ function ua(e, t) {
|
|
|
6613
6613
|
}
|
|
6614
6614
|
return n;
|
|
6615
6615
|
}
|
|
6616
|
-
let r =
|
|
6616
|
+
let r = Do(e, t);
|
|
6617
6617
|
for (; r && Fd(r) && Ln(r); )
|
|
6618
|
-
r =
|
|
6619
|
-
return r && it(r) && Ln(r) && !
|
|
6618
|
+
r = Do(r, t);
|
|
6619
|
+
return r && it(r) && Ln(r) && !_r(r) ? n : r || $d(e) || n;
|
|
6620
6620
|
}
|
|
6621
6621
|
const Zd = async function(e) {
|
|
6622
|
-
const t = this.getOffsetParent ||
|
|
6622
|
+
const t = this.getOffsetParent || da, n = this.getDimensions, r = await n(e.floating);
|
|
6623
6623
|
return {
|
|
6624
6624
|
reference: Xd(e.reference, await t(e.floating), e.strategy),
|
|
6625
6625
|
floating: {
|
|
@@ -6637,7 +6637,7 @@ const Qd = {
|
|
|
6637
6637
|
convertOffsetParentRelativeRectToViewportRelativeRect: zd,
|
|
6638
6638
|
getDocumentElement: Te,
|
|
6639
6639
|
getClippingRect: Yd,
|
|
6640
|
-
getOffsetParent:
|
|
6640
|
+
getOffsetParent: da,
|
|
6641
6641
|
getElementRects: Zd,
|
|
6642
6642
|
getClientRects: Wd,
|
|
6643
6643
|
getDimensions: qd,
|
|
@@ -6645,7 +6645,7 @@ const Qd = {
|
|
|
6645
6645
|
isElement: ye,
|
|
6646
6646
|
isRTL: Jd
|
|
6647
6647
|
};
|
|
6648
|
-
function
|
|
6648
|
+
function fa(e, t) {
|
|
6649
6649
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
6650
6650
|
}
|
|
6651
6651
|
function ef(e, t) {
|
|
@@ -6679,7 +6679,7 @@ function ef(e, t) {
|
|
|
6679
6679
|
a(!1, 1e-7);
|
|
6680
6680
|
}, 1e3);
|
|
6681
6681
|
}
|
|
6682
|
-
M === 1 && !
|
|
6682
|
+
M === 1 && !fa(p, e.getBoundingClientRect()) && a(), S = !1;
|
|
6683
6683
|
}
|
|
6684
6684
|
try {
|
|
6685
6685
|
n = new IntersectionObserver(R, {
|
|
@@ -6702,7 +6702,7 @@ function tf(e, t, n, r) {
|
|
|
6702
6702
|
elementResize: a = typeof ResizeObserver == "function",
|
|
6703
6703
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
6704
6704
|
animationFrame: c = !1
|
|
6705
|
-
} = r, p =
|
|
6705
|
+
} = r, p = Ar(e), d = o || s ? [...p ? wt(p) : [], ...wt(t)] : [];
|
|
6706
6706
|
d.forEach((v) => {
|
|
6707
6707
|
o && v.addEventListener("scroll", n, {
|
|
6708
6708
|
passive: !0
|
|
@@ -6721,7 +6721,7 @@ function tf(e, t, n, r) {
|
|
|
6721
6721
|
c && x();
|
|
6722
6722
|
function x() {
|
|
6723
6723
|
const v = Ze(e);
|
|
6724
|
-
g && !
|
|
6724
|
+
g && !fa(g, v) && n(), g = v, b = requestAnimationFrame(x);
|
|
6725
6725
|
}
|
|
6726
6726
|
return n(), () => {
|
|
6727
6727
|
var v;
|
|
@@ -6730,7 +6730,7 @@ function tf(e, t, n, r) {
|
|
|
6730
6730
|
}), f == null || f(), (v = h) == null || v.disconnect(), h = null, c && cancelAnimationFrame(b);
|
|
6731
6731
|
};
|
|
6732
6732
|
}
|
|
6733
|
-
const nf = Dd, rf = Id, of = Nd, sf = Ld, af = Od,
|
|
6733
|
+
const nf = Dd, rf = Id, of = Nd, sf = Ld, af = Od, Io = kd, cf = jd, lf = (e, t, n) => {
|
|
6734
6734
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
6735
6735
|
platform: Qd,
|
|
6736
6736
|
...n
|
|
@@ -6744,7 +6744,7 @@ const nf = Dd, rf = Id, of = Nd, sf = Ld, af = Od, Do = kd, cf = jd, lf = (e, t,
|
|
|
6744
6744
|
});
|
|
6745
6745
|
};
|
|
6746
6746
|
var uf = typeof document < "u", df = function() {
|
|
6747
|
-
}, Kt = uf ?
|
|
6747
|
+
}, Kt = uf ? Vo : df;
|
|
6748
6748
|
function en(e, t) {
|
|
6749
6749
|
if (e === t)
|
|
6750
6750
|
return !0;
|
|
@@ -6775,11 +6775,11 @@ function en(e, t) {
|
|
|
6775
6775
|
}
|
|
6776
6776
|
return e !== e && t !== t;
|
|
6777
6777
|
}
|
|
6778
|
-
function
|
|
6778
|
+
function pa(e) {
|
|
6779
6779
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
6780
6780
|
}
|
|
6781
|
-
function
|
|
6782
|
-
const n =
|
|
6781
|
+
function jo(e, t) {
|
|
6782
|
+
const n = pa(e);
|
|
6783
6783
|
return Math.round(t * n) / n;
|
|
6784
6784
|
}
|
|
6785
6785
|
function Fn(e) {
|
|
@@ -6832,7 +6832,7 @@ function ff(e) {
|
|
|
6832
6832
|
// setting it to `true` when `open === false` (must be specified).
|
|
6833
6833
|
isPositioned: W.current !== !1
|
|
6834
6834
|
};
|
|
6835
|
-
H.current && !en(C.current, y) && (C.current = y,
|
|
6835
|
+
H.current && !en(C.current, y) && (C.current = y, zo.flushSync(() => {
|
|
6836
6836
|
f(y);
|
|
6837
6837
|
}));
|
|
6838
6838
|
});
|
|
@@ -6869,11 +6869,11 @@ function ff(e) {
|
|
|
6869
6869
|
};
|
|
6870
6870
|
if (!L.floating)
|
|
6871
6871
|
return _;
|
|
6872
|
-
const T =
|
|
6872
|
+
const T = jo(L.floating, d.x), y = jo(L.floating, d.y);
|
|
6873
6873
|
return i ? {
|
|
6874
6874
|
..._,
|
|
6875
6875
|
transform: "translate(" + T + "px, " + y + "px)",
|
|
6876
|
-
...
|
|
6876
|
+
...pa(L.floating) >= 1.5 && {
|
|
6877
6877
|
willChange: "transform"
|
|
6878
6878
|
}
|
|
6879
6879
|
} : {
|
|
@@ -6902,10 +6902,10 @@ const pf = (e) => {
|
|
|
6902
6902
|
element: r,
|
|
6903
6903
|
padding: o
|
|
6904
6904
|
} = typeof e == "function" ? e(n) : e;
|
|
6905
|
-
return r && t(r) ? r.current != null ?
|
|
6905
|
+
return r && t(r) ? r.current != null ? Io({
|
|
6906
6906
|
element: r.current,
|
|
6907
6907
|
padding: o
|
|
6908
|
-
}).fn(n) : {} : r ?
|
|
6908
|
+
}).fn(n) : {} : r ? Io({
|
|
6909
6909
|
element: r,
|
|
6910
6910
|
padding: o
|
|
6911
6911
|
}).fn(n) : {};
|
|
@@ -6933,7 +6933,7 @@ const pf = (e) => {
|
|
|
6933
6933
|
...pf(e),
|
|
6934
6934
|
options: [e, t]
|
|
6935
6935
|
});
|
|
6936
|
-
var yf = "Arrow",
|
|
6936
|
+
var yf = "Arrow", ma = l.forwardRef((e, t) => {
|
|
6937
6937
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
6938
6938
|
return /* @__PURE__ */ u.jsx(
|
|
6939
6939
|
ne.svg,
|
|
@@ -6948,8 +6948,8 @@ var yf = "Arrow", pa = l.forwardRef((e, t) => {
|
|
|
6948
6948
|
}
|
|
6949
6949
|
);
|
|
6950
6950
|
});
|
|
6951
|
-
|
|
6952
|
-
var Cf =
|
|
6951
|
+
ma.displayName = yf;
|
|
6952
|
+
var Cf = ma;
|
|
6953
6953
|
function Ef(e) {
|
|
6954
6954
|
const [t, n] = l.useState(void 0);
|
|
6955
6955
|
return Ge(() => {
|
|
@@ -6972,21 +6972,21 @@ function Ef(e) {
|
|
|
6972
6972
|
n(void 0);
|
|
6973
6973
|
}, [e]), t;
|
|
6974
6974
|
}
|
|
6975
|
-
var
|
|
6975
|
+
var kr = "Popper", [ha, dn] = Je(kr), [Sf, ga] = ha(kr), va = (e) => {
|
|
6976
6976
|
const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
|
|
6977
6977
|
return /* @__PURE__ */ u.jsx(Sf, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
6978
6978
|
};
|
|
6979
|
-
|
|
6980
|
-
var
|
|
6979
|
+
va.displayName = kr;
|
|
6980
|
+
var ba = "PopperAnchor", xa = l.forwardRef(
|
|
6981
6981
|
(e, t) => {
|
|
6982
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s =
|
|
6982
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = ga(ba, n), a = l.useRef(null), i = ae(t, a);
|
|
6983
6983
|
return l.useEffect(() => {
|
|
6984
6984
|
s.onAnchorChange((r == null ? void 0 : r.current) || a.current);
|
|
6985
6985
|
}), r ? null : /* @__PURE__ */ u.jsx(ne.div, { ...o, ref: i });
|
|
6986
6986
|
}
|
|
6987
6987
|
);
|
|
6988
|
-
|
|
6989
|
-
var
|
|
6988
|
+
xa.displayName = ba;
|
|
6989
|
+
var Nr = "PopperContent", [Rf, _f] = ha(Nr), wa = l.forwardRef(
|
|
6990
6990
|
(e, t) => {
|
|
6991
6991
|
var U, J, Q, oe, xe, $e;
|
|
6992
6992
|
const {
|
|
@@ -7004,7 +7004,7 @@ var kr = "PopperContent", [Rf, _f] = ma(kr), xa = l.forwardRef(
|
|
|
7004
7004
|
updatePositionStrategy: h = "optimized",
|
|
7005
7005
|
onPlaced: b,
|
|
7006
7006
|
...g
|
|
7007
|
-
} = e, x =
|
|
7007
|
+
} = e, x = ga(Nr, n), [v, w] = l.useState(null), E = ae(t, (X) => w(X)), [S, R] = l.useState(null), A = Ef(S), M = (A == null ? void 0 : A.width) ?? 0, C = (A == null ? void 0 : A.height) ?? 0, D = r + (s !== "center" ? "-" + s : ""), I = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, B = Array.isArray(p) ? p : [p], W = B.length > 0, V = {
|
|
7008
7008
|
padding: I,
|
|
7009
7009
|
boundary: B.filter(Af),
|
|
7010
7010
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -7039,7 +7039,7 @@ var kr = "PopperContent", [Rf, _f] = ma(kr), xa = l.forwardRef(
|
|
|
7039
7039
|
Tf({ arrowWidth: M, arrowHeight: C }),
|
|
7040
7040
|
m && xf({ strategy: "referenceHidden", ...V })
|
|
7041
7041
|
]
|
|
7042
|
-
}), [T, y] =
|
|
7042
|
+
}), [T, y] = Ea(L), k = Me(b);
|
|
7043
7043
|
Ge(() => {
|
|
7044
7044
|
G && (k == null || k());
|
|
7045
7045
|
}, [G, k]);
|
|
@@ -7100,14 +7100,14 @@ var kr = "PopperContent", [Rf, _f] = ma(kr), xa = l.forwardRef(
|
|
|
7100
7100
|
);
|
|
7101
7101
|
}
|
|
7102
7102
|
);
|
|
7103
|
-
|
|
7104
|
-
var
|
|
7103
|
+
wa.displayName = Nr;
|
|
7104
|
+
var ya = "PopperArrow", Mf = {
|
|
7105
7105
|
top: "bottom",
|
|
7106
7106
|
right: "left",
|
|
7107
7107
|
bottom: "top",
|
|
7108
7108
|
left: "right"
|
|
7109
|
-
},
|
|
7110
|
-
const { __scopePopper: r, ...o } = t, s = _f(
|
|
7109
|
+
}, Ca = l.forwardRef(function(t, n) {
|
|
7110
|
+
const { __scopePopper: r, ...o } = t, s = _f(ya, r), a = Mf[s.placedSide];
|
|
7111
7111
|
return (
|
|
7112
7112
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
7113
7113
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -7151,7 +7151,7 @@ var wa = "PopperArrow", Mf = {
|
|
|
7151
7151
|
)
|
|
7152
7152
|
);
|
|
7153
7153
|
});
|
|
7154
|
-
|
|
7154
|
+
Ca.displayName = ya;
|
|
7155
7155
|
function Af(e) {
|
|
7156
7156
|
return e !== null;
|
|
7157
7157
|
}
|
|
@@ -7160,16 +7160,16 @@ var Tf = (e) => ({
|
|
|
7160
7160
|
options: e,
|
|
7161
7161
|
fn(t) {
|
|
7162
7162
|
var x, v, w;
|
|
7163
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = ((x = o.arrow) == null ? void 0 : x.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [p, d] =
|
|
7163
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = ((x = o.arrow) == null ? void 0 : x.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [p, d] = Ea(n), f = { start: "0%", center: "50%", end: "100%" }[d], m = (((v = o.arrow) == null ? void 0 : v.x) ?? 0) + i / 2, h = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + c / 2;
|
|
7164
7164
|
let b = "", g = "";
|
|
7165
7165
|
return p === "bottom" ? (b = a ? f : `${m}px`, g = `${-c}px`) : p === "top" ? (b = a ? f : `${m}px`, g = `${r.floating.height + c}px`) : p === "right" ? (b = `${-c}px`, g = a ? f : `${h}px`) : p === "left" && (b = `${r.floating.width + c}px`, g = a ? f : `${h}px`), { data: { x: b, y: g } };
|
|
7166
7166
|
}
|
|
7167
7167
|
});
|
|
7168
|
-
function
|
|
7168
|
+
function Ea(e) {
|
|
7169
7169
|
const [t, n = "center"] = e.split("-");
|
|
7170
7170
|
return [t, n];
|
|
7171
7171
|
}
|
|
7172
|
-
var
|
|
7172
|
+
var Or = va, Sa = xa, Ra = wa, _a = Ca, kf = Object.freeze({
|
|
7173
7173
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
7174
7174
|
position: "absolute",
|
|
7175
7175
|
border: 0,
|
|
@@ -7181,7 +7181,7 @@ var Nr = ga, Ea = ba, Sa = xa, Ra = ya, kf = Object.freeze({
|
|
|
7181
7181
|
clip: "rect(0, 0, 0, 0)",
|
|
7182
7182
|
whiteSpace: "nowrap",
|
|
7183
7183
|
wordWrap: "normal"
|
|
7184
|
-
}), Nf = "VisuallyHidden",
|
|
7184
|
+
}), Nf = "VisuallyHidden", Ma = l.forwardRef(
|
|
7185
7185
|
(e, t) => /* @__PURE__ */ u.jsx(
|
|
7186
7186
|
ne.span,
|
|
7187
7187
|
{
|
|
@@ -7191,10 +7191,10 @@ var Nr = ga, Ea = ba, Sa = xa, Ra = ya, kf = Object.freeze({
|
|
|
7191
7191
|
}
|
|
7192
7192
|
)
|
|
7193
7193
|
);
|
|
7194
|
-
|
|
7195
|
-
var Of =
|
|
7194
|
+
Ma.displayName = Nf;
|
|
7195
|
+
var Of = Ma, [fn, S0] = Je("Tooltip", [
|
|
7196
7196
|
dn
|
|
7197
|
-
]), pn = dn(),
|
|
7197
|
+
]), pn = dn(), Aa = "TooltipProvider", Pf = 700, rr = "tooltip.open", [Df, Pr] = fn(Aa), Ta = (e) => {
|
|
7198
7198
|
const {
|
|
7199
7199
|
__scopeTooltip: t,
|
|
7200
7200
|
delayDuration: n = Pf,
|
|
@@ -7229,8 +7229,8 @@ var Of = _a, [fn, C0] = Je("Tooltip", [
|
|
|
7229
7229
|
}
|
|
7230
7230
|
);
|
|
7231
7231
|
};
|
|
7232
|
-
|
|
7233
|
-
var yt = "Tooltip", [If, mn] = fn(yt),
|
|
7232
|
+
Ta.displayName = Aa;
|
|
7233
|
+
var yt = "Tooltip", [If, mn] = fn(yt), ka = (e) => {
|
|
7234
7234
|
const {
|
|
7235
7235
|
__scopeTooltip: t,
|
|
7236
7236
|
children: n,
|
|
@@ -7239,7 +7239,7 @@ var yt = "Tooltip", [If, mn] = fn(yt), Ta = (e) => {
|
|
|
7239
7239
|
onOpenChange: s,
|
|
7240
7240
|
disableHoverableContent: a,
|
|
7241
7241
|
delayDuration: i
|
|
7242
|
-
} = e, c =
|
|
7242
|
+
} = e, c = Pr(yt, e.__scopeTooltip), p = pn(t), [d, f] = l.useState(null), m = De(), h = l.useRef(0), b = a ?? c.disableHoverableContent, g = i ?? c.delayDuration, x = l.useRef(!1), [v, w] = Rt({
|
|
7243
7243
|
prop: r,
|
|
7244
7244
|
defaultProp: o ?? !1,
|
|
7245
7245
|
onChange: (M) => {
|
|
@@ -7257,7 +7257,7 @@ var yt = "Tooltip", [If, mn] = fn(yt), Ta = (e) => {
|
|
|
7257
7257
|
}, [g, w]);
|
|
7258
7258
|
return l.useEffect(() => () => {
|
|
7259
7259
|
h.current && (window.clearTimeout(h.current), h.current = 0);
|
|
7260
|
-
}, []), /* @__PURE__ */ u.jsx(
|
|
7260
|
+
}, []), /* @__PURE__ */ u.jsx(Or, { ...p, children: /* @__PURE__ */ u.jsx(
|
|
7261
7261
|
If,
|
|
7262
7262
|
{
|
|
7263
7263
|
scope: t,
|
|
@@ -7279,11 +7279,11 @@ var yt = "Tooltip", [If, mn] = fn(yt), Ta = (e) => {
|
|
|
7279
7279
|
}
|
|
7280
7280
|
) });
|
|
7281
7281
|
};
|
|
7282
|
-
|
|
7283
|
-
var or = "TooltipTrigger",
|
|
7282
|
+
ka.displayName = yt;
|
|
7283
|
+
var or = "TooltipTrigger", Na = l.forwardRef(
|
|
7284
7284
|
(e, t) => {
|
|
7285
|
-
const { __scopeTooltip: n, ...r } = e, o = mn(or, n), s =
|
|
7286
|
-
return l.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ u.jsx(
|
|
7285
|
+
const { __scopeTooltip: n, ...r } = e, o = mn(or, n), s = Pr(or, n), a = pn(n), i = l.useRef(null), c = ae(t, i, o.onTriggerChange), p = l.useRef(!1), d = l.useRef(!1), f = l.useCallback(() => p.current = !1, []);
|
|
7286
|
+
return l.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ u.jsx(Sa, { asChild: !0, ...a, children: /* @__PURE__ */ u.jsx(
|
|
7287
7287
|
ne.button,
|
|
7288
7288
|
{
|
|
7289
7289
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -7308,16 +7308,16 @@ var or = "TooltipTrigger", ka = l.forwardRef(
|
|
|
7308
7308
|
) });
|
|
7309
7309
|
}
|
|
7310
7310
|
);
|
|
7311
|
-
|
|
7312
|
-
var jf = "TooltipPortal", [
|
|
7311
|
+
Na.displayName = or;
|
|
7312
|
+
var jf = "TooltipPortal", [R0, Lf] = fn(jf, {
|
|
7313
7313
|
forceMount: void 0
|
|
7314
|
-
}), ct = "TooltipContent",
|
|
7314
|
+
}), ct = "TooltipContent", Oa = l.forwardRef(
|
|
7315
7315
|
(e, t) => {
|
|
7316
7316
|
const n = Lf(ct, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = mn(ct, e.__scopeTooltip);
|
|
7317
|
-
return /* @__PURE__ */ u.jsx(Fe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ u.jsx(
|
|
7317
|
+
return /* @__PURE__ */ u.jsx(Fe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ u.jsx(Pa, { side: o, ...s, ref: t }) : /* @__PURE__ */ u.jsx(Ff, { side: o, ...s, ref: t }) });
|
|
7318
7318
|
}
|
|
7319
7319
|
), Ff = l.forwardRef((e, t) => {
|
|
7320
|
-
const n = mn(ct, e.__scopeTooltip), r =
|
|
7320
|
+
const n = mn(ct, e.__scopeTooltip), r = Pr(ct, e.__scopeTooltip), o = l.useRef(null), s = ae(t, o), [a, i] = l.useState(null), { trigger: c, onClose: p } = n, d = o.current, { onPointerInTransitChange: f } = r, m = l.useCallback(() => {
|
|
7321
7321
|
i(null), f(!1);
|
|
7322
7322
|
}, [f]), h = l.useCallback(
|
|
7323
7323
|
(b, g) => {
|
|
@@ -7341,8 +7341,8 @@ var jf = "TooltipPortal", [E0, Lf] = fn(jf, {
|
|
|
7341
7341
|
};
|
|
7342
7342
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
7343
7343
|
}
|
|
7344
|
-
}, [c, d, a, p, m]), /* @__PURE__ */ u.jsx(
|
|
7345
|
-
}), [$f, Vf] = fn(yt, { isInside: !1 }), Hf = /* @__PURE__ */ ol("TooltipContent"),
|
|
7344
|
+
}, [c, d, a, p, m]), /* @__PURE__ */ u.jsx(Pa, { ...e, ref: s });
|
|
7345
|
+
}), [$f, Vf] = fn(yt, { isInside: !1 }), Hf = /* @__PURE__ */ ol("TooltipContent"), Pa = l.forwardRef(
|
|
7346
7346
|
(e, t) => {
|
|
7347
7347
|
const {
|
|
7348
7348
|
__scopeTooltip: n,
|
|
@@ -7370,7 +7370,7 @@ var jf = "TooltipPortal", [E0, Lf] = fn(jf, {
|
|
|
7370
7370
|
onFocusOutside: (f) => f.preventDefault(),
|
|
7371
7371
|
onDismiss: d,
|
|
7372
7372
|
children: /* @__PURE__ */ u.jsxs(
|
|
7373
|
-
|
|
7373
|
+
Ra,
|
|
7374
7374
|
{
|
|
7375
7375
|
"data-state": c.stateAttribute,
|
|
7376
7376
|
...p,
|
|
@@ -7394,17 +7394,17 @@ var jf = "TooltipPortal", [E0, Lf] = fn(jf, {
|
|
|
7394
7394
|
);
|
|
7395
7395
|
}
|
|
7396
7396
|
);
|
|
7397
|
-
|
|
7398
|
-
var
|
|
7397
|
+
Oa.displayName = ct;
|
|
7398
|
+
var Da = "TooltipArrow", zf = l.forwardRef(
|
|
7399
7399
|
(e, t) => {
|
|
7400
7400
|
const { __scopeTooltip: n, ...r } = e, o = pn(n);
|
|
7401
7401
|
return Vf(
|
|
7402
|
-
|
|
7402
|
+
Da,
|
|
7403
7403
|
n
|
|
7404
|
-
).isInside ? null : /* @__PURE__ */ u.jsx(
|
|
7404
|
+
).isInside ? null : /* @__PURE__ */ u.jsx(_a, { ...o, ...r, ref: t });
|
|
7405
7405
|
}
|
|
7406
7406
|
);
|
|
7407
|
-
zf.displayName =
|
|
7407
|
+
zf.displayName = Da;
|
|
7408
7408
|
function Wf(e, t) {
|
|
7409
7409
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
|
|
7410
7410
|
switch (Math.min(n, r, o, s)) {
|
|
@@ -7497,9 +7497,9 @@ function Yf(e) {
|
|
|
7497
7497
|
}
|
|
7498
7498
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
7499
7499
|
}
|
|
7500
|
-
var qf =
|
|
7501
|
-
const Jf = qf, Qf = Xf, ep = Zf,
|
|
7502
|
-
|
|
7500
|
+
var qf = Ta, Xf = ka, Zf = Na, Ia = Oa;
|
|
7501
|
+
const Jf = qf, Qf = Xf, ep = Zf, ja = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ u.jsx(
|
|
7502
|
+
Ia,
|
|
7503
7503
|
{
|
|
7504
7504
|
ref: r,
|
|
7505
7505
|
sideOffset: t,
|
|
@@ -7510,10 +7510,10 @@ const Jf = qf, Qf = Xf, ep = Zf, Ia = l.forwardRef(({ className: e, sideOffset:
|
|
|
7510
7510
|
...n
|
|
7511
7511
|
}
|
|
7512
7512
|
));
|
|
7513
|
-
|
|
7514
|
-
const tp = "sidebar_state", np = 60 * 60 * 24 * 7, rp = "16rem", op = "18rem", sp = "3rem", ap = "b",
|
|
7513
|
+
ja.displayName = Ia.displayName;
|
|
7514
|
+
const tp = "sidebar_state", np = 60 * 60 * 24 * 7, rp = "16rem", op = "18rem", sp = "3rem", ap = "b", La = l.createContext(null);
|
|
7515
7515
|
function hn() {
|
|
7516
|
-
const e = l.useContext(
|
|
7516
|
+
const e = l.useContext(La);
|
|
7517
7517
|
if (!e)
|
|
7518
7518
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
7519
7519
|
return e;
|
|
@@ -7552,7 +7552,7 @@ function ip({
|
|
|
7552
7552
|
}),
|
|
7553
7553
|
[g, m, h, i, c, p, b]
|
|
7554
7554
|
);
|
|
7555
|
-
return /* @__PURE__ */ u.jsx(
|
|
7555
|
+
return /* @__PURE__ */ u.jsx(La.Provider, { value: x, children: /* @__PURE__ */ u.jsx(Jf, { delayDuration: 0, children: /* @__PURE__ */ u.jsx(
|
|
7556
7556
|
"div",
|
|
7557
7557
|
{
|
|
7558
7558
|
"data-slot": "sidebar-wrapper",
|
|
@@ -7591,7 +7591,7 @@ function cp({
|
|
|
7591
7591
|
children: o
|
|
7592
7592
|
}
|
|
7593
7593
|
) : a ? /* @__PURE__ */ u.jsx(vd, { open: c, onOpenChange: p, ...s, children: /* @__PURE__ */ u.jsxs(
|
|
7594
|
-
|
|
7594
|
+
ea,
|
|
7595
7595
|
{
|
|
7596
7596
|
"data-sidebar": "sidebar",
|
|
7597
7597
|
"data-slot": "sidebar",
|
|
@@ -7602,9 +7602,9 @@ function cp({
|
|
|
7602
7602
|
},
|
|
7603
7603
|
side: e,
|
|
7604
7604
|
children: [
|
|
7605
|
-
/* @__PURE__ */ u.jsxs(
|
|
7606
|
-
/* @__PURE__ */ u.jsx(
|
|
7607
|
-
/* @__PURE__ */ u.jsx(
|
|
7605
|
+
/* @__PURE__ */ u.jsxs(ta, { className: "sr-only", children: [
|
|
7606
|
+
/* @__PURE__ */ u.jsx(na, { children: "Sidebar" }),
|
|
7607
|
+
/* @__PURE__ */ u.jsx(ra, { children: "Displays the mobile sidebar." })
|
|
7608
7608
|
] }),
|
|
7609
7609
|
/* @__PURE__ */ u.jsx("div", { className: "flex h-full w-full flex-col", children: o })
|
|
7610
7610
|
]
|
|
@@ -7665,7 +7665,7 @@ function lp({
|
|
|
7665
7665
|
}) {
|
|
7666
7666
|
const { toggleSidebar: r } = hn();
|
|
7667
7667
|
return /* @__PURE__ */ u.jsxs(
|
|
7668
|
-
|
|
7668
|
+
hr,
|
|
7669
7669
|
{
|
|
7670
7670
|
"data-sidebar": "trigger",
|
|
7671
7671
|
"data-slot": "sidebar-trigger",
|
|
@@ -7721,12 +7721,12 @@ function dp({ className: e, ...t }) {
|
|
|
7721
7721
|
}
|
|
7722
7722
|
);
|
|
7723
7723
|
}
|
|
7724
|
-
function
|
|
7724
|
+
function _0({
|
|
7725
7725
|
className: e,
|
|
7726
7726
|
...t
|
|
7727
7727
|
}) {
|
|
7728
7728
|
return /* @__PURE__ */ u.jsx(
|
|
7729
|
-
|
|
7729
|
+
hs,
|
|
7730
7730
|
{
|
|
7731
7731
|
"data-slot": "sidebar-input",
|
|
7732
7732
|
"data-sidebar": "input",
|
|
@@ -7746,7 +7746,7 @@ function fp({ className: e, ...t }) {
|
|
|
7746
7746
|
}
|
|
7747
7747
|
);
|
|
7748
7748
|
}
|
|
7749
|
-
function
|
|
7749
|
+
function M0({ className: e, ...t }) {
|
|
7750
7750
|
return /* @__PURE__ */ u.jsx(
|
|
7751
7751
|
"div",
|
|
7752
7752
|
{
|
|
@@ -7757,12 +7757,12 @@ function R0({ className: e, ...t }) {
|
|
|
7757
7757
|
}
|
|
7758
7758
|
);
|
|
7759
7759
|
}
|
|
7760
|
-
function
|
|
7760
|
+
function A0({
|
|
7761
7761
|
className: e,
|
|
7762
7762
|
...t
|
|
7763
7763
|
}) {
|
|
7764
7764
|
return /* @__PURE__ */ u.jsx(
|
|
7765
|
-
|
|
7765
|
+
gr,
|
|
7766
7766
|
{
|
|
7767
7767
|
"data-slot": "sidebar-separator",
|
|
7768
7768
|
"data-sidebar": "separator",
|
|
@@ -7799,7 +7799,7 @@ function mp({ className: e, ...t }) {
|
|
|
7799
7799
|
}
|
|
7800
7800
|
);
|
|
7801
7801
|
}
|
|
7802
|
-
function
|
|
7802
|
+
function T0({
|
|
7803
7803
|
className: e,
|
|
7804
7804
|
asChild: t = !1,
|
|
7805
7805
|
...n
|
|
@@ -7819,7 +7819,7 @@ function M0({
|
|
|
7819
7819
|
}
|
|
7820
7820
|
);
|
|
7821
7821
|
}
|
|
7822
|
-
function
|
|
7822
|
+
function k0({
|
|
7823
7823
|
className: e,
|
|
7824
7824
|
asChild: t = !1,
|
|
7825
7825
|
...n
|
|
@@ -7855,7 +7855,7 @@ function hp({
|
|
|
7855
7855
|
}
|
|
7856
7856
|
);
|
|
7857
7857
|
}
|
|
7858
|
-
function
|
|
7858
|
+
function N0({ className: e, ...t }) {
|
|
7859
7859
|
return /* @__PURE__ */ u.jsx(
|
|
7860
7860
|
"ul",
|
|
7861
7861
|
{
|
|
@@ -7866,7 +7866,7 @@ function T0({ className: e, ...t }) {
|
|
|
7866
7866
|
}
|
|
7867
7867
|
);
|
|
7868
7868
|
}
|
|
7869
|
-
function
|
|
7869
|
+
function O0({ className: e, ...t }) {
|
|
7870
7870
|
return /* @__PURE__ */ u.jsx(
|
|
7871
7871
|
"li",
|
|
7872
7872
|
{
|
|
@@ -7877,7 +7877,7 @@ function k0({ className: e, ...t }) {
|
|
|
7877
7877
|
}
|
|
7878
7878
|
);
|
|
7879
7879
|
}
|
|
7880
|
-
const gp =
|
|
7880
|
+
const gp = pr(
|
|
7881
7881
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
7882
7882
|
{
|
|
7883
7883
|
variants: {
|
|
@@ -7897,7 +7897,7 @@ const gp = fr(
|
|
|
7897
7897
|
}
|
|
7898
7898
|
}
|
|
7899
7899
|
);
|
|
7900
|
-
function
|
|
7900
|
+
function P0({
|
|
7901
7901
|
asChild: e = !1,
|
|
7902
7902
|
isActive: t = !1,
|
|
7903
7903
|
variant: n = "default",
|
|
@@ -7922,7 +7922,7 @@ function N0({
|
|
|
7922
7922
|
}), /* @__PURE__ */ u.jsxs(Qf, { children: [
|
|
7923
7923
|
/* @__PURE__ */ u.jsx(ep, { asChild: !0, children: d }),
|
|
7924
7924
|
/* @__PURE__ */ u.jsx(
|
|
7925
|
-
|
|
7925
|
+
ja,
|
|
7926
7926
|
{
|
|
7927
7927
|
side: "right",
|
|
7928
7928
|
align: "center",
|
|
@@ -7932,7 +7932,7 @@ function N0({
|
|
|
7932
7932
|
)
|
|
7933
7933
|
] })) : d;
|
|
7934
7934
|
}
|
|
7935
|
-
function
|
|
7935
|
+
function D0({
|
|
7936
7936
|
className: e,
|
|
7937
7937
|
asChild: t = !1,
|
|
7938
7938
|
showOnHover: n = !1,
|
|
@@ -7959,7 +7959,7 @@ function O0({
|
|
|
7959
7959
|
}
|
|
7960
7960
|
);
|
|
7961
7961
|
}
|
|
7962
|
-
function
|
|
7962
|
+
function I0({
|
|
7963
7963
|
className: e,
|
|
7964
7964
|
...t
|
|
7965
7965
|
}) {
|
|
@@ -7981,7 +7981,7 @@ function P0({
|
|
|
7981
7981
|
}
|
|
7982
7982
|
);
|
|
7983
7983
|
}
|
|
7984
|
-
function
|
|
7984
|
+
function j0({
|
|
7985
7985
|
className: e,
|
|
7986
7986
|
showIcon: t = !1,
|
|
7987
7987
|
...n
|
|
@@ -7996,14 +7996,14 @@ function D0({
|
|
|
7996
7996
|
...n,
|
|
7997
7997
|
children: [
|
|
7998
7998
|
t && /* @__PURE__ */ u.jsx(
|
|
7999
|
-
|
|
7999
|
+
Ao,
|
|
8000
8000
|
{
|
|
8001
8001
|
className: "size-4 rounded-md",
|
|
8002
8002
|
"data-sidebar": "menu-skeleton-icon"
|
|
8003
8003
|
}
|
|
8004
8004
|
),
|
|
8005
8005
|
/* @__PURE__ */ u.jsx(
|
|
8006
|
-
|
|
8006
|
+
Ao,
|
|
8007
8007
|
{
|
|
8008
8008
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
8009
8009
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -8107,7 +8107,7 @@ function wp({
|
|
|
8107
8107
|
c.preventDefault(), c.stopPropagation(), i(!a);
|
|
8108
8108
|
},
|
|
8109
8109
|
"aria-label": a ? "Collapse section" : "Expand section",
|
|
8110
|
-
children: a ? /* @__PURE__ */ u.jsx(Wc, { className: "h-4 w-4" }) : /* @__PURE__ */ u.jsx(
|
|
8110
|
+
children: a ? /* @__PURE__ */ u.jsx(Wc, { className: "h-4 w-4" }) : /* @__PURE__ */ u.jsx(es, { className: "h-4 w-4" })
|
|
8111
8111
|
}
|
|
8112
8112
|
)
|
|
8113
8113
|
] }),
|
|
@@ -8123,7 +8123,7 @@ function wp({
|
|
|
8123
8123
|
)
|
|
8124
8124
|
] }) });
|
|
8125
8125
|
}
|
|
8126
|
-
function
|
|
8126
|
+
function Fa(e) {
|
|
8127
8127
|
const t = e + "CollectionProvider", [n, r] = Je(t), [o, s] = n(
|
|
8128
8128
|
t,
|
|
8129
8129
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -8164,17 +8164,17 @@ function La(e) {
|
|
|
8164
8164
|
];
|
|
8165
8165
|
}
|
|
8166
8166
|
var yp = l.createContext(void 0);
|
|
8167
|
-
function
|
|
8167
|
+
function $a(e) {
|
|
8168
8168
|
const t = l.useContext(yp);
|
|
8169
8169
|
return e || t || "ltr";
|
|
8170
8170
|
}
|
|
8171
|
-
var $n = "rovingFocusGroup.onEntryFocus", Cp = { bubbles: !1, cancelable: !0 }, Mt = "RovingFocusGroup", [sr,
|
|
8171
|
+
var $n = "rovingFocusGroup.onEntryFocus", Cp = { bubbles: !1, cancelable: !0 }, Mt = "RovingFocusGroup", [sr, Va, Ep] = Fa(Mt), [Sp, Ha] = Je(
|
|
8172
8172
|
Mt,
|
|
8173
8173
|
[Ep]
|
|
8174
|
-
), [Rp, _p] = Sp(Mt),
|
|
8174
|
+
), [Rp, _p] = Sp(Mt), za = l.forwardRef(
|
|
8175
8175
|
(e, t) => /* @__PURE__ */ u.jsx(sr.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(sr.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Mp, { ...e, ref: t }) }) })
|
|
8176
8176
|
);
|
|
8177
|
-
|
|
8177
|
+
za.displayName = Mt;
|
|
8178
8178
|
var Mp = l.forwardRef((e, t) => {
|
|
8179
8179
|
const {
|
|
8180
8180
|
__scopeRovingFocusGroup: n,
|
|
@@ -8187,12 +8187,12 @@ var Mp = l.forwardRef((e, t) => {
|
|
|
8187
8187
|
onEntryFocus: p,
|
|
8188
8188
|
preventScrollOnEntryFocus: d = !1,
|
|
8189
8189
|
...f
|
|
8190
|
-
} = e, m = l.useRef(null), h = ae(t, m), b =
|
|
8190
|
+
} = e, m = l.useRef(null), h = ae(t, m), b = $a(s), [g, x] = Rt({
|
|
8191
8191
|
prop: a,
|
|
8192
8192
|
defaultProp: i ?? null,
|
|
8193
8193
|
onChange: c,
|
|
8194
8194
|
caller: Mt
|
|
8195
|
-
}), [v, w] = l.useState(!1), E = Me(p), S =
|
|
8195
|
+
}), [v, w] = l.useState(!1), E = Me(p), S = Va(n), R = l.useRef(!1), [A, M] = l.useState(0);
|
|
8196
8196
|
return l.useEffect(() => {
|
|
8197
8197
|
const C = m.current;
|
|
8198
8198
|
if (C)
|
|
@@ -8237,7 +8237,7 @@ var Mp = l.forwardRef((e, t) => {
|
|
|
8237
8237
|
const B = S().filter((L) => L.focusable), W = B.find((L) => L.active), V = B.find((L) => L.id === g), Y = [W, V, ...B].filter(
|
|
8238
8238
|
Boolean
|
|
8239
8239
|
).map((L) => L.ref.current);
|
|
8240
|
-
|
|
8240
|
+
Ga(Y, d);
|
|
8241
8241
|
}
|
|
8242
8242
|
}
|
|
8243
8243
|
R.current = !1;
|
|
@@ -8247,7 +8247,7 @@ var Mp = l.forwardRef((e, t) => {
|
|
|
8247
8247
|
)
|
|
8248
8248
|
}
|
|
8249
8249
|
);
|
|
8250
|
-
}),
|
|
8250
|
+
}), Wa = "RovingFocusGroupItem", Ba = l.forwardRef(
|
|
8251
8251
|
(e, t) => {
|
|
8252
8252
|
const {
|
|
8253
8253
|
__scopeRovingFocusGroup: n,
|
|
@@ -8256,7 +8256,7 @@ var Mp = l.forwardRef((e, t) => {
|
|
|
8256
8256
|
tabStopId: s,
|
|
8257
8257
|
children: a,
|
|
8258
8258
|
...i
|
|
8259
|
-
} = e, c = De(), p = s || c, d = _p(
|
|
8259
|
+
} = e, c = De(), p = s || c, d = _p(Wa, n), f = d.currentTabStopId === p, m = Va(n), { onFocusableItemAdd: h, onFocusableItemRemove: b, currentTabStopId: g } = d;
|
|
8260
8260
|
return l.useEffect(() => {
|
|
8261
8261
|
if (r)
|
|
8262
8262
|
return h(), () => b();
|
|
@@ -8295,7 +8295,7 @@ var Mp = l.forwardRef((e, t) => {
|
|
|
8295
8295
|
const S = E.indexOf(x.currentTarget);
|
|
8296
8296
|
E = d.loop ? Np(E, S + 1) : E.slice(S + 1);
|
|
8297
8297
|
}
|
|
8298
|
-
setTimeout(() =>
|
|
8298
|
+
setTimeout(() => Ga(E));
|
|
8299
8299
|
}
|
|
8300
8300
|
}),
|
|
8301
8301
|
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: g != null }) : a
|
|
@@ -8305,7 +8305,7 @@ var Mp = l.forwardRef((e, t) => {
|
|
|
8305
8305
|
);
|
|
8306
8306
|
}
|
|
8307
8307
|
);
|
|
8308
|
-
|
|
8308
|
+
Ba.displayName = Wa;
|
|
8309
8309
|
var Ap = {
|
|
8310
8310
|
ArrowLeft: "prev",
|
|
8311
8311
|
ArrowUp: "prev",
|
|
@@ -8324,7 +8324,7 @@ function kp(e, t, n) {
|
|
|
8324
8324
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
8325
8325
|
return Ap[r];
|
|
8326
8326
|
}
|
|
8327
|
-
function
|
|
8327
|
+
function Ga(e, t = !1) {
|
|
8328
8328
|
const n = document.activeElement;
|
|
8329
8329
|
for (const r of e)
|
|
8330
8330
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
@@ -8332,18 +8332,18 @@ function Ba(e, t = !1) {
|
|
|
8332
8332
|
function Np(e, t) {
|
|
8333
8333
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
8334
8334
|
}
|
|
8335
|
-
var Op =
|
|
8335
|
+
var Op = za, Pp = Ba, ar = ["Enter", " "], Dp = ["ArrowDown", "PageUp", "Home"], Ua = ["ArrowUp", "PageDown", "End"], Ip = [...Dp, ...Ua], jp = {
|
|
8336
8336
|
ltr: [...ar, "ArrowRight"],
|
|
8337
8337
|
rtl: [...ar, "ArrowLeft"]
|
|
8338
8338
|
}, Lp = {
|
|
8339
8339
|
ltr: ["ArrowLeft"],
|
|
8340
8340
|
rtl: ["ArrowRight"]
|
|
8341
|
-
}, At = "Menu", [Ct, Fp, $p] =
|
|
8341
|
+
}, At = "Menu", [Ct, Fp, $p] = Fa(At), [Qe, Ka] = Je(At, [
|
|
8342
8342
|
$p,
|
|
8343
8343
|
dn,
|
|
8344
|
-
|
|
8345
|
-
]), Tt = dn(),
|
|
8346
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = Tt(t), [c, p] = l.useState(null), d = l.useRef(!1), f = Me(s), m =
|
|
8344
|
+
Ha
|
|
8345
|
+
]), Tt = dn(), Ya = Ha(), [qa, Ye] = Qe(At), [Vp, kt] = Qe(At), Xa = (e) => {
|
|
8346
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = Tt(t), [c, p] = l.useState(null), d = l.useRef(!1), f = Me(s), m = $a(o);
|
|
8347
8347
|
return l.useEffect(() => {
|
|
8348
8348
|
const h = () => {
|
|
8349
8349
|
d.current = !0, document.addEventListener("pointerdown", b, { capture: !0, once: !0 }), document.addEventListener("pointermove", b, { capture: !0, once: !0 });
|
|
@@ -8351,8 +8351,8 @@ var Op = Ha, Pp = Wa, ar = ["Enter", " "], Dp = ["ArrowDown", "PageUp", "Home"],
|
|
|
8351
8351
|
return document.addEventListener("keydown", h, { capture: !0 }), () => {
|
|
8352
8352
|
document.removeEventListener("keydown", h, { capture: !0 }), document.removeEventListener("pointerdown", b, { capture: !0 }), document.removeEventListener("pointermove", b, { capture: !0 });
|
|
8353
8353
|
};
|
|
8354
|
-
}, []), /* @__PURE__ */ u.jsx(
|
|
8355
|
-
|
|
8354
|
+
}, []), /* @__PURE__ */ u.jsx(Or, { ...i, children: /* @__PURE__ */ u.jsx(
|
|
8355
|
+
qa,
|
|
8356
8356
|
{
|
|
8357
8357
|
scope: t,
|
|
8358
8358
|
open: n,
|
|
@@ -8373,24 +8373,24 @@ var Op = Ha, Pp = Wa, ar = ["Enter", " "], Dp = ["ArrowDown", "PageUp", "Home"],
|
|
|
8373
8373
|
}
|
|
8374
8374
|
) });
|
|
8375
8375
|
};
|
|
8376
|
-
|
|
8377
|
-
var Hp = "MenuAnchor",
|
|
8376
|
+
Xa.displayName = At;
|
|
8377
|
+
var Hp = "MenuAnchor", Dr = l.forwardRef(
|
|
8378
8378
|
(e, t) => {
|
|
8379
8379
|
const { __scopeMenu: n, ...r } = e, o = Tt(n);
|
|
8380
|
-
return /* @__PURE__ */ u.jsx(
|
|
8380
|
+
return /* @__PURE__ */ u.jsx(Sa, { ...o, ...r, ref: t });
|
|
8381
8381
|
}
|
|
8382
8382
|
);
|
|
8383
|
-
|
|
8384
|
-
var
|
|
8383
|
+
Dr.displayName = Hp;
|
|
8384
|
+
var Ir = "MenuPortal", [zp, Za] = Qe(Ir, {
|
|
8385
8385
|
forceMount: void 0
|
|
8386
|
-
}),
|
|
8387
|
-
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Ye(
|
|
8388
|
-
return /* @__PURE__ */ u.jsx(zp, { scope: t, forceMount: n, children: /* @__PURE__ */ u.jsx(Fe, { present: n || s.open, children: /* @__PURE__ */ u.jsx(
|
|
8386
|
+
}), Ja = (e) => {
|
|
8387
|
+
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Ye(Ir, t);
|
|
8388
|
+
return /* @__PURE__ */ u.jsx(zp, { scope: t, forceMount: n, children: /* @__PURE__ */ u.jsx(Fe, { present: n || s.open, children: /* @__PURE__ */ u.jsx(br, { asChild: !0, container: o, children: r }) }) });
|
|
8389
8389
|
};
|
|
8390
|
-
|
|
8391
|
-
var be = "MenuContent", [Wp,
|
|
8390
|
+
Ja.displayName = Ir;
|
|
8391
|
+
var be = "MenuContent", [Wp, jr] = Qe(be), Qa = l.forwardRef(
|
|
8392
8392
|
(e, t) => {
|
|
8393
|
-
const n =
|
|
8393
|
+
const n = Za(be, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Ye(be, e.__scopeMenu), a = kt(be, e.__scopeMenu);
|
|
8394
8394
|
return /* @__PURE__ */ u.jsx(Ct.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(Fe, { present: r || s.open, children: /* @__PURE__ */ u.jsx(Ct.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ u.jsx(Bp, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(Gp, { ...o, ref: t }) }) }) });
|
|
8395
8395
|
}
|
|
8396
8396
|
), Bp = l.forwardRef(
|
|
@@ -8398,9 +8398,9 @@ var be = "MenuContent", [Wp, Ir] = Qe(be), Ja = l.forwardRef(
|
|
|
8398
8398
|
const n = Ye(be, e.__scopeMenu), r = l.useRef(null), o = ae(t, r);
|
|
8399
8399
|
return l.useEffect(() => {
|
|
8400
8400
|
const s = r.current;
|
|
8401
|
-
if (s) return
|
|
8401
|
+
if (s) return Ns(s);
|
|
8402
8402
|
}, []), /* @__PURE__ */ u.jsx(
|
|
8403
|
-
|
|
8403
|
+
Lr,
|
|
8404
8404
|
{
|
|
8405
8405
|
...e,
|
|
8406
8406
|
ref: o,
|
|
@@ -8419,7 +8419,7 @@ var be = "MenuContent", [Wp, Ir] = Qe(be), Ja = l.forwardRef(
|
|
|
8419
8419
|
), Gp = l.forwardRef((e, t) => {
|
|
8420
8420
|
const n = Ye(be, e.__scopeMenu);
|
|
8421
8421
|
return /* @__PURE__ */ u.jsx(
|
|
8422
|
-
|
|
8422
|
+
Lr,
|
|
8423
8423
|
{
|
|
8424
8424
|
...e,
|
|
8425
8425
|
ref: t,
|
|
@@ -8429,7 +8429,7 @@ var be = "MenuContent", [Wp, Ir] = Qe(be), Ja = l.forwardRef(
|
|
|
8429
8429
|
onDismiss: () => n.onOpenChange(!1)
|
|
8430
8430
|
}
|
|
8431
8431
|
);
|
|
8432
|
-
}), Up = /* @__PURE__ */ at("MenuContent.ScrollLock"),
|
|
8432
|
+
}), Up = /* @__PURE__ */ at("MenuContent.ScrollLock"), Lr = l.forwardRef(
|
|
8433
8433
|
(e, t) => {
|
|
8434
8434
|
const {
|
|
8435
8435
|
__scopeMenu: n,
|
|
@@ -8446,14 +8446,14 @@ var be = "MenuContent", [Wp, Ir] = Qe(be), Ja = l.forwardRef(
|
|
|
8446
8446
|
onDismiss: h,
|
|
8447
8447
|
disableOutsideScroll: b,
|
|
8448
8448
|
...g
|
|
8449
|
-
} = e, x = Ye(be, n), v = kt(be, n), w = Tt(n), E =
|
|
8449
|
+
} = e, x = Ye(be, n), v = kt(be, n), w = Tt(n), E = Ya(n), S = Fp(n), [R, A] = l.useState(null), M = l.useRef(null), C = ae(t, M, x.onContentChange), D = l.useRef(0), I = l.useRef(""), B = l.useRef(0), W = l.useRef(null), V = l.useRef("right"), H = l.useRef(0), Y = b ? xr : l.Fragment, L = b ? { as: Up, allowPinchZoom: !0 } : void 0, G = (T) => {
|
|
8450
8450
|
var U, J;
|
|
8451
8451
|
const y = I.current + T, k = S().filter((Q) => !Q.disabled), j = document.activeElement, $ = (U = k.find((Q) => Q.ref.current === j)) == null ? void 0 : U.textValue, q = k.map((Q) => Q.textValue), ee = om(q, y, $), ce = (J = k.find((Q) => Q.textValue === ee)) == null ? void 0 : J.ref.current;
|
|
8452
8452
|
(function Q(oe) {
|
|
8453
8453
|
I.current = oe, window.clearTimeout(D.current), oe !== "" && (D.current = window.setTimeout(() => Q(""), 1e3));
|
|
8454
8454
|
})(y), ce && setTimeout(() => ce.focus());
|
|
8455
8455
|
};
|
|
8456
|
-
l.useEffect(() => () => window.clearTimeout(D.current), []),
|
|
8456
|
+
l.useEffect(() => () => window.clearTimeout(D.current), []), Cs();
|
|
8457
8457
|
const _ = l.useCallback((T) => {
|
|
8458
8458
|
var k, j;
|
|
8459
8459
|
return V.current === ((k = W.current) == null ? void 0 : k.side) && am(T, (j = W.current) == null ? void 0 : j.area);
|
|
@@ -8487,7 +8487,7 @@ var be = "MenuContent", [Wp, Ir] = Qe(be), Ja = l.forwardRef(
|
|
|
8487
8487
|
W.current = T;
|
|
8488
8488
|
}, []),
|
|
8489
8489
|
children: /* @__PURE__ */ u.jsx(Y, { ...L, children: /* @__PURE__ */ u.jsx(
|
|
8490
|
-
|
|
8490
|
+
vr,
|
|
8491
8491
|
{
|
|
8492
8492
|
asChild: !0,
|
|
8493
8493
|
trapped: o,
|
|
@@ -8521,11 +8521,11 @@ var be = "MenuContent", [Wp, Ir] = Qe(be), Ja = l.forwardRef(
|
|
|
8521
8521
|
}),
|
|
8522
8522
|
preventScrollOnEntryFocus: !0,
|
|
8523
8523
|
children: /* @__PURE__ */ u.jsx(
|
|
8524
|
-
|
|
8524
|
+
Ra,
|
|
8525
8525
|
{
|
|
8526
8526
|
role: "menu",
|
|
8527
8527
|
"aria-orientation": "vertical",
|
|
8528
|
-
"data-state":
|
|
8528
|
+
"data-state": gi(x.open),
|
|
8529
8529
|
"data-radix-menu-content": "",
|
|
8530
8530
|
dir: v.dir,
|
|
8531
8531
|
...w,
|
|
@@ -8539,7 +8539,7 @@ var be = "MenuContent", [Wp, Ir] = Qe(be), Ja = l.forwardRef(
|
|
|
8539
8539
|
if (T.target !== q || !Ip.includes(T.key)) return;
|
|
8540
8540
|
T.preventDefault();
|
|
8541
8541
|
const ce = S().filter((U) => !U.disabled).map((U) => U.ref.current);
|
|
8542
|
-
|
|
8542
|
+
Ua.includes(T.key) && ce.reverse(), nm(ce);
|
|
8543
8543
|
}),
|
|
8544
8544
|
onBlur: F(e.onBlur, (T) => {
|
|
8545
8545
|
T.currentTarget.contains(T.target) || (window.clearTimeout(D.current), I.current = "");
|
|
@@ -8566,32 +8566,32 @@ var be = "MenuContent", [Wp, Ir] = Qe(be), Ja = l.forwardRef(
|
|
|
8566
8566
|
);
|
|
8567
8567
|
}
|
|
8568
8568
|
);
|
|
8569
|
-
|
|
8570
|
-
var Kp = "MenuGroup",
|
|
8569
|
+
Qa.displayName = be;
|
|
8570
|
+
var Kp = "MenuGroup", Fr = l.forwardRef(
|
|
8571
8571
|
(e, t) => {
|
|
8572
8572
|
const { __scopeMenu: n, ...r } = e;
|
|
8573
8573
|
return /* @__PURE__ */ u.jsx(ne.div, { role: "group", ...r, ref: t });
|
|
8574
8574
|
}
|
|
8575
8575
|
);
|
|
8576
|
-
|
|
8577
|
-
var Yp = "MenuLabel",
|
|
8576
|
+
Fr.displayName = Kp;
|
|
8577
|
+
var Yp = "MenuLabel", ei = l.forwardRef(
|
|
8578
8578
|
(e, t) => {
|
|
8579
8579
|
const { __scopeMenu: n, ...r } = e;
|
|
8580
8580
|
return /* @__PURE__ */ u.jsx(ne.div, { ...r, ref: t });
|
|
8581
8581
|
}
|
|
8582
8582
|
);
|
|
8583
|
-
|
|
8584
|
-
var tn = "MenuItem",
|
|
8583
|
+
ei.displayName = Yp;
|
|
8584
|
+
var tn = "MenuItem", Lo = "menu.itemSelect", gn = l.forwardRef(
|
|
8585
8585
|
(e, t) => {
|
|
8586
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = l.useRef(null), a = kt(tn, e.__scopeMenu), i =
|
|
8586
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = l.useRef(null), a = kt(tn, e.__scopeMenu), i = jr(tn, e.__scopeMenu), c = ae(t, s), p = l.useRef(!1), d = () => {
|
|
8587
8587
|
const f = s.current;
|
|
8588
8588
|
if (!n && f) {
|
|
8589
|
-
const m = new CustomEvent(
|
|
8590
|
-
f.addEventListener(
|
|
8589
|
+
const m = new CustomEvent(Lo, { bubbles: !0, cancelable: !0 });
|
|
8590
|
+
f.addEventListener(Lo, (h) => r == null ? void 0 : r(h), { once: !0 }), gs(f, m), m.defaultPrevented ? p.current = !1 : a.onClose();
|
|
8591
8591
|
}
|
|
8592
8592
|
};
|
|
8593
8593
|
return /* @__PURE__ */ u.jsx(
|
|
8594
|
-
|
|
8594
|
+
ti,
|
|
8595
8595
|
{
|
|
8596
8596
|
...o,
|
|
8597
8597
|
ref: c,
|
|
@@ -8614,9 +8614,9 @@ var tn = "MenuItem", jo = "menu.itemSelect", gn = l.forwardRef(
|
|
|
8614
8614
|
}
|
|
8615
8615
|
);
|
|
8616
8616
|
gn.displayName = tn;
|
|
8617
|
-
var
|
|
8617
|
+
var ti = l.forwardRef(
|
|
8618
8618
|
(e, t) => {
|
|
8619
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a =
|
|
8619
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = jr(tn, n), i = Ya(n), c = l.useRef(null), p = ae(t, c), [d, f] = l.useState(!1), [m, h] = l.useState("");
|
|
8620
8620
|
return l.useEffect(() => {
|
|
8621
8621
|
const b = c.current;
|
|
8622
8622
|
b && h((b.textContent ?? "").trim());
|
|
@@ -8652,17 +8652,17 @@ var ei = l.forwardRef(
|
|
|
8652
8652
|
}
|
|
8653
8653
|
);
|
|
8654
8654
|
}
|
|
8655
|
-
), qp = "MenuCheckboxItem",
|
|
8655
|
+
), qp = "MenuCheckboxItem", ni = l.forwardRef(
|
|
8656
8656
|
(e, t) => {
|
|
8657
8657
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
8658
|
-
return /* @__PURE__ */ u.jsx(
|
|
8658
|
+
return /* @__PURE__ */ u.jsx(ii, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ u.jsx(
|
|
8659
8659
|
gn,
|
|
8660
8660
|
{
|
|
8661
8661
|
role: "menuitemcheckbox",
|
|
8662
8662
|
"aria-checked": nn(n) ? "mixed" : n,
|
|
8663
8663
|
...o,
|
|
8664
8664
|
ref: t,
|
|
8665
|
-
"data-state":
|
|
8665
|
+
"data-state": Hr(n),
|
|
8666
8666
|
onSelect: F(
|
|
8667
8667
|
o.onSelect,
|
|
8668
8668
|
() => r == null ? void 0 : r(nn(n) ? !0 : !n),
|
|
@@ -8672,29 +8672,29 @@ var ei = l.forwardRef(
|
|
|
8672
8672
|
) });
|
|
8673
8673
|
}
|
|
8674
8674
|
);
|
|
8675
|
-
|
|
8676
|
-
var
|
|
8677
|
-
|
|
8675
|
+
ni.displayName = qp;
|
|
8676
|
+
var ri = "MenuRadioGroup", [Xp, Zp] = Qe(
|
|
8677
|
+
ri,
|
|
8678
8678
|
{ value: void 0, onValueChange: () => {
|
|
8679
8679
|
} }
|
|
8680
|
-
),
|
|
8680
|
+
), oi = l.forwardRef(
|
|
8681
8681
|
(e, t) => {
|
|
8682
8682
|
const { value: n, onValueChange: r, ...o } = e, s = Me(r);
|
|
8683
|
-
return /* @__PURE__ */ u.jsx(Xp, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ u.jsx(
|
|
8683
|
+
return /* @__PURE__ */ u.jsx(Xp, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ u.jsx(Fr, { ...o, ref: t }) });
|
|
8684
8684
|
}
|
|
8685
8685
|
);
|
|
8686
|
-
|
|
8687
|
-
var
|
|
8686
|
+
oi.displayName = ri;
|
|
8687
|
+
var si = "MenuRadioItem", ai = l.forwardRef(
|
|
8688
8688
|
(e, t) => {
|
|
8689
|
-
const { value: n, ...r } = e, o = Zp(
|
|
8690
|
-
return /* @__PURE__ */ u.jsx(
|
|
8689
|
+
const { value: n, ...r } = e, o = Zp(si, e.__scopeMenu), s = n === o.value;
|
|
8690
|
+
return /* @__PURE__ */ u.jsx(ii, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ u.jsx(
|
|
8691
8691
|
gn,
|
|
8692
8692
|
{
|
|
8693
8693
|
role: "menuitemradio",
|
|
8694
8694
|
"aria-checked": s,
|
|
8695
8695
|
...r,
|
|
8696
8696
|
ref: t,
|
|
8697
|
-
"data-state":
|
|
8697
|
+
"data-state": Hr(s),
|
|
8698
8698
|
onSelect: F(
|
|
8699
8699
|
r.onSelect,
|
|
8700
8700
|
() => {
|
|
@@ -8707,13 +8707,13 @@ var oi = "MenuRadioItem", si = l.forwardRef(
|
|
|
8707
8707
|
) });
|
|
8708
8708
|
}
|
|
8709
8709
|
);
|
|
8710
|
-
|
|
8711
|
-
var
|
|
8712
|
-
|
|
8710
|
+
ai.displayName = si;
|
|
8711
|
+
var $r = "MenuItemIndicator", [ii, Jp] = Qe(
|
|
8712
|
+
$r,
|
|
8713
8713
|
{ checked: !1 }
|
|
8714
|
-
),
|
|
8714
|
+
), ci = l.forwardRef(
|
|
8715
8715
|
(e, t) => {
|
|
8716
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s = Jp(
|
|
8716
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = Jp($r, n);
|
|
8717
8717
|
return /* @__PURE__ */ u.jsx(
|
|
8718
8718
|
Fe,
|
|
8719
8719
|
{
|
|
@@ -8723,15 +8723,15 @@ var Fr = "MenuItemIndicator", [ai, Jp] = Qe(
|
|
|
8723
8723
|
{
|
|
8724
8724
|
...o,
|
|
8725
8725
|
ref: t,
|
|
8726
|
-
"data-state":
|
|
8726
|
+
"data-state": Hr(s.checked)
|
|
8727
8727
|
}
|
|
8728
8728
|
)
|
|
8729
8729
|
}
|
|
8730
8730
|
);
|
|
8731
8731
|
}
|
|
8732
8732
|
);
|
|
8733
|
-
|
|
8734
|
-
var Qp = "MenuSeparator",
|
|
8733
|
+
ci.displayName = $r;
|
|
8734
|
+
var Qp = "MenuSeparator", li = l.forwardRef(
|
|
8735
8735
|
(e, t) => {
|
|
8736
8736
|
const { __scopeMenu: n, ...r } = e;
|
|
8737
8737
|
return /* @__PURE__ */ u.jsx(
|
|
@@ -8745,18 +8745,18 @@ var Qp = "MenuSeparator", ci = l.forwardRef(
|
|
|
8745
8745
|
);
|
|
8746
8746
|
}
|
|
8747
8747
|
);
|
|
8748
|
-
|
|
8749
|
-
var em = "MenuArrow",
|
|
8748
|
+
li.displayName = Qp;
|
|
8749
|
+
var em = "MenuArrow", ui = l.forwardRef(
|
|
8750
8750
|
(e, t) => {
|
|
8751
8751
|
const { __scopeMenu: n, ...r } = e, o = Tt(n);
|
|
8752
|
-
return /* @__PURE__ */ u.jsx(
|
|
8752
|
+
return /* @__PURE__ */ u.jsx(_a, { ...o, ...r, ref: t });
|
|
8753
8753
|
}
|
|
8754
8754
|
);
|
|
8755
|
-
|
|
8756
|
-
var
|
|
8757
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Ye(
|
|
8758
|
-
return l.useEffect(() => (s.open === !1 && f(!1), () => f(!1)), [s.open, f]), /* @__PURE__ */ u.jsx(
|
|
8759
|
-
|
|
8755
|
+
ui.displayName = em;
|
|
8756
|
+
var Vr = "MenuSub", [tm, di] = Qe(Vr), fi = (e) => {
|
|
8757
|
+
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Ye(Vr, t), a = Tt(t), [i, c] = l.useState(null), [p, d] = l.useState(null), f = Me(o);
|
|
8758
|
+
return l.useEffect(() => (s.open === !1 && f(!1), () => f(!1)), [s.open, f]), /* @__PURE__ */ u.jsx(Or, { ...a, children: /* @__PURE__ */ u.jsx(
|
|
8759
|
+
qa,
|
|
8760
8760
|
{
|
|
8761
8761
|
scope: t,
|
|
8762
8762
|
open: r,
|
|
@@ -8777,10 +8777,10 @@ var $r = "MenuSub", [tm, ui] = Qe($r), di = (e) => {
|
|
|
8777
8777
|
}
|
|
8778
8778
|
) });
|
|
8779
8779
|
};
|
|
8780
|
-
|
|
8781
|
-
var vt = "MenuSubTrigger",
|
|
8780
|
+
fi.displayName = Vr;
|
|
8781
|
+
var vt = "MenuSubTrigger", pi = l.forwardRef(
|
|
8782
8782
|
(e, t) => {
|
|
8783
|
-
const n = Ye(vt, e.__scopeMenu), r = kt(vt, e.__scopeMenu), o =
|
|
8783
|
+
const n = Ye(vt, e.__scopeMenu), r = kt(vt, e.__scopeMenu), o = di(vt, e.__scopeMenu), s = jr(vt, e.__scopeMenu), a = l.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: c } = s, p = { __scopeMenu: e.__scopeMenu }, d = l.useCallback(() => {
|
|
8784
8784
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
8785
8785
|
}, []);
|
|
8786
8786
|
return l.useEffect(() => d, [d]), l.useEffect(() => {
|
|
@@ -8788,14 +8788,14 @@ var vt = "MenuSubTrigger", fi = l.forwardRef(
|
|
|
8788
8788
|
return () => {
|
|
8789
8789
|
window.clearTimeout(f), c(null);
|
|
8790
8790
|
};
|
|
8791
|
-
}, [i, c]), /* @__PURE__ */ u.jsx(
|
|
8792
|
-
|
|
8791
|
+
}, [i, c]), /* @__PURE__ */ u.jsx(Dr, { asChild: !0, ...p, children: /* @__PURE__ */ u.jsx(
|
|
8792
|
+
ti,
|
|
8793
8793
|
{
|
|
8794
8794
|
id: o.triggerId,
|
|
8795
8795
|
"aria-haspopup": "menu",
|
|
8796
8796
|
"aria-expanded": n.open,
|
|
8797
8797
|
"aria-controls": o.contentId,
|
|
8798
|
-
"data-state":
|
|
8798
|
+
"data-state": gi(n.open),
|
|
8799
8799
|
...e,
|
|
8800
8800
|
ref: rn(t, o.onTriggerChange),
|
|
8801
8801
|
onClick: (f) => {
|
|
@@ -8848,12 +8848,12 @@ var vt = "MenuSubTrigger", fi = l.forwardRef(
|
|
|
8848
8848
|
) });
|
|
8849
8849
|
}
|
|
8850
8850
|
);
|
|
8851
|
-
|
|
8852
|
-
var
|
|
8851
|
+
pi.displayName = vt;
|
|
8852
|
+
var mi = "MenuSubContent", hi = l.forwardRef(
|
|
8853
8853
|
(e, t) => {
|
|
8854
|
-
const n =
|
|
8854
|
+
const n = Za(be, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Ye(be, e.__scopeMenu), a = kt(be, e.__scopeMenu), i = di(mi, e.__scopeMenu), c = l.useRef(null), p = ae(t, c);
|
|
8855
8855
|
return /* @__PURE__ */ u.jsx(Ct.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(Fe, { present: r || s.open, children: /* @__PURE__ */ u.jsx(Ct.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(
|
|
8856
|
-
|
|
8856
|
+
Lr,
|
|
8857
8857
|
{
|
|
8858
8858
|
id: i.contentId,
|
|
8859
8859
|
"aria-labelledby": i.triggerId,
|
|
@@ -8884,14 +8884,14 @@ var pi = "MenuSubContent", mi = l.forwardRef(
|
|
|
8884
8884
|
) }) }) });
|
|
8885
8885
|
}
|
|
8886
8886
|
);
|
|
8887
|
-
|
|
8888
|
-
function
|
|
8887
|
+
hi.displayName = mi;
|
|
8888
|
+
function gi(e) {
|
|
8889
8889
|
return e ? "open" : "closed";
|
|
8890
8890
|
}
|
|
8891
8891
|
function nn(e) {
|
|
8892
8892
|
return e === "indeterminate";
|
|
8893
8893
|
}
|
|
8894
|
-
function
|
|
8894
|
+
function Hr(e) {
|
|
8895
8895
|
return nn(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
8896
8896
|
}
|
|
8897
8897
|
function nm(e) {
|
|
@@ -8928,10 +8928,10 @@ function am(e, t) {
|
|
|
8928
8928
|
function Et(e) {
|
|
8929
8929
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
8930
8930
|
}
|
|
8931
|
-
var im =
|
|
8931
|
+
var im = Xa, cm = Dr, lm = Ja, um = Qa, dm = Fr, fm = ei, pm = gn, mm = ni, hm = oi, gm = ai, vm = ci, bm = li, xm = ui, wm = fi, ym = pi, Cm = hi, vn = "DropdownMenu", [Em, L0] = Je(
|
|
8932
8932
|
vn,
|
|
8933
|
-
[
|
|
8934
|
-
), de =
|
|
8933
|
+
[Ka]
|
|
8934
|
+
), de = Ka(), [Sm, vi] = Em(vn), bi = (e) => {
|
|
8935
8935
|
const {
|
|
8936
8936
|
__scopeDropdownMenu: t,
|
|
8937
8937
|
children: n,
|
|
@@ -8961,10 +8961,10 @@ var im = qa, cm = Pr, lm = Za, um = Ja, dm = Lr, fm = Qa, pm = gn, mm = ti, hm =
|
|
|
8961
8961
|
}
|
|
8962
8962
|
);
|
|
8963
8963
|
};
|
|
8964
|
-
|
|
8965
|
-
var
|
|
8964
|
+
bi.displayName = vn;
|
|
8965
|
+
var xi = "DropdownMenuTrigger", wi = l.forwardRef(
|
|
8966
8966
|
(e, t) => {
|
|
8967
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s =
|
|
8967
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = vi(xi, n), a = de(n);
|
|
8968
8968
|
return /* @__PURE__ */ u.jsx(cm, { asChild: !0, ...a, children: /* @__PURE__ */ u.jsx(
|
|
8969
8969
|
ne.button,
|
|
8970
8970
|
{
|
|
@@ -8988,15 +8988,15 @@ var bi = "DropdownMenuTrigger", xi = l.forwardRef(
|
|
|
8988
8988
|
) });
|
|
8989
8989
|
}
|
|
8990
8990
|
);
|
|
8991
|
-
|
|
8992
|
-
var Rm = "DropdownMenuPortal",
|
|
8991
|
+
wi.displayName = xi;
|
|
8992
|
+
var Rm = "DropdownMenuPortal", yi = (e) => {
|
|
8993
8993
|
const { __scopeDropdownMenu: t, ...n } = e, r = de(t);
|
|
8994
8994
|
return /* @__PURE__ */ u.jsx(lm, { ...r, ...n });
|
|
8995
8995
|
};
|
|
8996
|
-
|
|
8997
|
-
var
|
|
8996
|
+
yi.displayName = Rm;
|
|
8997
|
+
var Ci = "DropdownMenuContent", Ei = l.forwardRef(
|
|
8998
8998
|
(e, t) => {
|
|
8999
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
8999
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = vi(Ci, n), s = de(n), a = l.useRef(!1);
|
|
9000
9000
|
return /* @__PURE__ */ u.jsx(
|
|
9001
9001
|
um,
|
|
9002
9002
|
{
|
|
@@ -9025,53 +9025,53 @@ var yi = "DropdownMenuContent", Ci = l.forwardRef(
|
|
|
9025
9025
|
);
|
|
9026
9026
|
}
|
|
9027
9027
|
);
|
|
9028
|
-
|
|
9029
|
-
var _m = "DropdownMenuGroup",
|
|
9028
|
+
Ei.displayName = Ci;
|
|
9029
|
+
var _m = "DropdownMenuGroup", Si = l.forwardRef(
|
|
9030
9030
|
(e, t) => {
|
|
9031
9031
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9032
9032
|
return /* @__PURE__ */ u.jsx(dm, { ...o, ...r, ref: t });
|
|
9033
9033
|
}
|
|
9034
9034
|
);
|
|
9035
|
-
|
|
9036
|
-
var Mm = "DropdownMenuLabel",
|
|
9035
|
+
Si.displayName = _m;
|
|
9036
|
+
var Mm = "DropdownMenuLabel", Ri = l.forwardRef(
|
|
9037
9037
|
(e, t) => {
|
|
9038
9038
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9039
9039
|
return /* @__PURE__ */ u.jsx(fm, { ...o, ...r, ref: t });
|
|
9040
9040
|
}
|
|
9041
9041
|
);
|
|
9042
|
-
|
|
9043
|
-
var Am = "DropdownMenuItem",
|
|
9042
|
+
Ri.displayName = Mm;
|
|
9043
|
+
var Am = "DropdownMenuItem", _i = l.forwardRef(
|
|
9044
9044
|
(e, t) => {
|
|
9045
9045
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9046
9046
|
return /* @__PURE__ */ u.jsx(pm, { ...o, ...r, ref: t });
|
|
9047
9047
|
}
|
|
9048
9048
|
);
|
|
9049
|
-
|
|
9050
|
-
var Tm = "DropdownMenuCheckboxItem",
|
|
9049
|
+
_i.displayName = Am;
|
|
9050
|
+
var Tm = "DropdownMenuCheckboxItem", Mi = l.forwardRef((e, t) => {
|
|
9051
9051
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9052
9052
|
return /* @__PURE__ */ u.jsx(mm, { ...o, ...r, ref: t });
|
|
9053
9053
|
});
|
|
9054
|
-
|
|
9055
|
-
var km = "DropdownMenuRadioGroup",
|
|
9054
|
+
Mi.displayName = Tm;
|
|
9055
|
+
var km = "DropdownMenuRadioGroup", Ai = l.forwardRef((e, t) => {
|
|
9056
9056
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9057
9057
|
return /* @__PURE__ */ u.jsx(hm, { ...o, ...r, ref: t });
|
|
9058
9058
|
});
|
|
9059
|
-
|
|
9060
|
-
var Nm = "DropdownMenuRadioItem",
|
|
9059
|
+
Ai.displayName = km;
|
|
9060
|
+
var Nm = "DropdownMenuRadioItem", Ti = l.forwardRef((e, t) => {
|
|
9061
9061
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9062
9062
|
return /* @__PURE__ */ u.jsx(gm, { ...o, ...r, ref: t });
|
|
9063
9063
|
});
|
|
9064
|
-
|
|
9065
|
-
var Om = "DropdownMenuItemIndicator",
|
|
9064
|
+
Ti.displayName = Nm;
|
|
9065
|
+
var Om = "DropdownMenuItemIndicator", ki = l.forwardRef((e, t) => {
|
|
9066
9066
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9067
9067
|
return /* @__PURE__ */ u.jsx(vm, { ...o, ...r, ref: t });
|
|
9068
9068
|
});
|
|
9069
|
-
|
|
9070
|
-
var Pm = "DropdownMenuSeparator",
|
|
9069
|
+
ki.displayName = Om;
|
|
9070
|
+
var Pm = "DropdownMenuSeparator", Ni = l.forwardRef((e, t) => {
|
|
9071
9071
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9072
9072
|
return /* @__PURE__ */ u.jsx(bm, { ...o, ...r, ref: t });
|
|
9073
9073
|
});
|
|
9074
|
-
|
|
9074
|
+
Ni.displayName = Pm;
|
|
9075
9075
|
var Dm = "DropdownMenuArrow", Im = l.forwardRef(
|
|
9076
9076
|
(e, t) => {
|
|
9077
9077
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
@@ -9087,12 +9087,12 @@ var jm = (e) => {
|
|
|
9087
9087
|
caller: "DropdownMenuSub"
|
|
9088
9088
|
});
|
|
9089
9089
|
return /* @__PURE__ */ u.jsx(wm, { ...a, open: i, onOpenChange: c, children: n });
|
|
9090
|
-
}, Lm = "DropdownMenuSubTrigger",
|
|
9090
|
+
}, Lm = "DropdownMenuSubTrigger", Oi = l.forwardRef((e, t) => {
|
|
9091
9091
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9092
9092
|
return /* @__PURE__ */ u.jsx(ym, { ...o, ...r, ref: t });
|
|
9093
9093
|
});
|
|
9094
|
-
|
|
9095
|
-
var Fm = "DropdownMenuSubContent",
|
|
9094
|
+
Oi.displayName = Lm;
|
|
9095
|
+
var Fm = "DropdownMenuSubContent", Pi = l.forwardRef((e, t) => {
|
|
9096
9096
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9097
9097
|
return /* @__PURE__ */ u.jsx(
|
|
9098
9098
|
Cm,
|
|
@@ -9111,17 +9111,17 @@ var Fm = "DropdownMenuSubContent", Oi = l.forwardRef((e, t) => {
|
|
|
9111
9111
|
}
|
|
9112
9112
|
);
|
|
9113
9113
|
});
|
|
9114
|
-
|
|
9115
|
-
var $m =
|
|
9114
|
+
Pi.displayName = Fm;
|
|
9115
|
+
var $m = bi, Vm = wi, Di = yi, Hm = Ei, zm = Si, Wm = Ri, Bm = _i, Gm = Mi, Um = Ai, Km = Ti, Ii = ki, Ym = Ni, qm = jm, Xm = Oi, Zm = Pi;
|
|
9116
9116
|
function Jm({
|
|
9117
9117
|
...e
|
|
9118
9118
|
}) {
|
|
9119
9119
|
return /* @__PURE__ */ u.jsx($m, { "data-slot": "dropdown-menu", ...e });
|
|
9120
9120
|
}
|
|
9121
|
-
function
|
|
9121
|
+
function F0({
|
|
9122
9122
|
...e
|
|
9123
9123
|
}) {
|
|
9124
|
-
return /* @__PURE__ */ u.jsx(
|
|
9124
|
+
return /* @__PURE__ */ u.jsx(Di, { "data-slot": "dropdown-menu-portal", ...e });
|
|
9125
9125
|
}
|
|
9126
9126
|
function Qm({
|
|
9127
9127
|
...e
|
|
@@ -9139,7 +9139,7 @@ function e0({
|
|
|
9139
9139
|
sideOffset: t = 4,
|
|
9140
9140
|
...n
|
|
9141
9141
|
}) {
|
|
9142
|
-
return /* @__PURE__ */ u.jsx(
|
|
9142
|
+
return /* @__PURE__ */ u.jsx(Di, { children: /* @__PURE__ */ u.jsx(
|
|
9143
9143
|
Hm,
|
|
9144
9144
|
{
|
|
9145
9145
|
"data-slot": "dropdown-menu-content",
|
|
@@ -9152,12 +9152,12 @@ function e0({
|
|
|
9152
9152
|
}
|
|
9153
9153
|
) });
|
|
9154
9154
|
}
|
|
9155
|
-
function
|
|
9155
|
+
function $0({
|
|
9156
9156
|
...e
|
|
9157
9157
|
}) {
|
|
9158
9158
|
return /* @__PURE__ */ u.jsx(zm, { "data-slot": "dropdown-menu-group", ...e });
|
|
9159
9159
|
}
|
|
9160
|
-
function
|
|
9160
|
+
function Fo({
|
|
9161
9161
|
className: e,
|
|
9162
9162
|
inset: t,
|
|
9163
9163
|
variant: n = "default",
|
|
@@ -9177,7 +9177,7 @@ function Lo({
|
|
|
9177
9177
|
}
|
|
9178
9178
|
);
|
|
9179
9179
|
}
|
|
9180
|
-
function
|
|
9180
|
+
function V0({
|
|
9181
9181
|
className: e,
|
|
9182
9182
|
children: t,
|
|
9183
9183
|
checked: n,
|
|
@@ -9194,13 +9194,13 @@ function F0({
|
|
|
9194
9194
|
checked: n,
|
|
9195
9195
|
...r,
|
|
9196
9196
|
children: [
|
|
9197
|
-
/* @__PURE__ */ u.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(
|
|
9197
|
+
/* @__PURE__ */ u.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(Ii, { children: /* @__PURE__ */ u.jsx(Hc, { className: "size-4" }) }) }),
|
|
9198
9198
|
t
|
|
9199
9199
|
]
|
|
9200
9200
|
}
|
|
9201
9201
|
);
|
|
9202
9202
|
}
|
|
9203
|
-
function
|
|
9203
|
+
function H0({
|
|
9204
9204
|
...e
|
|
9205
9205
|
}) {
|
|
9206
9206
|
return /* @__PURE__ */ u.jsx(
|
|
@@ -9211,7 +9211,7 @@ function $0({
|
|
|
9211
9211
|
}
|
|
9212
9212
|
);
|
|
9213
9213
|
}
|
|
9214
|
-
function
|
|
9214
|
+
function z0({
|
|
9215
9215
|
className: e,
|
|
9216
9216
|
children: t,
|
|
9217
9217
|
...n
|
|
@@ -9226,7 +9226,7 @@ function V0({
|
|
|
9226
9226
|
),
|
|
9227
9227
|
...n,
|
|
9228
9228
|
children: [
|
|
9229
|
-
/* @__PURE__ */ u.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(
|
|
9229
|
+
/* @__PURE__ */ u.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(Ii, { children: /* @__PURE__ */ u.jsx(Yc, { className: "size-2 fill-current" }) }) }),
|
|
9230
9230
|
t
|
|
9231
9231
|
]
|
|
9232
9232
|
}
|
|
@@ -9263,7 +9263,7 @@ function n0({
|
|
|
9263
9263
|
}
|
|
9264
9264
|
);
|
|
9265
9265
|
}
|
|
9266
|
-
function
|
|
9266
|
+
function W0({
|
|
9267
9267
|
className: e,
|
|
9268
9268
|
...t
|
|
9269
9269
|
}) {
|
|
@@ -9279,12 +9279,12 @@ function H0({
|
|
|
9279
9279
|
}
|
|
9280
9280
|
);
|
|
9281
9281
|
}
|
|
9282
|
-
function
|
|
9282
|
+
function B0({
|
|
9283
9283
|
...e
|
|
9284
9284
|
}) {
|
|
9285
9285
|
return /* @__PURE__ */ u.jsx(qm, { "data-slot": "dropdown-menu-sub", ...e });
|
|
9286
9286
|
}
|
|
9287
|
-
function
|
|
9287
|
+
function G0({
|
|
9288
9288
|
className: e,
|
|
9289
9289
|
inset: t,
|
|
9290
9290
|
children: n,
|
|
@@ -9302,12 +9302,12 @@ function W0({
|
|
|
9302
9302
|
...r,
|
|
9303
9303
|
children: [
|
|
9304
9304
|
n,
|
|
9305
|
-
/* @__PURE__ */ u.jsx(
|
|
9305
|
+
/* @__PURE__ */ u.jsx(es, { className: "ml-auto size-4" })
|
|
9306
9306
|
]
|
|
9307
9307
|
}
|
|
9308
9308
|
);
|
|
9309
9309
|
}
|
|
9310
|
-
function
|
|
9310
|
+
function U0({
|
|
9311
9311
|
className: e,
|
|
9312
9312
|
...t
|
|
9313
9313
|
}) {
|
|
@@ -9325,8 +9325,8 @@ function B0({
|
|
|
9325
9325
|
}
|
|
9326
9326
|
const r0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";
|
|
9327
9327
|
function o0() {
|
|
9328
|
-
const [e, t] =
|
|
9329
|
-
return
|
|
9328
|
+
const [e, t] = lr("");
|
|
9329
|
+
return cr(() => {
|
|
9330
9330
|
t(window.location.pathname);
|
|
9331
9331
|
const r = () => {
|
|
9332
9332
|
t(window.location.pathname);
|
|
@@ -9338,7 +9338,12 @@ function o0() {
|
|
|
9338
9338
|
};
|
|
9339
9339
|
}, []), { currentPath: e, isActiveRoute: (r) => !!(e === r || r !== "/" && e.startsWith(r)) };
|
|
9340
9340
|
}
|
|
9341
|
-
const s0 = {
|
|
9341
|
+
const s0 = $o(void 0), a0 = () => {
|
|
9342
|
+
const e = ir(s0);
|
|
9343
|
+
if (e === void 0)
|
|
9344
|
+
throw new Error("usePermissions must be used within PermissionsProvider");
|
|
9345
|
+
return e;
|
|
9346
|
+
}, i0 = {
|
|
9342
9347
|
navMain: [
|
|
9343
9348
|
{
|
|
9344
9349
|
title: "Essential Insights",
|
|
@@ -9349,12 +9354,12 @@ const s0 = {
|
|
|
9349
9354
|
{
|
|
9350
9355
|
title: "Overall Performance",
|
|
9351
9356
|
url: "/essential-insights/overall-performance",
|
|
9352
|
-
icon: /* @__PURE__ */ u.jsx(
|
|
9357
|
+
icon: /* @__PURE__ */ u.jsx(ts, { className: "h-4 w-4" })
|
|
9353
9358
|
},
|
|
9354
9359
|
{
|
|
9355
9360
|
title: "Organic Performance",
|
|
9356
9361
|
url: "/essential-insights/organic-performance",
|
|
9357
|
-
icon: /* @__PURE__ */ u.jsx(
|
|
9362
|
+
icon: /* @__PURE__ */ u.jsx(so, { className: "h-4 w-4" })
|
|
9358
9363
|
},
|
|
9359
9364
|
{
|
|
9360
9365
|
title: "Paid Performance",
|
|
@@ -9364,7 +9369,7 @@ const s0 = {
|
|
|
9364
9369
|
{
|
|
9365
9370
|
title: "Keyword Performance",
|
|
9366
9371
|
url: "/essential-insights/keyword-performance",
|
|
9367
|
-
icon: /* @__PURE__ */ u.jsx(
|
|
9372
|
+
icon: /* @__PURE__ */ u.jsx(so, { className: "h-4 w-4" })
|
|
9368
9373
|
},
|
|
9369
9374
|
{
|
|
9370
9375
|
title: "More Components",
|
|
@@ -9411,22 +9416,9 @@ const s0 = {
|
|
|
9411
9416
|
}
|
|
9412
9417
|
]
|
|
9413
9418
|
};
|
|
9414
|
-
function
|
|
9415
|
-
const { isActiveRoute: t } = o0(),
|
|
9416
|
-
|
|
9417
|
-
priceMonster: !1,
|
|
9418
|
-
web: !1
|
|
9419
|
-
});
|
|
9420
|
-
return l.useEffect(() => {
|
|
9421
|
-
fetch("/api/auth/permissions").then((o) => o.json()).then((o) => {
|
|
9422
|
-
r({
|
|
9423
|
-
essentialInsights: !!o.essentialInsights,
|
|
9424
|
-
priceMonster: !!o.priceMonster,
|
|
9425
|
-
web: !!o.web
|
|
9426
|
-
});
|
|
9427
|
-
}).catch(() => {
|
|
9428
|
-
});
|
|
9429
|
-
}, []), /* @__PURE__ */ u.jsxs(cp, { ...e, children: [
|
|
9419
|
+
function c0({ ...e }) {
|
|
9420
|
+
const { isActiveRoute: t } = o0(), n = a0();
|
|
9421
|
+
return /* @__PURE__ */ u.jsxs(cp, { ...e, children: [
|
|
9430
9422
|
/* @__PURE__ */ u.jsx(fp, { children: /* @__PURE__ */ u.jsx("div", { className: "relative h-12 w-32 overflow-hidden", children: /* @__PURE__ */ u.jsx(
|
|
9431
9423
|
"img",
|
|
9432
9424
|
{
|
|
@@ -9447,7 +9439,7 @@ function a0({ ...e }) {
|
|
|
9447
9439
|
),
|
|
9448
9440
|
children: [
|
|
9449
9441
|
/* @__PURE__ */ u.jsx(
|
|
9450
|
-
|
|
9442
|
+
ts,
|
|
9451
9443
|
{
|
|
9452
9444
|
className: P(
|
|
9453
9445
|
"h-5 w-5",
|
|
@@ -9459,61 +9451,61 @@ function a0({ ...e }) {
|
|
|
9459
9451
|
]
|
|
9460
9452
|
}
|
|
9461
9453
|
) }) }),
|
|
9462
|
-
|
|
9463
|
-
const
|
|
9454
|
+
i0.navMain.map((r) => {
|
|
9455
|
+
const o = !r.key || n[r.key], s = o && (t(r.url) || r.items.some((a) => t(a.url)));
|
|
9464
9456
|
return /* @__PURE__ */ u.jsx(
|
|
9465
9457
|
wp,
|
|
9466
9458
|
{
|
|
9467
|
-
title:
|
|
9468
|
-
url:
|
|
9469
|
-
icon:
|
|
9470
|
-
isActive:
|
|
9471
|
-
children: /* @__PURE__ */ u.jsx(hp, { children: /* @__PURE__ */ u.jsx(vp, { children:
|
|
9472
|
-
const
|
|
9459
|
+
title: r.title,
|
|
9460
|
+
url: o ? r.url : void 0,
|
|
9461
|
+
icon: r.icon,
|
|
9462
|
+
isActive: s,
|
|
9463
|
+
children: /* @__PURE__ */ u.jsx(hp, { children: /* @__PURE__ */ u.jsx(vp, { children: r.items.map((a) => {
|
|
9464
|
+
const i = o && t(a.url);
|
|
9473
9465
|
return /* @__PURE__ */ u.jsx(bp, { children: /* @__PURE__ */ u.jsx(xp, { asChild: !0, children: /* @__PURE__ */ u.jsxs(
|
|
9474
9466
|
"a",
|
|
9475
9467
|
{
|
|
9476
|
-
href:
|
|
9468
|
+
href: o ? a.url : void 0,
|
|
9477
9469
|
className: P(
|
|
9478
9470
|
"flex items-center gap-2 pl-4 transition-colors",
|
|
9479
|
-
|
|
9480
|
-
|
|
9471
|
+
o ? "text-muted-foreground hover:bg-muted hover:text-foreground" : "text-gray-400 cursor-not-allowed opacity-50",
|
|
9472
|
+
i && "bg-blue-50 text-gli-bluedark font-medium"
|
|
9481
9473
|
),
|
|
9482
|
-
onClick: (
|
|
9483
|
-
|
|
9474
|
+
onClick: (c) => {
|
|
9475
|
+
o || c.preventDefault();
|
|
9484
9476
|
},
|
|
9485
9477
|
children: [
|
|
9486
9478
|
/* @__PURE__ */ u.jsx(
|
|
9487
9479
|
"span",
|
|
9488
9480
|
{
|
|
9489
9481
|
className: P(
|
|
9490
|
-
|
|
9482
|
+
i ? "text-gli-bluedark" : o ? "text-muted-foreground" : "text-gray-400"
|
|
9491
9483
|
),
|
|
9492
|
-
children:
|
|
9484
|
+
children: a.icon
|
|
9493
9485
|
}
|
|
9494
9486
|
),
|
|
9495
9487
|
/* @__PURE__ */ u.jsx(
|
|
9496
9488
|
"span",
|
|
9497
9489
|
{
|
|
9498
9490
|
className: P(
|
|
9499
|
-
|
|
9491
|
+
i ? "text-gli-bluedark" : o ? "text-muted-foreground" : "text-gray-400"
|
|
9500
9492
|
),
|
|
9501
|
-
children:
|
|
9493
|
+
children: a.title
|
|
9502
9494
|
}
|
|
9503
9495
|
)
|
|
9504
9496
|
]
|
|
9505
9497
|
}
|
|
9506
|
-
) }) },
|
|
9498
|
+
) }) }, a.title);
|
|
9507
9499
|
}) }) })
|
|
9508
9500
|
},
|
|
9509
|
-
|
|
9501
|
+
r.title
|
|
9510
9502
|
);
|
|
9511
9503
|
})
|
|
9512
9504
|
] }),
|
|
9513
9505
|
/* @__PURE__ */ u.jsx(up, {})
|
|
9514
9506
|
] });
|
|
9515
9507
|
}
|
|
9516
|
-
const
|
|
9508
|
+
const l0 = ({ onLogout: e }) => {
|
|
9517
9509
|
const { user: t, error: n, isLoading: r } = Ec(), o = async () => {
|
|
9518
9510
|
try {
|
|
9519
9511
|
e && await e(), window.location.href = "/auth/logout";
|
|
@@ -9526,7 +9518,7 @@ const i0 = ({ onLogout: e }) => {
|
|
|
9526
9518
|
n.message
|
|
9527
9519
|
] }) : t ? /* @__PURE__ */ u.jsx("div", { className: "relative flex items-center gap-3", children: /* @__PURE__ */ u.jsxs(Jm, { children: [
|
|
9528
9520
|
/* @__PURE__ */ u.jsx(Qm, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
9529
|
-
|
|
9521
|
+
hr,
|
|
9530
9522
|
{
|
|
9531
9523
|
variant: "ghost",
|
|
9532
9524
|
size: "lg",
|
|
@@ -9540,7 +9532,7 @@ const i0 = ({ onLogout: e }) => {
|
|
|
9540
9532
|
height: 40,
|
|
9541
9533
|
className: "rounded-full"
|
|
9542
9534
|
}
|
|
9543
|
-
) : /* @__PURE__ */ u.jsx(
|
|
9535
|
+
) : /* @__PURE__ */ u.jsx(ao, { className: "h-5 w-5 text-gray-500" })
|
|
9544
9536
|
}
|
|
9545
9537
|
) }),
|
|
9546
9538
|
/* @__PURE__ */ u.jsxs(e0, { align: "end", className: "w-72", children: [
|
|
@@ -9549,98 +9541,98 @@ const i0 = ({ onLogout: e }) => {
|
|
|
9549
9541
|
/* @__PURE__ */ u.jsx("p", { className: "truncate text-xs text-gray-500", children: t.email })
|
|
9550
9542
|
] }) }) }),
|
|
9551
9543
|
/* @__PURE__ */ u.jsx(n0, {}),
|
|
9552
|
-
/* @__PURE__ */ u.jsx(
|
|
9553
|
-
/* @__PURE__ */ u.jsx(
|
|
9544
|
+
/* @__PURE__ */ u.jsx(Fo, { asChild: !0, children: /* @__PURE__ */ u.jsxs("a", { href: "/profile", className: "flex w-full cursor-default", children: [
|
|
9545
|
+
/* @__PURE__ */ u.jsx(ao, { className: "mr-2 h-4 w-4" }),
|
|
9554
9546
|
/* @__PURE__ */ u.jsx("span", { children: "Profile" })
|
|
9555
9547
|
] }) }),
|
|
9556
|
-
/* @__PURE__ */ u.jsxs(
|
|
9548
|
+
/* @__PURE__ */ u.jsxs(Fo, { onClick: o, children: [
|
|
9557
9549
|
/* @__PURE__ */ u.jsx(Zc, { className: "mr-2 h-4 w-4" }),
|
|
9558
9550
|
/* @__PURE__ */ u.jsx("span", { children: "Sign out" })
|
|
9559
9551
|
] })
|
|
9560
9552
|
] })
|
|
9561
9553
|
] }) }) : null;
|
|
9562
|
-
},
|
|
9554
|
+
}, u0 = ({ onLogout: e }) => /* @__PURE__ */ u.jsx("div", { className: "sticky top-0 z-50 bg-white", children: /* @__PURE__ */ u.jsxs("header", { className: "flex h-16 items-center justify-between border-b bg-white px-4", children: [
|
|
9563
9555
|
/* @__PURE__ */ u.jsxs("div", { className: "flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden", children: [
|
|
9564
9556
|
/* @__PURE__ */ u.jsx(lp, {}),
|
|
9565
|
-
/* @__PURE__ */ u.jsx(
|
|
9557
|
+
/* @__PURE__ */ u.jsx(gr, { orientation: "vertical" })
|
|
9566
9558
|
] }),
|
|
9567
|
-
/* @__PURE__ */ u.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ u.jsx(
|
|
9568
|
-
] }) }),
|
|
9559
|
+
/* @__PURE__ */ u.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ u.jsx(l0, { onLogout: e }) })
|
|
9560
|
+
] }) }), K0 = ({
|
|
9569
9561
|
children: e,
|
|
9570
9562
|
onLogout: t
|
|
9571
9563
|
}) => /* @__PURE__ */ u.jsx(Sc, { children: /* @__PURE__ */ u.jsx(ip, { children: /* @__PURE__ */ u.jsxs("div", { className: "flex h-screen w-full", children: [
|
|
9572
|
-
/* @__PURE__ */ u.jsx(
|
|
9564
|
+
/* @__PURE__ */ u.jsx(c0, {}),
|
|
9573
9565
|
/* @__PURE__ */ u.jsxs(dp, { className: "flex-1 flex flex-col min-w-0", children: [
|
|
9574
|
-
/* @__PURE__ */ u.jsx(
|
|
9566
|
+
/* @__PURE__ */ u.jsx(u0, { onLogout: t }),
|
|
9575
9567
|
/* @__PURE__ */ u.jsx("main", { className: "flex-1 bg-white overflow-auto", id: "page-content", children: e })
|
|
9576
9568
|
] })
|
|
9577
9569
|
] }) }) });
|
|
9578
9570
|
export {
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9571
|
+
u0 as AppHeader,
|
|
9572
|
+
hr as Button,
|
|
9573
|
+
p0 as Card,
|
|
9574
|
+
v0 as CardAction,
|
|
9575
|
+
b0 as CardContent,
|
|
9576
|
+
g0 as CardDescription,
|
|
9577
|
+
x0 as CardFooter,
|
|
9578
|
+
m0 as CardHeader,
|
|
9579
|
+
h0 as CardTitle,
|
|
9588
9580
|
wp as CollapsibleSection,
|
|
9589
9581
|
Jm as DropdownMenu,
|
|
9590
|
-
|
|
9582
|
+
V0 as DropdownMenuCheckboxItem,
|
|
9591
9583
|
e0 as DropdownMenuContent,
|
|
9592
|
-
|
|
9593
|
-
|
|
9584
|
+
$0 as DropdownMenuGroup,
|
|
9585
|
+
Fo as DropdownMenuItem,
|
|
9594
9586
|
t0 as DropdownMenuLabel,
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9587
|
+
F0 as DropdownMenuPortal,
|
|
9588
|
+
H0 as DropdownMenuRadioGroup,
|
|
9589
|
+
z0 as DropdownMenuRadioItem,
|
|
9598
9590
|
n0 as DropdownMenuSeparator,
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9591
|
+
W0 as DropdownMenuShortcut,
|
|
9592
|
+
B0 as DropdownMenuSub,
|
|
9593
|
+
U0 as DropdownMenuSubContent,
|
|
9594
|
+
G0 as DropdownMenuSubTrigger,
|
|
9603
9595
|
Qm as DropdownMenuTrigger,
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9596
|
+
K0 as GLICloudProvider,
|
|
9597
|
+
hs as Input,
|
|
9598
|
+
l0 as ProfileDropdown,
|
|
9599
|
+
gr as Separator,
|
|
9608
9600
|
vd as Sheet,
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9601
|
+
E0 as SheetClose,
|
|
9602
|
+
ea as SheetContent,
|
|
9603
|
+
ra as SheetDescription,
|
|
9612
9604
|
wd as SheetFooter,
|
|
9613
|
-
|
|
9614
|
-
|
|
9605
|
+
ta as SheetHeader,
|
|
9606
|
+
Qs as SheetOverlay,
|
|
9615
9607
|
bd as SheetPortal,
|
|
9616
|
-
|
|
9617
|
-
|
|
9608
|
+
na as SheetTitle,
|
|
9609
|
+
C0 as SheetTrigger,
|
|
9618
9610
|
cp as Sidebar,
|
|
9619
9611
|
pp as SidebarContent,
|
|
9620
|
-
|
|
9612
|
+
M0 as SidebarFooter,
|
|
9621
9613
|
mp as SidebarGroup,
|
|
9622
|
-
|
|
9614
|
+
k0 as SidebarGroupAction,
|
|
9623
9615
|
hp as SidebarGroupContent,
|
|
9624
|
-
|
|
9616
|
+
T0 as SidebarGroupLabel,
|
|
9625
9617
|
fp as SidebarHeader,
|
|
9626
|
-
|
|
9618
|
+
_0 as SidebarInput,
|
|
9627
9619
|
dp as SidebarInset,
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9620
|
+
N0 as SidebarMenu,
|
|
9621
|
+
D0 as SidebarMenuAction,
|
|
9622
|
+
I0 as SidebarMenuBadge,
|
|
9623
|
+
P0 as SidebarMenuButton,
|
|
9624
|
+
O0 as SidebarMenuItem,
|
|
9625
|
+
j0 as SidebarMenuSkeleton,
|
|
9634
9626
|
vp as SidebarMenuSub,
|
|
9635
9627
|
xp as SidebarMenuSubButton,
|
|
9636
9628
|
bp as SidebarMenuSubItem,
|
|
9637
9629
|
ip as SidebarProvider,
|
|
9638
9630
|
up as SidebarRail,
|
|
9639
|
-
|
|
9631
|
+
A0 as SidebarSeparator,
|
|
9640
9632
|
lp as SidebarTrigger,
|
|
9641
|
-
|
|
9633
|
+
Ao as Skeleton,
|
|
9642
9634
|
Qf as Tooltip,
|
|
9643
|
-
|
|
9635
|
+
ja as TooltipContent,
|
|
9644
9636
|
Jf as TooltipProvider,
|
|
9645
9637
|
ep as TooltipTrigger,
|
|
9646
9638
|
zl as buttonVariants,
|