zudoku 0.31.2 → 0.32.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.
Files changed (129) hide show
  1. package/dist/cli/common/utils/ports.d.ts +1 -1
  2. package/dist/cli/common/utils/ports.js +16 -15
  3. package/dist/cli/common/utils/ports.js.map +1 -1
  4. package/dist/cli/dev/handler.js +9 -12
  5. package/dist/cli/dev/handler.js.map +1 -1
  6. package/dist/config/validators/common.d.ts +90 -0
  7. package/dist/config/validators/common.js +8 -0
  8. package/dist/config/validators/common.js.map +1 -1
  9. package/dist/config/validators/validate.d.ts +38 -0
  10. package/dist/lib/MissingIcon.d.ts +2 -0
  11. package/dist/lib/MissingIcon.js +7 -0
  12. package/dist/lib/MissingIcon.js.map +1 -0
  13. package/dist/lib/core/ZudokuContext.d.ts +1 -1
  14. package/dist/lib/core/plugins.d.ts +2 -0
  15. package/dist/lib/core/plugins.js +2 -0
  16. package/dist/lib/core/plugins.js.map +1 -1
  17. package/dist/lib/icons.d.ts +1 -0
  18. package/dist/lib/icons.js +1 -0
  19. package/dist/lib/icons.js.map +1 -1
  20. package/dist/lib/oas/graphql/index.js +3 -2
  21. package/dist/lib/oas/graphql/index.js.map +1 -1
  22. package/dist/lib/plugins/api-keys/index.d.ts +1 -0
  23. package/dist/lib/plugins/api-keys/index.js +1 -0
  24. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  25. package/dist/lib/plugins/openapi/{OpenApiRoute.d.ts → OasProvider.d.ts} +1 -2
  26. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  27. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  28. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
  29. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  30. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  31. package/dist/lib/plugins/openapi/index.d.ts +8 -0
  32. package/dist/lib/plugins/openapi/index.js +46 -113
  33. package/dist/lib/plugins/openapi/index.js.map +1 -1
  34. package/dist/lib/plugins/openapi/playground/Playground.d.ts +1 -1
  35. package/dist/lib/plugins/openapi/playground/Playground.js +5 -5
  36. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  37. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +1 -1
  38. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -1
  39. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  40. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +25 -0
  41. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  42. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  43. package/dist/lib/plugins/openapi/util/getRoutes.js +74 -0
  44. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  45. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  46. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  47. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  48. package/dist/vite/build.js +20 -14
  49. package/dist/vite/build.js.map +1 -1
  50. package/dist/vite/config.js +2 -6
  51. package/dist/vite/config.js.map +1 -1
  52. package/dist/vite/dev-server.d.ts +4 -2
  53. package/dist/vite/dev-server.js +30 -8
  54. package/dist/vite/dev-server.js.map +1 -1
  55. package/dist/vite/error-handler.d.ts +1 -1
  56. package/dist/vite/error-handler.js +1 -1
  57. package/dist/vite/error-handler.js.map +1 -1
  58. package/dist/vite/output.d.ts +14 -2
  59. package/dist/vite/output.js +12 -14
  60. package/dist/vite/output.js.map +1 -1
  61. package/dist/vite/plugin-api-keys.js +2 -2
  62. package/dist/vite/plugin-api-keys.js.map +1 -1
  63. package/dist/vite/plugin-sidebar.js +17 -2
  64. package/dist/vite/plugin-sidebar.js.map +1 -1
  65. package/dist/vite/prerender/FileWritingResponse.d.ts +7 -3
  66. package/dist/vite/prerender/FileWritingResponse.js +15 -9
  67. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  68. package/dist/vite/prerender/prerender.d.ts +10 -2
  69. package/dist/vite/prerender/prerender.js +5 -4
  70. package/dist/vite/prerender/prerender.js.map +1 -1
  71. package/dist/vite/prerender/worker.d.ts +3 -1
  72. package/dist/vite/prerender/worker.js +11 -4
  73. package/dist/vite/prerender/worker.js.map +1 -1
  74. package/lib/{AuthenticationPlugin-DjnQ5hs7.js → AuthenticationPlugin-_YVa673u.js} +2 -2
  75. package/lib/{AuthenticationPlugin-DjnQ5hs7.js.map → AuthenticationPlugin-_YVa673u.js.map} +1 -1
  76. package/lib/{MdxPage-ZX2oquWw.js → MdxPage-GM1T5jmO.js} +3 -3
  77. package/lib/{MdxPage-ZX2oquWw.js.map → MdxPage-GM1T5jmO.js.map} +1 -1
  78. package/lib/OasProvider-IS9wBrb7.js +34 -0
  79. package/lib/OasProvider-IS9wBrb7.js.map +1 -0
  80. package/lib/{OperationList-c72qPMtm.js → OperationList-BTmRbbXk.js} +4 -5
  81. package/lib/{OperationList-c72qPMtm.js.map → OperationList-BTmRbbXk.js.map} +1 -1
  82. package/lib/{Select-NSz0gku6.js → Select-D9CKL33X.js} +3 -3
  83. package/lib/{Select-NSz0gku6.js.map → Select-D9CKL33X.js.map} +1 -1
  84. package/lib/{createServer-ZDNGmPfQ.js → createServer-DSQiPwjN.js} +2 -5
  85. package/lib/{createServer-ZDNGmPfQ.js.map → createServer-DSQiPwjN.js.map} +1 -1
  86. package/lib/{hook-Dnj3SwPC.js → hook-C_t2ISLC.js} +22 -22
  87. package/lib/{hook-Dnj3SwPC.js.map → hook-C_t2ISLC.js.map} +1 -1
  88. package/lib/{index-CZjcfK-H.js → index-BANyVRgL.js} +806 -771
  89. package/lib/index-BANyVRgL.js.map +1 -0
  90. package/lib/{mutation-ByGtmi0-.js → mutation-Cm3O9f3X.js} +2 -2
  91. package/lib/{mutation-ByGtmi0-.js.map → mutation-Cm3O9f3X.js.map} +1 -1
  92. package/lib/{useScrollToAnchor-DkVfWsxe.js → useScrollToAnchor-BGEcH3HM.js} +2 -2
  93. package/lib/{useScrollToAnchor-DkVfWsxe.js.map → useScrollToAnchor-BGEcH3HM.js.map} +1 -1
  94. package/lib/zudoku.auth-auth0.js +1 -1
  95. package/lib/zudoku.auth-clerk.js +2 -2
  96. package/lib/zudoku.auth-openid.js +2 -2
  97. package/lib/zudoku.components.js +141 -140
  98. package/lib/zudoku.components.js.map +1 -1
  99. package/lib/zudoku.icons.js +10 -0
  100. package/lib/zudoku.icons.js.map +1 -1
  101. package/lib/zudoku.plugin-api-catalog.js +1 -1
  102. package/lib/zudoku.plugin-api-keys.js +10 -9
  103. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  104. package/lib/zudoku.plugin-markdown.js +1 -1
  105. package/lib/zudoku.plugin-openapi.js +4 -3
  106. package/lib/zudoku.plugins.js +13 -0
  107. package/lib/zudoku.plugins.js.map +1 -0
  108. package/package.json +5 -1
  109. package/src/lib/MissingIcon.tsx +22 -0
  110. package/src/lib/core/ZudokuContext.ts +1 -1
  111. package/src/lib/core/plugins.ts +8 -0
  112. package/src/lib/icons.ts +1 -0
  113. package/src/lib/oas/graphql/index.ts +3 -2
  114. package/src/lib/plugins/api-keys/index.tsx +3 -0
  115. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  116. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +1 -1
  117. package/src/lib/plugins/openapi/Sidecar.tsx +0 -1
  118. package/src/lib/plugins/openapi/index.tsx +80 -143
  119. package/src/lib/plugins/openapi/playground/Playground.tsx +26 -24
  120. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +1 -1
  121. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +39 -0
  122. package/src/lib/plugins/openapi/util/getRoutes.tsx +123 -0
  123. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  124. package/dist/lib/plugins/openapi/OpenApiRoute.js +0 -25
  125. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +0 -1
  126. package/lib/OpenApiRoute-BP9kzG5k.js +0 -36
  127. package/lib/OpenApiRoute-BP9kzG5k.js.map +0 -1
  128. package/lib/index-CZjcfK-H.js.map +0 -1
  129. package/src/lib/plugins/openapi/OpenApiRoute.tsx +0 -51
