bt-core-app 1.4.57 → 1.4.58

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 (2) hide show
  1. package/dist/bt-core-app.js +419 -419
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { ref as Y, shallowRef as Le, computed as te, toValue as j, watch as _e, toRef as zt, onMounted as Xr } from "vue";
1
+ import { ref as Y, shallowRef as Me, computed as te, toValue as j, watch as _e, toRef as zt, onMounted as Xr } from "vue";
2
2
  import { watchArray as Or, useStorage as Jt, useEventListener as he, toValue as Ae, useParentElement as jt, useResizeObserver as Kt, useArrayUnique as Qt, useArrayDifference as Gr, watchDebounced as Xt, tryOnMounted as Ot } from "@vueuse/core";
3
3
  import { DateTime as de } from "luxon";
4
4
  import { defineStore as pr } from "pinia";
@@ -11,7 +11,7 @@ function en(e) {
11
11
  return (e == "x" ? t : t & 3 | 8).toString(16);
12
12
  }
13
13
  function rn(e) {
14
- const t = Y([]), l = Le(), b = Le(), f = Le(), g = te(() => l.value != null);
14
+ const t = Y([]), l = Me(), b = Me(), f = Me(), g = te(() => l.value != null);
15
15
  function E(o) {
16
16
  t.value = t.value.filter((h) => h.id != o);
17
17
  }
@@ -22,10 +22,10 @@ function rn(e) {
22
22
  };
23
23
  return t.value.push(h), h.id;
24
24
  }
25
- function _(o) {
25
+ function T(o) {
26
26
  o != null && (b.value = o.toString());
27
27
  }
28
- function N() {
28
+ function M() {
29
29
  b.value = void 0;
30
30
  }
31
31
  async function $(o, h) {
@@ -38,7 +38,7 @@ function rn(e) {
38
38
  } catch (S) {
39
39
  if (u.throwError == !0)
40
40
  return y;
41
- _(u.errorMsg ?? S ?? "error");
41
+ T(u.errorMsg ?? S ?? "error");
42
42
  } finally {
43
43
  E(r);
44
44
  }
@@ -49,10 +49,10 @@ function rn(e) {
49
49
  actionErrorMsg: b,
50
50
  actionLoadingMsg: l,
51
51
  actionCompleteMsg: f,
52
- clearErrors: N,
52
+ clearErrors: M,
53
53
  doAction: $,
54
54
  isLoading: g,
55
- logError: _
55
+ logError: T
56
56
  };
57
57
  }
58
58
  var Ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -74,11 +74,11 @@ var Fe = function() {
74
74
  };
75
75
  }
76
76
  if (f.length === 1) {
77
- var P = f, _ = g.ignoreCase ? t : e, N = g.cmp || function(o, h) {
77
+ var P = f, T = g.ignoreCase ? t : e, M = g.cmp || function(o, h) {
78
78
  return o < h ? -1 : o > h ? 1 : 0;
79
79
  };
80
80
  f = function(o, h) {
81
- return N(_(P(o)), _(P(h)));
81
+ return M(T(P(o)), T(P(h)));
82
82
  };
83
83
  }
84
84
  const $ = { "-1": "", desc: "" };
@@ -87,14 +87,14 @@ var Fe = function() {
87
87
  } : f;
88
88
  }
89
89
  function b(f, g) {
90
- var E = typeof this == "function" && !this.firstBy ? this : !1, P = l(f, g), _ = E ? function(N, $) {
91
- return E(N, $) || P(N, $);
90
+ var E = typeof this == "function" && !this.firstBy ? this : !1, P = l(f, g), T = E ? function(M, $) {
91
+ return E(M, $) || P(M, $);
92
92
  } : P;
93
- return _.thenBy = b, _;
93
+ return T.thenBy = b, T;
94
94
  }
95
95
  return b.firstBy = b, b;
96
96
  }();
97
- function Me(e, t) {
97
+ function Le(e, t) {
98
98
  let l = e ?? "", b = t ?? "";
99
99
  if (l.endsWith("/"))
100
100
  do
@@ -263,12 +263,12 @@ function cn(e, t) {
263
263
  var l = e.split(","), b = t.split(",");
264
264
  return l.some((f) => b.some((g) => g == f));
265
265
  }
266
- function Lr(e) {
266
+ function Mr(e) {
267
267
  if (!e)
268
268
  return e;
269
269
  let t, l = Array.isArray(e) ? [] : {};
270
270
  for (const b in e)
271
- t = e[b], l[b] = typeof t == "object" ? Lr(t) : t;
271
+ t = e[b], l[b] = typeof t == "object" ? Mr(t) : t;
272
272
  return l;
273
273
  }
274
274
  function fn(e) {
@@ -366,14 +366,14 @@ function gn(e) {
366
366
  }
367
367
  function E(u) {
368
368
  let r = j(u.url) ?? void 0, y = j(u.id);
369
- return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Me(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Me(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
369
+ return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Le(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Le(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
370
370
  }
371
371
  function P(u) {
372
372
  var y, S;
373
373
  let r = { ...u.headers };
374
374
  return u.proxyID && (r.ManagedCompanyAccountID ?? (r.ManagedCompanyAccountID = u.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((y = e == null ? void 0 : e.auth) == null ? void 0 : y.isLoggedIn.value) == !0 && (r.authorization ?? (r.authorization = `bearer ${(S = e == null ? void 0 : e.auth) == null ? void 0 : S.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
375
375
  }
376
- async function _(u) {
376
+ async function T(u) {
377
377
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, S = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
378
378
  let c = u.finalUrl, x = u.headers;
379
379
  if (c == null && (c = b(u)), u.overrideHeaders !== !0 && (x = t(u)), f != null && f.isDemoing.value)
@@ -387,22 +387,22 @@ function gn(e) {
387
387
  cache: "no-cache",
388
388
  headers: x
389
389
  }), !I.ok) {
390
- let M = await I.text();
391
- throw new Error(M ?? I.statusText ?? "Get error");
390
+ let L = await I.text();
391
+ throw new Error(L ?? I.statusText ?? "Get error");
392
392
  }
393
393
  if (S)
394
394
  return await I.text();
395
395
  if (y)
396
396
  return await I.json();
397
397
  throw new Error();
398
- } catch (M) {
399
- const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${M.message}`;
398
+ } catch (L) {
399
+ const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${L.message}`;
400
400
  if (!r)
401
401
  return;
402
402
  throw new Error(w);
403
403
  }
404
404
  }
405
- async function N(u) {
405
+ async function M(u) {
406
406
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, S = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
407
407
  let c = u.finalUrl, x = u.headers;
408
408
  if (c == null && (c = b(u)), u.overrideHeaders !== !0 && (x = t(u)), f != null && f.isDemoing.value)
@@ -416,16 +416,16 @@ function gn(e) {
416
416
  cache: "no-cache",
417
417
  headers: x
418
418
  }), !I.ok) {
419
- let M = await I.text();
420
- throw new Error(M ?? I.statusText ?? "Get all error");
419
+ let L = await I.text();
420
+ throw new Error(L ?? I.statusText ?? "Get all error");
421
421
  }
422
422
  if (S)
423
423
  return await I.text();
424
424
  if (y)
425
425
  return await I.json();
426
426
  throw new Error();
427
- } catch (M) {
428
- const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${M.message}`;
427
+ } catch (L) {
428
+ const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${L.message}`;
429
429
  if (!r)
430
430
  return;
431
431
  throw new Error(w);
@@ -446,18 +446,18 @@ function gn(e) {
446
446
  headers: x,
447
447
  body: JSON.stringify(u.data)
448
448
  }), !I.ok) {
449
- let M = await I.text();
450
- throw new Error(M ?? I.statusText ?? "Post error!");
449
+ let L = await I.text();
450
+ throw new Error(L ?? I.statusText ?? "Post error!");
451
451
  }
452
452
  if (S)
453
453
  return await I.text();
454
454
  if (y)
455
455
  return await I.json();
456
456
  throw new Error();
457
- } catch (M) {
457
+ } catch (L) {
458
458
  if (I.status == 200 || !r)
459
459
  return;
460
- const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${M.message}`;
460
+ const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${L.message}`;
461
461
  throw new Error(w);
462
462
  }
463
463
  }
@@ -476,18 +476,18 @@ function gn(e) {
476
476
  headers: x,
477
477
  body: JSON.stringify(u.data)
478
478
  }), !I.ok) {
479
- let M = await I.text();
480
- throw new Error(M ?? I.statusText ?? "Patch error!");
479
+ let L = await I.text();
480
+ throw new Error(L ?? I.statusText ?? "Patch error!");
481
481
  }
482
482
  if (S)
483
483
  return await I.text();
484
484
  if (y)
485
485
  return await I.json();
486
486
  throw new Error();
487
- } catch (M) {
487
+ } catch (L) {
488
488
  if (I.status == 200 || !r)
489
489
  return;
490
- const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${M.message}`;
490
+ const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${L.message}`;
491
491
  throw new Error(w);
492
492
  }
493
493
  }
@@ -518,8 +518,8 @@ function gn(e) {
518
518
  buildQuery: l,
519
519
  buildUrl: b,
520
520
  deleteItem: h,
521
- get: _,
522
- getAll: N,
521
+ get: T,
522
+ getAll: M,
523
523
  patch: o,
524
524
  post: $
525
525
  }, Sr;
@@ -534,7 +534,7 @@ function nt(e) {
534
534
  const c = r.id ?? ((I = r.data) == null ? void 0 : I.id);
535
535
  if (c == null)
536
536
  return Promise.resolve("No id found in delete action");
537
- const x = S.findIndex((M) => M.id == c);
537
+ const x = S.findIndex((L) => L.id == c);
538
538
  return x >= 0 && S.splice(x, 1), Promise.resolve(void 0);
539
539
  }), g(async () => {
540
540
  let c;
@@ -548,7 +548,7 @@ function nt(e) {
548
548
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
549
549
  });
550
550
  }
551
- function _(r) {
551
+ function T(r) {
552
552
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
553
553
  const y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store), S = (e == null ? void 0 : e.items) ?? [];
554
554
  return y != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await y().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
@@ -567,7 +567,7 @@ function nt(e) {
567
567
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
568
568
  });
569
569
  }
570
- function N(r) {
570
+ function M(r) {
571
571
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get these items?" : void 0);
572
572
  const y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store), S = (e == null ? void 0 : e.items) ?? [];
573
573
  return y != null ? r.onGetAsync ?? (r.onGetAsync = () => y().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(S)), g(async () => {
@@ -640,26 +640,26 @@ function nt(e) {
640
640
  clearErrors: b,
641
641
  deleteItem: P,
642
642
  doAction: g,
643
- getAllItems: N,
644
- getItem: _,
643
+ getAllItems: M,
644
+ getItem: T,
645
645
  isLoading: f,
646
646
  logError: E,
647
647
  restoreItem: $,
648
648
  saveItem: o
649
649
  };
650
650
  }
651
- var Mr = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
651
+ var Lr = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
652
652
  let ye;
653
653
  function at() {
654
- const e = Mr.NODE_ENV;
654
+ const e = Lr.NODE_ENV;
655
655
  return ye == null ? e : (ye[e] ?? ye.development).localDbName ?? e;
656
656
  }
657
657
  function Wr() {
658
- const e = Mr.NODE_ENV;
658
+ const e = Lr.NODE_ENV;
659
659
  return ye == null ? "" : (ye[e] ?? ye.development).auth ?? "";
660
660
  }
661
661
  function yn(e) {
662
- const t = Mr.NODE_ENV;
662
+ const t = Lr.NODE_ENV;
663
663
  if (ye == null)
664
664
  return "";
665
665
  const l = ye[t] ?? ye.development;
@@ -687,29 +687,29 @@ function Sn(e) {
687
687
  function g(D) {
688
688
  if (D == null)
689
689
  return !0;
690
- var T = e.getAuthItem != null ? e.getAuthItem(D) : null;
691
- if (T == null)
690
+ var _ = e.getAuthItem != null ? e.getAuthItem(D) : null;
691
+ if (_ == null)
692
692
  return !1;
693
- if (T.requiresAuth === !1)
693
+ if (_.requiresAuth === !1)
694
694
  return !0;
695
695
  const d = j(f);
696
- if (d.isSuspended && T.ignoreSuspension !== !0)
696
+ if (d.isSuspended && _.ignoreSuspension !== !0)
697
697
  return !1;
698
698
  if (d.isGlobalAdmin)
699
699
  return !0;
700
- if (T.permissions != null) {
701
- for (var A = 0; A < T.permissions.length; A++)
702
- if (!E(T.permissions[A]))
700
+ if (_.permissions != null) {
701
+ for (var A = 0; A < _.permissions.length; A++)
702
+ if (!E(_.permissions[A]))
703
703
  return !1;
704
704
  }
705
705
  return !0;
706
706
  }
707
707
  function E(D) {
708
- const T = j(f);
709
- if (T.userPermissions != null)
710
- for (var d = 0; d < T.userPermissions.length; d++) {
711
- var A = T.userPermissions[d].split(".");
712
- if (T.userPermissions[d] == "everything.edit" || D == A[0] && A.length > 1 && A[1] == "edit")
708
+ const _ = j(f);
709
+ if (_.userPermissions != null)
710
+ for (var d = 0; d < _.userPermissions.length; d++) {
711
+ var A = _.userPermissions[d].split(".");
712
+ if (_.userPermissions[d] == "everything.edit" || D == A[0] && A.length > 1 && A[1] == "edit")
713
713
  return !0;
714
714
  }
715
715
  return !1;
@@ -717,53 +717,53 @@ function Sn(e) {
717
717
  function P(D) {
718
718
  if (D == null)
719
719
  return !0;
720
- var T = e.getAuthItem != null ? e.getAuthItem(D) : null;
721
- if (T == null)
720
+ var _ = e.getAuthItem != null ? e.getAuthItem(D) : null;
721
+ if (_ == null)
722
722
  return !1;
723
- if (T.requiresAuth === !1)
723
+ if (_.requiresAuth === !1)
724
724
  return !0;
725
725
  const d = j(f);
726
- if (d.isSuspended && T.ignoreSuspension !== !0)
726
+ if (d.isSuspended && _.ignoreSuspension !== !0)
727
727
  return !1;
728
728
  if (d.isGlobalAdmin)
729
729
  return !0;
730
- if (T.permissions != null) {
731
- for (var A = 0; A < T.permissions.length; A++)
732
- if (!_(T.permissions[A]))
730
+ if (_.permissions != null) {
731
+ for (var A = 0; A < _.permissions.length; A++)
732
+ if (!T(_.permissions[A]))
733
733
  return !1;
734
734
  }
735
735
  return !0;
736
736
  }
737
- function _(D) {
738
- const T = j(f);
739
- if (T.userPermissions != null)
740
- for (var d = 0; d < T.userPermissions.length; d++) {
741
- var A = T.userPermissions[d].split(".");
742
- if (D == A[0] || D == "everything" || T.userPermissions[d] == "everything.view" || T.userPermissions[d] == "everything.edit")
737
+ function T(D) {
738
+ const _ = j(f);
739
+ if (_.userPermissions != null)
740
+ for (var d = 0; d < _.userPermissions.length; d++) {
741
+ var A = _.userPermissions[d].split(".");
742
+ if (D == A[0] || D == "everything" || _.userPermissions[d] == "everything.view" || _.userPermissions[d] == "everything.edit")
743
743
  return !0;
744
744
  }
745
745
  return !1;
746
746
  }
747
- function N(D, T, d) {
747
+ function M(D, _, d) {
748
748
  let A = !0;
749
- return j(f).isGlobalAdmin ? !0 : (T != null && T.length > 0 && T.forEach((Q) => {
750
- d == "edit" ? E(Q) || (A = !1) : _(Q) || (A = !1);
749
+ return j(f).isGlobalAdmin ? !0 : (_ != null && _.length > 0 && _.forEach((Q) => {
750
+ d == "edit" ? E(Q) || (A = !1) : T(Q) || (A = !1);
751
751
  }), D != null && D.length > 0 && (D.some((Q) => u(Q)) || (A = !1)), A);
752
752
  }
753
- function $(D, T = !1) {
753
+ function $(D, _ = !1) {
754
754
  var d = e.getAuthItem != null ? e.getAuthItem(D) : null;
755
755
  let A = !1;
756
756
  if (d == null)
757
757
  return !1;
758
- let K = d.subscriptions ?? [], Q = d.permissions ?? [], re = N(K, Q, "view");
759
- return re || !T || !Te(d.children) ? re : ((d == null ? void 0 : d.children) != null && d.children.forEach((ie) => {
758
+ let K = d.subscriptions ?? [], Q = d.permissions ?? [], re = M(K, Q, "view");
759
+ return re || !_ || !Te(d.children) ? re : ((d == null ? void 0 : d.children) != null && d.children.forEach((ie) => {
760
760
  $(ie, !0) && (A = !0);
761
761
  }), A);
762
762
  }
763
763
  function o(D) {
764
- return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (T, d) => {
765
- const A = Me(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${d}`);
766
- return T ? `${A}&redirect_path=${T}` : A;
764
+ return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (_, d) => {
765
+ const A = Le(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${d}`);
766
+ return _ ? `${A}&redirect_path=${_}` : A;
767
767
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(D, l.value) ?? "" : "";
768
768
  }
769
769
  function h(D) {
@@ -771,12 +771,12 @@ function Sn(e) {
771
771
  return D == null ? 0 : ((d = (e.subscriptionOptions ?? []).find((A) => A.code == D)) == null ? void 0 : d.value) ?? 0;
772
772
  }
773
773
  function u(D) {
774
- const T = j(f);
775
- if (T.subscriptionCode == null)
774
+ const _ = j(f);
775
+ if (_.subscriptionCode == null)
776
776
  return !1;
777
- if (T.subscriptionCode == D)
777
+ if (_.subscriptionCode == D)
778
778
  return !0;
779
- const d = h(D), A = h(T.subscriptionCode);
779
+ const d = h(D), A = h(_.subscriptionCode);
780
780
  return d <= A;
781
781
  }
782
782
  function r(D) {
@@ -787,22 +787,22 @@ function Sn(e) {
787
787
  );
788
788
  return JSON.parse(A);
789
789
  }
790
- function y(D, T) {
791
- f.value = void 0, M(), D != null && T != null && T.currentRoute.value.path != D && T.push({ path: D });
790
+ function y(D, _) {
791
+ f.value = void 0, L(), D != null && _ != null && _.currentRoute.value.path != D && _.push({ path: D });
792
792
  }
793
793
  function S(D) {
794
794
  var d;
795
- j(f).isLoggedIn || ((d = e.demo) == null || d.endDemo(), L() && (y(), window.location.href = o(D)));
795
+ j(f).isLoggedIn || ((d = e.demo) == null || d.endDemo(), N() && (y(), window.location.href = o(D)));
796
796
  }
797
- async function c(D, T) {
797
+ async function c(D, _) {
798
798
  return e.getToken ?? (e.getToken = async () => {
799
- let d = D, A = T, K = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
799
+ let d = D, A = _, K = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
800
800
  if (d == null || A == null)
801
801
  throw new Error("Code and State required in OAuth token process");
802
802
  if (A != l.value)
803
803
  throw new Error("state does not match");
804
804
  let re = "";
805
- e.getTokenUrl ?? (e.getTokenUrl = () => Me(Wr(), "token")), re = e.getTokenUrl(d, `${window.location.origin}/authentication`, K, Q);
805
+ e.getTokenUrl ?? (e.getTokenUrl = () => Le(Wr(), "token")), re = e.getTokenUrl(d, `${window.location.origin}/authentication`, K, Q);
806
806
  const ie = {};
807
807
  ie.grant_type = K, ie.code = d, ie.redirect_uri = `${window.location.origin}/authentication`, ie.client_id = Q;
808
808
  const W = await Ar().post({
@@ -810,42 +810,42 @@ function Sn(e) {
810
810
  data: ie
811
811
  });
812
812
  x(W.access_token);
813
- }), await e.getToken(D, T);
813
+ }), await e.getToken(D, _);
814
814
  }
815
815
  function x(D) {
816
816
  if (D != null && (e.demo == null || !e.demo.isDemoing.value)) {
817
- const T = r(D);
818
- I(T, D), e.processTokenPayload != null && e.processTokenPayload(f, T);
817
+ const _ = r(D);
818
+ I(_, D), e.processTokenPayload != null && e.processTokenPayload(f, _);
819
819
  }
820
820
  }
821
- function I(D, T) {
821
+ function I(D, _) {
822
822
  var A;
823
823
  const d = f.value;
824
- d.expiresOn = D.ExpiresOn, d.isGlobalAdmin = D.IsGlobalAdmin == "True", d.isLoggedIn = !0, d.permissions = D.Permissions, d.subscriptionCode = D.Subscription, d.timeZone ?? (d.timeZone = e.defaultTimeZone ?? dr), d.token = T, d.userID = D.UserLoginID, d.userPermissions = ((A = D.Permissions) == null ? void 0 : A.split(",")) ?? [];
824
+ d.expiresOn = D.ExpiresOn, d.isGlobalAdmin = D.IsGlobalAdmin == "True", d.isLoggedIn = !0, d.permissions = D.Permissions, d.subscriptionCode = D.Subscription, d.timeZone ?? (d.timeZone = e.defaultTimeZone ?? dr), d.token = _, d.userID = D.UserLoginID, d.userPermissions = ((A = D.Permissions) == null ? void 0 : A.split(",")) ?? [];
825
825
  }
826
- function M() {
826
+ function L() {
827
827
  var D;
828
828
  f.value ?? (f.value = {}), (D = f.value).timeZone ?? (D.timeZone = e.defaultTimeZone ?? dr);
829
829
  }
830
830
  function w() {
831
831
  const D = j(f);
832
- return D.isLoggedIn && L() && (y(), window.location.href = o()), D.isLoggedIn;
832
+ return D.isLoggedIn && N() && (y(), window.location.href = o()), D.isLoggedIn;
833
833
  }
834
- function L() {
834
+ function N() {
835
835
  const D = j(f);
836
836
  if (D == null || D.expiresOn == null)
837
837
  return !0;
838
- const T = de.fromFormat(D.expiresOn, t), d = de.utc();
839
- return T <= d;
838
+ const _ = de.fromFormat(D.expiresOn, t), d = de.utc();
839
+ return _ <= d;
840
840
  }
841
- return M(), Er = {
841
+ return L(), Er = {
842
842
  authState: l,
843
843
  canEdit: g,
844
844
  canEditPermit: E,
845
845
  canView: P,
846
- canViewPermit: _,
846
+ canViewPermit: T,
847
847
  credentials: f,
848
- doShow: N,
848
+ doShow: M,
849
849
  doShowByNav: $,
850
850
  getAuthorizeUrl: o,
851
851
  getToken: c,
@@ -864,63 +864,63 @@ function An(e, t, l = {}) {
864
864
  stopPropagation: f = !1,
865
865
  axis: g = "both"
866
866
  } = l, E = { capture: l.capture ?? !0 };
867
- let P = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = [], o = [], h = Y(!1);
868
- function u(M) {
869
- j(b) && M.preventDefault(), j(f) && M.stopPropagation();
867
+ let P = { x: 0, y: 0 }, T = { x: 0, y: 0 }, M = { x: 0, y: 0 }, $ = [], o = [], h = Y(!1);
868
+ function u(L) {
869
+ j(b) && L.preventDefault(), j(f) && L.stopPropagation();
870
870
  }
871
- function r(M) {
871
+ function r(L) {
872
872
  var d;
873
873
  const w = j(e);
874
874
  if (!w)
875
875
  return;
876
- const L = w.$el, T = M.type === "touchstart" && M.touches.length > 0 ? M.touches[0] : M;
877
- N = { x: T.clientX, y: T.clientY }, _ = {
878
- x: L.offsetLeft,
879
- y: L.offsetTop
876
+ const N = w.$el, _ = L.type === "touchstart" && L.touches.length > 0 ? L.touches[0] : L;
877
+ M = { x: _.clientX, y: _.clientY }, T = {
878
+ x: N.offsetLeft,
879
+ y: N.offsetTop
880
880
  }, P = {
881
- x: L.offsetLeft,
882
- y: L.offsetTop
883
- }, ((d = l.onStart) == null ? void 0 : d.call(l, N, M)) !== !1 && (o.push(he("mousemove", y)), o.push(he("touchmove", y)), o.push(he("mouseup", S)), o.push(he("touchend", S)), u(M));
881
+ x: N.offsetLeft,
882
+ y: N.offsetTop
883
+ }, ((d = l.onStart) == null ? void 0 : d.call(l, M, L)) !== !1 && (o.push(he("mousemove", y)), o.push(he("touchmove", y)), o.push(he("mouseup", S)), o.push(he("touchend", S)), u(L));
884
884
  }
885
- function y(M) {
885
+ function y(L) {
886
886
  var A;
887
- if (!N || !j(e))
887
+ if (!M || !j(e))
888
888
  return;
889
- const D = M.type === "touchmove" && M.touches.length > 0 ? M.touches[0] : M;
890
- let T = D.clientX - N.x, d = D.clientY - N.y;
891
- (g === "x" || g === "both") && (P.x = _.x + T), (g === "y" || g === "both") && (P.y = _.y + d), (A = l.onMove) == null || A.call(l, P, M), u(M), c(P);
889
+ const D = L.type === "touchmove" && L.touches.length > 0 ? L.touches[0] : L;
890
+ let _ = D.clientX - M.x, d = D.clientY - M.y;
891
+ (g === "x" || g === "both") && (P.x = T.x + _), (g === "y" || g === "both") && (P.y = T.y + d), (A = l.onMove) == null || A.call(l, P, L), u(L), c(P);
892
892
  }
893
- function S(M) {
893
+ function S(L) {
894
894
  var w;
895
- document.documentElement.style.cursor = "", o.forEach((L) => {
896
- L();
897
- }), o.length = 0, (w = l.onEnd) == null || w.call(l, P, M), u(M);
895
+ document.documentElement.style.cursor = "", o.forEach((N) => {
896
+ N();
897
+ }), o.length = 0, (w = l.onEnd) == null || w.call(l, P, L), u(L);
898
898
  }
899
- function c(M) {
899
+ function c(L) {
900
900
  const w = j(e);
901
901
  if (!w)
902
902
  return;
903
- const L = w.$el;
904
- L.style.left = `${M.x}px`, L.style.top = `${M.y}px`;
903
+ const N = w.$el;
904
+ N.style.left = `${L.x}px`, N.style.top = `${L.y}px`;
905
905
  }
906
906
  function x() {
907
907
  if (j(h))
908
908
  return;
909
- const M = j(t);
910
- if (!M)
909
+ const L = j(t);
910
+ if (!L)
911
911
  return;
912
- const w = M.$el;
912
+ const w = L.$el;
913
913
  w.style.cursor = "move", $.push(he(w, "mousedown", r, E)), $.push(he(w, "touchstart", r, E)), h.value = !0;
914
914
  }
915
915
  function I() {
916
916
  if (!j(h))
917
917
  return;
918
- const M = j(t);
919
- if (!M)
918
+ const L = j(t);
919
+ if (!L)
920
920
  return;
921
- const w = M.$el;
922
- w.style.cursor = "", $.forEach((L) => {
923
- L();
921
+ const w = L.$el;
922
+ w.style.cursor = "", $.forEach((N) => {
923
+ N();
924
924
  }), $.length = 0, h.value = !1;
925
925
  }
926
926
  return {
@@ -931,25 +931,25 @@ function An(e, t, l = {}) {
931
931
  }
932
932
  const En = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
933
933
  function In(e, t = {}) {
934
- let l, b = t.handleWidth ?? 12, f = t.handleZIndex ?? 100, g = t.minWidth ?? 0, E = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, N = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, o, h = [];
934
+ let l, b = t.handleWidth ?? 12, f = t.handleZIndex ?? 100, g = t.minWidth ?? 0, E = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, T = t.maxHeight ?? Number.MAX_SAFE_INTEGER, M = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, o, h = [];
935
935
  const u = Y(!1);
936
936
  let r = [], y = [];
937
937
  const S = Y(!1), c = Y({ x: 0, y: 0 });
938
938
  let x = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, I = {};
939
- function M(W) {
940
- Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
939
+ function L(W) {
940
+ Ae(M) && W.preventDefault(), Ae($) && W.stopPropagation();
941
941
  }
942
942
  function w(W, Z) {
943
943
  h = Z.map(D), h.forEach((H) => W.$el.appendChild(H));
944
944
  }
945
- function L(W) {
945
+ function N(W) {
946
946
  h.forEach((Z) => W.$el.removeChild(Z));
947
947
  }
948
948
  function D(W) {
949
949
  const Z = b + "px", H = -b / 2 + "px", ae = f + 1, G = document.createElement("div");
950
950
  return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? f : ae).toString(), G.style.cursor = K(W), W.includes("t") && (G.style.top = H, G.style.height = Z, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = H, G.style.height = Z, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = H, G.style.width = Z, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = H, G.style.width = Z, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
951
951
  }
952
- function T(W) {
952
+ function _(W) {
953
953
  var ne;
954
954
  if (!h.some((fe) => fe == W.target))
955
955
  return;
@@ -962,10 +962,10 @@ function In(e, t = {}) {
962
962
  top: H.offsetTop,
963
963
  height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
964
964
  width: parseInt(window.getComputedStyle(H).getPropertyValue("width"))
965
- }, I = Lr(x), ((ne = t.onStart) == null ? void 0 : ne.call(t, c.value, W)) === !1)
965
+ }, I = Mr(x), ((ne = t.onStart) == null ? void 0 : ne.call(t, c.value, W)) === !1)
966
966
  return;
967
967
  let X = W.target;
968
- document.documentElement.style.cursor = K(X.dataset.handle), o = X.dataset.handle, y.push(he("mousemove", d)), y.push(he("mouseup", A)), y.push(he("touchmove", d)), y.push(he("touchend", A)), M(W);
968
+ document.documentElement.style.cursor = K(X.dataset.handle), o = X.dataset.handle, y.push(he("mousemove", d)), y.push(he("mouseup", A)), y.push(he("touchmove", d)), y.push(he("touchend", A)), L(W);
969
969
  }
970
970
  function d(W) {
971
971
  const Z = Ae(e);
@@ -975,11 +975,11 @@ function In(e, t = {}) {
975
975
  let X = G.clientX - c.value.x, ne = G.clientY - c.value.y;
976
976
  const fe = Ae(x);
977
977
  if (o.includes("t")) {
978
- const ce = Math.min(_, Math.max(P, (fe.height ?? 0) - ne));
978
+ const ce = Math.min(T, Math.max(P, (fe.height ?? 0) - ne));
979
979
  I.height = ce, I.top = (fe.top ?? 0) + ne;
980
980
  }
981
981
  if (o.includes("b")) {
982
- const ce = Math.min(_, Math.max(P, (fe.height ?? 0) + ne));
982
+ const ce = Math.min(T, Math.max(P, (fe.height ?? 0) + ne));
983
983
  I.height = ce;
984
984
  }
985
985
  if (o.includes("l")) {
@@ -990,7 +990,7 @@ function In(e, t = {}) {
990
990
  const ce = Math.min(E, Math.max(g, (fe.width ?? 0) + X));
991
991
  I.width = ce;
992
992
  }
993
- H.dispatchEvent(new CustomEvent("resize")), M(W), re(I);
993
+ H.dispatchEvent(new CustomEvent("resize")), L(W), re(I);
994
994
  }
995
995
  function A() {
996
996
  document.documentElement.style.cursor = "", o = null, y.forEach((W) => {
@@ -1064,13 +1064,13 @@ function In(e, t = {}) {
1064
1064
  if (S.value)
1065
1065
  return;
1066
1066
  const H = Ae(e);
1067
- H && (w(H, W ?? En), Q(Z), r.push(he(H.$el, "mousedown", T)), r.push(he(H.$el, "touchstart", T)), S.value = !0, l = Z);
1067
+ H && (w(H, W ?? En), Q(Z), r.push(he(H.$el, "mousedown", _)), r.push(he(H.$el, "touchstart", _)), S.value = !0, l = Z);
1068
1068
  }
1069
1069
  function we(W) {
1070
1070
  if (!S.value)
1071
1071
  return;
1072
1072
  const Z = Ae(e);
1073
- Z && (L(Z), Q(W), r.forEach((H) => {
1073
+ Z && (N(Z), Q(W), r.forEach((H) => {
1074
1074
  H();
1075
1075
  }), r.length = 0, S.value = !1);
1076
1076
  }
@@ -1081,13 +1081,13 @@ function In(e, t = {}) {
1081
1081
  };
1082
1082
  }
1083
1083
  function Dn(e) {
1084
- const t = (e == null ? void 0 : e.blade) ?? Y(null), l = (e == null ? void 0 : e.handle) ?? Y(null), b = Y(!1), f = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = Y((e == null ? void 0 : e.defaultVariant) ?? "page"), E = Y({}), { turnResizingOff: P, turnResizingOn: _ } = In(t), { turnDraggableOff: N, turnDraggableOn: $ } = An(t, l);
1084
+ const t = (e == null ? void 0 : e.blade) ?? Y(null), l = (e == null ? void 0 : e.handle) ?? Y(null), b = Y(!1), f = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = Y((e == null ? void 0 : e.defaultVariant) ?? "page"), E = Y({}), { turnResizingOff: P, turnResizingOn: T } = In(t), { turnDraggableOff: M, turnDraggableOn: $ } = An(t, l);
1085
1085
  Kt(t, (h) => {
1086
1086
  const u = h[0], { width: r } = u.contentRect;
1087
1087
  b.value = r < f;
1088
1088
  });
1089
1089
  function o(h) {
1090
- N(), h == "page" ? P(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (P(), _(void 0, h), $()) : h == "inline" && P();
1090
+ M(), h == "page" ? P(h) : h == "blade" ? T(["l", "r"], h) : h == "freestyle" ? (P(), T(void 0, h), $()) : h == "inline" && P();
1091
1091
  }
1092
1092
  return o(g.value), _e(g, (h) => o(h)), {
1093
1093
  isMobile: b,
@@ -1172,10 +1172,10 @@ function xn(e) {
1172
1172
  function P() {
1173
1173
  t.value.drawer = !t.value.drawer;
1174
1174
  }
1175
- function _() {
1175
+ function T() {
1176
1176
  t.value.drawerStick = !t.value.drawerStick;
1177
1177
  }
1178
- function N() {
1178
+ function M() {
1179
1179
  t.value.theme = t.value.theme == "dark" ? "light" : "dark", l != null && (l.global.name.value = t.value.theme);
1180
1180
  }
1181
1181
  function $() {
@@ -1192,8 +1192,8 @@ function xn(e) {
1192
1192
  resetCosmetics: g,
1193
1193
  setTemporaryColor: E,
1194
1194
  toggleDrawer: P,
1195
- toggleDrawerStick: _,
1196
- toggleLightDark: N,
1195
+ toggleDrawerStick: T,
1196
+ toggleLightDark: M,
1197
1197
  undoTemporaryColor: $
1198
1198
  }, Ir;
1199
1199
  }
@@ -1219,15 +1219,15 @@ function _n() {
1219
1219
  var P = [];
1220
1220
  for (let S = 0; S < l.length; S++) {
1221
1221
  const c = l[S];
1222
- var _ = {}, N = [];
1222
+ var T = {}, M = [];
1223
1223
  for (let x = 0; x < E.length; x++) {
1224
1224
  const I = E[x];
1225
1225
  var $ = null;
1226
- typeof I.value == "function" ? $ = I.value(c) : typeof I.value == "string" && ($ = br(c, I.value)), I.itemText != null ? _[I.header] = br($, I.itemText) : _[I.header] = $;
1226
+ typeof I.value == "function" ? $ = I.value(c) : typeof I.value == "string" && ($ = br(c, I.value)), I.itemText != null ? T[I.header] = br($, I.itemText) : T[I.header] = $;
1227
1227
  }
1228
- P.push(_), Te(N) && N.forEach((x) => {
1228
+ P.push(T), Te(M) && M.forEach((x) => {
1229
1229
  P.push(x);
1230
- }), N = [];
1230
+ }), M = [];
1231
1231
  }
1232
1232
  var o = [];
1233
1233
  if (o.push(E.map((S) => S.header).toString()), P.forEach((S) => {
@@ -1265,28 +1265,28 @@ function Tn(e) {
1265
1265
  function b() {
1266
1266
  return f().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
1267
1267
  }
1268
- function f(_, N) {
1269
- return _ == null ? t().setZone(e.getTimeZone()) : N ? de.fromFormat(_, N, { zone: e.getTimeZone() }) : de.fromISO(_, { zone: e.getTimeZone() });
1268
+ function f(T, M) {
1269
+ return T == null ? t().setZone(e.getTimeZone()) : M ? de.fromFormat(T, M, { zone: e.getTimeZone() }) : de.fromISO(T, { zone: e.getTimeZone() });
1270
1270
  }
1271
- function g(_, N, $) {
1272
- if (_ == null) {
1271
+ function g(T, M, $) {
1272
+ if (T == null) {
1273
1273
  const h = t().setZone(e.getTimeZone());
1274
- return N ? h.toFormat(N) : h.toString();
1274
+ return M ? h.toFormat(M) : h.toString();
1275
1275
  }
1276
- if (_ == "Invalid DateTime")
1276
+ if (T == "Invalid DateTime")
1277
1277
  return "";
1278
- const o = $ ? de.fromFormat(_, $, { zone: e.getTimeZone() }) : de.fromISO(_, { zone: e.getTimeZone() });
1279
- return N ? o.toFormat(N) : o == null ? void 0 : o.toString();
1278
+ const o = $ ? de.fromFormat(T, $, { zone: e.getTimeZone() }) : de.fromISO(T, { zone: e.getTimeZone() });
1279
+ return M ? o.toFormat(M) : o == null ? void 0 : o.toString();
1280
1280
  }
1281
- function E(_, N) {
1282
- return _ == null ? t() : N ? de.fromFormat(_, N) : de.fromISO(_);
1281
+ function E(T, M) {
1282
+ return T == null ? t() : M ? de.fromFormat(T, M) : de.fromISO(T);
1283
1283
  }
1284
- function P(_, N, $) {
1285
- if (_ == null)
1286
- return N ? t().toFormat(N) : t().toString();
1284
+ function P(T, M, $) {
1285
+ if (T == null)
1286
+ return M ? t().toFormat(M) : t().toString();
1287
1287
  {
1288
- const o = $ ? de.fromFormat(_, $) : de.fromISO(_);
1289
- return N ? o.toFormat(N) : o.toString();
1288
+ const o = $ ? de.fromFormat(T, $) : de.fromISO(T);
1289
+ return M ? o.toFormat(M) : o.toString();
1290
1290
  }
1291
1291
  }
1292
1292
  return Dr = {
@@ -1347,7 +1347,7 @@ function Cn(e) {
1347
1347
  });
1348
1348
  });
1349
1349
  }
1350
- function _(o) {
1350
+ function T(o) {
1351
1351
  if (l == null)
1352
1352
  throw new Error("no demo data available for this api");
1353
1353
  const h = g(o);
@@ -1362,7 +1362,7 @@ function Cn(e) {
1362
1362
  });
1363
1363
  });
1364
1364
  }
1365
- function N(o) {
1365
+ function M(o) {
1366
1366
  var r, y;
1367
1367
  if (l == null)
1368
1368
  throw new Error("no demo data available for this api");
@@ -1405,8 +1405,8 @@ function Cn(e) {
1405
1405
  data: l,
1406
1406
  deleteItem: E,
1407
1407
  get: P,
1408
- getAll: _,
1409
- post: N,
1408
+ getAll: T,
1409
+ post: M,
1410
1410
  patch: $
1411
1411
  }, xr;
1412
1412
  }
@@ -1465,10 +1465,10 @@ function Nn(e) {
1465
1465
  function P(d, A) {
1466
1466
  return t(d, "ccc dd LLL yyyy", A);
1467
1467
  }
1468
- function _(d, A) {
1468
+ function T(d, A) {
1469
1469
  return t(d, "ccc dd LLL @ hh:mm a", A);
1470
1470
  }
1471
- function N(d) {
1471
+ function M(d) {
1472
1472
  return new Intl.NumberFormat().format(d);
1473
1473
  }
1474
1474
  function $(d) {
@@ -1513,13 +1513,13 @@ function Nn(e) {
1513
1513
  function I(d, A) {
1514
1514
  return t(d, "dd LLL yyyy", A);
1515
1515
  }
1516
- function M(d, A) {
1516
+ function L(d, A) {
1517
1517
  return t(d, "dd LLL yyyy hh:mm a", A);
1518
1518
  }
1519
1519
  function w(d, A) {
1520
1520
  return t(d, "hh:mm a", A);
1521
1521
  }
1522
- function L(d) {
1522
+ function N(d) {
1523
1523
  return d == null ? "" : typeof d == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: d }).toFormat("T") : typeof d == "string" ? e.dates.tzString(d, "t") : "unknown";
1524
1524
  }
1525
1525
  const D = {
@@ -1529,8 +1529,8 @@ function Nn(e) {
1529
1529
  toDayMonth: g,
1530
1530
  toDayOfWeek: E,
1531
1531
  toDayShortDate: P,
1532
- toDayShortDateAndTime: _,
1533
- toDisplayNumber: N,
1532
+ toDayShortDateAndTime: T,
1533
+ toDisplayNumber: M,
1534
1534
  toDisplayNumberOver: $,
1535
1535
  toDisplayNumberSigned: o,
1536
1536
  toFormat: h,
@@ -1541,11 +1541,11 @@ function Nn(e) {
1541
1541
  toPercent: c,
1542
1542
  toPrettyCSV: x,
1543
1543
  toShortDate: I,
1544
- toShortDateAndTime: M,
1544
+ toShortDateAndTime: L,
1545
1545
  toTime: w,
1546
- toTimeOfDay: L
1546
+ toTimeOfDay: N
1547
1547
  };
1548
- function T(d) {
1548
+ function _(d) {
1549
1549
  if (d != null) {
1550
1550
  let A = d;
1551
1551
  if (A != null && D[A] != null)
@@ -1554,7 +1554,7 @@ function Nn(e) {
1554
1554
  return (A) => A;
1555
1555
  }
1556
1556
  return _r = {
1557
- findFilter: T,
1557
+ findFilter: _,
1558
1558
  ...D
1559
1559
  }, _r;
1560
1560
  }
@@ -1573,37 +1573,37 @@ var lt = { exports: {} };
1573
1573
  e.exports = l();
1574
1574
  })(function() {
1575
1575
  return function l(b, f, g) {
1576
- function E(N, $) {
1577
- if (!f[N]) {
1578
- if (!b[N]) {
1576
+ function E(M, $) {
1577
+ if (!f[M]) {
1578
+ if (!b[M]) {
1579
1579
  var o = typeof Qe == "function" && Qe;
1580
1580
  if (!$ && o)
1581
- return o(N, !0);
1581
+ return o(M, !0);
1582
1582
  if (P)
1583
- return P(N, !0);
1584
- var h = new Error("Cannot find module '" + N + "'");
1583
+ return P(M, !0);
1584
+ var h = new Error("Cannot find module '" + M + "'");
1585
1585
  throw h.code = "MODULE_NOT_FOUND", h;
1586
1586
  }
1587
- var u = f[N] = { exports: {} };
1588
- b[N][0].call(u.exports, function(r) {
1589
- var y = b[N][1][r];
1587
+ var u = f[M] = { exports: {} };
1588
+ b[M][0].call(u.exports, function(r) {
1589
+ var y = b[M][1][r];
1590
1590
  return E(y || r);
1591
1591
  }, u, u.exports, l, b, f, g);
1592
1592
  }
1593
- return f[N].exports;
1593
+ return f[M].exports;
1594
1594
  }
1595
- for (var P = typeof Qe == "function" && Qe, _ = 0; _ < g.length; _++)
1596
- E(g[_]);
1595
+ for (var P = typeof Qe == "function" && Qe, T = 0; T < g.length; T++)
1596
+ E(g[T]);
1597
1597
  return E;
1598
1598
  }({ 1: [function(l, b, f) {
1599
1599
  (function(g) {
1600
1600
  var E = g.MutationObserver || g.WebKitMutationObserver, P;
1601
1601
  if (E) {
1602
- var _ = 0, N = new E(r), $ = g.document.createTextNode("");
1603
- N.observe($, {
1602
+ var T = 0, M = new E(r), $ = g.document.createTextNode("");
1603
+ M.observe($, {
1604
1604
  characterData: !0
1605
1605
  }), P = function() {
1606
- $.data = _ = ++_ % 2;
1606
+ $.data = T = ++T % 2;
1607
1607
  };
1608
1608
  } else if (!g.setImmediate && typeof g.MessageChannel < "u") {
1609
1609
  var o = new g.MessageChannel();
@@ -1638,7 +1638,7 @@ var lt = { exports: {} };
1638
1638
  var g = l(1);
1639
1639
  function E() {
1640
1640
  }
1641
- var P = {}, _ = ["REJECTED"], N = ["FULFILLED"], $ = ["PENDING"];
1641
+ var P = {}, T = ["REJECTED"], M = ["FULFILLED"], $ = ["PENDING"];
1642
1642
  b.exports = o;
1643
1643
  function o(w) {
1644
1644
  if (typeof w != "function")
@@ -1647,19 +1647,19 @@ var lt = { exports: {} };
1647
1647
  }
1648
1648
  o.prototype.catch = function(w) {
1649
1649
  return this.then(null, w);
1650
- }, o.prototype.then = function(w, L) {
1651
- if (typeof w != "function" && this.state === N || typeof L != "function" && this.state === _)
1650
+ }, o.prototype.then = function(w, N) {
1651
+ if (typeof w != "function" && this.state === M || typeof N != "function" && this.state === T)
1652
1652
  return this;
1653
1653
  var D = new this.constructor(E);
1654
1654
  if (this.state !== $) {
1655
- var T = this.state === N ? w : L;
1656
- u(D, T, this.outcome);
1655
+ var _ = this.state === M ? w : N;
1656
+ u(D, _, this.outcome);
1657
1657
  } else
1658
- this.queue.push(new h(D, w, L));
1658
+ this.queue.push(new h(D, w, N));
1659
1659
  return D;
1660
1660
  };
1661
- function h(w, L, D) {
1662
- this.promise = w, typeof L == "function" && (this.onFulfilled = L, this.callFulfilled = this.otherCallFulfilled), typeof D == "function" && (this.onRejected = D, this.callRejected = this.otherCallRejected);
1661
+ function h(w, N, D) {
1662
+ this.promise = w, typeof N == "function" && (this.onFulfilled = N, this.callFulfilled = this.otherCallFulfilled), typeof D == "function" && (this.onRejected = D, this.callRejected = this.otherCallRejected);
1663
1663
  }
1664
1664
  h.prototype.callFulfilled = function(w) {
1665
1665
  P.resolve(this.promise, w);
@@ -1670,63 +1670,63 @@ var lt = { exports: {} };
1670
1670
  }, h.prototype.otherCallRejected = function(w) {
1671
1671
  u(this.promise, this.onRejected, w);
1672
1672
  };
1673
- function u(w, L, D) {
1673
+ function u(w, N, D) {
1674
1674
  g(function() {
1675
- var T;
1675
+ var _;
1676
1676
  try {
1677
- T = L(D);
1677
+ _ = N(D);
1678
1678
  } catch (d) {
1679
1679
  return P.reject(w, d);
1680
1680
  }
1681
- T === w ? P.reject(w, new TypeError("Cannot resolve promise with itself")) : P.resolve(w, T);
1681
+ _ === w ? P.reject(w, new TypeError("Cannot resolve promise with itself")) : P.resolve(w, _);
1682
1682
  });
1683
1683
  }
1684
- P.resolve = function(w, L) {
1685
- var D = S(r, L);
1684
+ P.resolve = function(w, N) {
1685
+ var D = S(r, N);
1686
1686
  if (D.status === "error")
1687
1687
  return P.reject(w, D.value);
1688
- var T = D.value;
1689
- if (T)
1690
- y(w, T);
1688
+ var _ = D.value;
1689
+ if (_)
1690
+ y(w, _);
1691
1691
  else {
1692
- w.state = N, w.outcome = L;
1692
+ w.state = M, w.outcome = N;
1693
1693
  for (var d = -1, A = w.queue.length; ++d < A; )
1694
- w.queue[d].callFulfilled(L);
1694
+ w.queue[d].callFulfilled(N);
1695
1695
  }
1696
1696
  return w;
1697
- }, P.reject = function(w, L) {
1698
- w.state = _, w.outcome = L;
1699
- for (var D = -1, T = w.queue.length; ++D < T; )
1700
- w.queue[D].callRejected(L);
1697
+ }, P.reject = function(w, N) {
1698
+ w.state = T, w.outcome = N;
1699
+ for (var D = -1, _ = w.queue.length; ++D < _; )
1700
+ w.queue[D].callRejected(N);
1701
1701
  return w;
1702
1702
  };
1703
1703
  function r(w) {
1704
- var L = w && w.then;
1705
- if (w && (typeof w == "object" || typeof w == "function") && typeof L == "function")
1704
+ var N = w && w.then;
1705
+ if (w && (typeof w == "object" || typeof w == "function") && typeof N == "function")
1706
1706
  return function() {
1707
- L.apply(w, arguments);
1707
+ N.apply(w, arguments);
1708
1708
  };
1709
1709
  }
1710
- function y(w, L) {
1710
+ function y(w, N) {
1711
1711
  var D = !1;
1712
- function T(Q) {
1712
+ function _(Q) {
1713
1713
  D || (D = !0, P.reject(w, Q));
1714
1714
  }
1715
1715
  function d(Q) {
1716
1716
  D || (D = !0, P.resolve(w, Q));
1717
1717
  }
1718
1718
  function A() {
1719
- L(d, T);
1719
+ N(d, _);
1720
1720
  }
1721
1721
  var K = S(A);
1722
- K.status === "error" && T(K.value);
1722
+ K.status === "error" && _(K.value);
1723
1723
  }
1724
- function S(w, L) {
1724
+ function S(w, N) {
1725
1725
  var D = {};
1726
1726
  try {
1727
- D.value = w(L), D.status = "success";
1728
- } catch (T) {
1729
- D.status = "error", D.value = T;
1727
+ D.value = w(N), D.status = "success";
1728
+ } catch (_) {
1729
+ D.status = "error", D.value = _;
1730
1730
  }
1731
1731
  return D;
1732
1732
  }
@@ -1736,45 +1736,45 @@ var lt = { exports: {} };
1736
1736
  }
1737
1737
  o.reject = x;
1738
1738
  function x(w) {
1739
- var L = new this(E);
1740
- return P.reject(L, w);
1739
+ var N = new this(E);
1740
+ return P.reject(N, w);
1741
1741
  }
1742
1742
  o.all = I;
1743
1743
  function I(w) {
1744
- var L = this;
1744
+ var N = this;
1745
1745
  if (Object.prototype.toString.call(w) !== "[object Array]")
1746
1746
  return this.reject(new TypeError("must be an array"));
1747
- var D = w.length, T = !1;
1747
+ var D = w.length, _ = !1;
1748
1748
  if (!D)
1749
1749
  return this.resolve([]);
1750
1750
  for (var d = new Array(D), A = 0, K = -1, Q = new this(E); ++K < D; )
1751
1751
  re(w[K], K);
1752
1752
  return Q;
1753
1753
  function re(ie, we) {
1754
- L.resolve(ie).then(W, function(Z) {
1755
- T || (T = !0, P.reject(Q, Z));
1754
+ N.resolve(ie).then(W, function(Z) {
1755
+ _ || (_ = !0, P.reject(Q, Z));
1756
1756
  });
1757
1757
  function W(Z) {
1758
- d[we] = Z, ++A === D && !T && (T = !0, P.resolve(Q, d));
1758
+ d[we] = Z, ++A === D && !_ && (_ = !0, P.resolve(Q, d));
1759
1759
  }
1760
1760
  }
1761
1761
  }
1762
- o.race = M;
1763
- function M(w) {
1764
- var L = this;
1762
+ o.race = L;
1763
+ function L(w) {
1764
+ var N = this;
1765
1765
  if (Object.prototype.toString.call(w) !== "[object Array]")
1766
1766
  return this.reject(new TypeError("must be an array"));
1767
- var D = w.length, T = !1;
1767
+ var D = w.length, _ = !1;
1768
1768
  if (!D)
1769
1769
  return this.resolve([]);
1770
1770
  for (var d = -1, A = new this(E); ++d < D; )
1771
1771
  K(w[d]);
1772
1772
  return A;
1773
1773
  function K(Q) {
1774
- L.resolve(Q).then(function(re) {
1775
- T || (T = !0, P.resolve(A, re));
1774
+ N.resolve(Q).then(function(re) {
1775
+ _ || (_ = !0, P.resolve(A, re));
1776
1776
  }, function(re) {
1777
- T || (T = !0, P.reject(A, re));
1777
+ _ || (_ = !0, P.reject(A, re));
1778
1778
  });
1779
1779
  }
1780
1780
  }
@@ -1808,10 +1808,10 @@ var lt = { exports: {} };
1808
1808
  return;
1809
1809
  }
1810
1810
  }
1811
- var _ = P();
1812
- function N() {
1811
+ var T = P();
1812
+ function M() {
1813
1813
  try {
1814
- if (!_ || !_.open)
1814
+ if (!T || !T.open)
1815
1815
  return !1;
1816
1816
  var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), i = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
1817
1817
  return (!n || i) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
@@ -1854,8 +1854,8 @@ var lt = { exports: {} };
1854
1854
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
1855
1855
  return arguments[arguments.length - 1];
1856
1856
  }
1857
- var S = "local-forage-detect-blob-support", c = void 0, x = {}, I = Object.prototype.toString, M = "readonly", w = "readwrite";
1858
- function L(n) {
1857
+ var S = "local-forage-detect-blob-support", c = void 0, x = {}, I = Object.prototype.toString, L = "readonly", w = "readwrite";
1858
+ function N(n) {
1859
1859
  for (var i = n.length, a = new ArrayBuffer(i), m = new Uint8Array(a), v = 0; v < i; v++)
1860
1860
  m[v] = n.charCodeAt(v);
1861
1861
  return a;
@@ -1873,7 +1873,7 @@ var lt = { exports: {} };
1873
1873
  return !1;
1874
1874
  });
1875
1875
  }
1876
- function T(n) {
1876
+ function _(n) {
1877
1877
  return typeof c == "boolean" ? o.resolve(c) : D(n).then(function(i) {
1878
1878
  return c = i, c;
1879
1879
  });
@@ -1905,7 +1905,7 @@ var lt = { exports: {} };
1905
1905
  return a(n.db);
1906
1906
  var v = [n.name];
1907
1907
  i && v.push(n.version);
1908
- var s = _.open.apply(_, v);
1908
+ var s = T.open.apply(T, v);
1909
1909
  i && (s.onupgradeneeded = function(C) {
1910
1910
  var R = s.result;
1911
1911
  try {
@@ -1959,7 +1959,7 @@ var lt = { exports: {} };
1959
1959
  });
1960
1960
  }
1961
1961
  function Z(n) {
1962
- var i = L(atob(n.data));
1962
+ var i = N(atob(n.data));
1963
1963
  return $([i], { type: n.type });
1964
1964
  }
1965
1965
  function H(n) {
@@ -2054,7 +2054,7 @@ var lt = { exports: {} };
2054
2054
  n = r(n);
2055
2055
  var m = new o(function(v, s) {
2056
2056
  a.ready().then(function() {
2057
- X(a._dbInfo, M, function(C, R) {
2057
+ X(a._dbInfo, L, function(C, R) {
2058
2058
  if (C)
2059
2059
  return s(C);
2060
2060
  try {
@@ -2076,7 +2076,7 @@ var lt = { exports: {} };
2076
2076
  function Ee(n, i) {
2077
2077
  var a = this, m = new o(function(v, s) {
2078
2078
  a.ready().then(function() {
2079
- X(a._dbInfo, M, function(C, R) {
2079
+ X(a._dbInfo, L, function(C, R) {
2080
2080
  if (C)
2081
2081
  return s(C);
2082
2082
  try {
@@ -2107,7 +2107,7 @@ var lt = { exports: {} };
2107
2107
  var v = new o(function(s, C) {
2108
2108
  var R;
2109
2109
  m.ready().then(function() {
2110
- return R = m._dbInfo, I.call(i) === "[object Blob]" ? T(R.db).then(function(B) {
2110
+ return R = m._dbInfo, I.call(i) === "[object Blob]" ? _(R.db).then(function(B) {
2111
2111
  return B ? i : W(i);
2112
2112
  }) : i;
2113
2113
  }).then(function(B) {
@@ -2183,7 +2183,7 @@ var lt = { exports: {} };
2183
2183
  function rr(n) {
2184
2184
  var i = this, a = new o(function(m, v) {
2185
2185
  i.ready().then(function() {
2186
- X(i._dbInfo, M, function(s, C) {
2186
+ X(i._dbInfo, L, function(s, C) {
2187
2187
  if (s)
2188
2188
  return v(s);
2189
2189
  try {
@@ -2208,7 +2208,7 @@ var lt = { exports: {} };
2208
2208
  return;
2209
2209
  }
2210
2210
  a.ready().then(function() {
2211
- X(a._dbInfo, M, function(C, R) {
2211
+ X(a._dbInfo, L, function(C, R) {
2212
2212
  if (C)
2213
2213
  return s(C);
2214
2214
  try {
@@ -2234,7 +2234,7 @@ var lt = { exports: {} };
2234
2234
  function Ce(n) {
2235
2235
  var i = this, a = new o(function(m, v) {
2236
2236
  i.ready().then(function() {
2237
- X(i._dbInfo, M, function(s, C) {
2237
+ X(i._dbInfo, L, function(s, C) {
2238
2238
  if (s)
2239
2239
  return v(s);
2240
2240
  try {
@@ -2283,7 +2283,7 @@ var lt = { exports: {} };
2283
2283
  z._dbInfo.db = null, z._dbInfo.version = B;
2284
2284
  }
2285
2285
  var p = new o(function(ee, ue) {
2286
- var le = _.open(n.name, B);
2286
+ var le = T.open(n.name, B);
2287
2287
  le.onerror = function(ge) {
2288
2288
  var He = le.result;
2289
2289
  He.close(), ue(ge);
@@ -2315,7 +2315,7 @@ var lt = { exports: {} };
2315
2315
  q._dbInfo.db = null;
2316
2316
  }
2317
2317
  var z = new o(function(p, ee) {
2318
- var ue = _.deleteDatabase(n.name);
2318
+ var ue = T.deleteDatabase(n.name);
2319
2319
  ue.onerror = function() {
2320
2320
  var le = ue.result;
2321
2321
  le && le.close(), ee(ue.error);
@@ -2343,7 +2343,7 @@ var lt = { exports: {} };
2343
2343
  var ar = {
2344
2344
  _driver: "asyncStorage",
2345
2345
  _initStorage: fe,
2346
- _support: N(),
2346
+ _support: M(),
2347
2347
  iterate: Ee,
2348
2348
  getItem: ce,
2349
2349
  setItem: Re,
@@ -2770,13 +2770,13 @@ var lt = { exports: {} };
2770
2770
  });
2771
2771
  return h(a, n), a;
2772
2772
  }
2773
- function Lt(n) {
2773
+ function Mt(n) {
2774
2774
  var i = this, a = i.keys().then(function(m) {
2775
2775
  return m.length;
2776
2776
  });
2777
2777
  return h(a, n), a;
2778
2778
  }
2779
- function Mt(n, i) {
2779
+ function Lt(n, i) {
2780
2780
  var a = this;
2781
2781
  n = r(n);
2782
2782
  var m = a.ready().then(function() {
@@ -2829,9 +2829,9 @@ var lt = { exports: {} };
2829
2829
  iterate: Ct,
2830
2830
  getItem: Tt,
2831
2831
  setItem: Rt,
2832
- removeItem: Mt,
2832
+ removeItem: Lt,
2833
2833
  clear: _t,
2834
- length: Lt,
2834
+ length: Mt,
2835
2835
  key: Pt,
2836
2836
  keys: Nt,
2837
2837
  dropInstance: Ut
@@ -3008,8 +3008,8 @@ var lt = { exports: {} };
3008
3008
  }, { 3: 3 }] }, {}, [4])(4);
3009
3009
  });
3010
3010
  })(lt);
3011
- var Ln = lt.exports;
3012
- const ut = /* @__PURE__ */ tn(Ln);
3011
+ var Mn = lt.exports;
3012
+ const ut = /* @__PURE__ */ tn(Mn);
3013
3013
  let Xe = null;
3014
3014
  ut.config({
3015
3015
  name: at()
@@ -3021,8 +3021,8 @@ function me() {
3021
3021
  function Ea() {
3022
3022
  async function e(f) {
3023
3023
  const g = me();
3024
- (await g.keys()).filter((_) => _.startsWith(f)).forEach((_) => {
3025
- g.removeItem(_);
3024
+ (await g.keys()).filter((T) => T.startsWith(f)).forEach((T) => {
3025
+ g.removeItem(T);
3026
3026
  });
3027
3027
  }
3028
3028
  async function t(f) {
@@ -3048,7 +3048,7 @@ function Ia(e) {
3048
3048
  function it(e) {
3049
3049
  return pe(e);
3050
3050
  }
3051
- function Mn(e) {
3051
+ function Ln(e) {
3052
3052
  return pe = (t) => Rn({
3053
3053
  ...e,
3054
3054
  ...t
@@ -3074,7 +3074,7 @@ function Rn(e) {
3074
3074
  }
3075
3075
  const Un = (e) => {
3076
3076
  let t = j(e.url) ?? void 0;
3077
- if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Me(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Me(t, e.id)), e.params != null) {
3077
+ if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Le(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Le(t, e.id)), e.params != null) {
3078
3078
  t ?? (t = "");
3079
3079
  let l = new URLSearchParams();
3080
3080
  Object.entries(e.params).sort(Fe.firstBy((f) => f[0])).forEach((f) => {
@@ -3105,16 +3105,16 @@ function Bn(e) {
3105
3105
  return l.value[y];
3106
3106
  try {
3107
3107
  let c = b.value[y];
3108
- c == null && (c = new Promise(async (I, M) => {
3108
+ c == null && (c = new Promise(async (I, L) => {
3109
3109
  var w;
3110
3110
  try {
3111
- let L = await ((w = e.api) == null ? void 0 : w.getAll(r));
3111
+ let N = await ((w = e.api) == null ? void 0 : w.getAll(r));
3112
3112
  f == !0 && await me().setItem(y, {
3113
3113
  meta: { storedOn: t },
3114
- ...L
3115
- }), I(L);
3116
- } catch (L) {
3117
- M(L);
3114
+ ...N
3115
+ }), I(N);
3116
+ } catch (N) {
3117
+ L(N);
3118
3118
  } finally {
3119
3119
  delete b.value[y];
3120
3120
  }
@@ -3126,7 +3126,7 @@ function Bn(e) {
3126
3126
  throw new Error(x.message ?? "Problem");
3127
3127
  }
3128
3128
  }
3129
- async function _(r) {
3129
+ async function T(r) {
3130
3130
  r.additionalUrl ?? (r.additionalUrl = "/get"), g(r);
3131
3131
  const y = E(r), S = r.refresh;
3132
3132
  if (!S && l.value[y] !== void 0)
@@ -3140,16 +3140,16 @@ function Bn(e) {
3140
3140
  return l.value[y];
3141
3141
  try {
3142
3142
  let c = b.value[y];
3143
- c == null && (c = new Promise(async (I, M) => {
3143
+ c == null && (c = new Promise(async (I, L) => {
3144
3144
  var w;
3145
3145
  try {
3146
- let L = await ((w = e.api) == null ? void 0 : w.get(r));
3146
+ let N = await ((w = e.api) == null ? void 0 : w.get(r));
3147
3147
  f == !0 && await me().setItem(y, {
3148
3148
  meta: { storedOn: t },
3149
- ...L
3150
- }), I(L);
3151
- } catch (L) {
3152
- M(L);
3149
+ ...N
3150
+ }), I(N);
3151
+ } catch (N) {
3152
+ L(N);
3153
3153
  } finally {
3154
3154
  delete b.value[y];
3155
3155
  }
@@ -3161,7 +3161,7 @@ function Bn(e) {
3161
3161
  throw new Error(x.message ?? "Problem");
3162
3162
  }
3163
3163
  }
3164
- async function N(r) {
3164
+ async function M(r) {
3165
3165
  r.additionalUrl ?? (r.additionalUrl = "/patch"), g(r);
3166
3166
  const y = E(r);
3167
3167
  let S;
@@ -3181,15 +3181,15 @@ function Bn(e) {
3181
3181
  meta: { storedOn: t },
3182
3182
  ...c
3183
3183
  })), S.id != null && S.rowVersion != null && Object.entries(l.value).forEach((I) => {
3184
- let M = I[1];
3185
- if (M = M.data, M != null)
3186
- if (Array.isArray(M))
3187
- for (let w = 0; w < M.length; w++) {
3188
- const L = M[w];
3189
- L.id == S.id && M.splice(w, 1, { ...L, ...S });
3184
+ let L = I[1];
3185
+ if (L = L.data, L != null)
3186
+ if (Array.isArray(L))
3187
+ for (let w = 0; w < L.length; w++) {
3188
+ const N = L[w];
3189
+ N.id == S.id && L.splice(w, 1, { ...N, ...S });
3190
3190
  }
3191
3191
  else
3192
- M.id == S.id && (l.value[I[0]].data = { ...M, ...S });
3192
+ L.id == S.id && (l.value[I[0]].data = { ...L, ...S });
3193
3193
  });
3194
3194
  }
3195
3195
  return S;
@@ -3239,9 +3239,9 @@ function Bn(e) {
3239
3239
  }
3240
3240
  return {
3241
3241
  deleteItem: o,
3242
- get: _,
3242
+ get: T,
3243
3243
  getAll: P,
3244
- patch: N,
3244
+ patch: M,
3245
3245
  post: $,
3246
3246
  restore: h,
3247
3247
  searchMemory: l
@@ -3252,12 +3252,12 @@ function Bn(e) {
3252
3252
  function Hr(e) {
3253
3253
  return pr(e.storeName, () => {
3254
3254
  const t = Y(), l = Y(0), b = de.utc().toSeconds() / 3600, f = Y(), g = Y(), E = Y({}), P = e.storageMode == "local-cache";
3255
- function _() {
3255
+ function T() {
3256
3256
  var c;
3257
3257
  return `${e.storeName}_${((c = e.auth) == null ? void 0 : c.credentials.value.userID) ?? "no-user-id"}`;
3258
3258
  }
3259
- async function N() {
3260
- P == !0 && await me().setItem(_(), {
3259
+ async function M() {
3260
+ P == !0 && await me().setItem(T(), {
3261
3261
  meta: g.value,
3262
3262
  data: t.value,
3263
3263
  count: l.value,
@@ -3265,38 +3265,38 @@ function Hr(e) {
3265
3265
  });
3266
3266
  }
3267
3267
  function $(c) {
3268
- const x = _();
3269
- return E.value[x] || (E.value[x] = new Promise(async (I, M) => {
3270
- var w, L;
3268
+ const x = T();
3269
+ return E.value[x] || (E.value[x] = new Promise(async (I, L) => {
3270
+ var w, N;
3271
3271
  try {
3272
- let D = await ((L = e.api) == null ? void 0 : L.getAll({
3272
+ let D = await ((N = e.api) == null ? void 0 : N.getAll({
3273
3273
  additionalUrl: "/getAll",
3274
3274
  nav: c.nav,
3275
3275
  params: {
3276
3276
  lastUpdate: ((w = g.value) == null ? void 0 : w.lastUpdate) ?? un()
3277
3277
  }
3278
3278
  }));
3279
- D == null ? M(D) : (t.value ?? (t.value = []), D.data.forEach((T) => {
3279
+ D == null ? L(D) : (t.value ?? (t.value = []), D.data.forEach((_) => {
3280
3280
  var A, K;
3281
- const d = t.value.findIndex((Q) => Q.id == T.id);
3282
- d >= 0 ? (A = t.value) == null || A.splice(d, 1, T) : (K = t.value) == null || K.push(T);
3281
+ const d = t.value.findIndex((Q) => Q.id == _.id);
3282
+ d >= 0 ? (A = t.value) == null || A.splice(d, 1, _) : (K = t.value) == null || K.push(_);
3283
3283
  }), l.value = t.value.length, g.value = {
3284
3284
  lastUpdate: de.utc().toString(),
3285
3285
  storedOn: b.toString()
3286
- }, await N(), I(D));
3286
+ }, await M(), I(D));
3287
3287
  } catch (D) {
3288
- M(D);
3288
+ L(D);
3289
3289
  } finally {
3290
3290
  delete E.value[x];
3291
3291
  }
3292
3292
  })), E.value[x];
3293
3293
  }
3294
3294
  async function o(c) {
3295
- var M, w, L;
3296
- const x = _(), I = c.refresh;
3295
+ var L, w, N;
3296
+ const x = T(), I = c.refresh;
3297
3297
  if (!I && t.value != null)
3298
3298
  return {
3299
- count: (M = t.value) == null ? void 0 : M.length,
3299
+ count: (L = t.value) == null ? void 0 : L.length,
3300
3300
  data: t.value,
3301
3301
  filters: []
3302
3302
  };
@@ -3311,7 +3311,7 @@ function Hr(e) {
3311
3311
  }
3312
3312
  if (e.api == null)
3313
3313
  return {
3314
- count: (L = t.value) == null ? void 0 : L.length,
3314
+ count: (N = t.value) == null ? void 0 : N.length,
3315
3315
  data: t.value ?? [],
3316
3316
  filters: f.value
3317
3317
  };
@@ -3319,25 +3319,25 @@ function Hr(e) {
3319
3319
  try {
3320
3320
  return await $(c);
3321
3321
  } catch (D) {
3322
- let T = D;
3323
- throw new Error(T.message ?? "Problem");
3322
+ let _ = D;
3323
+ throw new Error(_.message ?? "Problem");
3324
3324
  }
3325
3325
  }
3326
3326
  async function h(c) {
3327
- var w, L, D;
3328
- const x = _(), I = c.id ?? ((w = c.data) == null ? void 0 : w.id);
3327
+ var w, N, D;
3328
+ const x = T(), I = c.id ?? ((w = c.data) == null ? void 0 : w.id);
3329
3329
  if (I == null)
3330
3330
  throw new Error("no id provided");
3331
- let M = c.refresh;
3332
- if (!M && t.value != null) {
3333
- const T = t.value.find((d) => d.id == I);
3334
- if (T != null)
3335
- return { data: T };
3331
+ let L = c.refresh;
3332
+ if (!L && t.value != null) {
3333
+ const _ = t.value.find((d) => d.id == I);
3334
+ if (_ != null)
3335
+ return { data: _ };
3336
3336
  }
3337
- if (!M && P == !0) {
3338
- const T = await me().getItem(x);
3339
- if (T != null && parseFloat(T.meta.storedOn) > b - 12) {
3340
- t.value = T.data, l.value = T.data.length, f.value = T.filters ?? [], g.value = T.meta;
3337
+ if (!L && P == !0) {
3338
+ const _ = await me().getItem(x);
3339
+ if (_ != null && parseFloat(_.meta.storedOn) > b - 12) {
3340
+ t.value = _.data, l.value = _.data.length, f.value = _.filters ?? [], g.value = _.meta;
3341
3341
  let d = t.value.find((A) => A.id == c.id);
3342
3342
  if (d != null)
3343
3343
  return { data: d };
@@ -3345,38 +3345,38 @@ function Hr(e) {
3345
3345
  }
3346
3346
  if (e.api == null)
3347
3347
  return {
3348
- data: (L = t.value) == null ? void 0 : L.find((T) => T.id == c.id)
3348
+ data: (N = t.value) == null ? void 0 : N.find((_) => _.id == c.id)
3349
3349
  };
3350
3350
  t.value ?? (t.value = []);
3351
3351
  try {
3352
- return await $(c), { data: (D = t.value) == null ? void 0 : D.find((T) => T.id == c.id) };
3353
- } catch (T) {
3354
- let d = T;
3352
+ return await $(c), { data: (D = t.value) == null ? void 0 : D.find((_) => _.id == c.id) };
3353
+ } catch (_) {
3354
+ let d = _;
3355
3355
  throw new Error(d.message ?? "Problem");
3356
3356
  }
3357
3357
  }
3358
3358
  async function u(c) {
3359
- var I, M, w;
3359
+ var I, L, w;
3360
3360
  c.additionalUrl ?? (c.additionalUrl = "/patch");
3361
3361
  let x;
3362
3362
  if (e.api != null)
3363
3363
  try {
3364
- let L = await e.api.patch(c);
3365
- x = { ...c.data, ...L == null ? void 0 : L.data };
3366
- } catch (L) {
3367
- let D = L;
3364
+ let N = await e.api.patch(c);
3365
+ x = { ...c.data, ...N == null ? void 0 : N.data };
3366
+ } catch (N) {
3367
+ let D = N;
3368
3368
  throw new Error(D.message ?? "Patch Problem");
3369
3369
  }
3370
3370
  else
3371
3371
  x = c.data;
3372
3372
  if (x != null) {
3373
- let L = (I = t.value) == null ? void 0 : I.findIndex((D) => D.id == x.id);
3374
- L != null && L >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(L, 1, x), await N());
3373
+ let N = (I = t.value) == null ? void 0 : I.findIndex((D) => D.id == x.id);
3374
+ N != null && N >= 0 && (t.value ?? (t.value = []), (L = t.value) == null || L.splice(N, 1, x), await M());
3375
3375
  }
3376
- return (w = t.value) == null ? void 0 : w.find((L) => L.id == (c.id ?? c.data.id));
3376
+ return (w = t.value) == null ? void 0 : w.find((N) => N.id == (c.id ?? c.data.id));
3377
3377
  }
3378
3378
  async function r(c) {
3379
- var I, M;
3379
+ var I, L;
3380
3380
  c.additionalUrl ?? (c.additionalUrl = "/post");
3381
3381
  let x;
3382
3382
  if (e.api != null)
@@ -3384,28 +3384,28 @@ function Hr(e) {
3384
3384
  let w = await e.api.post(c);
3385
3385
  x = w == null ? void 0 : w.data;
3386
3386
  } catch (w) {
3387
- let L = w;
3388
- throw new Error(L.message ?? "Patch Problem");
3387
+ let N = w;
3388
+ throw new Error(N.message ?? "Patch Problem");
3389
3389
  }
3390
3390
  else
3391
3391
  x = c.data;
3392
- return x != null && (t.value ?? (t.value = []), (I = t.value) == null || I.unshift(x), l.value += 1, await N()), (M = t.value) == null ? void 0 : M.find((w) => w.id == (c.id ?? c.data.id));
3392
+ return x != null && (t.value ?? (t.value = []), (I = t.value) == null || I.unshift(x), l.value += 1, await M()), (L = t.value) == null ? void 0 : L.find((w) => w.id == (c.id ?? c.data.id));
3393
3393
  }
3394
3394
  async function y(c) {
3395
- var I, M;
3395
+ var I, L;
3396
3396
  if (c.additionalUrl ?? (c.additionalUrl = "/delete"), e.api != null)
3397
3397
  try {
3398
3398
  let w = await e.api.deleteItem(c);
3399
3399
  if (w != null)
3400
3400
  return w;
3401
3401
  } catch (w) {
3402
- let L = w;
3403
- throw new Error(L.message ?? "Patch Problem");
3402
+ let N = w;
3403
+ throw new Error(N.message ?? "Patch Problem");
3404
3404
  }
3405
3405
  const x = c.id ?? c.data.id;
3406
3406
  if (x != null) {
3407
- let w = (I = t.value) == null ? void 0 : I.findIndex((L) => L.id == x);
3408
- w != null && w >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(w, 1), await N());
3407
+ let w = (I = t.value) == null ? void 0 : I.findIndex((N) => N.id == x);
3408
+ w != null && w >= 0 && (t.value ?? (t.value = []), (L = t.value) == null || L.splice(w, 1), await M());
3409
3409
  }
3410
3410
  }
3411
3411
  async function S(c) {
@@ -3414,14 +3414,14 @@ function Hr(e) {
3414
3414
  try {
3415
3415
  await e.api.patch(c);
3416
3416
  } catch (I) {
3417
- let M = I;
3418
- throw new Error(M.message ?? "Patch Problem");
3417
+ let L = I;
3418
+ throw new Error(L.message ?? "Patch Problem");
3419
3419
  }
3420
3420
  try {
3421
3421
  c.additionalUrl = "/getAll", await $(c);
3422
3422
  } catch (I) {
3423
- let M = I;
3424
- throw new Error(M.message ?? "Problem");
3423
+ let L = I;
3424
+ throw new Error(L.message ?? "Problem");
3425
3425
  }
3426
3426
  return (x = t.value) == null ? void 0 : x.find((I) => I.id == (c.id ?? c.data.id));
3427
3427
  }
@@ -3442,12 +3442,12 @@ function $n(e, t) {
3442
3442
  l.value = g(P) != f;
3443
3443
  }, { deep: !0 });
3444
3444
  function g(P) {
3445
- const _ = Lr(P);
3446
- return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((N) => {
3447
- delete _[N];
3445
+ const T = Mr(P);
3446
+ return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((M) => {
3447
+ delete T[M];
3448
3448
  }) : t.propsToTrack != null && Object.keys(P).forEach(($) => {
3449
- t.propsToTrack.some((o) => o == $) || delete _[$];
3450
- })), JSON.stringify(_);
3449
+ t.propsToTrack.some((o) => o == $) || delete T[$];
3450
+ })), JSON.stringify(T);
3451
3451
  }
3452
3452
  function E() {
3453
3453
  f = g(j(b)), l.value = !1;
@@ -3463,29 +3463,29 @@ function Da(e, t) {
3463
3463
  const {
3464
3464
  // useBladeSrc = true,
3465
3465
  useRouteSrc: l = !0
3466
- } = t ?? {}, b = e.storeMode ?? (t == null ? void 0 : t.storeMode) ?? "session", f = e.storageMode ?? (t == null ? void 0 : t.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? "basic", E = Nr(), P = et(), _ = j(e.proxyQueryKey), N = te(() => {
3466
+ } = t ?? {}, b = e.storeMode ?? (t == null ? void 0 : t.storeMode) ?? "session", f = e.storageMode ?? (t == null ? void 0 : t.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? "basic", E = Nr(), P = et(), T = j(e.proxyQueryKey), M = te(() => {
3467
3467
  var G;
3468
- return j(e.proxyID) ?? (_ != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[_] : void 0);
3468
+ return j(e.proxyID) ?? (T != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[T] : void 0);
3469
3469
  }), $ = Y(void 0), { actionErrorMsg: o, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: S, saveItem: c } = nt({
3470
3470
  nav: g,
3471
- proxyID: N.value,
3471
+ proxyID: M.value,
3472
3472
  store: it({
3473
3473
  storeMode: b,
3474
3474
  storageMode: f,
3475
3475
  nav: g
3476
3476
  })
3477
- }), x = te(() => e.errorMsg ?? o.value), I = te(() => e.loadingMsg ?? h.value), M = te(() => I.value != null), w = Y(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), L = Y(w.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Le(!1), T = te(() => {
3478
- if (L.value == "new")
3477
+ }), x = te(() => e.errorMsg ?? o.value), I = te(() => e.loadingMsg ?? h.value), L = te(() => I.value != null), w = Y(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), N = Y(w.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Me(!1), _ = te(() => {
3478
+ if (N.value == "new")
3479
3479
  return !1;
3480
3480
  const G = j($);
3481
3481
  return e.onCanDelete != null ? e.onCanDelete(G) : (G == null ? void 0 : G.isInactive) !== !0;
3482
3482
  }), d = te(() => {
3483
- if (L.value == "new")
3483
+ if (N.value == "new")
3484
3484
  return !1;
3485
3485
  const G = j($);
3486
3486
  return e.onCanEdit != null ? e.onCanEdit(G) : !0;
3487
3487
  }), A = te(() => {
3488
- if (L.value == "new")
3488
+ if (N.value == "new")
3489
3489
  return !1;
3490
3490
  const G = j($);
3491
3491
  return e.onCanRestore != null ? e.onCanRestore(G) : (G == null ? void 0 : G.isInactive) === !0;
@@ -3542,7 +3542,7 @@ function Da(e, t) {
3542
3542
  additionalUrl: e.additionalUrl,
3543
3543
  id: w.value,
3544
3544
  nav: g,
3545
- proxyID: N.value,
3545
+ proxyID: M.value,
3546
3546
  params: e.params,
3547
3547
  // ...(useBladeSrc ? bladeData.value : {}),
3548
3548
  refresh: (G == null ? void 0 : G.deepRefresh) ?? !1,
@@ -3564,7 +3564,7 @@ function Da(e, t) {
3564
3564
  onCanSaveAsync: fe,
3565
3565
  onGetSaveAsync: ce,
3566
3566
  onSaveAsync: Ee,
3567
- onSaveSuccessAsync: Re = () => ((X == null ? void 0 : X.navBack) === !0 ? E.back() : L.value = "view", Promise.resolve(void 0))
3567
+ onSaveSuccessAsync: Re = () => ((X == null ? void 0 : X.navBack) === !0 ? E.back() : N.value = "view", Promise.resolve(void 0))
3568
3568
  } = { ...e };
3569
3569
  c({
3570
3570
  additionalUrl: ne,
@@ -3574,15 +3574,15 @@ function Da(e, t) {
3574
3574
  onGetSaveAsync: ce,
3575
3575
  onSaveAsync: Ee,
3576
3576
  onSaveSuccessAsync: Re,
3577
- proxyID: N.value,
3577
+ proxyID: M.value,
3578
3578
  // ...params.getOptions(),
3579
3579
  // ...(useBladeSrc ? bladeData.value : {}),
3580
- mode: L.value
3580
+ mode: N.value
3581
3581
  });
3582
3582
  }
3583
3583
  function H() {
3584
- const G = j(L);
3585
- !G || G == "view" ? L.value = "edit" : G == "edit" && (L.value = "view");
3584
+ const G = j(N);
3585
+ !G || G == "view" ? N.value = "edit" : G == "edit" && (N.value = "view");
3586
3586
  }
3587
3587
  return _e(x, (G) => {
3588
3588
  D.value = G != null;
@@ -3596,14 +3596,14 @@ function Da(e, t) {
3596
3596
  deleteItem: ie,
3597
3597
  errorMsg: x,
3598
3598
  isChanged: Q,
3599
- isDeletable: T,
3600
- isEditing: te(() => L.value == "new" || L.value == "edit"),
3599
+ isDeletable: _,
3600
+ isEditing: te(() => N.value == "new" || N.value == "edit"),
3601
3601
  isEditable: d,
3602
- isLoading: M,
3602
+ isLoading: L,
3603
3603
  isRestorable: A,
3604
3604
  isSaveable: K,
3605
3605
  loadingMsg: I,
3606
- mode: L,
3606
+ mode: N,
3607
3607
  refresh: W,
3608
3608
  restoreItem: we,
3609
3609
  saveItem: Z,
@@ -3650,14 +3650,14 @@ function Fn(e) {
3650
3650
  return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((S) => S == h));
3651
3651
  }) ?? null;
3652
3652
  }
3653
- function _(h) {
3653
+ function T(h) {
3654
3654
  const u = P(h);
3655
3655
  if (u == null)
3656
3656
  return;
3657
3657
  let r = yn(u.microservice ?? "default") ?? "";
3658
- return u.path != null && (r = Me(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3658
+ return u.path != null && (r = Le(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3659
3659
  }
3660
- function N(h) {
3660
+ function M(h) {
3661
3661
  const u = P(h);
3662
3662
  if ((u == null ? void 0 : u.singleName) != null)
3663
3663
  return u.singleName;
@@ -3689,28 +3689,28 @@ function Fn(e) {
3689
3689
  findIcon: E,
3690
3690
  findItem: P,
3691
3691
  findStoreName: $,
3692
- findPath: _,
3693
- findSingleDisplay: N,
3692
+ findPath: T,
3693
+ findSingleDisplay: M,
3694
3694
  updateNavigationProperties: o
3695
3695
  }, Tr;
3696
3696
  }
3697
3697
  function xa(e, t, l) {
3698
3698
  var Ge, We;
3699
- const b = _n(), f = ct(), g = Nr(), E = et(), { bladeData: P } = Dn({}), _ = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", o = e.storeMode ?? ((Ge = f.findItem($)) == null ? void 0 : Ge.storeMode) ?? "session", h = e.storageMode ?? ((We = f.findItem($)) == null ? void 0 : We.storageMode) ?? "local-cache", u = j(e.customFilters) ?? [], r = Y([]), y = te(() => Qt([
3699
+ const b = _n(), f = ct(), g = Nr(), E = et(), { bladeData: P } = Dn({}), T = e.useBladeSrc ?? !0, M = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", o = e.storeMode ?? ((Ge = f.findItem($)) == null ? void 0 : Ge.storeMode) ?? "session", h = e.storageMode ?? ((We = f.findItem($)) == null ? void 0 : We.storageMode) ?? "local-cache", u = j(e.customFilters) ?? [], r = Y([]), y = te(() => Qt([
3700
3700
  ...u.filter((U) => U.name != null).map((U) => U.name),
3701
3701
  ...e.defaultFilters ?? [],
3702
3702
  ...r.value
3703
3703
  ]).value), S = Y((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3704
3704
  let c = Y([...S.value]);
3705
- const x = te(() => Gr(c, S).value.length > 0 || Gr(S, c).value.length > 0), I = Y(M());
3706
- function M() {
3705
+ const x = te(() => Gr(c, S).value.length > 0 || Gr(S, c).value.length > 0), I = Y(L());
3706
+ function L() {
3707
3707
  var U, J;
3708
- if (_) {
3708
+ if (T) {
3709
3709
  const V = (U = P.value) == null ? void 0 : U.page;
3710
3710
  if (V != null)
3711
3711
  return Number.parseInt(V);
3712
3712
  }
3713
- if (N) {
3713
+ if (M) {
3714
3714
  const V = (J = E == null ? void 0 : E.query) == null ? void 0 : J.page;
3715
3715
  if (V != null)
3716
3716
  return Number.parseInt(typeof V == "string" ? V : V.toString());
@@ -3719,35 +3719,35 @@ function xa(e, t, l) {
3719
3719
  }
3720
3720
  const w = te(() => {
3721
3721
  var U, J;
3722
- if (_) {
3722
+ if (T) {
3723
3723
  const V = (U = P.value) == null ? void 0 : U.proxyID;
3724
3724
  if (V != null)
3725
3725
  return V;
3726
3726
  }
3727
- if (N) {
3727
+ if (M) {
3728
3728
  const V = (J = E == null ? void 0 : E.query) == null ? void 0 : J.query;
3729
3729
  if (V != null)
3730
3730
  return V;
3731
3731
  }
3732
3732
  return e.proxyID;
3733
- }), L = Y(D());
3733
+ }), N = Y(D());
3734
3734
  function D() {
3735
3735
  var U, J;
3736
- if (_) {
3736
+ if (T) {
3737
3737
  const V = (U = P.value) == null ? void 0 : U.search;
3738
3738
  if (V != null)
3739
3739
  return V;
3740
3740
  }
3741
- if (N) {
3741
+ if (M) {
3742
3742
  const V = (J = E == null ? void 0 : E.query) == null ? void 0 : J.search;
3743
3743
  if (V != null)
3744
3744
  return V;
3745
3745
  }
3746
3746
  }
3747
- const T = Y(j(e.startShowingInactive) ?? !1), d = te(() => [
3747
+ const _ = Y(j(e.startShowingInactive) ?? !1), d = te(() => [
3748
3748
  ...e.searchProps ?? [],
3749
3749
  ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3750
- ]), A = Y([]), K = Le([]), Q = Y([]);
3750
+ ]), A = Y([]), K = Me([]), Q = Y([]);
3751
3751
  let re;
3752
3752
  const { actionErrorMsg: ie, actionLoadingMsg: we, deleteItem: W, doAction: Z, getItem: H, getAllItems: ae, restoreItem: G } = nt({
3753
3753
  nav: $,
@@ -3757,7 +3757,7 @@ function xa(e, t, l) {
3757
3757
  storageMode: h,
3758
3758
  nav: $
3759
3759
  })
3760
- }), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Le(!1), Ee = Le(e.showSearch ?? !0), Re = Y(0), Ye = te(() => {
3760
+ }), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Me(!1), Ee = Me(e.showSearch ?? !0), Re = Y(0), Ye = te(() => {
3761
3761
  let U, J = [];
3762
3762
  S.value.forEach((O) => {
3763
3763
  const oe = y.value[O], ve = u.find((De) => De.name == oe);
@@ -3768,8 +3768,8 @@ function xa(e, t, l) {
3768
3768
  }), er = te(() => {
3769
3769
  var J;
3770
3770
  let U = e.params != null ? { ...e.params } : {};
3771
- return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (I.value - 1) * e.itemsPerPage), Ye.value != null && (U = { ...U, ...Ye.value }), T.value && (U.includeInactive = !0), Te(e.selectProps) && (U.properties = (J = e.selectProps) == null ? void 0 : J.toString()), L.value != null && (U.searchString = L.value), U;
3772
- }), rr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), tr = te(() => (U) => T.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Ce = te(() => Q.value.filter((U) => !U.hide)), nr = te(() => {
3771
+ return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (I.value - 1) * e.itemsPerPage), Ye.value != null && (U = { ...U, ...Ye.value }), _.value && (U.includeInactive = !0), Te(e.selectProps) && (U.properties = (J = e.selectProps) == null ? void 0 : J.toString()), N.value != null && (U.searchString = N.value), U;
3772
+ }), rr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), tr = te(() => (U) => _.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Ce = te(() => Q.value.filter((U) => !U.hide)), nr = te(() => {
3773
3773
  let U = new Array();
3774
3774
  return Ce.value.filter((V) => V.sublevel != null).forEach((V) => {
3775
3775
  let O = U.find((oe) => oe.position == V.sublevel);
@@ -3845,9 +3845,9 @@ function xa(e, t, l) {
3845
3845
  }
3846
3846
  function Pe() {
3847
3847
  let U = j(A);
3848
- if (U = e.onFilter ? e.onFilter(U) : U, L.value != null && L.value.length > 0) {
3848
+ if (U = e.onFilter ? e.onFilter(U) : U, N.value != null && N.value.length > 0) {
3849
3849
  let J = [...d.value];
3850
- e.itemText && J.push(e.itemText), Te(J) && (U = U.filter((V) => hn(V, L.value, J)));
3850
+ e.itemText && J.push(e.itemText), Te(J) && (U = U.filter((V) => hn(V, N.value, J)));
3851
3851
  }
3852
3852
  K.value = U;
3853
3853
  }
@@ -3856,7 +3856,7 @@ function xa(e, t, l) {
3856
3856
  e.headers != null && (Q.value = [...e.headers], U || Q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3857
3857
  }
3858
3858
  async function Ie(U) {
3859
- if (ce.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1, L.value = void 0), e.items != null) {
3859
+ if (ce.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1, N.value = void 0), e.items != null) {
3860
3860
  A.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3861
3861
  return;
3862
3862
  }
@@ -3906,11 +3906,11 @@ function xa(e, t, l) {
3906
3906
  }
3907
3907
  }
3908
3908
  function Je() {
3909
- Ee.value ? (Ee.value = e.showSearch ?? !1, L.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3909
+ Ee.value ? (Ee.value = e.showSearch ?? !1, N.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3910
3910
  }
3911
- return ke(), Xt([L], () => {
3911
+ return ke(), Xt([N], () => {
3912
3912
  Pe();
3913
- }, { debounce: 500, maxWait: 500 }), _e([T, I], async () => {
3913
+ }, { debounce: 500, maxWait: 500 }), _e([_, I], async () => {
3914
3914
  await Ie();
3915
3915
  }), _e([X, () => e.errorMsg], ([U, J]) => {
3916
3916
  ce.value = U != null || J != null;
@@ -3939,12 +3939,12 @@ function xa(e, t, l) {
3939
3939
  loadingMsg: ne,
3940
3940
  refresh: Ie,
3941
3941
  restoreItem: Ze,
3942
- searchString: L,
3942
+ searchString: N,
3943
3943
  selectedFilters: S,
3944
3944
  selectItem: ze,
3945
3945
  // serverFilters,
3946
3946
  showError: ce,
3947
- showInactive: T,
3947
+ showInactive: _,
3948
3948
  showSearch: Ee,
3949
3949
  subtitleOptions: nr,
3950
3950
  tableHeaders: Ce,
@@ -3972,25 +3972,25 @@ function _a() {
3972
3972
  const f = [];
3973
3973
  return b.forEach((E) => {
3974
3974
  var o;
3975
- const P = $e.groupOptions.value.find((h) => h.displayName == E.meta.menuGroup), _ = t.findItem(E.meta.nav), N = E.meta;
3976
- let $ = f.find((h) => h.displayName == N.menuGroup);
3975
+ const P = $e.groupOptions.value.find((h) => h.displayName == E.meta.menuGroup), T = t.findItem(E.meta.nav), M = E.meta;
3976
+ let $ = f.find((h) => h.displayName == M.menuGroup);
3977
3977
  $ == null && ($ = {
3978
- displayName: N.menuGroup,
3979
- icon: (P == null ? void 0 : P.icon) ?? (N == null ? void 0 : N.icon) ?? (_ == null ? void 0 : _.icon),
3978
+ displayName: M.menuGroup,
3979
+ icon: (P == null ? void 0 : P.icon) ?? (M == null ? void 0 : M.icon) ?? (T == null ? void 0 : T.icon),
3980
3980
  isGroup: !0,
3981
3981
  items: []
3982
3982
  }, f.push($)), (o = $.items) == null || o.push({
3983
- displayName: (N == null ? void 0 : N.displayName) ?? t.findDisplay(_ ?? void 0),
3984
- icon: (N == null ? void 0 : N.icon) ?? t.findIcon(_ ?? void 0),
3985
- permissions: (N == null ? void 0 : N.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
3986
- requiresAuth: (N == null ? void 0 : N.requiresAuth) !== !1,
3987
- subscriptions: (N == null ? void 0 : N.subscriptions) ?? (_ == null ? void 0 : _.subscriptions) ?? [],
3988
- subFilters: (N == null ? void 0 : N.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
3989
- routeName: (N == null ? void 0 : N.name) ?? (_ == null ? void 0 : _.name)
3983
+ displayName: (M == null ? void 0 : M.displayName) ?? t.findDisplay(T ?? void 0),
3984
+ icon: (M == null ? void 0 : M.icon) ?? t.findIcon(T ?? void 0),
3985
+ permissions: (M == null ? void 0 : M.permissions) ?? (T == null ? void 0 : T.permissions) ?? [],
3986
+ requiresAuth: (M == null ? void 0 : M.requiresAuth) !== !1,
3987
+ subscriptions: (M == null ? void 0 : M.subscriptions) ?? (T == null ? void 0 : T.subscriptions) ?? [],
3988
+ subFilters: (M == null ? void 0 : M.subFilters) ?? (T == null ? void 0 : T.subFilters) ?? [],
3989
+ routeName: E.name
3990
3990
  });
3991
3991
  }), f.forEach((E) => {
3992
3992
  var P;
3993
- E.items = (P = E.items) == null ? void 0 : P.filter((_) => !_.requiresAuth || l.doShow(_.subscriptions, _.permissions, "view")).sort(Fe.firstBy((_) => _.displayName));
3993
+ E.items = (P = E.items) == null ? void 0 : P.filter((T) => !T.requiresAuth || l.doShow(T.subscriptions, T.permissions, "view")).sort(Fe.firstBy((T) => T.displayName));
3994
3994
  }), $e.currentGroup.value != null ? ((g = f.find((E) => E.displayName == $e.currentGroup.value)) == null ? void 0 : g.items) ?? [] : f.filter((E) => !E.requiresAuth || l.doShow(E.subscriptions, E.permissions, "view"));
3995
3995
  })
3996
3996
  };
@@ -4053,10 +4053,10 @@ function Pa(e) {
4053
4053
  function Na(e) {
4054
4054
  return {
4055
4055
  install(t, l) {
4056
- var _;
4056
+ var T;
4057
4057
  console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), xn(e);
4058
4058
  const b = Cn(), f = Fn(e);
4059
- Gn(e), (_ = e.auth).demo ?? (_.demo = b), e.auth.getAuthItem = f.findItem;
4059
+ Gn(e), (T = e.auth).demo ?? (T.demo = b), e.auth.getAuthItem = f.findItem;
4060
4060
  const g = Sn(e.auth);
4061
4061
  kn(e.menu);
4062
4062
  const E = gn({
@@ -4068,7 +4068,7 @@ function Na(e) {
4068
4068
  });
4069
4069
  Nn({
4070
4070
  dates: P
4071
- }), Wn(), Mn({
4071
+ }), Wn(), Ln({
4072
4072
  api: E,
4073
4073
  auth: g,
4074
4074
  navigation: f
@@ -4079,12 +4079,12 @@ function Na(e) {
4079
4079
  export {
4080
4080
  oa as DataURIToBlob,
4081
4081
  la as addWeekday,
4082
- Me as appendUrl,
4082
+ Le as appendUrl,
4083
4083
  an as capitalizeWords,
4084
4084
  pn as checkImage,
4085
4085
  sn as containsSearch,
4086
4086
  aa as containsWeekday,
4087
- Lr as copyDeep,
4087
+ Mr as copyDeep,
4088
4088
  fn as copyItemByAlphabet,
4089
4089
  gn as createApi,
4090
4090
  Sn as createAuth,
@@ -4098,7 +4098,7 @@ export {
4098
4098
  Wn as createPWA,
4099
4099
  Gn as createPresets,
4100
4100
  Bn as createSessionStoreDefinition,
4101
- Mn as createStoreBuilder,
4101
+ Ln as createStoreBuilder,
4102
4102
  wn as createUrl,
4103
4103
  Hr as createWholeLastUpdateStoreDefinition,
4104
4104
  cn as csvContains,