bt-core-app 1.4.69 → 1.4.71

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.
@@ -1,7 +1,7 @@
1
1
  import { ref as z, shallowRef as Re, computed as te, toValue as K, watch as Te, toRef as Yt, onMounted as Xr } from "vue";
2
- import { watchArray as Or, useStorage as Zt, useEventListener as he, toValue as Ae, useParentElement as Jt, useResizeObserver as jt, useArrayUnique as Kt, useArrayDifference as Gr, watchDebounced as Qt, tryOnMounted as Xt } from "@vueuse/core";
2
+ import { watchArray as Or, useStorage as Zt, useEventListener as me, toValue as Ae, useParentElement as Jt, useResizeObserver as jt, useArrayUnique as Kt, useArrayDifference as Gr, watchDebounced as Qt, tryOnMounted as Xt } from "@vueuse/core";
3
3
  import { defineStore as pr } from "pinia";
4
- import { DateTime as de } from "luxon";
4
+ import { DateTime as he } from "luxon";
5
5
  import { useRouter as Mr, useRoute as et } from "vue-router";
6
6
  function Ot(e) {
7
7
  return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, pt);
@@ -35,13 +35,13 @@ function en(e) {
35
35
  let y = null;
36
36
  try {
37
37
  return u.requireConfirmation || u.confirmationMsg, y = await d(), u.completionMsg != null && (s.value = u.completionMsg), y;
38
- } catch (E) {
38
+ } catch (I) {
39
39
  if ((e == null ? void 0 : e.onError) != null)
40
- e.onError(E);
40
+ e.onError(I);
41
41
  else {
42
42
  if (u.throwError == !0)
43
- return E;
44
- _(u.errorMsg ?? E ?? "error");
43
+ return I;
44
+ _(u.errorMsg ?? I ?? "error");
45
45
  }
46
46
  } finally {
47
47
  x(r);
@@ -408,26 +408,26 @@ var nt = { exports: {} };
408
408
  };
409
409
  } else
410
410
  "document" in g && "onreadystatechange" in g.document.createElement("script") ? P = function() {
411
- var E = g.document.createElement("script");
412
- E.onreadystatechange = function() {
413
- r(), E.onreadystatechange = null, E.parentNode.removeChild(E), E = null;
414
- }, g.document.documentElement.appendChild(E);
411
+ var I = g.document.createElement("script");
412
+ I.onreadystatechange = function() {
413
+ r(), I.onreadystatechange = null, I.parentNode.removeChild(I), I = null;
414
+ }, g.document.documentElement.appendChild(I);
415
415
  } : P = function() {
416
416
  setTimeout(r, 0);
417
417
  };
418
418
  var h, u = [];
419
419
  function r() {
420
420
  h = !0;
421
- for (var E, i, I = u.length; I; ) {
422
- for (i = u, u = [], E = -1; ++E < I; )
423
- i[E]();
424
- I = u.length;
421
+ for (var I, i, E = u.length; E; ) {
422
+ for (i = u, u = [], I = -1; ++I < E; )
423
+ i[I]();
424
+ E = u.length;
425
425
  }
426
426
  h = !1;
427
427
  }
428
428
  S.exports = y;
429
- function y(E) {
430
- u.push(E) === 1 && !h && P();
429
+ function y(I) {
430
+ u.push(I) === 1 && !h && P();
431
431
  }
432
432
  }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
433
433
  }, {}], 2: [function(l, S, s) {
@@ -478,7 +478,7 @@ var nt = { exports: {} };
478
478
  });
479
479
  }
480
480
  P.resolve = function(b, T) {
481
- var D = E(r, T);
481
+ var D = I(r, T);
482
482
  if (D.status === "error")
483
483
  return P.reject(b, D.value);
484
484
  var L = D.value;
@@ -514,10 +514,10 @@ var nt = { exports: {} };
514
514
  function A() {
515
515
  T(f, L);
516
516
  }
517
- var J = E(A);
517
+ var J = I(A);
518
518
  J.status === "error" && L(J.value);
519
519
  }
