zudoku 0.38.0 → 0.39.1
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/entry.server.d.ts +5 -4
- package/dist/app/entry.server.js +2 -2
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/tailwind.js +14 -0
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/cmds/dev.js +1 -7
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/config/validators/common.d.ts +17 -0
- package/dist/config/validators/common.js +1 -0
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +7 -0
- package/dist/lib/components/Bootstrap.d.ts +2 -1
- package/dist/lib/components/Bootstrap.js +3 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/Header.js +2 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +2 -9
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +3 -1
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -3
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +10 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +1 -0
- package/dist/lib/components/TopNavigation.js +18 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +4 -1
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +6 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/SidebarItem.d.ts +1 -0
- package/dist/lib/components/navigation/SidebarItem.js +7 -3
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +9 -2
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/core/RouteGuard.d.ts +1 -0
- package/dist/lib/core/RouteGuard.js +9 -3
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +1 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/oas/graphql/index.d.ts +2 -1
- package/dist/lib/oas/graphql/index.js +74 -14
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +2 -0
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +5 -3
- package/dist/lib/oas/parser/index.js +0 -22
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.js +19 -17
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -3
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +28 -8
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +2 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +52 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +6 -2
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +5 -5
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -2
- package/dist/lib/plugins/openapi/graphql/gql.js +3 -2
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +67 -11
- package/dist/lib/plugins/openapi/graphql/graphql.js +34 -5
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +12 -0
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +12 -9
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +30 -52
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
- package/dist/lib/plugins/openapi/schema/utils.js +3 -1
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +9 -3
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +9 -4
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +6 -12
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/index.d.ts +1 -3
- package/dist/lib/util/useOnScreen.d.ts +3 -2
- package/dist/lib/util/useOnScreen.js +3 -3
- package/dist/lib/util/useOnScreen.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +2 -2
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +5 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +1 -9
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/plugin-api.js +8 -7
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-search.js +1 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +9 -5
- package/dist/vite/prerender/FileWritingResponse.js +5 -5
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +1 -0
- package/dist/vite/prerender/prerender.js +18 -0
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.js +36 -8
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/zuplo/with-zuplo.js +4 -0
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{AuthenticationPlugin-Duy_R1TU.js → AuthenticationPlugin-foqdvvkf.js} +2 -2
- package/lib/{AuthenticationPlugin-Duy_R1TU.js.map → AuthenticationPlugin-foqdvvkf.js.map} +1 -1
- package/lib/{Markdown-DIZ8nBVC.js → Markdown-aF5FdsNi.js} +1339 -1335
- package/lib/{Markdown-DIZ8nBVC.js.map → Markdown-aF5FdsNi.js.map} +1 -1
- package/lib/MdxPage-JscVnWM8.js +84 -0
- package/lib/MdxPage-JscVnWM8.js.map +1 -0
- package/lib/{OasProvider-D1A10JeA.js → OasProvider-C7Y53snX.js} +3 -3
- package/lib/{OasProvider-D1A10JeA.js.map → OasProvider-C7Y53snX.js.map} +1 -1
- package/lib/OperationList-_M8wg22T.js +5066 -0
- package/lib/OperationList-_M8wg22T.js.map +1 -0
- package/lib/Pagination-DCCvGq0m.js +46 -0
- package/lib/Pagination-DCCvGq0m.js.map +1 -0
- package/lib/RouteGuard-CqZPoZYJ.js +744 -0
- package/lib/RouteGuard-CqZPoZYJ.js.map +1 -0
- package/lib/SchemaList-CrKZdUyo.js +148 -0
- package/lib/SchemaList-CrKZdUyo.js.map +1 -0
- package/lib/SchemaView-B4JHn-BX.js +354 -0
- package/lib/SchemaView-B4JHn-BX.js.map +1 -0
- package/lib/{Select-fAYcJ0OU.js → Select-DVFRKf1R.js} +3 -3
- package/lib/{Select-fAYcJ0OU.js.map → Select-DVFRKf1R.js.map} +1 -1
- package/lib/{SlotletProvider-BEwNY8q0.js → SlotletProvider-DXvc0aY6.js} +2 -2
- package/lib/{SlotletProvider-BEwNY8q0.js.map → SlotletProvider-DXvc0aY6.js.map} +1 -1
- package/lib/Toc-YBsgI72s.js +92 -0
- package/lib/Toc-YBsgI72s.js.map +1 -0
- package/lib/{createServer-DjgKDpGV.js → createServer-mYvGvmc0.js} +2596 -2502
- package/lib/createServer-mYvGvmc0.js.map +1 -0
- package/lib/{hook-Cge6LiTK.js → hook-CqpVYDqN.js} +28 -28
- package/lib/{hook-Cge6LiTK.js.map → hook-CqpVYDqN.js.map} +1 -1
- package/lib/{index-B0y3fTg-.js → index-C8-tlf_X.js} +771 -729
- package/lib/index-C8-tlf_X.js.map +1 -0
- package/lib/index-D6ktNq4i.js +1863 -0
- package/lib/index-D6ktNq4i.js.map +1 -0
- package/lib/{mutation-EChriCeF.js → mutation-8LjrN7uz.js} +2 -2
- package/lib/{mutation-EChriCeF.js.map → mutation-8LjrN7uz.js.map} +1 -1
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +32 -1454
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +80 -76
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +3 -3
- 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 +132 -137
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/package.json +6 -5
- package/src/app/entry.server.tsx +6 -3
- package/src/app/tailwind.ts +14 -0
- package/src/lib/components/Bootstrap.tsx +13 -6
- package/src/lib/components/Header.tsx +2 -2
- package/src/lib/components/Layout.tsx +5 -17
- package/src/lib/components/Main.tsx +6 -3
- package/src/lib/components/MobileTopNavigation.tsx +27 -18
- package/src/lib/components/Pagination.tsx +47 -0
- package/src/lib/components/TopNavigation.tsx +29 -2
- package/src/lib/components/Zudoku.tsx +5 -3
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +23 -0
- package/src/lib/components/navigation/SidebarItem.tsx +10 -4
- package/src/lib/components/navigation/SidebarWrapper.tsx +27 -13
- package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/core/RouteGuard.tsx +26 -4
- package/src/lib/core/ZudokuContext.ts +1 -0
- package/src/lib/oas/graphql/index.ts +118 -45
- package/src/lib/oas/parser/dereference/index.ts +2 -0
- package/src/lib/oas/parser/index.ts +7 -29
- package/src/lib/plugins/api-catalog/index.tsx +40 -35
- package/src/lib/plugins/markdown/MdxPage.tsx +6 -36
- package/src/lib/plugins/openapi/ColorizedParam.tsx +1 -1
- package/src/lib/plugins/openapi/OperationList.tsx +36 -15
- package/src/lib/plugins/openapi/OperationListItem.tsx +7 -2
- package/src/lib/plugins/openapi/ParameterListItem.tsx +2 -0
- package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +12 -5
- package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +15 -6
- package/src/lib/plugins/openapi/graphql/graphql.ts +104 -15
- package/src/lib/plugins/openapi/index.tsx +13 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +20 -21
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +69 -141
- package/src/lib/plugins/openapi/schema/utils.ts +7 -1
- package/src/lib/plugins/openapi/util/getRoutes.tsx +9 -6
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +11 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +5 -16
- package/src/lib/plugins/search-pagefind/index.tsx +1 -1
- package/src/lib/util/useOnScreen.ts +6 -4
- package/dist/cli/dev/pagefind-command.d.ts +0 -3
- package/dist/cli/dev/pagefind-command.js +0 -59
- package/dist/cli/dev/pagefind-command.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.d.ts +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/lib/MdxPage-JEdbfW-f.js +0 -195
- package/lib/MdxPage-JEdbfW-f.js.map +0 -1
- package/lib/OperationList-yOmYzMIp.js +0 -5379
- package/lib/OperationList-yOmYzMIp.js.map +0 -1
- package/lib/createServer-DjgKDpGV.js.map +0 -1
- package/lib/index-B0y3fTg-.js.map +0 -1
- package/lib/index.esm-CltAN0Tf.js +0 -711
- package/lib/index.esm-CltAN0Tf.js.map +0 -1
- package/lib/objectEntries-BS7aAgOm.js +0 -12
- package/lib/objectEntries-BS7aAgOm.js.map +0 -1
- package/src/lib/components/context/PluginSystem.ts +0 -0
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Vt = Object.defineProperty;
|
|
2
|
+
var tt = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var J = (t,
|
|
7
|
-
var
|
|
5
|
+
var Ft = (t, n, s) => n in t ? Vt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
|
|
6
|
+
var J = (t, n, s) => Ft(t, typeof n != "symbol" ? n + "" : n, s), zt = (t, n, s) => n.has(t) || tt("Cannot " + s);
|
|
7
|
+
var pe = (t, n, s) => (zt(t, n, "read from private field"), s ? s.call(t) : n.get(t)), he = (t, n, s) => n.has(t) ? tt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, s);
|
|
8
8
|
import { j as e } from "./jsx-runtime-CYK1ROHF.js";
|
|
9
|
-
import { ChevronRightIcon as
|
|
10
|
-
import { r as
|
|
11
|
-
import {
|
|
12
|
-
import { Button as
|
|
13
|
-
import { Z as
|
|
14
|
-
import { VisuallyHidden as
|
|
15
|
-
import * as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { D as
|
|
18
|
-
import { S as
|
|
19
|
-
import { b as
|
|
9
|
+
import { ChevronRightIcon as Q, CheckIcon as Ht, DotIcon as Mt, Check as _t, XIcon as Bt, Circle as Gt, ChevronDownIcon as Jt, InfoIcon as nt, LogInIcon as Ut, CirclePlayIcon as Qt } from "lucide-react";
|
|
10
|
+
import { r as Wt, m as st } from "./chunk-HA7DTUK3-C4gP41vD.js";
|
|
11
|
+
import { p as xt, q as ft, r as Zt, m as Xt, t as Kt, f as R, l as Yt } from "./hook-CqpVYDqN.js";
|
|
12
|
+
import { Button as W } from "./ui/Button.js";
|
|
13
|
+
import { Z as en } from "./invariant-Caa8-XvF.js";
|
|
14
|
+
import { VisuallyHidden as tn } from "@radix-ui/react-visually-hidden";
|
|
15
|
+
import * as v from "react";
|
|
16
|
+
import { Fragment as q, useRef as G, useEffect as se, useMemo as nn, useState as k, useCallback as sn, useTransition as an } from "react";
|
|
17
|
+
import { D as Ie, a as Re, b as Oe, d as gt, e as yt, f as rn } from "./Dialog-sbgekbjb.js";
|
|
18
|
+
import { S as je, a as be, b as Ne, c as we, e as U, u as on } from "./Select-DVFRKf1R.js";
|
|
19
|
+
import { b as qe, u as Le, C as L, a as ln, F as dn } from "./index.esm--gIChbWs.js";
|
|
20
20
|
import { c as vt } from "./index-CPNSgwSb.js";
|
|
21
21
|
import { c as u } from "./cn-qaFjX9_3.js";
|
|
22
|
-
import { Tabs as jt, TabsList as bt, TabsTrigger as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import * as
|
|
22
|
+
import { Tabs as jt, TabsList as bt, TabsTrigger as H, TabsContent as M } from "./ui/Tabs.js";
|
|
23
|
+
import { o as cn } from "./objectEntries-yMIkr2mI.js";
|
|
24
|
+
import { u as mn } from "./useLatest-hmRS46UF.js";
|
|
25
|
+
import { z as un } from "./index-DwT-v3zK.js";
|
|
26
|
+
import { B as A } from "./Button-Fp19CMUr.js";
|
|
27
|
+
import * as b from "@radix-ui/react-dropdown-menu";
|
|
28
|
+
import * as Ce from "@radix-ui/react-checkbox";
|
|
28
29
|
import * as ae from "@radix-ui/react-popover";
|
|
29
|
-
import { PopoverAnchor as
|
|
30
|
-
import { T as
|
|
31
|
-
import { g as
|
|
32
|
-
import { Input as
|
|
33
|
-
import { Slot as
|
|
30
|
+
import { PopoverAnchor as pn } from "@radix-ui/react-popover";
|
|
31
|
+
import { T as hn } from "./index-gQD2h1wX.js";
|
|
32
|
+
import { g as xn, h as fn, C as gn, b as yn, f as vn } from "./Callout-B2vsR09t.js";
|
|
33
|
+
import { Input as Ae } from "./ui/Input.js";
|
|
34
|
+
import { Slot as jn } from "@radix-ui/react-slot";
|
|
34
35
|
import * as Nt from "@radix-ui/react-label";
|
|
35
|
-
import * as
|
|
36
|
-
import { S as
|
|
37
|
-
import { Callout as
|
|
38
|
-
import { Card as wt, CardHeader as
|
|
39
|
-
import { Collapsible as
|
|
40
|
-
import * as
|
|
41
|
-
import { S as
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
throw new ts(t.errors[0].message, {
|
|
36
|
+
import * as Z from "@radix-ui/react-radio-group";
|
|
37
|
+
import { S as bn } from "./Spinner-CE68iCm0.js";
|
|
38
|
+
import { Callout as Nn } from "./ui/Callout.js";
|
|
39
|
+
import { Card as wt, CardHeader as wn, CardTitle as Cn, CardContent as Sn } from "./ui/Card.js";
|
|
40
|
+
import { Collapsible as at, CollapsibleTrigger as rt, CollapsibleContent as ot } from "./ui/Collapsible.js";
|
|
41
|
+
import * as De from "@radix-ui/react-collapsible";
|
|
42
|
+
import { S as Tn } from "./SyntaxHighlight-BEoSoPEo.js";
|
|
43
|
+
let xe;
|
|
44
|
+
const $n = (t) => {
|
|
45
|
+
var n;
|
|
46
|
+
if ((n = t.errors) != null && n[0])
|
|
47
|
+
throw new en(t.errors[0].message, {
|
|
48
48
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
var ie, le;
|
|
52
|
-
class
|
|
53
|
-
constructor(
|
|
54
|
-
|
|
55
|
-
(
|
|
56
|
-
)),
|
|
57
|
-
|
|
58
|
-
J(this, "fetch", async (
|
|
52
|
+
class Pn {
|
|
53
|
+
constructor(n) {
|
|
54
|
+
he(this, ie, async () => (xe || (xe = import("./createServer-mYvGvmc0.js").then(
|
|
55
|
+
(n) => n.createServer(this.config)
|
|
56
|
+
)), xe));
|
|
57
|
+
he(this, le, async (n) => this.config.server ? fetch(this.config.server, n) : (await pe(this, ie).call(this)).fetch("http://localhost/graphql", n));
|
|
58
|
+
J(this, "fetch", async (n, s) => {
|
|
59
59
|
var l;
|
|
60
|
-
const a = (l =
|
|
60
|
+
const a = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1], r = await pe(this, le).call(this, {
|
|
61
61
|
method: "POST",
|
|
62
|
-
body: JSON.stringify({ query:
|
|
62
|
+
body: JSON.stringify({ query: n, variables: s, operationName: a }),
|
|
63
63
|
headers: { "Content-Type": "application/json" }
|
|
64
64
|
});
|
|
65
65
|
if (!r.ok)
|
|
66
66
|
throw new Error("Network response was not ok");
|
|
67
67
|
const i = await r.json();
|
|
68
|
-
return $
|
|
68
|
+
return $n(i), i.data;
|
|
69
69
|
});
|
|
70
|
-
this.config =
|
|
70
|
+
this.config = n;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
ie = new WeakMap(), le = new WeakMap();
|
|
74
|
-
class
|
|
75
|
-
constructor(
|
|
76
|
-
super(
|
|
74
|
+
class E extends String {
|
|
75
|
+
constructor(s, a) {
|
|
76
|
+
super(s);
|
|
77
77
|
J(this, "__apiType");
|
|
78
78
|
J(this, "value");
|
|
79
79
|
J(this, "__meta__");
|
|
80
|
-
this.value =
|
|
80
|
+
this.value = s, this.__meta__ = a;
|
|
81
81
|
}
|
|
82
82
|
toString() {
|
|
83
83
|
return this.value;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
const
|
|
86
|
+
const kn = new E(
|
|
87
87
|
`
|
|
88
88
|
fragment OperationsFragment on OperationItem {
|
|
89
89
|
slug
|
|
@@ -151,7 +151,7 @@ const ks = new _(
|
|
|
151
151
|
}
|
|
152
152
|
`,
|
|
153
153
|
{ fragmentName: "OperationsFragment" }
|
|
154
|
-
),
|
|
154
|
+
), In = new E(`
|
|
155
155
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
156
156
|
schema(input: $input, type: $type) {
|
|
157
157
|
url
|
|
@@ -160,13 +160,13 @@ const ks = new _(
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
`),
|
|
163
|
+
`), Rn = new E(`
|
|
164
164
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
165
165
|
schema(input: $input, type: $type) {
|
|
166
166
|
openapi
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
`),
|
|
169
|
+
`), On = new E(`
|
|
170
170
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
171
171
|
schema(input: $input, type: $type) {
|
|
172
172
|
servers {
|
|
@@ -177,13 +177,21 @@ const ks = new _(
|
|
|
177
177
|
title
|
|
178
178
|
url
|
|
179
179
|
version
|
|
180
|
-
|
|
180
|
+
tag(slug: $tag, untagged: $untagged) {
|
|
181
181
|
name
|
|
182
182
|
description
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
operations {
|
|
184
|
+
slug
|
|
185
|
+
...OperationsFragment
|
|
186
|
+
}
|
|
187
|
+
next {
|
|
188
|
+
name
|
|
189
|
+
slug
|
|
190
|
+
}
|
|
191
|
+
prev {
|
|
192
|
+
name
|
|
193
|
+
slug
|
|
194
|
+
}
|
|
187
195
|
}
|
|
188
196
|
}
|
|
189
197
|
}
|
|
@@ -250,7 +258,22 @@ const ks = new _(
|
|
|
250
258
|
schema
|
|
251
259
|
}
|
|
252
260
|
}
|
|
253
|
-
}`),
|
|
261
|
+
}`), qn = new E(`
|
|
262
|
+
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
263
|
+
schema(input: $input, type: $type) {
|
|
264
|
+
title
|
|
265
|
+
description
|
|
266
|
+
summary
|
|
267
|
+
components {
|
|
268
|
+
schemas {
|
|
269
|
+
name
|
|
270
|
+
schema
|
|
271
|
+
extensions
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
`), Ln = new E(`
|
|
254
277
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
255
278
|
schema(input: $input, type: $type) {
|
|
256
279
|
url
|
|
@@ -259,7 +282,7 @@ const ks = new _(
|
|
|
259
282
|
}
|
|
260
283
|
}
|
|
261
284
|
}
|
|
262
|
-
`),
|
|
285
|
+
`), An = new E(`
|
|
263
286
|
query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
|
|
264
287
|
schema(input: $input, type: $type) {
|
|
265
288
|
tags {
|
|
@@ -274,20 +297,26 @@ const ks = new _(
|
|
|
274
297
|
path
|
|
275
298
|
}
|
|
276
299
|
}
|
|
300
|
+
components {
|
|
301
|
+
schemas {
|
|
302
|
+
__typename
|
|
303
|
+
}
|
|
304
|
+
}
|
|
277
305
|
}
|
|
278
306
|
}
|
|
279
|
-
`),
|
|
280
|
-
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
281
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\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":
|
|
282
|
-
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n":
|
|
283
|
-
"\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
|
|
284
|
-
"\n query
|
|
285
|
-
"\n query
|
|
307
|
+
`), Dn = {
|
|
308
|
+
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": In,
|
|
309
|
+
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\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": kn,
|
|
310
|
+
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Rn,
|
|
311
|
+
"\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 next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": On,
|
|
312
|
+
"\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": qn,
|
|
313
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ln,
|
|
314
|
+
"\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\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": An
|
|
286
315
|
};
|
|
287
|
-
function
|
|
288
|
-
return
|
|
316
|
+
function En(t) {
|
|
317
|
+
return Dn[t] ?? {};
|
|
289
318
|
}
|
|
290
|
-
const
|
|
319
|
+
const Vn = vt(
|
|
291
320
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
292
321
|
{
|
|
293
322
|
variants: {
|
|
@@ -300,124 +329,124 @@ const Ds = vt(
|
|
|
300
329
|
variant: "default"
|
|
301
330
|
}
|
|
302
331
|
}
|
|
303
|
-
),
|
|
332
|
+
), Se = v.forwardRef(({ className: t, variant: n, ...s }, a) => /* @__PURE__ */ e.jsx(
|
|
304
333
|
"div",
|
|
305
334
|
{
|
|
306
335
|
ref: a,
|
|
307
336
|
role: "alert",
|
|
308
|
-
className: u(
|
|
309
|
-
...
|
|
337
|
+
className: u(Vn({ variant: n }), t),
|
|
338
|
+
...s
|
|
310
339
|
}
|
|
311
340
|
));
|
|
312
|
-
|
|
313
|
-
const
|
|
341
|
+
Se.displayName = "Alert";
|
|
342
|
+
const Te = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
314
343
|
"h5",
|
|
315
344
|
{
|
|
316
|
-
ref:
|
|
345
|
+
ref: s,
|
|
317
346
|
className: u("mb-1 font-medium leading-none tracking-tight", t),
|
|
318
|
-
...
|
|
347
|
+
...n
|
|
319
348
|
}
|
|
320
349
|
));
|
|
321
|
-
|
|
322
|
-
const
|
|
350
|
+
Te.displayName = "AlertTitle";
|
|
351
|
+
const $e = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
323
352
|
"div",
|
|
324
353
|
{
|
|
325
|
-
ref:
|
|
354
|
+
ref: s,
|
|
326
355
|
className: u("text-sm [&_p]:leading-relaxed", t),
|
|
327
|
-
...
|
|
356
|
+
...n
|
|
328
357
|
}
|
|
329
358
|
));
|
|
330
|
-
|
|
331
|
-
const
|
|
359
|
+
$e.displayName = "AlertDescription";
|
|
360
|
+
const Fn = ({
|
|
332
361
|
path: t,
|
|
333
|
-
renderParam:
|
|
362
|
+
renderParam: n
|
|
334
363
|
}) => {
|
|
335
|
-
let
|
|
364
|
+
let s = 0;
|
|
336
365
|
return t.split("/").map((a, r, i) => {
|
|
337
|
-
const l = Array.from(a.matchAll(/{([^}]+)}/g)),
|
|
366
|
+
const l = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
|
|
338
367
|
let d = 0;
|
|
339
|
-
return l.forEach((
|
|
340
|
-
const [
|
|
368
|
+
return l.forEach((p) => {
|
|
369
|
+
const [f, w] = p;
|
|
341
370
|
if (!w) return;
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
/* @__PURE__ */ e.jsx(
|
|
345
|
-
),
|
|
346
|
-
/* @__PURE__ */ e.jsx(
|
|
347
|
-
), d =
|
|
348
|
-
}), d < a.length &&
|
|
349
|
-
/* @__PURE__ */ e.jsx(
|
|
371
|
+
const j = p.index;
|
|
372
|
+
j > d && c.push(
|
|
373
|
+
/* @__PURE__ */ e.jsx(q, { children: a.slice(d, j) }, `text-${d}-${j}`)
|
|
374
|
+
), c.push(
|
|
375
|
+
/* @__PURE__ */ e.jsx(q, { children: n({ name: w, originalValue: f, index: s++ }) }, `param-${w}`)
|
|
376
|
+
), d = j + f.length;
|
|
377
|
+
}), d < a.length && c.push(
|
|
378
|
+
/* @__PURE__ */ e.jsx(q, { children: a.slice(d) }, `text-${d}-${a.length}`)
|
|
350
379
|
), // eslint-disable-next-line react/no-array-index-key
|
|
351
|
-
/* @__PURE__ */ e.jsxs(
|
|
352
|
-
|
|
380
|
+
/* @__PURE__ */ e.jsxs(q, { children: [
|
|
381
|
+
c,
|
|
353
382
|
r < i.length - 1 && "/",
|
|
354
383
|
/* @__PURE__ */ e.jsx("wbr", {})
|
|
355
384
|
] }, `${a}-${r}`);
|
|
356
385
|
});
|
|
357
|
-
}, Ct =
|
|
358
|
-
({ className: t, ...
|
|
386
|
+
}, Ct = v.forwardRef(
|
|
387
|
+
({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
359
388
|
"textarea",
|
|
360
389
|
{
|
|
361
390
|
className: u(
|
|
362
391
|
"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-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
363
392
|
t
|
|
364
393
|
),
|
|
365
|
-
ref:
|
|
366
|
-
...
|
|
394
|
+
ref: s,
|
|
395
|
+
...n
|
|
367
396
|
}
|
|
368
397
|
)
|
|
369
398
|
);
|
|
370
399
|
Ct.displayName = "Textarea";
|
|
371
|
-
const
|
|
400
|
+
const fe = (t) => Math.abs(
|
|
372
401
|
isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
|
|
373
|
-
),
|
|
374
|
-
const
|
|
375
|
-
return `${
|
|
376
|
-
},
|
|
377
|
-
const { resolvedTheme:
|
|
402
|
+
), ge = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${fe(n) + fe(s)}`)) : fe(t), it = (t, n = {}) => {
|
|
403
|
+
const s = (3 * ge(t) + 2 * ge(t) + ge(t)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
|
|
404
|
+
return `${s}deg ${a}% ${r}%`;
|
|
405
|
+
}, ye = "data-linked-param", zn = (t) => {
|
|
406
|
+
const { resolvedTheme: n } = un();
|
|
378
407
|
return {
|
|
379
408
|
text: it(
|
|
380
409
|
t,
|
|
381
|
-
|
|
410
|
+
n === "light" ? { saturation: 95, lightness: 38 } : {}
|
|
382
411
|
),
|
|
383
412
|
background: it(
|
|
384
413
|
t,
|
|
385
|
-
|
|
414
|
+
n === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
386
415
|
)
|
|
387
416
|
};
|
|
388
417
|
}, St = ({
|
|
389
418
|
name: t,
|
|
390
|
-
className:
|
|
391
|
-
slug:
|
|
419
|
+
className: n,
|
|
420
|
+
slug: s,
|
|
392
421
|
title: a,
|
|
393
422
|
children: r,
|
|
394
423
|
onClick: i
|
|
395
424
|
}) => {
|
|
396
|
-
const l =
|
|
397
|
-
return
|
|
398
|
-
if (!
|
|
399
|
-
const
|
|
400
|
-
document.querySelectorAll(`[${
|
|
401
|
-
|
|
425
|
+
const l = G(null), c = s == null ? void 0 : s.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: p, background: f } = zn(d), w = `hsl(${p} / 100%)`, j = `hsl(${f} / 10%)`, h = `hsl(${f} / 50%)`;
|
|
426
|
+
return se(() => {
|
|
427
|
+
if (!c || !l.current) return;
|
|
428
|
+
const g = () => {
|
|
429
|
+
document.querySelectorAll(`[${ye}="${c}"]`).forEach((x) => {
|
|
430
|
+
x instanceof HTMLElement && (x.dataset.active = "true");
|
|
402
431
|
});
|
|
403
|
-
},
|
|
404
|
-
document.querySelectorAll(`[${
|
|
405
|
-
|
|
432
|
+
}, m = () => {
|
|
433
|
+
document.querySelectorAll(`[${ye}="${c}"]`).forEach((x) => {
|
|
434
|
+
x instanceof HTMLElement && (x.dataset.active = "false");
|
|
406
435
|
});
|
|
407
|
-
},
|
|
408
|
-
return
|
|
409
|
-
|
|
436
|
+
}, y = l.current;
|
|
437
|
+
return y.addEventListener("mouseenter", g), y.addEventListener("mouseleave", m), () => {
|
|
438
|
+
y.removeEventListener("mouseenter", g), y.removeEventListener("mouseleave", m);
|
|
410
439
|
};
|
|
411
|
-
}, [
|
|
440
|
+
}, [c]), /* @__PURE__ */ e.jsx(
|
|
412
441
|
"span",
|
|
413
442
|
{
|
|
414
|
-
[
|
|
443
|
+
[ye]: c,
|
|
415
444
|
className: u(
|
|
416
445
|
// This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
|
|
417
|
-
"relative
|
|
446
|
+
"relative transition-all duration-100 rounded-lg",
|
|
418
447
|
"border border-[--border-color] p-0.5 text-[--param-color] bg-[--background-color]",
|
|
419
448
|
"data-[active=true]:border-[--param-color] data-[active=true]:shadow data-[active=true]:bottom-px",
|
|
420
|
-
|
|
449
|
+
n
|
|
421
450
|
),
|
|
422
451
|
title: a,
|
|
423
452
|
suppressHydrationWarning: !0,
|
|
@@ -425,166 +454,166 @@ const xe = (t) => Math.abs(
|
|
|
425
454
|
onClick: i,
|
|
426
455
|
style: {
|
|
427
456
|
"--param-color": w,
|
|
428
|
-
"--border-color":
|
|
429
|
-
"--background-color":
|
|
457
|
+
"--border-color": h,
|
|
458
|
+
"--background-color": j
|
|
430
459
|
},
|
|
431
460
|
children: r ?? t
|
|
432
461
|
}
|
|
433
462
|
);
|
|
434
|
-
},
|
|
463
|
+
}, Hn = xt()(
|
|
435
464
|
ft(
|
|
436
465
|
(t) => ({
|
|
437
466
|
selectedServer: void 0,
|
|
438
|
-
setSelectedServer: (
|
|
467
|
+
setSelectedServer: (n) => t({ selectedServer: n })
|
|
439
468
|
}),
|
|
440
469
|
{ name: "zudoku-selected-server" }
|
|
441
470
|
)
|
|
442
|
-
),
|
|
443
|
-
const { selectedServer:
|
|
444
|
-
return { selectedServer:
|
|
471
|
+
), Mn = (t) => {
|
|
472
|
+
const { selectedServer: n, setSelectedServer: s } = Hn();
|
|
473
|
+
return { selectedServer: nn(
|
|
445
474
|
() => {
|
|
446
475
|
var r;
|
|
447
|
-
return
|
|
476
|
+
return n && t.some((i) => i.url === n) ? n : ((r = t.at(0)) == null ? void 0 : r.url) ?? "";
|
|
448
477
|
},
|
|
449
|
-
[
|
|
450
|
-
), setSelectedServer:
|
|
451
|
-
},
|
|
452
|
-
const a =
|
|
478
|
+
[n, t]
|
|
479
|
+
), setSelectedServer: s };
|
|
480
|
+
}, _n = (t, n, s) => {
|
|
481
|
+
const a = n.replace(/(:\w+|\{\w+})/g, (i) => {
|
|
453
482
|
var d;
|
|
454
483
|
const l = i.replace(/[:{}]/g, "");
|
|
455
|
-
return ((d =
|
|
484
|
+
return ((d = s.pathParams.find((p) => p.name === l)) == null ? void 0 : d.value) ?? i;
|
|
456
485
|
}), r = new URL(
|
|
457
486
|
a.replace(/^\//, ""),
|
|
458
487
|
t.endsWith("/") ? t : `${t}/`
|
|
459
488
|
);
|
|
460
|
-
return
|
|
489
|
+
return s.queryParams.filter((i) => i.active).forEach((i) => {
|
|
461
490
|
r.searchParams.set(i.name, i.value);
|
|
462
491
|
}), r;
|
|
463
|
-
}, Tt =
|
|
464
|
-
|
|
492
|
+
}, Tt = b.Root, $t = b.Trigger, Bn = b.Group, Gn = v.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
|
|
493
|
+
b.SubTrigger,
|
|
465
494
|
{
|
|
466
495
|
ref: r,
|
|
467
496
|
className: u(
|
|
468
497
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
469
|
-
|
|
498
|
+
n && "pl-8",
|
|
470
499
|
t
|
|
471
500
|
),
|
|
472
501
|
...a,
|
|
473
502
|
children: [
|
|
474
|
-
|
|
475
|
-
/* @__PURE__ */ e.jsx(
|
|
503
|
+
s,
|
|
504
|
+
/* @__PURE__ */ e.jsx(Q, { className: "ml-auto h-4 w-4" })
|
|
476
505
|
]
|
|
477
506
|
}
|
|
478
507
|
));
|
|
479
|
-
|
|
480
|
-
const
|
|
481
|
-
|
|
508
|
+
Gn.displayName = b.SubTrigger.displayName;
|
|
509
|
+
const Jn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
510
|
+
b.SubContent,
|
|
482
511
|
{
|
|
483
|
-
ref:
|
|
512
|
+
ref: s,
|
|
484
513
|
className: u(
|
|
485
514
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
486
515
|
t
|
|
487
516
|
),
|
|
488
|
-
...
|
|
517
|
+
...n
|
|
489
518
|
}
|
|
490
519
|
));
|
|
491
|
-
|
|
492
|
-
const Ee =
|
|
493
|
-
|
|
520
|
+
Jn.displayName = b.SubContent.displayName;
|
|
521
|
+
const Ee = v.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(b.Portal, { children: /* @__PURE__ */ e.jsx(
|
|
522
|
+
b.Content,
|
|
494
523
|
{
|
|
495
524
|
ref: a,
|
|
496
|
-
sideOffset:
|
|
525
|
+
sideOffset: n,
|
|
497
526
|
className: u(
|
|
498
527
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
499
528
|
"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",
|
|
500
529
|
t
|
|
501
530
|
),
|
|
502
|
-
...
|
|
531
|
+
...s
|
|
503
532
|
}
|
|
504
533
|
) }));
|
|
505
|
-
Ee.displayName =
|
|
506
|
-
const
|
|
507
|
-
|
|
534
|
+
Ee.displayName = b.Content.displayName;
|
|
535
|
+
const Ve = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
|
|
536
|
+
b.Item,
|
|
508
537
|
{
|
|
509
538
|
ref: a,
|
|
510
539
|
className: u(
|
|
511
540
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
512
|
-
|
|
541
|
+
n && "pl-8",
|
|
513
542
|
t
|
|
514
543
|
),
|
|
515
|
-
...
|
|
544
|
+
...s
|
|
516
545
|
}
|
|
517
546
|
));
|
|
518
|
-
|
|
519
|
-
const
|
|
520
|
-
|
|
547
|
+
Ve.displayName = b.Item.displayName;
|
|
548
|
+
const Un = v.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
|
|
549
|
+
b.CheckboxItem,
|
|
521
550
|
{
|
|
522
551
|
ref: r,
|
|
523
552
|
className: u(
|
|
524
553
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
525
554
|
t
|
|
526
555
|
),
|
|
527
|
-
checked:
|
|
556
|
+
checked: s,
|
|
528
557
|
...a,
|
|
529
558
|
children: [
|
|
530
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
531
|
-
|
|
559
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(b.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Ht, { className: "h-4 w-4" }) }) }),
|
|
560
|
+
n
|
|
532
561
|
]
|
|
533
562
|
}
|
|
534
563
|
));
|
|
535
|
-
|
|
536
|
-
const
|
|
537
|
-
|
|
564
|
+
Un.displayName = b.CheckboxItem.displayName;
|
|
565
|
+
const Qn = v.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
|
|
566
|
+
b.RadioItem,
|
|
538
567
|
{
|
|
539
568
|
ref: a,
|
|
540
569
|
className: u(
|
|
541
570
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
542
571
|
t
|
|
543
572
|
),
|
|
544
|
-
...
|
|
573
|
+
...s,
|
|
545
574
|
children: [
|
|
546
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
547
|
-
|
|
575
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(b.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Mt, { className: "h-4 w-4 fill-current" }) }) }),
|
|
576
|
+
n
|
|
548
577
|
]
|
|
549
578
|
}
|
|
550
579
|
));
|
|
551
|
-
|
|
552
|
-
const Pt =
|
|
553
|
-
|
|
580
|
+
Qn.displayName = b.RadioItem.displayName;
|
|
581
|
+
const Pt = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
|
|
582
|
+
b.Label,
|
|
554
583
|
{
|
|
555
584
|
ref: a,
|
|
556
585
|
className: u(
|
|
557
586
|
"px-2 py-1.5 text-sm font-semibold",
|
|
558
|
-
|
|
587
|
+
n && "pl-8",
|
|
559
588
|
t
|
|
560
589
|
),
|
|
561
|
-
...
|
|
590
|
+
...s
|
|
562
591
|
}
|
|
563
592
|
));
|
|
564
|
-
Pt.displayName =
|
|
565
|
-
const kt =
|
|
566
|
-
|
|
593
|
+
Pt.displayName = b.Label.displayName;
|
|
594
|
+
const kt = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
595
|
+
b.Separator,
|
|
567
596
|
{
|
|
568
|
-
ref:
|
|
597
|
+
ref: s,
|
|
569
598
|
className: u("-mx-1 my-1 h-px bg-muted", t),
|
|
570
|
-
...
|
|
599
|
+
...n
|
|
571
600
|
}
|
|
572
601
|
));
|
|
573
|
-
kt.displayName =
|
|
574
|
-
const
|
|
602
|
+
kt.displayName = b.Separator.displayName;
|
|
603
|
+
const Wn = ({
|
|
575
604
|
examples: t,
|
|
576
|
-
onSelect:
|
|
605
|
+
onSelect: n
|
|
577
606
|
}) => /* @__PURE__ */ e.jsxs(Tt, { children: [
|
|
578
|
-
/* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
579
|
-
/* @__PURE__ */ e.jsx(Ee, { className: "max-w-72", children: t.map((
|
|
607
|
+
/* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(A, { variant: "outline", children: "Use Example" }) }),
|
|
608
|
+
/* @__PURE__ */ e.jsx(Ee, { className: "max-w-72", children: t.map((s) => {
|
|
580
609
|
var a;
|
|
581
610
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
582
|
-
/* @__PURE__ */ e.jsx(Pt, { children:
|
|
611
|
+
/* @__PURE__ */ e.jsx(Pt, { children: s.mediaType }),
|
|
583
612
|
/* @__PURE__ */ e.jsx(kt, {}),
|
|
584
|
-
/* @__PURE__ */ e.jsx(
|
|
585
|
-
|
|
613
|
+
/* @__PURE__ */ e.jsx(Bn, { children: (a = s.examples) == null ? void 0 : a.map((r) => /* @__PURE__ */ e.jsx(
|
|
614
|
+
Ve,
|
|
586
615
|
{
|
|
587
|
-
onSelect: () =>
|
|
616
|
+
onSelect: () => n(r, s.mediaType),
|
|
588
617
|
children: /* @__PURE__ */ e.jsx(
|
|
589
618
|
"span",
|
|
590
619
|
{
|
|
@@ -596,70 +625,70 @@ const Qs = ({
|
|
|
596
625
|
},
|
|
597
626
|
r.name
|
|
598
627
|
)) })
|
|
599
|
-
] },
|
|
628
|
+
] }, s.mediaType);
|
|
600
629
|
}) })
|
|
601
|
-
] }),
|
|
630
|
+
] }), X = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
602
631
|
"div",
|
|
603
632
|
{
|
|
604
|
-
ref:
|
|
633
|
+
ref: s,
|
|
605
634
|
className: u(
|
|
606
635
|
"rounded-xl border bg-card text-card-foreground shadow-sm",
|
|
607
636
|
t
|
|
608
637
|
),
|
|
609
|
-
...
|
|
638
|
+
...n
|
|
610
639
|
}
|
|
611
640
|
));
|
|
612
|
-
|
|
613
|
-
const
|
|
641
|
+
X.displayName = "Card";
|
|
642
|
+
const Zn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
614
643
|
"div",
|
|
615
644
|
{
|
|
616
|
-
ref:
|
|
645
|
+
ref: s,
|
|
617
646
|
className: u("flex flex-col space-y-1.5 p-6", t),
|
|
618
|
-
...
|
|
647
|
+
...n
|
|
619
648
|
}
|
|
620
649
|
));
|
|
621
|
-
|
|
622
|
-
const
|
|
650
|
+
Zn.displayName = "CardHeader";
|
|
651
|
+
const Xn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
623
652
|
"h3",
|
|
624
653
|
{
|
|
625
|
-
ref:
|
|
654
|
+
ref: s,
|
|
626
655
|
className: u("font-semibold leading-none tracking-tight", t),
|
|
627
|
-
...
|
|
656
|
+
...n
|
|
628
657
|
}
|
|
629
658
|
));
|
|
630
|
-
|
|
631
|
-
const
|
|
659
|
+
Xn.displayName = "CardTitle";
|
|
660
|
+
const Kn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
632
661
|
"p",
|
|
633
662
|
{
|
|
634
|
-
ref:
|
|
663
|
+
ref: s,
|
|
635
664
|
className: u("text-sm text-muted-foreground", t),
|
|
636
|
-
...
|
|
665
|
+
...n
|
|
637
666
|
}
|
|
638
667
|
));
|
|
639
|
-
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
const
|
|
668
|
+
Kn.displayName = "CardDescription";
|
|
669
|
+
const Yn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...n }));
|
|
670
|
+
Yn.displayName = "CardContent";
|
|
671
|
+
const es = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
643
672
|
"div",
|
|
644
673
|
{
|
|
645
|
-
ref:
|
|
674
|
+
ref: s,
|
|
646
675
|
className: u("flex items-center p-6 pt-0", t),
|
|
647
|
-
...
|
|
676
|
+
...n
|
|
648
677
|
}
|
|
649
678
|
));
|
|
650
|
-
|
|
651
|
-
const de =
|
|
652
|
-
|
|
679
|
+
es.displayName = "CardFooter";
|
|
680
|
+
const de = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
681
|
+
Ce.Root,
|
|
653
682
|
{
|
|
654
|
-
ref:
|
|
683
|
+
ref: s,
|
|
655
684
|
className: u(
|
|
656
685
|
"peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
|
|
657
686
|
"border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
|
|
658
687
|
t
|
|
659
688
|
),
|
|
660
|
-
...
|
|
689
|
+
...n,
|
|
661
690
|
children: /* @__PURE__ */ e.jsx(
|
|
662
|
-
|
|
691
|
+
Ce.Indicator,
|
|
663
692
|
{
|
|
664
693
|
className: u("flex items-center justify-center text-current"),
|
|
665
694
|
children: /* @__PURE__ */ e.jsx(_t, { className: "h-4 w-4" })
|
|
@@ -667,13 +696,13 @@ const de = y.forwardRef(({ className: t, ...s }, n) => /* @__PURE__ */ e.jsx(
|
|
|
667
696
|
)
|
|
668
697
|
}
|
|
669
698
|
));
|
|
670
|
-
de.displayName =
|
|
671
|
-
const
|
|
699
|
+
de.displayName = Ce.Root.displayName;
|
|
700
|
+
const ts = ae.Root, It = v.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(ae.Portal, { children: /* @__PURE__ */ e.jsx(
|
|
672
701
|
ae.Content,
|
|
673
702
|
{
|
|
674
703
|
ref: r,
|
|
675
|
-
align:
|
|
676
|
-
sideOffset:
|
|
704
|
+
align: n,
|
|
705
|
+
sideOffset: s,
|
|
677
706
|
className: u(
|
|
678
707
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
|
|
679
708
|
t
|
|
@@ -682,86 +711,86 @@ const en = ae.Root, It = y.forwardRef(({ className: t, align: s = "center", side
|
|
|
682
711
|
}
|
|
683
712
|
) }));
|
|
684
713
|
It.displayName = ae.Content.displayName;
|
|
685
|
-
const
|
|
714
|
+
const ns = ({
|
|
686
715
|
value: t,
|
|
687
|
-
options:
|
|
688
|
-
onChange:
|
|
716
|
+
options: n,
|
|
717
|
+
onChange: s,
|
|
689
718
|
className: a,
|
|
690
719
|
placeholder: r = "Enter value",
|
|
691
720
|
onEnterPress: i,
|
|
692
721
|
ref: l
|
|
693
722
|
}) => {
|
|
694
|
-
const [
|
|
695
|
-
return /* @__PURE__ */ e.jsxs(
|
|
696
|
-
/* @__PURE__ */ e.jsx(
|
|
697
|
-
|
|
723
|
+
const [c, d] = k(!1), [p, f] = k(!1), w = hn((h) => h.filtered.count), j = G(null);
|
|
724
|
+
return /* @__PURE__ */ e.jsxs(ts, { open: c, children: [
|
|
725
|
+
/* @__PURE__ */ e.jsx(pn, { children: /* @__PURE__ */ e.jsx(
|
|
726
|
+
fn,
|
|
698
727
|
{
|
|
699
|
-
ref: (
|
|
700
|
-
|
|
728
|
+
ref: (h) => {
|
|
729
|
+
j.current = h, typeof l == "function" ? l(h) : l && (l.current = h);
|
|
701
730
|
},
|
|
702
731
|
value: t,
|
|
703
732
|
placeholder: r,
|
|
704
733
|
className: u("h-9 bg-transparent", a),
|
|
705
734
|
onFocus: () => d(!0),
|
|
706
735
|
onBlur: () => {
|
|
707
|
-
|
|
736
|
+
p || d(!1);
|
|
708
737
|
},
|
|
709
|
-
onKeyDown: (
|
|
710
|
-
var
|
|
711
|
-
|
|
738
|
+
onKeyDown: (h) => {
|
|
739
|
+
var g;
|
|
740
|
+
h.key === "Enter" && (d(!1), (g = j.current) == null || g.blur(), i == null || i(h));
|
|
712
741
|
},
|
|
713
|
-
onValueChange: (
|
|
742
|
+
onValueChange: (h) => s(h)
|
|
714
743
|
}
|
|
715
744
|
) }),
|
|
716
745
|
/* @__PURE__ */ e.jsx(
|
|
717
746
|
It,
|
|
718
747
|
{
|
|
719
|
-
onMouseEnter: () =>
|
|
720
|
-
onMouseLeave: () =>
|
|
721
|
-
onOpenAutoFocus: (
|
|
748
|
+
onMouseEnter: () => f(!0),
|
|
749
|
+
onMouseLeave: () => f(!1),
|
|
750
|
+
onOpenAutoFocus: (h) => h.preventDefault(),
|
|
722
751
|
className: u("p-0 w-[--radix-popover-trigger-width]", {
|
|
723
752
|
"border-0": w === 0
|
|
724
753
|
}),
|
|
725
754
|
align: "start",
|
|
726
755
|
side: "bottom",
|
|
727
|
-
onWheel: (
|
|
728
|
-
|
|
756
|
+
onWheel: (h) => {
|
|
757
|
+
h.stopPropagation();
|
|
729
758
|
},
|
|
730
|
-
onTouchMove: (
|
|
731
|
-
|
|
759
|
+
onTouchMove: (h) => {
|
|
760
|
+
h.stopPropagation();
|
|
732
761
|
},
|
|
733
|
-
children: /* @__PURE__ */ e.jsx(
|
|
734
|
-
|
|
762
|
+
children: /* @__PURE__ */ e.jsx(gn, { className: "max-h-[140px]", children: n.map((h) => /* @__PURE__ */ e.jsx(
|
|
763
|
+
yn,
|
|
735
764
|
{
|
|
736
|
-
value:
|
|
737
|
-
onSelect: (
|
|
738
|
-
|
|
765
|
+
value: h,
|
|
766
|
+
onSelect: (g) => {
|
|
767
|
+
s(g), d(!1);
|
|
739
768
|
},
|
|
740
769
|
className: "cursor-pointer",
|
|
741
|
-
children:
|
|
770
|
+
children: h
|
|
742
771
|
},
|
|
743
|
-
|
|
772
|
+
h
|
|
744
773
|
)) })
|
|
745
774
|
}
|
|
746
775
|
)
|
|
747
776
|
] });
|
|
748
|
-
}, re = ({ shouldFilter: t, ...
|
|
749
|
-
const
|
|
750
|
-
const
|
|
751
|
-
return
|
|
777
|
+
}, re = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(xn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(ns, { ...n }) }), Fe = (t, n) => {
|
|
778
|
+
const s = v.forwardRef(({ className: a, asChild: r, ...i }, l) => {
|
|
779
|
+
const c = r ? jn : t;
|
|
780
|
+
return v.createElement(c, {
|
|
752
781
|
...i,
|
|
753
782
|
ref: l,
|
|
754
|
-
className: typeof
|
|
783
|
+
className: typeof n == "function" ? n({ className: a }) : u(n, a)
|
|
755
784
|
});
|
|
756
785
|
});
|
|
757
|
-
return
|
|
758
|
-
},
|
|
786
|
+
return s.displayName = `VariantComponent(${t})`, s;
|
|
787
|
+
}, ze = Fe(
|
|
759
788
|
"div",
|
|
760
789
|
"grid grid-cols-[2fr_3fr] gap-2 items-center"
|
|
761
|
-
),
|
|
790
|
+
), He = Fe(
|
|
762
791
|
"div",
|
|
763
792
|
"group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
|
|
764
|
-
),
|
|
793
|
+
), ss = Object.freeze([
|
|
765
794
|
"Accept",
|
|
766
795
|
"Accept-Encoding",
|
|
767
796
|
"Accept-Language",
|
|
@@ -788,70 +817,70 @@ const tn = ({
|
|
|
788
817
|
"Set-Cookie",
|
|
789
818
|
"User-Agent",
|
|
790
819
|
"X-Requested-With"
|
|
791
|
-
]),
|
|
820
|
+
]), as = ({
|
|
792
821
|
control: t,
|
|
793
|
-
headers:
|
|
822
|
+
headers: n
|
|
794
823
|
}) => {
|
|
795
|
-
const { fields:
|
|
824
|
+
const { fields: s, append: a, remove: r } = qe({
|
|
796
825
|
control: t,
|
|
797
826
|
name: "headers"
|
|
798
|
-
}), { setValue: i, watch: l } =
|
|
827
|
+
}), { setValue: i, watch: l } = Le(), c = G([]), d = G([]), p = l("headers"), f = sn(() => {
|
|
799
828
|
a({ name: "", value: "", active: !1 });
|
|
800
829
|
}, [a]);
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}, [
|
|
804
|
-
const w = (
|
|
805
|
-
var
|
|
806
|
-
(
|
|
807
|
-
},
|
|
808
|
-
|
|
809
|
-
var
|
|
810
|
-
return (
|
|
830
|
+
se(() => {
|
|
831
|
+
p.length === 0 && f();
|
|
832
|
+
}, [p, f]);
|
|
833
|
+
const w = (g) => {
|
|
834
|
+
var m;
|
|
835
|
+
(m = c.current[g]) == null || m.focus();
|
|
836
|
+
}, j = (g) => {
|
|
837
|
+
f(), requestAnimationFrame(() => {
|
|
838
|
+
var m;
|
|
839
|
+
return (m = d.current[g + 1]) == null ? void 0 : m.focus();
|
|
811
840
|
});
|
|
812
|
-
},
|
|
841
|
+
}, h = n.filter((g) => !p.some((m) => m.name === g.name)).map(({ name: g }) => g);
|
|
813
842
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
814
|
-
/* @__PURE__ */ e.jsx(
|
|
815
|
-
const
|
|
816
|
-
(
|
|
843
|
+
/* @__PURE__ */ e.jsx(X, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(ze, { children: s.map((g, m) => {
|
|
844
|
+
const y = n.find(
|
|
845
|
+
(x) => x.name === l(`headers.${m}.name`)
|
|
817
846
|
);
|
|
818
|
-
return /* @__PURE__ */ e.jsxs(
|
|
847
|
+
return /* @__PURE__ */ e.jsxs(He, { children: [
|
|
819
848
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 ", children: [
|
|
820
849
|
/* @__PURE__ */ e.jsx(
|
|
821
|
-
|
|
850
|
+
L,
|
|
822
851
|
{
|
|
823
852
|
control: t,
|
|
824
|
-
name: `headers.${
|
|
825
|
-
render: ({ field:
|
|
853
|
+
name: `headers.${m}.active`,
|
|
854
|
+
render: ({ field: x }) => /* @__PURE__ */ e.jsx(
|
|
826
855
|
de,
|
|
827
856
|
{
|
|
828
|
-
id: `headers.${
|
|
829
|
-
checked:
|
|
830
|
-
onCheckedChange: (
|
|
831
|
-
|
|
857
|
+
id: `headers.${m}.active`,
|
|
858
|
+
checked: x.value,
|
|
859
|
+
onCheckedChange: (T) => {
|
|
860
|
+
x.onChange(T);
|
|
832
861
|
}
|
|
833
862
|
}
|
|
834
863
|
)
|
|
835
864
|
}
|
|
836
865
|
),
|
|
837
866
|
/* @__PURE__ */ e.jsx(
|
|
838
|
-
|
|
867
|
+
L,
|
|
839
868
|
{
|
|
840
869
|
control: t,
|
|
841
|
-
name: `headers.${
|
|
842
|
-
render: ({ field:
|
|
870
|
+
name: `headers.${m}.name`,
|
|
871
|
+
render: ({ field: x }) => /* @__PURE__ */ e.jsx(
|
|
843
872
|
re,
|
|
844
873
|
{
|
|
845
|
-
...
|
|
874
|
+
...x,
|
|
846
875
|
placeholder: "Name",
|
|
847
876
|
className: "border-0 shadow-none bg-transparent text-xs font-mono",
|
|
848
|
-
options: [...
|
|
849
|
-
onEnterPress: () => w(
|
|
850
|
-
onChange: (
|
|
851
|
-
|
|
877
|
+
options: [...h, ...ss],
|
|
878
|
+
onEnterPress: () => w(m),
|
|
879
|
+
onChange: (T) => {
|
|
880
|
+
x.onChange(T), i(`headers.${m}.active`, !0);
|
|
852
881
|
},
|
|
853
|
-
ref: (
|
|
854
|
-
d.current[
|
|
882
|
+
ref: (T) => {
|
|
883
|
+
d.current[m] = T;
|
|
855
884
|
}
|
|
856
885
|
}
|
|
857
886
|
)
|
|
@@ -860,32 +889,32 @@ const tn = ({
|
|
|
860
889
|
] }),
|
|
861
890
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
862
891
|
/* @__PURE__ */ e.jsx(
|
|
863
|
-
|
|
892
|
+
L,
|
|
864
893
|
{
|
|
865
894
|
control: t,
|
|
866
|
-
name: `headers.${
|
|
867
|
-
render: ({ field:
|
|
895
|
+
name: `headers.${m}.value`,
|
|
896
|
+
render: ({ field: x }) => (y == null ? void 0 : y.enum) && y.enum.length > 0 ? /* @__PURE__ */ e.jsx(
|
|
868
897
|
re,
|
|
869
898
|
{
|
|
870
899
|
shouldFilter: !1,
|
|
871
|
-
value:
|
|
872
|
-
options:
|
|
873
|
-
onChange: (
|
|
874
|
-
|
|
900
|
+
value: x.value,
|
|
901
|
+
options: y.enum ?? [],
|
|
902
|
+
onChange: ($) => {
|
|
903
|
+
x.onChange($), i(`headers.${m}.active`, !0);
|
|
875
904
|
},
|
|
876
905
|
className: "font-mono text-xs border-0"
|
|
877
906
|
}
|
|
878
907
|
) : /* @__PURE__ */ e.jsx(
|
|
879
|
-
|
|
908
|
+
Ae,
|
|
880
909
|
{
|
|
881
910
|
placeholder: "Value",
|
|
882
911
|
className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
|
|
883
|
-
...
|
|
884
|
-
ref: (
|
|
885
|
-
|
|
912
|
+
...x,
|
|
913
|
+
ref: ($) => {
|
|
914
|
+
c.current[m] = $;
|
|
886
915
|
},
|
|
887
|
-
onKeyDown: (
|
|
888
|
-
|
|
916
|
+
onKeyDown: ($) => {
|
|
917
|
+
$.key === "Enter" && $.currentTarget.value.trim() && j(m);
|
|
889
918
|
},
|
|
890
919
|
autoComplete: "off"
|
|
891
920
|
}
|
|
@@ -893,114 +922,114 @@ const tn = ({
|
|
|
893
922
|
}
|
|
894
923
|
),
|
|
895
924
|
/* @__PURE__ */ e.jsx(
|
|
896
|
-
|
|
925
|
+
W,
|
|
897
926
|
{
|
|
898
927
|
size: "icon",
|
|
899
928
|
variant: "ghost",
|
|
900
929
|
className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
|
|
901
|
-
onClick: () => r(
|
|
930
|
+
onClick: () => r(m),
|
|
902
931
|
type: "button",
|
|
903
|
-
children: /* @__PURE__ */ e.jsx(
|
|
932
|
+
children: /* @__PURE__ */ e.jsx(Bt, { size: 16 })
|
|
904
933
|
}
|
|
905
934
|
)
|
|
906
935
|
] })
|
|
907
|
-
] },
|
|
936
|
+
] }, g.id);
|
|
908
937
|
}) }) }),
|
|
909
938
|
/* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
|
|
910
|
-
|
|
939
|
+
W,
|
|
911
940
|
{
|
|
912
941
|
className: "",
|
|
913
|
-
onClick:
|
|
942
|
+
onClick: f,
|
|
914
943
|
type: "button",
|
|
915
944
|
variant: "secondary",
|
|
916
945
|
children: "Add header"
|
|
917
946
|
}
|
|
918
947
|
) })
|
|
919
948
|
] });
|
|
920
|
-
},
|
|
949
|
+
}, rs = vt(
|
|
921
950
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
922
|
-
),
|
|
951
|
+
), _ = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
923
952
|
Nt.Root,
|
|
924
953
|
{
|
|
925
|
-
ref:
|
|
926
|
-
className: u(
|
|
927
|
-
...
|
|
954
|
+
ref: s,
|
|
955
|
+
className: u(rs(), t),
|
|
956
|
+
...n
|
|
928
957
|
}
|
|
929
958
|
));
|
|
930
|
-
|
|
931
|
-
const Me =
|
|
932
|
-
|
|
959
|
+
_.displayName = Nt.Root.displayName;
|
|
960
|
+
const Me = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
961
|
+
Z.Root,
|
|
933
962
|
{
|
|
934
963
|
className: u("grid gap-2", t),
|
|
935
|
-
...
|
|
936
|
-
ref:
|
|
964
|
+
...n,
|
|
965
|
+
ref: s
|
|
937
966
|
}
|
|
938
967
|
));
|
|
939
|
-
Me.displayName =
|
|
940
|
-
const oe =
|
|
941
|
-
|
|
968
|
+
Me.displayName = Z.Root.displayName;
|
|
969
|
+
const oe = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
|
|
970
|
+
Z.Item,
|
|
942
971
|
{
|
|
943
|
-
ref:
|
|
972
|
+
ref: s,
|
|
944
973
|
className: u(
|
|
945
974
|
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
946
975
|
t
|
|
947
976
|
),
|
|
948
|
-
...
|
|
949
|
-
children: /* @__PURE__ */ e.jsx(
|
|
977
|
+
...n,
|
|
978
|
+
children: /* @__PURE__ */ e.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(Gt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
950
979
|
}
|
|
951
980
|
));
|
|
952
|
-
oe.displayName =
|
|
981
|
+
oe.displayName = Z.Item.displayName;
|
|
953
982
|
const Rt = ({
|
|
954
983
|
identities: t,
|
|
955
|
-
setValue:
|
|
956
|
-
value:
|
|
957
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
984
|
+
setValue: n,
|
|
985
|
+
value: s
|
|
986
|
+
}) => /* @__PURE__ */ e.jsx(X, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
|
|
958
987
|
Me,
|
|
959
988
|
{
|
|
960
|
-
onValueChange: (a) =>
|
|
961
|
-
value:
|
|
962
|
-
defaultValue:
|
|
989
|
+
onValueChange: (a) => n(a),
|
|
990
|
+
value: s,
|
|
991
|
+
defaultValue: B,
|
|
963
992
|
className: "gap-0",
|
|
964
993
|
disabled: (t == null ? void 0 : t.length) === 0,
|
|
965
994
|
children: [
|
|
966
995
|
/* @__PURE__ */ e.jsxs(
|
|
967
|
-
|
|
996
|
+
_,
|
|
968
997
|
{
|
|
969
998
|
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
970
999
|
htmlFor: "none",
|
|
971
1000
|
children: [
|
|
972
|
-
/* @__PURE__ */ e.jsx(oe, { value:
|
|
973
|
-
/* @__PURE__ */ e.jsx(
|
|
1001
|
+
/* @__PURE__ */ e.jsx(oe, { value: B, id: "none", children: "None" }),
|
|
1002
|
+
/* @__PURE__ */ e.jsx(_, { htmlFor: "none", className: "ml-2", children: "None" })
|
|
974
1003
|
]
|
|
975
1004
|
}
|
|
976
1005
|
),
|
|
977
1006
|
t == null ? void 0 : t.map((a) => /* @__PURE__ */ e.jsxs(
|
|
978
|
-
|
|
1007
|
+
_,
|
|
979
1008
|
{
|
|
980
1009
|
className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
|
|
981
1010
|
children: [
|
|
982
1011
|
/* @__PURE__ */ e.jsx(oe, { value: a.id, id: a.id, children: a.label }),
|
|
983
|
-
/* @__PURE__ */ e.jsx(
|
|
1012
|
+
/* @__PURE__ */ e.jsx(_, { htmlFor: a.id, className: "ml-2", children: a.label })
|
|
984
1013
|
]
|
|
985
1014
|
},
|
|
986
1015
|
a.id
|
|
987
1016
|
))
|
|
988
1017
|
]
|
|
989
1018
|
}
|
|
990
|
-
) }),
|
|
1019
|
+
) }), os = ({
|
|
991
1020
|
onSubmit: t,
|
|
992
|
-
identities:
|
|
993
|
-
open:
|
|
1021
|
+
identities: n,
|
|
1022
|
+
open: s,
|
|
994
1023
|
onOpenChange: a
|
|
995
1024
|
}) => {
|
|
996
|
-
const [r, i] = k(void 0), [l,
|
|
997
|
-
return /* @__PURE__ */ e.jsx(
|
|
998
|
-
/* @__PURE__ */ e.jsx(
|
|
1025
|
+
const [r, i] = k(void 0), [l, c] = k(!1);
|
|
1026
|
+
return /* @__PURE__ */ e.jsx(Ie, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(Re, { children: [
|
|
1027
|
+
/* @__PURE__ */ e.jsx(Oe, { children: "Select an auth identity" }),
|
|
999
1028
|
/* @__PURE__ */ e.jsx(gt, { children: "Please select an identity for this request." }),
|
|
1000
1029
|
/* @__PURE__ */ e.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ e.jsx(
|
|
1001
1030
|
Rt,
|
|
1002
1031
|
{
|
|
1003
|
-
identities:
|
|
1032
|
+
identities: n,
|
|
1004
1033
|
setValue: i,
|
|
1005
1034
|
value: r
|
|
1006
1035
|
}
|
|
@@ -1012,15 +1041,15 @@ const Rt = ({
|
|
|
1012
1041
|
{
|
|
1013
1042
|
id: "remember",
|
|
1014
1043
|
checked: l,
|
|
1015
|
-
onCheckedChange: (d) =>
|
|
1044
|
+
onCheckedChange: (d) => c(
|
|
1016
1045
|
d === "indeterminate" ? !1 : !!d
|
|
1017
1046
|
)
|
|
1018
1047
|
}
|
|
1019
1048
|
),
|
|
1020
|
-
/* @__PURE__ */ e.jsx(
|
|
1049
|
+
/* @__PURE__ */ e.jsx(_, { htmlFor: "remember", children: "Remember my choice" })
|
|
1021
1050
|
] }),
|
|
1022
1051
|
/* @__PURE__ */ e.jsx(
|
|
1023
|
-
|
|
1052
|
+
A,
|
|
1024
1053
|
{
|
|
1025
1054
|
onClick: () => t({ identity: r, rememberedIdentity: l }),
|
|
1026
1055
|
children: "Send"
|
|
@@ -1028,19 +1057,19 @@ const Rt = ({
|
|
|
1028
1057
|
)
|
|
1029
1058
|
] })
|
|
1030
1059
|
] }) });
|
|
1031
|
-
},
|
|
1060
|
+
}, is = ({
|
|
1032
1061
|
control: t,
|
|
1033
|
-
url:
|
|
1062
|
+
url: n
|
|
1034
1063
|
}) => {
|
|
1035
|
-
const { fields:
|
|
1064
|
+
const { fields: s } = qe({
|
|
1036
1065
|
control: t,
|
|
1037
1066
|
name: "pathParams"
|
|
1038
|
-
}), a = [...
|
|
1039
|
-
(r, i) =>
|
|
1067
|
+
}), a = [...s].sort(
|
|
1068
|
+
(r, i) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${i.name}}`)
|
|
1040
1069
|
);
|
|
1041
|
-
return /* @__PURE__ */ e.jsx(
|
|
1070
|
+
return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(ze, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(He, { children: [
|
|
1042
1071
|
/* @__PURE__ */ e.jsx(
|
|
1043
|
-
|
|
1072
|
+
L,
|
|
1044
1073
|
{
|
|
1045
1074
|
control: t,
|
|
1046
1075
|
name: `pathParams.${i}.name`,
|
|
@@ -1055,12 +1084,12 @@ const Rt = ({
|
|
|
1055
1084
|
}
|
|
1056
1085
|
),
|
|
1057
1086
|
/* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
|
|
1058
|
-
|
|
1087
|
+
L,
|
|
1059
1088
|
{
|
|
1060
1089
|
control: t,
|
|
1061
1090
|
name: `pathParams.${i}.value`,
|
|
1062
1091
|
render: ({ field: l }) => /* @__PURE__ */ e.jsx(
|
|
1063
|
-
|
|
1092
|
+
Ae,
|
|
1064
1093
|
{
|
|
1065
1094
|
...l,
|
|
1066
1095
|
required: !0,
|
|
@@ -1071,25 +1100,25 @@ const Rt = ({
|
|
|
1071
1100
|
}
|
|
1072
1101
|
) })
|
|
1073
1102
|
] }, r.id)) }) });
|
|
1074
|
-
},
|
|
1103
|
+
}, ls = Fe(
|
|
1075
1104
|
"input",
|
|
1076
1105
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
1077
|
-
),
|
|
1106
|
+
), ds = ({
|
|
1078
1107
|
control: t,
|
|
1079
|
-
queryParams:
|
|
1108
|
+
queryParams: n
|
|
1080
1109
|
}) => {
|
|
1081
|
-
const { fields:
|
|
1110
|
+
const { fields: s } = qe({
|
|
1082
1111
|
control: t,
|
|
1083
1112
|
name: "queryParams"
|
|
1084
|
-
}), a =
|
|
1085
|
-
return /* @__PURE__ */ e.jsx(
|
|
1086
|
-
const
|
|
1113
|
+
}), a = Le(), r = n.map((i) => !!i.isRequired);
|
|
1114
|
+
return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(ze, { children: s.map((i, l) => {
|
|
1115
|
+
const c = n.find(
|
|
1087
1116
|
(d) => d.name === a.watch(`queryParams.${l}.name`)
|
|
1088
1117
|
);
|
|
1089
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1118
|
+
return /* @__PURE__ */ e.jsxs(He, { children: [
|
|
1090
1119
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1091
1120
|
/* @__PURE__ */ e.jsx(
|
|
1092
|
-
|
|
1121
|
+
L,
|
|
1093
1122
|
{
|
|
1094
1123
|
control: t,
|
|
1095
1124
|
name: `queryParams.${l}.active`,
|
|
@@ -1105,10 +1134,10 @@ const Rt = ({
|
|
|
1105
1134
|
}
|
|
1106
1135
|
),
|
|
1107
1136
|
/* @__PURE__ */ e.jsx(
|
|
1108
|
-
|
|
1137
|
+
L,
|
|
1109
1138
|
{
|
|
1110
1139
|
control: t,
|
|
1111
|
-
render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(
|
|
1140
|
+
render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(ls, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
1112
1141
|
"label",
|
|
1113
1142
|
{
|
|
1114
1143
|
className: "flex items-center cursor-pointer gap-1",
|
|
@@ -1123,9 +1152,9 @@ const Rt = ({
|
|
|
1123
1152
|
re,
|
|
1124
1153
|
{
|
|
1125
1154
|
value: d.value,
|
|
1126
|
-
options:
|
|
1127
|
-
onChange: (
|
|
1128
|
-
d.onChange(
|
|
1155
|
+
options: n.map((p) => p.name),
|
|
1156
|
+
onChange: (p) => {
|
|
1157
|
+
d.onChange(p);
|
|
1129
1158
|
},
|
|
1130
1159
|
className: "border-0 font-mono text-xs bg-transparent hover:bg-transparent"
|
|
1131
1160
|
}
|
|
@@ -1135,25 +1164,25 @@ const Rt = ({
|
|
|
1135
1164
|
)
|
|
1136
1165
|
] }, i.id),
|
|
1137
1166
|
/* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
|
|
1138
|
-
|
|
1167
|
+
L,
|
|
1139
1168
|
{
|
|
1140
1169
|
control: t,
|
|
1141
|
-
render: ({ field: d }) => (
|
|
1170
|
+
render: ({ field: d }) => (c == null ? void 0 : c.enum) && c.enum.length > 0 ? /* @__PURE__ */ e.jsx(
|
|
1142
1171
|
re,
|
|
1143
1172
|
{
|
|
1144
1173
|
value: d.value,
|
|
1145
|
-
options:
|
|
1146
|
-
onChange: (
|
|
1147
|
-
d.onChange(
|
|
1174
|
+
options: c.enum ?? [],
|
|
1175
|
+
onChange: (f) => {
|
|
1176
|
+
d.onChange(f), a.setValue(`queryParams.${l}.active`, !0);
|
|
1148
1177
|
},
|
|
1149
1178
|
className: "font-mono text-xs border-0 ring-1 ring-ring"
|
|
1150
1179
|
}
|
|
1151
1180
|
) : /* @__PURE__ */ e.jsx(
|
|
1152
|
-
|
|
1181
|
+
Ae,
|
|
1153
1182
|
{
|
|
1154
1183
|
...d,
|
|
1155
|
-
onChange: (
|
|
1156
|
-
d.onChange(
|
|
1184
|
+
onChange: (f) => {
|
|
1185
|
+
d.onChange(f.target.value), f.target.value.length > 0 && a.setValue(`queryParams.${l}.active`, !0);
|
|
1157
1186
|
},
|
|
1158
1187
|
placeholder: "Enter value",
|
|
1159
1188
|
className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
|
|
@@ -1164,33 +1193,33 @@ const Rt = ({
|
|
|
1164
1193
|
) })
|
|
1165
1194
|
] }, i.id);
|
|
1166
1195
|
}) }) }) });
|
|
1167
|
-
},
|
|
1196
|
+
}, cs = xt()(
|
|
1168
1197
|
ft(
|
|
1169
|
-
(t,
|
|
1198
|
+
(t, n) => ({
|
|
1170
1199
|
rememberedIdentity: null,
|
|
1171
|
-
setRememberedIdentity: (
|
|
1172
|
-
getRememberedIdentity: (
|
|
1173
|
-
(a) => a ===
|
|
1200
|
+
setRememberedIdentity: (s) => t({ rememberedIdentity: s }),
|
|
1201
|
+
getRememberedIdentity: (s) => s.find(
|
|
1202
|
+
(a) => a === n().rememberedIdentity
|
|
1174
1203
|
)
|
|
1175
1204
|
}),
|
|
1176
1205
|
{
|
|
1177
1206
|
name: "identity-storage",
|
|
1178
|
-
storage:
|
|
1207
|
+
storage: Zt(() => sessionStorage)
|
|
1179
1208
|
}
|
|
1180
1209
|
)
|
|
1181
|
-
),
|
|
1210
|
+
), ms = ({
|
|
1182
1211
|
open: t,
|
|
1183
|
-
setOpen:
|
|
1184
|
-
onSignUp:
|
|
1212
|
+
setOpen: n,
|
|
1213
|
+
onSignUp: s,
|
|
1185
1214
|
onLogin: a
|
|
1186
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
1187
|
-
/* @__PURE__ */ e.jsx(
|
|
1215
|
+
}) => /* @__PURE__ */ e.jsx(Ie, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(Re, { children: [
|
|
1216
|
+
/* @__PURE__ */ e.jsx(Oe, { children: "Welcome to the Playground!" }),
|
|
1188
1217
|
/* @__PURE__ */ e.jsx(gt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
1189
1218
|
/* @__PURE__ */ e.jsxs(yt, { className: "flex gap-2 sm:justify-between", children: [
|
|
1190
|
-
/* @__PURE__ */ e.jsx(
|
|
1219
|
+
/* @__PURE__ */ e.jsx(A, { type: "button", variant: "ghost", onClick: () => n(!1), children: "Skip" }),
|
|
1191
1220
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
1192
|
-
|
|
1193
|
-
a && /* @__PURE__ */ e.jsx(
|
|
1221
|
+
s && /* @__PURE__ */ e.jsx(A, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
|
|
1222
|
+
a && /* @__PURE__ */ e.jsx(A, { type: "button", variant: "default", onClick: a, children: "Login" })
|
|
1194
1223
|
] })
|
|
1195
1224
|
] })
|
|
1196
1225
|
] }) }), I = {
|
|
@@ -1201,7 +1230,7 @@ const Rt = ({
|
|
|
1201
1230
|
purple: "text-purple-600",
|
|
1202
1231
|
indigo: "text-indigo-600",
|
|
1203
1232
|
gray: "text-gray-600"
|
|
1204
|
-
},
|
|
1233
|
+
}, us = {
|
|
1205
1234
|
get: I.green,
|
|
1206
1235
|
post: I.blue,
|
|
1207
1236
|
put: I.yellow,
|
|
@@ -1210,36 +1239,36 @@ const Rt = ({
|
|
|
1210
1239
|
options: I.indigo,
|
|
1211
1240
|
head: I.gray,
|
|
1212
1241
|
trace: I.gray
|
|
1213
|
-
},
|
|
1242
|
+
}, ps = (t) => us[t.toLocaleLowerCase()] ?? I.gray, hs = ({
|
|
1214
1243
|
method: t,
|
|
1215
|
-
url:
|
|
1216
|
-
headers:
|
|
1244
|
+
url: n,
|
|
1245
|
+
headers: s,
|
|
1217
1246
|
body: a
|
|
1218
1247
|
}) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
|
|
1219
1248
|
/* @__PURE__ */ e.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
|
|
1220
|
-
/* @__PURE__ */ e.jsx("span", { className: u(
|
|
1249
|
+
/* @__PURE__ */ e.jsx("span", { className: u(ps(t), "font-semibold"), children: t }),
|
|
1221
1250
|
" ",
|
|
1222
|
-
/* @__PURE__ */ e.jsx("span", { className: "break-all", children:
|
|
1251
|
+
/* @__PURE__ */ e.jsx("span", { className: "break-all", children: n }),
|
|
1223
1252
|
" ",
|
|
1224
1253
|
/* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
|
|
1225
1254
|
] }),
|
|
1226
1255
|
/* @__PURE__ */ e.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
|
|
1227
|
-
/* @__PURE__ */ e.jsxs(
|
|
1228
|
-
/* @__PURE__ */ e.jsxs(
|
|
1229
|
-
/* @__PURE__ */ e.jsx(
|
|
1256
|
+
/* @__PURE__ */ e.jsxs(at, { defaultOpen: !0, children: [
|
|
1257
|
+
/* @__PURE__ */ e.jsxs(rt, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
1258
|
+
/* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1230
1259
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
|
|
1231
1260
|
] }),
|
|
1232
|
-
/* @__PURE__ */ e.jsx(
|
|
1261
|
+
/* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2", children: s.map(([r, i]) => /* @__PURE__ */ e.jsxs(q, { children: [
|
|
1233
1262
|
/* @__PURE__ */ e.jsx("div", { className: "text-primary", children: r }),
|
|
1234
1263
|
/* @__PURE__ */ e.jsx("div", { className: "break-all", children: i })
|
|
1235
1264
|
] }, r)) }) })
|
|
1236
1265
|
] }),
|
|
1237
|
-
/* @__PURE__ */ e.jsxs(
|
|
1238
|
-
/* @__PURE__ */ e.jsxs(
|
|
1239
|
-
/* @__PURE__ */ e.jsx(
|
|
1266
|
+
/* @__PURE__ */ e.jsxs(at, { defaultOpen: !0, children: [
|
|
1267
|
+
/* @__PURE__ */ e.jsxs(rt, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
1268
|
+
/* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1240
1269
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Body" })
|
|
1241
1270
|
] }),
|
|
1242
|
-
/* @__PURE__ */ e.jsx(
|
|
1271
|
+
/* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
|
|
1243
1272
|
"div",
|
|
1244
1273
|
{
|
|
1245
1274
|
className: u(
|
|
@@ -1251,29 +1280,29 @@ const Rt = ({
|
|
|
1251
1280
|
) }) })
|
|
1252
1281
|
] })
|
|
1253
1282
|
] })
|
|
1254
|
-
] }), lt =
|
|
1255
|
-
function
|
|
1283
|
+
] }), lt = De.Root, dt = De.CollapsibleTrigger, ct = De.CollapsibleContent;
|
|
1284
|
+
function _e(t) {
|
|
1256
1285
|
if (t === null) return "null";
|
|
1257
1286
|
if (Array.isArray(t)) {
|
|
1258
1287
|
if (t.length === 0) return "any[]";
|
|
1259
|
-
const
|
|
1260
|
-
return
|
|
1288
|
+
const n = t[0];
|
|
1289
|
+
return n === void 0 ? "any[]" : `${_e(n)}[]`;
|
|
1261
1290
|
}
|
|
1262
|
-
return typeof t == "object" ?
|
|
1291
|
+
return typeof t == "object" ? xs(t) : typeof t;
|
|
1263
1292
|
}
|
|
1264
|
-
function
|
|
1265
|
-
const
|
|
1293
|
+
function xs(t, n = "") {
|
|
1294
|
+
const s = ["{"];
|
|
1266
1295
|
for (const [a, r] of Object.entries(t)) {
|
|
1267
|
-
const i =
|
|
1268
|
-
|
|
1296
|
+
const i = _e(r);
|
|
1297
|
+
s.push(` ${a}: ${i};`);
|
|
1269
1298
|
}
|
|
1270
|
-
return
|
|
1299
|
+
return s.push("}"), s.join(`
|
|
1271
1300
|
`);
|
|
1272
1301
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return { lines: [`type GeneratedType = ${
|
|
1302
|
+
function fs(t) {
|
|
1303
|
+
return { lines: [`type GeneratedType = ${_e(t)};`] };
|
|
1275
1304
|
}
|
|
1276
|
-
const
|
|
1305
|
+
const gs = {
|
|
1277
1306
|
200: "OK",
|
|
1278
1307
|
201: "Created",
|
|
1279
1308
|
202: "Accepted",
|
|
@@ -1285,13 +1314,13 @@ const gn = {
|
|
|
1285
1314
|
405: "Method Not Allowed",
|
|
1286
1315
|
500: "Internal Server Error"
|
|
1287
1316
|
}, mt = (t) => {
|
|
1288
|
-
const
|
|
1289
|
-
return `${(t / Math.pow(1e3,
|
|
1290
|
-
|
|
1291
|
-
)} ${
|
|
1292
|
-
},
|
|
1293
|
-
var
|
|
1294
|
-
return (
|
|
1317
|
+
const n = Math.floor(Math.log(t) / Math.log(1e3));
|
|
1318
|
+
return `${(t / Math.pow(1e3, n)).toFixed(
|
|
1319
|
+
n ? 2 : 0
|
|
1320
|
+
)} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
|
|
1321
|
+
}, ys = (t) => {
|
|
1322
|
+
var s;
|
|
1323
|
+
return (s = Object.entries({
|
|
1295
1324
|
"application/json": "json",
|
|
1296
1325
|
"text/json": "json",
|
|
1297
1326
|
"text/html": "html",
|
|
@@ -1301,19 +1330,19 @@ const gn = {
|
|
|
1301
1330
|
"application/xhtml+xml": "xhtml"
|
|
1302
1331
|
}).find(
|
|
1303
1332
|
([a]) => t.includes(a)
|
|
1304
|
-
)) == null ? void 0 :
|
|
1305
|
-
},
|
|
1306
|
-
var
|
|
1307
|
-
const
|
|
1308
|
-
return
|
|
1309
|
-
},
|
|
1333
|
+
)) == null ? void 0 : s[1];
|
|
1334
|
+
}, vs = (t) => {
|
|
1335
|
+
var s;
|
|
1336
|
+
const n = ((s = t.find(([a, r]) => a === "Content-Type")) == null ? void 0 : s[1]) || "";
|
|
1337
|
+
return ys(n);
|
|
1338
|
+
}, js = (t) => {
|
|
1310
1339
|
try {
|
|
1311
1340
|
return JSON.stringify(JSON.parse(t), null, 2);
|
|
1312
1341
|
} catch {
|
|
1313
1342
|
return null;
|
|
1314
1343
|
}
|
|
1315
|
-
},
|
|
1316
|
-
const
|
|
1344
|
+
}, bs = (t) => {
|
|
1345
|
+
const n = [
|
|
1317
1346
|
"Content-Type",
|
|
1318
1347
|
"Content-Length",
|
|
1319
1348
|
"Authorization",
|
|
@@ -1321,67 +1350,67 @@ const gn = {
|
|
|
1321
1350
|
"X-RateLimit-Limit",
|
|
1322
1351
|
"Cache-Control",
|
|
1323
1352
|
"ETag"
|
|
1324
|
-
].map((
|
|
1325
|
-
return [...t].sort(([
|
|
1326
|
-
const r =
|
|
1353
|
+
].map((s) => s.toLowerCase());
|
|
1354
|
+
return [...t].sort(([s], [a]) => {
|
|
1355
|
+
const r = n.indexOf(s.toLowerCase()), i = n.indexOf(a.toLowerCase());
|
|
1327
1356
|
return r === i ? 0 : r === -1 ? 1 : i === -1 ? -1 : r - i;
|
|
1328
1357
|
});
|
|
1329
|
-
}, ut = 64e3,
|
|
1358
|
+
}, ut = 64e3, Ns = ({
|
|
1330
1359
|
body: t = "",
|
|
1331
|
-
headers:
|
|
1332
|
-
status:
|
|
1360
|
+
headers: n,
|
|
1361
|
+
status: s,
|
|
1333
1362
|
time: a,
|
|
1334
1363
|
size: r,
|
|
1335
1364
|
url: i
|
|
1336
1365
|
}) => {
|
|
1337
|
-
var
|
|
1338
|
-
const l =
|
|
1339
|
-
|
|
1340
|
-
), w =
|
|
1366
|
+
var g;
|
|
1367
|
+
const l = vs(n), c = js(t), d = c || t, [p, f] = k(
|
|
1368
|
+
c ? "formatted" : "raw"
|
|
1369
|
+
), w = Xt({
|
|
1341
1370
|
queryKey: ["types", d],
|
|
1342
|
-
queryFn: async () =>
|
|
1343
|
-
enabled:
|
|
1344
|
-
}),
|
|
1371
|
+
queryFn: async () => fs(JSON.parse(d)),
|
|
1372
|
+
enabled: p === "types"
|
|
1373
|
+
}), j = bs([...n]), h = r > ut;
|
|
1345
1374
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
|
|
1346
1375
|
/* @__PURE__ */ e.jsxs(lt, { defaultOpen: !0, children: [
|
|
1347
1376
|
/* @__PURE__ */ e.jsxs(dt, { className: "flex items-center gap-2 hover:text-primary group", children: [
|
|
1348
|
-
/* @__PURE__ */ e.jsx(
|
|
1377
|
+
/* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1349
1378
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
|
|
1350
1379
|
] }),
|
|
1351
1380
|
/* @__PURE__ */ e.jsx(ct, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
|
|
1352
|
-
|
|
1353
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children:
|
|
1354
|
-
/* @__PURE__ */ e.jsx("div", { className: "break-all", children:
|
|
1355
|
-
] },
|
|
1356
|
-
|
|
1381
|
+
j.slice(0, 5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
|
|
1382
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
|
|
1383
|
+
/* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
|
|
1384
|
+
] }, m)),
|
|
1385
|
+
j.length > 5 && /* @__PURE__ */ e.jsxs(lt, { className: "col-span-full grid-cols-subgrid grid", children: [
|
|
1357
1386
|
/* @__PURE__ */ e.jsxs(dt, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
|
|
1358
|
-
/* @__PURE__ */ e.jsx(
|
|
1387
|
+
/* @__PURE__ */ e.jsx(Q, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
|
|
1359
1388
|
"Show ",
|
|
1360
|
-
|
|
1389
|
+
j.length - 5,
|
|
1361
1390
|
" more headers"
|
|
1362
1391
|
] }),
|
|
1363
|
-
/* @__PURE__ */ e.jsx(ct, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children:
|
|
1364
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children:
|
|
1365
|
-
/* @__PURE__ */ e.jsx("div", { className: "break-all", children:
|
|
1366
|
-
] },
|
|
1392
|
+
/* @__PURE__ */ e.jsx(ct, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: j.slice(5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
|
|
1393
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
|
|
1394
|
+
/* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
|
|
1395
|
+
] }, m)) })
|
|
1367
1396
|
] })
|
|
1368
1397
|
] }) })
|
|
1369
1398
|
] }),
|
|
1370
1399
|
/* @__PURE__ */ e.jsxs(wt, { className: "shadow-none", children: [
|
|
1371
|
-
|
|
1400
|
+
h && /* @__PURE__ */ e.jsxs(vn, { type: "info", className: "my-0 p-2", children: [
|
|
1372
1401
|
"Code highlight is disabled for responses larger than",
|
|
1373
1402
|
" ",
|
|
1374
1403
|
mt(ut)
|
|
1375
1404
|
] }),
|
|
1376
1405
|
/* @__PURE__ */ e.jsx(
|
|
1377
|
-
|
|
1406
|
+
Tn,
|
|
1378
1407
|
{
|
|
1379
|
-
language:
|
|
1408
|
+
language: p === "types" ? "typescript" : p === "raw" ? c ? "plain" : l : "json",
|
|
1380
1409
|
showCopy: "always",
|
|
1381
|
-
disabled:
|
|
1410
|
+
disabled: h,
|
|
1382
1411
|
noBackground: !0,
|
|
1383
1412
|
className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
|
|
1384
|
-
code: (
|
|
1413
|
+
code: (p === "raw" ? t : p === "types" ? (g = w.data) == null ? void 0 : g.lines.join(`
|
|
1385
1414
|
`) : d) ?? ""
|
|
1386
1415
|
}
|
|
1387
1416
|
)
|
|
@@ -1391,9 +1420,9 @@ const gn = {
|
|
|
1391
1420
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1392
1421
|
/* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Status" }),
|
|
1393
1422
|
" ",
|
|
1394
|
-
|
|
1423
|
+
s,
|
|
1395
1424
|
" ",
|
|
1396
|
-
|
|
1425
|
+
gs[s] ?? ""
|
|
1397
1426
|
] }),
|
|
1398
1427
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1399
1428
|
/* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
@@ -1407,36 +1436,36 @@ const gn = {
|
|
|
1407
1436
|
mt(r)
|
|
1408
1437
|
] })
|
|
1409
1438
|
] }),
|
|
1410
|
-
|
|
1411
|
-
|
|
1439
|
+
c && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
1440
|
+
je,
|
|
1412
1441
|
{
|
|
1413
|
-
value:
|
|
1414
|
-
onValueChange: (
|
|
1442
|
+
value: p,
|
|
1443
|
+
onValueChange: (m) => f(m),
|
|
1415
1444
|
children: [
|
|
1416
|
-
/* @__PURE__ */ e.jsx(
|
|
1417
|
-
/* @__PURE__ */ e.jsxs(
|
|
1418
|
-
/* @__PURE__ */ e.jsx(
|
|
1419
|
-
/* @__PURE__ */ e.jsx(
|
|
1420
|
-
/* @__PURE__ */ e.jsx(
|
|
1445
|
+
/* @__PURE__ */ e.jsx(be, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(Ne, { placeholder: "View" }) }),
|
|
1446
|
+
/* @__PURE__ */ e.jsxs(we, { children: [
|
|
1447
|
+
/* @__PURE__ */ e.jsx(U, { value: "formatted", children: "Formatted" }),
|
|
1448
|
+
/* @__PURE__ */ e.jsx(U, { value: "raw", children: "Raw" }),
|
|
1449
|
+
/* @__PURE__ */ e.jsx(U, { value: "types", children: "Types" })
|
|
1421
1450
|
] })
|
|
1422
1451
|
]
|
|
1423
1452
|
}
|
|
1424
1453
|
) })
|
|
1425
1454
|
] })
|
|
1426
1455
|
] });
|
|
1427
|
-
},
|
|
1456
|
+
}, ws = ({
|
|
1428
1457
|
queryMutation: t,
|
|
1429
|
-
showPathParamsWarning:
|
|
1430
|
-
showLongRunningWarning:
|
|
1458
|
+
showPathParamsWarning: n,
|
|
1459
|
+
showLongRunningWarning: s,
|
|
1431
1460
|
onCancel: a
|
|
1432
1461
|
}) => {
|
|
1433
1462
|
var i;
|
|
1434
1463
|
const r = ((((i = t.data) == null ? void 0 : i.status) ?? 0) / 100).toFixed(0);
|
|
1435
1464
|
return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1436
|
-
|
|
1465
|
+
n && /* @__PURE__ */ e.jsx(Nn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
|
|
1437
1466
|
/* @__PURE__ */ e.jsxs(wt, { children: [
|
|
1438
|
-
/* @__PURE__ */ e.jsx(
|
|
1439
|
-
/* @__PURE__ */ e.jsxs(
|
|
1467
|
+
/* @__PURE__ */ e.jsx(wn, { children: /* @__PURE__ */ e.jsx(Cn, { children: "Request failed" }) }),
|
|
1468
|
+
/* @__PURE__ */ e.jsxs(Sn, { children: [
|
|
1440
1469
|
"Error:",
|
|
1441
1470
|
" ",
|
|
1442
1471
|
t.error.message || String(t.error) || "Unexpected error"
|
|
@@ -1444,8 +1473,8 @@ const gn = {
|
|
|
1444
1473
|
] })
|
|
1445
1474
|
] }) : t.data ? /* @__PURE__ */ e.jsxs(jt, { defaultValue: "response", children: [
|
|
1446
1475
|
/* @__PURE__ */ e.jsxs(bt, { children: [
|
|
1447
|
-
/* @__PURE__ */ e.jsx(
|
|
1448
|
-
/* @__PURE__ */ e.jsxs(
|
|
1476
|
+
/* @__PURE__ */ e.jsx(H, { value: "request", children: "Request" }),
|
|
1477
|
+
/* @__PURE__ */ e.jsxs(H, { value: "response", children: [
|
|
1449
1478
|
"Response",
|
|
1450
1479
|
/* @__PURE__ */ e.jsxs(
|
|
1451
1480
|
"span",
|
|
@@ -1466,9 +1495,9 @@ const gn = {
|
|
|
1466
1495
|
)
|
|
1467
1496
|
] })
|
|
1468
1497
|
] }),
|
|
1469
|
-
/* @__PURE__ */ e.jsx(
|
|
1470
|
-
/* @__PURE__ */ e.jsx(
|
|
1471
|
-
|
|
1498
|
+
/* @__PURE__ */ e.jsx(M, { value: "request", children: /* @__PURE__ */ e.jsx(hs, { ...t.data.request }) }),
|
|
1499
|
+
/* @__PURE__ */ e.jsx(M, { value: "response", children: /* @__PURE__ */ e.jsx(
|
|
1500
|
+
Ns,
|
|
1472
1501
|
{
|
|
1473
1502
|
status: t.data.status,
|
|
1474
1503
|
time: t.data.time,
|
|
@@ -1479,18 +1508,18 @@ const gn = {
|
|
|
1479
1508
|
}
|
|
1480
1509
|
) })
|
|
1481
1510
|
] }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: t.isPending ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
1482
|
-
/* @__PURE__ */ e.jsx(
|
|
1511
|
+
/* @__PURE__ */ e.jsx(bn, { size: 20 }),
|
|
1483
1512
|
/* @__PURE__ */ e.jsxs(
|
|
1484
1513
|
"div",
|
|
1485
1514
|
{
|
|
1486
1515
|
className: u(
|
|
1487
1516
|
"opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
|
|
1488
|
-
|
|
1517
|
+
s && "opacity-100 pointer-events-auto"
|
|
1489
1518
|
),
|
|
1490
1519
|
children: [
|
|
1491
1520
|
"Looks like the request is taking longer than expected.",
|
|
1492
1521
|
/* @__PURE__ */ e.jsx(
|
|
1493
|
-
|
|
1522
|
+
W,
|
|
1494
1523
|
{
|
|
1495
1524
|
type: "button",
|
|
1496
1525
|
onClick: a,
|
|
@@ -1504,42 +1533,42 @@ const gn = {
|
|
|
1504
1533
|
}
|
|
1505
1534
|
)
|
|
1506
1535
|
] }) : /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
|
|
1507
|
-
},
|
|
1536
|
+
}, Cs = ({
|
|
1508
1537
|
identities: t,
|
|
1509
|
-
formRef:
|
|
1510
|
-
disabled:
|
|
1538
|
+
formRef: n,
|
|
1539
|
+
disabled: s
|
|
1511
1540
|
}) => {
|
|
1512
|
-
const { setValue: a } =
|
|
1513
|
-
return t.length === 0 ? /* @__PURE__ */ e.jsx(
|
|
1541
|
+
const { setValue: a } = Le(), [r, i] = k();
|
|
1542
|
+
return t.length === 0 ? /* @__PURE__ */ e.jsx(A, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
|
|
1514
1543
|
/* @__PURE__ */ e.jsx(
|
|
1515
|
-
|
|
1544
|
+
A,
|
|
1516
1545
|
{
|
|
1517
1546
|
className: "rounded-r-none inset-shadow-sm",
|
|
1518
|
-
disabled:
|
|
1547
|
+
disabled: s,
|
|
1519
1548
|
onClick: () => {
|
|
1520
1549
|
var l;
|
|
1521
|
-
return (l =
|
|
1550
|
+
return (l = n == null ? void 0 : n.current) == null ? void 0 : l.requestSubmit();
|
|
1522
1551
|
},
|
|
1523
1552
|
children: "Send"
|
|
1524
1553
|
}
|
|
1525
1554
|
),
|
|
1526
1555
|
/* @__PURE__ */ e.jsxs(Tt, { children: [
|
|
1527
1556
|
/* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
1528
|
-
|
|
1557
|
+
A,
|
|
1529
1558
|
{
|
|
1530
|
-
disabled:
|
|
1559
|
+
disabled: s,
|
|
1531
1560
|
className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
|
|
1532
1561
|
size: "icon",
|
|
1533
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1562
|
+
children: /* @__PURE__ */ e.jsx(Jt, { className: "w-4 h-4" })
|
|
1534
1563
|
}
|
|
1535
1564
|
) }),
|
|
1536
|
-
/* @__PURE__ */ e.jsx(Me, { value: r, children: /* @__PURE__ */ e.jsx(Ee, { className: "w-56", align: "end", alignOffset: -150, children: [{ id:
|
|
1565
|
+
/* @__PURE__ */ e.jsx(Me, { value: r, children: /* @__PURE__ */ e.jsx(Ee, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: B, label: "None" }, ...t].map(
|
|
1537
1566
|
(l) => /* @__PURE__ */ e.jsxs(
|
|
1538
|
-
|
|
1567
|
+
Ve,
|
|
1539
1568
|
{
|
|
1540
1569
|
onClick: () => {
|
|
1541
|
-
var
|
|
1542
|
-
i(l.id), a("identity", l.id), (
|
|
1570
|
+
var c;
|
|
1571
|
+
i(l.id), a("identity", l.id), (c = n == null ? void 0 : n.current) == null || c.requestSubmit();
|
|
1543
1572
|
},
|
|
1544
1573
|
onMouseEnter: () => i(l.id),
|
|
1545
1574
|
onMouseLeave: () => i(void 0),
|
|
@@ -1553,32 +1582,32 @@ const gn = {
|
|
|
1553
1582
|
) }) })
|
|
1554
1583
|
] })
|
|
1555
1584
|
] });
|
|
1556
|
-
},
|
|
1585
|
+
}, B = "__none", ve = {
|
|
1557
1586
|
Plain: "text/plain",
|
|
1558
1587
|
JSON: "application/json",
|
|
1559
1588
|
XML: "application/xml",
|
|
1560
1589
|
YAML: "application/yaml",
|
|
1561
1590
|
CSV: "text/csv"
|
|
1562
|
-
},
|
|
1591
|
+
}, Ss = ({
|
|
1563
1592
|
server: t,
|
|
1564
|
-
servers:
|
|
1565
|
-
url:
|
|
1593
|
+
servers: n = [],
|
|
1594
|
+
url: s,
|
|
1566
1595
|
method: a,
|
|
1567
1596
|
headers: r = [],
|
|
1568
1597
|
queryParams: i = [],
|
|
1569
1598
|
pathParams: l = [],
|
|
1570
|
-
defaultBody:
|
|
1599
|
+
defaultBody: c = "",
|
|
1571
1600
|
examples: d,
|
|
1572
|
-
requiresLogin:
|
|
1573
|
-
onLogin:
|
|
1601
|
+
requiresLogin: p = !1,
|
|
1602
|
+
onLogin: f,
|
|
1574
1603
|
onSignUp: w
|
|
1575
1604
|
}) => {
|
|
1576
|
-
var
|
|
1577
|
-
const { selectedServer:
|
|
1578
|
-
|
|
1579
|
-
), [
|
|
1605
|
+
var Ze, Xe;
|
|
1606
|
+
const { selectedServer: j, setSelectedServer: h } = Mn(
|
|
1607
|
+
n.map((o) => ({ url: o }))
|
|
1608
|
+
), [g, m] = k(!1), y = Kt(), { setRememberedIdentity: x, getRememberedIdentity: T } = cs(), [, $] = an(), [ce, K] = k(!1), [Y, D] = k(!1), ee = G(void 0), Be = mn(x), { register: Ge, control: te, handleSubmit: Je, watch: Ue, setValue: V, ...me } = ln({
|
|
1580
1609
|
defaultValues: {
|
|
1581
|
-
body:
|
|
1610
|
+
body: c,
|
|
1582
1611
|
bodyContentType: "JSON",
|
|
1583
1612
|
queryParams: i.map((o) => ({
|
|
1584
1613
|
name: o.name,
|
|
@@ -1608,33 +1637,33 @@ const gn = {
|
|
|
1608
1637
|
active: !1
|
|
1609
1638
|
}
|
|
1610
1639
|
]),
|
|
1611
|
-
identity:
|
|
1612
|
-
((
|
|
1640
|
+
identity: T(
|
|
1641
|
+
((Ze = y.data) == null ? void 0 : Ze.map((o) => o.id)) ?? []
|
|
1613
1642
|
)
|
|
1614
1643
|
}
|
|
1615
|
-
}), C =
|
|
1616
|
-
|
|
1644
|
+
}), C = Ue(), Qe = G(null);
|
|
1645
|
+
se(() => {
|
|
1617
1646
|
C.identity && Be.current(C.identity);
|
|
1618
1647
|
}, [Be, C.identity]);
|
|
1619
|
-
const
|
|
1648
|
+
const ue = on({
|
|
1620
1649
|
mutationFn: async (o) => {
|
|
1621
|
-
var
|
|
1622
|
-
const S = performance.now(),
|
|
1650
|
+
var Ke, Ye;
|
|
1651
|
+
const S = performance.now(), O = !o.headers.some(
|
|
1623
1652
|
(N) => N.active && N.name.toLowerCase() === "content-type"
|
|
1624
|
-
),
|
|
1653
|
+
), F = Object.fromEntries([
|
|
1625
1654
|
...o.headers.filter((N) => N.name && N.active).map((N) => [N.name, N.value]),
|
|
1626
|
-
...
|
|
1655
|
+
...O ? [["content-type", ve[o.bodyContentType]]] : []
|
|
1627
1656
|
]), P = new Request(
|
|
1628
|
-
|
|
1657
|
+
_n(t ?? j, s, o),
|
|
1629
1658
|
{
|
|
1630
1659
|
method: a.toUpperCase(),
|
|
1631
|
-
headers:
|
|
1660
|
+
headers: F,
|
|
1632
1661
|
body: o.body ? o.body : void 0
|
|
1633
1662
|
}
|
|
1634
1663
|
);
|
|
1635
|
-
o.identity !==
|
|
1636
|
-
const
|
|
1637
|
-
() =>
|
|
1664
|
+
o.identity !== B && await ((Ye = (Ke = y.data) == null ? void 0 : Ke.find((N) => N.id === o.identity)) == null ? void 0 : Ye.authorizeRequest(P));
|
|
1665
|
+
const z = setTimeout(
|
|
1666
|
+
() => D(!0),
|
|
1638
1667
|
3210
|
|
1639
1668
|
);
|
|
1640
1669
|
ee.current = new AbortController();
|
|
@@ -1642,19 +1671,19 @@ const gn = {
|
|
|
1642
1671
|
const N = await fetch(P, {
|
|
1643
1672
|
signal: ee.current.signal
|
|
1644
1673
|
});
|
|
1645
|
-
clearTimeout(
|
|
1646
|
-
const Dt = performance.now() - S,
|
|
1674
|
+
clearTimeout(z), D(!1);
|
|
1675
|
+
const Dt = performance.now() - S, et = await N.text(), Et = new URL(P.url);
|
|
1647
1676
|
return {
|
|
1648
1677
|
status: N.status,
|
|
1649
1678
|
headers: Array.from(N.headers.entries()),
|
|
1650
|
-
size:
|
|
1651
|
-
body:
|
|
1679
|
+
size: et.length,
|
|
1680
|
+
body: et,
|
|
1652
1681
|
time: Dt,
|
|
1653
1682
|
request: {
|
|
1654
1683
|
method: P.method.toUpperCase(),
|
|
1655
1684
|
url: P.url,
|
|
1656
1685
|
headers: [
|
|
1657
|
-
["Host",
|
|
1686
|
+
["Host", Et.host],
|
|
1658
1687
|
["User-Agent", "Zudoku Playground"],
|
|
1659
1688
|
...Array.from(P.headers.entries())
|
|
1660
1689
|
],
|
|
@@ -1662,24 +1691,24 @@ const gn = {
|
|
|
1662
1691
|
}
|
|
1663
1692
|
};
|
|
1664
1693
|
} catch (N) {
|
|
1665
|
-
throw clearTimeout(
|
|
1694
|
+
throw clearTimeout(z), D(!1), N instanceof TypeError ? new Error(
|
|
1666
1695
|
"The request failed, possibly due to network issues or CORS policy."
|
|
1667
1696
|
) : N;
|
|
1668
1697
|
}
|
|
1669
1698
|
}
|
|
1670
1699
|
});
|
|
1671
|
-
|
|
1700
|
+
se(() => () => {
|
|
1672
1701
|
var o;
|
|
1673
1702
|
(o = ee.current) == null || o.abort();
|
|
1674
1703
|
}, []);
|
|
1675
|
-
const
|
|
1676
|
-
|
|
1704
|
+
const qt = /* @__PURE__ */ e.jsx(
|
|
1705
|
+
Fn,
|
|
1677
1706
|
{
|
|
1678
|
-
path:
|
|
1679
|
-
renderParam: ({ name: o, originalValue: S, index:
|
|
1707
|
+
path: s,
|
|
1708
|
+
renderParam: ({ name: o, originalValue: S, index: O }) => {
|
|
1680
1709
|
var P;
|
|
1681
|
-
const
|
|
1682
|
-
(
|
|
1710
|
+
const F = (P = C.pathParams.find(
|
|
1711
|
+
(z) => z.name === o
|
|
1683
1712
|
)) == null ? void 0 : P.value;
|
|
1684
1713
|
return /* @__PURE__ */ e.jsx(
|
|
1685
1714
|
St,
|
|
@@ -1687,71 +1716,71 @@ const gn = {
|
|
|
1687
1716
|
name: o,
|
|
1688
1717
|
backgroundOpacity: "0",
|
|
1689
1718
|
slug: o,
|
|
1690
|
-
onClick: () =>
|
|
1691
|
-
children:
|
|
1719
|
+
onClick: () => me.setFocus(`pathParams.${O}.value`),
|
|
1720
|
+
children: F || S
|
|
1692
1721
|
}
|
|
1693
1722
|
);
|
|
1694
1723
|
}
|
|
1695
1724
|
}
|
|
1696
|
-
),
|
|
1725
|
+
), We = C.queryParams.filter((o) => o.active).map((o, S, O) => /* @__PURE__ */ e.jsxs(q, { children: [
|
|
1697
1726
|
o.name,
|
|
1698
1727
|
"=",
|
|
1699
1728
|
encodeURIComponent(o.value).replaceAll("%20", "+"),
|
|
1700
|
-
S <
|
|
1729
|
+
S < O.length - 1 && "&",
|
|
1701
1730
|
/* @__PURE__ */ e.jsx("wbr", {})
|
|
1702
|
-
] }, o.name)),
|
|
1703
|
-
|
|
1731
|
+
] }, o.name)), Lt = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ e.jsxs(
|
|
1732
|
+
je,
|
|
1704
1733
|
{
|
|
1705
1734
|
onValueChange: (o) => {
|
|
1706
|
-
|
|
1735
|
+
$(() => h(o));
|
|
1707
1736
|
},
|
|
1708
|
-
value:
|
|
1709
|
-
defaultValue:
|
|
1737
|
+
value: j,
|
|
1738
|
+
defaultValue: j,
|
|
1710
1739
|
children: [
|
|
1711
|
-
/* @__PURE__ */ e.jsx(
|
|
1712
|
-
/* @__PURE__ */ e.jsx(
|
|
1740
|
+
/* @__PURE__ */ e.jsx(be, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
|
|
1741
|
+
/* @__PURE__ */ e.jsx(we, { children: n.map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
|
|
1713
1742
|
]
|
|
1714
1743
|
}
|
|
1715
|
-
) }),
|
|
1744
|
+
) }), At = p && !ce, ne = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
1716
1745
|
a.toUpperCase()
|
|
1717
1746
|
);
|
|
1718
1747
|
return /* @__PURE__ */ e.jsx(
|
|
1719
|
-
|
|
1748
|
+
dn,
|
|
1720
1749
|
{
|
|
1721
|
-
register:
|
|
1750
|
+
register: Ge,
|
|
1722
1751
|
control: te,
|
|
1723
1752
|
handleSubmit: Je,
|
|
1724
|
-
watch:
|
|
1725
|
-
setValue:
|
|
1726
|
-
...
|
|
1753
|
+
watch: Ue,
|
|
1754
|
+
setValue: V,
|
|
1755
|
+
...me,
|
|
1727
1756
|
children: /* @__PURE__ */ e.jsxs(
|
|
1728
1757
|
"form",
|
|
1729
1758
|
{
|
|
1730
1759
|
onSubmit: Je((o) => {
|
|
1731
1760
|
var S;
|
|
1732
|
-
((S =
|
|
1761
|
+
((S = y.data) == null ? void 0 : S.length) === 0 || o.identity ? ue.mutate(o) : m(!0);
|
|
1733
1762
|
}),
|
|
1734
|
-
ref:
|
|
1763
|
+
ref: Qe,
|
|
1735
1764
|
className: "relative",
|
|
1736
1765
|
children: [
|
|
1737
1766
|
/* @__PURE__ */ e.jsx(
|
|
1738
|
-
|
|
1767
|
+
os,
|
|
1739
1768
|
{
|
|
1740
|
-
identities:
|
|
1741
|
-
open:
|
|
1742
|
-
onOpenChange:
|
|
1769
|
+
identities: y.data ?? [],
|
|
1770
|
+
open: g,
|
|
1771
|
+
onOpenChange: m,
|
|
1743
1772
|
onSubmit: ({ rememberedIdentity: o, identity: S }) => {
|
|
1744
|
-
o &&
|
|
1773
|
+
o && V("identity", S ?? B), m(!1), ue.mutate({ ...C, identity: S });
|
|
1745
1774
|
}
|
|
1746
1775
|
}
|
|
1747
1776
|
),
|
|
1748
1777
|
/* @__PURE__ */ e.jsx(
|
|
1749
|
-
|
|
1778
|
+
ms,
|
|
1750
1779
|
{
|
|
1751
|
-
open:
|
|
1780
|
+
open: At,
|
|
1752
1781
|
setOpen: (o) => K(!o),
|
|
1753
1782
|
onSignUp: w,
|
|
1754
|
-
onLogin:
|
|
1783
|
+
onLogin: f
|
|
1755
1784
|
}
|
|
1756
1785
|
),
|
|
1757
1786
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
|
|
@@ -1760,135 +1789,135 @@ const gn = {
|
|
|
1760
1789
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
|
|
1761
1790
|
/* @__PURE__ */ e.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
|
|
1762
1791
|
/* @__PURE__ */ e.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
|
|
1763
|
-
At,
|
|
1764
1792
|
Lt,
|
|
1765
|
-
|
|
1766
|
-
|
|
1793
|
+
qt,
|
|
1794
|
+
We.length > 0 ? "?" : "",
|
|
1795
|
+
We
|
|
1767
1796
|
] })
|
|
1768
1797
|
] }),
|
|
1769
1798
|
/* @__PURE__ */ e.jsx(
|
|
1770
|
-
|
|
1799
|
+
Cs,
|
|
1771
1800
|
{
|
|
1772
|
-
identities:
|
|
1773
|
-
formRef:
|
|
1774
|
-
disabled:
|
|
1801
|
+
identities: y.data ?? [],
|
|
1802
|
+
formRef: Qe,
|
|
1803
|
+
disabled: y.isLoading || me.formState.isSubmitting
|
|
1775
1804
|
}
|
|
1776
1805
|
)
|
|
1777
1806
|
] }),
|
|
1778
1807
|
/* @__PURE__ */ e.jsxs(jt, { defaultValue: "parameters", children: [
|
|
1779
1808
|
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(bt, { children: [
|
|
1780
|
-
/* @__PURE__ */ e.jsxs(
|
|
1809
|
+
/* @__PURE__ */ e.jsxs(H, { value: "parameters", children: [
|
|
1781
1810
|
"Parameters",
|
|
1782
1811
|
(C.pathParams.some((o) => o.value !== "") || C.queryParams.some((o) => o.active)) && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1783
1812
|
] }),
|
|
1784
|
-
/* @__PURE__ */ e.jsxs(
|
|
1813
|
+
/* @__PURE__ */ e.jsxs(H, { value: "headers", children: [
|
|
1785
1814
|
"Headers",
|
|
1786
1815
|
C.headers.filter((o) => o.active).length > 0 && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1787
1816
|
] }),
|
|
1788
|
-
/* @__PURE__ */ e.jsxs(
|
|
1817
|
+
/* @__PURE__ */ e.jsxs(H, { value: "auth", children: [
|
|
1789
1818
|
"Auth",
|
|
1790
|
-
C.identity !==
|
|
1819
|
+
C.identity !== B && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1791
1820
|
] }),
|
|
1792
|
-
/* @__PURE__ */ e.jsxs(
|
|
1821
|
+
/* @__PURE__ */ e.jsxs(H, { value: "body", children: [
|
|
1793
1822
|
"Body",
|
|
1794
1823
|
C.body && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
|
|
1795
1824
|
] })
|
|
1796
1825
|
] }) }),
|
|
1797
|
-
/* @__PURE__ */ e.jsx(
|
|
1798
|
-
/* @__PURE__ */ e.jsxs(
|
|
1826
|
+
/* @__PURE__ */ e.jsx(M, { value: "headers", children: /* @__PURE__ */ e.jsx(as, { control: te, headers: r }) }),
|
|
1827
|
+
/* @__PURE__ */ e.jsxs(M, { value: "parameters", children: [
|
|
1799
1828
|
l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1800
1829
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
1801
|
-
/* @__PURE__ */ e.jsx(
|
|
1830
|
+
/* @__PURE__ */ e.jsx(is, { url: s, control: te })
|
|
1802
1831
|
] }),
|
|
1803
1832
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1804
1833
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
1805
|
-
/* @__PURE__ */ e.jsx(
|
|
1834
|
+
/* @__PURE__ */ e.jsx(ds, { control: te, queryParams: i })
|
|
1806
1835
|
] })
|
|
1807
1836
|
] }),
|
|
1808
|
-
/* @__PURE__ */ e.jsxs(
|
|
1837
|
+
/* @__PURE__ */ e.jsxs(M, { value: "body", children: [
|
|
1809
1838
|
!["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
1810
1839
|
a.toUpperCase()
|
|
1811
|
-
) && /* @__PURE__ */ e.jsxs(
|
|
1812
|
-
/* @__PURE__ */ e.jsx(
|
|
1813
|
-
/* @__PURE__ */ e.jsx(
|
|
1814
|
-
/* @__PURE__ */ e.jsx(
|
|
1840
|
+
) && /* @__PURE__ */ e.jsxs(Se, { className: "mb-2", children: [
|
|
1841
|
+
/* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
|
|
1842
|
+
/* @__PURE__ */ e.jsx(Te, { children: "Body" }),
|
|
1843
|
+
/* @__PURE__ */ e.jsx($e, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
|
|
1815
1844
|
] }),
|
|
1816
1845
|
/* @__PURE__ */ e.jsx(
|
|
1817
1846
|
Ct,
|
|
1818
1847
|
{
|
|
1819
|
-
...
|
|
1848
|
+
...Ge("body"),
|
|
1820
1849
|
className: u(
|
|
1821
1850
|
"border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
|
|
1822
|
-
!
|
|
1851
|
+
!ne && "h-20 bg-muted"
|
|
1823
1852
|
),
|
|
1824
|
-
placeholder:
|
|
1825
|
-
disabled: !
|
|
1853
|
+
placeholder: ne ? void 0 : "This request does not support a body",
|
|
1854
|
+
disabled: !ne
|
|
1826
1855
|
}
|
|
1827
1856
|
),
|
|
1828
|
-
|
|
1857
|
+
ne && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
|
|
1829
1858
|
/* @__PURE__ */ e.jsxs(
|
|
1830
|
-
|
|
1859
|
+
je,
|
|
1831
1860
|
{
|
|
1832
1861
|
value: C.bodyContentType,
|
|
1833
|
-
onValueChange: (o) =>
|
|
1862
|
+
onValueChange: (o) => V(
|
|
1834
1863
|
"bodyContentType",
|
|
1835
1864
|
o
|
|
1836
1865
|
),
|
|
1837
1866
|
children: [
|
|
1838
|
-
/* @__PURE__ */ e.jsx(
|
|
1839
|
-
/* @__PURE__ */ e.jsx(
|
|
1867
|
+
/* @__PURE__ */ e.jsx(be, { className: "w-[100px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
|
|
1868
|
+
/* @__PURE__ */ e.jsx(we, { children: Object.keys(ve).map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o }, o)) })
|
|
1840
1869
|
]
|
|
1841
1870
|
}
|
|
1842
1871
|
),
|
|
1843
1872
|
d && d.length > 0 && /* @__PURE__ */ e.jsx(
|
|
1844
|
-
|
|
1873
|
+
Wn,
|
|
1845
1874
|
{
|
|
1846
1875
|
examples: d,
|
|
1847
1876
|
onSelect: (o, S) => {
|
|
1848
|
-
var
|
|
1849
|
-
|
|
1877
|
+
var F;
|
|
1878
|
+
V(
|
|
1850
1879
|
"body",
|
|
1851
1880
|
JSON.stringify(o.value, null, 2)
|
|
1852
1881
|
);
|
|
1853
|
-
const
|
|
1854
|
-
([P,
|
|
1855
|
-
)) == null ? void 0 :
|
|
1856
|
-
|
|
1882
|
+
const O = (F = cn(ve).find(
|
|
1883
|
+
([P, z]) => z === S
|
|
1884
|
+
)) == null ? void 0 : F[0];
|
|
1885
|
+
O && V("bodyContentType", O);
|
|
1857
1886
|
}
|
|
1858
1887
|
}
|
|
1859
1888
|
)
|
|
1860
1889
|
] })
|
|
1861
1890
|
] }),
|
|
1862
|
-
/* @__PURE__ */ e.jsx(
|
|
1863
|
-
((
|
|
1864
|
-
/* @__PURE__ */ e.jsx(
|
|
1865
|
-
/* @__PURE__ */ e.jsx(
|
|
1866
|
-
/* @__PURE__ */ e.jsx(
|
|
1891
|
+
/* @__PURE__ */ e.jsx(M, { value: "auth", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1892
|
+
((Xe = y.data) == null ? void 0 : Xe.length) === 0 && /* @__PURE__ */ e.jsxs(Se, { children: [
|
|
1893
|
+
/* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
|
|
1894
|
+
/* @__PURE__ */ e.jsx(Te, { children: "Authentication" }),
|
|
1895
|
+
/* @__PURE__ */ e.jsx($e, { children: "No identities found. Please create an identity first." })
|
|
1867
1896
|
] }),
|
|
1868
1897
|
/* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e.jsx(
|
|
1869
1898
|
Rt,
|
|
1870
1899
|
{
|
|
1871
1900
|
value: C.identity,
|
|
1872
|
-
identities:
|
|
1873
|
-
setValue: (o) =>
|
|
1901
|
+
identities: y.data ?? [],
|
|
1902
|
+
setValue: (o) => V("identity", o)
|
|
1874
1903
|
}
|
|
1875
1904
|
) })
|
|
1876
1905
|
] }) })
|
|
1877
1906
|
] })
|
|
1878
1907
|
] }),
|
|
1879
1908
|
/* @__PURE__ */ e.jsx(
|
|
1880
|
-
|
|
1909
|
+
ws,
|
|
1881
1910
|
{
|
|
1882
|
-
queryMutation:
|
|
1911
|
+
queryMutation: ue,
|
|
1883
1912
|
showPathParamsWarning: C.pathParams.some(
|
|
1884
1913
|
(o) => o.value === ""
|
|
1885
1914
|
),
|
|
1886
|
-
showLongRunningWarning:
|
|
1915
|
+
showLongRunningWarning: Y,
|
|
1887
1916
|
onCancel: () => {
|
|
1888
1917
|
var o;
|
|
1889
1918
|
(o = ee.current) == null || o.abort(
|
|
1890
1919
|
"Request cancelled by the user"
|
|
1891
|
-
),
|
|
1920
|
+
), D(!1);
|
|
1892
1921
|
}
|
|
1893
1922
|
}
|
|
1894
1923
|
)
|
|
@@ -1898,9 +1927,9 @@ const gn = {
|
|
|
1898
1927
|
)
|
|
1899
1928
|
}
|
|
1900
1929
|
);
|
|
1901
|
-
},
|
|
1930
|
+
}, Ts = ({
|
|
1902
1931
|
className: t,
|
|
1903
|
-
size:
|
|
1932
|
+
size: n = 16
|
|
1904
1933
|
}) => /* @__PURE__ */ e.jsx(
|
|
1905
1934
|
"svg",
|
|
1906
1935
|
{
|
|
@@ -1908,8 +1937,8 @@ const gn = {
|
|
|
1908
1937
|
viewBox: "0 0 24 24",
|
|
1909
1938
|
fill: "currentColor",
|
|
1910
1939
|
className: t,
|
|
1911
|
-
width:
|
|
1912
|
-
height:
|
|
1940
|
+
width: n,
|
|
1941
|
+
height: n,
|
|
1913
1942
|
children: /* @__PURE__ */ e.jsx(
|
|
1914
1943
|
"path",
|
|
1915
1944
|
{
|
|
@@ -1919,33 +1948,33 @@ const gn = {
|
|
|
1919
1948
|
}
|
|
1920
1949
|
)
|
|
1921
1950
|
}
|
|
1922
|
-
), $
|
|
1923
|
-
const [
|
|
1924
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1925
|
-
/* @__PURE__ */ e.jsx(
|
|
1951
|
+
), $s = (t) => {
|
|
1952
|
+
const [n, s] = k(!1);
|
|
1953
|
+
return /* @__PURE__ */ e.jsxs(Ie, { onOpenChange: (a) => s(a), children: [
|
|
1954
|
+
/* @__PURE__ */ e.jsx(rn, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
|
|
1926
1955
|
"button",
|
|
1927
1956
|
{
|
|
1928
1957
|
type: "button",
|
|
1929
1958
|
className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
|
|
1930
1959
|
children: [
|
|
1931
1960
|
"Test",
|
|
1932
|
-
/* @__PURE__ */ e.jsx(
|
|
1961
|
+
/* @__PURE__ */ e.jsx(Ts, { size: 14 })
|
|
1933
1962
|
]
|
|
1934
1963
|
}
|
|
1935
1964
|
) }),
|
|
1936
1965
|
/* @__PURE__ */ e.jsxs(
|
|
1937
|
-
|
|
1966
|
+
Re,
|
|
1938
1967
|
{
|
|
1939
1968
|
className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
|
|
1940
1969
|
"aria-describedby": void 0,
|
|
1941
1970
|
children: [
|
|
1942
|
-
/* @__PURE__ */ e.jsx(
|
|
1943
|
-
|
|
1971
|
+
/* @__PURE__ */ e.jsx(tn, { children: /* @__PURE__ */ e.jsx(Oe, { children: "Playground" }) }),
|
|
1972
|
+
n && /* @__PURE__ */ e.jsx(Ss, { ...t })
|
|
1944
1973
|
]
|
|
1945
1974
|
}
|
|
1946
1975
|
)
|
|
1947
1976
|
] });
|
|
1948
|
-
},
|
|
1977
|
+
}, Ps = {
|
|
1949
1978
|
get: "green",
|
|
1950
1979
|
post: "blue",
|
|
1951
1980
|
put: "yellow",
|
|
@@ -1955,8 +1984,8 @@ const gn = {
|
|
|
1955
1984
|
head: "gray"
|
|
1956
1985
|
}, pt = ({
|
|
1957
1986
|
label: t,
|
|
1958
|
-
path:
|
|
1959
|
-
operations:
|
|
1987
|
+
path: n,
|
|
1988
|
+
operations: s,
|
|
1960
1989
|
collapsible: a,
|
|
1961
1990
|
collapsed: r
|
|
1962
1991
|
}) => ({
|
|
@@ -1964,28 +1993,28 @@ const gn = {
|
|
|
1964
1993
|
label: t,
|
|
1965
1994
|
link: {
|
|
1966
1995
|
type: "doc",
|
|
1967
|
-
id:
|
|
1996
|
+
id: n,
|
|
1968
1997
|
label: t
|
|
1969
1998
|
},
|
|
1970
1999
|
collapsible: a,
|
|
1971
2000
|
collapsed: r,
|
|
1972
|
-
items:
|
|
2001
|
+
items: s.map((i) => ({
|
|
1973
2002
|
type: "link",
|
|
1974
2003
|
label: i.summary ?? i.path,
|
|
1975
|
-
href: `${
|
|
2004
|
+
href: `${n}#${i.slug}`,
|
|
1976
2005
|
badge: {
|
|
1977
2006
|
label: i.method,
|
|
1978
|
-
color:
|
|
2007
|
+
color: Ps[i.method.toLowerCase()],
|
|
1979
2008
|
invert: !0
|
|
1980
2009
|
}
|
|
1981
2010
|
}))
|
|
1982
2011
|
}), ht = (t) => ({
|
|
1983
2012
|
path: t.routePath,
|
|
1984
2013
|
async lazy() {
|
|
1985
|
-
const { OasProvider:
|
|
2014
|
+
const { OasProvider: n } = await import("./OasProvider-C7Y53snX.js");
|
|
1986
2015
|
return {
|
|
1987
2016
|
element: /* @__PURE__ */ e.jsx(
|
|
1988
|
-
|
|
2017
|
+
n,
|
|
1989
2018
|
{
|
|
1990
2019
|
basePath: t.basePath,
|
|
1991
2020
|
version: t.version,
|
|
@@ -1996,66 +2025,70 @@ const gn = {
|
|
|
1996
2025
|
};
|
|
1997
2026
|
},
|
|
1998
2027
|
children: t.routes
|
|
1999
|
-
}),
|
|
2028
|
+
}), Pe = ({
|
|
2000
2029
|
path: t,
|
|
2001
|
-
tag:
|
|
2002
|
-
untagged:
|
|
2030
|
+
tag: n,
|
|
2031
|
+
untagged: s
|
|
2003
2032
|
}) => ({
|
|
2004
2033
|
path: t,
|
|
2005
2034
|
async lazy() {
|
|
2006
|
-
const { OperationList: a } = await import("./OperationList-
|
|
2007
|
-
return { element: /* @__PURE__ */ e.jsx(a, { tag:
|
|
2035
|
+
const { OperationList: a } = await import("./OperationList-_M8wg22T.js");
|
|
2036
|
+
return { element: /* @__PURE__ */ e.jsx(a, { tag: n, untagged: s }) };
|
|
2008
2037
|
}
|
|
2009
|
-
}),
|
|
2010
|
-
const
|
|
2011
|
-
t,
|
|
2012
|
-
s[0] ? ot(s[0]) : Pe
|
|
2013
|
-
);
|
|
2038
|
+
}), ks = (t, n) => {
|
|
2039
|
+
const s = R(t, n.at(0) ?? ke);
|
|
2014
2040
|
return [
|
|
2015
2041
|
// Redirect to first tag on the index route
|
|
2016
|
-
{ index: !0, loader: () =>
|
|
2042
|
+
{ index: !0, loader: () => Wt(s) },
|
|
2017
2043
|
// Create routes for each tag
|
|
2018
|
-
...
|
|
2019
|
-
(a) =>
|
|
2020
|
-
path:
|
|
2044
|
+
...n.map(
|
|
2045
|
+
(a) => Pe({
|
|
2046
|
+
path: R(t, a),
|
|
2021
2047
|
tag: a
|
|
2022
2048
|
})
|
|
2023
2049
|
),
|
|
2024
2050
|
// Category without tagged operations
|
|
2025
|
-
|
|
2026
|
-
path:
|
|
2051
|
+
Pe({
|
|
2052
|
+
path: R(t, ke),
|
|
2027
2053
|
untagged: !0
|
|
2028
|
-
})
|
|
2054
|
+
}),
|
|
2055
|
+
{
|
|
2056
|
+
path: R(t, "~schemas"),
|
|
2057
|
+
lazy: async () => {
|
|
2058
|
+
const { SchemaList: a } = await import("./SchemaList-CrKZdUyo.js");
|
|
2059
|
+
return { element: /* @__PURE__ */ e.jsx(a, {}) };
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2029
2062
|
];
|
|
2030
|
-
}, Ot = (t) => t.type === "file" ? Object.keys(t.input) : [],
|
|
2063
|
+
}, Ot = (t) => t.type === "file" ? Object.keys(t.input) : [], Is = ({
|
|
2031
2064
|
basePath: t,
|
|
2032
|
-
config:
|
|
2033
|
-
client:
|
|
2065
|
+
config: n,
|
|
2066
|
+
client: s
|
|
2034
2067
|
}) => {
|
|
2035
|
-
const a =
|
|
2068
|
+
const a = n.tagPages;
|
|
2036
2069
|
if (!a)
|
|
2037
2070
|
return [
|
|
2038
2071
|
ht({
|
|
2039
2072
|
basePath: t,
|
|
2040
2073
|
routePath: t,
|
|
2041
|
-
routes: [
|
|
2042
|
-
client:
|
|
2043
|
-
config:
|
|
2074
|
+
routes: [Pe({ path: t + "/:tag?" })],
|
|
2075
|
+
client: s,
|
|
2076
|
+
config: n
|
|
2044
2077
|
})
|
|
2045
2078
|
];
|
|
2046
|
-
const r = Ot(
|
|
2079
|
+
const r = Ot(n);
|
|
2047
2080
|
return (r.length > 1 ? [void 0, ...r] : [void 0]).map((l) => {
|
|
2048
|
-
const
|
|
2081
|
+
const c = R(t, l);
|
|
2049
2082
|
return ht({
|
|
2050
2083
|
basePath: t,
|
|
2051
2084
|
version: l,
|
|
2052
|
-
routePath:
|
|
2053
|
-
routes:
|
|
2054
|
-
client:
|
|
2055
|
-
config:
|
|
2085
|
+
routePath: c,
|
|
2086
|
+
routes: ks(c, a),
|
|
2087
|
+
client: s,
|
|
2088
|
+
config: n
|
|
2056
2089
|
});
|
|
2057
2090
|
});
|
|
2058
|
-
},
|
|
2091
|
+
}, Rs = En(`
|
|
2059
2092
|
query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
|
|
2060
2093
|
schema(input: $input, type: $type) {
|
|
2061
2094
|
tags {
|
|
@@ -2070,10 +2103,15 @@ const gn = {
|
|
|
2070
2103
|
path
|
|
2071
2104
|
}
|
|
2072
2105
|
}
|
|
2106
|
+
components {
|
|
2107
|
+
schemas {
|
|
2108
|
+
__typename
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2073
2111
|
}
|
|
2074
2112
|
}
|
|
2075
|
-
`),
|
|
2076
|
-
const
|
|
2113
|
+
`), ke = "~endpoints", ia = (t) => {
|
|
2114
|
+
const n = R(t.navigationId ?? "/reference"), s = new Pn(t);
|
|
2077
2115
|
return {
|
|
2078
2116
|
getHead: () => {
|
|
2079
2117
|
if (t.type === "url" && !t.skipPreload)
|
|
@@ -2095,91 +2133,95 @@ const gn = {
|
|
|
2095
2133
|
server: r,
|
|
2096
2134
|
method: i,
|
|
2097
2135
|
url: l,
|
|
2098
|
-
children:
|
|
2136
|
+
children: c,
|
|
2099
2137
|
...d
|
|
2100
2138
|
}) => {
|
|
2101
|
-
const
|
|
2139
|
+
const p = Yt();
|
|
2102
2140
|
if (!r)
|
|
2103
2141
|
throw new Error("Server is required");
|
|
2104
|
-
return a && !
|
|
2105
|
-
|
|
2142
|
+
return a && !p.isAuthenticated ? /* @__PURE__ */ e.jsxs(
|
|
2143
|
+
W,
|
|
2106
2144
|
{
|
|
2107
2145
|
className: "gap-2 items-center",
|
|
2108
2146
|
variant: "outline",
|
|
2109
|
-
onClick:
|
|
2147
|
+
onClick: p.login,
|
|
2110
2148
|
children: [
|
|
2111
2149
|
"Login to open in Playground ",
|
|
2112
|
-
/* @__PURE__ */ e.jsx(
|
|
2150
|
+
/* @__PURE__ */ e.jsx(Ut, { size: 16 })
|
|
2113
2151
|
]
|
|
2114
2152
|
}
|
|
2115
2153
|
) : /* @__PURE__ */ e.jsx(
|
|
2116
|
-
$
|
|
2154
|
+
$s,
|
|
2117
2155
|
{
|
|
2118
2156
|
url: l ?? "/",
|
|
2119
2157
|
method: i ?? "get",
|
|
2120
2158
|
server: r,
|
|
2121
2159
|
...d,
|
|
2122
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2160
|
+
children: /* @__PURE__ */ e.jsx(W, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2123
2161
|
"Open in Playground ",
|
|
2124
|
-
/* @__PURE__ */ e.jsx(
|
|
2162
|
+
/* @__PURE__ */ e.jsx(Qt, { size: 16 })
|
|
2125
2163
|
] }) })
|
|
2126
2164
|
}
|
|
2127
2165
|
);
|
|
2128
2166
|
}
|
|
2129
2167
|
}),
|
|
2130
2168
|
getSidebar: async (a, r) => {
|
|
2131
|
-
var l,
|
|
2132
|
-
if (!st({ path:
|
|
2169
|
+
var l, c, d, p;
|
|
2170
|
+
if (!st({ path: n, end: !1 }, a))
|
|
2133
2171
|
return [];
|
|
2134
2172
|
const i = st(
|
|
2135
|
-
{ path: `${
|
|
2173
|
+
{ path: `${n}/:version?/:tag`, end: !0 },
|
|
2136
2174
|
a
|
|
2137
2175
|
);
|
|
2138
2176
|
try {
|
|
2139
|
-
const
|
|
2140
|
-
queryKey: ["sidebar-operations-query",
|
|
2141
|
-
queryFn: () =>
|
|
2142
|
-
}),
|
|
2143
|
-
var
|
|
2144
|
-
if (!
|
|
2145
|
-
const
|
|
2177
|
+
const f = i == null ? void 0 : i.params.version, w = f ?? Ot(t).at(0), { type: j } = t, h = j === "file" ? t.input[w] : t.input, g = await r.queryClient.ensureQueryData({
|
|
2178
|
+
queryKey: ["sidebar-operations-query", h],
|
|
2179
|
+
queryFn: () => s.fetch(Rs, { type: j, input: h })
|
|
2180
|
+
}), m = g.schema.tags.flatMap((x) => {
|
|
2181
|
+
var K, Y, D;
|
|
2182
|
+
if (!x.name || x.operations.length === 0) return [];
|
|
2183
|
+
const T = R(n, f, x.slug), $ = ((K = x.extensions) == null ? void 0 : K["x-zudoku-collapsed"]) ?? !((Y = t.options) != null && Y.expandAllTags), ce = ((D = x.extensions) == null ? void 0 : D["x-zudoku-collapsible"]) ?? !0;
|
|
2146
2184
|
return pt({
|
|
2147
|
-
label:
|
|
2148
|
-
path:
|
|
2149
|
-
operations:
|
|
2150
|
-
collapsed:
|
|
2151
|
-
collapsible:
|
|
2185
|
+
label: x.name,
|
|
2186
|
+
path: T,
|
|
2187
|
+
operations: x.operations,
|
|
2188
|
+
collapsed: $,
|
|
2189
|
+
collapsible: ce
|
|
2152
2190
|
});
|
|
2153
|
-
}),
|
|
2154
|
-
(
|
|
2191
|
+
}), y = (l = g.schema.tags.find(
|
|
2192
|
+
(x) => !x.name
|
|
2155
2193
|
)) == null ? void 0 : l.operations;
|
|
2156
|
-
return
|
|
2194
|
+
return y && m.push(
|
|
2157
2195
|
pt({
|
|
2158
2196
|
label: "Other endpoints",
|
|
2159
|
-
path:
|
|
2160
|
-
operations:
|
|
2161
|
-
collapsed: !((
|
|
2197
|
+
path: R(n, f, ke),
|
|
2198
|
+
operations: y,
|
|
2199
|
+
collapsed: !((c = t.options) != null && c.expandAllTags)
|
|
2162
2200
|
})
|
|
2163
|
-
), p
|
|
2201
|
+
), (p = (d = g.schema.components) == null ? void 0 : d.schemas) != null && p.length && m.push({
|
|
2202
|
+
type: "link",
|
|
2203
|
+
label: "Schemas",
|
|
2204
|
+
href: R(n, f, "~schemas")
|
|
2205
|
+
}), m;
|
|
2164
2206
|
} catch {
|
|
2165
2207
|
return [];
|
|
2166
2208
|
}
|
|
2167
2209
|
},
|
|
2168
|
-
getRoutes: () =>
|
|
2210
|
+
getRoutes: () => Is({ basePath: n, config: t, client: s })
|
|
2169
2211
|
};
|
|
2170
2212
|
};
|
|
2171
2213
|
export {
|
|
2172
|
-
|
|
2173
|
-
$
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2214
|
+
lt as C,
|
|
2215
|
+
$s as P,
|
|
2216
|
+
ke as U,
|
|
2217
|
+
dt as a,
|
|
2218
|
+
ct as b,
|
|
2219
|
+
En as c,
|
|
2220
|
+
St as d,
|
|
2221
|
+
Fn as e,
|
|
2180
2222
|
Ot as g,
|
|
2181
|
-
|
|
2223
|
+
ps as m,
|
|
2182
2224
|
ia as o,
|
|
2183
|
-
|
|
2225
|
+
Mn as u
|
|
2184
2226
|
};
|
|
2185
|
-
//# sourceMappingURL=index-
|
|
2227
|
+
//# sourceMappingURL=index-C8-tlf_X.js.map
|