zudoku 0.38.0 → 0.39.0

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