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.
- package/dist/bt-core-app.js +470 -474
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -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,
|
|
2
|
-
import { watchArray as Or, useStorage as
|
|
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
|
|
7
|
-
function
|
|
8
|
-
return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g,
|
|
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
|
|
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
|
|
15
|
-
const t = z([]), l = Re(), S = Re(),
|
|
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:
|
|
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 && (
|
|
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:
|
|
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
|
|
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(
|
|
69
|
-
return
|
|
68
|
+
function e(s) {
|
|
69
|
+
return s;
|
|
70
70
|
}
|
|
71
|
-
function t(
|
|
72
|
-
return typeof
|
|
71
|
+
function t(s) {
|
|
72
|
+
return typeof s == "string" ? s.toLowerCase() : s;
|
|
73
73
|
}
|
|
74
|
-
function l(
|
|
75
|
-
if (g = typeof g == "object" ? g : { direction: g }, typeof
|
|
76
|
-
var x =
|
|
77
|
-
|
|
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 (
|
|
82
|
-
var P =
|
|
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
|
-
|
|
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 -
|
|
92
|
-
} :
|
|
91
|
+
return -s(d, h);
|
|
92
|
+
} : s;
|
|
93
93
|
}
|
|
94
|
-
function S(
|
|
95
|
-
var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(
|
|
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
|
|
114
|
+
function ta(e) {
|
|
115
115
|
return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
|
|
116
116
|
}
|
|
117
|
-
function
|
|
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(
|
|
122
|
+
return console.log(wn(l)), !1;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
167
|
+
async function fa(e, t = !0) {
|
|
168
168
|
return new Promise((l, S) => {
|
|
169
169
|
e == null && S("no url given");
|
|
170
|
-
var
|
|
171
|
-
|
|
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
|
-
},
|
|
176
|
+
}, s.onerror = function() {
|
|
177
177
|
console.log("errr"), t ? S("image could not be loaded for some reason") : l(null);
|
|
178
|
-
}, e != null && (
|
|
178
|
+
}, e != null && (s.src = e);
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function on(e) {
|
|
182
182
|
return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
|
|
183
183
|
}
|
|
184
|
-
function
|
|
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
|
|
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
|
|
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((
|
|
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
|
|
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((
|
|
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
|
|
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(),
|
|
219
|
-
return
|
|
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
|
|
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((
|
|
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
|
|
229
|
+
function va(e, t) {
|
|
230
230
|
if (t == null || e == null)
|
|
231
231
|
return e;
|
|
232
|
-
let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(),
|
|
233
|
-
return
|
|
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
|
|
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
|
|
241
|
+
function hn(e) {
|
|
242
242
|
return e == "0001-01-01T00:00:00Z";
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function ya() {
|
|
245
245
|
return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function mn() {
|
|
248
248
|
return "0001-01-01T00:00:00Z";
|
|
249
249
|
}
|
|
250
|
-
function
|
|
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
|
|
257
|
-
return Math.round(e *
|
|
256
|
+
let s = Number.parseInt(l);
|
|
257
|
+
return Math.round(e * s) / s;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function ba(e, t) {
|
|
260
260
|
let l = e ?? "";
|
|
261
|
-
return t != 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
|
|
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((
|
|
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
|
|
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 ?
|
|
282
|
+
return t[l] = typeof S == "object" && S !== null ? gn(S) : S, t;
|
|
283
283
|
}, Array.isArray(e) ? [] : {});
|
|
284
284
|
}
|
|
285
|
-
function
|
|
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,
|
|
293
|
-
S.push(
|
|
294
|
-
const g = tt(
|
|
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
|
|
299
|
-
const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), S = t[0].split(":")[1].split(";")[0],
|
|
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
|
-
|
|
302
|
-
return new Blob([
|
|
301
|
+
s[g] = l.charCodeAt(g);
|
|
302
|
+
return new Blob([s], { type: S });
|
|
303
303
|
}
|
|
304
|
-
function
|
|
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
|
|
317
|
+
function bn() {
|
|
318
318
|
const e = "#" + Math.floor(Math.random() * 16777215).toString(16);
|
|
319
|
-
return e.length !== 7 ?
|
|
319
|
+
return e.length !== 7 ? bn() : e;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
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
|
|
327
|
-
const g = l[
|
|
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" &&
|
|
329
|
+
if (S != null && typeof S == "string" && yn(S, t))
|
|
330
330
|
return !0;
|
|
331
331
|
}
|
|
332
332
|
return !1;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Aa(e) {
|
|
335
335
|
return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
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
|
|
348
|
-
if (
|
|
347
|
+
for (var s = e, g = 0; g < S; g++)
|
|
348
|
+
if (s = s[l[g]], s == null)
|
|
349
349
|
return null;
|
|
350
|
-
return
|
|
350
|
+
return s;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
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
|
|
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,
|
|
372
|
+
return function l(S, s, g) {
|
|
373
373
|
function x(N, $) {
|
|
374
|
-
if (!
|
|
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 =
|
|
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,
|
|
388
|
+
}, u, u.exports, l, S, s, g);
|
|
389
389
|
}
|
|
390
|
-
return
|
|
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,
|
|
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,
|
|
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 (
|
|
476
|
-
return P.reject(b,
|
|
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
|
|
491
|
-
b.queue[
|
|
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
|
|
512
|
+
function f(Q) {
|
|
513
513
|
D || (D = !0, P.resolve(b, Q));
|
|
514
514
|
}
|
|
515
515
|
function A() {
|
|
516
|
-
T(
|
|
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
|
|
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
|
-
|
|
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
|
|
568
|
-
J(b[
|
|
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,
|
|
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,
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
1809
|
-
const at = /* @__PURE__ */
|
|
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
|
|
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
|
|
1826
|
+
function Ia() {
|
|
1827
1827
|
return ue;
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
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
|
|
1841
|
-
async function e(
|
|
1840
|
+
function Da() {
|
|
1841
|
+
async function e(s) {
|
|
1842
1842
|
const g = ve();
|
|
1843
|
-
(await g.keys()).filter((_) => _.startsWith(
|
|
1843
|
+
(await g.keys()).filter((_) => _.startsWith(s)).forEach((_) => {
|
|
1844
1844
|
g.removeItem(_);
|
|
1845
1845
|
});
|
|
1846
1846
|
}
|
|
1847
|
-
async function t(
|
|
1848
|
-
return await ve().getItem(
|
|
1847
|
+
async function t(s) {
|
|
1848
|
+
return await ve().getItem(s);
|
|
1849
1849
|
}
|
|
1850
|
-
async function l(
|
|
1851
|
-
return await ve().removeItem(
|
|
1850
|
+
async function l(s) {
|
|
1851
|
+
return await ve().removeItem(s);
|
|
1852
1852
|
}
|
|
1853
|
-
async function S(
|
|
1854
|
-
await ve().setItem(g,
|
|
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
|
|
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
|
|
1871
|
-
return er = (t) =>
|
|
1870
|
+
function Tn(e) {
|
|
1871
|
+
return er = (t) => _n({
|
|
1872
1872
|
...e,
|
|
1873
1873
|
...t
|
|
1874
1874
|
}), er;
|
|
1875
1875
|
}
|
|
1876
|
-
function
|
|
1877
|
-
var t, l, S,
|
|
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 = ((
|
|
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
|
|
1889
|
+
return Pn({ ...e, storeName: e.storeName ?? "" });
|
|
1890
1890
|
}
|
|
1891
|
-
const
|
|
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((
|
|
1897
|
-
|
|
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
|
|
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({}),
|
|
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 &&
|
|
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
|
-
|
|
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 &&
|
|
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
|
-
|
|
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,
|
|
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
|
|
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
|
-
}),
|
|
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,
|
|
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) ??
|
|
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
|
|
2115
|
-
|
|
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,
|
|
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:
|
|
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
|
|
2167
|
-
if (
|
|
2168
|
-
return { data:
|
|
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
|
|
2172
|
-
if (
|
|
2173
|
-
t.value =
|
|
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((
|
|
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((
|
|
2186
|
-
} catch (
|
|
2187
|
-
let A =
|
|
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
|
|
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,
|
|
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)),
|
|
2298
|
-
return console.log(`DEMO: Get from ${i}`),
|
|
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)),
|
|
2333
|
-
return console.log(`DEMO: Get all from ${i}`),
|
|
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)),
|
|
2368
|
-
return console.log(`DEMO: Post to ${i}`),
|
|
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)),
|
|
2404
|
-
return console.log(`DEMO: Patch to ${i}`),
|
|
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)),
|
|
2440
|
-
return console.log(`DEMO: Delete ${y}`),
|
|
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:
|
|
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:
|
|
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
|
|
2605
|
+
function Mn() {
|
|
2606
2606
|
return Ir;
|
|
2607
2607
|
}
|
|
2608
|
-
function
|
|
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
|
|
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
|
|
2625
|
-
if (
|
|
2624
|
+
const f = K(s);
|
|
2625
|
+
if (f.isSuspended && L.ignoreSuspension !== !0)
|
|
2626
2626
|
return !1;
|
|
2627
|
-
if (
|
|
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(
|
|
2637
|
+
const L = K(s);
|
|
2638
2638
|
if (L.userPermissions != null)
|
|
2639
|
-
for (var
|
|
2640
|
-
var A = L.userPermissions[
|
|
2641
|
-
if (L.userPermissions[
|
|
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
|
|
2655
|
-
if (
|
|
2654
|
+
const f = K(s);
|
|
2655
|
+
if (f.isSuspended && L.ignoreSuspension !== !0)
|
|
2656
2656
|
return !1;
|
|
2657
|
-
if (
|
|
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(
|
|
2667
|
+
const L = K(s);
|
|
2668
2668
|
if (L.userPermissions != null)
|
|
2669
|
-
for (var
|
|
2670
|
-
var A = L.userPermissions[
|
|
2671
|
-
if (D == A[0] || D == "everything" || L.userPermissions[
|
|
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,
|
|
2676
|
+
function N(D, L, f) {
|
|
2677
2677
|
let A = !0;
|
|
2678
|
-
return K(
|
|
2679
|
-
|
|
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
|
|
2683
|
+
var f = e.getAuthItem != null ? e.getAuthItem(D) : null;
|
|
2684
2684
|
let A = !1;
|
|
2685
|
-
if (
|
|
2685
|
+
if (f == null)
|
|
2686
2686
|
return !1;
|
|
2687
|
-
let J =
|
|
2688
|
-
return ee || !L || !_e(
|
|
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,
|
|
2694
|
-
const A = Be(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${
|
|
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
|
|
2700
|
-
return D == null ? 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(
|
|
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
|
|
2709
|
-
return
|
|
2708
|
+
const f = h(D), A = h(L.subscriptionCode);
|
|
2709
|
+
return f <= A;
|
|
2710
2710
|
}
|
|
2711
2711
|
function r(D) {
|
|
2712
|
-
const
|
|
2713
|
-
atob(
|
|
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
|
-
|
|
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
|
|
2724
|
-
K(
|
|
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
|
|
2729
|
-
if (
|
|
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(
|
|
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 =
|
|
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(
|
|
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
|
|
2753
|
-
|
|
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
|
-
|
|
2757
|
+
s.value ?? (s.value = {}), (D = s.value).timeZone ?? (D.timeZone = e.defaultTimeZone ?? hr);
|
|
2758
2758
|
}
|
|
2759
2759
|
function b() {
|
|
2760
|
-
const D = K(
|
|
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(
|
|
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),
|
|
2768
|
-
return L <=
|
|
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:
|
|
2776
|
+
credentials: s,
|
|
2777
2777
|
doShow: N,
|
|
2778
2778
|
doShowByNav: $,
|
|
2779
2779
|
getAuthorizeUrl: d,
|
|
2780
2780
|
getToken: i,
|
|
2781
|
-
isLoggedIn: te(() =>
|
|
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(() =>
|
|
2786
|
+
timeZone: te(() => s.value.timeZone ?? e.defaultTimeZone ?? hr),
|
|
2787
2787
|
tryLogin: b
|
|
2788
2788
|
}, Ir;
|
|
2789
2789
|
}
|
|
2790
|
-
function
|
|
2790
|
+
function Rn(e, t, l = {}) {
|
|
2791
2791
|
const {
|
|
2792
2792
|
preventDefault: S = !1,
|
|
2793
|
-
stopPropagation:
|
|
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(
|
|
2798
|
+
K(S) && M.preventDefault(), K(s) && M.stopPropagation();
|
|
2799
2799
|
}
|
|
2800
2800
|
function r(M) {
|
|
2801
|
-
var
|
|
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
|
-
}, ((
|
|
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,
|
|
2820
|
-
(g === "x" || g === "both") && (P.x = _.x + L), (g === "y" || g === "both") && (P.y = _.y +
|
|
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
|
|
2862
|
-
function
|
|
2863
|
-
let l, S = t.handleWidth ?? 12,
|
|
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 =
|
|
2879
|
-
return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ?
|
|
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",
|
|
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
|
|
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 =
|
|
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 ??
|
|
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
|
|
3013
|
-
const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1),
|
|
3014
|
-
|
|
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 <
|
|
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
|
|
3045
|
+
function Ta() {
|
|
3046
3046
|
return Dr;
|
|
3047
3047
|
}
|
|
3048
|
-
function
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
3129
|
+
const Ca = {
|
|
3130
3130
|
canExportCSV: !1
|
|
3131
3131
|
};
|
|
3132
|
-
function
|
|
3132
|
+
function kn() {
|
|
3133
3133
|
function e(t) {
|
|
3134
3134
|
const {
|
|
3135
3135
|
items: l,
|
|
3136
3136
|
headers: S,
|
|
3137
|
-
fileName:
|
|
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:
|
|
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,
|
|
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 =
|
|
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
|
|
3186
|
+
function Pa() {
|
|
3187
3187
|
return xr;
|
|
3188
3188
|
}
|
|
3189
|
-
function
|
|
3189
|
+
function Gn(e) {
|
|
3190
3190
|
const t = e.getUTC ?? he.utc;
|
|
3191
3191
|
function l() {
|
|
3192
|
-
return
|
|
3192
|
+
return s().startOf("day").toUTC().toString() ?? "";
|
|
3193
3193
|
}
|
|
3194
3194
|
function S() {
|
|
3195
|
-
return
|
|
3195
|
+
return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
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:
|
|
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
|
|
3231
|
+
function Na() {
|
|
3232
3232
|
return Tr;
|
|
3233
3233
|
}
|
|
3234
|
-
function
|
|
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
|
|
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:
|
|
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
|
|
3343
|
-
function
|
|
3342
|
+
var qn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
3343
|
+
function Ma(e) {
|
|
3344
3344
|
function t(l) {
|
|
3345
|
-
var
|
|
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 =
|
|
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", ((
|
|
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
|
|
3360
|
+
function La() {
|
|
3361
3361
|
return _r;
|
|
3362
3362
|
}
|
|
3363
|
-
function
|
|
3364
|
-
function t(
|
|
3365
|
-
return
|
|
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(
|
|
3368
|
-
if (!
|
|
3367
|
+
function l(f) {
|
|
3368
|
+
if (!f)
|
|
3369
3369
|
return "";
|
|
3370
|
-
if (typeof
|
|
3371
|
-
return
|
|
3370
|
+
if (typeof f != "object")
|
|
3371
|
+
return f;
|
|
3372
3372
|
var A = "";
|
|
3373
|
-
return
|
|
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(
|
|
3376
|
-
if (typeof
|
|
3377
|
-
return
|
|
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(
|
|
3383
|
+
return A.format(f);
|
|
3384
3384
|
}
|
|
3385
|
-
function f
|
|
3386
|
-
return t(
|
|
3385
|
+
function s(f, A) {
|
|
3386
|
+
return t(f, "ccc | d LLL", A);
|
|
3387
3387
|
}
|
|
3388
|
-
function g(
|
|
3389
|
-
return t(
|
|
3388
|
+
function g(f, A) {
|
|
3389
|
+
return t(f, "d LLL", A);
|
|
3390
3390
|
}
|
|
3391
|
-
function x(
|
|
3392
|
-
return t(
|
|
3391
|
+
function x(f, A) {
|
|
3392
|
+
return t(f, "ccc", A);
|
|
3393
3393
|
}
|
|
3394
|
-
function P(
|
|
3395
|
-
return t(
|
|
3394
|
+
function P(f, A) {
|
|
3395
|
+
return t(f, "ccc dd LLL yyyy", A);
|
|
3396
3396
|
}
|
|
3397
|
-
function _(
|
|
3398
|
-
return t(
|
|
3397
|
+
function _(f, A) {
|
|
3398
|
+
return t(f, "ccc dd LLL @ hh:mm a", A);
|
|
3399
3399
|
}
|
|
3400
|
-
function N(
|
|
3401
|
-
return new Intl.NumberFormat().format(
|
|
3400
|
+
function N(f) {
|
|
3401
|
+
return new Intl.NumberFormat().format(f);
|
|
3402
3402
|
}
|
|
3403
|
-
function $(
|
|
3404
|
-
return
|
|
3403
|
+
function $(f) {
|
|
3404
|
+
return f == 0 ? "" : new Intl.NumberFormat().format(f);
|
|
3405
3405
|
}
|
|
3406
|
-
function d(
|
|
3407
|
-
if (
|
|
3406
|
+
function d(f) {
|
|
3407
|
+
if (f == 0)
|
|
3408
3408
|
return "";
|
|
3409
|
-
var A = new Intl.NumberFormat().format(
|
|
3410
|
-
return
|
|
3409
|
+
var A = new Intl.NumberFormat().format(f);
|
|
3410
|
+
return f > 0 ? "+" + A : A;
|
|
3411
3411
|
}
|
|
3412
|
-
function h(
|
|
3413
|
-
return e.dates.utcString(
|
|
3412
|
+
function h(f, A) {
|
|
3413
|
+
return e.dates.utcString(f, A);
|
|
3414
3414
|
}
|
|
3415
|
-
function u(
|
|
3416
|
-
return rt(
|
|
3415
|
+
function u(f) {
|
|
3416
|
+
return rt(f, !1);
|
|
3417
3417
|
}
|
|
3418
|
-
function r(
|
|
3419
|
-
if (!
|
|
3418
|
+
function r(f) {
|
|
3419
|
+
if (!f)
|
|
3420
3420
|
return "";
|
|
3421
|
-
if (typeof
|
|
3422
|
-
return
|
|
3421
|
+
if (typeof f != "object")
|
|
3422
|
+
return f;
|
|
3423
3423
|
var A = "";
|
|
3424
|
-
return
|
|
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(
|
|
3427
|
-
return t(
|
|
3426
|
+
function y(f, A) {
|
|
3427
|
+
return t(f, "ddd DD MMM YYYY", A);
|
|
3428
3428
|
}
|
|
3429
|
-
function I(
|
|
3430
|
-
return t(
|
|
3429
|
+
function I(f, A) {
|
|
3430
|
+
return t(f, "ccc dd LLL yyyy hh:mm a", A);
|
|
3431
3431
|
}
|
|
3432
|
-
function i(
|
|
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(
|
|
3437
|
+
return A.format(f);
|
|
3438
3438
|
}
|
|
3439
|
-
function E(
|
|
3440
|
-
return
|
|
3439
|
+
function E(f) {
|
|
3440
|
+
return f.replaceAll(",", " ");
|
|
3441
3441
|
}
|
|
3442
|
-
function w(
|
|
3443
|
-
return t(
|
|
3442
|
+
function w(f, A) {
|
|
3443
|
+
return t(f, "dd LLL yyyy", A);
|
|
3444
3444
|
}
|
|
3445
|
-
function M(
|
|
3446
|
-
return t(
|
|
3445
|
+
function M(f, A) {
|
|
3446
|
+
return t(f, "dd LLL yyyy hh:mm a", A);
|
|
3447
3447
|
}
|
|
3448
|
-
function b(
|
|
3449
|
-
return t(
|
|
3448
|
+
function b(f, A) {
|
|
3449
|
+
return t(f, "hh:mm a", A);
|
|
3450
3450
|
}
|
|
3451
|
-
function T(
|
|
3452
|
-
return
|
|
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:
|
|
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(
|
|
3478
|
-
if (
|
|
3479
|
-
let A =
|
|
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
|
|
3490
|
+
function Hn(e, t) {
|
|
3491
3491
|
const l = z(!1), S = Yt(e);
|
|
3492
|
-
let
|
|
3492
|
+
let s = g(K(e));
|
|
3493
3493
|
(t == null ? void 0 : t.useTracker) !== !1 && Te(S, (P) => {
|
|
3494
|
-
l.value = g(P) !=
|
|
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
|
-
|
|
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
|
|
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),
|
|
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:
|
|
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
|
-
}),
|
|
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 } =
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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:
|
|
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
|
|
3751
|
+
function Ua(e, t, l) {
|
|
3752
3752
|
var qe, Ve;
|
|
3753
|
-
const S =
|
|
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),
|
|
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 = [...
|
|
3905
|
-
e.itemText && j.push(e.itemText), _e(j) && (U = U.filter((H) =>
|
|
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(),
|
|
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
|
|
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
|
|
4021
|
-
const e = Mr(), t = it(), l =
|
|
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
|
|
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 $ =
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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 =
|
|
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
|
|
4055
|
+
function $a(e) {
|
|
4056
4056
|
return Pr.usePresets(e);
|
|
4057
4057
|
}
|
|
4058
|
-
function
|
|
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
|
|
4072
|
+
function Fa() {
|
|
4073
4073
|
return Nr;
|
|
4074
4074
|
}
|
|
4075
|
-
function
|
|
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
|
|
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
|
|
4096
|
-
Zr == null && (Zr = document.addEventListener("swUpdated", e, { once: !0 })), Jr == null && (Jr = navigator.serviceWorker.addEventListener("controllerchange", t)), jr == null && (jr = window.addEventListener("beforeinstallprompt",
|
|
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
|
|
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) =>
|
|
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
|
|
4126
|
-
|
|
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",
|
|
4131
|
-
const S =
|
|
4132
|
-
|
|
4133
|
-
const g =
|
|
4134
|
-
|
|
4135
|
-
const x =
|
|
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:
|
|
4133
|
+
findPath: s.findPath,
|
|
4138
4134
|
useBearerToken: !0
|
|
4139
|
-
}), P =
|
|
4135
|
+
}), P = Gn({
|
|
4140
4136
|
getTimeZone: () => g.timeZone.value
|
|
4141
4137
|
});
|
|
4142
|
-
|
|
4138
|
+
Vn({
|
|
4143
4139
|
dates: P
|
|
4144
|
-
}),
|
|
4140
|
+
}), Jn(), Tn({
|
|
4145
4141
|
api: x,
|
|
4146
4142
|
auth: g,
|
|
4147
|
-
navigation:
|
|
4143
|
+
navigation: s
|
|
4148
4144
|
});
|
|
4149
4145
|
}
|
|
4150
4146
|
};
|
|
4151
4147
|
}
|
|
4152
4148
|
export {
|
|
4153
|
-
|
|
4154
|
-
|
|
4149
|
+
Sa as DataURIToBlob,
|
|
4150
|
+
ma as addWeekday,
|
|
4155
4151
|
Be as appendUrl,
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4152
|
+
dn as capitalizeWords,
|
|
4153
|
+
ca as checkImage,
|
|
4154
|
+
yn as containsSearch,
|
|
4155
|
+
ha as containsWeekday,
|
|
4160
4156
|
Lr as copyDeep,
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
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
|
-
|
|
4178
|
-
|
|
4173
|
+
vn as csvContains,
|
|
4174
|
+
Ca as csvDefaults,
|
|
4179
4175
|
tt as deepSelect,
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
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
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
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
|
-
|
|
4192
|
+
hn as isMinDate,
|
|
4197
4193
|
Sr as nestedValue,
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
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
|
-
|
|
4202
|
+
fn as useActionsTracker,
|
|
4207
4203
|
Er as useApi,
|
|
4208
|
-
|
|
4204
|
+
Mn as useAuth,
|
|
4209
4205
|
Wr as useAuthUrl,
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
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
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
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
|
-
|
|
4222
|
+
Ba as useMenu,
|
|
4227
4223
|
it as useNavigation,
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
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
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4230
|
+
Hn as useTracker,
|
|
4231
|
+
Ia as useUrls,
|
|
4232
|
+
An as validEmail,
|
|
4237
4233
|
Ye as weekdayPairs,
|
|
4238
|
-
|
|
4239
|
-
|
|
4234
|
+
da as weekdayShortName,
|
|
4235
|
+
oa as weekdayValue
|
|
4240
4236
|
};
|