520
- function E(b, T) {
520
+ function I(b, T) {
521
521
  var D = {};
522
522
  try {
523
523
  D.value = b(T), D.status = "success";
@@ -530,8 +530,8 @@ var nt = { exports: {} };
530
530
  function i(b) {
531
531
  return b instanceof this ? b : P.resolve(new this(x), b);
532
532
  }
533
- d.reject = I;
534
- function I(b) {
533
+ d.reject = E;
534
+ function E(b) {
535
535
  var T = new this(x);
536
536
  return P.reject(T, b);
537
537
  }
@@ -650,7 +650,7 @@ var nt = { exports: {} };
650
650
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
651
651
  return arguments[arguments.length - 1];
652
652
  }
653
- var E = "local-forage-detect-blob-support", i = void 0, I = {}, w = Object.prototype.toString, M = "readonly", b = "readwrite";
653
+ var I = "local-forage-detect-blob-support", i = void 0, E = {}, w = Object.prototype.toString, M = "readonly", b = "readwrite";
654
654
  function T(n) {
655
655
  for (var c = n.length, a = new ArrayBuffer(c), m = new Uint8Array(a), v = 0; v < c; v++)
656
656
  m[v] = n.charCodeAt(v);
@@ -658,8 +658,8 @@ var nt = { exports: {} };
658
658
  }
659
659
  function D(n) {
660
660
  return new d(function(c) {
661
- var a = n.transaction(E, b), m = $([""]);
662
- a.objectStore(E).put(m, "key"), a.onabort = function(v) {
661
+ var a = n.transaction(I, b), m = $([""]);
662
+ a.objectStore(I).put(m, "key"), a.onabort = function(v) {
663
663
  v.preventDefault(), v.stopPropagation(), c(!1);
664
664
  }, a.oncomplete = function() {
665
665
  var v = navigator.userAgent.match(/Chrome\/(\d+)/), o = navigator.userAgent.match(/Edge\//);
@@ -675,7 +675,7 @@ var nt = { exports: {} };
675
675
  });
676
676
  }
677
677
  function f(n) {
678
- var c = I[n.name], a = {};
678
+ var c = E[n.name], a = {};
679
679
  a.promise = new d(function(m, v) {
680
680
  a.resolve = m, a.reject = v;
681
681
  }), c.deferredOperations.push(a), c.dbReady ? c.dbReady = c.dbReady.then(function() {
@@ -683,18 +683,18 @@ var nt = { exports: {} };
683
683
  }) : c.dbReady = a.promise;
684
684
  }
685
685
  function A(n) {
686
- var c = I[n.name], a = c.deferredOperations.pop();
686
+ var c = E[n.name], a = c.deferredOperations.pop();
687
687
  if (a)
688
688
  return a.resolve(), a.promise;
689
689
  }
690
690
  function J(n, c) {
691
- var a = I[n.name], m = a.deferredOperations.pop();
691
+ var a = E[n.name], m = a.deferredOperations.pop();
692
692
  if (m)
693
693
  return m.reject(c), m.promise;
694
694
  }
695
695
  function Q(n, c) {
696
696
  return new d(function(a, m) {
697
- if (I[n.name] = I[n.name] || ne(), n.db)
697
+ if (E[n.name] = E[n.name] || ne(), n.db)
698
698
  if (c)
699
699
  f(n), n.db.close();
700
700
  else
@@ -705,7 +705,7 @@ var nt = { exports: {} };
705
705
  c && (o.onupgradeneeded = function(C) {
706
706
  var R = o.result;
707
707
  try {
708
- R.createObjectStore(n.storeName), C.oldVersion <= 1 && R.createObjectStore(E);
708
+ R.createObjectStore(n.storeName), C.oldVersion <= 1 && R.createObjectStore(I);
709
709
  } catch (B) {
710
710
  if (B.name === "ConstraintError")
711
711
  console.warn('The database "' + n.name + '" has been upgraded from version ' + C.oldVersion + " to version " + C.newVersion + ', but the storage "' + n.storeName + '" already exists.');
@@ -763,7 +763,7 @@ var nt = { exports: {} };
763
763
  }
764
764
  function ae(n) {
765
765
  var c = this, a = c._initReady().then(function() {
766
- var m = I[c._dbInfo.name];
766
+ var m = E[c._dbInfo.name];
767
767
  if (m && m.dbReady)
768
768
  return m.dbReady;
769
769
  });
@@ -771,7 +771,7 @@ var nt = { exports: {} };
771
771
  }
772
772
  function G(n) {
773
773
  f(n);
774
- for (var c = I[n.name], a = c.forages, m = 0; m < a.length; m++) {
774
+ for (var c = E[n.name], a = c.forages, m = 0; m < a.length; m++) {
775
775
  var v = a[m];
776
776
  v._dbInfo.db && (v._dbInfo.db.close(), v._dbInfo.db = null);
777
777
  }
@@ -822,8 +822,8 @@ var nt = { exports: {} };
822
822
  if (n)
823
823
  for (var m in n)
824
824
  a[m] = n[m];
825
- var v = I[a.name];
826
- v || (v = ne(), I[a.name] = v), v.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ae);
825
+ var v = E[a.name];
826
+ v || (v = ne(), E[a.name] = v), v.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ae);
827
827
  var o = [];
828
828
  function C() {
829
829
  return d.resolve();
@@ -869,7 +869,7 @@ var nt = { exports: {} };
869
869
  });
870
870
  return h(m, c), m;
871
871
  }
872
- function Ie(n, c) {
872
+ function Ee(n, c) {
873
873
  var a = this, m = new d(function(v, o) {
874
874
  a.ready().then(function() {
875
875
  X(a._dbInfo, M, function(C, R) {
@@ -1062,7 +1062,7 @@ var nt = { exports: {} };
1062
1062
  v = d.reject("Invalid arguments");
1063
1063
  else {
1064
1064
  var o = n.name === a.name && m._dbInfo.db, C = o ? d.resolve(m._dbInfo.db) : ee(n).then(function(R) {
1065
- var B = I[n.name], F = B.forages;
1065
+ var B = E[n.name], F = B.forages;
1066
1066
  B.db = R;
1067
1067
  for (var k = 0; k < F.length; k++)
1068
1068
  F[k]._dbInfo.db = R;
@@ -1072,7 +1072,7 @@ var nt = { exports: {} };
1072
1072
  if (R.objectStoreNames.contains(n.storeName)) {
1073
1073
  var B = R.version + 1;
1074
1074
  f(n);
1075
- var F = I[n.name], k = F.forages;
1075
+ var F = E[n.name], k = F.forages;
1076
1076
  R.close();
1077
1077
  for (var q = 0; q < k.length; q++) {
1078
1078
  var Z = k[q];
@@ -1104,7 +1104,7 @@ var nt = { exports: {} };
1104
1104
  }
1105
1105
  }) : v = C.then(function(R) {
1106
1106
  f(n);
1107
- var B = I[n.name], F = B.forages;
1107
+ var B = E[n.name], F = B.forages;
1108
1108
  R.close();
1109
1109
  for (var k = 0; k < F.length; k++) {
1110
1110
  var q = F[k];
@@ -1140,7 +1140,7 @@ var nt = { exports: {} };
1140
1140
  _driver: "asyncStorage",
1141
1141
  _initStorage: fe,
1142
1142
  _support: N(),
1143
- iterate: Ie,
1143
+ iterate: Ee,
1144
1144
  getItem: ce,
1145
1145
  setItem: $e,
1146
1146
  removeItem: Ce,
@@ -1153,7 +1153,7 @@ var nt = { exports: {} };
1153
1153
  function ur() {
1154
1154
  return typeof openDatabase == "function";
1155
1155
  }
1156
- var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ee = "blob", Je = "si08", je = "ui08", qe = "uic8", He = "si16", U = "si32", j = "ur16", V = "ui32", O = "fl32", oe = "fl64", ve = Ne + We.length, De = Object.prototype.toString;
1156
+ var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", He = "si16", U = "si32", j = "ur16", V = "ui32", O = "fl32", de = "fl64", ge = Ne + We.length, De = Object.prototype.toString;
1157
1157
  function Se(n) {
1158
1158
  var c = n.length * 0.75, a = n.length, m, v = 0, o, C, R, B;
1159
1159
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
@@ -1172,12 +1172,12 @@ var nt = { exports: {} };
1172
1172
  var a = "";
1173
1173
  if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
1174
1174
  var m, v = Fe;
1175
- n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += He : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += V : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
1175
+ n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += He : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += V : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += de : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
1176
1176
  } else if (a === "[object Blob]") {
1177
1177
  var o = new FileReader();
1178
1178
  o.onload = function() {
1179
1179
  var C = ir + n.type + "~" + se(this.result);
1180
- c(Fe + Ee + C);
1180
+ c(Fe + Ie + C);
1181
1181
  }, o.readAsArrayBuffer(n);
1182
1182
  } else
1183
1183
  try {
@@ -1189,8 +1189,8 @@ var nt = { exports: {} };
1189
1189
  function ct(n) {
1190
1190
  if (n.substring(0, Ne) !== Fe)
1191
1191
  return JSON.parse(n);
1192
- var c = n.substring(ve), a = n.substring(Ne, ve), m;
1193
- if (a === Ee && Ze.test(c)) {
1192
+ var c = n.substring(ge), a = n.substring(Ne, ge), m;
1193
+ if (a === Ie && Ze.test(c)) {
1194
1194
  var v = c.match(Ze);
1195
1195
  m = v[1], c = c.substring(v[0].length);
1196
1196
  }
@@ -1198,7 +1198,7 @@ var nt = { exports: {} };
1198
1198
  switch (a) {
1199
1199
  case We:
1200
1200
  return o;
1201
- case Ee:
1201
+ case Ie:
1202
1202
  return $([o], { type: m });
1203
1203
  case Je:
1204
1204
  return new Int8Array(o);
@@ -1216,7 +1216,7 @@ var nt = { exports: {} };
1216
1216
  return new Uint32Array(o);
1217
1217
  case O:
1218
1218
  return new Float32Array(o);
1219
- case oe:
1219
+ case de:
1220
1220
  return new Float64Array(o);
1221
1221
  default:
1222
1222
  throw new Error("Unkown type: " + a);
@@ -1495,7 +1495,7 @@ var nt = { exports: {} };
1495
1495
  var a = n.name + "/";
1496
1496
  return n.storeName !== c.storeName && (a += n.storeName + "/"), a;
1497
1497
  }
1498
- function It() {
1498
+ function Et() {
1499
1499
  var n = "_localforage_support_test";
1500
1500
  try {
1501
1501
  return localStorage.setItem(n, !0), localStorage.removeItem(n), !1;
@@ -1503,15 +1503,15 @@ var nt = { exports: {} };
1503
1503
  return !0;
1504
1504
  }
1505
1505
  }
1506
- function Et() {
1507
- return !It() || localStorage.length > 0;
1506
+ function It() {
1507
+ return !Et() || localStorage.length > 0;
1508
1508
  }
1509
1509
  function Dt(n) {
1510
1510
  var c = this, a = {};
1511
1511
  if (n)
1512
1512
  for (var m in n)
1513
1513
  a[m] = n[m];
1514
- return a.keyPrefix = Br(n, c._defaultConfig), Et() ? (c._dbInfo = a, a.serializer = cr, d.resolve()) : d.reject();
1514
+ return a.keyPrefix = Br(n, c._defaultConfig), It() ? (c._dbInfo = a, a.serializer = cr, d.resolve()) : d.reject();
1515
1515
  }
1516
1516
  function xt(n) {
1517
1517
  var c = this, a = c.ready().then(function() {
@@ -1806,46 +1806,51 @@ var nt = { exports: {} };
1806
1806
  })(nt);
1807
1807
  var vn = nt.exports;
1808
1808
  const at = /* @__PURE__ */ rn(vn);
1809
- let ge;
1809
+ let oe;
1810
1810
  function lt() {
1811
- return (ge[ge.environment] ?? ge.development).localDbName ?? ge.environment;
1811
+ const e = oe.getEnv();
1812
+ return oe == null ? e : (oe[e] ?? oe.development).localDbName ?? e;
1812
1813
  }
1813
1814
  function Wr() {
1814
- return (ge[ge.environment] ?? ge.development).auth ?? "";
1815
+ const e = oe.getEnv();
1816
+ return console.log(`env var: ${e}`), oe == null ? "" : (oe[e] ?? oe.development).auth ?? "";
1815
1817
  }
1816
1818
  function gn(e) {
1817
- const t = ge[ge.environment] ?? ge.development;
1818
- return e == null ? t.data ?? "" : t.other[e] ?? t.data ?? "";
1819
+ const t = oe.getEnv();
1820
+ if (oe == null)
1821
+ return "";
1822
+ const l = oe[t] ?? oe.development;
1823
+ return e == null ? l.data ?? "" : l.other[e] ?? l.data ?? "";
1819
1824
  }
1820
1825
  function ha() {
1821
- return ge;
1826
+ return oe;
1822
1827
  }
1823
1828
  function yn(e) {
1824
- return ge = e, ge;
1829
+ return oe = e, oe;
1825
1830
  }
1826
1831
  let Oe = null;
1827
1832
  at.config({
1828
1833
  name: lt()
1829
1834
  });
1830
- function me() {
1835
+ function ve() {
1831
1836
  const e = lt();
1832
1837
  return (Oe == null || Oe.config.name != e) && (Oe = at.createInstance({ name: e })), Oe;
1833
1838
  }
1834
1839
  function ma() {
1835
1840
  async function e(s) {
1836
- const g = me();
1841
+ const g = ve();
1837
1842
  (await g.keys()).filter((_) => _.startsWith(s)).forEach((_) => {
1838
1843
  g.removeItem(_);
1839
1844
  });
1840
1845
  }
1841
1846
  async function t(s) {
1842
- return await me().getItem(s);
1847
+ return await ve().getItem(s);
1843
1848
  }
1844
1849
  async function l(s) {
1845
- return await me().removeItem(s);
1850
+ return await ve().removeItem(s);
1846
1851
  }
1847
1852
  async function S(s, g) {
1848
- await me().setItem(g, s);
1853
+ await ve().setItem(g, s);
1849
1854
  }
1850
1855
  return {
1851
1856
  clearAsync: e,
@@ -1896,20 +1901,20 @@ const Sn = (e) => {
1896
1901
  function An(e) {
1897
1902
  return pr(e.storeName, () => {
1898
1903
  var u;
1899
- const t = de.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Sn;
1904
+ const t = he.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Sn;
1900
1905
  function x(r) {
1901
- var i, I;
1906
+ var i, E;
1902
1907
  let y = "";
1903
- const E = r.params ?? {};
1904
- return E != null && (y = Object.entries(E).sort(Ue.firstBy((w) => w[0])).map((w) => `${w[0]}=${JSON.stringify(w[1])}`).join("&")), `${e.storeName ?? "base"}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((I = r.data) == null ? void 0 : I.id) ?? "no-item-id"}_${y ?? "no-params"}`;
1908
+ const I = r.params ?? {};
1909
+ return I != null && (y = Object.entries(I).sort(Ue.firstBy((w) => w[0])).map((w) => `${w[0]}=${JSON.stringify(w[1])}`).join("&")), `${e.storeName ?? "base"}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}_${y ?? "no-params"}`;
1905
1910
  }
1906
1911
  async function P(r) {
1907
1912
  r.additionalUrl ?? (r.additionalUrl = "/getAll"), g(r);
1908
- const y = x(r), E = r.refresh;
1909
- if (!E && l.value[y] !== void 0)
1913
+ const y = x(r), I = r.refresh;
1914
+ if (!I && l.value[y] !== void 0)
1910
1915
  return l.value[y];
1911
- if (!E && s == !0) {
1912
- const i = await me().getItem(y);
1916
+ if (!I && s == !0) {
1917
+ const i = await ve().getItem(y);
1913
1918
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1914
1919
  return l.value[y] = i, i;
1915
1920
  }
@@ -1926,18 +1931,18 @@ function An(e) {
1926
1931
  count: T == null ? void 0 : T.count,
1927
1932
  filters: (T == null ? void 0 : T.filters) ?? []
1928
1933
  };
1929
- s == !0 && await me().setItem(y, D), w(D);
1934
+ s == !0 && await ve().setItem(y, D), w(D);
1930
1935
  } catch (T) {
1931
1936
  M(T);
1932
1937
  } finally {
1933
1938
  delete S.value[y];
1934
1939
  }
1935
1940
  }), S.value[y] = i);
1936
- const I = await i;
1937
- return l.value[y] = I, {
1938
- data: I == null ? void 0 : I.data,
1939
- filters: I == null ? void 0 : I.filters,
1940
- count: I == null ? void 0 : I.count
1941
+ const E = await i;
1942
+ return l.value[y] = E, {
1943
+ data: E == null ? void 0 : E.data,
1944
+ filters: E == null ? void 0 : E.filters,
1945
+ count: E == null ? void 0 : E.count
1941
1946
  };
1942
1947
  } catch (i) {
1943
1948
  throw i;
@@ -1945,11 +1950,11 @@ function An(e) {
1945
1950
  }
1946
1951
  async function _(r) {
1947
1952
  r.additionalUrl ?? (r.additionalUrl = "/get"), g(r);
1948
- const y = x(r), E = r.refresh;
1949
- if (!E && l.value[y] !== void 0)
1953
+ const y = x(r), I = r.refresh;
1954
+ if (!I && l.value[y] !== void 0)
1950
1955
  return l.value[y];
1951
- if (!E && s == !0) {
1952
- const i = await me().getItem(y);
1956
+ if (!I && s == !0) {
1957
+ const i = await ve().getItem(y);
1953
1958
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1954
1959
  return l.value[y] = i, { data: i.data };
1955
1960
  }
@@ -1965,15 +1970,15 @@ function An(e) {
1965
1970
  meta: { storedOn: t.toString() },
1966
1971
  data: T == null ? void 0 : T.data
1967
1972
  };
1968
- s == !0 && await me().setItem(y, D), w(D);
1973
+ s == !0 && await ve().setItem(y, D), w(D);
1969
1974
  } catch (T) {
1970
1975
  M(T);
1971
1976
  } finally {
1972
1977
  delete S.value[y];
1973
1978
  }
1974
1979
  }), S.value[y] = i);
1975
- const I = await i;
1976
- return l.value[y] = I, { data: I.data };
1980
+ const E = await i;
1981
+ return l.value[y] = E, { data: E.data };
1977
1982
  } catch (i) {
1978
1983
  throw i;
1979
1984
  }
@@ -1982,54 +1987,54 @@ function An(e) {
1982
1987
  var i;
1983
1988
  r.additionalUrl ?? (r.additionalUrl = "/patch"), g(r);
1984
1989
  const y = x(r);
1985
- let E;
1990
+ let I;
1986
1991
  if (e.api != null)
1987
1992
  try {
1988
- let I = await e.api.patch(r);
1989
- E = I == null ? void 0 : I.data;
1990
- } catch (I) {
1991
- throw I;
1993
+ let E = await e.api.patch(r);
1994
+ I = E == null ? void 0 : E.data;
1995
+ } catch (E) {
1996
+ throw E;
1992
1997
  }
1993
1998
  else
1994
- E = r.data;
1995
- if (E != null) {
1996
- let I = {
1999
+ I = r.data;
2000
+ if (I != null) {
2001
+ let E = {
1997
2002
  meta: { storedOn: t.toString() },
1998
- data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...E }
2003
+ data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...I }
1999
2004
  };
2000
- return l.value[y] = I, s == !0 && await me().setItem(y, I), E.id != null && E.rowVersion != null && Object.entries(l.value).forEach((M) => {
2005
+ return l.value[y] = E, s == !0 && await ve().setItem(y, E), I.id != null && I.rowVersion != null && Object.entries(l.value).forEach((M) => {
2001
2006
  const b = M[1].data;
2002
2007
  if (b != null)
2003
2008
  if (Array.isArray(b))
2004
2009
  for (let T = 0; T < b.length; T++)
2005
- b[T].id == E.id && b.splice(T, 1, I.data);
2010
+ b[T].id == I.id && b.splice(T, 1, E.data);
2006
2011
  else
2007
- b.id == E.id && (l.value[M[0]] = I);
2008
- }), I.data;
2012
+ b.id == I.id && (l.value[M[0]] = E);
2013
+ }), E.data;
2009
2014
  }
2010
- return E;
2015
+ return I;
2011
2016
  }
2012
2017
  async function $(r) {
2013
2018
  r.additionalUrl ?? (r.additionalUrl = "/post"), g(r);
2014
2019
  const y = x(r);
2015
- let E;
2020
+ let I;
2016
2021
  if (e.api != null)
2017
2022
  try {
2018
2023
  let i = await e.api.post(r);
2019
- E = i == null ? void 0 : i.data;
2024
+ I = i == null ? void 0 : i.data;
2020
2025
  } catch (i) {
2021
2026
  throw i;
2022
2027
  }
2023
2028
  else
2024
- E = r.data;
2025
- if (E != null) {
2029
+ I = r.data;
2030
+ if (I != null) {
2026
2031
  let i = {
2027
2032
  meta: { storedOn: t.toString() },
2028
- data: E
2033
+ data: I
2029
2034
  };
2030
- return s == !0 && await me().setItem(y, i), l.value[y] = i, i.data;
2035
+ return s == !0 && await ve().setItem(y, i), l.value[y] = i, i.data;
2031
2036
  }
2032
- return E;
2037
+ return I;
2033
2038
  }
2034
2039
  async function d(r) {
2035
2040
  var i;
@@ -2037,23 +2042,23 @@ function An(e) {
2037
2042
  const y = x(r);
2038
2043
  if (e.api != null)
2039
2044
  try {
2040
- let I = await e.api.deleteItem(r);
2041
- if (I != null)
2042
- return I;
2043
- } catch (I) {
2044
- throw I;
2045
+ let E = await e.api.deleteItem(r);
2046
+ if (E != null)
2047
+ return E;
2048
+ } catch (E) {
2049
+ throw E;
2045
2050
  }
2046
2051
  delete l.value[y];
2047
- const E = ((i = r.data) == null ? void 0 : i.id) ?? r.id;
2048
- E != null && Object.entries(l.value).forEach((w) => {
2052
+ const I = ((i = r.data) == null ? void 0 : i.id) ?? r.id;
2053
+ I != null && Object.entries(l.value).forEach((w) => {
2049
2054
  const M = w[1].data;
2050
2055
  if (M != null)
2051
2056
  if (Array.isArray(M))
2052
2057
  for (let b = 0; b < M.length; b++)
2053
- M[b].id == E && M.splice(b, 1);
2058
+ M[b].id == I && M.splice(b, 1);
2054
2059
  else
2055
2060
  delete l.value[w[0]];
2056
- }), s == !0 && await me().removeItem(y);
2061
+ }), s == !0 && await ve().removeItem(y);
2057
2062
  }
2058
2063
  async function h(r) {
2059
2064
  if (r.additionalUrl ?? (r.additionalUrl = `/patch/restore?id=${r.data.id}`), g(r), e.api != null)
@@ -2078,13 +2083,13 @@ function An(e) {
2078
2083
  }
2079
2084
  function qr(e) {
2080
2085
  return pr(e.storeName, () => {
2081
- const t = z(), l = z(0), S = de.utc().toSeconds() / 3600, s = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
2086
+ const t = z(), l = z(0), S = he.utc().toSeconds() / 3600, s = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
2082
2087
  function _() {
2083
2088
  var i;
2084
2089
  return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
2085
2090
  }
2086
2091
  async function N() {
2087
- P == !0 && await me().setItem(_(), {
2092
+ P == !0 && await ve().setItem(_(), {
2088
2093
  meta: g.value,
2089
2094
  data: t.value,
2090
2095
  count: l.value,
@@ -2092,8 +2097,8 @@ function qr(e) {
2092
2097
  });
2093
2098
  }
2094
2099
  function $(i) {
2095
- const I = _();
2096
- return x.value[I] || (x.value[I] = new Promise(async (w, M) => {
2100
+ const E = _();
2101
+ return x.value[E] || (x.value[E] = new Promise(async (w, M) => {
2097
2102
  var b, T;
2098
2103
  try {
2099
2104
  let D = await ((T = e.api) == null ? void 0 : T.getAll({
@@ -2108,19 +2113,19 @@ function qr(e) {
2108
2113
  const f = t.value.findIndex((Q) => Q.id == L.id);
2109
2114
  f >= 0 ? (A = t.value) == null || A.splice(f, 1, L) : (J = t.value) == null || J.push(L);
2110
2115
  }), l.value = t.value.length, g.value = {
2111
- lastUpdate: de.utc().toString(),
2116
+ lastUpdate: he.utc().toString(),
2112
2117
  storedOn: S.toString()
2113
2118
  }, await N(), w(D));
2114
2119
  } catch (D) {
2115
2120
  M(D);
2116
2121
  } finally {
2117
- delete x.value[I];
2122
+ delete x.value[E];
2118
2123
  }
2119
- })), x.value[I];
2124
+ })), x.value[E];
2120
2125
  }
2121
2126
  async function d(i) {
2122
2127
  var M, b, T;
2123
- const I = _(), w = i.refresh;
2128
+ const E = _(), w = i.refresh;
2124
2129
  if (!w && t.value != null)
2125
2130
  return {
2126
2131
  count: (M = t.value) == null ? void 0 : M.length,
@@ -2128,7 +2133,7 @@ function qr(e) {
2128
2133
  filters: []
2129
2134
  };
2130
2135
  if (!w && P == !0) {
2131
- const D = await me().getItem(I);
2136
+ const D = await ve().getItem(E);
2132
2137
  if (D != null && parseFloat(D.meta.storedOn) > S - 7)
2133
2138
  return t.value = D.data, l.value = D.data.length, s.value = D.filters ?? [], g.value = D.meta, {
2134
2139
  count: (b = t.value) == null ? void 0 : b.length,
@@ -2152,7 +2157,7 @@ function qr(e) {
2152
2157
  }
2153
2158
  async function h(i) {
2154
2159
  var b, T, D, L;
2155
- const I = _(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
2160
+ const E = _(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
2156
2161
  if (w == null)
2157
2162
  throw new Error("no id provided");
2158
2163
  let M = i.refresh;
@@ -2162,7 +2167,7 @@ function qr(e) {
2162
2167
  return { data: f };
2163
2168
  }
2164
2169
  if (!M && P == !0) {
2165
- const f = await me().getItem(I);
2170
+ const f = await ve().getItem(E);
2166
2171
  if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
2167
2172
  t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
2168
2173
  let A = (T = t.value) == null ? void 0 : T.find((J) => J.id == i.id);
@@ -2185,38 +2190,38 @@ function qr(e) {
2185
2190
  async function u(i) {
2186
2191
  var w, M, b;
2187
2192
  i.additionalUrl ?? (i.additionalUrl = "/patch");
2188
- let I;
2193
+ let E;
2189
2194
  if (e.api != null)
2190
2195
  try {
2191
2196
  let T = await e.api.patch(i);
2192
- I = { ...i.data, ...T == null ? void 0 : T.data };
2197
+ E = { ...i.data, ...T == null ? void 0 : T.data };
2193
2198
  } catch (T) {
2194
2199
  let D = T;
2195
2200
  throw new Error(D.message ?? "Patch Problem");
2196
2201
  }
2197
2202
  else
2198
- I = i.data;
2199
- if (I != null) {
2200
- let T = (w = t.value) == null ? void 0 : w.findIndex((D) => D.id == I.id);
2201
- T != null && T >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(T, 1, I), await N());
2203
+ E = i.data;
2204
+ if (E != null) {
2205
+ let T = (w = t.value) == null ? void 0 : w.findIndex((D) => D.id == E.id);
2206
+ T != null && T >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(T, 1, E), await N());
2202
2207
  }
2203
2208
  return (b = t.value) == null ? void 0 : b.find((T) => T.id == (i.id ?? i.data.id));
2204
2209
  }
2205
2210
  async function r(i) {
2206
2211
  var w, M;
2207
2212
  i.additionalUrl ?? (i.additionalUrl = "/post");
2208
- let I;
2213
+ let E;
2209
2214
  if (e.api != null)
2210
2215
  try {
2211
2216
  let b = await e.api.post(i);
2212
- I = b == null ? void 0 : b.data;
2217
+ E = b == null ? void 0 : b.data;
2213
2218
  } catch (b) {
2214
2219
  let T = b;
2215
2220
  throw new Error(T.message ?? "Patch Problem");
2216
2221
  }
2217
2222
  else
2218
- I = i.data;
2219
- return I != null && (t.value ?? (t.value = []), (w = t.value) == null || w.unshift(I), l.value += 1, await N()), (M = t.value) == null ? void 0 : M.find((b) => b.id == (i.id ?? i.data.id));
2223
+ E = i.data;
2224
+ return E != null && (t.value ?? (t.value = []), (w = t.value) == null || w.unshift(E), l.value += 1, await N()), (M = t.value) == null ? void 0 : M.find((b) => b.id == (i.id ?? i.data.id));
2220
2225
  }
2221
2226
  async function y(i) {
2222
2227
  var w, M;
@@ -2229,14 +2234,14 @@ function qr(e) {
2229
2234
  let T = b;
2230
2235
  throw new Error(T.message ?? "Patch Problem");
2231
2236
  }
2232
- const I = i.id ?? i.data.id;
2233
- if (I != null) {
2234
- let b = (w = t.value) == null ? void 0 : w.findIndex((T) => T.id == I);
2237
+ const E = i.id ?? i.data.id;
2238
+ if (E != null) {
2239
+ let b = (w = t.value) == null ? void 0 : w.findIndex((T) => T.id == E);
2235
2240
  b != null && b >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(b, 1), await N());
2236
2241
  }
2237
2242
  }
2238
- async function E(i) {
2239
- var I;
2243
+ async function I(i) {
2244
+ var E;
2240
2245
  if (i.additionalUrl ?? (i.additionalUrl = `/patch/restore?id=${i.data.id}`), e.api != null)
2241
2246
  try {
2242
2247
  await e.api.patch(i);
@@ -2250,7 +2255,7 @@ function qr(e) {
2250
2255
  let M = w;
2251
2256
  throw new Error(M.message ?? "Problem");
2252
2257
  }
2253
- return (I = t.value) == null ? void 0 : I.find((w) => w.id == (i.id ?? i.data.id));
2258
+ return (E = t.value) == null ? void 0 : E.find((w) => w.id == (i.id ?? i.data.id));
2254
2259
  }
2255
2260
  return {
2256
2261
  deleteItem: y,
@@ -2258,15 +2263,15 @@ function qr(e) {
2258
2263
  getAll: d,
2259
2264
  patch: u,
2260
2265
  post: r,
2261
- restore: E
2266
+ restore: I
2262
2267
  };
2263
2268
  });
2264
2269
  }
2265
2270
  let Ar;
2266
- function Ir() {
2271
+ function Er() {
2267
2272
  return Ar;
2268
2273
  }
2269
- function In(e) {
2274
+ function En(e) {
2270
2275
  const t = (e == null ? void 0 : e.buildHeaders) ?? P, l = (e == null ? void 0 : e.buildQuery) ?? g, S = (e == null ? void 0 : e.buildUrl) ?? x, s = e == null ? void 0 : e.demo;
2271
2276
  function g(u) {
2272
2277
  let r = new URLSearchParams();
@@ -2281,14 +2286,14 @@ function In(e) {
2281
2286
  return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Be(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Be(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
2282
2287
  }
2283
2288
  function P(u) {
2284
- var y, E;
2289
+ var y, I;
2285
2290
  let r = { ...u.headers };
2286
- 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 ${(E = e == null ? void 0 : e.auth) == null ? void 0 : E.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2291
+ 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 ${(I = e == null ? void 0 : e.auth) == null ? void 0 : I.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2287
2292
  }
2288
2293
  async function _(u) {
2289
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2290
- let i = u.finalUrl, I = u.headers;
2291
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2294
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2295
+ let i = u.finalUrl, E = u.headers;
2296
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2292
2297
  return console.log(`DEMO: Get from ${i}`), s.get(u);
2293
2298
  console.log(`Get from ${i}`);
2294
2299
  let w;
@@ -2297,7 +2302,7 @@ function In(e) {
2297
2302
  method: "GET",
2298
2303
  mode: "cors",
2299
2304
  cache: "no-cache",
2300
- headers: I
2305
+ headers: E
2301
2306
  }), !w.ok) {
2302
2307
  if (w.status == 401)
2303
2308
  throw {
@@ -2308,7 +2313,7 @@ function In(e) {
2308
2313
  let M = await w.text();
2309
2314
  throw new Error(M ?? w.statusText ?? "Get error");
2310
2315
  }
2311
- if (E)
2316
+ if (I)
2312
2317
  return await w.text();
2313
2318
  if (y)
2314
2319
  return await w.json();
@@ -2321,9 +2326,9 @@ function In(e) {
2321
2326
  }
2322
2327
  }
2323
2328
  async function N(u) {
2324
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2325
- let i = u.finalUrl, I = u.headers;
2326
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2329
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2330
+ let i = u.finalUrl, E = u.headers;
2331
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2327
2332
  return console.log(`DEMO: Get all from ${i}`), s.getAll(u);
2328
2333
  console.log(`Get all from ${i}`);
2329
2334
  let w;
@@ -2332,7 +2337,7 @@ function In(e) {
2332
2337
  method: "GET",
2333
2338
  mode: "cors",
2334
2339
  cache: "no-cache",
2335
- headers: I
2340
+ headers: E
2336
2341
  }), !w.ok) {
2337
2342
  if (w.status == 401)
2338
2343
  throw {
@@ -2343,7 +2348,7 @@ function In(e) {
2343
2348
  let M = await w.text();
2344
2349
  throw new Error(M ?? w.statusText ?? "Get all error");
2345
2350
  }
2346
- if (E)
2351
+ if (I)
2347
2352
  return await w.text();
2348
2353
  if (y)
2349
2354
  return await w.json();
@@ -2356,9 +2361,9 @@ function In(e) {
2356
2361
  }
2357
2362
  }
2358
2363
  async function $(u) {
2359
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2360
- let i = u.finalUrl, I = u.headers;
2361
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2364
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2365
+ let i = u.finalUrl, E = u.headers;
2366
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2362
2367
  return console.log(`DEMO: Post to ${i}`), s.post(u);
2363
2368
  console.log(`Post to ${i}`);
2364
2369
  let w;
@@ -2367,7 +2372,7 @@ function In(e) {
2367
2372
  method: "POST",
2368
2373
  mode: "cors",
2369
2374
  cache: "no-cache",
2370
- headers: I,
2375
+ headers: E,
2371
2376
  body: JSON.stringify(u.data)
2372
2377
  }), !w.ok) {
2373
2378
  if (w.status == 401)
@@ -2379,7 +2384,7 @@ function In(e) {
2379
2384
  let M = await w.text();
2380
2385
  throw new Error(M ?? w.statusText ?? "Post error!");
2381
2386
  }
2382
- if (E)
2387
+ if (I)
2383
2388
  return await w.text();
2384
2389
  if (y)
2385
2390
  return await w.json();
@@ -2392,9 +2397,9 @@ function In(e) {
2392
2397
  }
2393
2398
  }
2394
2399
  async function d(u) {
2395
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2396
- let i = u.finalUrl, I = u.headers;
2397
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2400
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2401
+ let i = u.finalUrl, E = u.headers;
2402
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2398
2403
  return console.log(`DEMO: Patch to ${i}`), s.patch(u);
2399
2404
  console.log(`Patch to ${i}`);
2400
2405
  let w;
@@ -2403,7 +2408,7 @@ function In(e) {
2403
2408
  method: "PATCH",
2404
2409
  mode: "cors",
2405
2410
  cache: "no-cache",
2406
- headers: I,
2411
+ headers: E,
2407
2412
  body: JSON.stringify(u.data)
2408
2413
  }), !w.ok) {
2409
2414
  if (w.status == 401)
@@ -2415,7 +2420,7 @@ function In(e) {
2415
2420
  let M = await w.text();
2416
2421
  throw new Error(M ?? w.statusText ?? "Patch error!");
2417
2422
  }
2418
- if (E)
2423
+ if (I)
2419
2424
  return await w.text();
2420
2425
  if (y)
2421
2426
  return await w.json();
@@ -2429,8 +2434,8 @@ function In(e) {
2429
2434
  }
2430
2435
  async function h(u) {
2431
2436
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
2432
- let y = u.finalUrl, E = u.headers;
2433
- if (y == null && (y = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2437
+ let y = u.finalUrl, I = u.headers;
2438
+ if (y == null && (y = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2434
2439
  return console.log(`DEMO: Delete ${y}`), s.deleteItem(u);
2435
2440
  console.log(`Delete ${y}`);
2436
2441
  let i;
@@ -2439,7 +2444,7 @@ function In(e) {
2439
2444
  method: "DELETE",
2440
2445
  mode: "cors",
2441
2446
  cache: "no-cache",
2442
- headers: E,
2447
+ headers: I,
2443
2448
  body: JSON.stringify(u.data)
2444
2449
  }), i.status == 401)
2445
2450
  throw {
@@ -2448,11 +2453,11 @@ function In(e) {
2448
2453
  message: i.statusText
2449
2454
  };
2450
2455
  return i.status == 200 ? void 0 : i.statusText;
2451
- } catch (I) {
2452
- const w = `${(i == null ? void 0 : i.status) ?? ""} ${(i == null ? void 0 : i.statusText) ?? ""} ${I.message}`;
2456
+ } catch (E) {
2457
+ const w = `${(i == null ? void 0 : i.status) ?? ""} ${(i == null ? void 0 : i.statusText) ?? ""} ${E.message}`;
2453
2458
  if (!r)
2454
2459
  return w;
2455
- throw I.code == 401 ? I : new Error(`${i.status} ${i.statusText} ${I.message}`);
2460
+ throw E.code == 401 ? E : new Error(`${i.status} ${i.statusText} ${E.message}`);
2456
2461
  }
2457
2462
  }
2458
2463
  return Ar = {
@@ -2471,14 +2476,14 @@ function ut(e) {
2471
2476
  function P(r) {
2472
2477
  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 delete this item?" : void 0);
2473
2478
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2474
- const E = (e == null ? void 0 : e.items) ?? [];
2479
+ const I = (e == null ? void 0 : e.items) ?? [];
2475
2480
  return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => y().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
2476
2481
  var w;
2477
2482
  const i = r.id ?? ((w = r.data) == null ? void 0 : w.id);
2478
2483
  if (i == null)
2479
2484
  return Promise.resolve("No id found in delete action");
2480
- const I = E.findIndex((M) => M.id == i);
2481
- return I >= 0 && E.splice(I, 1), Promise.resolve(void 0);
2485
+ const E = I.findIndex((M) => M.id == i);
2486
+ return E >= 0 && I.splice(E, 1), Promise.resolve(void 0);
2482
2487
  }), g(async () => {
2483
2488
  let i;
2484
2489
  r.onCanDeleteAsync != null && (i = await r.onCanDeleteAsync(r.data)), i == null && r.onDeleteAsync != null && (i = await r.onDeleteAsync(r.data)), i == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data), x(i);
@@ -2494,11 +2499,11 @@ function ut(e) {
2494
2499
  function _(r) {
2495
2500
  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);
2496
2501
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2497
- const E = (e == null ? void 0 : e.items) ?? [];
2502
+ const I = (e == null ? void 0 : e.items) ?? [];
2498
2503
  return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await y().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
2499
- var I;
2500
- const i = r.id ?? ((I = r.data) == null ? void 0 : I.id);
2501
- return i == null ? Promise.resolve(void 0) : Promise.resolve(E.find((w) => w.id == i));
2504
+ var E;
2505
+ const i = r.id ?? ((E = r.data) == null ? void 0 : E.id);
2506
+ return i == null ? Promise.resolve(void 0) : Promise.resolve(I.find((w) => w.id == i));
2502
2507
  }), g(async () => {
2503
2508
  let i;
2504
2509
  return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
@@ -2514,8 +2519,8 @@ function ut(e) {
2514
2519
  function N(r) {
2515
2520
  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);
2516
2521
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2517
- const E = (e == null ? void 0 : e.items) ?? [];
2518
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = () => y().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(E)), g(async () => {
2522
+ const I = (e == null ? void 0 : e.items) ?? [];
2523
+ return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = () => y().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(I)), g(async () => {
2519
2524
  let i;
2520
2525
  return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
2521
2526
  }, {
@@ -2531,8 +2536,8 @@ function ut(e) {
2531
2536
  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 restore this item?" : void 0);
2532
2537
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2533
2538
  return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => y().restore(r))), g(async () => {
2534
- let E, i;
2535
- return r.onCanRestoreAsync != null && (E = await r.onCanRestoreAsync(r.data)), E == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), x(E), i;
2539
+ let I, i;
2540
+ return r.onCanRestoreAsync != null && (I = await r.onCanRestoreAsync(r.data)), I == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), x(I), i;
2536
2541
  }, {
2537
2542
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2538
2543
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2545,13 +2550,13 @@ function ut(e) {
2545
2550
  function d(r) {
2546
2551
  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 save this item?" : void 0);
2547
2552
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2548
- const E = (e == null ? void 0 : e.items) ?? [];
2553
+ const I = (e == null ? void 0 : e.items) ?? [];
2549
2554
  return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onSaveAsync ?? (r.onSaveAsync = async () => {
2550
2555
  var i;
2551
2556
  return r.mode ?? (r.mode = ((i = r.data) == null ? void 0 : i.id) == null ? "new" : "edit"), r.mode == "new" ? await y().post(r) : await y().patch(r);
2552
2557
  }) : r.onSaveAsync ?? (r.onSaveAsync = (i) => {
2553
- const I = E.findIndex((w) => w.id == i.id);
2554
- return I >= 0 ? E.splice(I, 1, i) : E.push(i), Promise.resolve(i);
2558
+ const E = I.findIndex((w) => w.id == i.id);
2559
+ return E >= 0 ? I.splice(E, 1, i) : I.push(i), Promise.resolve(i);
2555
2560
  }), g(async () => {
2556
2561
  let i;
2557
2562
  if (r.onGetSaveAsync != null && (i = await r.onGetSaveAsync(r.data)), i == null)
@@ -2561,8 +2566,8 @@ function ut(e) {
2561
2566
  if (x(w), w != null)
2562
2567
  return;
2563
2568
  }
2564
- let I;
2565
- return r.onSaveAsync != null && (I = await r.onSaveAsync(i), I = I.data != null ? I.data : I), r.onSaveSuccessAsync != null && (I = await r.onSaveSuccessAsync(I)), I;
2569
+ let E;
2570
+ return r.onSaveAsync != null && (E = await r.onSaveAsync(i), E = E.data != null ? E.data : E), r.onSaveSuccessAsync != null && (E = await r.onSaveSuccessAsync(E)), E;
2566
2571
  }, {
2567
2572
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2568
2573
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2573,10 +2578,10 @@ function ut(e) {
2573
2578
  });
2574
2579
  }
2575
2580
  function h(r) {
2576
- return r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), g(async () => await (r.api ?? Ir()).get(r), { ...e, ...r });
2581
+ return r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), g(async () => await (r.api ?? Er()).get(r), { ...e, ...r });
2577
2582
  }
2578
2583
  function u(r) {
2579
- return r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), g(async () => await (r.api ?? Ir()).post(r), { ...e, ...r });
2584
+ return r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), g(async () => await (r.api ?? Er()).post(r), { ...e, ...r });
2580
2585
  }
2581
2586
  return {
2582
2587
  actionLoadingMsg: l,
@@ -2594,10 +2599,10 @@ function ut(e) {
2594
2599
  saveItem: d
2595
2600
  };
2596
2601
  }
2597
- let hr = "Australia/Melbourne", Er;
2602
+ let hr = "Australia/Melbourne", Ir;
2598
2603
  const Hr = "auth-credentials-state";
2599
- function En() {
2600
- return Er;
2604
+ function In() {
2605
+ return Ir;
2601
2606
  }
2602
2607
  function Dn(e) {
2603
2608
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
@@ -2713,7 +2718,7 @@ function Dn(e) {
2713
2718
  function y(D, L) {
2714
2719
  s.value = void 0, M(), D != null && L != null && L.currentRoute.value.path != D && L.push({ path: D });
2715
2720
  }
2716
- function E(D) {
2721
+ function I(D) {
2717
2722
  var f;
2718
2723
  K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(D)));
2719
2724
  }
@@ -2728,14 +2733,14 @@ function Dn(e) {
2728
2733
  e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), ee = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2729
2734
  const ie = {};
2730
2735
  ie.grant_type = J, ie.code = f, ie.redirect_uri = `${window.location.origin}/authentication`, ie.client_id = Q;
2731
- const W = await Ir().post({
2736
+ const W = await Er().post({
2732
2737
  additionalUrl: ee,
2733
2738
  data: ie
2734
2739
  });
2735
- I(W.access_token);
2740
+ E(W.access_token);
2736
2741
  }), await e.getToken(D, L);
2737
2742
  }
2738
- function I(D) {
2743
+ function E(D) {
2739
2744
  if (D != null && (e.demo == null || !e.demo.isDemoing.value)) {
2740
2745
  const L = r(D);
2741
2746
  w(L, D), e.processTokenPayload != null && e.processTokenPayload(s, L);
@@ -2758,10 +2763,10 @@ function Dn(e) {
2758
2763
  const D = K(s);
2759
2764
  if (D == null || D.expiresOn == null)
2760
2765
  return !0;
2761
- const L = de.fromFormat(D.expiresOn, t), f = de.utc();
2766
+ const L = he.fromFormat(D.expiresOn, t), f = he.utc();
2762
2767
  return L <= f;
2763
2768
  }
2764
- return M(), Er = {
2769
+ return M(), Ir = {
2765
2770
  authState: l,
2766
2771
  canEdit: g,
2767
2772
  canEditPermit: x,
@@ -2773,13 +2778,13 @@ function Dn(e) {
2773
2778
  getAuthorizeUrl: d,
2774
2779
  getToken: i,
2775
2780
  isLoggedIn: te(() => s.value.isLoggedIn === !0),
2776
- login: E,
2781
+ login: I,
2777
2782
  logout: y,
2778
2783
  resetAuthState: S,
2779
- setAuth: I,
2784
+ setAuth: E,
2780
2785
  timeZone: te(() => s.value.timeZone ?? e.defaultTimeZone ?? hr),
2781
2786
  tryLogin: b
2782
- }, Er;
2787
+ }, Ir;
2783
2788
  }
2784
2789
  function xn(e, t, l = {}) {
2785
2790
  const {
@@ -2803,7 +2808,7 @@ function xn(e, t, l = {}) {
2803
2808
  }, P = {
2804
2809
  x: T.offsetLeft,
2805
2810
  y: T.offsetTop
2806
- }, ((f = l.onStart) == null ? void 0 : f.call(l, N, M)) !== !1 && (d.push(he("mousemove", y)), d.push(he("touchmove", y)), d.push(he("mouseup", E)), d.push(he("touchend", E)), u(M));
2811
+ }, ((f = l.onStart) == null ? void 0 : f.call(l, N, M)) !== !1 && (d.push(me("mousemove", y)), d.push(me("touchmove", y)), d.push(me("mouseup", I)), d.push(me("touchend", I)), u(M));
2807
2812
  }
2808
2813
  function y(M) {
2809
2814
  var A;
@@ -2813,7 +2818,7 @@ function xn(e, t, l = {}) {
2813
2818
  let L = D.clientX - N.x, f = D.clientY - N.y;
2814
2819
  (g === "x" || g === "both") && (P.x = _.x + L), (g === "y" || g === "both") && (P.y = _.y + f), (A = l.onMove) == null || A.call(l, P, M), u(M), i(P);
2815
2820
  }
2816
- function E(M) {
2821
+ function I(M) {
2817
2822
  var b;
2818
2823
  document.documentElement.style.cursor = "", d.forEach((T) => {
2819
2824
  T();
@@ -2826,14 +2831,14 @@ function xn(e, t, l = {}) {
2826
2831
  const T = b.$el;
2827
2832
  T.style.left = `${M.x}px`, T.style.top = `${M.y}px`;
2828
2833
  }
2829
- function I() {
2834
+ function E() {
2830
2835
  if (K(h))
2831
2836
  return;
2832
2837
  const M = K(t);
2833
2838
  if (!M)
2834
2839
  return;
2835
2840
  const b = M.$el;
2836
- b.style.cursor = "move", $.push(he(b, "mousedown", r, x)), $.push(he(b, "touchstart", r, x)), h.value = !0;
2841
+ b.style.cursor = "move", $.push(me(b, "mousedown", r, x)), $.push(me(b, "touchstart", r, x)), h.value = !0;
2837
2842
  }
2838
2843
  function w() {
2839
2844
  if (!K(h))
@@ -2849,7 +2854,7 @@ function xn(e, t, l = {}) {
2849
2854
  return {
2850
2855
  draggingIsOn: h,
2851
2856
  turnDraggableOff: w,
2852
- turnDraggableOn: I
2857
+ turnDraggableOn: E
2853
2858
  };
2854
2859
  }
2855
2860
  const Tn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
@@ -2857,8 +2862,8 @@ function _n(e, t = {}) {
2857
2862
  let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, N = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2858
2863
  const u = z(!1);
2859
2864
  let r = [], y = [];
2860
- const E = z(!1), i = z({ x: 0, y: 0 });
2861
- let I = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, w = {};
2865
+ const I = z(!1), i = z({ x: 0, y: 0 });
2866
+ let E = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, w = {};
2862
2867
  function M(W) {
2863
2868
  Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
2864
2869
  }
@@ -2880,15 +2885,15 @@ function _n(e, t = {}) {
2880
2885
  if (!Y)
2881
2886
  return;
2882
2887
  const H = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2883
- if (i.value.x = G.clientX, i.value.y = G.clientY, I = {
2888
+ if (i.value.x = G.clientX, i.value.y = G.clientY, E = {
2884
2889
  left: H.offsetLeft,
2885
2890
  top: H.offsetTop,
2886
2891
  height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2887
2892
  width: parseInt(window.getComputedStyle(H).getPropertyValue("width"))
2888
- }, w = Lr(I), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
2893
+ }, w = Lr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
2889
2894
  return;
2890
2895
  let X = W.target;
2891
- document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(he("mousemove", f)), y.push(he("mouseup", A)), y.push(he("touchmove", f)), y.push(he("touchend", A)), M(W);
2896
+ document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(me("mousemove", f)), y.push(me("mouseup", A)), y.push(me("touchmove", f)), y.push(me("touchend", A)), M(W);
2892
2897
  }
2893
2898
  function f(W) {
2894
2899
  const Y = Ae(e);
@@ -2896,7 +2901,7 @@ function _n(e, t = {}) {
2896
2901
  return;
2897
2902
  const H = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2898
2903
  let X = G.clientX - i.value.x, ne = G.clientY - i.value.y;
2899
- const fe = Ae(I);
2904
+ const fe = Ae(E);
2900
2905
  if (d.includes("t")) {
2901
2906
  const ce = Math.min(_, Math.max(P, (fe.height ?? 0) - ne));
2902
2907
  w.height = ce, w.top = (fe.top ?? 0) + ne;
@@ -2947,18 +2952,18 @@ function _n(e, t = {}) {
2947
2952
  top: 0,
2948
2953
  left: 0,
2949
2954
  position: void 0
2950
- }), he(H, "transitionend", () => {
2955
+ }), me(H, "transitionend", () => {
2951
2956
  H.style.width = "auto", H.style.top = "", H.style.left = "", H.style.position = "", H.style.transition = "", u.value = !1;
2952
2957
  }, { once: !0 });
2953
2958
  } else if ((l == "page" || Y.$el.style.position !== "absolute") && W !== "page") {
2954
- H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, I = {
2959
+ H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, E = {
2955
2960
  height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2956
2961
  width: parseInt(window.getComputedStyle(H).getPropertyValue("width")),
2957
2962
  top: H.offsetTop,
2958
2963
  left: H.offsetLeft,
2959
2964
  position: "absolute"
2960
- }, ee(I), H.offsetHeight;
2961
- const ae = I;
2965
+ }, ee(E), H.offsetHeight;
2966
+ const ae = E;
2962
2967
  W == "freestyle" ? w = {
2963
2968
  height: ae.height,
2964
2969
  width: (ae.width ?? 100) / 2,
@@ -2971,7 +2976,7 @@ function _n(e, t = {}) {
2971
2976
  top: (ae.top ?? 0) + 2,
2972
2977
  left: (ae.left ?? 0) + 2,
2973
2978
  position: "absolute"
2974
- }), ee(w), he(H, "transitionend", () => {
2979
+ }), ee(w), me(H, "transitionend", () => {
2975
2980
  H.style.transition = "", u.value = !1;
2976
2981
  }, { once: !0 });
2977
2982
  }
@@ -2984,21 +2989,21 @@ function _n(e, t = {}) {
2984
2989
  W.top ? H.style.top = `${W.top}px` : H.style.top = void 0, W.left ? H.style.left = `${W.left}px` : H.style.left = void 0, W.height ? H.style.height = `${W.height}px` : H.style.height = void 0, W.width ? H.style.width = `${W.width}px` : H.style.width = void 0, W.position ? H.style.position = `${W.position}` : H.style.position = void 0, console.log(H.style.position);
2985
2990
  }
2986
2991
  function ie(W, Y) {
2987
- if (E.value)
2992
+ if (I.value)
2988
2993
  return;
2989
2994
  const H = Ae(e);
2990
- H && (b(H, W ?? Tn), Q(Y), r.push(he(H.$el, "mousedown", L)), r.push(he(H.$el, "touchstart", L)), E.value = !0, l = Y);
2995
+ H && (b(H, W ?? Tn), Q(Y), r.push(me(H.$el, "mousedown", L)), r.push(me(H.$el, "touchstart", L)), I.value = !0, l = Y);
2991
2996
  }
2992
2997
  function we(W) {
2993
- if (!E.value)
2998
+ if (!I.value)
2994
2999
  return;
2995
3000
  const Y = Ae(e);
2996
3001
  Y && (T(Y), Q(W), r.forEach((H) => {
2997
3002
  H();
2998
- }), r.length = 0, E.value = !1);
3003
+ }), r.length = 0, I.value = !1);
2999
3004
  }
3000
3005
  return {
3001
- resizingIsOn: E,
3006
+ resizingIsOn: I,
3002
3007
  turnResizingOn: ie,
3003
3008
  turnResizingOff: we
3004
3009
  };
@@ -3134,29 +3139,29 @@ function Nn() {
3134
3139
  if (!_e(l))
3135
3140
  return;
3136
3141
  let x = [];
3137
- S != null ? x = S == null ? void 0 : S.filter((E) => (E.csv ?? E.csvText ?? E.csvFilter ?? E.csvArray) != null).map((E) => ({
3138
- header: E.title ?? E.value ?? "",
3139
- itemText: E.itemText,
3140
- value: E.value
3141
- })) : x = Object.keys(l[0]).map((E) => ({ header: tn(E) ?? "", value: E })), x = x.filter((E) => E.header.length > 0);
3142
+ S != null ? x = S == null ? void 0 : S.filter((I) => (I.csv ?? I.csvText ?? I.csvFilter ?? I.csvArray) != null).map((I) => ({
3143
+ header: I.title ?? I.value ?? "",
3144
+ itemText: I.itemText,
3145
+ value: I.value
3146
+ })) : x = Object.keys(l[0]).map((I) => ({ header: tn(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
3142
3147
  var P = [];
3143
- for (let E = 0; E < l.length; E++) {
3144
- const i = l[E];
3148
+ for (let I = 0; I < l.length; I++) {
3149
+ const i = l[I];
3145
3150
  var _ = {}, N = [];
3146
- for (let I = 0; I < x.length; I++) {
3147
- const w = x[I];
3151
+ for (let E = 0; E < x.length; E++) {
3152
+ const w = x[E];
3148
3153
  var $ = null;
3149
3154
  typeof w.value == "function" ? $ = w.value(i) : typeof w.value == "string" && ($ = Sr(i, w.value)), w.itemText != null ? _[w.header] = Sr($, w.itemText) : _[w.header] = $;
3150
3155
  }
3151
- P.push(_), _e(N) && N.forEach((I) => {
3152
- P.push(I);
3156
+ P.push(_), _e(N) && N.forEach((E) => {
3157
+ P.push(E);
3153
3158
  }), N = [];
3154
3159
  }
3155
3160
  var d = [];
3156
- if (d.push(x.map((E) => E.header).toString()), P.forEach((E) => {
3161
+ if (d.push(x.map((I) => I.header).toString()), P.forEach((I) => {
3157
3162
  let i = [];
3158
- x.forEach(function(I) {
3159
- var w = E[I.header];
3163
+ x.forEach(function(E) {
3164
+ var w = I[E.header];
3160
3165
  i.push(w ?? "");
3161
3166
  }), d.push(i.join(","));
3162
3167
  }), g == "array")
@@ -3181,7 +3186,7 @@ function ba() {
3181
3186
  return xr;
3182
3187
  }
3183
3188
  function Mn(e) {
3184
- const t = e.getUTC ?? de.utc;
3189
+ const t = e.getUTC ?? he.utc;
3185
3190
  function l() {
3186
3191
  return s().startOf("day").toUTC().toString() ?? "";
3187
3192
  }
@@ -3189,7 +3194,7 @@ function Mn(e) {
3189
3194
  return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3190
3195
  }
3191
3196
  function s(_, N) {
3192
- return _ == null ? t().setZone(e.getTimeZone()) : N ? de.fromFormat(_, N, { zone: e.getTimeZone() }) : de.fromISO(_, { zone: e.getTimeZone() });
3197
+ return _ == null ? t().setZone(e.getTimeZone()) : N ? he.fromFormat(_, N, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3193
3198
  }
3194
3199
  function g(_, N, $) {
3195
3200
  if (_ == null) {
@@ -3198,17 +3203,17 @@ function Mn(e) {
3198
3203
  }
3199
3204
  if (_ == "Invalid DateTime")
3200
3205
  return "";
3201
- const d = $ ? de.fromFormat(_, $, { zone: e.getTimeZone() }) : de.fromISO(_, { zone: e.getTimeZone() });
3206
+ const d = $ ? he.fromFormat(_, $, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3202
3207
  return N ? d.toFormat(N) : d == null ? void 0 : d.toString();
3203
3208
  }
3204
3209
  function x(_, N) {
3205
- return _ == null ? t() : N ? de.fromFormat(_, N) : de.fromISO(_);
3210
+ return _ == null ? t() : N ? he.fromFormat(_, N) : he.fromISO(_);
3206
3211
  }
3207
3212
  function P(_, N, $) {
3208
3213
  if (_ == null)
3209
3214
  return N ? t().toFormat(N) : t().toString();
3210
3215
  {
3211
- const d = $ ? de.fromFormat(_, $) : de.fromISO(_);
3216
+ const d = $ ? he.fromFormat(_, $) : he.fromISO(_);
3212
3217
  return N ? d.toFormat(N) : d.toString();
3213
3218
  }
3214
3219
  }
@@ -3247,7 +3252,7 @@ function Ln(e) {
3247
3252
  return Promise.resolve("no demo data available for this api");
3248
3253
  const h = d.id ?? ((r = d.data) == null ? void 0 : r.id), u = g(d);
3249
3254
  if (h != null && (u == null ? void 0 : u.data) != null) {
3250
- const y = u.data.findIndex((E) => E.id == h);
3255
+ const y = u.data.findIndex((I) => I.id == h);
3251
3256
  y >= 0 && u.data.splice(y, 1);
3252
3257
  }
3253
3258
  return new Promise(function(y) {
@@ -3257,14 +3262,14 @@ function Ln(e) {
3257
3262
  });
3258
3263
  }
3259
3264
  function P(d) {
3260
- var y, E, i;
3265
+ var y, I, i;
3261
3266
  if (l == null)
3262
3267
  throw new Error("no demo data available for this api");
3263
3268
  const h = d.id ?? ((y = d.data) == null ? void 0 : y.id), u = g(d);
3264
3269
  let r;
3265
- return u != null && (u.data ?? (u.data = []), u.getAction != null ? r = u.getAction(u.data, h) : h != null ? r = (E = u.data) == null ? void 0 : E.find((I) => I.id == h) : u.path != null && ((i = u.data) == null ? void 0 : i.length) == 1 && (r = u.data[0])), r == null ? Promise.resolve(void 0) : new Promise((I) => {
3270
+ return u != null && (u.data ?? (u.data = []), u.getAction != null ? r = u.getAction(u.data, h) : h != null ? r = (I = u.data) == null ? void 0 : I.find((E) => E.id == h) : u.path != null && ((i = u.data) == null ? void 0 : i.length) == 1 && (r = u.data[0])), r == null ? Promise.resolve(void 0) : new Promise((E) => {
3266
3271
  setTimeout(() => {
3267
- I({
3272
+ E({
3268
3273
  data: r
3269
3274
  });
3270
3275
  });
@@ -3291,9 +3296,9 @@ function Ln(e) {
3291
3296
  throw new Error("no demo data available for this api");
3292
3297
  const h = g(d);
3293
3298
  let u;
3294
- return h != null && (h.data ?? (h.data = []), h.postAction != null ? u = h.postAction(h.data, d.data) : d.data != null && (d.data.id == null && (d.data.id = ((((r = h.data) == null ? void 0 : r.length) ?? 0) + 1).toString()), u = d.data, (y = h.data) == null || y.push(u))), u == null ? Promise.resolve(void 0) : new Promise((E) => {
3299
+ return h != null && (h.data ?? (h.data = []), h.postAction != null ? u = h.postAction(h.data, d.data) : d.data != null && (d.data.id == null && (d.data.id = ((((r = h.data) == null ? void 0 : r.length) ?? 0) + 1).toString()), u = d.data, (y = h.data) == null || y.push(u))), u == null ? Promise.resolve(void 0) : new Promise((I) => {
3295
3300
  setTimeout(() => {
3296
- E({
3301
+ I({
3297
3302
  data: u
3298
3303
  });
3299
3304
  });
@@ -3309,13 +3314,13 @@ function Ln(e) {
3309
3314
  if (h.data ?? (h.data = []), h.patchAction != null)
3310
3315
  u = h.patchAction(h.data, d.data);
3311
3316
  else if (d.data.id != null) {
3312
- const E = (r = h.data) == null ? void 0 : r.findIndex((i) => i.id == d.data.id);
3313
- E != null && E > -1 && ((y = h.data) == null || y.splice(E, 1, d.data)), u = d.data;
3317
+ const I = (r = h.data) == null ? void 0 : r.findIndex((i) => i.id == d.data.id);
3318
+ I != null && I > -1 && ((y = h.data) == null || y.splice(I, 1, d.data)), u = d.data;
3314
3319
  }
3315
3320
  }
3316
- return u == null ? Promise.resolve(void 0) : new Promise((E) => {
3321
+ return u == null ? Promise.resolve(void 0) : new Promise((I) => {
3317
3322
  setTimeout(() => {
3318
- E({
3323
+ I({
3319
3324
  data: u
3320
3325
  });
3321
3326
  });
@@ -3351,7 +3356,7 @@ function Aa(e) {
3351
3356
  };
3352
3357
  }
3353
3358
  let _r;
3354
- function Ia() {
3359
+ function Ea() {
3355
3360
  return _r;
3356
3361
  }
3357
3362
  function Un(e) {
@@ -3420,7 +3425,7 @@ function Un(e) {
3420
3425
  function y(f, A) {
3421
3426
  return t(f, "ddd DD MMM YYYY", A);
3422
3427
  }
3423
- function E(f, A) {
3428
+ function I(f, A) {
3424
3429
  return t(f, "ccc dd LLL yyyy hh:mm a", A);
3425
3430
  }
3426
3431
  function i(f) {
@@ -3430,7 +3435,7 @@ function Un(e) {
3430
3435
  });
3431
3436
  return A.format(f);
3432
3437
  }
3433
- function I(f) {
3438
+ function E(f) {
3434
3439
  return f.replaceAll(",", " ");
3435
3440
  }
3436
3441
  function w(f, A) {
@@ -3460,9 +3465,9 @@ function Un(e) {
3460
3465
  toLocationLine: u,
3461
3466
  toLocationLineNoCommas: r,
3462
3467
  toLongDate: y,
3463
- toLongDateAndTime: E,
3468
+ toLongDateAndTime: I,
3464
3469
  toPercent: i,
3465
- toPrettyCSV: I,
3470
+ toPrettyCSV: E,
3466
3471
  toShortDate: w,
3467
3472
  toShortDateAndTime: M,
3468
3473
  toTime: b,
@@ -3504,7 +3509,7 @@ function Bn(e, t) {
3504
3509
  restartTracker: x
3505
3510
  };
3506
3511
  }
3507
- function Ea(e, t) {
3512
+ function Ia(e, t) {
3508
3513
  var ae;
3509
3514
  const {
3510
3515
  // useBladeSrc = true,
@@ -3512,7 +3517,7 @@ function Ea(e, t) {
3512
3517
  } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", x = Mr(), P = et(), _ = K(e.proxyQueryKey), N = te(() => {
3513
3518
  var G;
3514
3519
  return K(e.proxyID) ?? (_ != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[_] : void 0);
3515
- }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: E, saveItem: i } = ut({
3520
+ }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: i } = ut({
3516
3521
  nav: g,
3517
3522
  onError: e.onError ?? (t == null ? void 0 : t.onError),
3518
3523
  proxyID: N.value,
@@ -3521,7 +3526,7 @@ function Ea(e, t) {
3521
3526
  storageMode: s,
3522
3527
  nav: g
3523
3528
  })
3524
- }), I = te(() => e.errorMsg ?? d.value), w = te(() => e.loadingMsg ?? h.value), M = te(() => w.value != null), b = z(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), L = te(() => {
3529
+ }), E = te(() => e.errorMsg ?? d.value), w = te(() => e.loadingMsg ?? h.value), M = te(() => w.value != null), b = z(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), L = te(() => {
3525
3530
  if (T.value == "new")
3526
3531
  return !1;
3527
3532
  const G = K($);
@@ -3570,7 +3575,7 @@ function Ea(e, t) {
3570
3575
  onRestoreSuccessAsync: fe,
3571
3576
  proxyID: ce
3572
3577
  } = { ...e };
3573
- E({
3578
+ I({
3574
3579
  additionalUrl: X,
3575
3580
  data: G,
3576
3581
  nav: g,
@@ -3610,7 +3615,7 @@ function Ea(e, t) {
3610
3615
  additionalUrl: ne,
3611
3616
  onCanSaveAsync: fe,
3612
3617
  onGetSaveAsync: ce,
3613
- onSaveAsync: Ie,
3618
+ onSaveAsync: Ee,
3614
3619
  onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), ee(), T.value = "view"), Promise.resolve(void 0))
3615
3620
  } = { ...e };
3616
3621
  i({
@@ -3619,7 +3624,7 @@ function Ea(e, t) {
3619
3624
  nav: g,
3620
3625
  onCanSaveAsync: fe,
3621
3626
  onGetSaveAsync: ce,
3622
- onSaveAsync: Ie,
3627
+ onSaveAsync: Ee,
3623
3628
  onSaveSuccessAsync: $e,
3624
3629
  proxyID: N.value,
3625
3630
  // ...params.getOptions(),
@@ -3631,7 +3636,7 @@ function Ea(e, t) {
3631
3636
  const G = K(T);
3632
3637
  !G || G == "view" ? T.value = "edit" : G == "edit" && (T.value = "view");
3633
3638
  }
3634
- return Te(I, (G) => {
3639
+ return Te(E, (G) => {
3635
3640
  D.value = G != null;
3636
3641
  }), Te(() => e.refreshToggle, () => {
3637
3642
  W({ deepRefresh: !0 });
@@ -3641,7 +3646,7 @@ function Ea(e, t) {
3641
3646
  }), {
3642
3647
  asyncItem: $,
3643
3648
  deleteItem: ie,
3644
- errorMsg: I,
3649
+ errorMsg: E,
3645
3650
  isChanged: Q,
3646
3651
  isDeletable: L,
3647
3652
  isEditing: te(() => T.value == "new" || T.value == "edit"),
@@ -3695,7 +3700,7 @@ function $n(e) {
3695
3700
  function P(h) {
3696
3701
  return h == null ? null : typeof h != "string" ? h : tt(l, (r) => r.children).find((r) => {
3697
3702
  var y;
3698
- return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((E) => E == h));
3703
+ return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((I) => I == h));
3699
3704
  }) ?? null;
3700
3705
  }
3701
3706
  function _(h) {
@@ -3748,9 +3753,9 @@ function Da(e, t, l) {
3748
3753
  ...u.filter((U) => U.name != null).map((U) => U.name),
3749
3754
  ...e.defaultFilters ?? [],
3750
3755
  ...r.value
3751
- ]).value), E = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3752
- let i = z([...E.value]);
3753
- const I = te(() => Gr(i, E).value.length > 0 || Gr(E, i).value.length > 0), w = z(M());
3756
+ ]).value), I = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3757
+ let i = z([...I.value]);
3758
+ const E = te(() => Gr(i, I).value.length > 0 || Gr(I, i).value.length > 0), w = z(M());
3754
3759
  function M() {
3755
3760
  var U, j;
3756
3761
  if (_) {
@@ -3806,11 +3811,11 @@ function Da(e, t, l) {
3806
3811
  storageMode: h,
3807
3812
  nav: $
3808
3813
  })
3809
- }), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Re(!1), Ie = Re(e.showSearch ?? !0), $e = z(0), Ce = te(() => {
3814
+ }), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Re(!1), Ee = Re(e.showSearch ?? !0), $e = z(0), Ce = te(() => {
3810
3815
  let U, j = [];
3811
- E.value.forEach((O) => {
3812
- const oe = y.value[O], ve = u.find((De) => De.name == oe);
3813
- ve != null ? U = U != null ? `${U}ANDALSO${ve.filterFunction()}` : ve.filterFunction() : j.push(oe);
3816
+ I.value.forEach((O) => {
3817
+ const de = y.value[O], ge = u.find((De) => De.name == de);
3818
+ ge != null ? U = U != null ? `${U}ANDALSO${ge.filterFunction()}` : ge.filterFunction() : j.push(de);
3814
3819
  });
3815
3820
  const V = {};
3816
3821
  return _e(j) && (V.filterBy = j.toString()), U != null && (V.query = U), V;
@@ -3821,13 +3826,13 @@ function Da(e, t, l) {
3821
3826
  }), tr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = te(() => (U) => L.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Pe = te(() => Q.value.filter((U) => !U.hide)), ar = te(() => {
3822
3827
  let U = new Array();
3823
3828
  return Pe.value.filter((V) => V.sublevel != null).forEach((V) => {
3824
- let O = U.find((oe) => oe.position == V.sublevel);
3829
+ let O = U.find((de) => de.position == V.sublevel);
3825
3830
  O == null ? U.push({ position: V.sublevel ?? 0, values: [V] }) : O.values.push(V);
3826
3831
  }), U.sort(Ue.firstBy((V) => V.position));
3827
3832
  }), lr = te(() => {
3828
3833
  let U = new Array();
3829
3834
  return Pe.value.filter((V) => V.level != null).forEach((V) => {
3830
- let O = U.find((oe) => oe.position == V.level);
3835
+ let O = U.find((de) => de.position == V.level);
3831
3836
  O == null ? U.push({ position: V.level ?? 0, values: [V] }) : O.values.push(V);
3832
3837
  }), U.sort(Ue.firstBy((V) => V.position));
3833
3838
  }), ur = te(() => Pe.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
@@ -3848,7 +3853,7 @@ function Da(e, t, l) {
3848
3853
  const {
3849
3854
  additionalUrl: j,
3850
3855
  onDeleteAsync: V
3851
- } = { ...e }, O = K(U), oe = O.id, ve = (De) => {
3856
+ } = { ...e }, O = K(U), de = O.id, ge = (De) => {
3852
3857
  if (De != null) {
3853
3858
  let Se = A.value.findIndex((se) => se.id == De);
3854
3859
  if (Se > -1 && A.value.splice(Se, 1), e.items != null) {
@@ -3863,13 +3868,13 @@ function Da(e, t, l) {
3863
3868
  }
3864
3869
  }
3865
3870
  };
3866
- e.localOnly == !0 || $ == null ? ve(oe) : W({
3871
+ e.localOnly == !0 || $ == null ? ge(de) : W({
3867
3872
  additionalUrl: j,
3868
3873
  data: O,
3869
3874
  nav: $,
3870
3875
  onCanDeleteAsync: e.onCanDeleteAsync,
3871
3876
  onDeleteAsync: V,
3872
- onDeleteSuccessAsync: async () => (ve(oe), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3877
+ onDeleteSuccessAsync: async () => (ge(de), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3873
3878
  proxyID: b.value,
3874
3879
  // ...(useBladeSrc ? bladeData.value : {}),
3875
3880
  requireConfirmation: !0
@@ -3904,8 +3909,8 @@ function Da(e, t, l) {
3904
3909
  const U = (l == null ? void 0 : l.hideActions) ?? e.hideActions;
3905
3910
  e.headers != null && (Q.value = [...e.headers], U || Q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3906
3911
  }
3907
- async function Ee(U) {
3908
- if (ce.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ie.value = e.showSearch ?? !1, T.value = void 0), e.items != null) {
3912
+ async function Ie(U) {
3913
+ if (ce.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1, T.value = void 0), e.items != null) {
3909
3914
  A.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3910
3915
  return;
3911
3916
  }
@@ -3928,12 +3933,12 @@ function Da(e, t, l) {
3928
3933
  else {
3929
3934
  let V = await ae({
3930
3935
  ...j,
3931
- onGetSuccessAsync: async (O, oe) => {
3932
- let ve = O == null ? void 0 : O.data;
3933
- return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && ($e.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ve = await e.onGetSuccessAsync(ve, oe)), ve;
3936
+ onGetSuccessAsync: async (O, de) => {
3937
+ let ge = O == null ? void 0 : O.data;
3938
+ return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && ($e.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ge = await e.onGetSuccessAsync(ge, de)), ge;
3934
3939
  }
3935
3940
  });
3936
- A.value = V, i.value = [...E.value];
3941
+ A.value = V, i.value = [...I.value];
3937
3942
  }
3938
3943
  Ne();
3939
3944
  }
@@ -3955,21 +3960,21 @@ function Da(e, t, l) {
3955
3960
  }
3956
3961
  }
3957
3962
  function je() {
3958
- Ie.value ? (Ie.value = e.showSearch ?? !1, T.value = void 0, Ee()) : Ie.value = e.showSearch ?? !0;
3963
+ Ee.value ? (Ee.value = e.showSearch ?? !1, T.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3959
3964
  }
3960
3965
  return We(), Qt([T], () => {
3961
3966
  Ne();
3962
3967
  }, { debounce: 500, maxWait: 500 }), Te([L, w], async () => {
3963
- await Ee();
3968
+ await Ie();
3964
3969
  }), Te([X, () => e.errorMsg], ([U, j]) => {
3965
3970
  ce.value = U != null || j != null;
3966
3971
  }), Te(() => e.refreshToggle, () => {
3967
- Ee({ deepRefresh: !0 });
3972
+ Ie({ deepRefresh: !0 });
3968
3973
  }), Or([A, () => e.items], () => {
3969
3974
  Ne();
3970
3975
  }), Xr(async () => {
3971
3976
  var U;
3972
- e.eager == !0 && await Ee({ deepRefresh: ((U = x == null ? void 0 : x.params) == null ? void 0 : U.refresh) == "true" });
3977
+ e.eager == !0 && await Ie({ deepRefresh: ((U = x == null ? void 0 : x.params) == null ? void 0 : U.refresh) == "true" });
3973
3978
  }), {
3974
3979
  add: be,
3975
3980
  asyncItems: A,
@@ -3980,21 +3985,21 @@ function Da(e, t, l) {
3980
3985
  exportToCSV: Fe,
3981
3986
  filteredItems: J,
3982
3987
  filters: y,
3983
- filtersChanged: I,
3988
+ filtersChanged: E,
3984
3989
  headerOptions: Q,
3985
3990
  isDeletable: tr,
3986
3991
  isLoading: fe,
3987
3992
  isRestorable: nr,
3988
3993
  loadingMsg: ne,
3989
- refresh: Ee,
3994
+ refresh: Ie,
3990
3995
  restoreItem: Ze,
3991
3996
  searchString: T,
3992
- selectedFilters: E,
3997
+ selectedFilters: I,
3993
3998
  selectItem: Je,
3994
3999
  // serverFilters,
3995
4000
  showError: ce,
3996
4001
  showInactive: L,
3997
- showSearch: Ie,
4002
+ showSearch: Ee,
3998
4003
  subtitleOptions: ar,
3999
4004
  tableHeaders: Pe,
4000
4005
  titleOptions: lr,
@@ -4012,7 +4017,7 @@ function Fn(e) {
4012
4017
  }, Ge;
4013
4018
  }
4014
4019
  function xa() {
4015
- const e = Mr(), t = it(), l = En();
4020
+ const e = Mr(), t = it(), l = In();
4016
4021
  let S = e.getRoutes();
4017
4022
  return {
4018
4023
  ...Ge,
@@ -4109,7 +4114,7 @@ function Pa(e) {
4109
4114
  kn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
4110
4115
  const g = Dn(e.auth);
4111
4116
  Fn(e.menu);
4112
- const x = In({
4117
+ const x = En({
4113
4118
  auth: g,
4114
4119
  findPath: s.findPath,
4115
4120
  useBearerToken: !0
@@ -4136,7 +4141,7 @@ export {
4136
4141
  na as containsWeekday,
4137
4142
  Lr as copyDeep,
4138
4143
  cn as copyItemByAlphabet,
4139
- In as createApi,
4144
+ En as createApi,
4140
4145
  Dn as createAuth,
4141
4146
  Pa as createCore,
4142
4147
  Pn as createCosmetics,
@@ -4181,8 +4186,8 @@ export {
4181
4186
  da as twiddleThumbs,
4182
4187
  ut as useActions,
4183
4188
  en as useActionsTracker,
4184
- Ir as useApi,
4185
- En as useAuth,
4189
+ Er as useApi,
4190
+ In as useAuth,
4186
4191
  Wr as useAuthUrl,
4187
4192
  Cn as useBlade,
4188
4193
  Nn as useCSV,
@@ -4193,13 +4198,13 @@ export {
4193
4198
  Sa as useDemo,
4194
4199
  Aa as useDocumentMeta,
4195
4200
  xn as useDraggable,
4196
- Ia as useFilters,
4201
+ Ea as useFilters,
4197
4202
  Ot as useId,
4198
- Ea as useItem,
4203
+ Ia as useItem,
4199
4204
  Da as useList,
4200
4205
  ma as useLocalCache,
4201
4206
  ya as useLocalCosmetics,
4202
- me as useLocalDb,
4207
+ ve as useLocalDb,
4203
4208
  xa as useMenu,
4204
4209
  it as useNavigation,
4205
4210
  _a as usePWA,