@gen-epix/ui-client-common 4.6.1 → 4.8.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 (146) hide show
  1. package/README.md +2 -2
  2. package/dist/_chunks/Breadcrumbs.js +4 -4
  3. package/dist/_chunks/CrudPage.js +233 -232
  4. package/dist/_chunks/CrudPage.js.map +1 -1
  5. package/dist/_chunks/GeoFilter.js +1 -0
  6. package/dist/_chunks/GeoFilter.js.map +1 -1
  7. package/dist/_chunks/Notifications.js +16 -16
  8. package/dist/_chunks/QueryClientProvider.js +1 -1
  9. package/dist/_chunks/QueryClientProvider.js.map +1 -1
  10. package/dist/_chunks/QueryClientService.js +73 -72
  11. package/dist/_chunks/QueryClientService.js.map +1 -1
  12. package/dist/_chunks/Table.js +1314 -887
  13. package/dist/_chunks/Table.js.map +1 -1
  14. package/dist/_chunks/TableUtil.js +5126 -178
  15. package/dist/_chunks/TableUtil.js.map +1 -1
  16. package/dist/_chunks/TextFilter.js +10 -6
  17. package/dist/_chunks/TextFilter.js.map +1 -1
  18. package/dist/_chunks/UserInvitationsAdminPage.js +131 -131
  19. package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
  20. package/dist/_chunks/_baseFlatten.js +12 -12
  21. package/dist/_chunks/_baseFlatten.js.map +1 -1
  22. package/dist/_chunks/_baseIteratee.js +78 -78
  23. package/dist/_chunks/_baseIteratee.js.map +1 -1
  24. package/dist/_chunks/decorate.js +1 -1
  25. package/dist/_chunks/decorateParam.js +1 -1
  26. package/dist/_chunks/middleware.js +66 -70
  27. package/dist/_chunks/middleware.js.map +1 -1
  28. package/dist/_chunks/omit.js +98 -98
  29. package/dist/_chunks/omit.js.map +1 -1
  30. package/dist/_chunks/query.js +123 -107
  31. package/dist/_chunks/query.js.map +1 -1
  32. package/dist/_chunks/react.js +1 -1
  33. package/dist/_chunks/react.js.map +1 -1
  34. package/dist/_chunks/tableStore.js +298 -275
  35. package/dist/_chunks/tableStore.js.map +1 -1
  36. package/dist/_chunks/useMutation.js +2 -2
  37. package/dist/_chunks/useMutation.js.map +1 -1
  38. package/dist/_chunks/useQueryMemo.js +15 -16
  39. package/dist/_chunks/useQueryMemo.js.map +1 -1
  40. package/dist/_chunks/vanilla.js +1 -1
  41. package/dist/_chunks/vanilla.js.map +1 -1
  42. package/dist/_chunks/yup.js +2 -2
  43. package/dist/_chunks/yup.js.map +1 -1
  44. package/dist/classes/abstracts/FilterAbstract/FilterAbstract.d.ts +11 -0
  45. package/dist/classes/abstracts/FilterAbstract/index.js +48 -3
  46. package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
  47. package/dist/classes/filters/BooleanFilter.d.ts +1 -0
  48. package/dist/classes/filters/DateFilter.d.ts +1 -1
  49. package/dist/classes/filters/GeoFilter.d.ts +1 -0
  50. package/dist/classes/filters/MultiSelectFilter.d.ts +1 -0
  51. package/dist/classes/filters/NumberRangeFilter.d.ts +1 -0
  52. package/dist/classes/filters/TextFilter.d.ts +1 -0
  53. package/dist/classes/services/AuthenticationService/index.js +8 -8
  54. package/dist/classes/services/AuthenticationService/index.js.map +1 -1
  55. package/dist/classes/services/AuthorizationService/index.js +4 -4
  56. package/dist/classes/services/AuthorizationService/index.js.map +1 -1
  57. package/dist/classes/services/BreadcrumbService/index.js +4 -4
  58. package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
  59. package/dist/classes/services/EmotionCacheService/index.js.map +1 -1
  60. package/dist/classes/services/InactivityService/index.js +30 -30
  61. package/dist/classes/services/InactivityService/index.js.map +1 -1
  62. package/dist/classes/services/LogService/index.js +15 -15
  63. package/dist/classes/services/LogService/index.js.map +1 -1
  64. package/dist/classes/services/PageEventBusService/index.js.map +1 -1
  65. package/dist/components/app/App/index.js +27 -24
  66. package/dist/components/app/App/index.js.map +1 -1
  67. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +18 -18
  68. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
  69. package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +18 -18
  70. package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js.map +1 -1
  71. package/dist/components/app/AuthenticationWrapper/index.js +15 -15
  72. package/dist/components/app/AuthorizationWrapper/index.js +16 -16
  73. package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
  74. package/dist/components/app/RouterRoot/index.js +33 -33
  75. package/dist/components/app/RouterRoot/index.js.map +1 -1
  76. package/dist/components/epi/EpiContactDetailsDialog/index.js +4 -4
  77. package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -1
  78. package/dist/components/ui/ApplicationBar/index.js +234 -234
  79. package/dist/components/ui/ApplicationBar/index.js.map +1 -1
  80. package/dist/components/ui/GenericErrorMessage/index.js +13 -13
  81. package/dist/components/ui/LicensesDialog/index.js +6 -6
  82. package/dist/components/ui/OrganizationSwitcherDialog/index.js +11 -11
  83. package/dist/components/ui/OutagesDialog/index.js +4 -4
  84. package/dist/components/ui/OutagesDialog/index.js.map +1 -1
  85. package/dist/components/ui/PageContainer/index.js +5 -5
  86. package/dist/components/ui/PageContainer/index.js.map +1 -1
  87. package/dist/components/ui/ResponseHandler/index.js +4 -4
  88. package/dist/components/ui/SortableList/SortableList.d.ts +5 -3
  89. package/dist/components/ui/Table/Table.d.ts +5 -2
  90. package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +13 -2
  91. package/dist/components/ui/Table/TableDownloadSidebarItem.d.ts +10 -0
  92. package/dist/components/ui/Table/TableSidebarMenu.d.ts +2 -1
  93. package/dist/components/ui/Table/index.d.ts +2 -0
  94. package/dist/components/ui/Table/index.js +1 -1
  95. package/dist/components/ui/Table/useTableColumnsMenu.d.ts +6 -0
  96. package/dist/components/ui/UserFeedbackDialog/index.js +15 -15
  97. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +12 -12
  98. package/dist/dataHooks/useIdentifierIssuerQuery/index.js +11 -11
  99. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +5 -5
  100. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -1
  101. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +15 -15
  102. package/dist/dataHooks/useOrganizationsQuery/index.js +7 -7
  103. package/dist/dataHooks/useUsersQuery/index.js +10 -10
  104. package/dist/hooks/useCreateMutation/index.js +14 -14
  105. package/dist/hooks/useCreateMutation/index.js.map +1 -1
  106. package/dist/hooks/useDeleteMutation/index.js +17 -17
  107. package/dist/hooks/useDeleteMutation/index.js.map +1 -1
  108. package/dist/hooks/useEditMutation/index.js +22 -22
  109. package/dist/hooks/useEditMutation/index.js.map +1 -1
  110. package/dist/hooks/useInitializeTableStore/index.js +6 -6
  111. package/dist/hooks/useInitializeTableStore/index.js.map +1 -1
  112. package/dist/locale/en.json +27 -5
  113. package/dist/locale/nl.json +27 -5
  114. package/dist/models/table.models.d.ts +1 -0
  115. package/dist/models/table.models.js.map +1 -1
  116. package/dist/pages/AcceptInvitationPage/index.js +10 -10
  117. package/dist/pages/AdminPage/index.js +19 -19
  118. package/dist/pages/ChooseIdentityProviderPage/index.js +5 -5
  119. package/dist/pages/ErrorPage/index.js +4 -4
  120. package/dist/pages/IdentifierIssuersAdminPage/index.js +7 -7
  121. package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -1
  122. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +16 -16
  123. package/dist/pages/OrganizationContactsAdminPage/index.js +10 -10
  124. package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -1
  125. package/dist/pages/OrganizationSitesAdminPage/index.js +12 -12
  126. package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -1
  127. package/dist/pages/OrganizationsAdminPage/index.js +20 -20
  128. package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
  129. package/dist/pages/OutagesAdminPage/index.js +11 -11
  130. package/dist/pages/OutagesAdminPage/index.js.map +1 -1
  131. package/dist/pages/RouterErrorPage/index.js +4 -4
  132. package/dist/pages/UsersAdminPage/index.js +34 -34
  133. package/dist/pages/UsersAdminPage/index.js.map +1 -1
  134. package/dist/setup/setup.js +4 -4
  135. package/dist/setup/setup.js.map +1 -1
  136. package/dist/stores/oidcStore/oidcStore.d.ts +1 -1
  137. package/dist/stores/tableStore/tableStore.d.ts +3 -1
  138. package/dist/utils/StandardConfigUtil/index.js +2 -2
  139. package/dist/utils/StandardConfigUtil/index.js.map +1 -1
  140. package/dist/utils/TableUtil/TableUtil.d.ts +5 -0
  141. package/package.json +35 -37
  142. package/dist/_chunks/useColumnsMenu.js +0 -157
  143. package/dist/_chunks/useColumnsMenu.js.map +0 -1
  144. package/dist/hooks/useColumnsMenu/index.d.ts +0 -1
  145. package/dist/hooks/useColumnsMenu/index.js +0 -1
  146. package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +0 -6
