zudoku 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/authentication/providers/openid.js +2 -1
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/Header.js +13 -13
- package/dist/lib/components/Header.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/TopNavigation.js +2 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/lib/{OperationList-CqLL5P5l.js → OperationList-c6V_vcgz.js} +787 -802
- package/lib/OperationList-c6V_vcgz.js.map +1 -0
- package/lib/{index-DzRORsY1.js → index-DkwDHnit.js} +4 -3
- package/lib/index-DkwDHnit.js.map +1 -0
- package/lib/ui/Card.js +7 -7
- package/lib/ui/Card.js.map +1 -1
- package/lib/zudoku.auth-openid.js +176 -175
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +140 -140
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/app/main.css +50 -37
- package/src/lib/authentication/providers/openid.tsx +6 -1
- package/src/lib/components/Header.tsx +9 -5
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/TopNavigation.tsx +2 -2
- package/src/lib/components/navigation/SidebarWrapper.tsx +2 -2
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +10 -7
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -3
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
- package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
- package/src/lib/plugins/openapi/playground/Headers.tsx +1 -0
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/ui/Card.tsx +1 -1
- package/lib/OperationList-CqLL5P5l.js.map +0 -1
- package/lib/index-DzRORsY1.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ut = Object.defineProperty;
|
|
2
2
|
var ve = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var ht = (e, t, s) => t in e ?
|
|
5
|
+
var ht = (e, t, s) => t in e ? ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
6
6
|
var k = (e, t, s) => ht(e, typeof t != "symbol" ? t + "" : t, s), je = (e, t, s) => t.has(e) || ve("Cannot " + s);
|
|
7
7
|
var c = (e, t, s) => (je(e, t, "read from private field"), s ? s.call(e) : t.get(e)), C = (e, t, s) => t.has(e) ? ve("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), b = (e, t, s, n) => (je(e, t, "write to private field"), n ? n.call(e, s) : t.set(e, s), s);
|
|
8
8
|
var Y = (e, t, s, n) => ({
|
|
@@ -13,8 +13,8 @@ var Y = (e, t, s, n) => ({
|
|
|
13
13
|
return c(e, t, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as Fe, H as
|
|
17
|
-
import { R as ft, S as gt, e as mt, f as te, b as pt, u as
|
|
16
|
+
import { a as Fe, H as de } from "./index.esm-BSV1C092.js";
|
|
17
|
+
import { R as ft, S as gt, e as mt, f as te, b as pt, u as ue, g as he, L as fe, O as Be } from "./chunk-D52XG6IA-Dl7HLe6j.js";
|
|
18
18
|
import { M as xt, u as U } from "./hook-CHq7pFyz.js";
|
|
19
19
|
import { E as ze, S as D, a as yt, R as bt } from "./SlotletProvider-pfc9oejW.js";
|
|
20
20
|
import { j as r } from "./jsx-runtime-Dx-03ztt.js";
|
|
@@ -35,7 +35,7 @@ import { c as Jt, a as Gt } from "./index-CPNSgwSb.js";
|
|
|
35
35
|
import { A as es, M as ts, u as ss } from "./AnchorLink-DFZZbmvr.js";
|
|
36
36
|
import * as re from "@radix-ui/react-collapsible";
|
|
37
37
|
import { B as le } from "./Button-DeAoTouo.js";
|
|
38
|
-
import { DropdownMenu as rs, DropdownMenuTrigger as ns, DropdownMenuContent as as, DropdownMenuLabel as is, DropdownMenuSeparator as ne, DropdownMenuSub as os, DropdownMenuSubTrigger as ls, DropdownMenuPortal as cs, DropdownMenuSubContent as
|
|
38
|
+
import { DropdownMenu as rs, DropdownMenuTrigger as ns, DropdownMenuContent as as, DropdownMenuLabel as is, DropdownMenuSeparator as ne, DropdownMenuSub as os, DropdownMenuSubTrigger as ls, DropdownMenuPortal as cs, DropdownMenuSubContent as ds, DropdownMenuItem as us } from "./ui/DropdownMenu.js";
|
|
39
39
|
import { VisuallyHidden as Ge } from "@radix-ui/react-visually-hidden";
|
|
40
40
|
import { z as hs, J as fs } from "./SyntaxHighlight-Bz-lOJtH.js";
|
|
41
41
|
import { Z as gs } from "./invariant-Caa8-XvF.js";
|
|
@@ -194,7 +194,7 @@ function Oe(e) {
|
|
|
194
194
|
onFetch: (t, s) => {
|
|
195
195
|
var f, g, h, p, x;
|
|
196
196
|
const n = t.options, a = (h = (g = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : h.direction, i = ((p = t.state.data) == null ? void 0 : p.pages) || [], o = ((x = t.state.data) == null ? void 0 : x.pageParams) || [];
|
|
197
|
-
let
|
|
197
|
+
let d = { pages: [], pageParams: [] }, u = 0;
|
|
198
198
|
const l = async () => {
|
|
199
199
|
let m = !1;
|
|
200
200
|
const N = (v) => {
|
|
@@ -216,11 +216,11 @@ function Oe(e) {
|
|
|
216
216
|
meta: t.options.meta
|
|
217
217
|
};
|
|
218
218
|
N(X);
|
|
219
|
-
const
|
|
219
|
+
const dt = await _(
|
|
220
220
|
X
|
|
221
221
|
), { maxPages: ye } = t.options, be = K ? St : Dt;
|
|
222
222
|
return {
|
|
223
|
-
pages: be(v.pages,
|
|
223
|
+
pages: be(v.pages, dt, ye),
|
|
224
224
|
pageParams: be(v.pageParams, P, ye)
|
|
225
225
|
};
|
|
226
226
|
};
|
|
@@ -229,17 +229,17 @@ function Oe(e) {
|
|
|
229
229
|
pages: i,
|
|
230
230
|
pageParams: o
|
|
231
231
|
}, X = P(n, K);
|
|
232
|
-
|
|
232
|
+
d = await L(K, X, v);
|
|
233
233
|
} else {
|
|
234
234
|
const v = e ?? i.length;
|
|
235
235
|
do {
|
|
236
|
-
const P =
|
|
237
|
-
if (
|
|
236
|
+
const P = u === 0 ? o[0] ?? n.initialPageParam : Me(n, d);
|
|
237
|
+
if (u > 0 && P == null)
|
|
238
238
|
break;
|
|
239
|
-
|
|
240
|
-
} while (
|
|
239
|
+
d = await L(d, P), u++;
|
|
240
|
+
} while (u < v);
|
|
241
241
|
}
|
|
242
|
-
return
|
|
242
|
+
return d;
|
|
243
243
|
};
|
|
244
244
|
t.options.persister ? t.fetchFn = () => {
|
|
245
245
|
var m, N;
|
|
@@ -479,10 +479,10 @@ function bs(e) {
|
|
|
479
479
|
return e;
|
|
480
480
|
}
|
|
481
481
|
function Ae(e, t, s) {
|
|
482
|
-
var
|
|
482
|
+
var u, l;
|
|
483
483
|
if (typeof t != "object" || t === null)
|
|
484
484
|
return;
|
|
485
|
-
const n = e.getMutationCache(), a = e.getQueryCache(), i = ((
|
|
485
|
+
const n = e.getMutationCache(), a = e.getQueryCache(), i = ((u = s == null ? void 0 : s.defaultOptions) == null ? void 0 : u.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? bs, o = t.mutations || [], d = t.queries || [];
|
|
486
486
|
o.forEach(({ state: f, ...g }) => {
|
|
487
487
|
var h, p;
|
|
488
488
|
n.build(
|
|
@@ -494,7 +494,7 @@ function Ae(e, t, s) {
|
|
|
494
494
|
},
|
|
495
495
|
f
|
|
496
496
|
);
|
|
497
|
-
}),
|
|
497
|
+
}), d.forEach(({ queryKey: f, state: g, queryHash: h, meta: p, promise: x }) => {
|
|
498
498
|
var _, L;
|
|
499
499
|
let m = a.get(h);
|
|
500
500
|
const N = g.data === void 0 ? g.data : i(g.data);
|
|
@@ -536,14 +536,14 @@ var vs = ({
|
|
|
536
536
|
state: s,
|
|
537
537
|
queryClient: n
|
|
538
538
|
}) => {
|
|
539
|
-
const a = Et(n), [i, o] = $.useState(),
|
|
540
|
-
return
|
|
539
|
+
const a = Et(n), [i, o] = $.useState(), d = $.useRef(t);
|
|
540
|
+
return d.current = t, $.useMemo(() => {
|
|
541
541
|
if (s) {
|
|
542
542
|
if (typeof s != "object")
|
|
543
543
|
return;
|
|
544
|
-
const
|
|
544
|
+
const u = a.getQueryCache(), l = s.queries || [], f = [], g = [];
|
|
545
545
|
for (const h of l) {
|
|
546
|
-
const p =
|
|
546
|
+
const p = u.get(h.queryHash);
|
|
547
547
|
if (!p)
|
|
548
548
|
f.push(h);
|
|
549
549
|
else {
|
|
@@ -553,12 +553,12 @@ var vs = ({
|
|
|
553
553
|
x && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && g.push(h);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
f.length > 0 && Ae(a, { queries: f },
|
|
556
|
+
f.length > 0 && Ae(a, { queries: f }, d.current), g.length > 0 && o(
|
|
557
557
|
(h) => h ? [...h, ...g] : g
|
|
558
558
|
);
|
|
559
559
|
}
|
|
560
560
|
}, [a, i, s]), $.useEffect(() => {
|
|
561
|
-
i && (Ae(a, { queries: i },
|
|
561
|
+
i && (Ae(a, { queries: i }, d.current), o(void 0));
|
|
562
562
|
}, [a, i]), e;
|
|
563
563
|
};
|
|
564
564
|
function js({ error: e }) {
|
|
@@ -604,28 +604,28 @@ function Ss() {
|
|
|
604
604
|
ssr: !0
|
|
605
605
|
};
|
|
606
606
|
function i() {
|
|
607
|
-
const [
|
|
607
|
+
const [d, u] = n.useState(!0);
|
|
608
608
|
return n.useEffect(() => {
|
|
609
|
-
|
|
610
|
-
}, []),
|
|
609
|
+
u(!1);
|
|
610
|
+
}, []), d;
|
|
611
611
|
}
|
|
612
|
-
function o(
|
|
613
|
-
|
|
614
|
-
const l = i() &&
|
|
612
|
+
function o(d, u) {
|
|
613
|
+
u = Object.assign({}, a, u);
|
|
614
|
+
const l = i() && u.ssr, f = l && d ? "DISPLAY" : "IDLE", [g, h] = n.useState(f), p = n.useRef(null);
|
|
615
615
|
return n.useEffect(() => {
|
|
616
|
-
if (
|
|
616
|
+
if (d && (g === "IDLE" || l)) {
|
|
617
617
|
clearTimeout(p.current);
|
|
618
|
-
const x = l ? 0 :
|
|
618
|
+
const x = l ? 0 : u.delay;
|
|
619
619
|
p.current = setTimeout(() => {
|
|
620
|
-
if (!
|
|
620
|
+
if (!d)
|
|
621
621
|
return h("IDLE");
|
|
622
622
|
p.current = setTimeout(() => {
|
|
623
623
|
h("EXPIRE");
|
|
624
|
-
},
|
|
624
|
+
}, u.minDuration), h("DISPLAY");
|
|
625
625
|
}, x), l || h("DELAY");
|
|
626
626
|
}
|
|
627
|
-
!
|
|
628
|
-
}, [
|
|
627
|
+
!d && g !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
|
|
628
|
+
}, [d, g, u.delay, u.minDuration, l]), n.useEffect(() => () => clearTimeout(p.current), []), g === "DISPLAY" || g === "EXPIRE";
|
|
629
629
|
}
|
|
630
630
|
s.defaultOptions = a, s.useSpinDelay = o;
|
|
631
631
|
});
|
|
@@ -659,7 +659,7 @@ const Os = {
|
|
|
659
659
|
onRequestClose: t
|
|
660
660
|
}) => {
|
|
661
661
|
var h, p;
|
|
662
|
-
const s = It(e), [n, a] = Q(!1), i = e.collapsible ?? !0, o = e.collapsed ?? !0,
|
|
662
|
+
const s = It(e), [n, a] = Q(!1), i = e.collapsible ?? !0, o = e.collapsed ?? !0, d = !!(!i || !o || s), [u, l] = Q(d), f = mt(((h = e.link) == null ? void 0 : h.id) ?? "");
|
|
663
663
|
R(() => {
|
|
664
664
|
s && l(!0);
|
|
665
665
|
}, [s]);
|
|
@@ -686,8 +686,8 @@ const Os = {
|
|
|
686
686
|
re.Root,
|
|
687
687
|
{
|
|
688
688
|
className: "flex flex-col",
|
|
689
|
-
defaultOpen:
|
|
690
|
-
open:
|
|
689
|
+
defaultOpen: d,
|
|
690
|
+
open: u,
|
|
691
691
|
onOpenChange: () => l(!0),
|
|
692
692
|
children: [
|
|
693
693
|
/* @__PURE__ */ r.jsx(re.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ r.jsxs(
|
|
@@ -715,7 +715,7 @@ const Os = {
|
|
|
715
715
|
to: q(e.link.id),
|
|
716
716
|
className: "flex-1",
|
|
717
717
|
onClick: () => {
|
|
718
|
-
f && !
|
|
718
|
+
f && !u && l(!0);
|
|
719
719
|
},
|
|
720
720
|
children: /* @__PURE__ */ r.jsxs(
|
|
721
721
|
"div",
|
|
@@ -855,7 +855,7 @@ const Os = {
|
|
|
855
855
|
const s = e.getBoundingClientRect();
|
|
856
856
|
s.top >= 0 && s.left >= 0 && s.bottom <= (window.innerHeight || document.documentElement.clientHeight) && s.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
857
857
|
}, Es = () => {
|
|
858
|
-
const e =
|
|
858
|
+
const e = ue(), { setActiveAnchor: t } = ge();
|
|
859
859
|
R(() => {
|
|
860
860
|
if (!e.hash) return;
|
|
861
861
|
const s = decodeURIComponent(e.hash.split("/")[0].slice(1)), n = () => {
|
|
@@ -870,7 +870,7 @@ const Os = {
|
|
|
870
870
|
}
|
|
871
871
|
}, [e.hash, t]);
|
|
872
872
|
}, Is = () => {
|
|
873
|
-
const e =
|
|
873
|
+
const e = ue(), t = me(e.pathname);
|
|
874
874
|
R(() => {
|
|
875
875
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
876
876
|
}, [e.pathname]);
|
|
@@ -925,8 +925,8 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
925
925
|
R(() => {
|
|
926
926
|
if (s)
|
|
927
927
|
return;
|
|
928
|
-
function o(
|
|
929
|
-
|
|
928
|
+
function o(d) {
|
|
929
|
+
d.key === "k" && (d.metaKey || d.ctrlKey) && (d.preventDefault(), n(!0));
|
|
930
930
|
}
|
|
931
931
|
return window.addEventListener("keydown", o), () => {
|
|
932
932
|
window.removeEventListener("keydown", o);
|
|
@@ -968,17 +968,17 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
968
968
|
) });
|
|
969
969
|
}, rt = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Ks = () => {
|
|
970
970
|
const { topNavigation: e } = T(), { isAuthenticated: t } = U();
|
|
971
|
-
return e.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(pe, { children: /* @__PURE__ */ r.jsx("nav", { className: "hidden lg:block
|
|
971
|
+
return e.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(pe, { children: /* @__PURE__ */ r.jsx("nav", { className: "hidden lg:block text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(rt(t)).map((s) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(nt, { ...s }) }, s.id)) }) }) });
|
|
972
972
|
}, nt = ({
|
|
973
973
|
id: e,
|
|
974
974
|
label: t,
|
|
975
975
|
default: s
|
|
976
976
|
}) => {
|
|
977
977
|
var l;
|
|
978
|
-
const { sidebars: n } = T(), a = n[e], i = Ze(), o = !!he().location,
|
|
978
|
+
const { sidebars: n } = T(), a = n[e], i = Ze(), o = !!he().location, d = ((l = i.topNavItem) == null ? void 0 : l.id) === e && !o, u = s ?? (a ? Qt(a, (f) => {
|
|
979
979
|
if (f.type === "doc") return q(f.id);
|
|
980
980
|
}) : q(e));
|
|
981
|
-
if (!
|
|
981
|
+
if (!u)
|
|
982
982
|
throw new gs("Page not found.", {
|
|
983
983
|
developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
984
984
|
});
|
|
@@ -989,10 +989,10 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
989
989
|
te,
|
|
990
990
|
{
|
|
991
991
|
className: ({ isPending: f }) => Gt(
|
|
992
|
-
"block lg:py-3.5 font-medium -mb-px
|
|
993
|
-
|
|
992
|
+
"block lg:py-3.5 font-medium -mb-px",
|
|
993
|
+
d || f ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
994
994
|
),
|
|
995
|
-
to:
|
|
995
|
+
to: u,
|
|
996
996
|
children: t
|
|
997
997
|
}
|
|
998
998
|
)
|
|
@@ -1027,97 +1027,97 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1027
1027
|
);
|
|
1028
1028
|
}, ee = ({ item: e }) => e.children ? /* @__PURE__ */ r.jsxs(os, { children: [
|
|
1029
1029
|
/* @__PURE__ */ r.jsx(ls, { children: e.label }),
|
|
1030
|
-
/* @__PURE__ */ r.jsx(cs, { children: /* @__PURE__ */ r.jsx(
|
|
1030
|
+
/* @__PURE__ */ r.jsx(cs, { children: /* @__PURE__ */ r.jsx(ds, { children: e.children.map((t, s) => (
|
|
1031
1031
|
// eslint-disable-next-line react/no-array-index-key
|
|
1032
1032
|
/* @__PURE__ */ r.jsx(ee, { item: t }, s)
|
|
1033
1033
|
)) }) })
|
|
1034
|
-
] }, e.label) : /* @__PURE__ */ r.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(
|
|
1034
|
+
] }, e.label) : /* @__PURE__ */ r.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(us, { className: "flex gap-2", children: [
|
|
1035
1035
|
e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
1036
1036
|
e.label
|
|
1037
1037
|
] }, e.label) }), at = Ue(function() {
|
|
1038
|
-
const t = U(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = U(), i = T(), { page: o, plugins:
|
|
1038
|
+
const t = U(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = U(), i = T(), { page: o, plugins: d } = i, u = d.filter((l) => Ts(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
|
|
1039
1039
|
return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1040
1040
|
/* @__PURE__ */ r.jsx(Ls, {}),
|
|
1041
|
-
/* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1042
|
-
/* @__PURE__ */ r.
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
/* @__PURE__ */ r.
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
/* @__PURE__ */ r.
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
{
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
/* @__PURE__ */ r.jsxs(
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" })
|
|
1106
|
-
] })
|
|
1041
|
+
/* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl border-l border-r mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-12 h-[--top-header-height]", children: [
|
|
1042
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(fe, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1043
|
+
(o == null ? void 0 : o.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1044
|
+
/* @__PURE__ */ r.jsx(
|
|
1045
|
+
"img",
|
|
1046
|
+
{
|
|
1047
|
+
src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : q(
|
|
1048
|
+
"/",
|
|
1049
|
+
o.logo.src.light
|
|
1050
|
+
),
|
|
1051
|
+
alt: o.logo.alt ?? o.pageTitle,
|
|
1052
|
+
style: { width: o.logo.width },
|
|
1053
|
+
className: "h-10 dark:hidden",
|
|
1054
|
+
loading: "lazy"
|
|
1055
|
+
}
|
|
1056
|
+
),
|
|
1057
|
+
/* @__PURE__ */ r.jsx(
|
|
1058
|
+
"img",
|
|
1059
|
+
{
|
|
1060
|
+
src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : q(
|
|
1061
|
+
"/",
|
|
1062
|
+
o.logo.src.dark
|
|
1063
|
+
),
|
|
1064
|
+
alt: o.logo.alt ?? o.pageTitle,
|
|
1065
|
+
style: { width: o.logo.width },
|
|
1066
|
+
className: "h-10 hidden dark:block",
|
|
1067
|
+
loading: "lazy"
|
|
1068
|
+
}
|
|
1069
|
+
)
|
|
1070
|
+
] }),
|
|
1071
|
+
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
|
|
1072
|
+
] }) }) }),
|
|
1073
|
+
/* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1074
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ r.jsx(tt, {}) }),
|
|
1075
|
+
/* @__PURE__ */ r.jsx($s, {}),
|
|
1076
|
+
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1077
|
+
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-start" }),
|
|
1078
|
+
a && /* @__PURE__ */ r.jsx(
|
|
1079
|
+
xe,
|
|
1080
|
+
{
|
|
1081
|
+
fallback: /* @__PURE__ */ r.jsx(Qs, { className: "rounded h-5 w-24 mr-4" }),
|
|
1082
|
+
children: s ? Object.values(u).length > 0 && /* @__PURE__ */ r.jsxs(rs, { modal: !1, children: [
|
|
1083
|
+
/* @__PURE__ */ r.jsx(ns, { asChild: !0, children: /* @__PURE__ */ r.jsx(le, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
1084
|
+
/* @__PURE__ */ r.jsxs(as, { className: "w-56", children: [
|
|
1085
|
+
/* @__PURE__ */ r.jsxs(is, { children: [
|
|
1086
|
+
n != null && n.name ? `${n.name}` : "My Account",
|
|
1087
|
+
(n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
1088
|
+
] }),
|
|
1089
|
+
u.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1090
|
+
u.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label)),
|
|
1091
|
+
u.filter(
|
|
1092
|
+
(l) => !l.category || l.category === "middle"
|
|
1093
|
+
).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1094
|
+
u.filter(
|
|
1095
|
+
(l) => !l.category || l.category === "middle"
|
|
1096
|
+
).map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label)),
|
|
1097
|
+
u.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1098
|
+
u.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label))
|
|
1099
|
+
] })
|
|
1100
|
+
] }) : /* @__PURE__ */ r.jsx(le, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
1101
|
+
}
|
|
1102
|
+
),
|
|
1103
|
+
/* @__PURE__ */ r.jsx(st, {}),
|
|
1104
|
+
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" })
|
|
1107
1105
|
] })
|
|
1108
|
-
] })
|
|
1106
|
+
] })
|
|
1107
|
+
] }) }),
|
|
1108
|
+
/* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto border-l border-r", children: [
|
|
1109
1109
|
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-before" }),
|
|
1110
1110
|
/* @__PURE__ */ r.jsx(Ks, {}),
|
|
1111
1111
|
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-after" })
|
|
1112
|
-
] })
|
|
1112
|
+
] }) })
|
|
1113
1113
|
] });
|
|
1114
1114
|
}), it = Bt(({ children: e, className: t, pushMainContent: s }, n) => /* @__PURE__ */ r.jsx(
|
|
1115
1115
|
"nav",
|
|
1116
1116
|
{
|
|
1117
1117
|
"data-navigation": String(s),
|
|
1118
1118
|
className: O(
|
|
1119
|
-
"scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
|
|
1120
|
-
"-mx-[--padding-nav-item] pb-20
|
|
1119
|
+
"scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-10",
|
|
1120
|
+
"-mx-[--padding-nav-item] pb-20 pt-[--padding-content-top]",
|
|
1121
1121
|
"w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
1122
1122
|
t
|
|
1123
1123
|
),
|
|
@@ -1163,7 +1163,7 @@ const Zs = ({
|
|
|
1163
1163
|
)
|
|
1164
1164
|
] });
|
|
1165
1165
|
}, Qe = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(He, {}) }), Vs = ({ children: e }) => {
|
|
1166
|
-
const t =
|
|
1166
|
+
const t = ue(), { setActiveAnchor: s } = ge(), { meta: n, authentication: a } = T();
|
|
1167
1167
|
Es(), Is();
|
|
1168
1168
|
const i = me(t.pathname);
|
|
1169
1169
|
R(() => {
|
|
@@ -1172,24 +1172,24 @@ const Zs = ({
|
|
|
1172
1172
|
}, [a]), R(() => {
|
|
1173
1173
|
t.pathname !== i.current && s(""), i.current = t.pathname;
|
|
1174
1174
|
}, [t.pathname, s]);
|
|
1175
|
-
const o = !!he().location,
|
|
1175
|
+
const o = !!he().location, d = Ds.useSpinDelay(o, {
|
|
1176
1176
|
delay: 300,
|
|
1177
1177
|
minDuration: 500
|
|
1178
|
-
}), [
|
|
1178
|
+
}), [u, l] = Q(!1);
|
|
1179
1179
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1180
1180
|
!1,
|
|
1181
|
-
/* @__PURE__ */ r.jsxs(
|
|
1181
|
+
/* @__PURE__ */ r.jsxs(de, { titleTemplate: n == null ? void 0 : n.title, children: [
|
|
1182
1182
|
(n == null ? void 0 : n.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: n.description }),
|
|
1183
1183
|
(n == null ? void 0 : n.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: n.favicon })
|
|
1184
1184
|
] }),
|
|
1185
1185
|
/* @__PURE__ */ r.jsx(D, { name: "layout-before-head" }),
|
|
1186
1186
|
/* @__PURE__ */ r.jsx(at, {}),
|
|
1187
1187
|
/* @__PURE__ */ r.jsx(D, { name: "layout-after-head" }),
|
|
1188
|
-
/* @__PURE__ */ r.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12", children:
|
|
1188
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: d ? /* @__PURE__ */ r.jsx(Qe, {}) : /* @__PURE__ */ r.jsx(pe, { fallback: /* @__PURE__ */ r.jsx(Qe, {}), children: /* @__PURE__ */ r.jsxs(
|
|
1189
1189
|
_e,
|
|
1190
1190
|
{
|
|
1191
1191
|
direction: "left",
|
|
1192
|
-
open:
|
|
1192
|
+
open: u,
|
|
1193
1193
|
onOpenChange: (f) => l(f),
|
|
1194
1194
|
children: [
|
|
1195
1195
|
/* @__PURE__ */ r.jsx(Zs, { onRequestClose: () => l(!1) }),
|
|
@@ -1283,18 +1283,18 @@ class Ws extends zt {
|
|
|
1283
1283
|
didCatch: i,
|
|
1284
1284
|
error: o
|
|
1285
1285
|
} = this.state;
|
|
1286
|
-
let
|
|
1286
|
+
let d = t;
|
|
1287
1287
|
if (i) {
|
|
1288
|
-
const
|
|
1288
|
+
const u = {
|
|
1289
1289
|
error: o,
|
|
1290
1290
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1291
1291
|
};
|
|
1292
1292
|
if (typeof s == "function")
|
|
1293
|
-
|
|
1293
|
+
d = s(u);
|
|
1294
1294
|
else if (n)
|
|
1295
|
-
|
|
1295
|
+
d = De(n, u);
|
|
1296
1296
|
else if (a !== void 0)
|
|
1297
|
-
|
|
1297
|
+
d = a;
|
|
1298
1298
|
else
|
|
1299
1299
|
throw o;
|
|
1300
1300
|
}
|
|
@@ -1304,7 +1304,7 @@ class Ws extends zt {
|
|
|
1304
1304
|
error: o,
|
|
1305
1305
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1306
1306
|
}
|
|
1307
|
-
},
|
|
1307
|
+
}, d);
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
function _s() {
|
|
@@ -1379,27 +1379,27 @@ const ot = {
|
|
|
1379
1379
|
...wt,
|
|
1380
1380
|
...(x = t.mdx) == null ? void 0 : x.components
|
|
1381
1381
|
};
|
|
1382
|
-
}, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } = Ht(oe), [i, o] = Q(!1),
|
|
1382
|
+
}, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } = Ht(oe), [i, o] = Q(!1), d = se(
|
|
1383
1383
|
() => i ? { stagger: !0 } : { stagger: a },
|
|
1384
1384
|
[a, i]
|
|
1385
|
-
),
|
|
1385
|
+
), u = he();
|
|
1386
1386
|
R(() => {
|
|
1387
1387
|
i || o(!0);
|
|
1388
|
-
}, [i,
|
|
1388
|
+
}, [i, u.location]);
|
|
1389
1389
|
const [l] = Q(() => new Xs(t)), f = (h = t.plugins) == null ? void 0 : h.filter(Bs).map((p, x) => {
|
|
1390
1390
|
var m;
|
|
1391
1391
|
return /* @__PURE__ */ r.jsx(Lt, { children: (m = p.getHead) == null ? void 0 : m.call(p) }, x);
|
|
1392
1392
|
});
|
|
1393
1393
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1394
|
-
/* @__PURE__ */ r.jsx(
|
|
1395
|
-
/* @__PURE__ */ r.jsx(oe.Provider, { value:
|
|
1394
|
+
/* @__PURE__ */ r.jsx(de, { children: f }),
|
|
1395
|
+
/* @__PURE__ */ r.jsx(oe.Provider, { value: d, children: /* @__PURE__ */ r.jsx(er, { context: l, children: /* @__PURE__ */ r.jsx(ts, { components: n, children: /* @__PURE__ */ r.jsx(fs, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(Gs, { value: s, children: /* @__PURE__ */ r.jsx(yt, { slotlets: t.slotlets, children: /* @__PURE__ */ r.jsx(kt, { children: e ?? /* @__PURE__ */ r.jsx(Be, {}) }) }) }) }) }) }) })
|
|
1396
1396
|
] });
|
|
1397
1397
|
}
|
|
1398
1398
|
);
|
|
1399
1399
|
lt.displayName = "ZudokoInner";
|
|
1400
1400
|
const ct = (e) => /* @__PURE__ */ r.jsx(Ws, { FallbackComponent: Ys, children: /* @__PURE__ */ r.jsx(lt, { ...e }) });
|
|
1401
1401
|
ct.displayName = "Zudoku";
|
|
1402
|
-
const Nr = ss, Pr = Vs, Sr = bt, Dr = js, Or = Cs, Mr = Ns, Ar =
|
|
1402
|
+
const Nr = ss, Pr = Vs, Sr = bt, Dr = js, Or = Cs, Mr = Ns, Ar = de, Er = T, Ir = U, Qr = ct, Tr = jt, qr = Ct, Rr = He, Fr = xe, Br = vt, zr = fe;
|
|
1403
1403
|
export {
|
|
1404
1404
|
Or as Bootstrap,
|
|
1405
1405
|
Mr as BootstrapStatic,
|