zudoku 0.28.1 → 0.28.3

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 (83) hide show
  1. package/dist/app/main.js +1 -2
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/lib/components/index.d.ts +4 -0
  4. package/dist/lib/components/index.js +2 -0
  5. package/dist/lib/components/index.js.map +1 -1
  6. package/dist/lib/components/navigation/Sidebar.js +6 -1
  7. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  8. package/dist/lib/oas/graphql/index.js +11 -10
  9. package/dist/lib/oas/graphql/index.js.map +1 -1
  10. package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
  11. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  12. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  13. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +6 -2
  14. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  15. package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
  16. package/dist/lib/plugins/openapi/playground/Headers.js +2 -2
  17. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  18. package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -0
  19. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  20. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  21. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  22. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  23. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  24. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  25. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  26. package/dist/lib/util/useScrollToAnchor.js +1 -13
  27. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  28. package/dist/vite/plugin-api.js +97 -97
  29. package/dist/vite/plugin-api.js.map +1 -1
  30. package/dist/vite/plugin-theme-css.js +7 -4
  31. package/dist/vite/plugin-theme-css.js.map +1 -1
  32. package/lib/{AuthenticationPlugin-Du8cLBSr.js → AuthenticationPlugin-DeEA69mE.js} +3 -3
  33. package/lib/{AuthenticationPlugin-Du8cLBSr.js.map → AuthenticationPlugin-DeEA69mE.js.map} +1 -1
  34. package/lib/{Markdown-Cyrx_JrO.js → Markdown-LcMEZ0Sn.js} +2 -2
  35. package/lib/{Markdown-Cyrx_JrO.js.map → Markdown-LcMEZ0Sn.js.map} +1 -1
  36. package/lib/{MdxPage-BuG8Tuwc.js → MdxPage-DkH3V4hV.js} +5 -5
  37. package/lib/{MdxPage-BuG8Tuwc.js.map → MdxPage-DkH3V4hV.js.map} +1 -1
  38. package/lib/{OpenApiRoute-UrC_t0e5.js → OpenApiRoute-ULLXjfro.js} +3 -3
  39. package/lib/{OpenApiRoute-UrC_t0e5.js.map → OpenApiRoute-ULLXjfro.js.map} +1 -1
  40. package/lib/{OperationList-CDt1xdc4.js → OperationList-wzZNceUl.js} +339 -336
  41. package/lib/{OperationList-CDt1xdc4.js.map → OperationList-wzZNceUl.js.map} +1 -1
  42. package/lib/{Select-CnCZ4WhS.js → Select-DJkXPPD0.js} +3 -3
  43. package/lib/{Select-CnCZ4WhS.js.map → Select-DJkXPPD0.js.map} +1 -1
  44. package/lib/{SlotletProvider-mQiPDQIH.js → SlotletProvider-D1t2ePCI.js} +4 -4
  45. package/lib/{SlotletProvider-mQiPDQIH.js.map → SlotletProvider-D1t2ePCI.js.map} +1 -1
  46. package/lib/{ZudokuContext-BTUJPpQl.js → ZudokuContext-dUyBGMap.js} +2 -2
  47. package/lib/{ZudokuContext-BTUJPpQl.js.map → ZudokuContext-dUyBGMap.js.map} +1 -1
  48. package/lib/{chunk-SYFQ2XB5-BPvC-soB.js → chunk-SYFQ2XB5-QijJrSf0.js} +3 -3
  49. package/lib/{chunk-SYFQ2XB5-BPvC-soB.js.map → chunk-SYFQ2XB5-QijJrSf0.js.map} +1 -1
  50. package/lib/{createServer-CjNktZzL.js → createServer-DIztAu7i.js} +11 -8
  51. package/lib/{createServer-CjNktZzL.js.map → createServer-DIztAu7i.js.map} +1 -1
  52. package/lib/{hook-FT3SJLe_.js → hook-CiX69UZ6.js} +2 -2
  53. package/lib/{hook-FT3SJLe_.js.map → hook-CiX69UZ6.js.map} +1 -1
  54. package/lib/{index-Eb1oiHbM.js → index-DrR58fsJ.js} +234 -223
  55. package/lib/index-DrR58fsJ.js.map +1 -0
  56. package/lib/{useExposedProps-BLKFBylA.js → useExposedProps-Bbf99zic.js} +2 -2
  57. package/lib/{useExposedProps-BLKFBylA.js.map → useExposedProps-Bbf99zic.js.map} +1 -1
  58. package/lib/{useScrollToAnchor-BZsGmBng.js → useScrollToAnchor-DYGn1MT9.js} +11 -10
  59. package/lib/useScrollToAnchor-DYGn1MT9.js.map +1 -0
  60. package/lib/zudoku.auth-clerk.js +1 -1
  61. package/lib/zudoku.auth-openid.js +3 -3
  62. package/lib/zudoku.components.js +530 -443
  63. package/lib/zudoku.components.js.map +1 -1
  64. package/lib/zudoku.plugin-api-catalog.js +3 -3
  65. package/lib/zudoku.plugin-api-keys.js +5 -5
  66. package/lib/zudoku.plugin-custom-pages.js +2 -2
  67. package/lib/zudoku.plugin-markdown.js +1 -1
  68. package/lib/zudoku.plugin-openapi.js +3 -3
  69. package/lib/zudoku.plugin-redirect.js +1 -1
  70. package/package.json +2 -2
  71. package/src/app/main.tsx +7 -2
  72. package/src/lib/components/index.ts +2 -0
  73. package/src/lib/components/navigation/Sidebar.tsx +7 -1
  74. package/src/lib/oas/graphql/index.ts +14 -17
  75. package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
  76. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -2
  77. package/src/lib/plugins/openapi/playground/Headers.tsx +5 -9
  78. package/src/lib/plugins/openapi/playground/Playground.tsx +4 -1
  79. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +5 -2
  80. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  81. package/src/lib/util/useScrollToAnchor.ts +1 -19
  82. package/lib/index-Eb1oiHbM.js.map +0 -1
  83. package/lib/useScrollToAnchor-BZsGmBng.js.map +0 -1
