zudoku 0.0.0-fix-circular-ref-false-positives.zbe02c6a6 → 0.0.0-fix-warnings.z053d4e27

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 (141) hide show
  1. package/dist/config/validators/InputNavigationSchema.d.ts +56 -56
  2. package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
  3. package/dist/config/validators/validate.d.ts +1 -1
  4. package/dist/lib/components/Heading.d.ts +1 -1
  5. package/dist/lib/components/index.d.ts +18 -74
  6. package/dist/lib/components/index.js +19 -36
  7. package/dist/lib/components/index.js.map +1 -1
  8. package/dist/lib/hooks/index.d.ts +7 -30
  9. package/dist/lib/hooks/index.js +7 -15
  10. package/dist/lib/hooks/index.js.map +1 -1
  11. package/dist/lib/oas/graphql/circular.d.ts +1 -1
  12. package/dist/lib/oas/graphql/circular.js +35 -18
  13. package/dist/lib/oas/graphql/circular.js.map +1 -1
  14. package/dist/lib/oas/graphql/circular.test.js +2 -33
  15. package/dist/lib/oas/graphql/circular.test.js.map +1 -1
  16. package/dist/lib/oas/parser/index.js +14 -5
  17. package/dist/lib/oas/parser/index.js.map +1 -1
  18. package/dist/lib/util/flattenAllOf.d.ts +0 -2
  19. package/dist/lib/util/flattenAllOf.js +0 -46
  20. package/dist/lib/util/flattenAllOf.js.map +1 -1
  21. package/dist/lib/util/flattenAllOf.test.js +2 -1
  22. package/dist/lib/util/flattenAllOf.test.js.map +1 -1
  23. package/dist/lib/util/flattenAllOfProcessor.d.ts +2 -0
  24. package/dist/lib/util/flattenAllOfProcessor.js +48 -0
  25. package/dist/lib/util/flattenAllOfProcessor.js.map +1 -0
  26. package/dist/lib/util/readFrontmatter.js +2 -1
  27. package/dist/lib/util/readFrontmatter.js.map +1 -1
  28. package/dist/vite/api/SchemaManager.js +1 -1
  29. package/dist/vite/api/SchemaManager.js.map +1 -1
  30. package/dist/vite/api/SchemaManager.test.js +1 -1
  31. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  32. package/dist/vite/build.js +91 -73
  33. package/dist/vite/build.js.map +1 -1
  34. package/dist/vite/mdx/remark-inject-filepath.js +5 -1
  35. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
  36. package/dist/vite/mdx/remark-link-rewrite.js +3 -2
  37. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
  38. package/dist/vite/plugin-docs.js +9 -7
  39. package/dist/vite/plugin-docs.js.map +1 -1
  40. package/dist/vite/plugin-markdown-export.js +4 -2
  41. package/dist/vite/plugin-markdown-export.js.map +1 -1
  42. package/lib/{ClaudeLogo-DJ9bU-sO.js → ClaudeLogo-C6q-Xn_l.js} +26 -22
  43. package/lib/{ClaudeLogo-DJ9bU-sO.js.map → ClaudeLogo-C6q-Xn_l.js.map} +1 -1
  44. package/lib/{MdxPage-stpAoBtx.js → MdxPage-B1G4W1TK.js} +8 -8
  45. package/lib/{MdxPage-stpAoBtx.js.map → MdxPage-B1G4W1TK.js.map} +1 -1
  46. package/lib/{Mermaid-Koc3z8mU.js → Mermaid-B1xNo-pf.js} +3 -2
  47. package/lib/{Mermaid-Koc3z8mU.js.map → Mermaid-B1xNo-pf.js.map} +1 -1
  48. package/lib/{OAuthErrorPage-DJ811Bn_.js → OAuthErrorPage-01Ke086W.js} +20 -18
  49. package/lib/{OAuthErrorPage-DJ811Bn_.js.map → OAuthErrorPage-01Ke086W.js.map} +1 -1
  50. package/lib/{OasProvider-B2KxIBsI.js → OasProvider-BG-FWDIq.js} +3 -3
  51. package/lib/{OasProvider-B2KxIBsI.js.map → OasProvider-BG-FWDIq.js.map} +1 -1
  52. package/lib/{OperationList-C2tAfThO.js → OperationList-GGkJ1vac.js} +948 -945
  53. package/lib/OperationList-GGkJ1vac.js.map +1 -0
  54. package/lib/{RouteGuard--A04ESy8.js → RouteGuard-B1lCR0C_.js} +5 -5
  55. package/lib/{RouteGuard--A04ESy8.js.map → RouteGuard-B1lCR0C_.js.map} +1 -1
  56. package/lib/{SchemaList-Ep8DleP_.js → SchemaList-CNVdC9f-.js} +7 -7
  57. package/lib/{SchemaList-Ep8DleP_.js.map → SchemaList-CNVdC9f-.js.map} +1 -1
  58. package/lib/{SchemaView-BpaEKRYx.js → SchemaView-CrV0yIwR.js} +3 -3
  59. package/lib/{SchemaView-BpaEKRYx.js.map → SchemaView-CrV0yIwR.js.map} +1 -1
  60. package/lib/{SignUp-DCBViNUi.js → SignUp-8kDBaLbO.js} +31 -26
  61. package/lib/{SignUp-DCBViNUi.js.map → SignUp-8kDBaLbO.js.map} +1 -1
  62. package/lib/{SyntaxHighlight-Dshjn3Zf.js → SyntaxHighlight-hZOFnYl0.js} +3 -3
  63. package/lib/{SyntaxHighlight-Dshjn3Zf.js.map → SyntaxHighlight-hZOFnYl0.js.map} +1 -1
  64. package/lib/{Toc-Cgz6CPiE.js → Toc-qEIii_-W.js} +2 -2
  65. package/lib/{Toc-Cgz6CPiE.js.map → Toc-qEIii_-W.js.map} +1 -1
  66. package/lib/{index-CL8eDnQW.js → Zudoku-DUsdmPME.js} +2250 -2268
  67. package/lib/Zudoku-DUsdmPME.js.map +1 -0
  68. package/lib/{ZudokuContext-BZB1TWdT.js → ZudokuContext-BBI06sOx.js} +5 -5
  69. package/lib/{ZudokuContext-BZB1TWdT.js.map → ZudokuContext-BBI06sOx.js.map} +1 -1
  70. package/lib/{circular-CG3e0_Uz.js → circular-bbWO95zs.js} +1346 -1327
  71. package/lib/{circular-CG3e0_Uz.js.map → circular-bbWO95zs.js.map} +1 -1
  72. package/lib/createServer-B7POuwZp.js +13036 -0
  73. package/lib/createServer-B7POuwZp.js.map +1 -0
  74. package/lib/{errors-b9I-fAOY.js → errors-7hgPDs1h.js} +3 -3
  75. package/lib/{errors-b9I-fAOY.js.map → errors-7hgPDs1h.js.map} +1 -1
  76. package/lib/{firebase-BCXX7Qv5.js → firebase-Dwn-2ju-.js} +13 -13
  77. package/lib/firebase-Dwn-2ju-.js.map +1 -0
  78. package/lib/{hook-BGlHBdET.js → hook-ZEd1Es7D.js} +2 -2
  79. package/lib/{hook-BGlHBdET.js.map → hook-ZEd1Es7D.js.map} +1 -1
  80. package/lib/{index-I3kmZ7tG.js → index-CTCT4jlW.js} +463 -461
  81. package/lib/{index-I3kmZ7tG.js.map → index-CTCT4jlW.js.map} +1 -1
  82. package/lib/index-DAWHN3cH.js +86 -0
  83. package/lib/index-DAWHN3cH.js.map +1 -0
  84. package/lib/{index-UOLtazB8.js → index-Dxdhrp-I.js} +2 -2
  85. package/lib/{index-UOLtazB8.js.map → index-Dxdhrp-I.js.map} +1 -1
  86. package/lib/{index.esm-B_0dvNjB.js → index.esm-Ca5zvoff.js} +20 -20
  87. package/lib/{index.esm-B_0dvNjB.js.map → index.esm-Ca5zvoff.js.map} +1 -1
  88. package/lib/{index.esm-C5CBsVzN.js → index.esm-DG4KaDKR.js} +2 -2
  89. package/lib/index.esm-DG4KaDKR.js.map +1 -0
  90. package/lib/{invariant-BJAl77rw.js → invariant-B_t_F2s_.js} +3 -3
  91. package/lib/{invariant-BJAl77rw.js.map → invariant-B_t_F2s_.js.map} +1 -1
  92. package/lib/ui/SyntaxHighlight.js +3 -3
  93. package/lib/useExposedProps-CzTDfXfq.js +30 -0
  94. package/lib/useExposedProps-CzTDfXfq.js.map +1 -0
  95. package/lib/zudoku.__internal.js +366 -365
  96. package/lib/zudoku.__internal.js.map +1 -1
  97. package/lib/zudoku.auth-auth0.js +1 -1
  98. package/lib/zudoku.auth-azureb2c.js +4 -4
  99. package/lib/zudoku.auth-clerk.js +2 -2
  100. package/lib/zudoku.auth-firebase.js +5 -5
  101. package/lib/zudoku.auth-openid.js +5 -5
  102. package/lib/zudoku.auth-supabase.js +4 -4
  103. package/lib/zudoku.components.js +31 -29
  104. package/lib/zudoku.components.js.map +1 -1
  105. package/lib/zudoku.hooks.js +24 -11
  106. package/lib/zudoku.hooks.js.map +1 -1
  107. package/lib/zudoku.mermaid.js +4 -3
  108. package/lib/zudoku.mermaid.js.map +1 -1
  109. package/lib/zudoku.plugin-api-catalog.js +36 -32
  110. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  111. package/lib/zudoku.plugin-api-keys.js +131 -130
  112. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  113. package/lib/zudoku.plugin-custom-pages.js +1 -1
  114. package/lib/zudoku.plugin-markdown.js +1 -1
  115. package/lib/zudoku.plugin-openapi.js +2 -2
  116. package/lib/zudoku.plugin-search-pagefind.js +2 -2
  117. package/package.json +3 -2
  118. package/src/lib/components/index.ts +19 -39
  119. package/src/lib/hooks/index.ts +7 -16
  120. package/src/lib/oas/graphql/circular.test.ts +2 -37
  121. package/src/lib/oas/graphql/circular.ts +51 -25
  122. package/src/lib/oas/parser/index.ts +17 -6
  123. package/src/lib/util/flattenAllOf.test.ts +2 -1
  124. package/src/lib/util/flattenAllOf.ts +0 -57
  125. package/src/lib/util/flattenAllOfProcessor.ts +58 -0
  126. package/src/lib/util/readFrontmatter.ts +2 -1
  127. package/src/zuplo/enrich-with-zuplo-mcp.ts +168 -0
  128. package/src/zuplo/enrich-with-zuplo.ts +254 -0
  129. package/src/zuplo/policy-types.ts +46 -0
  130. package/src/zuplo/with-zuplo-processors.ts +35 -0
  131. package/src/zuplo/with-zuplo.ts +14 -0
  132. package/lib/OperationList-C2tAfThO.js.map +0 -1
  133. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +0 -9
  134. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +0 -1
  135. package/lib/createServer-CNeRqj98.js +0 -16693
  136. package/lib/createServer-CNeRqj98.js.map +0 -1
  137. package/lib/firebase-BCXX7Qv5.js.map +0 -1
  138. package/lib/index-CL8eDnQW.js.map +0 -1
  139. package/lib/index-DBjOT2H1.js +0 -133
  140. package/lib/index-DBjOT2H1.js.map +0 -1
  141. package/lib/index.esm-C5CBsVzN.js.map +0 -1
