zudoku 0.1.1-dev.48 → 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/context/ComponentsContext.d.ts +1 -1
- package/dist/lib/components/navigation/SideNavigationWrapper.js +3 -1
- package/dist/lib/components/navigation/SideNavigationWrapper.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/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 +1 -1
- 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 +3 -3
- package/dist/lib/plugins/openapi/MakeRequest.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -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 +4 -4
- 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/playground/PathParams.js +4 -4
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +16 -18
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +4 -3
- 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-BGlCY74N.js → worker-BCcpCNJ7.js} +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.components.js +260 -258
- package/lib/zudoku.openapi-worker.js +10 -10
- package/lib/zudoku.plugins.js +10117 -9975
- package/package.json +3 -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/navigation/SideNavigationWrapper.tsx +18 -16
- package/src/lib/oas/graphql/index.ts +1 -1
- package/src/lib/plugins/api-key/SettingsApiKeys.tsx +1 -1
- package/src/lib/plugins/api-key/index.tsx +3 -3
- 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 +3 -3
- package/src/lib/plugins/openapi/OperationList.tsx +1 -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 +5 -5
- package/src/lib/plugins/openapi/Sidecar.tsx +3 -3
- package/src/lib/plugins/openapi/playground/PathParams.tsx +4 -4
- package/src/lib/plugins/openapi/playground/Playground.tsx +19 -22
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +4 -3
- 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/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/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 jn, Z as Pn } from "./Spinner-
|
|
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
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
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, Ie, It = (Ie = 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,21 +68,21 @@ var T, Ie, It = (Ie = 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
|
});
|
|
@@ -91,18 +91,18 @@ var T, Ie, It = (Ie = class extends Ve {
|
|
|
91
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, Ie, It = (Ie = 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, Ie, It = (Ie = 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, Ie, It = (Ie = 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
|
-
let
|
|
204
|
-
if (o &&
|
|
205
|
-
const
|
|
206
|
-
pages:
|
|
207
|
-
pageParams:
|
|
208
|
-
},
|
|
209
|
-
|
|
203
|
+
let m;
|
|
204
|
+
if (o && p.length) {
|
|
205
|
+
const d = o === "backward", c = d ? Vt : Pe, y = {
|
|
206
|
+
pages: p,
|
|
207
|
+
pageParams: v
|
|
208
|
+
}, f = c(s, y);
|
|
209
|
+
m = await h(y, f, d);
|
|
210
210
|
} else {
|
|
211
|
-
|
|
211
|
+
m = await h(
|
|
212
212
|
E,
|
|
213
|
-
|
|
213
|
+
v[0] ?? s.initialPageParam
|
|
214
214
|
);
|
|
215
|
-
const
|
|
216
|
-
for (let c = 1; c <
|
|
217
|
-
const y = Pe(
|
|
218
|
-
|
|
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
|
-
return
|
|
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,
|
|
@@ -257,14 +257,14 @@ function Vt(t, { pages: e, pageParams: n }) {
|
|
|
257
257
|
}
|
|
258
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
|
-
|
|
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
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() {
|
|
@@ -305,14 +305,14 @@ var b, k, I, 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, k, I, 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, k, I, 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, k, I, 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);
|
|
@@ -458,17 +458,17 @@ var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
|
458
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(
|
|
464
|
-
const
|
|
465
|
-
e =
|
|
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
|
+
const m = 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,34 +486,34 @@ 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
|
|
494
|
-
var
|
|
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 =
|
|
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
|
|
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
|
-
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x :
|
|
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;
|
|
518
518
|
}
|
|
519
519
|
var le = {};
|
|
@@ -526,80 +526,80 @@ 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
|
-
}, [
|
|
573
|
-
|
|
572
|
+
}, [d, f, c]), v(function() {
|
|
573
|
+
m(w) && z({
|
|
574
574
|
inst: w
|
|
575
575
|
});
|
|
576
576
|
var re = function() {
|
|
577
|
-
|
|
577
|
+
m(w) && z({
|
|
578
578
|
inst: w
|
|
579
579
|
});
|
|
580
580
|
};
|
|
581
|
-
return
|
|
582
|
-
}, [
|
|
581
|
+
return d(re);
|
|
582
|
+
}, [d]), x(f), f;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
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
|
-
S =
|
|
629
|
-
function M(
|
|
628
|
+
S = v(function() {
|
|
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 (
|
|
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
|
|
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,21 +666,21 @@ 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
|
-
var M =
|
|
680
|
-
var y = !1,
|
|
679
|
+
var M = v(function() {
|
|
680
|
+
var y = !1, f, _, A = function(W) {
|
|
681
681
|
if (!y) {
|
|
682
|
-
y = !0,
|
|
683
|
-
var se =
|
|
682
|
+
y = !0, f = W;
|
|
683
|
+
var se = m(W);
|
|
684
684
|
if (S !== void 0 && O.hasValue) {
|
|
685
685
|
var ae = O.value;
|
|
686
686
|
if (S(ae, se))
|
|
@@ -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
|
-
var oe =
|
|
695
|
-
return S !== void 0 && S(ie, oe) ? ie : (
|
|
696
|
-
}, w =
|
|
697
|
-
return A(
|
|
694
|
+
var oe = m(W);
|
|
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,7 +731,7 @@ 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
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
|
() => ({
|
|
@@ -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 ?? []));
|
|
@@ -847,7 +847,7 @@ const un = G("Sun", [
|
|
|
847
847
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
848
848
|
]), cn = () => {
|
|
849
849
|
const { navigation: t } = me();
|
|
850
|
-
return /* @__PURE__ */
|
|
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
853
|
className: ({ isActive: n }) => vt(
|
|
@@ -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,11 +919,11 @@ const un = G("Sun", [
|
|
|
919
919
|
});
|
|
920
920
|
return;
|
|
921
921
|
}
|
|
922
|
-
const
|
|
923
|
-
const
|
|
924
|
-
|
|
922
|
+
const s = new MutationObserver((o, p) => {
|
|
923
|
+
const v = document.getElementById(decodeURIComponent(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);
|
|
@@ -935,10 +935,10 @@ const un = G("Sun", [
|
|
|
935
935
|
defaultOpen: e,
|
|
936
936
|
path: n
|
|
937
937
|
}) => {
|
|
938
|
-
const [r,
|
|
938
|
+
const [r, s] = Lt(e), o = B(), p = ne(o.pathname);
|
|
939
939
|
return K(() => {
|
|
940
|
-
!r &&
|
|
941
|
-
}, [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];
|
|
942
942
|
}, Z = xt(
|
|
943
943
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
944
944
|
{
|
|
@@ -958,21 +958,21 @@ const un = G("Sun", [
|
|
|
958
958
|
item: e,
|
|
959
959
|
activeAnchor: n,
|
|
960
960
|
currentTopNavItem: r,
|
|
961
|
-
basePath:
|
|
961
|
+
basePath: s = ""
|
|
962
962
|
}) => {
|
|
963
|
-
const o = fe(e) ? Fe(
|
|
963
|
+
const o = fe(e) ? Fe(s, e.path) : "", p = B(), [v, E] = tt({
|
|
964
964
|
item: e,
|
|
965
965
|
path: o,
|
|
966
|
-
defaultOpen: () => ye(e,
|
|
966
|
+
defaultOpen: () => ye(e, p.pathname, o)
|
|
967
967
|
});
|
|
968
968
|
if (gt(e)) {
|
|
969
969
|
const u = te(
|
|
970
970
|
"flex items-center gap-2",
|
|
971
971
|
Z({
|
|
972
|
-
isActive: e.href ===
|
|
972
|
+
isActive: e.href === p.pathname
|
|
973
973
|
})
|
|
974
974
|
);
|
|
975
|
-
return e.href.startsWith("http") ? /* @__PURE__ */
|
|
975
|
+
return e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
976
976
|
"a",
|
|
977
977
|
{
|
|
978
978
|
className: u,
|
|
@@ -981,17 +981,17 @@ const un = G("Sun", [
|
|
|
981
981
|
rel: "noopener noreferrer",
|
|
982
982
|
children: [
|
|
983
983
|
e.label,
|
|
984
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ a.jsx(sn, { size: 14 })
|
|
985
985
|
]
|
|
986
986
|
}
|
|
987
|
-
) : /* @__PURE__ */
|
|
987
|
+
) : /* @__PURE__ */ a.jsx(he, { className: u, to: e.href, children: e.label });
|
|
988
988
|
}
|
|
989
|
-
const x = /* @__PURE__ */
|
|
990
|
-
/* @__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
991
|
e.icon,
|
|
992
|
-
typeof e.label != "string" ? e.label : /* @__PURE__ */
|
|
992
|
+
typeof e.label != "string" ? e.label : /* @__PURE__ */ a.jsx("span", { className: "truncate", children: e.label })
|
|
993
993
|
] }),
|
|
994
|
-
e.children && /* @__PURE__ */
|
|
994
|
+
e.children && /* @__PURE__ */ a.jsx(
|
|
995
995
|
Je,
|
|
996
996
|
{
|
|
997
997
|
size: 16,
|
|
@@ -999,14 +999,14 @@ const un = G("Sun", [
|
|
|
999
999
|
}
|
|
1000
1000
|
)
|
|
1001
1001
|
] });
|
|
1002
|
-
return /* @__PURE__ */
|
|
1002
|
+
return /* @__PURE__ */ a.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ a.jsxs(
|
|
1003
1003
|
Ke,
|
|
1004
1004
|
{
|
|
1005
|
-
open:
|
|
1005
|
+
open: v,
|
|
1006
1006
|
onOpenChange: () => E((u) => !u),
|
|
1007
1007
|
className: "flex flex-col",
|
|
1008
1008
|
children: [
|
|
1009
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ a.jsx(
|
|
1010
1010
|
Be,
|
|
1011
1011
|
{
|
|
1012
1012
|
className: te(
|
|
@@ -1016,7 +1016,7 @@ const un = G("Sun", [
|
|
|
1016
1016
|
children: x
|
|
1017
1017
|
}
|
|
1018
1018
|
),
|
|
1019
|
-
/* @__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(
|
|
1020
1020
|
nt,
|
|
1021
1021
|
{
|
|
1022
1022
|
category: t,
|
|
@@ -1029,7 +1029,7 @@ const un = G("Sun", [
|
|
|
1029
1029
|
)) }) })
|
|
1030
1030
|
]
|
|
1031
1031
|
}
|
|
1032
|
-
) : e.path.startsWith("#") ? /* @__PURE__ */
|
|
1032
|
+
) : e.path.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
1033
1033
|
yt,
|
|
1034
1034
|
{
|
|
1035
1035
|
to: e.path,
|
|
@@ -1040,7 +1040,7 @@ const un = G("Sun", [
|
|
|
1040
1040
|
}),
|
|
1041
1041
|
children: x
|
|
1042
1042
|
}
|
|
1043
|
-
) : /* @__PURE__ */
|
|
1043
|
+
) : /* @__PURE__ */ a.jsx(
|
|
1044
1044
|
he,
|
|
1045
1045
|
{
|
|
1046
1046
|
className: ({ isActive: u }) => Z({ isActive: u }),
|
|
@@ -1051,27 +1051,27 @@ const un = G("Sun", [
|
|
|
1051
1051
|
}, vn = ({
|
|
1052
1052
|
category: t
|
|
1053
1053
|
}) => {
|
|
1054
|
-
const { activeAnchor: e } = ge(), n = St(), r = B(),
|
|
1054
|
+
const { activeAnchor: e } = ge(), n = St(), r = B(), s = t.collapsible ?? !0, [o, p] = tt({
|
|
1055
1055
|
item: t,
|
|
1056
1056
|
path: (n == null ? void 0 : n.path) ?? "",
|
|
1057
|
-
defaultOpen: () => !
|
|
1057
|
+
defaultOpen: () => !s || t.expanded || ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
|
|
1058
1058
|
});
|
|
1059
|
-
return /* @__PURE__ */
|
|
1059
|
+
return /* @__PURE__ */ a.jsxs(
|
|
1060
1060
|
Ke,
|
|
1061
1061
|
{
|
|
1062
1062
|
open: o,
|
|
1063
|
-
onOpenChange: () =>
|
|
1063
|
+
onOpenChange: () => p((v) => !v),
|
|
1064
1064
|
children: [
|
|
1065
|
-
t.label.length > 0 ? /* @__PURE__ */
|
|
1065
|
+
t.label.length > 0 ? /* @__PURE__ */ a.jsx(Be, { asChild: s, disabled: !s, children: /* @__PURE__ */ a.jsxs(
|
|
1066
1066
|
"h5",
|
|
1067
1067
|
{
|
|
1068
1068
|
className: te(
|
|
1069
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]",
|
|
1070
|
-
|
|
1070
|
+
s ? "hover:bg-accent" : "cursor-auto"
|
|
1071
1071
|
),
|
|
1072
1072
|
children: [
|
|
1073
1073
|
t.label,
|
|
1074
|
-
|
|
1074
|
+
s && /* @__PURE__ */ a.jsx(
|
|
1075
1075
|
Je,
|
|
1076
1076
|
{
|
|
1077
1077
|
className: "group-data-[state=open]:rotate-90 transition",
|
|
@@ -1081,71 +1081,73 @@ const un = G("Sun", [
|
|
|
1081
1081
|
]
|
|
1082
1082
|
}
|
|
1083
1083
|
) }) : "Endpoints",
|
|
1084
|
-
/* @__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(
|
|
1085
1085
|
nt,
|
|
1086
1086
|
{
|
|
1087
1087
|
category: t,
|
|
1088
|
-
item:
|
|
1088
|
+
item: v,
|
|
1089
1089
|
activeAnchor: e,
|
|
1090
1090
|
currentTopNavItem: n,
|
|
1091
1091
|
basePath: Fe(n == null ? void 0 : n.path, t.path)
|
|
1092
1092
|
},
|
|
1093
|
-
fe(
|
|
1093
|
+
fe(v) ? v.path + v.label : v.href
|
|
1094
1094
|
)) }) })
|
|
1095
1095
|
]
|
|
1096
1096
|
},
|
|
1097
1097
|
t.label
|
|
1098
1098
|
);
|
|
1099
|
-
}, mn = kt(({ children:
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
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 = () => {
|
|
1111
1113
|
const t = ne(null), e = bt();
|
|
1112
|
-
return /* @__PURE__ */
|
|
1114
|
+
return /* @__PURE__ */ a.jsx(
|
|
1113
1115
|
mn,
|
|
1114
1116
|
{
|
|
1115
1117
|
ref: t,
|
|
1116
1118
|
pushMainContent: e.data.items.length > 0,
|
|
1117
|
-
children: e.data.items.map((n) => /* @__PURE__ */
|
|
1119
|
+
children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(vn, { category: n }, n.label))
|
|
1118
1120
|
}
|
|
1119
1121
|
);
|
|
1120
1122
|
}, ke = ({ children: t }) => {
|
|
1121
|
-
const e = B(), { setActiveAnchor: n } = ge(), { meta: r, handleAuthenticationResponse:
|
|
1123
|
+
const e = B(), { setActiveAnchor: n } = ge(), { meta: r, handleAuthenticationResponse: s } = me();
|
|
1122
1124
|
K(() => {
|
|
1123
|
-
|
|
1124
|
-
}, [
|
|
1125
|
+
s(e);
|
|
1126
|
+
}, [s, e]), hn(), fn();
|
|
1125
1127
|
const o = ne(e.pathname);
|
|
1126
1128
|
return K(() => {
|
|
1127
1129
|
e.pathname !== o.current && n(""), o.current = e.pathname;
|
|
1128
|
-
}, [e.pathname, n]), /* @__PURE__ */
|
|
1129
|
-
/* @__PURE__ */
|
|
1130
|
-
/* @__PURE__ */
|
|
1131
|
-
(r == null ? void 0 : r.description) && /* @__PURE__ */
|
|
1132
|
-
(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 })
|
|
1133
1135
|
] }),
|
|
1134
|
-
/* @__PURE__ */
|
|
1135
|
-
/* @__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(
|
|
1136
1138
|
Ue,
|
|
1137
1139
|
{
|
|
1138
|
-
fallback: /* @__PURE__ */
|
|
1140
|
+
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(_t, {}) }),
|
|
1139
1141
|
children: [
|
|
1140
|
-
/* @__PURE__ */
|
|
1141
|
-
/* @__PURE__ */
|
|
1142
|
+
/* @__PURE__ */ a.jsx(gn, {}),
|
|
1143
|
+
/* @__PURE__ */ a.jsx(
|
|
1142
1144
|
"main",
|
|
1143
1145
|
{
|
|
1144
1146
|
className: `dark:border-white/10 translate-x-0
|
|
1145
1147
|
lg:overflow-visible
|
|
1146
1148
|
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
1147
1149
|
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
1148
|
-
children: t ?? /* @__PURE__ */
|
|
1150
|
+
children: t ?? /* @__PURE__ */ a.jsx(Et, {})
|
|
1149
1151
|
}
|
|
1150
1152
|
)
|
|
1151
1153
|
]
|
|
@@ -1161,13 +1163,13 @@ function yn({ plugins: t }) {
|
|
|
1161
1163
|
return wt([
|
|
1162
1164
|
{
|
|
1163
1165
|
path: "/",
|
|
1164
|
-
element: /* @__PURE__ */
|
|
1165
|
-
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" }) }),
|
|
1166
1168
|
children: n
|
|
1167
1169
|
}
|
|
1168
1170
|
]);
|
|
1169
1171
|
}, [t]);
|
|
1170
|
-
return /* @__PURE__ */
|
|
1172
|
+
return /* @__PURE__ */ a.jsx(jt, { router: e });
|
|
1171
1173
|
}
|
|
1172
1174
|
const xn = (t) => {
|
|
1173
1175
|
const e = ee(
|
|
@@ -1179,11 +1181,11 @@ const xn = (t) => {
|
|
|
1179
1181
|
), r = ee(() => new rn(t), [t]);
|
|
1180
1182
|
return K(() => {
|
|
1181
1183
|
r.initialize();
|
|
1182
|
-
}, [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(
|
|
1183
1185
|
Ue,
|
|
1184
1186
|
{
|
|
1185
|
-
fallback: /* @__PURE__ */
|
|
1186
|
-
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 })
|
|
1187
1189
|
}
|
|
1188
1190
|
) }) }) }) }) }) }) });
|
|
1189
1191
|
}, Sn = We(xn);
|