zudoku 0.3.0-dev.32 → 0.3.0-dev.34

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 (40) hide show
  1. package/dist/app/entry.client.d.ts +0 -2
  2. package/dist/app/entry.client.js +17 -8
  3. package/dist/app/entry.client.js.map +1 -1
  4. package/dist/app/entry.server.js +2 -10
  5. package/dist/app/entry.server.js.map +1 -1
  6. package/dist/lib/components/DevPortal.js +3 -9
  7. package/dist/lib/components/DevPortal.js.map +1 -1
  8. package/dist/lib/components/Layout.js +1 -4
  9. package/dist/lib/components/Layout.js.map +1 -1
  10. package/dist/lib/plugins/markdown/MdxPage.js +1 -3
  11. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  12. package/dist/lib/plugins/openapi/playground/QueryParams.js +2 -1
  13. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  14. package/dist/vite/build.js +11 -5
  15. package/dist/vite/build.js.map +1 -1
  16. package/dist/vite/config.js +3 -2
  17. package/dist/vite/config.js.map +1 -1
  18. package/lib/{MdxPage-Z3HKNTrj.js → MdxPage-BRKQDcVW.js} +87 -88
  19. package/lib/{MdxPage-Z3HKNTrj.js.map → MdxPage-BRKQDcVW.js.map} +1 -1
  20. package/lib/{OperationList-KoITgfDT.js → OperationList-DfkWNe8Y.js} +7 -3
  21. package/lib/{OperationList-KoITgfDT.js.map → OperationList-DfkWNe8Y.js.map} +1 -1
  22. package/lib/{index-BoWzKb_9.js → index-BjSy8IQO.js} +2 -2
  23. package/lib/{index-BoWzKb_9.js.map → index-BjSy8IQO.js.map} +1 -1
  24. package/lib/{index-BdWBDosx.js → index-Brq2ztwd.js} +2 -2
  25. package/lib/{index-BdWBDosx.js.map → index-Brq2ztwd.js.map} +1 -1
  26. package/lib/index-QzXzw_ra.js +24 -0
  27. package/lib/index-QzXzw_ra.js.map +1 -0
  28. package/lib/zudoku.components.js +147 -156
  29. package/lib/zudoku.components.js.map +1 -1
  30. package/lib/zudoku.plugin-markdown.js +1 -1
  31. package/lib/zudoku.plugin-openapi.js +1 -1
  32. package/package.json +8 -9
  33. package/src/app/entry.client.tsx +28 -18
  34. package/src/app/entry.server.tsx +2 -17
  35. package/src/lib/components/DevPortal.tsx +1 -15
  36. package/src/lib/components/Layout.tsx +0 -9
  37. package/src/lib/plugins/markdown/MdxPage.tsx +0 -6
  38. package/src/lib/plugins/openapi/playground/QueryParams.tsx +6 -1
  39. package/lib/index.esm-CPEExBJE.js +0 -694
  40. package/lib/index.esm-CPEExBJE.js.map +0 -1
