zudoku 0.23.5 → 0.23.6
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/lib/components/navigation/SidebarBadge.d.ts +0 -9
- package/dist/lib/components/navigation/SidebarBadge.js +0 -9
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +3 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +14 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +2 -12
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
- package/dist/vite/plugin-api.js +4 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/lib/{OperationList-wvY-BrxS.js → OperationList-n4U_BHmO.js} +1715 -1683
- package/lib/OperationList-n4U_BHmO.js.map +1 -0
- package/lib/StaggeredRender-DgsamH_G.js +17 -0
- package/lib/StaggeredRender-DgsamH_G.js.map +1 -0
- package/lib/{index-C_ul-2fb.js → index-DStSNvP-.js} +2 -2
- package/lib/{index-C_ul-2fb.js.map → index-DStSNvP-.js.map} +1 -1
- package/lib/zudoku.components.js +385 -363
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/lib/components/navigation/SidebarBadge.tsx +0 -10
- package/src/lib/plugins/openapi/OperationList.tsx +3 -0
- package/src/lib/plugins/openapi/OperationListItem.tsx +31 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -16
- package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
- package/lib/OperationList-wvY-BrxS.js.map +0 -1
- package/lib/SidebarBadge-Bm793GDY.js +0 -51
- package/lib/SidebarBadge-Bm793GDY.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
var ut = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var ve = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var dt = (e, t, s) => t in e ? ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
6
|
-
var k = (e, t, s) => dt(e, typeof t != "symbol" ? t + "" : t, s), je = (e, t, s) => t.has(e) ||
|
|
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) ?
|
|
8
|
-
var X = (e, t, s,
|
|
6
|
+
var k = (e, t, s) => dt(e, typeof t != "symbol" ? t + "" : t, s), je = (e, t, s) => t.has(e) || ve("Cannot " + s);
|
|
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 X = (e, t, s, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
|
-
|
|
10
|
+
b(e, t, a, s);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return c(e, t,
|
|
13
|
+
return c(e, t, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import { a as Fe, H as ue } from "./index.esm-BSV1C092.js";
|
|
17
|
-
import { R as ht, S as ft, e as
|
|
17
|
+
import { R as ht, S as ft, e as gt, f as ee, b as mt, u as de, g as he, L as fe, O as Be } from "./chunk-D52XG6IA-Dl7HLe6j.js";
|
|
18
18
|
import { u as pt } from "./state-CFQsUZUP.js";
|
|
19
19
|
import { E as ze, S as D, a as xt, R as yt } from "./SlotletProvider-pfc9oejW.js";
|
|
20
|
-
import { j as
|
|
21
|
-
import { Button as
|
|
22
|
-
import { Callout as
|
|
23
|
-
import { S as He, l as Le, Q as jt, n as w, m as we, o as ke, p as
|
|
20
|
+
import { j as r } from "./jsx-runtime-Dx-03ztt.js";
|
|
21
|
+
import { Button as bt } from "./ui/Button.js";
|
|
22
|
+
import { Callout as vt } from "./ui/Callout.js";
|
|
23
|
+
import { S as He, l as Le, Q as jt, n as w, m as we, o as ke, p as M, q as wt, r as kt, t as Ct, v as Nt, w as Ce, x as Ne, y as Pt, h as Pe, z as Se, A as St, e as Dt, B as Ke, C as Ot, j as q, a as T, D as $e, E as Mt, u as At, Z as Et } from "./utils-B4O1uet5.js";
|
|
24
24
|
import { M as It, u as te } from "./hook-DgGeo5iL.js";
|
|
25
25
|
import * as $ from "react";
|
|
26
|
-
import Qt, { StrictMode as Ze, useState as Q, useEffect as R, useRef as
|
|
26
|
+
import Qt, { StrictMode as Ze, useState as Q, useEffect as R, useRef as ge, useCallback as Tt, Suspense as me, memo as Ve, forwardRef as qt, createContext as Ue, Component as Rt, createElement as De, useMemo as se, useContext as Ft, Fragment as Bt } from "react";
|
|
27
27
|
import * as zt from "react-dom";
|
|
28
|
-
import { S as oe
|
|
28
|
+
import { S as oe } from "./StaggeredRender-DgsamH_G.js";
|
|
29
29
|
import { C as pe } from "./ClientOnly-E7hGysn1.js";
|
|
30
30
|
import { ChevronRightIcon as Ht, ExternalLinkIcon as Lt, CircleXIcon as Kt, SearchIcon as $t, MoonStarIcon as Zt, SunIcon as Vt, MenuIcon as Ut, PanelLeftIcon as Wt } from "lucide-react";
|
|
31
31
|
import { Drawer as We, DrawerTrigger as _e, DrawerContent as Xe, DrawerTitle as Ye } from "./ui/Drawer.js";
|
|
32
|
-
import { c as
|
|
32
|
+
import { c as O } from "./cn-qaFjX9_3.js";
|
|
33
33
|
import { u as xe, a as _t, V as Xt } from "./Markdown-CZDLNOFc.js";
|
|
34
34
|
import { c as Yt, a as Jt } from "./index-CPNSgwSb.js";
|
|
35
35
|
import { A as Gt, M as es, u as ts } 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 ss, DropdownMenuTrigger as
|
|
38
|
+
import { DropdownMenu as ss, DropdownMenuTrigger as rs, DropdownMenuContent as ns, DropdownMenuLabel as as, DropdownMenuSeparator as ne, DropdownMenuSub as is, DropdownMenuSubTrigger as os, DropdownMenuPortal as ls, DropdownMenuSubContent as cs, DropdownMenuItem as us } from "./ui/DropdownMenu.js";
|
|
39
39
|
import { VisuallyHidden as Je } from "@radix-ui/react-visually-hidden";
|
|
40
40
|
import { z as ds, J as hs } from "./SyntaxHighlight-Bz-lOJtH.js";
|
|
41
41
|
import { Z as fs } from "./invariant-Caa8-XvF.js";
|
|
42
|
-
import { S as
|
|
43
|
-
function
|
|
44
|
-
return /* @__PURE__ */
|
|
42
|
+
import { S as gs } from "./Spinner-DuxJLLNE.js";
|
|
43
|
+
function ms({ error: e }) {
|
|
44
|
+
return /* @__PURE__ */ r.jsx(ze, { error: e });
|
|
45
45
|
}
|
|
46
46
|
var S, Te, ps = (Te = class extends He {
|
|
47
47
|
constructor(t = {}) {
|
|
48
48
|
super();
|
|
49
49
|
C(this, S);
|
|
50
|
-
this.config = t,
|
|
50
|
+
this.config = t, b(this, S, /* @__PURE__ */ new Map());
|
|
51
51
|
}
|
|
52
|
-
build(t, s,
|
|
52
|
+
build(t, s, n) {
|
|
53
53
|
const a = s.queryKey, i = s.queryHash ?? Le(a, s);
|
|
54
54
|
let o = this.get(i);
|
|
55
55
|
return o || (o = new jt({
|
|
@@ -57,7 +57,7 @@ var S, Te, ps = (Te = class extends He {
|
|
|
57
57
|
queryKey: a,
|
|
58
58
|
queryHash: i,
|
|
59
59
|
options: t.defaultQueryOptions(s),
|
|
60
|
-
state:
|
|
60
|
+
state: n,
|
|
61
61
|
defaultOptions: t.getQueryDefaults(a)
|
|
62
62
|
}), this.add(o)), o;
|
|
63
63
|
}
|
|
@@ -87,12 +87,12 @@ var S, Te, ps = (Te = class extends He {
|
|
|
87
87
|
find(t) {
|
|
88
88
|
const s = { exact: !0, ...t };
|
|
89
89
|
return this.getAll().find(
|
|
90
|
-
(
|
|
90
|
+
(n) => we(s, n)
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
93
|
findAll(t = {}) {
|
|
94
94
|
const s = this.getAll();
|
|
95
|
-
return Object.keys(t).length > 0 ? s.filter((
|
|
95
|
+
return Object.keys(t).length > 0 ? s.filter((n) => we(t, n)) : s;
|
|
96
96
|
}
|
|
97
97
|
notify(t) {
|
|
98
98
|
w.batch(() => {
|
|
@@ -120,38 +120,38 @@ var S, Te, ps = (Te = class extends He {
|
|
|
120
120
|
super();
|
|
121
121
|
C(this, j);
|
|
122
122
|
C(this, U);
|
|
123
|
-
this.config = t,
|
|
123
|
+
this.config = t, b(this, j, /* @__PURE__ */ new Map()), b(this, U, Date.now());
|
|
124
124
|
}
|
|
125
|
-
build(t, s,
|
|
125
|
+
build(t, s, n) {
|
|
126
126
|
const a = new It({
|
|
127
127
|
mutationCache: this,
|
|
128
128
|
mutationId: ++X(this, U)._,
|
|
129
129
|
options: t.defaultMutationOptions(s),
|
|
130
|
-
state:
|
|
130
|
+
state: n
|
|
131
131
|
});
|
|
132
132
|
return this.add(a), a;
|
|
133
133
|
}
|
|
134
134
|
add(t) {
|
|
135
|
-
const s = Y(t),
|
|
136
|
-
|
|
135
|
+
const s = Y(t), n = c(this, j).get(s) ?? [];
|
|
136
|
+
n.push(t), c(this, j).set(s, n), this.notify({ type: "added", mutation: t });
|
|
137
137
|
}
|
|
138
138
|
remove(t) {
|
|
139
|
-
var
|
|
139
|
+
var n;
|
|
140
140
|
const s = Y(t);
|
|
141
141
|
if (c(this, j).has(s)) {
|
|
142
|
-
const a = (
|
|
142
|
+
const a = (n = c(this, j).get(s)) == null ? void 0 : n.filter((i) => i !== t);
|
|
143
143
|
a && (a.length === 0 ? c(this, j).delete(s) : c(this, j).set(s, a));
|
|
144
144
|
}
|
|
145
145
|
this.notify({ type: "removed", mutation: t });
|
|
146
146
|
}
|
|
147
147
|
canRun(t) {
|
|
148
|
-
var
|
|
149
|
-
const s = (
|
|
148
|
+
var n;
|
|
149
|
+
const s = (n = c(this, j).get(Y(t))) == null ? void 0 : n.find((a) => a.state.status === "pending");
|
|
150
150
|
return !s || s === t;
|
|
151
151
|
}
|
|
152
152
|
runNext(t) {
|
|
153
|
-
var
|
|
154
|
-
const s = (
|
|
153
|
+
var n;
|
|
154
|
+
const s = (n = c(this, j).get(Y(t))) == null ? void 0 : n.find((a) => a !== t && a.state.isPaused);
|
|
155
155
|
return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
|
|
156
156
|
}
|
|
157
157
|
clear() {
|
|
@@ -167,7 +167,7 @@ var S, Te, ps = (Te = class extends He {
|
|
|
167
167
|
find(t) {
|
|
168
168
|
const s = { exact: !0, ...t };
|
|
169
169
|
return this.getAll().find(
|
|
170
|
-
(
|
|
170
|
+
(n) => ke(s, n)
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
findAll(t = {}) {
|
|
@@ -184,7 +184,7 @@ var S, Te, ps = (Te = class extends He {
|
|
|
184
184
|
const t = this.getAll().filter((s) => s.state.isPaused);
|
|
185
185
|
return w.batch(
|
|
186
186
|
() => Promise.all(
|
|
187
|
-
t.map((s) => s.continue().catch(
|
|
187
|
+
t.map((s) => s.continue().catch(M))
|
|
188
188
|
)
|
|
189
189
|
);
|
|
190
190
|
}
|
|
@@ -196,23 +196,23 @@ function Y(e) {
|
|
|
196
196
|
function Oe(e) {
|
|
197
197
|
return {
|
|
198
198
|
onFetch: (t, s) => {
|
|
199
|
-
var f,
|
|
200
|
-
const
|
|
199
|
+
var f, g, h, p, x;
|
|
200
|
+
const n = t.options, a = (h = (g = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : h.direction, i = ((p = t.state.data) == null ? void 0 : p.pages) || [], o = ((x = t.state.data) == null ? void 0 : x.pageParams) || [];
|
|
201
201
|
let u = { pages: [], pageParams: [] }, d = 0;
|
|
202
202
|
const l = async () => {
|
|
203
|
-
let
|
|
204
|
-
const N = (
|
|
205
|
-
Object.defineProperty(
|
|
203
|
+
let m = !1;
|
|
204
|
+
const N = (v) => {
|
|
205
|
+
Object.defineProperty(v, "signal", {
|
|
206
206
|
enumerable: !0,
|
|
207
|
-
get: () => (t.signal.aborted ?
|
|
208
|
-
|
|
207
|
+
get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => {
|
|
208
|
+
m = !0;
|
|
209
209
|
}), t.signal)
|
|
210
210
|
});
|
|
211
|
-
}, W = wt(t.options, t.fetchOptions), L = async (
|
|
212
|
-
if (
|
|
211
|
+
}, W = wt(t.options, t.fetchOptions), L = async (v, P, K) => {
|
|
212
|
+
if (m)
|
|
213
213
|
return Promise.reject();
|
|
214
|
-
if (P == null &&
|
|
215
|
-
return Promise.resolve(
|
|
214
|
+
if (P == null && v.pages.length)
|
|
215
|
+
return Promise.resolve(v);
|
|
216
216
|
const _ = {
|
|
217
217
|
queryKey: t.queryKey,
|
|
218
218
|
pageParam: P,
|
|
@@ -222,33 +222,33 @@ function Oe(e) {
|
|
|
222
222
|
N(_);
|
|
223
223
|
const ct = await W(
|
|
224
224
|
_
|
|
225
|
-
), { maxPages: ye } = t.options,
|
|
225
|
+
), { maxPages: ye } = t.options, be = K ? kt : Ct;
|
|
226
226
|
return {
|
|
227
|
-
pages:
|
|
228
|
-
pageParams:
|
|
227
|
+
pages: be(v.pages, ct, ye),
|
|
228
|
+
pageParams: be(v.pageParams, P, ye)
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
231
|
if (a && i.length) {
|
|
232
|
-
const
|
|
232
|
+
const v = a === "backward", P = v ? ys : Me, K = {
|
|
233
233
|
pages: i,
|
|
234
234
|
pageParams: o
|
|
235
|
-
}, _ = P(
|
|
236
|
-
u = await L(K, _,
|
|
235
|
+
}, _ = P(n, K);
|
|
236
|
+
u = await L(K, _, v);
|
|
237
237
|
} else {
|
|
238
|
-
const
|
|
238
|
+
const v = e ?? i.length;
|
|
239
239
|
do {
|
|
240
|
-
const P = d === 0 ? o[0] ??
|
|
240
|
+
const P = d === 0 ? o[0] ?? n.initialPageParam : Me(n, u);
|
|
241
241
|
if (d > 0 && P == null)
|
|
242
242
|
break;
|
|
243
243
|
u = await L(u, P), d++;
|
|
244
|
-
} while (d <
|
|
244
|
+
} while (d < v);
|
|
245
245
|
}
|
|
246
246
|
return u;
|
|
247
247
|
};
|
|
248
248
|
t.options.persister ? t.fetchFn = () => {
|
|
249
|
-
var
|
|
250
|
-
return (N = (
|
|
251
|
-
|
|
249
|
+
var m, N;
|
|
250
|
+
return (N = (m = t.options).persister) == null ? void 0 : N.call(
|
|
251
|
+
m,
|
|
252
252
|
l,
|
|
253
253
|
{
|
|
254
254
|
queryKey: t.queryKey,
|
|
@@ -262,19 +262,19 @@ function Oe(e) {
|
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
function Me(e, { pages: t, pageParams: s }) {
|
|
265
|
-
const
|
|
265
|
+
const n = t.length - 1;
|
|
266
266
|
return t.length > 0 ? e.getNextPageParam(
|
|
267
|
-
t[
|
|
267
|
+
t[n],
|
|
268
268
|
t,
|
|
269
|
-
s[
|
|
269
|
+
s[n],
|
|
270
270
|
s
|
|
271
271
|
) : void 0;
|
|
272
272
|
}
|
|
273
273
|
function ys(e, { pages: t, pageParams: s }) {
|
|
274
|
-
var
|
|
275
|
-
return t.length > 0 ? (
|
|
274
|
+
var n;
|
|
275
|
+
return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, s[0], s) : void 0;
|
|
276
276
|
}
|
|
277
|
-
var y, A, E, F, B, I, z, H, Re,
|
|
277
|
+
var y, A, E, F, B, I, z, H, Re, bs = (Re = class {
|
|
278
278
|
constructor(e = {}) {
|
|
279
279
|
C(this, y);
|
|
280
280
|
C(this, A);
|
|
@@ -284,18 +284,18 @@ var y, A, E, F, B, I, z, H, Re, vs = (Re = class {
|
|
|
284
284
|
C(this, I);
|
|
285
285
|
C(this, z);
|
|
286
286
|
C(this, H);
|
|
287
|
-
|
|
287
|
+
b(this, y, e.queryCache || new ps()), b(this, A, e.mutationCache || new xs()), b(this, E, e.defaultOptions || {}), b(this, F, /* @__PURE__ */ new Map()), b(this, B, /* @__PURE__ */ new Map()), b(this, I, 0);
|
|
288
288
|
}
|
|
289
289
|
mount() {
|
|
290
|
-
X(this, I)._++, c(this, I) === 1 && (
|
|
290
|
+
X(this, I)._++, c(this, I) === 1 && (b(this, z, Nt.subscribe(async (e) => {
|
|
291
291
|
e && (await this.resumePausedMutations(), c(this, y).onFocus());
|
|
292
|
-
})),
|
|
292
|
+
})), b(this, H, Ce.subscribe(async (e) => {
|
|
293
293
|
e && (await this.resumePausedMutations(), c(this, y).onOnline());
|
|
294
294
|
})));
|
|
295
295
|
}
|
|
296
296
|
unmount() {
|
|
297
297
|
var e, t;
|
|
298
|
-
X(this, I)._--, c(this, I) === 0 && ((e = c(this, z)) == null || e.call(this),
|
|
298
|
+
X(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
299
|
}
|
|
300
300
|
isFetching(e) {
|
|
301
301
|
return c(this, y).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -313,28 +313,28 @@ var y, A, E, F, B, I, z, H, Re, vs = (Re = class {
|
|
|
313
313
|
if (t === void 0)
|
|
314
314
|
return this.fetchQuery(e);
|
|
315
315
|
{
|
|
316
|
-
const s = this.defaultQueryOptions(e),
|
|
317
|
-
return e.revalidateIfStale &&
|
|
316
|
+
const s = this.defaultQueryOptions(e), n = c(this, y).build(this, s);
|
|
317
|
+
return e.revalidateIfStale && n.isStaleByTime(Ne(s.staleTime, n)) && this.prefetchQuery(s), Promise.resolve(t);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
getQueriesData(e) {
|
|
321
321
|
return c(this, y).findAll(e).map(({ queryKey: t, state: s }) => {
|
|
322
|
-
const
|
|
323
|
-
return [t,
|
|
322
|
+
const n = s.data;
|
|
323
|
+
return [t, n];
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
setQueryData(e, t, s) {
|
|
327
|
-
const
|
|
328
|
-
|
|
327
|
+
const n = this.defaultQueryOptions({ queryKey: e }), a = c(this, y).get(
|
|
328
|
+
n.queryHash
|
|
329
329
|
), i = a == null ? void 0 : a.state.data, o = Pt(t, i);
|
|
330
330
|
if (o !== void 0)
|
|
331
|
-
return c(this, y).build(this,
|
|
331
|
+
return c(this, y).build(this, n).setData(o, { ...s, manual: !0 });
|
|
332
332
|
}
|
|
333
333
|
setQueriesData(e, t, s) {
|
|
334
334
|
return w.batch(
|
|
335
|
-
() => c(this, y).findAll(e).map(({ queryKey:
|
|
336
|
-
|
|
337
|
-
this.setQueryData(
|
|
335
|
+
() => c(this, y).findAll(e).map(({ queryKey: n }) => [
|
|
336
|
+
n,
|
|
337
|
+
this.setQueryData(n, t, s)
|
|
338
338
|
])
|
|
339
339
|
);
|
|
340
340
|
}
|
|
@@ -354,24 +354,24 @@ var y, A, E, F, B, I, z, H, Re, vs = (Re = class {
|
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
resetQueries(e, t) {
|
|
357
|
-
const s = c(this, y),
|
|
357
|
+
const s = c(this, y), n = {
|
|
358
358
|
type: "active",
|
|
359
359
|
...e
|
|
360
360
|
};
|
|
361
361
|
return w.batch(() => (s.findAll(e).forEach((a) => {
|
|
362
362
|
a.reset();
|
|
363
|
-
}), this.refetchQueries(
|
|
363
|
+
}), this.refetchQueries(n, t)));
|
|
364
364
|
}
|
|
365
365
|
cancelQueries(e, t = {}) {
|
|
366
|
-
const s = { revert: !0, ...t },
|
|
366
|
+
const s = { revert: !0, ...t }, n = w.batch(
|
|
367
367
|
() => c(this, y).findAll(e).map((a) => a.cancel(s))
|
|
368
368
|
);
|
|
369
|
-
return Promise.all(
|
|
369
|
+
return Promise.all(n).then(M).catch(M);
|
|
370
370
|
}
|
|
371
371
|
invalidateQueries(e, t = {}) {
|
|
372
372
|
return w.batch(() => {
|
|
373
|
-
if (c(this, y).findAll(e).forEach((
|
|
374
|
-
|
|
373
|
+
if (c(this, y).findAll(e).forEach((n) => {
|
|
374
|
+
n.invalidate();
|
|
375
375
|
}), (e == null ? void 0 : e.refetchType) === "none")
|
|
376
376
|
return Promise.resolve();
|
|
377
377
|
const s = {
|
|
@@ -385,13 +385,13 @@ var y, A, E, F, B, I, z, H, Re, vs = (Re = class {
|
|
|
385
385
|
const s = {
|
|
386
386
|
...t,
|
|
387
387
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
388
|
-
},
|
|
388
|
+
}, n = w.batch(
|
|
389
389
|
() => c(this, y).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
|
|
390
390
|
let i = a.fetch(void 0, s);
|
|
391
|
-
return s.throwOnError || (i = i.catch(
|
|
391
|
+
return s.throwOnError || (i = i.catch(M)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
|
|
392
392
|
})
|
|
393
393
|
);
|
|
394
|
-
return Promise.all(
|
|
394
|
+
return Promise.all(n).then(M);
|
|
395
395
|
}
|
|
396
396
|
fetchQuery(e) {
|
|
397
397
|
const t = this.defaultQueryOptions(e);
|
|
@@ -402,13 +402,13 @@ var y, A, E, F, B, I, z, H, Re, vs = (Re = class {
|
|
|
402
402
|
) ? s.fetch(t) : Promise.resolve(s.state.data);
|
|
403
403
|
}
|
|
404
404
|
prefetchQuery(e) {
|
|
405
|
-
return this.fetchQuery(e).then(
|
|
405
|
+
return this.fetchQuery(e).then(M).catch(M);
|
|
406
406
|
}
|
|
407
407
|
fetchInfiniteQuery(e) {
|
|
408
408
|
return e.behavior = Oe(e.pages), this.fetchQuery(e);
|
|
409
409
|
}
|
|
410
410
|
prefetchInfiniteQuery(e) {
|
|
411
|
-
return this.fetchInfiniteQuery(e).then(
|
|
411
|
+
return this.fetchInfiniteQuery(e).then(M).catch(M);
|
|
412
412
|
}
|
|
413
413
|
ensureInfiniteQueryData(e) {
|
|
414
414
|
return e.behavior = Oe(e.pages), this.ensureQueryData(e);
|
|
@@ -426,7 +426,7 @@ var y, A, E, F, B, I, z, H, Re, vs = (Re = class {
|
|
|
426
426
|
return c(this, E);
|
|
427
427
|
}
|
|
428
428
|
setDefaultOptions(e) {
|
|
429
|
-
|
|
429
|
+
b(this, E, e);
|
|
430
430
|
}
|
|
431
431
|
setQueryDefaults(e, t) {
|
|
432
432
|
c(this, F).set(Pe(e), {
|
|
@@ -436,8 +436,8 @@ var y, A, E, F, B, I, z, H, Re, vs = (Re = class {
|
|
|
436
436
|
}
|
|
437
437
|
getQueryDefaults(e) {
|
|
438
438
|
const t = [...c(this, F).values()], s = {};
|
|
439
|
-
return t.forEach((
|
|
440
|
-
Se(e,
|
|
439
|
+
return t.forEach((n) => {
|
|
440
|
+
Se(e, n.queryKey) && Object.assign(s, n.defaultOptions);
|
|
441
441
|
}), s;
|
|
442
442
|
}
|
|
443
443
|
setMutationDefaults(e, t) {
|
|
@@ -449,8 +449,8 @@ var y, A, E, F, B, I, z, H, Re, vs = (Re = class {
|
|
|
449
449
|
getMutationDefaults(e) {
|
|
450
450
|
const t = [...c(this, B).values()];
|
|
451
451
|
let s = {};
|
|
452
|
-
return t.forEach((
|
|
453
|
-
Se(e,
|
|
452
|
+
return t.forEach((n) => {
|
|
453
|
+
Se(e, n.mutationKey) && (s = { ...s, ...n.defaultOptions });
|
|
454
454
|
}), s;
|
|
455
455
|
}
|
|
456
456
|
defaultQueryOptions(e) {
|
|
@@ -479,39 +479,39 @@ var y, A, E, F, B, I, z, H, Re, vs = (Re = class {
|
|
|
479
479
|
c(this, y).clear(), c(this, A).clear();
|
|
480
480
|
}
|
|
481
481
|
}, 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
|
|
482
|
+
function vs(e) {
|
|
483
483
|
return e;
|
|
484
484
|
}
|
|
485
485
|
function Ae(e, t, s) {
|
|
486
486
|
var d, l;
|
|
487
487
|
if (typeof t != "object" || t === null)
|
|
488
488
|
return;
|
|
489
|
-
const
|
|
490
|
-
o.forEach(({ state: f, ...
|
|
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) ?? vs, o = t.mutations || [], u = t.queries || [];
|
|
490
|
+
o.forEach(({ state: f, ...g }) => {
|
|
491
491
|
var h, p;
|
|
492
|
-
|
|
492
|
+
n.build(
|
|
493
493
|
e,
|
|
494
494
|
{
|
|
495
495
|
...(h = e.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
|
|
496
496
|
...(p = s == null ? void 0 : s.defaultOptions) == null ? void 0 : p.mutations,
|
|
497
|
-
...
|
|
497
|
+
...g
|
|
498
498
|
},
|
|
499
499
|
f
|
|
500
500
|
);
|
|
501
|
-
}), u.forEach(({ queryKey: f, state:
|
|
501
|
+
}), u.forEach(({ queryKey: f, state: g, queryHash: h, meta: p, promise: x }) => {
|
|
502
502
|
var W, L;
|
|
503
|
-
let
|
|
504
|
-
const N =
|
|
505
|
-
if (
|
|
506
|
-
if (
|
|
507
|
-
const { fetchStatus:
|
|
508
|
-
|
|
503
|
+
let m = a.get(h);
|
|
504
|
+
const N = g.data === void 0 ? g.data : i(g.data);
|
|
505
|
+
if (m) {
|
|
506
|
+
if (m.state.dataUpdatedAt < g.dataUpdatedAt) {
|
|
507
|
+
const { fetchStatus: v, ...P } = g;
|
|
508
|
+
m.setState({
|
|
509
509
|
...P,
|
|
510
510
|
data: N
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
513
|
} else
|
|
514
|
-
|
|
514
|
+
m = a.build(
|
|
515
515
|
e,
|
|
516
516
|
{
|
|
517
517
|
...(W = e.getDefaultOptions().hydrate) == null ? void 0 : W.queries,
|
|
@@ -523,14 +523,14 @@ function Ae(e, t, s) {
|
|
|
523
523
|
// Reset fetch status to idle to avoid
|
|
524
524
|
// query being stuck in fetching state upon hydration
|
|
525
525
|
{
|
|
526
|
-
...
|
|
526
|
+
...g,
|
|
527
527
|
data: N,
|
|
528
528
|
fetchStatus: "idle"
|
|
529
529
|
}
|
|
530
530
|
);
|
|
531
531
|
if (x) {
|
|
532
|
-
const
|
|
533
|
-
|
|
532
|
+
const v = Promise.resolve(x).then(i);
|
|
533
|
+
m.fetch(void 0, { initialPromise: v });
|
|
534
534
|
}
|
|
535
535
|
});
|
|
536
536
|
}
|
|
@@ -538,27 +538,27 @@ var js = ({
|
|
|
538
538
|
children: e,
|
|
539
539
|
options: t = {},
|
|
540
540
|
state: s,
|
|
541
|
-
queryClient:
|
|
541
|
+
queryClient: n
|
|
542
542
|
}) => {
|
|
543
|
-
const a = Dt(
|
|
543
|
+
const a = Dt(n), [i, o] = $.useState(), u = $.useRef(t);
|
|
544
544
|
return u.current = t, $.useMemo(() => {
|
|
545
545
|
if (s) {
|
|
546
546
|
if (typeof s != "object")
|
|
547
547
|
return;
|
|
548
|
-
const d = a.getQueryCache(), l = s.queries || [], f = [],
|
|
548
|
+
const d = a.getQueryCache(), l = s.queries || [], f = [], g = [];
|
|
549
549
|
for (const h of l) {
|
|
550
550
|
const p = d.get(h.queryHash);
|
|
551
551
|
if (!p)
|
|
552
552
|
f.push(h);
|
|
553
553
|
else {
|
|
554
|
-
const x = h.state.dataUpdatedAt > p.state.dataUpdatedAt,
|
|
554
|
+
const x = h.state.dataUpdatedAt > p.state.dataUpdatedAt, m = i == null ? void 0 : i.find(
|
|
555
555
|
(N) => N.queryHash === h.queryHash
|
|
556
556
|
);
|
|
557
|
-
x && (!
|
|
557
|
+
x && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && g.push(h);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
f.length > 0 && Ae(a, { queries: f }, u.current),
|
|
561
|
-
(h) => h ? [...h, ...
|
|
560
|
+
f.length > 0 && Ae(a, { queries: f }, u.current), g.length > 0 && o(
|
|
561
|
+
(h) => h ? [...h, ...g] : g
|
|
562
562
|
);
|
|
563
563
|
}
|
|
564
564
|
}, [a, i, s]), $.useEffect(() => {
|
|
@@ -578,7 +578,7 @@ var js = ({
|
|
|
578
578
|
function ws(e) {
|
|
579
579
|
return /* @__PURE__ */ $.createElement(ht, { flushSync: zt.flushSync, ...e });
|
|
580
580
|
}
|
|
581
|
-
const ks = new
|
|
581
|
+
const ks = new bs({
|
|
582
582
|
defaultOptions: {
|
|
583
583
|
queries: {
|
|
584
584
|
staleTime: 1e3 * 60 * 5
|
|
@@ -587,34 +587,34 @@ const ks = new vs({
|
|
|
587
587
|
}), Cs = ({
|
|
588
588
|
router: e,
|
|
589
589
|
hydrate: t = !1
|
|
590
|
-
}) => /* @__PURE__ */
|
|
590
|
+
}) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx(Ke, { client: ks, children: /* @__PURE__ */ r.jsx(js, { 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
591
|
router: e,
|
|
592
592
|
context: t,
|
|
593
593
|
queryClient: s,
|
|
594
|
-
helmetContext:
|
|
595
|
-
}) => /* @__PURE__ */
|
|
594
|
+
helmetContext: n
|
|
595
|
+
}) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx(Ke, { client: s, children: /* @__PURE__ */ r.jsx(Fe, { context: n, children: /* @__PURE__ */ r.jsx(ft, { router: e, context: t }) }) }) });
|
|
596
596
|
var Z = { exports: {} }, Ps = Z.exports, Ee;
|
|
597
597
|
function Ss() {
|
|
598
598
|
return Ee || (Ee = 1, function(e, t) {
|
|
599
|
-
(function(s,
|
|
600
|
-
|
|
601
|
-
})(Ps, function(s,
|
|
599
|
+
(function(s, n) {
|
|
600
|
+
n(t, Qt);
|
|
601
|
+
})(Ps, function(s, n) {
|
|
602
602
|
const a = {
|
|
603
603
|
delay: 500,
|
|
604
604
|
minDuration: 200,
|
|
605
605
|
ssr: !0
|
|
606
606
|
};
|
|
607
607
|
function i() {
|
|
608
|
-
const [u, d] =
|
|
609
|
-
return
|
|
608
|
+
const [u, d] = n.useState(!0);
|
|
609
|
+
return n.useEffect(() => {
|
|
610
610
|
d(!1);
|
|
611
611
|
}, []), u;
|
|
612
612
|
}
|
|
613
613
|
function o(u, d) {
|
|
614
614
|
d = Object.assign({}, a, d);
|
|
615
|
-
const l = i() && d.ssr, f = l && u ? "DISPLAY" : "IDLE", [
|
|
616
|
-
return
|
|
617
|
-
if (u && (
|
|
615
|
+
const l = i() && d.ssr, f = l && u ? "DISPLAY" : "IDLE", [g, h] = n.useState(f), p = n.useRef(null);
|
|
616
|
+
return n.useEffect(() => {
|
|
617
|
+
if (u && (g === "IDLE" || l)) {
|
|
618
618
|
clearTimeout(p.current);
|
|
619
619
|
const x = l ? 0 : d.delay;
|
|
620
620
|
p.current = setTimeout(() => {
|
|
@@ -625,43 +625,65 @@ function Ss() {
|
|
|
625
625
|
}, d.minDuration), h("DISPLAY");
|
|
626
626
|
}, x), l || h("DELAY");
|
|
627
627
|
}
|
|
628
|
-
!u &&
|
|
629
|
-
}, [u,
|
|
628
|
+
!u && g !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
|
|
629
|
+
}, [u, g, d.delay, d.minDuration, l]), n.useEffect(() => () => clearTimeout(p.current), []), g === "DISPLAY" || g === "EXPIRE";
|
|
630
630
|
}
|
|
631
631
|
s.defaultOptions = a, s.useSpinDelay = o;
|
|
632
632
|
});
|
|
633
633
|
}(Z, Z.exports)), Z.exports;
|
|
634
634
|
}
|
|
635
635
|
var Ds = Ss();
|
|
636
|
-
const Os =
|
|
636
|
+
const Os = {
|
|
637
|
+
green: "bg-green-400 dark:bg-green-800",
|
|
638
|
+
blue: "bg-sky-400 dark:bg-sky-800",
|
|
639
|
+
yellow: "bg-yellow-400 dark:bg-yellow-800",
|
|
640
|
+
red: "bg-red-400 dark:bg-red-800",
|
|
641
|
+
purple: "bg-purple-400 dark:bg-purple-600",
|
|
642
|
+
indigo: "bg-indigo-400 dark:bg-indigo-600",
|
|
643
|
+
gray: "bg-gray-400 dark:bg-gray-600"
|
|
644
|
+
}, ae = ({
|
|
645
|
+
color: e,
|
|
646
|
+
label: t,
|
|
647
|
+
className: s
|
|
648
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
649
|
+
"span",
|
|
650
|
+
{
|
|
651
|
+
className: O(
|
|
652
|
+
"mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
|
|
653
|
+
Os[e],
|
|
654
|
+
s
|
|
655
|
+
),
|
|
656
|
+
children: t
|
|
657
|
+
}
|
|
658
|
+
), Ms = ({
|
|
637
659
|
category: e,
|
|
638
660
|
onRequestClose: t
|
|
639
661
|
}) => {
|
|
640
662
|
var h, p;
|
|
641
|
-
const s = Ot(e), [
|
|
663
|
+
const s = Ot(e), [n, a] = Q(!1), i = e.collapsible ?? !0, o = e.collapsed ?? !0, u = !!(!i || !o || s), [d, l] = Q(u), f = gt(((h = e.link) == null ? void 0 : h.id) ?? "");
|
|
642
664
|
R(() => {
|
|
643
665
|
s && l(!0);
|
|
644
666
|
}, [s]);
|
|
645
|
-
const
|
|
667
|
+
const g = i && /* @__PURE__ */ r.jsx(
|
|
646
668
|
"button",
|
|
647
669
|
{
|
|
648
670
|
type: "button",
|
|
649
671
|
onClick: (x) => {
|
|
650
|
-
x.preventDefault(), l((
|
|
672
|
+
x.preventDefault(), l((m) => !m), a(!0);
|
|
651
673
|
},
|
|
652
|
-
children: /* @__PURE__ */
|
|
674
|
+
children: /* @__PURE__ */ r.jsx(
|
|
653
675
|
Ht,
|
|
654
676
|
{
|
|
655
677
|
size: 16,
|
|
656
|
-
className:
|
|
657
|
-
|
|
678
|
+
className: O(
|
|
679
|
+
n && "transition",
|
|
658
680
|
"shrink-0 group-data-[state=open]:rotate-90"
|
|
659
681
|
)
|
|
660
682
|
}
|
|
661
683
|
)
|
|
662
684
|
}
|
|
663
685
|
);
|
|
664
|
-
return /* @__PURE__ */
|
|
686
|
+
return /* @__PURE__ */ r.jsxs(
|
|
665
687
|
re.Root,
|
|
666
688
|
{
|
|
667
689
|
className: "flex flex-col",
|
|
@@ -669,7 +691,7 @@ const Os = ({
|
|
|
669
691
|
open: d,
|
|
670
692
|
onOpenChange: () => l(!0),
|
|
671
693
|
children: [
|
|
672
|
-
/* @__PURE__ */
|
|
694
|
+
/* @__PURE__ */ r.jsx(re.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ r.jsxs(
|
|
673
695
|
"div",
|
|
674
696
|
{
|
|
675
697
|
onClick: () => a(!0),
|
|
@@ -681,14 +703,14 @@ const Os = ({
|
|
|
681
703
|
]
|
|
682
704
|
}),
|
|
683
705
|
children: [
|
|
684
|
-
e.icon && /* @__PURE__ */
|
|
706
|
+
e.icon && /* @__PURE__ */ r.jsx(
|
|
685
707
|
e.icon,
|
|
686
708
|
{
|
|
687
709
|
size: 16,
|
|
688
|
-
className:
|
|
710
|
+
className: O("align-[-0.125em] ", f && "text-primary")
|
|
689
711
|
}
|
|
690
712
|
),
|
|
691
|
-
((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */
|
|
713
|
+
((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ r.jsx(
|
|
692
714
|
ee,
|
|
693
715
|
{
|
|
694
716
|
to: q(e.link.id),
|
|
@@ -696,40 +718,40 @@ const Os = ({
|
|
|
696
718
|
onClick: () => {
|
|
697
719
|
f && !d && l(!0);
|
|
698
720
|
},
|
|
699
|
-
children: /* @__PURE__ */
|
|
721
|
+
children: /* @__PURE__ */ r.jsxs(
|
|
700
722
|
"div",
|
|
701
723
|
{
|
|
702
|
-
className:
|
|
724
|
+
className: O(
|
|
703
725
|
"flex items-center gap-2 justify-between w-full",
|
|
704
726
|
f ? "text-primary" : "text-foreground/80"
|
|
705
727
|
),
|
|
706
728
|
children: [
|
|
707
|
-
/* @__PURE__ */
|
|
708
|
-
|
|
729
|
+
/* @__PURE__ */ r.jsx("div", { className: "truncate", children: e.label }),
|
|
730
|
+
g
|
|
709
731
|
]
|
|
710
732
|
}
|
|
711
733
|
)
|
|
712
734
|
}
|
|
713
|
-
) : /* @__PURE__ */
|
|
714
|
-
/* @__PURE__ */
|
|
715
|
-
|
|
735
|
+
) : /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
736
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
|
|
737
|
+
g
|
|
716
738
|
] })
|
|
717
739
|
]
|
|
718
740
|
}
|
|
719
741
|
) }),
|
|
720
|
-
/* @__PURE__ */
|
|
742
|
+
/* @__PURE__ */ r.jsx(
|
|
721
743
|
re.Content,
|
|
722
744
|
{
|
|
723
|
-
className:
|
|
745
|
+
className: O(
|
|
724
746
|
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
725
|
-
|
|
747
|
+
n && "CollapsibleContent",
|
|
726
748
|
"ms-6 my-1"
|
|
727
749
|
),
|
|
728
|
-
children: /* @__PURE__ */
|
|
750
|
+
children: /* @__PURE__ */ r.jsx(
|
|
729
751
|
"ul",
|
|
730
752
|
{
|
|
731
753
|
className: "relative after:absolute after:-left-[--padding-nav-item] after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border",
|
|
732
|
-
children: e.items.map((x) => /* @__PURE__ */
|
|
754
|
+
children: e.items.map((x) => /* @__PURE__ */ r.jsx(
|
|
733
755
|
ce,
|
|
734
756
|
{
|
|
735
757
|
onRequestClose: t,
|
|
@@ -766,43 +788,43 @@ const Os = ({
|
|
|
766
788
|
onRequestClose: t
|
|
767
789
|
}) => {
|
|
768
790
|
var a, i;
|
|
769
|
-
const { activeAnchor: s } = xe(), [
|
|
791
|
+
const { activeAnchor: s } = xe(), [n] = mt();
|
|
770
792
|
switch (e.type) {
|
|
771
793
|
case "category":
|
|
772
|
-
return /* @__PURE__ */
|
|
794
|
+
return /* @__PURE__ */ r.jsx(Ms, { category: e, onRequestClose: t });
|
|
773
795
|
case "doc":
|
|
774
|
-
return /* @__PURE__ */
|
|
796
|
+
return /* @__PURE__ */ r.jsxs(
|
|
775
797
|
ee,
|
|
776
798
|
{
|
|
777
799
|
className: ({ isActive: o }) => V({ isActive: o }),
|
|
778
800
|
to: q(e.id),
|
|
779
801
|
onClick: t,
|
|
780
802
|
children: [
|
|
781
|
-
e.icon && /* @__PURE__ */
|
|
782
|
-
e.badge ? /* @__PURE__ */
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
/* @__PURE__ */
|
|
803
|
+
e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
804
|
+
e.badge ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
805
|
+
/* @__PURE__ */ r.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
|
|
806
|
+
/* @__PURE__ */ r.jsx(ae, { ...e.badge })
|
|
785
807
|
] }) : e.label
|
|
786
808
|
]
|
|
787
809
|
}
|
|
788
810
|
);
|
|
789
811
|
case "link":
|
|
790
|
-
return e.href.startsWith("#") ? /* @__PURE__ */
|
|
812
|
+
return e.href.startsWith("#") ? /* @__PURE__ */ r.jsx(
|
|
791
813
|
Gt,
|
|
792
814
|
{
|
|
793
|
-
to: { hash: e.href, search:
|
|
815
|
+
to: { hash: e.href, search: n.toString() },
|
|
794
816
|
[Ge]: e.href.slice(1),
|
|
795
817
|
className: V({
|
|
796
818
|
isActive: e.href.slice(1) === s,
|
|
797
819
|
className: ((a = e.badge) == null ? void 0 : a.placement) !== "start" && "justify-between"
|
|
798
820
|
}),
|
|
799
821
|
onClick: t,
|
|
800
|
-
children: e.badge ? /* @__PURE__ */
|
|
801
|
-
/* @__PURE__ */
|
|
802
|
-
/* @__PURE__ */
|
|
803
|
-
] }) : /* @__PURE__ */
|
|
822
|
+
children: e.badge ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
823
|
+
/* @__PURE__ */ r.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
824
|
+
/* @__PURE__ */ r.jsx(ae, { ...e.badge })
|
|
825
|
+
] }) : /* @__PURE__ */ r.jsx("span", { className: "break-all", children: e.label })
|
|
804
826
|
}
|
|
805
|
-
) : e.href.startsWith("http") ? /* @__PURE__ */
|
|
827
|
+
) : e.href.startsWith("http") ? /* @__PURE__ */ r.jsxs(
|
|
806
828
|
"a",
|
|
807
829
|
{
|
|
808
830
|
className: V(),
|
|
@@ -811,150 +833,150 @@ const Os = ({
|
|
|
811
833
|
rel: "noopener noreferrer",
|
|
812
834
|
onClick: t,
|
|
813
835
|
children: [
|
|
814
|
-
/* @__PURE__ */
|
|
815
|
-
/* @__PURE__ */
|
|
836
|
+
/* @__PURE__ */ r.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
837
|
+
/* @__PURE__ */ r.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ r.jsx(Lt, { className: "inline -translate-y-0.5", size: 12 }) })
|
|
816
838
|
]
|
|
817
839
|
}
|
|
818
|
-
) : /* @__PURE__ */
|
|
840
|
+
) : /* @__PURE__ */ r.jsx(
|
|
819
841
|
ee,
|
|
820
842
|
{
|
|
821
843
|
className: V({
|
|
822
844
|
className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
|
|
823
845
|
}),
|
|
824
846
|
to: e.href,
|
|
825
|
-
children: e.badge ? /* @__PURE__ */
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
] }) : /* @__PURE__ */
|
|
847
|
+
children: e.badge ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
848
|
+
/* @__PURE__ */ r.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
849
|
+
/* @__PURE__ */ r.jsx(ae, { ...e.badge })
|
|
850
|
+
] }) : /* @__PURE__ */ r.jsx("span", { className: "break-all", children: e.label })
|
|
829
851
|
}
|
|
830
852
|
);
|
|
831
853
|
}
|
|
832
|
-
},
|
|
854
|
+
}, As = (e, t = { block: "center" }) => {
|
|
833
855
|
if (!e) return;
|
|
834
856
|
const s = e.getBoundingClientRect();
|
|
835
857
|
s.top >= 0 && s.left >= 0 && s.bottom <= (window.innerHeight || document.documentElement.clientHeight) && s.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
836
|
-
},
|
|
858
|
+
}, Es = () => {
|
|
837
859
|
const e = de(), { setActiveAnchor: t } = xe();
|
|
838
860
|
R(() => {
|
|
839
861
|
if (!e.hash) return;
|
|
840
|
-
const s = decodeURIComponent(e.hash.split("/")[0].slice(1)),
|
|
862
|
+
const s = decodeURIComponent(e.hash.split("/")[0].slice(1)), n = () => {
|
|
841
863
|
const a = document.getElementById(s), i = document.querySelector(`[${Ge}="${s}"]`);
|
|
842
|
-
return a ? (a.scrollIntoView(),
|
|
864
|
+
return a ? (a.scrollIntoView(), As(i), requestIdleCallback(() => t(s)), !0) : !1;
|
|
843
865
|
};
|
|
844
|
-
if (!
|
|
866
|
+
if (!n()) {
|
|
845
867
|
const a = new MutationObserver((i, o) => {
|
|
846
|
-
|
|
868
|
+
n() && o.disconnect();
|
|
847
869
|
});
|
|
848
870
|
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
849
871
|
}
|
|
850
872
|
}, [e.hash, t]);
|
|
851
|
-
},
|
|
852
|
-
const e = de(), t =
|
|
873
|
+
}, Is = () => {
|
|
874
|
+
const e = de(), t = ge(e.pathname);
|
|
853
875
|
R(() => {
|
|
854
876
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
855
877
|
}, [e.pathname]);
|
|
856
878
|
};
|
|
857
|
-
function
|
|
879
|
+
function Qs({
|
|
858
880
|
className: e,
|
|
859
881
|
...t
|
|
860
882
|
}) {
|
|
861
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ r.jsx(
|
|
862
884
|
"div",
|
|
863
885
|
{
|
|
864
|
-
className:
|
|
886
|
+
className: O("animate-pulse rounded-md bg-muted", e),
|
|
865
887
|
...t
|
|
866
888
|
}
|
|
867
889
|
);
|
|
868
890
|
}
|
|
869
|
-
const
|
|
891
|
+
const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", qs = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Rs = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Fs = (e) => "initialize" in e && typeof e.initialize == "function", Bs = (e) => "getHead" in e && typeof e.getHead == "function", zs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Hs = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ie = {
|
|
870
892
|
info: "bg-blue-500",
|
|
871
893
|
note: "bg-gray-500",
|
|
872
894
|
tip: "bg-green-600",
|
|
873
895
|
caution: "bg-orange-500",
|
|
874
896
|
danger: "bg-rose-500"
|
|
875
|
-
},
|
|
897
|
+
}, Ls = () => {
|
|
876
898
|
const { page: e } = T(), [t, s] = Q(!0);
|
|
877
899
|
if (!(e != null && e.banner) || !t)
|
|
878
|
-
return /* @__PURE__ */
|
|
879
|
-
const
|
|
880
|
-
return /* @__PURE__ */
|
|
900
|
+
return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
901
|
+
const n = e.banner.color && e.banner.color in Ie ? Ie[e.banner.color] : e.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: e.banner.color };
|
|
902
|
+
return /* @__PURE__ */ r.jsxs(
|
|
881
903
|
"div",
|
|
882
904
|
{
|
|
883
|
-
className:
|
|
905
|
+
className: O(
|
|
884
906
|
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
|
|
885
|
-
|
|
907
|
+
n
|
|
886
908
|
),
|
|
887
909
|
style: a,
|
|
888
910
|
children: [
|
|
889
|
-
/* @__PURE__ */
|
|
890
|
-
e.banner.dismissible && /* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full", children: e.banner.message }),
|
|
912
|
+
e.banner.dismissible && /* @__PURE__ */ r.jsx(
|
|
891
913
|
"button",
|
|
892
914
|
{
|
|
893
915
|
type: "button",
|
|
894
916
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
895
917
|
onClick: () => s(!1),
|
|
896
|
-
children: /* @__PURE__ */
|
|
918
|
+
children: /* @__PURE__ */ r.jsx(Kt, { size: 16 })
|
|
897
919
|
}
|
|
898
920
|
)
|
|
899
921
|
]
|
|
900
922
|
}
|
|
901
923
|
);
|
|
902
924
|
}, et = ({ className: e }) => {
|
|
903
|
-
const t = T(), [s,
|
|
925
|
+
const t = T(), [s, n] = Q(!1), a = Tt(() => n(!1), []);
|
|
904
926
|
R(() => {
|
|
905
927
|
if (s)
|
|
906
928
|
return;
|
|
907
929
|
function o(u) {
|
|
908
|
-
u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(),
|
|
930
|
+
u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
|
|
909
931
|
}
|
|
910
932
|
return window.addEventListener("keydown", o), () => {
|
|
911
933
|
window.removeEventListener("keydown", o);
|
|
912
934
|
};
|
|
913
|
-
}, [s,
|
|
914
|
-
const i = t.plugins.find(
|
|
915
|
-
return i ? /* @__PURE__ */
|
|
916
|
-
/* @__PURE__ */
|
|
935
|
+
}, [s, n]);
|
|
936
|
+
const i = t.plugins.find(Rs);
|
|
937
|
+
return i ? /* @__PURE__ */ r.jsxs("div", { className: e, children: [
|
|
938
|
+
/* @__PURE__ */ r.jsxs(
|
|
917
939
|
"button",
|
|
918
940
|
{
|
|
919
941
|
type: "button",
|
|
920
|
-
onClick: () =>
|
|
942
|
+
onClick: () => n(!0),
|
|
921
943
|
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",
|
|
922
944
|
children: [
|
|
923
|
-
/* @__PURE__ */
|
|
924
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
946
|
+
/* @__PURE__ */ r.jsx($t, { size: 14 }),
|
|
925
947
|
"Search"
|
|
926
948
|
] }),
|
|
927
|
-
/* @__PURE__ */
|
|
949
|
+
/* @__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" })
|
|
928
950
|
]
|
|
929
951
|
}
|
|
930
952
|
),
|
|
931
|
-
/* @__PURE__ */
|
|
953
|
+
/* @__PURE__ */ r.jsx(me, { fallback: null, children: i.renderSearch({
|
|
932
954
|
isOpen: s,
|
|
933
955
|
onClose: a
|
|
934
956
|
}) })
|
|
935
957
|
] }) : null;
|
|
936
958
|
}, tt = () => {
|
|
937
959
|
const { resolvedTheme: e, setTheme: t } = ds(), s = e === "dark" ? Zt : Vt;
|
|
938
|
-
return /* @__PURE__ */
|
|
960
|
+
return /* @__PURE__ */ r.jsx(pe, { children: /* @__PURE__ */ r.jsx(
|
|
939
961
|
le,
|
|
940
962
|
{
|
|
941
963
|
variant: "ghost",
|
|
942
964
|
"aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
|
|
943
965
|
className: "p-2.5 -m-2.5 rounded-full",
|
|
944
966
|
onClick: () => t(e === "dark" ? "light" : "dark"),
|
|
945
|
-
children: /* @__PURE__ */
|
|
967
|
+
children: /* @__PURE__ */ r.jsx(s, { size: 18 })
|
|
946
968
|
}
|
|
947
969
|
) });
|
|
948
|
-
}, st = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always",
|
|
970
|
+
}, st = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Ks = () => {
|
|
949
971
|
const { topNavigation: e } = T(), { isAuthenticated: t } = te();
|
|
950
|
-
return e.length <= 1 ? /* @__PURE__ */
|
|
951
|
-
},
|
|
972
|
+
return e.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(me, { 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(st(t)).map((s) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(rt, { ...s }) }, s.id)) }) }) });
|
|
973
|
+
}, rt = ({
|
|
952
974
|
id: e,
|
|
953
975
|
label: t,
|
|
954
976
|
default: s
|
|
955
977
|
}) => {
|
|
956
978
|
var l;
|
|
957
|
-
const { sidebars:
|
|
979
|
+
const { sidebars: n } = T(), a = n[e], i = $e(), o = !!he().location, u = ((l = i.topNavItem) == null ? void 0 : l.id) === e && !o, d = s ?? (a ? Mt(a, (f) => {
|
|
958
980
|
if (f.type === "doc") return q(f.id);
|
|
959
981
|
}) : q(e));
|
|
960
982
|
if (!d)
|
|
@@ -964,7 +986,7 @@ const Qs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
964
986
|
return (
|
|
965
987
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
966
988
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
967
|
-
/* @__PURE__ */
|
|
989
|
+
/* @__PURE__ */ r.jsx(
|
|
968
990
|
ee,
|
|
969
991
|
{
|
|
970
992
|
className: ({ isPending: f }) => Jt(
|
|
@@ -976,27 +998,27 @@ const Qs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
976
998
|
}
|
|
977
999
|
)
|
|
978
1000
|
);
|
|
979
|
-
},
|
|
980
|
-
const { topNavigation: e } = T(), { isAuthenticated: t } = te(), [s,
|
|
981
|
-
return /* @__PURE__ */
|
|
1001
|
+
}, $s = () => {
|
|
1002
|
+
const { topNavigation: e } = T(), { isAuthenticated: t } = te(), [s, n] = Q(!1);
|
|
1003
|
+
return /* @__PURE__ */ r.jsxs(
|
|
982
1004
|
We,
|
|
983
1005
|
{
|
|
984
1006
|
direction: "right",
|
|
985
1007
|
open: s,
|
|
986
|
-
onOpenChange: (a) =>
|
|
1008
|
+
onOpenChange: (a) => n(a),
|
|
987
1009
|
children: [
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
/* @__PURE__ */
|
|
1010
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(_e, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Ut, { size: 22 }) }) }),
|
|
1011
|
+
/* @__PURE__ */ r.jsx(
|
|
990
1012
|
Xe,
|
|
991
1013
|
{
|
|
992
1014
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
993
1015
|
"aria-describedby": void 0,
|
|
994
|
-
children: /* @__PURE__ */
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
/* @__PURE__ */
|
|
998
|
-
/* @__PURE__ */
|
|
999
|
-
e.filter(st(t)).map((a) => /* @__PURE__ */
|
|
1016
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1017
|
+
/* @__PURE__ */ r.jsx(Je, { children: /* @__PURE__ */ r.jsx(Ye, { children: "Navigation" }) }),
|
|
1018
|
+
/* @__PURE__ */ r.jsx(et, { className: "flex p-4" }),
|
|
1019
|
+
/* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
1020
|
+
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(tt, {}) }),
|
|
1021
|
+
e.filter(st(t)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ r.jsx(rt, { ...a }) }) }, a.label))
|
|
1000
1022
|
] })
|
|
1001
1023
|
] })
|
|
1002
1024
|
}
|
|
@@ -1004,24 +1026,24 @@ const Qs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1004
1026
|
]
|
|
1005
1027
|
}
|
|
1006
1028
|
);
|
|
1007
|
-
}, G = ({ item: e }) => e.children ? /* @__PURE__ */
|
|
1008
|
-
/* @__PURE__ */
|
|
1009
|
-
/* @__PURE__ */
|
|
1029
|
+
}, G = ({ item: e }) => e.children ? /* @__PURE__ */ r.jsxs(is, { children: [
|
|
1030
|
+
/* @__PURE__ */ r.jsx(os, { children: e.label }),
|
|
1031
|
+
/* @__PURE__ */ r.jsx(ls, { children: /* @__PURE__ */ r.jsx(cs, { children: e.children.map((t, s) => (
|
|
1010
1032
|
// eslint-disable-next-line react/no-array-index-key
|
|
1011
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ r.jsx(G, { item: t }, s)
|
|
1012
1034
|
)) }) })
|
|
1013
|
-
] }, e.label) : /* @__PURE__ */
|
|
1014
|
-
e.icon && /* @__PURE__ */
|
|
1035
|
+
] }, e.label) : /* @__PURE__ */ r.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(us, { className: "flex gap-2", children: [
|
|
1036
|
+
e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
1015
1037
|
e.label
|
|
1016
|
-
] }, e.label) }),
|
|
1017
|
-
const t = te(), { isAuthenticated: s, profile:
|
|
1018
|
-
return /* @__PURE__ */
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
-
/* @__PURE__ */
|
|
1023
|
-
(o == null ? void 0 : o.logo) && /* @__PURE__ */
|
|
1024
|
-
/* @__PURE__ */
|
|
1038
|
+
] }, e.label) }), nt = Ve(function() {
|
|
1039
|
+
const t = te(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = te(), i = T(), { page: o, plugins: u } = i, d = u.filter((l) => Ts(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
|
|
1040
|
+
return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1041
|
+
/* @__PURE__ */ r.jsx(Ls, {}),
|
|
1042
|
+
/* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1043
|
+
/* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-4 lg:px-12 h-[--top-header-height]", children: [
|
|
1044
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(fe, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1045
|
+
(o == null ? void 0 : o.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1046
|
+
/* @__PURE__ */ r.jsx(
|
|
1025
1047
|
"img",
|
|
1026
1048
|
{
|
|
1027
1049
|
src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : q(
|
|
@@ -1034,7 +1056,7 @@ const Qs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1034
1056
|
loading: "lazy"
|
|
1035
1057
|
}
|
|
1036
1058
|
),
|
|
1037
|
-
/* @__PURE__ */
|
|
1059
|
+
/* @__PURE__ */ r.jsx(
|
|
1038
1060
|
"img",
|
|
1039
1061
|
{
|
|
1040
1062
|
src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : q(
|
|
@@ -1048,103 +1070,103 @@ const Qs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1048
1070
|
}
|
|
1049
1071
|
)
|
|
1050
1072
|
] }),
|
|
1051
|
-
/* @__PURE__ */
|
|
1073
|
+
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
|
|
1052
1074
|
] }) }) }),
|
|
1053
|
-
/* @__PURE__ */
|
|
1054
|
-
/* @__PURE__ */
|
|
1055
|
-
/* @__PURE__ */
|
|
1056
|
-
/* @__PURE__ */
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
a && /* @__PURE__ */
|
|
1075
|
+
/* @__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(et, {}) }),
|
|
1077
|
+
/* @__PURE__ */ r.jsx($s, {}),
|
|
1078
|
+
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1079
|
+
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-start" }),
|
|
1080
|
+
a && /* @__PURE__ */ r.jsx(
|
|
1059
1081
|
pe,
|
|
1060
1082
|
{
|
|
1061
|
-
fallback: /* @__PURE__ */
|
|
1062
|
-
children: s ? Object.values(d).length > 0 && /* @__PURE__ */
|
|
1063
|
-
/* @__PURE__ */
|
|
1064
|
-
/* @__PURE__ */
|
|
1065
|
-
/* @__PURE__ */
|
|
1066
|
-
|
|
1067
|
-
(
|
|
1083
|
+
fallback: /* @__PURE__ */ r.jsx(Qs, { className: "rounded h-5 w-24 mr-4" }),
|
|
1084
|
+
children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(ss, { modal: !1, children: [
|
|
1085
|
+
/* @__PURE__ */ r.jsx(rs, { asChild: !0, children: /* @__PURE__ */ r.jsx(le, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
1086
|
+
/* @__PURE__ */ r.jsxs(ns, { className: "w-56", children: [
|
|
1087
|
+
/* @__PURE__ */ r.jsxs(as, { children: [
|
|
1088
|
+
n != null && n.name ? `${n.name}` : "My Account",
|
|
1089
|
+
(n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
1068
1090
|
] }),
|
|
1069
|
-
d.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */
|
|
1070
|
-
d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */
|
|
1091
|
+
d.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1092
|
+
d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ r.jsx(G, { item: l }, l.label)),
|
|
1071
1093
|
d.filter(
|
|
1072
1094
|
(l) => !l.category || l.category === "middle"
|
|
1073
|
-
).length > 0 && /* @__PURE__ */
|
|
1095
|
+
).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1074
1096
|
d.filter(
|
|
1075
1097
|
(l) => !l.category || l.category === "middle"
|
|
1076
|
-
).map((l) => /* @__PURE__ */
|
|
1077
|
-
d.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */
|
|
1078
|
-
d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */
|
|
1098
|
+
).map((l) => /* @__PURE__ */ r.jsx(G, { item: l }, l.label)),
|
|
1099
|
+
d.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1100
|
+
d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ r.jsx(G, { item: l }, l.label))
|
|
1079
1101
|
] })
|
|
1080
|
-
] }) : /* @__PURE__ */
|
|
1102
|
+
] }) : /* @__PURE__ */ r.jsx(le, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
1081
1103
|
}
|
|
1082
1104
|
),
|
|
1083
|
-
/* @__PURE__ */
|
|
1084
|
-
/* @__PURE__ */
|
|
1105
|
+
/* @__PURE__ */ r.jsx(tt, {}),
|
|
1106
|
+
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" })
|
|
1085
1107
|
] })
|
|
1086
1108
|
] })
|
|
1087
1109
|
] }),
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1090
|
-
/* @__PURE__ */
|
|
1110
|
+
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-before" }),
|
|
1111
|
+
/* @__PURE__ */ r.jsx(Ks, {}),
|
|
1112
|
+
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-after" })
|
|
1091
1113
|
] })
|
|
1092
1114
|
] });
|
|
1093
|
-
}), at = qt(({ children: e, className: t, pushMainContent: s },
|
|
1115
|
+
}), at = qt(({ children: e, className: t, pushMainContent: s }, n) => /* @__PURE__ */ r.jsx(
|
|
1094
1116
|
"nav",
|
|
1095
1117
|
{
|
|
1096
1118
|
"data-navigation": String(s),
|
|
1097
|
-
className:
|
|
1119
|
+
className: O(
|
|
1098
1120
|
"scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
|
|
1099
1121
|
"-mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
|
|
1100
1122
|
"w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
1101
1123
|
t
|
|
1102
1124
|
),
|
|
1103
|
-
ref:
|
|
1125
|
+
ref: n,
|
|
1104
1126
|
children: e
|
|
1105
1127
|
}
|
|
1106
1128
|
));
|
|
1107
1129
|
at.displayName = "SidebarWrapper";
|
|
1108
|
-
const
|
|
1130
|
+
const Zs = ({
|
|
1109
1131
|
onRequestClose: e
|
|
1110
1132
|
}) => {
|
|
1111
|
-
const t =
|
|
1112
|
-
return /* @__PURE__ */
|
|
1113
|
-
/* @__PURE__ */
|
|
1133
|
+
const t = ge(null), s = $e();
|
|
1134
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1135
|
+
/* @__PURE__ */ r.jsxs(
|
|
1114
1136
|
at,
|
|
1115
1137
|
{
|
|
1116
1138
|
ref: t,
|
|
1117
1139
|
pushMainContent: s.sidebar.length > 0,
|
|
1118
1140
|
children: [
|
|
1119
|
-
/* @__PURE__ */
|
|
1120
|
-
s.sidebar.map((
|
|
1121
|
-
/* @__PURE__ */
|
|
1141
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-before-navigation" }),
|
|
1142
|
+
s.sidebar.map((n) => /* @__PURE__ */ r.jsx(ce, { item: n }, n.label)),
|
|
1143
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-after-navigation" })
|
|
1122
1144
|
]
|
|
1123
1145
|
}
|
|
1124
1146
|
),
|
|
1125
|
-
/* @__PURE__ */
|
|
1147
|
+
/* @__PURE__ */ r.jsx(
|
|
1126
1148
|
Xe,
|
|
1127
1149
|
{
|
|
1128
1150
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1129
1151
|
"aria-describedby": void 0,
|
|
1130
|
-
children: /* @__PURE__ */
|
|
1131
|
-
/* @__PURE__ */
|
|
1132
|
-
s.sidebar.map((
|
|
1152
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1153
|
+
/* @__PURE__ */ r.jsx(Je, { children: /* @__PURE__ */ r.jsx(Ye, { children: "Sidebar" }) }),
|
|
1154
|
+
s.sidebar.map((n) => /* @__PURE__ */ r.jsx(
|
|
1133
1155
|
ce,
|
|
1134
1156
|
{
|
|
1135
|
-
item:
|
|
1157
|
+
item: n,
|
|
1136
1158
|
onRequestClose: e
|
|
1137
1159
|
},
|
|
1138
|
-
|
|
1160
|
+
n.label
|
|
1139
1161
|
))
|
|
1140
1162
|
] })
|
|
1141
1163
|
}
|
|
1142
1164
|
)
|
|
1143
1165
|
] });
|
|
1144
|
-
}, Qe = () => /* @__PURE__ */
|
|
1145
|
-
const t = de(), { setActiveAnchor: s } = xe(), { meta:
|
|
1146
|
-
|
|
1147
|
-
const i =
|
|
1166
|
+
}, Qe = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(gs, {}) }), Vs = ({ children: e }) => {
|
|
1167
|
+
const t = de(), { setActiveAnchor: s } = xe(), { meta: n, authentication: a } = T();
|
|
1168
|
+
Es(), Is();
|
|
1169
|
+
const i = ge(t.pathname);
|
|
1148
1170
|
R(() => {
|
|
1149
1171
|
var f;
|
|
1150
1172
|
(f = a == null ? void 0 : a.onPageLoad) == null || f.call(a);
|
|
@@ -1155,40 +1177,40 @@ const $s = ({
|
|
|
1155
1177
|
delay: 300,
|
|
1156
1178
|
minDuration: 500
|
|
1157
1179
|
}), [d, l] = Q(!1);
|
|
1158
|
-
return /* @__PURE__ */
|
|
1180
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1159
1181
|
!1,
|
|
1160
|
-
/* @__PURE__ */
|
|
1161
|
-
(
|
|
1162
|
-
(
|
|
1182
|
+
/* @__PURE__ */ r.jsxs(ue, { titleTemplate: n == null ? void 0 : n.title, children: [
|
|
1183
|
+
(n == null ? void 0 : n.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: n.description }),
|
|
1184
|
+
(n == null ? void 0 : n.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: n.favicon })
|
|
1163
1185
|
] }),
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
/* @__PURE__ */
|
|
1166
|
-
/* @__PURE__ */
|
|
1167
|
-
/* @__PURE__ */
|
|
1186
|
+
/* @__PURE__ */ r.jsx(D, { name: "layout-before-head" }),
|
|
1187
|
+
/* @__PURE__ */ r.jsx(nt, {}),
|
|
1188
|
+
/* @__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(me, { fallback: /* @__PURE__ */ r.jsx(Qe, {}), children: /* @__PURE__ */ r.jsxs(
|
|
1168
1190
|
We,
|
|
1169
1191
|
{
|
|
1170
1192
|
direction: "left",
|
|
1171
1193
|
open: d,
|
|
1172
1194
|
onOpenChange: (f) => l(f),
|
|
1173
1195
|
children: [
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
/* @__PURE__ */
|
|
1196
|
+
/* @__PURE__ */ r.jsx(Zs, { onRequestClose: () => l(!1) }),
|
|
1197
|
+
/* @__PURE__ */ r.jsx(
|
|
1176
1198
|
"div",
|
|
1177
1199
|
{
|
|
1178
|
-
className:
|
|
1200
|
+
className: O(
|
|
1179
1201
|
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1180
1202
|
"peer-data-[navigation=false]:hidden"
|
|
1181
1203
|
),
|
|
1182
|
-
children: /* @__PURE__ */
|
|
1183
|
-
/* @__PURE__ */
|
|
1184
|
-
/* @__PURE__ */
|
|
1204
|
+
children: /* @__PURE__ */ r.jsxs(_e, { className: "flex items-center gap-2", children: [
|
|
1205
|
+
/* @__PURE__ */ r.jsx(Wt, { size: 16, strokeWidth: 1.5 }),
|
|
1206
|
+
/* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1185
1207
|
] })
|
|
1186
1208
|
}
|
|
1187
1209
|
),
|
|
1188
|
-
/* @__PURE__ */
|
|
1210
|
+
/* @__PURE__ */ r.jsxs(
|
|
1189
1211
|
"main",
|
|
1190
1212
|
{
|
|
1191
|
-
className:
|
|
1213
|
+
className: O(
|
|
1192
1214
|
"h-full dark:border-white/10 translate-x-0",
|
|
1193
1215
|
"lg:overflow-visible",
|
|
1194
1216
|
// This works in tandem with the `SidebarWrapper` component
|
|
@@ -1196,9 +1218,9 @@ const $s = ({
|
|
|
1196
1218
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
1197
1219
|
),
|
|
1198
1220
|
children: [
|
|
1199
|
-
/* @__PURE__ */
|
|
1200
|
-
e ?? /* @__PURE__ */
|
|
1201
|
-
/* @__PURE__ */
|
|
1221
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-before-content" }),
|
|
1222
|
+
e ?? /* @__PURE__ */ r.jsx(Be, {}),
|
|
1223
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-after-content" })
|
|
1202
1224
|
]
|
|
1203
1225
|
}
|
|
1204
1226
|
)
|
|
@@ -1206,11 +1228,11 @@ const $s = ({
|
|
|
1206
1228
|
}
|
|
1207
1229
|
) }) })
|
|
1208
1230
|
] });
|
|
1209
|
-
},
|
|
1231
|
+
}, Us = Ue(null), ie = {
|
|
1210
1232
|
didCatch: !1,
|
|
1211
1233
|
error: null
|
|
1212
1234
|
};
|
|
1213
|
-
class
|
|
1235
|
+
class Ws extends Rt {
|
|
1214
1236
|
constructor(t) {
|
|
1215
1237
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ie;
|
|
1216
1238
|
}
|
|
@@ -1225,25 +1247,25 @@ class Us extends Rt {
|
|
|
1225
1247
|
error: t
|
|
1226
1248
|
} = this.state;
|
|
1227
1249
|
if (t !== null) {
|
|
1228
|
-
for (var s,
|
|
1250
|
+
for (var s, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
|
|
1229
1251
|
i[o] = arguments[o];
|
|
1230
|
-
(s = (
|
|
1252
|
+
(s = (n = this.props).onReset) === null || s === void 0 || s.call(n, {
|
|
1231
1253
|
args: i,
|
|
1232
1254
|
reason: "imperative-api"
|
|
1233
1255
|
}), this.setState(ie);
|
|
1234
1256
|
}
|
|
1235
1257
|
}
|
|
1236
1258
|
componentDidCatch(t, s) {
|
|
1237
|
-
var
|
|
1238
|
-
(
|
|
1259
|
+
var n, a;
|
|
1260
|
+
(n = (a = this.props).onError) === null || n === void 0 || n.call(a, t, s);
|
|
1239
1261
|
}
|
|
1240
1262
|
componentDidUpdate(t, s) {
|
|
1241
1263
|
const {
|
|
1242
|
-
didCatch:
|
|
1264
|
+
didCatch: n
|
|
1243
1265
|
} = this.state, {
|
|
1244
1266
|
resetKeys: a
|
|
1245
1267
|
} = this.props;
|
|
1246
|
-
if (
|
|
1268
|
+
if (n && s.error !== null && _s(t.resetKeys, a)) {
|
|
1247
1269
|
var i, o;
|
|
1248
1270
|
(i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
|
|
1249
1271
|
next: a,
|
|
@@ -1256,7 +1278,7 @@ class Us extends Rt {
|
|
|
1256
1278
|
const {
|
|
1257
1279
|
children: t,
|
|
1258
1280
|
fallbackRender: s,
|
|
1259
|
-
FallbackComponent:
|
|
1281
|
+
FallbackComponent: n,
|
|
1260
1282
|
fallback: a
|
|
1261
1283
|
} = this.props, {
|
|
1262
1284
|
didCatch: i,
|
|
@@ -1270,14 +1292,14 @@ class Us extends Rt {
|
|
|
1270
1292
|
};
|
|
1271
1293
|
if (typeof s == "function")
|
|
1272
1294
|
u = s(d);
|
|
1273
|
-
else if (
|
|
1274
|
-
u = De(
|
|
1295
|
+
else if (n)
|
|
1296
|
+
u = De(n, d);
|
|
1275
1297
|
else if (a !== void 0)
|
|
1276
1298
|
u = a;
|
|
1277
1299
|
else
|
|
1278
1300
|
throw o;
|
|
1279
1301
|
}
|
|
1280
|
-
return De(
|
|
1302
|
+
return De(Us.Provider, {
|
|
1281
1303
|
value: {
|
|
1282
1304
|
didCatch: i,
|
|
1283
1305
|
error: o,
|
|
@@ -1286,11 +1308,11 @@ class Us extends Rt {
|
|
|
1286
1308
|
}, u);
|
|
1287
1309
|
}
|
|
1288
1310
|
}
|
|
1289
|
-
function
|
|
1311
|
+
function _s() {
|
|
1290
1312
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1291
|
-
return e.length !== t.length || e.some((s,
|
|
1313
|
+
return e.length !== t.length || e.some((s, n) => !Object.is(s, t[n]));
|
|
1292
1314
|
}
|
|
1293
|
-
class
|
|
1315
|
+
class Xs {
|
|
1294
1316
|
constructor(t) {
|
|
1295
1317
|
k(this, "plugins");
|
|
1296
1318
|
k(this, "sidebars");
|
|
@@ -1301,98 +1323,98 @@ class _s {
|
|
|
1301
1323
|
k(this, "navigationPlugins");
|
|
1302
1324
|
k(this, "initialize", async () => {
|
|
1303
1325
|
await Promise.all(
|
|
1304
|
-
this.plugins.filter(
|
|
1326
|
+
this.plugins.filter(Fs).map((t) => {
|
|
1305
1327
|
var s;
|
|
1306
1328
|
return (s = t.initialize) == null ? void 0 : s.call(t, this);
|
|
1307
1329
|
})
|
|
1308
1330
|
);
|
|
1309
1331
|
});
|
|
1310
1332
|
k(this, "getApiIdentities", async () => (await Promise.all(
|
|
1311
|
-
this.plugins.filter(
|
|
1333
|
+
this.plugins.filter(Hs).map((s) => s.getIdentities(this))
|
|
1312
1334
|
)).flat());
|
|
1313
1335
|
k(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
1314
1336
|
this.navigationPlugins.map(
|
|
1315
|
-
(
|
|
1337
|
+
(n) => {
|
|
1316
1338
|
var a;
|
|
1317
|
-
return (a =
|
|
1339
|
+
return (a = n.getSidebar) == null ? void 0 : a.call(n, q(t));
|
|
1318
1340
|
}
|
|
1319
1341
|
)
|
|
1320
|
-
)).flatMap((
|
|
1342
|
+
)).flatMap((n) => n ?? []));
|
|
1321
1343
|
k(this, "signRequest", async (t) => {
|
|
1322
1344
|
if (!this.authentication)
|
|
1323
1345
|
throw new Error("No authentication provider configured");
|
|
1324
1346
|
const s = await this.authentication.getAccessToken();
|
|
1325
1347
|
return t.headers.set("Authorization", `Bearer ${s}`), t;
|
|
1326
1348
|
});
|
|
1327
|
-
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
1349
|
+
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(qs), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
1328
1350
|
}
|
|
1329
1351
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return /* @__PURE__ */
|
|
1352
|
+
function Ys({ error: e, resetErrorBoundary: t }) {
|
|
1353
|
+
return /* @__PURE__ */ r.jsx(ze, { error: e });
|
|
1332
1354
|
}
|
|
1333
1355
|
const J = globalThis;
|
|
1334
1356
|
(!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (e) => setTimeout(e, 1), J.cancelIdleCallback = clearTimeout);
|
|
1335
1357
|
const it = {
|
|
1336
|
-
Header:
|
|
1337
|
-
},
|
|
1358
|
+
Header: nt
|
|
1359
|
+
}, Js = Ue(it), Gs = Js.Provider, er = ({
|
|
1338
1360
|
children: e,
|
|
1339
1361
|
context: t
|
|
1340
1362
|
}) => (At({
|
|
1341
1363
|
queryFn: async () => (await t.initialize(), !0),
|
|
1342
1364
|
queryKey: ["zudoku-initialize"]
|
|
1343
|
-
}), /* @__PURE__ */
|
|
1365
|
+
}), /* @__PURE__ */ r.jsx(Et.Provider, { value: t, children: e })), ot = Ve(
|
|
1344
1366
|
({ children: e, ...t }) => {
|
|
1345
|
-
var
|
|
1367
|
+
var g, h;
|
|
1346
1368
|
const s = se(
|
|
1347
1369
|
() => ({ ...it, ...t.overrides }),
|
|
1348
1370
|
[t.overrides]
|
|
1349
|
-
),
|
|
1371
|
+
), n = se(() => {
|
|
1350
1372
|
var x;
|
|
1351
1373
|
return {
|
|
1352
|
-
...(t.plugins ?? []).filter(
|
|
1353
|
-
(
|
|
1374
|
+
...(t.plugins ?? []).filter(zs).flatMap(
|
|
1375
|
+
(m) => m.getMdxComponents ? [m.getMdxComponents()] : []
|
|
1354
1376
|
).reduce(
|
|
1355
|
-
(
|
|
1377
|
+
(m, N) => ({ ...m, ...N }),
|
|
1356
1378
|
{}
|
|
1357
1379
|
),
|
|
1358
1380
|
..._t,
|
|
1359
1381
|
...(x = t.mdx) == null ? void 0 : x.components
|
|
1360
1382
|
};
|
|
1361
|
-
}, [(
|
|
1383
|
+
}, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } = Ft(oe), [i, o] = Q(!1), u = se(
|
|
1362
1384
|
() => i ? { stagger: !0 } : { stagger: a },
|
|
1363
1385
|
[a, i]
|
|
1364
1386
|
), d = he();
|
|
1365
1387
|
R(() => {
|
|
1366
1388
|
i || o(!0);
|
|
1367
1389
|
}, [i, d.location]);
|
|
1368
|
-
const [l] = Q(() => new
|
|
1369
|
-
var
|
|
1370
|
-
return /* @__PURE__ */
|
|
1390
|
+
const [l] = Q(() => new Xs(t)), f = (h = t.plugins) == null ? void 0 : h.filter(Bs).map((p, x) => {
|
|
1391
|
+
var m;
|
|
1392
|
+
return /* @__PURE__ */ r.jsx(Bt, { children: (m = p.getHead) == null ? void 0 : m.call(p) }, x);
|
|
1371
1393
|
});
|
|
1372
|
-
return /* @__PURE__ */
|
|
1373
|
-
/* @__PURE__ */
|
|
1374
|
-
/* @__PURE__ */
|
|
1394
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1395
|
+
/* @__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(es, { components: n, children: /* @__PURE__ */ r.jsx(hs, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(Gs, { value: s, children: /* @__PURE__ */ r.jsx(xt, { slotlets: t.slotlets, children: /* @__PURE__ */ r.jsx(Xt, { children: e ?? /* @__PURE__ */ r.jsx(Be, {}) }) }) }) }) }) }) })
|
|
1375
1397
|
] });
|
|
1376
1398
|
}
|
|
1377
1399
|
);
|
|
1378
1400
|
ot.displayName = "ZudokoInner";
|
|
1379
|
-
const lt = (e) => /* @__PURE__ */
|
|
1401
|
+
const lt = (e) => /* @__PURE__ */ r.jsx(Ws, { FallbackComponent: Ys, children: /* @__PURE__ */ r.jsx(ot, { ...e }) });
|
|
1380
1402
|
lt.displayName = "Zudoku";
|
|
1381
|
-
const
|
|
1403
|
+
const Pr = ts, Sr = Vs, Dr = yt, Or = ms, Mr = Cs, Ar = Ns, Er = ue, Ir = T, Qr = pt, Tr = lt, qr = vt, Rr = pe, Fr = bt, Br = fe;
|
|
1382
1404
|
export {
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1405
|
+
Mr as Bootstrap,
|
|
1406
|
+
Ar as BootstrapStatic,
|
|
1407
|
+
Fr as Button,
|
|
1408
|
+
qr as Callout,
|
|
1409
|
+
Rr as ClientOnly,
|
|
1410
|
+
Er as Head,
|
|
1411
|
+
Sr as Layout,
|
|
1412
|
+
Br as Link,
|
|
1413
|
+
Dr as RouterError,
|
|
1414
|
+
Or as ServerError,
|
|
1415
|
+
Tr as Zudoku,
|
|
1416
|
+
Qr as useAuth,
|
|
1417
|
+
Pr as useMDXComponents,
|
|
1418
|
+
Ir as useZudoku
|
|
1397
1419
|
};
|
|
1398
1420
|
//# sourceMappingURL=zudoku.components.js.map
|