bt-core-app 1.4.49 → 1.4.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { ref as Y, shallowRef as Le, computed as te, toValue as j, watch as _e, toRef as Yt, onMounted as Kr } from "vue";
2
- import { watchArray as Qr, useStorage as zt, useEventListener as he, toValue as Ae, useParentElement as Zt, useResizeObserver as Jt, useArrayUnique as jt, useArrayDifference as Fr, watchDebounced as Kt, tryOnMounted as Qt } from "@vueuse/core";
1
+ import { ref as z, shallowRef as Le, computed as te, toValue as j, watch as _e, toRef as zt, onMounted as Kr } from "vue";
2
+ import { watchArray as Qr, useStorage as Yt, useEventListener as he, toValue as Ae, useParentElement as Zt, useResizeObserver as Jt, useArrayUnique as jt, useArrayDifference as Fr, watchDebounced as Kt, tryOnMounted as Qt } from "@vueuse/core";
3
3
  import { DateTime as de } from "luxon";
4
4
  import { defineStore as Xr } from "pinia";
5
5
  import { useRouter as Or, useRoute as pr } from "vue-router";
@@ -11,7 +11,7 @@ function Ot(e) {
11
11
  return (e == "x" ? t : t & 3 | 8).toString(16);
12
12
  }
13
13
  function pt(e) {
14
- const t = Y([]), u = Le(), S = Le(), o = Le(), g = te(() => u.value != null);
14
+ const t = z([]), u = Le(), S = Le(), o = Le(), g = te(() => u.value != null);
15
15
  function _(h) {
16
16
  t.value = t.value.filter((m) => m.id != h);
17
17
  }
@@ -106,7 +106,7 @@ function Ne(e, t) {
106
106
  while (S.startsWith("/"));
107
107
  return `${u}/${S}`;
108
108
  }
109
- function Vn(e) {
109
+ function zn(e) {
110
110
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
111
111
  }
112
112
  function Yn(e = "blitzItExtensionExists") {
@@ -117,7 +117,7 @@ function Yn(e = "blitzItExtensionExists") {
117
117
  return console.log(fn(u)), !1;
118
118
  }
119
119
  }
120
- function zn(e, t) {
120
+ function Zn(e, t) {
121
121
  return [
122
122
  { lat: e.lat - t, lng: e.lng + t },
123
123
  { lat: e.lat - t, lng: e.lng - t },
@@ -125,7 +125,7 @@ function zn(e, t) {
125
125
  { lat: e.lat + t, lng: e.lng + t }
126
126
  ];
127
127
  }
128
- function Zn(e, t) {
128
+ function Jn(e, t) {
129
129
  return [
130
130
  { lat: e.lat - t * 2, lng: e.lng + t },
131
131
  { lat: e.lat - t * 2, lng: e.lng - t },
@@ -133,7 +133,7 @@ function Zn(e, t) {
133
133
  { lat: e.lat, lng: e.lng + t }
134
134
  ];
135
135
  }
136
- function Jn(e, t) {
136
+ function jn(e, t) {
137
137
  return [
138
138
  { lat: e.lat, lng: e.lng + t },
139
139
  { lat: e.lat, lng: e.lng - t },
@@ -141,7 +141,7 @@ function Jn(e, t) {
141
141
  { lat: e.lat + t * 2, lng: e.lng + t }
142
142
  ];
143
143
  }
144
- function jn(e) {
144
+ function Kn(e) {
145
145
  var t = et(e, !0);
146
146
  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(" ", "");
147
147
  }
@@ -153,13 +153,13 @@ function et(e, t = !1) {
153
153
  var u = "";
154
154
  return e.addressLineOne != null && !t && (u = e.addressLineOne + " "), e.streetNumber != null && (u = u + e.streetNumber + " "), e.streetName != null && (u = u + e.streetName + ", "), e.suburb != null && (u = u + e.suburb + " "), e.state != null && (u = u + e.state + " "), e.postcode != null && (u = u + e.postcode), u;
155
155
  }
156
- function Kn(e, t, u) {
156
+ function Qn(e, t, u) {
157
157
  if (e) {
158
158
  var S = new Image();
159
159
  S.onload = t, S.onerror = u, S.src = e;
160
160
  }
161
161
  }
162
- async function Qn(e, t = !0) {
162
+ async function Xn(e, t = !0) {
163
163
  return new Promise((u, S) => {
164
164
  e == null && S("no url given");
165
165
  var o = new Image();
@@ -176,7 +176,7 @@ async function Qn(e, t = !0) {
176
176
  function rn(e) {
177
177
  return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
178
178
  }
179
- function Xn(e) {
179
+ function On(e) {
180
180
  if (e != null && typeof e == "object")
181
181
  for (var t in e)
182
182
  /^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
@@ -195,25 +195,25 @@ const He = [
195
195
  { value: 7, short: "sat", values: ["sat", "saturday"] },
196
196
  { value: 0, short: "always", values: ["always", null, void 0] }
197
197
  ];
198
- function On(e) {
198
+ function pn(e) {
199
199
  if (e == null)
200
200
  return 0;
201
201
  const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), u = He.filter((S) => S.values.some((o) => t.some((g) => o == g))).map((S) => S.value);
202
202
  return u.length == 0 ? 8 : Math.min(...u);
203
203
  }
204
- function pn(e) {
204
+ function ea(e) {
205
205
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
206
206
  let u = He.find((S) => S.values.some((o) => o == t));
207
207
  return u != null ? u.short : "";
208
208
  }).filter((t) => t != null && t.length > 0).toString();
209
209
  }
210
- function ea(e, t) {
210
+ function ra(e, t) {
211
211
  if (e == null || t == null)
212
212
  return !0;
213
213
  const u = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), o = He.find((g) => g.values.some((_) => _ == S));
214
214
  return o != null && u.some((g) => g == o.short || o.values.some((_) => _ == g));
215
215
  }
216
- function ra(e, t) {
216
+ function ta(e, t) {
217
217
  if (t == null)
218
218
  return e;
219
219
  let u = e ?? "";
@@ -221,13 +221,13 @@ function ra(e, t) {
221
221
  let S = [...new Set(u.replaceAll(" ", "").toLowerCase().split(",").map((o) => He.find((g) => g.values.some((_) => _ == o))).filter((o) => o != null).sort(qe.firstBy((o) => (o == null ? void 0 : o.value) ?? 0)).map((o) => o == null ? void 0 : o.short))].toString();
222
222
  return S.length > 0 ? S : void 0;
223
223
  }
224
- function ta(e, t) {
224
+ function na(e, t) {
225
225
  if (t == null || e == null)
226
226
  return e;
227
227
  let u = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), o = [...new Set(u.replaceAll(" ", "").toLowerCase().split(",").map((g) => He.find((_) => _.values.some((P) => P == g && P != S))).filter((g) => g != null).sort(qe.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
228
228
  return o.length > 0 ? o : void 0;
229
229
  }
230
- function na(e, t) {
230
+ function aa(e, t) {
231
231
  return e != null && Array.isArray(e) && e.length == t;
232
232
  }
233
233
  function Te(e, t = 0) {
@@ -236,13 +236,13 @@ function Te(e, t = 0) {
236
236
  function nn(e) {
237
237
  return e == "0001-01-01T00:00:00Z";
238
238
  }
239
- function aa() {
239
+ function la() {
240
240
  return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
241
241
  }
242
242
  function an() {
243
243
  return "0001-01-01T00:00:00Z";
244
244
  }
245
- function la(e, t) {
245
+ function ua(e, t) {
246
246
  let u = "1", S = 0;
247
247
  if (S < t)
248
248
  do
@@ -251,7 +251,7 @@ function la(e, t) {
251
251
  let o = Number.parseInt(u);
252
252
  return Math.round(e * o) / o;
253
253
  }
254
- function ua(e, t) {
254
+ function ia(e, t) {
255
255
  let u = e ?? "";
256
256
  return t != null && (ln(u, t) ? u = u.split(",").filter((S) => S != t).toString() : u != null ? u = `${u},${t}` : u = t), u != null && u.length > 0 ? u : null;
257
257
  }
@@ -290,7 +290,7 @@ function rt(e, t = (u) => u) {
290
290
  return Te(g) && S.push(...g), S;
291
291
  }, [])] : [];
292
292
  }
293
- function ia(e) {
293
+ function ca(e) {
294
294
  const t = e.split(","), u = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), S = t[0].split(":")[1].split(";")[0], o = new Uint8Array(u.length);
295
295
  for (let g = 0; g < u.length; g++)
296
296
  o[g] = u.charCodeAt(g);
@@ -326,10 +326,10 @@ function on(e, t, u) {
326
326
  }
327
327
  return !1;
328
328
  }
329
- function ca(e) {
329
+ function fa(e) {
330
330
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
331
331
  }
332
- function fa(e = 2e3) {
332
+ function sa(e = 2e3) {
333
333
  return new Promise((t) => {
334
334
  setTimeout(() => t(), e);
335
335
  });
@@ -347,11 +347,14 @@ function wr(e, t) {
347
347
  function dn(e) {
348
348
  return e ? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) : !1;
349
349
  }
350
+ function hn(e) {
351
+ return e.endsWith("ies") ? e.slice(0, e.length - 3) : e.endsWith("es") ? e.slice(0, e.length - 2) : e.endsWith("s") ? e.slice(0, e.length - 1) : e;
352
+ }
350
353
  let br;
351
354
  function Sr() {
352
355
  return br;
353
356
  }
354
- function hn(e) {
357
+ function mn(e) {
355
358
  const t = (e == null ? void 0 : e.buildHeaders) ?? P, u = (e == null ? void 0 : e.buildQuery) ?? g, S = (e == null ? void 0 : e.buildUrl) ?? _, o = e == null ? void 0 : e.demo;
356
359
  function g(l) {
357
360
  let r = new URLSearchParams();
@@ -655,32 +658,32 @@ function kr() {
655
658
  const e = Mr.NODE_ENV;
656
659
  return ye == null ? "" : (ye[e] ?? ye.development).auth ?? "";
657
660
  }
658
- function mn(e) {
661
+ function vn(e) {
659
662
  const t = Mr.NODE_ENV;
660
663
  if (ye == null)
661
664
  return "";
662
665
  const u = ye[t] ?? ye.development;
663
666
  return e == null ? u.data ?? "" : u.other[e] ?? u.data ?? "";
664
667
  }
665
- function sa() {
668
+ function oa() {
666
669
  return ye;
667
670
  }
668
- function vn(e) {
671
+ function gn(e) {
669
672
  return ye = e, ye;
670
673
  }
671
674
  let or = "Australia/Melbourne", Ar;
672
675
  const Gr = "auth-credentials-state";
673
- function oa() {
676
+ function da() {
674
677
  return Ar;
675
678
  }
676
- function gn(e) {
679
+ function yn(e) {
677
680
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
678
- let u = Y(localStorage.getItem(Gr) ?? "");
681
+ let u = z(localStorage.getItem(Gr) ?? "");
679
682
  u.value.length == 0 && S();
680
683
  function S() {
681
684
  u.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Gr, u.value);
682
685
  }
683
- const o = zt("auth-credentials", {});
686
+ const o = Yt("auth-credentials", {});
684
687
  function g(I) {
685
688
  if (I == null)
686
689
  return !0;
@@ -855,13 +858,13 @@ function gn(e) {
855
858
  tryLogin: b
856
859
  }, Ar;
857
860
  }
858
- function yn(e, t, u = {}) {
861
+ function wn(e, t, u = {}) {
859
862
  const {
860
863
  preventDefault: S = !1,
861
864
  stopPropagation: o = !1,
862
865
  axis: g = "both"
863
866
  } = u, _ = { capture: u.capture ?? !0 };
864
- let P = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = { x: 0, y: 0 }, F = [], h = [], m = Y(!1);
867
+ let P = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = { x: 0, y: 0 }, F = [], h = [], m = z(!1);
865
868
  function l(M) {
866
869
  j(S) && M.preventDefault(), j(o) && M.stopPropagation();
867
870
  }
@@ -926,34 +929,34 @@ function yn(e, t, u = {}) {
926
929
  turnDraggableOn: x
927
930
  };
928
931
  }
929
- const wn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
930
- function bn(e, t = {}) {
932
+ const bn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
933
+ function Sn(e, t = {}) {
931
934
  let u, S = t.handleWidth ?? 12, o = t.handleZIndex ?? 100, g = t.minWidth ?? 0, _ = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, N = t.maxHeight ?? Number.MAX_SAFE_INTEGER, $ = t.preventDefault ?? !1, F = t.stopPropagation ?? !1, h, m = [];
932
- const l = Y(!1);
935
+ const l = z(!1);
933
936
  let r = [], E = [];
934
- const y = Y(!1), c = Y({ x: 0, y: 0 });
937
+ const y = z(!1), c = z({ x: 0, y: 0 });
935
938
  let x = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, w = {};
936
939
  function M(W) {
937
940
  Ae($) && W.preventDefault(), Ae(F) && W.stopPropagation();
938
941
  }
939
- function b(W, z) {
940
- m = z.map(I), m.forEach((H) => W.$el.appendChild(H));
942
+ function b(W, Y) {
943
+ m = Y.map(I), m.forEach((H) => W.$el.appendChild(H));
941
944
  }
942
945
  function C(W) {
943
- m.forEach((z) => W.$el.removeChild(z));
946
+ m.forEach((Y) => W.$el.removeChild(Y));
944
947
  }
945
948
  function I(W) {
946
- const z = S + "px", H = -S / 2 + "px", ae = o + 1, G = document.createElement("div");
947
- return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? o : ae).toString(), G.style.cursor = K(W), W.includes("t") && (G.style.top = H, G.style.height = z, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = H, G.style.height = z, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = H, G.style.width = z, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = H, G.style.width = z, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
949
+ const Y = S + "px", H = -S / 2 + "px", ae = o + 1, G = document.createElement("div");
950
+ return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? o : ae).toString(), G.style.cursor = K(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;
948
951
  }
949
952
  function D(W) {
950
953
  var ne;
951
954
  if (!m.some((fe) => fe == W.target))
952
955
  return;
953
- const z = Ae(e);
954
- if (!z)
956
+ const Y = Ae(e);
957
+ if (!Y)
955
958
  return;
956
- const H = z.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
959
+ const H = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
957
960
  if (c.value.x = G.clientX, c.value.y = G.clientY, x = {
958
961
  left: H.offsetLeft,
959
962
  top: H.offsetTop,
@@ -965,10 +968,10 @@ function bn(e, t = {}) {
965
968
  document.documentElement.style.cursor = K(X.dataset.handle), h = X.dataset.handle, E.push(he("mousemove", s)), E.push(he("mouseup", A)), E.push(he("touchmove", s)), E.push(he("touchend", A)), M(W);
966
969
  }
967
970
  function s(W) {
968
- const z = Ae(e);
969
- if (!z)
971
+ const Y = Ae(e);
972
+ if (!Y)
970
973
  return;
971
- const H = z.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
974
+ const H = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
972
975
  let X = G.clientX - c.value.x, ne = G.clientY - c.value.y;
973
976
  const fe = Ae(x);
974
977
  if (h.includes("t")) {
@@ -995,19 +998,19 @@ function bn(e, t = {}) {
995
998
  }), E.length = 0;
996
999
  }
997
1000
  function K(W) {
998
- const z = {
1001
+ const Y = {
999
1002
  t: "n",
1000
1003
  r: "e",
1001
1004
  b: "s",
1002
1005
  l: "w"
1003
1006
  };
1004
- return W.split("").map((H) => z[H]).join("") + "-resize";
1007
+ return W.split("").map((H) => Y[H]).join("") + "-resize";
1005
1008
  }
1006
1009
  function Q(W) {
1007
- const z = Ae(e);
1008
- if (!z)
1010
+ const Y = Ae(e);
1011
+ if (!Y)
1009
1012
  return;
1010
- const H = z.$el;
1013
+ const H = Y.$el;
1011
1014
  if (console.log(u), u !== "page" && W == "page") {
1012
1015
  const ae = Zt(H), G = Ae(ae) ?? null;
1013
1016
  let X = 0;
@@ -1024,7 +1027,7 @@ function bn(e, t = {}) {
1024
1027
  }), he(H, "transitionend", () => {
1025
1028
  H.style.width = "auto", H.style.top = "", H.style.left = "", H.style.position = "", H.style.transition = "", l.value = !1;
1026
1029
  }, { once: !0 });
1027
- } else if ((u == "page" || z.$el.style.position !== "absolute") && W !== "page") {
1030
+ } else if ((u == "page" || Y.$el.style.position !== "absolute") && W !== "page") {
1028
1031
  H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", l.value = !0, x = {
1029
1032
  height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
1030
1033
  width: parseInt(window.getComputedStyle(H).getPropertyValue("width")),
@@ -1051,23 +1054,23 @@ function bn(e, t = {}) {
1051
1054
  }
1052
1055
  }
1053
1056
  function re(W) {
1054
- const z = Ae(e);
1055
- if (!z)
1057
+ const Y = Ae(e);
1058
+ if (!Y)
1056
1059
  return;
1057
- const H = z.$el;
1060
+ const H = Y.$el;
1058
1061
  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);
1059
1062
  }
1060
- function ie(W, z) {
1063
+ function ie(W, Y) {
1061
1064
  if (y.value)
1062
1065
  return;
1063
1066
  const H = Ae(e);
1064
- H && (b(H, W ?? wn), Q(z), r.push(he(H.$el, "mousedown", D)), r.push(he(H.$el, "touchstart", D)), y.value = !0, u = z);
1067
+ H && (b(H, W ?? bn), Q(Y), r.push(he(H.$el, "mousedown", D)), r.push(he(H.$el, "touchstart", D)), y.value = !0, u = Y);
1065
1068
  }
1066
1069
  function we(W) {
1067
1070
  if (!y.value)
1068
1071
  return;
1069
- const z = Ae(e);
1070
- z && (C(z), Q(W), r.forEach((H) => {
1072
+ const Y = Ae(e);
1073
+ Y && (C(Y), Q(W), r.forEach((H) => {
1071
1074
  H();
1072
1075
  }), r.length = 0, y.value = !1);
1073
1076
  }
@@ -1077,8 +1080,8 @@ function bn(e, t = {}) {
1077
1080
  turnResizingOff: we
1078
1081
  };
1079
1082
  }
1080
- function Sn(e) {
1081
- const t = (e == null ? void 0 : e.blade) ?? Y(null), u = (e == null ? void 0 : e.handle) ?? Y(null), S = Y(!1), o = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = Y((e == null ? void 0 : e.defaultVariant) ?? "page"), _ = Y({}), { turnResizingOff: P, turnResizingOn: N } = bn(t), { turnDraggableOff: $, turnDraggableOn: F } = yn(t, u);
1083
+ function An(e) {
1084
+ const t = (e == null ? void 0 : e.blade) ?? z(null), u = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), o = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), _ = z({}), { turnResizingOff: P, turnResizingOn: N } = Sn(t), { turnDraggableOff: $, turnDraggableOn: F } = wn(t, u);
1082
1085
  Jt(t, (m) => {
1083
1086
  const l = m[0], { width: r } = l.contentRect;
1084
1087
  S.value = r < o;
@@ -1110,10 +1113,10 @@ const dr = {
1110
1113
  warning: "#FB8C00"
1111
1114
  };
1112
1115
  let Er;
1113
- function da() {
1116
+ function ha() {
1114
1117
  return Er;
1115
1118
  }
1116
- function ha(e) {
1119
+ function ma(e) {
1117
1120
  const t = localStorage.getItem("cosmetics");
1118
1121
  let u;
1119
1122
  return t != null && t.length > 0 && (u = JSON.parse(t)), u ?? (u = {}), u.dark ?? (u.dark = e == null ? void 0 : e.dark), u.light ?? (u.light = e == null ? void 0 : e.light), u.theme ?? (u.theme = e == null ? void 0 : e.defaultTheme), {
@@ -1128,8 +1131,8 @@ function ha(e) {
1128
1131
  }
1129
1132
  };
1130
1133
  }
1131
- function An(e) {
1132
- const t = Y({});
1134
+ function En(e) {
1135
+ const t = z({});
1133
1136
  let u = e.vuetifyInstance;
1134
1137
  function S() {
1135
1138
  const h = localStorage.getItem("cosmetics");
@@ -1194,10 +1197,10 @@ function An(e) {
1194
1197
  undoTemporaryColor: F
1195
1198
  }, Er;
1196
1199
  }
1197
- const ma = {
1200
+ const va = {
1198
1201
  canExportCSV: !1
1199
1202
  };
1200
- function En() {
1203
+ function In() {
1201
1204
  function e(t) {
1202
1205
  const {
1203
1206
  items: u,
@@ -1251,10 +1254,10 @@ function En() {
1251
1254
  };
1252
1255
  }
1253
1256
  let Ir;
1254
- function va() {
1257
+ function ga() {
1255
1258
  return Ir;
1256
1259
  }
1257
- function In(e) {
1260
+ function Dn(e) {
1258
1261
  const t = e.getUTC ?? de.utc;
1259
1262
  function u() {
1260
1263
  return o().startOf("day").toUTC().toString() ?? "";
@@ -1296,11 +1299,11 @@ function In(e) {
1296
1299
  }, Ir;
1297
1300
  }
1298
1301
  let Dr;
1299
- function ga() {
1302
+ function ya() {
1300
1303
  return Dr;
1301
1304
  }
1302
- function Dn(e) {
1303
- const t = Y(!1), u = (e == null ? void 0 : e.apis) ?? [];
1305
+ function xn(e) {
1306
+ const t = z(!1), u = (e == null ? void 0 : e.apis) ?? [];
1304
1307
  function S() {
1305
1308
  t.value = !0;
1306
1309
  }
@@ -1407,15 +1410,15 @@ function Dn(e) {
1407
1410
  patch: F
1408
1411
  }, Dr;
1409
1412
  }
1410
- var xn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1411
- function ya(e) {
1413
+ var _n = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1414
+ function wa(e) {
1412
1415
  function t(u) {
1413
1416
  var o;
1414
1417
  const S = u.matched.slice().reverse().find((g) => g.meta && g.meta.title);
1415
1418
  if (S)
1416
1419
  document.title = S.meta.title;
1417
1420
  else {
1418
- const g = xn.NODE_ENV;
1421
+ const g = _n.NODE_ENV;
1419
1422
  let _ = "";
1420
1423
  g == "development" ? _ = "BWeb Dev" : g == "staging" ? _ = "BlitzIt Sandpit" : _ = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((o = e == null ? void 0 : e.demo) == null ? void 0 : o.isDemoing.value) == !0 && (_ = `Training: ${_}`), document.title = _;
1421
1424
  }
@@ -1425,10 +1428,10 @@ function ya(e) {
1425
1428
  };
1426
1429
  }
1427
1430
  let xr;
1428
- function wa() {
1431
+ function ba() {
1429
1432
  return xr;
1430
1433
  }
1431
- function _n(e) {
1434
+ function Tn(e) {
1432
1435
  function t(s, A, K) {
1433
1436
  return s ? nn(s) ? K ?? "" : e.dates.tzString(s, A) : K ?? s ?? "";
1434
1437
  }
@@ -1748,11 +1751,11 @@ var at = { exports: {} };
1748
1751
  re(b[K], K);
1749
1752
  return Q;
1750
1753
  function re(ie, we) {
1751
- C.resolve(ie).then(W, function(z) {
1752
- D || (D = !0, P.reject(Q, z));
1754
+ C.resolve(ie).then(W, function(Y) {
1755
+ D || (D = !0, P.reject(Q, Y));
1753
1756
  });
1754
- function W(z) {
1755
- s[we] = z, ++A === I && !D && (D = !0, P.resolve(Q, s));
1757
+ function W(Y) {
1758
+ s[we] = Y, ++A === I && !D && (D = !0, P.resolve(Q, s));
1756
1759
  }
1757
1760
  }
1758
1761
  }
@@ -1955,7 +1958,7 @@ var at = { exports: {} };
1955
1958
  }, d.readAsBinaryString(n);
1956
1959
  });
1957
1960
  }
1958
- function z(n) {
1961
+ function Y(n) {
1959
1962
  var i = C(atob(n.data));
1960
1963
  return F([i], { type: n.type });
1961
1964
  }
@@ -2058,7 +2061,7 @@ var at = { exports: {} };
2058
2061
  var U = L.objectStore(a._dbInfo.storeName), B = U.get(n);
2059
2062
  B.onsuccess = function() {
2060
2063
  var k = B.result;
2061
- k === void 0 && (k = null), H(k) && (k = z(k)), v(k);
2064
+ k === void 0 && (k = null), H(k) && (k = Y(k)), v(k);
2062
2065
  }, B.onerror = function() {
2063
2066
  f(B.error);
2064
2067
  };
@@ -2082,7 +2085,7 @@ var at = { exports: {} };
2082
2085
  var q = B.result;
2083
2086
  if (q) {
2084
2087
  var Z = q.value;
2085
- H(Z) && (Z = z(Z));
2088
+ H(Z) && (Z = Y(Z));
2086
2089
  var p = n(Z, q.key, k++);
2087
2090
  p !== void 0 ? v(p) : q.continue();
2088
2091
  } else
@@ -2354,7 +2357,7 @@ var at = { exports: {} };
2354
2357
  function ar() {
2355
2358
  return typeof openDatabase == "function";
2356
2359
  }
2357
- var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", lr = "~~local_forage_type~", Ye = /^~~local_forage_type~([^~]+)~/, Ue = "__lfsc__:", Pe = Ue.length, $e = "arbf", Ie = "blob", ze = "si08", Ze = "ui08", Fe = "uic8", ke = "si16", R = "si32", J = "ur16", V = "ui32", O = "fl32", oe = "fl64", ve = Pe + $e.length, De = Object.prototype.toString;
2360
+ var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", lr = "~~local_forage_type~", ze = /^~~local_forage_type~([^~]+)~/, Ue = "__lfsc__:", Pe = Ue.length, $e = "arbf", Ie = "blob", Ye = "si08", Ze = "ui08", Fe = "uic8", ke = "si16", R = "si32", J = "ur16", V = "ui32", O = "fl32", oe = "fl64", ve = Pe + $e.length, De = Object.prototype.toString;
2358
2361
  function Se(n) {
2359
2362
  var i = n.length * 0.75, a = n.length, d, v = 0, f, T, L, U;
2360
2363
  n[n.length - 1] === "=" && (i--, n[n.length - 2] === "=" && i--);
@@ -2373,7 +2376,7 @@ var at = { exports: {} };
2373
2376
  var a = "";
2374
2377
  if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
2375
2378
  var d, v = Ue;
2376
- n instanceof ArrayBuffer ? (d = n, v += $e) : (d = n.buffer, a === "[object Int8Array]" ? v += ze : a === "[object Uint8Array]" ? v += Ze : a === "[object Uint8ClampedArray]" ? v += Fe : a === "[object Int16Array]" ? v += ke : a === "[object Uint16Array]" ? v += J : a === "[object Int32Array]" ? v += R : a === "[object Uint32Array]" ? v += V : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : i(new Error("Failed to get type for BinaryArray"))), i(v + se(d));
2379
+ n instanceof ArrayBuffer ? (d = n, v += $e) : (d = n.buffer, a === "[object Int8Array]" ? v += Ye : a === "[object Uint8Array]" ? v += Ze : a === "[object Uint8ClampedArray]" ? v += Fe : a === "[object Int16Array]" ? v += ke : a === "[object Uint16Array]" ? v += J : a === "[object Int32Array]" ? v += R : a === "[object Uint32Array]" ? v += V : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : i(new Error("Failed to get type for BinaryArray"))), i(v + se(d));
2377
2380
  } else if (a === "[object Blob]") {
2378
2381
  var f = new FileReader();
2379
2382
  f.onload = function() {
@@ -2391,8 +2394,8 @@ var at = { exports: {} };
2391
2394
  if (n.substring(0, Pe) !== Ue)
2392
2395
  return JSON.parse(n);
2393
2396
  var i = n.substring(ve), a = n.substring(Pe, ve), d;
2394
- if (a === Ie && Ye.test(i)) {
2395
- var v = i.match(Ye);
2397
+ if (a === Ie && ze.test(i)) {
2398
+ var v = i.match(ze);
2396
2399
  d = v[1], i = i.substring(v[0].length);
2397
2400
  }
2398
2401
  var f = Se(i);
@@ -2401,7 +2404,7 @@ var at = { exports: {} };
2401
2404
  return f;
2402
2405
  case Ie:
2403
2406
  return F([f], { type: d });
2404
- case ze:
2407
+ case Ye:
2405
2408
  return new Int8Array(f);
2406
2409
  case Ze:
2407
2410
  return new Uint8Array(f);
@@ -3005,8 +3008,8 @@ var at = { exports: {} };
3005
3008
  }, { 3: 3 }] }, {}, [4])(4);
3006
3009
  });
3007
3010
  })(at);
3008
- var Tn = at.exports;
3009
- const lt = /* @__PURE__ */ en(Tn);
3011
+ var Cn = at.exports;
3012
+ const lt = /* @__PURE__ */ en(Cn);
3010
3013
  let Qe = null;
3011
3014
  lt.config({
3012
3015
  name: nt()
@@ -3015,7 +3018,7 @@ function me() {
3015
3018
  const e = nt();
3016
3019
  return (Qe == null || Qe.config.name != e) && (Qe = lt.createInstance({ name: e })), Qe;
3017
3020
  }
3018
- function ba() {
3021
+ function Sa() {
3019
3022
  async function e(o) {
3020
3023
  const g = me();
3021
3024
  (await g.keys()).filter((N) => N.startsWith(o)).forEach((N) => {
@@ -3039,19 +3042,19 @@ function ba() {
3039
3042
  };
3040
3043
  }
3041
3044
  let Oe;
3042
- function Sa(e) {
3045
+ function Aa(e) {
3043
3046
  return Oe(e)();
3044
3047
  }
3045
3048
  function ut(e) {
3046
3049
  return Oe(e);
3047
3050
  }
3048
- function Cn(e) {
3049
- return Oe = (t) => Pn({
3051
+ function Pn(e) {
3052
+ return Oe = (t) => Mn({
3050
3053
  ...e,
3051
3054
  ...t
3052
3055
  }), Oe;
3053
3056
  }
3054
- function Pn(e) {
3057
+ function Mn(e) {
3055
3058
  if (console.log("getting store definition"), e.storeMode == null && e.nav != null && e.navigation != null) {
3056
3059
  const t = e.navigation.findItem(e.nav);
3057
3060
  e.storeMode = t == null ? void 0 : t.storeMode, e.storeName ?? (e.storeName = e.navigation.findStoreName(e.nav));
@@ -3067,9 +3070,9 @@ function Pn(e) {
3067
3070
  throw new Error("Must supply an api object to use store");
3068
3071
  return Wr({ ...e, storeName: e.storeName ?? "" });
3069
3072
  } else
3070
- return Ln({ ...e, storeName: e.storeName ?? "" });
3073
+ return Nn({ ...e, storeName: e.storeName ?? "" });
3071
3074
  }
3072
- const Mn = (e) => {
3075
+ const Ln = (e) => {
3073
3076
  let t = j(e.url) ?? void 0;
3074
3077
  if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Ne(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Ne(t, e.id)), e.params != null) {
3075
3078
  t ?? (t = "");
@@ -3080,10 +3083,10 @@ const Mn = (e) => {
3080
3083
  }
3081
3084
  return e.finalUrl = t, e.finalUrl ?? "";
3082
3085
  };
3083
- function Ln(e) {
3086
+ function Nn(e) {
3084
3087
  return Xr(e.storeName, () => {
3085
3088
  var l;
3086
- const t = de.utc().toSeconds() / 86400, u = Y({}), S = Y({}), o = e.storageMode == "local-cache", g = e.buildUrl ?? ((l = e.api) == null ? void 0 : l.buildUrl) ?? Mn;
3089
+ const t = de.utc().toSeconds() / 86400, u = z({}), S = z({}), o = e.storageMode == "local-cache", g = e.buildUrl ?? ((l = e.api) == null ? void 0 : l.buildUrl) ?? Ln;
3087
3090
  function _(r) {
3088
3091
  var E, y;
3089
3092
  return `${e.storeName ?? "base"}_${((E = e.auth) == null ? void 0 : E.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((y = r.data) == null ? void 0 : y.id) ?? "no-item-id"}`;
@@ -3249,7 +3252,7 @@ function Ln(e) {
3249
3252
  }
3250
3253
  function Wr(e) {
3251
3254
  return Xr(e.storeName, () => {
3252
- const t = Y(), u = Y(0), S = de.utc().toSeconds() / 3600, o = Y(), g = Y(), _ = Y({}), P = e.storageMode == "local-cache";
3255
+ const t = z(), u = z(0), S = de.utc().toSeconds() / 3600, o = z(), g = z(), _ = z({}), P = e.storageMode == "local-cache";
3253
3256
  function N() {
3254
3257
  var c;
3255
3258
  return `${e.storeName}_${((c = e.auth) == null ? void 0 : c.credentials.value.userID) ?? "no-user-id"}`;
@@ -3433,8 +3436,8 @@ function Wr(e) {
3433
3436
  };
3434
3437
  });
3435
3438
  }
3436
- function Nn(e, t) {
3437
- const u = Y(!1), S = Yt(e);
3439
+ function Rn(e, t) {
3440
+ const u = z(!1), S = zt(e);
3438
3441
  let o = g(j(e));
3439
3442
  (t == null ? void 0 : t.useTracker) !== !1 && _e(S, (P) => {
3440
3443
  u.value = g(P) != o;
@@ -3456,7 +3459,7 @@ function Nn(e, t) {
3456
3459
  restartTracker: _
3457
3460
  };
3458
3461
  }
3459
- function Aa(e, t) {
3462
+ function Ea(e, t) {
3460
3463
  var ae;
3461
3464
  const {
3462
3465
  // useBladeSrc = true,
@@ -3464,7 +3467,7 @@ function Aa(e, t) {
3464
3467
  } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode) ?? "session", o = e.storageMode ?? (t == null ? void 0 : t.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? "basic", _ = Or(), P = pr(), N = j(e.proxyQueryKey), $ = te(() => {
3465
3468
  var G;
3466
3469
  return j(e.proxyID) ?? (N != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[N] : void 0);
3467
- }), F = Y(void 0), { actionErrorMsg: h, actionLoadingMsg: m, deleteItem: l, getItem: r, getAllItems: E, restoreItem: y, saveItem: c } = tt({
3470
+ }), F = z(void 0), { actionErrorMsg: h, actionLoadingMsg: m, deleteItem: l, getItem: r, getAllItems: E, restoreItem: y, saveItem: c } = tt({
3468
3471
  nav: g,
3469
3472
  proxyID: $.value,
3470
3473
  store: ut({
@@ -3472,7 +3475,7 @@ function Aa(e, t) {
3472
3475
  storageMode: o,
3473
3476
  nav: g
3474
3477
  })
3475
- }), x = te(() => e.errorMsg ?? h.value), w = te(() => e.loadingMsg ?? m.value), M = te(() => w.value != null), b = Y(e.itemID ?? (u ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), C = Y(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), I = Le(!1), D = te(() => {
3478
+ }), x = te(() => e.errorMsg ?? h.value), w = te(() => e.loadingMsg ?? m.value), M = te(() => w.value != null), b = z(e.itemID ?? (u ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), C = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), I = Le(!1), D = te(() => {
3476
3479
  if (C.value == "new")
3477
3480
  return !1;
3478
3481
  const G = j(F);
@@ -3490,7 +3493,7 @@ function Aa(e, t) {
3490
3493
  }), K = te(() => {
3491
3494
  const G = j(F);
3492
3495
  return e.onCanSave != null ? e.onCanSave(G) : !0;
3493
- }), { isChanged: Q, restartTracker: re } = Nn(F, {
3496
+ }), { isChanged: Q, restartTracker: re } = Rn(F, {
3494
3497
  useTracker: e.trackChanges,
3495
3498
  propsToIgnore: e.trackIgnoreProps,
3496
3499
  propsToTrack: e.trackProps
@@ -3555,7 +3558,7 @@ function Aa(e, t) {
3555
3558
  }
3556
3559
  re();
3557
3560
  }
3558
- function z(G, X) {
3561
+ function Y(G, X) {
3559
3562
  const {
3560
3563
  additionalUrl: ne,
3561
3564
  onCanSaveAsync: fe,
@@ -3603,17 +3606,17 @@ function Aa(e, t) {
3603
3606
  mode: C,
3604
3607
  refresh: W,
3605
3608
  restoreItem: we,
3606
- saveItem: z,
3609
+ saveItem: Y,
3607
3610
  showError: I,
3608
3611
  toggleMode: H
3609
3612
  };
3610
3613
  }
3611
- const qr = Y(!0), Hr = Y(!1), Vr = Y(), mr = Y(!1);
3614
+ const qr = z(!0), Hr = z(!1), Vr = z(), mr = z(!1);
3612
3615
  let vr = null, _r;
3613
- function Rn() {
3616
+ function Un() {
3614
3617
  return _r;
3615
3618
  }
3616
- function Un(e) {
3619
+ function Bn(e) {
3617
3620
  const t = e.defaultCacheExpiryHours ?? 7;
3618
3621
  e.getDisplayName ?? (e.getDisplayName = (m) => {
3619
3622
  if (m.displayName != null)
@@ -3651,7 +3654,7 @@ function Un(e) {
3651
3654
  const l = P(m);
3652
3655
  if (l == null)
3653
3656
  return;
3654
- let r = mn(l.microservice ?? "default") ?? "";
3657
+ let r = vn(l.microservice ?? "default") ?? "";
3655
3658
  return l.path != null && (r = Ne(r, l.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3656
3659
  }
3657
3660
  function $(m) {
@@ -3660,7 +3663,7 @@ function Un(e) {
3660
3663
  return l.singleName;
3661
3664
  const r = l == null ? void 0 : l.displayName;
3662
3665
  if (r != null)
3663
- return r.endsWith("ies") ? r.slice(0, r.length - 3) : r.endsWith("es") ? r.slice(0, r.length - 2) : r.endsWith("s") ? r.slice(0, r.length - 1) : r;
3666
+ return hn(r);
3664
3667
  }
3665
3668
  function F(m) {
3666
3669
  const l = P(m);
@@ -3691,15 +3694,15 @@ function Un(e) {
3691
3694
  updateNavigationProperties: h
3692
3695
  }, _r;
3693
3696
  }
3694
- function Ea(e, t, u) {
3697
+ function Ia(e, t, u) {
3695
3698
  var Fe, ke;
3696
- const S = En(), o = Rn(), g = Or(), _ = pr(), { bladeData: P } = Sn({}), N = e.useBladeSrc ?? !0, $ = e.useRouteSrc ?? !0, F = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", h = e.storeMode ?? ((Fe = o.findItem(F)) == null ? void 0 : Fe.storeMode) ?? "session", m = e.storageMode ?? ((ke = o.findItem(F)) == null ? void 0 : ke.storageMode) ?? "local-cache", l = j(e.customFilters) ?? [], r = Y([]);
3697
- let E = Y(new Array());
3699
+ const S = In(), o = Un(), g = Or(), _ = pr(), { bladeData: P } = An({}), N = e.useBladeSrc ?? !0, $ = e.useRouteSrc ?? !0, F = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", h = e.storeMode ?? ((Fe = o.findItem(F)) == null ? void 0 : Fe.storeMode) ?? "session", m = e.storageMode ?? ((ke = o.findItem(F)) == null ? void 0 : ke.storageMode) ?? "local-cache", l = j(e.customFilters) ?? [], r = z([]);
3700
+ let E = z(new Array());
3698
3701
  const y = te(() => jt([
3699
3702
  ...l.filter((R) => R.name != null).map((R) => R.name),
3700
3703
  ...e.defaultFilters ?? [],
3701
3704
  ...r.value
3702
- ]).value), c = Y((e.defaultFilters ?? []).map((R) => y.value.indexOf(R))), x = te(() => Fr(E, c).value.length > 0 || Fr(c, E).value.length > 0), w = Y(M());
3705
+ ]).value), c = z((e.defaultFilters ?? []).map((R) => y.value.indexOf(R))), x = te(() => Fr(E, c).value.length > 0 || Fr(c, E).value.length > 0), w = z(M());
3703
3706
  function M() {
3704
3707
  var R, J;
3705
3708
  if (N) {
@@ -3727,7 +3730,7 @@ function Ea(e, t, u) {
3727
3730
  return V;
3728
3731
  }
3729
3732
  return e.proxyID;
3730
- }), C = Y(I());
3733
+ }), C = z(I());
3731
3734
  function I() {
3732
3735
  var R, J;
3733
3736
  if (N) {
@@ -3741,12 +3744,12 @@ function Ea(e, t, u) {
3741
3744
  return V;
3742
3745
  }
3743
3746
  }
3744
- const D = Y(j(e.startShowingInactive) ?? !1), s = te(() => [
3747
+ const D = z(j(e.startShowingInactive) ?? !1), s = te(() => [
3745
3748
  ...e.searchProps ?? [],
3746
3749
  ...(e.headers ?? []).filter((R) => R.searchable != null && R.value != null).map((R) => R.value ?? "")
3747
- ]), A = Y([]), K = Le([]), Q = Y([]);
3750
+ ]), A = z([]), K = Le([]), Q = z([]);
3748
3751
  let re;
3749
- const { actionErrorMsg: ie, actionLoadingMsg: we, deleteItem: W, doAction: z, getItem: H, getAllItems: ae, restoreItem: G } = tt({
3752
+ const { actionErrorMsg: ie, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem: H, getAllItems: ae, restoreItem: G } = tt({
3750
3753
  nav: F,
3751
3754
  proxyID: b.value,
3752
3755
  store: ut({
@@ -3754,7 +3757,7 @@ function Ea(e, t, u) {
3754
3757
  storageMode: m,
3755
3758
  nav: F
3756
3759
  })
3757
- }), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Le(!1), Ee = Le(e.showSearch ?? !0), Re = Y(0), Ve = te(() => {
3760
+ }), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Le(!1), Ee = Le(e.showSearch ?? !0), Re = z(0), Ve = te(() => {
3758
3761
  let R, J = [];
3759
3762
  c.value.forEach((O) => {
3760
3763
  const oe = y.value[O], ve = l.find((De) => De.name == oe);
@@ -3823,7 +3826,7 @@ function Ea(e, t, u) {
3823
3826
  requireConfirmation: !0
3824
3827
  }), t && t("deleted", R);
3825
3828
  }
3826
- function Ye(R) {
3829
+ function ze(R) {
3827
3830
  G({
3828
3831
  data: j(R),
3829
3832
  additionalUrl: e.additionalUrl,
@@ -3836,7 +3839,7 @@ function Ea(e, t, u) {
3836
3839
  });
3837
3840
  }
3838
3841
  function Ue() {
3839
- z(() => {
3842
+ Y(() => {
3840
3843
  S.exportToCSV(Ce.value, K.value);
3841
3844
  }, { loadingMsg: "Exporting to CSV" });
3842
3845
  }
@@ -3885,7 +3888,7 @@ function Ea(e, t, u) {
3885
3888
  }
3886
3889
  Pe();
3887
3890
  }
3888
- function ze(R, J) {
3891
+ function Ye(R, J) {
3889
3892
  const V = j(R);
3890
3893
  if (V != null && V === re && e.canUnselect ? re = null : re = V, t != null && t("select", re), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(V)))
3891
3894
  if (e.onSelectItem != null)
@@ -3935,10 +3938,10 @@ function Ea(e, t, u) {
3935
3938
  isRestorable: rr,
3936
3939
  loadingMsg: ne,
3937
3940
  refresh: Ie,
3938
- restoreItem: Ye,
3941
+ restoreItem: ze,
3939
3942
  searchString: C,
3940
3943
  selectedFilters: c,
3941
- selectItem: ze,
3944
+ selectItem: Ye,
3942
3945
  // serverFilters,
3943
3946
  showError: ce,
3944
3947
  showInactive: D,
@@ -3951,10 +3954,10 @@ function Ea(e, t, u) {
3951
3954
  };
3952
3955
  }
3953
3956
  let Tr;
3954
- function Ia(e) {
3957
+ function Da(e) {
3955
3958
  return Tr.usePresets(e);
3956
3959
  }
3957
- function Bn(e) {
3960
+ function $n(e) {
3958
3961
  function t(u) {
3959
3962
  if (!u)
3960
3963
  return {};
@@ -3965,13 +3968,13 @@ function Bn(e) {
3965
3968
  usePresets: t
3966
3969
  }, Tr;
3967
3970
  }
3968
- let Yr, zr, Zr, Jr = !1;
3969
- const gr = Y(!1), yr = Y(!1), jr = Y(), Xe = Y();
3971
+ let zr, Yr, Zr, Jr = !1;
3972
+ const gr = z(!1), yr = z(!1), jr = z(), Xe = z();
3970
3973
  let Cr;
3971
- function Da() {
3974
+ function xa() {
3972
3975
  return Cr;
3973
3976
  }
3974
- function $n() {
3977
+ function Fn() {
3975
3978
  function e(_) {
3976
3979
  Xe.value = _.detail, yr.value = !0;
3977
3980
  }
@@ -3992,7 +3995,7 @@ function $n() {
3992
3995
  yr.value = !1, !(!Xe.value || !Xe.value.waiting) && Xe.value.waiting.postMessage({ type: "SKIP_WAITING" });
3993
3996
  }
3994
3997
  return Qt(() => {
3995
- Yr == null && (Yr = document.addEventListener("swUpdated", e, { once: !0 })), zr == null && (zr = navigator.serviceWorker.addEventListener("controllerchange", t)), Zr == null && (Zr = window.addEventListener("beforeinstallprompt", o));
3998
+ zr == null && (zr = document.addEventListener("swUpdated", e, { once: !0 })), Yr == null && (Yr = navigator.serviceWorker.addEventListener("controllerchange", t)), Zr == null && (Zr = window.addEventListener("beforeinstallprompt", o));
3996
3999
  }), Cr = {
3997
4000
  canInstallApp: gr,
3998
4001
  canUpdateApp: yr,
@@ -4001,117 +4004,118 @@ function $n() {
4001
4004
  updateApp: g
4002
4005
  }, Cr;
4003
4006
  }
4004
- function xa(e) {
4007
+ function _a(e) {
4005
4008
  const t = [];
4006
4009
  return (e == null ? void 0 : e.required) == !0 && t.push((u) => !!u || "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((u) => !!u || "Password is required"), t.push((u) => u != null && u.length > 9 || "Password must be 10 or more characters"), t.push((u) => /^(.*[a-z].*)$/.test(u) || "Password must contain a lowercase letter"), t.push((u) => /^(.*[A-Z].*)$/.test(u) || "Password must contain an uppercase letter"), t.push((u) => /^(.*\d.*)$/.test(u) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((u) => !!u || "Email is required"), t.push((u) => dn(u) || "Email must be valid")), t;
4007
4010
  }
4008
- function _a(e) {
4011
+ function Ta(e) {
4009
4012
  return {
4010
4013
  install(t, u) {
4011
4014
  var N;
4012
- console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = u.vuetifyInstance), An(e);
4013
- const S = Dn(), o = Un(e);
4014
- Bn(e), (N = e.auth).demo ?? (N.demo = S), e.auth.getAuthItem = o.findItem;
4015
- const g = gn(e.auth), _ = hn({
4015
+ console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = u.vuetifyInstance), En(e);
4016
+ const S = xn(), o = Bn(e);
4017
+ $n(e), (N = e.auth).demo ?? (N.demo = S), e.auth.getAuthItem = o.findItem;
4018
+ const g = yn(e.auth), _ = mn({
4016
4019
  auth: g,
4017
4020
  findPath: o.findPath,
4018
4021
  useBearerToken: !0
4019
- }), P = In({
4022
+ }), P = Dn({
4020
4023
  getTimeZone: () => g.timeZone.value
4021
4024
  });
4022
- _n({
4025
+ Tn({
4023
4026
  dates: P
4024
- }), $n(), Cn({
4027
+ }), Fn(), Pn({
4025
4028
  api: _,
4026
4029
  auth: g,
4027
4030
  navigation: o
4028
- }), vn(e.urls);
4031
+ }), gn(e.urls);
4029
4032
  }
4030
4033
  };
4031
4034
  }
4032
4035
  export {
4033
- ia as DataURIToBlob,
4034
- ra as addWeekday,
4036
+ ca as DataURIToBlob,
4037
+ ta as addWeekday,
4035
4038
  Ne as appendUrl,
4036
4039
  tn as capitalizeWords,
4037
- Kn as checkImage,
4040
+ Qn as checkImage,
4038
4041
  cn as containsSearch,
4039
- ea as containsWeekday,
4042
+ ra as containsWeekday,
4040
4043
  Pr as copyDeep,
4041
4044
  un as copyItemByAlphabet,
4042
- hn as createApi,
4043
- gn as createAuth,
4044
- _a as createCore,
4045
- An as createCosmetics,
4046
- In as createDates,
4047
- Dn as createDemo,
4048
- _n as createFilters,
4049
- Un as createNavigation,
4050
- $n as createPWA,
4051
- Bn as createPresets,
4052
- Ln as createSessionStoreDefinition,
4053
- Cn as createStoreBuilder,
4054
- vn as createUrl,
4045
+ mn as createApi,
4046
+ yn as createAuth,
4047
+ Ta as createCore,
4048
+ En as createCosmetics,
4049
+ Dn as createDates,
4050
+ xn as createDemo,
4051
+ Tn as createFilters,
4052
+ Bn as createNavigation,
4053
+ Fn as createPWA,
4054
+ $n as createPresets,
4055
+ Nn as createSessionStoreDefinition,
4056
+ Pn as createStoreBuilder,
4057
+ gn as createUrl,
4055
4058
  Wr as createWholeLastUpdateStoreDefinition,
4056
4059
  ln as csvContains,
4057
- ma as csvDefaults,
4060
+ va as csvDefaults,
4058
4061
  rt as deepSelect,
4059
- Vn as distinct,
4062
+ zn as distinct,
4060
4063
  Yn as extensionExists,
4061
4064
  fn as extractErrorDescription,
4062
4065
  rn as fromCamelCase,
4063
- zn as getAreaAround,
4064
- Zn as getAreaToLeft,
4065
- Jn as getAreaToRight,
4066
- jn as getGoogleMapsLocationLine,
4067
- Qn as getImageData,
4066
+ Zn as getAreaAround,
4067
+ Jn as getAreaToLeft,
4068
+ jn as getAreaToRight,
4069
+ Kn as getGoogleMapsLocationLine,
4070
+ Xn as getImageData,
4068
4071
  et as getLocationLine,
4069
- aa as getMinDate,
4072
+ la as getMinDate,
4070
4073
  an as getMinDateString,
4071
4074
  sn as getRandomColor,
4072
4075
  on as hasSearch,
4073
- na as isArrayOfLength,
4076
+ aa as isArrayOfLength,
4074
4077
  Te as isLengthyArray,
4075
4078
  nn as isMinDate,
4076
4079
  wr as nestedValue,
4077
- ta as removeWeekday,
4078
- la as roundTo,
4079
- Xn as toCamelCase,
4080
- ca as toCompareString,
4081
- ua as toggleCSV,
4082
- fa as twiddleThumbs,
4080
+ na as removeWeekday,
4081
+ ua as roundTo,
4082
+ hn as singularize,
4083
+ On as toCamelCase,
4084
+ fa as toCompareString,
4085
+ ia as toggleCSV,
4086
+ sa as twiddleThumbs,
4083
4087
  tt as useActions,
4084
4088
  pt as useActionsTracker,
4085
4089
  Sr as useApi,
4086
- oa as useAuth,
4090
+ da as useAuth,
4087
4091
  kr as useAuthUrl,
4088
- Sn as useBlade,
4089
- En as useCSV,
4090
- da as useCosmetics,
4091
- mn as useDataUrl,
4092
- va as useDates,
4092
+ An as useBlade,
4093
+ In as useCSV,
4094
+ ha as useCosmetics,
4095
+ vn as useDataUrl,
4096
+ ga as useDates,
4093
4097
  nt as useDbName,
4094
- ga as useDemo,
4095
- ya as useDocumentMeta,
4096
- yn as useDraggable,
4097
- wa as useFilters,
4098
+ ya as useDemo,
4099
+ wa as useDocumentMeta,
4100
+ wn as useDraggable,
4101
+ ba as useFilters,
4098
4102
  Xt as useId,
4099
- Aa as useItem,
4100
- Ea as useList,
4101
- ba as useLocalCache,
4102
- ha as useLocalCosmetics,
4103
+ Ea as useItem,
4104
+ Ia as useList,
4105
+ Sa as useLocalCache,
4106
+ ma as useLocalCosmetics,
4103
4107
  me as useLocalDb,
4104
- Rn as useNavigation,
4105
- Da as usePWA,
4106
- Ia as usePresets,
4107
- bn as useResizable,
4108
- xa as useRules,
4109
- Sa as useStore,
4108
+ Un as useNavigation,
4109
+ xa as usePWA,
4110
+ Da as usePresets,
4111
+ Sn as useResizable,
4112
+ _a as useRules,
4113
+ Aa as useStore,
4110
4114
  ut as useStoreDefinition,
4111
- Nn as useTracker,
4112
- sa as useUrls,
4115
+ Rn as useTracker,
4116
+ oa as useUrls,
4113
4117
  dn as validEmail,
4114
4118
  He as weekdayPairs,
4115
- pn as weekdayShortName,
4116
- On as weekdayValue
4119
+ ea as weekdayShortName,
4120
+ pn as weekdayValue
4117
4121
  };
package/dist/index.d.ts CHANGED
@@ -915,6 +915,8 @@ export declare interface SaveOptions extends PathOptions, DoActionOptions {
915
915
  store?: BTStoreDefinition;
916
916
  }
917
917
 
918
+ export declare function singularize(str: string): string;
919
+
918
920
  export declare type StorageMode = 'session' | 'local-cache';
919
921
 
920
922
  export declare interface StoreGetAllReturn<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.49",
3
+ "version": "1.4.50",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {