zudoku 0.24.1 → 0.25.1

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 (108) hide show
  1. package/dist/config/validators/InputSidebarSchema.d.ts +15 -0
  2. package/dist/config/validators/InputSidebarSchema.js +1 -0
  3. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  4. package/dist/config/validators/common.d.ts +45 -34
  5. package/dist/config/validators/common.js +2 -1
  6. package/dist/config/validators/common.js.map +1 -1
  7. package/dist/config/validators/validate.d.ts +19 -14
  8. package/dist/lib/authentication/components/SignOut.js +1 -1
  9. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  10. package/dist/lib/authentication/providers/clerk.js +29 -6
  11. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  12. package/dist/lib/components/Header.js +13 -13
  13. package/dist/lib/components/Header.js.map +1 -1
  14. package/dist/lib/components/Layout.js +1 -1
  15. package/dist/lib/components/Layout.js.map +1 -1
  16. package/dist/lib/components/TopNavigation.js +2 -2
  17. package/dist/lib/components/TopNavigation.js.map +1 -1
  18. package/dist/lib/components/navigation/SidebarBadge.d.ts +11 -1
  19. package/dist/lib/components/navigation/SidebarBadge.js +11 -2
  20. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  21. package/dist/lib/components/navigation/SidebarCategory.js +2 -2
  22. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  23. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  24. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  25. package/dist/lib/oas/graphql/index.js +16 -3
  26. package/dist/lib/oas/graphql/index.js.map +1 -1
  27. package/dist/lib/oas/parser/upgrade/index.js +17 -3
  28. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  29. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  30. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  31. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  32. package/dist/lib/plugins/openapi/Endpoint.js +3 -1
  33. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  34. package/dist/lib/plugins/openapi/ExampleDisplay.d.ts +12 -0
  35. package/dist/lib/plugins/openapi/ExampleDisplay.js +78 -0
  36. package/dist/lib/plugins/openapi/ExampleDisplay.js.map +1 -0
  37. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  38. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  39. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  40. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  41. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -4
  42. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +6 -13
  43. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  44. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +11 -13
  45. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  46. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  47. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  48. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  49. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  50. package/dist/lib/plugins/openapi/index.js +1 -0
  51. package/dist/lib/plugins/openapi/index.js.map +1 -1
  52. package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
  53. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  54. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  55. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  56. package/dist/lib/ui/Card.js +1 -1
  57. package/dist/lib/ui/Card.js.map +1 -1
  58. package/dist/vite/build.js +10 -8
  59. package/dist/vite/build.js.map +1 -1
  60. package/dist/vite/config.js +10 -0
  61. package/dist/vite/config.js.map +1 -1
  62. package/lib/{AuthenticationPlugin-DVLEc6cm.js → AuthenticationPlugin-D7G3me8L.js} +16 -16
  63. package/lib/AuthenticationPlugin-D7G3me8L.js.map +1 -0
  64. package/lib/{OperationList-CqLL5P5l.js → OperationList-BLdHAQ39.js} +1865 -1811
  65. package/lib/OperationList-BLdHAQ39.js.map +1 -0
  66. package/lib/assets/{worker-DV9Ecqy9.js → worker-Cbp2r2BQ.js} +26 -14
  67. package/lib/assets/{worker-DV9Ecqy9.js.map → worker-Cbp2r2BQ.js.map} +1 -1
  68. package/lib/{createServer-C4C0OO0m.js → createServer-Bf5_6o6G.js} +796 -784
  69. package/lib/{createServer-C4C0OO0m.js.map → createServer-Bf5_6o6G.js.map} +1 -1
  70. package/lib/{index-DzRORsY1.js → index-BNx95gkf.js} +7 -5
  71. package/lib/index-BNx95gkf.js.map +1 -0
  72. package/lib/ui/Card.js +7 -7
  73. package/lib/ui/Card.js.map +1 -1
  74. package/lib/zudoku.auth-clerk.js +80 -52
  75. package/lib/zudoku.auth-clerk.js.map +1 -1
  76. package/lib/zudoku.auth-openid.js +1 -1
  77. package/lib/zudoku.components.js +222 -218
  78. package/lib/zudoku.components.js.map +1 -1
  79. package/lib/zudoku.openapi-worker.js +1 -1
  80. package/lib/zudoku.plugin-openapi.js +1 -1
  81. package/package.json +4 -4
  82. package/src/app/main.css +50 -37
  83. package/src/lib/authentication/components/SignOut.tsx +2 -1
  84. package/src/lib/authentication/providers/clerk.tsx +38 -7
  85. package/src/lib/components/Header.tsx +9 -5
  86. package/src/lib/components/Layout.tsx +1 -1
  87. package/src/lib/components/TopNavigation.tsx +2 -2
  88. package/src/lib/components/navigation/SidebarBadge.tsx +13 -1
  89. package/src/lib/components/navigation/SidebarCategory.tsx +3 -7
  90. package/src/lib/components/navigation/SidebarWrapper.tsx +3 -2
  91. package/src/lib/oas/graphql/index.ts +16 -7
  92. package/src/lib/oas/parser/upgrade/index.ts +19 -4
  93. package/src/lib/plugins/openapi/CollapsibleCode.tsx +10 -7
  94. package/src/lib/plugins/openapi/Endpoint.tsx +3 -3
  95. package/src/lib/plugins/openapi/ExampleDisplay.tsx +163 -0
  96. package/src/lib/plugins/openapi/OperationListItem.tsx +5 -3
  97. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -1
  98. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +11 -37
  99. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +49 -63
  100. package/src/lib/plugins/openapi/Sidecar.tsx +4 -6
  101. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  102. package/src/lib/plugins/openapi/index.tsx +1 -0
  103. package/src/lib/plugins/openapi/playground/Headers.tsx +1 -0
  104. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  105. package/src/lib/ui/Card.tsx +1 -1
  106. package/lib/AuthenticationPlugin-DVLEc6cm.js.map +0 -1
  107. package/lib/OperationList-CqLL5P5l.js.map +0 -1
  108. 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";
