zudoku 0.0.0-z7b86faab → 0.0.0-z8ac421f0
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/main.js +1 -1
- package/dist/app/main.js.map +1 -1
- package/dist/config/create-plugin.d.ts +2 -0
- package/dist/config/create-plugin.js +55 -0
- package/dist/config/create-plugin.js.map +1 -0
- package/dist/config/loader.js +2 -2
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +174 -124
- package/dist/config/validators/InputNavigationSchema.js +17 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/NavigationSchema.d.ts +10 -2
- package/dist/config/validators/NavigationSchema.js +7 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +6 -5
- package/dist/config/validators/validate.js +2 -0
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +36 -24
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/components/Bootstrap.js +1 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/MobileTopNavigation.js +2 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Slot.test.js +1 -1
- package/dist/lib/components/Slot.test.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +7 -1
- package/dist/lib/components/TopNavigation.js +7 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.d.ts +4 -1
- package/dist/lib/components/Zudoku.js +4 -7
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +9 -4
- package/dist/lib/components/context/ZudokuContext.js +4 -2
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.js +1 -1
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/context/ZudokuReactContext.d.ts +11 -0
- package/dist/lib/components/context/ZudokuReactContext.js +4 -0
- package/dist/lib/components/context/ZudokuReactContext.js.map +1 -0
- package/dist/lib/components/index.d.ts +18 -74
- package/dist/lib/components/index.js +19 -36
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.js +4 -3
- package/dist/lib/components/navigation/Navigation.js.map +1 -1
- package/dist/lib/components/navigation/NavigationCategory.js +8 -0
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/NavigationFilterContext.d.ts +8 -0
- package/dist/lib/components/navigation/NavigationFilterContext.js +12 -0
- package/dist/lib/components/navigation/NavigationFilterContext.js.map +1 -0
- package/dist/lib/components/navigation/NavigationFilterInput.d.ts +3 -0
- package/dist/lib/components/navigation/NavigationFilterInput.js +9 -0
- package/dist/lib/components/navigation/NavigationFilterInput.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.js +11 -1
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +2 -1
- package/dist/lib/components/navigation/utils.js +22 -1
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +2 -1
- package/dist/lib/core/ZudokuContext.js +3 -1
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/__internal.d.ts +1 -0
- package/dist/lib/core/__internal.js +2 -0
- package/dist/lib/core/__internal.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +5 -1
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/core/transform-config.d.ts +4 -2
- package/dist/lib/core/transform-config.js +33 -13
- package/dist/lib/core/transform-config.js.map +1 -1
- package/dist/lib/core/transform-config.test.d.ts +1 -0
- package/dist/lib/core/transform-config.test.js +83 -0
- package/dist/lib/core/transform-config.test.js.map +1 -0
- package/dist/lib/errors/ErrorAlert.js +1 -2
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +7 -30
- package/dist/lib/hooks/index.js +7 -15
- package/dist/lib/hooks/index.js.map +1 -1
- package/dist/lib/hooks/useEvent.test.js +1 -1
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +1 -1
- package/dist/lib/oas/graphql/circular.js +18 -35
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/circular.test.js +33 -2
- package/dist/lib/oas/graphql/circular.test.js.map +1 -1
- package/dist/lib/oas/parser/index.js +14 -5
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +8 -5
- package/dist/lib/plugins/openapi/ParamInfos.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/playground/fileUtils.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +3 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js +20 -0
- package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +7 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +2 -2
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +3 -2
- package/dist/lib/ui/Alert.js +9 -5
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/InputGroup.d.ts +16 -0
- package/dist/lib/ui/InputGroup.js +65 -0
- package/dist/lib/ui/InputGroup.js.map +1 -0
- package/dist/lib/ui/Secret.js +2 -2
- package/dist/lib/ui/Secret.js.map +1 -1
- package/dist/lib/util/flattenAllOf.d.ts +0 -2
- package/dist/lib/util/flattenAllOf.js +6 -46
- package/dist/lib/util/flattenAllOf.js.map +1 -1
- package/dist/lib/util/flattenAllOf.test.js +28 -1
- package/dist/lib/util/flattenAllOf.test.js.map +1 -1
- package/dist/lib/util/flattenAllOfProcessor.d.ts +2 -0
- package/dist/lib/util/flattenAllOfProcessor.js +48 -0
- package/dist/lib/util/flattenAllOfProcessor.js.map +1 -0
- package/dist/lib/util/readFrontmatter.js +2 -1
- package/dist/lib/util/readFrontmatter.js.map +1 -1
- package/dist/vite/api/SchemaManager.js +1 -1
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +1 -1
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/build.js +91 -73
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +5 -2
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/mdx/remark-inject-filepath.js +5 -1
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js +3 -2
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
- package/dist/vite/plugin-config.js +16 -4
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.js +9 -7
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-markdown-export.js +4 -2
- package/dist/vite/plugin-markdown-export.js.map +1 -1
- package/dist/vite/plugin-theme.js +2 -1
- package/dist/vite/plugin-theme.js.map +1 -1
- package/dist/vite/prerender/prerender.js +3 -1
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.js +3 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/lib/{ClaudeLogo-DJ9bU-sO.js → ClaudeLogo-Br8C_vTq.js} +26 -22
- package/lib/{ClaudeLogo-DJ9bU-sO.js.map → ClaudeLogo-Br8C_vTq.js.map} +1 -1
- package/lib/Drawer-Ch7927PF.js.map +1 -1
- package/lib/{HydrationBoundary-CNF2ZV3E.js → HydrationBoundary-CJu4vUlG.js} +6 -6
- package/lib/{HydrationBoundary-CNF2ZV3E.js.map → HydrationBoundary-CJu4vUlG.js.map} +1 -1
- package/lib/{MdxPage-stpAoBtx.js → MdxPage-C0QFAsgv.js} +8 -8
- package/lib/{MdxPage-stpAoBtx.js.map → MdxPage-C0QFAsgv.js.map} +1 -1
- package/lib/Mermaid-Chx5BPHn.js +104 -0
- package/lib/Mermaid-Chx5BPHn.js.map +1 -0
- package/lib/{OAuthErrorPage-DJ811Bn_.js → OAuthErrorPage-CFz_gBFx.js} +22 -19
- package/lib/{OAuthErrorPage-DJ811Bn_.js.map → OAuthErrorPage-CFz_gBFx.js.map} +1 -1
- package/lib/{OasProvider-CS_ASmBB.js → OasProvider-BwIOIlky.js} +3 -3
- package/lib/{OasProvider-CS_ASmBB.js.map → OasProvider-BwIOIlky.js.map} +1 -1
- package/lib/OperationList-DYRzbPJu.js +5908 -0
- package/lib/OperationList-DYRzbPJu.js.map +1 -0
- package/lib/{RouteGuard--A04ESy8.js → RouteGuard-CVs3yvEs.js} +5 -5
- package/lib/{RouteGuard--A04ESy8.js.map → RouteGuard-CVs3yvEs.js.map} +1 -1
- package/lib/{SchemaList-BJZJv1gD.js → SchemaList-D4FEyoDV.js} +8 -8
- package/lib/{SchemaList-BJZJv1gD.js.map → SchemaList-D4FEyoDV.js.map} +1 -1
- package/lib/{SchemaView-U4JMYB3N.js → SchemaView-ScvkhsYE.js} +116 -110
- package/lib/SchemaView-ScvkhsYE.js.map +1 -0
- package/lib/{Secret-BDBqq4p3.js → Secret-DUpgv4V3.js} +92 -72
- package/lib/Secret-DUpgv4V3.js.map +1 -0
- package/lib/{SignUp-DCBViNUi.js → SignUp-Dug1jAGC.js} +31 -26
- package/lib/{SignUp-DCBViNUi.js.map → SignUp-Dug1jAGC.js.map} +1 -1
- package/lib/{SyntaxHighlight-Dshjn3Zf.js → SyntaxHighlight-BMu0b_hF.js} +9 -9
- package/lib/{SyntaxHighlight-Dshjn3Zf.js.map → SyntaxHighlight-BMu0b_hF.js.map} +1 -1
- package/lib/{Toc-Cgz6CPiE.js → Toc-BiJ2YL0O.js} +2 -2
- package/lib/{Toc-Cgz6CPiE.js.map → Toc-BiJ2YL0O.js.map} +1 -1
- package/lib/{index-CL8eDnQW.js → Zudoku-iyiXgWFY.js} +2996 -2859
- package/lib/Zudoku-iyiXgWFY.js.map +1 -0
- package/lib/ZudokuContext-CYyb_PB_.js +175 -0
- package/lib/ZudokuContext-CYyb_PB_.js.map +1 -0
- package/lib/ZudokuReactContext-DGJAP1sN.js +222 -0
- package/lib/ZudokuReactContext-DGJAP1sN.js.map +1 -0
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js.map +1 -1
- package/lib/{circular-BmMJjG1v.js → circular-BOpxmAie.js} +1327 -1346
- package/lib/{circular-BmMJjG1v.js.map → circular-BOpxmAie.js.map} +1 -1
- package/lib/createServer-BunbJzB5.js +13038 -0
- package/lib/createServer-BunbJzB5.js.map +1 -0
- package/lib/{errors-b9I-fAOY.js → errors-B77S9iOc.js} +3 -3
- package/lib/{errors-b9I-fAOY.js.map → errors-B77S9iOc.js.map} +1 -1
- package/lib/{firebase-BCXX7Qv5.js → firebase-C7XKRGLf.js} +26 -25
- package/lib/{firebase-BCXX7Qv5.js.map → firebase-C7XKRGLf.js.map} +1 -1
- package/lib/{hook-BGlHBdET.js → hook-Dz_n9SoE.js} +16 -15
- package/lib/{hook-BGlHBdET.js.map → hook-Dz_n9SoE.js.map} +1 -1
- package/lib/{index-UOLtazB8.js → index-BDp2MTiq.js} +2 -2
- package/lib/{index-UOLtazB8.js.map → index-BDp2MTiq.js.map} +1 -1
- package/lib/{index-O9RHI87z.js → index-Bx29qHVi.js} +589 -551
- package/lib/index-Bx29qHVi.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/index-DAWHN3cH.js +86 -0
- package/lib/index-DAWHN3cH.js.map +1 -0
- package/lib/index.esm-BYObtETB.js.map +1 -1
- package/lib/{index.esm-B_0dvNjB.js → index.esm-Ca5zvoff.js} +20 -20
- package/lib/{index.esm-B_0dvNjB.js.map → index.esm-Ca5zvoff.js.map} +1 -1
- package/lib/{index.esm-C5CBsVzN.js → index.esm-Cth49JBv.js} +2 -2
- package/lib/index.esm-Cth49JBv.js.map +1 -0
- package/lib/{invariant-BJAl77rw.js → invariant-B_t_F2s_.js} +3 -3
- package/lib/{invariant-BJAl77rw.js.map → invariant-B_t_F2s_.js.map} +1 -1
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -1
- package/lib/{mutation-BISOc7OM.js → mutation-B7eFBLZY.js} +2 -2
- package/lib/{mutation-BISOc7OM.js.map → mutation-B7eFBLZY.js.map} +1 -1
- package/lib/ui/Alert.js +32 -20
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/InputGroup.js +155 -0
- package/lib/ui/InputGroup.js.map +1 -0
- package/lib/ui/Secret.js +2 -2
- package/lib/ui/Secret.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/useExposedProps-CzTDfXfq.js +30 -0
- package/lib/useExposedProps-CzTDfXfq.js.map +1 -0
- package/lib/{useMutation-CFMGlAMW.js → useMutation-CErliDZ9.js} +5 -5
- package/lib/{useMutation-CFMGlAMW.js.map → useMutation-CErliDZ9.js.map} +1 -1
- package/lib/{useSuspenseQuery-CSB_rVek.js → useQuery-ht7aWJ3S.js} +432 -446
- package/lib/useQuery-ht7aWJ3S.js.map +1 -0
- package/lib/useSuspenseQuery-DQH4Bmc2.js +18 -0
- package/lib/useSuspenseQuery-DQH4Bmc2.js.map +1 -0
- package/lib/zudoku.__internal.js +1519 -1033
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +6 -5
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +14 -13
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-firebase.js +5 -5
- package/lib/zudoku.auth-openid.js +8 -7
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +4 -4
- package/lib/zudoku.components.js +31 -29
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +24 -11
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.mermaid.js +5 -4
- package/lib/zudoku.mermaid.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +41 -36
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +156 -153
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/lib/zudoku.plugin-search-pagefind.js +19 -18
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/lib/zudoku.react-query.js +26 -25
- package/lib/zudoku.react-query.js.map +1 -1
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +17 -10
- package/src/app/defaultTheme.css +4 -0
- package/src/app/main.css +2 -0
- package/src/app/main.tsx +1 -1
- package/src/lib/components/Bootstrap.tsx +1 -4
- package/src/lib/components/MobileTopNavigation.tsx +13 -8
- package/src/lib/components/Slot.test.tsx +1 -1
- package/src/lib/components/TopNavigation.tsx +25 -7
- package/src/lib/components/Zudoku.tsx +18 -14
- package/src/lib/components/context/ZudokuContext.ts +3 -6
- package/src/lib/components/context/ZudokuProvider.tsx +1 -1
- package/src/lib/components/context/ZudokuReactContext.tsx +17 -0
- package/src/lib/components/index.ts +19 -39
- package/src/lib/components/navigation/Navigation.tsx +4 -3
- package/src/lib/components/navigation/NavigationCategory.tsx +9 -0
- package/src/lib/components/navigation/NavigationFilterContext.tsx +28 -0
- package/src/lib/components/navigation/NavigationFilterInput.tsx +35 -0
- package/src/lib/components/navigation/NavigationItem.tsx +17 -1
- package/src/lib/components/navigation/utils.ts +32 -1
- package/src/lib/core/ZudokuContext.ts +7 -1
- package/src/lib/core/__internal.tsx +2 -0
- package/src/lib/core/plugins.ts +7 -3
- package/src/lib/core/transform-config.test.tsx +99 -0
- package/src/lib/core/transform-config.ts +57 -19
- package/src/lib/errors/ErrorAlert.tsx +1 -6
- package/src/lib/hooks/index.ts +7 -16
- package/src/lib/hooks/useEvent.test.tsx +1 -1
- package/src/lib/oas/graphql/circular.test.ts +37 -2
- package/src/lib/oas/graphql/circular.ts +25 -51
- package/src/lib/oas/parser/index.ts +17 -6
- package/src/lib/plugins/openapi/ParamInfos.tsx +10 -5
- package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -0
- package/src/lib/plugins/openapi/playground/fileUtils.ts +4 -0
- package/src/lib/plugins/openapi/playground/result-panel/AudioPlayer.tsx +50 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +33 -17
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +2 -0
- package/src/lib/ui/Alert.tsx +17 -5
- package/src/lib/ui/InputGroup.tsx +168 -0
- package/src/lib/ui/Secret.tsx +2 -2
- package/src/lib/util/flattenAllOf.test.ts +34 -1
- package/src/lib/util/flattenAllOf.ts +7 -57
- package/src/lib/util/flattenAllOfProcessor.ts +58 -0
- package/src/lib/util/readFrontmatter.ts +2 -1
- package/src/zuplo/enrich-with-zuplo-mcp.ts +168 -0
- package/src/zuplo/enrich-with-zuplo.ts +254 -0
- package/src/zuplo/policy-types.ts +46 -0
- package/src/zuplo/with-zuplo-processors.ts +35 -0
- package/src/zuplo/with-zuplo.ts +14 -0
- package/lib/Mermaid-Koc3z8mU.js +0 -102
- package/lib/Mermaid-Koc3z8mU.js.map +0 -1
- package/lib/OperationList-Dq_AB4W9.js +0 -5820
- package/lib/OperationList-Dq_AB4W9.js.map +0 -1
- package/lib/SchemaView-U4JMYB3N.js.map +0 -1
- package/lib/Secret-BDBqq4p3.js.map +0 -1
- package/lib/Separator-BXt1LYnm.js +0 -27
- package/lib/Separator-BXt1LYnm.js.map +0 -1
- package/lib/ZudokuContext-BZB1TWdT.js +0 -387
- package/lib/ZudokuContext-BZB1TWdT.js.map +0 -1
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +0 -9
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +0 -1
- package/lib/createServer-CLSZ7hWJ.js +0 -16693
- package/lib/createServer-CLSZ7hWJ.js.map +0 -1
- package/lib/index-CL8eDnQW.js.map +0 -1
- package/lib/index-DBjOT2H1.js +0 -133
- package/lib/index-DBjOT2H1.js.map +0 -1
- package/lib/index-O9RHI87z.js.map +0 -1
- package/lib/index.esm-C5CBsVzN.js.map +0 -1
- package/lib/useSuspenseQuery-CSB_rVek.js.map +0 -1
|
@@ -1,41 +1,45 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { ChevronsDownUpIcon as
|
|
2
|
+
import { ChevronsDownUpIcon as kn, ChevronsUpDownIcon as En, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as me, TrashIcon as Rn, FileInput as In, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as Dn, TableOfContentsIcon as Fn, LockIcon as zn, CircleAlertIcon as Vn, Circle as Bn, Unlink2Icon as _n, DownloadIcon as Ft, CornerDownRightIcon as qn, MinusCircleIcon as bt, CornerDownLeftIcon as Un, SquareCodeIcon as Mn, EyeOffIcon as Gn, EyeIcon as Hn, UnplugIcon as Qn, SendIcon as Jn, CopyIcon as Wn, IdCardLanyardIcon as Xn, ShapesIcon as Kn, PlayIcon as Zn, CirclePlayIcon as Yn } from "lucide-react";
|
|
3
3
|
import { r as es, d as ts, a as ns, N as ss, aL as rs, m as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
|
|
4
|
-
import { Button as
|
|
5
|
-
import {
|
|
6
|
-
import { Z as
|
|
4
|
+
import { Button as K } from "./ui/Button.js";
|
|
5
|
+
import { e as as, j as V } from "./ZudokuContext-CYyb_PB_.js";
|
|
6
|
+
import { Z as os } from "./invariant-B_t_F2s_.js";
|
|
7
7
|
import * as xe from "react";
|
|
8
|
-
import { createContext as
|
|
9
|
-
import { VisuallyHidden as
|
|
10
|
-
import { z as
|
|
11
|
-
import {
|
|
8
|
+
import { createContext as zt, use as is, useRef as E, useEffect as U, useMemo as Vt, useCallback as D, startTransition as ls, useState as k, Fragment as le, useLayoutEffect as cs, useTransition as ds, useContext as us } from "react";
|
|
9
|
+
import { VisuallyHidden as ms } from "@radix-ui/react-visually-hidden";
|
|
10
|
+
import { z as ps } from "./index-DAWHN3cH.js";
|
|
11
|
+
import { u as hs } from "./hook-Dz_n9SoE.js";
|
|
12
|
+
import { c as Ze, p as Ye, a as Bt, s as fs } from "./ZudokuReactContext-DGJAP1sN.js";
|
|
13
|
+
import { B } from "./Button-GUVe7pmt.js";
|
|
12
14
|
import { D as et, a as tt, c as nt, d as _t, e as qt, g as gs } from "./Dialog-hlvmmQ_c.js";
|
|
13
|
-
import {
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as
|
|
15
|
+
import { j as Ct, k as Nt, l as wt, m as xs, g as ys } from "./Zudoku-iyiXgWFY.js";
|
|
16
|
+
import { u as vs } from "./useMutation-CErliDZ9.js";
|
|
17
|
+
import { u as oe, b as Ut, C as St, a as bs, F as js } from "./index.esm-BYObtETB.js";
|
|
16
18
|
import * as st from "@radix-ui/react-collapsible";
|
|
17
|
-
import {
|
|
18
|
-
import { c as
|
|
19
|
+
import { a as Mt, b as Gt, c as Ht, d as Qt, f as Ae, S as Cs, h as Ns } from "./Secret-DUpgv4V3.js";
|
|
20
|
+
import { c as S } from "./cn-5-Gd1Dss.js";
|
|
19
21
|
import { u as ws } from "./useCopyToClipboard-B_085nfO.js";
|
|
20
|
-
import { u as
|
|
21
|
-
import { D as Jt, a as Wt, b as Xt, d as
|
|
22
|
-
import { I as
|
|
22
|
+
import { u as Ss } from "./useLatest-hmRS46UF.js";
|
|
23
|
+
import { D as Jt, a as Wt, b as Xt, d as Ts, e as As, f as Os, c as Oe } from "./DropdownMenu-DN0jNrjj.js";
|
|
24
|
+
import { I as Ps } from "./Input-Cx-GeKoF.js";
|
|
23
25
|
import { c as ye } from "./createVariantComponent-Dc0vtOvr.js";
|
|
24
26
|
import * as Tt from "@radix-ui/react-checkbox";
|
|
25
|
-
import * as
|
|
26
|
-
import { PopoverAnchor as
|
|
27
|
-
import { P as
|
|
28
|
-
import { f as ks, g as
|
|
29
|
-
import { C as
|
|
27
|
+
import * as Pe from "@radix-ui/react-popover";
|
|
28
|
+
import { PopoverAnchor as $s } from "@radix-ui/react-popover";
|
|
29
|
+
import { P as Ls } from "./index-CrcNWbel.js";
|
|
30
|
+
import { f as ks, g as Es, C as Rs, b as Is } from "./Command-N6VujV30.js";
|
|
31
|
+
import { C as Ds } from "./Card-DCdq37aA.js";
|
|
30
32
|
import * as Kt from "@radix-ui/react-label";
|
|
31
|
-
import { c as
|
|
33
|
+
import { c as Fs } from "./index-DI5SPFK9.js";
|
|
32
34
|
import * as he from "@radix-ui/react-radio-group";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
+
import { S as zs } from "./Spinner-CI6bRyZw.js";
|
|
36
|
+
import { A as Vs, a as Bs, b as _s } from "./Mermaid-Chx5BPHn.js";
|
|
37
|
+
import { g as qs } from "./useQuery-ht7aWJ3S.js";
|
|
38
|
+
import { u as Us } from "./useSuspenseQuery-DQH4Bmc2.js";
|
|
35
39
|
let _e;
|
|
36
|
-
const
|
|
40
|
+
const Ms = (e) => {
|
|
37
41
|
if (e.errors?.[0])
|
|
38
|
-
throw new
|
|
42
|
+
throw new os(e.errors[0].message, {
|
|
39
43
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
40
44
|
});
|
|
41
45
|
};
|
|
@@ -43,7 +47,7 @@ class Gs {
|
|
|
43
47
|
constructor(n) {
|
|
44
48
|
this.config = n;
|
|
45
49
|
}
|
|
46
|
-
#e = async () => (_e || (_e = import("./createServer-
|
|
50
|
+
#e = async () => (_e || (_e = import("./createServer-BunbJzB5.js").then(
|
|
47
51
|
(n) => n.createServer(this.config)
|
|
48
52
|
)), _e);
|
|
49
53
|
#t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
|
|
@@ -56,7 +60,7 @@ class Gs {
|
|
|
56
60
|
if (!r.ok)
|
|
57
61
|
throw new Error("Network response was not ok");
|
|
58
62
|
const o = await r.json();
|
|
59
|
-
return
|
|
63
|
+
return Ms(o), o.data;
|
|
60
64
|
};
|
|
61
65
|
}
|
|
62
66
|
function qe(e, n) {
|
|
@@ -95,13 +99,13 @@ function Zt(e, n) {
|
|
|
95
99
|
const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = n.line - 1, o = e.locationOffset.line - 1, i = n.line + o, c = n.line === 1 ? s : 0, l = n.column + c, m = `${e.name}:${i}:${l}
|
|
96
100
|
`, d = a.split(/\r\n|[\n\r]/g), f = d[r];
|
|
97
101
|
if (f.length > 120) {
|
|
98
|
-
const x = Math.floor(l / 80),
|
|
102
|
+
const x = Math.floor(l / 80), p = l % 80, v = [];
|
|
99
103
|
for (let u = 0; u < f.length; u += 80)
|
|
100
104
|
v.push(f.slice(u, u + 80));
|
|
101
105
|
return m + At([
|
|
102
106
|
[`${i} |`, v[0]],
|
|
103
107
|
...v.slice(1, x + 1).map((u) => ["|", u]),
|
|
104
|
-
["|", "^".padStart(
|
|
108
|
+
["|", "^".padStart(p)],
|
|
105
109
|
["|", v[x + 1]]
|
|
106
110
|
]);
|
|
107
111
|
}
|
|
@@ -171,17 +175,17 @@ class rt extends Error {
|
|
|
171
175
|
constructor(n, ...s) {
|
|
172
176
|
var a, r, o;
|
|
173
177
|
const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Xs(s);
|
|
174
|
-
super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes =
|
|
178
|
+
super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = Ot(
|
|
175
179
|
Array.isArray(i) ? i : i ? [i] : void 0
|
|
176
180
|
);
|
|
177
|
-
const x =
|
|
181
|
+
const x = Ot(
|
|
178
182
|
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
|
|
179
183
|
);
|
|
180
184
|
this.source = c ?? (x == null || (r = x[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? x?.map((v) => v.start), this.locations = l && c ? l.map((v) => We(c, v)) : x?.map((v) => We(v.source, v.start));
|
|
181
|
-
const
|
|
185
|
+
const p = Hs(
|
|
182
186
|
d?.extensions
|
|
183
187
|
) ? d?.extensions : void 0;
|
|
184
|
-
this.extensions = (o = f ??
|
|
188
|
+
this.extensions = (o = f ?? p) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
185
189
|
message: {
|
|
186
190
|
writable: !0,
|
|
187
191
|
enumerable: !0
|
|
@@ -235,7 +239,7 @@ class rt extends Error {
|
|
|
235
239
|
return this.locations != null && (n.locations = this.locations), this.path != null && (n.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (n.extensions = this.extensions), n;
|
|
236
240
|
}
|
|
237
241
|
}
|
|
238
|
-
function
|
|
242
|
+
function Ot(e) {
|
|
239
243
|
return e === void 0 || e.length === 0 ? void 0 : e;
|
|
240
244
|
}
|
|
241
245
|
function F(e, n, s) {
|
|
@@ -244,7 +248,7 @@ function F(e, n, s) {
|
|
|
244
248
|
positions: [n]
|
|
245
249
|
});
|
|
246
250
|
}
|
|
247
|
-
class
|
|
251
|
+
class so {
|
|
248
252
|
/**
|
|
249
253
|
* The character offset at which this Node begins.
|
|
250
254
|
*/
|
|
@@ -403,7 +407,7 @@ const Ks = {
|
|
|
403
407
|
DirectiveCoordinate: ["name"],
|
|
404
408
|
DirectiveArgumentCoordinate: ["name", "argumentName"]
|
|
405
409
|
}, Zs = new Set(Object.keys(Ks));
|
|
406
|
-
function
|
|
410
|
+
function ro(e) {
|
|
407
411
|
const n = e?.kind;
|
|
408
412
|
return typeof n == "string" && Zs.has(n);
|
|
409
413
|
}
|
|
@@ -447,7 +451,7 @@ function tr(e) {
|
|
|
447
451
|
return n;
|
|
448
452
|
}
|
|
449
453
|
function nr(e, n) {
|
|
450
|
-
const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((
|
|
454
|
+
const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((p) => p.length === 0 || Xe(p.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), m = c || l, d = !(n != null && n.minimize) && // add leading and trailing new lines only if it improves readability
|
|
451
455
|
(!r || e.length > 70 || m || o || i);
|
|
452
456
|
let f = "";
|
|
453
457
|
const x = r && Xe(e.charCodeAt(0));
|
|
@@ -506,10 +510,10 @@ class sr {
|
|
|
506
510
|
function rr(e) {
|
|
507
511
|
return e === b.BANG || e === b.DOLLAR || e === b.AMP || e === b.PAREN_L || e === b.PAREN_R || e === b.DOT || e === b.SPREAD || e === b.COLON || e === b.EQUALS || e === b.AT || e === b.BRACKET_L || e === b.BRACKET_R || e === b.BRACE_L || e === b.PIPE || e === b.BRACE_R;
|
|
508
512
|
}
|
|
509
|
-
function
|
|
513
|
+
function ie(e) {
|
|
510
514
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
511
515
|
}
|
|
512
|
-
function
|
|
516
|
+
function Le(e, n) {
|
|
513
517
|
return nn(e.charCodeAt(n)) && sn(e.charCodeAt(n + 1));
|
|
514
518
|
}
|
|
515
519
|
function nn(e) {
|
|
@@ -518,7 +522,7 @@ function nn(e) {
|
|
|
518
522
|
function sn(e) {
|
|
519
523
|
return e >= 56320 && e <= 57343;
|
|
520
524
|
}
|
|
521
|
-
function
|
|
525
|
+
function Z(e, n) {
|
|
522
526
|
const s = e.source.body.codePointAt(n);
|
|
523
527
|
if (s === void 0)
|
|
524
528
|
return b.EOF;
|
|
@@ -623,7 +627,7 @@ function ar(e, n) {
|
|
|
623
627
|
throw F(
|
|
624
628
|
e.source,
|
|
625
629
|
r,
|
|
626
|
-
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
630
|
+
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : ie(o) || Le(s, r) ? `Unexpected character: ${Z(e, r)}.` : `Invalid character: ${Z(e, r)}.`
|
|
627
631
|
);
|
|
628
632
|
}
|
|
629
633
|
return P(e, b.EOF, a, a);
|
|
@@ -635,9 +639,9 @@ function or(e, n) {
|
|
|
635
639
|
const o = s.charCodeAt(r);
|
|
636
640
|
if (o === 10 || o === 13)
|
|
637
641
|
break;
|
|
638
|
-
if (
|
|
642
|
+
if (ie(o))
|
|
639
643
|
++r;
|
|
640
|
-
else if (
|
|
644
|
+
else if (Le(s, r))
|
|
641
645
|
r += 2;
|
|
642
646
|
else
|
|
643
647
|
break;
|
|
@@ -658,18 +662,18 @@ function ir(e, n, s) {
|
|
|
658
662
|
throw F(
|
|
659
663
|
e.source,
|
|
660
664
|
r,
|
|
661
|
-
`Invalid number, unexpected digit after 0: ${
|
|
665
|
+
`Invalid number, unexpected digit after 0: ${Z(
|
|
662
666
|
e,
|
|
663
667
|
r
|
|
664
668
|
)}.`
|
|
665
669
|
);
|
|
666
670
|
} else
|
|
667
|
-
r =
|
|
668
|
-
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r =
|
|
671
|
+
r = Ue(e, r, o), o = a.charCodeAt(r);
|
|
672
|
+
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ue(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Ue(e, r, o), o = a.charCodeAt(r)), o === 46 || tn(o))
|
|
669
673
|
throw F(
|
|
670
674
|
e.source,
|
|
671
675
|
r,
|
|
672
|
-
`Invalid number, expected digit but got: ${
|
|
676
|
+
`Invalid number, expected digit but got: ${Z(
|
|
673
677
|
e,
|
|
674
678
|
r
|
|
675
679
|
)}.`
|
|
@@ -682,12 +686,12 @@ function ir(e, n, s) {
|
|
|
682
686
|
a.slice(n, r)
|
|
683
687
|
);
|
|
684
688
|
}
|
|
685
|
-
function
|
|
689
|
+
function Ue(e, n, s) {
|
|
686
690
|
if (!fe(s))
|
|
687
691
|
throw F(
|
|
688
692
|
e.source,
|
|
689
693
|
n,
|
|
690
|
-
`Invalid number, expected digit but got: ${
|
|
694
|
+
`Invalid number, expected digit but got: ${Z(
|
|
691
695
|
e,
|
|
692
696
|
n
|
|
693
697
|
)}.`
|
|
@@ -713,15 +717,15 @@ function lr(e, n) {
|
|
|
713
717
|
}
|
|
714
718
|
if (c === 10 || c === 13)
|
|
715
719
|
break;
|
|
716
|
-
if (
|
|
720
|
+
if (ie(c))
|
|
717
721
|
++r;
|
|
718
|
-
else if (
|
|
722
|
+
else if (Le(s, r))
|
|
719
723
|
r += 2;
|
|
720
724
|
else
|
|
721
725
|
throw F(
|
|
722
726
|
e.source,
|
|
723
727
|
r,
|
|
724
|
-
`Invalid character within String: ${
|
|
728
|
+
`Invalid character within String: ${Z(
|
|
725
729
|
e,
|
|
726
730
|
r
|
|
727
731
|
)}.`
|
|
@@ -735,14 +739,14 @@ function cr(e, n) {
|
|
|
735
739
|
for (; r < 12; ) {
|
|
736
740
|
const o = s.charCodeAt(n + r++);
|
|
737
741
|
if (o === 125) {
|
|
738
|
-
if (r < 5 || !
|
|
742
|
+
if (r < 5 || !ie(a))
|
|
739
743
|
break;
|
|
740
744
|
return {
|
|
741
745
|
value: String.fromCodePoint(a),
|
|
742
746
|
size: r
|
|
743
747
|
};
|
|
744
748
|
}
|
|
745
|
-
if (a = a << 4 |
|
|
749
|
+
if (a = a << 4 | ce(o), a < 0)
|
|
746
750
|
break;
|
|
747
751
|
}
|
|
748
752
|
throw F(
|
|
@@ -755,14 +759,14 @@ function cr(e, n) {
|
|
|
755
759
|
);
|
|
756
760
|
}
|
|
757
761
|
function dr(e, n) {
|
|
758
|
-
const s = e.source.body, a =
|
|
759
|
-
if (
|
|
762
|
+
const s = e.source.body, a = $t(s, n + 2);
|
|
763
|
+
if (ie(a))
|
|
760
764
|
return {
|
|
761
765
|
value: String.fromCodePoint(a),
|
|
762
766
|
size: 6
|
|
763
767
|
};
|
|
764
768
|
if (nn(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
|
|
765
|
-
const r =
|
|
769
|
+
const r = $t(s, n + 8);
|
|
766
770
|
if (sn(r))
|
|
767
771
|
return {
|
|
768
772
|
value: String.fromCodePoint(a, r),
|
|
@@ -775,10 +779,10 @@ function dr(e, n) {
|
|
|
775
779
|
`Invalid Unicode escape sequence: "${s.slice(n, n + 6)}".`
|
|
776
780
|
);
|
|
777
781
|
}
|
|
778
|
-
function
|
|
779
|
-
return
|
|
782
|
+
function $t(e, n) {
|
|
783
|
+
return ce(e.charCodeAt(n)) << 12 | ce(e.charCodeAt(n + 1)) << 8 | ce(e.charCodeAt(n + 2)) << 4 | ce(e.charCodeAt(n + 3));
|
|
780
784
|
}
|
|
781
|
-
function
|
|
785
|
+
function ce(e) {
|
|
782
786
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
783
787
|
}
|
|
784
788
|
function ur(e, n) {
|
|
@@ -862,15 +866,15 @@ function mr(e, n) {
|
|
|
862
866
|
c += s.slice(i, o), l.push(c), m === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
|
|
863
867
|
continue;
|
|
864
868
|
}
|
|
865
|
-
if (
|
|
869
|
+
if (ie(m))
|
|
866
870
|
++o;
|
|
867
|
-
else if (
|
|
871
|
+
else if (Le(s, o))
|
|
868
872
|
o += 2;
|
|
869
873
|
else
|
|
870
874
|
throw F(
|
|
871
875
|
e.source,
|
|
872
876
|
o,
|
|
873
|
-
`Invalid character within String: ${
|
|
877
|
+
`Invalid character within String: ${Z(
|
|
874
878
|
e,
|
|
875
879
|
o
|
|
876
880
|
)}.`
|
|
@@ -898,9 +902,9 @@ function pr(e, n) {
|
|
|
898
902
|
}
|
|
899
903
|
const hr = 10, rn = 2;
|
|
900
904
|
function an(e) {
|
|
901
|
-
return
|
|
905
|
+
return ke(e, []);
|
|
902
906
|
}
|
|
903
|
-
function
|
|
907
|
+
function ke(e, n) {
|
|
904
908
|
switch (typeof e) {
|
|
905
909
|
case "string":
|
|
906
910
|
return JSON.stringify(e);
|
|
@@ -921,7 +925,7 @@ function fr(e, n) {
|
|
|
921
925
|
if (gr(e)) {
|
|
922
926
|
const a = e.toJSON();
|
|
923
927
|
if (a !== e)
|
|
924
|
-
return typeof a == "string" ? a :
|
|
928
|
+
return typeof a == "string" ? a : ke(a, s);
|
|
925
929
|
} else if (Array.isArray(e))
|
|
926
930
|
return yr(e, s);
|
|
927
931
|
return xr(e, s);
|
|
@@ -932,7 +936,7 @@ function gr(e) {
|
|
|
932
936
|
function xr(e, n) {
|
|
933
937
|
const s = Object.entries(e);
|
|
934
938
|
return s.length === 0 ? "{}" : n.length > rn ? "[" + vr(e) + "]" : "{ " + s.map(
|
|
935
|
-
([r, o]) => r + ": " +
|
|
939
|
+
([r, o]) => r + ": " + ke(o, n)
|
|
936
940
|
).join(", ") + " }";
|
|
937
941
|
}
|
|
938
942
|
function yr(e, n) {
|
|
@@ -942,7 +946,7 @@ function yr(e, n) {
|
|
|
942
946
|
return "[Array]";
|
|
943
947
|
const s = Math.min(hr, e.length), a = e.length - s, r = [];
|
|
944
948
|
for (let o = 0; o < s; ++o)
|
|
945
|
-
r.push(
|
|
949
|
+
r.push(ke(e[o], n));
|
|
946
950
|
return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
|
|
947
951
|
}
|
|
948
952
|
function vr(e) {
|
|
@@ -1021,21 +1025,21 @@ function Nr(e) {
|
|
|
1021
1025
|
}
|
|
1022
1026
|
return r;
|
|
1023
1027
|
}
|
|
1024
|
-
const ln =
|
|
1028
|
+
const ln = zt(
|
|
1025
1029
|
void 0
|
|
1026
|
-
),
|
|
1030
|
+
), ao = ({
|
|
1027
1031
|
children: e,
|
|
1028
1032
|
client: n
|
|
1029
1033
|
}) => /* @__PURE__ */ t.jsx(ln.Provider, { value: n, children: e }), cn = (e, n, ...[s]) => ({
|
|
1030
1034
|
queryFn: () => e.fetch(n, s),
|
|
1031
1035
|
queryKey: [Nr(n.toString()), s]
|
|
1032
|
-
}),
|
|
1033
|
-
const s =
|
|
1036
|
+
}), wr = (e, ...[n]) => {
|
|
1037
|
+
const s = is(ln);
|
|
1034
1038
|
if (s === void 0)
|
|
1035
1039
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
1036
1040
|
return cn(s, e, ...n === void 0 ? [] : [n]);
|
|
1037
1041
|
};
|
|
1038
|
-
class
|
|
1042
|
+
class ee extends String {
|
|
1039
1043
|
__apiType;
|
|
1040
1044
|
value;
|
|
1041
1045
|
__meta__;
|
|
@@ -1046,7 +1050,7 @@ class Y extends String {
|
|
|
1046
1050
|
return this.value;
|
|
1047
1051
|
}
|
|
1048
1052
|
}
|
|
1049
|
-
const
|
|
1053
|
+
const Sr = new ee(
|
|
1050
1054
|
`
|
|
1051
1055
|
fragment OperationsFragment on OperationItem {
|
|
1052
1056
|
slug
|
|
@@ -1118,7 +1122,7 @@ const wr = new Y(
|
|
|
1118
1122
|
}
|
|
1119
1123
|
`,
|
|
1120
1124
|
{ fragmentName: "OperationsFragment" }
|
|
1121
|
-
), Tr = new
|
|
1125
|
+
), Tr = new ee(`
|
|
1122
1126
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
1123
1127
|
schema(input: $input, type: $type) {
|
|
1124
1128
|
url
|
|
@@ -1127,13 +1131,13 @@ const wr = new Y(
|
|
|
1127
1131
|
}
|
|
1128
1132
|
}
|
|
1129
1133
|
}
|
|
1130
|
-
`), Ar = new
|
|
1134
|
+
`), Ar = new ee(`
|
|
1131
1135
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
1132
1136
|
schema(input: $input, type: $type) {
|
|
1133
1137
|
openapi
|
|
1134
1138
|
}
|
|
1135
1139
|
}
|
|
1136
|
-
`),
|
|
1140
|
+
`), Or = new ee(`
|
|
1137
1141
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
1138
1142
|
schema(input: $input, type: $type) {
|
|
1139
1143
|
servers {
|
|
@@ -1232,7 +1236,7 @@ const wr = new Y(
|
|
|
1232
1236
|
schema
|
|
1233
1237
|
}
|
|
1234
1238
|
}
|
|
1235
|
-
}`), Pr = new
|
|
1239
|
+
}`), Pr = new ee(`
|
|
1236
1240
|
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
1237
1241
|
schema(input: $input, type: $type) {
|
|
1238
1242
|
title
|
|
@@ -1247,7 +1251,7 @@ const wr = new Y(
|
|
|
1247
1251
|
}
|
|
1248
1252
|
}
|
|
1249
1253
|
}
|
|
1250
|
-
`),
|
|
1254
|
+
`), $r = new ee(`
|
|
1251
1255
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
1252
1256
|
schema(input: $input, type: $type) {
|
|
1253
1257
|
url
|
|
@@ -1256,7 +1260,7 @@ const wr = new Y(
|
|
|
1256
1260
|
}
|
|
1257
1261
|
}
|
|
1258
1262
|
}
|
|
1259
|
-
`), Lr = new
|
|
1263
|
+
`), Lr = new ee(`
|
|
1260
1264
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
1261
1265
|
schema(input: $input, type: $type) {
|
|
1262
1266
|
extensions
|
|
@@ -1279,24 +1283,24 @@ const wr = new Y(
|
|
|
1279
1283
|
}
|
|
1280
1284
|
}
|
|
1281
1285
|
}
|
|
1282
|
-
`),
|
|
1286
|
+
`), kr = {
|
|
1283
1287
|
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Tr,
|
|
1284
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n":
|
|
1288
|
+
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": Sr,
|
|
1285
1289
|
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Ar,
|
|
1286
|
-
"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n":
|
|
1290
|
+
"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": Or,
|
|
1287
1291
|
"\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Pr,
|
|
1288
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1292
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": $r,
|
|
1289
1293
|
"\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Lr
|
|
1290
1294
|
};
|
|
1291
|
-
function
|
|
1292
|
-
return
|
|
1295
|
+
function Er(e) {
|
|
1296
|
+
return kr[e] ?? {};
|
|
1293
1297
|
}
|
|
1294
|
-
function
|
|
1298
|
+
function _({
|
|
1295
1299
|
...e
|
|
1296
1300
|
}) {
|
|
1297
1301
|
return /* @__PURE__ */ t.jsx(st.Root, { "data-slot": "collapsible", ...e });
|
|
1298
1302
|
}
|
|
1299
|
-
function
|
|
1303
|
+
function de({
|
|
1300
1304
|
...e
|
|
1301
1305
|
}) {
|
|
1302
1306
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -1307,7 +1311,7 @@ function ce({
|
|
|
1307
1311
|
}
|
|
1308
1312
|
);
|
|
1309
1313
|
}
|
|
1310
|
-
function
|
|
1314
|
+
function q({
|
|
1311
1315
|
...e
|
|
1312
1316
|
}) {
|
|
1313
1317
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -1349,9 +1353,9 @@ const Dr = {
|
|
|
1349
1353
|
}
|
|
1350
1354
|
}, Fr = (e, n) => {
|
|
1351
1355
|
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), c = e.split("+").pop(), l = E(n);
|
|
1352
|
-
return
|
|
1356
|
+
return U(() => {
|
|
1353
1357
|
l.current = n;
|
|
1354
|
-
}, [n]),
|
|
1358
|
+
}, [n]), U(() => {
|
|
1355
1359
|
const m = (d) => {
|
|
1356
1360
|
(d.code === `Key${c?.toUpperCase()}` || d.code.toLowerCase() === c?.toLowerCase()) && d.metaKey === a && d.shiftKey === r && d.altKey === o && d.ctrlKey === i && (d.preventDefault(), l.current());
|
|
1357
1361
|
};
|
|
@@ -1374,7 +1378,7 @@ const Dr = {
|
|
|
1374
1378
|
)
|
|
1375
1379
|
), Vr = (e) => {
|
|
1376
1380
|
const { selectedServer: n, setSelectedServer: s } = zr();
|
|
1377
|
-
return { selectedServer:
|
|
1381
|
+
return { selectedServer: Vt(
|
|
1378
1382
|
() => n && e.some((r) => r.url === n) ? n : e.at(0)?.url ?? "",
|
|
1379
1383
|
[n, e]
|
|
1380
1384
|
), setSelectedServer: s };
|
|
@@ -1382,7 +1386,7 @@ const Dr = {
|
|
|
1382
1386
|
({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
1383
1387
|
"textarea",
|
|
1384
1388
|
{
|
|
1385
|
-
className:
|
|
1389
|
+
className: S(
|
|
1386
1390
|
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1387
1391
|
e
|
|
1388
1392
|
),
|
|
@@ -1392,33 +1396,33 @@ const Dr = {
|
|
|
1392
1396
|
)
|
|
1393
1397
|
);
|
|
1394
1398
|
dn.displayName = "Textarea";
|
|
1395
|
-
const
|
|
1399
|
+
const ve = (e = 0) => {
|
|
1396
1400
|
if (e === 0)
|
|
1397
1401
|
return "0 B";
|
|
1398
1402
|
const n = Math.floor(Math.log(e) / Math.log(1e3));
|
|
1399
1403
|
return `${(e / 1e3 ** n).toFixed(n ? 2 : 0)} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
|
|
1400
|
-
},
|
|
1404
|
+
}, Y = ({
|
|
1401
1405
|
children: e,
|
|
1402
1406
|
className: n
|
|
1403
1407
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1404
1408
|
"div",
|
|
1405
1409
|
{
|
|
1406
|
-
className:
|
|
1410
|
+
className: S(
|
|
1407
1411
|
"grid grid-cols-[max-content_1fr_max-content] items-center gap-2 group bg-muted w-full h-10 ps-4 pe-2 border-b",
|
|
1408
1412
|
n
|
|
1409
1413
|
),
|
|
1410
1414
|
children: [
|
|
1411
1415
|
e,
|
|
1412
1416
|
/* @__PURE__ */ t.jsxs(
|
|
1413
|
-
|
|
1417
|
+
de,
|
|
1414
1418
|
{
|
|
1415
|
-
className:
|
|
1419
|
+
className: S(
|
|
1416
1420
|
"flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 opacity-75 rounded-md",
|
|
1417
1421
|
n
|
|
1418
1422
|
),
|
|
1419
1423
|
children: [
|
|
1420
1424
|
/* @__PURE__ */ t.jsx(
|
|
1421
|
-
|
|
1425
|
+
kn,
|
|
1422
1426
|
{
|
|
1423
1427
|
className: "group-data-[state=closed]:hidden shrink-0",
|
|
1424
1428
|
size: 14
|
|
@@ -1439,12 +1443,12 @@ const Ee = (e = 0) => {
|
|
|
1439
1443
|
), H = ({
|
|
1440
1444
|
children: e,
|
|
1441
1445
|
className: n
|
|
1442
|
-
}) => /* @__PURE__ */ t.jsx("span", { className:
|
|
1446
|
+
}) => /* @__PURE__ */ t.jsx("span", { className: S("font-semibold w-full text-start", n), children: e }), Br = ({
|
|
1443
1447
|
examples: e,
|
|
1444
1448
|
onSelect: n
|
|
1445
1449
|
}) => /* @__PURE__ */ t.jsxs(Jt, { children: [
|
|
1446
1450
|
/* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
1447
|
-
|
|
1451
|
+
B,
|
|
1448
1452
|
{
|
|
1449
1453
|
variant: "ghost",
|
|
1450
1454
|
size: "sm",
|
|
@@ -1456,10 +1460,10 @@ const Ee = (e = 0) => {
|
|
|
1456
1460
|
}
|
|
1457
1461
|
) }),
|
|
1458
1462
|
/* @__PURE__ */ t.jsx(Xt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1459
|
-
/* @__PURE__ */ t.jsx(
|
|
1460
|
-
/* @__PURE__ */ t.jsx(
|
|
1461
|
-
/* @__PURE__ */ t.jsx(
|
|
1462
|
-
|
|
1463
|
+
/* @__PURE__ */ t.jsx(Ts, { children: s.mediaType }),
|
|
1464
|
+
/* @__PURE__ */ t.jsx(As, {}),
|
|
1465
|
+
/* @__PURE__ */ t.jsx(Os, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
|
|
1466
|
+
Oe,
|
|
1463
1467
|
{
|
|
1464
1468
|
onSelect: () => n(a, s.mediaType),
|
|
1465
1469
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -1474,24 +1478,24 @@ const Ee = (e = 0) => {
|
|
|
1474
1478
|
a.name
|
|
1475
1479
|
)) })
|
|
1476
1480
|
] }, s.mediaType)) })
|
|
1477
|
-
] }),
|
|
1481
|
+
] }), Ee = ye(
|
|
1478
1482
|
"div",
|
|
1479
1483
|
"grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
|
|
1480
1484
|
), ge = ye(
|
|
1481
1485
|
"div",
|
|
1482
1486
|
"group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
|
|
1483
1487
|
), I = ye(
|
|
1484
|
-
|
|
1488
|
+
Ps,
|
|
1485
1489
|
"w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
|
|
1486
1490
|
), at = ({
|
|
1487
1491
|
onClick: e,
|
|
1488
1492
|
className: n
|
|
1489
1493
|
}) => /* @__PURE__ */ t.jsx(
|
|
1490
|
-
|
|
1494
|
+
K,
|
|
1491
1495
|
{
|
|
1492
1496
|
size: "icon-xs",
|
|
1493
1497
|
variant: "ghost",
|
|
1494
|
-
className:
|
|
1498
|
+
className: S(
|
|
1495
1499
|
"text-muted-foreground opacity-0 group-hover:brightness-95 focus-visible:opacity-100 group-hover:opacity-100",
|
|
1496
1500
|
n
|
|
1497
1501
|
),
|
|
@@ -1501,7 +1505,7 @@ const Ee = (e = 0) => {
|
|
|
1501
1505
|
children: /* @__PURE__ */ t.jsx(It, { size: 14 })
|
|
1502
1506
|
}
|
|
1503
1507
|
);
|
|
1504
|
-
function
|
|
1508
|
+
function be({
|
|
1505
1509
|
className: e,
|
|
1506
1510
|
...n
|
|
1507
1511
|
}) {
|
|
@@ -1509,7 +1513,7 @@ function ve({
|
|
|
1509
1513
|
Tt.Root,
|
|
1510
1514
|
{
|
|
1511
1515
|
"data-slot": "checkbox",
|
|
1512
|
-
className:
|
|
1516
|
+
className: S(
|
|
1513
1517
|
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
1514
1518
|
e
|
|
1515
1519
|
),
|
|
@@ -1529,7 +1533,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1529
1533
|
const s = E(null), a = n.getValue(e, "value");
|
|
1530
1534
|
return /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
1531
1535
|
/* @__PURE__ */ t.jsx(
|
|
1532
|
-
|
|
1536
|
+
be,
|
|
1533
1537
|
{
|
|
1534
1538
|
...n.getCheckboxProps(e),
|
|
1535
1539
|
disabled: !n.getValue(e, "name")
|
|
@@ -1545,25 +1549,25 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1545
1549
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 flex-1", children: [
|
|
1546
1550
|
a instanceof File ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 flex-1 min-w-0", children: [
|
|
1547
1551
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 border-b cursor-default", children: [
|
|
1548
|
-
/* @__PURE__ */ t.jsx(
|
|
1552
|
+
/* @__PURE__ */ t.jsx(me, { size: 12, className: "text-muted-foreground" }),
|
|
1549
1553
|
/* @__PURE__ */ t.jsx(
|
|
1550
1554
|
"span",
|
|
1551
1555
|
{
|
|
1552
1556
|
className: "text-xs truncate",
|
|
1553
|
-
title: `${a.name} (${
|
|
1557
|
+
title: `${a.name} (${ve(a.size)})`,
|
|
1554
1558
|
children: a.name
|
|
1555
1559
|
}
|
|
1556
1560
|
)
|
|
1557
1561
|
] }),
|
|
1558
1562
|
/* @__PURE__ */ t.jsx(
|
|
1559
|
-
|
|
1563
|
+
K,
|
|
1560
1564
|
{
|
|
1561
1565
|
type: "button",
|
|
1562
1566
|
variant: "ghost",
|
|
1563
1567
|
size: "icon-xs",
|
|
1564
1568
|
className: "opacity-50 hover:opacity-100 hover:brightness-95 transition-opacity",
|
|
1565
1569
|
onClick: () => n.setValue(e, "value", ""),
|
|
1566
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1570
|
+
children: /* @__PURE__ */ t.jsx(Rn, { size: 13 })
|
|
1567
1571
|
}
|
|
1568
1572
|
)
|
|
1569
1573
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -1587,7 +1591,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1587
1591
|
}
|
|
1588
1592
|
),
|
|
1589
1593
|
/* @__PURE__ */ t.jsx(
|
|
1590
|
-
|
|
1594
|
+
K,
|
|
1591
1595
|
{
|
|
1592
1596
|
type: "button",
|
|
1593
1597
|
variant: "ghost",
|
|
@@ -1595,7 +1599,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1595
1599
|
onClick: () => s.current?.click(),
|
|
1596
1600
|
title: "Attach file",
|
|
1597
1601
|
className: "opacity-0 focus-visible:opacity-100 group-hover:opacity-100 group-hover:brightness-95 transition-opacity",
|
|
1598
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1602
|
+
children: /* @__PURE__ */ t.jsx(me, { size: 14 })
|
|
1599
1603
|
}
|
|
1600
1604
|
)
|
|
1601
1605
|
] }),
|
|
@@ -1614,7 +1618,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1614
1618
|
watch: c,
|
|
1615
1619
|
setFocus: l,
|
|
1616
1620
|
register: m
|
|
1617
|
-
} =
|
|
1621
|
+
} = oe(), { fields: d, append: f, remove: x } = Ut({ control: n, name: s }), p = c(s), v = E(-1), u = E(-1), y = D(
|
|
1618
1622
|
(g, C, T, A) => {
|
|
1619
1623
|
(C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
|
|
1620
1624
|
C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
|
|
@@ -1623,32 +1627,32 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1623
1627
|
);
|
|
1624
1628
|
},
|
|
1625
1629
|
[s, i, l]
|
|
1626
|
-
),
|
|
1630
|
+
), w = D(
|
|
1627
1631
|
(g) => r ? r(g) : !g.name && !g.value,
|
|
1628
1632
|
[r]
|
|
1629
1633
|
), R = D(
|
|
1630
1634
|
(g) => o ? o(g) : !!(g.name || g.value),
|
|
1631
1635
|
[o]
|
|
1632
1636
|
);
|
|
1633
|
-
|
|
1634
|
-
if (!
|
|
1637
|
+
U(() => {
|
|
1638
|
+
if (!p) return;
|
|
1635
1639
|
if (u.current === -1) {
|
|
1636
|
-
u.current =
|
|
1640
|
+
u.current = p.length, p.length === 0 && f(a, {
|
|
1637
1641
|
shouldFocus: !1
|
|
1638
1642
|
});
|
|
1639
1643
|
return;
|
|
1640
1644
|
}
|
|
1641
|
-
if (u.current =
|
|
1645
|
+
if (u.current = p.length, p.length === 0) {
|
|
1642
1646
|
f(a, {
|
|
1643
1647
|
shouldFocus: !1
|
|
1644
1648
|
});
|
|
1645
1649
|
return;
|
|
1646
1650
|
}
|
|
1647
|
-
if (
|
|
1651
|
+
if (p.length > 1) {
|
|
1648
1652
|
const C = [];
|
|
1649
|
-
for (let T = 0; T <
|
|
1650
|
-
const A =
|
|
1651
|
-
A &&
|
|
1653
|
+
for (let T = 0; T < p.length - 1; T++) {
|
|
1654
|
+
const A = p[T];
|
|
1655
|
+
A && w(A) && !R(A) && C.push(T);
|
|
1652
1656
|
}
|
|
1653
1657
|
if (C.length > 0) {
|
|
1654
1658
|
const T = C[0];
|
|
@@ -1658,53 +1662,53 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1658
1662
|
M !== void 0 && x(M);
|
|
1659
1663
|
}
|
|
1660
1664
|
if (v.current === T) {
|
|
1661
|
-
const A =
|
|
1665
|
+
const A = p.length - C.length;
|
|
1662
1666
|
T < A ? l(`${s}.${T}.name`) : T > 0 ? l(`${s}.${T - 1}.name`) : l(`${s}.0.name`);
|
|
1663
1667
|
}
|
|
1664
1668
|
v.current = -1;
|
|
1665
1669
|
}
|
|
1666
1670
|
}
|
|
1667
|
-
const g =
|
|
1668
|
-
g && !
|
|
1671
|
+
const g = p[p.length - 1];
|
|
1672
|
+
g && !w(g) && f(a, {
|
|
1669
1673
|
shouldFocus: !1
|
|
1670
1674
|
});
|
|
1671
1675
|
}, [
|
|
1672
|
-
|
|
1676
|
+
p,
|
|
1673
1677
|
f,
|
|
1674
1678
|
x,
|
|
1675
1679
|
a,
|
|
1676
|
-
|
|
1680
|
+
w,
|
|
1677
1681
|
s,
|
|
1678
1682
|
l,
|
|
1679
1683
|
R
|
|
1680
|
-
]),
|
|
1681
|
-
if (!
|
|
1684
|
+
]), U(() => {
|
|
1685
|
+
if (!p) return;
|
|
1682
1686
|
const g = [];
|
|
1683
|
-
for (let C = 0; C <
|
|
1684
|
-
const T =
|
|
1687
|
+
for (let C = 0; C < p.length; C++) {
|
|
1688
|
+
const T = p[C];
|
|
1685
1689
|
if (!T) continue;
|
|
1686
1690
|
const A = R(T);
|
|
1687
1691
|
T.active !== A && g.push(() => y(C, "active", A));
|
|
1688
1692
|
}
|
|
1689
|
-
g.length !== 0 &&
|
|
1690
|
-
}, [
|
|
1693
|
+
g.length !== 0 && ls(() => g.forEach((C) => C()));
|
|
1694
|
+
}, [p, R, y]);
|
|
1691
1695
|
const N = D(
|
|
1692
1696
|
(g) => {
|
|
1693
|
-
const C =
|
|
1694
|
-
return C ?
|
|
1697
|
+
const C = p?.[g];
|
|
1698
|
+
return C ? w(C) : !0;
|
|
1695
1699
|
},
|
|
1696
|
-
[
|
|
1700
|
+
[p, w]
|
|
1697
1701
|
), j = D(
|
|
1698
1702
|
(g, C) => {
|
|
1699
1703
|
const T = C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`, A = C === "name" ? `${s}.${g - 1}.value` : `${s}.${g}.name`, M = C === "value" || g > 0;
|
|
1700
1704
|
return (L) => {
|
|
1701
1705
|
if (!(L.target instanceof HTMLInputElement)) return;
|
|
1702
|
-
const De = L.target.selectionStart === 0,
|
|
1703
|
-
L.key === "Enter" ? l(T) : L.key === "Backspace" &&
|
|
1706
|
+
const De = L.target.selectionStart === 0, ne = L.target.selectionStart === L.target.value.length, Ce = !L.target.value;
|
|
1707
|
+
L.key === "Enter" ? l(T) : L.key === "Backspace" && Ce && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" && ne && (L.preventDefault(), l(T));
|
|
1704
1708
|
};
|
|
1705
1709
|
},
|
|
1706
1710
|
[s, l]
|
|
1707
|
-
),
|
|
1711
|
+
), $ = D(
|
|
1708
1712
|
(g) => ({
|
|
1709
1713
|
...m(`${s}.${g}.name`),
|
|
1710
1714
|
onChange: (C) => y(g, "name", C.target.value),
|
|
@@ -1718,7 +1722,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1718
1722
|
onKeyDown: j(g, "value")
|
|
1719
1723
|
}),
|
|
1720
1724
|
[m, s, y, j]
|
|
1721
|
-
),
|
|
1725
|
+
), je = D(
|
|
1722
1726
|
(g) => ({
|
|
1723
1727
|
...m(`${s}.${g}.active`),
|
|
1724
1728
|
checked: c(`${s}.${g}.active`) ?? !1,
|
|
@@ -1729,9 +1733,9 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1729
1733
|
}),
|
|
1730
1734
|
[s, m, N, c, y]
|
|
1731
1735
|
), Ie = D(
|
|
1732
|
-
(g, C) =>
|
|
1733
|
-
[
|
|
1734
|
-
),
|
|
1736
|
+
(g, C) => p?.[g]?.[C],
|
|
1737
|
+
[p]
|
|
1738
|
+
), te = D(
|
|
1735
1739
|
(g) => ({
|
|
1736
1740
|
onClick: () => x(g),
|
|
1737
1741
|
disabled: g === d.length - 1
|
|
@@ -1740,53 +1744,53 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1740
1744
|
);
|
|
1741
1745
|
return {
|
|
1742
1746
|
fields: d,
|
|
1743
|
-
getNameInputProps:
|
|
1747
|
+
getNameInputProps: $,
|
|
1744
1748
|
getValueInputProps: Q,
|
|
1745
|
-
getCheckboxProps:
|
|
1746
|
-
getRemoveButtonProps:
|
|
1749
|
+
getCheckboxProps: je,
|
|
1750
|
+
getRemoveButtonProps: te,
|
|
1747
1751
|
setValue: y,
|
|
1748
1752
|
getValue: Ie
|
|
1749
1753
|
};
|
|
1750
1754
|
}, qr = ({ content: e }) => {
|
|
1751
|
-
const { register: n, setValue: s, watch: a, control: r } =
|
|
1755
|
+
const { register: n, setValue: s, watch: a, control: r } = oe(), o = (e ?? []).flatMap((j) => j.examples), [i, c, l, m, d] = a([
|
|
1752
1756
|
"headers",
|
|
1753
1757
|
"file",
|
|
1754
1758
|
"bodyMode",
|
|
1755
1759
|
"body",
|
|
1756
1760
|
"multipartFormFields"
|
|
1757
|
-
]), f = E(null), [x,
|
|
1761
|
+
]), f = E(null), [x, p] = k(!1), v = (j) => {
|
|
1758
1762
|
s("file", j), j && s(
|
|
1759
1763
|
"headers",
|
|
1760
1764
|
i.filter(
|
|
1761
|
-
(
|
|
1765
|
+
($) => $.name.toLowerCase() !== "content-type" || !$.active
|
|
1762
1766
|
)
|
|
1763
1767
|
);
|
|
1764
1768
|
}, u = (j) => {
|
|
1765
|
-
const
|
|
1766
|
-
v(
|
|
1769
|
+
const $ = j.target.files?.[0] ?? null;
|
|
1770
|
+
v($);
|
|
1767
1771
|
}, y = (j) => {
|
|
1768
|
-
j.preventDefault(), j.stopPropagation(),
|
|
1769
|
-
},
|
|
1770
|
-
j.preventDefault(), j.stopPropagation(),
|
|
1772
|
+
j.preventDefault(), j.stopPropagation(), p(!0);
|
|
1773
|
+
}, w = (j) => {
|
|
1774
|
+
j.preventDefault(), j.stopPropagation(), p(!1);
|
|
1771
1775
|
}, R = (j) => {
|
|
1772
|
-
j.preventDefault(), j.stopPropagation(),
|
|
1773
|
-
const
|
|
1774
|
-
v(
|
|
1776
|
+
j.preventDefault(), j.stopPropagation(), p(!1);
|
|
1777
|
+
const $ = j.dataTransfer.files?.[0] ?? null;
|
|
1778
|
+
v($);
|
|
1775
1779
|
}, N = ot({
|
|
1776
1780
|
control: r,
|
|
1777
1781
|
name: "multipartFormFields",
|
|
1778
1782
|
defaultValue: { name: "", value: "", active: !1 },
|
|
1779
1783
|
isEmpty: (j) => j.value instanceof File ? !1 : !j.name && !j.value
|
|
1780
1784
|
});
|
|
1781
|
-
return /* @__PURE__ */ t.jsxs(
|
|
1782
|
-
/* @__PURE__ */ t.jsxs(
|
|
1783
|
-
/* @__PURE__ */ t.jsx(
|
|
1785
|
+
return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
1786
|
+
/* @__PURE__ */ t.jsxs(Y, { className: "items-center", children: [
|
|
1787
|
+
/* @__PURE__ */ t.jsx(In, { size: 16 }),
|
|
1784
1788
|
/* @__PURE__ */ t.jsxs(H, { className: "flex items-center justify-between", children: [
|
|
1785
1789
|
"Body",
|
|
1786
1790
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
1787
1791
|
/* @__PURE__ */ t.jsxs(Jt, { children: [
|
|
1788
1792
|
/* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
1789
|
-
|
|
1793
|
+
K,
|
|
1790
1794
|
{
|
|
1791
1795
|
variant: "ghost",
|
|
1792
1796
|
size: "sm",
|
|
@@ -1796,19 +1800,19 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1796
1800
|
/* @__PURE__ */ t.jsx(yt, { size: 14 }),
|
|
1797
1801
|
"Text"
|
|
1798
1802
|
] }) : l === "file" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1799
|
-
/* @__PURE__ */ t.jsx(
|
|
1803
|
+
/* @__PURE__ */ t.jsx(me, { size: 14 }),
|
|
1800
1804
|
"File"
|
|
1801
1805
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1802
1806
|
/* @__PURE__ */ t.jsx(vt, { size: 14 }),
|
|
1803
1807
|
"Multipart"
|
|
1804
1808
|
] }),
|
|
1805
|
-
/* @__PURE__ */ t.jsx(
|
|
1809
|
+
/* @__PURE__ */ t.jsx(Dn, { size: 14 })
|
|
1806
1810
|
]
|
|
1807
1811
|
}
|
|
1808
1812
|
) }),
|
|
1809
1813
|
/* @__PURE__ */ t.jsxs(Xt, { className: "min-w-40", children: [
|
|
1810
1814
|
/* @__PURE__ */ t.jsxs(
|
|
1811
|
-
|
|
1815
|
+
Oe,
|
|
1812
1816
|
{
|
|
1813
1817
|
onSelect: () => s("bodyMode", "text"),
|
|
1814
1818
|
className: "gap-2",
|
|
@@ -1820,19 +1824,19 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1820
1824
|
}
|
|
1821
1825
|
),
|
|
1822
1826
|
/* @__PURE__ */ t.jsxs(
|
|
1823
|
-
|
|
1827
|
+
Oe,
|
|
1824
1828
|
{
|
|
1825
1829
|
onSelect: () => s("bodyMode", "file"),
|
|
1826
1830
|
className: "gap-2",
|
|
1827
1831
|
children: [
|
|
1828
|
-
/* @__PURE__ */ t.jsx(
|
|
1832
|
+
/* @__PURE__ */ t.jsx(me, { size: 14 }),
|
|
1829
1833
|
/* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "File" }),
|
|
1830
1834
|
/* @__PURE__ */ t.jsx("span", { children: c && /* @__PURE__ */ t.jsx("div", { className: "w-1.5 h-1.5 bg-primary rounded-full" }) })
|
|
1831
1835
|
]
|
|
1832
1836
|
}
|
|
1833
1837
|
),
|
|
1834
1838
|
/* @__PURE__ */ t.jsxs(
|
|
1835
|
-
|
|
1839
|
+
Oe,
|
|
1836
1840
|
{
|
|
1837
1841
|
onSelect: () => s("bodyMode", "multipart"),
|
|
1838
1842
|
className: "gap-2",
|
|
@@ -1859,12 +1863,12 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1859
1863
|
Br,
|
|
1860
1864
|
{
|
|
1861
1865
|
examples: e,
|
|
1862
|
-
onSelect: (j,
|
|
1866
|
+
onSelect: (j, $) => {
|
|
1863
1867
|
s("body", JSON.stringify(j.value, null, 2)), s("headers", [
|
|
1864
1868
|
...i.filter((Q) => Q.name !== "Content-Type"),
|
|
1865
1869
|
{
|
|
1866
1870
|
name: "Content-Type",
|
|
1867
|
-
value:
|
|
1871
|
+
value: $,
|
|
1868
1872
|
active: !0
|
|
1869
1873
|
}
|
|
1870
1874
|
]);
|
|
@@ -1874,12 +1878,12 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1874
1878
|
] })
|
|
1875
1879
|
] })
|
|
1876
1880
|
] }),
|
|
1877
|
-
/* @__PURE__ */ t.jsxs(
|
|
1881
|
+
/* @__PURE__ */ t.jsxs(q, { className: "CollapsibleContent flex flex-col gap-2", children: [
|
|
1878
1882
|
l === "text" && /* @__PURE__ */ t.jsx(
|
|
1879
1883
|
dn,
|
|
1880
1884
|
{
|
|
1881
1885
|
...n("body"),
|
|
1882
|
-
className:
|
|
1886
|
+
className: S(
|
|
1883
1887
|
"w-full px-4 py-2.5 h-64 font-mono md:text-xs border-none rounded-none focus-visible:ring-0 transition-colors"
|
|
1884
1888
|
),
|
|
1885
1889
|
placeholder: "Body content"
|
|
@@ -1890,11 +1894,11 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1890
1894
|
{
|
|
1891
1895
|
role: "region",
|
|
1892
1896
|
"aria-label": "File upload drop zone",
|
|
1893
|
-
className:
|
|
1897
|
+
className: S(
|
|
1894
1898
|
"flex flex-col items-center justify-center gap-4 min-h-[300px]"
|
|
1895
1899
|
),
|
|
1896
1900
|
onDragOver: y,
|
|
1897
|
-
onDragLeave:
|
|
1901
|
+
onDragLeave: w,
|
|
1898
1902
|
onDrop: R,
|
|
1899
1903
|
children: [
|
|
1900
1904
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1902,15 +1906,15 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1902
1906
|
{
|
|
1903
1907
|
type: "button",
|
|
1904
1908
|
onClick: () => f.current?.click(),
|
|
1905
|
-
className:
|
|
1909
|
+
className: S(
|
|
1906
1910
|
"flex items-center justify-center gap-2 rounded-full size-20 p-0 border border-dashed border-muted-foreground/50 hover:bg-accent/75 transition-colors",
|
|
1907
1911
|
(c || x) && "border-solid",
|
|
1908
1912
|
x && "bg-accent border-primary"
|
|
1909
1913
|
),
|
|
1910
1914
|
children: /* @__PURE__ */ t.jsx(
|
|
1911
|
-
|
|
1915
|
+
me,
|
|
1912
1916
|
{
|
|
1913
|
-
className:
|
|
1917
|
+
className: S(
|
|
1914
1918
|
"text-muted-foreground",
|
|
1915
1919
|
x && "text-primary"
|
|
1916
1920
|
),
|
|
@@ -1925,12 +1929,12 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1925
1929
|
" ",
|
|
1926
1930
|
/* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
|
|
1927
1931
|
"(",
|
|
1928
|
-
|
|
1932
|
+
ve(c.size),
|
|
1929
1933
|
")"
|
|
1930
1934
|
] })
|
|
1931
1935
|
] }),
|
|
1932
1936
|
/* @__PURE__ */ t.jsx(
|
|
1933
|
-
|
|
1937
|
+
K,
|
|
1934
1938
|
{
|
|
1935
1939
|
type: "button",
|
|
1936
1940
|
variant: "ghost",
|
|
@@ -1943,7 +1947,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1943
1947
|
]
|
|
1944
1948
|
}
|
|
1945
1949
|
),
|
|
1946
|
-
l === "multipart" && /* @__PURE__ */ t.jsx(
|
|
1950
|
+
l === "multipart" && /* @__PURE__ */ t.jsx(Ee, { children: N.fields.map((j, $) => /* @__PURE__ */ t.jsx(_r, { index: $, manager: N }, j.id)) })
|
|
1947
1951
|
] })
|
|
1948
1952
|
] });
|
|
1949
1953
|
}, Lt = (e, n, s) => {
|
|
@@ -1958,12 +1962,15 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1958
1962
|
r.searchParams.set(o.name, o.value);
|
|
1959
1963
|
}), r;
|
|
1960
1964
|
};
|
|
1961
|
-
function
|
|
1965
|
+
function Ur(e) {
|
|
1962
1966
|
return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
|
|
1963
1967
|
e
|
|
1964
1968
|
);
|
|
1965
1969
|
}
|
|
1966
|
-
|
|
1970
|
+
function Mr(e) {
|
|
1971
|
+
return /^audio\//i.test(e);
|
|
1972
|
+
}
|
|
1973
|
+
const Gr = (e, n) => {
|
|
1967
1974
|
const s = e.find(
|
|
1968
1975
|
([a]) => a.toLowerCase() === "content-disposition"
|
|
1969
1976
|
)?.[1];
|
|
@@ -1980,21 +1987,21 @@ const Ur = (e, n) => {
|
|
|
1980
1987
|
} catch {
|
|
1981
1988
|
return "download";
|
|
1982
1989
|
}
|
|
1983
|
-
},
|
|
1984
|
-
|
|
1990
|
+
}, Hr = Pe.Root, un = xe.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx(Pe.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
1991
|
+
Pe.Content,
|
|
1985
1992
|
{
|
|
1986
1993
|
ref: r,
|
|
1987
1994
|
align: n,
|
|
1988
1995
|
sideOffset: s,
|
|
1989
|
-
className:
|
|
1996
|
+
className: S(
|
|
1990
1997
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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",
|
|
1991
1998
|
e
|
|
1992
1999
|
),
|
|
1993
2000
|
...a
|
|
1994
2001
|
}
|
|
1995
2002
|
) }));
|
|
1996
|
-
un.displayName =
|
|
1997
|
-
const
|
|
2003
|
+
un.displayName = Pe.Content.displayName;
|
|
2004
|
+
const Qr = ({
|
|
1998
2005
|
value: e,
|
|
1999
2006
|
options: n,
|
|
2000
2007
|
onChange: s,
|
|
@@ -2005,10 +2012,10 @@ const Hr = ({
|
|
|
2005
2012
|
ref: c,
|
|
2006
2013
|
onSelect: l
|
|
2007
2014
|
}) => {
|
|
2008
|
-
const [m, d] = k(!1), [f, x] = k(!1),
|
|
2009
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2010
|
-
/* @__PURE__ */ t.jsx(
|
|
2011
|
-
|
|
2015
|
+
const [m, d] = k(!1), [f, x] = k(!1), p = Ls((u) => u.filtered.count), v = E(null);
|
|
2016
|
+
return /* @__PURE__ */ t.jsxs(Hr, { open: m, children: [
|
|
2017
|
+
/* @__PURE__ */ t.jsx($s, { children: /* @__PURE__ */ t.jsx(
|
|
2018
|
+
Es,
|
|
2012
2019
|
{
|
|
2013
2020
|
autoComplete: "off",
|
|
2014
2021
|
ref: (u) => {
|
|
@@ -2016,7 +2023,7 @@ const Hr = ({
|
|
|
2016
2023
|
},
|
|
2017
2024
|
value: e ? String(e) : void 0,
|
|
2018
2025
|
placeholder: r,
|
|
2019
|
-
className:
|
|
2026
|
+
className: S("h-9 bg-transparent", a),
|
|
2020
2027
|
onFocus: () => d(!0),
|
|
2021
2028
|
onBlur: () => {
|
|
2022
2029
|
f || d(!1);
|
|
@@ -2033,8 +2040,8 @@ const Hr = ({
|
|
|
2033
2040
|
onMouseEnter: () => x(!0),
|
|
2034
2041
|
onMouseLeave: () => x(!1),
|
|
2035
2042
|
onOpenAutoFocus: (u) => u.preventDefault(),
|
|
2036
|
-
className:
|
|
2037
|
-
"border-0":
|
|
2043
|
+
className: S("p-0 w-(--radix-popover-trigger-width)", {
|
|
2044
|
+
"border-0": p === 0
|
|
2038
2045
|
}),
|
|
2039
2046
|
align: "start",
|
|
2040
2047
|
side: "bottom",
|
|
@@ -2044,8 +2051,8 @@ const Hr = ({
|
|
|
2044
2051
|
onTouchMove: (u) => {
|
|
2045
2052
|
u.stopPropagation();
|
|
2046
2053
|
},
|
|
2047
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2048
|
-
|
|
2054
|
+
children: /* @__PURE__ */ t.jsx(Rs, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
|
|
2055
|
+
Is,
|
|
2049
2056
|
{
|
|
2050
2057
|
value: u,
|
|
2051
2058
|
onSelect: (y) => {
|
|
@@ -2059,7 +2066,7 @@ const Hr = ({
|
|
|
2059
2066
|
}
|
|
2060
2067
|
)
|
|
2061
2068
|
] });
|
|
2062
|
-
},
|
|
2069
|
+
}, $e = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(ks, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Qr, { ...n }) }), Jr = Object.freeze([
|
|
2063
2070
|
"Accept",
|
|
2064
2071
|
"Accept-Encoding",
|
|
2065
2072
|
"Accept-Language",
|
|
@@ -2086,67 +2093,67 @@ const Hr = ({
|
|
|
2086
2093
|
"Set-Cookie",
|
|
2087
2094
|
"User-Agent",
|
|
2088
2095
|
"X-Requested-With"
|
|
2089
|
-
]),
|
|
2096
|
+
]), Wr = ({
|
|
2090
2097
|
control: e,
|
|
2091
2098
|
schemaHeaders: n,
|
|
2092
2099
|
lockedHeaders: s
|
|
2093
2100
|
}) => {
|
|
2094
|
-
const { watch: a, formState: r } =
|
|
2101
|
+
const { watch: a, formState: r } = oe(), o = a("headers"), i = ot({
|
|
2095
2102
|
control: e,
|
|
2096
2103
|
name: "headers",
|
|
2097
2104
|
defaultValue: { name: "", value: "", active: !1 }
|
|
2098
|
-
}), c = n.filter((d) => !o.some((f) => f.name === d.name)).map(({ name: d }) => d), l = i.fields.flatMap((d, f) => !s?.map((
|
|
2105
|
+
}), c = n.filter((d) => !o.some((f) => f.name === d.name)).map(({ name: d }) => d), l = i.fields.flatMap((d, f) => !s?.map((p) => p.toLowerCase()).includes(d.name.toLowerCase()) ? [] : [f]), m = s?.map((d) => ({
|
|
2099
2106
|
name: d,
|
|
2100
2107
|
id: `locked-${d}`,
|
|
2101
2108
|
value: "••••••••••",
|
|
2102
2109
|
active: !0,
|
|
2103
2110
|
locked: !0
|
|
2104
2111
|
})) ?? [];
|
|
2105
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2106
|
-
/* @__PURE__ */ t.jsxs(
|
|
2107
|
-
/* @__PURE__ */ t.jsx(
|
|
2112
|
+
return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
2113
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2114
|
+
/* @__PURE__ */ t.jsx(Fn, { size: 14 }),
|
|
2108
2115
|
/* @__PURE__ */ t.jsx(H, { children: "Headers" })
|
|
2109
2116
|
] }),
|
|
2110
|
-
/* @__PURE__ */ t.jsx(
|
|
2117
|
+
/* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(Ee, { children: [
|
|
2111
2118
|
m.map((d) => /* @__PURE__ */ t.jsxs(Ct, { children: [
|
|
2112
2119
|
/* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2113
2120
|
ge,
|
|
2114
2121
|
{
|
|
2115
2122
|
className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
|
|
2116
2123
|
children: [
|
|
2117
|
-
/* @__PURE__ */ t.jsx(
|
|
2124
|
+
/* @__PURE__ */ t.jsx(zn, { size: 16 }),
|
|
2118
2125
|
/* @__PURE__ */ t.jsx(I, { value: d.name, disabled: !0 }),
|
|
2119
2126
|
/* @__PURE__ */ t.jsx("div", { children: d.value })
|
|
2120
2127
|
]
|
|
2121
2128
|
},
|
|
2122
2129
|
d.id
|
|
2123
2130
|
) }),
|
|
2124
|
-
/* @__PURE__ */ t.jsx(
|
|
2131
|
+
/* @__PURE__ */ t.jsx(wt, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
|
|
2125
2132
|
] }, d.id)),
|
|
2126
2133
|
i.fields.map((d, f) => {
|
|
2127
2134
|
const x = n.find(
|
|
2128
|
-
(
|
|
2129
|
-
),
|
|
2135
|
+
(w) => w.name === o.at(f)?.name
|
|
2136
|
+
), p = x?.enum && x.enum.length > 0, v = l.includes(f), u = i.getNameInputProps(f), y = i.getValueInputProps(f);
|
|
2130
2137
|
return /* @__PURE__ */ t.jsxs(
|
|
2131
2138
|
ge,
|
|
2132
2139
|
{
|
|
2133
|
-
className:
|
|
2140
|
+
className: S(
|
|
2134
2141
|
v && "text-amber-600",
|
|
2135
2142
|
v && !r.dirtyFields.headers?.[f]?.value && "hidden"
|
|
2136
2143
|
),
|
|
2137
2144
|
children: [
|
|
2138
2145
|
/* @__PURE__ */ t.jsx(
|
|
2139
|
-
|
|
2146
|
+
be,
|
|
2140
2147
|
{
|
|
2141
|
-
className:
|
|
2148
|
+
className: S(v && "hidden"),
|
|
2142
2149
|
...i.getCheckboxProps(f)
|
|
2143
2150
|
}
|
|
2144
2151
|
),
|
|
2145
2152
|
/* @__PURE__ */ t.jsxs(Ct, { children: [
|
|
2146
2153
|
/* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2147
|
-
|
|
2154
|
+
Vn,
|
|
2148
2155
|
{
|
|
2149
|
-
className:
|
|
2156
|
+
className: S(
|
|
2150
2157
|
"text-amber-600",
|
|
2151
2158
|
!v && "hidden"
|
|
2152
2159
|
),
|
|
@@ -2154,7 +2161,7 @@ const Hr = ({
|
|
|
2154
2161
|
}
|
|
2155
2162
|
) }),
|
|
2156
2163
|
/* @__PURE__ */ t.jsx(
|
|
2157
|
-
|
|
2164
|
+
wt,
|
|
2158
2165
|
{
|
|
2159
2166
|
alignOffset: 10,
|
|
2160
2167
|
side: "bottom",
|
|
@@ -2164,26 +2171,26 @@ const Hr = ({
|
|
|
2164
2171
|
)
|
|
2165
2172
|
] }),
|
|
2166
2173
|
/* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2167
|
-
|
|
2174
|
+
$e,
|
|
2168
2175
|
{
|
|
2169
2176
|
...u,
|
|
2170
2177
|
value: String(i.getValue(f, "name")),
|
|
2171
2178
|
placeholder: "Name",
|
|
2172
|
-
options: [...c, ...
|
|
2173
|
-
onChange: (
|
|
2174
|
-
onSelect: (
|
|
2179
|
+
options: [...c, ...Jr],
|
|
2180
|
+
onChange: (w) => i.setValue(f, "name", w),
|
|
2181
|
+
onSelect: (w) => i.setValue(f, "name", w, { focus: "next" })
|
|
2175
2182
|
}
|
|
2176
2183
|
) }),
|
|
2177
2184
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2178
|
-
|
|
2179
|
-
|
|
2185
|
+
p ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2186
|
+
$e,
|
|
2180
2187
|
{
|
|
2181
2188
|
...y,
|
|
2182
2189
|
value: String(i.getValue(f, "value")),
|
|
2183
2190
|
shouldFilter: !1,
|
|
2184
2191
|
options: x.enum ?? [],
|
|
2185
|
-
onChange: (
|
|
2186
|
-
onSelect: (
|
|
2192
|
+
onChange: (w) => i.setValue(f, "value", w),
|
|
2193
|
+
onSelect: (w) => i.setValue(f, "value", w, { focus: "next" })
|
|
2187
2194
|
}
|
|
2188
2195
|
) }) : /* @__PURE__ */ t.jsx(
|
|
2189
2196
|
I,
|
|
@@ -2207,13 +2214,13 @@ const Hr = ({
|
|
|
2207
2214
|
})
|
|
2208
2215
|
] }) }) }) })
|
|
2209
2216
|
] });
|
|
2210
|
-
},
|
|
2217
|
+
}, Xr = Fs(
|
|
2211
2218
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2212
2219
|
), Re = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2213
2220
|
Kt.Root,
|
|
2214
2221
|
{
|
|
2215
2222
|
ref: s,
|
|
2216
|
-
className:
|
|
2223
|
+
className: S(Xr(), e),
|
|
2217
2224
|
...n
|
|
2218
2225
|
}
|
|
2219
2226
|
));
|
|
@@ -2221,7 +2228,7 @@ Re.displayName = Kt.Root.displayName;
|
|
|
2221
2228
|
const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2222
2229
|
he.Root,
|
|
2223
2230
|
{
|
|
2224
|
-
className:
|
|
2231
|
+
className: S("grid gap-2", e),
|
|
2225
2232
|
...n,
|
|
2226
2233
|
ref: s
|
|
2227
2234
|
}
|
|
@@ -2231,12 +2238,12 @@ const pn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
|
2231
2238
|
he.Item,
|
|
2232
2239
|
{
|
|
2233
2240
|
ref: s,
|
|
2234
|
-
className:
|
|
2241
|
+
className: S(
|
|
2235
2242
|
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
2236
2243
|
e
|
|
2237
2244
|
),
|
|
2238
2245
|
...n,
|
|
2239
|
-
children: /* @__PURE__ */ t.jsx(he.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(
|
|
2246
|
+
children: /* @__PURE__ */ t.jsx(he.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Bn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
2240
2247
|
}
|
|
2241
2248
|
));
|
|
2242
2249
|
pn.displayName = he.Item.displayName;
|
|
@@ -2249,10 +2256,10 @@ const hn = ({
|
|
|
2249
2256
|
{
|
|
2250
2257
|
onValueChange: (a) => n(a),
|
|
2251
2258
|
value: s,
|
|
2252
|
-
defaultValue:
|
|
2259
|
+
defaultValue: pe,
|
|
2253
2260
|
className: "gap-0",
|
|
2254
2261
|
disabled: e?.length === 0,
|
|
2255
|
-
children: [{ id:
|
|
2262
|
+
children: [{ id: pe, label: "None" }, ...e ?? []].map(
|
|
2256
2263
|
(a) => /* @__PURE__ */ t.jsxs(
|
|
2257
2264
|
Re,
|
|
2258
2265
|
{
|
|
@@ -2266,7 +2273,7 @@ const hn = ({
|
|
|
2266
2273
|
)
|
|
2267
2274
|
)
|
|
2268
2275
|
}
|
|
2269
|
-
) }),
|
|
2276
|
+
) }), Kr = ({
|
|
2270
2277
|
onSubmit: e,
|
|
2271
2278
|
identities: n,
|
|
2272
2279
|
open: s,
|
|
@@ -2276,7 +2283,7 @@ const hn = ({
|
|
|
2276
2283
|
return /* @__PURE__ */ t.jsx(et, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(tt, { children: [
|
|
2277
2284
|
/* @__PURE__ */ t.jsx(nt, { children: "Select an auth identity" }),
|
|
2278
2285
|
/* @__PURE__ */ t.jsx(_t, { children: "Please select an identity for this request." }),
|
|
2279
|
-
/* @__PURE__ */ t.jsx(
|
|
2286
|
+
/* @__PURE__ */ t.jsx(Ds, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
|
|
2280
2287
|
hn,
|
|
2281
2288
|
{
|
|
2282
2289
|
identities: n,
|
|
@@ -2287,7 +2294,7 @@ const hn = ({
|
|
|
2287
2294
|
/* @__PURE__ */ t.jsxs(qt, { className: "flex flex-col gap-2", children: [
|
|
2288
2295
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2289
2296
|
/* @__PURE__ */ t.jsx(
|
|
2290
|
-
|
|
2297
|
+
be,
|
|
2291
2298
|
{
|
|
2292
2299
|
id: "remember",
|
|
2293
2300
|
checked: i,
|
|
@@ -2299,7 +2306,7 @@ const hn = ({
|
|
|
2299
2306
|
/* @__PURE__ */ t.jsx(Re, { htmlFor: "remember", children: "Remember my choice" })
|
|
2300
2307
|
] }),
|
|
2301
2308
|
/* @__PURE__ */ t.jsx(
|
|
2302
|
-
|
|
2309
|
+
B,
|
|
2303
2310
|
{
|
|
2304
2311
|
onClick: () => e({ identity: r, rememberedIdentity: i }),
|
|
2305
2312
|
children: "Send"
|
|
@@ -2307,19 +2314,19 @@ const hn = ({
|
|
|
2307
2314
|
)
|
|
2308
2315
|
] })
|
|
2309
2316
|
] }) });
|
|
2310
|
-
},
|
|
2317
|
+
}, Me = (e) => Math.abs(
|
|
2311
2318
|
Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
|
|
2312
|
-
), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${
|
|
2319
|
+
), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Me(n) + Me(s)}`)) : Me(e), kt = (e, n = {}) => {
|
|
2313
2320
|
const s = (3 * Ge(e) + 2 * Ge(e) + Ge(e)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
|
|
2314
2321
|
return `${s}deg ${a}% ${r}%`;
|
|
2315
|
-
}, He = "data-linked-param",
|
|
2316
|
-
const { resolvedTheme: n } =
|
|
2322
|
+
}, He = "data-linked-param", Zr = (e) => {
|
|
2323
|
+
const { resolvedTheme: n } = ps();
|
|
2317
2324
|
return {
|
|
2318
|
-
text:
|
|
2325
|
+
text: kt(
|
|
2319
2326
|
e,
|
|
2320
2327
|
n === "light" ? { saturation: 95, lightness: 38 } : {}
|
|
2321
2328
|
),
|
|
2322
|
-
background:
|
|
2329
|
+
background: kt(
|
|
2323
2330
|
e,
|
|
2324
2331
|
n === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
2325
2332
|
)
|
|
@@ -2332,16 +2339,16 @@ const hn = ({
|
|
|
2332
2339
|
children: r,
|
|
2333
2340
|
onClick: o
|
|
2334
2341
|
}) => {
|
|
2335
|
-
const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } =
|
|
2336
|
-
return
|
|
2342
|
+
const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Zr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, p = `hsl(${d} / 50%)`;
|
|
2343
|
+
return U(() => {
|
|
2337
2344
|
if (!c || !i.current) return;
|
|
2338
2345
|
const v = () => {
|
|
2339
|
-
document.querySelectorAll(`[${He}="${c}"]`).forEach((
|
|
2340
|
-
|
|
2346
|
+
document.querySelectorAll(`[${He}="${c}"]`).forEach((w) => {
|
|
2347
|
+
w instanceof HTMLElement && (w.dataset.active = "true");
|
|
2341
2348
|
});
|
|
2342
2349
|
}, u = () => {
|
|
2343
|
-
document.querySelectorAll(`[${He}="${c}"]`).forEach((
|
|
2344
|
-
|
|
2350
|
+
document.querySelectorAll(`[${He}="${c}"]`).forEach((w) => {
|
|
2351
|
+
w instanceof HTMLElement && (w.dataset.active = "false");
|
|
2345
2352
|
});
|
|
2346
2353
|
}, y = i.current;
|
|
2347
2354
|
return y.addEventListener("mouseenter", v), y.addEventListener("mouseleave", u), () => {
|
|
@@ -2353,7 +2360,7 @@ const hn = ({
|
|
|
2353
2360
|
"span",
|
|
2354
2361
|
{
|
|
2355
2362
|
[He]: c,
|
|
2356
|
-
className:
|
|
2363
|
+
className: S(
|
|
2357
2364
|
// This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
|
|
2358
2365
|
"relative transition-all duration-100 rounded-lg",
|
|
2359
2366
|
"border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
|
|
@@ -2366,25 +2373,25 @@ const hn = ({
|
|
|
2366
2373
|
onClick: o,
|
|
2367
2374
|
style: {
|
|
2368
2375
|
"--param-color": f,
|
|
2369
|
-
"--border-color":
|
|
2376
|
+
"--border-color": p,
|
|
2370
2377
|
"--background-color": x
|
|
2371
2378
|
},
|
|
2372
2379
|
children: r ?? e
|
|
2373
2380
|
}
|
|
2374
2381
|
);
|
|
2375
|
-
},
|
|
2382
|
+
}, Yr = ({
|
|
2376
2383
|
control: e,
|
|
2377
2384
|
url: n
|
|
2378
2385
|
}) => {
|
|
2379
|
-
const { fields: s } =
|
|
2386
|
+
const { fields: s } = Ut({
|
|
2380
2387
|
control: e,
|
|
2381
2388
|
name: "pathParams"
|
|
2382
2389
|
}), a = [...s].sort(
|
|
2383
2390
|
(r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
|
|
2384
2391
|
);
|
|
2385
|
-
return /* @__PURE__ */ t.jsx(
|
|
2392
|
+
return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
2386
2393
|
/* @__PURE__ */ t.jsx(
|
|
2387
|
-
|
|
2394
|
+
St,
|
|
2388
2395
|
{
|
|
2389
2396
|
control: e,
|
|
2390
2397
|
name: `pathParams.${o}.name`,
|
|
@@ -2399,7 +2406,7 @@ const hn = ({
|
|
|
2399
2406
|
}
|
|
2400
2407
|
),
|
|
2401
2408
|
/* @__PURE__ */ t.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ t.jsx(
|
|
2402
|
-
|
|
2409
|
+
St,
|
|
2403
2410
|
{
|
|
2404
2411
|
control: e,
|
|
2405
2412
|
name: `pathParams.${o}.value`,
|
|
@@ -2407,28 +2414,28 @@ const hn = ({
|
|
|
2407
2414
|
}
|
|
2408
2415
|
) })
|
|
2409
2416
|
] }, r.id)) });
|
|
2410
|
-
},
|
|
2417
|
+
}, ea = ({
|
|
2411
2418
|
control: e,
|
|
2412
2419
|
schemaQueryParams: n
|
|
2413
2420
|
}) => {
|
|
2414
|
-
const { watch: s } =
|
|
2421
|
+
const { watch: s } = oe(), a = s("queryParams"), r = ot({
|
|
2415
2422
|
control: e,
|
|
2416
2423
|
name: "queryParams",
|
|
2417
2424
|
defaultValue: { name: "", value: "", active: !1 }
|
|
2418
2425
|
}), o = n.map(
|
|
2419
2426
|
(c) => !!c.isRequired
|
|
2420
2427
|
), i = n.length > 0;
|
|
2421
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2422
|
-
/* @__PURE__ */ t.jsxs(
|
|
2423
|
-
/* @__PURE__ */ t.jsx(
|
|
2428
|
+
return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
2429
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2430
|
+
/* @__PURE__ */ t.jsx(_n, { size: 16 }),
|
|
2424
2431
|
/* @__PURE__ */ t.jsx(H, { children: "Query Parameters" })
|
|
2425
2432
|
] }),
|
|
2426
|
-
/* @__PURE__ */ t.jsx(
|
|
2433
|
+
/* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Ee, { children: r.fields.map((c, l) => {
|
|
2427
2434
|
const m = n.find(
|
|
2428
|
-
(
|
|
2435
|
+
(p) => p.name === a.at(l)?.name
|
|
2429
2436
|
), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
|
|
2430
2437
|
return /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
2431
|
-
/* @__PURE__ */ t.jsx(
|
|
2438
|
+
/* @__PURE__ */ t.jsx(be, { ...r.getCheckboxProps(l) }),
|
|
2432
2439
|
o[l] ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2433
2440
|
"label",
|
|
2434
2441
|
{
|
|
@@ -2441,26 +2448,26 @@ const hn = ({
|
|
|
2441
2448
|
]
|
|
2442
2449
|
}
|
|
2443
2450
|
) }) : i ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2444
|
-
|
|
2451
|
+
$e,
|
|
2445
2452
|
{
|
|
2446
2453
|
...f,
|
|
2447
2454
|
value: String(r.getValue(l, "name")),
|
|
2448
2455
|
placeholder: "Name",
|
|
2449
|
-
options: n.map((
|
|
2450
|
-
onChange: (
|
|
2451
|
-
onSelect: (
|
|
2456
|
+
options: n.map((p) => p.name),
|
|
2457
|
+
onChange: (p) => r.setValue(l, "name", p),
|
|
2458
|
+
onSelect: (p) => r.setValue(l, "name", p, { focus: "next" })
|
|
2452
2459
|
}
|
|
2453
2460
|
) }) : /* @__PURE__ */ t.jsx(I, { ...f, placeholder: "Name" }),
|
|
2454
2461
|
/* @__PURE__ */ t.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2455
2462
|
d ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2456
|
-
|
|
2463
|
+
$e,
|
|
2457
2464
|
{
|
|
2458
2465
|
...x,
|
|
2459
2466
|
value: String(r.getValue(l, "value")),
|
|
2460
2467
|
shouldFilter: !1,
|
|
2461
2468
|
options: m.enum ?? [],
|
|
2462
|
-
onChange: (
|
|
2463
|
-
onSelect: (
|
|
2469
|
+
onChange: (p) => r.setValue(l, "value", p),
|
|
2470
|
+
onSelect: (p) => r.setValue(l, "value", p, { focus: "next" })
|
|
2464
2471
|
}
|
|
2465
2472
|
) }) : /* @__PURE__ */ t.jsx(
|
|
2466
2473
|
I,
|
|
@@ -2480,7 +2487,7 @@ const hn = ({
|
|
|
2480
2487
|
] }, c.id);
|
|
2481
2488
|
}) }) })
|
|
2482
2489
|
] });
|
|
2483
|
-
},
|
|
2490
|
+
}, ta = ({
|
|
2484
2491
|
open: e,
|
|
2485
2492
|
setOpen: n,
|
|
2486
2493
|
onSignUp: s,
|
|
@@ -2495,7 +2502,7 @@ const hn = ({
|
|
|
2495
2502
|
/* @__PURE__ */ t.jsx(_t, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
2496
2503
|
/* @__PURE__ */ t.jsxs(Re, { className: "flex items-center gap-2 font-normal", children: [
|
|
2497
2504
|
/* @__PURE__ */ t.jsx(
|
|
2498
|
-
|
|
2505
|
+
be,
|
|
2499
2506
|
{
|
|
2500
2507
|
checked: o,
|
|
2501
2508
|
onCheckedChange: (l) => i(l === !0)
|
|
@@ -2504,14 +2511,14 @@ const hn = ({
|
|
|
2504
2511
|
"Don't show this again"
|
|
2505
2512
|
] }),
|
|
2506
2513
|
/* @__PURE__ */ t.jsxs(qt, { className: "flex gap-2 sm:justify-between", children: [
|
|
2507
|
-
/* @__PURE__ */ t.jsx(
|
|
2514
|
+
/* @__PURE__ */ t.jsx(B, { type: "button", variant: "outline", onClick: c, children: "Skip" }),
|
|
2508
2515
|
/* @__PURE__ */ t.jsxs("div", { className: "flex gap-2", children: [
|
|
2509
|
-
s && /* @__PURE__ */ t.jsx(
|
|
2510
|
-
a && /* @__PURE__ */ t.jsx(
|
|
2516
|
+
s && /* @__PURE__ */ t.jsx(B, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
|
|
2517
|
+
a && /* @__PURE__ */ t.jsx(B, { type: "button", variant: "default", onClick: a, children: "Login" })
|
|
2511
2518
|
] })
|
|
2512
2519
|
] })
|
|
2513
2520
|
] }) });
|
|
2514
|
-
},
|
|
2521
|
+
}, na = Ze()(
|
|
2515
2522
|
Ye(
|
|
2516
2523
|
(e, n) => ({
|
|
2517
2524
|
rememberedIdentity: null,
|
|
@@ -2522,10 +2529,10 @@ const hn = ({
|
|
|
2522
2529
|
}),
|
|
2523
2530
|
{
|
|
2524
2531
|
name: "identity-storage",
|
|
2525
|
-
storage:
|
|
2532
|
+
storage: Bt(() => sessionStorage)
|
|
2526
2533
|
}
|
|
2527
2534
|
)
|
|
2528
|
-
),
|
|
2535
|
+
), sa = ({
|
|
2529
2536
|
path: e,
|
|
2530
2537
|
renderParam: n
|
|
2531
2538
|
}) => {
|
|
@@ -2538,23 +2545,23 @@ const hn = ({
|
|
|
2538
2545
|
if (!f) return;
|
|
2539
2546
|
const x = m.index;
|
|
2540
2547
|
x > l && c.push(
|
|
2541
|
-
/* @__PURE__ */ t.jsx(
|
|
2548
|
+
/* @__PURE__ */ t.jsx(le, { children: a.slice(l, x) }, `text-${l}-${x}`)
|
|
2542
2549
|
), c.push(
|
|
2543
|
-
/* @__PURE__ */ t.jsx(
|
|
2550
|
+
/* @__PURE__ */ t.jsx(le, { children: n({ name: f, originalValue: d, index: s++ }) }, `param-${f}`)
|
|
2544
2551
|
), l = x + d.length;
|
|
2545
2552
|
}), l < a.length && c.push(
|
|
2546
|
-
/* @__PURE__ */ t.jsx(
|
|
2553
|
+
/* @__PURE__ */ t.jsx(le, { children: a.slice(l) }, `text-${l}-${a.length}`)
|
|
2547
2554
|
), // biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
|
|
2548
|
-
/* @__PURE__ */ t.jsxs(
|
|
2555
|
+
/* @__PURE__ */ t.jsxs(le, { children: [
|
|
2549
2556
|
c,
|
|
2550
2557
|
r < o.length - 1 && "/",
|
|
2551
2558
|
/* @__PURE__ */ t.jsx("wbr", {})
|
|
2552
2559
|
] }, `${a}-${r}`);
|
|
2553
2560
|
});
|
|
2554
|
-
},
|
|
2555
|
-
const { watch: n, setFocus: s } =
|
|
2561
|
+
}, ra = ({ url: e }) => {
|
|
2562
|
+
const { watch: n, setFocus: s } = oe(), [a] = n(["pathParams"]);
|
|
2556
2563
|
return /* @__PURE__ */ t.jsx(
|
|
2557
|
-
|
|
2564
|
+
sa,
|
|
2558
2565
|
{
|
|
2559
2566
|
path: e,
|
|
2560
2567
|
renderParam: ({ name: r, originalValue: o, index: i }) => {
|
|
@@ -2574,8 +2581,8 @@ const hn = ({
|
|
|
2574
2581
|
}
|
|
2575
2582
|
}
|
|
2576
2583
|
);
|
|
2577
|
-
},
|
|
2578
|
-
const { watch: e } =
|
|
2584
|
+
}, aa = () => {
|
|
2585
|
+
const { watch: e } = oe(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(le, { children: [
|
|
2579
2586
|
a.name,
|
|
2580
2587
|
"=",
|
|
2581
2588
|
encodeURIComponent(a.value).replaceAll("%20", "+"),
|
|
@@ -2586,7 +2593,7 @@ const hn = ({
|
|
|
2586
2593
|
s.length > 0 ? "?" : "",
|
|
2587
2594
|
s
|
|
2588
2595
|
] });
|
|
2589
|
-
},
|
|
2596
|
+
}, oa = ({ status: e }) => {
|
|
2590
2597
|
if (!e) return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2591
2598
|
switch (Number(e.toString().slice(0, 1))) {
|
|
2592
2599
|
case 2:
|
|
@@ -2598,7 +2605,7 @@ const hn = ({
|
|
|
2598
2605
|
default:
|
|
2599
2606
|
return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2600
2607
|
}
|
|
2601
|
-
},
|
|
2608
|
+
}, ia = () => {
|
|
2602
2609
|
const e = E(null), n = E(null), s = E(Date.now()), a = E(null), r = D(() => {
|
|
2603
2610
|
if (n.current) {
|
|
2604
2611
|
const o = Date.now() - s.current;
|
|
@@ -2606,7 +2613,7 @@ const hn = ({
|
|
|
2606
2613
|
}
|
|
2607
2614
|
a.current = requestAnimationFrame(r);
|
|
2608
2615
|
}, []);
|
|
2609
|
-
return
|
|
2616
|
+
return cs(() => {
|
|
2610
2617
|
const o = e.current;
|
|
2611
2618
|
if (!o) return;
|
|
2612
2619
|
const i = document.createTextNode("0");
|
|
@@ -2614,7 +2621,7 @@ const hn = ({
|
|
|
2614
2621
|
a.current && cancelAnimationFrame(a.current), n.current && o.contains(i) && o.removeChild(i);
|
|
2615
2622
|
};
|
|
2616
2623
|
}, [r]), /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
|
|
2617
|
-
},
|
|
2624
|
+
}, la = ({
|
|
2618
2625
|
status: e,
|
|
2619
2626
|
time: n,
|
|
2620
2627
|
size: s,
|
|
@@ -2635,7 +2642,7 @@ const hn = ({
|
|
|
2635
2642
|
};
|
|
2636
2643
|
return /* @__PURE__ */ t.jsxs("div", { className: "relative shrink-0 flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
|
|
2637
2644
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2638
|
-
/* @__PURE__ */ t.jsx(
|
|
2645
|
+
/* @__PURE__ */ t.jsx(oa, { status: e }),
|
|
2639
2646
|
" ",
|
|
2640
2647
|
e ?? "Sending Request...",
|
|
2641
2648
|
e ? ` ${o[e]}` : ""
|
|
@@ -2644,12 +2651,12 @@ const hn = ({
|
|
|
2644
2651
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2645
2652
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Size" }),
|
|
2646
2653
|
" ",
|
|
2647
|
-
/* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ?
|
|
2654
|
+
/* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? ve(s) : "- B" })
|
|
2648
2655
|
] }),
|
|
2649
2656
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2650
2657
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
2651
2658
|
" ",
|
|
2652
|
-
n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(
|
|
2659
|
+
n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(ia, {}),
|
|
2653
2660
|
"ms"
|
|
2654
2661
|
] })
|
|
2655
2662
|
] }),
|
|
@@ -2664,6 +2671,29 @@ const hn = ({
|
|
|
2664
2671
|
}
|
|
2665
2672
|
)
|
|
2666
2673
|
] });
|
|
2674
|
+
}, ca = ({
|
|
2675
|
+
blob: e,
|
|
2676
|
+
fileName: n,
|
|
2677
|
+
size: s,
|
|
2678
|
+
onDownload: a
|
|
2679
|
+
}) => {
|
|
2680
|
+
const [r, o] = k(null);
|
|
2681
|
+
return U(() => {
|
|
2682
|
+
const i = URL.createObjectURL(e);
|
|
2683
|
+
return o(i), () => {
|
|
2684
|
+
URL.revokeObjectURL(i);
|
|
2685
|
+
};
|
|
2686
|
+
}, [e]), r ? /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
|
|
2687
|
+
/* @__PURE__ */ t.jsx("audio", { controls: !0, src: r, className: "w-full max-w-md", children: "Your browser does not support the audio element." }),
|
|
2688
|
+
/* @__PURE__ */ t.jsxs(B, { onClick: a, className: "flex items-center gap-2", children: [
|
|
2689
|
+
/* @__PURE__ */ t.jsx(Ft, { className: "h-4 w-4" }),
|
|
2690
|
+
"Download ",
|
|
2691
|
+
n,
|
|
2692
|
+
" (",
|
|
2693
|
+
ve(s),
|
|
2694
|
+
")"
|
|
2695
|
+
] })
|
|
2696
|
+
] }) }) : /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsx("div", { className: "text-sm text-muted-foreground", children: "Loading audio..." }) });
|
|
2667
2697
|
};
|
|
2668
2698
|
function it(e) {
|
|
2669
2699
|
if (e === null) return "null";
|
|
@@ -2672,9 +2702,9 @@ function it(e) {
|
|
|
2672
2702
|
const n = e[0];
|
|
2673
2703
|
return n === void 0 ? "any[]" : `${it(n)}[]`;
|
|
2674
2704
|
}
|
|
2675
|
-
return typeof e == "object" ?
|
|
2705
|
+
return typeof e == "object" ? da(e) : typeof e;
|
|
2676
2706
|
}
|
|
2677
|
-
function
|
|
2707
|
+
function da(e, n = "") {
|
|
2678
2708
|
const s = ["{"];
|
|
2679
2709
|
for (const [a, r] of Object.entries(e)) {
|
|
2680
2710
|
const o = it(r);
|
|
@@ -2683,10 +2713,10 @@ function la(e, n = "") {
|
|
|
2683
2713
|
return s.push("}"), s.join(`
|
|
2684
2714
|
`);
|
|
2685
2715
|
}
|
|
2686
|
-
function
|
|
2716
|
+
function ua(e) {
|
|
2687
2717
|
return { lines: [`type GeneratedType = ${it(e)};`] };
|
|
2688
2718
|
}
|
|
2689
|
-
const
|
|
2719
|
+
const ma = (e) => Object.entries({
|
|
2690
2720
|
"application/json": "json",
|
|
2691
2721
|
"text/json": "json",
|
|
2692
2722
|
"text/html": "html",
|
|
@@ -2696,16 +2726,16 @@ const da = (e) => Object.entries({
|
|
|
2696
2726
|
"application/xhtml+xml": "xhtml"
|
|
2697
2727
|
}).find(
|
|
2698
2728
|
([s]) => e.includes(s)
|
|
2699
|
-
)?.[1],
|
|
2700
|
-
const n = e
|
|
2701
|
-
return
|
|
2702
|
-
},
|
|
2729
|
+
)?.[1], gn = (e) => e.find(([n]) => n.toLowerCase() === "content-type")?.[1] || "", pa = (e) => {
|
|
2730
|
+
const n = gn(e);
|
|
2731
|
+
return ma(n);
|
|
2732
|
+
}, ha = (e) => {
|
|
2703
2733
|
try {
|
|
2704
2734
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
2705
2735
|
} catch {
|
|
2706
2736
|
return null;
|
|
2707
2737
|
}
|
|
2708
|
-
},
|
|
2738
|
+
}, fa = (e) => {
|
|
2709
2739
|
const n = [
|
|
2710
2740
|
"Content-Type",
|
|
2711
2741
|
"Content-Length",
|
|
@@ -2722,12 +2752,12 @@ const da = (e) => Object.entries({
|
|
|
2722
2752
|
}, z = 3, Se = ye(
|
|
2723
2753
|
"div",
|
|
2724
2754
|
"grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
|
|
2725
|
-
),
|
|
2755
|
+
), ue = ye("div", "py-1 break-words"), Te = ({ value: e, header: n }) => {
|
|
2726
2756
|
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = k(!a);
|
|
2727
2757
|
return /* @__PURE__ */ t.jsx(
|
|
2728
|
-
|
|
2758
|
+
ue,
|
|
2729
2759
|
{
|
|
2730
|
-
className:
|
|
2760
|
+
className: S(
|
|
2731
2761
|
"max-h-28 overflow-auto",
|
|
2732
2762
|
a && "cursor-pointer flex group"
|
|
2733
2763
|
),
|
|
@@ -2735,12 +2765,12 @@ const da = (e) => Object.entries({
|
|
|
2735
2765
|
a && o((i) => !i);
|
|
2736
2766
|
},
|
|
2737
2767
|
children: a ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2738
|
-
/* @__PURE__ */ t.jsx(
|
|
2739
|
-
r ? /* @__PURE__ */ t.jsx(Gn, { size: 14, className:
|
|
2768
|
+
/* @__PURE__ */ t.jsx(Ns, { secret: e, previewChars: 0, revealed: r }),
|
|
2769
|
+
r ? /* @__PURE__ */ t.jsx(Gn, { size: 14, className: S("hidden group-hover:block") }) : /* @__PURE__ */ t.jsx(Hn, { size: 14, className: S("hidden group-hover:block") })
|
|
2740
2770
|
] }) : e
|
|
2741
2771
|
}
|
|
2742
2772
|
);
|
|
2743
|
-
},
|
|
2773
|
+
}, ga = ({
|
|
2744
2774
|
body: e = "",
|
|
2745
2775
|
headers: n,
|
|
2746
2776
|
request: s,
|
|
@@ -2749,42 +2779,42 @@ const da = (e) => Object.entries({
|
|
|
2749
2779
|
fileName: o,
|
|
2750
2780
|
blob: i
|
|
2751
2781
|
}) => {
|
|
2752
|
-
const c =
|
|
2782
|
+
const c = pa(n), l = ha(e), m = l || e, [d, f] = k(
|
|
2753
2783
|
l ? "formatted" : "raw"
|
|
2754
2784
|
), x = qs({
|
|
2755
2785
|
queryKey: ["types", m],
|
|
2756
|
-
queryFn: async () =>
|
|
2786
|
+
queryFn: async () => ua(JSON.parse(m)),
|
|
2757
2787
|
enabled: d === "types" && !r
|
|
2758
|
-
}),
|
|
2788
|
+
}), p = () => {
|
|
2759
2789
|
if (i && o) {
|
|
2760
2790
|
const u = URL.createObjectURL(i), y = document.createElement("a");
|
|
2761
2791
|
y.href = u, y.download = o, document.body.appendChild(y), y.click(), document.body.removeChild(y), URL.revokeObjectURL(u);
|
|
2762
2792
|
}
|
|
2763
|
-
}, v =
|
|
2793
|
+
}, v = fa([...n]);
|
|
2764
2794
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2765
|
-
/* @__PURE__ */ t.jsxs(
|
|
2766
|
-
/* @__PURE__ */ t.jsxs(
|
|
2767
|
-
/* @__PURE__ */ t.jsx(
|
|
2795
|
+
/* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
2796
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2797
|
+
/* @__PURE__ */ t.jsx(qn, { size: 14 }),
|
|
2768
2798
|
/* @__PURE__ */ t.jsx(H, { children: "Request Headers" })
|
|
2769
2799
|
] }),
|
|
2770
|
-
/* @__PURE__ */ t.jsx(
|
|
2800
|
+
/* @__PURE__ */ t.jsx(q, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
|
|
2771
2801
|
s.headers.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2772
|
-
/* @__PURE__ */ t.jsx(
|
|
2773
|
-
/* @__PURE__ */ t.jsx(
|
|
2802
|
+
/* @__PURE__ */ t.jsx(ue, { children: u }),
|
|
2803
|
+
/* @__PURE__ */ t.jsx(Te, { value: y, header: u })
|
|
2774
2804
|
] }, u)),
|
|
2775
|
-
s.headers.length > z && /* @__PURE__ */ t.jsxs(
|
|
2776
|
-
/* @__PURE__ */ t.jsxs(
|
|
2805
|
+
s.headers.length > z && /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid-cols-subgrid grid group", children: [
|
|
2806
|
+
/* @__PURE__ */ t.jsxs(de, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2777
2807
|
"Show ",
|
|
2778
2808
|
s.headers.length - z,
|
|
2779
2809
|
" more headers",
|
|
2780
2810
|
/* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
|
|
2781
2811
|
] }),
|
|
2782
|
-
/* @__PURE__ */ t.jsxs(
|
|
2812
|
+
/* @__PURE__ */ t.jsxs(q, { className: "col-span-full grid grid-cols-subgrid", children: [
|
|
2783
2813
|
s.headers.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2784
|
-
/* @__PURE__ */ t.jsx(
|
|
2785
|
-
/* @__PURE__ */ t.jsx(
|
|
2814
|
+
/* @__PURE__ */ t.jsx(ue, { children: u }),
|
|
2815
|
+
/* @__PURE__ */ t.jsx(Te, { value: y, header: u })
|
|
2786
2816
|
] }, u)),
|
|
2787
|
-
/* @__PURE__ */ t.jsxs(
|
|
2817
|
+
/* @__PURE__ */ t.jsxs(de, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2788
2818
|
"Hide ",
|
|
2789
2819
|
s.headers.length - z,
|
|
2790
2820
|
" headers",
|
|
@@ -2800,29 +2830,29 @@ const da = (e) => Object.entries({
|
|
|
2800
2830
|
] })
|
|
2801
2831
|
] }) })
|
|
2802
2832
|
] }),
|
|
2803
|
-
/* @__PURE__ */ t.jsxs(
|
|
2804
|
-
/* @__PURE__ */ t.jsxs(
|
|
2805
|
-
/* @__PURE__ */ t.jsx(
|
|
2833
|
+
/* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
2834
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2835
|
+
/* @__PURE__ */ t.jsx(Un, { size: 14 }),
|
|
2806
2836
|
/* @__PURE__ */ t.jsx(H, { children: "Response Headers" })
|
|
2807
2837
|
] }),
|
|
2808
|
-
/* @__PURE__ */ t.jsx(
|
|
2838
|
+
/* @__PURE__ */ t.jsx(q, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
|
|
2809
2839
|
v.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2810
|
-
/* @__PURE__ */ t.jsx(
|
|
2811
|
-
/* @__PURE__ */ t.jsx(
|
|
2840
|
+
/* @__PURE__ */ t.jsx(ue, { children: u }),
|
|
2841
|
+
/* @__PURE__ */ t.jsx(Te, { value: y, header: u })
|
|
2812
2842
|
] }, u)),
|
|
2813
|
-
v.length > z && /* @__PURE__ */ t.jsxs(
|
|
2814
|
-
/* @__PURE__ */ t.jsxs(
|
|
2843
|
+
v.length > z && /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid-cols-subgrid grid group", children: [
|
|
2844
|
+
/* @__PURE__ */ t.jsxs(de, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2815
2845
|
"Show ",
|
|
2816
2846
|
v.length - z,
|
|
2817
2847
|
" more headers",
|
|
2818
2848
|
/* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
|
|
2819
2849
|
] }),
|
|
2820
|
-
/* @__PURE__ */ t.jsxs(
|
|
2850
|
+
/* @__PURE__ */ t.jsxs(q, { className: "col-span-full grid grid-cols-subgrid", children: [
|
|
2821
2851
|
v.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2822
|
-
/* @__PURE__ */ t.jsx(
|
|
2823
|
-
/* @__PURE__ */ t.jsx(
|
|
2852
|
+
/* @__PURE__ */ t.jsx(ue, { children: u }),
|
|
2853
|
+
/* @__PURE__ */ t.jsx(Te, { value: y, header: u })
|
|
2824
2854
|
] }, u)),
|
|
2825
|
-
/* @__PURE__ */ t.jsxs(
|
|
2855
|
+
/* @__PURE__ */ t.jsxs(de, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2826
2856
|
"Hide ",
|
|
2827
2857
|
v.length - z,
|
|
2828
2858
|
" headers",
|
|
@@ -2844,42 +2874,50 @@ const da = (e) => Object.entries({
|
|
|
2844
2874
|
"Response body"
|
|
2845
2875
|
] }),
|
|
2846
2876
|
l && !r && /* @__PURE__ */ t.jsxs(
|
|
2847
|
-
|
|
2877
|
+
Mt,
|
|
2848
2878
|
{
|
|
2849
2879
|
value: d,
|
|
2850
2880
|
onValueChange: (u) => f(u),
|
|
2851
2881
|
children: [
|
|
2852
2882
|
/* @__PURE__ */ t.jsx(Gt, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Ht, { placeholder: "View" }) }),
|
|
2853
2883
|
/* @__PURE__ */ t.jsxs(Qt, { children: [
|
|
2854
|
-
/* @__PURE__ */ t.jsx(
|
|
2855
|
-
/* @__PURE__ */ t.jsx(
|
|
2856
|
-
/* @__PURE__ */ t.jsx(
|
|
2884
|
+
/* @__PURE__ */ t.jsx(Ae, { value: "formatted", children: "Formatted" }),
|
|
2885
|
+
/* @__PURE__ */ t.jsx(Ae, { value: "raw", children: "Raw" }),
|
|
2886
|
+
/* @__PURE__ */ t.jsx(Ae, { value: "types", children: "Types" })
|
|
2857
2887
|
] })
|
|
2858
2888
|
]
|
|
2859
2889
|
}
|
|
2860
2890
|
)
|
|
2861
2891
|
] }),
|
|
2862
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex-1", children: r ?
|
|
2892
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex-1", children: r ? i && Mr(gn(n)) ? /* @__PURE__ */ t.jsx(
|
|
2893
|
+
ca,
|
|
2894
|
+
{
|
|
2895
|
+
blob: i,
|
|
2896
|
+
fileName: o ?? "audio",
|
|
2897
|
+
size: a,
|
|
2898
|
+
onDownload: p
|
|
2899
|
+
}
|
|
2900
|
+
) : /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
|
|
2863
2901
|
/* @__PURE__ */ t.jsx("div", { className: "text-lg font-semibold", children: "Binary Content" }),
|
|
2864
2902
|
/* @__PURE__ */ t.jsx("div", { className: "text-sm text-muted-foreground", children: "This response contains binary data that cannot be displayed as text." }),
|
|
2865
2903
|
/* @__PURE__ */ t.jsxs(
|
|
2866
|
-
|
|
2904
|
+
B,
|
|
2867
2905
|
{
|
|
2868
|
-
onClick:
|
|
2906
|
+
onClick: p,
|
|
2869
2907
|
className: "flex items-center gap-2",
|
|
2870
2908
|
disabled: !i,
|
|
2871
2909
|
children: [
|
|
2872
|
-
/* @__PURE__ */ t.jsx(
|
|
2910
|
+
/* @__PURE__ */ t.jsx(Ft, { className: "h-4 w-4" }),
|
|
2873
2911
|
"Download ",
|
|
2874
2912
|
o || "file",
|
|
2875
2913
|
" (",
|
|
2876
|
-
|
|
2914
|
+
ve(a),
|
|
2877
2915
|
")"
|
|
2878
2916
|
]
|
|
2879
2917
|
}
|
|
2880
2918
|
)
|
|
2881
2919
|
] }) }) : /* @__PURE__ */ t.jsx(
|
|
2882
|
-
|
|
2920
|
+
Cs,
|
|
2883
2921
|
{
|
|
2884
2922
|
className: "text-xs flex-1",
|
|
2885
2923
|
embedded: !0,
|
|
@@ -2890,7 +2928,7 @@ const da = (e) => Object.entries({
|
|
|
2890
2928
|
}
|
|
2891
2929
|
) })
|
|
2892
2930
|
] });
|
|
2893
|
-
},
|
|
2931
|
+
}, xa = ({
|
|
2894
2932
|
queryMutation: e,
|
|
2895
2933
|
showLongRunningWarning: n,
|
|
2896
2934
|
onCancel: s,
|
|
@@ -2899,7 +2937,7 @@ const da = (e) => Object.entries({
|
|
|
2899
2937
|
progress: o
|
|
2900
2938
|
}) => /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col overflow-y-auto h-[80vh] bg-muted/50", children: [
|
|
2901
2939
|
(e.isPending || e.data) && /* @__PURE__ */ t.jsx(
|
|
2902
|
-
|
|
2940
|
+
la,
|
|
2903
2941
|
{
|
|
2904
2942
|
status: e.data?.status,
|
|
2905
2943
|
time: e.data?.time,
|
|
@@ -2913,7 +2951,7 @@ const da = (e) => Object.entries({
|
|
|
2913
2951
|
/* @__PURE__ */ t.jsx(Bs, { children: "Request failed" }),
|
|
2914
2952
|
/* @__PURE__ */ t.jsx(_s, { children: e.error.message || String(e.error) || "Unexpected error" })
|
|
2915
2953
|
] }) }) : e.data ? /* @__PURE__ */ t.jsx(
|
|
2916
|
-
|
|
2954
|
+
ga,
|
|
2917
2955
|
{
|
|
2918
2956
|
request: e.data.request,
|
|
2919
2957
|
size: e.data.size,
|
|
@@ -2924,18 +2962,18 @@ const da = (e) => Object.entries({
|
|
|
2924
2962
|
blob: e.data.blob
|
|
2925
2963
|
}
|
|
2926
2964
|
) : e.isPending ? /* @__PURE__ */ t.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
2927
|
-
/* @__PURE__ */ t.jsx(
|
|
2965
|
+
/* @__PURE__ */ t.jsx(zs, {}),
|
|
2928
2966
|
/* @__PURE__ */ t.jsxs(
|
|
2929
2967
|
"div",
|
|
2930
2968
|
{
|
|
2931
|
-
className:
|
|
2969
|
+
className: S(
|
|
2932
2970
|
"opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
|
|
2933
2971
|
n && "opacity-100 pointer-events-auto"
|
|
2934
2972
|
),
|
|
2935
2973
|
children: [
|
|
2936
2974
|
"Looks like the request is taking longer than expected.",
|
|
2937
2975
|
/* @__PURE__ */ t.jsx(
|
|
2938
|
-
|
|
2976
|
+
K,
|
|
2939
2977
|
{
|
|
2940
2978
|
type: "button",
|
|
2941
2979
|
onClick: s,
|
|
@@ -2960,7 +2998,7 @@ const da = (e) => Object.entries({
|
|
|
2960
2998
|
/* @__PURE__ */ t.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
|
|
2961
2999
|
a
|
|
2962
3000
|
] }) })
|
|
2963
|
-
] }),
|
|
3001
|
+
] }), xn = Ze()(
|
|
2964
3002
|
Ye(
|
|
2965
3003
|
(e) => ({
|
|
2966
3004
|
skipLogin: !1,
|
|
@@ -2968,12 +3006,12 @@ const da = (e) => Object.entries({
|
|
|
2968
3006
|
}),
|
|
2969
3007
|
{
|
|
2970
3008
|
name: "remember-skip-login",
|
|
2971
|
-
storage:
|
|
3009
|
+
storage: Bt(() => sessionStorage)
|
|
2972
3010
|
}
|
|
2973
3011
|
)
|
|
2974
3012
|
);
|
|
2975
|
-
|
|
2976
|
-
const
|
|
3013
|
+
fs(xn);
|
|
3014
|
+
const pe = "__none", ya = ({
|
|
2977
3015
|
server: e,
|
|
2978
3016
|
servers: n = [],
|
|
2979
3017
|
url: s,
|
|
@@ -2987,115 +3025,115 @@ const me = "__none", ga = ({
|
|
|
2987
3025
|
onLogin: d,
|
|
2988
3026
|
onSignUp: f
|
|
2989
3027
|
}) => {
|
|
2990
|
-
const { selectedServer: x, setSelectedServer:
|
|
2991
|
-
n.map((
|
|
2992
|
-
), [v, u] = k(!1), y =
|
|
3028
|
+
const { selectedServer: x, setSelectedServer: p } = Vr(
|
|
3029
|
+
n.map((h) => ({ url: h }))
|
|
3030
|
+
), [v, u] = k(!1), y = as(), { setRememberedIdentity: w, getRememberedIdentity: R } = na(), [, N] = ds(), { skipLogin: j, setSkipLogin: $ } = xn(), [Q, je] = k(!1), [Ie, te] = k(!1), g = E(void 0), C = Ss(w), T = E(null), { label: A } = Fr("meta+enter", () => {
|
|
2993
3031
|
T.current?.requestSubmit();
|
|
2994
|
-
}), M = s.match(/\{([^}]+)\}/g)?.map((
|
|
2995
|
-
(
|
|
2996
|
-
), { register: De, control:
|
|
3032
|
+
}), M = s.match(/\{([^}]+)\}/g)?.map((h) => h.slice(1, -1)) ?? [], L = [...i].sort(
|
|
3033
|
+
(h, re) => M.indexOf(h.name) - M.indexOf(re.name)
|
|
3034
|
+
), { register: De, control: ne, handleSubmit: Ce, watch: ct, setValue: Fe, ...ze } = bs({
|
|
2997
3035
|
defaultValues: {
|
|
2998
3036
|
body: c,
|
|
2999
3037
|
bodyMode: "text",
|
|
3000
3038
|
file: null,
|
|
3001
3039
|
multipartFormFields: [],
|
|
3002
|
-
queryParams: o.length > 0 ? o.map((
|
|
3003
|
-
name:
|
|
3004
|
-
value:
|
|
3005
|
-
active:
|
|
3006
|
-
enum:
|
|
3040
|
+
queryParams: o.length > 0 ? o.map((h) => ({
|
|
3041
|
+
name: h.name,
|
|
3042
|
+
value: h.defaultValue ?? "",
|
|
3043
|
+
active: h.defaultActive ?? !1,
|
|
3044
|
+
enum: h.enum ?? []
|
|
3007
3045
|
})) : [{ name: "", value: "", active: !1, enum: [] }],
|
|
3008
|
-
pathParams: L.map((
|
|
3009
|
-
name:
|
|
3010
|
-
value:
|
|
3046
|
+
pathParams: L.map((h) => ({
|
|
3047
|
+
name: h.name,
|
|
3048
|
+
value: h.defaultValue ?? ""
|
|
3011
3049
|
})),
|
|
3012
|
-
headers: r.length > 0 ? r.map((
|
|
3013
|
-
name:
|
|
3014
|
-
value:
|
|
3015
|
-
active:
|
|
3050
|
+
headers: r.length > 0 ? r.map((h) => ({
|
|
3051
|
+
name: h.name,
|
|
3052
|
+
value: h.defaultValue ?? "",
|
|
3053
|
+
active: h.defaultActive ?? !1
|
|
3016
3054
|
})) : [{ name: "", value: "", active: !1 }],
|
|
3017
3055
|
identity: R([
|
|
3018
|
-
|
|
3019
|
-
...y.data?.map((
|
|
3056
|
+
pe,
|
|
3057
|
+
...y.data?.map((h) => h.id) ?? []
|
|
3020
3058
|
])
|
|
3021
3059
|
}
|
|
3022
|
-
}),
|
|
3023
|
-
() => y.data?.find((
|
|
3024
|
-
[y.data,
|
|
3060
|
+
}), se = ct("identity"), Cn = Vt(
|
|
3061
|
+
() => y.data?.find((h) => h.id === se)?.authorizationFields,
|
|
3062
|
+
[y.data, se]
|
|
3025
3063
|
);
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
}, [C,
|
|
3029
|
-
const J =
|
|
3064
|
+
U(() => {
|
|
3065
|
+
se && C.current(se);
|
|
3066
|
+
}, [C, se]);
|
|
3067
|
+
const J = vs({
|
|
3030
3068
|
gcTime: 0,
|
|
3031
|
-
mutationFn: async (
|
|
3032
|
-
const
|
|
3033
|
-
|
|
3069
|
+
mutationFn: async (h) => {
|
|
3070
|
+
const re = performance.now(), Ve = new window.Headers(
|
|
3071
|
+
h.headers.filter((O) => O.name && O.active).map((O) => [O.name, O.value])
|
|
3034
3072
|
);
|
|
3035
|
-
let
|
|
3036
|
-
switch (
|
|
3073
|
+
let Ne;
|
|
3074
|
+
switch (h.bodyMode) {
|
|
3037
3075
|
case "file":
|
|
3038
|
-
|
|
3076
|
+
Ne = h.file || void 0, Ve.delete("Content-Type");
|
|
3039
3077
|
break;
|
|
3040
3078
|
case "multipart": {
|
|
3041
|
-
const
|
|
3042
|
-
|
|
3079
|
+
const O = new FormData();
|
|
3080
|
+
h.multipartFormFields?.filter((X) => X.name && X.active).forEach((X) => O.append(X.name, X.value)), Ne = O, Ve.delete("Content-Type");
|
|
3043
3081
|
break;
|
|
3044
3082
|
}
|
|
3045
3083
|
default:
|
|
3046
|
-
|
|
3084
|
+
Ne = h.body || void 0;
|
|
3047
3085
|
break;
|
|
3048
3086
|
}
|
|
3049
3087
|
const W = new Request(
|
|
3050
|
-
Lt(e ?? x, s,
|
|
3088
|
+
Lt(e ?? x, s, h),
|
|
3051
3089
|
{
|
|
3052
3090
|
method: a,
|
|
3053
3091
|
headers: Ve,
|
|
3054
|
-
body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null :
|
|
3092
|
+
body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null : Ne
|
|
3055
3093
|
}
|
|
3056
3094
|
);
|
|
3057
|
-
|
|
3095
|
+
h.identity !== pe && await y.data?.find((O) => O.id === h.identity)?.authorizeRequest(W);
|
|
3058
3096
|
const Be = setTimeout(
|
|
3059
|
-
() =>
|
|
3097
|
+
() => te(!0),
|
|
3060
3098
|
3210
|
|
3061
3099
|
);
|
|
3062
3100
|
g.current = new AbortController(), g.current.signal.addEventListener("abort", () => {
|
|
3063
3101
|
clearTimeout(Be);
|
|
3064
3102
|
});
|
|
3065
3103
|
try {
|
|
3066
|
-
const
|
|
3104
|
+
const O = await fetch(W, {
|
|
3067
3105
|
cache: "no-store",
|
|
3068
3106
|
signal: g.current.signal
|
|
3069
3107
|
});
|
|
3070
|
-
clearTimeout(Be),
|
|
3071
|
-
const X = performance.now() -
|
|
3072
|
-
let
|
|
3073
|
-
ht ? (ft = await
|
|
3074
|
-
const xt =
|
|
3075
|
-
let
|
|
3076
|
-
switch (
|
|
3108
|
+
clearTimeout(Be), te(!1);
|
|
3109
|
+
const X = performance.now() - re, Ln = new URL(W.url), mt = Array.from(O.headers.entries()), pt = O.headers.get("content-type") || "", ht = Ur(pt);
|
|
3110
|
+
let we = "", ft, gt;
|
|
3111
|
+
ht ? (ft = await O.blob(), gt = Gr(mt, W.url), we = `Binary content (${pt})`) : we = await O.text();
|
|
3112
|
+
const xt = O.headers.get("content-length");
|
|
3113
|
+
let ae = "";
|
|
3114
|
+
switch (h.bodyMode) {
|
|
3077
3115
|
case "text":
|
|
3078
|
-
|
|
3116
|
+
ae = h.body;
|
|
3079
3117
|
break;
|
|
3080
3118
|
case "file":
|
|
3081
|
-
|
|
3119
|
+
ae = `[File: ${h.file?.name ?? "Unknown"}]`;
|
|
3082
3120
|
break;
|
|
3083
3121
|
case "multipart":
|
|
3084
|
-
|
|
3085
|
-
`,
|
|
3086
|
-
(
|
|
3122
|
+
ae = `[Multipart Form Data]
|
|
3123
|
+
`, ae += h.multipartFormFields?.filter((G) => G.name && G.active).map(
|
|
3124
|
+
(G) => G.value instanceof File ? `${G.name}: [File: ${G.value.name}]` : `${G.name}: ${G.value}`
|
|
3087
3125
|
).join(`
|
|
3088
3126
|
`);
|
|
3089
3127
|
break;
|
|
3090
3128
|
default:
|
|
3091
|
-
|
|
3129
|
+
ae = h.body;
|
|
3092
3130
|
break;
|
|
3093
3131
|
}
|
|
3094
3132
|
return {
|
|
3095
|
-
status:
|
|
3133
|
+
status: O.status,
|
|
3096
3134
|
headers: mt,
|
|
3097
|
-
size: xt ? Number(xt) :
|
|
3098
|
-
body:
|
|
3135
|
+
size: xt ? Number(xt) : we.length,
|
|
3136
|
+
body: we,
|
|
3099
3137
|
time: X,
|
|
3100
3138
|
isBinary: ht,
|
|
3101
3139
|
fileName: gt,
|
|
@@ -3104,85 +3142,85 @@ const me = "__none", ga = ({
|
|
|
3104
3142
|
method: W.method.toUpperCase(),
|
|
3105
3143
|
url: W.url,
|
|
3106
3144
|
headers: [
|
|
3107
|
-
["Host",
|
|
3145
|
+
["Host", Ln.host],
|
|
3108
3146
|
["User-Agent", "Zudoku Playground"],
|
|
3109
3147
|
...Array.from(W.headers.entries())
|
|
3110
3148
|
],
|
|
3111
|
-
body:
|
|
3149
|
+
body: ae
|
|
3112
3150
|
}
|
|
3113
3151
|
};
|
|
3114
|
-
} catch (
|
|
3115
|
-
throw clearTimeout(Be),
|
|
3152
|
+
} catch (O) {
|
|
3153
|
+
throw clearTimeout(Be), te(!1), O instanceof TypeError ? new Error(
|
|
3116
3154
|
"The request failed, possibly due to network issues or CORS policy."
|
|
3117
|
-
) :
|
|
3155
|
+
) : O;
|
|
3118
3156
|
}
|
|
3119
3157
|
}
|
|
3120
|
-
}), dt = J.isPending, [
|
|
3121
|
-
|
|
3122
|
-
const
|
|
3123
|
-
return () => clearTimeout(
|
|
3158
|
+
}), dt = J.isPending, [Nn, wn] = k(!1);
|
|
3159
|
+
U(() => {
|
|
3160
|
+
const h = setTimeout(() => wn(dt), 100);
|
|
3161
|
+
return () => clearTimeout(h);
|
|
3124
3162
|
}, [dt]);
|
|
3125
|
-
const { isFinished: Sn, progress:
|
|
3126
|
-
|
|
3163
|
+
const { isFinished: Sn, progress: Tn } = xs({ isAnimating: Nn });
|
|
3164
|
+
U(() => () => {
|
|
3127
3165
|
g.current?.abort();
|
|
3128
3166
|
}, []);
|
|
3129
|
-
const
|
|
3130
|
-
|
|
3167
|
+
const An = /* @__PURE__ */ t.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ t.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ t.jsxs(
|
|
3168
|
+
Mt,
|
|
3131
3169
|
{
|
|
3132
|
-
onValueChange: (
|
|
3133
|
-
N(() => h
|
|
3170
|
+
onValueChange: (h) => {
|
|
3171
|
+
N(() => p(h));
|
|
3134
3172
|
},
|
|
3135
3173
|
value: x,
|
|
3136
3174
|
defaultValue: x,
|
|
3137
3175
|
children: [
|
|
3138
3176
|
/* @__PURE__ */ t.jsx(Gt, { className: "p-0 h-fit shadow-none border-none flex-row-reverse bg-transparent text-xs gap-0.5 translate-y-[4px]", children: /* @__PURE__ */ t.jsx(Ht, {}) }),
|
|
3139
|
-
/* @__PURE__ */ t.jsx(Qt, { children: n.map((
|
|
3177
|
+
/* @__PURE__ */ t.jsx(Qt, { children: n.map((h) => /* @__PURE__ */ t.jsx(Ae, { value: h, children: h.replace(/^https?:\/\//, "").replace(/\/$/, "") }, h)) })
|
|
3140
3178
|
]
|
|
3141
3179
|
}
|
|
3142
|
-
) }),
|
|
3180
|
+
) }), On = m && !j && !Q, Pn = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
3143
3181
|
a.toUpperCase()
|
|
3144
|
-
), [ut,
|
|
3182
|
+
), [ut, $n] = ws();
|
|
3145
3183
|
return /* @__PURE__ */ t.jsx(
|
|
3146
|
-
|
|
3184
|
+
js,
|
|
3147
3185
|
{
|
|
3148
3186
|
register: De,
|
|
3149
|
-
control:
|
|
3150
|
-
handleSubmit:
|
|
3187
|
+
control: ne,
|
|
3188
|
+
handleSubmit: Ce,
|
|
3151
3189
|
watch: ct,
|
|
3152
3190
|
setValue: Fe,
|
|
3153
3191
|
...ze,
|
|
3154
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3192
|
+
children: /* @__PURE__ */ t.jsx(ys, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
|
|
3155
3193
|
"form",
|
|
3156
3194
|
{
|
|
3157
3195
|
ref: T,
|
|
3158
|
-
onKeyDown: (
|
|
3159
|
-
|
|
3196
|
+
onKeyDown: (h) => {
|
|
3197
|
+
h.key === "Enter" && h.target instanceof HTMLInputElement && h.preventDefault();
|
|
3160
3198
|
},
|
|
3161
|
-
onSubmit:
|
|
3162
|
-
y.data?.length === 0 ||
|
|
3199
|
+
onSubmit: Ce((h) => {
|
|
3200
|
+
y.data?.length === 0 || h.identity ? J.mutate(h) : u(!0);
|
|
3163
3201
|
}),
|
|
3164
3202
|
className: "relative",
|
|
3165
3203
|
children: [
|
|
3166
3204
|
/* @__PURE__ */ t.jsx(
|
|
3167
|
-
|
|
3205
|
+
Kr,
|
|
3168
3206
|
{
|
|
3169
3207
|
identities: y.data ?? [],
|
|
3170
3208
|
open: v,
|
|
3171
3209
|
onOpenChange: u,
|
|
3172
|
-
onSubmit: ({ rememberedIdentity:
|
|
3173
|
-
|
|
3210
|
+
onSubmit: ({ rememberedIdentity: h, identity: re }) => {
|
|
3211
|
+
h && Fe("identity", re ?? pe), u(!1), J.mutate({ ...ze.getValues(), identity: re });
|
|
3174
3212
|
}
|
|
3175
3213
|
}
|
|
3176
3214
|
),
|
|
3177
3215
|
/* @__PURE__ */ t.jsx(
|
|
3178
|
-
|
|
3216
|
+
ta,
|
|
3179
3217
|
{
|
|
3180
|
-
open:
|
|
3181
|
-
setOpen: (
|
|
3182
|
-
|
|
3218
|
+
open: On,
|
|
3219
|
+
setOpen: (h) => {
|
|
3220
|
+
h || je(!0);
|
|
3183
3221
|
},
|
|
3184
|
-
onSkip: (
|
|
3185
|
-
|
|
3222
|
+
onSkip: (h) => {
|
|
3223
|
+
je(!0), h && $(!0);
|
|
3186
3224
|
},
|
|
3187
3225
|
onSignUp: f,
|
|
3188
3226
|
onLogin: d
|
|
@@ -3193,16 +3231,16 @@ const me = "__none", ga = ({
|
|
|
3193
3231
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
|
|
3194
3232
|
/* @__PURE__ */ t.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
|
|
3195
3233
|
/* @__PURE__ */ t.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ t.jsxs("div", { className: "h-full py-1.5", children: [
|
|
3196
|
-
|
|
3197
|
-
/* @__PURE__ */ t.jsx(
|
|
3198
|
-
/* @__PURE__ */ t.jsx(
|
|
3234
|
+
An,
|
|
3235
|
+
/* @__PURE__ */ t.jsx(ra, { url: s }),
|
|
3236
|
+
/* @__PURE__ */ t.jsx(aa, {})
|
|
3199
3237
|
] }) }),
|
|
3200
3238
|
/* @__PURE__ */ t.jsx("div", { className: "px-1", children: /* @__PURE__ */ t.jsx(
|
|
3201
|
-
|
|
3239
|
+
B,
|
|
3202
3240
|
{
|
|
3203
3241
|
type: "button",
|
|
3204
3242
|
onClick: () => {
|
|
3205
|
-
|
|
3243
|
+
$n(
|
|
3206
3244
|
Lt(
|
|
3207
3245
|
e ?? x,
|
|
3208
3246
|
s,
|
|
@@ -3212,7 +3250,7 @@ const me = "__none", ga = ({
|
|
|
3212
3250
|
},
|
|
3213
3251
|
variant: "ghost",
|
|
3214
3252
|
size: "icon-xs",
|
|
3215
|
-
className:
|
|
3253
|
+
className: S(
|
|
3216
3254
|
"hover:opacity-100 transition",
|
|
3217
3255
|
ut ? "text-emerald-600 opacity-100" : "opacity-50"
|
|
3218
3256
|
),
|
|
@@ -3221,14 +3259,14 @@ const me = "__none", ga = ({
|
|
|
3221
3259
|
) })
|
|
3222
3260
|
] }),
|
|
3223
3261
|
/* @__PURE__ */ t.jsx(
|
|
3224
|
-
|
|
3262
|
+
B,
|
|
3225
3263
|
{
|
|
3226
3264
|
type: "submit",
|
|
3227
3265
|
variant: J.isPending ? "destructive" : "default",
|
|
3228
|
-
onClick: (
|
|
3266
|
+
onClick: (h) => {
|
|
3229
3267
|
J.isPending && (g.current?.abort(
|
|
3230
3268
|
"Request cancelled by user"
|
|
3231
|
-
),
|
|
3269
|
+
), h.preventDefault());
|
|
3232
3270
|
},
|
|
3233
3271
|
className: "w-18",
|
|
3234
3272
|
children: J.isPending ? "Cancel" : "Send"
|
|
@@ -3236,46 +3274,46 @@ const me = "__none", ga = ({
|
|
|
3236
3274
|
)
|
|
3237
3275
|
] }),
|
|
3238
3276
|
/* @__PURE__ */ t.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
|
|
3239
|
-
y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(
|
|
3240
|
-
/* @__PURE__ */ t.jsxs(
|
|
3277
|
+
y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
3278
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
3241
3279
|
/* @__PURE__ */ t.jsx(Xn, { size: 16 }),
|
|
3242
3280
|
/* @__PURE__ */ t.jsx(H, { children: "Authentication" })
|
|
3243
3281
|
] }),
|
|
3244
|
-
/* @__PURE__ */ t.jsx(
|
|
3282
|
+
/* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
3245
3283
|
hn,
|
|
3246
3284
|
{
|
|
3247
|
-
value:
|
|
3285
|
+
value: se,
|
|
3248
3286
|
identities: y.data ?? [],
|
|
3249
|
-
setValue: (
|
|
3287
|
+
setValue: (h) => Fe("identity", h)
|
|
3250
3288
|
}
|
|
3251
3289
|
) })
|
|
3252
3290
|
] }),
|
|
3253
|
-
L.length > 0 && /* @__PURE__ */ t.jsxs(
|
|
3254
|
-
/* @__PURE__ */ t.jsxs(
|
|
3291
|
+
L.length > 0 && /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
3292
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
3255
3293
|
/* @__PURE__ */ t.jsx(Kn, { size: 16 }),
|
|
3256
3294
|
/* @__PURE__ */ t.jsx(H, { children: "Path Parameters" })
|
|
3257
3295
|
] }),
|
|
3258
|
-
/* @__PURE__ */ t.jsx(
|
|
3296
|
+
/* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Yr, { url: s, control: ne }) })
|
|
3259
3297
|
] }),
|
|
3260
|
-
/* @__PURE__ */ t.jsx(
|
|
3298
|
+
/* @__PURE__ */ t.jsx(ea, { control: ne, schemaQueryParams: o }),
|
|
3261
3299
|
/* @__PURE__ */ t.jsx(
|
|
3262
|
-
|
|
3300
|
+
Wr,
|
|
3263
3301
|
{
|
|
3264
|
-
control:
|
|
3302
|
+
control: ne,
|
|
3265
3303
|
schemaHeaders: r,
|
|
3266
|
-
lockedHeaders:
|
|
3304
|
+
lockedHeaders: Cn?.headers
|
|
3267
3305
|
}
|
|
3268
3306
|
),
|
|
3269
|
-
|
|
3307
|
+
Pn && /* @__PURE__ */ t.jsx(qr, { content: l })
|
|
3270
3308
|
] }),
|
|
3271
3309
|
/* @__PURE__ */ t.jsx("div", { className: "w-full bg-muted-foreground/20" }),
|
|
3272
3310
|
/* @__PURE__ */ t.jsx(
|
|
3273
|
-
|
|
3311
|
+
xa,
|
|
3274
3312
|
{
|
|
3275
3313
|
queryMutation: J,
|
|
3276
3314
|
showLongRunningWarning: Ie,
|
|
3277
3315
|
isFinished: Sn,
|
|
3278
|
-
progress:
|
|
3316
|
+
progress: Tn,
|
|
3279
3317
|
tip: /* @__PURE__ */ t.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
|
|
3280
3318
|
"Press",
|
|
3281
3319
|
" ",
|
|
@@ -3286,7 +3324,7 @@ const me = "__none", ga = ({
|
|
|
3286
3324
|
onCancel: () => {
|
|
3287
3325
|
g.current?.abort(
|
|
3288
3326
|
"Request cancelled by the user"
|
|
3289
|
-
),
|
|
3327
|
+
), te(!1);
|
|
3290
3328
|
}
|
|
3291
3329
|
}
|
|
3292
3330
|
)
|
|
@@ -3296,10 +3334,10 @@ const me = "__none", ga = ({
|
|
|
3296
3334
|
) })
|
|
3297
3335
|
}
|
|
3298
3336
|
);
|
|
3299
|
-
},
|
|
3300
|
-
const [n, s] = k(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } =
|
|
3337
|
+
}, va = (e) => {
|
|
3338
|
+
const [n, s] = k(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = hs();
|
|
3301
3339
|
return /* @__PURE__ */ t.jsxs(et, { onOpenChange: (l) => s(l), children: [
|
|
3302
|
-
/* @__PURE__ */ t.jsx(gs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(
|
|
3340
|
+
/* @__PURE__ */ t.jsx(gs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(B, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
|
|
3303
3341
|
Zn,
|
|
3304
3342
|
{
|
|
3305
3343
|
className: "fill-muted-foreground group-hover:fill-foreground transition",
|
|
@@ -3314,9 +3352,9 @@ const me = "__none", ga = ({
|
|
|
3314
3352
|
"aria-describedby": void 0,
|
|
3315
3353
|
showCloseButton: !0,
|
|
3316
3354
|
children: [
|
|
3317
|
-
/* @__PURE__ */ t.jsx(
|
|
3355
|
+
/* @__PURE__ */ t.jsx(ms, { children: /* @__PURE__ */ t.jsx(nt, { children: "Playground" }) }),
|
|
3318
3356
|
n && /* @__PURE__ */ t.jsx(
|
|
3319
|
-
|
|
3357
|
+
ya,
|
|
3320
3358
|
{
|
|
3321
3359
|
requiresLogin: a && !c && !i,
|
|
3322
3360
|
onLogin: () => r(),
|
|
@@ -3328,7 +3366,7 @@ const me = "__none", ga = ({
|
|
|
3328
3366
|
}
|
|
3329
3367
|
)
|
|
3330
3368
|
] });
|
|
3331
|
-
},
|
|
3369
|
+
}, ba = {
|
|
3332
3370
|
get: "green",
|
|
3333
3371
|
post: "blue",
|
|
3334
3372
|
put: "yellow",
|
|
@@ -3336,7 +3374,7 @@ const me = "__none", ga = ({
|
|
|
3336
3374
|
patch: "purple",
|
|
3337
3375
|
options: "gray",
|
|
3338
3376
|
head: "gray"
|
|
3339
|
-
},
|
|
3377
|
+
}, Et = ({
|
|
3340
3378
|
label: e,
|
|
3341
3379
|
path: n,
|
|
3342
3380
|
operations: s,
|
|
@@ -3360,21 +3398,21 @@ const me = "__none", ga = ({
|
|
|
3360
3398
|
badge: {
|
|
3361
3399
|
label: o.method,
|
|
3362
3400
|
// biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
|
|
3363
|
-
color:
|
|
3401
|
+
color: ba[o.method.toLowerCase()],
|
|
3364
3402
|
invert: !0
|
|
3365
3403
|
}
|
|
3366
3404
|
}))
|
|
3367
|
-
}),
|
|
3405
|
+
}), yn = zt(
|
|
3368
3406
|
void 0
|
|
3369
|
-
),
|
|
3370
|
-
const e =
|
|
3407
|
+
), oo = yn.Provider, ja = () => {
|
|
3408
|
+
const e = us(yn);
|
|
3371
3409
|
if (!e)
|
|
3372
3410
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
3373
3411
|
return e.config;
|
|
3374
3412
|
}, Qe = (e) => ({
|
|
3375
3413
|
path: e.routePath,
|
|
3376
3414
|
async lazy() {
|
|
3377
|
-
const { OasProvider: n } = await import("./OasProvider-
|
|
3415
|
+
const { OasProvider: n } = await import("./OasProvider-BwIOIlky.js");
|
|
3378
3416
|
return {
|
|
3379
3417
|
element: /* @__PURE__ */ t.jsx(
|
|
3380
3418
|
n,
|
|
@@ -3388,23 +3426,23 @@ const me = "__none", ga = ({
|
|
|
3388
3426
|
};
|
|
3389
3427
|
},
|
|
3390
3428
|
children: e.routes
|
|
3391
|
-
}),
|
|
3429
|
+
}), vn = ({
|
|
3392
3430
|
path: e,
|
|
3393
3431
|
tag: n,
|
|
3394
3432
|
untagged: s
|
|
3395
3433
|
}) => ({
|
|
3396
3434
|
path: e,
|
|
3397
3435
|
async lazy() {
|
|
3398
|
-
const { OperationList: a } = await import("./OperationList-
|
|
3436
|
+
const { OperationList: a } = await import("./OperationList-DYRzbPJu.js");
|
|
3399
3437
|
return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
|
|
3400
3438
|
}
|
|
3401
|
-
}),
|
|
3439
|
+
}), Ca = ({
|
|
3402
3440
|
render: e,
|
|
3403
3441
|
path: n
|
|
3404
3442
|
}) => {
|
|
3405
|
-
const { type: s, input: a } =
|
|
3443
|
+
const { type: s, input: a } = ja(), { tag: r } = ts(), o = ns(), i = wr(jn, { type: s, input: a }), {
|
|
3406
3444
|
data: { schema: c }
|
|
3407
|
-
} =
|
|
3445
|
+
} = Us(i), l = c.tags.at(0);
|
|
3408
3446
|
return !r && l?.slug ? /* @__PURE__ */ t.jsx(
|
|
3409
3447
|
ss,
|
|
3410
3448
|
{
|
|
@@ -3417,10 +3455,10 @@ const me = "__none", ga = ({
|
|
|
3417
3455
|
}, Rt = ({ path: e }) => ({
|
|
3418
3456
|
path: e,
|
|
3419
3457
|
async lazy() {
|
|
3420
|
-
const { OperationList: n } = await import("./OperationList-
|
|
3458
|
+
const { OperationList: n } = await import("./OperationList-DYRzbPJu.js");
|
|
3421
3459
|
return {
|
|
3422
3460
|
element: /* @__PURE__ */ t.jsx(
|
|
3423
|
-
|
|
3461
|
+
Ca,
|
|
3424
3462
|
{
|
|
3425
3463
|
path: e,
|
|
3426
3464
|
render: (s) => /* @__PURE__ */ t.jsx(n, { tag: s })
|
|
@@ -3430,7 +3468,7 @@ const me = "__none", ga = ({
|
|
|
3430
3468
|
}
|
|
3431
3469
|
}), Ke = (e) => [
|
|
3432
3470
|
// Category without tagged operations
|
|
3433
|
-
|
|
3471
|
+
vn({
|
|
3434
3472
|
path: V(e, lt),
|
|
3435
3473
|
untagged: !0
|
|
3436
3474
|
}),
|
|
@@ -3438,25 +3476,25 @@ const me = "__none", ga = ({
|
|
|
3438
3476
|
{
|
|
3439
3477
|
path: V(e, "~schemas"),
|
|
3440
3478
|
lazy: async () => {
|
|
3441
|
-
const { SchemaList: n } = await import("./SchemaList-
|
|
3479
|
+
const { SchemaList: n } = await import("./SchemaList-D4FEyoDV.js");
|
|
3442
3480
|
return { element: /* @__PURE__ */ t.jsx(n, {}) };
|
|
3443
3481
|
}
|
|
3444
3482
|
}
|
|
3445
|
-
],
|
|
3483
|
+
], Na = (e, n) => {
|
|
3446
3484
|
const s = V(e, n.at(0) ?? lt);
|
|
3447
3485
|
return [
|
|
3448
3486
|
// Redirect to first tag on the index route
|
|
3449
3487
|
{ index: !0, loader: () => es(s) },
|
|
3450
3488
|
// Create routes for each tag
|
|
3451
3489
|
...n.map(
|
|
3452
|
-
(a) =>
|
|
3490
|
+
(a) => vn({
|
|
3453
3491
|
path: V(e, a),
|
|
3454
3492
|
tag: a
|
|
3455
3493
|
})
|
|
3456
3494
|
),
|
|
3457
3495
|
...Ke(e)
|
|
3458
3496
|
];
|
|
3459
|
-
},
|
|
3497
|
+
}, bn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {}, downloadUrls: {} } : {
|
|
3460
3498
|
versions: e.input.map((n) => n.path),
|
|
3461
3499
|
labels: Object.fromEntries(
|
|
3462
3500
|
e.input.map((n) => [n.path, n.label ?? n.path])
|
|
@@ -3464,19 +3502,19 @@ const me = "__none", ga = ({
|
|
|
3464
3502
|
downloadUrls: Object.fromEntries(
|
|
3465
3503
|
e.input.map((n) => [n.path, n.downloadUrl])
|
|
3466
3504
|
)
|
|
3467
|
-
},
|
|
3505
|
+
}, wa = ({
|
|
3468
3506
|
basePath: e,
|
|
3469
3507
|
config: n,
|
|
3470
3508
|
client: s
|
|
3471
3509
|
}) => {
|
|
3472
|
-
const a = n.tagPages, { versions: r } =
|
|
3510
|
+
const a = n.tagPages, { versions: r } = bn(n);
|
|
3473
3511
|
return a ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
|
|
3474
3512
|
const c = V(e, i);
|
|
3475
3513
|
return Qe({
|
|
3476
3514
|
basePath: e,
|
|
3477
3515
|
version: i,
|
|
3478
3516
|
routePath: c,
|
|
3479
|
-
routes:
|
|
3517
|
+
routes: Na(c, a),
|
|
3480
3518
|
client: s,
|
|
3481
3519
|
config: n
|
|
3482
3520
|
});
|
|
@@ -3505,7 +3543,7 @@ const me = "__none", ga = ({
|
|
|
3505
3543
|
config: n
|
|
3506
3544
|
})
|
|
3507
3545
|
];
|
|
3508
|
-
},
|
|
3546
|
+
}, jn = Er(`
|
|
3509
3547
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
3510
3548
|
schema(input: $input, type: $type) {
|
|
3511
3549
|
extensions
|
|
@@ -3528,7 +3566,7 @@ const me = "__none", ga = ({
|
|
|
3528
3566
|
}
|
|
3529
3567
|
}
|
|
3530
3568
|
}
|
|
3531
|
-
`), lt = "~endpoints",
|
|
3569
|
+
`), lt = "~endpoints", io = (e) => {
|
|
3532
3570
|
const n = V(e.path), s = new Gs(e);
|
|
3533
3571
|
return {
|
|
3534
3572
|
getHead: () => {
|
|
@@ -3557,13 +3595,13 @@ const me = "__none", ga = ({
|
|
|
3557
3595
|
if (!a)
|
|
3558
3596
|
throw new Error("Server is required");
|
|
3559
3597
|
return /* @__PURE__ */ t.jsx(
|
|
3560
|
-
|
|
3598
|
+
va,
|
|
3561
3599
|
{
|
|
3562
3600
|
url: o,
|
|
3563
3601
|
method: r,
|
|
3564
3602
|
server: a,
|
|
3565
3603
|
...c,
|
|
3566
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3604
|
+
children: /* @__PURE__ */ t.jsx(K, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3567
3605
|
"Open in Playground",
|
|
3568
3606
|
/* @__PURE__ */ t.jsx(Yn, { size: 16 })
|
|
3569
3607
|
] }) })
|
|
@@ -3579,33 +3617,33 @@ const me = "__none", ga = ({
|
|
|
3579
3617
|
a
|
|
3580
3618
|
);
|
|
3581
3619
|
try {
|
|
3582
|
-
const i = o?.params.version, { versions: c } =
|
|
3620
|
+
const i = o?.params.version, { versions: c } = bn(e), l = i ?? c.at(0), { type: m } = e, d = Array.isArray(e.input) ? e.input.find((N) => N.path === l)?.input ?? e.input[0]?.input : e.input, f = cn(s, jn, {
|
|
3583
3621
|
type: m,
|
|
3584
3622
|
input: d
|
|
3585
|
-
}), x = await r.queryClient.ensureQueryData(f),
|
|
3623
|
+
}), x = await r.queryClient.ensureQueryData(f), p = new Map(
|
|
3586
3624
|
x.schema.tags.filter((N) => N.name && N.operations.length > 0).map((N) => {
|
|
3587
3625
|
if (!N.name)
|
|
3588
3626
|
throw new Error(`Tag ${N.slug} has no name`);
|
|
3589
|
-
const j = V(n, i, N.slug),
|
|
3627
|
+
const j = V(n, i, N.slug), $ = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, Q = N.extensions?.["x-zudoku-collapsible"] ?? !0;
|
|
3590
3628
|
return [
|
|
3591
3629
|
N.name,
|
|
3592
|
-
|
|
3630
|
+
Et({
|
|
3593
3631
|
label: N.extensions?.["x-displayName"] ?? N.name,
|
|
3594
3632
|
path: j,
|
|
3595
3633
|
operations: N.operations,
|
|
3596
|
-
collapsed:
|
|
3634
|
+
collapsed: $,
|
|
3597
3635
|
collapsible: Q
|
|
3598
3636
|
})
|
|
3599
3637
|
];
|
|
3600
3638
|
})
|
|
3601
3639
|
), v = x.schema.extensions?.["x-tagGroups"] ?? [], u = new Set(
|
|
3602
3640
|
v.flatMap(
|
|
3603
|
-
(N) => N.tags.filter((j) =>
|
|
3641
|
+
(N) => N.tags.filter((j) => p.has(j))
|
|
3604
3642
|
)
|
|
3605
|
-
),
|
|
3643
|
+
), w = [
|
|
3606
3644
|
...v.flatMap(
|
|
3607
3645
|
(N) => {
|
|
3608
|
-
const j = N.tags.map((
|
|
3646
|
+
const j = N.tags.map(($) => p.get($)).filter(Boolean);
|
|
3609
3647
|
return j.length === 0 ? [] : [
|
|
3610
3648
|
{
|
|
3611
3649
|
type: "category",
|
|
@@ -3617,64 +3655,64 @@ const me = "__none", ga = ({
|
|
|
3617
3655
|
];
|
|
3618
3656
|
}
|
|
3619
3657
|
),
|
|
3620
|
-
...Array.from(
|
|
3658
|
+
...Array.from(p.entries()).filter(([N]) => !u.has(N)).map(([, N]) => N)
|
|
3621
3659
|
], R = x.schema.tags.find(
|
|
3622
3660
|
(N) => !N.name
|
|
3623
3661
|
)?.operations;
|
|
3624
|
-
return R && R.length > 0 &&
|
|
3625
|
-
|
|
3626
|
-
label:
|
|
3662
|
+
return R && R.length > 0 && w.push(
|
|
3663
|
+
Et({
|
|
3664
|
+
label: w.length === 0 ? "Endpoints" : "Other endpoints",
|
|
3627
3665
|
path: V(n, i, lt),
|
|
3628
3666
|
operations: R,
|
|
3629
3667
|
collapsed: !e.options?.expandAllTags
|
|
3630
3668
|
})
|
|
3631
|
-
), x.schema.components?.schemas?.length &&
|
|
3669
|
+
), x.schema.components?.schemas?.length && w.push({
|
|
3632
3670
|
type: "link",
|
|
3633
3671
|
label: "Schemas",
|
|
3634
3672
|
to: V(n, i, "~schemas")
|
|
3635
|
-
}),
|
|
3673
|
+
}), w;
|
|
3636
3674
|
} catch {
|
|
3637
3675
|
return [];
|
|
3638
3676
|
}
|
|
3639
3677
|
},
|
|
3640
|
-
getRoutes: () =>
|
|
3678
|
+
getRoutes: () => wa({ basePath: n, config: e, client: s })
|
|
3641
3679
|
};
|
|
3642
3680
|
};
|
|
3643
3681
|
export {
|
|
3644
|
-
|
|
3645
|
-
|
|
3682
|
+
_ as C,
|
|
3683
|
+
ao as G,
|
|
3646
3684
|
sr as L,
|
|
3647
|
-
|
|
3648
|
-
|
|
3685
|
+
oo as O,
|
|
3686
|
+
va as P,
|
|
3649
3687
|
Ks as Q,
|
|
3650
3688
|
on as S,
|
|
3651
3689
|
b as T,
|
|
3652
3690
|
lt as U,
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3691
|
+
wr as a,
|
|
3692
|
+
de as b,
|
|
3693
|
+
q as c,
|
|
3694
|
+
Er as d,
|
|
3657
3695
|
Vr as e,
|
|
3658
3696
|
fn as f,
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3697
|
+
bn as g,
|
|
3698
|
+
sa as h,
|
|
3699
|
+
Cr as i,
|
|
3700
|
+
Pt as j,
|
|
3701
|
+
so as k,
|
|
3702
|
+
rr as l,
|
|
3703
|
+
rt as m,
|
|
3704
|
+
an as n,
|
|
3705
|
+
Hs as o,
|
|
3706
|
+
jr as p,
|
|
3707
|
+
qe as q,
|
|
3708
|
+
Qs as r,
|
|
3671
3709
|
F as s,
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3710
|
+
ro as t,
|
|
3711
|
+
ja as u,
|
|
3712
|
+
nr as v,
|
|
3713
|
+
Ys as w,
|
|
3714
|
+
tn as x,
|
|
3715
|
+
jn as y,
|
|
3716
|
+
io as z
|
|
3679
3717
|
};
|
|
3680
|
-
//# sourceMappingURL=index-
|
|
3718
|
+
//# sourceMappingURL=index-Bx29qHVi.js.map
|