zudoku 0.17.0 → 0.18.0
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/demo.js +0 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.js +14 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +5 -4
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/standalone.js +0 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
- package/dist/config/validators/validate.d.ts +74 -74
- package/dist/lib/authentication/hook.d.ts +5 -4
- package/dist/lib/authentication/hook.js +1 -3
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +11 -11
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +0 -1
- package/dist/lib/authentication/providers/openid.js +11 -26
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +25 -4
- package/dist/lib/authentication/state.js +28 -5
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +3 -1
- package/dist/lib/components/Bootstrap.js +11 -3
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/Header.js +3 -7
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +11 -3
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +16 -12
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +13 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +2 -0
- package/dist/lib/components/TopNavigation.js +13 -7
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +4 -5
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +3 -3
- package/dist/lib/components/context/ZudokuContext.js +7 -12
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +14 -3
- package/dist/lib/components/navigation/Sidebar.js +1 -1
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +2 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +0 -4
- package/dist/lib/core/ZudokuContext.js +0 -5
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +5 -9
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationList.js +6 -21
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +4 -4
- package/dist/lib/plugins/openapi/Route.js +2 -4
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +8 -11
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +102 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
- package/dist/lib/plugins/openapi/client/worker.js +23 -14
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -52
- package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +134 -9
- package/dist/lib/plugins/openapi/graphql/graphql.js +194 -778
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +40 -53
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +7 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +1 -1
- package/dist/vite/config.js +0 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-component.js +1 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-mdx.js +3 -2
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin.js +0 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/lib/{AnchorLink-DYbUOP9U.js → AnchorLink-CDlhr8gL.js} +11 -10
- package/lib/{AnchorLink-DYbUOP9U.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
- package/lib/{AuthenticationPlugin-bqGAKfot.js → AuthenticationPlugin-DeGDVa1r.js} +6 -5
- package/lib/{AuthenticationPlugin-bqGAKfot.js.map → AuthenticationPlugin-DeGDVa1r.js.map} +1 -1
- package/lib/{Spinner-ChOGyPls.js → Button-jK0EsymC.js} +12 -15
- package/lib/Button-jK0EsymC.js.map +1 -0
- package/lib/Markdown-ievDDhFT.js +15192 -0
- package/lib/Markdown-ievDDhFT.js.map +1 -0
- package/lib/{MdxPage-DRKqyn2b.js → MdxPage-Bwn-VSsH.js} +5 -5
- package/lib/{MdxPage-DRKqyn2b.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
- package/lib/OperationList-BwBl1xrD.js +4691 -0
- package/lib/OperationList-BwBl1xrD.js.map +1 -0
- package/lib/Route-DlG_HTMu.js +11 -0
- package/lib/Route-DlG_HTMu.js.map +1 -0
- package/lib/{Select-DYKDahHt.js → Select-O9ZM3ZgX.js} +7 -7
- package/lib/Select-O9ZM3ZgX.js.map +1 -0
- package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
- package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
- package/lib/SlotletProvider-DyomlzGx.js +252 -0
- package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
- package/lib/Spinner-3cQDBVGr.js +7 -0
- package/lib/Spinner-3cQDBVGr.js.map +1 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
- package/lib/assets/{worker-YA-aCP3P.js → worker-CPsGZsve.js} +24 -22
- package/lib/assets/{worker-YA-aCP3P.js.map → worker-CPsGZsve.js.map} +1 -1
- package/lib/context-D1nXWxm7.js +22 -0
- package/lib/context-D1nXWxm7.js.map +1 -0
- package/lib/createServer-DK-g7kbB.js +16089 -0
- package/lib/createServer-DK-g7kbB.js.map +1 -0
- package/lib/{hook-CjQERPa7.js → hook-hEqe7fPB.js} +12 -14
- package/lib/hook-hEqe7fPB.js.map +1 -0
- package/lib/index-Czzd9rjU.js +899 -0
- package/lib/index-Czzd9rjU.js.map +1 -0
- package/lib/index-DNxQ_rCt.js +1273 -0
- package/lib/index-DNxQ_rCt.js.map +1 -0
- package/lib/index-Yn8c3UWE.js +921 -0
- package/lib/index-Yn8c3UWE.js.map +1 -0
- package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
- package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
- package/lib/state-tsXBLONe.js +203 -0
- package/lib/state-tsXBLONe.js.map +1 -0
- package/lib/ui/ActionButton.js +11 -10
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/useExposedProps-CTPtylCV.js +10 -0
- package/lib/{useExposedProps-BxyHjPNN.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
- package/lib/{utils-DNAltzXc.js → utils-DcpDOncX.js} +197 -202
- package/lib/utils-DcpDOncX.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +24 -18
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +124 -138
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1133 -992
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16346
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +18 -18
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -9
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/package.json +14 -4
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +14 -0
- package/src/app/entry.server.tsx +59 -57
- package/src/app/standalone.tsx +0 -3
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +16 -11
- package/src/lib/authentication/providers/openid.tsx +12 -30
- package/src/lib/authentication/state.ts +44 -10
- package/src/lib/components/Bootstrap.tsx +36 -9
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +31 -42
- package/src/lib/components/Layout.tsx +48 -36
- package/src/lib/components/MobileTopNavigation.tsx +15 -18
- package/src/lib/components/SyntaxHighlight.tsx +81 -46
- package/src/lib/components/ThemeSwitch.tsx +26 -0
- package/src/lib/components/TopNavigation.tsx +27 -19
- package/src/lib/components/Zudoku.tsx +5 -10
- package/src/lib/components/context/ZudokuContext.ts +8 -13
- package/src/lib/components/navigation/Sidebar.tsx +3 -3
- package/src/lib/components/navigation/utils.ts +2 -2
- package/src/lib/core/ZudokuContext.ts +0 -8
- package/src/lib/errors/ErrorAlert.tsx +2 -1
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
- package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
- package/src/lib/plugins/openapi/OperationList.tsx +5 -40
- package/src/lib/plugins/openapi/Route.tsx +11 -12
- package/src/lib/plugins/openapi/Sidecar.tsx +10 -13
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +140 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +2 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
- package/src/lib/plugins/openapi/client/worker.ts +38 -24
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +7 -25
- package/src/lib/plugins/openapi/graphql/graphql.ts +351 -782
- package/src/lib/plugins/openapi/index.tsx +40 -63
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -1
- package/src/lib/plugins/openapi-worker.ts +11 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -9
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -54
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -62
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/lib/DeveloperHint-DHdLXGHA.js +0 -16
- package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
- package/lib/Markdown-D6UxMbZm.js +0 -18059
- package/lib/Markdown-D6UxMbZm.js.map +0 -1
- package/lib/OperationList-BHUBGM0c.js +0 -621
- package/lib/OperationList-BHUBGM0c.js.map +0 -1
- package/lib/Route-B0XuN1oC.js +0 -13
- package/lib/Route-B0XuN1oC.js.map +0 -1
- package/lib/Select-DYKDahHt.js.map +0 -1
- package/lib/SidebarBadge-Bbt92M5K.js +0 -38
- package/lib/SidebarBadge-Bbt92M5K.js.map +0 -1
- package/lib/SlotletProvider-mhjLPG44.js +0 -241
- package/lib/SlotletProvider-mhjLPG44.js.map +0 -1
- package/lib/Spinner-ChOGyPls.js.map +0 -1
- package/lib/StaggeredRender-DDHSzQKE.js +0 -17
- package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
- package/lib/hook-CjQERPa7.js.map +0 -1
- package/lib/index-BRg5pi5D.js +0 -5902
- package/lib/index-BRg5pi5D.js.map +0 -1
- package/lib/index-DM9hrcCG.js +0 -1783
- package/lib/index-DM9hrcCG.js.map +0 -1
- package/lib/state-BsPrOUAh.js +0 -252
- package/lib/state-BsPrOUAh.js.map +0 -1
- package/lib/urql-core-35Qt_U4i.js +0 -1511
- package/lib/urql-core-35Qt_U4i.js.map +0 -1
- package/lib/useExposedProps-BxyHjPNN.js +0 -9
- package/lib/utils-DNAltzXc.js.map +0 -1
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -65
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -79
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
package/lib/zudoku.components.js
CHANGED
|
@@ -1,778 +1,923 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
throw TypeError(
|
|
1
|
+
var xt = Object.defineProperty;
|
|
2
|
+
var Ne = (e) => {
|
|
3
|
+
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var l = (
|
|
8
|
-
var
|
|
5
|
+
var yt = (e, t, r) => t in e ? xt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var S = (e, t, r) => yt(e, typeof t != "symbol" ? t + "" : t, r), Ee = (e, t, r) => t.has(e) || Ne("Cannot " + r);
|
|
7
|
+
var l = (e, t, r) => (Ee(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Ne("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => (Ee(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
|
|
8
|
+
var J = (e, t, r, s) => ({
|
|
9
9
|
set _(n) {
|
|
10
|
-
|
|
10
|
+
y(e, t, n, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return l(
|
|
13
|
+
return l(e, t, s);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as
|
|
17
|
-
import {
|
|
18
|
-
import { u as
|
|
19
|
-
import { E as
|
|
16
|
+
import { a as Be, A as bt, H as he, M as jt, u as wt } from "./AnchorLink-CDlhr8gL.js";
|
|
17
|
+
import { d as St, R as Nt, N as re, u as Et, L as fe } from "./index-Yn8c3UWE.js";
|
|
18
|
+
import { u as Pt } from "./state-tsXBLONe.js";
|
|
19
|
+
import { E as ze, S as D, a as Ct, R as kt } from "./SlotletProvider-DyomlzGx.js";
|
|
20
20
|
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
21
|
-
import { Button as
|
|
22
|
-
import { Callout as
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
|
|
41
|
-
|
|
21
|
+
import { Button as At } from "./ui/Button.js";
|
|
22
|
+
import { Callout as Dt } from "./ui/Callout.js";
|
|
23
|
+
import { S as He, l as Ue, Q as Ot, n as w, m as Pe, o as Ce, p as O, q as Mt, r as Rt, t as It, v as Tt, w as ke, x as Ae, y as _t, h as De, z as Oe, A as Ft, d as Qt, B as $e, C as qt, j as q, u as Q, D as Ke, E as Lt, g as Bt, Z as zt } from "./utils-DcpDOncX.js";
|
|
24
|
+
import { M as Ht, u as ae } from "./hook-hEqe7fPB.js";
|
|
25
|
+
import * as G from "react";
|
|
26
|
+
import Ve, { useState as F, StrictMode as Ze, useEffect as L, useRef as me, useCallback as Ut, Suspense as ge, memo as Ye, forwardRef as $t, createContext as We, Component as Kt, createElement as Me, useMemo as se, useContext as Vt, Fragment as Zt } from "react";
|
|
27
|
+
import { a as pe, c as Yt } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
28
|
+
import { B as Wt } from "./router-lfyopgBI.js";
|
|
29
|
+
import { I as Xt, y as Jt, u as ve, j as xe, O as Xe } from "./index-Czzd9rjU.js";
|
|
30
|
+
import { S as le, a as ne } from "./SidebarBadge-DxFJcJ6V.js";
|
|
31
|
+
import { C as ye } from "./ClientOnly-E7hGysn1.js";
|
|
32
|
+
import { ChevronRightIcon as Gt, ExternalLinkIcon as er, CircleXIcon as tr, SearchIcon as rr, MoonStarIcon as ar, SunIcon as sr, MenuIcon as nr, PanelLeftIcon as ir } from "lucide-react";
|
|
33
|
+
import { Drawer as Je, DrawerTrigger as Ge, DrawerContent as et, DrawerTitle as tt } from "./ui/Drawer.js";
|
|
34
|
+
import { c as R } from "./cn-BmFQLtkS.js";
|
|
35
|
+
import { u as be, a as or, V as lr } from "./Markdown-ievDDhFT.js";
|
|
36
|
+
import { c as cr, a as ur } from "./index-BuAyrJe3.js";
|
|
37
|
+
import * as ie from "@radix-ui/react-collapsible";
|
|
38
|
+
import { B as ce } from "./Button-jK0EsymC.js";
|
|
39
|
+
import { DropdownMenu as dr, DropdownMenuTrigger as hr, DropdownMenuContent as fr, DropdownMenuLabel as mr, DropdownMenuSeparator as gr, DropdownMenuSub as pr, DropdownMenuSubTrigger as vr, DropdownMenuPortal as xr, DropdownMenuSubContent as yr, DropdownMenuItem as br } from "./ui/DropdownMenu.js";
|
|
40
|
+
import { VisuallyHidden as rt } from "@radix-ui/react-visually-hidden";
|
|
41
|
+
import { z as jr, J as wr } from "./SyntaxHighlight-DkLOsjHS.js";
|
|
42
|
+
import { Z as Sr } from "./invariant-Caa8-XvF.js";
|
|
43
|
+
import { S as Nr } from "./Spinner-3cQDBVGr.js";
|
|
44
|
+
function Er({ error: e }) {
|
|
45
|
+
return /* @__PURE__ */ a.jsx(ze, { error: e });
|
|
42
46
|
}
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
Object.defineProperty(Z, "__esModule", { value: !0 });
|
|
46
|
-
var wr = Et, E = br, ge = yr, O = jr;
|
|
47
|
-
function Nr(t) {
|
|
48
|
-
if (t && t.__esModule) return t;
|
|
49
|
-
var e = /* @__PURE__ */ Object.create(null);
|
|
50
|
-
return t && Object.keys(t).forEach(function(r) {
|
|
51
|
-
if (r !== "default") {
|
|
52
|
-
var s = Object.getOwnPropertyDescriptor(t, r);
|
|
53
|
-
Object.defineProperty(e, r, s.get ? s : {
|
|
54
|
-
enumerable: !0,
|
|
55
|
-
get: function() {
|
|
56
|
-
return t[r];
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}), e.default = t, Object.freeze(e);
|
|
61
|
-
}
|
|
62
|
-
var P = /* @__PURE__ */ Nr(wr);
|
|
63
|
-
function Sr({
|
|
64
|
-
basename: t,
|
|
65
|
-
children: e,
|
|
66
|
-
location: r = "/",
|
|
67
|
-
future: s
|
|
68
|
-
}) {
|
|
69
|
-
typeof r == "string" && (r = O.parsePath(r));
|
|
70
|
-
let n = E.Action.Pop, i = {
|
|
71
|
-
pathname: r.pathname || "/",
|
|
72
|
-
search: r.search || "",
|
|
73
|
-
hash: r.hash || "",
|
|
74
|
-
state: r.state != null ? r.state : null,
|
|
75
|
-
key: r.key || "default"
|
|
76
|
-
}, o = Xe();
|
|
77
|
-
return /* @__PURE__ */ P.createElement(O.Router, {
|
|
78
|
-
basename: t,
|
|
79
|
-
children: e,
|
|
80
|
-
location: i,
|
|
81
|
-
navigationType: n,
|
|
82
|
-
navigator: o,
|
|
83
|
-
future: s,
|
|
84
|
-
static: !0
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function kr({
|
|
88
|
-
context: t,
|
|
89
|
-
router: e,
|
|
90
|
-
hydrate: r = !0,
|
|
91
|
-
nonce: s
|
|
92
|
-
}) {
|
|
93
|
-
e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
|
|
94
|
-
let n = {
|
|
95
|
-
router: e,
|
|
96
|
-
navigator: Xe(),
|
|
97
|
-
static: !0,
|
|
98
|
-
staticContext: t,
|
|
99
|
-
basename: t.basename || "/"
|
|
100
|
-
}, i = /* @__PURE__ */ new Map(), o = "";
|
|
101
|
-
if (r !== !1) {
|
|
102
|
-
let c = {
|
|
103
|
-
loaderData: t.loaderData,
|
|
104
|
-
actionData: t.actionData,
|
|
105
|
-
errors: Cr(t.errors)
|
|
106
|
-
};
|
|
107
|
-
o = `window.__staticRouterHydrationData = JSON.parse(${Rr(JSON.stringify(JSON.stringify(c)))});`;
|
|
108
|
-
}
|
|
109
|
-
let {
|
|
110
|
-
state: u
|
|
111
|
-
} = n.router;
|
|
112
|
-
return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(O.UNSAFE_DataRouterContext.Provider, {
|
|
113
|
-
value: n
|
|
114
|
-
}, /* @__PURE__ */ P.createElement(O.UNSAFE_DataRouterStateContext.Provider, {
|
|
115
|
-
value: u
|
|
116
|
-
}, /* @__PURE__ */ P.createElement(O.UNSAFE_FetchersContext.Provider, {
|
|
117
|
-
value: i
|
|
118
|
-
}, /* @__PURE__ */ P.createElement(O.UNSAFE_ViewTransitionContext.Provider, {
|
|
119
|
-
value: {
|
|
120
|
-
isTransitioning: !1
|
|
121
|
-
}
|
|
122
|
-
}, /* @__PURE__ */ P.createElement(O.Router, {
|
|
123
|
-
basename: n.basename,
|
|
124
|
-
location: u.location,
|
|
125
|
-
navigationType: u.historyAction,
|
|
126
|
-
navigator: n.navigator,
|
|
127
|
-
static: n.static,
|
|
128
|
-
future: {
|
|
129
|
-
v7_relativeSplatPath: e.future.v7_relativeSplatPath
|
|
130
|
-
}
|
|
131
|
-
}, /* @__PURE__ */ P.createElement(Pr, {
|
|
132
|
-
routes: e.routes,
|
|
133
|
-
future: e.future,
|
|
134
|
-
state: u
|
|
135
|
-
})))))), o ? /* @__PURE__ */ P.createElement("script", {
|
|
136
|
-
suppressHydrationWarning: !0,
|
|
137
|
-
nonce: s,
|
|
138
|
-
dangerouslySetInnerHTML: {
|
|
139
|
-
__html: o
|
|
140
|
-
}
|
|
141
|
-
}) : null);
|
|
142
|
-
}
|
|
143
|
-
function Pr({
|
|
144
|
-
routes: t,
|
|
145
|
-
future: e,
|
|
146
|
-
state: r
|
|
147
|
-
}) {
|
|
148
|
-
return ge.UNSAFE_useRoutesImpl(t, void 0, r, e);
|
|
149
|
-
}
|
|
150
|
-
function Cr(t) {
|
|
151
|
-
if (!t) return null;
|
|
152
|
-
let e = Object.entries(t), r = {};
|
|
153
|
-
for (let [s, n] of e)
|
|
154
|
-
E.isRouteErrorResponse(n) ? r[s] = {
|
|
155
|
-
...n,
|
|
156
|
-
__type: "RouteErrorResponse"
|
|
157
|
-
} : n instanceof Error ? r[s] = {
|
|
158
|
-
message: n.message,
|
|
159
|
-
__type: "Error",
|
|
160
|
-
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
161
|
-
// can re-create the same type during hydration.
|
|
162
|
-
...n.name !== "Error" ? {
|
|
163
|
-
__subType: n.name
|
|
164
|
-
} : {}
|
|
165
|
-
} : r[s] = n;
|
|
166
|
-
return r;
|
|
167
|
-
}
|
|
168
|
-
function Xe() {
|
|
169
|
-
return {
|
|
170
|
-
createHref: Je,
|
|
171
|
-
encodeLocation: Ge,
|
|
172
|
-
push(t) {
|
|
173
|
-
throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)})\` somewhere in your app.`);
|
|
174
|
-
},
|
|
175
|
-
replace(t) {
|
|
176
|
-
throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)}, { replace: true })\` somewhere in your app.`);
|
|
177
|
-
},
|
|
178
|
-
go(t) {
|
|
179
|
-
throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${t})\` somewhere in your app.`);
|
|
180
|
-
},
|
|
181
|
-
back() {
|
|
182
|
-
throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
|
|
183
|
-
},
|
|
184
|
-
forward() {
|
|
185
|
-
throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function Er(t, e) {
|
|
190
|
-
return E.createStaticHandler(t, {
|
|
191
|
-
...e,
|
|
192
|
-
mapRouteProperties: ge.UNSAFE_mapRouteProperties
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
function Ar(t, e, r = {}) {
|
|
196
|
-
let s = {}, n = E.UNSAFE_convertRoutesToDataRoutes(t, ge.UNSAFE_mapRouteProperties, void 0, s), i = e.matches.map((u) => {
|
|
197
|
-
let c = s[u.route.id] || u.route;
|
|
198
|
-
return {
|
|
199
|
-
...u,
|
|
200
|
-
route: c
|
|
201
|
-
};
|
|
202
|
-
}), o = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
|
|
203
|
-
return {
|
|
204
|
-
get basename() {
|
|
205
|
-
return e.basename;
|
|
206
|
-
},
|
|
207
|
-
get future() {
|
|
208
|
-
var u, c;
|
|
209
|
-
return {
|
|
210
|
-
v7_fetcherPersist: !1,
|
|
211
|
-
v7_normalizeFormMethod: !1,
|
|
212
|
-
v7_partialHydration: ((u = r.future) == null ? void 0 : u.v7_partialHydration) === !0,
|
|
213
|
-
v7_prependBasename: !1,
|
|
214
|
-
v7_relativeSplatPath: ((c = r.future) == null ? void 0 : c.v7_relativeSplatPath) === !0,
|
|
215
|
-
v7_skipActionErrorRevalidation: !1
|
|
216
|
-
};
|
|
217
|
-
},
|
|
218
|
-
get state() {
|
|
219
|
-
return {
|
|
220
|
-
historyAction: E.Action.Pop,
|
|
221
|
-
location: e.location,
|
|
222
|
-
matches: i,
|
|
223
|
-
loaderData: e.loaderData,
|
|
224
|
-
actionData: e.actionData,
|
|
225
|
-
errors: e.errors,
|
|
226
|
-
initialized: !0,
|
|
227
|
-
navigation: E.IDLE_NAVIGATION,
|
|
228
|
-
restoreScrollPosition: null,
|
|
229
|
-
preventScrollReset: !1,
|
|
230
|
-
revalidation: "idle",
|
|
231
|
-
fetchers: /* @__PURE__ */ new Map(),
|
|
232
|
-
blockers: /* @__PURE__ */ new Map()
|
|
233
|
-
};
|
|
234
|
-
},
|
|
235
|
-
get routes() {
|
|
236
|
-
return n;
|
|
237
|
-
},
|
|
238
|
-
get window() {
|
|
239
|
-
},
|
|
240
|
-
initialize() {
|
|
241
|
-
throw o("initialize");
|
|
242
|
-
},
|
|
243
|
-
subscribe() {
|
|
244
|
-
throw o("subscribe");
|
|
245
|
-
},
|
|
246
|
-
enableScrollRestoration() {
|
|
247
|
-
throw o("enableScrollRestoration");
|
|
248
|
-
},
|
|
249
|
-
navigate() {
|
|
250
|
-
throw o("navigate");
|
|
251
|
-
},
|
|
252
|
-
fetch() {
|
|
253
|
-
throw o("fetch");
|
|
254
|
-
},
|
|
255
|
-
revalidate() {
|
|
256
|
-
throw o("revalidate");
|
|
257
|
-
},
|
|
258
|
-
createHref: Je,
|
|
259
|
-
encodeLocation: Ge,
|
|
260
|
-
getFetcher() {
|
|
261
|
-
return E.IDLE_FETCHER;
|
|
262
|
-
},
|
|
263
|
-
deleteFetcher() {
|
|
264
|
-
throw o("deleteFetcher");
|
|
265
|
-
},
|
|
266
|
-
dispose() {
|
|
267
|
-
throw o("dispose");
|
|
268
|
-
},
|
|
269
|
-
getBlocker() {
|
|
270
|
-
return E.IDLE_BLOCKER;
|
|
271
|
-
},
|
|
272
|
-
deleteBlocker() {
|
|
273
|
-
throw o("deleteBlocker");
|
|
274
|
-
},
|
|
275
|
-
patchRoutes() {
|
|
276
|
-
throw o("patchRoutes");
|
|
277
|
-
},
|
|
278
|
-
_internalFetchControllers: /* @__PURE__ */ new Map(),
|
|
279
|
-
_internalActiveDeferreds: /* @__PURE__ */ new Map(),
|
|
280
|
-
_internalSetRoutes() {
|
|
281
|
-
throw o("_internalSetRoutes");
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
function Je(t) {
|
|
286
|
-
return typeof t == "string" ? t : O.createPath(t);
|
|
287
|
-
}
|
|
288
|
-
function Ge(t) {
|
|
289
|
-
let e = typeof t == "string" ? t : O.createPath(t);
|
|
290
|
-
e = e.replace(/ $/, "%20");
|
|
291
|
-
let r = Mr.test(e) ? new URL(e) : new URL(e, "http://localhost");
|
|
292
|
-
return {
|
|
293
|
-
pathname: r.pathname,
|
|
294
|
-
search: r.search,
|
|
295
|
-
hash: r.hash
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
const Mr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Or = {
|
|
299
|
-
"&": "\\u0026",
|
|
300
|
-
">": "\\u003e",
|
|
301
|
-
"<": "\\u003c",
|
|
302
|
-
"\u2028": "\\u2028",
|
|
303
|
-
"\u2029": "\\u2029"
|
|
304
|
-
}, Dr = /[&><\u2028\u2029]/g;
|
|
305
|
-
function Rr(t) {
|
|
306
|
-
return t.replace(Dr, (e) => Or[e]);
|
|
307
|
-
}
|
|
308
|
-
Z.StaticRouter = Sr;
|
|
309
|
-
var Ir = Z.StaticRouterProvider = kr;
|
|
310
|
-
Z.createStaticHandler = Er;
|
|
311
|
-
Z.createStaticRouter = Ar;
|
|
312
|
-
const Tr = ({
|
|
313
|
-
router: t,
|
|
314
|
-
hydrate: e = !1
|
|
315
|
-
}) => /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(Ie, { children: /* @__PURE__ */ a.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ a.jsx(bt, { router: t }) }) }) }), _r = ({
|
|
316
|
-
router: t,
|
|
317
|
-
context: e,
|
|
318
|
-
helmetContext: r
|
|
319
|
-
}) => /* @__PURE__ */ a.jsx(Fe, { children: /* @__PURE__ */ a.jsx(Ie, { context: r, children: /* @__PURE__ */ a.jsx(Ir, { router: t, context: e }) }) });
|
|
320
|
-
var C, Oe, Fr = (Oe = class extends Ve {
|
|
321
|
-
constructor(e = {}) {
|
|
47
|
+
var k, Qe, Pr = (Qe = class extends He {
|
|
48
|
+
constructor(t = {}) {
|
|
322
49
|
super();
|
|
323
|
-
|
|
324
|
-
this.config =
|
|
50
|
+
N(this, k);
|
|
51
|
+
this.config = t, y(this, k, /* @__PURE__ */ new Map());
|
|
325
52
|
}
|
|
326
|
-
build(
|
|
327
|
-
const n = r.queryKey,
|
|
328
|
-
let
|
|
329
|
-
return
|
|
53
|
+
build(t, r, s) {
|
|
54
|
+
const n = r.queryKey, o = r.queryHash ?? Ue(n, r);
|
|
55
|
+
let i = this.get(o);
|
|
56
|
+
return i || (i = new Ot({
|
|
330
57
|
cache: this,
|
|
331
58
|
queryKey: n,
|
|
332
|
-
queryHash:
|
|
333
|
-
options:
|
|
59
|
+
queryHash: o,
|
|
60
|
+
options: t.defaultQueryOptions(r),
|
|
334
61
|
state: s,
|
|
335
|
-
defaultOptions:
|
|
336
|
-
}), this.add(
|
|
62
|
+
defaultOptions: t.getQueryDefaults(n)
|
|
63
|
+
}), this.add(i)), i;
|
|
337
64
|
}
|
|
338
|
-
add(
|
|
339
|
-
l(this,
|
|
65
|
+
add(t) {
|
|
66
|
+
l(this, k).has(t.queryHash) || (l(this, k).set(t.queryHash, t), this.notify({
|
|
340
67
|
type: "added",
|
|
341
|
-
query:
|
|
68
|
+
query: t
|
|
342
69
|
}));
|
|
343
70
|
}
|
|
344
|
-
remove(
|
|
345
|
-
const r = l(this,
|
|
346
|
-
r && (
|
|
71
|
+
remove(t) {
|
|
72
|
+
const r = l(this, k).get(t.queryHash);
|
|
73
|
+
r && (t.destroy(), r === t && l(this, k).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
347
74
|
}
|
|
348
75
|
clear() {
|
|
349
|
-
|
|
350
|
-
this.getAll().forEach((
|
|
351
|
-
this.remove(
|
|
76
|
+
w.batch(() => {
|
|
77
|
+
this.getAll().forEach((t) => {
|
|
78
|
+
this.remove(t);
|
|
352
79
|
});
|
|
353
80
|
});
|
|
354
81
|
}
|
|
355
|
-
get(
|
|
356
|
-
return l(this,
|
|
82
|
+
get(t) {
|
|
83
|
+
return l(this, k).get(t);
|
|
357
84
|
}
|
|
358
85
|
getAll() {
|
|
359
|
-
return [...l(this,
|
|
86
|
+
return [...l(this, k).values()];
|
|
360
87
|
}
|
|
361
|
-
find(
|
|
362
|
-
const r = { exact: !0, ...
|
|
88
|
+
find(t) {
|
|
89
|
+
const r = { exact: !0, ...t };
|
|
363
90
|
return this.getAll().find(
|
|
364
|
-
(s) =>
|
|
91
|
+
(s) => Pe(r, s)
|
|
365
92
|
);
|
|
366
93
|
}
|
|
367
|
-
findAll(
|
|
94
|
+
findAll(t = {}) {
|
|
368
95
|
const r = this.getAll();
|
|
369
|
-
return Object.keys(
|
|
96
|
+
return Object.keys(t).length > 0 ? r.filter((s) => Pe(t, s)) : r;
|
|
370
97
|
}
|
|
371
|
-
notify(
|
|
372
|
-
|
|
98
|
+
notify(t) {
|
|
99
|
+
w.batch(() => {
|
|
373
100
|
this.listeners.forEach((r) => {
|
|
374
|
-
r(
|
|
101
|
+
r(t);
|
|
375
102
|
});
|
|
376
103
|
});
|
|
377
104
|
}
|
|
378
105
|
onFocus() {
|
|
379
|
-
|
|
380
|
-
this.getAll().forEach((
|
|
381
|
-
|
|
106
|
+
w.batch(() => {
|
|
107
|
+
this.getAll().forEach((t) => {
|
|
108
|
+
t.onFocus();
|
|
382
109
|
});
|
|
383
110
|
});
|
|
384
111
|
}
|
|
385
112
|
onOnline() {
|
|
386
|
-
|
|
387
|
-
this.getAll().forEach((
|
|
388
|
-
|
|
113
|
+
w.batch(() => {
|
|
114
|
+
this.getAll().forEach((t) => {
|
|
115
|
+
t.onOnline();
|
|
389
116
|
});
|
|
390
117
|
});
|
|
391
118
|
}
|
|
392
|
-
},
|
|
393
|
-
constructor(
|
|
119
|
+
}, k = new WeakMap(), Qe), j, Z, qe, Cr = (qe = class extends He {
|
|
120
|
+
constructor(t = {}) {
|
|
394
121
|
super();
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
this.config =
|
|
122
|
+
N(this, j);
|
|
123
|
+
N(this, Z);
|
|
124
|
+
this.config = t, y(this, j, /* @__PURE__ */ new Map()), y(this, Z, Date.now());
|
|
398
125
|
}
|
|
399
|
-
build(
|
|
400
|
-
const n = new
|
|
126
|
+
build(t, r, s) {
|
|
127
|
+
const n = new Ht({
|
|
401
128
|
mutationCache: this,
|
|
402
|
-
mutationId: ++
|
|
403
|
-
options:
|
|
129
|
+
mutationId: ++J(this, Z)._,
|
|
130
|
+
options: t.defaultMutationOptions(r),
|
|
404
131
|
state: s
|
|
405
132
|
});
|
|
406
133
|
return this.add(n), n;
|
|
407
134
|
}
|
|
408
|
-
add(
|
|
409
|
-
const r =
|
|
410
|
-
s.push(
|
|
135
|
+
add(t) {
|
|
136
|
+
const r = ee(t), s = l(this, j).get(r) ?? [];
|
|
137
|
+
s.push(t), l(this, j).set(r, s), this.notify({ type: "added", mutation: t });
|
|
411
138
|
}
|
|
412
|
-
remove(
|
|
139
|
+
remove(t) {
|
|
413
140
|
var s;
|
|
414
|
-
const r =
|
|
415
|
-
if (l(this,
|
|
416
|
-
const n = (s = l(this,
|
|
417
|
-
n && (n.length === 0 ? l(this,
|
|
141
|
+
const r = ee(t);
|
|
142
|
+
if (l(this, j).has(r)) {
|
|
143
|
+
const n = (s = l(this, j).get(r)) == null ? void 0 : s.filter((o) => o !== t);
|
|
144
|
+
n && (n.length === 0 ? l(this, j).delete(r) : l(this, j).set(r, n));
|
|
418
145
|
}
|
|
419
|
-
this.notify({ type: "removed", mutation:
|
|
146
|
+
this.notify({ type: "removed", mutation: t });
|
|
420
147
|
}
|
|
421
|
-
canRun(
|
|
148
|
+
canRun(t) {
|
|
422
149
|
var s;
|
|
423
|
-
const r = (s = l(this,
|
|
424
|
-
return !r || r ===
|
|
150
|
+
const r = (s = l(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n.state.status === "pending");
|
|
151
|
+
return !r || r === t;
|
|
425
152
|
}
|
|
426
|
-
runNext(
|
|
153
|
+
runNext(t) {
|
|
427
154
|
var s;
|
|
428
|
-
const r = (s = l(this,
|
|
155
|
+
const r = (s = l(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n !== t && n.state.isPaused);
|
|
429
156
|
return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
|
|
430
157
|
}
|
|
431
158
|
clear() {
|
|
432
|
-
|
|
433
|
-
this.getAll().forEach((
|
|
434
|
-
this.remove(
|
|
159
|
+
w.batch(() => {
|
|
160
|
+
this.getAll().forEach((t) => {
|
|
161
|
+
this.remove(t);
|
|
435
162
|
});
|
|
436
163
|
});
|
|
437
164
|
}
|
|
438
165
|
getAll() {
|
|
439
|
-
return [...l(this,
|
|
166
|
+
return [...l(this, j).values()].flat();
|
|
440
167
|
}
|
|
441
|
-
find(
|
|
442
|
-
const r = { exact: !0, ...
|
|
168
|
+
find(t) {
|
|
169
|
+
const r = { exact: !0, ...t };
|
|
443
170
|
return this.getAll().find(
|
|
444
|
-
(s) =>
|
|
171
|
+
(s) => Ce(r, s)
|
|
445
172
|
);
|
|
446
173
|
}
|
|
447
|
-
findAll(
|
|
448
|
-
return this.getAll().filter((r) =>
|
|
174
|
+
findAll(t = {}) {
|
|
175
|
+
return this.getAll().filter((r) => Ce(t, r));
|
|
449
176
|
}
|
|
450
|
-
notify(
|
|
451
|
-
|
|
177
|
+
notify(t) {
|
|
178
|
+
w.batch(() => {
|
|
452
179
|
this.listeners.forEach((r) => {
|
|
453
|
-
r(
|
|
180
|
+
r(t);
|
|
454
181
|
});
|
|
455
182
|
});
|
|
456
183
|
}
|
|
457
184
|
resumePausedMutations() {
|
|
458
|
-
const
|
|
459
|
-
return
|
|
185
|
+
const t = this.getAll().filter((r) => r.state.isPaused);
|
|
186
|
+
return w.batch(
|
|
460
187
|
() => Promise.all(
|
|
461
|
-
|
|
188
|
+
t.map((r) => r.continue().catch(O))
|
|
462
189
|
)
|
|
463
190
|
);
|
|
464
191
|
}
|
|
465
|
-
},
|
|
466
|
-
function
|
|
467
|
-
var
|
|
468
|
-
return ((
|
|
192
|
+
}, j = new WeakMap(), Z = new WeakMap(), qe);
|
|
193
|
+
function ee(e) {
|
|
194
|
+
var t;
|
|
195
|
+
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
469
196
|
}
|
|
470
|
-
function
|
|
197
|
+
function Re(e) {
|
|
471
198
|
return {
|
|
472
|
-
onFetch: (
|
|
473
|
-
var
|
|
474
|
-
const s =
|
|
475
|
-
let
|
|
476
|
-
const
|
|
477
|
-
let
|
|
478
|
-
const
|
|
479
|
-
Object.defineProperty(
|
|
199
|
+
onFetch: (t, r) => {
|
|
200
|
+
var p, f, h, g, v;
|
|
201
|
+
const s = t.options, n = (h = (f = (p = t.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((g = t.state.data) == null ? void 0 : g.pages) || [], i = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
|
|
202
|
+
let c = { pages: [], pageParams: [] }, u = 0;
|
|
203
|
+
const d = async () => {
|
|
204
|
+
let m = !1;
|
|
205
|
+
const E = (b) => {
|
|
206
|
+
Object.defineProperty(b, "signal", {
|
|
480
207
|
enumerable: !0,
|
|
481
|
-
get: () => (
|
|
482
|
-
|
|
483
|
-
}),
|
|
208
|
+
get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => {
|
|
209
|
+
m = !0;
|
|
210
|
+
}), t.signal)
|
|
484
211
|
});
|
|
485
|
-
},
|
|
486
|
-
if (
|
|
212
|
+
}, W = Mt(t.options, t.fetchOptions), $ = async (b, P, K) => {
|
|
213
|
+
if (m)
|
|
487
214
|
return Promise.reject();
|
|
488
|
-
if (
|
|
489
|
-
return Promise.resolve(
|
|
490
|
-
const
|
|
491
|
-
queryKey:
|
|
492
|
-
pageParam:
|
|
493
|
-
direction:
|
|
494
|
-
meta:
|
|
215
|
+
if (P == null && b.pages.length)
|
|
216
|
+
return Promise.resolve(b);
|
|
217
|
+
const X = {
|
|
218
|
+
queryKey: t.queryKey,
|
|
219
|
+
pageParam: P,
|
|
220
|
+
direction: K ? "backward" : "forward",
|
|
221
|
+
meta: t.options.meta
|
|
495
222
|
};
|
|
496
|
-
|
|
497
|
-
const
|
|
498
|
-
|
|
499
|
-
), { maxPages:
|
|
223
|
+
E(X);
|
|
224
|
+
const vt = await W(
|
|
225
|
+
X
|
|
226
|
+
), { maxPages: we } = t.options, Se = K ? Rt : It;
|
|
500
227
|
return {
|
|
501
|
-
pages:
|
|
502
|
-
pageParams:
|
|
228
|
+
pages: Se(b.pages, vt, we),
|
|
229
|
+
pageParams: Se(b.pageParams, P, we)
|
|
503
230
|
};
|
|
504
231
|
};
|
|
505
|
-
if (n &&
|
|
506
|
-
const
|
|
507
|
-
pages:
|
|
508
|
-
pageParams:
|
|
509
|
-
},
|
|
510
|
-
|
|
232
|
+
if (n && o.length) {
|
|
233
|
+
const b = n === "backward", P = b ? kr : Ie, K = {
|
|
234
|
+
pages: o,
|
|
235
|
+
pageParams: i
|
|
236
|
+
}, X = P(s, K);
|
|
237
|
+
c = await $(K, X, b);
|
|
511
238
|
} else {
|
|
512
|
-
const
|
|
239
|
+
const b = e ?? o.length;
|
|
513
240
|
do {
|
|
514
|
-
const
|
|
515
|
-
if (
|
|
241
|
+
const P = u === 0 ? i[0] ?? s.initialPageParam : Ie(s, c);
|
|
242
|
+
if (u > 0 && P == null)
|
|
516
243
|
break;
|
|
517
|
-
|
|
518
|
-
} while (
|
|
244
|
+
c = await $(c, P), u++;
|
|
245
|
+
} while (u < b);
|
|
519
246
|
}
|
|
520
|
-
return
|
|
247
|
+
return c;
|
|
521
248
|
};
|
|
522
|
-
|
|
523
|
-
var
|
|
524
|
-
return (
|
|
525
|
-
|
|
526
|
-
|
|
249
|
+
t.options.persister ? t.fetchFn = () => {
|
|
250
|
+
var m, E;
|
|
251
|
+
return (E = (m = t.options).persister) == null ? void 0 : E.call(
|
|
252
|
+
m,
|
|
253
|
+
d,
|
|
527
254
|
{
|
|
528
|
-
queryKey:
|
|
529
|
-
meta:
|
|
530
|
-
signal:
|
|
255
|
+
queryKey: t.queryKey,
|
|
256
|
+
meta: t.options.meta,
|
|
257
|
+
signal: t.signal
|
|
531
258
|
},
|
|
532
259
|
r
|
|
533
260
|
);
|
|
534
|
-
} :
|
|
261
|
+
} : t.fetchFn = d;
|
|
535
262
|
}
|
|
536
263
|
};
|
|
537
264
|
}
|
|
538
|
-
function
|
|
539
|
-
const s =
|
|
540
|
-
return
|
|
541
|
-
|
|
542
|
-
|
|
265
|
+
function Ie(e, { pages: t, pageParams: r }) {
|
|
266
|
+
const s = t.length - 1;
|
|
267
|
+
return t.length > 0 ? e.getNextPageParam(
|
|
268
|
+
t[s],
|
|
269
|
+
t,
|
|
543
270
|
r[s],
|
|
544
271
|
r
|
|
545
272
|
) : void 0;
|
|
546
273
|
}
|
|
547
|
-
function
|
|
274
|
+
function kr(e, { pages: t, pageParams: r }) {
|
|
548
275
|
var s;
|
|
549
|
-
return
|
|
276
|
+
return t.length > 0 ? (s = e.getPreviousPageParam) == null ? void 0 : s.call(e, t[0], t, r[0], r) : void 0;
|
|
550
277
|
}
|
|
551
|
-
var
|
|
552
|
-
constructor(
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
278
|
+
var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
|
|
279
|
+
constructor(e = {}) {
|
|
280
|
+
N(this, x);
|
|
281
|
+
N(this, I);
|
|
282
|
+
N(this, T);
|
|
283
|
+
N(this, B);
|
|
284
|
+
N(this, z);
|
|
285
|
+
N(this, _);
|
|
286
|
+
N(this, H);
|
|
287
|
+
N(this, U);
|
|
288
|
+
y(this, x, e.queryCache || new Pr()), y(this, I, e.mutationCache || new Cr()), y(this, T, e.defaultOptions || {}), y(this, B, /* @__PURE__ */ new Map()), y(this, z, /* @__PURE__ */ new Map()), y(this, _, 0);
|
|
562
289
|
}
|
|
563
290
|
mount() {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
})),
|
|
567
|
-
|
|
291
|
+
J(this, _)._++, l(this, _) === 1 && (y(this, H, Tt.subscribe(async (e) => {
|
|
292
|
+
e && (await this.resumePausedMutations(), l(this, x).onFocus());
|
|
293
|
+
})), y(this, U, ke.subscribe(async (e) => {
|
|
294
|
+
e && (await this.resumePausedMutations(), l(this, x).onOnline());
|
|
568
295
|
})));
|
|
569
296
|
}
|
|
570
297
|
unmount() {
|
|
571
|
-
var
|
|
572
|
-
|
|
298
|
+
var e, t;
|
|
299
|
+
J(this, _)._--, l(this, _) === 0 && ((e = l(this, H)) == null || e.call(this), y(this, H, void 0), (t = l(this, U)) == null || t.call(this), y(this, U, void 0));
|
|
573
300
|
}
|
|
574
|
-
isFetching(
|
|
575
|
-
return l(this,
|
|
301
|
+
isFetching(e) {
|
|
302
|
+
return l(this, x).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
576
303
|
}
|
|
577
|
-
isMutating(
|
|
578
|
-
return l(this,
|
|
304
|
+
isMutating(e) {
|
|
305
|
+
return l(this, I).findAll({ ...e, status: "pending" }).length;
|
|
579
306
|
}
|
|
580
|
-
getQueryData(
|
|
307
|
+
getQueryData(e) {
|
|
581
308
|
var r;
|
|
582
|
-
const
|
|
583
|
-
return (r = l(this,
|
|
309
|
+
const t = this.defaultQueryOptions({ queryKey: e });
|
|
310
|
+
return (r = l(this, x).get(t.queryHash)) == null ? void 0 : r.state.data;
|
|
584
311
|
}
|
|
585
|
-
ensureQueryData(
|
|
586
|
-
const
|
|
587
|
-
if (
|
|
588
|
-
return this.fetchQuery(
|
|
312
|
+
ensureQueryData(e) {
|
|
313
|
+
const t = this.getQueryData(e.queryKey);
|
|
314
|
+
if (t === void 0)
|
|
315
|
+
return this.fetchQuery(e);
|
|
589
316
|
{
|
|
590
|
-
const r = this.defaultQueryOptions(
|
|
591
|
-
return
|
|
317
|
+
const r = this.defaultQueryOptions(e), s = l(this, x).build(this, r);
|
|
318
|
+
return e.revalidateIfStale && s.isStaleByTime(Ae(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(t);
|
|
592
319
|
}
|
|
593
320
|
}
|
|
594
|
-
getQueriesData(
|
|
595
|
-
return l(this,
|
|
321
|
+
getQueriesData(e) {
|
|
322
|
+
return l(this, x).findAll(e).map(({ queryKey: t, state: r }) => {
|
|
596
323
|
const s = r.data;
|
|
597
|
-
return [
|
|
324
|
+
return [t, s];
|
|
598
325
|
});
|
|
599
326
|
}
|
|
600
|
-
setQueryData(
|
|
601
|
-
const s = this.defaultQueryOptions({ queryKey:
|
|
327
|
+
setQueryData(e, t, r) {
|
|
328
|
+
const s = this.defaultQueryOptions({ queryKey: e }), n = l(this, x).get(
|
|
602
329
|
s.queryHash
|
|
603
|
-
),
|
|
604
|
-
if (
|
|
605
|
-
return l(this,
|
|
330
|
+
), o = n == null ? void 0 : n.state.data, i = _t(t, o);
|
|
331
|
+
if (i !== void 0)
|
|
332
|
+
return l(this, x).build(this, s).setData(i, { ...r, manual: !0 });
|
|
606
333
|
}
|
|
607
|
-
setQueriesData(
|
|
608
|
-
return
|
|
609
|
-
() => l(this,
|
|
334
|
+
setQueriesData(e, t, r) {
|
|
335
|
+
return w.batch(
|
|
336
|
+
() => l(this, x).findAll(e).map(({ queryKey: s }) => [
|
|
610
337
|
s,
|
|
611
|
-
this.setQueryData(s,
|
|
338
|
+
this.setQueryData(s, t, r)
|
|
612
339
|
])
|
|
613
340
|
);
|
|
614
341
|
}
|
|
615
|
-
getQueryState(
|
|
342
|
+
getQueryState(e) {
|
|
616
343
|
var r;
|
|
617
|
-
const
|
|
618
|
-
return (r = l(this,
|
|
619
|
-
}
|
|
620
|
-
removeQueries(
|
|
621
|
-
const
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
344
|
+
const t = this.defaultQueryOptions({ queryKey: e });
|
|
345
|
+
return (r = l(this, x).get(t.queryHash)) == null ? void 0 : r.state;
|
|
346
|
+
}
|
|
347
|
+
removeQueries(e) {
|
|
348
|
+
const t = l(this, x);
|
|
349
|
+
w.batch(() => {
|
|
350
|
+
t.findAll(e).forEach((r) => {
|
|
351
|
+
t.remove(r);
|
|
625
352
|
});
|
|
626
353
|
});
|
|
627
354
|
}
|
|
628
|
-
resetQueries(
|
|
629
|
-
const r = l(this,
|
|
355
|
+
resetQueries(e, t) {
|
|
356
|
+
const r = l(this, x), s = {
|
|
630
357
|
type: "active",
|
|
631
|
-
...
|
|
358
|
+
...e
|
|
632
359
|
};
|
|
633
|
-
return
|
|
360
|
+
return w.batch(() => (r.findAll(e).forEach((n) => {
|
|
634
361
|
n.reset();
|
|
635
|
-
}), this.refetchQueries(s,
|
|
362
|
+
}), this.refetchQueries(s, t)));
|
|
636
363
|
}
|
|
637
|
-
cancelQueries(
|
|
638
|
-
const r = { revert: !0, ...
|
|
639
|
-
() => l(this,
|
|
364
|
+
cancelQueries(e = {}, t = {}) {
|
|
365
|
+
const r = { revert: !0, ...t }, s = w.batch(
|
|
366
|
+
() => l(this, x).findAll(e).map((n) => n.cancel(r))
|
|
640
367
|
);
|
|
641
|
-
return Promise.all(s).then(
|
|
368
|
+
return Promise.all(s).then(O).catch(O);
|
|
642
369
|
}
|
|
643
|
-
invalidateQueries(
|
|
644
|
-
return
|
|
645
|
-
if (l(this,
|
|
370
|
+
invalidateQueries(e = {}, t = {}) {
|
|
371
|
+
return w.batch(() => {
|
|
372
|
+
if (l(this, x).findAll(e).forEach((s) => {
|
|
646
373
|
s.invalidate();
|
|
647
|
-
}),
|
|
374
|
+
}), e.refetchType === "none")
|
|
648
375
|
return Promise.resolve();
|
|
649
376
|
const r = {
|
|
650
|
-
...
|
|
651
|
-
type:
|
|
377
|
+
...e,
|
|
378
|
+
type: e.refetchType ?? e.type ?? "active"
|
|
652
379
|
};
|
|
653
|
-
return this.refetchQueries(r,
|
|
380
|
+
return this.refetchQueries(r, t);
|
|
654
381
|
});
|
|
655
382
|
}
|
|
656
|
-
refetchQueries(
|
|
383
|
+
refetchQueries(e = {}, t) {
|
|
657
384
|
const r = {
|
|
658
|
-
...
|
|
659
|
-
cancelRefetch: (
|
|
660
|
-
}, s =
|
|
661
|
-
() => l(this,
|
|
662
|
-
let
|
|
663
|
-
return r.throwOnError || (
|
|
385
|
+
...t,
|
|
386
|
+
cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
|
|
387
|
+
}, s = w.batch(
|
|
388
|
+
() => l(this, x).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
|
|
389
|
+
let o = n.fetch(void 0, r);
|
|
390
|
+
return r.throwOnError || (o = o.catch(O)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
664
391
|
})
|
|
665
392
|
);
|
|
666
|
-
return Promise.all(s).then(
|
|
393
|
+
return Promise.all(s).then(O);
|
|
667
394
|
}
|
|
668
|
-
fetchQuery(
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
const r = l(this,
|
|
395
|
+
fetchQuery(e) {
|
|
396
|
+
const t = this.defaultQueryOptions(e);
|
|
397
|
+
t.retry === void 0 && (t.retry = !1);
|
|
398
|
+
const r = l(this, x).build(this, t);
|
|
672
399
|
return r.isStaleByTime(
|
|
673
|
-
|
|
674
|
-
) ? r.fetch(
|
|
400
|
+
Ae(t.staleTime, r)
|
|
401
|
+
) ? r.fetch(t) : Promise.resolve(r.state.data);
|
|
675
402
|
}
|
|
676
|
-
prefetchQuery(
|
|
677
|
-
return this.fetchQuery(
|
|
403
|
+
prefetchQuery(e) {
|
|
404
|
+
return this.fetchQuery(e).then(O).catch(O);
|
|
678
405
|
}
|
|
679
|
-
fetchInfiniteQuery(
|
|
680
|
-
return
|
|
406
|
+
fetchInfiniteQuery(e) {
|
|
407
|
+
return e.behavior = Re(e.pages), this.fetchQuery(e);
|
|
681
408
|
}
|
|
682
|
-
prefetchInfiniteQuery(
|
|
683
|
-
return this.fetchInfiniteQuery(
|
|
409
|
+
prefetchInfiniteQuery(e) {
|
|
410
|
+
return this.fetchInfiniteQuery(e).then(O).catch(O);
|
|
684
411
|
}
|
|
685
|
-
ensureInfiniteQueryData(
|
|
686
|
-
return
|
|
412
|
+
ensureInfiniteQueryData(e) {
|
|
413
|
+
return e.behavior = Re(e.pages), this.ensureQueryData(e);
|
|
687
414
|
}
|
|
688
415
|
resumePausedMutations() {
|
|
689
|
-
return
|
|
416
|
+
return ke.isOnline() ? l(this, I).resumePausedMutations() : Promise.resolve();
|
|
690
417
|
}
|
|
691
418
|
getQueryCache() {
|
|
692
|
-
return l(this,
|
|
419
|
+
return l(this, x);
|
|
693
420
|
}
|
|
694
421
|
getMutationCache() {
|
|
695
|
-
return l(this,
|
|
422
|
+
return l(this, I);
|
|
696
423
|
}
|
|
697
424
|
getDefaultOptions() {
|
|
698
|
-
return l(this,
|
|
425
|
+
return l(this, T);
|
|
699
426
|
}
|
|
700
|
-
setDefaultOptions(
|
|
701
|
-
|
|
427
|
+
setDefaultOptions(e) {
|
|
428
|
+
y(this, T, e);
|
|
702
429
|
}
|
|
703
|
-
setQueryDefaults(
|
|
704
|
-
l(this,
|
|
705
|
-
queryKey:
|
|
706
|
-
defaultOptions:
|
|
430
|
+
setQueryDefaults(e, t) {
|
|
431
|
+
l(this, B).set(De(e), {
|
|
432
|
+
queryKey: e,
|
|
433
|
+
defaultOptions: t
|
|
707
434
|
});
|
|
708
435
|
}
|
|
709
|
-
getQueryDefaults(
|
|
710
|
-
const
|
|
436
|
+
getQueryDefaults(e) {
|
|
437
|
+
const t = [...l(this, B).values()];
|
|
711
438
|
let r = {};
|
|
712
|
-
return
|
|
713
|
-
|
|
439
|
+
return t.forEach((s) => {
|
|
440
|
+
Oe(e, s.queryKey) && (r = { ...r, ...s.defaultOptions });
|
|
714
441
|
}), r;
|
|
715
442
|
}
|
|
716
|
-
setMutationDefaults(
|
|
717
|
-
l(this,
|
|
718
|
-
mutationKey:
|
|
719
|
-
defaultOptions:
|
|
443
|
+
setMutationDefaults(e, t) {
|
|
444
|
+
l(this, z).set(De(e), {
|
|
445
|
+
mutationKey: e,
|
|
446
|
+
defaultOptions: t
|
|
720
447
|
});
|
|
721
448
|
}
|
|
722
|
-
getMutationDefaults(
|
|
723
|
-
const
|
|
449
|
+
getMutationDefaults(e) {
|
|
450
|
+
const t = [...l(this, z).values()];
|
|
724
451
|
let r = {};
|
|
725
|
-
return
|
|
726
|
-
|
|
452
|
+
return t.forEach((s) => {
|
|
453
|
+
Oe(e, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
|
|
727
454
|
}), r;
|
|
728
455
|
}
|
|
729
|
-
defaultQueryOptions(
|
|
730
|
-
if (
|
|
731
|
-
return
|
|
732
|
-
const
|
|
733
|
-
...l(this,
|
|
734
|
-
...this.getQueryDefaults(
|
|
735
|
-
...
|
|
456
|
+
defaultQueryOptions(e) {
|
|
457
|
+
if (e._defaulted)
|
|
458
|
+
return e;
|
|
459
|
+
const t = {
|
|
460
|
+
...l(this, T).queries,
|
|
461
|
+
...this.getQueryDefaults(e.queryKey),
|
|
462
|
+
...e,
|
|
736
463
|
_defaulted: !0
|
|
737
464
|
};
|
|
738
|
-
return
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
)),
|
|
742
|
-
}
|
|
743
|
-
defaultMutationOptions(
|
|
744
|
-
return
|
|
745
|
-
...l(this,
|
|
746
|
-
...(
|
|
747
|
-
...
|
|
465
|
+
return t.queryHash || (t.queryHash = Ue(
|
|
466
|
+
t.queryKey,
|
|
467
|
+
t
|
|
468
|
+
)), 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.enabled !== !0 && t.queryFn === Ft && (t.enabled = !1), t;
|
|
469
|
+
}
|
|
470
|
+
defaultMutationOptions(e) {
|
|
471
|
+
return e != null && e._defaulted ? e : {
|
|
472
|
+
...l(this, T).mutations,
|
|
473
|
+
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
474
|
+
...e,
|
|
748
475
|
_defaulted: !0
|
|
749
476
|
};
|
|
750
477
|
}
|
|
751
478
|
clear() {
|
|
752
|
-
l(this,
|
|
479
|
+
l(this, x).clear(), l(this, I).clear();
|
|
753
480
|
}
|
|
754
|
-
},
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
481
|
+
}, x = new WeakMap(), I = new WeakMap(), T = new WeakMap(), B = new WeakMap(), z = new WeakMap(), _ = new WeakMap(), H = new WeakMap(), U = new WeakMap(), Le);
|
|
482
|
+
function Dr(e) {
|
|
483
|
+
return e;
|
|
484
|
+
}
|
|
485
|
+
function Te(e, t, r) {
|
|
486
|
+
var u, d;
|
|
487
|
+
if (typeof t != "object" || t === null)
|
|
488
|
+
return;
|
|
489
|
+
const s = e.getMutationCache(), n = e.getQueryCache(), o = ((u = r == null ? void 0 : r.defaultOptions) == null ? void 0 : u.deserializeData) ?? ((d = e.getDefaultOptions().hydrate) == null ? void 0 : d.deserializeData) ?? Dr, i = t.mutations || [], c = t.queries || [];
|
|
490
|
+
i.forEach(({ state: p, ...f }) => {
|
|
491
|
+
var h, g;
|
|
492
|
+
s.build(
|
|
493
|
+
e,
|
|
494
|
+
{
|
|
495
|
+
...(h = e.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
|
|
496
|
+
...(g = r == null ? void 0 : r.defaultOptions) == null ? void 0 : g.mutations,
|
|
497
|
+
...f
|
|
498
|
+
},
|
|
499
|
+
p
|
|
500
|
+
);
|
|
501
|
+
}), c.forEach(({ queryKey: p, state: f, queryHash: h, meta: g, promise: v }) => {
|
|
502
|
+
var W, $;
|
|
503
|
+
let m = n.get(h);
|
|
504
|
+
const E = f.data === void 0 ? f.data : o(f.data);
|
|
505
|
+
if (m) {
|
|
506
|
+
if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
|
|
507
|
+
const { fetchStatus: b, ...P } = f;
|
|
508
|
+
m.setState({
|
|
509
|
+
...P,
|
|
510
|
+
data: E
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
} else
|
|
514
|
+
m = n.build(
|
|
515
|
+
e,
|
|
516
|
+
{
|
|
517
|
+
...(W = e.getDefaultOptions().hydrate) == null ? void 0 : W.queries,
|
|
518
|
+
...($ = r == null ? void 0 : r.defaultOptions) == null ? void 0 : $.queries,
|
|
519
|
+
queryKey: p,
|
|
520
|
+
queryHash: h,
|
|
521
|
+
meta: g
|
|
522
|
+
},
|
|
523
|
+
// Reset fetch status to idle to avoid
|
|
524
|
+
// query being stuck in fetching state upon hydration
|
|
525
|
+
{
|
|
526
|
+
...f,
|
|
527
|
+
data: E,
|
|
528
|
+
fetchStatus: "idle"
|
|
529
|
+
}
|
|
530
|
+
);
|
|
531
|
+
if (v) {
|
|
532
|
+
const b = Promise.resolve(v).then(o);
|
|
533
|
+
m.fetch(void 0, { initialPromise: b });
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
var Or = ({
|
|
538
|
+
children: e,
|
|
539
|
+
options: t = {},
|
|
540
|
+
state: r,
|
|
541
|
+
queryClient: s
|
|
758
542
|
}) => {
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
543
|
+
const n = Qt(s), [o, i] = G.useState(), c = G.useRef(t);
|
|
544
|
+
return c.current = t, G.useMemo(() => {
|
|
545
|
+
if (r) {
|
|
546
|
+
if (typeof r != "object")
|
|
547
|
+
return;
|
|
548
|
+
const u = n.getQueryCache(), d = r.queries || [], p = [], f = [];
|
|
549
|
+
for (const h of d) {
|
|
550
|
+
const g = u.get(h.queryHash);
|
|
551
|
+
if (!g)
|
|
552
|
+
p.push(h);
|
|
553
|
+
else {
|
|
554
|
+
const v = h.state.dataUpdatedAt > g.state.dataUpdatedAt, m = o == null ? void 0 : o.find(
|
|
555
|
+
(E) => E.queryHash === h.queryHash
|
|
556
|
+
);
|
|
557
|
+
v && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
p.length > 0 && Te(n, { queries: p }, c.current), f.length > 0 && i(
|
|
561
|
+
(h) => h ? [...h, ...f] : f
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
}, [n, o, r]), G.useEffect(() => {
|
|
565
|
+
o && (Te(n, { queries: o }, c.current), i(void 0));
|
|
566
|
+
}, [n, o]), e;
|
|
567
|
+
}, Y = {};
|
|
568
|
+
const Mr = /* @__PURE__ */ pe(Wt), Rr = /* @__PURE__ */ pe(Xt), Ir = /* @__PURE__ */ pe(St);
|
|
569
|
+
Object.defineProperty(Y, "__esModule", { value: !0 });
|
|
570
|
+
var Tr = Ve, A = Mr, je = Rr, M = Ir;
|
|
571
|
+
function _r(e) {
|
|
572
|
+
if (e && e.__esModule) return e;
|
|
573
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
574
|
+
return e && Object.keys(e).forEach(function(r) {
|
|
575
|
+
if (r !== "default") {
|
|
576
|
+
var s = Object.getOwnPropertyDescriptor(e, r);
|
|
577
|
+
Object.defineProperty(t, r, s.get ? s : {
|
|
578
|
+
enumerable: !0,
|
|
579
|
+
get: function() {
|
|
580
|
+
return e[r];
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
}), t.default = e, Object.freeze(t);
|
|
585
|
+
}
|
|
586
|
+
var C = /* @__PURE__ */ _r(Tr);
|
|
587
|
+
function Fr({
|
|
588
|
+
basename: e,
|
|
589
|
+
children: t,
|
|
590
|
+
location: r = "/",
|
|
591
|
+
future: s
|
|
592
|
+
}) {
|
|
593
|
+
typeof r == "string" && (r = M.parsePath(r));
|
|
594
|
+
let n = A.Action.Pop, o = {
|
|
595
|
+
pathname: r.pathname || "/",
|
|
596
|
+
search: r.search || "",
|
|
597
|
+
hash: r.hash || "",
|
|
598
|
+
state: r.state != null ? r.state : null,
|
|
599
|
+
key: r.key || "default"
|
|
600
|
+
}, i = at();
|
|
601
|
+
return /* @__PURE__ */ C.createElement(M.Router, {
|
|
602
|
+
basename: e,
|
|
603
|
+
children: t,
|
|
604
|
+
location: o,
|
|
605
|
+
navigationType: n,
|
|
606
|
+
navigator: i,
|
|
607
|
+
future: s,
|
|
608
|
+
static: !0
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
function Qr({
|
|
612
|
+
context: e,
|
|
613
|
+
router: t,
|
|
614
|
+
hydrate: r = !0,
|
|
615
|
+
nonce: s
|
|
616
|
+
}) {
|
|
617
|
+
t && e || (process.env.NODE_ENV !== "production" ? A.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : A.UNSAFE_invariant(!1));
|
|
618
|
+
let n = {
|
|
619
|
+
router: t,
|
|
620
|
+
navigator: at(),
|
|
621
|
+
static: !0,
|
|
622
|
+
staticContext: e,
|
|
623
|
+
basename: e.basename || "/"
|
|
624
|
+
}, o = /* @__PURE__ */ new Map(), i = "";
|
|
625
|
+
if (r !== !1) {
|
|
626
|
+
let u = {
|
|
627
|
+
loaderData: e.loaderData,
|
|
628
|
+
actionData: e.actionData,
|
|
629
|
+
errors: Lr(e.errors)
|
|
630
|
+
};
|
|
631
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Kr(JSON.stringify(JSON.stringify(u)))});`;
|
|
632
|
+
}
|
|
633
|
+
let {
|
|
634
|
+
state: c
|
|
635
|
+
} = n.router;
|
|
636
|
+
return /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement(M.UNSAFE_DataRouterContext.Provider, {
|
|
637
|
+
value: n
|
|
638
|
+
}, /* @__PURE__ */ C.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
|
|
639
|
+
value: c
|
|
640
|
+
}, /* @__PURE__ */ C.createElement(M.UNSAFE_FetchersContext.Provider, {
|
|
641
|
+
value: o
|
|
642
|
+
}, /* @__PURE__ */ C.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
|
|
643
|
+
value: {
|
|
644
|
+
isTransitioning: !1
|
|
645
|
+
}
|
|
646
|
+
}, /* @__PURE__ */ C.createElement(M.Router, {
|
|
647
|
+
basename: n.basename,
|
|
648
|
+
location: c.location,
|
|
649
|
+
navigationType: c.historyAction,
|
|
650
|
+
navigator: n.navigator,
|
|
651
|
+
static: n.static,
|
|
652
|
+
future: {
|
|
653
|
+
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
654
|
+
}
|
|
655
|
+
}, /* @__PURE__ */ C.createElement(qr, {
|
|
656
|
+
routes: t.routes,
|
|
657
|
+
future: t.future,
|
|
658
|
+
state: c
|
|
659
|
+
})))))), i ? /* @__PURE__ */ C.createElement("script", {
|
|
660
|
+
suppressHydrationWarning: !0,
|
|
661
|
+
nonce: s,
|
|
662
|
+
dangerouslySetInnerHTML: {
|
|
663
|
+
__html: i
|
|
664
|
+
}
|
|
665
|
+
}) : null);
|
|
666
|
+
}
|
|
667
|
+
function qr({
|
|
668
|
+
routes: e,
|
|
669
|
+
future: t,
|
|
670
|
+
state: r
|
|
671
|
+
}) {
|
|
672
|
+
return je.UNSAFE_useRoutesImpl(e, void 0, r, t);
|
|
673
|
+
}
|
|
674
|
+
function Lr(e) {
|
|
675
|
+
if (!e) return null;
|
|
676
|
+
let t = Object.entries(e), r = {};
|
|
677
|
+
for (let [s, n] of t)
|
|
678
|
+
A.isRouteErrorResponse(n) ? r[s] = {
|
|
679
|
+
...n,
|
|
680
|
+
__type: "RouteErrorResponse"
|
|
681
|
+
} : n instanceof Error ? r[s] = {
|
|
682
|
+
message: n.message,
|
|
683
|
+
__type: "Error",
|
|
684
|
+
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
685
|
+
// can re-create the same type during hydration.
|
|
686
|
+
...n.name !== "Error" ? {
|
|
687
|
+
__subType: n.name
|
|
688
|
+
} : {}
|
|
689
|
+
} : r[s] = n;
|
|
690
|
+
return r;
|
|
691
|
+
}
|
|
692
|
+
function at() {
|
|
693
|
+
return {
|
|
694
|
+
createHref: st,
|
|
695
|
+
encodeLocation: nt,
|
|
696
|
+
push(e) {
|
|
697
|
+
throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
|
|
698
|
+
},
|
|
699
|
+
replace(e) {
|
|
700
|
+
throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
|
|
701
|
+
},
|
|
702
|
+
go(e) {
|
|
703
|
+
throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
|
|
704
|
+
},
|
|
705
|
+
back() {
|
|
706
|
+
throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
|
|
707
|
+
},
|
|
708
|
+
forward() {
|
|
709
|
+
throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
function Br(e, t) {
|
|
714
|
+
return A.createStaticHandler(e, {
|
|
715
|
+
...t,
|
|
716
|
+
mapRouteProperties: je.UNSAFE_mapRouteProperties
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
function zr(e, t, r = {}) {
|
|
720
|
+
let s = {}, n = A.UNSAFE_convertRoutesToDataRoutes(e, je.UNSAFE_mapRouteProperties, void 0, s), o = t.matches.map((c) => {
|
|
721
|
+
let u = s[c.route.id] || c.route;
|
|
722
|
+
return {
|
|
723
|
+
...c,
|
|
724
|
+
route: u
|
|
725
|
+
};
|
|
726
|
+
}), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
|
|
727
|
+
return {
|
|
728
|
+
get basename() {
|
|
729
|
+
return t.basename;
|
|
730
|
+
},
|
|
731
|
+
get future() {
|
|
732
|
+
var c, u;
|
|
733
|
+
return {
|
|
734
|
+
v7_fetcherPersist: !1,
|
|
735
|
+
v7_normalizeFormMethod: !1,
|
|
736
|
+
v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
|
|
737
|
+
v7_prependBasename: !1,
|
|
738
|
+
v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
|
|
739
|
+
v7_skipActionErrorRevalidation: !1
|
|
740
|
+
};
|
|
741
|
+
},
|
|
742
|
+
get state() {
|
|
743
|
+
return {
|
|
744
|
+
historyAction: A.Action.Pop,
|
|
745
|
+
location: t.location,
|
|
746
|
+
matches: o,
|
|
747
|
+
loaderData: t.loaderData,
|
|
748
|
+
actionData: t.actionData,
|
|
749
|
+
errors: t.errors,
|
|
750
|
+
initialized: !0,
|
|
751
|
+
navigation: A.IDLE_NAVIGATION,
|
|
752
|
+
restoreScrollPosition: null,
|
|
753
|
+
preventScrollReset: !1,
|
|
754
|
+
revalidation: "idle",
|
|
755
|
+
fetchers: /* @__PURE__ */ new Map(),
|
|
756
|
+
blockers: /* @__PURE__ */ new Map()
|
|
757
|
+
};
|
|
758
|
+
},
|
|
759
|
+
get routes() {
|
|
760
|
+
return n;
|
|
761
|
+
},
|
|
762
|
+
get window() {
|
|
763
|
+
},
|
|
764
|
+
initialize() {
|
|
765
|
+
throw i("initialize");
|
|
766
|
+
},
|
|
767
|
+
subscribe() {
|
|
768
|
+
throw i("subscribe");
|
|
769
|
+
},
|
|
770
|
+
enableScrollRestoration() {
|
|
771
|
+
throw i("enableScrollRestoration");
|
|
772
|
+
},
|
|
773
|
+
navigate() {
|
|
774
|
+
throw i("navigate");
|
|
775
|
+
},
|
|
776
|
+
fetch() {
|
|
777
|
+
throw i("fetch");
|
|
778
|
+
},
|
|
779
|
+
revalidate() {
|
|
780
|
+
throw i("revalidate");
|
|
781
|
+
},
|
|
782
|
+
createHref: st,
|
|
783
|
+
encodeLocation: nt,
|
|
784
|
+
getFetcher() {
|
|
785
|
+
return A.IDLE_FETCHER;
|
|
786
|
+
},
|
|
787
|
+
deleteFetcher() {
|
|
788
|
+
throw i("deleteFetcher");
|
|
789
|
+
},
|
|
790
|
+
dispose() {
|
|
791
|
+
throw i("dispose");
|
|
792
|
+
},
|
|
793
|
+
getBlocker() {
|
|
794
|
+
return A.IDLE_BLOCKER;
|
|
795
|
+
},
|
|
796
|
+
deleteBlocker() {
|
|
797
|
+
throw i("deleteBlocker");
|
|
798
|
+
},
|
|
799
|
+
patchRoutes() {
|
|
800
|
+
throw i("patchRoutes");
|
|
801
|
+
},
|
|
802
|
+
_internalFetchControllers: /* @__PURE__ */ new Map(),
|
|
803
|
+
_internalActiveDeferreds: /* @__PURE__ */ new Map(),
|
|
804
|
+
_internalSetRoutes() {
|
|
805
|
+
throw i("_internalSetRoutes");
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
function st(e) {
|
|
810
|
+
return typeof e == "string" ? e : M.createPath(e);
|
|
811
|
+
}
|
|
812
|
+
function nt(e) {
|
|
813
|
+
let t = typeof e == "string" ? e : M.createPath(e);
|
|
814
|
+
t = t.replace(/ $/, "%20");
|
|
815
|
+
let r = Hr.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
816
|
+
return {
|
|
817
|
+
pathname: r.pathname,
|
|
818
|
+
search: r.search,
|
|
819
|
+
hash: r.hash
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
const Hr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ur = {
|
|
823
|
+
"&": "\\u0026",
|
|
824
|
+
">": "\\u003e",
|
|
825
|
+
"<": "\\u003c",
|
|
826
|
+
"\u2028": "\\u2028",
|
|
827
|
+
"\u2029": "\\u2029"
|
|
828
|
+
}, $r = /[&><\u2028\u2029]/g;
|
|
829
|
+
function Kr(e) {
|
|
830
|
+
return e.replace($r, (t) => Ur[t]);
|
|
831
|
+
}
|
|
832
|
+
Y.StaticRouter = Fr;
|
|
833
|
+
var Vr = Y.StaticRouterProvider = Qr;
|
|
834
|
+
Y.createStaticHandler = Br;
|
|
835
|
+
Y.createStaticRouter = zr;
|
|
836
|
+
const Zr = ({
|
|
837
|
+
router: e,
|
|
838
|
+
hydrate: t = !1
|
|
839
|
+
}) => {
|
|
840
|
+
const [r] = F(
|
|
841
|
+
() => new Ar({
|
|
842
|
+
defaultOptions: {
|
|
843
|
+
queries: {
|
|
844
|
+
staleTime: 3e5
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
})
|
|
848
|
+
);
|
|
849
|
+
return /* @__PURE__ */ a.jsx(Ze, { children: /* @__PURE__ */ a.jsx($e, { client: r, children: /* @__PURE__ */ a.jsx(Or, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Be, { children: /* @__PURE__ */ a.jsx(le.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
|
|
850
|
+
Nt,
|
|
851
|
+
{
|
|
852
|
+
router: e,
|
|
853
|
+
future: { v7_startTransition: !0 }
|
|
854
|
+
}
|
|
855
|
+
) }) }) }) }) });
|
|
856
|
+
}, Yr = ({
|
|
857
|
+
router: e,
|
|
858
|
+
context: t,
|
|
859
|
+
queryClient: r,
|
|
860
|
+
helmetContext: s
|
|
861
|
+
}) => /* @__PURE__ */ a.jsx(Ze, { children: /* @__PURE__ */ a.jsx($e, { client: r, children: /* @__PURE__ */ a.jsx(Be, { context: s, children: /* @__PURE__ */ a.jsx(Vr, { router: e, context: t }) }) }) });
|
|
862
|
+
var ue = { exports: {} };
|
|
863
|
+
(function(e, t) {
|
|
864
|
+
(function(r, s) {
|
|
865
|
+
s(t, Ve);
|
|
866
|
+
})(Yt, function(r, s) {
|
|
867
|
+
const n = {
|
|
868
|
+
delay: 500,
|
|
869
|
+
minDuration: 200,
|
|
870
|
+
ssr: !0
|
|
871
|
+
};
|
|
872
|
+
function o() {
|
|
873
|
+
const [c, u] = s.useState(!0);
|
|
874
|
+
return s.useEffect(() => {
|
|
875
|
+
u(!1);
|
|
876
|
+
}, []), c;
|
|
877
|
+
}
|
|
878
|
+
function i(c, u) {
|
|
879
|
+
u = Object.assign({}, n, u);
|
|
880
|
+
const d = o() && u.ssr, p = d && c ? "DISPLAY" : "IDLE", [f, h] = s.useState(p), g = s.useRef(null);
|
|
881
|
+
return s.useEffect(() => {
|
|
882
|
+
if (c && (f === "IDLE" || d)) {
|
|
883
|
+
clearTimeout(g.current);
|
|
884
|
+
const v = d ? 0 : u.delay;
|
|
885
|
+
g.current = setTimeout(() => {
|
|
886
|
+
if (!c)
|
|
887
|
+
return h("IDLE");
|
|
888
|
+
g.current = setTimeout(() => {
|
|
889
|
+
h("EXPIRE");
|
|
890
|
+
}, u.minDuration), h("DISPLAY");
|
|
891
|
+
}, v), d || h("DELAY");
|
|
892
|
+
}
|
|
893
|
+
!c && f !== "DISPLAY" && (clearTimeout(g.current), h("IDLE"));
|
|
894
|
+
}, [c, f, u.delay, u.minDuration, d]), s.useEffect(() => () => clearTimeout(g.current), []), f === "DISPLAY" || f === "EXPIRE";
|
|
895
|
+
}
|
|
896
|
+
r.defaultOptions = n, r.useSpinDelay = i;
|
|
897
|
+
});
|
|
898
|
+
})(ue, ue.exports);
|
|
899
|
+
var Wr = ue.exports;
|
|
900
|
+
const Xr = ({
|
|
901
|
+
category: e,
|
|
902
|
+
level: t
|
|
903
|
+
}) => {
|
|
904
|
+
var h, g;
|
|
905
|
+
const r = qt(e), [s, n] = F(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, c = !!(!o || !i || r), [u, d] = F(c), p = Jt(((h = e.link) == null ? void 0 : h.id) ?? "");
|
|
906
|
+
L(() => {
|
|
907
|
+
r && d(!0);
|
|
763
908
|
}, [r]);
|
|
764
|
-
const
|
|
909
|
+
const f = o && /* @__PURE__ */ a.jsx(
|
|
765
910
|
"button",
|
|
766
911
|
{
|
|
767
912
|
type: "button",
|
|
768
|
-
onClick: (
|
|
769
|
-
|
|
913
|
+
onClick: (v) => {
|
|
914
|
+
v.preventDefault(), d((m) => !m), n(!0);
|
|
770
915
|
},
|
|
771
916
|
children: /* @__PURE__ */ a.jsx(
|
|
772
|
-
|
|
917
|
+
Gt,
|
|
773
918
|
{
|
|
774
919
|
size: 16,
|
|
775
|
-
className:
|
|
920
|
+
className: R(
|
|
776
921
|
s && "transition",
|
|
777
922
|
"shrink-0 group-data-[state=open]:rotate-90"
|
|
778
923
|
)
|
|
@@ -781,86 +926,86 @@ const zr = ({
|
|
|
781
926
|
}
|
|
782
927
|
);
|
|
783
928
|
return /* @__PURE__ */ a.jsxs(
|
|
784
|
-
|
|
929
|
+
ie.Root,
|
|
785
930
|
{
|
|
786
931
|
className: "flex flex-col",
|
|
787
|
-
defaultOpen:
|
|
788
|
-
open:
|
|
789
|
-
onOpenChange: () =>
|
|
932
|
+
defaultOpen: c,
|
|
933
|
+
open: u,
|
|
934
|
+
onOpenChange: () => d(!0),
|
|
790
935
|
children: [
|
|
791
|
-
/* @__PURE__ */ a.jsx(
|
|
936
|
+
/* @__PURE__ */ a.jsx(ie.Trigger, { className: "group", asChild: !0, disabled: !o, children: /* @__PURE__ */ a.jsxs(
|
|
792
937
|
"div",
|
|
793
938
|
{
|
|
794
939
|
onClick: () => n(!0),
|
|
795
|
-
className:
|
|
940
|
+
className: V({
|
|
796
941
|
isActive: !1,
|
|
797
|
-
isTopLevel:
|
|
942
|
+
isTopLevel: t === 0,
|
|
798
943
|
className: [
|
|
799
944
|
"text-start",
|
|
800
|
-
|
|
945
|
+
o ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
801
946
|
]
|
|
802
947
|
}),
|
|
803
948
|
children: [
|
|
804
|
-
|
|
805
|
-
|
|
949
|
+
e.icon && /* @__PURE__ */ a.jsx(
|
|
950
|
+
e.icon,
|
|
806
951
|
{
|
|
807
952
|
size: 16,
|
|
808
|
-
className:
|
|
953
|
+
className: R(
|
|
809
954
|
"align-[-0.125em] -translate-x-1",
|
|
810
|
-
|
|
955
|
+
p && "text-primary"
|
|
811
956
|
)
|
|
812
957
|
}
|
|
813
958
|
),
|
|
814
|
-
((
|
|
815
|
-
|
|
959
|
+
((g = e.link) == null ? void 0 : g.type) === "doc" ? /* @__PURE__ */ a.jsx(
|
|
960
|
+
re,
|
|
816
961
|
{
|
|
817
|
-
to:
|
|
962
|
+
to: q(e.link.id),
|
|
818
963
|
className: "flex-1",
|
|
819
964
|
onClick: () => {
|
|
820
|
-
|
|
965
|
+
p && !u && d(!0);
|
|
821
966
|
},
|
|
822
967
|
children: /* @__PURE__ */ a.jsxs(
|
|
823
968
|
"div",
|
|
824
969
|
{
|
|
825
|
-
className:
|
|
970
|
+
className: R(
|
|
826
971
|
"flex items-center gap-2 justify-between w-full",
|
|
827
|
-
|
|
972
|
+
p ? "text-primary" : "text-foreground/80"
|
|
828
973
|
),
|
|
829
974
|
children: [
|
|
830
|
-
/* @__PURE__ */ a.jsx("div", { className: "truncate", children:
|
|
831
|
-
|
|
975
|
+
/* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
|
|
976
|
+
f
|
|
832
977
|
]
|
|
833
978
|
}
|
|
834
979
|
)
|
|
835
980
|
}
|
|
836
981
|
) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
837
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children:
|
|
838
|
-
|
|
982
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
|
|
983
|
+
f
|
|
839
984
|
] })
|
|
840
985
|
]
|
|
841
986
|
}
|
|
842
987
|
) }),
|
|
843
988
|
/* @__PURE__ */ a.jsx(
|
|
844
|
-
|
|
989
|
+
ie.Content,
|
|
845
990
|
{
|
|
846
|
-
className:
|
|
991
|
+
className: R(
|
|
847
992
|
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
848
993
|
s && "CollapsibleContent"
|
|
849
994
|
),
|
|
850
|
-
children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children:
|
|
851
|
-
|
|
995
|
+
children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
|
|
996
|
+
de,
|
|
852
997
|
{
|
|
853
|
-
level:
|
|
854
|
-
item:
|
|
998
|
+
level: t + 1,
|
|
999
|
+
item: v
|
|
855
1000
|
},
|
|
856
|
-
("id" in
|
|
1001
|
+
("id" in v ? v.id : "") + ("href" in v ? v.href : "") + v.label
|
|
857
1002
|
)) })
|
|
858
1003
|
}
|
|
859
1004
|
)
|
|
860
1005
|
]
|
|
861
1006
|
}
|
|
862
1007
|
);
|
|
863
|
-
},
|
|
1008
|
+
}, V = cr(
|
|
864
1009
|
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
865
1010
|
{
|
|
866
1011
|
variants: {
|
|
@@ -881,155 +1026,155 @@ const zr = ({
|
|
|
881
1026
|
isActive: !1
|
|
882
1027
|
}
|
|
883
1028
|
}
|
|
884
|
-
),
|
|
885
|
-
item:
|
|
886
|
-
level:
|
|
1029
|
+
), it = "data-anchor", de = ({
|
|
1030
|
+
item: e,
|
|
1031
|
+
level: t = 0
|
|
887
1032
|
}) => {
|
|
888
|
-
var n,
|
|
889
|
-
const { activeAnchor: r } =
|
|
890
|
-
switch (
|
|
1033
|
+
var n, o;
|
|
1034
|
+
const { activeAnchor: r } = be(), [s] = Et();
|
|
1035
|
+
switch (e.type) {
|
|
891
1036
|
case "category":
|
|
892
|
-
return /* @__PURE__ */ a.jsx(
|
|
1037
|
+
return /* @__PURE__ */ a.jsx(Xr, { category: e, level: t });
|
|
893
1038
|
case "doc":
|
|
894
1039
|
return /* @__PURE__ */ a.jsxs(
|
|
895
|
-
|
|
1040
|
+
re,
|
|
896
1041
|
{
|
|
897
|
-
className: ({ isActive:
|
|
898
|
-
to:
|
|
1042
|
+
className: ({ isActive: i }) => V({ isActive: i, isTopLevel: t === 0 }),
|
|
1043
|
+
to: q(e.id),
|
|
899
1044
|
children: [
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
/* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title:
|
|
903
|
-
/* @__PURE__ */ a.jsx(
|
|
904
|
-
] }) :
|
|
1045
|
+
e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
1046
|
+
e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1047
|
+
/* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
|
|
1048
|
+
/* @__PURE__ */ a.jsx(ne, { ...e.badge })
|
|
1049
|
+
] }) : e.label
|
|
905
1050
|
]
|
|
906
1051
|
}
|
|
907
1052
|
);
|
|
908
1053
|
case "link":
|
|
909
|
-
return
|
|
910
|
-
|
|
1054
|
+
return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
|
|
1055
|
+
bt,
|
|
911
1056
|
{
|
|
912
|
-
to: { hash:
|
|
913
|
-
[
|
|
914
|
-
className:
|
|
915
|
-
isActive:
|
|
916
|
-
isTopLevel:
|
|
917
|
-
className: ((n =
|
|
1057
|
+
to: { hash: e.href, search: s.toString() },
|
|
1058
|
+
[it]: e.href.slice(1),
|
|
1059
|
+
className: V({
|
|
1060
|
+
isActive: e.href.slice(1) === r,
|
|
1061
|
+
isTopLevel: t === 0,
|
|
1062
|
+
className: ((n = e.badge) == null ? void 0 : n.placement) !== "start" && "justify-between"
|
|
918
1063
|
}),
|
|
919
|
-
children:
|
|
920
|
-
/* @__PURE__ */ a.jsx("span", { className: "truncate", title:
|
|
921
|
-
/* @__PURE__ */ a.jsx(
|
|
922
|
-
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children:
|
|
1064
|
+
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1065
|
+
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
1066
|
+
/* @__PURE__ */ a.jsx(ne, { ...e.badge })
|
|
1067
|
+
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
923
1068
|
}
|
|
924
|
-
) :
|
|
1069
|
+
) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
|
|
925
1070
|
"a",
|
|
926
1071
|
{
|
|
927
|
-
className:
|
|
928
|
-
href:
|
|
1072
|
+
className: V({ isTopLevel: t === 0 }),
|
|
1073
|
+
href: e.href,
|
|
929
1074
|
target: "_blank",
|
|
930
1075
|
rel: "noopener noreferrer",
|
|
931
1076
|
children: [
|
|
932
|
-
/* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children:
|
|
933
|
-
/* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(
|
|
1077
|
+
/* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
1078
|
+
/* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(er, { className: "inline -translate-y-0.5", size: 12 }) })
|
|
934
1079
|
]
|
|
935
1080
|
}
|
|
936
1081
|
) : /* @__PURE__ */ a.jsx(
|
|
937
|
-
|
|
1082
|
+
re,
|
|
938
1083
|
{
|
|
939
|
-
className:
|
|
940
|
-
className: ((
|
|
1084
|
+
className: V({
|
|
1085
|
+
className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
|
|
941
1086
|
}),
|
|
942
|
-
to:
|
|
943
|
-
children:
|
|
944
|
-
/* @__PURE__ */ a.jsx("span", { className: "truncate", title:
|
|
945
|
-
/* @__PURE__ */ a.jsx(
|
|
946
|
-
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children:
|
|
1087
|
+
to: e.href,
|
|
1088
|
+
children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1089
|
+
/* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
1090
|
+
/* @__PURE__ */ a.jsx(ne, { ...e.badge })
|
|
1091
|
+
] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
|
|
947
1092
|
}
|
|
948
1093
|
);
|
|
949
1094
|
}
|
|
950
|
-
},
|
|
951
|
-
if (!
|
|
952
|
-
const r =
|
|
953
|
-
r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) ||
|
|
954
|
-
},
|
|
955
|
-
const
|
|
956
|
-
|
|
957
|
-
if (!
|
|
958
|
-
const r = decodeURIComponent(
|
|
959
|
-
const n = document.getElementById(r),
|
|
960
|
-
return n ? (n.scrollIntoView(),
|
|
1095
|
+
}, Jr = (e, t = { block: "center" }) => {
|
|
1096
|
+
if (!e) return;
|
|
1097
|
+
const r = e.getBoundingClientRect();
|
|
1098
|
+
r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
1099
|
+
}, Gr = () => {
|
|
1100
|
+
const e = ve(), { setActiveAnchor: t } = be();
|
|
1101
|
+
L(() => {
|
|
1102
|
+
if (!e.hash) return;
|
|
1103
|
+
const r = decodeURIComponent(e.hash.split("/")[0].slice(1)), s = () => {
|
|
1104
|
+
const n = document.getElementById(r), o = document.querySelector(`[${it}="${r}"]`);
|
|
1105
|
+
return n ? (n.scrollIntoView(), Jr(o), requestIdleCallback(() => t(r)), !0) : !1;
|
|
961
1106
|
};
|
|
962
1107
|
if (!s()) {
|
|
963
|
-
const n = new MutationObserver((
|
|
964
|
-
s() &&
|
|
1108
|
+
const n = new MutationObserver((o, i) => {
|
|
1109
|
+
s() && i.disconnect();
|
|
965
1110
|
});
|
|
966
1111
|
return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
|
|
967
1112
|
}
|
|
968
|
-
}, [
|
|
969
|
-
},
|
|
970
|
-
const
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
}, [
|
|
1113
|
+
}, [e.hash, t]);
|
|
1114
|
+
}, ea = () => {
|
|
1115
|
+
const e = ve(), t = me(e.pathname);
|
|
1116
|
+
L(() => {
|
|
1117
|
+
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
1118
|
+
}, [e.pathname]);
|
|
974
1119
|
};
|
|
975
|
-
function
|
|
976
|
-
className:
|
|
977
|
-
...
|
|
1120
|
+
function ta({
|
|
1121
|
+
className: e,
|
|
1122
|
+
...t
|
|
978
1123
|
}) {
|
|
979
1124
|
return /* @__PURE__ */ a.jsx(
|
|
980
1125
|
"div",
|
|
981
1126
|
{
|
|
982
|
-
className:
|
|
983
|
-
...
|
|
1127
|
+
className: R("animate-pulse rounded-md bg-muted", e),
|
|
1128
|
+
...t
|
|
984
1129
|
}
|
|
985
1130
|
);
|
|
986
1131
|
}
|
|
987
|
-
const
|
|
1132
|
+
const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", aa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", sa = (e) => "renderSearch" in e && typeof e.renderSearch == "function", na = (e) => "initialize" in e && typeof e.initialize == "function", ia = (e) => "getHead" in e && typeof e.getHead == "function", oa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", la = (e) => "getIdentities" in e && typeof e.getIdentities == "function", _e = {
|
|
988
1133
|
info: "bg-blue-500",
|
|
989
1134
|
note: "bg-gray-500",
|
|
990
1135
|
tip: "bg-green-600",
|
|
991
1136
|
caution: "bg-orange-500",
|
|
992
1137
|
danger: "bg-rose-500"
|
|
993
|
-
},
|
|
994
|
-
const { page:
|
|
995
|
-
if (!(
|
|
1138
|
+
}, ca = () => {
|
|
1139
|
+
const { page: e } = Q(), [t, r] = F(!0);
|
|
1140
|
+
if (!(e != null && e.banner) || !t)
|
|
996
1141
|
return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
997
|
-
const s =
|
|
1142
|
+
const s = e.banner.color && e.banner.color in _e ? _e[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
|
|
998
1143
|
return /* @__PURE__ */ a.jsxs(
|
|
999
1144
|
"div",
|
|
1000
1145
|
{
|
|
1001
|
-
className:
|
|
1146
|
+
className: R(
|
|
1002
1147
|
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
|
|
1003
1148
|
s
|
|
1004
1149
|
),
|
|
1005
1150
|
style: n,
|
|
1006
1151
|
children: [
|
|
1007
|
-
/* @__PURE__ */ a.jsx("div", { className: "w-full", children:
|
|
1008
|
-
|
|
1152
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full", children: e.banner.message }),
|
|
1153
|
+
e.banner.dismissible && /* @__PURE__ */ a.jsx(
|
|
1009
1154
|
"button",
|
|
1010
1155
|
{
|
|
1011
1156
|
type: "button",
|
|
1012
1157
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
1013
1158
|
onClick: () => r(!1),
|
|
1014
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1159
|
+
children: /* @__PURE__ */ a.jsx(tr, { size: 16 })
|
|
1015
1160
|
}
|
|
1016
1161
|
)
|
|
1017
1162
|
]
|
|
1018
1163
|
}
|
|
1019
1164
|
);
|
|
1020
|
-
},
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1023
|
-
if (
|
|
1165
|
+
}, ot = () => {
|
|
1166
|
+
const e = Q(), [t, r] = F(!1), s = Ut(() => r(!1), []);
|
|
1167
|
+
L(() => {
|
|
1168
|
+
if (t)
|
|
1024
1169
|
return;
|
|
1025
|
-
function i
|
|
1026
|
-
|
|
1170
|
+
function o(i) {
|
|
1171
|
+
i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), r(!0));
|
|
1027
1172
|
}
|
|
1028
|
-
return window.addEventListener("keydown",
|
|
1029
|
-
window.removeEventListener("keydown",
|
|
1173
|
+
return window.addEventListener("keydown", o), () => {
|
|
1174
|
+
window.removeEventListener("keydown", o);
|
|
1030
1175
|
};
|
|
1031
|
-
}, [
|
|
1032
|
-
const n =
|
|
1176
|
+
}, [t, r]);
|
|
1177
|
+
const n = e.plugins.find(sa);
|
|
1033
1178
|
return n ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1034
1179
|
/* @__PURE__ */ a.jsxs(
|
|
1035
1180
|
"button",
|
|
@@ -1039,452 +1184,448 @@ const Ur = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems ==
|
|
|
1039
1184
|
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",
|
|
1040
1185
|
children: [
|
|
1041
1186
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
1042
|
-
/* @__PURE__ */ a.jsx(
|
|
1187
|
+
/* @__PURE__ */ a.jsx(rr, { size: 14 }),
|
|
1043
1188
|
"Search"
|
|
1044
1189
|
] }),
|
|
1045
1190
|
/* @__PURE__ */ a.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" })
|
|
1046
1191
|
]
|
|
1047
1192
|
}
|
|
1048
1193
|
),
|
|
1049
|
-
/* @__PURE__ */ a.jsx(
|
|
1050
|
-
isOpen:
|
|
1194
|
+
/* @__PURE__ */ a.jsx(ge, { fallback: null, children: n.renderSearch({
|
|
1195
|
+
isOpen: t,
|
|
1051
1196
|
onClose: s
|
|
1052
1197
|
}) })
|
|
1053
1198
|
] }) : null;
|
|
1054
|
-
},
|
|
1055
|
-
const {
|
|
1056
|
-
return
|
|
1057
|
-
|
|
1058
|
-
var c;
|
|
1059
|
-
const { sidebars: s } = F(), n = We(), i = s[t], o = r ?? (i ? rr(i, (g) => {
|
|
1060
|
-
if (g.type === "doc") return B(g.id);
|
|
1061
|
-
}) : B(t));
|
|
1062
|
-
if (!o)
|
|
1063
|
-
throw new Error(
|
|
1064
|
-
`No links found in top navigation for top navigation '${t}'. Check that the sidebar isn't empty or that a default link set.`
|
|
1065
|
-
);
|
|
1066
|
-
const u = ((c = n.data.topNavItem) == null ? void 0 : c.id) === t;
|
|
1067
|
-
return /* @__PURE__ */ a.jsx(
|
|
1068
|
-
te,
|
|
1199
|
+
}, lt = () => {
|
|
1200
|
+
const { resolvedTheme: e, setTheme: t } = jr(), r = e === "dark" ? ar : sr;
|
|
1201
|
+
return /* @__PURE__ */ a.jsx(ye, { children: /* @__PURE__ */ a.jsx(
|
|
1202
|
+
ce,
|
|
1069
1203
|
{
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
),
|
|
1074
|
-
|
|
1075
|
-
children: e
|
|
1204
|
+
variant: "ghost",
|
|
1205
|
+
"aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
|
|
1206
|
+
className: "p-2.5 -m-2.5 rounded-full",
|
|
1207
|
+
onClick: () => t(e === "dark" ? "light" : "dark"),
|
|
1208
|
+
children: /* @__PURE__ */ a.jsx(r, { size: 18 })
|
|
1076
1209
|
}
|
|
1077
|
-
);
|
|
1078
|
-
},
|
|
1079
|
-
const { topNavigation:
|
|
1080
|
-
return /* @__PURE__ */ a.
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1210
|
+
) });
|
|
1211
|
+
}, ct = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", ua = () => {
|
|
1212
|
+
const { topNavigation: e } = Q(), { isAuthenticated: t } = ae();
|
|
1213
|
+
return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(ge, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(ct(t)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ut, { ...r }) }, r.id)) }) }) });
|
|
1214
|
+
}, ut = ({
|
|
1215
|
+
id: e,
|
|
1216
|
+
label: t,
|
|
1217
|
+
default: r
|
|
1218
|
+
}) => {
|
|
1219
|
+
var d;
|
|
1220
|
+
const { sidebars: s } = Q(), n = s[e], o = Ke(), i = !!xe().location, c = ((d = o.topNavItem) == null ? void 0 : d.id) === e && !i, u = r ?? (n ? Lt(n, (p) => {
|
|
1221
|
+
if (p.type === "doc") return q(p.id);
|
|
1222
|
+
}) : q(e));
|
|
1223
|
+
if (!u)
|
|
1224
|
+
throw new Sr("Page not found.", {
|
|
1225
|
+
developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
1226
|
+
});
|
|
1227
|
+
return (
|
|
1228
|
+
// We don't use isActive here because it has to be inside the sidebar,
|
|
1229
|
+
// the top nav id doesn't necessarily start with the sidebar id
|
|
1230
|
+
/* @__PURE__ */ a.jsx(
|
|
1231
|
+
re,
|
|
1084
1232
|
{
|
|
1085
|
-
className:
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
G,
|
|
1092
|
-
{
|
|
1093
|
-
className: ({ isActive: s }) => Ue(
|
|
1094
|
-
"block font-medium border-b-2",
|
|
1095
|
-
s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1096
|
-
),
|
|
1097
|
-
to: r.id,
|
|
1098
|
-
children: /* @__PURE__ */ a.jsx(Ht, { children: r.label })
|
|
1099
|
-
}
|
|
1100
|
-
) }, r.label)) })
|
|
1101
|
-
]
|
|
1233
|
+
className: ({ isPending: p }) => ur(
|
|
1234
|
+
"block lg:py-3.5 font-medium -mb-px border-b-2",
|
|
1235
|
+
c || p ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1236
|
+
),
|
|
1237
|
+
to: u,
|
|
1238
|
+
children: t
|
|
1102
1239
|
}
|
|
1103
1240
|
)
|
|
1104
|
-
|
|
1105
|
-
},
|
|
1106
|
-
|
|
1107
|
-
|
|
1241
|
+
);
|
|
1242
|
+
}, da = () => {
|
|
1243
|
+
const { topNavigation: e } = Q(), { isAuthenticated: t } = ae(), [r, s] = F(!1);
|
|
1244
|
+
return /* @__PURE__ */ a.jsxs(
|
|
1245
|
+
Je,
|
|
1246
|
+
{
|
|
1247
|
+
direction: "right",
|
|
1248
|
+
open: r,
|
|
1249
|
+
onOpenChange: (n) => s(n),
|
|
1250
|
+
children: [
|
|
1251
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(Ge, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(nr, { size: 22 }) }) }),
|
|
1252
|
+
/* @__PURE__ */ a.jsxs(
|
|
1253
|
+
et,
|
|
1254
|
+
{
|
|
1255
|
+
className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
|
|
1256
|
+
"aria-describedby": void 0,
|
|
1257
|
+
children: [
|
|
1258
|
+
/* @__PURE__ */ a.jsx(rt, { children: /* @__PURE__ */ a.jsx(tt, { children: "Navigation" }) }),
|
|
1259
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ot, {}) }),
|
|
1260
|
+
/* @__PURE__ */ a.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
1261
|
+
/* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(lt, {}) }),
|
|
1262
|
+
e.filter(ct(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ a.jsx(ut, { ...n }) }) }, n.label))
|
|
1263
|
+
] })
|
|
1264
|
+
]
|
|
1265
|
+
}
|
|
1266
|
+
)
|
|
1267
|
+
]
|
|
1268
|
+
}
|
|
1269
|
+
);
|
|
1270
|
+
}, dt = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(pr, { children: [
|
|
1271
|
+
/* @__PURE__ */ a.jsx(vr, { children: e.label }),
|
|
1272
|
+
/* @__PURE__ */ a.jsx(xr, { children: /* @__PURE__ */ a.jsx(yr, { children: e.children.map((t, r) => (
|
|
1108
1273
|
// eslint-disable-next-line react/no-array-index-key
|
|
1109
|
-
/* @__PURE__ */ a.jsx(
|
|
1274
|
+
/* @__PURE__ */ a.jsx(dt, { item: t }, r)
|
|
1110
1275
|
)) }) })
|
|
1111
|
-
] },
|
|
1112
|
-
const
|
|
1276
|
+
] }, e.label) : /* @__PURE__ */ a.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(br, { children: e.label }, e.label) }), ht = Ye(function() {
|
|
1277
|
+
const t = ae(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = ae(), o = Q(), { page: i, plugins: c } = o, u = c.filter((d) => ra(d)).flatMap((d) => d.getProfileMenuItems(o)).map((d) => /* @__PURE__ */ a.jsx(dt, { item: d }, d.label));
|
|
1113
1278
|
return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1114
|
-
/* @__PURE__ */ a.jsx(
|
|
1279
|
+
/* @__PURE__ */ a.jsx(ca, {}),
|
|
1115
1280
|
/* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1116
1281
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
|
|
1117
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(
|
|
1118
|
-
(
|
|
1282
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(fe, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1283
|
+
(i == null ? void 0 : i.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1119
1284
|
/* @__PURE__ */ a.jsx(
|
|
1120
1285
|
"img",
|
|
1121
1286
|
{
|
|
1122
|
-
src: /https?:\/\//.test(
|
|
1287
|
+
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : q(
|
|
1123
1288
|
"/",
|
|
1124
|
-
|
|
1289
|
+
i.logo.src.light
|
|
1125
1290
|
),
|
|
1126
|
-
alt:
|
|
1127
|
-
style: { width:
|
|
1128
|
-
className:
|
|
1291
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
1292
|
+
style: { width: i.logo.width },
|
|
1293
|
+
className: "h-10 dark:hidden",
|
|
1129
1294
|
loading: "lazy"
|
|
1130
1295
|
}
|
|
1131
1296
|
),
|
|
1132
1297
|
/* @__PURE__ */ a.jsx(
|
|
1133
1298
|
"img",
|
|
1134
1299
|
{
|
|
1135
|
-
|
|
1300
|
+
"data-hide-on-theme": "light",
|
|
1301
|
+
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : q(
|
|
1136
1302
|
"/",
|
|
1137
|
-
|
|
1303
|
+
i.logo.src.dark
|
|
1138
1304
|
),
|
|
1139
|
-
alt:
|
|
1140
|
-
style: { width:
|
|
1141
|
-
className:
|
|
1305
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
1306
|
+
style: { width: i.logo.width },
|
|
1307
|
+
className: "h-10",
|
|
1142
1308
|
loading: "lazy"
|
|
1143
1309
|
}
|
|
1144
1310
|
)
|
|
1145
1311
|
] }),
|
|
1146
|
-
/* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children:
|
|
1312
|
+
/* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
|
|
1147
1313
|
] }) }) }),
|
|
1148
1314
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1149
|
-
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(
|
|
1150
|
-
/* @__PURE__ */ a.jsx(
|
|
1315
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ot, {}) }),
|
|
1316
|
+
/* @__PURE__ */ a.jsx(da, {}),
|
|
1151
1317
|
/* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1152
|
-
/* @__PURE__ */ a.jsx(
|
|
1153
|
-
/* @__PURE__ */ a.jsx(
|
|
1154
|
-
|
|
1318
|
+
/* @__PURE__ */ a.jsx(D, { name: "head-navigation-start" }),
|
|
1319
|
+
n && /* @__PURE__ */ a.jsx(
|
|
1320
|
+
ye,
|
|
1155
1321
|
{
|
|
1156
|
-
fallback: /* @__PURE__ */ a.jsx(
|
|
1157
|
-
children:
|
|
1158
|
-
/* @__PURE__ */ a.jsx(
|
|
1159
|
-
/* @__PURE__ */ a.jsxs(
|
|
1160
|
-
/* @__PURE__ */ a.jsx(
|
|
1161
|
-
/* @__PURE__ */ a.jsx(
|
|
1162
|
-
|
|
1322
|
+
fallback: /* @__PURE__ */ a.jsx(ta, { className: "rounded h-5 w-24 mr-4" }),
|
|
1323
|
+
children: r ? u.length > 0 && /* @__PURE__ */ a.jsxs(dr, { modal: !1, children: [
|
|
1324
|
+
/* @__PURE__ */ a.jsx(hr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ce, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
|
|
1325
|
+
/* @__PURE__ */ a.jsxs(fr, { className: "w-56", children: [
|
|
1326
|
+
/* @__PURE__ */ a.jsx(mr, { children: "My Account" }),
|
|
1327
|
+
/* @__PURE__ */ a.jsx(gr, {}),
|
|
1328
|
+
u
|
|
1163
1329
|
] })
|
|
1164
|
-
] })
|
|
1165
|
-
}
|
|
1166
|
-
),
|
|
1167
|
-
/* @__PURE__ */ a.jsx(
|
|
1168
|
-
ne,
|
|
1169
|
-
{
|
|
1170
|
-
variant: "ghost",
|
|
1171
|
-
"aria-label": r ? "Switch to light mode" : "Switch to dark mode",
|
|
1172
|
-
className: "p-2.5 -m-2.5 rounded-full",
|
|
1173
|
-
onClick: s,
|
|
1174
|
-
children: /* @__PURE__ */ a.jsx(S, { size: 18 })
|
|
1330
|
+
] }) : /* @__PURE__ */ a.jsx(ce, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
1175
1331
|
}
|
|
1176
1332
|
),
|
|
1177
|
-
/* @__PURE__ */ a.jsx(
|
|
1333
|
+
/* @__PURE__ */ a.jsx(lt, {}),
|
|
1334
|
+
/* @__PURE__ */ a.jsx(D, { name: "head-navigation-end" })
|
|
1178
1335
|
] })
|
|
1179
1336
|
] })
|
|
1180
1337
|
] }),
|
|
1181
|
-
/* @__PURE__ */ a.jsx(
|
|
1182
|
-
/* @__PURE__ */ a.jsx(
|
|
1183
|
-
/* @__PURE__ */ a.jsx(
|
|
1338
|
+
/* @__PURE__ */ a.jsx(D, { name: "top-navigation-before" }),
|
|
1339
|
+
/* @__PURE__ */ a.jsx(ua, {}),
|
|
1340
|
+
/* @__PURE__ */ a.jsx(D, { name: "top-navigation-after" })
|
|
1184
1341
|
] })
|
|
1185
1342
|
] });
|
|
1186
|
-
}),
|
|
1343
|
+
}), ft = $t(({ children: e, className: t, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
|
|
1187
1344
|
"nav",
|
|
1188
1345
|
{
|
|
1189
1346
|
"data-navigation": String(r),
|
|
1190
|
-
className:
|
|
1347
|
+
className: R(
|
|
1191
1348
|
"scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
|
|
1192
1349
|
"px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
|
|
1193
1350
|
"w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
1194
|
-
|
|
1351
|
+
t
|
|
1195
1352
|
),
|
|
1196
1353
|
ref: s,
|
|
1197
|
-
children:
|
|
1354
|
+
children: e
|
|
1198
1355
|
}
|
|
1199
1356
|
));
|
|
1200
|
-
|
|
1201
|
-
const
|
|
1202
|
-
const
|
|
1357
|
+
ft.displayName = "SidebarWrapper";
|
|
1358
|
+
const ha = () => {
|
|
1359
|
+
const e = me(null), t = Ke();
|
|
1203
1360
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1204
1361
|
/* @__PURE__ */ a.jsxs(
|
|
1205
|
-
|
|
1362
|
+
ft,
|
|
1206
1363
|
{
|
|
1207
|
-
ref:
|
|
1208
|
-
pushMainContent:
|
|
1364
|
+
ref: e,
|
|
1365
|
+
pushMainContent: t.sidebar.length > 0,
|
|
1209
1366
|
children: [
|
|
1210
|
-
/* @__PURE__ */ a.jsx(
|
|
1211
|
-
|
|
1212
|
-
/* @__PURE__ */ a.jsx(
|
|
1367
|
+
/* @__PURE__ */ a.jsx(D, { name: "zudoku-before-navigation" }),
|
|
1368
|
+
t.sidebar.map((r) => /* @__PURE__ */ a.jsx(de, { item: r }, r.label)),
|
|
1369
|
+
/* @__PURE__ */ a.jsx(D, { name: "zudoku-after-navigation" })
|
|
1213
1370
|
]
|
|
1214
1371
|
}
|
|
1215
1372
|
),
|
|
1216
1373
|
/* @__PURE__ */ a.jsxs(
|
|
1217
|
-
|
|
1374
|
+
et,
|
|
1218
1375
|
{
|
|
1219
1376
|
className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
|
|
1220
1377
|
"aria-describedby": void 0,
|
|
1221
1378
|
children: [
|
|
1222
|
-
/* @__PURE__ */ a.jsx(
|
|
1223
|
-
|
|
1379
|
+
/* @__PURE__ */ a.jsx(rt, { children: /* @__PURE__ */ a.jsx(tt, { children: "Sidebar" }) }),
|
|
1380
|
+
t.sidebar.map((r) => /* @__PURE__ */ a.jsx(de, { item: r }, r.label))
|
|
1224
1381
|
]
|
|
1225
1382
|
}
|
|
1226
1383
|
)
|
|
1227
1384
|
] });
|
|
1228
|
-
},
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1231
|
-
const
|
|
1232
|
-
|
|
1233
|
-
var
|
|
1234
|
-
(
|
|
1235
|
-
}, [n]),
|
|
1236
|
-
|
|
1237
|
-
}, [
|
|
1385
|
+
}, Fe = () => /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(Nr, {}) }), fa = ({ children: e }) => {
|
|
1386
|
+
const t = ve(), { setActiveAnchor: r } = be(), { meta: s, authentication: n } = Q();
|
|
1387
|
+
Gr(), ea();
|
|
1388
|
+
const o = me(t.pathname);
|
|
1389
|
+
L(() => {
|
|
1390
|
+
var u;
|
|
1391
|
+
(u = n == null ? void 0 : n.pageLoad) == null || u.call(n);
|
|
1392
|
+
}, [n]), L(() => {
|
|
1393
|
+
t.pathname !== o.current && r(""), o.current = t.pathname;
|
|
1394
|
+
}, [t.pathname, r]);
|
|
1395
|
+
const i = !!xe().location, c = Wr.useSpinDelay(i, {
|
|
1396
|
+
delay: 300,
|
|
1397
|
+
minDuration: 500
|
|
1398
|
+
});
|
|
1399
|
+
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1238
1400
|
!1,
|
|
1239
|
-
/* @__PURE__ */ a.jsxs(
|
|
1401
|
+
/* @__PURE__ */ a.jsxs(he, { titleTemplate: s == null ? void 0 : s.title, children: [
|
|
1240
1402
|
(s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
|
|
1241
1403
|
(s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
|
|
1242
1404
|
] }),
|
|
1243
|
-
/* @__PURE__ */ a.jsx(
|
|
1244
|
-
/* @__PURE__ */ a.jsx(
|
|
1245
|
-
/* @__PURE__ */ a.jsx(
|
|
1246
|
-
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
"
|
|
1254
|
-
{
|
|
1255
|
-
className: N(
|
|
1256
|
-
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1257
|
-
"peer-data-[navigation=false]:hidden"
|
|
1258
|
-
),
|
|
1259
|
-
children: /* @__PURE__ */ a.jsxs(qe, { className: "flex items-center gap-2", children: [
|
|
1260
|
-
/* @__PURE__ */ a.jsx(zt, { size: 16, strokeWidth: 1.5 }),
|
|
1261
|
-
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1262
|
-
] })
|
|
1263
|
-
}
|
|
1405
|
+
/* @__PURE__ */ a.jsx(D, { name: "layout-before-head" }),
|
|
1406
|
+
/* @__PURE__ */ a.jsx(ht, {}),
|
|
1407
|
+
/* @__PURE__ */ a.jsx(D, { name: "layout-after-head" }),
|
|
1408
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: c ? /* @__PURE__ */ a.jsx(Fe, {}) : /* @__PURE__ */ a.jsx(ge, { fallback: /* @__PURE__ */ a.jsx(Fe, {}), children: /* @__PURE__ */ a.jsxs(Je, { direction: "left", children: [
|
|
1409
|
+
/* @__PURE__ */ a.jsx(ha, {}),
|
|
1410
|
+
/* @__PURE__ */ a.jsx(
|
|
1411
|
+
"div",
|
|
1412
|
+
{
|
|
1413
|
+
className: R(
|
|
1414
|
+
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1415
|
+
"peer-data-[navigation=false]:hidden"
|
|
1264
1416
|
),
|
|
1265
|
-
/* @__PURE__ */ a.jsxs(
|
|
1266
|
-
|
|
1267
|
-
{
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1417
|
+
children: /* @__PURE__ */ a.jsxs(Ge, { className: "flex items-center gap-2", children: [
|
|
1418
|
+
/* @__PURE__ */ a.jsx(ir, { size: 16, strokeWidth: 1.5 }),
|
|
1419
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1420
|
+
] })
|
|
1421
|
+
}
|
|
1422
|
+
),
|
|
1423
|
+
/* @__PURE__ */ a.jsxs(
|
|
1424
|
+
"main",
|
|
1425
|
+
{
|
|
1426
|
+
className: R(
|
|
1427
|
+
"h-full dark:border-white/10 translate-x-0",
|
|
1428
|
+
"lg:overflow-visible",
|
|
1429
|
+
// This works in tandem with the `SidebarWrapper` component
|
|
1430
|
+
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|
|
1431
|
+
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
1432
|
+
),
|
|
1433
|
+
children: [
|
|
1434
|
+
/* @__PURE__ */ a.jsx(D, { name: "zudoku-before-content" }),
|
|
1435
|
+
e ?? /* @__PURE__ */ a.jsx(Xe, {}),
|
|
1436
|
+
/* @__PURE__ */ a.jsx(D, { name: "zudoku-after-content" })
|
|
1437
|
+
]
|
|
1438
|
+
}
|
|
1439
|
+
)
|
|
1440
|
+
] }) }) })
|
|
1285
1441
|
] });
|
|
1286
|
-
},
|
|
1442
|
+
}, ma = We(null), oe = {
|
|
1287
1443
|
didCatch: !1,
|
|
1288
1444
|
error: null
|
|
1289
1445
|
};
|
|
1290
|
-
class
|
|
1291
|
-
constructor(
|
|
1292
|
-
super(
|
|
1446
|
+
class ga extends Kt {
|
|
1447
|
+
constructor(t) {
|
|
1448
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = oe;
|
|
1293
1449
|
}
|
|
1294
|
-
static getDerivedStateFromError(
|
|
1450
|
+
static getDerivedStateFromError(t) {
|
|
1295
1451
|
return {
|
|
1296
1452
|
didCatch: !0,
|
|
1297
|
-
error:
|
|
1453
|
+
error: t
|
|
1298
1454
|
};
|
|
1299
1455
|
}
|
|
1300
1456
|
resetErrorBoundary() {
|
|
1301
1457
|
const {
|
|
1302
|
-
error:
|
|
1458
|
+
error: t
|
|
1303
1459
|
} = this.state;
|
|
1304
|
-
if (
|
|
1305
|
-
for (var r, s, n = arguments.length,
|
|
1306
|
-
i
|
|
1460
|
+
if (t !== null) {
|
|
1461
|
+
for (var r, s, n = arguments.length, o = new Array(n), i = 0; i < n; i++)
|
|
1462
|
+
o[i] = arguments[i];
|
|
1307
1463
|
(r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
|
|
1308
|
-
args:
|
|
1464
|
+
args: o,
|
|
1309
1465
|
reason: "imperative-api"
|
|
1310
|
-
}), this.setState(
|
|
1466
|
+
}), this.setState(oe);
|
|
1311
1467
|
}
|
|
1312
1468
|
}
|
|
1313
|
-
componentDidCatch(
|
|
1469
|
+
componentDidCatch(t, r) {
|
|
1314
1470
|
var s, n;
|
|
1315
|
-
(s = (n = this.props).onError) === null || s === void 0 || s.call(n,
|
|
1471
|
+
(s = (n = this.props).onError) === null || s === void 0 || s.call(n, t, r);
|
|
1316
1472
|
}
|
|
1317
|
-
componentDidUpdate(
|
|
1473
|
+
componentDidUpdate(t, r) {
|
|
1318
1474
|
const {
|
|
1319
1475
|
didCatch: s
|
|
1320
1476
|
} = this.state, {
|
|
1321
1477
|
resetKeys: n
|
|
1322
1478
|
} = this.props;
|
|
1323
|
-
if (s && r.error !== null &&
|
|
1324
|
-
var
|
|
1325
|
-
(
|
|
1479
|
+
if (s && r.error !== null && pa(t.resetKeys, n)) {
|
|
1480
|
+
var o, i;
|
|
1481
|
+
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
1326
1482
|
next: n,
|
|
1327
|
-
prev:
|
|
1483
|
+
prev: t.resetKeys,
|
|
1328
1484
|
reason: "keys"
|
|
1329
|
-
}), this.setState(
|
|
1485
|
+
}), this.setState(oe);
|
|
1330
1486
|
}
|
|
1331
1487
|
}
|
|
1332
1488
|
render() {
|
|
1333
1489
|
const {
|
|
1334
|
-
children:
|
|
1490
|
+
children: t,
|
|
1335
1491
|
fallbackRender: r,
|
|
1336
1492
|
FallbackComponent: s,
|
|
1337
1493
|
fallback: n
|
|
1338
1494
|
} = this.props, {
|
|
1339
|
-
didCatch:
|
|
1340
|
-
error:
|
|
1495
|
+
didCatch: o,
|
|
1496
|
+
error: i
|
|
1341
1497
|
} = this.state;
|
|
1342
|
-
let
|
|
1343
|
-
if (
|
|
1344
|
-
const
|
|
1345
|
-
error:
|
|
1498
|
+
let c = t;
|
|
1499
|
+
if (o) {
|
|
1500
|
+
const u = {
|
|
1501
|
+
error: i,
|
|
1346
1502
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1347
1503
|
};
|
|
1348
1504
|
if (typeof r == "function")
|
|
1349
|
-
|
|
1505
|
+
c = r(u);
|
|
1350
1506
|
else if (s)
|
|
1351
|
-
|
|
1507
|
+
c = Me(s, u);
|
|
1352
1508
|
else if (n !== void 0)
|
|
1353
|
-
|
|
1509
|
+
c = n;
|
|
1354
1510
|
else
|
|
1355
|
-
throw
|
|
1511
|
+
throw i;
|
|
1356
1512
|
}
|
|
1357
|
-
return
|
|
1513
|
+
return Me(ma.Provider, {
|
|
1358
1514
|
value: {
|
|
1359
|
-
didCatch:
|
|
1360
|
-
error:
|
|
1515
|
+
didCatch: o,
|
|
1516
|
+
error: i,
|
|
1361
1517
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1362
1518
|
}
|
|
1363
|
-
},
|
|
1519
|
+
}, c);
|
|
1364
1520
|
}
|
|
1365
1521
|
}
|
|
1366
|
-
function
|
|
1367
|
-
let
|
|
1368
|
-
return
|
|
1522
|
+
function pa() {
|
|
1523
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1524
|
+
return e.length !== t.length || e.some((r, s) => !Object.is(r, t[s]));
|
|
1369
1525
|
}
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
v(this, "initialize", async () => {
|
|
1526
|
+
class va {
|
|
1527
|
+
constructor(t) {
|
|
1528
|
+
S(this, "plugins");
|
|
1529
|
+
S(this, "sidebars");
|
|
1530
|
+
S(this, "topNavigation");
|
|
1531
|
+
S(this, "meta");
|
|
1532
|
+
S(this, "page");
|
|
1533
|
+
S(this, "authentication");
|
|
1534
|
+
S(this, "navigationPlugins");
|
|
1535
|
+
S(this, "initialize", async () => {
|
|
1381
1536
|
await Promise.all(
|
|
1382
|
-
this.plugins.filter(
|
|
1537
|
+
this.plugins.filter(na).map((t) => {
|
|
1383
1538
|
var r;
|
|
1384
|
-
return (r =
|
|
1539
|
+
return (r = t.initialize) == null ? void 0 : r.call(t, this);
|
|
1385
1540
|
})
|
|
1386
1541
|
);
|
|
1387
1542
|
});
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
});
|
|
1391
|
-
v(this, "getApiIdentities", async () => (await Promise.all(
|
|
1392
|
-
this.plugins.filter(Jr).map((r) => r.getIdentities(this))
|
|
1543
|
+
S(this, "getApiIdentities", async () => (await Promise.all(
|
|
1544
|
+
this.plugins.filter(la).map((r) => r.getIdentities(this))
|
|
1393
1545
|
)).flat());
|
|
1394
|
-
|
|
1546
|
+
S(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
1395
1547
|
this.navigationPlugins.map(
|
|
1396
1548
|
(s) => {
|
|
1397
1549
|
var n;
|
|
1398
|
-
return (n = s.getSidebar) == null ? void 0 : n.call(s,
|
|
1550
|
+
return (n = s.getSidebar) == null ? void 0 : n.call(s, q(t));
|
|
1399
1551
|
}
|
|
1400
1552
|
)
|
|
1401
1553
|
)).flatMap((s) => s ?? []));
|
|
1402
|
-
|
|
1554
|
+
S(this, "signRequest", async (t) => {
|
|
1403
1555
|
if (!this.authentication)
|
|
1404
1556
|
throw new Error("No authentication provider configured");
|
|
1405
1557
|
const r = await this.authentication.getAccessToken();
|
|
1406
|
-
return
|
|
1558
|
+
return t.headers.set("Authorization", `Bearer ${r}`), t;
|
|
1407
1559
|
});
|
|
1408
|
-
this.plugins =
|
|
1560
|
+
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(aa), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
1409
1561
|
}
|
|
1410
1562
|
}
|
|
1411
|
-
function
|
|
1412
|
-
return /* @__PURE__ */ a.jsx(
|
|
1563
|
+
function xa({ error: e, resetErrorBoundary: t }) {
|
|
1564
|
+
return /* @__PURE__ */ a.jsx(ze, { error: e });
|
|
1413
1565
|
}
|
|
1414
|
-
const
|
|
1415
|
-
(!
|
|
1416
|
-
const
|
|
1417
|
-
Header:
|
|
1418
|
-
},
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
}, [e]);
|
|
1424
|
-
const s = Qe(() => {
|
|
1425
|
-
const i = !e;
|
|
1426
|
-
document.documentElement.classList.toggle("dark", i), localStorage.setItem("theme", i ? "dark" : "light"), r(i);
|
|
1427
|
-
}, [e]), n = [e, s];
|
|
1428
|
-
return /* @__PURE__ */ a.jsx(Kt.Provider, { value: n, ...t });
|
|
1429
|
-
}, fa = ({
|
|
1430
|
-
children: t,
|
|
1431
|
-
context: e
|
|
1432
|
-
}) => (ar({
|
|
1433
|
-
queryFn: async () => (await e.initialize(), !0),
|
|
1566
|
+
const te = globalThis;
|
|
1567
|
+
(!te.requestIdleCallback || !te.cancelIdleCallback) && (te.requestIdleCallback = (e) => setTimeout(e, 1), te.cancelIdleCallback = clearTimeout);
|
|
1568
|
+
const mt = {
|
|
1569
|
+
Header: ht
|
|
1570
|
+
}, ya = We(mt), ba = ya.Provider, ja = ({
|
|
1571
|
+
children: e,
|
|
1572
|
+
context: t
|
|
1573
|
+
}) => (Bt({
|
|
1574
|
+
queryFn: async () => (await t.initialize(), !0),
|
|
1434
1575
|
queryKey: ["zudoku-initialize"]
|
|
1435
|
-
}), /* @__PURE__ */ a.jsx(
|
|
1436
|
-
({ children:
|
|
1437
|
-
var
|
|
1438
|
-
const r =
|
|
1439
|
-
() => ({ ...
|
|
1440
|
-
[
|
|
1441
|
-
), s =
|
|
1442
|
-
var
|
|
1576
|
+
}), /* @__PURE__ */ a.jsx(zt.Provider, { value: t, children: e })), gt = Ye(
|
|
1577
|
+
({ children: e, ...t }) => {
|
|
1578
|
+
var f, h;
|
|
1579
|
+
const r = se(
|
|
1580
|
+
() => ({ ...mt, ...t.overrides }),
|
|
1581
|
+
[t.overrides]
|
|
1582
|
+
), s = se(() => {
|
|
1583
|
+
var v;
|
|
1443
1584
|
return {
|
|
1444
|
-
...(
|
|
1445
|
-
(
|
|
1585
|
+
...(t.plugins ?? []).filter(oa).flatMap(
|
|
1586
|
+
(m) => m.getMdxComponents ? [m.getMdxComponents()] : []
|
|
1446
1587
|
).reduce(
|
|
1447
|
-
(
|
|
1588
|
+
(m, E) => ({ ...m, ...E }),
|
|
1448
1589
|
{}
|
|
1449
1590
|
),
|
|
1450
|
-
|
|
1451
|
-
...(
|
|
1591
|
+
...or,
|
|
1592
|
+
...(v = t.mdx) == null ? void 0 : v.components
|
|
1452
1593
|
};
|
|
1453
|
-
}, [(
|
|
1454
|
-
() =>
|
|
1455
|
-
[n,
|
|
1456
|
-
),
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
}, [
|
|
1460
|
-
const [
|
|
1461
|
-
var
|
|
1462
|
-
return /* @__PURE__ */ a.jsx(
|
|
1594
|
+
}, [(f = t.mdx) == null ? void 0 : f.components, t.plugins]), { stagger: n } = Vt(le), [o, i] = F(!1), c = se(
|
|
1595
|
+
() => o ? { stagger: !0 } : { stagger: n },
|
|
1596
|
+
[n, o]
|
|
1597
|
+
), u = xe();
|
|
1598
|
+
L(() => {
|
|
1599
|
+
o || i(!0);
|
|
1600
|
+
}, [o, u.location]);
|
|
1601
|
+
const [d] = F(() => new va(t)), p = (h = t.plugins) == null ? void 0 : h.filter(ia).map((g, v) => {
|
|
1602
|
+
var m;
|
|
1603
|
+
return /* @__PURE__ */ a.jsx(Zt, { children: (m = g.getHead) == null ? void 0 : m.call(g) }, v);
|
|
1463
1604
|
});
|
|
1464
|
-
return /* @__PURE__ */ a.jsxs(
|
|
1465
|
-
/* @__PURE__ */ a.jsx(
|
|
1466
|
-
/* @__PURE__ */ a.jsx(
|
|
1605
|
+
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1606
|
+
/* @__PURE__ */ a.jsx(he, { children: p }),
|
|
1607
|
+
/* @__PURE__ */ a.jsx(le.Provider, { value: c, children: /* @__PURE__ */ a.jsx(ja, { context: d, children: /* @__PURE__ */ a.jsx(jt, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ba, { value: r, children: /* @__PURE__ */ a.jsx(Ct, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(lr, { children: e ?? /* @__PURE__ */ a.jsx(Xe, {}) }) }) }) }) }) }) })
|
|
1467
1608
|
] });
|
|
1468
1609
|
}
|
|
1469
1610
|
);
|
|
1470
|
-
|
|
1471
|
-
const
|
|
1472
|
-
|
|
1473
|
-
const
|
|
1611
|
+
gt.displayName = "ZudokoInner";
|
|
1612
|
+
const pt = (e) => /* @__PURE__ */ a.jsx(ga, { FallbackComponent: xa, children: /* @__PURE__ */ a.jsx(gt, { ...e }) });
|
|
1613
|
+
pt.displayName = "Zudoku";
|
|
1614
|
+
const Ya = wt, Wa = fa, Xa = kt, Ja = Er, Ga = Zr, es = Yr, ts = he, rs = Q, as = Pt, ss = pt, ns = Dt, is = ye, os = At, ls = fe;
|
|
1474
1615
|
export {
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1616
|
+
Ga as Bootstrap,
|
|
1617
|
+
es as BootstrapStatic,
|
|
1618
|
+
os as Button,
|
|
1619
|
+
ns as Callout,
|
|
1620
|
+
is as ClientOnly,
|
|
1621
|
+
ts as Head,
|
|
1622
|
+
Wa as Layout,
|
|
1623
|
+
ls as Link,
|
|
1624
|
+
Xa as RouterError,
|
|
1625
|
+
Ja as ServerError,
|
|
1626
|
+
ss as Zudoku,
|
|
1627
|
+
as as useAuth,
|
|
1628
|
+
Ya as useMDXComponents,
|
|
1629
|
+
rs as useZudoku
|
|
1489
1630
|
};
|
|
1490
1631
|
//# sourceMappingURL=zudoku.components.js.map
|