@golocalinteractive/golocal-cloud-wrapper 1.0.21 → 1.0.23
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.
|
@@ -2,7 +2,7 @@ import * as u from "react";
|
|
|
2
2
|
import pe, { useContext as Fo, createContext as ji, useMemo as Vn, useRef as ze, useEffect as ir, useLayoutEffect as $o, createElement as Yt, useCallback as wn, useDebugValue as Li, forwardRef as Vo, useState as cr } from "react";
|
|
3
3
|
import * as Ho from "react-dom";
|
|
4
4
|
import Fi from "react-dom";
|
|
5
|
-
var kt = { exports: {} },
|
|
5
|
+
var kt = { exports: {} }, gt = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -14,7 +14,7 @@ var kt = { exports: {} }, ht = {};
|
|
|
14
14
|
*/
|
|
15
15
|
var Br;
|
|
16
16
|
function $i() {
|
|
17
|
-
if (Br) return
|
|
17
|
+
if (Br) return gt;
|
|
18
18
|
Br = 1;
|
|
19
19
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
20
20
|
function n(r, o, s) {
|
|
@@ -32,9 +32,9 @@ function $i() {
|
|
|
32
32
|
props: s
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return gt.Fragment = t, gt.jsx = n, gt.jsxs = n, gt;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var ht = {};
|
|
38
38
|
/**
|
|
39
39
|
* @license React
|
|
40
40
|
* react-jsx-runtime.development.js
|
|
@@ -53,7 +53,7 @@ function Vi() {
|
|
|
53
53
|
return y.$$typeof === I ? null : y.displayName || y.name || null;
|
|
54
54
|
if (typeof y == "string") return y;
|
|
55
55
|
switch (y) {
|
|
56
|
-
case
|
|
56
|
+
case h:
|
|
57
57
|
return "Fragment";
|
|
58
58
|
case v:
|
|
59
59
|
return "Profiler";
|
|
@@ -111,7 +111,7 @@ function Vi() {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
function r(y) {
|
|
114
|
-
if (y ===
|
|
114
|
+
if (y === h) return "<>";
|
|
115
115
|
if (typeof y == "object" && y !== null && y.$$typeof === C)
|
|
116
116
|
return "<...>";
|
|
117
117
|
try {
|
|
@@ -155,7 +155,7 @@ function Vi() {
|
|
|
155
155
|
}
|
|
156
156
|
function p(y, N, j, $, q, ee, ce, U) {
|
|
157
157
|
return j = ee.ref, y = {
|
|
158
|
-
$$typeof:
|
|
158
|
+
$$typeof: g,
|
|
159
159
|
type: y,
|
|
160
160
|
key: N,
|
|
161
161
|
props: ee,
|
|
@@ -236,9 +236,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
function f(y) {
|
|
239
|
-
typeof y == "object" && y !== null && y.$$typeof ===
|
|
239
|
+
typeof y == "object" && y !== null && y.$$typeof === g && y._store && (y._store.validated = 1);
|
|
240
240
|
}
|
|
241
|
-
var m = pe,
|
|
241
|
+
var m = pe, g = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), E = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), B = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, V = Array.isArray, H = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
m = {
|
|
@@ -250,7 +250,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
250
250
|
m,
|
|
251
251
|
s
|
|
252
252
|
)(), _ = H(r(s)), T = {};
|
|
253
|
-
|
|
253
|
+
ht.Fragment = h, ht.jsx = function(y, N, j, $, q) {
|
|
254
254
|
var ee = 1e4 > B.recentlyCreatedOwnerStacks++;
|
|
255
255
|
return d(
|
|
256
256
|
y,
|
|
@@ -262,7 +262,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
262
262
|
ee ? Error("react-stack-top-frame") : G,
|
|
263
263
|
ee ? H(r(y)) : _
|
|
264
264
|
);
|
|
265
|
-
},
|
|
265
|
+
}, ht.jsxs = function(y, N, j, $, q) {
|
|
266
266
|
var ee = 1e4 > B.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return d(
|
|
268
268
|
y,
|
|
@@ -275,7 +275,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
275
275
|
ee ? H(r(y)) : _
|
|
276
276
|
);
|
|
277
277
|
};
|
|
278
|
-
}()),
|
|
278
|
+
}()), ht;
|
|
279
279
|
}
|
|
280
280
|
var Ur;
|
|
281
281
|
function Hi() {
|
|
@@ -301,27 +301,27 @@ function zi() {
|
|
|
301
301
|
}
|
|
302
302
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
303
303
|
function i(f, m) {
|
|
304
|
-
var
|
|
304
|
+
var g = m(), b = r({ inst: { value: g, getSnapshot: m } }), h = b[0].inst, x = b[1];
|
|
305
305
|
return s(
|
|
306
306
|
function() {
|
|
307
|
-
|
|
307
|
+
h.value = g, h.getSnapshot = m, c(h) && x({ inst: h });
|
|
308
308
|
},
|
|
309
|
-
[f,
|
|
309
|
+
[f, g, m]
|
|
310
310
|
), o(
|
|
311
311
|
function() {
|
|
312
|
-
return c(
|
|
313
|
-
c(
|
|
312
|
+
return c(h) && x({ inst: h }), f(function() {
|
|
313
|
+
c(h) && x({ inst: h });
|
|
314
314
|
});
|
|
315
315
|
},
|
|
316
316
|
[f]
|
|
317
|
-
), a(
|
|
317
|
+
), a(g), g;
|
|
318
318
|
}
|
|
319
319
|
function c(f) {
|
|
320
320
|
var m = f.getSnapshot;
|
|
321
321
|
f = f.value;
|
|
322
322
|
try {
|
|
323
|
-
var
|
|
324
|
-
return !n(f,
|
|
323
|
+
var g = m();
|
|
324
|
+
return !n(f, g);
|
|
325
325
|
} catch {
|
|
326
326
|
return !0;
|
|
327
327
|
}
|
|
@@ -345,49 +345,49 @@ var Cn = {};
|
|
|
345
345
|
var Yr;
|
|
346
346
|
function Wi() {
|
|
347
347
|
return Yr || (Yr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
348
|
-
function e(
|
|
349
|
-
return
|
|
348
|
+
function e(g, b) {
|
|
349
|
+
return g === b && (g !== 0 || 1 / g === 1 / b) || g !== g && b !== b;
|
|
350
350
|
}
|
|
351
|
-
function t(
|
|
351
|
+
function t(g, b) {
|
|
352
352
|
d || o.startTransition === void 0 || (d = !0, console.error(
|
|
353
353
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
354
354
|
));
|
|
355
|
-
var
|
|
355
|
+
var h = b();
|
|
356
356
|
if (!f) {
|
|
357
357
|
var x = b();
|
|
358
|
-
s(
|
|
358
|
+
s(h, x) || (console.error(
|
|
359
359
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
360
360
|
), f = !0);
|
|
361
361
|
}
|
|
362
362
|
x = a({
|
|
363
|
-
inst: { value:
|
|
363
|
+
inst: { value: h, getSnapshot: b }
|
|
364
364
|
});
|
|
365
365
|
var v = x[0].inst, w = x[1];
|
|
366
366
|
return c(
|
|
367
367
|
function() {
|
|
368
|
-
v.value =
|
|
368
|
+
v.value = h, v.getSnapshot = b, n(v) && w({ inst: v });
|
|
369
369
|
},
|
|
370
|
-
[
|
|
370
|
+
[g, h, b]
|
|
371
371
|
), i(
|
|
372
372
|
function() {
|
|
373
|
-
return n(v) && w({ inst: v }),
|
|
373
|
+
return n(v) && w({ inst: v }), g(function() {
|
|
374
374
|
n(v) && w({ inst: v });
|
|
375
375
|
});
|
|
376
376
|
},
|
|
377
|
-
[
|
|
378
|
-
), p(
|
|
377
|
+
[g]
|
|
378
|
+
), p(h), h;
|
|
379
379
|
}
|
|
380
|
-
function n(
|
|
381
|
-
var b =
|
|
382
|
-
|
|
380
|
+
function n(g) {
|
|
381
|
+
var b = g.getSnapshot;
|
|
382
|
+
g = g.value;
|
|
383
383
|
try {
|
|
384
|
-
var
|
|
385
|
-
return !s(
|
|
384
|
+
var h = b();
|
|
385
|
+
return !s(g, h);
|
|
386
386
|
} catch {
|
|
387
387
|
return !0;
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
function r(
|
|
390
|
+
function r(g, b) {
|
|
391
391
|
return b();
|
|
392
392
|
}
|
|
393
393
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
@@ -526,30 +526,30 @@ async function Ko(...e) {
|
|
|
526
526
|
let c = s.optimisticData;
|
|
527
527
|
const p = (m) => typeof i == "function" ? i(m) : i !== !1, d = s.throwOnError;
|
|
528
528
|
if (we(n)) {
|
|
529
|
-
const m = n,
|
|
530
|
-
for (const
|
|
529
|
+
const m = n, g = [], b = t.keys();
|
|
530
|
+
for (const h of b)
|
|
531
531
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
|
532
|
-
!/^\$(inf|sub)\$/.test(
|
|
533
|
-
return Promise.all(
|
|
532
|
+
!/^\$(inf|sub)\$/.test(h) && m(t.get(h)._k) && g.push(h);
|
|
533
|
+
return Promise.all(g.map(f));
|
|
534
534
|
}
|
|
535
535
|
return f(n);
|
|
536
536
|
async function f(m) {
|
|
537
|
-
const [
|
|
538
|
-
if (!
|
|
539
|
-
const [b,
|
|
540
|
-
const V = x[
|
|
541
|
-
return (we(s.revalidate) ? s.revalidate(b().data, m) : s.revalidate !== !1) && (delete w[
|
|
537
|
+
const [g] = ur(m);
|
|
538
|
+
if (!g) return;
|
|
539
|
+
const [b, h] = Uo(t, g), [x, v, w, E] = Pe.get(t), S = () => {
|
|
540
|
+
const V = x[g];
|
|
541
|
+
return (we(s.revalidate) ? s.revalidate(b().data, m) : s.revalidate !== !1) && (delete w[g], delete E[g], V && V[0]) ? V[0](Bo).then(() => b().data) : b().data;
|
|
542
542
|
};
|
|
543
543
|
if (e.length < 3)
|
|
544
544
|
return S();
|
|
545
545
|
let R = r, A;
|
|
546
546
|
const M = Kn();
|
|
547
|
-
v[
|
|
547
|
+
v[g] = [
|
|
548
548
|
M,
|
|
549
549
|
0
|
|
550
550
|
];
|
|
551
551
|
const C = !K(c), D = b(), I = D.data, B = D._c, W = K(B) ? I : B;
|
|
552
|
-
if (C && (c = we(c) ? c(W, I) : c,
|
|
552
|
+
if (C && (c = we(c) ? c(W, I) : c, h({
|
|
553
553
|
data: c,
|
|
554
554
|
_c: W
|
|
555
555
|
})), we(R))
|
|
@@ -561,29 +561,29 @@ async function Ko(...e) {
|
|
|
561
561
|
if (R && Go(R))
|
|
562
562
|
if (R = await R.catch((V) => {
|
|
563
563
|
A = V;
|
|
564
|
-
}), M !== v[
|
|
564
|
+
}), M !== v[g][0]) {
|
|
565
565
|
if (A) throw A;
|
|
566
566
|
return R;
|
|
567
|
-
} else A && C && p(A) && (a = !0,
|
|
567
|
+
} else A && C && p(A) && (a = !0, h({
|
|
568
568
|
data: W,
|
|
569
569
|
_c: le
|
|
570
570
|
}));
|
|
571
571
|
if (a && !A)
|
|
572
572
|
if (we(a)) {
|
|
573
573
|
const V = a(R, W);
|
|
574
|
-
|
|
574
|
+
h({
|
|
575
575
|
data: V,
|
|
576
576
|
error: le,
|
|
577
577
|
_c: le
|
|
578
578
|
});
|
|
579
579
|
} else
|
|
580
|
-
|
|
580
|
+
h({
|
|
581
581
|
data: R,
|
|
582
582
|
error: le,
|
|
583
583
|
_c: le
|
|
584
584
|
});
|
|
585
|
-
if (v[
|
|
586
|
-
|
|
585
|
+
if (v[g][1] = Kn(), Promise.resolve(S()).then(() => {
|
|
586
|
+
h({
|
|
587
587
|
_c: le
|
|
588
588
|
});
|
|
589
589
|
}), A) {
|
|
@@ -605,9 +605,9 @@ const eo = (e, t) => {
|
|
|
605
605
|
return a[d] = m, m.push(f), () => m.splice(m.indexOf(f), 1);
|
|
606
606
|
}, c = (d, f, m) => {
|
|
607
607
|
e.set(d, f);
|
|
608
|
-
const
|
|
609
|
-
if (
|
|
610
|
-
for (const b of
|
|
608
|
+
const g = a[d];
|
|
609
|
+
if (g)
|
|
610
|
+
for (const b of g)
|
|
611
611
|
b(f, m);
|
|
612
612
|
}, p = () => {
|
|
613
613
|
if (!Pe.has(e) && (Pe.set(e, [
|
|
@@ -714,7 +714,7 @@ const eo = (e, t) => {
|
|
|
714
714
|
for (let f = d.length; f--; )
|
|
715
715
|
c = d[f](c);
|
|
716
716
|
return c(o, s || i.fetcher || null, i);
|
|
717
|
-
},
|
|
717
|
+
}, gc = (e, t, n) => {
|
|
718
718
|
const r = t[e] || (t[e] = []);
|
|
719
719
|
return r.push(n), () => {
|
|
720
720
|
const o = r.indexOf(n);
|
|
@@ -743,8 +743,8 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
743
743
|
}
|
|
744
744
|
}), Mn = {
|
|
745
745
|
dedupe: !0
|
|
746
|
-
},
|
|
747
|
-
const { cache: r, compare: o, suspense: s, fallbackData: a, revalidateOnMount: i, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: d, refreshWhenOffline: f, keepPreviousData: m } = n, [
|
|
746
|
+
}, hc = (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, [g, b, h, x] = Pe.get(r), [v, w] = ur(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] = Uo(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,20 +783,20 @@ 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 =
|
|
786
|
+
), G[0], G[1]), T = !E.current, y = g[v] && g[v].length > 0, N = _.data, j = K(N) ? Y && Go(Y) ? _n(Y) : Y : N, $ = _.error, q = ze(j), ee = m ? K(N) ? K(q.current) ? j : q.current : N : 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 = !
|
|
792
|
+
const Ve = X || {}, re = !h[v] || !Ve.dedupe, fe = () => Jr ? !S.current && v === R.current && E.current : v === R.current, Ne = {
|
|
793
793
|
isValidating: !1,
|
|
794
794
|
isLoading: !1
|
|
795
795
|
}, Hr = () => {
|
|
796
796
|
B(Ne);
|
|
797
797
|
}, zr = () => {
|
|
798
|
-
const ve =
|
|
799
|
-
ve && ve[1] === te && delete
|
|
798
|
+
const ve = h[v];
|
|
799
|
+
ve && ve[1] === te && delete h[v];
|
|
800
800
|
}, Wr = {
|
|
801
801
|
isValidating: !0
|
|
802
802
|
};
|
|
@@ -804,10 +804,10 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
804
804
|
try {
|
|
805
805
|
if (re && (B(Wr), n.loadingTimeout && K(I().data) && setTimeout(() => {
|
|
806
806
|
me && fe() && C().onLoadingSlow(v, n);
|
|
807
|
-
}, n.loadingTimeout),
|
|
807
|
+
}, n.loadingTimeout), h[v] = [
|
|
808
808
|
Z(w),
|
|
809
809
|
Kn()
|
|
810
|
-
]), [ie, te] =
|
|
810
|
+
]), [ie, te] = h[v], ie = await ie, re && setTimeout(zr, n.dedupingInterval), !h[v] || h[v][1] !== te)
|
|
811
811
|
return re && fe() && C().onDiscarded(v), !1;
|
|
812
812
|
Ne.error = le;
|
|
813
813
|
const ve = b[v];
|
|
@@ -822,7 +822,7 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
822
822
|
zr();
|
|
823
823
|
const Oe = C(), { shouldRetryOnError: bn } = Oe;
|
|
824
824
|
Oe.isPaused() || (Ne.error = ve, re && fe() && (Oe.onError(ve, v, Oe), (bn === !0 || we(bn) && bn(ve)) && (!C().revalidateOnFocus || !C().revalidateOnReconnect || D()) && Oe.onErrorRetry(ve, v, Oe, (Ii) => {
|
|
825
|
-
const xn =
|
|
825
|
+
const xn = g[v];
|
|
826
826
|
xn && xn[0] && xn[0](Xr, Ii);
|
|
827
827
|
}, {
|
|
828
828
|
retryCount: (Ve.retryCount || 0) + 1,
|
|
@@ -859,7 +859,7 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
859
859
|
const X = oe.bind(le, Mn);
|
|
860
860
|
let Z = 0;
|
|
861
861
|
C().revalidateOnFocus && (Z = Date.now() + C().focusThrottleInterval);
|
|
862
|
-
const te =
|
|
862
|
+
const te = gc(v, g, (me, Ve = {}) => {
|
|
863
863
|
if (me == zo) {
|
|
864
864
|
const re = Date.now();
|
|
865
865
|
C().revalidateOnFocus && re > Z && D() && (Z = re + C().focusThrottleInterval, X());
|
|
@@ -928,7 +928,7 @@ const _n = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
928
928
|
};
|
|
929
929
|
}, vc = qt.defineProperty(ac, "defaultValue", {
|
|
930
930
|
value: qo
|
|
931
|
-
}), bc = mc(
|
|
931
|
+
}), bc = mc(hc);
|
|
932
932
|
function xc(e) {
|
|
933
933
|
return e && !e.startsWith("/") ? `/${e}` : e;
|
|
934
934
|
}
|
|
@@ -1358,16 +1358,16 @@ const io = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, co = rs, f
|
|
|
1358
1358
|
let [f, m] = d;
|
|
1359
1359
|
return m === void 0 || (p[f] = m), p;
|
|
1360
1360
|
}, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((p, d) => {
|
|
1361
|
-
let { class: f, className: m, ...
|
|
1362
|
-
return Object.entries(
|
|
1363
|
-
let [
|
|
1361
|
+
let { class: f, className: m, ...g } = d;
|
|
1362
|
+
return Object.entries(g).every((b) => {
|
|
1363
|
+
let [h, x] = b;
|
|
1364
1364
|
return Array.isArray(x) ? x.includes({
|
|
1365
1365
|
...s,
|
|
1366
1366
|
...i
|
|
1367
|
-
}[
|
|
1367
|
+
}[h]) : {
|
|
1368
1368
|
...s,
|
|
1369
1369
|
...i
|
|
1370
|
-
}[
|
|
1370
|
+
}[h] === x;
|
|
1371
1371
|
}) ? [
|
|
1372
1372
|
...p,
|
|
1373
1373
|
f,
|
|
@@ -1484,7 +1484,7 @@ const pr = "-", ll = (e) => {
|
|
|
1484
1484
|
n.has(s) ? n.set(s, a) : o(s, a);
|
|
1485
1485
|
}
|
|
1486
1486
|
};
|
|
1487
|
-
}, Xn = "!", Zn = ":", ml = Zn.length,
|
|
1487
|
+
}, Xn = "!", Zn = ":", ml = Zn.length, gl = (e) => {
|
|
1488
1488
|
const {
|
|
1489
1489
|
prefix: t,
|
|
1490
1490
|
experimentalParseClassName: n
|
|
@@ -1493,25 +1493,25 @@ const pr = "-", ll = (e) => {
|
|
|
1493
1493
|
const s = [];
|
|
1494
1494
|
let a = 0, i = 0, c = 0, p;
|
|
1495
1495
|
for (let b = 0; b < o.length; b++) {
|
|
1496
|
-
let
|
|
1496
|
+
let h = o[b];
|
|
1497
1497
|
if (a === 0 && i === 0) {
|
|
1498
|
-
if (
|
|
1498
|
+
if (h === Zn) {
|
|
1499
1499
|
s.push(o.slice(c, b)), c = b + ml;
|
|
1500
1500
|
continue;
|
|
1501
1501
|
}
|
|
1502
|
-
if (
|
|
1502
|
+
if (h === "/") {
|
|
1503
1503
|
p = b;
|
|
1504
1504
|
continue;
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
|
-
|
|
1507
|
+
h === "[" ? a++ : h === "]" ? a-- : h === "(" ? i++ : h === ")" && i--;
|
|
1508
1508
|
}
|
|
1509
|
-
const d = s.length === 0 ? o : o.substring(c), f =
|
|
1509
|
+
const d = s.length === 0 ? o : o.substring(c), f = hl(d), m = f !== d, g = p && p > c ? p - c : void 0;
|
|
1510
1510
|
return {
|
|
1511
1511
|
modifiers: s,
|
|
1512
1512
|
hasImportantModifier: m,
|
|
1513
1513
|
baseClassName: f,
|
|
1514
|
-
maybePostfixModifierPosition:
|
|
1514
|
+
maybePostfixModifierPosition: g
|
|
1515
1515
|
};
|
|
1516
1516
|
};
|
|
1517
1517
|
if (t) {
|
|
@@ -1532,7 +1532,7 @@ const pr = "-", ll = (e) => {
|
|
|
1532
1532
|
});
|
|
1533
1533
|
}
|
|
1534
1534
|
return r;
|
|
1535
|
-
},
|
|
1535
|
+
}, hl = (e) => e.endsWith(Xn) ? e.substring(0, e.length - 1) : e.startsWith(Xn) ? e.substring(1) : e, vl = (e) => {
|
|
1536
1536
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
|
|
1537
1537
|
return (r) => {
|
|
1538
1538
|
if (r.length <= 1)
|
|
@@ -1545,7 +1545,7 @@ const pr = "-", ll = (e) => {
|
|
|
1545
1545
|
};
|
|
1546
1546
|
}, bl = (e) => ({
|
|
1547
1547
|
cache: pl(e.cacheSize),
|
|
1548
|
-
parseClassName:
|
|
1548
|
+
parseClassName: gl(e),
|
|
1549
1549
|
sortModifiers: vl(e),
|
|
1550
1550
|
...ll(e)
|
|
1551
1551
|
}), xl = /\s+/, wl = (e, t) => {
|
|
@@ -1560,15 +1560,15 @@ const pr = "-", ll = (e) => {
|
|
|
1560
1560
|
const d = i[p], {
|
|
1561
1561
|
isExternal: f,
|
|
1562
1562
|
modifiers: m,
|
|
1563
|
-
hasImportantModifier:
|
|
1563
|
+
hasImportantModifier: g,
|
|
1564
1564
|
baseClassName: b,
|
|
1565
|
-
maybePostfixModifierPosition:
|
|
1565
|
+
maybePostfixModifierPosition: h
|
|
1566
1566
|
} = n(d);
|
|
1567
1567
|
if (f) {
|
|
1568
1568
|
c = d + (c.length > 0 ? " " + c : c);
|
|
1569
1569
|
continue;
|
|
1570
1570
|
}
|
|
1571
|
-
let x = !!
|
|
1571
|
+
let x = !!h, v = r(x ? b.substring(0, h) : b);
|
|
1572
1572
|
if (!v) {
|
|
1573
1573
|
if (!x) {
|
|
1574
1574
|
c = d + (c.length > 0 ? " " + c : c);
|
|
@@ -1580,7 +1580,7 @@ const pr = "-", ll = (e) => {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
x = !1;
|
|
1582
1582
|
}
|
|
1583
|
-
const w = s(m).join(":"), E =
|
|
1583
|
+
const w = s(m).join(":"), E = g ? w + Xn : w, S = E + v;
|
|
1584
1584
|
if (a.includes(S))
|
|
1585
1585
|
continue;
|
|
1586
1586
|
a.push(S);
|
|
@@ -1639,7 +1639,7 @@ const se = (e) => {
|
|
|
1639
1639
|
const r = is.exec(e);
|
|
1640
1640
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1641
1641
|
}, ls = (e) => e === "position" || e === "percentage", us = (e) => e === "image" || e === "url", ds = (e) => e === "length" || e === "size" || e === "bg-size", fs = (e) => e === "length", $l = (e) => e === "number", Vl = (e) => e === "family-name", ps = (e) => e === "shadow", Hl = () => {
|
|
1642
|
-
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"),
|
|
1642
|
+
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"), g = se("drop-shadow"), b = se("blur"), h = se("perspective"), x = se("aspect"), v = se("ease"), w = se("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
1643
1643
|
"center",
|
|
1644
1644
|
"top",
|
|
1645
1645
|
"bottom",
|
|
@@ -3385,7 +3385,7 @@ const se = (e) => {
|
|
|
3385
3385
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3386
3386
|
"",
|
|
3387
3387
|
"none",
|
|
3388
|
-
|
|
3388
|
+
g,
|
|
3389
3389
|
Lt,
|
|
3390
3390
|
jt
|
|
3391
3391
|
]
|
|
@@ -3613,7 +3613,7 @@ const se = (e) => {
|
|
|
3613
3613
|
* @see https://tailwindcss.com/docs/perspective
|
|
3614
3614
|
*/
|
|
3615
3615
|
perspective: [{
|
|
3616
|
-
perspective: [
|
|
3616
|
+
perspective: [h, k, O]
|
|
3617
3617
|
}],
|
|
3618
3618
|
/**
|
|
3619
3619
|
* Perspective Origin
|
|
@@ -4190,10 +4190,10 @@ var Bl = [
|
|
|
4190
4190
|
});
|
|
4191
4191
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
4192
4192
|
}, {});
|
|
4193
|
-
function
|
|
4193
|
+
function gs(e, t) {
|
|
4194
4194
|
e && Ho.flushSync(() => e.dispatchEvent(t));
|
|
4195
4195
|
}
|
|
4196
|
-
var Gl = "Separator", mo = "horizontal", Ul = ["horizontal", "vertical"],
|
|
4196
|
+
var Gl = "Separator", mo = "horizontal", Ul = ["horizontal", "vertical"], hs = u.forwardRef((e, t) => {
|
|
4197
4197
|
const { decorative: n, orientation: r = mo, ...o } = e, s = Kl(r) ? r : mo, i = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
4198
4198
|
return /* @__PURE__ */ l.jsx(
|
|
4199
4199
|
ne.div,
|
|
@@ -4205,12 +4205,12 @@ var Gl = "Separator", mo = "horizontal", Ul = ["horizontal", "vertical"], gs = u
|
|
|
4205
4205
|
}
|
|
4206
4206
|
);
|
|
4207
4207
|
});
|
|
4208
|
-
|
|
4208
|
+
hs.displayName = Gl;
|
|
4209
4209
|
function Kl(e) {
|
|
4210
4210
|
return Ul.includes(e);
|
|
4211
4211
|
}
|
|
4212
|
-
var vs =
|
|
4213
|
-
const
|
|
4212
|
+
var vs = hs;
|
|
4213
|
+
const gr = u.forwardRef(
|
|
4214
4214
|
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ l.jsx(
|
|
4215
4215
|
vs,
|
|
4216
4216
|
{
|
|
@@ -4226,7 +4226,7 @@ const hr = u.forwardRef(
|
|
|
4226
4226
|
}
|
|
4227
4227
|
)
|
|
4228
4228
|
);
|
|
4229
|
-
|
|
4229
|
+
gr.displayName = vs.displayName;
|
|
4230
4230
|
function F(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
4231
4231
|
return function(o) {
|
|
4232
4232
|
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
@@ -4254,13 +4254,13 @@ function Je(e, t = []) {
|
|
|
4254
4254
|
n = [...n, a];
|
|
4255
4255
|
const p = (f) => {
|
|
4256
4256
|
var v;
|
|
4257
|
-
const { scope: m, children:
|
|
4258
|
-
return /* @__PURE__ */ l.jsx(
|
|
4257
|
+
const { scope: m, children: g, ...b } = f, h = ((v = m == null ? void 0 : m[e]) == null ? void 0 : v[c]) || i, x = u.useMemo(() => b, Object.values(b));
|
|
4258
|
+
return /* @__PURE__ */ l.jsx(h.Provider, { value: x, children: g });
|
|
4259
4259
|
};
|
|
4260
4260
|
p.displayName = s + "Provider";
|
|
4261
4261
|
function d(f, m) {
|
|
4262
|
-
var
|
|
4263
|
-
const
|
|
4262
|
+
var h;
|
|
4263
|
+
const g = ((h = m == null ? void 0 : m[e]) == null ? void 0 : h[c]) || i, b = u.useContext(g);
|
|
4264
4264
|
if (b) return b;
|
|
4265
4265
|
if (a !== void 0) return a;
|
|
4266
4266
|
throw new Error(`\`${f}\` must be used within \`${s}\``);
|
|
@@ -4373,7 +4373,7 @@ function tu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4373
4373
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
4374
4374
|
}, [n, t]);
|
|
4375
4375
|
}
|
|
4376
|
-
var nu = "DismissableLayer", Jn = "dismissableLayer.update", ru = "dismissableLayer.pointerDownOutside", ou = "dismissableLayer.focusOutside",
|
|
4376
|
+
var nu = "DismissableLayer", Jn = "dismissableLayer.update", ru = "dismissableLayer.pointerDownOutside", ou = "dismissableLayer.focusOutside", go, bs = u.createContext({
|
|
4377
4377
|
layers: /* @__PURE__ */ new Set(),
|
|
4378
4378
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4379
4379
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -4387,7 +4387,7 @@ var nu = "DismissableLayer", Jn = "dismissableLayer.update", ru = "dismissableLa
|
|
|
4387
4387
|
onInteractOutside: a,
|
|
4388
4388
|
onDismiss: i,
|
|
4389
4389
|
...c
|
|
4390
|
-
} = e, p = u.useContext(bs), [d, f] = u.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [,
|
|
4390
|
+
} = e, p = u.useContext(bs), [d, f] = u.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = u.useState({}), b = ae(t, (M) => f(M)), h = Array.from(p.layers), [x] = [...p.layersWithOutsidePointerEventsDisabled].slice(-1), v = h.indexOf(x), w = d ? h.indexOf(d) : -1, E = p.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= v, R = iu((M) => {
|
|
4391
4391
|
const C = M.target, D = [...p.branches].some((I) => I.contains(C));
|
|
4392
4392
|
!S || D || (o == null || o(M), a == null || a(M), M.defaultPrevented || i == null || i());
|
|
4393
4393
|
}, m), A = cu((M) => {
|
|
@@ -4398,13 +4398,13 @@ var nu = "DismissableLayer", Jn = "dismissableLayer.update", ru = "dismissableLa
|
|
|
4398
4398
|
w === p.layers.size - 1 && (r == null || r(M), !M.defaultPrevented && i && (M.preventDefault(), i()));
|
|
4399
4399
|
}, m), u.useEffect(() => {
|
|
4400
4400
|
if (d)
|
|
4401
|
-
return n && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
4402
|
-
n && p.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents =
|
|
4401
|
+
return n && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (go = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), p.layersWithOutsidePointerEventsDisabled.add(d)), p.layers.add(d), ho(), () => {
|
|
4402
|
+
n && p.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = go);
|
|
4403
4403
|
};
|
|
4404
4404
|
}, [d, m, n, p]), u.useEffect(() => () => {
|
|
4405
|
-
d && (p.layers.delete(d), p.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
4405
|
+
d && (p.layers.delete(d), p.layersWithOutsidePointerEventsDisabled.delete(d), ho());
|
|
4406
4406
|
}, [d, p]), u.useEffect(() => {
|
|
4407
|
-
const M = () =>
|
|
4407
|
+
const M = () => g({});
|
|
4408
4408
|
return document.addEventListener(Jn, M), () => document.removeEventListener(Jn, M);
|
|
4409
4409
|
}, []), /* @__PURE__ */ l.jsx(
|
|
4410
4410
|
ne.div,
|
|
@@ -4481,22 +4481,22 @@ function cu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4481
4481
|
onBlurCapture: () => r.current = !1
|
|
4482
4482
|
};
|
|
4483
4483
|
}
|
|
4484
|
-
function
|
|
4484
|
+
function ho() {
|
|
4485
4485
|
const e = new CustomEvent(Jn);
|
|
4486
4486
|
document.dispatchEvent(e);
|
|
4487
4487
|
}
|
|
4488
4488
|
function xs(e, t, n, { discrete: r }) {
|
|
4489
4489
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
4490
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
4490
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? gs(o, s) : o.dispatchEvent(s);
|
|
4491
4491
|
}
|
|
4492
|
-
var Nn = "focusScope.autoFocusOnMount", On = "focusScope.autoFocusOnUnmount", vo = { bubbles: !1, cancelable: !0 }, lu = "FocusScope",
|
|
4492
|
+
var Nn = "focusScope.autoFocusOnMount", On = "focusScope.autoFocusOnUnmount", vo = { bubbles: !1, cancelable: !0 }, lu = "FocusScope", hr = u.forwardRef((e, t) => {
|
|
4493
4493
|
const {
|
|
4494
4494
|
loop: n = !1,
|
|
4495
4495
|
trapped: r = !1,
|
|
4496
4496
|
onMountAutoFocus: o,
|
|
4497
4497
|
onUnmountAutoFocus: s,
|
|
4498
4498
|
...a
|
|
4499
|
-
} = e, [i, c] = u.useState(null), p = Me(o), d = Me(s), f = u.useRef(null), m = ae(t, (
|
|
4499
|
+
} = e, [i, c] = u.useState(null), p = Me(o), d = Me(s), f = u.useRef(null), m = ae(t, (h) => c(h)), g = u.useRef({
|
|
4500
4500
|
paused: !1,
|
|
4501
4501
|
pause() {
|
|
4502
4502
|
this.paused = !0;
|
|
@@ -4507,12 +4507,12 @@ var Nn = "focusScope.autoFocusOnMount", On = "focusScope.autoFocusOnUnmount", vo
|
|
|
4507
4507
|
}).current;
|
|
4508
4508
|
u.useEffect(() => {
|
|
4509
4509
|
if (r) {
|
|
4510
|
-
let
|
|
4511
|
-
if (
|
|
4510
|
+
let h = function(E) {
|
|
4511
|
+
if (g.paused || !i) return;
|
|
4512
4512
|
const S = E.target;
|
|
4513
4513
|
i.contains(S) ? f.current = S : We(f.current, { select: !0 });
|
|
4514
4514
|
}, x = function(E) {
|
|
4515
|
-
if (
|
|
4515
|
+
if (g.paused || !i) return;
|
|
4516
4516
|
const S = E.relatedTarget;
|
|
4517
4517
|
S !== null && (i.contains(S) || We(f.current, { select: !0 }));
|
|
4518
4518
|
}, v = function(E) {
|
|
@@ -4520,42 +4520,42 @@ var Nn = "focusScope.autoFocusOnMount", On = "focusScope.autoFocusOnUnmount", vo
|
|
|
4520
4520
|
for (const R of E)
|
|
4521
4521
|
R.removedNodes.length > 0 && We(i);
|
|
4522
4522
|
};
|
|
4523
|
-
document.addEventListener("focusin",
|
|
4523
|
+
document.addEventListener("focusin", h), document.addEventListener("focusout", x);
|
|
4524
4524
|
const w = new MutationObserver(v);
|
|
4525
4525
|
return i && w.observe(i, { childList: !0, subtree: !0 }), () => {
|
|
4526
|
-
document.removeEventListener("focusin",
|
|
4526
|
+
document.removeEventListener("focusin", h), document.removeEventListener("focusout", x), w.disconnect();
|
|
4527
4527
|
};
|
|
4528
4528
|
}
|
|
4529
|
-
}, [r, i,
|
|
4529
|
+
}, [r, i, g.paused]), u.useEffect(() => {
|
|
4530
4530
|
if (i) {
|
|
4531
|
-
xo.add(
|
|
4532
|
-
const
|
|
4533
|
-
if (!i.contains(
|
|
4531
|
+
xo.add(g);
|
|
4532
|
+
const h = document.activeElement;
|
|
4533
|
+
if (!i.contains(h)) {
|
|
4534
4534
|
const v = new CustomEvent(Nn, vo);
|
|
4535
|
-
i.addEventListener(Nn, p), i.dispatchEvent(v), v.defaultPrevented || (uu(
|
|
4535
|
+
i.addEventListener(Nn, p), i.dispatchEvent(v), v.defaultPrevented || (uu(gu(ws(i)), { select: !0 }), document.activeElement === h && We(i));
|
|
4536
4536
|
}
|
|
4537
4537
|
return () => {
|
|
4538
4538
|
i.removeEventListener(Nn, p), setTimeout(() => {
|
|
4539
4539
|
const v = new CustomEvent(On, vo);
|
|
4540
|
-
i.addEventListener(On, d), i.dispatchEvent(v), v.defaultPrevented || We(
|
|
4540
|
+
i.addEventListener(On, d), i.dispatchEvent(v), v.defaultPrevented || We(h ?? document.body, { select: !0 }), i.removeEventListener(On, d), xo.remove(g);
|
|
4541
4541
|
}, 0);
|
|
4542
4542
|
};
|
|
4543
4543
|
}
|
|
4544
|
-
}, [i, p, d,
|
|
4544
|
+
}, [i, p, d, g]);
|
|
4545
4545
|
const b = u.useCallback(
|
|
4546
|
-
(
|
|
4547
|
-
if (!n && !r ||
|
|
4548
|
-
const x =
|
|
4546
|
+
(h) => {
|
|
4547
|
+
if (!n && !r || g.paused) return;
|
|
4548
|
+
const x = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, v = document.activeElement;
|
|
4549
4549
|
if (x && v) {
|
|
4550
|
-
const w =
|
|
4551
|
-
E && S ? !
|
|
4550
|
+
const w = h.currentTarget, [E, S] = du(w);
|
|
4551
|
+
E && S ? !h.shiftKey && v === S ? (h.preventDefault(), n && We(E, { select: !0 })) : h.shiftKey && v === E && (h.preventDefault(), n && We(S, { select: !0 })) : v === w && h.preventDefault();
|
|
4552
4552
|
}
|
|
4553
4553
|
},
|
|
4554
|
-
[n, r,
|
|
4554
|
+
[n, r, g.paused]
|
|
4555
4555
|
);
|
|
4556
4556
|
return /* @__PURE__ */ l.jsx(ne.div, { tabIndex: -1, ...a, ref: m, onKeyDown: b });
|
|
4557
4557
|
});
|
|
4558
|
-
|
|
4558
|
+
hr.displayName = lu;
|
|
4559
4559
|
function uu(e, { select: t = !1 } = {}) {
|
|
4560
4560
|
const n = document.activeElement;
|
|
4561
4561
|
for (const r of e)
|
|
@@ -4615,17 +4615,17 @@ function wo(e, t) {
|
|
|
4615
4615
|
const n = [...e], r = n.indexOf(t);
|
|
4616
4616
|
return r !== -1 && n.splice(r, 1), n;
|
|
4617
4617
|
}
|
|
4618
|
-
function
|
|
4618
|
+
function gu(e) {
|
|
4619
4619
|
return e.filter((t) => t.tagName !== "A");
|
|
4620
4620
|
}
|
|
4621
|
-
var
|
|
4621
|
+
var hu = "Portal", vr = u.forwardRef((e, t) => {
|
|
4622
4622
|
var i;
|
|
4623
4623
|
const { container: n, ...r } = e, [o, s] = u.useState(!1);
|
|
4624
4624
|
Ge(() => s(!0), []);
|
|
4625
4625
|
const a = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
4626
4626
|
return a ? Fi.createPortal(/* @__PURE__ */ l.jsx(ne.div, { ...r, ref: t }), a) : null;
|
|
4627
4627
|
});
|
|
4628
|
-
vr.displayName =
|
|
4628
|
+
vr.displayName = hu;
|
|
4629
4629
|
function vu(e, t) {
|
|
4630
4630
|
return u.useReducer((n, r) => t[n][r] ?? n, e);
|
|
4631
4631
|
}
|
|
@@ -4654,22 +4654,22 @@ function bu(e) {
|
|
|
4654
4654
|
}, [i]), Ge(() => {
|
|
4655
4655
|
const p = r.current, d = o.current;
|
|
4656
4656
|
if (d !== e) {
|
|
4657
|
-
const m = s.current,
|
|
4658
|
-
e ? c("MOUNT") :
|
|
4657
|
+
const m = s.current, g = Ft(p);
|
|
4658
|
+
e ? c("MOUNT") : g === "none" || (p == null ? void 0 : p.display) === "none" ? c("UNMOUNT") : c(d && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
4659
4659
|
}
|
|
4660
4660
|
}, [e, c]), Ge(() => {
|
|
4661
4661
|
if (t) {
|
|
4662
4662
|
let p;
|
|
4663
|
-
const d = t.ownerDocument.defaultView ?? window, f = (
|
|
4664
|
-
const
|
|
4665
|
-
if (
|
|
4663
|
+
const d = t.ownerDocument.defaultView ?? window, f = (g) => {
|
|
4664
|
+
const h = Ft(r.current).includes(g.animationName);
|
|
4665
|
+
if (g.target === t && h && (c("ANIMATION_END"), !o.current)) {
|
|
4666
4666
|
const x = t.style.animationFillMode;
|
|
4667
4667
|
t.style.animationFillMode = "forwards", p = d.setTimeout(() => {
|
|
4668
4668
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = x);
|
|
4669
4669
|
});
|
|
4670
4670
|
}
|
|
4671
|
-
}, m = (
|
|
4672
|
-
|
|
4671
|
+
}, m = (g) => {
|
|
4672
|
+
g.target === t && (s.current = Ft(r.current));
|
|
4673
4673
|
};
|
|
4674
4674
|
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
4675
4675
|
d.clearTimeout(p), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
@@ -4853,11 +4853,11 @@ var Ss = Au(), Dn = function() {
|
|
|
4853
4853
|
onScrollCapture: Dn,
|
|
4854
4854
|
onWheelCapture: Dn,
|
|
4855
4855
|
onTouchMoveCapture: Dn
|
|
4856
|
-
}), 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,
|
|
4856
|
+
}), 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, g = e.noRelative, b = e.noIsolation, h = e.inert, x = e.allowPinchZoom, v = e.as, w = v === void 0 ? "div" : v, E = e.gapMode, S = Cs(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);
|
|
4857
4857
|
return u.createElement(
|
|
4858
4858
|
u.Fragment,
|
|
4859
4859
|
null,
|
|
4860
|
-
d && u.createElement(R, { sideCar: Ss, removeScrollBar: p, shards: f, noRelative:
|
|
4860
|
+
d && u.createElement(R, { sideCar: Ss, removeScrollBar: p, shards: f, noRelative: g, noIsolation: b, inert: h, setCallbacks: s, allowPinchZoom: !!x, lockRef: n, gapMode: E }),
|
|
4861
4861
|
a ? u.cloneElement(u.Children.only(i), Se(Se({}, M), { ref: A })) : u.createElement(w, Se({}, M, { className: c, ref: A }), i)
|
|
4862
4862
|
);
|
|
4863
4863
|
});
|
|
@@ -5060,7 +5060,7 @@ var nt = Qn ? { passive: !1 } : !1, Wu = function(e) {
|
|
|
5060
5060
|
do {
|
|
5061
5061
|
if (!i)
|
|
5062
5062
|
break;
|
|
5063
|
-
var
|
|
5063
|
+
var g = As(e, i), b = g[0], h = g[1], x = g[2], v = h - x - s * b;
|
|
5064
5064
|
(b || v) && Ms(e, i) && (f += v, m += b);
|
|
5065
5065
|
var w = i.parentNode;
|
|
5066
5066
|
i = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
|
|
@@ -5091,33 +5091,33 @@ function Qu(e) {
|
|
|
5091
5091
|
}, [e]), u.useEffect(function() {
|
|
5092
5092
|
if (e.inert) {
|
|
5093
5093
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
5094
|
-
var
|
|
5095
|
-
return
|
|
5094
|
+
var h = wu([e.lockRef.current], (e.shards || []).map(_o), !0).filter(Boolean);
|
|
5095
|
+
return h.forEach(function(x) {
|
|
5096
5096
|
return x.classList.add("allow-interactivity-".concat(o));
|
|
5097
5097
|
}), function() {
|
|
5098
|
-
document.body.classList.remove("block-interactivity-".concat(o)),
|
|
5098
|
+
document.body.classList.remove("block-interactivity-".concat(o)), h.forEach(function(x) {
|
|
5099
5099
|
return x.classList.remove("allow-interactivity-".concat(o));
|
|
5100
5100
|
});
|
|
5101
5101
|
};
|
|
5102
5102
|
}
|
|
5103
5103
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
5104
|
-
var i = u.useCallback(function(
|
|
5105
|
-
if ("touches" in
|
|
5104
|
+
var i = u.useCallback(function(h, x) {
|
|
5105
|
+
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
5106
5106
|
return !a.current.allowPinchZoom;
|
|
5107
|
-
var v = Vt(
|
|
5108
|
-
if ("touches" in
|
|
5107
|
+
var v = Vt(h), w = n.current, E = "deltaX" in h ? h.deltaX : w[0] - v[0], S = "deltaY" in h ? h.deltaY : w[1] - v[1], R, A = h.target, M = Math.abs(E) > Math.abs(S) ? "h" : "v";
|
|
5108
|
+
if ("touches" in h && M === "h" && A.type === "range")
|
|
5109
5109
|
return !1;
|
|
5110
5110
|
var C = So(M, A);
|
|
5111
5111
|
if (!C)
|
|
5112
5112
|
return !0;
|
|
5113
5113
|
if (C ? R = M : (R = M === "v" ? "h" : "v", C = So(M, A)), !C)
|
|
5114
5114
|
return !1;
|
|
5115
|
-
if (!r.current && "changedTouches" in
|
|
5115
|
+
if (!r.current && "changedTouches" in h && (E || S) && (r.current = R), !R)
|
|
5116
5116
|
return !0;
|
|
5117
5117
|
var D = r.current || R;
|
|
5118
|
-
return qu(D, x,
|
|
5119
|
-
}, []), c = u.useCallback(function(
|
|
5120
|
-
var x =
|
|
5118
|
+
return qu(D, x, h, D === "h" ? E : S);
|
|
5119
|
+
}, []), c = u.useCallback(function(h) {
|
|
5120
|
+
var x = h;
|
|
5121
5121
|
if (!(!rt.length || rt[rt.length - 1] !== s)) {
|
|
5122
5122
|
var v = "deltaY" in x ? Ro(x) : Vt(x), w = t.current.filter(function(R) {
|
|
5123
5123
|
return R.name === x.type && (R.target === x.target || x.target === R.shadowParent) && Xu(R.delta, v);
|
|
@@ -5133,19 +5133,19 @@ function Qu(e) {
|
|
|
5133
5133
|
S && x.cancelable && x.preventDefault();
|
|
5134
5134
|
}
|
|
5135
5135
|
}
|
|
5136
|
-
}, []), p = u.useCallback(function(
|
|
5137
|
-
var E = { name:
|
|
5136
|
+
}, []), p = u.useCallback(function(h, x, v, w) {
|
|
5137
|
+
var E = { name: h, delta: x, target: v, should: w, shadowParent: ed(v) };
|
|
5138
5138
|
t.current.push(E), setTimeout(function() {
|
|
5139
5139
|
t.current = t.current.filter(function(S) {
|
|
5140
5140
|
return S !== E;
|
|
5141
5141
|
});
|
|
5142
5142
|
}, 1);
|
|
5143
|
-
}, []), d = u.useCallback(function(
|
|
5144
|
-
n.current = Vt(
|
|
5145
|
-
}, []), f = u.useCallback(function(
|
|
5146
|
-
p(
|
|
5147
|
-
}, []), m = u.useCallback(function(
|
|
5148
|
-
p(
|
|
5143
|
+
}, []), d = u.useCallback(function(h) {
|
|
5144
|
+
n.current = Vt(h), r.current = void 0;
|
|
5145
|
+
}, []), f = u.useCallback(function(h) {
|
|
5146
|
+
p(h.type, Ro(h), h.target, i(h, e.lockRef.current));
|
|
5147
|
+
}, []), m = u.useCallback(function(h) {
|
|
5148
|
+
p(h.type, Vt(h), h.target, i(h, e.lockRef.current));
|
|
5149
5149
|
}, []);
|
|
5150
5150
|
u.useEffect(function() {
|
|
5151
5151
|
return rt.push(s), e.setCallbacks({
|
|
@@ -5153,17 +5153,17 @@ function Qu(e) {
|
|
|
5153
5153
|
onWheelCapture: f,
|
|
5154
5154
|
onTouchMoveCapture: m
|
|
5155
5155
|
}), document.addEventListener("wheel", c, nt), document.addEventListener("touchmove", c, nt), document.addEventListener("touchstart", d, nt), function() {
|
|
5156
|
-
rt = rt.filter(function(
|
|
5157
|
-
return
|
|
5156
|
+
rt = rt.filter(function(h) {
|
|
5157
|
+
return h !== s;
|
|
5158
5158
|
}), document.removeEventListener("wheel", c, nt), document.removeEventListener("touchmove", c, nt), document.removeEventListener("touchstart", d, nt);
|
|
5159
5159
|
};
|
|
5160
5160
|
}, []);
|
|
5161
|
-
var
|
|
5161
|
+
var g = e.removeScrollBar, b = e.inert;
|
|
5162
5162
|
return u.createElement(
|
|
5163
5163
|
u.Fragment,
|
|
5164
5164
|
null,
|
|
5165
5165
|
b ? u.createElement(s, { styles: Zu(o) }) : null,
|
|
5166
|
-
|
|
5166
|
+
g ? u.createElement(zu, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
5167
5167
|
);
|
|
5168
5168
|
}
|
|
5169
5169
|
function ed(e) {
|
|
@@ -5205,8 +5205,8 @@ var nd = function(e) {
|
|
|
5205
5205
|
d(m);
|
|
5206
5206
|
else
|
|
5207
5207
|
try {
|
|
5208
|
-
var
|
|
5209
|
-
ot.set(m,
|
|
5208
|
+
var g = m.getAttribute(r), b = g !== null && g !== "false", h = (ot.get(m) || 0) + 1, x = (s.get(m) || 0) + 1;
|
|
5209
|
+
ot.set(m, h), s.set(m, x), a.push(m), h === 1 && b && Ht.set(m, !0), x === 1 && m.setAttribute(n, "true"), b || m.setAttribute(r, "true");
|
|
5210
5210
|
} catch (v) {
|
|
5211
5211
|
console.error("aria-hidden: cannot operate on ", m, v);
|
|
5212
5212
|
}
|
|
@@ -5214,8 +5214,8 @@ var nd = function(e) {
|
|
|
5214
5214
|
};
|
|
5215
5215
|
return d(t), i.clear(), jn++, function() {
|
|
5216
5216
|
a.forEach(function(f) {
|
|
5217
|
-
var m = ot.get(f) - 1,
|
|
5218
|
-
ot.set(f, m), s.set(f,
|
|
5217
|
+
var m = ot.get(f) - 1, g = s.get(f) - 1;
|
|
5218
|
+
ot.set(f, m), s.set(f, g), m || (Ht.has(f) || f.removeAttribute(r), Ht.delete(f)), g || f.removeAttribute(n);
|
|
5219
5219
|
}), jn--, jn || (ot = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), zt = {});
|
|
5220
5220
|
};
|
|
5221
5221
|
}, Ns = function(e, t, n) {
|
|
@@ -5369,7 +5369,7 @@ var ld = u.forwardRef(
|
|
|
5369
5369
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Ee(Xe, n), c = u.useRef(null), p = ae(t, c);
|
|
5370
5370
|
return ys(), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
5371
5371
|
/* @__PURE__ */ l.jsx(
|
|
5372
|
-
|
|
5372
|
+
hr,
|
|
5373
5373
|
{
|
|
5374
5374
|
asChild: !0,
|
|
5375
5375
|
loop: !0,
|
|
@@ -5449,8 +5449,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5449
5449
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
5450
5450
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
5451
5451
|
}, [r, e, t]), null;
|
|
5452
|
-
}, md = ks,
|
|
5453
|
-
const vd = md, p0 =
|
|
5452
|
+
}, md = ks, gd = Ds, hd = js, Ks = Ls, Ys = Fs, qs = Vs, Xs = zs, Zs = Bs;
|
|
5453
|
+
const vd = md, p0 = gd, m0 = Zs, bd = hd, Js = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
5454
5454
|
Ks,
|
|
5455
5455
|
{
|
|
5456
5456
|
className: P(
|
|
@@ -5554,7 +5554,7 @@ function Mo({
|
|
|
5554
5554
|
}
|
|
5555
5555
|
);
|
|
5556
5556
|
}
|
|
5557
|
-
const yd = ["top", "right", "bottom", "left"], Ue = Math.min,
|
|
5557
|
+
const yd = ["top", "right", "bottom", "left"], Ue = Math.min, ge = Math.max, Zt = Math.round, Wt = Math.floor, _e = (e) => ({
|
|
5558
5558
|
x: e,
|
|
5559
5559
|
y: e
|
|
5560
5560
|
}), Cd = {
|
|
@@ -5567,7 +5567,7 @@ const yd = ["top", "right", "bottom", "left"], Ue = Math.min, he = Math.max, Zt
|
|
|
5567
5567
|
end: "start"
|
|
5568
5568
|
};
|
|
5569
5569
|
function er(e, t, n) {
|
|
5570
|
-
return
|
|
5570
|
+
return ge(e, Ue(t, n));
|
|
5571
5571
|
}
|
|
5572
5572
|
function je(e, t) {
|
|
5573
5573
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -5665,47 +5665,47 @@ function Ao(e, t, n) {
|
|
|
5665
5665
|
floating: o
|
|
5666
5666
|
} = e;
|
|
5667
5667
|
const s = Re(t), a = Sr(t), i = Er(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;
|
|
5668
|
-
let
|
|
5668
|
+
let g;
|
|
5669
5669
|
switch (c) {
|
|
5670
5670
|
case "top":
|
|
5671
|
-
|
|
5671
|
+
g = {
|
|
5672
5672
|
x: d,
|
|
5673
5673
|
y: r.y - o.height
|
|
5674
5674
|
};
|
|
5675
5675
|
break;
|
|
5676
5676
|
case "bottom":
|
|
5677
|
-
|
|
5677
|
+
g = {
|
|
5678
5678
|
x: d,
|
|
5679
5679
|
y: r.y + r.height
|
|
5680
5680
|
};
|
|
5681
5681
|
break;
|
|
5682
5682
|
case "right":
|
|
5683
|
-
|
|
5683
|
+
g = {
|
|
5684
5684
|
x: r.x + r.width,
|
|
5685
5685
|
y: f
|
|
5686
5686
|
};
|
|
5687
5687
|
break;
|
|
5688
5688
|
case "left":
|
|
5689
|
-
|
|
5689
|
+
g = {
|
|
5690
5690
|
x: r.x - o.width,
|
|
5691
5691
|
y: f
|
|
5692
5692
|
};
|
|
5693
5693
|
break;
|
|
5694
5694
|
default:
|
|
5695
|
-
|
|
5695
|
+
g = {
|
|
5696
5696
|
x: r.x,
|
|
5697
5697
|
y: r.y
|
|
5698
5698
|
};
|
|
5699
5699
|
}
|
|
5700
5700
|
switch (pt(t)) {
|
|
5701
5701
|
case "start":
|
|
5702
|
-
|
|
5702
|
+
g[a] -= m * (n && p ? -1 : 1);
|
|
5703
5703
|
break;
|
|
5704
5704
|
case "end":
|
|
5705
|
-
|
|
5705
|
+
g[a] += m * (n && p ? -1 : 1);
|
|
5706
5706
|
break;
|
|
5707
5707
|
}
|
|
5708
|
-
return
|
|
5708
|
+
return g;
|
|
5709
5709
|
}
|
|
5710
5710
|
const Td = async (e, t, n) => {
|
|
5711
5711
|
const {
|
|
@@ -5721,12 +5721,12 @@ const Td = async (e, t, n) => {
|
|
|
5721
5721
|
}), {
|
|
5722
5722
|
x: d,
|
|
5723
5723
|
y: f
|
|
5724
|
-
} = Ao(p, r, c), m = r,
|
|
5725
|
-
for (let
|
|
5724
|
+
} = Ao(p, r, c), m = r, g = {}, b = 0;
|
|
5725
|
+
for (let h = 0; h < i.length; h++) {
|
|
5726
5726
|
const {
|
|
5727
5727
|
name: x,
|
|
5728
5728
|
fn: v
|
|
5729
|
-
} = i[
|
|
5729
|
+
} = i[h], {
|
|
5730
5730
|
x: w,
|
|
5731
5731
|
y: E,
|
|
5732
5732
|
data: S,
|
|
@@ -5737,7 +5737,7 @@ const Td = async (e, t, n) => {
|
|
|
5737
5737
|
initialPlacement: r,
|
|
5738
5738
|
placement: m,
|
|
5739
5739
|
strategy: o,
|
|
5740
|
-
middlewareData:
|
|
5740
|
+
middlewareData: g,
|
|
5741
5741
|
rects: p,
|
|
5742
5742
|
platform: a,
|
|
5743
5743
|
elements: {
|
|
@@ -5745,10 +5745,10 @@ const Td = async (e, t, n) => {
|
|
|
5745
5745
|
floating: t
|
|
5746
5746
|
}
|
|
5747
5747
|
});
|
|
5748
|
-
d = w ?? d, f = E ?? f,
|
|
5749
|
-
...
|
|
5748
|
+
d = w ?? d, f = E ?? f, g = {
|
|
5749
|
+
...g,
|
|
5750
5750
|
[x]: {
|
|
5751
|
-
...
|
|
5751
|
+
...g[x],
|
|
5752
5752
|
...S
|
|
5753
5753
|
}
|
|
5754
5754
|
}, R && b <= 50 && (b++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (p = R.rects === !0 ? await a.getElementRects({
|
|
@@ -5758,14 +5758,14 @@ const Td = async (e, t, n) => {
|
|
|
5758
5758
|
}) : R.rects), {
|
|
5759
5759
|
x: d,
|
|
5760
5760
|
y: f
|
|
5761
|
-
} = Ao(p, m, c)),
|
|
5761
|
+
} = Ao(p, m, c)), h = -1);
|
|
5762
5762
|
}
|
|
5763
5763
|
return {
|
|
5764
5764
|
x: d,
|
|
5765
5765
|
y: f,
|
|
5766
5766
|
placement: m,
|
|
5767
5767
|
strategy: o,
|
|
5768
|
-
middlewareData:
|
|
5768
|
+
middlewareData: g
|
|
5769
5769
|
};
|
|
5770
5770
|
};
|
|
5771
5771
|
async function wt(e, t) {
|
|
@@ -5783,8 +5783,8 @@ async function wt(e, t) {
|
|
|
5783
5783
|
rootBoundary: d = "viewport",
|
|
5784
5784
|
elementContext: f = "floating",
|
|
5785
5785
|
altBoundary: m = !1,
|
|
5786
|
-
padding:
|
|
5787
|
-
} = je(t, e), b = ra(
|
|
5786
|
+
padding: g = 0
|
|
5787
|
+
} = je(t, e), b = ra(g), x = i[m ? f === "floating" ? "reference" : "floating" : f], v = Qt(await s.getClippingRect({
|
|
5788
5788
|
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)),
|
|
5789
5789
|
boundary: p,
|
|
5790
5790
|
rootBoundary: d,
|
|
@@ -5834,14 +5834,14 @@ const Nd = (e) => ({
|
|
|
5834
5834
|
const f = ra(d), m = {
|
|
5835
5835
|
x: n,
|
|
5836
5836
|
y: r
|
|
5837
|
-
},
|
|
5837
|
+
}, g = Sr(o), b = Er(g), h = await a.getDimensions(p), x = g === "y", v = x ? "top" : "left", w = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", S = s.reference[b] + s.reference[g] - m[g] - s.floating[b], R = m[g] - s.reference[g], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(p));
|
|
5838
5838
|
let M = A ? A[E] : 0;
|
|
5839
5839
|
(!M || !await (a.isElement == null ? void 0 : a.isElement(A))) && (M = i.floating[E] || s.floating[b]);
|
|
5840
|
-
const C = S / 2 - R / 2, D = M / 2 -
|
|
5840
|
+
const C = S / 2 - R / 2, D = M / 2 - h[b] / 2 - 1, I = Ue(f[v], D), B = Ue(f[w], D), W = I, V = M - h[b] - B, H = M / 2 - h[b] / 2 + C, Y = er(W, H, V), L = !c.arrow && pt(o) != null && H !== Y && s.reference[b] / 2 - (H < W ? I : B) - h[b] / 2 < 0, G = L ? H < W ? H - W : H - V : 0;
|
|
5841
5841
|
return {
|
|
5842
|
-
[
|
|
5842
|
+
[g]: m[g] + G,
|
|
5843
5843
|
data: {
|
|
5844
|
-
[
|
|
5844
|
+
[g]: Y,
|
|
5845
5845
|
centerOffset: H - Y - G,
|
|
5846
5846
|
...L && {
|
|
5847
5847
|
alignmentOffset: G
|
|
@@ -5867,15 +5867,15 @@ const Nd = (e) => ({
|
|
|
5867
5867
|
mainAxis: d = !0,
|
|
5868
5868
|
crossAxis: f = !0,
|
|
5869
5869
|
fallbackPlacements: m,
|
|
5870
|
-
fallbackStrategy:
|
|
5870
|
+
fallbackStrategy: g = "bestFit",
|
|
5871
5871
|
fallbackAxisSideDirection: b = "none",
|
|
5872
|
-
flipAlignment:
|
|
5872
|
+
flipAlignment: h = !0,
|
|
5873
5873
|
...x
|
|
5874
5874
|
} = je(e, t);
|
|
5875
5875
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
5876
5876
|
return {};
|
|
5877
|
-
const v = Le(o), w = Re(i), E = Le(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(p.floating)), R = m || (E || !
|
|
5878
|
-
!m && A && R.push(...Md(i,
|
|
5877
|
+
const v = Le(o), w = Re(i), E = Le(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(p.floating)), R = m || (E || !h ? [Jt(i)] : Rd(i)), A = b !== "none";
|
|
5878
|
+
!m && A && R.push(...Md(i, h, b, S));
|
|
5879
5879
|
const M = [i, ...R], C = await wt(t, x), D = [];
|
|
5880
5880
|
let I = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
5881
5881
|
if (d && D.push(C[v]), f) {
|
|
@@ -5902,7 +5902,7 @@ const Nd = (e) => ({
|
|
|
5902
5902
|
};
|
|
5903
5903
|
let L = (W = I.filter((G) => G.overflows[0] <= 0).sort((G, _) => G.overflows[1] - _.overflows[1])[0]) == null ? void 0 : W.placement;
|
|
5904
5904
|
if (!L)
|
|
5905
|
-
switch (
|
|
5905
|
+
switch (g) {
|
|
5906
5906
|
case "bestFit": {
|
|
5907
5907
|
var V;
|
|
5908
5908
|
const G = (V = I.filter((_) => {
|
|
@@ -5993,7 +5993,7 @@ async function Pd(e, t) {
|
|
|
5993
5993
|
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = Le(n), i = pt(n), c = Re(n) === "y", p = ["left", "top"].includes(a) ? -1 : 1, d = s && c ? -1 : 1, f = je(t, e);
|
|
5994
5994
|
let {
|
|
5995
5995
|
mainAxis: m,
|
|
5996
|
-
crossAxis:
|
|
5996
|
+
crossAxis: g,
|
|
5997
5997
|
alignmentAxis: b
|
|
5998
5998
|
} = typeof f == "number" ? {
|
|
5999
5999
|
mainAxis: f,
|
|
@@ -6004,12 +6004,12 @@ async function Pd(e, t) {
|
|
|
6004
6004
|
crossAxis: f.crossAxis || 0,
|
|
6005
6005
|
alignmentAxis: f.alignmentAxis
|
|
6006
6006
|
};
|
|
6007
|
-
return i && typeof b == "number" && (
|
|
6008
|
-
x:
|
|
6007
|
+
return i && typeof b == "number" && (g = i === "end" ? b * -1 : b), c ? {
|
|
6008
|
+
x: g * d,
|
|
6009
6009
|
y: m * p
|
|
6010
6010
|
} : {
|
|
6011
6011
|
x: m * p,
|
|
6012
|
-
y:
|
|
6012
|
+
y: g * d
|
|
6013
6013
|
};
|
|
6014
6014
|
}
|
|
6015
6015
|
const Dd = function(e) {
|
|
@@ -6063,25 +6063,25 @@ const Dd = function(e) {
|
|
|
6063
6063
|
x: n,
|
|
6064
6064
|
y: r
|
|
6065
6065
|
}, d = await wt(t, c), f = Re(Le(o)), m = Cr(f);
|
|
6066
|
-
let
|
|
6066
|
+
let g = p[m], b = p[f];
|
|
6067
6067
|
if (s) {
|
|
6068
|
-
const x = m === "y" ? "top" : "left", v = m === "y" ? "bottom" : "right", w =
|
|
6069
|
-
|
|
6068
|
+
const x = m === "y" ? "top" : "left", v = m === "y" ? "bottom" : "right", w = g + d[x], E = g - d[v];
|
|
6069
|
+
g = er(w, g, E);
|
|
6070
6070
|
}
|
|
6071
6071
|
if (a) {
|
|
6072
6072
|
const x = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", w = b + d[x], E = b - d[v];
|
|
6073
6073
|
b = er(w, b, E);
|
|
6074
6074
|
}
|
|
6075
|
-
const
|
|
6075
|
+
const h = i.fn({
|
|
6076
6076
|
...t,
|
|
6077
|
-
[m]:
|
|
6077
|
+
[m]: g,
|
|
6078
6078
|
[f]: b
|
|
6079
6079
|
});
|
|
6080
6080
|
return {
|
|
6081
|
-
...
|
|
6081
|
+
...h,
|
|
6082
6082
|
data: {
|
|
6083
|
-
x:
|
|
6084
|
-
y:
|
|
6083
|
+
x: h.x - n,
|
|
6084
|
+
y: h.y - r,
|
|
6085
6085
|
enabled: {
|
|
6086
6086
|
[m]: s,
|
|
6087
6087
|
[f]: a
|
|
@@ -6108,18 +6108,18 @@ const Dd = function(e) {
|
|
|
6108
6108
|
x: n,
|
|
6109
6109
|
y: r
|
|
6110
6110
|
}, f = Re(o), m = Cr(f);
|
|
6111
|
-
let
|
|
6112
|
-
const
|
|
6113
|
-
mainAxis:
|
|
6111
|
+
let g = d[m], b = d[f];
|
|
6112
|
+
const h = je(i, t), x = typeof h == "number" ? {
|
|
6113
|
+
mainAxis: h,
|
|
6114
6114
|
crossAxis: 0
|
|
6115
6115
|
} : {
|
|
6116
6116
|
mainAxis: 0,
|
|
6117
6117
|
crossAxis: 0,
|
|
6118
|
-
...
|
|
6118
|
+
...h
|
|
6119
6119
|
};
|
|
6120
6120
|
if (c) {
|
|
6121
6121
|
const E = m === "y" ? "height" : "width", S = s.reference[m] - s.floating[E] + x.mainAxis, R = s.reference[m] + s.reference[E] - x.mainAxis;
|
|
6122
|
-
|
|
6122
|
+
g < S ? g = S : g > R && (g = R);
|
|
6123
6123
|
}
|
|
6124
6124
|
if (p) {
|
|
6125
6125
|
var v, w;
|
|
@@ -6127,7 +6127,7 @@ const Dd = function(e) {
|
|
|
6127
6127
|
b < R ? b = R : b > A && (b = A);
|
|
6128
6128
|
}
|
|
6129
6129
|
return {
|
|
6130
|
-
[m]:
|
|
6130
|
+
[m]: g,
|
|
6131
6131
|
[f]: b
|
|
6132
6132
|
};
|
|
6133
6133
|
}
|
|
@@ -6147,17 +6147,17 @@ const Dd = function(e) {
|
|
|
6147
6147
|
apply: c = () => {
|
|
6148
6148
|
},
|
|
6149
6149
|
...p
|
|
6150
|
-
} = je(e, t), d = await wt(t, p), f = Le(o), m = pt(o),
|
|
6150
|
+
} = je(e, t), d = await wt(t, p), f = Le(o), m = pt(o), g = Re(o) === "y", {
|
|
6151
6151
|
width: b,
|
|
6152
|
-
height:
|
|
6152
|
+
height: h
|
|
6153
6153
|
} = s.floating;
|
|
6154
6154
|
let x, v;
|
|
6155
6155
|
f === "top" || f === "bottom" ? (x = f, v = m === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (v = f, x = m === "end" ? "top" : "bottom");
|
|
6156
|
-
const w =
|
|
6156
|
+
const w = h - d.top - d.bottom, E = b - d.left - d.right, S = Ue(h - d[x], w), R = Ue(b - d[v], E), A = !t.middlewareData.shift;
|
|
6157
6157
|
let M = S, C = R;
|
|
6158
6158
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = E), (r = t.middlewareData.shift) != null && r.enabled.y && (M = w), A && !m) {
|
|
6159
|
-
const I =
|
|
6160
|
-
|
|
6159
|
+
const I = ge(d.left, 0), B = ge(d.right, 0), W = ge(d.top, 0), V = ge(d.bottom, 0);
|
|
6160
|
+
g ? C = b - 2 * (I !== 0 || B !== 0 ? I + B : ge(d.left, d.right)) : M = h - 2 * (W !== 0 || V !== 0 ? W + V : ge(d.top, d.bottom));
|
|
6161
6161
|
}
|
|
6162
6162
|
await c({
|
|
6163
6163
|
...t,
|
|
@@ -6165,7 +6165,7 @@ const Dd = function(e) {
|
|
|
6165
6165
|
availableHeight: M
|
|
6166
6166
|
});
|
|
6167
6167
|
const D = await a.getDimensions(i.floating);
|
|
6168
|
-
return b !== D.width ||
|
|
6168
|
+
return b !== D.width || h !== D.height ? {
|
|
6169
6169
|
reset: {
|
|
6170
6170
|
rects: !0
|
|
6171
6171
|
}
|
|
@@ -6179,7 +6179,7 @@ function cn() {
|
|
|
6179
6179
|
function mt(e) {
|
|
6180
6180
|
return oa(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
6181
6181
|
}
|
|
6182
|
-
function
|
|
6182
|
+
function he(e) {
|
|
6183
6183
|
var t;
|
|
6184
6184
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
6185
6185
|
}
|
|
@@ -6188,16 +6188,16 @@ function Te(e) {
|
|
|
6188
6188
|
return (t = (oa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6189
6189
|
}
|
|
6190
6190
|
function oa(e) {
|
|
6191
|
-
return cn() ? e instanceof Node || e instanceof
|
|
6191
|
+
return cn() ? e instanceof Node || e instanceof he(e).Node : !1;
|
|
6192
6192
|
}
|
|
6193
6193
|
function ye(e) {
|
|
6194
|
-
return cn() ? e instanceof Element || e instanceof
|
|
6194
|
+
return cn() ? e instanceof Element || e instanceof he(e).Element : !1;
|
|
6195
6195
|
}
|
|
6196
6196
|
function Ae(e) {
|
|
6197
|
-
return cn() ? e instanceof HTMLElement || e instanceof
|
|
6197
|
+
return cn() ? e instanceof HTMLElement || e instanceof he(e).HTMLElement : !1;
|
|
6198
6198
|
}
|
|
6199
6199
|
function Oo(e) {
|
|
6200
|
-
return !cn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
6200
|
+
return !cn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof he(e).ShadowRoot;
|
|
6201
6201
|
}
|
|
6202
6202
|
function Mt(e) {
|
|
6203
6203
|
const {
|
|
@@ -6242,7 +6242,7 @@ function ct(e) {
|
|
|
6242
6242
|
return ["html", "body", "#document"].includes(mt(e));
|
|
6243
6243
|
}
|
|
6244
6244
|
function Ce(e) {
|
|
6245
|
-
return
|
|
6245
|
+
return he(e).getComputedStyle(e);
|
|
6246
6246
|
}
|
|
6247
6247
|
function un(e) {
|
|
6248
6248
|
return ye(e) ? {
|
|
@@ -6272,7 +6272,7 @@ function sa(e) {
|
|
|
6272
6272
|
function yt(e, t, n) {
|
|
6273
6273
|
var r;
|
|
6274
6274
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6275
|
-
const o = sa(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a =
|
|
6275
|
+
const o = sa(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = he(o);
|
|
6276
6276
|
if (s) {
|
|
6277
6277
|
const i = nr(a);
|
|
6278
6278
|
return t.concat(a, a.visualViewport || [], Mt(o) ? o : [], i && n ? yt(i) : []);
|
|
@@ -6312,14 +6312,14 @@ function at(e) {
|
|
|
6312
6312
|
}
|
|
6313
6313
|
const Vd = /* @__PURE__ */ _e(0);
|
|
6314
6314
|
function ia(e) {
|
|
6315
|
-
const t =
|
|
6315
|
+
const t = he(e);
|
|
6316
6316
|
return !_r() || !t.visualViewport ? Vd : {
|
|
6317
6317
|
x: t.visualViewport.offsetLeft,
|
|
6318
6318
|
y: t.visualViewport.offsetTop
|
|
6319
6319
|
};
|
|
6320
6320
|
}
|
|
6321
6321
|
function Hd(e, t, n) {
|
|
6322
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
6322
|
+
return t === void 0 && (t = !1), !n || t && n !== he(e) ? !1 : t;
|
|
6323
6323
|
}
|
|
6324
6324
|
function Ze(e, t, n, r) {
|
|
6325
6325
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -6329,11 +6329,11 @@ function Ze(e, t, n, r) {
|
|
|
6329
6329
|
const i = Hd(s, n, r) ? ia(s) : _e(0);
|
|
6330
6330
|
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;
|
|
6331
6331
|
if (s) {
|
|
6332
|
-
const m =
|
|
6333
|
-
let b = m,
|
|
6334
|
-
for (;
|
|
6335
|
-
const x = at(
|
|
6336
|
-
c *= x.x, p *= x.y, d *= x.x, f *= x.y, c += E, p += S, b =
|
|
6332
|
+
const m = he(s), g = r && ye(r) ? he(r) : r;
|
|
6333
|
+
let b = m, h = nr(b);
|
|
6334
|
+
for (; h && r && g !== b; ) {
|
|
6335
|
+
const x = at(h), v = h.getBoundingClientRect(), w = Ce(h), E = v.left + (h.clientLeft + parseFloat(w.paddingLeft)) * x.x, S = v.top + (h.clientTop + parseFloat(w.paddingTop)) * x.y;
|
|
6336
|
+
c *= x.x, p *= x.y, d *= x.x, f *= x.y, c += E, p += S, b = he(h), h = nr(b);
|
|
6337
6337
|
}
|
|
6338
6338
|
}
|
|
6339
6339
|
return Qt({
|
|
@@ -6374,8 +6374,8 @@ function zd(e) {
|
|
|
6374
6374
|
}, p = _e(1);
|
|
6375
6375
|
const d = _e(0), f = Ae(r);
|
|
6376
6376
|
if ((f || !f && !s) && ((mt(r) !== "body" || Mt(a)) && (c = un(r)), Ae(r))) {
|
|
6377
|
-
const
|
|
6378
|
-
p = at(r), d.x =
|
|
6377
|
+
const g = Ze(r);
|
|
6378
|
+
p = at(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
|
|
6379
6379
|
}
|
|
6380
6380
|
const m = a && !f && !s ? ca(a, c, !0) : _e(0);
|
|
6381
6381
|
return {
|
|
@@ -6389,10 +6389,10 @@ function Wd(e) {
|
|
|
6389
6389
|
return Array.from(e.getClientRects());
|
|
6390
6390
|
}
|
|
6391
6391
|
function Bd(e) {
|
|
6392
|
-
const t = Te(e), n = un(e), r = e.ownerDocument.body, o =
|
|
6392
|
+
const t = Te(e), n = un(e), r = e.ownerDocument.body, o = ge(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = ge(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
6393
6393
|
let a = -n.scrollLeft + Ar(e);
|
|
6394
6394
|
const i = -n.scrollTop;
|
|
6395
|
-
return Ce(r).direction === "rtl" && (a +=
|
|
6395
|
+
return Ce(r).direction === "rtl" && (a += ge(t.clientWidth, r.clientWidth) - o), {
|
|
6396
6396
|
width: o,
|
|
6397
6397
|
height: s,
|
|
6398
6398
|
x: a,
|
|
@@ -6400,7 +6400,7 @@ function Bd(e) {
|
|
|
6400
6400
|
};
|
|
6401
6401
|
}
|
|
6402
6402
|
function Gd(e, t) {
|
|
6403
|
-
const n =
|
|
6403
|
+
const n = he(e), r = Te(e), o = n.visualViewport;
|
|
6404
6404
|
let s = r.clientWidth, a = r.clientHeight, i = 0, c = 0;
|
|
6405
6405
|
if (o) {
|
|
6406
6406
|
s = o.width, a = o.height;
|
|
@@ -6468,7 +6468,7 @@ function Yd(e) {
|
|
|
6468
6468
|
} = e;
|
|
6469
6469
|
const a = [...n === "clippingAncestors" ? ln(t) ? [] : Kd(t, this._c) : [].concat(n), r], i = a[0], c = a.reduce((p, d) => {
|
|
6470
6470
|
const f = ko(t, d, o);
|
|
6471
|
-
return p.top =
|
|
6471
|
+
return p.top = ge(f.top, p.top), p.right = Ue(f.right, p.right), p.bottom = Ue(f.bottom, p.bottom), p.left = ge(f.left, p.left), p;
|
|
6472
6472
|
}, ko(t, i, o));
|
|
6473
6473
|
return {
|
|
6474
6474
|
width: c.right - c.left,
|
|
@@ -6499,8 +6499,8 @@ function Xd(e, t, n) {
|
|
|
6499
6499
|
}
|
|
6500
6500
|
if (r || !r && !s)
|
|
6501
6501
|
if ((mt(t) !== "body" || Mt(o)) && (i = un(t)), r) {
|
|
6502
|
-
const
|
|
6503
|
-
c.x =
|
|
6502
|
+
const g = Ze(t, !0, s, t);
|
|
6503
|
+
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
6504
6504
|
} else o && p();
|
|
6505
6505
|
s && !r && o && p();
|
|
6506
6506
|
const d = o && !r && !s ? ca(o, i) : _e(0), f = a.left + i.scrollLeft - c.x - d.x, m = a.top + i.scrollTop - c.y - d.y;
|
|
@@ -6523,7 +6523,7 @@ function Po(e, t) {
|
|
|
6523
6523
|
return Te(e) === n && (n = n.ownerDocument.body), n;
|
|
6524
6524
|
}
|
|
6525
6525
|
function ua(e, t) {
|
|
6526
|
-
const n =
|
|
6526
|
+
const n = he(e);
|
|
6527
6527
|
if (ln(e))
|
|
6528
6528
|
return n;
|
|
6529
6529
|
if (!Ae(e)) {
|
|
@@ -6583,13 +6583,13 @@ function ef(e, t) {
|
|
|
6583
6583
|
left: d,
|
|
6584
6584
|
top: f,
|
|
6585
6585
|
width: m,
|
|
6586
|
-
height:
|
|
6586
|
+
height: g
|
|
6587
6587
|
} = p;
|
|
6588
|
-
if (i || t(), !m || !
|
|
6588
|
+
if (i || t(), !m || !g)
|
|
6589
6589
|
return;
|
|
6590
|
-
const b = Wt(f),
|
|
6591
|
-
rootMargin: -b + "px " + -
|
|
6592
|
-
threshold:
|
|
6590
|
+
const b = Wt(f), h = Wt(o.clientWidth - (d + m)), x = Wt(o.clientHeight - (f + g)), v = Wt(d), E = {
|
|
6591
|
+
rootMargin: -b + "px " + -h + "px " + -x + "px " + -v + "px",
|
|
6592
|
+
threshold: ge(0, Ue(1, c)) || 1
|
|
6593
6593
|
};
|
|
6594
6594
|
let S = !0;
|
|
6595
6595
|
function R(A) {
|
|
@@ -6631,25 +6631,25 @@ function tf(e, t, n, r) {
|
|
|
6631
6631
|
}), s && v.addEventListener("resize", n);
|
|
6632
6632
|
});
|
|
6633
6633
|
const f = p && i ? ef(p, n) : null;
|
|
6634
|
-
let m = -1,
|
|
6635
|
-
a && (
|
|
6634
|
+
let m = -1, g = null;
|
|
6635
|
+
a && (g = new ResizeObserver((v) => {
|
|
6636
6636
|
let [w] = v;
|
|
6637
|
-
w && w.target === p &&
|
|
6637
|
+
w && w.target === p && g && (g.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
6638
6638
|
var E;
|
|
6639
|
-
(E =
|
|
6639
|
+
(E = g) == null || E.observe(t);
|
|
6640
6640
|
})), n();
|
|
6641
|
-
}), p && !c &&
|
|
6642
|
-
let b,
|
|
6641
|
+
}), p && !c && g.observe(p), g.observe(t));
|
|
6642
|
+
let b, h = c ? Ze(e) : null;
|
|
6643
6643
|
c && x();
|
|
6644
6644
|
function x() {
|
|
6645
6645
|
const v = Ze(e);
|
|
6646
|
-
|
|
6646
|
+
h && !da(h, v) && n(), h = v, b = requestAnimationFrame(x);
|
|
6647
6647
|
}
|
|
6648
6648
|
return n(), () => {
|
|
6649
6649
|
var v;
|
|
6650
6650
|
d.forEach((w) => {
|
|
6651
6651
|
o && w.removeEventListener("scroll", n), s && w.removeEventListener("resize", n);
|
|
6652
|
-
}), f == null || f(), (v =
|
|
6652
|
+
}), f == null || f(), (v = g) == null || v.disconnect(), g = null, c && cancelAnimationFrame(b);
|
|
6653
6653
|
};
|
|
6654
6654
|
}
|
|
6655
6655
|
const nf = Dd, rf = Id, of = Od, sf = Ld, af = kd, Do = Nd, cf = jd, lf = (e, t, n) => {
|
|
@@ -6731,10 +6731,10 @@ function ff(e) {
|
|
|
6731
6731
|
placement: t,
|
|
6732
6732
|
middlewareData: {},
|
|
6733
6733
|
isPositioned: !1
|
|
6734
|
-
}), [m,
|
|
6735
|
-
en(m, r) ||
|
|
6736
|
-
const [b,
|
|
6737
|
-
_ !== A.current && (A.current = _,
|
|
6734
|
+
}), [m, g] = u.useState(r);
|
|
6735
|
+
en(m, r) || g(r);
|
|
6736
|
+
const [b, h] = u.useState(null), [x, v] = u.useState(null), w = u.useCallback((_) => {
|
|
6737
|
+
_ !== A.current && (A.current = _, h(_));
|
|
6738
6738
|
}, []), E = u.useCallback((_) => {
|
|
6739
6739
|
_ !== M.current && (M.current = _, v(_));
|
|
6740
6740
|
}, []), S = s || b, R = a || x, A = u.useRef(null), M = u.useRef(null), C = u.useRef(d), D = c != null, I = Fn(c), B = Fn(o), W = Fn(p), V = u.useCallback(() => {
|
|
@@ -6836,10 +6836,10 @@ const pf = (e) => {
|
|
|
6836
6836
|
}, mf = (e, t) => ({
|
|
6837
6837
|
...nf(e),
|
|
6838
6838
|
options: [e, t]
|
|
6839
|
-
}),
|
|
6839
|
+
}), gf = (e, t) => ({
|
|
6840
6840
|
...rf(e),
|
|
6841
6841
|
options: [e, t]
|
|
6842
|
-
}),
|
|
6842
|
+
}), hf = (e, t) => ({
|
|
6843
6843
|
...cf(e),
|
|
6844
6844
|
options: [e, t]
|
|
6845
6845
|
}), vf = (e, t) => ({
|
|
@@ -6894,14 +6894,14 @@ function Ef(e) {
|
|
|
6894
6894
|
n(void 0);
|
|
6895
6895
|
}, [e]), t;
|
|
6896
6896
|
}
|
|
6897
|
-
var Tr = "Popper", [ma, dn] = Je(Tr), [Sf,
|
|
6897
|
+
var Tr = "Popper", [ma, dn] = Je(Tr), [Sf, ga] = ma(Tr), ha = (e) => {
|
|
6898
6898
|
const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
|
|
6899
6899
|
return /* @__PURE__ */ l.jsx(Sf, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
6900
6900
|
};
|
|
6901
|
-
|
|
6901
|
+
ha.displayName = Tr;
|
|
6902
6902
|
var va = "PopperAnchor", ba = u.forwardRef(
|
|
6903
6903
|
(e, t) => {
|
|
6904
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s =
|
|
6904
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = ga(va, n), a = u.useRef(null), i = ae(t, a);
|
|
6905
6905
|
return u.useEffect(() => {
|
|
6906
6906
|
s.onAnchorChange((r == null ? void 0 : r.current) || a.current);
|
|
6907
6907
|
}), r ? null : /* @__PURE__ */ l.jsx(ne.div, { ...o, ref: i });
|
|
@@ -6923,10 +6923,10 @@ var Nr = "PopperContent", [Rf, _f] = ma(Nr), xa = u.forwardRef(
|
|
|
6923
6923
|
collisionPadding: d = 0,
|
|
6924
6924
|
sticky: f = "partial",
|
|
6925
6925
|
hideWhenDetached: m = !1,
|
|
6926
|
-
updatePositionStrategy:
|
|
6926
|
+
updatePositionStrategy: g = "optimized",
|
|
6927
6927
|
onPlaced: b,
|
|
6928
|
-
...
|
|
6929
|
-
} = e, x =
|
|
6928
|
+
...h
|
|
6929
|
+
} = e, x = ga(Nr, n), [v, w] = u.useState(null), E = ae(t, (X) => w(X)), [S, R] = u.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 = {
|
|
6930
6930
|
padding: I,
|
|
6931
6931
|
boundary: B.filter(Af),
|
|
6932
6932
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -6936,17 +6936,17 @@ var Nr = "PopperContent", [Rf, _f] = ma(Nr), xa = u.forwardRef(
|
|
|
6936
6936
|
strategy: "fixed",
|
|
6937
6937
|
placement: D,
|
|
6938
6938
|
whileElementsMounted: (...X) => tf(...X, {
|
|
6939
|
-
animationFrame:
|
|
6939
|
+
animationFrame: g === "always"
|
|
6940
6940
|
}),
|
|
6941
6941
|
elements: {
|
|
6942
6942
|
reference: x.anchor
|
|
6943
6943
|
},
|
|
6944
6944
|
middleware: [
|
|
6945
6945
|
mf({ mainAxis: o + C, alignmentAxis: a }),
|
|
6946
|
-
c &&
|
|
6946
|
+
c && gf({
|
|
6947
6947
|
mainAxis: !0,
|
|
6948
6948
|
crossAxis: !1,
|
|
6949
|
-
limiter: f === "partial" ?
|
|
6949
|
+
limiter: f === "partial" ? hf() : void 0,
|
|
6950
6950
|
...V
|
|
6951
6951
|
}),
|
|
6952
6952
|
c && vf({ ...V }),
|
|
@@ -7006,10 +7006,10 @@ var Nr = "PopperContent", [Rf, _f] = ma(Nr), xa = u.forwardRef(
|
|
|
7006
7006
|
{
|
|
7007
7007
|
"data-side": T,
|
|
7008
7008
|
"data-align": y,
|
|
7009
|
-
...
|
|
7009
|
+
...h,
|
|
7010
7010
|
ref: E,
|
|
7011
7011
|
style: {
|
|
7012
|
-
...
|
|
7012
|
+
...h.style,
|
|
7013
7013
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
7014
7014
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
7015
7015
|
animation: G ? void 0 : "none"
|
|
@@ -7082,16 +7082,16 @@ var Tf = (e) => ({
|
|
|
7082
7082
|
options: e,
|
|
7083
7083
|
fn(t) {
|
|
7084
7084
|
var x, v, w;
|
|
7085
|
-
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] = Ca(n), f = { start: "0%", center: "50%", end: "100%" }[d], m = (((v = o.arrow) == null ? void 0 : v.x) ?? 0) + i / 2,
|
|
7086
|
-
let b = "",
|
|
7087
|
-
return p === "bottom" ? (b = a ? f : `${m}px`,
|
|
7085
|
+
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] = Ca(n), f = { start: "0%", center: "50%", end: "100%" }[d], m = (((v = o.arrow) == null ? void 0 : v.x) ?? 0) + i / 2, g = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + c / 2;
|
|
7086
|
+
let b = "", h = "";
|
|
7087
|
+
return p === "bottom" ? (b = a ? f : `${m}px`, h = `${-c}px`) : p === "top" ? (b = a ? f : `${m}px`, h = `${r.floating.height + c}px`) : p === "right" ? (b = `${-c}px`, h = a ? f : `${g}px`) : p === "left" && (b = `${r.floating.width + c}px`, h = a ? f : `${g}px`), { data: { x: b, y: h } };
|
|
7088
7088
|
}
|
|
7089
7089
|
});
|
|
7090
7090
|
function Ca(e) {
|
|
7091
7091
|
const [t, n = "center"] = e.split("-");
|
|
7092
7092
|
return [t, n];
|
|
7093
7093
|
}
|
|
7094
|
-
var Or =
|
|
7094
|
+
var Or = ha, Ea = ba, Sa = xa, Ra = ya, Nf = Object.freeze({
|
|
7095
7095
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
7096
7096
|
position: "absolute",
|
|
7097
7097
|
border: 0,
|
|
@@ -7114,7 +7114,7 @@ var Or = ga, Ea = ba, Sa = xa, Ra = ya, Nf = Object.freeze({
|
|
|
7114
7114
|
)
|
|
7115
7115
|
);
|
|
7116
7116
|
_a.displayName = Of;
|
|
7117
|
-
var kf = _a, [fn,
|
|
7117
|
+
var kf = _a, [fn, g0] = Je("Tooltip", [
|
|
7118
7118
|
dn
|
|
7119
7119
|
]), pn = dn(), Ma = "TooltipProvider", Pf = 700, rr = "tooltip.open", [Df, kr] = fn(Ma), Aa = (e) => {
|
|
7120
7120
|
const {
|
|
@@ -7161,7 +7161,7 @@ var Ct = "Tooltip", [If, mn] = fn(Ct), Ta = (e) => {
|
|
|
7161
7161
|
onOpenChange: s,
|
|
7162
7162
|
disableHoverableContent: a,
|
|
7163
7163
|
delayDuration: i
|
|
7164
|
-
} = e, c = kr(Ct, e.__scopeTooltip), p = pn(t), [d, f] = u.useState(null), m = De(),
|
|
7164
|
+
} = e, c = kr(Ct, e.__scopeTooltip), p = pn(t), [d, f] = u.useState(null), m = De(), g = u.useRef(0), b = a ?? c.disableHoverableContent, h = i ?? c.delayDuration, x = u.useRef(!1), [v, w] = _t({
|
|
7165
7165
|
prop: r,
|
|
7166
7166
|
defaultProp: o ?? !1,
|
|
7167
7167
|
onChange: (M) => {
|
|
@@ -7169,16 +7169,16 @@ var Ct = "Tooltip", [If, mn] = fn(Ct), Ta = (e) => {
|
|
|
7169
7169
|
},
|
|
7170
7170
|
caller: Ct
|
|
7171
7171
|
}), E = u.useMemo(() => v ? x.current ? "delayed-open" : "instant-open" : "closed", [v]), S = u.useCallback(() => {
|
|
7172
|
-
window.clearTimeout(
|
|
7172
|
+
window.clearTimeout(g.current), g.current = 0, x.current = !1, w(!0);
|
|
7173
7173
|
}, [w]), R = u.useCallback(() => {
|
|
7174
|
-
window.clearTimeout(
|
|
7174
|
+
window.clearTimeout(g.current), g.current = 0, w(!1);
|
|
7175
7175
|
}, [w]), A = u.useCallback(() => {
|
|
7176
|
-
window.clearTimeout(
|
|
7177
|
-
x.current = !0, w(!0),
|
|
7178
|
-
},
|
|
7179
|
-
}, [
|
|
7176
|
+
window.clearTimeout(g.current), g.current = window.setTimeout(() => {
|
|
7177
|
+
x.current = !0, w(!0), g.current = 0;
|
|
7178
|
+
}, h);
|
|
7179
|
+
}, [h, w]);
|
|
7180
7180
|
return u.useEffect(() => () => {
|
|
7181
|
-
|
|
7181
|
+
g.current && (window.clearTimeout(g.current), g.current = 0);
|
|
7182
7182
|
}, []), /* @__PURE__ */ l.jsx(Or, { ...p, children: /* @__PURE__ */ l.jsx(
|
|
7183
7183
|
If,
|
|
7184
7184
|
{
|
|
@@ -7192,7 +7192,7 @@ var Ct = "Tooltip", [If, mn] = fn(Ct), Ta = (e) => {
|
|
|
7192
7192
|
c.isOpenDelayedRef.current ? A() : S();
|
|
7193
7193
|
}, [c.isOpenDelayedRef, A, S]),
|
|
7194
7194
|
onTriggerLeave: u.useCallback(() => {
|
|
7195
|
-
b ? R() : (window.clearTimeout(
|
|
7195
|
+
b ? R() : (window.clearTimeout(g.current), g.current = 0);
|
|
7196
7196
|
}, [R, b]),
|
|
7197
7197
|
onOpen: S,
|
|
7198
7198
|
onClose: R,
|
|
@@ -7231,7 +7231,7 @@ var or = "TooltipTrigger", Na = u.forwardRef(
|
|
|
7231
7231
|
}
|
|
7232
7232
|
);
|
|
7233
7233
|
Na.displayName = or;
|
|
7234
|
-
var jf = "TooltipPortal", [
|
|
7234
|
+
var jf = "TooltipPortal", [h0, Lf] = fn(jf, {
|
|
7235
7235
|
forceMount: void 0
|
|
7236
7236
|
}), lt = "TooltipContent", Oa = u.forwardRef(
|
|
7237
7237
|
(e, t) => {
|
|
@@ -7241,24 +7241,24 @@ var jf = "TooltipPortal", [g0, Lf] = fn(jf, {
|
|
|
7241
7241
|
), Ff = u.forwardRef((e, t) => {
|
|
7242
7242
|
const n = mn(lt, e.__scopeTooltip), r = kr(lt, e.__scopeTooltip), o = u.useRef(null), s = ae(t, o), [a, i] = u.useState(null), { trigger: c, onClose: p } = n, d = o.current, { onPointerInTransitChange: f } = r, m = u.useCallback(() => {
|
|
7243
7243
|
i(null), f(!1);
|
|
7244
|
-
}, [f]),
|
|
7245
|
-
(b,
|
|
7246
|
-
const x = b.currentTarget, v = { x: b.clientX, y: b.clientY }, w = Wf(v, x.getBoundingClientRect()), E = Bf(v, w), S = Gf(
|
|
7244
|
+
}, [f]), g = u.useCallback(
|
|
7245
|
+
(b, h) => {
|
|
7246
|
+
const x = b.currentTarget, v = { x: b.clientX, y: b.clientY }, w = Wf(v, x.getBoundingClientRect()), E = Bf(v, w), S = Gf(h.getBoundingClientRect()), R = Kf([...E, ...S]);
|
|
7247
7247
|
i(R), f(!0);
|
|
7248
7248
|
},
|
|
7249
7249
|
[f]
|
|
7250
7250
|
);
|
|
7251
7251
|
return u.useEffect(() => () => m(), [m]), u.useEffect(() => {
|
|
7252
7252
|
if (c && d) {
|
|
7253
|
-
const b = (x) =>
|
|
7254
|
-
return c.addEventListener("pointerleave", b), d.addEventListener("pointerleave",
|
|
7255
|
-
c.removeEventListener("pointerleave", b), d.removeEventListener("pointerleave",
|
|
7253
|
+
const b = (x) => g(x, d), h = (x) => g(x, c);
|
|
7254
|
+
return c.addEventListener("pointerleave", b), d.addEventListener("pointerleave", h), () => {
|
|
7255
|
+
c.removeEventListener("pointerleave", b), d.removeEventListener("pointerleave", h);
|
|
7256
7256
|
};
|
|
7257
7257
|
}
|
|
7258
|
-
}, [c, d,
|
|
7258
|
+
}, [c, d, g, m]), u.useEffect(() => {
|
|
7259
7259
|
if (a) {
|
|
7260
|
-
const b = (
|
|
7261
|
-
const x =
|
|
7260
|
+
const b = (h) => {
|
|
7261
|
+
const x = h.target, v = { x: h.clientX, y: h.clientY }, w = (c == null ? void 0 : c.contains(x)) || (d == null ? void 0 : d.contains(x)), E = !Uf(v, a);
|
|
7262
7262
|
w ? m() : E && (m(), p());
|
|
7263
7263
|
};
|
|
7264
7264
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
@@ -7277,8 +7277,8 @@ var jf = "TooltipPortal", [g0, Lf] = fn(jf, {
|
|
|
7277
7277
|
return u.useEffect(() => (document.addEventListener(rr, d), () => document.removeEventListener(rr, d)), [d]), u.useEffect(() => {
|
|
7278
7278
|
if (c.trigger) {
|
|
7279
7279
|
const f = (m) => {
|
|
7280
|
-
const
|
|
7281
|
-
|
|
7280
|
+
const g = m.target;
|
|
7281
|
+
g != null && g.contains(c.trigger) && d();
|
|
7282
7282
|
};
|
|
7283
7283
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
7284
7284
|
}
|
|
@@ -7434,7 +7434,7 @@ const Jf = qf, Qf = Xf, ep = Zf, Ia = u.forwardRef(({ className: e, sideOffset:
|
|
|
7434
7434
|
));
|
|
7435
7435
|
Ia.displayName = Da.displayName;
|
|
7436
7436
|
const tp = "sidebar_state", np = 60 * 60 * 24 * 7, rp = "16rem", op = "18rem", sp = "3rem", ap = "b", ja = u.createContext(null);
|
|
7437
|
-
function
|
|
7437
|
+
function gn() {
|
|
7438
7438
|
const e = u.useContext(ja);
|
|
7439
7439
|
if (!e)
|
|
7440
7440
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
@@ -7449,30 +7449,30 @@ function ip({
|
|
|
7449
7449
|
children: s,
|
|
7450
7450
|
...a
|
|
7451
7451
|
}) {
|
|
7452
|
-
const i = cl(), [c, p] = u.useState(!1), [d, f] = u.useState(e), m = t ?? d,
|
|
7452
|
+
const i = cl(), [c, p] = u.useState(!1), [d, f] = u.useState(e), m = t ?? d, g = u.useCallback(
|
|
7453
7453
|
(v) => {
|
|
7454
7454
|
const w = typeof v == "function" ? v(m) : v;
|
|
7455
7455
|
n ? n(w) : f(w), document.cookie = `${tp}=${w}; path=/; max-age=${np}`;
|
|
7456
7456
|
},
|
|
7457
7457
|
[n, m]
|
|
7458
|
-
), b = u.useCallback(() => i ? p((v) => !v) :
|
|
7458
|
+
), b = u.useCallback(() => i ? p((v) => !v) : g((v) => !v), [i, g, p]);
|
|
7459
7459
|
u.useEffect(() => {
|
|
7460
7460
|
const v = (w) => {
|
|
7461
7461
|
w.key === ap && (w.metaKey || w.ctrlKey) && (w.preventDefault(), b());
|
|
7462
7462
|
};
|
|
7463
7463
|
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
7464
7464
|
}, [b]);
|
|
7465
|
-
const
|
|
7465
|
+
const h = m ? "expanded" : "collapsed", x = u.useMemo(
|
|
7466
7466
|
() => ({
|
|
7467
|
-
state:
|
|
7467
|
+
state: h,
|
|
7468
7468
|
open: m,
|
|
7469
|
-
setOpen:
|
|
7469
|
+
setOpen: g,
|
|
7470
7470
|
isMobile: i,
|
|
7471
7471
|
openMobile: c,
|
|
7472
7472
|
setOpenMobile: p,
|
|
7473
7473
|
toggleSidebar: b
|
|
7474
7474
|
}),
|
|
7475
|
-
[
|
|
7475
|
+
[h, m, g, i, c, p, b]
|
|
7476
7476
|
);
|
|
7477
7477
|
return /* @__PURE__ */ l.jsx(ja.Provider, { value: x, children: /* @__PURE__ */ l.jsx(Jf, { delayDuration: 0, children: /* @__PURE__ */ l.jsx(
|
|
7478
7478
|
"div",
|
|
@@ -7500,7 +7500,7 @@ function cp({
|
|
|
7500
7500
|
children: o,
|
|
7501
7501
|
...s
|
|
7502
7502
|
}) {
|
|
7503
|
-
const { isMobile: a, state: i, openMobile: c, setOpenMobile: p } =
|
|
7503
|
+
const { isMobile: a, state: i, openMobile: c, setOpenMobile: p } = gn();
|
|
7504
7504
|
return n === "none" ? /* @__PURE__ */ l.jsx(
|
|
7505
7505
|
"div",
|
|
7506
7506
|
{
|
|
@@ -7585,7 +7585,7 @@ function lp({
|
|
|
7585
7585
|
onClick: t,
|
|
7586
7586
|
...n
|
|
7587
7587
|
}) {
|
|
7588
|
-
const { toggleSidebar: r } =
|
|
7588
|
+
const { toggleSidebar: r } = gn();
|
|
7589
7589
|
return /* @__PURE__ */ l.jsxs(
|
|
7590
7590
|
mr,
|
|
7591
7591
|
{
|
|
@@ -7606,7 +7606,7 @@ function lp({
|
|
|
7606
7606
|
);
|
|
7607
7607
|
}
|
|
7608
7608
|
function up({ className: e, ...t }) {
|
|
7609
|
-
const { toggleSidebar: n } =
|
|
7609
|
+
const { toggleSidebar: n } = gn();
|
|
7610
7610
|
return /* @__PURE__ */ l.jsx(
|
|
7611
7611
|
"button",
|
|
7612
7612
|
{
|
|
@@ -7684,7 +7684,7 @@ function x0({
|
|
|
7684
7684
|
...t
|
|
7685
7685
|
}) {
|
|
7686
7686
|
return /* @__PURE__ */ l.jsx(
|
|
7687
|
-
|
|
7687
|
+
gr,
|
|
7688
7688
|
{
|
|
7689
7689
|
"data-slot": "sidebar-separator",
|
|
7690
7690
|
"data-sidebar": "separator",
|
|
@@ -7763,7 +7763,7 @@ function y0({
|
|
|
7763
7763
|
}
|
|
7764
7764
|
);
|
|
7765
7765
|
}
|
|
7766
|
-
function
|
|
7766
|
+
function gp({
|
|
7767
7767
|
className: e,
|
|
7768
7768
|
...t
|
|
7769
7769
|
}) {
|
|
@@ -7799,7 +7799,7 @@ function E0({ className: e, ...t }) {
|
|
|
7799
7799
|
}
|
|
7800
7800
|
);
|
|
7801
7801
|
}
|
|
7802
|
-
const
|
|
7802
|
+
const hp = fr(
|
|
7803
7803
|
"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",
|
|
7804
7804
|
{
|
|
7805
7805
|
variants: {
|
|
@@ -7828,14 +7828,14 @@ function S0({
|
|
|
7828
7828
|
className: s,
|
|
7829
7829
|
...a
|
|
7830
7830
|
}) {
|
|
7831
|
-
const i = e ? ut : "button", { isMobile: c, state: p } =
|
|
7831
|
+
const i = e ? ut : "button", { isMobile: c, state: p } = gn(), d = /* @__PURE__ */ l.jsx(
|
|
7832
7832
|
i,
|
|
7833
7833
|
{
|
|
7834
7834
|
"data-slot": "sidebar-menu-button",
|
|
7835
7835
|
"data-sidebar": "menu-button",
|
|
7836
7836
|
"data-size": r,
|
|
7837
7837
|
"data-active": t,
|
|
7838
|
-
className: P(
|
|
7838
|
+
className: P(hp({ variant: n, size: r }), s),
|
|
7839
7839
|
...a
|
|
7840
7840
|
}
|
|
7841
7841
|
);
|
|
@@ -8005,18 +8005,18 @@ function wp({
|
|
|
8005
8005
|
const [a, i] = u.useState(r);
|
|
8006
8006
|
return u.useEffect(() => {
|
|
8007
8007
|
s && i(!0);
|
|
8008
|
-
}, [s]), /* @__PURE__ */ l.jsx(mp, { children: /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col", children: [
|
|
8009
|
-
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-row items-center justify-between", children: [
|
|
8008
|
+
}, [s]), /* @__PURE__ */ l.jsx(mp, { children: /* @__PURE__ */ l.jsxs("div", { className: "gli:flex gli:flex-col", children: [
|
|
8009
|
+
/* @__PURE__ */ l.jsxs("div", { className: "gli:flex gli:flex-row gli:items-center gli:justify-between", children: [
|
|
8010
8010
|
/* @__PURE__ */ l.jsxs(
|
|
8011
8011
|
"a",
|
|
8012
8012
|
{
|
|
8013
8013
|
href: t,
|
|
8014
8014
|
className: P(
|
|
8015
|
-
"flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100"
|
|
8015
|
+
"gli:flex gli:flex-1 gli:cursor-pointer gli:items-center gli:gap-2 gli:rounded-lg gli:p-2 gli:transition-colors hover:gli:bg-gray-100"
|
|
8016
8016
|
),
|
|
8017
8017
|
children: [
|
|
8018
|
-
o && /* @__PURE__ */ l.jsx("span", { className: P("text-gray-600"), children: o }),
|
|
8019
|
-
/* @__PURE__ */ l.jsx("span", { className: P("text-gray-600"), children: e })
|
|
8018
|
+
o && /* @__PURE__ */ l.jsx("span", { className: P("gli:text-gray-600"), children: o }),
|
|
8019
|
+
/* @__PURE__ */ l.jsx("span", { className: P("gli:text-gray-600"), children: e })
|
|
8020
8020
|
]
|
|
8021
8021
|
}
|
|
8022
8022
|
),
|
|
@@ -8024,12 +8024,12 @@ function wp({
|
|
|
8024
8024
|
"button",
|
|
8025
8025
|
{
|
|
8026
8026
|
type: "button",
|
|
8027
|
-
className: "mr-3 rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",
|
|
8027
|
+
className: "gli:mr-3 gli:rounded-lg gli:p-2 gli:text-gray-500 hover:gli:bg-gray-100 hover:gli:text-gray-700",
|
|
8028
8028
|
onClick: (c) => {
|
|
8029
8029
|
c.preventDefault(), c.stopPropagation(), i(!a);
|
|
8030
8030
|
},
|
|
8031
8031
|
"aria-label": a ? "Collapse section" : "Expand section",
|
|
8032
|
-
children: a ? /* @__PURE__ */ l.jsx(Wc, { className: "h-4 w-4" }) : /* @__PURE__ */ l.jsx(Qo, { className: "h-4 w-4" })
|
|
8032
|
+
children: a ? /* @__PURE__ */ l.jsx(Wc, { className: "gli:h-4 gli:w-4" }) : /* @__PURE__ */ l.jsx(Qo, { className: "gli:h-4 gli:w-4" })
|
|
8033
8033
|
}
|
|
8034
8034
|
)
|
|
8035
8035
|
] }),
|
|
@@ -8037,8 +8037,8 @@ function wp({
|
|
|
8037
8037
|
"div",
|
|
8038
8038
|
{
|
|
8039
8039
|
className: P(
|
|
8040
|
-
"overflow-hidden transition-all",
|
|
8041
|
-
a ? "max-h-96" : "max-h-0"
|
|
8040
|
+
"gli:overflow-hidden gli:transition-all",
|
|
8041
|
+
a ? "gli:max-h-96" : "gli:max-h-0"
|
|
8042
8042
|
),
|
|
8043
8043
|
children: n
|
|
8044
8044
|
}
|
|
@@ -8065,54 +8065,54 @@ const Ep = {
|
|
|
8065
8065
|
{
|
|
8066
8066
|
title: "Essential Insights",
|
|
8067
8067
|
url: "/essential-insights/overall-performance",
|
|
8068
|
-
icon: /* @__PURE__ */ l.jsx($c, { className: "h-5 w-5" }),
|
|
8068
|
+
icon: /* @__PURE__ */ l.jsx($c, { className: "gli:h-5 gli:w-5" }),
|
|
8069
8069
|
items: [
|
|
8070
8070
|
{
|
|
8071
8071
|
title: "Overall Performance",
|
|
8072
8072
|
url: "/essential-insights/overall-performance",
|
|
8073
|
-
icon: /* @__PURE__ */ l.jsx(es, { className: "h-4 w-4" })
|
|
8073
|
+
icon: /* @__PURE__ */ l.jsx(es, { className: "gli:h-4 gli:w-4" })
|
|
8074
8074
|
},
|
|
8075
8075
|
{
|
|
8076
8076
|
title: "Organic Performance",
|
|
8077
8077
|
url: "/essential-insights/organic-performance",
|
|
8078
|
-
icon: /* @__PURE__ */ l.jsx(oo, { className: "h-4 w-4" })
|
|
8078
|
+
icon: /* @__PURE__ */ l.jsx(oo, { className: "gli:h-4 gli:w-4" })
|
|
8079
8079
|
},
|
|
8080
8080
|
{
|
|
8081
8081
|
title: "Paid Performance",
|
|
8082
8082
|
url: "/essential-insights/paid-performance",
|
|
8083
|
-
icon: /* @__PURE__ */ l.jsx(jc, { className: "h-4 w-4" })
|
|
8083
|
+
icon: /* @__PURE__ */ l.jsx(jc, { className: "gli:h-4 gli:w-4" })
|
|
8084
8084
|
},
|
|
8085
8085
|
{
|
|
8086
8086
|
title: "Keyword Performance",
|
|
8087
8087
|
url: "/essential-insights/keyword-performance",
|
|
8088
|
-
icon: /* @__PURE__ */ l.jsx(oo, { className: "h-4 w-4" })
|
|
8088
|
+
icon: /* @__PURE__ */ l.jsx(oo, { className: "gli:h-4 gli:w-4" })
|
|
8089
8089
|
},
|
|
8090
8090
|
{
|
|
8091
8091
|
title: "More Components",
|
|
8092
8092
|
url: "/essential-insights/more-components",
|
|
8093
|
-
icon: /* @__PURE__ */ l.jsx(et, { className: "h-4 w-4" })
|
|
8093
|
+
icon: /* @__PURE__ */ l.jsx(et, { className: "gli:h-4 gli:w-4" })
|
|
8094
8094
|
}
|
|
8095
8095
|
]
|
|
8096
8096
|
},
|
|
8097
8097
|
{
|
|
8098
8098
|
title: "Price Monster",
|
|
8099
8099
|
url: "/price-monster",
|
|
8100
|
-
icon: /* @__PURE__ */ l.jsx(Uc, { className: "h-4 w-4" }),
|
|
8100
|
+
icon: /* @__PURE__ */ l.jsx(Uc, { className: "gli:h-4 gli:w-4" }),
|
|
8101
8101
|
items: [
|
|
8102
8102
|
{
|
|
8103
8103
|
title: "Dashboard",
|
|
8104
8104
|
url: "/price-monster/dashboard",
|
|
8105
|
-
icon: /* @__PURE__ */ l.jsx(et, { className: "h-4 w-4" })
|
|
8105
|
+
icon: /* @__PURE__ */ l.jsx(et, { className: "gli:h-4 gli:w-4" })
|
|
8106
8106
|
},
|
|
8107
8107
|
{
|
|
8108
8108
|
title: "Documentation",
|
|
8109
8109
|
url: "/price-monster/documentation",
|
|
8110
|
-
icon: /* @__PURE__ */ l.jsx(Oc, { className: "h-4 w-4" })
|
|
8110
|
+
icon: /* @__PURE__ */ l.jsx(Oc, { className: "gli:h-4 gli:w-4" })
|
|
8111
8111
|
},
|
|
8112
8112
|
{
|
|
8113
8113
|
title: "Subscriptions",
|
|
8114
8114
|
url: "/price-monster/subscriptions",
|
|
8115
|
-
icon: /* @__PURE__ */ l.jsx(Pc, { className: "h-4 w-4" })
|
|
8115
|
+
icon: /* @__PURE__ */ l.jsx(Pc, { className: "gli:h-4 gli:w-4" })
|
|
8116
8116
|
}
|
|
8117
8117
|
]
|
|
8118
8118
|
},
|
|
@@ -8124,7 +8124,7 @@ const Ep = {
|
|
|
8124
8124
|
{
|
|
8125
8125
|
title: "Dashboard",
|
|
8126
8126
|
url: "/cms/dashboard",
|
|
8127
|
-
icon: /* @__PURE__ */ l.jsx(et, { className: "h-4 w-4" })
|
|
8127
|
+
icon: /* @__PURE__ */ l.jsx(et, { className: "gli:h-4 gli:w-4" })
|
|
8128
8128
|
}
|
|
8129
8129
|
]
|
|
8130
8130
|
},
|
|
@@ -8136,7 +8136,7 @@ const Ep = {
|
|
|
8136
8136
|
{
|
|
8137
8137
|
title: "Dashboard",
|
|
8138
8138
|
url: "/storage-essentials/dashboard",
|
|
8139
|
-
icon: /* @__PURE__ */ l.jsx(et, { className: "h-4 w-4" })
|
|
8139
|
+
icon: /* @__PURE__ */ l.jsx(et, { className: "gli:h-4 gli:w-4" })
|
|
8140
8140
|
}
|
|
8141
8141
|
]
|
|
8142
8142
|
}
|
|
@@ -8145,31 +8145,31 @@ const Ep = {
|
|
|
8145
8145
|
function Sp({ ...e }) {
|
|
8146
8146
|
const { isActiveRoute: t } = Cp();
|
|
8147
8147
|
return /* @__PURE__ */ l.jsxs(cp, { ...e, children: [
|
|
8148
|
-
/* @__PURE__ */ l.jsx(fp, { children: /* @__PURE__ */ l.jsx("div", { className: "relative h-12 w-32 overflow-hidden", children: /* @__PURE__ */ l.jsx(
|
|
8148
|
+
/* @__PURE__ */ l.jsx(fp, { children: /* @__PURE__ */ l.jsx("div", { className: "gli:relative gli:h-12 gli:w-32 gli:overflow-hidden", children: /* @__PURE__ */ l.jsx(
|
|
8149
8149
|
"img",
|
|
8150
8150
|
{
|
|
8151
8151
|
src: yp,
|
|
8152
8152
|
alt: "GLI Logo",
|
|
8153
|
-
className: "h-full w-full object-contain"
|
|
8153
|
+
className: "gli:h-full gli:w-full gli:object-contain"
|
|
8154
8154
|
}
|
|
8155
8155
|
) }) }),
|
|
8156
8156
|
/* @__PURE__ */ l.jsxs(pp, { children: [
|
|
8157
|
-
/* @__PURE__ */ l.jsx("div", { className: "relative flex w-full min-w-0 flex-col px-2 py-1", children: /* @__PURE__ */ l.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ l.jsxs(
|
|
8157
|
+
/* @__PURE__ */ l.jsx("div", { className: "gli:relative gli:flex gli:w-full gli:min-w-0 gli:flex-col gli:px-2 gli:py-1", children: /* @__PURE__ */ l.jsx("div", { className: "gli:flex gli:flex-col", children: /* @__PURE__ */ l.jsxs(
|
|
8158
8158
|
"a",
|
|
8159
8159
|
{
|
|
8160
8160
|
href: "/",
|
|
8161
8161
|
className: P(
|
|
8162
|
-
"flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors",
|
|
8163
|
-
"hover:bg-gray-100",
|
|
8164
|
-
t("/") && "bg-blue-50 text-gli-bluedark font-medium"
|
|
8162
|
+
"gli:flex gli:cursor-pointer gli:items-center gli:gap-2 gli:rounded-lg gli:px-2 gli:py-2 gli:transition-colors",
|
|
8163
|
+
"hover:gli:bg-gray-100",
|
|
8164
|
+
t("/") && "gli:bg-blue-50 gli:text-gli-bluedark gli:font-medium"
|
|
8165
8165
|
),
|
|
8166
8166
|
children: [
|
|
8167
8167
|
/* @__PURE__ */ l.jsx(
|
|
8168
8168
|
es,
|
|
8169
8169
|
{
|
|
8170
8170
|
className: P(
|
|
8171
|
-
"h-5 w-5",
|
|
8172
|
-
t("/") ? "text-gli-bluedark" : "text-gray-600"
|
|
8171
|
+
"gli:h-5 gli:w-5",
|
|
8172
|
+
t("/") ? "gli:text-gli-bluedark" : "gli:text-gray-600"
|
|
8173
8173
|
)
|
|
8174
8174
|
}
|
|
8175
8175
|
),
|
|
@@ -8186,23 +8186,23 @@ function Sp({ ...e }) {
|
|
|
8186
8186
|
url: n.url,
|
|
8187
8187
|
icon: n.icon,
|
|
8188
8188
|
isActive: r,
|
|
8189
|
-
children: /* @__PURE__ */ l.jsx(
|
|
8189
|
+
children: /* @__PURE__ */ l.jsx(gp, { children: /* @__PURE__ */ l.jsx(vp, { children: n.items.map((o) => {
|
|
8190
8190
|
const s = t(o.url);
|
|
8191
8191
|
return /* @__PURE__ */ l.jsx(bp, { children: /* @__PURE__ */ l.jsx(xp, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
|
|
8192
8192
|
"a",
|
|
8193
8193
|
{
|
|
8194
8194
|
href: o.url,
|
|
8195
8195
|
className: P(
|
|
8196
|
-
"flex items-center gap-2 pl-4 transition-colors",
|
|
8197
|
-
"text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
8198
|
-
s && "bg-blue-50 text-gli-bluedark font-medium"
|
|
8196
|
+
"gli:flex gli:items-center gli:gap-2 gli:pl-4 gli:transition-colors",
|
|
8197
|
+
"gli:text-muted-foreground hover:gli:bg-muted hover:gli:text-foreground",
|
|
8198
|
+
s && "gli:bg-blue-50 gli:text-gli-bluedark gli:font-medium"
|
|
8199
8199
|
),
|
|
8200
8200
|
children: [
|
|
8201
8201
|
/* @__PURE__ */ l.jsx(
|
|
8202
8202
|
"span",
|
|
8203
8203
|
{
|
|
8204
8204
|
className: P(
|
|
8205
|
-
s ? "text-gli-bluedark" : "text-muted-foreground"
|
|
8205
|
+
s ? "gli:text-gli-bluedark" : "gli:text-muted-foreground"
|
|
8206
8206
|
),
|
|
8207
8207
|
children: o.icon
|
|
8208
8208
|
}
|
|
@@ -8211,7 +8211,7 @@ function Sp({ ...e }) {
|
|
|
8211
8211
|
"span",
|
|
8212
8212
|
{
|
|
8213
8213
|
className: P(
|
|
8214
|
-
s ? "text-gli-bluedark" : "text-muted-foreground"
|
|
8214
|
+
s ? "gli:text-gli-bluedark" : "gli:text-muted-foreground"
|
|
8215
8215
|
),
|
|
8216
8216
|
children: o.title
|
|
8217
8217
|
}
|
|
@@ -8232,27 +8232,27 @@ function La(e) {
|
|
|
8232
8232
|
const t = e + "CollectionProvider", [n, r] = Je(t), [o, s] = n(
|
|
8233
8233
|
t,
|
|
8234
8234
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
8235
|
-
), a = (
|
|
8236
|
-
const { scope: x, children: v } =
|
|
8235
|
+
), a = (h) => {
|
|
8236
|
+
const { scope: x, children: v } = h, w = pe.useRef(null), E = pe.useRef(/* @__PURE__ */ new Map()).current;
|
|
8237
8237
|
return /* @__PURE__ */ l.jsx(o, { scope: x, itemMap: E, collectionRef: w, children: v });
|
|
8238
8238
|
};
|
|
8239
8239
|
a.displayName = t;
|
|
8240
8240
|
const i = e + "CollectionSlot", c = /* @__PURE__ */ it(i), p = pe.forwardRef(
|
|
8241
|
-
(
|
|
8242
|
-
const { scope: v, children: w } =
|
|
8241
|
+
(h, x) => {
|
|
8242
|
+
const { scope: v, children: w } = h, E = s(i, v), S = ae(x, E.collectionRef);
|
|
8243
8243
|
return /* @__PURE__ */ l.jsx(c, { ref: S, children: w });
|
|
8244
8244
|
}
|
|
8245
8245
|
);
|
|
8246
8246
|
p.displayName = i;
|
|
8247
|
-
const d = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ it(d),
|
|
8248
|
-
(
|
|
8249
|
-
const { scope: v, children: w, ...E } =
|
|
8247
|
+
const d = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ it(d), g = pe.forwardRef(
|
|
8248
|
+
(h, x) => {
|
|
8249
|
+
const { scope: v, children: w, ...E } = h, S = pe.useRef(null), R = ae(x, S), A = s(d, v);
|
|
8250
8250
|
return pe.useEffect(() => (A.itemMap.set(S, { ref: S, ...E }), () => void A.itemMap.delete(S))), /* @__PURE__ */ l.jsx(m, { [f]: "", ref: R, children: w });
|
|
8251
8251
|
}
|
|
8252
8252
|
);
|
|
8253
|
-
|
|
8254
|
-
function b(
|
|
8255
|
-
const x = s(e + "CollectionConsumer",
|
|
8253
|
+
g.displayName = d;
|
|
8254
|
+
function b(h) {
|
|
8255
|
+
const x = s(e + "CollectionConsumer", h);
|
|
8256
8256
|
return pe.useCallback(() => {
|
|
8257
8257
|
const w = x.collectionRef.current;
|
|
8258
8258
|
if (!w) return [];
|
|
@@ -8263,7 +8263,7 @@ function La(e) {
|
|
|
8263
8263
|
}, [x.collectionRef, x.itemMap]);
|
|
8264
8264
|
}
|
|
8265
8265
|
return [
|
|
8266
|
-
{ Provider: a, Slot: p, ItemSlot:
|
|
8266
|
+
{ Provider: a, Slot: p, ItemSlot: g },
|
|
8267
8267
|
b,
|
|
8268
8268
|
r
|
|
8269
8269
|
];
|
|
@@ -8292,7 +8292,7 @@ var Op = u.forwardRef((e, t) => {
|
|
|
8292
8292
|
onEntryFocus: p,
|
|
8293
8293
|
preventScrollOnEntryFocus: d = !1,
|
|
8294
8294
|
...f
|
|
8295
|
-
} = e, m = u.useRef(null),
|
|
8295
|
+
} = e, m = u.useRef(null), g = ae(t, m), b = Fa(s), [h, x] = _t({
|
|
8296
8296
|
prop: a,
|
|
8297
8297
|
defaultProp: i ?? null,
|
|
8298
8298
|
onChange: c,
|
|
@@ -8309,7 +8309,7 @@ var Op = u.forwardRef((e, t) => {
|
|
|
8309
8309
|
orientation: r,
|
|
8310
8310
|
dir: b,
|
|
8311
8311
|
loop: o,
|
|
8312
|
-
currentTabStopId:
|
|
8312
|
+
currentTabStopId: h,
|
|
8313
8313
|
onItemFocus: u.useCallback(
|
|
8314
8314
|
(C) => x(C),
|
|
8315
8315
|
[x]
|
|
@@ -8329,7 +8329,7 @@ var Op = u.forwardRef((e, t) => {
|
|
|
8329
8329
|
tabIndex: v || A === 0 ? -1 : 0,
|
|
8330
8330
|
"data-orientation": r,
|
|
8331
8331
|
...f,
|
|
8332
|
-
ref:
|
|
8332
|
+
ref: g,
|
|
8333
8333
|
style: { outline: "none", ...e.style },
|
|
8334
8334
|
onMouseDown: F(e.onMouseDown, () => {
|
|
8335
8335
|
R.current = !0;
|
|
@@ -8339,7 +8339,7 @@ var Op = u.forwardRef((e, t) => {
|
|
|
8339
8339
|
if (C.target === C.currentTarget && D && !v) {
|
|
8340
8340
|
const I = new CustomEvent($n, _p);
|
|
8341
8341
|
if (C.currentTarget.dispatchEvent(I), !I.defaultPrevented) {
|
|
8342
|
-
const B = S().filter((L) => L.focusable), W = B.find((L) => L.active), V = B.find((L) => L.id ===
|
|
8342
|
+
const B = S().filter((L) => L.focusable), W = B.find((L) => L.active), V = B.find((L) => L.id === h), Y = [W, V, ...B].filter(
|
|
8343
8343
|
Boolean
|
|
8344
8344
|
).map((L) => L.ref.current);
|
|
8345
8345
|
Ba(Y, d);
|
|
@@ -8361,11 +8361,11 @@ var Op = u.forwardRef((e, t) => {
|
|
|
8361
8361
|
tabStopId: s,
|
|
8362
8362
|
children: a,
|
|
8363
8363
|
...i
|
|
8364
|
-
} = e, c = De(), p = s || c, d = Np(za, n), f = d.currentTabStopId === p, m = $a(n), { onFocusableItemAdd:
|
|
8364
|
+
} = e, c = De(), p = s || c, d = Np(za, n), f = d.currentTabStopId === p, m = $a(n), { onFocusableItemAdd: g, onFocusableItemRemove: b, currentTabStopId: h } = d;
|
|
8365
8365
|
return u.useEffect(() => {
|
|
8366
8366
|
if (r)
|
|
8367
|
-
return
|
|
8368
|
-
}, [r,
|
|
8367
|
+
return g(), () => b();
|
|
8368
|
+
}, [r, g, b]), /* @__PURE__ */ l.jsx(
|
|
8369
8369
|
sr.ItemSlot,
|
|
8370
8370
|
{
|
|
8371
8371
|
scope: n,
|
|
@@ -8403,7 +8403,7 @@ var Op = u.forwardRef((e, t) => {
|
|
|
8403
8403
|
setTimeout(() => Ba(E));
|
|
8404
8404
|
}
|
|
8405
8405
|
}),
|
|
8406
|
-
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop:
|
|
8406
|
+
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: h != null }) : a
|
|
8407
8407
|
}
|
|
8408
8408
|
)
|
|
8409
8409
|
}
|
|
@@ -8450,11 +8450,11 @@ var jp = Ha, Lp = Wa, ar = ["Enter", " "], Fp = ["ArrowDown", "PageUp", "Home"],
|
|
|
8450
8450
|
]), Nt = dn(), Ka = Va(), [Ya, Ye] = Qe(Tt), [Bp, Ot] = Qe(Tt), qa = (e) => {
|
|
8451
8451
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = Nt(t), [c, p] = u.useState(null), d = u.useRef(!1), f = Me(s), m = Fa(o);
|
|
8452
8452
|
return u.useEffect(() => {
|
|
8453
|
-
const
|
|
8453
|
+
const g = () => {
|
|
8454
8454
|
d.current = !0, document.addEventListener("pointerdown", b, { capture: !0, once: !0 }), document.addEventListener("pointermove", b, { capture: !0, once: !0 });
|
|
8455
8455
|
}, b = () => d.current = !1;
|
|
8456
|
-
return document.addEventListener("keydown",
|
|
8457
|
-
document.removeEventListener("keydown",
|
|
8456
|
+
return document.addEventListener("keydown", g, { capture: !0 }), () => {
|
|
8457
|
+
document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", b, { capture: !0 }), document.removeEventListener("pointermove", b, { capture: !0 });
|
|
8458
8458
|
};
|
|
8459
8459
|
}, []), /* @__PURE__ */ l.jsx(Or, { ...i, children: /* @__PURE__ */ l.jsx(
|
|
8460
8460
|
Ya,
|
|
@@ -8548,9 +8548,9 @@ var be = "MenuContent", [Kp, Ir] = Qe(be), Ja = u.forwardRef(
|
|
|
8548
8548
|
onPointerDownOutside: d,
|
|
8549
8549
|
onFocusOutside: f,
|
|
8550
8550
|
onInteractOutside: m,
|
|
8551
|
-
onDismiss:
|
|
8551
|
+
onDismiss: g,
|
|
8552
8552
|
disableOutsideScroll: b,
|
|
8553
|
-
...
|
|
8553
|
+
...h
|
|
8554
8554
|
} = e, x = Ye(be, n), v = Ot(be, n), w = Nt(n), E = Ka(n), S = zp(n), [R, A] = u.useState(null), M = u.useRef(null), C = ae(t, M, x.onContentChange), D = u.useRef(0), I = u.useRef(""), B = u.useRef(0), W = u.useRef(null), V = u.useRef("right"), H = u.useRef(0), Y = b ? br : u.Fragment, L = b ? { as: Xp, allowPinchZoom: !0 } : void 0, G = (T) => {
|
|
8555
8555
|
var U, J;
|
|
8556
8556
|
const y = I.current + T, N = S().filter((Q) => !Q.disabled), j = document.activeElement, $ = (U = N.find((Q) => Q.ref.current === j)) == null ? void 0 : U.textValue, q = N.map((Q) => Q.textValue), ee = cm(q, y, $), ce = (J = N.find((Q) => Q.textValue === ee)) == null ? void 0 : J.ref.current;
|
|
@@ -8592,7 +8592,7 @@ var be = "MenuContent", [Kp, Ir] = Qe(be), Ja = u.forwardRef(
|
|
|
8592
8592
|
W.current = T;
|
|
8593
8593
|
}, []),
|
|
8594
8594
|
children: /* @__PURE__ */ l.jsx(Y, { ...L, children: /* @__PURE__ */ l.jsx(
|
|
8595
|
-
|
|
8595
|
+
hr,
|
|
8596
8596
|
{
|
|
8597
8597
|
asChild: !0,
|
|
8598
8598
|
trapped: o,
|
|
@@ -8610,7 +8610,7 @@ var be = "MenuContent", [Kp, Ir] = Qe(be), Ja = u.forwardRef(
|
|
|
8610
8610
|
onPointerDownOutside: d,
|
|
8611
8611
|
onFocusOutside: f,
|
|
8612
8612
|
onInteractOutside: m,
|
|
8613
|
-
onDismiss:
|
|
8613
|
+
onDismiss: g,
|
|
8614
8614
|
children: /* @__PURE__ */ l.jsx(
|
|
8615
8615
|
jp,
|
|
8616
8616
|
{
|
|
@@ -8630,14 +8630,14 @@ var be = "MenuContent", [Kp, Ir] = Qe(be), Ja = u.forwardRef(
|
|
|
8630
8630
|
{
|
|
8631
8631
|
role: "menu",
|
|
8632
8632
|
"aria-orientation": "vertical",
|
|
8633
|
-
"data-state":
|
|
8633
|
+
"data-state": gi(x.open),
|
|
8634
8634
|
"data-radix-menu-content": "",
|
|
8635
8635
|
dir: v.dir,
|
|
8636
8636
|
...w,
|
|
8637
|
-
...
|
|
8637
|
+
...h,
|
|
8638
8638
|
ref: C,
|
|
8639
|
-
style: { outline: "none", ...
|
|
8640
|
-
onKeyDown: F(
|
|
8639
|
+
style: { outline: "none", ...h.style },
|
|
8640
|
+
onKeyDown: F(h.onKeyDown, (T) => {
|
|
8641
8641
|
const N = T.target.closest("[data-radix-menu-content]") === T.currentTarget, j = T.ctrlKey || T.altKey || T.metaKey, $ = T.key.length === 1;
|
|
8642
8642
|
N && (T.key === "Tab" && T.preventDefault(), !j && $ && G(T.key));
|
|
8643
8643
|
const q = M.current;
|
|
@@ -8686,13 +8686,13 @@ var Jp = "MenuLabel", Qa = u.forwardRef(
|
|
|
8686
8686
|
}
|
|
8687
8687
|
);
|
|
8688
8688
|
Qa.displayName = Jp;
|
|
8689
|
-
var tn = "MenuItem", jo = "menu.itemSelect",
|
|
8689
|
+
var tn = "MenuItem", jo = "menu.itemSelect", hn = u.forwardRef(
|
|
8690
8690
|
(e, t) => {
|
|
8691
8691
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = u.useRef(null), a = Ot(tn, e.__scopeMenu), i = Ir(tn, e.__scopeMenu), c = ae(t, s), p = u.useRef(!1), d = () => {
|
|
8692
8692
|
const f = s.current;
|
|
8693
8693
|
if (!n && f) {
|
|
8694
8694
|
const m = new CustomEvent(jo, { bubbles: !0, cancelable: !0 });
|
|
8695
|
-
f.addEventListener(jo, (
|
|
8695
|
+
f.addEventListener(jo, (g) => r == null ? void 0 : r(g), { once: !0 }), gs(f, m), m.defaultPrevented ? p.current = !1 : a.onClose();
|
|
8696
8696
|
}
|
|
8697
8697
|
};
|
|
8698
8698
|
return /* @__PURE__ */ l.jsx(
|
|
@@ -8718,13 +8718,13 @@ var tn = "MenuItem", jo = "menu.itemSelect", gn = u.forwardRef(
|
|
|
8718
8718
|
);
|
|
8719
8719
|
}
|
|
8720
8720
|
);
|
|
8721
|
-
|
|
8721
|
+
hn.displayName = tn;
|
|
8722
8722
|
var ei = u.forwardRef(
|
|
8723
8723
|
(e, t) => {
|
|
8724
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = Ir(tn, n), i = Ka(n), c = u.useRef(null), p = ae(t, c), [d, f] = u.useState(!1), [m,
|
|
8724
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = Ir(tn, n), i = Ka(n), c = u.useRef(null), p = ae(t, c), [d, f] = u.useState(!1), [m, g] = u.useState("");
|
|
8725
8725
|
return u.useEffect(() => {
|
|
8726
8726
|
const b = c.current;
|
|
8727
|
-
b &&
|
|
8727
|
+
b && g((b.textContent ?? "").trim());
|
|
8728
8728
|
}, [s.children]), /* @__PURE__ */ l.jsx(
|
|
8729
8729
|
Et.ItemSlot,
|
|
8730
8730
|
{
|
|
@@ -8761,7 +8761,7 @@ var ei = u.forwardRef(
|
|
|
8761
8761
|
(e, t) => {
|
|
8762
8762
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
8763
8763
|
return /* @__PURE__ */ l.jsx(ai, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ l.jsx(
|
|
8764
|
-
|
|
8764
|
+
hn,
|
|
8765
8765
|
{
|
|
8766
8766
|
role: "menuitemcheckbox",
|
|
8767
8767
|
"aria-checked": nn(n) ? "mixed" : n,
|
|
@@ -8793,7 +8793,7 @@ var oi = "MenuRadioItem", si = u.forwardRef(
|
|
|
8793
8793
|
(e, t) => {
|
|
8794
8794
|
const { value: n, ...r } = e, o = tm(oi, e.__scopeMenu), s = n === o.value;
|
|
8795
8795
|
return /* @__PURE__ */ l.jsx(ai, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ l.jsx(
|
|
8796
|
-
|
|
8796
|
+
hn,
|
|
8797
8797
|
{
|
|
8798
8798
|
role: "menuitemradio",
|
|
8799
8799
|
"aria-checked": s,
|
|
@@ -8900,7 +8900,7 @@ var bt = "MenuSubTrigger", fi = u.forwardRef(
|
|
|
8900
8900
|
"aria-haspopup": "menu",
|
|
8901
8901
|
"aria-expanded": n.open,
|
|
8902
8902
|
"aria-controls": o.contentId,
|
|
8903
|
-
"data-state":
|
|
8903
|
+
"data-state": gi(n.open),
|
|
8904
8904
|
...e,
|
|
8905
8905
|
ref: rn(t, o.onTriggerChange),
|
|
8906
8906
|
onClick: (f) => {
|
|
@@ -8918,11 +8918,11 @@ var bt = "MenuSubTrigger", fi = u.forwardRef(
|
|
|
8918
8918
|
onPointerLeave: F(
|
|
8919
8919
|
e.onPointerLeave,
|
|
8920
8920
|
St((f) => {
|
|
8921
|
-
var
|
|
8921
|
+
var g, b;
|
|
8922
8922
|
d();
|
|
8923
|
-
const m = (
|
|
8923
|
+
const m = (g = n.content) == null ? void 0 : g.getBoundingClientRect();
|
|
8924
8924
|
if (m) {
|
|
8925
|
-
const
|
|
8925
|
+
const h = (b = n.content) == null ? void 0 : b.dataset.side, x = h === "right", v = x ? -5 : 5, w = m[x ? "left" : "right"], E = m[x ? "right" : "left"];
|
|
8926
8926
|
s.onPointerGraceIntentChange({
|
|
8927
8927
|
area: [
|
|
8928
8928
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
@@ -8933,7 +8933,7 @@ var bt = "MenuSubTrigger", fi = u.forwardRef(
|
|
|
8933
8933
|
{ x: E, y: m.bottom },
|
|
8934
8934
|
{ x: w, y: m.bottom }
|
|
8935
8935
|
],
|
|
8936
|
-
side:
|
|
8936
|
+
side: h
|
|
8937
8937
|
}), window.clearTimeout(i.current), i.current = window.setTimeout(
|
|
8938
8938
|
() => s.onPointerGraceIntentChange(null),
|
|
8939
8939
|
300
|
|
@@ -8945,9 +8945,9 @@ var bt = "MenuSubTrigger", fi = u.forwardRef(
|
|
|
8945
8945
|
})
|
|
8946
8946
|
),
|
|
8947
8947
|
onKeyDown: F(e.onKeyDown, (f) => {
|
|
8948
|
-
var
|
|
8948
|
+
var g;
|
|
8949
8949
|
const m = s.searchRef.current !== "";
|
|
8950
|
-
e.disabled || m && f.key === " " || Vp[r.dir].includes(f.key) && (n.onOpenChange(!0), (
|
|
8950
|
+
e.disabled || m && f.key === " " || Vp[r.dir].includes(f.key) && (n.onOpenChange(!0), (g = n.content) == null || g.focus(), f.preventDefault());
|
|
8951
8951
|
})
|
|
8952
8952
|
}
|
|
8953
8953
|
) });
|
|
@@ -8981,16 +8981,16 @@ var pi = "MenuSubContent", mi = u.forwardRef(
|
|
|
8981
8981
|
a.onClose(), d.preventDefault();
|
|
8982
8982
|
}),
|
|
8983
8983
|
onKeyDown: F(e.onKeyDown, (d) => {
|
|
8984
|
-
var
|
|
8984
|
+
var g;
|
|
8985
8985
|
const f = d.currentTarget.contains(d.target), m = Hp[a.dir].includes(d.key);
|
|
8986
|
-
f && m && (s.onOpenChange(!1), (
|
|
8986
|
+
f && m && (s.onOpenChange(!1), (g = i.trigger) == null || g.focus(), d.preventDefault());
|
|
8987
8987
|
})
|
|
8988
8988
|
}
|
|
8989
8989
|
) }) }) });
|
|
8990
8990
|
}
|
|
8991
8991
|
);
|
|
8992
8992
|
mi.displayName = pi;
|
|
8993
|
-
function
|
|
8993
|
+
function gi(e) {
|
|
8994
8994
|
return e ? "open" : "closed";
|
|
8995
8995
|
}
|
|
8996
8996
|
function nn(e) {
|
|
@@ -9033,10 +9033,10 @@ function um(e, t) {
|
|
|
9033
9033
|
function St(e) {
|
|
9034
9034
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
9035
9035
|
}
|
|
9036
|
-
var dm = qa, fm = Pr, pm = Za, mm = Ja,
|
|
9036
|
+
var dm = qa, fm = Pr, pm = Za, mm = Ja, gm = Lr, hm = Qa, vm = hn, bm = ti, xm = ri, wm = si, ym = ii, Cm = ci, Em = li, Sm = di, Rm = fi, _m = mi, vn = "DropdownMenu", [Mm, A0] = Je(
|
|
9037
9037
|
vn,
|
|
9038
9038
|
[Ua]
|
|
9039
|
-
), de = Ua(), [Am,
|
|
9039
|
+
), de = Ua(), [Am, hi] = Mm(vn), vi = (e) => {
|
|
9040
9040
|
const {
|
|
9041
9041
|
__scopeDropdownMenu: t,
|
|
9042
9042
|
children: n,
|
|
@@ -9069,7 +9069,7 @@ var dm = qa, fm = Pr, pm = Za, mm = Ja, hm = Lr, gm = Qa, vm = gn, bm = ti, xm =
|
|
|
9069
9069
|
vi.displayName = vn;
|
|
9070
9070
|
var bi = "DropdownMenuTrigger", xi = u.forwardRef(
|
|
9071
9071
|
(e, t) => {
|
|
9072
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s =
|
|
9072
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = hi(bi, n), a = de(n);
|
|
9073
9073
|
return /* @__PURE__ */ l.jsx(fm, { asChild: !0, ...a, children: /* @__PURE__ */ l.jsx(
|
|
9074
9074
|
ne.button,
|
|
9075
9075
|
{
|
|
@@ -9101,7 +9101,7 @@ var Tm = "DropdownMenuPortal", wi = (e) => {
|
|
|
9101
9101
|
wi.displayName = Tm;
|
|
9102
9102
|
var yi = "DropdownMenuContent", Ci = u.forwardRef(
|
|
9103
9103
|
(e, t) => {
|
|
9104
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
9104
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = hi(yi, n), s = de(n), a = u.useRef(!1);
|
|
9105
9105
|
return /* @__PURE__ */ l.jsx(
|
|
9106
9106
|
mm,
|
|
9107
9107
|
{
|
|
@@ -9134,14 +9134,14 @@ Ci.displayName = yi;
|
|
|
9134
9134
|
var Nm = "DropdownMenuGroup", Ei = u.forwardRef(
|
|
9135
9135
|
(e, t) => {
|
|
9136
9136
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9137
|
-
return /* @__PURE__ */ l.jsx(
|
|
9137
|
+
return /* @__PURE__ */ l.jsx(gm, { ...o, ...r, ref: t });
|
|
9138
9138
|
}
|
|
9139
9139
|
);
|
|
9140
9140
|
Ei.displayName = Nm;
|
|
9141
9141
|
var Om = "DropdownMenuLabel", Si = u.forwardRef(
|
|
9142
9142
|
(e, t) => {
|
|
9143
9143
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9144
|
-
return /* @__PURE__ */ l.jsx(
|
|
9144
|
+
return /* @__PURE__ */ l.jsx(hm, { ...o, ...r, ref: t });
|
|
9145
9145
|
}
|
|
9146
9146
|
);
|
|
9147
9147
|
Si.displayName = Om;
|
|
@@ -9436,16 +9436,16 @@ const i0 = ({ onLogout: e }) => {
|
|
|
9436
9436
|
console.error("Error during logout:", s), window.location.href = "/auth/logout";
|
|
9437
9437
|
}
|
|
9438
9438
|
};
|
|
9439
|
-
return r ? /* @__PURE__ */ l.jsx("div", { className: "h-10 w-10 animate-pulse rounded-full bg-gray-200" }) : n ? /* @__PURE__ */ l.jsxs("div", { children: [
|
|
9439
|
+
return r ? /* @__PURE__ */ l.jsx("div", { className: "gli:h-10 gli:w-10 gli:animate-pulse gli:rounded-full gli:bg-gray-200" }) : n ? /* @__PURE__ */ l.jsxs("div", { children: [
|
|
9440
9440
|
"Error: ",
|
|
9441
9441
|
n.message
|
|
9442
|
-
] }) : t ? /* @__PURE__ */ l.jsx("div", { className: "relative flex items-center gap-3", children: /* @__PURE__ */ l.jsxs(n0, { children: [
|
|
9442
|
+
] }) : t ? /* @__PURE__ */ l.jsx("div", { className: "gli:relative gli:flex gli:items-center gli:gap-3", children: /* @__PURE__ */ l.jsxs(n0, { children: [
|
|
9443
9443
|
/* @__PURE__ */ l.jsx(r0, { asChild: !0, children: /* @__PURE__ */ l.jsx(
|
|
9444
9444
|
mr,
|
|
9445
9445
|
{
|
|
9446
9446
|
variant: "ghost",
|
|
9447
9447
|
size: "lg",
|
|
9448
|
-
className: "rounded-full cursor-pointer p-0",
|
|
9448
|
+
className: "gli:rounded-full gli:cursor-pointer gli:p-0",
|
|
9449
9449
|
children: t.picture ? /* @__PURE__ */ l.jsx(
|
|
9450
9450
|
"img",
|
|
9451
9451
|
{
|
|
@@ -9453,41 +9453,41 @@ const i0 = ({ onLogout: e }) => {
|
|
|
9453
9453
|
alt: t.name || "User profile",
|
|
9454
9454
|
width: 40,
|
|
9455
9455
|
height: 40,
|
|
9456
|
-
className: "rounded-full"
|
|
9456
|
+
className: "gli:rounded-full"
|
|
9457
9457
|
}
|
|
9458
|
-
) : /* @__PURE__ */ l.jsx(so, { className: "h-5 w-5 text-gray-500" })
|
|
9458
|
+
) : /* @__PURE__ */ l.jsx(so, { className: "gli:h-5 gli:w-5 gli:text-gray-500" })
|
|
9459
9459
|
}
|
|
9460
9460
|
) }),
|
|
9461
|
-
/* @__PURE__ */ l.jsxs(o0, { align: "end", className: "w-72", children: [
|
|
9462
|
-
/* @__PURE__ */ l.jsx(s0, { children: /* @__PURE__ */ l.jsx("div", { className: "flex flex-col space-y-1", children: /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col space-y-1", children: [
|
|
9463
|
-
/* @__PURE__ */ l.jsx("p", { className: "text-xs text-gray-500", children: t.name }),
|
|
9464
|
-
/* @__PURE__ */ l.jsx("p", { className: "truncate text-xs text-gray-500", children: t.email })
|
|
9461
|
+
/* @__PURE__ */ l.jsxs(o0, { align: "end", className: "gli:w-72", children: [
|
|
9462
|
+
/* @__PURE__ */ l.jsx(s0, { children: /* @__PURE__ */ l.jsx("div", { className: "gli:flex gli:flex-col gli:space-y-1", children: /* @__PURE__ */ l.jsxs("div", { className: "gli:flex gli:flex-col gli:space-y-1", children: [
|
|
9463
|
+
/* @__PURE__ */ l.jsx("p", { className: "gli:text-xs gli:text-gray-500", children: t.name }),
|
|
9464
|
+
/* @__PURE__ */ l.jsx("p", { className: "gli:truncate gli:text-xs gli:text-gray-500", children: t.email })
|
|
9465
9465
|
] }) }) }),
|
|
9466
9466
|
/* @__PURE__ */ l.jsx(a0, {}),
|
|
9467
|
-
/* @__PURE__ */ l.jsx(Lo, { asChild: !0, children: /* @__PURE__ */ l.jsxs("a", { href: "/profile", className: "flex w-full cursor-default", children: [
|
|
9468
|
-
/* @__PURE__ */ l.jsx(so, { className: "mr-2 h-4 w-4" }),
|
|
9467
|
+
/* @__PURE__ */ l.jsx(Lo, { asChild: !0, children: /* @__PURE__ */ l.jsxs("a", { href: "/profile", className: "gli:flex gli:w-full gli:cursor-default", children: [
|
|
9468
|
+
/* @__PURE__ */ l.jsx(so, { className: "gli:mr-2 gli:h-4 gli:w-4" }),
|
|
9469
9469
|
/* @__PURE__ */ l.jsx("span", { children: "Profile" })
|
|
9470
9470
|
] }) }),
|
|
9471
9471
|
/* @__PURE__ */ l.jsxs(Lo, { onClick: o, children: [
|
|
9472
|
-
/* @__PURE__ */ l.jsx(Zc, { className: "mr-2 h-4 w-4" }),
|
|
9472
|
+
/* @__PURE__ */ l.jsx(Zc, { className: "gli:mr-2 gli:h-4 gli:w-4" }),
|
|
9473
9473
|
/* @__PURE__ */ l.jsx("span", { children: "Sign out" })
|
|
9474
9474
|
] })
|
|
9475
9475
|
] })
|
|
9476
9476
|
] }) }) : null;
|
|
9477
|
-
}, c0 = ({ onLogout: e }) => /* @__PURE__ */ l.jsx("div", { className: "sticky top-0 z-50", children: /* @__PURE__ */ l.jsxs("header", { className: "flex h-16 items-center justify-between border-b bg-white px-4", children: [
|
|
9478
|
-
/* @__PURE__ */ l.jsxs("div", { className: "flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden", children: [
|
|
9477
|
+
}, c0 = ({ onLogout: e }) => /* @__PURE__ */ l.jsx("div", { className: "gli:sticky gli:top-0 gli:z-50 gli:bg-white", children: /* @__PURE__ */ l.jsxs("header", { className: "gli:flex gli:h-16 gli:items-center gli:justify-between gli:border-b gli:bg-white gli:px-4", children: [
|
|
9478
|
+
/* @__PURE__ */ l.jsxs("div", { className: "gli:flex gli:h-full gli:items-center gli:gap-4 gli:flex-1 gli:min-w-0 gli:overflow-hidden", children: [
|
|
9479
9479
|
/* @__PURE__ */ l.jsx(lp, {}),
|
|
9480
|
-
/* @__PURE__ */ l.jsx(
|
|
9480
|
+
/* @__PURE__ */ l.jsx(gr, { orientation: "vertical" })
|
|
9481
9481
|
] }),
|
|
9482
|
-
/* @__PURE__ */ l.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ l.jsx(i0, { onLogout: e }) })
|
|
9482
|
+
/* @__PURE__ */ l.jsx("div", { className: "gli:flex-shrink-0", children: /* @__PURE__ */ l.jsx(i0, { onLogout: e }) })
|
|
9483
9483
|
] }) }), F0 = ({
|
|
9484
9484
|
children: e,
|
|
9485
9485
|
onLogout: t
|
|
9486
|
-
}) => /* @__PURE__ */ l.jsx(Sc, { children: /* @__PURE__ */ l.jsx(ip, { children: /* @__PURE__ */ l.jsxs("div", { className: "flex h-screen w-full", children: [
|
|
9486
|
+
}) => /* @__PURE__ */ l.jsx(Sc, { children: /* @__PURE__ */ l.jsx(ip, { children: /* @__PURE__ */ l.jsxs("div", { className: "gli:cloud-wrapper gli:flex gli:h-screen gli:w-full", children: [
|
|
9487
9487
|
/* @__PURE__ */ l.jsx(Sp, {}),
|
|
9488
|
-
/* @__PURE__ */ l.jsxs(dp, { className: "flex-1 flex flex-col min-w-0", children: [
|
|
9488
|
+
/* @__PURE__ */ l.jsxs(dp, { className: "gli:flex-1 gli:flex gli:flex-col gli:min-w-0", children: [
|
|
9489
9489
|
/* @__PURE__ */ l.jsx(c0, { onLogout: t }),
|
|
9490
|
-
/* @__PURE__ */ l.jsx("main", { className: "flex-1 bg-white", id: "page-content", children: e })
|
|
9490
|
+
/* @__PURE__ */ l.jsx("main", { className: "gli:flex-1 gli:bg-white gli:overflow-auto", id: "page-content", children: e })
|
|
9491
9491
|
] })
|
|
9492
9492
|
] }) }) });
|
|
9493
9493
|
function $0({ className: e, ...t }) {
|
|
@@ -9598,7 +9598,7 @@ export {
|
|
|
9598
9598
|
F0 as GLICloudProvider,
|
|
9599
9599
|
ms as Input,
|
|
9600
9600
|
i0 as ProfileDropdown,
|
|
9601
|
-
|
|
9601
|
+
gr as Separator,
|
|
9602
9602
|
vd as Sheet,
|
|
9603
9603
|
m0 as SheetClose,
|
|
9604
9604
|
Qs as SheetContent,
|
|
@@ -9614,7 +9614,7 @@ export {
|
|
|
9614
9614
|
b0 as SidebarFooter,
|
|
9615
9615
|
mp as SidebarGroup,
|
|
9616
9616
|
y0 as SidebarGroupAction,
|
|
9617
|
-
|
|
9617
|
+
gp as SidebarGroupContent,
|
|
9618
9618
|
w0 as SidebarGroupLabel,
|
|
9619
9619
|
fp as SidebarHeader,
|
|
9620
9620
|
v0 as SidebarInput,
|
|
@@ -9638,5 +9638,5 @@ export {
|
|
|
9638
9638
|
Jf as TooltipProvider,
|
|
9639
9639
|
ep as TooltipTrigger,
|
|
9640
9640
|
Wl as buttonVariants,
|
|
9641
|
-
|
|
9641
|
+
gn as useSidebar
|
|
9642
9642
|
};
|