@@ -1,35 +1,36 @@
1
1
  import { j as e } from "./jsx-runtime-BzflLqGi.js";
2
2
  import { TrashIcon as me, CircleSlashIcon as z, CheckIcon as xe, XIcon as ye, PencilLineIcon as ge, RefreshCwIcon as je, KeyRoundIcon as ve } from "lucide-react";
3
- import { Z as M, i as E } from "./invariant-BJAl77rw.js";
3
+ import { Z as M, i as E } from "./invariant-B_t_F2s_.js";
4
4
  import * as F from "react";
5
- import { createContext as Q, useRef as A, useLayoutEffect as Ce, useEffect as ie, useId as H, useContext as V, useInsertionEffect as we, useMemo as L, useCallback as ke, Children as Ee, isValidElement as Ie, useState as I } from "react";
6
- import { D as be, c as Ke, d as ee, B as De, E as Pe } from "./index-CL8eDnQW.js";
7
- import { b as re } from "./index-DBjOT2H1.js";
8
- import { F as Ae, g as Se, j as Re, h as Ne, d as Oe, I as Te, a as qe, b as Me, k as Fe, c as $e } from "./Frame-DKlOmSkU.js";
9
- import { A as D, a as P, b as ae } from "./Mermaid-Koc3z8mU.js";
10
- import { e as _, f as S, D as B, g as Z, a as G, b as J, c as Y, d as oe } from "./Dialog-hlvmmQ_c.js";
11
- import { Button as le } from "./ui/Button.js";
12
- import { a as ce, u as ze } from "./useSuspenseQuery-CSB_rVek.js";
5
+ import { createContext as Q, useRef as A, useLayoutEffect as Ce, useEffect as re, useId as H, useContext as V, useInsertionEffect as we, useMemo as L, useCallback as ke, Children as Ee, isValidElement as Ie, useState as I } from "react";
6
+ import { D as Ke, c as be, a as te, E as De } from "./Zudoku-DUsdmPME.js";
7
+ import { Button as _ } from "./ui/Button.js";
8
+ import { a as B } from "./ZudokuContext-BBI06sOx.js";
9
+ import "./index-DAWHN3cH.js";
10
+ import { u as ae } from "./hook-ZEd1Es7D.js";
11
+ import { F as Pe, g as Ae, j as Se, h as Re, d as Ne, I as Oe, a as Te, b as qe, k as Me, c as Fe } from "./Frame-DKlOmSkU.js";
12
+ import { A as D, a as P, b as oe } from "./Mermaid-B1xNo-pf.js";
13
+ import { e as Z, f as S, D as G, g as J, a as Y, b as U, c as W, d as le } from "./Dialog-hlvmmQ_c.js";
14
+ import { a as ce, u as $e } from "./useSuspenseQuery-CSB_rVek.js";
13
15
  import { u as q } from "./useMutation-CFMGlAMW.js";
