zudoku 0.3.0-dev.2 → 0.3.0-dev.21
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/App.js +11 -8
- package/dist/app/App.js.map +1 -1
- package/dist/config/config.d.ts +8 -15
- package/dist/lib/authentication/authentication.d.ts +2 -2
- package/dist/lib/authentication/hook.d.ts +1 -0
- package/dist/lib/authentication/hook.js +1 -0
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +1 -0
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +2 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.js +2 -0
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +1 -0
- package/dist/lib/authentication/state.js +1 -0
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/DevPortal.d.ts +2 -20
- package/dist/lib/components/DevPortal.js +13 -9
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Header.js +4 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +9 -4
- package/dist/lib/components/Heading.js +17 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +5 -1
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
- package/dist/lib/components/context/DevPortalProvider.js +2 -2
- package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +2 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +33 -3
- package/dist/lib/core/DevPortalContext.js +8 -4
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +7 -4
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +1 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.js +3 -1
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +4 -0
- package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +4 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +38 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
- package/dist/lib/plugins/api-keys/index.js +94 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js +5 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +2 -2
- package/dist/lib/plugins/markdown/generateRoutes.js +2 -2
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +4 -1
- package/dist/lib/plugins/markdown/index.js +2 -2
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +4 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +8 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +4 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListView.js +4 -26
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.js +10 -8
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
- package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
- package/dist/lib/plugins/openapi/index.js +8 -0
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
- package/dist/lib/plugins/openapi/playground/Headers.js +16 -6
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -3
- package/dist/lib/plugins/openapi/playground/Playground.js +8 -12
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/prose.js +4 -0
- package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
- package/dist/lib/plugins/openapi/worker/worker.js +25 -1
- package/dist/lib/plugins/openapi/worker/worker.js.map +1 -1
- package/dist/lib/ui/button-variants.d.ts +1 -1
- package/dist/lib/util/MdxComponents.js +1 -1
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/objectEntries.d.ts +4 -0
- package/dist/lib/util/objectEntries.js +2 -0
- package/dist/lib/util/objectEntries.js.map +1 -0
- package/dist/lib/util/renderIf.d.ts +1 -0
- package/dist/lib/util/renderIf.js +2 -0
- package/dist/lib/util/renderIf.js.map +1 -0
- package/dist/vite/build.js +4 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +7 -7
- package/dist/vite/config.js +34 -40
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +7 -4
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.js +4 -4
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +4 -4
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +5 -5
- 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-config.d.ts +1 -1
- package/dist/vite/plugin-config.js +7 -6
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.js +2 -2
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +1 -1
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-redirect.js +4 -4
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/lib/DevPortalProvider-CRKuwoXc.js +4123 -0
- package/lib/Markdown-5LmPZyLV.js +8620 -0
- package/lib/MdxComponents-DYD_QPVF.js +3017 -0
- package/lib/Select-DR3PiqjV.js +4569 -0
- package/lib/Spinner-DjQ2eBxC.js +181 -0
- package/lib/assets/{worker-BCcpCNJ7.js → worker-DGvzLstc.js} +9843 -9800
- package/lib/hook-FCY9-FHO.js +24 -0
- package/lib/index-By9bEW57.js +411 -0
- package/lib/{index-DNx3xWa2.js → index-PyGcnQFX.js} +13 -12
- package/lib/loglevel-CA34MiFn.js +152 -0
- package/lib/prism-csharp.min-Yizuc34Y.js +34 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js +1 -0
- package/lib/{state-oycsxkHz.js → state-Ds_OxRHP.js} +19 -18
- package/lib/util-voKLTRDG.js +740 -0
- package/lib/zudoku.auth-auth0.js +2 -1
- package/lib/zudoku.auth-clerk.js +10 -8
- package/lib/zudoku.auth-openid.js +442 -588
- package/lib/zudoku.components.js +283 -292
- package/lib/zudoku.openapi-worker.js +12 -12
- package/lib/zudoku.plugin-api-keys.js +292 -0
- package/lib/zudoku.plugin-markdown.js +255 -0
- package/lib/zudoku.plugin-openapi.js +6240 -0
- package/lib/zudoku.plugin-redirect.js +10 -0
- package/package.json +17 -5
- package/src/app/App.tsx +12 -8
- package/src/lib/authentication/authentication.ts +2 -5
- package/src/lib/authentication/hook.ts +1 -0
- package/src/lib/authentication/providers/auth0.tsx +1 -0
- package/src/lib/authentication/providers/clerk.tsx +2 -0
- package/src/lib/authentication/providers/openid.tsx +2 -0
- package/src/lib/authentication/state.ts +2 -0
- package/src/lib/components/DevPortal.tsx +12 -28
- package/src/lib/components/Header.tsx +25 -22
- package/src/lib/components/Heading.tsx +26 -7
- package/src/lib/components/Layout.tsx +2 -2
- package/src/lib/components/SyntaxHighlight.tsx +5 -1
- package/src/lib/components/context/DevPortalProvider.ts +2 -2
- package/src/lib/components/index.ts +3 -0
- package/src/lib/core/DevPortalContext.ts +42 -12
- package/src/lib/core/plugins.ts +10 -5
- package/src/lib/oas/graphql/index.ts +2 -2
- package/src/lib/oas/parser/index.ts +3 -1
- package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -8
- package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +21 -14
- package/src/lib/plugins/{api-key → api-keys}/index.tsx +67 -18
- package/src/lib/plugins/markdown/MdxPage.tsx +50 -33
- package/src/lib/plugins/markdown/generateRoutes.tsx +12 -2
- package/src/lib/plugins/markdown/index.tsx +8 -1
- package/src/lib/plugins/openapi/OperationList.tsx +9 -3
- package/src/lib/plugins/openapi/OperationListItem.tsx +66 -41
- package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
- package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +3 -3
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -16
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +15 -182
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +15 -10
- package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +5 -2
- package/src/lib/plugins/openapi/index.tsx +17 -4
- package/src/lib/plugins/openapi/playground/Headers.tsx +60 -33
- package/src/lib/plugins/openapi/playground/Playground.tsx +158 -193
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
- package/src/lib/plugins/openapi/util/prose.ts +7 -0
- package/src/lib/plugins/openapi/worker/worker.ts +27 -1
- package/src/lib/util/MdxComponents.tsx +1 -1
- package/src/lib/util/objectEntries.ts +5 -0
- package/src/lib/util/renderIf.ts +4 -0
- package/dist/lib/plugins/api-key/CreateApiKey.d.ts +0 -5
- package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +0 -5
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
- package/dist/lib/plugins/api-key/index.js +0 -62
- package/dist/lib/plugins/api-key/index.js.map +0 -1
- package/dist/lib/plugins/index.d.ts +0 -4
- package/dist/lib/plugins/index.js +0 -5
- package/dist/lib/plugins/index.js.map +0 -1
- package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
- package/dist/lib/plugins/openapi/Select.js +0 -5
- package/dist/lib/plugins/openapi/Select.js.map +0 -1
- package/dist/vite/common.d.ts +0 -1
- package/dist/vite/common.js +0 -5
- package/dist/vite/common.js.map +0 -1
- package/lib/Spinner-7LezPqGn.js +0 -8393
- package/lib/clerk-Wslx_mPo.js +0 -19685
- package/lib/zudoku.plugins.js +0 -19857
- package/src/lib/plugins/index.ts +0 -4
- /package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +0 -0
package/lib/zudoku.components.js
CHANGED
|
@@ -2,10 +2,10 @@ var De = Object.defineProperty;
|
|
|
2
2
|
var se = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)),
|
|
8
|
-
var
|
|
5
|
+
var Ie = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
|
+
var g = (t, e, s) => Ie(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
|
|
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 E = (t, e, s, a) => ({
|
|
9
9
|
set _(r) {
|
|
10
10
|
u(t, e, r, s);
|
|
11
11
|
},
|
|
@@ -13,21 +13,76 @@ var R = (t, e, s, a) => ({
|
|
|
13
13
|
return i(t, e, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
16
|
+
import { u as Se, a as U, M as Ee, T as Re, V as Fe } from "./MdxComponents-DYD_QPVF.js";
|
|
17
|
+
import { C as Gt } from "./MdxComponents-DYD_QPVF.js";
|
|
18
|
+
import { j as n, u as T, O as He } from "./index-PyGcnQFX.js";
|
|
19
|
+
import { c as z, S as me, h as ge, Q as Le, n as m, m as ne, a as re, b as j, e as ze, d as Ke, f as _e, g as Be, o as ie, r as oe, i as Ve, j as le, p as ce, s as Ue, u as W, N as B, k as We, l as L, q as Xe, t as $e, v as Ge, w as Je, R as Ye, x as Ze, D as et } from "./DevPortalProvider-CRKuwoXc.js";
|
|
20
|
+
import { L as Yt } from "./DevPortalProvider-CRKuwoXc.js";
|
|
21
|
+
import { memo as ve, createContext as tt, useEffect as I, useRef as K, useState as st, forwardRef as at, Suspense as ye, useMemo as H, Fragment as nt } from "react";
|
|
22
|
+
import { c as rt } from "./state-Ds_OxRHP.js";
|
|
23
|
+
import { M as it } from "./index-By9bEW57.js";
|
|
24
|
+
import { c as X, i as V, j as xe, a as ot, A as lt, H as be, b as ct, M as ht } from "./util-voKLTRDG.js";
|
|
25
|
+
import { u as es } from "./util-voKLTRDG.js";
|
|
26
|
+
import { u as ut } from "./hook-FCY9-FHO.js";
|
|
27
|
+
import { R as je, T as Pe, C as we, S as dt } from "./Spinner-DjQ2eBxC.js";
|
|
28
|
+
/**
|
|
29
|
+
* @license lucide-react v0.378.0 - ISC
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the ISC license.
|
|
32
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/
|
|
34
|
+
const Ne = z("ChevronRight", [
|
|
35
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
36
|
+
]);
|
|
37
|
+
/**
|
|
38
|
+
* @license lucide-react v0.378.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/
|
|
43
|
+
const ft = z("ExternalLink", [
|
|
44
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
45
|
+
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
46
|
+
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
47
|
+
]);
|
|
48
|
+
/**
|
|
49
|
+
* @license lucide-react v0.378.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/
|
|
54
|
+
const pt = z("MoonStar", [
|
|
55
|
+
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
56
|
+
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
57
|
+
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
58
|
+
]);
|
|
59
|
+
/**
|
|
60
|
+
* @license lucide-react v0.378.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/
|
|
65
|
+
const mt = z("Sun", [
|
|
66
|
+
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
67
|
+
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
68
|
+
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
69
|
+
["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
|
|
70
|
+
["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
|
|
71
|
+
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
72
|
+
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
73
|
+
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
74
|
+
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
75
|
+
]);
|
|
76
|
+
var x, de, gt = (de = class extends me {
|
|
22
77
|
constructor(e = {}) {
|
|
23
78
|
super();
|
|
24
|
-
|
|
79
|
+
v(this, x);
|
|
25
80
|
this.config = e, u(this, x, /* @__PURE__ */ new Map());
|
|
26
81
|
}
|
|
27
82
|
build(e, s, a) {
|
|
28
83
|
const r = s.queryKey, o = s.queryHash ?? ge(r, s);
|
|
29
84
|
let l = this.get(o);
|
|
30
|
-
return l || (l = new
|
|
85
|
+
return l || (l = new Le({
|
|
31
86
|
cache: this,
|
|
32
87
|
queryKey: r,
|
|
33
88
|
queryHash: o,
|
|
@@ -47,7 +102,7 @@ var x, de, dt = (de = class extends me {
|
|
|
47
102
|
s && (e.destroy(), s === e && i(this, x).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
48
103
|
}
|
|
49
104
|
clear() {
|
|
50
|
-
|
|
105
|
+
m.batch(() => {
|
|
51
106
|
this.getAll().forEach((e) => {
|
|
52
107
|
this.remove(e);
|
|
53
108
|
});
|
|
@@ -70,74 +125,74 @@ var x, de, dt = (de = class extends me {
|
|
|
70
125
|
return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
|
|
71
126
|
}
|
|
72
127
|
notify(e) {
|
|
73
|
-
|
|
128
|
+
m.batch(() => {
|
|
74
129
|
this.listeners.forEach((s) => {
|
|
75
130
|
s(e);
|
|
76
131
|
});
|
|
77
132
|
});
|
|
78
133
|
}
|
|
79
134
|
onFocus() {
|
|
80
|
-
|
|
135
|
+
m.batch(() => {
|
|
81
136
|
this.getAll().forEach((e) => {
|
|
82
137
|
e.onFocus();
|
|
83
138
|
});
|
|
84
139
|
});
|
|
85
140
|
}
|
|
86
141
|
onOnline() {
|
|
87
|
-
|
|
142
|
+
m.batch(() => {
|
|
88
143
|
this.getAll().forEach((e) => {
|
|
89
144
|
e.onOnline();
|
|
90
145
|
});
|
|
91
146
|
});
|
|
92
147
|
}
|
|
93
|
-
}, x = new WeakMap(), de),
|
|
148
|
+
}, x = new WeakMap(), de), p, D, fe, vt = (fe = class extends me {
|
|
94
149
|
constructor(e = {}) {
|
|
95
150
|
super();
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
this.config = e, u(this,
|
|
151
|
+
v(this, p);
|
|
152
|
+
v(this, D);
|
|
153
|
+
this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this, D, Date.now());
|
|
99
154
|
}
|
|
100
155
|
build(e, s, a) {
|
|
101
|
-
const r = new
|
|
156
|
+
const r = new it({
|
|
102
157
|
mutationCache: this,
|
|
103
|
-
mutationId: ++
|
|
158
|
+
mutationId: ++E(this, D)._,
|
|
104
159
|
options: e.defaultMutationOptions(s),
|
|
105
160
|
state: a
|
|
106
161
|
});
|
|
107
162
|
return this.add(r), r;
|
|
108
163
|
}
|
|
109
164
|
add(e) {
|
|
110
|
-
const s =
|
|
111
|
-
a.push(e), i(this,
|
|
165
|
+
const s = R(e), a = i(this, p).get(s) ?? [];
|
|
166
|
+
a.push(e), i(this, p).set(s, a), this.notify({ type: "added", mutation: e });
|
|
112
167
|
}
|
|
113
168
|
remove(e) {
|
|
114
169
|
var a;
|
|
115
|
-
const s =
|
|
116
|
-
if (i(this,
|
|
117
|
-
const r = (a = i(this,
|
|
118
|
-
r && (r.length === 0 ? i(this,
|
|
170
|
+
const s = R(e);
|
|
171
|
+
if (i(this, p).has(s)) {
|
|
172
|
+
const r = (a = i(this, p).get(s)) == null ? void 0 : a.filter((o) => o !== e);
|
|
173
|
+
r && (r.length === 0 ? i(this, p).delete(s) : i(this, p).set(s, r));
|
|
119
174
|
}
|
|
120
175
|
this.notify({ type: "removed", mutation: e });
|
|
121
176
|
}
|
|
122
177
|
canRun(e) {
|
|
123
178
|
var a;
|
|
124
|
-
const s = (a = i(this,
|
|
179
|
+
const s = (a = i(this, p).get(R(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
|
|
125
180
|
return !s || s === e;
|
|
126
181
|
}
|
|
127
182
|
runNext(e) {
|
|
128
183
|
var a;
|
|
129
|
-
const s = (a = i(this,
|
|
184
|
+
const s = (a = i(this, p).get(R(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
|
|
130
185
|
return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
|
|
131
186
|
}
|
|
132
187
|
clear() {
|
|
133
|
-
|
|
188
|
+
m.batch(() => {
|
|
134
189
|
this.getAll().forEach((e) => {
|
|
135
190
|
this.remove(e);
|
|
136
191
|
});
|
|
137
192
|
});
|
|
138
193
|
}
|
|
139
194
|
getAll() {
|
|
140
|
-
return [...i(this,
|
|
195
|
+
return [...i(this, p).values()].flat();
|
|
141
196
|
}
|
|
142
197
|
find(e) {
|
|
143
198
|
const s = { exact: !0, ...e };
|
|
@@ -149,7 +204,7 @@ var x, de, dt = (de = class extends me {
|
|
|
149
204
|
return this.getAll().filter((s) => re(e, s));
|
|
150
205
|
}
|
|
151
206
|
notify(e) {
|
|
152
|
-
|
|
207
|
+
m.batch(() => {
|
|
153
208
|
this.listeners.forEach((s) => {
|
|
154
209
|
s(e);
|
|
155
210
|
});
|
|
@@ -157,70 +212,70 @@ var x, de, dt = (de = class extends me {
|
|
|
157
212
|
}
|
|
158
213
|
resumePausedMutations() {
|
|
159
214
|
const e = this.getAll().filter((s) => s.state.isPaused);
|
|
160
|
-
return
|
|
215
|
+
return m.batch(
|
|
161
216
|
() => Promise.all(
|
|
162
217
|
e.map((s) => s.continue().catch(j))
|
|
163
218
|
)
|
|
164
219
|
);
|
|
165
220
|
}
|
|
166
|
-
},
|
|
167
|
-
function
|
|
221
|
+
}, p = new WeakMap(), D = new WeakMap(), fe);
|
|
222
|
+
function R(t) {
|
|
168
223
|
var e;
|
|
169
224
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
170
225
|
}
|
|
171
|
-
function
|
|
226
|
+
function yt(t) {
|
|
172
227
|
return {
|
|
173
228
|
onFetch: (e, s) => {
|
|
174
229
|
const a = async () => {
|
|
175
230
|
var $, G, J, Y, Z;
|
|
176
|
-
const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.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) || [],
|
|
231
|
+
const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.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: [] };
|
|
177
232
|
let b = !1;
|
|
178
|
-
const
|
|
179
|
-
Object.defineProperty(
|
|
233
|
+
const f = (y) => {
|
|
234
|
+
Object.defineProperty(y, "signal", {
|
|
180
235
|
enumerable: !0,
|
|
181
236
|
get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
|
|
182
237
|
b = !0;
|
|
183
238
|
}), e.signal)
|
|
184
239
|
});
|
|
185
|
-
},
|
|
240
|
+
}, qe = ze(e.options, e.fetchOptions), _ = async (y, P, C) => {
|
|
186
241
|
if (b)
|
|
187
242
|
return Promise.reject();
|
|
188
|
-
if (
|
|
189
|
-
return Promise.resolve(
|
|
190
|
-
const
|
|
243
|
+
if (P == null && y.pages.length)
|
|
244
|
+
return Promise.resolve(y);
|
|
245
|
+
const S = {
|
|
191
246
|
queryKey: e.queryKey,
|
|
192
|
-
pageParam:
|
|
193
|
-
direction:
|
|
247
|
+
pageParam: P,
|
|
248
|
+
direction: C ? "backward" : "forward",
|
|
194
249
|
meta: e.options.meta
|
|
195
250
|
};
|
|
196
|
-
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
), { maxPages: ee } = e.options, te =
|
|
251
|
+
f(S);
|
|
252
|
+
const Te = await qe(
|
|
253
|
+
S
|
|
254
|
+
), { maxPages: ee } = e.options, te = C ? Ke : _e;
|
|
200
255
|
return {
|
|
201
|
-
pages: te(
|
|
202
|
-
pageParams: te(
|
|
256
|
+
pages: te(y.pages, Te, ee),
|
|
257
|
+
pageParams: te(y.pageParams, P, ee)
|
|
203
258
|
};
|
|
204
259
|
};
|
|
205
|
-
let
|
|
260
|
+
let M;
|
|
206
261
|
if (o && l.length) {
|
|
207
|
-
const
|
|
262
|
+
const y = o === "backward", P = y ? xt : he, C = {
|
|
208
263
|
pages: l,
|
|
209
264
|
pageParams: h
|
|
210
|
-
},
|
|
211
|
-
|
|
265
|
+
}, S = P(r, C);
|
|
266
|
+
M = await _(C, S, y);
|
|
212
267
|
} else {
|
|
213
|
-
|
|
214
|
-
|
|
268
|
+
M = await _(
|
|
269
|
+
d,
|
|
215
270
|
h[0] ?? r.initialPageParam
|
|
216
271
|
);
|
|
217
|
-
const
|
|
218
|
-
for (let
|
|
219
|
-
const
|
|
220
|
-
|
|
272
|
+
const y = t ?? l.length;
|
|
273
|
+
for (let P = 1; P < y; P++) {
|
|
274
|
+
const C = he(r, M);
|
|
275
|
+
M = await _(M, C);
|
|
221
276
|
}
|
|
222
277
|
}
|
|
223
|
-
return
|
|
278
|
+
return M;
|
|
224
279
|
};
|
|
225
280
|
e.options.persister ? e.fetchFn = () => {
|
|
226
281
|
var r, o;
|
|
@@ -247,7 +302,7 @@ function he(t, { pages: e, pageParams: s }) {
|
|
|
247
302
|
s
|
|
248
303
|
);
|
|
249
304
|
}
|
|
250
|
-
function
|
|
305
|
+
function xt(t, { pages: e, pageParams: s }) {
|
|
251
306
|
var a;
|
|
252
307
|
return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
|
|
253
308
|
t,
|
|
@@ -257,20 +312,20 @@ function mt(t, { pages: e, pageParams: s }) {
|
|
|
257
312
|
s
|
|
258
313
|
);
|
|
259
314
|
}
|
|
260
|
-
var c,
|
|
315
|
+
var c, w, N, O, A, k, Q, q, pe, bt = (pe = class {
|
|
261
316
|
constructor(t = {}) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
u(this, c, t.queryCache || new
|
|
317
|
+
v(this, c);
|
|
318
|
+
v(this, w);
|
|
319
|
+
v(this, N);
|
|
320
|
+
v(this, O);
|
|
321
|
+
v(this, A);
|
|
322
|
+
v(this, k);
|
|
323
|
+
v(this, Q);
|
|
324
|
+
v(this, q);
|
|
325
|
+
u(this, c, t.queryCache || new gt()), u(this, w, t.mutationCache || new vt()), u(this, N, t.defaultOptions || {}), u(this, O, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, k, 0);
|
|
271
326
|
}
|
|
272
327
|
mount() {
|
|
273
|
-
|
|
328
|
+
E(this, k)._++, i(this, k) === 1 && (u(this, Q, Be.subscribe(async (t) => {
|
|
274
329
|
t && (await this.resumePausedMutations(), i(this, c).onFocus());
|
|
275
330
|
})), u(this, q, ie.subscribe(async (t) => {
|
|
276
331
|
t && (await this.resumePausedMutations(), i(this, c).onOnline());
|
|
@@ -278,13 +333,13 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
|
|
|
278
333
|
}
|
|
279
334
|
unmount() {
|
|
280
335
|
var t, e;
|
|
281
|
-
|
|
336
|
+
E(this, k)._--, i(this, k) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, q)) == null || e.call(this), u(this, q, void 0));
|
|
282
337
|
}
|
|
283
338
|
isFetching(t) {
|
|
284
339
|
return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
285
340
|
}
|
|
286
341
|
isMutating(t) {
|
|
287
|
-
return i(this,
|
|
342
|
+
return i(this, w).findAll({ ...t, status: "pending" }).length;
|
|
288
343
|
}
|
|
289
344
|
getQueryData(t) {
|
|
290
345
|
var s;
|
|
@@ -309,12 +364,12 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
|
|
|
309
364
|
setQueryData(t, e, s) {
|
|
310
365
|
const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
|
|
311
366
|
a.queryHash
|
|
312
|
-
), o = r == null ? void 0 : r.state.data, l =
|
|
367
|
+
), o = r == null ? void 0 : r.state.data, l = Ve(e, o);
|
|
313
368
|
if (l !== void 0)
|
|
314
369
|
return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
|
|
315
370
|
}
|
|
316
371
|
setQueriesData(t, e, s) {
|
|
317
|
-
return
|
|
372
|
+
return m.batch(
|
|
318
373
|
() => i(this, c).findAll(t).map(({ queryKey: a }) => [
|
|
319
374
|
a,
|
|
320
375
|
this.setQueryData(a, e, s)
|
|
@@ -328,7 +383,7 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
|
|
|
328
383
|
}
|
|
329
384
|
removeQueries(t) {
|
|
330
385
|
const e = i(this, c);
|
|
331
|
-
|
|
386
|
+
m.batch(() => {
|
|
332
387
|
e.findAll(t).forEach((s) => {
|
|
333
388
|
e.remove(s);
|
|
334
389
|
});
|
|
@@ -339,18 +394,18 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
|
|
|
339
394
|
type: "active",
|
|
340
395
|
...t
|
|
341
396
|
};
|
|
342
|
-
return
|
|
397
|
+
return m.batch(() => (s.findAll(t).forEach((r) => {
|
|
343
398
|
r.reset();
|
|
344
399
|
}), this.refetchQueries(a, e)));
|
|
345
400
|
}
|
|
346
401
|
cancelQueries(t = {}, e = {}) {
|
|
347
|
-
const s = { revert: !0, ...e }, a =
|
|
402
|
+
const s = { revert: !0, ...e }, a = m.batch(
|
|
348
403
|
() => i(this, c).findAll(t).map((r) => r.cancel(s))
|
|
349
404
|
);
|
|
350
405
|
return Promise.all(a).then(j).catch(j);
|
|
351
406
|
}
|
|
352
407
|
invalidateQueries(t = {}, e = {}) {
|
|
353
|
-
return
|
|
408
|
+
return m.batch(() => {
|
|
354
409
|
if (i(this, c).findAll(t).forEach((a) => {
|
|
355
410
|
a.invalidate();
|
|
356
411
|
}), t.refetchType === "none")
|
|
@@ -366,7 +421,7 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
|
|
|
366
421
|
const s = {
|
|
367
422
|
...e,
|
|
368
423
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
369
|
-
}, a =
|
|
424
|
+
}, a = m.batch(
|
|
370
425
|
() => i(this, c).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
|
|
371
426
|
let o = r.fetch(void 0, s);
|
|
372
427
|
return s.throwOnError || (o = o.catch(j)), r.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
@@ -386,19 +441,19 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
|
|
|
386
441
|
return this.fetchQuery(t).then(j).catch(j);
|
|
387
442
|
}
|
|
388
443
|
fetchInfiniteQuery(t) {
|
|
389
|
-
return t.behavior =
|
|
444
|
+
return t.behavior = yt(t.pages), this.fetchQuery(t);
|
|
390
445
|
}
|
|
391
446
|
prefetchInfiniteQuery(t) {
|
|
392
447
|
return this.fetchInfiniteQuery(t).then(j).catch(j);
|
|
393
448
|
}
|
|
394
449
|
resumePausedMutations() {
|
|
395
|
-
return ie.isOnline() ? i(this,
|
|
450
|
+
return ie.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
|
|
396
451
|
}
|
|
397
452
|
getQueryCache() {
|
|
398
453
|
return i(this, c);
|
|
399
454
|
}
|
|
400
455
|
getMutationCache() {
|
|
401
|
-
return i(this,
|
|
456
|
+
return i(this, w);
|
|
402
457
|
}
|
|
403
458
|
getDefaultOptions() {
|
|
404
459
|
return i(this, N);
|
|
@@ -407,26 +462,26 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
|
|
|
407
462
|
u(this, N, t);
|
|
408
463
|
}
|
|
409
464
|
setQueryDefaults(t, e) {
|
|
410
|
-
i(this,
|
|
465
|
+
i(this, O).set(le(t), {
|
|
411
466
|
queryKey: t,
|
|
412
467
|
defaultOptions: e
|
|
413
468
|
});
|
|
414
469
|
}
|
|
415
470
|
getQueryDefaults(t) {
|
|
416
|
-
const e = [...i(this,
|
|
471
|
+
const e = [...i(this, O).values()];
|
|
417
472
|
let s = {};
|
|
418
473
|
return e.forEach((a) => {
|
|
419
474
|
ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
|
|
420
475
|
}), s;
|
|
421
476
|
}
|
|
422
477
|
setMutationDefaults(t, e) {
|
|
423
|
-
i(this,
|
|
478
|
+
i(this, A).set(le(t), {
|
|
424
479
|
mutationKey: t,
|
|
425
480
|
defaultOptions: e
|
|
426
481
|
});
|
|
427
482
|
}
|
|
428
483
|
getMutationDefaults(t) {
|
|
429
|
-
const e = [...i(this,
|
|
484
|
+
const e = [...i(this, A).values()];
|
|
430
485
|
let s = {};
|
|
431
486
|
return e.forEach((a) => {
|
|
432
487
|
ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
|
|
@@ -444,7 +499,7 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
|
|
|
444
499
|
return e.queryHash || (e.queryHash = ge(
|
|
445
500
|
e.queryKey,
|
|
446
501
|
e
|
|
447
|
-
)), 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 ===
|
|
502
|
+
)), 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 === Ue && (e.enabled = !1), e;
|
|
448
503
|
}
|
|
449
504
|
defaultMutationOptions(t) {
|
|
450
505
|
return t != null && t._defaulted ? t : {
|
|
@@ -455,28 +510,34 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
|
|
|
455
510
|
};
|
|
456
511
|
}
|
|
457
512
|
clear() {
|
|
458
|
-
i(this, c).clear(), i(this,
|
|
513
|
+
i(this, c).clear(), i(this, w).clear();
|
|
459
514
|
}
|
|
460
|
-
}, c = new WeakMap(),
|
|
461
|
-
const
|
|
462
|
-
class
|
|
515
|
+
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), O = new WeakMap(), A = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
|
|
516
|
+
const ke = (t) => "getRoutes" in t && typeof t.getRoutes == "function", jt = (t) => "initialize" in t && typeof t.initialize == "function", Pt = (t) => "getHead" in t && typeof t.getHead == "function", wt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ce = new bt(), Nt = rt(() => ({}));
|
|
517
|
+
class kt {
|
|
463
518
|
constructor(e) {
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
519
|
+
g(this, "plugins", []);
|
|
520
|
+
g(this, "navigationPlugins");
|
|
521
|
+
g(this, "navigation");
|
|
522
|
+
g(this, "meta");
|
|
523
|
+
g(this, "page");
|
|
524
|
+
g(this, "authentication");
|
|
525
|
+
g(this, "state");
|
|
526
|
+
g(this, "initialize", async () => {
|
|
527
|
+
await Promise.all([
|
|
528
|
+
this.plugins.filter(jt).map((e) => {
|
|
529
|
+
var s;
|
|
530
|
+
return (s = e.initialize) == null ? void 0 : s.call(e, this);
|
|
531
|
+
})
|
|
532
|
+
]);
|
|
472
533
|
});
|
|
473
|
-
|
|
474
|
-
await
|
|
534
|
+
g(this, "invalidateCache", async (e) => {
|
|
535
|
+
await Ce.invalidateQueries({ queryKey: e });
|
|
475
536
|
});
|
|
476
|
-
|
|
477
|
-
this.plugins.filter(
|
|
537
|
+
g(this, "getApiIdentities", async () => (await Promise.all(
|
|
538
|
+
this.plugins.filter(wt).map((s) => s.getIdentities(this))
|
|
478
539
|
)).flat());
|
|
479
|
-
|
|
540
|
+
g(this, "getNavigation", async (e) => (await Promise.all(
|
|
480
541
|
this.navigationPlugins.map(
|
|
481
542
|
async (a) => {
|
|
482
543
|
var r;
|
|
@@ -484,7 +545,7 @@ class bt {
|
|
|
484
545
|
}
|
|
485
546
|
)
|
|
486
547
|
)).flatMap((a) => a ?? []));
|
|
487
|
-
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(
|
|
548
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(ke), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = Nt;
|
|
488
549
|
}
|
|
489
550
|
async signRequest(e) {
|
|
490
551
|
if (!this.authentication)
|
|
@@ -493,86 +554,12 @@ class bt {
|
|
|
493
554
|
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
494
555
|
}
|
|
495
556
|
}
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
*
|
|
499
|
-
* This source code is licensed under the ISC license.
|
|
500
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
501
|
-
*/
|
|
502
|
-
const ke = E("ChevronRight", [
|
|
503
|
-
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
504
|
-
]);
|
|
505
|
-
/**
|
|
506
|
-
* @license lucide-react v0.378.0 - ISC
|
|
507
|
-
*
|
|
508
|
-
* This source code is licensed under the ISC license.
|
|
509
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
510
|
-
*/
|
|
511
|
-
const jt = E("ExternalLink", [
|
|
512
|
-
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
513
|
-
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
514
|
-
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
515
|
-
]);
|
|
516
|
-
/**
|
|
517
|
-
* @license lucide-react v0.378.0 - ISC
|
|
518
|
-
*
|
|
519
|
-
* This source code is licensed under the ISC license.
|
|
520
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
521
|
-
*/
|
|
522
|
-
const wt = E("MoonStar", [
|
|
523
|
-
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
524
|
-
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
525
|
-
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
526
|
-
]);
|
|
527
|
-
/**
|
|
528
|
-
* @license lucide-react v0.378.0 - ISC
|
|
529
|
-
*
|
|
530
|
-
* This source code is licensed under the ISC license.
|
|
531
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
532
|
-
*/
|
|
533
|
-
const Pt = E("Search", [
|
|
534
|
-
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
535
|
-
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
536
|
-
]);
|
|
537
|
-
/**
|
|
538
|
-
* @license lucide-react v0.378.0 - ISC
|
|
539
|
-
*
|
|
540
|
-
* This source code is licensed under the ISC license.
|
|
541
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
542
|
-
*/
|
|
543
|
-
const Nt = E("Sun", [
|
|
544
|
-
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
545
|
-
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
546
|
-
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
547
|
-
["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
|
|
548
|
-
["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
|
|
549
|
-
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
550
|
-
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
551
|
-
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
552
|
-
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
553
|
-
]), kt = () => {
|
|
554
|
-
const { authentication: t } = K(), e = ut(), s = typeof t < "u";
|
|
555
|
-
return {
|
|
556
|
-
isAuthEnabled: s,
|
|
557
|
-
profile: e.profile,
|
|
558
|
-
isAuthenticated: e.profile,
|
|
559
|
-
login: async () => {
|
|
560
|
-
if (!s)
|
|
561
|
-
throw new Error("Authentication is not enabled.");
|
|
562
|
-
await t.login();
|
|
563
|
-
},
|
|
564
|
-
logout: async () => {
|
|
565
|
-
if (!s)
|
|
566
|
-
throw new Error("Authentication is not enabled.");
|
|
567
|
-
await t.logout(), window.location.href = "/";
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
}, Ot = () => {
|
|
571
|
-
const { navigation: t } = K();
|
|
557
|
+
const Ct = () => {
|
|
558
|
+
const { navigation: t } = W();
|
|
572
559
|
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(
|
|
573
|
-
|
|
560
|
+
B,
|
|
574
561
|
{
|
|
575
|
-
className: ({ isActive: s }) =>
|
|
562
|
+
className: ({ isActive: s }) => We(
|
|
576
563
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
577
564
|
s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
578
565
|
),
|
|
@@ -580,24 +567,18 @@ const Nt = E("Sun", [
|
|
|
580
567
|
children: e.label
|
|
581
568
|
}
|
|
582
569
|
) }, e.label)) }) });
|
|
583
|
-
},
|
|
584
|
-
const [e, s] =
|
|
570
|
+
}, Me = ve(function() {
|
|
571
|
+
const [e, s] = Se(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = ut(), { page: d } = W(), b = e ? pt : mt;
|
|
585
572
|
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: [
|
|
586
573
|
/* @__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: [
|
|
587
574
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
588
|
-
(
|
|
589
|
-
/* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children:
|
|
575
|
+
(d == null ? void 0 : d.logo) && /* @__PURE__ */ n.jsx("img", { src: d.logo, alt: d.pageTitle, className: "h-10" }),
|
|
576
|
+
/* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: d == null ? void 0 : d.pageTitle })
|
|
590
577
|
] }),
|
|
591
578
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
592
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose"
|
|
593
|
-
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
594
|
-
/* @__PURE__ */ n.jsx(Pt, { size: 14 }),
|
|
595
|
-
"Search"
|
|
596
|
-
] }),
|
|
597
|
-
/* @__PURE__ */ n.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
598
|
-
] }) }),
|
|
579
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
|
|
599
580
|
/* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
|
|
600
|
-
a ? /* @__PURE__ */ n.jsxs(
|
|
581
|
+
o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
|
|
601
582
|
"button",
|
|
602
583
|
{
|
|
603
584
|
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
|
|
@@ -614,7 +595,7 @@ const Nt = E("Sun", [
|
|
|
614
595
|
onClick: l,
|
|
615
596
|
children: "Login"
|
|
616
597
|
}
|
|
617
|
-
),
|
|
598
|
+
) }),
|
|
618
599
|
/* @__PURE__ */ n.jsx(
|
|
619
600
|
"button",
|
|
620
601
|
{
|
|
@@ -626,13 +607,13 @@ const Nt = E("Sun", [
|
|
|
626
607
|
] })
|
|
627
608
|
] })
|
|
628
609
|
] }),
|
|
629
|
-
/* @__PURE__ */ n.jsx(
|
|
610
|
+
/* @__PURE__ */ n.jsx(Ct, {})
|
|
630
611
|
] }) });
|
|
631
|
-
}),
|
|
632
|
-
Header:
|
|
633
|
-
},
|
|
634
|
-
const t =
|
|
635
|
-
|
|
612
|
+
}), Oe = {
|
|
613
|
+
Header: Me
|
|
614
|
+
}, Mt = tt(Oe), Ot = Mt.Provider, At = () => {
|
|
615
|
+
const t = T(), { setActiveAnchor: e } = U();
|
|
616
|
+
I(() => {
|
|
636
617
|
if (!t.hash) return;
|
|
637
618
|
const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
|
|
638
619
|
if (a) {
|
|
@@ -648,20 +629,20 @@ const Nt = E("Sun", [
|
|
|
648
629
|
return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
649
630
|
}, [t.hash, e]);
|
|
650
631
|
}, Qt = () => {
|
|
651
|
-
const t =
|
|
652
|
-
|
|
632
|
+
const t = T(), e = K(t.pathname);
|
|
633
|
+
I(() => {
|
|
653
634
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
654
635
|
}, [t.pathname]);
|
|
655
|
-
},
|
|
636
|
+
}, Ae = ({
|
|
656
637
|
item: t,
|
|
657
638
|
defaultOpen: e,
|
|
658
639
|
path: s
|
|
659
640
|
}) => {
|
|
660
|
-
const [a, r] =
|
|
661
|
-
return
|
|
641
|
+
const [a, r] = st(e), o = T(), l = K(o.pathname);
|
|
642
|
+
return I(() => {
|
|
662
643
|
!a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
|
|
663
644
|
}, [a, t, s, o.pathname]), [a, r];
|
|
664
|
-
},
|
|
645
|
+
}, F = Xe(
|
|
665
646
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
666
647
|
{
|
|
667
648
|
variants: {
|
|
@@ -675,38 +656,38 @@ const Nt = E("Sun", [
|
|
|
675
656
|
}
|
|
676
657
|
}
|
|
677
658
|
}
|
|
678
|
-
), qt = "data-anchor",
|
|
659
|
+
), qt = "data-anchor", Qe = ({
|
|
679
660
|
category: t,
|
|
680
661
|
item: e,
|
|
681
662
|
activeAnchor: s,
|
|
682
663
|
currentTopNavItem: a,
|
|
683
664
|
basePath: r = ""
|
|
684
665
|
}) => {
|
|
685
|
-
const o =
|
|
666
|
+
const o = V(e) ? xe(r, e.path) : "", l = T(), [h, d] = Ae({
|
|
686
667
|
item: e,
|
|
687
668
|
path: o,
|
|
688
669
|
defaultOpen: () => X(e, l.pathname, o)
|
|
689
670
|
});
|
|
690
|
-
if (
|
|
691
|
-
const
|
|
671
|
+
if (ot(e)) {
|
|
672
|
+
const f = L(
|
|
692
673
|
"flex items-center gap-2",
|
|
693
|
-
|
|
674
|
+
F({
|
|
694
675
|
isActive: e.href === l.pathname
|
|
695
676
|
})
|
|
696
677
|
);
|
|
697
678
|
return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
|
|
698
679
|
"a",
|
|
699
680
|
{
|
|
700
|
-
className:
|
|
681
|
+
className: f,
|
|
701
682
|
href: e.href,
|
|
702
683
|
target: "_blank",
|
|
703
684
|
rel: "noopener noreferrer",
|
|
704
685
|
children: [
|
|
705
686
|
e.label,
|
|
706
|
-
/* @__PURE__ */ n.jsx(
|
|
687
|
+
/* @__PURE__ */ n.jsx(ft, { size: 14 })
|
|
707
688
|
]
|
|
708
689
|
}
|
|
709
|
-
) : /* @__PURE__ */ n.jsx(
|
|
690
|
+
) : /* @__PURE__ */ n.jsx(B, { className: f, to: e.href, children: e.label });
|
|
710
691
|
}
|
|
711
692
|
const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
712
693
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
@@ -714,7 +695,7 @@ const Nt = E("Sun", [
|
|
|
714
695
|
typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
|
|
715
696
|
] }),
|
|
716
697
|
e.children && /* @__PURE__ */ n.jsx(
|
|
717
|
-
|
|
698
|
+
Ne,
|
|
718
699
|
{
|
|
719
700
|
size: 16,
|
|
720
701
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
@@ -722,79 +703,79 @@ const Nt = E("Sun", [
|
|
|
722
703
|
)
|
|
723
704
|
] });
|
|
724
705
|
return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
|
|
725
|
-
|
|
706
|
+
je,
|
|
726
707
|
{
|
|
727
708
|
open: h,
|
|
728
|
-
onOpenChange: () =>
|
|
709
|
+
onOpenChange: () => d((f) => !f),
|
|
729
710
|
className: "flex flex-col",
|
|
730
711
|
children: [
|
|
731
712
|
/* @__PURE__ */ n.jsx(
|
|
732
|
-
|
|
713
|
+
Pe,
|
|
733
714
|
{
|
|
734
|
-
className:
|
|
715
|
+
className: L(
|
|
735
716
|
"group text-start",
|
|
736
|
-
|
|
717
|
+
F({ isActive: !1 })
|
|
737
718
|
),
|
|
738
719
|
children: b
|
|
739
720
|
}
|
|
740
721
|
),
|
|
741
|
-
/* @__PURE__ */ n.jsx(
|
|
742
|
-
|
|
722
|
+
/* @__PURE__ */ n.jsx(we, { 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(
|
|
723
|
+
Qe,
|
|
743
724
|
{
|
|
744
725
|
category: t,
|
|
745
|
-
item:
|
|
726
|
+
item: f,
|
|
746
727
|
activeAnchor: s,
|
|
747
728
|
currentTopNavItem: a,
|
|
748
729
|
basePath: o
|
|
749
730
|
},
|
|
750
|
-
|
|
731
|
+
V(f) ? f.path : f.href
|
|
751
732
|
)) }) })
|
|
752
733
|
]
|
|
753
734
|
}
|
|
754
735
|
) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
755
|
-
|
|
736
|
+
lt,
|
|
756
737
|
{
|
|
757
738
|
to: e.path,
|
|
758
739
|
[qt]: e.path,
|
|
759
|
-
className:
|
|
740
|
+
className: F({
|
|
760
741
|
isActive: e.path.slice(1) === s,
|
|
761
742
|
isMuted: e.muted
|
|
762
743
|
}),
|
|
763
744
|
children: b
|
|
764
745
|
}
|
|
765
746
|
) : /* @__PURE__ */ n.jsx(
|
|
766
|
-
|
|
747
|
+
B,
|
|
767
748
|
{
|
|
768
|
-
className: ({ isActive:
|
|
749
|
+
className: ({ isActive: f }) => F({ isActive: f }),
|
|
769
750
|
to: o,
|
|
770
751
|
children: b
|
|
771
752
|
}
|
|
772
753
|
) });
|
|
773
|
-
},
|
|
754
|
+
}, Tt = ({
|
|
774
755
|
category: t
|
|
775
756
|
}) => {
|
|
776
|
-
const { activeAnchor: e } =
|
|
757
|
+
const { activeAnchor: e } = U(), s = $e(), a = T(), r = t.collapsible ?? !0, [o, l] = Ae({
|
|
777
758
|
item: t,
|
|
778
759
|
path: (s == null ? void 0 : s.path) ?? "",
|
|
779
760
|
defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
|
|
780
761
|
});
|
|
781
762
|
return /* @__PURE__ */ n.jsxs(
|
|
782
|
-
|
|
763
|
+
je,
|
|
783
764
|
{
|
|
784
765
|
open: o,
|
|
785
766
|
onOpenChange: () => l((h) => !h),
|
|
786
767
|
children: [
|
|
787
|
-
t.label.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
768
|
+
t.label.length > 0 ? /* @__PURE__ */ n.jsx(Pe, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
|
|
788
769
|
"h5",
|
|
789
770
|
{
|
|
790
|
-
className:
|
|
771
|
+
className: L(
|
|
791
772
|
"flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
|
|
792
773
|
r ? "hover:bg-accent" : "cursor-auto"
|
|
793
774
|
),
|
|
794
775
|
children: [
|
|
795
776
|
t.label,
|
|
796
777
|
r && /* @__PURE__ */ n.jsx(
|
|
797
|
-
|
|
778
|
+
Ne,
|
|
798
779
|
{
|
|
799
780
|
className: "group-data-[state=open]:rotate-90 transition",
|
|
800
781
|
size: 16
|
|
@@ -803,27 +784,27 @@ const Nt = E("Sun", [
|
|
|
803
784
|
]
|
|
804
785
|
}
|
|
805
786
|
) }) : "Endpoints",
|
|
806
|
-
/* @__PURE__ */ n.jsx(
|
|
807
|
-
|
|
787
|
+
/* @__PURE__ */ n.jsx(we, { 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(
|
|
788
|
+
Qe,
|
|
808
789
|
{
|
|
809
790
|
category: t,
|
|
810
791
|
item: h,
|
|
811
792
|
activeAnchor: e,
|
|
812
793
|
currentTopNavItem: s,
|
|
813
|
-
basePath:
|
|
794
|
+
basePath: xe(s == null ? void 0 : s.path, t.path)
|
|
814
795
|
},
|
|
815
|
-
|
|
796
|
+
V(h) ? h.path + h.label : h.href
|
|
816
797
|
)) }) })
|
|
817
798
|
]
|
|
818
799
|
},
|
|
819
800
|
t.label
|
|
820
801
|
);
|
|
821
|
-
},
|
|
802
|
+
}, Dt = at(function({ children: e, className: s, pushMainContent: a }, r) {
|
|
822
803
|
return /* @__PURE__ */ n.jsx(
|
|
823
804
|
"nav",
|
|
824
805
|
{
|
|
825
806
|
"data-navigation": String(a),
|
|
826
|
-
className:
|
|
807
|
+
className: L(
|
|
827
808
|
"peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
828
809
|
s
|
|
829
810
|
),
|
|
@@ -831,43 +812,43 @@ const Nt = E("Sun", [
|
|
|
831
812
|
children: e
|
|
832
813
|
}
|
|
833
814
|
);
|
|
834
|
-
}),
|
|
835
|
-
const t =
|
|
815
|
+
}), It = () => {
|
|
816
|
+
const t = K(null), e = Ge();
|
|
836
817
|
return /* @__PURE__ */ n.jsx(
|
|
837
|
-
|
|
818
|
+
Dt,
|
|
838
819
|
{
|
|
839
820
|
ref: t,
|
|
840
821
|
pushMainContent: e.data.items.length > 0,
|
|
841
|
-
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(
|
|
822
|
+
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Tt, { category: s }, s.label))
|
|
842
823
|
}
|
|
843
824
|
);
|
|
844
825
|
}, ue = ({ children: t }) => {
|
|
845
|
-
const e =
|
|
846
|
-
|
|
847
|
-
const r =
|
|
848
|
-
return
|
|
826
|
+
const e = T(), { setActiveAnchor: s } = U(), { meta: a } = W();
|
|
827
|
+
At(), Qt();
|
|
828
|
+
const r = K(e.pathname);
|
|
829
|
+
return I(() => {
|
|
849
830
|
e.pathname !== r.current && s(""), r.current = e.pathname;
|
|
850
831
|
}, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
851
|
-
/* @__PURE__ */ n.jsxs(
|
|
832
|
+
/* @__PURE__ */ n.jsxs(be, { titleTemplate: a == null ? void 0 : a.title, children: [
|
|
852
833
|
/* @__PURE__ */ n.jsx("title", { children: "Home" }),
|
|
853
834
|
(a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
|
|
854
835
|
(a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
|
|
855
836
|
] }),
|
|
856
|
-
/* @__PURE__ */ n.jsx(
|
|
837
|
+
/* @__PURE__ */ n.jsx(Me, {}),
|
|
857
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(
|
|
858
|
-
|
|
839
|
+
ye,
|
|
859
840
|
{
|
|
860
|
-
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(dt, {}) }),
|
|
861
842
|
children: [
|
|
862
|
-
/* @__PURE__ */ n.jsx(
|
|
843
|
+
/* @__PURE__ */ n.jsx(It, {}),
|
|
863
844
|
/* @__PURE__ */ n.jsx(
|
|
864
845
|
"main",
|
|
865
846
|
{
|
|
866
|
-
className: `dark:border-white/10 translate-x-0
|
|
847
|
+
className: `dark:border-white/10 translate-x-0 h-full
|
|
867
848
|
lg:overflow-visible
|
|
868
849
|
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
869
850
|
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
870
|
-
children: t ?? /* @__PURE__ */ n.jsx(
|
|
851
|
+
children: t ?? /* @__PURE__ */ n.jsx(He, {})
|
|
871
852
|
}
|
|
872
853
|
)
|
|
873
854
|
]
|
|
@@ -875,12 +856,12 @@ const Nt = E("Sun", [
|
|
|
875
856
|
) })
|
|
876
857
|
] });
|
|
877
858
|
};
|
|
878
|
-
function
|
|
879
|
-
const e =
|
|
859
|
+
function St({ plugins: t }) {
|
|
860
|
+
const e = H(() => {
|
|
880
861
|
const s = (t ?? []).flatMap(
|
|
881
|
-
(a) =>
|
|
862
|
+
(a) => ke(a) ? a.getRoutes() : []
|
|
882
863
|
);
|
|
883
|
-
return
|
|
864
|
+
return Je([
|
|
884
865
|
{
|
|
885
866
|
path: "/",
|
|
886
867
|
element: /* @__PURE__ */ n.jsx(ue, {}),
|
|
@@ -889,37 +870,47 @@ function Tt({ plugins: t }) {
|
|
|
889
870
|
}
|
|
890
871
|
]);
|
|
891
872
|
}, [t]);
|
|
892
|
-
return /* @__PURE__ */ n.jsx(
|
|
873
|
+
return /* @__PURE__ */ n.jsx(Ye, { router: e });
|
|
893
874
|
}
|
|
894
|
-
const
|
|
895
|
-
|
|
896
|
-
|
|
875
|
+
const Et = (t) => {
|
|
876
|
+
var o;
|
|
877
|
+
const e = H(
|
|
878
|
+
() => ({ ...Oe, ...t.overrides }),
|
|
897
879
|
[t.overrides]
|
|
898
|
-
), s =
|
|
899
|
-
() => ({ ...
|
|
880
|
+
), s = H(
|
|
881
|
+
() => ({ ...Ee, ...t.mdxComponents }),
|
|
900
882
|
[t.mdxComponents]
|
|
901
|
-
), a =
|
|
902
|
-
|
|
883
|
+
), a = H(() => new kt(t), [t]);
|
|
884
|
+
I(() => {
|
|
903
885
|
a.initialize();
|
|
904
|
-
}, [a])
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
886
|
+
}, [a]);
|
|
887
|
+
const r = (o = t.plugins) == null ? void 0 : o.filter(Pt).map((l, h) => {
|
|
888
|
+
var d;
|
|
889
|
+
return /* @__PURE__ */ n.jsx(nt, { children: (d = l.getHead) == null ? void 0 : d.call(l) }, h);
|
|
890
|
+
});
|
|
891
|
+
return /* @__PURE__ */ n.jsx(Ze, { client: Ce, children: /* @__PURE__ */ n.jsxs(ct, { children: [
|
|
892
|
+
/* @__PURE__ */ n.jsx(be, { children: r }),
|
|
893
|
+
/* @__PURE__ */ n.jsx(et, { value: a, children: /* @__PURE__ */ n.jsx(ht, { components: s, children: /* @__PURE__ */ n.jsx(Re, { children: /* @__PURE__ */ n.jsx(Ot, { value: e, children: /* @__PURE__ */ n.jsx(Fe, { children: /* @__PURE__ */ n.jsx(
|
|
894
|
+
ye,
|
|
895
|
+
{
|
|
896
|
+
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
897
|
+
children: /* @__PURE__ */ n.jsx(
|
|
898
|
+
St,
|
|
899
|
+
{
|
|
900
|
+
plugins: [
|
|
901
|
+
...t.plugins ?? [],
|
|
902
|
+
...t.authentication ? [t.authentication] : []
|
|
903
|
+
]
|
|
904
|
+
}
|
|
905
|
+
)
|
|
906
|
+
}
|
|
907
|
+
) }) }) }) }) })
|
|
908
|
+
] }) });
|
|
909
|
+
}, Rt = ve(Et);
|
|
920
910
|
Rt.displayName = "DevPortal";
|
|
921
911
|
export {
|
|
912
|
+
Gt as Callout,
|
|
922
913
|
Rt as DevPortal,
|
|
923
|
-
|
|
924
|
-
|
|
914
|
+
Yt as Link,
|
|
915
|
+
es as useMDXComponents
|
|
925
916
|
};
|