bt-core-app 1.4.59 → 1.4.61

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,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 Or } from "vue";
1
+ import { ref as Y, shallowRef as Re, computed as te, toValue as j, watch as _e, toRef as zt, onMounted as Or } from "vue";
2
2
  import { watchArray as pr, useStorage as Jt, useEventListener as he, toValue as Ae, useParentElement as jt, useResizeObserver as Kt, useArrayUnique as Qt, useArrayDifference as Wr, watchDebounced as Xt, tryOnMounted as Ot } from "@vueuse/core";
3
3
  import { defineStore as et } from "pinia";
4
4
  import { DateTime as de } from "luxon";
@@ -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 = Re(), b = Re(), f = Re(), g = te(() => l.value != null);
15
15
  function E(o) {
16
16
  t.value = t.value.filter((h) => h.id != o);
17
17
  }
@@ -59,7 +59,7 @@ var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
59
59
  function tn(e) {
60
60
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
61
61
  }
62
- var ke = function() {
62
+ var Ge = function() {
63
63
  function e(f) {
64
64
  return f;
65
65
  }
@@ -94,7 +94,7 @@ var ke = function() {
94
94
  }
95
95
  return b.firstBy = b, b;
96
96
  }();
97
- function Re(e, t) {
97
+ function Ue(e, t) {
98
98
  let l = e ?? "", b = t ?? "";
99
99
  if (l.endsWith("/"))
100
100
  do
@@ -185,7 +185,7 @@ function ra(e) {
185
185
  function an(e) {
186
186
  return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (l) => l.toUpperCase()));
187
187
  }
188
- const Ye = [
188
+ const Ze = [
189
189
  { value: 1, short: "sun", values: ["sun", "sunday"] },
190
190
  { value: 2, short: "mon", values: ["mon", "monday"] },
191
191
  { value: 3, short: "tue", values: ["tue", "tues", "tuesday"] },
@@ -198,19 +198,19 @@ const Ye = [
198
198
  function ta(e) {
199
199
  if (e == null)
200
200
  return 0;
201
- const t = e.replaceAll(" ", "").split(",").map((b) => b.toLowerCase()), l = Ye.filter((b) => b.values.some((f) => t.some((g) => f == g))).map((b) => b.value);
201
+ const t = e.replaceAll(" ", "").split(",").map((b) => b.toLowerCase()), l = Ze.filter((b) => b.values.some((f) => t.some((g) => f == g))).map((b) => b.value);
202
202
  return l.length == 0 ? 8 : Math.min(...l);
203
203
  }
204
204
  function na(e) {
205
205
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
206
- let l = Ye.find((b) => b.values.some((f) => f == t));
206
+ let l = Ze.find((b) => b.values.some((f) => f == t));
207
207
  return l != null ? l.short : "";
208
208
  }).filter((t) => t != null && t.length > 0).toString();
209
209
  }
210
210
  function aa(e, t) {
211
211
  if (e == null || t == null)
212
212
  return !0;
213
- const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), b = t.replaceAll(" ", "").toLowerCase(), f = Ye.find((g) => g.values.some((E) => E == b));
213
+ const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), b = t.replaceAll(" ", "").toLowerCase(), f = Ze.find((g) => g.values.some((E) => E == b));
214
214
  return f != null && l.some((g) => g == f.short || f.values.some((E) => E == g));
215
215
  }
216
216
  function la(e, t) {
@@ -218,13 +218,13 @@ function la(e, t) {
218
218
  return e;
219
219
  let l = e ?? "";
220
220
  l = `${l},${t}`;
221
- let b = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((f) => Ye.find((g) => g.values.some((E) => E == f))).filter((f) => f != null).sort(ke.firstBy((f) => (f == null ? void 0 : f.value) ?? 0)).map((f) => f == null ? void 0 : f.short))].toString();
221
+ let b = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((f) => Ze.find((g) => g.values.some((E) => E == f))).filter((f) => f != null).sort(Ge.firstBy((f) => (f == null ? void 0 : f.value) ?? 0)).map((f) => f == null ? void 0 : f.short))].toString();
222
222
  return b.length > 0 ? b : void 0;
223
223
  }
224
224
  function ua(e, t) {
225
225
  if (t == null || e == null)
226
226
  return e;
227
- let l = e ?? "", b = t.replaceAll(" ", "").toLowerCase(), f = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ye.find((E) => E.values.some((C) => C == g && C != b))).filter((g) => g != null).sort(ke.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
227
+ let l = e ?? "", b = t.replaceAll(" ", "").toLowerCase(), f = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ze.find((E) => E.values.some((C) => C == g && C != b))).filter((g) => g != null).sort(Ge.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
228
228
  return f.length > 0 ? f : void 0;
229
229
  }
230
230
  function ca(e, t) {
@@ -540,9 +540,9 @@ var at = { exports: {} };
540
540
  if (!D)
541
541
  return this.resolve([]);
542
542
  for (var d = new Array(D), A = 0, K = -1, Q = new this(E); ++K < D; )
543
- re(w[K], K);
543
+ ee(w[K], K);
544
544
  return Q;
545
- function re(ce, we) {
545
+ function ee(ce, we) {
546
546
  P.resolve(ce).then(W, function(Z) {
547
547
  _ || (_ = !0, C.reject(Q, Z));
548
548
  });
@@ -563,10 +563,10 @@ var at = { exports: {} };
563
563
  K(w[d]);
564
564
  return A;
565
565
  function K(Q) {
566
- P.resolve(Q).then(function(re) {
567
- _ || (_ = !0, C.resolve(A, re));
568
- }, function(re) {
569
- _ || (_ = !0, C.reject(A, re));
566
+ P.resolve(Q).then(function(ee) {
567
+ _ || (_ = !0, C.resolve(A, ee));
568
+ }, function(ee) {
569
+ _ || (_ = !0, C.reject(A, ee));
570
570
  });
571
571
  }
572
572
  }
@@ -718,7 +718,7 @@ var at = { exports: {} };
718
718
  };
719
719
  });
720
720
  }