@@ -8,28 +8,28 @@ var Y = (t, a, s) => (ht(t, a, "read from private field"), s ? s.call(t) : a.get
8
8
  import { j as e } from "./jsx-runtime-Bdg6XQ1m.js";
9
9
  import { s as te } from "./index-CjJS0l4l.js";
10
10
  import { Circle as xt, ChevronRightIcon as z, CheckIcon as ft, DotIcon as gt, Check as yt, Search as vt, XIcon as jt, ChevronDownIcon as bt, InfoIcon as Ee, LogInIcon as Nt, CirclePlayIcon as wt } from "lucide-react";
11
- import { m as Ct, r as $t } from "./chunk-SYFQ2XB5-BPvC-soB.js";
12
- import { u as St } from "./hook-FT3SJLe_.js";
11
+ import { m as Ct, r as $t } from "./chunk-SYFQ2XB5-QijJrSf0.js";
12
+ import { u as St } from "./hook-CiX69UZ6.js";
13
13
  import { Button as _ } from "./ui/Button.js";
14
14
  import { j as I } from "./joinUrl-nLx9pD-Z.js";
15
15
  import { Z as Tt } from "./invariant-Caa8-XvF.js";
16
16
  import { VisuallyHidden as Pt } from "@radix-ui/react-visually-hidden";
17
- import * as x from "react";
17
+ import * as h from "react";
18
18
  import { Fragment as k, useRef as q, useEffect as He, useState as H, useTransition as kt } from "react";
19
19
  import { V as b, T as Rt, D as Ot, b as It, a as Et, c as At } from "./index-B7mqiOei.js";
20
- import { S as Be, a as Ge, b as Ue, c as Me, e as U, u as qt } from "./Select-CnCZ4WhS.js";
20
+ import { S as Be, a as Ge, b as Ue, c as Me, e as U, u as qt } from "./Select-DJkXPPD0.js";
21
21
  import { b as ue, u as pe, C as R, a as Dt, F as Lt } from "./index.esm-CrSoEshU.js";
22
22
  import { c as he } from "./index-Djenk2Hj.js";
23
23
  import { c as u } from "./cn-qaFjX9_3.js";
24
24
  import * as _e from "@radix-ui/react-label";
25
25
  import * as B from "@radix-ui/react-radio-group";
26
26
  import { a as Vt } from "./state-mM7uaXTW.js";
27
- import { k as Ft, l as zt } from "./ZudokuContext-BTUJPpQl.js";
27
+ import { k as Ft, l as zt } from "./ZudokuContext-dUyBGMap.js";
28
28
  import { Card as xe, CardHeader as Ht, CardTitle as Bt, CardContent as Gt } from "./ui/Card.js";
29
29
  import { Tabs as Je, TabsList as Qe, TabsTrigger as E, TabsContent as A } from "./ui/Tabs.js";
30
30
  import { z as Ut, S as Mt } from "./SyntaxHighlight-B0L4SC_N.js";
31
31
  import { B as M, S as _t } from "./Spinner-BlzrEEk1.js";
32
- import * as g from "@radix-ui/react-dropdown-menu";
32
+ import * as y from "@radix-ui/react-dropdown-menu";
33
33
  import * as ie from "@radix-ui/react-checkbox";
34
34
  import * as J from "@radix-ui/react-popover";
35
35
  import { PopoverAnchor as Jt } from "@radix-ui/react-popover";
@@ -49,7 +49,7 @@ const Zt = (t) => {
49
49
  var W, Z;
50
50
  class Kt {
51
51
  constructor(a) {
52
- ee(this, W, async () => (ae || (ae = import("./createServer-CjNktZzL.js").then(
52
+ ee(this, W, async () => (ae || (ae = import("./createServer-DIztAu7i.js").then(
53
53
  (a) => a.createServer(this.config)
54
54
  )), ae));
55
55
  ee(this, Z, async (a) => this.config.server ? fetch(this.config.server, a) : (await Y(this, W).call(this)).fetch("http://localhost/graphql", a));
@@ -286,7 +286,7 @@ const ra = he(
286
286
  variant: "default"
287
287
  }
288
288
  }
289
- ), le = x.forwardRef(({ className: t, variant: a, ...s }, n) => /* @__PURE__ */ e.jsx(
289
+ ), le = h.forwardRef(({ className: t, variant: a, ...s }, n) => /* @__PURE__ */ e.jsx(
290
290
  "div",
291
291
  {
292
292
  ref: n,
@@ -296,7 +296,7 @@ const ra = he(
296
296
  }
297
297
  ));
298
298
  le.displayName = "Alert";
299
- const de = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
299
+ const de = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
300
300
  "h5",
301
301
  {
302
302
  ref: s,
@@ -305,7 +305,7 @@ const de = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
305
305
  }
306
306
  ));
307
307
  de.displayName = "AlertTitle";
308
- const ce = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
308
+ const ce = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
309
309
  "div",
310
310
  {
311
311
  ref: s,
@@ -320,15 +320,15 @@ const oa = ({
320
320
  }) => t.split("/").map((s, n, i) => {
321
321
  const d = Array.from(s.matchAll(/{([^}]+)}/g)), r = [];
322
322
  let m = 0;
323
- return d.forEach((c, h) => {
324
- const [y, v] = c;
325
- if (!v) return;
326
- const p = c.index;
327
- p > m && r.push(
328
- /* @__PURE__ */ e.jsx(k, { children: s.slice(m, p) }, `text-${m}-${p}`)
323
+ return d.forEach((c, p) => {
324
+ const [g, x] = c;
325
+ if (!x) return;
326
+ const f = c.index;
327
+ f > m && r.push(
328
+ /* @__PURE__ */ e.jsx(k, { children: s.slice(m, f) }, `text-${m}-${f}`)
329
329
  ), r.push(
330
- /* @__PURE__ */ e.jsx(k, { children: a({ name: v, originalValue: y, index: h }) }, `param-${v}`)
331
- ), m = p + y.length;
330
+ /* @__PURE__ */ e.jsx(k, { children: a({ name: x, originalValue: g, index: p }) }, `param-${x}`)
331
+ ), m = f + g.length;
332
332
  }), m < s.length && r.push(
333
333
  /* @__PURE__ */ e.jsx(k, { children: s.slice(m) }, `text-${m}-${s.length}`)
334
334
  ), // eslint-disable-next-line react/no-array-index-key
@@ -339,7 +339,7 @@ const oa = ({
339
339
  ] }, `${s}-${n}`);
340
340
  }), ia = he(
341
341
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
342
- ), V = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
342
+ ), V = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
343
343
  _e.Root,
344
344
  {
345
345
  ref: s,
@@ -348,7 +348,7 @@ const oa = ({
348
348
  }
349
349
  ));
350
350
  V.displayName = _e.Root.displayName;
351
- const ye = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
351
+ const ye = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
352
352
  B.Root,
353
353
  {
354
354
  className: u("grid gap-2", t),
@@ -357,7 +357,7 @@ const ye = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
357
357
  }
358
358
  ));
359
359
  ye.displayName = B.Root.displayName;
360
- const Q = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
360
+ const Q = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
361
361
  B.Item,
362
362
  {
363
363
  ref: s,
@@ -370,7 +370,7 @@ const Q = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
370
370
  }
371
371
  ));
372
372
  Q.displayName = B.Item.displayName;
373
- const Ze = x.forwardRef(
373
+ const Ze = h.forwardRef(
374
374
  ({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
375
375
  "textarea",
376
376
  {
@@ -409,10 +409,10 @@ const se = (t) => Math.abs(
409
409
  children: i,
410
410
  onClick: d
411
411
  }) => {
412
- const r = q(null), m = s == null ? void 0 : s.replace(/[{}]/g, ""), c = t.replace(/[{}]/g, ""), { text: h, background: y } = la(c), v = `hsl(${h} / 100%)`, p = `hsl(${y} / 10%)`, l = `hsl(${y} / 50%)`;
412
+ const r = q(null), m = s == null ? void 0 : s.replace(/[{}]/g, ""), c = t.replace(/[{}]/g, ""), { text: p, background: g } = la(c), x = `hsl(${p} / 100%)`, f = `hsl(${g} / 10%)`, l = `hsl(${g} / 50%)`;
413
413
  return He(() => {
414
414
  if (!m || !r.current) return;
415
- const f = () => {
415
+ const v = () => {
416
416
  document.querySelectorAll(`[${re}="${m}"]`).forEach(($) => {
417
417
  $ instanceof HTMLElement && ($.dataset.active = "true");
418
418
  });
@@ -421,8 +421,8 @@ const se = (t) => Math.abs(
421
421
  $ instanceof HTMLElement && ($.dataset.active = "false");
422
422
  });
423
423
  }, N = r.current;
424
- return N.addEventListener("mouseenter", f), N.addEventListener("mouseleave", C), () => {
425
- N.removeEventListener("mouseenter", f), N.removeEventListener("mouseleave", C);
424
+ return N.addEventListener("mouseenter", v), N.addEventListener("mouseleave", C), () => {
425
+ N.removeEventListener("mouseenter", v), N.removeEventListener("mouseleave", C);
426
426
  };
427
427
  }, [m]), /* @__PURE__ */ e.jsx(
428
428
  "span",
@@ -440,9 +440,9 @@ const se = (t) => Math.abs(
440
440
  ref: r,
441
441
  onClick: d,
442
442
  style: {
443
- "--param-color": v,
443
+ "--param-color": x,
444
444
  "--border-color": l,
445
- "--background-color": p
445
+ "--background-color": f
446
446
  },
447
447
  children: i ?? t
448
448
  }
@@ -451,7 +451,7 @@ const se = (t) => Math.abs(
451
451
  const n = a.replace(/(:\w+|\{\w+})/g, (d) => {
452
452
  var c;
453
453
  const r = d.replace(/[:{}]/g, "");
454
- return ((c = s.pathParams.find((h) => h.name === r)) == null ? void 0 : c.value) ?? d;
454
+ return ((c = s.pathParams.find((p) => p.name === r)) == null ? void 0 : c.value) ?? d;
455
455
  }), i = new URL(
456
456
  n.replace(/^\//, ""),
457
457
  t.endsWith("/") ? t : `${t}/`
@@ -459,8 +459,8 @@ const se = (t) => Math.abs(
459
459
  return s.queryParams.filter((d) => d.active).forEach((d) => {
460
460
  i.searchParams.set(d.name, d.value);
461
461
  }), i;
462
- }, Xe = g.Root, Ye = g.Trigger, ca = g.Group, ma = x.forwardRef(({ className: t, inset: a, children: s, ...n }, i) => /* @__PURE__ */ e.jsxs(
463
- g.SubTrigger,
462
+ }, Xe = y.Root, Ye = y.Trigger, ca = y.Group, ma = h.forwardRef(({ className: t, inset: a, children: s, ...n }, i) => /* @__PURE__ */ e.jsxs(
463
+ y.SubTrigger,
464
464
  {
465
465
  ref: i,
466
466
  className: u(
@@ -475,9 +475,9 @@ const se = (t) => Math.abs(
475
475
  ]
476
476
  }
477
477
  ));
478
- ma.displayName = g.SubTrigger.displayName;
479
- const ua = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
480
- g.SubContent,
478
+ ma.displayName = y.SubTrigger.displayName;
479
+ const ua = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
480
+ y.SubContent,
481
481
  {
482
482
  ref: s,
483
483
  className: u(
@@ -487,9 +487,9 @@ const ua = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
487
487
  ...a
488
488
  }
489
489
  ));
490
- ua.displayName = g.SubContent.displayName;
491
- const ve = x.forwardRef(({ className: t, sideOffset: a = 4, ...s }, n) => /* @__PURE__ */ e.jsx(g.Portal, { children: /* @__PURE__ */ e.jsx(
492
- g.Content,
490
+ ua.displayName = y.SubContent.displayName;
491
+ const ve = h.forwardRef(({ className: t, sideOffset: a = 4, ...s }, n) => /* @__PURE__ */ e.jsx(y.Portal, { children: /* @__PURE__ */ e.jsx(
492
+ y.Content,
493
493
  {
494
494
  ref: n,
495
495
  sideOffset: a,
@@ -501,9 +501,9 @@ const ve = x.forwardRef(({ className: t, sideOffset: a = 4, ...s }, n) => /* @__
501
501
  ...s
502
502
  }
503
503
  ) }));
504
- ve.displayName = g.Content.displayName;
505
- const je = x.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */ e.jsx(
506
- g.Item,
504
+ ve.displayName = y.Content.displayName;
505
+ const je = h.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */ e.jsx(
506
+ y.Item,
507
507
  {
508
508
  ref: n,
509
509
  className: u(
@@ -514,9 +514,9 @@ const je = x.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */
514
514
  ...s
515
515
  }
516
516
  ));
517
- je.displayName = g.Item.displayName;
518
- const pa = x.forwardRef(({ className: t, children: a, checked: s, ...n }, i) => /* @__PURE__ */ e.jsxs(
519
- g.CheckboxItem,
517
+ je.displayName = y.Item.displayName;
518
+ const pa = h.forwardRef(({ className: t, children: a, checked: s, ...n }, i) => /* @__PURE__ */ e.jsxs(
519
+ y.CheckboxItem,
520
520
  {
521
521
  ref: i,
522
522
  className: u(
@@ -526,14 +526,14 @@ const pa = x.forwardRef(({ className: t, children: a, checked: s, ...n }, i) =>
526
526
  checked: s,
527
527
  ...n,
528
528
  children: [
529
- /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(g.ItemIndicator, { children: /* @__PURE__ */ e.jsx(ft, { className: "h-4 w-4" }) }) }),
529
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(y.ItemIndicator, { children: /* @__PURE__ */ e.jsx(ft, { className: "h-4 w-4" }) }) }),
530
530
  a
531
531
  ]
532
532
  }
533
533
  ));
534
- pa.displayName = g.CheckboxItem.displayName;
535
- const ha = x.forwardRef(({ className: t, children: a, ...s }, n) => /* @__PURE__ */ e.jsxs(
536
- g.RadioItem,
534
+ pa.displayName = y.CheckboxItem.displayName;
535
+ const ha = h.forwardRef(({ className: t, children: a, ...s }, n) => /* @__PURE__ */ e.jsxs(
536
+ y.RadioItem,
537
537
  {
538
538
  ref: n,
539
539
  className: u(
@@ -542,14 +542,14 @@ const ha = x.forwardRef(({ className: t, children: a, ...s }, n) => /* @__PURE__
542
542
  ),
543
543
  ...s,
544
544
  children: [
545
- /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(g.ItemIndicator, { children: /* @__PURE__ */ e.jsx(gt, { className: "h-4 w-4 fill-current" }) }) }),
545
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(y.ItemIndicator, { children: /* @__PURE__ */ e.jsx(gt, { className: "h-4 w-4 fill-current" }) }) }),
546
546
  a
547
547
  ]
548
548
  }
549
549
  ));
550
- ha.displayName = g.RadioItem.displayName;
551
- const et = x.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */ e.jsx(
552
- g.Label,
550
+ ha.displayName = y.RadioItem.displayName;
551
+ const et = h.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */ e.jsx(
552
+ y.Label,
553
553
  {
554
554
  ref: n,
555
555
  className: u(
@@ -560,16 +560,16 @@ const et = x.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */
560
560
  ...s
561
561
  }
562
562
  ));
563
- et.displayName = g.Label.displayName;
564
- const tt = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
565
- g.Separator,
563
+ et.displayName = y.Label.displayName;
564
+ const tt = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
565
+ y.Separator,
566
566
  {
567
567
  ref: s,
568
568
  className: u("-mx-1 my-1 h-px bg-muted", t),
569
569
  ...a
570
570
  }
571
571
  ));
572
- tt.displayName = g.Separator.displayName;
572
+ tt.displayName = y.Separator.displayName;
573
573
  const xa = ({
574
574
  examples: t,
575
575
  onSelect: a
@@ -591,7 +591,7 @@ const xa = ({
591
591
  )) })
592
592
  ] }, s.mediaType);
593
593
  }) })
594
- ] }) }), K = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
594
+ ] }) }), K = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
595
595
  "div",
596
596
  {
597
597
  ref: s,
@@ -603,7 +603,7 @@ const xa = ({
603
603
  }
604
604
  ));
605
605
  K.displayName = "Card";
606
- const fa = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
606
+ const fa = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
607
607
  "div",
608
608
  {
609
609
  ref: s,
@@ -612,7 +612,7 @@ const fa = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
612
612
  }
613
613
  ));
614
614
  fa.displayName = "CardHeader";
615
- const ga = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
615
+ const ga = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
616
616
  "h3",
617
617
  {
618
618
  ref: s,
@@ -621,7 +621,7 @@ const ga = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
621
621
  }
622
622
  ));
