@golocalinteractive/golocal-cloud-wrapper 1.0.68 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/dist/context/PermissionsContext.d.ts +12 -0
- package/dist/context/PermissionsContext.d.ts.map +1 -1
- package/dist/golocal-cloud-wrapper.cjs.js +17 -17
- package/dist/golocal-cloud-wrapper.es.js +613 -596
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import Se, { forwardRef as Ir, createElement as sn, useState as ze, useEffect as wn, useLayoutEffect as
|
|
2
|
+
import Se, { forwardRef as Ir, createElement as sn, useState as ze, useEffect as wn, useLayoutEffect as Ns, createContext as Ps, useContext as _s } from "react";
|
|
3
3
|
import * as Dr from "react-dom";
|
|
4
|
-
import
|
|
5
|
-
import { useUser as
|
|
6
|
-
import { a as
|
|
7
|
-
import { jwtDecode as
|
|
4
|
+
import Ts from "react-dom";
|
|
5
|
+
import { useUser as Os, Auth0Provider as js } from "@auth0/nextjs-auth0";
|
|
6
|
+
import { a as Is } from "./token-Cp2_aQtj.js";
|
|
7
|
+
import { jwtDecode as Ds } from "jwt-decode";
|
|
8
8
|
var mt = { exports: {} }, Je = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
@@ -16,7 +16,7 @@ var mt = { exports: {} }, Je = {};
|
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
18
|
var Jn;
|
|
19
|
-
function
|
|
19
|
+
function Ls() {
|
|
20
20
|
if (Jn) return Je;
|
|
21
21
|
Jn = 1;
|
|
22
22
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
@@ -48,7 +48,7 @@ var Qe = {};
|
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
49
|
*/
|
|
50
50
|
var Qn;
|
|
51
|
-
function
|
|
51
|
+
function Fs() {
|
|
52
52
|
return Qn || (Qn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
53
53
|
function e(w) {
|
|
54
54
|
if (w == null) return null;
|
|
@@ -281,10 +281,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
281
281
|
}()), Qe;
|
|
282
282
|
}
|
|
283
283
|
var er;
|
|
284
|
-
function
|
|
285
|
-
return er || (er = 1, process.env.NODE_ENV === "production" ? mt.exports =
|
|
284
|
+
function $s() {
|
|
285
|
+
return er || (er = 1, process.env.NODE_ENV === "production" ? mt.exports = Ls() : mt.exports = Fs()), mt.exports;
|
|
286
286
|
}
|
|
287
|
-
var c =
|
|
287
|
+
var c = $s();
|
|
288
288
|
function tr(e, t) {
|
|
289
289
|
if (typeof e == "function")
|
|
290
290
|
return e(t);
|
|
@@ -311,8 +311,8 @@ function ee(...e) {
|
|
|
311
311
|
}
|
|
312
312
|
// @__NO_SIDE_EFFECTS__
|
|
313
313
|
function We(e) {
|
|
314
|
-
const t = /* @__PURE__ */
|
|
315
|
-
const { children: a, ...s } = r, i = l.Children.toArray(a), u = i.find(
|
|
314
|
+
const t = /* @__PURE__ */ zs(e), n = l.forwardRef((r, o) => {
|
|
315
|
+
const { children: a, ...s } = r, i = l.Children.toArray(a), u = i.find(Vs);
|
|
316
316
|
if (u) {
|
|
317
317
|
const f = u.props.children, d = i.map((p) => p === u ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
318
318
|
return /* @__PURE__ */ c.jsx(t, { ...s, ref: o, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
@@ -323,11 +323,11 @@ function We(e) {
|
|
|
323
323
|
}
|
|
324
324
|
var Ue = /* @__PURE__ */ We("Slot");
|
|
325
325
|
// @__NO_SIDE_EFFECTS__
|
|
326
|
-
function
|
|
326
|
+
function zs(e) {
|
|
327
327
|
const t = l.forwardRef((n, r) => {
|
|
328
328
|
const { children: o, ...a } = n;
|
|
329
329
|
if (l.isValidElement(o)) {
|
|
330
|
-
const s =
|
|
330
|
+
const s = Bs(o), i = Ws(a, o.props);
|
|
331
331
|
return o.type !== l.Fragment && (i.ref = r ? jt(r, s) : s), l.cloneElement(o, i);
|
|
332
332
|
}
|
|
333
333
|
return l.Children.count(o) > 1 ? l.Children.only(null) : null;
|
|
@@ -336,14 +336,14 @@ function $s(e) {
|
|
|
336
336
|
}
|
|
337
337
|
var Lr = Symbol("radix.slottable");
|
|
338
338
|
// @__NO_SIDE_EFFECTS__
|
|
339
|
-
function
|
|
339
|
+
function Hs(e) {
|
|
340
340
|
const t = ({ children: n }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: n });
|
|
341
341
|
return t.displayName = `${e}.Slottable`, t.__radixId = Lr, t;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Vs(e) {
|
|
344
344
|
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Lr;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Ws(e, t) {
|
|
347
347
|
const n = { ...t };
|
|
348
348
|
for (const r in t) {
|
|
349
349
|
const o = e[r], a = t[r];
|
|
@@ -354,12 +354,12 @@ function Vs(e, t) {
|
|
|
354
354
|
}
|
|
355
355
|
return { ...e, ...n };
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Bs(e) {
|
|
358
358
|
var r, o;
|
|
359
359
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
360
360
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
361
361
|
}
|
|
362
|
-
var
|
|
362
|
+
var Gs = [
|
|
363
363
|
"a",
|
|
364
364
|
"button",
|
|
365
365
|
"div",
|
|
@@ -377,7 +377,7 @@ var Bs = [
|
|
|
377
377
|
"span",
|
|
378
378
|
"svg",
|
|
379
379
|
"ul"
|
|
380
|
-
], q =
|
|
380
|
+
], q = Gs.reduce((e, t) => {
|
|
381
381
|
const n = /* @__PURE__ */ We(`Primitive.${t}`), r = l.forwardRef((o, a) => {
|
|
382
382
|
const { asChild: s, ...i } = o, u = s ? n : t;
|
|
383
383
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(u, { ...i, ref: a });
|
|
@@ -387,8 +387,8 @@ var Bs = [
|
|
|
387
387
|
function Fr(e, t) {
|
|
388
388
|
e && Dr.flushSync(() => e.dispatchEvent(t));
|
|
389
389
|
}
|
|
390
|
-
var
|
|
391
|
-
const { decorative: n, orientation: r = nr, ...o } = e, a =
|
|
390
|
+
var Us = "Separator", nr = "horizontal", Ks = ["horizontal", "vertical"], $r = l.forwardRef((e, t) => {
|
|
391
|
+
const { decorative: n, orientation: r = nr, ...o } = e, a = Ys(r) ? r : nr, i = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
392
392
|
return /* @__PURE__ */ c.jsx(
|
|
393
393
|
q.div,
|
|
394
394
|
{
|
|
@@ -399,9 +399,9 @@ var Gs = "Separator", nr = "horizontal", Us = ["horizontal", "vertical"], $r = l
|
|
|
399
399
|
}
|
|
400
400
|
);
|
|
401
401
|
});
|
|
402
|
-
$r.displayName =
|
|
403
|
-
function
|
|
404
|
-
return
|
|
402
|
+
$r.displayName = Us;
|
|
403
|
+
function Ys(e) {
|
|
404
|
+
return Ks.includes(e);
|
|
405
405
|
}
|
|
406
406
|
var zr = $r;
|
|
407
407
|
function Hr(e) {
|
|
@@ -417,15 +417,15 @@ function Vr() {
|
|
|
417
417
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Hr(e)) && (r && (r += " "), r += t);
|
|
418
418
|
return r;
|
|
419
419
|
}
|
|
420
|
-
const yn = "-",
|
|
421
|
-
const t =
|
|
420
|
+
const yn = "-", Zs = (e) => {
|
|
421
|
+
const t = qs(e), {
|
|
422
422
|
conflictingClassGroups: n,
|
|
423
423
|
conflictingClassGroupModifiers: r
|
|
424
424
|
} = e;
|
|
425
425
|
return {
|
|
426
426
|
getClassGroupId: (s) => {
|
|
427
427
|
const i = s.split(yn);
|
|
428
|
-
return i[0] === "" && i.length !== 1 && i.shift(), Wr(i, t) ||
|
|
428
|
+
return i[0] === "" && i.length !== 1 && i.shift(), Wr(i, t) || Xs(s);
|
|
429
429
|
},
|
|
430
430
|
getConflictingClassGroupIds: (s, i) => {
|
|
431
431
|
const u = n[s] || [];
|
|
@@ -445,13 +445,13 @@ const yn = "-", Ys = (e) => {
|
|
|
445
445
|
return (s = t.validators.find(({
|
|
446
446
|
validator: i
|
|
447
447
|
}) => i(a))) == null ? void 0 : s.classGroupId;
|
|
448
|
-
}, rr = /^\[(.+)\]$/,
|
|
448
|
+
}, rr = /^\[(.+)\]$/, Xs = (e) => {
|
|
449
449
|
if (rr.test(e)) {
|
|
450
450
|
const t = rr.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
451
451
|
if (n)
|
|
452
452
|
return "arbitrary.." + n;
|
|
453
453
|
}
|
|
454
|
-
},
|
|
454
|
+
}, qs = (e) => {
|
|
455
455
|
const {
|
|
456
456
|
theme: t,
|
|
457
457
|
classGroups: n
|
|
@@ -470,7 +470,7 @@ const yn = "-", Ys = (e) => {
|
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
472
|
if (typeof o == "function") {
|
|
473
|
-
if (
|
|
473
|
+
if (Js(o)) {
|
|
474
474
|
cn(o(r), t, n, r);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
@@ -492,7 +492,7 @@ const yn = "-", Ys = (e) => {
|
|
|
492
492
|
validators: []
|
|
493
493
|
}), n = n.nextPart.get(r);
|
|
494
494
|
}), n;
|
|
495
|
-
},
|
|
495
|
+
}, Js = (e) => e.isThemeGetter, Qs = (e) => {
|
|
496
496
|
if (e < 1)
|
|
497
497
|
return {
|
|
498
498
|
get: () => {
|
|
@@ -516,7 +516,7 @@ const yn = "-", Ys = (e) => {
|
|
|
516
516
|
n.has(a) ? n.set(a, s) : o(a, s);
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
|
-
}, ln = "!", un = ":",
|
|
519
|
+
}, ln = "!", un = ":", ei = un.length, ti = (e) => {
|
|
520
520
|
const {
|
|
521
521
|
prefix: t,
|
|
522
522
|
experimentalParseClassName: n
|
|
@@ -528,7 +528,7 @@ const yn = "-", Ys = (e) => {
|
|
|
528
528
|
let h = o[b];
|
|
529
529
|
if (s === 0 && i === 0) {
|
|
530
530
|
if (h === un) {
|
|
531
|
-
a.push(o.slice(u, b)), u = b +
|
|
531
|
+
a.push(o.slice(u, b)), u = b + ei;
|
|
532
532
|
continue;
|
|
533
533
|
}
|
|
534
534
|
if (h === "/") {
|
|
@@ -538,7 +538,7 @@ const yn = "-", Ys = (e) => {
|
|
|
538
538
|
}
|
|
539
539
|
h === "[" ? s++ : h === "]" ? s-- : h === "(" ? i++ : h === ")" && i--;
|
|
540
540
|
}
|
|
541
|
-
const d = a.length === 0 ? o : o.substring(u), p =
|
|
541
|
+
const d = a.length === 0 ? o : o.substring(u), p = ni(d), m = p !== d, g = f && f > u ? f - u : void 0;
|
|
542
542
|
return {
|
|
543
543
|
modifiers: a,
|
|
544
544
|
hasImportantModifier: m,
|
|
@@ -564,7 +564,7 @@ const yn = "-", Ys = (e) => {
|
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
566
|
return r;
|
|
567
|
-
},
|
|
567
|
+
}, ni = (e) => e.endsWith(ln) ? e.substring(0, e.length - 1) : e.startsWith(ln) ? e.substring(1) : e, ri = (e) => {
|
|
568
568
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
|
|
569
569
|
return (r) => {
|
|
570
570
|
if (r.length <= 1)
|
|
@@ -575,18 +575,18 @@ const yn = "-", Ys = (e) => {
|
|
|
575
575
|
s[0] === "[" || t[s] ? (o.push(...a.sort(), s), a = []) : a.push(s);
|
|
576
576
|
}), o.push(...a.sort()), o;
|
|
577
577
|
};
|
|
578
|
-
},
|
|
579
|
-
cache:
|
|
580
|
-
parseClassName:
|
|
581
|
-
sortModifiers:
|
|
582
|
-
...
|
|
583
|
-
}),
|
|
578
|
+
}, oi = (e) => ({
|
|
579
|
+
cache: Qs(e.cacheSize),
|
|
580
|
+
parseClassName: ti(e),
|
|
581
|
+
sortModifiers: ri(e),
|
|
582
|
+
...Zs(e)
|
|
583
|
+
}), ai = /\s+/, si = (e, t) => {
|
|
584
584
|
const {
|
|
585
585
|
parseClassName: n,
|
|
586
586
|
getClassGroupId: r,
|
|
587
587
|
getConflictingClassGroupIds: o,
|
|
588
588
|
sortModifiers: a
|
|
589
|
-
} = t, s = [], i = e.trim().split(
|
|
589
|
+
} = t, s = [], i = e.trim().split(ai);
|
|
590
590
|
let u = "";
|
|
591
591
|
for (let f = i.length - 1; f >= 0; f -= 1) {
|
|
592
592
|
const d = i[f], {
|
|
@@ -625,7 +625,7 @@ const yn = "-", Ys = (e) => {
|
|
|
625
625
|
}
|
|
626
626
|
return u;
|
|
627
627
|
};
|
|
628
|
-
function
|
|
628
|
+
function ii() {
|
|
629
629
|
let e = 0, t, n, r = "";
|
|
630
630
|
for (; e < arguments.length; )
|
|
631
631
|
(t = arguments[e++]) && (n = Br(t)) && (r && (r += " "), r += n);
|
|
@@ -639,38 +639,38 @@ const Br = (e) => {
|
|
|
639
639
|
e[r] && (t = Br(e[r])) && (n && (n += " "), n += t);
|
|
640
640
|
return n;
|
|
641
641
|
};
|
|
642
|
-
function
|
|
642
|
+
function ci(e, ...t) {
|
|
643
643
|
let n, r, o, a = s;
|
|
644
644
|
function s(u) {
|
|
645
645
|
const f = t.reduce((d, p) => p(d), e());
|
|
646
|
-
return n =
|
|
646
|
+
return n = oi(f), r = n.cache.get, o = n.cache.set, a = i, i(u);
|
|
647
647
|
}
|
|
648
648
|
function i(u) {
|
|
649
649
|
const f = r(u);
|
|
650
650
|
if (f)
|
|
651
651
|
return f;
|
|
652
|
-
const d =
|
|
652
|
+
const d = si(u, n);
|
|
653
653
|
return o(u, d), d;
|
|
654
654
|
}
|
|
655
655
|
return function() {
|
|
656
|
-
return a(
|
|
656
|
+
return a(ii.apply(null, arguments));
|
|
657
657
|
};
|
|
658
658
|
}
|
|
659
659
|
const Q = (e) => {
|
|
660
660
|
const t = (n) => n[e] || [];
|
|
661
661
|
return t.isThemeGetter = !0, t;
|
|
662
|
-
}, Gr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ur = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
662
|
+
}, Gr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ur = /^\((?:(\w[\w-]*):)?(.+)\)$/i, li = /^\d+\/\d+$/, ui = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, di = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, fi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, pi = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, mi = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, De = (e) => li.test(e), L = (e) => !!e && !Number.isNaN(Number(e)), Ee = (e) => !!e && Number.isInteger(Number(e)), Yt = (e) => e.endsWith("%") && L(e.slice(0, -1)), ve = (e) => ui.test(e), hi = () => !0, gi = (e) => (
|
|
663
663
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
664
664
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
665
665
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
666
|
-
|
|
667
|
-
), Kr = () => !1,
|
|
666
|
+
di.test(e) && !fi.test(e)
|
|
667
|
+
), Kr = () => !1, vi = (e) => pi.test(e), bi = (e) => mi.test(e), xi = (e) => !N(e) && !P(e), wi = (e) => Ke(e, Xr, Kr), N = (e) => Gr.test(e), _e = (e) => Ke(e, qr, gi), Zt = (e) => Ke(e, Ri, L), ar = (e) => Ke(e, Yr, Kr), yi = (e) => Ke(e, Zr, bi), ht = (e) => Ke(e, Jr, vi), P = (e) => Ur.test(e), et = (e) => Ye(e, qr), Ci = (e) => Ye(e, Mi), sr = (e) => Ye(e, Yr), Ei = (e) => Ye(e, Xr), Si = (e) => Ye(e, Zr), gt = (e) => Ye(e, Jr, !0), Ke = (e, t, n) => {
|
|
668
668
|
const r = Gr.exec(e);
|
|
669
669
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
670
670
|
}, Ye = (e, t, n = !1) => {
|
|
671
671
|
const r = Ur.exec(e);
|
|
672
672
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
673
|
-
}, Yr = (e) => e === "position" || e === "percentage", Zr = (e) => e === "image" || e === "url", Xr = (e) => e === "length" || e === "size" || e === "bg-size", qr = (e) => e === "length",
|
|
673
|
+
}, Yr = (e) => e === "position" || e === "percentage", Zr = (e) => e === "image" || e === "url", Xr = (e) => e === "length" || e === "size" || e === "bg-size", qr = (e) => e === "length", Ri = (e) => e === "number", Mi = (e) => e === "family-name", Jr = (e) => e === "shadow", ki = () => {
|
|
674
674
|
const e = Q("color"), t = Q("font"), n = Q("text"), r = Q("font-weight"), o = Q("tracking"), a = Q("leading"), s = Q("breakpoint"), i = Q("container"), u = Q("spacing"), f = Q("radius"), d = Q("shadow"), p = Q("inset-shadow"), m = Q("text-shadow"), g = Q("drop-shadow"), b = Q("blur"), h = Q("perspective"), v = Q("aspect"), x = Q("ease"), y = Q("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], E = () => [
|
|
675
675
|
"center",
|
|
676
676
|
"top",
|
|
@@ -695,7 +695,7 @@ const Q = (e) => {
|
|
|
695
695
|
position: [P, N]
|
|
696
696
|
}], w = () => ["no-repeat", {
|
|
697
697
|
repeat: ["", "x", "y", "space", "round"]
|
|
698
|
-
}], O = () => ["auto", "cover", "contain",
|
|
698
|
+
}], O = () => ["auto", "cover", "contain", Ei, wi, {
|
|
699
699
|
size: [P, N]
|
|
700
700
|
}], F = () => [Yt, et, _e], $ = () => [
|
|
701
701
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -720,11 +720,11 @@ const Q = (e) => {
|
|
|
720
720
|
aspect: ["video"],
|
|
721
721
|
blur: [ve],
|
|
722
722
|
breakpoint: [ve],
|
|
723
|
-
color: [
|
|
723
|
+
color: [hi],
|
|
724
724
|
container: [ve],
|
|
725
725
|
"drop-shadow": [ve],
|
|
726
726
|
ease: ["in", "out", "in-out"],
|
|
727
|
-
font: [
|
|
727
|
+
font: [xi],
|
|
728
728
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
729
729
|
"inset-shadow": [ve],
|
|
730
730
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1436,7 +1436,7 @@ const Q = (e) => {
|
|
|
1436
1436
|
* @see https://tailwindcss.com/docs/font-family
|
|
1437
1437
|
*/
|
|
1438
1438
|
"font-family": [{
|
|
1439
|
-
font: [
|
|
1439
|
+
font: [Ci, N, t]
|
|
1440
1440
|
}],
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Font Variant Numeric
|
|
@@ -1691,7 +1691,7 @@ const Q = (e) => {
|
|
|
1691
1691
|
}, Ee, P, N],
|
|
1692
1692
|
radial: ["", P, N],
|
|
1693
1693
|
conic: [Ee, P, N]
|
|
1694
|
-
},
|
|
1694
|
+
}, Si, yi]
|
|
1695
1695
|
}],
|
|
1696
1696
|
/**
|
|
1697
1697
|
* Background Color
|
|
@@ -3140,9 +3140,9 @@ const Q = (e) => {
|
|
|
3140
3140
|
},
|
|
3141
3141
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3142
3142
|
};
|
|
3143
|
-
},
|
|
3143
|
+
}, Ai = /* @__PURE__ */ ci(ki);
|
|
3144
3144
|
function A(...e) {
|
|
3145
|
-
return
|
|
3145
|
+
return Ai(Vr(e));
|
|
3146
3146
|
}
|
|
3147
3147
|
const Cn = l.forwardRef(
|
|
3148
3148
|
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ c.jsx(
|
|
@@ -3197,13 +3197,13 @@ const ir = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, cr = Vr, E
|
|
|
3197
3197
|
* This source code is licensed under the ISC license.
|
|
3198
3198
|
* See the LICENSE file in the root directory of this source tree.
|
|
3199
3199
|
*/
|
|
3200
|
-
const
|
|
3200
|
+
const Ni = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Pi = (e) => e.replace(
|
|
3201
3201
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3202
3202
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
3203
3203
|
), lr = (e) => {
|
|
3204
|
-
const t =
|
|
3204
|
+
const t = Pi(e);
|
|
3205
3205
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3206
|
-
}, Qr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(),
|
|
3206
|
+
}, Qr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), _i = (e) => {
|
|
3207
3207
|
for (const t in e)
|
|
3208
3208
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3209
3209
|
return !0;
|
|
@@ -3214,7 +3214,7 @@ const Ai = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ni = (
|
|
|
3214
3214
|
* This source code is licensed under the ISC license.
|
|
3215
3215
|
* See the LICENSE file in the root directory of this source tree.
|
|
3216
3216
|
*/
|
|
3217
|
-
var
|
|
3217
|
+
var Ti = {
|
|
3218
3218
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3219
3219
|
width: 24,
|
|
3220
3220
|
height: 24,
|
|
@@ -3231,7 +3231,7 @@ var _i = {
|
|
|
3231
3231
|
* This source code is licensed under the ISC license.
|
|
3232
3232
|
* See the LICENSE file in the root directory of this source tree.
|
|
3233
3233
|
*/
|
|
3234
|
-
const
|
|
3234
|
+
const Oi = Ir(
|
|
3235
3235
|
({
|
|
3236
3236
|
color: e = "currentColor",
|
|
3237
3237
|
size: t = 24,
|
|
@@ -3245,13 +3245,13 @@ const Ti = Ir(
|
|
|
3245
3245
|
"svg",
|
|
3246
3246
|
{
|
|
3247
3247
|
ref: u,
|
|
3248
|
-
...
|
|
3248
|
+
...Ti,
|
|
3249
3249
|
width: t,
|
|
3250
3250
|
height: t,
|
|
3251
3251
|
stroke: e,
|
|
3252
3252
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3253
3253
|
className: Qr("lucide", o),
|
|
3254
|
-
...!a && !
|
|
3254
|
+
...!a && !_i(i) && { "aria-hidden": "true" },
|
|
3255
3255
|
...i
|
|
3256
3256
|
},
|
|
3257
3257
|
[
|
|
@@ -3268,11 +3268,11 @@ const Ti = Ir(
|
|
|
3268
3268
|
*/
|
|
3269
3269
|
const te = (e, t) => {
|
|
3270
3270
|
const n = Ir(
|
|
3271
|
-
({ className: r, ...o }, a) => sn(
|
|
3271
|
+
({ className: r, ...o }, a) => sn(Oi, {
|
|
3272
3272
|
ref: a,
|
|
3273
3273
|
iconNode: t,
|
|
3274
3274
|
className: Qr(
|
|
3275
|
-
`lucide-${
|
|
3275
|
+
`lucide-${Ni(lr(e))}`,
|
|
3276
3276
|
`lucide-${e}`,
|
|
3277
3277
|
r
|
|
3278
3278
|
),
|
|
@@ -3287,7 +3287,7 @@ const te = (e, t) => {
|
|
|
3287
3287
|
* This source code is licensed under the ISC license.
|
|
3288
3288
|
* See the LICENSE file in the root directory of this source tree.
|
|
3289
3289
|
*/
|
|
3290
|
-
const
|
|
3290
|
+
const ji = [
|
|
3291
3291
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
3292
3292
|
["path", { d: "M16 12h2", key: "7q9ll5" }],
|
|
3293
3293
|
["path", { d: "M16 8h2", key: "msurwy" }],
|
|
@@ -3300,14 +3300,14 @@ const Oi = [
|
|
|
3300
3300
|
],
|
|
3301
3301
|
["path", { d: "M6 12h2", key: "32wvfc" }],
|
|
3302
3302
|
["path", { d: "M6 8h2", key: "30oboj" }]
|
|
3303
|
-
],
|
|
3303
|
+
], Ii = te("book-open-text", ji);
|
|
3304
3304
|
/**
|
|
3305
3305
|
* @license lucide-react v0.522.0 - ISC
|
|
3306
3306
|
*
|
|
3307
3307
|
* This source code is licensed under the ISC license.
|
|
3308
3308
|
* See the LICENSE file in the root directory of this source tree.
|
|
3309
3309
|
*/
|
|
3310
|
-
const
|
|
3310
|
+
const Di = [
|
|
3311
3311
|
["path", { d: "M11 10v4h4", key: "172dkj" }],
|
|
3312
3312
|
["path", { d: "m11 14 1.535-1.605a5 5 0 0 1 8 1.5", key: "vu0qm5" }],
|
|
3313
3313
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
@@ -3316,14 +3316,14 @@ const Ii = [
|
|
|
3316
3316
|
["path", { d: "M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3", key: "mctw84" }],
|
|
3317
3317
|
["path", { d: "M3 10h4", key: "1el30a" }],
|
|
3318
3318
|
["path", { d: "M8 2v4", key: "1cmpym" }]
|
|
3319
|
-
],
|
|
3319
|
+
], Li = te("calendar-sync", Di);
|
|
3320
3320
|
/**
|
|
3321
3321
|
* @license lucide-react v0.522.0 - ISC
|
|
3322
3322
|
*
|
|
3323
3323
|
* This source code is licensed under the ISC license.
|
|
3324
3324
|
* See the LICENSE file in the root directory of this source tree.
|
|
3325
3325
|
*/
|
|
3326
|
-
const
|
|
3326
|
+
const Fi = [
|
|
3327
3327
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
3328
3328
|
[
|
|
3329
3329
|
"path",
|
|
@@ -3332,36 +3332,36 @@ const Li = [
|
|
|
3332
3332
|
key: "q0gr47"
|
|
3333
3333
|
}
|
|
3334
3334
|
]
|
|
3335
|
-
], vt = te("chart-area",
|
|
3335
|
+
], vt = te("chart-area", Fi);
|
|
3336
3336
|
/**
|
|
3337
3337
|
* @license lucide-react v0.522.0 - ISC
|
|
3338
3338
|
*
|
|
3339
3339
|
* This source code is licensed under the ISC license.
|
|
3340
3340
|
* See the LICENSE file in the root directory of this source tree.
|
|
3341
3341
|
*/
|
|
3342
|
-
const
|
|
3342
|
+
const $i = [
|
|
3343
3343
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
3344
3344
|
["path", { d: "M18 17V9", key: "2bz60n" }],
|
|
3345
3345
|
["path", { d: "M13 17V5", key: "1frdt8" }],
|
|
3346
3346
|
["path", { d: "M8 17v-3", key: "17ska0" }]
|
|
3347
|
-
],
|
|
3347
|
+
], zi = te("chart-column", $i);
|
|
3348
3348
|
/**
|
|
3349
3349
|
* @license lucide-react v0.522.0 - ISC
|
|
3350
3350
|
*
|
|
3351
3351
|
* This source code is licensed under the ISC license.
|
|
3352
3352
|
* See the LICENSE file in the root directory of this source tree.
|
|
3353
3353
|
*/
|
|
3354
|
-
const
|
|
3354
|
+
const Hi = [
|
|
3355
3355
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
3356
3356
|
["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
|
|
3357
|
-
], ur = te("chart-line",
|
|
3357
|
+
], ur = te("chart-line", Hi);
|
|
3358
3358
|
/**
|
|
3359
3359
|
* @license lucide-react v0.522.0 - ISC
|
|
3360
3360
|
*
|
|
3361
3361
|
* This source code is licensed under the ISC license.
|
|
3362
3362
|
* See the LICENSE file in the root directory of this source tree.
|
|
3363
3363
|
*/
|
|
3364
|
-
const
|
|
3364
|
+
const Vi = [
|
|
3365
3365
|
[
|
|
3366
3366
|
"path",
|
|
3367
3367
|
{
|
|
@@ -3370,53 +3370,53 @@ const Hi = [
|
|
|
3370
3370
|
}
|
|
3371
3371
|
],
|
|
3372
3372
|
["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
|
|
3373
|
-
],
|
|
3373
|
+
], Wi = te("chart-pie", Vi);
|
|
3374
3374
|
/**
|
|
3375
3375
|
* @license lucide-react v0.522.0 - ISC
|
|
3376
3376
|
*
|
|
3377
3377
|
* This source code is licensed under the ISC license.
|
|
3378
3378
|
* See the LICENSE file in the root directory of this source tree.
|
|
3379
3379
|
*/
|
|
3380
|
-
const
|
|
3380
|
+
const Bi = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Gi = te("check", Bi);
|
|
3381
3381
|
/**
|
|
3382
3382
|
* @license lucide-react v0.522.0 - ISC
|
|
3383
3383
|
*
|
|
3384
3384
|
* This source code is licensed under the ISC license.
|
|
3385
3385
|
* See the LICENSE file in the root directory of this source tree.
|
|
3386
3386
|
*/
|
|
3387
|
-
const
|
|
3387
|
+
const Ui = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ki = te("chevron-down", Ui);
|
|
3388
3388
|
/**
|
|
3389
3389
|
* @license lucide-react v0.522.0 - ISC
|
|
3390
3390
|
*
|
|
3391
3391
|
* This source code is licensed under the ISC license.
|
|
3392
3392
|
* See the LICENSE file in the root directory of this source tree.
|
|
3393
3393
|
*/
|
|
3394
|
-
const
|
|
3394
|
+
const Yi = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], eo = te("chevron-right", Yi);
|
|
3395
3395
|
/**
|
|
3396
3396
|
* @license lucide-react v0.522.0 - ISC
|
|
3397
3397
|
*
|
|
3398
3398
|
* This source code is licensed under the ISC license.
|
|
3399
3399
|
* See the LICENSE file in the root directory of this source tree.
|
|
3400
3400
|
*/
|
|
3401
|
-
const
|
|
3401
|
+
const Zi = [
|
|
3402
3402
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3403
3403
|
["path", { d: "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8", key: "1h4pet" }],
|
|
3404
3404
|
["path", { d: "M12 18V6", key: "zqpxq5" }]
|
|
3405
|
-
],
|
|
3405
|
+
], Xi = te("circle-dollar-sign", Zi);
|
|
3406
3406
|
/**
|
|
3407
3407
|
* @license lucide-react v0.522.0 - ISC
|
|
3408
3408
|
*
|
|
3409
3409
|
* This source code is licensed under the ISC license.
|
|
3410
3410
|
* See the LICENSE file in the root directory of this source tree.
|
|
3411
3411
|
*/
|
|
3412
|
-
const
|
|
3412
|
+
const qi = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Ji = te("circle", qi);
|
|
3413
3413
|
/**
|
|
3414
3414
|
* @license lucide-react v0.522.0 - ISC
|
|
3415
3415
|
*
|
|
3416
3416
|
* This source code is licensed under the ISC license.
|
|
3417
3417
|
* See the LICENSE file in the root directory of this source tree.
|
|
3418
3418
|
*/
|
|
3419
|
-
const
|
|
3419
|
+
const Qi = [
|
|
3420
3420
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
3421
3421
|
[
|
|
3422
3422
|
"path",
|
|
@@ -3425,49 +3425,49 @@ const Ji = [
|
|
|
3425
3425
|
key: "1d0kgt"
|
|
3426
3426
|
}
|
|
3427
3427
|
]
|
|
3428
|
-
], to = te("house",
|
|
3428
|
+
], to = te("house", Qi);
|
|
3429
3429
|
/**
|
|
3430
3430
|
* @license lucide-react v0.522.0 - ISC
|
|
3431
3431
|
*
|
|
3432
3432
|
* This source code is licensed under the ISC license.
|
|
3433
3433
|
* See the LICENSE file in the root directory of this source tree.
|
|
3434
3434
|
*/
|
|
3435
|
-
const
|
|
3435
|
+
const ec = [
|
|
3436
3436
|
["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
|
|
3437
3437
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
3438
3438
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
|
|
3439
|
-
],
|
|
3439
|
+
], tc = te("log-out", ec);
|
|
3440
3440
|
/**
|
|
3441
3441
|
* @license lucide-react v0.522.0 - ISC
|
|
3442
3442
|
*
|
|
3443
3443
|
* This source code is licensed under the ISC license.
|
|
3444
3444
|
* See the LICENSE file in the root directory of this source tree.
|
|
3445
3445
|
*/
|
|
3446
|
-
const
|
|
3446
|
+
const nc = [
|
|
3447
3447
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3448
3448
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
3449
|
-
],
|
|
3449
|
+
], rc = te("panel-left", nc);
|
|
3450
3450
|
/**
|
|
3451
3451
|
* @license lucide-react v0.522.0 - ISC
|
|
3452
3452
|
*
|
|
3453
3453
|
* This source code is licensed under the ISC license.
|
|
3454
3454
|
* See the LICENSE file in the root directory of this source tree.
|
|
3455
3455
|
*/
|
|
3456
|
-
const
|
|
3456
|
+
const oc = [
|
|
3457
3457
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
3458
3458
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
3459
|
-
], dr = te("user",
|
|
3459
|
+
], dr = te("user", oc);
|
|
3460
3460
|
/**
|
|
3461
3461
|
* @license lucide-react v0.522.0 - ISC
|
|
3462
3462
|
*
|
|
3463
3463
|
* This source code is licensed under the ISC license.
|
|
3464
3464
|
* See the LICENSE file in the root directory of this source tree.
|
|
3465
3465
|
*/
|
|
3466
|
-
const
|
|
3466
|
+
const ac = [
|
|
3467
3467
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3468
3468
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3469
|
-
],
|
|
3470
|
-
function
|
|
3469
|
+
], sc = te("x", ac);
|
|
3470
|
+
function ic() {
|
|
3471
3471
|
const [e, t] = ze(!1);
|
|
3472
3472
|
return wn(() => {
|
|
3473
3473
|
const n = () => {
|
|
@@ -3476,7 +3476,7 @@ function sc() {
|
|
|
3476
3476
|
return n(), window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
|
3477
3477
|
}, []), e;
|
|
3478
3478
|
}
|
|
3479
|
-
const
|
|
3479
|
+
const cc = En(
|
|
3480
3480
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
3481
3481
|
{
|
|
3482
3482
|
variants: {
|
|
@@ -3506,7 +3506,7 @@ const ic = En(
|
|
|
3506
3506
|
return /* @__PURE__ */ c.jsx(
|
|
3507
3507
|
s,
|
|
3508
3508
|
{
|
|
3509
|
-
className: A(
|
|
3509
|
+
className: A(cc({ variant: t, size: n, className: e })),
|
|
3510
3510
|
ref: a,
|
|
3511
3511
|
...o
|
|
3512
3512
|
}
|
|
@@ -3535,7 +3535,7 @@ function j(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
3535
3535
|
return t == null ? void 0 : t(o);
|
|
3536
3536
|
};
|
|
3537
3537
|
}
|
|
3538
|
-
function
|
|
3538
|
+
function lc(e, t) {
|
|
3539
3539
|
const n = l.createContext(t), r = (a) => {
|
|
3540
3540
|
const { children: s, ...i } = a, u = l.useMemo(() => i, Object.values(i));
|
|
3541
3541
|
return /* @__PURE__ */ c.jsx(n.Provider, { value: u, children: s });
|
|
@@ -3579,9 +3579,9 @@ function je(e, t = []) {
|
|
|
3579
3579
|
);
|
|
3580
3580
|
};
|
|
3581
3581
|
};
|
|
3582
|
-
return o.scopeName = e, [r,
|
|
3582
|
+
return o.scopeName = e, [r, uc(o, ...t)];
|
|
3583
3583
|
}
|
|
3584
|
-
function
|
|
3584
|
+
function uc(...e) {
|
|
3585
3585
|
const t = e[0];
|
|
3586
3586
|
if (e.length === 1) return t;
|
|
3587
3587
|
const n = () => {
|
|
@@ -3600,15 +3600,15 @@ function lc(...e) {
|
|
|
3600
3600
|
return n.scopeName = t.scopeName, n;
|
|
3601
3601
|
}
|
|
3602
3602
|
var Me = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
3603
|
-
},
|
|
3604
|
-
}),
|
|
3603
|
+
}, dc = l[" useId ".trim().toString()] || (() => {
|
|
3604
|
+
}), fc = 0;
|
|
3605
3605
|
function be(e) {
|
|
3606
|
-
const [t, n] = l.useState(
|
|
3606
|
+
const [t, n] = l.useState(dc());
|
|
3607
3607
|
return Me(() => {
|
|
3608
|
-
n((r) => r ?? String(
|
|
3608
|
+
n((r) => r ?? String(fc++));
|
|
3609
3609
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
3610
3610
|
}
|
|
3611
|
-
var
|
|
3611
|
+
var pc = l[" useInsertionEffect ".trim().toString()] || Me;
|
|
3612
3612
|
function it({
|
|
3613
3613
|
prop: e,
|
|
3614
3614
|
defaultProp: t,
|
|
@@ -3616,7 +3616,7 @@ function it({
|
|
|
3616
3616
|
},
|
|
3617
3617
|
caller: r
|
|
3618
3618
|
}) {
|
|
3619
|
-
const [o, a, s] =
|
|
3619
|
+
const [o, a, s] = mc({
|
|
3620
3620
|
defaultProp: t,
|
|
3621
3621
|
onChange: n
|
|
3622
3622
|
}), i = e !== void 0, u = i ? e : o;
|
|
@@ -3633,7 +3633,7 @@ function it({
|
|
|
3633
3633
|
(d) => {
|
|
3634
3634
|
var p;
|
|
3635
3635
|
if (i) {
|
|
3636
|
-
const m =
|
|
3636
|
+
const m = hc(d) ? d(e) : d;
|
|
3637
3637
|
m !== e && ((p = s.current) == null || p.call(s, m));
|
|
3638
3638
|
} else
|
|
3639
3639
|
a(d);
|
|
@@ -3642,19 +3642,19 @@ function it({
|
|
|
3642
3642
|
);
|
|
3643
3643
|
return [u, f];
|
|
3644
3644
|
}
|
|
3645
|
-
function
|
|
3645
|
+
function mc({
|
|
3646
3646
|
defaultProp: e,
|
|
3647
3647
|
onChange: t
|
|
3648
3648
|
}) {
|
|
3649
3649
|
const [n, r] = l.useState(e), o = l.useRef(n), a = l.useRef(t);
|
|
3650
|
-
return
|
|
3650
|
+
return pc(() => {
|
|
3651
3651
|
a.current = t;
|
|
3652
3652
|
}, [t]), l.useEffect(() => {
|
|
3653
3653
|
var s;
|
|
3654
3654
|
o.current !== n && ((s = a.current) == null || s.call(a, n), o.current = n);
|
|
3655
3655
|
}, [n, o]), [n, r, a];
|
|
3656
3656
|
}
|
|
3657
|
-
function
|
|
3657
|
+
function hc(e) {
|
|
3658
3658
|
return typeof e == "function";
|
|
3659
3659
|
}
|
|
3660
3660
|
function me(e) {
|
|
@@ -3666,7 +3666,7 @@ function me(e) {
|
|
|
3666
3666
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
3667
3667
|
}, []);
|
|
3668
3668
|
}
|
|
3669
|
-
function
|
|
3669
|
+
function gc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3670
3670
|
const n = me(e);
|
|
3671
3671
|
l.useEffect(() => {
|
|
3672
3672
|
const r = (o) => {
|
|
@@ -3675,7 +3675,7 @@ function hc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3675
3675
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
3676
3676
|
}, [n, t]);
|
|
3677
3677
|
}
|
|
3678
|
-
var
|
|
3678
|
+
var vc = "DismissableLayer", dn = "dismissableLayer.update", bc = "dismissableLayer.pointerDownOutside", xc = "dismissableLayer.focusOutside", fr, ro = l.createContext({
|
|
3679
3679
|
layers: /* @__PURE__ */ new Set(),
|
|
3680
3680
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3681
3681
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -3689,14 +3689,14 @@ var gc = "DismissableLayer", dn = "dismissableLayer.update", vc = "dismissableLa
|
|
|
3689
3689
|
onInteractOutside: s,
|
|
3690
3690
|
onDismiss: i,
|
|
3691
3691
|
...u
|
|
3692
|
-
} = e, f = l.useContext(ro), [d, p] = l.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = l.useState({}), b = ee(t, (k) => p(k)), h = Array.from(f.layers), [v] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(v), y = d ? h.indexOf(d) : -1, C = f.layersWithOutsidePointerEventsDisabled.size > 0, E = y >= x, M =
|
|
3692
|
+
} = e, f = l.useContext(ro), [d, p] = l.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = l.useState({}), b = ee(t, (k) => p(k)), h = Array.from(f.layers), [v] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(v), y = d ? h.indexOf(d) : -1, C = f.layersWithOutsidePointerEventsDisabled.size > 0, E = y >= x, M = Cc((k) => {
|
|
3693
3693
|
const R = k.target, D = [...f.branches].some((z) => z.contains(R));
|
|
3694
3694
|
!E || D || (o == null || o(k), s == null || s(k), k.defaultPrevented || i == null || i());
|
|
3695
|
-
}, m), T =
|
|
3695
|
+
}, m), T = Ec((k) => {
|
|
3696
3696
|
const R = k.target;
|
|
3697
3697
|
[...f.branches].some((z) => z.contains(R)) || (a == null || a(k), s == null || s(k), k.defaultPrevented || i == null || i());
|
|
3698
3698
|
}, m);
|
|
3699
|
-
return
|
|
3699
|
+
return gc((k) => {
|
|
3700
3700
|
y === f.layers.size - 1 && (r == null || r(k), !k.defaultPrevented && i && (k.preventDefault(), i()));
|
|
3701
3701
|
}, m), l.useEffect(() => {
|
|
3702
3702
|
if (d)
|
|
@@ -3727,8 +3727,8 @@ var gc = "DismissableLayer", dn = "dismissableLayer.update", vc = "dismissableLa
|
|
|
3727
3727
|
);
|
|
3728
3728
|
}
|
|
3729
3729
|
);
|
|
3730
|
-
It.displayName =
|
|
3731
|
-
var
|
|
3730
|
+
It.displayName = vc;
|
|
3731
|
+
var wc = "DismissableLayerBranch", yc = l.forwardRef((e, t) => {
|
|
3732
3732
|
const n = l.useContext(ro), r = l.useRef(null), o = ee(t, r);
|
|
3733
3733
|
return l.useEffect(() => {
|
|
3734
3734
|
const a = r.current;
|
|
@@ -3738,8 +3738,8 @@ var xc = "DismissableLayerBranch", wc = l.forwardRef((e, t) => {
|
|
|
3738
3738
|
};
|
|
3739
3739
|
}, [n.branches]), /* @__PURE__ */ c.jsx(q.div, { ...e, ref: o });
|
|
3740
3740
|
});
|
|
3741
|
-
|
|
3742
|
-
function
|
|
3741
|
+
yc.displayName = wc;
|
|
3742
|
+
function Cc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3743
3743
|
const n = me(e), r = l.useRef(!1), o = l.useRef(() => {
|
|
3744
3744
|
});
|
|
3745
3745
|
return l.useEffect(() => {
|
|
@@ -3747,7 +3747,7 @@ function yc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3747
3747
|
if (i.target && !r.current) {
|
|
3748
3748
|
let u = function() {
|
|
3749
3749
|
oo(
|
|
3750
|
-
|
|
3750
|
+
bc,
|
|
3751
3751
|
n,
|
|
3752
3752
|
f,
|
|
3753
3753
|
{ discrete: !0 }
|
|
@@ -3769,11 +3769,11 @@ function yc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3769
3769
|
onPointerDownCapture: () => r.current = !0
|
|
3770
3770
|
};
|
|
3771
3771
|
}
|
|
3772
|
-
function
|
|
3772
|
+
function Ec(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3773
3773
|
const n = me(e), r = l.useRef(!1);
|
|
3774
3774
|
return l.useEffect(() => {
|
|
3775
3775
|
const o = (a) => {
|
|
3776
|
-
a.target && !r.current && oo(
|
|
3776
|
+
a.target && !r.current && oo(xc, n, { originalEvent: a }, {
|
|
3777
3777
|
discrete: !1
|
|
3778
3778
|
});
|
|
3779
3779
|
};
|
|
@@ -3791,7 +3791,7 @@ function oo(e, t, n, { discrete: r }) {
|
|
|
3791
3791
|
const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
3792
3792
|
t && o.addEventListener(e, t, { once: !0 }), r ? Fr(o, a) : o.dispatchEvent(a);
|
|
3793
3793
|
}
|
|
3794
|
-
var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", mr = { bubbles: !1, cancelable: !0 },
|
|
3794
|
+
var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", mr = { bubbles: !1, cancelable: !0 }, Sc = "FocusScope", Rn = l.forwardRef((e, t) => {
|
|
3795
3795
|
const {
|
|
3796
3796
|
loop: n = !1,
|
|
3797
3797
|
trapped: r = !1,
|
|
@@ -3834,7 +3834,7 @@ var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", mr
|
|
|
3834
3834
|
const h = document.activeElement;
|
|
3835
3835
|
if (!i.contains(h)) {
|
|
3836
3836
|
const x = new CustomEvent(Xt, mr);
|
|
3837
|
-
i.addEventListener(Xt, f), i.dispatchEvent(x), x.defaultPrevented || (
|
|
3837
|
+
i.addEventListener(Xt, f), i.dispatchEvent(x), x.defaultPrevented || (Rc(Pc(ao(i)), { select: !0 }), document.activeElement === h && Re(i));
|
|
3838
3838
|
}
|
|
3839
3839
|
return () => {
|
|
3840
3840
|
i.removeEventListener(Xt, f), setTimeout(() => {
|
|
@@ -3849,7 +3849,7 @@ var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", mr
|
|
|
3849
3849
|
if (!n && !r || g.paused) return;
|
|
3850
3850
|
const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, x = document.activeElement;
|
|
3851
3851
|
if (v && x) {
|
|
3852
|
-
const y = h.currentTarget, [C, E] =
|
|
3852
|
+
const y = h.currentTarget, [C, E] = Mc(y);
|
|
3853
3853
|
C && E ? !h.shiftKey && x === E ? (h.preventDefault(), n && Re(C, { select: !0 })) : h.shiftKey && x === C && (h.preventDefault(), n && Re(E, { select: !0 })) : x === y && h.preventDefault();
|
|
3854
3854
|
}
|
|
3855
3855
|
},
|
|
@@ -3857,13 +3857,13 @@ var Xt = "focusScope.autoFocusOnMount", qt = "focusScope.autoFocusOnUnmount", mr
|
|
|
3857
3857
|
);
|
|
3858
3858
|
return /* @__PURE__ */ c.jsx(q.div, { tabIndex: -1, ...s, ref: m, onKeyDown: b });
|
|
3859
3859
|
});
|
|
3860
|
-
Rn.displayName =
|
|
3861
|
-
function
|
|
3860
|
+
Rn.displayName = Sc;
|
|
3861
|
+
function Rc(e, { select: t = !1 } = {}) {
|
|
3862
3862
|
const n = document.activeElement;
|
|
3863
3863
|
for (const r of e)
|
|
3864
3864
|
if (Re(r, { select: t }), document.activeElement !== n) return;
|
|
3865
3865
|
}
|
|
3866
|
-
function
|
|
3866
|
+
function Mc(e) {
|
|
3867
3867
|
const t = ao(e), n = hr(t, e), r = hr(t.reverse(), e);
|
|
3868
3868
|
return [n, r];
|
|
3869
3869
|
}
|
|
@@ -3879,9 +3879,9 @@ function ao(e) {
|
|
|
3879
3879
|
}
|
|
3880
3880
|
function hr(e, t) {
|
|
3881
3881
|
for (const n of e)
|
|
3882
|
-
if (!
|
|
3882
|
+
if (!kc(n, { upTo: t })) return n;
|
|
3883
3883
|
}
|
|
3884
|
-
function
|
|
3884
|
+
function kc(e, { upTo: t }) {
|
|
3885
3885
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3886
3886
|
for (; e; ) {
|
|
3887
3887
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -3890,17 +3890,17 @@ function Mc(e, { upTo: t }) {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
return !1;
|
|
3892
3892
|
}
|
|
3893
|
-
function
|
|
3893
|
+
function Ac(e) {
|
|
3894
3894
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3895
3895
|
}
|
|
3896
3896
|
function Re(e, { select: t = !1 } = {}) {
|
|
3897
3897
|
if (e && e.focus) {
|
|
3898
3898
|
const n = document.activeElement;
|
|
3899
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
3899
|
+
e.focus({ preventScroll: !0 }), e !== n && Ac(e) && t && e.select();
|
|
3900
3900
|
}
|
|
3901
3901
|
}
|
|
3902
|
-
var gr =
|
|
3903
|
-
function
|
|
3902
|
+
var gr = Nc();
|
|
3903
|
+
function Nc() {
|
|
3904
3904
|
let e = [];
|
|
3905
3905
|
return {
|
|
3906
3906
|
add(t) {
|
|
@@ -3917,27 +3917,27 @@ function vr(e, t) {
|
|
|
3917
3917
|
const n = [...e], r = n.indexOf(t);
|
|
3918
3918
|
return r !== -1 && n.splice(r, 1), n;
|
|
3919
3919
|
}
|
|
3920
|
-
function
|
|
3920
|
+
function Pc(e) {
|
|
3921
3921
|
return e.filter((t) => t.tagName !== "A");
|
|
3922
3922
|
}
|
|
3923
|
-
var
|
|
3923
|
+
var _c = "Portal", Mn = l.forwardRef((e, t) => {
|
|
3924
3924
|
var i;
|
|
3925
3925
|
const { container: n, ...r } = e, [o, a] = l.useState(!1);
|
|
3926
3926
|
Me(() => a(!0), []);
|
|
3927
3927
|
const s = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
3928
|
-
return s ?
|
|
3928
|
+
return s ? Ts.createPortal(/* @__PURE__ */ c.jsx(q.div, { ...r, ref: t }), s) : null;
|
|
3929
3929
|
});
|
|
3930
|
-
Mn.displayName =
|
|
3931
|
-
function
|
|
3930
|
+
Mn.displayName = _c;
|
|
3931
|
+
function Tc(e, t) {
|
|
3932
3932
|
return l.useReducer((n, r) => t[n][r] ?? n, e);
|
|
3933
3933
|
}
|
|
3934
3934
|
var ye = (e) => {
|
|
3935
|
-
const { present: t, children: n } = e, r =
|
|
3935
|
+
const { present: t, children: n } = e, r = Oc(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), a = ee(r.ref, jc(o));
|
|
3936
3936
|
return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: a }) : null;
|
|
3937
3937
|
};
|
|
3938
3938
|
ye.displayName = "Presence";
|
|
3939
|
-
function
|
|
3940
|
-
const [t, n] = l.useState(), r = l.useRef(null), o = l.useRef(e), a = l.useRef("none"), s = e ? "mounted" : "unmounted", [i, u] =
|
|
3939
|
+
function Oc(e) {
|
|
3940
|
+
const [t, n] = l.useState(), r = l.useRef(null), o = l.useRef(e), a = l.useRef("none"), s = e ? "mounted" : "unmounted", [i, u] = Tc(s, {
|
|
3941
3941
|
mounted: {
|
|
3942
3942
|
UNMOUNT: "unmounted",
|
|
3943
3943
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -3988,7 +3988,7 @@ function Tc(e) {
|
|
|
3988
3988
|
function bt(e) {
|
|
3989
3989
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
3990
3990
|
}
|
|
3991
|
-
function
|
|
3991
|
+
function jc(e) {
|
|
3992
3992
|
var r, o;
|
|
3993
3993
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3994
3994
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
@@ -4023,16 +4023,16 @@ function io(e, t) {
|
|
|
4023
4023
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
4024
4024
|
return n;
|
|
4025
4025
|
}
|
|
4026
|
-
function
|
|
4026
|
+
function Ic(e, t, n) {
|
|
4027
4027
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
|
|
4028
4028
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
4029
4029
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
4030
4030
|
}
|
|
4031
|
-
var St = "right-scroll-bar-position", Rt = "width-before-scroll-bar",
|
|
4031
|
+
var St = "right-scroll-bar-position", Rt = "width-before-scroll-bar", Dc = "with-scroll-bars-hidden", Lc = "--removed-body-scroll-bar-size";
|
|
4032
4032
|
function Qt(e, t) {
|
|
4033
4033
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4034
4034
|
}
|
|
4035
|
-
function
|
|
4035
|
+
function Fc(e, t) {
|
|
4036
4036
|
var n = ze(function() {
|
|
4037
4037
|
return {
|
|
4038
4038
|
// value
|
|
@@ -4053,14 +4053,14 @@ function Lc(e, t) {
|
|
|
4053
4053
|
})[0];
|
|
4054
4054
|
return n.callback = t, n.facade;
|
|
4055
4055
|
}
|
|
4056
|
-
var
|
|
4057
|
-
function
|
|
4058
|
-
var n =
|
|
4056
|
+
var $c = typeof window < "u" ? l.useLayoutEffect : l.useEffect, xr = /* @__PURE__ */ new WeakMap();
|
|
4057
|
+
function zc(e, t) {
|
|
4058
|
+
var n = Fc(null, function(r) {
|
|
4059
4059
|
return e.forEach(function(o) {
|
|
4060
4060
|
return Qt(o, r);
|
|
4061
4061
|
});
|
|
4062
4062
|
});
|
|
4063
|
-
return
|
|
4063
|
+
return $c(function() {
|
|
4064
4064
|
var r = xr.get(n);
|
|
4065
4065
|
if (r) {
|
|
4066
4066
|
var o = new Set(r), a = new Set(e), s = n.current;
|
|
@@ -4073,11 +4073,11 @@ function $c(e, t) {
|
|
|
4073
4073
|
xr.set(n, e);
|
|
4074
4074
|
}, [e]), n;
|
|
4075
4075
|
}
|
|
4076
|
-
function
|
|
4076
|
+
function Hc(e) {
|
|
4077
4077
|
return e;
|
|
4078
4078
|
}
|
|
4079
|
-
function
|
|
4080
|
-
t === void 0 && (t =
|
|
4079
|
+
function Vc(e, t) {
|
|
4080
|
+
t === void 0 && (t = Hc);
|
|
4081
4081
|
var n = [], r = !1, o = {
|
|
4082
4082
|
read: function() {
|
|
4083
4083
|
if (r)
|
|
@@ -4131,9 +4131,9 @@ function Hc(e, t) {
|
|
|
4131
4131
|
};
|
|
4132
4132
|
return o;
|
|
4133
4133
|
}
|
|
4134
|
-
function
|
|
4134
|
+
function Wc(e) {
|
|
4135
4135
|
e === void 0 && (e = {});
|
|
4136
|
-
var t =
|
|
4136
|
+
var t = Vc(null);
|
|
4137
4137
|
return t.options = de({ async: !0, ssr: !1 }, e), t;
|
|
4138
4138
|
}
|
|
4139
4139
|
var co = function(e) {
|
|
@@ -4146,16 +4146,16 @@ var co = function(e) {
|
|
|
4146
4146
|
return l.createElement(r, de({}, n));
|
|
4147
4147
|
};
|
|
4148
4148
|
co.isSideCarExport = !0;
|
|
4149
|
-
function
|
|
4149
|
+
function Bc(e, t) {
|
|
4150
4150
|
return e.useMedium(t), co;
|
|
4151
4151
|
}
|
|
4152
|
-
var lo =
|
|
4152
|
+
var lo = Wc(), en = function() {
|
|
4153
4153
|
}, Dt = l.forwardRef(function(e, t) {
|
|
4154
4154
|
var n = l.useRef(null), r = l.useState({
|
|
4155
4155
|
onScrollCapture: en,
|
|
4156
4156
|
onWheelCapture: en,
|
|
4157
4157
|
onTouchMoveCapture: en
|
|
4158
|
-
}), o = r[0], a = r[1], s = e.forwardProps, i = e.children, u = e.className, f = e.removeScrollBar, d = e.enabled, p = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, x = e.as, y = x === void 0 ? "div" : x, C = e.gapMode, E = io(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), M = m, T =
|
|
4158
|
+
}), o = r[0], a = r[1], s = e.forwardProps, i = e.children, u = e.className, f = e.removeScrollBar, d = e.enabled, p = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, x = e.as, y = x === void 0 ? "div" : x, C = e.gapMode, E = io(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), M = m, T = zc([n, t]), k = de(de({}, E), o);
|
|
4159
4159
|
return l.createElement(
|
|
4160
4160
|
l.Fragment,
|
|
4161
4161
|
null,
|
|
@@ -4172,37 +4172,37 @@ Dt.classNames = {
|
|
|
4172
4172
|
fullWidth: Rt,
|
|
4173
4173
|
zeroRight: St
|
|
4174
4174
|
};
|
|
4175
|
-
var
|
|
4175
|
+
var Gc = function() {
|
|
4176
4176
|
if (typeof __webpack_nonce__ < "u")
|
|
4177
4177
|
return __webpack_nonce__;
|
|
4178
4178
|
};
|
|
4179
|
-
function
|
|
4179
|
+
function Uc() {
|
|
4180
4180
|
if (!document)
|
|
4181
4181
|
return null;
|
|
4182
4182
|
var e = document.createElement("style");
|
|
4183
4183
|
e.type = "text/css";
|
|
4184
|
-
var t =
|
|
4184
|
+
var t = Gc();
|
|
4185
4185
|
return t && e.setAttribute("nonce", t), e;
|
|
4186
4186
|
}
|
|
4187
|
-
function
|
|
4187
|
+
function Kc(e, t) {
|
|
4188
4188
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
4189
4189
|
}
|
|
4190
|
-
function
|
|
4190
|
+
function Yc(e) {
|
|
4191
4191
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
4192
4192
|
t.appendChild(e);
|
|
4193
4193
|
}
|
|
4194
|
-
var
|
|
4194
|
+
var Zc = function() {
|
|
4195
4195
|
var e = 0, t = null;
|
|
4196
4196
|
return {
|
|
4197
4197
|
add: function(n) {
|
|
4198
|
-
e == 0 && (t =
|
|
4198
|
+
e == 0 && (t = Uc()) && (Kc(t, n), Yc(t)), e++;
|
|
4199
4199
|
},
|
|
4200
4200
|
remove: function() {
|
|
4201
4201
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
4202
4202
|
}
|
|
4203
4203
|
};
|
|
4204
|
-
},
|
|
4205
|
-
var e =
|
|
4204
|
+
}, Xc = function() {
|
|
4205
|
+
var e = Zc();
|
|
4206
4206
|
return function(t, n) {
|
|
4207
4207
|
l.useEffect(function() {
|
|
4208
4208
|
return e.add(t), function() {
|
|
@@ -4211,35 +4211,35 @@ var Yc = function() {
|
|
|
4211
4211
|
}, [t && n]);
|
|
4212
4212
|
};
|
|
4213
4213
|
}, uo = function() {
|
|
4214
|
-
var e =
|
|
4214
|
+
var e = Xc(), t = function(n) {
|
|
4215
4215
|
var r = n.styles, o = n.dynamic;
|
|
4216
4216
|
return e(r, o), null;
|
|
4217
4217
|
};
|
|
4218
4218
|
return t;
|
|
4219
|
-
},
|
|
4219
|
+
}, qc = {
|
|
4220
4220
|
left: 0,
|
|
4221
4221
|
top: 0,
|
|
4222
4222
|
right: 0,
|
|
4223
4223
|
gap: 0
|
|
4224
4224
|
}, tn = function(e) {
|
|
4225
4225
|
return parseInt(e || "", 10) || 0;
|
|
4226
|
-
},
|
|
4226
|
+
}, Jc = function(e) {
|
|
4227
4227
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
4228
4228
|
return [tn(n), tn(r), tn(o)];
|
|
4229
|
-
},
|
|
4229
|
+
}, Qc = function(e) {
|
|
4230
4230
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
4231
|
-
return
|
|
4232
|
-
var t =
|
|
4231
|
+
return qc;
|
|
4232
|
+
var t = Jc(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
4233
4233
|
return {
|
|
4234
4234
|
left: t[0],
|
|
4235
4235
|
top: t[1],
|
|
4236
4236
|
right: t[2],
|
|
4237
4237
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
4238
4238
|
};
|
|
4239
|
-
},
|
|
4239
|
+
}, el = uo(), He = "data-scroll-locked", tl = function(e, t, n, r) {
|
|
4240
4240
|
var o = e.left, a = e.top, s = e.right, i = e.gap;
|
|
4241
4241
|
return n === void 0 && (n = "margin"), `
|
|
4242
|
-
.`.concat(
|
|
4242
|
+
.`.concat(Dc, ` {
|
|
4243
4243
|
overflow: hidden `).concat(r, `;
|
|
4244
4244
|
padding-right: `).concat(i, "px ").concat(r, `;
|
|
4245
4245
|
}
|
|
@@ -4277,26 +4277,26 @@ var Yc = function() {
|
|
|
4277
4277
|
}
|
|
4278
4278
|
|
|
4279
4279
|
body[`).concat(He, `] {
|
|
4280
|
-
`).concat(
|
|
4280
|
+
`).concat(Lc, ": ").concat(i, `px;
|
|
4281
4281
|
}
|
|
4282
4282
|
`);
|
|
4283
4283
|
}, wr = function() {
|
|
4284
4284
|
var e = parseInt(document.body.getAttribute(He) || "0", 10);
|
|
4285
4285
|
return isFinite(e) ? e : 0;
|
|
4286
|
-
},
|
|
4286
|
+
}, nl = function() {
|
|
4287
4287
|
l.useEffect(function() {
|
|
4288
4288
|
return document.body.setAttribute(He, (wr() + 1).toString()), function() {
|
|
4289
4289
|
var e = wr() - 1;
|
|
4290
4290
|
e <= 0 ? document.body.removeAttribute(He) : document.body.setAttribute(He, e.toString());
|
|
4291
4291
|
};
|
|
4292
4292
|
}, []);
|
|
4293
|
-
},
|
|
4293
|
+
}, rl = function(e) {
|
|
4294
4294
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
4295
|
-
|
|
4295
|
+
nl();
|
|
4296
4296
|
var a = l.useMemo(function() {
|
|
4297
|
-
return
|
|
4297
|
+
return Qc(o);
|
|
4298
4298
|
}, [o]);
|
|
4299
|
-
return l.createElement(
|
|
4299
|
+
return l.createElement(el, { styles: tl(a, !t, o, n ? "" : "!important") });
|
|
4300
4300
|
}, fn = !1;
|
|
4301
4301
|
if (typeof window < "u")
|
|
4302
4302
|
try {
|
|
@@ -4309,7 +4309,7 @@ if (typeof window < "u")
|
|
|
4309
4309
|
} catch {
|
|
4310
4310
|
fn = !1;
|
|
4311
4311
|
}
|
|
4312
|
-
var Le = fn ? { passive: !1 } : !1,
|
|
4312
|
+
var Le = fn ? { passive: !1 } : !1, ol = function(e) {
|
|
4313
4313
|
return e.tagName === "TEXTAREA";
|
|
4314
4314
|
}, fo = function(e, t) {
|
|
4315
4315
|
if (!(e instanceof Element))
|
|
@@ -4318,11 +4318,11 @@ var Le = fn ? { passive: !1 } : !1, rl = function(e) {
|
|
|
4318
4318
|
return (
|
|
4319
4319
|
// not-not-scrollable
|
|
4320
4320
|
n[t] !== "hidden" && // contains scroll inside self
|
|
4321
|
-
!(n.overflowY === n.overflowX && !
|
|
4321
|
+
!(n.overflowY === n.overflowX && !ol(e) && n[t] === "visible")
|
|
4322
4322
|
);
|
|
4323
|
-
}, ol = function(e) {
|
|
4324
|
-
return fo(e, "overflowY");
|
|
4325
4323
|
}, al = function(e) {
|
|
4324
|
+
return fo(e, "overflowY");
|
|
4325
|
+
}, sl = function(e) {
|
|
4326
4326
|
return fo(e, "overflowX");
|
|
4327
4327
|
}, yr = function(e, t) {
|
|
4328
4328
|
var n = t.ownerDocument, r = t;
|
|
@@ -4337,14 +4337,14 @@ var Le = fn ? { passive: !1 } : !1, rl = function(e) {
|
|
|
4337
4337
|
r = r.parentNode;
|
|
4338
4338
|
} while (r && r !== n.body);
|
|
4339
4339
|
return !1;
|
|
4340
|
-
},
|
|
4340
|
+
}, il = function(e) {
|
|
4341
4341
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
4342
4342
|
return [
|
|
4343
4343
|
t,
|
|
4344
4344
|
n,
|
|
4345
4345
|
r
|
|
4346
4346
|
];
|
|
4347
|
-
},
|
|
4347
|
+
}, cl = function(e) {
|
|
4348
4348
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
4349
4349
|
return [
|
|
4350
4350
|
t,
|
|
@@ -4352,13 +4352,13 @@ var Le = fn ? { passive: !1 } : !1, rl = function(e) {
|
|
|
4352
4352
|
r
|
|
4353
4353
|
];
|
|
4354
4354
|
}, po = function(e, t) {
|
|
4355
|
-
return e === "v" ?
|
|
4355
|
+
return e === "v" ? al(t) : sl(t);
|
|
4356
4356
|
}, mo = function(e, t) {
|
|
4357
|
-
return e === "v" ?
|
|
4358
|
-
},
|
|
4357
|
+
return e === "v" ? il(t) : cl(t);
|
|
4358
|
+
}, ll = function(e, t) {
|
|
4359
4359
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
4360
|
-
},
|
|
4361
|
-
var a =
|
|
4360
|
+
}, ul = function(e, t, n, r, o) {
|
|
4361
|
+
var a = ll(e, window.getComputedStyle(t).direction), s = a * r, i = n.target, u = t.contains(i), f = !1, d = s > 0, p = 0, m = 0;
|
|
4362
4362
|
do {
|
|
4363
4363
|
if (!i)
|
|
4364
4364
|
break;
|
|
@@ -4378,22 +4378,22 @@ var Le = fn ? { passive: !1 } : !1, rl = function(e) {
|
|
|
4378
4378
|
return [e.deltaX, e.deltaY];
|
|
4379
4379
|
}, Er = function(e) {
|
|
4380
4380
|
return e && "current" in e ? e.current : e;
|
|
4381
|
-
},
|
|
4381
|
+
}, dl = function(e, t) {
|
|
4382
4382
|
return e[0] === t[0] && e[1] === t[1];
|
|
4383
|
-
},
|
|
4383
|
+
}, fl = function(e) {
|
|
4384
4384
|
return `
|
|
4385
4385
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
4386
4386
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
4387
4387
|
`);
|
|
4388
|
-
},
|
|
4389
|
-
function
|
|
4390
|
-
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(
|
|
4388
|
+
}, pl = 0, Fe = [];
|
|
4389
|
+
function ml(e) {
|
|
4390
|
+
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(pl++)[0], a = l.useState(uo)[0], s = l.useRef(e);
|
|
4391
4391
|
l.useEffect(function() {
|
|
4392
4392
|
s.current = e;
|
|
4393
4393
|
}, [e]), l.useEffect(function() {
|
|
4394
4394
|
if (e.inert) {
|
|
4395
4395
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
4396
|
-
var h =
|
|
4396
|
+
var h = Ic([e.lockRef.current], (e.shards || []).map(Er), !0).filter(Boolean);
|
|
4397
4397
|
return h.forEach(function(v) {
|
|
4398
4398
|
return v.classList.add("allow-interactivity-".concat(o));
|
|
4399
4399
|
}), function() {
|
|
@@ -4417,12 +4417,12 @@ function pl(e) {
|
|
|
4417
4417
|
if (!r.current && "changedTouches" in h && (C || E) && (r.current = M), !M)
|
|
4418
4418
|
return !0;
|
|
4419
4419
|
var D = r.current || M;
|
|
4420
|
-
return
|
|
4420
|
+
return ul(D, v, h, D === "h" ? C : E);
|
|
4421
4421
|
}, []), u = l.useCallback(function(h) {
|
|
4422
4422
|
var v = h;
|
|
4423
4423
|
if (!(!Fe.length || Fe[Fe.length - 1] !== a)) {
|
|
4424
4424
|
var x = "deltaY" in v ? Cr(v) : wt(v), y = t.current.filter(function(M) {
|
|
4425
|
-
return M.name === v.type && (M.target === v.target || v.target === M.shadowParent) &&
|
|
4425
|
+
return M.name === v.type && (M.target === v.target || v.target === M.shadowParent) && dl(M.delta, x);
|
|
4426
4426
|
})[0];
|
|
4427
4427
|
if (y && y.should) {
|
|
4428
4428
|
v.cancelable && v.preventDefault();
|
|
@@ -4436,7 +4436,7 @@ function pl(e) {
|
|
|
4436
4436
|
}
|
|
4437
4437
|
}
|
|
4438
4438
|
}, []), f = l.useCallback(function(h, v, x, y) {
|
|
4439
|
-
var C = { name: h, delta: v, target: x, should: y, shadowParent:
|
|
4439
|
+
var C = { name: h, delta: v, target: x, should: y, shadowParent: hl(x) };
|
|
4440
4440
|
t.current.push(C), setTimeout(function() {
|
|
4441
4441
|
t.current = t.current.filter(function(E) {
|
|
4442
4442
|
return E !== C;
|
|
@@ -4464,28 +4464,28 @@ function pl(e) {
|
|
|
4464
4464
|
return l.createElement(
|
|
4465
4465
|
l.Fragment,
|
|
4466
4466
|
null,
|
|
4467
|
-
b ? l.createElement(a, { styles:
|
|
4468
|
-
g ? l.createElement(
|
|
4467
|
+
b ? l.createElement(a, { styles: fl(o) }) : null,
|
|
4468
|
+
g ? l.createElement(rl, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
4469
4469
|
);
|
|
4470
4470
|
}
|
|
4471
|
-
function
|
|
4471
|
+
function hl(e) {
|
|
4472
4472
|
for (var t = null; e !== null; )
|
|
4473
4473
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4474
4474
|
return t;
|
|
4475
4475
|
}
|
|
4476
|
-
const
|
|
4476
|
+
const gl = Bc(lo, ml);
|
|
4477
4477
|
var kn = l.forwardRef(function(e, t) {
|
|
4478
|
-
return l.createElement(Dt, de({}, e, { ref: t, sideCar:
|
|
4478
|
+
return l.createElement(Dt, de({}, e, { ref: t, sideCar: gl }));
|
|
4479
4479
|
});
|
|
4480
4480
|
kn.classNames = Dt.classNames;
|
|
4481
|
-
var
|
|
4481
|
+
var vl = function(e) {
|
|
4482
4482
|
if (typeof document > "u")
|
|
4483
4483
|
return null;
|
|
4484
4484
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4485
4485
|
return t.ownerDocument.body;
|
|
4486
4486
|
}, $e = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), Ct = {}, nn = 0, ho = function(e) {
|
|
4487
4487
|
return e && (e.host || ho(e.parentNode));
|
|
4488
|
-
},
|
|
4488
|
+
}, bl = function(e, t) {
|
|
4489
4489
|
return t.map(function(n) {
|
|
4490
4490
|
if (e.contains(n))
|
|
4491
4491
|
return n;
|
|
@@ -4494,8 +4494,8 @@ var gl = function(e) {
|
|
|
4494
4494
|
}).filter(function(n) {
|
|
4495
4495
|
return !!n;
|
|
4496
4496
|
});
|
|
4497
|
-
},
|
|
4498
|
-
var o =
|
|
4497
|
+
}, xl = function(e, t, n, r) {
|
|
4498
|
+
var o = bl(t, Array.isArray(e) ? e : [e]);
|
|
4499
4499
|
Ct[n] || (Ct[n] = /* @__PURE__ */ new WeakMap());
|
|
4500
4500
|
var a = Ct[n], s = [], i = /* @__PURE__ */ new Set(), u = new Set(o), f = function(p) {
|
|
4501
4501
|
!p || i.has(p) || (i.add(p), f(p.parentNode));
|
|
@@ -4522,11 +4522,11 @@ var gl = function(e) {
|
|
|
4522
4522
|
};
|
|
4523
4523
|
}, go = function(e, t, n) {
|
|
4524
4524
|
n === void 0 && (n = "data-aria-hidden");
|
|
4525
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
4526
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
4525
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = vl(e);
|
|
4526
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), xl(r, o, n, "aria-hidden")) : function() {
|
|
4527
4527
|
return null;
|
|
4528
4528
|
};
|
|
4529
|
-
}, Lt = "Dialog", [vo, Mp] = je(Lt), [
|
|
4529
|
+
}, Lt = "Dialog", [vo, Mp] = je(Lt), [wl, ue] = vo(Lt), bo = (e) => {
|
|
4530
4530
|
const {
|
|
4531
4531
|
__scopeDialog: t,
|
|
4532
4532
|
children: n,
|
|
@@ -4541,7 +4541,7 @@ var gl = function(e) {
|
|
|
4541
4541
|
caller: Lt
|
|
4542
4542
|
});
|
|
4543
4543
|
return /* @__PURE__ */ c.jsx(
|
|
4544
|
-
|
|
4544
|
+
wl,
|
|
4545
4545
|
{
|
|
4546
4546
|
scope: t,
|
|
4547
4547
|
triggerRef: i,
|
|
@@ -4577,27 +4577,27 @@ var xo = "DialogTrigger", wo = l.forwardRef(
|
|
|
4577
4577
|
}
|
|
4578
4578
|
);
|
|
4579
4579
|
wo.displayName = xo;
|
|
4580
|
-
var An = "DialogPortal", [
|
|
4580
|
+
var An = "DialogPortal", [yl, yo] = vo(An, {
|
|
4581
4581
|
forceMount: void 0
|
|
4582
4582
|
}), Co = (e) => {
|
|
4583
4583
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = ue(An, t);
|
|
4584
|
-
return /* @__PURE__ */ c.jsx(
|
|
4584
|
+
return /* @__PURE__ */ c.jsx(yl, { scope: t, forceMount: n, children: l.Children.map(r, (s) => /* @__PURE__ */ c.jsx(ye, { present: n || a.open, children: /* @__PURE__ */ c.jsx(Mn, { asChild: !0, container: o, children: s }) })) });
|
|
4585
4585
|
};
|
|
4586
4586
|
Co.displayName = An;
|
|
4587
4587
|
var kt = "DialogOverlay", Eo = l.forwardRef(
|
|
4588
4588
|
(e, t) => {
|
|
4589
4589
|
const n = yo(kt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = ue(kt, e.__scopeDialog);
|
|
4590
|
-
return a.modal ? /* @__PURE__ */ c.jsx(ye, { present: r || a.open, children: /* @__PURE__ */ c.jsx(
|
|
4590
|
+
return a.modal ? /* @__PURE__ */ c.jsx(ye, { present: r || a.open, children: /* @__PURE__ */ c.jsx(El, { ...o, ref: t }) }) : null;
|
|
4591
4591
|
}
|
|
4592
4592
|
);
|
|
4593
4593
|
Eo.displayName = kt;
|
|
4594
|
-
var
|
|
4594
|
+
var Cl = /* @__PURE__ */ We("DialogOverlay.RemoveScroll"), El = l.forwardRef(
|
|
4595
4595
|
(e, t) => {
|
|
4596
4596
|
const { __scopeDialog: n, ...r } = e, o = ue(kt, n);
|
|
4597
4597
|
return (
|
|
4598
4598
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4599
4599
|
// ie. when `Overlay` and `Content` are siblings
|
|
4600
|
-
/* @__PURE__ */ c.jsx(kn, { as:
|
|
4600
|
+
/* @__PURE__ */ c.jsx(kn, { as: Cl, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ c.jsx(
|
|
4601
4601
|
q.div,
|
|
4602
4602
|
{
|
|
4603
4603
|
"data-state": Pn(o.open),
|
|
@@ -4611,11 +4611,11 @@ var yl = /* @__PURE__ */ We("DialogOverlay.RemoveScroll"), Cl = l.forwardRef(
|
|
|
4611
4611
|
), Te = "DialogContent", So = l.forwardRef(
|
|
4612
4612
|
(e, t) => {
|
|
4613
4613
|
const n = yo(Te, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = ue(Te, e.__scopeDialog);
|
|
4614
|
-
return /* @__PURE__ */ c.jsx(ye, { present: r || a.open, children: a.modal ? /* @__PURE__ */ c.jsx(
|
|
4614
|
+
return /* @__PURE__ */ c.jsx(ye, { present: r || a.open, children: a.modal ? /* @__PURE__ */ c.jsx(Sl, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(Rl, { ...o, ref: t }) });
|
|
4615
4615
|
}
|
|
4616
4616
|
);
|
|
4617
4617
|
So.displayName = Te;
|
|
4618
|
-
var
|
|
4618
|
+
var Sl = l.forwardRef(
|
|
4619
4619
|
(e, t) => {
|
|
4620
4620
|
const n = ue(Te, e.__scopeDialog), r = l.useRef(null), o = ee(t, n.contentRef, r);
|
|
4621
4621
|
return l.useEffect(() => {
|
|
@@ -4643,7 +4643,7 @@ var El = l.forwardRef(
|
|
|
4643
4643
|
}
|
|
4644
4644
|
);
|
|
4645
4645
|
}
|
|
4646
|
-
),
|
|
4646
|
+
), Rl = l.forwardRef(
|
|
4647
4647
|
(e, t) => {
|
|
4648
4648
|
const n = ue(Te, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
|
|
4649
4649
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -4694,8 +4694,8 @@ var El = l.forwardRef(
|
|
|
4694
4694
|
}
|
|
4695
4695
|
),
|
|
4696
4696
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
4697
|
-
/* @__PURE__ */ c.jsx(
|
|
4698
|
-
/* @__PURE__ */ c.jsx(
|
|
4697
|
+
/* @__PURE__ */ c.jsx(Ml, { titleId: i.titleId }),
|
|
4698
|
+
/* @__PURE__ */ c.jsx(Al, { contentRef: u, descriptionId: i.descriptionId })
|
|
4699
4699
|
] })
|
|
4700
4700
|
] });
|
|
4701
4701
|
}
|
|
@@ -4731,11 +4731,11 @@ Po.displayName = No;
|
|
|
4731
4731
|
function Pn(e) {
|
|
4732
4732
|
return e ? "open" : "closed";
|
|
4733
4733
|
}
|
|
4734
|
-
var _o = "DialogTitleWarning", [kp, To] =
|
|
4734
|
+
var _o = "DialogTitleWarning", [kp, To] = lc(_o, {
|
|
4735
4735
|
contentName: Te,
|
|
4736
4736
|
titleName: Nn,
|
|
4737
4737
|
docsSlug: "dialog"
|
|
4738
|
-
}),
|
|
4738
|
+
}), Ml = ({ titleId: e }) => {
|
|
4739
4739
|
const t = To(_o), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
4740
4740
|
|
|
4741
4741
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -4744,15 +4744,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4744
4744
|
return l.useEffect(() => {
|
|
4745
4745
|
e && (document.getElementById(e) || console.error(n));
|
|
4746
4746
|
}, [n, e]), null;
|
|
4747
|
-
},
|
|
4748
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${To(
|
|
4747
|
+
}, kl = "DialogDescriptionWarning", Al = ({ contentRef: e, descriptionId: t }) => {
|
|
4748
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${To(kl).contentName}}.`;
|
|
4749
4749
|
return l.useEffect(() => {
|
|
4750
4750
|
var a;
|
|
4751
4751
|
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
4752
4752
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
4753
4753
|
}, [r, e, t]), null;
|
|
4754
|
-
},
|
|
4755
|
-
const
|
|
4754
|
+
}, Nl = bo, Pl = wo, _l = Co, Oo = Eo, jo = So, Io = Mo, Do = Ao, Lo = Po;
|
|
4755
|
+
const Tl = Nl, Ap = Pl, Np = Lo, Ol = _l, Fo = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4756
4756
|
Oo,
|
|
4757
4757
|
{
|
|
4758
4758
|
className: A(
|
|
@@ -4764,7 +4764,7 @@ const _l = Al, Ap = Nl, Np = Lo, Tl = Pl, Fo = l.forwardRef(({ className: e, ...
|
|
|
4764
4764
|
}
|
|
4765
4765
|
));
|
|
4766
4766
|
Fo.displayName = Oo.displayName;
|
|
4767
|
-
const
|
|
4767
|
+
const jl = En(
|
|
4768
4768
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
4769
4769
|
{
|
|
4770
4770
|
variants: {
|
|
@@ -4779,18 +4779,18 @@ const Ol = En(
|
|
|
4779
4779
|
side: "right"
|
|
4780
4780
|
}
|
|
4781
4781
|
}
|
|
4782
|
-
), $o = l.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ c.jsxs(
|
|
4782
|
+
), $o = l.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ c.jsxs(Ol, { children: [
|
|
4783
4783
|
/* @__PURE__ */ c.jsx(Fo, {}),
|
|
4784
4784
|
/* @__PURE__ */ c.jsxs(
|
|
4785
4785
|
jo,
|
|
4786
4786
|
{
|
|
4787
4787
|
ref: o,
|
|
4788
|
-
className: A(
|
|
4788
|
+
className: A(jl({ side: e }), t),
|
|
4789
4789
|
...r,
|
|
4790
4790
|
children: [
|
|
4791
4791
|
n,
|
|
4792
4792
|
/* @__PURE__ */ c.jsxs(Lo, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
4793
|
-
/* @__PURE__ */ c.jsx(
|
|
4793
|
+
/* @__PURE__ */ c.jsx(sc, { className: "h-4 w-4" }),
|
|
4794
4794
|
/* @__PURE__ */ c.jsx("span", { className: "sr-only", children: "Close" })
|
|
4795
4795
|
] })
|
|
4796
4796
|
]
|
|
@@ -4812,7 +4812,7 @@ const zo = ({
|
|
|
4812
4812
|
}
|
|
4813
4813
|
);
|
|
4814
4814
|
zo.displayName = "SheetHeader";
|
|
4815
|
-
const
|
|
4815
|
+
const Il = ({
|
|
4816
4816
|
className: e,
|
|
4817
4817
|
...t
|
|
4818
4818
|
}) => /* @__PURE__ */ c.jsx(
|
|
@@ -4825,7 +4825,7 @@ const jl = ({
|
|
|
4825
4825
|
...t
|
|
4826
4826
|
}
|
|
4827
4827
|
);
|
|
4828
|
-
|
|
4828
|
+
Il.displayName = "SheetFooter";
|
|
4829
4829
|
const Ho = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4830
4830
|
Io,
|
|
4831
4831
|
{
|
|
@@ -4856,15 +4856,15 @@ function Sr({
|
|
|
4856
4856
|
}
|
|
4857
4857
|
);
|
|
4858
4858
|
}
|
|
4859
|
-
const
|
|
4859
|
+
const Dl = ["top", "right", "bottom", "left"], ke = Math.min, ae = Math.max, At = Math.round, Et = Math.floor, pe = (e) => ({
|
|
4860
4860
|
x: e,
|
|
4861
4861
|
y: e
|
|
4862
|
-
}),
|
|
4862
|
+
}), Ll = {
|
|
4863
4863
|
left: "right",
|
|
4864
4864
|
right: "left",
|
|
4865
4865
|
bottom: "top",
|
|
4866
4866
|
top: "bottom"
|
|
4867
|
-
},
|
|
4867
|
+
}, Fl = {
|
|
4868
4868
|
start: "end",
|
|
4869
4869
|
end: "start"
|
|
4870
4870
|
};
|
|
@@ -4892,20 +4892,20 @@ function fe(e) {
|
|
|
4892
4892
|
function On(e) {
|
|
4893
4893
|
return _n(fe(e));
|
|
4894
4894
|
}
|
|
4895
|
-
function
|
|
4895
|
+
function $l(e, t, n) {
|
|
4896
4896
|
n === void 0 && (n = !1);
|
|
4897
4897
|
const r = Ze(e), o = On(e), a = Tn(o);
|
|
4898
4898
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4899
4899
|
return t.reference[a] > t.floating[a] && (s = Nt(s)), [s, Nt(s)];
|
|
4900
4900
|
}
|
|
4901
|
-
function
|
|
4901
|
+
function zl(e) {
|
|
4902
4902
|
const t = Nt(e);
|
|
4903
4903
|
return [mn(e), t, mn(t)];
|
|
4904
4904
|
}
|
|
4905
4905
|
function mn(e) {
|
|
4906
|
-
return e.replace(/start|end/g, (t) =>
|
|
4906
|
+
return e.replace(/start|end/g, (t) => Fl[t]);
|
|
4907
4907
|
}
|
|
4908
|
-
function
|
|
4908
|
+
function Hl(e, t, n) {
|
|
4909
4909
|
const r = ["left", "right"], o = ["right", "left"], a = ["top", "bottom"], s = ["bottom", "top"];
|
|
4910
4910
|
switch (e) {
|
|
4911
4911
|
case "top":
|
|
@@ -4918,15 +4918,15 @@ function zl(e, t, n) {
|
|
|
4918
4918
|
return [];
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
|
-
function
|
|
4921
|
+
function Vl(e, t, n, r) {
|
|
4922
4922
|
const o = Ze(e);
|
|
4923
|
-
let a =
|
|
4923
|
+
let a = Hl(we(e), n === "start", r);
|
|
4924
4924
|
return o && (a = a.map((s) => s + "-" + o), t && (a = a.concat(a.map(mn)))), a;
|
|
4925
4925
|
}
|
|
4926
4926
|
function Nt(e) {
|
|
4927
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4927
|
+
return e.replace(/left|right|bottom|top/g, (t) => Ll[t]);
|
|
4928
4928
|
}
|
|
4929
|
-
function
|
|
4929
|
+
function Wl(e) {
|
|
4930
4930
|
return {
|
|
4931
4931
|
top: 0,
|
|
4932
4932
|
right: 0,
|
|
@@ -4936,7 +4936,7 @@ function Vl(e) {
|
|
|
4936
4936
|
};
|
|
4937
4937
|
}
|
|
4938
4938
|
function Wo(e) {
|
|
4939
|
-
return typeof e != "number" ?
|
|
4939
|
+
return typeof e != "number" ? Wl(e) : {
|
|
4940
4940
|
top: e,
|
|
4941
4941
|
right: e,
|
|
4942
4942
|
bottom: e,
|
|
@@ -5009,7 +5009,7 @@ function Rr(e, t, n) {
|
|
|
5009
5009
|
}
|
|
5010
5010
|
return g;
|
|
5011
5011
|
}
|
|
5012
|
-
const
|
|
5012
|
+
const Bl = async (e, t, n) => {
|
|
5013
5013
|
const {
|
|
5014
5014
|
placement: r = "bottom",
|
|
5015
5015
|
strategy: o = "absolute",
|
|
@@ -5115,7 +5115,7 @@ async function nt(e, t) {
|
|
|
5115
5115
|
right: (M.right - x.right + b.right) / E.x
|
|
5116
5116
|
};
|
|
5117
5117
|
}
|
|
5118
|
-
const
|
|
5118
|
+
const Gl = (e) => ({
|
|
5119
5119
|
name: "arrow",
|
|
5120
5120
|
options: e,
|
|
5121
5121
|
async fn(t) {
|
|
@@ -5152,7 +5152,7 @@ const Bl = (e) => ({
|
|
|
5152
5152
|
reset: I
|
|
5153
5153
|
};
|
|
5154
5154
|
}
|
|
5155
|
-
}),
|
|
5155
|
+
}), Ul = function(e) {
|
|
5156
5156
|
return e === void 0 && (e = {}), {
|
|
5157
5157
|
name: "flip",
|
|
5158
5158
|
options: e,
|
|
@@ -5176,12 +5176,12 @@ const Bl = (e) => ({
|
|
|
5176
5176
|
} = xe(e, t);
|
|
5177
5177
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
5178
5178
|
return {};
|
|
5179
|
-
const x = we(o), y = fe(i), C = we(i) === i, E = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), M = m || (C || !h ? [Nt(i)] :
|
|
5180
|
-
!m && T && M.push(...
|
|
5179
|
+
const x = we(o), y = fe(i), C = we(i) === i, E = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), M = m || (C || !h ? [Nt(i)] : zl(i)), T = b !== "none";
|
|
5180
|
+
!m && T && M.push(...Vl(i, h, b, E));
|
|
5181
5181
|
const k = [i, ...M], R = await nt(t, v), D = [];
|
|
5182
5182
|
let z = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
5183
5183
|
if (d && D.push(R[x]), p) {
|
|
5184
|
-
const H =
|
|
5184
|
+
const H = $l(o, s, E);
|
|
5185
5185
|
D.push(R[H[0]], R[H[1]]);
|
|
5186
5186
|
}
|
|
5187
5187
|
if (z = [...z, {
|
|
@@ -5243,9 +5243,9 @@ function Mr(e, t) {
|
|
|
5243
5243
|
};
|
|
5244
5244
|
}
|
|
5245
5245
|
function kr(e) {
|
|
5246
|
-
return
|
|
5246
|
+
return Dl.some((t) => e[t] >= 0);
|
|
5247
5247
|
}
|
|
5248
|
-
const
|
|
5248
|
+
const Kl = function(e) {
|
|
5249
5249
|
return e === void 0 && (e = {}), {
|
|
5250
5250
|
name: "hide",
|
|
5251
5251
|
options: e,
|
|
@@ -5287,7 +5287,7 @@ const Ul = function(e) {
|
|
|
5287
5287
|
}
|
|
5288
5288
|
};
|
|
5289
5289
|
};
|
|
5290
|
-
async function
|
|
5290
|
+
async function Yl(e, t) {
|
|
5291
5291
|
const {
|
|
5292
5292
|
placement: n,
|
|
5293
5293
|
platform: r,
|
|
@@ -5314,7 +5314,7 @@ async function Kl(e, t) {
|
|
|
5314
5314
|
y: g * d
|
|
5315
5315
|
};
|
|
5316
5316
|
}
|
|
5317
|
-
const
|
|
5317
|
+
const Zl = function(e) {
|
|
5318
5318
|
return e === void 0 && (e = 0), {
|
|
5319
5319
|
name: "offset",
|
|
5320
5320
|
options: e,
|
|
@@ -5325,7 +5325,7 @@ const Yl = function(e) {
|
|
|
5325
5325
|
y: a,
|
|
5326
5326
|
placement: s,
|
|
5327
5327
|
middlewareData: i
|
|
5328
|
-
} = t, u = await
|
|
5328
|
+
} = t, u = await Yl(t, e);
|
|
5329
5329
|
return s === ((n = i.offset) == null ? void 0 : n.placement) && (r = i.arrow) != null && r.alignmentOffset ? {} : {
|
|
5330
5330
|
x: o + u.x,
|
|
5331
5331
|
y: a + u.y,
|
|
@@ -5336,7 +5336,7 @@ const Yl = function(e) {
|
|
|
5336
5336
|
};
|
|
5337
5337
|
}
|
|
5338
5338
|
};
|
|
5339
|
-
},
|
|
5339
|
+
}, Xl = function(e) {
|
|
5340
5340
|
return e === void 0 && (e = {}), {
|
|
5341
5341
|
name: "shift",
|
|
5342
5342
|
options: e,
|
|
@@ -5392,7 +5392,7 @@ const Yl = function(e) {
|
|
|
5392
5392
|
};
|
|
5393
5393
|
}
|
|
5394
5394
|
};
|
|
5395
|
-
},
|
|
5395
|
+
}, ql = function(e) {
|
|
5396
5396
|
return e === void 0 && (e = {}), {
|
|
5397
5397
|
options: e,
|
|
5398
5398
|
fn(t) {
|
|
@@ -5434,7 +5434,7 @@ const Yl = function(e) {
|
|
|
5434
5434
|
};
|
|
5435
5435
|
}
|
|
5436
5436
|
};
|
|
5437
|
-
},
|
|
5437
|
+
}, Jl = function(e) {
|
|
5438
5438
|
return e === void 0 && (e = {}), {
|
|
5439
5439
|
name: "size",
|
|
5440
5440
|
options: e,
|
|
@@ -5510,7 +5510,7 @@ function ct(e) {
|
|
|
5510
5510
|
} = le(e);
|
|
5511
5511
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
5512
5512
|
}
|
|
5513
|
-
function
|
|
5513
|
+
function Ql(e) {
|
|
5514
5514
|
return ["table", "td", "th"].includes(Xe(e));
|
|
5515
5515
|
}
|
|
5516
5516
|
function $t(e) {
|
|
@@ -5526,7 +5526,7 @@ function jn(e) {
|
|
|
5526
5526
|
const t = In(), n = ce(e) ? le(e) : e;
|
|
5527
5527
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
5528
5528
|
}
|
|
5529
|
-
function
|
|
5529
|
+
function eu(e) {
|
|
5530
5530
|
let t = Ae(e);
|
|
5531
5531
|
for (; he(t) && !Be(t); ) {
|
|
5532
5532
|
if (jn(t))
|
|
@@ -5612,15 +5612,15 @@ function Ve(e) {
|
|
|
5612
5612
|
y: i
|
|
5613
5613
|
};
|
|
5614
5614
|
}
|
|
5615
|
-
const
|
|
5615
|
+
const tu = /* @__PURE__ */ pe(0);
|
|
5616
5616
|
function Ko(e) {
|
|
5617
5617
|
const t = se(e);
|
|
5618
|
-
return !In() || !t.visualViewport ?
|
|
5618
|
+
return !In() || !t.visualViewport ? tu : {
|
|
5619
5619
|
x: t.visualViewport.offsetLeft,
|
|
5620
5620
|
y: t.visualViewport.offsetTop
|
|
5621
5621
|
};
|
|
5622
5622
|
}
|
|
5623
|
-
function
|
|
5623
|
+
function nu(e, t, n) {
|
|
5624
5624
|
return t === void 0 && (t = !1), !n || t && n !== se(e) ? !1 : t;
|
|
5625
5625
|
}
|
|
5626
5626
|
function Oe(e, t, n, r) {
|
|
@@ -5628,7 +5628,7 @@ function Oe(e, t, n, r) {
|
|
|
5628
5628
|
const o = e.getBoundingClientRect(), a = Dn(e);
|
|
5629
5629
|
let s = pe(1);
|
|
5630
5630
|
t && (r ? ce(r) && (s = Ve(r)) : s = Ve(e));
|
|
5631
|
-
const i =
|
|
5631
|
+
const i = nu(a, n, r) ? Ko(a) : pe(0);
|
|
5632
5632
|
let u = (o.left + i.x) / s.x, f = (o.top + i.y) / s.y, d = o.width / s.x, p = o.height / s.y;
|
|
5633
5633
|
if (a) {
|
|
5634
5634
|
const m = se(a), g = r && ce(r) ? se(r) : r;
|
|
@@ -5660,7 +5660,7 @@ function Yo(e, t, n) {
|
|
|
5660
5660
|
y: a
|
|
5661
5661
|
};
|
|
5662
5662
|
}
|
|
5663
|
-
function
|
|
5663
|
+
function ru(e) {
|
|
5664
5664
|
let {
|
|
5665
5665
|
elements: t,
|
|
5666
5666
|
rect: n,
|
|
@@ -5687,10 +5687,10 @@ function nu(e) {
|
|
|
5687
5687
|
y: n.y * f.y - u.scrollTop * f.y + d.y + m.y
|
|
5688
5688
|
};
|
|
5689
5689
|
}
|
|
5690
|
-
function
|
|
5690
|
+
function ou(e) {
|
|
5691
5691
|
return Array.from(e.getClientRects());
|
|
5692
5692
|
}
|
|
5693
|
-
function
|
|
5693
|
+
function au(e) {
|
|
5694
5694
|
const t = ge(e), n = zt(e), r = e.ownerDocument.body, o = ae(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ae(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5695
5695
|
let s = -n.scrollLeft + Ln(e);
|
|
5696
5696
|
const i = -n.scrollTop;
|
|
@@ -5701,7 +5701,7 @@ function ou(e) {
|
|
|
5701
5701
|
y: i
|
|
5702
5702
|
};
|
|
5703
5703
|
}
|
|
5704
|
-
function
|
|
5704
|
+
function su(e, t) {
|
|
5705
5705
|
const n = se(e), r = ge(e), o = n.visualViewport;
|
|
5706
5706
|
let a = r.clientWidth, s = r.clientHeight, i = 0, u = 0;
|
|
5707
5707
|
if (o) {
|
|
@@ -5716,7 +5716,7 @@ function au(e, t) {
|
|
|
5716
5716
|
y: u
|
|
5717
5717
|
};
|
|
5718
5718
|
}
|
|
5719
|
-
function
|
|
5719
|
+
function iu(e, t) {
|
|
5720
5720
|
const n = Oe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = he(e) ? Ve(e) : pe(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, u = o * a.x, f = r * a.y;
|
|
5721
5721
|
return {
|
|
5722
5722
|
width: s,
|
|
@@ -5728,11 +5728,11 @@ function su(e, t) {
|
|
|
5728
5728
|
function Nr(e, t, n) {
|
|
5729
5729
|
let r;
|
|
5730
5730
|
if (t === "viewport")
|
|
5731
|
-
r =
|
|
5731
|
+
r = su(e, n);
|
|
5732
5732
|
else if (t === "document")
|
|
5733
|
-
r =
|
|
5733
|
+
r = au(ge(e));
|
|
5734
5734
|
else if (ce(t))
|
|
5735
|
-
r =
|
|
5735
|
+
r = iu(t, n);
|
|
5736
5736
|
else {
|
|
5737
5737
|
const o = Ko(e);
|
|
5738
5738
|
r = {
|
|
@@ -5748,7 +5748,7 @@ function Zo(e, t) {
|
|
|
5748
5748
|
const n = Ae(e);
|
|
5749
5749
|
return n === t || !ce(n) || Be(n) ? !1 : le(n).position === "fixed" || Zo(n, t);
|
|
5750
5750
|
}
|
|
5751
|
-
function
|
|
5751
|
+
function cu(e, t) {
|
|
5752
5752
|
const n = t.get(e);
|
|
5753
5753
|
if (n)
|
|
5754
5754
|
return n;
|
|
@@ -5761,14 +5761,14 @@ function iu(e, t) {
|
|
|
5761
5761
|
}
|
|
5762
5762
|
return t.set(e, r), r;
|
|
5763
5763
|
}
|
|
5764
|
-
function
|
|
5764
|
+
function lu(e) {
|
|
5765
5765
|
let {
|
|
5766
5766
|
element: t,
|
|
5767
5767
|
boundary: n,
|
|
5768
5768
|
rootBoundary: r,
|
|
5769
5769
|
strategy: o
|
|
5770
5770
|
} = e;
|
|
5771
|
-
const s = [...n === "clippingAncestors" ? $t(t) ? [] :
|
|
5771
|
+
const s = [...n === "clippingAncestors" ? $t(t) ? [] : cu(t, this._c) : [].concat(n), r], i = s[0], u = s.reduce((f, d) => {
|
|
5772
5772
|
const p = Nr(t, d, o);
|
|
5773
5773
|
return f.top = ae(p.top, f.top), f.right = ke(p.right, f.right), f.bottom = ke(p.bottom, f.bottom), f.left = ae(p.left, f.left), f;
|
|
5774
5774
|
}, Nr(t, i, o));
|
|
@@ -5779,7 +5779,7 @@ function cu(e) {
|
|
|
5779
5779
|
y: u.top
|
|
5780
5780
|
};
|
|
5781
5781
|
}
|
|
5782
|
-
function
|
|
5782
|
+
function uu(e) {
|
|
5783
5783
|
const {
|
|
5784
5784
|
width: t,
|
|
5785
5785
|
height: n
|
|
@@ -5789,7 +5789,7 @@ function lu(e) {
|
|
|
5789
5789
|
height: n
|
|
5790
5790
|
};
|
|
5791
5791
|
}
|
|
5792
|
-
function
|
|
5792
|
+
function du(e, t, n) {
|
|
5793
5793
|
const r = he(t), o = ge(t), a = n === "fixed", s = Oe(e, !0, a, t);
|
|
5794
5794
|
let i = {
|
|
5795
5795
|
scrollLeft: 0,
|
|
@@ -5838,14 +5838,14 @@ function Xo(e, t) {
|
|
|
5838
5838
|
return n;
|
|
5839
5839
|
}
|
|
5840
5840
|
let r = Pr(e, t);
|
|
5841
|
-
for (; r &&
|
|
5841
|
+
for (; r && Ql(r) && rn(r); )
|
|
5842
5842
|
r = Pr(r, t);
|
|
5843
|
-
return r && Be(r) && rn(r) && !jn(r) ? n : r ||
|
|
5843
|
+
return r && Be(r) && rn(r) && !jn(r) ? n : r || eu(e) || n;
|
|
5844
5844
|
}
|
|
5845
|
-
const
|
|
5845
|
+
const fu = async function(e) {
|
|
5846
5846
|
const t = this.getOffsetParent || Xo, n = this.getDimensions, r = await n(e.floating);
|
|
5847
5847
|
return {
|
|
5848
|
-
reference:
|
|
5848
|
+
reference: du(e.reference, await t(e.floating), e.strategy),
|
|
5849
5849
|
floating: {
|
|
5850
5850
|
x: 0,
|
|
5851
5851
|
y: 0,
|
|
@@ -5854,25 +5854,25 @@ const du = async function(e) {
|
|
|
5854
5854
|
}
|
|
5855
5855
|
};
|
|
5856
5856
|
};
|
|
5857
|
-
function
|
|
5857
|
+
function pu(e) {
|
|
5858
5858
|
return le(e).direction === "rtl";
|
|
5859
5859
|
}
|
|
5860
|
-
const
|
|
5861
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5860
|
+
const mu = {
|
|
5861
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ru,
|
|
5862
5862
|
getDocumentElement: ge,
|
|
5863
|
-
getClippingRect:
|
|
5863
|
+
getClippingRect: lu,
|
|
5864
5864
|
getOffsetParent: Xo,
|
|
5865
|
-
getElementRects:
|
|
5866
|
-
getClientRects:
|
|
5867
|
-
getDimensions:
|
|
5865
|
+
getElementRects: fu,
|
|
5866
|
+
getClientRects: ou,
|
|
5867
|
+
getDimensions: uu,
|
|
5868
5868
|
getScale: Ve,
|
|
5869
5869
|
isElement: ce,
|
|
5870
|
-
isRTL:
|
|
5870
|
+
isRTL: pu
|
|
5871
5871
|
};
|
|
5872
5872
|
function qo(e, t) {
|
|
5873
5873
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5874
5874
|
}
|
|
5875
|
-
function
|
|
5875
|
+
function hu(e, t) {
|
|
5876
5876
|
let n = null, r;
|
|
5877
5877
|
const o = ge(e);
|
|
5878
5878
|
function a() {
|
|
@@ -5918,7 +5918,7 @@ function mu(e, t) {
|
|
|
5918
5918
|
}
|
|
5919
5919
|
return s(!0), a;
|
|
5920
5920
|
}
|
|
5921
|
-
function
|
|
5921
|
+
function gu(e, t, n, r) {
|
|
5922
5922
|
r === void 0 && (r = {});
|
|
5923
5923
|
const {
|
|
5924
5924
|
ancestorScroll: o = !0,
|
|
@@ -5932,7 +5932,7 @@ function hu(e, t, n, r) {
|
|
|
5932
5932
|
passive: !0
|
|
5933
5933
|
}), a && x.addEventListener("resize", n);
|
|
5934
5934
|
});
|
|
5935
|
-
const p = f && i ?
|
|
5935
|
+
const p = f && i ? hu(f, n) : null;
|
|
5936
5936
|
let m = -1, g = null;
|
|
5937
5937
|
s && (g = new ResizeObserver((x) => {
|
|
5938
5938
|
let [y] = x;
|
|
@@ -5954,21 +5954,21 @@ function hu(e, t, n, r) {
|
|
|
5954
5954
|
}), p == null || p(), (x = g) == null || x.disconnect(), g = null, u && cancelAnimationFrame(b);
|
|
5955
5955
|
};
|
|
5956
5956
|
}
|
|
5957
|
-
const
|
|
5957
|
+
const vu = Zl, bu = Xl, xu = Ul, wu = Jl, yu = Kl, _r = Gl, Cu = ql, Eu = (e, t, n) => {
|
|
5958
5958
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5959
|
-
platform:
|
|
5959
|
+
platform: mu,
|
|
5960
5960
|
...n
|
|
5961
5961
|
}, a = {
|
|
5962
5962
|
...o.platform,
|
|
5963
5963
|
_c: r
|
|
5964
5964
|
};
|
|
5965
|
-
return
|
|
5965
|
+
return Bl(e, t, {
|
|
5966
5966
|
...o,
|
|
5967
5967
|
platform: a
|
|
5968
5968
|
});
|
|
5969
5969
|
};
|
|
5970
|
-
var
|
|
5971
|
-
}, Mt =
|
|
5970
|
+
var Su = typeof document < "u", Ru = function() {
|
|
5971
|
+
}, Mt = Su ? Ns : Ru;
|
|
5972
5972
|
function _t(e, t) {
|
|
5973
5973
|
if (e === t)
|
|
5974
5974
|
return !0;
|
|
@@ -6012,7 +6012,7 @@ function on(e) {
|
|
|
6012
6012
|
t.current = e;
|
|
6013
6013
|
}), t;
|
|
6014
6014
|
}
|
|
6015
|
-
function
|
|
6015
|
+
function Mu(e) {
|
|
6016
6016
|
e === void 0 && (e = {});
|
|
6017
6017
|
const {
|
|
6018
6018
|
placement: t = "bottom",
|
|
@@ -6047,7 +6047,7 @@ function Ru(e) {
|
|
|
6047
6047
|
strategy: n,
|
|
6048
6048
|
middleware: m
|
|
6049
6049
|
};
|
|
6050
|
-
U.current && (S.platform = U.current),
|
|
6050
|
+
U.current && (S.platform = U.current), Eu(T.current, k.current, S).then((_) => {
|
|
6051
6051
|
const w = {
|
|
6052
6052
|
..._,
|
|
6053
6053
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -6114,7 +6114,7 @@ function Ru(e) {
|
|
|
6114
6114
|
floatingStyles: V
|
|
6115
6115
|
}), [d, G, Y, I, V]);
|
|
6116
6116
|
}
|
|
6117
|
-
const
|
|
6117
|
+
const ku = (e) => {
|
|
6118
6118
|
function t(n) {
|
|
6119
6119
|
return {}.hasOwnProperty.call(n, "current");
|
|
6120
6120
|
}
|
|
@@ -6135,17 +6135,14 @@ const Mu = (e) => {
|
|
|
6135
6135
|
}).fn(n) : {};
|
|
6136
6136
|
}
|
|
6137
6137
|
};
|
|
6138
|
-
},
|
|
6139
|
-
...gu(e),
|
|
6140
|
-
options: [e, t]
|
|
6141
|
-
}), Au = (e, t) => ({
|
|
6138
|
+
}, Au = (e, t) => ({
|
|
6142
6139
|
...vu(e),
|
|
6143
6140
|
options: [e, t]
|
|
6144
6141
|
}), Nu = (e, t) => ({
|
|
6145
|
-
...
|
|
6142
|
+
...bu(e),
|
|
6146
6143
|
options: [e, t]
|
|
6147
6144
|
}), Pu = (e, t) => ({
|
|
6148
|
-
...
|
|
6145
|
+
...Cu(e),
|
|
6149
6146
|
options: [e, t]
|
|
6150
6147
|
}), _u = (e, t) => ({
|
|
6151
6148
|
...xu(e),
|
|
@@ -6154,10 +6151,13 @@ const Mu = (e) => {
|
|
|
6154
6151
|
...wu(e),
|
|
6155
6152
|
options: [e, t]
|
|
6156
6153
|
}), Ou = (e, t) => ({
|
|
6157
|
-
...
|
|
6154
|
+
...yu(e),
|
|
6155
|
+
options: [e, t]
|
|
6156
|
+
}), ju = (e, t) => ({
|
|
6157
|
+
...ku(e),
|
|
6158
6158
|
options: [e, t]
|
|
6159
6159
|
});
|
|
6160
|
-
var
|
|
6160
|
+
var Iu = "Arrow", Qo = l.forwardRef((e, t) => {
|
|
6161
6161
|
const { children: n, width: r = 10, height: o = 5, ...a } = e;
|
|
6162
6162
|
return /* @__PURE__ */ c.jsx(
|
|
6163
6163
|
q.svg,
|
|
@@ -6172,9 +6172,9 @@ var ju = "Arrow", Qo = l.forwardRef((e, t) => {
|
|
|
6172
6172
|
}
|
|
6173
6173
|
);
|
|
6174
6174
|
});
|
|
6175
|
-
Qo.displayName =
|
|
6176
|
-
var
|
|
6177
|
-
function
|
|
6175
|
+
Qo.displayName = Iu;
|
|
6176
|
+
var Du = Qo;
|
|
6177
|
+
function Lu(e) {
|
|
6178
6178
|
const [t, n] = l.useState(void 0);
|
|
6179
6179
|
return Me(() => {
|
|
6180
6180
|
if (e) {
|
|
@@ -6196,9 +6196,9 @@ function Du(e) {
|
|
|
6196
6196
|
n(void 0);
|
|
6197
6197
|
}, [e]), t;
|
|
6198
6198
|
}
|
|
6199
|
-
var Fn = "Popper", [ea, Ht] = je(Fn), [
|
|
6199
|
+
var Fn = "Popper", [ea, Ht] = je(Fn), [Fu, ta] = ea(Fn), na = (e) => {
|
|
6200
6200
|
const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
|
|
6201
|
-
return /* @__PURE__ */ c.jsx(
|
|
6201
|
+
return /* @__PURE__ */ c.jsx(Fu, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
6202
6202
|
};
|
|
6203
6203
|
na.displayName = Fn;
|
|
6204
6204
|
var ra = "PopperAnchor", oa = l.forwardRef(
|
|
@@ -6210,7 +6210,7 @@ var ra = "PopperAnchor", oa = l.forwardRef(
|
|
|
6210
6210
|
}
|
|
6211
6211
|
);
|
|
6212
6212
|
oa.displayName = ra;
|
|
6213
|
-
var $n = "PopperContent", [
|
|
6213
|
+
var $n = "PopperContent", [$u, zu] = ea($n), aa = l.forwardRef(
|
|
6214
6214
|
(e, t) => {
|
|
6215
6215
|
var W, Z, X, oe, Ce, Pe;
|
|
6216
6216
|
const {
|
|
@@ -6228,40 +6228,40 @@ var $n = "PopperContent", [Fu, $u] = ea($n), aa = l.forwardRef(
|
|
|
6228
6228
|
updatePositionStrategy: g = "optimized",
|
|
6229
6229
|
onPlaced: b,
|
|
6230
6230
|
...h
|
|
6231
|
-
} = e, v = ta($n, n), [x, y] = l.useState(null), C = ee(t, (qe) => y(qe)), [E, M] = l.useState(null), T =
|
|
6231
|
+
} = e, v = ta($n, n), [x, y] = l.useState(null), C = ee(t, (qe) => y(qe)), [E, M] = l.useState(null), T = Lu(E), k = (T == null ? void 0 : T.width) ?? 0, R = (T == null ? void 0 : T.height) ?? 0, D = r + (a !== "center" ? "-" + a : ""), z = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, U = Array.isArray(f) ? f : [f], B = U.length > 0, G = {
|
|
6232
6232
|
padding: z,
|
|
6233
|
-
boundary: U.filter(
|
|
6233
|
+
boundary: U.filter(Vu),
|
|
6234
6234
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
6235
6235
|
altBoundary: B
|
|
6236
|
-
}, { refs: H, floatingStyles: Y, placement: I, isPositioned: V, middlewareData: S } =
|
|
6236
|
+
}, { refs: H, floatingStyles: Y, placement: I, isPositioned: V, middlewareData: S } = Mu({
|
|
6237
6237
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
6238
6238
|
strategy: "fixed",
|
|
6239
6239
|
placement: D,
|
|
6240
|
-
whileElementsMounted: (...qe) =>
|
|
6240
|
+
whileElementsMounted: (...qe) => gu(...qe, {
|
|
6241
6241
|
animationFrame: g === "always"
|
|
6242
6242
|
}),
|
|
6243
6243
|
elements: {
|
|
6244
6244
|
reference: v.anchor
|
|
6245
6245
|
},
|
|
6246
6246
|
middleware: [
|
|
6247
|
-
|
|
6248
|
-
u &&
|
|
6247
|
+
Au({ mainAxis: o + R, alignmentAxis: s }),
|
|
6248
|
+
u && Nu({
|
|
6249
6249
|
mainAxis: !0,
|
|
6250
6250
|
crossAxis: !1,
|
|
6251
|
-
limiter: p === "partial" ?
|
|
6251
|
+
limiter: p === "partial" ? Pu() : void 0,
|
|
6252
6252
|
...G
|
|
6253
6253
|
}),
|
|
6254
|
-
u &&
|
|
6255
|
-
|
|
6254
|
+
u && _u({ ...G }),
|
|
6255
|
+
Tu({
|
|
6256
6256
|
...G,
|
|
6257
|
-
apply: ({ elements: qe, rects: qn, availableWidth:
|
|
6258
|
-
const { width:
|
|
6259
|
-
pt.setProperty("--radix-popper-available-width", `${
|
|
6257
|
+
apply: ({ elements: qe, rects: qn, availableWidth: Rs, availableHeight: Ms }) => {
|
|
6258
|
+
const { width: ks, height: As } = qn.reference, pt = qe.floating.style;
|
|
6259
|
+
pt.setProperty("--radix-popper-available-width", `${Rs}px`), pt.setProperty("--radix-popper-available-height", `${Ms}px`), pt.setProperty("--radix-popper-anchor-width", `${ks}px`), pt.setProperty("--radix-popper-anchor-height", `${As}px`);
|
|
6260
6260
|
}
|
|
6261
6261
|
}),
|
|
6262
|
-
E &&
|
|
6263
|
-
|
|
6264
|
-
m &&
|
|
6262
|
+
E && ju({ element: E, padding: i }),
|
|
6263
|
+
Wu({ arrowWidth: k, arrowHeight: R }),
|
|
6264
|
+
m && Ou({ strategy: "referenceHidden", ...G })
|
|
6265
6265
|
]
|
|
6266
6266
|
}), [_, w] = ca(I), O = me(b);
|
|
6267
6267
|
Me(() => {
|
|
@@ -6295,7 +6295,7 @@ var $n = "PopperContent", [Fu, $u] = ea($n), aa = l.forwardRef(
|
|
|
6295
6295
|
},
|
|
6296
6296
|
dir: e.dir,
|
|
6297
6297
|
children: /* @__PURE__ */ c.jsx(
|
|
6298
|
-
|
|
6298
|
+
$u,
|
|
6299
6299
|
{
|
|
6300
6300
|
scope: n,
|
|
6301
6301
|
placedSide: _,
|
|
@@ -6325,13 +6325,13 @@ var $n = "PopperContent", [Fu, $u] = ea($n), aa = l.forwardRef(
|
|
|
6325
6325
|
}
|
|
6326
6326
|
);
|
|
6327
6327
|
aa.displayName = $n;
|
|
6328
|
-
var sa = "PopperArrow",
|
|
6328
|
+
var sa = "PopperArrow", Hu = {
|
|
6329
6329
|
top: "bottom",
|
|
6330
6330
|
right: "left",
|
|
6331
6331
|
bottom: "top",
|
|
6332
6332
|
left: "right"
|
|
6333
6333
|
}, ia = l.forwardRef(function(t, n) {
|
|
6334
|
-
const { __scopePopper: r, ...o } = t, a =
|
|
6334
|
+
const { __scopePopper: r, ...o } = t, a = zu(sa, r), s = Hu[a.placedSide];
|
|
6335
6335
|
return (
|
|
6336
6336
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
6337
6337
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -6360,7 +6360,7 @@ var sa = "PopperArrow", zu = {
|
|
|
6360
6360
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
6361
6361
|
},
|
|
6362
6362
|
children: /* @__PURE__ */ c.jsx(
|
|
6363
|
-
|
|
6363
|
+
Du,
|
|
6364
6364
|
{
|
|
6365
6365
|
...o,
|
|
6366
6366
|
ref: n,
|
|
@@ -6376,10 +6376,10 @@ var sa = "PopperArrow", zu = {
|
|
|
6376
6376
|
);
|
|
6377
6377
|
});
|
|
6378
6378
|
ia.displayName = sa;
|
|
6379
|
-
function
|
|
6379
|
+
function Vu(e) {
|
|
6380
6380
|
return e !== null;
|
|
6381
6381
|
}
|
|
6382
|
-
var
|
|
6382
|
+
var Wu = (e) => ({
|
|
6383
6383
|
name: "transformOrigin",
|
|
6384
6384
|
options: e,
|
|
6385
6385
|
fn(t) {
|
|
@@ -6393,7 +6393,7 @@ function ca(e) {
|
|
|
6393
6393
|
const [t, n = "center"] = e.split("-");
|
|
6394
6394
|
return [t, n];
|
|
6395
6395
|
}
|
|
6396
|
-
var zn = na, la = oa, ua = aa, da = ia,
|
|
6396
|
+
var zn = na, la = oa, ua = aa, da = ia, Bu = Object.freeze({
|
|
6397
6397
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
6398
6398
|
position: "absolute",
|
|
6399
6399
|
border: 0,
|
|
@@ -6405,23 +6405,23 @@ var zn = na, la = oa, ua = aa, da = ia, Wu = Object.freeze({
|
|
|
6405
6405
|
clip: "rect(0, 0, 0, 0)",
|
|
6406
6406
|
whiteSpace: "nowrap",
|
|
6407
6407
|
wordWrap: "normal"
|
|
6408
|
-
}),
|
|
6408
|
+
}), Gu = "VisuallyHidden", fa = l.forwardRef(
|
|
6409
6409
|
(e, t) => /* @__PURE__ */ c.jsx(
|
|
6410
6410
|
q.span,
|
|
6411
6411
|
{
|
|
6412
6412
|
...e,
|
|
6413
6413
|
ref: t,
|
|
6414
|
-
style: { ...
|
|
6414
|
+
style: { ...Bu, ...e.style }
|
|
6415
6415
|
}
|
|
6416
6416
|
)
|
|
6417
6417
|
);
|
|
6418
|
-
fa.displayName =
|
|
6419
|
-
var
|
|
6418
|
+
fa.displayName = Gu;
|
|
6419
|
+
var Uu = fa, [Vt, Pp] = je("Tooltip", [
|
|
6420
6420
|
Ht
|
|
6421
|
-
]), Wt = Ht(), pa = "TooltipProvider",
|
|
6421
|
+
]), Wt = Ht(), pa = "TooltipProvider", Ku = 700, gn = "tooltip.open", [Yu, Hn] = Vt(pa), ma = (e) => {
|
|
6422
6422
|
const {
|
|
6423
6423
|
__scopeTooltip: t,
|
|
6424
|
-
delayDuration: n =
|
|
6424
|
+
delayDuration: n = Ku,
|
|
6425
6425
|
skipDelayDuration: r = 300,
|
|
6426
6426
|
disableHoverableContent: o = !1,
|
|
6427
6427
|
children: a
|
|
@@ -6430,7 +6430,7 @@ var Gu = fa, [Vt, Pp] = je("Tooltip", [
|
|
|
6430
6430
|
const f = u.current;
|
|
6431
6431
|
return () => window.clearTimeout(f);
|
|
6432
6432
|
}, []), /* @__PURE__ */ c.jsx(
|
|
6433
|
-
|
|
6433
|
+
Yu,
|
|
6434
6434
|
{
|
|
6435
6435
|
scope: t,
|
|
6436
6436
|
isOpenDelayedRef: s,
|
|
@@ -6454,7 +6454,7 @@ var Gu = fa, [Vt, Pp] = je("Tooltip", [
|
|
|
6454
6454
|
);
|
|
6455
6455
|
};
|
|
6456
6456
|
ma.displayName = pa;
|
|
6457
|
-
var ot = "Tooltip", [
|
|
6457
|
+
var ot = "Tooltip", [Zu, Bt] = Vt(ot), ha = (e) => {
|
|
6458
6458
|
const {
|
|
6459
6459
|
__scopeTooltip: t,
|
|
6460
6460
|
children: n,
|
|
@@ -6482,7 +6482,7 @@ var ot = "Tooltip", [Yu, Bt] = Vt(ot), ha = (e) => {
|
|
|
6482
6482
|
return l.useEffect(() => () => {
|
|
6483
6483
|
g.current && (window.clearTimeout(g.current), g.current = 0);
|
|
6484
6484
|
}, []), /* @__PURE__ */ c.jsx(zn, { ...f, children: /* @__PURE__ */ c.jsx(
|
|
6485
|
-
|
|
6485
|
+
Zu,
|
|
6486
6486
|
{
|
|
6487
6487
|
scope: t,
|
|
6488
6488
|
contentId: m,
|
|
@@ -6533,19 +6533,19 @@ var vn = "TooltipTrigger", ga = l.forwardRef(
|
|
|
6533
6533
|
}
|
|
6534
6534
|
);
|
|
6535
6535
|
ga.displayName = vn;
|
|
6536
|
-
var
|
|
6536
|
+
var Xu = "TooltipPortal", [_p, qu] = Vt(Xu, {
|
|
6537
6537
|
forceMount: void 0
|
|
6538
6538
|
}), Ge = "TooltipContent", va = l.forwardRef(
|
|
6539
6539
|
(e, t) => {
|
|
6540
|
-
const n =
|
|
6541
|
-
return /* @__PURE__ */ c.jsx(ye, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ c.jsx(ba, { side: o, ...a, ref: t }) : /* @__PURE__ */ c.jsx(
|
|
6540
|
+
const n = qu(Ge, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, s = Bt(Ge, e.__scopeTooltip);
|
|
6541
|
+
return /* @__PURE__ */ c.jsx(ye, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ c.jsx(ba, { side: o, ...a, ref: t }) : /* @__PURE__ */ c.jsx(Ju, { side: o, ...a, ref: t }) });
|
|
6542
6542
|
}
|
|
6543
|
-
),
|
|
6543
|
+
), Ju = l.forwardRef((e, t) => {
|
|
6544
6544
|
const n = Bt(Ge, e.__scopeTooltip), r = Hn(Ge, e.__scopeTooltip), o = l.useRef(null), a = ee(t, o), [s, i] = l.useState(null), { trigger: u, onClose: f } = n, d = o.current, { onPointerInTransitChange: p } = r, m = l.useCallback(() => {
|
|
6545
6545
|
i(null), p(!1);
|
|
6546
6546
|
}, [p]), g = l.useCallback(
|
|
6547
6547
|
(b, h) => {
|
|
6548
|
-
const v = b.currentTarget, x = { x: b.clientX, y: b.clientY }, y =
|
|
6548
|
+
const v = b.currentTarget, x = { x: b.clientX, y: b.clientY }, y = rd(x, v.getBoundingClientRect()), C = od(x, y), E = ad(h.getBoundingClientRect()), M = id([...C, ...E]);
|
|
6549
6549
|
i(M), p(!0);
|
|
6550
6550
|
},
|
|
6551
6551
|
[p]
|
|
@@ -6560,13 +6560,13 @@ var Zu = "TooltipPortal", [_p, Xu] = Vt(Zu, {
|
|
|
6560
6560
|
}, [u, d, g, m]), l.useEffect(() => {
|
|
6561
6561
|
if (s) {
|
|
6562
6562
|
const b = (h) => {
|
|
6563
|
-
const v = h.target, x = { x: h.clientX, y: h.clientY }, y = (u == null ? void 0 : u.contains(v)) || (d == null ? void 0 : d.contains(v)), C = !
|
|
6563
|
+
const v = h.target, x = { x: h.clientX, y: h.clientY }, y = (u == null ? void 0 : u.contains(v)) || (d == null ? void 0 : d.contains(v)), C = !sd(x, s);
|
|
6564
6564
|
y ? m() : C && (m(), f());
|
|
6565
6565
|
};
|
|
6566
6566
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
6567
6567
|
}
|
|
6568
6568
|
}, [u, d, s, f, m]), /* @__PURE__ */ c.jsx(ba, { ...e, ref: a });
|
|
6569
|
-
}), [
|
|
6569
|
+
}), [Qu, ed] = Vt(ot, { isInside: !1 }), td = /* @__PURE__ */ Hs("TooltipContent"), ba = l.forwardRef(
|
|
6570
6570
|
(e, t) => {
|
|
6571
6571
|
const {
|
|
6572
6572
|
__scopeTooltip: n,
|
|
@@ -6609,8 +6609,8 @@ var Zu = "TooltipPortal", [_p, Xu] = Vt(Zu, {
|
|
|
6609
6609
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6610
6610
|
},
|
|
6611
6611
|
children: [
|
|
6612
|
-
/* @__PURE__ */ c.jsx(
|
|
6613
|
-
/* @__PURE__ */ c.jsx(
|
|
6612
|
+
/* @__PURE__ */ c.jsx(td, { children: r }),
|
|
6613
|
+
/* @__PURE__ */ c.jsx(Qu, { scope: n, isInside: !0, children: /* @__PURE__ */ c.jsx(Uu, { id: u.contentId, role: "tooltip", children: o || r }) })
|
|
6614
6614
|
]
|
|
6615
6615
|
}
|
|
6616
6616
|
)
|
|
@@ -6619,17 +6619,17 @@ var Zu = "TooltipPortal", [_p, Xu] = Vt(Zu, {
|
|
|
6619
6619
|
}
|
|
6620
6620
|
);
|
|
6621
6621
|
va.displayName = Ge;
|
|
6622
|
-
var xa = "TooltipArrow",
|
|
6622
|
+
var xa = "TooltipArrow", nd = l.forwardRef(
|
|
6623
6623
|
(e, t) => {
|
|
6624
6624
|
const { __scopeTooltip: n, ...r } = e, o = Wt(n);
|
|
6625
|
-
return
|
|
6625
|
+
return ed(
|
|
6626
6626
|
xa,
|
|
6627
6627
|
n
|
|
6628
6628
|
).isInside ? null : /* @__PURE__ */ c.jsx(da, { ...o, ...r, ref: t });
|
|
6629
6629
|
}
|
|
6630
6630
|
);
|
|
6631
|
-
|
|
6632
|
-
function
|
|
6631
|
+
nd.displayName = xa;
|
|
6632
|
+
function rd(e, t) {
|
|
6633
6633
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
6634
6634
|
switch (Math.min(n, r, o, a)) {
|
|
6635
6635
|
case a:
|
|
@@ -6644,7 +6644,7 @@ function nd(e, t) {
|
|
|
6644
6644
|
throw new Error("unreachable");
|
|
6645
6645
|
}
|
|
6646
6646
|
}
|
|
6647
|
-
function
|
|
6647
|
+
function od(e, t, n = 5) {
|
|
6648
6648
|
const r = [];
|
|
6649
6649
|
switch (t) {
|
|
6650
6650
|
case "top":
|
|
@@ -6674,7 +6674,7 @@ function rd(e, t, n = 5) {
|
|
|
6674
6674
|
}
|
|
6675
6675
|
return r;
|
|
6676
6676
|
}
|
|
6677
|
-
function
|
|
6677
|
+
function ad(e) {
|
|
6678
6678
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
6679
6679
|
return [
|
|
6680
6680
|
{ x: o, y: t },
|
|
@@ -6683,7 +6683,7 @@ function od(e) {
|
|
|
6683
6683
|
{ x: o, y: r }
|
|
6684
6684
|
];
|
|
6685
6685
|
}
|
|
6686
|
-
function
|
|
6686
|
+
function sd(e, t) {
|
|
6687
6687
|
const { x: n, y: r } = e;
|
|
6688
6688
|
let o = !1;
|
|
6689
6689
|
for (let a = 0, s = t.length - 1; a < t.length; s = a++) {
|
|
@@ -6692,11 +6692,11 @@ function ad(e, t) {
|
|
|
6692
6692
|
}
|
|
6693
6693
|
return o;
|
|
6694
6694
|
}
|
|
6695
|
-
function
|
|
6695
|
+
function id(e) {
|
|
6696
6696
|
const t = e.slice();
|
|
6697
|
-
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0),
|
|
6697
|
+
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), cd(t);
|
|
6698
6698
|
}
|
|
6699
|
-
function
|
|
6699
|
+
function cd(e) {
|
|
6700
6700
|
if (e.length <= 1) return e.slice();
|
|
6701
6701
|
const t = [];
|
|
6702
6702
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -6721,8 +6721,8 @@ function id(e) {
|
|
|
6721
6721
|
}
|
|
6722
6722
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
6723
6723
|
}
|
|
6724
|
-
var
|
|
6725
|
-
const ya =
|
|
6724
|
+
var ld = ma, ud = ha, dd = ga, wa = va;
|
|
6725
|
+
const ya = ld, Ca = ud, Ea = dd, Vn = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.jsx(
|
|
6726
6726
|
wa,
|
|
6727
6727
|
{
|
|
6728
6728
|
ref: r,
|
|
@@ -6735,14 +6735,14 @@ const ya = cd, Ca = ld, Ea = ud, Vn = l.forwardRef(({ className: e, sideOffset:
|
|
|
6735
6735
|
}
|
|
6736
6736
|
));
|
|
6737
6737
|
Vn.displayName = wa.displayName;
|
|
6738
|
-
const
|
|
6738
|
+
const fd = "sidebar_state", pd = 60 * 60 * 24 * 7, md = "16rem", hd = "18rem", gd = "3rem", vd = "b", Sa = l.createContext(null);
|
|
6739
6739
|
function Gt() {
|
|
6740
6740
|
const e = l.useContext(Sa);
|
|
6741
6741
|
if (!e)
|
|
6742
6742
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
6743
6743
|
return e;
|
|
6744
6744
|
}
|
|
6745
|
-
function
|
|
6745
|
+
function bd({
|
|
6746
6746
|
defaultOpen: e = !0,
|
|
6747
6747
|
open: t,
|
|
6748
6748
|
onOpenChange: n,
|
|
@@ -6751,16 +6751,16 @@ function vd({
|
|
|
6751
6751
|
children: a,
|
|
6752
6752
|
...s
|
|
6753
6753
|
}) {
|
|
6754
|
-
const i =
|
|
6754
|
+
const i = ic(), [u, f] = l.useState(!1), [d, p] = l.useState(e), m = t ?? d, g = l.useCallback(
|
|
6755
6755
|
(x) => {
|
|
6756
6756
|
const y = typeof x == "function" ? x(m) : x;
|
|
6757
|
-
n ? n(y) : p(y), document.cookie = `${
|
|
6757
|
+
n ? n(y) : p(y), document.cookie = `${fd}=${y}; path=/; max-age=${pd}`;
|
|
6758
6758
|
},
|
|
6759
6759
|
[n, m]
|
|
6760
6760
|
), b = l.useCallback(() => i ? f((x) => !x) : g((x) => !x), [i, g, f]);
|
|
6761
6761
|
l.useEffect(() => {
|
|
6762
6762
|
const x = (y) => {
|
|
6763
|
-
y.key ===
|
|
6763
|
+
y.key === vd && (y.metaKey || y.ctrlKey) && (y.preventDefault(), b());
|
|
6764
6764
|
};
|
|
6765
6765
|
return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
|
|
6766
6766
|
}, [b]);
|
|
@@ -6781,8 +6781,8 @@ function vd({
|
|
|
6781
6781
|
{
|
|
6782
6782
|
"data-slot": "sidebar-wrapper",
|
|
6783
6783
|
style: {
|
|
6784
|
-
"--sidebar-width":
|
|
6785
|
-
"--sidebar-width-icon":
|
|
6784
|
+
"--sidebar-width": md,
|
|
6785
|
+
"--sidebar-width-icon": gd,
|
|
6786
6786
|
...o
|
|
6787
6787
|
},
|
|
6788
6788
|
className: A(
|
|
@@ -6794,7 +6794,7 @@ function vd({
|
|
|
6794
6794
|
}
|
|
6795
6795
|
) }) });
|
|
6796
6796
|
}
|
|
6797
|
-
function
|
|
6797
|
+
function xd({
|
|
6798
6798
|
side: e = "left",
|
|
6799
6799
|
variant: t = "sidebar",
|
|
6800
6800
|
collapsible: n = "offcanvas",
|
|
@@ -6814,7 +6814,7 @@ function bd({
|
|
|
6814
6814
|
...a,
|
|
6815
6815
|
children: o
|
|
6816
6816
|
}
|
|
6817
|
-
) : s ? /* @__PURE__ */ c.jsx(
|
|
6817
|
+
) : s ? /* @__PURE__ */ c.jsx(Tl, { open: u, onOpenChange: f, ...a, children: /* @__PURE__ */ c.jsxs(
|
|
6818
6818
|
$o,
|
|
6819
6819
|
{
|
|
6820
6820
|
"data-sidebar": "sidebar",
|
|
@@ -6822,7 +6822,7 @@ function bd({
|
|
|
6822
6822
|
"data-mobile": "true",
|
|
6823
6823
|
className: "bg-white text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
6824
6824
|
style: {
|
|
6825
|
-
"--sidebar-width":
|
|
6825
|
+
"--sidebar-width": hd
|
|
6826
6826
|
},
|
|
6827
6827
|
side: e,
|
|
6828
6828
|
children: [
|
|
@@ -6882,7 +6882,7 @@ function bd({
|
|
|
6882
6882
|
}
|
|
6883
6883
|
);
|
|
6884
6884
|
}
|
|
6885
|
-
function
|
|
6885
|
+
function wd({
|
|
6886
6886
|
className: e,
|
|
6887
6887
|
onClick: t,
|
|
6888
6888
|
...n
|
|
@@ -6901,13 +6901,13 @@ function xd({
|
|
|
6901
6901
|
},
|
|
6902
6902
|
...n,
|
|
6903
6903
|
children: [
|
|
6904
|
-
/* @__PURE__ */ c.jsx(
|
|
6904
|
+
/* @__PURE__ */ c.jsx(rc, {}),
|
|
6905
6905
|
/* @__PURE__ */ c.jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
6906
6906
|
]
|
|
6907
6907
|
}
|
|
6908
6908
|
);
|
|
6909
6909
|
}
|
|
6910
|
-
function
|
|
6910
|
+
function yd({ className: e, ...t }) {
|
|
6911
6911
|
const { toggleSidebar: n } = Gt();
|
|
6912
6912
|
return /* @__PURE__ */ c.jsx(
|
|
6913
6913
|
"button",
|
|
@@ -6931,7 +6931,7 @@ function wd({ className: e, ...t }) {
|
|
|
6931
6931
|
}
|
|
6932
6932
|
);
|
|
6933
6933
|
}
|
|
6934
|
-
function
|
|
6934
|
+
function Cd({ className: e, ...t }) {
|
|
6935
6935
|
return /* @__PURE__ */ c.jsx(
|
|
6936
6936
|
"main",
|
|
6937
6937
|
{
|
|
@@ -6959,7 +6959,7 @@ function Tp({
|
|
|
6959
6959
|
}
|
|
6960
6960
|
);
|
|
6961
6961
|
}
|
|
6962
|
-
function
|
|
6962
|
+
function Ed({ className: e, ...t }) {
|
|
6963
6963
|
return /* @__PURE__ */ c.jsx(
|
|
6964
6964
|
"div",
|
|
6965
6965
|
{
|
|
@@ -6995,7 +6995,7 @@ function jp({
|
|
|
6995
6995
|
}
|
|
6996
6996
|
);
|
|
6997
6997
|
}
|
|
6998
|
-
function
|
|
6998
|
+
function Sd({ className: e, ...t }) {
|
|
6999
6999
|
return /* @__PURE__ */ c.jsx(
|
|
7000
7000
|
"div",
|
|
7001
7001
|
{
|
|
@@ -7009,7 +7009,7 @@ function Ed({ className: e, ...t }) {
|
|
|
7009
7009
|
}
|
|
7010
7010
|
);
|
|
7011
7011
|
}
|
|
7012
|
-
function
|
|
7012
|
+
function Rd({ className: e, ...t }) {
|
|
7013
7013
|
return /* @__PURE__ */ c.jsx(
|
|
7014
7014
|
"div",
|
|
7015
7015
|
{
|
|
@@ -7065,7 +7065,7 @@ function Dp({
|
|
|
7065
7065
|
}
|
|
7066
7066
|
);
|
|
7067
7067
|
}
|
|
7068
|
-
function
|
|
7068
|
+
function Md({
|
|
7069
7069
|
className: e,
|
|
7070
7070
|
...t
|
|
7071
7071
|
}) {
|
|
@@ -7101,7 +7101,7 @@ function Fp({ className: e, ...t }) {
|
|
|
7101
7101
|
}
|
|
7102
7102
|
);
|
|
7103
7103
|
}
|
|
7104
|
-
const
|
|
7104
|
+
const kd = En(
|
|
7105
7105
|
"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",
|
|
7106
7106
|
{
|
|
7107
7107
|
variants: {
|
|
@@ -7137,7 +7137,7 @@ function $p({
|
|
|
7137
7137
|
"data-sidebar": "menu-button",
|
|
7138
7138
|
"data-size": r,
|
|
7139
7139
|
"data-active": t,
|
|
7140
|
-
className: A(
|
|
7140
|
+
className: A(kd({ variant: n, size: r }), a),
|
|
7141
7141
|
...s
|
|
7142
7142
|
}
|
|
7143
7143
|
);
|
|
@@ -7240,7 +7240,7 @@ function Vp({
|
|
|
7240
7240
|
}
|
|
7241
7241
|
);
|
|
7242
7242
|
}
|
|
7243
|
-
function
|
|
7243
|
+
function Ad({ className: e, ...t }) {
|
|
7244
7244
|
return /* @__PURE__ */ c.jsx(
|
|
7245
7245
|
"ul",
|
|
7246
7246
|
{
|
|
@@ -7255,7 +7255,7 @@ function kd({ className: e, ...t }) {
|
|
|
7255
7255
|
}
|
|
7256
7256
|
);
|
|
7257
7257
|
}
|
|
7258
|
-
function
|
|
7258
|
+
function Nd({
|
|
7259
7259
|
className: e,
|
|
7260
7260
|
...t
|
|
7261
7261
|
}) {
|
|
@@ -7269,7 +7269,7 @@ function Ad({
|
|
|
7269
7269
|
}
|
|
7270
7270
|
);
|
|
7271
7271
|
}
|
|
7272
|
-
function
|
|
7272
|
+
function Pd({
|
|
7273
7273
|
asChild: e = !1,
|
|
7274
7274
|
size: t = "md",
|
|
7275
7275
|
isActive: n = !1,
|
|
@@ -7336,19 +7336,19 @@ function Ra(e) {
|
|
|
7336
7336
|
r
|
|
7337
7337
|
];
|
|
7338
7338
|
}
|
|
7339
|
-
var
|
|
7339
|
+
var _d = l.createContext(void 0);
|
|
7340
7340
|
function Ma(e) {
|
|
7341
|
-
const t = l.useContext(
|
|
7341
|
+
const t = l.useContext(_d);
|
|
7342
7342
|
return e || t || "ltr";
|
|
7343
7343
|
}
|
|
7344
|
-
var an = "rovingFocusGroup.onEntryFocus",
|
|
7344
|
+
var an = "rovingFocusGroup.onEntryFocus", Td = { bubbles: !1, cancelable: !0 }, lt = "RovingFocusGroup", [bn, ka, Od] = Ra(lt), [jd, Aa] = je(
|
|
7345
7345
|
lt,
|
|
7346
|
-
[
|
|
7347
|
-
), [
|
|
7348
|
-
(e, t) => /* @__PURE__ */ c.jsx(bn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(bn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(
|
|
7346
|
+
[Od]
|
|
7347
|
+
), [Id, Dd] = jd(lt), Na = l.forwardRef(
|
|
7348
|
+
(e, t) => /* @__PURE__ */ c.jsx(bn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(bn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(Ld, { ...e, ref: t }) }) })
|
|
7349
7349
|
);
|
|
7350
7350
|
Na.displayName = lt;
|
|
7351
|
-
var
|
|
7351
|
+
var Ld = l.forwardRef((e, t) => {
|
|
7352
7352
|
const {
|
|
7353
7353
|
__scopeRovingFocusGroup: n,
|
|
7354
7354
|
orientation: r,
|
|
@@ -7371,7 +7371,7 @@ var Dd = l.forwardRef((e, t) => {
|
|
|
7371
7371
|
if (R)
|
|
7372
7372
|
return R.addEventListener(an, C), () => R.removeEventListener(an, C);
|
|
7373
7373
|
}, [C]), /* @__PURE__ */ c.jsx(
|
|
7374
|
-
|
|
7374
|
+
Id,
|
|
7375
7375
|
{
|
|
7376
7376
|
scope: n,
|
|
7377
7377
|
orientation: r,
|
|
@@ -7405,7 +7405,7 @@ var Dd = l.forwardRef((e, t) => {
|
|
|
7405
7405
|
onFocus: j(e.onFocus, (R) => {
|
|
7406
7406
|
const D = !M.current;
|
|
7407
7407
|
if (R.target === R.currentTarget && D && !x) {
|
|
7408
|
-
const z = new CustomEvent(an,
|
|
7408
|
+
const z = new CustomEvent(an, Td);
|
|
7409
7409
|
if (R.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
|
|
7410
7410
|
const U = E().filter((I) => I.focusable), B = U.find((I) => I.active), G = U.find((I) => I.id === h), Y = [B, G, ...U].filter(
|
|
7411
7411
|
Boolean
|
|
@@ -7429,7 +7429,7 @@ var Dd = l.forwardRef((e, t) => {
|
|
|
7429
7429
|
tabStopId: a,
|
|
7430
7430
|
children: s,
|
|
7431
7431
|
...i
|
|
7432
|
-
} = e, u = be(), f = a || u, d =
|
|
7432
|
+
} = e, u = be(), f = a || u, d = Dd(Pa, n), p = d.currentTabStopId === f, m = ka(n), { onFocusableItemAdd: g, onFocusableItemRemove: b, currentTabStopId: h } = d;
|
|
7433
7433
|
return l.useEffect(() => {
|
|
7434
7434
|
if (r)
|
|
7435
7435
|
return g(), () => b();
|
|
@@ -7457,7 +7457,7 @@ var Dd = l.forwardRef((e, t) => {
|
|
|
7457
7457
|
return;
|
|
7458
7458
|
}
|
|
7459
7459
|
if (v.target !== v.currentTarget) return;
|
|
7460
|
-
const x =
|
|
7460
|
+
const x = zd(v, d.orientation, d.dir);
|
|
7461
7461
|
if (x !== void 0) {
|
|
7462
7462
|
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
|
|
7463
7463
|
v.preventDefault();
|
|
@@ -7466,7 +7466,7 @@ var Dd = l.forwardRef((e, t) => {
|
|
|
7466
7466
|
else if (x === "prev" || x === "next") {
|
|
7467
7467
|
x === "prev" && C.reverse();
|
|
7468
7468
|
const E = C.indexOf(v.currentTarget);
|
|
7469
|
-
C = d.loop ?
|
|
7469
|
+
C = d.loop ? Hd(C, E + 1) : C.slice(E + 1);
|
|
7470
7470
|
}
|
|
7471
7471
|
setTimeout(() => Ta(C));
|
|
7472
7472
|
}
|
|
@@ -7479,7 +7479,7 @@ var Dd = l.forwardRef((e, t) => {
|
|
|
7479
7479
|
}
|
|
7480
7480
|
);
|
|
7481
7481
|
_a.displayName = Pa;
|
|
7482
|
-
var
|
|
7482
|
+
var Fd = {
|
|
7483
7483
|
ArrowLeft: "prev",
|
|
7484
7484
|
ArrowUp: "prev",
|
|
7485
7485
|
ArrowRight: "next",
|
|
@@ -7489,33 +7489,33 @@ var Ld = {
|
|
|
7489
7489
|
PageDown: "last",
|
|
7490
7490
|
End: "last"
|
|
7491
7491
|
};
|
|
7492
|
-
function
|
|
7492
|
+
function $d(e, t) {
|
|
7493
7493
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
7494
7494
|
}
|
|
7495
|
-
function
|
|
7496
|
-
const r =
|
|
7495
|
+
function zd(e, t, n) {
|
|
7496
|
+
const r = $d(e.key, n);
|
|
7497
7497
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
7498
|
-
return
|
|
7498
|
+
return Fd[r];
|
|
7499
7499
|
}
|
|
7500
7500
|
function Ta(e, t = !1) {
|
|
7501
7501
|
const n = document.activeElement;
|
|
7502
7502
|
for (const r of e)
|
|
7503
7503
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
7504
7504
|
}
|
|
7505
|
-
function
|
|
7505
|
+
function Hd(e, t) {
|
|
7506
7506
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
7507
7507
|
}
|
|
7508
|
-
var
|
|
7508
|
+
var Vd = Na, Wd = _a, xn = ["Enter", " "], Bd = ["ArrowDown", "PageUp", "Home"], Oa = ["ArrowUp", "PageDown", "End"], Gd = [...Bd, ...Oa], Ud = {
|
|
7509
7509
|
ltr: [...xn, "ArrowRight"],
|
|
7510
7510
|
rtl: [...xn, "ArrowLeft"]
|
|
7511
|
-
},
|
|
7511
|
+
}, Kd = {
|
|
7512
7512
|
ltr: ["ArrowLeft"],
|
|
7513
7513
|
rtl: ["ArrowRight"]
|
|
7514
|
-
}, ut = "Menu", [at,
|
|
7515
|
-
|
|
7514
|
+
}, ut = "Menu", [at, Yd, Zd] = Ra(ut), [Ie, ja] = je(ut, [
|
|
7515
|
+
Zd,
|
|
7516
7516
|
Ht,
|
|
7517
7517
|
Aa
|
|
7518
|
-
]), dt = Ht(), Ia = Aa(), [Da, Ne] = Ie(ut), [
|
|
7518
|
+
]), dt = Ht(), Ia = Aa(), [Da, Ne] = Ie(ut), [Xd, ft] = Ie(ut), La = (e) => {
|
|
7519
7519
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: s = !0 } = e, i = dt(t), [u, f] = l.useState(null), d = l.useRef(!1), p = me(a), m = Ma(o);
|
|
7520
7520
|
return l.useEffect(() => {
|
|
7521
7521
|
const g = () => {
|
|
@@ -7533,7 +7533,7 @@ var Hd = Na, Vd = _a, xn = ["Enter", " "], Wd = ["ArrowDown", "PageUp", "Home"],
|
|
|
7533
7533
|
content: u,
|
|
7534
7534
|
onContentChange: f,
|
|
7535
7535
|
children: /* @__PURE__ */ c.jsx(
|
|
7536
|
-
|
|
7536
|
+
Xd,
|
|
7537
7537
|
{
|
|
7538
7538
|
scope: t,
|
|
7539
7539
|
onClose: l.useCallback(() => p(!1), [p]),
|
|
@@ -7547,26 +7547,26 @@ var Hd = Na, Vd = _a, xn = ["Enter", " "], Wd = ["ArrowDown", "PageUp", "Home"],
|
|
|
7547
7547
|
) });
|
|
7548
7548
|
};
|
|
7549
7549
|
La.displayName = ut;
|
|
7550
|
-
var
|
|
7550
|
+
var qd = "MenuAnchor", Wn = l.forwardRef(
|
|
7551
7551
|
(e, t) => {
|
|
7552
7552
|
const { __scopeMenu: n, ...r } = e, o = dt(n);
|
|
7553
7553
|
return /* @__PURE__ */ c.jsx(la, { ...o, ...r, ref: t });
|
|
7554
7554
|
}
|
|
7555
7555
|
);
|
|
7556
|
-
Wn.displayName =
|
|
7557
|
-
var Bn = "MenuPortal", [
|
|
7556
|
+
Wn.displayName = qd;
|
|
7557
|
+
var Bn = "MenuPortal", [Jd, Fa] = Ie(Bn, {
|
|
7558
7558
|
forceMount: void 0
|
|
7559
7559
|
}), $a = (e) => {
|
|
7560
7560
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, a = Ne(Bn, t);
|
|
7561
|
-
return /* @__PURE__ */ c.jsx(
|
|
7561
|
+
return /* @__PURE__ */ c.jsx(Jd, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(ye, { present: n || a.open, children: /* @__PURE__ */ c.jsx(Mn, { asChild: !0, container: o, children: r }) }) });
|
|
7562
7562
|
};
|
|
7563
7563
|
$a.displayName = Bn;
|
|
7564
|
-
var ie = "MenuContent", [
|
|
7564
|
+
var ie = "MenuContent", [Qd, Gn] = Ie(ie), za = l.forwardRef(
|
|
7565
7565
|
(e, t) => {
|
|
7566
7566
|
const n = Fa(ie, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ne(ie, e.__scopeMenu), s = ft(ie, e.__scopeMenu);
|
|
7567
|
-
return /* @__PURE__ */ c.jsx(at.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(ye, { present: r || a.open, children: /* @__PURE__ */ c.jsx(at.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ c.jsx(
|
|
7567
|
+
return /* @__PURE__ */ c.jsx(at.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c.jsx(ye, { present: r || a.open, children: /* @__PURE__ */ c.jsx(at.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ c.jsx(ef, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(tf, { ...o, ref: t }) }) }) });
|
|
7568
7568
|
}
|
|
7569
|
-
),
|
|
7569
|
+
), ef = l.forwardRef(
|
|
7570
7570
|
(e, t) => {
|
|
7571
7571
|
const n = Ne(ie, e.__scopeMenu), r = l.useRef(null), o = ee(t, r);
|
|
7572
7572
|
return l.useEffect(() => {
|
|
@@ -7589,7 +7589,7 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
|
|
|
7589
7589
|
}
|
|
7590
7590
|
);
|
|
7591
7591
|
}
|
|
7592
|
-
),
|
|
7592
|
+
), tf = l.forwardRef((e, t) => {
|
|
7593
7593
|
const n = Ne(ie, e.__scopeMenu);
|
|
7594
7594
|
return /* @__PURE__ */ c.jsx(
|
|
7595
7595
|
Un,
|
|
@@ -7602,7 +7602,7 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
|
|
|
7602
7602
|
onDismiss: () => n.onOpenChange(!1)
|
|
7603
7603
|
}
|
|
7604
7604
|
);
|
|
7605
|
-
}),
|
|
7605
|
+
}), nf = /* @__PURE__ */ We("MenuContent.ScrollLock"), Un = l.forwardRef(
|
|
7606
7606
|
(e, t) => {
|
|
7607
7607
|
const {
|
|
7608
7608
|
__scopeMenu: n,
|
|
@@ -7619,9 +7619,9 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
|
|
|
7619
7619
|
onDismiss: g,
|
|
7620
7620
|
disableOutsideScroll: b,
|
|
7621
7621
|
...h
|
|
7622
|
-
} = e, v = Ne(ie, n), x = ft(ie, n), y = dt(n), C = Ia(n), E =
|
|
7622
|
+
} = e, v = Ne(ie, n), x = ft(ie, n), y = dt(n), C = Ia(n), E = Yd(n), [M, T] = l.useState(null), k = l.useRef(null), R = ee(t, k, v.onContentChange), D = l.useRef(0), z = l.useRef(""), U = l.useRef(0), B = l.useRef(null), G = l.useRef("right"), H = l.useRef(0), Y = b ? kn : l.Fragment, I = b ? { as: nf, allowPinchZoom: !0 } : void 0, V = (_) => {
|
|
7623
7623
|
var W, Z;
|
|
7624
|
-
const w = z.current + _, O = E().filter((X) => !X.disabled), F = document.activeElement, $ = (W = O.find((X) => X.ref.current === F)) == null ? void 0 : W.textValue, K = O.map((X) => X.textValue), J =
|
|
7624
|
+
const w = z.current + _, O = E().filter((X) => !X.disabled), F = document.activeElement, $ = (W = O.find((X) => X.ref.current === F)) == null ? void 0 : W.textValue, K = O.map((X) => X.textValue), J = hf(K, w, $), re = (Z = O.find((X) => X.textValue === J)) == null ? void 0 : Z.ref.current;
|
|
7625
7625
|
(function X(oe) {
|
|
7626
7626
|
z.current = oe, window.clearTimeout(D.current), oe !== "" && (D.current = window.setTimeout(() => X(""), 1e3));
|
|
7627
7627
|
})(w), re && setTimeout(() => re.focus());
|
|
@@ -7629,10 +7629,10 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
|
|
|
7629
7629
|
l.useEffect(() => () => window.clearTimeout(D.current), []), so();
|
|
7630
7630
|
const S = l.useCallback((_) => {
|
|
7631
7631
|
var O, F;
|
|
7632
|
-
return G.current === ((O = B.current) == null ? void 0 : O.side) &&
|
|
7632
|
+
return G.current === ((O = B.current) == null ? void 0 : O.side) && vf(_, (F = B.current) == null ? void 0 : F.area);
|
|
7633
7633
|
}, []);
|
|
7634
7634
|
return /* @__PURE__ */ c.jsx(
|
|
7635
|
-
|
|
7635
|
+
Qd,
|
|
7636
7636
|
{
|
|
7637
7637
|
scope: n,
|
|
7638
7638
|
searchRef: z,
|
|
@@ -7680,7 +7680,7 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
|
|
|
7680
7680
|
onInteractOutside: m,
|
|
7681
7681
|
onDismiss: g,
|
|
7682
7682
|
children: /* @__PURE__ */ c.jsx(
|
|
7683
|
-
|
|
7683
|
+
Vd,
|
|
7684
7684
|
{
|
|
7685
7685
|
asChild: !0,
|
|
7686
7686
|
...C,
|
|
@@ -7709,10 +7709,10 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
|
|
|
7709
7709
|
const O = _.target.closest("[data-radix-menu-content]") === _.currentTarget, F = _.ctrlKey || _.altKey || _.metaKey, $ = _.key.length === 1;
|
|
7710
7710
|
O && (_.key === "Tab" && _.preventDefault(), !F && $ && V(_.key));
|
|
7711
7711
|
const K = k.current;
|
|
7712
|
-
if (_.target !== K || !
|
|
7712
|
+
if (_.target !== K || !Gd.includes(_.key)) return;
|
|
7713
7713
|
_.preventDefault();
|
|
7714
7714
|
const re = E().filter((W) => !W.disabled).map((W) => W.ref.current);
|
|
7715
|
-
Oa.includes(_.key) && re.reverse(),
|
|
7715
|
+
Oa.includes(_.key) && re.reverse(), pf(re);
|
|
7716
7716
|
}),
|
|
7717
7717
|
onBlur: j(e.onBlur, (_) => {
|
|
7718
7718
|
_.currentTarget.contains(_.target) || (window.clearTimeout(D.current), z.current = "");
|
|
@@ -7740,20 +7740,20 @@ var ie = "MenuContent", [Jd, Gn] = Ie(ie), za = l.forwardRef(
|
|
|
7740
7740
|
}
|
|
7741
7741
|
);
|
|
7742
7742
|
za.displayName = ie;
|
|
7743
|
-
var
|
|
7743
|
+
var rf = "MenuGroup", Kn = l.forwardRef(
|
|
7744
7744
|
(e, t) => {
|
|
7745
7745
|
const { __scopeMenu: n, ...r } = e;
|
|
7746
7746
|
return /* @__PURE__ */ c.jsx(q.div, { role: "group", ...r, ref: t });
|
|
7747
7747
|
}
|
|
7748
7748
|
);
|
|
7749
|
-
Kn.displayName =
|
|
7750
|
-
var
|
|
7749
|
+
Kn.displayName = rf;
|
|
7750
|
+
var of = "MenuLabel", Ha = l.forwardRef(
|
|
7751
7751
|
(e, t) => {
|
|
7752
7752
|
const { __scopeMenu: n, ...r } = e;
|
|
7753
7753
|
return /* @__PURE__ */ c.jsx(q.div, { ...r, ref: t });
|
|
7754
7754
|
}
|
|
7755
7755
|
);
|
|
7756
|
-
Ha.displayName =
|
|
7756
|
+
Ha.displayName = of;
|
|
7757
7757
|
var Tt = "MenuItem", Or = "menu.itemSelect", Ut = l.forwardRef(
|
|
7758
7758
|
(e, t) => {
|
|
7759
7759
|
const { disabled: n = !1, onSelect: r, ...o } = e, a = l.useRef(null), s = ft(Tt, e.__scopeMenu), i = Gn(Tt, e.__scopeMenu), u = ee(t, a), f = l.useRef(!1), d = () => {
|
|
@@ -7799,7 +7799,7 @@ var Va = l.forwardRef(
|
|
|
7799
7799
|
scope: n,
|
|
7800
7800
|
disabled: r,
|
|
7801
7801
|
textValue: o ?? m,
|
|
7802
|
-
children: /* @__PURE__ */ c.jsx(
|
|
7802
|
+
children: /* @__PURE__ */ c.jsx(Wd, { asChild: !0, ...i, focusable: !r, children: /* @__PURE__ */ c.jsx(
|
|
7803
7803
|
q.div,
|
|
7804
7804
|
{
|
|
7805
7805
|
role: "menuitem",
|
|
@@ -7825,7 +7825,7 @@ var Va = l.forwardRef(
|
|
|
7825
7825
|
}
|
|
7826
7826
|
);
|
|
7827
7827
|
}
|
|
7828
|
-
),
|
|
7828
|
+
), af = "MenuCheckboxItem", Wa = l.forwardRef(
|
|
7829
7829
|
(e, t) => {
|
|
7830
7830
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
7831
7831
|
return /* @__PURE__ */ c.jsx(Ya, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ c.jsx(
|
|
@@ -7845,21 +7845,21 @@ var Va = l.forwardRef(
|
|
|
7845
7845
|
) });
|
|
7846
7846
|
}
|
|
7847
7847
|
);
|
|
7848
|
-
Wa.displayName =
|
|
7849
|
-
var Ba = "MenuRadioGroup", [
|
|
7848
|
+
Wa.displayName = af;
|
|
7849
|
+
var Ba = "MenuRadioGroup", [sf, cf] = Ie(
|
|
7850
7850
|
Ba,
|
|
7851
7851
|
{ value: void 0, onValueChange: () => {
|
|
7852
7852
|
} }
|
|
7853
7853
|
), Ga = l.forwardRef(
|
|
7854
7854
|
(e, t) => {
|
|
7855
7855
|
const { value: n, onValueChange: r, ...o } = e, a = me(r);
|
|
7856
|
-
return /* @__PURE__ */ c.jsx(
|
|
7856
|
+
return /* @__PURE__ */ c.jsx(sf, { scope: e.__scopeMenu, value: n, onValueChange: a, children: /* @__PURE__ */ c.jsx(Kn, { ...o, ref: t }) });
|
|
7857
7857
|
}
|
|
7858
7858
|
);
|
|
7859
7859
|
Ga.displayName = Ba;
|
|
7860
7860
|
var Ua = "MenuRadioItem", Ka = l.forwardRef(
|
|
7861
7861
|
(e, t) => {
|
|
7862
|
-
const { value: n, ...r } = e, o =
|
|
7862
|
+
const { value: n, ...r } = e, o = cf(Ua, e.__scopeMenu), a = n === o.value;
|
|
7863
7863
|
return /* @__PURE__ */ c.jsx(Ya, { scope: e.__scopeMenu, checked: a, children: /* @__PURE__ */ c.jsx(
|
|
7864
7864
|
Ut,
|
|
7865
7865
|
{
|
|
@@ -7881,12 +7881,12 @@ var Ua = "MenuRadioItem", Ka = l.forwardRef(
|
|
|
7881
7881
|
}
|
|
7882
7882
|
);
|
|
7883
7883
|
Ka.displayName = Ua;
|
|
7884
|
-
var Yn = "MenuItemIndicator", [Ya,
|
|
7884
|
+
var Yn = "MenuItemIndicator", [Ya, lf] = Ie(
|
|
7885
7885
|
Yn,
|
|
7886
7886
|
{ checked: !1 }
|
|
7887
7887
|
), Za = l.forwardRef(
|
|
7888
7888
|
(e, t) => {
|
|
7889
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, a =
|
|
7889
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, a = lf(Yn, n);
|
|
7890
7890
|
return /* @__PURE__ */ c.jsx(
|
|
7891
7891
|
ye,
|
|
7892
7892
|
{
|
|
@@ -7904,7 +7904,7 @@ var Yn = "MenuItemIndicator", [Ya, cf] = Ie(
|
|
|
7904
7904
|
}
|
|
7905
7905
|
);
|
|
7906
7906
|
Za.displayName = Yn;
|
|
7907
|
-
var
|
|
7907
|
+
var uf = "MenuSeparator", Xa = l.forwardRef(
|
|
7908
7908
|
(e, t) => {
|
|
7909
7909
|
const { __scopeMenu: n, ...r } = e;
|
|
7910
7910
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -7918,15 +7918,15 @@ var lf = "MenuSeparator", Xa = l.forwardRef(
|
|
|
7918
7918
|
);
|
|
7919
7919
|
}
|
|
7920
7920
|
);
|
|
7921
|
-
Xa.displayName =
|
|
7922
|
-
var
|
|
7921
|
+
Xa.displayName = uf;
|
|
7922
|
+
var df = "MenuArrow", qa = l.forwardRef(
|
|
7923
7923
|
(e, t) => {
|
|
7924
7924
|
const { __scopeMenu: n, ...r } = e, o = dt(n);
|
|
7925
7925
|
return /* @__PURE__ */ c.jsx(da, { ...o, ...r, ref: t });
|
|
7926
7926
|
}
|
|
7927
7927
|
);
|
|
7928
|
-
qa.displayName =
|
|
7929
|
-
var Zn = "MenuSub", [
|
|
7928
|
+
qa.displayName = df;
|
|
7929
|
+
var Zn = "MenuSub", [ff, Ja] = Ie(Zn), Qa = (e) => {
|
|
7930
7930
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, a = Ne(Zn, t), s = dt(t), [i, u] = l.useState(null), [f, d] = l.useState(null), p = me(o);
|
|
7931
7931
|
return l.useEffect(() => (a.open === !1 && p(!1), () => p(!1)), [a.open, p]), /* @__PURE__ */ c.jsx(zn, { ...s, children: /* @__PURE__ */ c.jsx(
|
|
7932
7932
|
Da,
|
|
@@ -7937,7 +7937,7 @@ var Zn = "MenuSub", [df, Ja] = Ie(Zn), Qa = (e) => {
|
|
|
7937
7937
|
content: f,
|
|
7938
7938
|
onContentChange: d,
|
|
7939
7939
|
children: /* @__PURE__ */ c.jsx(
|
|
7940
|
-
|
|
7940
|
+
ff,
|
|
7941
7941
|
{
|
|
7942
7942
|
scope: t,
|
|
7943
7943
|
contentId: be(),
|
|
@@ -8015,7 +8015,7 @@ var tt = "MenuSubTrigger", es = l.forwardRef(
|
|
|
8015
8015
|
onKeyDown: j(e.onKeyDown, (p) => {
|
|
8016
8016
|
var g;
|
|
8017
8017
|
const m = a.searchRef.current !== "";
|
|
8018
|
-
e.disabled || m && p.key === " " ||
|
|
8018
|
+
e.disabled || m && p.key === " " || Ud[r.dir].includes(p.key) && (n.onOpenChange(!0), (g = n.content) == null || g.focus(), p.preventDefault());
|
|
8019
8019
|
})
|
|
8020
8020
|
}
|
|
8021
8021
|
) });
|
|
@@ -8050,7 +8050,7 @@ var ts = "MenuSubContent", ns = l.forwardRef(
|
|
|
8050
8050
|
}),
|
|
8051
8051
|
onKeyDown: j(e.onKeyDown, (d) => {
|
|
8052
8052
|
var g;
|
|
8053
|
-
const p = d.currentTarget.contains(d.target), m =
|
|
8053
|
+
const p = d.currentTarget.contains(d.target), m = Kd[s.dir].includes(d.key);
|
|
8054
8054
|
p && m && (a.onOpenChange(!1), (g = i.trigger) == null || g.focus(), d.preventDefault());
|
|
8055
8055
|
})
|
|
8056
8056
|
}
|
|
@@ -8067,24 +8067,24 @@ function Ot(e) {
|
|
|
8067
8067
|
function Xn(e) {
|
|
8068
8068
|
return Ot(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
8069
8069
|
}
|
|
8070
|
-
function
|
|
8070
|
+
function pf(e) {
|
|
8071
8071
|
const t = document.activeElement;
|
|
8072
8072
|
for (const n of e)
|
|
8073
8073
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
8074
8074
|
}
|
|
8075
|
-
function
|
|
8075
|
+
function mf(e, t) {
|
|
8076
8076
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
8077
8077
|
}
|
|
8078
|
-
function
|
|
8078
|
+
function hf(e, t, n) {
|
|
8079
8079
|
const o = t.length > 1 && Array.from(t).every((f) => f === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
|
|
8080
|
-
let s =
|
|
8080
|
+
let s = mf(e, Math.max(a, 0));
|
|
8081
8081
|
o.length === 1 && (s = s.filter((f) => f !== n));
|
|
8082
8082
|
const u = s.find(
|
|
8083
8083
|
(f) => f.toLowerCase().startsWith(o.toLowerCase())
|
|
8084
8084
|
);
|
|
8085
8085
|
return u !== n ? u : void 0;
|
|
8086
8086
|
}
|
|
8087
|
-
function
|
|
8087
|
+
function gf(e, t) {
|
|
8088
8088
|
const { x: n, y: r } = e;
|
|
8089
8089
|
let o = !1;
|
|
8090
8090
|
for (let a = 0, s = t.length - 1; a < t.length; s = a++) {
|
|
@@ -8093,18 +8093,18 @@ function hf(e, t) {
|
|
|
8093
8093
|
}
|
|
8094
8094
|
return o;
|
|
8095
8095
|
}
|
|
8096
|
-
function
|
|
8096
|
+
function vf(e, t) {
|
|
8097
8097
|
if (!t) return !1;
|
|
8098
8098
|
const n = { x: e.clientX, y: e.clientY };
|
|
8099
|
-
return
|
|
8099
|
+
return gf(n, t);
|
|
8100
8100
|
}
|
|
8101
8101
|
function st(e) {
|
|
8102
8102
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
8103
8103
|
}
|
|
8104
|
-
var
|
|
8104
|
+
var bf = La, xf = Wn, wf = $a, yf = za, Cf = Kn, Ef = Ha, Sf = Ut, Rf = Wa, Mf = Ga, kf = Ka, Af = Za, Nf = Xa, Pf = qa, _f = Qa, Tf = es, Of = ns, Kt = "DropdownMenu", [jf, Wp] = je(
|
|
8105
8105
|
Kt,
|
|
8106
8106
|
[ja]
|
|
8107
|
-
), ne = ja(), [
|
|
8107
|
+
), ne = ja(), [If, os] = jf(Kt), as = (e) => {
|
|
8108
8108
|
const {
|
|
8109
8109
|
__scopeDropdownMenu: t,
|
|
8110
8110
|
children: n,
|
|
@@ -8120,7 +8120,7 @@ var vf = La, bf = Wn, xf = $a, wf = za, yf = Kn, Cf = Ha, Ef = Ut, Sf = Wa, Rf =
|
|
|
8120
8120
|
caller: Kt
|
|
8121
8121
|
});
|
|
8122
8122
|
return /* @__PURE__ */ c.jsx(
|
|
8123
|
-
|
|
8123
|
+
If,
|
|
8124
8124
|
{
|
|
8125
8125
|
scope: t,
|
|
8126
8126
|
triggerId: be(),
|
|
@@ -8130,7 +8130,7 @@ var vf = La, bf = Wn, xf = $a, wf = za, yf = Kn, Cf = Ha, Ef = Ut, Sf = Wa, Rf =
|
|
|
8130
8130
|
onOpenChange: p,
|
|
8131
8131
|
onOpenToggle: l.useCallback(() => p((m) => !m), [p]),
|
|
8132
8132
|
modal: i,
|
|
8133
|
-
children: /* @__PURE__ */ c.jsx(
|
|
8133
|
+
children: /* @__PURE__ */ c.jsx(bf, { ...u, open: d, onOpenChange: p, dir: r, modal: i, children: n })
|
|
8134
8134
|
}
|
|
8135
8135
|
);
|
|
8136
8136
|
};
|
|
@@ -8138,7 +8138,7 @@ as.displayName = Kt;
|
|
|
8138
8138
|
var ss = "DropdownMenuTrigger", is = l.forwardRef(
|
|
8139
8139
|
(e, t) => {
|
|
8140
8140
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, a = os(ss, n), s = ne(n);
|
|
8141
|
-
return /* @__PURE__ */ c.jsx(
|
|
8141
|
+
return /* @__PURE__ */ c.jsx(xf, { asChild: !0, ...s, children: /* @__PURE__ */ c.jsx(
|
|
8142
8142
|
q.button,
|
|
8143
8143
|
{
|
|
8144
8144
|
type: "button",
|
|
@@ -8162,16 +8162,16 @@ var ss = "DropdownMenuTrigger", is = l.forwardRef(
|
|
|
8162
8162
|
}
|
|
8163
8163
|
);
|
|
8164
8164
|
is.displayName = ss;
|
|
8165
|
-
var
|
|
8165
|
+
var Df = "DropdownMenuPortal", cs = (e) => {
|
|
8166
8166
|
const { __scopeDropdownMenu: t, ...n } = e, r = ne(t);
|
|
8167
|
-
return /* @__PURE__ */ c.jsx(
|
|
8167
|
+
return /* @__PURE__ */ c.jsx(wf, { ...r, ...n });
|
|
8168
8168
|
};
|
|
8169
|
-
cs.displayName =
|
|
8169
|
+
cs.displayName = Df;
|
|
8170
8170
|
var ls = "DropdownMenuContent", us = l.forwardRef(
|
|
8171
8171
|
(e, t) => {
|
|
8172
8172
|
const { __scopeDropdownMenu: n, ...r } = e, o = os(ls, n), a = ne(n), s = l.useRef(!1);
|
|
8173
8173
|
return /* @__PURE__ */ c.jsx(
|
|
8174
|
-
|
|
8174
|
+
yf,
|
|
8175
8175
|
{
|
|
8176
8176
|
id: o.contentId,
|
|
8177
8177
|
"aria-labelledby": o.triggerId,
|
|
@@ -8199,76 +8199,76 @@ var ls = "DropdownMenuContent", us = l.forwardRef(
|
|
|
8199
8199
|
}
|
|
8200
8200
|
);
|
|
8201
8201
|
us.displayName = ls;
|
|
8202
|
-
var
|
|
8202
|
+
var Lf = "DropdownMenuGroup", ds = l.forwardRef(
|
|
8203
8203
|
(e, t) => {
|
|
8204
8204
|
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8205
|
-
return /* @__PURE__ */ c.jsx(
|
|
8205
|
+
return /* @__PURE__ */ c.jsx(Cf, { ...o, ...r, ref: t });
|
|
8206
8206
|
}
|
|
8207
8207
|
);
|
|
8208
|
-
ds.displayName =
|
|
8209
|
-
var
|
|
8208
|
+
ds.displayName = Lf;
|
|
8209
|
+
var Ff = "DropdownMenuLabel", fs = l.forwardRef(
|
|
8210
8210
|
(e, t) => {
|
|
8211
8211
|
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8212
|
-
return /* @__PURE__ */ c.jsx(
|
|
8212
|
+
return /* @__PURE__ */ c.jsx(Ef, { ...o, ...r, ref: t });
|
|
8213
8213
|
}
|
|
8214
8214
|
);
|
|
8215
|
-
fs.displayName =
|
|
8216
|
-
var
|
|
8215
|
+
fs.displayName = Ff;
|
|
8216
|
+
var $f = "DropdownMenuItem", ps = l.forwardRef(
|
|
8217
8217
|
(e, t) => {
|
|
8218
8218
|
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8219
|
-
return /* @__PURE__ */ c.jsx(
|
|
8219
|
+
return /* @__PURE__ */ c.jsx(Sf, { ...o, ...r, ref: t });
|
|
8220
8220
|
}
|
|
8221
8221
|
);
|
|
8222
|
-
ps.displayName =
|
|
8223
|
-
var
|
|
8224
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8225
|
-
return /* @__PURE__ */ c.jsx(Sf, { ...o, ...r, ref: t });
|
|
8226
|
-
});
|
|
8227
|
-
ms.displayName = $f;
|
|
8228
|
-
var zf = "DropdownMenuRadioGroup", hs = l.forwardRef((e, t) => {
|
|
8222
|
+
ps.displayName = $f;
|
|
8223
|
+
var zf = "DropdownMenuCheckboxItem", ms = l.forwardRef((e, t) => {
|
|
8229
8224
|
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8230
8225
|
return /* @__PURE__ */ c.jsx(Rf, { ...o, ...r, ref: t });
|
|
8231
8226
|
});
|
|
8232
|
-
|
|
8233
|
-
var Hf = "
|
|
8227
|
+
ms.displayName = zf;
|
|
8228
|
+
var Hf = "DropdownMenuRadioGroup", hs = l.forwardRef((e, t) => {
|
|
8234
8229
|
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8235
8230
|
return /* @__PURE__ */ c.jsx(Mf, { ...o, ...r, ref: t });
|
|
8236
8231
|
});
|
|
8237
|
-
|
|
8238
|
-
var Vf = "
|
|
8232
|
+
hs.displayName = Hf;
|
|
8233
|
+
var Vf = "DropdownMenuRadioItem", gs = l.forwardRef((e, t) => {
|
|
8239
8234
|
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8240
8235
|
return /* @__PURE__ */ c.jsx(kf, { ...o, ...r, ref: t });
|
|
8241
8236
|
});
|
|
8242
|
-
|
|
8243
|
-
var Wf = "
|
|
8237
|
+
gs.displayName = Vf;
|
|
8238
|
+
var Wf = "DropdownMenuItemIndicator", vs = l.forwardRef((e, t) => {
|
|
8244
8239
|
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8245
8240
|
return /* @__PURE__ */ c.jsx(Af, { ...o, ...r, ref: t });
|
|
8246
8241
|
});
|
|
8247
|
-
|
|
8248
|
-
var Bf = "
|
|
8242
|
+
vs.displayName = Wf;
|
|
8243
|
+
var Bf = "DropdownMenuSeparator", bs = l.forwardRef((e, t) => {
|
|
8244
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8245
|
+
return /* @__PURE__ */ c.jsx(Nf, { ...o, ...r, ref: t });
|
|
8246
|
+
});
|
|
8247
|
+
bs.displayName = Bf;
|
|
8248
|
+
var Gf = "DropdownMenuArrow", Uf = l.forwardRef(
|
|
8249
8249
|
(e, t) => {
|
|
8250
8250
|
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8251
|
-
return /* @__PURE__ */ c.jsx(
|
|
8251
|
+
return /* @__PURE__ */ c.jsx(Pf, { ...o, ...r, ref: t });
|
|
8252
8252
|
}
|
|
8253
8253
|
);
|
|
8254
|
-
|
|
8255
|
-
var
|
|
8254
|
+
Uf.displayName = Gf;
|
|
8255
|
+
var Kf = (e) => {
|
|
8256
8256
|
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: a } = e, s = ne(t), [i, u] = it({
|
|
8257
8257
|
prop: r,
|
|
8258
8258
|
defaultProp: a ?? !1,
|
|
8259
8259
|
onChange: o,
|
|
8260
8260
|
caller: "DropdownMenuSub"
|
|
8261
8261
|
});
|
|
8262
|
-
return /* @__PURE__ */ c.jsx(
|
|
8263
|
-
},
|
|
8262
|
+
return /* @__PURE__ */ c.jsx(_f, { ...s, open: i, onOpenChange: u, children: n });
|
|
8263
|
+
}, Yf = "DropdownMenuSubTrigger", xs = l.forwardRef((e, t) => {
|
|
8264
8264
|
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8265
|
-
return /* @__PURE__ */ c.jsx(
|
|
8265
|
+
return /* @__PURE__ */ c.jsx(Tf, { ...o, ...r, ref: t });
|
|
8266
8266
|
});
|
|
8267
|
-
xs.displayName =
|
|
8268
|
-
var
|
|
8267
|
+
xs.displayName = Yf;
|
|
8268
|
+
var Zf = "DropdownMenuSubContent", ws = l.forwardRef((e, t) => {
|
|
8269
8269
|
const { __scopeDropdownMenu: n, ...r } = e, o = ne(n);
|
|
8270
8270
|
return /* @__PURE__ */ c.jsx(
|
|
8271
|
-
|
|
8271
|
+
Of,
|
|
8272
8272
|
{
|
|
8273
8273
|
...o,
|
|
8274
8274
|
...r,
|
|
@@ -8284,36 +8284,36 @@ var Yf = "DropdownMenuSubContent", ws = l.forwardRef((e, t) => {
|
|
|
8284
8284
|
}
|
|
8285
8285
|
);
|
|
8286
8286
|
});
|
|
8287
|
-
ws.displayName =
|
|
8288
|
-
var
|
|
8289
|
-
function
|
|
8287
|
+
ws.displayName = Zf;
|
|
8288
|
+
var Xf = as, qf = is, ys = cs, Jf = us, Qf = ds, ep = fs, tp = ps, np = ms, rp = hs, op = gs, Cs = vs, ap = bs, sp = Kf, ip = xs, cp = ws;
|
|
8289
|
+
function lp({
|
|
8290
8290
|
...e
|
|
8291
8291
|
}) {
|
|
8292
|
-
return /* @__PURE__ */ c.jsx(
|
|
8292
|
+
return /* @__PURE__ */ c.jsx(Xf, { "data-slot": "dropdown-menu", ...e });
|
|
8293
8293
|
}
|
|
8294
8294
|
function Bp({
|
|
8295
8295
|
...e
|
|
8296
8296
|
}) {
|
|
8297
8297
|
return /* @__PURE__ */ c.jsx(ys, { "data-slot": "dropdown-menu-portal", ...e });
|
|
8298
8298
|
}
|
|
8299
|
-
function
|
|
8299
|
+
function up({
|
|
8300
8300
|
...e
|
|
8301
8301
|
}) {
|
|
8302
8302
|
return /* @__PURE__ */ c.jsx(
|
|
8303
|
-
|
|
8303
|
+
qf,
|
|
8304
8304
|
{
|
|
8305
8305
|
"data-slot": "dropdown-menu-trigger",
|
|
8306
8306
|
...e
|
|
8307
8307
|
}
|
|
8308
8308
|
);
|
|
8309
8309
|
}
|
|
8310
|
-
function
|
|
8310
|
+
function dp({
|
|
8311
8311
|
className: e,
|
|
8312
8312
|
sideOffset: t = 4,
|
|
8313
8313
|
...n
|
|
8314
8314
|
}) {
|
|
8315
8315
|
return /* @__PURE__ */ c.jsx(ys, { children: /* @__PURE__ */ c.jsx(
|
|
8316
|
-
|
|
8316
|
+
Jf,
|
|
8317
8317
|
{
|
|
8318
8318
|
"data-slot": "dropdown-menu-content",
|
|
8319
8319
|
sideOffset: t,
|
|
@@ -8328,7 +8328,7 @@ function up({
|
|
|
8328
8328
|
function Gp({
|
|
8329
8329
|
...e
|
|
8330
8330
|
}) {
|
|
8331
|
-
return /* @__PURE__ */ c.jsx(
|
|
8331
|
+
return /* @__PURE__ */ c.jsx(Qf, { "data-slot": "dropdown-menu-group", ...e });
|
|
8332
8332
|
}
|
|
8333
8333
|
function jr({
|
|
8334
8334
|
className: e,
|
|
@@ -8337,7 +8337,7 @@ function jr({
|
|
|
8337
8337
|
...r
|
|
8338
8338
|
}) {
|
|
8339
8339
|
return /* @__PURE__ */ c.jsx(
|
|
8340
|
-
|
|
8340
|
+
tp,
|
|
8341
8341
|
{
|
|
8342
8342
|
"data-slot": "dropdown-menu-item",
|
|
8343
8343
|
"data-inset": t,
|
|
@@ -8357,7 +8357,7 @@ function Up({
|
|
|
8357
8357
|
...r
|
|
8358
8358
|
}) {
|
|
8359
8359
|
return /* @__PURE__ */ c.jsxs(
|
|
8360
|
-
|
|
8360
|
+
np,
|
|
8361
8361
|
{
|
|
8362
8362
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
8363
8363
|
className: A(
|
|
@@ -8367,7 +8367,7 @@ function Up({
|
|
|
8367
8367
|
checked: n,
|
|
8368
8368
|
...r,
|
|
8369
8369
|
children: [
|
|
8370
|
-
/* @__PURE__ */ c.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ c.jsx(Cs, { children: /* @__PURE__ */ c.jsx(
|
|
8370
|
+
/* @__PURE__ */ c.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ c.jsx(Cs, { children: /* @__PURE__ */ c.jsx(Gi, { className: "size-4" }) }) }),
|
|
8371
8371
|
t
|
|
8372
8372
|
]
|
|
8373
8373
|
}
|
|
@@ -8377,7 +8377,7 @@ function Kp({
|
|
|
8377
8377
|
...e
|
|
8378
8378
|
}) {
|
|
8379
8379
|
return /* @__PURE__ */ c.jsx(
|
|
8380
|
-
|
|
8380
|
+
rp,
|
|
8381
8381
|
{
|
|
8382
8382
|
"data-slot": "dropdown-menu-radio-group",
|
|
8383
8383
|
...e
|
|
@@ -8390,7 +8390,7 @@ function Yp({
|
|
|
8390
8390
|
...n
|
|
8391
8391
|
}) {
|
|
8392
8392
|
return /* @__PURE__ */ c.jsxs(
|
|
8393
|
-
|
|
8393
|
+
op,
|
|
8394
8394
|
{
|
|
8395
8395
|
"data-slot": "dropdown-menu-radio-item",
|
|
8396
8396
|
className: A(
|
|
@@ -8399,19 +8399,19 @@ function Yp({
|
|
|
8399
8399
|
),
|
|
8400
8400
|
...n,
|
|
8401
8401
|
children: [
|
|
8402
|
-
/* @__PURE__ */ c.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ c.jsx(Cs, { children: /* @__PURE__ */ c.jsx(
|
|
8402
|
+
/* @__PURE__ */ c.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ c.jsx(Cs, { children: /* @__PURE__ */ c.jsx(Ji, { className: "size-2 fill-current" }) }) }),
|
|
8403
8403
|
t
|
|
8404
8404
|
]
|
|
8405
8405
|
}
|
|
8406
8406
|
);
|
|
8407
8407
|
}
|
|
8408
|
-
function
|
|
8408
|
+
function fp({
|
|
8409
8409
|
className: e,
|
|
8410
8410
|
inset: t,
|
|
8411
8411
|
...n
|
|
8412
8412
|
}) {
|
|
8413
8413
|
return /* @__PURE__ */ c.jsx(
|
|
8414
|
-
|
|
8414
|
+
ep,
|
|
8415
8415
|
{
|
|
8416
8416
|
"data-slot": "dropdown-menu-label",
|
|
8417
8417
|
"data-inset": t,
|
|
@@ -8423,12 +8423,12 @@ function dp({
|
|
|
8423
8423
|
}
|
|
8424
8424
|
);
|
|
8425
8425
|
}
|
|
8426
|
-
function
|
|
8426
|
+
function pp({
|
|
8427
8427
|
className: e,
|
|
8428
8428
|
...t
|
|
8429
8429
|
}) {
|
|
8430
8430
|
return /* @__PURE__ */ c.jsx(
|
|
8431
|
-
|
|
8431
|
+
ap,
|
|
8432
8432
|
{
|
|
8433
8433
|
"data-slot": "dropdown-menu-separator",
|
|
8434
8434
|
className: A("bg-border -mx-1 my-1 h-px", e),
|
|
@@ -8455,7 +8455,7 @@ function Zp({
|
|
|
8455
8455
|
function Xp({
|
|
8456
8456
|
...e
|
|
8457
8457
|
}) {
|
|
8458
|
-
return /* @__PURE__ */ c.jsx(
|
|
8458
|
+
return /* @__PURE__ */ c.jsx(sp, { "data-slot": "dropdown-menu-sub", ...e });
|
|
8459
8459
|
}
|
|
8460
8460
|
function qp({
|
|
8461
8461
|
className: e,
|
|
@@ -8464,7 +8464,7 @@ function qp({
|
|
|
8464
8464
|
...r
|
|
8465
8465
|
}) {
|
|
8466
8466
|
return /* @__PURE__ */ c.jsxs(
|
|
8467
|
-
|
|
8467
|
+
ip,
|
|
8468
8468
|
{
|
|
8469
8469
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
8470
8470
|
"data-inset": t,
|
|
@@ -8485,7 +8485,7 @@ function Jp({
|
|
|
8485
8485
|
...t
|
|
8486
8486
|
}) {
|
|
8487
8487
|
return /* @__PURE__ */ c.jsx(
|
|
8488
|
-
|
|
8488
|
+
cp,
|
|
8489
8489
|
{
|
|
8490
8490
|
"data-slot": "dropdown-menu-sub-content",
|
|
8491
8491
|
className: A(
|
|
@@ -8496,8 +8496,8 @@ function Jp({
|
|
|
8496
8496
|
}
|
|
8497
8497
|
);
|
|
8498
8498
|
}
|
|
8499
|
-
const
|
|
8500
|
-
const { user: t, error: n, isLoading: r } =
|
|
8499
|
+
const mp = ({ onLogout: e }) => {
|
|
8500
|
+
const { user: t, error: n, isLoading: r } = Os(), o = async () => {
|
|
8501
8501
|
try {
|
|
8502
8502
|
e && await e(), window.location.href = "/auth/logout";
|
|
8503
8503
|
} catch (a) {
|
|
@@ -8507,8 +8507,8 @@ const pp = ({ onLogout: e }) => {
|
|
|
8507
8507
|
return r ? /* @__PURE__ */ c.jsx("div", { className: "h-10 w-10 animate-pulse rounded-full bg-gray-200" }) : n ? /* @__PURE__ */ c.jsxs("div", { children: [
|
|
8508
8508
|
"Error: ",
|
|
8509
8509
|
n.message
|
|
8510
|
-
] }) : t ? /* @__PURE__ */ c.jsx("div", { className: "relative flex items-center gap-3", children: /* @__PURE__ */ c.jsxs(
|
|
8511
|
-
/* @__PURE__ */ c.jsx(
|
|
8510
|
+
] }) : t ? /* @__PURE__ */ c.jsx("div", { className: "relative flex items-center gap-3", children: /* @__PURE__ */ c.jsxs(lp, { children: [
|
|
8511
|
+
/* @__PURE__ */ c.jsx(up, { asChild: !0, children: /* @__PURE__ */ c.jsx(
|
|
8512
8512
|
Sn,
|
|
8513
8513
|
{
|
|
8514
8514
|
variant: "ghost",
|
|
@@ -8526,28 +8526,28 @@ const pp = ({ onLogout: e }) => {
|
|
|
8526
8526
|
) : /* @__PURE__ */ c.jsx(dr, { className: "h-5 w-5 text-gray-500" })
|
|
8527
8527
|
}
|
|
8528
8528
|
) }),
|
|
8529
|
-
/* @__PURE__ */ c.jsxs(
|
|
8530
|
-
/* @__PURE__ */ c.jsx(
|
|
8529
|
+
/* @__PURE__ */ c.jsxs(dp, { align: "end", className: "w-72", children: [
|
|
8530
|
+
/* @__PURE__ */ c.jsx(fp, { children: /* @__PURE__ */ c.jsx("div", { className: "flex flex-col space-y-1", children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col space-y-1", children: [
|
|
8531
8531
|
/* @__PURE__ */ c.jsx("p", { className: "text-xs text-gray-500", children: t.name }),
|
|
8532
8532
|
/* @__PURE__ */ c.jsx("p", { className: "truncate text-xs text-gray-500", children: t.email })
|
|
8533
8533
|
] }) }) }),
|
|
8534
|
-
/* @__PURE__ */ c.jsx(
|
|
8534
|
+
/* @__PURE__ */ c.jsx(pp, {}),
|
|
8535
8535
|
/* @__PURE__ */ c.jsx(jr, { asChild: !0, children: /* @__PURE__ */ c.jsxs("a", { href: "/profile", className: "flex w-full cursor-default", children: [
|
|
8536
8536
|
/* @__PURE__ */ c.jsx(dr, { className: "mr-2 h-4 w-4" }),
|
|
8537
8537
|
/* @__PURE__ */ c.jsx("span", { children: "Profile" })
|
|
8538
8538
|
] }) }),
|
|
8539
8539
|
/* @__PURE__ */ c.jsxs(jr, { onClick: o, children: [
|
|
8540
|
-
/* @__PURE__ */ c.jsx(
|
|
8540
|
+
/* @__PURE__ */ c.jsx(tc, { className: "mr-2 h-4 w-4" }),
|
|
8541
8541
|
/* @__PURE__ */ c.jsx("span", { children: "Sign out" })
|
|
8542
8542
|
] })
|
|
8543
8543
|
] })
|
|
8544
8544
|
] }) }) : null;
|
|
8545
|
-
},
|
|
8545
|
+
}, hp = ({ onLogout: e }) => /* @__PURE__ */ c.jsx("div", { className: "sticky top-0 z-50 bg-white", children: /* @__PURE__ */ c.jsxs("header", { className: "flex h-16 items-center justify-between border-b bg-white px-4", children: [
|
|
8546
8546
|
/* @__PURE__ */ c.jsxs("div", { className: "flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden", children: [
|
|
8547
|
-
/* @__PURE__ */ c.jsx(
|
|
8547
|
+
/* @__PURE__ */ c.jsx(wd, {}),
|
|
8548
8548
|
/* @__PURE__ */ c.jsx(Cn, { orientation: "vertical" })
|
|
8549
8549
|
] }),
|
|
8550
|
-
/* @__PURE__ */ c.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c.jsx(
|
|
8550
|
+
/* @__PURE__ */ c.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c.jsx(mp, { onLogout: e }) })
|
|
8551
8551
|
] }) });
|
|
8552
8552
|
function Qp({ className: e, ...t }) {
|
|
8553
8553
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -8628,7 +8628,7 @@ function am({ className: e, ...t }) {
|
|
|
8628
8628
|
}
|
|
8629
8629
|
);
|
|
8630
8630
|
}
|
|
8631
|
-
function
|
|
8631
|
+
function gp({
|
|
8632
8632
|
title: e,
|
|
8633
8633
|
url: t,
|
|
8634
8634
|
children: n,
|
|
@@ -8643,7 +8643,7 @@ function hp({
|
|
|
8643
8643
|
a && f(!0);
|
|
8644
8644
|
}, [a]);
|
|
8645
8645
|
const d = !i && t;
|
|
8646
|
-
return /* @__PURE__ */ c.jsx(
|
|
8646
|
+
return /* @__PURE__ */ c.jsx(Rd, { className: s, children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col", children: [
|
|
8647
8647
|
/* @__PURE__ */ c.jsxs("div", { className: "flex flex-row items-center justify-between", children: [
|
|
8648
8648
|
d ? /* @__PURE__ */ c.jsxs(
|
|
8649
8649
|
"a",
|
|
@@ -8683,7 +8683,7 @@ function hp({
|
|
|
8683
8683
|
},
|
|
8684
8684
|
disabled: i,
|
|
8685
8685
|
"aria-label": u ? "Collapse section" : "Expand section",
|
|
8686
|
-
children: u ? /* @__PURE__ */ c.jsx(
|
|
8686
|
+
children: u ? /* @__PURE__ */ c.jsx(Ki, { className: "h-4 w-4" }) : /* @__PURE__ */ c.jsx(eo, { className: "h-4 w-4" })
|
|
8687
8687
|
}
|
|
8688
8688
|
)
|
|
8689
8689
|
] }),
|
|
@@ -8699,8 +8699,8 @@ function hp({
|
|
|
8699
8699
|
)
|
|
8700
8700
|
] }) });
|
|
8701
8701
|
}
|
|
8702
|
-
const gp = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";
|
|
8703
|
-
function
|
|
8702
|
+
const vp = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";
|
|
8703
|
+
function bp() {
|
|
8704
8704
|
const [e, t] = ze("");
|
|
8705
8705
|
return wn(() => {
|
|
8706
8706
|
t(window.location.pathname);
|
|
@@ -8714,15 +8714,31 @@ function vp() {
|
|
|
8714
8714
|
};
|
|
8715
8715
|
}, []), { currentPath: e, isActiveRoute: (r) => !!(e === r || r !== "/" && e.startsWith(r)) };
|
|
8716
8716
|
}
|
|
8717
|
-
const Es =
|
|
8717
|
+
const Es = Ps(
|
|
8718
8718
|
void 0
|
|
8719
|
-
),
|
|
8720
|
-
const e =
|
|
8719
|
+
), Ss = () => {
|
|
8720
|
+
const e = _s(Es);
|
|
8721
8721
|
if (e === void 0)
|
|
8722
8722
|
throw new Error("usePermissions must be used within PermissionsProvider");
|
|
8723
8723
|
return e;
|
|
8724
|
+
}, sm = () => {
|
|
8725
|
+
const { permissions: e, loading: t, error: n, fetchPermissions: r } = Ss();
|
|
8726
|
+
return {
|
|
8727
|
+
// Individual permissions for direct access
|
|
8728
|
+
essentialInsights: e.essentialInsights,
|
|
8729
|
+
organic: e.organic,
|
|
8730
|
+
paid: e.paid,
|
|
8731
|
+
web: e.web,
|
|
8732
|
+
priceMonster: e.priceMonster,
|
|
8733
|
+
se_company_id: e.se_company_id,
|
|
8734
|
+
// Keep the original permissions object for backward compatibility
|
|
8735
|
+
permissions: e,
|
|
8736
|
+
loading: t,
|
|
8737
|
+
error: n,
|
|
8738
|
+
fetchPermissions: r
|
|
8739
|
+
};
|
|
8724
8740
|
};
|
|
8725
|
-
function
|
|
8741
|
+
function im({
|
|
8726
8742
|
children: e,
|
|
8727
8743
|
fetchPermissionsEndpoint: t = "/api/auth/permissions",
|
|
8728
8744
|
initialPermissions: n
|
|
@@ -8766,7 +8782,7 @@ const xp = {
|
|
|
8766
8782
|
title: "Essential Insights",
|
|
8767
8783
|
key: "essentialInsights",
|
|
8768
8784
|
url: "/essential-insights/overall-performance",
|
|
8769
|
-
icon: /* @__PURE__ */ c.jsx(
|
|
8785
|
+
icon: /* @__PURE__ */ c.jsx(Wi, { className: "h-5 w-5" }),
|
|
8770
8786
|
items: [
|
|
8771
8787
|
{
|
|
8772
8788
|
title: "Overall Performance",
|
|
@@ -8781,7 +8797,7 @@ const xp = {
|
|
|
8781
8797
|
{
|
|
8782
8798
|
title: "Paid Performance",
|
|
8783
8799
|
url: "/essential-insights/paid-performance",
|
|
8784
|
-
icon: /* @__PURE__ */ c.jsx(
|
|
8800
|
+
icon: /* @__PURE__ */ c.jsx(zi, { className: "h-4 w-4" })
|
|
8785
8801
|
},
|
|
8786
8802
|
{
|
|
8787
8803
|
title: "Keyword Performance",
|
|
@@ -8799,7 +8815,7 @@ const xp = {
|
|
|
8799
8815
|
title: "Price Monster",
|
|
8800
8816
|
key: "priceMonster",
|
|
8801
8817
|
url: "/price-monster",
|
|
8802
|
-
icon: /* @__PURE__ */ c.jsx(
|
|
8818
|
+
icon: /* @__PURE__ */ c.jsx(Xi, { className: "h-4 w-4" }),
|
|
8803
8819
|
items: [
|
|
8804
8820
|
{
|
|
8805
8821
|
title: "Dashboard",
|
|
@@ -8809,12 +8825,12 @@ const xp = {
|
|
|
8809
8825
|
{
|
|
8810
8826
|
title: "Documentation",
|
|
8811
8827
|
url: "/price-monster/documentation",
|
|
8812
|
-
icon: /* @__PURE__ */ c.jsx(
|
|
8828
|
+
icon: /* @__PURE__ */ c.jsx(Ii, { className: "h-4 w-4" })
|
|
8813
8829
|
},
|
|
8814
8830
|
{
|
|
8815
8831
|
title: "Subscriptions",
|
|
8816
8832
|
url: "/price-monster/subscriptions",
|
|
8817
|
-
icon: /* @__PURE__ */ c.jsx(
|
|
8833
|
+
icon: /* @__PURE__ */ c.jsx(Li, { className: "h-4 w-4" })
|
|
8818
8834
|
}
|
|
8819
8835
|
]
|
|
8820
8836
|
},
|
|
@@ -8834,17 +8850,17 @@ const xp = {
|
|
|
8834
8850
|
]
|
|
8835
8851
|
};
|
|
8836
8852
|
function wp({ ...e }) {
|
|
8837
|
-
const { isActiveRoute: t } =
|
|
8838
|
-
return /* @__PURE__ */ c.jsxs(
|
|
8839
|
-
/* @__PURE__ */ c.jsx(
|
|
8853
|
+
const { isActiveRoute: t } = bp(), n = Ss();
|
|
8854
|
+
return /* @__PURE__ */ c.jsxs(xd, { ...e, children: [
|
|
8855
|
+
/* @__PURE__ */ c.jsx(Ed, { children: /* @__PURE__ */ c.jsx("div", { className: "relative h-12 w-32 overflow-hidden", children: /* @__PURE__ */ c.jsx(
|
|
8840
8856
|
"img",
|
|
8841
8857
|
{
|
|
8842
|
-
src:
|
|
8858
|
+
src: vp,
|
|
8843
8859
|
alt: "GLI Logo",
|
|
8844
8860
|
className: "h-full w-full object-contain"
|
|
8845
8861
|
}
|
|
8846
8862
|
) }) }),
|
|
8847
|
-
/* @__PURE__ */ c.jsxs(
|
|
8863
|
+
/* @__PURE__ */ c.jsxs(Sd, { children: [
|
|
8848
8864
|
/* @__PURE__ */ c.jsx("div", { className: "relative flex w-full min-w-0 flex-col px-2 py-1", children: /* @__PURE__ */ c.jsxs(
|
|
8849
8865
|
"a",
|
|
8850
8866
|
{
|
|
@@ -8869,7 +8885,7 @@ function wp({ ...e }) {
|
|
|
8869
8885
|
) }),
|
|
8870
8886
|
/* @__PURE__ */ c.jsx(ya, { delayDuration: 150, children: xp.navMain.map((r) => {
|
|
8871
8887
|
const o = !r.key || n[r.key], a = o && (t(r.url) || r.items.some((i) => t(i.url))), s = /* @__PURE__ */ c.jsx(
|
|
8872
|
-
|
|
8888
|
+
gp,
|
|
8873
8889
|
{
|
|
8874
8890
|
url: o ? r.url : void 0,
|
|
8875
8891
|
title: r.title,
|
|
@@ -8877,9 +8893,9 @@ function wp({ ...e }) {
|
|
|
8877
8893
|
isActive: !!a,
|
|
8878
8894
|
disabled: !o,
|
|
8879
8895
|
className: A(!o && "opacity-50"),
|
|
8880
|
-
children: o && /* @__PURE__ */ c.jsx(
|
|
8896
|
+
children: o && /* @__PURE__ */ c.jsx(Md, { children: /* @__PURE__ */ c.jsx(Ad, { children: r.items.map((i) => {
|
|
8881
8897
|
const u = t(i.url);
|
|
8882
|
-
return /* @__PURE__ */ c.jsx(
|
|
8898
|
+
return /* @__PURE__ */ c.jsx(Nd, { children: /* @__PURE__ */ c.jsx(Pd, { asChild: !0, children: /* @__PURE__ */ c.jsxs(
|
|
8883
8899
|
"a",
|
|
8884
8900
|
{
|
|
8885
8901
|
href: i.url,
|
|
@@ -8919,16 +8935,16 @@ function wp({ ...e }) {
|
|
|
8919
8935
|
] }, r.title) : s;
|
|
8920
8936
|
}) })
|
|
8921
8937
|
] }),
|
|
8922
|
-
/* @__PURE__ */ c.jsx(
|
|
8938
|
+
/* @__PURE__ */ c.jsx(yd, {})
|
|
8923
8939
|
] });
|
|
8924
8940
|
}
|
|
8925
|
-
async function
|
|
8941
|
+
async function cm() {
|
|
8926
8942
|
var e, t, n, r, o, a;
|
|
8927
8943
|
try {
|
|
8928
|
-
const s = await
|
|
8944
|
+
const s = await Is();
|
|
8929
8945
|
if (!s || s === "No token available")
|
|
8930
8946
|
return { essentialInsights: !1, organic: !1, paid: !1, web: !1, priceMonster: !1, se_company_id: null };
|
|
8931
|
-
const u = (e =
|
|
8947
|
+
const u = (e = Ds(s)["https://cloud.golocal.com/org_metadata"]) == null ? void 0 : e.metadata;
|
|
8932
8948
|
return {
|
|
8933
8949
|
essentialInsights: ((t = u == null ? void 0 : u["essential-insights"]) == null ? void 0 : t.enabled) === !0,
|
|
8934
8950
|
organic: ((n = u == null ? void 0 : u.organic) == null ? void 0 : n.enabled) === !0,
|
|
@@ -8941,18 +8957,18 @@ async function im() {
|
|
|
8941
8957
|
return console.error("Error getting user permissions:", s), { essentialInsights: !1, organic: !1, paid: !1, web: !1, priceMonster: !1, se_company_id: null };
|
|
8942
8958
|
}
|
|
8943
8959
|
}
|
|
8944
|
-
const
|
|
8960
|
+
const lm = ({
|
|
8945
8961
|
children: e,
|
|
8946
8962
|
onLogout: t
|
|
8947
|
-
}) => /* @__PURE__ */ c.jsx(
|
|
8963
|
+
}) => /* @__PURE__ */ c.jsx(js, { children: /* @__PURE__ */ c.jsx(bd, { children: /* @__PURE__ */ c.jsxs("div", { className: "flex h-screen w-full", children: [
|
|
8948
8964
|
/* @__PURE__ */ c.jsx(wp, {}),
|
|
8949
|
-
/* @__PURE__ */ c.jsxs(
|
|
8950
|
-
/* @__PURE__ */ c.jsx(
|
|
8965
|
+
/* @__PURE__ */ c.jsxs(Cd, { className: "flex-1 flex flex-col min-w-0", children: [
|
|
8966
|
+
/* @__PURE__ */ c.jsx(hp, { onLogout: t }),
|
|
8951
8967
|
/* @__PURE__ */ c.jsx("main", { className: "flex-1 bg-white overflow-auto", id: "page-content", children: e })
|
|
8952
8968
|
] })
|
|
8953
8969
|
] }) }) });
|
|
8954
8970
|
export {
|
|
8955
|
-
|
|
8971
|
+
hp as AppHeader,
|
|
8956
8972
|
wp as AppSidebar,
|
|
8957
8973
|
Sn as Button,
|
|
8958
8974
|
Qp as Card,
|
|
@@ -8962,69 +8978,70 @@ export {
|
|
|
8962
8978
|
am as CardFooter,
|
|
8963
8979
|
em as CardHeader,
|
|
8964
8980
|
tm as CardTitle,
|
|
8965
|
-
|
|
8966
|
-
|
|
8981
|
+
gp as CollapsibleSection,
|
|
8982
|
+
lp as DropdownMenu,
|
|
8967
8983
|
Up as DropdownMenuCheckboxItem,
|
|
8968
|
-
|
|
8984
|
+
dp as DropdownMenuContent,
|
|
8969
8985
|
Gp as DropdownMenuGroup,
|
|
8970
8986
|
jr as DropdownMenuItem,
|
|
8971
|
-
|
|
8987
|
+
fp as DropdownMenuLabel,
|
|
8972
8988
|
Bp as DropdownMenuPortal,
|
|
8973
8989
|
Kp as DropdownMenuRadioGroup,
|
|
8974
8990
|
Yp as DropdownMenuRadioItem,
|
|
8975
|
-
|
|
8991
|
+
pp as DropdownMenuSeparator,
|
|
8976
8992
|
Zp as DropdownMenuShortcut,
|
|
8977
8993
|
Xp as DropdownMenuSub,
|
|
8978
8994
|
Jp as DropdownMenuSubContent,
|
|
8979
8995
|
qp as DropdownMenuSubTrigger,
|
|
8980
|
-
|
|
8981
|
-
|
|
8996
|
+
up as DropdownMenuTrigger,
|
|
8997
|
+
lm as GLICloudProvider,
|
|
8982
8998
|
no as Input,
|
|
8983
|
-
|
|
8984
|
-
|
|
8999
|
+
im as PermissionsProvider,
|
|
9000
|
+
mp as ProfileDropdown,
|
|
8985
9001
|
Cn as Separator,
|
|
8986
|
-
|
|
9002
|
+
Tl as Sheet,
|
|
8987
9003
|
Np as SheetClose,
|
|
8988
9004
|
$o as SheetContent,
|
|
8989
9005
|
Vo as SheetDescription,
|
|
8990
|
-
|
|
9006
|
+
Il as SheetFooter,
|
|
8991
9007
|
zo as SheetHeader,
|
|
8992
9008
|
Fo as SheetOverlay,
|
|
8993
|
-
|
|
9009
|
+
Ol as SheetPortal,
|
|
8994
9010
|
Ho as SheetTitle,
|
|
8995
9011
|
Ap as SheetTrigger,
|
|
8996
|
-
|
|
8997
|
-
|
|
9012
|
+
xd as Sidebar,
|
|
9013
|
+
Sd as SidebarContent,
|
|
8998
9014
|
Op as SidebarFooter,
|
|
8999
|
-
|
|
9015
|
+
Rd as SidebarGroup,
|
|
9000
9016
|
Dp as SidebarGroupAction,
|
|
9001
|
-
|
|
9017
|
+
Md as SidebarGroupContent,
|
|
9002
9018
|
Ip as SidebarGroupLabel,
|
|
9003
|
-
|
|
9019
|
+
Ed as SidebarHeader,
|
|
9004
9020
|
Tp as SidebarInput,
|
|
9005
|
-
|
|
9021
|
+
Cd as SidebarInset,
|
|
9006
9022
|
Lp as SidebarMenu,
|
|
9007
9023
|
zp as SidebarMenuAction,
|
|
9008
9024
|
Hp as SidebarMenuBadge,
|
|
9009
9025
|
$p as SidebarMenuButton,
|
|
9010
9026
|
Fp as SidebarMenuItem,
|
|
9011
9027
|
Vp as SidebarMenuSkeleton,
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9028
|
+
Ad as SidebarMenuSub,
|
|
9029
|
+
Pd as SidebarMenuSubButton,
|
|
9030
|
+
Nd as SidebarMenuSubItem,
|
|
9031
|
+
bd as SidebarProvider,
|
|
9032
|
+
yd as SidebarRail,
|
|
9017
9033
|
jp as SidebarSeparator,
|
|
9018
|
-
|
|
9034
|
+
wd as SidebarTrigger,
|
|
9019
9035
|
Sr as Skeleton,
|
|
9020
9036
|
Ca as Tooltip,
|
|
9021
9037
|
Vn as TooltipContent,
|
|
9022
9038
|
ya as TooltipProvider,
|
|
9023
9039
|
Ea as TooltipTrigger,
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9040
|
+
cc as buttonVariants,
|
|
9041
|
+
cm as getUserPermissions,
|
|
9042
|
+
bp as useActiveRoute,
|
|
9043
|
+
ic as useIsMobile,
|
|
9044
|
+
Ss as usePermissions,
|
|
9045
|
+
sm as useProductAccess,
|
|
9029
9046
|
Gt as useSidebar
|
|
9030
9047
|
};
|