zudoku 0.3.0-dev.23 → 0.3.0-dev.26
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/app/demo.d.ts +2 -0
- package/dist/app/demo.js +23 -0
- package/dist/app/demo.js.map +1 -0
- package/dist/app/main.d.ts +2 -1
- package/dist/app/main.js +29 -10
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.d.ts +2 -0
- package/dist/app/standalone.js +28 -0
- package/dist/app/standalone.js.map +1 -0
- package/dist/config/config.d.ts +1 -0
- package/dist/lib/authentication/Callback.js +1 -1
- package/dist/lib/authentication/Callback.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +1 -1
- package/dist/lib/components/DevPortal.d.ts +1 -1
- package/dist/lib/components/DevPortal.js +2 -2
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Error.d.ts +1 -0
- package/dist/lib/components/Error.js +10 -0
- package/dist/lib/components/Error.js.map +1 -0
- package/dist/lib/components/Layout.js +2 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Router.js +2 -1
- package/dist/lib/components/Router.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js +4 -0
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/index.d.ts +10 -5
- package/dist/lib/components/index.js +8 -5
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +2 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/Toc.js +1 -1
- package/dist/lib/plugins/markdown/Toc.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.js +1 -1
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js +3 -0
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -1
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/logInit.d.ts +1 -0
- package/dist/lib/util/logInit.js +9 -0
- package/dist/lib/util/logInit.js.map +1 -0
- package/dist/vite/config.d.ts +5 -1
- package/dist/vite/config.js +16 -9
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +2 -2
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +1 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +2 -2
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.js +1 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-docs.js +7 -6
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-html.js +1 -9
- package/dist/vite/plugin-html.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +3 -1
- package/dist/vite/plugin-mdx.js +4 -4
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-openapi-worker.js +1 -1
- package/dist/vite/plugin-openapi-worker.js.map +1 -1
- package/dist/vite/plugin-redirect.js +4 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin.js +1 -1
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{AnchorLink-DIUlXlf0.js → AnchorLink-BtVKbEwm.js} +183 -183
- package/lib/{DevPortalProvider-gzyAGqHT.js → DevPortalProvider--xZTs0RJ.js} +2 -2
- package/lib/{Markdown-BjA7peYW.js → Markdown-oJFqm0uk.js} +3 -3
- package/lib/{MdxComponents-W-fE1ISO.js → MdxComponents-CsU8yR42.js} +2 -2
- package/lib/{MdxPage-DQ7lZBzE.js → MdxPage-BV_9ncEk.js} +21 -21
- package/lib/{OperationList-DuIBqFNA.js → OperationList-C9t7wPj8.js} +9 -9
- package/lib/{Route-B98Y2MdH.js → Route-CHqr53jb.js} +2 -2
- package/lib/{Select-DczD5e29.js → Select-CNmXi4JU.js} +4 -4
- package/lib/{Spinner-CSoij67T.js → Spinner-By5opWs5.js} +3 -3
- package/lib/{hook-CBXxHulF.js → hook-kVJ4gpk5.js} +1 -1
- package/lib/{index-CKvOcM7w.js → index-CUIxJAeE.js} +169 -169
- package/lib/{index-C7O9D7f6.js → index-Cr3hgaqt.js} +2 -2
- package/lib/{index-Cg6lXS1z.js → index-CySUl0uj.js} +3 -3
- package/lib/{index-ClDDiRmC.js → index-fXFJf9Ua.js} +13 -13
- package/lib/{router-DibNxKUP.js → jsx-runtime-D7DwziLW.js} +2843 -2843
- package/lib/{util-CaVongBq.js → util-DnDPBx_j.js} +1 -1
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +142 -141
- package/lib/zudoku.openapi-worker.js +3 -1
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-markdown.js +5 -5
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/package.json +3 -1
- package/src/app/demo-cdn.html +14 -0
- package/src/app/demo.html +14 -0
- package/src/app/demo.tsx +35 -0
- package/src/app/main.css +74 -0
- package/src/app/main.tsx +40 -9
- package/src/app/standalone.html +16 -0
- package/src/app/standalone.tsx +42 -0
- package/src/lib/authentication/Callback.tsx +1 -1
- package/src/lib/authentication/providers/openid.tsx +1 -1
- package/src/lib/components/DevPortal.tsx +2 -2
- package/src/lib/components/Error.tsx +15 -0
- package/src/lib/components/Layout.tsx +1 -2
- package/src/lib/components/Router.tsx +2 -7
- package/src/lib/components/TopNavigation.tsx +5 -0
- package/src/lib/components/index.ts +8 -5
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
- package/src/lib/plugins/markdown/Toc.tsx +1 -1
- package/src/lib/plugins/markdown/generateRoutes.tsx +1 -1
- package/src/lib/plugins/openapi/Route.tsx +1 -1
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/createUrl.ts +1 -1
- package/src/lib/plugins/openapi/worker/createSharedWorkerClient.ts +4 -0
- package/src/lib/ui/Callout.tsx +2 -2
- package/src/lib/util/MdxComponents.tsx +0 -1
- package/src/lib/util/logInit.ts +9 -0
- package/dist/app/App.d.ts +0 -2
- package/dist/app/App.js +0 -32
- package/dist/app/App.js.map +0 -1
- package/dist/lib/components/Link.d.ts +0 -1
- package/dist/lib/components/Link.js +0 -2
- package/dist/lib/components/Link.js.map +0 -1
- package/dist/lib/core/helmet.d.ts +0 -4
- package/dist/lib/core/helmet.js +0 -5
- package/dist/lib/core/helmet.js.map +0 -1
- package/dist/lib/core/icons.d.ts +0 -1
- package/dist/lib/core/icons.js +0 -2
- package/dist/lib/core/icons.js.map +0 -1
- package/dist/lib/core/router.d.ts +0 -1
- package/dist/lib/core/router.js +0 -2
- package/dist/lib/core/router.js.map +0 -1
- package/src/app/App.tsx +0 -44
- package/src/lib/components/Link.tsx +0 -1
- package/src/lib/core/helmet.ts +0 -5
- package/src/lib/core/icons.tsx +0 -1
- package/src/lib/core/router.tsx +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ie = Object.defineProperty;
|
|
2
2
|
var se = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var g = (t, e, s) =>
|
|
5
|
+
var Ee = (t, e, s) => e in t ? Ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
|
+
var g = (t, e, s) => Ee(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
|
|
7
7
|
var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
|
|
8
|
-
var
|
|
8
|
+
var S = (t, e, s, a) => ({
|
|
9
9
|
set _(r) {
|
|
10
10
|
u(t, e, r, s);
|
|
11
11
|
},
|
|
@@ -13,29 +13,26 @@ var E = (t, e, s, a) => ({
|
|
|
13
13
|
return i(t, e, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
17
|
-
import { C as
|
|
18
|
-
import { j as n } from "./
|
|
19
|
-
import { S as
|
|
20
|
-
import { memo as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as
|
|
26
|
-
import {
|
|
27
|
-
import { L as ns } from "./index-CKvOcM7w.js";
|
|
28
|
-
import { u as q, O as ht } from "./index-ClDDiRmC.js";
|
|
29
|
-
import { R as be, T as je, C as Pe, S as ut } from "./Spinner-CSoij67T.js";
|
|
16
|
+
import { c as z, N as B, a as Se, b as Re, d as Fe, R as He, L as Le } from "./index-CUIxJAeE.js";
|
|
17
|
+
import { u as ze, a as $, M as Ke, T as _e, V as Be, C as Ve } from "./MdxComponents-CsU8yR42.js";
|
|
18
|
+
import { j as n } from "./jsx-runtime-D7DwziLW.js";
|
|
19
|
+
import { S as pe, h as me, Q as $e, n as m, m as ne, a as re, b as j, e as Ue, c as We, d as Xe, f as Ge, o as ie, r as oe, g as Je, i as le, p as ce, s as Ye, u as U, j as Ze, k as et, l as tt, D as st } from "./DevPortalProvider--xZTs0RJ.js";
|
|
20
|
+
import { memo as ge, createContext as at, useEffect as I, useRef as K, useState as nt, forwardRef as rt, Suspense as ve, useMemo as H, Fragment as it } from "react";
|
|
21
|
+
import { A as ot, H as ye, a as lt, M as ct, u as ht } from "./AnchorLink-BtVKbEwm.js";
|
|
22
|
+
import { c as ut } from "./state-Ds_OxRHP.js";
|
|
23
|
+
import { M as dt } from "./index-Cr3hgaqt.js";
|
|
24
|
+
import { u as ft } from "./hook-kVJ4gpk5.js";
|
|
25
|
+
import { u as T, O as pt, a as mt } from "./index-fXFJf9Ua.js";
|
|
26
|
+
import { R as xe, T as be, C as je, S as gt } from "./Spinner-By5opWs5.js";
|
|
30
27
|
import { c as L } from "./cn-DpqTslo9.js";
|
|
31
|
-
import { c as
|
|
28
|
+
import { c as W, i as V, j as Pe, a as vt } from "./util-DnDPBx_j.js";
|
|
32
29
|
/**
|
|
33
30
|
* @license lucide-react v0.378.0 - ISC
|
|
34
31
|
*
|
|
35
32
|
* This source code is licensed under the ISC license.
|
|
36
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
34
|
*/
|
|
38
|
-
const
|
|
35
|
+
const we = z("ChevronRight", [
|
|
39
36
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
40
37
|
]);
|
|
41
38
|
/**
|
|
@@ -44,7 +41,7 @@ const Ne = K("ChevronRight", [
|
|
|
44
41
|
* This source code is licensed under the ISC license.
|
|
45
42
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
43
|
*/
|
|
47
|
-
const
|
|
44
|
+
const yt = z("ExternalLink", [
|
|
48
45
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
49
46
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
50
47
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -55,7 +52,7 @@ const ft = K("ExternalLink", [
|
|
|
55
52
|
* This source code is licensed under the ISC license.
|
|
56
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
54
|
*/
|
|
58
|
-
const
|
|
55
|
+
const xt = z("MoonStar", [
|
|
59
56
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
60
57
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
61
58
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -66,7 +63,7 @@ const pt = K("MoonStar", [
|
|
|
66
63
|
* This source code is licensed under the ISC license.
|
|
67
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
68
65
|
*/
|
|
69
|
-
const
|
|
66
|
+
const bt = z("Sun", [
|
|
70
67
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
71
68
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
72
69
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -77,16 +74,16 @@ const mt = K("Sun", [
|
|
|
77
74
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
78
75
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
79
76
|
]);
|
|
80
|
-
var x,
|
|
77
|
+
var x, ue, jt = (ue = class extends pe {
|
|
81
78
|
constructor(e = {}) {
|
|
82
79
|
super();
|
|
83
80
|
v(this, x);
|
|
84
81
|
this.config = e, u(this, x, /* @__PURE__ */ new Map());
|
|
85
82
|
}
|
|
86
83
|
build(e, s, a) {
|
|
87
|
-
const r = s.queryKey, o = s.queryHash ??
|
|
84
|
+
const r = s.queryKey, o = s.queryHash ?? me(r, s);
|
|
88
85
|
let l = this.get(o);
|
|
89
|
-
return l || (l = new
|
|
86
|
+
return l || (l = new $e({
|
|
90
87
|
cache: this,
|
|
91
88
|
queryKey: r,
|
|
92
89
|
queryHash: o,
|
|
@@ -149,17 +146,17 @@ var x, de, gt = (de = class extends me {
|
|
|
149
146
|
});
|
|
150
147
|
});
|
|
151
148
|
}
|
|
152
|
-
}, x = new WeakMap(),
|
|
149
|
+
}, x = new WeakMap(), ue), p, q, de, Pt = (de = class extends pe {
|
|
153
150
|
constructor(e = {}) {
|
|
154
151
|
super();
|
|
155
152
|
v(this, p);
|
|
156
|
-
v(this,
|
|
157
|
-
this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this,
|
|
153
|
+
v(this, q);
|
|
154
|
+
this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this, q, Date.now());
|
|
158
155
|
}
|
|
159
156
|
build(e, s, a) {
|
|
160
|
-
const r = new
|
|
157
|
+
const r = new dt({
|
|
161
158
|
mutationCache: this,
|
|
162
|
-
mutationId: ++
|
|
159
|
+
mutationId: ++S(this, q)._,
|
|
163
160
|
options: e.defaultMutationOptions(s),
|
|
164
161
|
state: a
|
|
165
162
|
});
|
|
@@ -222,17 +219,17 @@ var x, de, gt = (de = class extends me {
|
|
|
222
219
|
)
|
|
223
220
|
);
|
|
224
221
|
}
|
|
225
|
-
}, p = new WeakMap(),
|
|
222
|
+
}, p = new WeakMap(), q = new WeakMap(), de);
|
|
226
223
|
function R(t) {
|
|
227
224
|
var e;
|
|
228
225
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
229
226
|
}
|
|
230
|
-
function
|
|
227
|
+
function wt(t) {
|
|
231
228
|
return {
|
|
232
229
|
onFetch: (e, s) => {
|
|
233
230
|
const a = async () => {
|
|
234
|
-
var
|
|
235
|
-
const r = e.options, o = (J = (G = (
|
|
231
|
+
var X, G, J, Y, Z;
|
|
232
|
+
const r = e.options, o = (J = (G = (X = e.fetchOptions) == null ? void 0 : X.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [], d = { pages: [], pageParams: [] };
|
|
236
233
|
let b = !1;
|
|
237
234
|
const f = (y) => {
|
|
238
235
|
Object.defineProperty(y, "signal", {
|
|
@@ -241,21 +238,21 @@ function yt(t) {
|
|
|
241
238
|
b = !0;
|
|
242
239
|
}), e.signal)
|
|
243
240
|
});
|
|
244
|
-
}, Te =
|
|
241
|
+
}, Te = Ue(e.options, e.fetchOptions), _ = async (y, P, k) => {
|
|
245
242
|
if (b)
|
|
246
243
|
return Promise.reject();
|
|
247
244
|
if (P == null && y.pages.length)
|
|
248
245
|
return Promise.resolve(y);
|
|
249
|
-
const
|
|
246
|
+
const E = {
|
|
250
247
|
queryKey: e.queryKey,
|
|
251
248
|
pageParam: P,
|
|
252
|
-
direction:
|
|
249
|
+
direction: k ? "backward" : "forward",
|
|
253
250
|
meta: e.options.meta
|
|
254
251
|
};
|
|
255
|
-
f(
|
|
252
|
+
f(E);
|
|
256
253
|
const qe = await Te(
|
|
257
|
-
|
|
258
|
-
), { maxPages: ee } = e.options, te =
|
|
254
|
+
E
|
|
255
|
+
), { maxPages: ee } = e.options, te = k ? We : Xe;
|
|
259
256
|
return {
|
|
260
257
|
pages: te(y.pages, qe, ee),
|
|
261
258
|
pageParams: te(y.pageParams, P, ee)
|
|
@@ -263,11 +260,11 @@ function yt(t) {
|
|
|
263
260
|
};
|
|
264
261
|
let M;
|
|
265
262
|
if (o && l.length) {
|
|
266
|
-
const y = o === "backward", P = y ?
|
|
263
|
+
const y = o === "backward", P = y ? Nt : he, k = {
|
|
267
264
|
pages: l,
|
|
268
265
|
pageParams: h
|
|
269
|
-
},
|
|
270
|
-
M = await _(
|
|
266
|
+
}, E = P(r, k);
|
|
267
|
+
M = await _(k, E, y);
|
|
271
268
|
} else {
|
|
272
269
|
M = await _(
|
|
273
270
|
d,
|
|
@@ -275,8 +272,8 @@ function yt(t) {
|
|
|
275
272
|
);
|
|
276
273
|
const y = t ?? l.length;
|
|
277
274
|
for (let P = 1; P < y; P++) {
|
|
278
|
-
const
|
|
279
|
-
M = await _(M,
|
|
275
|
+
const k = he(r, M);
|
|
276
|
+
M = await _(M, k);
|
|
280
277
|
}
|
|
281
278
|
}
|
|
282
279
|
return M;
|
|
@@ -306,7 +303,7 @@ function he(t, { pages: e, pageParams: s }) {
|
|
|
306
303
|
s
|
|
307
304
|
);
|
|
308
305
|
}
|
|
309
|
-
function
|
|
306
|
+
function Nt(t, { pages: e, pageParams: s }) {
|
|
310
307
|
var a;
|
|
311
308
|
return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
|
|
312
309
|
t,
|
|
@@ -316,28 +313,28 @@ function xt(t, { pages: e, pageParams: s }) {
|
|
|
316
313
|
s
|
|
317
314
|
);
|
|
318
315
|
}
|
|
319
|
-
var c, w, N, O, A,
|
|
316
|
+
var c, w, N, O, A, C, Q, D, fe, Ct = (fe = class {
|
|
320
317
|
constructor(t = {}) {
|
|
321
318
|
v(this, c);
|
|
322
319
|
v(this, w);
|
|
323
320
|
v(this, N);
|
|
324
321
|
v(this, O);
|
|
325
322
|
v(this, A);
|
|
326
|
-
v(this,
|
|
323
|
+
v(this, C);
|
|
327
324
|
v(this, Q);
|
|
328
|
-
v(this,
|
|
329
|
-
u(this, c, t.queryCache || new
|
|
325
|
+
v(this, D);
|
|
326
|
+
u(this, c, t.queryCache || new jt()), u(this, w, t.mutationCache || new Pt()), u(this, N, t.defaultOptions || {}), u(this, O, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, C, 0);
|
|
330
327
|
}
|
|
331
328
|
mount() {
|
|
332
|
-
|
|
329
|
+
S(this, C)._++, i(this, C) === 1 && (u(this, Q, Ge.subscribe(async (t) => {
|
|
333
330
|
t && (await this.resumePausedMutations(), i(this, c).onFocus());
|
|
334
|
-
})), u(this,
|
|
331
|
+
})), u(this, D, ie.subscribe(async (t) => {
|
|
335
332
|
t && (await this.resumePausedMutations(), i(this, c).onOnline());
|
|
336
333
|
})));
|
|
337
334
|
}
|
|
338
335
|
unmount() {
|
|
339
336
|
var t, e;
|
|
340
|
-
|
|
337
|
+
S(this, C)._--, i(this, C) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, D)) == null || e.call(this), u(this, D, void 0));
|
|
341
338
|
}
|
|
342
339
|
isFetching(t) {
|
|
343
340
|
return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -368,7 +365,7 @@ var c, w, N, O, A, k, Q, T, pe, bt = (pe = class {
|
|
|
368
365
|
setQueryData(t, e, s) {
|
|
369
366
|
const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
|
|
370
367
|
a.queryHash
|
|
371
|
-
), o = r == null ? void 0 : r.state.data, l =
|
|
368
|
+
), o = r == null ? void 0 : r.state.data, l = Je(e, o);
|
|
372
369
|
if (l !== void 0)
|
|
373
370
|
return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
|
|
374
371
|
}
|
|
@@ -445,7 +442,7 @@ var c, w, N, O, A, k, Q, T, pe, bt = (pe = class {
|
|
|
445
442
|
return this.fetchQuery(t).then(j).catch(j);
|
|
446
443
|
}
|
|
447
444
|
fetchInfiniteQuery(t) {
|
|
448
|
-
return t.behavior =
|
|
445
|
+
return t.behavior = wt(t.pages), this.fetchQuery(t);
|
|
449
446
|
}
|
|
450
447
|
prefetchInfiniteQuery(t) {
|
|
451
448
|
return this.fetchInfiniteQuery(t).then(j).catch(j);
|
|
@@ -500,10 +497,10 @@ var c, w, N, O, A, k, Q, T, pe, bt = (pe = class {
|
|
|
500
497
|
...t,
|
|
501
498
|
_defaulted: !0
|
|
502
499
|
};
|
|
503
|
-
return e.queryHash || (e.queryHash =
|
|
500
|
+
return e.queryHash || (e.queryHash = me(
|
|
504
501
|
e.queryKey,
|
|
505
502
|
e
|
|
506
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn ===
|
|
503
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === Ye && (e.enabled = !1), e;
|
|
507
504
|
}
|
|
508
505
|
defaultMutationOptions(t) {
|
|
509
506
|
return t != null && t._defaulted ? t : {
|
|
@@ -516,9 +513,9 @@ var c, w, N, O, A, k, Q, T, pe, bt = (pe = class {
|
|
|
516
513
|
clear() {
|
|
517
514
|
i(this, c).clear(), i(this, w).clear();
|
|
518
515
|
}
|
|
519
|
-
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), O = new WeakMap(), A = new WeakMap(),
|
|
520
|
-
const
|
|
521
|
-
class
|
|
516
|
+
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), O = new WeakMap(), A = new WeakMap(), C = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), fe);
|
|
517
|
+
const Ne = (t) => "getRoutes" in t && typeof t.getRoutes == "function", kt = (t) => "initialize" in t && typeof t.initialize == "function", Mt = (t) => "getHead" in t && typeof t.getHead == "function", Ot = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ce = new Ct(), At = ut(() => ({}));
|
|
518
|
+
class Qt {
|
|
522
519
|
constructor(e) {
|
|
523
520
|
g(this, "plugins", []);
|
|
524
521
|
g(this, "navigationPlugins");
|
|
@@ -529,7 +526,7 @@ class kt {
|
|
|
529
526
|
g(this, "state");
|
|
530
527
|
g(this, "initialize", async () => {
|
|
531
528
|
await Promise.all([
|
|
532
|
-
this.plugins.filter(
|
|
529
|
+
this.plugins.filter(kt).map((e) => {
|
|
533
530
|
var s;
|
|
534
531
|
return (s = e.initialize) == null ? void 0 : s.call(e, this);
|
|
535
532
|
})
|
|
@@ -539,7 +536,7 @@ class kt {
|
|
|
539
536
|
await Ce.invalidateQueries({ queryKey: e });
|
|
540
537
|
});
|
|
541
538
|
g(this, "getApiIdentities", async () => (await Promise.all(
|
|
542
|
-
this.plugins.filter(
|
|
539
|
+
this.plugins.filter(Ot).map((s) => s.getIdentities(this))
|
|
543
540
|
)).flat());
|
|
544
541
|
g(this, "getNavigation", async (e) => (await Promise.all(
|
|
545
542
|
this.navigationPlugins.map(
|
|
@@ -549,7 +546,7 @@ class kt {
|
|
|
549
546
|
}
|
|
550
547
|
)
|
|
551
548
|
)).flatMap((a) => a ?? []));
|
|
552
|
-
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(
|
|
549
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ne), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = At;
|
|
553
550
|
}
|
|
554
551
|
async signRequest(e) {
|
|
555
552
|
if (!this.authentication)
|
|
@@ -558,12 +555,12 @@ class kt {
|
|
|
558
555
|
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
559
556
|
}
|
|
560
557
|
}
|
|
561
|
-
const
|
|
562
|
-
const { navigation: t } =
|
|
563
|
-
return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
558
|
+
const Dt = () => {
|
|
559
|
+
const { navigation: t } = U();
|
|
560
|
+
return t.length <= 1 ? null : /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
564
561
|
B,
|
|
565
562
|
{
|
|
566
|
-
className: ({ isActive: s }) =>
|
|
563
|
+
className: ({ isActive: s }) => Se(
|
|
567
564
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
568
565
|
s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
569
566
|
),
|
|
@@ -571,8 +568,8 @@ const Ct = () => {
|
|
|
571
568
|
children: e.label
|
|
572
569
|
}
|
|
573
570
|
) }, e.label)) }) });
|
|
574
|
-
},
|
|
575
|
-
const [e, s] =
|
|
571
|
+
}, ke = ge(function() {
|
|
572
|
+
const [e, s] = ze(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = ft(), { page: d } = U(), b = e ? xt : bt;
|
|
576
573
|
return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
577
574
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
|
|
578
575
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -611,12 +608,12 @@ const Ct = () => {
|
|
|
611
608
|
] })
|
|
612
609
|
] })
|
|
613
610
|
] }),
|
|
614
|
-
/* @__PURE__ */ n.jsx(
|
|
611
|
+
/* @__PURE__ */ n.jsx(Dt, {})
|
|
615
612
|
] }) });
|
|
616
|
-
}),
|
|
617
|
-
Header:
|
|
618
|
-
},
|
|
619
|
-
const t =
|
|
613
|
+
}), Me = {
|
|
614
|
+
Header: ke
|
|
615
|
+
}, Tt = at(Me), qt = Tt.Provider, It = () => {
|
|
616
|
+
const t = T(), { setActiveAnchor: e } = $();
|
|
620
617
|
I(() => {
|
|
621
618
|
if (!t.hash) return;
|
|
622
619
|
const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
|
|
@@ -632,21 +629,21 @@ const Ct = () => {
|
|
|
632
629
|
});
|
|
633
630
|
return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
634
631
|
}, [t.hash, e]);
|
|
635
|
-
},
|
|
636
|
-
const t =
|
|
632
|
+
}, Et = () => {
|
|
633
|
+
const t = T(), e = K(t.pathname);
|
|
637
634
|
I(() => {
|
|
638
635
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
639
636
|
}, [t.pathname]);
|
|
640
|
-
},
|
|
637
|
+
}, Oe = ({
|
|
641
638
|
item: t,
|
|
642
639
|
defaultOpen: e,
|
|
643
640
|
path: s
|
|
644
641
|
}) => {
|
|
645
|
-
const [a, r] =
|
|
642
|
+
const [a, r] = nt(e), o = T(), l = K(o.pathname);
|
|
646
643
|
return I(() => {
|
|
647
|
-
!a && l.current !== o.pathname && r(
|
|
644
|
+
!a && l.current !== o.pathname && r(W(t, o.pathname, s)), l.current = o.pathname;
|
|
648
645
|
}, [a, t, s, o.pathname]), [a, r];
|
|
649
|
-
}, F =
|
|
646
|
+
}, F = Re(
|
|
650
647
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
651
648
|
{
|
|
652
649
|
variants: {
|
|
@@ -660,19 +657,19 @@ const Ct = () => {
|
|
|
660
657
|
}
|
|
661
658
|
}
|
|
662
659
|
}
|
|
663
|
-
),
|
|
660
|
+
), St = "data-anchor", Ae = ({
|
|
664
661
|
category: t,
|
|
665
662
|
item: e,
|
|
666
663
|
activeAnchor: s,
|
|
667
664
|
currentTopNavItem: a,
|
|
668
665
|
basePath: r = ""
|
|
669
666
|
}) => {
|
|
670
|
-
const o = V(e) ?
|
|
667
|
+
const o = V(e) ? Pe(r, e.path) : "", l = T(), [h, d] = Oe({
|
|
671
668
|
item: e,
|
|
672
669
|
path: o,
|
|
673
|
-
defaultOpen: () =>
|
|
670
|
+
defaultOpen: () => W(e, l.pathname, o)
|
|
674
671
|
});
|
|
675
|
-
if (
|
|
672
|
+
if (vt(e)) {
|
|
676
673
|
const f = L(
|
|
677
674
|
"flex items-center gap-2",
|
|
678
675
|
F({
|
|
@@ -688,7 +685,7 @@ const Ct = () => {
|
|
|
688
685
|
rel: "noopener noreferrer",
|
|
689
686
|
children: [
|
|
690
687
|
e.label,
|
|
691
|
-
/* @__PURE__ */ n.jsx(
|
|
688
|
+
/* @__PURE__ */ n.jsx(yt, { size: 14 })
|
|
692
689
|
]
|
|
693
690
|
}
|
|
694
691
|
) : /* @__PURE__ */ n.jsx(B, { className: f, to: e.href, children: e.label });
|
|
@@ -699,7 +696,7 @@ const Ct = () => {
|
|
|
699
696
|
typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
|
|
700
697
|
] }),
|
|
701
698
|
e.children && /* @__PURE__ */ n.jsx(
|
|
702
|
-
|
|
699
|
+
we,
|
|
703
700
|
{
|
|
704
701
|
size: 16,
|
|
705
702
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
@@ -707,14 +704,14 @@ const Ct = () => {
|
|
|
707
704
|
)
|
|
708
705
|
] });
|
|
709
706
|
return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
|
|
710
|
-
|
|
707
|
+
xe,
|
|
711
708
|
{
|
|
712
709
|
open: h,
|
|
713
710
|
onOpenChange: () => d((f) => !f),
|
|
714
711
|
className: "flex flex-col",
|
|
715
712
|
children: [
|
|
716
713
|
/* @__PURE__ */ n.jsx(
|
|
717
|
-
|
|
714
|
+
be,
|
|
718
715
|
{
|
|
719
716
|
className: L(
|
|
720
717
|
"group text-start",
|
|
@@ -723,8 +720,8 @@ const Ct = () => {
|
|
|
723
720
|
children: b
|
|
724
721
|
}
|
|
725
722
|
),
|
|
726
|
-
/* @__PURE__ */ n.jsx(
|
|
727
|
-
|
|
723
|
+
/* @__PURE__ */ n.jsx(je, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((f) => /* @__PURE__ */ n.jsx(
|
|
724
|
+
Ae,
|
|
728
725
|
{
|
|
729
726
|
category: t,
|
|
730
727
|
item: f,
|
|
@@ -737,10 +734,10 @@ const Ct = () => {
|
|
|
737
734
|
]
|
|
738
735
|
}
|
|
739
736
|
) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
740
|
-
|
|
737
|
+
ot,
|
|
741
738
|
{
|
|
742
739
|
to: e.path,
|
|
743
|
-
[
|
|
740
|
+
[St]: e.path,
|
|
744
741
|
className: F({
|
|
745
742
|
isActive: e.path.slice(1) === s,
|
|
746
743
|
isMuted: e.muted
|
|
@@ -755,21 +752,21 @@ const Ct = () => {
|
|
|
755
752
|
children: b
|
|
756
753
|
}
|
|
757
754
|
) });
|
|
758
|
-
},
|
|
755
|
+
}, Rt = ({
|
|
759
756
|
category: t
|
|
760
757
|
}) => {
|
|
761
|
-
const { activeAnchor: e } =
|
|
758
|
+
const { activeAnchor: e } = $(), s = Ze(), a = T(), r = t.collapsible ?? !0, [o, l] = Oe({
|
|
762
759
|
item: t,
|
|
763
760
|
path: (s == null ? void 0 : s.path) ?? "",
|
|
764
|
-
defaultOpen: () => !r || t.expanded ||
|
|
761
|
+
defaultOpen: () => !r || t.expanded || W(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
|
|
765
762
|
});
|
|
766
763
|
return /* @__PURE__ */ n.jsxs(
|
|
767
|
-
|
|
764
|
+
xe,
|
|
768
765
|
{
|
|
769
766
|
open: o,
|
|
770
767
|
onOpenChange: () => l((h) => !h),
|
|
771
768
|
children: [
|
|
772
|
-
t.label.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
769
|
+
t.label.length > 0 ? /* @__PURE__ */ n.jsx(be, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
|
|
773
770
|
"h5",
|
|
774
771
|
{
|
|
775
772
|
className: L(
|
|
@@ -779,7 +776,7 @@ const Ct = () => {
|
|
|
779
776
|
children: [
|
|
780
777
|
t.label,
|
|
781
778
|
r && /* @__PURE__ */ n.jsx(
|
|
782
|
-
|
|
779
|
+
we,
|
|
783
780
|
{
|
|
784
781
|
className: "group-data-[state=open]:rotate-90 transition",
|
|
785
782
|
size: 16
|
|
@@ -788,14 +785,14 @@ const Ct = () => {
|
|
|
788
785
|
]
|
|
789
786
|
}
|
|
790
787
|
) }) : "Endpoints",
|
|
791
|
-
/* @__PURE__ */ n.jsx(
|
|
792
|
-
|
|
788
|
+
/* @__PURE__ */ n.jsx(je, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((h) => /* @__PURE__ */ n.jsx(
|
|
789
|
+
Ae,
|
|
793
790
|
{
|
|
794
791
|
category: t,
|
|
795
792
|
item: h,
|
|
796
793
|
activeAnchor: e,
|
|
797
794
|
currentTopNavItem: s,
|
|
798
|
-
basePath:
|
|
795
|
+
basePath: Pe(s == null ? void 0 : s.path, t.path)
|
|
799
796
|
},
|
|
800
797
|
V(h) ? h.path + h.label : h.href
|
|
801
798
|
)) }) })
|
|
@@ -803,7 +800,7 @@ const Ct = () => {
|
|
|
803
800
|
},
|
|
804
801
|
t.label
|
|
805
802
|
);
|
|
806
|
-
},
|
|
803
|
+
}, Ft = rt(function({ children: e, className: s, pushMainContent: a }, r) {
|
|
807
804
|
return /* @__PURE__ */ n.jsx(
|
|
808
805
|
"nav",
|
|
809
806
|
{
|
|
@@ -816,35 +813,34 @@ const Ct = () => {
|
|
|
816
813
|
children: e
|
|
817
814
|
}
|
|
818
815
|
);
|
|
819
|
-
}),
|
|
820
|
-
const t =
|
|
816
|
+
}), Ht = () => {
|
|
817
|
+
const t = K(null), e = et();
|
|
821
818
|
return /* @__PURE__ */ n.jsx(
|
|
822
|
-
|
|
819
|
+
Ft,
|
|
823
820
|
{
|
|
824
821
|
ref: t,
|
|
825
822
|
pushMainContent: e.data.items.length > 0,
|
|
826
|
-
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(
|
|
823
|
+
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Rt, { category: s }, s.label))
|
|
827
824
|
}
|
|
828
825
|
);
|
|
829
|
-
},
|
|
830
|
-
const e =
|
|
831
|
-
|
|
832
|
-
const r =
|
|
826
|
+
}, Qe = ({ children: t }) => {
|
|
827
|
+
const e = T(), { setActiveAnchor: s } = $(), { meta: a } = U();
|
|
828
|
+
It(), Et();
|
|
829
|
+
const r = K(e.pathname);
|
|
833
830
|
return I(() => {
|
|
834
831
|
e.pathname !== r.current && s(""), r.current = e.pathname;
|
|
835
832
|
}, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
836
|
-
/* @__PURE__ */ n.jsxs(
|
|
837
|
-
/* @__PURE__ */ n.jsx("title", { children: "Home" }),
|
|
833
|
+
/* @__PURE__ */ n.jsxs(ye, { titleTemplate: a == null ? void 0 : a.title, children: [
|
|
838
834
|
(a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
|
|
839
835
|
(a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
|
|
840
836
|
] }),
|
|
841
|
-
/* @__PURE__ */ n.jsx(
|
|
837
|
+
/* @__PURE__ */ n.jsx(ke, {}),
|
|
842
838
|
/* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
|
|
843
|
-
|
|
839
|
+
ve,
|
|
844
840
|
{
|
|
845
|
-
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(
|
|
841
|
+
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(gt, {}) }),
|
|
846
842
|
children: [
|
|
847
|
-
/* @__PURE__ */ n.jsx(
|
|
843
|
+
/* @__PURE__ */ n.jsx(Ht, {}),
|
|
848
844
|
/* @__PURE__ */ n.jsx(
|
|
849
845
|
"main",
|
|
850
846
|
{
|
|
@@ -852,7 +848,7 @@ const Ct = () => {
|
|
|
852
848
|
lg:overflow-visible
|
|
853
849
|
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
854
850
|
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
855
|
-
children: t ?? /* @__PURE__ */ n.jsx(
|
|
851
|
+
children: t ?? /* @__PURE__ */ n.jsx(pt, {})
|
|
856
852
|
}
|
|
857
853
|
)
|
|
858
854
|
]
|
|
@@ -860,46 +856,50 @@ const Ct = () => {
|
|
|
860
856
|
) })
|
|
861
857
|
] });
|
|
862
858
|
};
|
|
863
|
-
function
|
|
859
|
+
function Lt() {
|
|
860
|
+
const t = mt();
|
|
861
|
+
return console.error(t), /* @__PURE__ */ n.jsx(Qe, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) });
|
|
862
|
+
}
|
|
863
|
+
function zt({ plugins: t }) {
|
|
864
864
|
const e = H(() => {
|
|
865
865
|
const s = (t ?? []).flatMap(
|
|
866
|
-
(a) =>
|
|
866
|
+
(a) => Ne(a) ? a.getRoutes() : []
|
|
867
867
|
);
|
|
868
|
-
return
|
|
868
|
+
return Fe([
|
|
869
869
|
{
|
|
870
870
|
path: "/",
|
|
871
|
-
element: /* @__PURE__ */ n.jsx(
|
|
872
|
-
errorElement: /* @__PURE__ */ n.jsx(
|
|
871
|
+
element: /* @__PURE__ */ n.jsx(Qe, {}),
|
|
872
|
+
errorElement: /* @__PURE__ */ n.jsx(Lt, {}),
|
|
873
873
|
children: s
|
|
874
874
|
}
|
|
875
875
|
]);
|
|
876
876
|
}, [t]);
|
|
877
|
-
return /* @__PURE__ */ n.jsx(
|
|
877
|
+
return /* @__PURE__ */ n.jsx(He, { router: e });
|
|
878
878
|
}
|
|
879
|
-
const
|
|
879
|
+
const Kt = (t) => {
|
|
880
880
|
var o;
|
|
881
881
|
const e = H(
|
|
882
|
-
() => ({ ...
|
|
882
|
+
() => ({ ...Me, ...t.overrides }),
|
|
883
883
|
[t.overrides]
|
|
884
884
|
), s = H(
|
|
885
|
-
() => ({ ...
|
|
885
|
+
() => ({ ...Ke, ...t.mdxComponents }),
|
|
886
886
|
[t.mdxComponents]
|
|
887
|
-
), a = H(() => new
|
|
887
|
+
), a = H(() => new Qt(t), [t]);
|
|
888
888
|
I(() => {
|
|
889
889
|
a.initialize();
|
|
890
890
|
}, [a]);
|
|
891
|
-
const r = (o = t.plugins) == null ? void 0 : o.filter(
|
|
891
|
+
const r = (o = t.plugins) == null ? void 0 : o.filter(Mt).map((l, h) => {
|
|
892
892
|
var d;
|
|
893
|
-
return /* @__PURE__ */ n.jsx(
|
|
893
|
+
return /* @__PURE__ */ n.jsx(it, { children: (d = l.getHead) == null ? void 0 : d.call(l) }, h);
|
|
894
894
|
});
|
|
895
|
-
return /* @__PURE__ */ n.jsx(
|
|
896
|
-
/* @__PURE__ */ n.jsx(
|
|
897
|
-
/* @__PURE__ */ n.jsx(
|
|
898
|
-
|
|
895
|
+
return /* @__PURE__ */ n.jsx(tt, { client: Ce, children: /* @__PURE__ */ n.jsxs(lt, { children: [
|
|
896
|
+
/* @__PURE__ */ n.jsx(ye, { children: r }),
|
|
897
|
+
/* @__PURE__ */ n.jsx(st, { value: a, children: /* @__PURE__ */ n.jsx(ct, { components: s, children: /* @__PURE__ */ n.jsx(_e, { children: /* @__PURE__ */ n.jsx(qt, { value: e, children: /* @__PURE__ */ n.jsx(Be, { children: /* @__PURE__ */ n.jsx(
|
|
898
|
+
ve,
|
|
899
899
|
{
|
|
900
900
|
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
901
901
|
children: /* @__PURE__ */ n.jsx(
|
|
902
|
-
|
|
902
|
+
zt,
|
|
903
903
|
{
|
|
904
904
|
plugins: [
|
|
905
905
|
...t.plugins ?? [],
|
|
@@ -910,11 +910,12 @@ const Et = (t) => {
|
|
|
910
910
|
}
|
|
911
911
|
) }) }) }) }) })
|
|
912
912
|
] }) });
|
|
913
|
-
},
|
|
914
|
-
|
|
913
|
+
}, De = ge(Kt);
|
|
914
|
+
De.displayName = "DevPortal";
|
|
915
|
+
const as = ht, ns = Ve, rs = De, is = Le;
|
|
915
916
|
export {
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
917
|
+
ns as Callout,
|
|
918
|
+
rs as DevPortal,
|
|
919
|
+
is as Link,
|
|
920
|
+
as as useMDXComponents
|
|
920
921
|
};
|