@@ -1,13 +1,13 @@
1
1
  import { n as e, t } from "./rolldown-runtime.js";
2
- import { m as n } from "./_baseGet.js";
3
- import { t as r } from "./_baseIteratee.js";
4
- import { t as i } from "./decorate.js";
5
- import { t as a } from "./_baseUnset.js";
6
- import { n as o, t as s } from "./uniq.js";
7
- import { S as c, _ as l, a as u, c as d, d as f, f as p, g as m, h, i as g, m as _, o as v, r as y, s as b, t as x, u as S, y as C } from "./query.js";
2
+ import { S as n, _ as r, a as i, c as a, d as o, f as s, g as c, h as l, i as u, m as d, o as f, r as p, s as m, t as h, u as g, y as _ } from "./query.js";
3
+ import { t as v } from "./_baseIteratee.js";
4
+ import { t as y } from "./_baseUnset.js";
5
+ import { m as b } from "./_baseGet.js";
6
+ import { n as x, t as S } from "./uniq.js";
7
+ import { t as C } from "./decorate.js";
8
8
  import { singleton as w } from "tsyringe";
9
- // ../../node_modules/.pnpm/@tanstack+query-core@5.105.0/node_modules/@tanstack/query-core/build/modern/mutation.js
10
- var T = class extends y {
9
+ // ../../node_modules/.pnpm/@tanstack+query-core@5.107.2/node_modules/@tanstack/query-core/build/modern/mutation.js
10
+ var T = class extends p {
11
11
  #e;
12
12
  #t;
13
13
  #n;
@@ -48,7 +48,7 @@ var T = class extends y {
48
48
  client: this.#e,
49
49
  meta: this.options.meta,
50
50
  mutationKey: this.options.mutationKey
51
- }, r = this.#r = g({
51
+ }, r = this.#r = u({
52
52
  fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
53
53
  onFail: (e, t) => {
54
54
  this.#i({
@@ -82,6 +82,7 @@ var T = class extends y {
82
82
  isPaused: a
83
83
  });
84
84
  }
