zudoku 0.63.0 → 0.63.1
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/entry.server.js +14 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -0
- package/dist/lib/core/ZudokuContext.d.ts +1 -0
- package/dist/lib/core/ZudokuContext.js +2 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -0
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +4 -9
- package/dist/lib/plugins/openapi/index.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-markdown-export.js +4 -2
- package/dist/vite/plugin-markdown-export.js.map +1 -1
- package/lib/{MdxPage-DFRNwSsc.js → MdxPage-1xaNI6q_.js} +81 -80
- package/lib/MdxPage-1xaNI6q_.js.map +1 -0
- package/lib/{OAuthErrorPage-DJUOdr6Q.js → OAuthErrorPage-Du_4sFER.js} +3 -3
- package/lib/{OAuthErrorPage-DJUOdr6Q.js.map → OAuthErrorPage-Du_4sFER.js.map} +1 -1
- package/lib/{OasProvider-D2NYAaBN.js → OasProvider-0xiB5cKH.js} +2 -2
- package/lib/{OasProvider-D2NYAaBN.js.map → OasProvider-0xiB5cKH.js.map} +1 -1
- package/lib/{OperationList-DmXCI4NU.js → OperationList-BzWKTkNq.js} +5 -5
- package/lib/{OperationList-DmXCI4NU.js.map → OperationList-BzWKTkNq.js.map} +1 -1
- package/lib/{Pagination-CT4VUR6u.js → Pagination-DOcPyfy_.js} +2 -2
- package/lib/{Pagination-CT4VUR6u.js.map → Pagination-DOcPyfy_.js.map} +1 -1
- package/lib/{SchemaList-uElsscMN.js → SchemaList-Dea2Skqv.js} +3 -3
- package/lib/{SchemaList-uElsscMN.js.map → SchemaList-Dea2Skqv.js.map} +1 -1
- package/lib/{SchemaView-CNQ3VAbI.js → SchemaView-H9glU5P7.js} +2 -2
- package/lib/{SchemaView-CNQ3VAbI.js.map → SchemaView-H9glU5P7.js.map} +1 -1
- package/lib/{SignUp-BraHuRN_.js → SignUp-DUZ4yUmQ.js} +2 -2
- package/lib/{SignUp-BraHuRN_.js.map → SignUp-DUZ4yUmQ.js.map} +1 -1
- package/lib/{circular-BWT7_Ahq.js → circular-OGtD_zFg.js} +2 -2
- package/lib/{circular-BWT7_Ahq.js.map → circular-OGtD_zFg.js.map} +1 -1
- package/lib/{createServer-zhJZSgor.js → createServer-DyUc5BPr.js} +3 -3
- package/lib/{createServer-zhJZSgor.js.map → createServer-DyUc5BPr.js.map} +1 -1
- package/lib/{errors-XqO6MsfU.js → errors-7_i0Oyw4.js} +2 -2
- package/lib/{errors-XqO6MsfU.js.map → errors-7_i0Oyw4.js.map} +1 -1
- package/lib/{index-BPSpOxTK.js → index-CLJGtw_S.js} +147 -146
- package/lib/index-CLJGtw_S.js.map +1 -0
- package/lib/{index-D8Btv4uT.js → index-PdgTSEkk.js} +385 -399
- package/lib/{index-D8Btv4uT.js.map → index-PdgTSEkk.js.map} +1 -1
- package/lib/zudoku.__internal.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +3 -3
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +3 -3
- package/lib/zudoku.auth-supabase.js +1 -1
- package/lib/zudoku.components.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-markdown.js +10 -9
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -5
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +4 -4
- package/src/app/entry.server.tsx +16 -6
- package/src/app/main.css +42 -0
- package/src/lib/authentication/authentication.ts +3 -1
- package/src/lib/core/ZudokuContext.ts +3 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +4 -1
- package/src/lib/plugins/markdown/index.tsx +2 -0
- package/src/lib/plugins/openapi/index.tsx +9 -29
- package/lib/MdxPage-DFRNwSsc.js.map +0 -1
- package/lib/index-BPSpOxTK.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { z as
|
|
3
|
-
import { b2 as Ee, ac as
|
|
1
|
+
import { H as je } from "./index.esm-BnYHxCYC.js";
|
|
2
|
+
import { z as Se, M as nt, J as ot, a as st } from "./useExposedProps-Cd7Yg_uG.js";
|
|
3
|
+
import { b2 as Ee, ac as at, L as re, c as we, O as it } from "./chunk-PVWAREVJ-BO6B-RAk.js";
|
|
4
4
|
import { u as q } from "./hook-CAebs2rv.js";
|
|
5
|
-
import { Button as
|
|
6
|
-
import { Callout as
|
|
5
|
+
import { Button as ct } from "./ui/Button.js";
|
|
6
|
+
import { Callout as lt } from "./ui/Callout.js";
|
|
7
7
|
import { C as F } from "./ClientOnly-E7hGysn1.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { E as xt, a as R, d as yt, b as bt, c as jt, V as
|
|
8
|
+
import { u as ie, j as z, a as O, o as Ce, p as ut, q as dt, b as ft, N as mt, Z as ht, i as pt, d as gt, C as vt } from "./ZudokuContext-BXTZApgy.js";
|
|
9
|
+
import { E as xt, a as R, d as yt, b as bt, c as jt, V as St, M as Et, T as wt } from "./ErrorAlert-VBJ8aHH7.js";
|
|
10
10
|
import { S as Ct } from "./Spinner-CI6bRyZw.js";
|
|
11
11
|
import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
12
|
-
import { Component as Pt, createElement as
|
|
13
|
-
import { isNavigationPlugin as
|
|
12
|
+
import { Component as Pt, createElement as ce, createContext as ne, useState as L, useRef as D, useCallback as A, useEffect as $, Suspense as Pe, memo as Ne, useMemo as W, useContext as Nt } from "react";
|
|
13
|
+
import { isNavigationPlugin as le, isAuthenticationPlugin as Tt, isEventConsumerPlugin as _t, needsInitialization as At, isApiIdentityPlugin as Mt, isProfileMenuPlugin as Te, isSearchPlugin as Rt, isMdxProviderPlugin as kt, hasHead as Ot } from "./zudoku.plugins.js";
|
|
14
14
|
import { B as J } from "./Button-DmS4u8Lj.js";
|
|
15
15
|
import { c as k } from "./cn-dYga0KKN.js";
|
|
16
16
|
import { DropdownMenu as $t, DropdownMenuTrigger as It, DropdownMenuContent as Dt, DropdownMenuLabel as Ft, DropdownMenuSeparator as X, DropdownMenuSub as Lt, DropdownMenuSubTrigger as qt, DropdownMenuPortal as zt, DropdownMenuSubContent as Bt, DropdownMenuItem as Yt } from "./ui/DropdownMenu.js";
|
|
@@ -83,13 +83,13 @@ class nr extends Pt {
|
|
|
83
83
|
if (typeof n == "function")
|
|
84
84
|
d = n(v);
|
|
85
85
|
else if (o)
|
|
86
|
-
d =
|
|
86
|
+
d = ce(o, v);
|
|
87
87
|
else if (i !== void 0)
|
|
88
88
|
d = i;
|
|
89
89
|
else
|
|
90
90
|
throw s;
|
|
91
91
|
}
|
|
92
|
-
return
|
|
92
|
+
return ce(rr.Provider, {
|
|
93
93
|
value: {
|
|
94
94
|
didCatch: c,
|
|
95
95
|
error: s,
|
|
@@ -114,7 +114,7 @@ let sr = () => ({
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
const ar = (e) => Object.entries(e),
|
|
117
|
+
const ar = (e) => Object.entries(e), ue = (e) => {
|
|
118
118
|
if (e)
|
|
119
119
|
return Array.isArray(e) ? Object.fromEntries(
|
|
120
120
|
e.map((t) => [
|
|
@@ -129,6 +129,7 @@ class ir {
|
|
|
129
129
|
meta;
|
|
130
130
|
site;
|
|
131
131
|
authentication;
|
|
132
|
+
getAuthState;
|
|
132
133
|
queryClient;
|
|
133
134
|
options;
|
|
134
135
|
navigationPlugins;
|
|
@@ -137,18 +138,18 @@ class ir {
|
|
|
137
138
|
const i = {
|
|
138
139
|
...Object.fromEntries(
|
|
139
140
|
(t.plugins ?? []).flatMap((c) => {
|
|
140
|
-
if (!
|
|
141
|
+
if (!le(c)) return [];
|
|
141
142
|
const s = c.getProtectedRoutes?.();
|
|
142
|
-
return s ? Object.entries(
|
|
143
|
+
return s ? Object.entries(ue(s) ?? {}) : [];
|
|
143
144
|
})
|
|
144
145
|
),
|
|
145
|
-
...
|
|
146
|
+
...ue(t.protectedRoutes)
|
|
146
147
|
};
|
|
147
|
-
this.queryClient = n, this.options = { ...t, protectedRoutes: i }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(
|
|
148
|
+
this.queryClient = n, this.options = { ...t, protectedRoutes: i }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(le), this.authentication = this.plugins.find(Tt), this.getAuthState = ie.getState, this.meta = t.metadata, this.site = t.site, this.plugins.forEach((c) => {
|
|
148
149
|
_t(c) && ar(c.events).forEach(([s, d]) => {
|
|
149
150
|
this.emitter.on(s, d);
|
|
150
151
|
});
|
|
151
|
-
}),
|
|
152
|
+
}), ie.subscribe((c, s) => {
|
|
152
153
|
this.emitEvent("auth", {
|
|
153
154
|
prev: s,
|
|
154
155
|
next: c
|
|
@@ -157,11 +158,11 @@ class ir {
|
|
|
157
158
|
}
|
|
158
159
|
initialize = async () => {
|
|
159
160
|
await Promise.all(
|
|
160
|
-
this.plugins.filter(
|
|
161
|
+
this.plugins.filter(At).map((t) => t.initialize?.(this))
|
|
161
162
|
);
|
|
162
163
|
};
|
|
163
164
|
getApiIdentities = async () => (await Promise.all(
|
|
164
|
-
this.plugins.filter(
|
|
165
|
+
this.plugins.filter(Mt).map((n) => n.getIdentities(this))
|
|
165
166
|
)).flat();
|
|
166
167
|
addEventListener(t, n) {
|
|
167
168
|
return this.emitter.on(t, n);
|
|
@@ -172,7 +173,7 @@ class ir {
|
|
|
172
173
|
(o) => o.getNavigation?.(z(t), this)
|
|
173
174
|
)
|
|
174
175
|
)).flatMap((o) => o ?? []);
|
|
175
|
-
getProfileMenuItems = () => this.plugins.filter((n) =>
|
|
176
|
+
getProfileMenuItems = () => this.plugins.filter((n) => Te(n)).flatMap((n) => n.getProfileMenuItems(this)).sort(cr(["top", "middle", "bottom"])).sort((n) => n.weight ?? 0);
|
|
176
177
|
signRequest = async (t) => {
|
|
177
178
|
if (!this.authentication)
|
|
178
179
|
throw new Error("No authentication provider configured");
|
|
@@ -186,7 +187,7 @@ const cr = (e) => (t, n) => {
|
|
|
186
187
|
function lr({ error: e }) {
|
|
187
188
|
return /* @__PURE__ */ r.jsx(xt, { error: e });
|
|
188
189
|
}
|
|
189
|
-
const
|
|
190
|
+
const de = ne({ stagger: !1 }), Y = globalThis;
|
|
190
191
|
(!Y.requestIdleCallback || !Y.cancelIdleCallback) && (Y.requestIdleCallback = (e) => setTimeout(e, 1), Y.cancelIdleCallback = clearTimeout);
|
|
191
192
|
function ee({
|
|
192
193
|
className: e,
|
|
@@ -200,7 +201,7 @@ function ee({
|
|
|
200
201
|
}
|
|
201
202
|
);
|
|
202
203
|
}
|
|
203
|
-
const
|
|
204
|
+
const fe = {
|
|
204
205
|
info: "bg-blue-500",
|
|
205
206
|
note: "bg-gray-500",
|
|
206
207
|
tip: "bg-green-600",
|
|
@@ -210,7 +211,7 @@ const de = {
|
|
|
210
211
|
const { site: e } = O(), [t, n] = L(!0);
|
|
211
212
|
if (!e?.banner || !t)
|
|
212
213
|
return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
213
|
-
const o = e.banner.color && e.banner.color in
|
|
214
|
+
const o = e.banner.color && e.banner.color in fe ? fe[e.banner.color] : e.banner.color ? void 0 : "bg-primary", i = o ? {} : { backgroundColor: e.banner.color };
|
|
214
215
|
return /* @__PURE__ */ r.jsxs(
|
|
215
216
|
"div",
|
|
216
217
|
{
|
|
@@ -233,7 +234,7 @@ const de = {
|
|
|
233
234
|
]
|
|
234
235
|
}
|
|
235
236
|
);
|
|
236
|
-
},
|
|
237
|
+
}, _e = (e) => /* @__PURE__ */ r.jsxs(
|
|
237
238
|
"svg",
|
|
238
239
|
{
|
|
239
240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -260,7 +261,7 @@ const de = {
|
|
|
260
261
|
]
|
|
261
262
|
}
|
|
262
263
|
);
|
|
263
|
-
|
|
264
|
+
_e.displayName = "ZudokuLogo";
|
|
264
265
|
const dr = ({ className: e }) => /* @__PURE__ */ r.jsxs(
|
|
265
266
|
"a",
|
|
266
267
|
{
|
|
@@ -273,7 +274,7 @@ const dr = ({ className: e }) => /* @__PURE__ */ r.jsxs(
|
|
|
273
274
|
),
|
|
274
275
|
children: [
|
|
275
276
|
/* @__PURE__ */ r.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
|
|
276
|
-
/* @__PURE__ */ r.jsx(
|
|
277
|
+
/* @__PURE__ */ r.jsx(_e, { className: "w-3.5 h-3.5 dark:fill-white" }),
|
|
277
278
|
"powered by ",
|
|
278
279
|
"Zudoku"
|
|
279
280
|
] }),
|
|
@@ -307,11 +308,11 @@ var Z = { exports: {} }, h = {};
|
|
|
307
308
|
* This source code is licensed under the MIT license found in the
|
|
308
309
|
* LICENSE file in the root directory of this source tree.
|
|
309
310
|
*/
|
|
310
|
-
var
|
|
311
|
+
var me;
|
|
311
312
|
function fr() {
|
|
312
|
-
if (
|
|
313
|
-
|
|
314
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116,
|
|
313
|
+
if (me) return h;
|
|
314
|
+
me = 1;
|
|
315
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
|
|
315
316
|
function j(a) {
|
|
316
317
|
if (typeof a == "object" && a !== null) {
|
|
317
318
|
var x = a.$$typeof;
|
|
@@ -342,12 +343,12 @@ function fr() {
|
|
|
342
343
|
}
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
|
-
function
|
|
346
|
+
function S(a) {
|
|
346
347
|
return j(a) === f;
|
|
347
348
|
}
|
|
348
349
|
return h.AsyncMode = v, h.ConcurrentMode = f, h.ContextConsumer = d, h.ContextProvider = s, h.Element = t, h.ForwardRef = b, h.Fragment = o, h.Lazy = g, h.Memo = l, h.Portal = n, h.Profiler = c, h.StrictMode = i, h.Suspense = y, h.isAsyncMode = function(a) {
|
|
349
|
-
return
|
|
350
|
-
}, h.isConcurrentMode =
|
|
350
|
+
return S(a) || j(a) === v;
|
|
351
|
+
}, h.isConcurrentMode = S, h.isContextConsumer = function(a) {
|
|
351
352
|
return j(a) === d;
|
|
352
353
|
}, h.isContextProvider = function(a) {
|
|
353
354
|
return j(a) === s;
|
|
@@ -370,7 +371,7 @@ function fr() {
|
|
|
370
371
|
}, h.isSuspense = function(a) {
|
|
371
372
|
return j(a) === y;
|
|
372
373
|
}, h.isValidElementType = function(a) {
|
|
373
|
-
return typeof a == "string" || typeof a == "function" || a === o || a === f || a === c || a === i || a === y || a === m || typeof a == "object" && a !== null && (a.$$typeof === g || a.$$typeof === l || a.$$typeof === s || a.$$typeof === d || a.$$typeof === b || a.$$typeof === w || a.$$typeof === C || a.$$typeof === P || a.$$typeof ===
|
|
374
|
+
return typeof a == "string" || typeof a == "function" || a === o || a === f || a === c || a === i || a === y || a === m || typeof a == "object" && a !== null && (a.$$typeof === g || a.$$typeof === l || a.$$typeof === s || a.$$typeof === d || a.$$typeof === b || a.$$typeof === w || a.$$typeof === C || a.$$typeof === P || a.$$typeof === E);
|
|
374
375
|
}, h.typeOf = j, h;
|
|
375
376
|
}
|
|
376
377
|
var p = {};
|
|
@@ -382,15 +383,15 @@ var p = {};
|
|
|
382
383
|
* This source code is licensed under the MIT license found in the
|
|
383
384
|
* LICENSE file in the root directory of this source tree.
|
|
384
385
|
*/
|
|
385
|
-
var
|
|
386
|
+
var he;
|
|
386
387
|
function mr() {
|
|
387
|
-
return
|
|
388
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116,
|
|
388
|
+
return he || (he = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
389
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
|
|
389
390
|
function j(u) {
|
|
390
391
|
return typeof u == "string" || typeof u == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
391
|
-
u === o || u === f || u === c || u === i || u === y || u === m || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === l || u.$$typeof === s || u.$$typeof === d || u.$$typeof === b || u.$$typeof === w || u.$$typeof === C || u.$$typeof === P || u.$$typeof ===
|
|
392
|
+
u === o || u === f || u === c || u === i || u === y || u === m || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === l || u.$$typeof === s || u.$$typeof === d || u.$$typeof === b || u.$$typeof === w || u.$$typeof === C || u.$$typeof === P || u.$$typeof === E);
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
+
function S(u) {
|
|
394
395
|
if (typeof u == "object" && u !== null) {
|
|
395
396
|
var V = u.$$typeof;
|
|
396
397
|
switch (V) {
|
|
@@ -422,57 +423,57 @@ function mr() {
|
|
|
422
423
|
}
|
|
423
424
|
}
|
|
424
425
|
}
|
|
425
|
-
var a = v, x = f, N = d, T = s, I = t, _ = b, U = o,
|
|
426
|
-
function
|
|
427
|
-
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), se(u) ||
|
|
426
|
+
var a = v, x = f, N = d, T = s, I = t, _ = b, U = o, M = g, qe = l, ze = n, Be = c, Ye = i, Ze = y, oe = !1;
|
|
427
|
+
function He(u) {
|
|
428
|
+
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), se(u) || S(u) === v;
|
|
428
429
|
}
|
|
429
430
|
function se(u) {
|
|
430
|
-
return
|
|
431
|
-
}
|
|
432
|
-
function He(u) {
|
|
433
|
-
return E(u) === d;
|
|
431
|
+
return S(u) === f;
|
|
434
432
|
}
|
|
435
433
|
function Ke(u) {
|
|
436
|
-
return
|
|
434
|
+
return S(u) === d;
|
|
437
435
|
}
|
|
438
436
|
function Ue(u) {
|
|
439
|
-
return
|
|
437
|
+
return S(u) === s;
|
|
440
438
|
}
|
|
441
439
|
function Ve(u) {
|
|
442
|
-
return
|
|
440
|
+
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
443
441
|
}
|
|
444
442
|
function We(u) {
|
|
445
|
-
return
|
|
443
|
+
return S(u) === b;
|
|
446
444
|
}
|
|
447
445
|
function Xe(u) {
|
|
448
|
-
return
|
|
446
|
+
return S(u) === o;
|
|
449
447
|
}
|
|
450
448
|
function Ge(u) {
|
|
451
|
-
return
|
|
449
|
+
return S(u) === g;
|
|
452
450
|
}
|
|
453
451
|
function Qe(u) {
|
|
454
|
-
return
|
|
452
|
+
return S(u) === l;
|
|
455
453
|
}
|
|
456
454
|
function Je(u) {
|
|
457
|
-
return
|
|
455
|
+
return S(u) === n;
|
|
458
456
|
}
|
|
459
457
|
function et(u) {
|
|
460
|
-
return
|
|
458
|
+
return S(u) === c;
|
|
461
459
|
}
|
|
462
460
|
function tt(u) {
|
|
463
|
-
return
|
|
461
|
+
return S(u) === i;
|
|
462
|
+
}
|
|
463
|
+
function rt(u) {
|
|
464
|
+
return S(u) === y;
|
|
464
465
|
}
|
|
465
|
-
p.AsyncMode = a, p.ConcurrentMode = x, p.ContextConsumer = N, p.ContextProvider = T, p.Element = I, p.ForwardRef = _, p.Fragment = U, p.Lazy =
|
|
466
|
+
p.AsyncMode = a, p.ConcurrentMode = x, p.ContextConsumer = N, p.ContextProvider = T, p.Element = I, p.ForwardRef = _, p.Fragment = U, p.Lazy = M, p.Memo = qe, p.Portal = ze, p.Profiler = Be, p.StrictMode = Ye, p.Suspense = Ze, p.isAsyncMode = He, p.isConcurrentMode = se, p.isContextConsumer = Ke, p.isContextProvider = Ue, p.isElement = Ve, p.isForwardRef = We, p.isFragment = Xe, p.isLazy = Ge, p.isMemo = Qe, p.isPortal = Je, p.isProfiler = et, p.isStrictMode = tt, p.isSuspense = rt, p.isValidElementType = j, p.typeOf = S;
|
|
466
467
|
})()), p;
|
|
467
468
|
}
|
|
468
|
-
var
|
|
469
|
+
var pe;
|
|
469
470
|
function hr() {
|
|
470
|
-
return
|
|
471
|
+
return pe || (pe = 1, process.env.NODE_ENV === "production" ? Z.exports = fr() : Z.exports = mr()), Z.exports;
|
|
471
472
|
}
|
|
472
|
-
var Q,
|
|
473
|
+
var Q, ge;
|
|
473
474
|
function pr() {
|
|
474
|
-
if (
|
|
475
|
-
|
|
475
|
+
if (ge) return Q;
|
|
476
|
+
ge = 1;
|
|
476
477
|
var e = hr(), t = {
|
|
477
478
|
childContextTypes: !0,
|
|
478
479
|
contextType: !0,
|
|
@@ -512,18 +513,18 @@ function pr() {
|
|
|
512
513
|
return e.isMemo(g) ? i : c[g.$$typeof] || t;
|
|
513
514
|
}
|
|
514
515
|
var d = Object.defineProperty, v = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, y = Object.getPrototypeOf, m = Object.prototype;
|
|
515
|
-
function l(g,
|
|
516
|
-
if (typeof
|
|
516
|
+
function l(g, E, w) {
|
|
517
|
+
if (typeof E != "string") {
|
|
517
518
|
if (m) {
|
|
518
|
-
var C = y(
|
|
519
|
+
var C = y(E);
|
|
519
520
|
C && C !== m && l(g, C, w);
|
|
520
521
|
}
|
|
521
|
-
var P = v(
|
|
522
|
-
f && (P = P.concat(f(
|
|
523
|
-
for (var j = s(g),
|
|
522
|
+
var P = v(E);
|
|
523
|
+
f && (P = P.concat(f(E)));
|
|
524
|
+
for (var j = s(g), S = s(E), a = 0; a < P.length; ++a) {
|
|
524
525
|
var x = P[a];
|
|
525
|
-
if (!n[x] && !(w && w[x]) && !(
|
|
526
|
-
var N = b(
|
|
526
|
+
if (!n[x] && !(w && w[x]) && !(S && S[x]) && !(j && j[x])) {
|
|
527
|
+
var N = b(E, x);
|
|
527
528
|
try {
|
|
528
529
|
d(g, x, N);
|
|
529
530
|
} catch {
|
|
@@ -536,7 +537,7 @@ function pr() {
|
|
|
536
537
|
return Q = l, Q;
|
|
537
538
|
}
|
|
538
539
|
pr();
|
|
539
|
-
var
|
|
540
|
+
var Ae = function(t, n, o) {
|
|
540
541
|
return t = t <= o ? t : o, t = t >= n ? t : n, t;
|
|
541
542
|
}, gr = function() {
|
|
542
543
|
var t = !1, n = [], o = function() {
|
|
@@ -573,56 +574,56 @@ var _e = function(t, n, o) {
|
|
|
573
574
|
};
|
|
574
575
|
}, xr = function(t) {
|
|
575
576
|
var n = 0;
|
|
576
|
-
return t >= 0 && t < 0.2 ? n = 0.1 : t >= 0.2 && t < 0.5 ? n = 0.04 : t >= 0.5 && t < 0.8 ? n = 0.02 : t >= 0.8 && t < 0.99 && (n = 5e-3),
|
|
577
|
-
},
|
|
577
|
+
return t >= 0 && t < 0.2 ? n = 0.1 : t >= 0.2 && t < 0.5 ? n = 0.04 : t >= 0.5 && t < 0.8 ? n = 0.02 : t >= 0.8 && t < 0.99 && (n = 5e-3), Ae(t + n, 0, 0.994);
|
|
578
|
+
}, ve = function(t) {
|
|
578
579
|
$(t, []);
|
|
579
580
|
}, yr = function(t) {
|
|
580
581
|
return ++t % 1e6;
|
|
581
582
|
}, br = function() {
|
|
582
583
|
var t = L(0), n = t[1];
|
|
583
|
-
return
|
|
584
|
+
return A(function() {
|
|
584
585
|
return n(yr);
|
|
585
586
|
}, []);
|
|
586
587
|
}, jr = function(t) {
|
|
587
588
|
t === void 0 && (t = {});
|
|
588
|
-
var n = br(), o = D(K({}, t)), i =
|
|
589
|
+
var n = br(), o = D(K({}, t)), i = A(function() {
|
|
589
590
|
return o.current;
|
|
590
|
-
}, []), c =
|
|
591
|
+
}, []), c = A(function(s) {
|
|
591
592
|
s && (Object.assign(o.current, s), n());
|
|
592
593
|
}, []);
|
|
593
594
|
return [i, c];
|
|
594
|
-
},
|
|
595
|
+
}, Sr = function() {
|
|
595
596
|
var t = D(!0);
|
|
596
597
|
return t.current ? (t.current = !1, !0) : t.current;
|
|
597
|
-
},
|
|
598
|
-
var o =
|
|
598
|
+
}, xe = function(t, n) {
|
|
599
|
+
var o = Sr();
|
|
599
600
|
$(function() {
|
|
600
601
|
if (!o)
|
|
601
602
|
return t();
|
|
602
603
|
}, n);
|
|
603
604
|
}, Me = function() {
|
|
604
|
-
},
|
|
605
|
+
}, ye = {
|
|
605
606
|
isFinished: !0,
|
|
606
607
|
progress: 0,
|
|
607
608
|
sideEffect: Me
|
|
608
|
-
},
|
|
609
|
-
var n = t === void 0 ? {} : t, o = n.animationDuration, i = o === void 0 ? 200 : o, c = n.incrementDuration, s = c === void 0 ? 800 : c, d = n.isAnimating, v = d === void 0 ? !1 : d, f = n.minimum, b = f === void 0 ? 0.08 : f, y = jr(
|
|
610
|
-
|
|
611
|
-
g.current = gr(),
|
|
609
|
+
}, Er = function(t) {
|
|
610
|
+
var n = t === void 0 ? {} : t, o = n.animationDuration, i = o === void 0 ? 200 : o, c = n.incrementDuration, s = c === void 0 ? 800 : c, d = n.isAnimating, v = d === void 0 ? !1 : d, f = n.minimum, b = f === void 0 ? 0.08 : f, y = jr(ye), m = y[0], l = y[1], g = D(null), E = D(null);
|
|
611
|
+
ve(function() {
|
|
612
|
+
g.current = gr(), E.current = vr();
|
|
612
613
|
});
|
|
613
|
-
var w =
|
|
614
|
+
var w = A(function() {
|
|
614
615
|
var x, N;
|
|
615
|
-
(x =
|
|
616
|
-
}, []), C =
|
|
616
|
+
(x = E.current) == null || x.cancel(), (N = g.current) == null || N.clear();
|
|
617
|
+
}, []), C = A(function(x) {
|
|
617
618
|
var N;
|
|
618
|
-
if (x =
|
|
619
|
+
if (x = Ae(x, b, 1), x === 1) {
|
|
619
620
|
var T, I;
|
|
620
621
|
w(), (T = g.current) == null || T.enqueue(function(_) {
|
|
621
622
|
l({
|
|
622
623
|
progress: x,
|
|
623
624
|
sideEffect: function() {
|
|
624
|
-
var
|
|
625
|
-
return (
|
|
625
|
+
var M;
|
|
626
|
+
return (M = E.current) == null ? void 0 : M.schedule(_, i);
|
|
626
627
|
}
|
|
627
628
|
});
|
|
628
629
|
}), (I = g.current) == null || I.enqueue(function() {
|
|
@@ -638,33 +639,33 @@ var _e = function(t, n, o) {
|
|
|
638
639
|
isFinished: !1,
|
|
639
640
|
progress: x,
|
|
640
641
|
sideEffect: function() {
|
|
641
|
-
var
|
|
642
|
-
return (
|
|
642
|
+
var M;
|
|
643
|
+
return (M = E.current) == null ? void 0 : M.schedule(_, i);
|
|
643
644
|
}
|
|
644
645
|
});
|
|
645
646
|
});
|
|
646
|
-
}, [i, w, b, g, l,
|
|
647
|
+
}, [i, w, b, g, l, E]), P = A(function() {
|
|
647
648
|
C(xr(m().progress));
|
|
648
|
-
}, [m, C]), j =
|
|
649
|
+
}, [m, C]), j = A(function() {
|
|
649
650
|
var x = function() {
|
|
650
651
|
var T;
|
|
651
652
|
P(), (T = g.current) == null || T.enqueue(function(I) {
|
|
652
653
|
var _;
|
|
653
|
-
(_ =
|
|
654
|
+
(_ = E.current) == null || _.schedule(function() {
|
|
654
655
|
x(), I();
|
|
655
656
|
}, s);
|
|
656
657
|
});
|
|
657
658
|
};
|
|
658
659
|
x();
|
|
659
|
-
}, [s, g,
|
|
660
|
+
}, [s, g, E, P]), S = D(Me), a = m().sideEffect;
|
|
660
661
|
return $(function() {
|
|
661
|
-
|
|
662
|
-
}), ge(function() {
|
|
663
|
-
return v && j(), w;
|
|
662
|
+
S.current = P;
|
|
664
663
|
}), ve(function() {
|
|
664
|
+
return v && j(), w;
|
|
665
|
+
}), xe(function() {
|
|
665
666
|
m().sideEffect();
|
|
666
|
-
}, [m, a]),
|
|
667
|
-
v ? l(K({},
|
|
667
|
+
}, [m, a]), xe(function() {
|
|
668
|
+
v ? l(K({}, ye, {
|
|
668
669
|
sideEffect: j
|
|
669
670
|
})) : C(1);
|
|
670
671
|
}, [v, C, l, j]), {
|
|
@@ -673,13 +674,13 @@ var _e = function(t, n, o) {
|
|
|
673
674
|
progress: m().progress
|
|
674
675
|
};
|
|
675
676
|
};
|
|
676
|
-
const
|
|
677
|
+
const Re = () => {
|
|
677
678
|
const t = Ee().state === "loading", [n, o] = L(!1);
|
|
678
679
|
$(() => {
|
|
679
680
|
const s = setTimeout(() => o(t), 200);
|
|
680
681
|
return () => clearTimeout(s);
|
|
681
682
|
}, [t]);
|
|
682
|
-
const { isFinished: i, progress: c } =
|
|
683
|
+
const { isFinished: i, progress: c } = Er({ isAnimating: n });
|
|
683
684
|
return /* @__PURE__ */ r.jsx(
|
|
684
685
|
"div",
|
|
685
686
|
{
|
|
@@ -697,8 +698,8 @@ function wr() {
|
|
|
697
698
|
if (e.includes("mac")) return "macOS";
|
|
698
699
|
if (e.includes("linux")) return "Linux";
|
|
699
700
|
}
|
|
700
|
-
const
|
|
701
|
-
const t = O(), [n, o] = L(!1), i =
|
|
701
|
+
const ke = ({ className: e }) => {
|
|
702
|
+
const t = O(), [n, o] = L(!1), i = A(() => o(!1), []);
|
|
702
703
|
$(() => {
|
|
703
704
|
if (n)
|
|
704
705
|
return;
|
|
@@ -726,7 +727,7 @@ const Re = ({ className: e }) => {
|
|
|
726
727
|
]
|
|
727
728
|
}
|
|
728
729
|
),
|
|
729
|
-
/* @__PURE__ */ r.jsx(
|
|
730
|
+
/* @__PURE__ */ r.jsx(Pe, { fallback: null, children: c.renderSearch({
|
|
730
731
|
isOpen: n,
|
|
731
732
|
onClose: i
|
|
732
733
|
}) })
|
|
@@ -737,8 +738,8 @@ const Re = ({ className: e }) => {
|
|
|
737
738
|
e === "macOS" ? "⌘" : "Ctrl",
|
|
738
739
|
"+K"
|
|
739
740
|
] });
|
|
740
|
-
},
|
|
741
|
-
const { resolvedTheme: e, setTheme: t } =
|
|
741
|
+
}, Oe = () => {
|
|
742
|
+
const { resolvedTheme: e, setTheme: t } = Se();
|
|
742
743
|
return /* @__PURE__ */ r.jsx(F, { fallback: /* @__PURE__ */ r.jsx(J, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
|
|
743
744
|
"button",
|
|
744
745
|
{
|
|
@@ -773,12 +774,12 @@ const Re = ({ className: e }) => {
|
|
|
773
774
|
}
|
|
774
775
|
) });
|
|
775
776
|
}, Pr = () => {
|
|
776
|
-
const e = O(), { navigation: t } = e, n = q(), o = t.filter(
|
|
777
|
-
return o.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(
|
|
778
|
-
/* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: o.map((i) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
777
|
+
const e = O(), { navigation: t } = e, n = q(), o = t.filter(Ce(n, e));
|
|
778
|
+
return o.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(Pe, { children: /* @__PURE__ */ r.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
|
|
779
|
+
/* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: o.map((i) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Ie, { ...i }) }, i.label + i.type)) }) }),
|
|
779
780
|
/* @__PURE__ */ r.jsx(R.Target, { name: "top-navigation-side" })
|
|
780
781
|
] }) });
|
|
781
|
-
},
|
|
782
|
+
}, $e = (e) => {
|
|
782
783
|
switch (e.type) {
|
|
783
784
|
case "doc":
|
|
784
785
|
return z(e.path);
|
|
@@ -787,7 +788,7 @@ const Re = ({ className: e }) => {
|
|
|
787
788
|
case "category":
|
|
788
789
|
return e.link?.path ? z(e.link.path) : dt(e, (t) => {
|
|
789
790
|
if (t.type !== "category")
|
|
790
|
-
return
|
|
791
|
+
return $e(t);
|
|
791
792
|
}) ?? "";
|
|
792
793
|
case "custom-page":
|
|
793
794
|
return e.path;
|
|
@@ -797,7 +798,7 @@ const Re = ({ className: e }) => {
|
|
|
797
798
|
children: t,
|
|
798
799
|
...n
|
|
799
800
|
}) => /* @__PURE__ */ r.jsx(
|
|
800
|
-
|
|
801
|
+
at,
|
|
801
802
|
{
|
|
802
803
|
viewTransition: !0,
|
|
803
804
|
className: ({ isActive: o, isPending: i }) => {
|
|
@@ -817,8 +818,8 @@ const Re = ({ className: e }) => {
|
|
|
817
818
|
...n,
|
|
818
819
|
children: t
|
|
819
820
|
}
|
|
820
|
-
),
|
|
821
|
-
const t = ut(), n = yt(t.topNavItem, e), o =
|
|
821
|
+
), Ie = (e) => {
|
|
822
|
+
const t = ut(), n = yt(t.topNavItem, e), o = $e(e);
|
|
822
823
|
return (
|
|
823
824
|
// We don't use isActive here because it has to be inside the navigation,
|
|
824
825
|
// the top nav id doesn't necessarily start with the navigation id
|
|
@@ -828,7 +829,7 @@ const Re = ({ className: e }) => {
|
|
|
828
829
|
] })
|
|
829
830
|
);
|
|
830
831
|
}, Nr = () => {
|
|
831
|
-
const e = O(), t = q(), { navigation: n, options: o, getProfileMenuItems: i } = e, { isAuthenticated: c, profile: s, isAuthEnabled: d } = t, [v, f] = L(!1), b = i(), y = n.filter(
|
|
832
|
+
const e = O(), t = q(), { navigation: n, options: o, getProfileMenuItems: i } = e, { isAuthenticated: c, profile: s, isAuthEnabled: d } = t, [v, f] = L(!1), b = i(), y = n.filter(Ce(t, e));
|
|
832
833
|
return /* @__PURE__ */ r.jsxs(
|
|
833
834
|
Gt,
|
|
834
835
|
{
|
|
@@ -838,7 +839,7 @@ const Re = ({ className: e }) => {
|
|
|
838
839
|
children: [
|
|
839
840
|
/* @__PURE__ */ r.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
|
|
840
841
|
/* @__PURE__ */ r.jsx(Qt, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Wt, { size: 22 }) }),
|
|
841
|
-
/* @__PURE__ */ r.jsx(
|
|
842
|
+
/* @__PURE__ */ r.jsx(Re, {})
|
|
842
843
|
] }),
|
|
843
844
|
/* @__PURE__ */ r.jsx(
|
|
844
845
|
Jt,
|
|
@@ -848,7 +849,7 @@ const Re = ({ className: e }) => {
|
|
|
848
849
|
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
|
|
849
850
|
/* @__PURE__ */ r.jsxs("div", { children: [
|
|
850
851
|
/* @__PURE__ */ r.jsx(Xt, { children: /* @__PURE__ */ r.jsx(er, { children: "Navigation" }) }),
|
|
851
|
-
/* @__PURE__ */ r.jsx(
|
|
852
|
+
/* @__PURE__ */ r.jsx(ke, { className: "flex p-4" }),
|
|
852
853
|
/* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
853
854
|
/* @__PURE__ */ r.jsx("li", { className: "empty:hidden", children: /* @__PURE__ */ r.jsx(R.Target, { name: "top-navigation-side" }) }),
|
|
854
855
|
d && /* @__PURE__ */ r.jsx(
|
|
@@ -868,7 +869,7 @@ const Re = ({ className: e }) => {
|
|
|
868
869
|
) })
|
|
869
870
|
}
|
|
870
871
|
),
|
|
871
|
-
y.map((m) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { type: "button", onClick: () => f(!1), children: /* @__PURE__ */ r.jsx(
|
|
872
|
+
y.map((m) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { type: "button", onClick: () => f(!1), children: /* @__PURE__ */ r.jsx(Ie, { ...m }) }) }, m.label)),
|
|
872
873
|
d && c && b.length > 0 && /* @__PURE__ */ r.jsx(
|
|
873
874
|
F,
|
|
874
875
|
{
|
|
@@ -883,7 +884,7 @@ const Re = ({ className: e }) => {
|
|
|
883
884
|
) }, m.label))
|
|
884
885
|
}
|
|
885
886
|
),
|
|
886
|
-
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
887
|
+
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Oe, {}) })
|
|
887
888
|
] })
|
|
888
889
|
] }),
|
|
889
890
|
o.site?.showPoweredBy !== !1 && /* @__PURE__ */ r.jsx(dr, { className: "grow-0 justify-center gap-1" })
|
|
@@ -899,8 +900,8 @@ const Re = ({ className: e }) => {
|
|
|
899
900
|
] }, e.label) : /* @__PURE__ */ r.jsx(re, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(Yt, { className: "flex gap-2", children: [
|
|
900
901
|
e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
901
902
|
e.label
|
|
902
|
-
] }, e.label) }), Tr =
|
|
903
|
-
const t = q(), { isAuthenticated: n, profile: o, isAuthEnabled: i } = q(), c = O(), { site: s, plugins: d, options: v } = c, f = d.filter((l) =>
|
|
903
|
+
] }, e.label) }), Tr = Ne(function() {
|
|
904
|
+
const t = q(), { isAuthenticated: n, profile: o, isAuthEnabled: i } = q(), c = O(), { site: s, plugins: d, options: v } = c, f = d.filter((l) => Te(l)).flatMap((l) => l.getProfileMenuItems(c)).sort((l) => l.weight ?? 0), b = s?.logo ? /https?:\/\//.test(s.logo.src.light) ? s.logo.src.light : z(v.basePath, s.logo.src.light) : void 0, y = s?.logo ? /https?:\/\//.test(s.logo.src.dark) ? s.logo.src.dark : z(v.basePath, s.logo.src.dark) : void 0, m = "inset-shadow-[0_-1px_0_0_var(--border)]";
|
|
904
905
|
return /* @__PURE__ */ r.jsxs(
|
|
905
906
|
"header",
|
|
906
907
|
{
|
|
@@ -909,7 +910,7 @@ const Re = ({ className: e }) => {
|
|
|
909
910
|
children: [
|
|
910
911
|
/* @__PURE__ */ r.jsx(ur, {}),
|
|
911
912
|
/* @__PURE__ */ r.jsxs("div", { className: k(m, "relative"), children: [
|
|
912
|
-
/* @__PURE__ */ r.jsx(
|
|
913
|
+
/* @__PURE__ */ r.jsx(Re, {}),
|
|
913
914
|
/* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto flex items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent", children: [
|
|
914
915
|
/* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(re, { to: s?.logo?.href ?? "/", children: /* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-3.5", children: s?.logo ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
915
916
|
/* @__PURE__ */ r.jsx(
|
|
@@ -933,7 +934,7 @@ const Re = ({ className: e }) => {
|
|
|
933
934
|
}
|
|
934
935
|
)
|
|
935
936
|
] }) : /* @__PURE__ */ r.jsx("span", { className: "font-semibold text-2xl", children: s?.title }) }) }) }),
|
|
936
|
-
/* @__PURE__ */ r.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ r.jsx(
|
|
937
|
+
/* @__PURE__ */ r.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ r.jsx(ke, { className: "pointer-events-auto" }) }),
|
|
937
938
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
938
939
|
/* @__PURE__ */ r.jsx(Nr, {}),
|
|
939
940
|
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
@@ -964,7 +965,7 @@ const Re = ({ className: e }) => {
|
|
|
964
965
|
}
|
|
965
966
|
),
|
|
966
967
|
/* @__PURE__ */ r.jsx(R.Target, { name: "head-navigation-end" }),
|
|
967
|
-
/* @__PURE__ */ r.jsx(
|
|
968
|
+
/* @__PURE__ */ r.jsx(Oe, {})
|
|
968
969
|
] })
|
|
969
970
|
] })
|
|
970
971
|
] })
|
|
@@ -977,10 +978,10 @@ const Re = ({ className: e }) => {
|
|
|
977
978
|
]
|
|
978
979
|
}
|
|
979
980
|
);
|
|
980
|
-
}),
|
|
981
|
+
}), De = {
|
|
981
982
|
Header: Tr
|
|
982
|
-
}, _r = ne(
|
|
983
|
-
const e =
|
|
983
|
+
}, _r = ne(De), Ar = _r.Provider, Mr = () => {
|
|
984
|
+
const e = we(), t = O(), n = D(void 0);
|
|
984
985
|
return $(() => {
|
|
985
986
|
t.emitEvent("location", {
|
|
986
987
|
from: n.current,
|
|
@@ -994,13 +995,13 @@ const Re = ({ className: e }) => {
|
|
|
994
995
|
queryFn: async () => (await t.initialize(), !0),
|
|
995
996
|
queryKey: ["zudoku-initialize", mt]
|
|
996
997
|
}), /* @__PURE__ */ r.jsx(ht.Provider, { value: t, children: e }));
|
|
997
|
-
let
|
|
998
|
-
const
|
|
998
|
+
let be;
|
|
999
|
+
const Fe = Ne(
|
|
999
1000
|
({ children: e, ...t }) => {
|
|
1000
1001
|
const n = W(
|
|
1001
|
-
() => ({ ...
|
|
1002
|
+
() => ({ ...De, ...t.overrides }),
|
|
1002
1003
|
[t.overrides]
|
|
1003
|
-
), o =
|
|
1004
|
+
), o = we(), i = W(() => ({
|
|
1004
1005
|
...(t.plugins ?? []).filter(kt).flatMap(
|
|
1005
1006
|
(l) => l.getMdxComponents ? [l.getMdxComponents()] : []
|
|
1006
1007
|
).reduce(
|
|
@@ -1009,29 +1010,29 @@ const De = Pe(
|
|
|
1009
1010
|
),
|
|
1010
1011
|
...bt,
|
|
1011
1012
|
...t.mdx?.components
|
|
1012
|
-
}), [t.mdx?.components, t.plugins]), { stagger: c } = Nt(
|
|
1013
|
+
}), [t.mdx?.components, t.plugins]), { stagger: c } = Nt(de), [s, d] = L(!1), v = W(
|
|
1013
1014
|
() => s ? { stagger: !0 } : { stagger: c },
|
|
1014
1015
|
[c, s]
|
|
1015
1016
|
), f = Ee(), b = pt();
|
|
1016
1017
|
$(() => {
|
|
1017
1018
|
s || !f.location || d(!0);
|
|
1018
|
-
}, [s, f.location]),
|
|
1019
|
+
}, [s, f.location]), be ??= new ir(t, b);
|
|
1019
1020
|
const y = t.plugins?.flatMap(
|
|
1020
1021
|
(m) => Ot(m) ? m.getHead?.({ location: o }) ?? [] : []
|
|
1021
|
-
).map((m, l) => /* @__PURE__ */ r.jsx(
|
|
1022
|
+
).map((m, l) => /* @__PURE__ */ r.jsx(je, { children: m }, l));
|
|
1022
1023
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1023
1024
|
y,
|
|
1024
|
-
/* @__PURE__ */ r.jsx(
|
|
1025
|
-
/* @__PURE__ */ r.jsx(
|
|
1026
|
-
/* @__PURE__ */ r.jsx(jt, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ r.jsx(
|
|
1025
|
+
/* @__PURE__ */ r.jsx(de.Provider, { value: v, children: /* @__PURE__ */ r.jsxs(Rr, { context: be, children: [
|
|
1026
|
+
/* @__PURE__ */ r.jsx(Mr, {}),
|
|
1027
|
+
/* @__PURE__ */ r.jsx(jt, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ r.jsx(nt, { components: i, children: /* @__PURE__ */ r.jsx(ot, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(Ar, { value: n, children: /* @__PURE__ */ r.jsx(St, { children: e ?? /* @__PURE__ */ r.jsx(it, {}) }) }) }) }) })
|
|
1027
1028
|
] }) })
|
|
1028
1029
|
] });
|
|
1029
1030
|
}
|
|
1030
1031
|
);
|
|
1031
|
-
|
|
1032
|
-
const
|
|
1033
|
-
|
|
1034
|
-
const Jr =
|
|
1032
|
+
Fe.displayName = "ZudokoInner";
|
|
1033
|
+
const Le = (e) => /* @__PURE__ */ r.jsx(nr, { FallbackComponent: lr, children: /* @__PURE__ */ r.jsx(Fe, { ...e }) });
|
|
1034
|
+
Le.displayName = "Zudoku";
|
|
1035
|
+
const Jr = je, en = lt, tn = Et, rn = Ct, nn = F, on = ct, sn = re, an = Le, cn = wt, ln = R, un = st, dn = O, fn = q, mn = gt, hn = vt, pn = Se;
|
|
1035
1036
|
export {
|
|
1036
1037
|
on as B,
|
|
1037
1038
|
en as C,
|
|
@@ -1043,8 +1044,8 @@ export {
|
|
|
1043
1044
|
rn as S,
|
|
1044
1045
|
cn as T,
|
|
1045
1046
|
an as Z,
|
|
1046
|
-
|
|
1047
|
-
|
|
1047
|
+
de as a,
|
|
1048
|
+
Er as b,
|
|
1048
1049
|
Jr as c,
|
|
1049
1050
|
nn as d,
|
|
1050
1051
|
ln as e,
|
|
@@ -1055,4 +1056,4 @@ export {
|
|
|
1055
1056
|
pn as j,
|
|
1056
1057
|
dn as u
|
|
1057
1058
|
};
|
|
1058
|
-
//# sourceMappingURL=index-
|
|
1059
|
+
//# sourceMappingURL=index-CLJGtw_S.js.map
|