zudoku 0.26.0 → 0.27.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/main.d.ts +1 -1
- package/dist/app/main.js +19 -7
- package/dist/app/main.js.map +1 -1
- package/dist/config/config.d.ts +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +2 -2
- package/dist/config/validators/common.d.ts +78 -0
- package/dist/config/validators/common.js +6 -0
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +34 -0
- package/dist/lib/authentication/providers/auth0.js +1 -1
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +1 -1
- package/dist/lib/authentication/providers/openid.js +10 -6
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/AnchorLink.js +5 -2
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +12 -0
- package/dist/lib/components/Autocomplete.js +47 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Header.js +4 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Markdown.d.ts +2 -2
- package/dist/lib/components/Markdown.js +3 -1
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/StatusPage.d.ts +7 -0
- package/dist/lib/components/StatusPage.js +71 -0
- package/dist/lib/components/StatusPage.js.map +1 -0
- package/dist/lib/components/SyntaxHighlight.d.ts +2 -1
- package/dist/lib/components/SyntaxHighlight.js +2 -2
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.js +4 -4
- package/dist/lib/components/ThemeSwitch.js.map +1 -1
- package/dist/lib/components/cache.d.ts +6 -0
- package/dist/lib/components/cache.js +13 -0
- package/dist/lib/components/cache.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.js +16 -4
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.js +2 -1
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +9 -2
- package/dist/lib/components/index.js +5 -2
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -0
- package/dist/lib/core/RouteGuard.js +28 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/ZudokuContext.d.ts +4 -2
- package/dist/lib/core/ZudokuContext.js +9 -7
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +3 -0
- package/dist/lib/oas/graphql/circular.js +27 -0
- package/dist/lib/oas/graphql/circular.js.map +1 -0
- package/dist/lib/oas/graphql/index.js +5 -6
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.d.ts +0 -1
- package/dist/lib/oas/parser/dereference/index.js +1 -1
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +8 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +3 -3
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +4 -11
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +7 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +12 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.js +67 -4
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +4 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.js +4 -12
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +18 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +53 -40
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +21 -30
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +95 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +16 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +2 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +5 -3
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +49 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +10 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +131 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +9 -1
- package/dist/lib/ui/Command.js +5 -1
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Select.js +2 -2
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/util/MdxComponents.js +2 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
- package/dist/lib/util/useScrollToAnchor.js +26 -15
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/build.js +10 -10
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +4 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +4 -1
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +1 -1
- package/dist/vite/plugin-api.js +31 -7
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +4 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-mdx.js +9 -4
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/prerender.d.ts +2 -2
- package/dist/vite/prerender.js +5 -4
- package/dist/vite/prerender.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
- package/dist/zuplo/enrich-with-zuplo.js +184 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/env.d.ts +1 -0
- package/dist/zuplo/env.js +3 -0
- package/dist/zuplo/env.js.map +1 -1
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +8 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +26 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +1 -1
- package/dist/zuplo/with-zuplo.js +7 -26
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{AuthenticationPlugin-DNXBcsVN.js → AuthenticationPlugin-CO_YCd2x.js} +3 -3
- package/lib/{AuthenticationPlugin-DNXBcsVN.js.map → AuthenticationPlugin-CO_YCd2x.js.map} +1 -1
- package/lib/{Markdown-BrfrjEk_.js → Markdown-B8o9Qz4q.js} +1197 -1186
- package/lib/{Markdown-BrfrjEk_.js.map → Markdown-B8o9Qz4q.js.map} +1 -1
- package/lib/{MdxPage-LNZLj_A5.js → MdxPage-BxRt3Ly7.js} +63 -58
- package/lib/MdxPage-BxRt3Ly7.js.map +1 -0
- package/lib/OperationList-DH-zIgtq.js +5160 -0
- package/lib/OperationList-DH-zIgtq.js.map +1 -0
- package/lib/{Route-Pzk6qwIk.js → Route-DJ0ZlVq1.js} +3 -3
- package/lib/{Route-Pzk6qwIk.js.map → Route-DJ0ZlVq1.js.map} +1 -1
- package/lib/{Select-DkOpAG0c.js → Select-B7UXR0SB.js} +61 -61
- package/lib/Select-B7UXR0SB.js.map +1 -0
- package/lib/{SlotletProvider-DPbx9KdU.js → SlotletProvider-CtIp8rP3.js} +4 -4
- package/lib/{SlotletProvider-DPbx9KdU.js.map → SlotletProvider-CtIp8rP3.js.map} +1 -1
- package/lib/{Button-oroWHXAy.js → Spinner-BlzrEEk1.js} +15 -12
- package/lib/Spinner-BlzrEEk1.js.map +1 -0
- package/lib/{SyntaxHighlight-CJCSPG1F.js → SyntaxHighlight-C1w1QPdY.js} +300 -295
- package/lib/{SyntaxHighlight-CJCSPG1F.js.map → SyntaxHighlight-C1w1QPdY.js.map} +1 -1
- package/lib/{ZudokuContext-D3ayHjP-.js → ZudokuContext-8jts0fF3.js} +259 -248
- package/lib/ZudokuContext-8jts0fF3.js.map +1 -0
- package/lib/{chunk-SYFQ2XB5-KWlHsT7t.js → chunk-SYFQ2XB5-BPvC-soB.js} +6 -5
- package/lib/{chunk-SYFQ2XB5-KWlHsT7t.js.map → chunk-SYFQ2XB5-BPvC-soB.js.map} +1 -1
- package/lib/circular-Dgpd6AN-.js +15397 -0
- package/lib/circular-Dgpd6AN-.js.map +1 -0
- package/lib/{createServer-BcaswoFO.js → createServer-BV0tHzLK.js} +3450 -5577
- package/lib/createServer-BV0tHzLK.js.map +1 -0
- package/lib/{hook-DUyACbIK.js → hook-BG02esyv.js} +2 -2
- package/lib/{hook-DUyACbIK.js.map → hook-BG02esyv.js.map} +1 -1
- package/lib/index-B7mqiOei.js +509 -0
- package/lib/index-B7mqiOei.js.map +1 -0
- package/lib/index-DmqsUPcm.js +1915 -0
- package/lib/index-DmqsUPcm.js.map +1 -0
- package/lib/joinUrl-BTy9bvoK.js +20 -0
- package/lib/joinUrl-BTy9bvoK.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +7 -7
- package/lib/post-processors/removeExtensions.js.map +1 -1
- package/lib/post-processors/removeParameters.js +48 -0
- package/lib/post-processors/removeParameters.js.map +1 -0
- package/lib/ui/ActionButton.js +10 -11
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Command.js +125 -13
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Select.js +2 -2
- package/lib/ui/Select.js.map +1 -1
- package/lib/{useExposedProps-BBHR7aLM.js → useExposedProps-BLKFBylA.js} +2 -2
- package/lib/{useExposedProps-BBHR7aLM.js.map → useExposedProps-BLKFBylA.js.map} +1 -1
- package/lib/useScrollToAnchor-Bl6mz9_x.js +288 -0
- package/lib/useScrollToAnchor-Bl6mz9_x.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +7 -9
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +223 -219
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +754 -992
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +3 -3
- package/lib/zudoku.plugin-api-keys.js +5 -5
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -4
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/package.json +2 -2
- package/src/app/main.css +50 -50
- package/src/app/main.tsx +26 -7
- package/src/lib/authentication/providers/auth0.tsx +1 -4
- package/src/lib/authentication/providers/openid.tsx +12 -5
- package/src/lib/components/AnchorLink.tsx +5 -2
- package/src/lib/components/Autocomplete.tsx +111 -0
- package/src/lib/components/Header.tsx +4 -4
- package/src/lib/components/Markdown.tsx +14 -15
- package/src/lib/components/StatusPage.tsx +91 -0
- package/src/lib/components/SyntaxHighlight.tsx +14 -0
- package/src/lib/components/ThemeSwitch.tsx +14 -15
- package/src/lib/components/cache.ts +15 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +20 -6
- package/src/lib/components/context/ZudokuContext.ts +3 -1
- package/src/lib/components/index.ts +9 -2
- package/src/lib/core/RouteGuard.tsx +35 -0
- package/src/lib/core/ZudokuContext.ts +9 -8
- package/src/lib/oas/graphql/circular.ts +29 -0
- package/src/lib/oas/graphql/index.ts +9 -9
- package/src/lib/oas/parser/dereference/index.ts +1 -2
- package/src/lib/plugins/markdown/MdxPage.tsx +9 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +0 -2
- package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -0
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +5 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +4 -2
- package/src/lib/plugins/openapi/index.tsx +9 -15
- package/src/lib/plugins/openapi/interfaces.ts +10 -2
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +54 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +136 -39
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +8 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +34 -74
- package/src/lib/plugins/openapi/playground/Playground.tsx +219 -177
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +90 -122
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +210 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +101 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +58 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +7 -4
- package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +148 -0
- package/src/lib/plugins/openapi/post-processors/removeParameters.ts +101 -0
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +1 -1
- package/src/lib/ui/Command.tsx +20 -0
- package/src/lib/ui/Select.tsx +1 -1
- package/src/lib/util/MdxComponents.tsx +2 -1
- package/src/lib/util/joinUrl.ts +57 -0
- package/src/lib/util/useScrollToAnchor.ts +32 -15
- package/dist/lib/plugins/openapi/playground/EnumSelector.d.ts +0 -8
- package/dist/lib/plugins/openapi/playground/EnumSelector.js +0 -21
- package/dist/lib/plugins/openapi/playground/EnumSelector.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
- package/lib/AnchorLink-_Vu02ceN.js +0 -34
- package/lib/AnchorLink-_Vu02ceN.js.map +0 -1
- package/lib/Button-oroWHXAy.js.map +0 -1
- package/lib/Command-D5DE0DD7.js +0 -611
- package/lib/Command-D5DE0DD7.js.map +0 -1
- package/lib/MdxPage-LNZLj_A5.js.map +0 -1
- package/lib/OperationList-PCwzTp1r.js +0 -5144
- package/lib/OperationList-PCwzTp1r.js.map +0 -1
- package/lib/Select-DkOpAG0c.js.map +0 -1
- package/lib/Spinner-C5gHXrVz.js +0 -7
- package/lib/Spinner-C5gHXrVz.js.map +0 -1
- package/lib/ZudokuContext-D3ayHjP-.js.map +0 -1
- package/lib/createServer-BcaswoFO.js.map +0 -1
- package/lib/index-CaILD1AV.js +0 -1292
- package/lib/index-CaILD1AV.js.map +0 -1
- package/lib/index-TaRXY2w1.js +0 -43
- package/lib/index-TaRXY2w1.js.map +0 -1
- package/src/lib/plugins/openapi/playground/EnumSelector.tsx +0 -86
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
package/lib/zudoku.components.js
CHANGED
|
@@ -1,583 +1,582 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
throw TypeError(
|
|
1
|
+
var ot = Object.defineProperty;
|
|
2
|
+
var fe = (t) => {
|
|
3
|
+
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
5
|
+
var lt = (t, e, n) => e in t ? ot(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var P = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n), me = (t, e, n) => e.has(t) || fe("Cannot " + n);
|
|
7
|
+
var l = (t, e, n) => (me(t, e, "read from private field"), n ? n.call(t) : e.get(t)), j = (t, e, n) => e.has(t) ? fe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), y = (t, e, n, s) => (me(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n);
|
|
8
|
+
var _ = (t, e, n, s) => ({
|
|
9
9
|
set _(a) {
|
|
10
|
-
|
|
10
|
+
y(t, e, a, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return l(t, e, s);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as
|
|
17
|
-
import { R as
|
|
18
|
-
import { M as
|
|
19
|
-
import { E as
|
|
20
|
-
import { j as
|
|
21
|
-
import { Button as
|
|
22
|
-
import { Callout as
|
|
23
|
-
import { S as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import * as
|
|
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
|
-
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
constructor(t = {}) {
|
|
16
|
+
import { a as Qe, H as ie } from "./index.esm-9-TF9KQB.js";
|
|
17
|
+
import { R as ct, S as ut, u as Ie, h as oe, N as dt, L as le, O as Te } from "./chunk-SYFQ2XB5-BPvC-soB.js";
|
|
18
|
+
import { M as ht, u as Z } from "./hook-BG02esyv.js";
|
|
19
|
+
import { E as qe, S as M, a as ft, R as mt } from "./SlotletProvider-CtIp8rP3.js";
|
|
20
|
+
import { j as r } from "./jsx-runtime-Bdg6XQ1m.js";
|
|
21
|
+
import { Button as gt } from "./ui/Button.js";
|
|
22
|
+
import { Callout as pt } from "./ui/Callout.js";
|
|
23
|
+
import { S as Re, k as Fe, Q as xt, n as w, m as ge, l as pe, o as N, p as yt, q as vt, r as bt, t as jt, v as xe, w as ye, x as wt, h as ve, y as be, z as Pt, e as Ct, A as ze, a as I, B as Be, C as St, j as se, u as kt, Z as Dt, D as Mt, E as Nt } from "./ZudokuContext-8jts0fF3.js";
|
|
24
|
+
import * as K from "react";
|
|
25
|
+
import Ot, { StrictMode as He, useRef as ce, useEffect as U, useState as z, useCallback as Et, Suspense as ue, memo as Le, forwardRef as At, createContext as Ke, Component as Qt, createElement as je, useMemo as ee, useContext as It, Fragment as Tt } from "react";
|
|
26
|
+
import * as qt from "react-dom";
|
|
27
|
+
import { S as re } from "./StaggeredRender-DgsamH_G.js";
|
|
28
|
+
import { C as $e } from "./ClientOnly-E7hGysn1.js";
|
|
29
|
+
import { CircleXIcon as Rt, SearchIcon as Ft, MoonStarIcon as zt, SunIcon as Bt, MenuIcon as Ht, PanelLeftIcon as Lt } from "lucide-react";
|
|
30
|
+
import { Drawer as Ze, DrawerTrigger as Ue, DrawerContent as Ye, DrawerTitle as Xe } from "./ui/Drawer.js";
|
|
31
|
+
import { c as B } from "./cn-qaFjX9_3.js";
|
|
32
|
+
import { S as we, a as Kt, M as $t, u as Zt } from "./useScrollToAnchor-Bl6mz9_x.js";
|
|
33
|
+
import { u as Ut, a as Yt, V as Xt, M as Vt } from "./Markdown-B8o9Qz4q.js";
|
|
34
|
+
import { B as ae, S as Ve } from "./Spinner-BlzrEEk1.js";
|
|
35
|
+
import { DropdownMenu as _t, DropdownMenuTrigger as Wt, DropdownMenuContent as Jt, DropdownMenuLabel as Gt, DropdownMenuSeparator as te, DropdownMenuSub as en, DropdownMenuSubTrigger as tn, DropdownMenuPortal as nn, DropdownMenuSubContent as sn, DropdownMenuItem as rn } from "./ui/DropdownMenu.js";
|
|
36
|
+
import { j as Pe } from "./joinUrl-BTy9bvoK.js";
|
|
37
|
+
import { VisuallyHidden as _e } from "@radix-ui/react-visually-hidden";
|
|
38
|
+
import { z as an, J as on } from "./SyntaxHighlight-C1w1QPdY.js";
|
|
39
|
+
import { a as ln } from "./index-Djenk2Hj.js";
|
|
40
|
+
import { Z as cn } from "./invariant-Caa8-XvF.js";
|
|
41
|
+
var D, Oe, un = (Oe = class extends Re {
|
|
42
|
+
constructor(e = {}) {
|
|
44
43
|
super();
|
|
45
|
-
j(this,
|
|
46
|
-
this.config =
|
|
44
|
+
j(this, D);
|
|
45
|
+
this.config = e, y(this, D, /* @__PURE__ */ new Map());
|
|
47
46
|
}
|
|
48
|
-
build(
|
|
49
|
-
const a =
|
|
50
|
-
let
|
|
51
|
-
return
|
|
47
|
+
build(e, n, s) {
|
|
48
|
+
const a = n.queryKey, o = n.queryHash ?? Fe(a, n);
|
|
49
|
+
let i = this.get(o);
|
|
50
|
+
return i || (i = new xt({
|
|
52
51
|
cache: this,
|
|
53
52
|
queryKey: a,
|
|
54
|
-
queryHash:
|
|
55
|
-
options:
|
|
56
|
-
state:
|
|
57
|
-
defaultOptions:
|
|
58
|
-
}), this.add(
|
|
59
|
-
}
|
|
60
|
-
add(
|
|
61
|
-
|
|
53
|
+
queryHash: o,
|
|
54
|
+
options: e.defaultQueryOptions(n),
|
|
55
|
+
state: s,
|
|
56
|
+
defaultOptions: e.getQueryDefaults(a)
|
|
57
|
+
}), this.add(i)), i;
|
|
58
|
+
}
|
|
59
|
+
add(e) {
|
|
60
|
+
l(this, D).has(e.queryHash) || (l(this, D).set(e.queryHash, e), this.notify({
|
|
62
61
|
type: "added",
|
|
63
|
-
query:
|
|
62
|
+
query: e
|
|
64
63
|
}));
|
|
65
64
|
}
|
|
66
|
-
remove(
|
|
67
|
-
const
|
|
68
|
-
|
|
65
|
+
remove(e) {
|
|
66
|
+
const n = l(this, D).get(e.queryHash);
|
|
67
|
+
n && (e.destroy(), n === e && l(this, D).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
69
68
|
}
|
|
70
69
|
clear() {
|
|
71
70
|
w.batch(() => {
|
|
72
|
-
this.getAll().forEach((
|
|
73
|
-
this.remove(
|
|
71
|
+
this.getAll().forEach((e) => {
|
|
72
|
+
this.remove(e);
|
|
74
73
|
});
|
|
75
74
|
});
|
|
76
75
|
}
|
|
77
|
-
get(
|
|
78
|
-
return
|
|
76
|
+
get(e) {
|
|
77
|
+
return l(this, D).get(e);
|
|
79
78
|
}
|
|
80
79
|
getAll() {
|
|
81
|
-
return [...
|
|
80
|
+
return [...l(this, D).values()];
|
|
82
81
|
}
|
|
83
|
-
find(
|
|
84
|
-
const
|
|
82
|
+
find(e) {
|
|
83
|
+
const n = { exact: !0, ...e };
|
|
85
84
|
return this.getAll().find(
|
|
86
|
-
(
|
|
85
|
+
(s) => ge(n, s)
|
|
87
86
|
);
|
|
88
87
|
}
|
|
89
|
-
findAll(
|
|
90
|
-
const
|
|
91
|
-
return Object.keys(
|
|
88
|
+
findAll(e = {}) {
|
|
89
|
+
const n = this.getAll();
|
|
90
|
+
return Object.keys(e).length > 0 ? n.filter((s) => ge(e, s)) : n;
|
|
92
91
|
}
|
|
93
|
-
notify(
|
|
92
|
+
notify(e) {
|
|
94
93
|
w.batch(() => {
|
|
95
|
-
this.listeners.forEach((
|
|
96
|
-
|
|
94
|
+
this.listeners.forEach((n) => {
|
|
95
|
+
n(e);
|
|
97
96
|
});
|
|
98
97
|
});
|
|
99
98
|
}
|
|
100
99
|
onFocus() {
|
|
101
100
|
w.batch(() => {
|
|
102
|
-
this.getAll().forEach((
|
|
103
|
-
|
|
101
|
+
this.getAll().forEach((e) => {
|
|
102
|
+
e.onFocus();
|
|
104
103
|
});
|
|
105
104
|
});
|
|
106
105
|
}
|
|
107
106
|
onOnline() {
|
|
108
107
|
w.batch(() => {
|
|
109
|
-
this.getAll().forEach((
|
|
110
|
-
|
|
108
|
+
this.getAll().forEach((e) => {
|
|
109
|
+
e.onOnline();
|
|
111
110
|
});
|
|
112
111
|
});
|
|
113
112
|
}
|
|
114
|
-
},
|
|
115
|
-
constructor(
|
|
113
|
+
}, D = new WeakMap(), Oe), O, S, Y, Ee, dn = (Ee = class extends Re {
|
|
114
|
+
constructor(e = {}) {
|
|
116
115
|
super();
|
|
117
|
-
j(this,
|
|
118
|
-
j(this,
|
|
119
|
-
j(this,
|
|
120
|
-
this.config =
|
|
116
|
+
j(this, O);
|
|
117
|
+
j(this, S);
|
|
118
|
+
j(this, Y);
|
|
119
|
+
this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, Y, 0);
|
|
121
120
|
}
|
|
122
|
-
build(
|
|
123
|
-
const a = new
|
|
121
|
+
build(e, n, s) {
|
|
122
|
+
const a = new ht({
|
|
124
123
|
mutationCache: this,
|
|
125
|
-
mutationId: ++
|
|
126
|
-
options:
|
|
127
|
-
state:
|
|
124
|
+
mutationId: ++_(this, Y)._,
|
|
125
|
+
options: e.defaultMutationOptions(n),
|
|
126
|
+
state: s
|
|
128
127
|
});
|
|
129
128
|
return this.add(a), a;
|
|
130
129
|
}
|
|
131
|
-
add(
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
-
if (typeof
|
|
135
|
-
const
|
|
136
|
-
|
|
130
|
+
add(e) {
|
|
131
|
+
l(this, O).add(e);
|
|
132
|
+
const n = W(e);
|
|
133
|
+
if (typeof n == "string") {
|
|
134
|
+
const s = l(this, S).get(n);
|
|
135
|
+
s ? s.push(e) : l(this, S).set(n, [e]);
|
|
137
136
|
}
|
|
138
|
-
this.notify({ type: "added", mutation:
|
|
139
|
-
}
|
|
140
|
-
remove(
|
|
141
|
-
if (
|
|
142
|
-
const
|
|
143
|
-
if (typeof
|
|
144
|
-
const
|
|
145
|
-
if (
|
|
146
|
-
if (
|
|
147
|
-
const a =
|
|
148
|
-
a !== -1 &&
|
|
149
|
-
} else
|
|
137
|
+
this.notify({ type: "added", mutation: e });
|
|
138
|
+
}
|
|
139
|
+
remove(e) {
|
|
140
|
+
if (l(this, O).delete(e)) {
|
|
141
|
+
const n = W(e);
|
|
142
|
+
if (typeof n == "string") {
|
|
143
|
+
const s = l(this, S).get(n);
|
|
144
|
+
if (s)
|
|
145
|
+
if (s.length > 1) {
|
|
146
|
+
const a = s.indexOf(e);
|
|
147
|
+
a !== -1 && s.splice(a, 1);
|
|
148
|
+
} else s[0] === e && l(this, S).delete(n);
|
|
150
149
|
}
|
|
151
150
|
}
|
|
152
|
-
this.notify({ type: "removed", mutation:
|
|
151
|
+
this.notify({ type: "removed", mutation: e });
|
|
153
152
|
}
|
|
154
|
-
canRun(
|
|
155
|
-
const
|
|
156
|
-
if (typeof
|
|
157
|
-
const
|
|
158
|
-
(
|
|
153
|
+
canRun(e) {
|
|
154
|
+
const n = W(e);
|
|
155
|
+
if (typeof n == "string") {
|
|
156
|
+
const s = l(this, S).get(n), a = s == null ? void 0 : s.find(
|
|
157
|
+
(o) => o.state.status === "pending"
|
|
159
158
|
);
|
|
160
|
-
return !a || a ===
|
|
159
|
+
return !a || a === e;
|
|
161
160
|
} else
|
|
162
161
|
return !0;
|
|
163
162
|
}
|
|
164
|
-
runNext(
|
|
165
|
-
var
|
|
166
|
-
const
|
|
167
|
-
if (typeof
|
|
168
|
-
const a = (
|
|
163
|
+
runNext(e) {
|
|
164
|
+
var s;
|
|
165
|
+
const n = W(e);
|
|
166
|
+
if (typeof n == "string") {
|
|
167
|
+
const a = (s = l(this, S).get(n)) == null ? void 0 : s.find((o) => o !== e && o.state.isPaused);
|
|
169
168
|
return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
|
|
170
169
|
} else
|
|
171
170
|
return Promise.resolve();
|
|
172
171
|
}
|
|
173
172
|
clear() {
|
|
174
173
|
w.batch(() => {
|
|
175
|
-
|
|
176
|
-
this.notify({ type: "removed", mutation:
|
|
177
|
-
}),
|
|
174
|
+
l(this, O).forEach((e) => {
|
|
175
|
+
this.notify({ type: "removed", mutation: e });
|
|
176
|
+
}), l(this, O).clear(), l(this, S).clear();
|
|
178
177
|
});
|
|
179
178
|
}
|
|
180
179
|
getAll() {
|
|
181
|
-
return Array.from(
|
|
180
|
+
return Array.from(l(this, O));
|
|
182
181
|
}
|
|
183
|
-
find(
|
|
184
|
-
const
|
|
182
|
+
find(e) {
|
|
183
|
+
const n = { exact: !0, ...e };
|
|
185
184
|
return this.getAll().find(
|
|
186
|
-
(
|
|
185
|
+
(s) => pe(n, s)
|
|
187
186
|
);
|
|
188
187
|
}
|
|
189
|
-
findAll(
|
|
190
|
-
return this.getAll().filter((
|
|
188
|
+
findAll(e = {}) {
|
|
189
|
+
return this.getAll().filter((n) => pe(e, n));
|
|
191
190
|
}
|
|
192
|
-
notify(
|
|
191
|
+
notify(e) {
|
|
193
192
|
w.batch(() => {
|
|
194
|
-
this.listeners.forEach((
|
|
195
|
-
|
|
193
|
+
this.listeners.forEach((n) => {
|
|
194
|
+
n(e);
|
|
196
195
|
});
|
|
197
196
|
});
|
|
198
197
|
}
|
|
199
198
|
resumePausedMutations() {
|
|
200
|
-
const
|
|
199
|
+
const e = this.getAll().filter((n) => n.state.isPaused);
|
|
201
200
|
return w.batch(
|
|
202
201
|
() => Promise.all(
|
|
203
|
-
|
|
202
|
+
e.map((n) => n.continue().catch(N))
|
|
204
203
|
)
|
|
205
204
|
);
|
|
206
205
|
}
|
|
207
|
-
},
|
|
208
|
-
function
|
|
209
|
-
var
|
|
210
|
-
return (
|
|
206
|
+
}, O = new WeakMap(), S = new WeakMap(), Y = new WeakMap(), Ee);
|
|
207
|
+
function W(t) {
|
|
208
|
+
var e;
|
|
209
|
+
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
211
210
|
}
|
|
212
|
-
function
|
|
211
|
+
function Ce(t) {
|
|
213
212
|
return {
|
|
214
|
-
onFetch: (
|
|
215
|
-
var
|
|
216
|
-
const
|
|
217
|
-
let
|
|
218
|
-
const
|
|
219
|
-
let
|
|
220
|
-
const C = (
|
|
221
|
-
Object.defineProperty(
|
|
213
|
+
onFetch: (e, n) => {
|
|
214
|
+
var m, f, h, x, v;
|
|
215
|
+
const s = e.options, a = (h = (f = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((x = e.state.data) == null ? void 0 : x.pages) || [], i = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
|
|
216
|
+
let u = { pages: [], pageParams: [] }, d = 0;
|
|
217
|
+
const c = async () => {
|
|
218
|
+
let g = !1;
|
|
219
|
+
const C = (b) => {
|
|
220
|
+
Object.defineProperty(b, "signal", {
|
|
222
221
|
enumerable: !0,
|
|
223
|
-
get: () => (
|
|
224
|
-
|
|
225
|
-
}),
|
|
222
|
+
get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
|
|
223
|
+
g = !0;
|
|
224
|
+
}), e.signal)
|
|
226
225
|
});
|
|
227
|
-
}, X =
|
|
228
|
-
if (
|
|
226
|
+
}, X = yt(e.options, e.fetchOptions), H = async (b, k, L) => {
|
|
227
|
+
if (g)
|
|
229
228
|
return Promise.reject();
|
|
230
|
-
if (
|
|
231
|
-
return Promise.resolve(
|
|
232
|
-
const
|
|
233
|
-
queryKey:
|
|
234
|
-
pageParam:
|
|
235
|
-
direction:
|
|
236
|
-
meta:
|
|
229
|
+
if (k == null && b.pages.length)
|
|
230
|
+
return Promise.resolve(b);
|
|
231
|
+
const V = {
|
|
232
|
+
queryKey: e.queryKey,
|
|
233
|
+
pageParam: k,
|
|
234
|
+
direction: L ? "backward" : "forward",
|
|
235
|
+
meta: e.options.meta
|
|
237
236
|
};
|
|
238
|
-
C(
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
), { maxPages:
|
|
237
|
+
C(V);
|
|
238
|
+
const it = await X(
|
|
239
|
+
V
|
|
240
|
+
), { maxPages: de } = e.options, he = L ? vt : bt;
|
|
242
241
|
return {
|
|
243
|
-
pages:
|
|
244
|
-
pageParams:
|
|
242
|
+
pages: he(b.pages, it, de),
|
|
243
|
+
pageParams: he(b.pageParams, k, de)
|
|
245
244
|
};
|
|
246
245
|
};
|
|
247
|
-
if (a &&
|
|
248
|
-
const
|
|
249
|
-
pages:
|
|
250
|
-
pageParams:
|
|
251
|
-
},
|
|
252
|
-
|
|
246
|
+
if (a && o.length) {
|
|
247
|
+
const b = a === "backward", k = b ? hn : Se, L = {
|
|
248
|
+
pages: o,
|
|
249
|
+
pageParams: i
|
|
250
|
+
}, V = k(s, L);
|
|
251
|
+
u = await H(L, V, b);
|
|
253
252
|
} else {
|
|
254
|
-
const
|
|
253
|
+
const b = t ?? o.length;
|
|
255
254
|
do {
|
|
256
|
-
const
|
|
257
|
-
if (
|
|
255
|
+
const k = d === 0 ? i[0] ?? s.initialPageParam : Se(s, u);
|
|
256
|
+
if (d > 0 && k == null)
|
|
258
257
|
break;
|
|
259
|
-
|
|
260
|
-
} while (
|
|
258
|
+
u = await H(u, k), d++;
|
|
259
|
+
} while (d < b);
|
|
261
260
|
}
|
|
262
|
-
return
|
|
261
|
+
return u;
|
|
263
262
|
};
|
|
264
|
-
|
|
265
|
-
var
|
|
266
|
-
return (C = (
|
|
267
|
-
|
|
268
|
-
|
|
263
|
+
e.options.persister ? e.fetchFn = () => {
|
|
264
|
+
var g, C;
|
|
265
|
+
return (C = (g = e.options).persister) == null ? void 0 : C.call(
|
|
266
|
+
g,
|
|
267
|
+
c,
|
|
269
268
|
{
|
|
270
|
-
queryKey:
|
|
271
|
-
meta:
|
|
272
|
-
signal:
|
|
269
|
+
queryKey: e.queryKey,
|
|
270
|
+
meta: e.options.meta,
|
|
271
|
+
signal: e.signal
|
|
273
272
|
},
|
|
274
|
-
|
|
273
|
+
n
|
|
275
274
|
);
|
|
276
|
-
} :
|
|
275
|
+
} : e.fetchFn = c;
|
|
277
276
|
}
|
|
278
277
|
};
|
|
279
278
|
}
|
|
280
|
-
function
|
|
281
|
-
const
|
|
282
|
-
return
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
s
|
|
286
|
-
|
|
279
|
+
function Se(t, { pages: e, pageParams: n }) {
|
|
280
|
+
const s = e.length - 1;
|
|
281
|
+
return e.length > 0 ? t.getNextPageParam(
|
|
282
|
+
e[s],
|
|
283
|
+
e,
|
|
284
|
+
n[s],
|
|
285
|
+
n
|
|
287
286
|
) : void 0;
|
|
288
287
|
}
|
|
289
|
-
function
|
|
290
|
-
var
|
|
291
|
-
return
|
|
288
|
+
function hn(t, { pages: e, pageParams: n }) {
|
|
289
|
+
var s;
|
|
290
|
+
return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, n[0], n) : void 0;
|
|
292
291
|
}
|
|
293
|
-
var
|
|
294
|
-
constructor(
|
|
295
|
-
j(this,
|
|
292
|
+
var p, E, A, T, q, Q, R, F, Ae, fn = (Ae = class {
|
|
293
|
+
constructor(t = {}) {
|
|
294
|
+
j(this, p);
|
|
296
295
|
j(this, E);
|
|
297
|
-
j(this,
|
|
298
|
-
j(this,
|
|
299
|
-
j(this,
|
|
296
|
+
j(this, A);
|
|
297
|
+
j(this, T);
|
|
298
|
+
j(this, q);
|
|
300
299
|
j(this, Q);
|
|
301
|
-
j(this,
|
|
302
|
-
j(this,
|
|
303
|
-
|
|
300
|
+
j(this, R);
|
|
301
|
+
j(this, F);
|
|
302
|
+
y(this, p, t.queryCache || new un()), y(this, E, t.mutationCache || new dn()), y(this, A, t.defaultOptions || {}), y(this, T, /* @__PURE__ */ new Map()), y(this, q, /* @__PURE__ */ new Map()), y(this, Q, 0);
|
|
304
303
|
}
|
|
305
304
|
mount() {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
})),
|
|
309
|
-
|
|
305
|
+
_(this, Q)._++, l(this, Q) === 1 && (y(this, R, jt.subscribe(async (t) => {
|
|
306
|
+
t && (await this.resumePausedMutations(), l(this, p).onFocus());
|
|
307
|
+
})), y(this, F, xe.subscribe(async (t) => {
|
|
308
|
+
t && (await this.resumePausedMutations(), l(this, p).onOnline());
|
|
310
309
|
})));
|
|
311
310
|
}
|
|
312
311
|
unmount() {
|
|
313
|
-
var
|
|
314
|
-
|
|
312
|
+
var t, e;
|
|
313
|
+
_(this, Q)._--, l(this, Q) === 0 && ((t = l(this, R)) == null || t.call(this), y(this, R, void 0), (e = l(this, F)) == null || e.call(this), y(this, F, void 0));
|
|
315
314
|
}
|
|
316
|
-
isFetching(
|
|
317
|
-
return
|
|
315
|
+
isFetching(t) {
|
|
316
|
+
return l(this, p).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
318
317
|
}
|
|
319
|
-
isMutating(
|
|
320
|
-
return
|
|
318
|
+
isMutating(t) {
|
|
319
|
+
return l(this, E).findAll({ ...t, status: "pending" }).length;
|
|
321
320
|
}
|
|
322
|
-
getQueryData(
|
|
323
|
-
var
|
|
324
|
-
const
|
|
325
|
-
return (
|
|
321
|
+
getQueryData(t) {
|
|
322
|
+
var n;
|
|
323
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
324
|
+
return (n = l(this, p).get(e.queryHash)) == null ? void 0 : n.state.data;
|
|
326
325
|
}
|
|
327
|
-
ensureQueryData(
|
|
328
|
-
const
|
|
329
|
-
return
|
|
326
|
+
ensureQueryData(t) {
|
|
327
|
+
const e = this.defaultQueryOptions(t), n = l(this, p).build(this, e), s = n.state.data;
|
|
328
|
+
return s === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && n.isStaleByTime(ye(e.staleTime, n)) && this.prefetchQuery(e), Promise.resolve(s));
|
|
330
329
|
}
|
|
331
|
-
getQueriesData(
|
|
332
|
-
return
|
|
333
|
-
const
|
|
334
|
-
return [
|
|
330
|
+
getQueriesData(t) {
|
|
331
|
+
return l(this, p).findAll(t).map(({ queryKey: e, state: n }) => {
|
|
332
|
+
const s = n.data;
|
|
333
|
+
return [e, s];
|
|
335
334
|
});
|
|
336
335
|
}
|
|
337
|
-
setQueryData(
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
),
|
|
341
|
-
if (
|
|
342
|
-
return
|
|
336
|
+
setQueryData(t, e, n) {
|
|
337
|
+
const s = this.defaultQueryOptions({ queryKey: t }), a = l(this, p).get(
|
|
338
|
+
s.queryHash
|
|
339
|
+
), o = a == null ? void 0 : a.state.data, i = wt(e, o);
|
|
340
|
+
if (i !== void 0)
|
|
341
|
+
return l(this, p).build(this, s).setData(i, { ...n, manual: !0 });
|
|
343
342
|
}
|
|
344
|
-
setQueriesData(
|
|
343
|
+
setQueriesData(t, e, n) {
|
|
345
344
|
return w.batch(
|
|
346
|
-
() =>
|
|
347
|
-
|
|
348
|
-
this.setQueryData(
|
|
345
|
+
() => l(this, p).findAll(t).map(({ queryKey: s }) => [
|
|
346
|
+
s,
|
|
347
|
+
this.setQueryData(s, e, n)
|
|
349
348
|
])
|
|
350
349
|
);
|
|
351
350
|
}
|
|
352
|
-
getQueryState(
|
|
353
|
-
var
|
|
354
|
-
const
|
|
355
|
-
return (
|
|
356
|
-
|
|
357
|
-
)) == null ? void 0 :
|
|
351
|
+
getQueryState(t) {
|
|
352
|
+
var n;
|
|
353
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
354
|
+
return (n = l(this, p).get(
|
|
355
|
+
e.queryHash
|
|
356
|
+
)) == null ? void 0 : n.state;
|
|
358
357
|
}
|
|
359
|
-
removeQueries(
|
|
360
|
-
const
|
|
358
|
+
removeQueries(t) {
|
|
359
|
+
const e = l(this, p);
|
|
361
360
|
w.batch(() => {
|
|
362
|
-
|
|
363
|
-
|
|
361
|
+
e.findAll(t).forEach((n) => {
|
|
362
|
+
e.remove(n);
|
|
364
363
|
});
|
|
365
364
|
});
|
|
366
365
|
}
|
|
367
|
-
resetQueries(
|
|
368
|
-
const
|
|
366
|
+
resetQueries(t, e) {
|
|
367
|
+
const n = l(this, p), s = {
|
|
369
368
|
type: "active",
|
|
370
|
-
...
|
|
369
|
+
...t
|
|
371
370
|
};
|
|
372
|
-
return w.batch(() => (
|
|
371
|
+
return w.batch(() => (n.findAll(t).forEach((a) => {
|
|
373
372
|
a.reset();
|
|
374
|
-
}), this.refetchQueries(
|
|
373
|
+
}), this.refetchQueries(s, e)));
|
|
375
374
|
}
|
|
376
|
-
cancelQueries(
|
|
377
|
-
const
|
|
378
|
-
() =>
|
|
375
|
+
cancelQueries(t, e = {}) {
|
|
376
|
+
const n = { revert: !0, ...e }, s = w.batch(
|
|
377
|
+
() => l(this, p).findAll(t).map((a) => a.cancel(n))
|
|
379
378
|
);
|
|
380
|
-
return Promise.all(
|
|
379
|
+
return Promise.all(s).then(N).catch(N);
|
|
381
380
|
}
|
|
382
|
-
invalidateQueries(
|
|
381
|
+
invalidateQueries(t, e = {}) {
|
|
383
382
|
return w.batch(() => {
|
|
384
|
-
if (
|
|
385
|
-
|
|
386
|
-
}), (
|
|
383
|
+
if (l(this, p).findAll(t).forEach((s) => {
|
|
384
|
+
s.invalidate();
|
|
385
|
+
}), (t == null ? void 0 : t.refetchType) === "none")
|
|
387
386
|
return Promise.resolve();
|
|
388
|
-
const
|
|
389
|
-
...
|
|
390
|
-
type: (
|
|
387
|
+
const n = {
|
|
388
|
+
...t,
|
|
389
|
+
type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
|
|
391
390
|
};
|
|
392
|
-
return this.refetchQueries(
|
|
391
|
+
return this.refetchQueries(n, e);
|
|
393
392
|
});
|
|
394
393
|
}
|
|
395
|
-
refetchQueries(
|
|
396
|
-
const
|
|
397
|
-
...
|
|
398
|
-
cancelRefetch:
|
|
399
|
-
},
|
|
400
|
-
() =>
|
|
401
|
-
let
|
|
402
|
-
return
|
|
394
|
+
refetchQueries(t, e = {}) {
|
|
395
|
+
const n = {
|
|
396
|
+
...e,
|
|
397
|
+
cancelRefetch: e.cancelRefetch ?? !0
|
|
398
|
+
}, s = w.batch(
|
|
399
|
+
() => l(this, p).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
400
|
+
let o = a.fetch(void 0, n);
|
|
401
|
+
return n.throwOnError || (o = o.catch(N)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
403
402
|
})
|
|
404
403
|
);
|
|
405
|
-
return Promise.all(
|
|
404
|
+
return Promise.all(s).then(N);
|
|
406
405
|
}
|
|
407
|
-
fetchQuery(
|
|
408
|
-
const
|
|
409
|
-
|
|
410
|
-
const
|
|
411
|
-
return
|
|
412
|
-
|
|
413
|
-
) ?
|
|
406
|
+
fetchQuery(t) {
|
|
407
|
+
const e = this.defaultQueryOptions(t);
|
|
408
|
+
e.retry === void 0 && (e.retry = !1);
|
|
409
|
+
const n = l(this, p).build(this, e);
|
|
410
|
+
return n.isStaleByTime(
|
|
411
|
+
ye(e.staleTime, n)
|
|
412
|
+
) ? n.fetch(e) : Promise.resolve(n.state.data);
|
|
414
413
|
}
|
|
415
|
-
prefetchQuery(
|
|
416
|
-
return this.fetchQuery(
|
|
414
|
+
prefetchQuery(t) {
|
|
415
|
+
return this.fetchQuery(t).then(N).catch(N);
|
|
417
416
|
}
|
|
418
|
-
fetchInfiniteQuery(
|
|
419
|
-
return
|
|
417
|
+
fetchInfiniteQuery(t) {
|
|
418
|
+
return t.behavior = Ce(t.pages), this.fetchQuery(t);
|
|
420
419
|
}
|
|
421
|
-
prefetchInfiniteQuery(
|
|
422
|
-
return this.fetchInfiniteQuery(
|
|
420
|
+
prefetchInfiniteQuery(t) {
|
|
421
|
+
return this.fetchInfiniteQuery(t).then(N).catch(N);
|
|
423
422
|
}
|
|
424
|
-
ensureInfiniteQueryData(
|
|
425
|
-
return
|
|
423
|
+
ensureInfiniteQueryData(t) {
|
|
424
|
+
return t.behavior = Ce(t.pages), this.ensureQueryData(t);
|
|
426
425
|
}
|
|
427
426
|
resumePausedMutations() {
|
|
428
|
-
return
|
|
427
|
+
return xe.isOnline() ? l(this, E).resumePausedMutations() : Promise.resolve();
|
|
429
428
|
}
|
|
430
429
|
getQueryCache() {
|
|
431
|
-
return
|
|
430
|
+
return l(this, p);
|
|
432
431
|
}
|
|
433
432
|
getMutationCache() {
|
|
434
|
-
return
|
|
433
|
+
return l(this, E);
|
|
435
434
|
}
|
|
436
435
|
getDefaultOptions() {
|
|
437
|
-
return
|
|
436
|
+
return l(this, A);
|
|
438
437
|
}
|
|
439
|
-
setDefaultOptions(
|
|
440
|
-
|
|
438
|
+
setDefaultOptions(t) {
|
|
439
|
+
y(this, A, t);
|
|
441
440
|
}
|
|
442
|
-
setQueryDefaults(
|
|
443
|
-
|
|
444
|
-
queryKey:
|
|
445
|
-
defaultOptions:
|
|
441
|
+
setQueryDefaults(t, e) {
|
|
442
|
+
l(this, T).set(ve(t), {
|
|
443
|
+
queryKey: t,
|
|
444
|
+
defaultOptions: e
|
|
446
445
|
});
|
|
447
446
|
}
|
|
448
|
-
getQueryDefaults(
|
|
449
|
-
const
|
|
450
|
-
return
|
|
451
|
-
|
|
452
|
-
}),
|
|
447
|
+
getQueryDefaults(t) {
|
|
448
|
+
const e = [...l(this, T).values()], n = {};
|
|
449
|
+
return e.forEach((s) => {
|
|
450
|
+
be(t, s.queryKey) && Object.assign(n, s.defaultOptions);
|
|
451
|
+
}), n;
|
|
453
452
|
}
|
|
454
|
-
setMutationDefaults(
|
|
455
|
-
|
|
456
|
-
mutationKey:
|
|
457
|
-
defaultOptions:
|
|
453
|
+
setMutationDefaults(t, e) {
|
|
454
|
+
l(this, q).set(ve(t), {
|
|
455
|
+
mutationKey: t,
|
|
456
|
+
defaultOptions: e
|
|
458
457
|
});
|
|
459
458
|
}
|
|
460
|
-
getMutationDefaults(
|
|
461
|
-
const
|
|
462
|
-
let
|
|
463
|
-
return
|
|
464
|
-
|
|
465
|
-
}),
|
|
466
|
-
}
|
|
467
|
-
defaultQueryOptions(
|
|
468
|
-
if (
|
|
469
|
-
return
|
|
470
|
-
const
|
|
471
|
-
...
|
|
472
|
-
...this.getQueryDefaults(
|
|
473
|
-
...
|
|
459
|
+
getMutationDefaults(t) {
|
|
460
|
+
const e = [...l(this, q).values()];
|
|
461
|
+
let n = {};
|
|
462
|
+
return e.forEach((s) => {
|
|
463
|
+
be(t, s.mutationKey) && (n = { ...n, ...s.defaultOptions });
|
|
464
|
+
}), n;
|
|
465
|
+
}
|
|
466
|
+
defaultQueryOptions(t) {
|
|
467
|
+
if (t._defaulted)
|
|
468
|
+
return t;
|
|
469
|
+
const e = {
|
|
470
|
+
...l(this, A).queries,
|
|
471
|
+
...this.getQueryDefaults(t.queryKey),
|
|
472
|
+
...t,
|
|
474
473
|
_defaulted: !0
|
|
475
474
|
};
|
|
476
|
-
return
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
)),
|
|
480
|
-
}
|
|
481
|
-
defaultMutationOptions(
|
|
482
|
-
return
|
|
483
|
-
...
|
|
484
|
-
...(
|
|
485
|
-
...
|
|
475
|
+
return e.queryHash || (e.queryHash = Fe(
|
|
476
|
+
e.queryKey,
|
|
477
|
+
e
|
|
478
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === Pt && (e.enabled = !1), e;
|
|
479
|
+
}
|
|
480
|
+
defaultMutationOptions(t) {
|
|
481
|
+
return t != null && t._defaulted ? t : {
|
|
482
|
+
...l(this, A).mutations,
|
|
483
|
+
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
484
|
+
...t,
|
|
486
485
|
_defaulted: !0
|
|
487
486
|
};
|
|
488
487
|
}
|
|
489
488
|
clear() {
|
|
490
|
-
|
|
489
|
+
l(this, p).clear(), l(this, E).clear();
|
|
491
490
|
}
|
|
492
|
-
},
|
|
493
|
-
function
|
|
494
|
-
return
|
|
491
|
+
}, p = new WeakMap(), E = new WeakMap(), A = new WeakMap(), T = new WeakMap(), q = new WeakMap(), Q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), Ae);
|
|
492
|
+
function mn(t) {
|
|
493
|
+
return t;
|
|
495
494
|
}
|
|
496
|
-
function
|
|
497
|
-
var
|
|
498
|
-
if (typeof
|
|
495
|
+
function ke(t, e, n) {
|
|
496
|
+
var d, c;
|
|
497
|
+
if (typeof e != "object" || e === null)
|
|
499
498
|
return;
|
|
500
|
-
const
|
|
501
|
-
|
|
502
|
-
var h,
|
|
503
|
-
|
|
504
|
-
|
|
499
|
+
const s = t.getMutationCache(), a = t.getQueryCache(), o = ((d = n == null ? void 0 : n.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? mn, i = e.mutations || [], u = e.queries || [];
|
|
500
|
+
i.forEach(({ state: m, ...f }) => {
|
|
501
|
+
var h, x;
|
|
502
|
+
s.build(
|
|
503
|
+
t,
|
|
505
504
|
{
|
|
506
|
-
...(h =
|
|
507
|
-
...(
|
|
508
|
-
...
|
|
505
|
+
...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
|
|
506
|
+
...(x = n == null ? void 0 : n.defaultOptions) == null ? void 0 : x.mutations,
|
|
507
|
+
...f
|
|
509
508
|
},
|
|
510
|
-
|
|
509
|
+
m
|
|
511
510
|
);
|
|
512
|
-
}),
|
|
513
|
-
var X,
|
|
514
|
-
let
|
|
515
|
-
const C =
|
|
516
|
-
if (
|
|
517
|
-
if (
|
|
518
|
-
const { fetchStatus:
|
|
519
|
-
|
|
520
|
-
...
|
|
511
|
+
}), u.forEach(({ queryKey: m, state: f, queryHash: h, meta: x, promise: v }) => {
|
|
512
|
+
var X, H;
|
|
513
|
+
let g = a.get(h);
|
|
514
|
+
const C = f.data === void 0 ? f.data : o(f.data);
|
|
515
|
+
if (g) {
|
|
516
|
+
if (g.state.dataUpdatedAt < f.dataUpdatedAt) {
|
|
517
|
+
const { fetchStatus: b, ...k } = f;
|
|
518
|
+
g.setState({
|
|
519
|
+
...k,
|
|
521
520
|
data: C
|
|
522
521
|
});
|
|
523
522
|
}
|
|
524
523
|
} else
|
|
525
|
-
|
|
526
|
-
|
|
524
|
+
g = a.build(
|
|
525
|
+
t,
|
|
527
526
|
{
|
|
528
|
-
...(X =
|
|
529
|
-
...(
|
|
530
|
-
queryKey:
|
|
527
|
+
...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
|
|
528
|
+
...(H = n == null ? void 0 : n.defaultOptions) == null ? void 0 : H.queries,
|
|
529
|
+
queryKey: m,
|
|
531
530
|
queryHash: h,
|
|
532
|
-
meta:
|
|
531
|
+
meta: x
|
|
533
532
|
},
|
|
534
533
|
// Reset fetch status to idle to avoid
|
|
535
534
|
// query being stuck in fetching state upon hydration
|
|
536
535
|
{
|
|
537
|
-
...
|
|
536
|
+
...f,
|
|
538
537
|
data: C,
|
|
539
538
|
fetchStatus: "idle"
|
|
540
539
|
}
|
|
541
540
|
);
|
|
542
|
-
if (
|
|
543
|
-
const
|
|
544
|
-
|
|
541
|
+
if (v) {
|
|
542
|
+
const b = Promise.resolve(v).then(o);
|
|
543
|
+
g.fetch(void 0, { initialPromise: b });
|
|
545
544
|
}
|
|
546
545
|
});
|
|
547
546
|
}
|
|
548
|
-
var
|
|
549
|
-
children:
|
|
550
|
-
options:
|
|
551
|
-
state:
|
|
552
|
-
queryClient:
|
|
547
|
+
var gn = ({
|
|
548
|
+
children: t,
|
|
549
|
+
options: e = {},
|
|
550
|
+
state: n,
|
|
551
|
+
queryClient: s
|
|
553
552
|
}) => {
|
|
554
|
-
const a =
|
|
555
|
-
return
|
|
556
|
-
if (
|
|
557
|
-
if (typeof
|
|
553
|
+
const a = Ct(s), [o, i] = K.useState(), u = K.useRef(e);
|
|
554
|
+
return u.current = e, K.useMemo(() => {
|
|
555
|
+
if (n) {
|
|
556
|
+
if (typeof n != "object")
|
|
558
557
|
return;
|
|
559
|
-
const
|
|
560
|
-
for (const h of
|
|
561
|
-
const
|
|
562
|
-
if (!
|
|
563
|
-
|
|
558
|
+
const d = a.getQueryCache(), c = n.queries || [], m = [], f = [];
|
|
559
|
+
for (const h of c) {
|
|
560
|
+
const x = d.get(h.queryHash);
|
|
561
|
+
if (!x)
|
|
562
|
+
m.push(h);
|
|
564
563
|
else {
|
|
565
|
-
const
|
|
564
|
+
const v = h.state.dataUpdatedAt > x.state.dataUpdatedAt, g = o == null ? void 0 : o.find(
|
|
566
565
|
(C) => C.queryHash === h.queryHash
|
|
567
566
|
);
|
|
568
|
-
|
|
567
|
+
v && (!g || h.state.dataUpdatedAt > g.state.dataUpdatedAt) && f.push(h);
|
|
569
568
|
}
|
|
570
569
|
}
|
|
571
|
-
|
|
572
|
-
(h) => h ? [...h, ...
|
|
570
|
+
m.length > 0 && ke(a, { queries: m }, u.current), f.length > 0 && i(
|
|
571
|
+
(h) => h ? [...h, ...f] : f
|
|
573
572
|
);
|
|
574
573
|
}
|
|
575
|
-
}, [a,
|
|
576
|
-
|
|
577
|
-
}, [a,
|
|
574
|
+
}, [a, o, n]), K.useEffect(() => {
|
|
575
|
+
o && (ke(a, { queries: o }, u.current), i(void 0));
|
|
576
|
+
}, [a, o]), t;
|
|
578
577
|
};
|
|
579
|
-
function
|
|
580
|
-
return /* @__PURE__ */
|
|
578
|
+
function pn({ error: t }) {
|
|
579
|
+
return /* @__PURE__ */ r.jsx(qe, { error: t });
|
|
581
580
|
}
|
|
582
581
|
/**
|
|
583
582
|
* react-router v7.1.3
|
|
@@ -589,453 +588,214 @@ function ws({ error: e }) {
|
|
|
589
588
|
*
|
|
590
589
|
* @license MIT
|
|
591
590
|
*/
|
|
592
|
-
function
|
|
593
|
-
return /* @__PURE__ */
|
|
591
|
+
function xn(t) {
|
|
592
|
+
return /* @__PURE__ */ K.createElement(ct, { flushSync: qt.flushSync, ...t });
|
|
594
593
|
}
|
|
595
|
-
const
|
|
594
|
+
const yn = new fn({
|
|
596
595
|
defaultOptions: {
|
|
597
596
|
queries: {
|
|
598
597
|
staleTime: 1e3 * 60 * 5
|
|
599
598
|
}
|
|
600
599
|
}
|
|
601
|
-
}),
|
|
602
|
-
router:
|
|
603
|
-
hydrate:
|
|
604
|
-
}) => /* @__PURE__ */
|
|
605
|
-
router:
|
|
606
|
-
context:
|
|
607
|
-
queryClient:
|
|
608
|
-
helmetContext:
|
|
609
|
-
}) => /* @__PURE__ */
|
|
610
|
-
var
|
|
611
|
-
function
|
|
612
|
-
return
|
|
613
|
-
(function(
|
|
614
|
-
|
|
615
|
-
})(
|
|
600
|
+
}), vn = ({
|
|
601
|
+
router: t,
|
|
602
|
+
hydrate: e = !1
|
|
603
|
+
}) => /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(ze, { client: yn, children: /* @__PURE__ */ r.jsx(gn, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Qe, { children: /* @__PURE__ */ r.jsx(re.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(xn, { router: t }) }) }) }) }) }), bn = ({
|
|
604
|
+
router: t,
|
|
605
|
+
context: e,
|
|
606
|
+
queryClient: n,
|
|
607
|
+
helmetContext: s
|
|
608
|
+
}) => /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(ze, { client: n, children: /* @__PURE__ */ r.jsx(Qe, { context: s, children: /* @__PURE__ */ r.jsx(ut, { router: t, context: e }) }) }) });
|
|
609
|
+
var $ = { exports: {} }, jn = $.exports, De;
|
|
610
|
+
function wn() {
|
|
611
|
+
return De || (De = 1, function(t, e) {
|
|
612
|
+
(function(n, s) {
|
|
613
|
+
s(e, Ot);
|
|
614
|
+
})(jn, function(n, s) {
|
|
616
615
|
const a = {
|
|
617
616
|
delay: 500,
|
|
618
617
|
minDuration: 200,
|
|
619
618
|
ssr: !0
|
|
620
619
|
};
|
|
621
|
-
function
|
|
622
|
-
const [
|
|
623
|
-
return
|
|
624
|
-
|
|
625
|
-
}, []),
|
|
620
|
+
function o() {
|
|
621
|
+
const [u, d] = s.useState(!0);
|
|
622
|
+
return s.useEffect(() => {
|
|
623
|
+
d(!1);
|
|
624
|
+
}, []), u;
|
|
626
625
|
}
|
|
627
|
-
function
|
|
628
|
-
|
|
629
|
-
const
|
|
630
|
-
return
|
|
631
|
-
if (
|
|
632
|
-
clearTimeout(
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
if (!
|
|
626
|
+
function i(u, d) {
|
|
627
|
+
d = Object.assign({}, a, d);
|
|
628
|
+
const c = o() && d.ssr, m = c && u ? "DISPLAY" : "IDLE", [f, h] = s.useState(m), x = s.useRef(null);
|
|
629
|
+
return s.useEffect(() => {
|
|
630
|
+
if (u && (f === "IDLE" || c)) {
|
|
631
|
+
clearTimeout(x.current);
|
|
632
|
+
const v = c ? 0 : d.delay;
|
|
633
|
+
x.current = setTimeout(() => {
|
|
634
|
+
if (!u)
|
|
636
635
|
return h("IDLE");
|
|
637
|
-
|
|
636
|
+
x.current = setTimeout(() => {
|
|
638
637
|
h("EXPIRE");
|
|
639
|
-
},
|
|
640
|
-
},
|
|
638
|
+
}, d.minDuration), h("DISPLAY");
|
|
639
|
+
}, v), c || h("DELAY");
|
|
641
640
|
}
|
|
642
|
-
!
|
|
643
|
-
}, [
|
|
641
|
+
!u && f !== "DISPLAY" && (clearTimeout(x.current), h("IDLE"));
|
|
642
|
+
}, [u, f, d.delay, d.minDuration, c]), s.useEffect(() => () => clearTimeout(x.current), []), f === "DISPLAY" || f === "EXPIRE";
|
|
644
643
|
}
|
|
645
|
-
|
|
644
|
+
n.defaultOptions = a, n.useSpinDelay = i;
|
|
646
645
|
});
|
|
647
|
-
}(
|
|
646
|
+
}($, $.exports)), $.exports;
|
|
648
647
|
}
|
|
649
|
-
var
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
purple: "bg-purple-400 dark:bg-purple-600",
|
|
656
|
-
indigo: "bg-indigo-400 dark:bg-indigo-600",
|
|
657
|
-
gray: "bg-gray-400 dark:bg-gray-600"
|
|
658
|
-
}, As = {
|
|
659
|
-
green: "text-green-500 dark:text-green-600",
|
|
660
|
-
blue: "text-sky-400 dark:text-sky-600",
|
|
661
|
-
yellow: "text-yellow-400 dark:text-yellow-600",
|
|
662
|
-
red: "text-red-400 dark:text-red-600",
|
|
663
|
-
purple: "text-purple-400 dark:text-purple-600",
|
|
664
|
-
indigo: "text-indigo-400 dark:text-indigo-600",
|
|
665
|
-
gray: "text-gray-400 dark:text-gray-600"
|
|
666
|
-
}, ie = ({
|
|
667
|
-
color: e,
|
|
668
|
-
label: t,
|
|
669
|
-
className: s,
|
|
670
|
-
invert: r
|
|
671
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
672
|
-
"span",
|
|
673
|
-
{
|
|
674
|
-
className: O(
|
|
675
|
-
"mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
|
|
676
|
-
r ? As[e] : Ds[e],
|
|
677
|
-
s
|
|
678
|
-
),
|
|
679
|
-
children: t
|
|
680
|
-
}
|
|
681
|
-
), Es = ({
|
|
682
|
-
category: e,
|
|
683
|
-
onRequestClose: t
|
|
684
|
-
}) => {
|
|
685
|
-
var h, p;
|
|
686
|
-
const s = Qt(e), [r, a] = T(!1), i = e.collapsible ?? !0, o = e.collapsed ?? !0, d = !!(!i || !o || s), [u, l] = T(d), f = pt(((h = e.link) == null ? void 0 : h.id) ?? "");
|
|
687
|
-
F(() => {
|
|
688
|
-
s && l(!0);
|
|
689
|
-
}, [s]);
|
|
690
|
-
const g = i && /* @__PURE__ */ n.jsx(
|
|
691
|
-
"button",
|
|
692
|
-
{
|
|
693
|
-
type: "button",
|
|
694
|
-
onClick: (x) => {
|
|
695
|
-
x.preventDefault(), l((m) => !m), a(!0);
|
|
696
|
-
},
|
|
697
|
-
children: /* @__PURE__ */ n.jsx(
|
|
698
|
-
Zt,
|
|
699
|
-
{
|
|
700
|
-
size: 16,
|
|
701
|
-
className: O(
|
|
702
|
-
r && "transition",
|
|
703
|
-
"shrink-0 group-data-[state=open]:rotate-90"
|
|
704
|
-
)
|
|
705
|
-
}
|
|
706
|
-
)
|
|
707
|
-
}
|
|
708
|
-
);
|
|
709
|
-
return /* @__PURE__ */ n.jsxs(
|
|
710
|
-
re.Root,
|
|
711
|
-
{
|
|
712
|
-
className: "flex flex-col",
|
|
713
|
-
defaultOpen: d,
|
|
714
|
-
open: u,
|
|
715
|
-
onOpenChange: () => l(!0),
|
|
716
|
-
children: [
|
|
717
|
-
/* @__PURE__ */ n.jsx(re.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ n.jsxs(
|
|
718
|
-
"div",
|
|
719
|
-
{
|
|
720
|
-
onClick: () => a(!0),
|
|
721
|
-
className: U({
|
|
722
|
-
isActive: !1,
|
|
723
|
-
className: [
|
|
724
|
-
"text-start font-medium",
|
|
725
|
-
i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
726
|
-
]
|
|
727
|
-
}),
|
|
728
|
-
children: [
|
|
729
|
-
e.icon && /* @__PURE__ */ n.jsx(
|
|
730
|
-
e.icon,
|
|
731
|
-
{
|
|
732
|
-
size: 16,
|
|
733
|
-
className: O("align-[-0.125em] ", f && "text-primary")
|
|
734
|
-
}
|
|
735
|
-
),
|
|
736
|
-
((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ n.jsx(
|
|
737
|
-
se,
|
|
738
|
-
{
|
|
739
|
-
to: R(e.link.id),
|
|
740
|
-
className: "flex-1",
|
|
741
|
-
onClick: () => {
|
|
742
|
-
f && !u && l(!0);
|
|
743
|
-
},
|
|
744
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
745
|
-
"div",
|
|
746
|
-
{
|
|
747
|
-
className: O(
|
|
748
|
-
"flex items-center gap-2 justify-between w-full",
|
|
749
|
-
f ? "text-primary" : "text-foreground/80"
|
|
750
|
-
),
|
|
751
|
-
children: [
|
|
752
|
-
/* @__PURE__ */ n.jsx("div", { className: "truncate", children: e.label }),
|
|
753
|
-
g
|
|
754
|
-
]
|
|
755
|
-
}
|
|
756
|
-
)
|
|
757
|
-
}
|
|
758
|
-
) : /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
759
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
|
|
760
|
-
g
|
|
761
|
-
] })
|
|
762
|
-
]
|
|
763
|
-
}
|
|
764
|
-
) }),
|
|
765
|
-
/* @__PURE__ */ n.jsx(
|
|
766
|
-
re.Content,
|
|
767
|
-
{
|
|
768
|
-
className: O(
|
|
769
|
-
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
770
|
-
r && "CollapsibleContent",
|
|
771
|
-
"ms-6 my-1"
|
|
772
|
-
),
|
|
773
|
-
children: /* @__PURE__ */ n.jsx("ul", { className: "relative after:absolute after:-left-[--padding-nav-item] after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border", children: e.items.map((x) => /* @__PURE__ */ n.jsx(
|
|
774
|
-
de,
|
|
775
|
-
{
|
|
776
|
-
onRequestClose: t,
|
|
777
|
-
item: x
|
|
778
|
-
},
|
|
779
|
-
("id" in x ? x.id : "") + ("href" in x ? x.href : "") + x.label
|
|
780
|
-
)) })
|
|
781
|
-
}
|
|
782
|
-
)
|
|
783
|
-
]
|
|
784
|
-
}
|
|
785
|
-
);
|
|
786
|
-
}, U = Gt(
|
|
787
|
-
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent",
|
|
788
|
-
{
|
|
789
|
-
variants: {
|
|
790
|
-
isActive: {
|
|
791
|
-
true: "text-primary font-medium",
|
|
792
|
-
false: "text-foreground/80"
|
|
793
|
-
},
|
|
794
|
-
isMuted: {
|
|
795
|
-
true: "text-foreground/30",
|
|
796
|
-
false: ""
|
|
797
|
-
}
|
|
798
|
-
},
|
|
799
|
-
defaultVariants: {
|
|
800
|
-
isActive: !1
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
), tt = "data-anchor", de = ({
|
|
804
|
-
item: e,
|
|
805
|
-
onRequestClose: t
|
|
806
|
-
}) => {
|
|
807
|
-
var a, i;
|
|
808
|
-
const { activeAnchor: s } = me(), [r] = xt();
|
|
809
|
-
switch (e.type) {
|
|
810
|
-
case "category":
|
|
811
|
-
return /* @__PURE__ */ n.jsx(Es, { category: e, onRequestClose: t });
|
|
812
|
-
case "doc":
|
|
813
|
-
return /* @__PURE__ */ n.jsxs(
|
|
814
|
-
se,
|
|
815
|
-
{
|
|
816
|
-
className: ({ isActive: o }) => U({ isActive: o }),
|
|
817
|
-
to: R(e.id),
|
|
818
|
-
onClick: t,
|
|
819
|
-
children: [
|
|
820
|
-
e.icon && /* @__PURE__ */ n.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
821
|
-
e.badge ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
822
|
-
/* @__PURE__ */ n.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
|
|
823
|
-
/* @__PURE__ */ n.jsx(ie, { ...e.badge })
|
|
824
|
-
] }) : e.label
|
|
825
|
-
]
|
|
826
|
-
}
|
|
827
|
-
);
|
|
828
|
-
case "link":
|
|
829
|
-
return e.href.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
830
|
-
ts,
|
|
831
|
-
{
|
|
832
|
-
to: { hash: e.href, search: r.toString() },
|
|
833
|
-
[tt]: e.href.slice(1),
|
|
834
|
-
className: U({
|
|
835
|
-
isActive: e.href.slice(1) === s,
|
|
836
|
-
className: ((a = e.badge) == null ? void 0 : a.placement) !== "start" && "justify-between"
|
|
837
|
-
}),
|
|
838
|
-
onClick: t,
|
|
839
|
-
children: e.badge ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
840
|
-
/* @__PURE__ */ n.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
841
|
-
/* @__PURE__ */ n.jsx(ie, { ...e.badge })
|
|
842
|
-
] }) : /* @__PURE__ */ n.jsx("span", { className: "break-all", children: e.label })
|
|
843
|
-
}
|
|
844
|
-
) : e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
|
|
845
|
-
"a",
|
|
846
|
-
{
|
|
847
|
-
className: U(),
|
|
848
|
-
href: e.href,
|
|
849
|
-
target: "_blank",
|
|
850
|
-
rel: "noopener noreferrer",
|
|
851
|
-
onClick: t,
|
|
852
|
-
children: [
|
|
853
|
-
/* @__PURE__ */ n.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
854
|
-
/* @__PURE__ */ n.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ n.jsx(Vt, { className: "inline -translate-y-0.5", size: 12 }) })
|
|
855
|
-
]
|
|
856
|
-
}
|
|
857
|
-
) : /* @__PURE__ */ n.jsx(
|
|
858
|
-
se,
|
|
859
|
-
{
|
|
860
|
-
className: U({
|
|
861
|
-
className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
|
|
862
|
-
}),
|
|
863
|
-
to: e.href,
|
|
864
|
-
children: e.badge ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
865
|
-
/* @__PURE__ */ n.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
866
|
-
/* @__PURE__ */ n.jsx(ie, { ...e.badge })
|
|
867
|
-
] }) : /* @__PURE__ */ n.jsx("span", { className: "break-all", children: e.label })
|
|
868
|
-
}
|
|
869
|
-
);
|
|
870
|
-
}
|
|
871
|
-
}, Is = (e, t = { block: "center" }) => {
|
|
872
|
-
if (!e) return;
|
|
873
|
-
const s = e.getBoundingClientRect();
|
|
874
|
-
s.top >= 0 && s.left >= 0 && s.bottom <= (window.innerHeight || document.documentElement.clientHeight) && s.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
875
|
-
}, Qs = () => {
|
|
876
|
-
const e = he(), { setActiveAnchor: t } = me();
|
|
877
|
-
F(() => {
|
|
878
|
-
if (!e.hash) return;
|
|
879
|
-
const s = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
880
|
-
const a = document.getElementById(s), i = document.querySelector(`[${tt}="${s}"]`);
|
|
881
|
-
return a ? (a.scrollIntoView(), Is(i), requestIdleCallback(() => t(s)), !0) : !1;
|
|
882
|
-
};
|
|
883
|
-
if (!r()) {
|
|
884
|
-
const a = new MutationObserver((i, o) => {
|
|
885
|
-
r() && o.disconnect();
|
|
886
|
-
});
|
|
887
|
-
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
888
|
-
}
|
|
889
|
-
}, [e.hash, t]);
|
|
890
|
-
}, Ts = () => {
|
|
891
|
-
const e = he(), t = pe(e.pathname);
|
|
892
|
-
F(() => {
|
|
893
|
-
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
894
|
-
}, [e.pathname]);
|
|
648
|
+
var Pn = wn();
|
|
649
|
+
const Cn = () => {
|
|
650
|
+
const t = Ie(), e = ce(t.pathname);
|
|
651
|
+
U(() => {
|
|
652
|
+
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
653
|
+
}, [t.pathname]);
|
|
895
654
|
};
|
|
896
|
-
function
|
|
897
|
-
className:
|
|
898
|
-
...
|
|
655
|
+
function Sn({
|
|
656
|
+
className: t,
|
|
657
|
+
...e
|
|
899
658
|
}) {
|
|
900
|
-
return /* @__PURE__ */
|
|
659
|
+
return /* @__PURE__ */ r.jsx(
|
|
901
660
|
"div",
|
|
902
661
|
{
|
|
903
|
-
className:
|
|
904
|
-
...
|
|
662
|
+
className: B("animate-pulse rounded-md bg-muted", t),
|
|
663
|
+
...e
|
|
905
664
|
}
|
|
906
665
|
);
|
|
907
666
|
}
|
|
908
|
-
const
|
|
667
|
+
const kn = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Dn = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Mn = (t) => "renderSearch" in t && typeof t.renderSearch == "function", Nn = (t) => "initialize" in t && typeof t.initialize == "function", On = (t) => "getHead" in t && typeof t.getHead == "function", En = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", An = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Me = {
|
|
909
668
|
info: "bg-blue-500",
|
|
910
669
|
note: "bg-gray-500",
|
|
911
670
|
tip: "bg-green-600",
|
|
912
671
|
caution: "bg-orange-500",
|
|
913
672
|
danger: "bg-rose-500"
|
|
914
|
-
},
|
|
915
|
-
const { page:
|
|
916
|
-
if (!(
|
|
917
|
-
return /* @__PURE__ */
|
|
918
|
-
const
|
|
919
|
-
return /* @__PURE__ */
|
|
673
|
+
}, Qn = () => {
|
|
674
|
+
const { page: t } = I(), [e, n] = z(!0);
|
|
675
|
+
if (!(t != null && t.banner) || !e)
|
|
676
|
+
return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
677
|
+
const s = t.banner.color && t.banner.color in Me ? Me[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = s ? {} : { backgroundColor: t.banner.color };
|
|
678
|
+
return /* @__PURE__ */ r.jsxs(
|
|
920
679
|
"div",
|
|
921
680
|
{
|
|
922
|
-
className:
|
|
681
|
+
className: B(
|
|
923
682
|
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
|
|
924
|
-
|
|
683
|
+
s
|
|
925
684
|
),
|
|
926
685
|
style: a,
|
|
927
686
|
children: [
|
|
928
|
-
/* @__PURE__ */
|
|
929
|
-
|
|
687
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full", children: t.banner.message }),
|
|
688
|
+
t.banner.dismissible && /* @__PURE__ */ r.jsx(
|
|
930
689
|
"button",
|
|
931
690
|
{
|
|
932
691
|
type: "button",
|
|
933
692
|
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
934
|
-
onClick: () =>
|
|
935
|
-
children: /* @__PURE__ */
|
|
693
|
+
onClick: () => n(!1),
|
|
694
|
+
children: /* @__PURE__ */ r.jsx(Rt, { size: 16 })
|
|
936
695
|
}
|
|
937
696
|
)
|
|
938
697
|
]
|
|
939
698
|
}
|
|
940
699
|
);
|
|
941
|
-
},
|
|
942
|
-
const
|
|
943
|
-
|
|
944
|
-
if (
|
|
700
|
+
}, We = ({ className: t }) => {
|
|
701
|
+
const e = I(), [n, s] = z(!1), a = Et(() => s(!1), []);
|
|
702
|
+
U(() => {
|
|
703
|
+
if (n)
|
|
945
704
|
return;
|
|
946
|
-
function
|
|
947
|
-
|
|
705
|
+
function i(u) {
|
|
706
|
+
u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), s(!0));
|
|
948
707
|
}
|
|
949
|
-
return window.addEventListener("keydown",
|
|
950
|
-
window.removeEventListener("keydown",
|
|
708
|
+
return window.addEventListener("keydown", i), () => {
|
|
709
|
+
window.removeEventListener("keydown", i);
|
|
951
710
|
};
|
|
952
|
-
}, [
|
|
953
|
-
const
|
|
954
|
-
return
|
|
955
|
-
/* @__PURE__ */
|
|
711
|
+
}, [n, s]);
|
|
712
|
+
const o = e.plugins.find(Mn);
|
|
713
|
+
return o ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
|
|
714
|
+
/* @__PURE__ */ r.jsxs(
|
|
956
715
|
"button",
|
|
957
716
|
{
|
|
958
717
|
type: "button",
|
|
959
|
-
onClick: () =>
|
|
718
|
+
onClick: () => s(!0),
|
|
960
719
|
className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
|
|
961
720
|
children: [
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
-
/* @__PURE__ */
|
|
721
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
722
|
+
/* @__PURE__ */ r.jsx(Ft, { size: 14 }),
|
|
964
723
|
"Search"
|
|
965
724
|
] }),
|
|
966
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ r.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
967
726
|
]
|
|
968
727
|
}
|
|
969
728
|
),
|
|
970
|
-
/* @__PURE__ */
|
|
971
|
-
isOpen:
|
|
729
|
+
/* @__PURE__ */ r.jsx(ue, { fallback: null, children: o.renderSearch({
|
|
730
|
+
isOpen: n,
|
|
972
731
|
onClose: a
|
|
973
732
|
}) })
|
|
974
733
|
] }) : null;
|
|
975
|
-
},
|
|
976
|
-
const { resolvedTheme:
|
|
977
|
-
return /* @__PURE__ */
|
|
978
|
-
|
|
734
|
+
}, Je = () => {
|
|
735
|
+
const { resolvedTheme: t, setTheme: e } = an(), n = t === "dark" ? zt : Bt;
|
|
736
|
+
return /* @__PURE__ */ r.jsx(
|
|
737
|
+
ae,
|
|
979
738
|
{
|
|
980
739
|
variant: "ghost",
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
740
|
+
size: "icon",
|
|
741
|
+
"aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
|
|
742
|
+
className: B(t ? "opacity-100" : "opacity-0"),
|
|
743
|
+
onClick: () => e(t === "dark" ? "light" : "dark"),
|
|
744
|
+
children: /* @__PURE__ */ r.jsx(n, { size: 18 })
|
|
985
745
|
}
|
|
986
|
-
)
|
|
987
|
-
},
|
|
988
|
-
const { topNavigation:
|
|
989
|
-
return
|
|
990
|
-
},
|
|
991
|
-
id:
|
|
992
|
-
label:
|
|
993
|
-
default:
|
|
746
|
+
);
|
|
747
|
+
}, Ge = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", In = () => {
|
|
748
|
+
const { topNavigation: t } = I(), { isAuthenticated: e } = Z();
|
|
749
|
+
return t.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(ue, { children: /* @__PURE__ */ r.jsx("nav", { className: "hidden lg:block text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(Ge(e)).map((n) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(et, { ...n }) }, n.id)) }) }) });
|
|
750
|
+
}, et = ({
|
|
751
|
+
id: t,
|
|
752
|
+
label: e,
|
|
753
|
+
default: n
|
|
994
754
|
}) => {
|
|
995
|
-
var
|
|
996
|
-
const { sidebars:
|
|
997
|
-
if (
|
|
998
|
-
}) :
|
|
999
|
-
if (!
|
|
1000
|
-
throw new
|
|
1001
|
-
developerHint: `No links found in top navigation for '${
|
|
755
|
+
var c;
|
|
756
|
+
const { sidebars: s } = I(), a = s[t], o = Be(), i = !!oe().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = n ?? (a ? St(a, (m) => {
|
|
757
|
+
if (m.type === "doc") return se(m.id);
|
|
758
|
+
}) : se(t));
|
|
759
|
+
if (!d)
|
|
760
|
+
throw new cn("Page not found.", {
|
|
761
|
+
developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
1002
762
|
});
|
|
1003
763
|
return (
|
|
1004
764
|
// We don't use isActive here because it has to be inside the sidebar,
|
|
1005
765
|
// the top nav id doesn't necessarily start with the sidebar id
|
|
1006
|
-
/* @__PURE__ */
|
|
1007
|
-
|
|
766
|
+
/* @__PURE__ */ r.jsx(
|
|
767
|
+
dt,
|
|
1008
768
|
{
|
|
1009
|
-
className: ({ isPending:
|
|
769
|
+
className: ({ isPending: m }) => ln(
|
|
1010
770
|
"block lg:py-3.5 font-medium -mb-px",
|
|
1011
|
-
|
|
771
|
+
u || m ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
1012
772
|
),
|
|
1013
|
-
to:
|
|
1014
|
-
children:
|
|
773
|
+
to: d,
|
|
774
|
+
children: e
|
|
1015
775
|
}
|
|
1016
776
|
)
|
|
1017
777
|
);
|
|
1018
|
-
},
|
|
1019
|
-
const { topNavigation:
|
|
1020
|
-
return /* @__PURE__ */
|
|
1021
|
-
|
|
778
|
+
}, Tn = () => {
|
|
779
|
+
const { topNavigation: t } = I(), { isAuthenticated: e } = Z(), [n, s] = z(!1);
|
|
780
|
+
return /* @__PURE__ */ r.jsxs(
|
|
781
|
+
Ze,
|
|
1022
782
|
{
|
|
1023
783
|
direction: "right",
|
|
1024
|
-
open:
|
|
1025
|
-
onOpenChange: (a) =>
|
|
784
|
+
open: n,
|
|
785
|
+
onOpenChange: (a) => s(a),
|
|
1026
786
|
children: [
|
|
1027
|
-
/* @__PURE__ */
|
|
1028
|
-
/* @__PURE__ */
|
|
1029
|
-
|
|
787
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Ue, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Ht, { size: 22 }) }) }),
|
|
788
|
+
/* @__PURE__ */ r.jsx(
|
|
789
|
+
Ye,
|
|
1030
790
|
{
|
|
1031
791
|
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
1032
792
|
"aria-describedby": void 0,
|
|
1033
|
-
children: /* @__PURE__ */
|
|
1034
|
-
/* @__PURE__ */
|
|
1035
|
-
/* @__PURE__ */
|
|
1036
|
-
/* @__PURE__ */
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
|
|
793
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
794
|
+
/* @__PURE__ */ r.jsx(_e, { children: /* @__PURE__ */ r.jsx(Xe, { children: "Navigation" }) }),
|
|
795
|
+
/* @__PURE__ */ r.jsx(We, { className: "flex p-4" }),
|
|
796
|
+
/* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
797
|
+
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Je, {}) }),
|
|
798
|
+
t.filter(Ge(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ r.jsx(et, { ...a }) }) }, a.label))
|
|
1039
799
|
] })
|
|
1040
800
|
] })
|
|
1041
801
|
}
|
|
@@ -1043,192 +803,192 @@ const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
|
|
|
1043
803
|
]
|
|
1044
804
|
}
|
|
1045
805
|
);
|
|
1046
|
-
},
|
|
1047
|
-
/* @__PURE__ */
|
|
1048
|
-
/* @__PURE__ */
|
|
806
|
+
}, G = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(en, { children: [
|
|
807
|
+
/* @__PURE__ */ r.jsx(tn, { children: t.label }),
|
|
808
|
+
/* @__PURE__ */ r.jsx(nn, { children: /* @__PURE__ */ r.jsx(sn, { children: t.children.map((e, n) => (
|
|
1049
809
|
// eslint-disable-next-line react/no-array-index-key
|
|
1050
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ r.jsx(G, { item: e }, n)
|
|
1051
811
|
)) }) })
|
|
1052
|
-
] },
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
] },
|
|
1056
|
-
const
|
|
1057
|
-
return /* @__PURE__ */
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
-
/* @__PURE__ */
|
|
1061
|
-
(
|
|
1062
|
-
/* @__PURE__ */
|
|
812
|
+
] }, t.label) : /* @__PURE__ */ r.jsx(le, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(rn, { className: "flex gap-2", children: [
|
|
813
|
+
t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
814
|
+
t.label
|
|
815
|
+
] }, t.label) }), tt = Le(function() {
|
|
816
|
+
const e = Z(), { isAuthenticated: n, profile: s, isAuthEnabled: a } = Z(), o = I(), { page: i, plugins: u } = o, d = u.filter((c) => kn(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
|
|
817
|
+
return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
818
|
+
/* @__PURE__ */ r.jsx(Qn, {}),
|
|
819
|
+
/* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl border-l border-r mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-12 h-[--top-header-height]", children: [
|
|
820
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(le, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
821
|
+
(i == null ? void 0 : i.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
822
|
+
/* @__PURE__ */ r.jsx(
|
|
1063
823
|
"img",
|
|
1064
824
|
{
|
|
1065
|
-
src: /https?:\/\//.test(
|
|
825
|
+
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Pe(
|
|
1066
826
|
"/",
|
|
1067
|
-
|
|
827
|
+
i.logo.src.light
|
|
1068
828
|
),
|
|
1069
|
-
alt:
|
|
1070
|
-
style: { width:
|
|
829
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
830
|
+
style: { width: i.logo.width },
|
|
1071
831
|
className: "h-10 dark:hidden",
|
|
1072
832
|
loading: "lazy"
|
|
1073
833
|
}
|
|
1074
834
|
),
|
|
1075
|
-
/* @__PURE__ */
|
|
835
|
+
/* @__PURE__ */ r.jsx(
|
|
1076
836
|
"img",
|
|
1077
837
|
{
|
|
1078
|
-
src: /https?:\/\//.test(
|
|
838
|
+
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Pe(
|
|
1079
839
|
"/",
|
|
1080
|
-
|
|
840
|
+
i.logo.src.dark
|
|
1081
841
|
),
|
|
1082
|
-
alt:
|
|
1083
|
-
style: { width:
|
|
842
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
843
|
+
style: { width: i.logo.width },
|
|
1084
844
|
className: "h-10 hidden dark:block",
|
|
1085
845
|
loading: "lazy"
|
|
1086
846
|
}
|
|
1087
847
|
)
|
|
1088
848
|
] }),
|
|
1089
|
-
/* @__PURE__ */
|
|
849
|
+
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
|
|
1090
850
|
] }) }) }),
|
|
1091
|
-
/* @__PURE__ */
|
|
1092
|
-
/* @__PURE__ */
|
|
1093
|
-
/* @__PURE__ */
|
|
1094
|
-
/* @__PURE__ */
|
|
1095
|
-
/* @__PURE__ */
|
|
1096
|
-
a && /* @__PURE__ */
|
|
1097
|
-
|
|
851
|
+
/* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
852
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ r.jsx(We, {}) }),
|
|
853
|
+
/* @__PURE__ */ r.jsx(Tn, {}),
|
|
854
|
+
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
855
|
+
/* @__PURE__ */ r.jsx(M, { name: "head-navigation-start" }),
|
|
856
|
+
a && /* @__PURE__ */ r.jsx(
|
|
857
|
+
$e,
|
|
1098
858
|
{
|
|
1099
|
-
fallback: /* @__PURE__ */
|
|
1100
|
-
children:
|
|
1101
|
-
/* @__PURE__ */
|
|
1102
|
-
/* @__PURE__ */
|
|
1103
|
-
/* @__PURE__ */
|
|
1104
|
-
|
|
1105
|
-
(
|
|
859
|
+
fallback: /* @__PURE__ */ r.jsx(Sn, { className: "rounded h-5 w-24 mr-4" }),
|
|
860
|
+
children: n ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(_t, { modal: !1, children: [
|
|
861
|
+
/* @__PURE__ */ r.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ r.jsx(ae, { variant: "ghost", children: s != null && s.name ? `${s.name}` : "My Account" }) }),
|
|
862
|
+
/* @__PURE__ */ r.jsxs(Jt, { className: "w-56", children: [
|
|
863
|
+
/* @__PURE__ */ r.jsxs(Gt, { children: [
|
|
864
|
+
s != null && s.name ? `${s.name}` : "My Account",
|
|
865
|
+
(s == null ? void 0 : s.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
|
|
1106
866
|
] }),
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
(
|
|
1111
|
-
).length > 0 && /* @__PURE__ */
|
|
1112
|
-
|
|
1113
|
-
(
|
|
1114
|
-
).map((
|
|
1115
|
-
|
|
1116
|
-
|
|
867
|
+
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(te, {}),
|
|
868
|
+
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(G, { item: c }, c.label)),
|
|
869
|
+
d.filter(
|
|
870
|
+
(c) => !c.category || c.category === "middle"
|
|
871
|
+
).length > 0 && /* @__PURE__ */ r.jsx(te, {}),
|
|
872
|
+
d.filter(
|
|
873
|
+
(c) => !c.category || c.category === "middle"
|
|
874
|
+
).map((c) => /* @__PURE__ */ r.jsx(G, { item: c }, c.label)),
|
|
875
|
+
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(te, {}),
|
|
876
|
+
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(G, { item: c }, c.label))
|
|
1117
877
|
] })
|
|
1118
|
-
] }) : /* @__PURE__ */
|
|
878
|
+
] }) : /* @__PURE__ */ r.jsx(ae, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
1119
879
|
}
|
|
1120
880
|
),
|
|
1121
|
-
/* @__PURE__ */
|
|
1122
|
-
/* @__PURE__ */
|
|
881
|
+
/* @__PURE__ */ r.jsx(M, { name: "head-navigation-end" }),
|
|
882
|
+
/* @__PURE__ */ r.jsx(Je, {})
|
|
1123
883
|
] })
|
|
1124
884
|
] })
|
|
1125
885
|
] }) }),
|
|
1126
|
-
/* @__PURE__ */
|
|
1127
|
-
/* @__PURE__ */
|
|
1128
|
-
/* @__PURE__ */
|
|
1129
|
-
/* @__PURE__ */
|
|
886
|
+
/* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto border-l border-r", children: [
|
|
887
|
+
/* @__PURE__ */ r.jsx(M, { name: "top-navigation-before" }),
|
|
888
|
+
/* @__PURE__ */ r.jsx(In, {}),
|
|
889
|
+
/* @__PURE__ */ r.jsx(M, { name: "top-navigation-after" })
|
|
1130
890
|
] }) })
|
|
1131
891
|
] });
|
|
1132
|
-
}),
|
|
892
|
+
}), nt = At(({ children: t, className: e, pushMainContent: n }, s) => /* @__PURE__ */ r.jsx(
|
|
1133
893
|
"nav",
|
|
1134
894
|
{
|
|
1135
|
-
"data-navigation": String(
|
|
1136
|
-
className:
|
|
895
|
+
"data-navigation": String(n),
|
|
896
|
+
className: B(
|
|
1137
897
|
"scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-10",
|
|
1138
898
|
"-mx-[--padding-nav-item] pb-20 pt-[--padding-content-top]",
|
|
1139
899
|
"w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
1140
|
-
!
|
|
1141
|
-
|
|
900
|
+
!n && "border-r-0",
|
|
901
|
+
e
|
|
1142
902
|
),
|
|
1143
|
-
ref:
|
|
1144
|
-
children:
|
|
903
|
+
ref: s,
|
|
904
|
+
children: t
|
|
1145
905
|
}
|
|
1146
906
|
));
|
|
1147
|
-
|
|
1148
|
-
const
|
|
1149
|
-
onRequestClose:
|
|
907
|
+
nt.displayName = "SidebarWrapper";
|
|
908
|
+
const qn = ({
|
|
909
|
+
onRequestClose: t
|
|
1150
910
|
}) => {
|
|
1151
|
-
const
|
|
1152
|
-
return /* @__PURE__ */
|
|
1153
|
-
/* @__PURE__ */
|
|
1154
|
-
|
|
911
|
+
const e = ce(null), n = Be();
|
|
912
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
913
|
+
/* @__PURE__ */ r.jsxs(
|
|
914
|
+
nt,
|
|
1155
915
|
{
|
|
1156
|
-
ref:
|
|
1157
|
-
pushMainContent:
|
|
916
|
+
ref: e,
|
|
917
|
+
pushMainContent: n.sidebar.length > 0,
|
|
1158
918
|
children: [
|
|
1159
|
-
/* @__PURE__ */
|
|
1160
|
-
|
|
1161
|
-
/* @__PURE__ */
|
|
919
|
+
/* @__PURE__ */ r.jsx(M, { name: "zudoku-before-navigation" }),
|
|
920
|
+
n.sidebar.map((s) => /* @__PURE__ */ r.jsx(we, { item: s }, s.label)),
|
|
921
|
+
/* @__PURE__ */ r.jsx(M, { name: "zudoku-after-navigation" })
|
|
1162
922
|
]
|
|
1163
923
|
}
|
|
1164
924
|
),
|
|
1165
|
-
/* @__PURE__ */
|
|
1166
|
-
|
|
925
|
+
/* @__PURE__ */ r.jsx(
|
|
926
|
+
Ye,
|
|
1167
927
|
{
|
|
1168
928
|
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
1169
929
|
"aria-describedby": void 0,
|
|
1170
|
-
children: /* @__PURE__ */
|
|
1171
|
-
/* @__PURE__ */
|
|
1172
|
-
|
|
1173
|
-
|
|
930
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
931
|
+
/* @__PURE__ */ r.jsx(_e, { children: /* @__PURE__ */ r.jsx(Xe, { children: "Sidebar" }) }),
|
|
932
|
+
n.sidebar.map((s) => /* @__PURE__ */ r.jsx(
|
|
933
|
+
we,
|
|
1174
934
|
{
|
|
1175
|
-
item:
|
|
1176
|
-
onRequestClose:
|
|
935
|
+
item: s,
|
|
936
|
+
onRequestClose: t
|
|
1177
937
|
},
|
|
1178
|
-
|
|
938
|
+
s.label
|
|
1179
939
|
))
|
|
1180
940
|
] })
|
|
1181
941
|
}
|
|
1182
942
|
)
|
|
1183
943
|
] });
|
|
1184
|
-
},
|
|
1185
|
-
const
|
|
1186
|
-
|
|
1187
|
-
const
|
|
1188
|
-
|
|
1189
|
-
var
|
|
1190
|
-
(
|
|
1191
|
-
}, [a]),
|
|
1192
|
-
|
|
1193
|
-
}, [
|
|
1194
|
-
const
|
|
944
|
+
}, Ne = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(Ve, {}) }), Rn = ({ children: t }) => {
|
|
945
|
+
const e = Ie(), { setActiveAnchor: n } = Ut(), { meta: s, authentication: a } = I();
|
|
946
|
+
Kt(), Cn();
|
|
947
|
+
const o = ce(e.pathname);
|
|
948
|
+
U(() => {
|
|
949
|
+
var m;
|
|
950
|
+
(m = a == null ? void 0 : a.onPageLoad) == null || m.call(a);
|
|
951
|
+
}, [a]), U(() => {
|
|
952
|
+
e.pathname !== o.current && n(""), o.current = e.pathname;
|
|
953
|
+
}, [e.pathname, n]);
|
|
954
|
+
const i = !!oe().location, u = Pn.useSpinDelay(i, {
|
|
1195
955
|
delay: 300,
|
|
1196
956
|
minDuration: 500
|
|
1197
|
-
}), [
|
|
1198
|
-
return /* @__PURE__ */
|
|
957
|
+
}), [d, c] = z(!1);
|
|
958
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1199
959
|
!1,
|
|
1200
|
-
/* @__PURE__ */
|
|
1201
|
-
(
|
|
1202
|
-
(
|
|
960
|
+
/* @__PURE__ */ r.jsxs(ie, { titleTemplate: s == null ? void 0 : s.title, children: [
|
|
961
|
+
(s == null ? void 0 : s.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: s.description }),
|
|
962
|
+
(s == null ? void 0 : s.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: s.favicon })
|
|
1203
963
|
] }),
|
|
1204
|
-
/* @__PURE__ */
|
|
1205
|
-
/* @__PURE__ */
|
|
1206
|
-
/* @__PURE__ */
|
|
1207
|
-
/* @__PURE__ */
|
|
1208
|
-
|
|
964
|
+
/* @__PURE__ */ r.jsx(M, { name: "layout-before-head" }),
|
|
965
|
+
/* @__PURE__ */ r.jsx(tt, {}),
|
|
966
|
+
/* @__PURE__ */ r.jsx(M, { name: "layout-after-head" }),
|
|
967
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12 border-l border-r", children: u ? /* @__PURE__ */ r.jsx(Ne, {}) : /* @__PURE__ */ r.jsx(ue, { fallback: /* @__PURE__ */ r.jsx(Ne, {}), children: /* @__PURE__ */ r.jsxs(
|
|
968
|
+
Ze,
|
|
1209
969
|
{
|
|
1210
970
|
direction: "left",
|
|
1211
|
-
open:
|
|
1212
|
-
onOpenChange: (
|
|
971
|
+
open: d,
|
|
972
|
+
onOpenChange: (m) => c(m),
|
|
1213
973
|
children: [
|
|
1214
|
-
/* @__PURE__ */
|
|
1215
|
-
/* @__PURE__ */
|
|
974
|
+
/* @__PURE__ */ r.jsx(qn, { onRequestClose: () => c(!1) }),
|
|
975
|
+
/* @__PURE__ */ r.jsx(
|
|
1216
976
|
"div",
|
|
1217
977
|
{
|
|
1218
|
-
className:
|
|
978
|
+
className: B(
|
|
1219
979
|
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
1220
980
|
"peer-data-[navigation=false]:hidden"
|
|
1221
981
|
),
|
|
1222
|
-
children: /* @__PURE__ */
|
|
1223
|
-
/* @__PURE__ */
|
|
1224
|
-
/* @__PURE__ */
|
|
982
|
+
children: /* @__PURE__ */ r.jsxs(Ue, { className: "flex items-center gap-2", children: [
|
|
983
|
+
/* @__PURE__ */ r.jsx(Lt, { size: 16, strokeWidth: 1.5 }),
|
|
984
|
+
/* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
|
|
1225
985
|
] })
|
|
1226
986
|
}
|
|
1227
987
|
),
|
|
1228
|
-
/* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ r.jsxs(
|
|
1229
989
|
"main",
|
|
1230
990
|
{
|
|
1231
|
-
className:
|
|
991
|
+
className: B(
|
|
1232
992
|
"h-full dark:border-white/10 translate-x-0",
|
|
1233
993
|
"lg:overflow-visible",
|
|
1234
994
|
// This works in tandem with the `SidebarWrapper` component
|
|
@@ -1236,9 +996,9 @@ const Us = ({
|
|
|
1236
996
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
1237
997
|
),
|
|
1238
998
|
children: [
|
|
1239
|
-
/* @__PURE__ */
|
|
1240
|
-
|
|
1241
|
-
/* @__PURE__ */
|
|
999
|
+
/* @__PURE__ */ r.jsx(M, { name: "zudoku-before-content" }),
|
|
1000
|
+
t ?? /* @__PURE__ */ r.jsx(Te, {}),
|
|
1001
|
+
/* @__PURE__ */ r.jsx(M, { name: "zudoku-after-content" })
|
|
1242
1002
|
]
|
|
1243
1003
|
}
|
|
1244
1004
|
)
|
|
@@ -1246,195 +1006,197 @@ const Us = ({
|
|
|
1246
1006
|
}
|
|
1247
1007
|
) }) })
|
|
1248
1008
|
] });
|
|
1249
|
-
},
|
|
1009
|
+
}, Fn = Ke(null), ne = {
|
|
1250
1010
|
didCatch: !1,
|
|
1251
1011
|
error: null
|
|
1252
1012
|
};
|
|
1253
|
-
class
|
|
1254
|
-
constructor(
|
|
1255
|
-
super(
|
|
1013
|
+
class zn extends Qt {
|
|
1014
|
+
constructor(e) {
|
|
1015
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
|
|
1256
1016
|
}
|
|
1257
|
-
static getDerivedStateFromError(
|
|
1017
|
+
static getDerivedStateFromError(e) {
|
|
1258
1018
|
return {
|
|
1259
1019
|
didCatch: !0,
|
|
1260
|
-
error:
|
|
1020
|
+
error: e
|
|
1261
1021
|
};
|
|
1262
1022
|
}
|
|
1263
1023
|
resetErrorBoundary() {
|
|
1264
1024
|
const {
|
|
1265
|
-
error:
|
|
1025
|
+
error: e
|
|
1266
1026
|
} = this.state;
|
|
1267
|
-
if (
|
|
1268
|
-
for (var
|
|
1269
|
-
i
|
|
1270
|
-
(
|
|
1271
|
-
args:
|
|
1027
|
+
if (e !== null) {
|
|
1028
|
+
for (var n, s, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
|
|
1029
|
+
o[i] = arguments[i];
|
|
1030
|
+
(n = (s = this.props).onReset) === null || n === void 0 || n.call(s, {
|
|
1031
|
+
args: o,
|
|
1272
1032
|
reason: "imperative-api"
|
|
1273
|
-
}), this.setState(
|
|
1033
|
+
}), this.setState(ne);
|
|
1274
1034
|
}
|
|
1275
1035
|
}
|
|
1276
|
-
componentDidCatch(
|
|
1277
|
-
var
|
|
1278
|
-
(
|
|
1036
|
+
componentDidCatch(e, n) {
|
|
1037
|
+
var s, a;
|
|
1038
|
+
(s = (a = this.props).onError) === null || s === void 0 || s.call(a, e, n);
|
|
1279
1039
|
}
|
|
1280
|
-
componentDidUpdate(
|
|
1040
|
+
componentDidUpdate(e, n) {
|
|
1281
1041
|
const {
|
|
1282
|
-
didCatch:
|
|
1042
|
+
didCatch: s
|
|
1283
1043
|
} = this.state, {
|
|
1284
1044
|
resetKeys: a
|
|
1285
1045
|
} = this.props;
|
|
1286
|
-
if (
|
|
1287
|
-
var
|
|
1288
|
-
(
|
|
1046
|
+
if (s && n.error !== null && Bn(e.resetKeys, a)) {
|
|
1047
|
+
var o, i;
|
|
1048
|
+
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
1289
1049
|
next: a,
|
|
1290
|
-
prev:
|
|
1050
|
+
prev: e.resetKeys,
|
|
1291
1051
|
reason: "keys"
|
|
1292
|
-
}), this.setState(
|
|
1052
|
+
}), this.setState(ne);
|
|
1293
1053
|
}
|
|
1294
1054
|
}
|
|
1295
1055
|
render() {
|
|
1296
1056
|
const {
|
|
1297
|
-
children:
|
|
1298
|
-
fallbackRender:
|
|
1299
|
-
FallbackComponent:
|
|
1057
|
+
children: e,
|
|
1058
|
+
fallbackRender: n,
|
|
1059
|
+
FallbackComponent: s,
|
|
1300
1060
|
fallback: a
|
|
1301
1061
|
} = this.props, {
|
|
1302
|
-
didCatch:
|
|
1303
|
-
error:
|
|
1062
|
+
didCatch: o,
|
|
1063
|
+
error: i
|
|
1304
1064
|
} = this.state;
|
|
1305
|
-
let
|
|
1306
|
-
if (
|
|
1307
|
-
const
|
|
1308
|
-
error:
|
|
1065
|
+
let u = e;
|
|
1066
|
+
if (o) {
|
|
1067
|
+
const d = {
|
|
1068
|
+
error: i,
|
|
1309
1069
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1310
1070
|
};
|
|
1311
|
-
if (typeof
|
|
1312
|
-
|
|
1313
|
-
else if (
|
|
1314
|
-
|
|
1071
|
+
if (typeof n == "function")
|
|
1072
|
+
u = n(d);
|
|
1073
|
+
else if (s)
|
|
1074
|
+
u = je(s, d);
|
|
1315
1075
|
else if (a !== void 0)
|
|
1316
|
-
|
|
1076
|
+
u = a;
|
|
1317
1077
|
else
|
|
1318
|
-
throw
|
|
1078
|
+
throw i;
|
|
1319
1079
|
}
|
|
1320
|
-
return
|
|
1080
|
+
return je(Fn.Provider, {
|
|
1321
1081
|
value: {
|
|
1322
|
-
didCatch:
|
|
1323
|
-
error:
|
|
1082
|
+
didCatch: o,
|
|
1083
|
+
error: i,
|
|
1324
1084
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1325
1085
|
}
|
|
1326
|
-
},
|
|
1086
|
+
}, u);
|
|
1327
1087
|
}
|
|
1328
1088
|
}
|
|
1329
|
-
function
|
|
1330
|
-
let
|
|
1331
|
-
return
|
|
1089
|
+
function Bn() {
|
|
1090
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1091
|
+
return t.length !== e.length || t.some((n, s) => !Object.is(n, e[s]));
|
|
1332
1092
|
}
|
|
1333
|
-
class
|
|
1334
|
-
constructor(
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1093
|
+
class Hn {
|
|
1094
|
+
constructor(e) {
|
|
1095
|
+
P(this, "plugins");
|
|
1096
|
+
P(this, "sidebars");
|
|
1097
|
+
P(this, "topNavigation");
|
|
1098
|
+
P(this, "meta");
|
|
1099
|
+
P(this, "page");
|
|
1100
|
+
P(this, "authentication");
|
|
1101
|
+
P(this, "navigationPlugins");
|
|
1102
|
+
P(this, "initialize", async () => {
|
|
1343
1103
|
await Promise.all(
|
|
1344
|
-
this.plugins.filter(
|
|
1345
|
-
var
|
|
1346
|
-
return (
|
|
1104
|
+
this.plugins.filter(Nn).map((e) => {
|
|
1105
|
+
var n;
|
|
1106
|
+
return (n = e.initialize) == null ? void 0 : n.call(e, this);
|
|
1347
1107
|
})
|
|
1348
1108
|
);
|
|
1349
1109
|
});
|
|
1350
|
-
|
|
1351
|
-
this.plugins.filter(
|
|
1110
|
+
P(this, "getApiIdentities", async () => (await Promise.all(
|
|
1111
|
+
this.plugins.filter(An).map((n) => n.getIdentities(this))
|
|
1352
1112
|
)).flat());
|
|
1353
|
-
|
|
1113
|
+
P(this, "getPluginSidebar", async (e) => (await Promise.all(
|
|
1354
1114
|
this.navigationPlugins.map(
|
|
1355
|
-
(
|
|
1115
|
+
(s) => {
|
|
1356
1116
|
var a;
|
|
1357
|
-
return (a =
|
|
1117
|
+
return (a = s.getSidebar) == null ? void 0 : a.call(s, se(e));
|
|
1358
1118
|
}
|
|
1359
1119
|
)
|
|
1360
|
-
)).flatMap((
|
|
1361
|
-
|
|
1120
|
+
)).flatMap((s) => s ?? []));
|
|
1121
|
+
P(this, "signRequest", async (e) => {
|
|
1362
1122
|
if (!this.authentication)
|
|
1363
1123
|
throw new Error("No authentication provider configured");
|
|
1364
|
-
const
|
|
1365
|
-
return
|
|
1124
|
+
const n = await this.authentication.getAccessToken();
|
|
1125
|
+
return e.headers.set("Authorization", `Bearer ${n}`), e;
|
|
1366
1126
|
});
|
|
1367
|
-
this.plugins =
|
|
1127
|
+
this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Dn), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
|
|
1368
1128
|
}
|
|
1369
1129
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return /* @__PURE__ */
|
|
1130
|
+
function Ln({ error: t, resetErrorBoundary: e }) {
|
|
1131
|
+
return /* @__PURE__ */ r.jsx(qe, { error: t });
|
|
1372
1132
|
}
|
|
1373
|
-
const
|
|
1374
|
-
(!
|
|
1375
|
-
const
|
|
1376
|
-
Header:
|
|
1377
|
-
},
|
|
1378
|
-
children:
|
|
1379
|
-
context:
|
|
1380
|
-
}) => (
|
|
1381
|
-
queryFn: async () => (await
|
|
1133
|
+
const J = globalThis;
|
|
1134
|
+
(!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
|
|
1135
|
+
const st = {
|
|
1136
|
+
Header: tt
|
|
1137
|
+
}, Kn = Ke(st), $n = Kn.Provider, Zn = ({
|
|
1138
|
+
children: t,
|
|
1139
|
+
context: e
|
|
1140
|
+
}) => (kt({
|
|
1141
|
+
queryFn: async () => (await e.initialize(), !0),
|
|
1382
1142
|
queryKey: ["zudoku-initialize"]
|
|
1383
|
-
}), /* @__PURE__ */
|
|
1384
|
-
({ children:
|
|
1385
|
-
var
|
|
1386
|
-
const
|
|
1387
|
-
() => ({ ...
|
|
1388
|
-
[
|
|
1389
|
-
),
|
|
1390
|
-
var
|
|
1143
|
+
}), /* @__PURE__ */ r.jsx(Dt.Provider, { value: e, children: t })), rt = Le(
|
|
1144
|
+
({ children: t, ...e }) => {
|
|
1145
|
+
var f, h;
|
|
1146
|
+
const n = ee(
|
|
1147
|
+
() => ({ ...st, ...e.overrides }),
|
|
1148
|
+
[e.overrides]
|
|
1149
|
+
), s = ee(() => {
|
|
1150
|
+
var v;
|
|
1391
1151
|
return {
|
|
1392
|
-
...(
|
|
1393
|
-
(
|
|
1152
|
+
...(e.plugins ?? []).filter(En).flatMap(
|
|
1153
|
+
(g) => g.getMdxComponents ? [g.getMdxComponents()] : []
|
|
1394
1154
|
).reduce(
|
|
1395
|
-
(
|
|
1155
|
+
(g, C) => ({ ...g, ...C }),
|
|
1396
1156
|
{}
|
|
1397
1157
|
),
|
|
1398
|
-
...
|
|
1399
|
-
...(
|
|
1158
|
+
...Yt,
|
|
1159
|
+
...(v = e.mdx) == null ? void 0 : v.components
|
|
1400
1160
|
};
|
|
1401
|
-
}, [(
|
|
1402
|
-
() =>
|
|
1403
|
-
[a,
|
|
1404
|
-
),
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
}, [
|
|
1408
|
-
const [
|
|
1409
|
-
var
|
|
1410
|
-
return /* @__PURE__ */
|
|
1161
|
+
}, [(f = e.mdx) == null ? void 0 : f.components, e.plugins]), { stagger: a } = It(re), [o, i] = z(!1), u = ee(
|
|
1162
|
+
() => o ? { stagger: !0 } : { stagger: a },
|
|
1163
|
+
[a, o]
|
|
1164
|
+
), d = oe();
|
|
1165
|
+
U(() => {
|
|
1166
|
+
o || i(!0);
|
|
1167
|
+
}, [o, d.location]);
|
|
1168
|
+
const [c] = z(() => new Hn(e)), m = (h = e.plugins) == null ? void 0 : h.filter(On).map((x, v) => {
|
|
1169
|
+
var g;
|
|
1170
|
+
return /* @__PURE__ */ r.jsx(Tt, { children: (g = x.getHead) == null ? void 0 : g.call(x) }, v);
|
|
1411
1171
|
});
|
|
1412
|
-
return /* @__PURE__ */
|
|
1413
|
-
/* @__PURE__ */
|
|
1414
|
-
/* @__PURE__ */
|
|
1172
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1173
|
+
/* @__PURE__ */ r.jsx(ie, { children: m }),
|
|
1174
|
+
/* @__PURE__ */ r.jsx(re.Provider, { value: u, children: /* @__PURE__ */ r.jsx(Zn, { context: c, children: /* @__PURE__ */ r.jsx($t, { components: s, children: /* @__PURE__ */ r.jsx(on, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx($n, { value: n, children: /* @__PURE__ */ r.jsx(ft, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(Xt, { children: t ?? /* @__PURE__ */ r.jsx(Te, {}) }) }) }) }) }) }) })
|
|
1415
1175
|
] });
|
|
1416
1176
|
}
|
|
1417
1177
|
);
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
const
|
|
1178
|
+
rt.displayName = "ZudokoInner";
|
|
1179
|
+
const at = (t) => /* @__PURE__ */ r.jsx(zn, { FallbackComponent: Ln, children: /* @__PURE__ */ r.jsx(rt, { ...t }) });
|
|
1180
|
+
at.displayName = "Zudoku";
|
|
1181
|
+
const ps = Zt, xs = Rn, ys = mt, vs = pn, bs = vn, js = bn, ws = ie, Ps = I, Cs = Z, Ss = Mt, ks = Nt, Ds = at, Ms = pt, Ns = Vt, Os = Ve, Es = $e, As = gt, Qs = le;
|
|
1422
1182
|
export {
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1183
|
+
bs as Bootstrap,
|
|
1184
|
+
js as BootstrapStatic,
|
|
1185
|
+
As as Button,
|
|
1186
|
+
ks as CACHE_KEYS,
|
|
1187
|
+
Ms as Callout,
|
|
1188
|
+
Es as ClientOnly,
|
|
1189
|
+
ws as Head,
|
|
1190
|
+
xs as Layout,
|
|
1191
|
+
Qs as Link,
|
|
1192
|
+
Ns as Markdown,
|
|
1193
|
+
ys as RouterError,
|
|
1194
|
+
vs as ServerError,
|
|
1195
|
+
Os as Spinner,
|
|
1196
|
+
Ds as Zudoku,
|
|
1197
|
+
Cs as useAuth,
|
|
1198
|
+
Ss as useCache,
|
|
1199
|
+
ps as useMDXComponents,
|
|
1200
|
+
Ps as useZudoku
|
|
1439
1201
|
};
|
|
1440
1202
|
//# sourceMappingURL=zudoku.components.js.map
|