zudoku 0.53.0 → 0.53.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/demo.js +14 -0
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/lib/authentication/authentication.d.ts +2 -0
  4. package/dist/lib/authentication/components/SignIn.js +4 -3
  5. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  6. package/dist/lib/authentication/providers/openid.d.ts +4 -2
  7. package/dist/lib/authentication/providers/openid.js +11 -5
  8. package/dist/lib/authentication/providers/openid.js.map +1 -1
  9. package/dist/lib/components/MobileTopNavigation.js +8 -5
  10. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  11. package/dist/lib/components/TopNavigation.d.ts +5 -0
  12. package/dist/lib/components/TopNavigation.js +16 -12
  13. package/dist/lib/components/TopNavigation.js.map +1 -1
  14. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  15. package/dist/lib/core/ZudokuContext.js +14 -1
  16. package/dist/lib/core/ZudokuContext.js.map +1 -1
  17. package/dist/lib/plugins/api-keys/index.js +1 -1
  18. package/dist/lib/plugins/markdown/MdxPage.js +3 -2
  19. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  20. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  21. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  22. package/dist/lib/plugins/openapi/index.js +1 -1
  23. package/dist/lib/plugins/openapi/index.js.map +1 -1
  24. package/lib/{MdxPage-swXPJ0gf.js → MdxPage-8UuEK446.js} +37 -37
  25. package/lib/MdxPage-8UuEK446.js.map +1 -0
  26. package/lib/{OasProvider-CDAM3TB1.js → OasProvider-BsWpguVO.js} +2 -2
  27. package/lib/{OasProvider-CDAM3TB1.js.map → OasProvider-BsWpguVO.js.map} +1 -1
  28. package/lib/{OperationList-C9Hb9ql8.js → OperationList-PnZbf3b2.js} +6 -6
  29. package/lib/{OperationList-C9Hb9ql8.js.map → OperationList-PnZbf3b2.js.map} +1 -1
  30. package/lib/{Pagination-VGlgeCmS.js → Pagination-DY7gCrm4.js} +2 -2
  31. package/lib/{Pagination-VGlgeCmS.js.map → Pagination-DY7gCrm4.js.map} +1 -1
  32. package/lib/{SchemaList-BAbh1BXO.js → SchemaList-D6k4DKWH.js} +3 -3
  33. package/lib/{SchemaList-BAbh1BXO.js.map → SchemaList-D6k4DKWH.js.map} +1 -1
  34. package/lib/{SchemaView-C2Io712T.js → SchemaView-BhgJ9WB8.js} +3 -3
  35. package/lib/{SchemaView-C2Io712T.js.map → SchemaView-BhgJ9WB8.js.map} +1 -1
  36. package/lib/SignUp-CpUD6DUM.js +56 -0
  37. package/lib/SignUp-CpUD6DUM.js.map +1 -0
  38. package/lib/{circular-B42RaanD.js → circular-BUMjK3JF.js} +2 -2
  39. package/lib/{circular-B42RaanD.js.map → circular-BUMjK3JF.js.map} +1 -1
  40. package/lib/{createServer-BKFsRuuk.js → createServer-BPz8ZCrd.js} +3 -3
  41. package/lib/createServer-BPz8ZCrd.js.map +1 -0
  42. package/lib/{errors-CF2X_x5o.js → errors-DY-qOx9n.js} +3 -3
  43. package/lib/{errors-CF2X_x5o.js.map → errors-DY-qOx9n.js.map} +1 -1
  44. package/lib/{index-CLy1XyH0.js → index-C_xVKbf9.js} +1285 -1240
  45. package/lib/index-C_xVKbf9.js.map +1 -0
  46. package/lib/{index-B6Re5_cx.js → index-dVBKCNMa.js} +123 -123
  47. package/lib/{index-B6Re5_cx.js.map → index-dVBKCNMa.js.map} +1 -1
  48. package/lib/zudoku.auth-azureb2c.js +1 -1
  49. package/lib/zudoku.auth-clerk.js +1 -1
  50. package/lib/zudoku.auth-openid.js +114 -105
  51. package/lib/zudoku.auth-openid.js.map +1 -1
  52. package/lib/zudoku.components.js +1 -1
  53. package/lib/zudoku.plugin-api-catalog.js +1 -1
  54. package/lib/zudoku.plugin-api-keys.js +271 -265
  55. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  56. package/lib/zudoku.plugin-markdown.js +1 -1
  57. package/lib/zudoku.plugin-openapi.js +1 -1
  58. package/package.json +4 -4
  59. package/src/app/demo.tsx +16 -1
  60. package/src/lib/authentication/authentication.ts +2 -2
  61. package/src/lib/authentication/components/SignIn.tsx +5 -12
  62. package/src/lib/authentication/providers/openid.tsx +23 -4
  63. package/src/lib/components/MobileTopNavigation.tsx +56 -7
  64. package/src/lib/components/TopNavigation.tsx +30 -14
  65. package/src/lib/core/ZudokuContext.ts +21 -0
  66. package/src/lib/plugins/api-keys/index.tsx +1 -1
  67. package/src/lib/plugins/markdown/MdxPage.tsx +3 -2
  68. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  69. package/src/lib/plugins/openapi/index.tsx +1 -1
  70. package/dist/flat-config.d.ts +0 -325
  71. package/lib/MdxPage-swXPJ0gf.js.map +0 -1
  72. package/lib/SignUp-5RUdVhnq.js +0 -63
  73. package/lib/SignUp-5RUdVhnq.js.map +0 -1
  74. package/lib/createServer-BKFsRuuk.js.map +0 -1
  75. package/lib/index-CLy1XyH0.js.map +0 -1
@@ -1,17 +1,17 @@
1
1
  import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
