zudoku 0.3.1-dev.11 → 0.3.1-dev.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/authentication/providers/openid.js +1 -1
- package/dist/lib/components/Header.js +2 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +289 -296
- package/lib/zudoku.components.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/authentication/providers/openid.tsx +1 -1
- package/src/lib/components/Header.tsx +3 -9
package/lib/zudoku.components.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var cr = Object.defineProperty;
|
|
2
2
|
var dt = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var j = (e, t, n) =>
|
|
5
|
+
var ur = (e, t, n) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var j = (e, t, n) => ur(e, typeof t != "symbol" ? t + "" : t, n), ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
|
|
7
7
|
var f = (e, t, n) => (ht(e, t, "read from private field"), n ? n.call(e) : t.get(e)), N = (e, t, n) => t.has(e) ? dt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), S = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
8
|
var Ce = (e, t, n, r) => ({
|
|
9
9
|
set _(o) {
|
|
@@ -13,27 +13,27 @@ var Ce = (e, t, n, r) => ({
|
|
|
13
13
|
return f(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as
|
|
17
|
-
import { d as
|
|
18
|
-
import { E as
|
|
16
|
+
import { H as jt, a as Ge, M as lr, u as dr, A as hr, b as fr } from "./utils-Bh4upQ0e.js";
|
|
17
|
+
import { d as pr, a as mr, R as gr, N as je, u as Ne, L as He, b as vr, c as xr, O as Rt, e as yr } from "./index-7kcHaXD6.js";
|
|
18
|
+
import { E as Et, S as se, a as wr, R as br } from "./SlotletProvider-ByLSCZQa.js";
|
|
19
19
|
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
20
|
-
import { M as
|
|
20
|
+
import { M as Mr, c as Cr, a as _t, b as Nt, A as Sr, u as ge, h as Pr, d as y, e as jr, F as Rr, D as Er, C as _r, P as ce, f as Ue, g as Nr, i as Dt, R as Dr, S as Ir, j as kr, k as Ar, l as It, m as Or, n as Re, o as kt, p as ft, B as Be } from "./Combination-DTfV-c98.js";
|
|
21
21
|
import { c as ue, a as b, C as Tr, b as Fr, u as Lr, T as Kr, M as $r, V as Br, d as ze, e as Qr, f as qr } from "./Markdown-CEccPMI_.js";
|
|
22
22
|
import * as c from "react";
|
|
23
|
-
import
|
|
23
|
+
import Gr, { StrictMode as At, createContext as Ot, Component as Hr, createElement as pt, isValidElement as Ur, useState as ie, useCallback as Tt, useEffect as W, Suspense as Ft, memo as Lt, useMemo as Le, useContext as zr, Fragment as Vr, useRef as Ve, forwardRef as Yr } from "react";
|
|
24
24
|
import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
25
|
import { r as Xr } from "./router-BiRCp01d.js";
|
|
26
|
-
import { S as
|
|
27
|
-
import { S as
|
|
26
|
+
import { S as Qe, R as Wr, T as Jr, C as Zr } from "./index-Dz4LyXZI.js";
|
|
27
|
+
import { S as Kt, h as $t, Q as ea, n as E, m as mt, a as gt, b as $, e as ta, c as na, d as ra, f as aa, o as vt, r as xt, g as oa, i as yt, p as wt, s as sa, u as De, j as ia, Z as ca, k as ua, l as Bt, q as la } from "./ZudokuContext-BIZ8zHbZ.js";
|
|
28
28
|
import { j as Xe } from "./joinPath-B7kNnUX4.js";
|
|
29
|
-
import { c as
|
|
29
|
+
import { c as Qt, P as Ie, R as da, I as ha, S as Ke, a as fa } from "./Spinner-BT_AYFrA.js";
|
|
30
30
|
/**
|
|
31
31
|
* @license lucide-react v0.378.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
const
|
|
36
|
+
const qt = ue("ChevronRight", [
|
|
37
37
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
38
38
|
]);
|
|
39
39
|
/**
|
|
@@ -95,12 +95,12 @@ const xa = ue("Sun", [
|
|
|
95
95
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
96
96
|
]);
|
|
97
97
|
function ya({ error: e }) {
|
|
98
|
-
return /* @__PURE__ */ a.jsx(
|
|
98
|
+
return /* @__PURE__ */ a.jsx(Et, { error: e });
|
|
99
99
|
}
|
|
100
100
|
var ve = {};
|
|
101
|
-
const wa = /* @__PURE__ */ Ye(Xr), ba = /* @__PURE__ */ Ye(
|
|
101
|
+
const wa = /* @__PURE__ */ Ye(Xr), ba = /* @__PURE__ */ Ye(pr), Ma = /* @__PURE__ */ Ye(mr);
|
|
102
102
|
Object.defineProperty(ve, "__esModule", { value: !0 });
|
|
103
|
-
var Ca =
|
|
103
|
+
var Ca = Gr, F = wa, We = ba, B = Ma;
|
|
104
104
|
function Sa(e) {
|
|
105
105
|
if (e && e.__esModule) return e;
|
|
106
106
|
var t = /* @__PURE__ */ Object.create(null);
|
|
@@ -130,7 +130,7 @@ function Pa({
|
|
|
130
130
|
hash: n.hash || "",
|
|
131
131
|
state: n.state != null ? n.state : null,
|
|
132
132
|
key: n.key || "default"
|
|
133
|
-
}, i =
|
|
133
|
+
}, i = Gt();
|
|
134
134
|
return /* @__PURE__ */ O.createElement(B.Router, {
|
|
135
135
|
basename: e,
|
|
136
136
|
children: t,
|
|
@@ -150,7 +150,7 @@ function ja({
|
|
|
150
150
|
t && e || (process.env.NODE_ENV !== "production" ? F.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : F.UNSAFE_invariant(!1));
|
|
151
151
|
let o = {
|
|
152
152
|
router: t,
|
|
153
|
-
navigator:
|
|
153
|
+
navigator: Gt(),
|
|
154
154
|
static: !0,
|
|
155
155
|
staticContext: e,
|
|
156
156
|
basename: e.basename || "/"
|
|
@@ -222,10 +222,10 @@ function Ea(e) {
|
|
|
222
222
|
} : n[r] = o;
|
|
223
223
|
return n;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Gt() {
|
|
226
226
|
return {
|
|
227
|
-
createHref:
|
|
228
|
-
encodeLocation:
|
|
227
|
+
createHref: Ht,
|
|
228
|
+
encodeLocation: Ut,
|
|
229
229
|
push(e) {
|
|
230
230
|
throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
|
|
231
231
|
},
|
|
@@ -312,8 +312,8 @@ function Na(e, t, n = {}) {
|
|
|
312
312
|
revalidate() {
|
|
313
313
|
throw i("revalidate");
|
|
314
314
|
},
|
|
315
|
-
createHref:
|
|
316
|
-
encodeLocation:
|
|
315
|
+
createHref: Ht,
|
|
316
|
+
encodeLocation: Ut,
|
|
317
317
|
getFetcher() {
|
|
318
318
|
return F.IDLE_FETCHER;
|
|
319
319
|
},
|
|
@@ -339,10 +339,10 @@ function Na(e, t, n = {}) {
|
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Ht(e) {
|
|
343
343
|
return typeof e == "string" ? e : B.createPath(e);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Ut(e) {
|
|
346
346
|
let t = typeof e == "string" ? e : B.createPath(e);
|
|
347
347
|
t = t.replace(/ $/, "%20");
|
|
348
348
|
let n = Da.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
@@ -369,19 +369,19 @@ ve.createStaticRouter = Na;
|
|
|
369
369
|
const Ta = ({
|
|
370
370
|
router: e,
|
|
371
371
|
hydrate: t = !1
|
|
372
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
372
|
+
}) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(jt, { children: /* @__PURE__ */ a.jsx(Qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(gr, { router: e }) }) }) }), Fa = ({
|
|
373
373
|
router: e,
|
|
374
374
|
context: t,
|
|
375
375
|
helmetContext: n
|
|
376
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
377
|
-
var T,
|
|
376
|
+
}) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(jt, { context: n, children: /* @__PURE__ */ a.jsx(Oa, { router: e, context: t }) }) });
|
|
377
|
+
var T, Ct, La = (Ct = class extends Kt {
|
|
378
378
|
constructor(t = {}) {
|
|
379
379
|
super();
|
|
380
380
|
N(this, T);
|
|
381
381
|
this.config = t, S(this, T, /* @__PURE__ */ new Map());
|
|
382
382
|
}
|
|
383
383
|
build(t, n, r) {
|
|
384
|
-
const o = n.queryKey, s = n.queryHash ??
|
|
384
|
+
const o = n.queryKey, s = n.queryHash ?? $t(o, n);
|
|
385
385
|
let i = this.get(s);
|
|
386
386
|
return i || (i = new ea({
|
|
387
387
|
cache: this,
|
|
@@ -418,12 +418,12 @@ var T, Mt, La = (Mt = class extends Lt {
|
|
|
418
418
|
find(t) {
|
|
419
419
|
const n = { exact: !0, ...t };
|
|
420
420
|
return this.getAll().find(
|
|
421
|
-
(r) =>
|
|
421
|
+
(r) => mt(n, r)
|
|
422
422
|
);
|
|
423
423
|
}
|
|
424
424
|
findAll(t = {}) {
|
|
425
425
|
const n = this.getAll();
|
|
426
|
-
return Object.keys(t).length > 0 ? n.filter((r) =>
|
|
426
|
+
return Object.keys(t).length > 0 ? n.filter((r) => mt(t, r)) : n;
|
|
427
427
|
}
|
|
428
428
|
notify(t) {
|
|
429
429
|
E.batch(() => {
|
|
@@ -446,7 +446,7 @@ var T, Mt, La = (Mt = class extends Lt {
|
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
|
-
}, T = new WeakMap(),
|
|
449
|
+
}, T = new WeakMap(), Ct), R, me, St, Ka = (St = class extends Kt {
|
|
450
450
|
constructor(t = {}) {
|
|
451
451
|
super();
|
|
452
452
|
N(this, R);
|
|
@@ -454,7 +454,7 @@ var T, Mt, La = (Mt = class extends Lt {
|
|
|
454
454
|
this.config = t, S(this, R, /* @__PURE__ */ new Map()), S(this, me, Date.now());
|
|
455
455
|
}
|
|
456
456
|
build(t, n, r) {
|
|
457
|
-
const o = new
|
|
457
|
+
const o = new Mr({
|
|
458
458
|
mutationCache: this,
|
|
459
459
|
mutationId: ++Ce(this, me)._,
|
|
460
460
|
options: t.defaultMutationOptions(n),
|
|
@@ -498,11 +498,11 @@ var T, Mt, La = (Mt = class extends Lt {
|
|
|
498
498
|
find(t) {
|
|
499
499
|
const n = { exact: !0, ...t };
|
|
500
500
|
return this.getAll().find(
|
|
501
|
-
(r) =>
|
|
501
|
+
(r) => gt(n, r)
|
|
502
502
|
);
|
|
503
503
|
}
|
|
504
504
|
findAll(t = {}) {
|
|
505
|
-
return this.getAll().filter((n) =>
|
|
505
|
+
return this.getAll().filter((n) => gt(t, n));
|
|
506
506
|
}
|
|
507
507
|
notify(t) {
|
|
508
508
|
E.batch(() => {
|
|
@@ -519,7 +519,7 @@ var T, Mt, La = (Mt = class extends Lt {
|
|
|
519
519
|
)
|
|
520
520
|
);
|
|
521
521
|
}
|
|
522
|
-
}, R = new WeakMap(), me = new WeakMap(),
|
|
522
|
+
}, R = new WeakMap(), me = new WeakMap(), St);
|
|
523
523
|
function Se(e) {
|
|
524
524
|
var t;
|
|
525
525
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
@@ -560,7 +560,7 @@ function $a(e) {
|
|
|
560
560
|
};
|
|
561
561
|
let v;
|
|
562
562
|
if (s && i.length) {
|
|
563
|
-
const C = s === "backward", k = C ? Ba :
|
|
563
|
+
const C = s === "backward", k = C ? Ba : bt, L = {
|
|
564
564
|
pages: i,
|
|
565
565
|
pageParams: u
|
|
566
566
|
}, Y = k(o, L);
|
|
@@ -572,7 +572,7 @@ function $a(e) {
|
|
|
572
572
|
);
|
|
573
573
|
const C = e ?? i.length;
|
|
574
574
|
for (let k = 1; k < C; k++) {
|
|
575
|
-
const L =
|
|
575
|
+
const L = bt(o, v);
|
|
576
576
|
v = await h(v, L);
|
|
577
577
|
}
|
|
578
578
|
}
|
|
@@ -594,7 +594,7 @@ function $a(e) {
|
|
|
594
594
|
}
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function bt(e, { pages: t, pageParams: n }) {
|
|
598
598
|
const r = t.length - 1;
|
|
599
599
|
return e.getNextPageParam(
|
|
600
600
|
t[r],
|
|
@@ -613,34 +613,34 @@ function Ba(e, { pages: t, pageParams: n }) {
|
|
|
613
613
|
n
|
|
614
614
|
);
|
|
615
615
|
}
|
|
616
|
-
var w,
|
|
616
|
+
var w, G, H, ne, re, U, ae, oe, Pt, Qa = (Pt = class {
|
|
617
617
|
constructor(e = {}) {
|
|
618
618
|
N(this, w);
|
|
619
|
-
N(this, U);
|
|
620
619
|
N(this, G);
|
|
620
|
+
N(this, H);
|
|
621
621
|
N(this, ne);
|
|
622
622
|
N(this, re);
|
|
623
|
-
N(this,
|
|
623
|
+
N(this, U);
|
|
624
624
|
N(this, ae);
|
|
625
625
|
N(this, oe);
|
|
626
|
-
S(this, w, e.queryCache || new La()), S(this,
|
|
626
|
+
S(this, w, e.queryCache || new La()), S(this, G, e.mutationCache || new Ka()), S(this, H, e.defaultOptions || {}), S(this, ne, /* @__PURE__ */ new Map()), S(this, re, /* @__PURE__ */ new Map()), S(this, U, 0);
|
|
627
627
|
}
|
|
628
628
|
mount() {
|
|
629
|
-
Ce(this,
|
|
629
|
+
Ce(this, U)._++, f(this, U) === 1 && (S(this, ae, aa.subscribe(async (e) => {
|
|
630
630
|
e && (await this.resumePausedMutations(), f(this, w).onFocus());
|
|
631
|
-
})), S(this, oe,
|
|
631
|
+
})), S(this, oe, vt.subscribe(async (e) => {
|
|
632
632
|
e && (await this.resumePausedMutations(), f(this, w).onOnline());
|
|
633
633
|
})));
|
|
634
634
|
}
|
|
635
635
|
unmount() {
|
|
636
636
|
var e, t;
|
|
637
|
-
Ce(this,
|
|
637
|
+
Ce(this, U)._--, f(this, U) === 0 && ((e = f(this, ae)) == null || e.call(this), S(this, ae, void 0), (t = f(this, oe)) == null || t.call(this), S(this, oe, void 0));
|
|
638
638
|
}
|
|
639
639
|
isFetching(e) {
|
|
640
640
|
return f(this, w).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
641
641
|
}
|
|
642
642
|
isMutating(e) {
|
|
643
|
-
return f(this,
|
|
643
|
+
return f(this, G).findAll({ ...e, status: "pending" }).length;
|
|
644
644
|
}
|
|
645
645
|
getQueryData(e) {
|
|
646
646
|
var n;
|
|
@@ -653,7 +653,7 @@ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
|
|
|
653
653
|
return this.fetchQuery(e);
|
|
654
654
|
{
|
|
655
655
|
const n = this.defaultQueryOptions(e), r = f(this, w).build(this, n);
|
|
656
|
-
return e.revalidateIfStale && r.isStaleByTime(
|
|
656
|
+
return e.revalidateIfStale && r.isStaleByTime(xt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
getQueriesData(e) {
|
|
@@ -735,7 +735,7 @@ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
|
|
|
735
735
|
t.retry === void 0 && (t.retry = !1);
|
|
736
736
|
const n = f(this, w).build(this, t);
|
|
737
737
|
return n.isStaleByTime(
|
|
738
|
-
|
|
738
|
+
xt(t.staleTime, n)
|
|
739
739
|
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
740
740
|
}
|
|
741
741
|
prefetchQuery(e) {
|
|
@@ -748,22 +748,22 @@ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
|
|
|
748
748
|
return this.fetchInfiniteQuery(e).then($).catch($);
|
|
749
749
|
}
|
|
750
750
|
resumePausedMutations() {
|
|
751
|
-
return
|
|
751
|
+
return vt.isOnline() ? f(this, G).resumePausedMutations() : Promise.resolve();
|
|
752
752
|
}
|
|
753
753
|
getQueryCache() {
|
|
754
754
|
return f(this, w);
|
|
755
755
|
}
|
|
756
756
|
getMutationCache() {
|
|
757
|
-
return f(this,
|
|
757
|
+
return f(this, G);
|
|
758
758
|
}
|
|
759
759
|
getDefaultOptions() {
|
|
760
|
-
return f(this,
|
|
760
|
+
return f(this, H);
|
|
761
761
|
}
|
|
762
762
|
setDefaultOptions(e) {
|
|
763
|
-
S(this,
|
|
763
|
+
S(this, H, e);
|
|
764
764
|
}
|
|
765
765
|
setQueryDefaults(e, t) {
|
|
766
|
-
f(this, ne).set(
|
|
766
|
+
f(this, ne).set(yt(e), {
|
|
767
767
|
queryKey: e,
|
|
768
768
|
defaultOptions: t
|
|
769
769
|
});
|
|
@@ -772,11 +772,11 @@ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
|
|
|
772
772
|
const t = [...f(this, ne).values()];
|
|
773
773
|
let n = {};
|
|
774
774
|
return t.forEach((r) => {
|
|
775
|
-
|
|
775
|
+
wt(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
776
776
|
}), n;
|
|
777
777
|
}
|
|
778
778
|
setMutationDefaults(e, t) {
|
|
779
|
-
f(this, re).set(
|
|
779
|
+
f(this, re).set(yt(e), {
|
|
780
780
|
mutationKey: e,
|
|
781
781
|
defaultOptions: t
|
|
782
782
|
});
|
|
@@ -785,42 +785,42 @@ var w, U, G, ne, re, H, ae, oe, St, Qa = (St = class {
|
|
|
785
785
|
const t = [...f(this, re).values()];
|
|
786
786
|
let n = {};
|
|
787
787
|
return t.forEach((r) => {
|
|
788
|
-
|
|
788
|
+
wt(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
789
789
|
}), n;
|
|
790
790
|
}
|
|
791
791
|
defaultQueryOptions(e) {
|
|
792
792
|
if (e._defaulted)
|
|
793
793
|
return e;
|
|
794
794
|
const t = {
|
|
795
|
-
...f(this,
|
|
795
|
+
...f(this, H).queries,
|
|
796
796
|
...this.getQueryDefaults(e.queryKey),
|
|
797
797
|
...e,
|
|
798
798
|
_defaulted: !0
|
|
799
799
|
};
|
|
800
|
-
return t.queryHash || (t.queryHash =
|
|
800
|
+
return t.queryHash || (t.queryHash = $t(
|
|
801
801
|
t.queryKey,
|
|
802
802
|
t
|
|
803
803
|
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === sa && (t.enabled = !1), t;
|
|
804
804
|
}
|
|
805
805
|
defaultMutationOptions(e) {
|
|
806
806
|
return e != null && e._defaulted ? e : {
|
|
807
|
-
...f(this,
|
|
807
|
+
...f(this, H).mutations,
|
|
808
808
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
809
809
|
...e,
|
|
810
810
|
_defaulted: !0
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
813
|
clear() {
|
|
814
|
-
f(this, w).clear(), f(this,
|
|
814
|
+
f(this, w).clear(), f(this, G).clear();
|
|
815
815
|
}
|
|
816
|
-
}, w = new WeakMap(),
|
|
817
|
-
const qa =
|
|
816
|
+
}, w = new WeakMap(), G = new WeakMap(), H = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), U = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), Pt);
|
|
817
|
+
const qa = Ot(null), $e = {
|
|
818
818
|
didCatch: !1,
|
|
819
819
|
error: null
|
|
820
820
|
};
|
|
821
|
-
class
|
|
821
|
+
class Ga extends Hr {
|
|
822
822
|
constructor(t) {
|
|
823
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
823
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = $e;
|
|
824
824
|
}
|
|
825
825
|
static getDerivedStateFromError(t) {
|
|
826
826
|
return {
|
|
@@ -838,7 +838,7 @@ class Ua extends Gr {
|
|
|
838
838
|
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
839
839
|
args: s,
|
|
840
840
|
reason: "imperative-api"
|
|
841
|
-
}), this.setState(
|
|
841
|
+
}), this.setState($e);
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
componentDidCatch(t, n) {
|
|
@@ -851,13 +851,13 @@ class Ua extends Gr {
|
|
|
851
851
|
} = this.state, {
|
|
852
852
|
resetKeys: o
|
|
853
853
|
} = this.props;
|
|
854
|
-
if (r && n.error !== null &&
|
|
854
|
+
if (r && n.error !== null && Ha(t.resetKeys, o)) {
|
|
855
855
|
var s, i;
|
|
856
856
|
(s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
|
|
857
857
|
next: o,
|
|
858
858
|
prev: t.resetKeys,
|
|
859
859
|
reason: "keys"
|
|
860
|
-
}), this.setState(
|
|
860
|
+
}), this.setState($e);
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
render() {
|
|
@@ -879,13 +879,13 @@ class Ua extends Gr {
|
|
|
879
879
|
if (typeof n == "function")
|
|
880
880
|
u = n(l);
|
|
881
881
|
else if (r)
|
|
882
|
-
u =
|
|
883
|
-
else if (o === null ||
|
|
882
|
+
u = pt(r, l);
|
|
883
|
+
else if (o === null || Ur(o))
|
|
884
884
|
u = o;
|
|
885
885
|
else
|
|
886
886
|
throw i;
|
|
887
887
|
}
|
|
888
|
-
return
|
|
888
|
+
return pt(qa.Provider, {
|
|
889
889
|
value: {
|
|
890
890
|
didCatch: s,
|
|
891
891
|
error: i,
|
|
@@ -894,11 +894,11 @@ class Ua extends Gr {
|
|
|
894
894
|
}, u);
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function Ha() {
|
|
898
898
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
899
899
|
return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
|
|
900
900
|
}
|
|
901
|
-
const
|
|
901
|
+
const Ua = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", za = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Va = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Ya = (e) => "initialize" in e && typeof e.initialize == "function", Xa = (e) => "getHead" in e && typeof e.getHead == "function", Wa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ja = (e) => "getIdentities" in e && typeof e.getIdentities == "function", zt = new Qa();
|
|
902
902
|
class Za {
|
|
903
903
|
constructor(t) {
|
|
904
904
|
j(this, "plugins");
|
|
@@ -919,7 +919,7 @@ class Za {
|
|
|
919
919
|
);
|
|
920
920
|
});
|
|
921
921
|
j(this, "invalidateCache", async (t) => {
|
|
922
|
-
await
|
|
922
|
+
await zt.invalidateQueries({ queryKey: t });
|
|
923
923
|
});
|
|
924
924
|
j(this, "getApiIdentities", async () => (await Promise.all(
|
|
925
925
|
this.plugins.filter(Ja).map((n) => n.getIdentities(this))
|
|
@@ -942,22 +942,22 @@ class Za {
|
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
function eo({ error: e, resetErrorBoundary: t }) {
|
|
945
|
-
return /* @__PURE__ */ a.jsx(
|
|
945
|
+
return /* @__PURE__ */ a.jsx(Et, { error: e });
|
|
946
946
|
}
|
|
947
947
|
const Pe = globalThis;
|
|
948
948
|
(!Pe.requestIdleCallback || !Pe.cancelIdleCallback) && (Pe.requestIdleCallback = (e) => setTimeout(e, 1), Pe.cancelIdleCallback = clearTimeout);
|
|
949
|
-
var
|
|
950
|
-
ltr: [...
|
|
951
|
-
rtl: [...
|
|
949
|
+
var qe = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], no = [...to, ...Vt], ro = {
|
|
950
|
+
ltr: [...qe, "ArrowRight"],
|
|
951
|
+
rtl: [...qe, "ArrowLeft"]
|
|
952
952
|
}, ao = {
|
|
953
953
|
ltr: ["ArrowLeft"],
|
|
954
954
|
rtl: ["ArrowRight"]
|
|
955
|
-
}, xe = "Menu", [fe, oo, so] =
|
|
955
|
+
}, xe = "Menu", [fe, oo, so] = Cr(xe), [J, Yt] = _t(xe, [
|
|
956
956
|
so,
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
]), ye =
|
|
960
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, g] = c.useState(null), p = c.useRef(!1), d =
|
|
957
|
+
Nt,
|
|
958
|
+
Qt
|
|
959
|
+
]), ye = Nt(), Xt = Qt(), [Wt, z] = J(xe), [io, we] = J(xe), Jt = (e) => {
|
|
960
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, g] = c.useState(null), p = c.useRef(!1), d = Ue(s), h = Ar(o);
|
|
961
961
|
return c.useEffect(() => {
|
|
962
962
|
const v = () => {
|
|
963
963
|
p.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
|
|
@@ -965,8 +965,8 @@ var Ue = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp",
|
|
|
965
965
|
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
966
966
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
|
|
967
967
|
};
|
|
968
|
-
}, []), /* @__PURE__ */ a.jsx(
|
|
969
|
-
|
|
968
|
+
}, []), /* @__PURE__ */ a.jsx(It, { ...u, children: /* @__PURE__ */ a.jsx(
|
|
969
|
+
Wt,
|
|
970
970
|
{
|
|
971
971
|
scope: t,
|
|
972
972
|
open: n,
|
|
@@ -987,32 +987,32 @@ var Ue = ["Enter", " "], to = ["ArrowDown", "PageUp", "Home"], zt = ["ArrowUp",
|
|
|
987
987
|
}
|
|
988
988
|
) });
|
|
989
989
|
};
|
|
990
|
-
|
|
990
|
+
Jt.displayName = xe;
|
|
991
991
|
var co = "MenuAnchor", Je = c.forwardRef(
|
|
992
992
|
(e, t) => {
|
|
993
993
|
const { __scopeMenu: n, ...r } = e, o = ye(n);
|
|
994
|
-
return /* @__PURE__ */ a.jsx(
|
|
994
|
+
return /* @__PURE__ */ a.jsx(Sr, { ...o, ...r, ref: t });
|
|
995
995
|
}
|
|
996
996
|
);
|
|
997
997
|
Je.displayName = co;
|
|
998
|
-
var Ze = "MenuPortal", [uo,
|
|
998
|
+
var Ze = "MenuPortal", [uo, Zt] = J(Ze, {
|
|
999
999
|
forceMount: void 0
|
|
1000
|
-
}),
|
|
1000
|
+
}), en = (e) => {
|
|
1001
1001
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = z(Ze, t);
|
|
1002
|
-
return /* @__PURE__ */ a.jsx(uo, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(
|
|
1002
|
+
return /* @__PURE__ */ a.jsx(uo, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Or, { asChild: !0, container: o, children: r }) }) });
|
|
1003
1003
|
};
|
|
1004
|
-
|
|
1005
|
-
var D = "MenuContent", [lo, et] = J(D),
|
|
1004
|
+
en.displayName = Ze;
|
|
1005
|
+
var D = "MenuContent", [lo, et] = J(D), tn = c.forwardRef(
|
|
1006
1006
|
(e, t) => {
|
|
1007
|
-
const n =
|
|
1008
|
-
return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
|
|
1007
|
+
const n = Zt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu);
|
|
1008
|
+
return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ho, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(fo, { ...o, ref: t }) }) }) });
|
|
1009
1009
|
}
|
|
1010
1010
|
), ho = c.forwardRef(
|
|
1011
1011
|
(e, t) => {
|
|
1012
1012
|
const n = z(D, e.__scopeMenu), r = c.useRef(null), o = ge(t, r);
|
|
1013
1013
|
return c.useEffect(() => {
|
|
1014
1014
|
const s = r.current;
|
|
1015
|
-
if (s) return
|
|
1015
|
+
if (s) return Pr(s);
|
|
1016
1016
|
}, []), /* @__PURE__ */ a.jsx(
|
|
1017
1017
|
tt,
|
|
1018
1018
|
{
|
|
@@ -1060,17 +1060,17 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
|
|
|
1060
1060
|
onDismiss: v,
|
|
1061
1061
|
disableOutsideScroll: x,
|
|
1062
1062
|
...M
|
|
1063
|
-
} = e, I = z(D, n), Q = we(D, n), V = ye(n), C =
|
|
1063
|
+
} = e, I = z(D, n), Q = we(D, n), V = ye(n), C = Xt(n), k = oo(n), [L, Y] = c.useState(null), Z = c.useRef(null), be = ge(t, Z, I.onContentChange), X = c.useRef(0), Me = c.useRef(""), ar = c.useRef(0), Ae = c.useRef(null), it = c.useRef("right"), Oe = c.useRef(0), or = x ? Dr : c.Fragment, sr = x ? { as: Ir, allowPinchZoom: !0 } : void 0, ir = (m) => {
|
|
1064
1064
|
var te, ut;
|
|
1065
|
-
const _ = Me.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement,
|
|
1065
|
+
const _ = Me.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement, Te = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Fe = A.map((K) => K.textValue), ct = Po(Fe, _, Te), le = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
|
|
1066
1066
|
(function K(lt) {
|
|
1067
1067
|
Me.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
|
|
1068
1068
|
})(_), le && setTimeout(() => le.focus());
|
|
1069
1069
|
};
|
|
1070
|
-
c.useEffect(() => () => window.clearTimeout(X.current), []),
|
|
1070
|
+
c.useEffect(() => () => window.clearTimeout(X.current), []), jr();
|
|
1071
1071
|
const ee = c.useCallback((m) => {
|
|
1072
1072
|
var A, q;
|
|
1073
|
-
return it.current === ((A =
|
|
1073
|
+
return it.current === ((A = Ae.current) == null ? void 0 : A.side) && Ro(m, (q = Ae.current) == null ? void 0 : q.area);
|
|
1074
1074
|
}, []);
|
|
1075
1075
|
return /* @__PURE__ */ a.jsx(
|
|
1076
1076
|
lo,
|
|
@@ -1096,12 +1096,12 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
|
|
|
1096
1096
|
},
|
|
1097
1097
|
[ee]
|
|
1098
1098
|
),
|
|
1099
|
-
pointerGraceTimerRef:
|
|
1099
|
+
pointerGraceTimerRef: ar,
|
|
1100
1100
|
onPointerGraceIntentChange: c.useCallback((m) => {
|
|
1101
|
-
|
|
1101
|
+
Ae.current = m;
|
|
1102
1102
|
}, []),
|
|
1103
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1104
|
-
|
|
1103
|
+
children: /* @__PURE__ */ a.jsx(or, { ...sr, children: /* @__PURE__ */ a.jsx(
|
|
1104
|
+
Rr,
|
|
1105
1105
|
{
|
|
1106
1106
|
asChild: !0,
|
|
1107
1107
|
trapped: o,
|
|
@@ -1111,7 +1111,7 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
|
|
|
1111
1111
|
}),
|
|
1112
1112
|
onUnmountAutoFocus: i,
|
|
1113
1113
|
children: /* @__PURE__ */ a.jsx(
|
|
1114
|
-
|
|
1114
|
+
Er,
|
|
1115
1115
|
{
|
|
1116
1116
|
asChild: !0,
|
|
1117
1117
|
disableOutsidePointerEvents: u,
|
|
@@ -1135,11 +1135,11 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
|
|
|
1135
1135
|
}),
|
|
1136
1136
|
preventScrollOnEntryFocus: !0,
|
|
1137
1137
|
children: /* @__PURE__ */ a.jsx(
|
|
1138
|
-
|
|
1138
|
+
_r,
|
|
1139
1139
|
{
|
|
1140
1140
|
role: "menu",
|
|
1141
1141
|
"aria-orientation": "vertical",
|
|
1142
|
-
"data-state":
|
|
1142
|
+
"data-state": yn(I.open),
|
|
1143
1143
|
"data-radix-menu-content": "",
|
|
1144
1144
|
dir: Q.dir,
|
|
1145
1145
|
...V,
|
|
@@ -1147,13 +1147,13 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
|
|
|
1147
1147
|
ref: be,
|
|
1148
1148
|
style: { outline: "none", ...M.style },
|
|
1149
1149
|
onKeyDown: y(M.onKeyDown, (m) => {
|
|
1150
|
-
const A = m.target.closest("[data-radix-menu-content]") === m.currentTarget, q = m.ctrlKey || m.altKey || m.metaKey,
|
|
1151
|
-
A && (m.key === "Tab" && m.preventDefault(), !q &&
|
|
1152
|
-
const
|
|
1153
|
-
if (m.target !==
|
|
1150
|
+
const A = m.target.closest("[data-radix-menu-content]") === m.currentTarget, q = m.ctrlKey || m.altKey || m.metaKey, Te = m.key.length === 1;
|
|
1151
|
+
A && (m.key === "Tab" && m.preventDefault(), !q && Te && ir(m.key));
|
|
1152
|
+
const Fe = Z.current;
|
|
1153
|
+
if (m.target !== Fe || !no.includes(m.key)) return;
|
|
1154
1154
|
m.preventDefault();
|
|
1155
1155
|
const le = k().filter((te) => !te.disabled).map((te) => te.ref.current);
|
|
1156
|
-
|
|
1156
|
+
Vt.includes(m.key) && le.reverse(), Co(le);
|
|
1157
1157
|
}),
|
|
1158
1158
|
onBlur: y(e.onBlur, (m) => {
|
|
1159
1159
|
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), Me.current = "");
|
|
@@ -1161,10 +1161,10 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
|
|
|
1161
1161
|
onPointerMove: y(
|
|
1162
1162
|
e.onPointerMove,
|
|
1163
1163
|
pe((m) => {
|
|
1164
|
-
const _ = m.target, A =
|
|
1164
|
+
const _ = m.target, A = Oe.current !== m.clientX;
|
|
1165
1165
|
if (m.currentTarget.contains(_) && A) {
|
|
1166
|
-
const q = m.clientX >
|
|
1167
|
-
it.current = q,
|
|
1166
|
+
const q = m.clientX > Oe.current ? "right" : "left";
|
|
1167
|
+
it.current = q, Oe.current = m.clientX;
|
|
1168
1168
|
}
|
|
1169
1169
|
})
|
|
1170
1170
|
)
|
|
@@ -1180,7 +1180,7 @@ var D = "MenuContent", [lo, et] = J(D), en = c.forwardRef(
|
|
|
1180
1180
|
);
|
|
1181
1181
|
}
|
|
1182
1182
|
);
|
|
1183
|
-
|
|
1183
|
+
tn.displayName = D;
|
|
1184
1184
|
var po = "MenuGroup", nt = c.forwardRef(
|
|
1185
1185
|
(e, t) => {
|
|
1186
1186
|
const { __scopeMenu: n, ...r } = e;
|
|
@@ -1188,24 +1188,24 @@ var po = "MenuGroup", nt = c.forwardRef(
|
|
|
1188
1188
|
}
|
|
1189
1189
|
);
|
|
1190
1190
|
nt.displayName = po;
|
|
1191
|
-
var mo = "MenuLabel",
|
|
1191
|
+
var mo = "MenuLabel", nn = c.forwardRef(
|
|
1192
1192
|
(e, t) => {
|
|
1193
1193
|
const { __scopeMenu: n, ...r } = e;
|
|
1194
1194
|
return /* @__PURE__ */ a.jsx(ce.div, { ...r, ref: t });
|
|
1195
1195
|
}
|
|
1196
1196
|
);
|
|
1197
|
-
|
|
1198
|
-
var
|
|
1197
|
+
nn.displayName = mo;
|
|
1198
|
+
var Ee = "MenuItem", Mt = "menu.itemSelect", ke = c.forwardRef(
|
|
1199
1199
|
(e, t) => {
|
|
1200
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(
|
|
1200
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(Ee, e.__scopeMenu), u = et(Ee, e.__scopeMenu), l = ge(t, s), g = c.useRef(!1), p = () => {
|
|
1201
1201
|
const d = s.current;
|
|
1202
1202
|
if (!n && d) {
|
|
1203
|
-
const h = new CustomEvent(
|
|
1204
|
-
d.addEventListener(
|
|
1203
|
+
const h = new CustomEvent(Mt, { bubbles: !0, cancelable: !0 });
|
|
1204
|
+
d.addEventListener(Mt, (v) => r == null ? void 0 : r(v), { once: !0 }), kr(d, h), h.defaultPrevented ? g.current = !1 : i.onClose();
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
1207
|
return /* @__PURE__ */ a.jsx(
|
|
1208
|
-
|
|
1208
|
+
rn,
|
|
1209
1209
|
{
|
|
1210
1210
|
...o,
|
|
1211
1211
|
ref: l,
|
|
@@ -1221,16 +1221,16 @@ var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
|
|
|
1221
1221
|
}),
|
|
1222
1222
|
onKeyDown: y(e.onKeyDown, (d) => {
|
|
1223
1223
|
const h = u.searchRef.current !== "";
|
|
1224
|
-
n || h && d.key === " " ||
|
|
1224
|
+
n || h && d.key === " " || qe.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
|
|
1225
1225
|
})
|
|
1226
1226
|
}
|
|
1227
1227
|
);
|
|
1228
1228
|
}
|
|
1229
1229
|
);
|
|
1230
|
-
|
|
1231
|
-
var
|
|
1230
|
+
ke.displayName = Ee;
|
|
1231
|
+
var rn = c.forwardRef(
|
|
1232
1232
|
(e, t) => {
|
|
1233
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = et(
|
|
1233
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = et(Ee, n), u = Xt(n), l = c.useRef(null), g = ge(t, l), [p, d] = c.useState(!1), [h, v] = c.useState("");
|
|
1234
1234
|
return c.useEffect(() => {
|
|
1235
1235
|
const x = l.current;
|
|
1236
1236
|
x && v((x.textContent ?? "").trim());
|
|
@@ -1266,43 +1266,43 @@ var nn = c.forwardRef(
|
|
|
1266
1266
|
}
|
|
1267
1267
|
);
|
|
1268
1268
|
}
|
|
1269
|
-
), go = "MenuCheckboxItem",
|
|
1269
|
+
), go = "MenuCheckboxItem", an = c.forwardRef(
|
|
1270
1270
|
(e, t) => {
|
|
1271
1271
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
1272
|
-
return /* @__PURE__ */ a.jsx(
|
|
1273
|
-
|
|
1272
|
+
return /* @__PURE__ */ a.jsx(ln, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
|
|
1273
|
+
ke,
|
|
1274
1274
|
{
|
|
1275
1275
|
role: "menuitemcheckbox",
|
|
1276
|
-
"aria-checked":
|
|
1276
|
+
"aria-checked": _e(n) ? "mixed" : n,
|
|
1277
1277
|
...o,
|
|
1278
1278
|
ref: t,
|
|
1279
1279
|
"data-state": ot(n),
|
|
1280
1280
|
onSelect: y(
|
|
1281
1281
|
o.onSelect,
|
|
1282
|
-
() => r == null ? void 0 : r(
|
|
1282
|
+
() => r == null ? void 0 : r(_e(n) ? !0 : !n),
|
|
1283
1283
|
{ checkForDefaultPrevented: !1 }
|
|
1284
1284
|
)
|
|
1285
1285
|
}
|
|
1286
1286
|
) });
|
|
1287
1287
|
}
|
|
1288
1288
|
);
|
|
1289
|
-
|
|
1290
|
-
var
|
|
1291
|
-
|
|
1289
|
+
an.displayName = go;
|
|
1290
|
+
var on = "MenuRadioGroup", [vo, xo] = J(
|
|
1291
|
+
on,
|
|
1292
1292
|
{ value: void 0, onValueChange: () => {
|
|
1293
1293
|
} }
|
|
1294
|
-
),
|
|
1294
|
+
), sn = c.forwardRef(
|
|
1295
1295
|
(e, t) => {
|
|
1296
|
-
const { value: n, onValueChange: r, ...o } = e, s =
|
|
1296
|
+
const { value: n, onValueChange: r, ...o } = e, s = Ue(r);
|
|
1297
1297
|
return /* @__PURE__ */ a.jsx(vo, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(nt, { ...o, ref: t }) });
|
|
1298
1298
|
}
|
|
1299
1299
|
);
|
|
1300
|
-
|
|
1301
|
-
var
|
|
1300
|
+
sn.displayName = on;
|
|
1301
|
+
var cn = "MenuRadioItem", un = c.forwardRef(
|
|
1302
1302
|
(e, t) => {
|
|
1303
|
-
const { value: n, ...r } = e, o = xo(
|
|
1304
|
-
return /* @__PURE__ */ a.jsx(
|
|
1305
|
-
|
|
1303
|
+
const { value: n, ...r } = e, o = xo(cn, e.__scopeMenu), s = n === o.value;
|
|
1304
|
+
return /* @__PURE__ */ a.jsx(ln, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
|
|
1305
|
+
ke,
|
|
1306
1306
|
{
|
|
1307
1307
|
role: "menuitemradio",
|
|
1308
1308
|
"aria-checked": s,
|
|
@@ -1321,17 +1321,17 @@ var sn = "MenuRadioItem", cn = c.forwardRef(
|
|
|
1321
1321
|
) });
|
|
1322
1322
|
}
|
|
1323
1323
|
);
|
|
1324
|
-
|
|
1325
|
-
var rt = "MenuItemIndicator", [
|
|
1324
|
+
un.displayName = cn;
|
|
1325
|
+
var rt = "MenuItemIndicator", [ln, yo] = J(
|
|
1326
1326
|
rt,
|
|
1327
1327
|
{ checked: !1 }
|
|
1328
|
-
),
|
|
1328
|
+
), dn = c.forwardRef(
|
|
1329
1329
|
(e, t) => {
|
|
1330
1330
|
const { __scopeMenu: n, forceMount: r, ...o } = e, s = yo(rt, n);
|
|
1331
1331
|
return /* @__PURE__ */ a.jsx(
|
|
1332
|
-
|
|
1332
|
+
Ie,
|
|
1333
1333
|
{
|
|
1334
|
-
present: r ||
|
|
1334
|
+
present: r || _e(s.checked) || s.checked === !0,
|
|
1335
1335
|
children: /* @__PURE__ */ a.jsx(
|
|
1336
1336
|
ce.span,
|
|
1337
1337
|
{
|
|
@@ -1344,8 +1344,8 @@ var rt = "MenuItemIndicator", [un, yo] = J(
|
|
|
1344
1344
|
);
|
|
1345
1345
|
}
|
|
1346
1346
|
);
|
|
1347
|
-
|
|
1348
|
-
var wo = "MenuSeparator",
|
|
1347
|
+
dn.displayName = rt;
|
|
1348
|
+
var wo = "MenuSeparator", hn = c.forwardRef(
|
|
1349
1349
|
(e, t) => {
|
|
1350
1350
|
const { __scopeMenu: n, ...r } = e;
|
|
1351
1351
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -1359,18 +1359,18 @@ var wo = "MenuSeparator", dn = c.forwardRef(
|
|
|
1359
1359
|
);
|
|
1360
1360
|
}
|
|
1361
1361
|
);
|
|
1362
|
-
|
|
1363
|
-
var bo = "MenuArrow",
|
|
1362
|
+
hn.displayName = wo;
|
|
1363
|
+
var bo = "MenuArrow", fn = c.forwardRef(
|
|
1364
1364
|
(e, t) => {
|
|
1365
1365
|
const { __scopeMenu: n, ...r } = e, o = ye(n);
|
|
1366
|
-
return /* @__PURE__ */ a.jsx(
|
|
1366
|
+
return /* @__PURE__ */ a.jsx(Nr, { ...o, ...r, ref: t });
|
|
1367
1367
|
}
|
|
1368
1368
|
);
|
|
1369
|
-
|
|
1370
|
-
var at = "MenuSub", [Mo,
|
|
1371
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = z(at, t), i = ye(t), [u, l] = c.useState(null), [g, p] = c.useState(null), d =
|
|
1372
|
-
return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ a.jsx(
|
|
1373
|
-
|
|
1369
|
+
fn.displayName = bo;
|
|
1370
|
+
var at = "MenuSub", [Mo, pn] = J(at), mn = (e) => {
|
|
1371
|
+
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = z(at, t), i = ye(t), [u, l] = c.useState(null), [g, p] = c.useState(null), d = Ue(o);
|
|
1372
|
+
return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ a.jsx(It, { ...i, children: /* @__PURE__ */ a.jsx(
|
|
1373
|
+
Wt,
|
|
1374
1374
|
{
|
|
1375
1375
|
scope: t,
|
|
1376
1376
|
open: r,
|
|
@@ -1381,8 +1381,8 @@ var at = "MenuSub", [Mo, fn] = J(at), pn = (e) => {
|
|
|
1381
1381
|
Mo,
|
|
1382
1382
|
{
|
|
1383
1383
|
scope: t,
|
|
1384
|
-
contentId:
|
|
1385
|
-
triggerId:
|
|
1384
|
+
contentId: Re(),
|
|
1385
|
+
triggerId: Re(),
|
|
1386
1386
|
trigger: u,
|
|
1387
1387
|
onTriggerChange: l,
|
|
1388
1388
|
children: n
|
|
@@ -1391,10 +1391,10 @@ var at = "MenuSub", [Mo, fn] = J(at), pn = (e) => {
|
|
|
1391
1391
|
}
|
|
1392
1392
|
) });
|
|
1393
1393
|
};
|
|
1394
|
-
|
|
1395
|
-
var de = "MenuSubTrigger",
|
|
1394
|
+
mn.displayName = at;
|
|
1395
|
+
var de = "MenuSubTrigger", gn = c.forwardRef(
|
|
1396
1396
|
(e, t) => {
|
|
1397
|
-
const n = z(de, e.__scopeMenu), r = we(de, e.__scopeMenu), o =
|
|
1397
|
+
const n = z(de, e.__scopeMenu), r = we(de, e.__scopeMenu), o = pn(de, e.__scopeMenu), s = et(de, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: l } = s, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
|
|
1398
1398
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
1399
1399
|
}, []);
|
|
1400
1400
|
return c.useEffect(() => p, [p]), c.useEffect(() => {
|
|
@@ -1403,15 +1403,15 @@ var de = "MenuSubTrigger", mn = c.forwardRef(
|
|
|
1403
1403
|
window.clearTimeout(d), l(null);
|
|
1404
1404
|
};
|
|
1405
1405
|
}, [u, l]), /* @__PURE__ */ a.jsx(Je, { asChild: !0, ...g, children: /* @__PURE__ */ a.jsx(
|
|
1406
|
-
|
|
1406
|
+
rn,
|
|
1407
1407
|
{
|
|
1408
1408
|
id: o.triggerId,
|
|
1409
1409
|
"aria-haspopup": "menu",
|
|
1410
1410
|
"aria-expanded": n.open,
|
|
1411
1411
|
"aria-controls": o.contentId,
|
|
1412
|
-
"data-state":
|
|
1412
|
+
"data-state": yn(n.open),
|
|
1413
1413
|
...e,
|
|
1414
|
-
ref:
|
|
1414
|
+
ref: Dt(t, o.onTriggerChange),
|
|
1415
1415
|
onClick: (d) => {
|
|
1416
1416
|
var h;
|
|
1417
1417
|
(h = e.onClick) == null || h.call(e, d), !(e.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
@@ -1462,11 +1462,11 @@ var de = "MenuSubTrigger", mn = c.forwardRef(
|
|
|
1462
1462
|
) });
|
|
1463
1463
|
}
|
|
1464
1464
|
);
|
|
1465
|
-
|
|
1466
|
-
var
|
|
1465
|
+
gn.displayName = de;
|
|
1466
|
+
var vn = "MenuSubContent", xn = c.forwardRef(
|
|
1467
1467
|
(e, t) => {
|
|
1468
|
-
const n =
|
|
1469
|
-
return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
|
|
1468
|
+
const n = Zt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = z(D, e.__scopeMenu), i = we(D, e.__scopeMenu), u = pn(vn, e.__scopeMenu), l = c.useRef(null), g = ge(t, l);
|
|
1469
|
+
return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
|
|
1470
1470
|
tt,
|
|
1471
1471
|
{
|
|
1472
1472
|
id: u.contentId,
|
|
@@ -1498,15 +1498,15 @@ var gn = "MenuSubContent", vn = c.forwardRef(
|
|
|
1498
1498
|
) }) }) });
|
|
1499
1499
|
}
|
|
1500
1500
|
);
|
|
1501
|
-
|
|
1502
|
-
function
|
|
1501
|
+
xn.displayName = vn;
|
|
1502
|
+
function yn(e) {
|
|
1503
1503
|
return e ? "open" : "closed";
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function _e(e) {
|
|
1506
1506
|
return e === "indeterminate";
|
|
1507
1507
|
}
|
|
1508
1508
|
function ot(e) {
|
|
1509
|
-
return
|
|
1509
|
+
return _e(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1510
1510
|
}
|
|
1511
1511
|
function Co(e) {
|
|
1512
1512
|
const t = document.activeElement;
|
|
@@ -1542,10 +1542,10 @@ function Ro(e, t) {
|
|
|
1542
1542
|
function pe(e) {
|
|
1543
1543
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1544
1544
|
}
|
|
1545
|
-
var Eo =
|
|
1545
|
+
var Eo = Jt, _o = Je, No = en, Do = tn, Io = nt, ko = nn, Ao = ke, Oo = an, To = sn, Fo = un, Lo = dn, Ko = hn, $o = fn, Bo = mn, Qo = gn, qo = xn, st = "DropdownMenu", [Go, Hs] = _t(
|
|
1546
1546
|
st,
|
|
1547
|
-
[
|
|
1548
|
-
), P =
|
|
1547
|
+
[Yt]
|
|
1548
|
+
), P = Yt(), [Ho, wn] = Go(st), bn = (e) => {
|
|
1549
1549
|
const {
|
|
1550
1550
|
__scopeDropdownMenu: t,
|
|
1551
1551
|
children: n,
|
|
@@ -1554,18 +1554,18 @@ var Eo = Wt, _o = Je, No = Zt, Do = en, Io = nt, ko = tn, Ao = Ae, Oo = rn, To =
|
|
|
1554
1554
|
defaultOpen: s,
|
|
1555
1555
|
onOpenChange: i,
|
|
1556
1556
|
modal: u = !0
|
|
1557
|
-
} = e, l = P(t), g = c.useRef(null), [p = !1, d] =
|
|
1557
|
+
} = e, l = P(t), g = c.useRef(null), [p = !1, d] = kt({
|
|
1558
1558
|
prop: o,
|
|
1559
1559
|
defaultProp: s,
|
|
1560
1560
|
onChange: i
|
|
1561
1561
|
});
|
|
1562
1562
|
return /* @__PURE__ */ a.jsx(
|
|
1563
|
-
|
|
1563
|
+
Ho,
|
|
1564
1564
|
{
|
|
1565
1565
|
scope: t,
|
|
1566
|
-
triggerId:
|
|
1566
|
+
triggerId: Re(),
|
|
1567
1567
|
triggerRef: g,
|
|
1568
|
-
contentId:
|
|
1568
|
+
contentId: Re(),
|
|
1569
1569
|
open: p,
|
|
1570
1570
|
onOpenChange: d,
|
|
1571
1571
|
onOpenToggle: c.useCallback(() => d((h) => !h), [d]),
|
|
@@ -1574,10 +1574,10 @@ var Eo = Wt, _o = Je, No = Zt, Do = en, Io = nt, ko = tn, Ao = Ae, Oo = rn, To =
|
|
|
1574
1574
|
}
|
|
1575
1575
|
);
|
|
1576
1576
|
};
|
|
1577
|
-
|
|
1578
|
-
var
|
|
1577
|
+
bn.displayName = st;
|
|
1578
|
+
var Mn = "DropdownMenuTrigger", Cn = c.forwardRef(
|
|
1579
1579
|
(e, t) => {
|
|
1580
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s =
|
|
1580
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = wn(Mn, n), i = P(n);
|
|
1581
1581
|
return /* @__PURE__ */ a.jsx(_o, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
|
|
1582
1582
|
ce.button,
|
|
1583
1583
|
{
|
|
@@ -1590,7 +1590,7 @@ var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
|
|
|
1590
1590
|
"data-disabled": r ? "" : void 0,
|
|
1591
1591
|
disabled: r,
|
|
1592
1592
|
...o,
|
|
1593
|
-
ref:
|
|
1593
|
+
ref: Dt(t, s.triggerRef),
|
|
1594
1594
|
onPointerDown: y(e.onPointerDown, (u) => {
|
|
1595
1595
|
!r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
|
|
1596
1596
|
}),
|
|
@@ -1601,15 +1601,15 @@ var bn = "DropdownMenuTrigger", Mn = c.forwardRef(
|
|
|
1601
1601
|
) });
|
|
1602
1602
|
}
|
|
1603
1603
|
);
|
|
1604
|
-
|
|
1605
|
-
var
|
|
1604
|
+
Cn.displayName = Mn;
|
|
1605
|
+
var Uo = "DropdownMenuPortal", Sn = (e) => {
|
|
1606
1606
|
const { __scopeDropdownMenu: t, ...n } = e, r = P(t);
|
|
1607
1607
|
return /* @__PURE__ */ a.jsx(No, { ...r, ...n });
|
|
1608
1608
|
};
|
|
1609
|
-
|
|
1610
|
-
var
|
|
1609
|
+
Sn.displayName = Uo;
|
|
1610
|
+
var Pn = "DropdownMenuContent", jn = c.forwardRef(
|
|
1611
1611
|
(e, t) => {
|
|
1612
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1612
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = wn(Pn, n), s = P(n), i = c.useRef(!1);
|
|
1613
1613
|
return /* @__PURE__ */ a.jsx(
|
|
1614
1614
|
Do,
|
|
1615
1615
|
{
|
|
@@ -1638,7 +1638,7 @@ var Sn = "DropdownMenuContent", Pn = c.forwardRef(
|
|
|
1638
1638
|
);
|
|
1639
1639
|
}
|
|
1640
1640
|
);
|
|
1641
|
-
|
|
1641
|
+
jn.displayName = Pn;
|
|
1642
1642
|
var zo = "DropdownMenuGroup", Vo = c.forwardRef(
|
|
1643
1643
|
(e, t) => {
|
|
1644
1644
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
@@ -1646,45 +1646,45 @@ var zo = "DropdownMenuGroup", Vo = c.forwardRef(
|
|
|
1646
1646
|
}
|
|
1647
1647
|
);
|
|
1648
1648
|
Vo.displayName = zo;
|
|
1649
|
-
var Yo = "DropdownMenuLabel",
|
|
1649
|
+
var Yo = "DropdownMenuLabel", Rn = c.forwardRef(
|
|
1650
1650
|
(e, t) => {
|
|
1651
1651
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1652
1652
|
return /* @__PURE__ */ a.jsx(ko, { ...o, ...r, ref: t });
|
|
1653
1653
|
}
|
|
1654
1654
|
);
|
|
1655
|
-
|
|
1656
|
-
var Xo = "DropdownMenuItem",
|
|
1655
|
+
Rn.displayName = Yo;
|
|
1656
|
+
var Xo = "DropdownMenuItem", En = c.forwardRef(
|
|
1657
1657
|
(e, t) => {
|
|
1658
1658
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1659
1659
|
return /* @__PURE__ */ a.jsx(Ao, { ...o, ...r, ref: t });
|
|
1660
1660
|
}
|
|
1661
1661
|
);
|
|
1662
|
-
|
|
1663
|
-
var Wo = "DropdownMenuCheckboxItem",
|
|
1662
|
+
En.displayName = Xo;
|
|
1663
|
+
var Wo = "DropdownMenuCheckboxItem", _n = c.forwardRef((e, t) => {
|
|
1664
1664
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1665
1665
|
return /* @__PURE__ */ a.jsx(Oo, { ...o, ...r, ref: t });
|
|
1666
1666
|
});
|
|
1667
|
-
|
|
1667
|
+
_n.displayName = Wo;
|
|
1668
1668
|
var Jo = "DropdownMenuRadioGroup", Zo = c.forwardRef((e, t) => {
|
|
1669
1669
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1670
1670
|
return /* @__PURE__ */ a.jsx(To, { ...o, ...r, ref: t });
|
|
1671
1671
|
});
|
|
1672
1672
|
Zo.displayName = Jo;
|
|
1673
|
-
var es = "DropdownMenuRadioItem",
|
|
1673
|
+
var es = "DropdownMenuRadioItem", Nn = c.forwardRef((e, t) => {
|
|
1674
1674
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1675
1675
|
return /* @__PURE__ */ a.jsx(Fo, { ...o, ...r, ref: t });
|
|
1676
1676
|
});
|
|
1677
|
-
|
|
1678
|
-
var ts = "DropdownMenuItemIndicator",
|
|
1677
|
+
Nn.displayName = es;
|
|
1678
|
+
var ts = "DropdownMenuItemIndicator", Dn = c.forwardRef((e, t) => {
|
|
1679
1679
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1680
1680
|
return /* @__PURE__ */ a.jsx(Lo, { ...o, ...r, ref: t });
|
|
1681
1681
|
});
|
|
1682
|
-
|
|
1683
|
-
var ns = "DropdownMenuSeparator",
|
|
1682
|
+
Dn.displayName = ts;
|
|
1683
|
+
var ns = "DropdownMenuSeparator", In = c.forwardRef((e, t) => {
|
|
1684
1684
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1685
1685
|
return /* @__PURE__ */ a.jsx(Ko, { ...o, ...r, ref: t });
|
|
1686
1686
|
});
|
|
1687
|
-
|
|
1687
|
+
In.displayName = ns;
|
|
1688
1688
|
var rs = "DropdownMenuArrow", as = c.forwardRef(
|
|
1689
1689
|
(e, t) => {
|
|
1690
1690
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
@@ -1693,18 +1693,18 @@ var rs = "DropdownMenuArrow", as = c.forwardRef(
|
|
|
1693
1693
|
);
|
|
1694
1694
|
as.displayName = rs;
|
|
1695
1695
|
var os = (e) => {
|
|
1696
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = P(t), [u = !1, l] =
|
|
1696
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = P(t), [u = !1, l] = kt({
|
|
1697
1697
|
prop: r,
|
|
1698
1698
|
defaultProp: s,
|
|
1699
1699
|
onChange: o
|
|
1700
1700
|
});
|
|
1701
1701
|
return /* @__PURE__ */ a.jsx(Bo, { ...i, open: u, onOpenChange: l, children: n });
|
|
1702
|
-
}, ss = "DropdownMenuSubTrigger",
|
|
1702
|
+
}, ss = "DropdownMenuSubTrigger", kn = c.forwardRef((e, t) => {
|
|
1703
1703
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1704
1704
|
return /* @__PURE__ */ a.jsx(Qo, { ...o, ...r, ref: t });
|
|
1705
1705
|
});
|
|
1706
|
-
|
|
1707
|
-
var is = "DropdownMenuSubContent",
|
|
1706
|
+
kn.displayName = ss;
|
|
1707
|
+
var is = "DropdownMenuSubContent", An = c.forwardRef((e, t) => {
|
|
1708
1708
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1709
1709
|
return /* @__PURE__ */ a.jsx(
|
|
1710
1710
|
qo,
|
|
@@ -1723,10 +1723,10 @@ var is = "DropdownMenuSubContent", kn = c.forwardRef((e, t) => {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
);
|
|
1725
1725
|
});
|
|
1726
|
-
|
|
1727
|
-
var cs =
|
|
1728
|
-
const ds = cs, hs = us, fs =
|
|
1729
|
-
|
|
1726
|
+
An.displayName = is;
|
|
1727
|
+
var cs = bn, us = Cn, On = Sn, Tn = jn, Fn = Rn, Ln = En, Kn = _n, $n = Nn, Bn = Dn, Qn = In, ls = os, qn = kn, Gn = An;
|
|
1728
|
+
const ds = cs, hs = us, fs = On, ps = ls, Hn = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1729
|
+
qn,
|
|
1730
1730
|
{
|
|
1731
1731
|
ref: o,
|
|
1732
1732
|
className: b(
|
|
@@ -1737,13 +1737,13 @@ const ds = cs, hs = us, fs = An, ps = ls, Un = c.forwardRef(({ className: e, ins
|
|
|
1737
1737
|
...r,
|
|
1738
1738
|
children: [
|
|
1739
1739
|
n,
|
|
1740
|
-
/* @__PURE__ */ a.jsx(
|
|
1740
|
+
/* @__PURE__ */ a.jsx(qt, { className: "ml-auto h-4 w-4" })
|
|
1741
1741
|
]
|
|
1742
1742
|
}
|
|
1743
1743
|
));
|
|
1744
|
-
|
|
1745
|
-
const
|
|
1746
|
-
|
|
1744
|
+
Hn.displayName = qn.displayName;
|
|
1745
|
+
const Un = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
1746
|
+
Gn,
|
|
1747
1747
|
{
|
|
1748
1748
|
ref: n,
|
|
1749
1749
|
className: b(
|
|
@@ -1753,9 +1753,9 @@ const Gn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
|
1753
1753
|
...t
|
|
1754
1754
|
}
|
|
1755
1755
|
));
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
|
|
1756
|
+
Un.displayName = Gn.displayName;
|
|
1757
|
+
const zn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(On, { children: /* @__PURE__ */ a.jsx(
|
|
1758
|
+
Tn,
|
|
1759
1759
|
{
|
|
1760
1760
|
ref: r,
|
|
1761
1761
|
sideOffset: t,
|
|
@@ -1767,9 +1767,9 @@ const Hn = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
|
|
|
1767
1767
|
...n
|
|
1768
1768
|
}
|
|
1769
1769
|
) }));
|
|
1770
|
-
|
|
1771
|
-
const
|
|
1772
|
-
|
|
1770
|
+
zn.displayName = Tn.displayName;
|
|
1771
|
+
const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
|
|
1772
|
+
Ln,
|
|
1773
1773
|
{
|
|
1774
1774
|
ref: r,
|
|
1775
1775
|
className: b(
|
|
@@ -1780,9 +1780,9 @@ const zn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1780
1780
|
...n
|
|
1781
1781
|
}
|
|
1782
1782
|
));
|
|
1783
|
-
|
|
1783
|
+
Vn.displayName = Ln.displayName;
|
|
1784
1784
|
const ms = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1785
|
-
|
|
1785
|
+
Kn,
|
|
1786
1786
|
{
|
|
1787
1787
|
ref: o,
|
|
1788
1788
|
className: b(
|
|
@@ -1792,14 +1792,14 @@ const ms = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
1792
1792
|
checked: n,
|
|
1793
1793
|
...r,
|
|
1794
1794
|
children: [
|
|
1795
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
1795
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Bn, { children: /* @__PURE__ */ a.jsx(Tr, { className: "h-4 w-4" }) }) }),
|
|
1796
1796
|
t
|
|
1797
1797
|
]
|
|
1798
1798
|
}
|
|
1799
1799
|
));
|
|
1800
|
-
ms.displayName =
|
|
1800
|
+
ms.displayName = Kn.displayName;
|
|
1801
1801
|
const gs = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
|
|
1802
|
-
|
|
1802
|
+
$n,
|
|
1803
1803
|
{
|
|
1804
1804
|
ref: r,
|
|
1805
1805
|
className: b(
|
|
@@ -1808,14 +1808,14 @@ const gs = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
1808
1808
|
),
|
|
1809
1809
|
...n,
|
|
1810
1810
|
children: [
|
|
1811
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
1811
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Bn, { children: /* @__PURE__ */ a.jsx(pa, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1812
1812
|
t
|
|
1813
1813
|
]
|
|
1814
1814
|
}
|
|
1815
1815
|
));
|
|
1816
|
-
gs.displayName =
|
|
1817
|
-
const
|
|
1818
|
-
|
|
1816
|
+
gs.displayName = $n.displayName;
|
|
1817
|
+
const Yn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
|
|
1818
|
+
Fn,
|
|
1819
1819
|
{
|
|
1820
1820
|
ref: r,
|
|
1821
1821
|
className: b(
|
|
@@ -1826,18 +1826,18 @@ const Vn = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
1826
1826
|
...n
|
|
1827
1827
|
}
|
|
1828
1828
|
));
|
|
1829
|
-
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1829
|
+
Yn.displayName = Fn.displayName;
|
|
1830
|
+
const Xn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
1831
|
+
Qn,
|
|
1832
1832
|
{
|
|
1833
1833
|
ref: n,
|
|
1834
1834
|
className: b("-mx-1 my-1 h-px bg-muted", e),
|
|
1835
1835
|
...t
|
|
1836
1836
|
}
|
|
1837
1837
|
));
|
|
1838
|
-
|
|
1838
|
+
Xn.displayName = Qn.displayName;
|
|
1839
1839
|
const vs = () => {
|
|
1840
|
-
const e =
|
|
1840
|
+
const e = De(), [t, n] = ie(!1), r = Tt(() => n(!1), []);
|
|
1841
1841
|
W(() => {
|
|
1842
1842
|
if (t)
|
|
1843
1843
|
return;
|
|
@@ -1865,13 +1865,13 @@ const vs = () => {
|
|
|
1865
1865
|
]
|
|
1866
1866
|
}
|
|
1867
1867
|
),
|
|
1868
|
-
/* @__PURE__ */ a.jsx(
|
|
1868
|
+
/* @__PURE__ */ a.jsx(Ft, { fallback: null, children: o.renderSearch({
|
|
1869
1869
|
isOpen: t,
|
|
1870
1870
|
onClose: r
|
|
1871
1871
|
}) })
|
|
1872
1872
|
] }) : null;
|
|
1873
1873
|
}, xs = () => {
|
|
1874
|
-
const { topNavigation: e } =
|
|
1874
|
+
const { topNavigation: e } = De();
|
|
1875
1875
|
return e.length <= 1 ? null : /* @__PURE__ */ a.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
1876
1876
|
je,
|
|
1877
1877
|
{
|
|
@@ -1883,17 +1883,19 @@ const vs = () => {
|
|
|
1883
1883
|
children: t.label
|
|
1884
1884
|
}
|
|
1885
1885
|
) }, t.label)) }) });
|
|
1886
|
-
},
|
|
1887
|
-
/* @__PURE__ */ a.jsx(
|
|
1888
|
-
/* @__PURE__ */ a.jsx(fs, { children: /* @__PURE__ */ a.jsx(
|
|
1886
|
+
}, Wn = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(ps, { children: [
|
|
1887
|
+
/* @__PURE__ */ a.jsx(Hn, { children: e.label }),
|
|
1888
|
+
/* @__PURE__ */ a.jsx(fs, { children: /* @__PURE__ */ a.jsx(Un, { children: e.children.map((t, n) => (
|
|
1889
1889
|
// eslint-disable-next-line react/no-array-index-key
|
|
1890
|
-
/* @__PURE__ */ a.jsx(
|
|
1890
|
+
/* @__PURE__ */ a.jsx(Wn, { item: t }, n)
|
|
1891
1891
|
)) }) })
|
|
1892
|
-
] }, e.label) : /* @__PURE__ */ a.jsx(
|
|
1893
|
-
const
|
|
1892
|
+
] }, e.label) : /* @__PURE__ */ a.jsx(He, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(Vn, { children: e.label }, e.label) }), Jn = Lt(function() {
|
|
1893
|
+
const t = ft(), [n, r] = Lr(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = ft();
|
|
1894
|
+
Ne();
|
|
1895
|
+
const u = De(), { page: l, plugins: g } = u, p = g.filter((h) => Ua(h)).flatMap((h) => h.getProfileMenuItems(u)).map((h) => /* @__PURE__ */ a.jsx(Wn, { item: h }, h.label)), d = n ? ga : xa;
|
|
1894
1896
|
return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1895
1897
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
|
|
1896
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(
|
|
1898
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(He, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1897
1899
|
(l == null ? void 0 : l.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1898
1900
|
/* @__PURE__ */ a.jsx(
|
|
1899
1901
|
"img",
|
|
@@ -1901,7 +1903,7 @@ const vs = () => {
|
|
|
1901
1903
|
src: l.logo.src.light,
|
|
1902
1904
|
alt: l.logo.alt ?? l.pageTitle,
|
|
1903
1905
|
style: { width: l.logo.width },
|
|
1904
|
-
className: b("h-10",
|
|
1906
|
+
className: b("h-10", n && "hidden"),
|
|
1905
1907
|
loading: "lazy"
|
|
1906
1908
|
}
|
|
1907
1909
|
),
|
|
@@ -1911,7 +1913,7 @@ const vs = () => {
|
|
|
1911
1913
|
src: l.logo.src.dark,
|
|
1912
1914
|
alt: l.logo.alt ?? l.pageTitle,
|
|
1913
1915
|
style: { width: l.logo.width },
|
|
1914
|
-
className: b("h-10", !
|
|
1916
|
+
className: b("h-10", !n && "hidden"),
|
|
1915
1917
|
loading: "lazy"
|
|
1916
1918
|
}
|
|
1917
1919
|
)
|
|
@@ -1922,20 +1924,11 @@ const vs = () => {
|
|
|
1922
1924
|
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(vs, {}) }),
|
|
1923
1925
|
/* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
|
|
1924
1926
|
/* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
{
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
search: `?redirect=${encodeURIComponent(i)}`
|
|
1931
|
-
},
|
|
1932
|
-
children: "Login"
|
|
1933
|
-
}
|
|
1934
|
-
) }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ds, { children: [
|
|
1935
|
-
/* @__PURE__ */ a.jsx(hs, { asChild: !0, children: /* @__PURE__ */ a.jsx(Qe, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
|
|
1936
|
-
/* @__PURE__ */ a.jsxs(Hn, { className: "w-56", children: [
|
|
1937
|
-
/* @__PURE__ */ a.jsx(Vn, { children: "My Account" }),
|
|
1938
|
-
/* @__PURE__ */ a.jsx(Yn, {}),
|
|
1927
|
+
i && !o ? /* @__PURE__ */ a.jsx(Be, { onClick: () => t.login(), asChild: !0, children: "Login" }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ds, { children: [
|
|
1928
|
+
/* @__PURE__ */ a.jsx(hs, { asChild: !0, children: /* @__PURE__ */ a.jsx(Be, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
|
|
1929
|
+
/* @__PURE__ */ a.jsxs(zn, { className: "w-56", children: [
|
|
1930
|
+
/* @__PURE__ */ a.jsx(Yn, { children: "My Account" }),
|
|
1931
|
+
/* @__PURE__ */ a.jsx(Xn, {}),
|
|
1939
1932
|
p
|
|
1940
1933
|
] })
|
|
1941
1934
|
] }),
|
|
@@ -1943,9 +1936,9 @@ const vs = () => {
|
|
|
1943
1936
|
"button",
|
|
1944
1937
|
{
|
|
1945
1938
|
type: "button",
|
|
1946
|
-
"aria-label":
|
|
1939
|
+
"aria-label": n ? "Switch to light mode" : "Switch to dark mode",
|
|
1947
1940
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
1948
|
-
onClick:
|
|
1941
|
+
onClick: r,
|
|
1949
1942
|
children: /* @__PURE__ */ a.jsx(d, { size: 18 })
|
|
1950
1943
|
}
|
|
1951
1944
|
),
|
|
@@ -1955,15 +1948,15 @@ const vs = () => {
|
|
|
1955
1948
|
] }),
|
|
1956
1949
|
/* @__PURE__ */ a.jsx(xs, {})
|
|
1957
1950
|
] }) });
|
|
1958
|
-
}),
|
|
1959
|
-
Header:
|
|
1960
|
-
}, ys =
|
|
1951
|
+
}), Zn = {
|
|
1952
|
+
Header: Jn
|
|
1953
|
+
}, ys = Ot(Zn), ws = ys.Provider, bs = (e) => {
|
|
1961
1954
|
const [t, n] = ie(!1);
|
|
1962
1955
|
W(() => {
|
|
1963
1956
|
const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
|
|
1964
1957
|
n(u);
|
|
1965
1958
|
}, [t]);
|
|
1966
|
-
const r =
|
|
1959
|
+
const r = Tt(() => {
|
|
1967
1960
|
const s = !t;
|
|
1968
1961
|
document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
|
|
1969
1962
|
}, [t]), o = [t, r];
|
|
@@ -1972,7 +1965,7 @@ const vs = () => {
|
|
|
1972
1965
|
children: e,
|
|
1973
1966
|
context: t
|
|
1974
1967
|
}) => {
|
|
1975
|
-
const n =
|
|
1968
|
+
const n = vr();
|
|
1976
1969
|
return ia({
|
|
1977
1970
|
queryFn: async () => (await t.initialize({ navigate: n }), !0),
|
|
1978
1971
|
queryKey: ["zudoku-initialize"]
|
|
@@ -1982,10 +1975,10 @@ const vs = () => {
|
|
|
1982
1975
|
...t
|
|
1983
1976
|
}) => {
|
|
1984
1977
|
var d, h;
|
|
1985
|
-
const n =
|
|
1986
|
-
() => ({ ...
|
|
1978
|
+
const n = Le(
|
|
1979
|
+
() => ({ ...Zn, ...t.overrides }),
|
|
1987
1980
|
[t.overrides]
|
|
1988
|
-
), r =
|
|
1981
|
+
), r = Le(() => {
|
|
1989
1982
|
var x;
|
|
1990
1983
|
return {
|
|
1991
1984
|
...(t.plugins ?? []).filter(Wa).flatMap(
|
|
@@ -1994,10 +1987,10 @@ const vs = () => {
|
|
|
1994
1987
|
...$r,
|
|
1995
1988
|
...(x = t.mdx) == null ? void 0 : x.components
|
|
1996
1989
|
};
|
|
1997
|
-
}, [(d = t.mdx) == null ? void 0 : d.components, t.plugins]), { stagger: o } = zr(
|
|
1990
|
+
}, [(d = t.mdx) == null ? void 0 : d.components, t.plugins]), { stagger: o } = zr(Qe), [s, i] = ie(!1), u = Le(
|
|
1998
1991
|
() => s ? { stagger: !0 } : { stagger: o },
|
|
1999
1992
|
[o, s]
|
|
2000
|
-
), l =
|
|
1993
|
+
), l = xr();
|
|
2001
1994
|
W(() => {
|
|
2002
1995
|
s || i(!0);
|
|
2003
1996
|
}, [s, l.location]);
|
|
@@ -2005,18 +1998,18 @@ const vs = () => {
|
|
|
2005
1998
|
var M;
|
|
2006
1999
|
return /* @__PURE__ */ a.jsx(Vr, { children: (M = v.getHead) == null ? void 0 : M.call(v) }, x);
|
|
2007
2000
|
});
|
|
2008
|
-
return /* @__PURE__ */ a.jsxs(ua, { client:
|
|
2001
|
+
return /* @__PURE__ */ a.jsxs(ua, { client: zt, children: [
|
|
2009
2002
|
/* @__PURE__ */ a.jsx(Ge, { children: p }),
|
|
2010
|
-
/* @__PURE__ */ a.jsx(
|
|
2003
|
+
/* @__PURE__ */ a.jsx(Qe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(Ms, { context: g, children: /* @__PURE__ */ a.jsx(lr, { components: r, children: /* @__PURE__ */ a.jsx(bs, { children: /* @__PURE__ */ a.jsx(ws, { value: n, children: /* @__PURE__ */ a.jsx(wr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(Br, { children: e ?? /* @__PURE__ */ a.jsx(Rt, {}) }) }) }) }) }) }) })
|
|
2011
2004
|
] });
|
|
2012
|
-
}, Ss =
|
|
2013
|
-
|
|
2005
|
+
}, Ss = Lt(Cs), er = (e) => /* @__PURE__ */ a.jsx(Ga, { FallbackComponent: eo, children: /* @__PURE__ */ a.jsx(Ss, { ...e }) });
|
|
2006
|
+
er.displayName = "DevPortal";
|
|
2014
2007
|
const Ps = ({
|
|
2015
2008
|
category: e,
|
|
2016
2009
|
level: t
|
|
2017
2010
|
}) => {
|
|
2018
2011
|
var h;
|
|
2019
|
-
const n =
|
|
2012
|
+
const n = Bt(), r = dr(e), [o, s] = ie(!1), i = e.collapsible ?? !0, u = e.collapsed ?? !0, l = !!(!i || !u || r), [g, p] = ie(l);
|
|
2020
2013
|
W(() => {
|
|
2021
2014
|
r && p(!0);
|
|
2022
2015
|
}, [r]);
|
|
@@ -2028,7 +2021,7 @@ const Ps = ({
|
|
|
2028
2021
|
v.preventDefault(), p((x) => !x), s(!0);
|
|
2029
2022
|
},
|
|
2030
2023
|
children: /* @__PURE__ */ a.jsx(
|
|
2031
|
-
|
|
2024
|
+
qt,
|
|
2032
2025
|
{
|
|
2033
2026
|
size: 16,
|
|
2034
2027
|
className: b(
|
|
@@ -2084,7 +2077,7 @@ const Ps = ({
|
|
|
2084
2077
|
"ms-[calc(var(--padding-nav-item)*1.125)]"
|
|
2085
2078
|
),
|
|
2086
2079
|
children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
|
|
2087
|
-
|
|
2080
|
+
nr,
|
|
2088
2081
|
{
|
|
2089
2082
|
level: t + 1,
|
|
2090
2083
|
item: v
|
|
@@ -2113,11 +2106,11 @@ const Ps = ({
|
|
|
2113
2106
|
}
|
|
2114
2107
|
}
|
|
2115
2108
|
}
|
|
2116
|
-
),
|
|
2109
|
+
), tr = "data-anchor", nr = ({
|
|
2117
2110
|
item: e,
|
|
2118
2111
|
level: t = 0
|
|
2119
2112
|
}) => {
|
|
2120
|
-
const n =
|
|
2113
|
+
const n = Bt(), { activeAnchor: r } = ze(), [o] = yr();
|
|
2121
2114
|
switch (e.type) {
|
|
2122
2115
|
case "category":
|
|
2123
2116
|
return /* @__PURE__ */ a.jsx(Ps, { category: e, level: t });
|
|
@@ -2129,16 +2122,16 @@ const Ps = ({
|
|
|
2129
2122
|
to: Xe(n == null ? void 0 : n.id, e.id),
|
|
2130
2123
|
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2131
2124
|
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2132
|
-
/* @__PURE__ */ a.jsx(
|
|
2125
|
+
/* @__PURE__ */ a.jsx(Ke, { ...e.badge })
|
|
2133
2126
|
] }) : e.label
|
|
2134
2127
|
}
|
|
2135
2128
|
);
|
|
2136
2129
|
case "link":
|
|
2137
2130
|
return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
2138
|
-
|
|
2131
|
+
hr,
|
|
2139
2132
|
{
|
|
2140
2133
|
to: { hash: e.href, search: o.toString() },
|
|
2141
|
-
[
|
|
2134
|
+
[tr]: e.href.slice(1),
|
|
2142
2135
|
className: b(
|
|
2143
2136
|
"flex gap-2.5 justify-between",
|
|
2144
2137
|
t === 0 && "-mx-[--padding-nav-item]",
|
|
@@ -2148,7 +2141,7 @@ const Ps = ({
|
|
|
2148
2141
|
),
|
|
2149
2142
|
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2150
2143
|
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2151
|
-
/* @__PURE__ */ a.jsx(
|
|
2144
|
+
/* @__PURE__ */ a.jsx(Ke, { ...e.badge })
|
|
2152
2145
|
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
2153
2146
|
}
|
|
2154
2147
|
) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
@@ -2176,7 +2169,7 @@ const Ps = ({
|
|
|
2176
2169
|
to: e.href,
|
|
2177
2170
|
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2178
2171
|
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
2179
|
-
/* @__PURE__ */ a.jsx(
|
|
2172
|
+
/* @__PURE__ */ a.jsx(Ke, { ...e.badge })
|
|
2180
2173
|
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
2181
2174
|
}
|
|
2182
2175
|
);
|
|
@@ -2186,11 +2179,11 @@ const Ps = ({
|
|
|
2186
2179
|
const n = e.getBoundingClientRect();
|
|
2187
2180
|
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
2188
2181
|
}, Rs = () => {
|
|
2189
|
-
const e =
|
|
2182
|
+
const e = Ne(), { setActiveAnchor: t } = ze();
|
|
2190
2183
|
W(() => {
|
|
2191
2184
|
if (!e.hash) return;
|
|
2192
2185
|
const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
2193
|
-
const o = document.getElementById(n), s = document.querySelector(`[${
|
|
2186
|
+
const o = document.getElementById(n), s = document.querySelector(`[${tr}="${n}"]`);
|
|
2194
2187
|
return o ? (o.scrollIntoView(), js(s), requestIdleCallback(() => t(n)), !0) : !1;
|
|
2195
2188
|
};
|
|
2196
2189
|
if (!r()) {
|
|
@@ -2201,11 +2194,11 @@ const Ps = ({
|
|
|
2201
2194
|
}
|
|
2202
2195
|
}, [e.hash, t]);
|
|
2203
2196
|
}, Es = () => {
|
|
2204
|
-
const e =
|
|
2197
|
+
const e = Ne(), t = Ve(e.pathname);
|
|
2205
2198
|
W(() => {
|
|
2206
2199
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
2207
2200
|
}, [e.pathname]);
|
|
2208
|
-
},
|
|
2201
|
+
}, rr = Yr(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
|
|
2209
2202
|
"nav",
|
|
2210
2203
|
{
|
|
2211
2204
|
"data-navigation": String(n),
|
|
@@ -2219,23 +2212,23 @@ const Ps = ({
|
|
|
2219
2212
|
children: e
|
|
2220
2213
|
}
|
|
2221
2214
|
));
|
|
2222
|
-
|
|
2215
|
+
rr.displayName = "SidebarWrapper";
|
|
2223
2216
|
const _s = () => {
|
|
2224
2217
|
const e = Ve(null), t = la();
|
|
2225
2218
|
return /* @__PURE__ */ a.jsxs(
|
|
2226
|
-
|
|
2219
|
+
rr,
|
|
2227
2220
|
{
|
|
2228
2221
|
ref: e,
|
|
2229
2222
|
pushMainContent: t.data.items.length > 0,
|
|
2230
2223
|
children: [
|
|
2231
2224
|
/* @__PURE__ */ a.jsx(se, { name: "zudoku-before-navigation" }),
|
|
2232
|
-
t.data.items.map((n) => /* @__PURE__ */ a.jsx(
|
|
2225
|
+
t.data.items.map((n) => /* @__PURE__ */ a.jsx(nr, { item: n }, n.label)),
|
|
2233
2226
|
/* @__PURE__ */ a.jsx(se, { name: "zudoku-after-navigation" })
|
|
2234
2227
|
]
|
|
2235
2228
|
}
|
|
2236
2229
|
);
|
|
2237
2230
|
}, Ns = ({ children: e }) => {
|
|
2238
|
-
const t =
|
|
2231
|
+
const t = Ne(), { setActiveAnchor: n } = ze(), { meta: r } = De();
|
|
2239
2232
|
Rs(), Es();
|
|
2240
2233
|
const o = Ve(t.pathname);
|
|
2241
2234
|
return W(() => {
|
|
@@ -2246,9 +2239,9 @@ const _s = () => {
|
|
|
2246
2239
|
(r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
|
|
2247
2240
|
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
|
|
2248
2241
|
] }),
|
|
2249
|
-
/* @__PURE__ */ a.jsx(
|
|
2242
|
+
/* @__PURE__ */ a.jsx(Jn, {}),
|
|
2250
2243
|
/* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
|
|
2251
|
-
|
|
2244
|
+
Ft,
|
|
2252
2245
|
{
|
|
2253
2246
|
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(fa, {}) }),
|
|
2254
2247
|
children: [
|
|
@@ -2264,7 +2257,7 @@ const _s = () => {
|
|
|
2264
2257
|
),
|
|
2265
2258
|
children: [
|
|
2266
2259
|
/* @__PURE__ */ a.jsx(se, { name: "zudoku-before-content" }),
|
|
2267
|
-
e ?? /* @__PURE__ */ a.jsx(
|
|
2260
|
+
e ?? /* @__PURE__ */ a.jsx(Rt, {}),
|
|
2268
2261
|
/* @__PURE__ */ a.jsx(se, { name: "zudoku-after-content" })
|
|
2269
2262
|
]
|
|
2270
2263
|
}
|
|
@@ -2273,7 +2266,7 @@ const _s = () => {
|
|
|
2273
2266
|
}
|
|
2274
2267
|
) })
|
|
2275
2268
|
] });
|
|
2276
|
-
},
|
|
2269
|
+
}, Us = fr, zs = qr, Vs = er, Ys = Ns, Xs = He, Ws = br, Js = ya, Zs = Ta, ei = Fa, ti = Be, ni = Ge;
|
|
2277
2270
|
export {
|
|
2278
2271
|
Zs as Bootstrap,
|
|
2279
2272
|
ei as BootstrapStatic,
|
|
@@ -2285,6 +2278,6 @@ export {
|
|
|
2285
2278
|
Xs as Link,
|
|
2286
2279
|
Ws as RouterError,
|
|
2287
2280
|
Js as ServerError,
|
|
2288
|
-
|
|
2281
|
+
Us as useMDXComponents
|
|
2289
2282
|
};
|
|
2290
2283
|
//# sourceMappingURL=zudoku.components.js.map
|