14
- import { a as Le } from "./index.esm-BYObtETB.js";
15
- import { u as Qe } from "./chunk-EPOLDU6W-C6C8jAwd.js";
16
- import { A as He } from "./ActionButton-B0CXL1Lq.js";
17
- import { S as Ve, a as _e, b as Be, c as Ze, d as Ge, e as te, f as Je } from "./Secret-BDBqq4p3.js";
18
- import { a as U } from "./ZudokuContext-BZB1TWdT.js";
19
- import { Input as Ye } from "./ui/Input.js";
20
- import { c as W } from "./cn-5-Gd1Dss.js";
16
+ import { a as ze } from "./index.esm-BYObtETB.js";
17
+ import { u as Le } from "./chunk-EPOLDU6W-C6C8jAwd.js";
18
+ import { A as Qe } from "./ActionButton-B0CXL1Lq.js";
19
+ import { S as He, a as Ve, b as _e, c as Be, d as Ze, e as se, f as Ge } from "./Secret-BDBqq4p3.js";
20
+ import { Input as Je } from "./ui/Input.js";
21
+ import { c as X } from "./cn-5-Gd1Dss.js";
21
22
  import { B as k } from "./Button-GUVe7pmt.js";
22
- import { I as Ue } from "./Input-Cx-GeKoF.js";
23
- function We({ error: t }) {
23
+ import { I as Ye } from "./Input-Cx-GeKoF.js";
24
+ function Ue({ error: t }) {
24
25
  const a = t instanceof Error ? t.message : "Something went wrong", s = process.env.NODE_ENV === "development", n = t instanceof M ? t.developerHint : void 0, r = t instanceof M ? t.title : "Something went wrong", i = t instanceof Error ? t.stack : void 0, o = t instanceof Error ? t.cause : void 0, d = o instanceof Error ? String(o.stack) : i;
25
26
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
26
27
  /* @__PURE__ */ e.jsxs(D, { variant: "destructive", children: [
27
28
  /* @__PURE__ */ e.jsx(P, { children: r }),
28
- /* @__PURE__ */ e.jsx(ae, { children: a })
29
+ /* @__PURE__ */ e.jsx(oe, { children: a })
29
30
  ] }),
30
- s && n && /* @__PURE__ */ e.jsx(be, { className: "mb-4", children: n }),
31
+ s && n && /* @__PURE__ */ e.jsx(Ke, { className: "mb-4", children: n }),
31
32
  s && d && /* @__PURE__ */ e.jsx(
32
- Ke,
33
+ be,
33
34
  {
34
35
  className: "max-h-[400px] [&>pre]:p-4",
35
36
  language: "js",
@@ -38,19 +39,19 @@ function We({ error: t }) {
38
39
  )
39
40
  ] });
40
41
  }
