zudoku 0.32.1 → 0.32.2
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/tailwind.js +6 -0
- package/dist/app/tailwind.js.map +1 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +15 -15
- package/dist/config/validators/InputSidebarSchema.js +10 -1
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +40 -40
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +19 -19
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/TopNavigation.js +3 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -0
- package/dist/lib/components/navigation/SidebarBadge.js +3 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +1 -1
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +3 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +2 -2
- package/dist/lib/plugins/api-catalog/Catalog.js +11 -24
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +1 -0
- package/dist/lib/plugins/api-catalog/index.js +37 -8
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.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/SidecarExamples.js +2 -2
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +0 -11
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Button.d.ts +1 -1
- package/dist/lib/ui/Command.d.ts +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +14 -0
- package/dist/lib/{components → ui}/SyntaxHighlight.js +9 -6
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.js +1 -1
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/config.js +4 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api.js +2 -2
- package/dist/vite/plugin-api.js.map +1 -1
- package/lib/{AuthenticationPlugin-_YVa673u.js → AuthenticationPlugin-BlxA4Mbn.js} +4 -4
- package/lib/{AuthenticationPlugin-_YVa673u.js.map → AuthenticationPlugin-BlxA4Mbn.js.map} +1 -1
- package/lib/{CategoryHeading-MYL1u_6K.js → CategoryHeading-DpB47wvk.js} +3 -3
- package/lib/{CategoryHeading-MYL1u_6K.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
- package/lib/{Markdown-8mv9nhGd.js → Markdown-Cr9sYpR_.js} +4800 -4729
- package/lib/Markdown-Cr9sYpR_.js.map +1 -0
- package/lib/{MdxPage-GM1T5jmO.js → MdxPage-Dt-UEQl8.js} +10 -10
- package/lib/MdxPage-Dt-UEQl8.js.map +1 -0
- package/lib/{OasProvider-IS9wBrb7.js → OasProvider-WVtvHP5H.js} +6 -6
- package/lib/{OasProvider-IS9wBrb7.js.map → OasProvider-WVtvHP5H.js.map} +1 -1
- package/lib/{OperationList-BTmRbbXk.js → OperationList-DhOwupvv.js} +18 -19
- package/lib/{OperationList-BTmRbbXk.js.map → OperationList-DhOwupvv.js.map} +1 -1
- package/lib/Select-D9hI1G-y.js +223 -0
- package/lib/{Select-D9CKL33X.js.map → Select-D9hI1G-y.js.map} +1 -1
- package/lib/{SlotletProvider-D0mFmGJu.js → SlotletProvider-CEfNOA8i.js} +53 -53
- package/lib/{SlotletProvider-D0mFmGJu.js.map → SlotletProvider-CEfNOA8i.js.map} +1 -1
- package/lib/{Spinner-BlzrEEk1.js → Spinner-1KrEmx1V.js} +3 -3
- package/lib/{Spinner-BlzrEEk1.js.map → Spinner-1KrEmx1V.js.map} +1 -1
- package/lib/{SyntaxHighlight-B0L4SC_N.js → SyntaxHighlight-CcnUjERD.js} +445 -445
- package/lib/SyntaxHighlight-CcnUjERD.js.map +1 -0
- package/lib/{chunk-SYFQ2XB5-QijJrSf0.js → chunk-IR6S3I6Y-D_3UmFIn.js} +597 -597
- package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +1 -0
- package/lib/{circular-DxaIIlWD.js → circular-v7K6lDDh.js} +1413 -1413
- package/lib/{circular-DxaIIlWD.js.map → circular-v7K6lDDh.js.map} +1 -1
- package/lib/context-DLCwaMXN.js +22 -0
- package/lib/{context-rwLGh-6_.js.map → context-DLCwaMXN.js.map} +1 -1
- package/lib/{createServer-DSQiPwjN.js → createServer-DMf6O2Rz.js} +3669 -3562
- package/lib/createServer-DMf6O2Rz.js.map +1 -0
- package/lib/{hook-C_t2ISLC.js → hook-CWwSAAlH.js} +384 -379
- package/lib/hook-CWwSAAlH.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/index-Bn6Lc9tq.js.map +1 -0
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/{index-Djenk2Hj.js.map → index-CPNSgwSb.js.map} +1 -1
- package/lib/{index-BANyVRgL.js → index-Do_30Hpk.js} +78 -78
- package/lib/index-Do_30Hpk.js.map +1 -0
- package/lib/{index-B7mqiOei.js → index-Du5aNddU.js} +101 -101
- package/lib/index-Du5aNddU.js.map +1 -0
- package/lib/{index-CjJS0l4l.js → index-LNp6rxyU.js} +2 -2
- package/lib/{index-CjJS0l4l.js.map → index-LNp6rxyU.js.map} +1 -1
- package/lib/{index.esm-CrSoEshU.js → index.esm--gIChbWs.js} +3 -3
- package/lib/{index.esm-CrSoEshU.js.map → index.esm--gIChbWs.js.map} +1 -1
- package/lib/{index.esm-9-TF9KQB.js → index.esm-CQHE3GEU.js} +52 -53
- package/lib/{index.esm-9-TF9KQB.js.map → index.esm-CQHE3GEU.js.map} +1 -1
- package/lib/joinUrl-10po2Jdj.js +20 -0
- package/lib/{joinUrl-nLx9pD-Z.js.map → joinUrl-10po2Jdj.js.map} +1 -1
- package/lib/{jsx-runtime-Bdg6XQ1m.js → jsx-runtime-CYK1ROHF.js} +99 -99
- package/lib/{jsx-runtime-Bdg6XQ1m.js.map → jsx-runtime-CYK1ROHF.js.map} +1 -1
- package/lib/{mutation-Cm3O9f3X.js → mutation-B0wxqzSN.js} +26 -26
- package/lib/{mutation-Cm3O9f3X.js.map → mutation-B0wxqzSN.js.map} +1 -1
- package/lib/post-processors/removeExtensions.js +4 -4
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/Alert.js +2 -2
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +2 -2
- package/lib/ui/Breadcrumb.js +4 -4
- package/lib/ui/Button.js +2 -2
- package/lib/ui/Callout.js +4 -4
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Checkbox.js +2 -2
- package/lib/ui/Command.js +2 -2
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +521 -543
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/Form.js +5 -5
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Pagination.js +10 -10
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +10 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +2 -2
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/{useExposedProps-Bbf99zic.js → useExposedProps-RIvey2Oy.js} +2 -2
- package/lib/{useExposedProps-Bbf99zic.js.map → useExposedProps-RIvey2Oy.js.map} +1 -1
- package/lib/{useScrollToAnchor-BGEcH3HM.js → useScrollToAnchor-C-sRxs9o.js} +13 -9
- package/lib/useScrollToAnchor-C-sRxs9o.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +18 -18
- package/lib/zudoku.auth-openid.js +255 -295
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +305 -298
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +91 -108
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-custom-pages.js +3 -3
- package/lib/zudoku.plugin-markdown.js +2 -2
- package/lib/zudoku.plugin-openapi.js +6 -6
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +9 -9
- package/package.json +49 -50
- package/src/app/tailwind.ts +6 -0
- package/src/lib/components/Header.tsx +1 -1
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/TopNavigation.tsx +13 -9
- package/src/lib/components/index.ts +2 -0
- package/src/lib/components/navigation/SidebarBadge.tsx +4 -1
- package/src/lib/components/navigation/SidebarItem.tsx +1 -0
- package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
- package/src/lib/oas/graphql/index.ts +4 -1
- package/src/lib/plugins/api-catalog/Catalog.tsx +31 -94
- package/src/lib/plugins/api-catalog/index.tsx +54 -9
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -2
- package/src/lib/plugins/openapi/graphql/gql.ts +9 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +1 -1
- package/src/lib/{components → ui}/SyntaxHighlight.tsx +23 -8
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +1 -1
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/lib/Markdown-8mv9nhGd.js.map +0 -1
- package/lib/MdxPage-GM1T5jmO.js.map +0 -1
- package/lib/Select-D9CKL33X.js +0 -223
- package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
- package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
- package/lib/context-rwLGh-6_.js +0 -22
- package/lib/createServer-DSQiPwjN.js.map +0 -1
- package/lib/hook-C_t2ISLC.js.map +0 -1
- package/lib/index-B7mqiOei.js.map +0 -1
- package/lib/index-BANyVRgL.js.map +0 -1
- package/lib/index-Djenk2Hj.js +0 -36
- package/lib/joinUrl-nLx9pD-Z.js +0 -20
- package/lib/useScrollToAnchor-BGEcH3HM.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ut = Object.defineProperty;
|
|
2
2
|
var xe = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var P = (t, e, r) =>
|
|
7
|
-
var l = (t, e, r) => (
|
|
5
|
+
var dt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var P = (t, e, r) => dt(t, typeof e != "symbol" ? e + "" : e, r), ve = (t, e, r) => e.has(t) || xe("Cannot " + r);
|
|
7
|
+
var l = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), j = (t, e, r) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), v = (t, e, r, n) => (ve(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
|
|
8
8
|
var G = (t, e, r, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
|
-
|
|
10
|
+
v(t, e, a, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return l(t, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { j as
|
|
16
|
+
import { a as Fe, H as oe } from "./index.esm-CQHE3GEU.js";
|
|
17
|
+
import { z as Be, J as ht } from "./SyntaxHighlight-CcnUjERD.js";
|
|
18
|
+
import { u as le, m as ft, O as ce, R as gt, S as mt, h as ue, f as pt, L as de } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
|
|
19
|
+
import { S as He, m as ze, Q as xt, n as w, o as ye, p as be, q as M, r as vt, t as yt, v as bt, w as jt, x as je, y as we, z as wt, h as Pe, A as Ce, B as Pt, e as Ct, k as z, i as A, C as Le, D as Ke, E as kt, j as ne, a as St, Z as Nt, F as Dt, G as Mt } from "./hook-CWwSAAlH.js";
|
|
20
|
+
import { j as s } from "./jsx-runtime-CYK1ROHF.js";
|
|
20
21
|
import * as U from "react";
|
|
21
|
-
import
|
|
22
|
-
import { Z as
|
|
23
|
-
import { E as
|
|
24
|
-
import { Button as
|
|
25
|
-
import { Callout as
|
|
26
|
-
import { M as
|
|
27
|
-
import * as
|
|
22
|
+
import Ot, { useRef as ee, useEffect as I, createContext as he, StrictMode as $e, useState as L, useCallback as At, Suspense as fe, memo as Ue, forwardRef as Et, Component as qt, createElement as ke, useMemo as te, useContext as Tt, Fragment as It } from "react";
|
|
23
|
+
import { Z as Ze } from "./invariant-Caa8-XvF.js";
|
|
24
|
+
import { E as Ye, S, a as Qt, R as Rt } from "./SlotletProvider-CEfNOA8i.js";
|
|
25
|
+
import { Button as Ft } from "./ui/Button.js";
|
|
26
|
+
import { Callout as Bt } from "./ui/Callout.js";
|
|
27
|
+
import { M as Ht } from "./mutation-B0wxqzSN.js";
|
|
28
|
+
import * as zt from "react-dom";
|
|
28
29
|
import { C as ge } from "./ClientOnly-E7hGysn1.js";
|
|
29
|
-
import { CircleXIcon as
|
|
30
|
-
import { Drawer as
|
|
30
|
+
import { CircleXIcon as Lt, SearchIcon as Kt, SunIcon as $t, MoonIcon as Ut, MenuIcon as Zt, PanelLeftIcon as Yt } from "lucide-react";
|
|
31
|
+
import { Drawer as Ve, DrawerTrigger as Xe, DrawerContent as Ge, DrawerTitle as _e } from "./ui/Drawer.js";
|
|
31
32
|
import { c as Q } from "./cn-qaFjX9_3.js";
|
|
32
|
-
import { s as
|
|
33
|
-
import { u as
|
|
34
|
-
import { B as ae, S as
|
|
35
|
-
import { isSearchPlugin as
|
|
36
|
-
import { DropdownMenu as
|
|
37
|
-
import { j as Ne } from "./joinUrl-
|
|
38
|
-
import { VisuallyHidden as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
|
|
42
|
-
var N, Te, jr = (Te = class extends Fe {
|
|
33
|
+
import { s as Vt, S as Se, a as Xt, M as Gt, u as _t } from "./useScrollToAnchor-C-sRxs9o.js";
|
|
34
|
+
import { u as Wt, H as Jt, P as er, a as tr, V as rr, M as sr } from "./Markdown-Cr9sYpR_.js";
|
|
35
|
+
import { B as ae, S as We } from "./Spinner-1KrEmx1V.js";
|
|
36
|
+
import { isSearchPlugin as nr, isProfileMenuPlugin as ar, isNavigationPlugin as ir, needsInitialization as or, isApiIdentityPlugin as lr, isMdxProviderPlugin as cr, hasHead as ur } from "./zudoku.plugins.js";
|
|
37
|
+
import { DropdownMenu as dr, DropdownMenuTrigger as hr, DropdownMenuContent as fr, DropdownMenuLabel as gr, DropdownMenuSeparator as re, DropdownMenuSub as mr, DropdownMenuSubTrigger as pr, DropdownMenuPortal as xr, DropdownMenuSubContent as vr, DropdownMenuItem as yr } from "./ui/DropdownMenu.js";
|
|
38
|
+
import { j as Ne } from "./joinUrl-10po2Jdj.js";
|
|
39
|
+
import { VisuallyHidden as Je } from "@radix-ui/react-visually-hidden";
|
|
40
|
+
import { a as br } from "./index-CPNSgwSb.js";
|
|
41
|
+
import { C as jr } from "./CategoryHeading-DpB47wvk.js";
|
|
42
|
+
var D, Ie, wr = (Ie = class extends He {
|
|
43
43
|
constructor(e = {}) {
|
|
44
44
|
super();
|
|
45
|
-
j(this,
|
|
46
|
-
this.config = e,
|
|
45
|
+
j(this, D);
|
|
46
|
+
this.config = e, v(this, D, /* @__PURE__ */ new Map());
|
|
47
47
|
}
|
|
48
48
|
build(e, r, n) {
|
|
49
|
-
const a = r.queryKey, o = r.queryHash ??
|
|
49
|
+
const a = r.queryKey, o = r.queryHash ?? ze(a, r);
|
|
50
50
|
let i = this.get(o);
|
|
51
|
-
return i || (i = new
|
|
52
|
-
|
|
51
|
+
return i || (i = new xt({
|
|
52
|
+
client: e,
|
|
53
53
|
queryKey: a,
|
|
54
54
|
queryHash: o,
|
|
55
55
|
options: e.defaultQueryOptions(r),
|
|
@@ -58,14 +58,14 @@ var N, Te, jr = (Te = class extends Fe {
|
|
|
58
58
|
}), this.add(i)), i;
|
|
59
59
|
}
|
|
60
60
|
add(e) {
|
|
61
|
-
l(this,
|
|
61
|
+
l(this, D).has(e.queryHash) || (l(this, D).set(e.queryHash, e), this.notify({
|
|
62
62
|
type: "added",
|
|
63
63
|
query: e
|
|
64
64
|
}));
|
|
65
65
|
}
|
|
66
66
|
remove(e) {
|
|
67
|
-
const r = l(this,
|
|
68
|
-
r && (e.destroy(), r === e && l(this,
|
|
67
|
+
const r = l(this, D).get(e.queryHash);
|
|
68
|
+
r && (e.destroy(), r === e && l(this, D).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
69
69
|
}
|
|
70
70
|
clear() {
|
|
71
71
|
w.batch(() => {
|
|
@@ -75,20 +75,20 @@ var N, Te, jr = (Te = class extends Fe {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
get(e) {
|
|
78
|
-
return l(this,
|
|
78
|
+
return l(this, D).get(e);
|
|
79
79
|
}
|
|
80
80
|
getAll() {
|
|
81
|
-
return [...l(this,
|
|
81
|
+
return [...l(this, D).values()];
|
|
82
82
|
}
|
|
83
83
|
find(e) {
|
|
84
84
|
const r = { exact: !0, ...e };
|
|
85
85
|
return this.getAll().find(
|
|
86
|
-
(n) =>
|
|
86
|
+
(n) => ye(r, n)
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
89
|
findAll(e = {}) {
|
|
90
90
|
const r = this.getAll();
|
|
91
|
-
return Object.keys(e).length > 0 ? r.filter((n) =>
|
|
91
|
+
return Object.keys(e).length > 0 ? r.filter((n) => ye(e, n)) : r;
|
|
92
92
|
}
|
|
93
93
|
notify(e) {
|
|
94
94
|
w.batch(() => {
|
|
@@ -111,16 +111,16 @@ var N, Te, jr = (Te = class extends Fe {
|
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, D = new WeakMap(), Ie), O, k, Y, Qe, Pr = (Qe = class extends He {
|
|
115
115
|
constructor(e = {}) {
|
|
116
116
|
super();
|
|
117
117
|
j(this, O);
|
|
118
|
-
j(this,
|
|
118
|
+
j(this, k);
|
|
119
119
|
j(this, Y);
|
|
120
|
-
this.config = e,
|
|
120
|
+
this.config = e, v(this, O, /* @__PURE__ */ new Set()), v(this, k, /* @__PURE__ */ new Map()), v(this, Y, 0);
|
|
121
121
|
}
|
|
122
122
|
build(e, r, n) {
|
|
123
|
-
const a = new
|
|
123
|
+
const a = new Ht({
|
|
124
124
|
mutationCache: this,
|
|
125
125
|
mutationId: ++G(this, Y)._,
|
|
126
126
|
options: e.defaultMutationOptions(r),
|
|
@@ -132,8 +132,8 @@ var N, Te, jr = (Te = class extends Fe {
|
|
|
132
132
|
l(this, O).add(e);
|
|
133
133
|
const r = _(e);
|
|
134
134
|
if (typeof r == "string") {
|
|
135
|
-
const n = l(this,
|
|
136
|
-
n ? n.push(e) : l(this,
|
|
135
|
+
const n = l(this, k).get(r);
|
|
136
|
+
n ? n.push(e) : l(this, k).set(r, [e]);
|
|
137
137
|
}
|
|
138
138
|
this.notify({ type: "added", mutation: e });
|
|
139
139
|
}
|
|
@@ -141,12 +141,12 @@ var N, Te, jr = (Te = class extends Fe {
|
|
|
141
141
|
if (l(this, O).delete(e)) {
|
|
142
142
|
const r = _(e);
|
|
143
143
|
if (typeof r == "string") {
|
|
144
|
-
const n = l(this,
|
|
144
|
+
const n = l(this, k).get(r);
|
|
145
145
|
if (n)
|
|
146
146
|
if (n.length > 1) {
|
|
147
147
|
const a = n.indexOf(e);
|
|
148
148
|
a !== -1 && n.splice(a, 1);
|
|
149
|
-
} else n[0] === e && l(this,
|
|
149
|
+
} else n[0] === e && l(this, k).delete(r);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
this.notify({ type: "removed", mutation: e });
|
|
@@ -154,7 +154,7 @@ var N, Te, jr = (Te = class extends Fe {
|
|
|
154
154
|
canRun(e) {
|
|
155
155
|
const r = _(e);
|
|
156
156
|
if (typeof r == "string") {
|
|
157
|
-
const n = l(this,
|
|
157
|
+
const n = l(this, k).get(r), a = n == null ? void 0 : n.find(
|
|
158
158
|
(o) => o.state.status === "pending"
|
|
159
159
|
);
|
|
160
160
|
return !a || a === e;
|
|
@@ -165,7 +165,7 @@ var N, Te, jr = (Te = class extends Fe {
|
|
|
165
165
|
var n;
|
|
166
166
|
const r = _(e);
|
|
167
167
|
if (typeof r == "string") {
|
|
168
|
-
const a = (n = l(this,
|
|
168
|
+
const a = (n = l(this, k).get(r)) == null ? void 0 : n.find((o) => o !== e && o.state.isPaused);
|
|
169
169
|
return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
|
|
170
170
|
} else
|
|
171
171
|
return Promise.resolve();
|
|
@@ -174,7 +174,7 @@ var N, Te, jr = (Te = class extends Fe {
|
|
|
174
174
|
w.batch(() => {
|
|
175
175
|
l(this, O).forEach((e) => {
|
|
176
176
|
this.notify({ type: "removed", mutation: e });
|
|
177
|
-
}), l(this, O).clear(), l(this,
|
|
177
|
+
}), l(this, O).clear(), l(this, k).clear();
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
getAll() {
|
|
@@ -204,7 +204,7 @@ var N, Te, jr = (Te = class extends Fe {
|
|
|
204
204
|
)
|
|
205
205
|
);
|
|
206
206
|
}
|
|
207
|
-
}, O = new WeakMap(),
|
|
207
|
+
}, O = new WeakMap(), k = new WeakMap(), Y = new WeakMap(), Qe);
|
|
208
208
|
function _(t) {
|
|
209
209
|
var e;
|
|
210
210
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
@@ -212,61 +212,63 @@ function _(t) {
|
|
|
212
212
|
function De(t) {
|
|
213
213
|
return {
|
|
214
214
|
onFetch: (e, r) => {
|
|
215
|
-
var g, f, h,
|
|
216
|
-
const n = e.options, a = (h = (f = (g = e.fetchOptions) == null ? void 0 : g.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((
|
|
215
|
+
var g, f, h, m, y;
|
|
216
|
+
const n = e.options, a = (h = (f = (g = e.fetchOptions) == null ? void 0 : g.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((m = e.state.data) == null ? void 0 : m.pages) || [], i = ((y = e.state.data) == null ? void 0 : y.pageParams) || [];
|
|
217
217
|
let u = { pages: [], pageParams: [] }, d = 0;
|
|
218
218
|
const c = async () => {
|
|
219
|
-
let
|
|
220
|
-
const
|
|
219
|
+
let p = !1;
|
|
220
|
+
const C = (b) => {
|
|
221
221
|
Object.defineProperty(b, "signal", {
|
|
222
222
|
enumerable: !0,
|
|
223
|
-
get: () => (e.signal.aborted ?
|
|
224
|
-
|
|
223
|
+
get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
|
|
224
|
+
p = !0;
|
|
225
225
|
}), e.signal)
|
|
226
226
|
});
|
|
227
|
-
}, V =
|
|
228
|
-
if (
|
|
227
|
+
}, V = vt(e.options, e.fetchOptions), K = async (b, N, $) => {
|
|
228
|
+
if (p)
|
|
229
229
|
return Promise.reject();
|
|
230
|
-
if (
|
|
230
|
+
if (N == null && b.pages.length)
|
|
231
231
|
return Promise.resolve(b);
|
|
232
232
|
const X = {
|
|
233
|
+
client: e.client,
|
|
233
234
|
queryKey: e.queryKey,
|
|
234
|
-
pageParam:
|
|
235
|
+
pageParam: N,
|
|
235
236
|
direction: $ ? "backward" : "forward",
|
|
236
237
|
meta: e.options.meta
|
|
237
238
|
};
|
|
238
|
-
|
|
239
|
-
const
|
|
239
|
+
C(X);
|
|
240
|
+
const ct = await V(
|
|
240
241
|
X
|
|
241
|
-
), { maxPages: me } = e.options, pe = $ ?
|
|
242
|
+
), { maxPages: me } = e.options, pe = $ ? yt : bt;
|
|
242
243
|
return {
|
|
243
|
-
pages: pe(b.pages,
|
|
244
|
-
pageParams: pe(b.pageParams,
|
|
244
|
+
pages: pe(b.pages, ct, me),
|
|
245
|
+
pageParams: pe(b.pageParams, N, me)
|
|
245
246
|
};
|
|
246
247
|
};
|
|
247
248
|
if (a && o.length) {
|
|
248
|
-
const b = a === "backward",
|
|
249
|
+
const b = a === "backward", N = b ? Cr : Me, $ = {
|
|
249
250
|
pages: o,
|
|
250
251
|
pageParams: i
|
|
251
|
-
}, X =
|
|
252
|
+
}, X = N(n, $);
|
|
252
253
|
u = await K($, X, b);
|
|
253
254
|
} else {
|
|
254
255
|
const b = t ?? o.length;
|
|
255
256
|
do {
|
|
256
|
-
const
|
|
257
|
-
if (d > 0 &&
|
|
257
|
+
const N = d === 0 ? i[0] ?? n.initialPageParam : Me(n, u);
|
|
258
|
+
if (d > 0 && N == null)
|
|
258
259
|
break;
|
|
259
|
-
u = await K(u,
|
|
260
|
+
u = await K(u, N), d++;
|
|
260
261
|
} while (d < b);
|
|
261
262
|
}
|
|
262
263
|
return u;
|
|
263
264
|
};
|
|
264
265
|
e.options.persister ? e.fetchFn = () => {
|
|
265
|
-
var
|
|
266
|
-
return (
|
|
267
|
-
|
|
266
|
+
var p, C;
|
|
267
|
+
return (C = (p = e.options).persister) == null ? void 0 : C.call(
|
|
268
|
+
p,
|
|
268
269
|
c,
|
|
269
270
|
{
|
|
271
|
+
client: e.client,
|
|
270
272
|
queryKey: e.queryKey,
|
|
271
273
|
meta: e.options.meta,
|
|
272
274
|
signal: e.signal
|
|
@@ -286,13 +288,13 @@ function Me(t, { pages: e, pageParams: r }) {
|
|
|
286
288
|
r
|
|
287
289
|
) : void 0;
|
|
288
290
|
}
|
|
289
|
-
function
|
|
291
|
+
function Cr(t, { pages: e, pageParams: r }) {
|
|
290
292
|
var n;
|
|
291
293
|
return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, r[0], r) : void 0;
|
|
292
294
|
}
|
|
293
|
-
var
|
|
295
|
+
var x, E, q, R, F, T, B, H, Re, kr = (Re = class {
|
|
294
296
|
constructor(t = {}) {
|
|
295
|
-
j(this,
|
|
297
|
+
j(this, x);
|
|
296
298
|
j(this, E);
|
|
297
299
|
j(this, q);
|
|
298
300
|
j(this, R);
|
|
@@ -300,21 +302,21 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
300
302
|
j(this, T);
|
|
301
303
|
j(this, B);
|
|
302
304
|
j(this, H);
|
|
303
|
-
|
|
305
|
+
v(this, x, t.queryCache || new wr()), v(this, E, t.mutationCache || new Pr()), v(this, q, t.defaultOptions || {}), v(this, R, /* @__PURE__ */ new Map()), v(this, F, /* @__PURE__ */ new Map()), v(this, T, 0);
|
|
304
306
|
}
|
|
305
307
|
mount() {
|
|
306
|
-
G(this, T)._++, l(this, T) === 1 && (
|
|
307
|
-
t && (await this.resumePausedMutations(), l(this,
|
|
308
|
-
})),
|
|
309
|
-
t && (await this.resumePausedMutations(), l(this,
|
|
308
|
+
G(this, T)._++, l(this, T) === 1 && (v(this, B, jt.subscribe(async (t) => {
|
|
309
|
+
t && (await this.resumePausedMutations(), l(this, x).onFocus());
|
|
310
|
+
})), v(this, H, je.subscribe(async (t) => {
|
|
311
|
+
t && (await this.resumePausedMutations(), l(this, x).onOnline());
|
|
310
312
|
})));
|
|
311
313
|
}
|
|
312
314
|
unmount() {
|
|
313
315
|
var t, e;
|
|
314
|
-
G(this, T)._--, l(this, T) === 0 && ((t = l(this, B)) == null || t.call(this),
|
|
316
|
+
G(this, T)._--, l(this, T) === 0 && ((t = l(this, B)) == null || t.call(this), v(this, B, void 0), (e = l(this, H)) == null || e.call(this), v(this, H, void 0));
|
|
315
317
|
}
|
|
316
318
|
isFetching(t) {
|
|
317
|
-
return l(this,
|
|
319
|
+
return l(this, x).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
318
320
|
}
|
|
319
321
|
isMutating(t) {
|
|
320
322
|
return l(this, E).findAll({ ...t, status: "pending" }).length;
|
|
@@ -322,28 +324,28 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
322
324
|
getQueryData(t) {
|
|
323
325
|
var r;
|
|
324
326
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
325
|
-
return (r = l(this,
|
|
327
|
+
return (r = l(this, x).get(e.queryHash)) == null ? void 0 : r.state.data;
|
|
326
328
|
}
|
|
327
329
|
ensureQueryData(t) {
|
|
328
|
-
const e = this.defaultQueryOptions(t), r = l(this,
|
|
330
|
+
const e = this.defaultQueryOptions(t), r = l(this, x).build(this, e), n = r.state.data;
|
|
329
331
|
return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(we(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(n));
|
|
330
332
|
}
|
|
331
333
|
getQueriesData(t) {
|
|
332
|
-
return l(this,
|
|
334
|
+
return l(this, x).findAll(t).map(({ queryKey: e, state: r }) => {
|
|
333
335
|
const n = r.data;
|
|
334
336
|
return [e, n];
|
|
335
337
|
});
|
|
336
338
|
}
|
|
337
339
|
setQueryData(t, e, r) {
|
|
338
|
-
const n = this.defaultQueryOptions({ queryKey: t }), a = l(this,
|
|
340
|
+
const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, x).get(
|
|
339
341
|
n.queryHash
|
|
340
|
-
), o = a == null ? void 0 : a.state.data, i =
|
|
342
|
+
), o = a == null ? void 0 : a.state.data, i = wt(e, o);
|
|
341
343
|
if (i !== void 0)
|
|
342
|
-
return l(this,
|
|
344
|
+
return l(this, x).build(this, n).setData(i, { ...r, manual: !0 });
|
|
343
345
|
}
|
|
344
346
|
setQueriesData(t, e, r) {
|
|
345
347
|
return w.batch(
|
|
346
|
-
() => l(this,
|
|
348
|
+
() => l(this, x).findAll(t).map(({ queryKey: n }) => [
|
|
347
349
|
n,
|
|
348
350
|
this.setQueryData(n, e, r)
|
|
349
351
|
])
|
|
@@ -352,12 +354,12 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
352
354
|
getQueryState(t) {
|
|
353
355
|
var r;
|
|
354
356
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
355
|
-
return (r = l(this,
|
|
357
|
+
return (r = l(this, x).get(
|
|
356
358
|
e.queryHash
|
|
357
359
|
)) == null ? void 0 : r.state;
|
|
358
360
|
}
|
|
359
361
|
removeQueries(t) {
|
|
360
|
-
const e = l(this,
|
|
362
|
+
const e = l(this, x);
|
|
361
363
|
w.batch(() => {
|
|
362
364
|
e.findAll(t).forEach((r) => {
|
|
363
365
|
e.remove(r);
|
|
@@ -365,7 +367,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
365
367
|
});
|
|
366
368
|
}
|
|
367
369
|
resetQueries(t, e) {
|
|
368
|
-
const r = l(this,
|
|
370
|
+
const r = l(this, x), n = {
|
|
369
371
|
type: "active",
|
|
370
372
|
...t
|
|
371
373
|
};
|
|
@@ -375,13 +377,13 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
375
377
|
}
|
|
376
378
|
cancelQueries(t, e = {}) {
|
|
377
379
|
const r = { revert: !0, ...e }, n = w.batch(
|
|
378
|
-
() => l(this,
|
|
380
|
+
() => l(this, x).findAll(t).map((a) => a.cancel(r))
|
|
379
381
|
);
|
|
380
382
|
return Promise.all(n).then(M).catch(M);
|
|
381
383
|
}
|
|
382
384
|
invalidateQueries(t, e = {}) {
|
|
383
385
|
return w.batch(() => {
|
|
384
|
-
if (l(this,
|
|
386
|
+
if (l(this, x).findAll(t).forEach((n) => {
|
|
385
387
|
n.invalidate();
|
|
386
388
|
}), (t == null ? void 0 : t.refetchType) === "none")
|
|
387
389
|
return Promise.resolve();
|
|
@@ -397,7 +399,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
397
399
|
...e,
|
|
398
400
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
399
401
|
}, n = w.batch(
|
|
400
|
-
() => l(this,
|
|
402
|
+
() => l(this, x).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
401
403
|
let o = a.fetch(void 0, r);
|
|
402
404
|
return r.throwOnError || (o = o.catch(M)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
403
405
|
})
|
|
@@ -407,7 +409,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
407
409
|
fetchQuery(t) {
|
|
408
410
|
const e = this.defaultQueryOptions(t);
|
|
409
411
|
e.retry === void 0 && (e.retry = !1);
|
|
410
|
-
const r = l(this,
|
|
412
|
+
const r = l(this, x).build(this, e);
|
|
411
413
|
return r.isStaleByTime(
|
|
412
414
|
we(e.staleTime, r)
|
|
413
415
|
) ? r.fetch(e) : Promise.resolve(r.state.data);
|
|
@@ -428,7 +430,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
428
430
|
return je.isOnline() ? l(this, E).resumePausedMutations() : Promise.resolve();
|
|
429
431
|
}
|
|
430
432
|
getQueryCache() {
|
|
431
|
-
return l(this,
|
|
433
|
+
return l(this, x);
|
|
432
434
|
}
|
|
433
435
|
getMutationCache() {
|
|
434
436
|
return l(this, E);
|
|
@@ -437,7 +439,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
437
439
|
return l(this, q);
|
|
438
440
|
}
|
|
439
441
|
setDefaultOptions(t) {
|
|
440
|
-
|
|
442
|
+
v(this, q, t);
|
|
441
443
|
}
|
|
442
444
|
setQueryDefaults(t, e) {
|
|
443
445
|
l(this, R).set(Pe(t), {
|
|
@@ -448,7 +450,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
448
450
|
getQueryDefaults(t) {
|
|
449
451
|
const e = [...l(this, R).values()], r = {};
|
|
450
452
|
return e.forEach((n) => {
|
|
451
|
-
|
|
453
|
+
Ce(t, n.queryKey) && Object.assign(r, n.defaultOptions);
|
|
452
454
|
}), r;
|
|
453
455
|
}
|
|
454
456
|
setMutationDefaults(t, e) {
|
|
@@ -461,7 +463,7 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
461
463
|
const e = [...l(this, F).values()];
|
|
462
464
|
let r = {};
|
|
463
465
|
return e.forEach((n) => {
|
|
464
|
-
|
|
466
|
+
Ce(t, n.mutationKey) && (r = { ...r, ...n.defaultOptions });
|
|
465
467
|
}), r;
|
|
466
468
|
}
|
|
467
469
|
defaultQueryOptions(t) {
|
|
@@ -473,10 +475,10 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
473
475
|
...t,
|
|
474
476
|
_defaulted: !0
|
|
475
477
|
};
|
|
476
|
-
return e.queryHash || (e.queryHash =
|
|
478
|
+
return e.queryHash || (e.queryHash = ze(
|
|
477
479
|
e.queryKey,
|
|
478
480
|
e
|
|
479
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn ===
|
|
481
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === Pt && (e.enabled = !1), e;
|
|
480
482
|
}
|
|
481
483
|
defaultMutationOptions(t) {
|
|
482
484
|
return t != null && t._defaulted ? t : {
|
|
@@ -487,85 +489,86 @@ var p, E, q, R, F, T, B, H, Qe, kr = (Qe = class {
|
|
|
487
489
|
};
|
|
488
490
|
}
|
|
489
491
|
clear() {
|
|
490
|
-
l(this,
|
|
492
|
+
l(this, x).clear(), l(this, E).clear();
|
|
491
493
|
}
|
|
492
|
-
},
|
|
493
|
-
function
|
|
494
|
+
}, x = new WeakMap(), E = new WeakMap(), q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), T = new WeakMap(), B = new WeakMap(), H = new WeakMap(), Re);
|
|
495
|
+
function Sr(t) {
|
|
494
496
|
return t;
|
|
495
497
|
}
|
|
496
498
|
function Oe(t, e, r) {
|
|
497
499
|
var d, c;
|
|
498
500
|
if (typeof e != "object" || e === null)
|
|
499
501
|
return;
|
|
500
|
-
const n = t.getMutationCache(), a = t.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ??
|
|
502
|
+
const n = t.getMutationCache(), a = t.getQueryCache(), o = ((d = r == null ? void 0 : r.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Sr, i = e.mutations || [], u = e.queries || [];
|
|
501
503
|
i.forEach(({ state: g, ...f }) => {
|
|
502
|
-
var h,
|
|
504
|
+
var h, m;
|
|
503
505
|
n.build(
|
|
504
506
|
t,
|
|
505
507
|
{
|
|
506
508
|
...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
|
|
507
|
-
...(
|
|
509
|
+
...(m = r == null ? void 0 : r.defaultOptions) == null ? void 0 : m.mutations,
|
|
508
510
|
...f
|
|
509
511
|
},
|
|
510
512
|
g
|
|
511
513
|
);
|
|
512
|
-
}), u.forEach(({ queryKey: g, state: f, queryHash: h, meta:
|
|
514
|
+
}), u.forEach(({ queryKey: g, state: f, queryHash: h, meta: m, promise: y }) => {
|
|
513
515
|
var V, K;
|
|
514
|
-
let
|
|
515
|
-
const
|
|
516
|
-
if (
|
|
517
|
-
if (
|
|
518
|
-
const { fetchStatus: b, ...
|
|
519
|
-
|
|
520
|
-
...
|
|
521
|
-
data:
|
|
516
|
+
let p = a.get(h);
|
|
517
|
+
const C = f.data === void 0 ? f.data : o(f.data);
|
|
518
|
+
if (p) {
|
|
519
|
+
if (p.state.dataUpdatedAt < f.dataUpdatedAt) {
|
|
520
|
+
const { fetchStatus: b, ...N } = f;
|
|
521
|
+
p.setState({
|
|
522
|
+
...N,
|
|
523
|
+
data: C
|
|
522
524
|
});
|
|
523
525
|
}
|
|
524
526
|
} else
|
|
525
|
-
|
|
527
|
+
p = a.build(
|
|
526
528
|
t,
|
|
527
529
|
{
|
|
528
530
|
...(V = t.getDefaultOptions().hydrate) == null ? void 0 : V.queries,
|
|
529
531
|
...(K = r == null ? void 0 : r.defaultOptions) == null ? void 0 : K.queries,
|
|
530
532
|
queryKey: g,
|
|
531
533
|
queryHash: h,
|
|
532
|
-
meta:
|
|
534
|
+
meta: m
|
|
533
535
|
},
|
|
534
536
|
// Reset fetch status to idle to avoid
|
|
535
537
|
// query being stuck in fetching state upon hydration
|
|
536
538
|
{
|
|
537
539
|
...f,
|
|
538
|
-
data:
|
|
540
|
+
data: C,
|
|
539
541
|
fetchStatus: "idle"
|
|
540
542
|
}
|
|
541
543
|
);
|
|
542
|
-
if (
|
|
543
|
-
const b = Promise.resolve(
|
|
544
|
-
|
|
544
|
+
if (y) {
|
|
545
|
+
const b = Promise.resolve(y).then(o);
|
|
546
|
+
p.fetch(void 0, { initialPromise: b });
|
|
545
547
|
}
|
|
546
548
|
});
|
|
547
549
|
}
|
|
548
|
-
var
|
|
550
|
+
var Ae = (t, e) => typeof t == "object" && t !== null && e in t, Nr = ({
|
|
549
551
|
children: t,
|
|
550
552
|
options: e = {},
|
|
551
553
|
state: r,
|
|
552
554
|
queryClient: n
|
|
553
555
|
}) => {
|
|
554
|
-
const a =
|
|
556
|
+
const a = Ct(n), [o, i] = U.useState(), u = U.useRef(e);
|
|
555
557
|
return u.current = e, U.useMemo(() => {
|
|
556
558
|
if (r) {
|
|
557
559
|
if (typeof r != "object")
|
|
558
560
|
return;
|
|
559
561
|
const d = a.getQueryCache(), c = r.queries || [], g = [], f = [];
|
|
560
562
|
for (const h of c) {
|
|
561
|
-
const
|
|
562
|
-
if (!
|
|
563
|
+
const m = d.get(h.queryHash);
|
|
564
|
+
if (!m)
|
|
563
565
|
g.push(h);
|
|
564
566
|
else {
|
|
565
|
-
const
|
|
566
|
-
|
|
567
|
+
const y = h.state.dataUpdatedAt > m.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
568
|
+
Ae(h.promise, "status") && Ae(m.promise, "status") && h.promise.status !== m.promise.status, p = o == null ? void 0 : o.find(
|
|
569
|
+
(C) => C.queryHash === h.queryHash
|
|
567
570
|
);
|
|
568
|
-
|
|
571
|
+
y && (!p || h.state.dataUpdatedAt > p.state.dataUpdatedAt) && f.push(h);
|
|
569
572
|
}
|
|
570
573
|
}
|
|
571
574
|
g.length > 0 && Oe(a, { queries: g }, u.current), f.length > 0 && i(
|
|
@@ -576,15 +579,15 @@ var Sr = ({
|
|
|
576
579
|
o && (Oe(a, { queries: o }, u.current), i(void 0));
|
|
577
580
|
}, [a, o]), t;
|
|
578
581
|
};
|
|
579
|
-
const
|
|
582
|
+
const Dr = (t) => {
|
|
580
583
|
const e = ee(t);
|
|
581
584
|
return e.current = t, I(() => {
|
|
582
585
|
e.current = t;
|
|
583
586
|
}, [t]), e;
|
|
584
|
-
},
|
|
587
|
+
}, Mr = () => {
|
|
585
588
|
var o;
|
|
586
|
-
const t = z(), e = A(), r = le(), n =
|
|
587
|
-
(i) =>
|
|
589
|
+
const t = z(), e = A(), r = le(), n = Dr(r.pathname), a = (o = e.options.protectedRoutes) == null ? void 0 : o.some(
|
|
590
|
+
(i) => ft({ path: i, end: !0 }, r.pathname)
|
|
588
591
|
);
|
|
589
592
|
if (I(() => {
|
|
590
593
|
var i;
|
|
@@ -594,17 +597,17 @@ const Nr = (t) => {
|
|
|
594
597
|
}, [a, t.isAuthenticated, e.authentication, n]), a && !t.isAuthenticated)
|
|
595
598
|
return null;
|
|
596
599
|
if (a && !t.isAuthEnabled)
|
|
597
|
-
throw new
|
|
600
|
+
throw new Ze("Authentication is not enabled", {
|
|
598
601
|
title: "Authentication is not enabled",
|
|
599
602
|
developerHint: "To use protectedRoutes you need authentication to be enabled"
|
|
600
603
|
});
|
|
601
604
|
return /* @__PURE__ */ s.jsx(ce, {});
|
|
602
605
|
};
|
|
603
|
-
function
|
|
604
|
-
return /* @__PURE__ */ s.jsx(
|
|
606
|
+
function Or({ error: t }) {
|
|
607
|
+
return /* @__PURE__ */ s.jsx(Ye, { error: t });
|
|
605
608
|
}
|
|
606
609
|
/**
|
|
607
|
-
* react-router v7.1.
|
|
610
|
+
* react-router v7.1.5
|
|
608
611
|
*
|
|
609
612
|
* Copyright (c) Remix Software Inc.
|
|
610
613
|
*
|
|
@@ -613,30 +616,30 @@ function Mr({ error: t }) {
|
|
|
613
616
|
*
|
|
614
617
|
* @license MIT
|
|
615
618
|
*/
|
|
616
|
-
function
|
|
617
|
-
return /* @__PURE__ */ U.createElement(
|
|
619
|
+
function Ar(t) {
|
|
620
|
+
return /* @__PURE__ */ U.createElement(gt, { flushSync: zt.flushSync, ...t });
|
|
618
621
|
}
|
|
619
|
-
const ie = he({ stagger: !1 }),
|
|
622
|
+
const ie = he({ stagger: !1 }), Er = new kr({
|
|
620
623
|
defaultOptions: {
|
|
621
624
|
queries: {
|
|
622
625
|
staleTime: 1e3 * 60 * 5
|
|
623
626
|
}
|
|
624
627
|
}
|
|
625
|
-
}),
|
|
628
|
+
}), qr = ({
|
|
626
629
|
router: t,
|
|
627
630
|
hydrate: e = !1
|
|
628
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
631
|
+
}) => /* @__PURE__ */ s.jsx($e, { children: /* @__PURE__ */ s.jsx(Le, { client: Er, children: /* @__PURE__ */ s.jsx(Nr, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsx(ie.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Ar, { router: t }) }) }) }) }) }), Tr = ({
|
|
629
632
|
router: t,
|
|
630
633
|
context: e,
|
|
631
634
|
queryClient: r,
|
|
632
635
|
helmetContext: n
|
|
633
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
634
|
-
var Z = { exports: {} },
|
|
635
|
-
function
|
|
636
|
-
return
|
|
636
|
+
}) => /* @__PURE__ */ s.jsx($e, { children: /* @__PURE__ */ s.jsx(Le, { client: r, children: /* @__PURE__ */ s.jsx(Fe, { context: n, children: /* @__PURE__ */ s.jsx(mt, { router: t, context: e }) }) }) });
|
|
637
|
+
var Z = { exports: {} }, Ir = Z.exports, Ee;
|
|
638
|
+
function Qr() {
|
|
639
|
+
return Ee || (Ee = 1, function(t, e) {
|
|
637
640
|
(function(r, n) {
|
|
638
|
-
n(e,
|
|
639
|
-
})(
|
|
641
|
+
n(e, Ot);
|
|
642
|
+
})(Ir, function(r, n) {
|
|
640
643
|
const a = {
|
|
641
644
|
delay: 500,
|
|
642
645
|
minDuration: 200,
|
|
@@ -650,35 +653,35 @@ function Ir() {
|
|
|
650
653
|
}
|
|
651
654
|
function i(u, d) {
|
|
652
655
|
d = Object.assign({}, a, d);
|
|
653
|
-
const c = o() && d.ssr, g = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(g),
|
|
656
|
+
const c = o() && d.ssr, g = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(g), m = n.useRef(null);
|
|
654
657
|
return n.useEffect(() => {
|
|
655
658
|
if (u && (f === "IDLE" || c)) {
|
|
656
|
-
clearTimeout(
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
+
clearTimeout(m.current);
|
|
660
|
+
const y = c ? 0 : d.delay;
|
|
661
|
+
m.current = setTimeout(() => {
|
|
659
662
|
if (!u)
|
|
660
663
|
return h("IDLE");
|
|
661
|
-
|
|
664
|
+
m.current = setTimeout(() => {
|
|
662
665
|
h("EXPIRE");
|
|
663
666
|
}, d.minDuration), h("DISPLAY");
|
|
664
|
-
},
|
|
667
|
+
}, y), c || h("DELAY");
|
|
665
668
|
}
|
|
666
|
-
!u && f !== "DISPLAY" && (clearTimeout(
|
|
667
|
-
}, [u, f, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(
|
|
669
|
+
!u && f !== "DISPLAY" && (clearTimeout(m.current), h("IDLE"));
|
|
670
|
+
}, [u, f, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(m.current), []), f === "DISPLAY" || f === "EXPIRE";
|
|
668
671
|
}
|
|
669
672
|
r.defaultOptions = a, r.useSpinDelay = i;
|
|
670
673
|
});
|
|
671
674
|
}(Z, Z.exports)), Z.exports;
|
|
672
675
|
}
|
|
673
|
-
var
|
|
674
|
-
const
|
|
676
|
+
var Rr = Qr();
|
|
677
|
+
const Fr = () => {
|
|
675
678
|
const t = le(), e = ee(t.pathname);
|
|
676
679
|
I(() => {
|
|
677
680
|
const r = e.current !== t.pathname, n = t.hash !== "";
|
|
678
681
|
r && !n && window.scrollTo(0, 0), e.current = t.pathname;
|
|
679
682
|
}, [t.pathname, t.hash]);
|
|
680
683
|
};
|
|
681
|
-
function
|
|
684
|
+
function Br({
|
|
682
685
|
className: t,
|
|
683
686
|
...e
|
|
684
687
|
}) {
|
|
@@ -690,17 +693,17 @@ function Fr({
|
|
|
690
693
|
}
|
|
691
694
|
);
|
|
692
695
|
}
|
|
693
|
-
const
|
|
696
|
+
const qe = {
|
|
694
697
|
info: "bg-blue-500",
|
|
695
698
|
note: "bg-gray-500",
|
|
696
699
|
tip: "bg-green-600",
|
|
697
700
|
caution: "bg-orange-500",
|
|
698
701
|
danger: "bg-rose-500"
|
|
699
|
-
},
|
|
702
|
+
}, Hr = () => {
|
|
700
703
|
const { page: t } = A(), [e, r] = L(!0);
|
|
701
704
|
if (!(t != null && t.banner) || !e)
|
|
702
705
|
return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
703
|
-
const n = t.banner.color && t.banner.color in
|
|
706
|
+
const n = t.banner.color && t.banner.color in qe ? qe[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
|
|
704
707
|
return /* @__PURE__ */ s.jsxs(
|
|
705
708
|
"div",
|
|
706
709
|
{
|
|
@@ -717,14 +720,14 @@ const Ee = {
|
|
|
717
720
|
type: "button",
|
|
718
721
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
719
722
|
onClick: () => r(!1),
|
|
720
|
-
children: /* @__PURE__ */ s.jsx(
|
|
723
|
+
children: /* @__PURE__ */ s.jsx(Lt, { size: 16 })
|
|
721
724
|
}
|
|
722
725
|
)
|
|
723
726
|
]
|
|
724
727
|
}
|
|
725
728
|
);
|
|
726
|
-
},
|
|
727
|
-
const e = A(), [r, n] = L(!1), a =
|
|
729
|
+
}, et = ({ className: t }) => {
|
|
730
|
+
const e = A(), [r, n] = L(!1), a = At(() => n(!1), []);
|
|
728
731
|
I(() => {
|
|
729
732
|
if (r)
|
|
730
733
|
return;
|
|
@@ -735,7 +738,7 @@ const Ee = {
|
|
|
735
738
|
window.removeEventListener("keydown", i);
|
|
736
739
|
};
|
|
737
740
|
}, [r, n]);
|
|
738
|
-
const o = e.plugins.find(
|
|
741
|
+
const o = e.plugins.find(nr);
|
|
739
742
|
return o ? /* @__PURE__ */ s.jsxs("div", { className: t, children: [
|
|
740
743
|
/* @__PURE__ */ s.jsxs(
|
|
741
744
|
"button",
|
|
@@ -745,7 +748,7 @@ const Ee = {
|
|
|
745
748
|
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",
|
|
746
749
|
children: [
|
|
747
750
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
748
|
-
/* @__PURE__ */ s.jsx(
|
|
751
|
+
/* @__PURE__ */ s.jsx(Kt, { size: 14 }),
|
|
749
752
|
"Search"
|
|
750
753
|
] }),
|
|
751
754
|
/* @__PURE__ */ s.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" })
|
|
@@ -757,8 +760,8 @@ const Ee = {
|
|
|
757
760
|
onClose: a
|
|
758
761
|
}) })
|
|
759
762
|
] }) : null;
|
|
760
|
-
},
|
|
761
|
-
const { resolvedTheme: t, setTheme: e } =
|
|
763
|
+
}, tt = () => {
|
|
764
|
+
const { resolvedTheme: t, setTheme: e } = Be();
|
|
762
765
|
return /* @__PURE__ */ s.jsx(ge, { fallback: /* @__PURE__ */ s.jsx(ae, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
|
|
763
766
|
"button",
|
|
764
767
|
{
|
|
@@ -775,7 +778,7 @@ const Ee = {
|
|
|
775
778
|
t === "light" && "border-border bg-muted/50",
|
|
776
779
|
t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
|
|
777
780
|
),
|
|
778
|
-
children: /* @__PURE__ */ s.jsx(
|
|
781
|
+
children: /* @__PURE__ */ s.jsx($t, { size: 16 })
|
|
779
782
|
}
|
|
780
783
|
),
|
|
781
784
|
/* @__PURE__ */ s.jsx(
|
|
@@ -786,35 +789,38 @@ const Ee = {
|
|
|
786
789
|
t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
787
790
|
t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
788
791
|
),
|
|
789
|
-
children: /* @__PURE__ */ s.jsx(
|
|
792
|
+
children: /* @__PURE__ */ s.jsx(Ut, { size: 16 })
|
|
790
793
|
}
|
|
791
794
|
)
|
|
792
795
|
]
|
|
793
796
|
}
|
|
794
797
|
) });
|
|
795
|
-
},
|
|
798
|
+
}, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", zr = () => {
|
|
796
799
|
const { topNavigation: t } = A(), { isAuthenticated: e } = z();
|
|
797
|
-
return t.length <= 1 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(fe, { children: /* @__PURE__ */ s.
|
|
798
|
-
|
|
800
|
+
return t.length <= 1 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(fe, { children: /* @__PURE__ */ s.jsxs("div", { className: " items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
|
|
801
|
+
/* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(st, { ...r }) }, r.id)) }) }),
|
|
802
|
+
/* @__PURE__ */ s.jsx(S, { name: "top-navigation-side" })
|
|
803
|
+
] }) });
|
|
804
|
+
}, st = ({
|
|
799
805
|
id: t,
|
|
800
806
|
label: e,
|
|
801
807
|
default: r
|
|
802
808
|
}) => {
|
|
803
809
|
var c;
|
|
804
|
-
const { sidebars: n } = A(), a = n[t], o =
|
|
810
|
+
const { sidebars: n } = A(), a = n[t], o = Ke(), i = !!ue().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = r ?? (a ? kt(a, (g) => {
|
|
805
811
|
if (g.type === "doc") return ne(g.id);
|
|
806
812
|
}) : ne(t));
|
|
807
813
|
if (!d)
|
|
808
|
-
throw new
|
|
814
|
+
throw new Ze("Page not found.", {
|
|
809
815
|
developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
810
816
|
});
|
|
811
817
|
return (
|
|
812
818
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
813
819
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
814
820
|
/* @__PURE__ */ s.jsx(
|
|
815
|
-
|
|
821
|
+
pt,
|
|
816
822
|
{
|
|
817
|
-
className: ({ isPending: g }) =>
|
|
823
|
+
className: ({ isPending: g }) => br(
|
|
818
824
|
"block lg:py-3.5 font-medium -mb-px",
|
|
819
825
|
u || g ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
820
826
|
),
|
|
@@ -823,27 +829,27 @@ const Ee = {
|
|
|
823
829
|
}
|
|
824
830
|
)
|
|
825
831
|
);
|
|
826
|
-
},
|
|
832
|
+
}, Lr = () => {
|
|
827
833
|
const { topNavigation: t } = A(), { isAuthenticated: e } = z(), [r, n] = L(!1);
|
|
828
834
|
return /* @__PURE__ */ s.jsxs(
|
|
829
|
-
|
|
835
|
+
Ve,
|
|
830
836
|
{
|
|
831
837
|
direction: "right",
|
|
832
838
|
open: r,
|
|
833
839
|
onOpenChange: (a) => n(a),
|
|
834
840
|
children: [
|
|
835
|
-
/* @__PURE__ */ s.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ s.jsx(
|
|
841
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ s.jsx(Xe, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Zt, { size: 22 }) }) }),
|
|
836
842
|
/* @__PURE__ */ s.jsx(
|
|
837
|
-
|
|
843
|
+
Ge,
|
|
838
844
|
{
|
|
839
845
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
840
846
|
"aria-describedby": void 0,
|
|
841
847
|
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
842
|
-
/* @__PURE__ */ s.jsx(
|
|
843
|
-
/* @__PURE__ */ s.jsx(
|
|
848
|
+
/* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Navigation" }) }),
|
|
849
|
+
/* @__PURE__ */ s.jsx(et, { className: "flex p-4" }),
|
|
844
850
|
/* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
845
|
-
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
846
|
-
t.filter(
|
|
851
|
+
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(tt, {}) }),
|
|
852
|
+
t.filter(rt(e)).map((a) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ s.jsx(st, { ...a }) }) }, a.label))
|
|
847
853
|
] })
|
|
848
854
|
] })
|
|
849
855
|
}
|
|
@@ -851,20 +857,20 @@ const Ee = {
|
|
|
851
857
|
]
|
|
852
858
|
}
|
|
853
859
|
);
|
|
854
|
-
}, J = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(
|
|
855
|
-
/* @__PURE__ */ s.jsx(
|
|
856
|
-
/* @__PURE__ */ s.jsx(
|
|
860
|
+
}, J = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(mr, { children: [
|
|
861
|
+
/* @__PURE__ */ s.jsx(pr, { children: t.label }),
|
|
862
|
+
/* @__PURE__ */ s.jsx(xr, { children: /* @__PURE__ */ s.jsx(vr, { children: t.children.map((e, r) => (
|
|
857
863
|
// eslint-disable-next-line react/no-array-index-key
|
|
858
864
|
/* @__PURE__ */ s.jsx(J, { item: e }, r)
|
|
859
865
|
)) }) })
|
|
860
|
-
] }, t.label) : /* @__PURE__ */ s.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(
|
|
866
|
+
] }, t.label) : /* @__PURE__ */ s.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(yr, { className: "flex gap-2", children: [
|
|
861
867
|
t.icon && /* @__PURE__ */ s.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
862
868
|
t.label
|
|
863
|
-
] }, t.label) }),
|
|
864
|
-
const e = z(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = z(), o = A(), { page: i, plugins: u } = o, d = u.filter((c) =>
|
|
869
|
+
] }, t.label) }), nt = Ue(function() {
|
|
870
|
+
const e = z(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = z(), o = A(), { page: i, plugins: u } = o, d = u.filter((c) => ar(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
|
|
865
871
|
return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
866
|
-
/* @__PURE__ */ s.jsx(
|
|
867
|
-
/* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.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-
|
|
872
|
+
/* @__PURE__ */ s.jsx(Hr, {}),
|
|
873
|
+
/* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.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-8 h-[--top-header-height]", children: [
|
|
868
874
|
/* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(de, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
869
875
|
(i == null ? void 0 : i.logo) && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
870
876
|
/* @__PURE__ */ s.jsx(
|
|
@@ -897,18 +903,18 @@ const Ee = {
|
|
|
897
903
|
/* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
|
|
898
904
|
] }) }) }),
|
|
899
905
|
/* @__PURE__ */ s.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
900
|
-
/* @__PURE__ */ s.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ s.jsx(
|
|
901
|
-
/* @__PURE__ */ s.jsx(
|
|
906
|
+
/* @__PURE__ */ s.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ s.jsx(et, {}) }),
|
|
907
|
+
/* @__PURE__ */ s.jsx(Lr, {}),
|
|
902
908
|
/* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
903
|
-
/* @__PURE__ */ s.jsx(
|
|
909
|
+
/* @__PURE__ */ s.jsx(S, { name: "head-navigation-start" }),
|
|
904
910
|
a && /* @__PURE__ */ s.jsx(
|
|
905
911
|
ge,
|
|
906
912
|
{
|
|
907
|
-
fallback: /* @__PURE__ */ s.jsx(
|
|
908
|
-
children: r ? Object.values(d).length > 0 && /* @__PURE__ */ s.jsxs(
|
|
909
|
-
/* @__PURE__ */ s.jsx(
|
|
910
|
-
/* @__PURE__ */ s.jsxs(
|
|
911
|
-
/* @__PURE__ */ s.jsxs(
|
|
913
|
+
fallback: /* @__PURE__ */ s.jsx(Br, { className: "rounded h-5 w-24 mr-4" }),
|
|
914
|
+
children: r ? Object.values(d).length > 0 && /* @__PURE__ */ s.jsxs(dr, { modal: !1, children: [
|
|
915
|
+
/* @__PURE__ */ s.jsx(hr, { asChild: !0, children: /* @__PURE__ */ s.jsx(ae, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
916
|
+
/* @__PURE__ */ s.jsxs(fr, { className: "w-56", children: [
|
|
917
|
+
/* @__PURE__ */ s.jsxs(gr, { children: [
|
|
912
918
|
n != null && n.name ? `${n.name}` : "My Account",
|
|
913
919
|
(n == null ? void 0 : n.email) && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
914
920
|
] }),
|
|
@@ -926,23 +932,23 @@ const Ee = {
|
|
|
926
932
|
] }) : /* @__PURE__ */ s.jsx(ae, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
927
933
|
}
|
|
928
934
|
),
|
|
929
|
-
/* @__PURE__ */ s.jsx(
|
|
930
|
-
/* @__PURE__ */ s.jsx(
|
|
935
|
+
/* @__PURE__ */ s.jsx(S, { name: "head-navigation-end" }),
|
|
936
|
+
/* @__PURE__ */ s.jsx(tt, {})
|
|
931
937
|
] })
|
|
932
938
|
] })
|
|
933
939
|
] }) }),
|
|
934
940
|
/* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-l border-r", children: [
|
|
935
|
-
/* @__PURE__ */ s.jsx(
|
|
936
|
-
/* @__PURE__ */ s.jsx(
|
|
937
|
-
/* @__PURE__ */ s.jsx(
|
|
941
|
+
/* @__PURE__ */ s.jsx(S, { name: "top-navigation-before" }),
|
|
942
|
+
/* @__PURE__ */ s.jsx(zr, {}),
|
|
943
|
+
/* @__PURE__ */ s.jsx(S, { name: "top-navigation-after" })
|
|
938
944
|
] }) })
|
|
939
945
|
] });
|
|
940
|
-
}),
|
|
946
|
+
}), at = Et(({ children: t, className: e, pushMainContent: r }, n) => /* @__PURE__ */ s.jsx(
|
|
941
947
|
"nav",
|
|
942
948
|
{
|
|
943
949
|
"data-navigation": String(r),
|
|
944
950
|
className: Q(
|
|
945
|
-
"scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-
|
|
951
|
+
"scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-6",
|
|
946
952
|
"-mx-[--padding-nav-item] pb-20 pt-[--padding-content-top]",
|
|
947
953
|
"w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
948
954
|
!r && "border-r-0",
|
|
@@ -952,35 +958,35 @@ const Ee = {
|
|
|
952
958
|
children: t
|
|
953
959
|
}
|
|
954
960
|
));
|
|
955
|
-
|
|
956
|
-
const
|
|
961
|
+
at.displayName = "SidebarWrapper";
|
|
962
|
+
const Kr = ({
|
|
957
963
|
onRequestClose: t
|
|
958
964
|
}) => {
|
|
959
|
-
const e = ee(null), r =
|
|
965
|
+
const e = ee(null), r = Ke();
|
|
960
966
|
return I(() => {
|
|
961
967
|
var a;
|
|
962
968
|
const n = (a = e.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
|
|
963
|
-
|
|
969
|
+
Vt(n ?? null);
|
|
964
970
|
}, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
965
971
|
/* @__PURE__ */ s.jsxs(
|
|
966
|
-
|
|
972
|
+
at,
|
|
967
973
|
{
|
|
968
974
|
ref: e,
|
|
969
975
|
pushMainContent: r.sidebar.length > 0,
|
|
970
976
|
children: [
|
|
971
|
-
/* @__PURE__ */ s.jsx(
|
|
977
|
+
/* @__PURE__ */ s.jsx(S, { name: "zudoku-before-navigation" }),
|
|
972
978
|
r.sidebar.map((n) => /* @__PURE__ */ s.jsx(Se, { item: n }, n.label)),
|
|
973
|
-
/* @__PURE__ */ s.jsx(
|
|
979
|
+
/* @__PURE__ */ s.jsx(S, { name: "zudoku-after-navigation" })
|
|
974
980
|
]
|
|
975
981
|
}
|
|
976
982
|
),
|
|
977
983
|
/* @__PURE__ */ s.jsx(
|
|
978
|
-
|
|
984
|
+
Ge,
|
|
979
985
|
{
|
|
980
986
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
981
987
|
"aria-describedby": void 0,
|
|
982
988
|
children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
983
|
-
/* @__PURE__ */ s.jsx(
|
|
989
|
+
/* @__PURE__ */ s.jsx(Je, { children: /* @__PURE__ */ s.jsx(_e, { children: "Sidebar" }) }),
|
|
984
990
|
r.sidebar.map((n) => /* @__PURE__ */ s.jsx(
|
|
985
991
|
Se,
|
|
986
992
|
{
|
|
@@ -993,9 +999,9 @@ const Lr = ({
|
|
|
993
999
|
}
|
|
994
1000
|
)
|
|
995
1001
|
] });
|
|
996
|
-
},
|
|
997
|
-
const e = le(), { setActiveAnchor: r } =
|
|
998
|
-
|
|
1002
|
+
}, Te = () => /* @__PURE__ */ s.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ s.jsx(We, {}) }), $r = ({ children: t }) => {
|
|
1003
|
+
const e = le(), { setActiveAnchor: r } = Wt(), { meta: n, authentication: a } = A();
|
|
1004
|
+
Xt(), Fr();
|
|
999
1005
|
const o = ee(e.pathname);
|
|
1000
1006
|
I(() => {
|
|
1001
1007
|
var g;
|
|
@@ -1003,7 +1009,7 @@ const Lr = ({
|
|
|
1003
1009
|
}, [a]), I(() => {
|
|
1004
1010
|
e.pathname !== o.current && r(""), o.current = e.pathname;
|
|
1005
1011
|
}, [e.pathname, r]);
|
|
1006
|
-
const i = !!ue().location, u =
|
|
1012
|
+
const i = !!ue().location, u = Rr.useSpinDelay(i, {
|
|
1007
1013
|
delay: 300,
|
|
1008
1014
|
minDuration: 500
|
|
1009
1015
|
}), [d, c] = L(!1);
|
|
@@ -1013,17 +1019,17 @@ const Lr = ({
|
|
|
1013
1019
|
(n == null ? void 0 : n.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: n.description }),
|
|
1014
1020
|
(n == null ? void 0 : n.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: n.favicon })
|
|
1015
1021
|
] }),
|
|
1016
|
-
/* @__PURE__ */ s.jsx(
|
|
1017
|
-
/* @__PURE__ */ s.jsx(
|
|
1018
|
-
/* @__PURE__ */ s.jsx(
|
|
1019
|
-
/* @__PURE__ */ s.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-
|
|
1020
|
-
|
|
1022
|
+
/* @__PURE__ */ s.jsx(S, { name: "layout-before-head" }),
|
|
1023
|
+
/* @__PURE__ */ s.jsx(nt, {}),
|
|
1024
|
+
/* @__PURE__ */ s.jsx(S, { name: "layout-after-head" }),
|
|
1025
|
+
/* @__PURE__ */ s.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-8 border-l border-r", children: u ? /* @__PURE__ */ s.jsx(Te, {}) : /* @__PURE__ */ s.jsx(fe, { fallback: /* @__PURE__ */ s.jsx(Te, {}), children: /* @__PURE__ */ s.jsxs(
|
|
1026
|
+
Ve,
|
|
1021
1027
|
{
|
|
1022
1028
|
direction: "left",
|
|
1023
1029
|
open: d,
|
|
1024
1030
|
onOpenChange: (g) => c(g),
|
|
1025
1031
|
children: [
|
|
1026
|
-
/* @__PURE__ */ s.jsx(
|
|
1032
|
+
/* @__PURE__ */ s.jsx(Kr, { onRequestClose: () => c(!1) }),
|
|
1027
1033
|
/* @__PURE__ */ s.jsx(
|
|
1028
1034
|
"div",
|
|
1029
1035
|
{
|
|
@@ -1031,8 +1037,8 @@ const Lr = ({
|
|
|
1031
1037
|
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1032
1038
|
"peer-data-[navigation=false]:hidden"
|
|
1033
1039
|
),
|
|
1034
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
1035
|
-
/* @__PURE__ */ s.jsx(
|
|
1040
|
+
children: /* @__PURE__ */ s.jsxs(Xe, { className: "flex items-center gap-2", children: [
|
|
1041
|
+
/* @__PURE__ */ s.jsx(Yt, { size: 16, strokeWidth: 1.5 }),
|
|
1036
1042
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1037
1043
|
] })
|
|
1038
1044
|
}
|
|
@@ -1048,9 +1054,9 @@ const Lr = ({
|
|
|
1048
1054
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
1049
1055
|
),
|
|
1050
1056
|
children: [
|
|
1051
|
-
/* @__PURE__ */ s.jsx(
|
|
1057
|
+
/* @__PURE__ */ s.jsx(S, { name: "zudoku-before-content" }),
|
|
1052
1058
|
t ?? /* @__PURE__ */ s.jsx(ce, {}),
|
|
1053
|
-
/* @__PURE__ */ s.jsx(
|
|
1059
|
+
/* @__PURE__ */ s.jsx(S, { name: "zudoku-after-content" })
|
|
1054
1060
|
]
|
|
1055
1061
|
}
|
|
1056
1062
|
)
|
|
@@ -1058,15 +1064,15 @@ const Lr = ({
|
|
|
1058
1064
|
}
|
|
1059
1065
|
) }) })
|
|
1060
1066
|
] });
|
|
1061
|
-
},
|
|
1067
|
+
}, Ur = ({
|
|
1062
1068
|
title: t = "An error occurred",
|
|
1063
1069
|
message: e,
|
|
1064
1070
|
category: r
|
|
1065
|
-
}) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
1066
|
-
r && /* @__PURE__ */ s.jsx(
|
|
1067
|
-
t && /* @__PURE__ */ s.jsx(
|
|
1071
|
+
}) => /* @__PURE__ */ s.jsxs("div", { className: er + " h-full pt-[--padding-content-top]", children: [
|
|
1072
|
+
r && /* @__PURE__ */ s.jsx(jr, { children: r }),
|
|
1073
|
+
t && /* @__PURE__ */ s.jsx(Jt, { level: 1, className: "flex gap-3.5 items-center", children: t }),
|
|
1068
1074
|
/* @__PURE__ */ s.jsx("p", { children: e })
|
|
1069
|
-
] }),
|
|
1075
|
+
] }), Zr = (t) => {
|
|
1070
1076
|
switch (t) {
|
|
1071
1077
|
case 400:
|
|
1072
1078
|
return {
|
|
@@ -1129,21 +1135,21 @@ const Lr = ({
|
|
|
1129
1135
|
message: "Something went wrong while processing your request."
|
|
1130
1136
|
};
|
|
1131
1137
|
}
|
|
1132
|
-
},
|
|
1133
|
-
const r =
|
|
1138
|
+
}, Yr = ({ statusCode: t, message: e }) => {
|
|
1139
|
+
const r = Zr(t);
|
|
1134
1140
|
return /* @__PURE__ */ s.jsx(
|
|
1135
|
-
|
|
1141
|
+
Ur,
|
|
1136
1142
|
{
|
|
1137
1143
|
title: r.title,
|
|
1138
1144
|
message: e ?? r.message,
|
|
1139
1145
|
category: t
|
|
1140
1146
|
}
|
|
1141
1147
|
);
|
|
1142
|
-
},
|
|
1148
|
+
}, Vr = he(null), se = {
|
|
1143
1149
|
didCatch: !1,
|
|
1144
1150
|
error: null
|
|
1145
1151
|
};
|
|
1146
|
-
class
|
|
1152
|
+
class Xr extends qt {
|
|
1147
1153
|
constructor(e) {
|
|
1148
1154
|
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = se;
|
|
1149
1155
|
}
|
|
@@ -1176,7 +1182,7 @@ class Vr extends Ot {
|
|
|
1176
1182
|
} = this.state, {
|
|
1177
1183
|
resetKeys: a
|
|
1178
1184
|
} = this.props;
|
|
1179
|
-
if (n && r.error !== null &&
|
|
1185
|
+
if (n && r.error !== null && Gr(e.resetKeys, a)) {
|
|
1180
1186
|
var o, i;
|
|
1181
1187
|
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
1182
1188
|
next: a,
|
|
@@ -1204,13 +1210,13 @@ class Vr extends Ot {
|
|
|
1204
1210
|
if (typeof r == "function")
|
|
1205
1211
|
u = r(d);
|
|
1206
1212
|
else if (n)
|
|
1207
|
-
u =
|
|
1213
|
+
u = ke(n, d);
|
|
1208
1214
|
else if (a !== void 0)
|
|
1209
1215
|
u = a;
|
|
1210
1216
|
else
|
|
1211
1217
|
throw i;
|
|
1212
1218
|
}
|
|
1213
|
-
return
|
|
1219
|
+
return ke(Vr.Provider, {
|
|
1214
1220
|
value: {
|
|
1215
1221
|
didCatch: o,
|
|
1216
1222
|
error: i,
|
|
@@ -1219,11 +1225,11 @@ class Vr extends Ot {
|
|
|
1219
1225
|
}, u);
|
|
1220
1226
|
}
|
|
1221
1227
|
}
|
|
1222
|
-
function
|
|
1228
|
+
function Gr() {
|
|
1223
1229
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1224
1230
|
return t.length !== e.length || t.some((r, n) => !Object.is(r, e[n]));
|
|
1225
1231
|
}
|
|
1226
|
-
class
|
|
1232
|
+
class _r {
|
|
1227
1233
|
constructor(e) {
|
|
1228
1234
|
P(this, "plugins");
|
|
1229
1235
|
P(this, "sidebars");
|
|
@@ -1234,14 +1240,14 @@ class Gr {
|
|
|
1234
1240
|
P(this, "navigationPlugins");
|
|
1235
1241
|
P(this, "initialize", async () => {
|
|
1236
1242
|
await Promise.all(
|
|
1237
|
-
this.plugins.filter(
|
|
1243
|
+
this.plugins.filter(or).map((e) => {
|
|
1238
1244
|
var r;
|
|
1239
1245
|
return (r = e.initialize) == null ? void 0 : r.call(e, this);
|
|
1240
1246
|
})
|
|
1241
1247
|
);
|
|
1242
1248
|
});
|
|
1243
1249
|
P(this, "getApiIdentities", async () => (await Promise.all(
|
|
1244
|
-
this.plugins.filter(
|
|
1250
|
+
this.plugins.filter(lr).map((r) => r.getIdentities(this))
|
|
1245
1251
|
)).flat());
|
|
1246
1252
|
P(this, "getPluginSidebar", async (e) => (await Promise.all(
|
|
1247
1253
|
this.navigationPlugins.map(
|
|
@@ -1257,81 +1263,82 @@ class Gr {
|
|
|
1257
1263
|
const r = await this.authentication.getAccessToken();
|
|
1258
1264
|
return e.headers.set("Authorization", `Bearer ${r}`), e;
|
|
1259
1265
|
});
|
|
1260
|
-
this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(
|
|
1266
|
+
this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ir), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
|
|
1261
1267
|
}
|
|
1262
1268
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return /* @__PURE__ */ s.jsx(
|
|
1269
|
+
function Wr({ error: t, resetErrorBoundary: e }) {
|
|
1270
|
+
return /* @__PURE__ */ s.jsx(Ye, { error: t });
|
|
1265
1271
|
}
|
|
1266
1272
|
const W = globalThis;
|
|
1267
1273
|
(!W.requestIdleCallback || !W.cancelIdleCallback) && (W.requestIdleCallback = (t) => setTimeout(t, 1), W.cancelIdleCallback = clearTimeout);
|
|
1268
|
-
const
|
|
1269
|
-
Header:
|
|
1270
|
-
},
|
|
1274
|
+
const it = {
|
|
1275
|
+
Header: nt
|
|
1276
|
+
}, Jr = he(it), es = Jr.Provider, ts = ({
|
|
1271
1277
|
children: t,
|
|
1272
1278
|
context: e
|
|
1273
|
-
}) => (
|
|
1279
|
+
}) => (St({
|
|
1274
1280
|
queryFn: async () => (await e.initialize(), !0),
|
|
1275
1281
|
queryKey: ["zudoku-initialize"]
|
|
1276
|
-
}), /* @__PURE__ */ s.jsx(
|
|
1282
|
+
}), /* @__PURE__ */ s.jsx(Nt.Provider, { value: e, children: t })), ot = Ue(
|
|
1277
1283
|
({ children: t, ...e }) => {
|
|
1278
1284
|
var f, h;
|
|
1279
1285
|
const r = te(
|
|
1280
|
-
() => ({ ...
|
|
1286
|
+
() => ({ ...it, ...e.overrides }),
|
|
1281
1287
|
[e.overrides]
|
|
1282
1288
|
), n = te(() => {
|
|
1283
|
-
var
|
|
1289
|
+
var y;
|
|
1284
1290
|
return {
|
|
1285
|
-
...(e.plugins ?? []).filter(
|
|
1286
|
-
(
|
|
1291
|
+
...(e.plugins ?? []).filter(cr).flatMap(
|
|
1292
|
+
(p) => p.getMdxComponents ? [p.getMdxComponents()] : []
|
|
1287
1293
|
).reduce(
|
|
1288
|
-
(
|
|
1294
|
+
(p, C) => ({ ...p, ...C }),
|
|
1289
1295
|
{}
|
|
1290
1296
|
),
|
|
1291
|
-
...
|
|
1292
|
-
...(
|
|
1297
|
+
...tr,
|
|
1298
|
+
...(y = e.mdx) == null ? void 0 : y.components
|
|
1293
1299
|
};
|
|
1294
|
-
}, [(f = e.mdx) == null ? void 0 : f.components, e.plugins]), { stagger: a } =
|
|
1300
|
+
}, [(f = e.mdx) == null ? void 0 : f.components, e.plugins]), { stagger: a } = Tt(ie), [o, i] = L(!1), u = te(
|
|
1295
1301
|
() => o ? { stagger: !0 } : { stagger: a },
|
|
1296
1302
|
[a, o]
|
|
1297
1303
|
), d = ue();
|
|
1298
1304
|
I(() => {
|
|
1299
1305
|
o || i(!0);
|
|
1300
1306
|
}, [o, d.location]);
|
|
1301
|
-
const [c] = L(() => new
|
|
1302
|
-
var
|
|
1303
|
-
return /* @__PURE__ */ s.jsx(
|
|
1307
|
+
const [c] = L(() => new _r(e)), g = (h = e.plugins) == null ? void 0 : h.filter(ur).map((m, y) => {
|
|
1308
|
+
var p;
|
|
1309
|
+
return /* @__PURE__ */ s.jsx(It, { children: (p = m.getHead) == null ? void 0 : p.call(m) }, y);
|
|
1304
1310
|
});
|
|
1305
1311
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1306
1312
|
/* @__PURE__ */ s.jsx(oe, { children: g }),
|
|
1307
|
-
/* @__PURE__ */ s.jsx(ie.Provider, { value: u, children: /* @__PURE__ */ s.jsx(
|
|
1313
|
+
/* @__PURE__ */ s.jsx(ie.Provider, { value: u, children: /* @__PURE__ */ s.jsx(ts, { context: c, children: /* @__PURE__ */ s.jsx(Gt, { components: n, children: /* @__PURE__ */ s.jsx(ht, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(es, { value: r, children: /* @__PURE__ */ s.jsx(Qt, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(rr, { children: t ?? /* @__PURE__ */ s.jsx(ce, {}) }) }) }) }) }) }) })
|
|
1308
1314
|
] });
|
|
1309
1315
|
}
|
|
1310
1316
|
);
|
|
1311
|
-
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1314
|
-
const
|
|
1317
|
+
ot.displayName = "ZudokoInner";
|
|
1318
|
+
const lt = (t) => /* @__PURE__ */ s.jsx(Xr, { FallbackComponent: Wr, children: /* @__PURE__ */ s.jsx(ot, { ...t }) });
|
|
1319
|
+
lt.displayName = "Zudoku";
|
|
1320
|
+
const Ns = _t, Ds = $r, Ms = Rt, Os = Or, As = qr, Es = Tr, qs = Mr, Ts = oe, Is = A, Qs = z, Rs = Dt, Fs = Mt, Bs = lt, Hs = Yr, zs = Bt, Ls = sr, Ks = We, $s = ge, Us = Ft, Zs = de, Ys = Be;
|
|
1315
1321
|
export {
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1322
|
+
As as Bootstrap,
|
|
1323
|
+
Es as BootstrapStatic,
|
|
1324
|
+
Us as Button,
|
|
1325
|
+
Fs as CACHE_KEYS,
|
|
1326
|
+
zs as Callout,
|
|
1327
|
+
$s as ClientOnly,
|
|
1328
|
+
Ts as Head,
|
|
1329
|
+
Ds as Layout,
|
|
1330
|
+
Zs as Link,
|
|
1331
|
+
Ls as Markdown,
|
|
1332
|
+
qs as RouteGuard,
|
|
1333
|
+
Ms as RouterError,
|
|
1334
|
+
Os as ServerError,
|
|
1335
|
+
Ks as Spinner,
|
|
1336
|
+
Hs as StatusPage,
|
|
1337
|
+
Bs as Zudoku,
|
|
1338
|
+
Qs as useAuth,
|
|
1339
|
+
Rs as useCache,
|
|
1340
|
+
Ns as useMDXComponents,
|
|
1341
|
+
Ys as useTheme,
|
|
1342
|
+
Is as useZudoku
|
|
1336
1343
|
};
|
|
1337
1344
|
//# sourceMappingURL=zudoku.components.js.map
|