zudoku 0.24.1 → 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.
Files changed (45) hide show
  1. package/dist/lib/components/Header.js +13 -13
  2. package/dist/lib/components/Header.js.map +1 -1
  3. package/dist/lib/components/Layout.js +1 -1
  4. package/dist/lib/components/Layout.js.map +1 -1
  5. package/dist/lib/components/TopNavigation.js +2 -2
  6. package/dist/lib/components/TopNavigation.js.map +1 -1
  7. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  8. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  9. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  10. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  11. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  12. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  13. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  14. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  15. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  16. package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
  17. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  18. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  19. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  20. package/dist/lib/ui/Card.js +1 -1
  21. package/dist/lib/ui/Card.js.map +1 -1
  22. package/lib/{OperationList-CqLL5P5l.js → OperationList-c6V_vcgz.js} +787 -802
  23. package/lib/OperationList-c6V_vcgz.js.map +1 -0
  24. package/lib/{index-DzRORsY1.js → index-DkwDHnit.js} +4 -3
  25. package/lib/index-DkwDHnit.js.map +1 -0
  26. package/lib/ui/Card.js +7 -7
  27. package/lib/ui/Card.js.map +1 -1
  28. package/lib/zudoku.components.js +140 -140
  29. package/lib/zudoku.components.js.map +1 -1
  30. package/lib/zudoku.plugin-openapi.js +1 -1
  31. package/package.json +1 -1
  32. package/src/app/main.css +50 -37
  33. package/src/lib/components/Header.tsx +9 -5
  34. package/src/lib/components/Layout.tsx +1 -1
  35. package/src/lib/components/TopNavigation.tsx +2 -2
  36. package/src/lib/components/navigation/SidebarWrapper.tsx +2 -2
  37. package/src/lib/plugins/openapi/CollapsibleCode.tsx +10 -7
  38. package/src/lib/plugins/openapi/Endpoint.tsx +1 -3
  39. package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
  40. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  41. package/src/lib/plugins/openapi/playground/Headers.tsx +1 -0
  42. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  43. package/src/lib/ui/Card.tsx +1 -1
  44. package/lib/OperationList-CqLL5P5l.js.map +0 -1
  45. package/lib/index-DzRORsY1.js.map +0 -1
@@ -1,8 +1,8 @@
1
- var dt = Object.defineProperty;
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 ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
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 ue } from "./index.esm-BSV1C092.js";
17
- import { R as ft, S as gt, e as mt, f as te, b as pt, u as de, g as he, L as fe, O as Be } from "./chunk-D52XG6IA-Dl7HLe6j.js";
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 us, DropdownMenuItem as ds } from "./ui/DropdownMenu.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 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 u = { pages: [], pageParams: [] }, d = 0;
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 ut = await _(
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, ut, ye),
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
- u = await L(K, X, v);
232
+ d = await L(K, X, v);
233
233
  } else {
234
234
  const v = e ?? i.length;
235
235
  do {
236
- const P = d === 0 ? o[0] ?? n.initialPageParam : Me(n, u);
237
- if (d > 0 && P == null)
236
+ const P = u === 0 ? o[0] ?? n.initialPageParam : Me(n, d);
237
+ if (u > 0 && P == null)
238
238
  break;
239
- u = await L(u, P), d++;
240
- } while (d < v);
239
+ d = await L(d, P), u++;
240
+ } while (u < v);
241
241
  }
242
- return u;
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 d, l;
482
+ var u, l;
483
483
  if (typeof t != "object" || t === null)
484
484
  return;
485
- const n = e.getMutationCache(), a = e.getQueryCache(), i = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? bs, o = t.mutations || [], u = t.queries || [];
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
- }), u.forEach(({ queryKey: f, state: g, queryHash: h, meta: p, promise: x }) => {
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(), u = $.useRef(t);
540
- return u.current = t, $.useMemo(() => {
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 d = a.getQueryCache(), l = s.queries || [], f = [], g = [];
544
+ const u = a.getQueryCache(), l = s.queries || [], f = [], g = [];
545
545
  for (const h of l) {
546
- const p = d.get(h.queryHash);
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 }, u.current), g.length > 0 && o(
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 }, u.current), o(void 0));
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 [u, d] = n.useState(!0);
607
+ const [d, u] = n.useState(!0);
608
608
  return n.useEffect(() => {
609
- d(!1);
610
- }, []), u;
609
+ u(!1);
610
+ }, []), d;
611
611
  }
612
- function o(u, d) {
613
- d = Object.assign({}, a, d);
614
- const l = i() && d.ssr, f = l && u ? "DISPLAY" : "IDLE", [g, h] = n.useState(f), p = n.useRef(null);
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 (u && (g === "IDLE" || l)) {
616
+ if (d && (g === "IDLE" || l)) {
617
617
  clearTimeout(p.current);
618
- const x = l ? 0 : d.delay;
618
+ const x = l ? 0 : u.delay;
619
619
  p.current = setTimeout(() => {
620
- if (!u)
620
+ if (!d)
621
621
  return h("IDLE");
622
622
  p.current = setTimeout(() => {
623
623
  h("EXPIRE");
624
- }, d.minDuration), h("DISPLAY");
624
+ }, u.minDuration), h("DISPLAY");
625
625
  }, x), l || h("DELAY");
626
626
  }
