bt-core-app 1.4.90 → 1.4.92

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,24 +1,23 @@
1
- import { ref as z, shallowRef as Re, computed as te, toValue as K, watch as Te, toRef as Yt, onMounted as Xr, defineComponent as Zt, openBlock as Jt, createElementBlock as jt, createVNode as Kt, unref as Qt, withCtx as Xt, createTextVNode as Ot } from "vue";
2
- import { watchArray as Or, useStorage as pt, useEventListener as me, toValue as Ae, useParentElement as en, useResizeObserver as rn, useArrayUnique as tn, useArrayDifference as Gr, watchDebounced as nn, tryOnMounted as an } from "@vueuse/core";
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 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
4
  import { DateTime as he } from "luxon";
5
5
  import { useRouter as Mr, useRoute as et } from "vue-router";
6
- import { VBtn as ln } from "vuetify/components";
7
- function un(e) {
8
- return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, cn);
6
+ function Ot(e) {
7
+ return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, pt);
9
8
  }
10
- function cn(e) {
9
+ function pt(e) {
11
10
  const t = Math.random() * 16 | 0;
12
11
  return (e == "x" ? t : t & 3 | 8).toString(16);
13
12
  }
14
- function fn(e) {
13
+ function en(e) {
15
14
  const t = z([]), l = Re(), S = Re(), s = Re(), g = te(() => l.value != null);
16
15
  function x(d) {
17
16
  t.value = t.value.filter((h) => h.id != d);
18
17
  }
19
18
  function P(d) {
20
19
  const h = {
21
- id: un(),
20
+ id: Ot(),
22
21
  msg: d ?? "Loading"
23
22
  };
24
23
  return t.value.push(h), h.id;
@@ -61,7 +60,7 @@ function fn(e) {
61
60
  };
62
61
  }
63
62
  var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
64
- function sn(e) {
63
+ function rn(e) {
65
64
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
66
65
  }
67
66
  var Ue = function() {
@@ -111,18 +110,18 @@ function Be(e, t) {
111
110
  while (S.startsWith("/"));
112
111
  return `${l}/${S}`;
113
112
  }
114
- function ta(e) {
113
+ function Zn(e) {
115
114
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
116
115
  }
117
- function na(e = "blitzItExtensionExists") {
116
+ function Jn(e = "blitzItExtensionExists") {
118
117
  try {
119
118
  var t = document.getElementById(e);
120
119
  return t != null;
121
120
  } catch (l) {
122
- return console.log(wn(l)), !1;
121
+ return console.log(sn(l)), !1;
123
122
  }
124
123
  }
125
- function aa(e, t) {
124
+ function jn(e, t) {
126
125
  return [
127
126
  { lat: e.lat - t, lng: e.lng + t },
128
127
  { lat: e.lat - t, lng: e.lng - t },
@@ -130,7 +129,7 @@ function aa(e, t) {
130
129
  { lat: e.lat + t, lng: e.lng + t }
131
130
  ];
132
131
  }
133
- function la(e, t) {
132
+ function Kn(e, t) {
134
133
  return [
135
134
  { lat: e.lat - t * 2, lng: e.lng + t },
136
135
  { lat: e.lat - t * 2, lng: e.lng - t },
@@ -138,7 +137,7 @@ function la(e, t) {
138
137
  { lat: e.lat, lng: e.lng + t }
139
138
  ];
140
139
  }
141
- function ua(e, t) {
140
+ function Qn(e, t) {
142
141
  return [
143
142
  { lat: e.lat, lng: e.lng + t },
144
143
  { lat: e.lat, lng: e.lng - t },
@@ -146,7 +145,7 @@ function ua(e, t) {
146
145
  { lat: e.lat + t * 2, lng: e.lng + t }
147
146
  ];
148
147
  }
149
- function ia(e) {
148
+ function Xn(e) {
150
149
  var t = rt(e, !0);
151
150
  return t = t.toLowerCase(), t = t.replace(" victoria ", "vic"), t = t.replace(" queensland ", "qld"), t = t.replace(" new south wales ", "nsw"), t = t.replace(" northern territory ", "nt"), t = t.replace(" western australia ", "wa"), t = t.replace(" tasmania ", "tas"), t = t.replace(" south australia ", "sa"), t = t.replace(" australian captial territory ", "act"), t = t.replace(" & ", " and "), t = t.replace(" road", " rd"), t = t.replace(" street", " st"), t = t.replace(" lane", " ln"), t = t.replace(" alley", " aly"), t = t.replace(" arcade", " arc"), t = t.replace(" boulevard", " blvd"), t = t.replace(" court", " ct"), t = t.replace(" cove", " cv"), t = t.replace(" highway", " hwy"), t.replaceAll(" ", "");
152
151
  }
@@ -158,13 +157,13 @@ function rt(e, t = !1) {
158
157
  var l = "";
159
158
  return e.addressLineOne != null && !t && (l = e.addressLineOne + " "), e.streetNumber != null && (l = l + e.streetNumber + " "), e.streetName != null && (l = l + e.streetName + ", "), e.suburb != null && (l = l + e.suburb + " "), e.state != null && (l = l + e.state + " "), e.postcode != null && (l = l + e.postcode), l;
160
159
  }
161
- function ca(e, t, l) {
160
+ function On(e, t, l) {
162
161
  if (e) {
163
162
  var S = new Image();
164
163
  S.onload = t, S.onerror = l, S.src = e;
165
164
  }
166
165
  }
167
- async function fa(e, t = !0) {
166
+ async function pn(e, t = !0) {
168
167
  return new Promise((l, S) => {
169
168
  e == null && S("no url given");
170
169
  var s = new Image();
@@ -178,16 +177,16 @@ async function fa(e, t = !0) {
178
177
  }, e != null && (s.src = e);
179
178
  });
180
179
  }
181
- function on(e) {
180
+ function tn(e) {
182
181
  return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
183
182
  }
184
- function sa(e) {
183
+ function ea(e) {
185
184
  if (e != null && typeof e == "object")
186
185
  for (var t in e)
187
186
  /^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
188
187
  return e;
189
188
  }
190
- function dn(e) {
189
+ function nn(e) {
191
190
  return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (l) => l.toUpperCase()));
192
191
  }
193
192
  const Ye = [
@@ -200,25 +199,25 @@ const Ye = [
200
199
  { value: 7, short: "sat", values: ["sat", "saturday"] },
201
200
  { value: 0, short: "always", values: ["always", null, void 0] }
202
201
  ];
203
- function oa(e) {
202
+ function ra(e) {
204
203
  if (e == null)
205
204
  return 0;
206
205
  const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), l = Ye.filter((S) => S.values.some((s) => t.some((g) => s == g))).map((S) => S.value);
207
206
  return l.length == 0 ? 8 : Math.min(...l);
208
207
  }
209
- function da(e) {
208
+ function ta(e) {
210
209
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
211
210
  let l = Ye.find((S) => S.values.some((s) => s == t));
212
211
  return l != null ? l.short : "";
213
212
  }).filter((t) => t != null && t.length > 0).toString();
214
213
  }
215
- function ha(e, t) {
214
+ function na(e, t) {
216
215
  if (e == null || t == null)
217
216
  return !0;
218
217
  const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), s = Ye.find((g) => g.values.some((x) => x == S));
219
218
  return s != null && l.some((g) => g == s.short || s.values.some((x) => x == g));
220
219
  }
221
- function ma(e, t) {
220
+ function aa(e, t) {
222
221
  if (t == null)
223
222
  return e;
224
223
  let l = e ?? "";
@@ -226,28 +225,28 @@ function ma(e, t) {
226
225
  let S = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ye.find((g) => g.values.some((x) => x == s))).filter((s) => s != null).sort(Ue.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
227
226
  return S.length > 0 ? S : void 0;
228
227
  }
229
- function va(e, t) {
228
+ function la(e, t) {
230
229
  if (t == null || e == null)
231
230
  return e;
232
231
  let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ye.find((x) => x.values.some((P) => P == g && P != S))).filter((g) => g != null).sort(Ue.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
233
232
  return s.length > 0 ? s : void 0;
234
233
  }
235
- function ga(e, t) {
234
+ function ua(e, t) {
236
235
  return e != null && Array.isArray(e) && e.length == t;
237
236
  }
238
237
  function _e(e, t = 0) {
239
238
  return e != null && Array.isArray(e) && e.length > t;
240
239
  }
241
- function hn(e) {
240
+ function an(e) {
242
241
  return e == "0001-01-01T00:00:00Z";
243
242
  }
244
- function ya() {
243
+ function ia() {
245
244
  return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
246
245
  }
247
- function mn() {
246
+ function ln() {
248
247
  return "0001-01-01T00:00:00Z";
249
248
  }
250
- function wa(e, t) {
249
+ function ca(e, t) {
251
250
  let l = "1", S = 0;
252
251
  if (S < t)
253
252
  do
@@ -256,11 +255,11 @@ function wa(e, t) {
256
255
  let s = Number.parseInt(l);
257
256
  return Math.round(e * s) / s;
258
257
  }
259
- function ba(e, t) {
258
+ function fa(e, t) {
260
259
  let l = e ?? "";
261
- return t != null && (vn(l, t) ? l = l.split(",").filter((S) => S != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
260
+ return t != null && (un(l, t) ? l = l.split(",").filter((S) => S != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
262
261
  }
263
- function vn(e, t) {
262
+ function un(e, t) {
264
263
  if (e == null || e.length == 0)
265
264
  return !1;
266
265
  if (!t)
@@ -276,13 +275,13 @@ function Lr(e) {
276
275
  t = e[S], l[S] = typeof t == "object" ? Lr(t) : t;
277
276
  return l;
278
277
  }
279
- function gn(e) {
278
+ function cn(e) {
280
279
  return e && Object.keys(e).sort().reduce(function(t, l) {
281
280
  let S = e[l];
282
- return t[l] = typeof S == "object" && S !== null ? gn(S) : S, t;
281
+ return t[l] = typeof S == "object" && S !== null ? cn(S) : S, t;
283
282
  }, Array.isArray(e) ? [] : {});
284
283
  }
285
- function yn(e, t) {
284
+ function fn(e, t) {
286
285
  return t == null ? !0 : e == null ? !1 : e.toLowerCase().includes(t.toLowerCase());
287
286
  }
288
287
  function tt(e, t = (l) => l) {
@@ -295,13 +294,13 @@ function tt(e, t = (l) => l) {
295
294
  return _e(g) && S.push(...g), S;
296
295
  }, [])] : [];
297
296
  }
298
- function Sa(e) {
297
+ function sa(e) {
299
298
  const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), S = t[0].split(":")[1].split(";")[0], s = new Uint8Array(l.length);
300
299
  for (let g = 0; g < l.length; g++)
301
300
  s[g] = l.charCodeAt(g);
302
301
  return new Blob([s], { type: S });
303
302
  }
304
- function wn(e) {
303
+ function sn(e) {
305
304
  var t = "";
306
305
  if (e) {
307
306
  if (e.message && (t = e.message), e.response && e.response.data) {
@@ -314,11 +313,11 @@ function wn(e) {
314
313
  }
315
314
  return "hmmm no error was supplied";
316
315
  }
317
- function bn() {
316
+ function on() {
318
317
  const e = "#" + Math.floor(Math.random() * 16777215).toString(16);
319
- return e.length !== 7 ? bn() : e;
318
+ return e.length !== 7 ? on() : e;
320
319
  }
321
- function Sn(e, t, l) {
320
+ function dn(e, t, l) {
322
321
  if (t == null)
323
322
  return !0;
324
323
  if (e == null || l == null)
@@ -326,15 +325,15 @@ function Sn(e, t, l) {
326
325
  for (let s = 0; s < l.length; s++) {
327
326
  const g = l[s];
328
327
  var S = Sr(e, g);
329
- if (S != null && typeof S == "string" && yn(S, t))
328
+ if (S != null && typeof S == "string" && fn(S, t))
330
329
  return !0;
331
330
  }
332
331
  return !1;
333
332
  }
334
- function Aa(e) {
333
+ function oa(e) {
335
334
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
336
335
  }
337
- function Ea(e = 2e3) {
336
+ function da(e = 2e3) {
338
337
  return new Promise((t) => {
339
338
  setTimeout(() => t(), e);
340
339
  });
@@ -349,10 +348,10 @@ function Sr(e, t) {
349
348
  return null;
350
349
  return s;
351
350
  }
352
- function An(e) {
351
+ function hn(e) {
353
352
  return e ? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) : !1;
354
353
  }
355
- function En(e) {
354
+ function mn(e) {
356
355
  return e.endsWith("ies") ? e.slice(0, e.length - 3) : e.endsWith("s") ? e.slice(0, e.length - 1) : e;
357
356
  }
358
357
  function Xe(e) {
@@ -545,9 +544,9 @@ var nt = { exports: {} };
545
544
  if (!D)
546
545
  return this.resolve([]);
547
546
  for (var f = new Array(D), A = 0, J = -1, Q = new this(x); ++J < D; )
548
- ee(b[J], J);
547
+ O(b[J], J);
549
548
  return Q;
550
- function ee(ce, we) {
549
+ function O(ce, we) {
551
550
  T.resolve(ce).then(W, function(Y) {
552
551
  L || (L = !0, P.reject(Q, Y));
553
552
  });
@@ -568,10 +567,10 @@ var nt = { exports: {} };
568
567
  J(b[f]);
569
568
  return A;
570
569
  function J(Q) {
571
- T.resolve(Q).then(function(ee) {
572
- L || (L = !0, P.resolve(A, ee));
573
- }, function(ee) {
574
- L || (L = !0, P.reject(A, ee));
570
+ T.resolve(Q).then(function(O) {
571
+ L || (L = !0, P.resolve(A, O));
572
+ }, function(O) {
573
+ L || (L = !0, P.reject(A, O));
575
574
  });
576
575
  }
577
576
  }
@@ -723,7 +722,7 @@ var nt = { exports: {} };
723
722
  };
724
723
  });
725
724
  }
726
- function ee(n) {
725
+ function O(n) {
727
726
  return Q(n, !1);
728
727
  }
729
728
  function ce(n) {
@@ -759,7 +758,7 @@ var nt = { exports: {} };
759
758
  var c = T(atob(n.data));
760
759
  return $([c], { type: n.type });
761
760
  }
762
- function V(n) {
761
+ function H(n) {
763
762
  return n && n.__local_forage_encoded_blob;
764
763
  }
765
764
  function ae(n) {
@@ -776,7 +775,7 @@ var nt = { exports: {} };
776
775
  var v = a[m];
777
776
  v._dbInfo.db && (v._dbInfo.db.close(), v._dbInfo.db = null);
778
777
  }
779
- return n.db = null, ee(n).then(function(o) {
778
+ return n.db = null, O(n).then(function(o) {
780
779
  return n.db = o, we(n) ? ce(n) : o;
781
780
  }).then(function(o) {
782
781
  n.db = c.db = o;
@@ -835,7 +834,7 @@ var nt = { exports: {} };
835
834
  }
836
835
  var F = v.forages.slice(0);
837
836
  return d.all(o).then(function() {
838
- return a.db = v.db, ee(a);
837
+ return a.db = v.db, O(a);
839
838
  }).then(function(k) {
840
839
  return a.db = k, we(a, c._defaultConfig.version) ? ce(a) : k;
841
840
  }).then(function(k) {
@@ -858,7 +857,7 @@ var nt = { exports: {} };
858
857
  var B = R.objectStore(a._dbInfo.storeName), F = B.get(n);
859
858
  F.onsuccess = function() {
860
859
  var k = F.result;
861
- k === void 0 && (k = null), V(k) && (k = Y(k)), v(k);
860
+ k === void 0 && (k = null), H(k) && (k = Y(k)), v(k);
862
861
  }, F.onerror = function() {
863
862
  o(F.error);
864
863
  };
@@ -882,9 +881,9 @@ var nt = { exports: {} };
882
881
  var q = F.result;
883
882
  if (q) {
884
883
  var Z = q.value;
885
- V(Z) && (Z = Y(Z));
886
- var p = n(Z, q.key, k++);
887
- p !== void 0 ? v(p) : q.continue();
884
+ H(Z) && (Z = Y(Z));
885
+ var ee = n(Z, q.key, k++);
886
+ ee !== void 0 ? v(ee) : q.continue();
888
887
  } else
889
888
  v();
890
889
  }, F.onerror = function() {
@@ -918,11 +917,11 @@ var nt = { exports: {} };
918
917
  k.oncomplete = function() {
919
918
  B === void 0 && (B = null), o(B);
920
919
  }, k.onabort = k.onerror = function() {
921
- var p = Z.error ? Z.error : Z.transaction.error;
922
- C(p);
920
+ var ee = Z.error ? Z.error : Z.transaction.error;
921
+ C(ee);
923
922
  };
924
- } catch (p) {
925
- C(p);
923
+ } catch (ee) {
924
+ C(ee);
926
925
  }
927
926
  });
928
927
  }).catch(C);
@@ -1062,7 +1061,7 @@ var nt = { exports: {} };
1062
1061
  if (!n.name)
1063
1062
  v = d.reject("Invalid arguments");
1064
1063
  else {
1065
- var o = n.name === a.name && m._dbInfo.db, C = o ? d.resolve(m._dbInfo.db) : ee(n).then(function(R) {
1064
+ var o = n.name === a.name && m._dbInfo.db, C = o ? d.resolve(m._dbInfo.db) : O(n).then(function(R) {
1066
1065
  var B = E[n.name], F = B.forages;
1067
1066
  B.db = R;
1068
1067
  for (var k = 0; k < F.length; k++)
@@ -1079,7 +1078,7 @@ var nt = { exports: {} };
1079
1078
  var Z = k[q];
1080
1079
  Z._dbInfo.db = null, Z._dbInfo.version = B;
1081
1080
  }
1082
- var p = new d(function(re, ie) {
1081
+ var ee = new d(function(re, ie) {
1083
1082
  var le = _.open(n.name, B);
1084
1083
  le.onerror = function(ye) {
1085
1084
  var ze = le.result;
@@ -1092,7 +1091,7 @@ var nt = { exports: {} };
1092
1091
  ye.close(), re(ye);
1093
1092
  };
1094
1093
  });
1095
- return p.then(function(re) {
1094
+ return ee.then(function(re) {
1096
1095
  F.db = re;
1097
1096
  for (var ie = 0; ie < k.length; ie++) {
1098
1097
  var le = k[ie];
@@ -1111,7 +1110,7 @@ var nt = { exports: {} };
1111
1110
  var q = F[k];
1112
1111
  q._dbInfo.db = null;
1113
1112
  }
1114
- var Z = new d(function(p, re) {
1113
+ var Z = new d(function(ee, re) {
1115
1114
  var ie = _.deleteDatabase(n.name);
1116
1115
  ie.onerror = function() {
1117
1116
  var le = ie.result;
@@ -1120,18 +1119,18 @@ var nt = { exports: {} };
1120
1119
  console.warn('dropInstance blocked for database "' + n.name + '" until all open connections are closed');
1121
1120
  }, ie.onsuccess = function() {
1122
1121
  var le = ie.result;
1123
- le && le.close(), p(le);
1122
+ le && le.close(), ee(le);
1124
1123
  };
1125
1124
  });
1126
- return Z.then(function(p) {
1127
- B.db = p;
1125
+ return Z.then(function(ee) {
1126
+ B.db = ee;
1128
1127
  for (var re = 0; re < F.length; re++) {
1129
1128
  var ie = F[re];
1130
1129
  A(ie._dbInfo);
1131
1130
  }
1132
- }).catch(function(p) {
1133
- throw (J(n, p) || d.resolve()).catch(function() {
1134
- }), p;
1131
+ }).catch(function(ee) {
1132
+ throw (J(n, ee) || d.resolve()).catch(function() {
1133
+ }), ee;
1135
1134
  });
1136
1135
  });
1137
1136
  }
@@ -1154,7 +1153,7 @@ var nt = { exports: {} };
1154
1153
  function ur() {
1155
1154
  return typeof openDatabase == "function";
1156
1155
  }
1157
- 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", Ve = "si16", U = "si32", j = "ur16", H = "ui32", O = "fl32", de = "fl64", ge = 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", p = "fl32", de = "fl64", ge = Ne + We.length, De = Object.prototype.toString;
1158
1157
  function Se(n) {
1159
1158
  var c = n.length * 0.75, a = n.length, m, v = 0, o, C, R, B;
1160
1159
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
@@ -1173,7 +1172,7 @@ var nt = { exports: {} };
1173
1172
  var a = "";
1174
1173
  if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
1175
1174
  var m, v = Fe;
1176
- 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 += de : c(new Error("Failed to get type for BinaryArray"))), c(v + oe(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 += p : a === "[object Float64Array]" ? v += de : c(new Error("Failed to get type for BinaryArray"))), c(v + oe(m));
1177
1176
  } else if (a === "[object Blob]") {
1178
1177
  var o = new FileReader();
1179
1178
  o.onload = function() {
@@ -1207,15 +1206,15 @@ var nt = { exports: {} };
1207
1206
  return new Uint8Array(o);
1208
1207
  case qe:
1209
1208
  return new Uint8ClampedArray(o);
1210
- case Ve:
1209
+ case He:
1211
1210
  return new Int16Array(o);
1212
1211
  case j:
1213
1212
  return new Uint16Array(o);
1214
1213
  case U:
1215
1214
  return new Int32Array(o);
1216
- case H:
1215
+ case V:
1217
1216
  return new Uint32Array(o);
1218
- case O:
1217
+ case p:
1219
1218
  return new Float32Array(o);
1220
1219
  case de:
1221
1220
  return new Float64Array(o);
@@ -1289,8 +1288,8 @@ var nt = { exports: {} };
1289
1288
  C.db.transaction(function(R) {
1290
1289
  xe(R, C, "SELECT * FROM " + C.storeName, [], function(B, F) {
1291
1290
  for (var k = F.rows, q = k.length, Z = 0; Z < q; Z++) {
1292
- var p = k.item(Z), re = p.value;
1293
- if (re && (re = C.serializer.deserialize(re)), re = n(re, p.key, Z + 1), re !== void 0) {
1291
+ var ee = k.item(Z), re = ee.value;
1292
+ if (re && (re = C.serializer.deserialize(re)), re = n(re, ee.key, Z + 1), re !== void 0) {
1294
1293
  v(re);
1295
1294
  return;
1296
1295
  }
@@ -1315,7 +1314,7 @@ var nt = { exports: {} };
1315
1314
  q ? R(q) : F.db.transaction(function(Z) {
1316
1315
  xe(Z, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
1317
1316
  C(B);
1318
- }, function(p, re) {
1317
+ }, function(ee, re) {
1319
1318
  R(re);
1320
1319
  });
1321
1320
  }, function(Z) {
@@ -1448,9 +1447,9 @@ var nt = { exports: {} };
1448
1447
  }).then(function(o) {
1449
1448
  return new d(function(C, R) {
1450
1449
  o.db.transaction(function(B) {
1451
- function F(p) {
1450
+ function F(ee) {
1452
1451
  return new d(function(re, ie) {
1453
- B.executeSql("DROP TABLE IF EXISTS " + p, [], function() {
1452
+ B.executeSql("DROP TABLE IF EXISTS " + ee, [], function() {
1454
1453
  re();
1455
1454
  }, function(le, ye) {
1456
1455
  ie(ye);
@@ -1461,8 +1460,8 @@ var nt = { exports: {} };
1461
1460
  k.push(F(o.storeNames[q]));
1462
1461
  d.all(k).then(function() {
1463
1462
  C();
1464
- }).catch(function(p) {
1465
- R(p);
1463
+ }).catch(function(ee) {
1464
+ R(ee);
1466
1465
  });
1467
1466
  }, function(B) {
1468
1467
  R(B);
@@ -1643,7 +1642,7 @@ var nt = { exports: {} };
1643
1642
  return !1;
1644
1643
  }, $r = Array.isArray || function(n) {
1645
1644
  return Object.prototype.toString.call(n) === "[object Array]";
1646
- }, He = {}, Fr = {}, ke = {
1645
+ }, Ve = {}, Fr = {}, ke = {
1647
1646
  INDEXEDDB: lr,
1648
1647
  WEBSQL: St,
1649
1648
  LOCALSTORAGE: Ut
@@ -1680,7 +1679,7 @@ var nt = { exports: {} };
1680
1679
  for (var a in ke)
1681
1680
  if (ke.hasOwnProperty(a)) {
1682
1681
  var m = ke[a], v = m._driver;
1683
- this[a] = v, He[v] || this.defineDriver(m);
1682
+ this[a] = v, Ve[v] || this.defineDriver(m);
1684
1683
  }
1685
1684
  this._defaultConfig = sr({}, kt), 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() {
1686
1685
  });
@@ -1706,26 +1705,26 @@ var nt = { exports: {} };
1706
1705
  return;
1707
1706
  }
1708
1707
  for (var k = fr.concat("_initStorage"), q = 0, Z = k.length; q < Z; q++) {
1709
- var p = k[q], re = !$t(Ke, p);
1710
- if ((re || a[p]) && typeof a[p] != "function") {
1708
+ var ee = k[q], re = !$t(Ke, ee);
1709
+ if ((re || a[ee]) && typeof a[ee] != "function") {
1711
1710
  R(F);
1712
1711
  return;
1713
1712
  }
1714
1713
  }
1715
1714
  var ie = function() {
1716
- for (var ze = function(Ht) {
1715
+ for (var ze = function(Vt) {
1717
1716
  return function() {
1718
- var zt = new Error("Method " + Ht + " is not implemented by the current driver"), kr = d.reject(zt);
1717
+ var zt = new Error("Method " + Vt + " is not implemented by the current driver"), kr = d.reject(zt);
1719
1718
  return h(kr, arguments[arguments.length - 1]), kr;
1720
1719
  };
1721
- }, or = 0, Vt = Ke.length; or < Vt; or++) {
1720
+ }, or = 0, Ht = Ke.length; or < Ht; or++) {
1722
1721
  var dr = Ke[or];
1723
1722
  a[dr] || (a[dr] = ze(dr));
1724
1723
  }
1725
1724
  };
1726
1725
  ie();
1727
1726
  var le = function(ze) {
1728
- He[B] && console.info("Redefining LocalForage driver: " + B), He[B] = a, Fr[B] = ze, C();
1727
+ Ve[B] && console.info("Redefining LocalForage driver: " + B), Ve[B] = a, Fr[B] = ze, C();
1729
1728
  };
1730
1729
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(le, R) : le(!!a._support) : le(!0);
1731
1730
  } catch (ye) {
@@ -1736,7 +1735,7 @@ var nt = { exports: {} };
1736
1735
  }, n.prototype.driver = function() {
1737
1736
  return this._driver || null;
1738
1737
  }, n.prototype.getDriver = function(a, m, v) {
1739
- var o = He[a] ? d.resolve(He[a]) : d.reject(new Error("Driver not found."));
1738
+ var o = Ve[a] ? d.resolve(Ve[a]) : d.reject(new Error("Driver not found."));
1740
1739
  return u(o, m, v), o;
1741
1740
  }, n.prototype.getSerializer = function(a) {
1742
1741
  var m = d.resolve(cr);
@@ -1759,16 +1758,16 @@ var nt = { exports: {} };
1759
1758
  function F(q) {
1760
1759
  return function() {
1761
1760
  var Z = 0;
1762
- function p() {
1761
+ function ee() {
1763
1762
  for (; Z < q.length; ) {
1764
1763
  var re = q[Z];
1765
- return Z++, o._dbInfo = null, o._ready = null, o.getDriver(re).then(B).catch(p);
1764
+ return Z++, o._dbInfo = null, o._ready = null, o.getDriver(re).then(B).catch(ee);
1766
1765
  }
1767
1766
  R();
1768
1767
  var ie = new Error("No available storage method found.");
1769
1768
  return o._driverSet = d.reject(ie), o._driverSet;
1770
1769
  }
1771
- return p();
1770
+ return ee();
1772
1771
  };
1773
1772
  }
1774
1773
  var k = this._driverSet !== null ? this._driverSet.catch(function() {
@@ -1805,8 +1804,8 @@ var nt = { exports: {} };
1805
1804
  }, { 3: 3 }] }, {}, [4])(4);
1806
1805
  });
1807
1806
  })(nt);
1808
- var In = nt.exports;
1809
- const at = /* @__PURE__ */ sn(In);
1807
+ var vn = nt.exports;
1808
+ const at = /* @__PURE__ */ rn(vn);
1810
1809
  let ue;
1811
1810
  function lt() {
1812
1811
  const e = ue == null ? void 0 : ue.getEnv();
@@ -1816,17 +1815,17 @@ function Wr() {
1816
1815
  const e = ue == null ? void 0 : ue.getEnv();
1817
1816
  return console.log(`env var: ${e}`), ue == null ? "" : (ue[e] ?? ue.development).auth ?? "";
1818
1817
  }
1819
- function Dn(e) {
1818
+ function gn(e) {
1820
1819
  const t = ue == null ? void 0 : ue.getEnv();
1821
1820
  if (ue == null)
1822
1821
  return "";
1823
1822
  const l = ue[t] ?? ue.development;
1824
1823
  return e == null ? l.data ?? "" : l.other[e] ?? l.data ?? "";
1825
1824
  }
1826
- function Ia() {
1825
+ function ha() {
1827
1826
  return ue;
1828
1827
  }
1829
- function xn(e) {
1828
+ function yn(e) {
1830
1829
  return ue = e, ue;
1831
1830
  }
1832
1831
  let Oe = null;
@@ -1837,7 +1836,7 @@ function ve() {
1837
1836
  const e = lt();
1838
1837
  return (Oe == null || Oe.config.name != e) && (Oe = at.createInstance({ name: e })), Oe;
1839
1838
  }
1840
- function Da() {
1839
+ function ma() {
1841
1840
  async function e(s) {
1842
1841
  const g = ve();
1843
1842
  (await g.keys()).filter((_) => _.startsWith(s)).forEach((_) => {
@@ -1861,19 +1860,19 @@ function Da() {
1861
1860
  };
1862
1861
  }
1863
1862
  let er;
1864
- function xa(e) {
1863
+ function va(e) {
1865
1864
  return er(e)();
1866
1865
  }
1867
1866
  function Le(e) {
1868
1867
  return er(e);
1869
1868
  }
1870
- function Tn(e) {
1871
- return er = (t) => _n({
1869
+ function wn(e) {
1870
+ return er = (t) => bn({
1872
1871
  ...e,
1873
1872
  ...t
1874
1873
  }), er;
1875
1874
  }
1876
- function _n(e) {
1875
+ function bn(e) {
1877
1876
  var t, l, S, s, g;
1878
1877
  if (e.storeMode ?? (e.storeMode = ((l = (t = e.navigation) == null ? void 0 : t.findItem(e.nav)) == null ? void 0 : l.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((s = (S = e.navigation) == null ? void 0 : S.findItem(e.nav)) == null ? void 0 : s.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((g = e.navigation) == null ? void 0 : g.findStoreName(e.nav)) ?? e.nav), e.storeName == null)
1879
1878
  throw new Error("no store name provided");
@@ -1886,9 +1885,9 @@ function _n(e) {
1886
1885
  throw new Error("Must supply an api object to use store");
1887
1886
  return qr({ ...e, storeName: e.storeName ?? "" });
1888
1887
  } else
1889
- return Pn({ ...e, storeName: e.storeName ?? "" });
1888
+ return An({ ...e, storeName: e.storeName ?? "" });
1890
1889
  }
1891
- const Cn = (e) => {
1890
+ const Sn = (e) => {
1892
1891
  let t = K(e.url) ?? void 0;
1893
1892
  if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Be(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Be(t, e.id)), e.params != null) {
1894
1893
  t ?? (t = "");
@@ -1899,10 +1898,10 @@ const Cn = (e) => {
1899
1898
  }
1900
1899
  return e.finalUrl = t, e.finalUrl ?? "";
1901
1900
  };
1902
- function Pn(e) {
1901
+ function An(e) {
1903
1902
  return pr(e.storeName, () => {
1904
1903
  var u;
1905
- 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) ?? Cn;
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;
1906
1905
  function x(r) {
1907
1906
  var i, E;
1908
1907
  let y = "";
@@ -2106,7 +2105,7 @@ function qr(e) {
2106
2105
  additionalUrl: "/getAll",
2107
2106
  nav: i.nav,
2108
2107
  params: {
2109
- lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? mn()
2108
+ lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? ln()
2110
2109
  }
2111
2110
  }));
2112
2111
  D == null ? M(D) : (t.value ?? (t.value = []), D.data.forEach((L) => {
@@ -2272,7 +2271,7 @@ let Ar;
2272
2271
  function Er() {
2273
2272
  return Ar;
2274
2273
  }
2275
- function Nn(e) {
2274
+ function En(e) {
2276
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;
2277
2276
  function g(u) {
2278
2277
  let r = new URLSearchParams();
@@ -2473,7 +2472,7 @@ function Nn(e) {
2473
2472
  }, Ar;
2474
2473
  }
2475
2474
  function ut(e) {
2476
- const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: x } = fn(e);
2475
+ const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: x } = en(e);
2477
2476
  function P(r) {
2478
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);
2479
2478
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
@@ -2601,18 +2600,18 @@ function ut(e) {
2601
2600
  };
2602
2601
  }
2603
2602
  let hr = "Australia/Melbourne", Ir;
2604
- const Vr = "auth-credentials-state";
2605
- function Mn() {
2603
+ const Hr = "auth-credentials-state";
2604
+ function In() {
2606
2605
  return Ir;
2607
2606
  }
2608
- function Ln(e) {
2607
+ function Dn(e) {
2609
2608
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
2610
- let l = z(localStorage.getItem(Vr) ?? "");
2609
+ let l = z(localStorage.getItem(Hr) ?? "");
2611
2610
  l.value.length == 0 && S();
2612
2611
  function S() {
2613
- l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Vr, l.value);
2612
+ l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Hr, l.value);
2614
2613
  }
2615
- const s = pt("auth-credentials", {});
2614
+ const s = Zt("auth-credentials", {});
2616
2615
  function g(D) {
2617
2616
  if (D == null)
2618
2617
  return !0;
@@ -2684,8 +2683,8 @@ function Ln(e) {
2684
2683
  let A = !1;
2685
2684
  if (f == null)
2686
2685
  return !1;
2687
- let J = f.subscriptions ?? [], Q = f.permissions ?? [], ee = N(J, Q, "view");
2688
- return ee || !L || !_e(f.children) ? ee : ((f == null ? void 0 : f.children) != null && f.children.forEach((ce) => {
2686
+ let J = f.subscriptions ?? [], Q = f.permissions ?? [], O = N(J, Q, "view");
2687
+ return O || !L || !_e(f.children) ? O : ((f == null ? void 0 : f.children) != null && f.children.forEach((ce) => {
2689
2688
  $(ce, !0) && (A = !0);
2690
2689
  }), A);
2691
2690
  }
@@ -2730,12 +2729,12 @@ function Ln(e) {
2730
2729
  throw new Error("Code and State required in OAuth token process");
2731
2730
  if (A != l.value)
2732
2731
  throw new Error("state does not match");
2733
- let ee = "";
2734
- e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), ee = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2732
+ let O = "";
2733
+ e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), O = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2735
2734
  const ce = {};
2736
2735
  ce.grant_type = J, ce.code = f, ce.redirect_uri = `${window.location.origin}/authentication`, ce.client_id = Q;
2737
2736
  const W = await Er().post({
2738
- additionalUrl: ee,
2737
+ additionalUrl: O,
2739
2738
  data: ce
2740
2739
  });
2741
2740
  E(W.access_token);
@@ -2787,7 +2786,7 @@ function Ln(e) {
2787
2786
  tryLogin: b
2788
2787
  }, Ir;
2789
2788
  }
2790
- function Rn(e, t, l = {}) {
2789
+ function xn(e, t, l = {}) {
2791
2790
  const {
2792
2791
  preventDefault: S = !1,
2793
2792
  stopPropagation: s = !1,
@@ -2858,8 +2857,8 @@ function Rn(e, t, l = {}) {
2858
2857
  turnDraggableOn: E
2859
2858
  };
2860
2859
  }
2861
- const Un = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2862
- function Bn(e, t = {}) {
2860
+ const Tn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2861
+ function _n(e, t = {}) {
2863
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 = [];
2864
2863
  const u = z(!1);
2865
2864
  let r = [], y = [];
@@ -2869,14 +2868,14 @@ function Bn(e, t = {}) {
2869
2868
  Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
2870
2869
  }
2871
2870
  function b(W, Y) {
2872
- h = Y.map(D), h.forEach((V) => W.$el.appendChild(V));
2871
+ h = Y.map(D), h.forEach((H) => W.$el.appendChild(H));
2873
2872
  }
2874
2873
  function T(W) {
2875
2874
  h.forEach((Y) => W.$el.removeChild(Y));
2876
2875
  }
2877
2876
  function D(W) {
2878
- const Y = S + "px", V = -S / 2 + "px", ae = s + 1, G = document.createElement("div");
2879
- return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top = V, G.style.height = Y, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = V, G.style.height = Y, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = V, G.style.width = Y, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = V, G.style.width = Y, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
2877
+ const Y = S + "px", H = -S / 2 + "px", ae = s + 1, G = document.createElement("div");
2878
+ return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top = H, G.style.height = Y, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = H, G.style.height = Y, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = H, G.style.width = Y, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = H, G.style.width = Y, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
2880
2879
  }
2881
2880
  function L(W) {
2882
2881
  var ne;
@@ -2885,12 +2884,12 @@ function Bn(e, t = {}) {
2885
2884
  const Y = Ae(e);
2886
2885
  if (!Y)
2887
2886
  return;
2888
- const V = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2887
+ const H = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2889
2888
  if (i.value.x = G.clientX, i.value.y = G.clientY, E = {
2890
- left: V.offsetLeft,
2891
- top: V.offsetTop,
2892
- height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
2893
- width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
2889
+ left: H.offsetLeft,
2890
+ top: H.offsetTop,
2891
+ height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2892
+ width: parseInt(window.getComputedStyle(H).getPropertyValue("width"))
2894
2893
  }, w = Lr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
2895
2894
  return;
2896
2895
  let X = W.target;
@@ -2900,7 +2899,7 @@ function Bn(e, t = {}) {
2900
2899
  const Y = Ae(e);
2901
2900
  if (!Y)
2902
2901
  return;
2903
- const V = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2902
+ const H = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2904
2903
  let X = G.clientX - i.value.x, ne = G.clientY - i.value.y;
2905
2904
  const se = Ae(E);
2906
2905
  if (d.includes("t")) {
@@ -2919,7 +2918,7 @@ function Bn(e, t = {}) {
2919
2918
  const fe = Math.min(x, Math.max(g, (se.width ?? 0) + X));
2920
2919
  w.width = fe;
2921
2920
  }
2922
- V.dispatchEvent(new CustomEvent("resize")), M(W), ee(w);
2921
+ H.dispatchEvent(new CustomEvent("resize")), M(W), O(w);
2923
2922
  }
2924
2923
  function A() {
2925
2924
  document.documentElement.style.cursor = "", d = null, y.forEach((W) => {
@@ -2933,37 +2932,37 @@ function Bn(e, t = {}) {
2933
2932
  b: "s",
2934
2933
  l: "w"
2935
2934
  };
2936
- return W.split("").map((V) => Y[V]).join("") + "-resize";
2935
+ return W.split("").map((H) => Y[H]).join("") + "-resize";
2937
2936
  }
2938
2937
  function Q(W) {
2939
2938
  const Y = Ae(e);
2940
2939
  if (!Y)
2941
2940
  return;
2942
- const V = Y.$el;
2941
+ const H = Y.$el;
2943
2942
  if (console.log(l), l !== "page" && W == "page") {
2944
- const ae = en(V), G = Ae(ae) ?? null;
2943
+ const ae = Jt(H), G = Ae(ae) ?? null;
2945
2944
  let X = 0;
2946
2945
  if (G != null) {
2947
2946
  const ne = window.getComputedStyle(G);
2948
2947
  X = parseInt(ne.getPropertyValue("width")) - G.offsetLeft;
2949
2948
  }
2950
- V.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", V.offsetHeight, u.value = !0, ee({
2949
+ H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", H.offsetHeight, u.value = !0, O({
2951
2950
  height: void 0,
2952
2951
  width: X,
2953
2952
  top: 0,
2954
2953
  left: 0,
2955
2954
  position: void 0
2956
- }), me(V, "transitionend", () => {
2957
- V.style.width = "auto", V.style.top = "", V.style.left = "", V.style.position = "", V.style.transition = "", u.value = !1;
2955
+ }), me(H, "transitionend", () => {
2956
+ H.style.width = "auto", H.style.top = "", H.style.left = "", H.style.position = "", H.style.transition = "", u.value = !1;
2958
2957
  }, { once: !0 });
2959
2958
  } else if ((l == "page" || Y.$el.style.position !== "absolute") && W !== "page") {
2960
- V.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, E = {
2961
- height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
2962
- width: parseInt(window.getComputedStyle(V).getPropertyValue("width")),
2963
- top: V.offsetTop,
2964
- left: V.offsetLeft,
2959
+ H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, E = {
2960
+ height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2961
+ width: parseInt(window.getComputedStyle(H).getPropertyValue("width")),
2962
+ top: H.offsetTop,
2963
+ left: H.offsetLeft,
2965
2964
  position: "absolute"
2966
- }, ee(E), V.offsetHeight;
2965
+ }, O(E), H.offsetHeight;
2967
2966
  const ae = E;
2968
2967
  W == "freestyle" ? w = {
2969
2968
  height: ae.height,
@@ -2977,30 +2976,30 @@ function Bn(e, t = {}) {
2977
2976
  top: (ae.top ?? 0) + 2,
2978
2977
  left: (ae.left ?? 0) + 2,
2979
2978
  position: "absolute"
2980
- }), ee(w), me(V, "transitionend", () => {
2981
- V.style.transition = "", u.value = !1;
2979
+ }), O(w), me(H, "transitionend", () => {
2980
+ H.style.transition = "", u.value = !1;
2982
2981
  }, { once: !0 });
2983
2982
  }
2984
2983
  }
2985
- function ee(W) {
2984
+ function O(W) {
2986
2985
  const Y = Ae(e);
2987
2986
  if (!Y)
2988
2987
  return;
2989
- const V = Y.$el;
2990
- 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);
2988
+ const H = Y.$el;
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);
2991
2990
  }
2992
2991
  function ce(W, Y) {
2993
2992
  if (I.value)
2994
2993
  return;
2995
- const V = Ae(e);
2996
- V && (b(V, W ?? Un), Q(Y), r.push(me(V.$el, "mousedown", L)), r.push(me(V.$el, "touchstart", L)), I.value = !0, l = Y);
2994
+ const H = Ae(e);
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);
2997
2996
  }
2998
2997
  function we(W) {
2999
2998
  if (!I.value)
3000
2999
  return;
3001
3000
  const Y = Ae(e);
3002
- Y && (T(Y), Q(W), r.forEach((V) => {
3003
- V();
3001
+ Y && (T(Y), Q(W), r.forEach((H) => {
3002
+ H();
3004
3003
  }), r.length = 0, I.value = !1);
3005
3004
  }
3006
3005
  return {
@@ -3009,9 +3008,9 @@ function Bn(e, t = {}) {
3009
3008
  turnResizingOff: we
3010
3009
  };
3011
3010
  }
3012
- function $n(e) {
3013
- const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), x = z({}), { turnResizingOff: P, turnResizingOn: _ } = Bn(t), { turnDraggableOff: N, turnDraggableOn: $ } = Rn(t, l);
3014
- rn(t, (h) => {
3011
+ function Cn(e) {
3012
+ const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), x = z({}), { turnResizingOff: P, turnResizingOn: _ } = _n(t), { turnDraggableOff: N, turnDraggableOn: $ } = xn(t, l);
3013
+ jt(t, (h) => {
3015
3014
  const u = h[0], { width: r } = u.contentRect;
3016
3015
  S.value = r < s;
3017
3016
  });
@@ -3042,10 +3041,10 @@ const mr = {
3042
3041
  warning: "#FB8C00"
3043
3042
  };
3044
3043
  let Dr;
3045
- function Ta() {
3044
+ function ga() {
3046
3045
  return Dr;
3047
3046
  }
3048
- function _a(e) {
3047
+ function ya(e) {
3049
3048
  const t = localStorage.getItem("cosmetics");
3050
3049
  let l;
3051
3050
  return t != null && t.length > 0 && (l = JSON.parse(t)), l ?? (l = {}), l.dark ?? (l.dark = e == null ? void 0 : e.dark), l.light ?? (l.light = e == null ? void 0 : e.light), l.theme ?? (l.theme = e == null ? void 0 : e.defaultTheme), {
@@ -3060,7 +3059,7 @@ function _a(e) {
3060
3059
  }
3061
3060
  };
3062
3061
  }
3063
- function Fn(e) {
3062
+ function Pn(e) {
3064
3063
  const t = z({});
3065
3064
  let l = e.vuetifyInstance;
3066
3065
  function S() {
@@ -3126,10 +3125,10 @@ function Fn(e) {
3126
3125
  undoTemporaryColor: $
3127
3126
  }, Dr;
3128
3127
  }
3129
- const Ca = {
3128
+ const wa = {
3130
3129
  canExportCSV: !1
3131
3130
  };
3132
- function kn() {
3131
+ function Nn() {
3133
3132
  function e(t) {
3134
3133
  const {
3135
3134
  items: l,
@@ -3144,7 +3143,7 @@ function kn() {
3144
3143
  header: I.title ?? I.value ?? "",
3145
3144
  itemText: I.itemText,
3146
3145
  value: I.value
3147
- })) : x = Object.keys(l[0]).map((I) => ({ header: on(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
3146
+ })) : x = Object.keys(l[0]).map((I) => ({ header: tn(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
3148
3147
  var P = [];
3149
3148
  for (let I = 0; I < l.length; I++) {
3150
3149
  const i = l[I];
@@ -3183,10 +3182,10 @@ function kn() {
3183
3182
  };
3184
3183
  }
3185
3184
  let xr;
3186
- function Pa() {
3185
+ function ba() {
3187
3186
  return xr;
3188
3187
  }
3189
- function Gn(e) {
3188
+ function Mn(e) {
3190
3189
  const t = e.getUTC ?? he.utc;
3191
3190
  function l() {
3192
3191
  return s().startOf("day").toUTC().toString() ?? "";
@@ -3228,10 +3227,10 @@ function Gn(e) {
3228
3227
  }, xr;
3229
3228
  }
3230
3229
  let Tr;
3231
- function Na() {
3230
+ function Sa() {
3232
3231
  return Tr;
3233
3232
  }
3234
- function Wn(e) {
3233
+ function Ln(e) {
3235
3234
  const t = z(!1), l = (e == null ? void 0 : e.apis) ?? [];
3236
3235
  function S() {
3237
3236
  t.value = !0;
@@ -3339,15 +3338,15 @@ function Wn(e) {
3339
3338
  patch: $
3340
3339
  }, Tr;
3341
3340
  }
3342
- var qn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3343
- function Ma(e) {
3341
+ var Rn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3342
+ function Aa(e) {
3344
3343
  function t(l) {
3345
3344
  var s;
3346
3345
  const S = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
3347
3346
  if (S)
3348
3347
  document.title = S.meta.title;
3349
3348
  else {
3350
- const g = qn.VITE_NODE_ENV;
3349
+ const g = Rn.VITE_NODE_ENV;
3351
3350
  let x = "";
3352
3351
  g == "development" ? x = "BWeb Dev" : g == "staging" ? x = "BlitzIt Sandpit" : x = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((s = e == null ? void 0 : e.demo) == null ? void 0 : s.isDemoing.value) == !0 && (x = `Training: ${x}`), document.title = x;
3353
3352
  }
@@ -3357,12 +3356,12 @@ function Ma(e) {
3357
3356
  };
3358
3357
  }
3359
3358
  let _r;
3360
- function La() {
3359
+ function Ea() {
3361
3360
  return _r;
3362
3361
  }
3363
- function Vn(e) {
3362
+ function Un(e) {
3364
3363
  function t(f, A, J) {
3365
- return f ? hn(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
3364
+ return f ? an(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
3366
3365
  }
3367
3366
  function l(f) {
3368
3367
  if (!f)
@@ -3487,7 +3486,7 @@ function Vn(e) {
3487
3486
  ...D
3488
3487
  }, _r;
3489
3488
  }
3490
- function Hn(e, t) {
3489
+ function Bn(e, t) {
3491
3490
  const l = z(!1), S = Yt(e);
3492
3491
  let s = g(K(e));
3493
3492
  (t == null ? void 0 : t.useTracker) !== !1 && Te(S, (P) => {
@@ -3510,7 +3509,7 @@ function Hn(e, t) {
3510
3509
  restartTracker: x
3511
3510
  };
3512
3511
  }
3513
- function Ra(e, t) {
3512
+ function Ia(e, t) {
3514
3513
  var ae;
3515
3514
  const {
3516
3515
  // useBladeSrc = true,
@@ -3545,7 +3544,7 @@ function Ra(e, t) {
3545
3544
  }), J = te(() => {
3546
3545
  const G = K($);
3547
3546
  return e.onCanSave != null ? e.onCanSave(G) : !0;
3548
- }), { isChanged: Q, restartTracker: ee } = Hn($, {
3547
+ }), { isChanged: Q, restartTracker: O } = Bn($, {
3549
3548
  useTracker: e.trackChanges,
3550
3549
  propsToIgnore: e.trackIgnoreProps,
3551
3550
  propsToTrack: e.trackProps
@@ -3609,7 +3608,7 @@ function Ra(e, t) {
3609
3608
  $.value = ne.data;
3610
3609
  }
3611
3610
  }
3612
- ee();
3611
+ O();
3613
3612
  }
3614
3613
  function Y(G, X) {
3615
3614
  const {
@@ -3617,7 +3616,7 @@ function Ra(e, t) {
3617
3616
  onCanSaveAsync: se,
3618
3617
  onGetSaveAsync: fe,
3619
3618
  onSaveAsync: Ee,
3620
- 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))
3619
+ onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), O(), T.value = "view"), Promise.resolve(void 0))
3621
3620
  } = { ...e };
3622
3621
  i({
3623
3622
  additionalUrl: ne,
@@ -3633,7 +3632,7 @@ function Ra(e, t) {
3633
3632
  mode: T.value
3634
3633
  });
3635
3634
  }
3636
- function V() {
3635
+ function H() {
3637
3636
  const G = K(T);
3638
3637
  !G || G == "view" ? T.value = "edit" : G == "edit" && (T.value = "view");
3639
3638
  }
@@ -3662,21 +3661,21 @@ function Ra(e, t) {
3662
3661
  restoreItem: we,
3663
3662
  saveItem: Y,
3664
3663
  showError: D,
3665
- toggleMode: V
3664
+ toggleMode: H
3666
3665
  };
3667
3666
  }
3668
- const Hr = z(!0), zr = z(!1), Yr = z(), gr = z(!1);
3667
+ const Vr = z(!0), zr = z(!1), Yr = z(), gr = z(!1);
3669
3668
  let yr = null, Cr;
3670
3669
  function it() {
3671
3670
  return Cr;
3672
3671
  }
3673
- function zn(e) {
3672
+ function $n(e) {
3674
3673
  const t = e.defaultCacheExpiryHours ?? 7;
3675
3674
  e.getDisplayName ?? (e.getDisplayName = (h) => {
3676
3675
  if (h.displayName != null)
3677
3676
  return h.displayName;
3678
3677
  if (h.name != null)
3679
- return dn(h.name.replaceAll("-", " "));
3678
+ return nn(h.name.replaceAll("-", " "));
3680
3679
  });
3681
3680
  const l = (e.navItems ?? []).map((h) => ({
3682
3681
  displayName: h.displayName ?? e.getDisplayName(h),
@@ -3708,7 +3707,7 @@ function zn(e) {
3708
3707
  const u = P(h);
3709
3708
  if (u == null)
3710
3709
  return;
3711
- let r = Dn(u.microservice ?? "default") ?? "";
3710
+ let r = gn(u.microservice ?? "default") ?? "";
3712
3711
  return u.path != null && (r = Be(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3713
3712
  }
3714
3713
  function N(h) {
@@ -3717,7 +3716,7 @@ function zn(e) {
3717
3716
  return u.singleName;
3718
3717
  const r = u == null ? void 0 : u.displayName;
3719
3718
  if (r != null)
3720
- return En(r);
3719
+ return mn(r);
3721
3720
  }
3722
3721
  function $(h) {
3723
3722
  const u = P(h);
@@ -3727,12 +3726,12 @@ function zn(e) {
3727
3726
  if (h == null)
3728
3727
  return;
3729
3728
  const u = typeof h == "string" ? P(h) : h;
3730
- Yr.value = u == null ? void 0 : u.background, zr.value = (u == null ? void 0 : u.hideNavigation) !== !0, Hr.value = (u == null ? void 0 : u.hideAppBar) !== !0, yr != null && yr(), gr.value = (u == null ? void 0 : u.hesitate) === !0, gr.value && (yr = window.addEventListener("beforeunload", (r) => {
3729
+ Yr.value = u == null ? void 0 : u.background, zr.value = (u == null ? void 0 : u.hideNavigation) !== !0, Vr.value = (u == null ? void 0 : u.hideAppBar) !== !0, yr != null && yr(), gr.value = (u == null ? void 0 : u.hesitate) === !0, gr.value && (yr = window.addEventListener("beforeunload", (r) => {
3731
3730
  r.preventDefault();
3732
3731
  }));
3733
3732
  }
3734
3733
  return Cr = {
3735
- showAppBar: Hr,
3734
+ showAppBar: Vr,
3736
3735
  showAppNavigation: zr,
3737
3736
  backgroundName: Yr,
3738
3737
  hesitate: gr,
@@ -3748,9 +3747,9 @@ function zn(e) {
3748
3747
  updateNavigationProperties: d
3749
3748
  }, Cr;
3750
3749
  }
3751
- function Ua(e, t, l) {
3752
- var qe, Ve;
3753
- const S = kn(), s = it(), g = Mr(), x = et(), { bladeData: P } = $n({}), _ = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = K(e.customFilters) ?? [], r = z([]), y = te(() => tn([
3750
+ function Da(e, t, l) {
3751
+ var qe, He;
3752
+ const S = Nn(), s = it(), g = Mr(), x = et(), { bladeData: P } = Cn({}), _ = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((He = s.findItem($)) == null ? void 0 : He.storageMode), u = K(e.customFilters) ?? [], r = z([]), y = te(() => Kt([
3754
3753
  ...u.filter((U) => U.name != null).map((U) => U.name),
3755
3754
  ...e.defaultFilters ?? [],
3756
3755
  ...r.value
@@ -3760,50 +3759,50 @@ function Ua(e, t, l) {
3760
3759
  function M() {
3761
3760
  var U, j;
3762
3761
  if (_) {
3763
- const H = (U = P.value) == null ? void 0 : U.page;
3764
- if (H != null)
3765
- return Number.parseInt(H);
3762
+ const V = (U = P.value) == null ? void 0 : U.page;
3763
+ if (V != null)
3764
+ return Number.parseInt(V);
3766
3765
  }
3767
3766
  if (N) {
3768
- const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.page;
3769
- if (H != null)
3770
- return Number.parseInt(typeof H == "string" ? H : H.toString());
3767
+ const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.page;
3768
+ if (V != null)
3769
+ return Number.parseInt(typeof V == "string" ? V : V.toString());
3771
3770
  }
3772
3771
  return 1;
3773
3772
  }
3774
3773
  const b = te(() => {
3775
3774
  var U, j;
3776
3775
  if (_) {
3777
- const H = (U = P.value) == null ? void 0 : U.proxyID;
3778
- if (H != null)
3779
- return H;
3776
+ const V = (U = P.value) == null ? void 0 : U.proxyID;
3777
+ if (V != null)
3778
+ return V;
3780
3779
  }
3781
3780
  if (N) {
3782
- const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.query;
3783
- if (H != null)
3784
- return H;
3781
+ const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.query;
3782
+ if (V != null)
3783
+ return V;
3785
3784
  }
3786
3785
  return e.proxyID;
3787
3786
  }), T = z(D());
3788
3787
  function D() {
3789
3788
  var U, j;
3790
3789
  if (_) {
3791
- const H = (U = P.value) == null ? void 0 : U.search;
3792
- if (H != null)
3793
- return H;
3790
+ const V = (U = P.value) == null ? void 0 : U.search;
3791
+ if (V != null)
3792
+ return V;
3794
3793
  }
3795
3794
  if (N) {
3796
- const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.search;
3797
- if (H != null)
3798
- return H;
3795
+ const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.search;
3796
+ if (V != null)
3797
+ return V;
3799
3798
  }
3800
3799
  }
3801
3800
  const L = z(K(e.startShowingInactive) ?? !1), f = te(() => [
3802
3801
  ...e.searchProps ?? [],
3803
3802
  ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3804
3803
  ]), A = z([]), J = Re([]), Q = z([]);
3805
- let ee;
3806
- const { actionErrorMsg: ce, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem: V, getAllItems: ae, restoreItem: G } = ut({
3804
+ let O;
3805
+ const { actionErrorMsg: ce, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem: H, getAllItems: ae, restoreItem: G } = ut({
3807
3806
  nav: $,
3808
3807
  onError: e.onError ?? (l == null ? void 0 : l.onError),
3809
3808
  proxyID: b.value,
@@ -3814,28 +3813,28 @@ function Ua(e, t, l) {
3814
3813
  })
3815
3814
  }), X = te(() => e.errorMsg ?? ce.value), ne = te(() => e.loadingMsg ?? we.value), se = te(() => ne.value != null), fe = Re(!1), Ee = Re(e.showSearch ?? !0), $e = z(0), Ce = te(() => {
3816
3815
  let U, j = [];
3817
- I.value.forEach((O) => {
3818
- const de = y.value[O], ge = u.find((De) => De.name == de);
3816
+ I.value.forEach((p) => {
3817
+ const de = y.value[p], ge = u.find((De) => De.name == de);
3819
3818
  ge != null ? U = U != null ? `${U}ANDALSO${ge.filterFunction()}` : ge.filterFunction() : j.push(de);
3820
3819
  });
3821
- const H = {};
3822
- return _e(j) && (H.filterBy = j.toString()), U != null && (H.query = U), H;
3820
+ const V = {};
3821
+ return _e(j) && (V.filterBy = j.toString()), U != null && (V.query = U), V;
3823
3822
  }), rr = te(() => {
3824
3823
  var j;
3825
3824
  let U = e.params != null ? { ...e.params } : {};
3826
3825
  return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), Ce.value != null && (U = { ...U, ...Ce.value }), L.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (j = e.selectProps) == null ? void 0 : j.toString()), T.value != null && (U.searchString = T.value), U;
3827
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(() => {
3828
3827
  let U = new Array();
3829
- return Pe.value.filter((H) => H.sublevel != null).forEach((H) => {
3830
- let O = U.find((de) => de.position == H.sublevel);
3831
- O == null ? U.push({ position: H.sublevel ?? 0, values: [H] }) : O.values.push(H);
3832
- }), U.sort(Ue.firstBy((H) => H.position));
3828
+ return Pe.value.filter((V) => V.sublevel != null).forEach((V) => {
3829
+ let p = U.find((de) => de.position == V.sublevel);
3830
+ p == null ? U.push({ position: V.sublevel ?? 0, values: [V] }) : p.values.push(V);
3831
+ }), U.sort(Ue.firstBy((V) => V.position));
3833
3832
  }), lr = te(() => {
3834
3833
  let U = new Array();
3835
- return Pe.value.filter((H) => H.level != null).forEach((H) => {
3836
- let O = U.find((de) => de.position == H.level);
3837
- O == null ? U.push({ position: H.level ?? 0, values: [H] }) : O.values.push(H);
3838
- }), U.sort(Ue.firstBy((H) => H.position));
3834
+ return Pe.value.filter((V) => V.level != null).forEach((V) => {
3835
+ let p = U.find((de) => de.position == V.level);
3836
+ p == null ? U.push({ position: V.level ?? 0, values: [V] }) : p.values.push(V);
3837
+ }), U.sort(Ue.firstBy((V) => V.position));
3839
3838
  }), ur = te(() => Pe.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
3840
3839
  function be(U) {
3841
3840
  if (e.itemBladeName != null) {
@@ -3853,8 +3852,8 @@ function Ua(e, t, l) {
3853
3852
  function ir(U) {
3854
3853
  const {
3855
3854
  additionalUrl: j,
3856
- onDeleteAsync: H
3857
- } = { ...e }, O = K(U), de = O.id, ge = (De) => {
3855
+ onDeleteAsync: V
3856
+ } = { ...e }, p = K(U), de = p.id, ge = (De) => {
3858
3857
  if (De != null) {
3859
3858
  let Se = A.value.findIndex((oe) => oe.id == De);
3860
3859
  if (Se > -1 && A.value.splice(Se, 1), e.items != null) {
@@ -3862,20 +3861,20 @@ function Ua(e, t, l) {
3862
3861
  oe > -1 && e.items.splice(oe, 1);
3863
3862
  }
3864
3863
  } else {
3865
- let Se = A.value.findIndex((oe) => oe === O);
3866
- if (Se == -1 && (Se = A.value.findIndex((oe) => oe == O)), Se > -1 && A.value.splice(Se, 1), e.items != null) {
3867
- let oe = e.items.findIndex((Me) => Me === O);
3868
- oe == -1 && (oe = e.items.findIndex((Me) => Me == O)), oe > -1 && e.items.splice(oe, 1);
3864
+ let Se = A.value.findIndex((oe) => oe === p);
3865
+ if (Se == -1 && (Se = A.value.findIndex((oe) => oe == p)), Se > -1 && A.value.splice(Se, 1), e.items != null) {
3866
+ let oe = e.items.findIndex((Me) => Me === p);
3867
+ oe == -1 && (oe = e.items.findIndex((Me) => Me == p)), oe > -1 && e.items.splice(oe, 1);
3869
3868
  }
3870
3869
  }
3871
3870
  };
3872
3871
  e.localOnly == !0 || $ == null ? ge(de) : W({
3873
3872
  additionalUrl: j,
3874
- data: O,
3873
+ data: p,
3875
3874
  nav: $,
3876
3875
  onCanDeleteAsync: e.onCanDeleteAsync,
3877
- onDeleteAsync: H,
3878
- onDeleteSuccessAsync: async () => (ge(de), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3876
+ onDeleteAsync: V,
3877
+ onDeleteSuccessAsync: async () => (ge(de), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(p) : Promise.resolve(void 0)),
3879
3878
  proxyID: b.value,
3880
3879
  // ...(useBladeSrc ? bladeData.value : {}),
3881
3880
  requireConfirmation: !0
@@ -3902,7 +3901,7 @@ function Ua(e, t, l) {
3902
3901
  let U = K(A);
3903
3902
  if (U = e.onFilter ? e.onFilter(U) : U, T.value != null && T.value.length > 0) {
3904
3903
  let j = [...f.value];
3905
- e.itemText && j.push(e.itemText), _e(j) && (U = U.filter((H) => Sn(H, T.value, j)));
3904
+ e.itemText && j.push(e.itemText), _e(j) && (U = U.filter((V) => dn(V, T.value, j)));
3906
3905
  }
3907
3906
  J.value = U;
3908
3907
  }
@@ -3930,40 +3929,41 @@ function Ua(e, t, l) {
3930
3929
  onGetSuccessAsync: e.onGetSuccessAsync
3931
3930
  };
3932
3931
  if (e.isSingle === !0)
3933
- j.id === "new" ? A.value = [] : A.value = await V(j);
3932
+ j.id === "new" ? A.value = [] : A.value = await H(j);
3934
3933
  else {
3935
- let H = await ae({
3934
+ let V = await ae({
3936
3935
  ...j,
3937
- onGetSuccessAsync: async (O, de) => {
3938
- let ge = O == null ? void 0 : O.data;
3939
- 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;
3936
+ onGetSuccessAsync: async (p, de) => {
3937
+ let ge = p == null ? void 0 : p.data;
3938
+ return r.value = (p == null ? void 0 : p.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && p.count && ($e.value = Math.ceil(p.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ge = await e.onGetSuccessAsync(ge, de)), ge;
3940
3939
  }
3941
3940
  });
3942
- A.value = H, i.value = [...I.value];
3941
+ A.value = V, i.value = [...I.value];
3943
3942
  }
3944
3943
  Ne();
3945
3944
  }
3946
3945
  function Je(U, j) {
3947
- const H = K(U);
3948
- if (H != null && H === ee && e.canUnselect ? ee = null : ee = H, t != null && t("select", ee), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(H)))
3946
+ const V = K(U);
3947
+ if (V != null && V === O && e.canUnselect ? O = null : O = V, e.canSelect == !0 && (e.onCanSelectItem == null || e.onCanSelectItem(V)))
3949
3948
  if (e.onSelectItem != null)
3950
- e.onSelectItem(ee);
3949
+ e.onSelectItem(O);
3951
3950
  else {
3952
- let O = {
3951
+ let p = {
3953
3952
  bladeName: e.itemBladeName,
3954
- id: H.id,
3953
+ id: V.id,
3955
3954
  nav: $
3956
3955
  };
3957
3956
  j == "page" && g.push({
3958
- name: O.bladeName,
3959
- params: { id: O.id }
3957
+ name: p.bladeName,
3958
+ params: { id: p.id }
3960
3959
  });
3961
3960
  }
3961
+ t != null && (t("select", O), t("confirm", O));
3962
3962
  }
3963
3963
  function je() {
3964
3964
  Ee.value ? (Ee.value = e.showSearch ?? !1, T.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3965
3965
  }
3966
- return We(), nn([T], () => {
3966
+ return We(), Qt([T], () => {
3967
3967
  Ne();
3968
3968
  }, { debounce: 500, maxWait: 500 }), Te([L, w], async () => {
3969
3969
  await Ie();
@@ -4009,7 +4009,7 @@ function Ua(e, t, l) {
4009
4009
  };
4010
4010
  }
4011
4011
  let Ge;
4012
- function Yn(e) {
4012
+ function Fn(e) {
4013
4013
  const t = z((e == null ? void 0 : e.default) ?? "Admin"), l = z((e == null ? void 0 : e.groups) ?? []);
4014
4014
  return Ge = {
4015
4015
  currentGroup: t,
@@ -4017,8 +4017,8 @@ function Yn(e) {
4017
4017
  useRoutes: e == null ? void 0 : e.useRoutes
4018
4018
  }, Ge;
4019
4019
  }
4020
- function Ba() {
4021
- const e = Mr(), t = it(), l = Mn();
4020
+ function xa() {
4021
+ const e = Mr(), t = it(), l = In();
4022
4022
  let S = e.getRoutes();
4023
4023
  return {
4024
4024
  ...Ge,
@@ -4052,10 +4052,10 @@ function Ba() {
4052
4052
  };
4053
4053
  }
4054
4054
  let Pr;
4055
- function $a(e) {
4055
+ function Ta(e) {
4056
4056
  return Pr.usePresets(e);
4057
4057
  }
4058
- function Zn(e) {
4058
+ function kn(e) {
4059
4059
  function t(l) {
4060
4060
  if (!l)
4061
4061
  return {};
@@ -4069,10 +4069,10 @@ function Zn(e) {
4069
4069
  let Zr, Jr, jr, Kr = !1;
4070
4070
  const wr = z(!1), br = z(!1), Qr = z(), pe = z();
4071
4071
  let Nr;
4072
- function Fa() {
4072
+ function _a() {
4073
4073
  return Nr;
4074
4074
  }
4075
- function Jn() {
4075
+ function Gn() {
4076
4076
  function e(x) {
4077
4077
  pe.value = x.detail, br.value = !0;
4078
4078
  }
@@ -4092,7 +4092,7 @@ function Jn() {
4092
4092
  function g() {
4093
4093
  br.value = !1, !(!pe.value || !pe.value.waiting) && pe.value.waiting.postMessage({ type: "SKIP_WAITING" });
4094
4094
  }
4095
- return an(() => {
4095
+ return Xt(() => {
4096
4096
  Zr == null && (Zr = document.addEventListener("swUpdated", e, { once: !0 })), Jr == null && (Jr = navigator.serviceWorker.addEventListener("controllerchange", t)), jr == null && (jr = window.addEventListener("beforeinstallprompt", s));
4097
4097
  }), Nr = {
4098
4098
  canInstallApp: wr,
@@ -4102,42 +4102,29 @@ function Jn() {
4102
4102
  updateApp: g
4103
4103
  }, Nr;
4104
4104
  }
4105
- function ka(e) {
4105
+ function Ca(e) {
4106
4106
  const t = [];
4107
- return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) => An(l) || "Email must be valid")), t;
4107
+ return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) => hn(l) || "Email must be valid")), t;
4108
4108
  }
4109
- const jn = /* @__PURE__ */ Zt({
4110
- __name: "BT-Test",
4111
- setup(e) {
4112
- return (t, l) => (Jt(), jt("div", null, [
4113
- Kt(Qt(ln), null, {
4114
- default: Xt(() => [
4115
- Ot("Test")
4116
- ]),
4117
- _: 1
4118
- })
4119
- ]));
4120
- }
4121
- });
4122
- function Ga(e) {
4109
+ function Pa(e) {
4123
4110
  return {
4124
4111
  install(t, l) {
4125
4112
  var _;
4126
- console.log(t), t.component("bt-test", jn), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), xn(e.urls), Fn(e);
4127
- const S = Wn(), s = zn(e);
4128
- Zn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
4129
- const g = Ln(e.auth);
4130
- Yn(e.menu);
4131
- const x = Nn({
4113
+ console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), yn(e.urls), Pn(e);
4114
+ const S = Ln(), s = $n(e);
4115
+ kn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
4116
+ const g = Dn(e.auth);
4117
+ Fn(e.menu);
4118
+ const x = En({
4132
4119
  auth: g,
4133
4120
  findPath: s.findPath,
4134
4121
  useBearerToken: !0
4135
- }), P = Gn({
4122
+ }), P = Mn({
4136
4123
  getTimeZone: () => g.timeZone.value
4137
4124
  });
4138
- Vn({
4125
+ Un({
4139
4126
  dates: P
4140
- }), Jn(), Tn({
4127
+ }), Gn(), wn({
4141
4128
  api: x,
4142
4129
  auth: g,
4143
4130
  navigation: s
@@ -4146,91 +4133,91 @@ function Ga(e) {
4146
4133
  };
4147
4134
  }
4148
4135
  export {
4149
- Sa as DataURIToBlob,
4150
- ma as addWeekday,
4136
+ sa as DataURIToBlob,
4137
+ aa as addWeekday,
4151
4138
  Be as appendUrl,
4152
- dn as capitalizeWords,
4153
- ca as checkImage,
4154
- yn as containsSearch,
4155
- ha as containsWeekday,
4139
+ nn as capitalizeWords,
4140
+ On as checkImage,
4141
+ fn as containsSearch,
4142
+ na as containsWeekday,
4156
4143
  Lr as copyDeep,
4157
- gn as copyItemByAlphabet,
4158
- Nn as createApi,
4159
- Ln as createAuth,
4160
- Ga as createCore,
4161
- Fn as createCosmetics,
4162
- Gn as createDates,
4163
- Wn as createDemo,
4164
- Vn as createFilters,
4165
- Yn as createMenu,
4166
- zn as createNavigation,
4167
- Jn as createPWA,
4168
- Zn as createPresets,
4169
- Pn as createSessionStoreDefinition,
4170
- Tn as createStoreBuilder,
4171
- xn as createUrl,
4144
+ cn as copyItemByAlphabet,
4145
+ En as createApi,
4146
+ Dn as createAuth,
4147
+ Pa as createCore,
4148
+ Pn as createCosmetics,
4149
+ Mn as createDates,
4150
+ Ln as createDemo,
4151
+ Un as createFilters,
4152
+ Fn as createMenu,
4153
+ $n as createNavigation,
4154
+ Gn as createPWA,
4155
+ kn as createPresets,
4156
+ An as createSessionStoreDefinition,
4157
+ wn as createStoreBuilder,
4158
+ yn as createUrl,
4172
4159
  qr as createWholeLastUpdateStoreDefinition,
4173
- vn as csvContains,
4174
- Ca as csvDefaults,
4160
+ un as csvContains,
4161
+ wa as csvDefaults,
4175
4162
  tt as deepSelect,
4176
- ta as distinct,
4177
- na as extensionExists,
4178
- wn as extractErrorDescription,
4179
- on as fromCamelCase,
4180
- aa as getAreaAround,
4181
- la as getAreaToLeft,
4182
- ua as getAreaToRight,
4183
- ia as getGoogleMapsLocationLine,
4184
- fa as getImageData,
4163
+ Zn as distinct,
4164
+ Jn as extensionExists,
4165
+ sn as extractErrorDescription,
4166
+ tn as fromCamelCase,
4167
+ jn as getAreaAround,
4168
+ Kn as getAreaToLeft,
4169
+ Qn as getAreaToRight,
4170
+ Xn as getGoogleMapsLocationLine,
4171
+ pn as getImageData,
4185
4172
  rt as getLocationLine,
4186
- ya as getMinDate,
4187
- mn as getMinDateString,
4188
- bn as getRandomColor,
4189
- Sn as hasSearch,
4190
- ga as isArrayOfLength,
4173
+ ia as getMinDate,
4174
+ ln as getMinDateString,
4175
+ on as getRandomColor,
4176
+ dn as hasSearch,
4177
+ ua as isArrayOfLength,
4191
4178
  _e as isLengthyArray,
4192
- hn as isMinDate,
4179
+ an as isMinDate,
4193
4180
  Sr as nestedValue,
4194
- va as removeWeekday,
4195
- wa as roundTo,
4196
- En as singularize,
4197
- sa as toCamelCase,
4198
- Aa as toCompareString,
4199
- ba as toggleCSV,
4200
- Ea as twiddleThumbs,
4181
+ la as removeWeekday,
4182
+ ca as roundTo,
4183
+ mn as singularize,
4184
+ ea as toCamelCase,
4185
+ oa as toCompareString,
4186
+ fa as toggleCSV,
4187
+ da as twiddleThumbs,
4201
4188
  ut as useActions,
4202
- fn as useActionsTracker,
4189
+ en as useActionsTracker,
4203
4190
  Er as useApi,
4204
- Mn as useAuth,
4191
+ In as useAuth,
4205
4192
  Wr as useAuthUrl,
4206
- $n as useBlade,
4207
- kn as useCSV,
4208
- Ta as useCosmetics,
4209
- Dn as useDataUrl,
4210
- Pa as useDates,
4193
+ Cn as useBlade,
4194
+ Nn as useCSV,
4195
+ ga as useCosmetics,
4196
+ gn as useDataUrl,
4197
+ ba as useDates,
4211
4198
  lt as useDbName,
4212
- Na as useDemo,
4213
- Ma as useDocumentMeta,
4214
- Rn as useDraggable,
4215
- La as useFilters,
4216
- un as useId,
4217
- Ra as useItem,
4218
- Ua as useList,
4219
- Da as useLocalCache,
4220
- _a as useLocalCosmetics,
4199
+ Sa as useDemo,
4200
+ Aa as useDocumentMeta,
4201
+ xn as useDraggable,
4202
+ Ea as useFilters,
4203
+ Ot as useId,
4204
+ Ia as useItem,
4205
+ Da as useList,
4206
+ ma as useLocalCache,
4207
+ ya as useLocalCosmetics,
4221
4208
  ve as useLocalDb,
4222
- Ba as useMenu,
4209
+ xa as useMenu,
4223
4210
  it as useNavigation,
4224
- Fa as usePWA,
4225
- $a as usePresets,
4226
- Bn as useResizable,
4227
- ka as useRules,
4228
- xa as useStore,
4211
+ _a as usePWA,
4212
+ Ta as usePresets,
4213
+ _n as useResizable,
4214
+ Ca as useRules,
4215
+ va as useStore,
4229
4216
  Le as useStoreDefinition,
4230
- Hn as useTracker,
4231
- Ia as useUrls,
4232
- An as validEmail,
4217
+ Bn as useTracker,
4218
+ ha as useUrls,
4219
+ hn as validEmail,
4233
4220
  Ye as weekdayPairs,
4234
- da as weekdayShortName,
4235
- oa as weekdayValue
4221
+ ta as weekdayShortName,
4222
+ ra as weekdayValue
4236
4223
  };