@@ -3,8 +3,8 @@ var V = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var pe = (t, e, s) => e in t ? ye(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var g = (t, e, s) => pe(t, typeof e != "symbol" ? e + "" : e, s), X = (t, e, s) => e.has(t) || V("Cannot " + s);
7
- var n = (t, e, s) => (X(t, e, "read from private field"), s ? s.call(t) : e.get(t)), y = (t, e, s) => e.has(t) ? V("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), c = (t, e, s, r) => (X(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s);
6
+ var m = (t, e, s) => pe(t, typeof e != "symbol" ? e + "" : e, s), X = (t, e, s) => e.has(t) || V("Cannot " + s);
7
+ var n = (t, e, s) => (X(t, e, "read from private field"), s ? s.call(t) : e.get(t)), g = (t, e, s) => e.has(t) ? V("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), c = (t, e, s, r) => (X(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s);
8
8
  var q = (t, e, s, r) => ({
9
9
  set _(a) {
10
10
  c(t, e, a, s);
@@ -15,19 +15,19 @@ var q = (t, e, s, r) => ({
15
15
  });
16
16
  import { c as ae, N as ve, a as be, u as Pe, M as xe, T as Me, V as Ce, C as we, L as Qe } from "./MdxComponents-Ev_hBHb2.js";
17
17
  import { j as i } from "./jsx-runtime-CM0TzjGp.js";
18
- import { S as ne, h as ie, Q as Oe, n as m, m as G, a as J, b, e as Ee, c as ke, d as De, f as je, o as W, r as Y, g as Ae, i as Z, p as $, s as Ne, u as oe, j as qe, D as Fe } from "./DevPortalProvider-BlxLX6GG.js";
19
- import { createContext as ue, Component as Te, createElement as _, isValidElement as Se, memo as le, useMemo as S, useEffect as Ie, Fragment as He } from "react";
20
- import { H as Ke, M as Be, u as ze } from "./index.esm-CPEExBJE.js";
21
- import { c as Le } from "./state-Ds_OxRHP.js";
22
- import { M as Re } from "./mutation-91kw0lHb.js";
23
- import { E as Ue, u as Ve } from "./hook-CTmJ6CWq.js";
18
+ import { S as ne, h as ie, Q as Oe, n as f, m as G, a as J, b, e as Ee, c as ke, d as De, f as je, o as W, r as Y, g as Ae, i as Z, p as $, s as Ne, u as oe, j as qe, D as Fe } from "./DevPortalProvider-BlxLX6GG.js";
19
+ import { createContext as ue, Component as Te, createElement as _, isValidElement as Se, memo as le, useMemo as S, useEffect as Ie } from "react";
20
+ import { c as Ke } from "./state-Ds_OxRHP.js";
21
+ import { M as Be } from "./mutation-91kw0lHb.js";
22
+ import { E as He, u as ze } from "./hook-CTmJ6CWq.js";
23
+ import { M as Le, u as Re } from "./index-QzXzw_ra.js";
24
24
  /**
25
25
  * @license lucide-react v0.378.0 - ISC
26
26
  *
27
27
  * This source code is licensed under the ISC license.
28
28
  * See the LICENSE file in the root directory of this source tree.
29
29
  */
30
- const Xe = ae("MoonStar", [
30
+ const Ue = ae("MoonStar", [
31
31
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
32
32
  ["path", { d: "M20 3v4", key: "1olli1" }],
33
33
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -38,7 +38,7 @@ const Xe = ae("MoonStar", [
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
40
  */
41
- const Ge = ae("Sun", [
41
+ const Ve = ae("Sun", [
42
42
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
43
43
  ["path", { d: "M12 2v2", key: "tus03m" }],
44
44
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -49,11 +49,11 @@ const Ge = ae("Sun", [
49
49
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
50
50
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
51
51
  ]);
52
- var v, te, Je = (te = class extends ne {
52
+ var p, te, Xe = (te = class extends ne {
53
53
  constructor(e = {}) {
54
54
  super();
55
- y(this, v);
56
- this.config = e, c(this, v, /* @__PURE__ */ new Map());
55
+ g(this, p);
56
+ this.config = e, c(this, p, /* @__PURE__ */ new Map());
57
57
  }
58
58
  build(e, s, r) {
59
59
  const a = s.queryKey, o = s.queryHash ?? ie(a, s);
@@ -68,27 +68,27 @@ var v, te, Je = (te = class extends ne {
68
68
  }), this.add(u)), u;
69
69
  }
70
70
  add(e) {
71
- n(this, v).has(e.queryHash) || (n(this, v).set(e.queryHash, e), this.notify({
71
+ n(this, p).has(e.queryHash) || (n(this, p).set(e.queryHash, e), this.notify({
72
72
  type: "added",
73
73
  query: e
74
74
  }));
75
75
  }
76
76
  remove(e) {
77
- const s = n(this, v).get(e.queryHash);
78
- s && (e.destroy(), s === e && n(this, v).delete(e.queryHash), this.notify({ type: "removed", query: e }));
77
+ const s = n(this, p).get(e.queryHash);
78
+ s && (e.destroy(), s === e && n(this, p).delete(e.queryHash), this.notify({ type: "removed", query: e }));
79
79
  }
80
80
  clear() {
81
- m.batch(() => {
81
+ f.batch(() => {
82
82
  this.getAll().forEach((e) => {
83
83
  this.remove(e);
84
84
  });
85
85
  });
86
86
  }
87
87
  get(e) {
88
- return n(this, v).get(e);
88
+ return n(this, p).get(e);
89
89
  }
90
90
  getAll() {
91
- return [...n(this, v).values()];
91
+ return [...n(this, p).values()];
92
92
  }
93
93
  find(e) {
94
94
  const s = { exact: !0, ...e };
@@ -101,35 +101,35 @@ var v, te, Je = (te = class extends ne {
101
101
  return Object.keys(e).length > 0 ? s.filter((r) => G(e, r)) : s;
102
102
  }
103
103
  notify(e) {
104
- m.batch(() => {
104
+ f.batch(() => {
105
105
  this.listeners.forEach((s) => {
106
106
  s(e);
107
107
  });
108
108
  });
109
109
  }
110
110
  onFocus() {
111
- m.batch(() => {
111
+ f.batch(() => {
112
112
  this.getAll().forEach((e) => {
113
113
  e.onFocus();
114
114
  });
115
115
  });
116
116
  }
117
117
  onOnline() {
118
- m.batch(() => {
118
+ f.batch(() => {
119
119
  this.getAll().forEach((e) => {
120
120
  e.onOnline();
121
121
  });
122
122
  });
123
123
  }
124
- }, v = new WeakMap(), te), f, A, se, We = (se = class extends ne {
124
+ }, p = new WeakMap(), te), d, A, se, Ge = (se = class extends ne {
125
125
  constructor(e = {}) {
126
126
  super();
127
- y(this, f);
128
- y(this, A);
129
- this.config = e, c(this, f, /* @__PURE__ */ new Map()), c(this, A, Date.now());
127
+ g(this, d);
128
+ g(this, A);
129
+ this.config = e, c(this, d, /* @__PURE__ */ new Map()), c(this, A, Date.now());
130
130
  }
131
131
  build(e, s, r) {
132
- const a = new Re({
132
+ const a = new Be({
133
133
  mutationCache: this,
134
134
  mutationId: ++q(this, A)._,
135
135
  options: e.defaultMutationOptions(s),
@@ -138,37 +138,37 @@ var v, te, Je = (te = class extends ne {
138
138
  return this.add(a), a;
139
139
  }
140
140
  add(e) {
141
- const s = F(e), r = n(this, f).get(s) ?? [];
142
- r.push(e), n(this, f).set(s, r), this.notify({ type: "added", mutation: e });
141
+ const s = F(e), r = n(this, d).get(s) ?? [];
142
+ r.push(e), n(this, d).set(s, r), this.notify({ type: "added", mutation: e });
143
143
  }
144
144
  remove(e) {
145
145
  var r;
146
146
  const s = F(e);
147
- if (n(this, f).has(s)) {
148
- const a = (r = n(this, f).get(s)) == null ? void 0 : r.filter((o) => o !== e);
149
- a && (a.length === 0 ? n(this, f).delete(s) : n(this, f).set(s, a));
147
+ if (n(this, d).has(s)) {
148
+ const a = (r = n(this, d).get(s)) == null ? void 0 : r.filter((o) => o !== e);
149
+ a && (a.length === 0 ? n(this, d).delete(s) : n(this, d).set(s, a));
150
150
  }
151
151
  this.notify({ type: "removed", mutation: e });
152
152
  }
153
153
  canRun(e) {
154
154
  var r;
155
- const s = (r = n(this, f).get(F(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
155
+ const s = (r = n(this, d).get(F(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
156
156
  return !s || s === e;
157
157
  }
158
158
  runNext(e) {
159
159
  var r;
160
- const s = (r = n(this, f).get(F(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
160
+ const s = (r = n(this, d).get(F(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
161
161
  return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
162
162
  }
163
163
  clear() {
164
- m.batch(() => {
164
+ f.batch(() => {
165
165
  this.getAll().forEach((e) => {
166
166
  this.remove(e);
167
167
  });
168
168
  });
169
169
  }
170
170
  getAll() {
171
- return [...n(this, f).values()].flat();
171
+ return [...n(this, d).values()].flat();
172
172
  }
173
173
  find(e) {
174
174
  const s = { exact: !0, ...e };
@@ -180,7 +180,7 @@ var v, te, Je = (te = class extends ne {
180
180
  return this.getAll().filter((s) => J(e, s));
181
181
  }
182
182
  notify(e) {
183
- m.batch(() => {
183
+ f.batch(() => {
184
184
  this.listeners.forEach((s) => {
185
185
  s(e);
186
186
  });
@@ -188,70 +188,70 @@ var v, te, Je = (te = class extends ne {
188
188
  }
189
189
  resumePausedMutations() {
190
190
  const e = this.getAll().filter((s) => s.state.isPaused);
191
- return m.batch(
191
+ return f.batch(
192
192
  () => Promise.all(
193
193
  e.map((s) => s.continue().catch(b))
194
194
  )
195
195
  );
196
196
  }
197
- }, f = new WeakMap(), A = new WeakMap(), se);
197
+ }, d = new WeakMap(), A = new WeakMap(), se);
198
198
  function F(t) {
199
199
  var e;
200
200
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
201
201
  }
202
- function Ye(t) {
202
+ function Je(t) {
203
203
  return {
204
204
  onFetch: (e, s) => {
205
205
  const r = async () => {
206
- var H, K, B, z, L;
207
- const a = e.options, o = (B = (K = (H = e.fetchOptions) == null ? void 0 : H.meta) == null ? void 0 : K.fetchMore) == null ? void 0 : B.direction, u = ((z = e.state.data) == null ? void 0 : z.pages) || [], d = ((L = e.state.data) == null ? void 0 : L.pageParams) || [], h = { pages: [], pageParams: [] };
208
- let P = !1;
209
- const fe = (p) => {
210
- Object.defineProperty(p, "signal", {
206
+ var K, B, H, z, L;
207
+ const a = e.options, o = (H = (B = (K = e.fetchOptions) == null ? void 0 : K.meta) == null ? void 0 : B.fetchMore) == null ? void 0 : H.direction, u = ((z = e.state.data) == null ? void 0 : z.pages) || [], v = ((L = e.state.data) == null ? void 0 : L.pageParams) || [], h = { pages: [], pageParams: [] };
208
+ let j = !1;
209
+ const fe = (y) => {
210
+ Object.defineProperty(y, "signal", {
211
211
  enumerable: !0,
212
- get: () => (e.signal.aborted ? P = !0 : e.signal.addEventListener("abort", () => {
213
- P = !0;
212
+ get: () => (e.signal.aborted ? j = !0 : e.signal.addEventListener("abort", () => {
213
+ j = !0;
214
214
  }), e.signal)
215
215
  });
216
- }, me = Ee(e.options, e.fetchOptions), T = async (p, x, Q) => {
217
- if (P)
216
+ }, me = Ee(e.options, e.fetchOptions), T = async (y, P, w) => {
217
+ if (j)
218
218
  return Promise.reject();
219
- if (x == null && p.pages.length)
220
- return Promise.resolve(p);
219
+ if (P == null && y.pages.length)
220
+ return Promise.resolve(y);
221
221
  const N = {
222
222
  queryKey: e.queryKey,
223
- pageParam: x,
224
- direction: Q ? "backward" : "forward",
223
+ pageParam: P,
224
+ direction: w ? "backward" : "forward",
225
225
  meta: e.options.meta
226
226
  };
227
227
  fe(N);
228
228
  const ge = await me(
229
229
  N
230
- ), { maxPages: R } = e.options, U = Q ? ke : De;
230
+ ), { maxPages: R } = e.options, U = w ? ke : De;
231
231
  return {
232
- pages: U(p.pages, ge, R),
233
- pageParams: U(p.pageParams, x, R)
232
+ pages: U(y.pages, ge, R),
233
+ pageParams: U(y.pageParams, P, R)
234
234
  };
235
235
  };
236
- let O;
236
+ let Q;
237
237
  if (o && u.length) {
238
- const p = o === "backward", x = p ? Ze : ee, Q = {
238
+ const y = o === "backward", P = y ? We : ee, w = {
239
239
  pages: u,
240
- pageParams: d
241
- }, N = x(a, Q);
242
- O = await T(Q, N, p);
240
+ pageParams: v
241
+ }, N = P(a, w);
242
+ Q = await T(w, N, y);
243
243
  } else {
244
- O = await T(
244
+ Q = await T(
245
245
  h,
246
- d[0] ?? a.initialPageParam
246
+ v[0] ?? a.initialPageParam
247
247
  );
248
- const p = t ?? u.length;
249
- for (let x = 1; x < p; x++) {
250
- const Q = ee(a, O);
251
- O = await T(O, Q);
248
+ const y = t ?? u.length;
249
+ for (let P = 1; P < y; P++) {
250
+ const w = ee(a, Q);
251
+ Q = await T(Q, w);
252
252
  }
253
253
  }
254
- return O;
254
+ return Q;
255
255
  };
256
256
  e.options.persister ? e.fetchFn = () => {
257
257
  var a, o;
@@ -278,7 +278,7 @@ function ee(t, { pages: e, pageParams: s }) {
278
278
  s
279
279
  );
280
280
  }
281
- function Ze(t, { pages: e, pageParams: s }) {
281
+ function We(t, { pages: e, pageParams: s }) {
282
282
  var r;
283
283
  return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
284
284
  t,
@@ -288,34 +288,34 @@ function Ze(t, { pages: e, pageParams: s }) {
288
288
  s
289
289
  );
290
290
  }
291
- var l, M, C, E, k, w, D, j, re, $e = (re = class {
291
+ var l, x, M, O, E, C, k, D, re, Ye = (re = class {
292
292
  constructor(t = {}) {
293
- y(this, l);
294
- y(this, M);
295
- y(this, C);
296
- y(this, E);
297
- y(this, k);
298
- y(this, w);
299
- y(this, D);
300
- y(this, j);
301
- c(this, l, t.queryCache || new Je()), c(this, M, t.mutationCache || new We()), c(this, C, t.defaultOptions || {}), c(this, E, /* @__PURE__ */ new Map()), c(this, k, /* @__PURE__ */ new Map()), c(this, w, 0);
293
+ g(this, l);
294
+ g(this, x);
295
+ g(this, M);
296
+ g(this, O);
297
+ g(this, E);
298
+ g(this, C);
299
+ g(this, k);
300
+ g(this, D);
301
+ c(this, l, t.queryCache || new Xe()), c(this, x, t.mutationCache || new Ge()), c(this, M, t.defaultOptions || {}), c(this, O, /* @__PURE__ */ new Map()), c(this, E, /* @__PURE__ */ new Map()), c(this, C, 0);
302
302
  }
303
303
  mount() {
304
- q(this, w)._++, n(this, w) === 1 && (c(this, D, je.subscribe(async (t) => {
304
+ q(this, C)._++, n(this, C) === 1 && (c(this, k, je.subscribe(async (t) => {
305
305
  t && (await this.resumePausedMutations(), n(this, l).onFocus());
306
- })), c(this, j, W.subscribe(async (t) => {
306
+ })), c(this, D, W.subscribe(async (t) => {
307
307
  t && (await this.resumePausedMutations(), n(this, l).onOnline());
308
308
  })));
309
309
  }
310
310
  unmount() {
311
311
  var t, e;
312
- q(this, w)._--, n(this, w) === 0 && ((t = n(this, D)) == null || t.call(this), c(this, D, void 0), (e = n(this, j)) == null || e.call(this), c(this, j, void 0));
312
+ q(this, C)._--, n(this, C) === 0 && ((t = n(this, k)) == null || t.call(this), c(this, k, void 0), (e = n(this, D)) == null || e.call(this), c(this, D, void 0));
313
313
  }
314
314
  isFetching(t) {
315
315
  return n(this, l).findAll({ ...t, fetchStatus: "fetching" }).length;
316
316
  }
317
317
  isMutating(t) {
318
- return n(this, M).findAll({ ...t, status: "pending" }).length;
318
+ return n(this, x).findAll({ ...t, status: "pending" }).length;
319
319
  }
320
320
  getQueryData(t) {
321
321
  var s;
@@ -345,7 +345,7 @@ var l, M, C, E, k, w, D, j, re, $e = (re = class {
345
345
  return n(this, l).build(this, r).setData(u, { ...s, manual: !0 });
346
346
  }
347
347
  setQueriesData(t, e, s) {
348
- return m.batch(
348
+ return f.batch(
349
349
  () => n(this, l).findAll(t).map(({ queryKey: r }) => [
350
350
  r,
351
351
  this.setQueryData(r, e, s)
@@ -359,7 +359,7 @@ var l, M, C, E, k, w, D, j, re, $e = (re = class {
359
359
  }
360
360
  removeQueries(t) {
361
361
  const e = n(this, l);
362
- m.batch(() => {
362
+ f.batch(() => {
363
363
  e.findAll(t).forEach((s) => {
364
364
  e.remove(s);
365
365
  });
@@ -370,18 +370,18 @@ var l, M, C, E, k, w, D, j, re, $e = (re = class {
370
370
  type: "active",
371
371
  ...t
372
372
  };
373
- return m.batch(() => (s.findAll(t).forEach((a) => {
373
+ return f.batch(() => (s.findAll(t).forEach((a) => {
374
374
  a.reset();
375
375
  }), this.refetchQueries(r, e)));
376
376
  }
377
377
  cancelQueries(t = {}, e = {}) {
378
- const s = { revert: !0, ...e }, r = m.batch(
378
+ const s = { revert: !0, ...e }, r = f.batch(
379
379
  () => n(this, l).findAll(t).map((a) => a.cancel(s))
380
380
  );
381
381
  return Promise.all(r).then(b).catch(b);
382
382
  }
383
383
  invalidateQueries(t = {}, e = {}) {
384
- return m.batch(() => {
384
+ return f.batch(() => {
385
385
  if (n(this, l).findAll(t).forEach((r) => {
386
386
  r.invalidate();
387
387
  }), t.refetchType === "none")
@@ -397,7 +397,7 @@ var l, M, C, E, k, w, D, j, re, $e = (re = class {
397
397
  const s = {
398
398
  ...e,
399
399
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
400
- }, r = m.batch(
400
+ }, r = f.batch(
401
401
  () => n(this, l).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
402
402
  let o = a.fetch(void 0, s);
403
403
  return s.throwOnError || (o = o.catch(b)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
@@ -417,47 +417,47 @@ var l, M, C, E, k, w, D, j, re, $e = (re = class {
417
417
  return this.fetchQuery(t).then(b).catch(b);
418
418
  }
419
419
  fetchInfiniteQuery(t) {
420
- return t.behavior = Ye(t.pages), this.fetchQuery(t);
420
+ return t.behavior = Je(t.pages), this.fetchQuery(t);
421
421
  }
422
422
  prefetchInfiniteQuery(t) {
423
423
  return this.fetchInfiniteQuery(t).then(b).catch(b);
424
424
  }
425
425
  resumePausedMutations() {
426
- return W.isOnline() ? n(this, M).resumePausedMutations() : Promise.resolve();
426
+ return W.isOnline() ? n(this, x).resumePausedMutations() : Promise.resolve();
427
427
  }
428
428
  getQueryCache() {
429
429
  return n(this, l);
430
430
  }
431
431
  getMutationCache() {
432
- return n(this, M);
432
+ return n(this, x);
433
433
  }
434
434
  getDefaultOptions() {
435
- return n(this, C);
435
+ return n(this, M);
436
436
  }
437
437
  setDefaultOptions(t) {
438
- c(this, C, t);
438
+ c(this, M, t);
439
439
  }
440
440
  setQueryDefaults(t, e) {
441
- n(this, E).set(Z(t), {
441
+ n(this, O).set(Z(t), {
442
442
  queryKey: t,
443
443
  defaultOptions: e
444
444
  });
445
445
  }
446
446
  getQueryDefaults(t) {
447
- const e = [...n(this, E).values()];
447
+ const e = [...n(this, O).values()];
448
448
  let s = {};
449
449
  return e.forEach((r) => {
450
450
  $(t, r.queryKey) && (s = { ...s, ...r.defaultOptions });
451
451
  }), s;
452
452
  }
453
453
  setMutationDefaults(t, e) {
454
- n(this, k).set(Z(t), {
454
+ n(this, E).set(Z(t), {
455
455
  mutationKey: t,
456
456
  defaultOptions: e
457
457
  });
458
458
  }
459
459
  getMutationDefaults(t) {
460
- const e = [...n(this, k).values()];
460
+ const e = [...n(this, E).values()];
461
461
  let s = {};
462
462
  return e.forEach((r) => {
463
463
  $(t, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
@@ -467,7 +467,7 @@ var l, M, C, E, k, w, D, j, re, $e = (re = class {
467
467
  if (t._defaulted)
468
468
  return t;
469
469
  const e = {
470
- ...n(this, C).queries,
470
+ ...n(this, M).queries,
471
471
  ...this.getQueryDefaults(t.queryKey),
472
472
  ...t,
473
473
  _defaulted: !0
@@ -479,21 +479,21 @@ var l, M, C, E, k, w, D, j, re, $e = (re = class {
479
479
  }
480
480
  defaultMutationOptions(t) {
481
481
  return t != null && t._defaulted ? t : {
482
- ...n(this, C).mutations,
482
+ ...n(this, M).mutations,
483
483
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
484
484
  ...t,
485
485
  _defaulted: !0
486
486
  };
487
487
  }
488
488
  clear() {
489
- n(this, l).clear(), n(this, M).clear();
489
+ n(this, l).clear(), n(this, x).clear();
490
490
  }
491
- }, l = new WeakMap(), M = new WeakMap(), C = new WeakMap(), E = new WeakMap(), k = new WeakMap(), w = new WeakMap(), D = new WeakMap(), j = new WeakMap(), re);
492
- const _e = ue(null), I = {
491
+ }, l = new WeakMap(), x = new WeakMap(), M = new WeakMap(), O = new WeakMap(), E = new WeakMap(), C = new WeakMap(), k = new WeakMap(), D = new WeakMap(), re);
492
+ const Ze = ue(null), I = {
493
493
  didCatch: !1,
494
494
  error: null
495
495
  };
496
- class et extends Te {
496
+ class $e extends Te {
497
497
  constructor(e) {
498
498
  super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = I;
499
499
  }
@@ -526,7 +526,7 @@ class et extends Te {
526
526
  } = this.state, {
527
527
  resetKeys: a
528
528
  } = this.props;
529
- if (r && s.error !== null && tt(e.resetKeys, a)) {
529
+ if (r && s.error !== null && _e(e.resetKeys, a)) {
530
530
  var o, u;
531
531
  (o = (u = this.props).onReset) === null || o === void 0 || o.call(u, {
532
532
  next: a,
@@ -545,59 +545,59 @@ class et extends Te {
545
545
  didCatch: o,
546
546
  error: u
547
547
  } = this.state;
548
- let d = e;
548
+ let v = e;
549
549
  if (o) {
550
550
  const h = {
551
551
  error: u,
552
552
  resetErrorBoundary: this.resetErrorBoundary
553
553
  };
554
554
  if (typeof s == "function")
555
- d = s(h);
555
+ v = s(h);
556
556
  else if (r)
557
- d = _(r, h);
557
+ v = _(r, h);
558
558
  else if (a === null || Se(a))
559
- d = a;
559
+ v = a;
560
560
  else
561
561
  throw u;
562
562
  }
563
- return _(_e.Provider, {
563
+ return _(Ze.Provider, {
564
564
  value: {
565
565
  didCatch: o,
566
566
  error: u,
567
567
  resetErrorBoundary: this.resetErrorBoundary
568
568
  }
569
- }, d);
569
+ }, v);
570
570
  }
571
571
  }
572
- function tt() {
572
+ function _e() {
573
573
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
574
574
  return t.length !== e.length || t.some((s, r) => !Object.is(s, e[r]));
575
575
  }
576
- const st = (t) => "getRoutes" in t && typeof t.getRoutes == "function", rt = (t) => "initialize" in t && typeof t.initialize == "function", at = (t) => "getHead" in t && typeof t.getHead == "function", nt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", ce = new $e(), it = Le(() => ({}));
577
- class ot {
576
+ const et = (t) => "getRoutes" in t && typeof t.getRoutes == "function", tt = (t) => "initialize" in t && typeof t.initialize == "function", st = (t) => "getIdentities" in t && typeof t.getIdentities == "function", ce = new Ye(), rt = Ke(() => ({}));
577
+ class at {
578
578
  constructor(e) {
579
- g(this, "plugins", []);
580
- g(this, "navigationPlugins");
581
- g(this, "navigation");
582
- g(this, "meta");
583
- g(this, "page");
584
- g(this, "authentication");
585
- g(this, "state");
586
- g(this, "initialize", async () => {
579
+ m(this, "plugins", []);
580
+ m(this, "navigationPlugins");
581
+ m(this, "navigation");
582
+ m(this, "meta");
583
+ m(this, "page");
584
+ m(this, "authentication");
585
+ m(this, "state");
586
+ m(this, "initialize", async () => {
587
587
  await Promise.all([
588
- this.plugins.filter(rt).map((e) => {
588
+ this.plugins.filter(tt).map((e) => {
589
589
  var s;
590
590
  return (s = e.initialize) == null ? void 0 : s.call(e, this);
591
591
  })
592
592
  ]);
593
593
  });
594
- g(this, "invalidateCache", async (e) => {
594
+ m(this, "invalidateCache", async (e) => {
595
595
  await ce.invalidateQueries({ queryKey: e });
596
596
  });
597
- g(this, "getApiIdentities", async () => (await Promise.all(
598
- this.plugins.filter(nt).map((s) => s.getIdentities(this))
597
+ m(this, "getApiIdentities", async () => (await Promise.all(
598
+ this.plugins.filter(st).map((s) => s.getIdentities(this))
599
599
  )).flat());
600
- g(this, "getNavigation", async (e) => (await Promise.all(
600
+ m(this, "getNavigation", async (e) => (await Promise.all(
601
601
  this.navigationPlugins.map(
602
602
  async (r) => {
603
603
  var a;
@@ -605,7 +605,7 @@ class ot {
605
605
  }
606
606
  )
607
607
  )).flatMap((r) => r ?? []));
608
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(st), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = it;
608
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(et), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = rt;
609
609
  }
610
610
  async signRequest(e) {
611
611
  if (!this.authentication)
@@ -614,10 +614,10 @@ class ot {
614
614
  return e.headers.set("Authorization", `Bearer ${s}`), e;
615
615
  }
616
616
  }
617
- function ut({ error: t, resetErrorBoundary: e }) {
618
- return /* @__PURE__ */ i.jsx(Ue, { error: t });
617
+ function nt({ error: t, resetErrorBoundary: e }) {
618
+ return /* @__PURE__ */ i.jsx(He, { error: t });
619
619
  }
620
- const lt = () => {
620
+ const it = () => {
621
621
  const { navigation: t } = oe();
622
622
  return t.length <= 1 ? null : /* @__PURE__ */ i.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ i.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx(
623
623
  ve,
@@ -630,8 +630,8 @@ const lt = () => {
630
630
  children: e.label
631
631
  }
632
632
  ) }, e.label)) }) });
633
- }, ct = le(function() {
634
- const [e, s] = Pe(), { isAuthenticated: r, profile: a, isAuthEnabled: o, login: u, logout: d } = Ve(), { page: h } = oe(), P = e ? Xe : Ge;
633
+ }, ot = le(function() {
634
+ const [e, s] = Pe(), { isAuthenticated: r, profile: a, isAuthEnabled: o, login: u, logout: v } = ze(), { page: h } = oe(), j = e ? Ue : Ve;
635
635
  return /* @__PURE__ */ i.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ i.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
636
636
  /* @__PURE__ */ i.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: [
637
637
  /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-3.5", children: [
@@ -645,7 +645,7 @@ const lt = () => {
645
645
  "button",
646
646
  {
647
647
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
648
- onClick: d,
648
+ onClick: v,
649
649
  children: [
650
650
  "Logout ",
651
651
  a != null && a.email ? `(${a.email})` : null
@@ -664,46 +664,37 @@ const lt = () => {
664
664
  {
665
665
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
666
666
  onClick: s,
667
- children: /* @__PURE__ */ i.jsx(P, { size: 18 })
667
+ children: /* @__PURE__ */ i.jsx(j, { size: 18 })
668
668
  }
669
669
  )
670
670
  ] })
671
671
  ] })
672
672
  ] }),
673
- /* @__PURE__ */ i.jsx(lt, {})
673
+ /* @__PURE__ */ i.jsx(it, {})
674
674
  ] }) });
675
675
  }), he = {
676
- Header: ct
677
- }, ht = ue(he), dt = ht.Provider, ft = ({
676
+ Header: ot
677
+ }, ut = ue(he), lt = ut.Provider, ct = ({
678
678
  children: t,
679
679
  ...e
680
680
  }) => {
681
- var u;
682
681
  const s = S(
683
682
  () => ({ ...he, ...e.overrides }),
684
683
  [e.overrides]
685
684
  ), r = S(
686
685
  () => ({ ...xe, ...e.mdxComponents }),
687
686
  [e.mdxComponents]
688
- ), a = S(() => new ot(e), [e]);
689
- Ie(() => {
687
+ ), a = S(() => new at(e), [e]);
688
+ return Ie(() => {
690
689
  a.initialize();
691
- }, [a]);
692
- const o = (u = e.plugins) == null ? void 0 : u.filter(at).map((d, h) => {
693
- var P;
694
- return /* @__PURE__ */ i.jsx(He, { children: (P = d.getHead) == null ? void 0 : P.call(d) }, h);
695
- });
696
- return /* @__PURE__ */ i.jsxs(qe, { client: ce, children: [
697
- /* @__PURE__ */ i.jsx(Ke, { children: o }),
698
- /* @__PURE__ */ i.jsx(Fe, { value: a, children: /* @__PURE__ */ i.jsx(Be, { components: r, children: /* @__PURE__ */ i.jsx(Me, { children: /* @__PURE__ */ i.jsx(dt, { value: s, children: /* @__PURE__ */ i.jsx(Ce, { children: t }) }) }) }) })
699
- ] });
700
- }, mt = le(ft), de = (t) => /* @__PURE__ */ i.jsx(et, { FallbackComponent: ut, children: /* @__PURE__ */ i.jsx(mt, { ...t }) });
690
+ }, [a]), /* @__PURE__ */ i.jsx(qe, { client: ce, children: /* @__PURE__ */ i.jsx(Fe, { value: a, children: /* @__PURE__ */ i.jsx(Le, { components: r, children: /* @__PURE__ */ i.jsx(Me, { children: /* @__PURE__ */ i.jsx(lt, { value: s, children: /* @__PURE__ */ i.jsx(Ce, { children: t }) }) }) }) }) });
691
+ }, ht = le(ct), de = (t) => /* @__PURE__ */ i.jsx($e, { FallbackComponent: nt, children: /* @__PURE__ */ i.jsx(ht, { ...t }) });
701
692
  de.displayName = "DevPortal";
702
- const wt = ze, Qt = we, Ot = de, Et = Qe;
693
+ const xt = Re, Mt = we, Ct = de, wt = Qe;
703
694
  export {
704
- Qt as Callout,
705
- Ot as DevPortal,
706
- Et as Link,
707
- wt as useMDXComponents
695
+ Mt as Callout,
696
+ Ct as DevPortal,
697
+ wt as Link,
698
+ xt as useMDXComponents
708
699
  };
709
700
  //# sourceMappingURL=zudoku.components.js.map