bt-core-app 1.4.89 → 1.4.90

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 +470 -474
  2. package/package.json +1 -1
@@ -1,24 +1,24 @@
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, defineComponent as Zt, openBlock as Jt, createElementBlock as jt, createVNode as Kt, unref as Qt, withCtx as Xt, createTextVNode as Ot } from "vue";
2
+ import { watchArray as Or, useStorage as pt, useEventListener as me, toValue as Ae, useParentElement as en, useResizeObserver as rn, useArrayUnique as tn, useArrayDifference as Gr, watchDebounced as nn, tryOnMounted as an } from "@vueuse/core";
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
+ import { VBtn as ln } from "vuetify/components";
7
+ function un(e) {
8
+ return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, cn);
9
9
  }
10
- function ln(e) {
10
+ function cn(e) {
11
11
  const t = Math.random() * 16 | 0;
12
12
  return (e == "x" ? t : t & 3 | 8).toString(16);
13
13
  }
14
- function un(e) {
15
- const t = z([]), l = Re(), S = Re(), f = Re(), g = te(() => l.value != null);
14
+ function fn(e) {
15
+ const t = z([]), l = Re(), S = Re(), s = Re(), g = te(() => l.value != null);
16
16
  function x(d) {
17
17
  t.value = t.value.filter((h) => h.id != d);
18
18
  }
19
19
  function P(d) {
20
20
  const h = {
21
- id: an(),
21
+ id: un(),
22
22
  msg: d ?? "Loading"
23
23
  };
24
24
  return t.value.push(h), h.id;
@@ -35,7 +35,7 @@ function un(e) {
35
35
  const r = P(u.loadingMsg);
36
36
  let y = null;
37
37
  try {
38
- return u.requireConfirmation || u.confirmationMsg, y = await d(), u.completionMsg != null && (f.value = u.completionMsg), y;
38
+ return u.requireConfirmation || u.confirmationMsg, y = await d(), u.completionMsg != null && (s.value = u.completionMsg), y;
39
39
  } catch (I) {
40
40
  if ((e == null ? void 0 : e.onError) != null)
41
41
  e.onError(I);
@@ -53,7 +53,7 @@ function un(e) {
53
53
  }, { deep: !0 }), {
54
54
  actionErrorMsg: S,
55
55
  actionLoadingMsg: l,
56
- actionCompleteMsg: f,
56
+ actionCompleteMsg: s,
57
57
  clearErrors: N,
58
58
  doAction: $,
59
59
  isLoading: g,
@@ -61,38 +61,38 @@ function un(e) {
61
61
  };
62
62
  }
63
63
  var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
64
- function cn(e) {
64
+ function sn(e) {
65
65
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
66
66
  }
67
67
  var Ue = function() {
68
- function e(f) {
69
- return f;
68
+ function e(s) {
69
+ return s;
70
70
  }
71
- function t(f) {
72
- return typeof f == "string" ? f.toLowerCase() : f;
71
+ function t(s) {
72
+ return typeof s == "string" ? s.toLowerCase() : s;
73
73
  }
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) {
74
+ function l(s, g) {
75
+ if (g = typeof g == "object" ? g : { direction: g }, typeof s != "function") {
76
+ var x = s;
77
+ s = function(d) {
78
78
  return d[x] ? d[x] : "";
79
79
  };
80
80
  }
81
- if (f.length === 1) {
82
- var P = f, _ = g.ignoreCase ? t : e, N = g.cmp || function(d, h) {
81
+ if (s.length === 1) {
82
+ var P = s, _ = g.ignoreCase ? t : e, N = g.cmp || function(d, h) {
83
83
  return d < h ? -1 : d > h ? 1 : 0;
84
84
  };
85
- f = function(d, h) {
85
+ s = function(d, h) {
86
86
  return N(_(P(d)), _(P(h)));
87
87
  };
88
88
  }
89
89
  const $ = { "-1": "", desc: "" };
90
90
  return g.direction in $ ? function(d, h) {
91
- return -f(d, h);
92
- } : f;
91
+ return -s(d, h);
92
+ } : s;
93
93
  }
94
- function S(f, g) {
95
- var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(f, g), _ = x ? function(N, $) {
94
+ function S(s, g) {
95
+ var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(s, g), _ = x ? function(N, $) {
96
96
  return x(N, $) || P(N, $);
97
97
  } : P;
98
98
  return _.thenBy = S, _;
@@ -111,18 +111,18 @@ function Be(e, t) {
111
111
  while (S.startsWith("/"));
112
112
  return `${l}/${S}`;
113
113
  }
114
- function na(e) {
114
+ function ta(e) {
115
115
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
116
116
  }
117
- function aa(e = "blitzItExtensionExists") {
117
+ function na(e = "blitzItExtensionExists") {
118
118
  try {
119
119
  var t = document.getElementById(e);
120
120
  return t != null;
121
121
  } catch (l) {
122
- return console.log(gn(l)), !1;
122
+ return console.log(wn(l)), !1;
123
123
  }
124
124
  }
125
- function la(e, t) {
125
+ function aa(e, t) {
126
126
  return [
127
127
  { lat: e.lat - t, lng: e.lng + t },
128
128
  { lat: e.lat - t, lng: e.lng - t },
@@ -130,7 +130,7 @@ function la(e, t) {
130
130
  { lat: e.lat + t, lng: e.lng + t }
131
131
  ];
132
132
  }
133
- function ua(e, t) {
133
+ function la(e, t) {
134
134
  return [
135
135
  { lat: e.lat - t * 2, lng: e.lng + t },
136
136
  { lat: e.lat - t * 2, lng: e.lng - t },
@@ -138,7 +138,7 @@ function ua(e, t) {
138
138
  { lat: e.lat, lng: e.lng + t }
139
139
  ];
140
140
  }
141
- function ia(e, t) {
141
+ function ua(e, t) {
142
142
  return [
143
143
  { lat: e.lat, lng: e.lng + t },
144
144
  { lat: e.lat, lng: e.lng - t },
@@ -146,7 +146,7 @@ function ia(e, t) {
146
146
  { lat: e.lat + t * 2, lng: e.lng + t }
147
147
  ];
148
148
  }
149
- function ca(e) {
149
+ function ia(e) {
150
150
  var t = rt(e, !0);
151
151
  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
152
  }
@@ -158,36 +158,36 @@ function rt(e, t = !1) {
158
158
  var l = "";
159
159
  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
160
  }
161
- function fa(e, t, l) {
161
+ function ca(e, t, l) {
162
162
  if (e) {
163
163
  var S = new Image();
164
164
  S.onload = t, S.onerror = l, S.src = e;
165
165
  }
166
166
  }
167
- async function sa(e, t = !0) {
167
+ async function fa(e, t = !0) {
168
168
  return new Promise((l, S) => {
169
169
  e == null && S("no url given");
170
- var f = new Image();
171
- f.setAttribute("crossOrigin", "anonymous"), f.onload = function() {
170
+ var s = new Image();
171
+ s.setAttribute("crossOrigin", "anonymous"), s.onload = function() {
172
172
  var g = document.createElement("canvas");
173
173
  g.width = this.width, g.height = this.height;
174
174
  var x = g.getContext("2d");
175
175
  x == null || x.drawImage(this, 0, 0), l(g.toDataURL("image/png"));
176
- }, f.onerror = function() {
176
+ }, s.onerror = function() {
177
177
  console.log("errr"), t ? S("image could not be loaded for some reason") : l(null);
178
- }, e != null && (f.src = e);
178
+ }, e != null && (s.src = e);
179
179
  });
180
180
  }
181
- function fn(e) {
181
+ function on(e) {
182
182
  return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
183
183
  }
184
- function oa(e) {
184
+ function sa(e) {
185
185
  if (e != null && typeof e == "object")
186
186
  for (var t in e)
187
187
  /^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
188
188
  return e;
189
189
  }
190
- function sn(e) {
190
+ function dn(e) {
191
191
  return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (l) => l.toUpperCase()));
192
192
  }
193
193
  const Ye = [
@@ -200,73 +200,73 @@ const Ye = [
200
200
  { value: 7, short: "sat", values: ["sat", "saturday"] },
201
201
  { value: 0, short: "always", values: ["always", null, void 0] }
202
202
  ];
203
- function da(e) {
203
+ function oa(e) {
204
204
  if (e == null)
205
205
  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);
206
+ 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
207
  return l.length == 0 ? 8 : Math.min(...l);
208
208
  }
209
- function ha(e) {
209
+ function da(e) {
210
210
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
211
- let l = Ye.find((S) => S.values.some((f) => f == t));
211
+ let l = Ye.find((S) => S.values.some((s) => s == t));
212
212
  return l != null ? l.short : "";
213
213
  }).filter((t) => t != null && t.length > 0).toString();
214
214
  }
215
- function ma(e, t) {
215
+ function ha(e, t) {
216
216
  if (e == null || t == null)
217
217
  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));
218
+ const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), s = Ye.find((g) => g.values.some((x) => x == S));
219
+ return s != null && l.some((g) => g == s.short || s.values.some((x) => x == g));
220
220
  }
221
- function va(e, t) {
221
+ function ma(e, t) {
222
222
  if (t == null)
223
223
  return e;
224
224
  let l = e ?? "";
225
225
  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();
226
+ 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
227
  return S.length > 0 ? S : void 0;
228
228
  }
229
- function ga(e, t) {
229
+ function va(e, t) {
230
230
  if (t == null || e == null)
231
231
  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;
232
+ let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ye.find((x) => x.values.some((P) => P == g && P != S))).filter((g) => g != null).sort(Ue.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
233
+ return s.length > 0 ? s : void 0;
234
234
  }
235
- function ya(e, t) {
235
+ function ga(e, t) {
236
236
  return e != null && Array.isArray(e) && e.length == t;
237
237
  }
238
238
  function _e(e, t = 0) {
239
239
  return e != null && Array.isArray(e) && e.length > t;
240
240
  }
241
- function on(e) {
241
+ function hn(e) {
242
242
  return e == "0001-01-01T00:00:00Z";
243
243
  }
244
- function wa() {
244
+ function ya() {
245
245
  return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
246
246
  }
247
- function dn() {
247
+ function mn() {
248
248
  return "0001-01-01T00:00:00Z";
249
249
  }
250
- function ba(e, t) {
250
+ function wa(e, t) {
251
251
  let l = "1", S = 0;
252
252
  if (S < t)
253
253
  do
254
254
  l = l + "0", S += 1;
255
255
  while (S < t);
256
- let f = Number.parseInt(l);
257
- return Math.round(e * f) / f;
256
+ let s = Number.parseInt(l);
257
+ return Math.round(e * s) / s;
258
258
  }
259
- function Sa(e, t) {
259
+ function ba(e, t) {
260
260
  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;
261
+ return t != null && (vn(l, t) ? l = l.split(",").filter((S) => S != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
262
262
  }
263
- function hn(e, t) {
263
+ function vn(e, t) {
264
264
  if (e == null || e.length == 0)
265
265
  return !1;
266
266
  if (!t)
267
267
  return !0;
268
268
  var l = e.split(","), S = t.split(",");
269
- return l.some((f) => S.some((g) => g == f));
269
+ return l.some((s) => S.some((g) => g == s));
270
270
  }
271
271
  function Lr(e) {
272
272
  if (!e)
@@ -276,32 +276,32 @@ function Lr(e) {
276
276
  t = e[S], l[S] = typeof t == "object" ? Lr(t) : t;
277
277
  return l;
278
278
  }
279
- function mn(e) {
279
+ function gn(e) {
280
280
  return e && Object.keys(e).sort().reduce(function(t, l) {
281
281
  let S = e[l];
282
- return t[l] = typeof S == "object" && S !== null ? mn(S) : S, t;
282
+ return t[l] = typeof S == "object" && S !== null ? gn(S) : S, t;
283
283
  }, Array.isArray(e) ? [] : {});
284
284
  }
285
- function vn(e, t) {
285
+ function yn(e, t) {
286
286
  return t == null ? !0 : e == null ? !1 : e.toLowerCase().includes(t.toLowerCase());
287
287
  }
288
288
  function tt(e, t = (l) => l) {
289
289
  if (e == null)
290
290
  return [];
291
291
  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);
292
+ return _e(l) ? [...l.reduce((S, s) => {
293
+ S.push(s);
294
+ const g = tt(s, t);
295
295
  return _e(g) && S.push(...g), S;
296
296
  }, [])] : [];
297
297
  }
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);
298
+ function Sa(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], s = new Uint8Array(l.length);
300
300
  for (let g = 0; g < l.length; g++)
301
- f[g] = l.charCodeAt(g);
302
- return new Blob([f], { type: S });
301
+ s[g] = l.charCodeAt(g);
302
+ return new Blob([s], { type: S });
303
303
  }
304
- function gn(e) {
304
+ function wn(e) {
305
305
  var t = "";
306
306
  if (e) {
307
307
  if (e.message && (t = e.message), e.response && e.response.data) {
@@ -314,27 +314,27 @@ function gn(e) {
314
314
  }
315
315
  return "hmmm no error was supplied";
316
316
  }
317
- function yn() {
317
+ function bn() {
318
318
  const e = "#" + Math.floor(Math.random() * 16777215).toString(16);
319
- return e.length !== 7 ? yn() : e;
319
+ return e.length !== 7 ? bn() : e;
320
320
  }
321
- function wn(e, t, l) {
321
+ function Sn(e, t, l) {
322
322
  if (t == null)
323
323
  return !0;
324
324
  if (e == null || l == null)
325
325
  return !1;
326
- for (let f = 0; f < l.length; f++) {
327
- const g = l[f];
326
+ for (let s = 0; s < l.length; s++) {
327
+ const g = l[s];
328
328
  var S = Sr(e, g);
329
- if (S != null && typeof S == "string" && vn(S, t))
329
+ if (S != null && typeof S == "string" && yn(S, t))
330
330
  return !0;
331
331
  }
332
332
  return !1;
333
333
  }
334
- function Ea(e) {
334
+ function Aa(e) {
335
335
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
336
336
  }
337
- function Ia(e = 2e3) {
337
+ function Ea(e = 2e3) {
338
338
  return new Promise((t) => {
339
339
  setTimeout(() => t(), e);
340
340
  });
@@ -344,15 +344,15 @@ function Sr(e, t) {
344
344
  return null;
345
345
  var l = t.split(".");
346
346
  let S = l.length;
347
- for (var f = e, g = 0; g < S; g++)
348
- if (f = f[l[g]], f == null)
347
+ for (var s = e, g = 0; g < S; g++)
348
+ if (s = s[l[g]], s == null)
349
349
  return null;
350
- return f;
350
+ return s;
351
351
  }
352
- function bn(e) {
352
+ function An(e) {
353
353
  return e ? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) : !1;
354
354
  }
355
- function Sn(e) {
355
+ function En(e) {
356
356
  return e.endsWith("ies") ? e.slice(0, e.length - 3) : e.endsWith("s") ? e.slice(0, e.length - 1) : e;
357
357
  }
358
358
  function Xe(e) {
@@ -369,9 +369,9 @@ var nt = { exports: {} };
369
369
  (function(l) {
370
370
  e.exports = l();
371
371
  })(function() {
372
- return function l(S, f, g) {
372
+ return function l(S, s, g) {
373
373
  function x(N, $) {
374
- if (!f[N]) {
374
+ if (!s[N]) {
375
375
  if (!S[N]) {
376
376
  var d = typeof Xe == "function" && Xe;
377
377
  if (!$ && d)
@@ -381,18 +381,18 @@ var nt = { exports: {} };
381
381
  var h = new Error("Cannot find module '" + N + "'");
382
382
  throw h.code = "MODULE_NOT_FOUND", h;
383
383
  }
384
- var u = f[N] = { exports: {} };
384
+ var u = s[N] = { exports: {} };
385
385
  S[N][0].call(u.exports, function(r) {
386
386
  var y = S[N][1][r];
387
387
  return x(y || r);
388
- }, u, u.exports, l, S, f, g);
388
+ }, u, u.exports, l, S, s, g);
389
389
  }
390
- return f[N].exports;
390
+ return s[N].exports;
391
391
  }
392
392
  for (var P = typeof Xe == "function" && Xe, _ = 0; _ < g.length; _++)
393
393
  x(g[_]);
394
394
  return x;
395
- }({ 1: [function(l, S, f) {
395
+ }({ 1: [function(l, S, s) {
396
396
  (function(g) {
397
397
  var x = g.MutationObserver || g.WebKitMutationObserver, P;
398
398
  if (x) {
@@ -431,7 +431,7 @@ var nt = { exports: {} };
431
431
  u.push(I) === 1 && !h && P();
432
432
  }
433
433
  }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
434
- }, {}], 2: [function(l, S, f) {
434
+ }, {}], 2: [function(l, S, s) {
435
435
  var g = l(1);
436
436
  function x() {
437
437
  }
@@ -472,8 +472,8 @@ var nt = { exports: {} };
472
472
  var L;
473
473
  try {
474
474
  L = T(D);
475
- } catch (s) {
476
- return P.reject(b, s);
475
+ } catch (f) {
476
+ return P.reject(b, f);
477
477
  }
478
478
  L === b ? P.reject(b, new TypeError("Cannot resolve promise with itself")) : P.resolve(b, L);
479
479
  });
@@ -487,8 +487,8 @@ var nt = { exports: {} };
487
487
  y(b, L);
488
488
  else {
489
489
  b.state = N, b.outcome = T;
490
- for (var s = -1, A = b.queue.length; ++s < A; )
491
- b.queue[s].callFulfilled(T);
490
+ for (var f = -1, A = b.queue.length; ++f < A; )
491
+ b.queue[f].callFulfilled(T);
492
492
  }
493
493
  return b;
494
494
  }, P.reject = function(b, T) {
@@ -509,11 +509,11 @@ var nt = { exports: {} };
509
509
  function L(Q) {
510
510
  D || (D = !0, P.reject(b, Q));
511
511
  }
512
- function s(Q) {
512
+ function f(Q) {
513
513
  D || (D = !0, P.resolve(b, Q));
514
514
  }
515
515
  function A() {
516
- T(s, L);
516
+ T(f, L);
517
517
  }
518
518
  var J = I(A);
519
519
  J.status === "error" && L(J.value);
@@ -544,7 +544,7 @@ var nt = { exports: {} };
544
544
  var D = b.length, L = !1;
545
545
  if (!D)
546
546
  return this.resolve([]);
547
- for (var s = new Array(D), A = 0, J = -1, Q = new this(x); ++J < D; )
547
+ for (var f = new Array(D), A = 0, J = -1, Q = new this(x); ++J < D; )
548
548
  ee(b[J], J);
549
549
  return Q;
550
550
  function ee(ce, we) {
@@ -552,7 +552,7 @@ var nt = { exports: {} };
552
552
  L || (L = !0, P.reject(Q, Y));
553
553
  });
554
554
  function W(Y) {
555
- s[we] = Y, ++A === D && !L && (L = !0, P.resolve(Q, s));
555
+ f[we] = Y, ++A === D && !L && (L = !0, P.resolve(Q, f));
556
556
  }
557
557
  }
558
558
  }
@@ -564,8 +564,8 @@ var nt = { exports: {} };
564
564
  var D = b.length, L = !1;
565
565
  if (!D)
566
566
  return this.resolve([]);
567
- for (var s = -1, A = new this(x); ++s < D; )
568
- J(b[s]);
567
+ for (var f = -1, A = new this(x); ++f < D; )
568
+ J(b[f]);
569
569
  return A;
570
570
  function J(Q) {
571
571
  T.resolve(Q).then(function(ee) {
@@ -575,11 +575,11 @@ var nt = { exports: {} };
575
575
  });
576
576
  }
577
577
  }
578
- }, { 1: 1 }], 3: [function(l, S, f) {
578
+ }, { 1: 1 }], 3: [function(l, S, s) {
579
579
  (function(g) {
580
580
  typeof g.Promise != "function" && (g.Promise = l(2));
581
581
  }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
582
- }, { 2: 2 }], 4: [function(l, S, f) {
582
+ }, { 2: 2 }], 4: [function(l, S, s) {
583
583
  var g = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
584
584
  return typeof n;
585
585
  } : function(n) {
@@ -675,7 +675,7 @@ var nt = { exports: {} };
675
675
  return i = c, i;
676
676
  });
677
677
  }
678
- function s(n) {
678
+ function f(n) {
679
679
  var c = E[n.name], a = {};
680
680
  a.promise = new d(function(m, v) {
681
681
  a.resolve = m, a.reject = v;
@@ -697,7 +697,7 @@ var nt = { exports: {} };
697
697
  return new d(function(a, m) {
698
698
  if (E[n.name] = E[n.name] || ne(), n.db)
699
699
  if (c)
700
- s(n), n.db.close();
700
+ f(n), n.db.close();
701
701
  else
702
702
  return a(n.db);
703
703
  var v = [n.name];
@@ -771,7 +771,7 @@ var nt = { exports: {} };
771
771
  return u(a, n, n), a;
772
772
  }
773
773
  function G(n) {
774
- s(n);
774
+ f(n);
775
775
  for (var c = E[n.name], a = c.forages, m = 0; m < a.length; m++) {
776
776
  var v = a[m];
777
777
  v._dbInfo.db && (v._dbInfo.db.close(), v._dbInfo.db = null);
@@ -1072,7 +1072,7 @@ var nt = { exports: {} };
1072
1072
  n.storeName ? v = C.then(function(R) {
1073
1073
  if (R.objectStoreNames.contains(n.storeName)) {
1074
1074
  var B = R.version + 1;
1075
- s(n);
1075
+ f(n);
1076
1076
  var F = E[n.name], k = F.forages;
1077
1077
  R.close();
1078
1078
  for (var q = 0; q < k.length; q++) {
@@ -1104,7 +1104,7 @@ var nt = { exports: {} };
1104
1104
  });
1105
1105
  }
1106
1106
  }) : v = C.then(function(R) {
1107
- s(n);
1107
+ f(n);
1108
1108
  var B = E[n.name], F = B.forages;
1109
1109
  R.close();
1110
1110
  for (var k = 0; k < F.length; k++) {
@@ -1805,8 +1805,8 @@ var nt = { exports: {} };
1805
1805
  }, { 3: 3 }] }, {}, [4])(4);
1806
1806
  });
1807
1807
  })(nt);
1808
- var An = nt.exports;
1809
- const at = /* @__PURE__ */ cn(An);
1808
+ var In = nt.exports;
1809
+ const at = /* @__PURE__ */ sn(In);
1810
1810
  let ue;
1811
1811
  function lt() {
1812
1812
  const e = ue == null ? void 0 : ue.getEnv();
@@ -1816,17 +1816,17 @@ function Wr() {
1816
1816
  const e = ue == null ? void 0 : ue.getEnv();
1817
1817
  return console.log(`env var: ${e}`), ue == null ? "" : (ue[e] ?? ue.development).auth ?? "";
1818
1818
  }
1819
- function En(e) {
1819
+ function Dn(e) {
1820
1820
  const t = ue == null ? void 0 : ue.getEnv();
1821
1821
  if (ue == null)
1822
1822
  return "";
1823
1823
  const l = ue[t] ?? ue.development;
1824
1824
  return e == null ? l.data ?? "" : l.other[e] ?? l.data ?? "";
1825
1825
  }
1826
- function Da() {
1826
+ function Ia() {
1827
1827
  return ue;
1828
1828
  }
1829
- function In(e) {
1829
+ function xn(e) {
1830
1830
  return ue = e, ue;
1831
1831
  }
1832
1832
  let Oe = null;
@@ -1837,21 +1837,21 @@ function ve() {
1837
1837
  const e = lt();
1838
1838
  return (Oe == null || Oe.config.name != e) && (Oe = at.createInstance({ name: e })), Oe;
1839
1839
  }
1840
- function xa() {
1841
- async function e(f) {
1840
+ function Da() {
1841
+ async function e(s) {
1842
1842
  const g = ve();
1843
- (await g.keys()).filter((_) => _.startsWith(f)).forEach((_) => {
1843
+ (await g.keys()).filter((_) => _.startsWith(s)).forEach((_) => {
1844
1844
  g.removeItem(_);
1845
1845
  });
1846
1846
  }
1847
- async function t(f) {
1848
- return await ve().getItem(f);
1847
+ async function t(s) {
1848
+ return await ve().getItem(s);
1849
1849
  }
1850
- async function l(f) {
1851
- return await ve().removeItem(f);
1850
+ async function l(s) {
1851
+ return await ve().removeItem(s);
1852
1852
  }
1853
- async function S(f, g) {
1854
- await ve().setItem(g, f);
1853
+ async function S(s, g) {
1854
+ await ve().setItem(g, s);
1855
1855
  }
1856
1856
  return {
1857
1857
  clearAsync: e,
@@ -1861,21 +1861,21 @@ function xa() {
1861
1861
  };
1862
1862
  }
1863
1863
  let er;
1864
- function Ta(e) {
1864
+ function xa(e) {
1865
1865
  return er(e)();
1866
1866
  }
1867
1867
  function Le(e) {
1868
1868
  return er(e);
1869
1869
  }
1870
- function Dn(e) {
1871
- return er = (t) => xn({
1870
+ function Tn(e) {
1871
+ return er = (t) => _n({
1872
1872
  ...e,
1873
1873
  ...t
1874
1874
  }), er;
1875
1875
  }
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)
1876
+ function _n(e) {
1877
+ var t, l, S, s, 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 = ((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
1879
  throw new Error("no store name provided");
1880
1880
  if (e.storeMode == "whole-last-updated") {
1881
1881
  if (e.api == null)
@@ -1886,23 +1886,23 @@ function xn(e) {
1886
1886
  throw new Error("Must supply an api object to use store");
1887
1887
  return qr({ ...e, storeName: e.storeName ?? "" });
1888
1888
  } else
1889
- return _n({ ...e, storeName: e.storeName ?? "" });
1889
+ return Pn({ ...e, storeName: e.storeName ?? "" });
1890
1890
  }
1891
- const Tn = (e) => {
1891
+ const Cn = (e) => {
1892
1892
  let t = K(e.url) ?? void 0;
1893
1893
  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
1894
  t ?? (t = "");
1895
1895
  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());
1896
+ Object.entries(e.params).sort(Ue.firstBy((s) => s[0])).forEach((s) => {
1897
+ s[1] != null && l.append(s[0], s[1].toString());
1898
1898
  }), t = `${t}?${l.toString()}`;
1899
1899
  }
1900
1900
  return e.finalUrl = t, e.finalUrl ?? "";
1901
1901
  };
1902
- function _n(e) {
1902
+ function Pn(e) {
1903
1903
  return pr(e.storeName, () => {
1904
1904
  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;
1905
+ const t = he.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Cn;
1906
1906
  function x(r) {
1907
1907
  var i, E;
1908
1908
  let y = "";
@@ -1914,7 +1914,7 @@ function _n(e) {
1914
1914
  const y = x(r), I = r.refresh;
1915
1915
  if (!I && l.value[y] !== void 0)
1916
1916
  return l.value[y];
1917
- if (!I && f == !0) {
1917
+ if (!I && s == !0) {
1918
1918
  const i = await ve().getItem(y);
1919
1919
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1920
1920
  return l.value[y] = i, i;
@@ -1932,7 +1932,7 @@ function _n(e) {
1932
1932
  count: T == null ? void 0 : T.count,
1933
1933
  filters: (T == null ? void 0 : T.filters) ?? []
1934
1934
  };
1935
- f == !0 && await ve().setItem(y, D), w(D);
1935
+ s == !0 && await ve().setItem(y, D), w(D);
1936
1936
  } catch (T) {
1937
1937
  M(T);
1938
1938
  } finally {
@@ -1954,7 +1954,7 @@ function _n(e) {
1954
1954
  const y = x(r), I = r.refresh;
1955
1955
  if (!I && l.value[y] !== void 0)
1956
1956
  return l.value[y];
1957
- if (!I && f == !0) {
1957
+ if (!I && s == !0) {
1958
1958
  const i = await ve().getItem(y);
1959
1959
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1960
1960
  return l.value[y] = i, { data: i.data };
@@ -1971,7 +1971,7 @@ function _n(e) {
1971
1971
  meta: { storedOn: t.toString() },
1972
1972
  data: T == null ? void 0 : T.data
1973
1973
  };
1974
- f == !0 && await ve().setItem(y, D), w(D);
1974
+ s == !0 && await ve().setItem(y, D), w(D);
1975
1975
  } catch (T) {
1976
1976
  M(T);
1977
1977
  } finally {
@@ -2003,7 +2003,7 @@ function _n(e) {
2003
2003
  meta: { storedOn: t.toString() },
2004
2004
  data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...I }
2005
2005
  };
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) => {
2006
+ 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
2007
  const b = M[1].data;
2008
2008
  if (b != null)
2009
2009
  if (Array.isArray(b))
@@ -2033,7 +2033,7 @@ function _n(e) {
2033
2033
  meta: { storedOn: t.toString() },
2034
2034
  data: I
2035
2035
  };
2036
- return f == !0 && await ve().setItem(y, i), l.value[y] = i, i.data;
2036
+ return s == !0 && await ve().setItem(y, i), l.value[y] = i, i.data;
2037
2037
  }
2038
2038
  return I;
2039
2039
  }
@@ -2059,7 +2059,7 @@ function _n(e) {
2059
2059
  M[b].id == I && M.splice(b, 1);
2060
2060
  else
2061
2061
  delete l.value[w[0]];
2062
- }), f == !0 && await ve().removeItem(y);
2062
+ }), s == !0 && await ve().removeItem(y);
2063
2063
  }
2064
2064
  async function h(r) {
2065
2065
  if (r.additionalUrl ?? (r.additionalUrl = `/patch/restore?id=${r.data.id}`), g(r), e.api != null)
@@ -2084,7 +2084,7 @@ function _n(e) {
2084
2084
  }
2085
2085
  function qr(e) {
2086
2086
  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";
2087
+ const t = z(), l = z(0), S = he.utc().toSeconds() / 3600, s = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
2088
2088
  function _() {
2089
2089
  var i;
2090
2090
  return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
@@ -2106,13 +2106,13 @@ function qr(e) {
2106
2106
  additionalUrl: "/getAll",
2107
2107
  nav: i.nav,
2108
2108
  params: {
2109
- lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? dn()
2109
+ lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? mn()
2110
2110
  }
2111
2111
  }));
2112
2112
  D == null ? M(D) : (t.value ?? (t.value = []), D.data.forEach((L) => {
2113
2113
  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);
2114
+ const f = t.value.findIndex((Q) => Q.id == L.id);
2115
+ f >= 0 ? (A = t.value) == null || A.splice(f, 1, L) : (J = t.value) == null || J.push(L);
2116
2116
  }), l.value = t.value.length, g.value = {
2117
2117
  lastUpdate: he.utc().toString(),
2118
2118
  storedOn: S.toString()
@@ -2136,7 +2136,7 @@ function qr(e) {
2136
2136
  if (!w && P == !0) {
2137
2137
  const D = await ve().getItem(E);
2138
2138
  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, {
2139
+ return t.value = D.data, l.value = D.data.length, s.value = D.filters ?? [], g.value = D.meta, {
2140
2140
  count: (b = t.value) == null ? void 0 : b.length,
2141
2141
  data: t.value ?? [],
2142
2142
  filters: []
@@ -2146,7 +2146,7 @@ function qr(e) {
2146
2146
  return {
2147
2147
  count: (T = t.value) == null ? void 0 : T.length,
2148
2148
  data: t.value ?? [],
2149
- filters: f.value
2149
+ filters: s.value
2150
2150
  };
2151
2151
  t.value ?? (t.value = []);
2152
2152
  try {
@@ -2163,14 +2163,14 @@ function qr(e) {
2163
2163
  throw new Error("no id provided");
2164
2164
  let M = i.refresh;
2165
2165
  if (!M && t.value != null) {
2166
- const s = t.value.find((A) => A.id == w);
2167
- if (s != null)
2168
- return { data: s };
2166
+ const f = t.value.find((A) => A.id == w);
2167
+ if (f != null)
2168
+ return { data: f };
2169
2169
  }
2170
2170
  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;
2171
+ const f = await ve().getItem(E);
2172
+ if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
2173
+ t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
2174
2174
  let A = (T = t.value) == null ? void 0 : T.find((J) => J.id == i.id);
2175
2175
  if (A != null)
2176
2176
  return { data: A };
@@ -2178,13 +2178,13 @@ function qr(e) {
2178
2178
  }
2179
2179
  if (e.api == null)
2180
2180
  return {
2181
- data: (D = t.value) == null ? void 0 : D.find((s) => s.id == i.id)
2181
+ data: (D = t.value) == null ? void 0 : D.find((f) => f.id == i.id)
2182
2182
  };
2183
2183
  t.value ?? (t.value = []);
2184
2184
  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;
2185
+ return await $(i), { data: (L = t.value) == null ? void 0 : L.find((f) => f.id == i.id) };
2186
+ } catch (f) {
2187
+ let A = f;
2188
2188
  throw new Error(A.message ?? "Problem");
2189
2189
  }
2190
2190
  }
@@ -2272,8 +2272,8 @@ let Ar;
2272
2272
  function Er() {
2273
2273
  return Ar;
2274
2274
  }
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;
2275
+ function Nn(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, s = e == null ? void 0 : e.demo;
2277
2277
  function g(u) {
2278
2278
  let r = new URLSearchParams();
2279
2279
  return Object.entries(u).forEach((y) => {
@@ -2294,8 +2294,8 @@ function Cn(e) {
2294
2294
  async function _(u) {
2295
2295
  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
2296
  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);
2297
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2298
+ return console.log(`DEMO: Get from ${i}`), s.get(u);
2299
2299
  console.log(`Get from ${i}`);
2300
2300
  let w;
2301
2301
  try {
@@ -2329,8 +2329,8 @@ function Cn(e) {
2329
2329
  async function N(u) {
2330
2330
  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
2331
  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);
2332
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2333
+ return console.log(`DEMO: Get all from ${i}`), s.getAll(u);
2334
2334
  console.log(`Get all from ${i}`);
2335
2335
  let w;
2336
2336
  try {
@@ -2364,8 +2364,8 @@ function Cn(e) {
2364
2364
  async function $(u) {
2365
2365
  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
2366
  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);
2367
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2368
+ return console.log(`DEMO: Post to ${i}`), s.post(u);
2369
2369
  console.log(`Post to ${i}`);
2370
2370
  let w;
2371
2371
  try {
@@ -2400,8 +2400,8 @@ function Cn(e) {
2400
2400
  async function d(u) {
2401
2401
  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
2402
  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);
2403
+ if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2404
+ return console.log(`DEMO: Patch to ${i}`), s.patch(u);
2405
2405
  console.log(`Patch to ${i}`);
2406
2406
  let w;
2407
2407
  try {
@@ -2436,8 +2436,8 @@ function Cn(e) {
2436
2436
  async function h(u) {
2437
2437
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
2438
2438
  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);
2439
+ if (y == null && (y = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2440
+ return console.log(`DEMO: Delete ${y}`), s.deleteItem(u);
2441
2441
  console.log(`Delete ${y}`);
2442
2442
  let i;
2443
2443
  try {
@@ -2473,7 +2473,7 @@ function Cn(e) {
2473
2473
  }, Ar;
2474
2474
  }
2475
2475
  function ut(e) {
2476
- const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: f, doAction: g, logError: x } = un(e);
2476
+ const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: x } = fn(e);
2477
2477
  function P(r) {
2478
2478
  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
2479
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
@@ -2594,7 +2594,7 @@ function ut(e) {
2594
2594
  doAction: g,
2595
2595
  getAllItems: N,
2596
2596
  getItem: _,
2597
- isLoading: f,
2597
+ isLoading: s,
2598
2598
  logError: x,
2599
2599
  restoreItem: $,
2600
2600
  saveItem: d
@@ -2602,17 +2602,17 @@ function ut(e) {
2602
2602
  }
2603
2603
  let hr = "Australia/Melbourne", Ir;
2604
2604
  const Vr = "auth-credentials-state";
2605
- function Pn() {
2605
+ function Mn() {
2606
2606
  return Ir;
2607
2607
  }
2608
- function Nn(e) {
2608
+ function Ln(e) {
2609
2609
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
2610
2610
  let l = z(localStorage.getItem(Vr) ?? "");
2611
2611
  l.value.length == 0 && S();
2612
2612
  function S() {
2613
2613
  l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Vr, l.value);
2614
2614
  }
2615
- const f = Xt("auth-credentials", {});
2615
+ const s = pt("auth-credentials", {});
2616
2616
  function g(D) {
2617
2617
  if (D == null)
2618
2618
  return !0;
@@ -2621,10 +2621,10 @@ function Nn(e) {
2621
2621
  return !1;
2622
2622
  if (L.requiresAuth === !1)
2623
2623
  return !0;
2624
- const s = K(f);
2625
- if (s.isSuspended && L.ignoreSuspension !== !0)
2624
+ const f = K(s);
2625
+ if (f.isSuspended && L.ignoreSuspension !== !0)
2626
2626
  return !1;
2627
- if (s.isGlobalAdmin)
2627
+ if (f.isGlobalAdmin)
2628
2628
  return !0;
2629
2629
  if (L.permissions != null) {
2630
2630
  for (var A = 0; A < L.permissions.length; A++)
@@ -2634,11 +2634,11 @@ function Nn(e) {
2634
2634
  return !0;
2635
2635
  }
2636
2636
  function x(D) {
2637
- const L = K(f);
2637
+ const L = K(s);
2638
2638
  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")
2639
+ for (var f = 0; f < L.userPermissions.length; f++) {
2640
+ var A = L.userPermissions[f].split(".");
2641
+ if (L.userPermissions[f] == "everything.edit" || D == A[0] && A.length > 1 && A[1] == "edit")
2642
2642
  return !0;
2643
2643
  }
2644
2644
  return !1;
@@ -2651,10 +2651,10 @@ function Nn(e) {
2651
2651
  return !1;
2652
2652
  if (L.requiresAuth === !1)
2653
2653
  return !0;
2654
- const s = K(f);
2655
- if (s.isSuspended && L.ignoreSuspension !== !0)
2654
+ const f = K(s);
2655
+ if (f.isSuspended && L.ignoreSuspension !== !0)
2656
2656
  return !1;
2657
- if (s.isGlobalAdmin)
2657
+ if (f.isGlobalAdmin)
2658
2658
  return !0;
2659
2659
  if (L.permissions != null) {
2660
2660
  for (var A = 0; A < L.permissions.length; A++)
@@ -2664,76 +2664,76 @@ function Nn(e) {
2664
2664
  return !0;
2665
2665
  }
2666
2666
  function _(D) {
2667
- const L = K(f);
2667
+ const L = K(s);
2668
2668
  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")
2669
+ for (var f = 0; f < L.userPermissions.length; f++) {
2670
+ var A = L.userPermissions[f].split(".");
2671
+ if (D == A[0] || D == "everything" || L.userPermissions[f] == "everything.view" || L.userPermissions[f] == "everything.edit")
2672
2672
  return !0;
2673
2673
  }
2674
2674
  return !1;
2675
2675
  }
2676
- function N(D, L, s) {
2676
+ function N(D, L, f) {
2677
2677
  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);
2678
+ return K(s).isGlobalAdmin ? !0 : (L != null && L.length > 0 && L.forEach((Q) => {
2679
+ f == "edit" ? x(Q) || (A = !1) : _(Q) || (A = !1);
2680
2680
  }), D != null && D.length > 0 && (D.some((Q) => u(Q)) || (A = !1)), A);
2681
2681
  }
2682
2682
  function $(D, L = !1) {
2683
- var s = e.getAuthItem != null ? e.getAuthItem(D) : null;
2683
+ var f = e.getAuthItem != null ? e.getAuthItem(D) : null;
2684
2684
  let A = !1;
2685
- if (s == null)
2685
+ if (f == null)
2686
2686
  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) => {
2687
+ let J = f.subscriptions ?? [], Q = f.permissions ?? [], ee = N(J, Q, "view");
2688
+ return ee || !L || !_e(f.children) ? ee : ((f == null ? void 0 : f.children) != null && f.children.forEach((ce) => {
2689
2689
  $(ce, !0) && (A = !0);
2690
2690
  }), A);
2691
2691
  }
2692
2692
  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}`);
2693
+ return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (L, f) => {
2694
+ const A = Be(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2695
2695
  return L ? `${A}&redirect_path=${L}` : A;
2696
2696
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(D, l.value) ?? "" : "";
2697
2697
  }
2698
2698
  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;
2699
+ var f;
2700
+ return D == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((A) => A.code == D)) == null ? void 0 : f.value) ?? 0;
2701
2701
  }
2702
2702
  function u(D) {
2703
- const L = K(f);
2703
+ const L = K(s);
2704
2704
  if (L.subscriptionCode == null)
2705
2705
  return !1;
2706
2706
  if (L.subscriptionCode == D)
2707
2707
  return !0;
2708
- const s = h(D), A = h(L.subscriptionCode);
2709
- return s <= A;
2708
+ const f = h(D), A = h(L.subscriptionCode);
2709
+ return f <= A;
2710
2710
  }
2711
2711
  function r(D) {
2712
- const s = D.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), A = decodeURIComponent(
2713
- atob(s).split("").map(function(J) {
2712
+ const f = D.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), A = decodeURIComponent(
2713
+ atob(f).split("").map(function(J) {
2714
2714
  return "%" + ("00" + J.charCodeAt(0).toString(16)).slice(-2);
2715
2715
  }).join("")
2716
2716
  );
2717
2717
  return JSON.parse(A);
2718
2718
  }
2719
2719
  function y(D, L) {
2720
- f.value = void 0, M(), D != null && L != null && L.currentRoute.value.path != D && L.push({ path: D });
2720
+ s.value = void 0, M(), D != null && L != null && L.currentRoute.value.path != D && L.push({ path: D });
2721
2721
  }
2722
2722
  function I(D) {
2723
- var s;
2724
- K(f).isLoggedIn || ((s = e.demo) == null || s.endDemo(), T() && (y(), window.location.href = d(D)));
2723
+ var f;
2724
+ K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(D)));
2725
2725
  }
2726
2726
  async function i(D, L) {
2727
2727
  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)
2728
+ let f = D, A = L, J = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
2729
+ if (f == null || A == null)
2730
2730
  throw new Error("Code and State required in OAuth token process");
2731
2731
  if (A != l.value)
2732
2732
  throw new Error("state does not match");
2733
2733
  let ee = "";
2734
- e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), ee = e.getTokenUrl(s, `${window.location.origin}/authentication`, J, Q);
2734
+ e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), ee = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2735
2735
  const ce = {};
2736
- ce.grant_type = J, ce.code = s, ce.redirect_uri = `${window.location.origin}/authentication`, ce.client_id = Q;
2736
+ ce.grant_type = J, ce.code = f, ce.redirect_uri = `${window.location.origin}/authentication`, ce.client_id = Q;
2737
2737
  const W = await Er().post({
2738
2738
  additionalUrl: ee,
2739
2739
  data: ce
@@ -2744,28 +2744,28 @@ function Nn(e) {
2744
2744
  function E(D) {
2745
2745
  if (D != null && (e.demo == null || !e.demo.isDemoing.value)) {
2746
2746
  const L = r(D);
2747
- w(L, D), e.processTokenPayload != null && e.processTokenPayload(f, L);
2747
+ w(L, D), e.processTokenPayload != null && e.processTokenPayload(s, L);
2748
2748
  }
2749
2749
  }
2750
2750
  function w(D, L) {
2751
2751
  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(",")) ?? [];
2752
+ const f = s.value;
2753
+ 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
2754
  }
2755
2755
  function M() {
2756
2756
  var D;
2757
- f.value ?? (f.value = {}), (D = f.value).timeZone ?? (D.timeZone = e.defaultTimeZone ?? hr);
2757
+ s.value ?? (s.value = {}), (D = s.value).timeZone ?? (D.timeZone = e.defaultTimeZone ?? hr);
2758
2758
  }
2759
2759
  function b() {
2760
- const D = K(f);
2760
+ const D = K(s);
2761
2761
  return D.isLoggedIn && T() && (y(), window.location.href = d()), D.isLoggedIn;
2762
2762
  }
2763
2763
  function T() {
2764
- const D = K(f);
2764
+ const D = K(s);
2765
2765
  if (D == null || D.expiresOn == null)
2766
2766
  return !0;
2767
- const L = he.fromFormat(D.expiresOn, t), s = he.utc();
2768
- return L <= s;
2767
+ const L = he.fromFormat(D.expiresOn, t), f = he.utc();
2768
+ return L <= f;
2769
2769
  }
2770
2770
  return M(), Ir = {
2771
2771
  authState: l,
@@ -2773,32 +2773,32 @@ function Nn(e) {
2773
2773
  canEditPermit: x,
2774
2774
  canView: P,
2775
2775
  canViewPermit: _,
2776
- credentials: f,
2776
+ credentials: s,
2777
2777
  doShow: N,
2778
2778
  doShowByNav: $,
2779
2779
  getAuthorizeUrl: d,
2780
2780
  getToken: i,
2781
- isLoggedIn: te(() => f.value.isLoggedIn === !0),
2781
+ isLoggedIn: te(() => s.value.isLoggedIn === !0),
2782
2782
  login: I,
2783
2783
  logout: y,
2784
2784
  resetAuthState: S,
2785
2785
  setAuth: E,
2786
- timeZone: te(() => f.value.timeZone ?? e.defaultTimeZone ?? hr),
2786
+ timeZone: te(() => s.value.timeZone ?? e.defaultTimeZone ?? hr),
2787
2787
  tryLogin: b
2788
2788
  }, Ir;
2789
2789
  }
2790
- function Mn(e, t, l = {}) {
2790
+ function Rn(e, t, l = {}) {
2791
2791
  const {
2792
2792
  preventDefault: S = !1,
2793
- stopPropagation: f = !1,
2793
+ stopPropagation: s = !1,
2794
2794
  axis: g = "both"
2795
2795
  } = l, x = { capture: l.capture ?? !0 };
2796
2796
  let P = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2797
2797
  function u(M) {
2798
- K(S) && M.preventDefault(), K(f) && M.stopPropagation();
2798
+ K(S) && M.preventDefault(), K(s) && M.stopPropagation();
2799
2799
  }
2800
2800
  function r(M) {
2801
- var s;
2801
+ var f;
2802
2802
  const b = K(e);
2803
2803
  if (!b)
2804
2804
  return;
@@ -2809,15 +2809,15 @@ function Mn(e, t, l = {}) {
2809
2809
  }, P = {
2810
2810
  x: T.offsetLeft,
2811
2811
  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));
2812
+ }, ((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
2813
  }
2814
2814
  function y(M) {
2815
2815
  var A;
2816
2816
  if (!N || !K(e))
2817
2817
  return;
2818
2818
  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);
2819
+ let L = D.clientX - N.x, f = D.clientY - N.y;
2820
+ (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
2821
  }
2822
2822
  function I(M) {
2823
2823
  var b;
@@ -2858,9 +2858,9 @@ function Mn(e, t, l = {}) {
2858
2858
  turnDraggableOn: E
2859
2859
  };
2860
2860
  }
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 = [];
2861
+ const Un = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2862
+ function Bn(e, t = {}) {
2863
+ 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
2864
  const u = z(!1);
2865
2865
  let r = [], y = [];
2866
2866
  const I = z(!1), i = z({ x: 0, y: 0 });
@@ -2875,8 +2875,8 @@ function Rn(e, t = {}) {
2875
2875
  h.forEach((Y) => W.$el.removeChild(Y));
2876
2876
  }
2877
2877
  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;
2878
+ const Y = S + "px", V = -S / 2 + "px", ae = s + 1, G = document.createElement("div");
2879
+ return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top = V, G.style.height = Y, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = V, G.style.height = Y, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = V, G.style.width = Y, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = V, G.style.width = Y, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
2880
2880
  }
2881
2881
  function L(W) {
2882
2882
  var ne;
@@ -2894,9 +2894,9 @@ function Rn(e, t = {}) {
2894
2894
  }, w = Lr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
2895
2895
  return;
2896
2896
  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);
2897
+ 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
2898
  }
2899
- function s(W) {
2899
+ function f(W) {
2900
2900
  const Y = Ae(e);
2901
2901
  if (!Y)
2902
2902
  return;
@@ -2941,7 +2941,7 @@ function Rn(e, t = {}) {
2941
2941
  return;
2942
2942
  const V = Y.$el;
2943
2943
  if (console.log(l), l !== "page" && W == "page") {
2944
- const ae = Ot(V), G = Ae(ae) ?? null;
2944
+ const ae = en(V), G = Ae(ae) ?? null;
2945
2945
  let X = 0;
2946
2946
  if (G != null) {
2947
2947
  const ne = window.getComputedStyle(G);
@@ -2993,7 +2993,7 @@ function Rn(e, t = {}) {
2993
2993
  if (I.value)
2994
2994
  return;
2995
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);
2996
+ V && (b(V, W ?? Un), Q(Y), r.push(me(V.$el, "mousedown", L)), r.push(me(V.$el, "touchstart", L)), I.value = !0, l = Y);
2997
2997
  }
2998
2998
  function we(W) {
2999
2999
  if (!I.value)
@@ -3009,11 +3009,11 @@ function Rn(e, t = {}) {
3009
3009
  turnResizingOff: we
3010
3010
  };
3011
3011
  }
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) => {
3012
+ function $n(e) {
3013
+ const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), x = z({}), { turnResizingOff: P, turnResizingOn: _ } = Bn(t), { turnDraggableOff: N, turnDraggableOn: $ } = Rn(t, l);
3014
+ rn(t, (h) => {
3015
3015
  const u = h[0], { width: r } = u.contentRect;
3016
- S.value = r < f;
3016
+ S.value = r < s;
3017
3017
  });
3018
3018
  function d(h) {
3019
3019
  N(), h == "page" ? P(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (P(), _(void 0, h), $()) : h == "inline" && P();
@@ -3042,10 +3042,10 @@ const mr = {
3042
3042
  warning: "#FB8C00"
3043
3043
  };
3044
3044
  let Dr;
3045
- function _a() {
3045
+ function Ta() {
3046
3046
  return Dr;
3047
3047
  }
3048
- function Ca(e) {
3048
+ function _a(e) {
3049
3049
  const t = localStorage.getItem("cosmetics");
3050
3050
  let l;
3051
3051
  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 +3060,7 @@ function Ca(e) {
3060
3060
  }
3061
3061
  };
3062
3062
  }
3063
- function Bn(e) {
3063
+ function Fn(e) {
3064
3064
  const t = z({});
3065
3065
  let l = e.vuetifyInstance;
3066
3066
  function S() {
@@ -3073,7 +3073,7 @@ function Bn(e) {
3073
3073
  drawerStick: e.defaultDrawerStick ?? !1
3074
3074
  };
3075
3075
  }
3076
- function f() {
3076
+ function s() {
3077
3077
  localStorage.setItem("cosmetics", JSON.stringify(t.value));
3078
3078
  }
3079
3079
  function g(d) {
@@ -3115,7 +3115,7 @@ function Bn(e) {
3115
3115
  }
3116
3116
  }
3117
3117
  return S(), Te(t, () => {
3118
- f();
3118
+ s();
3119
3119
  }), Dr = {
3120
3120
  state: t,
3121
3121
  resetCosmetics: g,
@@ -3126,15 +3126,15 @@ function Bn(e) {
3126
3126
  undoTemporaryColor: $
3127
3127
  }, Dr;
3128
3128
  }
3129
- const Pa = {
3129
+ const Ca = {
3130
3130
  canExportCSV: !1
3131
3131
  };
3132
- function $n() {
3132
+ function kn() {
3133
3133
  function e(t) {
3134
3134
  const {
3135
3135
  items: l,
3136
3136
  headers: S,
3137
- fileName: f = "data.csv",
3137
+ fileName: s = "data.csv",
3138
3138
  format: g = "file"
3139
3139
  } = t;
3140
3140
  if (!_e(l))
@@ -3144,7 +3144,7 @@ function $n() {
3144
3144
  header: I.title ?? I.value ?? "",
3145
3145
  itemText: I.itemText,
3146
3146
  value: I.value
3147
- })) : x = Object.keys(l[0]).map((I) => ({ header: fn(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
3147
+ })) : x = Object.keys(l[0]).map((I) => ({ header: on(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
3148
3148
  var P = [];
3149
3149
  for (let I = 0; I < l.length; I++) {
3150
3150
  const i = l[I];
@@ -3170,10 +3170,10 @@ function $n() {
3170
3170
  var h = d.join(`
3171
3171
  `), u = new Blob([h], { type: "text/plain;charset=utf-8" });
3172
3172
  if (window.navigator.msSaveOrOpenBlob)
3173
- window.navigator.msSaveOrOpenBlob(u, f);
3173
+ window.navigator.msSaveOrOpenBlob(u, s);
3174
3174
  else {
3175
3175
  var r = document.createElement("a"), y = URL.createObjectURL(u);
3176
- r.href = y, r.download = f, document.body.appendChild(r), r.click(), setTimeout(function() {
3176
+ r.href = y, r.download = s, document.body.appendChild(r), r.click(), setTimeout(function() {
3177
3177
  document.body.removeChild(r), window.URL.revokeObjectURL(y);
3178
3178
  }, 0);
3179
3179
  }
@@ -3183,18 +3183,18 @@ function $n() {
3183
3183
  };
3184
3184
  }
3185
3185
  let xr;
3186
- function Na() {
3186
+ function Pa() {
3187
3187
  return xr;
3188
3188
  }
3189
- function Fn(e) {
3189
+ function Gn(e) {
3190
3190
  const t = e.getUTC ?? he.utc;
3191
3191
  function l() {
3192
- return f().startOf("day").toUTC().toString() ?? "";
3192
+ return s().startOf("day").toUTC().toString() ?? "";
3193
3193
  }
3194
3194
  function S() {
3195
- return f().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3195
+ return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3196
3196
  }
3197
- function f(_, N) {
3197
+ function s(_, N) {
3198
3198
  return _ == null ? t().setZone(e.getTimeZone()) : N ? he.fromFormat(_, N, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3199
3199
  }
3200
3200
  function g(_, N, $) {
@@ -3221,22 +3221,22 @@ function Fn(e) {
3221
3221
  return xr = {
3222
3222
  getToday: l,
3223
3223
  getTomorrow: S,
3224
- tzDate: f,
3224
+ tzDate: s,
3225
3225
  tzString: g,
3226
3226
  utcDate: x,
3227
3227
  utcString: P
3228
3228
  }, xr;
3229
3229
  }
3230
3230
  let Tr;
3231
- function Ma() {
3231
+ function Na() {
3232
3232
  return Tr;
3233
3233
  }
3234
- function kn(e) {
3234
+ function Wn(e) {
3235
3235
  const t = z(!1), l = (e == null ? void 0 : e.apis) ?? [];
3236
3236
  function S() {
3237
3237
  t.value = !0;
3238
3238
  }
3239
- function f() {
3239
+ function s() {
3240
3240
  t.value = !1;
3241
3241
  }
3242
3242
  function g(d) {
@@ -3328,7 +3328,7 @@ function kn(e) {
3328
3328
  });
3329
3329
  }
3330
3330
  return Tr = {
3331
- endDemo: f,
3331
+ endDemo: s,
3332
3332
  isDemoing: t,
3333
3333
  startDemo: S,
3334
3334
  data: l,
@@ -3339,17 +3339,17 @@ function kn(e) {
3339
3339
  patch: $
3340
3340
  }, Tr;
3341
3341
  }
3342
- var Gn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3343
- function La(e) {
3342
+ var qn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3343
+ function Ma(e) {
3344
3344
  function t(l) {
3345
- var f;
3345
+ var s;
3346
3346
  const S = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
3347
3347
  if (S)
3348
3348
  document.title = S.meta.title;
3349
3349
  else {
3350
- const g = Gn.VITE_NODE_ENV;
3350
+ const g = qn.VITE_NODE_ENV;
3351
3351
  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;
3352
+ 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
3353
  }
3354
3354
  }
3355
3355
  return {
@@ -3357,104 +3357,104 @@ function La(e) {
3357
3357
  };
3358
3358
  }
3359
3359
  let _r;
3360
- function Ra() {
3360
+ function La() {
3361
3361
  return _r;
3362
3362
  }
3363
- function Wn(e) {
3364
- function t(s, A, J) {
3365
- return s ? on(s) ? J ?? "" : e.dates.tzString(s, A) : J ?? s ?? "";
3363
+ function Vn(e) {
3364
+ function t(f, A, J) {
3365
+ return f ? hn(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
3366
3366
  }
3367
- function l(s) {
3368
- if (!s)
3367
+ function l(f) {
3368
+ if (!f)
3369
3369
  return "";
3370
- if (typeof s != "object")
3371
- return s;
3370
+ if (typeof f != "object")
3371
+ return f;
3372
3372
  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;
3373
+ 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
3374
  }
3375
- function S(s) {
3376
- if (typeof s != "number")
3377
- return s;
3375
+ function S(f) {
3376
+ if (typeof f != "number")
3377
+ return f;
3378
3378
  var A = new Intl.NumberFormat("en-US", {
3379
3379
  style: "currency",
3380
3380
  currency: "AUD",
3381
3381
  minimumFractionDigits: 2
3382
3382
  });
3383
- return A.format(s);
3383
+ return A.format(f);
3384
3384
  }
3385
- function f(s, A) {
3386
- return t(s, "ccc | d LLL", A);
3385
+ function s(f, A) {
3386
+ return t(f, "ccc | d LLL", A);
3387
3387
  }
3388
- function g(s, A) {
3389
- return t(s, "d LLL", A);
3388
+ function g(f, A) {
3389
+ return t(f, "d LLL", A);
3390
3390
  }
3391
- function x(s, A) {
3392
- return t(s, "ccc", A);
3391
+ function x(f, A) {
3392
+ return t(f, "ccc", A);
3393
3393
  }
3394
- function P(s, A) {
3395
- return t(s, "ccc dd LLL yyyy", A);
3394
+ function P(f, A) {
3395
+ return t(f, "ccc dd LLL yyyy", A);
3396
3396
  }
3397
- function _(s, A) {
3398
- return t(s, "ccc dd LLL @ hh:mm a", A);
3397
+ function _(f, A) {
3398
+ return t(f, "ccc dd LLL @ hh:mm a", A);
3399
3399
  }
3400
- function N(s) {
3401
- return new Intl.NumberFormat().format(s);
3400
+ function N(f) {
3401
+ return new Intl.NumberFormat().format(f);
3402
3402
  }
3403
- function $(s) {
3404
- return s == 0 ? "" : new Intl.NumberFormat().format(s);
3403
+ function $(f) {
3404
+ return f == 0 ? "" : new Intl.NumberFormat().format(f);
3405
3405
  }
3406
- function d(s) {
3407
- if (s == 0)
3406
+ function d(f) {
3407
+ if (f == 0)
3408
3408
  return "";
3409
- var A = new Intl.NumberFormat().format(s);
3410
- return s > 0 ? "+" + A : A;
3409
+ var A = new Intl.NumberFormat().format(f);
3410
+ return f > 0 ? "+" + A : A;
3411
3411
  }
3412
- function h(s, A) {
3413
- return e.dates.utcString(s, A);
3412
+ function h(f, A) {
3413
+ return e.dates.utcString(f, A);
3414
3414
  }
3415
- function u(s) {
3416
- return rt(s, !1);
3415
+ function u(f) {
3416
+ return rt(f, !1);
3417
3417
  }
3418
- function r(s) {
3419
- if (!s)
3418
+ function r(f) {
3419
+ if (!f)
3420
3420
  return "";
3421
- if (typeof s != "object")
3422
- return s;
3421
+ if (typeof f != "object")
3422
+ return f;
3423
3423
  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;
3424
+ 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
3425
  }
3426
- function y(s, A) {
3427
- return t(s, "ddd DD MMM YYYY", A);
3426
+ function y(f, A) {
3427
+ return t(f, "ddd DD MMM YYYY", A);
3428
3428
  }
3429
- function I(s, A) {
3430
- return t(s, "ccc dd LLL yyyy hh:mm a", A);
3429
+ function I(f, A) {
3430
+ return t(f, "ccc dd LLL yyyy hh:mm a", A);
3431
3431
  }
3432
- function i(s) {
3432
+ function i(f) {
3433
3433
  var A = new Intl.NumberFormat("en-US", {
3434
3434
  style: "percent",
3435
3435
  minimumFractionDigits: 2
3436
3436
  });
3437
- return A.format(s);
3437
+ return A.format(f);
3438
3438
  }
3439
- function E(s) {
3440
- return s.replaceAll(",", " ");
3439
+ function E(f) {
3440
+ return f.replaceAll(",", " ");
3441
3441
  }
3442
- function w(s, A) {
3443
- return t(s, "dd LLL yyyy", A);
3442
+ function w(f, A) {
3443
+ return t(f, "dd LLL yyyy", A);
3444
3444
  }
3445
- function M(s, A) {
3446
- return t(s, "dd LLL yyyy hh:mm a", A);
3445
+ function M(f, A) {
3446
+ return t(f, "dd LLL yyyy hh:mm a", A);
3447
3447
  }
3448
- function b(s, A) {
3449
- return t(s, "hh:mm a", A);
3448
+ function b(f, A) {
3449
+ return t(f, "hh:mm a", A);
3450
3450
  }
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";
3451
+ function T(f) {
3452
+ 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
3453
  }
3454
3454
  const D = {
3455
3455
  toCompanyNameAndLocationLine: l,
3456
3456
  toCurrency: S,
3457
- toDayDate: f,
3457
+ toDayDate: s,
3458
3458
  toDayMonth: g,
3459
3459
  toDayOfWeek: x,
3460
3460
  toDayShortDate: P,
@@ -3474,9 +3474,9 @@ function Wn(e) {
3474
3474
  toTime: b,
3475
3475
  toTimeOfDay: T
3476
3476
  };
3477
- function L(s) {
3478
- if (s != null) {
3479
- let A = s;
3477
+ function L(f) {
3478
+ if (f != null) {
3479
+ let A = f;
3480
3480
  if (A != null && D[A] != null)
3481
3481
  return D[A];
3482
3482
  }
@@ -3487,11 +3487,11 @@ function Wn(e) {
3487
3487
  ...D
3488
3488
  }, _r;
3489
3489
  }
3490
- function qn(e, t) {
3490
+ function Hn(e, t) {
3491
3491
  const l = z(!1), S = Yt(e);
3492
- let f = g(K(e));
3492
+ let s = g(K(e));
3493
3493
  (t == null ? void 0 : t.useTracker) !== !1 && Te(S, (P) => {
3494
- l.value = g(P) != f;
3494
+ l.value = g(P) != s;
3495
3495
  }, { deep: !0 });
3496
3496
  function g(P) {
3497
3497
  const _ = Lr(P);
@@ -3502,7 +3502,7 @@ function qn(e, t) {
3502
3502
  })), JSON.stringify(_);
3503
3503
  }
3504
3504
  function x() {
3505
- f = g(K(S)), l.value = !1;
3505
+ s = g(K(S)), l.value = !1;
3506
3506
  }
3507
3507
  return {
3508
3508
  asyncItem: S,
@@ -3510,12 +3510,12 @@ function qn(e, t) {
3510
3510
  restartTracker: x
3511
3511
  };
3512
3512
  }
3513
- function Ua(e, t) {
3513
+ function Ra(e, t) {
3514
3514
  var ae;
3515
3515
  const {
3516
3516
  // useBladeSrc = true,
3517
3517
  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(() => {
3518
+ } = 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
3519
  var G;
3520
3520
  return K(e.proxyID) ?? (_ != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[_] : void 0);
3521
3521
  }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: i } = ut({
@@ -3524,7 +3524,7 @@ function Ua(e, t) {
3524
3524
  proxyID: N.value,
3525
3525
  store: Le({
3526
3526
  storeMode: S,
3527
- storageMode: f,
3527
+ storageMode: s,
3528
3528
  nav: g
3529
3529
  })
3530
3530
  }), 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 +3532,7 @@ function Ua(e, t) {
3532
3532
  return !1;
3533
3533
  const G = K($);
3534
3534
  return e.onCanDelete != null ? e.onCanDelete(G) : (G == null ? void 0 : G.isInactive) !== !0;
3535
- }), s = te(() => {
3535
+ }), f = te(() => {
3536
3536
  if (T.value == "new")
3537
3537
  return !1;
3538
3538
  const G = K($);
@@ -3545,7 +3545,7 @@ function Ua(e, t) {
3545
3545
  }), J = te(() => {
3546
3546
  const G = K($);
3547
3547
  return e.onCanSave != null ? e.onCanSave(G) : !0;
3548
- }), { isChanged: Q, restartTracker: ee } = qn($, {
3548
+ }), { isChanged: Q, restartTracker: ee } = Hn($, {
3549
3549
  useTracker: e.trackChanges,
3550
3550
  propsToIgnore: e.trackIgnoreProps,
3551
3551
  propsToTrack: e.trackProps
@@ -3651,7 +3651,7 @@ function Ua(e, t) {
3651
3651
  isChanged: Q,
3652
3652
  isDeletable: L,
3653
3653
  isEditing: te(() => T.value == "new" || T.value == "edit"),
3654
- isEditable: s,
3654
+ isEditable: f,
3655
3655
  isLoading: M,
3656
3656
  isNew: te(() => T.value == "new"),
3657
3657
  isRestorable: A,
@@ -3670,13 +3670,13 @@ let yr = null, Cr;
3670
3670
  function it() {
3671
3671
  return Cr;
3672
3672
  }
3673
- function Vn(e) {
3673
+ function zn(e) {
3674
3674
  const t = e.defaultCacheExpiryHours ?? 7;
3675
3675
  e.getDisplayName ?? (e.getDisplayName = (h) => {
3676
3676
  if (h.displayName != null)
3677
3677
  return h.displayName;
3678
3678
  if (h.name != null)
3679
- return sn(h.name.replaceAll("-", " "));
3679
+ return dn(h.name.replaceAll("-", " "));
3680
3680
  });
3681
3681
  const l = (e.navItems ?? []).map((h) => ({
3682
3682
  displayName: h.displayName ?? e.getDisplayName(h),
@@ -3686,7 +3686,7 @@ function Vn(e) {
3686
3686
  var u;
3687
3687
  return (u = P(h)) == null ? void 0 : u.archiveName;
3688
3688
  }
3689
- function f(h) {
3689
+ function s(h) {
3690
3690
  var u;
3691
3691
  return ((u = P(h)) == null ? void 0 : u.cacheExpiryHours) ?? t;
3692
3692
  }
@@ -3708,7 +3708,7 @@ function Vn(e) {
3708
3708
  const u = P(h);
3709
3709
  if (u == null)
3710
3710
  return;
3711
- let r = En(u.microservice ?? "default") ?? "";
3711
+ let r = Dn(u.microservice ?? "default") ?? "";
3712
3712
  return u.path != null && (r = Be(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3713
3713
  }
3714
3714
  function N(h) {
@@ -3717,7 +3717,7 @@ function Vn(e) {
3717
3717
  return u.singleName;
3718
3718
  const r = u == null ? void 0 : u.displayName;
3719
3719
  if (r != null)
3720
- return Sn(r);
3720
+ return En(r);
3721
3721
  }
3722
3722
  function $(h) {
3723
3723
  const u = P(h);
@@ -3738,7 +3738,7 @@ function Vn(e) {
3738
3738
  hesitate: gr,
3739
3739
  navigationItems: l,
3740
3740
  findArchiveName: S,
3741
- findCacheHours: f,
3741
+ findCacheHours: s,
3742
3742
  findDisplay: g,
3743
3743
  findIcon: x,
3744
3744
  findItem: P,
@@ -3748,9 +3748,9 @@ function Vn(e) {
3748
3748
  updateNavigationProperties: d
3749
3749
  }, Cr;
3750
3750
  }
3751
- function Ba(e, t, l) {
3751
+ function Ua(e, t, l) {
3752
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([
3753
+ const S = kn(), s = it(), g = Mr(), x = et(), { bladeData: P } = $n({}), _ = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = K(e.customFilters) ?? [], r = z([]), y = te(() => tn([
3754
3754
  ...u.filter((U) => U.name != null).map((U) => U.name),
3755
3755
  ...e.defaultFilters ?? [],
3756
3756
  ...r.value
@@ -3798,7 +3798,7 @@ function Ba(e, t, l) {
3798
3798
  return H;
3799
3799
  }
3800
3800
  }
3801
- const L = z(K(e.startShowingInactive) ?? !1), s = te(() => [
3801
+ const L = z(K(e.startShowingInactive) ?? !1), f = te(() => [
3802
3802
  ...e.searchProps ?? [],
3803
3803
  ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3804
3804
  ]), A = z([]), J = Re([]), Q = z([]);
@@ -3901,8 +3901,8 @@ function Ba(e, t, l) {
3901
3901
  function Ne() {
3902
3902
  let U = K(A);
3903
3903
  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)));
3904
+ let j = [...f.value];
3905
+ e.itemText && j.push(e.itemText), _e(j) && (U = U.filter((H) => Sn(H, T.value, j)));
3906
3906
  }
3907
3907
  J.value = U;
3908
3908
  }
@@ -3963,7 +3963,7 @@ function Ba(e, t, l) {
3963
3963
  function je() {
3964
3964
  Ee.value ? (Ee.value = e.showSearch ?? !1, T.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3965
3965
  }
3966
- return We(), rn([T], () => {
3966
+ return We(), nn([T], () => {
3967
3967
  Ne();
3968
3968
  }, { debounce: 500, maxWait: 500 }), Te([L, w], async () => {
3969
3969
  await Ie();
@@ -4009,7 +4009,7 @@ function Ba(e, t, l) {
4009
4009
  };
4010
4010
  }
4011
4011
  let Ge;
4012
- function Hn(e) {
4012
+ function Yn(e) {
4013
4013
  const t = z((e == null ? void 0 : e.default) ?? "Admin"), l = z((e == null ? void 0 : e.groups) ?? []);
4014
4014
  return Ge = {
4015
4015
  currentGroup: t,
@@ -4017,25 +4017,25 @@ function Hn(e) {
4017
4017
  useRoutes: e == null ? void 0 : e.useRoutes
4018
4018
  }, Ge;
4019
4019
  }
4020
- function $a() {
4021
- const e = Mr(), t = it(), l = Pn();
4020
+ function Ba() {
4021
+ const e = Mr(), t = it(), l = Mn();
4022
4022
  let S = e.getRoutes();
4023
4023
  return {
4024
4024
  ...Ge,
4025
4025
  sidebarNavItems: te(() => {
4026
4026
  var g;
4027
4027
  S = S.filter((x) => x.meta != null && x.meta.menuGroup != null);
4028
- const f = [];
4028
+ const s = [];
4029
4029
  return S.forEach((x) => {
4030
4030
  var d;
4031
4031
  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);
4032
+ let $ = s.find((h) => h.displayName == N.menuGroup);
4033
4033
  $ == null && ($ = {
4034
4034
  displayName: N.menuGroup,
4035
4035
  icon: (P == null ? void 0 : P.icon) ?? (N == null ? void 0 : N.icon) ?? (_ == null ? void 0 : _.icon),
4036
4036
  isGroup: !0,
4037
4037
  items: []
4038
- }, f.push($)), (d = $.items) == null || d.push({
4038
+ }, s.push($)), (d = $.items) == null || d.push({
4039
4039
  displayName: (N == null ? void 0 : N.displayName) ?? t.findDisplay(_ ?? void 0),
4040
4040
  icon: (N == null ? void 0 : N.icon) ?? t.findIcon(_ ?? void 0),
4041
4041
  permissions: (N == null ? void 0 : N.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
@@ -4044,18 +4044,18 @@ function $a() {
4044
4044
  subFilters: (N == null ? void 0 : N.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
4045
4045
  routeName: x.name
4046
4046
  });
4047
- }), f.forEach((x) => {
4047
+ }), s.forEach((x) => {
4048
4048
  var P;
4049
4049
  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"));
4050
+ }), 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
4051
  })
4052
4052
  };
4053
4053
  }
4054
4054
  let Pr;
4055
- function Fa(e) {
4055
+ function $a(e) {
4056
4056
  return Pr.usePresets(e);
4057
4057
  }
4058
- function zn(e) {
4058
+ function Zn(e) {
4059
4059
  function t(l) {
4060
4060
  if (!l)
4061
4061
  return {};
@@ -4069,10 +4069,10 @@ function zn(e) {
4069
4069
  let Zr, Jr, jr, Kr = !1;
4070
4070
  const wr = z(!1), br = z(!1), Qr = z(), pe = z();
4071
4071
  let Nr;
4072
- function ka() {
4072
+ function Fa() {
4073
4073
  return Nr;
4074
4074
  }
4075
- function Yn() {
4075
+ function Jn() {
4076
4076
  function e(x) {
4077
4077
  pe.value = x.detail, br.value = !0;
4078
4078
  }
@@ -4086,14 +4086,14 @@ function Yn() {
4086
4086
  function S() {
4087
4087
  return !!window.matchMedia("(display-mode: standalone)").matches;
4088
4088
  }
4089
- function f(x) {
4089
+ function s(x) {
4090
4090
  x.preventDefault(), wr.value = !0, Qr.value = x;
4091
4091
  }
4092
4092
  function g() {
4093
4093
  br.value = !1, !(!pe.value || !pe.value.waiting) && pe.value.waiting.postMessage({ type: "SKIP_WAITING" });
4094
4094
  }
4095
- return 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));
4095
+ return an(() => {
4096
+ Zr == null && (Zr = document.addEventListener("swUpdated", e, { once: !0 })), Jr == null && (Jr = navigator.serviceWorker.addEventListener("controllerchange", t)), jr == null && (jr = window.addEventListener("beforeinstallprompt", s));
4097
4097
  }), Nr = {
4098
4098
  canInstallApp: wr,
4099
4099
  canUpdateApp: br,
@@ -4102,139 +4102,135 @@ function Yn() {
4102
4102
  updateApp: g
4103
4103
  }, Nr;
4104
4104
  }
4105
- function Ga(e) {
4105
+ function ka(e) {
4106
4106
  const t = [];
4107
- return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) => 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
- ]);
4107
+ return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) => An(l) || "Email must be valid")), t;
4124
4108
  }
4125
- const Kn = /* @__PURE__ */ Zn(Jn, [["render", jn]]);
4126
- function Wa(e) {
4109
+ const jn = /* @__PURE__ */ Zt({
4110
+ __name: "BT-Test",
4111
+ setup(e) {
4112
+ return (t, l) => (Jt(), jt("div", null, [
4113
+ Kt(Qt(ln), null, {
4114
+ default: Xt(() => [
4115
+ Ot("Test")
4116
+ ]),
4117
+ _: 1
4118
+ })
4119
+ ]));
4120
+ }
4121
+ });
4122
+ function Ga(e) {
4127
4123
  return {
4128
4124
  install(t, l) {
4129
4125
  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({
4126
+ console.log(t), t.component("bt-test", jn), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), xn(e.urls), Fn(e);
4127
+ const S = Wn(), s = zn(e);
4128
+ Zn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
4129
+ const g = Ln(e.auth);
4130
+ Yn(e.menu);
4131
+ const x = Nn({
4136
4132
  auth: g,
4137
- findPath: f.findPath,
4133
+ findPath: s.findPath,
4138
4134
  useBearerToken: !0
4139
- }), P = Fn({
4135
+ }), P = Gn({
4140
4136
  getTimeZone: () => g.timeZone.value
4141
4137
  });
4142
- Wn({
4138
+ Vn({
4143
4139
  dates: P
4144
- }), Yn(), Dn({
4140
+ }), Jn(), Tn({
4145
4141
  api: x,
4146
4142
  auth: g,
4147
- navigation: f
4143
+ navigation: s
4148
4144
  });
4149
4145
  }
4150
4146
  };
4151
4147
  }
4152
4148
  export {
4153
- Aa as DataURIToBlob,
4154
- va as addWeekday,
4149
+ Sa as DataURIToBlob,
4150
+ ma as addWeekday,
4155
4151
  Be as appendUrl,
4156
- sn as capitalizeWords,
4157
- fa as checkImage,
4158
- vn as containsSearch,
4159
- ma as containsWeekday,
4152
+ dn as capitalizeWords,
4153
+ ca as checkImage,
4154
+ yn as containsSearch,
4155
+ ha as containsWeekday,
4160
4156
  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,
4157
+ gn as copyItemByAlphabet,
4158
+ Nn as createApi,
4159
+ Ln as createAuth,
4160
+ Ga as createCore,
4161
+ Fn as createCosmetics,
4162
+ Gn as createDates,
4163
+ Wn as createDemo,
4164
+ Vn as createFilters,
4165
+ Yn as createMenu,
4166
+ zn as createNavigation,
4167
+ Jn as createPWA,
4168
+ Zn as createPresets,
4169
+ Pn as createSessionStoreDefinition,
4170
+ Tn as createStoreBuilder,
4171
+ xn as createUrl,
4176
4172
  qr as createWholeLastUpdateStoreDefinition,
4177
- hn as csvContains,
4178
- Pa as csvDefaults,
4173
+ vn as csvContains,
4174
+ Ca as csvDefaults,
4179
4175
  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,
4176
+ ta as distinct,
4177
+ na as extensionExists,
4178
+ wn as extractErrorDescription,
4179
+ on as fromCamelCase,
4180
+ aa as getAreaAround,
4181
+ la as getAreaToLeft,
4182
+ ua as getAreaToRight,
4183
+ ia as getGoogleMapsLocationLine,
4184
+ fa as getImageData,
4189
4185
  rt as getLocationLine,
4190
- wa as getMinDate,
4191
- dn as getMinDateString,
4192
- yn as getRandomColor,
4193
- wn as hasSearch,
4194
- ya as isArrayOfLength,
4186
+ ya as getMinDate,
4187
+ mn as getMinDateString,
4188
+ bn as getRandomColor,
4189
+ Sn as hasSearch,
4190
+ ga as isArrayOfLength,
4195
4191
  _e as isLengthyArray,
4196
- on as isMinDate,
4192
+ hn as isMinDate,
4197
4193
  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,
4194
+ va as removeWeekday,
4195
+ wa as roundTo,
4196
+ En as singularize,
4197
+ sa as toCamelCase,
4198
+ Aa as toCompareString,
4199
+ ba as toggleCSV,
4200
+ Ea as twiddleThumbs,
4205
4201
  ut as useActions,
4206
- un as useActionsTracker,
4202
+ fn as useActionsTracker,
4207
4203
  Er as useApi,
4208
- Pn as useAuth,
4204
+ Mn as useAuth,
4209
4205
  Wr as useAuthUrl,
4210
- Un as useBlade,
4211
- $n as useCSV,
4212
- _a as useCosmetics,
4213
- En as useDataUrl,
4214
- Na as useDates,
4206
+ $n as useBlade,
4207
+ kn as useCSV,
4208
+ Ta as useCosmetics,
4209
+ Dn as useDataUrl,
4210
+ Pa as useDates,
4215
4211
  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,
4212
+ Na as useDemo,
4213
+ Ma as useDocumentMeta,
4214
+ Rn as useDraggable,
4215
+ La as useFilters,
4216
+ un as useId,
4217
+ Ra as useItem,
4218
+ Ua as useList,
4219
+ Da as useLocalCache,
4220
+ _a as useLocalCosmetics,
4225
4221
  ve as useLocalDb,
4226
- $a as useMenu,
4222
+ Ba as useMenu,
4227
4223
  it as useNavigation,
4228
- ka as usePWA,
4229
- Fa as usePresets,
4230
- Rn as useResizable,
4231
- Ga as useRules,
4232
- Ta as useStore,
4224
+ Fa as usePWA,
4225
+ $a as usePresets,
4226
+ Bn as useResizable,
4227
+ ka as useRules,
4228
+ xa as useStore,
4233
4229
  Le as useStoreDefinition,
4234
- qn as useTracker,
4235
- Da as useUrls,
4236
- bn as validEmail,
4230
+ Hn as useTracker,
4231
+ Ia as useUrls,
4232
+ An as validEmail,
4237
4233
  Ye as weekdayPairs,
4238
- ha as weekdayShortName,
4239
- da as weekdayValue
4234
+ da as weekdayShortName,
4235
+ oa as weekdayValue
4240
4236
  };