zudoku 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/config/validators/InputSidebarSchema.d.ts +19 -4
  2. package/dist/config/validators/InputSidebarSchema.js +7 -28
  3. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  4. package/dist/config/validators/SidebarSchema.js +5 -6
  5. package/dist/config/validators/SidebarSchema.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +6 -6
  7. package/dist/lib/components/MobileTopNavigation.js +1 -1
  8. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  9. package/dist/lib/components/navigation/Sidebar.js +1 -1
  10. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  11. package/dist/lib/components/navigation/SidebarCategory.js +18 -7
  12. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  13. package/dist/lib/components/navigation/SidebarItem.js +12 -5
  14. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  15. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  16. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  17. package/dist/lib/plugins/openapi/playground/Playground.js +1 -0
  18. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  19. package/dist/vite/plugin-mdx.js +17 -0
  20. package/dist/vite/plugin-mdx.js.map +1 -1
  21. package/lib/{AuthenticationPlugin-CbgJ5SAh.js → AuthenticationPlugin-D1nhROkO.js} +3 -3
  22. package/lib/{AuthenticationPlugin-CbgJ5SAh.js.map → AuthenticationPlugin-D1nhROkO.js.map} +1 -1
  23. package/lib/{CategoryHeading-3Qtp2yZ8.js → CategoryHeading-B7TlPvuN.js} +2 -2
  24. package/lib/{CategoryHeading-3Qtp2yZ8.js.map → CategoryHeading-B7TlPvuN.js.map} +1 -1
  25. package/lib/{DeveloperHint-BE9DzNhv.js → DeveloperHint-B_QCCafl.js} +2 -2
  26. package/lib/{DeveloperHint-BE9DzNhv.js.map → DeveloperHint-B_QCCafl.js.map} +1 -1
  27. package/lib/{ErrorPage-B0COs372.js → ErrorPage-DqqAV1dr.js} +3 -3
  28. package/lib/{ErrorPage-B0COs372.js.map → ErrorPage-DqqAV1dr.js.map} +1 -1
  29. package/lib/{Input-CHfE_2Qk.js → Input-a9rLgbP_.js} +4 -4
  30. package/lib/{Input-CHfE_2Qk.js.map → Input-a9rLgbP_.js.map} +1 -1
  31. package/lib/{Markdown-CWI6lU11.js → Markdown-Y__eLG0x.js} +2 -2
  32. package/lib/{Markdown-CWI6lU11.js.map → Markdown-Y__eLG0x.js.map} +1 -1
  33. package/lib/{MdxPage-C3tlrV4j.js → MdxPage-B4FcPIi5.js} +6 -6
  34. package/lib/MdxPage-B4FcPIi5.js.map +1 -0
  35. package/lib/{OperationList-BO-ES1C5.js → OperationList-BhLMwPSh.js} +8 -8
  36. package/lib/{OperationList-BO-ES1C5.js.map → OperationList-BhLMwPSh.js.map} +1 -1
  37. package/lib/{Route-Dq6zv0Pi.js → Route-fK1i4Ryz.js} +3 -3
  38. package/lib/{Route-Dq6zv0Pi.js.map → Route-fK1i4Ryz.js.map} +1 -1
  39. package/lib/{SidebarBadge-DmI5hT04.js → SidebarBadge-BdzN0ZBK.js} +3 -3
  40. package/lib/{SidebarBadge-DmI5hT04.js.map → SidebarBadge-BdzN0ZBK.js.map} +1 -1
  41. package/lib/{SlotletProvider-RvaeLR6z.js → SlotletProvider-DmqWiVFt.js} +7 -7
  42. package/lib/{SlotletProvider-RvaeLR6z.js.map → SlotletProvider-DmqWiVFt.js.map} +1 -1
  43. package/lib/{ZudokuContext-BEmsYQoq.js → ZudokuContext-MRoel6bS.js} +2 -2
  44. package/lib/{ZudokuContext-BEmsYQoq.js.map → ZudokuContext-MRoel6bS.js.map} +1 -1
  45. package/lib/{index-Dvh1BL_e.js → index-BijFM__9.js} +3 -3
  46. package/lib/{index-Dvh1BL_e.js.map → index-BijFM__9.js.map} +1 -1
  47. package/lib/{index-BRCiYFaL.js → index-DFN92YJN.js} +3 -2
  48. package/lib/{index-BRCiYFaL.js.map → index-DFN92YJN.js.map} +1 -1
  49. package/lib/{index-Do_BBSIs.js → index-_GxJ8hpM.js} +3 -3
  50. package/lib/{index-Do_BBSIs.js.map → index-_GxJ8hpM.js.map} +1 -1
  51. package/lib/{index-DNfiZTPV.js → index-dHVZhVNO.js} +102 -101
  52. package/lib/index-dHVZhVNO.js.map +1 -0
  53. package/lib/{router-Oe6YmY6B.js → router-BsfSoK2j.js} +3 -3
  54. package/lib/{router-Oe6YmY6B.js.map → router-BsfSoK2j.js.map} +1 -1
  55. package/lib/{useExposedProps-Csw8oAlt.js → useExposedProps-BWwxa-Hg.js} +2 -2
  56. package/lib/{useExposedProps-Csw8oAlt.js.map → useExposedProps-BWwxa-Hg.js.map} +1 -1
  57. package/lib/{utils-Chi3p5nE.js → utils-C8S3st2k.js} +3 -3
  58. package/lib/{utils-Chi3p5nE.js.map → utils-C8S3st2k.js.map} +1 -1
  59. package/lib/zudoku.auth-clerk.js +1 -1
  60. package/lib/zudoku.auth-openid.js +5 -5
  61. package/lib/zudoku.components.js +661 -654
  62. package/lib/zudoku.components.js.map +1 -1
  63. package/lib/zudoku.plugin-api-keys.js +7 -7
  64. package/lib/zudoku.plugin-custom-pages.js +2 -2
  65. package/lib/zudoku.plugin-markdown.js +1 -1
  66. package/lib/zudoku.plugin-openapi.js +7 -7
  67. package/lib/zudoku.plugin-redirect.js +1 -1
  68. package/package.json +1 -1
  69. package/src/app/main.css +0 -1
  70. package/src/lib/components/MobileTopNavigation.tsx +1 -1
  71. package/src/lib/components/navigation/Sidebar.tsx +1 -1
  72. package/src/lib/components/navigation/SidebarCategory.tsx +34 -26
  73. package/src/lib/components/navigation/SidebarItem.tsx +16 -17
  74. package/src/lib/plugins/markdown/MdxPage.tsx +10 -8
  75. package/src/lib/plugins/openapi/playground/Playground.tsx +1 -0
  76. package/lib/MdxPage-C3tlrV4j.js.map +0 -1
  77. package/lib/index-DNfiZTPV.js.map +0 -1