- import { ChevronDown as xt, ChevronUp as jn, Check as gt, ChevronUpIcon as Nn, ChevronRightIcon as wn, CheckIcon as yt, DotIcon as Cn, PlusCircleIcon as fe, FileInput as Sn, TableOfContentsIcon as Tn, LockIcon as An, CircleAlertIcon as On, XIcon as vt, Circle as Rn, Unlink2Icon as Pn, CornerDownRightIcon as Ln, CornerDownLeftIcon as $n, DownloadIcon as In, UnplugIcon as En, SendIcon as kn, CopyIcon as Dn, IdCardLanyardIcon as zn, ShapesIcon as Fn, LogInIcon as qn, CirclePlayIcon as Vn } from "lucide-react";
2
+ import { ChevronDown as xt, ChevronUp as jn, Check as gt, ChevronUpIcon as Nn, ChevronRightIcon as wn, CheckIcon as yt, DotIcon as Cn, PlusCircleIcon as fe, FileInput as Sn, TableOfContentsIcon as Tn, LockIcon as An, CircleAlertIcon as On, XIcon as vt, Circle as Rn, Unlink2Icon as Pn, CornerDownRightIcon as Ln, CornerDownLeftIcon as $n, DownloadIcon as En, UnplugIcon as In, SendIcon as kn, CopyIcon as Dn, IdCardLanyardIcon as zn, ShapesIcon as Fn, LogInIcon as qn, CirclePlayIcon as Vn } from "lucide-react";
3
3
  import { r as Bn, c as _n, u as Un, N as Mn, g as Gn, m as rt } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
4
- import { o as $e, p as Ie, q as bt, d as Hn, l as Qn, r as Jn, j as E, c as Wn, e as Xn } from "./hook-Bd0yS8M0.js";
4
+ import { o as $e, p as Ee, q as bt, d as Hn, l as Qn, r as Jn, j as I, c as Wn, e as Xn } from "./hook-Bd0yS8M0.js";
5
5
  import { Button as se } from "./ui/Button.js";
6
6
  import { Z as Zn, i as Yn } from "./invariant-DAFpPywt.js";
7
7
  import * as w from "react";
8
8
  import { createContext as jt, use as Kn, useRef as L, useEffect as z, useMemo as Nt, useState as k, useCallback as wt, Fragment as K, useLayoutEffect as es, useTransition as ts, useContext as ns } from "react";
9
9
  import { VisuallyHidden as ss } from "@radix-ui/react-visually-hidden";
10
- import { D as Ee, a as ke, b as De, d as Ct, f as St, e as rs } from "./Dialog-CiIdyz6a.js";
11
- import { S as as, a as os } from "./index-CLy1XyH0.js";
10
+ import { D as Ie, a as ke, b as De, d as Ct, f as St, e as rs } from "./Dialog-CiIdyz6a.js";
11
+ import { S as as, a as os } from "./index-C_xVKbf9.js";
12
12
  import { A as is, a as cs, b as ls, u as ds } from "./Alert-CT_ViLrJ.js";
13
13
  import { u as oe, a as ze, C as F, b as us, F as ms } from "./index.esm-Cp4wkyud.js";
14
- import { B as I } from "./Button-BE9IVkWV.js";
14
+ import { B as E } from "./Button-BE9IVkWV.js";
15
15
  import * as Fe from "@radix-ui/react-collapsible";
16
16
  import * as S from "@radix-ui/react-select";
17
17
  import { c as v } from "./cn-wvCW-ho6.js";
@@ -43,7 +43,7 @@ class Os {
43
43
  constructor(t) {
44
44
  this.config = t;
45
45
  }
46
- #e = async () => (Ne || (Ne = import("./createServer-BKFsRuuk.js").then(
46
+ #e = async () => (Ne || (Ne = import("./createServer-BPz8ZCrd.js").then(
47
47
  (t) => t.createServer(this.config)
48
48
  )), Ne);
49
49
  #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
