zudoku 0.4.2-dev.1 → 0.4.2-dev.10

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 (71) hide show
  1. package/dist/cli/dev/handler.js +1 -0
  2. package/dist/cli/dev/handler.js.map +1 -1
  3. package/dist/lib/components/DeveloperHint.js +1 -3
  4. package/dist/lib/components/DeveloperHint.js.map +1 -1
  5. package/dist/lib/components/Header.js +1 -3
  6. package/dist/lib/components/Header.js.map +1 -1
  7. package/dist/lib/components/Layout.js +3 -1
  8. package/dist/lib/components/Layout.js.map +1 -1
  9. package/dist/lib/components/navigation/SidebarCategory.js +3 -1
  10. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  11. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  12. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  13. package/dist/lib/plugins/markdown/Toc.js +1 -1
  14. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  15. package/dist/lib/plugins/openapi/index.js +1 -1
  16. package/dist/lib/plugins/openapi/index.js.map +1 -1
  17. package/dist/lib/plugins/openapi/playground/Playground.js +9 -3
  18. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  19. package/dist/lib/plugins/openapi/playground/ResponseTab.js +3 -1
  20. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -1
  21. package/lib/{CategoryHeading-D7_Jy0Lx.js → CategoryHeading-BoT0DVI-.js} +2 -2
  22. package/lib/{CategoryHeading-D7_Jy0Lx.js.map → CategoryHeading-BoT0DVI-.js.map} +1 -1
  23. package/lib/{Combination-Ce1nWgn5.js → Combination-C1wKWZ28.js} +2 -2
  24. package/lib/{Combination-Ce1nWgn5.js.map → Combination-C1wKWZ28.js.map} +1 -1
  25. package/lib/DeveloperHint-Bv958_pY.js +16 -0
  26. package/lib/DeveloperHint-Bv958_pY.js.map +1 -0
  27. package/lib/{ErrorPage-uwQIn-3A.js → ErrorPage-CcBjrY_g.js} +3 -3
  28. package/lib/{ErrorPage-uwQIn-3A.js.map → ErrorPage-CcBjrY_g.js.map} +1 -1
  29. package/lib/{Input-CBiLCRuK.js → Input-BqnnTL7-.js} +3 -3
  30. package/lib/{Input-CBiLCRuK.js.map → Input-BqnnTL7-.js.map} +1 -1
  31. package/lib/{Markdown-h11bKkQ9.js → Markdown-C3hatKS5.js} +1009 -1086
  32. package/lib/Markdown-C3hatKS5.js.map +1 -0
  33. package/lib/{MdxPage-AzVbIhda.js → MdxPage-BEG8cDoF.js} +4 -4
  34. package/lib/MdxPage-BEG8cDoF.js.map +1 -0
  35. package/lib/{OperationList-DajrjZzx.js → OperationList-BEiJFfFr.js} +9 -9
  36. package/lib/{OperationList-DajrjZzx.js.map → OperationList-BEiJFfFr.js.map} +1 -1
  37. package/lib/{Route-D7sTrFzF.js → Route-BvREOAN6.js} +2 -2
  38. package/lib/{Route-D7sTrFzF.js.map → Route-BvREOAN6.js.map} +1 -1
  39. package/lib/{SidebarBadge-djIXD1Pv.js → SidebarBadge-C6wpM9X3.js} +3 -3
  40. package/lib/{SidebarBadge-djIXD1Pv.js.map → SidebarBadge-C6wpM9X3.js.map} +1 -1
  41. package/lib/{SlotletProvider-WwEUzQQ3.js → SlotletProvider-Bdzag6MN.js} +4 -4
  42. package/lib/{SlotletProvider-WwEUzQQ3.js.map → SlotletProvider-Bdzag6MN.js.map} +1 -1
  43. package/lib/{Spinner-D4ifRVWf.js → Spinner-DiA314T5.js} +2 -2
  44. package/lib/{Spinner-D4ifRVWf.js.map → Spinner-DiA314T5.js.map} +1 -1
  45. package/lib/{index-D2SS6ne_.js → index-ClDFRC39.js} +601 -595
  46. package/lib/index-ClDFRC39.js.map +1 -0
  47. package/lib/{index-CZAFD5xN.js → index-LWNs2niD.js} +3 -3
  48. package/lib/{index-CZAFD5xN.js.map → index-LWNs2niD.js.map} +1 -1
  49. package/lib/zudoku.auth-openid.js +4 -4
  50. package/lib/zudoku.components.js +152 -154
  51. package/lib/zudoku.components.js.map +1 -1
  52. package/lib/zudoku.plugin-api-keys.js +5 -5
  53. package/lib/zudoku.plugin-custom-page.js +1 -1
  54. package/lib/zudoku.plugin-markdown.js +1 -1
  55. package/lib/zudoku.plugin-openapi.js +4 -4
  56. package/package.json +3 -3
  57. package/src/app/main.css +17 -4
  58. package/src/lib/components/DeveloperHint.tsx +1 -3
  59. package/src/lib/components/Header.tsx +1 -2
  60. package/src/lib/components/Layout.tsx +5 -4
  61. package/src/lib/components/navigation/SidebarCategory.tsx +5 -2
  62. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  63. package/src/lib/plugins/markdown/Toc.tsx +1 -1
  64. package/src/lib/plugins/openapi/index.tsx +1 -1
  65. package/src/lib/plugins/openapi/playground/Playground.tsx +11 -5
  66. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +2 -1
  67. package/lib/DeveloperHint-BQSFXH01.js +0 -10
  68. package/lib/DeveloperHint-BQSFXH01.js.map +0 -1
  69. package/lib/Markdown-h11bKkQ9.js.map +0 -1
  70. package/lib/MdxPage-AzVbIhda.js.map +0 -1
  71. package/lib/index-D2SS6ne_.js.map +0 -1
@@ -15,19 +15,19 @@ var Ce = (e, t, n, r) => ({
15
15
  });