@@ -22,7 +22,7 @@ import { Button as vt } from "./ui/Button.js";
22
22
  import { Callout as jt } from "./ui/Callout.js";
23
23
  import { S as He } from "./Spinner-DuxJLLNE.js";
24
24
  import { u as ge, a as wt, V as kt, M as Ct } from "./Markdown-CZDLNOFc.js";
25
- import { S as Le, l as Ke, Q as Nt, n as w, m as we, o as ke, p as M, q as Pt, r as St, t as Dt, v as Ot, w as Ce, x as Ne, y as Mt, h as Pe, z as Se, A as At, e as Et, B as $e, C as It, j as q, a as T, D as Ze, E as Qt, u as Tt, Z as qt } from "./ZudokuContext-hmLMUdf2.js";
25
+ import { S as Le, l as Ke, Q as Nt, n as w, m as we, o as ke, p as M, q as Pt, r as St, t as Dt, v as Ot, w as Ce, x as Ne, y as Mt, h as Pe, z as Se, A as At, e as It, B as $e, C as Et, j as q, a as T, D as Ze, E as Qt, u as Tt, Z as qt } from "./ZudokuContext-hmLMUdf2.js";
26
26
  import * as $ from "react";
27
27
  import Rt, { StrictMode as Ve, useState as Q, useEffect as R, useRef as me, useCallback as Ft, Suspense as pe, memo as Ue, forwardRef as Bt, createContext as We, Component as zt, createElement as De, useMemo as se, useContext as Ht, Fragment as Lt } from "react";
28
28
  import * as Kt from "react-dom";
@@ -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;
@@ -270,20 +270,20 @@ function xs(e, { pages: t, pageParams: s }) {
270
270
  var n;
271
271
  return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, s[0], s) : void 0;
272
272
  }
