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