zudoku 0.0.0-eb4182d → 0.0.0-eeace45
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/README.md +121 -0
- package/cli.js +2 -2
- package/client.d.ts +7 -0
- package/dist/app/demo.js +1 -3
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +1 -0
- package/dist/app/entry.client.js +16 -3
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +1 -0
- package/dist/app/entry.server.js +11 -8
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +3 -2
- package/dist/app/main.js +16 -32
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.d.ts +3 -0
- package/dist/app/sentry.js +19 -0
- package/dist/app/sentry.js.map +1 -0
- package/dist/app/standalone.js +1 -3
- package/dist/app/standalone.js.map +1 -1
- package/dist/app/tailwind.d.ts +2 -1
- package/dist/app/tailwind.js +64 -52
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/cli.js +1 -4
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.js +1 -0
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +3 -3
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/common.d.ts +8 -0
- package/dist/config/common.js +2 -0
- package/dist/config/common.js.map +1 -0
- package/dist/config/config.d.ts +3 -2
- package/dist/config/loader.d.ts +20 -0
- package/dist/config/loader.js +154 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +35 -19
- package/dist/config/validators/InputSidebarSchema.js +7 -28
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +24 -1
- package/dist/config/validators/SidebarSchema.js +80 -44
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +4945 -0
- package/dist/config/validators/common.js +280 -0
- package/dist/config/validators/common.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +1 -0
- package/dist/config/validators/icon-types.js +2 -0
- package/dist/config/validators/icon-types.js.map +1 -0
- package/dist/config/validators/validate.d.ts +888 -453
- package/dist/config/validators/validate.js +14 -213
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -3
- package/dist/lib/authentication/components/CallbackHandler.js +21 -31
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +1 -1
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +1 -1
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +5 -4
- package/dist/lib/authentication/hook.js +1 -3
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +12 -11
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +7 -1
- package/dist/lib/authentication/providers/openid.js +18 -27
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +25 -4
- package/dist/lib/authentication/state.js +28 -3
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/AnchorLink.d.ts +1 -1
- package/dist/lib/components/AnchorLink.js +1 -1
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Banner.js +7 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +4 -3
- package/dist/lib/components/Bootstrap.js +12 -6
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +1 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Header.js +21 -10
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +4 -4
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +14 -5
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Markdown.js +1 -1
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +9 -6
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +1 -1
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/ReactMarkdown.d.ts +29 -0
- package/dist/lib/components/ReactMarkdown.js +182 -0
- package/dist/lib/components/ReactMarkdown.js.map +1 -0
- package/dist/lib/components/Search.d.ts +3 -1
- package/dist/lib/components/Search.js +3 -3
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +11 -3
- package/dist/lib/components/SlotletProvider.js +4 -2
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +19 -16
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +13 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +5 -0
- package/dist/lib/components/TopNavigation.js +44 -5
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
- package/dist/lib/components/{DevPortal.js → Zudoku.js} +14 -15
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +10 -14
- package/dist/lib/components/context/ZudokuContext.js +27 -26
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +38 -16
- package/dist/lib/components/index.js +16 -6
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
- package/dist/lib/components/navigation/Sidebar.js +4 -4
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -9
- package/dist/lib/components/navigation/SidebarBadge.js +0 -9
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js +18 -10
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
- package/dist/lib/components/navigation/SidebarItem.js +12 -12
- 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 +11 -15
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +7 -14
- package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +18 -13
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +1 -1
- package/dist/lib/errors/ErrorAlert.js +8 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/RouterError.js +1 -1
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +10 -11
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
- package/dist/lib/oas/parser/upgrade/index.js +2 -17
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +2 -0
- package/dist/lib/plugins/api-catalog/Catalog.js +36 -0
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
- package/dist/lib/plugins/api-catalog/index.d.ts +30 -0
- package/dist/lib/plugins/api-catalog/index.js +15 -0
- package/dist/lib/plugins/api-catalog/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.js +2 -2
- 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 +9 -9
- package/dist/lib/plugins/api-keys/index.js +3 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
- package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
- package/dist/lib/plugins/custom-pages/index.js +11 -0
- package/dist/lib/plugins/custom-pages/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
- package/dist/lib/plugins/markdown/MdxPage.js +16 -3
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +8 -7
- package/dist/lib/plugins/markdown/index.js +31 -3
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +38 -0
- package/dist/lib/plugins/markdown/resolver.js +75 -0
- package/dist/lib/plugins/markdown/resolver.js.map +1 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +5 -9
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationList.js +43 -23
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +14 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +7 -5
- package/dist/lib/plugins/openapi/Route.js +23 -5
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +38 -46
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +114 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +24 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
- package/dist/lib/plugins/openapi/client/worker.js +23 -14
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
- package/dist/lib/plugins/openapi/context.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
- package/dist/lib/plugins/openapi/graphql/gql.js +5 -3
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +34 -8
- package/dist/lib/plugins/openapi/graphql/graphql.js +195 -662
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +2 -2
- package/dist/lib/plugins/openapi/index.js +56 -68
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +20 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +3 -2
- 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/ResponseTab.js +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +7 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +4 -7
- package/dist/lib/plugins/redirect/index.js +2 -2
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
- package/dist/lib/plugins/search-inkeep/index.js +41 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/ui/Accordion.d.ts +7 -0
- package/dist/lib/ui/Accordion.js +14 -0
- package/dist/lib/ui/Accordion.js.map +1 -0
- package/dist/lib/ui/ActionButton.d.ts +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/ui/Alert.d.ts +8 -0
- package/dist/lib/ui/Alert.js +23 -0
- package/dist/lib/ui/Alert.js.map +1 -0
- package/dist/lib/ui/AlertDialog.d.ts +20 -0
- package/dist/lib/ui/AlertDialog.js +27 -0
- package/dist/lib/ui/AlertDialog.js.map +1 -0
- package/dist/lib/ui/AspectRatio.d.ts +3 -0
- package/dist/lib/ui/AspectRatio.js +4 -0
- package/dist/lib/ui/AspectRatio.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +9 -0
- package/dist/lib/ui/Badge.js +21 -0
- package/dist/lib/ui/Badge.js.map +1 -0
- package/dist/lib/ui/Breadcrumb.d.ts +19 -0
- package/dist/lib/ui/Breadcrumb.js +24 -0
- package/dist/lib/ui/Breadcrumb.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +2 -3
- package/dist/lib/ui/Button.js +1 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +36 -35
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Carousel.d.ts +18 -0
- package/dist/lib/ui/Carousel.js +99 -0
- package/dist/lib/ui/Carousel.js.map +1 -0
- package/dist/lib/ui/Checkbox.d.ts +4 -0
- package/dist/lib/ui/Checkbox.js +9 -0
- package/dist/lib/ui/Checkbox.js.map +1 -0
- package/dist/lib/ui/Collapsible.d.ts +5 -0
- package/dist/lib/ui/Collapsible.js +6 -0
- package/dist/lib/ui/Collapsible.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +80 -0
- package/dist/lib/ui/Command.js +31 -0
- package/dist/lib/ui/Command.js.map +1 -0
- package/dist/lib/{components → ui}/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -0
- package/dist/lib/ui/Drawer.d.ts +8 -10
- package/dist/lib/ui/Drawer.js.map +1 -1
- package/dist/lib/ui/Form.d.ts +23 -0
- package/dist/lib/ui/Form.js +63 -0
- package/dist/lib/ui/Form.js.map +1 -0
- package/dist/lib/ui/HoverCard.d.ts +6 -0
- package/dist/lib/ui/HoverCard.js +10 -0
- package/dist/lib/ui/HoverCard.js.map +1 -0
- package/dist/lib/ui/Label.d.ts +5 -0
- package/dist/lib/ui/Label.js +10 -0
- package/dist/lib/ui/Label.js.map +1 -0
- package/dist/lib/ui/Pagination.d.ts +28 -0
- package/dist/lib/ui/Pagination.js +24 -0
- package/dist/lib/ui/Pagination.js.map +1 -0
- package/dist/lib/ui/Popover.d.ts +6 -0
- package/dist/lib/ui/Popover.js +10 -0
- package/dist/lib/ui/Popover.js.map +1 -0
- package/dist/lib/ui/Progress.d.ts +4 -0
- package/dist/lib/ui/Progress.js +8 -0
- package/dist/lib/ui/Progress.js.map +1 -0
- package/dist/lib/ui/RadioGroup.d.ts +5 -0
- package/dist/lib/ui/RadioGroup.js +15 -0
- package/dist/lib/ui/RadioGroup.js.map +1 -0
- package/dist/lib/ui/ScrollArea.d.ts +5 -0
- package/dist/lib/ui/ScrollArea.js +12 -0
- package/dist/lib/ui/ScrollArea.js.map +1 -0
- package/dist/lib/ui/Select.js.map +1 -0
- package/dist/lib/ui/Skeleton.d.ts +2 -0
- package/dist/lib/ui/Skeleton.js +7 -0
- package/dist/lib/ui/Skeleton.js.map +1 -0
- package/dist/lib/ui/Slider.d.ts +4 -0
- package/dist/lib/ui/Slider.js +8 -0
- package/dist/lib/ui/Slider.js.map +1 -0
- package/dist/lib/ui/Switch.d.ts +4 -0
- package/dist/lib/ui/Switch.js +8 -0
- package/dist/lib/ui/Switch.js.map +1 -0
- package/dist/lib/ui/Textarea.d.ts +4 -0
- package/dist/lib/ui/Textarea.js +9 -0
- package/dist/lib/ui/Textarea.js.map +1 -0
- package/dist/lib/ui/Toggle.d.ts +12 -0
- package/dist/lib/ui/Toggle.js +26 -0
- package/dist/lib/ui/Toggle.js.map +1 -0
- package/dist/lib/ui/ToggleGroup.d.ts +12 -0
- package/dist/lib/ui/ToggleGroup.js +21 -0
- package/dist/lib/ui/ToggleGroup.js.map +1 -0
- package/dist/lib/ui/Tooltip.d.ts +7 -0
- package/dist/lib/ui/Tooltip.js +11 -0
- package/dist/lib/ui/Tooltip.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +19 -20
- package/dist/lib/util/MdxComponents.js +1 -3
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/invariant.d.ts +9 -0
- package/dist/lib/util/invariant.js +7 -3
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/traverse.d.ts +2 -0
- package/dist/lib/util/traverse.js +18 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/useExposedProps.d.ts +2 -0
- package/dist/lib/util/useExposedProps.js +9 -0
- package/dist/lib/util/useExposedProps.js.map +1 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +4 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.js +1 -1
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +1 -1
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/vite/build.js +26 -5
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +6 -10
- package/dist/vite/config.js +91 -78
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +7 -5
- 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/debug.d.ts +1 -0
- package/dist/vite/debug.js +10 -0
- package/dist/vite/debug.js.map +1 -0
- package/dist/vite/dev-server.d.ts +7 -1
- package/dist/vite/dev-server.js +35 -8
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +101 -0
- package/dist/vite/output.js +62 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-api.js +100 -20
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-component.js +17 -12
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -2
- package/dist/vite/plugin-config-reload.js +0 -2
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +22 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +4 -0
- package/dist/vite/plugin-custom-pages.js +30 -0
- package/dist/vite/plugin-custom-pages.js.map +1 -0
- package/dist/vite/plugin-docs.js +37 -26
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -1
- package/dist/vite/plugin-frontmatter.js +27 -24
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +0 -6
- package/dist/vite/plugin-mdx.js +80 -6
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +3 -0
- package/dist/vite/plugin-search.js +26 -0
- package/dist/vite/plugin-search.js.map +1 -0
- package/dist/vite/plugin-sidebar.js +7 -6
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
- package/dist/vite/plugin-theme-css.js +114 -0
- package/dist/vite/plugin-theme-css.js.map +1 -0
- package/dist/vite/plugin.d.ts +1 -2
- package/dist/vite/plugin.js +12 -6
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +6 -1
- package/dist/vite/prerender.js +7 -5
- package/dist/vite/prerender.js.map +1 -1
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/zuplo/env.d.ts +6 -0
- package/dist/zuplo/env.js +9 -0
- package/dist/zuplo/env.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +28 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/AnchorLink-DFZZbmvr.js +34 -0
- package/lib/AnchorLink-DFZZbmvr.js.map +1 -0
- package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-DVLEc6cm.js} +23 -20
- package/lib/AuthenticationPlugin-DVLEc6cm.js.map +1 -0
- package/lib/Button-DeAoTouo.js +48 -0
- package/lib/Button-DeAoTouo.js.map +1 -0
- package/lib/CategoryHeading-CBconmtI.js +10 -0
- package/lib/{CategoryHeading-ovR-zHRq.js.map → CategoryHeading-CBconmtI.js.map} +1 -1
- package/lib/ClientOnly-E7hGysn1.js +11 -0
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Dialog-Bxv1yEIg.js +67 -0
- package/lib/Dialog-Bxv1yEIg.js.map +1 -0
- package/lib/Markdown-CZDLNOFc.js +15202 -0
- package/lib/Markdown-CZDLNOFc.js.map +1 -0
- package/lib/MdxPage-DKMbBROv.js +188 -0
- package/lib/MdxPage-DKMbBROv.js.map +1 -0
- package/lib/OperationList-BKHUKlAL.js +5062 -0
- package/lib/OperationList-BKHUKlAL.js.map +1 -0
- package/lib/Route-DYwKZ_c_.js +35 -0
- package/lib/Route-DYwKZ_c_.js.map +1 -0
- package/lib/Select-B_IxRUUC.js +223 -0
- package/lib/Select-B_IxRUUC.js.map +1 -0
- package/lib/SlotletProvider-pfc9oejW.js +221 -0
- package/lib/SlotletProvider-pfc9oejW.js.map +1 -0
- package/lib/{Spinner-3cQDBVGr.js → Spinner-DuxJLLNE.js} +2 -2
- package/lib/{Spinner-3cQDBVGr.js.map → Spinner-DuxJLLNE.js.map} +1 -1
- package/lib/StaggeredRender-DgsamH_G.js +17 -0
- package/lib/StaggeredRender-DgsamH_G.js.map +1 -0
- package/lib/SyntaxHighlight-Bz-lOJtH.js +2979 -0
- package/lib/SyntaxHighlight-Bz-lOJtH.js.map +1 -0
- package/lib/ZudokuContext-hmLMUdf2.js +1217 -0
- package/lib/ZudokuContext-hmLMUdf2.js.map +1 -0
- package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
- package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
- package/lib/{index-CLd8ycZz.js → assets/index-C7jnHK4b.js} +1008 -957
- package/lib/assets/index-C7jnHK4b.js.map +1 -0
- package/lib/assets/{worker-Bcj4NA2p.js → worker-D2kRl-cG.js} +6035 -5375
- package/lib/assets/worker-D2kRl-cG.js.map +1 -0
- package/lib/chunk-D52XG6IA-Dl7HLe6j.js +1823 -0
- package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +1 -0
- package/lib/cn-qaFjX9_3.js +2279 -0
- package/lib/cn-qaFjX9_3.js.map +1 -0
- package/lib/context-h_UkBLvr.js +22 -0
- package/lib/context-h_UkBLvr.js.map +1 -0
- package/lib/createServer-69sLlmQA.js +15679 -0
- package/lib/createServer-69sLlmQA.js.map +1 -0
- package/lib/hook-CHq7pFyz.js +227 -0
- package/lib/hook-CHq7pFyz.js.map +1 -0
- package/lib/{assets/index-B9EWVYfo.js → index-CBXSgjaE.js} +1034 -983
- package/lib/index-CBXSgjaE.js.map +1 -0
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/index-CPNSgwSb.js.map +1 -0
- package/lib/index-CbrnMIak.js +1282 -0
- package/lib/index-CbrnMIak.js.map +1 -0
- package/lib/index-LNp6rxyU.js.map +1 -1
- package/lib/index.esm-BSV1C092.js +692 -0
- package/lib/index.esm-BSV1C092.js.map +1 -0
- package/lib/index.esm-BnnBRKJX.js +1214 -0
- package/lib/index.esm-BnnBRKJX.js.map +1 -0
- package/lib/invariant-Caa8-XvF.js +26 -0
- package/lib/invariant-Caa8-XvF.js.map +1 -0
- package/lib/jsx-runtime-Dx-03ztt.js +446 -0
- package/lib/jsx-runtime-Dx-03ztt.js.map +1 -0
- package/lib/object_hash-BNWPnMN9.js +787 -0
- package/lib/object_hash-BNWPnMN9.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +11 -0
- package/lib/post-processors/removeExtensions.js.map +1 -0
- package/lib/post-processors/removePaths.js +28 -0
- package/lib/post-processors/removePaths.js.map +1 -0
- package/lib/post-processors/traverse.js +12 -0
- package/lib/post-processors/traverse.js.map +1 -0
- package/lib/prism-csharp.min-DUwvItt4.js +63 -0
- package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-DUwvItt4.js.map} +1 -1
- package/lib/prism-java.min-BtgBR4yd.js +35 -0
- package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BtgBR4yd.js.map} +1 -1
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
- package/lib/prism-ruby.min-DeDXCp1r.js +38 -0
- package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-DeDXCp1r.js.map} +1 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
- package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
- package/lib/state-CFQsUZUP.js +202 -0
- package/lib/state-CFQsUZUP.js.map +1 -0
- package/lib/ui/Accordion.js +47 -0
- package/lib/ui/Accordion.js.map +1 -0
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/ui/Alert.js +51 -0
- package/lib/ui/Alert.js.map +1 -0
- package/lib/ui/AlertDialog.js +114 -0
- package/lib/ui/AlertDialog.js.map +1 -0
- package/lib/ui/AspectRatio.js +6 -0
- package/lib/ui/AspectRatio.js.map +1 -0
- package/lib/ui/Badge.js +27 -0
- package/lib/ui/Badge.js.map +1 -0
- package/lib/ui/Breadcrumb.js +94 -0
- package/lib/ui/Breadcrumb.js.map +1 -0
- package/lib/ui/Button.js +49 -0
- package/lib/ui/Button.js.map +1 -0
- package/lib/ui/Callout.js +77 -0
- package/lib/ui/Callout.js.map +1 -0
- package/lib/ui/Card.js +62 -0
- package/lib/ui/Card.js.map +1 -0
- package/lib/ui/Carousel.js +1416 -0
- package/lib/ui/Carousel.js.map +1 -0
- package/lib/ui/Checkbox.js +28 -0
- package/lib/ui/Checkbox.js.map +1 -0
- package/lib/ui/Collapsible.js +8 -0
- package/lib/ui/Collapsible.js.map +1 -0
- package/lib/ui/Command.js +553 -0
- package/lib/ui/Command.js.map +1 -0
- package/lib/ui/Dialog.js +101 -0
- package/lib/ui/Dialog.js.map +1 -0
- package/lib/ui/Drawer.js +1153 -0
- package/lib/ui/Drawer.js.map +1 -0
- package/lib/ui/DropdownMenu.js +145 -0
- package/lib/ui/DropdownMenu.js.map +1 -0
- package/lib/ui/Form.js +95 -0
- package/lib/ui/Form.js.map +1 -0
- package/lib/ui/HoverCard.js +24 -0
- package/lib/ui/HoverCard.js.map +1 -0
- package/lib/ui/Input.js +22 -0
- package/lib/ui/Input.js.map +1 -0
- package/lib/ui/Label.js +20 -0
- package/lib/ui/Label.js.map +1 -0
- package/lib/ui/Pagination.js +106 -0
- package/lib/ui/Pagination.js.map +1 -0
- package/lib/ui/Popover.js +24 -0
- package/lib/ui/Popover.js.map +1 -0
- package/lib/ui/Progress.js +27 -0
- package/lib/ui/Progress.js.map +1 -0
- package/lib/ui/RadioGroup.js +32 -0
- package/lib/ui/RadioGroup.js.map +1 -0
- package/lib/ui/ScrollArea.js +39 -0
- package/lib/ui/ScrollArea.js.map +1 -0
- package/lib/ui/Select.js +122 -0
- package/lib/ui/Select.js.map +1 -0
- package/lib/ui/Skeleton.js +18 -0
- package/lib/ui/Skeleton.js.map +1 -0
- package/lib/ui/Slider.js +24 -0
- package/lib/ui/Slider.js.map +1 -0
- package/lib/ui/Switch.js +28 -0
- package/lib/ui/Switch.js.map +1 -0
- package/lib/ui/Tabs.js +47 -0
- package/lib/ui/Tabs.js.map +1 -0
- package/lib/ui/Textarea.js +21 -0
- package/lib/ui/Textarea.js.map +1 -0
- package/lib/ui/Toggle.js +38 -0
- package/lib/ui/Toggle.js.map +1 -0
- package/lib/ui/ToggleGroup.js +42 -0
- package/lib/ui/ToggleGroup.js.map +1 -0
- package/lib/ui/Tooltip.js +24 -0
- package/lib/ui/Tooltip.js.map +1 -0
- package/lib/useExposedProps-DE9lR6MF.js +9 -0
- package/lib/useExposedProps-DE9lR6MF.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +24 -18
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +620 -619
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1064 -3006
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16056
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +123 -0
- package/lib/zudoku.plugin-api-catalog.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +72 -78
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +22 -0
- package/lib/zudoku.plugin-custom-pages.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +94 -27
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -12
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +53 -28
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +135 -87
- package/src/app/demo.tsx +1 -4
- package/src/app/entry.client.tsx +20 -3
- package/src/app/entry.server.tsx +63 -52
- package/src/app/main.css +5 -2
- package/src/app/main.tsx +24 -38
- package/src/app/sentry.ts +24 -0
- package/src/app/standalone.tsx +2 -5
- package/src/app/tailwind.ts +67 -52
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
- package/src/lib/authentication/authentication.ts +3 -3
- package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
- package/src/lib/authentication/components/SignIn.tsx +1 -1
- package/src/lib/authentication/components/SignOut.tsx +1 -1
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +17 -11
- package/src/lib/authentication/providers/openid.tsx +22 -33
- package/src/lib/authentication/state.ts +50 -9
- package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/AnchorLink.tsx +1 -1
- package/src/lib/components/Banner.tsx +12 -2
- package/src/lib/components/Bootstrap.tsx +36 -16
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/ErrorPage.tsx +0 -2
- package/src/lib/components/Header.tsx +91 -46
- package/src/lib/components/Heading.tsx +13 -13
- package/src/lib/components/Layout.tsx +56 -38
- package/src/lib/components/Markdown.tsx +1 -1
- package/src/lib/components/MobileTopNavigation.tsx +31 -26
- package/src/lib/components/NotFoundPage.tsx +1 -1
- package/src/lib/components/ReactMarkdown.license.txt +21 -0
- package/src/lib/components/ReactMarkdown.tsx +264 -0
- package/src/lib/components/Search.tsx +4 -4
- package/src/lib/components/SlotletProvider.tsx +29 -4
- package/src/lib/components/SyntaxHighlight.tsx +85 -50
- package/src/lib/components/ThemeSwitch.tsx +26 -0
- package/src/lib/components/TopNavigation.tsx +78 -23
- package/src/lib/components/Zudoku.tsx +108 -0
- package/src/lib/components/context/ZudokuContext.ts +33 -30
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +19 -7
- package/src/lib/components/navigation/Sidebar.tsx +22 -12
- package/src/lib/components/navigation/SidebarBadge.tsx +0 -10
- package/src/lib/components/navigation/SidebarCategory.tsx +39 -32
- package/src/lib/components/navigation/SidebarItem.tsx +24 -30
- package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +12 -17
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +7 -14
- package/src/lib/core/plugins.ts +19 -17
- package/src/lib/errors/ErrorAlert.tsx +20 -6
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/oas/graphql/index.ts +11 -16
- package/src/lib/oas/parser/upgrade/index.ts +3 -24
- package/src/lib/plugins/api-catalog/Catalog.tsx +123 -0
- package/src/lib/plugins/api-catalog/index.tsx +64 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +3 -3
- 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 +13 -10
- package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
- package/src/lib/plugins/custom-pages/index.tsx +24 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +38 -10
- package/src/lib/plugins/markdown/index.tsx +53 -13
- package/src/lib/plugins/markdown/resolver.ts +90 -0
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
- package/src/lib/plugins/openapi/Endpoint.tsx +7 -12
- package/src/lib/plugins/openapi/OperationList.tsx +81 -45
- package/src/lib/plugins/openapi/OperationListItem.tsx +31 -2
- package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
- package/src/lib/plugins/openapi/Route.tsx +42 -12
- package/src/lib/plugins/openapi/Sidecar.tsx +75 -75
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +157 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +2 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +33 -0
- package/src/lib/plugins/openapi/client/worker.ts +38 -24
- package/src/lib/plugins/openapi/context.tsx +2 -2
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +12 -29
- package/src/lib/plugins/openapi/graphql/graphql.ts +236 -665
- package/src/lib/plugins/openapi/index.tsx +77 -97
- package/src/lib/plugins/openapi/interfaces.ts +22 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +5 -4
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -1
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
- package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
- package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
- package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
- package/src/lib/plugins/openapi-worker.ts +11 -1
- package/src/lib/plugins/redirect/index.tsx +6 -10
- package/src/lib/plugins/search-inkeep/index.tsx +80 -25
- package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
- package/src/lib/ui/Accordion.tsx +56 -0
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
- package/src/lib/ui/AlertDialog.tsx +139 -0
- package/src/lib/ui/AspectRatio.tsx +5 -0
- package/src/lib/ui/Badge.tsx +36 -0
- package/src/lib/ui/Breadcrumb.tsx +115 -0
- package/src/lib/ui/Button.tsx +1 -1
- package/src/lib/ui/Callout.tsx +7 -6
- package/src/lib/ui/Carousel.tsx +260 -0
- package/src/lib/ui/Checkbox.tsx +28 -0
- package/src/lib/ui/Collapsible.tsx +9 -0
- package/src/lib/ui/Command.tsx +151 -0
- package/src/lib/{components → ui}/Dialog.tsx +4 -3
- package/src/lib/ui/Drawer.tsx +38 -36
- package/src/lib/ui/Form.tsx +177 -0
- package/src/lib/ui/HoverCard.tsx +27 -0
- package/src/lib/ui/Label.tsx +24 -0
- package/src/lib/ui/Pagination.tsx +117 -0
- package/src/lib/ui/Popover.tsx +29 -0
- package/src/lib/ui/Progress.tsx +26 -0
- package/src/lib/ui/RadioGroup.tsx +42 -0
- package/src/lib/ui/ScrollArea.tsx +46 -0
- package/src/lib/ui/Skeleton.tsx +15 -0
- package/src/lib/ui/Slider.tsx +26 -0
- package/src/lib/ui/Switch.tsx +27 -0
- package/src/lib/ui/Textarea.tsx +23 -0
- package/src/lib/ui/Toggle.tsx +43 -0
- package/src/lib/ui/ToggleGroup.tsx +59 -0
- package/src/lib/ui/Tooltip.tsx +28 -0
- package/src/lib/util/MdxComponents.tsx +3 -9
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/invariant.ts +15 -3
- package/src/lib/util/traverse.ts +25 -0
- package/src/lib/util/useExposedProps.tsx +16 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useOnScreen.ts +32 -0
- package/src/lib/util/useScrollToAnchor.ts +2 -2
- package/src/lib/util/useScrollToTop.ts +1 -1
- package/dist/internal.d.ts +0 -1
- package/dist/internal.js +0 -2
- package/dist/internal.js.map +0 -1
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/Dialog.js.map +0 -1
- package/dist/lib/components/Select.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/custom-page/index.d.ts +0 -8
- package/dist/lib/plugins/custom-page/index.js +0 -12
- package/dist/lib/plugins/custom-page/index.js.map +0 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
- package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
- package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
- package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
- package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
- package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
- package/dist/lib/plugins/openapi/util/urql.js +0 -8
- package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/ui/Note.d.ts +0 -8
- package/dist/lib/ui/Note.js +0 -23
- package/dist/lib/ui/Note.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-custom-css.js +0 -55
- package/dist/vite/plugin-custom-css.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/lib/AuthenticationPlugin-Bx9FK124.js.map +0 -1
- package/lib/CategoryHeading-ovR-zHRq.js +0 -10
- package/lib/DeveloperHint-YeWHKvyr.js +0 -16
- package/lib/DeveloperHint-YeWHKvyr.js.map +0 -1
- package/lib/ErrorPage-Dri5_2lr.js +0 -18
- package/lib/ErrorPage-Dri5_2lr.js.map +0 -1
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
- package/lib/Input-CtVUl3eT.js +0 -2198
- package/lib/Input-CtVUl3eT.js.map +0 -1
- package/lib/Markdown-DapSf3wG.js +0 -20281
- package/lib/Markdown-DapSf3wG.js.map +0 -1
- package/lib/MdxPage-BqBWsXZ1.js +0 -172
- package/lib/MdxPage-BqBWsXZ1.js.map +0 -1
- package/lib/OperationList-JAQF5-tn.js +0 -602
- package/lib/OperationList-JAQF5-tn.js.map +0 -1
- package/lib/Route-DSANUy5e.js +0 -14
- package/lib/Route-DSANUy5e.js.map +0 -1
- package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
- package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
- package/lib/SlotletProvider-D3UD5Go3.js +0 -238
- package/lib/SlotletProvider-D3UD5Go3.js.map +0 -1
- package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
- package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
- package/lib/assets/index-B9EWVYfo.js.map +0 -1
- package/lib/assets/worker-Bcj4NA2p.js.map +0 -1
- package/lib/index-BG0g4WW0.js +0 -1771
- package/lib/index-BG0g4WW0.js.map +0 -1
- package/lib/index-BngPzhKn.js +0 -124
- package/lib/index-BngPzhKn.js.map +0 -1
- package/lib/index-CLd8ycZz.js.map +0 -1
- package/lib/index-Dolisrci.js +0 -2814
- package/lib/index-Dolisrci.js.map +0 -1
- package/lib/index-DyJyULzS.js +0 -5816
- package/lib/index-DyJyULzS.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.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-markup-templating-DZrrEs0A.js +0 -62
- package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
- package/lib/prism-php.min-o7FpoMP_.js +0 -11
- package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
- package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
- package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
- package/lib/router-D2p7Olpn.js +0 -2971
- package/lib/router-D2p7Olpn.js.map +0 -1
- package/lib/state-hNe1dw4B.js +0 -548
- package/lib/state-hNe1dw4B.js.map +0 -1
- package/lib/urql-YhcsXYy8.js +0 -1591
- package/lib/urql-YhcsXYy8.js.map +0 -1
- package/lib/utils-ByIc_KIM.js +0 -749
- package/lib/utils-ByIc_KIM.js.map +0 -1
- package/lib/zudoku.plugin-custom-page.js +0 -13
- package/lib/zudoku.plugin-custom-page.js.map +0 -1
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/custom-page/index.tsx +0 -22
- package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
- package/src/lib/plugins/openapi/util/urql.ts +0 -8
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
- /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.js +0 -0
- /package/src/lib/{components → ui}/Select.tsx +0 -0
package/lib/zudoku.components.js
CHANGED
|
@@ -1,3331 +1,1212 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var dt = Object.defineProperty;
|
|
2
|
+
var ve = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
5
|
+
var ht = (e, t, s) => t in e ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
6
|
+
var k = (e, t, s) => ht(e, typeof t != "symbol" ? t + "" : t, s), je = (e, t, s) => t.has(e) || ve("Cannot " + s);
|
|
7
|
+
var c = (e, t, s) => (je(e, t, "read from private field"), s ? s.call(e) : t.get(e)), C = (e, t, s) => t.has(e) ? ve("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), b = (e, t, s, n) => (je(e, t, "write to private field"), n ? n.call(e, s) : t.set(e, s), s);
|
|
8
|
+
var Y = (e, t, s, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
|
-
|
|
10
|
+
b(e, t, a, s);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return c(e, t, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { a as
|
|
25
|
-
import { z as
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (n !== "default") {
|
|
44
|
-
var r = Object.getOwnPropertyDescriptor(e, n);
|
|
45
|
-
Object.defineProperty(t, n, r.get ? r : {
|
|
46
|
-
enumerable: !0,
|
|
47
|
-
get: function() {
|
|
48
|
-
return e[n];
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}), t.default = e, Object.freeze(t);
|
|
53
|
-
}
|
|
54
|
-
var ue = /* @__PURE__ */ os(rs);
|
|
55
|
-
function as({
|
|
56
|
-
basename: e,
|
|
57
|
-
children: t,
|
|
58
|
-
location: n = "/",
|
|
59
|
-
future: r
|
|
60
|
-
}) {
|
|
61
|
-
typeof n == "string" && (n = we.parsePath(n));
|
|
62
|
-
let a = fe.Action.Pop, s = {
|
|
63
|
-
pathname: n.pathname || "/",
|
|
64
|
-
search: n.search || "",
|
|
65
|
-
hash: n.hash || "",
|
|
66
|
-
state: n.state != null ? n.state : null,
|
|
67
|
-
key: n.key || "default"
|
|
68
|
-
}, i = Qn();
|
|
69
|
-
return /* @__PURE__ */ ue.createElement(we.Router, {
|
|
70
|
-
basename: e,
|
|
71
|
-
children: t,
|
|
72
|
-
location: s,
|
|
73
|
-
navigationType: a,
|
|
74
|
-
navigator: i,
|
|
75
|
-
future: r,
|
|
76
|
-
static: !0
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
function ss({
|
|
80
|
-
context: e,
|
|
81
|
-
router: t,
|
|
82
|
-
hydrate: n = !0,
|
|
83
|
-
nonce: r
|
|
84
|
-
}) {
|
|
85
|
-
t && e || (process.env.NODE_ENV !== "production" ? fe.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : fe.UNSAFE_invariant(!1));
|
|
86
|
-
let a = {
|
|
87
|
-
router: t,
|
|
88
|
-
navigator: Qn(),
|
|
89
|
-
static: !0,
|
|
90
|
-
staticContext: e,
|
|
91
|
-
basename: e.basename || "/"
|
|
92
|
-
}, s = /* @__PURE__ */ new Map(), i = "";
|
|
93
|
-
if (n !== !1) {
|
|
94
|
-
let u = {
|
|
95
|
-
loaderData: e.loaderData,
|
|
96
|
-
actionData: e.actionData,
|
|
97
|
-
errors: ls(e.errors)
|
|
98
|
-
};
|
|
99
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${ps(JSON.stringify(JSON.stringify(u)))});`;
|
|
100
|
-
}
|
|
101
|
-
let {
|
|
102
|
-
state: l
|
|
103
|
-
} = a.router;
|
|
104
|
-
return /* @__PURE__ */ ue.createElement(ue.Fragment, null, /* @__PURE__ */ ue.createElement(we.UNSAFE_DataRouterContext.Provider, {
|
|
105
|
-
value: a
|
|
106
|
-
}, /* @__PURE__ */ ue.createElement(we.UNSAFE_DataRouterStateContext.Provider, {
|
|
107
|
-
value: l
|
|
108
|
-
}, /* @__PURE__ */ ue.createElement(we.UNSAFE_FetchersContext.Provider, {
|
|
109
|
-
value: s
|
|
110
|
-
}, /* @__PURE__ */ ue.createElement(we.UNSAFE_ViewTransitionContext.Provider, {
|
|
111
|
-
value: {
|
|
112
|
-
isTransitioning: !1
|
|
113
|
-
}
|
|
114
|
-
}, /* @__PURE__ */ ue.createElement(we.Router, {
|
|
115
|
-
basename: a.basename,
|
|
116
|
-
location: l.location,
|
|
117
|
-
navigationType: l.historyAction,
|
|
118
|
-
navigator: a.navigator,
|
|
119
|
-
static: a.static,
|
|
120
|
-
future: {
|
|
121
|
-
v7_relativeSplatPath: t.future.v7_relativeSplatPath
|
|
122
|
-
}
|
|
123
|
-
}, /* @__PURE__ */ ue.createElement(is, {
|
|
124
|
-
routes: t.routes,
|
|
125
|
-
future: t.future,
|
|
126
|
-
state: l
|
|
127
|
-
})))))), i ? /* @__PURE__ */ ue.createElement("script", {
|
|
128
|
-
suppressHydrationWarning: !0,
|
|
129
|
-
nonce: r,
|
|
130
|
-
dangerouslySetInnerHTML: {
|
|
131
|
-
__html: i
|
|
132
|
-
}
|
|
133
|
-
}) : null);
|
|
134
|
-
}
|
|
135
|
-
function is({
|
|
136
|
-
routes: e,
|
|
137
|
-
future: t,
|
|
138
|
-
state: n
|
|
139
|
-
}) {
|
|
140
|
-
return Ht.UNSAFE_useRoutesImpl(e, void 0, n, t);
|
|
141
|
-
}
|
|
142
|
-
function ls(e) {
|
|
143
|
-
if (!e) return null;
|
|
144
|
-
let t = Object.entries(e), n = {};
|
|
145
|
-
for (let [r, a] of t)
|
|
146
|
-
fe.isRouteErrorResponse(a) ? n[r] = {
|
|
147
|
-
...a,
|
|
148
|
-
__type: "RouteErrorResponse"
|
|
149
|
-
} : a instanceof Error ? n[r] = {
|
|
150
|
-
message: a.message,
|
|
151
|
-
__type: "Error",
|
|
152
|
-
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
153
|
-
// can re-create the same type during hydration.
|
|
154
|
-
...a.name !== "Error" ? {
|
|
155
|
-
__subType: a.name
|
|
156
|
-
} : {}
|
|
157
|
-
} : n[r] = a;
|
|
158
|
-
return n;
|
|
159
|
-
}
|
|
160
|
-
function Qn() {
|
|
161
|
-
return {
|
|
162
|
-
createHref: qn,
|
|
163
|
-
encodeLocation: Gn,
|
|
164
|
-
push(e) {
|
|
165
|
-
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.`);
|
|
166
|
-
},
|
|
167
|
-
replace(e) {
|
|
168
|
-
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.`);
|
|
169
|
-
},
|
|
170
|
-
go(e) {
|
|
171
|
-
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.`);
|
|
172
|
-
},
|
|
173
|
-
back() {
|
|
174
|
-
throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
|
|
175
|
-
},
|
|
176
|
-
forward() {
|
|
177
|
-
throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
function cs(e, t) {
|
|
182
|
-
return fe.createStaticHandler(e, {
|
|
183
|
-
...t,
|
|
184
|
-
mapRouteProperties: Ht.UNSAFE_mapRouteProperties
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
function us(e, t, n = {}) {
|
|
188
|
-
let r = {}, a = fe.UNSAFE_convertRoutesToDataRoutes(e, Ht.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
|
|
189
|
-
let u = r[l.route.id] || l.route;
|
|
190
|
-
return {
|
|
191
|
-
...l,
|
|
192
|
-
route: u
|
|
193
|
-
};
|
|
194
|
-
}), i = (l) => `You cannot use router.${l}() on the server because it is a stateless environment`;
|
|
195
|
-
return {
|
|
196
|
-
get basename() {
|
|
197
|
-
return t.basename;
|
|
198
|
-
},
|
|
199
|
-
get future() {
|
|
200
|
-
var l, u;
|
|
201
|
-
return {
|
|
202
|
-
v7_fetcherPersist: !1,
|
|
203
|
-
v7_normalizeFormMethod: !1,
|
|
204
|
-
v7_partialHydration: ((l = n.future) == null ? void 0 : l.v7_partialHydration) === !0,
|
|
205
|
-
v7_prependBasename: !1,
|
|
206
|
-
v7_relativeSplatPath: ((u = n.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
|
|
207
|
-
v7_skipActionErrorRevalidation: !1
|
|
208
|
-
};
|
|
209
|
-
},
|
|
210
|
-
get state() {
|
|
211
|
-
return {
|
|
212
|
-
historyAction: fe.Action.Pop,
|
|
213
|
-
location: t.location,
|
|
214
|
-
matches: s,
|
|
215
|
-
loaderData: t.loaderData,
|
|
216
|
-
actionData: t.actionData,
|
|
217
|
-
errors: t.errors,
|
|
218
|
-
initialized: !0,
|
|
219
|
-
navigation: fe.IDLE_NAVIGATION,
|
|
220
|
-
restoreScrollPosition: null,
|
|
221
|
-
preventScrollReset: !1,
|
|
222
|
-
revalidation: "idle",
|
|
223
|
-
fetchers: /* @__PURE__ */ new Map(),
|
|
224
|
-
blockers: /* @__PURE__ */ new Map()
|
|
225
|
-
};
|
|
226
|
-
},
|
|
227
|
-
get routes() {
|
|
228
|
-
return a;
|
|
229
|
-
},
|
|
230
|
-
get window() {
|
|
231
|
-
},
|
|
232
|
-
initialize() {
|
|
233
|
-
throw i("initialize");
|
|
234
|
-
},
|
|
235
|
-
subscribe() {
|
|
236
|
-
throw i("subscribe");
|
|
237
|
-
},
|
|
238
|
-
enableScrollRestoration() {
|
|
239
|
-
throw i("enableScrollRestoration");
|
|
240
|
-
},
|
|
241
|
-
navigate() {
|
|
242
|
-
throw i("navigate");
|
|
243
|
-
},
|
|
244
|
-
fetch() {
|
|
245
|
-
throw i("fetch");
|
|
246
|
-
},
|
|
247
|
-
revalidate() {
|
|
248
|
-
throw i("revalidate");
|
|
249
|
-
},
|
|
250
|
-
createHref: qn,
|
|
251
|
-
encodeLocation: Gn,
|
|
252
|
-
getFetcher() {
|
|
253
|
-
return fe.IDLE_FETCHER;
|
|
254
|
-
},
|
|
255
|
-
deleteFetcher() {
|
|
256
|
-
throw i("deleteFetcher");
|
|
257
|
-
},
|
|
258
|
-
dispose() {
|
|
259
|
-
throw i("dispose");
|
|
260
|
-
},
|
|
261
|
-
getBlocker() {
|
|
262
|
-
return fe.IDLE_BLOCKER;
|
|
263
|
-
},
|
|
264
|
-
deleteBlocker() {
|
|
265
|
-
throw i("deleteBlocker");
|
|
266
|
-
},
|
|
267
|
-
patchRoutes() {
|
|
268
|
-
throw i("patchRoutes");
|
|
269
|
-
},
|
|
270
|
-
_internalFetchControllers: /* @__PURE__ */ new Map(),
|
|
271
|
-
_internalActiveDeferreds: /* @__PURE__ */ new Map(),
|
|
272
|
-
_internalSetRoutes() {
|
|
273
|
-
throw i("_internalSetRoutes");
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
function qn(e) {
|
|
278
|
-
return typeof e == "string" ? e : we.createPath(e);
|
|
279
|
-
}
|
|
280
|
-
function Gn(e) {
|
|
281
|
-
let t = typeof e == "string" ? e : we.createPath(e);
|
|
282
|
-
t = t.replace(/ $/, "%20");
|
|
283
|
-
let n = ds.test(t) ? new URL(t) : new URL(t, "http://localhost");
|
|
284
|
-
return {
|
|
285
|
-
pathname: n.pathname,
|
|
286
|
-
search: n.search,
|
|
287
|
-
hash: n.hash
|
|
288
|
-
};
|
|
289
|
-
}
|
|
290
|
-
const ds = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, fs = {
|
|
291
|
-
"&": "\\u0026",
|
|
292
|
-
">": "\\u003e",
|
|
293
|
-
"<": "\\u003c",
|
|
294
|
-
"\u2028": "\\u2028",
|
|
295
|
-
"\u2029": "\\u2029"
|
|
296
|
-
}, hs = /[&><\u2028\u2029]/g;
|
|
297
|
-
function ps(e) {
|
|
298
|
-
return e.replace(hs, (t) => fs[t]);
|
|
299
|
-
}
|
|
300
|
-
et.StaticRouter = as;
|
|
301
|
-
var ms = et.StaticRouterProvider = ss;
|
|
302
|
-
et.createStaticHandler = cs;
|
|
303
|
-
et.createStaticRouter = us;
|
|
304
|
-
const gs = ({
|
|
305
|
-
router: e,
|
|
306
|
-
hydrate: t = !1
|
|
307
|
-
}) => /* @__PURE__ */ o.jsx(kn, { children: /* @__PURE__ */ o.jsx(Rn, { children: /* @__PURE__ */ o.jsx(Dt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ o.jsx(Uo, { router: e }) }) }) }), vs = ({
|
|
308
|
-
router: e,
|
|
309
|
-
context: t,
|
|
310
|
-
helmetContext: n
|
|
311
|
-
}) => /* @__PURE__ */ o.jsx(kn, { children: /* @__PURE__ */ o.jsx(Rn, { context: n, children: /* @__PURE__ */ o.jsx(ms, { router: e, context: t }) }) });
|
|
312
|
-
var de, Sn, ws = (Sn = class extends Un {
|
|
16
|
+
import { a as Fe, H as ue } from "./index.esm-BSV1C092.js";
|
|
17
|
+
import { R as ft, S as gt, e as mt, f as te, b as pt, u as de, g as he, L as fe, O as Be } from "./chunk-D52XG6IA-Dl7HLe6j.js";
|
|
18
|
+
import { M as xt, u as U } from "./hook-CHq7pFyz.js";
|
|
19
|
+
import { E as ze, S as D, a as yt, R as bt } from "./SlotletProvider-pfc9oejW.js";
|
|
20
|
+
import { j as r } from "./jsx-runtime-Dx-03ztt.js";
|
|
21
|
+
import { Button as vt } from "./ui/Button.js";
|
|
22
|
+
import { Callout as jt } from "./ui/Callout.js";
|
|
23
|
+
import { S as He } from "./Spinner-DuxJLLNE.js";
|
|
24
|
+
import { u as ge, a as wt, V as kt, M as Ct } from "./Markdown-CZDLNOFc.js";
|
|
25
|
+
import { S as Le, l as Ke, Q as Nt, n as w, m as we, o as ke, p as M, q as Pt, r as St, t as Dt, v as Ot, w as Ce, x as Ne, y as Mt, h as Pe, z as Se, A as At, e as Et, B as $e, C as It, j as q, a as T, D as Ze, E as Qt, u as Tt, Z as qt } from "./ZudokuContext-hmLMUdf2.js";
|
|
26
|
+
import * as $ from "react";
|
|
27
|
+
import Rt, { StrictMode as Ve, useState as Q, useEffect as R, useRef as me, useCallback as Ft, Suspense as pe, memo as Ue, forwardRef as Bt, createContext as We, Component as zt, createElement as De, useMemo as se, useContext as Ht, Fragment as Lt } from "react";
|
|
28
|
+
import * as Kt from "react-dom";
|
|
29
|
+
import { S as oe } from "./StaggeredRender-DgsamH_G.js";
|
|
30
|
+
import { C as xe } from "./ClientOnly-E7hGysn1.js";
|
|
31
|
+
import { ChevronRightIcon as $t, ExternalLinkIcon as Zt, CircleXIcon as Vt, SearchIcon as Ut, MoonStarIcon as Wt, SunIcon as _t, MenuIcon as Xt, PanelLeftIcon as Yt } from "lucide-react";
|
|
32
|
+
import { Drawer as _e, DrawerTrigger as Xe, DrawerContent as Ye, DrawerTitle as Je } from "./ui/Drawer.js";
|
|
33
|
+
import { c as O } from "./cn-qaFjX9_3.js";
|
|
34
|
+
import { c as Jt, a as Gt } from "./index-CPNSgwSb.js";
|
|
35
|
+
import { A as es, M as ts, u as ss } from "./AnchorLink-DFZZbmvr.js";
|
|
36
|
+
import * as re from "@radix-ui/react-collapsible";
|
|
37
|
+
import { B as le } from "./Button-DeAoTouo.js";
|
|
38
|
+
import { DropdownMenu as rs, DropdownMenuTrigger as ns, DropdownMenuContent as as, DropdownMenuLabel as is, DropdownMenuSeparator as ne, DropdownMenuSub as os, DropdownMenuSubTrigger as ls, DropdownMenuPortal as cs, DropdownMenuSubContent as us, DropdownMenuItem as ds } from "./ui/DropdownMenu.js";
|
|
39
|
+
import { VisuallyHidden as Ge } from "@radix-ui/react-visually-hidden";
|
|
40
|
+
import { z as hs, J as fs } from "./SyntaxHighlight-Bz-lOJtH.js";
|
|
41
|
+
import { Z as gs } from "./invariant-Caa8-XvF.js";
|
|
42
|
+
var S, Te, ms = (Te = class extends Le {
|
|
313
43
|
constructor(t = {}) {
|
|
314
44
|
super();
|
|
315
|
-
|
|
316
|
-
this.config = t,
|
|
45
|
+
C(this, S);
|
|
46
|
+
this.config = t, b(this, S, /* @__PURE__ */ new Map());
|
|
317
47
|
}
|
|
318
|
-
build(t,
|
|
319
|
-
const a =
|
|
320
|
-
let
|
|
321
|
-
return
|
|
48
|
+
build(t, s, n) {
|
|
49
|
+
const a = s.queryKey, i = s.queryHash ?? Ke(a, s);
|
|
50
|
+
let o = this.get(i);
|
|
51
|
+
return o || (o = new Nt({
|
|
322
52
|
cache: this,
|
|
323
53
|
queryKey: a,
|
|
324
|
-
queryHash:
|
|
325
|
-
options: t.defaultQueryOptions(
|
|
326
|
-
state:
|
|
54
|
+
queryHash: i,
|
|
55
|
+
options: t.defaultQueryOptions(s),
|
|
56
|
+
state: n,
|
|
327
57
|
defaultOptions: t.getQueryDefaults(a)
|
|
328
|
-
}), this.add(
|
|
58
|
+
}), this.add(o)), o;
|
|
329
59
|
}
|
|
330
60
|
add(t) {
|
|
331
|
-
|
|
61
|
+
c(this, S).has(t.queryHash) || (c(this, S).set(t.queryHash, t), this.notify({
|
|
332
62
|
type: "added",
|
|
333
63
|
query: t
|
|
334
64
|
}));
|
|
335
65
|
}
|
|
336
66
|
remove(t) {
|
|
337
|
-
const
|
|
338
|
-
|
|
67
|
+
const s = c(this, S).get(t.queryHash);
|
|
68
|
+
s && (t.destroy(), s === t && c(this, S).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
339
69
|
}
|
|
340
70
|
clear() {
|
|
341
|
-
|
|
71
|
+
w.batch(() => {
|
|
342
72
|
this.getAll().forEach((t) => {
|
|
343
73
|
this.remove(t);
|
|
344
74
|
});
|
|
345
75
|
});
|
|
346
76
|
}
|
|
347
77
|
get(t) {
|
|
348
|
-
return
|
|
78
|
+
return c(this, S).get(t);
|
|
349
79
|
}
|
|
350
80
|
getAll() {
|
|
351
|
-
return [...
|
|
81
|
+
return [...c(this, S).values()];
|
|
352
82
|
}
|
|
353
83
|
find(t) {
|
|
354
|
-
const
|
|
84
|
+
const s = { exact: !0, ...t };
|
|
355
85
|
return this.getAll().find(
|
|
356
|
-
(
|
|
86
|
+
(n) => we(s, n)
|
|
357
87
|
);
|
|
358
88
|
}
|
|
359
89
|
findAll(t = {}) {
|
|
360
|
-
const
|
|
361
|
-
return Object.keys(t).length > 0 ?
|
|
90
|
+
const s = this.getAll();
|
|
91
|
+
return Object.keys(t).length > 0 ? s.filter((n) => we(t, n)) : s;
|
|
362
92
|
}
|
|
363
93
|
notify(t) {
|
|
364
|
-
|
|
365
|
-
this.listeners.forEach((
|
|
366
|
-
|
|
94
|
+
w.batch(() => {
|
|
95
|
+
this.listeners.forEach((s) => {
|
|
96
|
+
s(t);
|
|
367
97
|
});
|
|
368
98
|
});
|
|
369
99
|
}
|
|
370
100
|
onFocus() {
|
|
371
|
-
|
|
101
|
+
w.batch(() => {
|
|
372
102
|
this.getAll().forEach((t) => {
|
|
373
103
|
t.onFocus();
|
|
374
104
|
});
|
|
375
105
|
});
|
|
376
106
|
}
|
|
377
107
|
onOnline() {
|
|
378
|
-
|
|
108
|
+
w.batch(() => {
|
|
379
109
|
this.getAll().forEach((t) => {
|
|
380
110
|
t.onOnline();
|
|
381
111
|
});
|
|
382
112
|
});
|
|
383
113
|
}
|
|
384
|
-
},
|
|
114
|
+
}, S = new WeakMap(), Te), j, W, qe, ps = (qe = class extends Le {
|
|
385
115
|
constructor(t = {}) {
|
|
386
116
|
super();
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
this.config = t,
|
|
117
|
+
C(this, j);
|
|
118
|
+
C(this, W);
|
|
119
|
+
this.config = t, b(this, j, /* @__PURE__ */ new Map()), b(this, W, Date.now());
|
|
390
120
|
}
|
|
391
|
-
build(t,
|
|
392
|
-
const a = new
|
|
121
|
+
build(t, s, n) {
|
|
122
|
+
const a = new xt({
|
|
393
123
|
mutationCache: this,
|
|
394
|
-
mutationId: ++
|
|
395
|
-
options: t.defaultMutationOptions(
|
|
396
|
-
state:
|
|
124
|
+
mutationId: ++Y(this, W)._,
|
|
125
|
+
options: t.defaultMutationOptions(s),
|
|
126
|
+
state: n
|
|
397
127
|
});
|
|
398
128
|
return this.add(a), a;
|
|
399
129
|
}
|
|
400
130
|
add(t) {
|
|
401
|
-
const
|
|
402
|
-
|
|
131
|
+
const s = J(t), n = c(this, j).get(s) ?? [];
|
|
132
|
+
n.push(t), c(this, j).set(s, n), this.notify({ type: "added", mutation: t });
|
|
403
133
|
}
|
|
404
134
|
remove(t) {
|
|
405
|
-
var
|
|
406
|
-
const
|
|
407
|
-
if (
|
|
408
|
-
const a = (
|
|
409
|
-
a && (a.length === 0 ?
|
|
135
|
+
var n;
|
|
136
|
+
const s = J(t);
|
|
137
|
+
if (c(this, j).has(s)) {
|
|
138
|
+
const a = (n = c(this, j).get(s)) == null ? void 0 : n.filter((i) => i !== t);
|
|
139
|
+
a && (a.length === 0 ? c(this, j).delete(s) : c(this, j).set(s, a));
|
|
410
140
|
}
|
|
411
141
|
this.notify({ type: "removed", mutation: t });
|
|
412
142
|
}
|
|
413
143
|
canRun(t) {
|
|
414
|
-
var
|
|
415
|
-
const
|
|
416
|
-
return !
|
|
144
|
+
var n;
|
|
145
|
+
const s = (n = c(this, j).get(J(t))) == null ? void 0 : n.find((a) => a.state.status === "pending");
|
|
146
|
+
return !s || s === t;
|
|
417
147
|
}
|
|
418
148
|
runNext(t) {
|
|
419
|
-
var
|
|
420
|
-
const
|
|
421
|
-
return (
|
|
149
|
+
var n;
|
|
150
|
+
const s = (n = c(this, j).get(J(t))) == null ? void 0 : n.find((a) => a !== t && a.state.isPaused);
|
|
151
|
+
return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
|
|
422
152
|
}
|
|
423
153
|
clear() {
|
|
424
|
-
|
|
154
|
+
w.batch(() => {
|
|
425
155
|
this.getAll().forEach((t) => {
|
|
426
156
|
this.remove(t);
|
|
427
157
|
});
|
|
428
158
|
});
|
|
429
159
|
}
|
|
430
160
|
getAll() {
|
|
431
|
-
return [...
|
|
161
|
+
return [...c(this, j).values()].flat();
|
|
432
162
|
}
|
|
433
163
|
find(t) {
|
|
434
|
-
const
|
|
164
|
+
const s = { exact: !0, ...t };
|
|
435
165
|
return this.getAll().find(
|
|
436
|
-
(
|
|
166
|
+
(n) => ke(s, n)
|
|
437
167
|
);
|
|
438
168
|
}
|
|
439
169
|
findAll(t = {}) {
|
|
440
|
-
return this.getAll().filter((
|
|
170
|
+
return this.getAll().filter((s) => ke(t, s));
|
|
441
171
|
}
|
|
442
172
|
notify(t) {
|
|
443
|
-
|
|
444
|
-
this.listeners.forEach((
|
|
445
|
-
|
|
173
|
+
w.batch(() => {
|
|
174
|
+
this.listeners.forEach((s) => {
|
|
175
|
+
s(t);
|
|
446
176
|
});
|
|
447
177
|
});
|
|
448
178
|
}
|
|
449
179
|
resumePausedMutations() {
|
|
450
|
-
const t = this.getAll().filter((
|
|
451
|
-
return
|
|
180
|
+
const t = this.getAll().filter((s) => s.state.isPaused);
|
|
181
|
+
return w.batch(
|
|
452
182
|
() => Promise.all(
|
|
453
|
-
t.map((
|
|
183
|
+
t.map((s) => s.continue().catch(M))
|
|
454
184
|
)
|
|
455
185
|
);
|
|
456
186
|
}
|
|
457
|
-
},
|
|
458
|
-
function
|
|
187
|
+
}, j = new WeakMap(), W = new WeakMap(), qe);
|
|
188
|
+
function J(e) {
|
|
459
189
|
var t;
|
|
460
190
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
461
191
|
}
|
|
462
|
-
function
|
|
192
|
+
function Oe(e) {
|
|
463
193
|
return {
|
|
464
|
-
onFetch: (t,
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
194
|
+
onFetch: (t, s) => {
|
|
195
|
+
var f, g, h, p, x;
|
|
196
|
+
const n = t.options, a = (h = (g = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : h.direction, i = ((p = t.state.data) == null ? void 0 : p.pages) || [], o = ((x = t.state.data) == null ? void 0 : x.pageParams) || [];
|
|
197
|
+
let u = { pages: [], pageParams: [] }, d = 0;
|
|
198
|
+
const l = async () => {
|
|
199
|
+
let m = !1;
|
|
200
|
+
const N = (v) => {
|
|
201
|
+
Object.defineProperty(v, "signal", {
|
|
471
202
|
enumerable: !0,
|
|
472
|
-
get: () => (t.signal.aborted ?
|
|
473
|
-
|
|
203
|
+
get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => {
|
|
204
|
+
m = !0;
|
|
474
205
|
}), t.signal)
|
|
475
206
|
});
|
|
476
|
-
},
|
|
477
|
-
if (
|
|
207
|
+
}, _ = Pt(t.options, t.fetchOptions), L = async (v, P, K) => {
|
|
208
|
+
if (m)
|
|
478
209
|
return Promise.reject();
|
|
479
|
-
if (
|
|
480
|
-
return Promise.resolve(
|
|
481
|
-
const
|
|
210
|
+
if (P == null && v.pages.length)
|
|
211
|
+
return Promise.resolve(v);
|
|
212
|
+
const X = {
|
|
482
213
|
queryKey: t.queryKey,
|
|
483
|
-
pageParam:
|
|
484
|
-
direction:
|
|
214
|
+
pageParam: P,
|
|
215
|
+
direction: K ? "backward" : "forward",
|
|
485
216
|
meta: t.options.meta
|
|
486
217
|
};
|
|
487
|
-
|
|
488
|
-
const
|
|
489
|
-
|
|
490
|
-
), { maxPages:
|
|
218
|
+
N(X);
|
|
219
|
+
const ut = await _(
|
|
220
|
+
X
|
|
221
|
+
), { maxPages: ye } = t.options, be = K ? St : Dt;
|
|
491
222
|
return {
|
|
492
|
-
pages:
|
|
493
|
-
pageParams:
|
|
223
|
+
pages: be(v.pages, ut, ye),
|
|
224
|
+
pageParams: be(v.pageParams, P, ye)
|
|
494
225
|
};
|
|
495
226
|
};
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
const x = s === "backward", p = x ? ys : vn, C = {
|
|
227
|
+
if (a && i.length) {
|
|
228
|
+
const v = a === "backward", P = v ? xs : Me, K = {
|
|
499
229
|
pages: i,
|
|
500
|
-
pageParams:
|
|
501
|
-
},
|
|
502
|
-
|
|
230
|
+
pageParams: o
|
|
231
|
+
}, X = P(n, K);
|
|
232
|
+
u = await L(K, X, v);
|
|
503
233
|
} else {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
f = await d(f, C);
|
|
512
|
-
}
|
|
234
|
+
const v = e ?? i.length;
|
|
235
|
+
do {
|
|
236
|
+
const P = d === 0 ? o[0] ?? n.initialPageParam : Me(n, u);
|
|
237
|
+
if (d > 0 && P == null)
|
|
238
|
+
break;
|
|
239
|
+
u = await L(u, P), d++;
|
|
240
|
+
} while (d < v);
|
|
513
241
|
}
|
|
514
|
-
return
|
|
242
|
+
return u;
|
|
515
243
|
};
|
|
516
244
|
t.options.persister ? t.fetchFn = () => {
|
|
517
|
-
var
|
|
518
|
-
return (
|
|
519
|
-
|
|
520
|
-
|
|
245
|
+
var m, N;
|
|
246
|
+
return (N = (m = t.options).persister) == null ? void 0 : N.call(
|
|
247
|
+
m,
|
|
248
|
+
l,
|
|
521
249
|
{
|
|
522
250
|
queryKey: t.queryKey,
|
|
523
251
|
meta: t.options.meta,
|
|
524
252
|
signal: t.signal
|
|
525
253
|
},
|
|
526
|
-
|
|
254
|
+
s
|
|
527
255
|
);
|
|
528
|
-
} : t.fetchFn =
|
|
256
|
+
} : t.fetchFn = l;
|
|
529
257
|
}
|
|
530
258
|
};
|
|
531
259
|
}
|
|
532
|
-
function
|
|
533
|
-
const
|
|
534
|
-
return e.getNextPageParam(
|
|
535
|
-
t[
|
|
260
|
+
function Me(e, { pages: t, pageParams: s }) {
|
|
261
|
+
const n = t.length - 1;
|
|
262
|
+
return t.length > 0 ? e.getNextPageParam(
|
|
263
|
+
t[n],
|
|
536
264
|
t,
|
|
537
|
-
n
|
|
538
|
-
|
|
539
|
-
);
|
|
265
|
+
s[n],
|
|
266
|
+
s
|
|
267
|
+
) : void 0;
|
|
540
268
|
}
|
|
541
|
-
function
|
|
542
|
-
var
|
|
543
|
-
return (
|
|
544
|
-
e,
|
|
545
|
-
t[0],
|
|
546
|
-
t,
|
|
547
|
-
n[0],
|
|
548
|
-
n
|
|
549
|
-
);
|
|
269
|
+
function xs(e, { pages: t, pageParams: s }) {
|
|
270
|
+
var n;
|
|
271
|
+
return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, s[0], s) : void 0;
|
|
550
272
|
}
|
|
551
|
-
var
|
|
273
|
+
var y, A, E, F, B, I, z, H, Re, ys = (Re = class {
|
|
552
274
|
constructor(e = {}) {
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
275
|
+
C(this, y);
|
|
276
|
+
C(this, A);
|
|
277
|
+
C(this, E);
|
|
278
|
+
C(this, F);
|
|
279
|
+
C(this, B);
|
|
280
|
+
C(this, I);
|
|
281
|
+
C(this, z);
|
|
282
|
+
C(this, H);
|
|
283
|
+
b(this, y, e.queryCache || new ms()), b(this, A, e.mutationCache || new ps()), b(this, E, e.defaultOptions || {}), b(this, F, /* @__PURE__ */ new Map()), b(this, B, /* @__PURE__ */ new Map()), b(this, I, 0);
|
|
562
284
|
}
|
|
563
285
|
mount() {
|
|
564
|
-
|
|
565
|
-
e && (await this.resumePausedMutations(),
|
|
566
|
-
})),
|
|
567
|
-
e && (await this.resumePausedMutations(),
|
|
286
|
+
Y(this, I)._++, c(this, I) === 1 && (b(this, z, Ot.subscribe(async (e) => {
|
|
287
|
+
e && (await this.resumePausedMutations(), c(this, y).onFocus());
|
|
288
|
+
})), b(this, H, Ce.subscribe(async (e) => {
|
|
289
|
+
e && (await this.resumePausedMutations(), c(this, y).onOnline());
|
|
568
290
|
})));
|
|
569
291
|
}
|
|
570
292
|
unmount() {
|
|
571
293
|
var e, t;
|
|
572
|
-
|
|
294
|
+
Y(this, I)._--, c(this, I) === 0 && ((e = c(this, z)) == null || e.call(this), b(this, z, void 0), (t = c(this, H)) == null || t.call(this), b(this, H, void 0));
|
|
573
295
|
}
|
|
574
296
|
isFetching(e) {
|
|
575
|
-
return
|
|
297
|
+
return c(this, y).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
576
298
|
}
|
|
577
299
|
isMutating(e) {
|
|
578
|
-
return
|
|
300
|
+
return c(this, A).findAll({ ...e, status: "pending" }).length;
|
|
579
301
|
}
|
|
580
302
|
getQueryData(e) {
|
|
581
|
-
var
|
|
303
|
+
var s;
|
|
582
304
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
583
|
-
return (
|
|
305
|
+
return (s = c(this, y).get(t.queryHash)) == null ? void 0 : s.state.data;
|
|
584
306
|
}
|
|
585
307
|
ensureQueryData(e) {
|
|
586
308
|
const t = this.getQueryData(e.queryKey);
|
|
587
309
|
if (t === void 0)
|
|
588
310
|
return this.fetchQuery(e);
|
|
589
311
|
{
|
|
590
|
-
const
|
|
591
|
-
return e.revalidateIfStale &&
|
|
312
|
+
const s = this.defaultQueryOptions(e), n = c(this, y).build(this, s);
|
|
313
|
+
return e.revalidateIfStale && n.isStaleByTime(Ne(s.staleTime, n)) && this.prefetchQuery(s), Promise.resolve(t);
|
|
592
314
|
}
|
|
593
315
|
}
|
|
594
316
|
getQueriesData(e) {
|
|
595
|
-
return
|
|
596
|
-
const
|
|
597
|
-
return [t,
|
|
317
|
+
return c(this, y).findAll(e).map(({ queryKey: t, state: s }) => {
|
|
318
|
+
const n = s.data;
|
|
319
|
+
return [t, n];
|
|
598
320
|
});
|
|
599
321
|
}
|
|
600
|
-
setQueryData(e, t,
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
),
|
|
604
|
-
if (
|
|
605
|
-
return
|
|
606
|
-
}
|
|
607
|
-
setQueriesData(e, t,
|
|
608
|
-
return
|
|
609
|
-
() =>
|
|
610
|
-
|
|
611
|
-
this.setQueryData(
|
|
322
|
+
setQueryData(e, t, s) {
|
|
323
|
+
const n = this.defaultQueryOptions({ queryKey: e }), a = c(this, y).get(
|
|
324
|
+
n.queryHash
|
|
325
|
+
), i = a == null ? void 0 : a.state.data, o = Mt(t, i);
|
|
326
|
+
if (o !== void 0)
|
|
327
|
+
return c(this, y).build(this, n).setData(o, { ...s, manual: !0 });
|
|
328
|
+
}
|
|
329
|
+
setQueriesData(e, t, s) {
|
|
330
|
+
return w.batch(
|
|
331
|
+
() => c(this, y).findAll(e).map(({ queryKey: n }) => [
|
|
332
|
+
n,
|
|
333
|
+
this.setQueryData(n, t, s)
|
|
612
334
|
])
|
|
613
335
|
);
|
|
614
336
|
}
|
|
615
337
|
getQueryState(e) {
|
|
616
|
-
var
|
|
338
|
+
var s;
|
|
617
339
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
618
|
-
return (
|
|
340
|
+
return (s = c(this, y).get(
|
|
341
|
+
t.queryHash
|
|
342
|
+
)) == null ? void 0 : s.state;
|
|
619
343
|
}
|
|
620
344
|
removeQueries(e) {
|
|
621
|
-
const t =
|
|
622
|
-
|
|
623
|
-
t.findAll(e).forEach((
|
|
624
|
-
t.remove(
|
|
345
|
+
const t = c(this, y);
|
|
346
|
+
w.batch(() => {
|
|
347
|
+
t.findAll(e).forEach((s) => {
|
|
348
|
+
t.remove(s);
|
|
625
349
|
});
|
|
626
350
|
});
|
|
627
351
|
}
|
|
628
352
|
resetQueries(e, t) {
|
|
629
|
-
const
|
|
353
|
+
const s = c(this, y), n = {
|
|
630
354
|
type: "active",
|
|
631
355
|
...e
|
|
632
356
|
};
|
|
633
|
-
return
|
|
357
|
+
return w.batch(() => (s.findAll(e).forEach((a) => {
|
|
634
358
|
a.reset();
|
|
635
|
-
}), this.refetchQueries(
|
|
359
|
+
}), this.refetchQueries(n, t)));
|
|
636
360
|
}
|
|
637
|
-
cancelQueries(e
|
|
638
|
-
const
|
|
639
|
-
() =>
|
|
361
|
+
cancelQueries(e, t = {}) {
|
|
362
|
+
const s = { revert: !0, ...t }, n = w.batch(
|
|
363
|
+
() => c(this, y).findAll(e).map((a) => a.cancel(s))
|
|
640
364
|
);
|
|
641
|
-
return Promise.all(
|
|
365
|
+
return Promise.all(n).then(M).catch(M);
|
|
642
366
|
}
|
|
643
|
-
invalidateQueries(e
|
|
644
|
-
return
|
|
645
|
-
if (
|
|
646
|
-
|
|
647
|
-
}), e.refetchType === "none")
|
|
367
|
+
invalidateQueries(e, t = {}) {
|
|
368
|
+
return w.batch(() => {
|
|
369
|
+
if (c(this, y).findAll(e).forEach((n) => {
|
|
370
|
+
n.invalidate();
|
|
371
|
+
}), (e == null ? void 0 : e.refetchType) === "none")
|
|
648
372
|
return Promise.resolve();
|
|
649
|
-
const
|
|
373
|
+
const s = {
|
|
650
374
|
...e,
|
|
651
|
-
type: e.refetchType ?? e.type ?? "active"
|
|
375
|
+
type: (e == null ? void 0 : e.refetchType) ?? (e == null ? void 0 : e.type) ?? "active"
|
|
652
376
|
};
|
|
653
|
-
return this.refetchQueries(
|
|
377
|
+
return this.refetchQueries(s, t);
|
|
654
378
|
});
|
|
655
379
|
}
|
|
656
|
-
refetchQueries(e = {}
|
|
657
|
-
const
|
|
380
|
+
refetchQueries(e, t = {}) {
|
|
381
|
+
const s = {
|
|
658
382
|
...t,
|
|
659
|
-
cancelRefetch:
|
|
660
|
-
},
|
|
661
|
-
() =>
|
|
662
|
-
let
|
|
663
|
-
return
|
|
383
|
+
cancelRefetch: t.cancelRefetch ?? !0
|
|
384
|
+
}, n = w.batch(
|
|
385
|
+
() => c(this, y).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
|
|
386
|
+
let i = a.fetch(void 0, s);
|
|
387
|
+
return s.throwOnError || (i = i.catch(M)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
|
|
664
388
|
})
|
|
665
389
|
);
|
|
666
|
-
return Promise.all(
|
|
390
|
+
return Promise.all(n).then(M);
|
|
667
391
|
}
|
|
668
392
|
fetchQuery(e) {
|
|
669
393
|
const t = this.defaultQueryOptions(e);
|
|
670
394
|
t.retry === void 0 && (t.retry = !1);
|
|
671
|
-
const
|
|
672
|
-
return
|
|
673
|
-
|
|
674
|
-
) ?
|
|
395
|
+
const s = c(this, y).build(this, t);
|
|
396
|
+
return s.isStaleByTime(
|
|
397
|
+
Ne(t.staleTime, s)
|
|
398
|
+
) ? s.fetch(t) : Promise.resolve(s.state.data);
|
|
675
399
|
}
|
|
676
400
|
prefetchQuery(e) {
|
|
677
|
-
return this.fetchQuery(e).then(
|
|
401
|
+
return this.fetchQuery(e).then(M).catch(M);
|
|
678
402
|
}
|
|
679
403
|
fetchInfiniteQuery(e) {
|
|
680
|
-
return e.behavior =
|
|
404
|
+
return e.behavior = Oe(e.pages), this.fetchQuery(e);
|
|
681
405
|
}
|
|
682
406
|
prefetchInfiniteQuery(e) {
|
|
683
|
-
return this.fetchInfiniteQuery(e).then(
|
|
407
|
+
return this.fetchInfiniteQuery(e).then(M).catch(M);
|
|
408
|
+
}
|
|
409
|
+
ensureInfiniteQueryData(e) {
|
|
410
|
+
return e.behavior = Oe(e.pages), this.ensureQueryData(e);
|
|
684
411
|
}
|
|
685
412
|
resumePausedMutations() {
|
|
686
|
-
return
|
|
413
|
+
return Ce.isOnline() ? c(this, A).resumePausedMutations() : Promise.resolve();
|
|
687
414
|
}
|
|
688
415
|
getQueryCache() {
|
|
689
|
-
return
|
|
416
|
+
return c(this, y);
|
|
690
417
|
}
|
|
691
418
|
getMutationCache() {
|
|
692
|
-
return
|
|
419
|
+
return c(this, A);
|
|
693
420
|
}
|
|
694
421
|
getDefaultOptions() {
|
|
695
|
-
return
|
|
422
|
+
return c(this, E);
|
|
696
423
|
}
|
|
697
424
|
setDefaultOptions(e) {
|
|
698
|
-
|
|
425
|
+
b(this, E, e);
|
|
699
426
|
}
|
|
700
427
|
setQueryDefaults(e, t) {
|
|
701
|
-
|
|
428
|
+
c(this, F).set(Pe(e), {
|
|
702
429
|
queryKey: e,
|
|
703
430
|
defaultOptions: t
|
|
704
431
|
});
|
|
705
432
|
}
|
|
706
433
|
getQueryDefaults(e) {
|
|
707
|
-
const t = [...
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
}), n;
|
|
434
|
+
const t = [...c(this, F).values()], s = {};
|
|
435
|
+
return t.forEach((n) => {
|
|
436
|
+
Se(e, n.queryKey) && Object.assign(s, n.defaultOptions);
|
|
437
|
+
}), s;
|
|
712
438
|
}
|
|
713
439
|
setMutationDefaults(e, t) {
|
|
714
|
-
|
|
440
|
+
c(this, B).set(Pe(e), {
|
|
715
441
|
mutationKey: e,
|
|
716
442
|
defaultOptions: t
|
|
717
443
|
});
|
|
718
444
|
}
|
|
719
445
|
getMutationDefaults(e) {
|
|
720
|
-
const t = [...
|
|
721
|
-
let
|
|
722
|
-
return t.forEach((
|
|
723
|
-
|
|
724
|
-
}),
|
|
446
|
+
const t = [...c(this, B).values()];
|
|
447
|
+
let s = {};
|
|
448
|
+
return t.forEach((n) => {
|
|
449
|
+
Se(e, n.mutationKey) && (s = { ...s, ...n.defaultOptions });
|
|
450
|
+
}), s;
|
|
725
451
|
}
|
|
726
452
|
defaultQueryOptions(e) {
|
|
727
453
|
if (e._defaulted)
|
|
728
454
|
return e;
|
|
729
455
|
const t = {
|
|
730
|
-
...
|
|
456
|
+
...c(this, E).queries,
|
|
731
457
|
...this.getQueryDefaults(e.queryKey),
|
|
732
458
|
...e,
|
|
733
459
|
_defaulted: !0
|
|
734
460
|
};
|
|
735
|
-
return t.queryHash || (t.queryHash =
|
|
461
|
+
return t.queryHash || (t.queryHash = Ke(
|
|
736
462
|
t.queryKey,
|
|
737
463
|
t
|
|
738
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.
|
|
464
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === At && (t.enabled = !1), t;
|
|
739
465
|
}
|
|
740
466
|
defaultMutationOptions(e) {
|
|
741
467
|
return e != null && e._defaulted ? e : {
|
|
742
|
-
...
|
|
468
|
+
...c(this, E).mutations,
|
|
743
469
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
744
470
|
...e,
|
|
745
471
|
_defaulted: !0
|
|
746
472
|
};
|
|
747
473
|
}
|
|
748
474
|
clear() {
|
|
749
|
-
|
|
750
|
-
}
|
|
751
|
-
}, $ = new WeakMap(), Se = new WeakMap(), Ee = new WeakMap(), ke = new WeakMap(), $e = new WeakMap(), Ce = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), Cn);
|
|
752
|
-
const Ss = $n(null), Mt = {
|
|
753
|
-
didCatch: !1,
|
|
754
|
-
error: null
|
|
755
|
-
};
|
|
756
|
-
class Es extends fa {
|
|
757
|
-
constructor(t) {
|
|
758
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Mt;
|
|
759
|
-
}
|
|
760
|
-
static getDerivedStateFromError(t) {
|
|
761
|
-
return {
|
|
762
|
-
didCatch: !0,
|
|
763
|
-
error: t
|
|
764
|
-
};
|
|
765
|
-
}
|
|
766
|
-
resetErrorBoundary() {
|
|
767
|
-
const {
|
|
768
|
-
error: t
|
|
769
|
-
} = this.state;
|
|
770
|
-
if (t !== null) {
|
|
771
|
-
for (var n, r, a = arguments.length, s = new Array(a), i = 0; i < a; i++)
|
|
772
|
-
s[i] = arguments[i];
|
|
773
|
-
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
774
|
-
args: s,
|
|
775
|
-
reason: "imperative-api"
|
|
776
|
-
}), this.setState(Mt);
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
componentDidCatch(t, n) {
|
|
780
|
-
var r, a;
|
|
781
|
-
(r = (a = this.props).onError) === null || r === void 0 || r.call(a, t, n);
|
|
475
|
+
c(this, y).clear(), c(this, A).clear();
|
|
782
476
|
}
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
477
|
+
}, y = new WeakMap(), A = new WeakMap(), E = new WeakMap(), F = new WeakMap(), B = new WeakMap(), I = new WeakMap(), z = new WeakMap(), H = new WeakMap(), Re);
|
|
478
|
+
function bs(e) {
|
|
479
|
+
return e;
|
|
480
|
+
}
|
|
481
|
+
function Ae(e, t, s) {
|
|
482
|
+
var d, l;
|
|
483
|
+
if (typeof t != "object" || t === null)
|
|
484
|
+
return;
|
|
485
|
+
const n = e.getMutationCache(), a = e.getQueryCache(), i = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((l = e.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? bs, o = t.mutations || [], u = t.queries || [];
|
|
486
|
+
o.forEach(({ state: f, ...g }) => {
|
|
487
|
+
var h, p;
|
|
488
|
+
n.build(
|
|
489
|
+
e,
|
|
490
|
+
{
|
|
491
|
+
...(h = e.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
|
|
492
|
+
...(p = s == null ? void 0 : s.defaultOptions) == null ? void 0 : p.mutations,
|
|
493
|
+
...g
|
|
494
|
+
},
|
|
495
|
+
f
|
|
496
|
+
);
|
|
497
|
+
}), u.forEach(({ queryKey: f, state: g, queryHash: h, meta: p, promise: x }) => {
|
|
498
|
+
var _, L;
|
|
499
|
+
let m = a.get(h);
|
|
500
|
+
const N = g.data === void 0 ? g.data : i(g.data);
|
|
501
|
+
if (m) {
|
|
502
|
+
if (m.state.dataUpdatedAt < g.dataUpdatedAt) {
|
|
503
|
+
const { fetchStatus: v, ...P } = g;
|
|
504
|
+
m.setState({
|
|
505
|
+
...P,
|
|
506
|
+
data: N
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
} else
|
|
510
|
+
m = a.build(
|
|
511
|
+
e,
|
|
512
|
+
{
|
|
513
|
+
...(_ = e.getDefaultOptions().hydrate) == null ? void 0 : _.queries,
|
|
514
|
+
...(L = s == null ? void 0 : s.defaultOptions) == null ? void 0 : L.queries,
|
|
515
|
+
queryKey: f,
|
|
516
|
+
queryHash: h,
|
|
517
|
+
meta: p
|
|
518
|
+
},
|
|
519
|
+
// Reset fetch status to idle to avoid
|
|
520
|
+
// query being stuck in fetching state upon hydration
|
|
521
|
+
{
|
|
522
|
+
...g,
|
|
523
|
+
data: N,
|
|
524
|
+
fetchStatus: "idle"
|
|
525
|
+
}
|
|
526
|
+
);
|
|
527
|
+
if (x) {
|
|
528
|
+
const v = Promise.resolve(x).then(i);
|
|
529
|
+
m.fetch(void 0, { initialPromise: v });
|
|
796
530
|
}
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
} = this.state;
|
|
808
|
-
let l = t;
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
var vs = ({
|
|
534
|
+
children: e,
|
|
535
|
+
options: t = {},
|
|
536
|
+
state: s,
|
|
537
|
+
queryClient: n
|
|
538
|
+
}) => {
|
|
539
|
+
const a = Et(n), [i, o] = $.useState(), u = $.useRef(t);
|
|
540
|
+
return u.current = t, $.useMemo(() => {
|
|
809
541
|
if (s) {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
return un(Ss.Provider, {
|
|
824
|
-
value: {
|
|
825
|
-
didCatch: s,
|
|
826
|
-
error: i,
|
|
827
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
542
|
+
if (typeof s != "object")
|
|
543
|
+
return;
|
|
544
|
+
const d = a.getQueryCache(), l = s.queries || [], f = [], g = [];
|
|
545
|
+
for (const h of l) {
|
|
546
|
+
const p = d.get(h.queryHash);
|
|
547
|
+
if (!p)
|
|
548
|
+
f.push(h);
|
|
549
|
+
else {
|
|
550
|
+
const x = h.state.dataUpdatedAt > p.state.dataUpdatedAt, m = i == null ? void 0 : i.find(
|
|
551
|
+
(N) => N.queryHash === h.queryHash
|
|
552
|
+
);
|
|
553
|
+
x && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && g.push(h);
|
|
554
|
+
}
|
|
828
555
|
}
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
}
|
|
832
|
-
function Cs() {
|
|
833
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
834
|
-
return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
|
|
835
|
-
}
|
|
836
|
-
const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Ds = (e) => "getRoutes" in e && typeof e.getRoutes == "function", js = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Ns = (e) => "initialize" in e && typeof e.initialize == "function", Ps = (e) => "getHead" in e && typeof e.getHead == "function", Ts = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", _s = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Wn = new Ms();
|
|
837
|
-
class Os {
|
|
838
|
-
constructor(t) {
|
|
839
|
-
J(this, "plugins");
|
|
840
|
-
J(this, "sidebars");
|
|
841
|
-
J(this, "topNavigation");
|
|
842
|
-
J(this, "meta");
|
|
843
|
-
J(this, "page");
|
|
844
|
-
J(this, "authentication");
|
|
845
|
-
J(this, "navigationPlugins");
|
|
846
|
-
J(this, "initialize", async () => {
|
|
847
|
-
await Promise.all(
|
|
848
|
-
this.plugins.filter(Ns).map((t) => {
|
|
849
|
-
var n;
|
|
850
|
-
return (n = t.initialize) == null ? void 0 : n.call(t, this);
|
|
851
|
-
})
|
|
556
|
+
f.length > 0 && Ae(a, { queries: f }, u.current), g.length > 0 && o(
|
|
557
|
+
(h) => h ? [...h, ...g] : g
|
|
852
558
|
);
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
J(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
861
|
-
this.navigationPlugins.map(
|
|
862
|
-
(r) => {
|
|
863
|
-
var a;
|
|
864
|
-
return (a = r.getSidebar) == null ? void 0 : a.call(r, Ft(t));
|
|
865
|
-
}
|
|
866
|
-
)
|
|
867
|
-
)).flatMap((r) => r ?? []));
|
|
868
|
-
J(this, "signRequest", async (t) => {
|
|
869
|
-
if (!this.authentication)
|
|
870
|
-
throw new Error("No authentication provider configured");
|
|
871
|
-
const n = await this.authentication.getAccessToken();
|
|
872
|
-
return t.headers.set("Authorization", `Bearer ${n}`), t;
|
|
873
|
-
});
|
|
874
|
-
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Ds), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
875
|
-
}
|
|
559
|
+
}
|
|
560
|
+
}, [a, i, s]), $.useEffect(() => {
|
|
561
|
+
i && (Ae(a, { queries: i }, u.current), o(void 0));
|
|
562
|
+
}, [a, i]), e;
|
|
563
|
+
};
|
|
564
|
+
function js({ error: e }) {
|
|
565
|
+
return /* @__PURE__ */ r.jsx(ze, { error: e });
|
|
876
566
|
}
|
|
877
|
-
|
|
878
|
-
|
|
567
|
+
/**
|
|
568
|
+
* react-router v7.0.2
|
|
569
|
+
*
|
|
570
|
+
* Copyright (c) Remix Software Inc.
|
|
571
|
+
*
|
|
572
|
+
* This source code is licensed under the MIT license found in the
|
|
573
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
574
|
+
*
|
|
575
|
+
* @license MIT
|
|
576
|
+
*/
|
|
577
|
+
function ws(e) {
|
|
578
|
+
return /* @__PURE__ */ $.createElement(ft, { flushSync: Kt.flushSync, ...e });
|
|
879
579
|
}
|
|
880
|
-
const
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
rtl: [...jt, "ArrowLeft"]
|
|
885
|
-
}, Ls = {
|
|
886
|
-
ltr: ["ArrowLeft"],
|
|
887
|
-
rtl: ["ArrowRight"]
|
|
888
|
-
}, tt = "Menu", [Ye, Fs, Hs] = qo(tt), [_e, Xn] = Nn(tt, [
|
|
889
|
-
Hs,
|
|
890
|
-
Pn,
|
|
891
|
-
Vn
|
|
892
|
-
]), nt = Pn(), Jn = Vn(), [Zn, Re] = _e(tt), [Us, rt] = _e(tt), er = (e) => {
|
|
893
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = e, l = nt(t), [u, v] = h.useState(null), m = h.useRef(!1), c = At(s), d = oa(a);
|
|
894
|
-
return h.useEffect(() => {
|
|
895
|
-
const f = () => {
|
|
896
|
-
m.current = !0, document.addEventListener("pointerdown", y, { capture: !0, once: !0 }), document.addEventListener("pointermove", y, { capture: !0, once: !0 });
|
|
897
|
-
}, y = () => m.current = !1;
|
|
898
|
-
return document.addEventListener("keydown", f, { capture: !0 }), () => {
|
|
899
|
-
document.removeEventListener("keydown", f, { capture: !0 }), document.removeEventListener("pointerdown", y, { capture: !0 }), document.removeEventListener("pointermove", y, { capture: !0 });
|
|
900
|
-
};
|
|
901
|
-
}, []), /* @__PURE__ */ o.jsx(_n, { ...l, children: /* @__PURE__ */ o.jsx(
|
|
902
|
-
Zn,
|
|
903
|
-
{
|
|
904
|
-
scope: t,
|
|
905
|
-
open: n,
|
|
906
|
-
onOpenChange: c,
|
|
907
|
-
content: u,
|
|
908
|
-
onContentChange: v,
|
|
909
|
-
children: /* @__PURE__ */ o.jsx(
|
|
910
|
-
Us,
|
|
911
|
-
{
|
|
912
|
-
scope: t,
|
|
913
|
-
onClose: h.useCallback(() => c(!1), [c]),
|
|
914
|
-
isUsingKeyboardRef: m,
|
|
915
|
-
dir: d,
|
|
916
|
-
modal: i,
|
|
917
|
-
children: r
|
|
918
|
-
}
|
|
919
|
-
)
|
|
580
|
+
const ks = new ys({
|
|
581
|
+
defaultOptions: {
|
|
582
|
+
queries: {
|
|
583
|
+
staleTime: 1e3 * 60 * 5
|
|
920
584
|
}
|
|
921
|
-
) });
|
|
922
|
-
};
|
|
923
|
-
er.displayName = tt;
|
|
924
|
-
var Bs = "MenuAnchor", Ut = h.forwardRef(
|
|
925
|
-
(e, t) => {
|
|
926
|
-
const { __scopeMenu: n, ...r } = e, a = nt(n);
|
|
927
|
-
return /* @__PURE__ */ o.jsx(Go, { ...a, ...r, ref: t });
|
|
928
585
|
}
|
|
929
|
-
)
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
var
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
),
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
trapFocus: n.open,
|
|
955
|
-
disableOutsidePointerEvents: n.open,
|
|
956
|
-
disableOutsideScroll: !0,
|
|
957
|
-
onFocusOutside: A(
|
|
958
|
-
e.onFocusOutside,
|
|
959
|
-
(s) => s.preventDefault(),
|
|
960
|
-
{ checkForDefaultPrevented: !1 }
|
|
961
|
-
),
|
|
962
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
586
|
+
}), Cs = ({
|
|
587
|
+
router: e,
|
|
588
|
+
hydrate: t = !1
|
|
589
|
+
}) => /* @__PURE__ */ r.jsx(Ve, { children: /* @__PURE__ */ r.jsx($e, { client: ks, children: /* @__PURE__ */ r.jsx(vs, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Fe, { children: /* @__PURE__ */ r.jsx(oe.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ r.jsx(ws, { router: e }) }) }) }) }) }), Ns = ({
|
|
590
|
+
router: e,
|
|
591
|
+
context: t,
|
|
592
|
+
queryClient: s,
|
|
593
|
+
helmetContext: n
|
|
594
|
+
}) => /* @__PURE__ */ r.jsx(Ve, { children: /* @__PURE__ */ r.jsx($e, { client: s, children: /* @__PURE__ */ r.jsx(Fe, { context: n, children: /* @__PURE__ */ r.jsx(gt, { router: e, context: t }) }) }) });
|
|
595
|
+
var Z = { exports: {} }, Ps = Z.exports, Ee;
|
|
596
|
+
function Ss() {
|
|
597
|
+
return Ee || (Ee = 1, function(e, t) {
|
|
598
|
+
(function(s, n) {
|
|
599
|
+
n(t, Rt);
|
|
600
|
+
})(Ps, function(s, n) {
|
|
601
|
+
const a = {
|
|
602
|
+
delay: 500,
|
|
603
|
+
minDuration: 200,
|
|
604
|
+
ssr: !0
|
|
605
|
+
};
|
|
606
|
+
function i() {
|
|
607
|
+
const [u, d] = n.useState(!0);
|
|
608
|
+
return n.useEffect(() => {
|
|
609
|
+
d(!1);
|
|
610
|
+
}, []), u;
|
|
963
611
|
}
|
|
964
|
-
|
|
612
|
+
function o(u, d) {
|
|
613
|
+
d = Object.assign({}, a, d);
|
|
614
|
+
const l = i() && d.ssr, f = l && u ? "DISPLAY" : "IDLE", [g, h] = n.useState(f), p = n.useRef(null);
|
|
615
|
+
return n.useEffect(() => {
|
|
616
|
+
if (u && (g === "IDLE" || l)) {
|
|
617
|
+
clearTimeout(p.current);
|
|
618
|
+
const x = l ? 0 : d.delay;
|
|
619
|
+
p.current = setTimeout(() => {
|
|
620
|
+
if (!u)
|
|
621
|
+
return h("IDLE");
|
|
622
|
+
p.current = setTimeout(() => {
|
|
623
|
+
h("EXPIRE");
|
|
624
|
+
}, d.minDuration), h("DISPLAY");
|
|
625
|
+
}, x), l || h("DELAY");
|
|
626
|
+
}
|
|
627
|
+
!u && g !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
|
|
628
|
+
}, [u, g, d.delay, d.minDuration, l]), n.useEffect(() => () => clearTimeout(p.current), []), g === "DISPLAY" || g === "EXPIRE";
|
|
629
|
+
}
|
|
630
|
+
s.defaultOptions = a, s.useSpinDelay = o;
|
|
631
|
+
});
|
|
632
|
+
}(Z, Z.exports)), Z.exports;
|
|
633
|
+
}
|
|
634
|
+
var Ds = Ss();
|
|
635
|
+
const Os = {
|
|
636
|
+
green: "bg-green-400 dark:bg-green-800",
|
|
637
|
+
blue: "bg-sky-400 dark:bg-sky-800",
|
|
638
|
+
yellow: "bg-yellow-400 dark:bg-yellow-800",
|
|
639
|
+
red: "bg-red-400 dark:bg-red-800",
|
|
640
|
+
purple: "bg-purple-400 dark:bg-purple-600",
|
|
641
|
+
indigo: "bg-indigo-400 dark:bg-indigo-600",
|
|
642
|
+
gray: "bg-gray-400 dark:bg-gray-600"
|
|
643
|
+
}, ae = ({
|
|
644
|
+
color: e,
|
|
645
|
+
label: t,
|
|
646
|
+
className: s
|
|
647
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
648
|
+
"span",
|
|
649
|
+
{
|
|
650
|
+
className: O(
|
|
651
|
+
"mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
|
|
652
|
+
Os[e],
|
|
653
|
+
s
|
|
654
|
+
),
|
|
655
|
+
children: t
|
|
965
656
|
}
|
|
966
|
-
),
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
657
|
+
), Ms = ({
|
|
658
|
+
category: e,
|
|
659
|
+
onRequestClose: t
|
|
660
|
+
}) => {
|
|
661
|
+
var h, p;
|
|
662
|
+
const s = It(e), [n, a] = Q(!1), i = e.collapsible ?? !0, o = e.collapsed ?? !0, u = !!(!i || !o || s), [d, l] = Q(u), f = mt(((h = e.link) == null ? void 0 : h.id) ?? "");
|
|
663
|
+
R(() => {
|
|
664
|
+
s && l(!0);
|
|
665
|
+
}, [s]);
|
|
666
|
+
const g = i && /* @__PURE__ */ r.jsx(
|
|
667
|
+
"button",
|
|
970
668
|
{
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
669
|
+
type: "button",
|
|
670
|
+
onClick: (x) => {
|
|
671
|
+
x.preventDefault(), l((m) => !m), a(!0);
|
|
672
|
+
},
|
|
673
|
+
children: /* @__PURE__ */ r.jsx(
|
|
674
|
+
$t,
|
|
675
|
+
{
|
|
676
|
+
size: 16,
|
|
677
|
+
className: O(
|
|
678
|
+
n && "transition",
|
|
679
|
+
"shrink-0 group-data-[state=open]:rotate-90"
|
|
680
|
+
)
|
|
681
|
+
}
|
|
682
|
+
)
|
|
977
683
|
}
|
|
978
684
|
);
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
onEscapeKeyDown: v,
|
|
990
|
-
onPointerDownOutside: m,
|
|
991
|
-
onFocusOutside: c,
|
|
992
|
-
onInteractOutside: d,
|
|
993
|
-
onDismiss: f,
|
|
994
|
-
disableOutsideScroll: y,
|
|
995
|
-
...R
|
|
996
|
-
} = e, K = Re(se, n), H = rt(se, n), q = nt(n), x = Jn(n), p = Fs(n), [C, N] = h.useState(null), P = h.useRef(null), _ = Ze(t, P, K.onContentChange), w = h.useRef(0), L = h.useRef(""), te = h.useRef(0), Q = h.useRef(null), V = h.useRef("right"), X = h.useRef(0), Oe = y ? ta : h.Fragment, he = y ? { as: na, allowPinchZoom: !0 } : void 0, Be = (E) => {
|
|
997
|
-
var le, ge;
|
|
998
|
-
const U = L.current + E, Y = p().filter((re) => !re.disabled), ne = document.activeElement, De = (le = Y.find((re) => re.ref.current === ne)) == null ? void 0 : le.textValue, pe = Y.map((re) => re.textValue), ye = oi(pe, U, De), me = (ge = Y.find((re) => re.textValue === ye)) == null ? void 0 : ge.ref.current;
|
|
999
|
-
(function re(M) {
|
|
1000
|
-
L.current = M, window.clearTimeout(w.current), M !== "" && (w.current = window.setTimeout(() => re(""), 1e3));
|
|
1001
|
-
})(U), me && setTimeout(() => me.focus());
|
|
1002
|
-
};
|
|
1003
|
-
h.useEffect(() => () => window.clearTimeout(w.current), []), Yo();
|
|
1004
|
-
const xe = h.useCallback((E) => {
|
|
1005
|
-
var Y, ne;
|
|
1006
|
-
return V.current === ((Y = Q.current) == null ? void 0 : Y.side) && si(E, (ne = Q.current) == null ? void 0 : ne.area);
|
|
1007
|
-
}, []);
|
|
1008
|
-
return /* @__PURE__ */ o.jsx(
|
|
1009
|
-
Ks,
|
|
1010
|
-
{
|
|
1011
|
-
scope: n,
|
|
1012
|
-
searchRef: L,
|
|
1013
|
-
onItemEnter: h.useCallback(
|
|
1014
|
-
(E) => {
|
|
1015
|
-
xe(E) && E.preventDefault();
|
|
1016
|
-
},
|
|
1017
|
-
[xe]
|
|
1018
|
-
),
|
|
1019
|
-
onItemLeave: h.useCallback(
|
|
1020
|
-
(E) => {
|
|
1021
|
-
var U;
|
|
1022
|
-
xe(E) || ((U = P.current) == null || U.focus(), N(null));
|
|
1023
|
-
},
|
|
1024
|
-
[xe]
|
|
1025
|
-
),
|
|
1026
|
-
onTriggerLeave: h.useCallback(
|
|
1027
|
-
(E) => {
|
|
1028
|
-
xe(E) && E.preventDefault();
|
|
1029
|
-
},
|
|
1030
|
-
[xe]
|
|
1031
|
-
),
|
|
1032
|
-
pointerGraceTimerRef: te,
|
|
1033
|
-
onPointerGraceIntentChange: h.useCallback((E) => {
|
|
1034
|
-
Q.current = E;
|
|
1035
|
-
}, []),
|
|
1036
|
-
children: /* @__PURE__ */ o.jsx(Oe, { ...he, children: /* @__PURE__ */ o.jsx(
|
|
1037
|
-
Xo,
|
|
685
|
+
return /* @__PURE__ */ r.jsxs(
|
|
686
|
+
re.Root,
|
|
687
|
+
{
|
|
688
|
+
className: "flex flex-col",
|
|
689
|
+
defaultOpen: u,
|
|
690
|
+
open: d,
|
|
691
|
+
onOpenChange: () => l(!0),
|
|
692
|
+
children: [
|
|
693
|
+
/* @__PURE__ */ r.jsx(re.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ r.jsxs(
|
|
694
|
+
"div",
|
|
1038
695
|
{
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
696
|
+
onClick: () => a(!0),
|
|
697
|
+
className: V({
|
|
698
|
+
isActive: !1,
|
|
699
|
+
className: [
|
|
700
|
+
"text-start",
|
|
701
|
+
i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
702
|
+
]
|
|
1044
703
|
}),
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
704
|
+
children: [
|
|
705
|
+
e.icon && /* @__PURE__ */ r.jsx(
|
|
706
|
+
e.icon,
|
|
707
|
+
{
|
|
708
|
+
size: 16,
|
|
709
|
+
className: O("align-[-0.125em] ", f && "text-primary")
|
|
710
|
+
}
|
|
711
|
+
),
|
|
712
|
+
((p = e.link) == null ? void 0 : p.type) === "doc" ? /* @__PURE__ */ r.jsx(
|
|
713
|
+
te,
|
|
714
|
+
{
|
|
715
|
+
to: q(e.link.id),
|
|
716
|
+
className: "flex-1",
|
|
717
|
+
onClick: () => {
|
|
718
|
+
f && !d && l(!0);
|
|
719
|
+
},
|
|
720
|
+
children: /* @__PURE__ */ r.jsxs(
|
|
721
|
+
"div",
|
|
722
|
+
{
|
|
723
|
+
className: O(
|
|
724
|
+
"flex items-center gap-2 justify-between w-full",
|
|
725
|
+
f ? "text-primary" : "text-foreground/80"
|
|
726
|
+
),
|
|
727
|
+
children: [
|
|
728
|
+
/* @__PURE__ */ r.jsx("div", { className: "truncate", children: e.label }),
|
|
729
|
+
g
|
|
730
|
+
]
|
|
731
|
+
}
|
|
732
|
+
)
|
|
733
|
+
}
|
|
734
|
+
) : /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
735
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
|
|
736
|
+
g
|
|
737
|
+
] })
|
|
738
|
+
]
|
|
739
|
+
}
|
|
740
|
+
) }),
|
|
741
|
+
/* @__PURE__ */ r.jsx(
|
|
742
|
+
re.Content,
|
|
743
|
+
{
|
|
744
|
+
className: O(
|
|
745
|
+
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
746
|
+
n && "CollapsibleContent",
|
|
747
|
+
"ms-6 my-1"
|
|
748
|
+
),
|
|
749
|
+
children: /* @__PURE__ */ r.jsx(
|
|
750
|
+
"ul",
|
|
1048
751
|
{
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
onPointerDownOutside: m,
|
|
1053
|
-
onFocusOutside: c,
|
|
1054
|
-
onInteractOutside: d,
|
|
1055
|
-
onDismiss: f,
|
|
1056
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1057
|
-
Ba,
|
|
752
|
+
className: "relative after:absolute after:-left-[--padding-nav-item] after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border",
|
|
753
|
+
children: e.items.map((x) => /* @__PURE__ */ r.jsx(
|
|
754
|
+
ce,
|
|
1058
755
|
{
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
currentTabStopId: C,
|
|
1065
|
-
onCurrentTabStopIdChange: N,
|
|
1066
|
-
onEntryFocus: A(u, (E) => {
|
|
1067
|
-
H.isUsingKeyboardRef.current || E.preventDefault();
|
|
1068
|
-
}),
|
|
1069
|
-
preventScrollOnEntryFocus: !0,
|
|
1070
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1071
|
-
Zo,
|
|
1072
|
-
{
|
|
1073
|
-
role: "menu",
|
|
1074
|
-
"aria-orientation": "vertical",
|
|
1075
|
-
"data-state": xr(K.open),
|
|
1076
|
-
"data-radix-menu-content": "",
|
|
1077
|
-
dir: H.dir,
|
|
1078
|
-
...q,
|
|
1079
|
-
...R,
|
|
1080
|
-
ref: _,
|
|
1081
|
-
style: { outline: "none", ...R.style },
|
|
1082
|
-
onKeyDown: A(R.onKeyDown, (E) => {
|
|
1083
|
-
const Y = E.target.closest("[data-radix-menu-content]") === E.currentTarget, ne = E.ctrlKey || E.altKey || E.metaKey, De = E.key.length === 1;
|
|
1084
|
-
Y && (E.key === "Tab" && E.preventDefault(), !ne && De && Be(E.key));
|
|
1085
|
-
const pe = P.current;
|
|
1086
|
-
if (E.target !== pe || !ks.includes(E.key)) return;
|
|
1087
|
-
E.preventDefault();
|
|
1088
|
-
const me = p().filter((le) => !le.disabled).map((le) => le.ref.current);
|
|
1089
|
-
Yn.includes(E.key) && me.reverse(), ni(me);
|
|
1090
|
-
}),
|
|
1091
|
-
onBlur: A(e.onBlur, (E) => {
|
|
1092
|
-
E.currentTarget.contains(E.target) || (window.clearTimeout(w.current), L.current = "");
|
|
1093
|
-
}),
|
|
1094
|
-
onPointerMove: A(
|
|
1095
|
-
e.onPointerMove,
|
|
1096
|
-
Xe((E) => {
|
|
1097
|
-
const U = E.target, Y = X.current !== E.clientX;
|
|
1098
|
-
if (E.currentTarget.contains(U) && Y) {
|
|
1099
|
-
const ne = E.clientX > X.current ? "right" : "left";
|
|
1100
|
-
V.current = ne, X.current = E.clientX;
|
|
1101
|
-
}
|
|
1102
|
-
})
|
|
1103
|
-
)
|
|
1104
|
-
}
|
|
1105
|
-
)
|
|
1106
|
-
}
|
|
1107
|
-
)
|
|
756
|
+
onRequestClose: t,
|
|
757
|
+
item: x
|
|
758
|
+
},
|
|
759
|
+
("id" in x ? x.id : "") + ("href" in x ? x.href : "") + x.label
|
|
760
|
+
))
|
|
1108
761
|
}
|
|
1109
762
|
)
|
|
1110
763
|
}
|
|
1111
|
-
)
|
|
764
|
+
)
|
|
765
|
+
]
|
|
766
|
+
}
|
|
767
|
+
);
|
|
768
|
+
}, V = Jt(
|
|
769
|
+
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
770
|
+
{
|
|
771
|
+
variants: {
|
|
772
|
+
isActive: {
|
|
773
|
+
true: "text-primary font-medium",
|
|
774
|
+
false: "text-foreground/80"
|
|
775
|
+
},
|
|
776
|
+
isMuted: {
|
|
777
|
+
true: "text-foreground/30",
|
|
778
|
+
false: ""
|
|
1112
779
|
}
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
var qs = "MenuGroup", Vt = h.forwardRef(
|
|
1118
|
-
(e, t) => {
|
|
1119
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1120
|
-
return /* @__PURE__ */ o.jsx(He.div, { role: "group", ...r, ref: t });
|
|
1121
|
-
}
|
|
1122
|
-
);
|
|
1123
|
-
Vt.displayName = qs;
|
|
1124
|
-
var Gs = "MenuLabel", or = h.forwardRef(
|
|
1125
|
-
(e, t) => {
|
|
1126
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1127
|
-
return /* @__PURE__ */ o.jsx(He.div, { ...r, ref: t });
|
|
780
|
+
},
|
|
781
|
+
defaultVariants: {
|
|
782
|
+
isActive: !1
|
|
783
|
+
}
|
|
1128
784
|
}
|
|
1129
|
-
)
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
ar,
|
|
1142
|
-
{
|
|
1143
|
-
...a,
|
|
1144
|
-
ref: u,
|
|
1145
|
-
disabled: n,
|
|
1146
|
-
onClick: A(e.onClick, m),
|
|
1147
|
-
onPointerDown: (c) => {
|
|
1148
|
-
var d;
|
|
1149
|
-
(d = e.onPointerDown) == null || d.call(e, c), v.current = !0;
|
|
1150
|
-
},
|
|
1151
|
-
onPointerUp: A(e.onPointerUp, (c) => {
|
|
1152
|
-
var d;
|
|
1153
|
-
v.current || (d = c.currentTarget) == null || d.click();
|
|
1154
|
-
}),
|
|
1155
|
-
onKeyDown: A(e.onKeyDown, (c) => {
|
|
1156
|
-
const d = l.searchRef.current !== "";
|
|
1157
|
-
n || d && c.key === " " || jt.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
|
|
1158
|
-
})
|
|
1159
|
-
}
|
|
1160
|
-
);
|
|
1161
|
-
}
|
|
1162
|
-
);
|
|
1163
|
-
vt.displayName = pt;
|
|
1164
|
-
var ar = h.forwardRef(
|
|
1165
|
-
(e, t) => {
|
|
1166
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = e, i = zt(pt, n), l = Jn(n), u = h.useRef(null), v = Ze(t, u), [m, c] = h.useState(!1), [d, f] = h.useState("");
|
|
1167
|
-
return h.useEffect(() => {
|
|
1168
|
-
const y = u.current;
|
|
1169
|
-
y && f((y.textContent ?? "").trim());
|
|
1170
|
-
}, [s.children]), /* @__PURE__ */ o.jsx(
|
|
1171
|
-
Ye.ItemSlot,
|
|
1172
|
-
{
|
|
1173
|
-
scope: n,
|
|
1174
|
-
disabled: r,
|
|
1175
|
-
textValue: a ?? d,
|
|
1176
|
-
children: /* @__PURE__ */ o.jsx(za, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ o.jsx(
|
|
1177
|
-
He.div,
|
|
1178
|
-
{
|
|
1179
|
-
role: "menuitem",
|
|
1180
|
-
"data-highlighted": m ? "" : void 0,
|
|
1181
|
-
"aria-disabled": r || void 0,
|
|
1182
|
-
"data-disabled": r ? "" : void 0,
|
|
1183
|
-
...s,
|
|
1184
|
-
ref: v,
|
|
1185
|
-
onPointerMove: A(
|
|
1186
|
-
e.onPointerMove,
|
|
1187
|
-
Xe((y) => {
|
|
1188
|
-
r ? i.onItemLeave(y) : (i.onItemEnter(y), y.defaultPrevented || y.currentTarget.focus({ preventScroll: !0 }));
|
|
1189
|
-
})
|
|
1190
|
-
),
|
|
1191
|
-
onPointerLeave: A(
|
|
1192
|
-
e.onPointerLeave,
|
|
1193
|
-
Xe((y) => i.onItemLeave(y))
|
|
1194
|
-
),
|
|
1195
|
-
onFocus: A(e.onFocus, () => c(!0)),
|
|
1196
|
-
onBlur: A(e.onBlur, () => c(!1))
|
|
1197
|
-
}
|
|
1198
|
-
) })
|
|
1199
|
-
}
|
|
1200
|
-
);
|
|
1201
|
-
}
|
|
1202
|
-
), Ws = "MenuCheckboxItem", sr = h.forwardRef(
|
|
1203
|
-
(e, t) => {
|
|
1204
|
-
const { checked: n = !1, onCheckedChange: r, ...a } = e;
|
|
1205
|
-
return /* @__PURE__ */ o.jsx(dr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
|
|
1206
|
-
vt,
|
|
1207
|
-
{
|
|
1208
|
-
role: "menuitemcheckbox",
|
|
1209
|
-
"aria-checked": mt(n) ? "mixed" : n,
|
|
1210
|
-
...a,
|
|
1211
|
-
ref: t,
|
|
1212
|
-
"data-state": Gt(n),
|
|
1213
|
-
onSelect: A(
|
|
1214
|
-
a.onSelect,
|
|
1215
|
-
() => r == null ? void 0 : r(mt(n) ? !0 : !n),
|
|
1216
|
-
{ checkForDefaultPrevented: !1 }
|
|
1217
|
-
)
|
|
1218
|
-
}
|
|
1219
|
-
) });
|
|
1220
|
-
}
|
|
1221
|
-
);
|
|
1222
|
-
sr.displayName = Ws;
|
|
1223
|
-
var ir = "MenuRadioGroup", [Ys, Xs] = _e(
|
|
1224
|
-
ir,
|
|
1225
|
-
{ value: void 0, onValueChange: () => {
|
|
1226
|
-
} }
|
|
1227
|
-
), lr = h.forwardRef(
|
|
1228
|
-
(e, t) => {
|
|
1229
|
-
const { value: n, onValueChange: r, ...a } = e, s = At(r);
|
|
1230
|
-
return /* @__PURE__ */ o.jsx(Ys, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(Vt, { ...a, ref: t }) });
|
|
1231
|
-
}
|
|
1232
|
-
);
|
|
1233
|
-
lr.displayName = ir;
|
|
1234
|
-
var cr = "MenuRadioItem", ur = h.forwardRef(
|
|
1235
|
-
(e, t) => {
|
|
1236
|
-
const { value: n, ...r } = e, a = Xs(cr, e.__scopeMenu), s = n === a.value;
|
|
1237
|
-
return /* @__PURE__ */ o.jsx(dr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
|
|
1238
|
-
vt,
|
|
1239
|
-
{
|
|
1240
|
-
role: "menuitemradio",
|
|
1241
|
-
"aria-checked": s,
|
|
1242
|
-
...r,
|
|
1243
|
-
ref: t,
|
|
1244
|
-
"data-state": Gt(s),
|
|
1245
|
-
onSelect: A(
|
|
1246
|
-
r.onSelect,
|
|
1247
|
-
() => {
|
|
1248
|
-
var i;
|
|
1249
|
-
return (i = a.onValueChange) == null ? void 0 : i.call(a, n);
|
|
1250
|
-
},
|
|
1251
|
-
{ checkForDefaultPrevented: !1 }
|
|
1252
|
-
)
|
|
1253
|
-
}
|
|
1254
|
-
) });
|
|
1255
|
-
}
|
|
1256
|
-
);
|
|
1257
|
-
ur.displayName = cr;
|
|
1258
|
-
var Qt = "MenuItemIndicator", [dr, Js] = _e(
|
|
1259
|
-
Qt,
|
|
1260
|
-
{ checked: !1 }
|
|
1261
|
-
), fr = h.forwardRef(
|
|
1262
|
-
(e, t) => {
|
|
1263
|
-
const { __scopeMenu: n, forceMount: r, ...a } = e, s = Js(Qt, n);
|
|
1264
|
-
return /* @__PURE__ */ o.jsx(
|
|
1265
|
-
gt,
|
|
1266
|
-
{
|
|
1267
|
-
present: r || mt(s.checked) || s.checked === !0,
|
|
1268
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1269
|
-
He.span,
|
|
1270
|
-
{
|
|
1271
|
-
...a,
|
|
1272
|
-
ref: t,
|
|
1273
|
-
"data-state": Gt(s.checked)
|
|
1274
|
-
}
|
|
1275
|
-
)
|
|
1276
|
-
}
|
|
1277
|
-
);
|
|
1278
|
-
}
|
|
1279
|
-
);
|
|
1280
|
-
fr.displayName = Qt;
|
|
1281
|
-
var Zs = "MenuSeparator", hr = h.forwardRef(
|
|
1282
|
-
(e, t) => {
|
|
1283
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1284
|
-
return /* @__PURE__ */ o.jsx(
|
|
1285
|
-
He.div,
|
|
1286
|
-
{
|
|
1287
|
-
role: "separator",
|
|
1288
|
-
"aria-orientation": "horizontal",
|
|
1289
|
-
...r,
|
|
1290
|
-
ref: t
|
|
1291
|
-
}
|
|
1292
|
-
);
|
|
1293
|
-
}
|
|
1294
|
-
);
|
|
1295
|
-
hr.displayName = Zs;
|
|
1296
|
-
var ei = "MenuArrow", pr = h.forwardRef(
|
|
1297
|
-
(e, t) => {
|
|
1298
|
-
const { __scopeMenu: n, ...r } = e, a = nt(n);
|
|
1299
|
-
return /* @__PURE__ */ o.jsx(ea, { ...a, ...r, ref: t });
|
|
1300
|
-
}
|
|
1301
|
-
);
|
|
1302
|
-
pr.displayName = ei;
|
|
1303
|
-
var qt = "MenuSub", [ti, mr] = _e(qt), gr = (e) => {
|
|
1304
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, s = Re(qt, t), i = nt(t), [l, u] = h.useState(null), [v, m] = h.useState(null), c = At(a);
|
|
1305
|
-
return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ o.jsx(_n, { ...i, children: /* @__PURE__ */ o.jsx(
|
|
1306
|
-
Zn,
|
|
1307
|
-
{
|
|
1308
|
-
scope: t,
|
|
1309
|
-
open: r,
|
|
1310
|
-
onOpenChange: c,
|
|
1311
|
-
content: v,
|
|
1312
|
-
onContentChange: m,
|
|
1313
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1314
|
-
ti,
|
|
785
|
+
), et = "data-anchor", ce = ({
|
|
786
|
+
item: e,
|
|
787
|
+
onRequestClose: t
|
|
788
|
+
}) => {
|
|
789
|
+
var a, i;
|
|
790
|
+
const { activeAnchor: s } = ge(), [n] = pt();
|
|
791
|
+
switch (e.type) {
|
|
792
|
+
case "category":
|
|
793
|
+
return /* @__PURE__ */ r.jsx(Ms, { category: e, onRequestClose: t });
|
|
794
|
+
case "doc":
|
|
795
|
+
return /* @__PURE__ */ r.jsxs(
|
|
796
|
+
te,
|
|
1315
797
|
{
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
798
|
+
className: ({ isActive: o }) => V({ isActive: o }),
|
|
799
|
+
to: q(e.id),
|
|
800
|
+
onClick: t,
|
|
801
|
+
children: [
|
|
802
|
+
e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
803
|
+
e.badge ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
804
|
+
/* @__PURE__ */ r.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
|
|
805
|
+
/* @__PURE__ */ r.jsx(ae, { ...e.badge })
|
|
806
|
+
] }) : e.label
|
|
807
|
+
]
|
|
1322
808
|
}
|
|
1323
|
-
)
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
ar,
|
|
1340
|
-
{
|
|
1341
|
-
id: a.triggerId,
|
|
1342
|
-
"aria-haspopup": "menu",
|
|
1343
|
-
"aria-expanded": n.open,
|
|
1344
|
-
"aria-controls": a.contentId,
|
|
1345
|
-
"data-state": xr(n.open),
|
|
1346
|
-
...e,
|
|
1347
|
-
ref: Tn(t, a.onTriggerChange),
|
|
1348
|
-
onClick: (c) => {
|
|
1349
|
-
var d;
|
|
1350
|
-
(d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1351
|
-
},
|
|
1352
|
-
onPointerMove: A(
|
|
1353
|
-
e.onPointerMove,
|
|
1354
|
-
Xe((c) => {
|
|
1355
|
-
s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
1356
|
-
n.onOpenChange(!0), m();
|
|
1357
|
-
}, 100));
|
|
1358
|
-
})
|
|
1359
|
-
),
|
|
1360
|
-
onPointerLeave: A(
|
|
1361
|
-
e.onPointerLeave,
|
|
1362
|
-
Xe((c) => {
|
|
1363
|
-
var f, y;
|
|
1364
|
-
m();
|
|
1365
|
-
const d = (f = n.content) == null ? void 0 : f.getBoundingClientRect();
|
|
1366
|
-
if (d) {
|
|
1367
|
-
const R = (y = n.content) == null ? void 0 : y.dataset.side, K = R === "right", H = K ? -5 : 5, q = d[K ? "left" : "right"], x = d[K ? "right" : "left"];
|
|
1368
|
-
s.onPointerGraceIntentChange({
|
|
1369
|
-
area: [
|
|
1370
|
-
// Apply a bleed on clientX to ensure that our exit point is
|
|
1371
|
-
// consistently within polygon bounds
|
|
1372
|
-
{ x: c.clientX + H, y: c.clientY },
|
|
1373
|
-
{ x: q, y: d.top },
|
|
1374
|
-
{ x, y: d.top },
|
|
1375
|
-
{ x, y: d.bottom },
|
|
1376
|
-
{ x: q, y: d.bottom }
|
|
1377
|
-
],
|
|
1378
|
-
side: R
|
|
1379
|
-
}), window.clearTimeout(l.current), l.current = window.setTimeout(
|
|
1380
|
-
() => s.onPointerGraceIntentChange(null),
|
|
1381
|
-
300
|
|
1382
|
-
);
|
|
1383
|
-
} else {
|
|
1384
|
-
if (s.onTriggerLeave(c), c.defaultPrevented) return;
|
|
1385
|
-
s.onPointerGraceIntentChange(null);
|
|
1386
|
-
}
|
|
1387
|
-
})
|
|
1388
|
-
),
|
|
1389
|
-
onKeyDown: A(e.onKeyDown, (c) => {
|
|
1390
|
-
var f;
|
|
1391
|
-
const d = s.searchRef.current !== "";
|
|
1392
|
-
e.disabled || d && c.key === " " || $s[r.dir].includes(c.key) && (n.onOpenChange(!0), (f = n.content) == null || f.focus(), c.preventDefault());
|
|
1393
|
-
})
|
|
1394
|
-
}
|
|
1395
|
-
) });
|
|
1396
|
-
}
|
|
1397
|
-
);
|
|
1398
|
-
vr.displayName = qe;
|
|
1399
|
-
var wr = "MenuSubContent", br = h.forwardRef(
|
|
1400
|
-
(e, t) => {
|
|
1401
|
-
const n = tr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = Re(se, e.__scopeMenu), i = rt(se, e.__scopeMenu), l = mr(wr, e.__scopeMenu), u = h.useRef(null), v = Ze(t, u);
|
|
1402
|
-
return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(gt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(
|
|
1403
|
-
Kt,
|
|
1404
|
-
{
|
|
1405
|
-
id: l.contentId,
|
|
1406
|
-
"aria-labelledby": l.triggerId,
|
|
1407
|
-
...a,
|
|
1408
|
-
ref: v,
|
|
1409
|
-
align: "start",
|
|
1410
|
-
side: i.dir === "rtl" ? "left" : "right",
|
|
1411
|
-
disableOutsidePointerEvents: !1,
|
|
1412
|
-
disableOutsideScroll: !1,
|
|
1413
|
-
trapFocus: !1,
|
|
1414
|
-
onOpenAutoFocus: (m) => {
|
|
1415
|
-
var c;
|
|
1416
|
-
i.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), m.preventDefault();
|
|
1417
|
-
},
|
|
1418
|
-
onCloseAutoFocus: (m) => m.preventDefault(),
|
|
1419
|
-
onFocusOutside: A(e.onFocusOutside, (m) => {
|
|
1420
|
-
m.target !== l.trigger && s.onOpenChange(!1);
|
|
1421
|
-
}),
|
|
1422
|
-
onEscapeKeyDown: A(e.onEscapeKeyDown, (m) => {
|
|
1423
|
-
i.onClose(), m.preventDefault();
|
|
1424
|
-
}),
|
|
1425
|
-
onKeyDown: A(e.onKeyDown, (m) => {
|
|
1426
|
-
var f;
|
|
1427
|
-
const c = m.currentTarget.contains(m.target), d = Ls[i.dir].includes(m.key);
|
|
1428
|
-
c && d && (s.onOpenChange(!1), (f = l.trigger) == null || f.focus(), m.preventDefault());
|
|
1429
|
-
})
|
|
1430
|
-
}
|
|
1431
|
-
) }) }) });
|
|
1432
|
-
}
|
|
1433
|
-
);
|
|
1434
|
-
br.displayName = wr;
|
|
1435
|
-
function xr(e) {
|
|
1436
|
-
return e ? "open" : "closed";
|
|
1437
|
-
}
|
|
1438
|
-
function mt(e) {
|
|
1439
|
-
return e === "indeterminate";
|
|
1440
|
-
}
|
|
1441
|
-
function Gt(e) {
|
|
1442
|
-
return mt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1443
|
-
}
|
|
1444
|
-
function ni(e) {
|
|
1445
|
-
const t = document.activeElement;
|
|
1446
|
-
for (const n of e)
|
|
1447
|
-
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
1448
|
-
}
|
|
1449
|
-
function ri(e, t) {
|
|
1450
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1451
|
-
}
|
|
1452
|
-
function oi(e, t, n) {
|
|
1453
|
-
const a = t.length > 1 && Array.from(t).every((v) => v === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
1454
|
-
let i = ri(e, Math.max(s, 0));
|
|
1455
|
-
a.length === 1 && (i = i.filter((v) => v !== n));
|
|
1456
|
-
const u = i.find(
|
|
1457
|
-
(v) => v.toLowerCase().startsWith(a.toLowerCase())
|
|
1458
|
-
);
|
|
1459
|
-
return u !== n ? u : void 0;
|
|
1460
|
-
}
|
|
1461
|
-
function ai(e, t) {
|
|
1462
|
-
const { x: n, y: r } = e;
|
|
1463
|
-
let a = !1;
|
|
1464
|
-
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
1465
|
-
const l = t[s].x, u = t[s].y, v = t[i].x, m = t[i].y;
|
|
1466
|
-
u > r != m > r && n < (v - l) * (r - u) / (m - u) + l && (a = !a);
|
|
1467
|
-
}
|
|
1468
|
-
return a;
|
|
1469
|
-
}
|
|
1470
|
-
function si(e, t) {
|
|
1471
|
-
if (!t) return !1;
|
|
1472
|
-
const n = { x: e.clientX, y: e.clientY };
|
|
1473
|
-
return ai(n, t);
|
|
1474
|
-
}
|
|
1475
|
-
function Xe(e) {
|
|
1476
|
-
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1477
|
-
}
|
|
1478
|
-
var ii = er, li = Ut, ci = nr, ui = rr, di = Vt, fi = or, hi = vt, pi = sr, mi = lr, gi = ur, vi = fr, wi = hr, bi = pr, xi = gr, yi = vr, Mi = br, Wt = "DropdownMenu", [Si, Jl] = Nn(
|
|
1479
|
-
Wt,
|
|
1480
|
-
[Xn]
|
|
1481
|
-
), W = Xn(), [Ei, yr] = Si(Wt), Mr = (e) => {
|
|
1482
|
-
const {
|
|
1483
|
-
__scopeDropdownMenu: t,
|
|
1484
|
-
children: n,
|
|
1485
|
-
dir: r,
|
|
1486
|
-
open: a,
|
|
1487
|
-
defaultOpen: s,
|
|
1488
|
-
onOpenChange: i,
|
|
1489
|
-
modal: l = !0
|
|
1490
|
-
} = e, u = W(t), v = h.useRef(null), [m = !1, c] = On({
|
|
1491
|
-
prop: a,
|
|
1492
|
-
defaultProp: s,
|
|
1493
|
-
onChange: i
|
|
1494
|
-
});
|
|
1495
|
-
return /* @__PURE__ */ o.jsx(
|
|
1496
|
-
Ei,
|
|
1497
|
-
{
|
|
1498
|
-
scope: t,
|
|
1499
|
-
triggerId: ht(),
|
|
1500
|
-
triggerRef: v,
|
|
1501
|
-
contentId: ht(),
|
|
1502
|
-
open: m,
|
|
1503
|
-
onOpenChange: c,
|
|
1504
|
-
onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
|
|
1505
|
-
modal: l,
|
|
1506
|
-
children: /* @__PURE__ */ o.jsx(ii, { ...u, open: m, onOpenChange: c, dir: r, modal: l, children: n })
|
|
1507
|
-
}
|
|
1508
|
-
);
|
|
1509
|
-
};
|
|
1510
|
-
Mr.displayName = Wt;
|
|
1511
|
-
var Sr = "DropdownMenuTrigger", Er = h.forwardRef(
|
|
1512
|
-
(e, t) => {
|
|
1513
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = yr(Sr, n), i = W(n);
|
|
1514
|
-
return /* @__PURE__ */ o.jsx(li, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
|
|
1515
|
-
He.button,
|
|
1516
|
-
{
|
|
1517
|
-
type: "button",
|
|
1518
|
-
id: s.triggerId,
|
|
1519
|
-
"aria-haspopup": "menu",
|
|
1520
|
-
"aria-expanded": s.open,
|
|
1521
|
-
"aria-controls": s.open ? s.contentId : void 0,
|
|
1522
|
-
"data-state": s.open ? "open" : "closed",
|
|
1523
|
-
"data-disabled": r ? "" : void 0,
|
|
1524
|
-
disabled: r,
|
|
1525
|
-
...a,
|
|
1526
|
-
ref: Tn(t, s.triggerRef),
|
|
1527
|
-
onPointerDown: A(e.onPointerDown, (l) => {
|
|
1528
|
-
!r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
|
|
1529
|
-
}),
|
|
1530
|
-
onKeyDown: A(e.onKeyDown, (l) => {
|
|
1531
|
-
r || (["Enter", " "].includes(l.key) && s.onOpenToggle(), l.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
|
|
1532
|
-
})
|
|
1533
|
-
}
|
|
1534
|
-
) });
|
|
1535
|
-
}
|
|
1536
|
-
);
|
|
1537
|
-
Er.displayName = Sr;
|
|
1538
|
-
var Ci = "DropdownMenuPortal", Cr = (e) => {
|
|
1539
|
-
const { __scopeDropdownMenu: t, ...n } = e, r = W(t);
|
|
1540
|
-
return /* @__PURE__ */ o.jsx(ci, { ...r, ...n });
|
|
1541
|
-
};
|
|
1542
|
-
Cr.displayName = Ci;
|
|
1543
|
-
var Rr = "DropdownMenuContent", Dr = h.forwardRef(
|
|
1544
|
-
(e, t) => {
|
|
1545
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = yr(Rr, n), s = W(n), i = h.useRef(!1);
|
|
1546
|
-
return /* @__PURE__ */ o.jsx(
|
|
1547
|
-
ui,
|
|
1548
|
-
{
|
|
1549
|
-
id: a.contentId,
|
|
1550
|
-
"aria-labelledby": a.triggerId,
|
|
1551
|
-
...s,
|
|
1552
|
-
...r,
|
|
1553
|
-
ref: t,
|
|
1554
|
-
onCloseAutoFocus: A(e.onCloseAutoFocus, (l) => {
|
|
1555
|
-
var u;
|
|
1556
|
-
i.current || (u = a.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
|
|
1557
|
-
}),
|
|
1558
|
-
onInteractOutside: A(e.onInteractOutside, (l) => {
|
|
1559
|
-
const u = l.detail.originalEvent, v = u.button === 0 && u.ctrlKey === !0, m = u.button === 2 || v;
|
|
1560
|
-
(!a.modal || m) && (i.current = !0);
|
|
1561
|
-
}),
|
|
1562
|
-
style: {
|
|
1563
|
-
...e.style,
|
|
1564
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1565
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1566
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1567
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1568
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
809
|
+
);
|
|
810
|
+
case "link":
|
|
811
|
+
return e.href.startsWith("#") ? /* @__PURE__ */ r.jsx(
|
|
812
|
+
es,
|
|
813
|
+
{
|
|
814
|
+
to: { hash: e.href, search: n.toString() },
|
|
815
|
+
[et]: e.href.slice(1),
|
|
816
|
+
className: V({
|
|
817
|
+
isActive: e.href.slice(1) === s,
|
|
818
|
+
className: ((a = e.badge) == null ? void 0 : a.placement) !== "start" && "justify-between"
|
|
819
|
+
}),
|
|
820
|
+
onClick: t,
|
|
821
|
+
children: e.badge ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
822
|
+
/* @__PURE__ */ r.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
823
|
+
/* @__PURE__ */ r.jsx(ae, { ...e.badge })
|
|
824
|
+
] }) : /* @__PURE__ */ r.jsx("span", { className: "break-all", children: e.label })
|
|
1569
825
|
}
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
)
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
)
|
|
1581
|
-
|
|
1582
|
-
var ji = "DropdownMenuLabel", jr = h.forwardRef(
|
|
1583
|
-
(e, t) => {
|
|
1584
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1585
|
-
return /* @__PURE__ */ o.jsx(fi, { ...a, ...r, ref: t });
|
|
1586
|
-
}
|
|
1587
|
-
);
|
|
1588
|
-
jr.displayName = ji;
|
|
1589
|
-
var Ni = "DropdownMenuItem", Nr = h.forwardRef(
|
|
1590
|
-
(e, t) => {
|
|
1591
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1592
|
-
return /* @__PURE__ */ o.jsx(hi, { ...a, ...r, ref: t });
|
|
1593
|
-
}
|
|
1594
|
-
);
|
|
1595
|
-
Nr.displayName = Ni;
|
|
1596
|
-
var Pi = "DropdownMenuCheckboxItem", Pr = h.forwardRef((e, t) => {
|
|
1597
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1598
|
-
return /* @__PURE__ */ o.jsx(pi, { ...a, ...r, ref: t });
|
|
1599
|
-
});
|
|
1600
|
-
Pr.displayName = Pi;
|
|
1601
|
-
var Ti = "DropdownMenuRadioGroup", _i = h.forwardRef((e, t) => {
|
|
1602
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1603
|
-
return /* @__PURE__ */ o.jsx(mi, { ...a, ...r, ref: t });
|
|
1604
|
-
});
|
|
1605
|
-
_i.displayName = Ti;
|
|
1606
|
-
var Oi = "DropdownMenuRadioItem", Tr = h.forwardRef((e, t) => {
|
|
1607
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1608
|
-
return /* @__PURE__ */ o.jsx(gi, { ...a, ...r, ref: t });
|
|
1609
|
-
});
|
|
1610
|
-
Tr.displayName = Oi;
|
|
1611
|
-
var Ii = "DropdownMenuItemIndicator", _r = h.forwardRef((e, t) => {
|
|
1612
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1613
|
-
return /* @__PURE__ */ o.jsx(vi, { ...a, ...r, ref: t });
|
|
1614
|
-
});
|
|
1615
|
-
_r.displayName = Ii;
|
|
1616
|
-
var Ai = "DropdownMenuSeparator", Or = h.forwardRef((e, t) => {
|
|
1617
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1618
|
-
return /* @__PURE__ */ o.jsx(wi, { ...a, ...r, ref: t });
|
|
1619
|
-
});
|
|
1620
|
-
Or.displayName = Ai;
|
|
1621
|
-
var ki = "DropdownMenuArrow", $i = h.forwardRef(
|
|
1622
|
-
(e, t) => {
|
|
1623
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1624
|
-
return /* @__PURE__ */ o.jsx(bi, { ...a, ...r, ref: t });
|
|
1625
|
-
}
|
|
1626
|
-
);
|
|
1627
|
-
$i.displayName = ki;
|
|
1628
|
-
var Li = (e) => {
|
|
1629
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, i = W(t), [l = !1, u] = On({
|
|
1630
|
-
prop: r,
|
|
1631
|
-
defaultProp: s,
|
|
1632
|
-
onChange: a
|
|
1633
|
-
});
|
|
1634
|
-
return /* @__PURE__ */ o.jsx(xi, { ...i, open: l, onOpenChange: u, children: n });
|
|
1635
|
-
}, Fi = "DropdownMenuSubTrigger", Ir = h.forwardRef((e, t) => {
|
|
1636
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1637
|
-
return /* @__PURE__ */ o.jsx(yi, { ...a, ...r, ref: t });
|
|
1638
|
-
});
|
|
1639
|
-
Ir.displayName = Fi;
|
|
1640
|
-
var Hi = "DropdownMenuSubContent", Ar = h.forwardRef((e, t) => {
|
|
1641
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
|
|
1642
|
-
return /* @__PURE__ */ o.jsx(
|
|
1643
|
-
Mi,
|
|
1644
|
-
{
|
|
1645
|
-
...a,
|
|
1646
|
-
...r,
|
|
1647
|
-
ref: t,
|
|
1648
|
-
style: {
|
|
1649
|
-
...e.style,
|
|
1650
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1651
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1652
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1653
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1654
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
);
|
|
1658
|
-
});
|
|
1659
|
-
Ar.displayName = Hi;
|
|
1660
|
-
var Ui = Mr, Bi = Er, kr = Cr, $r = Dr, Lr = jr, Fr = Nr, Hr = Pr, Ur = Tr, Br = _r, zr = Or, zi = Li, Kr = Ir, Vr = Ar;
|
|
1661
|
-
const Ki = Ui, Vi = Bi, Qi = kr, qi = zi, Qr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1662
|
-
Kr,
|
|
1663
|
-
{
|
|
1664
|
-
ref: a,
|
|
1665
|
-
className: O(
|
|
1666
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
1667
|
-
t && "pl-8",
|
|
1668
|
-
e
|
|
1669
|
-
),
|
|
1670
|
-
...r,
|
|
1671
|
-
children: [
|
|
1672
|
-
n,
|
|
1673
|
-
/* @__PURE__ */ o.jsx(Kn, { className: "ml-auto h-4 w-4" })
|
|
1674
|
-
]
|
|
1675
|
-
}
|
|
1676
|
-
));
|
|
1677
|
-
Qr.displayName = Kr.displayName;
|
|
1678
|
-
const qr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1679
|
-
Vr,
|
|
1680
|
-
{
|
|
1681
|
-
ref: n,
|
|
1682
|
-
className: O(
|
|
1683
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1684
|
-
e
|
|
1685
|
-
),
|
|
1686
|
-
...t
|
|
1687
|
-
}
|
|
1688
|
-
));
|
|
1689
|
-
qr.displayName = Vr.displayName;
|
|
1690
|
-
const Gr = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ o.jsx(kr, { children: /* @__PURE__ */ o.jsx(
|
|
1691
|
-
$r,
|
|
1692
|
-
{
|
|
1693
|
-
ref: r,
|
|
1694
|
-
sideOffset: t,
|
|
1695
|
-
className: O(
|
|
1696
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1697
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1698
|
-
e
|
|
1699
|
-
),
|
|
1700
|
-
...n
|
|
1701
|
-
}
|
|
1702
|
-
) }));
|
|
1703
|
-
Gr.displayName = $r.displayName;
|
|
1704
|
-
const Wr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1705
|
-
Fr,
|
|
1706
|
-
{
|
|
1707
|
-
ref: r,
|
|
1708
|
-
className: O(
|
|
1709
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1710
|
-
t && "pl-8",
|
|
1711
|
-
e
|
|
1712
|
-
),
|
|
1713
|
-
...n
|
|
1714
|
-
}
|
|
1715
|
-
));
|
|
1716
|
-
Wr.displayName = Fr.displayName;
|
|
1717
|
-
const Gi = h.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1718
|
-
Hr,
|
|
1719
|
-
{
|
|
1720
|
-
ref: a,
|
|
1721
|
-
className: O(
|
|
1722
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1723
|
-
e
|
|
1724
|
-
),
|
|
1725
|
-
checked: n,
|
|
1726
|
-
...r,
|
|
1727
|
-
children: [
|
|
1728
|
-
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Br, { children: /* @__PURE__ */ o.jsx(Oa, { className: "h-4 w-4" }) }) }),
|
|
1729
|
-
t
|
|
1730
|
-
]
|
|
1731
|
-
}
|
|
1732
|
-
));
|
|
1733
|
-
Gi.displayName = Hr.displayName;
|
|
1734
|
-
const Wi = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ o.jsxs(
|
|
1735
|
-
Ur,
|
|
1736
|
-
{
|
|
1737
|
-
ref: r,
|
|
1738
|
-
className: O(
|
|
1739
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1740
|
-
e
|
|
1741
|
-
),
|
|
1742
|
-
...n,
|
|
1743
|
-
children: [
|
|
1744
|
-
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Br, { children: /* @__PURE__ */ o.jsx(Ia, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1745
|
-
t
|
|
1746
|
-
]
|
|
1747
|
-
}
|
|
1748
|
-
));
|
|
1749
|
-
Wi.displayName = Ur.displayName;
|
|
1750
|
-
const Yr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1751
|
-
Lr,
|
|
1752
|
-
{
|
|
1753
|
-
ref: r,
|
|
1754
|
-
className: O(
|
|
1755
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
1756
|
-
t && "pl-8",
|
|
1757
|
-
e
|
|
1758
|
-
),
|
|
1759
|
-
...n
|
|
1760
|
-
}
|
|
1761
|
-
));
|
|
1762
|
-
Yr.displayName = Lr.displayName;
|
|
1763
|
-
const Xr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
1764
|
-
zr,
|
|
1765
|
-
{
|
|
1766
|
-
ref: n,
|
|
1767
|
-
className: O("-mx-1 my-1 h-px bg-muted", e),
|
|
1768
|
-
...t
|
|
1769
|
-
}
|
|
1770
|
-
));
|
|
1771
|
-
Xr.displayName = zr.displayName;
|
|
1772
|
-
const Yi = {
|
|
1773
|
-
info: "bg-blue-500",
|
|
1774
|
-
note: "bg-gray-500",
|
|
1775
|
-
tip: "bg-green-600",
|
|
1776
|
-
caution: "bg-orange-500",
|
|
1777
|
-
danger: "bg-rose-500"
|
|
1778
|
-
}, Xi = () => {
|
|
1779
|
-
const { page: e } = Ue(), [t, n] = Te(!0);
|
|
1780
|
-
return !(e != null && e.banner) || !t ? /* @__PURE__ */ o.jsx("style", { children: ":root { --banner-height: 0px; }" }) : /* @__PURE__ */ o.jsxs(
|
|
1781
|
-
"div",
|
|
1782
|
-
{
|
|
1783
|
-
className: O(
|
|
1784
|
-
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
|
|
1785
|
-
e.banner.color ? Yi[e.banner.color] : "bg-primary"
|
|
1786
|
-
),
|
|
1787
|
-
children: [
|
|
1788
|
-
/* @__PURE__ */ o.jsx("div", { className: "w-full", children: e.banner.message }),
|
|
1789
|
-
e.banner.dismissible && /* @__PURE__ */ o.jsx(
|
|
1790
|
-
"button",
|
|
1791
|
-
{
|
|
1792
|
-
type: "button",
|
|
1793
|
-
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
1794
|
-
onClick: () => n(!1),
|
|
1795
|
-
children: /* @__PURE__ */ o.jsx(Aa, { size: 16 })
|
|
1796
|
-
}
|
|
1797
|
-
)
|
|
1798
|
-
]
|
|
1799
|
-
}
|
|
1800
|
-
);
|
|
1801
|
-
};
|
|
1802
|
-
function Ji(e) {
|
|
1803
|
-
if (typeof document > "u") return;
|
|
1804
|
-
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
1805
|
-
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
1806
|
-
}
|
|
1807
|
-
const Jr = g.createContext({
|
|
1808
|
-
drawerRef: {
|
|
1809
|
-
current: null
|
|
1810
|
-
},
|
|
1811
|
-
overlayRef: {
|
|
1812
|
-
current: null
|
|
1813
|
-
},
|
|
1814
|
-
scaleBackground: () => {
|
|
1815
|
-
},
|
|
1816
|
-
onPress: () => {
|
|
1817
|
-
},
|
|
1818
|
-
onRelease: () => {
|
|
1819
|
-
},
|
|
1820
|
-
onDrag: () => {
|
|
1821
|
-
},
|
|
1822
|
-
onNestedDrag: () => {
|
|
1823
|
-
},
|
|
1824
|
-
onNestedOpenChange: () => {
|
|
1825
|
-
},
|
|
1826
|
-
onNestedRelease: () => {
|
|
1827
|
-
},
|
|
1828
|
-
openProp: void 0,
|
|
1829
|
-
dismissible: !1,
|
|
1830
|
-
handleOnly: !1,
|
|
1831
|
-
isOpen: !1,
|
|
1832
|
-
isDragging: !1,
|
|
1833
|
-
keyboardIsOpen: {
|
|
1834
|
-
current: !1
|
|
1835
|
-
},
|
|
1836
|
-
snapPointsOffset: null,
|
|
1837
|
-
snapPoints: null,
|
|
1838
|
-
modal: !1,
|
|
1839
|
-
shouldFade: !1,
|
|
1840
|
-
activeSnapPoint: null,
|
|
1841
|
-
onOpenChange: () => {
|
|
1842
|
-
},
|
|
1843
|
-
setActiveSnapPoint: () => {
|
|
1844
|
-
},
|
|
1845
|
-
visible: !1,
|
|
1846
|
-
closeDrawer: () => {
|
|
1847
|
-
},
|
|
1848
|
-
setVisible: () => {
|
|
1849
|
-
},
|
|
1850
|
-
direction: "bottom"
|
|
1851
|
-
}), wt = () => {
|
|
1852
|
-
const e = g.useContext(Jr);
|
|
1853
|
-
if (!e)
|
|
1854
|
-
throw new Error("useDrawerContext must be used within a Drawer.Root");
|
|
1855
|
-
return e;
|
|
1856
|
-
};
|
|
1857
|
-
Ji("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");
|
|
1858
|
-
const Zr = typeof window < "u" ? pa : be;
|
|
1859
|
-
function Nt(...e) {
|
|
1860
|
-
return (...t) => {
|
|
1861
|
-
for (let n of e)
|
|
1862
|
-
typeof n == "function" && n(...t);
|
|
1863
|
-
};
|
|
1864
|
-
}
|
|
1865
|
-
function Zi() {
|
|
1866
|
-
return Yt(/^Mac/);
|
|
1867
|
-
}
|
|
1868
|
-
function el() {
|
|
1869
|
-
return Yt(/^iPhone/);
|
|
1870
|
-
}
|
|
1871
|
-
function tl() {
|
|
1872
|
-
return Yt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
1873
|
-
Zi() && navigator.maxTouchPoints > 1;
|
|
1874
|
-
}
|
|
1875
|
-
function eo() {
|
|
1876
|
-
return el() || tl();
|
|
1877
|
-
}
|
|
1878
|
-
function Yt(e) {
|
|
1879
|
-
return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
|
|
1880
|
-
}
|
|
1881
|
-
const St = typeof document < "u" && window.visualViewport;
|
|
1882
|
-
function bn(e) {
|
|
1883
|
-
let t = window.getComputedStyle(e);
|
|
1884
|
-
return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
|
|
1885
|
-
}
|
|
1886
|
-
function to(e) {
|
|
1887
|
-
for (bn(e) && (e = e.parentElement); e && !bn(e); )
|
|
1888
|
-
e = e.parentElement;
|
|
1889
|
-
return e || document.scrollingElement || document.documentElement;
|
|
1890
|
-
}
|
|
1891
|
-
const nl = /* @__PURE__ */ new Set([
|
|
1892
|
-
"checkbox",
|
|
1893
|
-
"radio",
|
|
1894
|
-
"range",
|
|
1895
|
-
"color",
|
|
1896
|
-
"file",
|
|
1897
|
-
"image",
|
|
1898
|
-
"button",
|
|
1899
|
-
"submit",
|
|
1900
|
-
"reset"
|
|
1901
|
-
]);
|
|
1902
|
-
let ut = 0, Et;
|
|
1903
|
-
function rl(e = {}) {
|
|
1904
|
-
let { isDisabled: t } = e;
|
|
1905
|
-
Zr(() => {
|
|
1906
|
-
if (!t)
|
|
1907
|
-
return ut++, ut === 1 && (eo() ? Et = al() : Et = ol()), () => {
|
|
1908
|
-
ut--, ut === 0 && Et();
|
|
1909
|
-
};
|
|
1910
|
-
}, [
|
|
1911
|
-
t
|
|
1912
|
-
]);
|
|
1913
|
-
}
|
|
1914
|
-
function ol() {
|
|
1915
|
-
return Nt(no(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
1916
|
-
}
|
|
1917
|
-
function al() {
|
|
1918
|
-
let e, t = 0, n = (c) => {
|
|
1919
|
-
e = to(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
|
|
1920
|
-
}, r = (c) => {
|
|
1921
|
-
if (!e || e === document.documentElement || e === document.body) {
|
|
1922
|
-
c.preventDefault();
|
|
1923
|
-
return;
|
|
1924
|
-
}
|
|
1925
|
-
let d = c.changedTouches[0].pageY, f = e.scrollTop, y = e.scrollHeight - e.clientHeight;
|
|
1926
|
-
y !== 0 && ((f <= 0 && d > t || f >= y && d < t) && c.preventDefault(), t = d);
|
|
1927
|
-
}, a = (c) => {
|
|
1928
|
-
let d = c.target;
|
|
1929
|
-
Pt(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
|
|
1930
|
-
d.style.transform = "";
|
|
1931
|
-
}));
|
|
1932
|
-
}, s = (c) => {
|
|
1933
|
-
let d = c.target;
|
|
1934
|
-
Pt(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
1935
|
-
d.style.transform = "", St && (St.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
1936
|
-
xn(d);
|
|
1937
|
-
}) : St.addEventListener("resize", () => xn(d), {
|
|
1938
|
-
once: !0
|
|
1939
|
-
}));
|
|
1940
|
-
}));
|
|
1941
|
-
}, i = () => {
|
|
1942
|
-
window.scrollTo(0, 0);
|
|
1943
|
-
}, l = window.pageXOffset, u = window.pageYOffset, v = Nt(no(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
1944
|
-
window.scrollTo(0, 0);
|
|
1945
|
-
let m = Nt(Ve(document, "touchstart", n, {
|
|
1946
|
-
passive: !1,
|
|
1947
|
-
capture: !0
|
|
1948
|
-
}), Ve(document, "touchmove", r, {
|
|
1949
|
-
passive: !1,
|
|
1950
|
-
capture: !0
|
|
1951
|
-
}), Ve(document, "touchend", a, {
|
|
1952
|
-
passive: !1,
|
|
1953
|
-
capture: !0
|
|
1954
|
-
}), Ve(document, "focus", s, !0), Ve(window, "scroll", i));
|
|
1955
|
-
return () => {
|
|
1956
|
-
v(), m(), window.scrollTo(l, u);
|
|
1957
|
-
};
|
|
1958
|
-
}
|
|
1959
|
-
function no(e, t, n) {
|
|
1960
|
-
let r = e.style[t];
|
|
1961
|
-
return e.style[t] = n, () => {
|
|
1962
|
-
e.style[t] = r;
|
|
1963
|
-
};
|
|
1964
|
-
}
|
|
1965
|
-
function Ve(e, t, n, r) {
|
|
1966
|
-
return e.addEventListener(t, n, r), () => {
|
|
1967
|
-
e.removeEventListener(t, n, r);
|
|
1968
|
-
};
|
|
1969
|
-
}
|
|
1970
|
-
function xn(e) {
|
|
1971
|
-
let t = document.scrollingElement || document.documentElement;
|
|
1972
|
-
for (; e && e !== t; ) {
|
|
1973
|
-
let n = to(e);
|
|
1974
|
-
if (n !== document.documentElement && n !== document.body && n !== e) {
|
|
1975
|
-
let r = n.getBoundingClientRect().top, a = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
|
|
1976
|
-
const i = n.getBoundingClientRect().bottom;
|
|
1977
|
-
s > i && (n.scrollTop += a - r);
|
|
1978
|
-
}
|
|
1979
|
-
e = n.parentElement;
|
|
1980
|
-
}
|
|
1981
|
-
}
|
|
1982
|
-
function Pt(e) {
|
|
1983
|
-
return e instanceof HTMLInputElement && !nl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
|
|
1984
|
-
}
|
|
1985
|
-
function sl(e, t) {
|
|
1986
|
-
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
1987
|
-
}
|
|
1988
|
-
function il(...e) {
|
|
1989
|
-
return (t) => e.forEach((n) => sl(n, t));
|
|
1990
|
-
}
|
|
1991
|
-
function ro(...e) {
|
|
1992
|
-
return h.useCallback(il(...e), e);
|
|
1993
|
-
}
|
|
1994
|
-
let Qe = null;
|
|
1995
|
-
function ll({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: a, noBodyStyles: s }) {
|
|
1996
|
-
const [i, l] = g.useState(() => typeof window < "u" ? window.location.href : ""), u = g.useRef(0), v = g.useCallback(() => {
|
|
1997
|
-
if (Qe === null && e && !s) {
|
|
1998
|
-
Qe = {
|
|
1999
|
-
position: document.body.style.position,
|
|
2000
|
-
top: document.body.style.top,
|
|
2001
|
-
left: document.body.style.left,
|
|
2002
|
-
height: document.body.style.height,
|
|
2003
|
-
right: "unset"
|
|
2004
|
-
};
|
|
2005
|
-
const { scrollX: c, innerHeight: d } = window;
|
|
2006
|
-
document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
|
|
2007
|
-
top: `${-u.current}px`,
|
|
2008
|
-
left: `${-c}px`,
|
|
2009
|
-
right: "0px",
|
|
2010
|
-
height: "auto"
|
|
2011
|
-
}), window.setTimeout(() => window.requestAnimationFrame(() => {
|
|
2012
|
-
const f = d - window.innerHeight;
|
|
2013
|
-
f && u.current >= d && (document.body.style.top = `${-(u.current + f)}px`);
|
|
2014
|
-
}), 300);
|
|
2015
|
-
}
|
|
2016
|
-
}, [
|
|
2017
|
-
e
|
|
2018
|
-
]), m = g.useCallback(() => {
|
|
2019
|
-
if (Qe !== null && !s) {
|
|
2020
|
-
const c = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
|
|
2021
|
-
Object.assign(document.body.style, Qe), window.requestAnimationFrame(() => {
|
|
2022
|
-
if (a && i !== window.location.href) {
|
|
2023
|
-
l(window.location.href);
|
|
2024
|
-
return;
|
|
826
|
+
) : e.href.startsWith("http") ? /* @__PURE__ */ r.jsxs(
|
|
827
|
+
"a",
|
|
828
|
+
{
|
|
829
|
+
className: V(),
|
|
830
|
+
href: e.href,
|
|
831
|
+
target: "_blank",
|
|
832
|
+
rel: "noopener noreferrer",
|
|
833
|
+
onClick: t,
|
|
834
|
+
children: [
|
|
835
|
+
/* @__PURE__ */ r.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
836
|
+
/* @__PURE__ */ r.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ r.jsx(Zt, { className: "inline -translate-y-0.5", size: 12 }) })
|
|
837
|
+
]
|
|
2025
838
|
}
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
window.removeEventListener("scroll", c);
|
|
2038
|
-
};
|
|
2039
|
-
}, []), g.useEffect(() => {
|
|
2040
|
-
n || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && v(), t || window.setTimeout(() => {
|
|
2041
|
-
m();
|
|
2042
|
-
}, 500)) : m());
|
|
2043
|
-
}, [
|
|
2044
|
-
e,
|
|
2045
|
-
r,
|
|
2046
|
-
i,
|
|
2047
|
-
t,
|
|
2048
|
-
n,
|
|
2049
|
-
v,
|
|
2050
|
-
m
|
|
2051
|
-
]), {
|
|
2052
|
-
restorePositionSetting: m
|
|
2053
|
-
};
|
|
2054
|
-
}
|
|
2055
|
-
const oo = /* @__PURE__ */ new WeakMap();
|
|
2056
|
-
function I(e, t, n = !1) {
|
|
2057
|
-
if (!e || !(e instanceof HTMLElement)) return;
|
|
2058
|
-
let r = {};
|
|
2059
|
-
Object.entries(t).forEach(([a, s]) => {
|
|
2060
|
-
if (a.startsWith("--")) {
|
|
2061
|
-
e.style.setProperty(a, s);
|
|
2062
|
-
return;
|
|
2063
|
-
}
|
|
2064
|
-
r[a] = e.style[a], e.style[a] = s;
|
|
2065
|
-
}), !n && oo.set(e, r);
|
|
2066
|
-
}
|
|
2067
|
-
function dt(e, t) {
|
|
2068
|
-
if (!e || !(e instanceof HTMLElement)) return;
|
|
2069
|
-
let n = oo.get(e);
|
|
2070
|
-
n && (t ? e.style[t] = n[t] : Object.entries(n).forEach(([r, a]) => {
|
|
2071
|
-
e.style[r] = a;
|
|
2072
|
-
}));
|
|
2073
|
-
}
|
|
2074
|
-
const z = (e) => {
|
|
2075
|
-
switch (e) {
|
|
2076
|
-
case "top":
|
|
2077
|
-
case "bottom":
|
|
2078
|
-
return !0;
|
|
2079
|
-
case "left":
|
|
2080
|
-
case "right":
|
|
2081
|
-
return !1;
|
|
2082
|
-
default:
|
|
2083
|
-
return e;
|
|
2084
|
-
}
|
|
2085
|
-
};
|
|
2086
|
-
function ft(e, t) {
|
|
2087
|
-
if (!e)
|
|
2088
|
-
return null;
|
|
2089
|
-
const n = window.getComputedStyle(e), r = (
|
|
2090
|
-
// @ts-ignore
|
|
2091
|
-
n.transform || n.webkitTransform || n.mozTransform
|
|
2092
|
-
);
|
|
2093
|
-
let a = r.match(/^matrix3d\((.+)\)$/);
|
|
2094
|
-
return a ? parseFloat(a[1].split(", ")[z(t) ? 13 : 12]) : (a = r.match(/^matrix\((.+)\)$/), a ? parseFloat(a[1].split(", ")[z(t) ? 5 : 4]) : null);
|
|
2095
|
-
}
|
|
2096
|
-
function cl(e) {
|
|
2097
|
-
return 8 * (Math.log(e + 1) - 2);
|
|
2098
|
-
}
|
|
2099
|
-
const T = {
|
|
2100
|
-
DURATION: 0.5,
|
|
2101
|
-
EASE: [
|
|
2102
|
-
0.32,
|
|
2103
|
-
0.72,
|
|
2104
|
-
0,
|
|
2105
|
-
1
|
|
2106
|
-
]
|
|
2107
|
-
}, ao = 0.4;
|
|
2108
|
-
function so(e) {
|
|
2109
|
-
const t = g.useRef(e);
|
|
2110
|
-
return g.useEffect(() => {
|
|
2111
|
-
t.current = e;
|
|
2112
|
-
}), g.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
|
|
2113
|
-
}
|
|
2114
|
-
function ul({ defaultProp: e, onChange: t }) {
|
|
2115
|
-
const n = g.useState(e), [r] = n, a = g.useRef(r), s = so(t);
|
|
2116
|
-
return g.useEffect(() => {
|
|
2117
|
-
a.current !== r && (s(r), a.current = r);
|
|
2118
|
-
}, [
|
|
2119
|
-
r,
|
|
2120
|
-
a,
|
|
2121
|
-
s
|
|
2122
|
-
]), n;
|
|
2123
|
-
}
|
|
2124
|
-
function dl({ prop: e, defaultProp: t, onChange: n = () => {
|
|
2125
|
-
} }) {
|
|
2126
|
-
const [r, a] = ul({
|
|
2127
|
-
defaultProp: t,
|
|
2128
|
-
onChange: n
|
|
2129
|
-
}), s = e !== void 0, i = s ? e : r, l = so(n), u = g.useCallback((v) => {
|
|
2130
|
-
if (s) {
|
|
2131
|
-
const c = typeof v == "function" ? v(e) : v;
|
|
2132
|
-
c !== e && l(c);
|
|
2133
|
-
} else
|
|
2134
|
-
a(v);
|
|
2135
|
-
}, [
|
|
2136
|
-
s,
|
|
2137
|
-
e,
|
|
2138
|
-
a,
|
|
2139
|
-
l
|
|
2140
|
-
]);
|
|
2141
|
-
return [
|
|
2142
|
-
i,
|
|
2143
|
-
u
|
|
2144
|
-
];
|
|
2145
|
-
}
|
|
2146
|
-
function fl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: a, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom" }) {
|
|
2147
|
-
const [u, v] = dl({
|
|
2148
|
-
prop: e,
|
|
2149
|
-
defaultProp: n == null ? void 0 : n[0],
|
|
2150
|
-
onChange: t
|
|
2151
|
-
}), m = g.useMemo(() => u === (n == null ? void 0 : n[n.length - 1]) || null, [
|
|
2152
|
-
n,
|
|
2153
|
-
u
|
|
2154
|
-
]), c = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === u || !n, d = g.useMemo(() => n == null ? void 0 : n.findIndex((x) => x === u), [
|
|
2155
|
-
n,
|
|
2156
|
-
u
|
|
2157
|
-
]), f = g.useMemo(() => {
|
|
2158
|
-
var x;
|
|
2159
|
-
return (x = n == null ? void 0 : n.map((p) => {
|
|
2160
|
-
const C = typeof window < "u", N = typeof p == "string";
|
|
2161
|
-
let P = 0;
|
|
2162
|
-
if (N && (P = parseInt(p, 10)), z(l)) {
|
|
2163
|
-
const w = N ? P : C ? p * window.innerHeight : 0;
|
|
2164
|
-
return C ? l === "bottom" ? window.innerHeight - w : -window.innerHeight + w : w;
|
|
2165
|
-
}
|
|
2166
|
-
const _ = N ? P : C ? p * window.innerWidth : 0;
|
|
2167
|
-
return C ? l === "right" ? window.innerWidth - _ : -window.innerWidth + _ : _;
|
|
2168
|
-
})) != null ? x : [];
|
|
2169
|
-
}, [
|
|
2170
|
-
n
|
|
2171
|
-
]), y = g.useMemo(() => d !== null ? f == null ? void 0 : f[d] : null, [
|
|
2172
|
-
f,
|
|
2173
|
-
d
|
|
2174
|
-
]), R = g.useCallback((x) => {
|
|
2175
|
-
var p;
|
|
2176
|
-
const C = (p = f == null ? void 0 : f.findIndex((N) => N === x)) != null ? p : null;
|
|
2177
|
-
i(C), I(r.current, {
|
|
2178
|
-
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
|
|
2179
|
-
transform: z(l) ? `translate3d(0, ${x}px, 0)` : `translate3d(${x}px, 0, 0)`
|
|
2180
|
-
}), f && C !== f.length - 1 && C !== s ? I(a.current, {
|
|
2181
|
-
transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
|
|
2182
|
-
opacity: "0"
|
|
2183
|
-
}) : I(a.current, {
|
|
2184
|
-
transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
|
|
2185
|
-
opacity: "1"
|
|
2186
|
-
}), v(C !== null ? n == null ? void 0 : n[C] : null);
|
|
2187
|
-
}, [
|
|
2188
|
-
r.current,
|
|
2189
|
-
n,
|
|
2190
|
-
f,
|
|
2191
|
-
s,
|
|
2192
|
-
a,
|
|
2193
|
-
v
|
|
2194
|
-
]);
|
|
2195
|
-
g.useEffect(() => {
|
|
2196
|
-
if (u || e) {
|
|
2197
|
-
var x;
|
|
2198
|
-
const p = (x = n == null ? void 0 : n.findIndex((C) => C === e || C === u)) != null ? x : -1;
|
|
2199
|
-
f && p !== -1 && typeof f[p] == "number" && R(f[p]);
|
|
2200
|
-
}
|
|
2201
|
-
}, [
|
|
2202
|
-
u,
|
|
2203
|
-
e,
|
|
2204
|
-
n,
|
|
2205
|
-
f,
|
|
2206
|
-
R
|
|
2207
|
-
]);
|
|
2208
|
-
function K({ draggedDistance: x, closeDrawer: p, velocity: C, dismissible: N }) {
|
|
2209
|
-
if (s === void 0) return;
|
|
2210
|
-
const P = l === "bottom" || l === "right" ? (y ?? 0) - x : (y ?? 0) + x, _ = d === s - 1, w = d === 0, L = x > 0;
|
|
2211
|
-
if (_ && I(a.current, {
|
|
2212
|
-
transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
|
|
2213
|
-
}), C > 2 && !L) {
|
|
2214
|
-
N ? p() : R(f[0]);
|
|
2215
|
-
return;
|
|
2216
|
-
}
|
|
2217
|
-
if (C > 2 && L && f && n) {
|
|
2218
|
-
R(f[n.length - 1]);
|
|
2219
|
-
return;
|
|
2220
|
-
}
|
|
2221
|
-
const te = f == null ? void 0 : f.reduce((V, X) => typeof V != "number" || typeof X != "number" ? V : Math.abs(X - P) < Math.abs(V - P) ? X : V), Q = z(l) ? window.innerHeight : window.innerWidth;
|
|
2222
|
-
if (C > ao && Math.abs(x) < Q * 0.4) {
|
|
2223
|
-
const V = L ? 1 : -1;
|
|
2224
|
-
if (V > 0 && m) {
|
|
2225
|
-
R(f[n.length - 1]);
|
|
2226
|
-
return;
|
|
2227
|
-
}
|
|
2228
|
-
if (w && V < 0 && N && p(), d === null) return;
|
|
2229
|
-
R(f[d + V]);
|
|
2230
|
-
return;
|
|
2231
|
-
}
|
|
2232
|
-
R(te);
|
|
2233
|
-
}
|
|
2234
|
-
function H({ draggedDistance: x }) {
|
|
2235
|
-
if (y === null) return;
|
|
2236
|
-
const p = l === "bottom" || l === "right" ? y - x : y + x;
|
|
2237
|
-
(l === "bottom" || l === "right") && p < f[f.length - 1] || (l === "top" || l === "left") && p > f[f.length - 1] || I(r.current, {
|
|
2238
|
-
transform: z(l) ? `translate3d(0, ${p}px, 0)` : `translate3d(${p}px, 0, 0)`
|
|
2239
|
-
});
|
|
2240
|
-
}
|
|
2241
|
-
function q(x, p) {
|
|
2242
|
-
if (!n || typeof d != "number" || !f || s === void 0) return null;
|
|
2243
|
-
const C = d === s - 1;
|
|
2244
|
-
if (d >= s && p)
|
|
2245
|
-
return 0;
|
|
2246
|
-
if (C && !p) return 1;
|
|
2247
|
-
if (!c && !C) return null;
|
|
2248
|
-
const P = C ? d + 1 : d - 1, _ = C ? f[P] - f[P - 1] : f[P + 1] - f[P], w = x / Math.abs(_);
|
|
2249
|
-
return C ? 1 - w : w;
|
|
2250
|
-
}
|
|
2251
|
-
return {
|
|
2252
|
-
isLastSnapPoint: m,
|
|
2253
|
-
activeSnapPoint: u,
|
|
2254
|
-
shouldFade: c,
|
|
2255
|
-
getPercentageDragged: q,
|
|
2256
|
-
setActiveSnapPoint: v,
|
|
2257
|
-
activeSnapPointIndex: d,
|
|
2258
|
-
onRelease: K,
|
|
2259
|
-
onDrag: H,
|
|
2260
|
-
snapPointsOffset: f
|
|
2261
|
-
};
|
|
2262
|
-
}
|
|
2263
|
-
const hl = 0.25, pl = 100, yn = 8, Ne = 16, Mn = 26, Ct = "vaul-dragging";
|
|
2264
|
-
function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, onDrag: a, onRelease: s, snapPoints: i, nested: l = !1, setBackgroundColorOnScale: u = !0, closeThreshold: v = hl, scrollLockTimeout: m = pl, dismissible: c = !0, handleOnly: d = !1, fadeFromIndex: f = i && i.length - 1, activeSnapPoint: y, setActiveSnapPoint: R, fixed: K, modal: H = !0, onClose: q, noBodyStyles: x, direction: p = "bottom", preventScrollRestoration: C = !0, disablePreventScroll: N = !1 }) {
|
|
2265
|
-
var P;
|
|
2266
|
-
const [_ = !1, w] = g.useState(!1), [L, te] = g.useState(!1), [Q, V] = g.useState(!1), [X, Oe] = g.useState(!1), [he, Be] = g.useState(!1), [xe, E] = g.useState(!1), U = g.useRef(null), Y = g.useRef(null), ne = g.useRef(null), De = g.useRef(null), pe = g.useRef(null), ye = g.useRef(!1), me = g.useRef(null), le = g.useRef(0), ge = g.useRef(!1), re = g.useRef(0), M = g.useRef(null), en = g.useRef(((P = M.current) == null ? void 0 : P.getBoundingClientRect().height) || 0), bt = g.useRef(0), xo = g.useCallback((S) => {
|
|
2267
|
-
i && S === Ke.length - 1 && (Y.current = /* @__PURE__ */ new Date());
|
|
2268
|
-
}, []), { activeSnapPoint: yo, activeSnapPointIndex: ze, setActiveSnapPoint: tn, onRelease: Mo, snapPointsOffset: Ke, onDrag: So, shouldFade: nn, getPercentageDragged: Eo } = fl({
|
|
2269
|
-
snapPoints: i,
|
|
2270
|
-
activeSnapPointProp: y,
|
|
2271
|
-
setActiveSnapPointProp: R,
|
|
2272
|
-
drawerRef: M,
|
|
2273
|
-
fadeFromIndex: f,
|
|
2274
|
-
overlayRef: U,
|
|
2275
|
-
onSnapPointChange: xo,
|
|
2276
|
-
direction: p
|
|
2277
|
-
});
|
|
2278
|
-
rl({
|
|
2279
|
-
isDisabled: !_ || he || !H || xe || !L || N
|
|
2280
|
-
});
|
|
2281
|
-
const { restorePositionSetting: Co } = ll({
|
|
2282
|
-
isOpen: _,
|
|
2283
|
-
modal: H,
|
|
2284
|
-
nested: l,
|
|
2285
|
-
hasBeenOpened: L,
|
|
2286
|
-
preventScrollRestoration: C,
|
|
2287
|
-
noBodyStyles: x
|
|
2288
|
-
});
|
|
2289
|
-
function Ie() {
|
|
2290
|
-
return (window.innerWidth - Mn) / window.innerWidth;
|
|
2291
|
-
}
|
|
2292
|
-
function Ro(S) {
|
|
2293
|
-
var D;
|
|
2294
|
-
!c && !i || M.current && !M.current.contains(S.target) || (en.current = ((D = M.current) == null ? void 0 : D.getBoundingClientRect().height) || 0, Be(!0), ne.current = /* @__PURE__ */ new Date(), eo() && window.addEventListener("touchend", () => ye.current = !1, {
|
|
2295
|
-
once: !0
|
|
2296
|
-
}), S.target.setPointerCapture(S.pointerId), le.current = z(p) ? S.clientY : S.clientX);
|
|
2297
|
-
}
|
|
2298
|
-
function rn(S, D) {
|
|
2299
|
-
var k;
|
|
2300
|
-
let j = S;
|
|
2301
|
-
const F = (k = window.getSelection()) == null ? void 0 : k.toString(), B = M.current ? ft(M.current, p) : null, oe = /* @__PURE__ */ new Date();
|
|
2302
|
-
if (j.hasAttribute("data-vaul-no-drag") || j.closest("[data-vaul-no-drag]"))
|
|
2303
|
-
return !1;
|
|
2304
|
-
if (p === "right" || p === "left")
|
|
2305
|
-
return !0;
|
|
2306
|
-
if (Y.current && oe.getTime() - Y.current.getTime() < 500)
|
|
2307
|
-
return !1;
|
|
2308
|
-
if (B !== null && (p === "bottom" ? B > 0 : B < 0))
|
|
2309
|
-
return !0;
|
|
2310
|
-
if (F && F.length > 0)
|
|
2311
|
-
return !1;
|
|
2312
|
-
if (pe.current && oe.getTime() - pe.current.getTime() < m && B === 0 || D)
|
|
2313
|
-
return pe.current = oe, !1;
|
|
2314
|
-
for (; j; ) {
|
|
2315
|
-
if (j.scrollHeight > j.clientHeight) {
|
|
2316
|
-
if (j.scrollTop !== 0)
|
|
2317
|
-
return pe.current = /* @__PURE__ */ new Date(), !1;
|
|
2318
|
-
if (j.getAttribute("role") === "dialog")
|
|
2319
|
-
return !0;
|
|
2320
|
-
}
|
|
2321
|
-
j = j.parentNode;
|
|
2322
|
-
}
|
|
2323
|
-
return !0;
|
|
2324
|
-
}
|
|
2325
|
-
function Do(S) {
|
|
2326
|
-
if (M.current && he) {
|
|
2327
|
-
const D = p === "bottom" || p === "right" ? 1 : -1, k = (le.current - (z(p) ? S.clientY : S.clientX)) * D, j = k > 0, F = i && !c && !j;
|
|
2328
|
-
if (F && ze === 0) return;
|
|
2329
|
-
const B = Math.abs(k), oe = document.querySelector("[vaul-drawer-wrapper]");
|
|
2330
|
-
let ce = B / en.current;
|
|
2331
|
-
const Me = Eo(B, j);
|
|
2332
|
-
if (Me !== null && (ce = Me), F && ce >= 1 || !ye.current && !rn(S.target, j)) return;
|
|
2333
|
-
if (M.current.classList.add(Ct), ye.current = !0, I(M.current, {
|
|
2334
|
-
transition: "none"
|
|
2335
|
-
}), I(U.current, {
|
|
2336
|
-
transition: "none"
|
|
2337
|
-
}), i && So({
|
|
2338
|
-
draggedDistance: k
|
|
2339
|
-
}), j && !i) {
|
|
2340
|
-
const je = cl(k), st = Math.min(je * -1, 0) * D;
|
|
2341
|
-
I(M.current, {
|
|
2342
|
-
transform: z(p) ? `translate3d(0, ${st}px, 0)` : `translate3d(${st}px, 0, 0)`
|
|
2343
|
-
});
|
|
2344
|
-
return;
|
|
2345
|
-
}
|
|
2346
|
-
const at = 1 - ce;
|
|
2347
|
-
if ((nn || f && ze === f - 1) && (a == null || a(S, ce), I(U.current, {
|
|
2348
|
-
opacity: `${at}`,
|
|
2349
|
-
transition: "none"
|
|
2350
|
-
}, !0)), oe && U.current && r) {
|
|
2351
|
-
const je = Math.min(Ie() + ce * (1 - Ie()), 1), st = 8 - ce * 8, an = Math.max(0, 14 - ce * 14);
|
|
2352
|
-
I(oe, {
|
|
2353
|
-
borderRadius: `${st}px`,
|
|
2354
|
-
transform: z(p) ? `scale(${je}) translate3d(0, ${an}px, 0)` : `scale(${je}) translate3d(${an}px, 0, 0)`,
|
|
2355
|
-
transition: "none"
|
|
2356
|
-
}, !0);
|
|
2357
|
-
}
|
|
2358
|
-
if (!i) {
|
|
2359
|
-
const je = B * D;
|
|
2360
|
-
I(M.current, {
|
|
2361
|
-
transform: z(p) ? `translate3d(0, ${je}px, 0)` : `translate3d(${je}px, 0, 0)`
|
|
2362
|
-
});
|
|
2363
|
-
}
|
|
2364
|
-
}
|
|
2365
|
-
}
|
|
2366
|
-
g.useEffect(() => () => {
|
|
2367
|
-
ot(!1), Co();
|
|
2368
|
-
}, []), g.useEffect(() => {
|
|
2369
|
-
var S;
|
|
2370
|
-
function D() {
|
|
2371
|
-
if (!M.current) return;
|
|
2372
|
-
const k = document.activeElement;
|
|
2373
|
-
if (Pt(k) || ge.current) {
|
|
2374
|
-
var j;
|
|
2375
|
-
const F = ((j = window.visualViewport) == null ? void 0 : j.height) || 0;
|
|
2376
|
-
let B = window.innerHeight - F;
|
|
2377
|
-
const oe = M.current.getBoundingClientRect().height || 0;
|
|
2378
|
-
bt.current || (bt.current = oe);
|
|
2379
|
-
const ce = M.current.getBoundingClientRect().top;
|
|
2380
|
-
if (Math.abs(re.current - B) > 60 && (ge.current = !ge.current), i && i.length > 0 && Ke && ze) {
|
|
2381
|
-
const Me = Ke[ze] || 0;
|
|
2382
|
-
B += Me;
|
|
839
|
+
) : /* @__PURE__ */ r.jsx(
|
|
840
|
+
te,
|
|
841
|
+
{
|
|
842
|
+
className: V({
|
|
843
|
+
className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
|
|
844
|
+
}),
|
|
845
|
+
to: e.href,
|
|
846
|
+
children: e.badge ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
847
|
+
/* @__PURE__ */ r.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
848
|
+
/* @__PURE__ */ r.jsx(ae, { ...e.badge })
|
|
849
|
+
] }) : /* @__PURE__ */ r.jsx("span", { className: "break-all", children: e.label })
|
|
2383
850
|
}
|
|
2384
|
-
|
|
2385
|
-
const Me = M.current.getBoundingClientRect().height;
|
|
2386
|
-
let at = Me;
|
|
2387
|
-
Me > F && (at = F - Mn), K ? M.current.style.height = `${Me - Math.max(B, 0)}px` : M.current.style.height = `${Math.max(at, F - ce)}px`;
|
|
2388
|
-
} else
|
|
2389
|
-
M.current.style.height = `${bt.current}px`;
|
|
2390
|
-
i && i.length > 0 && !ge.current ? M.current.style.bottom = "0px" : M.current.style.bottom = `${Math.max(B, 0)}px`;
|
|
2391
|
-
}
|
|
2392
|
-
}
|
|
2393
|
-
return (S = window.visualViewport) == null || S.addEventListener("resize", D), () => {
|
|
2394
|
-
var k;
|
|
2395
|
-
return (k = window.visualViewport) == null ? void 0 : k.removeEventListener("resize", D);
|
|
2396
|
-
};
|
|
2397
|
-
}, [
|
|
2398
|
-
ze,
|
|
2399
|
-
i,
|
|
2400
|
-
Ke
|
|
2401
|
-
]);
|
|
2402
|
-
function Ae() {
|
|
2403
|
-
M.current && (jo(), q == null || q(), I(M.current, {
|
|
2404
|
-
transform: z(p) ? `translate3d(0, ${p === "bottom" ? "100%" : "-100%"}, 0)` : `translate3d(${p === "right" ? "100%" : "-100%"}, 0, 0)`,
|
|
2405
|
-
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
|
|
2406
|
-
}), I(U.current, {
|
|
2407
|
-
opacity: "0",
|
|
2408
|
-
transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
|
|
2409
|
-
}), ot(!1), setTimeout(() => {
|
|
2410
|
-
V(!1), w(!1);
|
|
2411
|
-
}, 300), setTimeout(() => {
|
|
2412
|
-
i && tn(i[0]);
|
|
2413
|
-
}, T.DURATION * 1e3));
|
|
2414
|
-
}
|
|
2415
|
-
g.useEffect(() => {
|
|
2416
|
-
if (!_ && r) {
|
|
2417
|
-
const S = setTimeout(() => {
|
|
2418
|
-
dt(document.body);
|
|
2419
|
-
}, 200);
|
|
2420
|
-
return () => clearTimeout(S);
|
|
2421
|
-
}
|
|
2422
|
-
}, [
|
|
2423
|
-
_,
|
|
2424
|
-
r
|
|
2425
|
-
]), Zr(() => {
|
|
2426
|
-
e ? (w(!0), te(!0)) : Ae();
|
|
2427
|
-
}, [
|
|
2428
|
-
e
|
|
2429
|
-
]), g.useEffect(() => {
|
|
2430
|
-
X && (t == null || t(_));
|
|
2431
|
-
}, [
|
|
2432
|
-
_
|
|
2433
|
-
]), g.useEffect(() => {
|
|
2434
|
-
Oe(!0);
|
|
2435
|
-
}, []);
|
|
2436
|
-
function on() {
|
|
2437
|
-
if (!M.current) return;
|
|
2438
|
-
const S = document.querySelector("[vaul-drawer-wrapper]"), D = ft(M.current, p);
|
|
2439
|
-
I(M.current, {
|
|
2440
|
-
transform: "translate3d(0, 0, 0)",
|
|
2441
|
-
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
|
|
2442
|
-
}), I(U.current, {
|
|
2443
|
-
transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
|
|
2444
|
-
opacity: "1"
|
|
2445
|
-
}), r && D && D > 0 && _ && I(S, {
|
|
2446
|
-
borderRadius: `${yn}px`,
|
|
2447
|
-
overflow: "hidden",
|
|
2448
|
-
...z(p) ? {
|
|
2449
|
-
transform: `scale(${Ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
2450
|
-
transformOrigin: "top"
|
|
2451
|
-
} : {
|
|
2452
|
-
transform: `scale(${Ie()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
|
|
2453
|
-
transformOrigin: "left"
|
|
2454
|
-
},
|
|
2455
|
-
transitionProperty: "transform, border-radius",
|
|
2456
|
-
transitionDuration: `${T.DURATION}s`,
|
|
2457
|
-
transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
|
|
2458
|
-
}, !0);
|
|
2459
|
-
}
|
|
2460
|
-
function jo() {
|
|
2461
|
-
!he || !M.current || (M.current.classList.remove(Ct), ye.current = !1, Be(!1), De.current = /* @__PURE__ */ new Date());
|
|
2462
|
-
}
|
|
2463
|
-
function No(S) {
|
|
2464
|
-
if (!he || !M.current) return;
|
|
2465
|
-
M.current.classList.remove(Ct), ye.current = !1, Be(!1), De.current = /* @__PURE__ */ new Date();
|
|
2466
|
-
const D = ft(M.current, p);
|
|
2467
|
-
if (!rn(S.target, !1) || !D || Number.isNaN(D) || ne.current === null) return;
|
|
2468
|
-
const k = De.current.getTime() - ne.current.getTime(), j = le.current - (z(p) ? S.clientY : S.clientX), F = Math.abs(j) / k;
|
|
2469
|
-
if (F > 0.05 && (E(!0), setTimeout(() => {
|
|
2470
|
-
E(!1);
|
|
2471
|
-
}, 200)), i) {
|
|
2472
|
-
Mo({
|
|
2473
|
-
draggedDistance: j * (p === "bottom" || p === "right" ? 1 : -1),
|
|
2474
|
-
closeDrawer: Ae,
|
|
2475
|
-
velocity: F,
|
|
2476
|
-
dismissible: c
|
|
2477
|
-
}), s == null || s(S, !0);
|
|
2478
|
-
return;
|
|
2479
|
-
}
|
|
2480
|
-
if (p === "bottom" || p === "right" ? j > 0 : j < 0) {
|
|
2481
|
-
on(), s == null || s(S, !0);
|
|
2482
|
-
return;
|
|
2483
|
-
}
|
|
2484
|
-
if (F > ao) {
|
|
2485
|
-
Ae(), s == null || s(S, !1);
|
|
2486
|
-
return;
|
|
2487
|
-
}
|
|
2488
|
-
var B;
|
|
2489
|
-
const oe = Math.min((B = M.current.getBoundingClientRect().height) != null ? B : 0, window.innerHeight);
|
|
2490
|
-
if (D >= oe * v) {
|
|
2491
|
-
Ae(), s == null || s(S, !1);
|
|
2492
|
-
return;
|
|
2493
|
-
}
|
|
2494
|
-
s == null || s(S, !0), on();
|
|
2495
|
-
}
|
|
2496
|
-
g.useEffect(() => {
|
|
2497
|
-
_ && (I(document.documentElement, {
|
|
2498
|
-
scrollBehavior: "auto"
|
|
2499
|
-
}), Y.current = /* @__PURE__ */ new Date(), ot(!0));
|
|
2500
|
-
}, [
|
|
2501
|
-
_
|
|
2502
|
-
]), g.useEffect(() => {
|
|
2503
|
-
if (M.current && Q) {
|
|
2504
|
-
var S;
|
|
2505
|
-
const D = M == null || (S = M.current) == null ? void 0 : S.querySelectorAll("*");
|
|
2506
|
-
D == null || D.forEach((k) => {
|
|
2507
|
-
const j = k;
|
|
2508
|
-
(j.scrollHeight > j.clientHeight || j.scrollWidth > j.clientWidth) && j.classList.add("vaul-scrollable");
|
|
2509
|
-
});
|
|
2510
|
-
}
|
|
2511
|
-
}, [
|
|
2512
|
-
Q
|
|
2513
|
-
]);
|
|
2514
|
-
function ot(S) {
|
|
2515
|
-
const D = document.querySelector("[vaul-drawer-wrapper]");
|
|
2516
|
-
!D || !r || (S ? (u && (x || (I(document.body, {
|
|
2517
|
-
background: document.body.style.backgroundColor || document.body.style.background
|
|
2518
|
-
}), I(document.body, {
|
|
2519
|
-
background: "black"
|
|
2520
|
-
}, !0))), I(D, {
|
|
2521
|
-
borderRadius: `${yn}px`,
|
|
2522
|
-
overflow: "hidden",
|
|
2523
|
-
...z(p) ? {
|
|
2524
|
-
transform: `scale(${Ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
2525
|
-
transformOrigin: "top"
|
|
2526
|
-
} : {
|
|
2527
|
-
transform: `scale(${Ie()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
|
|
2528
|
-
transformOrigin: "left"
|
|
2529
|
-
},
|
|
2530
|
-
transitionProperty: "transform, border-radius",
|
|
2531
|
-
transitionDuration: `${T.DURATION}s`,
|
|
2532
|
-
transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
|
|
2533
|
-
})) : (dt(D, "overflow"), dt(D, "transform"), dt(D, "borderRadius"), I(D, {
|
|
2534
|
-
transitionProperty: "transform, border-radius",
|
|
2535
|
-
transitionDuration: `${T.DURATION}s`,
|
|
2536
|
-
transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
|
|
2537
|
-
})));
|
|
851
|
+
);
|
|
2538
852
|
}
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
853
|
+
}, As = (e, t = { block: "center" }) => {
|
|
854
|
+
if (!e) return;
|
|
855
|
+
const s = e.getBoundingClientRect();
|
|
856
|
+
s.top >= 0 && s.left >= 0 && s.bottom <= (window.innerHeight || document.documentElement.clientHeight) && s.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
857
|
+
}, Es = () => {
|
|
858
|
+
const e = de(), { setActiveAnchor: t } = ge();
|
|
859
|
+
R(() => {
|
|
860
|
+
if (!e.hash) return;
|
|
861
|
+
const s = decodeURIComponent(e.hash.split("/")[0].slice(1)), n = () => {
|
|
862
|
+
const a = document.getElementById(s), i = document.querySelector(`[${et}="${s}"]`);
|
|
863
|
+
return a ? (a.scrollIntoView(), As(i), requestIdleCallback(() => t(s)), !0) : !1;
|
|
864
|
+
};
|
|
865
|
+
if (!n()) {
|
|
866
|
+
const a = new MutationObserver((i, o) => {
|
|
867
|
+
n() && o.disconnect();
|
|
2549
868
|
});
|
|
2550
|
-
|
|
2551
|
-
}
|
|
2552
|
-
function To(S, D) {
|
|
2553
|
-
if (D < 0) return;
|
|
2554
|
-
const k = z(p) ? window.innerHeight : window.innerWidth, j = (k - Ne) / k, F = j + D * (1 - j), B = -Ne + D * Ne;
|
|
2555
|
-
I(M.current, {
|
|
2556
|
-
transform: z(p) ? `scale(${F}) translate3d(0, ${B}px, 0)` : `scale(${F}) translate3d(${B}px, 0, 0)`,
|
|
2557
|
-
transition: "none"
|
|
2558
|
-
});
|
|
2559
|
-
}
|
|
2560
|
-
function _o(S, D) {
|
|
2561
|
-
const k = z(p) ? window.innerHeight : window.innerWidth, j = D ? (k - Ne) / k : 1, F = D ? -Ne : 0;
|
|
2562
|
-
D && I(M.current, {
|
|
2563
|
-
transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
|
|
2564
|
-
transform: z(p) ? `scale(${j}) translate3d(0, ${F}px, 0)` : `scale(${j}) translate3d(${F}px, 0, 0)`
|
|
2565
|
-
});
|
|
2566
|
-
}
|
|
2567
|
-
return /* @__PURE__ */ g.createElement(Xa, {
|
|
2568
|
-
modal: H,
|
|
2569
|
-
onOpenChange: (S) => {
|
|
2570
|
-
if (e !== void 0) {
|
|
2571
|
-
t == null || t(S);
|
|
2572
|
-
return;
|
|
2573
|
-
}
|
|
2574
|
-
S ? (te(!0), w(S)) : Ae();
|
|
2575
|
-
},
|
|
2576
|
-
open: _
|
|
2577
|
-
}, /* @__PURE__ */ g.createElement(Jr.Provider, {
|
|
2578
|
-
value: {
|
|
2579
|
-
visible: Q,
|
|
2580
|
-
activeSnapPoint: yo,
|
|
2581
|
-
snapPoints: i,
|
|
2582
|
-
setActiveSnapPoint: tn,
|
|
2583
|
-
drawerRef: M,
|
|
2584
|
-
overlayRef: U,
|
|
2585
|
-
scaleBackground: ot,
|
|
2586
|
-
onOpenChange: t,
|
|
2587
|
-
onPress: Ro,
|
|
2588
|
-
setVisible: V,
|
|
2589
|
-
onRelease: No,
|
|
2590
|
-
onDrag: Do,
|
|
2591
|
-
dismissible: c,
|
|
2592
|
-
handleOnly: d,
|
|
2593
|
-
isOpen: _,
|
|
2594
|
-
isDragging: he,
|
|
2595
|
-
shouldFade: nn,
|
|
2596
|
-
closeDrawer: Ae,
|
|
2597
|
-
onNestedDrag: To,
|
|
2598
|
-
onNestedOpenChange: Po,
|
|
2599
|
-
onNestedRelease: _o,
|
|
2600
|
-
keyboardIsOpen: ge,
|
|
2601
|
-
openProp: e,
|
|
2602
|
-
modal: H,
|
|
2603
|
-
snapPointsOffset: Ke,
|
|
2604
|
-
direction: p
|
|
2605
|
-
}
|
|
2606
|
-
}, n));
|
|
2607
|
-
}
|
|
2608
|
-
const ml = 250, gl = 120, lo = /* @__PURE__ */ g.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
|
|
2609
|
-
const { visible: a, closeDrawer: s, isDragging: i, snapPoints: l, activeSnapPoint: u, setActiveSnapPoint: v, dismissible: m, handleOnly: c, onPress: d, onDrag: f } = wt(), y = g.useRef(null), R = g.useRef(!1);
|
|
2610
|
-
function K() {
|
|
2611
|
-
if (R.current) {
|
|
2612
|
-
x();
|
|
2613
|
-
return;
|
|
2614
|
-
}
|
|
2615
|
-
window.setTimeout(() => {
|
|
2616
|
-
H();
|
|
2617
|
-
}, gl);
|
|
2618
|
-
}
|
|
2619
|
-
function H() {
|
|
2620
|
-
if (i || e || R.current) {
|
|
2621
|
-
x();
|
|
2622
|
-
return;
|
|
2623
|
-
}
|
|
2624
|
-
if (x(), (!l || l.length === 0) && m) {
|
|
2625
|
-
s();
|
|
2626
|
-
return;
|
|
2627
|
-
}
|
|
2628
|
-
if (u === l[l.length - 1] && m) {
|
|
2629
|
-
s();
|
|
2630
|
-
return;
|
|
869
|
+
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
2631
870
|
}
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
R.current = !0, s();
|
|
2649
|
-
},
|
|
2650
|
-
onPointerCancel: x,
|
|
2651
|
-
onPointerDown: (p) => {
|
|
2652
|
-
c && d(p), q();
|
|
2653
|
-
},
|
|
2654
|
-
onPointerMove: (p) => {
|
|
2655
|
-
c && f(p);
|
|
2656
|
-
},
|
|
2657
|
-
// onPointerUp is already handled by the content component
|
|
2658
|
-
ref: r,
|
|
2659
|
-
"vaul-drawer-visible": a ? "true" : "false",
|
|
2660
|
-
"vaul-handle": "",
|
|
2661
|
-
"aria-hidden": "true",
|
|
2662
|
-
...n
|
|
2663
|
-
}, /* @__PURE__ */ g.createElement("span", {
|
|
2664
|
-
"vaul-handle-hitarea": "",
|
|
2665
|
-
"aria-hidden": "true"
|
|
2666
|
-
}, t));
|
|
2667
|
-
});
|
|
2668
|
-
lo.displayName = "Drawer.Handle";
|
|
2669
|
-
const co = /* @__PURE__ */ g.forwardRef(function({ children: e, ...t }, n) {
|
|
2670
|
-
const { overlayRef: r, snapPoints: a, onRelease: s, shouldFade: i, isOpen: l, visible: u } = wt(), v = ro(n, r), m = a && a.length > 0;
|
|
2671
|
-
return /* @__PURE__ */ g.createElement(Ka, {
|
|
2672
|
-
onMouseUp: s,
|
|
2673
|
-
ref: v,
|
|
2674
|
-
"vaul-drawer-visible": u ? "true" : "false",
|
|
2675
|
-
"vaul-overlay": "",
|
|
2676
|
-
"vaul-snap-points": l && m ? "true" : "false",
|
|
2677
|
-
"vaul-snap-points-overlay": l && i ? "true" : "false",
|
|
2678
|
-
...t
|
|
2679
|
-
});
|
|
2680
|
-
});
|
|
2681
|
-
co.displayName = "Drawer.Overlay";
|
|
2682
|
-
const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointerDownOutside: t, onAnimationEnd: n, style: r, ...a }, s) {
|
|
2683
|
-
const { drawerRef: i, onPress: l, onRelease: u, onDrag: v, dismissible: m, keyboardIsOpen: c, snapPointsOffset: d, visible: f, closeDrawer: y, modal: R, openProp: K, onOpenChange: H, setVisible: q, handleOnly: x, direction: p } = wt(), C = ro(s, i), N = g.useRef(null), P = g.useRef(!1), _ = (w, L, te = 0) => {
|
|
2684
|
-
if (P.current) return !0;
|
|
2685
|
-
const Q = Math.abs(w.y), V = Math.abs(w.x), X = V > Q, Oe = [
|
|
2686
|
-
"bottom",
|
|
2687
|
-
"right"
|
|
2688
|
-
].includes(L) ? 1 : -1;
|
|
2689
|
-
if (L === "left" || L === "right") {
|
|
2690
|
-
if (!(w.x * Oe < 0) && V >= 0 && V <= te)
|
|
2691
|
-
return X;
|
|
2692
|
-
} else if (!(w.y * Oe < 0) && Q >= 0 && Q <= te)
|
|
2693
|
-
return !X;
|
|
2694
|
-
return P.current = !0, !0;
|
|
2695
|
-
};
|
|
2696
|
-
return g.useEffect(() => {
|
|
2697
|
-
q(!0);
|
|
2698
|
-
}, []), /* @__PURE__ */ g.createElement(Va, {
|
|
2699
|
-
"vaul-drawer": "",
|
|
2700
|
-
"vaul-drawer-direction": p,
|
|
2701
|
-
"vaul-drawer-visible": f ? "true" : "false",
|
|
2702
|
-
...a,
|
|
2703
|
-
ref: C,
|
|
2704
|
-
style: d && d.length > 0 ? {
|
|
2705
|
-
"--snap-point-height": `${d[0]}px`,
|
|
2706
|
-
...r
|
|
2707
|
-
} : r,
|
|
2708
|
-
onOpenAutoFocus: (w) => {
|
|
2709
|
-
if (e)
|
|
2710
|
-
e(w);
|
|
2711
|
-
else {
|
|
2712
|
-
var L;
|
|
2713
|
-
w.preventDefault(), (L = i.current) == null || L.focus();
|
|
2714
|
-
}
|
|
2715
|
-
},
|
|
2716
|
-
onPointerDown: (w) => {
|
|
2717
|
-
x || (a.onPointerDown == null || a.onPointerDown.call(a, w), N.current = {
|
|
2718
|
-
x: w.clientX,
|
|
2719
|
-
y: w.clientY
|
|
2720
|
-
}, l(w));
|
|
2721
|
-
},
|
|
2722
|
-
onPointerDownOutside: (w) => {
|
|
2723
|
-
if (t == null || t(w), !R || w.defaultPrevented) {
|
|
2724
|
-
w.preventDefault();
|
|
2725
|
-
return;
|
|
2726
|
-
}
|
|
2727
|
-
c.current && (c.current = !1), w.preventDefault(), H == null || H(!1), !(!m || K !== void 0) && y();
|
|
2728
|
-
},
|
|
2729
|
-
onFocusOutside: (w) => {
|
|
2730
|
-
if (!R) {
|
|
2731
|
-
w.preventDefault();
|
|
2732
|
-
return;
|
|
2733
|
-
}
|
|
2734
|
-
},
|
|
2735
|
-
onEscapeKeyDown: (w) => {
|
|
2736
|
-
if (!R) {
|
|
2737
|
-
w.preventDefault();
|
|
2738
|
-
return;
|
|
2739
|
-
}
|
|
2740
|
-
},
|
|
2741
|
-
onPointerMove: (w) => {
|
|
2742
|
-
if (x || (a.onPointerMove == null || a.onPointerMove.call(a, w), !N.current)) return;
|
|
2743
|
-
const L = w.clientY - N.current.y, te = w.clientX - N.current.x, Q = w.pointerType === "touch" ? 10 : 2;
|
|
2744
|
-
_({
|
|
2745
|
-
x: te,
|
|
2746
|
-
y: L
|
|
2747
|
-
}, p, Q) ? v(w) : (Math.abs(te) > Q || Math.abs(L) > Q) && (N.current = null);
|
|
2748
|
-
},
|
|
2749
|
-
onPointerUp: (w) => {
|
|
2750
|
-
a.onPointerUp == null || a.onPointerUp.call(a, w), N.current = null, P.current = !1, u(w);
|
|
871
|
+
}, [e.hash, t]);
|
|
872
|
+
}, Is = () => {
|
|
873
|
+
const e = de(), t = me(e.pathname);
|
|
874
|
+
R(() => {
|
|
875
|
+
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
876
|
+
}, [e.pathname]);
|
|
877
|
+
};
|
|
878
|
+
function Qs({
|
|
879
|
+
className: e,
|
|
880
|
+
...t
|
|
881
|
+
}) {
|
|
882
|
+
return /* @__PURE__ */ r.jsx(
|
|
883
|
+
"div",
|
|
884
|
+
{
|
|
885
|
+
className: O("animate-pulse rounded-md bg-muted", e),
|
|
886
|
+
...t
|
|
2751
887
|
}
|
|
2752
|
-
|
|
2753
|
-
});
|
|
2754
|
-
uo.displayName = "Drawer.Content";
|
|
2755
|
-
function vl({ onDrag: e, onOpenChange: t, ...n }) {
|
|
2756
|
-
const { onNestedDrag: r, onNestedOpenChange: a, onNestedRelease: s } = wt();
|
|
2757
|
-
if (!r)
|
|
2758
|
-
throw new Error("Drawer.NestedRoot must be placed in another drawer");
|
|
2759
|
-
return /* @__PURE__ */ g.createElement(io, {
|
|
2760
|
-
nested: !0,
|
|
2761
|
-
onClose: () => {
|
|
2762
|
-
a(!1);
|
|
2763
|
-
},
|
|
2764
|
-
onDrag: (i, l) => {
|
|
2765
|
-
r(i, l), e == null || e(i, l);
|
|
2766
|
-
},
|
|
2767
|
-
onOpenChange: (i) => {
|
|
2768
|
-
i && a(i), t == null || t(i);
|
|
2769
|
-
},
|
|
2770
|
-
onRelease: s,
|
|
2771
|
-
...n
|
|
2772
|
-
});
|
|
888
|
+
);
|
|
2773
889
|
}
|
|
2774
|
-
const
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
...t
|
|
2788
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
2789
|
-
ie.Root,
|
|
2790
|
-
{
|
|
2791
|
-
shouldScaleBackground: e,
|
|
2792
|
-
...t
|
|
2793
|
-
}
|
|
2794
|
-
);
|
|
2795
|
-
Xt.displayName = "Drawer";
|
|
2796
|
-
const fo = ie.Trigger, wl = ie.Portal, bl = ie.Close, ho = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
2797
|
-
ie.Overlay,
|
|
2798
|
-
{
|
|
2799
|
-
ref: n,
|
|
2800
|
-
className: O("fixed inset-0 z-50 bg-black/80", e),
|
|
2801
|
-
...t
|
|
2802
|
-
}
|
|
2803
|
-
));
|
|
2804
|
-
ho.displayName = ie.Overlay.displayName;
|
|
2805
|
-
const Jt = h.forwardRef(({ className: e, children: t, hideBar: n = !0, ...r }, a) => /* @__PURE__ */ o.jsxs(wl, { children: [
|
|
2806
|
-
/* @__PURE__ */ o.jsx(ho, {}),
|
|
2807
|
-
/* @__PURE__ */ o.jsxs(
|
|
2808
|
-
ie.Content,
|
|
890
|
+
const Ts = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", qs = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Rs = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Fs = (e) => "initialize" in e && typeof e.initialize == "function", Bs = (e) => "getHead" in e && typeof e.getHead == "function", zs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Hs = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ie = {
|
|
891
|
+
info: "bg-blue-500",
|
|
892
|
+
note: "bg-gray-500",
|
|
893
|
+
tip: "bg-green-600",
|
|
894
|
+
caution: "bg-orange-500",
|
|
895
|
+
danger: "bg-rose-500"
|
|
896
|
+
}, Ls = () => {
|
|
897
|
+
const { page: e } = T(), [t, s] = Q(!0);
|
|
898
|
+
if (!(e != null && e.banner) || !t)
|
|
899
|
+
return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
900
|
+
const n = e.banner.color && e.banner.color in Ie ? Ie[e.banner.color] : e.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: e.banner.color };
|
|
901
|
+
return /* @__PURE__ */ r.jsxs(
|
|
902
|
+
"div",
|
|
2809
903
|
{
|
|
2810
|
-
ref: a,
|
|
2811
904
|
className: O(
|
|
2812
|
-
"
|
|
2813
|
-
|
|
905
|
+
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
|
|
906
|
+
n
|
|
2814
907
|
),
|
|
2815
|
-
|
|
908
|
+
style: a,
|
|
2816
909
|
children: [
|
|
2817
|
-
|
|
2818
|
-
|
|
910
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full", children: e.banner.message }),
|
|
911
|
+
e.banner.dismissible && /* @__PURE__ */ r.jsx(
|
|
912
|
+
"button",
|
|
913
|
+
{
|
|
914
|
+
type: "button",
|
|
915
|
+
className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
916
|
+
onClick: () => s(!1),
|
|
917
|
+
children: /* @__PURE__ */ r.jsx(Vt, { size: 16 })
|
|
918
|
+
}
|
|
919
|
+
)
|
|
2819
920
|
]
|
|
2820
921
|
}
|
|
2821
|
-
)
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
{
|
|
2827
|
-
ref: n,
|
|
2828
|
-
className: O(
|
|
2829
|
-
"text-lg font-semibold leading-none tracking-tight",
|
|
2830
|
-
e
|
|
2831
|
-
),
|
|
2832
|
-
...t
|
|
2833
|
-
}
|
|
2834
|
-
));
|
|
2835
|
-
Zt.displayName = ie.Title.displayName;
|
|
2836
|
-
const xl = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
|
|
2837
|
-
ie.Description,
|
|
2838
|
-
{
|
|
2839
|
-
ref: n,
|
|
2840
|
-
className: O("text-sm text-muted-foreground", e),
|
|
2841
|
-
...t
|
|
2842
|
-
}
|
|
2843
|
-
));
|
|
2844
|
-
xl.displayName = ie.Description.displayName;
|
|
2845
|
-
const yl = () => {
|
|
2846
|
-
const { topNavigation: e } = Ue();
|
|
2847
|
-
return /* @__PURE__ */ o.jsxs(Xt, { direction: "right", children: [
|
|
2848
|
-
/* @__PURE__ */ o.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ o.jsx(fo, { className: "lg:hidden", children: /* @__PURE__ */ o.jsx(ka, { size: 22 }) }) }),
|
|
2849
|
-
/* @__PURE__ */ o.jsxs(
|
|
2850
|
-
Jt,
|
|
2851
|
-
{
|
|
2852
|
-
className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none",
|
|
2853
|
-
"aria-describedby": void 0,
|
|
2854
|
-
children: [
|
|
2855
|
-
/* @__PURE__ */ o.jsx(In, { children: /* @__PURE__ */ o.jsx(Zt, { children: "Navigation" }) }),
|
|
2856
|
-
/* @__PURE__ */ o.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
|
|
2857
|
-
We,
|
|
2858
|
-
{
|
|
2859
|
-
className: ({ isActive: n }) => An(
|
|
2860
|
-
"block font-medium border-b-2",
|
|
2861
|
-
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
2862
|
-
),
|
|
2863
|
-
to: t.id,
|
|
2864
|
-
children: /* @__PURE__ */ o.jsx(bl, { children: t.label })
|
|
2865
|
-
}
|
|
2866
|
-
) }, t.label)) })
|
|
2867
|
-
]
|
|
2868
|
-
}
|
|
2869
|
-
)
|
|
2870
|
-
] });
|
|
2871
|
-
}, Ml = () => {
|
|
2872
|
-
const e = Ue(), [t, n] = Te(!1), r = Ln(() => n(!1), []);
|
|
2873
|
-
be(() => {
|
|
2874
|
-
if (t)
|
|
922
|
+
);
|
|
923
|
+
}, tt = ({ className: e }) => {
|
|
924
|
+
const t = T(), [s, n] = Q(!1), a = Ft(() => n(!1), []);
|
|
925
|
+
R(() => {
|
|
926
|
+
if (s)
|
|
2875
927
|
return;
|
|
2876
|
-
function
|
|
2877
|
-
|
|
928
|
+
function o(u) {
|
|
929
|
+
u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
|
|
2878
930
|
}
|
|
2879
|
-
return window.addEventListener("keydown",
|
|
2880
|
-
window.removeEventListener("keydown",
|
|
931
|
+
return window.addEventListener("keydown", o), () => {
|
|
932
|
+
window.removeEventListener("keydown", o);
|
|
2881
933
|
};
|
|
2882
|
-
}, [
|
|
2883
|
-
const
|
|
2884
|
-
return
|
|
2885
|
-
/* @__PURE__ */
|
|
934
|
+
}, [s, n]);
|
|
935
|
+
const i = t.plugins.find(Rs);
|
|
936
|
+
return i ? /* @__PURE__ */ r.jsxs("div", { className: e, children: [
|
|
937
|
+
/* @__PURE__ */ r.jsxs(
|
|
2886
938
|
"button",
|
|
2887
939
|
{
|
|
2888
940
|
type: "button",
|
|
2889
941
|
onClick: () => n(!0),
|
|
2890
|
-
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-
|
|
942
|
+
className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
|
|
2891
943
|
children: [
|
|
2892
|
-
/* @__PURE__ */
|
|
2893
|
-
/* @__PURE__ */
|
|
944
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
945
|
+
/* @__PURE__ */ r.jsx(Ut, { size: 14 }),
|
|
2894
946
|
"Search"
|
|
2895
947
|
] }),
|
|
2896
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ r.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
2897
949
|
]
|
|
2898
950
|
}
|
|
2899
951
|
),
|
|
2900
|
-
/* @__PURE__ */
|
|
2901
|
-
isOpen:
|
|
2902
|
-
onClose:
|
|
952
|
+
/* @__PURE__ */ r.jsx(pe, { fallback: null, children: i.renderSearch({
|
|
953
|
+
isOpen: s,
|
|
954
|
+
onClose: a
|
|
2903
955
|
}) })
|
|
2904
956
|
] }) : null;
|
|
2905
|
-
},
|
|
2906
|
-
const {
|
|
2907
|
-
return
|
|
2908
|
-
|
|
957
|
+
}, st = () => {
|
|
958
|
+
const { resolvedTheme: e, setTheme: t } = hs(), s = e === "dark" ? Wt : _t;
|
|
959
|
+
return /* @__PURE__ */ r.jsx(xe, { children: /* @__PURE__ */ r.jsx(
|
|
960
|
+
le,
|
|
2909
961
|
{
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
),
|
|
2914
|
-
|
|
2915
|
-
|
|
962
|
+
variant: "ghost",
|
|
963
|
+
"aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
|
|
964
|
+
className: "p-2.5 -m-2.5 rounded-full",
|
|
965
|
+
onClick: () => t(e === "dark" ? "light" : "dark"),
|
|
966
|
+
children: /* @__PURE__ */ r.jsx(s, { size: 18 })
|
|
967
|
+
}
|
|
968
|
+
) });
|
|
969
|
+
}, rt = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Ks = () => {
|
|
970
|
+
const { topNavigation: e } = T(), { isAuthenticated: t } = U();
|
|
971
|
+
return e.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(pe, { children: /* @__PURE__ */ r.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(rt(t)).map((s) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(nt, { ...s }) }, s.id)) }) }) });
|
|
972
|
+
}, nt = ({
|
|
973
|
+
id: e,
|
|
974
|
+
label: t,
|
|
975
|
+
default: s
|
|
976
|
+
}) => {
|
|
977
|
+
var l;
|
|
978
|
+
const { sidebars: n } = T(), a = n[e], i = Ze(), o = !!he().location, u = ((l = i.topNavItem) == null ? void 0 : l.id) === e && !o, d = s ?? (a ? Qt(a, (f) => {
|
|
979
|
+
if (f.type === "doc") return q(f.id);
|
|
980
|
+
}) : q(e));
|
|
981
|
+
if (!d)
|
|
982
|
+
throw new gs("Page not found.", {
|
|
983
|
+
developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
|
|
984
|
+
});
|
|
985
|
+
return (
|
|
986
|
+
// We don't use isActive here because it has to be inside the sidebar,
|
|
987
|
+
// the top nav id doesn't necessarily start with the sidebar id
|
|
988
|
+
/* @__PURE__ */ r.jsx(
|
|
989
|
+
te,
|
|
990
|
+
{
|
|
991
|
+
className: ({ isPending: f }) => Gt(
|
|
992
|
+
"block lg:py-3.5 font-medium -mb-px border-b-2",
|
|
993
|
+
u || f ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
994
|
+
),
|
|
995
|
+
to: d,
|
|
996
|
+
children: t
|
|
997
|
+
}
|
|
998
|
+
)
|
|
999
|
+
);
|
|
1000
|
+
}, $s = () => {
|
|
1001
|
+
const { topNavigation: e } = T(), { isAuthenticated: t } = U(), [s, n] = Q(!1);
|
|
1002
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1003
|
+
_e,
|
|
1004
|
+
{
|
|
1005
|
+
direction: "right",
|
|
1006
|
+
open: s,
|
|
1007
|
+
onOpenChange: (a) => n(a),
|
|
1008
|
+
children: [
|
|
1009
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Xe, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Xt, { size: 22 }) }) }),
|
|
1010
|
+
/* @__PURE__ */ r.jsx(
|
|
1011
|
+
Ye,
|
|
1012
|
+
{
|
|
1013
|
+
className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
|
|
1014
|
+
"aria-describedby": void 0,
|
|
1015
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1016
|
+
/* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(Je, { children: "Navigation" }) }),
|
|
1017
|
+
/* @__PURE__ */ r.jsx(tt, { className: "flex p-4" }),
|
|
1018
|
+
/* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
1019
|
+
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(st, {}) }),
|
|
1020
|
+
e.filter(rt(t)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ r.jsx(nt, { ...a }) }) }, a.label))
|
|
1021
|
+
] })
|
|
1022
|
+
] })
|
|
1023
|
+
}
|
|
1024
|
+
)
|
|
1025
|
+
]
|
|
2916
1026
|
}
|
|
2917
|
-
)
|
|
2918
|
-
},
|
|
2919
|
-
/* @__PURE__ */
|
|
2920
|
-
/* @__PURE__ */
|
|
1027
|
+
);
|
|
1028
|
+
}, ee = ({ item: e }) => e.children ? /* @__PURE__ */ r.jsxs(os, { children: [
|
|
1029
|
+
/* @__PURE__ */ r.jsx(ls, { children: e.label }),
|
|
1030
|
+
/* @__PURE__ */ r.jsx(cs, { children: /* @__PURE__ */ r.jsx(us, { children: e.children.map((t, s) => (
|
|
2921
1031
|
// eslint-disable-next-line react/no-array-index-key
|
|
2922
|
-
/* @__PURE__ */
|
|
1032
|
+
/* @__PURE__ */ r.jsx(ee, { item: t }, s)
|
|
2923
1033
|
)) }) })
|
|
2924
|
-
] }, e.label) : /* @__PURE__ */
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
1034
|
+
] }, e.label) : /* @__PURE__ */ r.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(ds, { className: "flex gap-2", children: [
|
|
1035
|
+
e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
1036
|
+
e.label
|
|
1037
|
+
] }, e.label) }), at = Ue(function() {
|
|
1038
|
+
const t = U(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = U(), i = T(), { page: o, plugins: u } = i, d = u.filter((l) => Ts(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
|
|
1039
|
+
return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
1040
|
+
/* @__PURE__ */ r.jsx(Ls, {}),
|
|
1041
|
+
/* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1042
|
+
/* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-4 lg:px-12 h-[--top-header-height]", children: [
|
|
1043
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(fe, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1044
|
+
(o == null ? void 0 : o.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1045
|
+
/* @__PURE__ */ r.jsx(
|
|
2933
1046
|
"img",
|
|
2934
1047
|
{
|
|
2935
|
-
src:
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
1048
|
+
src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : q(
|
|
1049
|
+
"/",
|
|
1050
|
+
o.logo.src.light
|
|
1051
|
+
),
|
|
1052
|
+
alt: o.logo.alt ?? o.pageTitle,
|
|
1053
|
+
style: { width: o.logo.width },
|
|
1054
|
+
className: "h-10 dark:hidden",
|
|
2939
1055
|
loading: "lazy"
|
|
2940
1056
|
}
|
|
2941
1057
|
),
|
|
2942
|
-
/* @__PURE__ */
|
|
1058
|
+
/* @__PURE__ */ r.jsx(
|
|
2943
1059
|
"img",
|
|
2944
1060
|
{
|
|
2945
|
-
src:
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
1061
|
+
src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : q(
|
|
1062
|
+
"/",
|
|
1063
|
+
o.logo.src.dark
|
|
1064
|
+
),
|
|
1065
|
+
alt: o.logo.alt ?? o.pageTitle,
|
|
1066
|
+
style: { width: o.logo.width },
|
|
1067
|
+
className: "h-10 hidden dark:block",
|
|
2949
1068
|
loading: "lazy"
|
|
2950
1069
|
}
|
|
2951
1070
|
)
|
|
2952
1071
|
] }),
|
|
2953
|
-
/* @__PURE__ */
|
|
1072
|
+
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
|
|
2954
1073
|
] }) }) }),
|
|
2955
|
-
/* @__PURE__ */
|
|
2956
|
-
/* @__PURE__ */
|
|
2957
|
-
/* @__PURE__ */
|
|
2958
|
-
/* @__PURE__ */
|
|
2959
|
-
/* @__PURE__ */
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
/* @__PURE__ */ o.jsxs(Gr, { className: "w-56", children: [
|
|
2963
|
-
/* @__PURE__ */ o.jsx(Yr, { children: "My Account" }),
|
|
2964
|
-
/* @__PURE__ */ o.jsx(Xr, {}),
|
|
2965
|
-
m
|
|
2966
|
-
] })
|
|
2967
|
-
] }),
|
|
2968
|
-
/* @__PURE__ */ o.jsx(
|
|
2969
|
-
"button",
|
|
1074
|
+
/* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1075
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ r.jsx(tt, {}) }),
|
|
1076
|
+
/* @__PURE__ */ r.jsx($s, {}),
|
|
1077
|
+
/* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
1078
|
+
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-start" }),
|
|
1079
|
+
a && /* @__PURE__ */ r.jsx(
|
|
1080
|
+
xe,
|
|
2970
1081
|
{
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
1082
|
+
fallback: /* @__PURE__ */ r.jsx(Qs, { className: "rounded h-5 w-24 mr-4" }),
|
|
1083
|
+
children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(rs, { modal: !1, children: [
|
|
1084
|
+
/* @__PURE__ */ r.jsx(ns, { asChild: !0, children: /* @__PURE__ */ r.jsx(le, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
1085
|
+
/* @__PURE__ */ r.jsxs(as, { className: "w-56", children: [
|
|
1086
|
+
/* @__PURE__ */ r.jsxs(is, { children: [
|
|
1087
|
+
n != null && n.name ? `${n.name}` : "My Account",
|
|
1088
|
+
(n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
1089
|
+
] }),
|
|
1090
|
+
d.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1091
|
+
d.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label)),
|
|
1092
|
+
d.filter(
|
|
1093
|
+
(l) => !l.category || l.category === "middle"
|
|
1094
|
+
).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1095
|
+
d.filter(
|
|
1096
|
+
(l) => !l.category || l.category === "middle"
|
|
1097
|
+
).map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label)),
|
|
1098
|
+
d.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
1099
|
+
d.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ r.jsx(ee, { item: l }, l.label))
|
|
1100
|
+
] })
|
|
1101
|
+
] }) : /* @__PURE__ */ r.jsx(le, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
2976
1102
|
}
|
|
2977
1103
|
),
|
|
2978
|
-
/* @__PURE__ */
|
|
1104
|
+
/* @__PURE__ */ r.jsx(st, {}),
|
|
1105
|
+
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" })
|
|
2979
1106
|
] })
|
|
2980
1107
|
] })
|
|
2981
1108
|
] }),
|
|
2982
|
-
/* @__PURE__ */
|
|
1109
|
+
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-before" }),
|
|
1110
|
+
/* @__PURE__ */ r.jsx(Ks, {}),
|
|
1111
|
+
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-after" })
|
|
2983
1112
|
] })
|
|
2984
1113
|
] });
|
|
2985
|
-
}),
|
|
2986
|
-
Header: mo
|
|
2987
|
-
}, El = $n(go), Cl = El.Provider, Rl = (e) => {
|
|
2988
|
-
const [t, n] = Te(!1);
|
|
2989
|
-
be(() => {
|
|
2990
|
-
const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
|
|
2991
|
-
n(l);
|
|
2992
|
-
}, [t]);
|
|
2993
|
-
const r = Ln(() => {
|
|
2994
|
-
const s = !t;
|
|
2995
|
-
document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
|
|
2996
|
-
}, [t]), a = [t, r];
|
|
2997
|
-
return /* @__PURE__ */ o.jsx(ia.Provider, { value: a, ...e });
|
|
2998
|
-
}, Dl = ({
|
|
2999
|
-
children: e,
|
|
3000
|
-
context: t
|
|
3001
|
-
}) => (Na({
|
|
3002
|
-
queryFn: async () => (await t.initialize(), !0),
|
|
3003
|
-
queryKey: ["zudoku-initialize"]
|
|
3004
|
-
}), /* @__PURE__ */ o.jsx(Pa.Provider, { value: t, children: e })), jl = ({
|
|
3005
|
-
children: e,
|
|
3006
|
-
...t
|
|
3007
|
-
}) => {
|
|
3008
|
-
var c, d;
|
|
3009
|
-
const n = xt(
|
|
3010
|
-
() => ({ ...go, ...t.overrides }),
|
|
3011
|
-
[t.overrides]
|
|
3012
|
-
), r = xt(() => {
|
|
3013
|
-
var y;
|
|
3014
|
-
return {
|
|
3015
|
-
...(t.plugins ?? []).filter(Ts).flatMap(
|
|
3016
|
-
(R) => R.getMdxComponents ? [R.getMdxComponents()] : []
|
|
3017
|
-
).reduce((R, K) => ({ ...R, ...K }), {}),
|
|
3018
|
-
...la,
|
|
3019
|
-
...(y = t.mdx) == null ? void 0 : y.components
|
|
3020
|
-
};
|
|
3021
|
-
}, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: a } = ma(Dt), [s, i] = Te(!1), l = xt(
|
|
3022
|
-
() => s ? { stagger: !0 } : { stagger: a },
|
|
3023
|
-
[a, s]
|
|
3024
|
-
), u = Bo();
|
|
3025
|
-
be(() => {
|
|
3026
|
-
s || i(!0);
|
|
3027
|
-
}, [s, u.location]);
|
|
3028
|
-
const [v] = Te(() => new Os(t)), m = (d = t.plugins) == null ? void 0 : d.filter(Ps).map((f, y) => {
|
|
3029
|
-
var R;
|
|
3030
|
-
return /* @__PURE__ */ o.jsx(ga, { children: (R = f.getHead) == null ? void 0 : R.call(f) }, y);
|
|
3031
|
-
});
|
|
3032
|
-
return /* @__PURE__ */ o.jsxs(Ta, { client: Wn, children: [
|
|
3033
|
-
/* @__PURE__ */ o.jsx(_t, { children: m }),
|
|
3034
|
-
/* @__PURE__ */ o.jsx(Dt.Provider, { value: l, children: /* @__PURE__ */ o.jsx(Dl, { context: v, children: /* @__PURE__ */ o.jsx(Ao, { components: r, children: /* @__PURE__ */ o.jsx(Rl, { children: /* @__PURE__ */ o.jsx(Cl, { value: n, children: /* @__PURE__ */ o.jsx(Ko, { slotlets: t.slotlets, children: /* @__PURE__ */ o.jsx(ca, { children: e ?? /* @__PURE__ */ o.jsx(Dn, {}) }) }) }) }) }) }) })
|
|
3035
|
-
] });
|
|
3036
|
-
}, Nl = Hn(jl), vo = (e) => /* @__PURE__ */ o.jsx(Es, { FallbackComponent: Is, children: /* @__PURE__ */ o.jsx(Nl, { ...e }) });
|
|
3037
|
-
vo.displayName = "DevPortal";
|
|
3038
|
-
const Pl = ({
|
|
3039
|
-
category: e,
|
|
3040
|
-
level: t
|
|
3041
|
-
}) => {
|
|
3042
|
-
var d;
|
|
3043
|
-
const n = zn(), r = ko(e), [a, s] = Te(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [v, m] = Te(u);
|
|
3044
|
-
be(() => {
|
|
3045
|
-
r && m(!0);
|
|
3046
|
-
}, [r]);
|
|
3047
|
-
const c = i && /* @__PURE__ */ o.jsx(
|
|
3048
|
-
"button",
|
|
3049
|
-
{
|
|
3050
|
-
type: "button",
|
|
3051
|
-
onClick: (f) => {
|
|
3052
|
-
f.preventDefault(), m((y) => !y), s(!0);
|
|
3053
|
-
},
|
|
3054
|
-
children: /* @__PURE__ */ o.jsx(
|
|
3055
|
-
Kn,
|
|
3056
|
-
{
|
|
3057
|
-
size: 16,
|
|
3058
|
-
className: O(
|
|
3059
|
-
a && "transition",
|
|
3060
|
-
"shrink-0 group-data-[state=open]:rotate-90"
|
|
3061
|
-
)
|
|
3062
|
-
}
|
|
3063
|
-
)
|
|
3064
|
-
}
|
|
3065
|
-
);
|
|
3066
|
-
return /* @__PURE__ */ o.jsxs(
|
|
3067
|
-
ba,
|
|
3068
|
-
{
|
|
3069
|
-
className: O("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
|
|
3070
|
-
defaultOpen: u,
|
|
3071
|
-
open: v,
|
|
3072
|
-
onOpenChange: () => m(!0),
|
|
3073
|
-
children: [
|
|
3074
|
-
/* @__PURE__ */ o.jsx(xa, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ o.jsxs(
|
|
3075
|
-
"div",
|
|
3076
|
-
{
|
|
3077
|
-
className: O(
|
|
3078
|
-
"text-start",
|
|
3079
|
-
Ge({ isActive: !1, isTopLevel: t === 0 }),
|
|
3080
|
-
i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
3081
|
-
),
|
|
3082
|
-
children: [
|
|
3083
|
-
e.icon && /* @__PURE__ */ o.jsx(
|
|
3084
|
-
e.icon,
|
|
3085
|
-
{
|
|
3086
|
-
size: 16,
|
|
3087
|
-
className: "align-[-0.125em] -translate-x-1"
|
|
3088
|
-
}
|
|
3089
|
-
),
|
|
3090
|
-
((d = e.link) == null ? void 0 : d.type) === "doc" ? /* @__PURE__ */ o.jsx(
|
|
3091
|
-
We,
|
|
3092
|
-
{
|
|
3093
|
-
to: Ft(n == null ? void 0 : n.id, e.link.id),
|
|
3094
|
-
className: "flex-1",
|
|
3095
|
-
onClick: () => s(!0),
|
|
3096
|
-
children: ({ isActive: f }) => /* @__PURE__ */ o.jsxs(
|
|
3097
|
-
"div",
|
|
3098
|
-
{
|
|
3099
|
-
className: O(
|
|
3100
|
-
"flex items-center gap-2 justify-between w-full",
|
|
3101
|
-
f ? "text-primary font-medium" : "text-foreground/80"
|
|
3102
|
-
),
|
|
3103
|
-
children: [
|
|
3104
|
-
/* @__PURE__ */ o.jsx("div", { className: "truncate", children: e.label }),
|
|
3105
|
-
c
|
|
3106
|
-
]
|
|
3107
|
-
}
|
|
3108
|
-
)
|
|
3109
|
-
}
|
|
3110
|
-
) : /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
3111
|
-
/* @__PURE__ */ o.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
|
|
3112
|
-
c
|
|
3113
|
-
] })
|
|
3114
|
-
]
|
|
3115
|
-
}
|
|
3116
|
-
) }),
|
|
3117
|
-
/* @__PURE__ */ o.jsx(
|
|
3118
|
-
ya,
|
|
3119
|
-
{
|
|
3120
|
-
className: O(
|
|
3121
|
-
// CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
|
|
3122
|
-
a && "CollapsibleContent",
|
|
3123
|
-
"ms-[calc(var(--padding-nav-item)*1.125)]"
|
|
3124
|
-
),
|
|
3125
|
-
children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((f) => /* @__PURE__ */ o.jsx(
|
|
3126
|
-
Tt,
|
|
3127
|
-
{
|
|
3128
|
-
level: t + 1,
|
|
3129
|
-
item: f
|
|
3130
|
-
},
|
|
3131
|
-
("id" in f ? f.id : "") + ("href" in f ? f.href : "") + f.label
|
|
3132
|
-
)) })
|
|
3133
|
-
}
|
|
3134
|
-
)
|
|
3135
|
-
]
|
|
3136
|
-
}
|
|
3137
|
-
);
|
|
3138
|
-
}, Ge = ua(
|
|
3139
|
-
"flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
3140
|
-
{
|
|
3141
|
-
variants: {
|
|
3142
|
-
isTopLevel: {
|
|
3143
|
-
true: "font-semibold"
|
|
3144
|
-
},
|
|
3145
|
-
isActive: {
|
|
3146
|
-
true: "text-primary font-medium",
|
|
3147
|
-
false: "text-foreground/80"
|
|
3148
|
-
},
|
|
3149
|
-
isMuted: {
|
|
3150
|
-
true: "text-foreground/30",
|
|
3151
|
-
false: ""
|
|
3152
|
-
}
|
|
3153
|
-
}
|
|
3154
|
-
}
|
|
3155
|
-
), wo = "data-anchor", Tt = ({
|
|
3156
|
-
item: e,
|
|
3157
|
-
level: t = 0
|
|
3158
|
-
}) => {
|
|
3159
|
-
const n = zn(), { activeAnchor: r } = kt(), [a] = zo();
|
|
3160
|
-
switch (e.type) {
|
|
3161
|
-
case "category":
|
|
3162
|
-
return /* @__PURE__ */ o.jsx(Pl, { category: e, level: t });
|
|
3163
|
-
case "doc":
|
|
3164
|
-
return /* @__PURE__ */ o.jsxs(
|
|
3165
|
-
We,
|
|
3166
|
-
{
|
|
3167
|
-
className: ({ isActive: s }) => Ge({ isActive: s, isTopLevel: t === 0 }),
|
|
3168
|
-
to: Ft(n == null ? void 0 : n.id, e.id),
|
|
3169
|
-
children: [
|
|
3170
|
-
e.icon && /* @__PURE__ */ o.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
3171
|
-
e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3172
|
-
/* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
3173
|
-
/* @__PURE__ */ o.jsx(yt, { ...e.badge })
|
|
3174
|
-
] }) : e.label
|
|
3175
|
-
]
|
|
3176
|
-
}
|
|
3177
|
-
);
|
|
3178
|
-
case "link":
|
|
3179
|
-
return e.href.startsWith("#") ? /* @__PURE__ */ o.jsx(
|
|
3180
|
-
$o,
|
|
3181
|
-
{
|
|
3182
|
-
to: { hash: e.href, search: a.toString() },
|
|
3183
|
-
[wo]: e.href.slice(1),
|
|
3184
|
-
className: O(
|
|
3185
|
-
"flex gap-2.5 justify-between",
|
|
3186
|
-
t === 0 && "-mx-[--padding-nav-item]",
|
|
3187
|
-
Ge({
|
|
3188
|
-
isActive: e.href.slice(1) === r
|
|
3189
|
-
})
|
|
3190
|
-
),
|
|
3191
|
-
children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3192
|
-
/* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
3193
|
-
/* @__PURE__ */ o.jsx(yt, { ...e.badge })
|
|
3194
|
-
] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
|
|
3195
|
-
}
|
|
3196
|
-
) : e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
|
|
3197
|
-
"a",
|
|
3198
|
-
{
|
|
3199
|
-
className: O(
|
|
3200
|
-
Ge({ isTopLevel: t === 0 }),
|
|
3201
|
-
"block"
|
|
3202
|
-
),
|
|
3203
|
-
href: e.href,
|
|
3204
|
-
target: "_blank",
|
|
3205
|
-
rel: "noopener noreferrer",
|
|
3206
|
-
children: [
|
|
3207
|
-
/* @__PURE__ */ o.jsx("span", { className: "whitespace-normal", children: e.label }),
|
|
3208
|
-
/* @__PURE__ */ o.jsxs("span", { className: "whitespace-nowrap", children: [
|
|
3209
|
-
" ",
|
|
3210
|
-
/* @__PURE__ */ o.jsx(Ha, { className: "inline ml-1", size: 12 })
|
|
3211
|
-
] })
|
|
3212
|
-
]
|
|
3213
|
-
}
|
|
3214
|
-
) : /* @__PURE__ */ o.jsx(
|
|
3215
|
-
We,
|
|
3216
|
-
{
|
|
3217
|
-
className: O("flex gap-2.5 justify-between", Ge()),
|
|
3218
|
-
to: e.href,
|
|
3219
|
-
children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3220
|
-
/* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
3221
|
-
/* @__PURE__ */ o.jsx(yt, { ...e.badge })
|
|
3222
|
-
] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
|
|
3223
|
-
}
|
|
3224
|
-
);
|
|
3225
|
-
}
|
|
3226
|
-
}, Tl = (e, t = { block: "center" }) => {
|
|
3227
|
-
if (!e) return;
|
|
3228
|
-
const n = e.getBoundingClientRect();
|
|
3229
|
-
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
3230
|
-
}, _l = () => {
|
|
3231
|
-
const e = It(), { setActiveAnchor: t } = kt();
|
|
3232
|
-
be(() => {
|
|
3233
|
-
if (!e.hash) return;
|
|
3234
|
-
const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
|
|
3235
|
-
const a = document.getElementById(n), s = document.querySelector(`[${wo}="${n}"]`);
|
|
3236
|
-
return a ? (a.scrollIntoView(), Tl(s), requestIdleCallback(() => t(n)), !0) : !1;
|
|
3237
|
-
};
|
|
3238
|
-
if (!r()) {
|
|
3239
|
-
const a = new MutationObserver((s, i) => {
|
|
3240
|
-
r() && i.disconnect();
|
|
3241
|
-
});
|
|
3242
|
-
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
3243
|
-
}
|
|
3244
|
-
}, [e.hash, t]);
|
|
3245
|
-
}, Ol = () => {
|
|
3246
|
-
const e = It(), t = $t(e.pathname);
|
|
3247
|
-
be(() => {
|
|
3248
|
-
t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
|
|
3249
|
-
}, [e.pathname]);
|
|
3250
|
-
}, bo = va(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ o.jsx(
|
|
1114
|
+
}), it = Bt(({ children: e, className: t, pushMainContent: s }, n) => /* @__PURE__ */ r.jsx(
|
|
3251
1115
|
"nav",
|
|
3252
1116
|
{
|
|
3253
|
-
"data-navigation": String(
|
|
1117
|
+
"data-navigation": String(s),
|
|
3254
1118
|
className: O(
|
|
3255
1119
|
"scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
|
|
3256
|
-
"
|
|
1120
|
+
"-mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
|
|
3257
1121
|
"w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
3258
1122
|
t
|
|
3259
1123
|
),
|
|
3260
|
-
ref:
|
|
1124
|
+
ref: n,
|
|
3261
1125
|
children: e
|
|
3262
1126
|
}
|
|
3263
1127
|
));
|
|
3264
|
-
|
|
3265
|
-
const
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
1128
|
+
it.displayName = "SidebarWrapper";
|
|
1129
|
+
const Zs = ({
|
|
1130
|
+
onRequestClose: e
|
|
1131
|
+
}) => {
|
|
1132
|
+
const t = me(null), s = Ze();
|
|
1133
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1134
|
+
/* @__PURE__ */ r.jsxs(
|
|
1135
|
+
it,
|
|
3270
1136
|
{
|
|
3271
|
-
ref:
|
|
3272
|
-
pushMainContent:
|
|
1137
|
+
ref: t,
|
|
1138
|
+
pushMainContent: s.sidebar.length > 0,
|
|
3273
1139
|
children: [
|
|
3274
|
-
/* @__PURE__ */
|
|
3275
|
-
|
|
3276
|
-
/* @__PURE__ */
|
|
1140
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-before-navigation" }),
|
|
1141
|
+
s.sidebar.map((n) => /* @__PURE__ */ r.jsx(ce, { item: n }, n.label)),
|
|
1142
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-after-navigation" })
|
|
3277
1143
|
]
|
|
3278
1144
|
}
|
|
3279
1145
|
),
|
|
3280
|
-
/* @__PURE__ */
|
|
3281
|
-
|
|
1146
|
+
/* @__PURE__ */ r.jsx(
|
|
1147
|
+
Ye,
|
|
3282
1148
|
{
|
|
3283
|
-
className: "lg:hidden h-
|
|
1149
|
+
className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
|
|
3284
1150
|
"aria-describedby": void 0,
|
|
3285
|
-
children: [
|
|
3286
|
-
/* @__PURE__ */
|
|
3287
|
-
|
|
3288
|
-
|
|
1151
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
1152
|
+
/* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(Je, { children: "Sidebar" }) }),
|
|
1153
|
+
s.sidebar.map((n) => /* @__PURE__ */ r.jsx(
|
|
1154
|
+
ce,
|
|
1155
|
+
{
|
|
1156
|
+
item: n,
|
|
1157
|
+
onRequestClose: e
|
|
1158
|
+
},
|
|
1159
|
+
n.label
|
|
1160
|
+
))
|
|
1161
|
+
] })
|
|
3289
1162
|
}
|
|
3290
1163
|
)
|
|
3291
1164
|
] });
|
|
3292
|
-
},
|
|
3293
|
-
const t =
|
|
3294
|
-
|
|
3295
|
-
const
|
|
3296
|
-
|
|
3297
|
-
var
|
|
3298
|
-
(
|
|
3299
|
-
}, [a]),
|
|
3300
|
-
t.pathname !==
|
|
3301
|
-
}, [t.pathname,
|
|
1165
|
+
}, Qe = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(He, {}) }), Vs = ({ children: e }) => {
|
|
1166
|
+
const t = de(), { setActiveAnchor: s } = ge(), { meta: n, authentication: a } = T();
|
|
1167
|
+
Es(), Is();
|
|
1168
|
+
const i = me(t.pathname);
|
|
1169
|
+
R(() => {
|
|
1170
|
+
var f;
|
|
1171
|
+
(f = a == null ? void 0 : a.onPageLoad) == null || f.call(a);
|
|
1172
|
+
}, [a]), R(() => {
|
|
1173
|
+
t.pathname !== i.current && s(""), i.current = t.pathname;
|
|
1174
|
+
}, [t.pathname, s]);
|
|
1175
|
+
const o = !!he().location, u = Ds.useSpinDelay(o, {
|
|
1176
|
+
delay: 300,
|
|
1177
|
+
minDuration: 500
|
|
1178
|
+
}), [d, l] = Q(!1);
|
|
1179
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3302
1180
|
!1,
|
|
3303
|
-
/* @__PURE__ */
|
|
3304
|
-
(
|
|
3305
|
-
(
|
|
1181
|
+
/* @__PURE__ */ r.jsxs(ue, { titleTemplate: n == null ? void 0 : n.title, children: [
|
|
1182
|
+
(n == null ? void 0 : n.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: n.description }),
|
|
1183
|
+
(n == null ? void 0 : n.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: n.favicon })
|
|
3306
1184
|
] }),
|
|
3307
|
-
/* @__PURE__ */
|
|
3308
|
-
/* @__PURE__ */
|
|
3309
|
-
/* @__PURE__ */
|
|
3310
|
-
|
|
1185
|
+
/* @__PURE__ */ r.jsx(D, { name: "layout-before-head" }),
|
|
1186
|
+
/* @__PURE__ */ r.jsx(at, {}),
|
|
1187
|
+
/* @__PURE__ */ r.jsx(D, { name: "layout-after-head" }),
|
|
1188
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-4 lg:px-12", children: u ? /* @__PURE__ */ r.jsx(Qe, {}) : /* @__PURE__ */ r.jsx(pe, { fallback: /* @__PURE__ */ r.jsx(Qe, {}), children: /* @__PURE__ */ r.jsxs(
|
|
1189
|
+
_e,
|
|
3311
1190
|
{
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
1191
|
+
direction: "left",
|
|
1192
|
+
open: d,
|
|
1193
|
+
onOpenChange: (f) => l(f),
|
|
1194
|
+
children: [
|
|
1195
|
+
/* @__PURE__ */ r.jsx(Zs, { onRequestClose: () => l(!1) }),
|
|
1196
|
+
/* @__PURE__ */ r.jsx(
|
|
3316
1197
|
"div",
|
|
3317
1198
|
{
|
|
3318
1199
|
className: O(
|
|
3319
1200
|
"lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
|
|
3320
1201
|
"peer-data-[navigation=false]:hidden"
|
|
3321
1202
|
),
|
|
3322
|
-
children: /* @__PURE__ */
|
|
3323
|
-
/* @__PURE__ */
|
|
3324
|
-
/* @__PURE__ */
|
|
1203
|
+
children: /* @__PURE__ */ r.jsxs(Xe, { className: "flex items-center gap-2", children: [
|
|
1204
|
+
/* @__PURE__ */ r.jsx(Yt, { size: 16, strokeWidth: 1.5 }),
|
|
1205
|
+
/* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
|
|
3325
1206
|
] })
|
|
3326
1207
|
}
|
|
3327
1208
|
),
|
|
3328
|
-
/* @__PURE__ */
|
|
1209
|
+
/* @__PURE__ */ r.jsxs(
|
|
3329
1210
|
"main",
|
|
3330
1211
|
{
|
|
3331
1212
|
className: O(
|
|
@@ -3336,28 +1217,205 @@ const Il = () => {
|
|
|
3336
1217
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
3337
1218
|
),
|
|
3338
1219
|
children: [
|
|
3339
|
-
/* @__PURE__ */
|
|
3340
|
-
e ?? /* @__PURE__ */
|
|
3341
|
-
/* @__PURE__ */
|
|
1220
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-before-content" }),
|
|
1221
|
+
e ?? /* @__PURE__ */ r.jsx(Be, {}),
|
|
1222
|
+
/* @__PURE__ */ r.jsx(D, { name: "zudoku-after-content" })
|
|
3342
1223
|
]
|
|
3343
1224
|
}
|
|
3344
1225
|
)
|
|
3345
|
-
]
|
|
1226
|
+
]
|
|
3346
1227
|
}
|
|
3347
|
-
) })
|
|
1228
|
+
) }) })
|
|
3348
1229
|
] });
|
|
3349
|
-
},
|
|
1230
|
+
}, Us = We(null), ie = {
|
|
1231
|
+
didCatch: !1,
|
|
1232
|
+
error: null
|
|
1233
|
+
};
|
|
1234
|
+
class Ws extends zt {
|
|
1235
|
+
constructor(t) {
|
|
1236
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ie;
|
|
1237
|
+
}
|
|
1238
|
+
static getDerivedStateFromError(t) {
|
|
1239
|
+
return {
|
|
1240
|
+
didCatch: !0,
|
|
1241
|
+
error: t
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
resetErrorBoundary() {
|
|
1245
|
+
const {
|
|
1246
|
+
error: t
|
|
1247
|
+
} = this.state;
|
|
1248
|
+
if (t !== null) {
|
|
1249
|
+
for (var s, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
|
|
1250
|
+
i[o] = arguments[o];
|
|
1251
|
+
(s = (n = this.props).onReset) === null || s === void 0 || s.call(n, {
|
|
1252
|
+
args: i,
|
|
1253
|
+
reason: "imperative-api"
|
|
1254
|
+
}), this.setState(ie);
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
componentDidCatch(t, s) {
|
|
1258
|
+
var n, a;
|
|
1259
|
+
(n = (a = this.props).onError) === null || n === void 0 || n.call(a, t, s);
|
|
1260
|
+
}
|
|
1261
|
+
componentDidUpdate(t, s) {
|
|
1262
|
+
const {
|
|
1263
|
+
didCatch: n
|
|
1264
|
+
} = this.state, {
|
|
1265
|
+
resetKeys: a
|
|
1266
|
+
} = this.props;
|
|
1267
|
+
if (n && s.error !== null && _s(t.resetKeys, a)) {
|
|
1268
|
+
var i, o;
|
|
1269
|
+
(i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
|
|
1270
|
+
next: a,
|
|
1271
|
+
prev: t.resetKeys,
|
|
1272
|
+
reason: "keys"
|
|
1273
|
+
}), this.setState(ie);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
render() {
|
|
1277
|
+
const {
|
|
1278
|
+
children: t,
|
|
1279
|
+
fallbackRender: s,
|
|
1280
|
+
FallbackComponent: n,
|
|
1281
|
+
fallback: a
|
|
1282
|
+
} = this.props, {
|
|
1283
|
+
didCatch: i,
|
|
1284
|
+
error: o
|
|
1285
|
+
} = this.state;
|
|
1286
|
+
let u = t;
|
|
1287
|
+
if (i) {
|
|
1288
|
+
const d = {
|
|
1289
|
+
error: o,
|
|
1290
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
1291
|
+
};
|
|
1292
|
+
if (typeof s == "function")
|
|
1293
|
+
u = s(d);
|
|
1294
|
+
else if (n)
|
|
1295
|
+
u = De(n, d);
|
|
1296
|
+
else if (a !== void 0)
|
|
1297
|
+
u = a;
|
|
1298
|
+
else
|
|
1299
|
+
throw o;
|
|
1300
|
+
}
|
|
1301
|
+
return De(Us.Provider, {
|
|
1302
|
+
value: {
|
|
1303
|
+
didCatch: i,
|
|
1304
|
+
error: o,
|
|
1305
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
1306
|
+
}
|
|
1307
|
+
}, u);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
function _s() {
|
|
1311
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1312
|
+
return e.length !== t.length || e.some((s, n) => !Object.is(s, t[n]));
|
|
1313
|
+
}
|
|
1314
|
+
class Xs {
|
|
1315
|
+
constructor(t) {
|
|
1316
|
+
k(this, "plugins");
|
|
1317
|
+
k(this, "sidebars");
|
|
1318
|
+
k(this, "topNavigation");
|
|
1319
|
+
k(this, "meta");
|
|
1320
|
+
k(this, "page");
|
|
1321
|
+
k(this, "authentication");
|
|
1322
|
+
k(this, "navigationPlugins");
|
|
1323
|
+
k(this, "initialize", async () => {
|
|
1324
|
+
await Promise.all(
|
|
1325
|
+
this.plugins.filter(Fs).map((t) => {
|
|
1326
|
+
var s;
|
|
1327
|
+
return (s = t.initialize) == null ? void 0 : s.call(t, this);
|
|
1328
|
+
})
|
|
1329
|
+
);
|
|
1330
|
+
});
|
|
1331
|
+
k(this, "getApiIdentities", async () => (await Promise.all(
|
|
1332
|
+
this.plugins.filter(Hs).map((s) => s.getIdentities(this))
|
|
1333
|
+
)).flat());
|
|
1334
|
+
k(this, "getPluginSidebar", async (t) => (await Promise.all(
|
|
1335
|
+
this.navigationPlugins.map(
|
|
1336
|
+
(n) => {
|
|
1337
|
+
var a;
|
|
1338
|
+
return (a = n.getSidebar) == null ? void 0 : a.call(n, q(t));
|
|
1339
|
+
}
|
|
1340
|
+
)
|
|
1341
|
+
)).flatMap((n) => n ?? []));
|
|
1342
|
+
k(this, "signRequest", async (t) => {
|
|
1343
|
+
if (!this.authentication)
|
|
1344
|
+
throw new Error("No authentication provider configured");
|
|
1345
|
+
const s = await this.authentication.getAccessToken();
|
|
1346
|
+
return t.headers.set("Authorization", `Bearer ${s}`), t;
|
|
1347
|
+
});
|
|
1348
|
+
this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(qs), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
function Ys({ error: e, resetErrorBoundary: t }) {
|
|
1352
|
+
return /* @__PURE__ */ r.jsx(ze, { error: e });
|
|
1353
|
+
}
|
|
1354
|
+
const G = globalThis;
|
|
1355
|
+
(!G.requestIdleCallback || !G.cancelIdleCallback) && (G.requestIdleCallback = (e) => setTimeout(e, 1), G.cancelIdleCallback = clearTimeout);
|
|
1356
|
+
const ot = {
|
|
1357
|
+
Header: at
|
|
1358
|
+
}, Js = We(ot), Gs = Js.Provider, er = ({
|
|
1359
|
+
children: e,
|
|
1360
|
+
context: t
|
|
1361
|
+
}) => (Tt({
|
|
1362
|
+
queryFn: async () => (await t.initialize(), !0),
|
|
1363
|
+
queryKey: ["zudoku-initialize"]
|
|
1364
|
+
}), /* @__PURE__ */ r.jsx(qt.Provider, { value: t, children: e })), lt = Ue(
|
|
1365
|
+
({ children: e, ...t }) => {
|
|
1366
|
+
var g, h;
|
|
1367
|
+
const s = se(
|
|
1368
|
+
() => ({ ...ot, ...t.overrides }),
|
|
1369
|
+
[t.overrides]
|
|
1370
|
+
), n = se(() => {
|
|
1371
|
+
var x;
|
|
1372
|
+
return {
|
|
1373
|
+
...(t.plugins ?? []).filter(zs).flatMap(
|
|
1374
|
+
(m) => m.getMdxComponents ? [m.getMdxComponents()] : []
|
|
1375
|
+
).reduce(
|
|
1376
|
+
(m, N) => ({ ...m, ...N }),
|
|
1377
|
+
{}
|
|
1378
|
+
),
|
|
1379
|
+
...wt,
|
|
1380
|
+
...(x = t.mdx) == null ? void 0 : x.components
|
|
1381
|
+
};
|
|
1382
|
+
}, [(g = t.mdx) == null ? void 0 : g.components, t.plugins]), { stagger: a } = Ht(oe), [i, o] = Q(!1), u = se(
|
|
1383
|
+
() => i ? { stagger: !0 } : { stagger: a },
|
|
1384
|
+
[a, i]
|
|
1385
|
+
), d = he();
|
|
1386
|
+
R(() => {
|
|
1387
|
+
i || o(!0);
|
|
1388
|
+
}, [i, d.location]);
|
|
1389
|
+
const [l] = Q(() => new Xs(t)), f = (h = t.plugins) == null ? void 0 : h.filter(Bs).map((p, x) => {
|
|
1390
|
+
var m;
|
|
1391
|
+
return /* @__PURE__ */ r.jsx(Lt, { children: (m = p.getHead) == null ? void 0 : m.call(p) }, x);
|
|
1392
|
+
});
|
|
1393
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1394
|
+
/* @__PURE__ */ r.jsx(ue, { children: f }),
|
|
1395
|
+
/* @__PURE__ */ r.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ r.jsx(er, { context: l, children: /* @__PURE__ */ r.jsx(ts, { components: n, children: /* @__PURE__ */ r.jsx(fs, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(Gs, { value: s, children: /* @__PURE__ */ r.jsx(yt, { slotlets: t.slotlets, children: /* @__PURE__ */ r.jsx(kt, { children: e ?? /* @__PURE__ */ r.jsx(Be, {}) }) }) }) }) }) }) })
|
|
1396
|
+
] });
|
|
1397
|
+
}
|
|
1398
|
+
);
|
|
1399
|
+
lt.displayName = "ZudokoInner";
|
|
1400
|
+
const ct = (e) => /* @__PURE__ */ r.jsx(Ws, { FallbackComponent: Ys, children: /* @__PURE__ */ r.jsx(lt, { ...e }) });
|
|
1401
|
+
ct.displayName = "Zudoku";
|
|
1402
|
+
const Nr = ss, Pr = Vs, Sr = bt, Dr = js, Or = Cs, Mr = Ns, Ar = ue, Er = T, Ir = U, Qr = ct, Tr = jt, qr = Ct, Rr = He, Fr = xe, Br = vt, zr = fe;
|
|
3350
1403
|
export {
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
1404
|
+
Or as Bootstrap,
|
|
1405
|
+
Mr as BootstrapStatic,
|
|
1406
|
+
Br as Button,
|
|
1407
|
+
Tr as Callout,
|
|
1408
|
+
Fr as ClientOnly,
|
|
1409
|
+
Ar as Head,
|
|
1410
|
+
Pr as Layout,
|
|
1411
|
+
zr as Link,
|
|
1412
|
+
qr as Markdown,
|
|
1413
|
+
Sr as RouterError,
|
|
1414
|
+
Dr as ServerError,
|
|
1415
|
+
Rr as Spinner,
|
|
1416
|
+
Qr as Zudoku,
|
|
1417
|
+
Ir as useAuth,
|
|
1418
|
+
Nr as useMDXComponents,
|
|
1419
|
+
Er as useZudoku
|
|
3362
1420
|
};
|
|
3363
1421
|
//# sourceMappingURL=zudoku.components.js.map
|