41
- const Xe = ({
42
+ const We = ({
42
43
  service: t,
43
44
  onOpenChange: a
44
45
  }) => {
45
- const s = U(), n = ce(), r = Qe(), i = Le({
46
+ const s = B(), n = ce(), r = Le(), i = ze({
46
47
  defaultValues: {
47
48
  expiresOn: "30"
48
49
  }
49
- }), o = re(), d = q({
50
+ }), o = ae(), d = q({
50
51
  mutationFn: ({ description: c, expiresOn: u }) => {
51
52
  if (!t.createKey)
52
53
  throw new Error("createKey not implemented");
53
- const p = u !== "never" ? et(Number(u)) : void 0;
54
+ const p = u !== "never" ? Xe(Number(u)) : void 0;
54
55
  return t.createKey({
55
56
  apiKey: {
56
57
  description: c || "Secret Key",
@@ -78,38 +79,38 @@ const Xe = ({
78
79
  children: [
79
80
  d.error && /* @__PURE__ */ e.jsxs(D, { variant: "destructive", className: "mb-4", children: [
80
81
  /* @__PURE__ */ e.jsx(P, { children: "Error" }),
81
- /* @__PURE__ */ e.jsx(ae, { children: d.error.message })
82
+ /* @__PURE__ */ e.jsx(oe, { children: d.error.message })
82
83
  ] }),
83
84
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 flex-col text-sm font-medium", children: [
84
85
  "Name",
85
- /* @__PURE__ */ e.jsx(Ye, { ...i.register("description") }),
86
+ /* @__PURE__ */ e.jsx(Je, { ...i.register("description") }),
86
87
  "Expiration",
87
88
  /* @__PURE__ */ e.jsxs(
88
- Ve,
89
+ He,
89
90
  {
90
91
  onValueChange: (c) => i.setValue("expiresOn", c),
91
92
  defaultValue: i.getValues("expiresOn"),
92
93
  children: [
93
- /* @__PURE__ */ e.jsx(_e, { children: /* @__PURE__ */ e.jsx(Be, {}) }),
94
- /* @__PURE__ */ e.jsx(Ze, { children: /* @__PURE__ */ e.jsxs(Ge, { children: [
95
- [7, 30, 60, 90].map((c) => /* @__PURE__ */ e.jsxs(te, { value: String(c), children: [
94
+ /* @__PURE__ */ e.jsx(Ve, { children: /* @__PURE__ */ e.jsx(_e, {}) }),
95
+ /* @__PURE__ */ e.jsx(Be, { children: /* @__PURE__ */ e.jsxs(Ze, { children: [
96
+ [7, 30, 60, 90].map((c) => /* @__PURE__ */ e.jsxs(se, { value: String(c), children: [
96
97
  c,
97
98
  " days"
98
99
  ] }, c)),
99
- /* @__PURE__ */ e.jsx(te, { value: "never", children: "Never" })
100
+ /* @__PURE__ */ e.jsx(se, { value: "never", children: "Never" })
100
101
  ] }) })
101
102
  ]
102
103
  }
103
104
  ),
104
- /* @__PURE__ */ e.jsxs(_, { children: [
105
- /* @__PURE__ */ e.jsx(S, { asChild: !0, children: /* @__PURE__ */ e.jsx(le, { variant: "outline", children: "Cancel" }) }),
106
- /* @__PURE__ */ e.jsx(He, { isPending: d.isPending, children: "Generate Key" })
105
+ /* @__PURE__ */ e.jsxs(Z, { children: [
106
+ /* @__PURE__ */ e.jsx(S, { asChild: !0, children: /* @__PURE__ */ e.jsx(_, { variant: "outline", children: "Cancel" }) }),
107
+ /* @__PURE__ */ e.jsx(Qe, { isPending: d.isPending, children: "Generate Key" })
107
108
  ] })
108
109
  ] })
109
110
  ]
110
111
  }
111
112
  ) : null;
112
- }, et = (t) => {
113
+ }, Xe = (t) => {
113
114
  const a = /* @__PURE__ */ new Date();
114
115
  return a.setDate(a.getDate() + t), a.toISOString();
115
116
  }, de = ({
@@ -119,60 +120,60 @@ const Xe = ({
119
120
  trigger: n,
120
121
  buttonVariant: r = "outline"
121
122
  }) => {
122
- const i = /* @__PURE__ */ e.jsx(le, { variant: r, children: "Create API Key" });
123
- return /* @__PURE__ */ e.jsxs(B, { open: a, onOpenChange: s, children: [
124
- /* @__PURE__ */ e.jsx(Z, { asChild: !0, children: n ?? i }),
125
- /* @__PURE__ */ e.jsxs(G, { children: [
126
- /* @__PURE__ */ e.jsx(J, { children: /* @__PURE__ */ e.jsx(Y, { children: "Create API Key" }) }),
127
- /* @__PURE__ */ e.jsx(Xe, { service: t, onOpenChange: s })
123
+ const i = /* @__PURE__ */ e.jsx(_, { variant: r, children: "Create API Key" });
124
+ return /* @__PURE__ */ e.jsxs(G, { open: a, onOpenChange: s, children: [
125
+ /* @__PURE__ */ e.jsx(J, { asChild: !0, children: n ?? i }),
126
+ /* @__PURE__ */ e.jsxs(Y, { children: [
127
+ /* @__PURE__ */ e.jsx(U, { children: /* @__PURE__ */ e.jsx(W, { children: "Create API Key" }) }),
128
+ /* @__PURE__ */ e.jsx(We, { service: t, onOpenChange: s })
128
129
  ] })
129
130
  ] });
130
- }, tt = Q({});
131
+ }, et = Q({});
131
132
  function ue(t) {
132
133
  const a = A(null);
133
134
  return a.current === null && (a.current = t()), a.current;
134
135
  }
135
- const st = typeof window < "u", nt = st ? Ce : ie, fe = /* @__PURE__ */ Q(null);
136
- function it(t) {
136
+ const tt = typeof window < "u", st = tt ? Ce : re, fe = /* @__PURE__ */ Q(null);
137
+ function nt(t) {
137
138
  return typeof t == "object" && t !== null;
138
139
  }
139
- function rt(t) {
140
- return it(t) && "offsetHeight" in t;
140
+ function it(t) {
141
+ return nt(t) && "offsetHeight" in t;
141
142
  }
142
- const at = Q({
143
+ const rt = Q({
143
144
  transformPagePoint: (t) => t,
144
145
  isStatic: !1,
145
146
  reducedMotion: "never"
146
147
  });
147
- function se(t, a) {
148
+ function ne(t, a) {
148
149
  if (typeof t == "function")
149
150
  return t(a);
150
151
  t != null && (t.current = a);
151
152
  }
152
- function ot(...t) {
153
+ function at(...t) {
153
154
  return (a) => {
154
155
  let s = !1;
155
156
  const n = t.map((r) => {
156
- const i = se(r, a);
157
+ const i = ne(r, a);
157
158
  return !s && typeof i == "function" && (s = !0), i;
158
159
  });
159
160
  if (s)
160
161
  return () => {
161
162
  for (let r = 0; r < n.length; r++) {
162
163
  const i = n[r];
163
- typeof i == "function" ? i() : se(t[r], null);
164
+ typeof i == "function" ? i() : ne(t[r], null);
164
165
  }
165
166
  };
166
167
  };
167
168
  }
168
- function lt(...t) {
169
- return F.useCallback(ot(...t), t);
169
+ function ot(...t) {
170
+ return F.useCallback(at(...t), t);
170
171
  }
171
- class ct extends F.Component {
172
+ class lt extends F.Component {
172
173
  getSnapshotBeforeUpdate(a) {
173
174
  const s = this.props.childRef.current;
174
175
  if (s && a.isPresent && !this.props.isPresent) {
175
- const n = s.offsetParent, r = rt(n) && n.offsetWidth || 0, i = this.props.sizeRef.current;
176
+ const n = s.offsetParent, r = it(n) && n.offsetWidth || 0, i = this.props.sizeRef.current;
176
177
  i.height = s.offsetHeight || 0, i.width = s.offsetWidth || 0, i.top = s.offsetTop, i.left = s.offsetLeft, i.right = r - i.width - i.left;
177
178
  }
178
179
  return null;
@@ -186,14 +187,14 @@ class ct extends F.Component {
186
187
  return this.props.children;
187
188
  }
188
189
  }
189
- function dt({ children: t, isPresent: a, anchorX: s, root: n }) {
190
+ function ct({ children: t, isPresent: a, anchorX: s, root: n }) {
190
191
  const r = H(), i = A(null), o = A({
191
192
  width: 0,
192
193
  height: 0,
193
194
  top: 0,
194
195
  left: 0,
195
196
  right: 0
196
- }), { nonce: d } = V(at), c = lt(i, t?.ref);
197
+ }), { nonce: d } = V(rt), c = ot(i, t?.ref);
197
198
  return we(() => {
198
199
  const { width: u, height: p, top: f, left: m, right: g } = o.current;
199
200
  if (a || !i.current || !u || !p)
@@ -214,10 +215,10 @@ function dt({ children: t, isPresent: a, anchorX: s, root: n }) {
214
215
  `), () => {
215
216
  x.contains(l) && x.removeChild(l);
216
217
  };
217
- }, [a]), e.jsx(ct, { isPresent: a, childRef: i, sizeRef: o, children: F.cloneElement(t, { ref: c }) });
218
+ }, [a]), e.jsx(lt, { isPresent: a, childRef: i, sizeRef: o, children: F.cloneElement(t, { ref: c }) });
218
219
  }
219
- const ut = ({ children: t, initial: a, isPresent: s, onExitComplete: n, custom: r, presenceAffectsLayout: i, mode: o, anchorX: d, root: c }) => {
220
- const u = ue(ft), p = H();
220
+ const dt = ({ children: t, initial: a, isPresent: s, onExitComplete: n, custom: r, presenceAffectsLayout: i, mode: o, anchorX: d, root: c }) => {
221
+ const u = ue(ut), p = H();
221
222
  let f = !0, m = L(() => (f = !1, {
222
223
  id: p,
223
224
  initial: a,
@@ -236,17 +237,17 @@ const ut = ({ children: t, initial: a, isPresent: s, onExitComplete: n, custom:
236
237
  u.forEach((g, j) => u.set(j, !1));
237
238
  }, [s]), F.useEffect(() => {
238
239
  !s && !u.size && n && n();
239
- }, [s]), o === "popLayout" && (t = e.jsx(dt, { isPresent: s, anchorX: d, root: c, children: t })), e.jsx(fe.Provider, { value: m, children: t });
240
+ }, [s]), o === "popLayout" && (t = e.jsx(ct, { isPresent: s, anchorX: d, root: c, children: t })), e.jsx(fe.Provider, { value: m, children: t });
240
241
  };
241
- function ft() {
242
+ function ut() {
242
243
  return /* @__PURE__ */ new Map();
243
244
  }
244
- function pt(t = !0) {
245
+ function ft(t = !0) {
245
246
  const a = V(fe);
246
247
  if (a === null)
247
248
  return [!0, null];
248
249
  const { isPresent: s, onExitComplete: n, register: r } = a, i = H();
249
- ie(() => {
250
+ re(() => {
250
251
  if (t)
251
252
  return r(i);
252
253
  }, [t]);
@@ -254,46 +255,46 @@ function pt(t = !0) {
254
255
  return !s && n ? [!1, o] : [!0];
255
256
  }
256
257
  const R = (t) => t.key || "";
257
- function ne(t) {
258
+ function ie(t) {
258
259
  const a = [];
259
260
  return Ee.forEach(t, (s) => {
260
261
  Ie(s) && a.push(s);
261
262
  }), a;
262
263
  }
263
- const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presenceAffectsLayout: r = !0, mode: i = "sync", propagate: o = !1, anchorX: d = "left", root: c }) => {
264
- const [u, p] = pt(o), f = L(() => ne(t), [t]), m = o && !u ? [] : f.map(R), g = A(!0), j = A(f), l = ue(() => /* @__PURE__ */ new Map()), [x, v] = I(f), [h, C] = I(f);
265
- nt(() => {
264
+ const pt = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presenceAffectsLayout: r = !0, mode: i = "sync", propagate: o = !1, anchorX: d = "left", root: c }) => {
265
+ const [u, p] = ft(o), f = L(() => ie(t), [t]), m = o && !u ? [] : f.map(R), g = A(!0), j = A(f), l = ue(() => /* @__PURE__ */ new Map()), [x, v] = I(f), [h, C] = I(f);
266
+ st(() => {
266
267
  g.current = !1, j.current = f;
267
268
  for (let w = 0; w < h.length; w++) {
268
269
  const y = R(h[w]);
269
270
  m.includes(y) ? l.delete(y) : l.get(y) !== !0 && l.set(y, !1);
270
271
  }
271
272
  }, [h, m.length, m.join("-")]);
272
- const K = [];
273
+ const b = [];
273
274
  if (f !== x) {
274
275
  let w = [...f];
275
276
  for (let y = 0; y < h.length; y++) {
276
- const b = h[y], $ = R(b);
277
- m.includes($) || (w.splice(y, 0, b), K.push(b));
277
+ const K = h[y], $ = R(K);
278
+ m.includes($) || (w.splice(y, 0, K), b.push(K));
278
279
  }
279
- return i === "wait" && K.length && (w = K), C(ne(w)), v(f), null;
280
+ return i === "wait" && b.length && (w = b), C(ie(w)), v(f), null;
280
281
  }
281
282
  process.env.NODE_ENV !== "production" && i === "wait" && h.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
282
- const { forceRender: pe } = V(tt);
283
+ const { forceRender: pe } = V(et);
283
284
  return e.jsx(e.Fragment, { children: h.map((w) => {
284
- const y = R(w), b = o && !u ? !1 : f === h || m.includes(y), $ = () => {
285
+ const y = R(w), K = o && !u ? !1 : f === h || m.includes(y), $ = () => {
285
286
  if (l.has(y))
286
287
  l.set(y, !0);
287
288
  else
288
289
  return;
289
- let X = !0;
290
+ let ee = !0;
290
291
  l.forEach((he) => {
291
- he || (X = !1);
292
- }), X && (pe?.(), C(j.current), o && p?.(), n && n());
292
+ he || (ee = !1);
293
+ }), ee && (pe?.(), C(j.current), o && p?.(), n && n());
293
294
  };
294
- return e.jsx(ut, { isPresent: b, initial: !g.current || s ? void 0 : !1, custom: a, presenceAffectsLayout: r, mode: i, root: c, onExitComplete: b ? void 0 : $, anchorX: d, children: w }, y);
295
+ return e.jsx(dt, { isPresent: K, initial: !g.current || s ? void 0 : !1, custom: a, presenceAffectsLayout: r, mode: i, root: c, onExitComplete: K ? void 0 : $, anchorX: d, children: w }, y);
295
296
  }) });
296
- }, mt = ({
297
+ }, ht = ({
297
298
  apiKey: t,
298
299
  onDeleteKey: a,
299
300
  className: s
@@ -301,10 +302,10 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
301
302
  const [n, r] = I(!1), { key: i, createdOn: o, expiresOn: d } = t, c = d && new Date(d) < /* @__PURE__ */ new Date(), u = d ? Math.ceil(
302
303
  (new Date(d).getTime() - Date.now()) / (1e3 * 60 * 60 * 24)
303
304
  ) : 1 / 0, p = u <= 7 && !c;
304
- return /* @__PURE__ */ e.jsxs("div", { className: W("grid col-span-full grid-cols-subgrid p-6", s), children: [
305
+ return /* @__PURE__ */ e.jsxs("div", { className: X("grid col-span-full grid-cols-subgrid p-6", s), children: [
305
306
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1", children: [
306
307
  /* @__PURE__ */ e.jsx(
307
- Je,
308
+ Ge,
308
309
  {
309
310
  className: "max-w-fit w-full",
310
311
  secret: i,
@@ -316,7 +317,7 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
316
317
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-1 mt-0.5 text-nowrap", children: [
317
318
  o && /* @__PURE__ */ e.jsxs("span", { className: "text-xs text-muted-foreground", children: [
318
319
  "Created ",
319
- xt(o),
320
+ mt(o),
320
321
  "."
321
322
  ] }),
322
323
  " ",
@@ -334,14 +335,14 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
334
335
  ] })
335
336
  ] })
336
337
  ] }),
337
- /* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: d && a && /* @__PURE__ */ e.jsxs(B, { children: [
338
- /* @__PURE__ */ e.jsx(Z, { asChild: !0, children: /* @__PURE__ */ e.jsx(k, { variant: "ghost", size: "icon", children: /* @__PURE__ */ e.jsx(me, { size: 16 }) }) }),
339
- /* @__PURE__ */ e.jsxs(G, { children: [
340
- /* @__PURE__ */ e.jsxs(J, { children: [
341
- /* @__PURE__ */ e.jsx(Y, { children: "Delete API Key" }),
342
- /* @__PURE__ */ e.jsx(oe, { children: "Are you sure you want to delete this API key?" })
338
+ /* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: d && a && /* @__PURE__ */ e.jsxs(G, { children: [
339
+ /* @__PURE__ */ e.jsx(J, { asChild: !0, children: /* @__PURE__ */ e.jsx(k, { variant: "ghost", size: "icon", children: /* @__PURE__ */ e.jsx(me, { size: 16 }) }) }),
340
+ /* @__PURE__ */ e.jsxs(Y, { children: [
341
+ /* @__PURE__ */ e.jsxs(U, { children: [
342
+ /* @__PURE__ */ e.jsx(W, { children: "Delete API Key" }),
343
+ /* @__PURE__ */ e.jsx(le, { children: "Are you sure you want to delete this API key?" })
343
344
  ] }),
344
- /* @__PURE__ */ e.jsxs(_, { children: [
345
+ /* @__PURE__ */ e.jsxs(Z, { children: [
345
346
  /* @__PURE__ */ e.jsx(S, { asChild: !0, children: /* @__PURE__ */ e.jsx(k, { variant: "outline", children: "Cancel" }) }),
346
347
  /* @__PURE__ */ e.jsx(S, { asChild: !0, children: /* @__PURE__ */ e.jsx(
347
348
  k,
@@ -356,16 +357,16 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
356
357
  ] })
357
358
  ] }) })
358
359
  ] });
359
- }, xt = (t) => {
360
+ }, mt = (t) => {
360
361
  const a = /* @__PURE__ */ new Date(), s = new Date(t), n = Math.floor((a.getTime() - s.getTime()) / 1e3), r = new Intl.RelativeTimeFormat("en", { numeric: "auto" });
361
362
  return n < 60 ? r.format(-n, "second") : n < 3600 ? r.format(-Math.floor(n / 60), "minute") : n < 86400 ? r.format(-Math.floor(n / 3600), "hour") : n < 2592e3 ? r.format(-Math.floor(n / 86400), "day") : n < 31536e3 ? r.format(-Math.floor(n / 2592e3), "month") : r.format(-Math.floor(n / 31536e3), "year");
362
- }, yt = ({
363
+ }, xt = ({
363
364
  consumer: t,
364
365
  onUpdate: a,
365
366
  onRollKey: s,
366
367
  onDeleteKey: n
367
368
  }) => {
368
- const [r, i] = I(!1), [o, d] = I(t.label), c = ce(), u = U(), p = q({
369
+ const [r, i] = I(!1), [o, d] = I(t.label), c = ce(), u = B(), p = q({
369
370
  mutationFn: async (l) => {
370
371
  if (!s)
371
372
  throw new Error("rollKey not implemented");
@@ -388,7 +389,7 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
388
389
  ]);
389
390
  return c.setQueryData(["api-keys"], (h) => h && h.map((C) => C.id === l ? {
390
391
  ...C,
391
- apiKeys: C.apiKeys.filter((K) => K.id !== x)
392
+ apiKeys: C.apiKeys.filter((b) => b.id !== x)
392
393
  } : C)), { previousData: v };
393
394
  },
394
395
  onError: (l, x, v) => {
@@ -442,15 +443,15 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
442
443
  /* @__PURE__ */ e.jsx(P, { children: f.error.message })
443
444
  ] }),
444
445
  /* @__PURE__ */ e.jsxs(
445
- Ae,
446
+ Pe,
446
447
  {
447
448
  className: "grid grid-cols-subgrid col-span-full items-center mb-4 group",
448
449
  children: [
449
- /* @__PURE__ */ e.jsxs(Se, { className: "col-span-full flex-row items-start justify-between gap-4", children: [
450
+ /* @__PURE__ */ e.jsxs(Ae, { className: "col-span-full flex-row items-start justify-between gap-4", children: [
450
451
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1", children: [
451
452
  r ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
452
453
  /* @__PURE__ */ e.jsx(
453
- Ue,
454
+ Ye,
454
455
  {
455
456
  maxLength: 32,
456
457
  value: o,
@@ -482,8 +483,8 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
482
483
  }
483
484
  )
484
485
  ] })
485
- ] }) : /* @__PURE__ */ e.jsx(Re, { children: t.label }),
486
- /* @__PURE__ */ e.jsxs(Ne, { children: [
486
+ ] }) : /* @__PURE__ */ e.jsx(Se, { children: t.label }),
487
+ /* @__PURE__ */ e.jsxs(Re, { children: [
487
488
  t.createdOn && /* @__PURE__ */ e.jsxs("div", { children: [
488
489
  "Created on ",
489
490
  new Date(t.createdOn).toLocaleDateString()
@@ -500,7 +501,7 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
500
501
  {
501
502
  variant: "ghost",
502
503
  onClick: g,
503
- className: W(
504
+ className: X(
504
505
  "flex gap-2",
505
506
  r && "opacity-0! pointer-events-none"
506
507
  ),
@@ -511,8 +512,8 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
511
512
  ]
512
513
  }
513
514
  ),
514
- s && /* @__PURE__ */ e.jsxs(B, { children: [
515
- /* @__PURE__ */ e.jsx(Z, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
515
+ s && /* @__PURE__ */ e.jsxs(G, { children: [
516
+ /* @__PURE__ */ e.jsx(J, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
516
517
  k,
517
518
  {
518
519
  title: "Roll this key",
@@ -531,12 +532,12 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
531
532
  ]
532
533
  }
533
534
  ) }),
534
- /* @__PURE__ */ e.jsxs(G, { children: [
535
- /* @__PURE__ */ e.jsxs(J, { children: [
536
- /* @__PURE__ */ e.jsx(Y, { children: "Roll API Key" }),
537
- /* @__PURE__ */ e.jsx(oe, { children: "Are you sure you want to roll this API key?" })
535
+ /* @__PURE__ */ e.jsxs(Y, { children: [
536
+ /* @__PURE__ */ e.jsxs(U, { children: [
537
+ /* @__PURE__ */ e.jsx(W, { children: "Roll API Key" }),
538
+ /* @__PURE__ */ e.jsx(le, { children: "Are you sure you want to roll this API key?" })
538
539
  ] }),
539
- /* @__PURE__ */ e.jsxs(_, { children: [
540
+ /* @__PURE__ */ e.jsxs(Z, { children: [
540
541
  /* @__PURE__ */ e.jsx(S, { asChild: !0, children: /* @__PURE__ */ e.jsx(k, { variant: "outline", children: "Cancel" }) }),
541
542
  /* @__PURE__ */ e.jsx(S, { asChild: !0, children: /* @__PURE__ */ e.jsx(
542
543
  k,
@@ -552,8 +553,8 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
552
553
  ] })
553
554
  ] })
554
555
  ] }),
555
- /* @__PURE__ */ e.jsx(Oe, { className: "p-0 grid grid-cols-subgrid col-span-full divide-y divide-border", children: /* @__PURE__ */ e.jsx(ht, { children: t.apiKeys.map((l) => /* @__PURE__ */ e.jsx(
556
- mt,
556
+ /* @__PURE__ */ e.jsx(Ne, { className: "p-0 grid grid-cols-subgrid col-span-full divide-y divide-border", children: /* @__PURE__ */ e.jsx(pt, { children: t.apiKeys.map((l) => /* @__PURE__ */ e.jsx(
557
+ ht,
557
558
  {
558
559
  apiKey: l,
559
560
  onDeleteKey: () => {
@@ -571,8 +572,8 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
571
572
  t.id
572
573
  )
573
574
  ] });
574
- }, gt = ({ service: t }) => {
575
- const a = U(), { data: s } = ze({
575
+ }, yt = ({ service: t }) => {
576
+ const a = B(), { data: s } = $e({
576
577
  queryFn: async () => {
577
578
  try {
578
579
  return await t.getConsumers(a);
@@ -601,8 +602,8 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
601
602
  onOpenChange: r
602
603
  }
603
604
  )
604
- ] }) : /* @__PURE__ */ e.jsx("ul", { className: W("grid grid-cols-[1fr_min-content] col-span-6"), children: s.map((i) => /* @__PURE__ */ e.jsx(
605
- yt,
605
+ ] }) : /* @__PURE__ */ e.jsx("ul", { className: X("grid grid-cols-[1fr_min-content] col-span-6"), children: s.map((i) => /* @__PURE__ */ e.jsx(
606
+ xt,
606
607
  {
607
608
  consumer: i,
608
609
  onUpdate: t.updateConsumer,
@@ -611,10 +612,10 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
611
612
  },
612
613
  i.id
613
614
  )) }) });
614
- }, jt = ({ service: t }) => {
615
- const [a, s] = I(!1), n = re();
615
+ }, gt = ({ service: t }) => {
616
+ const [a, s] = I(!1), n = ae();
616
617
  return /* @__PURE__ */ e.jsxs("div", { className: "max-w-3xl h-full pt-(--padding-content-top) pb-(--padding-content-bottom)", children: [
617
- /* @__PURE__ */ e.jsx(ee.Target, { name: "api-keys-list-page" }),
618
+ /* @__PURE__ */ e.jsx(te.Target, { name: "api-keys-list-page" }),
618
619
  /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between pb-3", children: [
619
620
  /* @__PURE__ */ e.jsx("h1", { className: "font-medium text-2xl", children: "API Keys" }),
620
621
  t.createKey && /* @__PURE__ */ e.jsx(
@@ -627,22 +628,22 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
627
628
  )
628
629
  ] }),
629
630
  /* @__PURE__ */ e.jsx("p", { children: "Create, manage, and monitor your API keys" }),
630
- /* @__PURE__ */ e.jsx(ee.Target, { name: "api-keys-list-page-before-keys" }),
631
- n.profile?.emailVerified === !1 ? /* @__PURE__ */ e.jsxs(Te, { variant: "outline", children: [
632
- /* @__PURE__ */ e.jsxs(qe, { children: [
633
- /* @__PURE__ */ e.jsx(Me, { children: "Verified email required" }),
634
- /* @__PURE__ */ e.jsx(Fe, { children: "You need to verify your email to access API keys." })
631
+ /* @__PURE__ */ e.jsx(te.Target, { name: "api-keys-list-page-before-keys" }),
632
+ n.profile?.emailVerified === !1 ? /* @__PURE__ */ e.jsxs(Oe, { variant: "outline", children: [
633
+ /* @__PURE__ */ e.jsxs(Te, { children: [
634
+ /* @__PURE__ */ e.jsx(qe, { children: "Verified email required" }),
635
+ /* @__PURE__ */ e.jsx(Me, { children: "You need to verify your email to access API keys." })
635
636
  ] }),
636
- /* @__PURE__ */ e.jsx($e, { children: /* @__PURE__ */ e.jsx(De, { onClick: () => n.requestEmailVerification(), children: "Verify email" }) })
637
+ /* @__PURE__ */ e.jsx(Fe, { children: /* @__PURE__ */ e.jsx(_, { onClick: () => n.requestEmailVerification(), children: "Verify email" }) })
637
638
  ] }) : /* @__PURE__ */ e.jsx(
638
- Pe,
639
+ De,
639
640
  {
640
- fallbackRender: ({ error: r }) => /* @__PURE__ */ e.jsx(We, { error: r }),
641
- children: /* @__PURE__ */ e.jsx(gt, { service: t })
641
+ fallbackRender: ({ error: r }) => /* @__PURE__ */ e.jsx(Ue, { error: r }),
642
+ children: /* @__PURE__ */ e.jsx(yt, { service: t })
642
643
  }
643
644
  )
644
645
  ] });
645
- }, N = "https://api.zuploedge.com/v2/client", vt = async (t) => {
646
+ }, N = "https://api.zuploedge.com/v2/client", jt = async (t) => {
646
647
  try {
647
648
  return await t.json();
648
649
  } catch {
@@ -651,14 +652,14 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
651
652
  }, O = async (t) => {
652
653
  const a = t.headers.get("content-type");
653
654
  if (!t.ok && a?.includes("application/problem+json")) {
654
- const s = await vt(t);
655
+ const s = await jt(t);
655
656
  if (s.type && s.title)
656
657
  throw new Error(s.detail ?? s.title);
657
658
  }
658
659
  }, T = {
659
660
  developerHint: "This project is not linked to a Zuplo deployment. Run `zuplo link` to get started with API Keys.",
660
661
  title: "Not linked to a Zuplo deployment"
661
- }, Ct = ({
662
+ }, vt = ({
662
663
  deploymentName: t,
663
664
  ...a
664
665
  }) => ({
@@ -740,7 +741,7 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
740
741
  a && !t && console.warn(
741
742
  "This project is not linked to a Zuplo deployment. Run `zuplo link` to get started."
742
743
  );
743
- const n = a ? Ct({ deploymentName: t, ...s }) : s;
744
+ const n = a ? vt({ deploymentName: t, ...s }) : s;
744
745
  if (!n.getConsumers)
745
746
  throw new Error("getConsumers is required when using the apiKeyPlugin");
746
747
  const r = {
@@ -773,7 +774,7 @@ const ht = ({ children: t, custom: a, initial: s = !0, onExitComplete: n, presen
773
774
  getRoutes: () => [
774
775
  {
775
776
  path: "/settings/api-keys",
776
- element: /* @__PURE__ */ e.jsx(jt, { service: r })
777
+ element: /* @__PURE__ */ e.jsx(gt, { service: r })
777
778
  }
778
779
  ],
779
780
  getProtectedRoutes: () => ["/settings/api-keys"]