85
+ this.state.isPaused && r.canStart() && t();
85
86
  let o = await r.start();
86
87
  return await this.#n.config.onSuccess?.(o, e, this.state.context, this, n), await this.options.onSuccess?.(o, e, this.state.context, n), await this.#n.config.onSettled?.(o, null, this.state.variables, this.state.context, this, n), await this.options.onSettled?.(o, null, e, this.state.context, n), this.#i({
87
88
  type: "success",
@@ -164,7 +165,7 @@ var T = class extends y {
164
165
  };
165
166
  }
166
167
  };
167
- this.state = t(this.state), v.batch(() => {
168
+ this.state = t(this.state), f.batch(() => {
168
169
  this.#t.forEach((t) => {
169
170
  t.onMutationUpdate(e);
170
171
  }), this.#n.notify({
@@ -188,8 +189,8 @@ function E() {
188
189
  submittedAt: 0
189
190
  };
190
191
  }
191
- // ../../node_modules/.pnpm/@tanstack+query-core@5.105.0/node_modules/@tanstack/query-core/build/modern/mutationCache.js
192
- var D = class extends d {
192
+ // ../../node_modules/.pnpm/@tanstack+query-core@5.107.2/node_modules/@tanstack/query-core/build/modern/mutationCache.js
193
+ var D = class extends a {
193
194
  #e;
194
195
  #t;
195
196
  #n;
@@ -249,7 +250,7 @@ var D = class extends d {
249
250
  return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
250
251
  }
251
252
  clear() {
252
- v.batch(() => {
253
+ f.batch(() => {
253
254
  let e = this.getAll();
254
255
  this.#e.clear(), this.#t.clear(), e.forEach((e) => {
255
256
  this.notify({
@@ -267,13 +268,13 @@ var D = class extends d {
267
268
  exact: !0,
268
269
  ...e
269
270
  };
270
- return this.getAll().find((e) => _(t, e));
271
+ return this.getAll().find((e) => d(t, e));
271
272
  }
272
273
  findAll(e = {}) {
273
- return this.getAll().filter((t) => _(e, t));
274
+ return this.getAll().filter((t) => d(e, t));
274
275
  }
275
276
  notify(e) {
276
- v.batch(() => {
277
+ f.batch(() => {
277
278
  this.listeners.forEach((t) => {
278
279
  t(e);
279
280
  });
@@ -281,21 +282,21 @@ var D = class extends d {
281
282
  }
282
283
  resumePausedMutations() {
283
284
  let e = this.getAll().filter((e) => e.state.isPaused);
284
- return v.batch(() => Promise.all(e.map((e) => e.continue().catch(m))));
285
+ return f.batch(() => Promise.all(e.map((e) => e.continue().catch(c))));
285
286
  }
286
287
  };
287
288
  function O(e) {
288
289
  return e.options.scope?.id;
289
290
  }
290
- // ../../node_modules/.pnpm/@tanstack+query-core@5.105.0/node_modules/@tanstack/query-core/build/modern/queryCache.js
291
- var k = class extends d {
291
+ // ../../node_modules/.pnpm/@tanstack+query-core@5.107.2/node_modules/@tanstack/query-core/build/modern/queryCache.js
292
+ var k = class extends a {
292
293
  #e;
293
294
  constructor(e = {}) {
294
295
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
295
296
  }
296
297
  build(e, t, n) {
297
- let r = t.queryKey, i = t.queryHash ?? p(r, t), a = this.get(i);
298
- return a || (a = new x({
298
+ let r = t.queryKey, i = t.queryHash ?? s(r, t), a = this.get(i);
299
+ return a || (a = new h({
299
300
  client: e,
300
301
  queryKey: r,
301
302
  queryHash: i,
@@ -317,7 +318,7 @@ var k = class extends d {
317
318
  }));
318
319
  }
319
320
  clear() {
320
- v.batch(() => {
321
+ f.batch(() => {
321
322
  this.getAll().forEach((e) => {
322
323
  this.remove(e);
323
324
  });
@@ -334,28 +335,28 @@ var k = class extends d {
334
335
  exact: !0,
335
336
  ...e
336
337
  };
337
- return this.getAll().find((e) => h(t, e));
338
+ return this.getAll().find((e) => l(t, e));
338
339
  }
339
340
  findAll(e = {}) {
340
341
  let t = this.getAll();
341
- return Object.keys(e).length > 0 ? t.filter((t) => h(e, t)) : t;
342
+ return Object.keys(e).length > 0 ? t.filter((t) => l(e, t)) : t;
342
343
  }
343
344
  notify(e) {
344
- v.batch(() => {
345
+ f.batch(() => {
345
346
  this.listeners.forEach((t) => {
346
347
  t(e);
347
348
  });
348
349
  });
349
350
  }
350
351
  onFocus() {
351
- v.batch(() => {
352
+ f.batch(() => {
352
353
  this.getAll().forEach((e) => {
353
354
  e.onFocus();
354
355
  });
355
356
  });
356
357
  }
357
358
  onOnline() {
358
- v.batch(() => {
359
+ f.batch(() => {
359
360
  this.getAll().forEach((e) => {
360
361
  e.onOnline();
361
362
  });
@@ -374,9 +375,9 @@ var k = class extends d {
374
375
  this.#e = e.queryCache || new k(), this.#t = e.mutationCache || new D(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
375
376
  }
376
377
  mount() {
377
- this.#a++, this.#a === 1 && (this.#o = b.subscribe(async (e) => {
378
+ this.#a++, this.#a === 1 && (this.#o = m.subscribe(async (e) => {
378
379
  e && (await this.resumePausedMutations(), this.#e.onFocus());
379
- }), this.#s = u.subscribe(async (e) => {
380
+ }), this.#s = i.subscribe(async (e) => {
380
381
  e && (await this.resumePausedMutations(), this.#e.onOnline());
381
382
  }));
382
383
  }
@@ -401,20 +402,20 @@ var k = class extends d {
401
402
  }
402
403
  ensureQueryData(e) {
403
404
  let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
404
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(C(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
405
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(_(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
405
406
  }
406
407
  getQueriesData(e) {
407
408
  return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
408
409
  }
409
410
  setQueryData(e, t, n) {
410
- let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = S(t, i);
411
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = g(t, i);
411
412
  if (a !== void 0) return this.#e.build(this, r).setData(a, {
412
413
  ...n,
413
414
  manual: !0
414
415
  });
415
416
  }
416
417
  setQueriesData(e, t, n) {
417
- return v.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
418
+ return f.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
418
419
  }
419
420
  getQueryState(e) {
420
421
  let t = this.defaultQueryOptions({ queryKey: e });
@@ -422,7 +423,7 @@ var k = class extends d {
422
423
  }
423
424
  removeQueries(e) {
424
425
  let t = this.#e;
425
- v.batch(() => {
426
+ f.batch(() => {
426
427
  t.findAll(e).forEach((e) => {
427
428
  t.remove(e);
428
429
  });
@@ -430,7 +431,7 @@ var k = class extends d {
430
431
  }
431
432
  resetQueries(e, t) {
432
433
  let n = this.#e;
433
- return v.batch(() => {
434
+ return f.batch(() => {
434
435
  let r = n.findAll(e), i = new Set(r);
435
436
  return r.forEach((e) => {
436
437
  e.reset();
@@ -444,11 +445,11 @@ var k = class extends d {
444
445
  let n = {
445
446
  revert: !0,
446
447
  ...t
447
- }, r = v.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
448
- return Promise.all(r).then(m).catch(m);
448
+ }, r = f.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
449
+ return Promise.all(r).then(c).catch(c);
449
450
  }
450
451
  invalidateQueries(e, t = {}) {
451
- return v.batch(() => (this.#e.findAll(e).forEach((e) => {
452
+ return f.batch(() => (this.#e.findAll(e).forEach((e) => {
452
453
  e.invalidate();
453
454
  }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
454
455
  ...e,
@@ -459,26 +460,26 @@ var k = class extends d {
459
460
  let n = {
460
461
  ...t,
461
462
  cancelRefetch: t.cancelRefetch ?? !0
462
- }, r = v.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
463
- let t = e.fetch(void 0, n);
464
- return n.throwOnError || (t = t.catch(m)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
463
+ }, r = f.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
464
+ let t = e.fetch(void 0, n), r = e.state.fetchStatus === "paused";
465
+ return (!n.throwOnError || r) && (t = t.catch(c)), r ? Promise.resolve() : t;
465
466
  }));
466
- return Promise.all(r).then(m);
467
+ return Promise.all(r).then(c);
467
468
  }
468
469
  async query(e) {
469
470
  let t = this.defaultQueryOptions(e);
470
471
  t.retry === void 0 && (t.retry = !1);
471
- let n = this.#e.build(this, t), r = n.isStaleByTime(C(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
472
+ let n = this.#e.build(this, t), r = n.isStaleByTime(_(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
472
473
  return i ? i(r) : r;
473
474
  }
474
475
  fetchQuery(e) {
475
476
  let t = this.defaultQueryOptions(e);
476
477
  t.retry === void 0 && (t.retry = !1);
477
478
  let n = this.#e.build(this, t);
478
- return n.isStaleByTime(C(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
479
+ return n.isStaleByTime(_(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
479
480
  }
480
481
  prefetchQuery(e) {
481
- return this.fetchQuery(e).then(m).catch(m);
482
+ return this.fetchQuery(e).then(c).catch(c);
482
483
  }
483
484
  infiniteQuery(e) {
484
485
  return e._type = "infinite", this.query(e);
@@ -487,13 +488,13 @@ var k = class extends d {
487
488
  return e._type = "infinite", this.fetchQuery(e);
488
489
  }
489
490
  prefetchInfiniteQuery(e) {
490
- return this.fetchInfiniteQuery(e).then(m).catch(m);
491
+ return this.fetchInfiniteQuery(e).then(c).catch(c);
491
492
  }
492
493
  ensureInfiniteQueryData(e) {
493
494
  return e._type = "infinite", this.ensureQueryData(e);
494
495
  }
495
496
  resumePausedMutations() {
496
- return u.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
497
+ return i.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
497
498
  }
498
499
  getQueryCache() {
499
500
  return this.#e;
@@ -508,7 +509,7 @@ var k = class extends d {
508
509
  this.#n = e;
509
510
  }
510
511
  setQueryDefaults(e, t) {
511
- this.#r.set(f(e), {
512
+ this.#r.set(o(e), {
512
513
  queryKey: e,
513
514
  defaultOptions: t
514
515
  });
@@ -516,11 +517,11 @@ var k = class extends d {
516
517
  getQueryDefaults(e) {
517
518
  let t = [...this.#r.values()], n = {};
518
519
  return t.forEach((t) => {
519
- l(e, t.queryKey) && Object.assign(n, t.defaultOptions);
520
+ r(e, t.queryKey) && Object.assign(n, t.defaultOptions);
520
521
  }), n;
521
522
  }
522
523
  setMutationDefaults(e, t) {
523
- this.#i.set(f(e), {
524
+ this.#i.set(o(e), {
524
525
  mutationKey: e,
525
526
  defaultOptions: t
526
527
  });
@@ -528,7 +529,7 @@ var k = class extends d {
528
529
  getMutationDefaults(e) {
529
530
  let t = [...this.#i.values()], n = {};
530
531
  return t.forEach((t) => {
531
- l(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
532
+ r(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
532
533
  }), n;
533
534
  }
534
535
  defaultQueryOptions(e) {
@@ -539,7 +540,7 @@ var k = class extends d {
539
540
  ...e,
540
541
  _defaulted: !0
541
542
  };
542
- return t.queryHash ||= p(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === c && (t.enabled = !1), t;
543
+ return t.queryHash ||= s(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === n && (t.enabled = !1), t;
543
544
  }
544
545
  defaultMutationOptions(e) {
545
546
  return e?._defaulted ? e : {
@@ -553,38 +554,38 @@ var k = class extends d {
553
554
  this.#e.clear(), this.#t.clear();
554
555
  }
555
556
  }, j = /* @__PURE__ */ t(((e, t) => {
556
- var r = a(), i = n(), o = Array.prototype.splice;
557
- function s(e, t) {
558
- for (var n = e ? t.length : 0, a = n - 1; n--;) {
559
- var s = t[n];
560
- if (n == a || s !== c) {
557
+ var n = y(), r = b(), i = Array.prototype.splice;
558
+ function a(e, t) {
559
+ for (var a = e ? t.length : 0, o = a - 1; a--;) {
560
+ var s = t[a];
561
+ if (a == o || s !== c) {
561
562
  var c = s;
562
- i(s) ? o.call(e, s, 1) : r(e, s);
563
+ r(s) ? i.call(e, s, 1) : n(e, s);
563
564
  }
564
565
  }
565
566
  return e;
566
567
  }
567
- t.exports = s;
568
+ t.exports = a;
568
569
  })), M = /* @__PURE__ */ t(((e, t) => {
569
- var n = r(), i = j();
570
- function a(e, t) {
571
- var r = [];
572
- if (!(e && e.length)) return r;
570
+ var n = v(), r = j();
571
+ function i(e, t) {
572
+ var i = [];
573
+ if (!(e && e.length)) return i;
573
574
  var a = -1, o = [], s = e.length;
574
575
  for (t = n(t, 3); ++a < s;) {
575
576
  var c = e[a];
576
- t(c, a, e) && (r.push(c), o.push(a));
577
+ t(c, a, e) && (i.push(c), o.push(a));
577
578
  }
578
- return i(e, o), r;
579
+ return r(e, o), i;
579
580
  }
580
- t.exports = a;
581
+ t.exports = i;
581
582
  })), N = /* @__PURE__ */ t(((e, t) => {
582
- var n = r(), i = o();
583
- function a(e, t) {
584
- return e && e.length ? i(e, n(t, 2)) : [];
583
+ var n = v(), r = x();
584
+ function i(e, t) {
585
+ return e && e.length ? r(e, n(t, 2)) : [];
585
586
  }
586
- t.exports = a;
587
- })), P = /* @__PURE__ */ e(M(), 1), F = /* @__PURE__ */ e(s(), 1), I = /* @__PURE__ */ e(N(), 1), L, R = L = class {
587
+ t.exports = i;
588
+ })), P = /* @__PURE__ */ e(M(), 1), F = /* @__PURE__ */ e(S(), 1), I = /* @__PURE__ */ e(N(), 1), L, R = L = class {
588
589
  mutationCache;
589
590
  queryCache;
590
591
  queryClient;
@@ -639,7 +640,7 @@ var k = class extends d {
639
640
  return (0, I.default)(e, (e) => JSON.stringify(e));
640
641
  }
641
642
  getValidQueryData(e) {
642
- if (!this.queryCache.find({ queryKey: e })?.state?.isInvalidated) return this.queryClient.getQueryData(e);
643
+ if (!this.queryClient.getQueryState(e)?.isInvalidated) return this.queryClient.getQueryData(e);
643
644
  }
644
645
  async invalidateQueryKeys(e) {
645
646
  for (let t of this.getUniqueQueryKeys(e ?? [])) await this.queryClient.cancelQueries({ queryKey: t }), await this.queryClient.invalidateQueries({ queryKey: t });
@@ -657,7 +658,7 @@ var k = class extends d {
657
658
  }), (0, P.default)((0, F.default)(r), (e) => e !== n);
658
659
  }
659
660
  };
660
- R = L = i([w()], R);
661
+ R = L = C([w()], R);
661
662
  export { E as n, R as t };
662
663
 
663
664
  //# sourceMappingURL=QueryClientService.js.map