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