273
- var y, A, E, F, B, I, z, H, Re, ys = (Re = class {
273
+ var y, A, I, F, B, E, z, H, Re, ys = (Re = class {
274
274
  constructor(e = {}) {
275
275
  C(this, y);
276
276
  C(this, A);
277
- C(this, E);
277
+ C(this, I);
278
278
  C(this, F);
279
279
  C(this, B);
280
- C(this, I);
280
+ C(this, E);
281
281
  C(this, z);
282
282
  C(this, H);
283
- b(this, y, e.queryCache || new ms()), b(this, A, e.mutationCache || new ps()), b(this, E, e.defaultOptions || {}), b(this, F, /* @__PURE__ */ new Map()), b(this, B, /* @__PURE__ */ new Map()), b(this, I, 0);
283
+ b(this, y, e.queryCache || new ms()), b(this, A, e.mutationCache || new ps()), b(this, I, e.defaultOptions || {}), b(this, F, /* @__PURE__ */ new Map()), b(this, B, /* @__PURE__ */ new Map()), b(this, E, 0);
284
284
  }
285
285
  mount() {
286
- Y(this, I)._++, c(this, I) === 1 && (b(this, z, Ot.subscribe(async (e) => {
286
+ Y(this, E)._++, c(this, E) === 1 && (b(this, z, Ot.subscribe(async (e) => {
287
287
  e && (await this.resumePausedMutations(), c(this, y).onFocus());
288
288
  })), b(this, H, Ce.subscribe(async (e) => {
289
289
  e && (await this.resumePausedMutations(), c(this, y).onOnline());
@@ -291,7 +291,7 @@ var y, A, E, F, B, I, z, H, Re, ys = (Re = class {
291
291
  }
292
292
  unmount() {
293
293
  var e, t;
294
- Y(this, I)._--, c(this, I) === 0 && ((e = c(this, z)) == null || e.call(this), b(this, z, void 0), (t = c(this, H)) == null || t.call(this), b(this, H, void 0));
294
+ Y(this, E)._--, c(this, E) === 0 && ((e = c(this, z)) == null || e.call(this), b(this, z, void 0), (t = c(this, H)) == null || t.call(this), b(this, H, void 0));
295
295
  }
296
296
  isFetching(e) {
297
297
  return c(this, y).findAll({ ...e, fetchStatus: "fetching" }).length;
@@ -419,10 +419,10 @@ var y, A, E, F, B, I, z, H, Re, ys = (Re = class {
419
419
  return c(this, A);
420
420
  }
421
421
  getDefaultOptions() {
422
- return c(this, E);
422
+ return c(this, I);
423
423
  }
424
424
  setDefaultOptions(e) {
425
- b(this, E, e);
425
+ b(this, I, e);
426
426
  }
427
427
  setQueryDefaults(e, t) {
428
428
  c(this, F).set(Pe(e), {
@@ -453,7 +453,7 @@ var y, A, E, F, B, I, z, H, Re, ys = (Re = class {
453
453
  if (e._defaulted)
454
454
  return e;
455
455
  const t = {
456
- ...c(this, E).queries,
456
+ ...c(this, I).queries,
457
457
  ...this.getQueryDefaults(e.queryKey),
458
458
  ...e,
459
459
  _defaulted: !0
@@ -465,7 +465,7 @@ var y, A, E, F, B, I, z, H, Re, ys = (Re = class {
465
465
  }
466
466
  defaultMutationOptions(e) {
467
467
  return e != null && e._defaulted ? e : {
468
- ...c(this, E).mutations,
468
+ ...c(this, I).mutations,
469
469
  ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
470
470
  ...e,
471
471
  _defaulted: !0
@@ -474,15 +474,15 @@ var y, A, E, F, B, I, z, H, Re, ys = (Re = class {
474
474
  clear() {
475
475
  c(this, y).clear(), c(this, A).clear();
476
476
  }
477
- }, y = new WeakMap(), A = new WeakMap(), E = new WeakMap(), F = new WeakMap(), B = new WeakMap(), I = new WeakMap(), z = new WeakMap(), H = new WeakMap(), Re);
477
+ }, y = new WeakMap(), A = new WeakMap(), I = new WeakMap(), F = new WeakMap(), B = new WeakMap(), E = new WeakMap(), z = new WeakMap(), H = new WeakMap(), Re);
478
478
  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 = It(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 }) {
@@ -592,9 +592,9 @@ const ks = new ys({
592
592
  queryClient: s,
593
593
  helmetContext: n
594
594
  }) => /* @__PURE__ */ r.jsx(Ve, { children: /* @__PURE__ */ r.jsx($e, { client: s, children: /* @__PURE__ */ r.jsx(Fe, { context: n, children: /* @__PURE__ */ r.jsx(gt, { router: e, context: t }) }) }) });
595
- var Z = { exports: {} }, Ps = Z.exports, Ee;
595
+ var Z = { exports: {} }, Ps = Z.exports, Ie;
596
596
  function Ss() {
597
- return Ee || (Ee = 1, function(e, t) {
597
+ return Ie || (Ie = 1, function(e, t) {
598
598
  (function(s, n) {
599
599
  n(t, Rt);
600
600
  })(Ps, function(s, n) {
@@ -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
  });
@@ -640,26 +640,35 @@ const Os = {
640
640
  purple: "bg-purple-400 dark:bg-purple-600",
641
641
  indigo: "bg-indigo-400 dark:bg-indigo-600",
642
642
  gray: "bg-gray-400 dark:bg-gray-600"
643
+ }, Ms = {
644
+ green: "text-green-500 dark:text-green-600",
645
+ blue: "text-sky-400 dark:text-sky-600",
646
+ yellow: "text-yellow-400 dark:text-yellow-600",
647
+ red: "text-red-400 dark:text-red-600",
648
+ purple: "text-purple-400 dark:text-purple-600",
649
+ indigo: "text-indigo-400 dark:text-indigo-600",
650
+ gray: "text-gray-400 dark:text-gray-600"
643
651
  }, ae = ({
644
652
  color: e,
645
653
  label: t,
646
- className: s
654
+ className: s,
655
+ invert: n
647
656
  }) => /* @__PURE__ */ r.jsx(
648
657
  "span",
649
658
  {
650
659
  className: O(
651
660
  "mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
652
- Os[e],
661
+ n ? Ms[e] : Os[e],
653
662
  s
654
663
  ),
655
664
  children: t
656
665
  }
657
- ), Ms = ({
666
+ ), As = ({
658
667
  category: e,
659
668
  onRequestClose: t
660
669
  }) => {
661
670
  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) ?? "");
671
+ const s = Et(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
672
  R(() => {
664
673
  s && l(!0);
665
674
  }, [s]);
@@ -686,8 +695,8 @@ const Os = {
686
695
  re.Root,
687
696
  {
688
697
  className: "flex flex-col",
689
- defaultOpen: u,
690
- open: d,
698
+ defaultOpen: d,
699
+ open: u,
691
700
  onOpenChange: () => l(!0),
692
701
  children: [
693
702
  /* @__PURE__ */ r.jsx(re.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ r.jsxs(
@@ -697,7 +706,7 @@ const Os = {
697
706
  className: V({
698
707
  isActive: !1,
699
708
  className: [
700
- "text-start",
709
+ "text-start font-medium",
701
710
  i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
702
711
  ]
703
712
  }),
@@ -715,7 +724,7 @@ const Os = {
715
724
  to: q(e.link.id),
716
725
  className: "flex-1",
717
726
  onClick: () => {
718
- f && !d && l(!0);
727
+ f && !u && l(!0);
719
728
  },
720
729
  children: /* @__PURE__ */ r.jsxs(
721
730
  "div",
@@ -744,22 +753,16 @@ const Os = {
744
753
  className: O(
745
754
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
746
755
  n && "CollapsibleContent",
747
- "ms-6 my-1"
756
+ "my-1"
748
757
  ),
749
- children: /* @__PURE__ */ r.jsx(
750
- "ul",
758
+ children: /* @__PURE__ */ r.jsx("ul", { className: "relative", children: e.items.map((x) => /* @__PURE__ */ r.jsx(
759
+ ce,
751
760
  {
752
- className: "relative after:absolute after:-left-[--padding-nav-item] after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border",
753
- children: e.items.map((x) => /* @__PURE__ */ r.jsx(
754
- ce,
755
- {
756
- onRequestClose: t,
757
- item: x
758
- },
759
- ("id" in x ? x.id : "") + ("href" in x ? x.href : "") + x.label
760
- ))
761
- }
762
- )
761
+ onRequestClose: t,
762
+ item: x
763
+ },
764
+ ("id" in x ? x.id : "") + ("href" in x ? x.href : "") + x.label
765
+ )) })
763
766
  }
764
767
  )
765
768
  ]
@@ -790,7 +793,7 @@ const Os = {
790
793
  const { activeAnchor: s } = ge(), [n] = pt();
791
794
  switch (e.type) {
792
795
  case "category":
793
- return /* @__PURE__ */ r.jsx(Ms, { category: e, onRequestClose: t });
796
+ return /* @__PURE__ */ r.jsx(As, { category: e, onRequestClose: t });
794
797
  case "doc":
795
798
  return /* @__PURE__ */ r.jsxs(
796
799
  te,
@@ -850,17 +853,17 @@ const Os = {
850
853
  }
851
854
  );
852
855
  }
853
- }, As = (e, t = { block: "center" }) => {
856
+ }, Is = (e, t = { block: "center" }) => {
854
857
  if (!e) return;
855
858
  const s = e.getBoundingClientRect();
856
859
  s.top >= 0 && s.left >= 0 && s.bottom <= (window.innerHeight || document.documentElement.clientHeight) && s.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
857
860
  }, Es = () => {
858
- const e = de(), { setActiveAnchor: t } = ge();
861
+ const e = ue(), { setActiveAnchor: t } = ge();
859
862
  R(() => {
860
863
  if (!e.hash) return;
861
864
  const s = decodeURIComponent(e.hash.split("/")[0].slice(1)), n = () => {
862
865
  const a = document.getElementById(s), i = document.querySelector(`[${et}="${s}"]`);
863
- return a ? (a.scrollIntoView(), As(i), requestIdleCallback(() => t(s)), !0) : !1;
866
+ return a ? (a.scrollIntoView(), Is(i), requestIdleCallback(() => t(s)), !0) : !1;
864
867
  };
865
868
  if (!n()) {
866
869
  const a = new MutationObserver((i, o) => {
@@ -869,13 +872,13 @@ const Os = {
869
872
  return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
870
873
  }
871
874
  }, [e.hash, t]);
872
- }, Is = () => {
873
- const e = de(), t = me(e.pathname);
875
+ }, Qs = () => {
876
+ const e = ue(), t = me(e.pathname);
874
877
  R(() => {
875
878
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
876
879
  }, [e.pathname]);
877
880
  };
878
- function Qs({
881
+ function Ts({
879
882
  className: e,
880
883
  ...t
881
884
  }) {
@@ -887,17 +890,17 @@ function Qs({
887
890
  }
888
891
  );
889
892
  }
890
- const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", qs = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Rs = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Fs = (e) => "initialize" in e && typeof e.initialize == "function", Bs = (e) => "getHead" in e && typeof e.getHead == "function", zs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Hs = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ie = {
893
+ const qs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Rs = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Fs = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Bs = (e) => "initialize" in e && typeof e.initialize == "function", zs = (e) => "getHead" in e && typeof e.getHead == "function", Hs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ls = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ee = {
891
894
  info: "bg-blue-500",
892
895
  note: "bg-gray-500",
893
896
  tip: "bg-green-600",
894
897
  caution: "bg-orange-500",
895
898
  danger: "bg-rose-500"
896
- }, Ls = () => {
899
+ }, Ks = () => {
897
900
  const { page: e } = T(), [t, s] = Q(!0);
898
901
  if (!(e != null && e.banner) || !t)
899
902
  return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
900
- const n = e.banner.color && e.banner.color in Ie ? Ie[e.banner.color] : e.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: e.banner.color };
903
+ const n = e.banner.color && e.banner.color in Ee ? Ee[e.banner.color] : e.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: e.banner.color };
901
904
  return /* @__PURE__ */ r.jsxs(
902
905
  "div",
903
906
  {
@@ -925,14 +928,14 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
925
928
  R(() => {
926
929
  if (s)
927
930
  return;
928
- function o(u) {
929
- u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
931
+ function o(d) {
932
+ d.key === "k" && (d.metaKey || d.ctrlKey) && (d.preventDefault(), n(!0));
930
933
  }
931
934
  return window.addEventListener("keydown", o), () => {
932
935
  window.removeEventListener("keydown", o);
933
936
  };
934
937
  }, [s, n]);
935
- const i = t.plugins.find(Rs);
938
+ const i = t.plugins.find(Fs);
936
939
  return i ? /* @__PURE__ */ r.jsxs("div", { className: e, children: [
937
940
  /* @__PURE__ */ r.jsxs(
938
941
  "button",
@@ -966,19 +969,19 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
966
969
  children: /* @__PURE__ */ r.jsx(s, { size: 18 })
967
970
  }
968
971
  ) });
969
- }, rt = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Ks = () => {
972
+ }, rt = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", $s = () => {
970
973
  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)) }) }) });
974
+ 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
975
  }, nt = ({
973
976
  id: e,
974
977
  label: t,
975
978
  default: s
976
979
  }) => {
977
980
  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) => {
981
+ 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
982
  if (f.type === "doc") return q(f.id);
980
983
  }) : q(e));
981
- if (!d)
984
+ if (!u)
982
985
  throw new gs("Page not found.", {
983
986
  developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
984
987
  });
@@ -989,15 +992,15 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
989
992
  te,
990
993
  {
991
994
  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"
995
+ "block lg:py-3.5 font-medium -mb-px",
996
+ d || f ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
994
997
  ),
995
- to: d,
998
+ to: u,
996
999
  children: t
997
1000
  }
998
1001
  )
999
1002
  );
1000
- }, $s = () => {
1003
+ }, Zs = () => {
1001
1004
  const { topNavigation: e } = T(), { isAuthenticated: t } = U(), [s, n] = Q(!1);
1002
1005
  return /* @__PURE__ */ r.jsxs(
1003
1006
  _e,
@@ -1027,98 +1030,99 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1027
1030
  );
1028
1031
  }, ee = ({ item: e }) => e.children ? /* @__PURE__ */ r.jsxs(os, { children: [
1029
1032
  /* @__PURE__ */ r.jsx(ls, { children: e.label }),
1030
- /* @__PURE__ */ r.jsx(cs, { children: /* @__PURE__ */ r.jsx(us, { children: e.children.map((t, s) => (
1033
+ /* @__PURE__ */ r.jsx(cs, { children: /* @__PURE__ */ r.jsx(ds, { children: e.children.map((t, s) => (
1031
1034
  // eslint-disable-next-line react/no-array-index-key
1032
1035
  /* @__PURE__ */ r.jsx(ee, { item: t }, s)
1033
1036
  )) }) })
1034
- ] }, e.label) : /* @__PURE__ */ r.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(ds, { className: "flex gap-2", children: [
1037
+ ] }, e.label) : /* @__PURE__ */ r.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(us, { className: "flex gap-2", children: [
1035
1038
  e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
1036
1039
  e.label
1037
1040
  ] }, 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);
1041
+ const t = U(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = U(), i = T(), { page: o, plugins: d } = i, u = d.filter((l) => qs(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
1039
1042
  return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
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
- ] })
1043
+ /* @__PURE__ */ r.jsx(Ks, {}),
1044
+ /* @__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: [
1045
+ /* @__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: [
1046
+ (o == null ? void 0 : o.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1047
+ /* @__PURE__ */ r.jsx(
1048
+ "img",
1049
+ {
1050
+ src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : q(
1051
+ "/",
1052
+ o.logo.src.light
1053
+ ),
1054
+ alt: o.logo.alt ?? o.pageTitle,
1055
+ style: { width: o.logo.width },
1056
+ className: "h-10 dark:hidden",
1057
+ loading: "lazy"
1058
+ }
1059
+ ),
1060
+ /* @__PURE__ */ r.jsx(
1061
+ "img",
1062
+ {
1063
+ src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : q(
1064
+ "/",
1065
+ o.logo.src.dark
1066
+ ),
1067
+ alt: o.logo.alt ?? o.pageTitle,
1068
+ style: { width: o.logo.width },
1069
+ className: "h-10 hidden dark:block",
1070
+ loading: "lazy"
1071
+ }
1072
+ )
1073
+ ] }),
1074
+ /* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
1075
+ ] }) }) }),
1076
+ /* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1077
+ /* @__PURE__ */ r.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ r.jsx(tt, {}) }),
1078
+ /* @__PURE__ */ r.jsx(Zs, {}),
1079
+ /* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1080
+ /* @__PURE__ */ r.jsx(D, { name: "head-navigation-start" }),
1081
+ a && /* @__PURE__ */ r.jsx(
1082
+ xe,
1083
+ {
1084
+ fallback: /* @__PURE__ */ r.jsx(Ts, { className: "rounded h-5 w-24 mr-4" }),
1085
+ children: s ? Object.values(u).length > 0 && /* @__PURE__ */ r.jsxs(rs, { modal: !1, children: [
1086
+ /* @__PURE__ */ r.jsx(ns, { asChild: !0, children: /* @__PURE__ */ r.jsx(le, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
1087
+ /* @__PURE__ */ r.jsxs(as, { className: "w-56", children: [
1088
+ /* @__PURE__ */ r.jsxs(is, { children: [
1089
+ n != null && n.name ? `${n.name}` : "My Account",
1090
+ (n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
1091
+ ] }),
1092
+ u.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
1093
+ u.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label)),
1094
+ u.filter(
1095
+ (l) => !l.category || l.category === "middle"
1096
+ ).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
1097
+ u.filter(
1098
+ (l) => !l.category || l.category === "middle"
1099
+ ).map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label)),
1100
+ u.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
1101
+ u.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label))
1102
+ ] })
1103
+ ] }) : /* @__PURE__ */ r.jsx(le, { variant: "ghost", onClick: () => t.login(), children: "Login" })
1104
+ }
1105
+ ),
1106
+ /* @__PURE__ */ r.jsx(st, {}),
1107
+ /* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" })
1107
1108
  ] })
1108
- ] }),
1109
+ ] })
1110
+ ] }) }),
1111
+ /* @__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
1112
  /* @__PURE__ */ r.jsx(D, { name: "top-navigation-before" }),
1110
- /* @__PURE__ */ r.jsx(Ks, {}),
1113
+ /* @__PURE__ */ r.jsx($s, {}),
1111
1114
  /* @__PURE__ */ r.jsx(D, { name: "top-navigation-after" })
1112
- ] })
1115
+ ] }) })
1113
1116
  ] });
1114
1117
  }), it = Bt(({ children: e, className: t, pushMainContent: s }, n) => /* @__PURE__ */ r.jsx(
1115
1118
  "nav",
1116
1119
  {
1117
1120
  "data-navigation": String(s),
1118
1121
  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]",
1122
+ "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-10",
1123
+ "-mx-[--padding-nav-item] pb-20 pt-[--padding-content-top]",
1121
1124
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
1125
+ !s && "border-r-0",
1122
1126
  t
1123
1127
  ),
1124
1128
  ref: n,
@@ -1126,7 +1130,7 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1126
1130
  }
1127
1131
  ));
1128
1132
  it.displayName = "SidebarWrapper";
1129
- const Zs = ({
1133
+ const Vs = ({
1130
1134
  onRequestClose: e
1131
1135
  }) => {
1132
1136
  const t = me(null), s = Ze();
@@ -1162,9 +1166,9 @@ const Zs = ({
1162
1166
  }
1163
1167
  )
1164
1168
  ] });
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();
1167
- Es(), Is();
1169
+ }, Qe = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(He, {}) }), Us = ({ children: e }) => {
1170
+ const t = ue(), { setActiveAnchor: s } = ge(), { meta: n, authentication: a } = T();
1171
+ Es(), Qs();
1168
1172
  const i = me(t.pathname);
1169
1173
  R(() => {
1170
1174
  var f;
@@ -1172,27 +1176,27 @@ const Zs = ({
1172
1176
  }, [a]), R(() => {
1173
1177
  t.pathname !== i.current && s(""), i.current = t.pathname;
1174
1178
  }, [t.pathname, s]);
1175
- const o = !!he().location, u = Ds.useSpinDelay(o, {
1179
+ const o = !!he().location, d = Ds.useSpinDelay(o, {
1176
1180
  delay: 300,
1177
1181
  minDuration: 500
1178
- }), [d, l] = Q(!1);
1182
+ }), [u, l] = Q(!1);
1179
1183
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1180
1184
  !1,
1181
- /* @__PURE__ */ r.jsxs(ue, { titleTemplate: n == null ? void 0 : n.title, children: [
1185
+ /* @__PURE__ */ r.jsxs(de, { titleTemplate: n == null ? void 0 : n.title, children: [
1182
1186
  (n == null ? void 0 : n.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: n.description }),
1183
1187
  (n == null ? void 0 : n.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: n.favicon })
1184
1188
  ] }),
1185
1189
  /* @__PURE__ */ r.jsx(D, { name: "layout-before-head" }),
1186
1190
  /* @__PURE__ */ r.jsx(at, {}),
1187
1191
  /* @__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(
1192
+ /* @__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
1193
  _e,
1190
1194
  {
1191
1195
  direction: "left",
1192
- open: d,
1196
+ open: u,
1193
1197
  onOpenChange: (f) => l(f),
1194
1198
  children: [
1195
- /* @__PURE__ */ r.jsx(Zs, { onRequestClose: () => l(!1) }),
1199
+ /* @__PURE__ */ r.jsx(Vs, { onRequestClose: () => l(!1) }),
1196
1200
  /* @__PURE__ */ r.jsx(
1197
1201
  "div",
1198
1202
  {
@@ -1227,11 +1231,11 @@ const Zs = ({
1227
1231
  }
1228
1232
  ) }) })
1229
1233
  ] });
1230
- }, Us = We(null), ie = {
1234
+ }, Ws = We(null), ie = {
1231
1235
  didCatch: !1,
1232
1236
  error: null
1233
1237
  };
1234
- class Ws extends zt {
1238
+ class _s extends zt {
1235
1239
  constructor(t) {
1236
1240
  super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ie;
1237
1241
  }
@@ -1264,7 +1268,7 @@ class Ws extends zt {
1264
1268
  } = this.state, {
1265
1269
  resetKeys: a
1266
1270
  } = this.props;
1267
- if (n && s.error !== null && _s(t.resetKeys, a)) {
1271
+ if (n && s.error !== null && Xs(t.resetKeys, a)) {
1268
1272
  var i, o;
1269
1273
  (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1270
1274
  next: a,
@@ -1283,35 +1287,35 @@ class Ws extends zt {
1283
1287
  didCatch: i,
1284
1288
  error: o
1285
1289
  } = this.state;
1286
- let u = t;
1290
+ let d = t;
1287
1291
  if (i) {
1288
- const d = {
1292
+ const u = {
1289
1293
  error: o,
1290
1294
  resetErrorBoundary: this.resetErrorBoundary
1291
1295
  };
1292
1296
  if (typeof s == "function")
1293
- u = s(d);
1297
+ d = s(u);
1294
1298
  else if (n)
1295
- u = De(n, d);
1299
+ d = De(n, u);
1296
1300
  else if (a !== void 0)
1297
- u = a;
1301
+ d = a;
1298
1302
  else
1299
1303
  throw o;
1300
1304
  }
1301
- return De(Us.Provider, {
1305
+ return De(Ws.Provider, {
1302
1306
  value: {
1303
1307
  didCatch: i,
1304
1308
  error: o,
1305
1309
  resetErrorBoundary: this.resetErrorBoundary
1306
1310
  }
1307
- }, u);
1311
+ }, d);
1308
1312
  }
1309
1313
  }
1310
- function _s() {
1314
+ function Xs() {
1311
1315
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1312
1316
  return e.length !== t.length || e.some((s, n) => !Object.is(s, t[n]));
1313
1317
  }
1314
- class Xs {
1318
+ class Ys {
1315
1319
  constructor(t) {
1316
1320
  k(this, "plugins");
1317
1321
  k(this, "sidebars");
@@ -1322,14 +1326,14 @@ class Xs {
1322
1326
  k(this, "navigationPlugins");
1323
1327
  k(this, "initialize", async () => {
1324
1328
  await Promise.all(
1325
- this.plugins.filter(Fs).map((t) => {
1329
+ this.plugins.filter(Bs).map((t) => {
1326
1330
  var s;
1327
1331
  return (s = t.initialize) == null ? void 0 : s.call(t, this);
1328
1332
  })
1329
1333
  );
1330
1334
  });
1331
1335
  k(this, "getApiIdentities", async () => (await Promise.all(
1332
- this.plugins.filter(Hs).map((s) => s.getIdentities(this))
1336
+ this.plugins.filter(Ls).map((s) => s.getIdentities(this))
1333
1337
  )).flat());
1334
1338
  k(this, "getPluginSidebar", async (t) => (await Promise.all(
1335
1339
  this.navigationPlugins.map(
@@ -1345,17 +1349,17 @@ class Xs {
1345
1349
  const s = await this.authentication.getAccessToken();
1346
1350
  return t.headers.set("Authorization", `Bearer ${s}`), t;
1347
1351
  });
1348
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(qs), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
1352
+ this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Rs), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
1349
1353
  }
1350
1354
  }
1351
- function Ys({ error: e, resetErrorBoundary: t }) {
1355
+ function Js({ error: e, resetErrorBoundary: t }) {
1352
1356
  return /* @__PURE__ */ r.jsx(ze, { error: e });
1353
1357
  }
1354
1358
  const G = globalThis;
1355
1359
  (!G.requestIdleCallback || !G.cancelIdleCallback) && (G.requestIdleCallback = (e) => setTimeout(e, 1), G.cancelIdleCallback = clearTimeout);
1356
1360
  const ot = {
1357
1361
  Header: at
1358
- }, Js = We(ot), Gs = Js.Provider, er = ({
1362
+ }, Gs = We(ot), er = Gs.Provider, tr = ({
1359
1363
  children: e,
1360
1364
  context: t
1361
1365
  }) => (Tt({
@@ -1370,7 +1374,7 @@ const ot = {
1370
1374
  ), n = se(() => {
1371
1375
  var x;
1372
1376
  return {
1373
- ...(t.plugins ?? []).filter(zs).flatMap(
1377
+ ...(t.plugins ?? []).filter(Hs).flatMap(
1374
1378
  (m) => m.getMdxComponents ? [m.getMdxComponents()] : []
1375
1379
  ).reduce(
1376
1380
  (m, N) => ({ ...m, ...N }),
@@ -1379,43 +1383,43 @@ const ot = {
1379
1383
  ...wt,
1380
1384
  ...(x = t.mdx) == null ? void 0 : x.components
1381
1385
  };
1382
- }, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } = Ht(oe), [i, o] = Q(!1), u = se(
1386
+ }, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } = Ht(oe), [i, o] = Q(!1), d = se(
1383
1387
  () => i ? { stagger: !0 } : { stagger: a },
1384
1388
  [a, i]
1385
- ), d = he();
1389
+ ), u = he();
1386
1390
  R(() => {
1387
1391
  i || o(!0);
1388
- }, [i, d.location]);
1389
- const [l] = Q(() => new Xs(t)), f = (h = t.plugins) == null ? void 0 : h.filter(Bs).map((p, x) => {
1392
+ }, [i, u.location]);
1393
+ const [l] = Q(() => new Ys(t)), f = (h = t.plugins) == null ? void 0 : h.filter(zs).map((p, x) => {
1390
1394
  var m;
1391
1395
  return /* @__PURE__ */ r.jsx(Lt, { children: (m = p.getHead) == null ? void 0 : m.call(p) }, x);
1392
1396
  });
1393
1397
  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, {}) }) }) }) }) }) }) })
1398
+ /* @__PURE__ */ r.jsx(de, { children: f }),
1399
+ /* @__PURE__ */ r.jsx(oe.Provider, { value: d, children: /* @__PURE__ */ r.jsx(tr, { context: l, children: /* @__PURE__ */ r.jsx(ts, { components: n, children: /* @__PURE__ */ r.jsx(fs, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(er, { value: s, children: /* @__PURE__ */ r.jsx(yt, { slotlets: t.slotlets, children: /* @__PURE__ */ r.jsx(kt, { children: e ?? /* @__PURE__ */ r.jsx(Be, {}) }) }) }) }) }) }) })
1396
1400
  ] });
1397
1401
  }
1398
1402
  );
