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