zudoku 0.3.0-dev.86 → 0.3.0-dev.87
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/config/validators/InputSidebarSchema.d.ts +176 -0
- package/dist/config/validators/InputSidebarSchema.js +71 -0
- package/dist/config/validators/InputSidebarSchema.js.map +1 -0
- package/dist/config/validators/SidebarSchema.d.ts +13 -173
- package/dist/config/validators/SidebarSchema.js +75 -70
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +5 -5
- package/dist/config/validators/validate.js +4 -3
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
- package/dist/lib/components/context/DevPortalProvider.js +2 -2
- package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarItem.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarItem.js +1 -1
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +6 -6
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +3 -3
- package/dist/lib/core/DevPortalContext.js +2 -2
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +2 -2
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/vite/plugin-sidebar.js +1 -1
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/lib/{AuthenticationPlugin-DgwV0hVu.js → AuthenticationPlugin-B68Pelzd.js} +2 -2
- package/lib/{AuthenticationPlugin-DgwV0hVu.js.map → AuthenticationPlugin-B68Pelzd.js.map} +1 -1
- package/lib/{Combination-DkycFHkm.js → Combination-BOiWt0Ng.js} +2 -2
- package/lib/{Combination-DkycFHkm.js.map → Combination-BOiWt0Ng.js.map} +1 -1
- package/lib/{DevPortalProvider-CTxoCHIT.js → DevPortalProvider-D6Tr_uD_.js} +2 -2
- package/lib/{DevPortalProvider-CTxoCHIT.js.map → DevPortalProvider-D6Tr_uD_.js.map} +1 -1
- package/lib/{Input-BclXSY0g.js → Input-LkQSHT1l.js} +3 -3
- package/lib/{Input-BclXSY0g.js.map → Input-LkQSHT1l.js.map} +1 -1
- package/lib/{MdxPage-Crlr0GmN.js → MdxPage-PhgXcrKE.js} +2 -2
- package/lib/{MdxPage-Crlr0GmN.js.map → MdxPage-PhgXcrKE.js.map} +1 -1
- package/lib/{OperationList-CMH3DPpj.js → OperationList-DDLgAusb.js} +4 -4
- package/lib/{OperationList-CMH3DPpj.js.map → OperationList-DDLgAusb.js.map} +1 -1
- package/lib/{Route-CwXfyIUw.js → Route-2Br45GpS.js} +2 -2
- package/lib/{Route-CwXfyIUw.js.map → Route-2Br45GpS.js.map} +1 -1
- package/lib/{Spinner-fF-Xv-gw.js → Spinner-CeuEm0Qc.js} +2 -2
- package/lib/{Spinner-fF-Xv-gw.js.map → Spinner-CeuEm0Qc.js.map} +1 -1
- package/lib/{index-DUrF63A6.js → index-BuVwhb9F.js} +8 -8
- package/lib/{index-DUrF63A6.js.map → index-BuVwhb9F.js.map} +1 -1
- package/lib/{index-DkuZvRNP.js → index-DiSzJkoL.js} +3 -3
- package/lib/{index-DkuZvRNP.js.map → index-DiSzJkoL.js.map} +1 -1
- package/lib/{utils-CzT_9Tsn.js → utils-Ctz-5ywK.js} +2 -2
- package/lib/{utils-CzT_9Tsn.js.map → utils-Ctz-5ywK.js.map} +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.components.js +189 -189
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +3 -3
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/package.json +1 -1
- package/src/lib/components/context/DevPortalProvider.ts +2 -2
- package/src/lib/components/navigation/SidebarCategory.tsx +2 -2
- package/src/lib/components/navigation/SidebarItem.tsx +7 -3
- package/src/lib/components/navigation/utils.ts +9 -9
- package/src/lib/core/DevPortalContext.ts +4 -4
- package/src/lib/core/plugins.ts +2 -2
- package/src/lib/plugins/openapi/index.tsx +3 -3
- package/dist/config/validators/ResolvedSidebarSchema.d.ts +0 -18
- package/dist/config/validators/ResolvedSidebarSchema.js +0 -76
- package/dist/config/validators/ResolvedSidebarSchema.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -5,7 +5,7 @@ var lt = (e) => {
|
|
|
5
5
|
var ar = (e, t, n) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
6
|
var _ = (e, t, n) => ar(e, typeof t != "symbol" ? t + "" : t, n), dt = (e, t, n) => t.has(e) || lt("Cannot " + n);
|
|
7
7
|
var h = (e, t, n) => (dt(e, t, "read from private field"), n ? n.call(e) : t.get(e)), O = (e, t, n) => t.has(e) ? lt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), C = (e, t, n, r) => (dt(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
|
-
var
|
|
8
|
+
var Me = (e, t, n, r) => ({
|
|
9
9
|
set _(o) {
|
|
10
10
|
C(e, t, o, n);
|
|
11
11
|
},
|
|
@@ -13,27 +13,27 @@ var be = (e, t, n, r) => ({
|
|
|
13
13
|
return h(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as Rt, a as
|
|
17
|
-
import { d as lr, a as dr, R as hr, N as
|
|
18
|
-
import { E as
|
|
16
|
+
import { H as Rt, a as Ge, M as sr, u as ir, A as cr, b as ur } from "./utils-Ctz-5ywK.js";
|
|
17
|
+
import { d as lr, a as dr, R as hr, N as Re, u as Ne, L as Se, b as fr, c as pr, O as St } from "./index-7kcHaXD6.js";
|
|
18
|
+
import { E as Et, S as mr, a as Ee, R as gr } from "./SlotletProvider-CzMAO73_.js";
|
|
19
19
|
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
20
|
-
import { M as vr, c as xr, a as _t, b as jt, A as wr, u as
|
|
21
|
-
import { c as
|
|
20
|
+
import { M as vr, c as xr, a as _t, b as jt, A as wr, u as pe, h as yr, d as w, e as br, F as Mr, D as Cr, C as Pr, P as se, f as He, g as Rr, i as Dt, R as Sr, S as Er, j as _r, k as jr, l as Nt, m as Dr, n as _e, o as It, p as Nr, B as Be } from "./Combination-BOiWt0Ng.js";
|
|
21
|
+
import { c as me, a as M, C as Ir, b as Ar, u as Or, T as Tr, M as kr, V as Fr, d as qe, e as Lr, f as Kr } from "./Markdown-B_Gax7at.js";
|
|
22
22
|
import * as c from "react";
|
|
23
|
-
import $r, { StrictMode as At, createContext as Ot, Component as Br, createElement as ht, isValidElement as Qr, memo as Tt, useState as
|
|
23
|
+
import $r, { StrictMode as At, createContext as Ot, Component as Br, createElement as ht, isValidElement as Qr, memo as Tt, useState as le, useEffect as W, useCallback as Ur, useMemo as Ke, useContext as Gr, useRef as Ie, Fragment as Hr, forwardRef as qr, Suspense as zr } from "react";
|
|
24
24
|
import { g as ze } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
25
|
import { r as Vr } from "./router-BiRCp01d.js";
|
|
26
|
-
import { S as
|
|
27
|
-
import { S as kt, h as Ft, Q as Jr, n as
|
|
26
|
+
import { S as Qe, R as Yr, T as Xr, C as Wr } from "./index-DiSzJkoL.js";
|
|
27
|
+
import { S as kt, h as Ft, Q as Jr, n as D, m as ft, a as pt, b as Q, e as Zr, c as eo, d as to, f as no, o as mt, r as gt, g as ro, i as vt, p as xt, s as oo, u as Ve, j as ao, D as so, k as Lt, l as io } from "./DevPortalProvider-D6Tr_uD_.js";
|
|
28
28
|
import { j as Ye } from "./joinPath-VeNuJa7y.js";
|
|
29
|
-
import { c as Kt, P as
|
|
29
|
+
import { c as Kt, P as Ae, R as co, I as uo, S as wt, a as lo } from "./Spinner-CeuEm0Qc.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 $t =
|
|
36
|
+
const $t = me("ChevronRight", [
|
|
37
37
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
38
38
|
]);
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ const $t = pe("ChevronRight", [
|
|
|
42
42
|
* This source code is licensed under the ISC license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
const ho =
|
|
45
|
+
const ho = me("Dot", [
|
|
46
46
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
|
47
47
|
]);
|
|
48
48
|
/**
|
|
@@ -51,7 +51,7 @@ const ho = pe("Dot", [
|
|
|
51
51
|
* This source code is licensed under the ISC license.
|
|
52
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
53
|
*/
|
|
54
|
-
const fo =
|
|
54
|
+
const fo = me("ExternalLink", [
|
|
55
55
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
56
56
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
57
57
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -62,7 +62,7 @@ const fo = pe("ExternalLink", [
|
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
64
|
*/
|
|
65
|
-
const po =
|
|
65
|
+
const po = me("MoonStar", [
|
|
66
66
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
67
67
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
68
68
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -73,7 +73,7 @@ const po = pe("MoonStar", [
|
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
75
|
*/
|
|
76
|
-
const mo =
|
|
76
|
+
const mo = me("Sun", [
|
|
77
77
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
78
78
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
79
79
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -85,11 +85,11 @@ const mo = pe("Sun", [
|
|
|
85
85
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
86
86
|
]);
|
|
87
87
|
function go({ error: e }) {
|
|
88
|
-
return /* @__PURE__ */ a.jsx(
|
|
88
|
+
return /* @__PURE__ */ a.jsx(Et, { error: e });
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var ge = {};
|
|
91
91
|
const vo = /* @__PURE__ */ ze(Vr), xo = /* @__PURE__ */ ze(lr), wo = /* @__PURE__ */ ze(dr);
|
|
92
|
-
Object.defineProperty(
|
|
92
|
+
Object.defineProperty(ge, "__esModule", { value: !0 });
|
|
93
93
|
var yo = $r, K = vo, Xe = xo, U = wo;
|
|
94
94
|
function bo(e) {
|
|
95
95
|
if (e && e.__esModule) return e;
|
|
@@ -151,7 +151,7 @@ function Co({
|
|
|
151
151
|
actionData: e.actionData,
|
|
152
152
|
errors: Ro(e.errors)
|
|
153
153
|
};
|
|
154
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${
|
|
154
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${No(JSON.stringify(JSON.stringify(d)))});`;
|
|
155
155
|
}
|
|
156
156
|
let {
|
|
157
157
|
state: u
|
|
@@ -233,13 +233,13 @@ function Bt() {
|
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function So(e, t) {
|
|
237
237
|
return K.createStaticHandler(e, {
|
|
238
238
|
...t,
|
|
239
239
|
mapRouteProperties: Xe.UNSAFE_mapRouteProperties
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Eo(e, t, n = {}) {
|
|
243
243
|
let r = {}, o = K.UNSAFE_convertRoutesToDataRoutes(e, Xe.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((u) => {
|
|
244
244
|
let d = r[u.route.id] || u.route;
|
|
245
245
|
return {
|
|
@@ -348,18 +348,18 @@ const _o = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, jo = {
|
|
|
348
348
|
"<": "\\u003c",
|
|
349
349
|
"\u2028": "\\u2028",
|
|
350
350
|
"\u2029": "\\u2029"
|
|
351
|
-
},
|
|
352
|
-
function
|
|
353
|
-
return e.replace(
|
|
351
|
+
}, Do = /[&><\u2028\u2029]/g;
|
|
352
|
+
function No(e) {
|
|
353
|
+
return e.replace(Do, (t) => jo[t]);
|
|
354
354
|
}
|
|
355
|
-
|
|
356
|
-
var Io =
|
|
357
|
-
|
|
358
|
-
|
|
355
|
+
ge.StaticRouter = Mo;
|
|
356
|
+
var Io = ge.StaticRouterProvider = Co;
|
|
357
|
+
ge.createStaticHandler = So;
|
|
358
|
+
ge.createStaticRouter = Eo;
|
|
359
359
|
const Ao = ({
|
|
360
360
|
router: e,
|
|
361
361
|
hydrate: t = !1
|
|
362
|
-
}) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(Rt, { children: /* @__PURE__ */ a.jsx(
|
|
362
|
+
}) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(Rt, { children: /* @__PURE__ */ a.jsx(Qe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(hr, { router: e }) }) }) }), Oo = ({
|
|
363
363
|
router: e,
|
|
364
364
|
context: t,
|
|
365
365
|
helmetContext: n
|
|
@@ -393,7 +393,7 @@ var L, Mt, To = (Mt = class extends kt {
|
|
|
393
393
|
n && (t.destroy(), n === t && h(this, L).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
394
394
|
}
|
|
395
395
|
clear() {
|
|
396
|
-
|
|
396
|
+
D.batch(() => {
|
|
397
397
|
this.getAll().forEach((t) => {
|
|
398
398
|
this.remove(t);
|
|
399
399
|
});
|
|
@@ -416,49 +416,49 @@ var L, Mt, To = (Mt = class extends kt {
|
|
|
416
416
|
return Object.keys(t).length > 0 ? n.filter((r) => ft(t, r)) : n;
|
|
417
417
|
}
|
|
418
418
|
notify(t) {
|
|
419
|
-
|
|
419
|
+
D.batch(() => {
|
|
420
420
|
this.listeners.forEach((n) => {
|
|
421
421
|
n(t);
|
|
422
422
|
});
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
onFocus() {
|
|
426
|
-
|
|
426
|
+
D.batch(() => {
|
|
427
427
|
this.getAll().forEach((t) => {
|
|
428
428
|
t.onFocus();
|
|
429
429
|
});
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
432
|
onOnline() {
|
|
433
|
-
|
|
433
|
+
D.batch(() => {
|
|
434
434
|
this.getAll().forEach((t) => {
|
|
435
435
|
t.onOnline();
|
|
436
436
|
});
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
|
-
}, L = new WeakMap(), Mt), j,
|
|
439
|
+
}, L = new WeakMap(), Mt), j, fe, Ct, ko = (Ct = class extends kt {
|
|
440
440
|
constructor(t = {}) {
|
|
441
441
|
super();
|
|
442
442
|
O(this, j);
|
|
443
|
-
O(this,
|
|
444
|
-
this.config = t, C(this, j, /* @__PURE__ */ new Map()), C(this,
|
|
443
|
+
O(this, fe);
|
|
444
|
+
this.config = t, C(this, j, /* @__PURE__ */ new Map()), C(this, fe, Date.now());
|
|
445
445
|
}
|
|
446
446
|
build(t, n, r) {
|
|
447
447
|
const o = new vr({
|
|
448
448
|
mutationCache: this,
|
|
449
|
-
mutationId: ++
|
|
449
|
+
mutationId: ++Me(this, fe)._,
|
|
450
450
|
options: t.defaultMutationOptions(n),
|
|
451
451
|
state: r
|
|
452
452
|
});
|
|
453
453
|
return this.add(o), o;
|
|
454
454
|
}
|
|
455
455
|
add(t) {
|
|
456
|
-
const n =
|
|
456
|
+
const n = Ce(t), r = h(this, j).get(n) ?? [];
|
|
457
457
|
r.push(t), h(this, j).set(n, r), this.notify({ type: "added", mutation: t });
|
|
458
458
|
}
|
|
459
459
|
remove(t) {
|
|
460
460
|
var r;
|
|
461
|
-
const n =
|
|
461
|
+
const n = Ce(t);
|
|
462
462
|
if (h(this, j).has(n)) {
|
|
463
463
|
const o = (r = h(this, j).get(n)) == null ? void 0 : r.filter((s) => s !== t);
|
|
464
464
|
o && (o.length === 0 ? h(this, j).delete(n) : h(this, j).set(n, o));
|
|
@@ -467,16 +467,16 @@ var L, Mt, To = (Mt = class extends kt {
|
|
|
467
467
|
}
|
|
468
468
|
canRun(t) {
|
|
469
469
|
var r;
|
|
470
|
-
const n = (r = h(this, j).get(
|
|
470
|
+
const n = (r = h(this, j).get(Ce(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
|
|
471
471
|
return !n || n === t;
|
|
472
472
|
}
|
|
473
473
|
runNext(t) {
|
|
474
474
|
var r;
|
|
475
|
-
const n = (r = h(this, j).get(
|
|
475
|
+
const n = (r = h(this, j).get(Ce(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
|
|
476
476
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
477
477
|
}
|
|
478
478
|
clear() {
|
|
479
|
-
|
|
479
|
+
D.batch(() => {
|
|
480
480
|
this.getAll().forEach((t) => {
|
|
481
481
|
this.remove(t);
|
|
482
482
|
});
|
|
@@ -495,7 +495,7 @@ var L, Mt, To = (Mt = class extends kt {
|
|
|
495
495
|
return this.getAll().filter((n) => pt(t, n));
|
|
496
496
|
}
|
|
497
497
|
notify(t) {
|
|
498
|
-
|
|
498
|
+
D.batch(() => {
|
|
499
499
|
this.listeners.forEach((n) => {
|
|
500
500
|
n(t);
|
|
501
501
|
});
|
|
@@ -503,14 +503,14 @@ var L, Mt, To = (Mt = class extends kt {
|
|
|
503
503
|
}
|
|
504
504
|
resumePausedMutations() {
|
|
505
505
|
const t = this.getAll().filter((n) => n.state.isPaused);
|
|
506
|
-
return
|
|
506
|
+
return D.batch(
|
|
507
507
|
() => Promise.all(
|
|
508
508
|
t.map((n) => n.continue().catch(Q))
|
|
509
509
|
)
|
|
510
510
|
);
|
|
511
511
|
}
|
|
512
|
-
}, j = new WeakMap(),
|
|
513
|
-
function
|
|
512
|
+
}, j = new WeakMap(), fe = new WeakMap(), Ct);
|
|
513
|
+
function Ce(e) {
|
|
514
514
|
var t;
|
|
515
515
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
516
516
|
}
|
|
@@ -518,8 +518,8 @@ function Fo(e) {
|
|
|
518
518
|
return {
|
|
519
519
|
onFetch: (t, n) => {
|
|
520
520
|
const r = async () => {
|
|
521
|
-
var x, R,
|
|
522
|
-
const o = t.options, s = (
|
|
521
|
+
var x, R, N, S, I;
|
|
522
|
+
const o = t.options, s = (N = (R = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : N.direction, i = ((S = t.state.data) == null ? void 0 : S.pages) || [], u = ((I = t.state.data) == null ? void 0 : I.pageParams) || [], d = { pages: [], pageParams: [] };
|
|
523
523
|
let m = !1;
|
|
524
524
|
const f = (y) => {
|
|
525
525
|
Object.defineProperty(y, "signal", {
|
|
@@ -528,32 +528,32 @@ function Fo(e) {
|
|
|
528
528
|
m = !0;
|
|
529
529
|
}), t.signal)
|
|
530
530
|
});
|
|
531
|
-
}, l = Zr(t.options, t.fetchOptions), p = async (y,
|
|
531
|
+
}, l = Zr(t.options, t.fetchOptions), p = async (y, E, $) => {
|
|
532
532
|
if (m)
|
|
533
533
|
return Promise.reject();
|
|
534
|
-
if (
|
|
534
|
+
if (E == null && y.pages.length)
|
|
535
535
|
return Promise.resolve(y);
|
|
536
536
|
const Y = {
|
|
537
537
|
queryKey: t.queryKey,
|
|
538
|
-
pageParam:
|
|
538
|
+
pageParam: E,
|
|
539
539
|
direction: $ ? "backward" : "forward",
|
|
540
540
|
meta: t.options.meta
|
|
541
541
|
};
|
|
542
542
|
f(Y);
|
|
543
543
|
const Z = await l(
|
|
544
544
|
Y
|
|
545
|
-
), { maxPages:
|
|
545
|
+
), { maxPages: ye } = t.options, X = $ ? eo : to;
|
|
546
546
|
return {
|
|
547
|
-
pages: X(y.pages, Z,
|
|
548
|
-
pageParams: X(y.pageParams,
|
|
547
|
+
pages: X(y.pages, Z, ye),
|
|
548
|
+
pageParams: X(y.pageParams, E, ye)
|
|
549
549
|
};
|
|
550
550
|
};
|
|
551
551
|
let v;
|
|
552
552
|
if (s && i.length) {
|
|
553
|
-
const y = s === "backward",
|
|
553
|
+
const y = s === "backward", E = y ? Lo : yt, $ = {
|
|
554
554
|
pages: i,
|
|
555
555
|
pageParams: u
|
|
556
|
-
}, Y =
|
|
556
|
+
}, Y = E(o, $);
|
|
557
557
|
v = await p($, Y, y);
|
|
558
558
|
} else {
|
|
559
559
|
v = await p(
|
|
@@ -561,7 +561,7 @@ function Fo(e) {
|
|
|
561
561
|
u[0] ?? o.initialPageParam
|
|
562
562
|
);
|
|
563
563
|
const y = e ?? i.length;
|
|
564
|
-
for (let
|
|
564
|
+
for (let E = 1; E < y; E++) {
|
|
565
565
|
const $ = yt(o, v);
|
|
566
566
|
v = await p(v, $);
|
|
567
567
|
}
|
|
@@ -616,7 +616,7 @@ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
|
|
|
616
616
|
C(this, b, e.queryCache || new To()), C(this, H, e.mutationCache || new ko()), C(this, q, e.defaultOptions || {}), C(this, ne, /* @__PURE__ */ new Map()), C(this, re, /* @__PURE__ */ new Map()), C(this, z, 0);
|
|
617
617
|
}
|
|
618
618
|
mount() {
|
|
619
|
-
|
|
619
|
+
Me(this, z)._++, h(this, z) === 1 && (C(this, oe, no.subscribe(async (e) => {
|
|
620
620
|
e && (await this.resumePausedMutations(), h(this, b).onFocus());
|
|
621
621
|
})), C(this, ae, mt.subscribe(async (e) => {
|
|
622
622
|
e && (await this.resumePausedMutations(), h(this, b).onOnline());
|
|
@@ -624,7 +624,7 @@ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
|
|
|
624
624
|
}
|
|
625
625
|
unmount() {
|
|
626
626
|
var e, t;
|
|
627
|
-
|
|
627
|
+
Me(this, z)._--, h(this, z) === 0 && ((e = h(this, oe)) == null || e.call(this), C(this, oe, void 0), (t = h(this, ae)) == null || t.call(this), C(this, ae, void 0));
|
|
628
628
|
}
|
|
629
629
|
isFetching(e) {
|
|
630
630
|
return h(this, b).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -660,7 +660,7 @@ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
|
|
|
660
660
|
return h(this, b).build(this, r).setData(i, { ...n, manual: !0 });
|
|
661
661
|
}
|
|
662
662
|
setQueriesData(e, t, n) {
|
|
663
|
-
return
|
|
663
|
+
return D.batch(
|
|
664
664
|
() => h(this, b).findAll(e).map(({ queryKey: r }) => [
|
|
665
665
|
r,
|
|
666
666
|
this.setQueryData(r, t, n)
|
|
@@ -674,7 +674,7 @@ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
|
|
|
674
674
|
}
|
|
675
675
|
removeQueries(e) {
|
|
676
676
|
const t = h(this, b);
|
|
677
|
-
|
|
677
|
+
D.batch(() => {
|
|
678
678
|
t.findAll(e).forEach((n) => {
|
|
679
679
|
t.remove(n);
|
|
680
680
|
});
|
|
@@ -685,18 +685,18 @@ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
|
|
|
685
685
|
type: "active",
|
|
686
686
|
...e
|
|
687
687
|
};
|
|
688
|
-
return
|
|
688
|
+
return D.batch(() => (n.findAll(e).forEach((o) => {
|
|
689
689
|
o.reset();
|
|
690
690
|
}), this.refetchQueries(r, t)));
|
|
691
691
|
}
|
|
692
692
|
cancelQueries(e = {}, t = {}) {
|
|
693
|
-
const n = { revert: !0, ...t }, r =
|
|
693
|
+
const n = { revert: !0, ...t }, r = D.batch(
|
|
694
694
|
() => h(this, b).findAll(e).map((o) => o.cancel(n))
|
|
695
695
|
);
|
|
696
696
|
return Promise.all(r).then(Q).catch(Q);
|
|
697
697
|
}
|
|
698
698
|
invalidateQueries(e = {}, t = {}) {
|
|
699
|
-
return
|
|
699
|
+
return D.batch(() => {
|
|
700
700
|
if (h(this, b).findAll(e).forEach((r) => {
|
|
701
701
|
r.invalidate();
|
|
702
702
|
}), e.refetchType === "none")
|
|
@@ -712,7 +712,7 @@ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
|
|
|
712
712
|
const n = {
|
|
713
713
|
...t,
|
|
714
714
|
cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
|
|
715
|
-
}, r =
|
|
715
|
+
}, r = D.batch(
|
|
716
716
|
() => h(this, b).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
|
|
717
717
|
let s = o.fetch(void 0, n);
|
|
718
718
|
return n.throwOnError || (s = s.catch(Q)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
@@ -804,13 +804,13 @@ var b, H, q, ne, re, z, oe, ae, Pt, Ko = (Pt = class {
|
|
|
804
804
|
h(this, b).clear(), h(this, H).clear();
|
|
805
805
|
}
|
|
806
806
|
}, b = new WeakMap(), H = new WeakMap(), q = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), z = new WeakMap(), oe = new WeakMap(), ae = new WeakMap(), Pt);
|
|
807
|
-
const $o = Ot(null),
|
|
807
|
+
const $o = Ot(null), $e = {
|
|
808
808
|
didCatch: !1,
|
|
809
809
|
error: null
|
|
810
810
|
};
|
|
811
811
|
class Bo extends Br {
|
|
812
812
|
constructor(t) {
|
|
813
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
813
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = $e;
|
|
814
814
|
}
|
|
815
815
|
static getDerivedStateFromError(t) {
|
|
816
816
|
return {
|
|
@@ -828,7 +828,7 @@ class Bo extends Br {
|
|
|
828
828
|
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
829
829
|
args: s,
|
|
830
830
|
reason: "imperative-api"
|
|
831
|
-
}), this.setState(
|
|
831
|
+
}), this.setState($e);
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
componentDidCatch(t, n) {
|
|
@@ -847,7 +847,7 @@ class Bo extends Br {
|
|
|
847
847
|
next: o,
|
|
848
848
|
prev: t.resetKeys,
|
|
849
849
|
reason: "keys"
|
|
850
|
-
}), this.setState(
|
|
850
|
+
}), this.setState($e);
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
render() {
|
|
@@ -914,11 +914,11 @@ class Yo {
|
|
|
914
914
|
_(this, "getApiIdentities", async () => (await Promise.all(
|
|
915
915
|
this.plugins.filter(Vo).map((n) => n.getIdentities(this))
|
|
916
916
|
)).flat());
|
|
917
|
-
_(this, "
|
|
917
|
+
_(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
918
918
|
this.navigationPlugins.map(
|
|
919
919
|
(r) => {
|
|
920
920
|
var o;
|
|
921
|
-
return (o = r.
|
|
921
|
+
return (o = r.getSidebar) == null ? void 0 : o.call(r, Ye(t));
|
|
922
922
|
}
|
|
923
923
|
)
|
|
924
924
|
)).flatMap((r) => r ?? []));
|
|
@@ -932,22 +932,22 @@ class Yo {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
function Xo({ error: e, resetErrorBoundary: t }) {
|
|
935
|
-
return /* @__PURE__ */ a.jsx(
|
|
935
|
+
return /* @__PURE__ */ a.jsx(Et, { error: e });
|
|
936
936
|
}
|
|
937
|
-
const
|
|
938
|
-
(!
|
|
939
|
-
var
|
|
940
|
-
ltr: [...
|
|
941
|
-
rtl: [...
|
|
937
|
+
const Pe = globalThis;
|
|
938
|
+
(!Pe.requestIdleCallback || !Pe.cancelIdleCallback) && (Pe.requestIdleCallback = (e) => setTimeout(e, 1), Pe.cancelIdleCallback = clearTimeout);
|
|
939
|
+
var Ue = ["Enter", " "], Wo = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp", "PageDown", "End"], Jo = [...Wo, ...Ht], Zo = {
|
|
940
|
+
ltr: [...Ue, "ArrowRight"],
|
|
941
|
+
rtl: [...Ue, "ArrowLeft"]
|
|
942
942
|
}, ea = {
|
|
943
943
|
ltr: ["ArrowLeft"],
|
|
944
944
|
rtl: ["ArrowRight"]
|
|
945
|
-
},
|
|
945
|
+
}, ve = "Menu", [de, ta, na] = xr(ve), [J, qt] = _t(ve, [
|
|
946
946
|
na,
|
|
947
947
|
jt,
|
|
948
948
|
Kt
|
|
949
|
-
]),
|
|
950
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u =
|
|
949
|
+
]), xe = jt(), zt = Kt(), [Vt, V] = J(ve), [ra, we] = J(ve), Yt = (e) => {
|
|
950
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = xe(t), [d, m] = c.useState(null), f = c.useRef(!1), l = He(s), p = jr(o);
|
|
951
951
|
return c.useEffect(() => {
|
|
952
952
|
const v = () => {
|
|
953
953
|
f.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
|
|
@@ -955,7 +955,7 @@ var Qe = ["Enter", " "], Wo = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp",
|
|
|
955
955
|
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
956
956
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
|
|
957
957
|
};
|
|
958
|
-
}, []), /* @__PURE__ */ a.jsx(
|
|
958
|
+
}, []), /* @__PURE__ */ a.jsx(Nt, { ...u, children: /* @__PURE__ */ a.jsx(
|
|
959
959
|
Vt,
|
|
960
960
|
{
|
|
961
961
|
scope: t,
|
|
@@ -977,10 +977,10 @@ var Qe = ["Enter", " "], Wo = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp",
|
|
|
977
977
|
}
|
|
978
978
|
) });
|
|
979
979
|
};
|
|
980
|
-
Yt.displayName =
|
|
980
|
+
Yt.displayName = ve;
|
|
981
981
|
var oa = "MenuAnchor", We = c.forwardRef(
|
|
982
982
|
(e, t) => {
|
|
983
|
-
const { __scopeMenu: n, ...r } = e, o =
|
|
983
|
+
const { __scopeMenu: n, ...r } = e, o = xe(n);
|
|
984
984
|
return /* @__PURE__ */ a.jsx(wr, { ...o, ...r, ref: t });
|
|
985
985
|
}
|
|
986
986
|
);
|
|
@@ -989,17 +989,17 @@ var Je = "MenuPortal", [aa, Xt] = J(Je, {
|
|
|
989
989
|
forceMount: void 0
|
|
990
990
|
}), Wt = (e) => {
|
|
991
991
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = V(Je, t);
|
|
992
|
-
return /* @__PURE__ */ a.jsx(aa, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(
|
|
992
|
+
return /* @__PURE__ */ a.jsx(aa, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(Ae, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Dr, { asChild: !0, container: o, children: r }) }) });
|
|
993
993
|
};
|
|
994
994
|
Wt.displayName = Je;
|
|
995
995
|
var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
996
996
|
(e, t) => {
|
|
997
|
-
const n = Xt(T, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(T, e.__scopeMenu), i =
|
|
998
|
-
return /* @__PURE__ */ a.jsx(
|
|
997
|
+
const n = Xt(T, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(T, e.__scopeMenu), i = we(T, e.__scopeMenu);
|
|
998
|
+
return /* @__PURE__ */ a.jsx(de.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Ae, { present: r || s.open, children: /* @__PURE__ */ a.jsx(de.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ia, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ca, { ...o, ref: t }) }) }) });
|
|
999
999
|
}
|
|
1000
1000
|
), ia = c.forwardRef(
|
|
1001
1001
|
(e, t) => {
|
|
1002
|
-
const n = V(T, e.__scopeMenu), r = c.useRef(null), o =
|
|
1002
|
+
const n = V(T, e.__scopeMenu), r = c.useRef(null), o = pe(t, r);
|
|
1003
1003
|
return c.useEffect(() => {
|
|
1004
1004
|
const s = r.current;
|
|
1005
1005
|
if (s) return yr(s);
|
|
@@ -1050,23 +1050,23 @@ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
|
1050
1050
|
onDismiss: v,
|
|
1051
1051
|
disableOutsideScroll: x,
|
|
1052
1052
|
...R
|
|
1053
|
-
} = e,
|
|
1053
|
+
} = e, N = V(T, n), S = we(T, n), I = xe(n), y = zt(n), E = ta(n), [$, Y] = c.useState(null), Z = c.useRef(null), ye = pe(t, Z, N.onContentChange), X = c.useRef(0), be = c.useRef(""), er = c.useRef(0), Te = c.useRef(null), st = c.useRef("right"), ke = c.useRef(0), tr = x ? Sr : c.Fragment, nr = x ? { as: Er, allowPinchZoom: !0 } : void 0, rr = (g) => {
|
|
1054
1054
|
var te, ct;
|
|
1055
|
-
const A =
|
|
1055
|
+
const A = be.current + g, k = E().filter((B) => !B.disabled), G = document.activeElement, Fe = (te = k.find((B) => B.ref.current === G)) == null ? void 0 : te.textValue, Le = k.map((B) => B.textValue), it = ya(Le, A, Fe), ie = (ct = k.find((B) => B.textValue === it)) == null ? void 0 : ct.ref.current;
|
|
1056
1056
|
(function B(ut) {
|
|
1057
|
-
|
|
1057
|
+
be.current = ut, window.clearTimeout(X.current), ut !== "" && (X.current = window.setTimeout(() => B(""), 1e3));
|
|
1058
1058
|
})(A), ie && setTimeout(() => ie.focus());
|
|
1059
1059
|
};
|
|
1060
1060
|
c.useEffect(() => () => window.clearTimeout(X.current), []), br();
|
|
1061
1061
|
const ee = c.useCallback((g) => {
|
|
1062
1062
|
var k, G;
|
|
1063
|
-
return st.current === ((k =
|
|
1063
|
+
return st.current === ((k = Te.current) == null ? void 0 : k.side) && Ma(g, (G = Te.current) == null ? void 0 : G.area);
|
|
1064
1064
|
}, []);
|
|
1065
1065
|
return /* @__PURE__ */ a.jsx(
|
|
1066
1066
|
sa,
|
|
1067
1067
|
{
|
|
1068
1068
|
scope: n,
|
|
1069
|
-
searchRef:
|
|
1069
|
+
searchRef: be,
|
|
1070
1070
|
onItemEnter: c.useCallback(
|
|
1071
1071
|
(g) => {
|
|
1072
1072
|
ee(g) && g.preventDefault();
|
|
@@ -1088,7 +1088,7 @@ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
|
1088
1088
|
),
|
|
1089
1089
|
pointerGraceTimerRef: er,
|
|
1090
1090
|
onPointerGraceIntentChange: c.useCallback((g) => {
|
|
1091
|
-
|
|
1091
|
+
Te.current = g;
|
|
1092
1092
|
}, []),
|
|
1093
1093
|
children: /* @__PURE__ */ a.jsx(tr, { ...nr, children: /* @__PURE__ */ a.jsx(
|
|
1094
1094
|
Mr,
|
|
@@ -1115,13 +1115,13 @@ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
|
1115
1115
|
{
|
|
1116
1116
|
asChild: !0,
|
|
1117
1117
|
...y,
|
|
1118
|
-
dir:
|
|
1118
|
+
dir: S.dir,
|
|
1119
1119
|
orientation: "vertical",
|
|
1120
1120
|
loop: r,
|
|
1121
1121
|
currentTabStopId: $,
|
|
1122
1122
|
onCurrentTabStopIdChange: Y,
|
|
1123
1123
|
onEntryFocus: w(d, (g) => {
|
|
1124
|
-
|
|
1124
|
+
S.isUsingKeyboardRef.current || g.preventDefault();
|
|
1125
1125
|
}),
|
|
1126
1126
|
preventScrollOnEntryFocus: !0,
|
|
1127
1127
|
children: /* @__PURE__ */ a.jsx(
|
|
@@ -1129,32 +1129,32 @@ var T = "MenuContent", [sa, Ze] = J(T), Jt = c.forwardRef(
|
|
|
1129
1129
|
{
|
|
1130
1130
|
role: "menu",
|
|
1131
1131
|
"aria-orientation": "vertical",
|
|
1132
|
-
"data-state": gn(
|
|
1132
|
+
"data-state": gn(N.open),
|
|
1133
1133
|
"data-radix-menu-content": "",
|
|
1134
|
-
dir:
|
|
1134
|
+
dir: S.dir,
|
|
1135
1135
|
...I,
|
|
1136
1136
|
...R,
|
|
1137
|
-
ref:
|
|
1137
|
+
ref: ye,
|
|
1138
1138
|
style: { outline: "none", ...R.style },
|
|
1139
1139
|
onKeyDown: w(R.onKeyDown, (g) => {
|
|
1140
|
-
const k = g.target.closest("[data-radix-menu-content]") === g.currentTarget, G = g.ctrlKey || g.altKey || g.metaKey,
|
|
1141
|
-
k && (g.key === "Tab" && g.preventDefault(), !G &&
|
|
1142
|
-
const
|
|
1143
|
-
if (g.target !==
|
|
1140
|
+
const k = g.target.closest("[data-radix-menu-content]") === g.currentTarget, G = g.ctrlKey || g.altKey || g.metaKey, Fe = g.key.length === 1;
|
|
1141
|
+
k && (g.key === "Tab" && g.preventDefault(), !G && Fe && rr(g.key));
|
|
1142
|
+
const Le = Z.current;
|
|
1143
|
+
if (g.target !== Le || !Jo.includes(g.key)) return;
|
|
1144
1144
|
g.preventDefault();
|
|
1145
|
-
const ie =
|
|
1145
|
+
const ie = E().filter((te) => !te.disabled).map((te) => te.ref.current);
|
|
1146
1146
|
Ht.includes(g.key) && ie.reverse(), xa(ie);
|
|
1147
1147
|
}),
|
|
1148
1148
|
onBlur: w(e.onBlur, (g) => {
|
|
1149
|
-
g.currentTarget.contains(g.target) || (window.clearTimeout(X.current),
|
|
1149
|
+
g.currentTarget.contains(g.target) || (window.clearTimeout(X.current), be.current = "");
|
|
1150
1150
|
}),
|
|
1151
1151
|
onPointerMove: w(
|
|
1152
1152
|
e.onPointerMove,
|
|
1153
|
-
|
|
1154
|
-
const A = g.target, k =
|
|
1153
|
+
he((g) => {
|
|
1154
|
+
const A = g.target, k = ke.current !== g.clientX;
|
|
1155
1155
|
if (g.currentTarget.contains(A) && k) {
|
|
1156
|
-
const G = g.clientX >
|
|
1157
|
-
st.current = G,
|
|
1156
|
+
const G = g.clientX > ke.current ? "right" : "left";
|
|
1157
|
+
st.current = G, ke.current = g.clientX;
|
|
1158
1158
|
}
|
|
1159
1159
|
})
|
|
1160
1160
|
)
|
|
@@ -1185,9 +1185,9 @@ var la = "MenuLabel", Zt = c.forwardRef(
|
|
|
1185
1185
|
}
|
|
1186
1186
|
);
|
|
1187
1187
|
Zt.displayName = la;
|
|
1188
|
-
var
|
|
1188
|
+
var je = "MenuItem", bt = "menu.itemSelect", Oe = c.forwardRef(
|
|
1189
1189
|
(e, t) => {
|
|
1190
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i =
|
|
1190
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(je, e.__scopeMenu), u = Ze(je, e.__scopeMenu), d = pe(t, s), m = c.useRef(!1), f = () => {
|
|
1191
1191
|
const l = s.current;
|
|
1192
1192
|
if (!n && l) {
|
|
1193
1193
|
const p = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
|
|
@@ -1211,21 +1211,21 @@ var _e = "MenuItem", bt = "menu.itemSelect", Ae = c.forwardRef(
|
|
|
1211
1211
|
}),
|
|
1212
1212
|
onKeyDown: w(e.onKeyDown, (l) => {
|
|
1213
1213
|
const p = u.searchRef.current !== "";
|
|
1214
|
-
n || p && l.key === " " ||
|
|
1214
|
+
n || p && l.key === " " || Ue.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
|
|
1215
1215
|
})
|
|
1216
1216
|
}
|
|
1217
1217
|
);
|
|
1218
1218
|
}
|
|
1219
1219
|
);
|
|
1220
|
-
|
|
1220
|
+
Oe.displayName = je;
|
|
1221
1221
|
var en = c.forwardRef(
|
|
1222
1222
|
(e, t) => {
|
|
1223
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Ze(
|
|
1223
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Ze(je, n), u = zt(n), d = c.useRef(null), m = pe(t, d), [f, l] = c.useState(!1), [p, v] = c.useState("");
|
|
1224
1224
|
return c.useEffect(() => {
|
|
1225
1225
|
const x = d.current;
|
|
1226
1226
|
x && v((x.textContent ?? "").trim());
|
|
1227
1227
|
}, [s.children]), /* @__PURE__ */ a.jsx(
|
|
1228
|
-
|
|
1228
|
+
de.ItemSlot,
|
|
1229
1229
|
{
|
|
1230
1230
|
scope: n,
|
|
1231
1231
|
disabled: r,
|
|
@@ -1241,13 +1241,13 @@ var en = c.forwardRef(
|
|
|
1241
1241
|
ref: m,
|
|
1242
1242
|
onPointerMove: w(
|
|
1243
1243
|
e.onPointerMove,
|
|
1244
|
-
|
|
1244
|
+
he((x) => {
|
|
1245
1245
|
r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
|
|
1246
1246
|
})
|
|
1247
1247
|
),
|
|
1248
1248
|
onPointerLeave: w(
|
|
1249
1249
|
e.onPointerLeave,
|
|
1250
|
-
|
|
1250
|
+
he((x) => i.onItemLeave(x))
|
|
1251
1251
|
),
|
|
1252
1252
|
onFocus: w(e.onFocus, () => l(!0)),
|
|
1253
1253
|
onBlur: w(e.onBlur, () => l(!1))
|
|
@@ -1260,16 +1260,16 @@ var en = c.forwardRef(
|
|
|
1260
1260
|
(e, t) => {
|
|
1261
1261
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
1262
1262
|
return /* @__PURE__ */ a.jsx(sn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
|
|
1263
|
-
|
|
1263
|
+
Oe,
|
|
1264
1264
|
{
|
|
1265
1265
|
role: "menuitemcheckbox",
|
|
1266
|
-
"aria-checked":
|
|
1266
|
+
"aria-checked": De(n) ? "mixed" : n,
|
|
1267
1267
|
...o,
|
|
1268
1268
|
ref: t,
|
|
1269
1269
|
"data-state": ot(n),
|
|
1270
1270
|
onSelect: w(
|
|
1271
1271
|
o.onSelect,
|
|
1272
|
-
() => r == null ? void 0 : r(
|
|
1272
|
+
() => r == null ? void 0 : r(De(n) ? !0 : !n),
|
|
1273
1273
|
{ checkForDefaultPrevented: !1 }
|
|
1274
1274
|
)
|
|
1275
1275
|
}
|
|
@@ -1292,7 +1292,7 @@ var on = "MenuRadioItem", an = c.forwardRef(
|
|
|
1292
1292
|
(e, t) => {
|
|
1293
1293
|
const { value: n, ...r } = e, o = fa(on, e.__scopeMenu), s = n === o.value;
|
|
1294
1294
|
return /* @__PURE__ */ a.jsx(sn, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
|
|
1295
|
-
|
|
1295
|
+
Oe,
|
|
1296
1296
|
{
|
|
1297
1297
|
role: "menuitemradio",
|
|
1298
1298
|
"aria-checked": s,
|
|
@@ -1319,9 +1319,9 @@ var nt = "MenuItemIndicator", [sn, pa] = J(
|
|
|
1319
1319
|
(e, t) => {
|
|
1320
1320
|
const { __scopeMenu: n, forceMount: r, ...o } = e, s = pa(nt, n);
|
|
1321
1321
|
return /* @__PURE__ */ a.jsx(
|
|
1322
|
-
|
|
1322
|
+
Ae,
|
|
1323
1323
|
{
|
|
1324
|
-
present: r ||
|
|
1324
|
+
present: r || De(s.checked) || s.checked === !0,
|
|
1325
1325
|
children: /* @__PURE__ */ a.jsx(
|
|
1326
1326
|
se.span,
|
|
1327
1327
|
{
|
|
@@ -1352,14 +1352,14 @@ var ma = "MenuSeparator", un = c.forwardRef(
|
|
|
1352
1352
|
un.displayName = ma;
|
|
1353
1353
|
var ga = "MenuArrow", ln = c.forwardRef(
|
|
1354
1354
|
(e, t) => {
|
|
1355
|
-
const { __scopeMenu: n, ...r } = e, o =
|
|
1355
|
+
const { __scopeMenu: n, ...r } = e, o = xe(n);
|
|
1356
1356
|
return /* @__PURE__ */ a.jsx(Rr, { ...o, ...r, ref: t });
|
|
1357
1357
|
}
|
|
1358
1358
|
);
|
|
1359
1359
|
ln.displayName = ga;
|
|
1360
1360
|
var rt = "MenuSub", [va, dn] = J(rt), hn = (e) => {
|
|
1361
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = V(rt, t), i =
|
|
1362
|
-
return c.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */ a.jsx(
|
|
1361
|
+
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = V(rt, t), i = xe(t), [u, d] = c.useState(null), [m, f] = c.useState(null), l = He(o);
|
|
1362
|
+
return c.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */ a.jsx(Nt, { ...i, children: /* @__PURE__ */ a.jsx(
|
|
1363
1363
|
Vt,
|
|
1364
1364
|
{
|
|
1365
1365
|
scope: t,
|
|
@@ -1371,8 +1371,8 @@ var rt = "MenuSub", [va, dn] = J(rt), hn = (e) => {
|
|
|
1371
1371
|
va,
|
|
1372
1372
|
{
|
|
1373
1373
|
scope: t,
|
|
1374
|
-
contentId:
|
|
1375
|
-
triggerId:
|
|
1374
|
+
contentId: _e(),
|
|
1375
|
+
triggerId: _e(),
|
|
1376
1376
|
trigger: u,
|
|
1377
1377
|
onTriggerChange: d,
|
|
1378
1378
|
children: n
|
|
@@ -1384,7 +1384,7 @@ var rt = "MenuSub", [va, dn] = J(rt), hn = (e) => {
|
|
|
1384
1384
|
hn.displayName = rt;
|
|
1385
1385
|
var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
1386
1386
|
(e, t) => {
|
|
1387
|
-
const n = V(ce, e.__scopeMenu), r =
|
|
1387
|
+
const n = V(ce, e.__scopeMenu), r = we(ce, e.__scopeMenu), o = dn(ce, e.__scopeMenu), s = Ze(ce, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: d } = s, m = { __scopeMenu: e.__scopeMenu }, f = c.useCallback(() => {
|
|
1388
1388
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
1389
1389
|
}, []);
|
|
1390
1390
|
return c.useEffect(() => f, [f]), c.useEffect(() => {
|
|
@@ -1401,14 +1401,14 @@ var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
|
1401
1401
|
"aria-controls": o.contentId,
|
|
1402
1402
|
"data-state": gn(n.open),
|
|
1403
1403
|
...e,
|
|
1404
|
-
ref:
|
|
1404
|
+
ref: Dt(t, o.onTriggerChange),
|
|
1405
1405
|
onClick: (l) => {
|
|
1406
1406
|
var p;
|
|
1407
1407
|
(p = e.onClick) == null || p.call(e, l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1408
1408
|
},
|
|
1409
1409
|
onPointerMove: w(
|
|
1410
1410
|
e.onPointerMove,
|
|
1411
|
-
|
|
1411
|
+
he((l) => {
|
|
1412
1412
|
s.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
1413
1413
|
n.onOpenChange(!0), f();
|
|
1414
1414
|
}, 100));
|
|
@@ -1416,17 +1416,17 @@ var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
|
1416
1416
|
),
|
|
1417
1417
|
onPointerLeave: w(
|
|
1418
1418
|
e.onPointerLeave,
|
|
1419
|
-
|
|
1419
|
+
he((l) => {
|
|
1420
1420
|
var v, x;
|
|
1421
1421
|
f();
|
|
1422
1422
|
const p = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
|
|
1423
1423
|
if (p) {
|
|
1424
|
-
const R = (x = n.content) == null ? void 0 : x.dataset.side,
|
|
1424
|
+
const R = (x = n.content) == null ? void 0 : x.dataset.side, N = R === "right", S = N ? -5 : 5, I = p[N ? "left" : "right"], y = p[N ? "right" : "left"];
|
|
1425
1425
|
s.onPointerGraceIntentChange({
|
|
1426
1426
|
area: [
|
|
1427
1427
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
1428
1428
|
// consistently within polygon bounds
|
|
1429
|
-
{ x: l.clientX +
|
|
1429
|
+
{ x: l.clientX + S, y: l.clientY },
|
|
1430
1430
|
{ x: I, y: p.top },
|
|
1431
1431
|
{ x: y, y: p.top },
|
|
1432
1432
|
{ x: y, y: p.bottom },
|
|
@@ -1455,8 +1455,8 @@ var ce = "MenuSubTrigger", fn = c.forwardRef(
|
|
|
1455
1455
|
fn.displayName = ce;
|
|
1456
1456
|
var pn = "MenuSubContent", mn = c.forwardRef(
|
|
1457
1457
|
(e, t) => {
|
|
1458
|
-
const n = Xt(T, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(T, e.__scopeMenu), i =
|
|
1459
|
-
return /* @__PURE__ */ a.jsx(
|
|
1458
|
+
const n = Xt(T, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(T, e.__scopeMenu), i = we(T, e.__scopeMenu), u = dn(pn, e.__scopeMenu), d = c.useRef(null), m = pe(t, d);
|
|
1459
|
+
return /* @__PURE__ */ a.jsx(de.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Ae, { present: r || s.open, children: /* @__PURE__ */ a.jsx(de.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
|
|
1460
1460
|
et,
|
|
1461
1461
|
{
|
|
1462
1462
|
id: u.contentId,
|
|
@@ -1492,11 +1492,11 @@ mn.displayName = pn;
|
|
|
1492
1492
|
function gn(e) {
|
|
1493
1493
|
return e ? "open" : "closed";
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function De(e) {
|
|
1496
1496
|
return e === "indeterminate";
|
|
1497
1497
|
}
|
|
1498
1498
|
function ot(e) {
|
|
1499
|
-
return
|
|
1499
|
+
return De(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1500
1500
|
}
|
|
1501
1501
|
function xa(e) {
|
|
1502
1502
|
const t = document.activeElement;
|
|
@@ -1529,10 +1529,10 @@ function Ma(e, t) {
|
|
|
1529
1529
|
const n = { x: e.clientX, y: e.clientY };
|
|
1530
1530
|
return ba(n, t);
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function he(e) {
|
|
1533
1533
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1534
1534
|
}
|
|
1535
|
-
var Ca = Yt, Pa = We, Ra = Wt,
|
|
1535
|
+
var Ca = Yt, Pa = We, Ra = Wt, Sa = Jt, Ea = tt, _a = Zt, ja = Oe, Da = tn, Na = rn, Ia = an, Aa = cn, Oa = un, Ta = ln, ka = hn, Fa = fn, La = mn, at = "DropdownMenu", [Ka, Ks] = _t(
|
|
1536
1536
|
at,
|
|
1537
1537
|
[qt]
|
|
1538
1538
|
), P = qt(), [$a, vn] = Ka(at), xn = (e) => {
|
|
@@ -1553,9 +1553,9 @@ var Ca = Yt, Pa = We, Ra = Wt, Ea = Jt, Sa = tt, _a = Zt, ja = Ae, Na = tn, Da =
|
|
|
1553
1553
|
$a,
|
|
1554
1554
|
{
|
|
1555
1555
|
scope: t,
|
|
1556
|
-
triggerId:
|
|
1556
|
+
triggerId: _e(),
|
|
1557
1557
|
triggerRef: m,
|
|
1558
|
-
contentId:
|
|
1558
|
+
contentId: _e(),
|
|
1559
1559
|
open: f,
|
|
1560
1560
|
onOpenChange: l,
|
|
1561
1561
|
onOpenToggle: c.useCallback(() => l((p) => !p), [l]),
|
|
@@ -1580,7 +1580,7 @@ var wn = "DropdownMenuTrigger", yn = c.forwardRef(
|
|
|
1580
1580
|
"data-disabled": r ? "" : void 0,
|
|
1581
1581
|
disabled: r,
|
|
1582
1582
|
...o,
|
|
1583
|
-
ref:
|
|
1583
|
+
ref: Dt(t, s.triggerRef),
|
|
1584
1584
|
onPointerDown: w(e.onPointerDown, (u) => {
|
|
1585
1585
|
!r && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
|
|
1586
1586
|
}),
|
|
@@ -1601,7 +1601,7 @@ var Mn = "DropdownMenuContent", Cn = c.forwardRef(
|
|
|
1601
1601
|
(e, t) => {
|
|
1602
1602
|
const { __scopeDropdownMenu: n, ...r } = e, o = vn(Mn, n), s = P(n), i = c.useRef(!1);
|
|
1603
1603
|
return /* @__PURE__ */ a.jsx(
|
|
1604
|
-
|
|
1604
|
+
Sa,
|
|
1605
1605
|
{
|
|
1606
1606
|
id: o.contentId,
|
|
1607
1607
|
"aria-labelledby": o.triggerId,
|
|
@@ -1632,7 +1632,7 @@ Cn.displayName = Mn;
|
|
|
1632
1632
|
var Qa = "DropdownMenuGroup", Ua = c.forwardRef(
|
|
1633
1633
|
(e, t) => {
|
|
1634
1634
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1635
|
-
return /* @__PURE__ */ a.jsx(
|
|
1635
|
+
return /* @__PURE__ */ a.jsx(Ea, { ...o, ...r, ref: t });
|
|
1636
1636
|
}
|
|
1637
1637
|
);
|
|
1638
1638
|
Ua.displayName = Qa;
|
|
@@ -1650,21 +1650,21 @@ var Ha = "DropdownMenuItem", Rn = c.forwardRef(
|
|
|
1650
1650
|
}
|
|
1651
1651
|
);
|
|
1652
1652
|
Rn.displayName = Ha;
|
|
1653
|
-
var qa = "DropdownMenuCheckboxItem",
|
|
1653
|
+
var qa = "DropdownMenuCheckboxItem", Sn = c.forwardRef((e, t) => {
|
|
1654
1654
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1655
|
-
return /* @__PURE__ */ a.jsx(
|
|
1655
|
+
return /* @__PURE__ */ a.jsx(Da, { ...o, ...r, ref: t });
|
|
1656
1656
|
});
|
|
1657
|
-
|
|
1657
|
+
Sn.displayName = qa;
|
|
1658
1658
|
var za = "DropdownMenuRadioGroup", Va = c.forwardRef((e, t) => {
|
|
1659
1659
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1660
|
-
return /* @__PURE__ */ a.jsx(
|
|
1660
|
+
return /* @__PURE__ */ a.jsx(Na, { ...o, ...r, ref: t });
|
|
1661
1661
|
});
|
|
1662
1662
|
Va.displayName = za;
|
|
1663
|
-
var Ya = "DropdownMenuRadioItem",
|
|
1663
|
+
var Ya = "DropdownMenuRadioItem", En = c.forwardRef((e, t) => {
|
|
1664
1664
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1665
1665
|
return /* @__PURE__ */ a.jsx(Ia, { ...o, ...r, ref: t });
|
|
1666
1666
|
});
|
|
1667
|
-
|
|
1667
|
+
En.displayName = Ya;
|
|
1668
1668
|
var Xa = "DropdownMenuItemIndicator", _n = c.forwardRef((e, t) => {
|
|
1669
1669
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1670
1670
|
return /* @__PURE__ */ a.jsx(Aa, { ...o, ...r, ref: t });
|
|
@@ -1689,12 +1689,12 @@ var es = (e) => {
|
|
|
1689
1689
|
onChange: o
|
|
1690
1690
|
});
|
|
1691
1691
|
return /* @__PURE__ */ a.jsx(ka, { ...i, open: u, onOpenChange: d, children: n });
|
|
1692
|
-
}, ts = "DropdownMenuSubTrigger",
|
|
1692
|
+
}, ts = "DropdownMenuSubTrigger", Dn = c.forwardRef((e, t) => {
|
|
1693
1693
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1694
1694
|
return /* @__PURE__ */ a.jsx(Fa, { ...o, ...r, ref: t });
|
|
1695
1695
|
});
|
|
1696
|
-
|
|
1697
|
-
var ns = "DropdownMenuSubContent",
|
|
1696
|
+
Dn.displayName = ts;
|
|
1697
|
+
var ns = "DropdownMenuSubContent", Nn = c.forwardRef((e, t) => {
|
|
1698
1698
|
const { __scopeDropdownMenu: n, ...r } = e, o = P(n);
|
|
1699
1699
|
return /* @__PURE__ */ a.jsx(
|
|
1700
1700
|
La,
|
|
@@ -1713,8 +1713,8 @@ var ns = "DropdownMenuSubContent", Dn = c.forwardRef((e, t) => {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
);
|
|
1715
1715
|
});
|
|
1716
|
-
|
|
1717
|
-
var rs = xn, os = yn, In = bn, An = Cn, On = Pn, Tn = Rn, kn =
|
|
1716
|
+
Nn.displayName = ns;
|
|
1717
|
+
var rs = xn, os = yn, In = bn, An = Cn, On = Pn, Tn = Rn, kn = Sn, Fn = En, Ln = _n, Kn = jn, as = es, $n = Dn, Bn = Nn;
|
|
1718
1718
|
const ss = rs, is = os, cs = In, us = as, Qn = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1719
1719
|
$n,
|
|
1720
1720
|
{
|
|
@@ -1829,7 +1829,7 @@ zn.displayName = Kn.displayName;
|
|
|
1829
1829
|
const hs = () => {
|
|
1830
1830
|
const { topNavigation: e } = Ve();
|
|
1831
1831
|
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(
|
|
1832
|
-
|
|
1832
|
+
Re,
|
|
1833
1833
|
{
|
|
1834
1834
|
className: ({ isActive: n }) => Ar(
|
|
1835
1835
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
@@ -1845,11 +1845,11 @@ const hs = () => {
|
|
|
1845
1845
|
// eslint-disable-next-line react/no-array-index-key
|
|
1846
1846
|
/* @__PURE__ */ a.jsx(Vn, { item: t }, n)
|
|
1847
1847
|
)) }) })
|
|
1848
|
-
] }, e.label) : /* @__PURE__ */ a.jsx(
|
|
1849
|
-
const [t, n] = Or(), { isAuthenticated: r, profile: o, isAuthEnabled: s } =
|
|
1848
|
+
] }, e.label) : /* @__PURE__ */ a.jsx(Se, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(Hn, { children: e.label }, e.label) }), Yn = Tt(function() {
|
|
1849
|
+
const [t, n] = Or(), { isAuthenticated: r, profile: o, isAuthEnabled: s } = Nr(), { pathname: i } = Ne(), u = Ve(), { page: d, plugins: m } = u, f = m.filter((p) => Uo(p)).flatMap((p) => p.getProfileMenuItems(u)).map((p) => /* @__PURE__ */ a.jsx(Vn, { item: p }, p.label)), l = t ? po : mo;
|
|
1850
1850
|
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: [
|
|
1851
1851
|
/* @__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: [
|
|
1852
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(
|
|
1852
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Se, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1853
1853
|
(d == null ? void 0 : d.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1854
1854
|
/* @__PURE__ */ a.jsx(
|
|
1855
1855
|
"img",
|
|
@@ -1877,8 +1877,8 @@ const hs = () => {
|
|
|
1877
1877
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1878
1878
|
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-prose" }),
|
|
1879
1879
|
/* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
|
|
1880
|
-
s && !r ? /* @__PURE__ */ a.jsx(
|
|
1881
|
-
|
|
1880
|
+
s && !r ? /* @__PURE__ */ a.jsx(Be, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
1881
|
+
Se,
|
|
1882
1882
|
{
|
|
1883
1883
|
to: {
|
|
1884
1884
|
pathname: "/signin",
|
|
@@ -1887,7 +1887,7 @@ const hs = () => {
|
|
|
1887
1887
|
children: "Login"
|
|
1888
1888
|
}
|
|
1889
1889
|
) }) : f.length > 0 && /* @__PURE__ */ a.jsxs(ss, { children: [
|
|
1890
|
-
/* @__PURE__ */ a.jsx(is, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
1890
|
+
/* @__PURE__ */ a.jsx(is, { asChild: !0, children: /* @__PURE__ */ a.jsx(Be, { variant: "ghost", children: o != null && o.email ? `${o.email}` : "My Account" }) }),
|
|
1891
1891
|
/* @__PURE__ */ a.jsxs(Gn, { className: "w-56", children: [
|
|
1892
1892
|
/* @__PURE__ */ a.jsx(qn, { children: "My Account" }),
|
|
1893
1893
|
/* @__PURE__ */ a.jsx(zn, {}),
|
|
@@ -1912,7 +1912,7 @@ const hs = () => {
|
|
|
1912
1912
|
}), Xn = {
|
|
1913
1913
|
Header: Yn
|
|
1914
1914
|
}, fs = Ot(Xn), ps = fs.Provider, ms = (e) => {
|
|
1915
|
-
const [t, n] =
|
|
1915
|
+
const [t, n] = le(!1);
|
|
1916
1916
|
W(() => {
|
|
1917
1917
|
const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), u = s === "dark" || !s && i.matches;
|
|
1918
1918
|
n(u);
|
|
@@ -1926,39 +1926,39 @@ const hs = () => {
|
|
|
1926
1926
|
children: e,
|
|
1927
1927
|
...t
|
|
1928
1928
|
}) => {
|
|
1929
|
-
var R,
|
|
1930
|
-
const n =
|
|
1929
|
+
var R, N;
|
|
1930
|
+
const n = Ke(
|
|
1931
1931
|
() => ({ ...Xn, ...t.overrides }),
|
|
1932
1932
|
[t.overrides]
|
|
1933
|
-
), r =
|
|
1933
|
+
), r = Ke(() => {
|
|
1934
1934
|
var I;
|
|
1935
1935
|
return {
|
|
1936
1936
|
...(t.plugins ?? []).filter(zo).flatMap(
|
|
1937
1937
|
(y) => y.getMdxComponents ? [y.getMdxComponents()] : []
|
|
1938
|
-
).reduce((y,
|
|
1938
|
+
).reduce((y, E) => ({ ...y, ...E }), {}),
|
|
1939
1939
|
...kr,
|
|
1940
1940
|
...(I = t.mdx) == null ? void 0 : I.components
|
|
1941
1941
|
};
|
|
1942
|
-
}, [(R = t.mdx) == null ? void 0 : R.components, t.plugins]), [o, s] =
|
|
1942
|
+
}, [(R = t.mdx) == null ? void 0 : R.components, t.plugins]), [o, s] = le(!1), { stagger: i } = Gr(Qe), [u, d] = le(!1), m = fr(), f = Ie("idle"), l = Ke(
|
|
1943
1943
|
() => u ? { stagger: !0 } : { stagger: i },
|
|
1944
1944
|
[i, u]
|
|
1945
1945
|
), p = pr();
|
|
1946
1946
|
W(() => {
|
|
1947
1947
|
u || d(!0);
|
|
1948
1948
|
}, [u, p.location]);
|
|
1949
|
-
const [v] =
|
|
1949
|
+
const [v] = le(() => new Yo(t));
|
|
1950
1950
|
W(() => {
|
|
1951
1951
|
f.current !== "pending" && (f.current = "pending", v.initialize({ navigate: m }).then(() => {
|
|
1952
1952
|
f.current = "done", s(!0);
|
|
1953
1953
|
}));
|
|
1954
1954
|
}, [v, m]);
|
|
1955
|
-
const x = (
|
|
1955
|
+
const x = (N = t.plugins) == null ? void 0 : N.filter(qo).map((S, I) => {
|
|
1956
1956
|
var y;
|
|
1957
|
-
return /* @__PURE__ */ a.jsx(Hr, { children: (y =
|
|
1957
|
+
return /* @__PURE__ */ a.jsx(Hr, { children: (y = S.getHead) == null ? void 0 : y.call(S) }, I);
|
|
1958
1958
|
});
|
|
1959
1959
|
return o ? /* @__PURE__ */ a.jsxs(ao, { client: Gt, children: [
|
|
1960
|
-
/* @__PURE__ */ a.jsx(
|
|
1961
|
-
/* @__PURE__ */ a.jsx(
|
|
1960
|
+
/* @__PURE__ */ a.jsx(Ge, { children: x }),
|
|
1961
|
+
/* @__PURE__ */ a.jsx(Qe.Provider, { value: l, children: /* @__PURE__ */ a.jsx(so, { value: v, children: /* @__PURE__ */ a.jsx(sr, { components: r, children: /* @__PURE__ */ a.jsx(ms, { children: /* @__PURE__ */ a.jsx(ps, { value: n, children: /* @__PURE__ */ a.jsx(mr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(Fr, { children: e ?? /* @__PURE__ */ a.jsx(St, {}) }) }) }) }) }) }) })
|
|
1962
1962
|
] }) : null;
|
|
1963
1963
|
}, vs = Tt(gs), Wn = (e) => /* @__PURE__ */ a.jsx(Bo, { FallbackComponent: Xo, children: /* @__PURE__ */ a.jsx(vs, { ...e }) });
|
|
1964
1964
|
Wn.displayName = "DevPortal";
|
|
@@ -1967,7 +1967,7 @@ const xs = ({
|
|
|
1967
1967
|
level: t
|
|
1968
1968
|
}) => {
|
|
1969
1969
|
var f;
|
|
1970
|
-
const n = Lt(), r = ir(e), o = e.collapsible ?? !0, s = e.collapsed ?? !0, i = !!(!o || !s || r), [u, d] =
|
|
1970
|
+
const n = Lt(), r = ir(e), o = e.collapsible ?? !0, s = e.collapsed ?? !0, i = !!(!o || !s || r), [u, d] = le(i);
|
|
1971
1971
|
W(() => {
|
|
1972
1972
|
r && d(!0);
|
|
1973
1973
|
}, [r]);
|
|
@@ -2000,12 +2000,12 @@ const xs = ({
|
|
|
2000
2000
|
{
|
|
2001
2001
|
className: M(
|
|
2002
2002
|
"group text-start",
|
|
2003
|
-
|
|
2003
|
+
ue({ isActive: !1, isTopLevel: t === 0 }),
|
|
2004
2004
|
o ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
2005
2005
|
),
|
|
2006
2006
|
asChild: !0,
|
|
2007
2007
|
disabled: !o,
|
|
2008
|
-
children: ((f = e.link) == null ? void 0 : f.type) === "doc" ? /* @__PURE__ */ a.jsx(
|
|
2008
|
+
children: ((f = e.link) == null ? void 0 : f.type) === "doc" ? /* @__PURE__ */ a.jsx(Re, { to: Ye(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: l }) => /* @__PURE__ */ a.jsxs(
|
|
2009
2009
|
"div",
|
|
2010
2010
|
{
|
|
2011
2011
|
className: M(
|
|
@@ -2034,7 +2034,7 @@ const xs = ({
|
|
|
2034
2034
|
]
|
|
2035
2035
|
}
|
|
2036
2036
|
);
|
|
2037
|
-
},
|
|
2037
|
+
}, ue = Lr(
|
|
2038
2038
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
2039
2039
|
{
|
|
2040
2040
|
variants: {
|
|
@@ -2061,9 +2061,9 @@ const xs = ({
|
|
|
2061
2061
|
return /* @__PURE__ */ a.jsx(xs, { category: e, level: t });
|
|
2062
2062
|
case "doc":
|
|
2063
2063
|
return /* @__PURE__ */ a.jsxs(
|
|
2064
|
-
|
|
2064
|
+
Re,
|
|
2065
2065
|
{
|
|
2066
|
-
className: ({ isActive: o }) =>
|
|
2066
|
+
className: ({ isActive: o }) => ue({ isActive: o, isTopLevel: t === 0 }),
|
|
2067
2067
|
to: Ye(n == null ? void 0 : n.id, e.id),
|
|
2068
2068
|
children: [
|
|
2069
2069
|
e.label,
|
|
@@ -2080,7 +2080,7 @@ const xs = ({
|
|
|
2080
2080
|
className: M(
|
|
2081
2081
|
"flex gap-2.5 justify-between",
|
|
2082
2082
|
t === 0 && "-mx-[--padding-nav-item]",
|
|
2083
|
-
|
|
2083
|
+
ue({
|
|
2084
2084
|
isActive: e.href.slice(1) === r
|
|
2085
2085
|
})
|
|
2086
2086
|
),
|
|
@@ -2089,11 +2089,11 @@ const xs = ({
|
|
|
2089
2089
|
e.badge && /* @__PURE__ */ a.jsx(wt, { ...e.badge })
|
|
2090
2090
|
]
|
|
2091
2091
|
}
|
|
2092
|
-
) : /* @__PURE__ */ a.jsxs(
|
|
2092
|
+
) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
2093
2093
|
"a",
|
|
2094
2094
|
{
|
|
2095
2095
|
className: M(
|
|
2096
|
-
|
|
2096
|
+
ue({ isTopLevel: t === 0 }),
|
|
2097
2097
|
"block"
|
|
2098
2098
|
),
|
|
2099
2099
|
href: e.href,
|
|
@@ -2107,7 +2107,7 @@ const xs = ({
|
|
|
2107
2107
|
] })
|
|
2108
2108
|
]
|
|
2109
2109
|
}
|
|
2110
|
-
);
|
|
2110
|
+
) : /* @__PURE__ */ a.jsx(Re, { className: M(ue({}), "block"), to: e.href, children: e.label });
|
|
2111
2111
|
}
|
|
2112
2112
|
}, ws = (e, t = { block: "center" }) => {
|
|
2113
2113
|
if (!e) return;
|
|
@@ -2129,7 +2129,7 @@ const xs = ({
|
|
|
2129
2129
|
}
|
|
2130
2130
|
}, [e.hash, t]);
|
|
2131
2131
|
}, bs = () => {
|
|
2132
|
-
const e = Ne(), t =
|
|
2132
|
+
const e = Ne(), t = Ie(e.pathname);
|
|
2133
2133
|
W(() => {
|
|
2134
2134
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
2135
2135
|
}, [e.pathname]);
|
|
@@ -2147,7 +2147,7 @@ const xs = ({
|
|
|
2147
2147
|
}
|
|
2148
2148
|
);
|
|
2149
2149
|
}), Cs = () => {
|
|
2150
|
-
const e =
|
|
2150
|
+
const e = Ie(null), t = io();
|
|
2151
2151
|
return /* @__PURE__ */ a.jsxs(
|
|
2152
2152
|
Ms,
|
|
2153
2153
|
{
|
|
@@ -2163,11 +2163,11 @@ const xs = ({
|
|
|
2163
2163
|
}, Ps = ({ children: e }) => {
|
|
2164
2164
|
const t = Ne(), { setActiveAnchor: n } = qe(), { meta: r } = Ve();
|
|
2165
2165
|
ys(), bs();
|
|
2166
|
-
const o =
|
|
2166
|
+
const o = Ie(t.pathname);
|
|
2167
2167
|
return W(() => {
|
|
2168
2168
|
t.pathname !== o.current && n(""), o.current = t.pathname;
|
|
2169
2169
|
}, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2170
|
-
/* @__PURE__ */ a.jsxs(
|
|
2170
|
+
/* @__PURE__ */ a.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
|
|
2171
2171
|
(r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
|
|
2172
2172
|
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
|
|
2173
2173
|
] }),
|
|
@@ -2189,7 +2189,7 @@ const xs = ({
|
|
|
2189
2189
|
),
|
|
2190
2190
|
children: [
|
|
2191
2191
|
/* @__PURE__ */ a.jsx(Ee, { name: "zudoku-before-content" }),
|
|
2192
|
-
e ?? /* @__PURE__ */ a.jsx(
|
|
2192
|
+
e ?? /* @__PURE__ */ a.jsx(St, {}),
|
|
2193
2193
|
/* @__PURE__ */ a.jsx(Ee, { name: "zudoku-after-content" })
|
|
2194
2194
|
]
|
|
2195
2195
|
}
|
|
@@ -2198,7 +2198,7 @@ const xs = ({
|
|
|
2198
2198
|
}
|
|
2199
2199
|
) })
|
|
2200
2200
|
] });
|
|
2201
|
-
}, $s = ur, Bs = Kr, Qs = Wn, Us = Ps, Gs =
|
|
2201
|
+
}, $s = ur, Bs = Kr, Qs = Wn, Us = Ps, Gs = Se, Hs = gr, qs = go, zs = Ao, Vs = Oo, Ys = Be, Xs = Ge;
|
|
2202
2202
|
export {
|
|
2203
2203
|
zs as Bootstrap,
|
|
2204
2204
|
Vs as BootstrapStatic,
|