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