721
- function re(n) {
721
+ function ee(n) {
722
722
  return Q(n, !1);
723
723
  }
724
724
  function ce(n) {
@@ -754,7 +754,7 @@ var at = { exports: {} };
754
754
  var c = P(atob(n.data));
755
755
  return $([c], { type: n.type });
756
756
  }
757
- function H(n) {
757
+ function V(n) {
758
758
  return n && n.__local_forage_encoded_blob;
759
759
  }
760
760
  function ae(n) {
@@ -771,7 +771,7 @@ var at = { exports: {} };
771
771
  var v = a[m];
772
772
  v._dbInfo.db && (v._dbInfo.db.close(), v._dbInfo.db = null);
773
773
  }
774
- return n.db = null, re(n).then(function(s) {
774
+ return n.db = null, ee(n).then(function(s) {
775
775
  return n.db = s, we(n) ? ce(n) : s;
776
776
  }).then(function(s) {
777
777
  n.db = c.db = s;
@@ -830,7 +830,7 @@ var at = { exports: {} };
830
830
  }
831
831
  var F = v.forages.slice(0);
832
832
  return o.all(s).then(function() {
833
- return a.db = v.db, re(a);
833
+ return a.db = v.db, ee(a);
834
834
  }).then(function(k) {
835
835
  return a.db = k, we(a, c._defaultConfig.version) ? ce(a) : k;
836
836
  }).then(function(k) {
@@ -853,7 +853,7 @@ var at = { exports: {} };
853
853
  var B = R.objectStore(a._dbInfo.storeName), F = B.get(n);
854
854
  F.onsuccess = function() {
855
855
  var k = F.result;
856
- k === void 0 && (k = null), H(k) && (k = Z(k)), v(k);
856
+ k === void 0 && (k = null), V(k) && (k = Z(k)), v(k);
857
857
  }, F.onerror = function() {
858
858
  s(F.error);
859
859
  };
@@ -877,7 +877,7 @@ var at = { exports: {} };
877
877
  var q = F.result;
878
878
  if (q) {
879
879
  var z = q.value;
880
- H(z) && (z = Z(z));
880
+ V(z) && (z = Z(z));
881
881
  var p = n(z, q.key, k++);
882
882
  p !== void 0 ? v(p) : q.continue();
883
883
  } else
@@ -893,7 +893,7 @@ var at = { exports: {} };
893
893
  });
894
894
  return h(m, c), m;
895
895
  }
896
- function Ue(n, c, a) {
896
+ function Be(n, c, a) {
897
897
  var m = this;
898
898
  n = r(n);
899
899
  var v = new o(function(s, M) {
@@ -924,7 +924,7 @@ var at = { exports: {} };
924
924
  });
925
925
  return h(v, a), v;
926
926
  }
927
- function Ze(n, c) {
927
+ function Me(n, c) {
928
928
  var a = this;
929
929
  n = r(n);
930
930
  var m = new o(function(v, s) {
@@ -1023,7 +1023,7 @@ var at = { exports: {} };
1023
1023
  });
1024
1024
  return h(m, c), m;
1025
1025
  }
1026
- function Me(n) {
1026
+ function Ce(n) {
1027
1027
  var c = this, a = new o(function(m, v) {
1028
1028
  c.ready().then(function() {
1029
1029
  X(c._dbInfo, L, function(s, M) {
@@ -1057,7 +1057,7 @@ var at = { exports: {} };
1057
1057
  if (!n.name)
1058
1058
  v = o.reject("Invalid arguments");
1059
1059
  else {
1060
- var s = n.name === a.name && m._dbInfo.db, M = s ? o.resolve(m._dbInfo.db) : re(n).then(function(R) {
1060
+ var s = n.name === a.name && m._dbInfo.db, M = s ? o.resolve(m._dbInfo.db) : ee(n).then(function(R) {
1061
1061
  var B = x[n.name], F = B.forages;
1062
1062
  B.db = R;
1063
1063
  for (var k = 0; k < F.length; k++)
@@ -1074,28 +1074,28 @@ var at = { exports: {} };
1074
1074
  var z = k[q];
1075
1075
  z._dbInfo.db = null, z._dbInfo.version = B;
1076
1076
  }
1077
- var p = new o(function(ee, ue) {
1077
+ var p = new o(function(re, ue) {
1078
1078
  var le = T.open(n.name, B);
1079
1079
  le.onerror = function(ge) {
1080
- var Ve = le.result;
1081
- Ve.close(), ue(ge);
1080
+ var Ye = le.result;
1081
+ Ye.close(), ue(ge);
1082
1082
  }, le.onupgradeneeded = function() {
1083
1083
  var ge = le.result;
1084
1084
  ge.deleteObjectStore(n.storeName);
1085
1085
  }, le.onsuccess = function() {
1086
1086
  var ge = le.result;
1087
- ge.close(), ee(ge);
1087
+ ge.close(), re(ge);
1088
1088
  };
1089
1089
  });
1090
- return p.then(function(ee) {
1091
- F.db = ee;
1090
+ return p.then(function(re) {
1091
+ F.db = re;
1092
1092
  for (var ue = 0; ue < k.length; ue++) {
1093
1093
  var le = k[ue];
1094
- le._dbInfo.db = ee, A(le._dbInfo);
1094
+ le._dbInfo.db = re, A(le._dbInfo);
1095
1095
  }
1096
- }).catch(function(ee) {
1097
- throw (K(n, ee) || o.resolve()).catch(function() {
1098
- }), ee;
1096
+ }).catch(function(re) {
1097
+ throw (K(n, re) || o.resolve()).catch(function() {
1098
+ }), re;
1099
1099
  });
1100
1100
  }
1101
1101
  }) : v = M.then(function(R) {
@@ -1106,11 +1106,11 @@ var at = { exports: {} };
1106
1106
  var q = F[k];
1107
1107
  q._dbInfo.db = null;
1108
1108
  }
1109
- var z = new o(function(p, ee) {
1109
+ var z = new o(function(p, re) {
1110
1110
  var ue = T.deleteDatabase(n.name);
1111
1111
  ue.onerror = function() {
1112
1112
  var le = ue.result;
1113
- le && le.close(), ee(ue.error);
1113
+ le && le.close(), re(ue.error);
1114
1114
  }, ue.onblocked = function() {
1115
1115
  console.warn('dropInstance blocked for database "' + n.name + '" until all open connections are closed');
1116
1116
  }, ue.onsuccess = function() {
@@ -1120,8 +1120,8 @@ var at = { exports: {} };
1120
1120
  });
1121
1121
  return z.then(function(p) {
1122
1122
  B.db = p;
1123
- for (var ee = 0; ee < F.length; ee++) {
1124
- var ue = F[ee];
1123
+ for (var re = 0; re < F.length; re++) {
1124
+ var ue = F[re];
1125
1125
  A(ue._dbInfo);
1126
1126
  }
1127
1127
  }).catch(function(p) {
@@ -1138,18 +1138,18 @@ var at = { exports: {} };
1138
1138
  _support: N(),
1139
1139
  iterate: Ee,
1140
1140
  getItem: ie,
1141
- setItem: Ue,
1142
- removeItem: Ze,
1141
+ setItem: Be,
1142
+ removeItem: Me,
1143
1143
  clear: rr,
1144
1144
  length: tr,
1145
1145
  key: nr,
1146
- keys: Me,
1146
+ keys: Ce,
1147
1147
  dropInstance: ar
1148
1148
  };
1149
1149
  function ur() {
1150
1150
  return typeof openDatabase == "function";
1151
1151
  }
1152
- var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", cr = "~~local_forage_type~", ze = /^~~local_forage_type~([^~]+)~/, Be = "__lfsc__:", Ce = Be.length, Ge = "arbf", Ie = "blob", Je = "si08", je = "ui08", We = "uic8", qe = "si16", U = "si32", J = "ur16", V = "ui32", O = "fl32", oe = "fl64", ve = Ce + Ge.length, De = Object.prototype.toString;
1152
+ var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", cr = "~~local_forage_type~", ze = /^~~local_forage_type~([^~]+)~/, $e = "__lfsc__:", Pe = $e.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", Ve = "si16", U = "si32", J = "ur16", H = "ui32", O = "fl32", oe = "fl64", ve = Pe + We.length, De = Object.prototype.toString;
1153
1153
  function Se(n) {
1154
1154
  var c = n.length * 0.75, a = n.length, m, v = 0, s, M, R, B;
1155
1155
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
@@ -1164,16 +1164,16 @@ var at = { exports: {} };
1164
1164
  a += be[c[m] >> 2], a += be[(c[m] & 3) << 4 | c[m + 1] >> 4], a += be[(c[m + 1] & 15) << 2 | c[m + 2] >> 6], a += be[c[m + 2] & 63];
1165
1165
  return c.length % 3 === 2 ? a = a.substring(0, a.length - 1) + "=" : c.length % 3 === 1 && (a = a.substring(0, a.length - 2) + "=="), a;
1166
1166
  }
1167
- function Pe(n, c) {
1167
+ function Ne(n, c) {
1168
1168
  var a = "";
1169
1169
  if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
1170
- var m, v = Be;
1171
- n instanceof ArrayBuffer ? (m = n, v += Ge) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += We : a === "[object Int16Array]" ? v += qe : 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));
1170
+ var m, v = $e;
1171
+ 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 += Ve : a === "[object Uint16Array]" ? v += J : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += H : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
1172
1172
  } else if (a === "[object Blob]") {
1173
1173
  var s = new FileReader();
1174
1174
  s.onload = function() {
1175
1175
  var M = cr + n.type + "~" + se(this.result);
1176
- c(Be + Ie + M);
1176
+ c($e + Ie + M);
1177
1177
  }, s.readAsArrayBuffer(n);
1178
1178
  } else
1179
1179
  try {
@@ -1183,16 +1183,16 @@ var at = { exports: {} };
1183
1183
  }
1184
1184
  }
1185
1185
  function ft(n) {
1186
- if (n.substring(0, Ce) !== Be)
1186
+ if (n.substring(0, Pe) !== $e)
1187
1187
  return JSON.parse(n);
1188
- var c = n.substring(ve), a = n.substring(Ce, ve), m;
1188
+ var c = n.substring(ve), a = n.substring(Pe, ve), m;
1189
1189
  if (a === Ie && ze.test(c)) {
1190
1190
  var v = c.match(ze);
1191
1191
  m = v[1], c = c.substring(v[0].length);
1192
1192
  }
1193
1193
  var s = Se(c);
1194
1194
  switch (a) {
1195
- case Ge:
1195
+ case We:
1196
1196
  return s;
1197
1197
  case Ie:
1198
1198
  return $([s], { type: m });
@@ -1200,15 +1200,15 @@ var at = { exports: {} };
1200
1200
  return new Int8Array(s);
1201
1201
  case je:
1202
1202
  return new Uint8Array(s);
1203
- case We:
1204
- return new Uint8ClampedArray(s);
1205
1203
  case qe:
1204
+ return new Uint8ClampedArray(s);
1205
+ case Ve:
1206
1206
  return new Int16Array(s);
1207
1207
  case J:
1208
1208
  return new Uint16Array(s);
1209
1209
  case U:
1210
1210
  return new Int32Array(s);
1211
- case V:
1211
+ case H:
1212
1212
  return new Uint32Array(s);
1213
1213
  case O:
1214
1214
  return new Float32Array(s);
@@ -1219,7 +1219,7 @@ var at = { exports: {} };
1219
1219
  }
1220
1220
  }
1221
1221
  var ir = {
1222
- serialize: Pe,
1222
+ serialize: Ne,
1223
1223
  deserialize: ft,
1224
1224
  stringToBuffer: Se,
1225
1225
  bufferToString: se
@@ -1284,9 +1284,9 @@ var at = { exports: {} };
1284
1284
  M.db.transaction(function(R) {
1285
1285
  xe(R, M, "SELECT * FROM " + M.storeName, [], function(B, F) {
1286
1286
  for (var k = F.rows, q = k.length, z = 0; z < q; z++) {
1287
- var p = k.item(z), ee = p.value;
1288
- if (ee && (ee = M.serializer.deserialize(ee)), ee = n(ee, p.key, z + 1), ee !== void 0) {
1289
- v(ee);
1287
+ var p = k.item(z), re = p.value;
1288
+ if (re && (re = M.serializer.deserialize(re)), re = n(re, p.key, z + 1), re !== void 0) {
1289
+ v(re);
1290
1290
  return;
1291
1291
  }
1292
1292
  }
@@ -1310,8 +1310,8 @@ var at = { exports: {} };
1310
1310
  q ? R(q) : F.db.transaction(function(z) {
1311
1311
  xe(z, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
1312
1312
  M(B);
1313
- }, function(p, ee) {
1314
- R(ee);
1313
+ }, function(p, re) {
1314
+ R(re);
1315
1315
  });
1316
1316
  }, function(z) {
1317
1317
  if (z.code === z.QUOTA_ERR) {
@@ -1444,9 +1444,9 @@ var at = { exports: {} };
1444
1444
  return new o(function(M, R) {
1445
1445
  s.db.transaction(function(B) {
1446
1446
  function F(p) {
1447
- return new o(function(ee, ue) {
1447
+ return new o(function(re, ue) {
1448
1448
  B.executeSql("DROP TABLE IF EXISTS " + p, [], function() {
1449
- ee();
1449
+ re();
1450
1450
  }, function(le, ge) {
1451
1451
  ue(ge);
1452
1452
  });
@@ -1638,11 +1638,11 @@ var at = { exports: {} };
1638
1638
  return !1;
1639
1639
  }, Fr = Array.isArray || function(n) {
1640
1640
  return Object.prototype.toString.call(n) === "[object Array]";
1641
- }, He = {}, kr = {}, $e = {
1641
+ }, He = {}, kr = {}, Fe = {
1642
1642
  INDEXEDDB: lr,
1643
1643
  WEBSQL: At,
1644
1644
  LOCALSTORAGE: Bt
1645
- }, kt = [$e.INDEXEDDB._driver, $e.WEBSQL._driver, $e.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), Gt = {
1645
+ }, kt = [Fe.INDEXEDDB._driver, Fe.WEBSQL._driver, Fe.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), Gt = {
1646
1646
  description: "",
1647
1647
  driver: kt.slice(),
1648
1648
  name: "localforage",
@@ -1672,9 +1672,9 @@ var at = { exports: {} };
1672
1672
  var qt = function() {
1673
1673
  function n(c) {
1674
1674
  E(this, n);
1675
- for (var a in $e)
1676
- if ($e.hasOwnProperty(a)) {
1677
- var m = $e[a], v = m._driver;
1675
+ for (var a in Fe)
1676
+ if (Fe.hasOwnProperty(a)) {
1677
+ var m = Fe[a], v = m._driver;
1678
1678
  this[a] = v, He[v] || this.defineDriver(m);
1679
1679
  }
1680
1680
  this._defaultConfig = sr({}, Gt), this._config = sr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
@@ -1701,26 +1701,26 @@ var at = { exports: {} };
1701
1701
  return;
1702
1702
  }
1703
1703
  for (var k = fr.concat("_initStorage"), q = 0, z = k.length; q < z; q++) {
1704
- var p = k[q], ee = !Ft(Ke, p);
1705
- if ((ee || a[p]) && typeof a[p] != "function") {
1704
+ var p = k[q], re = !Ft(Ke, p);
1705
+ if ((re || a[p]) && typeof a[p] != "function") {
1706
1706
  R(F);
1707
1707
  return;
1708
1708
  }
1709
1709
  }
1710
1710
  var ue = function() {
1711
- for (var Ve = function(Yt) {
1711
+ for (var Ye = function(Yt) {
1712
1712
  return function() {
1713
1713
  var Zt = new Error("Method " + Yt + " is not implemented by the current driver"), Gr = o.reject(Zt);
1714
1714
  return h(Gr, arguments[arguments.length - 1]), Gr;
1715
1715
  };
1716
- }, or = 0, Vt = Ke.length; or < Vt; or++) {
1716
+ }, or = 0, Ht = Ke.length; or < Ht; or++) {
1717
1717
  var dr = Ke[or];
1718
- a[dr] || (a[dr] = Ve(dr));
1718
+ a[dr] || (a[dr] = Ye(dr));
1719
1719
  }
1720
1720
  };
1721
1721
  ue();
1722
- var le = function(Ve) {
1723
- He[B] && console.info("Redefining LocalForage driver: " + B), He[B] = a, kr[B] = Ve, M();
1722
+ var le = function(Ye) {
1723
+ He[B] && console.info("Redefining LocalForage driver: " + B), He[B] = a, kr[B] = Ye, M();
1724
1724
  };
1725
1725
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(le, R) : le(!!a._support) : le(!0);
1726
1726
  } catch (ge) {
@@ -1756,8 +1756,8 @@ var at = { exports: {} };
1756
1756
  var z = 0;
1757
1757
  function p() {
1758
1758
  for (; z < q.length; ) {
1759
- var ee = q[z];
1760
- return z++, s._dbInfo = null, s._ready = null, s.getDriver(ee).then(B).catch(p);
1759
+ var re = q[z];
1760
+ return z++, s._dbInfo = null, s._ready = null, s.getDriver(re).then(B).catch(p);
1761
1761
  }
1762
1762
  R();
1763
1763
  var ue = new Error("No available storage method found.");
@@ -1795,8 +1795,8 @@ var at = { exports: {} };
1795
1795
  }, n.prototype.createInstance = function(a) {
1796
1796
  return new n(a);
1797
1797
  }, n;
1798
- }(), Ht = new qt();
1799
- b.exports = Ht;
1798
+ }(), Vt = new qt();
1799
+ b.exports = Vt;
1800
1800
  }, { 3: 3 }] }, {}, [4])(4);
1801
1801
  });
1802
1802
  })(at);
@@ -1860,7 +1860,7 @@ let er;
1860
1860
  function ga(e) {
1861
1861
  return er(e)();
1862
1862
  }
1863
- function Ne(e) {
1863
+ function Le(e) {
1864
1864
  return er(e);
1865
1865
  }
1866
1866
  function bn(e) {
@@ -1879,20 +1879,20 @@ function Sn(e) {
1879
1879
  if (e.storeMode == "whole-last-updated") {
1880
1880
  if (e.api == null)
1881
1881
  throw new Error("Must supply an api object to use store");
1882
- return Hr({ ...e, storeName: e.storeName ?? "" });
1882
+ return Vr({ ...e, storeName: e.storeName ?? "" });
1883
1883
  } else if (e.storeMode == "partial-last-updated") {
1884
1884
  if (e.api == null)
1885
1885
  throw new Error("Must supply an api object to use store");
1886
- return Hr({ ...e, storeName: e.storeName ?? "" });
1886
+ return Vr({ ...e, storeName: e.storeName ?? "" });
1887
1887
  } else
1888
1888
  return En({ ...e, storeName: e.storeName ?? "" });
1889
1889
  }
1890
1890
  const An = (e) => {
1891
1891
  let t = j(e.url) ?? void 0;
1892
- if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Re(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Re(t, e.id)), e.params != null) {
1892
+ if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Ue(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Ue(t, e.id)), e.params != null) {
1893
1893
  t ?? (t = "");
1894
1894
  let l = new URLSearchParams();
1895
- Object.entries(e.params).sort(ke.firstBy((f) => f[0])).forEach((f) => {
1895
+ Object.entries(e.params).sort(Ge.firstBy((f) => f[0])).forEach((f) => {
1896
1896
  f[1] != null && l.append(f[0], f[1].toString());
1897
1897
  }), t = `${t}?${l.toString()}`;
1898
1898
  }
@@ -2064,7 +2064,7 @@ function En(e) {
2064
2064
  };
2065
2065
  });
2066
2066
  }
2067
- function Hr(e) {
2067
+ function Vr(e) {
2068
2068
  return et(e.storeName, () => {
2069
2069
  const t = Y(), l = Y(0), b = de.utc().toSeconds() / 3600, f = Y(), g = Y(), E = Y({}), C = e.storageMode == "local-cache";
2070
2070
  function T() {
@@ -2266,7 +2266,7 @@ function In(e) {
2266
2266
  }
2267
2267
  function E(u) {
2268
2268
  let r = j(u.url) ?? void 0, y = j(u.id);
2269
- return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Re(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Re(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
2269
+ return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Ue(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Ue(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
2270
2270
  }
2271
2271
  function C(u) {
2272
2272
  var y, S;
@@ -2430,7 +2430,7 @@ function ct(e) {
2430
2430
  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), r.store ?? (r.store = e == null ? void 0 : e.store);
2431
2431
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2432
2432
  const S = (e == null ? void 0 : e.items) ?? [];
2433
- return y == null && r.nav != null && (y = Ne({
2433
+ return y == null && r.nav != null && (y = Le({
2434
2434
  storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
2435
2435
  storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
2436
2436
  nav: r.nav ?? (e == null ? void 0 : e.nav)
@@ -2457,7 +2457,7 @@ function ct(e) {
2457
2457
  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);
2458
2458
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2459
2459
  const S = (e == null ? void 0 : e.items) ?? [];
2460
- return y == null && r.nav != null && (y = Ne({
2460
+ return y == null && r.nav != null && (y = Le({
2461
2461
  storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
2462
2462
  storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
2463
2463
  nav: r.nav ?? (e == null ? void 0 : e.nav)
@@ -2481,7 +2481,7 @@ function ct(e) {
2481
2481
  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);
2482
2482
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2483
2483
  const S = (e == null ? void 0 : e.items) ?? [];
2484
- return y == null && r.nav != null && (y = Ne({
2484
+ return y == null && r.nav != null && (y = Le({
2485
2485
  storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
2486
2486
  storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
2487
2487
  nav: r.nav ?? (e == null ? void 0 : e.nav)
@@ -2500,7 +2500,7 @@ function ct(e) {
2500
2500
  function $(r) {
2501
2501
  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);
2502
2502
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2503
- return y == null && r.nav != null && (y = Ne({
2503
+ return y == null && r.nav != null && (y = Le({
2504
2504
  storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
2505
2505
  storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
2506
2506
  nav: r.nav ?? (e == null ? void 0 : e.nav)
@@ -2520,7 +2520,7 @@ function ct(e) {
2520
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 save this item?" : void 0);
2521
2521
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2522
2522
  const S = (e == null ? void 0 : e.items) ?? [];
2523
- return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Ne({
2523
+ return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Le({
2524
2524
  storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
2525
2525
  storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
2526
2526
  nav: r.nav ?? (e == null ? void 0 : e.nav)
@@ -2573,16 +2573,16 @@ function ct(e) {
2573
2573
  };
2574
2574
  }
2575
2575
  let hr = "Australia/Melbourne", Ir;
2576
- const Vr = "auth-credentials-state";
2576
+ const Hr = "auth-credentials-state";
2577
2577
  function Dn() {
2578
2578
  return Ir;
2579
2579
  }
2580
2580
  function xn(e) {
2581
2581
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
2582
- let l = Y(localStorage.getItem(Vr) ?? "");
2582
+ let l = Y(localStorage.getItem(Hr) ?? "");
2583
2583
  l.value.length == 0 && b();
2584
2584
  function b() {
2585
- l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Vr, l.value);
2585
+ l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Hr, l.value);
2586
2586
  }
2587
2587
  const f = Jt("auth-credentials", {});
2588
2588
  function g(D) {
@@ -2656,14 +2656,14 @@ function xn(e) {
2656
2656
  let A = !1;
2657
2657
  if (d == null)
2658
2658
  return !1;
2659
- let K = d.subscriptions ?? [], Q = d.permissions ?? [], re = N(K, Q, "view");
2660
- return re || !_ || !Te(d.children) ? re : ((d == null ? void 0 : d.children) != null && d.children.forEach((ce) => {
2659
+ let K = d.subscriptions ?? [], Q = d.permissions ?? [], ee = N(K, Q, "view");
2660
+ return ee || !_ || !Te(d.children) ? ee : ((d == null ? void 0 : d.children) != null && d.children.forEach((ce) => {
2661
2661
  $(ce, !0) && (A = !0);
2662
2662
  }), A);
2663
2663
  }
2664
2664
  function o(D) {
2665
2665
  return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (_, d) => {
2666
- const A = Re(qr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${d}`);
2666
+ const A = Ue(qr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${d}`);
2667
2667
  return _ ? `${A}&redirect_path=${_}` : A;
2668
2668
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(D, l.value) ?? "" : "";
2669
2669
  }
@@ -2702,12 +2702,12 @@ function xn(e) {
2702
2702
  throw new Error("Code and State required in OAuth token process");
2703
2703
  if (A != l.value)
2704
2704
  throw new Error("state does not match");
2705
- let re = "";
2706
- e.getTokenUrl ?? (e.getTokenUrl = () => Re(qr(), "token")), re = e.getTokenUrl(d, `${window.location.origin}/authentication`, K, Q);
2705
+ let ee = "";
2706
+ e.getTokenUrl ?? (e.getTokenUrl = () => Ue(qr(), "token")), ee = e.getTokenUrl(d, `${window.location.origin}/authentication`, K, Q);
2707
2707
  const ce = {};
2708
2708
  ce.grant_type = K, ce.code = d, ce.redirect_uri = `${window.location.origin}/authentication`, ce.client_id = Q;
2709
2709
  const W = await Er().post({
2710
- additionalUrl: re,
2710
+ additionalUrl: ee,
2711
2711
  data: ce
2712
2712
  });
2713
2713
  x(W.access_token);
@@ -2841,14 +2841,14 @@ function Mn(e, t = {}) {
2841
2841
  Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
2842
2842
  }
2843
2843
  function w(W, Z) {
2844
- h = Z.map(D), h.forEach((H) => W.$el.appendChild(H));
2844
+ h = Z.map(D), h.forEach((V) => W.$el.appendChild(V));
2845
2845
  }
2846
2846
  function P(W) {
2847
2847
  h.forEach((Z) => W.$el.removeChild(Z));
2848
2848
  }
2849
2849
  function D(W) {
2850
- const Z = b + "px", H = -b / 2 + "px", ae = f + 1, G = document.createElement("div");
2851
- 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;
2850
+ const Z = b + "px", V = -b / 2 + "px", ae = f + 1, G = document.createElement("div");
2851
+ 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 = V, G.style.height = Z, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = V, G.style.height = Z, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = V, G.style.width = Z, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = V, G.style.width = Z, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
2852
2852
  }
2853
2853
  function _(W) {
2854
2854
  var ne;
@@ -2857,12 +2857,12 @@ function Mn(e, t = {}) {
2857
2857
  const Z = Ae(e);
2858
2858
  if (!Z)
2859
2859
  return;
2860
- const H = Z.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2860
+ const V = Z.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2861
2861
  if (i.value.x = G.clientX, i.value.y = G.clientY, x = {
2862
- left: H.offsetLeft,
2863
- top: H.offsetTop,
2864
- height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2865
- width: parseInt(window.getComputedStyle(H).getPropertyValue("width"))
2862
+ left: V.offsetLeft,
2863
+ top: V.offsetTop,
2864
+ height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
2865
+ width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
2866
2866
  }, I = Lr(x), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
2867
2867
  return;
2868
2868
  let X = W.target;
@@ -2872,7 +2872,7 @@ function Mn(e, t = {}) {
2872
2872
  const Z = Ae(e);
2873
2873
  if (!Z)
2874
2874
  return;
2875
- const H = Z.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2875
+ const V = Z.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2876
2876
  let X = G.clientX - i.value.x, ne = G.clientY - i.value.y;
2877
2877
  const fe = Ae(x);
2878
2878
  if (o.includes("t")) {
@@ -2891,7 +2891,7 @@ function Mn(e, t = {}) {
2891
2891
  const ie = Math.min(E, Math.max(g, (fe.width ?? 0) + X));
2892
2892
  I.width = ie;
2893
2893
  }
2894
- H.dispatchEvent(new CustomEvent("resize")), L(W), re(I);
2894
+ V.dispatchEvent(new CustomEvent("resize")), L(W), ee(I);
2895
2895
  }
2896
2896
  function A() {
2897
2897
  document.documentElement.style.cursor = "", o = null, y.forEach((W) => {
@@ -2905,37 +2905,37 @@ function Mn(e, t = {}) {
2905
2905
  b: "s",
2906
2906
  l: "w"
2907
2907
  };
2908
- return W.split("").map((H) => Z[H]).join("") + "-resize";
2908
+ return W.split("").map((V) => Z[V]).join("") + "-resize";
2909
2909
  }
2910
2910
  function Q(W) {
2911
2911
  const Z = Ae(e);
2912
2912
  if (!Z)
2913
2913
  return;
2914
- const H = Z.$el;
2914
+ const V = Z.$el;
2915
2915
  if (console.log(l), l !== "page" && W == "page") {
2916
- const ae = jt(H), G = Ae(ae) ?? null;
2916
+ const ae = jt(V), G = Ae(ae) ?? null;
2917
2917
  let X = 0;
2918
2918
  if (G != null) {
2919
2919
  const ne = window.getComputedStyle(G);
2920
2920
  X = parseInt(ne.getPropertyValue("width")) - G.offsetLeft;
2921
2921
  }
2922
- H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", H.offsetHeight, u.value = !0, re({
2922
+ V.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", V.offsetHeight, u.value = !0, ee({
2923
2923
  height: void 0,
2924
2924
  width: X,
2925
2925
  top: 0,
2926
2926
  left: 0,
2927
2927
  position: void 0
2928
- }), he(H, "transitionend", () => {
2929
- H.style.width = "auto", H.style.top = "", H.style.left = "", H.style.position = "", H.style.transition = "", u.value = !1;
2928
+ }), he(V, "transitionend", () => {
2929
+ V.style.width = "auto", V.style.top = "", V.style.left = "", V.style.position = "", V.style.transition = "", u.value = !1;
2930
2930
  }, { once: !0 });
2931
2931
  } else if ((l == "page" || Z.$el.style.position !== "absolute") && W !== "page") {
2932
- H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, x = {
2933
- height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2934
- width: parseInt(window.getComputedStyle(H).getPropertyValue("width")),
2935
- top: H.offsetTop,
2936
- left: H.offsetLeft,
2932
+ V.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, x = {
2933
+ height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
2934
+ width: parseInt(window.getComputedStyle(V).getPropertyValue("width")),
2935
+ top: V.offsetTop,
2936
+ left: V.offsetLeft,
2937
2937
  position: "absolute"
2938
- }, re(x), H.offsetHeight;
2938
+ }, ee(x), V.offsetHeight;
2939
2939
  const ae = x;
2940
2940
  W == "freestyle" ? I = {
2941
2941
  height: ae.height,
@@ -2949,30 +2949,30 @@ function Mn(e, t = {}) {
2949
2949
  top: (ae.top ?? 0) + 2,
2950
2950
  left: (ae.left ?? 0) + 2,
2951
2951
  position: "absolute"
2952
- }), re(I), he(H, "transitionend", () => {
2953
- H.style.transition = "", u.value = !1;
2952
+ }), ee(I), he(V, "transitionend", () => {
2953
+ V.style.transition = "", u.value = !1;
2954
2954
  }, { once: !0 });
2955
2955
  }
2956
2956
  }
2957
- function re(W) {
2957
+ function ee(W) {
2958
2958
  const Z = Ae(e);
2959
2959
  if (!Z)
2960
2960
  return;
2961
- const H = Z.$el;
2962
- 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);
2961
+ const V = Z.$el;
2962
+ W.top ? V.style.top = `${W.top}px` : V.style.top = void 0, W.left ? V.style.left = `${W.left}px` : V.style.left = void 0, W.height ? V.style.height = `${W.height}px` : V.style.height = void 0, W.width ? V.style.width = `${W.width}px` : V.style.width = void 0, W.position ? V.style.position = `${W.position}` : V.style.position = void 0, console.log(V.style.position);
2963
2963
  }
2964
2964
  function ce(W, Z) {
2965
2965
  if (S.value)
2966
2966
  return;
2967
- const H = Ae(e);
2968
- H && (w(H, W ?? Tn), Q(Z), r.push(he(H.$el, "mousedown", _)), r.push(he(H.$el, "touchstart", _)), S.value = !0, l = Z);
2967
+ const V = Ae(e);
2968
+ V && (w(V, W ?? Tn), Q(Z), r.push(he(V.$el, "mousedown", _)), r.push(he(V.$el, "touchstart", _)), S.value = !0, l = Z);
2969
2969
  }
2970
2970
  function we(W) {
2971
2971
  if (!S.value)
2972
2972
  return;
2973
2973
  const Z = Ae(e);
2974
- Z && (P(Z), Q(W), r.forEach((H) => {
2975
- H();
2974
+ Z && (P(Z), Q(W), r.forEach((V) => {
2975
+ V();
2976
2976
  }), r.length = 0, S.value = !1);
2977
2977
  }
2978
2978
  return {
@@ -3493,12 +3493,12 @@ function Da(e, t) {
3493
3493
  }), $ = Y(void 0), { actionErrorMsg: o, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: S, saveItem: i } = ct({
3494
3494
  nav: g,
3495
3495
  proxyID: N.value,
3496
- store: Ne({
3496
+ store: Le({
3497
3497
  storeMode: b,
3498
3498
  storageMode: f,
3499
3499
  nav: g
3500
3500
  })
3501
- }), x = te(() => e.errorMsg ?? o.value), I = te(() => e.loadingMsg ?? h.value), L = te(() => I.value != null), w = Y(e.itemID ?? (l ? (ae = C == null ? void 0 : C.params) == null ? void 0 : ae.id : void 0)), P = Y(w.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Le(!1), _ = te(() => {
3501
+ }), x = te(() => e.errorMsg ?? o.value), I = te(() => e.loadingMsg ?? h.value), L = te(() => I.value != null), w = Y(e.itemID ?? (l ? (ae = C == null ? void 0 : C.params) == null ? void 0 : ae.id : void 0)), P = Y(w.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), _ = te(() => {
3502
3502
  if (P.value == "new")
3503
3503
  return !1;
3504
3504
  const G = j($);
@@ -3516,7 +3516,7 @@ function Da(e, t) {
3516
3516
  }), K = te(() => {
3517
3517
  const G = j($);
3518
3518
  return e.onCanSave != null ? e.onCanSave(G) : !0;
3519
- }), { isChanged: Q, restartTracker: re } = $n($, {
3519
+ }), { isChanged: Q, restartTracker: ee } = $n($, {
3520
3520
  useTracker: e.trackChanges,
3521
3521
  propsToIgnore: e.trackIgnoreProps,
3522
3522
  propsToTrack: e.trackProps
@@ -3580,7 +3580,7 @@ function Da(e, t) {
3580
3580
  $.value = ne.data;
3581
3581
  }
3582
3582
  }
3583
- re();
3583
+ ee();
3584
3584
  }
3585
3585
  function Z(G, X) {
3586
3586
  const {
@@ -3588,7 +3588,7 @@ function Da(e, t) {
3588
3588
  onCanSaveAsync: fe,
3589
3589
  onGetSaveAsync: ie,
3590
3590
  onSaveAsync: Ee,
3591
- onSaveSuccessAsync: Ue = () => ((X == null ? void 0 : X.navBack) === !0 ? E.back() : P.value = "view", Promise.resolve(void 0))
3591
+ onSaveSuccessAsync: Be = (Me) => ((X == null ? void 0 : X.navBack) === !0 ? E.back() : (G.rowVersion != null && Me.rowVersion != null && (G.rowVersion = Me.rowVersion), ee(), P.value = "view"), Promise.resolve(void 0))
3592
3592
  } = { ...e };
3593
3593
  i({
3594
3594
  additionalUrl: ne,
@@ -3597,14 +3597,14 @@ function Da(e, t) {
3597
3597
  onCanSaveAsync: fe,
3598
3598
  onGetSaveAsync: ie,
3599
3599
  onSaveAsync: Ee,
3600
- onSaveSuccessAsync: Ue,
3600
+ onSaveSuccessAsync: Be,
3601
3601
  proxyID: N.value,
3602
3602
  // ...params.getOptions(),
3603
3603
  // ...(useBladeSrc ? bladeData.value : {}),
3604
3604
  mode: P.value
3605
3605
  });
3606
3606
  }
3607
- function H() {
3607
+ function V() {
3608
3608
  const G = j(P);
3609
3609
  !G || G == "view" ? P.value = "edit" : G == "edit" && (P.value = "view");
3610
3610
  }
@@ -3624,6 +3624,7 @@ function Da(e, t) {
3624
3624
  isEditing: te(() => P.value == "new" || P.value == "edit"),
3625
3625
  isEditable: d,
3626
3626
  isLoading: L,
3627
+ isNew: te(() => P.value == "new"),
3627
3628
  isRestorable: A,
3628
3629
  isSaveable: K,
3629
3630
  loadingMsg: I,
@@ -3632,7 +3633,7 @@ function Da(e, t) {
3632
3633
  restoreItem: we,
3633
3634
  saveItem: Z,
3634
3635
  showError: D,
3635
- toggleMode: H
3636
+ toggleMode: V
3636
3637
  };
3637
3638
  }
3638
3639
  const Yr = Y(!0), Zr = Y(!1), zr = Y(), gr = Y(!1);
@@ -3679,7 +3680,7 @@ function Fn(e) {
3679
3680
  if (u == null)
3680
3681
  return;
3681
3682
  let r = yn(u.microservice ?? "default") ?? "";
3682
- return u.path != null && (r = Re(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3683
+ return u.path != null && (r = Ue(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3683
3684
  }
3684
3685
  function N(h) {
3685
3686
  const u = C(h);
@@ -3719,8 +3720,8 @@ function Fn(e) {
3719
3720
  }, Mr;
3720
3721
  }
3721
3722
  function xa(e, t, l) {
3722
- var We, qe;
3723
- const b = Nn(), f = it(), g = Nr(), E = rt(), { bladeData: C } = Cn({}), T = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", o = e.storeMode ?? ((We = f.findItem($)) == null ? void 0 : We.storeMode) ?? "session", h = e.storageMode ?? ((qe = f.findItem($)) == null ? void 0 : qe.storageMode) ?? "local-cache", u = j(e.customFilters) ?? [], r = Y([]), y = te(() => Qt([
3723
+ var qe, Ve;
3724
+ const b = Nn(), f = it(), g = Nr(), E = rt(), { bladeData: C } = Cn({}), T = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", o = e.storeMode ?? ((qe = f.findItem($)) == null ? void 0 : qe.storeMode) ?? "session", h = e.storageMode ?? ((Ve = f.findItem($)) == null ? void 0 : Ve.storageMode) ?? "local-cache", u = j(e.customFilters) ?? [], r = Y([]), y = te(() => Qt([
3724
3725
  ...u.filter((U) => U.name != null).map((U) => U.name),
3725
3726
  ...e.defaultFilters ?? [],
3726
3727
  ...r.value
@@ -3730,82 +3731,82 @@ function xa(e, t, l) {
3730
3731
  function L() {
3731
3732
  var U, J;
3732
3733
  if (T) {
3733
- const V = (U = C.value) == null ? void 0 : U.page;
3734
- if (V != null)
3735
- return Number.parseInt(V);
3734
+ const H = (U = C.value) == null ? void 0 : U.page;
3735
+ if (H != null)
3736
+ return Number.parseInt(H);
3736
3737
  }
3737
3738
  if (N) {
3738
- const V = (J = E == null ? void 0 : E.query) == null ? void 0 : J.page;
3739
- if (V != null)
3740
- return Number.parseInt(typeof V == "string" ? V : V.toString());
3739
+ const H = (J = E == null ? void 0 : E.query) == null ? void 0 : J.page;
3740
+ if (H != null)
3741
+ return Number.parseInt(typeof H == "string" ? H : H.toString());
3741
3742
  }
3742
3743
  return 1;
3743
3744
  }
3744
3745
  const w = te(() => {
3745
3746
  var U, J;
3746
3747
  if (T) {
3747
- const V = (U = C.value) == null ? void 0 : U.proxyID;
3748
- if (V != null)
3749
- return V;
3748
+ const H = (U = C.value) == null ? void 0 : U.proxyID;
3749
+ if (H != null)
3750
+ return H;
3750
3751
  }
3751
3752
  if (N) {
3752
- const V = (J = E == null ? void 0 : E.query) == null ? void 0 : J.query;
3753
- if (V != null)
3754
- return V;
3753
+ const H = (J = E == null ? void 0 : E.query) == null ? void 0 : J.query;
3754
+ if (H != null)
3755
+ return H;
3755
3756
  }
3756
3757
  return e.proxyID;
3757
3758
  }), P = Y(D());
3758
3759
  function D() {
3759
3760
  var U, J;
3760
3761
  if (T) {
3761
- const V = (U = C.value) == null ? void 0 : U.search;
3762
- if (V != null)
3763
- return V;
3762
+ const H = (U = C.value) == null ? void 0 : U.search;
3763
+ if (H != null)
3764
+ return H;
3764
3765
  }
3765
3766
  if (N) {
3766
- const V = (J = E == null ? void 0 : E.query) == null ? void 0 : J.search;
3767
- if (V != null)
3768
- return V;
3767
+ const H = (J = E == null ? void 0 : E.query) == null ? void 0 : J.search;
3768
+ if (H != null)
3769
+ return H;
3769
3770
  }
3770
3771
  }
3771
3772
  const _ = Y(j(e.startShowingInactive) ?? !1), d = te(() => [
3772
3773
  ...e.searchProps ?? [],
3773
3774
  ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3774
- ]), A = Y([]), K = Le([]), Q = Y([]);
3775
- let re;
3776
- const { actionErrorMsg: ce, actionLoadingMsg: we, deleteItem: W, doAction: Z, getItem: H, getAllItems: ae, restoreItem: G } = ct({
3775
+ ]), A = Y([]), K = Re([]), Q = Y([]);
3776
+ let ee;
3777
+ const { actionErrorMsg: ce, actionLoadingMsg: we, deleteItem: W, doAction: Z, getItem: V, getAllItems: ae, restoreItem: G } = ct({
3777
3778
  nav: $,
3778
3779
  proxyID: w.value,
3779
- store: Ne({
3780
+ store: Le({
3780
3781
  storeMode: o,
3781
3782
  storageMode: h,
3782
3783
  nav: $
3783
3784
  })
3784
- }), X = te(() => e.errorMsg ?? ce.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ie = Le(!1), Ee = Le(e.showSearch ?? !0), Ue = Y(0), Ze = te(() => {
3785
+ }), X = te(() => e.errorMsg ?? ce.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ie = Re(!1), Ee = Re(e.showSearch ?? !0), Be = Y(0), Me = te(() => {
3785
3786
  let U, J = [];
3786
3787
  S.value.forEach((O) => {
3787
3788
  const oe = y.value[O], ve = u.find((De) => De.name == oe);
3788
3789
  ve != null ? U = U != null ? `${U}ANDALSO${ve.filterFunction()}` : ve.filterFunction() : J.push(oe);
3789
3790
  });
3790
- const V = {};
3791
- return Te(J) && (V.filterBy = J.toString()), U != null && (V.query = U), V;
3791
+ const H = {};
3792
+ return Te(J) && (H.filterBy = J.toString()), U != null && (H.query = U), H;
3792
3793
  }), rr = te(() => {
3793
3794
  var J;
3794
3795
  let U = e.params != null ? { ...e.params } : {};
3795
- return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (I.value - 1) * e.itemsPerPage), Ze.value != null && (U = { ...U, ...Ze.value }), _.value && (U.includeInactive = !0), Te(e.selectProps) && (U.properties = (J = e.selectProps) == null ? void 0 : J.toString()), P.value != null && (U.searchString = P.value), U;
3796
- }), tr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = te(() => (U) => _.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Me = te(() => Q.value.filter((U) => !U.hide)), ar = te(() => {
3796
+ return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (I.value - 1) * e.itemsPerPage), Me.value != null && (U = { ...U, ...Me.value }), _.value && (U.includeInactive = !0), Te(e.selectProps) && (U.properties = (J = e.selectProps) == null ? void 0 : J.toString()), P.value != null && (U.searchString = P.value), U;
3797
+ }), tr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = 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)), ar = te(() => {
3797
3798
  let U = new Array();
3798
- return Me.value.filter((V) => V.sublevel != null).forEach((V) => {
3799
- let O = U.find((oe) => oe.position == V.sublevel);
3800
- O == null ? U.push({ position: V.sublevel ?? 0, values: [V] }) : O.values.push(V);
3801
- }), U.sort(ke.firstBy((V) => V.position));
3799
+ return Ce.value.filter((H) => H.sublevel != null).forEach((H) => {
3800
+ let O = U.find((oe) => oe.position == H.sublevel);
3801
+ O == null ? U.push({ position: H.sublevel ?? 0, values: [H] }) : O.values.push(H);
3802
+ }), U.sort(Ge.firstBy((H) => H.position));
3802
3803
  }), lr = te(() => {
3803
3804
  let U = new Array();
3804
- return Me.value.filter((V) => V.level != null).forEach((V) => {
3805
- let O = U.find((oe) => oe.position == V.level);
3806
- O == null ? U.push({ position: V.level ?? 0, values: [V] }) : O.values.push(V);
3807
- }), U.sort(ke.firstBy((V) => V.position));
3808
- }), ur = te(() => Me.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
3805
+ return Ce.value.filter((H) => H.level != null).forEach((H) => {
3806
+ let O = U.find((oe) => oe.position == H.level);
3807
+ O == null ? U.push({ position: H.level ?? 0, values: [H] }) : O.values.push(H);
3808
+ }), U.sort(Ge.firstBy((H) => H.position));
3809
+ }), ur = te(() => Ce.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
3809
3810
  function be(U) {
3810
3811
  if (e.itemBladeName != null) {
3811
3812
  let J = {
@@ -3822,19 +3823,19 @@ function xa(e, t, l) {
3822
3823
  function cr(U) {
3823
3824
  const {
3824
3825
  additionalUrl: J,
3825
- onDeleteAsync: V
3826
+ onDeleteAsync: H
3826
3827
  } = { ...e }, O = j(U), oe = O.id, ve = (De) => {
3827
3828
  if (De != null) {
3828
3829
  let Se = A.value.findIndex((se) => se.id == De);
3829
3830
  if (Se > -1 && A.value.splice(Se, 1), e.items != null) {
3830
- let se = e.items.findIndex((Pe) => Pe.id == De);
3831
+ let se = e.items.findIndex((Ne) => Ne.id == De);
3831
3832
  se > -1 && e.items.splice(se, 1);
3832
3833
  }
3833
3834
  } else {
3834
3835
  let Se = A.value.findIndex((se) => se === O);
3835
3836
  if (Se == -1 && (Se = A.value.findIndex((se) => se == O)), Se > -1 && A.value.splice(Se, 1), e.items != null) {
3836
- let se = e.items.findIndex((Pe) => Pe === O);
3837
- se == -1 && (se = e.items.findIndex((Pe) => Pe == O)), se > -1 && e.items.splice(se, 1);
3837
+ let se = e.items.findIndex((Ne) => Ne === O);
3838
+ se == -1 && (se = e.items.findIndex((Ne) => Ne == O)), se > -1 && e.items.splice(se, 1);
3838
3839
  }
3839
3840
  }
3840
3841
  };
@@ -3843,7 +3844,7 @@ function xa(e, t, l) {
3843
3844
  data: O,
3844
3845
  nav: $,
3845
3846
  onCanDeleteAsync: e.onCanDeleteAsync,
3846
- onDeleteAsync: V,
3847
+ onDeleteAsync: H,
3847
3848
  onDeleteSuccessAsync: async () => (ve(oe), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3848
3849
  proxyID: w.value,
3849
3850
  // ...(useBladeSrc ? bladeData.value : {}),
@@ -3862,20 +3863,20 @@ function xa(e, t, l) {
3862
3863
  // ...(useBladeSrc ? bladeData.value : {})
3863
3864
  });
3864
3865
  }
3865
- function Be() {
3866
+ function $e() {
3866
3867
  Z(() => {
3867
- b.exportToCSV(Me.value, K.value);
3868
+ b.exportToCSV(Ce.value, K.value);
3868
3869
  }, { loadingMsg: "Exporting to CSV" });
3869
3870
  }
3870
- function Ce() {
3871
+ function Pe() {
3871
3872
  let U = j(A);
3872
3873
  if (U = e.onFilter ? e.onFilter(U) : U, P.value != null && P.value.length > 0) {
3873
3874
  let J = [...d.value];
3874
- e.itemText && J.push(e.itemText), Te(J) && (U = U.filter((V) => hn(V, P.value, J)));
3875
+ e.itemText && J.push(e.itemText), Te(J) && (U = U.filter((H) => hn(H, P.value, J)));
3875
3876
  }
3876
3877
  K.value = U;
3877
3878
  }
3878
- function Ge() {
3879
+ function We() {
3879
3880
  const U = (l == null ? void 0 : l.hideActions) ?? e.hideActions;
3880
3881
  e.headers != null && (Q.value = [...e.headers], U || Q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3881
3882
  }
@@ -3899,28 +3900,28 @@ function xa(e, t, l) {
3899
3900
  onGetSuccessAsync: e.onGetSuccessAsync
3900
3901
  };
3901
3902
  if (e.isSingle === !0)
3902
- J.id === "new" ? A.value = [] : A.value = await H(J);
3903
+ J.id === "new" ? A.value = [] : A.value = await V(J);
3903
3904
  else {
3904
- let V = await ae({
3905
+ let H = await ae({
3905
3906
  ...J,
3906
3907
  onGetSuccessAsync: async (O, oe) => {
3907
3908
  let ve = O == null ? void 0 : O.data;
3908
- return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && (Ue.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ve = await e.onGetSuccessAsync(ve, oe)), ve;
3909
+ return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && (Be.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ve = await e.onGetSuccessAsync(ve, oe)), ve;
3909
3910
  }
3910
3911
  });
3911
- A.value = V;
3912
+ A.value = H;
3912
3913
  }
3913
- Ce();
3914
+ Pe();
3914
3915
  }
3915
3916
  function Je(U, J) {
3916
- const V = j(U);
3917
- if (V != null && V === re && e.canUnselect ? re = null : re = V, t != null && t("select", re), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(V)))
3917
+ const H = j(U);
3918
+ if (H != null && H === ee && e.canUnselect ? ee = null : ee = H, t != null && t("select", ee), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(H)))
3918
3919
  if (e.onSelectItem != null)
3919
- e.onSelectItem(re);
3920
+ e.onSelectItem(ee);
3920
3921
  else {
3921
3922
  let O = {
3922
3923
  bladeName: e.itemBladeName,
3923
- id: V.id,
3924
+ id: H.id,
3924
3925
  nav: $
3925
3926
  };
3926
3927
  J == "page" && g.push({
@@ -3932,8 +3933,8 @@ function xa(e, t, l) {
3932
3933
  function je() {
3933
3934
  Ee.value ? (Ee.value = e.showSearch ?? !1, P.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3934
3935
  }
3935
- return Ge(), Xt([P], () => {
3936
- Ce();
3936
+ return We(), Xt([P], () => {
3937
+ Pe();
3937
3938
  }, { debounce: 500, maxWait: 500 }), _e([_, I], async () => {
3938
3939
  await Ie();
3939
3940
  }), _e([X, () => e.errorMsg], ([U, J]) => {
@@ -3941,7 +3942,7 @@ function xa(e, t, l) {
3941
3942
  }), _e(() => e.refreshToggle, () => {
3942
3943
  Ie({ deepRefresh: !0 });
3943
3944
  }), pr([A, () => e.items], () => {
3944
- Ce();
3945
+ Pe();
3945
3946
  }), Or(async () => {
3946
3947
  var U;
3947
3948
  e.eager == !0 && await Ie({ deepRefresh: ((U = E == null ? void 0 : E.params) == null ? void 0 : U.refresh) == "true" });
@@ -3952,7 +3953,7 @@ function xa(e, t, l) {
3952
3953
  deleteItem: cr,
3953
3954
  displayHeaders: ur,
3954
3955
  errorMsg: X,
3955
- exportToCSV: Be,
3956
+ exportToCSV: $e,
3956
3957
  filteredItems: K,
3957
3958
  filters: y,
3958
3959
  filtersChanged: x,
@@ -3971,32 +3972,32 @@ function xa(e, t, l) {
3971
3972
  showInactive: _,
3972
3973
  showSearch: Ee,
3973
3974
  subtitleOptions: ar,
3974
- tableHeaders: Me,
3975
+ tableHeaders: Ce,
3975
3976
  titleOptions: lr,
3976
3977
  toggleSearch: je,
3977
- totalPages: Ue
3978
+ totalPages: Be
3978
3979
  };
3979
3980
  }
3980
- let Fe;
3981
+ let ke;
3981
3982
  function kn(e) {
3982
3983
  const t = Y((e == null ? void 0 : e.default) ?? "Admin"), l = Y((e == null ? void 0 : e.groups) ?? []);
3983
- return Fe = {
3984
+ return ke = {
3984
3985
  currentGroup: t,
3985
3986
  groupOptions: l,
3986
3987
  useRoutes: e == null ? void 0 : e.useRoutes
3987
- }, Fe;
3988
+ }, ke;
3988
3989
  }
3989
3990
  function _a() {
3990
3991
  const e = Nr(), t = it(), l = Dn();
3991
3992
  return {
3992
- ...Fe,
3993
+ ...ke,
3993
3994
  sidebarNavItems: te(() => {
3994
3995
  var g;
3995
3996
  let b = e.getRoutes().filter((E) => E.meta != null && E.meta.menuGroup != null);
3996
3997
  const f = [];
3997
3998
  return b.forEach((E) => {
3998
3999
  var o;
3999
- const C = Fe.groupOptions.value.find((h) => h.displayName == E.meta.menuGroup), T = t.findItem(E.meta.nav), N = E.meta;
4000
+ const C = ke.groupOptions.value.find((h) => h.displayName == E.meta.menuGroup), T = t.findItem(E.meta.nav), N = E.meta;
4000
4001
  let $ = f.find((h) => h.displayName == N.menuGroup);
4001
4002
  $ == null && ($ = {
4002
4003
  displayName: N.menuGroup,
@@ -4014,8 +4015,8 @@ function _a() {
4014
4015
  });
4015
4016
  }), f.forEach((E) => {
4016
4017
  var C;
4017
- E.items = (C = E.items) == null ? void 0 : C.filter((T) => !T.requiresAuth || l.doShow(T.subscriptions, T.permissions, "view")).sort(ke.firstBy((T) => T.displayName));
4018
- }), Fe.currentGroup.value != null ? ((g = f.find((E) => E.displayName == Fe.currentGroup.value)) == null ? void 0 : g.items) ?? [] : f.filter((E) => !E.requiresAuth || l.doShow(E.subscriptions, E.permissions, "view"));
4018
+ E.items = (C = E.items) == null ? void 0 : C.filter((T) => !T.requiresAuth || l.doShow(T.subscriptions, T.permissions, "view")).sort(Ge.firstBy((T) => T.displayName));
4019
+ }), ke.currentGroup.value != null ? ((g = f.find((E) => E.displayName == ke.currentGroup.value)) == null ? void 0 : g.items) ?? [] : f.filter((E) => !E.requiresAuth || l.doShow(E.subscriptions, E.permissions, "view"));
4019
4020
  })
4020
4021
  };
4021
4022
  }
@@ -4103,7 +4104,7 @@ function Pa(e) {
4103
4104
  export {
4104
4105
  oa as DataURIToBlob,
4105
4106
  la as addWeekday,
4106
- Re as appendUrl,
4107
+ Ue as appendUrl,
4107
4108
  an as capitalizeWords,
4108
4109
  pn as checkImage,
4109
4110
  sn as containsSearch,
@@ -4124,7 +4125,7 @@ export {
4124
4125
  En as createSessionStoreDefinition,
4125
4126
  bn as createStoreBuilder,
4126
4127
  wn as createUrl,
4127
- Hr as createWholeLastUpdateStoreDefinition,
4128
+ Vr as createWholeLastUpdateStoreDefinition,
4128
4129
  cn as csvContains,
4129
4130
  ba as csvDefaults,
4130
4131
  nt as deepSelect,
@@ -4181,11 +4182,11 @@ export {
4181
4182
  Mn as useResizable,
4182
4183
  Ca as useRules,
4183
4184
  ga as useStore,
4184
- Ne as useStoreDefinition,
4185
+ Le as useStoreDefinition,
4185
4186
  $n as useTracker,
4186
4187
  ma as useUrls,
4187
4188
  mn as validEmail,
4188
- Ye as weekdayPairs,
4189
+ Ze as weekdayPairs,
4189
4190
  na as weekdayShortName,
4190
4191
  ta as weekdayValue
4191
4192
  };
package/dist/index.d.ts CHANGED
@@ -1208,6 +1208,7 @@ export declare function useItem(props: ItemProps, options?: UseItemOptions): {
1208
1208
  isEditing: ComputedRef<boolean>;
1209
1209
  isEditable: ComputedRef<boolean>;
1210
1210
  isLoading: ComputedRef<boolean>;
1211
+ isNew: ComputedRef<boolean>;
1211
1212
  isRestorable: ComputedRef<boolean>;
1212
1213
  isSaveable: ComputedRef<boolean>;
1213
1214
  loadingMsg: ComputedRef<string | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.59",
3
+ "version": "1.4.61",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {