zudoku 0.1.1-dev.50 → 0.1.1-dev.51

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 (59) hide show
  1. package/dist/config/config.d.ts +19 -2
  2. package/dist/config/validators/auth.d.ts +2 -0
  3. package/dist/config/validators/auth.js +2 -0
  4. package/dist/config/validators/auth.js.map +1 -0
  5. package/dist/config/validators/validate.d.ts +2 -0
  6. package/dist/config/validators/validate.js +4 -0
  7. package/dist/config/validators/validate.js.map +1 -0
  8. package/dist/lib/authentication/Callback.d.ts +4 -0
  9. package/dist/lib/authentication/Callback.js +20 -0
  10. package/dist/lib/authentication/Callback.js.map +1 -0
  11. package/dist/lib/authentication/auth0.d.ts +5 -0
  12. package/dist/lib/authentication/auth0.js +9 -0
  13. package/dist/lib/authentication/auth0.js.map +1 -0
  14. package/dist/lib/authentication/authentication.d.ts +7 -10
  15. package/dist/lib/authentication/clerk.d.ts +3 -4
  16. package/dist/lib/authentication/clerk.js +13 -6
  17. package/dist/lib/authentication/clerk.js.map +1 -1
  18. package/dist/lib/authentication/openid.d.ts +5 -11
  19. package/dist/lib/authentication/openid.js +90 -73
  20. package/dist/lib/authentication/openid.js.map +1 -1
  21. package/dist/lib/components/DevPortal.d.ts +2 -2
  22. package/dist/lib/components/DevPortal.js +5 -1
  23. package/dist/lib/components/DevPortal.js.map +1 -1
  24. package/dist/lib/components/Layout.js +1 -4
  25. package/dist/lib/components/Layout.js.map +1 -1
  26. package/dist/lib/core/DevPortalContext.d.ts +4 -7
  27. package/dist/lib/core/DevPortalContext.js +6 -6
  28. package/dist/lib/core/DevPortalContext.js.map +1 -1
  29. package/dist/lib/core/plugins.d.ts +1 -6
  30. package/dist/lib/plugins/api-key/index.js +6 -3
  31. package/dist/lib/plugins/api-key/index.js.map +1 -1
  32. package/dist/vite/config.js +2 -0
  33. package/dist/vite/config.js.map +1 -1
  34. package/dist/vite/plugin-auth.js +1 -1
  35. package/dist/vite/plugin-auth.js.map +1 -1
  36. package/lib/DevPortalProvider-yBHPOS9_.js +4559 -0
  37. package/lib/Spinner-Daa7xsri.js +7329 -0
  38. package/lib/loglevel-D-4S8up4.js +152 -0
  39. package/lib/zudoku.auth-auth0.js +829 -0
  40. package/lib/zudoku.auth-clerk.js +21 -12
  41. package/lib/zudoku.components.js +180 -174
  42. package/lib/zudoku.plugins.js +5702 -5846
  43. package/package.json +4 -1
  44. package/src/lib/authentication/Callback.tsx +31 -0
  45. package/src/lib/authentication/auth0.tsx +18 -0
  46. package/src/lib/authentication/authentication.ts +7 -14
  47. package/src/lib/authentication/{clerk.ts → clerk.tsx} +17 -9
  48. package/src/lib/authentication/openid.tsx +206 -0
  49. package/src/lib/components/DevPortal.tsx +10 -3
  50. package/src/lib/components/Layout.tsx +1 -5
  51. package/src/lib/core/DevPortalContext.ts +10 -13
  52. package/src/lib/core/plugins.ts +4 -4
  53. package/src/lib/plugins/api-key/index.tsx +9 -3
  54. package/dist/lib/core/types/combine.d.ts +0 -4
  55. package/dist/lib/core/types/combine.js +0 -2
  56. package/dist/lib/core/types/combine.js.map +0 -1
  57. package/lib/Spinner-9_-7nYgL.js +0 -11855
  58. package/src/lib/authentication/openid.ts +0 -194
  59. package/src/lib/core/types/combine.ts +0 -16