627
- !u && g !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
628
- }, [u, g, d.delay, d.minDuration, l]), n.useEffect(() => () => clearTimeout(p.current), []), g === "DISPLAY" || g === "EXPIRE";
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, u = !!(!i || !o || s), [d, l] = Q(u), f = mt(((h = e.link) == null ? void 0 : h.id) ?? "");
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: u,
690
- open: d,
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 && !d && l(!0);
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 = de(), { setActiveAnchor: t } = ge();
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 = de(), t = me(e.pathname);
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(u) {
929
- u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
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 border-b 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)) }) }) });
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, u = ((l = i.topNavItem) == null ? void 0 : l.id) === e && !o, d = s ?? (a ? Qt(a, (f) => {
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 (!d)
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 border-b-2",
993
- u || f ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
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: d,
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(us, { children: e.children.map((t, s) => (
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(ds, { className: "flex gap-2", children: [
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: u } = i, d = u.filter((l) => Ts(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
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.jsxs("div", { className: "grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-4 lg:px-12 h-[--top-header-height]", children: [
1043
- /* @__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: [
1044
- (o == null ? void 0 : o.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1045
- /* @__PURE__ */ r.jsx(
1046
- "img",
1047
- {
1048
- src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : q(
1049
- "/",
1050
- o.logo.src.light
1051
- ),
1052
- alt: o.logo.alt ?? o.pageTitle,
1053
- style: { width: o.logo.width },
1054
- className: "h-10 dark:hidden",
1055
- loading: "lazy"
1056
- }
1057
- ),
1058
- /* @__PURE__ */ r.jsx(
1059
- "img",
1060
- {
1061
- src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : q(
1062
- "/",
1063
- o.logo.src.dark
1064
- ),
1065
- alt: o.logo.alt ?? o.pageTitle,
1066
- style: { width: o.logo.width },
1067
- className: "h-10 hidden dark:block",
1068
- loading: "lazy"
1069
- }
1070
- )
1071
- ] }),
1072
- /* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
1073
- ] }) }) }),
1074
- /* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1075
- /* @__PURE__ */ r.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ r.jsx(tt, {}) }),
1076
- /* @__PURE__ */ r.jsx($s, {}),
1077
- /* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1078
- /* @__PURE__ */ r.jsx(D, { name: "head-navigation-start" }),
1079
- a && /* @__PURE__ */ r.jsx(
1080
- xe,
1081
- {
1082
- fallback: /* @__PURE__ */ r.jsx(Qs, { className: "rounded h-5 w-24 mr-4" }),
1083
- children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(rs, { modal: !1, children: [
1084
- /* @__PURE__ */ r.jsx(ns, { asChild: !0, children: /* @__PURE__ */ r.jsx(le, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
1085
- /* @__PURE__ */ r.jsxs(as, { className: "w-56", children: [
1086
- /* @__PURE__ */ r.jsxs(is, { children: [
1087
- n != null && n.name ? `${n.name}` : "My Account",
1088
- (n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
1089
- ] }),
1090
- d.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
1091
- d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label)),
1092
- d.filter(
1093
- (l) => !l.category || l.category === "middle"
1094
- ).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
1095
- d.filter(
1096
- (l) => !l.category || l.category === "middle"
1097
- ).map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label)),
1098
- d.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
1099
- d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label))
1100
- ] })
1101
- ] }) : /* @__PURE__ */ r.jsx(le, { variant: "ghost", onClick: () => t.login(), children: "Login" })
1102
- }
1103
- ),
1104
- /* @__PURE__ */ r.jsx(st, {}),
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 mt-[--padding-content-top]",
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 = de(), { setActiveAnchor: s } = ge(), { meta: n, authentication: a } = 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, u = Ds.useSpinDelay(o, {
1175
+ const o = !!he().location, d = Ds.useSpinDelay(o, {
1176
1176
  delay: 300,
1177
1177
  minDuration: 500
1178
- }), [d, l] = Q(!1);
1178
+ }), [u, l] = Q(!1);
1179
1179
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1180
1180
  !1,
1181
- /* @__PURE__ */ r.jsxs(ue, { titleTemplate: n == null ? void 0 : n.title, children: [
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: u ? /* @__PURE__ */ r.jsx(Qe, {}) : /* @__PURE__ */ r.jsx(pe, { fallback: /* @__PURE__ */ r.jsx(Qe, {}), children: /* @__PURE__ */ r.jsxs(
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: d,
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 u = t;
1286
+ let d = t;
1287
1287
  if (i) {
1288
- const d = {
1288
+ const u = {
1289
1289
  error: o,
1290
1290
  resetErrorBoundary: this.resetErrorBoundary
1291
1291
  };
1292
1292
  if (typeof s == "function")
1293
- u = s(d);
1293
+ d = s(u);
1294
1294
  else if (n)
1295
- u = De(n, d);
1295
+ d = De(n, u);
1296
1296
  else if (a !== void 0)
1297
- u = a;
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
- }, u);
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), u = se(
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
- ), d = he();
1385
+ ), u = he();
1386
1386
  R(() => {
1387
1387
  i || o(!0);
1388
- }, [i, d.location]);
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(ue, { children: f }),
1395
- /* @__PURE__ */ r.jsx(oe.Provider, { value: u, 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, {}) }) }) }) }) }) }) })
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 = ue, Er = T, Ir = U, Qr = ct, Tr = jt, qr = Ct, Rr = He, Fr = xe, Br = vt, zr = fe;
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,