zudoku 0.1.1-dev.47 → 0.1.1-dev.49
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 +5 -5
- package/dist/app/App.js.map +1 -1
- package/dist/app/main.js +8 -0
- package/dist/app/main.js.map +1 -1
- package/dist/cli/common/analytics/lib.js +1 -1
- package/dist/cli/common/analytics/lib.js.map +1 -1
- package/dist/cli/common/logger.js +1 -1
- package/dist/lib/authentication/clerk.js +0 -1
- package/dist/lib/authentication/clerk.js.map +1 -1
- package/dist/lib/authentication/openid.js +3 -2
- package/dist/lib/authentication/openid.js.map +1 -1
- package/dist/lib/components/Header.d.ts +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Select.js +1 -1
- package/dist/lib/components/Select.js.map +1 -1
- package/dist/lib/components/context/ComponentsContext.d.ts +1 -1
- package/dist/lib/components/index.d.ts +0 -1
- package/dist/lib/components/index.js +0 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationItem.js +1 -2
- package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationWrapper.js +3 -1
- package/dist/lib/components/navigation/SideNavigationWrapper.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +3 -5
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +2 -2
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +1 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-key/index.d.ts +2 -2
- package/dist/lib/plugins/api-key/index.js +2 -2
- package/dist/lib/plugins/api-key/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +7 -7
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
- package/dist/lib/plugins/openapi/MakeRequest.js +4 -4
- package/dist/lib/plugins/openapi/MakeRequest.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +8 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.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 +6 -6
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +2 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +8 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +46 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +4 -4
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +29 -21
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +4 -5
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js +1 -0
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +3 -7
- package/dist/lib/ui/Button.js +3 -26
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/button-variants.d.ts +4 -0
- package/dist/lib/ui/button-variants.js +24 -0
- package/dist/lib/ui/button-variants.js.map +1 -0
- package/dist/lib/util/MdxComponents.js +7 -7
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/ts.js +1 -2
- package/dist/ts.js.map +1 -1
- package/dist/vite/config.js +1 -1
- package/dist/vite/dev-server.js +5 -4
- package/dist/vite/dev-server.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-component.js +1 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-docs.js +1 -1
- 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/lib/{Spinner-DEkC7JSn.js → Spinner-DoNe5ql0.js} +18 -18
- package/lib/assets/{worker-W78u54MC.js → worker-BCcpCNJ7.js} +2 -2
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.components.js +278 -281
- package/lib/zudoku.openapi-worker.js +5 -5
- package/lib/zudoku.plugins.js +9963 -9732
- package/package.json +4 -1
- package/src/app/App.tsx +5 -5
- package/src/app/main.tsx +9 -0
- package/src/lib/authentication/clerk.ts +0 -1
- package/src/lib/authentication/openid.ts +4 -2
- package/src/lib/components/Header.tsx +1 -1
- package/src/lib/components/Select.tsx +3 -3
- package/src/lib/components/index.ts +0 -1
- package/src/lib/components/navigation/SideNavigationItem.tsx +1 -2
- package/src/lib/components/navigation/SideNavigationWrapper.tsx +18 -16
- package/src/lib/core/DevPortalContext.ts +3 -6
- package/src/lib/oas/graphql/index.ts +2 -2
- package/src/lib/plugins/api-key/SettingsApiKeys.tsx +1 -1
- package/src/lib/plugins/api-key/index.tsx +4 -4
- package/src/lib/plugins/markdown/MdxPage.tsx +13 -8
- package/src/lib/plugins/openapi/ColorizedParam.tsx +1 -1
- package/src/lib/plugins/openapi/MakeRequest.tsx +4 -4
- package/src/lib/plugins/openapi/OperationList.tsx +8 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +2 -2
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +1 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +9 -10
- package/src/lib/plugins/openapi/Sidecar.tsx +3 -3
- package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +54 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +4 -4
- package/src/lib/plugins/openapi/playground/Playground.tsx +80 -36
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +4 -6
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +0 -1
- package/src/lib/plugins/openapi/worker/createSharedWorkerClient.ts +1 -0
- package/src/lib/ui/Button.tsx +11 -42
- package/src/lib/ui/button-variants.ts +31 -0
- package/src/lib/util/MdxComponents.tsx +31 -7
- package/dist/lib/components/DynamicIcon.d.ts +0 -6
- package/dist/lib/components/DynamicIcon.js +0 -6
- package/dist/lib/components/DynamicIcon.js.map +0 -1
- package/dist/lib/oas/graphql/server.d.ts +0 -1
- package/dist/lib/oas/graphql/server.js +0 -8
- package/dist/lib/oas/graphql/server.js.map +0 -1
- package/src/lib/components/DynamicIcon.tsx +0 -60
- package/src/lib/oas/graphql/server.ts +0 -10
package/lib/zudoku.components.js
CHANGED
|
@@ -4,35 +4,35 @@ var xe = (t) => {
|
|
|
4
4
|
};
|
|
5
5
|
var at = (t, e, n) => e in t ? st(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
6
|
var j = (t, e, n) => at(t, typeof e != "symbol" ? e + "" : e, n), Se = (t, e, n) => e.has(t) || xe("Cannot " + n);
|
|
7
|
-
var i = (t, e, n) => (Se(t, e, "read from private field"), n ? n.call(t) : e.get(t)),
|
|
7
|
+
var i = (t, e, n) => (Se(t, e, "read from private field"), n ? n.call(t) : e.get(t)), C = (t, e, n) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), P = (t, e, n, r) => (Se(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
8
8
|
var X = (t, e, n, r) => ({
|
|
9
|
-
set _(
|
|
10
|
-
P(t, e,
|
|
9
|
+
set _(s) {
|
|
10
|
+
P(t, e, s, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return i(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as Ve, h as He, Q as it, n as
|
|
17
|
-
import { _ as
|
|
18
|
-
import $, { memo as We, createContext as Rt, useEffect as K, useRef as ne, useState as Lt, forwardRef as
|
|
19
|
-
var T,
|
|
16
|
+
import { S as Ve, h as He, Q as it, n as N, m as be, M as ot, a as Oe, b as L, e as ut, c as ct, d as lt, f as dt, o as _e, r as Ee, g as ht, i as we, p as je, s as ft, j as pt, k as G, u as me, l as a, N as he, q as vt, t as mt, v as B, w as ge, x as ye, y as fe, z as Fe, A as gt, B as te, R as Ke, T as Be, C as ze, D as yt, E as xt, F as St, G as bt, H as Ot, I as _t, O as Et, J as wt, K as jt, L as Pt, P as At, U as Dt, V as Nt, W as Ct, X as Mt, Y as Tt } from "./Spinner-DoNe5ql0.js";
|
|
17
|
+
import { _ as jn, Z as Pn } from "./Spinner-DoNe5ql0.js";
|
|
18
|
+
import $, { memo as We, createContext as Rt, useEffect as K, useRef as ne, useState as Lt, forwardRef as kt, Suspense as Ue, useMemo as ee } from "react";
|
|
19
|
+
var T, Ie, It = (Ie = class extends Ve {
|
|
20
20
|
constructor(e = {}) {
|
|
21
21
|
super();
|
|
22
|
-
|
|
22
|
+
C(this, T);
|
|
23
23
|
this.config = e, P(this, T, /* @__PURE__ */ new Map());
|
|
24
24
|
}
|
|
25
25
|
build(e, n, r) {
|
|
26
|
-
const
|
|
27
|
-
let
|
|
28
|
-
return
|
|
26
|
+
const s = n.queryKey, o = n.queryHash ?? He(s, n);
|
|
27
|
+
let p = this.get(o);
|
|
28
|
+
return p || (p = new it({
|
|
29
29
|
cache: this,
|
|
30
|
-
queryKey:
|
|
30
|
+
queryKey: s,
|
|
31
31
|
queryHash: o,
|
|
32
32
|
options: e.defaultQueryOptions(n),
|
|
33
33
|
state: r,
|
|
34
|
-
defaultOptions: e.getQueryDefaults(
|
|
35
|
-
}), this.add(
|
|
34
|
+
defaultOptions: e.getQueryDefaults(s)
|
|
35
|
+
}), this.add(p)), p;
|
|
36
36
|
}
|
|
37
37
|
add(e) {
|
|
38
38
|
i(this, T).has(e.queryHash) || (i(this, T).set(e.queryHash, e), this.notify({
|
|
@@ -45,7 +45,7 @@ var T, ke, kt = (ke = class extends Ve {
|
|
|
45
45
|
n && (e.destroy(), n === e && i(this, T).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
46
46
|
}
|
|
47
47
|
clear() {
|
|
48
|
-
|
|
48
|
+
N.batch(() => {
|
|
49
49
|
this.getAll().forEach((e) => {
|
|
50
50
|
this.remove(e);
|
|
51
51
|
});
|
|
@@ -68,41 +68,41 @@ var T, ke, kt = (ke = class extends Ve {
|
|
|
68
68
|
return Object.keys(e).length > 0 ? n.filter((r) => be(e, r)) : n;
|
|
69
69
|
}
|
|
70
70
|
notify(e) {
|
|
71
|
-
|
|
71
|
+
N.batch(() => {
|
|
72
72
|
this.listeners.forEach((n) => {
|
|
73
73
|
n(e);
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
onFocus() {
|
|
78
|
-
|
|
78
|
+
N.batch(() => {
|
|
79
79
|
this.getAll().forEach((e) => {
|
|
80
80
|
e.onFocus();
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
onOnline() {
|
|
85
|
-
|
|
85
|
+
N.batch(() => {
|
|
86
86
|
this.getAll().forEach((e) => {
|
|
87
87
|
e.onOnline();
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
}, T = new WeakMap(),
|
|
91
|
+
}, T = new WeakMap(), Ie), D, U, qe, qt = (qe = class extends Ve {
|
|
92
92
|
constructor(e = {}) {
|
|
93
93
|
super();
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
C(this, D);
|
|
95
|
+
C(this, U);
|
|
96
96
|
this.config = e, P(this, D, /* @__PURE__ */ new Map()), P(this, U, Date.now());
|
|
97
97
|
}
|
|
98
98
|
build(e, n, r) {
|
|
99
|
-
const
|
|
99
|
+
const s = new ot({
|
|
100
100
|
mutationCache: this,
|
|
101
101
|
mutationId: ++X(this, U)._,
|
|
102
102
|
options: e.defaultMutationOptions(n),
|
|
103
103
|
state: r
|
|
104
104
|
});
|
|
105
|
-
return this.add(
|
|
105
|
+
return this.add(s), s;
|
|
106
106
|
}
|
|
107
107
|
add(e) {
|
|
108
108
|
const n = Y(e), r = i(this, D).get(n) ?? [];
|
|
@@ -112,23 +112,23 @@ var T, ke, kt = (ke = class extends Ve {
|
|
|
112
112
|
var r;
|
|
113
113
|
const n = Y(e);
|
|
114
114
|
if (i(this, D).has(n)) {
|
|
115
|
-
const
|
|
116
|
-
|
|
115
|
+
const s = (r = i(this, D).get(n)) == null ? void 0 : r.filter((o) => o !== e);
|
|
116
|
+
s && (s.length === 0 ? i(this, D).delete(n) : i(this, D).set(n, s));
|
|
117
117
|
}
|
|
118
118
|
this.notify({ type: "removed", mutation: e });
|
|
119
119
|
}
|
|
120
120
|
canRun(e) {
|
|
121
121
|
var r;
|
|
122
|
-
const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((
|
|
122
|
+
const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((s) => s.state.status === "pending");
|
|
123
123
|
return !n || n === e;
|
|
124
124
|
}
|
|
125
125
|
runNext(e) {
|
|
126
126
|
var r;
|
|
127
|
-
const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((
|
|
127
|
+
const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((s) => s !== e && s.state.isPaused);
|
|
128
128
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
129
129
|
}
|
|
130
130
|
clear() {
|
|
131
|
-
|
|
131
|
+
N.batch(() => {
|
|
132
132
|
this.getAll().forEach((e) => {
|
|
133
133
|
this.remove(e);
|
|
134
134
|
});
|
|
@@ -147,7 +147,7 @@ var T, ke, kt = (ke = class extends Ve {
|
|
|
147
147
|
return this.getAll().filter((n) => Oe(e, n));
|
|
148
148
|
}
|
|
149
149
|
notify(e) {
|
|
150
|
-
|
|
150
|
+
N.batch(() => {
|
|
151
151
|
this.listeners.forEach((n) => {
|
|
152
152
|
n(e);
|
|
153
153
|
});
|
|
@@ -155,7 +155,7 @@ var T, ke, kt = (ke = class extends Ve {
|
|
|
155
155
|
}
|
|
156
156
|
resumePausedMutations() {
|
|
157
157
|
const e = this.getAll().filter((n) => n.state.isPaused);
|
|
158
|
-
return
|
|
158
|
+
return N.batch(
|
|
159
159
|
() => Promise.all(
|
|
160
160
|
e.map((n) => n.continue().catch(L))
|
|
161
161
|
)
|
|
@@ -171,59 +171,59 @@ function Qt(t) {
|
|
|
171
171
|
onFetch: (e, n) => {
|
|
172
172
|
const r = async () => {
|
|
173
173
|
var S, g, O, M, R;
|
|
174
|
-
const
|
|
174
|
+
const s = e.options, o = (O = (g = (S = e.fetchOptions) == null ? void 0 : S.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : O.direction, p = ((M = e.state.data) == null ? void 0 : M.pages) || [], v = ((R = e.state.data) == null ? void 0 : R.pageParams) || [], E = { pages: [], pageParams: [] };
|
|
175
175
|
let x = !1;
|
|
176
|
-
const u = (
|
|
177
|
-
Object.defineProperty(
|
|
176
|
+
const u = (d) => {
|
|
177
|
+
Object.defineProperty(d, "signal", {
|
|
178
178
|
enumerable: !0,
|
|
179
179
|
get: () => (e.signal.aborted ? x = !0 : e.signal.addEventListener("abort", () => {
|
|
180
180
|
x = !0;
|
|
181
181
|
}), e.signal)
|
|
182
182
|
});
|
|
183
|
-
},
|
|
183
|
+
}, l = ut(e.options, e.fetchOptions), h = async (d, c, y) => {
|
|
184
184
|
if (x)
|
|
185
185
|
return Promise.reject();
|
|
186
|
-
if (c == null &&
|
|
187
|
-
return Promise.resolve(
|
|
188
|
-
const
|
|
186
|
+
if (c == null && d.pages.length)
|
|
187
|
+
return Promise.resolve(d);
|
|
188
|
+
const f = {
|
|
189
189
|
queryKey: e.queryKey,
|
|
190
190
|
pageParam: c,
|
|
191
191
|
direction: y ? "backward" : "forward",
|
|
192
192
|
meta: e.options.meta
|
|
193
193
|
};
|
|
194
|
-
u(
|
|
195
|
-
const _ = await
|
|
196
|
-
|
|
194
|
+
u(f);
|
|
195
|
+
const _ = await l(
|
|
196
|
+
f
|
|
197
197
|
), { maxPages: A } = e.options, w = y ? ct : lt;
|
|
198
198
|
return {
|
|
199
|
-
pages: w(
|
|
200
|
-
pageParams: w(
|
|
199
|
+
pages: w(d.pages, _, A),
|
|
200
|
+
pageParams: w(d.pageParams, c, A)
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
203
|
let m;
|
|
204
|
-
if (o &&
|
|
205
|
-
const
|
|
206
|
-
pages:
|
|
204
|
+
if (o && p.length) {
|
|
205
|
+
const d = o === "backward", c = d ? Vt : Pe, y = {
|
|
206
|
+
pages: p,
|
|
207
207
|
pageParams: v
|
|
208
|
-
},
|
|
209
|
-
m = await
|
|
208
|
+
}, f = c(s, y);
|
|
209
|
+
m = await h(y, f, d);
|
|
210
210
|
} else {
|
|
211
|
-
m = await
|
|
211
|
+
m = await h(
|
|
212
212
|
E,
|
|
213
|
-
v[0] ??
|
|
213
|
+
v[0] ?? s.initialPageParam
|
|
214
214
|
);
|
|
215
|
-
const
|
|
216
|
-
for (let c = 1; c <
|
|
217
|
-
const y = Pe(
|
|
218
|
-
m = await
|
|
215
|
+
const d = t ?? p.length;
|
|
216
|
+
for (let c = 1; c < d; c++) {
|
|
217
|
+
const y = Pe(s, m);
|
|
218
|
+
m = await h(m, y);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
return m;
|
|
222
222
|
};
|
|
223
223
|
e.options.persister ? e.fetchFn = () => {
|
|
224
|
-
var
|
|
225
|
-
return (o = (
|
|
226
|
-
|
|
224
|
+
var s, o;
|
|
225
|
+
return (o = (s = e.options).persister) == null ? void 0 : o.call(
|
|
226
|
+
s,
|
|
227
227
|
r,
|
|
228
228
|
{
|
|
229
229
|
queryKey: e.queryKey,
|
|
@@ -255,17 +255,17 @@ function Vt(t, { pages: e, pageParams: n }) {
|
|
|
255
255
|
n
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
|
-
var b,
|
|
258
|
+
var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
259
259
|
constructor(t = {}) {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
P(this, b, t.queryCache || new
|
|
260
|
+
C(this, b);
|
|
261
|
+
C(this, k);
|
|
262
|
+
C(this, I);
|
|
263
|
+
C(this, Q);
|
|
264
|
+
C(this, V);
|
|
265
|
+
C(this, q);
|
|
266
|
+
C(this, H);
|
|
267
|
+
C(this, F);
|
|
268
|
+
P(this, b, t.queryCache || new It()), P(this, k, t.mutationCache || new qt()), P(this, I, t.defaultOptions || {}), P(this, Q, /* @__PURE__ */ new Map()), P(this, V, /* @__PURE__ */ new Map()), P(this, q, 0);
|
|
269
269
|
}
|
|
270
270
|
mount() {
|
|
271
271
|
X(this, q)._++, i(this, q) === 1 && (P(this, H, dt.subscribe(async (t) => {
|
|
@@ -282,7 +282,7 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
282
282
|
return i(this, b).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
283
283
|
}
|
|
284
284
|
isMutating(t) {
|
|
285
|
-
return i(this,
|
|
285
|
+
return i(this, k).findAll({ ...t, status: "pending" }).length;
|
|
286
286
|
}
|
|
287
287
|
getQueryData(t) {
|
|
288
288
|
var n;
|
|
@@ -305,14 +305,14 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
setQueryData(t, e, n) {
|
|
308
|
-
const r = this.defaultQueryOptions({ queryKey: t }),
|
|
308
|
+
const r = this.defaultQueryOptions({ queryKey: t }), s = i(this, b).get(
|
|
309
309
|
r.queryHash
|
|
310
|
-
), o =
|
|
311
|
-
if (
|
|
312
|
-
return i(this, b).build(this, r).setData(
|
|
310
|
+
), o = s == null ? void 0 : s.state.data, p = ht(e, o);
|
|
311
|
+
if (p !== void 0)
|
|
312
|
+
return i(this, b).build(this, r).setData(p, { ...n, manual: !0 });
|
|
313
313
|
}
|
|
314
314
|
setQueriesData(t, e, n) {
|
|
315
|
-
return
|
|
315
|
+
return N.batch(
|
|
316
316
|
() => i(this, b).findAll(t).map(({ queryKey: r }) => [
|
|
317
317
|
r,
|
|
318
318
|
this.setQueryData(r, e, n)
|
|
@@ -326,7 +326,7 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
326
326
|
}
|
|
327
327
|
removeQueries(t) {
|
|
328
328
|
const e = i(this, b);
|
|
329
|
-
|
|
329
|
+
N.batch(() => {
|
|
330
330
|
e.findAll(t).forEach((n) => {
|
|
331
331
|
e.remove(n);
|
|
332
332
|
});
|
|
@@ -337,18 +337,18 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
337
337
|
type: "active",
|
|
338
338
|
...t
|
|
339
339
|
};
|
|
340
|
-
return
|
|
341
|
-
|
|
340
|
+
return N.batch(() => (n.findAll(t).forEach((s) => {
|
|
341
|
+
s.reset();
|
|
342
342
|
}), this.refetchQueries(r, e)));
|
|
343
343
|
}
|
|
344
344
|
cancelQueries(t = {}, e = {}) {
|
|
345
|
-
const n = { revert: !0, ...e }, r =
|
|
346
|
-
() => i(this, b).findAll(t).map((
|
|
345
|
+
const n = { revert: !0, ...e }, r = N.batch(
|
|
346
|
+
() => i(this, b).findAll(t).map((s) => s.cancel(n))
|
|
347
347
|
);
|
|
348
348
|
return Promise.all(r).then(L).catch(L);
|
|
349
349
|
}
|
|
350
350
|
invalidateQueries(t = {}, e = {}) {
|
|
351
|
-
return
|
|
351
|
+
return N.batch(() => {
|
|
352
352
|
if (i(this, b).findAll(t).forEach((r) => {
|
|
353
353
|
r.invalidate();
|
|
354
354
|
}), t.refetchType === "none")
|
|
@@ -364,10 +364,10 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
364
364
|
const n = {
|
|
365
365
|
...e,
|
|
366
366
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
367
|
-
}, r =
|
|
368
|
-
() => i(this, b).findAll(t).filter((
|
|
369
|
-
let o =
|
|
370
|
-
return n.throwOnError || (o = o.catch(L)),
|
|
367
|
+
}, r = N.batch(
|
|
368
|
+
() => i(this, b).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
|
|
369
|
+
let o = s.fetch(void 0, n);
|
|
370
|
+
return n.throwOnError || (o = o.catch(L)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
371
371
|
})
|
|
372
372
|
);
|
|
373
373
|
return Promise.all(r).then(L);
|
|
@@ -390,19 +390,19 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
390
390
|
return this.fetchInfiniteQuery(t).then(L).catch(L);
|
|
391
391
|
}
|
|
392
392
|
resumePausedMutations() {
|
|
393
|
-
return _e.isOnline() ? i(this,
|
|
393
|
+
return _e.isOnline() ? i(this, k).resumePausedMutations() : Promise.resolve();
|
|
394
394
|
}
|
|
395
395
|
getQueryCache() {
|
|
396
396
|
return i(this, b);
|
|
397
397
|
}
|
|
398
398
|
getMutationCache() {
|
|
399
|
-
return i(this,
|
|
399
|
+
return i(this, k);
|
|
400
400
|
}
|
|
401
401
|
getDefaultOptions() {
|
|
402
|
-
return i(this,
|
|
402
|
+
return i(this, I);
|
|
403
403
|
}
|
|
404
404
|
setDefaultOptions(t) {
|
|
405
|
-
P(this,
|
|
405
|
+
P(this, I, t);
|
|
406
406
|
}
|
|
407
407
|
setQueryDefaults(t, e) {
|
|
408
408
|
i(this, Q).set(we(t), {
|
|
@@ -434,7 +434,7 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
434
434
|
if (t._defaulted)
|
|
435
435
|
return t;
|
|
436
436
|
const e = {
|
|
437
|
-
...i(this,
|
|
437
|
+
...i(this, I).queries,
|
|
438
438
|
...this.getQueryDefaults(t.queryKey),
|
|
439
439
|
...t,
|
|
440
440
|
_defaulted: !0
|
|
@@ -446,29 +446,29 @@ var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
446
446
|
}
|
|
447
447
|
defaultMutationOptions(t) {
|
|
448
448
|
return t != null && t._defaulted ? t : {
|
|
449
|
-
...i(this,
|
|
449
|
+
...i(this, I).mutations,
|
|
450
450
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
451
451
|
...t,
|
|
452
452
|
_defaulted: !0
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
455
|
clear() {
|
|
456
|
-
i(this, b).clear(), i(this,
|
|
456
|
+
i(this, b).clear(), i(this, k).clear();
|
|
457
457
|
}
|
|
458
|
-
}, b = new WeakMap(),
|
|
458
|
+
}, b = new WeakMap(), k = new WeakMap(), I = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), q = new WeakMap(), H = new WeakMap(), F = new WeakMap(), Qe), Ft = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
459
459
|
const Ae = (t) => {
|
|
460
460
|
let e;
|
|
461
|
-
const n = /* @__PURE__ */ new Set(), r = (u,
|
|
462
|
-
const
|
|
463
|
-
if (!Object.is(
|
|
461
|
+
const n = /* @__PURE__ */ new Set(), r = (u, l) => {
|
|
462
|
+
const h = typeof u == "function" ? u(e) : u;
|
|
463
|
+
if (!Object.is(h, e)) {
|
|
464
464
|
const m = e;
|
|
465
|
-
e =
|
|
465
|
+
e = l ?? (typeof h != "object" || h === null) ? h : Object.assign({}, e, h), n.forEach((S) => S(e, m));
|
|
466
466
|
}
|
|
467
|
-
},
|
|
467
|
+
}, s = () => e, E = { setState: r, getState: s, getInitialState: () => x, subscribe: (u) => (n.add(u), () => n.delete(u)), destroy: () => {
|
|
468
468
|
(Ft ? "production" : void 0) !== "production" && console.warn(
|
|
469
469
|
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
470
470
|
), n.clear();
|
|
471
|
-
} }, x = e = t(r,
|
|
471
|
+
} }, x = e = t(r, s, E);
|
|
472
472
|
return E;
|
|
473
473
|
}, Kt = (t) => t ? Ae(t) : Ae;
|
|
474
474
|
var pe = { exports: {} }, ue = {}, J = { exports: {} }, ce = {};
|
|
@@ -486,32 +486,32 @@ function Bt() {
|
|
|
486
486
|
if (De) return ce;
|
|
487
487
|
De = 1;
|
|
488
488
|
var t = $;
|
|
489
|
-
function e(
|
|
490
|
-
return
|
|
489
|
+
function e(l, h) {
|
|
490
|
+
return l === h && (l !== 0 || 1 / l === 1 / h) || l !== l && h !== h;
|
|
491
491
|
}
|
|
492
|
-
var n = typeof Object.is == "function" ? Object.is : e, r = t.useState,
|
|
493
|
-
function v(
|
|
494
|
-
var m =
|
|
492
|
+
var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, s = t.useEffect, o = t.useLayoutEffect, p = t.useDebugValue;
|
|
493
|
+
function v(l, h) {
|
|
494
|
+
var m = h(), S = r({ inst: { value: m, getSnapshot: h } }), g = S[0].inst, O = S[1];
|
|
495
495
|
return o(function() {
|
|
496
|
-
g.value = m, g.getSnapshot =
|
|
497
|
-
}, [
|
|
498
|
-
return E(g) && O({ inst: g }),
|
|
496
|
+
g.value = m, g.getSnapshot = h, E(g) && O({ inst: g });
|
|
497
|
+
}, [l, m, h]), s(function() {
|
|
498
|
+
return E(g) && O({ inst: g }), l(function() {
|
|
499
499
|
E(g) && O({ inst: g });
|
|
500
500
|
});
|
|
501
|
-
}, [
|
|
501
|
+
}, [l]), p(m), m;
|
|
502
502
|
}
|
|
503
|
-
function E(
|
|
504
|
-
var
|
|
505
|
-
|
|
503
|
+
function E(l) {
|
|
504
|
+
var h = l.getSnapshot;
|
|
505
|
+
l = l.value;
|
|
506
506
|
try {
|
|
507
|
-
var m =
|
|
508
|
-
return !n(
|
|
507
|
+
var m = h();
|
|
508
|
+
return !n(l, m);
|
|
509
509
|
} catch {
|
|
510
510
|
return !0;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
function x(
|
|
514
|
-
return
|
|
513
|
+
function x(l, h) {
|
|
514
|
+
return h();
|
|
515
515
|
}
|
|
516
516
|
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x : v;
|
|
517
517
|
return ce.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, ce;
|
|
@@ -526,50 +526,50 @@ var le = {};
|
|
|
526
526
|
* This source code is licensed under the MIT license found in the
|
|
527
527
|
* LICENSE file in the root directory of this source tree.
|
|
528
528
|
*/
|
|
529
|
-
var
|
|
529
|
+
var Ne;
|
|
530
530
|
function zt() {
|
|
531
|
-
return
|
|
531
|
+
return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
|
|
532
532
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
533
533
|
var t = $, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
534
|
-
function n(
|
|
534
|
+
function n(d) {
|
|
535
535
|
{
|
|
536
|
-
for (var c = arguments.length, y = new Array(c > 1 ? c - 1 : 0),
|
|
537
|
-
y[
|
|
538
|
-
r("error",
|
|
536
|
+
for (var c = arguments.length, y = new Array(c > 1 ? c - 1 : 0), f = 1; f < c; f++)
|
|
537
|
+
y[f - 1] = arguments[f];
|
|
538
|
+
r("error", d, y);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
function r(
|
|
541
|
+
function r(d, c, y) {
|
|
542
542
|
{
|
|
543
|
-
var
|
|
543
|
+
var f = e.ReactDebugCurrentFrame, _ = f.getStackAddendum();
|
|
544
544
|
_ !== "" && (c += "%s", y = y.concat([_]));
|
|
545
545
|
var A = y.map(function(w) {
|
|
546
546
|
return String(w);
|
|
547
547
|
});
|
|
548
|
-
A.unshift("Warning: " + c), Function.prototype.apply.call(console[
|
|
548
|
+
A.unshift("Warning: " + c), Function.prototype.apply.call(console[d], console, A);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
return
|
|
551
|
+
function s(d, c) {
|
|
552
|
+
return d === c && (d !== 0 || 1 / d === 1 / c) || d !== d && c !== c;
|
|
553
553
|
}
|
|
554
|
-
var o = typeof Object.is == "function" ? Object.is :
|
|
555
|
-
function
|
|
554
|
+
var o = typeof Object.is == "function" ? Object.is : s, p = t.useState, v = t.useEffect, E = t.useLayoutEffect, x = t.useDebugValue, u = !1, l = !1;
|
|
555
|
+
function h(d, c, y) {
|
|
556
556
|
u || t.startTransition !== void 0 && (u = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
557
|
-
var
|
|
558
|
-
if (!
|
|
557
|
+
var f = c();
|
|
558
|
+
if (!l) {
|
|
559
559
|
var _ = c();
|
|
560
|
-
o(
|
|
560
|
+
o(f, _) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), l = !0);
|
|
561
561
|
}
|
|
562
|
-
var A =
|
|
562
|
+
var A = p({
|
|
563
563
|
inst: {
|
|
564
|
-
value:
|
|
564
|
+
value: f,
|
|
565
565
|
getSnapshot: c
|
|
566
566
|
}
|
|
567
567
|
}), w = A[0].inst, z = A[1];
|
|
568
568
|
return E(function() {
|
|
569
|
-
w.value =
|
|
569
|
+
w.value = f, w.getSnapshot = c, m(w) && z({
|
|
570
570
|
inst: w
|
|
571
571
|
});
|
|
572
|
-
}, [
|
|
572
|
+
}, [d, f, c]), v(function() {
|
|
573
573
|
m(w) && z({
|
|
574
574
|
inst: w
|
|
575
575
|
});
|
|
@@ -578,28 +578,28 @@ function zt() {
|
|
|
578
578
|
inst: w
|
|
579
579
|
});
|
|
580
580
|
};
|
|
581
|
-
return
|
|
582
|
-
}, [
|
|
581
|
+
return d(re);
|
|
582
|
+
}, [d]), x(f), f;
|
|
583
583
|
}
|
|
584
|
-
function m(
|
|
585
|
-
var c =
|
|
584
|
+
function m(d) {
|
|
585
|
+
var c = d.getSnapshot, y = d.value;
|
|
586
586
|
try {
|
|
587
|
-
var
|
|
588
|
-
return !o(y,
|
|
587
|
+
var f = c();
|
|
588
|
+
return !o(y, f);
|
|
589
589
|
} catch {
|
|
590
590
|
return !0;
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
function S(
|
|
593
|
+
function S(d, c, y) {
|
|
594
594
|
return c();
|
|
595
595
|
}
|
|
596
|
-
var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", O = !g, M = O ? S :
|
|
596
|
+
var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", O = !g, M = O ? S : h, R = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : M;
|
|
597
597
|
le.useSyncExternalStore = R, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
598
598
|
}()), le;
|
|
599
599
|
}
|
|
600
|
-
var
|
|
600
|
+
var Ce;
|
|
601
601
|
function Ge() {
|
|
602
|
-
return
|
|
602
|
+
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? J.exports = Bt() : J.exports = zt()), J.exports;
|
|
603
603
|
}
|
|
604
604
|
/**
|
|
605
605
|
* @license React
|
|
@@ -618,35 +618,35 @@ function Wt() {
|
|
|
618
618
|
function n(x, u) {
|
|
619
619
|
return x === u && (x !== 0 || 1 / x === 1 / u) || x !== x && u !== u;
|
|
620
620
|
}
|
|
621
|
-
var r = typeof Object.is == "function" ? Object.is : n,
|
|
622
|
-
return ue.useSyncExternalStoreWithSelector = function(x, u,
|
|
621
|
+
var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, o = t.useRef, p = t.useEffect, v = t.useMemo, E = t.useDebugValue;
|
|
622
|
+
return ue.useSyncExternalStoreWithSelector = function(x, u, l, h, m) {
|
|
623
623
|
var S = o(null);
|
|
624
624
|
if (S.current === null) {
|
|
625
625
|
var g = { hasValue: !1, value: null };
|
|
626
626
|
S.current = g;
|
|
627
627
|
} else g = S.current;
|
|
628
628
|
S = v(function() {
|
|
629
|
-
function M(
|
|
629
|
+
function M(f) {
|
|
630
630
|
if (!R) {
|
|
631
|
-
if (R = !0,
|
|
631
|
+
if (R = !0, d = f, f = h(f), m !== void 0 && g.hasValue) {
|
|
632
632
|
var _ = g.value;
|
|
633
|
-
if (m(_,
|
|
633
|
+
if (m(_, f)) return c = _;
|
|
634
634
|
}
|
|
635
|
-
return c =
|
|
635
|
+
return c = f;
|
|
636
636
|
}
|
|
637
|
-
if (_ = c, r(
|
|
638
|
-
var A = f
|
|
639
|
-
return m !== void 0 && m(_, A) ? _ : (
|
|
637
|
+
if (_ = c, r(d, f)) return _;
|
|
638
|
+
var A = h(f);
|
|
639
|
+
return m !== void 0 && m(_, A) ? _ : (d = f, c = A);
|
|
640
640
|
}
|
|
641
|
-
var R = !1,
|
|
641
|
+
var R = !1, d, c, y = l === void 0 ? null : l;
|
|
642
642
|
return [function() {
|
|
643
643
|
return M(u());
|
|
644
644
|
}, y === null ? void 0 : function() {
|
|
645
645
|
return M(y());
|
|
646
646
|
}];
|
|
647
|
-
}, [u,
|
|
648
|
-
var O =
|
|
649
|
-
return
|
|
647
|
+
}, [u, l, h, m]);
|
|
648
|
+
var O = s(x, S[0], S[1]);
|
|
649
|
+
return p(function() {
|
|
650
650
|
g.hasValue = !0, g.value = O;
|
|
651
651
|
}, [O]), E(O), O;
|
|
652
652
|
}, ue;
|
|
@@ -666,20 +666,20 @@ function Ut() {
|
|
|
666
666
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
667
667
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
668
668
|
var t = $, e = Ge();
|
|
669
|
-
function n(u,
|
|
670
|
-
return u ===
|
|
669
|
+
function n(u, l) {
|
|
670
|
+
return u === l && (u !== 0 || 1 / u === 1 / l) || u !== u && l !== l;
|
|
671
671
|
}
|
|
672
|
-
var r = typeof Object.is == "function" ? Object.is : n,
|
|
673
|
-
function x(u,
|
|
672
|
+
var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, o = t.useRef, p = t.useEffect, v = t.useMemo, E = t.useDebugValue;
|
|
673
|
+
function x(u, l, h, m, S) {
|
|
674
674
|
var g = o(null), O;
|
|
675
675
|
g.current === null ? (O = {
|
|
676
676
|
hasValue: !1,
|
|
677
677
|
value: null
|
|
678
678
|
}, g.current = O) : O = g.current;
|
|
679
679
|
var M = v(function() {
|
|
680
|
-
var y = !1,
|
|
680
|
+
var y = !1, f, _, A = function(W) {
|
|
681
681
|
if (!y) {
|
|
682
|
-
y = !0,
|
|
682
|
+
y = !0, f = W;
|
|
683
683
|
var se = m(W);
|
|
684
684
|
if (S !== void 0 && O.hasValue) {
|
|
685
685
|
var ae = O.value;
|
|
@@ -688,19 +688,19 @@ function Ut() {
|
|
|
688
688
|
}
|
|
689
689
|
return _ = se, se;
|
|
690
690
|
}
|
|
691
|
-
var rt =
|
|
691
|
+
var rt = f, ie = _;
|
|
692
692
|
if (r(rt, W))
|
|
693
693
|
return ie;
|
|
694
694
|
var oe = m(W);
|
|
695
|
-
return S !== void 0 && S(ie, oe) ? ie : (
|
|
696
|
-
}, w =
|
|
697
|
-
return A(
|
|
695
|
+
return S !== void 0 && S(ie, oe) ? ie : (f = W, _ = oe, oe);
|
|
696
|
+
}, w = h === void 0 ? null : h, z = function() {
|
|
697
|
+
return A(l());
|
|
698
698
|
}, re = w === null ? void 0 : function() {
|
|
699
699
|
return A(w());
|
|
700
700
|
};
|
|
701
701
|
return [z, re];
|
|
702
|
-
}, [
|
|
703
|
-
return
|
|
702
|
+
}, [l, h, m, S]), R = M[0], d = M[1], c = s(u, R, d);
|
|
703
|
+
return p(function() {
|
|
704
704
|
O.hasValue = !0, O.value = c;
|
|
705
705
|
}, [c]), E(c), c;
|
|
706
706
|
}
|
|
@@ -731,9 +731,9 @@ const Le = (t) => {
|
|
|
731
731
|
($e ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
|
|
732
732
|
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
733
733
|
);
|
|
734
|
-
const e = typeof t == "function" ? Kt(t) : t, n = (r,
|
|
734
|
+
const e = typeof t == "function" ? Kt(t) : t, n = (r, s) => Zt(e, r, s);
|
|
735
735
|
return Object.assign(n, e), n;
|
|
736
|
-
}, en = (t) => t ? Le(t) : Le, Xe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", tn = (t) => "initialize" in t && typeof t.initialize == "function", nn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ye = new Ht(),
|
|
736
|
+
}, en = (t) => t ? Le(t) : Le, Xe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", tn = (t) => "initialize" in t && typeof t.initialize == "function", nn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ye = new Ht(), ve = en(
|
|
737
737
|
() => ({
|
|
738
738
|
isLoggedIn: !1
|
|
739
739
|
})
|
|
@@ -750,7 +750,7 @@ class rn {
|
|
|
750
750
|
var e;
|
|
751
751
|
this.plugins.filter(tn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
|
|
752
752
|
});
|
|
753
|
-
j(this, "setUserProfile", async (e) =>
|
|
753
|
+
j(this, "setUserProfile", async (e) => ve.setState(e));
|
|
754
754
|
j(this, "invalidateCache", async (e) => {
|
|
755
755
|
Ye.invalidateQueries({ queryKey: e });
|
|
756
756
|
});
|
|
@@ -774,8 +774,8 @@ class rn {
|
|
|
774
774
|
j(this, "getNavigation", async (e) => (await Promise.all(
|
|
775
775
|
this.navigationPlugins.map(
|
|
776
776
|
async (r) => {
|
|
777
|
-
var
|
|
778
|
-
return (
|
|
777
|
+
var s;
|
|
778
|
+
return (s = r.getNavigation) == null ? void 0 : s.call(r, e);
|
|
779
779
|
}
|
|
780
780
|
)
|
|
781
781
|
)).flatMap((r) => r ?? []));
|
|
@@ -785,7 +785,7 @@ class rn {
|
|
|
785
785
|
},
|
|
786
786
|
set: async (e, n) => localStorage.setItem(`session-${e}`, n)
|
|
787
787
|
});
|
|
788
|
-
this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Xe), this.authentication = e.authentication, this.meta = e.meta, this.state =
|
|
788
|
+
this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Xe), this.authentication = e.authentication, this.meta = e.meta, this.state = ve;
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
/**
|
|
@@ -846,11 +846,11 @@ const un = G("Sun", [
|
|
|
846
846
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
847
847
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
848
848
|
]), cn = () => {
|
|
849
|
-
const { navigation: t } =
|
|
850
|
-
return /* @__PURE__ */
|
|
849
|
+
const { navigation: t } = me();
|
|
850
|
+
return /* @__PURE__ */ a.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
851
851
|
he,
|
|
852
852
|
{
|
|
853
|
-
className: ({ isActive: n }) =>
|
|
853
|
+
className: ({ isActive: n }) => vt(
|
|
854
854
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
855
855
|
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
856
856
|
),
|
|
@@ -858,53 +858,53 @@ const un = G("Sun", [
|
|
|
858
858
|
children: e.label
|
|
859
859
|
}
|
|
860
860
|
) }, e.label)) }) });
|
|
861
|
-
}, Ze = We(()
|
|
862
|
-
const [
|
|
863
|
-
return /* @__PURE__ */
|
|
864
|
-
/* @__PURE__ */
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
(
|
|
867
|
-
/* @__PURE__ */
|
|
861
|
+
}, Ze = We(function() {
|
|
862
|
+
const [e, n] = mt(), { isLoggedIn: r, email: s } = ve(), { login: o, logout: p, meta: v } = me(), E = e ? an : un;
|
|
863
|
+
return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
864
|
+
/* @__PURE__ */ a.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: [
|
|
865
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
866
|
+
(v == null ? void 0 : v.logo) && /* @__PURE__ */ a.jsx("img", { src: v.logo, alt: "My Dev Portal", className: "h-10" }),
|
|
867
|
+
/* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: v == null ? void 0 : v.headerTitle })
|
|
868
868
|
] }),
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
-
/* @__PURE__ */
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
870
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ a.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
|
|
871
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
872
|
+
/* @__PURE__ */ a.jsx(on, { size: 14 }),
|
|
873
873
|
"Search"
|
|
874
874
|
] }),
|
|
875
|
-
/* @__PURE__ */
|
|
875
|
+
/* @__PURE__ */ a.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" })
|
|
876
876
|
] }) }),
|
|
877
|
-
/* @__PURE__ */
|
|
878
|
-
|
|
877
|
+
/* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
|
|
878
|
+
r ? /* @__PURE__ */ a.jsxs(
|
|
879
879
|
"button",
|
|
880
880
|
{
|
|
881
881
|
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
|
|
882
|
-
onClick:
|
|
882
|
+
onClick: p,
|
|
883
883
|
children: [
|
|
884
884
|
"Logout ",
|
|
885
|
-
|
|
885
|
+
s ? `(${s})` : null
|
|
886
886
|
]
|
|
887
887
|
}
|
|
888
|
-
) : /* @__PURE__ */
|
|
888
|
+
) : /* @__PURE__ */ a.jsx(
|
|
889
889
|
"button",
|
|
890
890
|
{
|
|
891
891
|
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
|
|
892
|
-
onClick:
|
|
892
|
+
onClick: o,
|
|
893
893
|
children: "Login"
|
|
894
894
|
}
|
|
895
895
|
),
|
|
896
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ a.jsx(
|
|
897
897
|
"button",
|
|
898
898
|
{
|
|
899
899
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
900
|
-
onClick:
|
|
901
|
-
children: /* @__PURE__ */
|
|
900
|
+
onClick: n,
|
|
901
|
+
children: /* @__PURE__ */ a.jsx(E, { size: 18 })
|
|
902
902
|
}
|
|
903
903
|
)
|
|
904
904
|
] })
|
|
905
905
|
] })
|
|
906
906
|
] }),
|
|
907
|
-
/* @__PURE__ */
|
|
907
|
+
/* @__PURE__ */ a.jsx(cn, {})
|
|
908
908
|
] }) });
|
|
909
909
|
}), et = {
|
|
910
910
|
Header: Ze
|
|
@@ -919,30 +919,26 @@ const un = G("Sun", [
|
|
|
919
919
|
});
|
|
920
920
|
return;
|
|
921
921
|
}
|
|
922
|
-
const
|
|
922
|
+
const s = new MutationObserver((o, p) => {
|
|
923
923
|
const v = document.getElementById(decodeURIComponent(n));
|
|
924
|
-
v && (v.scrollIntoView(), requestIdleCallback(() => e(n)),
|
|
924
|
+
v && (v.scrollIntoView(), requestIdleCallback(() => e(n)), p.disconnect());
|
|
925
925
|
});
|
|
926
|
-
return
|
|
926
|
+
return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
|
|
927
927
|
}, [t.hash, e]);
|
|
928
928
|
}, fn = () => {
|
|
929
929
|
const t = B(), e = ne(t.pathname);
|
|
930
930
|
K(() => {
|
|
931
931
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
932
932
|
}, [t.pathname]);
|
|
933
|
-
}
|
|
934
|
-
function pn(t) {
|
|
935
|
-
return !0;
|
|
936
|
-
}
|
|
937
|
-
const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
933
|
+
}, tt = ({
|
|
938
934
|
item: t,
|
|
939
935
|
defaultOpen: e,
|
|
940
936
|
path: n
|
|
941
937
|
}) => {
|
|
942
|
-
const [r,
|
|
938
|
+
const [r, s] = Lt(e), o = B(), p = ne(o.pathname);
|
|
943
939
|
return K(() => {
|
|
944
|
-
!r &&
|
|
945
|
-
}, [r, t, n, o.pathname]), [r,
|
|
940
|
+
!r && p.current !== o.pathname && s(ye(t, o.pathname, n)), p.current = o.pathname;
|
|
941
|
+
}, [r, t, n, o.pathname]), [r, s];
|
|
946
942
|
}, Z = xt(
|
|
947
943
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
948
944
|
{
|
|
@@ -957,26 +953,26 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
957
953
|
}
|
|
958
954
|
}
|
|
959
955
|
}
|
|
960
|
-
),
|
|
956
|
+
), pn = "data-anchor", nt = ({
|
|
961
957
|
category: t,
|
|
962
958
|
item: e,
|
|
963
959
|
activeAnchor: n,
|
|
964
960
|
currentTopNavItem: r,
|
|
965
|
-
basePath:
|
|
961
|
+
basePath: s = ""
|
|
966
962
|
}) => {
|
|
967
|
-
const o = fe(e) ? Fe(
|
|
963
|
+
const o = fe(e) ? Fe(s, e.path) : "", p = B(), [v, E] = tt({
|
|
968
964
|
item: e,
|
|
969
965
|
path: o,
|
|
970
|
-
defaultOpen: () => ye(e,
|
|
966
|
+
defaultOpen: () => ye(e, p.pathname, o)
|
|
971
967
|
});
|
|
972
968
|
if (gt(e)) {
|
|
973
969
|
const u = te(
|
|
974
970
|
"flex items-center gap-2",
|
|
975
971
|
Z({
|
|
976
|
-
isActive: e.href ===
|
|
972
|
+
isActive: e.href === p.pathname
|
|
977
973
|
})
|
|
978
974
|
);
|
|
979
|
-
return e.href.startsWith("http") ? /* @__PURE__ */
|
|
975
|
+
return e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
980
976
|
"a",
|
|
981
977
|
{
|
|
982
978
|
className: u,
|
|
@@ -985,17 +981,17 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
985
981
|
rel: "noopener noreferrer",
|
|
986
982
|
children: [
|
|
987
983
|
e.label,
|
|
988
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ a.jsx(sn, { size: 14 })
|
|
989
985
|
]
|
|
990
986
|
}
|
|
991
|
-
) : /* @__PURE__ */
|
|
987
|
+
) : /* @__PURE__ */ a.jsx(he, { className: u, to: e.href, children: e.label });
|
|
992
988
|
}
|
|
993
|
-
const x = /* @__PURE__ */
|
|
994
|
-
/* @__PURE__ */
|
|
995
|
-
|
|
996
|
-
typeof e.label != "string" ? e.label : /* @__PURE__ */
|
|
989
|
+
const x = /* @__PURE__ */ a.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
990
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
991
|
+
e.icon,
|
|
992
|
+
typeof e.label != "string" ? e.label : /* @__PURE__ */ a.jsx("span", { className: "truncate", children: e.label })
|
|
997
993
|
] }),
|
|
998
|
-
e.children && /* @__PURE__ */
|
|
994
|
+
e.children && /* @__PURE__ */ a.jsx(
|
|
999
995
|
Je,
|
|
1000
996
|
{
|
|
1001
997
|
size: 16,
|
|
@@ -1003,14 +999,14 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1003
999
|
}
|
|
1004
1000
|
)
|
|
1005
1001
|
] });
|
|
1006
|
-
return /* @__PURE__ */
|
|
1002
|
+
return /* @__PURE__ */ a.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ a.jsxs(
|
|
1007
1003
|
Ke,
|
|
1008
1004
|
{
|
|
1009
1005
|
open: v,
|
|
1010
1006
|
onOpenChange: () => E((u) => !u),
|
|
1011
1007
|
className: "flex flex-col",
|
|
1012
1008
|
children: [
|
|
1013
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ a.jsx(
|
|
1014
1010
|
Be,
|
|
1015
1011
|
{
|
|
1016
1012
|
className: te(
|
|
@@ -1020,7 +1016,7 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1020
1016
|
children: x
|
|
1021
1017
|
}
|
|
1022
1018
|
),
|
|
1023
|
-
/* @__PURE__ */
|
|
1019
|
+
/* @__PURE__ */ a.jsx(ze, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((u) => /* @__PURE__ */ a.jsx(
|
|
1024
1020
|
nt,
|
|
1025
1021
|
{
|
|
1026
1022
|
category: t,
|
|
@@ -1033,18 +1029,18 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1033
1029
|
)) }) })
|
|
1034
1030
|
]
|
|
1035
1031
|
}
|
|
1036
|
-
) : e.path.startsWith("#") ? /* @__PURE__ */
|
|
1032
|
+
) : e.path.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
1037
1033
|
yt,
|
|
1038
1034
|
{
|
|
1039
1035
|
to: e.path,
|
|
1040
|
-
[
|
|
1036
|
+
[pn]: e.path,
|
|
1041
1037
|
className: Z({
|
|
1042
1038
|
isActive: e.path.slice(1) === n,
|
|
1043
1039
|
isMuted: e.muted
|
|
1044
1040
|
}),
|
|
1045
1041
|
children: x
|
|
1046
1042
|
}
|
|
1047
|
-
) : /* @__PURE__ */
|
|
1043
|
+
) : /* @__PURE__ */ a.jsx(
|
|
1048
1044
|
he,
|
|
1049
1045
|
{
|
|
1050
1046
|
className: ({ isActive: u }) => Z({ isActive: u }),
|
|
@@ -1052,30 +1048,30 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1052
1048
|
children: x
|
|
1053
1049
|
}
|
|
1054
1050
|
) });
|
|
1055
|
-
},
|
|
1051
|
+
}, vn = ({
|
|
1056
1052
|
category: t
|
|
1057
1053
|
}) => {
|
|
1058
|
-
const { activeAnchor: e } = ge(), n = St(), r = B(),
|
|
1054
|
+
const { activeAnchor: e } = ge(), n = St(), r = B(), s = t.collapsible ?? !0, [o, p] = tt({
|
|
1059
1055
|
item: t,
|
|
1060
1056
|
path: (n == null ? void 0 : n.path) ?? "",
|
|
1061
|
-
defaultOpen: () => !
|
|
1057
|
+
defaultOpen: () => !s || t.expanded || ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
|
|
1062
1058
|
});
|
|
1063
|
-
return /* @__PURE__ */
|
|
1059
|
+
return /* @__PURE__ */ a.jsxs(
|
|
1064
1060
|
Ke,
|
|
1065
1061
|
{
|
|
1066
1062
|
open: o,
|
|
1067
|
-
onOpenChange: () =>
|
|
1063
|
+
onOpenChange: () => p((v) => !v),
|
|
1068
1064
|
children: [
|
|
1069
|
-
t.label.length > 0 ? /* @__PURE__ */
|
|
1065
|
+
t.label.length > 0 ? /* @__PURE__ */ a.jsx(Be, { asChild: s, disabled: !s, children: /* @__PURE__ */ a.jsxs(
|
|
1070
1066
|
"h5",
|
|
1071
1067
|
{
|
|
1072
1068
|
className: te(
|
|
1073
1069
|
"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]",
|
|
1074
|
-
|
|
1070
|
+
s ? "hover:bg-accent" : "cursor-auto"
|
|
1075
1071
|
),
|
|
1076
1072
|
children: [
|
|
1077
1073
|
t.label,
|
|
1078
|
-
|
|
1074
|
+
s && /* @__PURE__ */ a.jsx(
|
|
1079
1075
|
Je,
|
|
1080
1076
|
{
|
|
1081
1077
|
className: "group-data-[state=open]:rotate-90 transition",
|
|
@@ -1085,7 +1081,7 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1085
1081
|
]
|
|
1086
1082
|
}
|
|
1087
1083
|
) }) : "Endpoints",
|
|
1088
|
-
/* @__PURE__ */
|
|
1084
|
+
/* @__PURE__ */ a.jsx(ze, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ a.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((v) => /* @__PURE__ */ a.jsx(
|
|
1089
1085
|
nt,
|
|
1090
1086
|
{
|
|
1091
1087
|
category: t,
|
|
@@ -1100,56 +1096,58 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1100
1096
|
},
|
|
1101
1097
|
t.label
|
|
1102
1098
|
);
|
|
1103
|
-
},
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1099
|
+
}, mn = kt(function({ children: e, className: n, pushMainContent: r }, s) {
|
|
1100
|
+
return /* @__PURE__ */ a.jsx(
|
|
1101
|
+
"nav",
|
|
1102
|
+
{
|
|
1103
|
+
"data-navigation": String(r),
|
|
1104
|
+
className: te(
|
|
1105
|
+
"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",
|
|
1106
|
+
n
|
|
1107
|
+
),
|
|
1108
|
+
ref: s,
|
|
1109
|
+
children: e
|
|
1110
|
+
}
|
|
1111
|
+
);
|
|
1112
|
+
}), gn = () => {
|
|
1115
1113
|
const t = ne(null), e = bt();
|
|
1116
|
-
return /* @__PURE__ */
|
|
1117
|
-
|
|
1114
|
+
return /* @__PURE__ */ a.jsx(
|
|
1115
|
+
mn,
|
|
1118
1116
|
{
|
|
1119
1117
|
ref: t,
|
|
1120
1118
|
pushMainContent: e.data.items.length > 0,
|
|
1121
|
-
children: e.data.items.map((n) => /* @__PURE__ */
|
|
1119
|
+
children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(vn, { category: n }, n.label))
|
|
1122
1120
|
}
|
|
1123
1121
|
);
|
|
1124
|
-
},
|
|
1125
|
-
const e = B(), { setActiveAnchor: n } = ge(), { meta: r, handleAuthenticationResponse:
|
|
1122
|
+
}, ke = ({ children: t }) => {
|
|
1123
|
+
const e = B(), { setActiveAnchor: n } = ge(), { meta: r, handleAuthenticationResponse: s } = me();
|
|
1126
1124
|
K(() => {
|
|
1127
|
-
|
|
1128
|
-
}, [
|
|
1125
|
+
s(e);
|
|
1126
|
+
}, [s, e]), hn(), fn();
|
|
1129
1127
|
const o = ne(e.pathname);
|
|
1130
1128
|
return K(() => {
|
|
1131
1129
|
e.pathname !== o.current && n(""), o.current = e.pathname;
|
|
1132
|
-
}, [e.pathname, n]), /* @__PURE__ */
|
|
1133
|
-
/* @__PURE__ */
|
|
1134
|
-
/* @__PURE__ */
|
|
1135
|
-
(r == null ? void 0 : r.description) && /* @__PURE__ */
|
|
1136
|
-
(r == null ? void 0 : r.favicon) && /* @__PURE__ */
|
|
1130
|
+
}, [e.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1131
|
+
/* @__PURE__ */ a.jsxs(Ot, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
|
|
1132
|
+
/* @__PURE__ */ a.jsx("title", { children: "Home" }),
|
|
1133
|
+
(r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
|
|
1134
|
+
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
|
|
1137
1135
|
] }),
|
|
1138
|
-
/* @__PURE__ */
|
|
1139
|
-
/* @__PURE__ */
|
|
1136
|
+
/* @__PURE__ */ a.jsx(Ze, {}),
|
|
1137
|
+
/* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
|
|
1140
1138
|
Ue,
|
|
1141
1139
|
{
|
|
1142
|
-
fallback: /* @__PURE__ */
|
|
1140
|
+
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(_t, {}) }),
|
|
1143
1141
|
children: [
|
|
1144
|
-
/* @__PURE__ */
|
|
1145
|
-
/* @__PURE__ */
|
|
1142
|
+
/* @__PURE__ */ a.jsx(gn, {}),
|
|
1143
|
+
/* @__PURE__ */ a.jsx(
|
|
1146
1144
|
"main",
|
|
1147
1145
|
{
|
|
1148
1146
|
className: `dark:border-white/10 translate-x-0
|
|
1149
1147
|
lg:overflow-visible
|
|
1150
1148
|
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
1151
1149
|
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
1152
|
-
children: t ?? /* @__PURE__ */
|
|
1150
|
+
children: t ?? /* @__PURE__ */ a.jsx(Et, {})
|
|
1153
1151
|
}
|
|
1154
1152
|
)
|
|
1155
1153
|
]
|
|
@@ -1157,7 +1155,7 @@ const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
|
1157
1155
|
) })
|
|
1158
1156
|
] });
|
|
1159
1157
|
};
|
|
1160
|
-
function
|
|
1158
|
+
function yn({ plugins: t }) {
|
|
1161
1159
|
const e = ee(() => {
|
|
1162
1160
|
const n = (t ?? []).flatMap(
|
|
1163
1161
|
(r) => Xe(r) ? r.getRoutes() : []
|
|
@@ -1165,15 +1163,15 @@ function Sn({ plugins: t }) {
|
|
|
1165
1163
|
return wt([
|
|
1166
1164
|
{
|
|
1167
1165
|
path: "/",
|
|
1168
|
-
element: /* @__PURE__ */
|
|
1169
|
-
errorElement: /* @__PURE__ */
|
|
1166
|
+
element: /* @__PURE__ */ a.jsx(ke, {}),
|
|
1167
|
+
errorElement: /* @__PURE__ */ a.jsx(ke, { children: /* @__PURE__ */ a.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
|
|
1170
1168
|
children: n
|
|
1171
1169
|
}
|
|
1172
1170
|
]);
|
|
1173
1171
|
}, [t]);
|
|
1174
|
-
return /* @__PURE__ */
|
|
1172
|
+
return /* @__PURE__ */ a.jsx(jt, { router: e });
|
|
1175
1173
|
}
|
|
1176
|
-
const
|
|
1174
|
+
const xn = (t) => {
|
|
1177
1175
|
const e = ee(
|
|
1178
1176
|
() => ({ ...et, ...t.overrides }),
|
|
1179
1177
|
[t.overrides]
|
|
@@ -1183,18 +1181,17 @@ const bn = (t) => {
|
|
|
1183
1181
|
), r = ee(() => new rn(t), [t]);
|
|
1184
1182
|
return K(() => {
|
|
1185
1183
|
r.initialize();
|
|
1186
|
-
}, [r]), /* @__PURE__ */
|
|
1184
|
+
}, [r]), /* @__PURE__ */ a.jsx(At, { client: Ye, children: /* @__PURE__ */ a.jsx(Dt, { children: /* @__PURE__ */ a.jsx(Nt, { value: r, children: /* @__PURE__ */ a.jsx(Ct, { components: n, children: /* @__PURE__ */ a.jsx(Mt, { children: /* @__PURE__ */ a.jsx(dn, { value: e, children: /* @__PURE__ */ a.jsx(Tt, { children: /* @__PURE__ */ a.jsx(
|
|
1187
1185
|
Ue,
|
|
1188
1186
|
{
|
|
1189
|
-
fallback: /* @__PURE__ */
|
|
1190
|
-
children: /* @__PURE__ */
|
|
1187
|
+
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
1188
|
+
children: /* @__PURE__ */ a.jsx(yn, { plugins: t.plugins })
|
|
1191
1189
|
}
|
|
1192
1190
|
) }) }) }) }) }) }) });
|
|
1193
|
-
},
|
|
1194
|
-
|
|
1191
|
+
}, Sn = We(xn);
|
|
1192
|
+
Sn.displayName = "DevPortal";
|
|
1195
1193
|
export {
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
Dn as useMDXComponents
|
|
1194
|
+
Sn as DevPortal,
|
|
1195
|
+
jn as Link,
|
|
1196
|
+
Pn as useMDXComponents
|
|
1200
1197
|
};
|