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