zudoku 0.4.3-dev.8 → 0.4.3
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/app/demo.js +4 -0
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.js +8 -3
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +3 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/config/validators/SidebarSchema.js +0 -3
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +5 -0
- package/dist/config/validators/validate.js +1 -0
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +8 -0
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js +1 -1
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/demo/DemoAnnouncement.d.ts +2 -0
- package/dist/lib/demo/DemoAnnouncement.js +4 -0
- package/dist/lib/demo/DemoAnnouncement.js.map +1 -0
- package/dist/lib/oas/parser/index.js +9 -2
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js +1 -4
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +5 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/vite/build.js +6 -2
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +1 -0
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/prerender.js +2 -1
- package/dist/vite/prerender.js.map +1 -1
- package/lib/{CategoryHeading-BoT0DVI-.js → CategoryHeading-DLCe0Use.js} +2 -2
- package/lib/{CategoryHeading-BoT0DVI-.js.map → CategoryHeading-DLCe0Use.js.map} +1 -1
- package/lib/{Combination-C1wKWZ28.js → Combination-B46-2_PR.js} +2 -2
- package/lib/{Combination-C1wKWZ28.js.map → Combination-B46-2_PR.js.map} +1 -1
- package/lib/{DeveloperHint-Bv958_pY.js → DeveloperHint-CCKk5wYF.js} +2 -2
- package/lib/{DeveloperHint-Bv958_pY.js.map → DeveloperHint-CCKk5wYF.js.map} +1 -1
- package/lib/{ErrorPage-CcBjrY_g.js → ErrorPage-BUyRN_4w.js} +3 -3
- package/lib/{ErrorPage-CcBjrY_g.js.map → ErrorPage-BUyRN_4w.js.map} +1 -1
- package/lib/{Input-BqnnTL7-.js → Input-C81a88Ux.js} +3 -3
- package/lib/{Input-BqnnTL7-.js.map → Input-C81a88Ux.js.map} +1 -1
- package/lib/{Markdown-C3hatKS5.js → Markdown-DWiGXWrs.js} +5 -1
- package/lib/{Markdown-C3hatKS5.js.map → Markdown-DWiGXWrs.js.map} +1 -1
- package/lib/{MdxPage-BEG8cDoF.js → MdxPage-DKD6W5vO.js} +3 -3
- package/lib/{MdxPage-BEG8cDoF.js.map → MdxPage-DKD6W5vO.js.map} +1 -1
- package/lib/{OperationList-BEiJFfFr.js → OperationList-EG2GsU0f.js} +9 -9
- package/lib/{OperationList-BEiJFfFr.js.map → OperationList-EG2GsU0f.js.map} +1 -1
- package/lib/{Route-BvREOAN6.js → Route-R9dc2BqA.js} +2 -2
- package/lib/{Route-BvREOAN6.js.map → Route-R9dc2BqA.js.map} +1 -1
- package/lib/{SidebarBadge-C6wpM9X3.js → SidebarBadge-D7XZv6EH.js} +3 -3
- package/lib/{SidebarBadge-C6wpM9X3.js.map → SidebarBadge-D7XZv6EH.js.map} +1 -1
- package/lib/{SlotletProvider-Bdzag6MN.js → SlotletProvider-BOqq0WiS.js} +4 -4
- package/lib/{SlotletProvider-Bdzag6MN.js.map → SlotletProvider-BOqq0WiS.js.map} +1 -1
- package/lib/{Spinner-DiA314T5.js → Spinner-D2_3rzdl.js} +2 -2
- package/lib/{Spinner-DiA314T5.js.map → Spinner-D2_3rzdl.js.map} +1 -1
- package/lib/assets/{worker-4PRCYVz5.js → worker-BsNqC5G3.js} +8 -7
- package/lib/assets/{worker-4PRCYVz5.js.map → worker-BsNqC5G3.js.map} +1 -1
- package/lib/{index-ClDFRC39.js → index-CcnRjD7X.js} +11 -11
- package/lib/{index-ClDFRC39.js.map → index-CcnRjD7X.js.map} +1 -1
- package/lib/{index-LWNs2niD.js → index-sjtls4Rz.js} +3 -3
- package/lib/{index-LWNs2niD.js.map → index-sjtls4Rz.js.map} +1 -1
- package/lib/prism-javascript.min-CEqHqgbm.js +9 -0
- package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -0
- package/lib/prism-markdown.min-F3U-vPBi.js +61 -0
- package/lib/prism-markdown.min-F3U-vPBi.js.map +1 -0
- package/lib/prism-markup-BNGj0Tvm.js +174 -0
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -0
- package/lib/prism-typescript.min-oSVeWCAd.js +6 -0
- package/lib/prism-typescript.min-oSVeWCAd.js.map +1 -0
- package/lib/state-DsXXkBLH.js.map +1 -1
- package/lib/zudoku.auth-openid.js +4 -4
- package/lib/zudoku.components.js +105 -104
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +8 -7
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +5 -5
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +12 -14
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -4
- package/package.json +4 -4
- package/src/app/demo.tsx +4 -0
- package/src/app/entry.client.tsx +8 -5
- package/src/app/entry.server.tsx +3 -1
- package/src/app/main.css +1 -1
- package/src/lib/components/Layout.tsx +1 -0
- package/src/lib/components/SyntaxHighlight.tsx +8 -0
- package/src/lib/components/TopNavigation.tsx +1 -1
- package/src/lib/demo/DemoAnnouncement.tsx +14 -0
- package/src/lib/oas/parser/index.ts +9 -2
- package/src/lib/plugins/markdown/generateRoutes.tsx +1 -5
- package/src/lib/plugins/openapi/Sidecar.tsx +5 -2
|
@@ -5,10 +5,10 @@ import { j as E } from "./jsx-runtime-B6kdoens.js";
|
|
|
5
5
|
import { c as Ce, a as Ie } from "./_commonjsHelpers-BVfed4GL.js";
|
|
6
6
|
import { A as je } from "./AuthenticationPlugin-DYnkydqa.js";
|
|
7
7
|
import { useState as Je, useRef as Oe, useEffect as Ne } from "react";
|
|
8
|
-
import { D as ze } from "./DeveloperHint-
|
|
9
|
-
import { E as De } from "./ErrorPage-
|
|
10
|
-
import { S as Ke } from "./Spinner-
|
|
11
|
-
import { S as We } from "./Markdown-
|
|
8
|
+
import { D as ze } from "./DeveloperHint-CCKk5wYF.js";
|
|
9
|
+
import { E as De } from "./ErrorPage-BUyRN_4w.js";
|
|
10
|
+
import { S as Ke } from "./Spinner-D2_3rzdl.js";
|
|
11
|
+
import { S as We } from "./Markdown-DWiGXWrs.js";
|
|
12
12
|
import { e as He } from "./index-ChhUJhLT.js";
|
|
13
13
|
import { u as z } from "./state-DsXXkBLH.js";
|
|
14
14
|
var fe = { exports: {} };
|
package/lib/zudoku.components.js
CHANGED
|
@@ -3,7 +3,7 @@ var dt = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var ur = (e, t, n) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
-
var
|
|
6
|
+
var P = (e, t, n) => ur(e, typeof t != "symbol" ? t + "" : t, n), ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
|
|
7
7
|
var f = (e, t, n) => (ht(e, t, "read from private field"), n ? n.call(e) : t.get(e)), N = (e, t, n) => t.has(e) ? dt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), S = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
8
|
var Ce = (e, t, n, r) => ({
|
|
9
9
|
set _(o) {
|
|
@@ -13,21 +13,21 @@ var Ce = (e, t, n, r) => ({
|
|
|
13
13
|
return f(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as
|
|
17
|
-
import { d as pr, a as mr, R as gr, N as
|
|
18
|
-
import { E as Et, S as
|
|
16
|
+
import { H as Pt, a as qe, M as lr, u as dr, A as hr, b as fr } from "./utils-BPHLKjns.js";
|
|
17
|
+
import { d as pr, a as mr, R as gr, N as Pe, L as Ge, u as vr, O as Rt, b as xr, c as He } from "./index-ChhUJhLT.js";
|
|
18
|
+
import { E as Et, S as J, a as yr, R as wr } from "./SlotletProvider-BOqq0WiS.js";
|
|
19
19
|
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
20
|
-
import { M as br, c as Mr, a as _t, b as Nt, A as Cr, u as ge, h as Sr, d as y, e as
|
|
21
|
-
import { c as ue, a as b, C as Or, b as Tr, u as Fr, T as Lr, M as Kr, V as $r, d as ze, e as Br, f as Qr } from "./Markdown-
|
|
20
|
+
import { M as br, c as Mr, a as _t, b as Nt, A as Cr, u as ge, h as Sr, d as y, e as jr, F as Pr, D as Rr, C as Er, P as ce, f as Ue, g as _r, i as Dt, R as Nr, S as Dr, j as Ir, k as kr, l as It, m as Ar, n as Re, o as kt, p as ft, B as $e } from "./Combination-B46-2_PR.js";
|
|
21
|
+
import { c as ue, a as b, C as Or, b as Tr, u as Fr, T as Lr, M as Kr, V as $r, d as ze, e as Br, f as Qr } from "./Markdown-DWiGXWrs.js";
|
|
22
22
|
import * as c from "react";
|
|
23
23
|
import qr, { StrictMode as At, createContext as Ot, Component as Gr, createElement as pt, isValidElement as Hr, useState as ie, useCallback as Tt, useEffect as z, Suspense as Ft, memo as Lt, useMemo as Fe, useContext as Ur, Fragment as zr, useRef as Ve, forwardRef as Vr } from "react";
|
|
24
24
|
import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
25
|
import { r as Yr } from "./router-BiRCp01d.js";
|
|
26
|
-
import { S as Be, R as Xr, T as Wr, C as Jr } from "./index-
|
|
26
|
+
import { S as Be, R as Xr, T as Wr, C as Jr } from "./index-sjtls4Rz.js";
|
|
27
27
|
import { S as Kt, h as $t, Q as Zr, n as E, m as mt, a as gt, b as $, e as ea, c as ta, d as na, f as ra, o as vt, r as xt, g as aa, i as yt, p as wt, s as oa, u as Ne, j as sa, Z as ia, k as ca, l as Bt, q as ua } from "./ZudokuContext-BHNQL3XO.js";
|
|
28
28
|
import { j as Xe } from "./joinPath-B7kNnUX4.js";
|
|
29
|
-
import { c as Qt, P as De, R as la, I as da, S as Le } from "./SidebarBadge-
|
|
30
|
-
import { S as ha } from "./Spinner-
|
|
29
|
+
import { c as Qt, P as De, R as la, I as da, S as Le } from "./SidebarBadge-D7XZv6EH.js";
|
|
30
|
+
import { S as ha } from "./Spinner-D2_3rzdl.js";
|
|
31
31
|
/**
|
|
32
32
|
* @license lucide-react v0.378.0 - ISC
|
|
33
33
|
*
|
|
@@ -142,7 +142,7 @@ function Sa({
|
|
|
142
142
|
static: !0
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function ja({
|
|
146
146
|
context: e,
|
|
147
147
|
router: t,
|
|
148
148
|
hydrate: n = !0,
|
|
@@ -186,7 +186,7 @@ function Pa({
|
|
|
186
186
|
future: {
|
|
187
187
|
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
188
188
|
}
|
|
189
|
-
}, /* @__PURE__ */ O.createElement(
|
|
189
|
+
}, /* @__PURE__ */ O.createElement(Pa, {
|
|
190
190
|
routes: t.routes,
|
|
191
191
|
future: t.future,
|
|
192
192
|
state: u
|
|
@@ -198,7 +198,7 @@ function Pa({
|
|
|
198
198
|
}
|
|
199
199
|
}) : null);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Pa({
|
|
202
202
|
routes: e,
|
|
203
203
|
future: t,
|
|
204
204
|
state: n
|
|
@@ -364,17 +364,17 @@ function ka(e) {
|
|
|
364
364
|
return e.replace(Ia, (t) => Da[t]);
|
|
365
365
|
}
|
|
366
366
|
ve.StaticRouter = Sa;
|
|
367
|
-
var Aa = ve.StaticRouterProvider =
|
|
367
|
+
var Aa = ve.StaticRouterProvider = ja;
|
|
368
368
|
ve.createStaticHandler = Ea;
|
|
369
369
|
ve.createStaticRouter = _a;
|
|
370
370
|
const Oa = ({
|
|
371
371
|
router: e,
|
|
372
372
|
hydrate: t = !1
|
|
373
|
-
}) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(
|
|
373
|
+
}) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(Pt, { children: /* @__PURE__ */ a.jsx(Be.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(gr, { router: e }) }) }) }), Ta = ({
|
|
374
374
|
router: e,
|
|
375
375
|
context: t,
|
|
376
376
|
helmetContext: n
|
|
377
|
-
}) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(
|
|
377
|
+
}) => /* @__PURE__ */ a.jsx(At, { children: /* @__PURE__ */ a.jsx(Pt, { context: n, children: /* @__PURE__ */ a.jsx(Aa, { router: e, context: t }) }) });
|
|
378
378
|
var T, Ct, Fa = (Ct = class extends Kt {
|
|
379
379
|
constructor(t = {}) {
|
|
380
380
|
super();
|
|
@@ -551,11 +551,11 @@ function Ka(e) {
|
|
|
551
551
|
meta: t.options.meta
|
|
552
552
|
};
|
|
553
553
|
p(X);
|
|
554
|
-
const
|
|
554
|
+
const ee = await d(
|
|
555
555
|
X
|
|
556
556
|
), { maxPages: be } = t.options, W = L ? ta : na;
|
|
557
557
|
return {
|
|
558
|
-
pages: W(C.pages,
|
|
558
|
+
pages: W(C.pages, ee, be),
|
|
559
559
|
pageParams: W(C.pageParams, k, be)
|
|
560
560
|
};
|
|
561
561
|
};
|
|
@@ -614,28 +614,28 @@ function $a(e, { pages: t, pageParams: n }) {
|
|
|
614
614
|
n
|
|
615
615
|
);
|
|
616
616
|
}
|
|
617
|
-
var w, G, H,
|
|
617
|
+
var w, G, H, re, ae, U, oe, se, jt, Ba = (jt = class {
|
|
618
618
|
constructor(e = {}) {
|
|
619
619
|
N(this, w);
|
|
620
620
|
N(this, G);
|
|
621
621
|
N(this, H);
|
|
622
|
-
N(this, ne);
|
|
623
622
|
N(this, re);
|
|
624
|
-
N(this, U);
|
|
625
623
|
N(this, ae);
|
|
624
|
+
N(this, U);
|
|
626
625
|
N(this, oe);
|
|
627
|
-
|
|
626
|
+
N(this, se);
|
|
627
|
+
S(this, w, e.queryCache || new Fa()), S(this, G, e.mutationCache || new La()), S(this, H, e.defaultOptions || {}), S(this, re, /* @__PURE__ */ new Map()), S(this, ae, /* @__PURE__ */ new Map()), S(this, U, 0);
|
|
628
628
|
}
|
|
629
629
|
mount() {
|
|
630
|
-
Ce(this, U)._++, f(this, U) === 1 && (S(this,
|
|
630
|
+
Ce(this, U)._++, f(this, U) === 1 && (S(this, oe, ra.subscribe(async (e) => {
|
|
631
631
|
e && (await this.resumePausedMutations(), f(this, w).onFocus());
|
|
632
|
-
})), S(this,
|
|
632
|
+
})), S(this, se, vt.subscribe(async (e) => {
|
|
633
633
|
e && (await this.resumePausedMutations(), f(this, w).onOnline());
|
|
634
634
|
})));
|
|
635
635
|
}
|
|
636
636
|
unmount() {
|
|
637
637
|
var e, t;
|
|
638
|
-
Ce(this, U)._--, f(this, U) === 0 && ((e = f(this,
|
|
638
|
+
Ce(this, U)._--, f(this, U) === 0 && ((e = f(this, oe)) == null || e.call(this), S(this, oe, void 0), (t = f(this, se)) == null || t.call(this), S(this, se, void 0));
|
|
639
639
|
}
|
|
640
640
|
isFetching(e) {
|
|
641
641
|
return f(this, w).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -764,26 +764,26 @@ var w, G, H, ne, re, U, ae, oe, Pt, Ba = (Pt = class {
|
|
|
764
764
|
S(this, H, e);
|
|
765
765
|
}
|
|
766
766
|
setQueryDefaults(e, t) {
|
|
767
|
-
f(this,
|
|
767
|
+
f(this, re).set(yt(e), {
|
|
768
768
|
queryKey: e,
|
|
769
769
|
defaultOptions: t
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
772
|
getQueryDefaults(e) {
|
|
773
|
-
const t = [...f(this,
|
|
773
|
+
const t = [...f(this, re).values()];
|
|
774
774
|
let n = {};
|
|
775
775
|
return t.forEach((r) => {
|
|
776
776
|
wt(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
777
777
|
}), n;
|
|
778
778
|
}
|
|
779
779
|
setMutationDefaults(e, t) {
|
|
780
|
-
f(this,
|
|
780
|
+
f(this, ae).set(yt(e), {
|
|
781
781
|
mutationKey: e,
|
|
782
782
|
defaultOptions: t
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
785
|
getMutationDefaults(e) {
|
|
786
|
-
const t = [...f(this,
|
|
786
|
+
const t = [...f(this, ae).values()];
|
|
787
787
|
let n = {};
|
|
788
788
|
return t.forEach((r) => {
|
|
789
789
|
wt(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
@@ -814,7 +814,7 @@ var w, G, H, ne, re, U, ae, oe, Pt, Ba = (Pt = class {
|
|
|
814
814
|
clear() {
|
|
815
815
|
f(this, w).clear(), f(this, G).clear();
|
|
816
816
|
}
|
|
817
|
-
}, w = new WeakMap(), G = new WeakMap(), H = new WeakMap(),
|
|
817
|
+
}, w = new WeakMap(), G = new WeakMap(), H = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), U = new WeakMap(), oe = new WeakMap(), se = new WeakMap(), jt);
|
|
818
818
|
const Qa = Ot(null), Ke = {
|
|
819
819
|
didCatch: !1,
|
|
820
820
|
error: null
|
|
@@ -902,14 +902,14 @@ function Ga() {
|
|
|
902
902
|
const Ha = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Ua = (e) => "getRoutes" in e && typeof e.getRoutes == "function", za = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Va = (e) => "initialize" in e && typeof e.initialize == "function", Ya = (e) => "getHead" in e && typeof e.getHead == "function", Xa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Wa = (e) => "getIdentities" in e && typeof e.getIdentities == "function", zt = new Ba();
|
|
903
903
|
class Ja {
|
|
904
904
|
constructor(t) {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
905
|
+
P(this, "plugins");
|
|
906
|
+
P(this, "sidebars");
|
|
907
|
+
P(this, "topNavigation");
|
|
908
|
+
P(this, "meta");
|
|
909
|
+
P(this, "page");
|
|
910
|
+
P(this, "authentication");
|
|
911
|
+
P(this, "navigationPlugins");
|
|
912
|
+
P(this, "initialize", async () => {
|
|
913
913
|
await Promise.all(
|
|
914
914
|
this.plugins.filter(Va).map((t) => {
|
|
915
915
|
var n;
|
|
@@ -917,13 +917,13 @@ class Ja {
|
|
|
917
917
|
})
|
|
918
918
|
);
|
|
919
919
|
});
|
|
920
|
-
|
|
920
|
+
P(this, "invalidateCache", async (t) => {
|
|
921
921
|
await zt.invalidateQueries({ queryKey: t });
|
|
922
922
|
});
|
|
923
|
-
|
|
923
|
+
P(this, "getApiIdentities", async () => (await Promise.all(
|
|
924
924
|
this.plugins.filter(Wa).map((n) => n.getIdentities(this))
|
|
925
925
|
)).flat());
|
|
926
|
-
|
|
926
|
+
P(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
927
927
|
this.navigationPlugins.map(
|
|
928
928
|
(r) => {
|
|
929
929
|
var o;
|
|
@@ -931,7 +931,7 @@ class Ja {
|
|
|
931
931
|
}
|
|
932
932
|
)
|
|
933
933
|
)).flatMap((r) => r ?? []));
|
|
934
|
-
|
|
934
|
+
P(this, "signRequest", async (t) => {
|
|
935
935
|
if (!this.authentication)
|
|
936
936
|
throw new Error("No authentication provider configured");
|
|
937
937
|
const n = await this.authentication.getAccessToken();
|
|
@@ -943,19 +943,19 @@ class Ja {
|
|
|
943
943
|
function Za({ error: e, resetErrorBoundary: t }) {
|
|
944
944
|
return /* @__PURE__ */ a.jsx(Et, { error: e });
|
|
945
945
|
}
|
|
946
|
-
const
|
|
947
|
-
(!
|
|
946
|
+
const je = globalThis;
|
|
947
|
+
(!je.requestIdleCallback || !je.cancelIdleCallback) && (je.requestIdleCallback = (e) => setTimeout(e, 1), je.cancelIdleCallback = clearTimeout);
|
|
948
948
|
var Qe = ["Enter", " "], eo = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], to = [...eo, ...Vt], no = {
|
|
949
949
|
ltr: [...Qe, "ArrowRight"],
|
|
950
950
|
rtl: [...Qe, "ArrowLeft"]
|
|
951
951
|
}, ro = {
|
|
952
952
|
ltr: ["ArrowLeft"],
|
|
953
953
|
rtl: ["ArrowRight"]
|
|
954
|
-
}, xe = "Menu", [fe, ao, oo] = Mr(xe), [
|
|
954
|
+
}, xe = "Menu", [fe, ao, oo] = Mr(xe), [Z, Yt] = _t(xe, [
|
|
955
955
|
oo,
|
|
956
956
|
Nt,
|
|
957
957
|
Qt
|
|
958
|
-
]), ye = Nt(), Xt = Qt(), [Wt, V] =
|
|
958
|
+
]), ye = Nt(), Xt = Qt(), [Wt, V] = Z(xe), [so, we] = Z(xe), Jt = (e) => {
|
|
959
959
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, v] = c.useState(null), p = c.useRef(!1), d = Ue(s), h = kr(o);
|
|
960
960
|
return c.useEffect(() => {
|
|
961
961
|
const m = () => {
|
|
@@ -994,14 +994,14 @@ var io = "MenuAnchor", Je = c.forwardRef(
|
|
|
994
994
|
}
|
|
995
995
|
);
|
|
996
996
|
Je.displayName = io;
|
|
997
|
-
var Ze = "MenuPortal", [co, Zt] =
|
|
997
|
+
var Ze = "MenuPortal", [co, Zt] = Z(Ze, {
|
|
998
998
|
forceMount: void 0
|
|
999
999
|
}), en = (e) => {
|
|
1000
1000
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = V(Ze, t);
|
|
1001
1001
|
return /* @__PURE__ */ a.jsx(co, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(De, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Ar, { asChild: !0, container: o, children: r }) }) });
|
|
1002
1002
|
};
|
|
1003
1003
|
en.displayName = Ze;
|
|
1004
|
-
var D = "MenuContent", [uo, et] =
|
|
1004
|
+
var D = "MenuContent", [uo, et] = Z(D), tn = c.forwardRef(
|
|
1005
1005
|
(e, t) => {
|
|
1006
1006
|
const n = Zt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(D, e.__scopeMenu), i = we(D, e.__scopeMenu);
|
|
1007
1007
|
return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(De, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(lo, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ho, { ...o, ref: t }) }) }) });
|
|
@@ -1059,17 +1059,17 @@ var D = "MenuContent", [uo, et] = J(D), tn = c.forwardRef(
|
|
|
1059
1059
|
onDismiss: m,
|
|
1060
1060
|
disableOutsideScroll: x,
|
|
1061
1061
|
...M
|
|
1062
|
-
} = e, I = V(D, n), Q = we(D, n), Y = ye(n), C = Xt(n), k = ao(n), [L, X] = c.useState(null),
|
|
1063
|
-
var
|
|
1064
|
-
const _ = Me.current + g, A = k().filter((K) => !K.disabled), q = document.activeElement, Oe = (
|
|
1062
|
+
} = e, I = V(D, n), Q = we(D, n), Y = ye(n), C = Xt(n), k = ao(n), [L, X] = c.useState(null), ee = c.useRef(null), be = ge(t, ee, I.onContentChange), W = c.useRef(0), Me = c.useRef(""), ar = c.useRef(0), ke = c.useRef(null), it = c.useRef("right"), Ae = c.useRef(0), or = x ? Nr : c.Fragment, sr = x ? { as: Dr, allowPinchZoom: !0 } : void 0, ir = (g) => {
|
|
1063
|
+
var ne, ut;
|
|
1064
|
+
const _ = Me.current + g, A = k().filter((K) => !K.disabled), q = document.activeElement, Oe = (ne = A.find((K) => K.ref.current === q)) == null ? void 0 : ne.textValue, Te = A.map((K) => K.textValue), ct = So(Te, _, Oe), le = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
|
|
1065
1065
|
(function K(lt) {
|
|
1066
1066
|
Me.current = lt, window.clearTimeout(W.current), lt !== "" && (W.current = window.setTimeout(() => K(""), 1e3));
|
|
1067
1067
|
})(_), le && setTimeout(() => le.focus());
|
|
1068
1068
|
};
|
|
1069
|
-
c.useEffect(() => () => window.clearTimeout(W.current), []),
|
|
1070
|
-
const
|
|
1069
|
+
c.useEffect(() => () => window.clearTimeout(W.current), []), jr();
|
|
1070
|
+
const te = c.useCallback((g) => {
|
|
1071
1071
|
var A, q;
|
|
1072
|
-
return it.current === ((A = ke.current) == null ? void 0 : A.side) &&
|
|
1072
|
+
return it.current === ((A = ke.current) == null ? void 0 : A.side) && Po(g, (q = ke.current) == null ? void 0 : q.area);
|
|
1073
1073
|
}, []);
|
|
1074
1074
|
return /* @__PURE__ */ a.jsx(
|
|
1075
1075
|
uo,
|
|
@@ -1078,35 +1078,35 @@ var D = "MenuContent", [uo, et] = J(D), tn = c.forwardRef(
|
|
|
1078
1078
|
searchRef: Me,
|
|
1079
1079
|
onItemEnter: c.useCallback(
|
|
1080
1080
|
(g) => {
|
|
1081
|
-
|
|
1081
|
+
te(g) && g.preventDefault();
|
|
1082
1082
|
},
|
|
1083
|
-
[
|
|
1083
|
+
[te]
|
|
1084
1084
|
),
|
|
1085
1085
|
onItemLeave: c.useCallback(
|
|
1086
1086
|
(g) => {
|
|
1087
1087
|
var _;
|
|
1088
|
-
|
|
1088
|
+
te(g) || ((_ = ee.current) == null || _.focus(), X(null));
|
|
1089
1089
|
},
|
|
1090
|
-
[
|
|
1090
|
+
[te]
|
|
1091
1091
|
),
|
|
1092
1092
|
onTriggerLeave: c.useCallback(
|
|
1093
1093
|
(g) => {
|
|
1094
|
-
|
|
1094
|
+
te(g) && g.preventDefault();
|
|
1095
1095
|
},
|
|
1096
|
-
[
|
|
1096
|
+
[te]
|
|
1097
1097
|
),
|
|
1098
1098
|
pointerGraceTimerRef: ar,
|
|
1099
1099
|
onPointerGraceIntentChange: c.useCallback((g) => {
|
|
1100
1100
|
ke.current = g;
|
|
1101
1101
|
}, []),
|
|
1102
1102
|
children: /* @__PURE__ */ a.jsx(or, { ...sr, children: /* @__PURE__ */ a.jsx(
|
|
1103
|
-
|
|
1103
|
+
Pr,
|
|
1104
1104
|
{
|
|
1105
1105
|
asChild: !0,
|
|
1106
1106
|
trapped: o,
|
|
1107
1107
|
onMountAutoFocus: y(s, (g) => {
|
|
1108
1108
|
var _;
|
|
1109
|
-
g.preventDefault(), (_ =
|
|
1109
|
+
g.preventDefault(), (_ = ee.current) == null || _.focus({ preventScroll: !0 });
|
|
1110
1110
|
}),
|
|
1111
1111
|
onUnmountAutoFocus: i,
|
|
1112
1112
|
children: /* @__PURE__ */ a.jsx(
|
|
@@ -1148,10 +1148,10 @@ var D = "MenuContent", [uo, et] = J(D), tn = c.forwardRef(
|
|
|
1148
1148
|
onKeyDown: y(M.onKeyDown, (g) => {
|
|
1149
1149
|
const A = g.target.closest("[data-radix-menu-content]") === g.currentTarget, q = g.ctrlKey || g.altKey || g.metaKey, Oe = g.key.length === 1;
|
|
1150
1150
|
A && (g.key === "Tab" && g.preventDefault(), !q && Oe && ir(g.key));
|
|
1151
|
-
const Te =
|
|
1151
|
+
const Te = ee.current;
|
|
1152
1152
|
if (g.target !== Te || !to.includes(g.key)) return;
|
|
1153
1153
|
g.preventDefault();
|
|
1154
|
-
const le = k().filter((
|
|
1154
|
+
const le = k().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
|
|
1155
1155
|
Vt.includes(g.key) && le.reverse(), Mo(le);
|
|
1156
1156
|
}),
|
|
1157
1157
|
onBlur: y(e.onBlur, (g) => {
|
|
@@ -1286,7 +1286,7 @@ var rn = c.forwardRef(
|
|
|
1286
1286
|
}
|
|
1287
1287
|
);
|
|
1288
1288
|
an.displayName = mo;
|
|
1289
|
-
var on = "MenuRadioGroup", [go, vo] =
|
|
1289
|
+
var on = "MenuRadioGroup", [go, vo] = Z(
|
|
1290
1290
|
on,
|
|
1291
1291
|
{ value: void 0, onValueChange: () => {
|
|
1292
1292
|
} }
|
|
@@ -1321,7 +1321,7 @@ var cn = "MenuRadioItem", un = c.forwardRef(
|
|
|
1321
1321
|
}
|
|
1322
1322
|
);
|
|
1323
1323
|
un.displayName = cn;
|
|
1324
|
-
var rt = "MenuItemIndicator", [ln, xo] =
|
|
1324
|
+
var rt = "MenuItemIndicator", [ln, xo] = Z(
|
|
1325
1325
|
rt,
|
|
1326
1326
|
{ checked: !1 }
|
|
1327
1327
|
), dn = c.forwardRef(
|
|
@@ -1366,7 +1366,7 @@ var wo = "MenuArrow", fn = c.forwardRef(
|
|
|
1366
1366
|
}
|
|
1367
1367
|
);
|
|
1368
1368
|
fn.displayName = wo;
|
|
1369
|
-
var at = "MenuSub", [bo, pn] =
|
|
1369
|
+
var at = "MenuSub", [bo, pn] = Z(at), mn = (e) => {
|
|
1370
1370
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = V(at, t), i = ye(t), [u, l] = c.useState(null), [v, p] = c.useState(null), d = Ue(o);
|
|
1371
1371
|
return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ a.jsx(It, { ...i, children: /* @__PURE__ */ a.jsx(
|
|
1372
1372
|
Wt,
|
|
@@ -1524,7 +1524,7 @@ function So(e, t, n) {
|
|
|
1524
1524
|
);
|
|
1525
1525
|
return l !== n ? l : void 0;
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function jo(e, t) {
|
|
1528
1528
|
const { x: n, y: r } = e;
|
|
1529
1529
|
let o = !1;
|
|
1530
1530
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -1533,10 +1533,10 @@ function Po(e, t) {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
return o;
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function Po(e, t) {
|
|
1537
1537
|
if (!t) return !1;
|
|
1538
1538
|
const n = { x: e.clientX, y: e.clientY };
|
|
1539
|
-
return
|
|
1539
|
+
return jo(n, t);
|
|
1540
1540
|
}
|
|
1541
1541
|
function pe(e) {
|
|
1542
1542
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
@@ -1544,7 +1544,7 @@ function pe(e) {
|
|
|
1544
1544
|
var Ro = Jt, Eo = Je, _o = en, No = tn, Do = nt, Io = nn, ko = Ie, Ao = an, Oo = sn, To = un, Fo = dn, Lo = hn, Ko = fn, $o = mn, Bo = gn, Qo = xn, st = "DropdownMenu", [qo, Hs] = _t(
|
|
1545
1545
|
st,
|
|
1546
1546
|
[Yt]
|
|
1547
|
-
),
|
|
1547
|
+
), j = Yt(), [Go, wn] = qo(st), bn = (e) => {
|
|
1548
1548
|
const {
|
|
1549
1549
|
__scopeDropdownMenu: t,
|
|
1550
1550
|
children: n,
|
|
@@ -1553,7 +1553,7 @@ var Ro = Jt, Eo = Je, _o = en, No = tn, Do = nt, Io = nn, ko = Ie, Ao = an, Oo =
|
|
|
1553
1553
|
defaultOpen: s,
|
|
1554
1554
|
onOpenChange: i,
|
|
1555
1555
|
modal: u = !0
|
|
1556
|
-
} = e, l =
|
|
1556
|
+
} = e, l = j(t), v = c.useRef(null), [p = !1, d] = kt({
|
|
1557
1557
|
prop: o,
|
|
1558
1558
|
defaultProp: s,
|
|
1559
1559
|
onChange: i
|
|
@@ -1576,7 +1576,7 @@ var Ro = Jt, Eo = Je, _o = en, No = tn, Do = nt, Io = nn, ko = Ie, Ao = an, Oo =
|
|
|
1576
1576
|
bn.displayName = st;
|
|
1577
1577
|
var Mn = "DropdownMenuTrigger", Cn = c.forwardRef(
|
|
1578
1578
|
(e, t) => {
|
|
1579
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = wn(Mn, n), i =
|
|
1579
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = wn(Mn, n), i = j(n);
|
|
1580
1580
|
return /* @__PURE__ */ a.jsx(Eo, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
|
|
1581
1581
|
ce.button,
|
|
1582
1582
|
{
|
|
@@ -1602,13 +1602,13 @@ var Mn = "DropdownMenuTrigger", Cn = c.forwardRef(
|
|
|
1602
1602
|
);
|
|
1603
1603
|
Cn.displayName = Mn;
|
|
1604
1604
|
var Ho = "DropdownMenuPortal", Sn = (e) => {
|
|
1605
|
-
const { __scopeDropdownMenu: t, ...n } = e, r =
|
|
1605
|
+
const { __scopeDropdownMenu: t, ...n } = e, r = j(t);
|
|
1606
1606
|
return /* @__PURE__ */ a.jsx(_o, { ...r, ...n });
|
|
1607
1607
|
};
|
|
1608
1608
|
Sn.displayName = Ho;
|
|
1609
|
-
var
|
|
1609
|
+
var jn = "DropdownMenuContent", Pn = c.forwardRef(
|
|
1610
1610
|
(e, t) => {
|
|
1611
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = wn(
|
|
1611
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = wn(jn, n), s = j(n), i = c.useRef(!1);
|
|
1612
1612
|
return /* @__PURE__ */ a.jsx(
|
|
1613
1613
|
No,
|
|
1614
1614
|
{
|
|
@@ -1637,74 +1637,74 @@ var Pn = "DropdownMenuContent", jn = c.forwardRef(
|
|
|
1637
1637
|
);
|
|
1638
1638
|
}
|
|
1639
1639
|
);
|
|
1640
|
-
|
|
1640
|
+
Pn.displayName = jn;
|
|
1641
1641
|
var Uo = "DropdownMenuGroup", zo = c.forwardRef(
|
|
1642
1642
|
(e, t) => {
|
|
1643
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1643
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1644
1644
|
return /* @__PURE__ */ a.jsx(Do, { ...o, ...r, ref: t });
|
|
1645
1645
|
}
|
|
1646
1646
|
);
|
|
1647
1647
|
zo.displayName = Uo;
|
|
1648
1648
|
var Vo = "DropdownMenuLabel", Rn = c.forwardRef(
|
|
1649
1649
|
(e, t) => {
|
|
1650
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1650
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1651
1651
|
return /* @__PURE__ */ a.jsx(Io, { ...o, ...r, ref: t });
|
|
1652
1652
|
}
|
|
1653
1653
|
);
|
|
1654
1654
|
Rn.displayName = Vo;
|
|
1655
1655
|
var Yo = "DropdownMenuItem", En = c.forwardRef(
|
|
1656
1656
|
(e, t) => {
|
|
1657
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1657
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1658
1658
|
return /* @__PURE__ */ a.jsx(ko, { ...o, ...r, ref: t });
|
|
1659
1659
|
}
|
|
1660
1660
|
);
|
|
1661
1661
|
En.displayName = Yo;
|
|
1662
1662
|
var Xo = "DropdownMenuCheckboxItem", _n = c.forwardRef((e, t) => {
|
|
1663
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1663
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1664
1664
|
return /* @__PURE__ */ a.jsx(Ao, { ...o, ...r, ref: t });
|
|
1665
1665
|
});
|
|
1666
1666
|
_n.displayName = Xo;
|
|
1667
1667
|
var Wo = "DropdownMenuRadioGroup", Jo = c.forwardRef((e, t) => {
|
|
1668
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1668
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1669
1669
|
return /* @__PURE__ */ a.jsx(Oo, { ...o, ...r, ref: t });
|
|
1670
1670
|
});
|
|
1671
1671
|
Jo.displayName = Wo;
|
|
1672
1672
|
var Zo = "DropdownMenuRadioItem", Nn = c.forwardRef((e, t) => {
|
|
1673
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1673
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1674
1674
|
return /* @__PURE__ */ a.jsx(To, { ...o, ...r, ref: t });
|
|
1675
1675
|
});
|
|
1676
1676
|
Nn.displayName = Zo;
|
|
1677
1677
|
var es = "DropdownMenuItemIndicator", Dn = c.forwardRef((e, t) => {
|
|
1678
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1678
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1679
1679
|
return /* @__PURE__ */ a.jsx(Fo, { ...o, ...r, ref: t });
|
|
1680
1680
|
});
|
|
1681
1681
|
Dn.displayName = es;
|
|
1682
1682
|
var ts = "DropdownMenuSeparator", In = c.forwardRef((e, t) => {
|
|
1683
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1683
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1684
1684
|
return /* @__PURE__ */ a.jsx(Lo, { ...o, ...r, ref: t });
|
|
1685
1685
|
});
|
|
1686
1686
|
In.displayName = ts;
|
|
1687
1687
|
var ns = "DropdownMenuArrow", rs = c.forwardRef(
|
|
1688
1688
|
(e, t) => {
|
|
1689
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1689
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1690
1690
|
return /* @__PURE__ */ a.jsx(Ko, { ...o, ...r, ref: t });
|
|
1691
1691
|
}
|
|
1692
1692
|
);
|
|
1693
1693
|
rs.displayName = ns;
|
|
1694
1694
|
var as = (e) => {
|
|
1695
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i =
|
|
1695
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = j(t), [u = !1, l] = kt({
|
|
1696
1696
|
prop: r,
|
|
1697
1697
|
defaultProp: s,
|
|
1698
1698
|
onChange: o
|
|
1699
1699
|
});
|
|
1700
1700
|
return /* @__PURE__ */ a.jsx($o, { ...i, open: u, onOpenChange: l, children: n });
|
|
1701
1701
|
}, os = "DropdownMenuSubTrigger", kn = c.forwardRef((e, t) => {
|
|
1702
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1702
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1703
1703
|
return /* @__PURE__ */ a.jsx(Bo, { ...o, ...r, ref: t });
|
|
1704
1704
|
});
|
|
1705
1705
|
kn.displayName = os;
|
|
1706
1706
|
var ss = "DropdownMenuSubContent", An = c.forwardRef((e, t) => {
|
|
1707
|
-
const { __scopeDropdownMenu: n, ...r } = e, o =
|
|
1707
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = j(n);
|
|
1708
1708
|
return /* @__PURE__ */ a.jsx(
|
|
1709
1709
|
Qo,
|
|
1710
1710
|
{
|
|
@@ -1723,7 +1723,7 @@ var ss = "DropdownMenuSubContent", An = c.forwardRef((e, t) => {
|
|
|
1723
1723
|
);
|
|
1724
1724
|
});
|
|
1725
1725
|
An.displayName = ss;
|
|
1726
|
-
var is = bn, cs = Cn, On = Sn, Tn =
|
|
1726
|
+
var is = bn, cs = Cn, On = Sn, Tn = Pn, Fn = Rn, Ln = En, Kn = _n, $n = Nn, Bn = Dn, Qn = In, us = as, qn = kn, Gn = An;
|
|
1727
1727
|
const ls = is, ds = cs, hs = On, fs = us, Hn = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
1728
1728
|
qn,
|
|
1729
1729
|
{
|
|
@@ -1871,8 +1871,8 @@ const gs = () => {
|
|
|
1871
1871
|
] }) : null;
|
|
1872
1872
|
}, vs = () => {
|
|
1873
1873
|
const { topNavigation: e } = Ne();
|
|
1874
|
-
return e.length <= 1 ?
|
|
1875
|
-
|
|
1874
|
+
return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__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(
|
|
1875
|
+
Pe,
|
|
1876
1876
|
{
|
|
1877
1877
|
className: ({ isActive: n }) => Tr(
|
|
1878
1878
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
@@ -1920,7 +1920,7 @@ const gs = () => {
|
|
|
1920
1920
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1921
1921
|
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(gs, {}) }),
|
|
1922
1922
|
/* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
|
|
1923
|
-
/* @__PURE__ */ a.jsx(
|
|
1923
|
+
/* @__PURE__ */ a.jsx(J, { name: "head-navigation-start" }),
|
|
1924
1924
|
i && !o ? /* @__PURE__ */ a.jsx($e, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ls, { modal: !1, children: [
|
|
1925
1925
|
/* @__PURE__ */ a.jsx(ds, { asChild: !0, children: /* @__PURE__ */ a.jsx($e, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
|
|
1926
1926
|
/* @__PURE__ */ a.jsxs(zn, { className: "w-56", children: [
|
|
@@ -1939,7 +1939,7 @@ const gs = () => {
|
|
|
1939
1939
|
children: /* @__PURE__ */ a.jsx(d, { size: 18 })
|
|
1940
1940
|
}
|
|
1941
1941
|
),
|
|
1942
|
-
/* @__PURE__ */ a.jsx(
|
|
1942
|
+
/* @__PURE__ */ a.jsx(J, { name: "head-navigation-end" })
|
|
1943
1943
|
] })
|
|
1944
1944
|
] })
|
|
1945
1945
|
] }),
|
|
@@ -2044,7 +2044,7 @@ const Ss = ({
|
|
|
2044
2044
|
),
|
|
2045
2045
|
asChild: !0,
|
|
2046
2046
|
disabled: !i,
|
|
2047
|
-
children: ((h = e.link) == null ? void 0 : h.type) === "doc" ? /* @__PURE__ */ a.jsx(
|
|
2047
|
+
children: ((h = e.link) == null ? void 0 : h.type) === "doc" ? /* @__PURE__ */ a.jsx(Pe, { to: Xe(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: m }) => /* @__PURE__ */ a.jsxs(
|
|
2048
2048
|
"div",
|
|
2049
2049
|
{
|
|
2050
2050
|
className: b(
|
|
@@ -2110,7 +2110,7 @@ const Ss = ({
|
|
|
2110
2110
|
return /* @__PURE__ */ a.jsx(Ss, { category: e, level: t });
|
|
2111
2111
|
case "doc":
|
|
2112
2112
|
return /* @__PURE__ */ a.jsx(
|
|
2113
|
-
|
|
2113
|
+
Pe,
|
|
2114
2114
|
{
|
|
2115
2115
|
className: ({ isActive: s }) => he({ isActive: s, isTopLevel: t === 0 }),
|
|
2116
2116
|
to: Xe(n == null ? void 0 : n.id, e.id),
|
|
@@ -2157,7 +2157,7 @@ const Ss = ({
|
|
|
2157
2157
|
]
|
|
2158
2158
|
}
|
|
2159
2159
|
) : /* @__PURE__ */ a.jsx(
|
|
2160
|
-
|
|
2160
|
+
Pe,
|
|
2161
2161
|
{
|
|
2162
2162
|
className: b("flex gap-2.5 justify-between", he()),
|
|
2163
2163
|
to: e.href,
|
|
@@ -2168,17 +2168,17 @@ const Ss = ({
|
|
|
2168
2168
|
}
|
|
2169
2169
|
);
|
|
2170
2170
|
}
|
|
2171
|
-
},
|
|
2171
|
+
}, js = (e, t = { block: "center" }) => {
|
|
2172
2172
|
if (!e) return;
|
|
2173
2173
|
const n = e.getBoundingClientRect();
|
|
2174
2174
|
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
2175
|
-
},
|
|
2175
|
+
}, Ps = () => {
|
|
2176
2176
|
const e = He(), { setActiveAnchor: t } = ze();
|
|
2177
2177
|
z(() => {
|
|
2178
2178
|
if (!e.hash) return;
|
|
2179
2179
|
const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
2180
2180
|
const o = document.getElementById(n), s = document.querySelector(`[${tr}="${n}"]`);
|
|
2181
|
-
return o ? (o.scrollIntoView(),
|
|
2181
|
+
return o ? (o.scrollIntoView(), js(s), requestIdleCallback(() => t(n)), !0) : !1;
|
|
2182
2182
|
};
|
|
2183
2183
|
if (!r()) {
|
|
2184
2184
|
const o = new MutationObserver((s, i) => {
|
|
@@ -2215,15 +2215,15 @@ const Es = () => {
|
|
|
2215
2215
|
ref: e,
|
|
2216
2216
|
pushMainContent: t.data.items.length > 0,
|
|
2217
2217
|
children: [
|
|
2218
|
-
/* @__PURE__ */ a.jsx(
|
|
2218
|
+
/* @__PURE__ */ a.jsx(J, { name: "zudoku-before-navigation" }),
|
|
2219
2219
|
t.data.items.map((n) => /* @__PURE__ */ a.jsx(nr, { item: n }, n.label)),
|
|
2220
|
-
/* @__PURE__ */ a.jsx(
|
|
2220
|
+
/* @__PURE__ */ a.jsx(J, { name: "zudoku-after-navigation" })
|
|
2221
2221
|
]
|
|
2222
2222
|
}
|
|
2223
2223
|
);
|
|
2224
2224
|
}, _s = ({ children: e }) => {
|
|
2225
2225
|
const t = He(), { setActiveAnchor: n } = ze(), { meta: r, authentication: o } = Ne();
|
|
2226
|
-
|
|
2226
|
+
Ps(), Rs();
|
|
2227
2227
|
const s = Ve(t.pathname);
|
|
2228
2228
|
return z(() => {
|
|
2229
2229
|
o != null && o.pageLoad && o.pageLoad();
|
|
@@ -2235,6 +2235,7 @@ const Es = () => {
|
|
|
2235
2235
|
(r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
|
|
2236
2236
|
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
|
|
2237
2237
|
] }),
|
|
2238
|
+
/* @__PURE__ */ a.jsx(J, { name: "layout-before-head" }),
|
|
2238
2239
|
/* @__PURE__ */ a.jsx(Jn, {}),
|
|
2239
2240
|
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsxs(
|
|
2240
2241
|
Ft,
|
|
@@ -2253,9 +2254,9 @@ const Es = () => {
|
|
|
2253
2254
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
2254
2255
|
),
|
|
2255
2256
|
children: [
|
|
2256
|
-
/* @__PURE__ */ a.jsx(
|
|
2257
|
+
/* @__PURE__ */ a.jsx(J, { name: "zudoku-before-content" }),
|
|
2257
2258
|
e ?? /* @__PURE__ */ a.jsx(Rt, {}),
|
|
2258
|
-
/* @__PURE__ */ a.jsx(
|
|
2259
|
+
/* @__PURE__ */ a.jsx(J, { name: "zudoku-after-content" })
|
|
2259
2260
|
]
|
|
2260
2261
|
}
|
|
2261
2262
|
)
|