623
623
  ga.displayName = "CardTitle";
624
- const ya = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
624
+ const ya = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
625
625
  "p",
626
626
  {
627
627
  ref: s,
@@ -630,9 +630,9 @@ const ya = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
630
630
  }
631
631
  ));
632
632
  ya.displayName = "CardDescription";
633
- const va = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...a }));
633
+ const va = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...a }));
634
634
  va.displayName = "CardContent";
635
- const ja = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
635
+ const ja = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
636
636
  "div",
637
637
  {
638
638
  ref: s,
@@ -654,7 +654,7 @@ const ba = he(
654
654
  variant: "default"
655
655
  }
656
656
  }
657
- ), be = x.forwardRef(({ className: t, variant: a, ...s }, n) => /* @__PURE__ */ e.jsx(
657
+ ), be = h.forwardRef(({ className: t, variant: a, ...s }, n) => /* @__PURE__ */ e.jsx(
658
658
  ie.Root,
659
659
  {
660
660
  ref: n,
@@ -670,7 +670,7 @@ const ba = he(
670
670
  }
671
671
  ));
672
672
  be.displayName = ie.Root.displayName;
673
- const at = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
673
+ const at = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
674
674
  b,
675
675
  {
676
676
  ref: s,
@@ -682,7 +682,7 @@ const at = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
682
682
  }
683
683
  ));
