zudoku 0.3.0-dev.21 → 0.3.0-dev.23

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/config/config.d.ts +1 -1
  2. package/dist/lib/authentication/authentication.d.ts +1 -1
  3. package/dist/lib/plugins/api-keys/index.js +1 -0
  4. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  5. package/dist/lib/plugins/markdown/generateRoutes.js +1 -1
  6. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  7. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  8. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  9. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +1 -1
  10. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  11. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  12. package/dist/lib/plugins/openapi/Route.js +8 -0
  13. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  14. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  15. package/dist/lib/plugins/openapi/context.js +11 -0
  16. package/dist/lib/plugins/openapi/context.js.map +1 -0
  17. package/dist/lib/plugins/openapi/index.d.ts +1 -19
  18. package/dist/lib/plugins/openapi/index.js +17 -18
  19. package/dist/lib/plugins/openapi/index.js.map +1 -1
  20. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  21. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  22. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  23. package/dist/vite/config.js +5 -1
  24. package/dist/vite/config.js.map +1 -1
  25. package/dist/vite/plugin-api-keys.js +3 -4
  26. package/dist/vite/plugin-api-keys.js.map +1 -1
  27. package/dist/vite/plugin-api.js +3 -7
  28. package/dist/vite/plugin-api.js.map +1 -1
  29. package/dist/vite/plugin-auth.js +2 -3
  30. package/dist/vite/plugin-auth.js.map +1 -1
  31. package/dist/vite/plugin-config.d.ts +0 -1
  32. package/dist/vite/plugin-config.js +11 -6
  33. package/dist/vite/plugin-config.js.map +1 -1
  34. package/dist/vite/plugin-redirect.js +2 -5
  35. package/dist/vite/plugin-redirect.js.map +1 -1
  36. package/lib/{util-voKLTRDG.js → AnchorLink-DIUlXlf0.js} +149 -184
  37. package/lib/DevPortalProvider-gzyAGqHT.js +1080 -0
  38. package/lib/{Markdown-5LmPZyLV.js → Markdown-BjA7peYW.js} +3 -3
  39. package/lib/{MdxComponents-DYD_QPVF.js → MdxComponents-W-fE1ISO.js} +130 -129
  40. package/lib/MdxPage-DQ7lZBzE.js +216 -0
  41. package/lib/OperationList-DuIBqFNA.js +5545 -0
  42. package/lib/Route-B98Y2MdH.js +13 -0
  43. package/lib/{Select-DR3PiqjV.js → Select-DczD5e29.js} +24 -22
  44. package/lib/{Spinner-DjQ2eBxC.js → Spinner-CSoij67T.js} +3 -3
  45. package/lib/cn-DpqTslo9.js +2341 -0
  46. package/lib/context-_fYfJFgk.js +13 -0
  47. package/lib/{hook-FCY9-FHO.js → hook-CBXxHulF.js} +1 -1
  48. package/lib/{index-By9bEW57.js → index-C7O9D7f6.js} +15 -15
  49. package/lib/index-CKvOcM7w.js +712 -0
  50. package/lib/index-Cg6lXS1z.js +709 -0
  51. package/lib/index-ClDDiRmC.js +463 -0
  52. package/lib/router-DibNxKUP.js +3008 -0
  53. package/lib/util-CaVongBq.js +40 -0
  54. package/lib/zudoku.auth-openid.js +7 -6
  55. package/lib/zudoku.components.js +73 -69
  56. package/lib/zudoku.plugin-api-keys.js +26 -23
  57. package/lib/zudoku.plugin-markdown.js +33 -237
  58. package/lib/zudoku.plugin-openapi.js +5 -6238
  59. package/lib/zudoku.plugin-redirect.js +7 -6
  60. package/package.json +1 -1
  61. package/src/lib/authentication/authentication.ts +1 -1
  62. package/src/lib/plugins/api-keys/index.tsx +1 -0
  63. package/src/lib/plugins/markdown/generateRoutes.tsx +2 -2
  64. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  65. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +1 -1
  66. package/src/lib/plugins/openapi/Route.tsx +21 -0
  67. package/src/lib/plugins/openapi/context.tsx +16 -0
  68. package/src/lib/plugins/openapi/index.tsx +19 -46
  69. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  70. package/lib/DevPortalProvider-CRKuwoXc.js +0 -4123
  71. package/lib/index-PyGcnQFX.js +0 -3462
