zudoku 0.23.9 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +1 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/lib/components/index.d.ts +17 -13
- package/dist/lib/components/index.js +6 -2
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +1 -1
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.d.ts +1 -0
- package/dist/lib/oas/parser/dereference/index.js +6 -3
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +7 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
- package/dist/vite/dev-server.d.ts +1 -0
- package/dist/vite/dev-server.js +4 -0
- package/dist/vite/dev-server.js.map +1 -1
- package/lib/{AuthenticationPlugin-fB7viE7A.js → AuthenticationPlugin-DVLEc6cm.js} +2 -2
- package/lib/{AuthenticationPlugin-fB7viE7A.js.map → AuthenticationPlugin-DVLEc6cm.js.map} +1 -1
- package/lib/{MdxPage-CPBw4_lf.js → MdxPage-DKMbBROv.js} +2 -2
- package/lib/{MdxPage-CPBw4_lf.js.map → MdxPage-DKMbBROv.js.map} +1 -1
- package/lib/{OperationList-ChQR0IcQ.js → OperationList-CqLL5P5l.js} +574 -568
- package/lib/{OperationList-ChQR0IcQ.js.map → OperationList-CqLL5P5l.js.map} +1 -1
- package/lib/{Route-Ag5MH86N.js → Route-DYwKZ_c_.js} +2 -2
- package/lib/{Route-Ag5MH86N.js.map → Route-DYwKZ_c_.js.map} +1 -1
- package/lib/{Select-D3XuKKuH.js → Select-B_IxRUUC.js} +3 -3
- package/lib/{Select-D3XuKKuH.js.map → Select-B_IxRUUC.js.map} +1 -1
- package/lib/{utils-B4O1uet5.js → ZudokuContext-hmLMUdf2.js} +37 -37
- package/lib/ZudokuContext-hmLMUdf2.js.map +1 -0
- package/lib/assets/{worker-D2kRl-cG.js → worker-DV9Ecqy9.js} +348 -346
- package/lib/assets/{worker-D2kRl-cG.js.map → worker-DV9Ecqy9.js.map} +1 -1
- package/lib/{createServer-69sLlmQA.js → createServer-C4C0OO0m.js} +1250 -1285
- package/lib/createServer-C4C0OO0m.js.map +1 -0
- package/lib/{hook-DgGeo5iL.js → hook-CHq7pFyz.js} +2 -2
- package/lib/{hook-DgGeo5iL.js.map → hook-CHq7pFyz.js.map} +1 -1
- package/lib/index-DyBL--Kz.js +826 -0
- package/lib/index-DyBL--Kz.js.map +1 -0
- package/lib/{index-DtJxZrbj.js → index-DzRORsY1.js} +7 -7
- package/lib/{index-DtJxZrbj.js.map → index-DzRORsY1.js.map} +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +173 -172
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +3 -3
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/package.json +3 -3
- package/src/lib/components/index.ts +7 -3
- package/src/lib/components/navigation/SidebarItem.tsx +1 -1
- package/src/lib/oas/parser/dereference/index.ts +9 -4
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +25 -1
- package/lib/createServer-69sLlmQA.js.map +0 -1
- package/lib/object_hash-BNWPnMN9.js +0 -787
- package/lib/object_hash-BNWPnMN9.js.map +0 -1
- package/lib/utils-B4O1uet5.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
1
|
+
var dt = Object.defineProperty;
|
|
2
2
|
var ve = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var k = (e, t, s) =>
|
|
5
|
+
var ht = (e, t, s) => t in e ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
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
|
-
var
|
|
8
|
+
var Y = (e, t, s, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
b(e, t, a, s);
|
|
11
11
|
},
|
|
@@ -14,45 +14,41 @@ var X = (e, t, s, n) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import { a as Fe, H as ue } from "./index.esm-BSV1C092.js";
|
|
17
|
-
import { R as
|
|
18
|
-
import { u as
|
|
19
|
-
import { E as ze, S as D, a as
|
|
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";
|
|
18
|
+
import { M as xt, u as U } from "./hook-CHq7pFyz.js";
|
|
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";
|
|
21
|
-
import { Button as
|
|
22
|
-
import { Callout as
|
|
23
|
-
import { S as He
|
|
24
|
-
import {
|
|
21
|
+
import { Button as vt } from "./ui/Button.js";
|
|
22
|
+
import { Callout as jt } from "./ui/Callout.js";
|
|
23
|
+
import { S as He } from "./Spinner-DuxJLLNE.js";
|
|
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
26
|
import * as $ from "react";
|
|
26
|
-
import
|
|
27
|
-
import * as
|
|
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
|
+
import * as Kt from "react-dom";
|
|
28
29
|
import { S as oe } from "./StaggeredRender-DgsamH_G.js";
|
|
29
|
-
import { C as
|
|
30
|
-
import { ChevronRightIcon as
|
|
31
|
-
import { Drawer as
|
|
30
|
+
import { C as xe } from "./ClientOnly-E7hGysn1.js";
|
|
31
|
+
import { ChevronRightIcon as $t, ExternalLinkIcon as Zt, CircleXIcon as Vt, SearchIcon as Ut, MoonStarIcon as Wt, SunIcon as _t, MenuIcon as Xt, PanelLeftIcon as Yt } from "lucide-react";
|
|
32
|
+
import { Drawer as _e, DrawerTrigger as Xe, DrawerContent as Ye, DrawerTitle as Je } from "./ui/Drawer.js";
|
|
32
33
|
import { c as O } from "./cn-qaFjX9_3.js";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { A as Gt, M as es, u as ts } from "./AnchorLink-DFZZbmvr.js";
|
|
34
|
+
import { c as Jt, a as Gt } from "./index-CPNSgwSb.js";
|
|
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
|
|
39
|
-
import { VisuallyHidden as
|
|
40
|
-
import { z as
|
|
41
|
-
import { Z as
|
|
42
|
-
|
|
43
|
-
function ms({ error: e }) {
|
|
44
|
-
return /* @__PURE__ */ r.jsx(ze, { error: e });
|
|
45
|
-
}
|
|
46
|
-
var S, Te, ps = (Te = class extends He {
|
|
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";
|
|
39
|
+
import { VisuallyHidden as Ge } from "@radix-ui/react-visually-hidden";
|
|
40
|
+
import { z as hs, J as fs } from "./SyntaxHighlight-Bz-lOJtH.js";
|
|
41
|
+
import { Z as gs } from "./invariant-Caa8-XvF.js";
|
|
42
|
+
var S, Te, ms = (Te = class extends Le {
|
|
47
43
|
constructor(t = {}) {
|
|
48
44
|
super();
|
|
49
45
|
C(this, S);
|
|
50
46
|
this.config = t, b(this, S, /* @__PURE__ */ new Map());
|
|
51
47
|
}
|
|
52
48
|
build(t, s, n) {
|
|
53
|
-
const a = s.queryKey, i = s.queryHash ??
|
|
49
|
+
const a = s.queryKey, i = s.queryHash ?? Ke(a, s);
|
|
54
50
|
let o = this.get(i);
|
|
55
|
-
return o || (o = new
|
|
51
|
+
return o || (o = new Nt({
|
|
56
52
|
cache: this,
|
|
57
53
|
queryKey: a,
|
|
58
54
|
queryHash: i,
|
|
@@ -115,29 +111,29 @@ var S, Te, ps = (Te = class extends He {
|
|
|
115
111
|
});
|
|
116
112
|
});
|
|
117
113
|
}
|
|
118
|
-
}, S = new WeakMap(), Te), j,
|
|
114
|
+
}, S = new WeakMap(), Te), j, W, qe, ps = (qe = class extends Le {
|
|
119
115
|
constructor(t = {}) {
|
|
120
116
|
super();
|
|
121
117
|
C(this, j);
|
|
122
|
-
C(this,
|
|
123
|
-
this.config = t, b(this, j, /* @__PURE__ */ new Map()), b(this,
|
|
118
|
+
C(this, W);
|
|
119
|
+
this.config = t, b(this, j, /* @__PURE__ */ new Map()), b(this, W, Date.now());
|
|
124
120
|
}
|
|
125
121
|
build(t, s, n) {
|
|
126
|
-
const a = new
|
|
122
|
+
const a = new xt({
|
|
127
123
|
mutationCache: this,
|
|
128
|
-
mutationId: ++
|
|
124
|
+
mutationId: ++Y(this, W)._,
|
|
129
125
|
options: t.defaultMutationOptions(s),
|
|
130
126
|
state: n
|
|
131
127
|
});
|
|
132
128
|
return this.add(a), a;
|
|
133
129
|
}
|
|
134
130
|
add(t) {
|
|
135
|
-
const s =
|
|
131
|
+
const s = J(t), n = c(this, j).get(s) ?? [];
|
|
136
132
|
n.push(t), c(this, j).set(s, n), this.notify({ type: "added", mutation: t });
|
|
137
133
|
}
|
|
138
134
|
remove(t) {
|
|
139
135
|
var n;
|
|
140
|
-
const s =
|
|
136
|
+
const s = J(t);
|
|
141
137
|
if (c(this, j).has(s)) {
|
|
142
138
|
const a = (n = c(this, j).get(s)) == null ? void 0 : n.filter((i) => i !== t);
|
|
143
139
|
a && (a.length === 0 ? c(this, j).delete(s) : c(this, j).set(s, a));
|
|
@@ -146,12 +142,12 @@ var S, Te, ps = (Te = class extends He {
|
|
|
146
142
|
}
|
|
147
143
|
canRun(t) {
|
|
148
144
|
var n;
|
|
149
|
-
const s = (n = c(this, j).get(
|
|
145
|
+
const s = (n = c(this, j).get(J(t))) == null ? void 0 : n.find((a) => a.state.status === "pending");
|
|
150
146
|
return !s || s === t;
|
|
151
147
|
}
|
|
152
148
|
runNext(t) {
|
|
153
149
|
var n;
|
|
154
|
-
const s = (n = c(this, j).get(
|
|
150
|
+
const s = (n = c(this, j).get(J(t))) == null ? void 0 : n.find((a) => a !== t && a.state.isPaused);
|
|
155
151
|
return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
|
|
156
152
|
}
|
|
157
153
|
clear() {
|
|
@@ -188,8 +184,8 @@ var S, Te, ps = (Te = class extends He {
|
|
|
188
184
|
)
|
|
189
185
|
);
|
|
190
186
|
}
|
|
191
|
-
}, j = new WeakMap(),
|
|
192
|
-
function
|
|
187
|
+
}, j = new WeakMap(), W = new WeakMap(), qe);
|
|
188
|
+
function J(e) {
|
|
193
189
|
var t;
|
|
194
190
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
195
191
|
}
|
|
@@ -208,32 +204,32 @@ function Oe(e) {
|
|
|
208
204
|
m = !0;
|
|
209
205
|
}), t.signal)
|
|
210
206
|
});
|
|
211
|
-
},
|
|
207
|
+
}, _ = Pt(t.options, t.fetchOptions), L = async (v, P, K) => {
|
|
212
208
|
if (m)
|
|
213
209
|
return Promise.reject();
|
|
214
210
|
if (P == null && v.pages.length)
|
|
215
211
|
return Promise.resolve(v);
|
|
216
|
-
const
|
|
212
|
+
const X = {
|
|
217
213
|
queryKey: t.queryKey,
|
|
218
214
|
pageParam: P,
|
|
219
215
|
direction: K ? "backward" : "forward",
|
|
220
216
|
meta: t.options.meta
|
|
221
217
|
};
|
|
222
|
-
N(
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
), { maxPages: ye } = t.options, be = K ?
|
|
218
|
+
N(X);
|
|
219
|
+
const ut = await _(
|
|
220
|
+
X
|
|
221
|
+
), { maxPages: ye } = t.options, be = K ? St : Dt;
|
|
226
222
|
return {
|
|
227
|
-
pages: be(v.pages,
|
|
223
|
+
pages: be(v.pages, ut, ye),
|
|
228
224
|
pageParams: be(v.pageParams, P, ye)
|
|
229
225
|
};
|
|
230
226
|
};
|
|
231
227
|
if (a && i.length) {
|
|
232
|
-
const v = a === "backward", P = v ?
|
|
228
|
+
const v = a === "backward", P = v ? xs : Me, K = {
|
|
233
229
|
pages: i,
|
|
234
230
|
pageParams: o
|
|
235
|
-
},
|
|
236
|
-
u = await L(K,
|
|
231
|
+
}, X = P(n, K);
|
|
232
|
+
u = await L(K, X, v);
|
|
237
233
|
} else {
|
|
238
234
|
const v = e ?? i.length;
|
|
239
235
|
do {
|
|
@@ -270,11 +266,11 @@ function Me(e, { pages: t, pageParams: s }) {
|
|
|
270
266
|
s
|
|
271
267
|
) : void 0;
|
|
272
268
|
}
|
|
273
|
-
function
|
|
269
|
+
function xs(e, { pages: t, pageParams: s }) {
|
|
274
270
|
var n;
|
|
275
271
|
return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, s[0], s) : void 0;
|
|
276
272
|
}
|
|
277
|
-
var y, A, E, F, B, I, z, H, Re,
|
|
273
|
+
var y, A, E, F, B, I, z, H, Re, ys = (Re = class {
|
|
278
274
|
constructor(e = {}) {
|
|
279
275
|
C(this, y);
|
|
280
276
|
C(this, A);
|
|
@@ -284,10 +280,10 @@ var y, A, E, F, B, I, z, H, Re, bs = (Re = class {
|
|
|
284
280
|
C(this, I);
|
|
285
281
|
C(this, z);
|
|
286
282
|
C(this, H);
|
|
287
|
-
b(this, y, e.queryCache || new
|
|
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);
|
|
288
284
|
}
|
|
289
285
|
mount() {
|
|
290
|
-
|
|
286
|
+
Y(this, I)._++, c(this, I) === 1 && (b(this, z, Ot.subscribe(async (e) => {
|
|
291
287
|
e && (await this.resumePausedMutations(), c(this, y).onFocus());
|
|
292
288
|
})), b(this, H, Ce.subscribe(async (e) => {
|
|
293
289
|
e && (await this.resumePausedMutations(), c(this, y).onOnline());
|
|
@@ -295,7 +291,7 @@ var y, A, E, F, B, I, z, H, Re, bs = (Re = class {
|
|
|
295
291
|
}
|
|
296
292
|
unmount() {
|
|
297
293
|
var e, t;
|
|
298
|
-
|
|
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));
|
|
299
295
|
}
|
|
300
296
|
isFetching(e) {
|
|
301
297
|
return c(this, y).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -326,7 +322,7 @@ var y, A, E, F, B, I, z, H, Re, bs = (Re = class {
|
|
|
326
322
|
setQueryData(e, t, s) {
|
|
327
323
|
const n = this.defaultQueryOptions({ queryKey: e }), a = c(this, y).get(
|
|
328
324
|
n.queryHash
|
|
329
|
-
), i = a == null ? void 0 : a.state.data, o =
|
|
325
|
+
), i = a == null ? void 0 : a.state.data, o = Mt(t, i);
|
|
330
326
|
if (o !== void 0)
|
|
331
327
|
return c(this, y).build(this, n).setData(o, { ...s, manual: !0 });
|
|
332
328
|
}
|
|
@@ -462,10 +458,10 @@ var y, A, E, F, B, I, z, H, Re, bs = (Re = class {
|
|
|
462
458
|
...e,
|
|
463
459
|
_defaulted: !0
|
|
464
460
|
};
|
|
465
|
-
return t.queryHash || (t.queryHash =
|
|
461
|
+
return t.queryHash || (t.queryHash = Ke(
|
|
466
462
|
t.queryKey,
|
|
467
463
|
t
|
|
468
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn ===
|
|
464
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === At && (t.enabled = !1), t;
|
|
469
465
|
}
|
|
470
466
|
defaultMutationOptions(e) {
|
|
471
467
|
return e != null && e._defaulted ? e : {
|
|
@@ -479,14 +475,14 @@ var y, A, E, F, B, I, z, H, Re, bs = (Re = class {
|
|
|
479
475
|
c(this, y).clear(), c(this, A).clear();
|
|
480
476
|
}
|
|
481
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);
|
|
482
|
-
function
|
|
478
|
+
function bs(e) {
|
|
483
479
|
return e;
|
|
484
480
|
}
|
|
485
481
|
function Ae(e, t, s) {
|
|
486
482
|
var d, l;
|
|
487
483
|
if (typeof t != "object" || t === null)
|
|
488
484
|
return;
|
|
489
|
-
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) ??
|
|
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 || [];
|
|
490
486
|
o.forEach(({ state: f, ...g }) => {
|
|
491
487
|
var h, p;
|
|
492
488
|
n.build(
|
|
@@ -499,7 +495,7 @@ function Ae(e, t, s) {
|
|
|
499
495
|
f
|
|
500
496
|
);
|
|
501
497
|
}), u.forEach(({ queryKey: f, state: g, queryHash: h, meta: p, promise: x }) => {
|
|
502
|
-
var
|
|
498
|
+
var _, L;
|
|
503
499
|
let m = a.get(h);
|
|
504
500
|
const N = g.data === void 0 ? g.data : i(g.data);
|
|
505
501
|
if (m) {
|
|
@@ -514,7 +510,7 @@ function Ae(e, t, s) {
|
|
|
514
510
|
m = a.build(
|
|
515
511
|
e,
|
|
516
512
|
{
|
|
517
|
-
...(
|
|
513
|
+
...(_ = e.getDefaultOptions().hydrate) == null ? void 0 : _.queries,
|
|
518
514
|
...(L = s == null ? void 0 : s.defaultOptions) == null ? void 0 : L.queries,
|
|
519
515
|
queryKey: f,
|
|
520
516
|
queryHash: h,
|
|
@@ -534,13 +530,13 @@ function Ae(e, t, s) {
|
|
|
534
530
|
}
|
|
535
531
|
});
|
|
536
532
|
}
|
|
537
|
-
var
|
|
533
|
+
var vs = ({
|
|
538
534
|
children: e,
|
|
539
535
|
options: t = {},
|
|
540
536
|
state: s,
|
|
541
537
|
queryClient: n
|
|
542
538
|
}) => {
|
|
543
|
-
const a =
|
|
539
|
+
const a = Et(n), [i, o] = $.useState(), u = $.useRef(t);
|
|
544
540
|
return u.current = t, $.useMemo(() => {
|
|
545
541
|
if (s) {
|
|
546
542
|
if (typeof s != "object")
|
|
@@ -565,6 +561,9 @@ var js = ({
|
|
|
565
561
|
i && (Ae(a, { queries: i }, u.current), o(void 0));
|
|
566
562
|
}, [a, i]), e;
|
|
567
563
|
};
|
|
564
|
+
function js({ error: e }) {
|
|
565
|
+
return /* @__PURE__ */ r.jsx(ze, { error: e });
|
|
566
|
+
}
|
|
568
567
|
/**
|
|
569
568
|
* react-router v7.0.2
|
|
570
569
|
*
|
|
@@ -576,9 +575,9 @@ var js = ({
|
|
|
576
575
|
* @license MIT
|
|
577
576
|
*/
|
|
578
577
|
function ws(e) {
|
|
579
|
-
return /* @__PURE__ */ $.createElement(
|
|
578
|
+
return /* @__PURE__ */ $.createElement(ft, { flushSync: Kt.flushSync, ...e });
|
|
580
579
|
}
|
|
581
|
-
const ks = new
|
|
580
|
+
const ks = new ys({
|
|
582
581
|
defaultOptions: {
|
|
583
582
|
queries: {
|
|
584
583
|
staleTime: 1e3 * 60 * 5
|
|
@@ -587,17 +586,17 @@ const ks = new bs({
|
|
|
587
586
|
}), Cs = ({
|
|
588
587
|
router: e,
|
|
589
588
|
hydrate: t = !1
|
|
590
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
589
|
+
}) => /* @__PURE__ */ r.jsx(Ve, { children: /* @__PURE__ */ r.jsx($e, { client: ks, children: /* @__PURE__ */ r.jsx(vs, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Fe, { children: /* @__PURE__ */ r.jsx(oe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ r.jsx(ws, { router: e }) }) }) }) }) }), Ns = ({
|
|
591
590
|
router: e,
|
|
592
591
|
context: t,
|
|
593
592
|
queryClient: s,
|
|
594
593
|
helmetContext: n
|
|
595
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
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 }) }) }) });
|
|
596
595
|
var Z = { exports: {} }, Ps = Z.exports, Ee;
|
|
597
596
|
function Ss() {
|
|
598
597
|
return Ee || (Ee = 1, function(e, t) {
|
|
599
598
|
(function(s, n) {
|
|
600
|
-
n(t,
|
|
599
|
+
n(t, Rt);
|
|
601
600
|
})(Ps, function(s, n) {
|
|
602
601
|
const a = {
|
|
603
602
|
delay: 500,
|
|
@@ -660,7 +659,7 @@ const Os = {
|
|
|
660
659
|
onRequestClose: t
|
|
661
660
|
}) => {
|
|
662
661
|
var h, p;
|
|
663
|
-
const s =
|
|
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) ?? "");
|
|
664
663
|
R(() => {
|
|
665
664
|
s && l(!0);
|
|
666
665
|
}, [s]);
|
|
@@ -672,7 +671,7 @@ const Os = {
|
|
|
672
671
|
x.preventDefault(), l((m) => !m), a(!0);
|
|
673
672
|
},
|
|
674
673
|
children: /* @__PURE__ */ r.jsx(
|
|
675
|
-
|
|
674
|
+
$t,
|
|
676
675
|
{
|
|
677
676
|
size: 16,
|
|
678
677
|
className: O(
|
|
@@ -711,7 +710,7 @@ const Os = {
|
|
|
711
710
|
}
|
|
712
711
|
),
|
|
713
712
|
((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ r.jsx(
|
|
714
|
-
|
|
713
|
+
te,
|
|
715
714
|
{
|
|
716
715
|
to: q(e.link.id),
|
|
717
716
|
className: "flex-1",
|
|
@@ -766,8 +765,8 @@ const Os = {
|
|
|
766
765
|
]
|
|
767
766
|
}
|
|
768
767
|
);
|
|
769
|
-
}, V =
|
|
770
|
-
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent
|
|
768
|
+
}, V = Jt(
|
|
769
|
+
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent",
|
|
771
770
|
{
|
|
772
771
|
variants: {
|
|
773
772
|
isActive: {
|
|
@@ -783,18 +782,18 @@ const Os = {
|
|
|
783
782
|
isActive: !1
|
|
784
783
|
}
|
|
785
784
|
}
|
|
786
|
-
),
|
|
785
|
+
), et = "data-anchor", ce = ({
|
|
787
786
|
item: e,
|
|
788
787
|
onRequestClose: t
|
|
789
788
|
}) => {
|
|
790
789
|
var a, i;
|
|
791
|
-
const { activeAnchor: s } =
|
|
790
|
+
const { activeAnchor: s } = ge(), [n] = pt();
|
|
792
791
|
switch (e.type) {
|
|
793
792
|
case "category":
|
|
794
793
|
return /* @__PURE__ */ r.jsx(Ms, { category: e, onRequestClose: t });
|
|
795
794
|
case "doc":
|
|
796
795
|
return /* @__PURE__ */ r.jsxs(
|
|
797
|
-
|
|
796
|
+
te,
|
|
798
797
|
{
|
|
799
798
|
className: ({ isActive: o }) => V({ isActive: o }),
|
|
800
799
|
to: q(e.id),
|
|
@@ -810,10 +809,10 @@ const Os = {
|
|
|
810
809
|
);
|
|
811
810
|
case "link":
|
|
812
811
|
return e.href.startsWith("#") ? /* @__PURE__ */ r.jsx(
|
|
813
|
-
|
|
812
|
+
es,
|
|
814
813
|
{
|
|
815
814
|
to: { hash: e.href, search: n.toString() },
|
|
816
|
-
[
|
|
815
|
+
[et]: e.href.slice(1),
|
|
817
816
|
className: V({
|
|
818
817
|
isActive: e.href.slice(1) === s,
|
|
819
818
|
className: ((a = e.badge) == null ? void 0 : a.placement) !== "start" && "justify-between"
|
|
@@ -834,11 +833,11 @@ const Os = {
|
|
|
834
833
|
onClick: t,
|
|
835
834
|
children: [
|
|
836
835
|
/* @__PURE__ */ r.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
837
|
-
/* @__PURE__ */ r.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ r.jsx(
|
|
836
|
+
/* @__PURE__ */ r.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ r.jsx(Zt, { className: "inline -translate-y-0.5", size: 12 }) })
|
|
838
837
|
]
|
|
839
838
|
}
|
|
840
839
|
) : /* @__PURE__ */ r.jsx(
|
|
841
|
-
|
|
840
|
+
te,
|
|
842
841
|
{
|
|
843
842
|
className: V({
|
|
844
843
|
className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
|
|
@@ -856,11 +855,11 @@ const Os = {
|
|
|
856
855
|
const s = e.getBoundingClientRect();
|
|
857
856
|
s.top >= 0 && s.left >= 0 && s.bottom <= (window.innerHeight || document.documentElement.clientHeight) && s.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
858
857
|
}, Es = () => {
|
|
859
|
-
const e = de(), { setActiveAnchor: t } =
|
|
858
|
+
const e = de(), { setActiveAnchor: t } = ge();
|
|
860
859
|
R(() => {
|
|
861
860
|
if (!e.hash) return;
|
|
862
861
|
const s = decodeURIComponent(e.hash.split("/")[0].slice(1)), n = () => {
|
|
863
|
-
const a = document.getElementById(s), i = document.querySelector(`[${
|
|
862
|
+
const a = document.getElementById(s), i = document.querySelector(`[${et}="${s}"]`);
|
|
864
863
|
return a ? (a.scrollIntoView(), As(i), requestIdleCallback(() => t(s)), !0) : !1;
|
|
865
864
|
};
|
|
866
865
|
if (!n()) {
|
|
@@ -871,7 +870,7 @@ const Os = {
|
|
|
871
870
|
}
|
|
872
871
|
}, [e.hash, t]);
|
|
873
872
|
}, Is = () => {
|
|
874
|
-
const e = de(), t =
|
|
873
|
+
const e = de(), t = me(e.pathname);
|
|
875
874
|
R(() => {
|
|
876
875
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
877
876
|
}, [e.pathname]);
|
|
@@ -915,14 +914,14 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
915
914
|
type: "button",
|
|
916
915
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
917
916
|
onClick: () => s(!1),
|
|
918
|
-
children: /* @__PURE__ */ r.jsx(
|
|
917
|
+
children: /* @__PURE__ */ r.jsx(Vt, { size: 16 })
|
|
919
918
|
}
|
|
920
919
|
)
|
|
921
920
|
]
|
|
922
921
|
}
|
|
923
922
|
);
|
|
924
|
-
},
|
|
925
|
-
const t = T(), [s, n] = Q(!1), a =
|
|
923
|
+
}, tt = ({ className: e }) => {
|
|
924
|
+
const t = T(), [s, n] = Q(!1), a = Ft(() => n(!1), []);
|
|
926
925
|
R(() => {
|
|
927
926
|
if (s)
|
|
928
927
|
return;
|
|
@@ -943,21 +942,21 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
943
942
|
className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
|
|
944
943
|
children: [
|
|
945
944
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
946
|
-
/* @__PURE__ */ r.jsx(
|
|
945
|
+
/* @__PURE__ */ r.jsx(Ut, { size: 14 }),
|
|
947
946
|
"Search"
|
|
948
947
|
] }),
|
|
949
948
|
/* @__PURE__ */ r.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
950
949
|
]
|
|
951
950
|
}
|
|
952
951
|
),
|
|
953
|
-
/* @__PURE__ */ r.jsx(
|
|
952
|
+
/* @__PURE__ */ r.jsx(pe, { fallback: null, children: i.renderSearch({
|
|
954
953
|
isOpen: s,
|
|
955
954
|
onClose: a
|
|
956
955
|
}) })
|
|
957
956
|
] }) : null;
|
|
958
|
-
},
|
|
959
|
-
const { resolvedTheme: e, setTheme: t } =
|
|
960
|
-
return /* @__PURE__ */ r.jsx(
|
|
957
|
+
}, st = () => {
|
|
958
|
+
const { resolvedTheme: e, setTheme: t } = hs(), s = e === "dark" ? Wt : _t;
|
|
959
|
+
return /* @__PURE__ */ r.jsx(xe, { children: /* @__PURE__ */ r.jsx(
|
|
961
960
|
le,
|
|
962
961
|
{
|
|
963
962
|
variant: "ghost",
|
|
@@ -967,29 +966,29 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
967
966
|
children: /* @__PURE__ */ r.jsx(s, { size: 18 })
|
|
968
967
|
}
|
|
969
968
|
) });
|
|
970
|
-
},
|
|
971
|
-
const { topNavigation: e } = T(), { isAuthenticated: t } =
|
|
972
|
-
return e.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(
|
|
973
|
-
},
|
|
969
|
+
}, rt = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Ks = () => {
|
|
970
|
+
const { topNavigation: e } = T(), { isAuthenticated: t } = U();
|
|
971
|
+
return e.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(pe, { children: /* @__PURE__ */ r.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(rt(t)).map((s) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(nt, { ...s }) }, s.id)) }) }) });
|
|
972
|
+
}, nt = ({
|
|
974
973
|
id: e,
|
|
975
974
|
label: t,
|
|
976
975
|
default: s
|
|
977
976
|
}) => {
|
|
978
977
|
var l;
|
|
979
|
-
const { sidebars: n } = T(), a = n[e], i =
|
|
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) => {
|
|
980
979
|
if (f.type === "doc") return q(f.id);
|
|
981
980
|
}) : q(e));
|
|
982
981
|
if (!d)
|
|
983
|
-
throw new
|
|
982
|
+
throw new gs("Page not found.", {
|
|
984
983
|
developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
985
984
|
});
|
|
986
985
|
return (
|
|
987
986
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
988
987
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
989
988
|
/* @__PURE__ */ r.jsx(
|
|
990
|
-
|
|
989
|
+
te,
|
|
991
990
|
{
|
|
992
|
-
className: ({ isPending: f }) =>
|
|
991
|
+
className: ({ isPending: f }) => Gt(
|
|
993
992
|
"block lg:py-3.5 font-medium -mb-px border-b-2",
|
|
994
993
|
u || f ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
995
994
|
),
|
|
@@ -999,26 +998,26 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
999
998
|
)
|
|
1000
999
|
);
|
|
1001
1000
|
}, $s = () => {
|
|
1002
|
-
const { topNavigation: e } = T(), { isAuthenticated: t } =
|
|
1001
|
+
const { topNavigation: e } = T(), { isAuthenticated: t } = U(), [s, n] = Q(!1);
|
|
1003
1002
|
return /* @__PURE__ */ r.jsxs(
|
|
1004
|
-
|
|
1003
|
+
_e,
|
|
1005
1004
|
{
|
|
1006
1005
|
direction: "right",
|
|
1007
1006
|
open: s,
|
|
1008
1007
|
onOpenChange: (a) => n(a),
|
|
1009
1008
|
children: [
|
|
1010
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(
|
|
1009
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Xe, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Xt, { size: 22 }) }) }),
|
|
1011
1010
|
/* @__PURE__ */ r.jsx(
|
|
1012
|
-
|
|
1011
|
+
Ye,
|
|
1013
1012
|
{
|
|
1014
1013
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
1015
1014
|
"aria-describedby": void 0,
|
|
1016
1015
|
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1017
|
-
/* @__PURE__ */ r.jsx(
|
|
1018
|
-
/* @__PURE__ */ r.jsx(
|
|
1016
|
+
/* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(Je, { children: "Navigation" }) }),
|
|
1017
|
+
/* @__PURE__ */ r.jsx(tt, { className: "flex p-4" }),
|
|
1019
1018
|
/* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
1020
|
-
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
1021
|
-
e.filter(
|
|
1019
|
+
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(st, {}) }),
|
|
1020
|
+
e.filter(rt(t)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ r.jsx(nt, { ...a }) }) }, a.label))
|
|
1022
1021
|
] })
|
|
1023
1022
|
] })
|
|
1024
1023
|
}
|
|
@@ -1026,17 +1025,17 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1026
1025
|
]
|
|
1027
1026
|
}
|
|
1028
1027
|
);
|
|
1029
|
-
},
|
|
1030
|
-
/* @__PURE__ */ r.jsx(
|
|
1031
|
-
/* @__PURE__ */ r.jsx(
|
|
1028
|
+
}, ee = ({ item: e }) => e.children ? /* @__PURE__ */ r.jsxs(os, { children: [
|
|
1029
|
+
/* @__PURE__ */ r.jsx(ls, { children: e.label }),
|
|
1030
|
+
/* @__PURE__ */ r.jsx(cs, { children: /* @__PURE__ */ r.jsx(us, { children: e.children.map((t, s) => (
|
|
1032
1031
|
// eslint-disable-next-line react/no-array-index-key
|
|
1033
|
-
/* @__PURE__ */ r.jsx(
|
|
1032
|
+
/* @__PURE__ */ r.jsx(ee, { item: t }, s)
|
|
1034
1033
|
)) }) })
|
|
1035
|
-
] }, e.label) : /* @__PURE__ */ r.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(
|
|
1034
|
+
] }, e.label) : /* @__PURE__ */ r.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(ds, { className: "flex gap-2", children: [
|
|
1036
1035
|
e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
1037
1036
|
e.label
|
|
1038
|
-
] }, e.label) }),
|
|
1039
|
-
const t =
|
|
1037
|
+
] }, e.label) }), at = Ue(function() {
|
|
1038
|
+
const t = U(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = U(), i = T(), { page: o, plugins: u } = i, d = u.filter((l) => Ts(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
|
|
1040
1039
|
return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1041
1040
|
/* @__PURE__ */ r.jsx(Ls, {}),
|
|
1042
1041
|
/* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
@@ -1073,36 +1072,36 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1073
1072
|
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
|
|
1074
1073
|
] }) }) }),
|
|
1075
1074
|
/* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1076
|
-
/* @__PURE__ */ r.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ r.jsx(
|
|
1075
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ r.jsx(tt, {}) }),
|
|
1077
1076
|
/* @__PURE__ */ r.jsx($s, {}),
|
|
1078
1077
|
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1079
1078
|
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-start" }),
|
|
1080
1079
|
a && /* @__PURE__ */ r.jsx(
|
|
1081
|
-
|
|
1080
|
+
xe,
|
|
1082
1081
|
{
|
|
1083
1082
|
fallback: /* @__PURE__ */ r.jsx(Qs, { className: "rounded h-5 w-24 mr-4" }),
|
|
1084
|
-
children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(
|
|
1085
|
-
/* @__PURE__ */ r.jsx(
|
|
1086
|
-
/* @__PURE__ */ r.jsxs(
|
|
1087
|
-
/* @__PURE__ */ r.jsxs(
|
|
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: [
|
|
1088
1087
|
n != null && n.name ? `${n.name}` : "My Account",
|
|
1089
1088
|
(n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
1090
1089
|
] }),
|
|
1091
1090
|
d.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1092
|
-
d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ r.jsx(
|
|
1091
|
+
d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label)),
|
|
1093
1092
|
d.filter(
|
|
1094
1093
|
(l) => !l.category || l.category === "middle"
|
|
1095
1094
|
).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1096
1095
|
d.filter(
|
|
1097
1096
|
(l) => !l.category || l.category === "middle"
|
|
1098
|
-
).map((l) => /* @__PURE__ */ r.jsx(
|
|
1097
|
+
).map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label)),
|
|
1099
1098
|
d.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1100
|
-
d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ r.jsx(
|
|
1099
|
+
d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label))
|
|
1101
1100
|
] })
|
|
1102
1101
|
] }) : /* @__PURE__ */ r.jsx(le, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
1103
1102
|
}
|
|
1104
1103
|
),
|
|
1105
|
-
/* @__PURE__ */ r.jsx(
|
|
1104
|
+
/* @__PURE__ */ r.jsx(st, {}),
|
|
1106
1105
|
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" })
|
|
1107
1106
|
] })
|
|
1108
1107
|
] })
|
|
@@ -1112,7 +1111,7 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1112
1111
|
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-after" })
|
|
1113
1112
|
] })
|
|
1114
1113
|
] });
|
|
1115
|
-
}),
|
|
1114
|
+
}), it = Bt(({ children: e, className: t, pushMainContent: s }, n) => /* @__PURE__ */ r.jsx(
|
|
1116
1115
|
"nav",
|
|
1117
1116
|
{
|
|
1118
1117
|
"data-navigation": String(s),
|
|
@@ -1126,14 +1125,14 @@ const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1126
1125
|
children: e
|
|
1127
1126
|
}
|
|
1128
1127
|
));
|
|
1129
|
-
|
|
1128
|
+
it.displayName = "SidebarWrapper";
|
|
1130
1129
|
const Zs = ({
|
|
1131
1130
|
onRequestClose: e
|
|
1132
1131
|
}) => {
|
|
1133
|
-
const t =
|
|
1132
|
+
const t = me(null), s = Ze();
|
|
1134
1133
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1135
1134
|
/* @__PURE__ */ r.jsxs(
|
|
1136
|
-
|
|
1135
|
+
it,
|
|
1137
1136
|
{
|
|
1138
1137
|
ref: t,
|
|
1139
1138
|
pushMainContent: s.sidebar.length > 0,
|
|
@@ -1145,12 +1144,12 @@ const Zs = ({
|
|
|
1145
1144
|
}
|
|
1146
1145
|
),
|
|
1147
1146
|
/* @__PURE__ */ r.jsx(
|
|
1148
|
-
|
|
1147
|
+
Ye,
|
|
1149
1148
|
{
|
|
1150
1149
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1151
1150
|
"aria-describedby": void 0,
|
|
1152
1151
|
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1153
|
-
/* @__PURE__ */ r.jsx(
|
|
1152
|
+
/* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(Je, { children: "Sidebar" }) }),
|
|
1154
1153
|
s.sidebar.map((n) => /* @__PURE__ */ r.jsx(
|
|
1155
1154
|
ce,
|
|
1156
1155
|
{
|
|
@@ -1163,10 +1162,10 @@ const Zs = ({
|
|
|
1163
1162
|
}
|
|
1164
1163
|
)
|
|
1165
1164
|
] });
|
|
1166
|
-
}, Qe = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(
|
|
1167
|
-
const t = de(), { setActiveAnchor: s } =
|
|
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();
|
|
1168
1167
|
Es(), Is();
|
|
1169
|
-
const i =
|
|
1168
|
+
const i = me(t.pathname);
|
|
1170
1169
|
R(() => {
|
|
1171
1170
|
var f;
|
|
1172
1171
|
(f = a == null ? void 0 : a.onPageLoad) == null || f.call(a);
|
|
@@ -1184,10 +1183,10 @@ const Zs = ({
|
|
|
1184
1183
|
(n == null ? void 0 : n.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: n.favicon })
|
|
1185
1184
|
] }),
|
|
1186
1185
|
/* @__PURE__ */ r.jsx(D, { name: "layout-before-head" }),
|
|
1187
|
-
/* @__PURE__ */ r.jsx(
|
|
1186
|
+
/* @__PURE__ */ r.jsx(at, {}),
|
|
1188
1187
|
/* @__PURE__ */ r.jsx(D, { name: "layout-after-head" }),
|
|
1189
|
-
/* @__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(
|
|
1190
|
-
|
|
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(
|
|
1189
|
+
_e,
|
|
1191
1190
|
{
|
|
1192
1191
|
direction: "left",
|
|
1193
1192
|
open: d,
|
|
@@ -1201,8 +1200,8 @@ const Zs = ({
|
|
|
1201
1200
|
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1202
1201
|
"peer-data-[navigation=false]:hidden"
|
|
1203
1202
|
),
|
|
1204
|
-
children: /* @__PURE__ */ r.jsxs(
|
|
1205
|
-
/* @__PURE__ */ r.jsx(
|
|
1203
|
+
children: /* @__PURE__ */ r.jsxs(Xe, { className: "flex items-center gap-2", children: [
|
|
1204
|
+
/* @__PURE__ */ r.jsx(Yt, { size: 16, strokeWidth: 1.5 }),
|
|
1206
1205
|
/* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1207
1206
|
] })
|
|
1208
1207
|
}
|
|
@@ -1228,11 +1227,11 @@ const Zs = ({
|
|
|
1228
1227
|
}
|
|
1229
1228
|
) }) })
|
|
1230
1229
|
] });
|
|
1231
|
-
}, Us =
|
|
1230
|
+
}, Us = We(null), ie = {
|
|
1232
1231
|
didCatch: !1,
|
|
1233
1232
|
error: null
|
|
1234
1233
|
};
|
|
1235
|
-
class Ws extends
|
|
1234
|
+
class Ws extends zt {
|
|
1236
1235
|
constructor(t) {
|
|
1237
1236
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ie;
|
|
1238
1237
|
}
|
|
@@ -1352,21 +1351,21 @@ class Xs {
|
|
|
1352
1351
|
function Ys({ error: e, resetErrorBoundary: t }) {
|
|
1353
1352
|
return /* @__PURE__ */ r.jsx(ze, { error: e });
|
|
1354
1353
|
}
|
|
1355
|
-
const
|
|
1356
|
-
(!
|
|
1357
|
-
const
|
|
1358
|
-
Header:
|
|
1359
|
-
}, Js =
|
|
1354
|
+
const G = globalThis;
|
|
1355
|
+
(!G.requestIdleCallback || !G.cancelIdleCallback) && (G.requestIdleCallback = (e) => setTimeout(e, 1), G.cancelIdleCallback = clearTimeout);
|
|
1356
|
+
const ot = {
|
|
1357
|
+
Header: at
|
|
1358
|
+
}, Js = We(ot), Gs = Js.Provider, er = ({
|
|
1360
1359
|
children: e,
|
|
1361
1360
|
context: t
|
|
1362
|
-
}) => (
|
|
1361
|
+
}) => (Tt({
|
|
1363
1362
|
queryFn: async () => (await t.initialize(), !0),
|
|
1364
1363
|
queryKey: ["zudoku-initialize"]
|
|
1365
|
-
}), /* @__PURE__ */ r.jsx(
|
|
1364
|
+
}), /* @__PURE__ */ r.jsx(qt.Provider, { value: t, children: e })), lt = Ue(
|
|
1366
1365
|
({ children: e, ...t }) => {
|
|
1367
1366
|
var g, h;
|
|
1368
1367
|
const s = se(
|
|
1369
|
-
() => ({ ...
|
|
1368
|
+
() => ({ ...ot, ...t.overrides }),
|
|
1370
1369
|
[t.overrides]
|
|
1371
1370
|
), n = se(() => {
|
|
1372
1371
|
var x;
|
|
@@ -1377,10 +1376,10 @@ const it = {
|
|
|
1377
1376
|
(m, N) => ({ ...m, ...N }),
|
|
1378
1377
|
{}
|
|
1379
1378
|
),
|
|
1380
|
-
...
|
|
1379
|
+
...wt,
|
|
1381
1380
|
...(x = t.mdx) == null ? void 0 : x.components
|
|
1382
1381
|
};
|
|
1383
|
-
}, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } =
|
|
1382
|
+
}, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } = Ht(oe), [i, o] = Q(!1), u = se(
|
|
1384
1383
|
() => i ? { stagger: !0 } : { stagger: a },
|
|
1385
1384
|
[a, i]
|
|
1386
1385
|
), d = he();
|
|
@@ -1389,32 +1388,34 @@ const it = {
|
|
|
1389
1388
|
}, [i, d.location]);
|
|
1390
1389
|
const [l] = Q(() => new Xs(t)), f = (h = t.plugins) == null ? void 0 : h.filter(Bs).map((p, x) => {
|
|
1391
1390
|
var m;
|
|
1392
|
-
return /* @__PURE__ */ r.jsx(
|
|
1391
|
+
return /* @__PURE__ */ r.jsx(Lt, { children: (m = p.getHead) == null ? void 0 : m.call(p) }, x);
|
|
1393
1392
|
});
|
|
1394
1393
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1395
1394
|
/* @__PURE__ */ r.jsx(ue, { children: f }),
|
|
1396
|
-
/* @__PURE__ */ r.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ r.jsx(er, { context: l, children: /* @__PURE__ */ r.jsx(
|
|
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, {}) }) }) }) }) }) }) })
|
|
1397
1396
|
] });
|
|
1398
1397
|
}
|
|
1399
1398
|
);
|
|
1400
|
-
|
|
1401
|
-
const
|
|
1402
|
-
|
|
1403
|
-
const Pr =
|
|
1399
|
+
lt.displayName = "ZudokoInner";
|
|
1400
|
+
const ct = (e) => /* @__PURE__ */ r.jsx(Ws, { FallbackComponent: Ys, children: /* @__PURE__ */ r.jsx(lt, { ...e }) });
|
|
1401
|
+
ct.displayName = "Zudoku";
|
|
1402
|
+
const Nr = ss, Pr = Vs, Sr = bt, Dr = js, Or = Cs, Mr = Ns, Ar = ue, Er = T, Ir = U, Qr = ct, Tr = jt, qr = Ct, Rr = He, Fr = xe, Br = vt, zr = fe;
|
|
1404
1403
|
export {
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
Ir as
|
|
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,
|
|
1419
|
+
Er as useZudoku
|
|
1419
1420
|
};
|
|
1420
1421
|
//# sourceMappingURL=zudoku.components.js.map
|