16
16
  import { H as jt, a as qe, M as lr, u as dr, A as hr, b as fr } from "./utils-BPHLKjns.js";
17
17
  import { d as pr, a as mr, R as gr, N as je, L as Ge, u as vr, O as Rt, b as xr, c as He } from "./index-ChhUJhLT.js";
18
- import { E as Et, S as se, a as yr, R as wr } from "./SlotletProvider-WwEUzQQ3.js";
18
+ import { E as Et, S as se, a as yr, R as wr } from "./SlotletProvider-Bdzag6MN.js";
19
19
  import { j as a } from "./jsx-runtime-B6kdoens.js";
20
- import { M as br, c as Mr, a as _t, b as Nt, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as Ue, g as _r, i as Dt, R as Nr, S as Dr, j as Ir, k as kr, l as It, m as Ar, n as Re, o as kt, p as ft, B as $e } from "./Combination-Ce1nWgn5.js";
21
- import { c as ue, a as b, C as Or, b as Tr, u as Fr, T as Lr, M as Kr, V as $r, d as ze, e as Br, f as Qr } from "./Markdown-h11bKkQ9.js";
20
+ import { M as br, c as Mr, a as _t, b as Nt, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as Ue, g as _r, i as Dt, R as Nr, S as Dr, j as Ir, k as kr, l as It, m as Ar, n as Re, o as kt, p as ft, B as $e } from "./Combination-C1wKWZ28.js";
21
+ import { c as ue, a as b, C as Or, b as Tr, u as Fr, T as Lr, M as Kr, V as $r, d as ze, e as Br, f as Qr } from "./Markdown-C3hatKS5.js";
22
22
  import * as c from "react";
23
23
  import qr, { StrictMode as At, createContext as Ot, Component as Gr, createElement as pt, isValidElement as Hr, useState as ie, useCallback as Tt, useEffect as z, Suspense as Ft, memo as Lt, useMemo as Fe, useContext as Ur, Fragment as zr, useRef as Ve, forwardRef as Vr } from "react";
24
24
  import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
25
25
  import { r as Yr } from "./router-BiRCp01d.js";
26
- import { S as Be, R as Xr, T as Wr, C as Jr } from "./index-CZAFD5xN.js";
26
+ import { S as Be, R as Xr, T as Wr, C as Jr } from "./index-LWNs2niD.js";
27
27
  import { S as Kt, h as $t, Q as Zr, n as E, m as mt, a as gt, b as $, e as ea, c as ta, d as na, f as ra, o as vt, r as xt, g as aa, i as yt, p as wt, s as oa, u as Ne, j as sa, Z as ia, k as ca, l as Bt, q as ua } from "./ZudokuContext-BHNQL3XO.js";
28
28
  import { j as Xe } from "./joinPath-B7kNnUX4.js";
