zudoku 0.1.1-dev.45 → 0.1.1-dev.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -22
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListView.d.ts +7 -0
- package/dist/lib/plugins/openapi/SchemaListView.js +43 -0
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -0
- package/lib/{Spinner-2oXmSf81.js → Spinner-DEkC7JSn.js} +2089 -1986
- package/lib/zudoku.components.js +507 -608
- package/lib/zudoku.plugins.js +4993 -4892
- package/package.json +1 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +7 -121
- package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +229 -0
package/lib/zudoku.components.js
CHANGED
|
@@ -1,154 +1,153 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var st = Object.defineProperty;
|
|
2
|
+
var xe = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
set _(
|
|
10
|
-
P(t, e,
|
|
5
|
+
var at = (t, e, n) => e in t ? st(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
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)), N = (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
|
+
var X = (t, e, n, r) => ({
|
|
9
|
+
set _(a) {
|
|
10
|
+
P(t, e, a, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return i(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
var L, Ke, en = (Ke = class extends We {
|
|
16
|
+
import { S as Ve, h as He, Q as it, n as C, 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 ve, l as s, N as he, q as mt, t as vt, 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 Ct, W as Nt, X as Mt, Y as Tt } from "./Spinner-DEkC7JSn.js";
|
|
17
|
+
import { _ as An, Z as Dn } from "./Spinner-DEkC7JSn.js";
|
|
18
|
+
import $, { memo as We, createContext as Rt, useEffect as K, useRef as ne, useState as Lt, forwardRef as It, Suspense as Ue, useMemo as ee } from "react";
|
|
19
|
+
var T, ke, kt = (ke = class extends Ve {
|
|
21
20
|
constructor(e = {}) {
|
|
22
21
|
super();
|
|
23
|
-
|
|
24
|
-
this.config = e, P(this,
|
|
22
|
+
N(this, T);
|
|
23
|
+
this.config = e, P(this, T, /* @__PURE__ */ new Map());
|
|
25
24
|
}
|
|
26
25
|
build(e, n, r) {
|
|
27
|
-
const
|
|
28
|
-
let
|
|
29
|
-
return
|
|
26
|
+
const a = n.queryKey, o = n.queryHash ?? He(a, n);
|
|
27
|
+
let l = this.get(o);
|
|
28
|
+
return l || (l = new it({
|
|
30
29
|
cache: this,
|
|
31
|
-
queryKey:
|
|
32
|
-
queryHash:
|
|
30
|
+
queryKey: a,
|
|
31
|
+
queryHash: o,
|
|
33
32
|
options: e.defaultQueryOptions(n),
|
|
34
33
|
state: r,
|
|
35
|
-
defaultOptions: e.getQueryDefaults(
|
|
36
|
-
}), this.add(
|
|
34
|
+
defaultOptions: e.getQueryDefaults(a)
|
|
35
|
+
}), this.add(l)), l;
|
|
37
36
|
}
|
|
38
37
|
add(e) {
|
|
39
|
-
|
|
38
|
+
i(this, T).has(e.queryHash) || (i(this, T).set(e.queryHash, e), this.notify({
|
|
40
39
|
type: "added",
|
|
41
40
|
query: e
|
|
42
41
|
}));
|
|
43
42
|
}
|
|
44
43
|
remove(e) {
|
|
45
|
-
const n =
|
|
46
|
-
n && (e.destroy(), n === e &&
|
|
44
|
+
const n = i(this, T).get(e.queryHash);
|
|
45
|
+
n && (e.destroy(), n === e && i(this, T).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
47
46
|
}
|
|
48
47
|
clear() {
|
|
49
|
-
|
|
48
|
+
C.batch(() => {
|
|
50
49
|
this.getAll().forEach((e) => {
|
|
51
50
|
this.remove(e);
|
|
52
51
|
});
|
|
53
52
|
});
|
|
54
53
|
}
|
|
55
54
|
get(e) {
|
|
56
|
-
return
|
|
55
|
+
return i(this, T).get(e);
|
|
57
56
|
}
|
|
58
57
|
getAll() {
|
|
59
|
-
return [...
|
|
58
|
+
return [...i(this, T).values()];
|
|
60
59
|
}
|
|
61
60
|
find(e) {
|
|
62
61
|
const n = { exact: !0, ...e };
|
|
63
62
|
return this.getAll().find(
|
|
64
|
-
(r) =>
|
|
63
|
+
(r) => be(n, r)
|
|
65
64
|
);
|
|
66
65
|
}
|
|
67
66
|
findAll(e = {}) {
|
|
68
67
|
const n = this.getAll();
|
|
69
|
-
return Object.keys(e).length > 0 ? n.filter((r) =>
|
|
68
|
+
return Object.keys(e).length > 0 ? n.filter((r) => be(e, r)) : n;
|
|
70
69
|
}
|
|
71
70
|
notify(e) {
|
|
72
|
-
|
|
71
|
+
C.batch(() => {
|
|
73
72
|
this.listeners.forEach((n) => {
|
|
74
73
|
n(e);
|
|
75
74
|
});
|
|
76
75
|
});
|
|
77
76
|
}
|
|
78
77
|
onFocus() {
|
|
79
|
-
|
|
78
|
+
C.batch(() => {
|
|
80
79
|
this.getAll().forEach((e) => {
|
|
81
80
|
e.onFocus();
|
|
82
81
|
});
|
|
83
82
|
});
|
|
84
83
|
}
|
|
85
84
|
onOnline() {
|
|
86
|
-
|
|
85
|
+
C.batch(() => {
|
|
87
86
|
this.getAll().forEach((e) => {
|
|
88
87
|
e.onOnline();
|
|
89
88
|
});
|
|
90
89
|
});
|
|
91
90
|
}
|
|
92
|
-
},
|
|
91
|
+
}, T = new WeakMap(), ke), D, U, qe, qt = (qe = class extends Ve {
|
|
93
92
|
constructor(e = {}) {
|
|
94
93
|
super();
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
this.config = e, P(this,
|
|
94
|
+
N(this, D);
|
|
95
|
+
N(this, U);
|
|
96
|
+
this.config = e, P(this, D, /* @__PURE__ */ new Map()), P(this, U, Date.now());
|
|
98
97
|
}
|
|
99
98
|
build(e, n, r) {
|
|
100
|
-
const
|
|
99
|
+
const a = new ot({
|
|
101
100
|
mutationCache: this,
|
|
102
|
-
mutationId: ++
|
|
101
|
+
mutationId: ++X(this, U)._,
|
|
103
102
|
options: e.defaultMutationOptions(n),
|
|
104
103
|
state: r
|
|
105
104
|
});
|
|
106
|
-
return this.add(
|
|
105
|
+
return this.add(a), a;
|
|
107
106
|
}
|
|
108
107
|
add(e) {
|
|
109
|
-
const n =
|
|
110
|
-
r.push(e),
|
|
108
|
+
const n = Y(e), r = i(this, D).get(n) ?? [];
|
|
109
|
+
r.push(e), i(this, D).set(n, r), this.notify({ type: "added", mutation: e });
|
|
111
110
|
}
|
|
112
111
|
remove(e) {
|
|
113
112
|
var r;
|
|
114
|
-
const n =
|
|
115
|
-
if (
|
|
116
|
-
const
|
|
117
|
-
|
|
113
|
+
const n = Y(e);
|
|
114
|
+
if (i(this, D).has(n)) {
|
|
115
|
+
const a = (r = i(this, D).get(n)) == null ? void 0 : r.filter((o) => o !== e);
|
|
116
|
+
a && (a.length === 0 ? i(this, D).delete(n) : i(this, D).set(n, a));
|
|
118
117
|
}
|
|
119
118
|
this.notify({ type: "removed", mutation: e });
|
|
120
119
|
}
|
|
121
120
|
canRun(e) {
|
|
122
121
|
var r;
|
|
123
|
-
const n = (r =
|
|
122
|
+
const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
|
|
124
123
|
return !n || n === e;
|
|
125
124
|
}
|
|
126
125
|
runNext(e) {
|
|
127
126
|
var r;
|
|
128
|
-
const n = (r =
|
|
127
|
+
const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
|
|
129
128
|
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
130
129
|
}
|
|
131
130
|
clear() {
|
|
132
|
-
|
|
131
|
+
C.batch(() => {
|
|
133
132
|
this.getAll().forEach((e) => {
|
|
134
133
|
this.remove(e);
|
|
135
134
|
});
|
|
136
135
|
});
|
|
137
136
|
}
|
|
138
137
|
getAll() {
|
|
139
|
-
return [...
|
|
138
|
+
return [...i(this, D).values()].flat();
|
|
140
139
|
}
|
|
141
140
|
find(e) {
|
|
142
141
|
const n = { exact: !0, ...e };
|
|
143
142
|
return this.getAll().find(
|
|
144
|
-
(r) =>
|
|
143
|
+
(r) => Oe(n, r)
|
|
145
144
|
);
|
|
146
145
|
}
|
|
147
146
|
findAll(e = {}) {
|
|
148
|
-
return this.getAll().filter((n) =>
|
|
147
|
+
return this.getAll().filter((n) => Oe(e, n));
|
|
149
148
|
}
|
|
150
149
|
notify(e) {
|
|
151
|
-
|
|
150
|
+
C.batch(() => {
|
|
152
151
|
this.listeners.forEach((n) => {
|
|
153
152
|
n(e);
|
|
154
153
|
});
|
|
@@ -156,75 +155,75 @@ var L, Ke, en = (Ke = class extends We {
|
|
|
156
155
|
}
|
|
157
156
|
resumePausedMutations() {
|
|
158
157
|
const e = this.getAll().filter((n) => n.state.isPaused);
|
|
159
|
-
return
|
|
158
|
+
return C.batch(
|
|
160
159
|
() => Promise.all(
|
|
161
|
-
e.map((n) => n.continue().catch(
|
|
160
|
+
e.map((n) => n.continue().catch(L))
|
|
162
161
|
)
|
|
163
162
|
);
|
|
164
163
|
}
|
|
165
|
-
},
|
|
166
|
-
function
|
|
164
|
+
}, D = new WeakMap(), U = new WeakMap(), qe);
|
|
165
|
+
function Y(t) {
|
|
167
166
|
var e;
|
|
168
167
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
169
168
|
}
|
|
170
|
-
function
|
|
169
|
+
function Qt(t) {
|
|
171
170
|
return {
|
|
172
171
|
onFetch: (e, n) => {
|
|
173
172
|
const r = async () => {
|
|
174
|
-
var
|
|
175
|
-
const
|
|
176
|
-
let
|
|
177
|
-
const
|
|
173
|
+
var S, g, O, M, R;
|
|
174
|
+
const a = e.options, o = (O = (g = (S = e.fetchOptions) == null ? void 0 : S.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : O.direction, l = ((M = e.state.data) == null ? void 0 : M.pages) || [], v = ((R = e.state.data) == null ? void 0 : R.pageParams) || [], E = { pages: [], pageParams: [] };
|
|
175
|
+
let x = !1;
|
|
176
|
+
const u = (h) => {
|
|
178
177
|
Object.defineProperty(h, "signal", {
|
|
179
178
|
enumerable: !0,
|
|
180
|
-
get: () => (e.signal.aborted ?
|
|
181
|
-
|
|
179
|
+
get: () => (e.signal.aborted ? x = !0 : e.signal.addEventListener("abort", () => {
|
|
180
|
+
x = !0;
|
|
182
181
|
}), e.signal)
|
|
183
182
|
});
|
|
184
|
-
}, d =
|
|
185
|
-
if (
|
|
183
|
+
}, d = ut(e.options, e.fetchOptions), f = async (h, c, y) => {
|
|
184
|
+
if (x)
|
|
186
185
|
return Promise.reject();
|
|
187
|
-
if (
|
|
186
|
+
if (c == null && h.pages.length)
|
|
188
187
|
return Promise.resolve(h);
|
|
189
|
-
const
|
|
188
|
+
const p = {
|
|
190
189
|
queryKey: e.queryKey,
|
|
191
|
-
pageParam:
|
|
192
|
-
direction:
|
|
190
|
+
pageParam: c,
|
|
191
|
+
direction: y ? "backward" : "forward",
|
|
193
192
|
meta: e.options.meta
|
|
194
193
|
};
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
), { maxPages:
|
|
194
|
+
u(p);
|
|
195
|
+
const _ = await d(
|
|
196
|
+
p
|
|
197
|
+
), { maxPages: A } = e.options, w = y ? ct : lt;
|
|
199
198
|
return {
|
|
200
|
-
pages:
|
|
201
|
-
pageParams:
|
|
199
|
+
pages: w(h.pages, _, A),
|
|
200
|
+
pageParams: w(h.pageParams, c, A)
|
|
202
201
|
};
|
|
203
202
|
};
|
|
204
|
-
let
|
|
205
|
-
if (
|
|
206
|
-
const h =
|
|
207
|
-
pages:
|
|
203
|
+
let m;
|
|
204
|
+
if (o && l.length) {
|
|
205
|
+
const h = o === "backward", c = h ? Vt : Pe, y = {
|
|
206
|
+
pages: l,
|
|
208
207
|
pageParams: v
|
|
209
|
-
},
|
|
210
|
-
|
|
208
|
+
}, p = c(a, y);
|
|
209
|
+
m = await f(y, p, h);
|
|
211
210
|
} else {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
v[0] ??
|
|
211
|
+
m = await f(
|
|
212
|
+
E,
|
|
213
|
+
v[0] ?? a.initialPageParam
|
|
215
214
|
);
|
|
216
|
-
const h = t ??
|
|
217
|
-
for (let
|
|
218
|
-
const
|
|
219
|
-
|
|
215
|
+
const h = t ?? l.length;
|
|
216
|
+
for (let c = 1; c < h; c++) {
|
|
217
|
+
const y = Pe(a, m);
|
|
218
|
+
m = await f(m, y);
|
|
220
219
|
}
|
|
221
220
|
}
|
|
222
|
-
return
|
|
221
|
+
return m;
|
|
223
222
|
};
|
|
224
223
|
e.options.persister ? e.fetchFn = () => {
|
|
225
|
-
var
|
|
226
|
-
return (
|
|
227
|
-
|
|
224
|
+
var a, o;
|
|
225
|
+
return (o = (a = e.options).persister) == null ? void 0 : o.call(
|
|
226
|
+
a,
|
|
228
227
|
r,
|
|
229
228
|
{
|
|
230
229
|
queryKey: e.queryKey,
|
|
@@ -237,7 +236,7 @@ function nn(t) {
|
|
|
237
236
|
}
|
|
238
237
|
};
|
|
239
238
|
}
|
|
240
|
-
function
|
|
239
|
+
function Pe(t, { pages: e, pageParams: n }) {
|
|
241
240
|
const r = e.length - 1;
|
|
242
241
|
return t.getNextPageParam(
|
|
243
242
|
e[r],
|
|
@@ -246,7 +245,7 @@ function Me(t, { pages: e, pageParams: n }) {
|
|
|
246
245
|
n
|
|
247
246
|
);
|
|
248
247
|
}
|
|
249
|
-
function
|
|
248
|
+
function Vt(t, { pages: e, pageParams: n }) {
|
|
250
249
|
var r;
|
|
251
250
|
return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
|
|
252
251
|
t,
|
|
@@ -256,65 +255,65 @@ function rn(t, { pages: e, pageParams: n }) {
|
|
|
256
255
|
n
|
|
257
256
|
);
|
|
258
257
|
}
|
|
259
|
-
var
|
|
258
|
+
var b, I, k, Q, V, q, H, F, Qe, Ht = (Qe = class {
|
|
260
259
|
constructor(t = {}) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
P(this,
|
|
260
|
+
N(this, b);
|
|
261
|
+
N(this, I);
|
|
262
|
+
N(this, k);
|
|
263
|
+
N(this, Q);
|
|
264
|
+
N(this, V);
|
|
265
|
+
N(this, q);
|
|
266
|
+
N(this, H);
|
|
267
|
+
N(this, F);
|
|
268
|
+
P(this, b, t.queryCache || new kt()), P(this, I, t.mutationCache || new qt()), P(this, k, t.defaultOptions || {}), P(this, Q, /* @__PURE__ */ new Map()), P(this, V, /* @__PURE__ */ new Map()), P(this, q, 0);
|
|
270
269
|
}
|
|
271
270
|
mount() {
|
|
272
|
-
|
|
273
|
-
t && (await this.resumePausedMutations(),
|
|
274
|
-
})), P(this,
|
|
275
|
-
t && (await this.resumePausedMutations(),
|
|
271
|
+
X(this, q)._++, i(this, q) === 1 && (P(this, H, dt.subscribe(async (t) => {
|
|
272
|
+
t && (await this.resumePausedMutations(), i(this, b).onFocus());
|
|
273
|
+
})), P(this, F, _e.subscribe(async (t) => {
|
|
274
|
+
t && (await this.resumePausedMutations(), i(this, b).onOnline());
|
|
276
275
|
})));
|
|
277
276
|
}
|
|
278
277
|
unmount() {
|
|
279
278
|
var t, e;
|
|
280
|
-
|
|
279
|
+
X(this, q)._--, i(this, q) === 0 && ((t = i(this, H)) == null || t.call(this), P(this, H, void 0), (e = i(this, F)) == null || e.call(this), P(this, F, void 0));
|
|
281
280
|
}
|
|
282
281
|
isFetching(t) {
|
|
283
|
-
return
|
|
282
|
+
return i(this, b).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
284
283
|
}
|
|
285
284
|
isMutating(t) {
|
|
286
|
-
return
|
|
285
|
+
return i(this, I).findAll({ ...t, status: "pending" }).length;
|
|
287
286
|
}
|
|
288
287
|
getQueryData(t) {
|
|
289
288
|
var n;
|
|
290
289
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
291
|
-
return (n =
|
|
290
|
+
return (n = i(this, b).get(e.queryHash)) == null ? void 0 : n.state.data;
|
|
292
291
|
}
|
|
293
292
|
ensureQueryData(t) {
|
|
294
293
|
const e = this.getQueryData(t.queryKey);
|
|
295
294
|
if (e === void 0)
|
|
296
295
|
return this.fetchQuery(t);
|
|
297
296
|
{
|
|
298
|
-
const n = this.defaultQueryOptions(t), r =
|
|
299
|
-
return t.revalidateIfStale && r.isStaleByTime(
|
|
297
|
+
const n = this.defaultQueryOptions(t), r = i(this, b).build(this, n);
|
|
298
|
+
return t.revalidateIfStale && r.isStaleByTime(Ee(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
|
|
300
299
|
}
|
|
301
300
|
}
|
|
302
301
|
getQueriesData(t) {
|
|
303
|
-
return
|
|
302
|
+
return i(this, b).findAll(t).map(({ queryKey: e, state: n }) => {
|
|
304
303
|
const r = n.data;
|
|
305
304
|
return [e, r];
|
|
306
305
|
});
|
|
307
306
|
}
|
|
308
307
|
setQueryData(t, e, n) {
|
|
309
|
-
const r = this.defaultQueryOptions({ queryKey: t }),
|
|
308
|
+
const r = this.defaultQueryOptions({ queryKey: t }), a = i(this, b).get(
|
|
310
309
|
r.queryHash
|
|
311
|
-
),
|
|
312
|
-
if (
|
|
313
|
-
return
|
|
310
|
+
), o = a == null ? void 0 : a.state.data, l = ht(e, o);
|
|
311
|
+
if (l !== void 0)
|
|
312
|
+
return i(this, b).build(this, r).setData(l, { ...n, manual: !0 });
|
|
314
313
|
}
|
|
315
314
|
setQueriesData(t, e, n) {
|
|
316
|
-
return
|
|
317
|
-
() =>
|
|
315
|
+
return C.batch(
|
|
316
|
+
() => i(this, b).findAll(t).map(({ queryKey: r }) => [
|
|
318
317
|
r,
|
|
319
318
|
this.setQueryData(r, e, n)
|
|
320
319
|
])
|
|
@@ -323,34 +322,34 @@ var O, k, q, V, F, Q, H, K, ze, sn = (ze = class {
|
|
|
323
322
|
getQueryState(t) {
|
|
324
323
|
var n;
|
|
325
324
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
326
|
-
return (n =
|
|
325
|
+
return (n = i(this, b).get(e.queryHash)) == null ? void 0 : n.state;
|
|
327
326
|
}
|
|
328
327
|
removeQueries(t) {
|
|
329
|
-
const e =
|
|
330
|
-
|
|
328
|
+
const e = i(this, b);
|
|
329
|
+
C.batch(() => {
|
|
331
330
|
e.findAll(t).forEach((n) => {
|
|
332
331
|
e.remove(n);
|
|
333
332
|
});
|
|
334
333
|
});
|
|
335
334
|
}
|
|
336
335
|
resetQueries(t, e) {
|
|
337
|
-
const n =
|
|
336
|
+
const n = i(this, b), r = {
|
|
338
337
|
type: "active",
|
|
339
338
|
...t
|
|
340
339
|
};
|
|
341
|
-
return
|
|
342
|
-
|
|
340
|
+
return C.batch(() => (n.findAll(t).forEach((a) => {
|
|
341
|
+
a.reset();
|
|
343
342
|
}), this.refetchQueries(r, e)));
|
|
344
343
|
}
|
|
345
344
|
cancelQueries(t = {}, e = {}) {
|
|
346
|
-
const n = { revert: !0, ...e }, r =
|
|
347
|
-
() =>
|
|
345
|
+
const n = { revert: !0, ...e }, r = C.batch(
|
|
346
|
+
() => i(this, b).findAll(t).map((a) => a.cancel(n))
|
|
348
347
|
);
|
|
349
|
-
return Promise.all(r).then(
|
|
348
|
+
return Promise.all(r).then(L).catch(L);
|
|
350
349
|
}
|
|
351
350
|
invalidateQueries(t = {}, e = {}) {
|
|
352
|
-
return
|
|
353
|
-
if (
|
|
351
|
+
return C.batch(() => {
|
|
352
|
+
if (i(this, b).findAll(t).forEach((r) => {
|
|
354
353
|
r.invalidate();
|
|
355
354
|
}), t.refetchType === "none")
|
|
356
355
|
return Promise.resolve();
|
|
@@ -365,114 +364,114 @@ var O, k, q, V, F, Q, H, K, ze, sn = (ze = class {
|
|
|
365
364
|
const n = {
|
|
366
365
|
...e,
|
|
367
366
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
368
|
-
}, r =
|
|
369
|
-
() =>
|
|
370
|
-
let
|
|
371
|
-
return n.throwOnError || (
|
|
367
|
+
}, r = C.batch(
|
|
368
|
+
() => i(this, b).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
369
|
+
let o = a.fetch(void 0, n);
|
|
370
|
+
return n.throwOnError || (o = o.catch(L)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
372
371
|
})
|
|
373
372
|
);
|
|
374
|
-
return Promise.all(r).then(
|
|
373
|
+
return Promise.all(r).then(L);
|
|
375
374
|
}
|
|
376
375
|
fetchQuery(t) {
|
|
377
376
|
const e = this.defaultQueryOptions(t);
|
|
378
377
|
e.retry === void 0 && (e.retry = !1);
|
|
379
|
-
const n =
|
|
378
|
+
const n = i(this, b).build(this, e);
|
|
380
379
|
return n.isStaleByTime(
|
|
381
|
-
|
|
380
|
+
Ee(e.staleTime, n)
|
|
382
381
|
) ? n.fetch(e) : Promise.resolve(n.state.data);
|
|
383
382
|
}
|
|
384
383
|
prefetchQuery(t) {
|
|
385
|
-
return this.fetchQuery(t).then(
|
|
384
|
+
return this.fetchQuery(t).then(L).catch(L);
|
|
386
385
|
}
|
|
387
386
|
fetchInfiniteQuery(t) {
|
|
388
|
-
return t.behavior =
|
|
387
|
+
return t.behavior = Qt(t.pages), this.fetchQuery(t);
|
|
389
388
|
}
|
|
390
389
|
prefetchInfiniteQuery(t) {
|
|
391
|
-
return this.fetchInfiniteQuery(t).then(
|
|
390
|
+
return this.fetchInfiniteQuery(t).then(L).catch(L);
|
|
392
391
|
}
|
|
393
392
|
resumePausedMutations() {
|
|
394
|
-
return
|
|
393
|
+
return _e.isOnline() ? i(this, I).resumePausedMutations() : Promise.resolve();
|
|
395
394
|
}
|
|
396
395
|
getQueryCache() {
|
|
397
|
-
return
|
|
396
|
+
return i(this, b);
|
|
398
397
|
}
|
|
399
398
|
getMutationCache() {
|
|
400
|
-
return
|
|
399
|
+
return i(this, I);
|
|
401
400
|
}
|
|
402
401
|
getDefaultOptions() {
|
|
403
|
-
return
|
|
402
|
+
return i(this, k);
|
|
404
403
|
}
|
|
405
404
|
setDefaultOptions(t) {
|
|
406
|
-
P(this,
|
|
405
|
+
P(this, k, t);
|
|
407
406
|
}
|
|
408
407
|
setQueryDefaults(t, e) {
|
|
409
|
-
|
|
408
|
+
i(this, Q).set(we(t), {
|
|
410
409
|
queryKey: t,
|
|
411
410
|
defaultOptions: e
|
|
412
411
|
});
|
|
413
412
|
}
|
|
414
413
|
getQueryDefaults(t) {
|
|
415
|
-
const e = [...
|
|
414
|
+
const e = [...i(this, Q).values()];
|
|
416
415
|
let n = {};
|
|
417
416
|
return e.forEach((r) => {
|
|
418
|
-
|
|
417
|
+
je(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
419
418
|
}), n;
|
|
420
419
|
}
|
|
421
420
|
setMutationDefaults(t, e) {
|
|
422
|
-
|
|
421
|
+
i(this, V).set(we(t), {
|
|
423
422
|
mutationKey: t,
|
|
424
423
|
defaultOptions: e
|
|
425
424
|
});
|
|
426
425
|
}
|
|
427
426
|
getMutationDefaults(t) {
|
|
428
|
-
const e = [...
|
|
427
|
+
const e = [...i(this, V).values()];
|
|
429
428
|
let n = {};
|
|
430
429
|
return e.forEach((r) => {
|
|
431
|
-
|
|
430
|
+
je(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
432
431
|
}), n;
|
|
433
432
|
}
|
|
434
433
|
defaultQueryOptions(t) {
|
|
435
434
|
if (t._defaulted)
|
|
436
435
|
return t;
|
|
437
436
|
const e = {
|
|
438
|
-
...
|
|
437
|
+
...i(this, k).queries,
|
|
439
438
|
...this.getQueryDefaults(t.queryKey),
|
|
440
439
|
...t,
|
|
441
440
|
_defaulted: !0
|
|
442
441
|
};
|
|
443
|
-
return e.queryHash || (e.queryHash =
|
|
442
|
+
return e.queryHash || (e.queryHash = He(
|
|
444
443
|
e.queryKey,
|
|
445
444
|
e
|
|
446
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn ===
|
|
445
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === ft && (e.enabled = !1), e;
|
|
447
446
|
}
|
|
448
447
|
defaultMutationOptions(t) {
|
|
449
448
|
return t != null && t._defaulted ? t : {
|
|
450
|
-
...
|
|
449
|
+
...i(this, k).mutations,
|
|
451
450
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
452
451
|
...t,
|
|
453
452
|
_defaulted: !0
|
|
454
453
|
};
|
|
455
454
|
}
|
|
456
455
|
clear() {
|
|
457
|
-
|
|
456
|
+
i(this, b).clear(), i(this, I).clear();
|
|
458
457
|
}
|
|
459
|
-
},
|
|
460
|
-
const
|
|
458
|
+
}, b = new WeakMap(), I = new WeakMap(), k = 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
|
+
const Ae = (t) => {
|
|
461
460
|
let e;
|
|
462
|
-
const n = /* @__PURE__ */ new Set(), r = (
|
|
463
|
-
const f = typeof
|
|
461
|
+
const n = /* @__PURE__ */ new Set(), r = (u, d) => {
|
|
462
|
+
const f = typeof u == "function" ? u(e) : u;
|
|
464
463
|
if (!Object.is(f, e)) {
|
|
465
|
-
const
|
|
466
|
-
e = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, e, f), n.forEach((
|
|
464
|
+
const m = e;
|
|
465
|
+
e = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, e, f), n.forEach((S) => S(e, m));
|
|
467
466
|
}
|
|
468
|
-
},
|
|
469
|
-
(
|
|
467
|
+
}, a = () => e, E = { setState: r, getState: a, getInitialState: () => x, subscribe: (u) => (n.add(u), () => n.delete(u)), destroy: () => {
|
|
468
|
+
(Ft ? "production" : void 0) !== "production" && console.warn(
|
|
470
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."
|
|
471
470
|
), n.clear();
|
|
472
|
-
} },
|
|
473
|
-
return
|
|
474
|
-
},
|
|
475
|
-
var
|
|
471
|
+
} }, x = e = t(r, a, E);
|
|
472
|
+
return E;
|
|
473
|
+
}, Kt = (t) => t ? Ae(t) : Ae;
|
|
474
|
+
var pe = { exports: {} }, ue = {}, J = { exports: {} }, ce = {};
|
|
476
475
|
/**
|
|
477
476
|
* @license React
|
|
478
477
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -482,42 +481,42 @@ var me = { exports: {} }, le = {}, Z = { exports: {} }, ue = {};
|
|
|
482
481
|
* This source code is licensed under the MIT license found in the
|
|
483
482
|
* LICENSE file in the root directory of this source tree.
|
|
484
483
|
*/
|
|
485
|
-
var
|
|
486
|
-
function
|
|
487
|
-
if (
|
|
488
|
-
|
|
489
|
-
var t =
|
|
484
|
+
var De;
|
|
485
|
+
function Bt() {
|
|
486
|
+
if (De) return ce;
|
|
487
|
+
De = 1;
|
|
488
|
+
var t = $;
|
|
490
489
|
function e(d, f) {
|
|
491
490
|
return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
|
|
492
491
|
}
|
|
493
|
-
var n = typeof Object.is == "function" ? Object.is : e, r = t.useState,
|
|
492
|
+
var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, a = t.useEffect, o = t.useLayoutEffect, l = t.useDebugValue;
|
|
494
493
|
function v(d, f) {
|
|
495
|
-
var
|
|
496
|
-
return
|
|
497
|
-
|
|
498
|
-
}, [d,
|
|
499
|
-
return
|
|
500
|
-
|
|
494
|
+
var m = f(), S = r({ inst: { value: m, getSnapshot: f } }), g = S[0].inst, O = S[1];
|
|
495
|
+
return o(function() {
|
|
496
|
+
g.value = m, g.getSnapshot = f, E(g) && O({ inst: g });
|
|
497
|
+
}, [d, m, f]), a(function() {
|
|
498
|
+
return E(g) && O({ inst: g }), d(function() {
|
|
499
|
+
E(g) && O({ inst: g });
|
|
501
500
|
});
|
|
502
|
-
}, [d]),
|
|
501
|
+
}, [d]), l(m), m;
|
|
503
502
|
}
|
|
504
|
-
function
|
|
503
|
+
function E(d) {
|
|
505
504
|
var f = d.getSnapshot;
|
|
506
505
|
d = d.value;
|
|
507
506
|
try {
|
|
508
|
-
var
|
|
509
|
-
return !n(d,
|
|
507
|
+
var m = f();
|
|
508
|
+
return !n(d, m);
|
|
510
509
|
} catch {
|
|
511
510
|
return !0;
|
|
512
511
|
}
|
|
513
512
|
}
|
|
514
|
-
function
|
|
513
|
+
function x(d, f) {
|
|
515
514
|
return f();
|
|
516
515
|
}
|
|
517
|
-
var
|
|
518
|
-
return
|
|
516
|
+
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x : v;
|
|
517
|
+
return ce.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, ce;
|
|
519
518
|
}
|
|
520
|
-
var
|
|
519
|
+
var le = {};
|
|
521
520
|
/**
|
|
522
521
|
* @license React
|
|
523
522
|
* use-sync-external-store-shim.development.js
|
|
@@ -527,80 +526,80 @@ var de = {};
|
|
|
527
526
|
* This source code is licensed under the MIT license found in the
|
|
528
527
|
* LICENSE file in the root directory of this source tree.
|
|
529
528
|
*/
|
|
530
|
-
var
|
|
531
|
-
function
|
|
532
|
-
return
|
|
529
|
+
var Ce;
|
|
530
|
+
function zt() {
|
|
531
|
+
return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
|
|
533
532
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
534
|
-
var t =
|
|
533
|
+
var t = $, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
535
534
|
function n(h) {
|
|
536
535
|
{
|
|
537
|
-
for (var
|
|
538
|
-
|
|
539
|
-
r("error", h,
|
|
536
|
+
for (var c = arguments.length, y = new Array(c > 1 ? c - 1 : 0), p = 1; p < c; p++)
|
|
537
|
+
y[p - 1] = arguments[p];
|
|
538
|
+
r("error", h, y);
|
|
540
539
|
}
|
|
541
540
|
}
|
|
542
|
-
function r(h,
|
|
541
|
+
function r(h, c, y) {
|
|
543
542
|
{
|
|
544
|
-
var
|
|
545
|
-
|
|
546
|
-
var
|
|
547
|
-
return String(
|
|
543
|
+
var p = e.ReactDebugCurrentFrame, _ = p.getStackAddendum();
|
|
544
|
+
_ !== "" && (c += "%s", y = y.concat([_]));
|
|
545
|
+
var A = y.map(function(w) {
|
|
546
|
+
return String(w);
|
|
548
547
|
});
|
|
549
|
-
|
|
548
|
+
A.unshift("Warning: " + c), Function.prototype.apply.call(console[h], console, A);
|
|
550
549
|
}
|
|
551
550
|
}
|
|
552
|
-
function
|
|
553
|
-
return h ===
|
|
551
|
+
function a(h, c) {
|
|
552
|
+
return h === c && (h !== 0 || 1 / h === 1 / c) || h !== h && c !== c;
|
|
554
553
|
}
|
|
555
|
-
var
|
|
556
|
-
function f(h,
|
|
557
|
-
|
|
558
|
-
var
|
|
554
|
+
var o = typeof Object.is == "function" ? Object.is : a, l = t.useState, v = t.useEffect, E = t.useLayoutEffect, x = t.useDebugValue, u = !1, d = !1;
|
|
555
|
+
function f(h, c, y) {
|
|
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 p = c();
|
|
559
558
|
if (!d) {
|
|
560
|
-
var
|
|
561
|
-
|
|
559
|
+
var _ = c();
|
|
560
|
+
o(p, _) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
|
|
562
561
|
}
|
|
563
|
-
var
|
|
562
|
+
var A = l({
|
|
564
563
|
inst: {
|
|
565
|
-
value:
|
|
566
|
-
getSnapshot:
|
|
564
|
+
value: p,
|
|
565
|
+
getSnapshot: c
|
|
567
566
|
}
|
|
568
|
-
}),
|
|
569
|
-
return
|
|
570
|
-
|
|
571
|
-
inst:
|
|
567
|
+
}), w = A[0].inst, z = A[1];
|
|
568
|
+
return E(function() {
|
|
569
|
+
w.value = p, w.getSnapshot = c, m(w) && z({
|
|
570
|
+
inst: w
|
|
572
571
|
});
|
|
573
|
-
}, [h,
|
|
574
|
-
|
|
575
|
-
inst:
|
|
572
|
+
}, [h, p, c]), v(function() {
|
|
573
|
+
m(w) && z({
|
|
574
|
+
inst: w
|
|
576
575
|
});
|
|
577
|
-
var
|
|
578
|
-
|
|
579
|
-
inst:
|
|
576
|
+
var re = function() {
|
|
577
|
+
m(w) && z({
|
|
578
|
+
inst: w
|
|
580
579
|
});
|
|
581
580
|
};
|
|
582
|
-
return h(
|
|
583
|
-
}, [h]),
|
|
581
|
+
return h(re);
|
|
582
|
+
}, [h]), x(p), p;
|
|
584
583
|
}
|
|
585
|
-
function
|
|
586
|
-
var
|
|
584
|
+
function m(h) {
|
|
585
|
+
var c = h.getSnapshot, y = h.value;
|
|
587
586
|
try {
|
|
588
|
-
var
|
|
589
|
-
return !
|
|
587
|
+
var p = c();
|
|
588
|
+
return !o(y, p);
|
|
590
589
|
} catch {
|
|
591
590
|
return !0;
|
|
592
591
|
}
|
|
593
592
|
}
|
|
594
|
-
function
|
|
595
|
-
return
|
|
593
|
+
function S(h, c, y) {
|
|
594
|
+
return c();
|
|
596
595
|
}
|
|
597
|
-
var
|
|
598
|
-
|
|
599
|
-
}()),
|
|
596
|
+
var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", O = !g, M = O ? S : f, R = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : M;
|
|
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
|
+
}()), le;
|
|
600
599
|
}
|
|
601
|
-
var
|
|
602
|
-
function
|
|
603
|
-
return
|
|
600
|
+
var Ne;
|
|
601
|
+
function Ge() {
|
|
602
|
+
return Ne || (Ne = 1, process.env.NODE_ENV === "production" ? J.exports = Bt() : J.exports = zt()), J.exports;
|
|
604
603
|
}
|
|
605
604
|
/**
|
|
606
605
|
* @license React
|
|
@@ -611,48 +610,48 @@ function Ye() {
|
|
|
611
610
|
* This source code is licensed under the MIT license found in the
|
|
612
611
|
* LICENSE file in the root directory of this source tree.
|
|
613
612
|
*/
|
|
614
|
-
var
|
|
615
|
-
function
|
|
616
|
-
if (
|
|
617
|
-
|
|
618
|
-
var t =
|
|
619
|
-
function n(
|
|
620
|
-
return
|
|
621
|
-
}
|
|
622
|
-
var r = typeof Object.is == "function" ? Object.is : n,
|
|
623
|
-
return
|
|
624
|
-
var
|
|
625
|
-
if (
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
} else
|
|
629
|
-
|
|
630
|
-
function
|
|
631
|
-
if (!
|
|
632
|
-
if (
|
|
633
|
-
var
|
|
634
|
-
if (
|
|
613
|
+
var Me;
|
|
614
|
+
function Wt() {
|
|
615
|
+
if (Me) return ue;
|
|
616
|
+
Me = 1;
|
|
617
|
+
var t = $, e = Ge();
|
|
618
|
+
function n(x, u) {
|
|
619
|
+
return x === u && (x !== 0 || 1 / x === 1 / u) || x !== x && u !== u;
|
|
620
|
+
}
|
|
621
|
+
var r = typeof Object.is == "function" ? Object.is : n, a = e.useSyncExternalStore, o = t.useRef, l = t.useEffect, v = t.useMemo, E = t.useDebugValue;
|
|
622
|
+
return ue.useSyncExternalStoreWithSelector = function(x, u, d, f, m) {
|
|
623
|
+
var S = o(null);
|
|
624
|
+
if (S.current === null) {
|
|
625
|
+
var g = { hasValue: !1, value: null };
|
|
626
|
+
S.current = g;
|
|
627
|
+
} else g = S.current;
|
|
628
|
+
S = v(function() {
|
|
629
|
+
function M(p) {
|
|
630
|
+
if (!R) {
|
|
631
|
+
if (R = !0, h = p, p = f(p), m !== void 0 && g.hasValue) {
|
|
632
|
+
var _ = g.value;
|
|
633
|
+
if (m(_, p)) return c = _;
|
|
635
634
|
}
|
|
636
|
-
return
|
|
635
|
+
return c = p;
|
|
637
636
|
}
|
|
638
|
-
if (
|
|
639
|
-
var
|
|
640
|
-
return
|
|
637
|
+
if (_ = c, r(h, p)) return _;
|
|
638
|
+
var A = f(p);
|
|
639
|
+
return m !== void 0 && m(_, A) ? _ : (h = p, c = A);
|
|
641
640
|
}
|
|
642
|
-
var
|
|
641
|
+
var R = !1, h, c, y = d === void 0 ? null : d;
|
|
643
642
|
return [function() {
|
|
644
|
-
return
|
|
645
|
-
},
|
|
646
|
-
return
|
|
643
|
+
return M(u());
|
|
644
|
+
}, y === null ? void 0 : function() {
|
|
645
|
+
return M(y());
|
|
647
646
|
}];
|
|
648
|
-
}, [
|
|
649
|
-
var
|
|
650
|
-
return
|
|
651
|
-
|
|
652
|
-
}, [
|
|
653
|
-
},
|
|
647
|
+
}, [u, d, f, m]);
|
|
648
|
+
var O = a(x, S[0], S[1]);
|
|
649
|
+
return l(function() {
|
|
650
|
+
g.hasValue = !0, g.value = O;
|
|
651
|
+
}, [O]), E(O), O;
|
|
652
|
+
}, ue;
|
|
654
653
|
}
|
|
655
|
-
var
|
|
654
|
+
var de = {};
|
|
656
655
|
/**
|
|
657
656
|
* @license React
|
|
658
657
|
* use-sync-external-store-shim/with-selector.development.js
|
|
@@ -662,131 +661,131 @@ var he = {};
|
|
|
662
661
|
* This source code is licensed under the MIT license found in the
|
|
663
662
|
* LICENSE file in the root directory of this source tree.
|
|
664
663
|
*/
|
|
665
|
-
var
|
|
666
|
-
function
|
|
667
|
-
return
|
|
664
|
+
var Te;
|
|
665
|
+
function Ut() {
|
|
666
|
+
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
668
667
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
669
|
-
var t =
|
|
670
|
-
function n(
|
|
671
|
-
return
|
|
668
|
+
var t = $, e = Ge();
|
|
669
|
+
function n(u, d) {
|
|
670
|
+
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
672
671
|
}
|
|
673
|
-
var r = typeof Object.is == "function" ? Object.is : n,
|
|
674
|
-
function
|
|
675
|
-
var
|
|
676
|
-
|
|
672
|
+
var r = typeof Object.is == "function" ? Object.is : n, a = e.useSyncExternalStore, o = t.useRef, l = t.useEffect, v = t.useMemo, E = t.useDebugValue;
|
|
673
|
+
function x(u, d, f, m, S) {
|
|
674
|
+
var g = o(null), O;
|
|
675
|
+
g.current === null ? (O = {
|
|
677
676
|
hasValue: !1,
|
|
678
677
|
value: null
|
|
679
|
-
},
|
|
680
|
-
var
|
|
681
|
-
var
|
|
682
|
-
if (!
|
|
683
|
-
|
|
684
|
-
var
|
|
685
|
-
if (
|
|
686
|
-
var
|
|
687
|
-
if (
|
|
688
|
-
return
|
|
678
|
+
}, g.current = O) : O = g.current;
|
|
679
|
+
var M = v(function() {
|
|
680
|
+
var y = !1, p, _, A = function(W) {
|
|
681
|
+
if (!y) {
|
|
682
|
+
y = !0, p = W;
|
|
683
|
+
var se = m(W);
|
|
684
|
+
if (S !== void 0 && O.hasValue) {
|
|
685
|
+
var ae = O.value;
|
|
686
|
+
if (S(ae, se))
|
|
687
|
+
return _ = ae, ae;
|
|
689
688
|
}
|
|
690
|
-
return
|
|
689
|
+
return _ = se, se;
|
|
691
690
|
}
|
|
692
|
-
var
|
|
693
|
-
if (r(
|
|
694
|
-
return
|
|
695
|
-
var
|
|
696
|
-
return
|
|
697
|
-
},
|
|
698
|
-
return
|
|
699
|
-
},
|
|
700
|
-
return
|
|
691
|
+
var rt = p, ie = _;
|
|
692
|
+
if (r(rt, W))
|
|
693
|
+
return ie;
|
|
694
|
+
var oe = m(W);
|
|
695
|
+
return S !== void 0 && S(ie, oe) ? ie : (p = W, _ = oe, oe);
|
|
696
|
+
}, w = f === void 0 ? null : f, z = function() {
|
|
697
|
+
return A(d());
|
|
698
|
+
}, re = w === null ? void 0 : function() {
|
|
699
|
+
return A(w());
|
|
701
700
|
};
|
|
702
|
-
return [
|
|
703
|
-
}, [d, f,
|
|
704
|
-
return
|
|
705
|
-
|
|
706
|
-
}, [
|
|
701
|
+
return [z, re];
|
|
702
|
+
}, [d, f, m, S]), R = M[0], h = M[1], c = a(u, R, h);
|
|
703
|
+
return l(function() {
|
|
704
|
+
O.hasValue = !0, O.value = c;
|
|
705
|
+
}, [c]), E(c), c;
|
|
707
706
|
}
|
|
708
|
-
|
|
709
|
-
}()),
|
|
707
|
+
de.useSyncExternalStoreWithSelector = x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
708
|
+
}()), de;
|
|
710
709
|
}
|
|
711
|
-
process.env.NODE_ENV === "production" ?
|
|
712
|
-
var
|
|
713
|
-
const
|
|
714
|
-
var
|
|
715
|
-
const { useDebugValue:
|
|
716
|
-
let
|
|
717
|
-
const
|
|
718
|
-
function
|
|
719
|
-
(
|
|
710
|
+
process.env.NODE_ENV === "production" ? pe.exports = Wt() : pe.exports = Ut();
|
|
711
|
+
var Gt = pe.exports;
|
|
712
|
+
const $t = /* @__PURE__ */ pt(Gt);
|
|
713
|
+
var $e = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
714
|
+
const { useDebugValue: Xt } = $, { useSyncExternalStoreWithSelector: Yt } = $t;
|
|
715
|
+
let Re = !1;
|
|
716
|
+
const Jt = (t) => t;
|
|
717
|
+
function Zt(t, e = Jt, n) {
|
|
718
|
+
($e ? "production" : void 0) !== "production" && n && !Re && (console.warn(
|
|
720
719
|
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
721
|
-
),
|
|
722
|
-
const r =
|
|
720
|
+
), Re = !0);
|
|
721
|
+
const r = Yt(
|
|
723
722
|
t.subscribe,
|
|
724
723
|
t.getState,
|
|
725
724
|
t.getServerState || t.getInitialState,
|
|
726
725
|
e,
|
|
727
726
|
n
|
|
728
727
|
);
|
|
729
|
-
return
|
|
728
|
+
return Xt(r), r;
|
|
730
729
|
}
|
|
731
|
-
const
|
|
732
|
-
(
|
|
730
|
+
const Le = (t) => {
|
|
731
|
+
($e ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
|
|
733
732
|
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
734
733
|
);
|
|
735
|
-
const e = typeof t == "function" ?
|
|
734
|
+
const e = typeof t == "function" ? Kt(t) : t, n = (r, a) => Zt(e, r, a);
|
|
736
735
|
return Object.assign(n, e), n;
|
|
737
|
-
},
|
|
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(), me = en(
|
|
738
737
|
() => ({
|
|
739
738
|
isLoggedIn: !1
|
|
740
739
|
})
|
|
741
740
|
);
|
|
742
|
-
class
|
|
741
|
+
class rn {
|
|
743
742
|
constructor(e) {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
743
|
+
j(this, "plugins", []);
|
|
744
|
+
j(this, "navigationPlugins");
|
|
745
|
+
j(this, "navigation");
|
|
746
|
+
j(this, "meta");
|
|
747
|
+
j(this, "authentication");
|
|
748
|
+
j(this, "state");
|
|
749
|
+
j(this, "initialize", async () => {
|
|
751
750
|
var e;
|
|
752
|
-
this.plugins.filter(
|
|
751
|
+
this.plugins.filter(tn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
|
|
753
752
|
});
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
753
|
+
j(this, "setUserProfile", async (e) => me.setState(e));
|
|
754
|
+
j(this, "invalidateCache", async (e) => {
|
|
755
|
+
Ye.invalidateQueries({ queryKey: e });
|
|
757
756
|
});
|
|
758
|
-
|
|
759
|
-
this.plugins.filter(
|
|
757
|
+
j(this, "getApiIdentities", async () => (await Promise.all(
|
|
758
|
+
this.plugins.filter(nn).map((n) => n.getIdentities(this))
|
|
760
759
|
)).flat());
|
|
761
|
-
|
|
760
|
+
j(this, "login", async () => {
|
|
762
761
|
if (!this.authentication)
|
|
763
762
|
throw new Error("No authentication configured");
|
|
764
763
|
return this.authentication.login(this);
|
|
765
764
|
});
|
|
766
|
-
|
|
765
|
+
j(this, "logout", async () => {
|
|
767
766
|
if (!this.authentication)
|
|
768
767
|
throw new Error("No authentication configured");
|
|
769
768
|
return this.authentication.signOut(this);
|
|
770
769
|
});
|
|
771
|
-
|
|
770
|
+
j(this, "handleAuthenticationResponse", async (e) => {
|
|
772
771
|
var n, r;
|
|
773
772
|
(r = (n = this.config.authentication) == null ? void 0 : n.handleAuthenticationResponse) == null || r.call(n, e, this);
|
|
774
773
|
});
|
|
775
|
-
|
|
774
|
+
j(this, "getNavigation", async (e) => (await Promise.all(
|
|
776
775
|
this.navigationPlugins.map(
|
|
777
776
|
async (r) => {
|
|
778
|
-
var
|
|
779
|
-
return (
|
|
777
|
+
var a;
|
|
778
|
+
return (a = r.getNavigation) == null ? void 0 : a.call(r, e);
|
|
780
779
|
}
|
|
781
780
|
)
|
|
782
781
|
)).flatMap((r) => r ?? []));
|
|
783
|
-
|
|
782
|
+
j(this, "sessionStorage", {
|
|
784
783
|
get: async (e) => localStorage.getItem(`session-${e}`) ?? "",
|
|
785
784
|
setProfile: async () => {
|
|
786
785
|
},
|
|
787
786
|
set: async (e, n) => localStorage.setItem(`session-${e}`, n)
|
|
788
787
|
});
|
|
789
|
-
this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(
|
|
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 = me;
|
|
790
789
|
}
|
|
791
790
|
}
|
|
792
791
|
/**
|
|
@@ -795,7 +794,7 @@ class Sn {
|
|
|
795
794
|
* This source code is licensed under the ISC license.
|
|
796
795
|
* See the LICENSE file in the root directory of this source tree.
|
|
797
796
|
*/
|
|
798
|
-
const
|
|
797
|
+
const Je = G("ChevronRight", [
|
|
799
798
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
800
799
|
]);
|
|
801
800
|
/**
|
|
@@ -804,7 +803,7 @@ const tt = $("ChevronRight", [
|
|
|
804
803
|
* This source code is licensed under the ISC license.
|
|
805
804
|
* See the LICENSE file in the root directory of this source tree.
|
|
806
805
|
*/
|
|
807
|
-
const
|
|
806
|
+
const sn = G("ExternalLink", [
|
|
808
807
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
809
808
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
810
809
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -815,7 +814,7 @@ const On = $("ExternalLink", [
|
|
|
815
814
|
* This source code is licensed under the ISC license.
|
|
816
815
|
* See the LICENSE file in the root directory of this source tree.
|
|
817
816
|
*/
|
|
818
|
-
const
|
|
817
|
+
const an = G("MoonStar", [
|
|
819
818
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
820
819
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
821
820
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -826,7 +825,7 @@ const _n = $("MoonStar", [
|
|
|
826
825
|
* This source code is licensed under the ISC license.
|
|
827
826
|
* See the LICENSE file in the root directory of this source tree.
|
|
828
827
|
*/
|
|
829
|
-
const
|
|
828
|
+
const on = G("Search", [
|
|
830
829
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
831
830
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
832
831
|
]);
|
|
@@ -836,7 +835,7 @@ const En = $("Search", [
|
|
|
836
835
|
* This source code is licensed under the ISC license.
|
|
837
836
|
* See the LICENSE file in the root directory of this source tree.
|
|
838
837
|
*/
|
|
839
|
-
const
|
|
838
|
+
const un = G("Sun", [
|
|
840
839
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
841
840
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
842
841
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -846,12 +845,12 @@ const wn = $("Sun", [
|
|
|
846
845
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
847
846
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
848
847
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
849
|
-
]),
|
|
850
|
-
const { navigation: t } =
|
|
851
|
-
return /* @__PURE__ */
|
|
852
|
-
|
|
848
|
+
]), cn = () => {
|
|
849
|
+
const { navigation: t } = ve();
|
|
850
|
+
return /* @__PURE__ */ s.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
851
|
+
he,
|
|
853
852
|
{
|
|
854
|
-
className: ({ isActive: n }) =>
|
|
853
|
+
className: ({ isActive: n }) => mt(
|
|
855
854
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
856
855
|
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
857
856
|
),
|
|
@@ -859,59 +858,59 @@ const wn = $("Sun", [
|
|
|
859
858
|
children: e.label
|
|
860
859
|
}
|
|
861
860
|
) }, e.label)) }) });
|
|
862
|
-
},
|
|
863
|
-
const [t, e] =
|
|
864
|
-
return /* @__PURE__ */
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
/* @__PURE__ */
|
|
867
|
-
(
|
|
868
|
-
/* @__PURE__ */
|
|
861
|
+
}, Ze = We(() => {
|
|
862
|
+
const [t, e] = vt(), { isLoggedIn: n, email: r } = me(), { login: a, logout: o, meta: l } = ve(), v = t ? an : un;
|
|
863
|
+
return /* @__PURE__ */ s.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
864
|
+
/* @__PURE__ */ s.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__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
866
|
+
(l == null ? void 0 : l.logo) && /* @__PURE__ */ s.jsx("img", { src: l.logo, alt: "My Dev Portal", className: "h-10" }),
|
|
867
|
+
/* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.headerTitle })
|
|
869
868
|
] }),
|
|
870
|
-
/* @__PURE__ */
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ s.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
870
|
+
/* @__PURE__ */ s.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ s.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__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
872
|
+
/* @__PURE__ */ s.jsx(on, { size: 14 }),
|
|
874
873
|
"Search"
|
|
875
874
|
] }),
|
|
876
|
-
/* @__PURE__ */
|
|
875
|
+
/* @__PURE__ */ s.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" })
|
|
877
876
|
] }) }),
|
|
878
|
-
/* @__PURE__ */
|
|
879
|
-
n ? /* @__PURE__ */
|
|
877
|
+
/* @__PURE__ */ s.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
|
|
878
|
+
n ? /* @__PURE__ */ s.jsxs(
|
|
880
879
|
"button",
|
|
881
880
|
{
|
|
882
881
|
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
|
|
883
|
-
onClick:
|
|
882
|
+
onClick: o,
|
|
884
883
|
children: [
|
|
885
884
|
"Logout ",
|
|
886
885
|
r ? `(${r})` : null
|
|
887
886
|
]
|
|
888
887
|
}
|
|
889
|
-
) : /* @__PURE__ */
|
|
888
|
+
) : /* @__PURE__ */ s.jsx(
|
|
890
889
|
"button",
|
|
891
890
|
{
|
|
892
891
|
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
|
|
893
|
-
onClick:
|
|
892
|
+
onClick: a,
|
|
894
893
|
children: "Login"
|
|
895
894
|
}
|
|
896
895
|
),
|
|
897
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ s.jsx(
|
|
898
897
|
"button",
|
|
899
898
|
{
|
|
900
899
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
901
900
|
onClick: e,
|
|
902
|
-
children: /* @__PURE__ */
|
|
901
|
+
children: /* @__PURE__ */ s.jsx(v, { size: 18 })
|
|
903
902
|
}
|
|
904
903
|
)
|
|
905
904
|
] })
|
|
906
905
|
] })
|
|
907
906
|
] }),
|
|
908
|
-
/* @__PURE__ */
|
|
907
|
+
/* @__PURE__ */ s.jsx(cn, {})
|
|
909
908
|
] }) });
|
|
910
|
-
}),
|
|
911
|
-
Header:
|
|
912
|
-
},
|
|
913
|
-
const t =
|
|
914
|
-
|
|
909
|
+
}), et = {
|
|
910
|
+
Header: Ze
|
|
911
|
+
}, ln = Rt(et), dn = ln.Provider, hn = () => {
|
|
912
|
+
const t = B(), { setActiveAnchor: e } = ge();
|
|
913
|
+
K(() => {
|
|
915
914
|
if (!t.hash) return;
|
|
916
915
|
const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
|
|
917
916
|
if (r) {
|
|
@@ -920,131 +919,31 @@ const wn = $("Sun", [
|
|
|
920
919
|
});
|
|
921
920
|
return;
|
|
922
921
|
}
|
|
923
|
-
const
|
|
922
|
+
const a = new MutationObserver((o, l) => {
|
|
924
923
|
const v = document.getElementById(decodeURIComponent(n));
|
|
925
|
-
v && (v.scrollIntoView(), requestIdleCallback(() => e(n)),
|
|
924
|
+
v && (v.scrollIntoView(), requestIdleCallback(() => e(n)), l.disconnect());
|
|
926
925
|
});
|
|
927
|
-
return
|
|
926
|
+
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
928
927
|
}, [t.hash, e]);
|
|
929
|
-
},
|
|
930
|
-
const t =
|
|
931
|
-
|
|
928
|
+
}, fn = () => {
|
|
929
|
+
const t = B(), e = ne(t.pathname);
|
|
930
|
+
K(() => {
|
|
932
931
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
933
932
|
}, [t.pathname]);
|
|
934
933
|
};
|
|
935
|
-
|
|
936
|
-
(t, e) => {
|
|
937
|
-
const {
|
|
938
|
-
__scopeCollapsible: n,
|
|
939
|
-
open: r,
|
|
940
|
-
defaultOpen: s,
|
|
941
|
-
disabled: i,
|
|
942
|
-
onOpenChange: c,
|
|
943
|
-
...v
|
|
944
|
-
} = t, [_ = !1, g] = Pt({
|
|
945
|
-
prop: r,
|
|
946
|
-
defaultProp: s,
|
|
947
|
-
onChange: c
|
|
948
|
-
});
|
|
949
|
-
return /* @__PURE__ */ a.jsx(
|
|
950
|
-
Dn,
|
|
951
|
-
{
|
|
952
|
-
scope: n,
|
|
953
|
-
disabled: i,
|
|
954
|
-
contentId: At(),
|
|
955
|
-
open: _,
|
|
956
|
-
onOpenToggle: T.useCallback(() => g((l) => !l), [g]),
|
|
957
|
-
children: /* @__PURE__ */ a.jsx(
|
|
958
|
-
xe.div,
|
|
959
|
-
{
|
|
960
|
-
"data-state": Ee(_),
|
|
961
|
-
"data-disabled": i ? "" : void 0,
|
|
962
|
-
...v,
|
|
963
|
-
ref: e
|
|
964
|
-
}
|
|
965
|
-
)
|
|
966
|
-
}
|
|
967
|
-
);
|
|
968
|
-
}
|
|
969
|
-
);
|
|
970
|
-
st.displayName = Se;
|
|
971
|
-
var at = "CollapsibleTrigger", it = T.forwardRef(
|
|
972
|
-
(t, e) => {
|
|
973
|
-
const { __scopeCollapsible: n, ...r } = t, s = Oe(at, n);
|
|
974
|
-
return /* @__PURE__ */ a.jsx(
|
|
975
|
-
xe.button,
|
|
976
|
-
{
|
|
977
|
-
type: "button",
|
|
978
|
-
"aria-controls": s.contentId,
|
|
979
|
-
"aria-expanded": s.open || !1,
|
|
980
|
-
"data-state": Ee(s.open),
|
|
981
|
-
"data-disabled": s.disabled ? "" : void 0,
|
|
982
|
-
disabled: s.disabled,
|
|
983
|
-
...r,
|
|
984
|
-
ref: e,
|
|
985
|
-
onClick: Nt(t.onClick, s.onOpenToggle)
|
|
986
|
-
}
|
|
987
|
-
);
|
|
988
|
-
}
|
|
989
|
-
);
|
|
990
|
-
it.displayName = at;
|
|
991
|
-
var _e = "CollapsibleContent", ot = T.forwardRef(
|
|
992
|
-
(t, e) => {
|
|
993
|
-
const { forceMount: n, ...r } = t, s = Oe(_e, t.__scopeCollapsible);
|
|
994
|
-
return /* @__PURE__ */ a.jsx(Rt, { present: n || s.open, children: ({ present: i }) => /* @__PURE__ */ a.jsx(Mn, { ...r, ref: e, present: i }) });
|
|
995
|
-
}
|
|
996
|
-
);
|
|
997
|
-
ot.displayName = _e;
|
|
998
|
-
var Mn = T.forwardRef((t, e) => {
|
|
999
|
-
const { __scopeCollapsible: n, present: r, children: s, ...i } = t, c = Oe(_e, n), [v, _] = T.useState(r), g = T.useRef(null), l = Dt(e, g), d = T.useRef(0), f = d.current, p = T.useRef(0), x = p.current, y = c.open || v, b = T.useRef(y), A = T.useRef();
|
|
1000
|
-
return T.useEffect(() => {
|
|
1001
|
-
const E = requestAnimationFrame(() => b.current = !1);
|
|
1002
|
-
return () => cancelAnimationFrame(E);
|
|
1003
|
-
}, []), Mt(() => {
|
|
1004
|
-
const E = g.current;
|
|
1005
|
-
if (E) {
|
|
1006
|
-
A.current = A.current || {
|
|
1007
|
-
transitionDuration: E.style.transitionDuration,
|
|
1008
|
-
animationName: E.style.animationName
|
|
1009
|
-
}, E.style.transitionDuration = "0s", E.style.animationName = "none";
|
|
1010
|
-
const h = E.getBoundingClientRect();
|
|
1011
|
-
d.current = h.height, p.current = h.width, b.current || (E.style.transitionDuration = A.current.transitionDuration, E.style.animationName = A.current.animationName), _(r);
|
|
1012
|
-
}
|
|
1013
|
-
}, [c.open, r]), /* @__PURE__ */ a.jsx(
|
|
1014
|
-
xe.div,
|
|
1015
|
-
{
|
|
1016
|
-
"data-state": Ee(c.open),
|
|
1017
|
-
"data-disabled": c.disabled ? "" : void 0,
|
|
1018
|
-
id: c.contentId,
|
|
1019
|
-
hidden: !y,
|
|
1020
|
-
...i,
|
|
1021
|
-
ref: l,
|
|
1022
|
-
style: {
|
|
1023
|
-
"--radix-collapsible-content-height": f ? `${f}px` : void 0,
|
|
1024
|
-
"--radix-collapsible-content-width": x ? `${x}px` : void 0,
|
|
1025
|
-
...t.style
|
|
1026
|
-
},
|
|
1027
|
-
children: y && s
|
|
1028
|
-
}
|
|
1029
|
-
);
|
|
1030
|
-
});
|
|
1031
|
-
function Ee(t) {
|
|
1032
|
-
return t ? "open" : "closed";
|
|
1033
|
-
}
|
|
1034
|
-
var ct = st, lt = it, ut = ot;
|
|
1035
|
-
function Tn(t) {
|
|
934
|
+
function pn(t) {
|
|
1036
935
|
return !0;
|
|
1037
936
|
}
|
|
1038
|
-
const
|
|
937
|
+
const mn = (t) => /* @__PURE__ */ s.jsx("div", {}), tt = ({
|
|
1039
938
|
item: t,
|
|
1040
939
|
defaultOpen: e,
|
|
1041
940
|
path: n
|
|
1042
941
|
}) => {
|
|
1043
|
-
const [r,
|
|
1044
|
-
return
|
|
1045
|
-
!r &&
|
|
1046
|
-
}, [r, t, n,
|
|
1047
|
-
},
|
|
942
|
+
const [r, a] = Lt(e), o = B(), l = ne(o.pathname);
|
|
943
|
+
return K(() => {
|
|
944
|
+
!r && l.current !== o.pathname && a(ye(t, o.pathname, n)), l.current = o.pathname;
|
|
945
|
+
}, [r, t, n, o.pathname]), [r, a];
|
|
946
|
+
}, Z = xt(
|
|
1048
947
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
1049
948
|
{
|
|
1050
949
|
variants: {
|
|
@@ -1058,126 +957,126 @@ const Ln = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1058
957
|
}
|
|
1059
958
|
}
|
|
1060
959
|
}
|
|
1061
|
-
),
|
|
960
|
+
), vn = "data-anchor", nt = ({
|
|
1062
961
|
category: t,
|
|
1063
962
|
item: e,
|
|
1064
963
|
activeAnchor: n,
|
|
1065
964
|
currentTopNavItem: r,
|
|
1066
|
-
basePath:
|
|
965
|
+
basePath: a = ""
|
|
1067
966
|
}) => {
|
|
1068
|
-
const
|
|
967
|
+
const o = fe(e) ? Fe(a, e.path) : "", l = B(), [v, E] = tt({
|
|
1069
968
|
item: e,
|
|
1070
|
-
path:
|
|
1071
|
-
defaultOpen: () =>
|
|
969
|
+
path: o,
|
|
970
|
+
defaultOpen: () => ye(e, l.pathname, o)
|
|
1072
971
|
});
|
|
1073
|
-
if (
|
|
1074
|
-
const
|
|
972
|
+
if (gt(e)) {
|
|
973
|
+
const u = te(
|
|
1075
974
|
"flex items-center gap-2",
|
|
1076
|
-
|
|
1077
|
-
isActive: e.href ===
|
|
975
|
+
Z({
|
|
976
|
+
isActive: e.href === l.pathname
|
|
1078
977
|
})
|
|
1079
978
|
);
|
|
1080
|
-
return e.href.startsWith("http") ? /* @__PURE__ */
|
|
979
|
+
return e.href.startsWith("http") ? /* @__PURE__ */ s.jsxs(
|
|
1081
980
|
"a",
|
|
1082
981
|
{
|
|
1083
|
-
className:
|
|
982
|
+
className: u,
|
|
1084
983
|
href: e.href,
|
|
1085
984
|
target: "_blank",
|
|
1086
985
|
rel: "noopener noreferrer",
|
|
1087
986
|
children: [
|
|
1088
987
|
e.label,
|
|
1089
|
-
/* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ s.jsx(sn, { size: 14 })
|
|
1090
989
|
]
|
|
1091
990
|
}
|
|
1092
|
-
) : /* @__PURE__ */
|
|
991
|
+
) : /* @__PURE__ */ s.jsx(he, { className: u, to: e.href, children: e.label });
|
|
1093
992
|
}
|
|
1094
|
-
const
|
|
1095
|
-
/* @__PURE__ */
|
|
1096
|
-
|
|
1097
|
-
typeof e.label != "string" ? e.label : /* @__PURE__ */
|
|
993
|
+
const x = /* @__PURE__ */ s.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
994
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
995
|
+
pn(e.icon) && /* @__PURE__ */ s.jsx(mn, { name: e.icon, size: 16 }),
|
|
996
|
+
typeof e.label != "string" ? e.label : /* @__PURE__ */ s.jsx("span", { className: "truncate", children: e.label })
|
|
1098
997
|
] }),
|
|
1099
|
-
e.children && /* @__PURE__ */
|
|
1100
|
-
|
|
998
|
+
e.children && /* @__PURE__ */ s.jsx(
|
|
999
|
+
Je,
|
|
1101
1000
|
{
|
|
1102
1001
|
size: 16,
|
|
1103
1002
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
1104
1003
|
}
|
|
1105
1004
|
)
|
|
1106
1005
|
] });
|
|
1107
|
-
return /* @__PURE__ */
|
|
1108
|
-
|
|
1006
|
+
return /* @__PURE__ */ s.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ s.jsxs(
|
|
1007
|
+
Ke,
|
|
1109
1008
|
{
|
|
1110
1009
|
open: v,
|
|
1111
|
-
onOpenChange: () =>
|
|
1010
|
+
onOpenChange: () => E((u) => !u),
|
|
1112
1011
|
className: "flex flex-col",
|
|
1113
1012
|
children: [
|
|
1114
|
-
/* @__PURE__ */
|
|
1115
|
-
|
|
1013
|
+
/* @__PURE__ */ s.jsx(
|
|
1014
|
+
Be,
|
|
1116
1015
|
{
|
|
1117
|
-
className:
|
|
1016
|
+
className: te(
|
|
1118
1017
|
"group text-start",
|
|
1119
|
-
|
|
1018
|
+
Z({ isActive: !1 })
|
|
1120
1019
|
),
|
|
1121
|
-
children:
|
|
1020
|
+
children: x
|
|
1122
1021
|
}
|
|
1123
1022
|
),
|
|
1124
|
-
/* @__PURE__ */
|
|
1125
|
-
|
|
1023
|
+
/* @__PURE__ */ s.jsx(ze, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ s.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((u) => /* @__PURE__ */ s.jsx(
|
|
1024
|
+
nt,
|
|
1126
1025
|
{
|
|
1127
1026
|
category: t,
|
|
1128
|
-
item:
|
|
1027
|
+
item: u,
|
|
1129
1028
|
activeAnchor: n,
|
|
1130
1029
|
currentTopNavItem: r,
|
|
1131
|
-
basePath:
|
|
1030
|
+
basePath: o
|
|
1132
1031
|
},
|
|
1133
|
-
|
|
1032
|
+
fe(u) ? u.path : u.href
|
|
1134
1033
|
)) }) })
|
|
1135
1034
|
]
|
|
1136
1035
|
}
|
|
1137
|
-
) : e.path.startsWith("#") ? /* @__PURE__ */
|
|
1138
|
-
|
|
1036
|
+
) : e.path.startsWith("#") ? /* @__PURE__ */ s.jsx(
|
|
1037
|
+
yt,
|
|
1139
1038
|
{
|
|
1140
1039
|
to: e.path,
|
|
1141
|
-
[
|
|
1142
|
-
className:
|
|
1040
|
+
[vn]: e.path,
|
|
1041
|
+
className: Z({
|
|
1143
1042
|
isActive: e.path.slice(1) === n,
|
|
1144
1043
|
isMuted: e.muted
|
|
1145
1044
|
}),
|
|
1146
|
-
children:
|
|
1045
|
+
children: x
|
|
1147
1046
|
}
|
|
1148
|
-
) : /* @__PURE__ */
|
|
1149
|
-
|
|
1047
|
+
) : /* @__PURE__ */ s.jsx(
|
|
1048
|
+
he,
|
|
1150
1049
|
{
|
|
1151
|
-
className: ({ isActive:
|
|
1152
|
-
to:
|
|
1153
|
-
children:
|
|
1050
|
+
className: ({ isActive: u }) => Z({ isActive: u }),
|
|
1051
|
+
to: o,
|
|
1052
|
+
children: x
|
|
1154
1053
|
}
|
|
1155
1054
|
) });
|
|
1156
|
-
},
|
|
1055
|
+
}, gn = ({
|
|
1157
1056
|
category: t
|
|
1158
1057
|
}) => {
|
|
1159
|
-
const { activeAnchor: e } =
|
|
1058
|
+
const { activeAnchor: e } = ge(), n = St(), r = B(), a = t.collapsible ?? !0, [o, l] = tt({
|
|
1160
1059
|
item: t,
|
|
1161
1060
|
path: (n == null ? void 0 : n.path) ?? "",
|
|
1162
|
-
defaultOpen: () => !
|
|
1061
|
+
defaultOpen: () => !a || t.expanded || ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
|
|
1163
1062
|
});
|
|
1164
|
-
return /* @__PURE__ */
|
|
1165
|
-
|
|
1063
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1064
|
+
Ke,
|
|
1166
1065
|
{
|
|
1167
|
-
open:
|
|
1168
|
-
onOpenChange: () =>
|
|
1066
|
+
open: o,
|
|
1067
|
+
onOpenChange: () => l((v) => !v),
|
|
1169
1068
|
children: [
|
|
1170
|
-
t.label.length > 0 ? /* @__PURE__ */
|
|
1069
|
+
t.label.length > 0 ? /* @__PURE__ */ s.jsx(Be, { asChild: a, disabled: !a, children: /* @__PURE__ */ s.jsxs(
|
|
1171
1070
|
"h5",
|
|
1172
1071
|
{
|
|
1173
|
-
className:
|
|
1072
|
+
className: te(
|
|
1174
1073
|
"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]",
|
|
1175
|
-
|
|
1074
|
+
a ? "hover:bg-accent" : "cursor-auto"
|
|
1176
1075
|
),
|
|
1177
1076
|
children: [
|
|
1178
1077
|
t.label,
|
|
1179
|
-
|
|
1180
|
-
|
|
1078
|
+
a && /* @__PURE__ */ s.jsx(
|
|
1079
|
+
Je,
|
|
1181
1080
|
{
|
|
1182
1081
|
className: "group-data-[state=open]:rotate-90 transition",
|
|
1183
1082
|
size: 16
|
|
@@ -1186,71 +1085,71 @@ const Ln = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1186
1085
|
]
|
|
1187
1086
|
}
|
|
1188
1087
|
) }) : "Endpoints",
|
|
1189
|
-
/* @__PURE__ */
|
|
1190
|
-
|
|
1088
|
+
/* @__PURE__ */ s.jsx(ze, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ s.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((v) => /* @__PURE__ */ s.jsx(
|
|
1089
|
+
nt,
|
|
1191
1090
|
{
|
|
1192
1091
|
category: t,
|
|
1193
1092
|
item: v,
|
|
1194
1093
|
activeAnchor: e,
|
|
1195
1094
|
currentTopNavItem: n,
|
|
1196
|
-
basePath:
|
|
1095
|
+
basePath: Fe(n == null ? void 0 : n.path, t.path)
|
|
1197
1096
|
},
|
|
1198
|
-
|
|
1097
|
+
fe(v) ? v.path + v.label : v.href
|
|
1199
1098
|
)) }) })
|
|
1200
1099
|
]
|
|
1201
1100
|
},
|
|
1202
1101
|
t.label
|
|
1203
1102
|
);
|
|
1204
|
-
},
|
|
1103
|
+
}, yn = It(({ children: t, className: e, pushMainContent: n }, r) => /* @__PURE__ */ s.jsx(
|
|
1205
1104
|
"nav",
|
|
1206
1105
|
{
|
|
1207
1106
|
"data-navigation": String(n),
|
|
1208
|
-
className:
|
|
1107
|
+
className: te(
|
|
1209
1108
|
"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",
|
|
1210
1109
|
e
|
|
1211
1110
|
),
|
|
1212
1111
|
ref: r,
|
|
1213
1112
|
children: t
|
|
1214
1113
|
}
|
|
1215
|
-
)),
|
|
1216
|
-
const t =
|
|
1217
|
-
return /* @__PURE__ */
|
|
1218
|
-
|
|
1114
|
+
)), xn = () => {
|
|
1115
|
+
const t = ne(null), e = bt();
|
|
1116
|
+
return /* @__PURE__ */ s.jsx(
|
|
1117
|
+
yn,
|
|
1219
1118
|
{
|
|
1220
1119
|
ref: t,
|
|
1221
1120
|
pushMainContent: e.data.items.length > 0,
|
|
1222
|
-
children: e.data.items.map((n) => /* @__PURE__ */
|
|
1121
|
+
children: e.data.items.map((n) => /* @__PURE__ */ s.jsx(gn, { category: n }, n.label))
|
|
1223
1122
|
}
|
|
1224
1123
|
);
|
|
1225
|
-
},
|
|
1226
|
-
const e =
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
}, [
|
|
1230
|
-
const
|
|
1231
|
-
return
|
|
1232
|
-
e.pathname !==
|
|
1233
|
-
}, [e.pathname, n]), /* @__PURE__ */
|
|
1234
|
-
/* @__PURE__ */
|
|
1235
|
-
/* @__PURE__ */
|
|
1236
|
-
(r == null ? void 0 : r.description) && /* @__PURE__ */
|
|
1237
|
-
(r == null ? void 0 : r.favicon) && /* @__PURE__ */
|
|
1124
|
+
}, Ie = ({ children: t }) => {
|
|
1125
|
+
const e = B(), { setActiveAnchor: n } = ge(), { meta: r, handleAuthenticationResponse: a } = ve();
|
|
1126
|
+
K(() => {
|
|
1127
|
+
a(e);
|
|
1128
|
+
}, [a, e]), hn(), fn();
|
|
1129
|
+
const o = ne(e.pathname);
|
|
1130
|
+
return K(() => {
|
|
1131
|
+
e.pathname !== o.current && n(""), o.current = e.pathname;
|
|
1132
|
+
}, [e.pathname, n]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1133
|
+
/* @__PURE__ */ s.jsxs(Ot, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
|
|
1134
|
+
/* @__PURE__ */ s.jsx("title", { children: "Home" }),
|
|
1135
|
+
(r == null ? void 0 : r.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: r.description }),
|
|
1136
|
+
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: r.favicon })
|
|
1238
1137
|
] }),
|
|
1239
|
-
/* @__PURE__ */
|
|
1240
|
-
/* @__PURE__ */
|
|
1241
|
-
|
|
1138
|
+
/* @__PURE__ */ s.jsx(Ze, {}),
|
|
1139
|
+
/* @__PURE__ */ s.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ s.jsxs(
|
|
1140
|
+
Ue,
|
|
1242
1141
|
{
|
|
1243
|
-
fallback: /* @__PURE__ */
|
|
1142
|
+
fallback: /* @__PURE__ */ s.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ s.jsx(_t, {}) }),
|
|
1244
1143
|
children: [
|
|
1245
|
-
/* @__PURE__ */
|
|
1246
|
-
/* @__PURE__ */
|
|
1144
|
+
/* @__PURE__ */ s.jsx(xn, {}),
|
|
1145
|
+
/* @__PURE__ */ s.jsx(
|
|
1247
1146
|
"main",
|
|
1248
1147
|
{
|
|
1249
1148
|
className: `dark:border-white/10 translate-x-0
|
|
1250
1149
|
lg:overflow-visible
|
|
1251
1150
|
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
1252
1151
|
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
1253
|
-
children: t ?? /* @__PURE__ */
|
|
1152
|
+
children: t ?? /* @__PURE__ */ s.jsx(Et, {})
|
|
1254
1153
|
}
|
|
1255
1154
|
)
|
|
1256
1155
|
]
|
|
@@ -1258,44 +1157,44 @@ const Ln = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1258
1157
|
) })
|
|
1259
1158
|
] });
|
|
1260
1159
|
};
|
|
1261
|
-
function
|
|
1262
|
-
const e =
|
|
1160
|
+
function Sn({ plugins: t }) {
|
|
1161
|
+
const e = ee(() => {
|
|
1263
1162
|
const n = (t ?? []).flatMap(
|
|
1264
|
-
(r) =>
|
|
1163
|
+
(r) => Xe(r) ? r.getRoutes() : []
|
|
1265
1164
|
);
|
|
1266
|
-
return
|
|
1165
|
+
return wt([
|
|
1267
1166
|
{
|
|
1268
1167
|
path: "/",
|
|
1269
|
-
element: /* @__PURE__ */
|
|
1270
|
-
errorElement: /* @__PURE__ */
|
|
1168
|
+
element: /* @__PURE__ */ s.jsx(Ie, {}),
|
|
1169
|
+
errorElement: /* @__PURE__ */ s.jsx(Ie, { children: /* @__PURE__ */ s.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
|
|
1271
1170
|
children: n
|
|
1272
1171
|
}
|
|
1273
1172
|
]);
|
|
1274
1173
|
}, [t]);
|
|
1275
|
-
return /* @__PURE__ */
|
|
1174
|
+
return /* @__PURE__ */ s.jsx(jt, { router: e });
|
|
1276
1175
|
}
|
|
1277
|
-
const
|
|
1278
|
-
const e =
|
|
1279
|
-
() => ({ ...
|
|
1176
|
+
const bn = (t) => {
|
|
1177
|
+
const e = ee(
|
|
1178
|
+
() => ({ ...et, ...t.overrides }),
|
|
1280
1179
|
[t.overrides]
|
|
1281
|
-
), n =
|
|
1282
|
-
() => ({ ...
|
|
1180
|
+
), n = ee(
|
|
1181
|
+
() => ({ ...Pt, ...t.mdxComponents }),
|
|
1283
1182
|
[t.mdxComponents]
|
|
1284
|
-
), r =
|
|
1285
|
-
return
|
|
1183
|
+
), r = ee(() => new rn(t), [t]);
|
|
1184
|
+
return K(() => {
|
|
1286
1185
|
r.initialize();
|
|
1287
|
-
}, [r]), /* @__PURE__ */
|
|
1288
|
-
|
|
1186
|
+
}, [r]), /* @__PURE__ */ s.jsx(At, { client: Ye, children: /* @__PURE__ */ s.jsx(Dt, { children: /* @__PURE__ */ s.jsx(Ct, { value: r, children: /* @__PURE__ */ s.jsx(Nt, { components: n, children: /* @__PURE__ */ s.jsx(Mt, { children: /* @__PURE__ */ s.jsx(dn, { value: e, children: /* @__PURE__ */ s.jsx(Tt, { children: /* @__PURE__ */ s.jsx(
|
|
1187
|
+
Ue,
|
|
1289
1188
|
{
|
|
1290
|
-
fallback: /* @__PURE__ */
|
|
1291
|
-
children: /* @__PURE__ */
|
|
1189
|
+
fallback: /* @__PURE__ */ s.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
1190
|
+
children: /* @__PURE__ */ s.jsx(Sn, { plugins: t.plugins })
|
|
1292
1191
|
}
|
|
1293
1192
|
) }) }) }) }) }) }) });
|
|
1294
|
-
},
|
|
1295
|
-
|
|
1193
|
+
}, On = We(bn);
|
|
1194
|
+
On.displayName = "DevPortal";
|
|
1296
1195
|
export {
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1196
|
+
On as DevPortal,
|
|
1197
|
+
mn as DynamicIcon,
|
|
1198
|
+
An as Link,
|
|
1199
|
+
Dn as useMDXComponents
|
|
1301
1200
|
};
|