@@ -1,21 +1,21 @@
1
1
  import { j as p } from "./jsx-runtime-B6kdoens.js";
2
- import { z as ma, A as ha } from "./ZudokuContext-BEmsYQoq.js";
2
+ import { z as ma, A as ha } from "./ZudokuContext-MRoel6bS.js";
3
3
  import { XIcon as cr, EraserIcon as ur, ChevronsUpDownIcon as ya, LogInIcon as va, CirclePlayIcon as ga } from "lucide-react";
4
4
  import { createClient as ba } from "zudoku/openapi-worker";
5
- import { c as xa, h as ka, u as $a, a as Sa, P as ft, b as vt, B as je, S as wa, V as ja, n as Na } from "./index-Do_BBSIs.js";
6
- import { E as Ta } from "./ErrorPage-B0COs372.js";
7
- import { a as F, b as Oa, S as We, C as Ca } from "./Markdown-CWI6lU11.js";
5
+ import { c as xa, h as ka, u as $a, a as Sa, P as ft, b as vt, B as je, S as wa, V as ja, n as Na } from "./index-_GxJ8hpM.js";
6
+ import { E as Ta } from "./ErrorPage-DqqAV1dr.js";
7
+ import { a as F, b as Oa, S as We, C as Ca } from "./Markdown-Y__eLG0x.js";
8
8
  import { j as Pa } from "./joinPath-B7kNnUX4.js";
9
9
  import * as P from "react";
10
10
  import { useRef as dr, useEffect as pr, useState as fr, useTransition as mr, Fragment as Ze, createContext as Ea, useContext as Ra, useMemo as Aa } from "react";
11
- import { O as hr, C as yr, a as qa, b as vr, D as gr, e as Fa, d as Ia, T as _a, c as br, R as La, I as Ua, P as Ma, f as me } from "./SidebarBadge-DmI5hT04.js";
12
- import { g as Yt, I as it, C as $e, h as Ha, u as Ba, a as Va, S as vn, b as gn, c as bn, d as xn, f as gt, F as za } from "./Input-CHfE_2Qk.js";
11
+ import { O as hr, C as yr, a as qa, b as vr, D as gr, e as Fa, d as Ia, T as _a, c as br, R as La, I as Ua, P as Ma, f as me } from "./SidebarBadge-BdzN0ZBK.js";
12
+ import { g as Yt, I as it, C as $e, h as Ha, u as Ba, a as Va, S as vn, b as gn, c as bn, d as xn, f as gt, F as za } from "./Input-a9rLgbP_.js";
13
13
  import { a as xr } from "./state-CsuHT8ZO.js";
14
14
  import { S as kn } from "./Spinner-3cQDBVGr.js";
15
15
  import { g as Da, c as Me, a as Ja } from "./index-DJqnphbT.js";
16
- import { b as Wa, d as Ga } from "./index-BRCiYFaL.js";
16
+ import { b as Wa, d as Ga } from "./index-DFN92YJN.js";
17
17
  import { o as $n, s as _t, t as Qa, a as Ka, c as Ya, C as Xa, b as Za, f as ei } from "./urql-core-KJnLL26g.js";
18
- import { c as ti } from "./router-Oe6YmY6B.js";
18
+ import { b as ti } from "./router-BsfSoK2j.js";
19
19
  var kr = {}, mt = P.createContext(kr), lu = mt.Provider;
20
20
  mt.Consumer;
21
21
  mt.displayName = "UrqlContext";