29
- import { c as Qt, P as De, R as la, I as da, S as Le } from "./SidebarBadge-djIXD1Pv.js";
30
- import { S as ha } from "./Spinner-D4ifRVWf.js";
29
+ import { c as Qt, P as De, R as la, I as da, S as Le } from "./SidebarBadge-C6wpM9X3.js";
30
+ import { S as ha } from "./Spinner-DiA314T5.js";
31
31
  /**
32
32
  * @license lucide-react v0.378.0 - ISC
33
33
  *
@@ -531,16 +531,16 @@ function Ka(e) {
531
531
  const r = async () => {
532
532
  var x, M, I, Q, Y;
533
533
  const o = t.options, s = (I = (M = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : M.fetchMore) == null ? void 0 : I.direction, i = ((Q = t.state.data) == null ? void 0 : Q.pages) || [], u = ((Y = t.state.data) == null ? void 0 : Y.pageParams) || [], l = { pages: [], pageParams: [] };
534
- let g = !1;
534
+ let v = !1;
535
535
  const p = (C) => {
536
536
  Object.defineProperty(C, "signal", {
537
537
  enumerable: !0,
538
- get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
539
- g = !0;
538
+ get: () => (t.signal.aborted ? v = !0 : t.signal.addEventListener("abort", () => {
539
+ v = !0;
540
540
  }), t.signal)
541
541
  });
542
542
  }, d = ea(t.options, t.fetchOptions), h = async (C, k, L) => {
543
- if (g)
543
+ if (v)
544
544
  return Promise.reject();
545
545
  if (k == null && C.pages.length)
546
546
  return Promise.resolve(C);
@@ -559,25 +559,25 @@ function Ka(e) {
559
559
  pageParams: W(C.pageParams, k, be)
560
560
  };
561
561
  };
562
- let v;
562
+ let m;
563
563
  if (s && i.length) {
564
564
  const C = s === "backward", k = C ? $a : bt, L = {
565
565
  pages: i,
566
566
  pageParams: u
567
567
  }, X = k(o, L);
568
- v = await h(L, X, C);
568
+ m = await h(L, X, C);
569
569
  } else {
570
- v = await h(
570
+ m = await h(
571
571
  l,
572
572
  u[0] ?? o.initialPageParam
573
573
  );
574
574
  const C = e ?? i.length;
575
575
  for (let k = 1; k < C; k++) {
576
- const L = bt(o, v);
577
- v = await h(v, L);
576
+ const L = bt(o, m);
577
+ m = await h(m, L);
578
578
  }
579
579
  }
580
- return v;
580
+ return m;
581
581
  };
582
582
  t.options.persister ? t.fetchFn = () => {
583
583
  var o, s;
@@ -956,13 +956,13 @@ var Qe = ["Enter", " "], eo = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
956
956
  Nt,
957
957
  Qt
958
958
  ]), ye = Nt(), Xt = Qt(), [Wt, V] = J(xe), [so, we] = J(xe), Jt = (e) => {
959
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, g] = c.useState(null), p = c.useRef(!1), d = Ue(s), h = kr(o);
959
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, u = ye(t), [l, v] = c.useState(null), p = c.useRef(!1), d = Ue(s), h = kr(o);
960
960
  return c.useEffect(() => {
961
- const v = () => {
961
+ const m = () => {
962
962
  p.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
963
963
  }, x = () => p.current = !1;
964
- return document.addEventListener("keydown", v, { capture: !0 }), () => {
965
- document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
964
+ return document.addEventListener("keydown", m, { capture: !0 }), () => {
965
+ document.removeEventListener("keydown", m, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
966
966
  };
967
967
  }, []), /* @__PURE__ */ a.jsx(It, { ...u, children: /* @__PURE__ */ a.jsx(
968
968
  Wt,
@@ -971,7 +971,7 @@ var Qe = ["Enter", " "], eo = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
971
971
  open: n,
972
972
  onOpenChange: d,
973
973
  content: l,
974
- onContentChange: g,
974
+ onContentChange: v,
975
975
  children: /* @__PURE__ */ a.jsx(
976
976
  so,
977
977
  {
@@ -1052,24 +1052,24 @@ var D = "MenuContent", [uo, et] = J(D), tn = c.forwardRef(
1052
1052
  onCloseAutoFocus: i,
1053
1053
  disableOutsidePointerEvents: u,
1054
1054
  onEntryFocus: l,
1055
- onEscapeKeyDown: g,
1055
+ onEscapeKeyDown: v,
1056
1056
  onPointerDownOutside: p,
1057
1057
  onFocusOutside: d,
1058
1058
  onInteractOutside: h,
1059
- onDismiss: v,
1059
+ onDismiss: m,
1060
1060
  disableOutsideScroll: x,
1061
1061
  ...M
1062
- } = e, I = V(D, n), Q = we(D, n), Y = ye(n), C = Xt(n), k = ao(n), [L, X] = c.useState(null), Z = c.useRef(null), be = ge(t, Z, I.onContentChange), W = c.useRef(0), Me = c.useRef(""), ar = c.useRef(0), ke = c.useRef(null), it = c.useRef("right"), Ae = c.useRef(0), or = x ? Nr : c.Fragment, sr = x ? { as: Dr, allowPinchZoom: !0 } : void 0, ir = (m) => {
1062
+ } = e, I = V(D, n), Q = we(D, n), Y = ye(n), C = Xt(n), k = ao(n), [L, X] = c.useState(null), Z = c.useRef(null), be = ge(t, Z, I.onContentChange), W = c.useRef(0), Me = c.useRef(""), ar = c.useRef(0), ke = c.useRef(null), it = c.useRef("right"), Ae = c.useRef(0), or = x ? Nr : c.Fragment, sr = x ? { as: Dr, allowPinchZoom: !0 } : void 0, ir = (g) => {
1063
1063
  var te, ut;
1064
- const _ = Me.current + m, A = k().filter((K) => !K.disabled), q = document.activeElement, Oe = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Te = A.map((K) => K.textValue), ct = So(Te, _, Oe), le = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
1064
+ const _ = Me.current + g, A = k().filter((K) => !K.disabled), q = document.activeElement, Oe = (te = A.find((K) => K.ref.current === q)) == null ? void 0 : te.textValue, Te = A.map((K) => K.textValue), ct = So(Te, _, Oe), le = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
1065
1065
  (function K(lt) {
1066
1066
  Me.current = lt, window.clearTimeout(W.current), lt !== "" && (W.current = window.setTimeout(() => K(""), 1e3));
1067
1067
  })(_), le && setTimeout(() => le.focus());
1068
1068
  };
1069
1069
  c.useEffect(() => () => window.clearTimeout(W.current), []), Pr();
1070
- const ee = c.useCallback((m) => {
1070
+ const ee = c.useCallback((g) => {
1071
1071
  var A, q;
1072
- return it.current === ((A = ke.current) == null ? void 0 : A.side) && jo(m, (q = ke.current) == null ? void 0 : q.area);
1072
+ return it.current === ((A = ke.current) == null ? void 0 : A.side) && jo(g, (q = ke.current) == null ? void 0 : q.area);
1073
1073
  }, []);
1074
1074
  return /* @__PURE__ */ a.jsx(
1075
1075
  uo,
@@ -1077,36 +1077,36 @@ var D = "MenuContent", [uo, et] = J(D), tn = c.forwardRef(
1077
1077
  scope: n,
1078
1078
  searchRef: Me,
1079
1079
  onItemEnter: c.useCallback(
1080
- (m) => {
1081
- ee(m) && m.preventDefault();
1080
+ (g) => {
1081
+ ee(g) && g.preventDefault();
1082
1082
  },
1083
1083
  [ee]
1084
1084
  ),
1085
1085
  onItemLeave: c.useCallback(
1086
- (m) => {
1086
+ (g) => {
1087
1087
  var _;
1088
- ee(m) || ((_ = Z.current) == null || _.focus(), X(null));
1088
+ ee(g) || ((_ = Z.current) == null || _.focus(), X(null));
1089
1089
  },
1090
1090
  [ee]
1091
1091
  ),
1092
1092
  onTriggerLeave: c.useCallback(
1093
- (m) => {
1094
- ee(m) && m.preventDefault();
1093
+ (g) => {
1094
+ ee(g) && g.preventDefault();
1095
1095
  },
1096
1096
  [ee]
1097
1097
  ),
1098
1098
  pointerGraceTimerRef: ar,
1099
- onPointerGraceIntentChange: c.useCallback((m) => {
1100
- ke.current = m;
1099
+ onPointerGraceIntentChange: c.useCallback((g) => {
1100
+ ke.current = g;
1101
1101
  }, []),
1102
1102
  children: /* @__PURE__ */ a.jsx(or, { ...sr, children: /* @__PURE__ */ a.jsx(
1103
1103
  jr,
1104
1104
  {
1105
1105
  asChild: !0,
1106
1106
  trapped: o,
1107
- onMountAutoFocus: y(s, (m) => {
1107
+ onMountAutoFocus: y(s, (g) => {
1108
1108
  var _;
1109
- m.preventDefault(), (_ = Z.current) == null || _.focus({ preventScroll: !0 });
1109
+ g.preventDefault(), (_ = Z.current) == null || _.focus({ preventScroll: !0 });
1110
1110
  }),
1111
1111
  onUnmountAutoFocus: i,
1112
1112
  children: /* @__PURE__ */ a.jsx(
@@ -1114,11 +1114,11 @@ var D = "MenuContent", [uo, et] = J(D), tn = c.forwardRef(
1114
1114
  {
1115
1115
  asChild: !0,
1116
1116
  disableOutsidePointerEvents: u,
1117
- onEscapeKeyDown: g,
1117
+ onEscapeKeyDown: v,
1118
1118
  onPointerDownOutside: p,
1119
1119
  onFocusOutside: d,
1120
1120
  onInteractOutside: h,
1121
- onDismiss: v,
1121
+ onDismiss: m,
1122
1122
  children: /* @__PURE__ */ a.jsx(
1123
1123
  la,
1124
1124
  {
@@ -1129,8 +1129,8 @@ var D = "MenuContent", [uo, et] = J(D), tn = c.forwardRef(
1129
1129
  loop: r,
1130
1130
  currentTabStopId: L,
1131
1131
  onCurrentTabStopIdChange: X,
1132
- onEntryFocus: y(l, (m) => {
1133
- Q.isUsingKeyboardRef.current || m.preventDefault();
1132
+ onEntryFocus: y(l, (g) => {
1133
+ Q.isUsingKeyboardRef.current || g.preventDefault();
1134
1134
  }),
1135
1135
  preventScrollOnEntryFocus: !0,
1136
1136
  children: /* @__PURE__ */ a.jsx(
@@ -1145,25 +1145,25 @@ var D = "MenuContent", [uo, et] = J(D), tn = c.forwardRef(
1145
1145
  ...M,
1146
1146
  ref: be,
1147
1147
  style: { outline: "none", ...M.style },
1148
- onKeyDown: y(M.onKeyDown, (m) => {
1149
- const A = m.target.closest("[data-radix-menu-content]") === m.currentTarget, q = m.ctrlKey || m.altKey || m.metaKey, Oe = m.key.length === 1;
1150
- A && (m.key === "Tab" && m.preventDefault(), !q && Oe && ir(m.key));
1148
+ onKeyDown: y(M.onKeyDown, (g) => {
1149
+ const A = g.target.closest("[data-radix-menu-content]") === g.currentTarget, q = g.ctrlKey || g.altKey || g.metaKey, Oe = g.key.length === 1;
1150
+ A && (g.key === "Tab" && g.preventDefault(), !q && Oe && ir(g.key));
1151
1151
  const Te = Z.current;
1152
- if (m.target !== Te || !to.includes(m.key)) return;
1153
- m.preventDefault();
1152
+ if (g.target !== Te || !to.includes(g.key)) return;
1153
+ g.preventDefault();
1154
1154
  const le = k().filter((te) => !te.disabled).map((te) => te.ref.current);
1155
- Vt.includes(m.key) && le.reverse(), Mo(le);
1155
+ Vt.includes(g.key) && le.reverse(), Mo(le);
1156
1156
  }),
1157
- onBlur: y(e.onBlur, (m) => {
1158
- m.currentTarget.contains(m.target) || (window.clearTimeout(W.current), Me.current = "");
1157
+ onBlur: y(e.onBlur, (g) => {
1158
+ g.currentTarget.contains(g.target) || (window.clearTimeout(W.current), Me.current = "");
1159
1159
  }),
1160
1160
  onPointerMove: y(
1161
1161
  e.onPointerMove,
1162
- pe((m) => {
1163
- const _ = m.target, A = Ae.current !== m.clientX;
1164
- if (m.currentTarget.contains(_) && A) {
1165
- const q = m.clientX > Ae.current ? "right" : "left";
1166
- it.current = q, Ae.current = m.clientX;
1162
+ pe((g) => {
1163
+ const _ = g.target, A = Ae.current !== g.clientX;
1164
+ if (g.currentTarget.contains(_) && A) {
1165
+ const q = g.clientX > Ae.current ? "right" : "left";
1166
+ it.current = q, Ae.current = g.clientX;
1167
1167
  }
1168
1168
  })
1169
1169
  )
@@ -1196,11 +1196,11 @@ var po = "MenuLabel", nn = c.forwardRef(
1196
1196
  nn.displayName = po;
1197
1197
  var Ee = "MenuItem", Mt = "menu.itemSelect", Ie = c.forwardRef(
1198
1198
  (e, t) => {
1199
- const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(Ee, e.__scopeMenu), u = et(Ee, e.__scopeMenu), l = ge(t, s), g = c.useRef(!1), p = () => {
1199
+ const { disabled: n = !1, onSelect: r, ...o } = e, s = c.useRef(null), i = we(Ee, e.__scopeMenu), u = et(Ee, e.__scopeMenu), l = ge(t, s), v = c.useRef(!1), p = () => {
1200
1200
  const d = s.current;
1201
1201
  if (!n && d) {
1202
1202
  const h = new CustomEvent(Mt, { bubbles: !0, cancelable: !0 });
1203
- d.addEventListener(Mt, (v) => r == null ? void 0 : r(v), { once: !0 }), Ir(d, h), h.defaultPrevented ? g.current = !1 : i.onClose();
1203
+ d.addEventListener(Mt, (m) => r == null ? void 0 : r(m), { once: !0 }), Ir(d, h), h.defaultPrevented ? v.current = !1 : i.onClose();
1204
1204
  }
1205
1205
  };
1206
1206
  return /* @__PURE__ */ a.jsx(
@@ -1212,11 +1212,11 @@ var Ee = "MenuItem", Mt = "menu.itemSelect", Ie = c.forwardRef(
1212
1212
  onClick: y(e.onClick, p),
1213
1213
  onPointerDown: (d) => {
1214
1214
  var h;
1215
- (h = e.onPointerDown) == null || h.call(e, d), g.current = !0;
1215
+ (h = e.onPointerDown) == null || h.call(e, d), v.current = !0;
1216
1216
  },
1217
1217
  onPointerUp: y(e.onPointerUp, (d) => {
1218
1218
  var h;
1219
- g.current || (h = d.currentTarget) == null || h.click();
1219
+ v.current || (h = d.currentTarget) == null || h.click();
1220
1220
  }),
1221
1221
  onKeyDown: y(e.onKeyDown, (d) => {
1222
1222
  const h = u.searchRef.current !== "";
@@ -1229,10 +1229,10 @@ var Ee = "MenuItem", Mt = "menu.itemSelect", Ie = c.forwardRef(
1229
1229
  Ie.displayName = Ee;
1230
1230
  var rn = c.forwardRef(
1231
1231
  (e, t) => {
1232
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = et(Ee, n), u = Xt(n), l = c.useRef(null), g = ge(t, l), [p, d] = c.useState(!1), [h, v] = c.useState("");
1232
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = et(Ee, n), u = Xt(n), l = c.useRef(null), v = ge(t, l), [p, d] = c.useState(!1), [h, m] = c.useState("");
1233
1233
  return c.useEffect(() => {
1234
1234
  const x = l.current;
1235
- x && v((x.textContent ?? "").trim());
1235
+ x && m((x.textContent ?? "").trim());
1236
1236
  }, [s.children]), /* @__PURE__ */ a.jsx(
1237
1237
  fe.ItemSlot,
1238
1238
  {
@@ -1247,7 +1247,7 @@ var rn = c.forwardRef(
1247
1247
  "aria-disabled": r || void 0,
1248
1248
  "data-disabled": r ? "" : void 0,
1249
1249
  ...s,
1250
- ref: g,
1250
+ ref: v,
1251
1251
  onPointerMove: y(
1252
1252
  e.onPointerMove,
1253
1253
  pe((x) => {
@@ -1367,14 +1367,14 @@ var wo = "MenuArrow", fn = c.forwardRef(
1367
1367
  );
1368
1368
  fn.displayName = wo;
1369
1369
  var at = "MenuSub", [bo, pn] = J(at), mn = (e) => {
1370
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = V(at, t), i = ye(t), [u, l] = c.useState(null), [g, p] = c.useState(null), d = Ue(o);
1370
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = V(at, t), i = ye(t), [u, l] = c.useState(null), [v, p] = c.useState(null), d = Ue(o);
1371
1371
  return c.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ a.jsx(It, { ...i, children: /* @__PURE__ */ a.jsx(
1372
1372
  Wt,
1373
1373
  {
1374
1374
  scope: t,
1375
1375
  open: r,
1376
1376
  onOpenChange: d,
1377
- content: g,
1377
+ content: v,
1378
1378
  onContentChange: p,
1379
1379
  children: /* @__PURE__ */ a.jsx(
1380
1380
  bo,
@@ -1393,7 +1393,7 @@ var at = "MenuSub", [bo, pn] = J(at), mn = (e) => {
1393
1393
  mn.displayName = at;
1394
1394
  var de = "MenuSubTrigger", gn = c.forwardRef(
1395
1395
  (e, t) => {
1396
- const n = V(de, e.__scopeMenu), r = we(de, e.__scopeMenu), o = pn(de, e.__scopeMenu), s = et(de, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: l } = s, g = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
1396
+ const n = V(de, e.__scopeMenu), r = we(de, e.__scopeMenu), o = pn(de, e.__scopeMenu), s = et(de, e.__scopeMenu), i = c.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: l } = s, v = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
1397
1397
  i.current && window.clearTimeout(i.current), i.current = null;
1398
1398
  }, []);
1399
1399
  return c.useEffect(() => p, [p]), c.useEffect(() => {
@@ -1401,7 +1401,7 @@ var de = "MenuSubTrigger", gn = c.forwardRef(
1401
1401
  return () => {
1402
1402
  window.clearTimeout(d), l(null);
1403
1403
  };
1404
- }, [u, l]), /* @__PURE__ */ a.jsx(Je, { asChild: !0, ...g, children: /* @__PURE__ */ a.jsx(
1404
+ }, [u, l]), /* @__PURE__ */ a.jsx(Je, { asChild: !0, ...v, children: /* @__PURE__ */ a.jsx(
1405
1405
  rn,
1406
1406
  {
1407
1407
  id: o.triggerId,
@@ -1426,9 +1426,9 @@ var de = "MenuSubTrigger", gn = c.forwardRef(
1426
1426
  onPointerLeave: y(
1427
1427
  e.onPointerLeave,
1428
1428
  pe((d) => {
1429
- var v, x;
1429
+ var m, x;
1430
1430
  p();
1431
- const h = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1431
+ const h = (m = n.content) == null ? void 0 : m.getBoundingClientRect();
1432
1432
  if (h) {
1433
1433
  const M = (x = n.content) == null ? void 0 : x.dataset.side, I = M === "right", Q = I ? -5 : 5, Y = h[I ? "left" : "right"], C = h[I ? "right" : "left"];
1434
1434
  s.onPointerGraceIntentChange({
@@ -1453,9 +1453,9 @@ var de = "MenuSubTrigger", gn = c.forwardRef(
1453
1453
  })
1454
1454
  ),
1455
1455
  onKeyDown: y(e.onKeyDown, (d) => {
1456
- var v;
1456
+ var m;
1457
1457
  const h = s.searchRef.current !== "";
1458
- e.disabled || h && d.key === " " || no[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
1458
+ e.disabled || h && d.key === " " || no[r.dir].includes(d.key) && (n.onOpenChange(!0), (m = n.content) == null || m.focus(), d.preventDefault());
1459
1459
  })
1460
1460
  }
1461
1461
  ) });
@@ -1464,14 +1464,14 @@ var de = "MenuSubTrigger", gn = c.forwardRef(
1464
1464
  gn.displayName = de;
1465
1465
  var vn = "MenuSubContent", xn = c.forwardRef(
1466
1466
  (e, t) => {
1467
- const n = Zt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(D, e.__scopeMenu), i = we(D, e.__scopeMenu), u = pn(vn, e.__scopeMenu), l = c.useRef(null), g = ge(t, l);
1467
+ const n = Zt(D, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = V(D, e.__scopeMenu), i = we(D, e.__scopeMenu), u = pn(vn, e.__scopeMenu), l = c.useRef(null), v = ge(t, l);
1468
1468
  return /* @__PURE__ */ a.jsx(fe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(De, { present: r || s.open, children: /* @__PURE__ */ a.jsx(fe.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1469
1469
  tt,
1470
1470
  {
1471
1471
  id: u.contentId,
1472
1472
  "aria-labelledby": u.triggerId,
1473
1473
  ...o,
1474
- ref: g,
1474
+ ref: v,
1475
1475
  align: "start",
1476
1476
  side: i.dir === "rtl" ? "left" : "right",
1477
1477
  disableOutsidePointerEvents: !1,
@@ -1489,9 +1489,9 @@ var vn = "MenuSubContent", xn = c.forwardRef(
1489
1489
  i.onClose(), p.preventDefault();
1490
1490
  }),
1491
1491
  onKeyDown: y(e.onKeyDown, (p) => {
1492
- var v;
1492
+ var m;
1493
1493
  const d = p.currentTarget.contains(p.target), h = ro[i.dir].includes(p.key);
1494
- d && h && (s.onOpenChange(!1), (v = u.trigger) == null || v.focus(), p.preventDefault());
1494
+ d && h && (s.onOpenChange(!1), (m = u.trigger) == null || m.focus(), p.preventDefault());
1495
1495
  })
1496
1496
  }
1497
1497
  ) }) }) });
@@ -1516,11 +1516,11 @@ function Co(e, t) {
1516
1516
  return e.map((n, r) => e[(t + r) % e.length]);
1517
1517
  }
1518
1518
  function So(e, t, n) {
1519
- const o = t.length > 1 && Array.from(t).every((g) => g === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1519
+ const o = t.length > 1 && Array.from(t).every((v) => v === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1520
1520
  let i = Co(e, Math.max(s, 0));
1521
- o.length === 1 && (i = i.filter((g) => g !== n));
1521
+ o.length === 1 && (i = i.filter((v) => v !== n));
1522
1522
  const l = i.find(
1523
- (g) => g.toLowerCase().startsWith(o.toLowerCase())
1523
+ (v) => v.toLowerCase().startsWith(o.toLowerCase())
1524
1524
  );
1525
1525
  return l !== n ? l : void 0;
1526
1526
  }
@@ -1528,8 +1528,8 @@ function Po(e, t) {
1528
1528
  const { x: n, y: r } = e;
1529
1529
  let o = !1;
1530
1530
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1531
- const u = t[s].x, l = t[s].y, g = t[i].x, p = t[i].y;
1532
- l > r != p > r && n < (g - u) * (r - l) / (p - l) + u && (o = !o);
1531
+ const u = t[s].x, l = t[s].y, v = t[i].x, p = t[i].y;
1532
+ l > r != p > r && n < (v - u) * (r - l) / (p - l) + u && (o = !o);
1533
1533
  }
1534
1534
  return o;
1535
1535
  }
@@ -1553,7 +1553,7 @@ var Ro = Jt, Eo = Je, _o = en, No = tn, Do = nt, Io = nn, ko = Ie, Ao = an, Oo =
1553
1553
  defaultOpen: s,
1554
1554
  onOpenChange: i,
1555
1555
  modal: u = !0
1556
- } = e, l = P(t), g = c.useRef(null), [p = !1, d] = kt({
1556
+ } = e, l = P(t), v = c.useRef(null), [p = !1, d] = kt({
1557
1557
  prop: o,
1558
1558
  defaultProp: s,
1559
1559
  onChange: i
@@ -1563,7 +1563,7 @@ var Ro = Jt, Eo = Je, _o = en, No = tn, Do = nt, Io = nn, ko = Ie, Ao = an, Oo =
1563
1563
  {
1564
1564
  scope: t,
1565
1565
  triggerId: Re(),
1566
- triggerRef: g,
1566
+ triggerRef: v,
1567
1567
  contentId: Re(),
1568
1568
  open: p,
1569
1569
  onOpenChange: d,
@@ -1622,7 +1622,7 @@ var Pn = "DropdownMenuContent", jn = c.forwardRef(
1622
1622
  i.current || (l = o.triggerRef.current) == null || l.focus(), i.current = !1, u.preventDefault();
1623
1623
  }),
1624
1624
  onInteractOutside: y(e.onInteractOutside, (u) => {
1625
- const l = u.detail.originalEvent, g = l.button === 0 && l.ctrlKey === !0, p = l.button === 2 || g;
1625
+ const l = u.detail.originalEvent, v = l.button === 0 && l.ctrlKey === !0, p = l.button === 2 || v;
1626
1626
  (!o.modal || p) && (i.current = !0);
1627
1627
  }),
1628
1628
  style: {
@@ -1889,65 +1889,62 @@ const gs = () => {
1889
1889
  /* @__PURE__ */ a.jsx(Wn, { item: t }, n)
1890
1890
  )) }) })
1891
1891
  ] }, e.label) : /* @__PURE__ */ a.jsx(Ge, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(Vn, { children: e.label }, e.label) }), Jn = Lt(function() {
1892
- const t = ft(), [n, r] = Fr(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = ft(), u = Ne(), { page: l, plugins: g } = u, p = g.filter((h) => Ha(h)).flatMap((h) => h.getProfileMenuItems(u)).map((h) => /* @__PURE__ */ a.jsx(Wn, { item: h }, h.label)), d = n ? ma : va;
1893
- return (
1894
- // padding-left is to prevent layout jumping when scrollbar appears/disappears
1895
- /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 z-10 bg-background/80 backdrop-blur left-0 right-0 pl-[var(--scrollbar-width)]", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1896
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1897
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Ge, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1898
- (l == null ? void 0 : l.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1899
- /* @__PURE__ */ a.jsx(
1900
- "img",
1901
- {
1902
- src: l.logo.src.light,
1903
- alt: l.logo.alt ?? l.pageTitle,
1904
- style: { width: l.logo.width },
1905
- className: b("h-10", n && "hidden"),
1906
- loading: "lazy"
1907
- }
1908
- ),
1909
- /* @__PURE__ */ a.jsx(
1910
- "img",
1911
- {
1912
- src: l.logo.src.dark,
1913
- alt: l.logo.alt ?? l.pageTitle,
1914
- style: { width: l.logo.width },
1915
- className: b("h-10", !n && "hidden"),
1916
- loading: "lazy"
1917
- }
1918
- )
1892
+ const t = ft(), [n, r] = Fr(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = ft(), u = Ne(), { page: l, plugins: v } = u, p = v.filter((h) => Ha(h)).flatMap((h) => h.getProfileMenuItems(u)).map((h) => /* @__PURE__ */ a.jsx(Wn, { item: h }, h.label)), d = n ? ma : va;
1893
+ return /* @__PURE__ */ a.jsx("header", { className: "sticky top-0 z-10 bg-background/80 backdrop-blur w-full", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1894
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1895
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Ge, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1896
+ (l == null ? void 0 : l.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1897
+ /* @__PURE__ */ a.jsx(
1898
+ "img",
1899
+ {
1900
+ src: l.logo.src.light,
1901
+ alt: l.logo.alt ?? l.pageTitle,
1902
+ style: { width: l.logo.width },
1903
+ className: b("h-10", n && "hidden"),
1904
+ loading: "lazy"
1905
+ }
1906
+ ),
1907
+ /* @__PURE__ */ a.jsx(
1908
+ "img",
1909
+ {
1910
+ src: l.logo.src.dark,
1911
+ alt: l.logo.alt ?? l.pageTitle,
1912
+ style: { width: l.logo.width },
1913
+ className: b("h-10", !n && "hidden"),
1914
+ loading: "lazy"
1915
+ }
1916
+ )
1917
+ ] }),
1918
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
1919
+ ] }) }) }),
1920
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1921
+ /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(gs, {}) }),
1922
+ /* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1923
+ /* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
1924
+ i && !o ? /* @__PURE__ */ a.jsx($e, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ls, { modal: !1, children: [
1925
+ /* @__PURE__ */ a.jsx(ds, { asChild: !0, children: /* @__PURE__ */ a.jsx($e, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
1926
+ /* @__PURE__ */ a.jsxs(zn, { className: "w-56", children: [
1927
+ /* @__PURE__ */ a.jsx(Yn, { children: "My Account" }),
1928
+ /* @__PURE__ */ a.jsx(Xn, {}),
1929
+ p
1930
+ ] })
1919
1931
  ] }),
1920
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
1921
- ] }) }) }),
1922
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1923
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ a.jsx(gs, {}) }),
1924
- /* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1925
- /* @__PURE__ */ a.jsx(se, { name: "head-navigation-start" }),
1926
- i && !o ? /* @__PURE__ */ a.jsx($e, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : p.length > 0 && /* @__PURE__ */ a.jsxs(ls, { modal: !1, children: [
1927
- /* @__PURE__ */ a.jsx(ds, { asChild: !0, children: /* @__PURE__ */ a.jsx($e, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
1928
- /* @__PURE__ */ a.jsxs(zn, { className: "w-56", children: [
1929
- /* @__PURE__ */ a.jsx(Yn, { children: "My Account" }),
1930
- /* @__PURE__ */ a.jsx(Xn, {}),
1931
- p
1932
- ] })
1933
- ] }),
1934
- /* @__PURE__ */ a.jsx(
1935
- "button",
1936
- {
1937
- type: "button",
1938
- "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
1939
- className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1940
- onClick: r,
1941
- children: /* @__PURE__ */ a.jsx(d, { size: 18 })
1942
- }
1943
- ),
1944
- /* @__PURE__ */ a.jsx(se, { name: "head-navigation-end" })
1945
- ] })
1932
+ /* @__PURE__ */ a.jsx(
1933
+ "button",
1934
+ {
1935
+ type: "button",
1936
+ "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
1937
+ className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1938
+ onClick: r,
1939
+ children: /* @__PURE__ */ a.jsx(d, { size: 18 })
1940
+ }
1941
+ ),
1942
+ /* @__PURE__ */ a.jsx(se, { name: "head-navigation-end" })
1946
1943
  ] })
1947
- ] }),
1948
- /* @__PURE__ */ a.jsx(vs, {})
1949
- ] }) })
1950
- );
1944
+ ] })
1945
+ ] }),
1946
+ /* @__PURE__ */ a.jsx(vs, {})
1947
+ ] }) });
1951
1948
  }), Zn = {
1952
1949
  Header: Jn
1953
1950
  }, xs = Ot(Zn), ys = xs.Provider, ws = (e) => {
@@ -1991,13 +1988,13 @@ const gs = () => {
1991
1988
  z(() => {
1992
1989
  s || i(!0);
1993
1990
  }, [s, l.location]);
1994
- const [g] = ie(() => new Ja(t)), p = (h = t.plugins) == null ? void 0 : h.filter(Ya).map((v, x) => {
1991
+ const [v] = ie(() => new Ja(t)), p = (h = t.plugins) == null ? void 0 : h.filter(Ya).map((m, x) => {
1995
1992
  var M;
1996
- return /* @__PURE__ */ a.jsx(zr, { children: (M = v.getHead) == null ? void 0 : M.call(v) }, x);
1993
+ return /* @__PURE__ */ a.jsx(zr, { children: (M = m.getHead) == null ? void 0 : M.call(m) }, x);
1997
1994
  });
1998
1995
  return /* @__PURE__ */ a.jsxs(ca, { client: zt, children: [
1999
1996
  /* @__PURE__ */ a.jsx(qe, { children: p }),
2000
- /* @__PURE__ */ a.jsx(Be.Provider, { value: u, children: /* @__PURE__ */ a.jsx(bs, { context: g, children: /* @__PURE__ */ a.jsx(lr, { components: r, children: /* @__PURE__ */ a.jsx(ws, { children: /* @__PURE__ */ a.jsx(ys, { value: n, children: /* @__PURE__ */ a.jsx(yr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx($r, { children: e ?? /* @__PURE__ */ a.jsx(Rt, {}) }) }) }) }) }) }) })
1997
+ /* @__PURE__ */ a.jsx(Be.Provider, { value: u, children: /* @__PURE__ */ a.jsx(bs, { context: v, children: /* @__PURE__ */ a.jsx(lr, { components: r, children: /* @__PURE__ */ a.jsx(ws, { children: /* @__PURE__ */ a.jsx(ys, { value: n, children: /* @__PURE__ */ a.jsx(yr, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx($r, { children: e ?? /* @__PURE__ */ a.jsx(Rt, {}) }) }) }) }) }) }) })
2001
1998
  ] });
2002
1999
  }, Cs = Lt(Ms), er = (e) => /* @__PURE__ */ a.jsx(qa, { FallbackComponent: Za, children: /* @__PURE__ */ a.jsx(Cs, { ...e }) });
2003
2000
  er.displayName = "DevPortal";
@@ -2006,7 +2003,7 @@ const Ss = ({
2006
2003
  level: t
2007
2004
  }) => {
2008
2005
  var h;
2009
- const n = Bt(), r = dr(e), [o, s] = ie(!1), i = e.collapsible ?? !0, u = e.collapsed ?? !0, l = !!(!i || !u || r), [g, p] = ie(l);
2006
+ const n = Bt(), r = dr(e), [o, s] = ie(!1), i = e.collapsible ?? !0, u = e.collapsed ?? !0, l = !!(!i || !u || r), [v, p] = ie(l);
2010
2007
  z(() => {
2011
2008
  r && p(!0);
2012
2009
  }, [r]);
@@ -2014,8 +2011,8 @@ const Ss = ({
2014
2011
  "button",
2015
2012
  {
2016
2013
  type: "button",
2017
- onClick: (v) => {
2018
- v.preventDefault(), p((x) => !x), s(!0);
2014
+ onClick: (m) => {
2015
+ m.preventDefault(), p((x) => !x), s(!0);
2019
2016
  },
2020
2017
  children: /* @__PURE__ */ a.jsx(
2021
2018
  qt,
@@ -2034,7 +2031,7 @@ const Ss = ({
2034
2031
  {
2035
2032
  className: b("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
2036
2033
  defaultOpen: l,
2037
- open: g,
2034
+ open: v,
2038
2035
  onOpenChange: () => p(!0),
2039
2036
  children: [
2040
2037
  /* @__PURE__ */ a.jsx(
@@ -2047,12 +2044,12 @@ const Ss = ({
2047
2044
  ),
2048
2045
  asChild: !0,
2049
2046
  disabled: !i,
2050
- children: ((h = e.link) == null ? void 0 : h.type) === "doc" ? /* @__PURE__ */ a.jsx(je, { to: Xe(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: v }) => /* @__PURE__ */ a.jsxs(
2047
+ children: ((h = e.link) == null ? void 0 : h.type) === "doc" ? /* @__PURE__ */ a.jsx(je, { to: Xe(n == null ? void 0 : n.id, e.link.id), children: ({ isActive: m }) => /* @__PURE__ */ a.jsxs(
2051
2048
  "div",
2052
2049
  {
2053
2050
  className: b(
2054
2051
  "flex items-center gap-2 justify-between w-full",
2055
- v ? "text-primary font-medium" : "text-foreground/80"
2052
+ m ? "text-primary font-medium" : "text-foreground/80"
2056
2053
  ),
2057
2054
  children: [
2058
2055
  /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
@@ -2073,13 +2070,13 @@ const Ss = ({
2073
2070
  o && "CollapsibleContent",
2074
2071
  "ms-[calc(var(--padding-nav-item)*1.125)]"
2075
2072
  ),
2076
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
2073
+ children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((m) => /* @__PURE__ */ a.jsx(
2077
2074
  nr,
2078
2075
  {
2079
2076
  level: t + 1,
2080
- item: v
2077
+ item: m
2081
2078
  },
2082
- v.label
2079
+ ("id" in m ? m.id : "") + ("href" in m ? m.href : "") + m.label
2083
2080
  )) })
2084
2081
  }
2085
2082
  )
@@ -2202,7 +2199,7 @@ const Ss = ({
2202
2199
  className: b(
2203
2200
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
2204
2201
  "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
2205
- "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
2202
+ "w-[--side-nav-width] h-full scroll-pt-2 gap-2",
2206
2203
  t
2207
2204
  ),
2208
2205
  ref: r,
@@ -2239,18 +2236,19 @@ const Es = () => {
2239
2236
  (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
2240
2237
  ] }),
2241
2238
  /* @__PURE__ */ a.jsx(Jn, {}),
2242
- /* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
2239
+ /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsxs(
2243
2240
  Ft,
2244
2241
  {
2245
- fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(ha, {}) }),
2242
+ fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(ha, {}) }),
2246
2243
  children: [
2247
2244
  /* @__PURE__ */ a.jsx(Es, {}),
2248
2245
  /* @__PURE__ */ a.jsxs(
2249
2246
  "main",
2250
2247
  {
2251
2248
  className: b(
2252
- "dark:border-white/10 translate-x-0 h-full",
2249
+ "dark:border-white/10 translate-x-0",
2253
2250
  "lg:overflow-visible",
2251
+ // This works in tandem with the `SidebarWrapper` component
2254
2252
  "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
2255
2253
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
2256
2254
  ),