1399
1403
  lt.displayName = "ZudokoInner";
1400
- const ct = (e) => /* @__PURE__ */ r.jsx(Ws, { FallbackComponent: Ys, children: /* @__PURE__ */ r.jsx(lt, { ...e }) });
1404
+ const ct = (e) => /* @__PURE__ */ r.jsx(_s, { FallbackComponent: Js, children: /* @__PURE__ */ r.jsx(lt, { ...e }) });
1401
1405
  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;
1406
+ const Pr = ss, Sr = Us, Dr = bt, Or = js, Mr = Cs, Ar = Ns, Ir = de, Er = T, Qr = U, Tr = ct, qr = jt, Rr = Ct, Fr = He, Br = xe, zr = vt, Hr = fe;
1403
1407
  export {
1404
- Or as Bootstrap,
1405
- Mr as BootstrapStatic,
1406
- Br as Button,
1407
- Tr as Callout,
1408
- Fr as ClientOnly,
1409
- Ar as Head,
1410
- Pr as Layout,
1411
- zr as Link,
1412
- qr as Markdown,
1413
- Sr as RouterError,
1414
- Dr as ServerError,
1415
- Rr as Spinner,
1416
- Qr as Zudoku,
1417
- Ir as useAuth,
1418
- Nr as useMDXComponents,
1408
+ Mr as Bootstrap,
1409
+ Ar as BootstrapStatic,
1410
+ zr as Button,
1411
+ qr as Callout,
1412
+ Br as ClientOnly,
1413
+ Ir as Head,
1414
+ Sr as Layout,
1415
+ Hr as Link,
1416
+ Rr as Markdown,
1417
+ Dr as RouterError,
1418
+ Or as ServerError,
1419
+ Fr as Spinner,
1420
+ Tr as Zudoku,
1421
+ Qr as useAuth,
1422
+ Pr as useMDXComponents,
1419
1423
  Er as useZudoku
1420
1424
  };
1421
1425
  //# sourceMappingURL=zudoku.components.js.map