zudoku 0.3.0-dev.62 → 0.3.0-dev.64
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/components/navigation/SideNavigationCategory.js +2 -2
- package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationItem.js +2 -2
- package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/useNavigationCollapsibleState.d.ts +4 -1
- package/dist/lib/components/navigation/useNavigationCollapsibleState.js +17 -5
- package/dist/lib/components/navigation/useNavigationCollapsibleState.js.map +1 -1
- package/dist/lib/plugins/markdown/Toc.js +16 -8
- package/dist/lib/plugins/markdown/Toc.js.map +1 -1
- package/lib/{MdxPage-DJTFOCbZ.js → MdxPage-BjOLKhCI.js} +98 -88
- package/lib/MdxPage-BjOLKhCI.js.map +1 -0
- package/lib/zudoku.components.js +407 -413
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/package.json +1 -1
- package/src/app/main.css +2 -2
- package/src/lib/components/navigation/SideNavigationCategory.tsx +2 -6
- package/src/lib/components/navigation/SideNavigationItem.tsx +2 -6
- package/src/lib/components/navigation/useNavigationCollapsibleState.ts +21 -6
- package/src/lib/plugins/markdown/Toc.tsx +52 -39
- package/lib/MdxPage-DJTFOCbZ.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
var ar = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var ut = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var or = (t, e, n) => e in t ? ar(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
-
var N = (t, e, n) => or(t, typeof e != "symbol" ? e + "" : e, n),
|
|
7
|
-
var
|
|
6
|
+
var N = (t, e, n) => or(t, typeof e != "symbol" ? e + "" : e, n), lt = (t, e, n) => e.has(t) || ut("Cannot " + n);
|
|
7
|
+
var p = (t, e, n) => (lt(t, e, "read from private field"), n ? n.call(t) : e.get(t)), j = (t, e, n) => e.has(t) ? ut("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), b = (t, e, n, r) => (lt(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
8
8
|
var Me = (t, e, n, r) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
b(t, e, a, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return p(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as
|
|
17
|
-
import { c as pe, d as ur, R as lr, a as P, C as dr, N as Fe, b as hr, u as pr, L as Re, M as fr, T as mr, V as gr, e as
|
|
18
|
-
import { E as
|
|
16
|
+
import { H as Pt, a as Qe, M as sr, A as ir, u as cr } from "./AnchorLink-Bj1hwDuD.js";
|
|
17
|
+
import { c as pe, d as ur, R as lr, a as P, C as dr, N as Fe, b as hr, u as pr, L as Re, M as fr, T as mr, V as gr, e as Ue, f as vr, g as xr } from "./Markdown-BjRJKl_E.js";
|
|
18
|
+
import { E as Rt, u as yr, R as wr } from "./hook-BY1NP0kj.js";
|
|
19
19
|
import { j as o, d as Mr, u as br, a as se, O as Cr } from "./jsx-runtime-BIr0WBt_.js";
|
|
20
|
-
import { M as Pr, c as Rr, a as
|
|
20
|
+
import { M as Pr, c as Rr, a as _t, b as Et, A as _r, u as fe, h as Er, d as y, e as Sr, F as Nr, D as jr, C as Dr, P as ie, f as Ge, g as Ar, i as St, R as Ir, S as Or, j as Tr, k as kr, l as Nt, m as Fr, n as _e, o as jt, B as Le } from "./Combination-lAFQBd6U.js";
|
|
21
21
|
import * as c from "react";
|
|
22
|
-
import Lr, { StrictMode as
|
|
23
|
-
import { g as
|
|
22
|
+
import Lr, { StrictMode as Dt, createContext as At, Component as Kr, createElement as dt, isValidElement as $r, memo as It, useMemo as be, useContext as Br, useState as Ke, useEffect as W, Fragment as Qr, useRef as Ne, forwardRef as Ur, Suspense as Gr } from "react";
|
|
23
|
+
import { g as He } from "./_commonjsHelpers-BVfed4GL.js";
|
|
24
24
|
import { r as Hr } from "./router-BiRCp01d.js";
|
|
25
|
-
import { S as
|
|
26
|
-
import { S as Lt, h as Kt, Q as Yr, n as E, m as
|
|
25
|
+
import { S as $e, c as Ot, P as je, R as qr, I as zr, a as Tt, T as kt, C as Ft, b as Vr } from "./Spinner-Ciq_pWU7.js";
|
|
26
|
+
import { S as Lt, h as Kt, Q as Yr, n as E, m as ht, a as pt, b as $, e as Xr, c as Wr, d as Jr, f as Zr, o as ft, r as mt, g as ea, i as gt, p as vt, s as ta, u as qe, j as na, D as ra, k as ze, l as xt, q as $t, t as aa, v as oa, w as sa } from "./DevPortalProvider-BBhQ8kgI.js";
|
|
27
27
|
/**
|
|
28
28
|
* @license lucide-react v0.378.0 - ISC
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the ISC license.
|
|
31
31
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
32
|
*/
|
|
33
|
-
const
|
|
33
|
+
const Ve = pe("ChevronRight", [
|
|
34
34
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
35
35
|
]);
|
|
36
36
|
/**
|
|
@@ -82,12 +82,12 @@ const la = pe("Sun", [
|
|
|
82
82
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
83
83
|
]);
|
|
84
84
|
function da({ error: t }) {
|
|
85
|
-
return /* @__PURE__ */ o.jsx(
|
|
85
|
+
return /* @__PURE__ */ o.jsx(Rt, { error: t });
|
|
86
86
|
}
|
|
87
87
|
var me = {};
|
|
88
|
-
const ha = /* @__PURE__ */
|
|
88
|
+
const ha = /* @__PURE__ */ He(Hr), pa = /* @__PURE__ */ He(Mr), fa = /* @__PURE__ */ He(ur);
|
|
89
89
|
Object.defineProperty(me, "__esModule", { value: !0 });
|
|
90
|
-
var ma = Lr, k = ha,
|
|
90
|
+
var ma = Lr, k = ha, Ye = pa, B = fa;
|
|
91
91
|
function ga(t) {
|
|
92
92
|
if (t && t.__esModule) return t;
|
|
93
93
|
var e = /* @__PURE__ */ Object.create(null);
|
|
@@ -143,12 +143,12 @@ function xa({
|
|
|
143
143
|
basename: t.basename || "/"
|
|
144
144
|
}, s = /* @__PURE__ */ new Map(), i = "";
|
|
145
145
|
if (n !== !1) {
|
|
146
|
-
let
|
|
146
|
+
let h = {
|
|
147
147
|
loaderData: t.loaderData,
|
|
148
148
|
actionData: t.actionData,
|
|
149
149
|
errors: wa(t.errors)
|
|
150
150
|
};
|
|
151
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${_a(JSON.stringify(JSON.stringify(
|
|
151
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${_a(JSON.stringify(JSON.stringify(h)))});`;
|
|
152
152
|
}
|
|
153
153
|
let {
|
|
154
154
|
state: u
|
|
@@ -189,7 +189,7 @@ function ya({
|
|
|
189
189
|
future: e,
|
|
190
190
|
state: n
|
|
191
191
|
}) {
|
|
192
|
-
return
|
|
192
|
+
return Ye.UNSAFE_useRoutesImpl(t, void 0, n, e);
|
|
193
193
|
}
|
|
194
194
|
function wa(t) {
|
|
195
195
|
if (!t) return null;
|
|
@@ -233,15 +233,15 @@ function Bt() {
|
|
|
233
233
|
function Ma(t, e) {
|
|
234
234
|
return k.createStaticHandler(t, {
|
|
235
235
|
...e,
|
|
236
|
-
mapRouteProperties:
|
|
236
|
+
mapRouteProperties: Ye.UNSAFE_mapRouteProperties
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
function ba(t, e, n = {}) {
|
|
240
|
-
let r = {}, a = k.UNSAFE_convertRoutesToDataRoutes(t,
|
|
241
|
-
let
|
|
240
|
+
let r = {}, a = k.UNSAFE_convertRoutesToDataRoutes(t, Ye.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((u) => {
|
|
241
|
+
let h = r[u.route.id] || u.route;
|
|
242
242
|
return {
|
|
243
243
|
...u,
|
|
244
|
-
route:
|
|
244
|
+
route: h
|
|
245
245
|
};
|
|
246
246
|
}), i = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
|
|
247
247
|
return {
|
|
@@ -249,13 +249,13 @@ function ba(t, e, n = {}) {
|
|
|
249
249
|
return e.basename;
|
|
250
250
|
},
|
|
251
251
|
get future() {
|
|
252
|
-
var u,
|
|
252
|
+
var u, h;
|
|
253
253
|
return {
|
|
254
254
|
v7_fetcherPersist: !1,
|
|
255
255
|
v7_normalizeFormMethod: !1,
|
|
256
256
|
v7_partialHydration: ((u = n.future) == null ? void 0 : u.v7_partialHydration) === !0,
|
|
257
257
|
v7_prependBasename: !1,
|
|
258
|
-
v7_relativeSplatPath: ((
|
|
258
|
+
v7_relativeSplatPath: ((h = n.future) == null ? void 0 : h.v7_relativeSplatPath) === !0,
|
|
259
259
|
v7_skipActionErrorRevalidation: !1
|
|
260
260
|
};
|
|
261
261
|
},
|
|
@@ -356,12 +356,12 @@ me.createStaticRouter = ba;
|
|
|
356
356
|
const Sa = ({
|
|
357
357
|
router: t,
|
|
358
358
|
hydrate: e = !1
|
|
359
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
359
|
+
}) => /* @__PURE__ */ o.jsx(Dt, { children: /* @__PURE__ */ o.jsx(Pt, { children: /* @__PURE__ */ o.jsx($e.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(lr, { router: t }) }) }) }), Na = ({
|
|
360
360
|
router: t,
|
|
361
361
|
context: e,
|
|
362
362
|
helmetContext: n
|
|
363
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
364
|
-
var T,
|
|
363
|
+
}) => /* @__PURE__ */ o.jsx(Dt, { children: /* @__PURE__ */ o.jsx(Pt, { context: n, children: /* @__PURE__ */ o.jsx(Ea, { router: t, context: e }) }) });
|
|
364
|
+
var T, Mt, ja = (Mt = class extends Lt {
|
|
365
365
|
constructor(e = {}) {
|
|
366
366
|
super();
|
|
367
367
|
j(this, T);
|
|
@@ -380,14 +380,14 @@ var T, wt, ja = (wt = class extends Lt {
|
|
|
380
380
|
}), this.add(i)), i;
|
|
381
381
|
}
|
|
382
382
|
add(e) {
|
|
383
|
-
|
|
383
|
+
p(this, T).has(e.queryHash) || (p(this, T).set(e.queryHash, e), this.notify({
|
|
384
384
|
type: "added",
|
|
385
385
|
query: e
|
|
386
386
|
}));
|
|
387
387
|
}
|
|
388
388
|
remove(e) {
|
|
389
|
-
const n =
|
|
390
|
-
n && (e.destroy(), n === e &&
|
|
389
|
+
const n = p(this, T).get(e.queryHash);
|
|
390
|
+
n && (e.destroy(), n === e && p(this, T).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
391
391
|
}
|
|
392
392
|
clear() {
|
|
393
393
|
E.batch(() => {
|
|
@@ -397,20 +397,20 @@ var T, wt, ja = (wt = class extends Lt {
|
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
get(e) {
|
|
400
|
-
return
|
|
400
|
+
return p(this, T).get(e);
|
|
401
401
|
}
|
|
402
402
|
getAll() {
|
|
403
|
-
return [...
|
|
403
|
+
return [...p(this, T).values()];
|
|
404
404
|
}
|
|
405
405
|
find(e) {
|
|
406
406
|
const n = { exact: !0, ...e };
|
|
407
407
|
return this.getAll().find(
|
|
408
|
-
(r) =>
|
|
408
|
+
(r) => ht(n, r)
|
|
409
409
|
);
|
|
410
410
|
}
|
|
411
411
|
findAll(e = {}) {
|
|
412
412
|
const n = this.getAll();
|
|
413
|
-
return Object.keys(e).length > 0 ? n.filter((r) =>
|
|
413
|
+
return Object.keys(e).length > 0 ? n.filter((r) => ht(e, r)) : n;
|
|
414
414
|
}
|
|
415
415
|
notify(e) {
|
|
416
416
|
E.batch(() => {
|
|
@@ -433,7 +433,7 @@ var T, wt, ja = (wt = class extends Lt {
|
|
|
433
433
|
});
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
|
-
}, T = new WeakMap(),
|
|
436
|
+
}, T = new WeakMap(), Mt), _, he, bt, Da = (bt = class extends Lt {
|
|
437
437
|
constructor(e = {}) {
|
|
438
438
|
super();
|
|
439
439
|
j(this, _);
|
|
@@ -450,26 +450,26 @@ var T, wt, ja = (wt = class extends Lt {
|
|
|
450
450
|
return this.add(a), a;
|
|
451
451
|
}
|
|
452
452
|
add(e) {
|
|
453
|
-
const n = Ce(e), r =
|
|
454
|
-
r.push(e),
|
|
453
|
+
const n = Ce(e), r = p(this, _).get(n) ?? [];
|
|
454
|
+
r.push(e), p(this, _).set(n, r), this.notify({ type: "added", mutation: e });
|
|
455
455
|
}
|
|
456
456
|
remove(e) {
|
|
457
457
|
var r;
|
|
458
458
|
const n = Ce(e);
|
|
459
|
-
if (
|
|
460
|
-
const a = (r =
|
|
461
|
-
a && (a.length === 0 ?
|
|
459
|
+
if (p(this, _).has(n)) {
|
|
460
|
+
const a = (r = p(this, _).get(n)) == null ? void 0 : r.filter((s) => s !== e);
|
|
461
|
+
a && (a.length === 0 ? p(this, _).delete(n) : p(this, _).set(n, a));
|
|
462
462
|
}
|
|
463
463
|
this.notify({ type: "removed", mutation: e });
|
|
464
464
|
}
|
|
465
465
|
canRun(e) {
|
|
466
466
|
var r;
|
|
467
|
-
const n = (r =
|
|
467
|
+
const n = (r = p(this, _).get(Ce(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
|
|
468
468
|
return !n || n === e;
|
|
469
469
|
}
|
|
470
470
|
runNext(e) {
|
|
471
471
|
var r;
|
|
472
|
-
const n = (r =
|
|
472
|
+
const n = (r = p(this, _).get(Ce(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
|
|
473
473
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
474
474
|
}
|
|
475
475
|
clear() {
|
|
@@ -480,16 +480,16 @@ var T, wt, ja = (wt = class extends Lt {
|
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
482
|
getAll() {
|
|
483
|
-
return [...
|
|
483
|
+
return [...p(this, _).values()].flat();
|
|
484
484
|
}
|
|
485
485
|
find(e) {
|
|
486
486
|
const n = { exact: !0, ...e };
|
|
487
487
|
return this.getAll().find(
|
|
488
|
-
(r) =>
|
|
488
|
+
(r) => pt(n, r)
|
|
489
489
|
);
|
|
490
490
|
}
|
|
491
491
|
findAll(e = {}) {
|
|
492
|
-
return this.getAll().filter((n) =>
|
|
492
|
+
return this.getAll().filter((n) => pt(e, n));
|
|
493
493
|
}
|
|
494
494
|
notify(e) {
|
|
495
495
|
E.batch(() => {
|
|
@@ -506,61 +506,61 @@ var T, wt, ja = (wt = class extends Lt {
|
|
|
506
506
|
)
|
|
507
507
|
);
|
|
508
508
|
}
|
|
509
|
-
}, _ = new WeakMap(), he = new WeakMap(),
|
|
509
|
+
}, _ = new WeakMap(), he = new WeakMap(), bt);
|
|
510
510
|
function Ce(t) {
|
|
511
511
|
var e;
|
|
512
512
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Aa(t) {
|
|
515
515
|
return {
|
|
516
516
|
onFetch: (e, n) => {
|
|
517
517
|
const r = async () => {
|
|
518
518
|
var x, R, F, Q, V;
|
|
519
|
-
const a = e.options, s = (F = (R = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : F.direction, i = ((Q = e.state.data) == null ? void 0 : Q.pages) || [], u = ((V = e.state.data) == null ? void 0 : V.pageParams) || [],
|
|
520
|
-
let
|
|
521
|
-
const
|
|
519
|
+
const a = e.options, s = (F = (R = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : F.direction, i = ((Q = e.state.data) == null ? void 0 : Q.pages) || [], u = ((V = e.state.data) == null ? void 0 : V.pageParams) || [], h = { pages: [], pageParams: [] };
|
|
520
|
+
let l = !1;
|
|
521
|
+
const m = (M) => {
|
|
522
522
|
Object.defineProperty(M, "signal", {
|
|
523
523
|
enumerable: !0,
|
|
524
|
-
get: () => (e.signal.aborted ?
|
|
525
|
-
|
|
524
|
+
get: () => (e.signal.aborted ? l = !0 : e.signal.addEventListener("abort", () => {
|
|
525
|
+
l = !0;
|
|
526
526
|
}), e.signal)
|
|
527
527
|
});
|
|
528
|
-
},
|
|
529
|
-
if (
|
|
528
|
+
}, d = Xr(e.options, e.fetchOptions), f = async (M, A, L) => {
|
|
529
|
+
if (l)
|
|
530
530
|
return Promise.reject();
|
|
531
|
-
if (
|
|
531
|
+
if (A == null && M.pages.length)
|
|
532
532
|
return Promise.resolve(M);
|
|
533
533
|
const Y = {
|
|
534
534
|
queryKey: e.queryKey,
|
|
535
|
-
pageParam:
|
|
535
|
+
pageParam: A,
|
|
536
536
|
direction: L ? "backward" : "forward",
|
|
537
537
|
meta: e.options.meta
|
|
538
538
|
};
|
|
539
|
-
|
|
540
|
-
const
|
|
539
|
+
m(Y);
|
|
540
|
+
const Z = await d(
|
|
541
541
|
Y
|
|
542
542
|
), { maxPages: ye } = e.options, X = L ? Wr : Jr;
|
|
543
543
|
return {
|
|
544
|
-
pages: X(M.pages,
|
|
545
|
-
pageParams: X(M.pageParams,
|
|
544
|
+
pages: X(M.pages, Z, ye),
|
|
545
|
+
pageParams: X(M.pageParams, A, ye)
|
|
546
546
|
};
|
|
547
547
|
};
|
|
548
548
|
let v;
|
|
549
549
|
if (s && i.length) {
|
|
550
|
-
const M = s === "backward",
|
|
550
|
+
const M = s === "backward", A = M ? Ia : yt, L = {
|
|
551
551
|
pages: i,
|
|
552
552
|
pageParams: u
|
|
553
|
-
}, Y =
|
|
554
|
-
v = await
|
|
553
|
+
}, Y = A(a, L);
|
|
554
|
+
v = await f(L, Y, M);
|
|
555
555
|
} else {
|
|
556
|
-
v = await
|
|
557
|
-
|
|
556
|
+
v = await f(
|
|
557
|
+
h,
|
|
558
558
|
u[0] ?? a.initialPageParam
|
|
559
559
|
);
|
|
560
560
|
const M = t ?? i.length;
|
|
561
|
-
for (let
|
|
562
|
-
const L =
|
|
563
|
-
v = await
|
|
561
|
+
for (let A = 1; A < M; A++) {
|
|
562
|
+
const L = yt(a, v);
|
|
563
|
+
v = await f(v, L);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
return v;
|
|
@@ -581,7 +581,7 @@ function Ia(t) {
|
|
|
581
581
|
}
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function yt(t, { pages: e, pageParams: n }) {
|
|
585
585
|
const r = e.length - 1;
|
|
586
586
|
return t.getNextPageParam(
|
|
587
587
|
e[r],
|
|
@@ -590,7 +590,7 @@ function xt(t, { pages: e, pageParams: n }) {
|
|
|
590
590
|
n
|
|
591
591
|
);
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Ia(t, { pages: e, pageParams: n }) {
|
|
594
594
|
var r;
|
|
595
595
|
return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
|
|
596
596
|
t,
|
|
@@ -600,65 +600,65 @@ function Aa(t, { pages: e, pageParams: n }) {
|
|
|
600
600
|
n
|
|
601
601
|
);
|
|
602
602
|
}
|
|
603
|
-
var w, G, H,
|
|
603
|
+
var w, G, H, ne, re, q, ae, oe, Ct, Oa = (Ct = class {
|
|
604
604
|
constructor(t = {}) {
|
|
605
605
|
j(this, w);
|
|
606
606
|
j(this, G);
|
|
607
607
|
j(this, H);
|
|
608
|
-
j(this, te);
|
|
609
608
|
j(this, ne);
|
|
610
|
-
j(this, q);
|
|
611
609
|
j(this, re);
|
|
610
|
+
j(this, q);
|
|
612
611
|
j(this, ae);
|
|
613
|
-
|
|
612
|
+
j(this, oe);
|
|
613
|
+
b(this, w, t.queryCache || new ja()), b(this, G, t.mutationCache || new Da()), b(this, H, t.defaultOptions || {}), b(this, ne, /* @__PURE__ */ new Map()), b(this, re, /* @__PURE__ */ new Map()), b(this, q, 0);
|
|
614
614
|
}
|
|
615
615
|
mount() {
|
|
616
|
-
Me(this, q)._++,
|
|
617
|
-
t && (await this.resumePausedMutations(),
|
|
618
|
-
})), b(this,
|
|
619
|
-
t && (await this.resumePausedMutations(),
|
|
616
|
+
Me(this, q)._++, p(this, q) === 1 && (b(this, ae, Zr.subscribe(async (t) => {
|
|
617
|
+
t && (await this.resumePausedMutations(), p(this, w).onFocus());
|
|
618
|
+
})), b(this, oe, ft.subscribe(async (t) => {
|
|
619
|
+
t && (await this.resumePausedMutations(), p(this, w).onOnline());
|
|
620
620
|
})));
|
|
621
621
|
}
|
|
622
622
|
unmount() {
|
|
623
623
|
var t, e;
|
|
624
|
-
Me(this, q)._--,
|
|
624
|
+
Me(this, q)._--, p(this, q) === 0 && ((t = p(this, ae)) == null || t.call(this), b(this, ae, void 0), (e = p(this, oe)) == null || e.call(this), b(this, oe, void 0));
|
|
625
625
|
}
|
|
626
626
|
isFetching(t) {
|
|
627
|
-
return
|
|
627
|
+
return p(this, w).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
628
628
|
}
|
|
629
629
|
isMutating(t) {
|
|
630
|
-
return
|
|
630
|
+
return p(this, G).findAll({ ...t, status: "pending" }).length;
|
|
631
631
|
}
|
|
632
632
|
getQueryData(t) {
|
|
633
633
|
var n;
|
|
634
634
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
635
|
-
return (n =
|
|
635
|
+
return (n = p(this, w).get(e.queryHash)) == null ? void 0 : n.state.data;
|
|
636
636
|
}
|
|
637
637
|
ensureQueryData(t) {
|
|
638
638
|
const e = this.getQueryData(t.queryKey);
|
|
639
639
|
if (e === void 0)
|
|
640
640
|
return this.fetchQuery(t);
|
|
641
641
|
{
|
|
642
|
-
const n = this.defaultQueryOptions(t), r =
|
|
643
|
-
return t.revalidateIfStale && r.isStaleByTime(
|
|
642
|
+
const n = this.defaultQueryOptions(t), r = p(this, w).build(this, n);
|
|
643
|
+
return t.revalidateIfStale && r.isStaleByTime(mt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
getQueriesData(t) {
|
|
647
|
-
return
|
|
647
|
+
return p(this, w).findAll(t).map(({ queryKey: e, state: n }) => {
|
|
648
648
|
const r = n.data;
|
|
649
649
|
return [e, r];
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
setQueryData(t, e, n) {
|
|
653
|
-
const r = this.defaultQueryOptions({ queryKey: t }), a =
|
|
653
|
+
const r = this.defaultQueryOptions({ queryKey: t }), a = p(this, w).get(
|
|
654
654
|
r.queryHash
|
|
655
655
|
), s = a == null ? void 0 : a.state.data, i = ea(e, s);
|
|
656
656
|
if (i !== void 0)
|
|
657
|
-
return
|
|
657
|
+
return p(this, w).build(this, r).setData(i, { ...n, manual: !0 });
|
|
658
658
|
}
|
|
659
659
|
setQueriesData(t, e, n) {
|
|
660
660
|
return E.batch(
|
|
661
|
-
() =>
|
|
661
|
+
() => p(this, w).findAll(t).map(({ queryKey: r }) => [
|
|
662
662
|
r,
|
|
663
663
|
this.setQueryData(r, e, n)
|
|
664
664
|
])
|
|
@@ -667,10 +667,10 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
|
|
|
667
667
|
getQueryState(t) {
|
|
668
668
|
var n;
|
|
669
669
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
670
|
-
return (n =
|
|
670
|
+
return (n = p(this, w).get(e.queryHash)) == null ? void 0 : n.state;
|
|
671
671
|
}
|
|
672
672
|
removeQueries(t) {
|
|
673
|
-
const e =
|
|
673
|
+
const e = p(this, w);
|
|
674
674
|
E.batch(() => {
|
|
675
675
|
e.findAll(t).forEach((n) => {
|
|
676
676
|
e.remove(n);
|
|
@@ -678,7 +678,7 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
|
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
680
|
resetQueries(t, e) {
|
|
681
|
-
const n =
|
|
681
|
+
const n = p(this, w), r = {
|
|
682
682
|
type: "active",
|
|
683
683
|
...t
|
|
684
684
|
};
|
|
@@ -688,13 +688,13 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
|
|
|
688
688
|
}
|
|
689
689
|
cancelQueries(t = {}, e = {}) {
|
|
690
690
|
const n = { revert: !0, ...e }, r = E.batch(
|
|
691
|
-
() =>
|
|
691
|
+
() => p(this, w).findAll(t).map((a) => a.cancel(n))
|
|
692
692
|
);
|
|
693
693
|
return Promise.all(r).then($).catch($);
|
|
694
694
|
}
|
|
695
695
|
invalidateQueries(t = {}, e = {}) {
|
|
696
696
|
return E.batch(() => {
|
|
697
|
-
if (
|
|
697
|
+
if (p(this, w).findAll(t).forEach((r) => {
|
|
698
698
|
r.invalidate();
|
|
699
699
|
}), t.refetchType === "none")
|
|
700
700
|
return Promise.resolve();
|
|
@@ -710,7 +710,7 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
|
|
|
710
710
|
...e,
|
|
711
711
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
712
712
|
}, r = E.batch(
|
|
713
|
-
() =>
|
|
713
|
+
() => p(this, w).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
714
714
|
let s = a.fetch(void 0, n);
|
|
715
715
|
return n.throwOnError || (s = s.catch($)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
716
716
|
})
|
|
@@ -720,66 +720,66 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
|
|
|
720
720
|
fetchQuery(t) {
|
|
721
721
|
const e = this.defaultQueryOptions(t);
|
|
722
722
|
e.retry === void 0 && (e.retry = !1);
|
|
723
|
-
const n =
|
|
723
|
+
const n = p(this, w).build(this, e);
|
|
724
724
|
return n.isStaleByTime(
|
|
725
|
-
|
|
725
|
+
mt(e.staleTime, n)
|
|
726
726
|
) ? n.fetch(e) : Promise.resolve(n.state.data);
|
|
727
727
|
}
|
|
728
728
|
prefetchQuery(t) {
|
|
729
729
|
return this.fetchQuery(t).then($).catch($);
|
|
730
730
|
}
|
|
731
731
|
fetchInfiniteQuery(t) {
|
|
732
|
-
return t.behavior =
|
|
732
|
+
return t.behavior = Aa(t.pages), this.fetchQuery(t);
|
|
733
733
|
}
|
|
734
734
|
prefetchInfiniteQuery(t) {
|
|
735
735
|
return this.fetchInfiniteQuery(t).then($).catch($);
|
|
736
736
|
}
|
|
737
737
|
resumePausedMutations() {
|
|
738
|
-
return
|
|
738
|
+
return ft.isOnline() ? p(this, G).resumePausedMutations() : Promise.resolve();
|
|
739
739
|
}
|
|
740
740
|
getQueryCache() {
|
|
741
|
-
return
|
|
741
|
+
return p(this, w);
|
|
742
742
|
}
|
|
743
743
|
getMutationCache() {
|
|
744
|
-
return
|
|
744
|
+
return p(this, G);
|
|
745
745
|
}
|
|
746
746
|
getDefaultOptions() {
|
|
747
|
-
return
|
|
747
|
+
return p(this, H);
|
|
748
748
|
}
|
|
749
749
|
setDefaultOptions(t) {
|
|
750
750
|
b(this, H, t);
|
|
751
751
|
}
|
|
752
752
|
setQueryDefaults(t, e) {
|
|
753
|
-
|
|
753
|
+
p(this, ne).set(gt(t), {
|
|
754
754
|
queryKey: t,
|
|
755
755
|
defaultOptions: e
|
|
756
756
|
});
|
|
757
757
|
}
|
|
758
758
|
getQueryDefaults(t) {
|
|
759
|
-
const e = [...
|
|
759
|
+
const e = [...p(this, ne).values()];
|
|
760
760
|
let n = {};
|
|
761
761
|
return e.forEach((r) => {
|
|
762
|
-
|
|
762
|
+
vt(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
763
763
|
}), n;
|
|
764
764
|
}
|
|
765
765
|
setMutationDefaults(t, e) {
|
|
766
|
-
|
|
766
|
+
p(this, re).set(gt(t), {
|
|
767
767
|
mutationKey: t,
|
|
768
768
|
defaultOptions: e
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
getMutationDefaults(t) {
|
|
772
|
-
const e = [...
|
|
772
|
+
const e = [...p(this, re).values()];
|
|
773
773
|
let n = {};
|
|
774
774
|
return e.forEach((r) => {
|
|
775
|
-
|
|
775
|
+
vt(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
776
776
|
}), n;
|
|
777
777
|
}
|
|
778
778
|
defaultQueryOptions(t) {
|
|
779
779
|
if (t._defaulted)
|
|
780
780
|
return t;
|
|
781
781
|
const e = {
|
|
782
|
-
...
|
|
782
|
+
...p(this, H).queries,
|
|
783
783
|
...this.getQueryDefaults(t.queryKey),
|
|
784
784
|
...t,
|
|
785
785
|
_defaulted: !0
|
|
@@ -791,17 +791,17 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
|
|
|
791
791
|
}
|
|
792
792
|
defaultMutationOptions(t) {
|
|
793
793
|
return t != null && t._defaulted ? t : {
|
|
794
|
-
...
|
|
794
|
+
...p(this, H).mutations,
|
|
795
795
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
796
796
|
...t,
|
|
797
797
|
_defaulted: !0
|
|
798
798
|
};
|
|
799
799
|
}
|
|
800
800
|
clear() {
|
|
801
|
-
|
|
801
|
+
p(this, w).clear(), p(this, G).clear();
|
|
802
802
|
}
|
|
803
|
-
}, w = new WeakMap(), G = new WeakMap(), H = new WeakMap(),
|
|
804
|
-
const Ta =
|
|
803
|
+
}, w = new WeakMap(), G = new WeakMap(), H = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), q = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), Ct);
|
|
804
|
+
const Ta = At(null), ke = {
|
|
805
805
|
didCatch: !1,
|
|
806
806
|
error: null
|
|
807
807
|
};
|
|
@@ -859,20 +859,20 @@ class ka extends Kr {
|
|
|
859
859
|
} = this.state;
|
|
860
860
|
let u = e;
|
|
861
861
|
if (s) {
|
|
862
|
-
const
|
|
862
|
+
const h = {
|
|
863
863
|
error: i,
|
|
864
864
|
resetErrorBoundary: this.resetErrorBoundary
|
|
865
865
|
};
|
|
866
866
|
if (typeof n == "function")
|
|
867
|
-
u = n(
|
|
867
|
+
u = n(h);
|
|
868
868
|
else if (r)
|
|
869
|
-
u =
|
|
869
|
+
u = dt(r, h);
|
|
870
870
|
else if (a === null || $r(a))
|
|
871
871
|
u = a;
|
|
872
872
|
else
|
|
873
873
|
throw i;
|
|
874
874
|
}
|
|
875
|
-
return
|
|
875
|
+
return dt(Ta.Provider, {
|
|
876
876
|
value: {
|
|
877
877
|
didCatch: s,
|
|
878
878
|
error: i,
|
|
@@ -926,42 +926,42 @@ class Ua {
|
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
928
|
function Ga({ error: t, resetErrorBoundary: e }) {
|
|
929
|
-
return /* @__PURE__ */ o.jsx(
|
|
929
|
+
return /* @__PURE__ */ o.jsx(Rt, { error: t });
|
|
930
930
|
}
|
|
931
|
-
var
|
|
932
|
-
ltr: [
|
|
933
|
-
rtl: [
|
|
931
|
+
var Be = ["Enter", " "], Ha = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp", "PageDown", "End"], qa = [...Ha, ...Ht], za = {
|
|
932
|
+
ltr: [...Be, "ArrowRight"],
|
|
933
|
+
rtl: [...Be, "ArrowLeft"]
|
|
934
934
|
}, Va = {
|
|
935
935
|
ltr: ["ArrowLeft"],
|
|
936
936
|
rtl: ["ArrowRight"]
|
|
937
|
-
}, ge = "Menu", [le, Ya, Xa] = Rr(ge), [
|
|
937
|
+
}, ge = "Menu", [le, Ya, Xa] = Rr(ge), [J, qt] = _t(ge, [
|
|
938
938
|
Xa,
|
|
939
|
-
|
|
939
|
+
Et,
|
|
940
940
|
Ot
|
|
941
|
-
]), ve =
|
|
942
|
-
const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, u = ve(e), [
|
|
941
|
+
]), ve = Et(), zt = Ot(), [Vt, z] = J(ge), [Wa, xe] = J(ge), Yt = (t) => {
|
|
942
|
+
const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, u = ve(e), [h, l] = c.useState(null), m = c.useRef(!1), d = Ge(s), f = kr(a);
|
|
943
943
|
return c.useEffect(() => {
|
|
944
944
|
const v = () => {
|
|
945
|
-
|
|
946
|
-
}, x = () =>
|
|
945
|
+
m.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
|
|
946
|
+
}, x = () => m.current = !1;
|
|
947
947
|
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
948
948
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
|
|
949
949
|
};
|
|
950
|
-
}, []), /* @__PURE__ */ o.jsx(
|
|
950
|
+
}, []), /* @__PURE__ */ o.jsx(Nt, { ...u, children: /* @__PURE__ */ o.jsx(
|
|
951
951
|
Vt,
|
|
952
952
|
{
|
|
953
953
|
scope: e,
|
|
954
954
|
open: n,
|
|
955
|
-
onOpenChange:
|
|
956
|
-
content:
|
|
957
|
-
onContentChange:
|
|
955
|
+
onOpenChange: d,
|
|
956
|
+
content: h,
|
|
957
|
+
onContentChange: l,
|
|
958
958
|
children: /* @__PURE__ */ o.jsx(
|
|
959
959
|
Wa,
|
|
960
960
|
{
|
|
961
961
|
scope: e,
|
|
962
|
-
onClose: c.useCallback(() =>
|
|
963
|
-
isUsingKeyboardRef:
|
|
964
|
-
dir:
|
|
962
|
+
onClose: c.useCallback(() => d(!1), [d]),
|
|
963
|
+
isUsingKeyboardRef: m,
|
|
964
|
+
dir: f,
|
|
965
965
|
modal: i,
|
|
966
966
|
children: r
|
|
967
967
|
}
|
|
@@ -970,21 +970,21 @@ var $e = ["Enter", " "], Ha = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp",
|
|
|
970
970
|
) });
|
|
971
971
|
};
|
|
972
972
|
Yt.displayName = ge;
|
|
973
|
-
var Ja = "MenuAnchor",
|
|
973
|
+
var Ja = "MenuAnchor", Xe = c.forwardRef(
|
|
974
974
|
(t, e) => {
|
|
975
975
|
const { __scopeMenu: n, ...r } = t, a = ve(n);
|
|
976
976
|
return /* @__PURE__ */ o.jsx(_r, { ...a, ...r, ref: e });
|
|
977
977
|
}
|
|
978
978
|
);
|
|
979
|
-
|
|
980
|
-
var
|
|
979
|
+
Xe.displayName = Ja;
|
|
980
|
+
var We = "MenuPortal", [Za, Xt] = J(We, {
|
|
981
981
|
forceMount: void 0
|
|
982
982
|
}), Wt = (t) => {
|
|
983
|
-
const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = z(
|
|
983
|
+
const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = z(We, e);
|
|
984
984
|
return /* @__PURE__ */ o.jsx(Za, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(je, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Fr, { asChild: !0, container: a, children: r }) }) });
|
|
985
985
|
};
|
|
986
|
-
Wt.displayName =
|
|
987
|
-
var D = "MenuContent", [eo,
|
|
986
|
+
Wt.displayName = We;
|
|
987
|
+
var D = "MenuContent", [eo, Je] = J(D), Jt = c.forwardRef(
|
|
988
988
|
(t, e) => {
|
|
989
989
|
const n = Xt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu);
|
|
990
990
|
return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(je, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(to, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(no, { ...a, ref: e }) }) }) });
|
|
@@ -996,7 +996,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
996
996
|
const s = r.current;
|
|
997
997
|
if (s) return Er(s);
|
|
998
998
|
}, []), /* @__PURE__ */ o.jsx(
|
|
999
|
-
|
|
999
|
+
Ze,
|
|
1000
1000
|
{
|
|
1001
1001
|
...t,
|
|
1002
1002
|
ref: a,
|
|
@@ -1015,7 +1015,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1015
1015
|
), no = c.forwardRef((t, e) => {
|
|
1016
1016
|
const n = z(D, t.__scopeMenu);
|
|
1017
1017
|
return /* @__PURE__ */ o.jsx(
|
|
1018
|
-
|
|
1018
|
+
Ze,
|
|
1019
1019
|
{
|
|
1020
1020
|
...t,
|
|
1021
1021
|
ref: e,
|
|
@@ -1025,7 +1025,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1025
1025
|
onDismiss: () => n.onOpenChange(!1)
|
|
1026
1026
|
}
|
|
1027
1027
|
);
|
|
1028
|
-
}),
|
|
1028
|
+
}), Ze = c.forwardRef(
|
|
1029
1029
|
(t, e) => {
|
|
1030
1030
|
const {
|
|
1031
1031
|
__scopeMenu: n,
|
|
@@ -1034,25 +1034,25 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1034
1034
|
onOpenAutoFocus: s,
|
|
1035
1035
|
onCloseAutoFocus: i,
|
|
1036
1036
|
disableOutsidePointerEvents: u,
|
|
1037
|
-
onEntryFocus:
|
|
1038
|
-
onEscapeKeyDown:
|
|
1039
|
-
onPointerDownOutside:
|
|
1040
|
-
onFocusOutside:
|
|
1041
|
-
onInteractOutside:
|
|
1037
|
+
onEntryFocus: h,
|
|
1038
|
+
onEscapeKeyDown: l,
|
|
1039
|
+
onPointerDownOutside: m,
|
|
1040
|
+
onFocusOutside: d,
|
|
1041
|
+
onInteractOutside: f,
|
|
1042
1042
|
onDismiss: v,
|
|
1043
1043
|
disableOutsideScroll: x,
|
|
1044
1044
|
...R
|
|
1045
|
-
} = t, F = z(D, n), Q = xe(D, n), V = ve(n), M = zt(n),
|
|
1046
|
-
var
|
|
1047
|
-
const S = we.current + g,
|
|
1048
|
-
(function K(
|
|
1049
|
-
we.current =
|
|
1045
|
+
} = t, F = z(D, n), Q = xe(D, n), V = ve(n), M = zt(n), A = Ya(n), [L, Y] = c.useState(null), Z = c.useRef(null), ye = fe(e, Z, F.onContentChange), X = c.useRef(0), we = c.useRef(""), er = c.useRef(0), Ae = c.useRef(null), ot = c.useRef("right"), Ie = c.useRef(0), tr = x ? Ir : c.Fragment, nr = x ? { as: Or, allowPinchZoom: !0 } : void 0, rr = (g) => {
|
|
1046
|
+
var te, it;
|
|
1047
|
+
const S = we.current + g, I = A().filter((K) => !K.disabled), U = document.activeElement, Oe = (te = I.find((K) => K.ref.current === U)) == null ? void 0 : te.textValue, Te = I.map((K) => K.textValue), st = mo(Te, S, Oe), ce = (it = I.find((K) => K.textValue === st)) == null ? void 0 : it.ref.current;
|
|
1048
|
+
(function K(ct) {
|
|
1049
|
+
we.current = ct, window.clearTimeout(X.current), ct !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
|
|
1050
1050
|
})(S), ce && setTimeout(() => ce.focus());
|
|
1051
1051
|
};
|
|
1052
1052
|
c.useEffect(() => () => window.clearTimeout(X.current), []), Sr();
|
|
1053
|
-
const
|
|
1054
|
-
var
|
|
1055
|
-
return
|
|
1053
|
+
const ee = c.useCallback((g) => {
|
|
1054
|
+
var I, U;
|
|
1055
|
+
return ot.current === ((I = Ae.current) == null ? void 0 : I.side) && vo(g, (U = Ae.current) == null ? void 0 : U.area);
|
|
1056
1056
|
}, []);
|
|
1057
1057
|
return /* @__PURE__ */ o.jsx(
|
|
1058
1058
|
eo,
|
|
@@ -1061,26 +1061,26 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1061
1061
|
searchRef: we,
|
|
1062
1062
|
onItemEnter: c.useCallback(
|
|
1063
1063
|
(g) => {
|
|
1064
|
-
|
|
1064
|
+
ee(g) && g.preventDefault();
|
|
1065
1065
|
},
|
|
1066
|
-
[
|
|
1066
|
+
[ee]
|
|
1067
1067
|
),
|
|
1068
1068
|
onItemLeave: c.useCallback(
|
|
1069
1069
|
(g) => {
|
|
1070
1070
|
var S;
|
|
1071
|
-
|
|
1071
|
+
ee(g) || ((S = Z.current) == null || S.focus(), Y(null));
|
|
1072
1072
|
},
|
|
1073
|
-
[
|
|
1073
|
+
[ee]
|
|
1074
1074
|
),
|
|
1075
1075
|
onTriggerLeave: c.useCallback(
|
|
1076
1076
|
(g) => {
|
|
1077
|
-
|
|
1077
|
+
ee(g) && g.preventDefault();
|
|
1078
1078
|
},
|
|
1079
|
-
[
|
|
1079
|
+
[ee]
|
|
1080
1080
|
),
|
|
1081
1081
|
pointerGraceTimerRef: er,
|
|
1082
1082
|
onPointerGraceIntentChange: c.useCallback((g) => {
|
|
1083
|
-
|
|
1083
|
+
Ae.current = g;
|
|
1084
1084
|
}, []),
|
|
1085
1085
|
children: /* @__PURE__ */ o.jsx(tr, { ...nr, children: /* @__PURE__ */ o.jsx(
|
|
1086
1086
|
Nr,
|
|
@@ -1089,7 +1089,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1089
1089
|
trapped: a,
|
|
1090
1090
|
onMountAutoFocus: y(s, (g) => {
|
|
1091
1091
|
var S;
|
|
1092
|
-
g.preventDefault(), (S =
|
|
1092
|
+
g.preventDefault(), (S = Z.current) == null || S.focus({ preventScroll: !0 });
|
|
1093
1093
|
}),
|
|
1094
1094
|
onUnmountAutoFocus: i,
|
|
1095
1095
|
children: /* @__PURE__ */ o.jsx(
|
|
@@ -1097,10 +1097,10 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1097
1097
|
{
|
|
1098
1098
|
asChild: !0,
|
|
1099
1099
|
disableOutsidePointerEvents: u,
|
|
1100
|
-
onEscapeKeyDown:
|
|
1101
|
-
onPointerDownOutside:
|
|
1102
|
-
onFocusOutside:
|
|
1103
|
-
onInteractOutside:
|
|
1100
|
+
onEscapeKeyDown: l,
|
|
1101
|
+
onPointerDownOutside: m,
|
|
1102
|
+
onFocusOutside: d,
|
|
1103
|
+
onInteractOutside: f,
|
|
1104
1104
|
onDismiss: v,
|
|
1105
1105
|
children: /* @__PURE__ */ o.jsx(
|
|
1106
1106
|
qr,
|
|
@@ -1112,7 +1112,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1112
1112
|
loop: r,
|
|
1113
1113
|
currentTabStopId: L,
|
|
1114
1114
|
onCurrentTabStopIdChange: Y,
|
|
1115
|
-
onEntryFocus: y(
|
|
1115
|
+
onEntryFocus: y(h, (g) => {
|
|
1116
1116
|
Q.isUsingKeyboardRef.current || g.preventDefault();
|
|
1117
1117
|
}),
|
|
1118
1118
|
preventScrollOnEntryFocus: !0,
|
|
@@ -1129,12 +1129,12 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1129
1129
|
ref: ye,
|
|
1130
1130
|
style: { outline: "none", ...R.style },
|
|
1131
1131
|
onKeyDown: y(R.onKeyDown, (g) => {
|
|
1132
|
-
const
|
|
1133
|
-
|
|
1134
|
-
const Te =
|
|
1132
|
+
const I = g.target.closest("[data-radix-menu-content]") === g.currentTarget, U = g.ctrlKey || g.altKey || g.metaKey, Oe = g.key.length === 1;
|
|
1133
|
+
I && (g.key === "Tab" && g.preventDefault(), !U && Oe && rr(g.key));
|
|
1134
|
+
const Te = Z.current;
|
|
1135
1135
|
if (g.target !== Te || !qa.includes(g.key)) return;
|
|
1136
1136
|
g.preventDefault();
|
|
1137
|
-
const ce =
|
|
1137
|
+
const ce = A().filter((te) => !te.disabled).map((te) => te.ref.current);
|
|
1138
1138
|
Ht.includes(g.key) && ce.reverse(), po(ce);
|
|
1139
1139
|
}),
|
|
1140
1140
|
onBlur: y(t.onBlur, (g) => {
|
|
@@ -1143,10 +1143,10 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1143
1143
|
onPointerMove: y(
|
|
1144
1144
|
t.onPointerMove,
|
|
1145
1145
|
de((g) => {
|
|
1146
|
-
const S = g.target,
|
|
1147
|
-
if (g.currentTarget.contains(S) &&
|
|
1148
|
-
const U = g.clientX >
|
|
1149
|
-
|
|
1146
|
+
const S = g.target, I = Ie.current !== g.clientX;
|
|
1147
|
+
if (g.currentTarget.contains(S) && I) {
|
|
1148
|
+
const U = g.clientX > Ie.current ? "right" : "left";
|
|
1149
|
+
ot.current = U, Ie.current = g.clientX;
|
|
1150
1150
|
}
|
|
1151
1151
|
})
|
|
1152
1152
|
)
|
|
@@ -1163,13 +1163,13 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1163
1163
|
}
|
|
1164
1164
|
);
|
|
1165
1165
|
Jt.displayName = D;
|
|
1166
|
-
var ro = "MenuGroup",
|
|
1166
|
+
var ro = "MenuGroup", et = c.forwardRef(
|
|
1167
1167
|
(t, e) => {
|
|
1168
1168
|
const { __scopeMenu: n, ...r } = t;
|
|
1169
1169
|
return /* @__PURE__ */ o.jsx(ie.div, { role: "group", ...r, ref: e });
|
|
1170
1170
|
}
|
|
1171
1171
|
);
|
|
1172
|
-
|
|
1172
|
+
et.displayName = ro;
|
|
1173
1173
|
var ao = "MenuLabel", Zt = c.forwardRef(
|
|
1174
1174
|
(t, e) => {
|
|
1175
1175
|
const { __scopeMenu: n, ...r } = t;
|
|
@@ -1177,33 +1177,33 @@ var ao = "MenuLabel", Zt = c.forwardRef(
|
|
|
1177
1177
|
}
|
|
1178
1178
|
);
|
|
1179
1179
|
Zt.displayName = ao;
|
|
1180
|
-
var Ee = "MenuItem",
|
|
1180
|
+
var Ee = "MenuItem", wt = "menu.itemSelect", De = c.forwardRef(
|
|
1181
1181
|
(t, e) => {
|
|
1182
|
-
const { disabled: n = !1, onSelect: r, ...a } = t, s = c.useRef(null), i = xe(Ee, t.__scopeMenu), u =
|
|
1183
|
-
const
|
|
1184
|
-
if (!n &&
|
|
1185
|
-
const
|
|
1186
|
-
|
|
1182
|
+
const { disabled: n = !1, onSelect: r, ...a } = t, s = c.useRef(null), i = xe(Ee, t.__scopeMenu), u = Je(Ee, t.__scopeMenu), h = fe(e, s), l = c.useRef(!1), m = () => {
|
|
1183
|
+
const d = s.current;
|
|
1184
|
+
if (!n && d) {
|
|
1185
|
+
const f = new CustomEvent(wt, { bubbles: !0, cancelable: !0 });
|
|
1186
|
+
d.addEventListener(wt, (v) => r == null ? void 0 : r(v), { once: !0 }), Tr(d, f), f.defaultPrevented ? l.current = !1 : i.onClose();
|
|
1187
1187
|
}
|
|
1188
1188
|
};
|
|
1189
1189
|
return /* @__PURE__ */ o.jsx(
|
|
1190
1190
|
en,
|
|
1191
1191
|
{
|
|
1192
1192
|
...a,
|
|
1193
|
-
ref:
|
|
1193
|
+
ref: h,
|
|
1194
1194
|
disabled: n,
|
|
1195
|
-
onClick: y(t.onClick,
|
|
1196
|
-
onPointerDown: (
|
|
1197
|
-
var
|
|
1198
|
-
(
|
|
1195
|
+
onClick: y(t.onClick, m),
|
|
1196
|
+
onPointerDown: (d) => {
|
|
1197
|
+
var f;
|
|
1198
|
+
(f = t.onPointerDown) == null || f.call(t, d), l.current = !0;
|
|
1199
1199
|
},
|
|
1200
|
-
onPointerUp: y(t.onPointerUp, (
|
|
1201
|
-
var
|
|
1202
|
-
|
|
1200
|
+
onPointerUp: y(t.onPointerUp, (d) => {
|
|
1201
|
+
var f;
|
|
1202
|
+
l.current || (f = d.currentTarget) == null || f.click();
|
|
1203
1203
|
}),
|
|
1204
|
-
onKeyDown: y(t.onKeyDown, (
|
|
1205
|
-
const
|
|
1206
|
-
n ||
|
|
1204
|
+
onKeyDown: y(t.onKeyDown, (d) => {
|
|
1205
|
+
const f = u.searchRef.current !== "";
|
|
1206
|
+
n || f && d.key === " " || Be.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
|
|
1207
1207
|
})
|
|
1208
1208
|
}
|
|
1209
1209
|
);
|
|
@@ -1212,25 +1212,25 @@ var Ee = "MenuItem", yt = "menu.itemSelect", De = c.forwardRef(
|
|
|
1212
1212
|
De.displayName = Ee;
|
|
1213
1213
|
var en = c.forwardRef(
|
|
1214
1214
|
(t, e) => {
|
|
1215
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i =
|
|
1215
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = Je(Ee, n), u = zt(n), h = c.useRef(null), l = fe(e, h), [m, d] = c.useState(!1), [f, v] = c.useState("");
|
|
1216
1216
|
return c.useEffect(() => {
|
|
1217
|
-
const x =
|
|
1217
|
+
const x = h.current;
|
|
1218
1218
|
x && v((x.textContent ?? "").trim());
|
|
1219
1219
|
}, [s.children]), /* @__PURE__ */ o.jsx(
|
|
1220
1220
|
le.ItemSlot,
|
|
1221
1221
|
{
|
|
1222
1222
|
scope: n,
|
|
1223
1223
|
disabled: r,
|
|
1224
|
-
textValue: a ??
|
|
1224
|
+
textValue: a ?? f,
|
|
1225
1225
|
children: /* @__PURE__ */ o.jsx(zr, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ o.jsx(
|
|
1226
1226
|
ie.div,
|
|
1227
1227
|
{
|
|
1228
1228
|
role: "menuitem",
|
|
1229
|
-
"data-highlighted":
|
|
1229
|
+
"data-highlighted": m ? "" : void 0,
|
|
1230
1230
|
"aria-disabled": r || void 0,
|
|
1231
1231
|
"data-disabled": r ? "" : void 0,
|
|
1232
1232
|
...s,
|
|
1233
|
-
ref:
|
|
1233
|
+
ref: l,
|
|
1234
1234
|
onPointerMove: y(
|
|
1235
1235
|
t.onPointerMove,
|
|
1236
1236
|
de((x) => {
|
|
@@ -1241,8 +1241,8 @@ var en = c.forwardRef(
|
|
|
1241
1241
|
t.onPointerLeave,
|
|
1242
1242
|
de((x) => i.onItemLeave(x))
|
|
1243
1243
|
),
|
|
1244
|
-
onFocus: y(t.onFocus, () =>
|
|
1245
|
-
onBlur: y(t.onBlur, () =>
|
|
1244
|
+
onFocus: y(t.onFocus, () => d(!0)),
|
|
1245
|
+
onBlur: y(t.onBlur, () => d(!1))
|
|
1246
1246
|
}
|
|
1247
1247
|
) })
|
|
1248
1248
|
}
|
|
@@ -1258,7 +1258,7 @@ var en = c.forwardRef(
|
|
|
1258
1258
|
"aria-checked": Se(n) ? "mixed" : n,
|
|
1259
1259
|
...a,
|
|
1260
1260
|
ref: e,
|
|
1261
|
-
"data-state":
|
|
1261
|
+
"data-state": rt(n),
|
|
1262
1262
|
onSelect: y(
|
|
1263
1263
|
a.onSelect,
|
|
1264
1264
|
() => r == null ? void 0 : r(Se(n) ? !0 : !n),
|
|
@@ -1269,14 +1269,14 @@ var en = c.forwardRef(
|
|
|
1269
1269
|
}
|
|
1270
1270
|
);
|
|
1271
1271
|
tn.displayName = oo;
|
|
1272
|
-
var nn = "MenuRadioGroup", [so, io] =
|
|
1272
|
+
var nn = "MenuRadioGroup", [so, io] = J(
|
|
1273
1273
|
nn,
|
|
1274
1274
|
{ value: void 0, onValueChange: () => {
|
|
1275
1275
|
} }
|
|
1276
1276
|
), rn = c.forwardRef(
|
|
1277
1277
|
(t, e) => {
|
|
1278
|
-
const { value: n, onValueChange: r, ...a } = t, s =
|
|
1279
|
-
return /* @__PURE__ */ o.jsx(so, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(
|
|
1278
|
+
const { value: n, onValueChange: r, ...a } = t, s = Ge(r);
|
|
1279
|
+
return /* @__PURE__ */ o.jsx(so, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(et, { ...a, ref: e }) });
|
|
1280
1280
|
}
|
|
1281
1281
|
);
|
|
1282
1282
|
rn.displayName = nn;
|
|
@@ -1290,7 +1290,7 @@ var an = "MenuRadioItem", on = c.forwardRef(
|
|
|
1290
1290
|
"aria-checked": s,
|
|
1291
1291
|
...r,
|
|
1292
1292
|
ref: e,
|
|
1293
|
-
"data-state":
|
|
1293
|
+
"data-state": rt(s),
|
|
1294
1294
|
onSelect: y(
|
|
1295
1295
|
r.onSelect,
|
|
1296
1296
|
() => {
|
|
@@ -1304,12 +1304,12 @@ var an = "MenuRadioItem", on = c.forwardRef(
|
|
|
1304
1304
|
}
|
|
1305
1305
|
);
|
|
1306
1306
|
on.displayName = an;
|
|
1307
|
-
var
|
|
1308
|
-
|
|
1307
|
+
var tt = "MenuItemIndicator", [sn, co] = J(
|
|
1308
|
+
tt,
|
|
1309
1309
|
{ checked: !1 }
|
|
1310
1310
|
), cn = c.forwardRef(
|
|
1311
1311
|
(t, e) => {
|
|
1312
|
-
const { __scopeMenu: n, forceMount: r, ...a } = t, s = co(
|
|
1312
|
+
const { __scopeMenu: n, forceMount: r, ...a } = t, s = co(tt, n);
|
|
1313
1313
|
return /* @__PURE__ */ o.jsx(
|
|
1314
1314
|
je,
|
|
1315
1315
|
{
|
|
@@ -1319,14 +1319,14 @@ var et = "MenuItemIndicator", [sn, co] = W(
|
|
|
1319
1319
|
{
|
|
1320
1320
|
...a,
|
|
1321
1321
|
ref: e,
|
|
1322
|
-
"data-state":
|
|
1322
|
+
"data-state": rt(s.checked)
|
|
1323
1323
|
}
|
|
1324
1324
|
)
|
|
1325
1325
|
}
|
|
1326
1326
|
);
|
|
1327
1327
|
}
|
|
1328
1328
|
);
|
|
1329
|
-
cn.displayName =
|
|
1329
|
+
cn.displayName = tt;
|
|
1330
1330
|
var uo = "MenuSeparator", un = c.forwardRef(
|
|
1331
1331
|
(t, e) => {
|
|
1332
1332
|
const { __scopeMenu: n, ...r } = t;
|
|
@@ -1345,20 +1345,20 @@ un.displayName = uo;
|
|
|
1345
1345
|
var lo = "MenuArrow", ln = c.forwardRef(
|
|
1346
1346
|
(t, e) => {
|
|
1347
1347
|
const { __scopeMenu: n, ...r } = t, a = ve(n);
|
|
1348
|
-
return /* @__PURE__ */ o.jsx(
|
|
1348
|
+
return /* @__PURE__ */ o.jsx(Ar, { ...a, ...r, ref: e });
|
|
1349
1349
|
}
|
|
1350
1350
|
);
|
|
1351
1351
|
ln.displayName = lo;
|
|
1352
|
-
var
|
|
1353
|
-
const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = z(
|
|
1354
|
-
return c.useEffect(() => (s.open === !1 &&
|
|
1352
|
+
var nt = "MenuSub", [ho, dn] = J(nt), hn = (t) => {
|
|
1353
|
+
const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = z(nt, e), i = ve(e), [u, h] = c.useState(null), [l, m] = c.useState(null), d = Ge(a);
|
|
1354
|
+
return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ o.jsx(Nt, { ...i, children: /* @__PURE__ */ o.jsx(
|
|
1355
1355
|
Vt,
|
|
1356
1356
|
{
|
|
1357
1357
|
scope: e,
|
|
1358
1358
|
open: r,
|
|
1359
|
-
onOpenChange:
|
|
1360
|
-
content:
|
|
1361
|
-
onContentChange:
|
|
1359
|
+
onOpenChange: d,
|
|
1360
|
+
content: l,
|
|
1361
|
+
onContentChange: m,
|
|
1362
1362
|
children: /* @__PURE__ */ o.jsx(
|
|
1363
1363
|
ho,
|
|
1364
1364
|
{
|
|
@@ -1366,25 +1366,25 @@ var tt = "MenuSub", [ho, dn] = W(tt), hn = (t) => {
|
|
|
1366
1366
|
contentId: _e(),
|
|
1367
1367
|
triggerId: _e(),
|
|
1368
1368
|
trigger: u,
|
|
1369
|
-
onTriggerChange:
|
|
1369
|
+
onTriggerChange: h,
|
|
1370
1370
|
children: n
|
|
1371
1371
|
}
|
|
1372
1372
|
)
|
|
1373
1373
|
}
|
|
1374
1374
|
) });
|
|
1375
1375
|
};
|
|
1376
|
-
hn.displayName =
|
|
1376
|
+
hn.displayName = nt;
|
|
1377
1377
|
var ue = "MenuSubTrigger", pn = c.forwardRef(
|
|
1378
1378
|
(t, e) => {
|
|
1379
|
-
const n = z(ue, t.__scopeMenu), r = xe(ue, t.__scopeMenu), a = dn(ue, t.__scopeMenu), s =
|
|
1379
|
+
const n = z(ue, t.__scopeMenu), r = xe(ue, t.__scopeMenu), a = dn(ue, t.__scopeMenu), s = Je(ue, t.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: h } = s, l = { __scopeMenu: t.__scopeMenu }, m = c.useCallback(() => {
|
|
1380
1380
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
1381
1381
|
}, []);
|
|
1382
|
-
return c.useEffect(() =>
|
|
1383
|
-
const
|
|
1382
|
+
return c.useEffect(() => m, [m]), c.useEffect(() => {
|
|
1383
|
+
const d = u.current;
|
|
1384
1384
|
return () => {
|
|
1385
|
-
window.clearTimeout(
|
|
1385
|
+
window.clearTimeout(d), h(null);
|
|
1386
1386
|
};
|
|
1387
|
-
}, [u,
|
|
1387
|
+
}, [u, h]), /* @__PURE__ */ o.jsx(Xe, { asChild: !0, ...l, children: /* @__PURE__ */ o.jsx(
|
|
1388
1388
|
en,
|
|
1389
1389
|
{
|
|
1390
1390
|
id: a.triggerId,
|
|
@@ -1393,36 +1393,36 @@ var ue = "MenuSubTrigger", pn = c.forwardRef(
|
|
|
1393
1393
|
"aria-controls": a.contentId,
|
|
1394
1394
|
"data-state": gn(n.open),
|
|
1395
1395
|
...t,
|
|
1396
|
-
ref:
|
|
1397
|
-
onClick: (
|
|
1398
|
-
var
|
|
1399
|
-
(
|
|
1396
|
+
ref: St(e, a.onTriggerChange),
|
|
1397
|
+
onClick: (d) => {
|
|
1398
|
+
var f;
|
|
1399
|
+
(f = t.onClick) == null || f.call(t, d), !(t.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1400
1400
|
},
|
|
1401
1401
|
onPointerMove: y(
|
|
1402
1402
|
t.onPointerMove,
|
|
1403
|
-
de((
|
|
1404
|
-
s.onItemEnter(
|
|
1405
|
-
n.onOpenChange(!0),
|
|
1403
|
+
de((d) => {
|
|
1404
|
+
s.onItemEnter(d), !d.defaultPrevented && !t.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
1405
|
+
n.onOpenChange(!0), m();
|
|
1406
1406
|
}, 100));
|
|
1407
1407
|
})
|
|
1408
1408
|
),
|
|
1409
1409
|
onPointerLeave: y(
|
|
1410
1410
|
t.onPointerLeave,
|
|
1411
|
-
de((
|
|
1411
|
+
de((d) => {
|
|
1412
1412
|
var v, x;
|
|
1413
|
-
|
|
1414
|
-
const
|
|
1415
|
-
if (
|
|
1416
|
-
const R = (x = n.content) == null ? void 0 : x.dataset.side, F = R === "right", Q = F ? -5 : 5, V =
|
|
1413
|
+
m();
|
|
1414
|
+
const f = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
|
|
1415
|
+
if (f) {
|
|
1416
|
+
const R = (x = n.content) == null ? void 0 : x.dataset.side, F = R === "right", Q = F ? -5 : 5, V = f[F ? "left" : "right"], M = f[F ? "right" : "left"];
|
|
1417
1417
|
s.onPointerGraceIntentChange({
|
|
1418
1418
|
area: [
|
|
1419
1419
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
1420
1420
|
// consistently within polygon bounds
|
|
1421
|
-
{ x:
|
|
1422
|
-
{ x: V, y:
|
|
1423
|
-
{ x: M, y:
|
|
1424
|
-
{ x: M, y:
|
|
1425
|
-
{ x: V, y:
|
|
1421
|
+
{ x: d.clientX + Q, y: d.clientY },
|
|
1422
|
+
{ x: V, y: f.top },
|
|
1423
|
+
{ x: M, y: f.top },
|
|
1424
|
+
{ x: M, y: f.bottom },
|
|
1425
|
+
{ x: V, y: f.bottom }
|
|
1426
1426
|
],
|
|
1427
1427
|
side: R
|
|
1428
1428
|
}), window.clearTimeout(u.current), u.current = window.setTimeout(
|
|
@@ -1430,15 +1430,15 @@ var ue = "MenuSubTrigger", pn = c.forwardRef(
|
|
|
1430
1430
|
300
|
|
1431
1431
|
);
|
|
1432
1432
|
} else {
|
|
1433
|
-
if (s.onTriggerLeave(
|
|
1433
|
+
if (s.onTriggerLeave(d), d.defaultPrevented) return;
|
|
1434
1434
|
s.onPointerGraceIntentChange(null);
|
|
1435
1435
|
}
|
|
1436
1436
|
})
|
|
1437
1437
|
),
|
|
1438
|
-
onKeyDown: y(t.onKeyDown, (
|
|
1438
|
+
onKeyDown: y(t.onKeyDown, (d) => {
|
|
1439
1439
|
var v;
|
|
1440
|
-
const
|
|
1441
|
-
t.disabled ||
|
|
1440
|
+
const f = s.searchRef.current !== "";
|
|
1441
|
+
t.disabled || f && d.key === " " || za[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
|
|
1442
1442
|
})
|
|
1443
1443
|
}
|
|
1444
1444
|
) });
|
|
@@ -1447,34 +1447,34 @@ var ue = "MenuSubTrigger", pn = c.forwardRef(
|
|
|
1447
1447
|
pn.displayName = ue;
|
|
1448
1448
|
var fn = "MenuSubContent", mn = c.forwardRef(
|
|
1449
1449
|
(t, e) => {
|
|
1450
|
-
const n = Xt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu), u = dn(fn, t.__scopeMenu),
|
|
1450
|
+
const n = Xt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu), u = dn(fn, t.__scopeMenu), h = c.useRef(null), l = fe(e, h);
|
|
1451
1451
|
return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(je, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
|
|
1452
|
-
|
|
1452
|
+
Ze,
|
|
1453
1453
|
{
|
|
1454
1454
|
id: u.contentId,
|
|
1455
1455
|
"aria-labelledby": u.triggerId,
|
|
1456
1456
|
...a,
|
|
1457
|
-
ref:
|
|
1457
|
+
ref: l,
|
|
1458
1458
|
align: "start",
|
|
1459
1459
|
side: i.dir === "rtl" ? "left" : "right",
|
|
1460
1460
|
disableOutsidePointerEvents: !1,
|
|
1461
1461
|
disableOutsideScroll: !1,
|
|
1462
1462
|
trapFocus: !1,
|
|
1463
|
-
onOpenAutoFocus: (
|
|
1464
|
-
var
|
|
1465
|
-
i.isUsingKeyboardRef.current && ((
|
|
1463
|
+
onOpenAutoFocus: (m) => {
|
|
1464
|
+
var d;
|
|
1465
|
+
i.isUsingKeyboardRef.current && ((d = h.current) == null || d.focus()), m.preventDefault();
|
|
1466
1466
|
},
|
|
1467
|
-
onCloseAutoFocus: (
|
|
1468
|
-
onFocusOutside: y(t.onFocusOutside, (
|
|
1469
|
-
|
|
1467
|
+
onCloseAutoFocus: (m) => m.preventDefault(),
|
|
1468
|
+
onFocusOutside: y(t.onFocusOutside, (m) => {
|
|
1469
|
+
m.target !== u.trigger && s.onOpenChange(!1);
|
|
1470
1470
|
}),
|
|
1471
|
-
onEscapeKeyDown: y(t.onEscapeKeyDown, (
|
|
1472
|
-
i.onClose(),
|
|
1471
|
+
onEscapeKeyDown: y(t.onEscapeKeyDown, (m) => {
|
|
1472
|
+
i.onClose(), m.preventDefault();
|
|
1473
1473
|
}),
|
|
1474
|
-
onKeyDown: y(t.onKeyDown, (
|
|
1474
|
+
onKeyDown: y(t.onKeyDown, (m) => {
|
|
1475
1475
|
var v;
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1476
|
+
const d = m.currentTarget.contains(m.target), f = Va[i.dir].includes(m.key);
|
|
1477
|
+
d && f && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), m.preventDefault());
|
|
1478
1478
|
})
|
|
1479
1479
|
}
|
|
1480
1480
|
) }) }) });
|
|
@@ -1487,7 +1487,7 @@ function gn(t) {
|
|
|
1487
1487
|
function Se(t) {
|
|
1488
1488
|
return t === "indeterminate";
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function rt(t) {
|
|
1491
1491
|
return Se(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
1492
1492
|
}
|
|
1493
1493
|
function po(t) {
|
|
@@ -1499,20 +1499,20 @@ function fo(t, e) {
|
|
|
1499
1499
|
return t.map((n, r) => t[(e + r) % t.length]);
|
|
1500
1500
|
}
|
|
1501
1501
|
function mo(t, e, n) {
|
|
1502
|
-
const a = e.length > 1 && Array.from(e).every((
|
|
1502
|
+
const a = e.length > 1 && Array.from(e).every((l) => l === e[0]) ? e[0] : e, s = n ? t.indexOf(n) : -1;
|
|
1503
1503
|
let i = fo(t, Math.max(s, 0));
|
|
1504
|
-
a.length === 1 && (i = i.filter((
|
|
1505
|
-
const
|
|
1506
|
-
(
|
|
1504
|
+
a.length === 1 && (i = i.filter((l) => l !== n));
|
|
1505
|
+
const h = i.find(
|
|
1506
|
+
(l) => l.toLowerCase().startsWith(a.toLowerCase())
|
|
1507
1507
|
);
|
|
1508
|
-
return
|
|
1508
|
+
return h !== n ? h : void 0;
|
|
1509
1509
|
}
|
|
1510
1510
|
function go(t, e) {
|
|
1511
1511
|
const { x: n, y: r } = t;
|
|
1512
1512
|
let a = !1;
|
|
1513
1513
|
for (let s = 0, i = e.length - 1; s < e.length; i = s++) {
|
|
1514
|
-
const u = e[s].x,
|
|
1515
|
-
|
|
1514
|
+
const u = e[s].x, h = e[s].y, l = e[i].x, m = e[i].y;
|
|
1515
|
+
h > r != m > r && n < (l - u) * (r - h) / (m - h) + u && (a = !a);
|
|
1516
1516
|
}
|
|
1517
1517
|
return a;
|
|
1518
1518
|
}
|
|
@@ -1524,10 +1524,10 @@ function vo(t, e) {
|
|
|
1524
1524
|
function de(t) {
|
|
1525
1525
|
return (e) => e.pointerType === "mouse" ? t(e) : void 0;
|
|
1526
1526
|
}
|
|
1527
|
-
var xo = Yt, yo =
|
|
1528
|
-
|
|
1527
|
+
var xo = Yt, yo = Xe, wo = Wt, Mo = Jt, bo = et, Co = Zt, Po = De, Ro = tn, _o = rn, Eo = on, So = cn, No = un, jo = ln, Do = hn, Ao = pn, Io = mn, at = "DropdownMenu", [Oo, js] = _t(
|
|
1528
|
+
at,
|
|
1529
1529
|
[qt]
|
|
1530
|
-
), C = qt(), [To, vn] = Oo(
|
|
1530
|
+
), C = qt(), [To, vn] = Oo(at), xn = (t) => {
|
|
1531
1531
|
const {
|
|
1532
1532
|
__scopeDropdownMenu: e,
|
|
1533
1533
|
children: n,
|
|
@@ -1536,7 +1536,7 @@ var xo = Yt, yo = Ye, wo = Wt, Mo = Jt, bo = Ze, Co = Zt, Po = De, Ro = tn, _o =
|
|
|
1536
1536
|
defaultOpen: s,
|
|
1537
1537
|
onOpenChange: i,
|
|
1538
1538
|
modal: u = !0
|
|
1539
|
-
} = t,
|
|
1539
|
+
} = t, h = C(e), l = c.useRef(null), [m = !1, d] = jt({
|
|
1540
1540
|
prop: a,
|
|
1541
1541
|
defaultProp: s,
|
|
1542
1542
|
onChange: i
|
|
@@ -1546,17 +1546,17 @@ var xo = Yt, yo = Ye, wo = Wt, Mo = Jt, bo = Ze, Co = Zt, Po = De, Ro = tn, _o =
|
|
|
1546
1546
|
{
|
|
1547
1547
|
scope: e,
|
|
1548
1548
|
triggerId: _e(),
|
|
1549
|
-
triggerRef:
|
|
1549
|
+
triggerRef: l,
|
|
1550
1550
|
contentId: _e(),
|
|
1551
|
-
open:
|
|
1552
|
-
onOpenChange:
|
|
1553
|
-
onOpenToggle: c.useCallback(() =>
|
|
1551
|
+
open: m,
|
|
1552
|
+
onOpenChange: d,
|
|
1553
|
+
onOpenToggle: c.useCallback(() => d((f) => !f), [d]),
|
|
1554
1554
|
modal: u,
|
|
1555
|
-
children: /* @__PURE__ */ o.jsx(xo, { ...
|
|
1555
|
+
children: /* @__PURE__ */ o.jsx(xo, { ...h, open: m, onOpenChange: d, dir: r, modal: u, children: n })
|
|
1556
1556
|
}
|
|
1557
1557
|
);
|
|
1558
1558
|
};
|
|
1559
|
-
xn.displayName =
|
|
1559
|
+
xn.displayName = at;
|
|
1560
1560
|
var yn = "DropdownMenuTrigger", wn = c.forwardRef(
|
|
1561
1561
|
(t, e) => {
|
|
1562
1562
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = vn(yn, n), i = C(n);
|
|
@@ -1572,7 +1572,7 @@ var yn = "DropdownMenuTrigger", wn = c.forwardRef(
|
|
|
1572
1572
|
"data-disabled": r ? "" : void 0,
|
|
1573
1573
|
disabled: r,
|
|
1574
1574
|
...a,
|
|
1575
|
-
ref:
|
|
1575
|
+
ref: St(e, s.triggerRef),
|
|
1576
1576
|
onPointerDown: y(t.onPointerDown, (u) => {
|
|
1577
1577
|
!r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
|
|
1578
1578
|
}),
|
|
@@ -1601,12 +1601,12 @@ var bn = "DropdownMenuContent", Cn = c.forwardRef(
|
|
|
1601
1601
|
...r,
|
|
1602
1602
|
ref: e,
|
|
1603
1603
|
onCloseAutoFocus: y(t.onCloseAutoFocus, (u) => {
|
|
1604
|
-
var
|
|
1605
|
-
i.current || (
|
|
1604
|
+
var h;
|
|
1605
|
+
i.current || (h = a.triggerRef.current) == null || h.focus(), i.current = !1, u.preventDefault();
|
|
1606
1606
|
}),
|
|
1607
1607
|
onInteractOutside: y(t.onInteractOutside, (u) => {
|
|
1608
|
-
const
|
|
1609
|
-
(!a.modal ||
|
|
1608
|
+
const h = u.detail.originalEvent, l = h.button === 0 && h.ctrlKey === !0, m = h.button === 2 || l;
|
|
1609
|
+
(!a.modal || m) && (i.current = !0);
|
|
1610
1610
|
}),
|
|
1611
1611
|
style: {
|
|
1612
1612
|
...t.style,
|
|
@@ -1675,21 +1675,21 @@ var zo = "DropdownMenuArrow", Vo = c.forwardRef(
|
|
|
1675
1675
|
);
|
|
1676
1676
|
Vo.displayName = zo;
|
|
1677
1677
|
var Yo = (t) => {
|
|
1678
|
-
const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [u = !1,
|
|
1678
|
+
const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [u = !1, h] = jt({
|
|
1679
1679
|
prop: r,
|
|
1680
1680
|
defaultProp: s,
|
|
1681
1681
|
onChange: a
|
|
1682
1682
|
});
|
|
1683
|
-
return /* @__PURE__ */ o.jsx(Do, { ...i, open: u, onOpenChange:
|
|
1683
|
+
return /* @__PURE__ */ o.jsx(Do, { ...i, open: u, onOpenChange: h, children: n });
|
|
1684
1684
|
}, Xo = "DropdownMenuSubTrigger", jn = c.forwardRef((t, e) => {
|
|
1685
1685
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1686
|
-
return /* @__PURE__ */ o.jsx(
|
|
1686
|
+
return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: e });
|
|
1687
1687
|
});
|
|
1688
1688
|
jn.displayName = Xo;
|
|
1689
1689
|
var Wo = "DropdownMenuSubContent", Dn = c.forwardRef((t, e) => {
|
|
1690
1690
|
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1691
1691
|
return /* @__PURE__ */ o.jsx(
|
|
1692
|
-
|
|
1692
|
+
Io,
|
|
1693
1693
|
{
|
|
1694
1694
|
...a,
|
|
1695
1695
|
...r,
|
|
@@ -1706,8 +1706,8 @@ var Wo = "DropdownMenuSubContent", Dn = c.forwardRef((t, e) => {
|
|
|
1706
1706
|
);
|
|
1707
1707
|
});
|
|
1708
1708
|
Dn.displayName = Wo;
|
|
1709
|
-
var Jo = xn, Zo = wn,
|
|
1710
|
-
const ts = Jo, ns = Zo, rs =
|
|
1709
|
+
var Jo = xn, Zo = wn, An = Mn, In = Cn, On = Pn, Tn = Rn, kn = _n, Fn = En, Ln = Sn, Kn = Nn, es = Yo, $n = jn, Bn = Dn;
|
|
1710
|
+
const ts = Jo, ns = Zo, rs = An, as = es, Qn = c.forwardRef(({ className: t, inset: e, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1711
1711
|
$n,
|
|
1712
1712
|
{
|
|
1713
1713
|
ref: a,
|
|
@@ -1719,7 +1719,7 @@ const ts = Jo, ns = Zo, rs = In, as = es, Qn = c.forwardRef(({ className: t, ins
|
|
|
1719
1719
|
...r,
|
|
1720
1720
|
children: [
|
|
1721
1721
|
n,
|
|
1722
|
-
/* @__PURE__ */ o.jsx(
|
|
1722
|
+
/* @__PURE__ */ o.jsx(Ve, { className: "ml-auto h-4 w-4" })
|
|
1723
1723
|
]
|
|
1724
1724
|
}
|
|
1725
1725
|
));
|
|
@@ -1736,8 +1736,8 @@ const Un = c.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
|
|
|
1736
1736
|
}
|
|
1737
1737
|
));
|
|
1738
1738
|
Un.displayName = Bn.displayName;
|
|
1739
|
-
const Gn = c.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1740
|
-
|
|
1739
|
+
const Gn = c.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__PURE__ */ o.jsx(An, { children: /* @__PURE__ */ o.jsx(
|
|
1740
|
+
In,
|
|
1741
1741
|
{
|
|
1742
1742
|
ref: r,
|
|
1743
1743
|
sideOffset: e,
|
|
@@ -1749,7 +1749,7 @@ const Gn = c.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__
|
|
|
1749
1749
|
...n
|
|
1750
1750
|
}
|
|
1751
1751
|
) }));
|
|
1752
|
-
Gn.displayName =
|
|
1752
|
+
Gn.displayName = In.displayName;
|
|
1753
1753
|
const Hn = c.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1754
1754
|
Tn,
|
|
1755
1755
|
{
|
|
@@ -1819,7 +1819,7 @@ const zn = c.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
|
|
|
1819
1819
|
));
|
|
1820
1820
|
zn.displayName = Kn.displayName;
|
|
1821
1821
|
const is = () => {
|
|
1822
|
-
const { navigation: t } =
|
|
1822
|
+
const { navigation: t } = qe();
|
|
1823
1823
|
return t.length <= 1 ? null : /* @__PURE__ */ o.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
|
|
1824
1824
|
Fe,
|
|
1825
1825
|
{
|
|
@@ -1838,17 +1838,17 @@ const is = () => {
|
|
|
1838
1838
|
/* @__PURE__ */ o.jsx(Vn, { item: e }, n)
|
|
1839
1839
|
)) }) })
|
|
1840
1840
|
] }, t.label) : /* @__PURE__ */ o.jsx(Re, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Hn, { children: t.label }, t.label) }), Yn = It(function() {
|
|
1841
|
-
const [e, n] = pr(), { isAuthenticated: r, profile: a, isAuthEnabled: s, login: i, logout: u } = yr(),
|
|
1841
|
+
const [e, n] = pr(), { isAuthenticated: r, profile: a, isAuthEnabled: s, login: i, logout: u } = yr(), h = qe(), { page: l, plugins: m } = h, d = e ? ua : la;
|
|
1842
1842
|
return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1843
1843
|
/* @__PURE__ */ o.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: [
|
|
1844
1844
|
/* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Re, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1845
|
-
(
|
|
1845
|
+
(l == null ? void 0 : l.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1846
1846
|
/* @__PURE__ */ o.jsx(
|
|
1847
1847
|
"img",
|
|
1848
1848
|
{
|
|
1849
|
-
src:
|
|
1850
|
-
alt:
|
|
1851
|
-
style: { width:
|
|
1849
|
+
src: l.logo.src.light,
|
|
1850
|
+
alt: l.logo.alt ?? l.pageTitle,
|
|
1851
|
+
style: { width: l.logo.width },
|
|
1852
1852
|
className: P("h-10", e && "hidden"),
|
|
1853
1853
|
loading: "lazy"
|
|
1854
1854
|
}
|
|
@@ -1856,15 +1856,15 @@ const is = () => {
|
|
|
1856
1856
|
/* @__PURE__ */ o.jsx(
|
|
1857
1857
|
"img",
|
|
1858
1858
|
{
|
|
1859
|
-
src:
|
|
1860
|
-
alt:
|
|
1861
|
-
style: { width:
|
|
1859
|
+
src: l.logo.src.dark,
|
|
1860
|
+
alt: l.logo.alt ?? l.pageTitle,
|
|
1861
|
+
style: { width: l.logo.width },
|
|
1862
1862
|
className: P("h-10", !e && "hidden"),
|
|
1863
1863
|
loading: "lazy"
|
|
1864
1864
|
}
|
|
1865
1865
|
)
|
|
1866
1866
|
] }),
|
|
1867
|
-
/* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children:
|
|
1867
|
+
/* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
|
|
1868
1868
|
] }) }) }),
|
|
1869
1869
|
/* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1870
1870
|
/* @__PURE__ */ o.jsx("div", { className: "w-full max-w-prose" }),
|
|
@@ -1874,7 +1874,7 @@ const is = () => {
|
|
|
1874
1874
|
/* @__PURE__ */ o.jsxs(Gn, { className: "w-56", children: [
|
|
1875
1875
|
/* @__PURE__ */ o.jsx(qn, { children: "My Account" }),
|
|
1876
1876
|
/* @__PURE__ */ o.jsx(zn, {}),
|
|
1877
|
-
|
|
1877
|
+
m.filter((f) => La(f)).flatMap((f) => f.getProfileMenuItems(h)).map((f) => /* @__PURE__ */ o.jsx(Vn, { item: f }, f.label))
|
|
1878
1878
|
] })
|
|
1879
1879
|
] }),
|
|
1880
1880
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1884,7 +1884,7 @@ const is = () => {
|
|
|
1884
1884
|
"aria-label": e ? "Switch to light mode" : "Switch to dark mode",
|
|
1885
1885
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
1886
1886
|
onClick: n,
|
|
1887
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1887
|
+
children: /* @__PURE__ */ o.jsx(d, { size: 18 })
|
|
1888
1888
|
}
|
|
1889
1889
|
)
|
|
1890
1890
|
] })
|
|
@@ -1894,11 +1894,11 @@ const is = () => {
|
|
|
1894
1894
|
] }) });
|
|
1895
1895
|
}), Xn = {
|
|
1896
1896
|
Header: Yn
|
|
1897
|
-
}, cs =
|
|
1897
|
+
}, cs = At(Xn), us = cs.Provider, ls = ({
|
|
1898
1898
|
children: t,
|
|
1899
1899
|
...e
|
|
1900
1900
|
}) => {
|
|
1901
|
-
var
|
|
1901
|
+
var d, f;
|
|
1902
1902
|
const n = be(
|
|
1903
1903
|
() => ({ ...Xn, ...e.overrides }),
|
|
1904
1904
|
[e.overrides]
|
|
@@ -1907,31 +1907,31 @@ const is = () => {
|
|
|
1907
1907
|
var v;
|
|
1908
1908
|
return { ...fr, ...(v = e.mdx) == null ? void 0 : v.components };
|
|
1909
1909
|
},
|
|
1910
|
-
[(
|
|
1911
|
-
), { stagger: a } = Br(
|
|
1910
|
+
[(d = e.mdx) == null ? void 0 : d.components]
|
|
1911
|
+
), { stagger: a } = Br($e), [s, i] = Ke(!1), u = be(
|
|
1912
1912
|
() => s ? { stagger: !0 } : { stagger: a },
|
|
1913
1913
|
[a, s]
|
|
1914
|
-
),
|
|
1915
|
-
|
|
1914
|
+
), h = br();
|
|
1915
|
+
W(() => {
|
|
1916
1916
|
s || i(!0);
|
|
1917
|
-
}, [s,
|
|
1918
|
-
const
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
}, [
|
|
1922
|
-
const
|
|
1917
|
+
}, [s, h.location]);
|
|
1918
|
+
const l = be(() => new Ua(e), [e]);
|
|
1919
|
+
W(() => {
|
|
1920
|
+
l.initialize();
|
|
1921
|
+
}, [l]);
|
|
1922
|
+
const m = (f = e.plugins) == null ? void 0 : f.filter(Ba).map((v, x) => {
|
|
1923
1923
|
var R;
|
|
1924
1924
|
return /* @__PURE__ */ o.jsx(Qr, { children: (R = v.getHead) == null ? void 0 : R.call(v) }, x);
|
|
1925
1925
|
});
|
|
1926
1926
|
return /* @__PURE__ */ o.jsxs(na, { client: Gt, children: [
|
|
1927
|
-
/* @__PURE__ */ o.jsx(
|
|
1928
|
-
/* @__PURE__ */ o.jsx(
|
|
1927
|
+
/* @__PURE__ */ o.jsx(Qe, { children: m }),
|
|
1928
|
+
/* @__PURE__ */ o.jsx($e.Provider, { value: u, children: /* @__PURE__ */ o.jsx(ra, { value: l, children: /* @__PURE__ */ o.jsx(sr, { components: r, children: /* @__PURE__ */ o.jsx(mr, { children: /* @__PURE__ */ o.jsx(us, { value: n, children: /* @__PURE__ */ o.jsx(gr, { children: t }) }) }) }) }) })
|
|
1929
1929
|
] });
|
|
1930
1930
|
}, ds = It(ls), Wn = (t) => /* @__PURE__ */ o.jsx(ka, { FallbackComponent: Ga, children: /* @__PURE__ */ o.jsx(ds, { ...t }) });
|
|
1931
1931
|
Wn.displayName = "DevPortal";
|
|
1932
1932
|
const hs = () => {
|
|
1933
|
-
const t = se(), { setActiveAnchor: e } =
|
|
1934
|
-
|
|
1933
|
+
const t = se(), { setActiveAnchor: e } = Ue();
|
|
1934
|
+
W(() => {
|
|
1935
1935
|
if (!t.hash) return;
|
|
1936
1936
|
const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
|
|
1937
1937
|
if (r) {
|
|
@@ -1948,7 +1948,7 @@ const hs = () => {
|
|
|
1948
1948
|
}, [t.hash, e]);
|
|
1949
1949
|
}, ps = () => {
|
|
1950
1950
|
const t = se(), e = Ne(t.pathname);
|
|
1951
|
-
|
|
1951
|
+
W(() => {
|
|
1952
1952
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
1953
1953
|
}, [t.pathname]);
|
|
1954
1954
|
}, Jn = ({
|
|
@@ -1956,10 +1956,20 @@ const hs = () => {
|
|
|
1956
1956
|
defaultOpen: e,
|
|
1957
1957
|
path: n
|
|
1958
1958
|
}) => {
|
|
1959
|
-
const [r, a] =
|
|
1960
|
-
|
|
1961
|
-
!r && i.current !== s.pathname && a(
|
|
1962
|
-
}, [r, t, n, s.pathname])
|
|
1959
|
+
const [r, a] = Ke(e), s = se(), i = Ne(s.pathname), [u, h] = Ke(!1);
|
|
1960
|
+
W(() => {
|
|
1961
|
+
!r && i.current !== s.pathname && a(ze(t, s.pathname, n)), i.current = s.pathname;
|
|
1962
|
+
}, [r, t, n, s.pathname]);
|
|
1963
|
+
const l = () => {
|
|
1964
|
+
h(!0), a((m) => !m);
|
|
1965
|
+
};
|
|
1966
|
+
return W(() => {
|
|
1967
|
+
h(!1);
|
|
1968
|
+
}, []), {
|
|
1969
|
+
open: r,
|
|
1970
|
+
onOpenChange: l,
|
|
1971
|
+
"data-animate": u
|
|
1972
|
+
};
|
|
1963
1973
|
}, Pe = vr(
|
|
1964
1974
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
1965
1975
|
{
|
|
@@ -1981,13 +1991,13 @@ const hs = () => {
|
|
|
1981
1991
|
currentTopNavItem: r,
|
|
1982
1992
|
basePath: a = ""
|
|
1983
1993
|
}) => {
|
|
1984
|
-
const s =
|
|
1994
|
+
const s = xt(e) ? $t(a, e.path) : "", i = se(), u = Jn({
|
|
1985
1995
|
item: e,
|
|
1986
1996
|
path: s,
|
|
1987
|
-
defaultOpen: () =>
|
|
1997
|
+
defaultOpen: () => ze(e, i.pathname, a)
|
|
1988
1998
|
});
|
|
1989
1999
|
if (aa(e)) {
|
|
1990
|
-
const
|
|
2000
|
+
const l = P(
|
|
1991
2001
|
"flex items-center gap-2",
|
|
1992
2002
|
Pe({
|
|
1993
2003
|
isActive: e.href === i.pathname
|
|
@@ -1996,7 +2006,7 @@ const hs = () => {
|
|
|
1996
2006
|
return e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
|
|
1997
2007
|
"a",
|
|
1998
2008
|
{
|
|
1999
|
-
className:
|
|
2009
|
+
className: l,
|
|
2000
2010
|
href: e.href,
|
|
2001
2011
|
target: "_blank",
|
|
2002
2012
|
rel: "noopener noreferrer",
|
|
@@ -2005,7 +2015,7 @@ const hs = () => {
|
|
|
2005
2015
|
/* @__PURE__ */ o.jsx(ca, { size: 14 })
|
|
2006
2016
|
]
|
|
2007
2017
|
}
|
|
2008
|
-
) : /* @__PURE__ */ o.jsx(Fe, { className:
|
|
2018
|
+
) : /* @__PURE__ */ o.jsx(Fe, { className: l, to: e.href, children: e.label });
|
|
2009
2019
|
}
|
|
2010
2020
|
const h = /* @__PURE__ */ o.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
2011
2021
|
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
@@ -2013,44 +2023,36 @@ const hs = () => {
|
|
|
2013
2023
|
typeof e.label != "string" ? e.label : /* @__PURE__ */ o.jsx("span", { className: "truncate", children: e.label })
|
|
2014
2024
|
] }),
|
|
2015
2025
|
e.children && /* @__PURE__ */ o.jsx(
|
|
2016
|
-
|
|
2026
|
+
Ve,
|
|
2017
2027
|
{
|
|
2018
2028
|
size: 16,
|
|
2019
2029
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
2020
2030
|
}
|
|
2021
2031
|
)
|
|
2022
2032
|
] });
|
|
2023
|
-
return /* @__PURE__ */ o.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ o.jsxs(
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
/* @__PURE__ */ o.jsx(
|
|
2031
|
-
kt,
|
|
2032
|
-
{
|
|
2033
|
-
className: P(
|
|
2034
|
-
"group text-start",
|
|
2035
|
-
Pe({ isActive: !1 })
|
|
2036
|
-
),
|
|
2037
|
-
children: h
|
|
2038
|
-
}
|
|
2033
|
+
return /* @__PURE__ */ o.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ o.jsxs(Tt, { ...u, className: "flex flex-col", children: [
|
|
2034
|
+
/* @__PURE__ */ o.jsx(
|
|
2035
|
+
kt,
|
|
2036
|
+
{
|
|
2037
|
+
className: P(
|
|
2038
|
+
"group text-start",
|
|
2039
|
+
Pe({ isActive: !1 })
|
|
2039
2040
|
),
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2041
|
+
children: h
|
|
2042
|
+
}
|
|
2043
|
+
),
|
|
2044
|
+
/* @__PURE__ */ o.jsx(Ft, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((l) => /* @__PURE__ */ o.jsx(
|
|
2045
|
+
Zn,
|
|
2046
|
+
{
|
|
2047
|
+
category: t,
|
|
2048
|
+
item: l,
|
|
2049
|
+
activeAnchor: n,
|
|
2050
|
+
currentTopNavItem: r,
|
|
2051
|
+
basePath: s
|
|
2052
|
+
},
|
|
2053
|
+
xt(l) ? l.path : l.href
|
|
2054
|
+
)) }) })
|
|
2055
|
+
] }) : e.path.startsWith("#") ? /* @__PURE__ */ o.jsx(
|
|
2054
2056
|
ir,
|
|
2055
2057
|
{
|
|
2056
2058
|
to: e.path,
|
|
@@ -2064,7 +2066,7 @@ const hs = () => {
|
|
|
2064
2066
|
) : /* @__PURE__ */ o.jsx(
|
|
2065
2067
|
Fe,
|
|
2066
2068
|
{
|
|
2067
|
-
className: ({ isActive:
|
|
2069
|
+
className: ({ isActive: l }) => Pe({ isActive: l }),
|
|
2068
2070
|
to: s,
|
|
2069
2071
|
children: h
|
|
2070
2072
|
}
|
|
@@ -2072,51 +2074,43 @@ const hs = () => {
|
|
|
2072
2074
|
}, ms = ({
|
|
2073
2075
|
category: t
|
|
2074
2076
|
}) => {
|
|
2075
|
-
const { activeAnchor: e } =
|
|
2077
|
+
const { activeAnchor: e } = Ue(), n = oa(), r = se(), a = t.collapsible ?? !0, s = Jn({
|
|
2076
2078
|
item: t,
|
|
2077
2079
|
path: (n == null ? void 0 : n.path) ?? "",
|
|
2078
|
-
defaultOpen: () => !a || t.expanded ||
|
|
2080
|
+
defaultOpen: () => !a || t.expanded || ze(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
|
|
2079
2081
|
});
|
|
2080
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
basePath: $t(n == null ? void 0 : n.path, t.path)
|
|
2113
|
-
},
|
|
2114
|
-
d
|
|
2115
|
-
)) }) })
|
|
2116
|
-
]
|
|
2117
|
-
},
|
|
2118
|
-
t.label
|
|
2119
|
-
);
|
|
2082
|
+
return /* @__PURE__ */ o.jsxs(Tt, { ...s, children: [
|
|
2083
|
+
t.label.length > 0 ? /* @__PURE__ */ o.jsx(kt, { asChild: a, disabled: !a, children: /* @__PURE__ */ o.jsxs(
|
|
2084
|
+
"h5",
|
|
2085
|
+
{
|
|
2086
|
+
className: P(
|
|
2087
|
+
"flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
|
|
2088
|
+
a ? "hover:bg-accent" : "cursor-auto"
|
|
2089
|
+
),
|
|
2090
|
+
children: [
|
|
2091
|
+
t.label,
|
|
2092
|
+
a && /* @__PURE__ */ o.jsx(
|
|
2093
|
+
Ve,
|
|
2094
|
+
{
|
|
2095
|
+
className: "group-data-[state=open]:rotate-90 transition",
|
|
2096
|
+
size: 16
|
|
2097
|
+
}
|
|
2098
|
+
)
|
|
2099
|
+
]
|
|
2100
|
+
}
|
|
2101
|
+
) }) : "Endpoints",
|
|
2102
|
+
/* @__PURE__ */ o.jsx(Ft, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ o.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((i, u) => /* @__PURE__ */ o.jsx(
|
|
2103
|
+
Zn,
|
|
2104
|
+
{
|
|
2105
|
+
category: t,
|
|
2106
|
+
item: i,
|
|
2107
|
+
activeAnchor: e,
|
|
2108
|
+
currentTopNavItem: n,
|
|
2109
|
+
basePath: $t(n == null ? void 0 : n.path, t.path)
|
|
2110
|
+
},
|
|
2111
|
+
u
|
|
2112
|
+
)) }) })
|
|
2113
|
+
] }, t.label);
|
|
2120
2114
|
}, gs = Ur(function({ children: e, className: n, pushMainContent: r }, a) {
|
|
2121
2115
|
return /* @__PURE__ */ o.jsx(
|
|
2122
2116
|
"nav",
|
|
@@ -2141,13 +2135,13 @@ const hs = () => {
|
|
|
2141
2135
|
}
|
|
2142
2136
|
);
|
|
2143
2137
|
}, xs = ({ children: t }) => {
|
|
2144
|
-
const e = se(), { setActiveAnchor: n } =
|
|
2138
|
+
const e = se(), { setActiveAnchor: n } = Ue(), { meta: r } = qe();
|
|
2145
2139
|
hs(), ps();
|
|
2146
2140
|
const a = Ne(e.pathname);
|
|
2147
|
-
return
|
|
2141
|
+
return W(() => {
|
|
2148
2142
|
e.pathname !== a.current && n(""), a.current = e.pathname;
|
|
2149
2143
|
}, [e.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2150
|
-
/* @__PURE__ */ o.jsxs(
|
|
2144
|
+
/* @__PURE__ */ o.jsxs(Qe, { titleTemplate: r == null ? void 0 : r.title, children: [
|
|
2151
2145
|
(r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
|
|
2152
2146
|
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
|
|
2153
2147
|
] }),
|
|
@@ -2174,13 +2168,13 @@ const hs = () => {
|
|
|
2174
2168
|
}
|
|
2175
2169
|
) })
|
|
2176
2170
|
] });
|
|
2177
|
-
}, Ds = cr,
|
|
2171
|
+
}, Ds = cr, As = xr, Is = Wn, Os = xs, Ts = Re, ks = wr, Fs = da, Ls = Sa, Ks = Na, $s = Le, Bs = Qe;
|
|
2178
2172
|
export {
|
|
2179
2173
|
Ls as Bootstrap,
|
|
2180
2174
|
Ks as BootstrapStatic,
|
|
2181
2175
|
$s as Button,
|
|
2182
|
-
|
|
2183
|
-
|
|
2176
|
+
As as Callout,
|
|
2177
|
+
Is as DevPortal,
|
|
2184
2178
|
Bs as Head,
|
|
2185
2179
|
Os as Layout,
|
|
2186
2180
|
Ts as Link,
|