@@ -95,14 +95,14 @@ function At(e, t) {
95
95
  const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, l = t.line === 1 ? s : 0, c = t.column + l, u = `${e.name}:${i}:${c}
96
96
  `, d = a.split(/\r\n|[\n\r]/g), p = d[r];
97
97
  if (p.length > 120) {
98
- const f = Math.floor(c / 80), m = c % 80, x = [];
98
+ const h = Math.floor(c / 80), m = c % 80, x = [];
99
99
  for (let y = 0; y < p.length; y += 80)
100
100
  x.push(p.slice(y, y + 80));
101
101
  return u + ct([
102
102
  [`${i} |`, x[0]],
103
- ...x.slice(1, f + 1).map((y) => ["|", y]),
103
+ ...x.slice(1, h + 1).map((y) => ["|", y]),
104
104
  ["|", "^".padStart(m)],
105
- ["|", x[f + 1]]
105
+ ["|", x[h + 1]]
106
106
  ]);
107
107
  }
108
108
  return u + ct([
@@ -118,7 +118,7 @@ function ct(e) {
118
118
  return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
119
119
  `);
120
120
  }
121
- function Is(e) {
121
+ function Es(e) {
122
122
  const t = e[0];
123
123
  return t == null || "kind" in t || "length" in t ? {
124
124
  nodes: t,
@@ -170,14 +170,14 @@ class qe extends Error {
170
170
  */
171
171
  constructor(t, ...s) {
172
172
  var a, r, o;
173
- const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: p } = Is(s);
173
+ const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: p } = Es(s);
174
174
  super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = lt(
175
175
  Array.isArray(i) ? i : i ? [i] : void 0
176
176
  );
177
- const f = lt(
177
+ const h = lt(
178
178
  (a = this.nodes) === null || a === void 0 ? void 0 : a.map((x) => x.loc).filter((x) => x != null)
179
179
  );
180
- this.source = l ?? (f == null || (r = f[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? f?.map((x) => x.start), this.locations = c && l ? c.map((x) => Pe(l, x)) : f?.map((x) => Pe(x.source, x.start));
180
+ this.source = l ?? (h == null || (r = h[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? h?.map((x) => x.start), this.locations = c && l ? c.map((x) => Pe(l, x)) : h?.map((x) => Pe(x.source, x.start));
181
181
  const m = Rs(
182
182
  d?.extensions
183
183
  ) ? d?.extensions : void 0;
@@ -315,7 +315,7 @@ class Ot {
315
315
  };
316
316
  }
317
317
  }
318
- const Es = {
318
+ const Is = {
319
319
  Name: [],
320
320
  Document: ["definitions"],
321
321
  OperationDefinition: [
@@ -389,7 +389,7 @@ const Es = {
389
389
  UnionTypeExtension: ["name", "directives", "types"],
390
390
  EnumTypeExtension: ["name", "directives", "values"],
391
391
  InputObjectTypeExtension: ["name", "directives", "fields"]
392
- }, ks = new Set(Object.keys(Es));
392
+ }, ks = new Set(Object.keys(Is));
393
393
  function Ga(e) {
394
394
  const t = e?.kind;
395
395
  return typeof t == "string" && ks.has(t);
@@ -437,8 +437,8 @@ function qs(e, t) {
437
437
  const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((m) => m.length === 0 || Le(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
438
438
  (!r || e.length > 70 || u || o || i);
439
439
  let p = "";
440
- const f = r && Le(e.charCodeAt(0));
441
- return (d && !f || o) && (p += `
440
+ const h = r && Le(e.charCodeAt(0));
441
+ return (d && !h || o) && (p += `
442
442
  `), p += s, (d || u) && (p += `
443
443
  `), '"""' + p + '"""';
444
444
  }
@@ -883,8 +883,8 @@ function Xs(e, t) {
883
883
  s.slice(t, r)
884
884
  );
885
885
  }
886
- const Zs = 10, It = 2;
887
- function Et(e) {
886
+ const Zs = 10, Et = 2;
887
+ function It(e) {
888
888
  return ge(e, []);
889
889
  }
890
890
  function ge(e, t) {
@@ -918,14 +918,14 @@ function Ks(e) {
918
918
  }
919
919
  function er(e, t) {
920
920
  const s = Object.entries(e);
921
- return s.length === 0 ? "{}" : t.length > It ? "[" + nr(e) + "]" : "{ " + s.map(
921
+ return s.length === 0 ? "{}" : t.length > Et ? "[" + nr(e) + "]" : "{ " + s.map(
922
922
  ([r, o]) => r + ": " + ge(o, t)
923
923
  ).join(", ") + " }";
924
924
  }
925
925
  function tr(e, t) {
926
926
  if (e.length === 0)
927
927
  return "[]";
928
- if (t.length > It)
928
+ if (t.length > Et)
929
929
  return "[Array]";
930
930
  const s = Math.min(Zs, e.length), a = e.length - s, r = [];
931
931
  for (let o = 0; o < s; ++o)
@@ -957,7 +957,7 @@ process.env.NODE_ENV === "production", rr = (
957
957
  Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
958
958
  );
959
959
  if (r === o) {
960
- const i = Et(t);
960
+ const i = It(t);
961
961
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
962
962
 
963
963
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -980,7 +980,7 @@ class kt {
980
980
  line: 1,
981
981
  column: 1
982
982
  }) {
983
- typeof t == "string" || we(!1, `Body must be a string. Received: ${Et(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || we(
983
+ typeof t == "string" || we(!1, `Body must be a string. Received: ${It(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || we(
984
984
  !1,
985
985
  "line in locationOffset is 1-indexed and must be positive."
986
986
  ), this.locationOffset.column > 0 || we(
@@ -1417,7 +1417,7 @@ const jr = {
1417
1417
  )
1418
1418
  };
1419
1419
  }, wr = $e()(
1420
- Ie(
1420
+ Ee(
1421
1421
  (e) => ({
1422
1422
  selectedServer: void 0,
1423
1423
  setSelectedServer: (t) => e({ selectedServer: t })
@@ -1593,7 +1593,7 @@ const $r = ({
1593
1593
  onSelect: t
1594
1594
  }) => /* @__PURE__ */ n.jsxs(Sr, { children: [
1595
1595
  /* @__PURE__ */ n.jsx(Tr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1596
- I,
1596
+ E,
1597
1597
  {
1598
1598
  variant: "ghost",
1599
1599
  size: "sm",
@@ -1623,7 +1623,7 @@ const $r = ({
1623
1623
  a.name
1624
1624
  )) })
1625
1625
  ] }, s.mediaType)) })
1626
- ] }), Ir = ({ content: e }) => {
1626
+ ] }), Er = ({ content: e }) => {
1627
1627
  const { register: t, setValue: s, watch: a } = oe(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1628
1628
  return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1629
1629
  /* @__PURE__ */ n.jsxs(M, { children: [
@@ -1669,7 +1669,7 @@ const $r = ({
1669
1669
  r.searchParams.set(o.name, o.value);
1670
1670
  }), r;
1671
1671
  };
1672
- function Er(e) {
1672
+ function Ir(e) {
1673
1673
  return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
1674
1674
  e
1675
1675
  );
@@ -1734,14 +1734,14 @@ const zr = ({
1734
1734
  onEnterPress: o,
1735
1735
  ref: i
1736
1736
  }) => {
1737
- const [l, c] = k(!1), [u, d] = k(!1), p = gs((m) => m.filtered.count), f = L(null);
1737
+ const [l, c] = k(!1), [u, d] = k(!1), p = gs((m) => m.filtered.count), h = L(null);
1738
1738
  return /* @__PURE__ */ n.jsxs(Dr, { open: l, children: [
1739
1739
  /* @__PURE__ */ n.jsx(xs, { children: /* @__PURE__ */ n.jsx(
1740
1740
  vs,
1741
1741
  {
1742
1742
  autoComplete: "off",
1743
1743
  ref: (m) => {
1744
- f.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
1744
+ h.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
1745
1745
  },
1746
1746
  value: e,
1747
1747
  placeholder: r,
@@ -1751,7 +1751,7 @@ const zr = ({
1751
1751
  u || c(!1);
1752
1752
  },
1753
1753
  onKeyDown: (m) => {
1754
- m.key === "Enter" && (c(!1), f.current?.blur(), o?.(m));
1754
+ m.key === "Enter" && (c(!1), h.current?.blur(), o?.(m));
1755
1755
  },
1756
1756
  onValueChange: (m) => s(m)
1757
1757
  }
@@ -1839,19 +1839,19 @@ const zr = ({
1839
1839
  const { fields: a, append: r, remove: o } = ze({
1840
1840
  control: e,
1841
1841
  name: "headers"
1842
- }), { setValue: i, watch: l, formState: c } = oe(), u = L([]), d = L([]), p = l("headers"), f = wt(
1842
+ }), { setValue: i, watch: l, formState: c } = oe(), u = L([]), d = L([]), p = l("headers"), h = wt(
1843
1843
  (j) => {
1844
1844
  j?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
1845
1845
  },
1846
1846
  [r]
1847
1847
  );
1848
1848
  z(() => {
1849
- p.length === 0 && f();
1850
- }, [p, f]);
1849
+ p.length === 0 && h();
1850
+ }, [p, h]);
1851
1851
  const m = (j) => {
1852
1852
  u.current[j]?.focus();
1853
1853
  }, x = (j) => {
1854
- f(), requestAnimationFrame(() => d.current[j + 1]?.focus());
1854
+ h(), requestAnimationFrame(() => d.current[j + 1]?.focus());
1855
1855
  }, y = t.filter((j) => !p.some((N) => N.name === j.name)).map(({ name: j }) => j), b = a.flatMap((j, N) => !s?.map((O) => O.toLowerCase()).includes(j.name.toLowerCase()) ? [] : [N]), R = s?.map((j) => ({
1856
1856
  name: j,
1857
1857
  id: `locked-${j}`,
@@ -1866,7 +1866,7 @@ const zr = ({
1866
1866
  /* @__PURE__ */ n.jsxs(
1867
1867
  se,
1868
1868
  {
1869
- onClick: f,
1869
+ onClick: h,
1870
1870
  type: "button",
1871
1871
  size: "sm",
1872
1872
  variant: "ghost",
@@ -2106,7 +2106,7 @@ const Zt = ({
2106
2106
  onOpenChange: a
2107
2107
  }) => {
2108
2108
  const [r, o] = k(void 0), [i, l] = k(!1);
2109
- return /* @__PURE__ */ n.jsx(Ee, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2109
+ return /* @__PURE__ */ n.jsx(Ie, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2110
2110
  /* @__PURE__ */ n.jsx(De, { children: "Select an auth identity" }),
2111
2111
  /* @__PURE__ */ n.jsx(Ct, { children: "Please select an identity for this request." }),
2112
2112
  /* @__PURE__ */ n.jsx(ws, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
@@ -2132,7 +2132,7 @@ const Zt = ({
2132
2132
  /* @__PURE__ */ n.jsx(Ue, { htmlFor: "remember", children: "Remember my choice" })
2133
2133
  ] }),
2134
2134
  /* @__PURE__ */ n.jsx(
2135
- I,
2135
+ E,
2136
2136
  {
2137
2137
  onClick: () => e({ identity: r, rememberedIdentity: i }),
2138
2138
  children: "Send"
@@ -2165,7 +2165,7 @@ const Zt = ({
2165
2165
  children: r,
2166
2166
  onClick: o
2167
2167
  }) => {
2168
- const i = L(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = _r(c), p = `hsl(${u} / 100%)`, f = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
2168
+ const i = L(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = _r(c), p = `hsl(${u} / 100%)`, h = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
2169
2169
  return z(() => {
2170
2170
  if (!l || !i.current) return;
2171
2171
  const x = () => {
@@ -2198,7 +2198,7 @@ const Zt = ({
2198
2198
  style: {
2199
2199
  "--param-color": p,
2200
2200
  "--border-color": m,
2201
- "--background-color": f
2201
+ "--background-color": h
2202
2202
  },
2203
2203
  children: r ?? e
2204
2204
  }
@@ -2268,7 +2268,7 @@ const Zt = ({
2268
2268
  /* @__PURE__ */ n.jsx(Pn, { size: 16 }),
2269
2269
  /* @__PURE__ */ n.jsx(G, { children: "Query Parameters" }),
2270
2270
  /* @__PURE__ */ n.jsxs(
2271
- I,
2271
+ E,
2272
2272
  {
2273
2273
  onClick: () => {
2274
2274
  o("queryParams", [
@@ -2288,7 +2288,7 @@ const Zt = ({
2288
2288
  )
2289
2289
  ] }),
2290
2290
  /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(_e, { children: s.map((d, p) => {
2291
- const f = t.find(
2291
+ const h = t.find(
2292
2292
  (m) => m.name === c.at(p)?.name
2293
2293
  );
2294
2294
  return /* @__PURE__ */ n.jsxs(he, { children: [
@@ -2342,11 +2342,11 @@ const Zt = ({
2342
2342
  F,
2343
2343
  {
2344
2344
  control: e,
2345
- render: ({ field: m }) => f?.enum && f.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2345
+ render: ({ field: m }) => h?.enum && h.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2346
2346
  pe,
2347
2347
  {
2348
2348
  value: m.value,
2349
- options: f.enum ?? [],
2349
+ options: h.enum ?? [],
2350
2350
  onChange: (y) => {
2351
2351
  m.onChange(y), o(`queryParams.${p}.active`, !0);
2352
2352
  },
@@ -2368,7 +2368,7 @@ const Zt = ({
2368
2368
  }
2369
2369
  ),
2370
2370
  /* @__PURE__ */ n.jsx(
2371
- I,
2371
+ E,
2372
2372
  {
2373
2373
  size: "icon-xs",
2374
2374
  variant: "ghost",
@@ -2383,7 +2383,7 @@ const Zt = ({
2383
2383
  }) }) }) })
2384
2384
  ] });
2385
2385
  }, Hr = $e()(
2386
- Ie(
2386
+ Ee(
2387
2387
  (e, t) => ({
2388
2388
  rememberedIdentity: null,
2389
2389
  setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
@@ -2407,12 +2407,12 @@ const Zt = ({
2407
2407
  return i.forEach((u) => {
2408
2408
  const [d, p] = u;
2409
2409
  if (!p) return;
2410
- const f = u.index;
2411
- f > c && l.push(
2412
- /* @__PURE__ */ n.jsx(K, { children: a.slice(c, f) }, `text-${c}-${f}`)
2410
+ const h = u.index;
2411
+ h > c && l.push(
2412
+ /* @__PURE__ */ n.jsx(K, { children: a.slice(c, h) }, `text-${c}-${h}`)
2413
2413
  ), l.push(
2414
2414
  /* @__PURE__ */ n.jsx(K, { children: t({ name: p, originalValue: d, index: s++ }) }, `param-${p}`)
2415
- ), c = f + d.length;
2415
+ ), c = h + d.length;
2416
2416
  }), c < a.length && l.push(
2417
2417
  /* @__PURE__ */ n.jsx(K, { children: a.slice(c) }, `text-${c}-${a.length}`)
2418
2418
  ), // eslint-disable-next-line react/no-array-index-key
@@ -2462,14 +2462,14 @@ const Zt = ({
2462
2462
  setOpen: t,
2463
2463
  onSignUp: s,
2464
2464
  onLogin: a
2465
- }) => /* @__PURE__ */ n.jsx(Ee, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2465
+ }) => /* @__PURE__ */ n.jsx(Ie, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2466
2466
  /* @__PURE__ */ n.jsx(De, { children: "Welcome to the Playground!" }),
2467
2467
  /* @__PURE__ */ n.jsx(Ct, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2468
2468
  /* @__PURE__ */ n.jsxs(St, { className: "flex gap-2 sm:justify-between", children: [
2469
- /* @__PURE__ */ n.jsx(I, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2469
+ /* @__PURE__ */ n.jsx(E, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2470
2470
  /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2471
- s && /* @__PURE__ */ n.jsx(I, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2472
- a && /* @__PURE__ */ n.jsx(I, { type: "button", variant: "default", onClick: a, children: "Login" })
2471
+ s && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2472
+ a && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "default", onClick: a, children: "Login" })
2473
2473
  ] })
2474
2474
  ] })
2475
2475
  ] }) }), Kt = (e = 0) => {
@@ -2638,7 +2638,7 @@ const na = (e) => Object.entries({
2638
2638
  }) => {
2639
2639
  const l = sa(t), c = ra(e), u = c || e, [d, p] = k(
2640
2640
  c ? "formatted" : "raw"
2641
- ), f = Qn({
2641
+ ), h = Qn({
2642
2642
  queryKey: ["types", u],
2643
2643
  queryFn: async () => ta(JSON.parse(u)),
2644
2644
  enabled: d === "types" && !r
@@ -2704,13 +2704,13 @@ const na = (e) => Object.entries({
2704
2704
  /* @__PURE__ */ n.jsx("div", { className: "text-lg font-semibold", children: "Binary Content" }),
2705
2705
  /* @__PURE__ */ n.jsx("div", { className: "text-sm text-muted-foreground", children: "This response contains binary data that cannot be displayed as text." }),
2706
2706
  /* @__PURE__ */ n.jsxs(
2707
- I,
2707
+ E,
2708
2708
  {
2709
2709
  onClick: m,
2710
2710
  className: "flex items-center gap-2",
2711
2711
  disabled: !i,
2712
2712
  children: [
2713
- /* @__PURE__ */ n.jsx(In, { className: "h-4 w-4" }),
2713
+ /* @__PURE__ */ n.jsx(En, { className: "h-4 w-4" }),
2714
2714
  "Download ",
2715
2715
  o || "file",
2716
2716
  " (",
@@ -2723,7 +2723,7 @@ const na = (e) => Object.entries({
2723
2723
  en,
2724
2724
  {
2725
2725
  language: d === "types" ? "typescript" : d === "raw" ? c ? "plain" : l : "json",
2726
- code: (d === "raw" ? e : d === "types" ? f.data?.lines.join(`
2726
+ code: (d === "raw" ? e : d === "types" ? h.data?.lines.join(`
2727
2727
  `) : u) ?? ""
2728
2728
  }
2729
2729
  ) }) })
@@ -2747,7 +2747,7 @@ const na = (e) => Object.entries({
2747
2747
  }
2748
2748
  ),
2749
2749
  e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(is, { children: [
2750
- /* @__PURE__ */ n.jsx(En, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2750
+ /* @__PURE__ */ n.jsx(In, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2751
2751
  /* @__PURE__ */ n.jsx(cs, { children: "Request failed" }),
2752
2752
  /* @__PURE__ */ n.jsx(ls, { children: e.error.message || String(e.error) || "Unexpected error" })
2753
2753
  ] }) }) : e.data ? /* @__PURE__ */ n.jsx(
@@ -2799,7 +2799,7 @@ const na = (e) => Object.entries({
2799
2799
  a
2800
2800
  ] }) })
2801
2801
  ] }), ca = $e()(
2802
- Ie(
2802
+ Ee(
2803
2803
  (e) => ({
2804
2804
  skipLogin: !1,
2805
2805
  setSkipLogin: (t) => e({ skipLogin: t })
@@ -2823,18 +2823,18 @@ const na = (e) => Object.entries({
2823
2823
  onLogin: d,
2824
2824
  onSignUp: p
2825
2825
  }) => {
2826
- const { selectedServer: f, setSelectedServer: m } = Cr(
2827
- t.map((h) => ({ url: h }))
2826
+ const { selectedServer: h, setSelectedServer: m } = Cr(
2827
+ t.map((f) => ({ url: f }))
2828
2828
  ), [x, y] = k(!1), b = Jn(), { setRememberedIdentity: R, getRememberedIdentity: j } = Hr(), [, N] = ts(), { skipLogin: Q, setSkipLogin: O } = ca(), [D, P] = k(!1), J = L(void 0), He = fs(R), Qe = L(null), { label: on } = Nr("meta+enter", () => {
2829
2829
  Qe.current?.requestSubmit();
2830
2830
  }), { register: cn, control: ce, handleSubmit: Je, watch: We, setValue: ve, ...be } = us({
2831
2831
  defaultValues: {
2832
2832
  body: l,
2833
- queryParams: o.length > 0 ? o.map((h) => ({
2834
- name: h.name,
2835
- value: h.defaultValue ?? "",
2836
- active: h.defaultActive ?? !1,
2837
- enum: h.enum ?? []
2833
+ queryParams: o.length > 0 ? o.map((f) => ({
2834
+ name: f.name,
2835
+ value: f.defaultValue ?? "",
2836
+ active: f.defaultActive ?? !1,
2837
+ enum: f.enum ?? []
2838
2838
  })) : [
2839
2839
  {
2840
2840
  name: "",
@@ -2843,14 +2843,14 @@ const na = (e) => Object.entries({
2843
2843
  enum: []
2844
2844
  }
2845
2845
  ],
2846
- pathParams: i.map((h) => ({
2847
- name: h.name,
2848
- value: h.defaultValue ?? ""
2846
+ pathParams: i.map((f) => ({
2847
+ name: f.name,
2848
+ value: f.defaultValue ?? ""
2849
2849
  })),
2850
- headers: r.length > 0 ? r.map((h) => ({
2851
- name: h.name,
2852
- value: h.defaultValue ?? "",
2853
- active: h.defaultActive ?? !1
2850
+ headers: r.length > 0 ? r.map((f) => ({
2851
+ name: f.name,
2852
+ value: f.defaultValue ?? "",
2853
+ active: f.defaultActive ?? !1
2854
2854
  })) : [
2855
2855
  {
2856
2856
  name: "",
@@ -2860,11 +2860,11 @@ const na = (e) => Object.entries({
2860
2860
  ],
2861
2861
  identity: j([
2862
2862
  ne,
2863
- ...b.data?.map((h) => h.id) ?? []
2863
+ ...b.data?.map((f) => f.id) ?? []
2864
2864
  ])
2865
2865
  }
2866
2866
  }), W = We("identity"), ln = Nt(
2867
- () => b.data?.find((h) => h.id === W)?.authorizationFields,
2867
+ () => b.data?.find((f) => f.id === W)?.authorizationFields,
2868
2868
  [b.data, W]
2869
2869
  );
2870
2870
  z(() => {
@@ -2872,18 +2872,18 @@ const na = (e) => Object.entries({
2872
2872
  }, [He, W]);
2873
2873
  const B = ds({
2874
2874
  gcTime: 0,
2875
- mutationFn: async (h) => {
2875
+ mutationFn: async (f) => {
2876
2876
  const le = performance.now(), yn = Object.fromEntries([
2877
- ...h.headers.filter((A) => A.name && A.active).map((A) => [A.name, A.value])
2877
+ ...f.headers.filter((A) => A.name && A.active).map((A) => [A.name, A.value])
2878
2878
  ]), _ = new Request(
2879
- mt(e ?? f, s, h),
2879
+ mt(e ?? h, s, f),
2880
2880
  {
2881
2881
  method: a.toUpperCase(),
2882
2882
  headers: yn,
2883
- body: h.body ? h.body : void 0
2883
+ body: f.body ? f.body : void 0
2884
2884
  }
2885
2885
  );
2886
- h.identity !== ne && await b.data?.find((A) => A.id === h.identity)?.authorizeRequest(_);
2886
+ f.identity !== ne && await b.data?.find((A) => A.id === f.identity)?.authorizeRequest(_);
2887
2887
  const je = setTimeout(
2888
2888
  () => P(!0),
2889
2889
  3210
@@ -2897,7 +2897,7 @@ const na = (e) => Object.entries({
2897
2897
  signal: J.current.signal
2898
2898
  });
2899
2899
  clearTimeout(je), P(!1);
2900
- const vn = performance.now() - le, bn = new URL(_.url), Ye = Array.from(A.headers.entries()), Ke = A.headers.get("content-type") || "", et = Er(Ke);
2900
+ const vn = performance.now() - le, bn = new URL(_.url), Ye = Array.from(A.headers.entries()), Ke = A.headers.get("content-type") || "", et = Ir(Ke);
2901
2901
  let de = "", tt, nt;
2902
2902
  et ? (tt = await A.blob(), nt = kr(Ye, _.url), de = `Binary content (${Ke})`) : de = await A.text();
2903
2903
  const st = A.headers.get("content-length");
@@ -2918,7 +2918,7 @@ const na = (e) => Object.entries({
2918
2918
  ["User-Agent", "Zudoku Playground"],
2919
2919
  ...Array.from(_.headers.entries())
2920
2920
  ],
2921
- body: h.body ? h.body : void 0
2921
+ body: f.body ? f.body : void 0
2922
2922
  }
2923
2923
  };
2924
2924
  } catch (A) {
@@ -2929,8 +2929,8 @@ const na = (e) => Object.entries({
2929
2929
  }
2930
2930
  }), Xe = B.isPending, [dn, un] = k(!1);
2931
2931
  z(() => {
2932
- const h = setTimeout(() => un(Xe), 100);
2933
- return () => clearTimeout(h);
2932
+ const f = setTimeout(() => un(Xe), 100);
2933
+ return () => clearTimeout(f);
2934
2934
  }, [Xe]);
2935
2935
  const { isFinished: mn, progress: pn } = os({ isAnimating: dn });
2936
2936
  z(() => () => {
@@ -2939,14 +2939,14 @@ const na = (e) => Object.entries({
2939
2939
  const hn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2940
2940
  qt,
2941
2941
  {
2942
- onValueChange: (h) => {
2943
- N(() => m(h));
2942
+ onValueChange: (f) => {
2943
+ N(() => m(f));
2944
2944
  },
2945
- value: f,
2946
- defaultValue: f,
2945
+ value: h,
2946
+ defaultValue: h,
2947
2947
  children: [
2948
2948
  /* @__PURE__ */ n.jsx(Ve, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Vt, {}) }),
2949
- /* @__PURE__ */ n.jsx(Be, { children: t.map((h) => /* @__PURE__ */ n.jsx(te, { value: h, children: h.replace(/^https?:\/\//, "").replace(/\/$/, "") }, h)) })
2949
+ /* @__PURE__ */ n.jsx(Be, { children: t.map((f) => /* @__PURE__ */ n.jsx(te, { value: f, children: f.replace(/^https?:\/\//, "").replace(/\/$/, "") }, f)) })
2950
2950
  ]
2951
2951
  }
2952
2952
  ) }), fn = u && !Q, xn = ["POST", "PUT", "PATCH", "DELETE"].includes(
@@ -2965,8 +2965,8 @@ const na = (e) => Object.entries({
2965
2965
  "form",
2966
2966
  {
2967
2967
  ref: Qe,
2968
- onSubmit: Je((h) => {
2969
- b.data?.length === 0 || h.identity ? B.mutate(h) : y(!0);
2968
+ onSubmit: Je((f) => {
2969
+ b.data?.length === 0 || f.identity ? B.mutate(f) : y(!0);
2970
2970
  }),
2971
2971
  className: "relative",
2972
2972
  children: [
@@ -2976,8 +2976,8 @@ const na = (e) => Object.entries({
2976
2976
  identities: b.data ?? [],
2977
2977
  open: x,
2978
2978
  onOpenChange: y,
2979
- onSubmit: ({ rememberedIdentity: h, identity: le }) => {
2980
- h && ve("identity", le ?? ne), y(!1), B.mutate({ ...be.getValues(), identity: le });
2979
+ onSubmit: ({ rememberedIdentity: f, identity: le }) => {
2980
+ f && ve("identity", le ?? ne), y(!1), B.mutate({ ...be.getValues(), identity: le });
2981
2981
  }
2982
2982
  }
2983
2983
  ),
@@ -2985,7 +2985,7 @@ const na = (e) => Object.entries({
2985
2985
  Xr,
2986
2986
  {
2987
2987
  open: fn,
2988
- setOpen: (h) => O(!h),
2988
+ setOpen: (f) => O(!f),
2989
2989
  onSignUp: p,
2990
2990
  onLogin: d
2991
2991
  }
@@ -3000,13 +3000,13 @@ const na = (e) => Object.entries({
3000
3000
  /* @__PURE__ */ n.jsx(Wr, {})
3001
3001
  ] }) }),
3002
3002
  /* @__PURE__ */ n.jsx("div", { className: "px-1", children: /* @__PURE__ */ n.jsx(
3003
- I,
3003
+ E,
3004
3004
  {
3005
3005
  type: "button",
3006
3006
  onClick: () => {
3007
3007
  gn(
3008
3008
  mt(
3009
- e ?? f,
3009
+ e ?? h,
3010
3010
  s,
3011
3011
  be.getValues()
3012
3012
  ).toString()
@@ -3023,14 +3023,14 @@ const na = (e) => Object.entries({
3023
3023
  ) })
3024
3024
  ] }),
3025
3025
  /* @__PURE__ */ n.jsx(
3026
- I,
3026
+ E,
3027
3027
  {
3028
3028
  type: "submit",
3029
3029
  variant: B.isPending ? "destructive" : "default",
3030
- onClick: (h) => {
3030
+ onClick: (f) => {
3031
3031
  B.isPending && (J.current?.abort(
3032
3032
  "Request cancelled by user"
3033
- ), h.preventDefault());
3033
+ ), f.preventDefault());
3034
3034
  },
3035
3035
  className: "w-18",
3036
3036
  children: B.isPending ? "Cancel" : "Send"
@@ -3048,7 +3048,7 @@ const na = (e) => Object.entries({
3048
3048
  {
3049
3049
  value: W,
3050
3050
  identities: b.data ?? [],
3051
- setValue: (h) => ve("identity", h)
3051
+ setValue: (f) => ve("identity", f)
3052
3052
  }
3053
3053
  ) })
3054
3054
  ] }),
@@ -3068,7 +3068,7 @@ const na = (e) => Object.entries({
3068
3068
  lockedHeaders: ln?.headers
3069
3069
  }
3070
3070
  ),
3071
- xn && /* @__PURE__ */ n.jsx(Ir, { content: c })
3071
+ xn && /* @__PURE__ */ n.jsx(Er, { content: c })
3072
3072
  ] }),
3073
3073
  /* @__PURE__ */ n.jsx("div", { className: "w-full bg-muted-foreground/20" }),
3074
3074
  /* @__PURE__ */ n.jsx(
@@ -3121,7 +3121,7 @@ const na = (e) => Object.entries({
3121
3121
  }
3122
3122
  ), ua = (e) => {
3123
3123
  const [t, s] = k(!1);
3124
- return /* @__PURE__ */ n.jsxs(Ee, { onOpenChange: (a) => s(a), children: [
3124
+ return /* @__PURE__ */ n.jsxs(Ie, { onOpenChange: (a) => s(a), children: [
3125
3125
  /* @__PURE__ */ n.jsx(rs, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
3126
3126
  "button",
3127
3127
  {
@@ -3191,7 +3191,7 @@ const na = (e) => Object.entries({
3191
3191
  }, ft = (e) => ({
3192
3192
  path: e.routePath,
3193
3193
  async lazy() {
3194
- const { OasProvider: t } = await import("./OasProvider-CDAM3TB1.js");
3194
+ const { OasProvider: t } = await import("./OasProvider-BsWpguVO.js");
3195
3195
  return {
3196
3196
  element: /* @__PURE__ */ n.jsx(
3197
3197
  t,
@@ -3212,7 +3212,7 @@ const na = (e) => Object.entries({
3212
3212
  }) => ({
3213
3213
  path: e,
3214
3214
  async lazy() {
3215
- const { OperationList: a } = await import("./OperationList-C9Hb9ql8.js");
3215
+ const { OperationList: a } = await import("./OperationList-PnZbf3b2.js");
3216
3216
  return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
3217
3217
  }
3218
3218
  }), ha = ({
@@ -3234,7 +3234,7 @@ const na = (e) => Object.entries({
3234
3234
  }, fa = ({ path: e }) => ({
3235
3235
  path: e,
3236
3236
  async lazy() {
3237
- const { OperationList: t } = await import("./OperationList-C9Hb9ql8.js");
3237
+ const { OperationList: t } = await import("./OperationList-PnZbf3b2.js");
3238
3238
  return {
3239
3239
  element: /* @__PURE__ */ n.jsx(
3240
3240
  ha,
@@ -3248,26 +3248,26 @@ const na = (e) => Object.entries({
3248
3248
  }), sn = (e) => [
3249
3249
  // Category without tagged operations
3250
3250
  nn({
3251
- path: E(e, Ge),
3251
+ path: I(e, Ge),
3252
3252
  untagged: !0
3253
3253
  }),
3254
3254
  // Schema list route
3255
3255
  {
3256
- path: E(e, "~schemas"),
3256
+ path: I(e, "~schemas"),
3257
3257
  lazy: async () => {
3258
- const { SchemaList: t } = await import("./SchemaList-BAbh1BXO.js");
3258
+ const { SchemaList: t } = await import("./SchemaList-D6k4DKWH.js");
3259
3259
  return { element: /* @__PURE__ */ n.jsx(t, {}) };
3260
3260
  }
3261
3261
  }
3262
3262
  ], xa = (e, t) => {
3263
- const s = E(e, t.at(0) ?? Ge);
3263
+ const s = I(e, t.at(0) ?? Ge);
3264
3264
  return [
3265
3265
  // Redirect to first tag on the index route
3266
3266
  { index: !0, loader: () => Bn(s) },
3267
3267
  // Create routes for each tag
3268
3268
  ...t.map(
3269
3269
  (a) => nn({
3270
- path: E(e, a),
3270
+ path: I(e, a),
3271
3271
  tag: a
3272
3272
  })
3273
3273
  ),
@@ -3294,7 +3294,7 @@ const na = (e) => Object.entries({
3294
3294
  ];
3295
3295
  const r = rn(t);
3296
3296
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3297
- const l = E(e, i);
3297
+ const l = I(e, i);
3298
3298
  return ft({
3299
3299
  basePath: e,
3300
3300
  version: i,
@@ -3327,7 +3327,7 @@ const na = (e) => Object.entries({
3327
3327
  }
3328
3328
  }
3329
3329
  `), Ge = "~endpoints", Ja = (e) => {
3330
- const t = E(e.path), s = new Os(e);
3330
+ const t = I(e.path), s = new Os(e);
3331
3331
  return {
3332
3332
  getHead: () => {
3333
3333
  if (e.type === "url" && !e.skipPreload)
@@ -3392,9 +3392,9 @@ const na = (e) => Object.entries({
3392
3392
  const i = o?.params.version, l = i ?? rn(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = zt(s, an, {
3393
3393
  type: c,
3394
3394
  input: u
3395
- }), p = await r.queryClient.ensureQueryData(d), f = p.schema.tags.flatMap((x) => {
3395
+ }), p = await r.queryClient.ensureQueryData(d), h = p.schema.tags.flatMap((x) => {
3396
3396
  if (!x.name || x.operations.length === 0) return [];
3397
- const y = E(t, i, x.slug), b = x.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, R = x.extensions?.["x-zudoku-collapsible"] ?? !0;
3397
+ const y = I(t, i, x.slug), b = x.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, R = x.extensions?.["x-zudoku-collapsible"] ?? !0;
3398
3398
  return ht({
3399
3399
  label: x.name,
3400
3400
  path: y,
@@ -3405,18 +3405,18 @@ const na = (e) => Object.entries({
3405
3405
  }), m = p.schema.tags.find(
3406
3406
  (x) => !x.name
3407
3407
  )?.operations;
3408
- return m && f.push(
3408
+ return m && h.push(
3409
3409
  ht({
3410
- label: "Other endpoints",
3411
- path: E(t, i, Ge),
3410
+ label: h.length === 0 ? "Endpoints" : "Other endpoints",
3411
+ path: I(t, i, Ge),
3412
3412
  operations: m,
3413
3413
  collapsed: !e.options?.expandAllTags
3414
3414
  })
3415
- ), p.schema.components?.schemas?.length && f.push({
3415
+ ), p.schema.components?.schemas?.length && h.push({
3416
3416
  type: "link",
3417
3417
  label: "Schemas",
3418
- to: E(t, i, "~schemas")
3419
- }), f;
3418
+ to: I(t, i, "~schemas")
3419
+ }), h;
3420
3420
  } catch {
3421
3421
  return [];
3422
3422
  }
@@ -3435,7 +3435,7 @@ export {
3435
3435
  Vs as L,
3436
3436
  Qa as O,
3437
3437
  ua as P,
3438
- Es as Q,
3438
+ Is as Q,
3439
3439
  qt as S,
3440
3440
  g as T,
3441
3441
  Ge as U,
@@ -3458,7 +3458,7 @@ export {
3458
3458
  Bs as q,
3459
3459
  qe as r,
3460
3460
  $ as s,
3461
- Et as t,
3461
+ It as t,
3462
3462
  pa as u,
3463
3463
  Rs as v,
3464
3464
  rr as w,
@@ -3466,4 +3466,4 @@ export {
3466
3466
  Ps as y,
3467
3467
  Ga as z
3468
3468
  };
3469
- //# sourceMappingURL=index-B6Re5_cx.js.map
3469
+ //# sourceMappingURL=index-dVBKCNMa.js.map