zudoku 0.26.0 → 0.26.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/config/config.d.ts +1 -0
- package/dist/config/loader.js +1 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/common.d.ts +11 -0
- package/dist/config/validators/common.js +1 -0
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +5 -0
- package/dist/lib/authentication/providers/auth0.js +1 -1
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +1 -1
- package/dist/lib/authentication/providers/openid.js +10 -6
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +12 -0
- package/dist/lib/components/Autocomplete.js +47 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Header.js +3 -3
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/index.js +2 -2
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +8 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +12 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.js +66 -4
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +5 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +36 -11
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +20 -30
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +2 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +5 -3
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +49 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +10 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +131 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +9 -1
- package/dist/lib/ui/Command.js +5 -1
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/vite/build.js +10 -10
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +4 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +4 -1
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +1 -1
- package/dist/vite/plugin-api.js +23 -5
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +4 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-mdx.js +9 -4
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/prerender.d.ts +2 -2
- package/dist/vite/prerender.js +4 -4
- package/dist/vite/prerender.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
- package/dist/zuplo/enrich-with-zuplo.js +184 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/env.d.ts +1 -0
- package/dist/zuplo/env.js +3 -0
- package/dist/zuplo/env.js.map +1 -1
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +8 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +26 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +1 -2
- package/dist/zuplo/with-zuplo.js +6 -27
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{AnchorLink-_Vu02ceN.js → AnchorLink-bObQitZv.js} +2 -2
- package/lib/{AnchorLink-_Vu02ceN.js.map → AnchorLink-bObQitZv.js.map} +1 -1
- package/lib/{AuthenticationPlugin-DNXBcsVN.js → AuthenticationPlugin-C9SwOxkc.js} +3 -3
- package/lib/{AuthenticationPlugin-DNXBcsVN.js.map → AuthenticationPlugin-C9SwOxkc.js.map} +1 -1
- package/lib/{Markdown-BrfrjEk_.js → Markdown-DFN6p0J-.js} +2 -2
- package/lib/{Markdown-BrfrjEk_.js.map → Markdown-DFN6p0J-.js.map} +1 -1
- package/lib/{MdxPage-LNZLj_A5.js → MdxPage-D9c4z09Q.js} +63 -58
- package/lib/MdxPage-D9c4z09Q.js.map +1 -0
- package/lib/{OperationList-PCwzTp1r.js → OperationList-DGJWDx1G.js} +875 -871
- package/lib/{OperationList-PCwzTp1r.js.map → OperationList-DGJWDx1G.js.map} +1 -1
- package/lib/{Route-Pzk6qwIk.js → Route-VdmEyOD0.js} +3 -3
- package/lib/{Route-Pzk6qwIk.js.map → Route-VdmEyOD0.js.map} +1 -1
- package/lib/{Select-DkOpAG0c.js → Select-D3O7wISy.js} +3 -3
- package/lib/{Select-DkOpAG0c.js.map → Select-D3O7wISy.js.map} +1 -1
- package/lib/{SlotletProvider-DPbx9KdU.js → SlotletProvider-_3zzX_g_.js} +4 -4
- package/lib/{SlotletProvider-DPbx9KdU.js.map → SlotletProvider-_3zzX_g_.js.map} +1 -1
- package/lib/{Button-oroWHXAy.js → Spinner-BlzrEEk1.js} +15 -12
- package/lib/Spinner-BlzrEEk1.js.map +1 -0
- package/lib/{ZudokuContext-D3ayHjP-.js → ZudokuContext-DeQZEp-x.js} +2 -2
- package/lib/{ZudokuContext-D3ayHjP-.js.map → ZudokuContext-DeQZEp-x.js.map} +1 -1
- package/lib/{chunk-SYFQ2XB5-KWlHsT7t.js → chunk-SYFQ2XB5-BF5IDYrB.js} +6 -5
- package/lib/{chunk-SYFQ2XB5-KWlHsT7t.js.map → chunk-SYFQ2XB5-BF5IDYrB.js.map} +1 -1
- package/lib/{hook-DUyACbIK.js → hook-BRQEDRbn.js} +2 -2
- package/lib/{hook-DUyACbIK.js.map → hook-BRQEDRbn.js.map} +1 -1
- package/lib/index-B7mqiOei.js +509 -0
- package/lib/index-B7mqiOei.js.map +1 -0
- package/lib/index-CXRrqOIl.js +1750 -0
- package/lib/index-CXRrqOIl.js.map +1 -0
- package/lib/joinUrl-BTy9bvoK.js +20 -0
- package/lib/joinUrl-BTy9bvoK.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +7 -7
- package/lib/post-processors/removeExtensions.js.map +1 -1
- package/lib/post-processors/removeParameters.js +48 -0
- package/lib/post-processors/removeParameters.js.map +1 -0
- package/lib/ui/ActionButton.js +10 -11
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Command.js +125 -13
- package/lib/ui/Command.js.map +1 -1
- package/lib/{useExposedProps-BBHR7aLM.js → useExposedProps-CetwhZpP.js} +2 -2
- package/lib/{useExposedProps-BBHR7aLM.js.map → useExposedProps-CetwhZpP.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +7 -9
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +223 -219
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +219 -219
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +3 -3
- package/lib/zudoku.plugin-api-keys.js +5 -5
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -4
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/package.json +1 -1
- package/src/app/main.css +50 -50
- package/src/lib/authentication/providers/auth0.tsx +1 -4
- package/src/lib/authentication/providers/openid.tsx +12 -5
- package/src/lib/components/Autocomplete.tsx +111 -0
- package/src/lib/components/Header.tsx +3 -3
- package/src/lib/components/index.ts +2 -2
- package/src/lib/plugins/markdown/MdxPage.tsx +9 -1
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +5 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +51 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +138 -41
- package/src/lib/plugins/openapi/playground/Playground.tsx +156 -62
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +89 -122
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +58 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +7 -4
- package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +148 -0
- package/src/lib/plugins/openapi/post-processors/removeParameters.ts +101 -0
- package/src/lib/ui/Command.tsx +20 -0
- package/src/lib/util/joinUrl.ts +57 -0
- package/dist/lib/plugins/openapi/playground/EnumSelector.d.ts +0 -8
- package/dist/lib/plugins/openapi/playground/EnumSelector.js +0 -21
- package/dist/lib/plugins/openapi/playground/EnumSelector.js.map +0 -1
- package/lib/Button-oroWHXAy.js.map +0 -1
- package/lib/Command-D5DE0DD7.js +0 -611
- package/lib/Command-D5DE0DD7.js.map +0 -1
- package/lib/MdxPage-LNZLj_A5.js.map +0 -1
- package/lib/Spinner-C5gHXrVz.js +0 -7
- package/lib/Spinner-C5gHXrVz.js.map +0 -1
- package/lib/index-CaILD1AV.js +0 -1292
- package/lib/index-CaILD1AV.js.map +0 -1
- package/src/lib/plugins/openapi/playground/EnumSelector.tsx +0 -86
package/lib/zudoku.components.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ft = Object.defineProperty;
|
|
2
2
|
var je = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var k = (e, t, s) =>
|
|
5
|
+
var gt = (e, t, s) => t in e ? ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
6
|
+
var k = (e, t, s) => gt(e, typeof t != "symbol" ? t + "" : t, s), we = (e, t, s) => t.has(e) || je("Cannot " + s);
|
|
7
7
|
var c = (e, t, s) => (we(e, t, "read from private field"), s ? s.call(e) : t.get(e)), j = (e, t, s) => t.has(e) ? je("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), b = (e, t, s, r) => (we(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s);
|
|
8
8
|
var J = (e, t, s, r) => ({
|
|
9
9
|
set _(a) {
|
|
@@ -13,33 +13,33 @@ var J = (e, t, s, r) => ({
|
|
|
13
13
|
return c(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as
|
|
17
|
-
import { R as
|
|
18
|
-
import { M as
|
|
19
|
-
import { E as
|
|
16
|
+
import { a as ze, H as ue } from "./index.esm-9-TF9KQB.js";
|
|
17
|
+
import { R as mt, S as pt, f as xt, g as se, b as yt, u as he, h as fe, L as ge, O as He } from "./chunk-SYFQ2XB5-BF5IDYrB.js";
|
|
18
|
+
import { M as bt, u as V } from "./hook-BRQEDRbn.js";
|
|
19
|
+
import { E as Le, S as M, a as vt, R as jt } from "./SlotletProvider-_3zzX_g_.js";
|
|
20
20
|
import { j as n } from "./jsx-runtime-Bdg6XQ1m.js";
|
|
21
|
-
import { Button as
|
|
22
|
-
import { Callout as
|
|
23
|
-
import { S as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import * as
|
|
27
|
-
import Ft, { StrictMode as Ue, useState as T, useEffect as F, useRef as pe, useCallback as Bt, Suspense as xe, memo as We, forwardRef as zt, createContext as _e, Component as Ht, createElement as Oe, useMemo as ne, useContext as Lt, Fragment as Kt } from "react";
|
|
28
|
-
import * as $t from "react-dom";
|
|
21
|
+
import { Button as wt } from "./ui/Button.js";
|
|
22
|
+
import { Callout as kt } from "./ui/Callout.js";
|
|
23
|
+
import { S as Ke, l as $e, Q as Ct, n as w, m as ke, o as Ce, p as D, q as Nt, r as Pt, t as St, v as Mt, w as Ne, x as Pe, y as Ot, h as Se, z as Me, A as Dt, e as At, B as Ze, C as Et, j as W, a as q, D as Ue, E as It, u as Qt, Z as Tt } from "./ZudokuContext-DeQZEp-x.js";
|
|
24
|
+
import * as $ from "react";
|
|
25
|
+
import qt, { StrictMode as Ve, useState as T, useEffect as R, useRef as me, useCallback as Rt, Suspense as pe, memo as We, forwardRef as Ft, createContext as _e, Component as Bt, createElement as Oe, useMemo as ne, useContext as zt, Fragment as Ht } from "react";
|
|
26
|
+
import * as Lt from "react-dom";
|
|
29
27
|
import { S as le } from "./StaggeredRender-DgsamH_G.js";
|
|
30
|
-
import { C as
|
|
31
|
-
import { ChevronRightIcon as
|
|
28
|
+
import { C as xe } from "./ClientOnly-E7hGysn1.js";
|
|
29
|
+
import { ChevronRightIcon as Kt, ExternalLinkIcon as $t, CircleXIcon as Zt, SearchIcon as Ut, MoonStarIcon as Vt, SunIcon as Wt, MenuIcon as _t, PanelLeftIcon as Xt } from "lucide-react";
|
|
32
30
|
import { Drawer as Xe, DrawerTrigger as Ye, DrawerContent as Je, DrawerTitle as Ge } from "./ui/Drawer.js";
|
|
33
31
|
import { c as O } from "./cn-qaFjX9_3.js";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
32
|
+
import { u as ye, a as Yt, V as Jt, M as Gt } from "./Markdown-DFN6p0J-.js";
|
|
33
|
+
import { c as es, a as ts } from "./index-Djenk2Hj.js";
|
|
34
|
+
import { A as ss, M as ns, u as rs } from "./AnchorLink-bObQitZv.js";
|
|
36
35
|
import * as re from "@radix-ui/react-collapsible";
|
|
37
|
-
import { B as ce } from "./
|
|
38
|
-
import { DropdownMenu as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
|
|
36
|
+
import { B as ce, S as et } from "./Spinner-BlzrEEk1.js";
|
|
37
|
+
import { DropdownMenu as as, DropdownMenuTrigger as is, DropdownMenuContent as os, DropdownMenuLabel as ls, DropdownMenuSeparator as ae, DropdownMenuSub as cs, DropdownMenuSubTrigger as ds, DropdownMenuPortal as us, DropdownMenuSubContent as hs, DropdownMenuItem as fs } from "./ui/DropdownMenu.js";
|
|
38
|
+
import { j as De } from "./joinUrl-BTy9bvoK.js";
|
|
39
|
+
import { VisuallyHidden as tt } from "@radix-ui/react-visually-hidden";
|
|
40
|
+
import { z as gs, J as ms } from "./SyntaxHighlight-CJCSPG1F.js";
|
|
41
|
+
import { Z as ps } from "./invariant-Caa8-XvF.js";
|
|
42
|
+
var S, Re, xs = (Re = class extends Ke {
|
|
43
43
|
constructor(t = {}) {
|
|
44
44
|
super();
|
|
45
45
|
j(this, S);
|
|
@@ -48,7 +48,7 @@ var S, qe, ps = (qe = class extends Ke {
|
|
|
48
48
|
build(t, s, r) {
|
|
49
49
|
const a = s.queryKey, i = s.queryHash ?? $e(a, s);
|
|
50
50
|
let o = this.get(i);
|
|
51
|
-
return o || (o = new
|
|
51
|
+
return o || (o = new Ct({
|
|
52
52
|
cache: this,
|
|
53
53
|
queryKey: a,
|
|
54
54
|
queryHash: i,
|
|
@@ -111,7 +111,7 @@ var S, qe, ps = (qe = class extends Ke {
|
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
}, S = new WeakMap(),
|
|
114
|
+
}, S = new WeakMap(), Re), A, N, _, Fe, ys = (Fe = class extends Ke {
|
|
115
115
|
constructor(t = {}) {
|
|
116
116
|
super();
|
|
117
117
|
j(this, A);
|
|
@@ -120,7 +120,7 @@ var S, qe, ps = (qe = class extends Ke {
|
|
|
120
120
|
this.config = t, b(this, A, /* @__PURE__ */ new Set()), b(this, N, /* @__PURE__ */ new Map()), b(this, _, 0);
|
|
121
121
|
}
|
|
122
122
|
build(t, s, r) {
|
|
123
|
-
const a = new
|
|
123
|
+
const a = new bt({
|
|
124
124
|
mutationCache: this,
|
|
125
125
|
mutationId: ++J(this, _)._,
|
|
126
126
|
options: t.defaultMutationOptions(s),
|
|
@@ -204,12 +204,12 @@ var S, qe, ps = (qe = class extends Ke {
|
|
|
204
204
|
)
|
|
205
205
|
);
|
|
206
206
|
}
|
|
207
|
-
}, A = new WeakMap(), N = new WeakMap(), _ = new WeakMap(),
|
|
207
|
+
}, A = new WeakMap(), N = new WeakMap(), _ = new WeakMap(), Fe);
|
|
208
208
|
function G(e) {
|
|
209
209
|
var t;
|
|
210
210
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Ae(e) {
|
|
213
213
|
return {
|
|
214
214
|
onFetch: (t, s) => {
|
|
215
215
|
var f, g, h, p, x;
|
|
@@ -224,7 +224,7 @@ function De(e) {
|
|
|
224
224
|
m = !0;
|
|
225
225
|
}), t.signal)
|
|
226
226
|
});
|
|
227
|
-
}, X =
|
|
227
|
+
}, X = Nt(t.options, t.fetchOptions), L = async (v, P, K) => {
|
|
228
228
|
if (m)
|
|
229
229
|
return Promise.reject();
|
|
230
230
|
if (P == null && v.pages.length)
|
|
@@ -232,31 +232,31 @@ function De(e) {
|
|
|
232
232
|
const Y = {
|
|
233
233
|
queryKey: t.queryKey,
|
|
234
234
|
pageParam: P,
|
|
235
|
-
direction:
|
|
235
|
+
direction: K ? "backward" : "forward",
|
|
236
236
|
meta: t.options.meta
|
|
237
237
|
};
|
|
238
238
|
C(Y);
|
|
239
|
-
const
|
|
239
|
+
const ht = await X(
|
|
240
240
|
Y
|
|
241
|
-
), { maxPages: be } = t.options, ve =
|
|
241
|
+
), { maxPages: be } = t.options, ve = K ? Pt : St;
|
|
242
242
|
return {
|
|
243
|
-
pages: ve(v.pages,
|
|
243
|
+
pages: ve(v.pages, ht, be),
|
|
244
244
|
pageParams: ve(v.pageParams, P, be)
|
|
245
245
|
};
|
|
246
246
|
};
|
|
247
247
|
if (a && i.length) {
|
|
248
|
-
const v = a === "backward", P = v ?
|
|
248
|
+
const v = a === "backward", P = v ? bs : Ee, K = {
|
|
249
249
|
pages: i,
|
|
250
250
|
pageParams: o
|
|
251
|
-
}, Y = P(r,
|
|
252
|
-
d = await K
|
|
251
|
+
}, Y = P(r, K);
|
|
252
|
+
d = await L(K, Y, v);
|
|
253
253
|
} else {
|
|
254
254
|
const v = e ?? i.length;
|
|
255
255
|
do {
|
|
256
|
-
const P = u === 0 ? o[0] ?? r.initialPageParam :
|
|
256
|
+
const P = u === 0 ? o[0] ?? r.initialPageParam : Ee(r, d);
|
|
257
257
|
if (u > 0 && P == null)
|
|
258
258
|
break;
|
|
259
|
-
d = await
|
|
259
|
+
d = await L(d, P), u++;
|
|
260
260
|
} while (u < v);
|
|
261
261
|
}
|
|
262
262
|
return d;
|
|
@@ -277,7 +277,7 @@ function De(e) {
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Ee(e, { pages: t, pageParams: s }) {
|
|
281
281
|
const r = t.length - 1;
|
|
282
282
|
return t.length > 0 ? e.getNextPageParam(
|
|
283
283
|
t[r],
|
|
@@ -286,32 +286,32 @@ function Ae(e, { pages: t, pageParams: s }) {
|
|
|
286
286
|
s
|
|
287
287
|
) : void 0;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function bs(e, { pages: t, pageParams: s }) {
|
|
290
290
|
var r;
|
|
291
291
|
return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, s[0], s) : void 0;
|
|
292
292
|
}
|
|
293
|
-
var y, E, I,
|
|
293
|
+
var y, E, I, F, B, Q, z, H, Be, vs = (Be = class {
|
|
294
294
|
constructor(e = {}) {
|
|
295
295
|
j(this, y);
|
|
296
296
|
j(this, E);
|
|
297
297
|
j(this, I);
|
|
298
|
+
j(this, F);
|
|
298
299
|
j(this, B);
|
|
299
|
-
j(this, z);
|
|
300
300
|
j(this, Q);
|
|
301
|
+
j(this, z);
|
|
301
302
|
j(this, H);
|
|
302
|
-
|
|
303
|
-
b(this, y, e.queryCache || new ps()), b(this, E, e.mutationCache || new xs()), b(this, I, e.defaultOptions || {}), b(this, B, /* @__PURE__ */ new Map()), b(this, z, /* @__PURE__ */ new Map()), b(this, Q, 0);
|
|
303
|
+
b(this, y, e.queryCache || new xs()), b(this, E, e.mutationCache || new ys()), b(this, I, e.defaultOptions || {}), b(this, F, /* @__PURE__ */ new Map()), b(this, B, /* @__PURE__ */ new Map()), b(this, Q, 0);
|
|
304
304
|
}
|
|
305
305
|
mount() {
|
|
306
|
-
J(this, Q)._++, c(this, Q) === 1 && (b(this,
|
|
306
|
+
J(this, Q)._++, c(this, Q) === 1 && (b(this, z, Mt.subscribe(async (e) => {
|
|
307
307
|
e && (await this.resumePausedMutations(), c(this, y).onFocus());
|
|
308
|
-
})), b(this,
|
|
308
|
+
})), b(this, H, Ne.subscribe(async (e) => {
|
|
309
309
|
e && (await this.resumePausedMutations(), c(this, y).onOnline());
|
|
310
310
|
})));
|
|
311
311
|
}
|
|
312
312
|
unmount() {
|
|
313
313
|
var e, t;
|
|
314
|
-
J(this, Q)._--, c(this, Q) === 0 && ((e = c(this,
|
|
314
|
+
J(this, Q)._--, c(this, Q) === 0 && ((e = c(this, z)) == null || e.call(this), b(this, z, void 0), (t = c(this, H)) == null || t.call(this), b(this, H, void 0));
|
|
315
315
|
}
|
|
316
316
|
isFetching(e) {
|
|
317
317
|
return c(this, y).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -337,7 +337,7 @@ var y, E, I, B, z, Q, H, L, Fe, bs = (Fe = class {
|
|
|
337
337
|
setQueryData(e, t, s) {
|
|
338
338
|
const r = this.defaultQueryOptions({ queryKey: e }), a = c(this, y).get(
|
|
339
339
|
r.queryHash
|
|
340
|
-
), i = a == null ? void 0 : a.state.data, o =
|
|
340
|
+
), i = a == null ? void 0 : a.state.data, o = Ot(t, i);
|
|
341
341
|
if (o !== void 0)
|
|
342
342
|
return c(this, y).build(this, r).setData(o, { ...s, manual: !0 });
|
|
343
343
|
}
|
|
@@ -416,13 +416,13 @@ var y, E, I, B, z, Q, H, L, Fe, bs = (Fe = class {
|
|
|
416
416
|
return this.fetchQuery(e).then(D).catch(D);
|
|
417
417
|
}
|
|
418
418
|
fetchInfiniteQuery(e) {
|
|
419
|
-
return e.behavior =
|
|
419
|
+
return e.behavior = Ae(e.pages), this.fetchQuery(e);
|
|
420
420
|
}
|
|
421
421
|
prefetchInfiniteQuery(e) {
|
|
422
422
|
return this.fetchInfiniteQuery(e).then(D).catch(D);
|
|
423
423
|
}
|
|
424
424
|
ensureInfiniteQueryData(e) {
|
|
425
|
-
return e.behavior =
|
|
425
|
+
return e.behavior = Ae(e.pages), this.ensureQueryData(e);
|
|
426
426
|
}
|
|
427
427
|
resumePausedMutations() {
|
|
428
428
|
return Ne.isOnline() ? c(this, E).resumePausedMutations() : Promise.resolve();
|
|
@@ -440,25 +440,25 @@ var y, E, I, B, z, Q, H, L, Fe, bs = (Fe = class {
|
|
|
440
440
|
b(this, I, e);
|
|
441
441
|
}
|
|
442
442
|
setQueryDefaults(e, t) {
|
|
443
|
-
c(this,
|
|
443
|
+
c(this, F).set(Se(e), {
|
|
444
444
|
queryKey: e,
|
|
445
445
|
defaultOptions: t
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
448
|
getQueryDefaults(e) {
|
|
449
|
-
const t = [...c(this,
|
|
449
|
+
const t = [...c(this, F).values()], s = {};
|
|
450
450
|
return t.forEach((r) => {
|
|
451
451
|
Me(e, r.queryKey) && Object.assign(s, r.defaultOptions);
|
|
452
452
|
}), s;
|
|
453
453
|
}
|
|
454
454
|
setMutationDefaults(e, t) {
|
|
455
|
-
c(this,
|
|
455
|
+
c(this, B).set(Se(e), {
|
|
456
456
|
mutationKey: e,
|
|
457
457
|
defaultOptions: t
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
getMutationDefaults(e) {
|
|
461
|
-
const t = [...c(this,
|
|
461
|
+
const t = [...c(this, B).values()];
|
|
462
462
|
let s = {};
|
|
463
463
|
return t.forEach((r) => {
|
|
464
464
|
Me(e, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
|
|
@@ -476,7 +476,7 @@ var y, E, I, B, z, Q, H, L, Fe, bs = (Fe = class {
|
|
|
476
476
|
return t.queryHash || (t.queryHash = $e(
|
|
477
477
|
t.queryKey,
|
|
478
478
|
t
|
|
479
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn ===
|
|
479
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Dt && (t.enabled = !1), t;
|
|
480
480
|
}
|
|
481
481
|
defaultMutationOptions(e) {
|
|
482
482
|
return e != null && e._defaulted ? e : {
|
|
@@ -489,15 +489,15 @@ var y, E, I, B, z, Q, H, L, Fe, bs = (Fe = class {
|
|
|
489
489
|
clear() {
|
|
490
490
|
c(this, y).clear(), c(this, E).clear();
|
|
491
491
|
}
|
|
492
|
-
}, y = new WeakMap(), E = new WeakMap(), I = new WeakMap(),
|
|
493
|
-
function
|
|
492
|
+
}, y = new WeakMap(), E = new WeakMap(), I = new WeakMap(), F = new WeakMap(), B = new WeakMap(), Q = new WeakMap(), z = new WeakMap(), H = new WeakMap(), Be);
|
|
493
|
+
function js(e) {
|
|
494
494
|
return e;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Ie(e, t, s) {
|
|
497
497
|
var u, l;
|
|
498
498
|
if (typeof t != "object" || t === null)
|
|
499
499
|
return;
|
|
500
|
-
const r = e.getMutationCache(), a = e.getQueryCache(), i = ((u = s == null ? void 0 : s.defaultOptions) == null ? void 0 : u.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ??
|
|
500
|
+
const r = e.getMutationCache(), a = e.getQueryCache(), i = ((u = s == null ? void 0 : s.defaultOptions) == null ? void 0 : u.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? js, o = t.mutations || [], d = t.queries || [];
|
|
501
501
|
o.forEach(({ state: f, ...g }) => {
|
|
502
502
|
var h, p;
|
|
503
503
|
r.build(
|
|
@@ -510,7 +510,7 @@ function Ee(e, t, s) {
|
|
|
510
510
|
f
|
|
511
511
|
);
|
|
512
512
|
}), d.forEach(({ queryKey: f, state: g, queryHash: h, meta: p, promise: x }) => {
|
|
513
|
-
var X,
|
|
513
|
+
var X, L;
|
|
514
514
|
let m = a.get(h);
|
|
515
515
|
const C = g.data === void 0 ? g.data : i(g.data);
|
|
516
516
|
if (m) {
|
|
@@ -526,7 +526,7 @@ function Ee(e, t, s) {
|
|
|
526
526
|
e,
|
|
527
527
|
{
|
|
528
528
|
...(X = e.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
|
|
529
|
-
...(
|
|
529
|
+
...(L = s == null ? void 0 : s.defaultOptions) == null ? void 0 : L.queries,
|
|
530
530
|
queryKey: f,
|
|
531
531
|
queryHash: h,
|
|
532
532
|
meta: p
|
|
@@ -545,14 +545,14 @@ function Ee(e, t, s) {
|
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
|
-
var
|
|
548
|
+
var ws = ({
|
|
549
549
|
children: e,
|
|
550
550
|
options: t = {},
|
|
551
551
|
state: s,
|
|
552
552
|
queryClient: r
|
|
553
553
|
}) => {
|
|
554
|
-
const a =
|
|
555
|
-
return d.current = t,
|
|
554
|
+
const a = At(r), [i, o] = $.useState(), d = $.useRef(t);
|
|
555
|
+
return d.current = t, $.useMemo(() => {
|
|
556
556
|
if (s) {
|
|
557
557
|
if (typeof s != "object")
|
|
558
558
|
return;
|
|
@@ -568,16 +568,16 @@ var js = ({
|
|
|
568
568
|
x && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && g.push(h);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
f.length > 0 &&
|
|
571
|
+
f.length > 0 && Ie(a, { queries: f }, d.current), g.length > 0 && o(
|
|
572
572
|
(h) => h ? [...h, ...g] : g
|
|
573
573
|
);
|
|
574
574
|
}
|
|
575
|
-
}, [a, i, s]),
|
|
576
|
-
i && (
|
|
575
|
+
}, [a, i, s]), $.useEffect(() => {
|
|
576
|
+
i && (Ie(a, { queries: i }, d.current), o(void 0));
|
|
577
577
|
}, [a, i]), e;
|
|
578
578
|
};
|
|
579
|
-
function
|
|
580
|
-
return /* @__PURE__ */ n.jsx(
|
|
579
|
+
function ks({ error: e }) {
|
|
580
|
+
return /* @__PURE__ */ n.jsx(Le, { error: e });
|
|
581
581
|
}
|
|
582
582
|
/**
|
|
583
583
|
* react-router v7.1.3
|
|
@@ -589,30 +589,30 @@ function ws({ error: e }) {
|
|
|
589
589
|
*
|
|
590
590
|
* @license MIT
|
|
591
591
|
*/
|
|
592
|
-
function
|
|
593
|
-
return /* @__PURE__ */
|
|
592
|
+
function Cs(e) {
|
|
593
|
+
return /* @__PURE__ */ $.createElement(mt, { flushSync: Lt.flushSync, ...e });
|
|
594
594
|
}
|
|
595
|
-
const
|
|
595
|
+
const Ns = new vs({
|
|
596
596
|
defaultOptions: {
|
|
597
597
|
queries: {
|
|
598
598
|
staleTime: 1e3 * 60 * 5
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
}),
|
|
601
|
+
}), Ps = ({
|
|
602
602
|
router: e,
|
|
603
603
|
hydrate: t = !1
|
|
604
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
604
|
+
}) => /* @__PURE__ */ n.jsx(Ve, { children: /* @__PURE__ */ n.jsx(Ze, { client: Ns, children: /* @__PURE__ */ n.jsx(ws, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ n.jsx(ze, { children: /* @__PURE__ */ n.jsx(le.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ n.jsx(Cs, { router: e }) }) }) }) }) }), Ss = ({
|
|
605
605
|
router: e,
|
|
606
606
|
context: t,
|
|
607
607
|
queryClient: s,
|
|
608
608
|
helmetContext: r
|
|
609
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
610
|
-
var
|
|
611
|
-
function
|
|
612
|
-
return
|
|
609
|
+
}) => /* @__PURE__ */ n.jsx(Ve, { children: /* @__PURE__ */ n.jsx(Ze, { client: s, children: /* @__PURE__ */ n.jsx(ze, { context: r, children: /* @__PURE__ */ n.jsx(pt, { router: e, context: t }) }) }) });
|
|
610
|
+
var Z = { exports: {} }, Ms = Z.exports, Qe;
|
|
611
|
+
function Os() {
|
|
612
|
+
return Qe || (Qe = 1, function(e, t) {
|
|
613
613
|
(function(s, r) {
|
|
614
|
-
r(t,
|
|
615
|
-
})(
|
|
614
|
+
r(t, qt);
|
|
615
|
+
})(Ms, function(s, r) {
|
|
616
616
|
const a = {
|
|
617
617
|
delay: 500,
|
|
618
618
|
minDuration: 200,
|
|
@@ -644,10 +644,10 @@ function Ms() {
|
|
|
644
644
|
}
|
|
645
645
|
s.defaultOptions = a, s.useSpinDelay = o;
|
|
646
646
|
});
|
|
647
|
-
}(
|
|
647
|
+
}(Z, Z.exports)), Z.exports;
|
|
648
648
|
}
|
|
649
|
-
var
|
|
650
|
-
const
|
|
649
|
+
var Ds = Os();
|
|
650
|
+
const As = {
|
|
651
651
|
green: "bg-green-400 dark:bg-green-800",
|
|
652
652
|
blue: "bg-sky-400 dark:bg-sky-800",
|
|
653
653
|
yellow: "bg-yellow-400 dark:bg-yellow-800",
|
|
@@ -655,7 +655,7 @@ const Ds = {
|
|
|
655
655
|
purple: "bg-purple-400 dark:bg-purple-600",
|
|
656
656
|
indigo: "bg-indigo-400 dark:bg-indigo-600",
|
|
657
657
|
gray: "bg-gray-400 dark:bg-gray-600"
|
|
658
|
-
},
|
|
658
|
+
}, Es = {
|
|
659
659
|
green: "text-green-500 dark:text-green-600",
|
|
660
660
|
blue: "text-sky-400 dark:text-sky-600",
|
|
661
661
|
yellow: "text-yellow-400 dark:text-yellow-600",
|
|
@@ -673,18 +673,18 @@ const Ds = {
|
|
|
673
673
|
{
|
|
674
674
|
className: O(
|
|
675
675
|
"mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
|
|
676
|
-
r ?
|
|
676
|
+
r ? Es[e] : As[e],
|
|
677
677
|
s
|
|
678
678
|
),
|
|
679
679
|
children: t
|
|
680
680
|
}
|
|
681
|
-
),
|
|
681
|
+
), Is = ({
|
|
682
682
|
category: e,
|
|
683
683
|
onRequestClose: t
|
|
684
684
|
}) => {
|
|
685
685
|
var h, p;
|
|
686
|
-
const s =
|
|
687
|
-
|
|
686
|
+
const s = Et(e), [r, a] = T(!1), i = e.collapsible ?? !0, o = e.collapsed ?? !0, d = !!(!i || !o || s), [u, l] = T(d), f = xt(((h = e.link) == null ? void 0 : h.id) ?? "");
|
|
687
|
+
R(() => {
|
|
688
688
|
s && l(!0);
|
|
689
689
|
}, [s]);
|
|
690
690
|
const g = i && /* @__PURE__ */ n.jsx(
|
|
@@ -695,7 +695,7 @@ const Ds = {
|
|
|
695
695
|
x.preventDefault(), l((m) => !m), a(!0);
|
|
696
696
|
},
|
|
697
697
|
children: /* @__PURE__ */ n.jsx(
|
|
698
|
-
|
|
698
|
+
Kt,
|
|
699
699
|
{
|
|
700
700
|
size: 16,
|
|
701
701
|
className: O(
|
|
@@ -736,7 +736,7 @@ const Ds = {
|
|
|
736
736
|
((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ n.jsx(
|
|
737
737
|
se,
|
|
738
738
|
{
|
|
739
|
-
to:
|
|
739
|
+
to: W(e.link.id),
|
|
740
740
|
className: "flex-1",
|
|
741
741
|
onClick: () => {
|
|
742
742
|
f && !u && l(!0);
|
|
@@ -783,7 +783,7 @@ const Ds = {
|
|
|
783
783
|
]
|
|
784
784
|
}
|
|
785
785
|
);
|
|
786
|
-
}, U =
|
|
786
|
+
}, U = es(
|
|
787
787
|
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent",
|
|
788
788
|
{
|
|
789
789
|
variants: {
|
|
@@ -800,21 +800,21 @@ const Ds = {
|
|
|
800
800
|
isActive: !1
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
|
-
),
|
|
803
|
+
), st = "data-anchor", de = ({
|
|
804
804
|
item: e,
|
|
805
805
|
onRequestClose: t
|
|
806
806
|
}) => {
|
|
807
807
|
var a, i;
|
|
808
|
-
const { activeAnchor: s } =
|
|
808
|
+
const { activeAnchor: s } = ye(), [r] = yt();
|
|
809
809
|
switch (e.type) {
|
|
810
810
|
case "category":
|
|
811
|
-
return /* @__PURE__ */ n.jsx(
|
|
811
|
+
return /* @__PURE__ */ n.jsx(Is, { category: e, onRequestClose: t });
|
|
812
812
|
case "doc":
|
|
813
813
|
return /* @__PURE__ */ n.jsxs(
|
|
814
814
|
se,
|
|
815
815
|
{
|
|
816
816
|
className: ({ isActive: o }) => U({ isActive: o }),
|
|
817
|
-
to:
|
|
817
|
+
to: W(e.id),
|
|
818
818
|
onClick: t,
|
|
819
819
|
children: [
|
|
820
820
|
e.icon && /* @__PURE__ */ n.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
@@ -827,10 +827,10 @@ const Ds = {
|
|
|
827
827
|
);
|
|
828
828
|
case "link":
|
|
829
829
|
return e.href.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
830
|
-
|
|
830
|
+
ss,
|
|
831
831
|
{
|
|
832
832
|
to: { hash: e.href, search: r.toString() },
|
|
833
|
-
[
|
|
833
|
+
[st]: e.href.slice(1),
|
|
834
834
|
className: U({
|
|
835
835
|
isActive: e.href.slice(1) === s,
|
|
836
836
|
className: ((a = e.badge) == null ? void 0 : a.placement) !== "start" && "justify-between"
|
|
@@ -851,7 +851,7 @@ const Ds = {
|
|
|
851
851
|
onClick: t,
|
|
852
852
|
children: [
|
|
853
853
|
/* @__PURE__ */ n.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
854
|
-
/* @__PURE__ */ n.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ n.jsx(
|
|
854
|
+
/* @__PURE__ */ n.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ n.jsx($t, { className: "inline -translate-y-0.5", size: 12 }) })
|
|
855
855
|
]
|
|
856
856
|
}
|
|
857
857
|
) : /* @__PURE__ */ n.jsx(
|
|
@@ -868,17 +868,17 @@ const Ds = {
|
|
|
868
868
|
}
|
|
869
869
|
);
|
|
870
870
|
}
|
|
871
|
-
},
|
|
871
|
+
}, Qs = (e, t = { block: "center" }) => {
|
|
872
872
|
if (!e) return;
|
|
873
873
|
const s = e.getBoundingClientRect();
|
|
874
874
|
s.top >= 0 && s.left >= 0 && s.bottom <= (window.innerHeight || document.documentElement.clientHeight) && s.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
875
|
-
},
|
|
876
|
-
const e = he(), { setActiveAnchor: t } =
|
|
877
|
-
|
|
875
|
+
}, Ts = () => {
|
|
876
|
+
const e = he(), { setActiveAnchor: t } = ye();
|
|
877
|
+
R(() => {
|
|
878
878
|
if (!e.hash) return;
|
|
879
879
|
const s = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
880
|
-
const a = document.getElementById(s), i = document.querySelector(`[${
|
|
881
|
-
return a ? (a.scrollIntoView(),
|
|
880
|
+
const a = document.getElementById(s), i = document.querySelector(`[${st}="${s}"]`);
|
|
881
|
+
return a ? (a.scrollIntoView(), Qs(i), requestIdleCallback(() => t(s)), !0) : !1;
|
|
882
882
|
};
|
|
883
883
|
if (!r()) {
|
|
884
884
|
const a = new MutationObserver((i, o) => {
|
|
@@ -887,13 +887,13 @@ const Ds = {
|
|
|
887
887
|
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
888
888
|
}
|
|
889
889
|
}, [e.hash, t]);
|
|
890
|
-
},
|
|
891
|
-
const e = he(), t =
|
|
892
|
-
|
|
890
|
+
}, qs = () => {
|
|
891
|
+
const e = he(), t = me(e.pathname);
|
|
892
|
+
R(() => {
|
|
893
893
|
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
894
894
|
}, [e.pathname]);
|
|
895
895
|
};
|
|
896
|
-
function
|
|
896
|
+
function Rs({
|
|
897
897
|
className: e,
|
|
898
898
|
...t
|
|
899
899
|
}) {
|
|
@@ -905,17 +905,17 @@ function qs({
|
|
|
905
905
|
}
|
|
906
906
|
);
|
|
907
907
|
}
|
|
908
|
-
const
|
|
908
|
+
const Fs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Bs = (e) => "getRoutes" in e && typeof e.getRoutes == "function", zs = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Hs = (e) => "initialize" in e && typeof e.initialize == "function", Ls = (e) => "getHead" in e && typeof e.getHead == "function", Ks = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", $s = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Te = {
|
|
909
909
|
info: "bg-blue-500",
|
|
910
910
|
note: "bg-gray-500",
|
|
911
911
|
tip: "bg-green-600",
|
|
912
912
|
caution: "bg-orange-500",
|
|
913
913
|
danger: "bg-rose-500"
|
|
914
|
-
},
|
|
914
|
+
}, Zs = () => {
|
|
915
915
|
const { page: e } = q(), [t, s] = T(!0);
|
|
916
916
|
if (!(e != null && e.banner) || !t)
|
|
917
917
|
return /* @__PURE__ */ n.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
918
|
-
const r = e.banner.color && e.banner.color in
|
|
918
|
+
const r = e.banner.color && e.banner.color in Te ? Te[e.banner.color] : e.banner.color ? void 0 : "bg-primary", a = r ? {} : { backgroundColor: e.banner.color };
|
|
919
919
|
return /* @__PURE__ */ n.jsxs(
|
|
920
920
|
"div",
|
|
921
921
|
{
|
|
@@ -932,15 +932,15 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
932
932
|
type: "button",
|
|
933
933
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
934
934
|
onClick: () => s(!1),
|
|
935
|
-
children: /* @__PURE__ */ n.jsx(
|
|
935
|
+
children: /* @__PURE__ */ n.jsx(Zt, { size: 16 })
|
|
936
936
|
}
|
|
937
937
|
)
|
|
938
938
|
]
|
|
939
939
|
}
|
|
940
940
|
);
|
|
941
|
-
},
|
|
942
|
-
const t = q(), [s, r] = T(!1), a =
|
|
943
|
-
|
|
941
|
+
}, nt = ({ className: e }) => {
|
|
942
|
+
const t = q(), [s, r] = T(!1), a = Rt(() => r(!1), []);
|
|
943
|
+
R(() => {
|
|
944
944
|
if (s)
|
|
945
945
|
return;
|
|
946
946
|
function o(d) {
|
|
@@ -950,7 +950,7 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
950
950
|
window.removeEventListener("keydown", o);
|
|
951
951
|
};
|
|
952
952
|
}, [s, r]);
|
|
953
|
-
const i = t.plugins.find(
|
|
953
|
+
const i = t.plugins.find(zs);
|
|
954
954
|
return i ? /* @__PURE__ */ n.jsxs("div", { className: e, children: [
|
|
955
955
|
/* @__PURE__ */ n.jsxs(
|
|
956
956
|
"button",
|
|
@@ -960,21 +960,21 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
960
960
|
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-full sm:w-72",
|
|
961
961
|
children: [
|
|
962
962
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
963
|
-
/* @__PURE__ */ n.jsx(
|
|
963
|
+
/* @__PURE__ */ n.jsx(Ut, { size: 14 }),
|
|
964
964
|
"Search"
|
|
965
965
|
] }),
|
|
966
966
|
/* @__PURE__ */ n.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
967
967
|
]
|
|
968
968
|
}
|
|
969
969
|
),
|
|
970
|
-
/* @__PURE__ */ n.jsx(
|
|
970
|
+
/* @__PURE__ */ n.jsx(pe, { fallback: null, children: i.renderSearch({
|
|
971
971
|
isOpen: s,
|
|
972
972
|
onClose: a
|
|
973
973
|
}) })
|
|
974
974
|
] }) : null;
|
|
975
|
-
},
|
|
976
|
-
const { resolvedTheme: e, setTheme: t } =
|
|
977
|
-
return /* @__PURE__ */ n.jsx(
|
|
975
|
+
}, rt = () => {
|
|
976
|
+
const { resolvedTheme: e, setTheme: t } = gs(), s = e === "dark" ? Vt : Wt;
|
|
977
|
+
return /* @__PURE__ */ n.jsx(xe, { children: /* @__PURE__ */ n.jsx(
|
|
978
978
|
ce,
|
|
979
979
|
{
|
|
980
980
|
variant: "ghost",
|
|
@@ -984,20 +984,20 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
984
984
|
children: /* @__PURE__ */ n.jsx(s, { size: 18 })
|
|
985
985
|
}
|
|
986
986
|
) });
|
|
987
|
-
},
|
|
988
|
-
const { topNavigation: e } = q(), { isAuthenticated: t } =
|
|
989
|
-
return e.length <= 1 ? /* @__PURE__ */ n.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ n.jsx(
|
|
990
|
-
},
|
|
987
|
+
}, at = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Us = () => {
|
|
988
|
+
const { topNavigation: e } = q(), { isAuthenticated: t } = V();
|
|
989
|
+
return e.length <= 1 ? /* @__PURE__ */ n.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ n.jsx(pe, { children: /* @__PURE__ */ n.jsx("nav", { className: "hidden lg:block text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(at(t)).map((s) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(it, { ...s }) }, s.id)) }) }) });
|
|
990
|
+
}, it = ({
|
|
991
991
|
id: e,
|
|
992
992
|
label: t,
|
|
993
993
|
default: s
|
|
994
994
|
}) => {
|
|
995
995
|
var l;
|
|
996
|
-
const { sidebars: r } = q(), a = r[e], i =
|
|
997
|
-
if (f.type === "doc") return
|
|
998
|
-
}) :
|
|
996
|
+
const { sidebars: r } = q(), a = r[e], i = Ue(), o = !!fe().location, d = ((l = i.topNavItem) == null ? void 0 : l.id) === e && !o, u = s ?? (a ? It(a, (f) => {
|
|
997
|
+
if (f.type === "doc") return W(f.id);
|
|
998
|
+
}) : W(e));
|
|
999
999
|
if (!u)
|
|
1000
|
-
throw new
|
|
1000
|
+
throw new ps("Page not found.", {
|
|
1001
1001
|
developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
1002
1002
|
});
|
|
1003
1003
|
return (
|
|
@@ -1006,7 +1006,7 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1006
1006
|
/* @__PURE__ */ n.jsx(
|
|
1007
1007
|
se,
|
|
1008
1008
|
{
|
|
1009
|
-
className: ({ isPending: f }) =>
|
|
1009
|
+
className: ({ isPending: f }) => ts(
|
|
1010
1010
|
"block lg:py-3.5 font-medium -mb-px",
|
|
1011
1011
|
d || f ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1012
1012
|
),
|
|
@@ -1016,7 +1016,7 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1016
1016
|
)
|
|
1017
1017
|
);
|
|
1018
1018
|
}, Vs = () => {
|
|
1019
|
-
const { topNavigation: e } = q(), { isAuthenticated: t } =
|
|
1019
|
+
const { topNavigation: e } = q(), { isAuthenticated: t } = V(), [s, r] = T(!1);
|
|
1020
1020
|
return /* @__PURE__ */ n.jsxs(
|
|
1021
1021
|
Xe,
|
|
1022
1022
|
{
|
|
@@ -1024,18 +1024,18 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1024
1024
|
open: s,
|
|
1025
1025
|
onOpenChange: (a) => r(a),
|
|
1026
1026
|
children: [
|
|
1027
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ n.jsx(Ye, { className: "lg:hidden", children: /* @__PURE__ */ n.jsx(
|
|
1027
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ n.jsx(Ye, { className: "lg:hidden", children: /* @__PURE__ */ n.jsx(_t, { size: 22 }) }) }),
|
|
1028
1028
|
/* @__PURE__ */ n.jsx(
|
|
1029
1029
|
Je,
|
|
1030
1030
|
{
|
|
1031
1031
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
1032
1032
|
"aria-describedby": void 0,
|
|
1033
1033
|
children: /* @__PURE__ */ n.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1034
|
-
/* @__PURE__ */ n.jsx(
|
|
1035
|
-
/* @__PURE__ */ n.jsx(
|
|
1034
|
+
/* @__PURE__ */ n.jsx(tt, { children: /* @__PURE__ */ n.jsx(Ge, { children: "Navigation" }) }),
|
|
1035
|
+
/* @__PURE__ */ n.jsx(nt, { className: "flex p-4" }),
|
|
1036
1036
|
/* @__PURE__ */ n.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
1037
|
-
/* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
1038
|
-
e.filter(
|
|
1037
|
+
/* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(rt, {}) }),
|
|
1038
|
+
e.filter(at(t)).map((a) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => r(!1), children: /* @__PURE__ */ n.jsx(it, { ...a }) }) }, a.label))
|
|
1039
1039
|
] })
|
|
1040
1040
|
] })
|
|
1041
1041
|
}
|
|
@@ -1043,26 +1043,26 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1043
1043
|
]
|
|
1044
1044
|
}
|
|
1045
1045
|
);
|
|
1046
|
-
}, te = ({ item: e }) => e.children ? /* @__PURE__ */ n.jsxs(
|
|
1047
|
-
/* @__PURE__ */ n.jsx(
|
|
1048
|
-
/* @__PURE__ */ n.jsx(
|
|
1046
|
+
}, te = ({ item: e }) => e.children ? /* @__PURE__ */ n.jsxs(cs, { children: [
|
|
1047
|
+
/* @__PURE__ */ n.jsx(ds, { children: e.label }),
|
|
1048
|
+
/* @__PURE__ */ n.jsx(us, { children: /* @__PURE__ */ n.jsx(hs, { children: e.children.map((t, s) => (
|
|
1049
1049
|
// eslint-disable-next-line react/no-array-index-key
|
|
1050
1050
|
/* @__PURE__ */ n.jsx(te, { item: t }, s)
|
|
1051
1051
|
)) }) })
|
|
1052
|
-
] }, e.label) : /* @__PURE__ */ n.jsx(ge, { to: e.path ?? "", children: /* @__PURE__ */ n.jsxs(
|
|
1052
|
+
] }, e.label) : /* @__PURE__ */ n.jsx(ge, { to: e.path ?? "", children: /* @__PURE__ */ n.jsxs(fs, { className: "flex gap-2", children: [
|
|
1053
1053
|
e.icon && /* @__PURE__ */ n.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
1054
1054
|
e.label
|
|
1055
|
-
] }, e.label) }),
|
|
1056
|
-
const t =
|
|
1055
|
+
] }, e.label) }), ot = We(function() {
|
|
1056
|
+
const t = V(), { isAuthenticated: s, profile: r, isAuthEnabled: a } = V(), i = q(), { page: o, plugins: d } = i, u = d.filter((l) => Fs(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
|
|
1057
1057
|
return /* @__PURE__ */ n.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1058
|
-
/* @__PURE__ */ n.jsx(
|
|
1058
|
+
/* @__PURE__ */ n.jsx(Zs, {}),
|
|
1059
1059
|
/* @__PURE__ */ n.jsx("div", { className: "border-b", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl border-l border-r mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-12 h-[--top-header-height]", children: [
|
|
1060
1060
|
/* @__PURE__ */ n.jsx("div", { className: "flex", children: /* @__PURE__ */ n.jsx(ge, { to: "/", children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1061
1061
|
(o == null ? void 0 : o.logo) && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1062
1062
|
/* @__PURE__ */ n.jsx(
|
|
1063
1063
|
"img",
|
|
1064
1064
|
{
|
|
1065
|
-
src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light :
|
|
1065
|
+
src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : De(
|
|
1066
1066
|
"/",
|
|
1067
1067
|
o.logo.src.light
|
|
1068
1068
|
),
|
|
@@ -1075,7 +1075,7 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1075
1075
|
/* @__PURE__ */ n.jsx(
|
|
1076
1076
|
"img",
|
|
1077
1077
|
{
|
|
1078
|
-
src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark :
|
|
1078
|
+
src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : De(
|
|
1079
1079
|
"/",
|
|
1080
1080
|
o.logo.src.dark
|
|
1081
1081
|
),
|
|
@@ -1089,18 +1089,18 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1089
1089
|
/* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
|
|
1090
1090
|
] }) }) }),
|
|
1091
1091
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1092
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ n.jsx(
|
|
1092
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ n.jsx(nt, {}) }),
|
|
1093
1093
|
/* @__PURE__ */ n.jsx(Vs, {}),
|
|
1094
1094
|
/* @__PURE__ */ n.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1095
1095
|
/* @__PURE__ */ n.jsx(M, { name: "head-navigation-start" }),
|
|
1096
1096
|
a && /* @__PURE__ */ n.jsx(
|
|
1097
|
-
|
|
1097
|
+
xe,
|
|
1098
1098
|
{
|
|
1099
|
-
fallback: /* @__PURE__ */ n.jsx(
|
|
1100
|
-
children: s ? Object.values(u).length > 0 && /* @__PURE__ */ n.jsxs(
|
|
1101
|
-
/* @__PURE__ */ n.jsx(
|
|
1102
|
-
/* @__PURE__ */ n.jsxs(
|
|
1103
|
-
/* @__PURE__ */ n.jsxs(
|
|
1099
|
+
fallback: /* @__PURE__ */ n.jsx(Rs, { className: "rounded h-5 w-24 mr-4" }),
|
|
1100
|
+
children: s ? Object.values(u).length > 0 && /* @__PURE__ */ n.jsxs(as, { modal: !1, children: [
|
|
1101
|
+
/* @__PURE__ */ n.jsx(is, { asChild: !0, children: /* @__PURE__ */ n.jsx(ce, { variant: "ghost", children: r != null && r.name ? `${r.name}` : "My Account" }) }),
|
|
1102
|
+
/* @__PURE__ */ n.jsxs(os, { className: "w-56", children: [
|
|
1103
|
+
/* @__PURE__ */ n.jsxs(ls, { children: [
|
|
1104
1104
|
r != null && r.name ? `${r.name}` : "My Account",
|
|
1105
1105
|
(r == null ? void 0 : r.email) && /* @__PURE__ */ n.jsx("div", { className: "font-normal text-muted-foreground", children: r.email })
|
|
1106
1106
|
] }),
|
|
@@ -1118,18 +1118,18 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1118
1118
|
] }) : /* @__PURE__ */ n.jsx(ce, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
1119
1119
|
}
|
|
1120
1120
|
),
|
|
1121
|
-
/* @__PURE__ */ n.jsx(
|
|
1121
|
+
/* @__PURE__ */ n.jsx(rt, {}),
|
|
1122
1122
|
/* @__PURE__ */ n.jsx(M, { name: "head-navigation-end" })
|
|
1123
1123
|
] })
|
|
1124
1124
|
] })
|
|
1125
1125
|
] }) }),
|
|
1126
1126
|
/* @__PURE__ */ n.jsx("div", { className: "border-b", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto border-l border-r", children: [
|
|
1127
1127
|
/* @__PURE__ */ n.jsx(M, { name: "top-navigation-before" }),
|
|
1128
|
-
/* @__PURE__ */ n.jsx(
|
|
1128
|
+
/* @__PURE__ */ n.jsx(Us, {}),
|
|
1129
1129
|
/* @__PURE__ */ n.jsx(M, { name: "top-navigation-after" })
|
|
1130
1130
|
] }) })
|
|
1131
1131
|
] });
|
|
1132
|
-
}),
|
|
1132
|
+
}), lt = Ft(({ children: e, className: t, pushMainContent: s }, r) => /* @__PURE__ */ n.jsx(
|
|
1133
1133
|
"nav",
|
|
1134
1134
|
{
|
|
1135
1135
|
"data-navigation": String(s),
|
|
@@ -1144,14 +1144,14 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1144
1144
|
children: e
|
|
1145
1145
|
}
|
|
1146
1146
|
));
|
|
1147
|
-
|
|
1148
|
-
const
|
|
1147
|
+
lt.displayName = "SidebarWrapper";
|
|
1148
|
+
const Ws = ({
|
|
1149
1149
|
onRequestClose: e
|
|
1150
1150
|
}) => {
|
|
1151
|
-
const t =
|
|
1151
|
+
const t = me(null), s = Ue();
|
|
1152
1152
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1153
1153
|
/* @__PURE__ */ n.jsxs(
|
|
1154
|
-
|
|
1154
|
+
lt,
|
|
1155
1155
|
{
|
|
1156
1156
|
ref: t,
|
|
1157
1157
|
pushMainContent: s.sidebar.length > 0,
|
|
@@ -1168,7 +1168,7 @@ const Us = ({
|
|
|
1168
1168
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1169
1169
|
"aria-describedby": void 0,
|
|
1170
1170
|
children: /* @__PURE__ */ n.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1171
|
-
/* @__PURE__ */ n.jsx(
|
|
1171
|
+
/* @__PURE__ */ n.jsx(tt, { children: /* @__PURE__ */ n.jsx(Ge, { children: "Sidebar" }) }),
|
|
1172
1172
|
s.sidebar.map((r) => /* @__PURE__ */ n.jsx(
|
|
1173
1173
|
de,
|
|
1174
1174
|
{
|
|
@@ -1181,17 +1181,17 @@ const Us = ({
|
|
|
1181
1181
|
}
|
|
1182
1182
|
)
|
|
1183
1183
|
] });
|
|
1184
|
-
},
|
|
1185
|
-
const t = he(), { setActiveAnchor: s } =
|
|
1186
|
-
|
|
1187
|
-
const i =
|
|
1188
|
-
|
|
1184
|
+
}, qe = () => /* @__PURE__ */ n.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ n.jsx(et, {}) }), _s = ({ children: e }) => {
|
|
1185
|
+
const t = he(), { setActiveAnchor: s } = ye(), { meta: r, authentication: a } = q();
|
|
1186
|
+
Ts(), qs();
|
|
1187
|
+
const i = me(t.pathname);
|
|
1188
|
+
R(() => {
|
|
1189
1189
|
var f;
|
|
1190
1190
|
(f = a == null ? void 0 : a.onPageLoad) == null || f.call(a);
|
|
1191
|
-
}, [a]),
|
|
1191
|
+
}, [a]), R(() => {
|
|
1192
1192
|
t.pathname !== i.current && s(""), i.current = t.pathname;
|
|
1193
1193
|
}, [t.pathname, s]);
|
|
1194
|
-
const o = !!fe().location, d =
|
|
1194
|
+
const o = !!fe().location, d = Ds.useSpinDelay(o, {
|
|
1195
1195
|
delay: 300,
|
|
1196
1196
|
minDuration: 500
|
|
1197
1197
|
}), [u, l] = T(!1);
|
|
@@ -1202,16 +1202,16 @@ const Us = ({
|
|
|
1202
1202
|
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: r.favicon })
|
|
1203
1203
|
] }),
|
|
1204
1204
|
/* @__PURE__ */ n.jsx(M, { name: "layout-before-head" }),
|
|
1205
|
-
/* @__PURE__ */ n.jsx(
|
|
1205
|
+
/* @__PURE__ */ n.jsx(ot, {}),
|
|
1206
1206
|
/* @__PURE__ */ n.jsx(M, { name: "layout-after-head" }),
|
|
1207
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: d ? /* @__PURE__ */ n.jsx(
|
|
1207
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: d ? /* @__PURE__ */ n.jsx(qe, {}) : /* @__PURE__ */ n.jsx(pe, { fallback: /* @__PURE__ */ n.jsx(qe, {}), children: /* @__PURE__ */ n.jsxs(
|
|
1208
1208
|
Xe,
|
|
1209
1209
|
{
|
|
1210
1210
|
direction: "left",
|
|
1211
1211
|
open: u,
|
|
1212
1212
|
onOpenChange: (f) => l(f),
|
|
1213
1213
|
children: [
|
|
1214
|
-
/* @__PURE__ */ n.jsx(
|
|
1214
|
+
/* @__PURE__ */ n.jsx(Ws, { onRequestClose: () => l(!1) }),
|
|
1215
1215
|
/* @__PURE__ */ n.jsx(
|
|
1216
1216
|
"div",
|
|
1217
1217
|
{
|
|
@@ -1220,7 +1220,7 @@ const Us = ({
|
|
|
1220
1220
|
"peer-data-[navigation=false]:hidden"
|
|
1221
1221
|
),
|
|
1222
1222
|
children: /* @__PURE__ */ n.jsxs(Ye, { className: "flex items-center gap-2", children: [
|
|
1223
|
-
/* @__PURE__ */ n.jsx(
|
|
1223
|
+
/* @__PURE__ */ n.jsx(Xt, { size: 16, strokeWidth: 1.5 }),
|
|
1224
1224
|
/* @__PURE__ */ n.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1225
1225
|
] })
|
|
1226
1226
|
}
|
|
@@ -1237,7 +1237,7 @@ const Us = ({
|
|
|
1237
1237
|
),
|
|
1238
1238
|
children: [
|
|
1239
1239
|
/* @__PURE__ */ n.jsx(M, { name: "zudoku-before-content" }),
|
|
1240
|
-
e ?? /* @__PURE__ */ n.jsx(
|
|
1240
|
+
e ?? /* @__PURE__ */ n.jsx(He, {}),
|
|
1241
1241
|
/* @__PURE__ */ n.jsx(M, { name: "zudoku-after-content" })
|
|
1242
1242
|
]
|
|
1243
1243
|
}
|
|
@@ -1246,11 +1246,11 @@ const Us = ({
|
|
|
1246
1246
|
}
|
|
1247
1247
|
) }) })
|
|
1248
1248
|
] });
|
|
1249
|
-
},
|
|
1249
|
+
}, Xs = _e(null), oe = {
|
|
1250
1250
|
didCatch: !1,
|
|
1251
1251
|
error: null
|
|
1252
1252
|
};
|
|
1253
|
-
class
|
|
1253
|
+
class Ys extends Bt {
|
|
1254
1254
|
constructor(t) {
|
|
1255
1255
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = oe;
|
|
1256
1256
|
}
|
|
@@ -1283,7 +1283,7 @@ class Xs extends Ht {
|
|
|
1283
1283
|
} = this.state, {
|
|
1284
1284
|
resetKeys: a
|
|
1285
1285
|
} = this.props;
|
|
1286
|
-
if (r && s.error !== null &&
|
|
1286
|
+
if (r && s.error !== null && Js(t.resetKeys, a)) {
|
|
1287
1287
|
var i, o;
|
|
1288
1288
|
(i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
|
|
1289
1289
|
next: a,
|
|
@@ -1317,7 +1317,7 @@ class Xs extends Ht {
|
|
|
1317
1317
|
else
|
|
1318
1318
|
throw o;
|
|
1319
1319
|
}
|
|
1320
|
-
return Oe(
|
|
1320
|
+
return Oe(Xs.Provider, {
|
|
1321
1321
|
value: {
|
|
1322
1322
|
didCatch: i,
|
|
1323
1323
|
error: o,
|
|
@@ -1326,11 +1326,11 @@ class Xs extends Ht {
|
|
|
1326
1326
|
}, d);
|
|
1327
1327
|
}
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function Js() {
|
|
1330
1330
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1331
1331
|
return e.length !== t.length || e.some((s, r) => !Object.is(s, t[r]));
|
|
1332
1332
|
}
|
|
1333
|
-
class
|
|
1333
|
+
class Gs {
|
|
1334
1334
|
constructor(t) {
|
|
1335
1335
|
k(this, "plugins");
|
|
1336
1336
|
k(this, "sidebars");
|
|
@@ -1341,20 +1341,20 @@ class Js {
|
|
|
1341
1341
|
k(this, "navigationPlugins");
|
|
1342
1342
|
k(this, "initialize", async () => {
|
|
1343
1343
|
await Promise.all(
|
|
1344
|
-
this.plugins.filter(
|
|
1344
|
+
this.plugins.filter(Hs).map((t) => {
|
|
1345
1345
|
var s;
|
|
1346
1346
|
return (s = t.initialize) == null ? void 0 : s.call(t, this);
|
|
1347
1347
|
})
|
|
1348
1348
|
);
|
|
1349
1349
|
});
|
|
1350
1350
|
k(this, "getApiIdentities", async () => (await Promise.all(
|
|
1351
|
-
this.plugins.filter(
|
|
1351
|
+
this.plugins.filter($s).map((s) => s.getIdentities(this))
|
|
1352
1352
|
)).flat());
|
|
1353
1353
|
k(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
1354
1354
|
this.navigationPlugins.map(
|
|
1355
1355
|
(r) => {
|
|
1356
1356
|
var a;
|
|
1357
|
-
return (a = r.getSidebar) == null ? void 0 : a.call(r,
|
|
1357
|
+
return (a = r.getSidebar) == null ? void 0 : a.call(r, W(t));
|
|
1358
1358
|
}
|
|
1359
1359
|
)
|
|
1360
1360
|
)).flatMap((r) => r ?? []));
|
|
@@ -1364,77 +1364,77 @@ class Js {
|
|
|
1364
1364
|
const s = await this.authentication.getAccessToken();
|
|
1365
1365
|
return t.headers.set("Authorization", `Bearer ${s}`), t;
|
|
1366
1366
|
});
|
|
1367
|
-
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
1367
|
+
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Bs), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return /* @__PURE__ */ n.jsx(
|
|
1370
|
+
function en({ error: e, resetErrorBoundary: t }) {
|
|
1371
|
+
return /* @__PURE__ */ n.jsx(Le, { error: e });
|
|
1372
1372
|
}
|
|
1373
1373
|
const ee = globalThis;
|
|
1374
1374
|
(!ee.requestIdleCallback || !ee.cancelIdleCallback) && (ee.requestIdleCallback = (e) => setTimeout(e, 1), ee.cancelIdleCallback = clearTimeout);
|
|
1375
|
-
const
|
|
1376
|
-
Header:
|
|
1377
|
-
},
|
|
1375
|
+
const ct = {
|
|
1376
|
+
Header: ot
|
|
1377
|
+
}, tn = _e(ct), sn = tn.Provider, nn = ({
|
|
1378
1378
|
children: e,
|
|
1379
1379
|
context: t
|
|
1380
|
-
}) => (
|
|
1380
|
+
}) => (Qt({
|
|
1381
1381
|
queryFn: async () => (await t.initialize(), !0),
|
|
1382
1382
|
queryKey: ["zudoku-initialize"]
|
|
1383
|
-
}), /* @__PURE__ */ n.jsx(
|
|
1383
|
+
}), /* @__PURE__ */ n.jsx(Tt.Provider, { value: t, children: e })), dt = We(
|
|
1384
1384
|
({ children: e, ...t }) => {
|
|
1385
1385
|
var g, h;
|
|
1386
1386
|
const s = ne(
|
|
1387
|
-
() => ({ ...
|
|
1387
|
+
() => ({ ...ct, ...t.overrides }),
|
|
1388
1388
|
[t.overrides]
|
|
1389
1389
|
), r = ne(() => {
|
|
1390
1390
|
var x;
|
|
1391
1391
|
return {
|
|
1392
|
-
...(t.plugins ?? []).filter(
|
|
1392
|
+
...(t.plugins ?? []).filter(Ks).flatMap(
|
|
1393
1393
|
(m) => m.getMdxComponents ? [m.getMdxComponents()] : []
|
|
1394
1394
|
).reduce(
|
|
1395
1395
|
(m, C) => ({ ...m, ...C }),
|
|
1396
1396
|
{}
|
|
1397
1397
|
),
|
|
1398
|
-
...
|
|
1398
|
+
...Yt,
|
|
1399
1399
|
...(x = t.mdx) == null ? void 0 : x.components
|
|
1400
1400
|
};
|
|
1401
|
-
}, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } =
|
|
1401
|
+
}, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } = zt(le), [i, o] = T(!1), d = ne(
|
|
1402
1402
|
() => i ? { stagger: !0 } : { stagger: a },
|
|
1403
1403
|
[a, i]
|
|
1404
1404
|
), u = fe();
|
|
1405
|
-
|
|
1405
|
+
R(() => {
|
|
1406
1406
|
i || o(!0);
|
|
1407
1407
|
}, [i, u.location]);
|
|
1408
|
-
const [l] = T(() => new
|
|
1408
|
+
const [l] = T(() => new Gs(t)), f = (h = t.plugins) == null ? void 0 : h.filter(Ls).map((p, x) => {
|
|
1409
1409
|
var m;
|
|
1410
|
-
return /* @__PURE__ */ n.jsx(
|
|
1410
|
+
return /* @__PURE__ */ n.jsx(Ht, { children: (m = p.getHead) == null ? void 0 : m.call(p) }, x);
|
|
1411
1411
|
});
|
|
1412
1412
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1413
1413
|
/* @__PURE__ */ n.jsx(ue, { children: f }),
|
|
1414
|
-
/* @__PURE__ */ n.jsx(le.Provider, { value: d, children: /* @__PURE__ */ n.jsx(
|
|
1414
|
+
/* @__PURE__ */ n.jsx(le.Provider, { value: d, children: /* @__PURE__ */ n.jsx(nn, { context: l, children: /* @__PURE__ */ n.jsx(ns, { components: r, children: /* @__PURE__ */ n.jsx(ms, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ n.jsx(sn, { value: s, children: /* @__PURE__ */ n.jsx(vt, { slotlets: t.slotlets, children: /* @__PURE__ */ n.jsx(Jt, { children: e ?? /* @__PURE__ */ n.jsx(He, {}) }) }) }) }) }) }) })
|
|
1415
1415
|
] });
|
|
1416
1416
|
}
|
|
1417
1417
|
);
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
const
|
|
1418
|
+
dt.displayName = "ZudokoInner";
|
|
1419
|
+
const ut = (e) => /* @__PURE__ */ n.jsx(Ys, { FallbackComponent: en, children: /* @__PURE__ */ n.jsx(dt, { ...e }) });
|
|
1420
|
+
ut.displayName = "Zudoku";
|
|
1421
|
+
const On = rs, Dn = _s, An = jt, En = ks, In = Ps, Qn = Ss, Tn = ue, qn = q, Rn = V, Fn = ut, Bn = kt, zn = Gt, Hn = et, Ln = xe, Kn = wt, $n = ge;
|
|
1422
1422
|
export {
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1423
|
+
In as Bootstrap,
|
|
1424
|
+
Qn as BootstrapStatic,
|
|
1425
|
+
Kn as Button,
|
|
1426
|
+
Bn as Callout,
|
|
1427
|
+
Ln as ClientOnly,
|
|
1428
|
+
Tn as Head,
|
|
1429
|
+
Dn as Layout,
|
|
1430
|
+
$n as Link,
|
|
1431
|
+
zn as Markdown,
|
|
1432
|
+
An as RouterError,
|
|
1433
|
+
En as ServerError,
|
|
1434
|
+
Hn as Spinner,
|
|
1435
|
+
Fn as Zudoku,
|
|
1436
|
+
Rn as useAuth,
|
|
1437
|
+
On as useMDXComponents,
|
|
1438
|
+
qn as useZudoku
|
|
1439
1439
|
};
|
|
1440
1440
|
//# sourceMappingURL=zudoku.components.js.map
|