@@ -1,83 +1,83 @@
1
- var pt = Object.defineProperty;
2
- var qe = (t) => {
1
+ var yt = Object.defineProperty;
2
+ var De = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var ht = (t, a, s) => a in t ? pt(t, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[a] = s;
6
- var Y = (t, a, s) => ht(t, typeof a != "symbol" ? a + "" : a, s), xt = (t, a, s) => a.has(t) || qe("Cannot " + s);
7
- var ee = (t, a, s) => (xt(t, a, "read from private field"), s ? s.call(t) : a.get(t)), te = (t, a, s) => a.has(t) ? qe("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, s);
5
+ var vt = (t, a, s) => a in t ? yt(t, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[a] = s;
6
+ var ne = (t, a, s) => vt(t, typeof a != "symbol" ? a + "" : a, s), jt = (t, a, s) => a.has(t) || De("Cannot " + s);
7
+ var re = (t, a, s) => (jt(t, a, "read from private field"), s ? s.call(t) : a.get(t)), oe = (t, a, s) => a.has(t) ? De("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, s);
8
8
  import { j as e } from "./jsx-runtime-Bdg6XQ1m.js";
9
- import { s as ae } from "./index-CjJS0l4l.js";
10
- import { Circle as ft, ChevronRightIcon as z, CheckIcon as gt, DotIcon as yt, Check as vt, Search as jt, XIcon as bt, ChevronDownIcon as Nt, InfoIcon as De, LogInIcon as wt, CirclePlayIcon as Ct } from "lucide-react";
11
- import { m as Tt, r as $t } from "./chunk-SYFQ2XB5-QijJrSf0.js";
12
- import { m as St, o as Pt, p as kt, k as Rt } from "./hook-Dnj3SwPC.js";
13
- import { Button as _ } from "./ui/Button.js";
14
- import { j as R } from "./joinUrl-nLx9pD-Z.js";
15
- import { Z as It } from "./invariant-Caa8-XvF.js";
16
- import { VisuallyHidden as Ot } from "@radix-ui/react-visually-hidden";
17
- import * as f from "react";
18
- import { Fragment as I, useRef as q, useEffect as ue, useState as H, useCallback as Et, useTransition as At } from "react";
19
- import { V as $, T as qt, D as Dt, b as Lt, a as Vt, c as Ft } from "./index-B7mqiOei.js";
20
- import { S as Me, a as Ue, b as _e, c as Je, e as M, u as zt } from "./Select-NSz0gku6.js";
21
- import { b as pe, u as he, C as O, a as Ht, F as Gt } from "./index.esm-CrSoEshU.js";
22
- import { c as xe } from "./index-Djenk2Hj.js";
23
- import { c as u } from "./cn-qaFjX9_3.js";
24
- import * as Qe from "@radix-ui/react-label";
25
- import * as G from "@radix-ui/react-radio-group";
26
- import { Card as fe, CardHeader as Bt, CardTitle as Mt, CardContent as Ut } from "./ui/Card.js";
27
- import { Tabs as We, TabsList as Ze, TabsTrigger as E, TabsContent as A } from "./ui/Tabs.js";
28
- import { z as _t, S as Jt } from "./SyntaxHighlight-B0L4SC_N.js";
29
- import { B as U, S as Qt } from "./Spinner-BlzrEEk1.js";
30
- import * as b from "@radix-ui/react-dropdown-menu";
31
- import * as ie from "@radix-ui/react-checkbox";
32
- import * as J from "@radix-ui/react-popover";
33
- import { PopoverAnchor as Wt } from "@radix-ui/react-popover";
34
- import { Input as ge } from "./ui/Input.js";
35
- import { Slot as Zt } from "@radix-ui/react-slot";
36
- import { Callout as Kt } from "./ui/Callout.js";
37
- import { Collapsible as Le, CollapsibleTrigger as Ve, CollapsibleContent as Fe } from "./ui/Collapsible.js";
38
- import * as ye from "@radix-ui/react-collapsible";
39
- let se;
40
- const Xt = (t) => {
9
+ import { s as W } from "./index-CjJS0l4l.js";
10
+ import { Circle as bt, ChevronRightIcon as B, CheckIcon as Nt, DotIcon as wt, Check as Ct, Search as Tt, XIcon as $t, ChevronDownIcon as St, InfoIcon as Le, LogInIcon as Pt, CirclePlayIcon as Rt } from "lucide-react";
11
+ import { r as kt, m as Ve } from "./chunk-SYFQ2XB5-QijJrSf0.js";
12
+ import { H as It, I as Ot, J as Et, k as At } from "./hook-C_t2ISLC.js";
13
+ import { Button as K } from "./ui/Button.js";
14
+ import { j as O } from "./joinUrl-nLx9pD-Z.js";
15
+ import { Z as qt } from "./invariant-Caa8-XvF.js";
16
+ import { VisuallyHidden as Dt } from "@radix-ui/react-visually-hidden";
17
+ import * as x from "react";
18
+ import { Fragment as k, useRef as q, useEffect as fe, useState as U, useCallback as Lt, useTransition as Vt } from "react";
19
+ import { V as $, T as Ft, D as zt, b as Ht, a as Gt, c as Bt } from "./index-B7mqiOei.js";
20
+ import { S as Qe, a as Ze, b as We, c as Ke, e as Q, u as Ut } from "./Select-D9CKL33X.js";
21
+ import { b as ge, u as ye, C as I, a as Mt, F as _t } from "./index.esm-CrSoEshU.js";
22
+ import { c as ve } from "./index-Djenk2Hj.js";
23
+ import { c as m } from "./cn-qaFjX9_3.js";
24
+ import * as Xe from "@radix-ui/react-label";
25
+ import * as M from "@radix-ui/react-radio-group";
26
+ import { Card as je, CardHeader as Jt, CardTitle as Qt, CardContent as Zt } from "./ui/Card.js";
27
+ import { Tabs as Ye, TabsList as et, TabsTrigger as E, TabsContent as A } from "./ui/Tabs.js";
28
+ import { z as Wt, S as Kt } from "./SyntaxHighlight-B0L4SC_N.js";
29
+ import { B as Z, S as Xt } from "./Spinner-BlzrEEk1.js";
30
+ import * as j from "@radix-ui/react-dropdown-menu";
31
+ import * as me from "@radix-ui/react-checkbox";
32
+ import * as X from "@radix-ui/react-popover";
33
+ import { PopoverAnchor as Yt } from "@radix-ui/react-popover";
34
+ import { Input as be } from "./ui/Input.js";
35
+ import { Slot as ea } from "@radix-ui/react-slot";
36
+ import { Callout as ta } from "./ui/Callout.js";
37
+ import { Collapsible as Fe, CollapsibleTrigger as ze, CollapsibleContent as He } from "./ui/Collapsible.js";
38
+ import * as Ne from "@radix-ui/react-collapsible";
39
+ let ie;
40
+ const aa = (t) => {
41
41
  var a;
42
42
  if ((a = t.errors) != null && a[0])
43
- throw new It(t.errors[0].message, {
43
+ throw new qt(t.errors[0].message, {
44
44
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
45
45
  });
46
46
  };
47
- var Z, K;
48
- class Yt {
47
+ var te, ae;
48
+ class sa {
49
49
  constructor(a) {
50
- te(this, Z, async () => (se || (se = import("./createServer-ZDNGmPfQ.js").then(
50
+ oe(this, te, async () => (ie || (ie = import("./createServer-DSQiPwjN.js").then(
51
51
  (a) => a.createServer(this.config)
52
- )), se));
53
- te(this, K, async (a) => this.config.server ? fetch(this.config.server, a) : (await ee(this, Z).call(this)).fetch("http://localhost/graphql", a));
54
- Y(this, "fetch", async (a, ...[s]) => {
52
+ )), ie));
53
+ oe(this, ae, async (a) => this.config.server ? fetch(this.config.server, a) : (await re(this, te).call(this)).fetch("http://localhost/graphql", a));
54
+ ne(this, "fetch", async (a, ...[s]) => {
55
55
  var l;
56
- const n = (l = a.match(/query (\w+)/)) == null ? void 0 : l[1], o = await ee(this, K).call(this, {
56
+ const n = (l = a.match(/query (\w+)/)) == null ? void 0 : l[1], r = await re(this, ae).call(this, {
57
57
  method: "POST",
58
58
  body: JSON.stringify({ query: a, variables: s, operationName: n }),
59
59
  headers: { "Content-Type": "application/json" }
60
60
  });
61
- if (!o.ok)
61
+ if (!r.ok)
62
62
  throw new Error("Network response was not ok");
63
- const d = await o.json();
64
- return Xt(d), d.data;
63
+ const i = await r.json();
64
+ return aa(i), i.data;
65
65
  });
66
66
  this.config = a;
67
67
  }
68
68
  }
69
- Z = new WeakMap(), K = new WeakMap();
69
+ te = new WeakMap(), ae = new WeakMap();
70
70
  class D extends String {
71
71
  constructor(s, n) {
72
72
  super(s);
73
- Y(this, "__apiType");
73
+ ne(this, "__apiType");
74
74
  this.value = s, this.__meta__ = n;
75
75
  }
76
76
  toString() {
77
77
  return this.value;
78
78
  }
79
79
  }
80
- const ea = new D(
80
+ const na = new D(
81
81
  `
82
82
  fragment OperationsFragment on OperationItem {
83
83
  slug
@@ -142,7 +142,7 @@ const ea = new D(
142
142
  }
143
143
  `,
144
144
  { fragmentName: "OperationsFragment" }
145
- ), ta = new D(`
145
+ ), ra = new D(`
146
146
  query ServersQuery($input: JSON!, $type: SchemaType!) {
147
147
  schema(input: $input, type: $type) {
148
148
  url
@@ -151,7 +151,7 @@ const ea = new D(
151
151
  }
152
152
  }
153
153
  }
154
- `), aa = new D(`
154
+ `), oa = new D(`
155
155
  query AllOperations($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
156
156
  schema(input: $input, type: $type) {
157
157
  servers {
@@ -232,7 +232,7 @@ const ea = new D(
232
232
  schema
233
233
  }
234
234
  }
235
- }`), sa = new D(`
235
+ }`), ia = new D(`
236
236
  query getServerQuery($input: JSON!, $type: SchemaType!) {
237
237
  schema(input: $input, type: $type) {
238
238
  url
@@ -241,7 +241,7 @@ const ea = new D(
241
241
  }
242
242
  }
243
243
  }
244
- `), na = new D(`
244
+ `), la = new D(`
245
245
  query GetCategories($input: JSON!, $type: SchemaType!) {
246
246
  schema(input: $input, type: $type) {
247
247
  url
@@ -250,7 +250,7 @@ const ea = new D(
250
250
  }
251
251
  }
252
252
  }
253
- `), ra = new D(`
253
+ `), da = new D(`
254
254
  query GetOperations($input: JSON!, $type: SchemaType!, $tag: String) {
255
255
  schema(input: $input, type: $type) {
256
256
  operations(tag: $tag) {
@@ -274,18 +274,18 @@ const ea = new D(
274
274
  }
275
275
  }
276
276
  }
277
- `), oa = {
278
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": ta,
279
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\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": ea,
280
- "\n query AllOperations(\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 tags(name: $tag) {\n name\n description\n }\n operations(tag: $tag, untagged: $untagged) {\n slug\n ...OperationsFragment\n }\n }\n }\n": aa,
281
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": sa,
282
- "\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n tags {\n name\n }\n }\n }\n": na,
283
- "\n query GetOperations($input: JSON!, $type: SchemaType!, $tag: String) {\n schema(input: $input, type: $type) {\n operations(tag: $tag) {\n slug\n deprecated\n method\n summary\n operationId\n path\n tags {\n name\n }\n }\n untagged: operations(untagged: true) {\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n": ra
277
+ `), ca = {
278
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": ra,
279
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\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": na,
280
+ "\n query AllOperations(\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 tags(name: $tag) {\n name\n description\n }\n operations(tag: $tag, untagged: $untagged) {\n slug\n ...OperationsFragment\n }\n }\n }\n": oa,
281
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": ia,
282
+ "\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n tags {\n name\n }\n }\n }\n": la,
283
+ "\n query GetOperations($input: JSON!, $type: SchemaType!, $tag: String) {\n schema(input: $input, type: $type) {\n operations(tag: $tag) {\n slug\n deprecated\n method\n summary\n operationId\n path\n tags {\n name\n }\n }\n untagged: operations(untagged: true) {\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n": da
284
284
  };
285
- function Ke(t) {
286
- return oa[t] ?? {};
285
+ function tt(t) {
286
+ return ca[t] ?? {};
287
287
  }
288
- const la = xe(
288
+ const ma = ve(
289
289
  "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",
290
290
  {
291
291
  variants: {
@@ -298,98 +298,98 @@ const la = xe(
298
298
  variant: "default"
299
299
  }
300
300
  }
301
- ), de = f.forwardRef(({ className: t, variant: a, ...s }, n) => /* @__PURE__ */ e.jsx(
301
+ ), ue = x.forwardRef(({ className: t, variant: a, ...s }, n) => /* @__PURE__ */ e.jsx(
302
302
  "div",
303
303
  {
304
304
  ref: n,
305
305
  role: "alert",
306
- className: u(la({ variant: a }), t),
306
+ className: m(ma({ variant: a }), t),
307
307
  ...s
308
308
  }
309
309
  ));
310
- de.displayName = "Alert";
311
- const ce = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
310
+ ue.displayName = "Alert";
311
+ const pe = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
312
312
  "h5",
313
313
  {
314
314
  ref: s,
315
- className: u("mb-1 font-medium leading-none tracking-tight", t),
315
+ className: m("mb-1 font-medium leading-none tracking-tight", t),
316
316
  ...a
317
317
  }
318
318
  ));
319
- ce.displayName = "AlertTitle";
320
- const me = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
319
+ pe.displayName = "AlertTitle";
320
+ const he = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
321
321
  "div",
322
322
  {
323
323
  ref: s,
324
- className: u("text-sm [&_p]:leading-relaxed", t),
324
+ className: m("text-sm [&_p]:leading-relaxed", t),
325
325
  ...a
326
326
  }
327
327
  ));
328
- me.displayName = "AlertDescription";
329
- const ia = ({
328
+ he.displayName = "AlertDescription";
329
+ const ua = ({
330
330
  path: t,
331
331
  renderParam: a
332
332
  }) => {
333
333
  let s = 0;
334
- return t.split("/").map((n, o, d) => {
334
+ return t.split("/").map((n, r, i) => {
335
335
  const l = Array.from(n.matchAll(/{([^}]+)}/g)), c = [];
336
- let i = 0;
337
- return l.forEach((p) => {
338
- const [g, w] = p;
339
- if (!w) return;
340
- const j = p.index;
341
- j > i && c.push(
342
- /* @__PURE__ */ e.jsx(I, { children: n.slice(i, j) }, `text-${i}-${j}`)
336
+ let d = 0;
337
+ return l.forEach((u) => {
338
+ const [g, C] = u;
339
+ if (!C) return;
340
+ const b = u.index;
341
+ b > d && c.push(
342
+ /* @__PURE__ */ e.jsx(k, { children: n.slice(d, b) }, `text-${d}-${b}`)
343
343
  ), c.push(
344
- /* @__PURE__ */ e.jsx(I, { children: a({ name: w, originalValue: g, index: s++ }) }, `param-${w}`)
345
- ), i = j + g.length;
346
- }), i < n.length && c.push(
347
- /* @__PURE__ */ e.jsx(I, { children: n.slice(i) }, `text-${i}-${n.length}`)
344
+ /* @__PURE__ */ e.jsx(k, { children: a({ name: C, originalValue: g, index: s++ }) }, `param-${C}`)
345
+ ), d = b + g.length;
346
+ }), d < n.length && c.push(
347
+ /* @__PURE__ */ e.jsx(k, { children: n.slice(d) }, `text-${d}-${n.length}`)
348
348
  ), // eslint-disable-next-line react/no-array-index-key
349
- /* @__PURE__ */ e.jsxs(I, { children: [
349
+ /* @__PURE__ */ e.jsxs(k, { children: [
350
350
  c,
351
- o < d.length - 1 && "/",
351
+ r < i.length - 1 && "/",
352
352
  /* @__PURE__ */ e.jsx("wbr", {})
353
- ] }, `${n}-${o}`);
353
+ ] }, `${n}-${r}`);
354
354
  });
355
- }, da = xe(
355
+ }, pa = ve(
356
356
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
357
- ), V = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
358
- Qe.Root,
357
+ ), z = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
358
+ Xe.Root,
359
359
  {
360
360
  ref: s,
361
- className: u(da(), t),
361
+ className: m(pa(), t),
362
362
  ...a
363
363
  }
364
364
  ));
365
- V.displayName = Qe.Root.displayName;
366
- const ve = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
367
- G.Root,
365
+ z.displayName = Xe.Root.displayName;
366
+ const we = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
367
+ M.Root,
368
368
  {
369
- className: u("grid gap-2", t),
369
+ className: m("grid gap-2", t),
370
370
  ...a,
371
371
  ref: s
372
372
  }
373
373
  ));
374
- ve.displayName = G.Root.displayName;
375
- const Q = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
376
- G.Item,
374
+ we.displayName = M.Root.displayName;
375
+ const Y = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
376
+ M.Item,
377
377
  {
378
378
  ref: s,
379
- className: u(
379
+ className: m(
380
380
  "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",
381
381
  t
382
382
  ),
383
383
  ...a,
384
- children: /* @__PURE__ */ e.jsx(G.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(ft, { className: "h-2.5 w-2.5 fill-current text-current" }) })
384
+ children: /* @__PURE__ */ e.jsx(M.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(bt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
385
385
  }
386
386
  ));
387
- Q.displayName = G.Item.displayName;
388
- const Xe = f.forwardRef(
387
+ Y.displayName = M.Item.displayName;
388
+ const at = x.forwardRef(
389
389
  ({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
390
390
  "textarea",
391
391
  {
392
- className: u(
392
+ className: m(
393
393
  "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",
394
394
  t
395
395
  ),
@@ -398,52 +398,52 @@ const Xe = f.forwardRef(
398
398
  }
399
399
  )
400
400
  );
401
- Xe.displayName = "Textarea";
402
- const ne = (t) => Math.abs(
401
+ at.displayName = "Textarea";
402
+ const le = (t) => Math.abs(
403
403
  isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
404
- ), re = (t) => t.length > 1 ? parseInt(t.split("").reduce((a, s) => `${ne(a) + ne(s)}`)) : ne(t), ze = (t, a = {}) => {
405
- const s = (3 * re(t) + 2 * re(t) + re(t)) % 360, { saturation: n = 75, lightness: o = 60 } = a;
406
- return `${s}deg ${n}% ${o}%`;
407
- }, oe = "data-linked-param", ca = (t) => {
408
- const { resolvedTheme: a } = _t();
404
+ ), de = (t) => t.length > 1 ? parseInt(t.split("").reduce((a, s) => `${le(a) + le(s)}`)) : le(t), Ge = (t, a = {}) => {
405
+ const s = (3 * de(t) + 2 * de(t) + de(t)) % 360, { saturation: n = 75, lightness: r = 60 } = a;
406
+ return `${s}deg ${n}% ${r}%`;
407
+ }, ce = "data-linked-param", ha = (t) => {
408
+ const { resolvedTheme: a } = Wt();
409
409
  return {
410
- text: ze(
410
+ text: Ge(
411
411
  t,
412
412
  a === "light" ? { saturation: 95, lightness: 38 } : {}
413
413
  ),
414
- background: ze(
414
+ background: Ge(
415
415
  t,
416
416
  a === "light" ? { saturation: 85, lightness: 40 } : {}
417
417
  )
418
418
  };
419
- }, Ye = ({
419
+ }, st = ({
420
420
  name: t,
421
421
  className: a,
422
422
  slug: s,
423
423
  title: n,
424
- children: o,
425
- onClick: d
424
+ children: r,
425
+ onClick: i
426
426
  }) => {
427
- const l = q(null), c = s == null ? void 0 : s.replace(/[{}]/g, ""), i = t.replace(/[{}]/g, ""), { text: p, background: g } = ca(i), w = `hsl(${p} / 100%)`, j = `hsl(${g} / 10%)`, m = `hsl(${g} / 50%)`;
428
- return ue(() => {
427
+ const l = q(null), c = s == null ? void 0 : s.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: u, background: g } = ha(d), C = `hsl(${u} / 100%)`, b = `hsl(${g} / 10%)`, p = `hsl(${g} / 50%)`;
428
+ return fe(() => {
429
429
  if (!c || !l.current) return;
430
- const h = () => {
431
- document.querySelectorAll(`[${oe}="${c}"]`).forEach((v) => {
432
- v instanceof HTMLElement && (v.dataset.active = "true");
430
+ const f = () => {
431
+ document.querySelectorAll(`[${ce}="${c}"]`).forEach((y) => {
432
+ y instanceof HTMLElement && (y.dataset.active = "true");
433
433
  });
434
- }, x = () => {
435
- document.querySelectorAll(`[${oe}="${c}"]`).forEach((v) => {
436
- v instanceof HTMLElement && (v.dataset.active = "false");
434
+ }, h = () => {
435
+ document.querySelectorAll(`[${ce}="${c}"]`).forEach((y) => {
436
+ y instanceof HTMLElement && (y.dataset.active = "false");
437
437
  });
438
- }, y = l.current;
439
- return y.addEventListener("mouseenter", h), y.addEventListener("mouseleave", x), () => {
440
- y.removeEventListener("mouseenter", h), y.removeEventListener("mouseleave", x);
438
+ }, v = l.current;
439
+ return v.addEventListener("mouseenter", f), v.addEventListener("mouseleave", h), () => {
440
+ v.removeEventListener("mouseenter", f), v.removeEventListener("mouseleave", h);
441
441
  };
442
442
  }, [c]), /* @__PURE__ */ e.jsx(
443
443
  "span",
444
444
  {
445
- [oe]: c,
446
- className: u(
445
+ [ce]: c,
446
+ className: m(
447
447
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
448
448
  "relative rounded transition-all duration-100 rounded-lg",
449
449
  "border border-[--border-color] p-0.5 text-[--param-color] bg-[--background-color]",
@@ -453,32 +453,32 @@ const ne = (t) => Math.abs(
453
453
  title: n,
454
454
  suppressHydrationWarning: !0,
455
455
  ref: l,
456
- onClick: d,
456
+ onClick: i,
457
457
  style: {
458
- "--param-color": w,
459
- "--border-color": m,
460
- "--background-color": j
458
+ "--param-color": C,
459
+ "--border-color": p,
460
+ "--background-color": b
461
461
  },
462
- children: o ?? t
462
+ children: r ?? t
463
463
  }
464
464
  );
465
- }, ma = (t, a, s) => {
466
- const n = a.replace(/(:\w+|\{\w+})/g, (d) => {
467
- var i;
468
- const l = d.replace(/[:{}]/g, "");
469
- return ((i = s.pathParams.find((p) => p.name === l)) == null ? void 0 : i.value) ?? d;
470
- }), o = new URL(
465
+ }, xa = (t, a, s) => {
466
+ const n = a.replace(/(:\w+|\{\w+})/g, (i) => {
467
+ var d;
468
+ const l = i.replace(/[:{}]/g, "");
469
+ return ((d = s.pathParams.find((u) => u.name === l)) == null ? void 0 : d.value) ?? i;
470
+ }), r = new URL(
471
471
  n.replace(/^\//, ""),
472
472
  t.endsWith("/") ? t : `${t}/`
473
473
  );
474
- return s.queryParams.filter((d) => d.active).forEach((d) => {
475
- o.searchParams.set(d.name, d.value);
476
- }), o;
477
- }, et = b.Root, tt = b.Trigger, ua = b.Group, pa = f.forwardRef(({ className: t, inset: a, children: s, ...n }, o) => /* @__PURE__ */ e.jsxs(
478
- b.SubTrigger,
474
+ return s.queryParams.filter((i) => i.active).forEach((i) => {
475
+ r.searchParams.set(i.name, i.value);
476
+ }), r;
477
+ }, nt = j.Root, rt = j.Trigger, fa = j.Group, ga = x.forwardRef(({ className: t, inset: a, children: s, ...n }, r) => /* @__PURE__ */ e.jsxs(
478
+ j.SubTrigger,
479
479
  {
480
- ref: o,
481
- className: u(
480
+ ref: r,
481
+ className: m(
482
482
  "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",
483
483
  a && "pl-8",
484
484
  t
@@ -486,29 +486,29 @@ const ne = (t) => Math.abs(
486
486
  ...n,
487
487
  children: [
488
488
  s,
489
- /* @__PURE__ */ e.jsx(z, { className: "ml-auto h-4 w-4" })
489
+ /* @__PURE__ */ e.jsx(B, { className: "ml-auto h-4 w-4" })
490
490
  ]
491
491
  }
492
492
  ));
493
- pa.displayName = b.SubTrigger.displayName;
494
- const ha = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
495
- b.SubContent,
493
+ ga.displayName = j.SubTrigger.displayName;
494
+ const ya = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
495
+ j.SubContent,
496
496
  {
497
497
  ref: s,
498
- className: u(
498
+ className: m(
499
499
  "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",
500
500
  t
501
501
  ),
502
502
  ...a
503
503
  }
504
504
  ));
505
- ha.displayName = b.SubContent.displayName;
506
- const je = f.forwardRef(({ className: t, sideOffset: a = 4, ...s }, n) => /* @__PURE__ */ e.jsx(b.Portal, { children: /* @__PURE__ */ e.jsx(
507
- b.Content,
505
+ ya.displayName = j.SubContent.displayName;
506
+ const Ce = x.forwardRef(({ className: t, sideOffset: a = 4, ...s }, n) => /* @__PURE__ */ e.jsx(j.Portal, { children: /* @__PURE__ */ e.jsx(
507
+ j.Content,
508
508
  {
509
509
  ref: n,
510
510
  sideOffset: a,
511
- className: u(
511
+ className: m(
512
512
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
513
513
  "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",
514
514
  t
@@ -516,12 +516,12 @@ const je = f.forwardRef(({ className: t, sideOffset: a = 4, ...s }, n) => /* @__
516
516
  ...s
517
517
  }
518
518
  ) }));
519
- je.displayName = b.Content.displayName;
520
- const be = f.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */ e.jsx(
521
- b.Item,
519
+ Ce.displayName = j.Content.displayName;
520
+ const Te = x.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */ e.jsx(
521
+ j.Item,
522
522
  {
523
523
  ref: n,
524
- className: u(
524
+ className: m(
525
525
  "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",
526
526
  a && "pl-8",
527
527
  t
@@ -529,45 +529,45 @@ const be = f.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */
529
529
  ...s
530
530
  }
531
531
  ));
532
- be.displayName = b.Item.displayName;
533
- const xa = f.forwardRef(({ className: t, children: a, checked: s, ...n }, o) => /* @__PURE__ */ e.jsxs(
534
- b.CheckboxItem,
532
+ Te.displayName = j.Item.displayName;
533
+ const va = x.forwardRef(({ className: t, children: a, checked: s, ...n }, r) => /* @__PURE__ */ e.jsxs(
534
+ j.CheckboxItem,
535
535
  {
536
- ref: o,
537
- className: u(
536
+ ref: r,
537
+ className: m(
538
538
  "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",
539
539
  t
540
540
  ),
541
541
  checked: s,
542
542
  ...n,
543
543
  children: [
544
- /* @__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(gt, { className: "h-4 w-4" }) }) }),
544
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(j.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Nt, { className: "h-4 w-4" }) }) }),
545
545
  a
546
546
  ]
547
547
  }
548
548
  ));
549
- xa.displayName = b.CheckboxItem.displayName;
550
- const fa = f.forwardRef(({ className: t, children: a, ...s }, n) => /* @__PURE__ */ e.jsxs(
551
- b.RadioItem,
549
+ va.displayName = j.CheckboxItem.displayName;
550
+ const ja = x.forwardRef(({ className: t, children: a, ...s }, n) => /* @__PURE__ */ e.jsxs(
551
+ j.RadioItem,
552
552
  {
553
553
  ref: n,
554
- className: u(
554
+ className: m(
555
555
  "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",
556
556
  t
557
557
  ),
558
558
  ...s,
559
559
  children: [
560
- /* @__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(yt, { className: "h-4 w-4 fill-current" }) }) }),
560
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(j.ItemIndicator, { children: /* @__PURE__ */ e.jsx(wt, { className: "h-4 w-4 fill-current" }) }) }),
561
561
  a
562
562
  ]
563
563
  }
564
564
  ));
565
- fa.displayName = b.RadioItem.displayName;
566
- const at = f.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */ e.jsx(
567
- b.Label,
565
+ ja.displayName = j.RadioItem.displayName;
566
+ const ot = x.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */ e.jsx(
567
+ j.Label,
568
568
  {
569
569
  ref: n,
570
- className: u(
570
+ className: m(
571
571
  "px-2 py-1.5 text-sm font-semibold",
572
572
  a && "pl-8",
573
573
  t
@@ -575,88 +575,88 @@ const at = f.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */
575
575
  ...s
576
576
  }
577
577
  ));
578
- at.displayName = b.Label.displayName;
579
- const st = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
580
- b.Separator,
578
+ ot.displayName = j.Label.displayName;
579
+ const it = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
580
+ j.Separator,
581
581
  {
582
582
  ref: s,
583
- className: u("-mx-1 my-1 h-px bg-muted", t),
583
+ className: m("-mx-1 my-1 h-px bg-muted", t),
584
584
  ...a
585
585
  }
586
586
  ));
587
- st.displayName = b.Separator.displayName;
588
- const ga = ({
587
+ it.displayName = j.Separator.displayName;
588
+ const ba = ({
589
589
  examples: t,
590
590
  onSelect: a
591
- }) => /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-2 mt-2 items-end", children: /* @__PURE__ */ e.jsxs(et, { children: [
592
- /* @__PURE__ */ e.jsx(tt, { asChild: !0, children: /* @__PURE__ */ e.jsx(U, { variant: "outline", children: "Use Example" }) }),
593
- /* @__PURE__ */ e.jsx(je, { className: "w-56", children: t.map((s) => {
591
+ }) => /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-2 mt-2 items-end", children: /* @__PURE__ */ e.jsxs(nt, { children: [
592
+ /* @__PURE__ */ e.jsx(rt, { asChild: !0, children: /* @__PURE__ */ e.jsx(Z, { variant: "outline", children: "Use Example" }) }),
593
+ /* @__PURE__ */ e.jsx(Ce, { className: "w-56", children: t.map((s) => {
594
594
  var n;
595
595
  return /* @__PURE__ */ e.jsxs("div", { children: [
596
- /* @__PURE__ */ e.jsx(at, { children: s.mediaType }),
597
- /* @__PURE__ */ e.jsx(st, {}),
598
- /* @__PURE__ */ e.jsx(ua, { children: (n = s.examples) == null ? void 0 : n.map((o) => /* @__PURE__ */ e.jsx(
599
- be,
596
+ /* @__PURE__ */ e.jsx(ot, { children: s.mediaType }),
597
+ /* @__PURE__ */ e.jsx(it, {}),
598
+ /* @__PURE__ */ e.jsx(fa, { children: (n = s.examples) == null ? void 0 : n.map((r) => /* @__PURE__ */ e.jsx(
599
+ Te,
600
600
  {
601
- onSelect: () => a(o),
601
+ onSelect: () => a(r),
602
602
  className: "line-clamp-1",
603
- children: o.summary ?? o.name
603
+ children: r.summary ?? r.name
604
604
  },
605
- o.name
605
+ r.name
606
606
  )) })
607
607
  ] }, s.mediaType);
608
608
  }) })
609
- ] }) }), X = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
609
+ ] }) }), se = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
610
610
  "div",
611
611
  {
612
612
  ref: s,
613
- className: u(
613
+ className: m(
614
614
  "rounded-xl border bg-card text-card-foreground shadow-sm",
615
615
  t
616
616
  ),
617
617
  ...a
618
618
  }
619
619
  ));
620
- X.displayName = "Card";
621
- const ya = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
620
+ se.displayName = "Card";
621
+ const Na = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
622
622
  "div",
623
623
  {
624
624
  ref: s,
625
- className: u("flex flex-col space-y-1.5 p-6", t),
625
+ className: m("flex flex-col space-y-1.5 p-6", t),
626
626
  ...a
627
627
  }
628
628
  ));
629
- ya.displayName = "CardHeader";
630
- const va = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
629
+ Na.displayName = "CardHeader";
630
+ const wa = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
631
631
  "h3",
632
632
  {
633
633
  ref: s,
634
- className: u("font-semibold leading-none tracking-tight", t),
634
+ className: m("font-semibold leading-none tracking-tight", t),
635
635
  ...a
636
636
  }
637
637
  ));
638
- va.displayName = "CardTitle";
639
- const ja = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
638
+ wa.displayName = "CardTitle";
639
+ const Ca = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
640
640
  "p",
641
641
  {
642
642
  ref: s,
643
- className: u("text-sm text-muted-foreground", t),
643
+ className: m("text-sm text-muted-foreground", t),
644
644
  ...a
645
645
  }
646
646
  ));
647
- ja.displayName = "CardDescription";
648
- const ba = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...a }));
649
- ba.displayName = "CardContent";
650
- const Na = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
647
+ Ca.displayName = "CardDescription";
648
+ const Ta = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: m("p-6 pt-0", t), ...a }));
649
+ Ta.displayName = "CardContent";
650
+ const $a = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
651
651
  "div",
652
652
  {
653
653
  ref: s,
654
- className: u("flex items-center p-6 pt-0", t),
654
+ className: m("flex items-center p-6 pt-0", t),
655
655
  ...a
656
656
  }
657
657
  ));
658
- Na.displayName = "CardFooter";
659
- const wa = xe(
658
+ $a.displayName = "CardFooter";
659
+ const Sa = ve(
660
660
  "peer h-4 w-4 shrink-0 rounded-sm 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",
661
661
  {
662
662
  variants: {
@@ -669,43 +669,43 @@ const wa = xe(
669
669
  variant: "default"
670
670
  }
671
671
  }
672
- ), Ne = f.forwardRef(({ className: t, variant: a, ...s }, n) => /* @__PURE__ */ e.jsx(
673
- ie.Root,
672
+ ), $e = x.forwardRef(({ className: t, variant: a, ...s }, n) => /* @__PURE__ */ e.jsx(
673
+ me.Root,
674
674
  {
675
675
  ref: n,
676
- className: u(wa({ variant: a, className: t })),
676
+ className: m(Sa({ variant: a, className: t })),
677
677
  ...s,
678
678
  children: /* @__PURE__ */ e.jsx(
679
- ie.Indicator,
679
+ me.Indicator,
680
680
  {
681
- className: u("flex items-center justify-center text-current"),
682
- children: /* @__PURE__ */ e.jsx(vt, { className: "h-4 w-4" })
681
+ className: m("flex items-center justify-center text-current"),
682
+ children: /* @__PURE__ */ e.jsx(Ct, { className: "h-4 w-4" })
683
683
  }
684
684
  )
685
685
  }
686
686
  ));
687
- Ne.displayName = ie.Root.displayName;
688
- const nt = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
687
+ $e.displayName = me.Root.displayName;
688
+ const lt = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
689
689
  $,
690
690
  {
691
691
  ref: s,
692
- className: u(
692
+ className: m(
693
693
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
694
694
  t
695
695
  ),
696
696
  ...a
697
697
  }
698
698
  ));
699
- nt.displayName = $.displayName;
700
- const Ca = f.forwardRef(({ className: t, ...a }, s) => (
699
+ lt.displayName = $.displayName;
700
+ const Pa = x.forwardRef(({ className: t, ...a }, s) => (
701
701
  // eslint-disable-next-line react/no-unknown-property
702
702
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
703
- /* @__PURE__ */ e.jsx(jt, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
703
+ /* @__PURE__ */ e.jsx(Tt, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
704
704
  /* @__PURE__ */ e.jsx(
705
705
  $.Input,
706
706
  {
707
707
  ref: s,
708
- className: u(
708
+ className: m(
709
709
  "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
710
710
  t
711
711
  ),
@@ -714,14 +714,14 @@ const Ca = f.forwardRef(({ className: t, ...a }, s) => (
714
714
  )
715
715
  ] })
716
716
  ));
717
- Ca.displayName = $.Input.displayName;
718
- const rt = f.forwardRef(({ className: t, ...a }, s) => (
717
+ Pa.displayName = $.Input.displayName;
718
+ const dt = x.forwardRef(({ className: t, ...a }, s) => (
719
719
  // eslint-disable-next-line react/no-unknown-property
720
720
  /* @__PURE__ */ e.jsx("div", { className: "flex items-center", "cmdk-input-wrapper": "", children: /* @__PURE__ */ e.jsx(
721
721
  $.Input,
722
722
  {
723
723
  ref: s,
724
- className: u(
724
+ className: m(
725
725
  "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
726
726
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
727
727
  t
@@ -730,17 +730,17 @@ const rt = f.forwardRef(({ className: t, ...a }, s) => (
730
730
  }
731
731
  ) })
732
732
  ));
733
- rt.displayName = $.Input.displayName;
734
- const ot = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
733
+ dt.displayName = $.Input.displayName;
734
+ const ct = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
735
735
  $.List,
736
736
  {
737
737
  ref: s,
738
- className: u("max-h-[300px] overflow-y-auto overflow-x-hidden", t),
738
+ className: m("max-h-[300px] overflow-y-auto overflow-x-hidden", t),
739
739
  ...a
740
740
  }
741
741
  ));
742
- ot.displayName = $.List.displayName;
743
- const Ta = f.forwardRef((t, a) => /* @__PURE__ */ e.jsx(
742
+ ct.displayName = $.List.displayName;
743
+ const Ra = x.forwardRef((t, a) => /* @__PURE__ */ e.jsx(
744
744
  $.Empty,
745
745
  {
746
746
  ref: a,
@@ -748,134 +748,134 @@ const Ta = f.forwardRef((t, a) => /* @__PURE__ */ e.jsx(
748
748
  ...t
749
749
  }
750
750
  ));
751
- Ta.displayName = $.Empty.displayName;
752
- const $a = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
751
+ Ra.displayName = $.Empty.displayName;
752
+ const ka = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
753
753
  $.Group,
754
754
  {
755
755
  ref: s,
756
- className: u(
756
+ className: m(
757
757
  "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
758
758
  t
759
759
  ),
760
760
  ...a
761
761
  }
762
762
  ));
763
- $a.displayName = $.Group.displayName;
764
- const Sa = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
763
+ ka.displayName = $.Group.displayName;
764
+ const Ia = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
765
765
  $.Separator,
766
766
  {
767
767
  ref: s,
768
- className: u("-mx-1 h-px bg-border", t),
768
+ className: m("-mx-1 h-px bg-border", t),
769
769
  ...a
770
770
  }
771
771
  ));
772
- Sa.displayName = $.Separator.displayName;
773
- const lt = f.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
772
+ Ia.displayName = $.Separator.displayName;
773
+ const mt = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
774
774
  $.Item,
775
775
  {
776
776
  ref: s,
777
- className: u(
777
+ className: m(
778
778
  "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
779
779
  t
780
780
  ),
781
781
  ...a
782
782
  }
783
783
  ));
784
- lt.displayName = $.Item.displayName;
785
- const Pa = J.Root, it = f.forwardRef(({ className: t, align: a = "center", sideOffset: s = 4, ...n }, o) => /* @__PURE__ */ e.jsx(J.Portal, { children: /* @__PURE__ */ e.jsx(
786
- J.Content,
784
+ mt.displayName = $.Item.displayName;
785
+ const Oa = X.Root, ut = x.forwardRef(({ className: t, align: a = "center", sideOffset: s = 4, ...n }, r) => /* @__PURE__ */ e.jsx(X.Portal, { children: /* @__PURE__ */ e.jsx(
786
+ X.Content,
787
787
  {
788
- ref: o,
788
+ ref: r,
789
789
  align: a,
790
790
  sideOffset: s,
791
- className: u(
791
+ className: m(
792
792
  "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",
793
793
  t
794
794
  ),
795
795
  ...n
796
796
  }
797
797
  ) }));
798
- it.displayName = J.Content.displayName;
799
- const ka = ({
798
+ ut.displayName = X.Content.displayName;
799
+ const Ea = ({
800
800
  value: t,
801
801
  options: a,
802
802
  onChange: s,
803
803
  className: n,
804
- placeholder: o = "Enter value",
805
- onEnterPress: d,
804
+ placeholder: r = "Enter value",
805
+ onEnterPress: i,
806
806
  ref: l
807
807
  }) => {
808
- const [c, i] = H(!1), [p, g] = H(!1), w = qt((m) => m.filtered.count), j = q(null);
809
- return /* @__PURE__ */ e.jsxs(Pa, { open: c, children: [
810
- /* @__PURE__ */ e.jsx(Wt, { children: /* @__PURE__ */ e.jsx(
811
- rt,
808
+ const [c, d] = U(!1), [u, g] = U(!1), C = Ft((p) => p.filtered.count), b = q(null);
809
+ return /* @__PURE__ */ e.jsxs(Oa, { open: c, children: [
810
+ /* @__PURE__ */ e.jsx(Yt, { children: /* @__PURE__ */ e.jsx(
811
+ dt,
812
812
  {
813
- ref: (m) => {
814
- j.current = m, typeof l == "function" ? l(m) : l && (l.current = m);
813
+ ref: (p) => {
814
+ b.current = p, typeof l == "function" ? l(p) : l && (l.current = p);
815
815
  },
816
816
  value: t,
817
- placeholder: o,
818
- className: u("h-9 bg-transparent", n),
819
- onFocus: () => i(!0),
817
+ placeholder: r,
818
+ className: m("h-9 bg-transparent", n),
819
+ onFocus: () => d(!0),
820
820
  onBlur: () => {
821
- p || i(!1);
821
+ u || d(!1);
822
822
  },
823
- onKeyDown: (m) => {
824
- var h;
825
- m.key === "Enter" && (i(!1), (h = j.current) == null || h.blur(), d == null || d(m));
823
+ onKeyDown: (p) => {
824
+ var f;
825
+ p.key === "Enter" && (d(!1), (f = b.current) == null || f.blur(), i == null || i(p));
826
826
  },
827
- onValueChange: (m) => s(m)
827
+ onValueChange: (p) => s(p)
828
828
  }
829
829
  ) }),
830
830
  /* @__PURE__ */ e.jsx(
831
- it,
831
+ ut,
832
832
  {
833
833
  onMouseEnter: () => g(!0),
834
834
  onMouseLeave: () => g(!1),
835
- onOpenAutoFocus: (m) => m.preventDefault(),
836
- className: u("p-0 w-[--radix-popover-trigger-width]", {
837
- "border-0": w === 0
835
+ onOpenAutoFocus: (p) => p.preventDefault(),
836
+ className: m("p-0 w-[--radix-popover-trigger-width]", {
837
+ "border-0": C === 0
838
838
  }),
839
839
  align: "start",
840
840
  side: "bottom",
841
- onWheel: (m) => {
842
- m.stopPropagation();
841
+ onWheel: (p) => {
842
+ p.stopPropagation();
843
843
  },
844
- onTouchMove: (m) => {
845
- m.stopPropagation();
844
+ onTouchMove: (p) => {
845
+ p.stopPropagation();
846
846
  },
847
- children: /* @__PURE__ */ e.jsx(ot, { className: "max-h-[140px]", children: a.map((m) => /* @__PURE__ */ e.jsx(
848
- lt,
847
+ children: /* @__PURE__ */ e.jsx(ct, { className: "max-h-[140px]", children: a.map((p) => /* @__PURE__ */ e.jsx(
848
+ mt,
849
849
  {
850
- value: m,
851
- onSelect: (h) => {
852
- s(h), i(!1);
850
+ value: p,
851
+ onSelect: (f) => {
852
+ s(f), d(!1);
853
853
  },
854
854
  className: "cursor-pointer",
855
- children: m
855
+ children: p
856
856
  },
857
- m
857
+ p
858
858
  )) })
859
859
  }
860
860
  )
861
861
  ] });
862
- }, W = ({ shouldFilter: t, ...a }) => /* @__PURE__ */ e.jsx(nt, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(ka, { ...a }) }), we = (t, a) => {
863
- const s = f.forwardRef(({ className: n, asChild: o, ...d }, l) => {
864
- const c = o ? Zt : t;
865
- return f.createElement(c, {
866
- ...d,
862
+ }, ee = ({ shouldFilter: t, ...a }) => /* @__PURE__ */ e.jsx(lt, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(Ea, { ...a }) }), Se = (t, a) => {
863
+ const s = x.forwardRef(({ className: n, asChild: r, ...i }, l) => {
864
+ const c = r ? ea : t;
865
+ return x.createElement(c, {
866
+ ...i,
867
867
  ref: l,
868
- className: typeof a == "function" ? a({ className: n }) : u(a, n)
868
+ className: typeof a == "function" ? a({ className: n }) : m(a, n)
869
869
  });
870
870
  });
871
871
  return s.displayName = `VariantComponent(${t})`, s;
872
- }, Ce = we(
872
+ }, Pe = Se(
873
873
  "div",
874
874
  "grid grid-cols-[2fr_3fr] gap-2 items-center"
875
- ), Te = we(
875
+ ), Re = Se(
876
876
  "div",
877
877
  "group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
878
- ), Ra = Object.freeze([
878
+ ), Aa = Object.freeze([
879
879
  "Accept",
880
880
  "Accept-Encoding",
881
881
  "Accept-Language",
@@ -902,71 +902,71 @@ const ka = ({
902
902
  "Set-Cookie",
903
903
  "User-Agent",
904
904
  "X-Requested-With"
905
- ]), Ia = ({
905
+ ]), qa = ({
906
906
  control: t,
907
907
  headers: a
908
908
  }) => {
909
- const { fields: s, append: n, remove: o } = pe({
909
+ const { fields: s, append: n, remove: r } = ge({
910
910
  control: t,
911
911
  name: "headers"
912
- }), { setValue: d, watch: l } = he(), c = q([]), i = q([]), p = l("headers"), g = Et(() => {
912
+ }), { setValue: i, watch: l } = ye(), c = q([]), d = q([]), u = l("headers"), g = Lt(() => {
913
913
  n({ name: "", value: "", active: !1 });
914
914
  }, [n]);
915
- ue(() => {
916
- p.length === 0 && g();
917
- }, [p, g]);
918
- const w = (h) => {
919
- var x;
920
- (x = c.current[h]) == null || x.focus();
921
- }, j = (h) => {
915
+ fe(() => {
916
+ u.length === 0 && g();
917
+ }, [u, g]);
918
+ const C = (f) => {
919
+ var h;
920
+ (h = c.current[f]) == null || h.focus();
921
+ }, b = (f) => {
922
922
  g(), requestAnimationFrame(() => {
923
- var x;
924
- return (x = i.current[h + 1]) == null ? void 0 : x.focus();
923
+ var h;
924
+ return (h = d.current[f + 1]) == null ? void 0 : h.focus();
925
925
  });
926
- }, m = a.filter((h) => !p.some((x) => x.name === h.name)).map(({ name: h }) => h);
926
+ }, p = a.filter((f) => !u.some((h) => h.name === f.name)).map(({ name: f }) => f);
927
927
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
928
- /* @__PURE__ */ e.jsx(X, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Ce, { children: s.map((h, x) => {
929
- const y = a.find(
930
- (v) => v.name === l(`headers.${x}.name`)
928
+ /* @__PURE__ */ e.jsx(se, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Pe, { children: s.map((f, h) => {
929
+ const v = a.find(
930
+ (y) => y.name === l(`headers.${h}.name`)
931
931
  );
932
- return /* @__PURE__ */ e.jsxs(Te, { children: [
932
+ return /* @__PURE__ */ e.jsxs(Re, { children: [
933
933
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 ", children: [
934
934
  /* @__PURE__ */ e.jsx(
935
- O,
935
+ I,
936
936
  {
937
937
  control: t,
938
- name: `headers.${x}.active`,
939
- render: ({ field: v }) => /* @__PURE__ */ e.jsx(
940
- Ne,
938
+ name: `headers.${h}.active`,
939
+ render: ({ field: y }) => /* @__PURE__ */ e.jsx(
940
+ $e,
941
941
  {
942
942
  variant: "outline",
943
- id: `headers.${x}.active`,
944
- checked: v.value,
943
+ id: `headers.${h}.active`,
944
+ checked: y.value,
945
945
  onCheckedChange: (N) => {
946
- v.onChange(N);
946
+ y.onChange(N);
947
947
  }
948
948
  }
949
949
  )
950
950
  }
951
951
  ),
952
952
  /* @__PURE__ */ e.jsx(
953
- O,
953
+ I,
954
954
  {
955
955
  control: t,
956
- name: `headers.${x}.name`,
957
- render: ({ field: v }) => /* @__PURE__ */ e.jsx(
958
- W,
956
+ name: `headers.${h}.name`,
957
+ render: ({ field: y }) => /* @__PURE__ */ e.jsx(
958
+ ee,
959
959
  {
960
- ...v,
960
+ ...y,
961
961
  placeholder: "Name",
962
962
  className: "border-0 shadow-none bg-transparent text-xs font-mono",
963
- options: [...m, ...Ra],
964
- onEnterPress: () => w(x),
963
+ options: [...p, ...Aa],
964
+ onEnterPress: () => C(h),
965
965
  onChange: (N) => {
966
- v.onChange(N), d(`headers.${x}.active`, !0);
966
+ y.onChange(N), i(`headers.${h}.active`, !0);
967
967
  },
968
968
  ref: (N) => {
969
- i.current[x] = N;
969
+ d.current[h] = N;
970
970
  }
971
971
  }
972
972
  )
@@ -975,32 +975,32 @@ const ka = ({
975
975
  ] }),
976
976
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
977
977
  /* @__PURE__ */ e.jsx(
978
- O,
978
+ I,
979
979
  {
980
980
  control: t,
981
- name: `headers.${x}.value`,
982
- render: ({ field: v }) => (y == null ? void 0 : y.enum) && y.enum.length > 0 ? /* @__PURE__ */ e.jsx(
983
- W,
981
+ name: `headers.${h}.value`,
982
+ render: ({ field: y }) => (v == null ? void 0 : v.enum) && v.enum.length > 0 ? /* @__PURE__ */ e.jsx(
983
+ ee,
984
984
  {
985
985
  shouldFilter: !1,
986
- value: v.value,
987
- options: y.enum ?? [],
988
- onChange: (C) => {
989
- v.onChange(C), d(`headers.${x}.active`, !0);
986
+ value: y.value,
987
+ options: v.enum ?? [],
988
+ onChange: (w) => {
989
+ y.onChange(w), i(`headers.${h}.active`, !0);
990
990
  },
991
991
  className: "font-mono text-xs border-0"
992
992
  }
993
993
  ) : /* @__PURE__ */ e.jsx(
994
- ge,
994
+ be,
995
995
  {
996
996
  placeholder: "Value",
997
997
  className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
998
- ...v,
999
- ref: (C) => {
1000
- c.current[x] = C;
998
+ ...y,
999
+ ref: (w) => {
1000
+ c.current[h] = w;
1001
1001
  },
1002
- onKeyDown: (C) => {
1003
- C.key === "Enter" && C.currentTarget.value.trim() && j(x);
1002
+ onKeyDown: (w) => {
1003
+ w.key === "Enter" && w.currentTarget.value.trim() && b(h);
1004
1004
  },
1005
1005
  autoComplete: "off"
1006
1006
  }
@@ -1008,21 +1008,21 @@ const ka = ({
1008
1008
  }
1009
1009
  ),
1010
1010
  /* @__PURE__ */ e.jsx(
1011
- _,
1011
+ K,
1012
1012
  {
1013
1013
  size: "icon",
1014
1014
  variant: "ghost",
1015
1015
  className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
1016
- onClick: () => o(x),
1016
+ onClick: () => r(h),
1017
1017
  type: "button",
1018
- children: /* @__PURE__ */ e.jsx(bt, { size: 16 })
1018
+ children: /* @__PURE__ */ e.jsx($t, { size: 16 })
1019
1019
  }
1020
1020
  )
1021
1021
  ] })
1022
- ] }, h.id);
1022
+ ] }, f.id);
1023
1023
  }) }) }),
1024
1024
  /* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
1025
- _,
1025
+ K,
1026
1026
  {
1027
1027
  className: "",
1028
1028
  onClick: g,
@@ -1032,21 +1032,21 @@ const ka = ({
1032
1032
  }
1033
1033
  ) })
1034
1034
  ] });
1035
- }, Oa = ({
1035
+ }, Da = ({
1036
1036
  control: t
1037
1037
  }) => {
1038
- const { fields: a } = pe({
1038
+ const { fields: a } = ge({
1039
1039
  control: t,
1040
1040
  name: "pathParams"
1041
1041
  });
1042
- return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Ce, { children: a.map((s, n) => /* @__PURE__ */ e.jsxs(Te, { children: [
1042
+ return /* @__PURE__ */ e.jsx(se, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Pe, { children: a.map((s, n) => /* @__PURE__ */ e.jsxs(Re, { children: [
1043
1043
  /* @__PURE__ */ e.jsx(
1044
- O,
1044
+ I,
1045
1045
  {
1046
1046
  control: t,
1047
1047
  name: `pathParams.${n}.name`,
1048
1048
  render: () => /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ e.jsx(
1049
- Ye,
1049
+ st,
1050
1050
  {
1051
1051
  slug: s.name,
1052
1052
  name: s.name,
@@ -1056,14 +1056,14 @@ const ka = ({
1056
1056
  }
1057
1057
  ),
1058
1058
  /* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
1059
- O,
1059
+ I,
1060
1060
  {
1061
1061
  control: t,
1062
1062
  name: `pathParams.${n}.value`,
1063
- render: ({ field: o }) => /* @__PURE__ */ e.jsx(
1064
- ge,
1063
+ render: ({ field: r }) => /* @__PURE__ */ e.jsx(
1064
+ be,
1065
1065
  {
1066
- ...o,
1066
+ ...r,
1067
1067
  required: !0,
1068
1068
  placeholder: "Enter value",
1069
1069
  className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0"
@@ -1072,62 +1072,62 @@ const ka = ({
1072
1072
  }
1073
1073
  ) })
1074
1074
  ] }, s.id)) }) });
1075
- }, Ea = we(
1075
+ }, La = Se(
1076
1076
  "input",
1077
1077
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
1078
- ), Aa = ({
1078
+ ), Va = ({
1079
1079
  control: t,
1080
1080
  queryParams: a
1081
1081
  }) => {
1082
- const { fields: s } = pe({
1082
+ const { fields: s } = ge({
1083
1083
  control: t,
1084
1084
  name: "queryParams"
1085
- }), n = he(), o = a.map((d) => !!d.isRequired);
1086
- return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Ce, { children: s.map((d, l) => {
1085
+ }), n = ye(), r = a.map((i) => !!i.isRequired);
1086
+ return /* @__PURE__ */ e.jsx(se, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Pe, { children: s.map((i, l) => {
1087
1087
  const c = a.find(
1088
- (i) => i.name === n.watch(`queryParams.${l}.name`)
1088
+ (d) => d.name === n.watch(`queryParams.${l}.name`)
1089
1089
  );
1090
- return /* @__PURE__ */ e.jsxs(Te, { children: [
1090
+ return /* @__PURE__ */ e.jsxs(Re, { children: [
1091
1091
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
1092
1092
  /* @__PURE__ */ e.jsx(
1093
- O,
1093
+ I,
1094
1094
  {
1095
1095
  control: t,
1096
1096
  name: `queryParams.${l}.active`,
1097
- render: ({ field: i }) => /* @__PURE__ */ e.jsx(
1098
- Ne,
1097
+ render: ({ field: d }) => /* @__PURE__ */ e.jsx(
1098
+ $e,
1099
1099
  {
1100
1100
  variant: "outline",
1101
1101
  id: `queryParams.${l}.active`,
1102
1102
  className: "mr-2",
1103
- checked: i.value,
1104
- onCheckedChange: i.onChange
1103
+ checked: d.value,
1104
+ onCheckedChange: d.onChange
1105
1105
  }
1106
1106
  )
1107
1107
  }
1108
1108
  ),
1109
1109
  /* @__PURE__ */ e.jsx(
1110
- O,
1110
+ I,
1111
1111
  {
1112
1112
  control: t,
1113
- render: ({ field: i }) => o[l] ? /* @__PURE__ */ e.jsx(Ea, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1113
+ render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(La, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1114
1114
  "label",
1115
1115
  {
1116
1116
  className: "flex items-center cursor-pointer gap-1",
1117
1117
  htmlFor: `queryParams.${l}.active`,
1118
- title: o[l] ? "Required field" : void 0,
1118
+ title: r[l] ? "Required field" : void 0,
1119
1119
  children: [
1120
- i.value,
1121
- o[l] && /* @__PURE__ */ e.jsx("sup", { children: " *" })
1120
+ d.value,
1121
+ r[l] && /* @__PURE__ */ e.jsx("sup", { children: " *" })
1122
1122
  ]
1123
1123
  }
1124
1124
  ) }) : /* @__PURE__ */ e.jsx(
1125
- W,
1125
+ ee,
1126
1126
  {
1127
- value: i.value,
1128
- options: a.map((p) => p.name),
1129
- onChange: (p) => {
1130
- i.onChange(p);
1127
+ value: d.value,
1128
+ options: a.map((u) => u.name),
1129
+ onChange: (u) => {
1130
+ d.onChange(u);
1131
1131
  },
1132
1132
  className: "border-0 font-mono text-xs bg-transparent hover:bg-transparent"
1133
1133
  }
@@ -1135,27 +1135,27 @@ const ka = ({
1135
1135
  name: `queryParams.${l}.name`
1136
1136
  }
1137
1137
  )
1138
- ] }, d.id),
1138
+ ] }, i.id),
1139
1139
  /* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
1140
- O,
1140
+ I,
1141
1141
  {
1142
1142
  control: t,
1143
- render: ({ field: i }) => (c == null ? void 0 : c.enum) && c.enum.length > 0 ? /* @__PURE__ */ e.jsx(
1144
- W,
1143
+ render: ({ field: d }) => (c == null ? void 0 : c.enum) && c.enum.length > 0 ? /* @__PURE__ */ e.jsx(
1144
+ ee,
1145
1145
  {
1146
- value: i.value,
1146
+ value: d.value,
1147
1147
  options: c.enum ?? [],
1148
1148
  onChange: (g) => {
1149
- i.onChange(g), n.setValue(`queryParams.${l}.active`, !0);
1149
+ d.onChange(g), n.setValue(`queryParams.${l}.active`, !0);
1150
1150
  },
1151
1151
  className: "font-mono text-xs border-0 ring-1 ring-ring"
1152
1152
  }
1153
1153
  ) : /* @__PURE__ */ e.jsx(
1154
- ge,
1154
+ be,
1155
1155
  {
1156
- ...i,
1156
+ ...d,
1157
1157
  onChange: (g) => {
1158
- i.onChange(g.target.value), g.target.value.length > 0 && n.setValue(`queryParams.${l}.active`, !0);
1158
+ d.onChange(g.target.value), g.target.value.length > 0 && n.setValue(`queryParams.${l}.active`, !0);
1159
1159
  },
1160
1160
  placeholder: "Enter value",
1161
1161
  className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
@@ -1164,7 +1164,7 @@ const ka = ({
1164
1164
  name: `queryParams.${l}.value`
1165
1165
  }
1166
1166
  ) })
1167
- ] }, d.id);
1167
+ ] }, i.id);
1168
1168
  }) }) }) });
1169
1169
  }, P = {
1170
1170
  green: "text-green-600",
@@ -1174,7 +1174,7 @@ const ka = ({
1174
1174
  purple: "text-purple-600",
1175
1175
  indigo: "text-indigo-600",
1176
1176
  gray: "text-gray-600"
1177
- }, qa = {
1177
+ }, Fa = {
1178
1178
  get: P.green,
1179
1179
  post: P.blue,
1180
1180
  put: P.yellow,
@@ -1183,39 +1183,39 @@ const ka = ({
1183
1183
  options: P.indigo,
1184
1184
  head: P.gray,
1185
1185
  trace: P.gray
1186
- }, Da = (t) => qa[t.toLocaleLowerCase()] ?? P.gray, La = ({
1186
+ }, za = (t) => Fa[t.toLocaleLowerCase()] ?? P.gray, Ha = ({
1187
1187
  method: t,
1188
1188
  url: a,
1189
1189
  headers: s,
1190
1190
  body: n
1191
1191
  }) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
1192
1192
  /* @__PURE__ */ e.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
1193
- /* @__PURE__ */ e.jsx("span", { className: u(Da(t), "font-semibold"), children: t }),
1193
+ /* @__PURE__ */ e.jsx("span", { className: m(za(t), "font-semibold"), children: t }),
1194
1194
  " ",
1195
1195
  /* @__PURE__ */ e.jsx("span", { className: "break-all", children: a }),
1196
1196
  " ",
1197
1197
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
1198
1198
  ] }),
1199
1199
  /* @__PURE__ */ e.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
1200
- /* @__PURE__ */ e.jsxs(Le, { defaultOpen: !0, children: [
1201
- /* @__PURE__ */ e.jsxs(Ve, { className: "flex items-center gap-2 hover:text-primary group", children: [
1202
- /* @__PURE__ */ e.jsx(z, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1200
+ /* @__PURE__ */ e.jsxs(Fe, { defaultOpen: !0, children: [
1201
+ /* @__PURE__ */ e.jsxs(ze, { className: "flex items-center gap-2 hover:text-primary group", children: [
1202
+ /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1203
1203
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1204
1204
  ] }),
1205
- /* @__PURE__ */ e.jsx(Fe, { 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(([o, d]) => /* @__PURE__ */ e.jsxs(I, { children: [
1206
- /* @__PURE__ */ e.jsx("div", { className: "text-primary", children: o }),
1207
- /* @__PURE__ */ e.jsx("div", { className: "break-words", children: d })
1208
- ] }, o)) }) })
1205
+ /* @__PURE__ */ e.jsx(He, { 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(k, { children: [
1206
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary", children: r }),
1207
+ /* @__PURE__ */ e.jsx("div", { className: "break-all", children: i })
1208
+ ] }, r)) }) })
1209
1209
  ] }),
1210
- /* @__PURE__ */ e.jsxs(Le, { defaultOpen: !0, children: [
1211
- /* @__PURE__ */ e.jsxs(Ve, { className: "flex items-center gap-2 hover:text-primary group", children: [
1212
- /* @__PURE__ */ e.jsx(z, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1210
+ /* @__PURE__ */ e.jsxs(Fe, { defaultOpen: !0, children: [
1211
+ /* @__PURE__ */ e.jsxs(ze, { className: "flex items-center gap-2 hover:text-primary group", children: [
1212
+ /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1213
1213
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Body" })
1214
1214
  ] }),
1215
- /* @__PURE__ */ e.jsx(Fe, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
1215
+ /* @__PURE__ */ e.jsx(He, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
1216
1216
  "div",
1217
1217
  {
1218
- className: u(
1218
+ className: m(
1219
1219
  "whitespace-pre-wrap break-all bg-muted p-2 rounded-md",
1220
1220
  !n && "text-muted-foreground"
1221
1221
  ),
@@ -1224,29 +1224,29 @@ const ka = ({
1224
1224
  ) }) })
1225
1225
  ] })
1226
1226
  ] })
1227
- ] }), He = ye.Root, Ge = ye.CollapsibleTrigger, Be = ye.CollapsibleContent;
1228
- function $e(t) {
1227
+ ] }), Be = Ne.Root, Ue = Ne.CollapsibleTrigger, Me = Ne.CollapsibleContent;
1228
+ function ke(t) {
1229
1229
  if (t === null) return "null";
1230
1230
  if (Array.isArray(t)) {
1231
1231
  if (t.length === 0) return "any[]";
1232
1232
  const a = t[0];
1233
- return a === void 0 ? "any[]" : `${$e(a)}[]`;
1233
+ return a === void 0 ? "any[]" : `${ke(a)}[]`;
1234
1234
  }
1235
- return typeof t == "object" ? Va(t) : typeof t;
1235
+ return typeof t == "object" ? Ga(t) : typeof t;
1236
1236
  }
1237
- function Va(t, a = "") {
1237
+ function Ga(t, a = "") {
1238
1238
  const s = ["{"];
1239
- for (const [n, o] of Object.entries(t)) {
1240
- const d = $e(o);
1241
- s.push(` ${n}: ${d};`);
1239
+ for (const [n, r] of Object.entries(t)) {
1240
+ const i = ke(r);
1241
+ s.push(` ${n}: ${i};`);
1242
1242
  }
1243
1243
  return s.push("}"), s.join(`
1244
1244
  `);
1245
1245
  }
1246
- function Fa(t) {
1247
- return { lines: [`type GeneratedType = ${$e(t)};`] };
1246
+ function Ba(t) {
1247
+ return { lines: [`type GeneratedType = ${ke(t)};`] };
1248
1248
  }
1249
- const za = {
1249
+ const Ua = {
1250
1250
  200: "OK",
1251
1251
  201: "Created",
1252
1252
  202: "Accepted",
@@ -1257,7 +1257,7 @@ const za = {
1257
1257
  404: "Not Found",
1258
1258
  405: "Method Not Allowed",
1259
1259
  500: "Internal Server Error"
1260
- }, Ha = (t) => {
1260
+ }, Ma = (t) => {
1261
1261
  var s;
1262
1262
  return (s = Object.entries({
1263
1263
  "application/json": "json",
@@ -1270,17 +1270,17 @@ const za = {
1270
1270
  }).find(
1271
1271
  ([n]) => t.includes(n)
1272
1272
  )) == null ? void 0 : s[1];
1273
- }, Ga = (t) => {
1273
+ }, _a = (t) => {
1274
1274
  var s;
1275
- const a = ((s = t.find(([n, o]) => n === "Content-Type")) == null ? void 0 : s[1]) || "";
1276
- return Ha(a);
1277
- }, Ba = (t) => {
1275
+ const a = ((s = t.find(([n, r]) => n === "Content-Type")) == null ? void 0 : s[1]) || "";
1276
+ return Ma(a);
1277
+ }, Ja = (t) => {
1278
1278
  try {
1279
1279
  return JSON.stringify(JSON.parse(t), null, 2);
1280
1280
  } catch {
1281
1281
  return null;
1282
1282
  }
1283
- }, Ma = (t) => {
1283
+ }, Qa = (t) => {
1284
1284
  const a = [
1285
1285
  "Content-Type",
1286
1286
  "Content-Length",
@@ -1291,58 +1291,58 @@ const za = {
1291
1291
  "ETag"
1292
1292
  ].map((s) => s.toLowerCase());
1293
1293
  return [...t].sort(([s], [n]) => {
1294
- const o = a.indexOf(s.toLowerCase()), d = a.indexOf(n.toLowerCase());
1295
- return o === d ? 0 : o === -1 ? 1 : d === -1 ? -1 : o - d;
1294
+ const r = a.indexOf(s.toLowerCase()), i = a.indexOf(n.toLowerCase());
1295
+ return r === i ? 0 : r === -1 ? 1 : i === -1 ? -1 : r - i;
1296
1296
  });
1297
- }, Ua = ({
1297
+ }, Za = ({
1298
1298
  body: t = "",
1299
1299
  headers: a,
1300
1300
  status: s,
1301
1301
  time: n,
1302
- size: o,
1303
- url: d
1302
+ size: r,
1303
+ url: i
1304
1304
  }) => {
1305
- var m;
1306
- const l = Ga(a), c = Ba(t), i = c || t, [p, g] = H(
1305
+ var p;
1306
+ const l = _a(a), c = Ja(t), d = c || t, [u, g] = U(
1307
1307
  c ? "formatted" : "raw"
1308
- ), w = St({
1309
- queryKey: ["types", i],
1310
- queryFn: async () => Fa(JSON.parse(i)),
1311
- enabled: p === "types"
1312
- }), j = Ma([...a]);
1308
+ ), C = It({
1309
+ queryKey: ["types", d],
1310
+ queryFn: async () => Ba(JSON.parse(d)),
1311
+ enabled: u === "types"
1312
+ }), b = Qa([...a]);
1313
1313
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-y-scroll max-h-[calc(100vh-220px)] py-4", children: [
1314
- /* @__PURE__ */ e.jsxs(He, { defaultOpen: !0, children: [
1315
- /* @__PURE__ */ e.jsxs(Ge, { className: "flex items-center gap-2 hover:text-primary group", children: [
1316
- /* @__PURE__ */ e.jsx(z, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1314
+ /* @__PURE__ */ e.jsxs(Be, { defaultOpen: !0, children: [
1315
+ /* @__PURE__ */ e.jsxs(Ue, { className: "flex items-center gap-2 hover:text-primary group", children: [
1316
+ /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1317
1317
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1318
1318
  ] }),
1319
- /* @__PURE__ */ e.jsx(Be, { 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: [
1320
- j.slice(0, 5).map(([h, x]) => /* @__PURE__ */ e.jsxs(I, { children: [
1321
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: h }),
1322
- /* @__PURE__ */ e.jsx("div", { className: "break-all", children: x })
1323
- ] }, h)),
1324
- j.length > 5 && /* @__PURE__ */ e.jsxs(He, { className: "col-span-full grid-cols-subgrid grid", children: [
1325
- /* @__PURE__ */ e.jsxs(Ge, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
1326
- /* @__PURE__ */ e.jsx(z, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1319
+ /* @__PURE__ */ e.jsx(Me, { 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: [
1320
+ b.slice(0, 5).map(([f, h]) => /* @__PURE__ */ e.jsxs(k, { children: [
1321
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1322
+ /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1323
+ ] }, f)),
1324
+ b.length > 5 && /* @__PURE__ */ e.jsxs(Be, { className: "col-span-full grid-cols-subgrid grid", children: [
1325
+ /* @__PURE__ */ e.jsxs(Ue, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
1326
+ /* @__PURE__ */ e.jsx(B, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1327
1327
  "Show ",
1328
- j.length - 5,
1328
+ b.length - 5,
1329
1329
  " more headers"
1330
1330
  ] }),
1331
- /* @__PURE__ */ e.jsx(Be, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: j.slice(5).map(([h, x]) => /* @__PURE__ */ e.jsxs(I, { children: [
1332
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: h }),
1333
- /* @__PURE__ */ e.jsx("div", { className: "break-all", children: x })
1334
- ] }, h)) })
1331
+ /* @__PURE__ */ e.jsx(Me, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: b.slice(5).map(([f, h]) => /* @__PURE__ */ e.jsxs(k, { children: [
1332
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1333
+ /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1334
+ ] }, f)) })
1335
1335
  ] })
1336
1336
  ] }) })
1337
1337
  ] }),
1338
- /* @__PURE__ */ e.jsx(fe, { className: "shadow-none", children: /* @__PURE__ */ e.jsx(
1339
- Jt,
1338
+ /* @__PURE__ */ e.jsx(je, { className: "shadow-none", children: /* @__PURE__ */ e.jsx(
1339
+ Kt,
1340
1340
  {
1341
- language: p === "types" ? "typescript" : p === "raw" ? c ? "plain" : l : "json",
1341
+ language: u === "types" ? "typescript" : u === "raw" ? c ? "plain" : l : "json",
1342
1342
  noBackground: !0,
1343
1343
  className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
1344
- code: (p === "raw" ? t : p === "types" ? (m = w.data) == null ? void 0 : m.lines.join(`
1345
- `) : i) ?? ""
1344
+ code: (u === "raw" ? t : u === "types" ? (p = C.data) == null ? void 0 : p.lines.join(`
1345
+ `) : d) ?? ""
1346
1346
  }
1347
1347
  ) }),
1348
1348
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 justify-between", children: [
@@ -1352,7 +1352,7 @@ const za = {
1352
1352
  " ",
1353
1353
  s,
1354
1354
  " ",
1355
- za[s] ?? ""
1355
+ Ua[s] ?? ""
1356
1356
  ] }),
1357
1357
  /* @__PURE__ */ e.jsxs("div", { children: [
1358
1358
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Time" }),
@@ -1363,52 +1363,52 @@ const za = {
1363
1363
  /* @__PURE__ */ e.jsxs("div", { children: [
1364
1364
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Size" }),
1365
1365
  " ",
1366
- o,
1366
+ r,
1367
1367
  "B"
1368
1368
  ] })
1369
1369
  ] }),
1370
1370
  c && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
1371
- Me,
1371
+ Qe,
1372
1372
  {
1373
- value: p,
1374
- onValueChange: (h) => g(h),
1373
+ value: u,
1374
+ onValueChange: (f) => g(f),
1375
1375
  children: [
1376
- /* @__PURE__ */ e.jsx(Ue, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(_e, { placeholder: "View" }) }),
1377
- /* @__PURE__ */ e.jsxs(Je, { children: [
1378
- /* @__PURE__ */ e.jsx(M, { value: "formatted", children: "Formatted" }),
1379
- /* @__PURE__ */ e.jsx(M, { value: "raw", children: "Raw" }),
1380
- /* @__PURE__ */ e.jsx(M, { value: "types", children: "Types" })
1376
+ /* @__PURE__ */ e.jsx(Ze, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(We, { placeholder: "View" }) }),
1377
+ /* @__PURE__ */ e.jsxs(Ke, { children: [
1378
+ /* @__PURE__ */ e.jsx(Q, { value: "formatted", children: "Formatted" }),
1379
+ /* @__PURE__ */ e.jsx(Q, { value: "raw", children: "Raw" }),
1380
+ /* @__PURE__ */ e.jsx(Q, { value: "types", children: "Types" })
1381
1381
  ] })
1382
1382
  ]
1383
1383
  }
1384
1384
  ) })
1385
1385
  ] })
1386
1386
  ] });
1387
- }, _a = ({
1387
+ }, Wa = ({
1388
1388
  queryMutation: t,
1389
1389
  showPathParamsWarning: a
1390
1390
  }) => {
1391
1391
  var n;
1392
1392
  const s = ((((n = t.data) == null ? void 0 : n.status) ?? 0) / 100).toFixed(0);
1393
1393
  return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-8 bg-muted/70 overflow-y-auto", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
1394
- a && /* @__PURE__ */ e.jsx(Kt, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1395
- /* @__PURE__ */ e.jsxs(fe, { children: [
1396
- /* @__PURE__ */ e.jsx(Bt, { children: /* @__PURE__ */ e.jsx(Mt, { children: "Request failed" }) }),
1397
- /* @__PURE__ */ e.jsxs(Ut, { children: [
1394
+ a && /* @__PURE__ */ e.jsx(ta, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1395
+ /* @__PURE__ */ e.jsxs(je, { children: [
1396
+ /* @__PURE__ */ e.jsx(Jt, { children: /* @__PURE__ */ e.jsx(Qt, { children: "Request failed" }) }),
1397
+ /* @__PURE__ */ e.jsxs(Zt, { children: [
1398
1398
  "Error:",
1399
1399
  " ",
1400
1400
  t.error.message || String(t.error) || "Unexpected error"
1401
1401
  ] })
1402
1402
  ] })
1403
- ] }) : t.data ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ e.jsxs(We, { defaultValue: "response", children: [
1404
- /* @__PURE__ */ e.jsxs(Ze, { children: [
1403
+ ] }) : t.data ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ e.jsxs(Ye, { defaultValue: "response", children: [
1404
+ /* @__PURE__ */ e.jsxs(et, { children: [
1405
1405
  /* @__PURE__ */ e.jsx(E, { value: "request", children: "Request" }),
1406
1406
  /* @__PURE__ */ e.jsxs(E, { value: "response", children: [
1407
1407
  "Response",
1408
1408
  /* @__PURE__ */ e.jsxs(
1409
1409
  "span",
1410
1410
  {
1411
- className: u(
1411
+ className: m(
1412
1412
  "text-xs font-mono ml-1",
1413
1413
  s === "2" && "text-green-500",
1414
1414
  s === "3" && "text-blue-500",
@@ -1424,9 +1424,9 @@ const za = {
1424
1424
  )
1425
1425
  ] })
1426
1426
  ] }),
1427
- /* @__PURE__ */ e.jsx(A, { value: "request", children: /* @__PURE__ */ e.jsx(La, { ...t.data.request }) }),
1427
+ /* @__PURE__ */ e.jsx(A, { value: "request", children: /* @__PURE__ */ e.jsx(Ha, { ...t.data.request }) }),
1428
1428
  /* @__PURE__ */ e.jsx(A, { value: "response", children: /* @__PURE__ */ e.jsx(
1429
- Ua,
1429
+ Za,
1430
1430
  {
1431
1431
  status: t.data.status,
1432
1432
  time: t.data.time,
@@ -1436,16 +1436,16 @@ const za = {
1436
1436
  url: t.data.request.url
1437
1437
  }
1438
1438
  ) })
1439
- ] }) }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: t.isPending ? /* @__PURE__ */ e.jsx(Qt, {}) : "Send a request first to see the response here" }) }) });
1440
- }, Ja = ({
1439
+ ] }) }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: t.isPending ? /* @__PURE__ */ e.jsx(Xt, {}) : "Send a request first to see the response here" }) }) });
1440
+ }, Ka = ({
1441
1441
  identities: t,
1442
1442
  formRef: a,
1443
1443
  disabled: s
1444
1444
  }) => {
1445
- const { setValue: n } = he(), [o, d] = H();
1446
- return t.length === 0 ? /* @__PURE__ */ e.jsx(U, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1445
+ const { setValue: n } = ye(), [r, i] = U();
1446
+ return t.length === 0 ? /* @__PURE__ */ e.jsx(Z, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1447
1447
  /* @__PURE__ */ e.jsx(
1448
- U,
1448
+ Z,
1449
1449
  {
1450
1450
  className: "rounded-r-none inset-shadow-sm",
1451
1451
  disabled: s,
@@ -1456,28 +1456,28 @@ const za = {
1456
1456
  children: "Send"
1457
1457
  }
1458
1458
  ),
1459
- /* @__PURE__ */ e.jsxs(et, { children: [
1460
- /* @__PURE__ */ e.jsx(tt, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1461
- U,
1459
+ /* @__PURE__ */ e.jsxs(nt, { children: [
1460
+ /* @__PURE__ */ e.jsx(rt, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1461
+ Z,
1462
1462
  {
1463
1463
  disabled: s,
1464
1464
  className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
1465
1465
  size: "icon",
1466
- children: /* @__PURE__ */ e.jsx(Nt, { className: "w-4 h-4" })
1466
+ children: /* @__PURE__ */ e.jsx(St, { className: "w-4 h-4" })
1467
1467
  }
1468
1468
  ) }),
1469
- /* @__PURE__ */ e.jsx(ve, { value: o, children: /* @__PURE__ */ e.jsx(je, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: F, label: "None" }, ...t].map(
1469
+ /* @__PURE__ */ e.jsx(we, { value: r, children: /* @__PURE__ */ e.jsx(Ce, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: H, label: "None" }, ...t].map(
1470
1470
  (l) => /* @__PURE__ */ e.jsxs(
1471
- be,
1471
+ Te,
1472
1472
  {
1473
1473
  onClick: () => {
1474
1474
  var c;
1475
- d(l.id), n("identity", l.id), (c = a == null ? void 0 : a.current) == null || c.requestSubmit();
1475
+ i(l.id), n("identity", l.id), (c = a == null ? void 0 : a.current) == null || c.requestSubmit();
1476
1476
  },
1477
- onMouseEnter: () => d(l.id),
1478
- onMouseLeave: () => d(void 0),
1477
+ onMouseEnter: () => i(l.id),
1478
+ onMouseLeave: () => i(void 0),
1479
1479
  children: [
1480
- /* @__PURE__ */ e.jsx(Q, { value: l.id, className: "mr-2" }),
1480
+ /* @__PURE__ */ e.jsx(Y, { value: l.id, className: "mr-2" }),
1481
1481
  l.label
1482
1482
  ]
1483
1483
  },
@@ -1486,28 +1486,28 @@ const za = {
1486
1486
  ) }) })
1487
1487
  ] })
1488
1488
  ] });
1489
- }, F = "__none", Qa = ({
1489
+ }, H = "__none", Xa = ({
1490
1490
  server: t,
1491
1491
  servers: a = [],
1492
1492
  url: s,
1493
1493
  method: n,
1494
- headers: o = [],
1495
- queryParams: d = [],
1494
+ headers: r = [],
1495
+ queryParams: i = [],
1496
1496
  pathParams: l = [],
1497
1497
  defaultBody: c = "",
1498
- examples: i
1498
+ examples: d
1499
1499
  }) => {
1500
- var Ie, Oe, Ee;
1501
- const { selectedServer: p, setSelectedServer: g } = Pt(
1502
- a.map((r) => ({ url: r }))
1503
- ), [, w] = At(), { register: j, control: m, handleSubmit: h, watch: x, setValue: y, ...v } = Ht({
1500
+ var Oe, Ee, Ae;
1501
+ const { selectedServer: u, setSelectedServer: g } = Ot(
1502
+ a.map((o) => ({ url: o }))
1503
+ ), [, C] = Vt(), { register: b, control: p, handleSubmit: f, watch: h, setValue: v, ...y } = Mt({
1504
1504
  defaultValues: {
1505
1505
  body: c,
1506
- queryParams: d.map((r) => ({
1507
- name: r.name,
1508
- value: r.defaultValue ?? "",
1509
- active: r.defaultActive ?? !1,
1510
- enum: r.enum ?? []
1506
+ queryParams: i.map((o) => ({
1507
+ name: o.name,
1508
+ value: o.defaultValue ?? "",
1509
+ active: o.defaultActive ?? !1,
1510
+ enum: o.enum ?? []
1511
1511
  })).concat([
1512
1512
  {
1513
1513
  name: "",
@@ -1516,14 +1516,14 @@ const za = {
1516
1516
  enum: []
1517
1517
  }
1518
1518
  ]),
1519
- pathParams: l.map((r) => ({
1520
- name: r.name,
1521
- value: r.defaultValue ?? ""
1519
+ pathParams: l.map((o) => ({
1520
+ name: o.name,
1521
+ value: o.defaultValue ?? ""
1522
1522
  })),
1523
- headers: o.map((r) => ({
1524
- name: r.name,
1525
- value: r.defaultValue ?? "",
1526
- active: r.defaultActive ?? !1
1523
+ headers: r.map((o) => ({
1524
+ name: o.name,
1525
+ value: o.defaultValue ?? "",
1526
+ active: o.defaultActive ?? !1
1527
1527
  })).concat([
1528
1528
  {
1529
1529
  name: "",
@@ -1531,48 +1531,48 @@ const za = {
1531
1531
  active: !1
1532
1532
  }
1533
1533
  ]),
1534
- identity: F
1534
+ identity: H
1535
1535
  }
1536
- }), N = x(), C = kt(), Se = q(!1);
1537
- ue(() => {
1538
- var k;
1539
- if (Se.current) return;
1540
- const r = (k = C.data) == null ? void 0 : k.at(0);
1541
- r && (y("identity", r.id), Se.current = !0);
1542
- }, [y, C.data]);
1543
- const Pe = q(null), ke = zt({
1544
- mutationFn: async (r) => {
1545
- var B, L;
1546
- const k = performance.now(), S = new Request(
1547
- ma(p ?? t, s, r),
1536
+ }), N = h(), w = Et(), L = q(!1);
1537
+ fe(() => {
1538
+ var R;
1539
+ if (L.current) return;
1540
+ const o = (R = w.data) == null ? void 0 : R.at(0);
1541
+ o && (v("identity", o.id), L.current = !0);
1542
+ }, [v, w.data]);
1543
+ const V = q(null), _ = Ut({
1544
+ mutationFn: async (o) => {
1545
+ var J, F;
1546
+ const R = performance.now(), S = new Request(
1547
+ xa(t ?? u, s, o),
1548
1548
  {
1549
1549
  method: n.toUpperCase(),
1550
1550
  headers: Object.fromEntries(
1551
- r.headers.filter((T) => T.name && T.active).map((T) => [T.name, T.value])
1551
+ o.headers.filter((T) => T.name && T.active).map((T) => [T.name, T.value])
1552
1552
  ),
1553
- body: r.body ? r.body : void 0
1553
+ body: o.body ? o.body : void 0
1554
1554
  }
1555
1555
  );
1556
- r.identity !== F && ((L = (B = C.data) == null ? void 0 : B.find((T) => T.id === r.identity)) == null || L.authorizeRequest(S));
1556
+ o.identity !== H && await ((F = (J = w.data) == null ? void 0 : J.find((T) => T.id === o.identity)) == null ? void 0 : F.authorizeRequest(S));
1557
1557
  try {
1558
1558
  const T = await fetch(S, {
1559
1559
  signal: AbortSignal.timeout(5e3)
1560
- }), mt = performance.now() - k, Ae = await T.text(), ut = new URL(S.url);
1560
+ }), ft = performance.now() - R, qe = await T.text(), gt = new URL(S.url);
1561
1561
  return {
1562
1562
  status: T.status,
1563
1563
  headers: Array.from(T.headers.entries()),
1564
- size: Ae.length,
1565
- body: Ae,
1566
- time: mt,
1564
+ size: qe.length,
1565
+ body: qe,
1566
+ time: ft,
1567
1567
  request: {
1568
1568
  method: S.method.toUpperCase(),
1569
1569
  url: S.url,
1570
1570
  headers: [
1571
- ["Host", ut.host],
1571
+ ["Host", gt.host],
1572
1572
  ["User-Agent", "Zudoku Playground"],
1573
1573
  ...Array.from(S.headers.entries())
1574
1574
  ],
1575
- body: r.body ? r.body : void 0
1575
+ body: o.body ? o.body : void 0
1576
1576
  }
1577
1577
  };
1578
1578
  } catch (T) {
@@ -1581,122 +1581,122 @@ const za = {
1581
1581
  ) : T;
1582
1582
  }
1583
1583
  }
1584
- }), dt = /* @__PURE__ */ e.jsx(
1585
- ia,
1584
+ }), ht = /* @__PURE__ */ e.jsx(
1585
+ ua,
1586
1586
  {
1587
1587
  path: s,
1588
- renderParam: ({ name: r, originalValue: k, index: S }) => {
1589
- var L;
1590
- const B = (L = N.pathParams.find(
1591
- (T) => T.name === r
1592
- )) == null ? void 0 : L.value;
1588
+ renderParam: ({ name: o, originalValue: R, index: S }) => {
1589
+ var F;
1590
+ const J = (F = N.pathParams.find(
1591
+ (T) => T.name === o
1592
+ )) == null ? void 0 : F.value;
1593
1593
  return /* @__PURE__ */ e.jsx(
1594
- Ye,
1594
+ st,
1595
1595
  {
1596
- name: r,
1596
+ name: o,
1597
1597
  backgroundOpacity: "0",
1598
- slug: r,
1599
- onClick: () => v.setFocus(`pathParams.${S}.value`),
1600
- children: B || k
1598
+ slug: o,
1599
+ onClick: () => y.setFocus(`pathParams.${S}.value`),
1600
+ children: J || R
1601
1601
  }
1602
1602
  );
1603
1603
  }
1604
1604
  }
1605
- ), Re = N.queryParams.filter((r) => r.active).map((r, k, S) => /* @__PURE__ */ e.jsxs(I, { children: [
1606
- r.name,
1605
+ ), Ie = N.queryParams.filter((o) => o.active).map((o, R, S) => /* @__PURE__ */ e.jsxs(k, { children: [
1606
+ o.name,
1607
1607
  "=",
1608
- encodeURIComponent(r.value).replaceAll("%20", "+"),
1609
- k < S.length - 1 && "&",
1608
+ encodeURIComponent(o.value).replaceAll("%20", "+"),
1609
+ R < S.length - 1 && "&",
1610
1610
  /* @__PURE__ */ e.jsx("wbr", {})
1611
- ] }, r.name)), ct = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: a && a.length > 1 ? /* @__PURE__ */ e.jsxs(
1612
- Me,
1611
+ ] }, o.name)), xt = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "") }) : a.length > 1 && /* @__PURE__ */ e.jsxs(
1612
+ Qe,
1613
1613
  {
1614
- onValueChange: (r) => {
1615
- w(() => g(r));
1614
+ onValueChange: (o) => {
1615
+ C(() => g(o));
1616
1616
  },
1617
- value: p,
1618
- defaultValue: p,
1617
+ value: u,
1618
+ defaultValue: u,
1619
1619
  children: [
1620
- /* @__PURE__ */ e.jsx(Ue, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto", children: /* @__PURE__ */ e.jsx(_e, {}) }),
1621
- /* @__PURE__ */ e.jsx(Je, { children: a.map((r) => /* @__PURE__ */ e.jsx(M, { value: r, children: r.replace(/^https?:\/\//, "") }, r)) })
1620
+ /* @__PURE__ */ e.jsx(Ze, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto", children: /* @__PURE__ */ e.jsx(We, {}) }),
1621
+ /* @__PURE__ */ e.jsx(Ke, { children: a.map((o) => /* @__PURE__ */ e.jsx(Q, { value: o, children: o.replace(/^https?:\/\//, "") }, o)) })
1622
1622
  ]
1623
1623
  }
1624
- ) : /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "") }) });
1624
+ ) });
1625
1625
  return /* @__PURE__ */ e.jsx(
1626
- Gt,
1626
+ _t,
1627
1627
  {
1628
- register: j,
1629
- control: m,
1630
- handleSubmit: h,
1631
- watch: x,
1632
- setValue: y,
1633
- ...v,
1628
+ register: b,
1629
+ control: p,
1630
+ handleSubmit: f,
1631
+ watch: h,
1632
+ setValue: v,
1633
+ ...y,
1634
1634
  children: /* @__PURE__ */ e.jsx(
1635
1635
  "form",
1636
1636
  {
1637
- onSubmit: h((r) => ke.mutateAsync(r)),
1638
- ref: Pe,
1637
+ onSubmit: f((o) => _.mutateAsync(o)),
1638
+ ref: V,
1639
1639
  children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
1640
1640
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 p-4 after:bg-muted-foreground/20 relative after:absolute after:w-px after:inset-0 after:left-auto", children: [
1641
1641
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-stretch", children: [
1642
1642
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
1643
1643
  /* @__PURE__ */ e.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: n.toUpperCase() }),
1644
1644
  /* @__PURE__ */ e.jsxs("div", { className: "items-center p-2 font-mono text-xs break-words", children: [
1645
- ct,
1646
- dt,
1647
- Re.length > 0 ? "?" : "",
1648
- Re
1645
+ xt,
1646
+ ht,
1647
+ Ie.length > 0 ? "?" : "",
1648
+ Ie
1649
1649
  ] })
1650
1650
  ] }),
1651
1651
  /* @__PURE__ */ e.jsx(
1652
- Ja,
1652
+ Ka,
1653
1653
  {
1654
- identities: C.data ?? [],
1655
- formRef: Pe,
1656
- disabled: v.formState.isSubmitting
1654
+ identities: w.data ?? [],
1655
+ formRef: V,
1656
+ disabled: y.formState.isSubmitting
1657
1657
  }
1658
1658
  )
1659
1659
  ] }),
1660
- /* @__PURE__ */ e.jsxs(We, { defaultValue: "parameters", children: [
1661
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(Ze, { children: [
1660
+ /* @__PURE__ */ e.jsxs(Ye, { defaultValue: "parameters", children: [
1661
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(et, { children: [
1662
1662
  /* @__PURE__ */ e.jsxs(E, { value: "parameters", children: [
1663
1663
  "Parameters",
1664
- (N.pathParams.some((r) => r.value !== "") || N.queryParams.some((r) => r.active)) && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1664
+ (N.pathParams.some((o) => o.value !== "") || N.queryParams.some((o) => o.active)) && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1665
1665
  ] }),
1666
1666
  /* @__PURE__ */ e.jsxs(E, { value: "headers", children: [
1667
1667
  "Headers",
1668
- N.headers.filter((r) => r.active).length > 0 && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1668
+ N.headers.filter((o) => o.active).length > 0 && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1669
1669
  ] }),
1670
1670
  /* @__PURE__ */ e.jsxs(E, { value: "auth", children: [
1671
1671
  "Auth",
1672
- N.identity !== F && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1672
+ N.identity !== H && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1673
1673
  ] }),
1674
1674
  /* @__PURE__ */ e.jsx(E, { value: "body", children: "Body" })
1675
1675
  ] }) }),
1676
- /* @__PURE__ */ e.jsx(A, { value: "headers", children: /* @__PURE__ */ e.jsx(Ia, { control: m, headers: o }) }),
1676
+ /* @__PURE__ */ e.jsx(A, { value: "headers", children: /* @__PURE__ */ e.jsx(qa, { control: p, headers: r }) }),
1677
1677
  /* @__PURE__ */ e.jsxs(A, { value: "parameters", children: [
1678
1678
  l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1679
1679
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
1680
- /* @__PURE__ */ e.jsx(Oa, { control: m })
1680
+ /* @__PURE__ */ e.jsx(Da, { control: p })
1681
1681
  ] }),
1682
1682
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1683
1683
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
1684
- /* @__PURE__ */ e.jsx(Aa, { control: m, queryParams: d })
1684
+ /* @__PURE__ */ e.jsx(Va, { control: p, queryParams: i })
1685
1685
  ] })
1686
1686
  ] }),
1687
1687
  /* @__PURE__ */ e.jsxs(A, { value: "body", children: [
1688
1688
  !["POST", "PUT", "PATCH", "DELETE"].includes(
1689
1689
  n.toUpperCase()
1690
- ) && /* @__PURE__ */ e.jsxs(de, { className: "mb-2", children: [
1691
- /* @__PURE__ */ e.jsx(De, { className: "w-4 h-4" }),
1692
- /* @__PURE__ */ e.jsx(ce, { children: "Body" }),
1693
- /* @__PURE__ */ e.jsx(me, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
1690
+ ) && /* @__PURE__ */ e.jsxs(ue, { className: "mb-2", children: [
1691
+ /* @__PURE__ */ e.jsx(Le, { className: "w-4 h-4" }),
1692
+ /* @__PURE__ */ e.jsx(pe, { children: "Body" }),
1693
+ /* @__PURE__ */ e.jsx(he, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
1694
1694
  ] }),
1695
1695
  /* @__PURE__ */ e.jsx(
1696
- Xe,
1696
+ at,
1697
1697
  {
1698
- ...j("body"),
1699
- className: u(
1698
+ ...b("body"),
1699
+ className: m(
1700
1700
  "border w-full rounded-lg p-2 bg-muted h-40 font-mono",
1701
1701
  !["POST", "PUT", "PATCH", "DELETE"].includes(
1702
1702
  n.toUpperCase()
@@ -1710,57 +1710,57 @@ const za = {
1710
1710
  )
1711
1711
  }
1712
1712
  ),
1713
- i && /* @__PURE__ */ e.jsx(
1714
- ga,
1713
+ d && /* @__PURE__ */ e.jsx(
1714
+ ba,
1715
1715
  {
1716
- examples: i,
1717
- onSelect: (r) => y("body", JSON.stringify(r.value, null, 2))
1716
+ examples: d,
1717
+ onSelect: (o) => v("body", JSON.stringify(o.value, null, 2))
1718
1718
  }
1719
1719
  )
1720
1720
  ] }),
1721
1721
  /* @__PURE__ */ e.jsx(A, { value: "auth", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1722
- ((Ie = C.data) == null ? void 0 : Ie.length) === 0 && /* @__PURE__ */ e.jsxs(de, { children: [
1723
- /* @__PURE__ */ e.jsx(De, { className: "w-4 h-4" }),
1724
- /* @__PURE__ */ e.jsx(ce, { children: "Authentication" }),
1725
- /* @__PURE__ */ e.jsx(me, { children: "No identities found. Please create an identity first." })
1722
+ ((Oe = w.data) == null ? void 0 : Oe.length) === 0 && /* @__PURE__ */ e.jsxs(ue, { children: [
1723
+ /* @__PURE__ */ e.jsx(Le, { className: "w-4 h-4" }),
1724
+ /* @__PURE__ */ e.jsx(pe, { children: "Authentication" }),
1725
+ /* @__PURE__ */ e.jsx(he, { children: "No identities found. Please create an identity first." })
1726
1726
  ] }),
1727
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e.jsx(fe, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
1728
- ve,
1727
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e.jsx(je, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
1728
+ we,
1729
1729
  {
1730
- onValueChange: (r) => y("identity", r),
1730
+ onValueChange: (o) => v("identity", o),
1731
1731
  value: N.identity,
1732
1732
  defaultValue: N.identity,
1733
1733
  className: "gap-0",
1734
- disabled: ((Oe = C.data) == null ? void 0 : Oe.length) === 0,
1734
+ disabled: ((Ee = w.data) == null ? void 0 : Ee.length) === 0,
1735
1735
  children: [
1736
1736
  /* @__PURE__ */ e.jsxs(
1737
- V,
1737
+ z,
1738
1738
  {
1739
1739
  className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
1740
1740
  htmlFor: "none",
1741
1741
  children: [
1742
- /* @__PURE__ */ e.jsx(Q, { value: F, id: "none", children: "None" }),
1743
- /* @__PURE__ */ e.jsx(V, { htmlFor: "none", className: "ml-2", children: "None" })
1742
+ /* @__PURE__ */ e.jsx(Y, { value: H, id: "none", children: "None" }),
1743
+ /* @__PURE__ */ e.jsx(z, { htmlFor: "none", className: "ml-2", children: "None" })
1744
1744
  ]
1745
1745
  }
1746
1746
  ),
1747
- (Ee = C.data) == null ? void 0 : Ee.map((r) => /* @__PURE__ */ e.jsxs(
1748
- V,
1747
+ (Ae = w.data) == null ? void 0 : Ae.map((o) => /* @__PURE__ */ e.jsxs(
1748
+ z,
1749
1749
  {
1750
1750
  className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
1751
1751
  children: [
1752
1752
  /* @__PURE__ */ e.jsx(
1753
- Q,
1753
+ Y,
1754
1754
  {
1755
- value: r.id,
1756
- id: r.id,
1757
- children: r.label
1755
+ value: o.id,
1756
+ id: o.id,
1757
+ children: o.label
1758
1758
  }
1759
1759
  ),
1760
- /* @__PURE__ */ e.jsx(V, { htmlFor: r.id, className: "ml-2", children: r.label })
1760
+ /* @__PURE__ */ e.jsx(z, { htmlFor: o.id, className: "ml-2", children: o.label })
1761
1761
  ]
1762
1762
  },
1763
- r.id
1763
+ o.id
1764
1764
  ))
1765
1765
  ]
1766
1766
  }
@@ -1769,11 +1769,11 @@ const za = {
1769
1769
  ] })
1770
1770
  ] }),
1771
1771
  /* @__PURE__ */ e.jsx(
1772
- _a,
1772
+ Wa,
1773
1773
  {
1774
- queryMutation: ke,
1774
+ queryMutation: _,
1775
1775
  showPathParamsWarning: N.pathParams.some(
1776
- (r) => r.value === ""
1776
+ (o) => o.value === ""
1777
1777
  )
1778
1778
  }
1779
1779
  )
@@ -1782,7 +1782,7 @@ const za = {
1782
1782
  )
1783
1783
  }
1784
1784
  );
1785
- }, Wa = ({
1785
+ }, Ya = ({
1786
1786
  className: t,
1787
1787
  size: a = 16
1788
1788
  }) => /* @__PURE__ */ e.jsx(
@@ -1803,33 +1803,145 @@ const za = {
1803
1803
  }
1804
1804
  )
1805
1805
  }
1806
- ), Za = (t) => {
1807
- const [a, s] = H(!1);
1808
- return /* @__PURE__ */ e.jsxs(Dt, { onOpenChange: (n) => s(n), children: [
1809
- /* @__PURE__ */ e.jsx(Lt, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1806
+ ), es = (t) => {
1807
+ const [a, s] = U(!1);
1808
+ return /* @__PURE__ */ e.jsxs(zt, { onOpenChange: (n) => s(n), children: [
1809
+ /* @__PURE__ */ e.jsx(Ht, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1810
1810
  "button",
1811
1811
  {
1812
1812
  type: "button",
1813
1813
  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",
1814
1814
  children: [
1815
1815
  "Test",
1816
- /* @__PURE__ */ e.jsx(Wa, { size: 14 })
1816
+ /* @__PURE__ */ e.jsx(Ya, { size: 14 })
1817
1817
  ]
1818
1818
  }
1819
1819
  ) }),
1820
1820
  /* @__PURE__ */ e.jsxs(
1821
- Vt,
1821
+ Gt,
1822
1822
  {
1823
1823
  className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
1824
1824
  "aria-describedby": void 0,
1825
1825
  children: [
1826
- /* @__PURE__ */ e.jsx(Ot, { children: /* @__PURE__ */ e.jsx(Ft, { children: "Playground" }) }),
1827
- a && /* @__PURE__ */ e.jsx(Qa, { ...t })
1826
+ /* @__PURE__ */ e.jsx(Dt, { children: /* @__PURE__ */ e.jsx(Bt, { children: "Playground" }) }),
1827
+ a && /* @__PURE__ */ e.jsx(Xa, { ...t })
1828
1828
  ]
1829
1829
  }
1830
1830
  )
1831
1831
  ] });
1832
- }, Ka = Ke(`
1832
+ }, ts = {
1833
+ get: "green",
1834
+ post: "blue",
1835
+ put: "yellow",
1836
+ delete: "red",
1837
+ patch: "purple",
1838
+ options: "gray",
1839
+ head: "gray"
1840
+ }, _e = ({
1841
+ label: t,
1842
+ path: a,
1843
+ operations: s,
1844
+ collapsible: n,
1845
+ collapsed: r
1846
+ }) => ({
1847
+ type: "category",
1848
+ label: t,
1849
+ link: {
1850
+ type: "doc",
1851
+ id: a,
1852
+ label: t
1853
+ },
1854
+ collapsible: n,
1855
+ collapsed: r,
1856
+ items: s.map((i) => ({
1857
+ type: "link",
1858
+ label: i.summary ?? i.path,
1859
+ href: `${a}#${i.slug}`,
1860
+ ...i.method && {
1861
+ badge: {
1862
+ label: i.method,
1863
+ color: ts[i.method.toLowerCase()],
1864
+ invert: !0
1865
+ }
1866
+ }
1867
+ }))
1868
+ }), Je = (t) => ({
1869
+ path: t.routePath,
1870
+ async lazy() {
1871
+ const { OasProvider: a } = await import("./OasProvider-IS9wBrb7.js");
1872
+ return {
1873
+ element: /* @__PURE__ */ e.jsx(
1874
+ a,
1875
+ {
1876
+ basePath: t.basePath,
1877
+ version: t.version,
1878
+ client: t.client,
1879
+ config: t.config
1880
+ }
1881
+ )
1882
+ };
1883
+ },
1884
+ children: t.routes
1885
+ }), xe = ({
1886
+ path: t,
1887
+ tag: a,
1888
+ untagged: s
1889
+ }) => ({
1890
+ path: t,
1891
+ async lazy() {
1892
+ const { OperationList: n } = await import("./OperationList-BTmRbbXk.js");
1893
+ return { element: /* @__PURE__ */ e.jsx(n, { tag: a, untagged: s }) };
1894
+ }
1895
+ }), as = (t, a) => {
1896
+ const s = O(
1897
+ t,
1898
+ a[0] ? W(a[0]) : G
1899
+ );
1900
+ return [
1901
+ // Redirect to first tag on the index route
1902
+ { index: !0, loader: () => kt(s) },
1903
+ // Create routes for each tag
1904
+ ...a.map(
1905
+ (n) => xe({
1906
+ path: O(t, W(n)),
1907
+ tag: n
1908
+ })
1909
+ ),
1910
+ // Category without tagged operations
1911
+ xe({
1912
+ path: O(t, G),
1913
+ untagged: !0
1914
+ })
1915
+ ];
1916
+ }, pt = (t) => t.type === "file" ? Object.keys(t.input) : [], ss = ({
1917
+ basePath: t,
1918
+ config: a,
1919
+ client: s
1920
+ }) => {
1921
+ const n = a.tagPages;
1922
+ if (!n)
1923
+ return [
1924
+ Je({
1925
+ basePath: t,
1926
+ routePath: t,
1927
+ routes: [xe({ path: t + "/:tag?" })],
1928
+ client: s,
1929
+ config: a
1930
+ })
1931
+ ];
1932
+ const r = pt(a);
1933
+ return (r.length > 1 ? [void 0, ...r] : [void 0]).map((l) => {
1934
+ const c = O(t, l);
1935
+ return Je({
1936
+ basePath: t,
1937
+ version: l,
1938
+ routePath: c,
1939
+ routes: as(c, n),
1940
+ client: s,
1941
+ config: a
1942
+ });
1943
+ });
1944
+ }, ns = tt(`
1833
1945
  query GetCategories($input: JSON!, $type: SchemaType!) {
1834
1946
  schema(input: $input, type: $type) {
1835
1947
  url
@@ -1838,7 +1950,7 @@ const za = {
1838
1950
  }
1839
1951
  }
1840
1952
  }
1841
- `), Xa = Ke(`
1953
+ `), rs = tt(`
1842
1954
  query GetOperations($input: JSON!, $type: SchemaType!, $tag: String) {
1843
1955
  schema(input: $input, type: $type) {
1844
1956
  operations(tag: $tag) {
@@ -1862,16 +1974,8 @@ const za = {
1862
1974
  }
1863
1975
  }
1864
1976
  }
1865
- `), Ya = {
1866
- get: "green",
1867
- post: "blue",
1868
- put: "yellow",
1869
- delete: "red",
1870
- patch: "purple",
1871
- options: "gray",
1872
- head: "gray"
1873
- }, le = "~endpoints", Ts = (t) => {
1874
- const a = R(t.navigationId ?? "/reference"), s = t.type === "file" ? Object.keys(t.input) : [], n = new Yt(t);
1977
+ `), G = "~endpoints", Is = (t) => {
1978
+ const a = O(t.navigationId ?? "/reference"), s = new sa(t);
1875
1979
  return {
1876
1980
  getHead: () => {
1877
1981
  if (t.type === "url" && !t.skipPreload)
@@ -1889,175 +1993,106 @@ const za = {
1889
1993
  },
1890
1994
  getMdxComponents: () => ({
1891
1995
  OpenPlaygroundButton: ({
1892
- requireAuth: o,
1893
- server: d,
1894
- method: l,
1895
- url: c,
1896
- ...i
1996
+ requireAuth: n,
1997
+ server: r,
1998
+ method: i,
1999
+ url: l,
2000
+ children: c,
2001
+ ...d
1897
2002
  }) => {
1898
- const p = Rt();
1899
- if (!d)
2003
+ const u = At();
2004
+ if (!r)
1900
2005
  throw new Error("Server is required");
1901
- return o && !p.isAuthenticated ? /* @__PURE__ */ e.jsxs(
1902
- _,
2006
+ return n && !u.isAuthenticated ? /* @__PURE__ */ e.jsxs(
2007
+ K,
1903
2008
  {
1904
2009
  className: "gap-2 items-center",
1905
2010
  variant: "outline",
1906
- onClick: p.login,
2011
+ onClick: u.login,
1907
2012
  children: [
1908
2013
  "Login to open in Playground ",
1909
- /* @__PURE__ */ e.jsx(wt, { size: 16 })
2014
+ /* @__PURE__ */ e.jsx(Pt, { size: 16 })
1910
2015
  ]
1911
2016
  }
1912
2017
  ) : /* @__PURE__ */ e.jsx(
1913
- Za,
2018
+ es,
1914
2019
  {
1915
- url: c ?? "/",
1916
- method: l ?? "get",
1917
- server: d,
1918
- ...i,
1919
- children: /* @__PURE__ */ e.jsxs(_, { className: "gap-2 items-center", variant: "outline", children: [
2020
+ url: l ?? "/",
2021
+ method: i ?? "get",
2022
+ server: r,
2023
+ ...d,
2024
+ children: /* @__PURE__ */ e.jsx(K, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1920
2025
  "Open in Playground ",
1921
- /* @__PURE__ */ e.jsx(Ct, { size: 16 })
1922
- ] })
2026
+ /* @__PURE__ */ e.jsx(Rt, { size: 16 })
2027
+ ] }) })
1923
2028
  }
1924
2029
  );
1925
2030
  }
1926
2031
  }),
1927
- getSidebar: async (o) => {
1928
- var d;
1929
- if (!Tt({ path: a, end: !1 }, o))
2032
+ getSidebar: async (n) => {
2033
+ var i;
2034
+ if (!Ve({ path: a, end: !1 }, n))
1930
2035
  return [];
2036
+ const r = Ve(
2037
+ { path: `${a}/:version?/:tag`, end: !0 },
2038
+ n
2039
+ );
1931
2040
  try {
1932
- const l = s.find(
1933
- (m) => o.startsWith(R(a, m))
1934
- ), c = l ?? Object.keys(t.input).at(0), i = await n.fetch(Ka, {
1935
- type: t.type,
1936
- input: t.type === "file" ? t.input[c] : t.input
1937
- }), p = (d = t.tagPages) == null ? void 0 : d.find(
1938
- (m) => o.split("/").at(-1) === ae(m)
1939
- ), g = await n.fetch(Xa, {
1940
- type: t.type,
1941
- input: t.type === "file" ? t.input[c] : t.input,
1942
- tag: t.loadTags ? void 0 : p
1943
- }), w = i.schema.tags.flatMap((m) => {
1944
- const h = R(a, l, ae(m.name)), x = g.schema.operations.filter(
1945
- (y) => {
1946
- var v, N;
1947
- return ((v = y.tags) == null ? void 0 : v.length) !== 0 && ((N = y.tags) == null ? void 0 : N.map((C) => C.name).includes(m.name));
1948
- }
1949
- ).map((y) => ({
1950
- type: "link",
1951
- label: y.summary ?? y.path,
1952
- href: `${h}#${y.slug}`,
1953
- badge: {
1954
- label: y.method,
1955
- color: Ya[y.method.toLowerCase()],
1956
- invert: !0
2041
+ const l = r == null ? void 0 : r.params.version, c = l ?? pt(t).at(0), d = t.type, u = t.type === "file" ? t.input[c] : t.input, g = t.loadTags === !0 || t.type === "url", C = !t.loadTags && t.type !== "url", b = (i = t.tagPages) == null ? void 0 : i.find(
2042
+ (v) => W(v) === (r == null ? void 0 : r.params.tag)
2043
+ ), [p, f] = await Promise.all([
2044
+ s.fetch(ns, { type: d, input: u }),
2045
+ s.fetch(rs, {
2046
+ type: d,
2047
+ input: u,
2048
+ tag: t.loadTags ? void 0 : b
2049
+ })
2050
+ ]), h = p.schema.tags.flatMap((v) => {
2051
+ const y = O(
2052
+ a,
2053
+ l,
2054
+ W(v.name)
2055
+ ), N = f.schema.operations.filter(
2056
+ (w) => {
2057
+ var L, V;
2058
+ return ((L = w.tags) == null ? void 0 : L.length) !== 0 && ((V = w.tags) == null ? void 0 : V.map((_) => _.name).includes(v.name));
1957
2059
  }
1958
- }));
1959
- return t.loadTags && x.length === 0 ? [] : {
1960
- type: "category",
1961
- label: m.name,
1962
- link: {
1963
- type: "doc",
1964
- id: h,
1965
- label: m.name
1966
- },
1967
- collapsible: t.loadTags,
1968
- collapsed: !t.loadTags,
1969
- items: x
1970
- };
1971
- }), { untagged: j } = g.schema;
1972
- if (j.length > 0) {
1973
- const m = R(a, l, le);
1974
- w.push({
1975
- type: "category",
1976
- label: "Other endpoints",
1977
- link: {
1978
- type: "doc",
1979
- id: m,
1980
- label: "Other endpoints"
1981
- },
1982
- collapsible: t.loadTags,
1983
- collapsed: !t.loadTags,
1984
- items: j.map((h) => ({
1985
- type: "link",
1986
- label: h.summary ?? h.path,
1987
- href: `${m}#${h.slug}`
1988
- }))
2060
+ );
2061
+ return t.loadTags && N.length === 0 ? [] : _e({
2062
+ label: v.name,
2063
+ path: y,
2064
+ operations: (r == null ? void 0 : r.params.tag) !== G || t.loadTags ? N : [],
2065
+ collapsible: g,
2066
+ collapsed: C
1989
2067
  });
1990
- }
1991
- return w;
2068
+ });
2069
+ return f.schema.untagged.length > 0 && h.push(
2070
+ _e({
2071
+ label: "Other endpoints",
2072
+ path: O(a, l, G),
2073
+ operations: (r == null ? void 0 : r.params.tag) === G || t.loadTags ? f.schema.untagged : [],
2074
+ collapsible: g,
2075
+ collapsed: C
2076
+ })
2077
+ ), h;
1992
2078
  } catch {
1993
2079
  return [];
1994
2080
  }
1995
2081
  },
1996
- getRoutes: () => {
1997
- const o = s.length > 1 ? [null, ...s] : [null], d = (t.tagPages ?? []).map((l) => ({
1998
- tag: l,
1999
- path: ae(l)
2000
- }));
2001
- return o.map((l) => {
2002
- const c = R(a, l);
2003
- return {
2004
- path: c,
2005
- async lazy() {
2006
- const { OpenApiRoute: i } = await import("./OpenApiRoute-BP9kzG5k.js");
2007
- return {
2008
- element: /* @__PURE__ */ e.jsx(
2009
- i,
2010
- {
2011
- version: l ?? void 0,
2012
- basePath: a,
2013
- versions: s,
2014
- client: n,
2015
- config: t
2016
- }
2017
- )
2018
- };
2019
- },
2020
- children: [
2021
- {
2022
- index: !0,
2023
- loader: () => {
2024
- var i;
2025
- return $t(
2026
- R(c, ((i = d.at(0)) == null ? void 0 : i.path) ?? le)
2027
- );
2028
- }
2029
- },
2030
- {
2031
- path: R(c, le),
2032
- async lazy() {
2033
- const { OperationList: i } = await import("./OperationList-c72qPMtm.js");
2034
- return { element: /* @__PURE__ */ e.jsx(i, { untagged: !0 }) };
2035
- }
2036
- },
2037
- ...d.map((i) => ({
2038
- path: R(c, i.path),
2039
- async lazy() {
2040
- const { OperationList: p } = await import("./OperationList-c72qPMtm.js");
2041
- return {
2042
- element: /* @__PURE__ */ e.jsx(p, { tag: i.tag })
2043
- };
2044
- }
2045
- }))
2046
- ]
2047
- };
2048
- });
2049
- }
2082
+ getRoutes: () => ss({ basePath: a, config: t, client: s })
2050
2083
  };
2051
2084
  };
2052
2085
  export {
2053
- Ye as C,
2054
- Za as P,
2055
- He as a,
2086
+ st as C,
2087
+ es as P,
2088
+ G as U,
2089
+ tt as a,
2056
2090
  Be as b,
2057
- Ge as c,
2058
- ia as d,
2059
- Ke as g,
2060
- Da as m,
2061
- Ts as o
2091
+ Me as c,
2092
+ Ue as d,
2093
+ ua as e,
2094
+ pt as g,
2095
+ za as m,
2096
+ Is as o
2062
2097
  };
2063
- //# sourceMappingURL=index-CZjcfK-H.js.map
2098
+ //# sourceMappingURL=index-BANyVRgL.js.map