zudoku 0.28.0 → 0.28.1

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