zudoku 0.3.0-dev.14 → 0.3.0-dev.16
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/components/index.d.ts +2 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/vite/config.js +0 -2
- package/dist/vite/config.js.map +1 -1
- package/lib/{Spinner-D-NVRYkd.js → Spinner-Cf0Eb7YI.js} +5939 -5937
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.components.js +96 -94
- package/lib/zudoku.plugins.js +122 -122
- package/package.json +1 -1
- package/src/lib/components/index.ts +3 -0
- package/dist/vite/common.d.ts +0 -1
- package/dist/vite/common.js +0 -5
- package/dist/vite/common.js.map +0 -1
- package/lib/clerk-Wslx_mPo.js +0 -19685
package/lib/zudoku.auth-clerk.js
CHANGED
|
@@ -2,7 +2,7 @@ import { u as t } from "./state-2Hu1renZ.js";
|
|
|
2
2
|
const r = ({ clerkPubKey: a }) => {
|
|
3
3
|
let e;
|
|
4
4
|
const i = (async () => {
|
|
5
|
-
const { Clerk: s } = await import("
|
|
5
|
+
const { Clerk: s } = await import("@clerk/clerk-js");
|
|
6
6
|
e = new s(a), await e.load({});
|
|
7
7
|
})();
|
|
8
8
|
async function n() {
|
package/lib/zudoku.components.js
CHANGED
|
@@ -13,12 +13,60 @@ var S = (t, e, s, a) => ({
|
|
|
13
13
|
return i(t, e, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { c as z, S as me, h as ge, Q as Ee, n as m, m as ne, M as Se, a as re, b as j, e as Fe, d as Re, f as He, g as Le, o as ie, r as oe, i as ze, j as le, p as ce, s as Ke, u as U, N as B, k as _e, l as Be, q as Ve, t as W, v as X, w as V, x as ve, y as Ue, z as L, R as ye, T as xe, C as be, A as We, B as Xe, D as $e, E as Ge, H as je, F as Je, G as Ye, I as Ze, J as et, K as tt, L as st, O as at, P as nt, U as rt, V as it } from "./Spinner-Cf0Eb7YI.js";
|
|
17
|
+
import { W as Vt, Y as Ut, X as Wt } from "./Spinner-Cf0Eb7YI.js";
|
|
18
|
+
import { j as n, u as D, O as ot } from "./index-PyGcnQFX.js";
|
|
19
19
|
import { memo as Pe, createContext as lt, useEffect as I, useRef as K, useState as ct, forwardRef as ht, Suspense as we, useMemo as H, Fragment as ut } from "react";
|
|
20
20
|
import { c as dt } from "./state-2Hu1renZ.js";
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @license lucide-react v0.378.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/
|
|
27
|
+
const Ne = z("ChevronRight", [
|
|
28
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
29
|
+
]);
|
|
30
|
+
/**
|
|
31
|
+
* @license lucide-react v0.378.0 - ISC
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the ISC license.
|
|
34
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/
|
|
36
|
+
const ft = z("ExternalLink", [
|
|
37
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
38
|
+
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
39
|
+
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
40
|
+
]);
|
|
41
|
+
/**
|
|
42
|
+
* @license lucide-react v0.378.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/
|
|
47
|
+
const pt = z("MoonStar", [
|
|
48
|
+
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
49
|
+
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
50
|
+
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
51
|
+
]);
|
|
52
|
+
/**
|
|
53
|
+
* @license lucide-react v0.378.0 - ISC
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the ISC license.
|
|
56
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/
|
|
58
|
+
const mt = z("Sun", [
|
|
59
|
+
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
60
|
+
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
61
|
+
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
62
|
+
["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
|
|
63
|
+
["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
|
|
64
|
+
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
65
|
+
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
66
|
+
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
67
|
+
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
68
|
+
]);
|
|
69
|
+
var x, de, gt = (de = class extends me {
|
|
22
70
|
constructor(e = {}) {
|
|
23
71
|
super();
|
|
24
72
|
v(this, x);
|
|
@@ -27,7 +75,7 @@ var x, de, ft = (de = class extends me {
|
|
|
27
75
|
build(e, s, a) {
|
|
28
76
|
const r = s.queryKey, o = s.queryHash ?? ge(r, s);
|
|
29
77
|
let l = this.get(o);
|
|
30
|
-
return l || (l = new
|
|
78
|
+
return l || (l = new Ee({
|
|
31
79
|
cache: this,
|
|
32
80
|
queryKey: r,
|
|
33
81
|
queryHash: o,
|
|
@@ -90,7 +138,7 @@ var x, de, ft = (de = class extends me {
|
|
|
90
138
|
});
|
|
91
139
|
});
|
|
92
140
|
}
|
|
93
|
-
}, x = new WeakMap(), de), p, T, fe,
|
|
141
|
+
}, x = new WeakMap(), de), p, T, fe, vt = (fe = class extends me {
|
|
94
142
|
constructor(e = {}) {
|
|
95
143
|
super();
|
|
96
144
|
v(this, p);
|
|
@@ -98,7 +146,7 @@ var x, de, ft = (de = class extends me {
|
|
|
98
146
|
this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this, T, Date.now());
|
|
99
147
|
}
|
|
100
148
|
build(e, s, a) {
|
|
101
|
-
const r = new
|
|
149
|
+
const r = new Se({
|
|
102
150
|
mutationCache: this,
|
|
103
151
|
mutationId: ++S(this, T)._,
|
|
104
152
|
options: e.defaultMutationOptions(s),
|
|
@@ -168,7 +216,7 @@ function F(t) {
|
|
|
168
216
|
var e;
|
|
169
217
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
170
218
|
}
|
|
171
|
-
function
|
|
219
|
+
function yt(t) {
|
|
172
220
|
return {
|
|
173
221
|
onFetch: (e, s) => {
|
|
174
222
|
const a = async () => {
|
|
@@ -182,7 +230,7 @@ function mt(t) {
|
|
|
182
230
|
b = !0;
|
|
183
231
|
}), e.signal)
|
|
184
232
|
});
|
|
185
|
-
}, qe =
|
|
233
|
+
}, qe = Fe(e.options, e.fetchOptions), _ = async (y, P, O) => {
|
|
186
234
|
if (b)
|
|
187
235
|
return Promise.reject();
|
|
188
236
|
if (P == null && y.pages.length)
|
|
@@ -196,7 +244,7 @@ function mt(t) {
|
|
|
196
244
|
f(E);
|
|
197
245
|
const De = await qe(
|
|
198
246
|
E
|
|
199
|
-
), { maxPages: ee } = e.options, te = O ?
|
|
247
|
+
), { maxPages: ee } = e.options, te = O ? Re : He;
|
|
200
248
|
return {
|
|
201
249
|
pages: te(y.pages, De, ee),
|
|
202
250
|
pageParams: te(y.pageParams, P, ee)
|
|
@@ -204,7 +252,7 @@ function mt(t) {
|
|
|
204
252
|
};
|
|
205
253
|
let C;
|
|
206
254
|
if (o && l.length) {
|
|
207
|
-
const y = o === "backward", P = y ?
|
|
255
|
+
const y = o === "backward", P = y ? xt : he, O = {
|
|
208
256
|
pages: l,
|
|
209
257
|
pageParams: h
|
|
210
258
|
}, E = P(r, O);
|
|
@@ -247,7 +295,7 @@ function he(t, { pages: e, pageParams: s }) {
|
|
|
247
295
|
s
|
|
248
296
|
);
|
|
249
297
|
}
|
|
250
|
-
function
|
|
298
|
+
function xt(t, { pages: e, pageParams: s }) {
|
|
251
299
|
var a;
|
|
252
300
|
return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
|
|
253
301
|
t,
|
|
@@ -257,7 +305,7 @@ function gt(t, { pages: e, pageParams: s }) {
|
|
|
257
305
|
s
|
|
258
306
|
);
|
|
259
307
|
}
|
|
260
|
-
var c, w, N, M, A, k, Q, q, pe,
|
|
308
|
+
var c, w, N, M, A, k, Q, q, pe, bt = (pe = class {
|
|
261
309
|
constructor(t = {}) {
|
|
262
310
|
v(this, c);
|
|
263
311
|
v(this, w);
|
|
@@ -267,10 +315,10 @@ var c, w, N, M, A, k, Q, q, pe, vt = (pe = class {
|
|
|
267
315
|
v(this, k);
|
|
268
316
|
v(this, Q);
|
|
269
317
|
v(this, q);
|
|
270
|
-
u(this, c, t.queryCache || new
|
|
318
|
+
u(this, c, t.queryCache || new gt()), u(this, w, t.mutationCache || new vt()), u(this, N, t.defaultOptions || {}), u(this, M, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, k, 0);
|
|
271
319
|
}
|
|
272
320
|
mount() {
|
|
273
|
-
S(this, k)._++, i(this, k) === 1 && (u(this, Q,
|
|
321
|
+
S(this, k)._++, i(this, k) === 1 && (u(this, Q, Le.subscribe(async (t) => {
|
|
274
322
|
t && (await this.resumePausedMutations(), i(this, c).onFocus());
|
|
275
323
|
})), u(this, q, ie.subscribe(async (t) => {
|
|
276
324
|
t && (await this.resumePausedMutations(), i(this, c).onOnline());
|
|
@@ -309,7 +357,7 @@ var c, w, N, M, A, k, Q, q, pe, vt = (pe = class {
|
|
|
309
357
|
setQueryData(t, e, s) {
|
|
310
358
|
const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
|
|
311
359
|
a.queryHash
|
|
312
|
-
), o = r == null ? void 0 : r.state.data, l =
|
|
360
|
+
), o = r == null ? void 0 : r.state.data, l = ze(e, o);
|
|
313
361
|
if (l !== void 0)
|
|
314
362
|
return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
|
|
315
363
|
}
|
|
@@ -386,7 +434,7 @@ var c, w, N, M, A, k, Q, q, pe, vt = (pe = class {
|
|
|
386
434
|
return this.fetchQuery(t).then(j).catch(j);
|
|
387
435
|
}
|
|
388
436
|
fetchInfiniteQuery(t) {
|
|
389
|
-
return t.behavior =
|
|
437
|
+
return t.behavior = yt(t.pages), this.fetchQuery(t);
|
|
390
438
|
}
|
|
391
439
|
prefetchInfiniteQuery(t) {
|
|
392
440
|
return this.fetchInfiniteQuery(t).then(j).catch(j);
|
|
@@ -444,7 +492,7 @@ var c, w, N, M, A, k, Q, q, pe, vt = (pe = class {
|
|
|
444
492
|
return e.queryHash || (e.queryHash = ge(
|
|
445
493
|
e.queryKey,
|
|
446
494
|
e
|
|
447
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn ===
|
|
495
|
+
)), 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 === Ke && (e.enabled = !1), e;
|
|
448
496
|
}
|
|
449
497
|
defaultMutationOptions(t) {
|
|
450
498
|
return t != null && t._defaulted ? t : {
|
|
@@ -458,8 +506,8 @@ var c, w, N, M, A, k, Q, q, pe, vt = (pe = class {
|
|
|
458
506
|
i(this, c).clear(), i(this, w).clear();
|
|
459
507
|
}
|
|
460
508
|
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), M = new WeakMap(), A = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
|
|
461
|
-
const
|
|
462
|
-
class
|
|
509
|
+
const ke = (t) => "getRoutes" in t && typeof t.getRoutes == "function", jt = (t) => "initialize" in t && typeof t.initialize == "function", Pt = (t) => "getHead" in t && typeof t.getHead == "function", wt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Oe = new bt(), Nt = dt(() => ({}));
|
|
510
|
+
class kt {
|
|
463
511
|
constructor(e) {
|
|
464
512
|
g(this, "plugins", []);
|
|
465
513
|
g(this, "navigationPlugins");
|
|
@@ -470,17 +518,17 @@ class Pt {
|
|
|
470
518
|
g(this, "state");
|
|
471
519
|
g(this, "initialize", async () => {
|
|
472
520
|
await Promise.all([
|
|
473
|
-
this.plugins.filter(
|
|
521
|
+
this.plugins.filter(jt).map((e) => {
|
|
474
522
|
var s;
|
|
475
523
|
return (s = e.initialize) == null ? void 0 : s.call(e, this);
|
|
476
524
|
})
|
|
477
525
|
]);
|
|
478
526
|
});
|
|
479
527
|
g(this, "invalidateCache", async (e) => {
|
|
480
|
-
await
|
|
528
|
+
await Oe.invalidateQueries({ queryKey: e });
|
|
481
529
|
});
|
|
482
530
|
g(this, "getApiIdentities", async () => (await Promise.all(
|
|
483
|
-
this.plugins.filter(
|
|
531
|
+
this.plugins.filter(wt).map((s) => s.getIdentities(this))
|
|
484
532
|
)).flat());
|
|
485
533
|
g(this, "getNavigation", async (e) => (await Promise.all(
|
|
486
534
|
this.navigationPlugins.map(
|
|
@@ -490,7 +538,7 @@ class Pt {
|
|
|
490
538
|
}
|
|
491
539
|
)
|
|
492
540
|
)).flatMap((a) => a ?? []));
|
|
493
|
-
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(
|
|
541
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(ke), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = Nt;
|
|
494
542
|
}
|
|
495
543
|
async signRequest(e) {
|
|
496
544
|
if (!this.authentication)
|
|
@@ -499,59 +547,12 @@ class Pt {
|
|
|
499
547
|
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
500
548
|
}
|
|
501
549
|
}
|
|
502
|
-
|
|
503
|
-
* @license lucide-react v0.378.0 - ISC
|
|
504
|
-
*
|
|
505
|
-
* This source code is licensed under the ISC license.
|
|
506
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
507
|
-
*/
|
|
508
|
-
const Oe = z("ChevronRight", [
|
|
509
|
-
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
510
|
-
]);
|
|
511
|
-
/**
|
|
512
|
-
* @license lucide-react v0.378.0 - ISC
|
|
513
|
-
*
|
|
514
|
-
* This source code is licensed under the ISC license.
|
|
515
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
516
|
-
*/
|
|
517
|
-
const wt = z("ExternalLink", [
|
|
518
|
-
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
519
|
-
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
520
|
-
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
521
|
-
]);
|
|
522
|
-
/**
|
|
523
|
-
* @license lucide-react v0.378.0 - ISC
|
|
524
|
-
*
|
|
525
|
-
* This source code is licensed under the ISC license.
|
|
526
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
527
|
-
*/
|
|
528
|
-
const Nt = z("MoonStar", [
|
|
529
|
-
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
530
|
-
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
531
|
-
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
532
|
-
]);
|
|
533
|
-
/**
|
|
534
|
-
* @license lucide-react v0.378.0 - ISC
|
|
535
|
-
*
|
|
536
|
-
* This source code is licensed under the ISC license.
|
|
537
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
538
|
-
*/
|
|
539
|
-
const kt = z("Sun", [
|
|
540
|
-
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
541
|
-
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
542
|
-
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
543
|
-
["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
|
|
544
|
-
["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
|
|
545
|
-
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
546
|
-
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
547
|
-
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
548
|
-
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
549
|
-
]), Ot = () => {
|
|
550
|
+
const Ot = () => {
|
|
550
551
|
const { navigation: t } = U();
|
|
551
552
|
return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
552
553
|
B,
|
|
553
554
|
{
|
|
554
|
-
className: ({ isActive: s }) =>
|
|
555
|
+
className: ({ isActive: s }) => _e(
|
|
555
556
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
556
557
|
s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
557
558
|
),
|
|
@@ -560,7 +561,7 @@ const kt = z("Sun", [
|
|
|
560
561
|
}
|
|
561
562
|
) }, e.label)) }) });
|
|
562
563
|
}, Ce = Pe(function() {
|
|
563
|
-
const [e, s] =
|
|
564
|
+
const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ve(), { page: d } = U(), b = e ? pt : mt;
|
|
564
565
|
return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
565
566
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
|
|
566
567
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -634,7 +635,7 @@ const kt = z("Sun", [
|
|
|
634
635
|
return I(() => {
|
|
635
636
|
!a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
|
|
636
637
|
}, [a, t, s, o.pathname]), [a, r];
|
|
637
|
-
}, R =
|
|
638
|
+
}, R = Xe(
|
|
638
639
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
639
640
|
{
|
|
640
641
|
variants: {
|
|
@@ -660,7 +661,7 @@ const kt = z("Sun", [
|
|
|
660
661
|
path: o,
|
|
661
662
|
defaultOpen: () => X(e, l.pathname, o)
|
|
662
663
|
});
|
|
663
|
-
if (
|
|
664
|
+
if (Ue(e)) {
|
|
664
665
|
const f = L(
|
|
665
666
|
"flex items-center gap-2",
|
|
666
667
|
R({
|
|
@@ -676,7 +677,7 @@ const kt = z("Sun", [
|
|
|
676
677
|
rel: "noopener noreferrer",
|
|
677
678
|
children: [
|
|
678
679
|
e.label,
|
|
679
|
-
/* @__PURE__ */ n.jsx(
|
|
680
|
+
/* @__PURE__ */ n.jsx(ft, { size: 14 })
|
|
680
681
|
]
|
|
681
682
|
}
|
|
682
683
|
) : /* @__PURE__ */ n.jsx(B, { className: f, to: e.href, children: e.label });
|
|
@@ -687,7 +688,7 @@ const kt = z("Sun", [
|
|
|
687
688
|
typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
|
|
688
689
|
] }),
|
|
689
690
|
e.children && /* @__PURE__ */ n.jsx(
|
|
690
|
-
|
|
691
|
+
Ne,
|
|
691
692
|
{
|
|
692
693
|
size: 16,
|
|
693
694
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
@@ -725,7 +726,7 @@ const kt = z("Sun", [
|
|
|
725
726
|
]
|
|
726
727
|
}
|
|
727
728
|
) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
728
|
-
|
|
729
|
+
We,
|
|
729
730
|
{
|
|
730
731
|
to: e.path,
|
|
731
732
|
[qt]: e.path,
|
|
@@ -746,7 +747,7 @@ const kt = z("Sun", [
|
|
|
746
747
|
}, Dt = ({
|
|
747
748
|
category: t
|
|
748
749
|
}) => {
|
|
749
|
-
const { activeAnchor: e } = W(), s =
|
|
750
|
+
const { activeAnchor: e } = W(), s = $e(), a = D(), r = t.collapsible ?? !0, [o, l] = Ae({
|
|
750
751
|
item: t,
|
|
751
752
|
path: (s == null ? void 0 : s.path) ?? "",
|
|
752
753
|
defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
|
|
@@ -767,7 +768,7 @@ const kt = z("Sun", [
|
|
|
767
768
|
children: [
|
|
768
769
|
t.label,
|
|
769
770
|
r && /* @__PURE__ */ n.jsx(
|
|
770
|
-
|
|
771
|
+
Ne,
|
|
771
772
|
{
|
|
772
773
|
className: "group-data-[state=open]:rotate-90 transition",
|
|
773
774
|
size: 16
|
|
@@ -805,7 +806,7 @@ const kt = z("Sun", [
|
|
|
805
806
|
}
|
|
806
807
|
);
|
|
807
808
|
}), It = () => {
|
|
808
|
-
const t = K(null), e =
|
|
809
|
+
const t = K(null), e = Ge();
|
|
809
810
|
return /* @__PURE__ */ n.jsx(
|
|
810
811
|
Tt,
|
|
811
812
|
{
|
|
@@ -830,7 +831,7 @@ const kt = z("Sun", [
|
|
|
830
831
|
/* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
|
|
831
832
|
we,
|
|
832
833
|
{
|
|
833
|
-
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(
|
|
834
|
+
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Je, {}) }),
|
|
834
835
|
children: [
|
|
835
836
|
/* @__PURE__ */ n.jsx(It, {}),
|
|
836
837
|
/* @__PURE__ */ n.jsx(
|
|
@@ -840,7 +841,7 @@ const kt = z("Sun", [
|
|
|
840
841
|
lg:overflow-visible
|
|
841
842
|
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
842
843
|
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
843
|
-
children: t ?? /* @__PURE__ */ n.jsx(
|
|
844
|
+
children: t ?? /* @__PURE__ */ n.jsx(ot, {})
|
|
844
845
|
}
|
|
845
846
|
)
|
|
846
847
|
]
|
|
@@ -851,9 +852,9 @@ const kt = z("Sun", [
|
|
|
851
852
|
function Et({ plugins: t }) {
|
|
852
853
|
const e = H(() => {
|
|
853
854
|
const s = (t ?? []).flatMap(
|
|
854
|
-
(a) =>
|
|
855
|
+
(a) => ke(a) ? a.getRoutes() : []
|
|
855
856
|
);
|
|
856
|
-
return
|
|
857
|
+
return Ye([
|
|
857
858
|
{
|
|
858
859
|
path: "/",
|
|
859
860
|
element: /* @__PURE__ */ n.jsx(ue, {}),
|
|
@@ -862,7 +863,7 @@ function Et({ plugins: t }) {
|
|
|
862
863
|
}
|
|
863
864
|
]);
|
|
864
865
|
}, [t]);
|
|
865
|
-
return /* @__PURE__ */ n.jsx(
|
|
866
|
+
return /* @__PURE__ */ n.jsx(Ze, { router: e });
|
|
866
867
|
}
|
|
867
868
|
const St = (t) => {
|
|
868
869
|
var o;
|
|
@@ -870,19 +871,19 @@ const St = (t) => {
|
|
|
870
871
|
() => ({ ...Me, ...t.overrides }),
|
|
871
872
|
[t.overrides]
|
|
872
873
|
), s = H(
|
|
873
|
-
() => ({ ...
|
|
874
|
+
() => ({ ...et, ...t.mdxComponents }),
|
|
874
875
|
[t.mdxComponents]
|
|
875
|
-
), a = H(() => new
|
|
876
|
+
), a = H(() => new kt(t), [t]);
|
|
876
877
|
I(() => {
|
|
877
878
|
a.initialize();
|
|
878
879
|
}, [a]);
|
|
879
|
-
const r = (o = t.plugins) == null ? void 0 : o.filter(
|
|
880
|
+
const r = (o = t.plugins) == null ? void 0 : o.filter(Pt).map((l, h) => {
|
|
880
881
|
var d;
|
|
881
882
|
return /* @__PURE__ */ n.jsx(ut, { children: (d = l.getHead) == null ? void 0 : d.call(l) }, h);
|
|
882
883
|
});
|
|
883
|
-
return /* @__PURE__ */ n.jsx(
|
|
884
|
+
return /* @__PURE__ */ n.jsx(tt, { client: Oe, children: /* @__PURE__ */ n.jsxs(st, { children: [
|
|
884
885
|
/* @__PURE__ */ n.jsx(je, { children: r }),
|
|
885
|
-
/* @__PURE__ */ n.jsx(
|
|
886
|
+
/* @__PURE__ */ n.jsx(at, { value: a, children: /* @__PURE__ */ n.jsx(nt, { components: s, children: /* @__PURE__ */ n.jsx(rt, { children: /* @__PURE__ */ n.jsx(Mt, { value: e, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(
|
|
886
887
|
we,
|
|
887
888
|
{
|
|
888
889
|
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
@@ -901,7 +902,8 @@ const St = (t) => {
|
|
|
901
902
|
}, Ft = Pe(St);
|
|
902
903
|
Ft.displayName = "DevPortal";
|
|
903
904
|
export {
|
|
905
|
+
Vt as Callout,
|
|
904
906
|
Ft as DevPortal,
|
|
905
|
-
|
|
906
|
-
|
|
907
|
+
Ut as Link,
|
|
908
|
+
Wt as useMDXComponents
|
|
907
909
|
};
|