684
684
  at.displayName = b.displayName;
685
- const Na = x.forwardRef(({ className: t, ...a }, s) => (
685
+ const Na = h.forwardRef(({ className: t, ...a }, s) => (
686
686
  // eslint-disable-next-line react/no-unknown-property
687
687
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
688
688
  /* @__PURE__ */ e.jsx(vt, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
@@ -700,7 +700,7 @@ const Na = x.forwardRef(({ className: t, ...a }, s) => (
700
700
  ] })
701
701
  ));
702
702
  Na.displayName = b.Input.displayName;
703
- const st = x.forwardRef(({ className: t, ...a }, s) => (
703
+ const st = h.forwardRef(({ className: t, ...a }, s) => (
704
704
  // eslint-disable-next-line react/no-unknown-property
705
705
  /* @__PURE__ */ e.jsx("div", { className: "flex items-center", "cmdk-input-wrapper": "", children: /* @__PURE__ */ e.jsx(
706
706
  b.Input,
@@ -716,7 +716,7 @@ const st = x.forwardRef(({ className: t, ...a }, s) => (
716
716
  ) })
717
717
  ));
718
718
  st.displayName = b.Input.displayName;
719
- const nt = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
719
+ const nt = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
720
720
  b.List,
721
721
  {
722
722
  ref: s,
@@ -725,7 +725,7 @@ const nt = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
725
725
  }
726
726
  ));
727
727
  nt.displayName = b.List.displayName;
728
- const wa = x.forwardRef((t, a) => /* @__PURE__ */ e.jsx(
728
+ const wa = h.forwardRef((t, a) => /* @__PURE__ */ e.jsx(
729
729
  b.Empty,
730
730
  {
731
731
  ref: a,
@@ -734,7 +734,7 @@ const wa = x.forwardRef((t, a) => /* @__PURE__ */ e.jsx(
734
734
  }
735
735
  ));
736
736
  wa.displayName = b.Empty.displayName;
737
- const Ca = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
737
+ const Ca = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
738
738
  b.Group,
739
739
  {
740
740
  ref: s,
@@ -746,7 +746,7 @@ const Ca = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
746
746
  }
747
747
  ));
748
748
  Ca.displayName = b.Group.displayName;
749
- const $a = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
749
+ const $a = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
750
750
  b.Separator,
751
751
  {
752
752
  ref: s,
@@ -755,7 +755,7 @@ const $a = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
755
755
  }
756
756
  ));
757
757
  $a.displayName = b.Separator.displayName;
758
- const rt = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
758
+ const rt = h.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
759
759
  b.Item,
760
760
  {
761
761
  ref: s,
@@ -767,7 +767,7 @@ const rt = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
767
767
  }
768
768
  ));
769
769
  rt.displayName = b.Item.displayName;
770
- const Sa = J.Root, ot = x.forwardRef(({ className: t, align: a = "center", sideOffset: s = 4, ...n }, i) => /* @__PURE__ */ e.jsx(J.Portal, { children: /* @__PURE__ */ e.jsx(
770
+ const Sa = J.Root, ot = h.forwardRef(({ className: t, align: a = "center", sideOffset: s = 4, ...n }, i) => /* @__PURE__ */ e.jsx(J.Portal, { children: /* @__PURE__ */ e.jsx(
771
771
  J.Content,
772
772
  {
773
773
  ref: i,
@@ -790,24 +790,24 @@ const Ta = ({
790
790
  onEnterPress: d,
791
791
  ref: r
792
792
  }) => {
793
- const [m, c] = H(!1), [h, y] = H(!1), v = Rt((l) => l.filtered.count), p = q(null);
793
+ const [m, c] = H(!1), [p, g] = H(!1), x = Rt((l) => l.filtered.count), f = q(null);
794
794
  return /* @__PURE__ */ e.jsxs(Sa, { open: m, children: [
795
795
  /* @__PURE__ */ e.jsx(Jt, { children: /* @__PURE__ */ e.jsx(
796
796
  st,
797
797
  {
798
798
  ref: (l) => {
799
- p.current = l, typeof r == "function" ? r(l) : r && (r.current = l);
799
+ f.current = l, typeof r == "function" ? r(l) : r && (r.current = l);
800
800
  },
801
801
  value: t,
802
802
  placeholder: i,
803
803
  className: u("h-9 bg-transparent", n),
804
804
  onFocus: () => c(!0),
805
805
  onBlur: () => {
806
- h || c(!1);
806
+ p || c(!1);
807
807
  },
808
808
  onKeyDown: (l) => {
809
- var f;
810
- l.key === "Enter" && (c(!1), (f = p.current) == null || f.blur(), d == null || d(l));
809
+ var v;
810
+ l.key === "Enter" && (c(!1), (v = f.current) == null || v.blur(), d == null || d(l));
811
811
  },
812
812
  onValueChange: (l) => s(l)
813
813
  }
@@ -815,11 +815,11 @@ const Ta = ({
815
815
  /* @__PURE__ */ e.jsx(
816
816
  ot,
817
817
  {
818
- onMouseEnter: () => y(!0),
819
- onMouseLeave: () => y(!1),
818
+ onMouseEnter: () => g(!0),
819
+ onMouseLeave: () => g(!1),
820
820
  onOpenAutoFocus: (l) => l.preventDefault(),
821
821
  className: u("p-0 w-[--radix-popover-trigger-width]", {
822
- "border-0": v === 0
822
+ "border-0": x === 0
823
823
  }),
824
824
  align: "start",
825
825
  side: "bottom",
@@ -833,8 +833,8 @@ const Ta = ({
833
833
  rt,
834
834
  {
835
835
  value: l,
836
- onSelect: (f) => {
837
- s(f), c(!1);
836
+ onSelect: (v) => {
837
+ s(v), c(!1);
838
838
  },
839
839
  className: "cursor-pointer",
840
840
  children: l
@@ -845,9 +845,9 @@ const Ta = ({
845
845
  )
846
846
  ] });
847
847
  }, me = (t) => /* @__PURE__ */ e.jsx(at, { className: "bg-transparent", children: /* @__PURE__ */ e.jsx(Ta, { ...t }) }), it = (t, a) => {
848
- const s = x.forwardRef(({ className: n, asChild: i, ...d }, r) => {
848
+ const s = h.forwardRef(({ className: n, asChild: i, ...d }, r) => {
849
849
  const m = i ? Qt : t;
850
- return x.createElement(m, {
850
+ return h.createElement(m, {
851
851
  ...d,
852
852
  ref: r,
853
853
  className: typeof a == "function" ? a({ className: n }) : u(a, n)
@@ -884,116 +884,120 @@ const Ta = ({
884
884
  "Set-Cookie",
885
885
  "User-Agent",
886
886
  "X-Requested-With"
887
- ]), ka = ({
888
- control: t,
889
- register: a
890
- }) => {
891
- const { fields: s, append: n, remove: i } = ue({
887
+ ]), ka = ({ control: t }) => {
888
+ const { fields: a, append: s, remove: n } = ue({
892
889
  control: t,
893
890
  name: "headers"
894
- }), { setValue: d } = pe(), r = q([]), m = q([]), c = () => {
895
- n({
891
+ }), { setValue: i } = pe(), d = q([]), r = q([]), m = () => {
892
+ s({
896
893
  name: "",
897
894
  value: "",
898
895
  active: !1
899
896
  });
900
- }, h = (v) => {
901
- var p;
902
- (p = r.current[v]) == null || p.focus();
903
- }, y = (v) => {
904
- c(), requestAnimationFrame(() => {
905
- var p;
906
- return (p = m.current[v + 1]) == null ? void 0 : p.focus();
897
+ }, c = (g) => {
898
+ var x;
899
+ (x = d.current[g]) == null || x.focus();
900
+ }, p = (g) => {
901
+ m(), requestAnimationFrame(() => {
902
+ var x;
903
+ return (x = r.current[g + 1]) == null ? void 0 : x.focus();
907
904
  });
908
905
  };
909
906
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
910
- /* @__PURE__ */ e.jsx(K, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Ne, { children: s.map((v, p) => /* @__PURE__ */ e.jsxs("div", { className: "group grid col-span-full grid-cols-subgrid", children: [
911
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 ", children: [
912
- /* @__PURE__ */ e.jsx(
913
- R,
914
- {
915
- control: t,
916
- name: `headers.${p}.active`,
917
- render: ({ field: l }) => /* @__PURE__ */ e.jsx(
918
- be,
907
+ /* @__PURE__ */ e.jsx(K, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Ne, { children: a.map((g, x) => /* @__PURE__ */ e.jsxs(
908
+ "div",
909
+ {
910
+ className: "group grid col-span-full grid-cols-subgrid",
911
+ children: [
912
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 ", children: [
913
+ /* @__PURE__ */ e.jsx(
914
+ R,
919
915
  {
920
- variant: "outline",
921
- id: `headers.${p}.active`,
922
- checked: l.value,
923
- onCheckedChange: (f) => {
924
- l.onChange(f);
925
- }
916
+ control: t,
917
+ name: `headers.${x}.active`,
918
+ render: ({ field: f }) => /* @__PURE__ */ e.jsx(
919
+ be,
920
+ {
921
+ variant: "outline",
922
+ id: `headers.${x}.active`,
923
+ checked: f.value,
924
+ onCheckedChange: (l) => {
925
+ f.onChange(l);
926
+ }
927
+ }
928
+ )
926
929
  }
927
- )
928
- }
929
- ),
930
- /* @__PURE__ */ e.jsx(
931
- R,
932
- {
933
- control: t,
934
- name: `headers.${p}.name`,
935
- render: ({ field: l }) => /* @__PURE__ */ e.jsx(
936
- me,
930
+ ),
931
+ /* @__PURE__ */ e.jsx(
932
+ R,
937
933
  {
938
- ...l,
939
- placeholder: "Name",
940
- className: "border-0 shadow-none bg-transparent text-xs font-mono",
941
- options: Pa,
942
- onEnterPress: () => h(p),
943
- onChange: (f) => {
944
- l.onChange(f), d(`headers.${p}.active`, !0);
945
- },
946
- ref: (f) => {
947
- m.current[p] = f;
948
- }
934
+ control: t,
935
+ name: `headers.${x}.name`,
936
+ render: ({ field: f }) => /* @__PURE__ */ e.jsx(
937
+ me,
938
+ {
939
+ ...f,
940
+ placeholder: "Name",
941
+ className: "border-0 shadow-none bg-transparent text-xs font-mono",
942
+ options: Pa,
943
+ onEnterPress: () => c(x),
944
+ onChange: (l) => {
945
+ f.onChange(l), i(`headers.${x}.active`, !0);
946
+ },
947
+ ref: (l) => {
948
+ r.current[x] = l;
949
+ }
950
+ }
951
+ )
949
952
  }
950
953
  )
951
- }
952
- )
953
- ] }),
954
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
955
- /* @__PURE__ */ e.jsx(
956
- R,
957
- {
958
- control: t,
959
- name: `headers.${p}.value`,
960
- render: ({ field: l }) => /* @__PURE__ */ e.jsx(
961
- fe,
954
+ ] }),
955
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
956
+ /* @__PURE__ */ e.jsx(
957
+ R,
962
958
  {
963
- placeholder: "Value",
964
- className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
965
- ...l,
966
- ref: (f) => {
967
- r.current[p] = f;
968
- },
969
- onKeyDown: (f) => {
970
- f.key === "Enter" && f.currentTarget.value.trim() && y(p);
959
+ control: t,
960
+ name: `headers.${x}.value`,
961
+ render: ({ field: f }) => /* @__PURE__ */ e.jsx(
962
+ fe,
963
+ {
964
+ placeholder: "Value",
965
+ className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
966
+ ...f,
967
+ ref: (l) => {
968
+ d.current[x] = l;
969
+ },
970
+ onKeyDown: (l) => {
971
+ l.key === "Enter" && l.currentTarget.value.trim() && p(x);
972
+ },
973
+ autoComplete: "off"
974
+ }
975
+ )
976
+ }
977
+ ),
978
+ /* @__PURE__ */ e.jsx(
979
+ _,
980
+ {
981
+ size: "icon",
982
+ variant: "ghost",
983
+ className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
984
+ onClick: () => {
985
+ n(x);
971
986
  },
972
- autoComplete: "off"
987
+ type: "button",
988
+ children: /* @__PURE__ */ e.jsx(jt, { size: 16 })
973
989
  }
974
990
  )
975
- }
976
- ),
977
- /* @__PURE__ */ e.jsx(
978
- _,
979
- {
980
- size: "icon",
981
- variant: "ghost",
982
- className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
983
- onClick: () => {
984
- i(p);
985
- },
986
- type: "button",
987
- children: /* @__PURE__ */ e.jsx(jt, { size: 16 })
988
- }
989
- )
990
- ] })
991
- ] }, p)) }) }),
991
+ ] })
992
+ ]
993
+ },
994
+ g.name
995
+ )) }) }),
992
996
  /* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
993
997
  _,
994
998
  {
995
999
  className: "",
996
- onClick: c,
1000
+ onClick: m,
997
1001
  type: "button",
998
1002
  variant: "secondary",
999
1003
  children: "Add header"
@@ -1093,9 +1097,9 @@ const Ta = ({
1093
1097
  me,
1094
1098
  {
1095
1099
  value: c.value,
1096
- options: a.map((h) => h.name),
1097
- onChange: (h) => {
1098
- c.onChange(h);
1100
+ options: a.map((p) => p.name),
1101
+ onChange: (p) => {
1102
+ c.onChange(p);
1099
1103
  },
1100
1104
  className: "border-0 font-mono text-xs bg-transparent hover:bg-transparent"
1101
1105
  }
@@ -1113,8 +1117,8 @@ const Ta = ({
1113
1117
  {
1114
1118
  value: c.value,
1115
1119
  options: m.enum ?? [],
1116
- onChange: (y) => {
1117
- c.onChange(y), n.setValue(`queryParams.${r}.active`, !0);
1120
+ onChange: (g) => {
1121
+ c.onChange(g), n.setValue(`queryParams.${r}.active`, !0);
1118
1122
  },
1119
1123
  className: "font-mono text-xs border-0 ring-1 ring-ring"
1120
1124
  }
@@ -1122,8 +1126,8 @@ const Ta = ({
1122
1126
  fe,
1123
1127
  {
1124
1128
  ...c,
1125
- onChange: (y) => {
1126
- c.onChange(y.target.value), y.target.value.length > 0 && n.setValue(`queryParams.${r}.active`, !0);
1129
+ onChange: (g) => {
1130
+ c.onChange(g.target.value), g.target.value.length > 0 && n.setValue(`queryParams.${r}.active`, !0);
1127
1131
  },
1128
1132
  placeholder: "Enter value",
1129
1133
  className: "w-full border-0 shadow-none text-xs font-mono"
@@ -1271,13 +1275,13 @@ const Va = {
1271
1275
  url: d
1272
1276
  }) => {
1273
1277
  var l;
1274
- const r = za(a), m = Ha(t), c = m || t, [h, y] = H(
1278
+ const r = za(a), m = Ha(t), c = m || t, [p, g] = H(
1275
1279
  m ? "formatted" : "raw"
1276
- ), v = Ft({
1280
+ ), x = Ft({
1277
1281
  queryKey: ["types", c],
1278
1282
  queryFn: async () => La(JSON.parse(c)),
1279
- enabled: h === "types"
1280
- }), p = Ba([...a]);
1283
+ enabled: p === "types"
1284
+ }), f = Ba([...a]);
1281
1285
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-y-scroll max-h-[calc(100vh-220px)] py-4", children: [
1282
1286
  /* @__PURE__ */ e.jsxs(Ve, { defaultOpen: !0, children: [
1283
1287
  /* @__PURE__ */ e.jsxs(Fe, { className: "flex items-center gap-2 hover:text-primary group", children: [
@@ -1285,31 +1289,31 @@ const Va = {
1285
1289
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1286
1290
  ] }),
1287
1291
  /* @__PURE__ */ e.jsx(ze, { 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: [
1288
- p.slice(0, 5).map(([f, C]) => /* @__PURE__ */ e.jsxs(k, { children: [
1289
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1292
+ f.slice(0, 5).map(([v, C]) => /* @__PURE__ */ e.jsxs(k, { children: [
1293
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: v }),
1290
1294
  /* @__PURE__ */ e.jsx("div", { className: "break-all", children: C })
1291
- ] }, f)),
1292
- p.length > 5 && /* @__PURE__ */ e.jsxs(Ve, { className: "col-span-full grid-cols-subgrid grid", children: [
1295
+ ] }, v)),
1296
+ f.length > 5 && /* @__PURE__ */ e.jsxs(Ve, { className: "col-span-full grid-cols-subgrid grid", children: [
1293
1297
  /* @__PURE__ */ e.jsxs(Fe, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
1294
1298
  /* @__PURE__ */ e.jsx(z, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1295
1299
  "Show ",
1296
- p.length - 5,
1300
+ f.length - 5,
1297
1301
  " more headers"
1298
1302
  ] }),
1299
- /* @__PURE__ */ e.jsx(ze, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: p.slice(5).map(([f, C]) => /* @__PURE__ */ e.jsxs(k, { children: [
1300
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1303
+ /* @__PURE__ */ e.jsx(ze, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: f.slice(5).map(([v, C]) => /* @__PURE__ */ e.jsxs(k, { children: [
1304
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: v }),
1301
1305
  /* @__PURE__ */ e.jsx("div", { className: "break-all", children: C })
1302
- ] }, f)) })
1306
+ ] }, v)) })
1303
1307
  ] })
1304
1308
  ] }) })
1305
1309
  ] }),
1306
1310
  /* @__PURE__ */ e.jsx(xe, { className: "shadow-none", children: /* @__PURE__ */ e.jsx(
1307
1311
  Mt,
1308
1312
  {
1309
- language: h === "types" ? "typescript" : h === "raw" ? m ? "plain" : r : "json",
1313
+ language: p === "types" ? "typescript" : p === "raw" ? m ? "plain" : r : "json",
1310
1314
  noBackground: !0,
1311
1315
  className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
1312
- code: (h === "raw" ? t : h === "types" ? (l = v.data) == null ? void 0 : l.lines.join(`
1316
+ code: (p === "raw" ? t : p === "types" ? (l = x.data) == null ? void 0 : l.lines.join(`
1313
1317
  `) : c) ?? ""
1314
1318
  }
1315
1319
  ) }),
@@ -1338,8 +1342,8 @@ const Va = {
1338
1342
  m && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
1339
1343
  Be,
1340
1344
  {
1341
- value: h,
1342
- onValueChange: (f) => y(f),
1345
+ value: p,
1346
+ onValueChange: (v) => g(v),
1343
1347
  children: [
1344
1348
  /* @__PURE__ */ e.jsx(Ge, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(Ue, { placeholder: "View" }) }),
1345
1349
  /* @__PURE__ */ e.jsxs(Me, { children: [
@@ -1466,7 +1470,7 @@ const Va = {
1466
1470
  examples: c
1467
1471
  }) => {
1468
1472
  var Pe, ke, Re;
1469
- const { selectedServer: h, setSelectedServer: y } = Vt(), [, v] = kt(), { register: p, control: l, handleSubmit: f, watch: C, setValue: N, ...$ } = Dt({
1473
+ const { selectedServer: p, setSelectedServer: g } = Vt(), [, x] = kt(), { register: f, control: l, handleSubmit: v, watch: C, setValue: N, ...$ } = Dt({
1470
1474
  defaultValues: {
1471
1475
  body: m,
1472
1476
  queryParams: d.map((o) => ({
@@ -1510,7 +1514,7 @@ const Va = {
1510
1514
  mutationFn: async (o) => {
1511
1515
  var G, L;
1512
1516
  const P = performance.now(), w = new Request(
1513
- da(h ?? t, s, o),
1517
+ da(p ?? t, s, o),
1514
1518
  {
1515
1519
  method: n.toUpperCase(),
1516
1520
  headers: Object.fromEntries(
@@ -1578,10 +1582,10 @@ const Va = {
1578
1582
  Be,
1579
1583
  {
1580
1584
  onValueChange: (o) => {
1581
- v(() => y(o));
1585
+ x(() => g(o));
1582
1586
  },
1583
- value: h,
1584
- defaultValue: h,
1587
+ value: p,
1588
+ defaultValue: p,
1585
1589
  children: [
1586
1590
  /* @__PURE__ */ e.jsx(Ge, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto", children: /* @__PURE__ */ e.jsx(Ue, {}) }),
1587
1591
  /* @__PURE__ */ e.jsx(Me, { children: a.map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o.replace(/^https?:\/\//, "") }, o)) })
@@ -1591,16 +1595,16 @@ const Va = {
1591
1595
  return /* @__PURE__ */ e.jsx(
1592
1596
  Lt,
1593
1597
  {
1594
- register: p,
1598
+ register: f,
1595
1599
  control: l,
1596
- handleSubmit: f,
1600
+ handleSubmit: v,
1597
1601
  watch: C,
1598
1602
  setValue: N,
1599
1603
  ...$,
1600
1604
  children: /* @__PURE__ */ e.jsx(
1601
1605
  "form",
1602
1606
  {
1603
- onSubmit: f((o) => Se.mutateAsync(o)),
1607
+ onSubmit: v((o) => Se.mutateAsync(o)),
1604
1608
  ref: $e,
1605
1609
  children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
1606
1610
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 p-4 after:bg-muted-foreground/20 relative after:absolute after:w-px after:inset-0 after:left-auto", children: [
@@ -1639,7 +1643,7 @@ const Va = {
1639
1643
  ] }),
1640
1644
  /* @__PURE__ */ e.jsx(E, { value: "body", children: "Body" })
1641
1645
  ] }) }),
1642
- /* @__PURE__ */ e.jsx(A, { value: "headers", children: /* @__PURE__ */ e.jsx(ka, { control: l, register: p }) }),
1646
+ /* @__PURE__ */ e.jsx(A, { value: "headers", children: /* @__PURE__ */ e.jsx(ka, { control: l }) }),
1643
1647
  /* @__PURE__ */ e.jsxs(A, { value: "parameters", children: [
1644
1648
  r.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1645
1649
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
@@ -1661,7 +1665,7 @@ const Va = {
1661
1665
  /* @__PURE__ */ e.jsx(
1662
1666
  Ze,
1663
1667
  {
1664
- ...p("body"),
1668
+ ...f("body"),
1665
1669
  className: u(
1666
1670
  "border w-full rounded-lg p-2 bg-muted h-40 font-mono",
1667
1671
  !["POST", "PUT", "PATCH", "DELETE"].includes(
@@ -1772,10 +1776,17 @@ const Va = {
1772
1776
  ), Qa = (t) => {
1773
1777
  const [a, s] = H(!1);
1774
1778
  return /* @__PURE__ */ e.jsxs(Ot, { onOpenChange: (n) => s(n), children: [
1775
- /* @__PURE__ */ e.jsx(It, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs("button", { 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", children: [
1776
- "Test",
1777
- /* @__PURE__ */ e.jsx(Ja, { className: "", size: 14 })
1778
- ] }) }),
1779
+ /* @__PURE__ */ e.jsx(It, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1780
+ "button",
1781
+ {
1782
+ type: "button",
1783
+ 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",
1784
+ children: [
1785
+ "Test",
1786
+ /* @__PURE__ */ e.jsx(Ja, { size: 14 })
1787
+ ]
1788
+ }
1789
+ ) }),
1779
1790
  /* @__PURE__ */ e.jsxs(
1780
1791
  Et,
1781
1792
  {
@@ -1848,15 +1859,15 @@ const Va = {
1848
1859
  url: m,
1849
1860
  ...c
1850
1861
  }) => {
1851
- const h = St();
1862
+ const p = St();
1852
1863
  if (!d)
1853
1864
  throw new Error("Server is required");
1854
- return i && !h.isAuthenticated ? /* @__PURE__ */ e.jsxs(
1865
+ return i && !p.isAuthenticated ? /* @__PURE__ */ e.jsxs(
1855
1866
  _,
1856
1867
  {
1857
1868
  className: "gap-2 items-center",
1858
1869
  variant: "outline",
1859
- onClick: h.login,
1870
+ onClick: p.login,
1860
1871
  children: [
1861
1872
  "Login to open in Playground ",
1862
1873
  /* @__PURE__ */ e.jsx(Nt, { size: 16 })
@@ -1887,13 +1898,13 @@ const Va = {
1887
1898
  ), m = r ?? Object.keys(t.input).at(0), c = await n.fetch(Wa, {
1888
1899
  type: t.type,
1889
1900
  input: t.type === "file" ? t.input[m] : t.input
1890
- }), h = (d = t.tagPages) == null ? void 0 : d.find(
1901
+ }), p = (d = t.tagPages) == null ? void 0 : d.find(
1891
1902
  (l) => i.split("/").at(-1) === te(l)
1892
- ), v = (await n.fetch(Za, {
1903
+ ), x = (await n.fetch(Za, {
1893
1904
  type: t.type,
1894
1905
  input: t.type === "file" ? t.input[m] : t.input,
1895
- tag: h,
1896
- untagged: h === void 0
1906
+ tag: p,
1907
+ untagged: p === void 0
1897
1908
  })).schema.operations.map((l) => ({
1898
1909
  type: "link",
1899
1910
  label: l.summary ?? l.path,
@@ -1905,7 +1916,7 @@ const Va = {
1905
1916
  }
1906
1917
  }));
1907
1918
  return c.schema.tags.map((l) => {
1908
- const f = I(
1919
+ const v = I(
1909
1920
  a,
1910
1921
  r,
1911
1922
  l.name ? te(l.name) : oe
@@ -1915,12 +1926,12 @@ const Va = {
1915
1926
  label: l.name || "Other endpoints",
1916
1927
  link: {
1917
1928
  type: "doc",
1918
- id: f,
1929
+ id: v,
1919
1930
  label: l.name
1920
1931
  },
1921
1932
  collapsible: !1,
1922
1933
  collapsed: !0,
1923
- items: i === f ? v : []
1934
+ items: i === v ? x : []
1924
1935
  };
1925
1936
  });
1926
1937
  } catch {
@@ -1937,7 +1948,7 @@ const Va = {
1937
1948
  return {
1938
1949
  path: m,
1939
1950
  async lazy() {
1940
- const { OpenApiRoute: c } = await import("./OpenApiRoute-UrC_t0e5.js");
1951
+ const { OpenApiRoute: c } = await import("./OpenApiRoute-ULLXjfro.js");
1941
1952
  return {
1942
1953
  element: /* @__PURE__ */ e.jsx(
1943
1954
  c,
@@ -1964,16 +1975,16 @@ const Va = {
1964
1975
  {
1965
1976
  path: I(m, oe),
1966
1977
  async lazy() {
1967
- const { OperationList: c } = await import("./OperationList-CDt1xdc4.js");
1978
+ const { OperationList: c } = await import("./OperationList-wzZNceUl.js");
1968
1979
  return { element: /* @__PURE__ */ e.jsx(c, { untagged: !0 }) };
1969
1980
  }
1970
1981
  },
1971
1982
  ...d.map((c) => ({
1972
1983
  path: I(m, c.path),
1973
1984
  async lazy() {
1974
- const { OperationList: h } = await import("./OperationList-CDt1xdc4.js");
1985
+ const { OperationList: p } = await import("./OperationList-wzZNceUl.js");
1975
1986
  return {
1976
- element: /* @__PURE__ */ e.jsx(h, { tag: c.tag })
1987
+ element: /* @__PURE__ */ e.jsx(p, { tag: c.tag })
1977
1988
  };
1978
1989
  }
1979
1990
  }))
@@ -1994,4 +2005,4 @@ export {
1994
2005
  Aa as m,
1995
2006
  $s as o
1996
2007
  };
1997
- //# sourceMappingURL=index-Eb1oiHbM.js.map
2008
+ //# sourceMappingURL=index-DrR58fsJ.js.map