zudoku 0.3.0-dev.8 → 0.3.0-dev.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/App.d.ts +1 -2
- package/dist/app/App.js +1 -29
- package/dist/app/App.js.map +1 -1
- package/dist/app/demo.d.ts +2 -0
- package/dist/app/demo.js +32 -0
- package/dist/app/demo.js.map +1 -0
- package/dist/app/entry.client.d.ts +2 -0
- package/dist/app/entry.client.js +35 -0
- package/dist/app/entry.client.js.map +1 -0
- package/dist/app/entry.server.d.ts +14 -0
- package/dist/app/entry.server.js +105 -0
- package/dist/app/entry.server.js.map +1 -0
- package/dist/app/main.d.ts +6 -1
- package/dist/app/main.js +72 -12
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.d.ts +2 -0
- package/dist/app/standalone.js +37 -0
- package/dist/app/standalone.js.map +1 -0
- package/dist/app/tailwind.d.ts +1 -1
- package/dist/app/tailwind.js +0 -4
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +3 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +19 -45
- package/dist/config/validators/validate.d.ts +911 -2
- package/dist/config/validators/validate.js +151 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.js +2 -0
- package/dist/internal.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +13 -0
- package/dist/lib/authentication/AuthenticationPlugin.js +31 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -0
- package/dist/lib/authentication/authentication.d.ts +10 -9
- package/dist/lib/authentication/components/SignIn.d.ts +1 -0
- package/dist/lib/authentication/components/SignIn.js +14 -0
- package/dist/lib/authentication/components/SignIn.js.map +1 -0
- package/dist/lib/authentication/components/SignOut.d.ts +1 -0
- package/dist/lib/authentication/components/SignOut.js +12 -0
- package/dist/lib/authentication/components/SignOut.js.map +1 -0
- package/dist/lib/authentication/components/SignUp.d.ts +1 -0
- package/dist/lib/authentication/components/SignUp.js +10 -0
- package/dist/lib/authentication/components/SignUp.js.map +1 -0
- package/dist/lib/authentication/hook.js +2 -2
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +11 -6
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +59 -30
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +30 -7
- package/dist/lib/authentication/providers/openid.js +78 -29
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.js +1 -1
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +13 -0
- package/dist/lib/components/Bootstrap.js +12 -0
- package/dist/lib/components/Bootstrap.js.map +1 -0
- package/dist/lib/components/DevPortal.d.ts +5 -19
- package/dist/lib/components/DevPortal.js +57 -15
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/DeveloperHint.d.ts +5 -0
- package/dist/lib/components/DeveloperHint.js +10 -0
- package/dist/lib/components/DeveloperHint.js.map +1 -0
- package/dist/lib/components/ErrorPage.d.ts +6 -0
- package/dist/lib/components/ErrorPage.js +9 -0
- package/dist/lib/components/ErrorPage.js.map +1 -0
- package/dist/lib/components/Header.js +21 -3
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +9 -4
- package/dist/lib/components/Heading.js +17 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +5 -0
- package/dist/lib/components/InlineCode.js +4 -0
- package/dist/lib/components/InlineCode.js.map +1 -0
- package/dist/lib/components/Layout.js +4 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/NotFoundPage.d.ts +1 -0
- package/dist/lib/components/NotFoundPage.js +12 -0
- package/dist/lib/components/NotFoundPage.js.map +1 -0
- package/dist/lib/components/SlotletProvider.d.ts +9 -0
- package/dist/lib/components/SlotletProvider.js +11 -0
- package/dist/lib/components/SlotletProvider.js.map +1 -0
- package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
- package/dist/lib/components/SyntaxHighlight.js +24 -22
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js +5 -1
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
- package/dist/lib/components/context/DevPortalProvider.js +20 -3
- package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +32 -3
- package/dist/lib/components/index.js +21 -3
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigation.js +3 -2
- package/dist/lib/components/navigation/SideNavigation.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationCategory.js +3 -3
- package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationItem.d.ts +0 -4
- package/dist/lib/components/navigation/SideNavigationItem.js +4 -4
- package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/useNavigationCollapsibleState.d.ts +4 -1
- package/dist/lib/components/navigation/useNavigationCollapsibleState.js +17 -5
- package/dist/lib/components/navigation/useNavigationCollapsibleState.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +52 -13
- package/dist/lib/core/DevPortalContext.js +10 -14
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +22 -5
- package/dist/lib/core/plugins.js +3 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.d.ts +3 -0
- package/dist/lib/errors/ErrorAlert.js +8 -0
- package/dist/lib/errors/ErrorAlert.js.map +1 -0
- package/dist/lib/errors/RouterError.d.ts +1 -0
- package/dist/lib/errors/RouterError.js +12 -0
- package/dist/lib/errors/RouterError.js.map +1 -0
- package/dist/lib/errors/ServerError.d.ts +3 -0
- package/dist/lib/errors/ServerError.js +6 -0
- package/dist/lib/errors/ServerError.js.map +1 -0
- package/dist/lib/errors/TopLevelError.d.ts +2 -0
- package/dist/lib/errors/TopLevelError.js +7 -0
- package/dist/lib/errors/TopLevelError.js.map +1 -0
- package/dist/lib/oas/graphql/index.js +8 -5
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +1 -1
- package/dist/lib/oas/parser/index.js +38 -12
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +2 -2
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +40 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
- package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +4 -5
- package/dist/lib/plugins/{api-key → api-keys}/index.js +12 -20
- package/dist/lib/plugins/api-keys/index.js.map +1 -0
- package/dist/lib/plugins/custom-page/index.d.ts +8 -0
- package/dist/lib/plugins/custom-page/index.js +12 -0
- package/dist/lib/plugins/custom-page/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js +7 -6
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/Toc.js +17 -9
- package/dist/lib/plugins/markdown/Toc.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
- package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +4 -1
- package/dist/lib/plugins/markdown/index.js +3 -7
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +2 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +14 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +17 -5
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +2 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +23 -0
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +3 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +6 -0
- package/dist/lib/plugins/openapi/Route.js +8 -0
- package/dist/lib/plugins/openapi/Route.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListView.js +6 -27
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +22 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +4 -0
- package/dist/lib/plugins/openapi/Sidecar.js +43 -19
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.d.ts +1 -0
- package/dist/lib/plugins/openapi/SidecarBox.js +3 -2
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
- package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +8 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js +18 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
- package/dist/lib/plugins/openapi/client/createServer.js +30 -0
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
- package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
- package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
- package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +5 -0
- package/dist/lib/plugins/openapi/context.js +11 -0
- package/dist/lib/plugins/openapi/context.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -6
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -15
- package/dist/lib/plugins/openapi/graphql/graphql.js +67 -67
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +4 -18
- package/dist/lib/plugins/openapi/index.js +62 -21
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
- package/dist/lib/plugins/openapi/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +4 -5
- package/dist/lib/plugins/openapi/playground/PathParams.js +9 -13
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +26 -14
- package/dist/lib/plugins/openapi/playground/Playground.js +53 -25
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +12 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -3
- package/dist/lib/plugins/openapi/playground/QueryParams.js +21 -12
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +4 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +40 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +5 -9
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/prose.js +4 -0
- package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +1 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +0 -1
- package/dist/lib/plugins/redirect/index.js +3 -4
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +5 -1
- package/dist/lib/ui/Button.js +24 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.js +2 -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/DropdownMenu.d.ts +27 -0
- package/dist/lib/ui/DropdownMenu.js +36 -0
- package/dist/lib/ui/DropdownMenu.js.map +1 -0
- package/dist/lib/ui/Input.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +2 -2
- package/dist/lib/util/MdxComponents.js +7 -5
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/fetchTimeout.d.ts +1 -0
- package/dist/lib/util/fetchTimeout.js +14 -0
- package/dist/lib/util/fetchTimeout.js.map +1 -0
- package/dist/lib/util/groupBy.d.ts +1 -6
- package/dist/lib/util/groupBy.js +10 -8
- package/dist/lib/util/groupBy.js.map +1 -1
- package/dist/lib/util/invariant.d.ts +6 -0
- package/dist/lib/util/invariant.js +21 -0
- package/dist/lib/util/invariant.js.map +1 -0
- package/dist/lib/util/joinPath.js +2 -1
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/logInit.d.ts +1 -0
- package/dist/lib/util/logInit.js +9 -0
- package/dist/lib/util/logInit.js.map +1 -0
- package/dist/lib/util/objectEntries.d.ts +4 -0
- package/dist/lib/util/objectEntries.js +2 -0
- package/dist/lib/util/objectEntries.js.map +1 -0
- package/dist/lib/util/renderIf.d.ts +1 -0
- package/dist/lib/util/renderIf.js +2 -0
- package/dist/lib/util/renderIf.js.map +1 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.d.ts +1 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.js +7 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.js.map +1 -0
- package/dist/vite/build.js +30 -7
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +21 -12
- package/dist/vite/config.js +107 -55
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +6 -3
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.d.ts +2 -1
- package/dist/vite/dev-server.js +44 -15
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +18 -5
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +7 -8
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +9 -20
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +5 -6
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.js +5 -2
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +0 -2
- package/dist/vite/plugin-config.js +2 -13
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-css.d.ts +6 -0
- package/dist/vite/plugin-custom-css.js +54 -0
- package/dist/vite/plugin-custom-css.js.map +1 -0
- package/dist/vite/plugin-docs.js +15 -5
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +3 -1
- package/dist/vite/plugin-mdx.js +5 -5
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.js +1 -1
- package/dist/vite/plugin-metadata.js.map +1 -1
- package/dist/vite/plugin-redirect.js +10 -10
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin.js +3 -5
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +17 -0
- package/dist/vite/prerender.js +79 -0
- package/dist/vite/prerender.js.map +1 -0
- package/lib/AnchorLink-BZcpTwOs.js +705 -0
- package/lib/AnchorLink-BZcpTwOs.js.map +1 -0
- package/lib/AuthenticationPlugin-XS0DoAhE.js +55 -0
- package/lib/AuthenticationPlugin-XS0DoAhE.js.map +1 -0
- package/lib/CategoryHeading-DCmchnA1.js +10 -0
- package/lib/CategoryHeading-DCmchnA1.js.map +1 -0
- package/lib/Combination-C442XfGG.js +2789 -0
- package/lib/Combination-C442XfGG.js.map +1 -0
- package/lib/DevPortalProvider-BWeAysxF.js +1126 -0
- package/lib/DevPortalProvider-BWeAysxF.js.map +1 -0
- package/lib/DeveloperHint-DQVwIery.js +10 -0
- package/lib/DeveloperHint-DQVwIery.js.map +1 -0
- package/lib/Input-3IEt27jb.js +2239 -0
- package/lib/Input-3IEt27jb.js.map +1 -0
- package/lib/Markdown-QsZ-PHET.js +14124 -0
- package/lib/Markdown-QsZ-PHET.js.map +1 -0
- package/lib/MdxPage-CA1WmW14.js +201 -0
- package/lib/MdxPage-CA1WmW14.js.map +1 -0
- package/lib/OperationList-Bl6rGF6_.js +432 -0
- package/lib/OperationList-Bl6rGF6_.js.map +1 -0
- package/lib/Route-BEvxtkD4.js +13 -0
- package/lib/Route-BEvxtkD4.js.map +1 -0
- package/lib/SlotletProvider-B71hNEUL.js +82 -0
- package/lib/SlotletProvider-B71hNEUL.js.map +1 -0
- package/lib/Spinner-Coi7ORUV.js +244 -0
- package/lib/Spinner-Coi7ORUV.js.map +1 -0
- package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
- package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
- package/lib/assets/index-BPdJm2ty.js +1 -0
- package/lib/assets/index-BPdJm2ty.js.map +1 -0
- package/lib/assets/{worker-BCcpCNJ7.js → worker-CyHZIIfE.js} +10727 -10300
- package/lib/assets/worker-CyHZIIfE.js.map +1 -0
- package/lib/index-BH-Ub36F.js +124 -0
- package/lib/index-BH-Ub36F.js.map +1 -0
- package/lib/index-BlnQp2oR.js +5950 -0
- package/lib/index-BlnQp2oR.js.map +1 -0
- package/lib/index-Dt-pU7Vu.js +916 -0
- package/lib/index-Dt-pU7Vu.js.map +1 -0
- package/lib/index-pI9JkN46.js +4765 -0
- package/lib/index-pI9JkN46.js.map +1 -0
- package/lib/jsx-runtime-CJBdjYYx.js +1526 -0
- package/lib/jsx-runtime-CJBdjYYx.js.map +1 -0
- package/lib/prism-bash.min-DadFsM4Z.js +1 -0
- package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
- package/lib/prism-csharp.min-Yizuc34Y.js +1 -0
- package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
- package/lib/prism-java.min-d5iT_mOd.js +1 -0
- package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
- package/lib/prism-json.min-B1GJqK1k.js +1 -0
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js +1 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
- package/lib/prism-php.min-o7FpoMP_.js +1 -0
- package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
- package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
- package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
- package/lib/router-BiRCp01d.js +2971 -0
- package/lib/router-BiRCp01d.js.map +1 -0
- package/lib/slugify-CiPVjteN.js +28 -0
- package/lib/slugify-CiPVjteN.js.map +1 -0
- package/lib/state-DsXXkBLH.js +288 -0
- package/lib/state-DsXXkBLH.js.map +1 -0
- package/lib/{urql-DMlBWUKL.js → urql-DrBfkb92.js} +2 -2
- package/lib/urql-DrBfkb92.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +31 -20
- package/lib/zudoku.auth-auth0.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +59 -29
- package/lib/zudoku.auth-clerk.js.map +1 -0
- package/lib/zudoku.auth-openid.js +740 -573
- package/lib/zudoku.auth-openid.js.map +1 -0
- package/lib/zudoku.components.js +1854 -535
- package/lib/zudoku.components.js.map +1 -0
- package/lib/zudoku.openapi-worker.js +15035 -146
- package/lib/zudoku.openapi-worker.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +303 -0
- package/lib/zudoku.plugin-api-keys.js.map +1 -0
- package/lib/zudoku.plugin-custom-page.js +13 -0
- package/lib/zudoku.plugin-custom-page.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +48 -0
- package/lib/zudoku.plugin-markdown.js.map +1 -0
- package/lib/zudoku.plugin-openapi.js +12 -0
- package/lib/zudoku.plugin-openapi.js.map +1 -0
- package/lib/zudoku.plugin-redirect.js +11 -0
- package/lib/zudoku.plugin-redirect.js.map +1 -0
- package/package.json +60 -25
- package/src/app/App.tsx +0 -41
- package/src/app/demo-cdn.html +26 -0
- package/src/app/demo.html +18 -0
- package/src/app/demo.tsx +45 -0
- package/src/app/entry.client.tsx +47 -0
- package/src/app/entry.server.tsx +160 -0
- package/src/app/main.css +85 -5
- package/src/app/main.tsx +85 -15
- package/src/app/standalone.html +20 -0
- package/src/app/standalone.tsx +51 -0
- package/src/app/tailwind.ts +2 -6
- package/src/lib/authentication/AuthenticationPlugin.tsx +38 -0
- package/src/lib/authentication/authentication.ts +6 -12
- package/src/lib/authentication/components/SignIn.tsx +15 -0
- package/src/lib/authentication/components/SignOut.tsx +13 -0
- package/src/lib/authentication/components/SignUp.tsx +11 -0
- package/src/lib/authentication/hook.ts +2 -2
- package/src/lib/authentication/providers/auth0.tsx +16 -6
- package/src/lib/authentication/providers/clerk.tsx +63 -31
- package/src/lib/authentication/providers/openid.tsx +105 -34
- package/src/lib/authentication/state.ts +1 -1
- package/src/lib/components/Bootstrap.tsx +44 -0
- package/src/lib/components/DevPortal.tsx +88 -53
- package/src/lib/components/DeveloperHint.tsx +25 -0
- package/src/lib/components/ErrorPage.tsx +28 -0
- package/src/lib/components/Header.tsx +103 -30
- package/src/lib/components/Heading.tsx +26 -7
- package/src/lib/components/InlineCode.tsx +19 -0
- package/src/lib/components/Layout.tsx +12 -7
- package/src/lib/components/NotFoundPage.tsx +33 -0
- package/src/lib/components/SlotletProvider.tsx +25 -0
- package/src/lib/components/SyntaxHighlight.tsx +53 -44
- package/src/lib/components/TopNavigation.tsx +6 -1
- package/src/lib/components/context/DevPortalProvider.ts +24 -4
- package/src/lib/components/index.ts +25 -3
- package/src/lib/components/navigation/SideNavigation.tsx +3 -0
- package/src/lib/components/navigation/SideNavigationCategory.tsx +5 -9
- package/src/lib/components/navigation/SideNavigationItem.tsx +5 -9
- package/src/lib/components/navigation/useNavigationCollapsibleState.ts +21 -6
- package/src/lib/core/DevPortalContext.ts +64 -28
- package/src/lib/core/plugins.ts +37 -6
- package/src/lib/errors/ErrorAlert.tsx +21 -0
- package/src/lib/errors/RouterError.tsx +13 -0
- package/src/lib/errors/ServerError.tsx +5 -0
- package/src/lib/errors/TopLevelError.tsx +8 -0
- package/src/lib/oas/graphql/index.ts +11 -6
- package/src/lib/oas/parser/index.ts +41 -20
- package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -2
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
- package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +21 -9
- package/src/lib/plugins/{api-key → api-keys}/index.tsx +17 -41
- package/src/lib/plugins/custom-page/index.tsx +22 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +51 -34
- package/src/lib/plugins/markdown/Toc.tsx +53 -40
- package/src/lib/plugins/markdown/generateRoutes.tsx +16 -6
- package/src/lib/plugins/markdown/index.tsx +10 -7
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -16
- package/src/lib/plugins/openapi/OperationList.tsx +46 -10
- package/src/lib/plugins/openapi/OperationListItem.tsx +68 -42
- package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +39 -0
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -15
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -2
- package/src/lib/plugins/openapi/Route.tsx +21 -0
- package/src/lib/plugins/openapi/SchemaListView.tsx +23 -192
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +116 -0
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +62 -28
- package/src/lib/plugins/openapi/SidecarBox.tsx +13 -2
- package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
- package/src/lib/plugins/openapi/StaggeredRender.tsx +31 -0
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
- package/src/lib/plugins/openapi/client/createServer.ts +33 -0
- package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -2
- package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
- package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
- package/src/lib/plugins/openapi/context.tsx +16 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +8 -8
- package/src/lib/plugins/openapi/graphql/graphql.ts +80 -80
- package/src/lib/plugins/openapi/index.tsx +117 -53
- package/src/lib/plugins/openapi/interfaces.ts +9 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +76 -50
- package/src/lib/plugins/openapi/playground/Playground.tsx +239 -229
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +40 -0
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +107 -66
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +76 -0
- package/src/lib/plugins/openapi/playground/createUrl.ts +12 -15
- package/src/lib/plugins/openapi/util/prose.ts +7 -0
- package/src/lib/plugins/openapi-worker.ts +1 -1
- package/src/lib/plugins/redirect/index.tsx +3 -4
- package/src/lib/ui/Button.tsx +32 -2
- package/src/lib/ui/Callout.tsx +4 -4
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/DropdownMenu.tsx +199 -0
- package/src/lib/util/MdxComponents.tsx +7 -15
- package/src/lib/util/fetchTimeout.tsx +21 -0
- package/src/lib/util/groupBy.ts +7 -12
- package/src/lib/util/invariant.ts +26 -0
- package/src/lib/util/joinPath.tsx +2 -1
- package/src/lib/util/logInit.ts +9 -0
- package/src/lib/util/objectEntries.ts +5 -0
- package/src/lib/util/renderIf.ts +4 -0
- package/src/lib/util/requestIdleCallbackPolyfill.ts +6 -0
- package/dist/lib/authentication/Callback.d.ts +0 -3
- package/dist/lib/authentication/Callback.js +0 -34
- package/dist/lib/authentication/Callback.js.map +0 -1
- package/dist/lib/components/Input.js.map +0 -1
- package/dist/lib/components/Link.d.ts +0 -1
- package/dist/lib/components/Link.js +0 -2
- package/dist/lib/components/Link.js.map +0 -1
- package/dist/lib/components/Router.d.ts +0 -4
- package/dist/lib/components/Router.js +0 -20
- package/dist/lib/components/Router.js.map +0 -1
- package/dist/lib/core/helmet.d.ts +0 -4
- package/dist/lib/core/helmet.js +0 -5
- package/dist/lib/core/helmet.js.map +0 -1
- package/dist/lib/core/icons.d.ts +0 -1
- package/dist/lib/core/icons.js +0 -2
- package/dist/lib/core/icons.js.map +0 -1
- package/dist/lib/core/router.d.ts +0 -1
- package/dist/lib/core/router.js +0 -2
- package/dist/lib/core/router.js.map +0 -1
- package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
- package/dist/lib/plugins/api-key/index.js.map +0 -1
- package/dist/lib/plugins/index.d.ts +0 -4
- package/dist/lib/plugins/index.js +0 -5
- package/dist/lib/plugins/index.js.map +0 -1
- package/dist/lib/plugins/openapi/MakeRequest.js +0 -43
- package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
- package/dist/lib/plugins/openapi/Select.js +0 -5
- package/dist/lib/plugins/openapi/Select.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
- package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
- package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
- package/dist/lib/ui/button-variants.d.ts +0 -4
- package/dist/lib/ui/button-variants.js +0 -24
- package/dist/lib/ui/button-variants.js.map +0 -1
- package/dist/vite/common.d.ts +0 -1
- package/dist/vite/common.js +0 -5
- package/dist/vite/common.js.map +0 -1
- package/dist/vite/plugin-html.d.ts +0 -3
- package/dist/vite/plugin-html.js +0 -47
- package/dist/vite/plugin-html.js.map +0 -1
- package/dist/vite/plugin-openapi-worker.d.ts +0 -4
- package/dist/vite/plugin-openapi-worker.js +0 -28
- package/dist/vite/plugin-openapi-worker.js.map +0 -1
- package/lib/Spinner-BewqqUU-.js +0 -8413
- package/lib/clerk-Wslx_mPo.js +0 -19685
- package/lib/index-PyGcnQFX.js +0 -3462
- package/lib/loglevel-CoH7VSwE.js +0 -152
- package/lib/state-2Hu1renZ.js +0 -313
- package/lib/zudoku.plugins.js +0 -19902
- package/src/lib/authentication/Callback.tsx +0 -60
- package/src/lib/components/Link.tsx +0 -1
- package/src/lib/components/Router.tsx +0 -28
- package/src/lib/core/helmet.ts +0 -5
- package/src/lib/core/icons.tsx +0 -1
- package/src/lib/core/router.tsx +0 -1
- package/src/lib/plugins/index.ts +0 -4
- package/src/lib/plugins/openapi/MakeRequest.tsx +0 -63
- package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
- package/src/lib/ui/button-variants.ts +0 -31
- /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.d.ts +0 -0
- /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
- /package/dist/lib/{components → ui}/Input.d.ts +0 -0
- /package/dist/lib/{components → ui}/Input.js +0 -0
- /package/src/lib/{components → ui}/Input.tsx +0 -0
package/lib/zudoku.components.js
CHANGED
|
@@ -1,636 +1,1996 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ir = Object.defineProperty;
|
|
2
|
+
var dt = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
set _(
|
|
10
|
-
|
|
5
|
+
var cr = (t, e, n) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var A = (t, e, n) => cr(t, typeof e != "symbol" ? e + "" : e, n), ht = (t, e, n) => e.has(t) || dt("Cannot " + n);
|
|
7
|
+
var h = (t, e, n) => (ht(t, e, "read from private field"), n ? n.call(t) : e.get(t)), O = (t, e, n) => e.has(t) ? dt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), b = (t, e, n, r) => (ht(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
8
|
+
var Ce = (t, e, n, r) => ({
|
|
9
|
+
set _(a) {
|
|
10
|
+
b(t, e, a, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return h(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { c as
|
|
21
|
-
|
|
16
|
+
import { H as _t, a as Ge, M as ur, A as lr, u as dr } from "./AnchorLink-BZcpTwOs.js";
|
|
17
|
+
import { d as hr, R as pr, N as $e, L as Ee } from "./index-Dt-pU7Vu.js";
|
|
18
|
+
import { E as Et, S as fr, a as Se, R as mr } from "./SlotletProvider-B71hNEUL.js";
|
|
19
|
+
import { j as o, d as gr, u as J, a as vr, b as xr, O as St } from "./jsx-runtime-CJBdjYYx.js";
|
|
20
|
+
import { M as yr, c as wr, a as jt, b as Nt, A as Mr, u as fe, h as br, d as y, e as Cr, F as Pr, D as Rr, C as _r, P as ie, f as qe, g as Er, i as Dt, R as Sr, S as jr, j as Nr, k as Dr, l as It, m as Ir, n as je, o as At, p as Ar, B as Be } from "./Combination-C442XfGG.js";
|
|
21
|
+
import { c as me, a as P, C as Or, b as Tr, u as kr, M as Fr, T as Lr, V as Kr, d as He, e as $r, f as Br } from "./Markdown-QsZ-PHET.js";
|
|
22
|
+
import * as u from "react";
|
|
23
|
+
import Qr, { StrictMode as Ot, createContext as Tt, Component as Ur, createElement as pt, isValidElement as Gr, memo as kt, useMemo as Le, useState as le, useContext as qr, useRef as ge, useEffect as W, Fragment as Hr, forwardRef as zr, Suspense as Vr } from "react";
|
|
24
|
+
import { g as ze } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
|
+
import { r as Yr } from "./router-BiRCp01d.js";
|
|
26
|
+
import { S as Qe, R as Ft, T as Lt, C as Kt } from "./index-BH-Ub36F.js";
|
|
27
|
+
import { S as $t, h as Bt, Q as Xr, n as j, m as ft, a as mt, b as Q, e as Wr, c as Jr, d as Zr, f as ea, o as gt, r as vt, g as ta, i as xt, p as yt, s as na, u as Ve, j as ra, D as aa, k as Ye, l as wt, q as Qt, t as oa, v as sa, w as ia } from "./DevPortalProvider-BWeAysxF.js";
|
|
28
|
+
import { c as Ut, P as Ie, R as ca, I as ua, S as la } from "./Spinner-Coi7ORUV.js";
|
|
29
|
+
/**
|
|
30
|
+
* @license lucide-react v0.378.0 - ISC
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the ISC license.
|
|
33
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/
|
|
35
|
+
const Xe = me("ChevronRight", [
|
|
36
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
37
|
+
]);
|
|
38
|
+
/**
|
|
39
|
+
* @license lucide-react v0.378.0 - ISC
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the ISC license.
|
|
42
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
const da = me("Dot", [
|
|
45
|
+
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
|
46
|
+
]);
|
|
47
|
+
/**
|
|
48
|
+
* @license lucide-react v0.378.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/
|
|
53
|
+
const ha = me("ExternalLink", [
|
|
54
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
55
|
+
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
56
|
+
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
57
|
+
]);
|
|
58
|
+
/**
|
|
59
|
+
* @license lucide-react v0.378.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/
|
|
64
|
+
const pa = me("MoonStar", [
|
|
65
|
+
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
66
|
+
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
67
|
+
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
68
|
+
]);
|
|
69
|
+
/**
|
|
70
|
+
* @license lucide-react v0.378.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/
|
|
75
|
+
const fa = me("Sun", [
|
|
76
|
+
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
77
|
+
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
78
|
+
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
79
|
+
["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
|
|
80
|
+
["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
|
|
81
|
+
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
82
|
+
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
83
|
+
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
84
|
+
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
85
|
+
]);
|
|
86
|
+
function ma({ error: t }) {
|
|
87
|
+
return /* @__PURE__ */ o.jsx(Et, { error: t });
|
|
88
|
+
}
|
|
89
|
+
var ve = {};
|
|
90
|
+
const ga = /* @__PURE__ */ ze(Yr), va = /* @__PURE__ */ ze(gr), xa = /* @__PURE__ */ ze(hr);
|
|
91
|
+
Object.defineProperty(ve, "__esModule", { value: !0 });
|
|
92
|
+
var ya = Qr, K = ga, We = va, U = xa;
|
|
93
|
+
function wa(t) {
|
|
94
|
+
if (t && t.__esModule) return t;
|
|
95
|
+
var e = /* @__PURE__ */ Object.create(null);
|
|
96
|
+
return t && Object.keys(t).forEach(function(n) {
|
|
97
|
+
if (n !== "default") {
|
|
98
|
+
var r = Object.getOwnPropertyDescriptor(t, n);
|
|
99
|
+
Object.defineProperty(e, n, r.get ? r : {
|
|
100
|
+
enumerable: !0,
|
|
101
|
+
get: function() {
|
|
102
|
+
return t[n];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}), e.default = t, Object.freeze(e);
|
|
107
|
+
}
|
|
108
|
+
var F = /* @__PURE__ */ wa(ya);
|
|
109
|
+
function Ma({
|
|
110
|
+
basename: t,
|
|
111
|
+
children: e,
|
|
112
|
+
location: n = "/",
|
|
113
|
+
future: r
|
|
114
|
+
}) {
|
|
115
|
+
typeof n == "string" && (n = U.parsePath(n));
|
|
116
|
+
let a = K.Action.Pop, s = {
|
|
117
|
+
pathname: n.pathname || "/",
|
|
118
|
+
search: n.search || "",
|
|
119
|
+
hash: n.hash || "",
|
|
120
|
+
state: n.state != null ? n.state : null,
|
|
121
|
+
key: n.key || "default"
|
|
122
|
+
}, i = Gt();
|
|
123
|
+
return /* @__PURE__ */ F.createElement(U.Router, {
|
|
124
|
+
basename: t,
|
|
125
|
+
children: e,
|
|
126
|
+
location: s,
|
|
127
|
+
navigationType: a,
|
|
128
|
+
navigator: i,
|
|
129
|
+
future: r,
|
|
130
|
+
static: !0
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
function ba({
|
|
134
|
+
context: t,
|
|
135
|
+
router: e,
|
|
136
|
+
hydrate: n = !0,
|
|
137
|
+
nonce: r
|
|
138
|
+
}) {
|
|
139
|
+
e && t || (process.env.NODE_ENV !== "production" ? K.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : K.UNSAFE_invariant(!1));
|
|
140
|
+
let a = {
|
|
141
|
+
router: e,
|
|
142
|
+
navigator: Gt(),
|
|
143
|
+
static: !0,
|
|
144
|
+
staticContext: t,
|
|
145
|
+
basename: t.basename || "/"
|
|
146
|
+
}, s = /* @__PURE__ */ new Map(), i = "";
|
|
147
|
+
if (n !== !1) {
|
|
148
|
+
let l = {
|
|
149
|
+
loaderData: t.loaderData,
|
|
150
|
+
actionData: t.actionData,
|
|
151
|
+
errors: Pa(t.errors)
|
|
152
|
+
};
|
|
153
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Na(JSON.stringify(JSON.stringify(l)))});`;
|
|
154
|
+
}
|
|
155
|
+
let {
|
|
156
|
+
state: c
|
|
157
|
+
} = a.router;
|
|
158
|
+
return /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement(U.UNSAFE_DataRouterContext.Provider, {
|
|
159
|
+
value: a
|
|
160
|
+
}, /* @__PURE__ */ F.createElement(U.UNSAFE_DataRouterStateContext.Provider, {
|
|
161
|
+
value: c
|
|
162
|
+
}, /* @__PURE__ */ F.createElement(U.UNSAFE_FetchersContext.Provider, {
|
|
163
|
+
value: s
|
|
164
|
+
}, /* @__PURE__ */ F.createElement(U.UNSAFE_ViewTransitionContext.Provider, {
|
|
165
|
+
value: {
|
|
166
|
+
isTransitioning: !1
|
|
167
|
+
}
|
|
168
|
+
}, /* @__PURE__ */ F.createElement(U.Router, {
|
|
169
|
+
basename: a.basename,
|
|
170
|
+
location: c.location,
|
|
171
|
+
navigationType: c.historyAction,
|
|
172
|
+
navigator: a.navigator,
|
|
173
|
+
static: a.static,
|
|
174
|
+
future: {
|
|
175
|
+
v7_relativeSplatPath: e.future.v7_relativeSplatPath
|
|
176
|
+
}
|
|
177
|
+
}, /* @__PURE__ */ F.createElement(Ca, {
|
|
178
|
+
routes: e.routes,
|
|
179
|
+
future: e.future,
|
|
180
|
+
state: c
|
|
181
|
+
})))))), i ? /* @__PURE__ */ F.createElement("script", {
|
|
182
|
+
suppressHydrationWarning: !0,
|
|
183
|
+
nonce: r,
|
|
184
|
+
dangerouslySetInnerHTML: {
|
|
185
|
+
__html: i
|
|
186
|
+
}
|
|
187
|
+
}) : null);
|
|
188
|
+
}
|
|
189
|
+
function Ca({
|
|
190
|
+
routes: t,
|
|
191
|
+
future: e,
|
|
192
|
+
state: n
|
|
193
|
+
}) {
|
|
194
|
+
return We.UNSAFE_useRoutesImpl(t, void 0, n, e);
|
|
195
|
+
}
|
|
196
|
+
function Pa(t) {
|
|
197
|
+
if (!t) return null;
|
|
198
|
+
let e = Object.entries(t), n = {};
|
|
199
|
+
for (let [r, a] of e)
|
|
200
|
+
K.isRouteErrorResponse(a) ? n[r] = {
|
|
201
|
+
...a,
|
|
202
|
+
__type: "RouteErrorResponse"
|
|
203
|
+
} : a instanceof Error ? n[r] = {
|
|
204
|
+
message: a.message,
|
|
205
|
+
__type: "Error",
|
|
206
|
+
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
207
|
+
// can re-create the same type during hydration.
|
|
208
|
+
...a.name !== "Error" ? {
|
|
209
|
+
__subType: a.name
|
|
210
|
+
} : {}
|
|
211
|
+
} : n[r] = a;
|
|
212
|
+
return n;
|
|
213
|
+
}
|
|
214
|
+
function Gt() {
|
|
215
|
+
return {
|
|
216
|
+
createHref: qt,
|
|
217
|
+
encodeLocation: Ht,
|
|
218
|
+
push(t) {
|
|
219
|
+
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(t)})\` somewhere in your app.`);
|
|
220
|
+
},
|
|
221
|
+
replace(t) {
|
|
222
|
+
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(t)}, { replace: true })\` somewhere in your app.`);
|
|
223
|
+
},
|
|
224
|
+
go(t) {
|
|
225
|
+
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(${t})\` somewhere in your app.`);
|
|
226
|
+
},
|
|
227
|
+
back() {
|
|
228
|
+
throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
|
|
229
|
+
},
|
|
230
|
+
forward() {
|
|
231
|
+
throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
function Ra(t, e) {
|
|
236
|
+
return K.createStaticHandler(t, {
|
|
237
|
+
...e,
|
|
238
|
+
mapRouteProperties: We.UNSAFE_mapRouteProperties
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
function _a(t, e, n = {}) {
|
|
242
|
+
let r = {}, a = K.UNSAFE_convertRoutesToDataRoutes(t, We.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((c) => {
|
|
243
|
+
let l = r[c.route.id] || c.route;
|
|
244
|
+
return {
|
|
245
|
+
...c,
|
|
246
|
+
route: l
|
|
247
|
+
};
|
|
248
|
+
}), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
|
|
249
|
+
return {
|
|
250
|
+
get basename() {
|
|
251
|
+
return e.basename;
|
|
252
|
+
},
|
|
253
|
+
get future() {
|
|
254
|
+
var c, l;
|
|
255
|
+
return {
|
|
256
|
+
v7_fetcherPersist: !1,
|
|
257
|
+
v7_normalizeFormMethod: !1,
|
|
258
|
+
v7_partialHydration: ((c = n.future) == null ? void 0 : c.v7_partialHydration) === !0,
|
|
259
|
+
v7_prependBasename: !1,
|
|
260
|
+
v7_relativeSplatPath: ((l = n.future) == null ? void 0 : l.v7_relativeSplatPath) === !0,
|
|
261
|
+
v7_skipActionErrorRevalidation: !1
|
|
262
|
+
};
|
|
263
|
+
},
|
|
264
|
+
get state() {
|
|
265
|
+
return {
|
|
266
|
+
historyAction: K.Action.Pop,
|
|
267
|
+
location: e.location,
|
|
268
|
+
matches: s,
|
|
269
|
+
loaderData: e.loaderData,
|
|
270
|
+
actionData: e.actionData,
|
|
271
|
+
errors: e.errors,
|
|
272
|
+
initialized: !0,
|
|
273
|
+
navigation: K.IDLE_NAVIGATION,
|
|
274
|
+
restoreScrollPosition: null,
|
|
275
|
+
preventScrollReset: !1,
|
|
276
|
+
revalidation: "idle",
|
|
277
|
+
fetchers: /* @__PURE__ */ new Map(),
|
|
278
|
+
blockers: /* @__PURE__ */ new Map()
|
|
279
|
+
};
|
|
280
|
+
},
|
|
281
|
+
get routes() {
|
|
282
|
+
return a;
|
|
283
|
+
},
|
|
284
|
+
get window() {
|
|
285
|
+
},
|
|
286
|
+
initialize() {
|
|
287
|
+
throw i("initialize");
|
|
288
|
+
},
|
|
289
|
+
subscribe() {
|
|
290
|
+
throw i("subscribe");
|
|
291
|
+
},
|
|
292
|
+
enableScrollRestoration() {
|
|
293
|
+
throw i("enableScrollRestoration");
|
|
294
|
+
},
|
|
295
|
+
navigate() {
|
|
296
|
+
throw i("navigate");
|
|
297
|
+
},
|
|
298
|
+
fetch() {
|
|
299
|
+
throw i("fetch");
|
|
300
|
+
},
|
|
301
|
+
revalidate() {
|
|
302
|
+
throw i("revalidate");
|
|
303
|
+
},
|
|
304
|
+
createHref: qt,
|
|
305
|
+
encodeLocation: Ht,
|
|
306
|
+
getFetcher() {
|
|
307
|
+
return K.IDLE_FETCHER;
|
|
308
|
+
},
|
|
309
|
+
deleteFetcher() {
|
|
310
|
+
throw i("deleteFetcher");
|
|
311
|
+
},
|
|
312
|
+
dispose() {
|
|
313
|
+
throw i("dispose");
|
|
314
|
+
},
|
|
315
|
+
getBlocker() {
|
|
316
|
+
return K.IDLE_BLOCKER;
|
|
317
|
+
},
|
|
318
|
+
deleteBlocker() {
|
|
319
|
+
throw i("deleteBlocker");
|
|
320
|
+
},
|
|
321
|
+
patchRoutes() {
|
|
322
|
+
throw i("patchRoutes");
|
|
323
|
+
},
|
|
324
|
+
_internalFetchControllers: /* @__PURE__ */ new Map(),
|
|
325
|
+
_internalActiveDeferreds: /* @__PURE__ */ new Map(),
|
|
326
|
+
_internalSetRoutes() {
|
|
327
|
+
throw i("_internalSetRoutes");
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
function qt(t) {
|
|
332
|
+
return typeof t == "string" ? t : U.createPath(t);
|
|
333
|
+
}
|
|
334
|
+
function Ht(t) {
|
|
335
|
+
let e = typeof t == "string" ? t : U.createPath(t);
|
|
336
|
+
e = e.replace(/ $/, "%20");
|
|
337
|
+
let n = Ea.test(e) ? new URL(e) : new URL(e, "http://localhost");
|
|
338
|
+
return {
|
|
339
|
+
pathname: n.pathname,
|
|
340
|
+
search: n.search,
|
|
341
|
+
hash: n.hash
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
const Ea = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Sa = {
|
|
345
|
+
"&": "\\u0026",
|
|
346
|
+
">": "\\u003e",
|
|
347
|
+
"<": "\\u003c",
|
|
348
|
+
"\u2028": "\\u2028",
|
|
349
|
+
"\u2029": "\\u2029"
|
|
350
|
+
}, ja = /[&><\u2028\u2029]/g;
|
|
351
|
+
function Na(t) {
|
|
352
|
+
return t.replace(ja, (e) => Sa[e]);
|
|
353
|
+
}
|
|
354
|
+
ve.StaticRouter = Ma;
|
|
355
|
+
var Da = ve.StaticRouterProvider = ba;
|
|
356
|
+
ve.createStaticHandler = Ra;
|
|
357
|
+
ve.createStaticRouter = _a;
|
|
358
|
+
const Ia = ({
|
|
359
|
+
router: t,
|
|
360
|
+
hydrate: e = !1
|
|
361
|
+
}) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { children: /* @__PURE__ */ o.jsx(Qe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(pr, { router: t }) }) }) }), Aa = ({
|
|
362
|
+
router: t,
|
|
363
|
+
context: e,
|
|
364
|
+
helmetContext: n
|
|
365
|
+
}) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { context: n, children: /* @__PURE__ */ o.jsx(Da, { router: t, context: e }) }) });
|
|
366
|
+
var L, Ct, Oa = (Ct = class extends $t {
|
|
22
367
|
constructor(e = {}) {
|
|
23
368
|
super();
|
|
24
|
-
|
|
25
|
-
this.config = e,
|
|
369
|
+
O(this, L);
|
|
370
|
+
this.config = e, b(this, L, /* @__PURE__ */ new Map());
|
|
26
371
|
}
|
|
27
|
-
build(e,
|
|
28
|
-
const
|
|
29
|
-
let
|
|
30
|
-
return
|
|
372
|
+
build(e, n, r) {
|
|
373
|
+
const a = n.queryKey, s = n.queryHash ?? Bt(a, n);
|
|
374
|
+
let i = this.get(s);
|
|
375
|
+
return i || (i = new Xr({
|
|
31
376
|
cache: this,
|
|
32
|
-
queryKey:
|
|
33
|
-
queryHash:
|
|
34
|
-
options: e.defaultQueryOptions(
|
|
35
|
-
state:
|
|
36
|
-
defaultOptions: e.getQueryDefaults(
|
|
37
|
-
}), this.add(
|
|
377
|
+
queryKey: a,
|
|
378
|
+
queryHash: s,
|
|
379
|
+
options: e.defaultQueryOptions(n),
|
|
380
|
+
state: r,
|
|
381
|
+
defaultOptions: e.getQueryDefaults(a)
|
|
382
|
+
}), this.add(i)), i;
|
|
38
383
|
}
|
|
39
384
|
add(e) {
|
|
40
|
-
|
|
385
|
+
h(this, L).has(e.queryHash) || (h(this, L).set(e.queryHash, e), this.notify({
|
|
41
386
|
type: "added",
|
|
42
387
|
query: e
|
|
43
388
|
}));
|
|
44
389
|
}
|
|
45
390
|
remove(e) {
|
|
46
|
-
const
|
|
47
|
-
|
|
391
|
+
const n = h(this, L).get(e.queryHash);
|
|
392
|
+
n && (e.destroy(), n === e && h(this, L).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
48
393
|
}
|
|
49
394
|
clear() {
|
|
50
|
-
|
|
395
|
+
j.batch(() => {
|
|
51
396
|
this.getAll().forEach((e) => {
|
|
52
397
|
this.remove(e);
|
|
53
398
|
});
|
|
54
399
|
});
|
|
55
400
|
}
|
|
56
401
|
get(e) {
|
|
57
|
-
return
|
|
402
|
+
return h(this, L).get(e);
|
|
58
403
|
}
|
|
59
404
|
getAll() {
|
|
60
|
-
return [...
|
|
405
|
+
return [...h(this, L).values()];
|
|
61
406
|
}
|
|
62
407
|
find(e) {
|
|
63
|
-
const
|
|
408
|
+
const n = { exact: !0, ...e };
|
|
64
409
|
return this.getAll().find(
|
|
65
|
-
(
|
|
410
|
+
(r) => ft(n, r)
|
|
66
411
|
);
|
|
67
412
|
}
|
|
68
413
|
findAll(e = {}) {
|
|
69
|
-
const
|
|
70
|
-
return Object.keys(e).length > 0 ?
|
|
414
|
+
const n = this.getAll();
|
|
415
|
+
return Object.keys(e).length > 0 ? n.filter((r) => ft(e, r)) : n;
|
|
71
416
|
}
|
|
72
417
|
notify(e) {
|
|
73
|
-
|
|
74
|
-
this.listeners.forEach((
|
|
75
|
-
|
|
418
|
+
j.batch(() => {
|
|
419
|
+
this.listeners.forEach((n) => {
|
|
420
|
+
n(e);
|
|
76
421
|
});
|
|
77
422
|
});
|
|
78
423
|
}
|
|
79
424
|
onFocus() {
|
|
80
|
-
|
|
425
|
+
j.batch(() => {
|
|
81
426
|
this.getAll().forEach((e) => {
|
|
82
427
|
e.onFocus();
|
|
83
428
|
});
|
|
84
429
|
});
|
|
85
430
|
}
|
|
86
431
|
onOnline() {
|
|
87
|
-
|
|
432
|
+
j.batch(() => {
|
|
88
433
|
this.getAll().forEach((e) => {
|
|
89
434
|
e.onOnline();
|
|
90
435
|
});
|
|
91
436
|
});
|
|
92
437
|
}
|
|
93
|
-
},
|
|
438
|
+
}, L = new WeakMap(), Ct), S, pe, Pt, Ta = (Pt = class extends $t {
|
|
94
439
|
constructor(e = {}) {
|
|
95
440
|
super();
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
this.config = e,
|
|
441
|
+
O(this, S);
|
|
442
|
+
O(this, pe);
|
|
443
|
+
this.config = e, b(this, S, /* @__PURE__ */ new Map()), b(this, pe, Date.now());
|
|
99
444
|
}
|
|
100
|
-
build(e,
|
|
101
|
-
const
|
|
445
|
+
build(e, n, r) {
|
|
446
|
+
const a = new yr({
|
|
102
447
|
mutationCache: this,
|
|
103
|
-
mutationId: ++
|
|
104
|
-
options: e.defaultMutationOptions(
|
|
105
|
-
state:
|
|
448
|
+
mutationId: ++Ce(this, pe)._,
|
|
449
|
+
options: e.defaultMutationOptions(n),
|
|
450
|
+
state: r
|
|
106
451
|
});
|
|
107
|
-
return this.add(
|
|
452
|
+
return this.add(a), a;
|
|
108
453
|
}
|
|
109
454
|
add(e) {
|
|
110
|
-
const
|
|
111
|
-
|
|
455
|
+
const n = Pe(e), r = h(this, S).get(n) ?? [];
|
|
456
|
+
r.push(e), h(this, S).set(n, r), this.notify({ type: "added", mutation: e });
|
|
112
457
|
}
|
|
113
458
|
remove(e) {
|
|
114
|
-
var
|
|
115
|
-
const
|
|
116
|
-
if (
|
|
117
|
-
const
|
|
118
|
-
|
|
459
|
+
var r;
|
|
460
|
+
const n = Pe(e);
|
|
461
|
+
if (h(this, S).has(n)) {
|
|
462
|
+
const a = (r = h(this, S).get(n)) == null ? void 0 : r.filter((s) => s !== e);
|
|
463
|
+
a && (a.length === 0 ? h(this, S).delete(n) : h(this, S).set(n, a));
|
|
119
464
|
}
|
|
120
465
|
this.notify({ type: "removed", mutation: e });
|
|
121
466
|
}
|
|
122
467
|
canRun(e) {
|
|
123
|
-
var
|
|
124
|
-
const
|
|
125
|
-
return !
|
|
468
|
+
var r;
|
|
469
|
+
const n = (r = h(this, S).get(Pe(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
|
|
470
|
+
return !n || n === e;
|
|
126
471
|
}
|
|
127
472
|
runNext(e) {
|
|
128
|
-
var
|
|
129
|
-
const
|
|
130
|
-
return (
|
|
473
|
+
var r;
|
|
474
|
+
const n = (r = h(this, S).get(Pe(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
|
|
475
|
+
return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
|
|
131
476
|
}
|
|
132
477
|
clear() {
|
|
133
|
-
|
|
478
|
+
j.batch(() => {
|
|
134
479
|
this.getAll().forEach((e) => {
|
|
135
480
|
this.remove(e);
|
|
136
481
|
});
|
|
137
482
|
});
|
|
138
483
|
}
|
|
139
484
|
getAll() {
|
|
140
|
-
return [...
|
|
485
|
+
return [...h(this, S).values()].flat();
|
|
141
486
|
}
|
|
142
487
|
find(e) {
|
|
143
|
-
const
|
|
488
|
+
const n = { exact: !0, ...e };
|
|
144
489
|
return this.getAll().find(
|
|
145
|
-
(
|
|
490
|
+
(r) => mt(n, r)
|
|
146
491
|
);
|
|
147
492
|
}
|
|
148
493
|
findAll(e = {}) {
|
|
149
|
-
return this.getAll().filter((
|
|
494
|
+
return this.getAll().filter((n) => mt(e, n));
|
|
150
495
|
}
|
|
151
496
|
notify(e) {
|
|
152
|
-
|
|
153
|
-
this.listeners.forEach((
|
|
154
|
-
|
|
497
|
+
j.batch(() => {
|
|
498
|
+
this.listeners.forEach((n) => {
|
|
499
|
+
n(e);
|
|
155
500
|
});
|
|
156
501
|
});
|
|
157
502
|
}
|
|
158
503
|
resumePausedMutations() {
|
|
159
|
-
const e = this.getAll().filter((
|
|
160
|
-
return
|
|
504
|
+
const e = this.getAll().filter((n) => n.state.isPaused);
|
|
505
|
+
return j.batch(
|
|
161
506
|
() => Promise.all(
|
|
162
|
-
e.map((
|
|
507
|
+
e.map((n) => n.continue().catch(Q))
|
|
163
508
|
)
|
|
164
509
|
);
|
|
165
510
|
}
|
|
166
|
-
},
|
|
167
|
-
function
|
|
511
|
+
}, S = new WeakMap(), pe = new WeakMap(), Pt);
|
|
512
|
+
function Pe(t) {
|
|
168
513
|
var e;
|
|
169
514
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
170
515
|
}
|
|
171
|
-
function
|
|
516
|
+
function ka(t) {
|
|
172
517
|
return {
|
|
173
|
-
onFetch: (e,
|
|
174
|
-
const
|
|
175
|
-
var
|
|
176
|
-
const
|
|
177
|
-
let
|
|
178
|
-
const
|
|
179
|
-
Object.defineProperty(
|
|
518
|
+
onFetch: (e, n) => {
|
|
519
|
+
const r = async () => {
|
|
520
|
+
var x, R, N, _, D;
|
|
521
|
+
const a = e.options, s = (N = (R = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : N.direction, i = ((_ = e.state.data) == null ? void 0 : _.pages) || [], c = ((D = e.state.data) == null ? void 0 : D.pageParams) || [], l = { pages: [], pageParams: [] };
|
|
522
|
+
let p = !1;
|
|
523
|
+
const f = (w) => {
|
|
524
|
+
Object.defineProperty(w, "signal", {
|
|
180
525
|
enumerable: !0,
|
|
181
|
-
get: () => (e.signal.aborted ?
|
|
182
|
-
|
|
526
|
+
get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
|
|
527
|
+
p = !0;
|
|
183
528
|
}), e.signal)
|
|
184
529
|
});
|
|
185
|
-
},
|
|
186
|
-
if (
|
|
530
|
+
}, d = Wr(e.options, e.fetchOptions), g = async (w, E, $) => {
|
|
531
|
+
if (p)
|
|
187
532
|
return Promise.reject();
|
|
188
|
-
if (
|
|
189
|
-
return Promise.resolve(
|
|
190
|
-
const
|
|
533
|
+
if (E == null && w.pages.length)
|
|
534
|
+
return Promise.resolve(w);
|
|
535
|
+
const Y = {
|
|
191
536
|
queryKey: e.queryKey,
|
|
192
|
-
pageParam:
|
|
193
|
-
direction:
|
|
537
|
+
pageParam: E,
|
|
538
|
+
direction: $ ? "backward" : "forward",
|
|
194
539
|
meta: e.options.meta
|
|
195
540
|
};
|
|
196
|
-
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
), { maxPages:
|
|
541
|
+
f(Y);
|
|
542
|
+
const ee = await d(
|
|
543
|
+
Y
|
|
544
|
+
), { maxPages: Me } = e.options, X = $ ? Jr : Zr;
|
|
200
545
|
return {
|
|
201
|
-
pages:
|
|
202
|
-
pageParams:
|
|
546
|
+
pages: X(w.pages, ee, Me),
|
|
547
|
+
pageParams: X(w.pageParams, E, Me)
|
|
203
548
|
};
|
|
204
549
|
};
|
|
205
|
-
let
|
|
206
|
-
if (
|
|
207
|
-
const
|
|
208
|
-
pages:
|
|
209
|
-
pageParams:
|
|
210
|
-
},
|
|
211
|
-
|
|
550
|
+
let v;
|
|
551
|
+
if (s && i.length) {
|
|
552
|
+
const w = s === "backward", E = w ? Fa : Mt, $ = {
|
|
553
|
+
pages: i,
|
|
554
|
+
pageParams: c
|
|
555
|
+
}, Y = E(a, $);
|
|
556
|
+
v = await g($, Y, w);
|
|
212
557
|
} else {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
558
|
+
v = await g(
|
|
559
|
+
l,
|
|
560
|
+
c[0] ?? a.initialPageParam
|
|
216
561
|
);
|
|
217
|
-
const
|
|
218
|
-
for (let
|
|
219
|
-
const
|
|
220
|
-
|
|
562
|
+
const w = t ?? i.length;
|
|
563
|
+
for (let E = 1; E < w; E++) {
|
|
564
|
+
const $ = Mt(a, v);
|
|
565
|
+
v = await g(v, $);
|
|
221
566
|
}
|
|
222
567
|
}
|
|
223
|
-
return
|
|
568
|
+
return v;
|
|
224
569
|
};
|
|
225
570
|
e.options.persister ? e.fetchFn = () => {
|
|
226
|
-
var
|
|
227
|
-
return (
|
|
228
|
-
r,
|
|
571
|
+
var a, s;
|
|
572
|
+
return (s = (a = e.options).persister) == null ? void 0 : s.call(
|
|
229
573
|
a,
|
|
574
|
+
r,
|
|
230
575
|
{
|
|
231
576
|
queryKey: e.queryKey,
|
|
232
577
|
meta: e.options.meta,
|
|
233
578
|
signal: e.signal
|
|
234
579
|
},
|
|
235
|
-
|
|
580
|
+
n
|
|
236
581
|
);
|
|
237
|
-
} : e.fetchFn =
|
|
582
|
+
} : e.fetchFn = r;
|
|
238
583
|
}
|
|
239
584
|
};
|
|
240
585
|
}
|
|
241
|
-
function
|
|
242
|
-
const
|
|
586
|
+
function Mt(t, { pages: e, pageParams: n }) {
|
|
587
|
+
const r = e.length - 1;
|
|
243
588
|
return t.getNextPageParam(
|
|
244
|
-
e[
|
|
589
|
+
e[r],
|
|
245
590
|
e,
|
|
246
|
-
|
|
247
|
-
|
|
591
|
+
n[r],
|
|
592
|
+
n
|
|
248
593
|
);
|
|
249
594
|
}
|
|
250
|
-
function
|
|
251
|
-
var
|
|
252
|
-
return (
|
|
595
|
+
function Fa(t, { pages: e, pageParams: n }) {
|
|
596
|
+
var r;
|
|
597
|
+
return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
|
|
253
598
|
t,
|
|
254
599
|
e[0],
|
|
255
600
|
e,
|
|
256
|
-
|
|
257
|
-
|
|
601
|
+
n[0],
|
|
602
|
+
n
|
|
258
603
|
);
|
|
259
604
|
}
|
|
260
|
-
var
|
|
605
|
+
var M, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
|
|
261
606
|
constructor(t = {}) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
607
|
+
O(this, M);
|
|
608
|
+
O(this, q);
|
|
609
|
+
O(this, H);
|
|
610
|
+
O(this, re);
|
|
611
|
+
O(this, ae);
|
|
612
|
+
O(this, z);
|
|
613
|
+
O(this, oe);
|
|
614
|
+
O(this, se);
|
|
615
|
+
b(this, M, t.queryCache || new Oa()), b(this, q, t.mutationCache || new Ta()), b(this, H, t.defaultOptions || {}), b(this, re, /* @__PURE__ */ new Map()), b(this, ae, /* @__PURE__ */ new Map()), b(this, z, 0);
|
|
271
616
|
}
|
|
272
617
|
mount() {
|
|
273
|
-
|
|
274
|
-
t && (await this.resumePausedMutations(),
|
|
275
|
-
})),
|
|
276
|
-
t && (await this.resumePausedMutations(),
|
|
618
|
+
Ce(this, z)._++, h(this, z) === 1 && (b(this, oe, ea.subscribe(async (t) => {
|
|
619
|
+
t && (await this.resumePausedMutations(), h(this, M).onFocus());
|
|
620
|
+
})), b(this, se, gt.subscribe(async (t) => {
|
|
621
|
+
t && (await this.resumePausedMutations(), h(this, M).onOnline());
|
|
277
622
|
})));
|
|
278
623
|
}
|
|
279
624
|
unmount() {
|
|
280
625
|
var t, e;
|
|
281
|
-
|
|
626
|
+
Ce(this, z)._--, h(this, z) === 0 && ((t = h(this, oe)) == null || t.call(this), b(this, oe, void 0), (e = h(this, se)) == null || e.call(this), b(this, se, void 0));
|
|
282
627
|
}
|
|
283
628
|
isFetching(t) {
|
|
284
|
-
return
|
|
629
|
+
return h(this, M).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
285
630
|
}
|
|
286
631
|
isMutating(t) {
|
|
287
|
-
return
|
|
632
|
+
return h(this, q).findAll({ ...t, status: "pending" }).length;
|
|
288
633
|
}
|
|
289
634
|
getQueryData(t) {
|
|
290
|
-
var
|
|
635
|
+
var n;
|
|
291
636
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
292
|
-
return (
|
|
637
|
+
return (n = h(this, M).get(e.queryHash)) == null ? void 0 : n.state.data;
|
|
293
638
|
}
|
|
294
639
|
ensureQueryData(t) {
|
|
295
640
|
const e = this.getQueryData(t.queryKey);
|
|
296
641
|
if (e === void 0)
|
|
297
642
|
return this.fetchQuery(t);
|
|
298
643
|
{
|
|
299
|
-
const
|
|
300
|
-
return t.revalidateIfStale &&
|
|
644
|
+
const n = this.defaultQueryOptions(t), r = h(this, M).build(this, n);
|
|
645
|
+
return t.revalidateIfStale && r.isStaleByTime(vt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
|
|
301
646
|
}
|
|
302
647
|
}
|
|
303
648
|
getQueriesData(t) {
|
|
304
|
-
return
|
|
305
|
-
const
|
|
306
|
-
return [e,
|
|
649
|
+
return h(this, M).findAll(t).map(({ queryKey: e, state: n }) => {
|
|
650
|
+
const r = n.data;
|
|
651
|
+
return [e, r];
|
|
307
652
|
});
|
|
308
653
|
}
|
|
309
|
-
setQueryData(t, e,
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
),
|
|
313
|
-
if (
|
|
314
|
-
return
|
|
315
|
-
}
|
|
316
|
-
setQueriesData(t, e,
|
|
317
|
-
return
|
|
318
|
-
() =>
|
|
319
|
-
|
|
320
|
-
this.setQueryData(
|
|
654
|
+
setQueryData(t, e, n) {
|
|
655
|
+
const r = this.defaultQueryOptions({ queryKey: t }), a = h(this, M).get(
|
|
656
|
+
r.queryHash
|
|
657
|
+
), s = a == null ? void 0 : a.state.data, i = ta(e, s);
|
|
658
|
+
if (i !== void 0)
|
|
659
|
+
return h(this, M).build(this, r).setData(i, { ...n, manual: !0 });
|
|
660
|
+
}
|
|
661
|
+
setQueriesData(t, e, n) {
|
|
662
|
+
return j.batch(
|
|
663
|
+
() => h(this, M).findAll(t).map(({ queryKey: r }) => [
|
|
664
|
+
r,
|
|
665
|
+
this.setQueryData(r, e, n)
|
|
321
666
|
])
|
|
322
667
|
);
|
|
323
668
|
}
|
|
324
669
|
getQueryState(t) {
|
|
325
|
-
var
|
|
670
|
+
var n;
|
|
326
671
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
327
|
-
return (
|
|
672
|
+
return (n = h(this, M).get(e.queryHash)) == null ? void 0 : n.state;
|
|
328
673
|
}
|
|
329
674
|
removeQueries(t) {
|
|
330
|
-
const e =
|
|
331
|
-
|
|
332
|
-
e.findAll(t).forEach((
|
|
333
|
-
e.remove(
|
|
675
|
+
const e = h(this, M);
|
|
676
|
+
j.batch(() => {
|
|
677
|
+
e.findAll(t).forEach((n) => {
|
|
678
|
+
e.remove(n);
|
|
334
679
|
});
|
|
335
680
|
});
|
|
336
681
|
}
|
|
337
682
|
resetQueries(t, e) {
|
|
338
|
-
const
|
|
683
|
+
const n = h(this, M), r = {
|
|
339
684
|
type: "active",
|
|
340
685
|
...t
|
|
341
686
|
};
|
|
342
|
-
return
|
|
343
|
-
|
|
344
|
-
}), this.refetchQueries(
|
|
687
|
+
return j.batch(() => (n.findAll(t).forEach((a) => {
|
|
688
|
+
a.reset();
|
|
689
|
+
}), this.refetchQueries(r, e)));
|
|
345
690
|
}
|
|
346
691
|
cancelQueries(t = {}, e = {}) {
|
|
347
|
-
const
|
|
348
|
-
() =>
|
|
692
|
+
const n = { revert: !0, ...e }, r = j.batch(
|
|
693
|
+
() => h(this, M).findAll(t).map((a) => a.cancel(n))
|
|
349
694
|
);
|
|
350
|
-
return Promise.all(
|
|
695
|
+
return Promise.all(r).then(Q).catch(Q);
|
|
351
696
|
}
|
|
352
697
|
invalidateQueries(t = {}, e = {}) {
|
|
353
|
-
return
|
|
354
|
-
if (
|
|
355
|
-
|
|
698
|
+
return j.batch(() => {
|
|
699
|
+
if (h(this, M).findAll(t).forEach((r) => {
|
|
700
|
+
r.invalidate();
|
|
356
701
|
}), t.refetchType === "none")
|
|
357
702
|
return Promise.resolve();
|
|
358
|
-
const
|
|
703
|
+
const n = {
|
|
359
704
|
...t,
|
|
360
705
|
type: t.refetchType ?? t.type ?? "active"
|
|
361
706
|
};
|
|
362
|
-
return this.refetchQueries(
|
|
707
|
+
return this.refetchQueries(n, e);
|
|
363
708
|
});
|
|
364
709
|
}
|
|
365
710
|
refetchQueries(t = {}, e) {
|
|
366
|
-
const
|
|
711
|
+
const n = {
|
|
367
712
|
...e,
|
|
368
713
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
369
|
-
},
|
|
370
|
-
() =>
|
|
371
|
-
let
|
|
372
|
-
return
|
|
714
|
+
}, r = j.batch(
|
|
715
|
+
() => h(this, M).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
716
|
+
let s = a.fetch(void 0, n);
|
|
717
|
+
return n.throwOnError || (s = s.catch(Q)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
373
718
|
})
|
|
374
719
|
);
|
|
375
|
-
return Promise.all(
|
|
720
|
+
return Promise.all(r).then(Q);
|
|
376
721
|
}
|
|
377
722
|
fetchQuery(t) {
|
|
378
723
|
const e = this.defaultQueryOptions(t);
|
|
379
724
|
e.retry === void 0 && (e.retry = !1);
|
|
380
|
-
const
|
|
381
|
-
return
|
|
382
|
-
|
|
383
|
-
) ?
|
|
725
|
+
const n = h(this, M).build(this, e);
|
|
726
|
+
return n.isStaleByTime(
|
|
727
|
+
vt(e.staleTime, n)
|
|
728
|
+
) ? n.fetch(e) : Promise.resolve(n.state.data);
|
|
384
729
|
}
|
|
385
730
|
prefetchQuery(t) {
|
|
386
|
-
return this.fetchQuery(t).then(
|
|
731
|
+
return this.fetchQuery(t).then(Q).catch(Q);
|
|
387
732
|
}
|
|
388
733
|
fetchInfiniteQuery(t) {
|
|
389
|
-
return t.behavior =
|
|
734
|
+
return t.behavior = ka(t.pages), this.fetchQuery(t);
|
|
390
735
|
}
|
|
391
736
|
prefetchInfiniteQuery(t) {
|
|
392
|
-
return this.fetchInfiniteQuery(t).then(
|
|
737
|
+
return this.fetchInfiniteQuery(t).then(Q).catch(Q);
|
|
393
738
|
}
|
|
394
739
|
resumePausedMutations() {
|
|
395
|
-
return
|
|
740
|
+
return gt.isOnline() ? h(this, q).resumePausedMutations() : Promise.resolve();
|
|
396
741
|
}
|
|
397
742
|
getQueryCache() {
|
|
398
|
-
return
|
|
743
|
+
return h(this, M);
|
|
399
744
|
}
|
|
400
745
|
getMutationCache() {
|
|
401
|
-
return
|
|
746
|
+
return h(this, q);
|
|
402
747
|
}
|
|
403
748
|
getDefaultOptions() {
|
|
404
|
-
return
|
|
749
|
+
return h(this, H);
|
|
405
750
|
}
|
|
406
751
|
setDefaultOptions(t) {
|
|
407
|
-
|
|
752
|
+
b(this, H, t);
|
|
408
753
|
}
|
|
409
754
|
setQueryDefaults(t, e) {
|
|
410
|
-
|
|
755
|
+
h(this, re).set(xt(t), {
|
|
411
756
|
queryKey: t,
|
|
412
757
|
defaultOptions: e
|
|
413
758
|
});
|
|
414
759
|
}
|
|
415
760
|
getQueryDefaults(t) {
|
|
416
|
-
const e = [...
|
|
417
|
-
let
|
|
418
|
-
return e.forEach((
|
|
419
|
-
|
|
420
|
-
}),
|
|
761
|
+
const e = [...h(this, re).values()];
|
|
762
|
+
let n = {};
|
|
763
|
+
return e.forEach((r) => {
|
|
764
|
+
yt(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
765
|
+
}), n;
|
|
421
766
|
}
|
|
422
767
|
setMutationDefaults(t, e) {
|
|
423
|
-
|
|
768
|
+
h(this, ae).set(xt(t), {
|
|
424
769
|
mutationKey: t,
|
|
425
770
|
defaultOptions: e
|
|
426
771
|
});
|
|
427
772
|
}
|
|
428
773
|
getMutationDefaults(t) {
|
|
429
|
-
const e = [...
|
|
430
|
-
let
|
|
431
|
-
return e.forEach((
|
|
432
|
-
|
|
433
|
-
}),
|
|
774
|
+
const e = [...h(this, ae).values()];
|
|
775
|
+
let n = {};
|
|
776
|
+
return e.forEach((r) => {
|
|
777
|
+
yt(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
778
|
+
}), n;
|
|
434
779
|
}
|
|
435
780
|
defaultQueryOptions(t) {
|
|
436
781
|
if (t._defaulted)
|
|
437
782
|
return t;
|
|
438
783
|
const e = {
|
|
439
|
-
...
|
|
784
|
+
...h(this, H).queries,
|
|
440
785
|
...this.getQueryDefaults(t.queryKey),
|
|
441
786
|
...t,
|
|
442
787
|
_defaulted: !0
|
|
443
788
|
};
|
|
444
|
-
return e.queryHash || (e.queryHash =
|
|
789
|
+
return e.queryHash || (e.queryHash = Bt(
|
|
445
790
|
e.queryKey,
|
|
446
791
|
e
|
|
447
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn ===
|
|
792
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === na && (e.enabled = !1), e;
|
|
448
793
|
}
|
|
449
794
|
defaultMutationOptions(t) {
|
|
450
795
|
return t != null && t._defaulted ? t : {
|
|
451
|
-
...
|
|
796
|
+
...h(this, H).mutations,
|
|
452
797
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
453
798
|
...t,
|
|
454
799
|
_defaulted: !0
|
|
455
800
|
};
|
|
456
801
|
}
|
|
457
802
|
clear() {
|
|
458
|
-
|
|
803
|
+
h(this, M).clear(), h(this, q).clear();
|
|
459
804
|
}
|
|
460
|
-
},
|
|
461
|
-
const
|
|
462
|
-
|
|
805
|
+
}, M = new WeakMap(), q = new WeakMap(), H = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), z = new WeakMap(), oe = new WeakMap(), se = new WeakMap(), Rt);
|
|
806
|
+
const Ka = Tt(null), Ke = {
|
|
807
|
+
didCatch: !1,
|
|
808
|
+
error: null
|
|
809
|
+
};
|
|
810
|
+
class $a extends Ur {
|
|
463
811
|
constructor(e) {
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
812
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ke;
|
|
813
|
+
}
|
|
814
|
+
static getDerivedStateFromError(e) {
|
|
815
|
+
return {
|
|
816
|
+
didCatch: !0,
|
|
817
|
+
error: e
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
resetErrorBoundary() {
|
|
821
|
+
const {
|
|
822
|
+
error: e
|
|
823
|
+
} = this.state;
|
|
824
|
+
if (e !== null) {
|
|
825
|
+
for (var n, r, a = arguments.length, s = new Array(a), i = 0; i < a; i++)
|
|
826
|
+
s[i] = arguments[i];
|
|
827
|
+
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
828
|
+
args: s,
|
|
829
|
+
reason: "imperative-api"
|
|
830
|
+
}), this.setState(Ke);
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
componentDidCatch(e, n) {
|
|
834
|
+
var r, a;
|
|
835
|
+
(r = (a = this.props).onError) === null || r === void 0 || r.call(a, e, n);
|
|
836
|
+
}
|
|
837
|
+
componentDidUpdate(e, n) {
|
|
838
|
+
const {
|
|
839
|
+
didCatch: r
|
|
840
|
+
} = this.state, {
|
|
841
|
+
resetKeys: a
|
|
842
|
+
} = this.props;
|
|
843
|
+
if (r && n.error !== null && Ba(e.resetKeys, a)) {
|
|
844
|
+
var s, i;
|
|
845
|
+
(s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
|
|
846
|
+
next: a,
|
|
847
|
+
prev: e.resetKeys,
|
|
848
|
+
reason: "keys"
|
|
849
|
+
}), this.setState(Ke);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
render() {
|
|
853
|
+
const {
|
|
854
|
+
children: e,
|
|
855
|
+
fallbackRender: n,
|
|
856
|
+
FallbackComponent: r,
|
|
857
|
+
fallback: a
|
|
858
|
+
} = this.props, {
|
|
859
|
+
didCatch: s,
|
|
860
|
+
error: i
|
|
861
|
+
} = this.state;
|
|
862
|
+
let c = e;
|
|
863
|
+
if (s) {
|
|
864
|
+
const l = {
|
|
865
|
+
error: i,
|
|
866
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
867
|
+
};
|
|
868
|
+
if (typeof n == "function")
|
|
869
|
+
c = n(l);
|
|
870
|
+
else if (r)
|
|
871
|
+
c = pt(r, l);
|
|
872
|
+
else if (a === null || Gr(a))
|
|
873
|
+
c = a;
|
|
874
|
+
else
|
|
875
|
+
throw i;
|
|
876
|
+
}
|
|
877
|
+
return pt(Ka.Provider, {
|
|
878
|
+
value: {
|
|
879
|
+
didCatch: s,
|
|
880
|
+
error: i,
|
|
881
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
882
|
+
}
|
|
883
|
+
}, c);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
function Ba() {
|
|
887
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
888
|
+
return t.length !== e.length || t.some((n, r) => !Object.is(n, e[r]));
|
|
889
|
+
}
|
|
890
|
+
const Qa = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Ua = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Ga = (t) => "initialize" in t && typeof t.initialize == "function", qa = (t) => "getHead" in t && typeof t.getHead == "function", Ha = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", za = (t) => "getIdentities" in t && typeof t.getIdentities == "function", zt = new La();
|
|
891
|
+
class Va {
|
|
892
|
+
constructor(e) {
|
|
893
|
+
A(this, "plugins", []);
|
|
894
|
+
A(this, "navigation");
|
|
895
|
+
A(this, "meta");
|
|
896
|
+
A(this, "page");
|
|
897
|
+
A(this, "authentication");
|
|
898
|
+
A(this, "navigationPlugins");
|
|
899
|
+
A(this, "initialize", async ({
|
|
900
|
+
navigate: e
|
|
901
|
+
}) => {
|
|
902
|
+
await Promise.all(
|
|
903
|
+
this.plugins.filter(Ga).map((n) => {
|
|
904
|
+
var r;
|
|
905
|
+
return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: e });
|
|
906
|
+
})
|
|
907
|
+
);
|
|
474
908
|
});
|
|
475
|
-
|
|
476
|
-
await
|
|
909
|
+
A(this, "invalidateCache", async (e) => {
|
|
910
|
+
await zt.invalidateQueries({ queryKey: e });
|
|
477
911
|
});
|
|
478
|
-
|
|
479
|
-
this.plugins.filter(
|
|
912
|
+
A(this, "getApiIdentities", async () => (await Promise.all(
|
|
913
|
+
this.plugins.filter(za).map((n) => n.getIdentities(this))
|
|
480
914
|
)).flat());
|
|
481
|
-
|
|
915
|
+
A(this, "getNavigation", async (e) => (await Promise.all(
|
|
482
916
|
this.navigationPlugins.map(
|
|
483
|
-
async (
|
|
484
|
-
var
|
|
485
|
-
return (
|
|
917
|
+
async (r) => {
|
|
918
|
+
var a;
|
|
919
|
+
return (a = r.getNavigation) == null ? void 0 : a.call(r, e);
|
|
920
|
+
}
|
|
921
|
+
)
|
|
922
|
+
)).flatMap((r) => r ?? []));
|
|
923
|
+
A(this, "signRequest", async (e) => {
|
|
924
|
+
if (!this.authentication)
|
|
925
|
+
throw new Error("No authentication provider configured");
|
|
926
|
+
const n = await this.authentication.getAccessToken();
|
|
927
|
+
return e.headers.set("Authorization", `Bearer ${n}`), e;
|
|
928
|
+
});
|
|
929
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ua), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
function Ya({ error: t, resetErrorBoundary: e }) {
|
|
933
|
+
return /* @__PURE__ */ o.jsx(Et, { error: t });
|
|
934
|
+
}
|
|
935
|
+
const Re = globalThis;
|
|
936
|
+
(!Re.requestIdleCallback || !Re.cancelIdleCallback) && (Re.requestIdleCallback = (t) => setTimeout(t, 1), Re.cancelIdleCallback = clearTimeout);
|
|
937
|
+
var Ue = ["Enter", " "], Xa = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], Wa = [...Xa, ...Vt], Ja = {
|
|
938
|
+
ltr: [...Ue, "ArrowRight"],
|
|
939
|
+
rtl: [...Ue, "ArrowLeft"]
|
|
940
|
+
}, Za = {
|
|
941
|
+
ltr: ["ArrowLeft"],
|
|
942
|
+
rtl: ["ArrowRight"]
|
|
943
|
+
}, xe = "Menu", [de, eo, to] = wr(xe), [Z, Yt] = jt(xe, [
|
|
944
|
+
to,
|
|
945
|
+
Nt,
|
|
946
|
+
Ut
|
|
947
|
+
]), ye = Nt(), Xt = Ut(), [Wt, V] = Z(xe), [no, we] = Z(xe), Jt = (t) => {
|
|
948
|
+
const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, c = ye(e), [l, p] = u.useState(null), f = u.useRef(!1), d = qe(s), g = Dr(a);
|
|
949
|
+
return u.useEffect(() => {
|
|
950
|
+
const v = () => {
|
|
951
|
+
f.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
|
|
952
|
+
}, x = () => f.current = !1;
|
|
953
|
+
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
954
|
+
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
|
|
955
|
+
};
|
|
956
|
+
}, []), /* @__PURE__ */ o.jsx(It, { ...c, children: /* @__PURE__ */ o.jsx(
|
|
957
|
+
Wt,
|
|
958
|
+
{
|
|
959
|
+
scope: e,
|
|
960
|
+
open: n,
|
|
961
|
+
onOpenChange: d,
|
|
962
|
+
content: l,
|
|
963
|
+
onContentChange: p,
|
|
964
|
+
children: /* @__PURE__ */ o.jsx(
|
|
965
|
+
no,
|
|
966
|
+
{
|
|
967
|
+
scope: e,
|
|
968
|
+
onClose: u.useCallback(() => d(!1), [d]),
|
|
969
|
+
isUsingKeyboardRef: f,
|
|
970
|
+
dir: g,
|
|
971
|
+
modal: i,
|
|
972
|
+
children: r
|
|
973
|
+
}
|
|
974
|
+
)
|
|
975
|
+
}
|
|
976
|
+
) });
|
|
977
|
+
};
|
|
978
|
+
Jt.displayName = xe;
|
|
979
|
+
var ro = "MenuAnchor", Je = u.forwardRef(
|
|
980
|
+
(t, e) => {
|
|
981
|
+
const { __scopeMenu: n, ...r } = t, a = ye(n);
|
|
982
|
+
return /* @__PURE__ */ o.jsx(Mr, { ...a, ...r, ref: e });
|
|
983
|
+
}
|
|
984
|
+
);
|
|
985
|
+
Je.displayName = ro;
|
|
986
|
+
var Ze = "MenuPortal", [ao, Zt] = Z(Ze, {
|
|
987
|
+
forceMount: void 0
|
|
988
|
+
}), en = (t) => {
|
|
989
|
+
const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = V(Ze, e);
|
|
990
|
+
return /* @__PURE__ */ o.jsx(ao, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ir, { asChild: !0, container: a, children: r }) }) });
|
|
991
|
+
};
|
|
992
|
+
en.displayName = Ze;
|
|
993
|
+
var T = "MenuContent", [oo, et] = Z(T), tn = u.forwardRef(
|
|
994
|
+
(t, e) => {
|
|
995
|
+
const n = Zt(T, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(T, t.__scopeMenu), i = we(T, t.__scopeMenu);
|
|
996
|
+
return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(so, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(io, { ...a, ref: e }) }) }) });
|
|
997
|
+
}
|
|
998
|
+
), so = u.forwardRef(
|
|
999
|
+
(t, e) => {
|
|
1000
|
+
const n = V(T, t.__scopeMenu), r = u.useRef(null), a = fe(e, r);
|
|
1001
|
+
return u.useEffect(() => {
|
|
1002
|
+
const s = r.current;
|
|
1003
|
+
if (s) return br(s);
|
|
1004
|
+
}, []), /* @__PURE__ */ o.jsx(
|
|
1005
|
+
tt,
|
|
1006
|
+
{
|
|
1007
|
+
...t,
|
|
1008
|
+
ref: a,
|
|
1009
|
+
trapFocus: n.open,
|
|
1010
|
+
disableOutsidePointerEvents: n.open,
|
|
1011
|
+
disableOutsideScroll: !0,
|
|
1012
|
+
onFocusOutside: y(
|
|
1013
|
+
t.onFocusOutside,
|
|
1014
|
+
(s) => s.preventDefault(),
|
|
1015
|
+
{ checkForDefaultPrevented: !1 }
|
|
1016
|
+
),
|
|
1017
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
1018
|
+
}
|
|
1019
|
+
);
|
|
1020
|
+
}
|
|
1021
|
+
), io = u.forwardRef((t, e) => {
|
|
1022
|
+
const n = V(T, t.__scopeMenu);
|
|
1023
|
+
return /* @__PURE__ */ o.jsx(
|
|
1024
|
+
tt,
|
|
1025
|
+
{
|
|
1026
|
+
...t,
|
|
1027
|
+
ref: e,
|
|
1028
|
+
trapFocus: !1,
|
|
1029
|
+
disableOutsidePointerEvents: !1,
|
|
1030
|
+
disableOutsideScroll: !1,
|
|
1031
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
1032
|
+
}
|
|
1033
|
+
);
|
|
1034
|
+
}), tt = u.forwardRef(
|
|
1035
|
+
(t, e) => {
|
|
1036
|
+
const {
|
|
1037
|
+
__scopeMenu: n,
|
|
1038
|
+
loop: r = !1,
|
|
1039
|
+
trapFocus: a,
|
|
1040
|
+
onOpenAutoFocus: s,
|
|
1041
|
+
onCloseAutoFocus: i,
|
|
1042
|
+
disableOutsidePointerEvents: c,
|
|
1043
|
+
onEntryFocus: l,
|
|
1044
|
+
onEscapeKeyDown: p,
|
|
1045
|
+
onPointerDownOutside: f,
|
|
1046
|
+
onFocusOutside: d,
|
|
1047
|
+
onInteractOutside: g,
|
|
1048
|
+
onDismiss: v,
|
|
1049
|
+
disableOutsideScroll: x,
|
|
1050
|
+
...R
|
|
1051
|
+
} = t, N = V(T, n), _ = we(T, n), D = ye(n), w = Xt(n), E = eo(n), [$, Y] = u.useState(null), ee = u.useRef(null), Me = fe(e, ee, N.onContentChange), X = u.useRef(0), be = u.useRef(""), rr = u.useRef(0), Oe = u.useRef(null), it = u.useRef("right"), Te = u.useRef(0), ar = x ? Sr : u.Fragment, or = x ? { as: jr, allowPinchZoom: !0 } : void 0, sr = (m) => {
|
|
1052
|
+
var ne, ut;
|
|
1053
|
+
const I = be.current + m, k = E().filter((B) => !B.disabled), G = document.activeElement, ke = (ne = k.find((B) => B.ref.current === G)) == null ? void 0 : ne.textValue, Fe = k.map((B) => B.textValue), ct = wo(Fe, I, ke), ce = (ut = k.find((B) => B.textValue === ct)) == null ? void 0 : ut.ref.current;
|
|
1054
|
+
(function B(lt) {
|
|
1055
|
+
be.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => B(""), 1e3));
|
|
1056
|
+
})(I), ce && setTimeout(() => ce.focus());
|
|
1057
|
+
};
|
|
1058
|
+
u.useEffect(() => () => window.clearTimeout(X.current), []), Cr();
|
|
1059
|
+
const te = u.useCallback((m) => {
|
|
1060
|
+
var k, G;
|
|
1061
|
+
return it.current === ((k = Oe.current) == null ? void 0 : k.side) && bo(m, (G = Oe.current) == null ? void 0 : G.area);
|
|
1062
|
+
}, []);
|
|
1063
|
+
return /* @__PURE__ */ o.jsx(
|
|
1064
|
+
oo,
|
|
1065
|
+
{
|
|
1066
|
+
scope: n,
|
|
1067
|
+
searchRef: be,
|
|
1068
|
+
onItemEnter: u.useCallback(
|
|
1069
|
+
(m) => {
|
|
1070
|
+
te(m) && m.preventDefault();
|
|
1071
|
+
},
|
|
1072
|
+
[te]
|
|
1073
|
+
),
|
|
1074
|
+
onItemLeave: u.useCallback(
|
|
1075
|
+
(m) => {
|
|
1076
|
+
var I;
|
|
1077
|
+
te(m) || ((I = ee.current) == null || I.focus(), Y(null));
|
|
1078
|
+
},
|
|
1079
|
+
[te]
|
|
1080
|
+
),
|
|
1081
|
+
onTriggerLeave: u.useCallback(
|
|
1082
|
+
(m) => {
|
|
1083
|
+
te(m) && m.preventDefault();
|
|
1084
|
+
},
|
|
1085
|
+
[te]
|
|
1086
|
+
),
|
|
1087
|
+
pointerGraceTimerRef: rr,
|
|
1088
|
+
onPointerGraceIntentChange: u.useCallback((m) => {
|
|
1089
|
+
Oe.current = m;
|
|
1090
|
+
}, []),
|
|
1091
|
+
children: /* @__PURE__ */ o.jsx(ar, { ...or, children: /* @__PURE__ */ o.jsx(
|
|
1092
|
+
Pr,
|
|
1093
|
+
{
|
|
1094
|
+
asChild: !0,
|
|
1095
|
+
trapped: a,
|
|
1096
|
+
onMountAutoFocus: y(s, (m) => {
|
|
1097
|
+
var I;
|
|
1098
|
+
m.preventDefault(), (I = ee.current) == null || I.focus({ preventScroll: !0 });
|
|
1099
|
+
}),
|
|
1100
|
+
onUnmountAutoFocus: i,
|
|
1101
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1102
|
+
Rr,
|
|
1103
|
+
{
|
|
1104
|
+
asChild: !0,
|
|
1105
|
+
disableOutsidePointerEvents: c,
|
|
1106
|
+
onEscapeKeyDown: p,
|
|
1107
|
+
onPointerDownOutside: f,
|
|
1108
|
+
onFocusOutside: d,
|
|
1109
|
+
onInteractOutside: g,
|
|
1110
|
+
onDismiss: v,
|
|
1111
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1112
|
+
ca,
|
|
1113
|
+
{
|
|
1114
|
+
asChild: !0,
|
|
1115
|
+
...w,
|
|
1116
|
+
dir: _.dir,
|
|
1117
|
+
orientation: "vertical",
|
|
1118
|
+
loop: r,
|
|
1119
|
+
currentTabStopId: $,
|
|
1120
|
+
onCurrentTabStopIdChange: Y,
|
|
1121
|
+
onEntryFocus: y(l, (m) => {
|
|
1122
|
+
_.isUsingKeyboardRef.current || m.preventDefault();
|
|
1123
|
+
}),
|
|
1124
|
+
preventScrollOnEntryFocus: !0,
|
|
1125
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1126
|
+
_r,
|
|
1127
|
+
{
|
|
1128
|
+
role: "menu",
|
|
1129
|
+
"aria-orientation": "vertical",
|
|
1130
|
+
"data-state": yn(N.open),
|
|
1131
|
+
"data-radix-menu-content": "",
|
|
1132
|
+
dir: _.dir,
|
|
1133
|
+
...D,
|
|
1134
|
+
...R,
|
|
1135
|
+
ref: Me,
|
|
1136
|
+
style: { outline: "none", ...R.style },
|
|
1137
|
+
onKeyDown: y(R.onKeyDown, (m) => {
|
|
1138
|
+
const k = m.target.closest("[data-radix-menu-content]") === m.currentTarget, G = m.ctrlKey || m.altKey || m.metaKey, ke = m.key.length === 1;
|
|
1139
|
+
k && (m.key === "Tab" && m.preventDefault(), !G && ke && sr(m.key));
|
|
1140
|
+
const Fe = ee.current;
|
|
1141
|
+
if (m.target !== Fe || !Wa.includes(m.key)) return;
|
|
1142
|
+
m.preventDefault();
|
|
1143
|
+
const ce = E().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
|
|
1144
|
+
Vt.includes(m.key) && ce.reverse(), xo(ce);
|
|
1145
|
+
}),
|
|
1146
|
+
onBlur: y(t.onBlur, (m) => {
|
|
1147
|
+
m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), be.current = "");
|
|
1148
|
+
}),
|
|
1149
|
+
onPointerMove: y(
|
|
1150
|
+
t.onPointerMove,
|
|
1151
|
+
he((m) => {
|
|
1152
|
+
const I = m.target, k = Te.current !== m.clientX;
|
|
1153
|
+
if (m.currentTarget.contains(I) && k) {
|
|
1154
|
+
const G = m.clientX > Te.current ? "right" : "left";
|
|
1155
|
+
it.current = G, Te.current = m.clientX;
|
|
1156
|
+
}
|
|
1157
|
+
})
|
|
1158
|
+
)
|
|
1159
|
+
}
|
|
1160
|
+
)
|
|
1161
|
+
}
|
|
1162
|
+
)
|
|
1163
|
+
}
|
|
1164
|
+
)
|
|
1165
|
+
}
|
|
1166
|
+
) })
|
|
1167
|
+
}
|
|
1168
|
+
);
|
|
1169
|
+
}
|
|
1170
|
+
);
|
|
1171
|
+
tn.displayName = T;
|
|
1172
|
+
var co = "MenuGroup", nt = u.forwardRef(
|
|
1173
|
+
(t, e) => {
|
|
1174
|
+
const { __scopeMenu: n, ...r } = t;
|
|
1175
|
+
return /* @__PURE__ */ o.jsx(ie.div, { role: "group", ...r, ref: e });
|
|
1176
|
+
}
|
|
1177
|
+
);
|
|
1178
|
+
nt.displayName = co;
|
|
1179
|
+
var uo = "MenuLabel", nn = u.forwardRef(
|
|
1180
|
+
(t, e) => {
|
|
1181
|
+
const { __scopeMenu: n, ...r } = t;
|
|
1182
|
+
return /* @__PURE__ */ o.jsx(ie.div, { ...r, ref: e });
|
|
1183
|
+
}
|
|
1184
|
+
);
|
|
1185
|
+
nn.displayName = uo;
|
|
1186
|
+
var Ne = "MenuItem", bt = "menu.itemSelect", Ae = u.forwardRef(
|
|
1187
|
+
(t, e) => {
|
|
1188
|
+
const { disabled: n = !1, onSelect: r, ...a } = t, s = u.useRef(null), i = we(Ne, t.__scopeMenu), c = et(Ne, t.__scopeMenu), l = fe(e, s), p = u.useRef(!1), f = () => {
|
|
1189
|
+
const d = s.current;
|
|
1190
|
+
if (!n && d) {
|
|
1191
|
+
const g = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
|
|
1192
|
+
d.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), Nr(d, g), g.defaultPrevented ? p.current = !1 : i.onClose();
|
|
1193
|
+
}
|
|
1194
|
+
};
|
|
1195
|
+
return /* @__PURE__ */ o.jsx(
|
|
1196
|
+
rn,
|
|
1197
|
+
{
|
|
1198
|
+
...a,
|
|
1199
|
+
ref: l,
|
|
1200
|
+
disabled: n,
|
|
1201
|
+
onClick: y(t.onClick, f),
|
|
1202
|
+
onPointerDown: (d) => {
|
|
1203
|
+
var g;
|
|
1204
|
+
(g = t.onPointerDown) == null || g.call(t, d), p.current = !0;
|
|
1205
|
+
},
|
|
1206
|
+
onPointerUp: y(t.onPointerUp, (d) => {
|
|
1207
|
+
var g;
|
|
1208
|
+
p.current || (g = d.currentTarget) == null || g.click();
|
|
1209
|
+
}),
|
|
1210
|
+
onKeyDown: y(t.onKeyDown, (d) => {
|
|
1211
|
+
const g = c.searchRef.current !== "";
|
|
1212
|
+
n || g && d.key === " " || Ue.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
|
|
1213
|
+
})
|
|
1214
|
+
}
|
|
1215
|
+
);
|
|
1216
|
+
}
|
|
1217
|
+
);
|
|
1218
|
+
Ae.displayName = Ne;
|
|
1219
|
+
var rn = u.forwardRef(
|
|
1220
|
+
(t, e) => {
|
|
1221
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = et(Ne, n), c = Xt(n), l = u.useRef(null), p = fe(e, l), [f, d] = u.useState(!1), [g, v] = u.useState("");
|
|
1222
|
+
return u.useEffect(() => {
|
|
1223
|
+
const x = l.current;
|
|
1224
|
+
x && v((x.textContent ?? "").trim());
|
|
1225
|
+
}, [s.children]), /* @__PURE__ */ o.jsx(
|
|
1226
|
+
de.ItemSlot,
|
|
1227
|
+
{
|
|
1228
|
+
scope: n,
|
|
1229
|
+
disabled: r,
|
|
1230
|
+
textValue: a ?? g,
|
|
1231
|
+
children: /* @__PURE__ */ o.jsx(ua, { asChild: !0, ...c, focusable: !r, children: /* @__PURE__ */ o.jsx(
|
|
1232
|
+
ie.div,
|
|
1233
|
+
{
|
|
1234
|
+
role: "menuitem",
|
|
1235
|
+
"data-highlighted": f ? "" : void 0,
|
|
1236
|
+
"aria-disabled": r || void 0,
|
|
1237
|
+
"data-disabled": r ? "" : void 0,
|
|
1238
|
+
...s,
|
|
1239
|
+
ref: p,
|
|
1240
|
+
onPointerMove: y(
|
|
1241
|
+
t.onPointerMove,
|
|
1242
|
+
he((x) => {
|
|
1243
|
+
r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
|
|
1244
|
+
})
|
|
1245
|
+
),
|
|
1246
|
+
onPointerLeave: y(
|
|
1247
|
+
t.onPointerLeave,
|
|
1248
|
+
he((x) => i.onItemLeave(x))
|
|
1249
|
+
),
|
|
1250
|
+
onFocus: y(t.onFocus, () => d(!0)),
|
|
1251
|
+
onBlur: y(t.onBlur, () => d(!1))
|
|
1252
|
+
}
|
|
1253
|
+
) })
|
|
1254
|
+
}
|
|
1255
|
+
);
|
|
1256
|
+
}
|
|
1257
|
+
), lo = "MenuCheckboxItem", an = u.forwardRef(
|
|
1258
|
+
(t, e) => {
|
|
1259
|
+
const { checked: n = !1, onCheckedChange: r, ...a } = t;
|
|
1260
|
+
return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
|
|
1261
|
+
Ae,
|
|
1262
|
+
{
|
|
1263
|
+
role: "menuitemcheckbox",
|
|
1264
|
+
"aria-checked": De(n) ? "mixed" : n,
|
|
1265
|
+
...a,
|
|
1266
|
+
ref: e,
|
|
1267
|
+
"data-state": ot(n),
|
|
1268
|
+
onSelect: y(
|
|
1269
|
+
a.onSelect,
|
|
1270
|
+
() => r == null ? void 0 : r(De(n) ? !0 : !n),
|
|
1271
|
+
{ checkForDefaultPrevented: !1 }
|
|
1272
|
+
)
|
|
1273
|
+
}
|
|
1274
|
+
) });
|
|
1275
|
+
}
|
|
1276
|
+
);
|
|
1277
|
+
an.displayName = lo;
|
|
1278
|
+
var on = "MenuRadioGroup", [ho, po] = Z(
|
|
1279
|
+
on,
|
|
1280
|
+
{ value: void 0, onValueChange: () => {
|
|
1281
|
+
} }
|
|
1282
|
+
), sn = u.forwardRef(
|
|
1283
|
+
(t, e) => {
|
|
1284
|
+
const { value: n, onValueChange: r, ...a } = t, s = qe(r);
|
|
1285
|
+
return /* @__PURE__ */ o.jsx(ho, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(nt, { ...a, ref: e }) });
|
|
1286
|
+
}
|
|
1287
|
+
);
|
|
1288
|
+
sn.displayName = on;
|
|
1289
|
+
var cn = "MenuRadioItem", un = u.forwardRef(
|
|
1290
|
+
(t, e) => {
|
|
1291
|
+
const { value: n, ...r } = t, a = po(cn, t.__scopeMenu), s = n === a.value;
|
|
1292
|
+
return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
|
|
1293
|
+
Ae,
|
|
1294
|
+
{
|
|
1295
|
+
role: "menuitemradio",
|
|
1296
|
+
"aria-checked": s,
|
|
1297
|
+
...r,
|
|
1298
|
+
ref: e,
|
|
1299
|
+
"data-state": ot(s),
|
|
1300
|
+
onSelect: y(
|
|
1301
|
+
r.onSelect,
|
|
1302
|
+
() => {
|
|
1303
|
+
var i;
|
|
1304
|
+
return (i = a.onValueChange) == null ? void 0 : i.call(a, n);
|
|
1305
|
+
},
|
|
1306
|
+
{ checkForDefaultPrevented: !1 }
|
|
1307
|
+
)
|
|
1308
|
+
}
|
|
1309
|
+
) });
|
|
1310
|
+
}
|
|
1311
|
+
);
|
|
1312
|
+
un.displayName = cn;
|
|
1313
|
+
var rt = "MenuItemIndicator", [ln, fo] = Z(
|
|
1314
|
+
rt,
|
|
1315
|
+
{ checked: !1 }
|
|
1316
|
+
), dn = u.forwardRef(
|
|
1317
|
+
(t, e) => {
|
|
1318
|
+
const { __scopeMenu: n, forceMount: r, ...a } = t, s = fo(rt, n);
|
|
1319
|
+
return /* @__PURE__ */ o.jsx(
|
|
1320
|
+
Ie,
|
|
1321
|
+
{
|
|
1322
|
+
present: r || De(s.checked) || s.checked === !0,
|
|
1323
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1324
|
+
ie.span,
|
|
1325
|
+
{
|
|
1326
|
+
...a,
|
|
1327
|
+
ref: e,
|
|
1328
|
+
"data-state": ot(s.checked)
|
|
1329
|
+
}
|
|
1330
|
+
)
|
|
1331
|
+
}
|
|
1332
|
+
);
|
|
1333
|
+
}
|
|
1334
|
+
);
|
|
1335
|
+
dn.displayName = rt;
|
|
1336
|
+
var mo = "MenuSeparator", hn = u.forwardRef(
|
|
1337
|
+
(t, e) => {
|
|
1338
|
+
const { __scopeMenu: n, ...r } = t;
|
|
1339
|
+
return /* @__PURE__ */ o.jsx(
|
|
1340
|
+
ie.div,
|
|
1341
|
+
{
|
|
1342
|
+
role: "separator",
|
|
1343
|
+
"aria-orientation": "horizontal",
|
|
1344
|
+
...r,
|
|
1345
|
+
ref: e
|
|
1346
|
+
}
|
|
1347
|
+
);
|
|
1348
|
+
}
|
|
1349
|
+
);
|
|
1350
|
+
hn.displayName = mo;
|
|
1351
|
+
var go = "MenuArrow", pn = u.forwardRef(
|
|
1352
|
+
(t, e) => {
|
|
1353
|
+
const { __scopeMenu: n, ...r } = t, a = ye(n);
|
|
1354
|
+
return /* @__PURE__ */ o.jsx(Er, { ...a, ...r, ref: e });
|
|
1355
|
+
}
|
|
1356
|
+
);
|
|
1357
|
+
pn.displayName = go;
|
|
1358
|
+
var at = "MenuSub", [vo, fn] = Z(at), mn = (t) => {
|
|
1359
|
+
const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = V(at, e), i = ye(e), [c, l] = u.useState(null), [p, f] = u.useState(null), d = qe(a);
|
|
1360
|
+
return u.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ o.jsx(It, { ...i, children: /* @__PURE__ */ o.jsx(
|
|
1361
|
+
Wt,
|
|
1362
|
+
{
|
|
1363
|
+
scope: e,
|
|
1364
|
+
open: r,
|
|
1365
|
+
onOpenChange: d,
|
|
1366
|
+
content: p,
|
|
1367
|
+
onContentChange: f,
|
|
1368
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1369
|
+
vo,
|
|
1370
|
+
{
|
|
1371
|
+
scope: e,
|
|
1372
|
+
contentId: je(),
|
|
1373
|
+
triggerId: je(),
|
|
1374
|
+
trigger: c,
|
|
1375
|
+
onTriggerChange: l,
|
|
1376
|
+
children: n
|
|
486
1377
|
}
|
|
487
1378
|
)
|
|
488
|
-
|
|
489
|
-
|
|
1379
|
+
}
|
|
1380
|
+
) });
|
|
1381
|
+
};
|
|
1382
|
+
mn.displayName = at;
|
|
1383
|
+
var ue = "MenuSubTrigger", gn = u.forwardRef(
|
|
1384
|
+
(t, e) => {
|
|
1385
|
+
const n = V(ue, t.__scopeMenu), r = we(ue, t.__scopeMenu), a = fn(ue, t.__scopeMenu), s = et(ue, t.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = s, p = { __scopeMenu: t.__scopeMenu }, f = u.useCallback(() => {
|
|
1386
|
+
i.current && window.clearTimeout(i.current), i.current = null;
|
|
1387
|
+
}, []);
|
|
1388
|
+
return u.useEffect(() => f, [f]), u.useEffect(() => {
|
|
1389
|
+
const d = c.current;
|
|
1390
|
+
return () => {
|
|
1391
|
+
window.clearTimeout(d), l(null);
|
|
1392
|
+
};
|
|
1393
|
+
}, [c, l]), /* @__PURE__ */ o.jsx(Je, { asChild: !0, ...p, children: /* @__PURE__ */ o.jsx(
|
|
1394
|
+
rn,
|
|
1395
|
+
{
|
|
1396
|
+
id: a.triggerId,
|
|
1397
|
+
"aria-haspopup": "menu",
|
|
1398
|
+
"aria-expanded": n.open,
|
|
1399
|
+
"aria-controls": a.contentId,
|
|
1400
|
+
"data-state": yn(n.open),
|
|
1401
|
+
...t,
|
|
1402
|
+
ref: Dt(e, a.onTriggerChange),
|
|
1403
|
+
onClick: (d) => {
|
|
1404
|
+
var g;
|
|
1405
|
+
(g = t.onClick) == null || g.call(t, d), !(t.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1406
|
+
},
|
|
1407
|
+
onPointerMove: y(
|
|
1408
|
+
t.onPointerMove,
|
|
1409
|
+
he((d) => {
|
|
1410
|
+
s.onItemEnter(d), !d.defaultPrevented && !t.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
1411
|
+
n.onOpenChange(!0), f();
|
|
1412
|
+
}, 100));
|
|
1413
|
+
})
|
|
1414
|
+
),
|
|
1415
|
+
onPointerLeave: y(
|
|
1416
|
+
t.onPointerLeave,
|
|
1417
|
+
he((d) => {
|
|
1418
|
+
var v, x;
|
|
1419
|
+
f();
|
|
1420
|
+
const g = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
|
|
1421
|
+
if (g) {
|
|
1422
|
+
const R = (x = n.content) == null ? void 0 : x.dataset.side, N = R === "right", _ = N ? -5 : 5, D = g[N ? "left" : "right"], w = g[N ? "right" : "left"];
|
|
1423
|
+
s.onPointerGraceIntentChange({
|
|
1424
|
+
area: [
|
|
1425
|
+
// Apply a bleed on clientX to ensure that our exit point is
|
|
1426
|
+
// consistently within polygon bounds
|
|
1427
|
+
{ x: d.clientX + _, y: d.clientY },
|
|
1428
|
+
{ x: D, y: g.top },
|
|
1429
|
+
{ x: w, y: g.top },
|
|
1430
|
+
{ x: w, y: g.bottom },
|
|
1431
|
+
{ x: D, y: g.bottom }
|
|
1432
|
+
],
|
|
1433
|
+
side: R
|
|
1434
|
+
}), window.clearTimeout(c.current), c.current = window.setTimeout(
|
|
1435
|
+
() => s.onPointerGraceIntentChange(null),
|
|
1436
|
+
300
|
|
1437
|
+
);
|
|
1438
|
+
} else {
|
|
1439
|
+
if (s.onTriggerLeave(d), d.defaultPrevented) return;
|
|
1440
|
+
s.onPointerGraceIntentChange(null);
|
|
1441
|
+
}
|
|
1442
|
+
})
|
|
1443
|
+
),
|
|
1444
|
+
onKeyDown: y(t.onKeyDown, (d) => {
|
|
1445
|
+
var v;
|
|
1446
|
+
const g = s.searchRef.current !== "";
|
|
1447
|
+
t.disabled || g && d.key === " " || Ja[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
|
|
1448
|
+
})
|
|
1449
|
+
}
|
|
1450
|
+
) });
|
|
490
1451
|
}
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
1452
|
+
);
|
|
1453
|
+
gn.displayName = ue;
|
|
1454
|
+
var vn = "MenuSubContent", xn = u.forwardRef(
|
|
1455
|
+
(t, e) => {
|
|
1456
|
+
const n = Zt(T, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(T, t.__scopeMenu), i = we(T, t.__scopeMenu), c = fn(vn, t.__scopeMenu), l = u.useRef(null), p = fe(e, l);
|
|
1457
|
+
return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
|
|
1458
|
+
tt,
|
|
1459
|
+
{
|
|
1460
|
+
id: c.contentId,
|
|
1461
|
+
"aria-labelledby": c.triggerId,
|
|
1462
|
+
...a,
|
|
1463
|
+
ref: p,
|
|
1464
|
+
align: "start",
|
|
1465
|
+
side: i.dir === "rtl" ? "left" : "right",
|
|
1466
|
+
disableOutsidePointerEvents: !1,
|
|
1467
|
+
disableOutsideScroll: !1,
|
|
1468
|
+
trapFocus: !1,
|
|
1469
|
+
onOpenAutoFocus: (f) => {
|
|
1470
|
+
var d;
|
|
1471
|
+
i.isUsingKeyboardRef.current && ((d = l.current) == null || d.focus()), f.preventDefault();
|
|
1472
|
+
},
|
|
1473
|
+
onCloseAutoFocus: (f) => f.preventDefault(),
|
|
1474
|
+
onFocusOutside: y(t.onFocusOutside, (f) => {
|
|
1475
|
+
f.target !== c.trigger && s.onOpenChange(!1);
|
|
1476
|
+
}),
|
|
1477
|
+
onEscapeKeyDown: y(t.onEscapeKeyDown, (f) => {
|
|
1478
|
+
i.onClose(), f.preventDefault();
|
|
1479
|
+
}),
|
|
1480
|
+
onKeyDown: y(t.onKeyDown, (f) => {
|
|
1481
|
+
var v;
|
|
1482
|
+
const d = f.currentTarget.contains(f.target), g = Za[i.dir].includes(f.key);
|
|
1483
|
+
d && g && (s.onOpenChange(!1), (v = c.trigger) == null || v.focus(), f.preventDefault());
|
|
1484
|
+
})
|
|
1485
|
+
}
|
|
1486
|
+
) }) }) });
|
|
496
1487
|
}
|
|
1488
|
+
);
|
|
1489
|
+
xn.displayName = vn;
|
|
1490
|
+
function yn(t) {
|
|
1491
|
+
return t ? "open" : "closed";
|
|
497
1492
|
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
[
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
1493
|
+
function De(t) {
|
|
1494
|
+
return t === "indeterminate";
|
|
1495
|
+
}
|
|
1496
|
+
function ot(t) {
|
|
1497
|
+
return De(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
1498
|
+
}
|
|
1499
|
+
function xo(t) {
|
|
1500
|
+
const e = document.activeElement;
|
|
1501
|
+
for (const n of t)
|
|
1502
|
+
if (n === e || (n.focus(), document.activeElement !== e)) return;
|
|
1503
|
+
}
|
|
1504
|
+
function yo(t, e) {
|
|
1505
|
+
return t.map((n, r) => t[(e + r) % t.length]);
|
|
1506
|
+
}
|
|
1507
|
+
function wo(t, e, n) {
|
|
1508
|
+
const a = e.length > 1 && Array.from(e).every((p) => p === e[0]) ? e[0] : e, s = n ? t.indexOf(n) : -1;
|
|
1509
|
+
let i = yo(t, Math.max(s, 0));
|
|
1510
|
+
a.length === 1 && (i = i.filter((p) => p !== n));
|
|
1511
|
+
const l = i.find(
|
|
1512
|
+
(p) => p.toLowerCase().startsWith(a.toLowerCase())
|
|
1513
|
+
);
|
|
1514
|
+
return l !== n ? l : void 0;
|
|
1515
|
+
}
|
|
1516
|
+
function Mo(t, e) {
|
|
1517
|
+
const { x: n, y: r } = t;
|
|
1518
|
+
let a = !1;
|
|
1519
|
+
for (let s = 0, i = e.length - 1; s < e.length; i = s++) {
|
|
1520
|
+
const c = e[s].x, l = e[s].y, p = e[i].x, f = e[i].y;
|
|
1521
|
+
l > r != f > r && n < (p - c) * (r - l) / (f - l) + c && (a = !a);
|
|
1522
|
+
}
|
|
1523
|
+
return a;
|
|
1524
|
+
}
|
|
1525
|
+
function bo(t, e) {
|
|
1526
|
+
if (!e) return !1;
|
|
1527
|
+
const n = { x: t.clientX, y: t.clientY };
|
|
1528
|
+
return Mo(n, e);
|
|
1529
|
+
}
|
|
1530
|
+
function he(t) {
|
|
1531
|
+
return (e) => e.pointerType === "mouse" ? t(e) : void 0;
|
|
1532
|
+
}
|
|
1533
|
+
var Co = Jt, Po = Je, Ro = en, _o = tn, Eo = nt, So = nn, jo = Ae, No = an, Do = sn, Io = un, Ao = dn, Oo = hn, To = pn, ko = mn, Fo = gn, Lo = xn, st = "DropdownMenu", [Ko, Fs] = jt(
|
|
1534
|
+
st,
|
|
1535
|
+
[Yt]
|
|
1536
|
+
), C = Yt(), [$o, wn] = Ko(st), Mn = (t) => {
|
|
1537
|
+
const {
|
|
1538
|
+
__scopeDropdownMenu: e,
|
|
1539
|
+
children: n,
|
|
1540
|
+
dir: r,
|
|
1541
|
+
open: a,
|
|
1542
|
+
defaultOpen: s,
|
|
1543
|
+
onOpenChange: i,
|
|
1544
|
+
modal: c = !0
|
|
1545
|
+
} = t, l = C(e), p = u.useRef(null), [f = !1, d] = At({
|
|
1546
|
+
prop: a,
|
|
1547
|
+
defaultProp: s,
|
|
1548
|
+
onChange: i
|
|
1549
|
+
});
|
|
1550
|
+
return /* @__PURE__ */ o.jsx(
|
|
1551
|
+
$o,
|
|
1552
|
+
{
|
|
1553
|
+
scope: e,
|
|
1554
|
+
triggerId: je(),
|
|
1555
|
+
triggerRef: p,
|
|
1556
|
+
contentId: je(),
|
|
1557
|
+
open: f,
|
|
1558
|
+
onOpenChange: d,
|
|
1559
|
+
onOpenToggle: u.useCallback(() => d((g) => !g), [d]),
|
|
1560
|
+
modal: c,
|
|
1561
|
+
children: /* @__PURE__ */ o.jsx(Co, { ...l, open: f, onOpenChange: d, dir: r, modal: c, children: n })
|
|
1562
|
+
}
|
|
1563
|
+
);
|
|
1564
|
+
};
|
|
1565
|
+
Mn.displayName = st;
|
|
1566
|
+
var bn = "DropdownMenuTrigger", Cn = u.forwardRef(
|
|
1567
|
+
(t, e) => {
|
|
1568
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = wn(bn, n), i = C(n);
|
|
1569
|
+
return /* @__PURE__ */ o.jsx(Po, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
|
|
1570
|
+
ie.button,
|
|
1571
|
+
{
|
|
1572
|
+
type: "button",
|
|
1573
|
+
id: s.triggerId,
|
|
1574
|
+
"aria-haspopup": "menu",
|
|
1575
|
+
"aria-expanded": s.open,
|
|
1576
|
+
"aria-controls": s.open ? s.contentId : void 0,
|
|
1577
|
+
"data-state": s.open ? "open" : "closed",
|
|
1578
|
+
"data-disabled": r ? "" : void 0,
|
|
1579
|
+
disabled: r,
|
|
1580
|
+
...a,
|
|
1581
|
+
ref: Dt(e, s.triggerRef),
|
|
1582
|
+
onPointerDown: y(t.onPointerDown, (c) => {
|
|
1583
|
+
!r && c.button === 0 && c.ctrlKey === !1 && (s.onOpenToggle(), s.open || c.preventDefault());
|
|
1584
|
+
}),
|
|
1585
|
+
onKeyDown: y(t.onKeyDown, (c) => {
|
|
1586
|
+
r || (["Enter", " "].includes(c.key) && s.onOpenToggle(), c.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(c.key) && c.preventDefault());
|
|
1587
|
+
})
|
|
1588
|
+
}
|
|
1589
|
+
) });
|
|
1590
|
+
}
|
|
1591
|
+
);
|
|
1592
|
+
Cn.displayName = bn;
|
|
1593
|
+
var Bo = "DropdownMenuPortal", Pn = (t) => {
|
|
1594
|
+
const { __scopeDropdownMenu: e, ...n } = t, r = C(e);
|
|
1595
|
+
return /* @__PURE__ */ o.jsx(Ro, { ...r, ...n });
|
|
1596
|
+
};
|
|
1597
|
+
Pn.displayName = Bo;
|
|
1598
|
+
var Rn = "DropdownMenuContent", _n = u.forwardRef(
|
|
1599
|
+
(t, e) => {
|
|
1600
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = wn(Rn, n), s = C(n), i = u.useRef(!1);
|
|
1601
|
+
return /* @__PURE__ */ o.jsx(
|
|
1602
|
+
_o,
|
|
1603
|
+
{
|
|
1604
|
+
id: a.contentId,
|
|
1605
|
+
"aria-labelledby": a.triggerId,
|
|
1606
|
+
...s,
|
|
1607
|
+
...r,
|
|
1608
|
+
ref: e,
|
|
1609
|
+
onCloseAutoFocus: y(t.onCloseAutoFocus, (c) => {
|
|
1610
|
+
var l;
|
|
1611
|
+
i.current || (l = a.triggerRef.current) == null || l.focus(), i.current = !1, c.preventDefault();
|
|
1612
|
+
}),
|
|
1613
|
+
onInteractOutside: y(t.onInteractOutside, (c) => {
|
|
1614
|
+
const l = c.detail.originalEvent, p = l.button === 0 && l.ctrlKey === !0, f = l.button === 2 || p;
|
|
1615
|
+
(!a.modal || f) && (i.current = !0);
|
|
1616
|
+
}),
|
|
1617
|
+
style: {
|
|
1618
|
+
...t.style,
|
|
1619
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1620
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1621
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1622
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1623
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
);
|
|
1627
|
+
}
|
|
1628
|
+
);
|
|
1629
|
+
_n.displayName = Rn;
|
|
1630
|
+
var Qo = "DropdownMenuGroup", Uo = u.forwardRef(
|
|
1631
|
+
(t, e) => {
|
|
1632
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1633
|
+
return /* @__PURE__ */ o.jsx(Eo, { ...a, ...r, ref: e });
|
|
1634
|
+
}
|
|
1635
|
+
);
|
|
1636
|
+
Uo.displayName = Qo;
|
|
1637
|
+
var Go = "DropdownMenuLabel", En = u.forwardRef(
|
|
1638
|
+
(t, e) => {
|
|
1639
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1640
|
+
return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: e });
|
|
1641
|
+
}
|
|
1642
|
+
);
|
|
1643
|
+
En.displayName = Go;
|
|
1644
|
+
var qo = "DropdownMenuItem", Sn = u.forwardRef(
|
|
1645
|
+
(t, e) => {
|
|
1646
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1647
|
+
return /* @__PURE__ */ o.jsx(jo, { ...a, ...r, ref: e });
|
|
1648
|
+
}
|
|
1649
|
+
);
|
|
1650
|
+
Sn.displayName = qo;
|
|
1651
|
+
var Ho = "DropdownMenuCheckboxItem", jn = u.forwardRef((t, e) => {
|
|
1652
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1653
|
+
return /* @__PURE__ */ o.jsx(No, { ...a, ...r, ref: e });
|
|
1654
|
+
});
|
|
1655
|
+
jn.displayName = Ho;
|
|
1656
|
+
var zo = "DropdownMenuRadioGroup", Vo = u.forwardRef((t, e) => {
|
|
1657
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1658
|
+
return /* @__PURE__ */ o.jsx(Do, { ...a, ...r, ref: e });
|
|
1659
|
+
});
|
|
1660
|
+
Vo.displayName = zo;
|
|
1661
|
+
var Yo = "DropdownMenuRadioItem", Nn = u.forwardRef((t, e) => {
|
|
1662
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1663
|
+
return /* @__PURE__ */ o.jsx(Io, { ...a, ...r, ref: e });
|
|
1664
|
+
});
|
|
1665
|
+
Nn.displayName = Yo;
|
|
1666
|
+
var Xo = "DropdownMenuItemIndicator", Dn = u.forwardRef((t, e) => {
|
|
1667
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1668
|
+
return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: e });
|
|
1669
|
+
});
|
|
1670
|
+
Dn.displayName = Xo;
|
|
1671
|
+
var Wo = "DropdownMenuSeparator", In = u.forwardRef((t, e) => {
|
|
1672
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1673
|
+
return /* @__PURE__ */ o.jsx(Oo, { ...a, ...r, ref: e });
|
|
1674
|
+
});
|
|
1675
|
+
In.displayName = Wo;
|
|
1676
|
+
var Jo = "DropdownMenuArrow", Zo = u.forwardRef(
|
|
1677
|
+
(t, e) => {
|
|
1678
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1679
|
+
return /* @__PURE__ */ o.jsx(To, { ...a, ...r, ref: e });
|
|
1680
|
+
}
|
|
1681
|
+
);
|
|
1682
|
+
Zo.displayName = Jo;
|
|
1683
|
+
var es = (t) => {
|
|
1684
|
+
const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [c = !1, l] = At({
|
|
1685
|
+
prop: r,
|
|
1686
|
+
defaultProp: s,
|
|
1687
|
+
onChange: a
|
|
1688
|
+
});
|
|
1689
|
+
return /* @__PURE__ */ o.jsx(ko, { ...i, open: c, onOpenChange: l, children: n });
|
|
1690
|
+
}, ts = "DropdownMenuSubTrigger", An = u.forwardRef((t, e) => {
|
|
1691
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1692
|
+
return /* @__PURE__ */ o.jsx(Fo, { ...a, ...r, ref: e });
|
|
1693
|
+
});
|
|
1694
|
+
An.displayName = ts;
|
|
1695
|
+
var ns = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
|
|
1696
|
+
const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
|
|
1697
|
+
return /* @__PURE__ */ o.jsx(
|
|
1698
|
+
Lo,
|
|
549
1699
|
{
|
|
550
|
-
|
|
1700
|
+
...a,
|
|
1701
|
+
...r,
|
|
1702
|
+
ref: e,
|
|
1703
|
+
style: {
|
|
1704
|
+
...t.style,
|
|
1705
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1706
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1707
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1708
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1709
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
);
|
|
1713
|
+
});
|
|
1714
|
+
On.displayName = ns;
|
|
1715
|
+
var rs = Mn, as = Cn, Tn = Pn, kn = _n, Fn = En, Ln = Sn, Kn = jn, $n = Nn, Bn = Dn, Qn = In, os = es, Un = An, Gn = On;
|
|
1716
|
+
const ss = rs, is = as, cs = Tn, us = os, qn = u.forwardRef(({ className: t, inset: e, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1717
|
+
Un,
|
|
1718
|
+
{
|
|
1719
|
+
ref: a,
|
|
1720
|
+
className: P(
|
|
1721
|
+
"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",
|
|
1722
|
+
e && "pl-8",
|
|
1723
|
+
t
|
|
1724
|
+
),
|
|
1725
|
+
...r,
|
|
1726
|
+
children: [
|
|
1727
|
+
n,
|
|
1728
|
+
/* @__PURE__ */ o.jsx(Xe, { className: "ml-auto h-4 w-4" })
|
|
1729
|
+
]
|
|
1730
|
+
}
|
|
1731
|
+
));
|
|
1732
|
+
qn.displayName = Un.displayName;
|
|
1733
|
+
const Hn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
|
|
1734
|
+
Gn,
|
|
1735
|
+
{
|
|
1736
|
+
ref: n,
|
|
1737
|
+
className: P(
|
|
1738
|
+
"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",
|
|
1739
|
+
t
|
|
1740
|
+
),
|
|
1741
|
+
...e
|
|
1742
|
+
}
|
|
1743
|
+
));
|
|
1744
|
+
Hn.displayName = Gn.displayName;
|
|
1745
|
+
const zn = u.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__PURE__ */ o.jsx(Tn, { children: /* @__PURE__ */ o.jsx(
|
|
1746
|
+
kn,
|
|
1747
|
+
{
|
|
1748
|
+
ref: r,
|
|
1749
|
+
sideOffset: e,
|
|
1750
|
+
className: P(
|
|
1751
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1752
|
+
"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",
|
|
1753
|
+
t
|
|
1754
|
+
),
|
|
1755
|
+
...n
|
|
1756
|
+
}
|
|
1757
|
+
) }));
|
|
1758
|
+
zn.displayName = kn.displayName;
|
|
1759
|
+
const Vn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1760
|
+
Ln,
|
|
1761
|
+
{
|
|
1762
|
+
ref: r,
|
|
1763
|
+
className: P(
|
|
1764
|
+
"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",
|
|
1765
|
+
e && "pl-8",
|
|
1766
|
+
t
|
|
1767
|
+
),
|
|
1768
|
+
...n
|
|
1769
|
+
}
|
|
1770
|
+
));
|
|
1771
|
+
Vn.displayName = Ln.displayName;
|
|
1772
|
+
const ls = u.forwardRef(({ className: t, children: e, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
|
|
1773
|
+
Kn,
|
|
1774
|
+
{
|
|
1775
|
+
ref: a,
|
|
1776
|
+
className: P(
|
|
1777
|
+
"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",
|
|
1778
|
+
t
|
|
1779
|
+
),
|
|
1780
|
+
checked: n,
|
|
1781
|
+
...r,
|
|
1782
|
+
children: [
|
|
1783
|
+
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(Or, { className: "h-4 w-4" }) }) }),
|
|
1784
|
+
e
|
|
1785
|
+
]
|
|
1786
|
+
}
|
|
1787
|
+
));
|
|
1788
|
+
ls.displayName = Kn.displayName;
|
|
1789
|
+
const ds = u.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ o.jsxs(
|
|
1790
|
+
$n,
|
|
1791
|
+
{
|
|
1792
|
+
ref: r,
|
|
1793
|
+
className: P(
|
|
1794
|
+
"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",
|
|
1795
|
+
t
|
|
1796
|
+
),
|
|
1797
|
+
...n,
|
|
1798
|
+
children: [
|
|
1799
|
+
/* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(da, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1800
|
+
e
|
|
1801
|
+
]
|
|
1802
|
+
}
|
|
1803
|
+
));
|
|
1804
|
+
ds.displayName = $n.displayName;
|
|
1805
|
+
const Yn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
|
|
1806
|
+
Fn,
|
|
1807
|
+
{
|
|
1808
|
+
ref: r,
|
|
1809
|
+
className: P(
|
|
1810
|
+
"px-2 py-1.5 text-sm font-semibold",
|
|
1811
|
+
e && "pl-8",
|
|
1812
|
+
t
|
|
1813
|
+
),
|
|
1814
|
+
...n
|
|
1815
|
+
}
|
|
1816
|
+
));
|
|
1817
|
+
Yn.displayName = Fn.displayName;
|
|
1818
|
+
const Xn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
|
|
1819
|
+
Qn,
|
|
1820
|
+
{
|
|
1821
|
+
ref: n,
|
|
1822
|
+
className: P("-mx-1 my-1 h-px bg-muted", t),
|
|
1823
|
+
...e
|
|
1824
|
+
}
|
|
1825
|
+
));
|
|
1826
|
+
Xn.displayName = Qn.displayName;
|
|
1827
|
+
const hs = () => {
|
|
1828
|
+
const { navigation: t } = Ve();
|
|
1829
|
+
return t.length <= 1 ? null : /* @__PURE__ */ o.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
|
|
1830
|
+
$e,
|
|
1831
|
+
{
|
|
1832
|
+
className: ({ isActive: n }) => Tr(
|
|
551
1833
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
552
|
-
|
|
1834
|
+
n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
553
1835
|
),
|
|
554
1836
|
to: e.path,
|
|
555
1837
|
children: e.label
|
|
556
1838
|
}
|
|
557
1839
|
) }, e.label)) }) });
|
|
558
|
-
},
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
1840
|
+
}, Wn = ({ item: t }) => t.children ? /* @__PURE__ */ o.jsxs(us, { children: [
|
|
1841
|
+
/* @__PURE__ */ o.jsx(qn, { children: t.label }),
|
|
1842
|
+
/* @__PURE__ */ o.jsx(cs, { children: /* @__PURE__ */ o.jsx(Hn, { children: t.children.map((e, n) => (
|
|
1843
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
1844
|
+
/* @__PURE__ */ o.jsx(Wn, { item: e }, n)
|
|
1845
|
+
)) }) })
|
|
1846
|
+
] }, t.label) : /* @__PURE__ */ o.jsx(Ee, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Vn, { children: t.label }, t.label) }), Jn = kt(function() {
|
|
1847
|
+
const [e, n] = kr(), { isAuthenticated: r, profile: a, isAuthEnabled: s } = Ar(), { pathname: i } = J(), c = Ve(), { page: l, plugins: p } = c, f = e ? pa : fa;
|
|
1848
|
+
return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1849
|
+
/* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
|
|
1850
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Ee, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1851
|
+
(l == null ? void 0 : l.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1852
|
+
/* @__PURE__ */ o.jsx(
|
|
1853
|
+
"img",
|
|
571
1854
|
{
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
]
|
|
1855
|
+
src: l.logo.src.light,
|
|
1856
|
+
alt: l.logo.alt ?? l.pageTitle,
|
|
1857
|
+
style: { width: l.logo.width },
|
|
1858
|
+
className: P("h-10", e && "hidden"),
|
|
1859
|
+
loading: "lazy"
|
|
578
1860
|
}
|
|
579
|
-
)
|
|
580
|
-
|
|
1861
|
+
),
|
|
1862
|
+
/* @__PURE__ */ o.jsx(
|
|
1863
|
+
"img",
|
|
1864
|
+
{
|
|
1865
|
+
src: l.logo.src.dark,
|
|
1866
|
+
alt: l.logo.alt ?? l.pageTitle,
|
|
1867
|
+
style: { width: l.logo.width },
|
|
1868
|
+
className: P("h-10", !e && "hidden"),
|
|
1869
|
+
loading: "lazy"
|
|
1870
|
+
}
|
|
1871
|
+
)
|
|
1872
|
+
] }),
|
|
1873
|
+
/* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
|
|
1874
|
+
] }) }) }),
|
|
1875
|
+
/* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1876
|
+
/* @__PURE__ */ o.jsx("div", { className: "w-full max-w-prose" }),
|
|
1877
|
+
/* @__PURE__ */ o.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
|
|
1878
|
+
s && !r ? /* @__PURE__ */ o.jsx(Be, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ o.jsx(
|
|
1879
|
+
Ee,
|
|
581
1880
|
{
|
|
582
|
-
|
|
583
|
-
|
|
1881
|
+
to: {
|
|
1882
|
+
pathname: "/signin",
|
|
1883
|
+
search: `?redirect=${encodeURIComponent(i)}`
|
|
1884
|
+
},
|
|
584
1885
|
children: "Login"
|
|
585
1886
|
}
|
|
586
|
-
) }),
|
|
587
|
-
|
|
1887
|
+
) }) : /* @__PURE__ */ o.jsxs(ss, { children: [
|
|
1888
|
+
/* @__PURE__ */ o.jsx(is, { asChild: !0, children: /* @__PURE__ */ o.jsx(Be, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
|
|
1889
|
+
/* @__PURE__ */ o.jsxs(zn, { className: "w-56", children: [
|
|
1890
|
+
/* @__PURE__ */ o.jsx(Yn, { children: "My Account" }),
|
|
1891
|
+
/* @__PURE__ */ o.jsx(Xn, {}),
|
|
1892
|
+
p.filter((d) => Qa(d)).flatMap((d) => d.getProfileMenuItems(c)).map((d) => /* @__PURE__ */ o.jsx(Wn, { item: d }, d.label))
|
|
1893
|
+
] })
|
|
1894
|
+
] }),
|
|
1895
|
+
/* @__PURE__ */ o.jsx(
|
|
588
1896
|
"button",
|
|
589
1897
|
{
|
|
1898
|
+
type: "button",
|
|
1899
|
+
"aria-label": e ? "Switch to light mode" : "Switch to dark mode",
|
|
590
1900
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
591
|
-
onClick:
|
|
592
|
-
children: /* @__PURE__ */
|
|
1901
|
+
onClick: n,
|
|
1902
|
+
children: /* @__PURE__ */ o.jsx(f, { size: 18 })
|
|
593
1903
|
}
|
|
594
1904
|
)
|
|
595
1905
|
] })
|
|
596
1906
|
] })
|
|
597
1907
|
] }),
|
|
598
|
-
/* @__PURE__ */
|
|
1908
|
+
/* @__PURE__ */ o.jsx(hs, {})
|
|
599
1909
|
] }) });
|
|
600
|
-
}),
|
|
601
|
-
Header:
|
|
602
|
-
},
|
|
603
|
-
|
|
604
|
-
|
|
1910
|
+
}), Zn = {
|
|
1911
|
+
Header: Jn
|
|
1912
|
+
}, ps = Tt(Zn), fs = ps.Provider, ms = ({
|
|
1913
|
+
children: t,
|
|
1914
|
+
...e
|
|
1915
|
+
}) => {
|
|
1916
|
+
var R, N;
|
|
1917
|
+
const n = Le(
|
|
1918
|
+
() => ({ ...Zn, ...e.overrides }),
|
|
1919
|
+
[e.overrides]
|
|
1920
|
+
), r = Le(() => {
|
|
1921
|
+
var D;
|
|
1922
|
+
return {
|
|
1923
|
+
...(e.plugins ?? []).filter(Ha).flatMap(
|
|
1924
|
+
(w) => w.getMdxComponents ? [w.getMdxComponents()] : []
|
|
1925
|
+
).reduce((w, E) => ({ ...w, ...E }), {}),
|
|
1926
|
+
...Fr,
|
|
1927
|
+
...(D = e.mdx) == null ? void 0 : D.components
|
|
1928
|
+
};
|
|
1929
|
+
}, [(R = e.mdx) == null ? void 0 : R.components, e.plugins]), [a, s] = le(!1), { stagger: i } = qr(Qe), [c, l] = le(!1), p = vr(), f = ge("idle"), d = Le(
|
|
1930
|
+
() => c ? { stagger: !0 } : { stagger: i },
|
|
1931
|
+
[i, c]
|
|
1932
|
+
), g = xr();
|
|
1933
|
+
W(() => {
|
|
1934
|
+
c || l(!0);
|
|
1935
|
+
}, [c, g.location]);
|
|
1936
|
+
const [v] = le(() => new Va(e));
|
|
1937
|
+
W(() => {
|
|
1938
|
+
f.current !== "pending" && (f.current = "pending", v.initialize({ navigate: p }).then(() => {
|
|
1939
|
+
f.current = "done", s(!0);
|
|
1940
|
+
}));
|
|
1941
|
+
}, [v, p]);
|
|
1942
|
+
const x = (N = e.plugins) == null ? void 0 : N.filter(qa).map((_, D) => {
|
|
1943
|
+
var w;
|
|
1944
|
+
return /* @__PURE__ */ o.jsx(Hr, { children: (w = _.getHead) == null ? void 0 : w.call(_) }, D);
|
|
1945
|
+
});
|
|
1946
|
+
return a ? /* @__PURE__ */ o.jsxs(ra, { client: zt, children: [
|
|
1947
|
+
/* @__PURE__ */ o.jsx(Ge, { children: x }),
|
|
1948
|
+
/* @__PURE__ */ o.jsx(Qe.Provider, { value: d, children: /* @__PURE__ */ o.jsx(aa, { value: v, children: /* @__PURE__ */ o.jsx(ur, { components: r, children: /* @__PURE__ */ o.jsx(Lr, { children: /* @__PURE__ */ o.jsx(fs, { value: n, children: /* @__PURE__ */ o.jsx(fr, { slotlets: e.slotlets, children: /* @__PURE__ */ o.jsx(Kr, { children: t ?? /* @__PURE__ */ o.jsx(St, {}) }) }) }) }) }) }) })
|
|
1949
|
+
] }) : null;
|
|
1950
|
+
}, gs = kt(ms), er = (t) => /* @__PURE__ */ o.jsx($a, { FallbackComponent: Ya, children: /* @__PURE__ */ o.jsx(gs, { ...t }) });
|
|
1951
|
+
er.displayName = "DevPortal";
|
|
1952
|
+
const vs = () => {
|
|
1953
|
+
const t = J(), { setActiveAnchor: e } = He();
|
|
1954
|
+
W(() => {
|
|
605
1955
|
if (!t.hash) return;
|
|
606
|
-
const
|
|
607
|
-
if (
|
|
1956
|
+
const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
|
|
1957
|
+
if (r) {
|
|
608
1958
|
requestAnimationFrame(() => {
|
|
609
|
-
|
|
1959
|
+
r.scrollIntoView(), requestIdleCallback(() => e(n));
|
|
610
1960
|
});
|
|
611
1961
|
return;
|
|
612
1962
|
}
|
|
613
|
-
const
|
|
614
|
-
const
|
|
615
|
-
|
|
1963
|
+
const a = new MutationObserver((s, i) => {
|
|
1964
|
+
const c = document.getElementById(decodeURIComponent(n));
|
|
1965
|
+
c && (c.scrollIntoView(), requestIdleCallback(() => e(n)), i.disconnect());
|
|
616
1966
|
});
|
|
617
|
-
return
|
|
1967
|
+
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
618
1968
|
}, [t.hash, e]);
|
|
619
|
-
},
|
|
620
|
-
const t =
|
|
621
|
-
|
|
1969
|
+
}, xs = () => {
|
|
1970
|
+
const t = J(), e = ge(t.pathname);
|
|
1971
|
+
W(() => {
|
|
622
1972
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
623
1973
|
}, [t.pathname]);
|
|
624
|
-
},
|
|
1974
|
+
}, tr = ({
|
|
625
1975
|
item: t,
|
|
626
1976
|
defaultOpen: e,
|
|
627
|
-
path:
|
|
1977
|
+
path: n
|
|
628
1978
|
}) => {
|
|
629
|
-
const [
|
|
630
|
-
|
|
631
|
-
!
|
|
632
|
-
}, [
|
|
633
|
-
|
|
1979
|
+
const [r, a] = le(e), s = J(), i = ge(s.pathname), [c, l] = le(!1);
|
|
1980
|
+
W(() => {
|
|
1981
|
+
!r && i.current !== s.pathname && a(Ye(t, s.pathname, n)), i.current = s.pathname;
|
|
1982
|
+
}, [r, t, n, s.pathname]);
|
|
1983
|
+
const p = () => {
|
|
1984
|
+
l(!0), a((f) => !f);
|
|
1985
|
+
};
|
|
1986
|
+
return W(() => {
|
|
1987
|
+
l(!1);
|
|
1988
|
+
}, []), {
|
|
1989
|
+
open: r,
|
|
1990
|
+
onOpenChange: p,
|
|
1991
|
+
"data-animate": c
|
|
1992
|
+
};
|
|
1993
|
+
}, _e = $r(
|
|
634
1994
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
635
1995
|
{
|
|
636
1996
|
variants: {
|
|
@@ -644,251 +2004,210 @@ const wt = z("Sun", [
|
|
|
644
2004
|
}
|
|
645
2005
|
}
|
|
646
2006
|
}
|
|
647
|
-
),
|
|
2007
|
+
), ys = "data-anchor", nr = ({
|
|
648
2008
|
category: t,
|
|
649
2009
|
item: e,
|
|
650
|
-
activeAnchor:
|
|
651
|
-
currentTopNavItem:
|
|
652
|
-
basePath:
|
|
2010
|
+
activeAnchor: n,
|
|
2011
|
+
currentTopNavItem: r,
|
|
2012
|
+
basePath: a = ""
|
|
653
2013
|
}) => {
|
|
654
|
-
const
|
|
2014
|
+
const s = wt(e) ? Qt(a, e.path) : "", i = J(), c = tr({
|
|
655
2015
|
item: e,
|
|
656
|
-
path:
|
|
657
|
-
defaultOpen: () =>
|
|
2016
|
+
path: s,
|
|
2017
|
+
defaultOpen: () => Ye(e, i.pathname, a)
|
|
658
2018
|
});
|
|
659
|
-
if (
|
|
660
|
-
const
|
|
2019
|
+
if (oa(e)) {
|
|
2020
|
+
const p = P(
|
|
661
2021
|
"flex items-center gap-2",
|
|
662
|
-
|
|
663
|
-
isActive: e.href ===
|
|
2022
|
+
_e({
|
|
2023
|
+
isActive: e.href === i.pathname
|
|
664
2024
|
})
|
|
665
2025
|
);
|
|
666
|
-
return e.href.startsWith("http") ? /* @__PURE__ */
|
|
2026
|
+
return e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
|
|
667
2027
|
"a",
|
|
668
2028
|
{
|
|
669
|
-
className:
|
|
2029
|
+
className: p,
|
|
670
2030
|
href: e.href,
|
|
671
2031
|
target: "_blank",
|
|
672
2032
|
rel: "noopener noreferrer",
|
|
673
2033
|
children: [
|
|
674
2034
|
e.label,
|
|
675
|
-
/* @__PURE__ */
|
|
2035
|
+
/* @__PURE__ */ o.jsx(ha, { size: 14 })
|
|
676
2036
|
]
|
|
677
2037
|
}
|
|
678
|
-
) : /* @__PURE__ */
|
|
2038
|
+
) : /* @__PURE__ */ o.jsx($e, { className: p, to: e.href, children: e.label });
|
|
679
2039
|
}
|
|
680
|
-
const
|
|
681
|
-
/* @__PURE__ */
|
|
2040
|
+
const l = /* @__PURE__ */ o.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
2041
|
+
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
682
2042
|
e.icon,
|
|
683
|
-
typeof e.label != "string" ? e.label : /* @__PURE__ */
|
|
2043
|
+
typeof e.label != "string" ? e.label : /* @__PURE__ */ o.jsx("span", { className: "truncate", children: e.label })
|
|
684
2044
|
] }),
|
|
685
|
-
e.children && /* @__PURE__ */
|
|
686
|
-
|
|
2045
|
+
e.children && /* @__PURE__ */ o.jsx(
|
|
2046
|
+
Xe,
|
|
687
2047
|
{
|
|
688
2048
|
size: 16,
|
|
689
2049
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
690
2050
|
}
|
|
691
2051
|
)
|
|
692
2052
|
] });
|
|
693
|
-
return /* @__PURE__ */
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
/* @__PURE__ */ n.jsx(
|
|
701
|
-
xe,
|
|
702
|
-
{
|
|
703
|
-
className: L(
|
|
704
|
-
"group text-start",
|
|
705
|
-
R({ isActive: !1 })
|
|
706
|
-
),
|
|
707
|
-
children: b
|
|
708
|
-
}
|
|
2053
|
+
return /* @__PURE__ */ o.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ o.jsxs(Ft, { ...c, className: "flex flex-col", children: [
|
|
2054
|
+
/* @__PURE__ */ o.jsx(
|
|
2055
|
+
Lt,
|
|
2056
|
+
{
|
|
2057
|
+
className: P(
|
|
2058
|
+
"group text-start",
|
|
2059
|
+
_e({ isActive: !1 })
|
|
709
2060
|
),
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
2061
|
+
children: l
|
|
2062
|
+
}
|
|
2063
|
+
),
|
|
2064
|
+
/* @__PURE__ */ o.jsx(Kt, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((p) => /* @__PURE__ */ o.jsx(
|
|
2065
|
+
nr,
|
|
2066
|
+
{
|
|
2067
|
+
category: t,
|
|
2068
|
+
item: p,
|
|
2069
|
+
activeAnchor: n,
|
|
2070
|
+
currentTopNavItem: r,
|
|
2071
|
+
basePath: s
|
|
2072
|
+
},
|
|
2073
|
+
wt(p) ? p.path : p.href
|
|
2074
|
+
)) }) })
|
|
2075
|
+
] }) : e.path.startsWith("#") ? /* @__PURE__ */ o.jsx(
|
|
2076
|
+
lr,
|
|
725
2077
|
{
|
|
726
2078
|
to: e.path,
|
|
727
|
-
[
|
|
728
|
-
className:
|
|
729
|
-
isActive: e.path.slice(1) ===
|
|
2079
|
+
[ys]: e.path,
|
|
2080
|
+
className: _e({
|
|
2081
|
+
isActive: e.path.slice(1) === n,
|
|
730
2082
|
isMuted: e.muted
|
|
731
2083
|
}),
|
|
732
|
-
children:
|
|
2084
|
+
children: l
|
|
733
2085
|
}
|
|
734
|
-
) : /* @__PURE__ */
|
|
735
|
-
|
|
2086
|
+
) : /* @__PURE__ */ o.jsx(
|
|
2087
|
+
$e,
|
|
736
2088
|
{
|
|
737
|
-
className: ({ isActive:
|
|
738
|
-
to:
|
|
739
|
-
children:
|
|
2089
|
+
className: ({ isActive: p }) => _e({ isActive: p }),
|
|
2090
|
+
to: s,
|
|
2091
|
+
children: l
|
|
740
2092
|
}
|
|
741
2093
|
) });
|
|
742
|
-
},
|
|
2094
|
+
}, ws = ({
|
|
743
2095
|
category: t
|
|
744
2096
|
}) => {
|
|
745
|
-
const { activeAnchor: e } =
|
|
2097
|
+
const { activeAnchor: e } = He(), n = sa(), r = J(), a = t.collapsible ?? !0, s = tr({
|
|
746
2098
|
item: t,
|
|
747
|
-
path: (
|
|
748
|
-
defaultOpen: () => !
|
|
2099
|
+
path: (n == null ? void 0 : n.path) ?? "",
|
|
2100
|
+
defaultOpen: () => !a || t.expanded || Ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
|
|
749
2101
|
});
|
|
750
|
-
return /* @__PURE__ */
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
V(h) ? h.path + h.label : h.href
|
|
785
|
-
)) }) })
|
|
786
|
-
]
|
|
787
|
-
},
|
|
788
|
-
t.label
|
|
789
|
-
);
|
|
790
|
-
}, qt = ht(function({ children: e, className: s, pushMainContent: a }, r) {
|
|
791
|
-
return /* @__PURE__ */ n.jsx(
|
|
2102
|
+
return /* @__PURE__ */ o.jsxs(Ft, { ...s, children: [
|
|
2103
|
+
t.label.length > 0 ? /* @__PURE__ */ o.jsx(Lt, { asChild: a, disabled: !a, children: /* @__PURE__ */ o.jsxs(
|
|
2104
|
+
"h5",
|
|
2105
|
+
{
|
|
2106
|
+
className: P(
|
|
2107
|
+
"flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
|
|
2108
|
+
a ? "hover:bg-accent" : "cursor-auto"
|
|
2109
|
+
),
|
|
2110
|
+
children: [
|
|
2111
|
+
t.label,
|
|
2112
|
+
a && /* @__PURE__ */ o.jsx(
|
|
2113
|
+
Xe,
|
|
2114
|
+
{
|
|
2115
|
+
className: "group-data-[state=open]:rotate-90 transition",
|
|
2116
|
+
size: 16
|
|
2117
|
+
}
|
|
2118
|
+
)
|
|
2119
|
+
]
|
|
2120
|
+
}
|
|
2121
|
+
) }) : "Endpoints",
|
|
2122
|
+
/* @__PURE__ */ o.jsx(Kt, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ o.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((i, c) => /* @__PURE__ */ o.jsx(
|
|
2123
|
+
nr,
|
|
2124
|
+
{
|
|
2125
|
+
category: t,
|
|
2126
|
+
item: i,
|
|
2127
|
+
activeAnchor: e,
|
|
2128
|
+
currentTopNavItem: n,
|
|
2129
|
+
basePath: Qt(n == null ? void 0 : n.path, t.path)
|
|
2130
|
+
},
|
|
2131
|
+
c
|
|
2132
|
+
)) }) })
|
|
2133
|
+
] }, t.label);
|
|
2134
|
+
}, Ms = zr(function({ children: e, className: n, pushMainContent: r }, a) {
|
|
2135
|
+
return /* @__PURE__ */ o.jsx(
|
|
792
2136
|
"nav",
|
|
793
2137
|
{
|
|
794
|
-
"data-navigation": String(
|
|
795
|
-
className:
|
|
2138
|
+
"data-navigation": String(r),
|
|
2139
|
+
className: P(
|
|
796
2140
|
"peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
797
|
-
|
|
2141
|
+
n
|
|
798
2142
|
),
|
|
799
|
-
ref:
|
|
2143
|
+
ref: a,
|
|
800
2144
|
children: e
|
|
801
2145
|
}
|
|
802
2146
|
);
|
|
803
|
-
}),
|
|
804
|
-
const t =
|
|
805
|
-
return /* @__PURE__ */
|
|
806
|
-
|
|
2147
|
+
}), bs = () => {
|
|
2148
|
+
const t = ge(null), e = ia();
|
|
2149
|
+
return /* @__PURE__ */ o.jsxs(
|
|
2150
|
+
Ms,
|
|
807
2151
|
{
|
|
808
2152
|
ref: t,
|
|
809
2153
|
pushMainContent: e.data.items.length > 0,
|
|
810
|
-
children:
|
|
2154
|
+
children: [
|
|
2155
|
+
/* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-navigation" }),
|
|
2156
|
+
e.data.items.map((n) => /* @__PURE__ */ o.jsx(ws, { category: n }, n.label)),
|
|
2157
|
+
/* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-navigation" })
|
|
2158
|
+
]
|
|
811
2159
|
}
|
|
812
2160
|
);
|
|
813
|
-
},
|
|
814
|
-
const e =
|
|
815
|
-
|
|
816
|
-
const
|
|
817
|
-
return
|
|
818
|
-
e.pathname !==
|
|
819
|
-
}, [e.pathname,
|
|
820
|
-
/* @__PURE__ */
|
|
821
|
-
/* @__PURE__ */
|
|
822
|
-
(
|
|
823
|
-
(a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
|
|
2161
|
+
}, Cs = ({ children: t }) => {
|
|
2162
|
+
const e = J(), { setActiveAnchor: n } = He(), { meta: r } = Ve();
|
|
2163
|
+
vs(), xs();
|
|
2164
|
+
const a = ge(e.pathname);
|
|
2165
|
+
return W(() => {
|
|
2166
|
+
e.pathname !== a.current && n(""), a.current = e.pathname;
|
|
2167
|
+
}, [e.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2168
|
+
/* @__PURE__ */ o.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
|
|
2169
|
+
(r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
|
|
2170
|
+
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
|
|
824
2171
|
] }),
|
|
825
|
-
/* @__PURE__ */
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
|
|
2172
|
+
/* @__PURE__ */ o.jsx(Jn, {}),
|
|
2173
|
+
/* @__PURE__ */ o.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ o.jsxs(
|
|
2174
|
+
Vr,
|
|
828
2175
|
{
|
|
829
|
-
fallback: /* @__PURE__ */
|
|
2176
|
+
fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(la, {}) }),
|
|
830
2177
|
children: [
|
|
831
|
-
/* @__PURE__ */
|
|
832
|
-
/* @__PURE__ */
|
|
2178
|
+
/* @__PURE__ */ o.jsx(bs, {}),
|
|
2179
|
+
/* @__PURE__ */ o.jsxs(
|
|
833
2180
|
"main",
|
|
834
2181
|
{
|
|
835
|
-
className:
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
2182
|
+
className: P(
|
|
2183
|
+
"dark:border-white/10 translate-x-0 h-full",
|
|
2184
|
+
"lg:overflow-visible",
|
|
2185
|
+
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|
|
2186
|
+
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
|
|
2187
|
+
),
|
|
2188
|
+
children: [
|
|
2189
|
+
/* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-content" }),
|
|
2190
|
+
t ?? /* @__PURE__ */ o.jsx(St, {}),
|
|
2191
|
+
/* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-content" })
|
|
2192
|
+
]
|
|
840
2193
|
}
|
|
841
2194
|
)
|
|
842
2195
|
]
|
|
843
2196
|
}
|
|
844
2197
|
) })
|
|
845
2198
|
] });
|
|
846
|
-
};
|
|
847
|
-
function Tt({ plugins: t }) {
|
|
848
|
-
const e = H(() => {
|
|
849
|
-
const s = (t ?? []).flatMap(
|
|
850
|
-
(a) => we(a) ? a.getRoutes() : []
|
|
851
|
-
);
|
|
852
|
-
return Ze([
|
|
853
|
-
{
|
|
854
|
-
path: "/",
|
|
855
|
-
element: /* @__PURE__ */ n.jsx(ue, {}),
|
|
856
|
-
errorElement: /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
|
|
857
|
-
children: s
|
|
858
|
-
}
|
|
859
|
-
]);
|
|
860
|
-
}, [t]);
|
|
861
|
-
return /* @__PURE__ */ n.jsx(et, { router: e });
|
|
862
|
-
}
|
|
863
|
-
const It = (t) => {
|
|
864
|
-
const e = H(
|
|
865
|
-
() => ({ ...Ce, ...t.overrides }),
|
|
866
|
-
[t.overrides]
|
|
867
|
-
), s = H(
|
|
868
|
-
() => ({ ...tt, ...t.mdxComponents }),
|
|
869
|
-
[t.mdxComponents]
|
|
870
|
-
), a = H(() => new bt(t), [t]);
|
|
871
|
-
return I(() => {
|
|
872
|
-
a.initialize();
|
|
873
|
-
}, [a]), /* @__PURE__ */ n.jsx(st, { client: Ne, children: /* @__PURE__ */ n.jsx(at, { children: /* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Ot, { value: e, children: /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx(
|
|
874
|
-
Pe,
|
|
875
|
-
{
|
|
876
|
-
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
877
|
-
children: /* @__PURE__ */ n.jsx(
|
|
878
|
-
Tt,
|
|
879
|
-
{
|
|
880
|
-
plugins: [
|
|
881
|
-
...t.plugins ?? [],
|
|
882
|
-
...t.authentication ? [t.authentication] : []
|
|
883
|
-
]
|
|
884
|
-
}
|
|
885
|
-
)
|
|
886
|
-
}
|
|
887
|
-
) }) }) }) }) }) }) });
|
|
888
|
-
}, Et = je(It);
|
|
889
|
-
Et.displayName = "DevPortal";
|
|
2199
|
+
}, Ls = dr, Ks = Br, $s = er, Bs = Cs, Qs = Ee, Us = mr, Gs = ma, qs = Ia, Hs = Aa, zs = Be, Vs = Ge;
|
|
890
2200
|
export {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
2201
|
+
qs as Bootstrap,
|
|
2202
|
+
Hs as BootstrapStatic,
|
|
2203
|
+
zs as Button,
|
|
2204
|
+
Ks as Callout,
|
|
2205
|
+
$s as DevPortal,
|
|
2206
|
+
Vs as Head,
|
|
2207
|
+
Bs as Layout,
|
|
2208
|
+
Qs as Link,
|
|
2209
|
+
Us as RouterError,
|
|
2210
|
+
Gs as ServerError,
|
|
2211
|
+
Ls as useMDXComponents
|
|
894
2212
|
};
|
|
2213
|
+
//# sourceMappingURL=zudoku.components.js.map
|