zudoku 0.53.6 → 0.54.0

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 (197) hide show
  1. package/dist/config/config.d.ts +1 -0
  2. package/dist/config/validators/InputNavigationSchema.d.ts +190 -158
  3. package/dist/config/validators/InputNavigationSchema.js +4 -1
  4. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  5. package/dist/config/validators/ProtectedRoutesSchema.d.ts +12 -0
  6. package/dist/config/validators/ProtectedRoutesSchema.js +19 -0
  7. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  8. package/dist/config/validators/validate.d.ts +32 -19
  9. package/dist/config/validators/validate.js +6 -2
  10. package/dist/config/validators/validate.js.map +1 -1
  11. package/dist/lib/authentication/components/CallbackHandler.js +11 -9
  12. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  13. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  14. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  15. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  16. package/dist/lib/authentication/errors.d.ts +6 -12
  17. package/dist/lib/authentication/errors.js +2 -1
  18. package/dist/lib/authentication/errors.js.map +1 -1
  19. package/dist/lib/authentication/hook.d.ts +1 -0
  20. package/dist/lib/authentication/hook.js.map +1 -1
  21. package/dist/lib/authentication/providers/azureb2c.js +4 -2
  22. package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
  23. package/dist/lib/authentication/providers/clerk.js +4 -2
  24. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  25. package/dist/lib/authentication/providers/openid.js +3 -1
  26. package/dist/lib/authentication/providers/openid.js.map +1 -1
  27. package/dist/lib/components/Heading.js +1 -1
  28. package/dist/lib/components/Heading.js.map +1 -1
  29. package/dist/lib/components/MobileTopNavigation.js +5 -3
  30. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  31. package/dist/lib/components/TopNavigation.js +4 -3
  32. package/dist/lib/components/TopNavigation.js.map +1 -1
  33. package/dist/lib/components/context/ZudokuContext.js +21 -13
  34. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  35. package/dist/lib/components/navigation/NavigationItem.d.ts +1 -1
  36. package/dist/lib/components/navigation/NavigationItem.js +8 -1
  37. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  38. package/dist/lib/components/navigation/utils.d.ts +3 -1
  39. package/dist/lib/components/navigation/utils.js +6 -3
  40. package/dist/lib/components/navigation/utils.js.map +1 -1
  41. package/dist/lib/core/RouteGuard.js +9 -9
  42. package/dist/lib/core/RouteGuard.js.map +1 -1
  43. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  44. package/dist/lib/core/ZudokuContext.js +13 -1
  45. package/dist/lib/core/ZudokuContext.js.map +1 -1
  46. package/dist/lib/core/plugins.d.ts +2 -1
  47. package/dist/lib/core/plugins.js.map +1 -1
  48. package/dist/lib/plugins/api-keys/CreateApiKey.js +7 -3
  49. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  50. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +3 -1
  51. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  52. package/dist/lib/plugins/api-keys/index.d.ts +1 -0
  53. package/dist/lib/plugins/api-keys/index.js +3 -7
  54. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  55. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  56. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  57. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  58. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -0
  59. package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
  60. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  61. package/dist/lib/plugins/openapi/index.js +42 -10
  62. package/dist/lib/plugins/openapi/index.js.map +1 -1
  63. package/dist/lib/ui/ActionButton.js +1 -1
  64. package/dist/lib/ui/ActionButton.js.map +1 -1
  65. package/dist/lib/ui/Badge.d.ts +1 -1
  66. package/dist/lib/ui/Button.d.ts +2 -2
  67. package/dist/lib/ui/Command.d.ts +1 -1
  68. package/dist/lib/util/invariant.d.ts +6 -5
  69. package/dist/lib/util/invariant.js +1 -1
  70. package/dist/lib/util/invariant.js.map +1 -1
  71. package/dist/vite/dev-server.js +1 -1
  72. package/dist/vite/dev-server.js.map +1 -1
  73. package/dist/vite/prerender/worker.js +5 -1
  74. package/dist/vite/prerender/worker.js.map +1 -1
  75. package/dist/vite/shadcn-registry.d.ts +8 -8
  76. package/lib/{Command-C9AC5cf-.js → Command-BYukybsa.js} +2 -2
  77. package/lib/{Command-C9AC5cf-.js.map → Command-BYukybsa.js.map} +1 -1
  78. package/lib/{Dialog-DMWw1doX.js → Dialog-u9Uz9sTt.js} +4 -4
  79. package/lib/{Dialog-DMWw1doX.js.map → Dialog-u9Uz9sTt.js.map} +1 -1
  80. package/lib/{MdxPage-DVI4iYgW.js → MdxPage-Bsko6_kb.js} +11 -11
  81. package/lib/{MdxPage-DVI4iYgW.js.map → MdxPage-Bsko6_kb.js.map} +1 -1
  82. package/lib/OAuthErrorPage-DJzGiIBt.js +150 -0
  83. package/lib/OAuthErrorPage-DJzGiIBt.js.map +1 -0
  84. package/lib/{OasProvider-CbwsKPNc.js → OasProvider-DQQRt3oS.js} +3 -3
  85. package/lib/{OasProvider-CbwsKPNc.js.map → OasProvider-DQQRt3oS.js.map} +1 -1
  86. package/lib/{OperationList-Bn9ggxw8.js → OperationList-DpmkHf26.js} +45 -43
  87. package/lib/{OperationList-Bn9ggxw8.js.map → OperationList-DpmkHf26.js.map} +1 -1
  88. package/lib/{Pagination-bavPec-z.js → Pagination-kqFNgtnI.js} +3 -3
  89. package/lib/{Pagination-bavPec-z.js.map → Pagination-kqFNgtnI.js.map} +1 -1
  90. package/lib/{RouteGuard-Vnlz_t51.js → RouteGuard-0wPUKdxJ.js} +166 -165
  91. package/lib/{RouteGuard-Vnlz_t51.js.map → RouteGuard-0wPUKdxJ.js.map} +1 -1
  92. package/lib/{SchemaList-DETyCVqu.js → SchemaList-DS-pMd6B.js} +8 -8
  93. package/lib/{SchemaList-DETyCVqu.js.map → SchemaList-DS-pMd6B.js.map} +1 -1
  94. package/lib/{SchemaView-Dvxo2RNe.js → SchemaView-BnN6WHjw.js} +4 -4
  95. package/lib/{SchemaView-Dvxo2RNe.js.map → SchemaView-BnN6WHjw.js.map} +1 -1
  96. package/lib/Select-BmTTKNPp.js +273 -0
  97. package/lib/Select-BmTTKNPp.js.map +1 -0
  98. package/lib/{SignUp-ClYhZq9H.js → SignUp-BwOSCD-6.js} +9 -9
  99. package/lib/{SignUp-ClYhZq9H.js.map → SignUp-BwOSCD-6.js.map} +1 -1
  100. package/lib/{Slot-B31yZlfB.js → Slot-DAyXieeZ.js} +1352 -1349
  101. package/lib/{Slot-B31yZlfB.js.map → Slot-DAyXieeZ.js.map} +1 -1
  102. package/lib/{SyntaxHighlight-bm761HDo.js → SyntaxHighlight-BMKR4pl6.js} +3 -3
  103. package/lib/{SyntaxHighlight-bm761HDo.js.map → SyntaxHighlight-BMKR4pl6.js.map} +1 -1
  104. package/lib/{Toc-D4oBWE8D.js → Toc-BKDRCQzU.js} +2 -2
  105. package/lib/{Toc-D4oBWE8D.js.map → Toc-BKDRCQzU.js.map} +1 -1
  106. package/lib/ZudokuContext-CLl5w57E.js +1278 -0
  107. package/lib/ZudokuContext-CLl5w57E.js.map +1 -0
  108. package/lib/{chunk-DQRVZFIR-DHK7_Ilc.js → chunk-QMGIS6GS-CEOk3lro.js} +3 -3
  109. package/lib/chunk-QMGIS6GS-CEOk3lro.js.map +1 -0
  110. package/lib/{circular-CRbFI6Zl.js → circular-8GWQDvCW.js} +2 -2
  111. package/lib/{circular-CRbFI6Zl.js.map → circular-8GWQDvCW.js.map} +1 -1
  112. package/lib/{createServer-DNyGJJNX.js → createServer-BsezSzvV.js} +5 -5
  113. package/lib/{createServer-DNyGJJNX.js.map → createServer-BsezSzvV.js.map} +1 -1
  114. package/lib/{errors-C1GlNcV3.js → errors-Cs7hKmdL.js} +11 -10
  115. package/lib/errors-Cs7hKmdL.js.map +1 -0
  116. package/lib/hook-DbUCLQNg.js +247 -0
  117. package/lib/hook-DbUCLQNg.js.map +1 -0
  118. package/lib/{index-D09PbNex.js → index-A5Qdwj1B.js} +1521 -1420
  119. package/lib/index-A5Qdwj1B.js.map +1 -0
  120. package/lib/{index-C_PXQ8Bx.js → index-Bg7Js3jB.js} +832 -912
  121. package/lib/index-Bg7Js3jB.js.map +1 -0
  122. package/lib/{index-CZTEgYDd.js → index-BkW9tJ6j.js} +2 -2
  123. package/lib/{index-CZTEgYDd.js.map → index-BkW9tJ6j.js.map} +1 -1
  124. package/lib/index.esm-CdzlRw50.js +1254 -0
  125. package/lib/index.esm-CdzlRw50.js.map +1 -0
  126. package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
  127. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  128. package/lib/ui/ActionButton.js +9 -9
  129. package/lib/ui/ActionButton.js.map +1 -1
  130. package/lib/ui/Command.js +1 -1
  131. package/lib/ui/Form.js +1 -1
  132. package/lib/ui/SyntaxHighlight.js +3 -3
  133. package/lib/{useExposedProps-BIYjecPD.js → useExposedProps-KcgXHKeE.js} +2 -2
  134. package/lib/{useExposedProps-BIYjecPD.js.map → useExposedProps-KcgXHKeE.js.map} +1 -1
  135. package/lib/zudoku.auth-auth0.js +1 -1
  136. package/lib/zudoku.auth-azureb2c.js +25 -17
  137. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  138. package/lib/zudoku.auth-clerk.js +24 -21
  139. package/lib/zudoku.auth-clerk.js.map +1 -1
  140. package/lib/zudoku.auth-openid.js +213 -205
  141. package/lib/zudoku.auth-openid.js.map +1 -1
  142. package/lib/zudoku.auth-supabase.js +2 -2
  143. package/lib/zudoku.components.js +29 -28
  144. package/lib/zudoku.components.js.map +1 -1
  145. package/lib/zudoku.hooks.js +16 -15
  146. package/lib/zudoku.hooks.js.map +1 -1
  147. package/lib/zudoku.plugin-api-catalog.js +26 -25
  148. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  149. package/lib/zudoku.plugin-api-keys.js +409 -297
  150. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  151. package/lib/zudoku.plugin-custom-pages.js +1 -1
  152. package/lib/zudoku.plugin-markdown.js +1 -1
  153. package/lib/zudoku.plugin-openapi.js +7 -6
  154. package/lib/zudoku.plugin-openapi.js.map +1 -1
  155. package/lib/zudoku.plugin-redirect.js +1 -1
  156. package/lib/zudoku.plugin-search-pagefind.js +28 -27
  157. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  158. package/lib/zudoku.plugins.js.map +1 -1
  159. package/package.json +4 -4
  160. package/src/lib/authentication/components/CallbackHandler.tsx +22 -15
  161. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  162. package/src/lib/authentication/errors.ts +27 -13
  163. package/src/lib/authentication/hook.ts +2 -0
  164. package/src/lib/authentication/providers/azureb2c.tsx +8 -3
  165. package/src/lib/authentication/providers/clerk.tsx +4 -1
  166. package/src/lib/authentication/providers/openid.tsx +7 -1
  167. package/src/lib/components/Heading.tsx +1 -1
  168. package/src/lib/components/MobileTopNavigation.tsx +6 -3
  169. package/src/lib/components/TopNavigation.tsx +4 -4
  170. package/src/lib/components/context/ZudokuContext.ts +25 -18
  171. package/src/lib/components/navigation/NavigationItem.tsx +9 -1
  172. package/src/lib/components/navigation/utils.ts +9 -3
  173. package/src/lib/core/RouteGuard.tsx +13 -13
  174. package/src/lib/core/ZudokuContext.ts +18 -5
  175. package/src/lib/core/plugins.ts +2 -1
  176. package/src/lib/plugins/api-keys/CreateApiKey.tsx +12 -1
  177. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +24 -4
  178. package/src/lib/plugins/api-keys/index.tsx +7 -8
  179. package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
  180. package/src/lib/plugins/openapi/graphql/graphql.ts +2 -0
  181. package/src/lib/plugins/openapi/index.tsx +66 -16
  182. package/src/lib/ui/ActionButton.tsx +3 -1
  183. package/src/lib/util/invariant.ts +7 -5
  184. package/dist/flat-config.d.ts +0 -323
  185. package/lib/Alert-CWApD0CL.js +0 -161
  186. package/lib/Alert-CWApD0CL.js.map +0 -1
  187. package/lib/CallbackHandler-Dr5Lva9x.js +0 -38
  188. package/lib/CallbackHandler-Dr5Lva9x.js.map +0 -1
  189. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +0 -1
  190. package/lib/errors-C1GlNcV3.js.map +0 -1
  191. package/lib/hook-CZjW2buS.js +0 -1510
  192. package/lib/hook-CZjW2buS.js.map +0 -1
  193. package/lib/index-C_PXQ8Bx.js.map +0 -1
  194. package/lib/index-D09PbNex.js.map +0 -1
  195. package/lib/index.esm-Cp4wkyud.js +0 -1236
  196. package/lib/index.esm-Cp4wkyud.js.map +0 -1
  197. package/lib/invariant-DAFpPywt.js.map +0 -1
@@ -1,63 +1,64 @@
1
1
  import { j as y } from "./jsx-runtime-C5mzlN2N.js";
2
- import { e as se, d as ae, l as ie } from "./hook-CZjW2buS.js";
3
- import T, { Component as M, createContext as oe, useRef as le, useEffect as ce, use as ue } from "react";
4
- import { g as L, Z as fe } from "./invariant-DAFpPywt.js";
5
- import { a as pe, u as de, m as me, O as he } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
6
- import { D as ye, a as Te, c as ge, b as ve, d as Ae } from "./Dialog-DMWw1doX.js";
2
+ import { c as se, i as ae } from "./ZudokuContext-CLl5w57E.js";
3
+ import T, { Component as M, createContext as oe, useRef as ie, useEffect as le, use as ce } from "react";
4
+ import { g as L, Z as ue } from "./invariant-Bm-FVUQE.js";
5
+ import { a as fe, u as pe, m as de, O as me } from "./chunk-QMGIS6GS-CEOk3lro.js";
6
+ import { D as he, a as ye, c as Te, b as ge, d as ve } from "./Dialog-u9Uz9sTt.js";
7
+ import { a as Ae } from "./hook-DbUCLQNg.js";
7
8
  var x, K;
8
9
  function Ee() {
9
10
  if (K) return x;
10
11
  K = 1;
11
12
  var e = typeof Element < "u", t = typeof Map == "function", r = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
12
- function o(s, l) {
13
- if (s === l) return !0;
14
- if (s && l && typeof s == "object" && typeof l == "object") {
15
- if (s.constructor !== l.constructor) return !1;
16
- var i, a, c;
13
+ function i(s, o) {
14
+ if (s === o) return !0;
15
+ if (s && o && typeof s == "object" && typeof o == "object") {
16
+ if (s.constructor !== o.constructor) return !1;
17
+ var l, a, c;
17
18
  if (Array.isArray(s)) {
18
- if (i = s.length, i != l.length) return !1;
19
- for (a = i; a-- !== 0; )
20
- if (!o(s[a], l[a])) return !1;
19
+ if (l = s.length, l != o.length) return !1;
20
+ for (a = l; a-- !== 0; )
21
+ if (!i(s[a], o[a])) return !1;
21
22
  return !0;
22
23
  }
23
24
  var u;
24
- if (t && s instanceof Map && l instanceof Map) {
25
- if (s.size !== l.size) return !1;
25
+ if (t && s instanceof Map && o instanceof Map) {
26
+ if (s.size !== o.size) return !1;
26
27
  for (u = s.entries(); !(a = u.next()).done; )
27
- if (!l.has(a.value[0])) return !1;
28
+ if (!o.has(a.value[0])) return !1;
28
29
  for (u = s.entries(); !(a = u.next()).done; )
29
- if (!o(a.value[1], l.get(a.value[0]))) return !1;
30
+ if (!i(a.value[1], o.get(a.value[0]))) return !1;
30
31
  return !0;
31
32
  }
32
- if (r && s instanceof Set && l instanceof Set) {
33
- if (s.size !== l.size) return !1;
33
+ if (r && s instanceof Set && o instanceof Set) {
34
+ if (s.size !== o.size) return !1;
34
35
  for (u = s.entries(); !(a = u.next()).done; )
35
- if (!l.has(a.value[0])) return !1;
36
+ if (!o.has(a.value[0])) return !1;
36
37
  return !0;
37
38
  }
38
- if (n && ArrayBuffer.isView(s) && ArrayBuffer.isView(l)) {
39
- if (i = s.length, i != l.length) return !1;
40
- for (a = i; a-- !== 0; )
41
- if (s[a] !== l[a]) return !1;
39
+ if (n && ArrayBuffer.isView(s) && ArrayBuffer.isView(o)) {
40
+ if (l = s.length, l != o.length) return !1;
41
+ for (a = l; a-- !== 0; )
42
+ if (s[a] !== o[a]) return !1;
42
43
  return !0;
43
44
  }
44
- if (s.constructor === RegExp) return s.source === l.source && s.flags === l.flags;
45
- if (s.valueOf !== Object.prototype.valueOf && typeof s.valueOf == "function" && typeof l.valueOf == "function") return s.valueOf() === l.valueOf();
46
- if (s.toString !== Object.prototype.toString && typeof s.toString == "function" && typeof l.toString == "function") return s.toString() === l.toString();
47
- if (c = Object.keys(s), i = c.length, i !== Object.keys(l).length) return !1;
48
- for (a = i; a-- !== 0; )
49
- if (!Object.prototype.hasOwnProperty.call(l, c[a])) return !1;
45
+ if (s.constructor === RegExp) return s.source === o.source && s.flags === o.flags;
46
+ if (s.valueOf !== Object.prototype.valueOf && typeof s.valueOf == "function" && typeof o.valueOf == "function") return s.valueOf() === o.valueOf();
47
+ if (s.toString !== Object.prototype.toString && typeof s.toString == "function" && typeof o.toString == "function") return s.toString() === o.toString();
48
+ if (c = Object.keys(s), l = c.length, l !== Object.keys(o).length) return !1;
49
+ for (a = l; a-- !== 0; )
50
+ if (!Object.prototype.hasOwnProperty.call(o, c[a])) return !1;
50
51
  if (e && s instanceof Element) return !1;
51
- for (a = i; a-- !== 0; )
52
- if (!((c[a] === "_owner" || c[a] === "__v" || c[a] === "__o") && s.$$typeof) && !o(s[c[a]], l[c[a]]))
52
+ for (a = l; a-- !== 0; )
53
+ if (!((c[a] === "_owner" || c[a] === "__v" || c[a] === "__o") && s.$$typeof) && !i(s[c[a]], o[c[a]]))
53
54
  return !1;
54
55
  return !0;
55
56
  }
56
- return s !== s && l !== l;
57
+ return s !== s && o !== o;
57
58
  }
58
- return x = function(l, i) {
59
+ return x = function(o, l) {
59
60
  try {
60
- return o(l, i);
61
+ return i(o, l);
61
62
  } catch (a) {
62
63
  if ((a.message || "").match(/stack|recursion/i))
63
64
  return console.warn("react-fast-compare cannot handle circular refs"), !1;
@@ -71,7 +72,7 @@ var P, z;
71
72
  function Oe() {
72
73
  if (z) return P;
73
74
  z = 1;
74
- var e = function(t, r, n, o, s, l, i, a) {
75
+ var e = function(t, r, n, i, s, o, l, a) {
75
76
  if (process.env.NODE_ENV !== "production" && r === void 0)
76
77
  throw new Error("invariant requires an error message argument");
77
78
  if (!t) {
@@ -81,7 +82,7 @@ function Oe() {
81
82
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
82
83
  );
83
84
  else {
84
- var u = [n, o, s, l, i, a], f = 0;
85
+ var u = [n, i, s, o, l, a], f = 0;
85
86
  c = new Error(
86
87
  r.replace(/%s/g, function() {
87
88
  return u[f++];
@@ -97,23 +98,23 @@ var we = Oe();
97
98
  const N = /* @__PURE__ */ L(we);
98
99
  var R, B;
99
100
  function Se() {
100
- return B || (B = 1, R = function(t, r, n, o) {
101
- var s = n ? n.call(o, t, r) : void 0;
101
+ return B || (B = 1, R = function(t, r, n, i) {
102
+ var s = n ? n.call(i, t, r) : void 0;
102
103
  if (s !== void 0)
103
104
  return !!s;
104
105
  if (t === r)
105
106
  return !0;
106
107
  if (typeof t != "object" || !t || typeof r != "object" || !r)
107
108
  return !1;
108
- var l = Object.keys(t), i = Object.keys(r);
109
- if (l.length !== i.length)
109
+ var o = Object.keys(t), l = Object.keys(r);
110
+ if (o.length !== l.length)
110
111
  return !1;
111
- for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < l.length; c++) {
112
- var u = l[c];
112
+ for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < o.length; c++) {
113
+ var u = o[c];
113
114
  if (!a(u))
114
115
  return !1;
115
116
  var f = t[u], m = r[u];
116
- if (s = n ? n.call(o, f, m, u) : void 0, s === !1 || s === void 0 && f !== m)
117
+ if (s = n ? n.call(i, f, m, u) : void 0, s === !1 || s === void 0 && f !== m)
117
118
  return !1;
118
119
  }
119
120
  return !0;
@@ -121,7 +122,7 @@ function Se() {
121
122
  }
122
123
  var xe = Se();
123
124
  const Pe = /* @__PURE__ */ L(xe);
124
- var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Q || {}), D = {
125
+ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Q || {}), I = {
125
126
  link: { rel: ["amphtml", "canonical", "alternate"] },
126
127
  script: { type: ["application/ld+json"] },
127
128
  meta: {
@@ -169,7 +170,7 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
169
170
  return n[t];
170
171
  }
171
172
  return null;
172
- }, De = (e) => {
173
+ }, Ie = (e) => {
173
174
  let t = E(
174
175
  e,
175
176
  "title"
@@ -180,23 +181,23 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
180
181
  return r.replace(/%s/g, () => t);
181
182
  const n = E(e, A.DEFAULT_TITLE);
182
183
  return t || n || void 0;
183
- }, Ie = (e) => E(e, A.ON_CHANGE_CLIENT_STATE) || (() => {
184
- }), I = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), $e = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
184
+ }, De = (e) => E(e, A.ON_CHANGE_CLIENT_STATE) || (() => {
185
+ }), D = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), $e = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
185
186
  if (!r.length) {
186
- const o = Object.keys(n);
187
- for (let s = 0; s < o.length; s += 1) {
188
- const i = o[s].toLowerCase();
189
- if (e.indexOf(i) !== -1 && n[i])
187
+ const i = Object.keys(n);
188
+ for (let s = 0; s < i.length; s += 1) {
189
+ const l = i[s].toLowerCase();
190
+ if (e.indexOf(l) !== -1 && n[l])
190
191
  return r.concat(n);
191
192
  }
192
193
  }
193
194
  return r;
194
195
  }, []), He = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
195
196
  const n = {};
196
- return r.filter((o) => Array.isArray(o[e]) ? !0 : (typeof o[e] < "u" && He(
197
- `Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`
198
- ), !1)).map((o) => o[e]).reverse().reduce((o, s) => {
199
- const l = {};
197
+ return r.filter((i) => Array.isArray(i[e]) ? !0 : (typeof i[e] < "u" && He(
198
+ `Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`
199
+ ), !1)).map((i) => i[e]).reverse().reduce((i, s) => {
200
+ const o = {};
200
201
  s.filter((a) => {
201
202
  let c;
202
203
  const u = Object.keys(a);
@@ -207,34 +208,34 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
207
208
  if (!c || !a[c])
208
209
  return !1;
209
210
  const f = a[c].toLowerCase();
210
- return n[c] || (n[c] = {}), l[c] || (l[c] = {}), n[c][f] ? !1 : (l[c][f] = !0, !0);
211
- }).reverse().forEach((a) => o.push(a));
212
- const i = Object.keys(l);
213
- for (let a = 0; a < i.length; a += 1) {
214
- const c = i[a], u = {
211
+ return n[c] || (n[c] = {}), o[c] || (o[c] = {}), n[c][f] ? !1 : (o[c][f] = !0, !0);
212
+ }).reverse().forEach((a) => i.push(a));
213
+ const l = Object.keys(o);
214
+ for (let a = 0; a < l.length; a += 1) {
215
+ const c = l[a], u = {
215
216
  ...n[c],
216
- ...l[c]
217
+ ...o[c]
217
218
  };
218
219
  n[c] = u;
219
220
  }
220
- return o;
221
+ return i;
221
222
  }, []).reverse();
222
- }, _e = (e, t) => {
223
+ }, je = (e, t) => {
223
224
  if (Array.isArray(e) && e.length) {
224
225
  for (let r = 0; r < e.length; r += 1)
225
226
  if (e[r][t])
226
227
  return !0;
227
228
  }
228
229
  return !1;
229
- }, je = (e) => ({
230
+ }, _e = (e) => ({
230
231
  baseTag: $e([
231
232
  "href"
232
233
  /* HREF */
233
234
  ], e),
234
- bodyAttributes: I("bodyAttributes", e),
235
+ bodyAttributes: D("bodyAttributes", e),
235
236
  defer: E(e, A.DEFER),
236
237
  encode: E(e, A.ENCODE_SPECIAL_CHARACTERS),
237
- htmlAttributes: I("htmlAttributes", e),
238
+ htmlAttributes: D("htmlAttributes", e),
238
239
  linkTags: b(
239
240
  "link",
240
241
  [
@@ -260,7 +261,7 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
260
261
  "innerHTML"
261
262
  /* INNER_HTML */
262
263
  ], e),
263
- onChangeClientState: Ie(e),
264
+ onChangeClientState: De(e),
264
265
  scriptTags: b(
265
266
  "script",
266
267
  [
@@ -274,9 +275,9 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
274
275
  "cssText"
275
276
  /* CSS_TEXT */
276
277
  ], e),
277
- title: De(e),
278
- titleAttributes: I("titleAttributes", e),
279
- prioritizeSeoTags: _e(e, A.PRIORITIZE_SEO_TAGS)
278
+ title: Ie(e),
279
+ titleAttributes: D("titleAttributes", e),
280
+ prioritizeSeoTags: je(e, A.PRIORITIZE_SEO_TAGS)
280
281
  }), W = (e) => Array.isArray(e) ? e.join("") : e, ke = (e, t) => {
281
282
  const r = Object.keys(e);
282
283
  for (let n = 0; n < r.length; n += 1)
@@ -298,44 +299,44 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
298
299
  const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
299
300
  return t ? `${t} ${n}` : n;
300
301
  }, ""), Le = (e, t, r, n) => {
301
- const o = J(r), s = W(t);
302
- return o ? `<${e} ${h}="true" ${o}>${H(
302
+ const i = J(r), s = W(t);
303
+ return i ? `<${e} ${h}="true" ${i}>${H(
303
304
  s,
304
305
  n
305
306
  )}</${e}>` : `<${e} ${h}="true">${H(
306
307
  s,
307
308
  n
308
309
  )}</${e}>`;
309
- }, qe = (e, t, r = !0) => t.reduce((n, o) => {
310
- const s = o, l = Object.keys(s).filter(
310
+ }, qe = (e, t, r = !0) => t.reduce((n, i) => {
311
+ const s = i, o = Object.keys(s).filter(
311
312
  (c) => !(c === "innerHTML" || c === "cssText")
312
313
  ).reduce((c, u) => {
313
314
  const f = typeof s[u] > "u" ? u : `${u}="${H(s[u], r)}"`;
314
315
  return c ? `${c} ${f}` : f;
315
- }, ""), i = s.innerHTML || s.cssText || "", a = Me.indexOf(e) === -1;
316
- return `${n}<${e} ${h}="true" ${l}${a ? "/>" : `>${i}</${e}>`}`;
316
+ }, ""), l = s.innerHTML || s.cssText || "", a = Me.indexOf(e) === -1;
317
+ return `${n}<${e} ${h}="true" ${o}${a ? "/>" : `>${l}</${e}>`}`;
317
318
  }, ""), X = (e, t = {}) => Object.keys(e).reduce((r, n) => {
318
- const o = q[n];
319
- return r[o || n] = e[n], r;
319
+ const i = q[n];
320
+ return r[i || n] = e[n], r;
320
321
  }, t), Fe = (e, t, r) => {
321
322
  const n = {
322
323
  key: t,
323
324
  [h]: !0
324
- }, o = X(r, n);
325
- return [T.createElement("title", o, t)];
325
+ }, i = X(r, n);
326
+ return [T.createElement("title", i, t)];
326
327
  }, S = (e, t) => t.map((r, n) => {
327
- const o = {
328
+ const i = {
328
329
  key: n,
329
330
  [h]: !0
330
331
  };
331
332
  return Object.keys(r).forEach((s) => {
332
- const i = q[s] || s;
333
- if (i === "innerHTML" || i === "cssText") {
333
+ const l = q[s] || s;
334
+ if (l === "innerHTML" || l === "cssText") {
334
335
  const a = r.innerHTML || r.cssText;
335
- o.dangerouslySetInnerHTML = { __html: a };
336
+ i.dangerouslySetInnerHTML = { __html: a };
336
337
  } else
337
- o[i] = r[s];
338
- }), T.createElement(e, o);
338
+ i[l] = r[s];
339
+ }), T.createElement(e, i);
339
340
  }), d = (e, t, r = !0) => {
340
341
  switch (e) {
341
342
  case "title":
@@ -356,36 +357,36 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
356
357
  };
357
358
  }
358
359
  }, Ue = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
359
- const o = $(e, D.meta), s = $(t, D.link), l = $(r, D.script);
360
+ const i = $(e, I.meta), s = $(t, I.link), o = $(r, I.script);
360
361
  return {
361
362
  priorityMethods: {
362
363
  toComponent: () => [
363
- ...S("meta", o.priority),
364
+ ...S("meta", i.priority),
364
365
  ...S("link", s.priority),
365
- ...S("script", l.priority)
366
+ ...S("script", o.priority)
366
367
  ],
367
368
  toString: () => (
368
369
  // generate all the tags as strings and concatenate them
369
- `${d("meta", o.priority, n)} ${d(
370
+ `${d("meta", i.priority, n)} ${d(
370
371
  "link",
371
372
  s.priority,
372
373
  n
373
- )} ${d("script", l.priority, n)}`
374
+ )} ${d("script", o.priority, n)}`
374
375
  )
375
376
  },
376
- metaTags: o.default,
377
+ metaTags: i.default,
377
378
  linkTags: s.default,
378
- scriptTags: l.default
379
+ scriptTags: o.default
379
380
  };
380
381
  }, Ke = (e) => {
381
382
  const {
382
383
  baseTag: t,
383
384
  bodyAttributes: r,
384
385
  encode: n = !0,
385
- htmlAttributes: o,
386
+ htmlAttributes: i,
386
387
  noscriptTags: s,
387
- styleTags: l,
388
- title: i = "",
388
+ styleTags: o,
389
+ title: l = "",
389
390
  titleAttributes: a,
390
391
  prioritizeSeoTags: c
391
392
  } = e;
@@ -398,15 +399,15 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
398
399
  priority: p,
399
400
  base: d("base", t, n),
400
401
  bodyAttributes: d("bodyAttributes", r, n),
401
- htmlAttributes: d("htmlAttributes", o, n),
402
+ htmlAttributes: d("htmlAttributes", i, n),
402
403
  link: d("link", u, n),
403
404
  meta: d("meta", f, n),
404
405
  noscript: d("noscript", s, n),
405
406
  script: d("script", m, n),
406
- style: d("style", l, n),
407
- title: d("title", { title: i, titleAttributes: a }, n)
407
+ style: d("style", o, n),
408
+ title: d("title", { title: l, titleAttributes: a }, n)
408
409
  };
409
- }, _ = Ke, w = [], ee = !!(typeof window < "u" && window.document && window.document.createElement), j = class {
410
+ }, j = Ke, w = [], ee = !!(typeof window < "u" && window.document && window.document.createElement), _ = class {
410
411
  instances = [];
411
412
  canUseDOM = ee;
412
413
  context;
@@ -426,7 +427,7 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
426
427
  }
427
428
  };
428
429
  constructor(e, t) {
429
- this.context = e, this.canUseDOM = t || !1, t || (e.helmet = _({
430
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = j({
430
431
  baseTag: [],
431
432
  bodyAttributes: {},
432
433
  htmlAttributes: {},
@@ -443,7 +444,7 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
443
444
  static canUseDOM = ee;
444
445
  helmetData;
445
446
  constructor(t) {
446
- super(t), this.helmetData = new j(this.props.context || {}, re.canUseDOM);
447
+ super(t), this.helmetData = new _(this.props.context || {}, re.canUseDOM);
447
448
  }
448
449
  render() {
449
450
  return /* @__PURE__ */ T.createElement(te.Provider, { value: this.helmetData.value }, this.props.children);
@@ -452,61 +453,61 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
452
453
  const r = document.head || document.querySelector(
453
454
  "head"
454
455
  /* HEAD */
455
- ), n = r.querySelectorAll(`${e}[${h}]`), o = [].slice.call(n), s = [];
456
- let l;
457
- return t && t.length && t.forEach((i) => {
456
+ ), n = r.querySelectorAll(`${e}[${h}]`), i = [].slice.call(n), s = [];
457
+ let o;
458
+ return t && t.length && t.forEach((l) => {
458
459
  const a = document.createElement(e);
459
- for (const c in i)
460
- if (Object.prototype.hasOwnProperty.call(i, c))
460
+ for (const c in l)
461
+ if (Object.prototype.hasOwnProperty.call(l, c))
461
462
  if (c === "innerHTML")
462
- a.innerHTML = i.innerHTML;
463
+ a.innerHTML = l.innerHTML;
463
464
  else if (c === "cssText")
464
- a.styleSheet ? a.styleSheet.cssText = i.cssText : a.appendChild(document.createTextNode(i.cssText));
465
+ a.styleSheet ? a.styleSheet.cssText = l.cssText : a.appendChild(document.createTextNode(l.cssText));
465
466
  else {
466
- const u = c, f = typeof i[u] > "u" ? "" : i[u];
467
+ const u = c, f = typeof l[u] > "u" ? "" : l[u];
467
468
  a.setAttribute(c, f);
468
469
  }
469
- a.setAttribute(h, "true"), o.some((c, u) => (l = u, a.isEqualNode(c))) ? o.splice(l, 1) : s.push(a);
470
- }), o.forEach((i) => i.parentNode?.removeChild(i)), s.forEach((i) => r.appendChild(i)), {
471
- oldTags: o,
470
+ a.setAttribute(h, "true"), i.some((c, u) => (o = u, a.isEqualNode(c))) ? i.splice(o, 1) : s.push(a);
471
+ }), i.forEach((l) => l.parentNode?.removeChild(l)), s.forEach((l) => r.appendChild(l)), {
472
+ oldTags: i,
472
473
  newTags: s
473
474
  };
474
475
  }, k = (e, t) => {
475
476
  const r = document.getElementsByTagName(e)[0];
476
477
  if (!r)
477
478
  return;
478
- const n = r.getAttribute(h), o = n ? n.split(",") : [], s = [...o], l = Object.keys(t);
479
- for (const i of l) {
480
- const a = t[i] || "";
481
- r.getAttribute(i) !== a && r.setAttribute(i, a), o.indexOf(i) === -1 && o.push(i);
482
- const c = s.indexOf(i);
479
+ const n = r.getAttribute(h), i = n ? n.split(",") : [], s = [...i], o = Object.keys(t);
480
+ for (const l of o) {
481
+ const a = t[l] || "";
482
+ r.getAttribute(l) !== a && r.setAttribute(l, a), i.indexOf(l) === -1 && i.push(l);
483
+ const c = s.indexOf(l);
483
484
  c !== -1 && s.splice(c, 1);
484
485
  }
485
- for (let i = s.length - 1; i >= 0; i -= 1)
486
- r.removeAttribute(s[i]);
487
- o.length === s.length ? r.removeAttribute(h) : r.getAttribute(h) !== l.join(",") && r.setAttribute(h, l.join(","));
486
+ for (let l = s.length - 1; l >= 0; l -= 1)
487
+ r.removeAttribute(s[l]);
488
+ i.length === s.length ? r.removeAttribute(h) : r.getAttribute(h) !== o.join(",") && r.setAttribute(h, o.join(","));
488
489
  }, Be = (e, t) => {
489
490
  typeof e < "u" && document.title !== e && (document.title = W(e)), k("title", t);
490
491
  }, Y = (e, t) => {
491
492
  const {
492
493
  baseTag: r,
493
494
  bodyAttributes: n,
494
- htmlAttributes: o,
495
+ htmlAttributes: i,
495
496
  linkTags: s,
496
- metaTags: l,
497
- noscriptTags: i,
497
+ metaTags: o,
498
+ noscriptTags: l,
498
499
  onChangeClientState: a,
499
500
  scriptTags: c,
500
501
  styleTags: u,
501
502
  title: f,
502
503
  titleAttributes: m
503
504
  } = e;
504
- k("body", n), k("html", o), Be(f, m);
505
+ k("body", n), k("html", i), Be(f, m);
505
506
  const p = {
506
507
  baseTag: v("base", r),
507
508
  linkTags: v("link", s),
508
- metaTags: v("meta", l),
509
- noscriptTags: v("noscript", i),
509
+ metaTags: v("meta", o),
510
+ noscriptTags: v("noscript", l),
510
511
  scriptTags: v("script", c),
511
512
  styleTags: v("style", u)
512
513
  }, g = {}, F = {};
@@ -535,13 +536,13 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
535
536
  emitChange() {
536
537
  const { helmetInstances: e, setHelmet: t } = this.props.context;
537
538
  let r = null;
538
- const n = je(
539
- e.get().map((o) => {
540
- const s = { ...o.props };
539
+ const n = _e(
540
+ e.get().map((i) => {
541
+ const s = { ...i.props };
541
542
  return delete s.context, s;
542
543
  })
543
544
  );
544
- Ne.canUseDOM ? Ze(n) : _ && (r = _(n)), t(r);
545
+ Ne.canUseDOM ? Ze(n) : j && (r = j(n)), t(r);
545
546
  }
546
547
  // componentWillMount will be deprecated
547
548
  // for SSR, initialize on first render
@@ -646,11 +647,11 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
646
647
  return T.Children.forEach(e, (n) => {
647
648
  if (!n || !n.props)
648
649
  return;
649
- const { children: o, ...s } = n.props, l = Object.keys(s).reduce((a, c) => (a[Re[c] || c] = s[c], a), {});
650
- let { type: i } = n;
651
- switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, o), i) {
650
+ const { children: i, ...s } = n.props, o = Object.keys(s).reduce((a, c) => (a[Re[c] || c] = s[c], a), {});
651
+ let { type: l } = n;
652
+ switch (typeof l == "symbol" ? l = l.toString() : this.warnOnInvalidChildren(n, i), l) {
652
653
  case "Symbol(react.fragment)":
653
- t = this.mapChildrenToProps(o, t);
654
+ t = this.mapChildrenToProps(i, t);
654
655
  break;
655
656
  case "link":
656
657
  case "meta":
@@ -660,12 +661,12 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
660
661
  r = this.flattenArrayTypeChildren(
661
662
  n,
662
663
  r,
663
- l,
664
- o
664
+ o,
665
+ i
665
666
  );
666
667
  break;
667
668
  default:
668
- t = this.mapObjectTypeChildren(n, t, l, o);
669
+ t = this.mapObjectTypeChildren(n, t, o, i);
669
670
  break;
670
671
  }
671
672
  }), this.mapArrayTypeChildrenToProps(r, t);
@@ -673,44 +674,44 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
673
674
  render() {
674
675
  const { children: e, ...t } = this.props;
675
676
  let r = { ...t }, { helmetData: n } = t;
676
- if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof j)) {
677
- const o = n;
678
- n = new j(o.context, !0), delete r.helmetData;
677
+ if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof _)) {
678
+ const i = n;
679
+ n = new _(i.context, !0), delete r.helmetData;
679
680
  }
680
- return n ? /* @__PURE__ */ T.createElement(G, { ...r, context: n.value }) : /* @__PURE__ */ T.createElement(te.Consumer, null, (o) => /* @__PURE__ */ T.createElement(G, { ...r, context: o }));
681
+ return n ? /* @__PURE__ */ T.createElement(G, { ...r, context: n.value }) : /* @__PURE__ */ T.createElement(te.Consumer, null, (i) => /* @__PURE__ */ T.createElement(G, { ...r, context: i }));
681
682
  }
682
683
  };
683
684
  const Ge = oe(!1), Qe = (e) => {
684
- const t = le(e);
685
- return t.current = e, ce(() => {
685
+ const t = ie(e);
686
+ return t.current = e, le(() => {
686
687
  t.current = e;
687
688
  }, [e]), t;
688
- }, We = "protected", st = () => {
689
- const e = se(), t = ae(), r = pe(), n = de(), o = Qe(n.pathname), s = ue(Ge), { protectedRoutes: l = [] } = t.options, i = !s && l.some(
690
- (a) => me({ path: a, end: !0 }, n.pathname)
691
- );
692
- if (ie({
689
+ }, We = "protected", at = () => {
690
+ const e = Ae(), t = se(), r = fe(), n = pe(), i = Qe(n.pathname), s = ce(Ge), { protectedRoutes: o } = t.options, l = !s && o ? Object.entries(o).find(
691
+ ([u]) => de({ path: u, end: !0 }, n.pathname)
692
+ )?.[1] : void 0, a = l !== void 0, c = a && !l({ auth: e, context: t });
693
+ if (ae({
693
694
  queryKey: ["login-redirect"],
694
- queryFn: async () => (await new Promise((a) => setTimeout(a, 1200)), await t.authentication?.signIn({
695
- redirectTo: o.current
695
+ queryFn: async () => (await new Promise((u) => setTimeout(u, 1200)), await t.authentication?.signIn({
696
+ redirectTo: i.current
696
697
  }), !0),
697
- enabled: typeof window < "u" && i && !e.isPending && !e.isAuthenticated
698
- }), i && !e.isAuthenticated)
698
+ enabled: typeof window < "u" && c && !e.isPending
699
+ }), c)
699
700
  return /* @__PURE__ */ y.jsx(
700
- ye,
701
+ he,
701
702
  {
702
703
  open: !0,
703
- onOpenChange: (a) => {
704
- a || r(-1);
704
+ onOpenChange: (u) => {
705
+ u || r(-1);
705
706
  },
706
- children: /* @__PURE__ */ y.jsxs(Te, { children: [
707
- /* @__PURE__ */ y.jsx(ge, { children: /* @__PURE__ */ y.jsx(ve, { children: "Logging you in..." }) }),
708
- /* @__PURE__ */ y.jsx(Ae, { children: "Please wait while we log you in." })
707
+ children: /* @__PURE__ */ y.jsxs(ye, { children: [
708
+ /* @__PURE__ */ y.jsx(Te, { children: /* @__PURE__ */ y.jsx(ge, { children: "Logging you in..." }) }),
709
+ /* @__PURE__ */ y.jsx(ve, { children: "Please wait while we log you in." })
709
710
  ] })
710
711
  }
711
712
  );
712
- if (i && !e.isAuthEnabled)
713
- throw new fe("Authentication is not enabled", {
713
+ if (a && !e.isAuthEnabled)
714
+ throw new ue("Authentication is not enabled", {
714
715
  title: "Authentication is not enabled",
715
716
  developerHint: "To use protectedRoutes you need authentication to be enabled"
716
717
  });
@@ -723,15 +724,15 @@ const Ge = oe(!1), Qe = (e) => {
723
724
  content: "true"
724
725
  }
725
726
  ) }),
726
- /* @__PURE__ */ y.jsx(he, {})
727
+ /* @__PURE__ */ y.jsx(me, {})
727
728
  ] });
728
729
  };
729
730
  export {
730
731
  Ge as B,
731
732
  Ye as H,
732
- st as R,
733
+ at as R,
733
734
  We as S,
734
735
  Ne as a,
735
736
  Qe as u
736
737
  };
737
- //# sourceMappingURL=RouteGuard-Vnlz_t51.js.map
738
+ //# sourceMappingURL=RouteGuard-0wPUKdxJ.js.map