@@ -1514,18 +1514,18 @@ const kt = (e) => Math.abs(
1514
1514
  const { selectedServer: l, setSelectedServer: c } = xr(), [, u] = mr(), { register: f, control: d, handleSubmit: m, watch: h, setValue: v, ...g } = Ba({
1515
1515
  defaultValues: {
1516
1516
  body: o,
1517
- queryParams: i.map(($) => ({
1518
- name: $.name,
1519
- value: $.defaultValue ?? "",
1520
- active: $.defaultActive ?? !1
1517
+ queryParams: i.map((k) => ({
1518
+ name: k.name,
1519
+ value: k.defaultValue ?? "",
1520
+ active: k.defaultActive ?? !1
1521
1521
  })),
1522
- pathParams: r.map(($) => ({
1523
- name: $.name,
1524
- value: $.defaultValue ?? ""
1522
+ pathParams: r.map((k) => ({
1523
+ name: k.name,
1524
+ value: k.defaultValue ?? ""
1525
1525
  })),
1526
- headers: s.map(($) => ({
1527
- name: $.name,
1528
- value: $.defaultValue ?? ""
1526
+ headers: s.map((k) => ({
1527
+ name: k.name,
1528
+ value: k.defaultValue ?? ""
1529
1529
  })),
1530
1530
  identity: et
1531
1531
  }
@@ -1533,19 +1533,20 @@ const kt = (e) => Math.abs(
1533
1533
  pr(() => {
1534
1534
  var L;
1535
1535
  if (x.current) return;
1536
- const $ = (L = y.data) == null ? void 0 : L.at(0);
1537
- $ && (v("identity", $.id), x.current = !0);
1536
+ const k = (L = y.data) == null ? void 0 : L.at(0);
1537
+ k && (v("identity", k.id), x.current = !0);
1538
1538
  }, [v, y.data]);
1539
- const k = Va({
1540
- mutationFn: async ($) => {
1539
+ const $ = Va({
1540
+ mutationFn: async (k) => {
1541
1541
  var B, D;
1542
- const L = Ni(l ?? e, n, $), I = performance.now(), z = new Request(L, {
1542
+ const L = Ni(l ?? e, n, k), I = performance.now(), z = new Request(L, {
1543
1543
  method: a.toUpperCase(),
1544
1544
  headers: Object.fromEntries(
1545
- $.headers.filter((_) => _.name).map((_) => [_.name, _.value])
1546
- )
1545
+ k.headers.filter((_) => _.name).map((_) => [_.name, _.value])
1546
+ ),
1547
+ body: k.body ? k.body : void 0
1547
1548
  });
1548
- $.identity !== et && ((D = (B = y.data) == null ? void 0 : B.find((_) => _.id === $.identity)) == null || D.authorizeRequest(z));
1549
+ k.identity !== et && ((D = (B = y.data) == null ? void 0 : B.find((_) => _.id === k.identity)) == null || D.authorizeRequest(z));
1549
1550
  try {
1550
1551
  const _ = await fetch(z, {
1551
1552
  signal: AbortSignal.timeout(5e3)
@@ -1563,42 +1564,42 @@ const kt = (e) => Math.abs(
1563
1564
  ) : _;
1564
1565
  }
1565
1566
  }
1566
- }), S = n.split("/").map(($, L, I) => {
1567
+ }), S = n.split("/").map((k, L, I) => {
1567
1568
  var he;
1568
- const z = $.startsWith("{") && $.endsWith("}") || $.startsWith(":"), B = $.replace(/[:{}]/g, ""), D = (he = b.pathParams.find((pe) => pe.name === B)) == null ? void 0 : he.value, _ = D ? /* @__PURE__ */ p.jsx(rn, { backgroundOpacity: "25%", name: $, slug: $, children: encodeURIComponent(D) }) : /* @__PURE__ */ p.jsx(
1569
+ const z = k.startsWith("{") && k.endsWith("}") || k.startsWith(":"), B = k.replace(/[:{}]/g, ""), D = (he = b.pathParams.find((pe) => pe.name === B)) == null ? void 0 : he.value, _ = D ? /* @__PURE__ */ p.jsx(rn, { backgroundOpacity: "25%", name: k, slug: k, children: encodeURIComponent(D) }) : /* @__PURE__ */ p.jsx(
1569
1570
  "span",
1570
1571
  {
1571
1572
  className: "underline decoration-wavy decoration-red-500",
1572
1573
  title: `Missing value for path parameter \`${B}\``,
1573
- children: $
1574
+ children: k
1574
1575
  }
1575
1576
  );
1576
1577
  return (
1577
1578
  // eslint-disable-next-line react/no-array-index-key
1578
1579
  /* @__PURE__ */ p.jsxs(Ze, { children: [
1579
- z ? _ : $,
1580
+ z ? _ : k,
1580
1581
  L < I.length - 1 && "/",
1581
1582
  /* @__PURE__ */ p.jsx("wbr", {})
1582
- ] }, $ + L)
1583
+ ] }, k + L)
1583
1584
  );
1584
- }), j = Array.from(((A = k.data) == null ? void 0 : A.headers.entries()) ?? []), R = b.queryParams.filter(($) => $.active).map(($, L, I) => /* @__PURE__ */ p.jsxs(Ze, { children: [
1585
- $.name,
1585
+ }), j = Array.from(((A = $.data) == null ? void 0 : A.headers.entries()) ?? []), R = b.queryParams.filter((k) => k.active).map((k, L, I) => /* @__PURE__ */ p.jsxs(Ze, { children: [
1586
+ k.name,
1586
1587
  "=",
1587
- encodeURIComponent($.value).replaceAll("%20", "+"),
1588
+ encodeURIComponent(k.value).replaceAll("%20", "+"),
1588
1589
  L < I.length - 1 && "&",
1589
1590
  /* @__PURE__ */ p.jsx("wbr", {})
1590
- ] }, $.name)), E = /* @__PURE__ */ p.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t && t.length > 1 ? /* @__PURE__ */ p.jsxs(
1591
+ ] }, k.name)), E = /* @__PURE__ */ p.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t && t.length > 1 ? /* @__PURE__ */ p.jsxs(
1591
1592
  vn,
1592
1593
  {
1593
- onValueChange: ($) => {
1594
+ onValueChange: (k) => {
1594
1595
  u(() => {
1595
- c($);
1596
+ c(k);
1596
1597
  });
1597
1598
  },
1598
1599
  value: l,
1599
1600
  children: [
1600
1601
  /* @__PURE__ */ p.jsx(gn, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto", children: /* @__PURE__ */ p.jsx(bn, {}) }),
1601
- /* @__PURE__ */ p.jsx(xn, { children: t.map(($) => /* @__PURE__ */ p.jsx(gt, { value: $, children: $.replace(/^https?:\/\//, "") }, $)) })
1602
+ /* @__PURE__ */ p.jsx(xn, { children: t.map((k) => /* @__PURE__ */ p.jsx(gt, { value: k, children: k.replace(/^https?:\/\//, "") }, k)) })
1602
1603
  ]
1603
1604
  }
1604
1605
  ) : /* @__PURE__ */ p.jsx("span", { children: e.replace(/^https?:\/\//, "") }) });
@@ -1611,7 +1612,7 @@ const kt = (e) => Math.abs(
1611
1612
  watch: h,
1612
1613
  setValue: v,
1613
1614
  ...g,
1614
- children: /* @__PURE__ */ p.jsx("form", { onSubmit: m(($) => k.mutateAsync($)), children: /* @__PURE__ */ p.jsxs("div", { className: "grid grid-cols-[8fr_7fr] text-sm h-full", children: [
1615
+ children: /* @__PURE__ */ p.jsx("form", { onSubmit: m((k) => $.mutateAsync(k)), children: /* @__PURE__ */ p.jsxs("div", { className: "grid grid-cols-[8fr_7fr] text-sm h-full", children: [
1615
1616
  /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-4 p-8 bg-muted/50 after:bg-muted-foreground/20 relative after:absolute after:w-px after:inset-0 after:left-auto", children: [
1616
1617
  /* @__PURE__ */ p.jsxs("div", { className: "flex gap-2 items-stretch", children: [
1617
1618
  /* @__PURE__ */ p.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
@@ -1654,14 +1655,14 @@ const kt = (e) => Math.abs(
1654
1655
  /* @__PURE__ */ p.jsxs(
1655
1656
  vn,
1656
1657
  {
1657
- onValueChange: ($) => v("identity", $),
1658
+ onValueChange: (k) => v("identity", k),
1658
1659
  value: b.identity,
1659
1660
  defaultValue: b.identity,
1660
1661
  children: [
1661
1662
  /* @__PURE__ */ p.jsx(gn, { className: "w-[180px] flex", children: y.isPending ? /* @__PURE__ */ p.jsx(kn, {}) : /* @__PURE__ */ p.jsx(bn, {}) }),
1662
1663
  /* @__PURE__ */ p.jsxs(xn, { align: "center", children: [
1663
1664
  /* @__PURE__ */ p.jsx(gt, { value: et, children: "None" }),
1664
- (H = y.data) == null ? void 0 : H.map(($) => /* @__PURE__ */ p.jsx(gt, { value: $.id, children: $.label }, $.id))
1665
+ (H = y.data) == null ? void 0 : H.map((k) => /* @__PURE__ */ p.jsx(gt, { value: k.id, children: k.label }, k.id))
1665
1666
  ] })
1666
1667
  ]
1667
1668
  }
@@ -1690,32 +1691,32 @@ const kt = (e) => Math.abs(
1690
1691
  }
1691
1692
  )
1692
1693
  ] }),
1693
- /* @__PURE__ */ p.jsx("div", { className: "min-w-0 p-8 bg-muted/70", children: k.error ? /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-2", children: [
1694
- b.pathParams.some(($) => $.value === "") && /* @__PURE__ */ p.jsx(Ca, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1694
+ /* @__PURE__ */ p.jsx("div", { className: "min-w-0 p-8 bg-muted/70", children: $.error ? /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-2", children: [
1695
+ b.pathParams.some((k) => k.value === "") && /* @__PURE__ */ p.jsx(Ca, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1695
1696
  /* @__PURE__ */ p.jsxs(ot, { children: [
1696
1697
  /* @__PURE__ */ p.jsx(Nr, { children: /* @__PURE__ */ p.jsx(Tr, { children: "Request failed" }) }),
1697
1698
  /* @__PURE__ */ p.jsxs(Or, { children: [
1698
1699
  "Error:",
1699
1700
  " ",
1700
- k.error.message || String(k.error) || "Unexpected error"
1701
+ $.error.message || String($.error) || "Unexpected error"
1701
1702
  ] })
1702
1703
  ] })
1703
- ] }) : k.data ? /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-2", children: [
1704
+ ] }) : $.data ? /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col gap-2", children: [
1704
1705
  /* @__PURE__ */ p.jsx("div", { className: "flex gap-2", children: /* @__PURE__ */ p.jsxs("div", { className: "flex text-xs gap-6", children: [
1705
1706
  /* @__PURE__ */ p.jsxs("div", { children: [
1706
1707
  "Status: ",
1707
- k.data.status,
1708
+ $.data.status,
1708
1709
  " ",
1709
- Ii[k.data.status] ?? ""
1710
+ Ii[$.data.status] ?? ""
1710
1711
  ] }),
1711
1712
  /* @__PURE__ */ p.jsxs("div", { children: [
1712
1713
  "Time: ",
1713
- k.data.time.toFixed(0),
1714
+ $.data.time.toFixed(0),
1714
1715
  "ms"
1715
1716
  ] }),
1716
1717
  /* @__PURE__ */ p.jsxs("div", { children: [
1717
1718
  "Size: ",
1718
- k.data.size,
1719
+ $.data.size,
1719
1720
  " B"
1720
1721
  ] })
1721
1722
  ] }) }),
@@ -1727,8 +1728,8 @@ const kt = (e) => Math.abs(
1727
1728
  /* @__PURE__ */ p.jsx(Ce, { value: "response", children: /* @__PURE__ */ p.jsx(
1728
1729
  Fi,
1729
1730
  {
1730
- headers: k.data.headers,
1731
- body: k.data.body
1731
+ headers: $.data.headers,
1732
+ body: $.data.body
1732
1733
  }
1733
1734
  ) }),
1734
1735
  /* @__PURE__ */ p.jsx(Ce, { value: "headers", children: /* @__PURE__ */ p.jsxs(
@@ -1738,15 +1739,15 @@ const kt = (e) => Math.abs(
1738
1739
  children: [
1739
1740
  /* @__PURE__ */ p.jsx("div", { className: "font-semibold", children: "Key" }),
1740
1741
  /* @__PURE__ */ p.jsx("div", { className: "font-semibold", children: "Value" }),
1741
- j.map(([$, L]) => /* @__PURE__ */ p.jsxs(Ze, { children: [
1742
- /* @__PURE__ */ p.jsx("div", { children: $ }),
1742
+ j.map(([k, L]) => /* @__PURE__ */ p.jsxs(Ze, { children: [
1743
+ /* @__PURE__ */ p.jsx("div", { children: k }),
1743
1744
  /* @__PURE__ */ p.jsx("div", { className: "break-words", children: L })
1744
- ] }, $))
1745
+ ] }, k))
1745
1746
  ]
1746
1747
  }
1747
1748
  ) })
1748
1749
  ] })
1749
- ] }) : /* @__PURE__ */ p.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ p.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: k.isPending ? /* @__PURE__ */ p.jsx(kn, {}) : "Send a request first to see the response here" }) }) })
1750
+ ] }) : /* @__PURE__ */ p.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ p.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: $.isPending ? /* @__PURE__ */ p.jsx(kn, {}) : "Send a request first to see the response here" }) }) })
1750
1751
  ] }) })
1751
1752
  }
1752
1753
  );
@@ -3089,8 +3090,8 @@ ${c}` });
3089
3090
  y.forEach(({ value: j, name: R, escape: E }) => {
3090
3091
  j != null && x.push(`${R} => ${E ? JSON.stringify(j) : j},`);
3091
3092
  });
3092
- const k = i.map((j) => `${encodeURIComponent(j.name)}=${encodeURIComponent(j.value)}`);
3093
- k.length && x.push(`CURLOPT_COOKIE => "${k.join("; ")}",`);
3093
+ const $ = i.map((j) => `${encodeURIComponent(j.name)}=${encodeURIComponent(j.value)}`);
3094
+ $.length && x.push(`CURLOPT_COOKIE => "${$.join("; ")}",`);
3094
3095
  const S = Object.keys(r).sort().map((j) => `"${j}: ${G(r[j])}"`);
3095
3096
  return S.length && (x.push("CURLOPT_HTTPHEADER => ["), x.push(S.join(`,
3096
3097
  ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = curl_exec($curl);"), v("$err = curl_error($curl);"), g(), v("curl_close($curl);"), g(), v("if ($err) {"), v(f ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), v("} else {"), v("echo $response;", 1), v("}"), !d && l && (g(), v("?>")), b();
@@ -3188,22 +3189,22 @@ ${c}${c}`), 1), x.push("],")), v(x.join(), 1), v("]);"), g(), v("$response = cur
3188
3189
  if (!e.params)
3189
3190
  break;
3190
3191
  const g = [], b = {};
3191
- e.params.forEach(({ name: k, fileName: S, value: j, contentType: R }) => {
3192
+ e.params.forEach(({ name: $, fileName: S, value: j, contentType: R }) => {
3192
3193
  if (S) {
3193
3194
  g.push({
3194
- name: k,
3195
+ name: $,
3195
3196
  type: R,
3196
3197
  file: S,
3197
3198
  data: j
3198
3199
  });
3199
3200
  return;
3200
3201
  }
3201
- j && (b[k] = j);
3202
+ j && (b[$] = j);
3202
3203
  });
3203
3204
  const y = Object.keys(b).length ? q(b, l) : "null", x = g.length ? q(g, l) : "null";
3204
3205
  if (f("$body = new http\\Message\\Body;"), f(`$body->addForm(${y}, ${x});`), ht(t, "content-type") && (v = de(t, "content-type")) != null && v.indexOf("boundary")) {
3205
- const k = Z(t, "content-type");
3206
- k && delete t[k];
3206
+ const $ = Z(t, "content-type");
3207
+ $ && delete t[$];
3207
3208
  }
3208
3209
  d(), h = !0;
3209
3210
  break;
@@ -3411,8 +3412,8 @@ var Ee = (e, t, n) => {
3411
3412
  const d = de(s, "cookie"), m = de(s, "accept"), h = d ? `set_cookies(\`${String(d).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, v = m ? `accept("${G(m)}")` : void 0, g = `content_type("${G(a.mimeType)}")`, b = Object.entries(s).filter(([S]) => !["cookie", "accept", "content-type"].includes(S.toLowerCase())).map(([S, j]) => `'${S}' = '${De(j)}'`).join(", "), y = b ? `add_headers(${b})` : void 0;
3412
3413
  let x = `response <- VERB("${i}", url`;
3413
3414
  f && (x += ", body = payload"), n.length && (x += ", query = queryString");
3414
- const k = [y, g, v, h].filter((S) => !!S).join(", ");
3415
- return k && (x += `, ${k}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), o(), r('content(response, "text")'), l();
3415
+ const $ = [y, g, v, h].filter((S) => !!S).join(", ");
3416
+ return $ && (x += `, ${$}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), o(), r('content(response, "text")'), l();
3416
3417
  }
3417
3418
  }, Vo = {
3418
3419
  info: {
@@ -3517,7 +3518,7 @@ ${o}` : " "
3517
3518
  break;
3518
3519
  case "application/x-www-form-urlencoded":
3519
3520
  i.params ? i.params.forEach((y) => {
3520
- const x = y.name, k = encodeURIComponent(y.name), S = k !== x, j = S ? k : x, R = c ? "--data-binary" : S ? "--data-urlencode" : h("data");
3521
+ const x = y.name, $ = encodeURIComponent(y.name), S = $ !== x, j = S ? $ : x, R = c ? "--data-binary" : S ? "--data-urlencode" : h("data");
3521
3522
  d(`${R} ${K(`${j}=${y.value}`)}`);
3522
3523
  }) : d(`${c ? "--data-binary" : h("data")} ${K(i.text)}`);
3523
3524
  break;
@@ -3756,7 +3757,7 @@ lt.exports;
3756
3757
  overflow: "Overflow: input needs wider integers to process",
3757
3758
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
3758
3759
  "invalid-input": "Invalid input"
3759
- }, k = l - c, S = Math.floor, j = String.fromCharCode, R;
3760
+ }, $ = l - c, S = Math.floor, j = String.fromCharCode, R;
3760
3761
  function E(w) {
3761
3762
  throw new RangeError(x[w]);
3762
3763
  }
@@ -3771,7 +3772,7 @@ lt.exports;
3771
3772
  var V = w.split("."), te = A(V, N).join(".");
3772
3773
  return U + te;
3773
3774
  }
3774
- function $(w) {
3775
+ function k(w) {
3775
3776
  for (var N = [], C = 0, U = w.length, V, te; C < U; )
3776
3777
  V = w.charCodeAt(C++), V >= 55296 && V <= 56319 && C < U ? (te = w.charCodeAt(C++), (te & 64512) == 56320 ? N.push(((V & 1023) << 10) + (te & 1023) + 65536) : (N.push(V), C--)) : N.push(V);
3777
3778
  return N;
@@ -3790,9 +3791,9 @@ lt.exports;
3790
3791
  }
3791
3792
  function B(w, N, C) {
3792
3793
  var U = 0;
3793
- for (w = C ? S(w / d) : w >> 1, w += S(w / N); w > k * u >> 1; U += l)
3794
- w = S(w / k);
3795
- return S(U + (k + 1) * w / (w + f));
3794
+ for (w = C ? S(w / d) : w >> 1, w += S(w / N); w > $ * u >> 1; U += l)
3795
+ w = S(w / $);
3796
+ return S(U + ($ + 1) * w / (w + f));
3796
3797
  }
3797
3798
  function D(w) {
3798
3799
  var N = [], C = w.length, U, V = 0, te = h, Q = m, ne, ae, se, fe, X, re, ie, ye, xe;
@@ -3807,7 +3808,7 @@ lt.exports;
3807
3808
  }
3808
3809
  function _(w) {
3809
3810
  var N, C, U, V, te, Q, ne, ae, se, fe, X, re = [], ie, ye, xe, yt;
3810
- for (w = $(w), ie = w.length, N = h, C = 0, te = m, Q = 0; Q < ie; ++Q)
3811
+ for (w = k(w), ie = w.length, N = h, C = 0, te = m, Q = 0; Q < ie; ++Q)
3811
3812
  X = w[Q], X < 128 && re.push(j(X));
3812
3813
  for (U = V = re.length, V && re.push(v); U < ie; ) {
3813
3814
  for (ne = o, Q = 0; Q < ie; ++Q)
@@ -3849,7 +3850,7 @@ lt.exports;
3849
3850
  * @type Object
3850
3851
  */
3851
3852
  ucs2: {
3852
- decode: $,
3853
+ decode: k,
3853
3854
  encode: L
3854
3855
  },
3855
3856
  decode: D,
@@ -4350,8 +4351,8 @@ var zt = tl, er = zt.custom, tr = ta(er) ? er : null, dl = function e(t, n, a, s
4350
4351
  return f && !Ol(x) ? "[" + Jt(x, f) + "]" : "[ " + ue.call(x, ", ") + " ]";
4351
4352
  }
4352
4353
  if (ml(t)) {
4353
- var k = Ke(t, d);
4354
- return !("cause" in Error.prototype) && "cause" in t && !Zr.call(t, "cause") ? "{ [" + String(t) + "] " + ue.call(Kn.call("[cause]: " + d(t.cause), k), ", ") + " }" : k.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + ue.call(k, ", ") + " }";
4354
+ var $ = Ke(t, d);
4355
+ return !("cause" in Error.prototype) && "cause" in t && !Zr.call(t, "cause") ? "{ [" + String(t) + "] " + ue.call(Kn.call("[cause]: " + d(t.cause), $), ", ") + " }" : $.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + ue.call($, ", ") + " }";
4355
4356
  }
4356
4357
  if (typeof t == "object" && r) {
4357
4358
  if (tr && typeof t[tr] == "function" && zt)
@@ -4390,7 +4391,7 @@ var zt = tl, er = zt.custom, tr = ta(er) ? er : null, dl = function e(t, n, a, s
4390
4391
  if (typeof globalThis < "u" && t === globalThis || typeof Me < "u" && t === Me)
4391
4392
  return "{ [object globalThis] }";
4392
4393
  if (!fl(t) && !nr(t)) {
4393
- var R = Ke(t, d), E = Xn ? Xn(t) === Object.prototype : t instanceof Object || t.constructor === Object, A = t instanceof Object ? "" : "null prototype", H = !E && ee && Object(t) === t && ee in t ? un.call(be(t), 8, -1) : A ? "Object" : "", $ = E || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", L = $ + (H || A ? "[" + ue.call(Kn.call([], H || [], A || []), ": ") + "] " : "");
4394
+ var R = Ke(t, d), E = Xn ? Xn(t) === Object.prototype : t instanceof Object || t.constructor === Object, A = t instanceof Object ? "" : "null prototype", H = !E && ee && Object(t) === t && ee in t ? un.call(be(t), 8, -1) : A ? "Object" : "", k = E || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", L = k + (H || A ? "[" + ue.call(Kn.call([], H || [], A || []), ": ") + "] " : "");
4394
4395
  return R.length === 0 ? L + "{}" : f ? L + "{" + Jt(R, f) + "}" : L + "{ " + ue.call(R, ", ") + " }";
4395
4396
  }
4396
4397
  return String(t);
@@ -4837,14 +4838,14 @@ var aa = _e, Le = Xs, Pl = dl, El = Ge, Ye = aa("%WeakMap%", !0), Xe = aa("%Map%
4837
4838
  }, ac = function(t) {
4838
4839
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
4839
4840
  }, It = {}, ic = function e(t, n, a, s, i, r, o, l, c, u, f, d, m, h, v, g, b, y) {
4840
- for (var x = t, k = y, S = 0, j = !1; (k = k.get(It)) !== void 0 && !j; ) {
4841
- var R = k.get(t);
4841
+ for (var x = t, $ = y, S = 0, j = !1; ($ = $.get(It)) !== void 0 && !j; ) {
4842
+ var R = $.get(t);
4842
4843
  if (S += 1, typeof R < "u") {
4843
4844
  if (R === S)
4844
4845
  throw new RangeError("Cyclic object value");
4845
4846
  j = !0;
4846
4847
  }
4847
- typeof k.get(It) > "u" && (S = 0);
4848
+ typeof $.get(It) > "u" && (S = 0);
4848
4849
  }
4849
4850
  if (typeof u == "function" ? x = u(n, x) : x instanceof Date ? x = m(x) : a === "comma" && ce(x) && (x = rt.maybeMap(x, function(w) {
4850
4851
  return w instanceof Date ? m(w) : w;
@@ -4869,8 +4870,8 @@ var aa = _e, Le = Xs, Pl = dl, El = Ge, Ye = aa("%WeakMap%", !0), Xe = aa("%Map%
4869
4870
  else if (ce(u))
4870
4871
  H = u;
4871
4872
  else {
4872
- var $ = Object.keys(x);
4873
- H = f ? $.sort(f) : $;
4873
+ var k = Object.keys(x);
4874
+ H = f ? k.sort(f) : k;
4874
4875
  }
4875
4876
  var L = l ? n.replace(/\./g, "%2E") : n, I = s && ce(x) && x.length === 1 ? L + "[]" : L;
4876
4877
  if (i && ce(x) && x.length === 0)
@@ -5204,20 +5205,20 @@ oe.prototype.parse = function(e, t, n) {
5204
5205
  var b = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
5205
5206
  if (!b)
5206
5207
  for (var y = this.hostname.split(/\./), m = 0, x = y.length; m < x; m++) {
5207
- var k = y[m];
5208
- if (k && !k.match(sr)) {
5209
- for (var S = "", j = 0, R = k.length; j < R; j++)
5210
- k.charCodeAt(j) > 127 ? S += "x" : S += k[j];
5208
+ var $ = y[m];
5209
+ if ($ && !$.match(sr)) {
5210
+ for (var S = "", j = 0, R = $.length; j < R; j++)
5211
+ $.charCodeAt(j) > 127 ? S += "x" : S += $[j];
5211
5212
  if (!S.match(sr)) {
5212
- var E = y.slice(0, m), A = y.slice(m + 1), H = k.match(Tc);
5213
+ var E = y.slice(0, m), A = y.slice(m + 1), H = $.match(Tc);
5213
5214
  H && (E.push(H[1]), A.unshift(H[2])), A.length && (o = "/" + A.join(".") + o), this.hostname = E.join(".");
5214
5215
  break;
5215
5216
  }
5216
5217
  }
5217
5218
  }
5218
5219
  this.hostname.length > Nc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = xc.toASCII(this.hostname));
5219
- var $ = this.port ? ":" + this.port : "", L = this.hostname || "";
5220
- this.host = L + $, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
5220
+ var k = this.port ? ":" + this.port : "", L = this.hostname || "";
5221
+ this.host = L + k, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
5221
5222
  }
5222
5223
  if (!Oc[u])
5223
5224
  for (var m = 0, x = Gt.length; m < x; m++) {
@@ -5231,8 +5232,8 @@ oe.prototype.parse = function(e, t, n) {
5231
5232
  B !== -1 && (this.hash = o.substr(B), o = o.slice(0, B));
5232
5233
  var D = o.indexOf("?");
5233
5234
  if (D !== -1 ? (this.search = o.substr(D), this.query = o.substr(D + 1), t && (this.query = Kt.parse(this.query)), o = o.slice(0, D)) : t && (this.search = "", this.query = {}), o && (this.pathname = o), Ae[u] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
5234
- var $ = this.pathname || "", _ = this.search || "";
5235
- this.path = $ + _;
5235
+ var k = this.pathname || "", _ = this.search || "";
5236
+ this.path = k + _;
5236
5237
  }
5237
5238
  return this.href = this.format(), this;
5238
5239
  };
@@ -5293,13 +5294,13 @@ oe.prototype.resolveObject = function(e) {
5293
5294
  }
5294
5295
  return n.slashes = n.slashes || e.slashes, n.href = n.format(), n;
5295
5296
  }
5296
- var h = n.pathname && n.pathname.charAt(0) === "/", v = e.host || e.pathname && e.pathname.charAt(0) === "/", g = v || h || n.host && e.pathname, b = g, y = n.pathname && n.pathname.split("/") || [], x = e.pathname && e.pathname.split("/") || [], k = n.protocol && !Ae[n.protocol];
5297
- if (k && (n.hostname = "", n.port = null, n.host && (y[0] === "" ? y[0] = n.host : y.unshift(n.host)), n.host = "", e.protocol && (e.hostname = null, e.port = null, e.host && (x[0] === "" ? x[0] = e.host : x.unshift(e.host)), e.host = null), g = g && (x[0] === "" || y[0] === "")), v)
5297
+ var h = n.pathname && n.pathname.charAt(0) === "/", v = e.host || e.pathname && e.pathname.charAt(0) === "/", g = v || h || n.host && e.pathname, b = g, y = n.pathname && n.pathname.split("/") || [], x = e.pathname && e.pathname.split("/") || [], $ = n.protocol && !Ae[n.protocol];
5298
+ if ($ && (n.hostname = "", n.port = null, n.host && (y[0] === "" ? y[0] = n.host : y.unshift(n.host)), n.host = "", e.protocol && (e.hostname = null, e.port = null, e.host && (x[0] === "" ? x[0] = e.host : x.unshift(e.host)), e.host = null), g = g && (x[0] === "" || y[0] === "")), v)
5298
5299
  n.host = e.host || e.host === "" ? e.host : n.host, n.hostname = e.hostname || e.hostname === "" ? e.hostname : n.hostname, n.search = e.search, n.query = e.query, y = x;
5299
5300
  else if (x.length)
5300
5301
  y || (y = []), y.pop(), y = y.concat(x), n.search = e.search, n.query = e.query;
5301
5302
  else if (e.search != null) {
5302
- if (k) {
5303
+ if ($) {
5303
5304
  n.host = y.shift(), n.hostname = n.host;
5304
5305
  var S = n.host && n.host.indexOf("@") > 0 ? n.host.split("@") : !1;
5305
5306
  S && (n.auth = S.shift(), n.hostname = S.shift(), n.host = n.hostname);
@@ -5315,7 +5316,7 @@ oe.prototype.resolveObject = function(e) {
5315
5316
  y.unshift("..");
5316
5317
  g && y[0] !== "" && (!y[0] || y[0].charAt(0) !== "/") && y.unshift(""), R && y.join("/").substr(-1) !== "/" && y.push("");
5317
5318
  var H = y[0] === "" || y[0] && y[0].charAt(0) === "/";
5318
- if (k) {
5319
+ if ($) {
5319
5320
  n.hostname = H ? "" : y.length ? y.shift() : "", n.host = n.hostname;
5320
5321
  var S = n.host && n.host.indexOf("@") > 0 ? n.host.split("@") : !1;
5321
5322
  S && (n.auth = S.shift(), n.hostname = S.shift(), n.host = n.hostname);
@@ -5391,10 +5392,10 @@ var Pc = fn, lr = Cc, Ec = (e) => typeof e == "object" && "log" in e && typeof e
5391
5392
  case "multipart/alternative":
5392
5393
  if (n.postData.text = "", n.postData.mimeType = "multipart/form-data", (f = n.postData) != null && f.params) {
5393
5394
  const m = "---011000010111000001101001", h = `${m}--`, v = `\r
5394
- `, g = (k) => k.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), b = (k) => k.replace(/\r?\n|\r/g, `\r
5395
+ `, g = ($) => $.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), b = ($) => $.replace(/\r?\n|\r/g, `\r
5395
5396
  `), y = [`--${m}`];
5396
- (d = n.postData) == null || d.params.forEach((k, S) => {
5397
- const j = k.name, R = k.value || "", E = k.fileName || null, A = k.contentType || "application/octet-stream";
5397
+ (d = n.postData) == null || d.params.forEach(($, S) => {
5398
+ const j = $.name, R = $.value || "", E = $.fileName || null, A = $.contentType || "application/octet-stream";
5398
5399
  E ? (y.push(
5399
5400
  `Content-Disposition: form-data; name="${g(b(j))}"; filename="${E}"`
5400
5401
  ), y.push(`Content-Type: ${A}`)) : y.push(`Content-Disposition: form-data; name="${g(b(j))}"`), y.push(""), y.push(b(R)), S !== n.postData.params.length - 1 && y.push(`--${m}`);
@@ -5706,10 +5707,10 @@ const _c = ({ content: e }) => {
5706
5707
  ] }, b + y)
5707
5708
  );
5708
5709
  }), { selectedServer: d } = xr(), m = Aa(() => {
5709
- var x, k;
5710
+ var x, $;
5710
5711
  const b = (x = u == null ? void 0 : u[0]) != null && x.schema ? Je(u[0].schema) : void 0, y = new Rc({
5711
5712
  method: e.method.toLocaleUpperCase(),
5712
- url: (d ?? ((k = s.data) == null ? void 0 : k.schema.url) ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
5713
+ url: (d ?? (($ = s.data) == null ? void 0 : $.schema.url) ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
5713
5714
  postData: b ? {
5714
5715
  text: JSON.stringify(b, null, 2),
5715
5716
  mimeType: "application/json"
@@ -5918,7 +5919,7 @@ const _c = ({ content: e }) => {
5918
5919
  getRoutes: () => [
5919
5920
  {
5920
5921
  async lazy() {
5921
- const { OpenApiRoute: a } = await import("./Route-Dq6zv0Pi.js");
5922
+ const { OpenApiRoute: a } = await import("./Route-fK1i4Ryz.js");
5922
5923
  return {
5923
5924
  element: /* @__PURE__ */ p.jsx(a, { client: n, config: e })
5924
5925
  };
@@ -5931,7 +5932,7 @@ const _c = ({ content: e }) => {
5931
5932
  {
5932
5933
  index: !0,
5933
5934
  async lazy() {
5934
- const { OperationList: a } = await import("./OperationList-BO-ES1C5.js");
5935
+ const { OperationList: a } = await import("./OperationList-BhLMwPSh.js");
5935
5936
  return { element: /* @__PURE__ */ p.jsx(a, {}) };
5936
5937
  }
5937
5938
  }
@@ -5961,4 +5962,4 @@ export {
5961
5962
  pu as o,
5962
5963
  ci as u
5963
5964
  };
5964
- //# sourceMappingURL=index-DNfiZTPV.js.map
5965
+ //# sourceMappingURL=index-dHVZhVNO.js.map