@@ -0,0 +1,216 @@
1
+ import { j as e } from "./router-DibNxKUP.js";
2
+ import { useRef as C, useState as L, useEffect as D, useMemo as M } from "react";
3
+ import { P, C as R } from "./Markdown-BjA7peYW.js";
4
+ import { a as J, H as A } from "./MdxComponents-W-fE1ISO.js";
5
+ import { j as G } from "./DevPortalProvider-gzyAGqHT.js";
6
+ import { t as T, i as Y } from "./util-CaVongBq.js";
7
+ import { A as Z, H as W, u as $ } from "./AnchorLink-DIUlXlf0.js";
8
+ import { c as q, L as H } from "./index-CKvOcM7w.js";
9
+ import { c as v } from "./cn-DpqTslo9.js";
10
+ import { c as _, g as B } from "./_commonjsHelpers-BkfeUUK-.js";
11
+ import { u as F } from "./index-ClDDiRmC.js";
12
+ /**
13
+ * @license lucide-react v0.378.0 - ISC
14
+ *
15
+ * This source code is licensed under the ISC license.
16
+ * See the LICENSE file in the root directory of this source tree.
17
+ */
18
+ const K = q("ListTree", [
19
+ ["path", { d: "M21 12h-8", key: "1bmf0i" }],
20
+ ["path", { d: "M21 6H8", key: "1pqkrb" }],
21
+ ["path", { d: "M21 18h-8", key: "1tm79t" }],
22
+ ["path", { d: "M3 6v4c0 1.1.9 2 2 2h3", key: "1ywdgy" }],
23
+ ["path", { d: "M3 10v6c0 1.1.9 2 2 2h3", key: "2wc746" }]
24
+ ]);
25
+ var U = { exports: {} };
26
+ (function(o, r) {
27
+ (function(a, n, i) {
28
+ o.exports = i(), o.exports.default = i();
29
+ })("slugify", _, function() {
30
+ var a = JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`), n = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
31
+ function i(s, t) {
32
+ if (typeof s != "string")
33
+ throw new Error("slugify: string argument expected");
34
+ t = typeof t == "string" ? { replacement: t } : t || {};
35
+ var h = n[t.locale] || {}, m = t.replacement === void 0 ? "-" : t.replacement, b = t.trim === void 0 ? !0 : t.trim, l = s.normalize().split("").reduce(function(j, p) {
36
+ var d = h[p];
37
+ return d === void 0 && (d = a[p]), d === void 0 && (d = p), d === m && (d = " "), j + d.replace(t.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
38
+ }, "");
39
+ return t.strict && (l = l.replace(/[^A-Za-z0-9\s]/g, "")), b && (l = l.trim()), l = l.replace(/\s+/g, m), t.lower && (l = l.toLowerCase()), l;
40
+ }
41
+ return i.extend = function(s) {
42
+ Object.assign(a, s);
43
+ }, i;
44
+ });
45
+ })(U);
46
+ var V = U.exports;
47
+ const X = /* @__PURE__ */ B(V), z = "data-active", I = ({
48
+ item: o,
49
+ children: r,
50
+ className: a,
51
+ isActive: n
52
+ }) => /* @__PURE__ */ e.jsxs(
53
+ "li",
54
+ {
55
+ className: v(
56
+ "truncate",
57
+ n ? "text-primary" : "text-foreground/65 dark:text-foreground/75",
58
+ a
59
+ ),
60
+ title: o.value,
61
+ children: [
62
+ /* @__PURE__ */ e.jsx(
63
+ Z,
64
+ {
65
+ to: `#${o.id}`,
66
+ [z]: o.id,
67
+ className: v(
68
+ n ? "text-primary" : "text-foreground/65 dark:text-foreground/75 hover:text-foreground"
69
+ ),
70
+ children: o.value
71
+ }
72
+ ),
73
+ r
74
+ ]
75
+ }
76
+ ), Q = ({ entries: o }) => {
77
+ const { activeAnchor: r } = J(), a = C(null), [n, i] = L({});
78
+ return D(() => {
79
+ if (!a.current) return;
80
+ const s = a.current.querySelector(
81
+ `[${z}='${r}']`
82
+ );
83
+ if (!s) {
84
+ i({
85
+ "--indicator-top": "0",
86
+ "--indicator-opacity": 0
87
+ });
88
+ return;
89
+ }
90
+ const t = a.current.getBoundingClientRect().top, h = s.getBoundingClientRect().top;
91
+ i({
92
+ "--indicator-top": `${h - t}px`,
93
+ "--indicator-opacity": 1
94
+ });
95
+ }, [r]), /* @__PURE__ */ e.jsxs("aside", { className: "sticky top-[--header-height] h-[calc(100vh-var(--header-height))] pt-[--padding-content-top] pb-[--padding-content-bottom] overflow-y-auto ps-1 text-sm", children: [
96
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 font-medium mb-2", children: [
97
+ /* @__PURE__ */ e.jsx(K, { size: 16 }),
98
+ "On this page"
99
+ ] }),
100
+ /* @__PURE__ */ e.jsx(
101
+ "ul",
102
+ {
103
+ ref: a,
104
+ style: n,
105
+ className: v(
106
+ "relative ms-2 ps-4 font-medium list-none mt-0 space-y-2",
107
+ "before:absolute before:inset-0 before:right-auto before:bg-border before:w-[2px]",
108
+ "after:absolute after:-left-px after:-translate-y-1 after:top-[--indicator-top] after:opacity-[--indicator-opacity] after:h-6 after:bg-primary after:w-[4px] after:rounded after:ease-out after:[transition:top__150ms,opacity_325ms]"
109
+ ),
110
+ children: o.map((s) => /* @__PURE__ */ e.jsx(
111
+ I,
112
+ {
113
+ isActive: s.id === r,
114
+ item: s,
115
+ className: "pl-0",
116
+ children: s.children && /* @__PURE__ */ e.jsx("ul", { className: "list-none pl-4 pt-2 space-y-2", children: s.children.map((t) => /* @__PURE__ */ e.jsx(
117
+ I,
118
+ {
119
+ item: t,
120
+ isActive: t.id === r
121
+ },
122
+ t.id
123
+ )) })
124
+ },
125
+ s.id
126
+ ))
127
+ }
128
+ )
129
+ ] });
130
+ }, ee = {
131
+ h2: ({ children: o, id: r }) => /* @__PURE__ */ e.jsx(A, { level: 2, id: r, registerSidebarAnchor: !0, children: o }),
132
+ h3: ({ children: o, id: r }) => /* @__PURE__ */ e.jsxs(A, { level: 3, id: r, registerSidebarAnchor: !0, children: [
133
+ " ",
134
+ o
135
+ ] })
136
+ }, ue = ({
137
+ mdxComponent: o,
138
+ frontmatter: r = {},
139
+ defaultOptions: a,
140
+ tableOfContents: n
141
+ }) => {
142
+ var E, N;
143
+ const i = G(), s = F(), t = i ? T(i, (c, g, y) => {
144
+ var u;
145
+ if (g === s.pathname)
146
+ return (u = y.at(0)) == null ? void 0 : u.label;
147
+ }) : void 0, h = r.title, m = r.category ?? t, b = r.toc === !1 || (a == null ? void 0 : a.toc) === !1, l = ((E = n.find((c) => c.depth === 1)) == null ? void 0 : E.value) ?? h, j = r.disablePager ?? (a == null ? void 0 : a.disablePager) ?? !1, p = ((N = n.find((c) => c.depth === 1)) == null ? void 0 : N.children) ?? // if `title` is provided by frontmatter it does not appear in the table of contents
148
+ n.filter((c) => c.depth === 2), d = !b && p.length > 0, { prev: f, next: x } = M(() => {
149
+ let c = { path: "", label: "" }, g = { path: "", label: "" }, y = !1;
150
+ return i ? (T(i, (u, k) => {
151
+ var O, S;
152
+ const w = { path: k, label: u.label };
153
+ if (y && Y(u) && !((O = u.children) != null && O.length))
154
+ return g = w, !0;
155
+ k === s.pathname && (y = !0), !y && Y(u) && !((S = u.children) != null && S.length) && (c = w);
156
+ }), { prev: c, next: g }) : { prev: c, next: g };
157
+ }, [i, s.pathname]);
158
+ return /* @__PURE__ */ e.jsxs("div", { className: "xl:grid grid-cols-[--sidecar-grid-cols] gap-8 justify-between", children: [
159
+ /* @__PURE__ */ e.jsx(W, { children: /* @__PURE__ */ e.jsx("title", { children: l }) }),
160
+ /* @__PURE__ */ e.jsxs(
161
+ "div",
162
+ {
163
+ className: v(
164
+ P,
165
+ "max-w-full xl:w-full xl:max-w-prose flex-1 flex-shrink pt-[--padding-content-top] pb-[--padding-content-bottom]"
166
+ ),
167
+ children: [
168
+ /* @__PURE__ */ e.jsxs("header", { children: [
169
+ m && /* @__PURE__ */ e.jsx(R, { children: m }),
170
+ h && /* @__PURE__ */ e.jsx(A, { level: 1, id: X(h, { lower: !0 }), children: h }),
171
+ r.description && /* @__PURE__ */ e.jsx("p", { className: "prose-lg", children: r.description })
172
+ ] }),
173
+ /* @__PURE__ */ e.jsx(
174
+ o,
175
+ {
176
+ components: { ...$(), ...ee }
177
+ }
178
+ ),
179
+ !j && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
180
+ /* @__PURE__ */ e.jsx("hr", {}),
181
+ /* @__PURE__ */ e.jsxs("div", { className: "not-prose flex items-center justify-between gap-8", children: [
182
+ f.path ? /* @__PURE__ */ e.jsxs(
183
+ H,
184
+ {
185
+ to: f.path,
186
+ className: "flex flex-col items-stretch gap-2 flex-1 truncate border border-border rounded px-6 py-4 text-start hover:border-primary/85 transition shadow-sm hover:shadow-md",
187
+ title: typeof f.label == "string" ? f.label : void 0,
188
+ children: [
189
+ /* @__PURE__ */ e.jsx("div", { className: "text-sm text-muted-foreground", children: "← Previous page" }),
190
+ /* @__PURE__ */ e.jsx("div", { className: "text-lg text-primary truncate", children: f.label })
191
+ ]
192
+ }
193
+ ) : /* @__PURE__ */ e.jsx("div", { className: "flex-1" }),
194
+ x.path ? /* @__PURE__ */ e.jsxs(
195
+ H,
196
+ {
197
+ to: x.path,
198
+ className: "flex flex-col items-stretch gap-2 flex-1 truncate border border-border rounded px-6 py-4 text-end hover:border-primary/85 transition shadow-sm hover:shadow-md",
199
+ title: typeof x.label == "string" ? x.label : void 0,
200
+ children: [
201
+ /* @__PURE__ */ e.jsx("div", { className: "text-sm text-muted-foreground", children: "Next page →" }),
202
+ /* @__PURE__ */ e.jsx("div", { className: "text-lg text-primary truncate", children: x.label })
203
+ ]
204
+ }
205
+ ) : /* @__PURE__ */ e.jsx("div", { className: "flex-1" })
206
+ ] })
207
+ ] })
208
+ ]
209
+ }
210
+ ),
211
+ /* @__PURE__ */ e.jsx("div", { className: "hidden xl:block", children: d && /* @__PURE__ */ e.jsx(Q, { entries: p }) })
212
+ ] });
213
+ };
214
+ export {
215
+ ue as MdxPage
216
+ };