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