bt-core-app 1.4.89 → 1.4.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bt-core-app.js +542 -560
  2. package/package.json +1 -1
@@ -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, openBlock as Zt, createElementBlock as Jt, createVNode as jt, withCtx as Kt, createTextVNode as Qt } from "vue";
2
- import { watchArray as Or, useStorage as Xt, useEventListener as me, toValue as Ae, useParentElement as Ot, useResizeObserver as pt, useArrayUnique as en, useArrayDifference as Gr, watchDebounced as rn, tryOnMounted as tn } 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 nn } from "vuetify/lib/components/VBtn/index.mjs";
7
- function an(e) {
8
- return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, ln);
6
+ function Ot(e) {
7
+ return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, pt);
9
8
  }
10
- function ln(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 un(e) {
15
- const t = z([]), l = Re(), S = Re(), f = Re(), g = te(() => l.value != null);
13
+ function en(e) {
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: an(),
20
+ id: Ot(),
22
21
  msg: d ?? "Loading"
23
22
  };
24
23
  return t.value.push(h), h.id;
@@ -35,7 +34,7 @@ function un(e) {
35
34
  const r = P(u.loadingMsg);
36
35
  let y = null;
37
36
  try {
38
- return u.requireConfirmation || u.confirmationMsg, y = await d(), u.completionMsg != null && (f.value = u.completionMsg), y;
37
+ return u.requireConfirmation || u.confirmationMsg, y = await d(), u.completionMsg != null && (s.value = u.completionMsg), y;
39
38
  } catch (I) {
40
39
  if ((e == null ? void 0 : e.onError) != null)
41
40
  e.onError(I);
@@ -53,7 +52,7 @@ function un(e) {
53
52
  }, { deep: !0 }), {
54
53
  actionErrorMsg: S,
55
54
  actionLoadingMsg: l,
56
- actionCompleteMsg: f,
55
+ actionCompleteMsg: s,
57
56
  clearErrors: N,
58
57
  doAction: $,
59
58
  isLoading: g,
@@ -61,38 +60,38 @@ function un(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 cn(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() {
68
- function e(f) {
69
- return f;
67
+ function e(s) {
68
+ return s;
70
69
  }
71
- function t(f) {
72
- return typeof f == "string" ? f.toLowerCase() : f;
70
+ function t(s) {
71
+ return typeof s == "string" ? s.toLowerCase() : s;
73
72
  }
74
- function l(f, g) {
75
- if (g = typeof g == "object" ? g : { direction: g }, typeof f != "function") {
76
- var x = f;
77
- f = function(d) {
73
+ function l(s, g) {
74
+ if (g = typeof g == "object" ? g : { direction: g }, typeof s != "function") {
75
+ var x = s;
76
+ s = function(d) {
78
77
  return d[x] ? d[x] : "";
79
78
  };
80
79
  }
81
- if (f.length === 1) {
82
- var P = f, _ = g.ignoreCase ? t : e, N = g.cmp || function(d, h) {
80
+ if (s.length === 1) {
81
+ var P = s, _ = g.ignoreCase ? t : e, N = g.cmp || function(d, h) {
83
82
  return d < h ? -1 : d > h ? 1 : 0;
84
83
  };
85
- f = function(d, h) {
84
+ s = function(d, h) {
86
85
  return N(_(P(d)), _(P(h)));
87
86
  };
88
87
  }
89
88
  const $ = { "-1": "", desc: "" };
90
89
  return g.direction in $ ? function(d, h) {
91
- return -f(d, h);
92
- } : f;
90
+ return -s(d, h);
91
+ } : s;
93
92
  }
94
- function S(f, g) {
95
- var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(f, g), _ = x ? function(N, $) {
93
+ function S(s, g) {
94
+ var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(s, g), _ = x ? function(N, $) {
96
95
  return x(N, $) || P(N, $);
97
96
  } : P;
98
97
  return _.thenBy = S, _;
@@ -111,18 +110,18 @@ function Be(e, t) {
111
110
  while (S.startsWith("/"));
112
111
  return `${l}/${S}`;
113
112
  }
114
- function na(e) {
113
+ function Zn(e) {
115
114
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
116
115
  }
117
- function aa(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(gn(l)), !1;
121
+ return console.log(sn(l)), !1;
123
122
  }
124
123
  }
125
- function la(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 la(e, t) {
130
129
  { lat: e.lat + t, lng: e.lng + t }
131
130
  ];
132
131
  }
133
- function ua(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 ua(e, t) {
138
137
  { lat: e.lat, lng: e.lng + t }
139
138
  ];
140
139
  }
141
- function ia(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 ia(e, t) {
146
145
  { lat: e.lat + t * 2, lng: e.lng + t }
147
146
  ];
148
147
  }
149
- function ca(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,36 +157,36 @@ 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 fa(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 sa(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
- var f = new Image();
171
- f.setAttribute("crossOrigin", "anonymous"), f.onload = function() {
169
+ var s = new Image();
170
+ s.setAttribute("crossOrigin", "anonymous"), s.onload = function() {
172
171
  var g = document.createElement("canvas");
173
172
  g.width = this.width, g.height = this.height;
174
173
  var x = g.getContext("2d");
175
174
  x == null || x.drawImage(this, 0, 0), l(g.toDataURL("image/png"));
176
- }, f.onerror = function() {
175
+ }, s.onerror = function() {
177
176
  console.log("errr"), t ? S("image could not be loaded for some reason") : l(null);
178
- }, e != null && (f.src = e);
177
+ }, e != null && (s.src = e);
179
178
  });
180
179
  }
181
- function fn(e) {
180
+ function tn(e) {
182
181
  return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
183
182
  }
184
- function oa(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 sn(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,73 +199,73 @@ 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 da(e) {
202
+ function ra(e) {
204
203
  if (e == null)
205
204
  return 0;
206
- const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), l = Ye.filter((S) => S.values.some((f) => t.some((g) => f == g))).map((S) => S.value);
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 ha(e) {
208
+ function ta(e) {
210
209
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
211
- let l = Ye.find((S) => S.values.some((f) => f == t));
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 ma(e, t) {
214
+ function na(e, t) {
216
215
  if (e == null || t == null)
217
216
  return !0;
218
- const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), f = Ye.find((g) => g.values.some((x) => x == S));
219
- return f != null && l.some((g) => g == f.short || f.values.some((x) => x == g));
217
+ const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), s = Ye.find((g) => g.values.some((x) => x == S));
218
+ return s != null && l.some((g) => g == s.short || s.values.some((x) => x == g));
220
219
  }
221
- function va(e, t) {
220
+ function aa(e, t) {
222
221
  if (t == null)
223
222
  return e;
224
223
  let l = e ?? "";
225
224
  l = `${l},${t}`;
226
- let S = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((f) => Ye.find((g) => g.values.some((x) => x == f))).filter((f) => f != null).sort(Ue.firstBy((f) => (f == null ? void 0 : f.value) ?? 0)).map((f) => f == null ? void 0 : f.short))].toString();
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 ga(e, t) {
228
+ function la(e, t) {
230
229
  if (t == null || e == null)
231
230
  return e;
232
- let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), f = [...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
- return f.length > 0 ? f : void 0;
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();
232
+ return s.length > 0 ? s : void 0;
234
233
  }
235
- function ya(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 on(e) {
240
+ function an(e) {
242
241
  return e == "0001-01-01T00:00:00Z";
243
242
  }
244
- function wa() {
243
+ function ia() {
245
244
  return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
246
245
  }
247
- function dn() {
246
+ function ln() {
248
247
  return "0001-01-01T00:00:00Z";
249
248
  }
250
- function ba(e, t) {
249
+ function ca(e, t) {
251
250
  let l = "1", S = 0;
252
251
  if (S < t)
253
252
  do
254
253
  l = l + "0", S += 1;
255
254
  while (S < t);
256
- let f = Number.parseInt(l);
257
- return Math.round(e * f) / f;
255
+ let s = Number.parseInt(l);
256
+ return Math.round(e * s) / s;
258
257
  }
259
- function Sa(e, t) {
258
+ function fa(e, t) {
260
259
  let l = e ?? "";
261
- return t != null && (hn(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 hn(e, t) {
262
+ function un(e, t) {
264
263
  if (e == null || e.length == 0)
265
264
  return !1;
266
265
  if (!t)
267
266
  return !0;
268
267
  var l = e.split(","), S = t.split(",");
269
- return l.some((f) => S.some((g) => g == f));
268
+ return l.some((s) => S.some((g) => g == s));
270
269
  }
271
270
  function Lr(e) {
272
271
  if (!e)
@@ -276,32 +275,32 @@ function Lr(e) {
276
275
  t = e[S], l[S] = typeof t == "object" ? Lr(t) : t;
277
276
  return l;
278
277
  }
279
- function mn(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 ? mn(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 vn(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) {
289
288
  if (e == null)
290
289
  return [];
291
290
  const l = Array.isArray(e) ? e : t(e);
292
- return _e(l) ? [...l.reduce((S, f) => {
293
- S.push(f);
294
- const g = tt(f, t);
291
+ return _e(l) ? [...l.reduce((S, s) => {
292
+ S.push(s);
293
+ const g = tt(s, t);
295
294
  return _e(g) && S.push(...g), S;
296
295
  }, [])] : [];
297
296
  }
298
- function Aa(e) {
299
- const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), S = t[0].split(":")[1].split(";")[0], f = new Uint8Array(l.length);
297
+ function sa(e) {
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
- f[g] = l.charCodeAt(g);
302
- return new Blob([f], { type: S });
300
+ s[g] = l.charCodeAt(g);
301
+ return new Blob([s], { type: S });
303
302
  }
304
- function gn(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,27 +313,27 @@ function gn(e) {
314
313
  }
315
314
  return "hmmm no error was supplied";
316
315
  }
317
- function yn() {
316
+ function on() {
318
317
  const e = "#" + Math.floor(Math.random() * 16777215).toString(16);
319
- return e.length !== 7 ? yn() : e;
318
+ return e.length !== 7 ? on() : e;
320
319
  }
321
- function wn(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)
325
324
  return !1;
326
- for (let f = 0; f < l.length; f++) {
327
- const g = l[f];
325
+ for (let s = 0; s < l.length; s++) {
326
+ const g = l[s];
328
327
  var S = Sr(e, g);
329
- if (S != null && typeof S == "string" && vn(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 Ea(e) {
333
+ function oa(e) {
335
334
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
336
335
  }
337
- function Ia(e = 2e3) {
336
+ function da(e = 2e3) {
338
337
  return new Promise((t) => {
339
338
  setTimeout(() => t(), e);
340
339
  });
@@ -344,15 +343,15 @@ function Sr(e, t) {
344
343
  return null;
345
344
  var l = t.split(".");
346
345
  let S = l.length;
347
- for (var f = e, g = 0; g < S; g++)
348
- if (f = f[l[g]], f == null)
346
+ for (var s = e, g = 0; g < S; g++)
347
+ if (s = s[l[g]], s == null)
349
348
  return null;
350
- return f;
349
+ return s;
351
350
  }
352
- function bn(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 Sn(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) {
@@ -369,9 +368,9 @@ var nt = { exports: {} };
369
368
  (function(l) {
370
369
  e.exports = l();
371
370
  })(function() {
372
- return function l(S, f, g) {
371
+ return function l(S, s, g) {
373
372
  function x(N, $) {
374
- if (!f[N]) {
373
+ if (!s[N]) {
375
374
  if (!S[N]) {
376
375
  var d = typeof Xe == "function" && Xe;
377
376
  if (!$ && d)
@@ -381,18 +380,18 @@ var nt = { exports: {} };
381
380
  var h = new Error("Cannot find module '" + N + "'");
382
381
  throw h.code = "MODULE_NOT_FOUND", h;
383
382
  }
384
- var u = f[N] = { exports: {} };
383
+ var u = s[N] = { exports: {} };
385
384
  S[N][0].call(u.exports, function(r) {
386
385
  var y = S[N][1][r];
387
386
  return x(y || r);
388
- }, u, u.exports, l, S, f, g);
387
+ }, u, u.exports, l, S, s, g);
389
388
  }
390
- return f[N].exports;
389
+ return s[N].exports;
391
390
  }
392
391
  for (var P = typeof Xe == "function" && Xe, _ = 0; _ < g.length; _++)
393
392
  x(g[_]);
394
393
  return x;
395
- }({ 1: [function(l, S, f) {
394
+ }({ 1: [function(l, S, s) {
396
395
  (function(g) {
397
396
  var x = g.MutationObserver || g.WebKitMutationObserver, P;
398
397
  if (x) {
@@ -431,7 +430,7 @@ var nt = { exports: {} };
431
430
  u.push(I) === 1 && !h && P();
432
431
  }
433
432
  }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
434
- }, {}], 2: [function(l, S, f) {
433
+ }, {}], 2: [function(l, S, s) {
435
434
  var g = l(1);
436
435
  function x() {
437
436
  }
@@ -472,8 +471,8 @@ var nt = { exports: {} };
472
471
  var L;
473
472
  try {
474
473
  L = T(D);
475
- } catch (s) {
476
- return P.reject(b, s);
474
+ } catch (f) {
475
+ return P.reject(b, f);
477
476
  }
478
477
  L === b ? P.reject(b, new TypeError("Cannot resolve promise with itself")) : P.resolve(b, L);
479
478
  });
@@ -487,8 +486,8 @@ var nt = { exports: {} };
487
486
  y(b, L);
488
487
  else {
489
488
  b.state = N, b.outcome = T;
490
- for (var s = -1, A = b.queue.length; ++s < A; )
491
- b.queue[s].callFulfilled(T);
489
+ for (var f = -1, A = b.queue.length; ++f < A; )
490
+ b.queue[f].callFulfilled(T);
492
491
  }
493
492
  return b;
494
493
  }, P.reject = function(b, T) {
@@ -509,11 +508,11 @@ var nt = { exports: {} };
509
508
  function L(Q) {
510
509
  D || (D = !0, P.reject(b, Q));
511
510
  }
512
- function s(Q) {
511
+ function f(Q) {
513
512
  D || (D = !0, P.resolve(b, Q));
514
513
  }
515
514
  function A() {
516
- T(s, L);
515
+ T(f, L);
517
516
  }
518
517
  var J = I(A);
519
518
  J.status === "error" && L(J.value);
@@ -544,7 +543,7 @@ var nt = { exports: {} };
544
543
  var D = b.length, L = !1;
545
544
  if (!D)
546
545
  return this.resolve([]);
547
- for (var s = new Array(D), A = 0, J = -1, Q = new this(x); ++J < D; )
546
+ for (var f = new Array(D), A = 0, J = -1, Q = new this(x); ++J < D; )
548
547
  ee(b[J], J);
549
548
  return Q;
550
549
  function ee(ce, we) {
@@ -552,7 +551,7 @@ var nt = { exports: {} };
552
551
  L || (L = !0, P.reject(Q, Y));
553
552
  });
554
553
  function W(Y) {
555
- s[we] = Y, ++A === D && !L && (L = !0, P.resolve(Q, s));
554
+ f[we] = Y, ++A === D && !L && (L = !0, P.resolve(Q, f));
556
555
  }
557
556
  }
558
557
  }
@@ -564,8 +563,8 @@ var nt = { exports: {} };
564
563
  var D = b.length, L = !1;
565
564
  if (!D)
566
565
  return this.resolve([]);
567
- for (var s = -1, A = new this(x); ++s < D; )
568
- J(b[s]);
566
+ for (var f = -1, A = new this(x); ++f < D; )
567
+ J(b[f]);
569
568
  return A;
570
569
  function J(Q) {
571
570
  T.resolve(Q).then(function(ee) {
@@ -575,11 +574,11 @@ var nt = { exports: {} };
575
574
  });
576
575
  }
577
576
  }
578
- }, { 1: 1 }], 3: [function(l, S, f) {
577
+ }, { 1: 1 }], 3: [function(l, S, s) {
579
578
  (function(g) {
580
579
  typeof g.Promise != "function" && (g.Promise = l(2));
581
580
  }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
582
- }, { 2: 2 }], 4: [function(l, S, f) {
581
+ }, { 2: 2 }], 4: [function(l, S, s) {
583
582
  var g = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
584
583
  return typeof n;
585
584
  } : function(n) {
@@ -675,7 +674,7 @@ var nt = { exports: {} };
675
674
  return i = c, i;
676
675
  });
677
676
  }
678
- function s(n) {
677
+ function f(n) {
679
678
  var c = E[n.name], a = {};
680
679
  a.promise = new d(function(m, v) {
681
680
  a.resolve = m, a.reject = v;
@@ -697,7 +696,7 @@ var nt = { exports: {} };
697
696
  return new d(function(a, m) {
698
697
  if (E[n.name] = E[n.name] || ne(), n.db)
699
698
  if (c)
700
- s(n), n.db.close();
699
+ f(n), n.db.close();
701
700
  else
702
701
  return a(n.db);
703
702
  var v = [n.name];
@@ -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) {
@@ -771,7 +770,7 @@ var nt = { exports: {} };
771
770
  return u(a, n, n), a;
772
771
  }
773
772
  function G(n) {
774
- s(n);
773
+ f(n);
775
774
  for (var c = E[n.name], a = c.forages, m = 0; m < a.length; m++) {
776
775
  var v = a[m];
777
776
  v._dbInfo.db && (v._dbInfo.db.close(), v._dbInfo.db = null);
@@ -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,7 +881,7 @@ 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));
884
+ H(Z) && (Z = Y(Z));
886
885
  var p = n(Z, q.key, k++);
887
886
  p !== void 0 ? v(p) : q.continue();
888
887
  } else
@@ -1072,7 +1071,7 @@ var nt = { exports: {} };
1072
1071
  n.storeName ? v = C.then(function(R) {
1073
1072
  if (R.objectStoreNames.contains(n.storeName)) {
1074
1073
  var B = R.version + 1;
1075
- s(n);
1074
+ f(n);
1076
1075
  var F = E[n.name], k = F.forages;
1077
1076
  R.close();
1078
1077
  for (var q = 0; q < k.length; q++) {
@@ -1104,7 +1103,7 @@ var nt = { exports: {} };
1104
1103
  });
1105
1104
  }
1106
1105
  }) : v = C.then(function(R) {
1107
- s(n);
1106
+ f(n);
1108
1107
  var B = E[n.name], F = B.forages;
1109
1108
  R.close();
1110
1109
  for (var k = 0; k < F.length; k++) {
@@ -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", O = "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 += O : 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,13 +1206,13 @@ 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
1217
  case O:
1219
1218
  return new Float32Array(o);
@@ -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
  });
@@ -1713,19 +1712,19 @@ var nt = { exports: {} };
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);
@@ -1805,8 +1804,8 @@ var nt = { exports: {} };
1805
1804
  }, { 3: 3 }] }, {}, [4])(4);
1806
1805
  });
1807
1806
  })(nt);
1808
- var An = nt.exports;
1809
- const at = /* @__PURE__ */ cn(An);
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 En(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 Da() {
1825
+ function ha() {
1827
1826
  return ue;
1828
1827
  }
1829
- function In(e) {
1828
+ function yn(e) {
1830
1829
  return ue = e, ue;
1831
1830
  }
1832
1831
  let Oe = null;
@@ -1837,21 +1836,21 @@ 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 xa() {
1841
- async function e(f) {
1839
+ function ma() {
1840
+ async function e(s) {
1842
1841
  const g = ve();
1843
- (await g.keys()).filter((_) => _.startsWith(f)).forEach((_) => {
1842
+ (await g.keys()).filter((_) => _.startsWith(s)).forEach((_) => {
1844
1843
  g.removeItem(_);
1845
1844
  });
1846
1845
  }
1847
- async function t(f) {
1848
- return await ve().getItem(f);
1846
+ async function t(s) {
1847
+ return await ve().getItem(s);
1849
1848
  }
1850
- async function l(f) {
1851
- return await ve().removeItem(f);
1849
+ async function l(s) {
1850
+ return await ve().removeItem(s);
1852
1851
  }
1853
- async function S(f, g) {
1854
- await ve().setItem(g, f);
1852
+ async function S(s, g) {
1853
+ await ve().setItem(g, s);
1855
1854
  }
1856
1855
  return {
1857
1856
  clearAsync: e,
@@ -1861,21 +1860,21 @@ function xa() {
1861
1860
  };
1862
1861
  }
1863
1862
  let er;
1864
- function Ta(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 Dn(e) {
1871
- return er = (t) => xn({
1869
+ function wn(e) {
1870
+ return er = (t) => bn({
1872
1871
  ...e,
1873
1872
  ...t
1874
1873
  }), er;
1875
1874
  }
1876
- function xn(e) {
1877
- var t, l, S, f, g;
1878
- 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 = ((f = (S = e.navigation) == null ? void 0 : S.findItem(e.nav)) == null ? void 0 : f.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((g = e.navigation) == null ? void 0 : g.findStoreName(e.nav)) ?? e.nav), e.storeName == null)
1875
+ function bn(e) {
1876
+ var t, l, S, s, g;
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");
1880
1879
  if (e.storeMode == "whole-last-updated") {
1881
1880
  if (e.api == null)
@@ -1886,23 +1885,23 @@ function xn(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 _n({ ...e, storeName: e.storeName ?? "" });
1888
+ return An({ ...e, storeName: e.storeName ?? "" });
1890
1889
  }
1891
- const Tn = (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 = "");
1895
1894
  let l = new URLSearchParams();
1896
- Object.entries(e.params).sort(Ue.firstBy((f) => f[0])).forEach((f) => {
1897
- f[1] != null && l.append(f[0], f[1].toString());
1895
+ Object.entries(e.params).sort(Ue.firstBy((s) => s[0])).forEach((s) => {
1896
+ s[1] != null && l.append(s[0], s[1].toString());
1898
1897
  }), t = `${t}?${l.toString()}`;
1899
1898
  }
1900
1899
  return e.finalUrl = t, e.finalUrl ?? "";
1901
1900
  };
1902
- function _n(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({}), f = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Tn;
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 = "";
@@ -1914,7 +1913,7 @@ function _n(e) {
1914
1913
  const y = x(r), I = r.refresh;
1915
1914
  if (!I && l.value[y] !== void 0)
1916
1915
  return l.value[y];
1917
- if (!I && f == !0) {
1916
+ if (!I && s == !0) {
1918
1917
  const i = await ve().getItem(y);
1919
1918
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1920
1919
  return l.value[y] = i, i;
@@ -1932,7 +1931,7 @@ function _n(e) {
1932
1931
  count: T == null ? void 0 : T.count,
1933
1932
  filters: (T == null ? void 0 : T.filters) ?? []
1934
1933
  };
1935
- f == !0 && await ve().setItem(y, D), w(D);
1934
+ s == !0 && await ve().setItem(y, D), w(D);
1936
1935
  } catch (T) {
1937
1936
  M(T);
1938
1937
  } finally {
@@ -1954,7 +1953,7 @@ function _n(e) {
1954
1953
  const y = x(r), I = r.refresh;
1955
1954
  if (!I && l.value[y] !== void 0)
1956
1955
  return l.value[y];
1957
- if (!I && f == !0) {
1956
+ if (!I && s == !0) {
1958
1957
  const i = await ve().getItem(y);
1959
1958
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1960
1959
  return l.value[y] = i, { data: i.data };
@@ -1971,7 +1970,7 @@ function _n(e) {
1971
1970
  meta: { storedOn: t.toString() },
1972
1971
  data: T == null ? void 0 : T.data
1973
1972
  };
1974
- f == !0 && await ve().setItem(y, D), w(D);
1973
+ s == !0 && await ve().setItem(y, D), w(D);
1975
1974
  } catch (T) {
1976
1975
  M(T);
1977
1976
  } finally {
@@ -2003,7 +2002,7 @@ function _n(e) {
2003
2002
  meta: { storedOn: t.toString() },
2004
2003
  data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...I }
2005
2004
  };
2006
- return l.value[y] = E, f == !0 && await ve().setItem(y, E), I.id != null && I.rowVersion != null && Object.entries(l.value).forEach((M) => {
2005
+ return l.value[y] = E, s == !0 && await ve().setItem(y, E), I.id != null && I.rowVersion != null && Object.entries(l.value).forEach((M) => {
2007
2006
  const b = M[1].data;
2008
2007
  if (b != null)
2009
2008
  if (Array.isArray(b))
@@ -2033,7 +2032,7 @@ function _n(e) {
2033
2032
  meta: { storedOn: t.toString() },
2034
2033
  data: I
2035
2034
  };
2036
- return f == !0 && await ve().setItem(y, i), l.value[y] = i, i.data;
2035
+ return s == !0 && await ve().setItem(y, i), l.value[y] = i, i.data;
2037
2036
  }
2038
2037
  return I;
2039
2038
  }
@@ -2059,7 +2058,7 @@ function _n(e) {
2059
2058
  M[b].id == I && M.splice(b, 1);
2060
2059
  else
2061
2060
  delete l.value[w[0]];
2062
- }), f == !0 && await ve().removeItem(y);
2061
+ }), s == !0 && await ve().removeItem(y);
2063
2062
  }
2064
2063
  async function h(r) {
2065
2064
  if (r.additionalUrl ?? (r.additionalUrl = `/patch/restore?id=${r.data.id}`), g(r), e.api != null)
@@ -2084,7 +2083,7 @@ function _n(e) {
2084
2083
  }
2085
2084
  function qr(e) {
2086
2085
  return pr(e.storeName, () => {
2087
- const t = z(), l = z(0), S = he.utc().toSeconds() / 3600, f = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
2086
+ const t = z(), l = z(0), S = he.utc().toSeconds() / 3600, s = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
2088
2087
  function _() {
2089
2088
  var i;
2090
2089
  return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
@@ -2106,13 +2105,13 @@ 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) ?? dn()
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) => {
2113
2112
  var A, J;
2114
- const s = t.value.findIndex((Q) => Q.id == L.id);
2115
- s >= 0 ? (A = t.value) == null || A.splice(s, 1, L) : (J = t.value) == null || J.push(L);
2113
+ const f = t.value.findIndex((Q) => Q.id == L.id);
2114
+ f >= 0 ? (A = t.value) == null || A.splice(f, 1, L) : (J = t.value) == null || J.push(L);
2116
2115
  }), l.value = t.value.length, g.value = {
2117
2116
  lastUpdate: he.utc().toString(),
2118
2117
  storedOn: S.toString()
@@ -2136,7 +2135,7 @@ function qr(e) {
2136
2135
  if (!w && P == !0) {
2137
2136
  const D = await ve().getItem(E);
2138
2137
  if (D != null && parseFloat(D.meta.storedOn) > S - 7)
2139
- return t.value = D.data, l.value = D.data.length, f.value = D.filters ?? [], g.value = D.meta, {
2138
+ return t.value = D.data, l.value = D.data.length, s.value = D.filters ?? [], g.value = D.meta, {
2140
2139
  count: (b = t.value) == null ? void 0 : b.length,
2141
2140
  data: t.value ?? [],
2142
2141
  filters: []
@@ -2146,7 +2145,7 @@ function qr(e) {
2146
2145
  return {
2147
2146
  count: (T = t.value) == null ? void 0 : T.length,
2148
2147
  data: t.value ?? [],
2149
- filters: f.value
2148
+ filters: s.value
2150
2149
  };
2151
2150
  t.value ?? (t.value = []);
2152
2151
  try {
@@ -2163,14 +2162,14 @@ function qr(e) {
2163
2162
  throw new Error("no id provided");
2164
2163
  let M = i.refresh;
2165
2164
  if (!M && t.value != null) {
2166
- const s = t.value.find((A) => A.id == w);
2167
- if (s != null)
2168
- return { data: s };
2165
+ const f = t.value.find((A) => A.id == w);
2166
+ if (f != null)
2167
+ return { data: f };
2169
2168
  }
2170
2169
  if (!M && P == !0) {
2171
- const s = await ve().getItem(E);
2172
- if (s != null && parseFloat(s.meta.storedOn) > S - 12) {
2173
- t.value = s.data, l.value = s.data.length, f.value = s.filters ?? [], g.value = s.meta;
2170
+ const f = await ve().getItem(E);
2171
+ if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
2172
+ t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
2174
2173
  let A = (T = t.value) == null ? void 0 : T.find((J) => J.id == i.id);
2175
2174
  if (A != null)
2176
2175
  return { data: A };
@@ -2178,13 +2177,13 @@ function qr(e) {
2178
2177
  }
2179
2178
  if (e.api == null)
2180
2179
  return {
2181
- data: (D = t.value) == null ? void 0 : D.find((s) => s.id == i.id)
2180
+ data: (D = t.value) == null ? void 0 : D.find((f) => f.id == i.id)
2182
2181
  };
2183
2182
  t.value ?? (t.value = []);
2184
2183
  try {
2185
- return await $(i), { data: (L = t.value) == null ? void 0 : L.find((s) => s.id == i.id) };
2186
- } catch (s) {
2187
- let A = s;
2184
+ return await $(i), { data: (L = t.value) == null ? void 0 : L.find((f) => f.id == i.id) };
2185
+ } catch (f) {
2186
+ let A = f;
2188
2187
  throw new Error(A.message ?? "Problem");
2189
2188
  }
2190
2189
  }
@@ -2272,8 +2271,8 @@ let Ar;
2272
2271
  function Er() {
2273
2272
  return Ar;
2274
2273
  }
2275
- function Cn(e) {
2276
- 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, f = e == null ? void 0 : e.demo;
2274
+ function En(e) {
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();
2279
2278
  return Object.entries(u).forEach((y) => {
@@ -2294,8 +2293,8 @@ function Cn(e) {
2294
2293
  async function _(u) {
2295
2294
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2296
2295
  let i = u.finalUrl, E = u.headers;
2297
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), f != null && f.isDemoing.value)
2298
- return console.log(`DEMO: Get from ${i}`), f.get(u);
2296
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2297
+ return console.log(`DEMO: Get from ${i}`), s.get(u);
2299
2298
  console.log(`Get from ${i}`);
2300
2299
  let w;
2301
2300
  try {
@@ -2329,8 +2328,8 @@ function Cn(e) {
2329
2328
  async function N(u) {
2330
2329
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2331
2330
  let i = u.finalUrl, E = u.headers;
2332
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), f != null && f.isDemoing.value)
2333
- return console.log(`DEMO: Get all from ${i}`), f.getAll(u);
2331
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2332
+ return console.log(`DEMO: Get all from ${i}`), s.getAll(u);
2334
2333
  console.log(`Get all from ${i}`);
2335
2334
  let w;
2336
2335
  try {
@@ -2364,8 +2363,8 @@ function Cn(e) {
2364
2363
  async function $(u) {
2365
2364
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2366
2365
  let i = u.finalUrl, E = u.headers;
2367
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), f != null && f.isDemoing.value)
2368
- return console.log(`DEMO: Post to ${i}`), f.post(u);
2366
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2367
+ return console.log(`DEMO: Post to ${i}`), s.post(u);
2369
2368
  console.log(`Post to ${i}`);
2370
2369
  let w;
2371
2370
  try {
@@ -2400,8 +2399,8 @@ function Cn(e) {
2400
2399
  async function d(u) {
2401
2400
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2402
2401
  let i = u.finalUrl, E = u.headers;
2403
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), f != null && f.isDemoing.value)
2404
- return console.log(`DEMO: Patch to ${i}`), f.patch(u);
2402
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2403
+ return console.log(`DEMO: Patch to ${i}`), s.patch(u);
2405
2404
  console.log(`Patch to ${i}`);
2406
2405
  let w;
2407
2406
  try {
@@ -2436,8 +2435,8 @@ function Cn(e) {
2436
2435
  async function h(u) {
2437
2436
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
2438
2437
  let y = u.finalUrl, I = u.headers;
2439
- if (y == null && (y = S(u)), u.overrideHeaders !== !0 && (I = t(u)), f != null && f.isDemoing.value)
2440
- return console.log(`DEMO: Delete ${y}`), f.deleteItem(u);
2438
+ if (y == null && (y = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2439
+ return console.log(`DEMO: Delete ${y}`), s.deleteItem(u);
2441
2440
  console.log(`Delete ${y}`);
2442
2441
  let i;
2443
2442
  try {
@@ -2473,7 +2472,7 @@ function Cn(e) {
2473
2472
  }, Ar;
2474
2473
  }
2475
2474
  function ut(e) {
2476
- const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: f, doAction: g, logError: x } = un(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);
@@ -2594,25 +2593,25 @@ function ut(e) {
2594
2593
  doAction: g,
2595
2594
  getAllItems: N,
2596
2595
  getItem: _,
2597
- isLoading: f,
2596
+ isLoading: s,
2598
2597
  logError: x,
2599
2598
  restoreItem: $,
2600
2599
  saveItem: d
2601
2600
  };
2602
2601
  }
2603
2602
  let hr = "Australia/Melbourne", Ir;
2604
- const Vr = "auth-credentials-state";
2605
- function Pn() {
2603
+ const Hr = "auth-credentials-state";
2604
+ function In() {
2606
2605
  return Ir;
2607
2606
  }
2608
- function Nn(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 f = Xt("auth-credentials", {});
2614
+ const s = Zt("auth-credentials", {});
2616
2615
  function g(D) {
2617
2616
  if (D == null)
2618
2617
  return !0;
@@ -2621,10 +2620,10 @@ function Nn(e) {
2621
2620
  return !1;
2622
2621
  if (L.requiresAuth === !1)
2623
2622
  return !0;
2624
- const s = K(f);
2625
- if (s.isSuspended && L.ignoreSuspension !== !0)
2623
+ const f = K(s);
2624
+ if (f.isSuspended && L.ignoreSuspension !== !0)
2626
2625
  return !1;
2627
- if (s.isGlobalAdmin)
2626
+ if (f.isGlobalAdmin)
2628
2627
  return !0;
2629
2628
  if (L.permissions != null) {
2630
2629
  for (var A = 0; A < L.permissions.length; A++)
@@ -2634,11 +2633,11 @@ function Nn(e) {
2634
2633
  return !0;
2635
2634
  }
2636
2635
  function x(D) {
2637
- const L = K(f);
2636
+ const L = K(s);
2638
2637
  if (L.userPermissions != null)
2639
- for (var s = 0; s < L.userPermissions.length; s++) {
2640
- var A = L.userPermissions[s].split(".");
2641
- if (L.userPermissions[s] == "everything.edit" || D == A[0] && A.length > 1 && A[1] == "edit")
2638
+ for (var f = 0; f < L.userPermissions.length; f++) {
2639
+ var A = L.userPermissions[f].split(".");
2640
+ if (L.userPermissions[f] == "everything.edit" || D == A[0] && A.length > 1 && A[1] == "edit")
2642
2641
  return !0;
2643
2642
  }
2644
2643
  return !1;
@@ -2651,10 +2650,10 @@ function Nn(e) {
2651
2650
  return !1;
2652
2651
  if (L.requiresAuth === !1)
2653
2652
  return !0;
2654
- const s = K(f);
2655
- if (s.isSuspended && L.ignoreSuspension !== !0)
2653
+ const f = K(s);
2654
+ if (f.isSuspended && L.ignoreSuspension !== !0)
2656
2655
  return !1;
2657
- if (s.isGlobalAdmin)
2656
+ if (f.isGlobalAdmin)
2658
2657
  return !0;
2659
2658
  if (L.permissions != null) {
2660
2659
  for (var A = 0; A < L.permissions.length; A++)
@@ -2664,76 +2663,76 @@ function Nn(e) {
2664
2663
  return !0;
2665
2664
  }
2666
2665
  function _(D) {
2667
- const L = K(f);
2666
+ const L = K(s);
2668
2667
  if (L.userPermissions != null)
2669
- for (var s = 0; s < L.userPermissions.length; s++) {
2670
- var A = L.userPermissions[s].split(".");
2671
- if (D == A[0] || D == "everything" || L.userPermissions[s] == "everything.view" || L.userPermissions[s] == "everything.edit")
2668
+ for (var f = 0; f < L.userPermissions.length; f++) {
2669
+ var A = L.userPermissions[f].split(".");
2670
+ if (D == A[0] || D == "everything" || L.userPermissions[f] == "everything.view" || L.userPermissions[f] == "everything.edit")
2672
2671
  return !0;
2673
2672
  }
2674
2673
  return !1;
2675
2674
  }
2676
- function N(D, L, s) {
2675
+ function N(D, L, f) {
2677
2676
  let A = !0;
2678
- return K(f).isGlobalAdmin ? !0 : (L != null && L.length > 0 && L.forEach((Q) => {
2679
- s == "edit" ? x(Q) || (A = !1) : _(Q) || (A = !1);
2677
+ return K(s).isGlobalAdmin ? !0 : (L != null && L.length > 0 && L.forEach((Q) => {
2678
+ f == "edit" ? x(Q) || (A = !1) : _(Q) || (A = !1);
2680
2679
  }), D != null && D.length > 0 && (D.some((Q) => u(Q)) || (A = !1)), A);
2681
2680
  }
2682
2681
  function $(D, L = !1) {
2683
- var s = e.getAuthItem != null ? e.getAuthItem(D) : null;
2682
+ var f = e.getAuthItem != null ? e.getAuthItem(D) : null;
2684
2683
  let A = !1;
2685
- if (s == null)
2684
+ if (f == null)
2686
2685
  return !1;
2687
- let J = s.subscriptions ?? [], Q = s.permissions ?? [], ee = N(J, Q, "view");
2688
- return ee || !L || !_e(s.children) ? ee : ((s == null ? void 0 : s.children) != null && s.children.forEach((ce) => {
2686
+ let J = f.subscriptions ?? [], Q = f.permissions ?? [], ee = N(J, Q, "view");
2687
+ return ee || !L || !_e(f.children) ? ee : ((f == null ? void 0 : f.children) != null && f.children.forEach((ce) => {
2689
2688
  $(ce, !0) && (A = !0);
2690
2689
  }), A);
2691
2690
  }
2692
2691
  function d(D) {
2693
- return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (L, s) => {
2694
- const A = Be(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${s}`);
2692
+ return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (L, f) => {
2693
+ const A = Be(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2695
2694
  return L ? `${A}&redirect_path=${L}` : A;
2696
2695
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(D, l.value) ?? "" : "";
2697
2696
  }
2698
2697
  function h(D) {
2699
- var s;
2700
- return D == null ? 0 : ((s = (e.subscriptionOptions ?? []).find((A) => A.code == D)) == null ? void 0 : s.value) ?? 0;
2698
+ var f;
2699
+ return D == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((A) => A.code == D)) == null ? void 0 : f.value) ?? 0;
2701
2700
  }
2702
2701
  function u(D) {
2703
- const L = K(f);
2702
+ const L = K(s);
2704
2703
  if (L.subscriptionCode == null)
2705
2704
  return !1;
2706
2705
  if (L.subscriptionCode == D)
2707
2706
  return !0;
2708
- const s = h(D), A = h(L.subscriptionCode);
2709
- return s <= A;
2707
+ const f = h(D), A = h(L.subscriptionCode);
2708
+ return f <= A;
2710
2709
  }
2711
2710
  function r(D) {
2712
- const s = D.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), A = decodeURIComponent(
2713
- atob(s).split("").map(function(J) {
2711
+ const f = D.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), A = decodeURIComponent(
2712
+ atob(f).split("").map(function(J) {
2714
2713
  return "%" + ("00" + J.charCodeAt(0).toString(16)).slice(-2);
2715
2714
  }).join("")
2716
2715
  );
2717
2716
  return JSON.parse(A);
2718
2717
  }
2719
2718
  function y(D, L) {
2720
- f.value = void 0, M(), D != null && L != null && L.currentRoute.value.path != D && L.push({ path: D });
2719
+ s.value = void 0, M(), D != null && L != null && L.currentRoute.value.path != D && L.push({ path: D });
2721
2720
  }
2722
2721
  function I(D) {
2723
- var s;
2724
- K(f).isLoggedIn || ((s = e.demo) == null || s.endDemo(), T() && (y(), window.location.href = d(D)));
2722
+ var f;
2723
+ K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(D)));
2725
2724
  }
2726
2725
  async function i(D, L) {
2727
2726
  return e.getToken ?? (e.getToken = async () => {
2728
- let s = D, A = L, J = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
2729
- if (s == null || A == null)
2727
+ let f = D, A = L, J = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
2728
+ if (f == null || A == null)
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
2732
  let ee = "";
2734
- e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), ee = e.getTokenUrl(s, `${window.location.origin}/authentication`, J, Q);
2733
+ e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), ee = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2735
2734
  const ce = {};
2736
- ce.grant_type = J, ce.code = s, ce.redirect_uri = `${window.location.origin}/authentication`, ce.client_id = Q;
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
2737
  additionalUrl: ee,
2739
2738
  data: ce
@@ -2744,28 +2743,28 @@ function Nn(e) {
2744
2743
  function E(D) {
2745
2744
  if (D != null && (e.demo == null || !e.demo.isDemoing.value)) {
2746
2745
  const L = r(D);
2747
- w(L, D), e.processTokenPayload != null && e.processTokenPayload(f, L);
2746
+ w(L, D), e.processTokenPayload != null && e.processTokenPayload(s, L);
2748
2747
  }
2749
2748
  }
2750
2749
  function w(D, L) {
2751
2750
  var A;
2752
- const s = f.value;
2753
- s.expiresOn = D.ExpiresOn, s.isGlobalAdmin = D.IsGlobalAdmin == "True", s.isLoggedIn = !0, s.permissions = D.Permissions, s.subscriptionCode = D.Subscription, s.timeZone ?? (s.timeZone = e.defaultTimeZone ?? hr), s.token = L, s.userID = D.UserLoginID, s.userPermissions = ((A = D.Permissions) == null ? void 0 : A.split(",")) ?? [];
2751
+ const f = s.value;
2752
+ f.expiresOn = D.ExpiresOn, f.isGlobalAdmin = D.IsGlobalAdmin == "True", f.isLoggedIn = !0, f.permissions = D.Permissions, f.subscriptionCode = D.Subscription, f.timeZone ?? (f.timeZone = e.defaultTimeZone ?? hr), f.token = L, f.userID = D.UserLoginID, f.userPermissions = ((A = D.Permissions) == null ? void 0 : A.split(",")) ?? [];
2754
2753
  }
2755
2754
  function M() {
2756
2755
  var D;
2757
- f.value ?? (f.value = {}), (D = f.value).timeZone ?? (D.timeZone = e.defaultTimeZone ?? hr);
2756
+ s.value ?? (s.value = {}), (D = s.value).timeZone ?? (D.timeZone = e.defaultTimeZone ?? hr);
2758
2757
  }
2759
2758
  function b() {
2760
- const D = K(f);
2759
+ const D = K(s);
2761
2760
  return D.isLoggedIn && T() && (y(), window.location.href = d()), D.isLoggedIn;
2762
2761
  }
2763
2762
  function T() {
2764
- const D = K(f);
2763
+ const D = K(s);
2765
2764
  if (D == null || D.expiresOn == null)
2766
2765
  return !0;
2767
- const L = he.fromFormat(D.expiresOn, t), s = he.utc();
2768
- return L <= s;
2766
+ const L = he.fromFormat(D.expiresOn, t), f = he.utc();
2767
+ return L <= f;
2769
2768
  }
2770
2769
  return M(), Ir = {
2771
2770
  authState: l,
@@ -2773,32 +2772,32 @@ function Nn(e) {
2773
2772
  canEditPermit: x,
2774
2773
  canView: P,
2775
2774
  canViewPermit: _,
2776
- credentials: f,
2775
+ credentials: s,
2777
2776
  doShow: N,
2778
2777
  doShowByNav: $,
2779
2778
  getAuthorizeUrl: d,
2780
2779
  getToken: i,
2781
- isLoggedIn: te(() => f.value.isLoggedIn === !0),
2780
+ isLoggedIn: te(() => s.value.isLoggedIn === !0),
2782
2781
  login: I,
2783
2782
  logout: y,
2784
2783
  resetAuthState: S,
2785
2784
  setAuth: E,
2786
- timeZone: te(() => f.value.timeZone ?? e.defaultTimeZone ?? hr),
2785
+ timeZone: te(() => s.value.timeZone ?? e.defaultTimeZone ?? hr),
2787
2786
  tryLogin: b
2788
2787
  }, Ir;
2789
2788
  }
2790
- function Mn(e, t, l = {}) {
2789
+ function xn(e, t, l = {}) {
2791
2790
  const {
2792
2791
  preventDefault: S = !1,
2793
- stopPropagation: f = !1,
2792
+ stopPropagation: s = !1,
2794
2793
  axis: g = "both"
2795
2794
  } = l, x = { capture: l.capture ?? !0 };
2796
2795
  let P = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2797
2796
  function u(M) {
2798
- K(S) && M.preventDefault(), K(f) && M.stopPropagation();
2797
+ K(S) && M.preventDefault(), K(s) && M.stopPropagation();
2799
2798
  }
2800
2799
  function r(M) {
2801
- var s;
2800
+ var f;
2802
2801
  const b = K(e);
2803
2802
  if (!b)
2804
2803
  return;
@@ -2809,15 +2808,15 @@ function Mn(e, t, l = {}) {
2809
2808
  }, P = {
2810
2809
  x: T.offsetLeft,
2811
2810
  y: T.offsetTop
2812
- }, ((s = l.onStart) == null ? void 0 : s.call(l, N, M)) !== !1 && (d.push(me("mousemove", y)), d.push(me("touchmove", y)), d.push(me("mouseup", I)), d.push(me("touchend", I)), u(M));
2811
+ }, ((f = l.onStart) == null ? void 0 : f.call(l, N, M)) !== !1 && (d.push(me("mousemove", y)), d.push(me("touchmove", y)), d.push(me("mouseup", I)), d.push(me("touchend", I)), u(M));
2813
2812
  }
2814
2813
  function y(M) {
2815
2814
  var A;
2816
2815
  if (!N || !K(e))
2817
2816
  return;
2818
2817
  const D = M.type === "touchmove" && M.touches.length > 0 ? M.touches[0] : M;
2819
- let L = D.clientX - N.x, s = D.clientY - N.y;
2820
- (g === "x" || g === "both") && (P.x = _.x + L), (g === "y" || g === "both") && (P.y = _.y + s), (A = l.onMove) == null || A.call(l, P, M), u(M), i(P);
2818
+ let L = D.clientX - N.x, f = D.clientY - N.y;
2819
+ (g === "x" || g === "both") && (P.x = _.x + L), (g === "y" || g === "both") && (P.y = _.y + f), (A = l.onMove) == null || A.call(l, P, M), u(M), i(P);
2821
2820
  }
2822
2821
  function I(M) {
2823
2822
  var b;
@@ -2858,9 +2857,9 @@ function Mn(e, t, l = {}) {
2858
2857
  turnDraggableOn: E
2859
2858
  };
2860
2859
  }
2861
- const Ln = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2862
- function Rn(e, t = {}) {
2863
- let l, S = t.handleWidth ?? 12, f = 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 = [];
2860
+ const Tn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2861
+ function _n(e, t = {}) {
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 = [];
2866
2865
  const I = z(!1), i = z({ x: 0, y: 0 });
@@ -2869,14 +2868,14 @@ function Rn(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 = f + 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 ? f : 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,22 +2884,22 @@ function Rn(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;
2897
- document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(me("mousemove", s)), y.push(me("mouseup", A)), y.push(me("touchmove", s)), y.push(me("touchend", A)), M(W);
2896
+ document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(me("mousemove", f)), y.push(me("mouseup", A)), y.push(me("touchmove", f)), y.push(me("touchend", A)), M(W);
2898
2897
  }
2899
- function s(W) {
2898
+ function f(W) {
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 Rn(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), ee(w);
2923
2922
  }
2924
2923
  function A() {
2925
2924
  document.documentElement.style.cursor = "", d = null, y.forEach((W) => {
@@ -2933,37 +2932,37 @@ function Rn(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 = Ot(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, ee({
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
+ }, ee(E), H.offsetHeight;
2967
2966
  const ae = E;
2968
2967
  W == "freestyle" ? w = {
2969
2968
  height: ae.height,
@@ -2977,8 +2976,8 @@ function Rn(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
+ }), ee(w), me(H, "transitionend", () => {
2980
+ H.style.transition = "", u.value = !1;
2982
2981
  }, { once: !0 });
2983
2982
  }
2984
2983
  }
@@ -2986,21 +2985,21 @@ function Rn(e, t = {}) {
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 ?? Ln), 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,11 +3008,11 @@ function Rn(e, t = {}) {
3009
3008
  turnResizingOff: we
3010
3009
  };
3011
3010
  }
3012
- function Un(e) {
3013
- const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), f = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), x = z({}), { turnResizingOff: P, turnResizingOn: _ } = Rn(t), { turnDraggableOff: N, turnDraggableOn: $ } = Mn(t, l);
3014
- pt(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
- S.value = r < f;
3015
+ S.value = r < s;
3017
3016
  });
3018
3017
  function d(h) {
3019
3018
  N(), h == "page" ? P(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (P(), _(void 0, h), $()) : h == "inline" && P();
@@ -3042,10 +3041,10 @@ const mr = {
3042
3041
  warning: "#FB8C00"
3043
3042
  };
3044
3043
  let Dr;
3045
- function _a() {
3044
+ function ga() {
3046
3045
  return Dr;
3047
3046
  }
3048
- function Ca(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 Ca(e) {
3060
3059
  }
3061
3060
  };
3062
3061
  }
3063
- function Bn(e) {
3062
+ function Pn(e) {
3064
3063
  const t = z({});
3065
3064
  let l = e.vuetifyInstance;
3066
3065
  function S() {
@@ -3073,7 +3072,7 @@ function Bn(e) {
3073
3072
  drawerStick: e.defaultDrawerStick ?? !1
3074
3073
  };
3075
3074
  }
3076
- function f() {
3075
+ function s() {
3077
3076
  localStorage.setItem("cosmetics", JSON.stringify(t.value));
3078
3077
  }
3079
3078
  function g(d) {
@@ -3115,7 +3114,7 @@ function Bn(e) {
3115
3114
  }
3116
3115
  }
3117
3116
  return S(), Te(t, () => {
3118
- f();
3117
+ s();
3119
3118
  }), Dr = {
3120
3119
  state: t,
3121
3120
  resetCosmetics: g,
@@ -3126,15 +3125,15 @@ function Bn(e) {
3126
3125
  undoTemporaryColor: $
3127
3126
  }, Dr;
3128
3127
  }
3129
- const Pa = {
3128
+ const wa = {
3130
3129
  canExportCSV: !1
3131
3130
  };
3132
- function $n() {
3131
+ function Nn() {
3133
3132
  function e(t) {
3134
3133
  const {
3135
3134
  items: l,
3136
3135
  headers: S,
3137
- fileName: f = "data.csv",
3136
+ fileName: s = "data.csv",
3138
3137
  format: g = "file"
3139
3138
  } = t;
3140
3139
  if (!_e(l))
@@ -3144,7 +3143,7 @@ function $n() {
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: fn(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];
@@ -3170,10 +3169,10 @@ function $n() {
3170
3169
  var h = d.join(`
3171
3170
  `), u = new Blob([h], { type: "text/plain;charset=utf-8" });
3172
3171
  if (window.navigator.msSaveOrOpenBlob)
3173
- window.navigator.msSaveOrOpenBlob(u, f);
3172
+ window.navigator.msSaveOrOpenBlob(u, s);
3174
3173
  else {
3175
3174
  var r = document.createElement("a"), y = URL.createObjectURL(u);
3176
- r.href = y, r.download = f, document.body.appendChild(r), r.click(), setTimeout(function() {
3175
+ r.href = y, r.download = s, document.body.appendChild(r), r.click(), setTimeout(function() {
3177
3176
  document.body.removeChild(r), window.URL.revokeObjectURL(y);
3178
3177
  }, 0);
3179
3178
  }
@@ -3183,18 +3182,18 @@ function $n() {
3183
3182
  };
3184
3183
  }
3185
3184
  let xr;
3186
- function Na() {
3185
+ function ba() {
3187
3186
  return xr;
3188
3187
  }
3189
- function Fn(e) {
3188
+ function Mn(e) {
3190
3189
  const t = e.getUTC ?? he.utc;
3191
3190
  function l() {
3192
- return f().startOf("day").toUTC().toString() ?? "";
3191
+ return s().startOf("day").toUTC().toString() ?? "";
3193
3192
  }
3194
3193
  function S() {
3195
- return f().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3194
+ return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3196
3195
  }
3197
- function f(_, N) {
3196
+ function s(_, N) {
3198
3197
  return _ == null ? t().setZone(e.getTimeZone()) : N ? he.fromFormat(_, N, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3199
3198
  }
3200
3199
  function g(_, N, $) {
@@ -3221,22 +3220,22 @@ function Fn(e) {
3221
3220
  return xr = {
3222
3221
  getToday: l,
3223
3222
  getTomorrow: S,
3224
- tzDate: f,
3223
+ tzDate: s,
3225
3224
  tzString: g,
3226
3225
  utcDate: x,
3227
3226
  utcString: P
3228
3227
  }, xr;
3229
3228
  }
3230
3229
  let Tr;
3231
- function Ma() {
3230
+ function Sa() {
3232
3231
  return Tr;
3233
3232
  }
3234
- function kn(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;
3238
3237
  }
3239
- function f() {
3238
+ function s() {
3240
3239
  t.value = !1;
3241
3240
  }
3242
3241
  function g(d) {
@@ -3328,7 +3327,7 @@ function kn(e) {
3328
3327
  });
3329
3328
  }
3330
3329
  return Tr = {
3331
- endDemo: f,
3330
+ endDemo: s,
3332
3331
  isDemoing: t,
3333
3332
  startDemo: S,
3334
3333
  data: l,
@@ -3339,17 +3338,17 @@ function kn(e) {
3339
3338
  patch: $
3340
3339
  }, Tr;
3341
3340
  }
3342
- var Gn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3343
- function La(e) {
3341
+ var Rn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3342
+ function Aa(e) {
3344
3343
  function t(l) {
3345
- var f;
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 = Gn.VITE_NODE_ENV;
3349
+ const g = Rn.VITE_NODE_ENV;
3351
3350
  let x = "";
3352
- g == "development" ? x = "BWeb Dev" : g == "staging" ? x = "BlitzIt Sandpit" : x = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((f = e == null ? void 0 : e.demo) == null ? void 0 : f.isDemoing.value) == !0 && (x = `Training: ${x}`), document.title = x;
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
  }
3354
3353
  }
3355
3354
  return {
@@ -3357,104 +3356,104 @@ function La(e) {
3357
3356
  };
3358
3357
  }
3359
3358
  let _r;
3360
- function Ra() {
3359
+ function Ea() {
3361
3360
  return _r;
3362
3361
  }
3363
- function Wn(e) {
3364
- function t(s, A, J) {
3365
- return s ? on(s) ? J ?? "" : e.dates.tzString(s, A) : J ?? s ?? "";
3362
+ function Un(e) {
3363
+ function t(f, A, J) {
3364
+ return f ? an(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
3366
3365
  }
3367
- function l(s) {
3368
- if (!s)
3366
+ function l(f) {
3367
+ if (!f)
3369
3368
  return "";
3370
- if (typeof s != "object")
3371
- return s;
3369
+ if (typeof f != "object")
3370
+ return f;
3372
3371
  var A = "";
3373
- return s.companyAccount != null && (A = s.companyAccount.companyName + " | "), s.addressLineOne != null && (A = A + s.addressLineOne + " "), s.streetNumber != null && (A = A + s.streetNumber + " "), s.streetName != null && (A = A + s.streetName + ", "), s.suburb != null && (A = A + s.suburb + " "), s.state != null && (A = A + s.state + " "), s.postcode != null && (A = A + s.postcode), A;
3372
+ return f.companyAccount != null && (A = f.companyAccount.companyName + " | "), f.addressLineOne != null && (A = A + f.addressLineOne + " "), f.streetNumber != null && (A = A + f.streetNumber + " "), f.streetName != null && (A = A + f.streetName + ", "), f.suburb != null && (A = A + f.suburb + " "), f.state != null && (A = A + f.state + " "), f.postcode != null && (A = A + f.postcode), A;
3374
3373
  }
3375
- function S(s) {
3376
- if (typeof s != "number")
3377
- return s;
3374
+ function S(f) {
3375
+ if (typeof f != "number")
3376
+ return f;
3378
3377
  var A = new Intl.NumberFormat("en-US", {
3379
3378
  style: "currency",
3380
3379
  currency: "AUD",
3381
3380
  minimumFractionDigits: 2
3382
3381
  });
3383
- return A.format(s);
3382
+ return A.format(f);
3384
3383
  }
3385
- function f(s, A) {
3386
- return t(s, "ccc | d LLL", A);
3384
+ function s(f, A) {
3385
+ return t(f, "ccc | d LLL", A);
3387
3386
  }
3388
- function g(s, A) {
3389
- return t(s, "d LLL", A);
3387
+ function g(f, A) {
3388
+ return t(f, "d LLL", A);
3390
3389
  }
3391
- function x(s, A) {
3392
- return t(s, "ccc", A);
3390
+ function x(f, A) {
3391
+ return t(f, "ccc", A);
3393
3392
  }
3394
- function P(s, A) {
3395
- return t(s, "ccc dd LLL yyyy", A);
3393
+ function P(f, A) {
3394
+ return t(f, "ccc dd LLL yyyy", A);
3396
3395
  }
3397
- function _(s, A) {
3398
- return t(s, "ccc dd LLL @ hh:mm a", A);
3396
+ function _(f, A) {
3397
+ return t(f, "ccc dd LLL @ hh:mm a", A);
3399
3398
  }
3400
- function N(s) {
3401
- return new Intl.NumberFormat().format(s);
3399
+ function N(f) {
3400
+ return new Intl.NumberFormat().format(f);
3402
3401
  }
3403
- function $(s) {
3404
- return s == 0 ? "" : new Intl.NumberFormat().format(s);
3402
+ function $(f) {
3403
+ return f == 0 ? "" : new Intl.NumberFormat().format(f);
3405
3404
  }
3406
- function d(s) {
3407
- if (s == 0)
3405
+ function d(f) {
3406
+ if (f == 0)
3408
3407
  return "";
3409
- var A = new Intl.NumberFormat().format(s);
3410
- return s > 0 ? "+" + A : A;
3408
+ var A = new Intl.NumberFormat().format(f);
3409
+ return f > 0 ? "+" + A : A;
3411
3410
  }
3412
- function h(s, A) {
3413
- return e.dates.utcString(s, A);
3411
+ function h(f, A) {
3412
+ return e.dates.utcString(f, A);
3414
3413
  }
3415
- function u(s) {
3416
- return rt(s, !1);
3414
+ function u(f) {
3415
+ return rt(f, !1);
3417
3416
  }
3418
- function r(s) {
3419
- if (!s)
3417
+ function r(f) {
3418
+ if (!f)
3420
3419
  return "";
3421
- if (typeof s != "object")
3422
- return s;
3420
+ if (typeof f != "object")
3421
+ return f;
3423
3422
  var A = "";
3424
- return s.addressLineOne != null && (A = s.addressLineOne + " "), s.streetNumber != null && (A = A + s.streetNumber + " "), s.streetName != null && (A = A + s.streetName + " "), s.suburb != null && (A = A + s.suburb + " "), s.state != null && (A = A + s.state + " "), s.postcode != null && (A = A + s.postcode), A = A.replaceAll(",", " "), A;
3423
+ return f.addressLineOne != null && (A = f.addressLineOne + " "), f.streetNumber != null && (A = A + f.streetNumber + " "), f.streetName != null && (A = A + f.streetName + " "), f.suburb != null && (A = A + f.suburb + " "), f.state != null && (A = A + f.state + " "), f.postcode != null && (A = A + f.postcode), A = A.replaceAll(",", " "), A;
3425
3424
  }
3426
- function y(s, A) {
3427
- return t(s, "ddd DD MMM YYYY", A);
3425
+ function y(f, A) {
3426
+ return t(f, "ddd DD MMM YYYY", A);
3428
3427
  }
3429
- function I(s, A) {
3430
- return t(s, "ccc dd LLL yyyy hh:mm a", A);
3428
+ function I(f, A) {
3429
+ return t(f, "ccc dd LLL yyyy hh:mm a", A);
3431
3430
  }
3432
- function i(s) {
3431
+ function i(f) {
3433
3432
  var A = new Intl.NumberFormat("en-US", {
3434
3433
  style: "percent",
3435
3434
  minimumFractionDigits: 2
3436
3435
  });
3437
- return A.format(s);
3436
+ return A.format(f);
3438
3437
  }
3439
- function E(s) {
3440
- return s.replaceAll(",", " ");
3438
+ function E(f) {
3439
+ return f.replaceAll(",", " ");
3441
3440
  }
3442
- function w(s, A) {
3443
- return t(s, "dd LLL yyyy", A);
3441
+ function w(f, A) {
3442
+ return t(f, "dd LLL yyyy", A);
3444
3443
  }
3445
- function M(s, A) {
3446
- return t(s, "dd LLL yyyy hh:mm a", A);
3444
+ function M(f, A) {
3445
+ return t(f, "dd LLL yyyy hh:mm a", A);
3447
3446
  }
3448
- function b(s, A) {
3449
- return t(s, "hh:mm a", A);
3447
+ function b(f, A) {
3448
+ return t(f, "hh:mm a", A);
3450
3449
  }
3451
- function T(s) {
3452
- return s == null ? "" : typeof s == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: s }).toFormat("T") : typeof s == "string" ? e.dates.tzString(s, "t") : "unknown";
3450
+ function T(f) {
3451
+ return f == null ? "" : typeof f == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: f }).toFormat("T") : typeof f == "string" ? e.dates.tzString(f, "t") : "unknown";
3453
3452
  }
3454
3453
  const D = {
3455
3454
  toCompanyNameAndLocationLine: l,
3456
3455
  toCurrency: S,
3457
- toDayDate: f,
3456
+ toDayDate: s,
3458
3457
  toDayMonth: g,
3459
3458
  toDayOfWeek: x,
3460
3459
  toDayShortDate: P,
@@ -3474,9 +3473,9 @@ function Wn(e) {
3474
3473
  toTime: b,
3475
3474
  toTimeOfDay: T
3476
3475
  };
3477
- function L(s) {
3478
- if (s != null) {
3479
- let A = s;
3476
+ function L(f) {
3477
+ if (f != null) {
3478
+ let A = f;
3480
3479
  if (A != null && D[A] != null)
3481
3480
  return D[A];
3482
3481
  }
@@ -3487,11 +3486,11 @@ function Wn(e) {
3487
3486
  ...D
3488
3487
  }, _r;
3489
3488
  }
3490
- function qn(e, t) {
3489
+ function Bn(e, t) {
3491
3490
  const l = z(!1), S = Yt(e);
3492
- let f = g(K(e));
3491
+ let s = g(K(e));
3493
3492
  (t == null ? void 0 : t.useTracker) !== !1 && Te(S, (P) => {
3494
- l.value = g(P) != f;
3493
+ l.value = g(P) != s;
3495
3494
  }, { deep: !0 });
3496
3495
  function g(P) {
3497
3496
  const _ = Lr(P);
@@ -3502,7 +3501,7 @@ function qn(e, t) {
3502
3501
  })), JSON.stringify(_);
3503
3502
  }
3504
3503
  function x() {
3505
- f = g(K(S)), l.value = !1;
3504
+ s = g(K(S)), l.value = !1;
3506
3505
  }
3507
3506
  return {
3508
3507
  asyncItem: S,
@@ -3510,12 +3509,12 @@ function qn(e, t) {
3510
3509
  restartTracker: x
3511
3510
  };
3512
3511
  }
3513
- function Ua(e, t) {
3512
+ function Ia(e, t) {
3514
3513
  var ae;
3515
3514
  const {
3516
3515
  // useBladeSrc = true,
3517
3516
  useRouteSrc: l = !0
3518
- } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), f = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", x = Mr(), P = et(), _ = K(e.proxyQueryKey), N = te(() => {
3517
+ } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", x = Mr(), P = et(), _ = K(e.proxyQueryKey), N = te(() => {
3519
3518
  var G;
3520
3519
  return K(e.proxyID) ?? (_ != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[_] : void 0);
3521
3520
  }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: i } = ut({
@@ -3524,7 +3523,7 @@ function Ua(e, t) {
3524
3523
  proxyID: N.value,
3525
3524
  store: Le({
3526
3525
  storeMode: S,
3527
- storageMode: f,
3526
+ storageMode: s,
3528
3527
  nav: g
3529
3528
  })
3530
3529
  }), E = te(() => e.errorMsg ?? d.value), w = te(() => e.loadingMsg ?? h.value), M = te(() => w.value != null), b = z(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), L = te(() => {
@@ -3532,7 +3531,7 @@ function Ua(e, t) {
3532
3531
  return !1;
3533
3532
  const G = K($);
3534
3533
  return e.onCanDelete != null ? e.onCanDelete(G) : (G == null ? void 0 : G.isInactive) !== !0;
3535
- }), s = te(() => {
3534
+ }), f = te(() => {
3536
3535
  if (T.value == "new")
3537
3536
  return !1;
3538
3537
  const G = K($);
@@ -3545,7 +3544,7 @@ function Ua(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 } = qn($, {
3547
+ }), { isChanged: Q, restartTracker: ee } = Bn($, {
3549
3548
  useTracker: e.trackChanges,
3550
3549
  propsToIgnore: e.trackIgnoreProps,
3551
3550
  propsToTrack: e.trackProps
@@ -3633,7 +3632,7 @@ function Ua(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
  }
@@ -3651,7 +3650,7 @@ function Ua(e, t) {
3651
3650
  isChanged: Q,
3652
3651
  isDeletable: L,
3653
3652
  isEditing: te(() => T.value == "new" || T.value == "edit"),
3654
- isEditable: s,
3653
+ isEditable: f,
3655
3654
  isLoading: M,
3656
3655
  isNew: te(() => T.value == "new"),
3657
3656
  isRestorable: A,
@@ -3662,21 +3661,21 @@ function Ua(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 Vn(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 sn(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),
@@ -3686,7 +3685,7 @@ function Vn(e) {
3686
3685
  var u;
3687
3686
  return (u = P(h)) == null ? void 0 : u.archiveName;
3688
3687
  }
3689
- function f(h) {
3688
+ function s(h) {
3690
3689
  var u;
3691
3690
  return ((u = P(h)) == null ? void 0 : u.cacheExpiryHours) ?? t;
3692
3691
  }
@@ -3708,7 +3707,7 @@ function Vn(e) {
3708
3707
  const u = P(h);
3709
3708
  if (u == null)
3710
3709
  return;
3711
- let r = En(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 Vn(e) {
3717
3716
  return u.singleName;
3718
3717
  const r = u == null ? void 0 : u.displayName;
3719
3718
  if (r != null)
3720
- return Sn(r);
3719
+ return mn(r);
3721
3720
  }
3722
3721
  function $(h) {
3723
3722
  const u = P(h);
@@ -3727,18 +3726,18 @@ function Vn(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,
3739
3738
  navigationItems: l,
3740
3739
  findArchiveName: S,
3741
- findCacheHours: f,
3740
+ findCacheHours: s,
3742
3741
  findDisplay: g,
3743
3742
  findIcon: x,
3744
3743
  findItem: P,
@@ -3748,9 +3747,9 @@ function Vn(e) {
3748
3747
  updateNavigationProperties: d
3749
3748
  }, Cr;
3750
3749
  }
3751
- function Ba(e, t, l) {
3752
- var qe, Ve;
3753
- const S = $n(), f = it(), g = Mr(), x = et(), { bladeData: P } = Un({}), _ = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = f.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((Ve = f.findItem($)) == null ? void 0 : Ve.storageMode), u = K(e.customFilters) ?? [], r = z([]), y = te(() => en([
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 Ba(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
- const L = z(K(e.startShowingInactive) ?? !1), s = te(() => [
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
3804
  let ee;
3806
- const { actionErrorMsg: ce, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem: V, getAllItems: ae, restoreItem: G } = ut({
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,
@@ -3818,24 +3817,24 @@ function Ba(e, t, l) {
3818
3817
  const de = y.value[O], 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 O = U.find((de) => de.position == V.sublevel);
3830
+ O == null ? U.push({ position: V.sublevel ?? 0, values: [V] }) : O.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 O = U.find((de) => de.position == V.level);
3836
+ O == null ? U.push({ position: V.level ?? 0, values: [V] }) : O.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,7 +3852,7 @@ function Ba(e, t, l) {
3853
3852
  function ir(U) {
3854
3853
  const {
3855
3854
  additionalUrl: j,
3856
- onDeleteAsync: H
3855
+ onDeleteAsync: V
3857
3856
  } = { ...e }, O = K(U), de = O.id, ge = (De) => {
3858
3857
  if (De != null) {
3859
3858
  let Se = A.value.findIndex((oe) => oe.id == De);
@@ -3874,7 +3873,7 @@ function Ba(e, t, l) {
3874
3873
  data: O,
3875
3874
  nav: $,
3876
3875
  onCanDeleteAsync: e.onCanDeleteAsync,
3877
- onDeleteAsync: H,
3876
+ onDeleteAsync: V,
3878
3877
  onDeleteSuccessAsync: async () => (ge(de), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3879
3878
  proxyID: b.value,
3880
3879
  // ...(useBladeSrc ? bladeData.value : {}),
@@ -3901,8 +3900,8 @@ function Ba(e, t, l) {
3901
3900
  function Ne() {
3902
3901
  let U = K(A);
3903
3902
  if (U = e.onFilter ? e.onFilter(U) : U, T.value != null && T.value.length > 0) {
3904
- let j = [...s.value];
3905
- e.itemText && j.push(e.itemText), _e(j) && (U = U.filter((H) => wn(H, T.value, j)));
3903
+ let j = [...f.value];
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,28 +3929,28 @@ function Ba(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
3936
  onGetSuccessAsync: async (O, de) => {
3938
3937
  let ge = O == null ? void 0 : O.data;
3939
3938
  return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && ($e.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ge = await e.onGetSuccessAsync(ge, de)), ge;
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 === ee && e.canUnselect ? ee = null : ee = V, t != null && t("select", ee), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(V)))
3949
3948
  if (e.onSelectItem != null)
3950
3949
  e.onSelectItem(ee);
3951
3950
  else {
3952
3951
  let O = {
3953
3952
  bladeName: e.itemBladeName,
3954
- id: H.id,
3953
+ id: V.id,
3955
3954
  nav: $
3956
3955
  };
3957
3956
  j == "page" && g.push({
@@ -3963,7 +3962,7 @@ function Ba(e, t, l) {
3963
3962
  function je() {
3964
3963
  Ee.value ? (Ee.value = e.showSearch ?? !1, T.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3965
3964
  }
3966
- return We(), rn([T], () => {
3965
+ return We(), Qt([T], () => {
3967
3966
  Ne();
3968
3967
  }, { debounce: 500, maxWait: 500 }), Te([L, w], async () => {
3969
3968
  await Ie();
@@ -4009,7 +4008,7 @@ function Ba(e, t, l) {
4009
4008
  };
4010
4009
  }
4011
4010
  let Ge;
4012
- function Hn(e) {
4011
+ function Fn(e) {
4013
4012
  const t = z((e == null ? void 0 : e.default) ?? "Admin"), l = z((e == null ? void 0 : e.groups) ?? []);
4014
4013
  return Ge = {
4015
4014
  currentGroup: t,
@@ -4017,25 +4016,25 @@ function Hn(e) {
4017
4016
  useRoutes: e == null ? void 0 : e.useRoutes
4018
4017
  }, Ge;
4019
4018
  }
4020
- function $a() {
4021
- const e = Mr(), t = it(), l = Pn();
4019
+ function xa() {
4020
+ const e = Mr(), t = it(), l = In();
4022
4021
  let S = e.getRoutes();
4023
4022
  return {
4024
4023
  ...Ge,
4025
4024
  sidebarNavItems: te(() => {
4026
4025
  var g;
4027
4026
  S = S.filter((x) => x.meta != null && x.meta.menuGroup != null);
4028
- const f = [];
4027
+ const s = [];
4029
4028
  return S.forEach((x) => {
4030
4029
  var d;
4031
4030
  const P = Ge.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), _ = t.findItem(x.meta.nav), N = x.meta;
4032
- let $ = f.find((h) => h.displayName == N.menuGroup);
4031
+ let $ = s.find((h) => h.displayName == N.menuGroup);
4033
4032
  $ == null && ($ = {
4034
4033
  displayName: N.menuGroup,
4035
4034
  icon: (P == null ? void 0 : P.icon) ?? (N == null ? void 0 : N.icon) ?? (_ == null ? void 0 : _.icon),
4036
4035
  isGroup: !0,
4037
4036
  items: []
4038
- }, f.push($)), (d = $.items) == null || d.push({
4037
+ }, s.push($)), (d = $.items) == null || d.push({
4039
4038
  displayName: (N == null ? void 0 : N.displayName) ?? t.findDisplay(_ ?? void 0),
4040
4039
  icon: (N == null ? void 0 : N.icon) ?? t.findIcon(_ ?? void 0),
4041
4040
  permissions: (N == null ? void 0 : N.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
@@ -4044,18 +4043,18 @@ function $a() {
4044
4043
  subFilters: (N == null ? void 0 : N.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
4045
4044
  routeName: x.name
4046
4045
  });
4047
- }), f.forEach((x) => {
4046
+ }), s.forEach((x) => {
4048
4047
  var P;
4049
4048
  x.items = (P = x.items) == null ? void 0 : P.filter((_) => !_.requiresAuth || l.doShow(_.subscriptions, _.permissions, "view")).sort(Ue.firstBy((_) => _.displayName));
4050
- }), Ge.currentGroup.value != null ? ((g = f.find((x) => x.displayName == Ge.currentGroup.value)) == null ? void 0 : g.items) ?? [] : f.filter((x) => !x.requiresAuth || l.doShow(x.subscriptions, x.permissions, "view"));
4049
+ }), Ge.currentGroup.value != null ? ((g = s.find((x) => x.displayName == Ge.currentGroup.value)) == null ? void 0 : g.items) ?? [] : s.filter((x) => !x.requiresAuth || l.doShow(x.subscriptions, x.permissions, "view"));
4051
4050
  })
4052
4051
  };
4053
4052
  }
4054
4053
  let Pr;
4055
- function Fa(e) {
4054
+ function Ta(e) {
4056
4055
  return Pr.usePresets(e);
4057
4056
  }
4058
- function zn(e) {
4057
+ function kn(e) {
4059
4058
  function t(l) {
4060
4059
  if (!l)
4061
4060
  return {};
@@ -4069,10 +4068,10 @@ function zn(e) {
4069
4068
  let Zr, Jr, jr, Kr = !1;
4070
4069
  const wr = z(!1), br = z(!1), Qr = z(), pe = z();
4071
4070
  let Nr;
4072
- function ka() {
4071
+ function _a() {
4073
4072
  return Nr;
4074
4073
  }
4075
- function Yn() {
4074
+ function Gn() {
4076
4075
  function e(x) {
4077
4076
  pe.value = x.detail, br.value = !0;
4078
4077
  }
@@ -4086,14 +4085,14 @@ function Yn() {
4086
4085
  function S() {
4087
4086
  return !!window.matchMedia("(display-mode: standalone)").matches;
4088
4087
  }
4089
- function f(x) {
4088
+ function s(x) {
4090
4089
  x.preventDefault(), wr.value = !0, Qr.value = x;
4091
4090
  }
4092
4091
  function g() {
4093
4092
  br.value = !1, !(!pe.value || !pe.value.waiting) && pe.value.waiting.postMessage({ type: "SKIP_WAITING" });
4094
4093
  }
4095
- return tn(() => {
4096
- Zr == null && (Zr = document.addEventListener("swUpdated", e, { once: !0 })), Jr == null && (Jr = navigator.serviceWorker.addEventListener("controllerchange", t)), jr == null && (jr = window.addEventListener("beforeinstallprompt", f));
4094
+ return Xt(() => {
4095
+ 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
4096
  }), Nr = {
4098
4097
  canInstallApp: wr,
4099
4098
  canUpdateApp: br,
@@ -4102,139 +4101,122 @@ function Yn() {
4102
4101
  updateApp: g
4103
4102
  }, Nr;
4104
4103
  }
4105
- function Ga(e) {
4104
+ function Ca(e) {
4106
4105
  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) => bn(l) || "Email must be valid")), t;
4108
- }
4109
- const Zn = (e, t) => {
4110
- const l = e.__vccOpts || e;
4111
- for (const [S, f] of t)
4112
- l[S] = f;
4113
- return l;
4114
- }, Jn = {};
4115
- function jn(e, t) {
4116
- return Zt(), Jt("div", null, [
4117
- jt(nn, null, {
4118
- default: Kt(() => [
4119
- Qt("Test")
4120
- ]),
4121
- _: 1
4122
- })
4123
- ]);
4106
+ 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;
4124
4107
  }
4125
- const Kn = /* @__PURE__ */ Zn(Jn, [["render", jn]]);
4126
- function Wa(e) {
4108
+ function Pa(e) {
4127
4109
  return {
4128
4110
  install(t, l) {
4129
4111
  var _;
4130
- console.log(t), t.component("bt-test", Kn), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), In(e.urls), Bn(e);
4131
- const S = kn(), f = Vn(e);
4132
- zn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = f.findItem;
4133
- const g = Nn(e.auth);
4134
- Hn(e.menu);
4135
- const x = Cn({
4112
+ console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), yn(e.urls), Pn(e);
4113
+ const S = Ln(), s = $n(e);
4114
+ kn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
4115
+ const g = Dn(e.auth);
4116
+ Fn(e.menu);
4117
+ const x = En({
4136
4118
  auth: g,
4137
- findPath: f.findPath,
4119
+ findPath: s.findPath,
4138
4120
  useBearerToken: !0
4139
- }), P = Fn({
4121
+ }), P = Mn({
4140
4122
  getTimeZone: () => g.timeZone.value
4141
4123
  });
4142
- Wn({
4124
+ Un({
4143
4125
  dates: P
4144
- }), Yn(), Dn({
4126
+ }), Gn(), wn({
4145
4127
  api: x,
4146
4128
  auth: g,
4147
- navigation: f
4129
+ navigation: s
4148
4130
  });
4149
4131
  }
4150
4132
  };
4151
4133
  }
4152
4134
  export {
4153
- Aa as DataURIToBlob,
4154
- va as addWeekday,
4135
+ sa as DataURIToBlob,
4136
+ aa as addWeekday,
4155
4137
  Be as appendUrl,
4156
- sn as capitalizeWords,
4157
- fa as checkImage,
4158
- vn as containsSearch,
4159
- ma as containsWeekday,
4138
+ nn as capitalizeWords,
4139
+ On as checkImage,
4140
+ fn as containsSearch,
4141
+ na as containsWeekday,
4160
4142
  Lr as copyDeep,
4161
- mn as copyItemByAlphabet,
4162
- Cn as createApi,
4163
- Nn as createAuth,
4164
- Wa as createCore,
4165
- Bn as createCosmetics,
4166
- Fn as createDates,
4167
- kn as createDemo,
4168
- Wn as createFilters,
4169
- Hn as createMenu,
4170
- Vn as createNavigation,
4171
- Yn as createPWA,
4172
- zn as createPresets,
4173
- _n as createSessionStoreDefinition,
4174
- Dn as createStoreBuilder,
4175
- In as createUrl,
4143
+ cn as copyItemByAlphabet,
4144
+ En as createApi,
4145
+ Dn as createAuth,
4146
+ Pa as createCore,
4147
+ Pn as createCosmetics,
4148
+ Mn as createDates,
4149
+ Ln as createDemo,
4150
+ Un as createFilters,
4151
+ Fn as createMenu,
4152
+ $n as createNavigation,
4153
+ Gn as createPWA,
4154
+ kn as createPresets,
4155
+ An as createSessionStoreDefinition,
4156
+ wn as createStoreBuilder,
4157
+ yn as createUrl,
4176
4158
  qr as createWholeLastUpdateStoreDefinition,
4177
- hn as csvContains,
4178
- Pa as csvDefaults,
4159
+ un as csvContains,
4160
+ wa as csvDefaults,
4179
4161
  tt as deepSelect,
4180
- na as distinct,
4181
- aa as extensionExists,
4182
- gn as extractErrorDescription,
4183
- fn as fromCamelCase,
4184
- la as getAreaAround,
4185
- ua as getAreaToLeft,
4186
- ia as getAreaToRight,
4187
- ca as getGoogleMapsLocationLine,
4188
- sa as getImageData,
4162
+ Zn as distinct,
4163
+ Jn as extensionExists,
4164
+ sn as extractErrorDescription,
4165
+ tn as fromCamelCase,
4166
+ jn as getAreaAround,
4167
+ Kn as getAreaToLeft,
4168
+ Qn as getAreaToRight,
4169
+ Xn as getGoogleMapsLocationLine,
4170
+ pn as getImageData,
4189
4171
  rt as getLocationLine,
4190
- wa as getMinDate,
4191
- dn as getMinDateString,
4192
- yn as getRandomColor,
4193
- wn as hasSearch,
4194
- ya as isArrayOfLength,
4172
+ ia as getMinDate,
4173
+ ln as getMinDateString,
4174
+ on as getRandomColor,
4175
+ dn as hasSearch,
4176
+ ua as isArrayOfLength,
4195
4177
  _e as isLengthyArray,
4196
- on as isMinDate,
4178
+ an as isMinDate,
4197
4179
  Sr as nestedValue,
4198
- ga as removeWeekday,
4199
- ba as roundTo,
4200
- Sn as singularize,
4201
- oa as toCamelCase,
4202
- Ea as toCompareString,
4203
- Sa as toggleCSV,
4204
- Ia as twiddleThumbs,
4180
+ la as removeWeekday,
4181
+ ca as roundTo,
4182
+ mn as singularize,
4183
+ ea as toCamelCase,
4184
+ oa as toCompareString,
4185
+ fa as toggleCSV,
4186
+ da as twiddleThumbs,
4205
4187
  ut as useActions,
4206
- un as useActionsTracker,
4188
+ en as useActionsTracker,
4207
4189
  Er as useApi,
4208
- Pn as useAuth,
4190
+ In as useAuth,
4209
4191
  Wr as useAuthUrl,
4210
- Un as useBlade,
4211
- $n as useCSV,
4212
- _a as useCosmetics,
4213
- En as useDataUrl,
4214
- Na as useDates,
4192
+ Cn as useBlade,
4193
+ Nn as useCSV,
4194
+ ga as useCosmetics,
4195
+ gn as useDataUrl,
4196
+ ba as useDates,
4215
4197
  lt as useDbName,
4216
- Ma as useDemo,
4217
- La as useDocumentMeta,
4218
- Mn as useDraggable,
4219
- Ra as useFilters,
4220
- an as useId,
4221
- Ua as useItem,
4222
- Ba as useList,
4223
- xa as useLocalCache,
4224
- Ca as useLocalCosmetics,
4198
+ Sa as useDemo,
4199
+ Aa as useDocumentMeta,
4200
+ xn as useDraggable,
4201
+ Ea as useFilters,
4202
+ Ot as useId,
4203
+ Ia as useItem,
4204
+ Da as useList,
4205
+ ma as useLocalCache,
4206
+ ya as useLocalCosmetics,
4225
4207
  ve as useLocalDb,
4226
- $a as useMenu,
4208
+ xa as useMenu,
4227
4209
  it as useNavigation,
4228
- ka as usePWA,
4229
- Fa as usePresets,
4230
- Rn as useResizable,
4231
- Ga as useRules,
4232
- Ta as useStore,
4210
+ _a as usePWA,
4211
+ Ta as usePresets,
4212
+ _n as useResizable,
4213
+ Ca as useRules,
4214
+ va as useStore,
4233
4215
  Le as useStoreDefinition,
4234
- qn as useTracker,
4235
- Da as useUrls,
4236
- bn as validEmail,
4216
+ Bn as useTracker,
4217
+ ha as useUrls,
4218
+ hn as validEmail,
4237
4219
  Ye as weekdayPairs,
4238
- ha as weekdayShortName,
4239
- da as weekdayValue
4220
+ ta as weekdayShortName,
4221
+ ra as weekdayValue
4240
4222
  };