@@ -3,24 +3,25 @@ var xe = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var at = (t, e, n) => e in t ? st(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var j = (t, e, n) => at(t, typeof e != "symbol" ? e + "" : e, n), Se = (t, e, n) => e.has(t) || xe("Cannot " + n);
7
- var i = (t, e, n) => (Se(t, e, "read from private field"), n ? n.call(t) : e.get(t)), C = (t, e, n) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), P = (t, e, n, r) => (Se(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
6
+ var P = (t, e, n) => at(t, typeof e != "symbol" ? e + "" : e, n), Se = (t, e, n) => e.has(t) || xe("Cannot " + n);
7
+ var i = (t, e, n) => (Se(t, e, "read from private field"), n ? n.call(t) : e.get(t)), C = (t, e, n) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), j = (t, e, n, r) => (Se(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
8
  var X = (t, e, n, r) => ({
9
9
  set _(s) {
10
- P(t, e, s, n);
10
+ j(t, e, s, n);
11
11
  },
12
12
  get _() {
13
13
  return i(t, e, r);
14
14
  }
15
15
  });
16
- import { S as Ve, h as He, Q as it, n as N, m as be, M as ot, a as Oe, b as L, e as ut, c as ct, d as lt, f as dt, o as _e, r as Ee, g as ht, i as we, p as je, s as ft, j as pt, k as G, u as me, l as a, N as he, q as vt, t as mt, v as B, w as ge, x as ye, y as fe, z as Fe, A as gt, B as te, R as Ke, T as Be, C as ze, D as yt, E as xt, F as St, G as bt, H as Ot, I as _t, O as Et, J as wt, K as jt, L as Pt, P as At, U as Dt, V as Nt, W as Ct, X as Mt, Y as Tt } from "./Spinner-9_-7nYgL.js";
17
- import { _ as jn, Z as Pn } from "./Spinner-9_-7nYgL.js";
18
- import $, { memo as We, createContext as Rt, useEffect as K, useRef as ne, useState as Lt, forwardRef as kt, Suspense as Ue, useMemo as ee } from "react";
16
+ import { S as Ve, h as He, Q as it, n as N, m as be, a as Oe, b as R, e as ot, c as ut, d as ct, f as lt, o as _e, r as Ee, g as dt, i as we, p as je, s as ht, j as ft, u as ve, k as a, l as K, q as pt, t as mt, O as vt, v as gt, D as yt } from "./DevPortalProvider-yBHPOS9_.js";
17
+ import U, { memo as Fe, createContext as xt, useEffect as G, useRef as ne, useState as St, forwardRef as bt, Suspense as Ke, useMemo as ee } from "react";
18
+ import { M as Ot, c as $, N as he, a as _t, u as Et, b as ge, d as ye, i as fe, j as Be, e as wt, f as te, R as ze, T as We, C as Ue, A as jt, g as Pt, H as At, S as Dt, h as Nt, k as Ct, l as Mt, m as Tt, n as Lt, o as Rt, V as kt } from "./Spinner-Daa7xsri.js";
19
+ import { L as Pn, p as An } from "./Spinner-Daa7xsri.js";
19
20
  var T, Ie, It = (Ie = class extends Ve {
20
21
  constructor(e = {}) {
21
22
  super();
22
23
  C(this, T);
23
- this.config = e, P(this, T, /* @__PURE__ */ new Map());
24
+ this.config = e, j(this, T, /* @__PURE__ */ new Map());
24
25
  }
25
26
  build(e, n, r) {
26
27
  const s = n.queryKey, o = n.queryHash ?? He(s, n);
@@ -88,17 +89,17 @@ var T, Ie, It = (Ie = class extends Ve {
88
89
  });
89
90
  });
90
91
  }
91
- }, T = new WeakMap(), Ie), D, U, qe, qt = (qe = class extends Ve {
92
+ }, T = new WeakMap(), Ie), D, W, qe, qt = (qe = class extends Ve {
92
93
  constructor(e = {}) {
93
94
  super();
94
95
  C(this, D);
95
- C(this, U);
96
- this.config = e, P(this, D, /* @__PURE__ */ new Map()), P(this, U, Date.now());
96
+ C(this, W);
97
+ this.config = e, j(this, D, /* @__PURE__ */ new Map()), j(this, W, Date.now());
97
98
  }
98
99
  build(e, n, r) {
99
- const s = new ot({
100
+ const s = new Ot({
100
101
  mutationCache: this,
101
- mutationId: ++X(this, U)._,
102
+ mutationId: ++X(this, W)._,
102
103
  options: e.defaultMutationOptions(n),
103
104
  state: r
104
105
  });
@@ -157,11 +158,11 @@ var T, Ie, It = (Ie = class extends Ve {
157
158
  const e = this.getAll().filter((n) => n.state.isPaused);
158
159
  return N.batch(
159
160
  () => Promise.all(
160
- e.map((n) => n.continue().catch(L))
161
+ e.map((n) => n.continue().catch(R))
161
162
  )
162
163
  );
163
164
  }
164
- }, D = new WeakMap(), U = new WeakMap(), qe);
165
+ }, D = new WeakMap(), W = new WeakMap(), qe);
165
166
  function Y(t) {
166
167
  var e;
167
168
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
@@ -170,8 +171,8 @@ function Qt(t) {
170
171
  return {
171
172
  onFetch: (e, n) => {
172
173
  const r = async () => {
173
- var S, g, O, M, R;
174
- const s = e.options, o = (O = (g = (S = e.fetchOptions) == null ? void 0 : S.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : O.direction, p = ((M = e.state.data) == null ? void 0 : M.pages) || [], v = ((R = e.state.data) == null ? void 0 : R.pageParams) || [], E = { pages: [], pageParams: [] };
174
+ var S, g, O, M, L;
175
+ const s = e.options, o = (O = (g = (S = e.fetchOptions) == null ? void 0 : S.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : O.direction, p = ((M = e.state.data) == null ? void 0 : M.pages) || [], m = ((L = e.state.data) == null ? void 0 : L.pageParams) || [], E = { pages: [], pageParams: [] };
175
176
  let x = !1;
176
177
  const u = (d) => {
177
178
  Object.defineProperty(d, "signal", {
@@ -180,7 +181,7 @@ function Qt(t) {
180
181
  x = !0;
181
182
  }), e.signal)
182
183
  });
183
- }, l = ut(e.options, e.fetchOptions), h = async (d, c, y) => {
184
+ }, l = ot(e.options, e.fetchOptions), h = async (d, c, y) => {
184
185
  if (x)
185
186
  return Promise.reject();
186
187
  if (c == null && d.pages.length)
@@ -194,31 +195,31 @@ function Qt(t) {
194
195
  u(f);
195
196
  const _ = await l(
196
197
  f
197
- ), { maxPages: A } = e.options, w = y ? ct : lt;
198
+ ), { maxPages: A } = e.options, w = y ? ut : ct;
198
199
  return {
199
200
  pages: w(d.pages, _, A),
200
201
  pageParams: w(d.pageParams, c, A)
201
202
  };
202
203
  };
203
- let m;
204
+ let v;
204
205
  if (o && p.length) {
205
206
  const d = o === "backward", c = d ? Vt : Pe, y = {
206
207
  pages: p,
207
- pageParams: v
208
+ pageParams: m
208
209
  }, f = c(s, y);
209
- m = await h(y, f, d);
210
+ v = await h(y, f, d);
210
211
  } else {
211
- m = await h(
212
+ v = await h(
212
213
  E,
213
- v[0] ?? s.initialPageParam
214
+ m[0] ?? s.initialPageParam
214
215
  );
215
216
  const d = t ?? p.length;
216
217
  for (let c = 1; c < d; c++) {
217
- const y = Pe(s, m);
218
- m = await h(m, y);
218
+ const y = Pe(s, v);
219
+ v = await h(v, y);
219
220
  }
220
221
  }
221
- return m;
222
+ return v;
222
223
  };
223
224
  e.options.persister ? e.fetchFn = () => {
224
225
  var s, o;
@@ -265,18 +266,18 @@ var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
265
266
  C(this, q);
266
267
  C(this, H);
267
268
  C(this, F);
268
- P(this, b, t.queryCache || new It()), P(this, k, t.mutationCache || new qt()), P(this, I, t.defaultOptions || {}), P(this, Q, /* @__PURE__ */ new Map()), P(this, V, /* @__PURE__ */ new Map()), P(this, q, 0);
269
+ j(this, b, t.queryCache || new It()), j(this, k, t.mutationCache || new qt()), j(this, I, t.defaultOptions || {}), j(this, Q, /* @__PURE__ */ new Map()), j(this, V, /* @__PURE__ */ new Map()), j(this, q, 0);
269
270
  }
270
271
  mount() {
271
- X(this, q)._++, i(this, q) === 1 && (P(this, H, dt.subscribe(async (t) => {
272
+ X(this, q)._++, i(this, q) === 1 && (j(this, H, lt.subscribe(async (t) => {
272
273
  t && (await this.resumePausedMutations(), i(this, b).onFocus());
273
- })), P(this, F, _e.subscribe(async (t) => {
274
+ })), j(this, F, _e.subscribe(async (t) => {
274
275
  t && (await this.resumePausedMutations(), i(this, b).onOnline());
275
276
  })));
276
277
  }
277
278
  unmount() {
278
279
  var t, e;
279
- X(this, q)._--, i(this, q) === 0 && ((t = i(this, H)) == null || t.call(this), P(this, H, void 0), (e = i(this, F)) == null || e.call(this), P(this, F, void 0));
280
+ X(this, q)._--, i(this, q) === 0 && ((t = i(this, H)) == null || t.call(this), j(this, H, void 0), (e = i(this, F)) == null || e.call(this), j(this, F, void 0));
280
281
  }
281
282
  isFetching(t) {
282
283
  return i(this, b).findAll({ ...t, fetchStatus: "fetching" }).length;
@@ -307,7 +308,7 @@ var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
307
308
  setQueryData(t, e, n) {
308
309
  const r = this.defaultQueryOptions({ queryKey: t }), s = i(this, b).get(
309
310
  r.queryHash
310
- ), o = s == null ? void 0 : s.state.data, p = ht(e, o);
311
+ ), o = s == null ? void 0 : s.state.data, p = dt(e, o);
311
312
  if (p !== void 0)
312
313
  return i(this, b).build(this, r).setData(p, { ...n, manual: !0 });
313
314
  }
@@ -345,7 +346,7 @@ var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
345
346
  const n = { revert: !0, ...e }, r = N.batch(
346
347
  () => i(this, b).findAll(t).map((s) => s.cancel(n))
347
348
  );
348
- return Promise.all(r).then(L).catch(L);
349
+ return Promise.all(r).then(R).catch(R);
349
350
  }
350
351
  invalidateQueries(t = {}, e = {}) {
351
352
  return N.batch(() => {
@@ -367,10 +368,10 @@ var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
367
368
  }, r = N.batch(
368
369
  () => i(this, b).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
369
370
  let o = s.fetch(void 0, n);
370
- return n.throwOnError || (o = o.catch(L)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
371
+ return n.throwOnError || (o = o.catch(R)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
371
372
  })
372
373
  );
373
- return Promise.all(r).then(L);
374
+ return Promise.all(r).then(R);
374
375
  }
375
376
  fetchQuery(t) {
376
377
  const e = this.defaultQueryOptions(t);
@@ -381,13 +382,13 @@ var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
381
382
  ) ? n.fetch(e) : Promise.resolve(n.state.data);
382
383
  }
383
384
  prefetchQuery(t) {
384
- return this.fetchQuery(t).then(L).catch(L);
385
+ return this.fetchQuery(t).then(R).catch(R);
385
386
  }
386
387
  fetchInfiniteQuery(t) {
387
388
  return t.behavior = Qt(t.pages), this.fetchQuery(t);
388
389
  }
389
390
  prefetchInfiniteQuery(t) {
390
- return this.fetchInfiniteQuery(t).then(L).catch(L);
391
+ return this.fetchInfiniteQuery(t).then(R).catch(R);
391
392
  }
392
393
  resumePausedMutations() {
393
394
  return _e.isOnline() ? i(this, k).resumePausedMutations() : Promise.resolve();
@@ -402,7 +403,7 @@ var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
402
403
  return i(this, I);
403
404
  }
404
405
  setDefaultOptions(t) {
405
- P(this, I, t);
406
+ j(this, I, t);
406
407
  }
407
408
  setQueryDefaults(t, e) {
408
409
  i(this, Q).set(we(t), {
@@ -442,7 +443,7 @@ var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
442
443
  return e.queryHash || (e.queryHash = He(
443
444
  e.queryKey,
444
445
  e
445
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === ft && (e.enabled = !1), e;
446
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === ht && (e.enabled = !1), e;
446
447
  }
447
448
  defaultMutationOptions(t) {
448
449
  return t != null && t._defaulted ? t : {
@@ -461,8 +462,8 @@ const Ae = (t) => {
461
462
  const n = /* @__PURE__ */ new Set(), r = (u, l) => {
462
463
  const h = typeof u == "function" ? u(e) : u;
463
464
  if (!Object.is(h, e)) {
464
- const m = e;
465
- e = l ?? (typeof h != "object" || h === null) ? h : Object.assign({}, e, h), n.forEach((S) => S(e, m));
465
+ const v = e;
466
+ e = l ?? (typeof h != "object" || h === null) ? h : Object.assign({}, e, h), n.forEach((S) => S(e, v));
466
467
  }
467
468
  }, s = () => e, E = { setState: r, getState: s, getInitialState: () => x, subscribe: (u) => (n.add(u), () => n.delete(u)), destroy: () => {
468
469
  (Ft ? "production" : void 0) !== "production" && console.warn(
@@ -485,27 +486,27 @@ var De;
485
486
  function Bt() {
486
487
  if (De) return ce;
487
488
  De = 1;
488
- var t = $;
489
+ var t = U;
489
490
  function e(l, h) {
490
491
  return l === h && (l !== 0 || 1 / l === 1 / h) || l !== l && h !== h;
491
492
  }
492
493
  var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, s = t.useEffect, o = t.useLayoutEffect, p = t.useDebugValue;
493
- function v(l, h) {
494
- var m = h(), S = r({ inst: { value: m, getSnapshot: h } }), g = S[0].inst, O = S[1];
494
+ function m(l, h) {
495
+ var v = h(), S = r({ inst: { value: v, getSnapshot: h } }), g = S[0].inst, O = S[1];
495
496
  return o(function() {
496
- g.value = m, g.getSnapshot = h, E(g) && O({ inst: g });
497
- }, [l, m, h]), s(function() {
497
+ g.value = v, g.getSnapshot = h, E(g) && O({ inst: g });
498
+ }, [l, v, h]), s(function() {
498
499
  return E(g) && O({ inst: g }), l(function() {
499
500
  E(g) && O({ inst: g });
500
501
  });
501
- }, [l]), p(m), m;
502
+ }, [l]), p(v), v;
502
503
  }
503
504
  function E(l) {
504
505
  var h = l.getSnapshot;
505
506
  l = l.value;
506
507
  try {
507
- var m = h();
508
- return !n(l, m);
508
+ var v = h();
509
+ return !n(l, v);
509
510
  } catch {
510
511
  return !0;
511
512
  }
@@ -513,7 +514,7 @@ function Bt() {
513
514
  function x(l, h) {
514
515
  return h();
515
516
  }
516
- var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x : v;
517
+ var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x : m;
517
518
  return ce.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, ce;
518
519
  }
519
520
  var le = {};
@@ -530,7 +531,7 @@ var Ne;
530
531
  function zt() {
531
532
  return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
532
533
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
533
- var t = $, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
534
+ var t = U, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
534
535
  function n(d) {
535
536
  {
536
537
  for (var c = arguments.length, y = new Array(c > 1 ? c - 1 : 0), f = 1; f < c; f++)
@@ -551,7 +552,7 @@ function zt() {
551
552
  function s(d, c) {
552
553
  return d === c && (d !== 0 || 1 / d === 1 / c) || d !== d && c !== c;
553
554
  }
554
- var o = typeof Object.is == "function" ? Object.is : s, p = t.useState, v = t.useEffect, E = t.useLayoutEffect, x = t.useDebugValue, u = !1, l = !1;
555
+ var o = typeof Object.is == "function" ? Object.is : s, p = t.useState, m = t.useEffect, E = t.useLayoutEffect, x = t.useDebugValue, u = !1, l = !1;
555
556
  function h(d, c, y) {
556
557
  u || t.startTransition !== void 0 && (u = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
557
558
  var f = c();
@@ -564,24 +565,24 @@ function zt() {
564
565
  value: f,
565
566
  getSnapshot: c
566
567
  }
567
- }), w = A[0].inst, z = A[1];
568
+ }), w = A[0].inst, B = A[1];
568
569
  return E(function() {
569
- w.value = f, w.getSnapshot = c, m(w) && z({
570
+ w.value = f, w.getSnapshot = c, v(w) && B({
570
571
  inst: w
571
572
  });
572
- }, [d, f, c]), v(function() {
573
- m(w) && z({
573
+ }, [d, f, c]), m(function() {
574
+ v(w) && B({
574
575
  inst: w
575
576
  });
576
577
  var re = function() {
577
- m(w) && z({
578
+ v(w) && B({
578
579
  inst: w
579
580
  });
580
581
  };
581
582
  return d(re);
582
583
  }, [d]), x(f), f;
583
584
  }
584
- function m(d) {
585
+ function v(d) {
585
586
  var c = d.getSnapshot, y = d.value;
586
587
  try {
587
588
  var f = c();
@@ -593,8 +594,8 @@ function zt() {
593
594
  function S(d, c, y) {
594
595
  return c();
595
596
  }
596
- var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", O = !g, M = O ? S : h, R = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : M;
597
- le.useSyncExternalStore = R, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
597
+ var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", O = !g, M = O ? S : h, L = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : M;
598
+ le.useSyncExternalStore = L, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
598
599
  }()), le;
599
600
  }
600
601
  var Ce;
@@ -614,37 +615,37 @@ var Me;
614
615
  function Wt() {
615
616
  if (Me) return ue;
616
617
  Me = 1;
617
- var t = $, e = Ge();
618
+ var t = U, e = Ge();
618
619
  function n(x, u) {
619
620
  return x === u && (x !== 0 || 1 / x === 1 / u) || x !== x && u !== u;
620
621
  }
621
- var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, o = t.useRef, p = t.useEffect, v = t.useMemo, E = t.useDebugValue;
622
- return ue.useSyncExternalStoreWithSelector = function(x, u, l, h, m) {
622
+ var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, o = t.useRef, p = t.useEffect, m = t.useMemo, E = t.useDebugValue;
623
+ return ue.useSyncExternalStoreWithSelector = function(x, u, l, h, v) {
623
624
  var S = o(null);
624
625
  if (S.current === null) {
625
626
  var g = { hasValue: !1, value: null };
626
627
  S.current = g;
627
628
  } else g = S.current;
628
- S = v(function() {
629
+ S = m(function() {
629
630
  function M(f) {
630
- if (!R) {
631
- if (R = !0, d = f, f = h(f), m !== void 0 && g.hasValue) {
631
+ if (!L) {
632
+ if (L = !0, d = f, f = h(f), v !== void 0 && g.hasValue) {
632
633
  var _ = g.value;
633
- if (m(_, f)) return c = _;
634
+ if (v(_, f)) return c = _;
634
635
  }
635
636
  return c = f;
636
637
  }
637
638
  if (_ = c, r(d, f)) return _;
638
639
  var A = h(f);
639
- return m !== void 0 && m(_, A) ? _ : (d = f, c = A);
640
+ return v !== void 0 && v(_, A) ? _ : (d = f, c = A);
640
641
  }
641
- var R = !1, d, c, y = l === void 0 ? null : l;
642
+ var L = !1, d, c, y = l === void 0 ? null : l;
642
643
  return [function() {
643
644
  return M(u());
644
645
  }, y === null ? void 0 : function() {
645
646
  return M(y());
646
647
  }];
647
- }, [u, l, h, m]);
648
+ }, [u, l, h, v]);
648
649
  var O = s(x, S[0], S[1]);
649
650
  return p(function() {
650
651
  g.hasValue = !0, g.value = O;
@@ -665,22 +666,22 @@ var Te;
665
666
  function Ut() {
666
667
  return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
667
668
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
668
- var t = $, e = Ge();
669
+ var t = U, e = Ge();
669
670
  function n(u, l) {
670
671
  return u === l && (u !== 0 || 1 / u === 1 / l) || u !== u && l !== l;
671
672
  }
672
- var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, o = t.useRef, p = t.useEffect, v = t.useMemo, E = t.useDebugValue;
673
- function x(u, l, h, m, S) {
673
+ var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, o = t.useRef, p = t.useEffect, m = t.useMemo, E = t.useDebugValue;
674
+ function x(u, l, h, v, S) {
674
675
  var g = o(null), O;
675
676
  g.current === null ? (O = {
676
677
  hasValue: !1,
677
678
  value: null
678
679
  }, g.current = O) : O = g.current;
679
- var M = v(function() {
680
- var y = !1, f, _, A = function(W) {
680
+ var M = m(function() {
681
+ var y = !1, f, _, A = function(z) {
681
682
  if (!y) {
682
- y = !0, f = W;
683
- var se = m(W);
683
+ y = !0, f = z;
684
+ var se = v(z);
684
685
  if (S !== void 0 && O.hasValue) {
685
686
  var ae = O.value;
686
687
  if (S(ae, se))
@@ -689,17 +690,17 @@ function Ut() {
689
690
  return _ = se, se;
690
691
  }
691
692
  var rt = f, ie = _;
692
- if (r(rt, W))
693
+ if (r(rt, z))
693
694
  return ie;
694
- var oe = m(W);
695
- return S !== void 0 && S(ie, oe) ? ie : (f = W, _ = oe, oe);
696
- }, w = h === void 0 ? null : h, z = function() {
695
+ var oe = v(z);
696
+ return S !== void 0 && S(ie, oe) ? ie : (f = z, _ = oe, oe);
697
+ }, w = h === void 0 ? null : h, B = function() {
697
698
  return A(l());
698
699
  }, re = w === null ? void 0 : function() {
699
700
  return A(w());
700
701
  };
701
- return [z, re];
702
- }, [l, h, m, S]), R = M[0], d = M[1], c = s(u, R, d);
702
+ return [B, re];
703
+ }, [l, h, v, S]), L = M[0], d = M[1], c = s(u, L, d);
703
704
  return p(function() {
704
705
  O.hasValue = !0, O.value = c;
705
706
  }, [c]), E(c), c;
@@ -709,15 +710,15 @@ function Ut() {
709
710
  }
710
711
  process.env.NODE_ENV === "production" ? pe.exports = Wt() : pe.exports = Ut();
711
712
  var Gt = pe.exports;
712
- const $t = /* @__PURE__ */ pt(Gt);
713
+ const $t = /* @__PURE__ */ ft(Gt);
713
714
  var $e = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
714
- const { useDebugValue: Xt } = $, { useSyncExternalStoreWithSelector: Yt } = $t;
715
- let Re = !1;
715
+ const { useDebugValue: Xt } = U, { useSyncExternalStoreWithSelector: Yt } = $t;
716
+ let Le = !1;
716
717
  const Jt = (t) => t;
717
718
  function Zt(t, e = Jt, n) {
718
- ($e ? "production" : void 0) !== "production" && n && !Re && (console.warn(
719
+ ($e ? "production" : void 0) !== "production" && n && !Le && (console.warn(
719
720
  "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
720
- ), Re = !0);
721
+ ), Le = !0);
721
722
  const r = Yt(
722
723
  t.subscribe,
723
724
  t.getState,
@@ -727,51 +728,47 @@ function Zt(t, e = Jt, n) {
727
728
  );
728
729
  return Xt(r), r;
729
730
  }
730
- const Le = (t) => {
731
+ const Re = (t) => {
731
732
  ($e ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
732
733
  "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
733
734
  );
734
735
  const e = typeof t == "function" ? Kt(t) : t, n = (r, s) => Zt(e, r, s);
735
736
  return Object.assign(n, e), n;
736
- }, en = (t) => t ? Le(t) : Le, Xe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", tn = (t) => "initialize" in t && typeof t.initialize == "function", nn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ye = new Ht(), ve = en(
737
+ }, en = (t) => t ? Re(t) : Re, Xe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", tn = (t) => "initialize" in t && typeof t.initialize == "function", nn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ye = new Ht(), me = en(
737
738
  () => ({
738
739
  isLoggedIn: !1
739
740
  })
740
741
  );
741
742
  class rn {
742
743
  constructor(e) {
743
- j(this, "plugins", []);
744
- j(this, "navigationPlugins");
745
- j(this, "navigation");
746
- j(this, "meta");
747
- j(this, "authentication");
748
- j(this, "state");
749
- j(this, "initialize", async () => {
750
- var e;
751
- this.plugins.filter(tn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
744
+ P(this, "plugins", []);
745
+ P(this, "navigationPlugins");
746
+ P(this, "navigation");
747
+ P(this, "meta");
748
+ P(this, "authentication");
749
+ P(this, "state");
750
+ P(this, "initialize", async () => {
751
+ var e, n;
752
+ this.plugins.filter(tn).forEach((r) => r.initialize(this)), await ((n = (e = this.authentication) == null ? void 0 : e.initialize) == null ? void 0 : n.call(e, this));
752
753
  });
753
- j(this, "setUserProfile", async (e) => ve.setState(e));
754
- j(this, "invalidateCache", async (e) => {
755
- Ye.invalidateQueries({ queryKey: e });
754
+ P(this, "setUserProfile", async (e) => me.setState(e));
755
+ P(this, "invalidateCache", async (e) => {
756
+ await Ye.invalidateQueries({ queryKey: e });
756
757
  });
757
- j(this, "getApiIdentities", async () => (await Promise.all(
758
+ P(this, "getApiIdentities", async () => (await Promise.all(
758
759
  this.plugins.filter(nn).map((n) => n.getIdentities(this))
759
760
  )).flat());
760
- j(this, "login", async () => {
761
+ P(this, "login", async () => {
761
762
  if (!this.authentication)
762
763
  throw new Error("No authentication configured");
763
764
  return this.authentication.login(this);
764
765
  });
765
- j(this, "logout", async () => {
766
+ P(this, "logout", async () => {
766
767
  if (!this.authentication)
767
768
  throw new Error("No authentication configured");
768
- return this.authentication.signOut(this);
769
+ return this.authentication.logout(this);
769
770
  });
770
- j(this, "handleAuthenticationResponse", async (e) => {
771
- var n, r;
772
- (r = (n = this.config.authentication) == null ? void 0 : n.handleAuthenticationResponse) == null || r.call(n, e, this);
773
- });
774
- j(this, "getNavigation", async (e) => (await Promise.all(
771
+ P(this, "getNavigation", async (e) => (await Promise.all(
775
772
  this.navigationPlugins.map(
776
773
  async (r) => {
777
774
  var s;
@@ -779,13 +776,16 @@ class rn {
779
776
  }
780
777
  )
781
778
  )).flatMap((r) => r ?? []));
782
- j(this, "sessionStorage", {
779
+ P(this, "sessionStorage", {
783
780
  get: async (e) => localStorage.getItem(`session-${e}`) ?? "",
784
781
  setProfile: async () => {
785
782
  },
786
783
  set: async (e, n) => localStorage.setItem(`session-${e}`, n)
787
784
  });
788
- this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Xe), this.authentication = e.authentication, this.meta = e.meta, this.state = ve;
785
+ this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Xe), this.authentication = e.authentication, this.meta = e.meta, this.state = me;
786
+ }
787
+ get url() {
788
+ return new URL(window.location.href);
789
789
  }
790
790
  }
791
791
  /**
@@ -794,7 +794,7 @@ class rn {
794
794
  * This source code is licensed under the ISC license.
795
795
  * See the LICENSE file in the root directory of this source tree.
796
796
  */
797
- const Je = G("ChevronRight", [
797
+ const Je = $("ChevronRight", [
798
798
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
799
799
  ]);
800
800
  /**
@@ -803,7 +803,7 @@ const Je = G("ChevronRight", [
803
803
  * This source code is licensed under the ISC license.
804
804
  * See the LICENSE file in the root directory of this source tree.
805
805
  */
806
- const sn = G("ExternalLink", [
806
+ const sn = $("ExternalLink", [
807
807
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
808
808
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
809
809
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -814,7 +814,7 @@ const sn = G("ExternalLink", [
814
814
  * This source code is licensed under the ISC license.
815
815
  * See the LICENSE file in the root directory of this source tree.
816
816
  */
817
- const an = G("MoonStar", [
817
+ const an = $("MoonStar", [
818
818
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
819
819
  ["path", { d: "M20 3v4", key: "1olli1" }],
820
820
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -825,7 +825,7 @@ const an = G("MoonStar", [
825
825
  * This source code is licensed under the ISC license.
826
826
  * See the LICENSE file in the root directory of this source tree.
827
827
  */
828
- const on = G("Search", [
828
+ const on = $("Search", [
829
829
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
830
830
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
831
831
  ]);
@@ -835,7 +835,7 @@ const on = G("Search", [
835
835
  * This source code is licensed under the ISC license.
836
836
  * See the LICENSE file in the root directory of this source tree.
837
837
  */
838
- const un = G("Sun", [
838
+ const un = $("Sun", [
839
839
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
840
840
  ["path", { d: "M12 2v2", key: "tus03m" }],
841
841
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -846,11 +846,11 @@ const un = G("Sun", [
846
846
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
847
847
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
848
848
  ]), cn = () => {
849
- const { navigation: t } = me();
849
+ const { navigation: t } = ve();
850
850
  return /* @__PURE__ */ a.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
851
851
  he,
852
852
  {
853
- className: ({ isActive: n }) => vt(
853
+ className: ({ isActive: n }) => _t(
854
854
  "block py-3.5 font-medium -mb-px border-b-2",
855
855
  n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
856
856
  ),
@@ -858,13 +858,13 @@ const un = G("Sun", [
858
858
  children: e.label
859
859
  }
860
860
  ) }, e.label)) }) });
861
- }, Ze = We(function() {
862
- const [e, n] = mt(), { isLoggedIn: r, email: s } = ve(), { login: o, logout: p, meta: v } = me(), E = e ? an : un;
861
+ }, Ze = Fe(function() {
862
+ const [e, n] = Et(), { isLoggedIn: r, email: s } = me(), { login: o, logout: p, meta: m } = ve(), E = e ? an : un;
863
863
  return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
864
864
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
865
865
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
866
- (v == null ? void 0 : v.logo) && /* @__PURE__ */ a.jsx("img", { src: v.logo, alt: "My Dev Portal", className: "h-10" }),
867
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: v == null ? void 0 : v.headerTitle })
866
+ (m == null ? void 0 : m.logo) && /* @__PURE__ */ a.jsx("img", { src: m.logo, alt: "My Dev Portal", className: "h-10" }),
867
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: m == null ? void 0 : m.headerTitle })
868
868
  ] }),
869
869
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
870
870
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ a.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
@@ -908,9 +908,9 @@ const un = G("Sun", [
908
908
  ] }) });
909
909
  }), et = {
910
910
  Header: Ze
911
- }, ln = Rt(et), dn = ln.Provider, hn = () => {
912
- const t = B(), { setActiveAnchor: e } = ge();
913
- K(() => {
911
+ }, ln = xt(et), dn = ln.Provider, hn = () => {
912
+ const t = K(), { setActiveAnchor: e } = ge();
913
+ G(() => {
914
914
  if (!t.hash) return;
915
915
  const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
916
916
  if (r) {
@@ -920,14 +920,14 @@ const un = G("Sun", [
920
920
  return;
921
921
  }
922
922
  const s = new MutationObserver((o, p) => {
923
- const v = document.getElementById(decodeURIComponent(n));
924
- v && (v.scrollIntoView(), requestIdleCallback(() => e(n)), p.disconnect());
923
+ const m = document.getElementById(decodeURIComponent(n));
924
+ m && (m.scrollIntoView(), requestIdleCallback(() => e(n)), p.disconnect());
925
925
  });
926
926
  return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
927
927
  }, [t.hash, e]);
928
928
  }, fn = () => {
929
- const t = B(), e = ne(t.pathname);
930
- K(() => {
929
+ const t = K(), e = ne(t.pathname);
930
+ G(() => {
931
931
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
932
932
  }, [t.pathname]);
933
933
  }, tt = ({
@@ -935,11 +935,11 @@ const un = G("Sun", [
935
935
  defaultOpen: e,
936
936
  path: n
937
937
  }) => {
938
- const [r, s] = Lt(e), o = B(), p = ne(o.pathname);
939
- return K(() => {
938
+ const [r, s] = St(e), o = K(), p = ne(o.pathname);
939
+ return G(() => {
940
940
  !r && p.current !== o.pathname && s(ye(t, o.pathname, n)), p.current = o.pathname;
941
941
  }, [r, t, n, o.pathname]), [r, s];
942
- }, Z = xt(
942
+ }, Z = Pt(
943
943
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
944
944
  {
945
945
  variants: {
@@ -960,12 +960,12 @@ const un = G("Sun", [
960
960
  currentTopNavItem: r,
961
961
  basePath: s = ""
962
962
  }) => {
963
- const o = fe(e) ? Fe(s, e.path) : "", p = B(), [v, E] = tt({
963
+ const o = fe(e) ? Be(s, e.path) : "", p = K(), [m, E] = tt({
964
964
  item: e,
965
965
  path: o,
966
966
  defaultOpen: () => ye(e, p.pathname, o)
967
967
  });
968
- if (gt(e)) {
968
+ if (wt(e)) {
969
969
  const u = te(
970
970
  "flex items-center gap-2",
971
971
  Z({
@@ -1000,14 +1000,14 @@ const un = G("Sun", [
1000
1000
  )
1001
1001
  ] });
1002
1002
  return /* @__PURE__ */ a.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ a.jsxs(
1003
- Ke,
1003
+ ze,
1004
1004
  {
1005
- open: v,
1005
+ open: m,
1006
1006
  onOpenChange: () => E((u) => !u),
1007
1007
  className: "flex flex-col",
1008
1008
  children: [
1009
1009
  /* @__PURE__ */ a.jsx(
1010
- Be,
1010
+ We,
1011
1011
  {
1012
1012
  className: te(
1013
1013
  "group text-start",
@@ -1016,7 +1016,7 @@ const un = G("Sun", [
1016
1016
  children: x
1017
1017
  }
1018
1018
  ),
1019
- /* @__PURE__ */ a.jsx(ze, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((u) => /* @__PURE__ */ a.jsx(
1019
+ /* @__PURE__ */ a.jsx(Ue, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((u) => /* @__PURE__ */ a.jsx(
1020
1020
  nt,
1021
1021
  {
1022
1022
  category: t,
@@ -1030,7 +1030,7 @@ const un = G("Sun", [
1030
1030
  ]
1031
1031
  }
1032
1032
  ) : e.path.startsWith("#") ? /* @__PURE__ */ a.jsx(
1033
- yt,
1033
+ jt,
1034
1034
  {
1035
1035
  to: e.path,
1036
1036
  [pn]: e.path,
@@ -1048,21 +1048,21 @@ const un = G("Sun", [
1048
1048
  children: x
1049
1049
  }
1050
1050
  ) });
1051
- }, vn = ({
1051
+ }, mn = ({
1052
1052
  category: t
1053
1053
  }) => {
1054
- const { activeAnchor: e } = ge(), n = St(), r = B(), s = t.collapsible ?? !0, [o, p] = tt({
1054
+ const { activeAnchor: e } = ge(), n = pt(), r = K(), s = t.collapsible ?? !0, [o, p] = tt({
1055
1055
  item: t,
1056
1056
  path: (n == null ? void 0 : n.path) ?? "",
1057
1057
  defaultOpen: () => !s || t.expanded || ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
1058
1058
  });
1059
1059
  return /* @__PURE__ */ a.jsxs(
1060
- Ke,
1060
+ ze,
1061
1061
  {
1062
1062
  open: o,
1063
- onOpenChange: () => p((v) => !v),
1063
+ onOpenChange: () => p((m) => !m),
1064
1064
  children: [
1065
- t.label.length > 0 ? /* @__PURE__ */ a.jsx(Be, { asChild: s, disabled: !s, children: /* @__PURE__ */ a.jsxs(
1065
+ t.label.length > 0 ? /* @__PURE__ */ a.jsx(We, { asChild: s, disabled: !s, children: /* @__PURE__ */ a.jsxs(
1066
1066
  "h5",
1067
1067
  {
1068
1068
  className: te(
@@ -1081,22 +1081,22 @@ const un = G("Sun", [
1081
1081
  ]
1082
1082
  }
1083
1083
  ) }) : "Endpoints",
1084
- /* @__PURE__ */ a.jsx(ze, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ a.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((v) => /* @__PURE__ */ a.jsx(
1084
+ /* @__PURE__ */ a.jsx(Ue, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ a.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((m) => /* @__PURE__ */ a.jsx(
1085
1085
  nt,
1086
1086
  {
1087
1087
  category: t,
1088
- item: v,
1088
+ item: m,
1089
1089
  activeAnchor: e,
1090
1090
  currentTopNavItem: n,
1091
- basePath: Fe(n == null ? void 0 : n.path, t.path)
1091
+ basePath: Be(n == null ? void 0 : n.path, t.path)
1092
1092
  },
1093
- fe(v) ? v.path + v.label : v.href
1093
+ fe(m) ? m.path + m.label : m.href
1094
1094
  )) }) })
1095
1095
  ]
1096
1096
  },
1097
1097
  t.label
1098
1098
  );
1099
- }, mn = kt(function({ children: e, className: n, pushMainContent: r }, s) {
1099
+ }, vn = bt(function({ children: e, className: n, pushMainContent: r }, s) {
1100
1100
  return /* @__PURE__ */ a.jsx(
1101
1101
  "nav",
1102
1102
  {
@@ -1110,34 +1110,32 @@ const un = G("Sun", [
1110
1110
  }
1111
1111
  );
1112
1112
  }), gn = () => {
1113
- const t = ne(null), e = bt();
1113
+ const t = ne(null), e = mt();
1114
1114
  return /* @__PURE__ */ a.jsx(
1115
- mn,
1115
+ vn,
1116
1116
  {
1117
1117
  ref: t,
1118
1118
  pushMainContent: e.data.items.length > 0,
1119
- children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(vn, { category: n }, n.label))
1119
+ children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(mn, { category: n }, n.label))
1120
1120
  }
1121
1121
  );
1122
1122
  }, ke = ({ children: t }) => {
1123
- const e = B(), { setActiveAnchor: n } = ge(), { meta: r, handleAuthenticationResponse: s } = me();
1124
- K(() => {
1125
- s(e);
1126
- }, [s, e]), hn(), fn();
1127
- const o = ne(e.pathname);
1128
- return K(() => {
1129
- e.pathname !== o.current && n(""), o.current = e.pathname;
1123
+ const e = K(), { setActiveAnchor: n } = ge(), { meta: r } = ve();
1124
+ hn(), fn();
1125
+ const s = ne(e.pathname);
1126
+ return G(() => {
1127
+ e.pathname !== s.current && n(""), s.current = e.pathname;
1130
1128
  }, [e.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1131
- /* @__PURE__ */ a.jsxs(Ot, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
1129
+ /* @__PURE__ */ a.jsxs(At, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
1132
1130
  /* @__PURE__ */ a.jsx("title", { children: "Home" }),
1133
1131
  (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
1134
1132
  (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
1135
1133
  ] }),
1136
1134
  /* @__PURE__ */ a.jsx(Ze, {}),
1137
1135
  /* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
1138
- Ue,
1136
+ Ke,
1139
1137
  {
1140
- fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(_t, {}) }),
1138
+ fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(Dt, {}) }),
1141
1139
  children: [
1142
1140
  /* @__PURE__ */ a.jsx(gn, {}),
1143
1141
  /* @__PURE__ */ a.jsx(
@@ -1147,7 +1145,7 @@ const un = G("Sun", [
1147
1145
  lg:overflow-visible
1148
1146
  lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
1149
1147
  lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
1150
- children: t ?? /* @__PURE__ */ a.jsx(Et, {})
1148
+ children: t ?? /* @__PURE__ */ a.jsx(vt, {})
1151
1149
  }
1152
1150
  )
1153
1151
  ]
@@ -1160,7 +1158,7 @@ function yn({ plugins: t }) {
1160
1158
  const n = (t ?? []).flatMap(
1161
1159
  (r) => Xe(r) ? r.getRoutes() : []
1162
1160
  );
1163
- return wt([
1161
+ return Nt([
1164
1162
  {
1165
1163
  path: "/",
1166
1164
  element: /* @__PURE__ */ a.jsx(ke, {}),
@@ -1169,29 +1167,37 @@ function yn({ plugins: t }) {
1169
1167
  }
1170
1168
  ]);
1171
1169
  }, [t]);
1172
- return /* @__PURE__ */ a.jsx(jt, { router: e });
1170
+ return /* @__PURE__ */ a.jsx(Ct, { router: e });
1173
1171
  }
1174
1172
  const xn = (t) => {
1175
1173
  const e = ee(
1176
1174
  () => ({ ...et, ...t.overrides }),
1177
1175
  [t.overrides]
1178
1176
  ), n = ee(
1179
- () => ({ ...Pt, ...t.mdxComponents }),
1177
+ () => ({ ...Mt, ...t.mdxComponents }),
1180
1178
  [t.mdxComponents]
1181
1179
  ), r = ee(() => new rn(t), [t]);
1182
- return K(() => {
1180
+ return G(() => {
1183
1181
  r.initialize();
1184
- }, [r]), /* @__PURE__ */ a.jsx(At, { client: Ye, children: /* @__PURE__ */ a.jsx(Dt, { children: /* @__PURE__ */ a.jsx(Nt, { value: r, children: /* @__PURE__ */ a.jsx(Ct, { components: n, children: /* @__PURE__ */ a.jsx(Mt, { children: /* @__PURE__ */ a.jsx(dn, { value: e, children: /* @__PURE__ */ a.jsx(Tt, { children: /* @__PURE__ */ a.jsx(
1185
- Ue,
1182
+ }, [r]), /* @__PURE__ */ a.jsx(gt, { client: Ye, children: /* @__PURE__ */ a.jsx(Tt, { children: /* @__PURE__ */ a.jsx(yt, { value: r, children: /* @__PURE__ */ a.jsx(Lt, { components: n, children: /* @__PURE__ */ a.jsx(Rt, { children: /* @__PURE__ */ a.jsx(dn, { value: e, children: /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(
1183
+ Ke,
1186
1184
  {
1187
1185
  fallback: /* @__PURE__ */ a.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
1188
- children: /* @__PURE__ */ a.jsx(yn, { plugins: t.plugins })
1186
+ children: /* @__PURE__ */ a.jsx(
1187
+ yn,
1188
+ {
1189
+ plugins: [
1190
+ ...t.plugins ?? [],
1191
+ ...t.authentication ? [t.authentication] : []
1192
+ ]
1193
+ }
1194
+ )
1189
1195
  }
1190
1196
  ) }) }) }) }) }) }) });
1191
- }, Sn = We(xn);
1197
+ }, Sn = Fe(xn);
1192
1198
  Sn.displayName = "DevPortal";
1193
1199
  export {
1194
1200
  Sn as DevPortal,
1195
- jn as Link,
1196
- Pn as useMDXComponents
1201
+ Pn as Link,
1202
+ An as useMDXComponents
1197
1203
  };