bt-core-app 1.4.13 → 1.4.15
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 +550 -563
- package/dist/index.d.ts +2 -26
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { onMounted as
|
|
1
|
+
import { onMounted as zr, nextTick as ur, computed as le, watch as Ae, unref as Nn, getCurrentInstance as cr, getCurrentScope as Nt, onScopeDispose as Tt, ref as Y, readonly as Tn, customRef as Cn, shallowRef as Ne, onUpdated as Pn, toValue as K, inject as ir, hasInjectionContext as Ln, reactive as Mn, markRaw as je, effectScope as Rn, isRef as ze, isReactive as Zr, toRef as ar, toRaw as Un, toRefs as it } from "vue";
|
|
2
2
|
import { DateTime as fe } from "luxon";
|
|
3
3
|
function Bn(e, t) {
|
|
4
4
|
let a, l, s;
|
|
5
|
-
const o = Y(!0),
|
|
5
|
+
const o = Y(!0), D = () => {
|
|
6
6
|
o.value = !0, s();
|
|
7
7
|
};
|
|
8
|
-
Ae(e,
|
|
8
|
+
Ae(e, D, { flush: "sync" });
|
|
9
9
|
const S = typeof t == "function" ? t : t.get, N = typeof t == "function" ? void 0 : t.set, L = Cn((R, b) => (l = R, s = b, {
|
|
10
10
|
get() {
|
|
11
11
|
return o.value && (a = S(), o.value = !1), l(), a;
|
|
@@ -14,17 +14,17 @@ function Bn(e, t) {
|
|
|
14
14
|
N == null || N(c);
|
|
15
15
|
}
|
|
16
16
|
}));
|
|
17
|
-
return Object.isExtensible(L) && (L.trigger =
|
|
17
|
+
return Object.isExtensible(L) && (L.trigger = D), L;
|
|
18
18
|
}
|
|
19
19
|
function $n(e) {
|
|
20
|
-
return
|
|
20
|
+
return Nt() ? (Tt(e), !0) : !1;
|
|
21
21
|
}
|
|
22
22
|
function ae(e) {
|
|
23
23
|
return typeof e == "function" ? e() : Nn(e);
|
|
24
24
|
}
|
|
25
25
|
const Fn = typeof window < "u" && typeof document < "u";
|
|
26
26
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
27
|
-
const kn = Object.prototype.toString, Vn = (e) => kn.call(e) === "[object Object]",
|
|
27
|
+
const kn = Object.prototype.toString, Vn = (e) => kn.call(e) === "[object Object]", Cr = () => {
|
|
28
28
|
};
|
|
29
29
|
function Wn(e, t) {
|
|
30
30
|
function a(...l) {
|
|
@@ -34,11 +34,11 @@ function Wn(e, t) {
|
|
|
34
34
|
}
|
|
35
35
|
return a;
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const Ct = (e) => e();
|
|
38
38
|
function jn(e, t = {}) {
|
|
39
|
-
let a, l, s =
|
|
39
|
+
let a, l, s = Cr;
|
|
40
40
|
const o = (S) => {
|
|
41
|
-
clearTimeout(S), s(), s =
|
|
41
|
+
clearTimeout(S), s(), s = Cr;
|
|
42
42
|
};
|
|
43
43
|
return (S) => {
|
|
44
44
|
const N = ae(e), L = ae(t.maxWait);
|
|
@@ -51,7 +51,7 @@ function jn(e, t = {}) {
|
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
function Gn(e =
|
|
54
|
+
function Gn(e = Ct) {
|
|
55
55
|
const t = Y(!0);
|
|
56
56
|
function a() {
|
|
57
57
|
t.value = !1;
|
|
@@ -65,11 +65,11 @@ function Gn(e = Pt) {
|
|
|
65
65
|
return { isActive: Tn(t), pause: a, resume: l, eventFilter: s };
|
|
66
66
|
}
|
|
67
67
|
function qn(e) {
|
|
68
|
-
return e ||
|
|
68
|
+
return e || cr();
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Pt(e, t, a = {}) {
|
|
71
71
|
const {
|
|
72
|
-
eventFilter: l =
|
|
72
|
+
eventFilter: l = Ct,
|
|
73
73
|
...s
|
|
74
74
|
} = a;
|
|
75
75
|
return Ae(
|
|
@@ -85,31 +85,31 @@ function Hn(e, t, a = {}) {
|
|
|
85
85
|
const {
|
|
86
86
|
eventFilter: l,
|
|
87
87
|
...s
|
|
88
|
-
} = a, { eventFilter: o, pause:
|
|
89
|
-
return { stop:
|
|
88
|
+
} = a, { eventFilter: o, pause: D, resume: S, isActive: N } = Gn(l);
|
|
89
|
+
return { stop: Pt(
|
|
90
90
|
e,
|
|
91
91
|
t,
|
|
92
92
|
{
|
|
93
93
|
...s,
|
|
94
94
|
eventFilter: o
|
|
95
95
|
}
|
|
96
|
-
), pause:
|
|
96
|
+
), pause: D, resume: S, isActive: N };
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
qn() ?
|
|
98
|
+
function Yr(e, t = !0, a) {
|
|
99
|
+
qn() ? zr(e, a) : t ? e() : ur(e);
|
|
100
100
|
}
|
|
101
101
|
function zn(e, t) {
|
|
102
102
|
return e === t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function ft(...e) {
|
|
105
105
|
var t;
|
|
106
106
|
const a = e[0], l = e[1];
|
|
107
107
|
let s = (t = e[2]) != null ? t : zn;
|
|
108
108
|
if (typeof s == "string") {
|
|
109
109
|
const o = s;
|
|
110
|
-
s = (
|
|
110
|
+
s = (D, S) => D[o] === S[o];
|
|
111
111
|
}
|
|
112
|
-
return le(() => ae(a).filter((o) => ae(l).findIndex((
|
|
112
|
+
return le(() => ae(a).filter((o) => ae(l).findIndex((D) => s(o, D)) === -1));
|
|
113
113
|
}
|
|
114
114
|
function Zn(e) {
|
|
115
115
|
return Array.from(new Set(e));
|
|
@@ -123,9 +123,9 @@ function Jn(e, t) {
|
|
|
123
123
|
return t ? Yn(a, t) : Zn(a);
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Lt(e, t, a) {
|
|
127
127
|
let l = a != null && a.immediate ? [] : [...e instanceof Function ? e() : Array.isArray(e) ? e : ae(e)];
|
|
128
|
-
return Ae(e, (s, o,
|
|
128
|
+
return Ae(e, (s, o, D) => {
|
|
129
129
|
const S = Array.from({ length: l.length }), N = [];
|
|
130
130
|
for (const R of s) {
|
|
131
131
|
let b = !1;
|
|
@@ -137,7 +137,7 @@ function Mt(e, t, a) {
|
|
|
137
137
|
b || N.push(R);
|
|
138
138
|
}
|
|
139
139
|
const L = l.filter((R, b) => !S[b]);
|
|
140
|
-
t(s, l, N, L,
|
|
140
|
+
t(s, l, N, L, D), l = [...s];
|
|
141
141
|
}, a);
|
|
142
142
|
}
|
|
143
143
|
function Kn(e, t, a = {}) {
|
|
@@ -146,7 +146,7 @@ function Kn(e, t, a = {}) {
|
|
|
146
146
|
maxWait: s = void 0,
|
|
147
147
|
...o
|
|
148
148
|
} = a;
|
|
149
|
-
return
|
|
149
|
+
return Pt(
|
|
150
150
|
e,
|
|
151
151
|
t,
|
|
152
152
|
{
|
|
@@ -155,23 +155,23 @@ function Kn(e, t, a = {}) {
|
|
|
155
155
|
}
|
|
156
156
|
);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Jr(e) {
|
|
159
159
|
var t;
|
|
160
160
|
const a = ae(e);
|
|
161
161
|
return (t = a == null ? void 0 : a.$el) != null ? t : a;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const Pr = Fn ? window : void 0;
|
|
164
164
|
function he(...e) {
|
|
165
165
|
let t, a, l, s;
|
|
166
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([a, l, s] = e, t =
|
|
167
|
-
return
|
|
166
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([a, l, s] = e, t = Pr) : [t, a, l, s] = e, !t)
|
|
167
|
+
return Cr;
|
|
168
168
|
Array.isArray(a) || (a = [a]), Array.isArray(l) || (l = [l]);
|
|
169
|
-
const o = [],
|
|
169
|
+
const o = [], D = () => {
|
|
170
170
|
o.forEach((R) => R()), o.length = 0;
|
|
171
171
|
}, S = (R, b, c, h) => (R.addEventListener(b, c, h), () => R.removeEventListener(b, c, h)), N = Ae(
|
|
172
|
-
() => [
|
|
172
|
+
() => [Jr(t), ae(s)],
|
|
173
173
|
([R, b]) => {
|
|
174
|
-
if (
|
|
174
|
+
if (D(), !R)
|
|
175
175
|
return;
|
|
176
176
|
const c = Vn(b) ? { ...b } : b;
|
|
177
177
|
o.push(
|
|
@@ -180,7 +180,7 @@ function he(...e) {
|
|
|
180
180
|
},
|
|
181
181
|
{ immediate: !0, flush: "post" }
|
|
182
182
|
), L = () => {
|
|
183
|
-
N(),
|
|
183
|
+
N(), D();
|
|
184
184
|
};
|
|
185
185
|
return $n(L), L;
|
|
186
186
|
}
|
|
@@ -227,17 +227,17 @@ const ea = {
|
|
|
227
227
|
read: (e) => new Date(e),
|
|
228
228
|
write: (e) => e.toISOString()
|
|
229
229
|
}
|
|
230
|
-
},
|
|
231
|
-
function
|
|
230
|
+
}, st = "vueuse-storage";
|
|
231
|
+
function Lr(e, t, a, l = {}) {
|
|
232
232
|
var s;
|
|
233
233
|
const {
|
|
234
234
|
flush: o = "pre",
|
|
235
|
-
deep:
|
|
235
|
+
deep: D = !0,
|
|
236
236
|
listenToStorageChanges: S = !0,
|
|
237
237
|
writeDefaults: N = !0,
|
|
238
238
|
mergeDefaults: L = !1,
|
|
239
239
|
shallow: R,
|
|
240
|
-
window: b =
|
|
240
|
+
window: b = Pr,
|
|
241
241
|
eventFilter: c,
|
|
242
242
|
onError: h = (f) => {
|
|
243
243
|
console.error(f);
|
|
@@ -248,7 +248,7 @@ function Mr(e, t, a, l = {}) {
|
|
|
248
248
|
try {
|
|
249
249
|
a = On("getDefaultStorage", () => {
|
|
250
250
|
var f;
|
|
251
|
-
return (f =
|
|
251
|
+
return (f = Pr) == null ? void 0 : f.localStorage;
|
|
252
252
|
})();
|
|
253
253
|
} catch (f) {
|
|
254
254
|
h(f);
|
|
@@ -258,13 +258,13 @@ function Mr(e, t, a, l = {}) {
|
|
|
258
258
|
const E = ae(t), y = pn(E), I = (s = l.serializer) != null ? s : ea[y], { pause: B, resume: U } = Hn(
|
|
259
259
|
x,
|
|
260
260
|
() => P(x.value),
|
|
261
|
-
{ flush: o, deep:
|
|
261
|
+
{ flush: o, deep: D, eventFilter: c }
|
|
262
262
|
);
|
|
263
|
-
b && S &&
|
|
264
|
-
he(b, "storage",
|
|
265
|
-
}), r ||
|
|
263
|
+
b && S && Yr(() => {
|
|
264
|
+
he(b, "storage", A), he(b, st, g), r && A();
|
|
265
|
+
}), r || A();
|
|
266
266
|
function _(f, C) {
|
|
267
|
-
b && b.dispatchEvent(new CustomEvent(
|
|
267
|
+
b && b.dispatchEvent(new CustomEvent(st, {
|
|
268
268
|
detail: {
|
|
269
269
|
key: e,
|
|
270
270
|
oldValue: f,
|
|
@@ -296,7 +296,7 @@ function Mr(e, t, a, l = {}) {
|
|
|
296
296
|
} else
|
|
297
297
|
return typeof C != "string" ? C : I.read(C);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function A(f) {
|
|
300
300
|
if (!(f && f.storageArea !== a)) {
|
|
301
301
|
if (f && f.key == null) {
|
|
302
302
|
x.value = E;
|
|
@@ -315,23 +315,23 @@ function Mr(e, t, a, l = {}) {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
function g(f) {
|
|
318
|
-
|
|
318
|
+
A(f.detail);
|
|
319
319
|
}
|
|
320
320
|
return x;
|
|
321
321
|
}
|
|
322
322
|
function ra(e) {
|
|
323
|
-
const t =
|
|
323
|
+
const t = cr(), a = Bn(
|
|
324
324
|
() => null,
|
|
325
|
-
() => e ?
|
|
325
|
+
() => e ? Jr(e) : t.proxy.$el
|
|
326
326
|
);
|
|
327
|
-
return Pn(a.trigger),
|
|
327
|
+
return Pn(a.trigger), zr(a.trigger), a;
|
|
328
328
|
}
|
|
329
329
|
function ta(e = ra()) {
|
|
330
330
|
const t = Ne(), a = () => {
|
|
331
|
-
const l =
|
|
331
|
+
const l = Jr(e);
|
|
332
332
|
l && (t.value = l.parentElement);
|
|
333
333
|
};
|
|
334
|
-
return
|
|
334
|
+
return Yr(a), Ae(() => ae(e), a), t;
|
|
335
335
|
}
|
|
336
336
|
function na(e) {
|
|
337
337
|
return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, aa);
|
|
@@ -342,7 +342,7 @@ function aa(e) {
|
|
|
342
342
|
}
|
|
343
343
|
function ua(e) {
|
|
344
344
|
const t = Y([]), a = Ne(), l = Ne(), s = Ne(), o = le(() => a.value != null);
|
|
345
|
-
function
|
|
345
|
+
function D(b) {
|
|
346
346
|
t.value = t.value.filter((c) => c.id != b);
|
|
347
347
|
}
|
|
348
348
|
function S(b) {
|
|
@@ -370,10 +370,10 @@ function ua(e) {
|
|
|
370
370
|
return x;
|
|
371
371
|
N(h.errorMsg ?? E ?? "error");
|
|
372
372
|
} finally {
|
|
373
|
-
|
|
373
|
+
D(r);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
return
|
|
376
|
+
return Lt(t, (b) => {
|
|
377
377
|
a.value = b.length > 0 ? b[0].msg : void 0;
|
|
378
378
|
}, { deep: !0 }), {
|
|
379
379
|
actionErrorMsg: l,
|
|
@@ -386,13 +386,13 @@ function ua(e) {
|
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
function la(e) {
|
|
389
|
-
const { actionErrorMsg: t, actionLoadingMsg: a, clearErrors: l, isLoading: s, doAction: o, logError:
|
|
389
|
+
const { actionErrorMsg: t, actionLoadingMsg: a, clearErrors: l, isLoading: s, doAction: o, logError: D } = ua(e);
|
|
390
390
|
function S(r) {
|
|
391
391
|
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), r.store ?? (r.store = e == null ? void 0 : e.store);
|
|
392
392
|
const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
393
393
|
return r.nav != null && x != null && (r.onDeleteAsync ?? (r.onDeleteAsync = () => x().deleteItem(r))), o(async () => {
|
|
394
394
|
let E;
|
|
395
|
-
r.onCanDeleteAsync != null && (E = await r.onCanDeleteAsync(r.data)), E == null && r.onDeleteAsync != null && (E = await r.onDeleteAsync(r.data)), E == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data),
|
|
395
|
+
r.onCanDeleteAsync != null && (E = await r.onCanDeleteAsync(r.data)), E == null && r.onDeleteAsync != null && (E = await r.onDeleteAsync(r.data)), E == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data), D(E);
|
|
396
396
|
}, {
|
|
397
397
|
completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
|
|
398
398
|
confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
|
|
@@ -437,7 +437,7 @@ function la(e) {
|
|
|
437
437
|
const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
438
438
|
return r.nav != null && x != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => x().restore(r))), o(async () => {
|
|
439
439
|
let E, y;
|
|
440
|
-
return r.onCanRestoreAsync != null && (E = await r.onCanRestoreAsync(r.data)), E == null && r.onRestoreAsync != null && (y = await r.onRestoreAsync(r.data)), y != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(y),
|
|
440
|
+
return r.onCanRestoreAsync != null && (E = await r.onCanRestoreAsync(r.data)), E == null && r.onRestoreAsync != null && (y = await r.onRestoreAsync(r.data)), y != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(y), D(E), y;
|
|
441
441
|
}, {
|
|
442
442
|
completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
|
|
443
443
|
confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
|
|
@@ -456,7 +456,7 @@ function la(e) {
|
|
|
456
456
|
return;
|
|
457
457
|
if (r.onCanSaveAsync != null) {
|
|
458
458
|
let I = await r.onCanSaveAsync(E);
|
|
459
|
-
if (
|
|
459
|
+
if (D(I), I == null)
|
|
460
460
|
return;
|
|
461
461
|
}
|
|
462
462
|
let y;
|
|
@@ -487,7 +487,7 @@ function la(e) {
|
|
|
487
487
|
getAllItems: L,
|
|
488
488
|
getItem: N,
|
|
489
489
|
isLoading: s,
|
|
490
|
-
logError:
|
|
490
|
+
logError: D,
|
|
491
491
|
restoreItem: R,
|
|
492
492
|
saveItem: b
|
|
493
493
|
};
|
|
@@ -505,9 +505,9 @@ var Ze = function() {
|
|
|
505
505
|
}
|
|
506
506
|
function a(s, o) {
|
|
507
507
|
if (o = typeof o == "object" ? o : { direction: o }, typeof s != "function") {
|
|
508
|
-
var
|
|
508
|
+
var D = s;
|
|
509
509
|
s = function(b) {
|
|
510
|
-
return b[
|
|
510
|
+
return b[D] ? b[D] : "";
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
if (s.length === 1) {
|
|
@@ -524,8 +524,8 @@ var Ze = function() {
|
|
|
524
524
|
} : s;
|
|
525
525
|
}
|
|
526
526
|
function l(s, o) {
|
|
527
|
-
var
|
|
528
|
-
return
|
|
527
|
+
var D = typeof this == "function" && !this.firstBy ? this : !1, S = a(s, o), N = D ? function(L, R) {
|
|
528
|
+
return D(L, R) || S(L, R);
|
|
529
529
|
} : S;
|
|
530
530
|
return N.thenBy = l, N;
|
|
531
531
|
}
|
|
@@ -543,10 +543,10 @@ function Ce(e, t) {
|
|
|
543
543
|
while (l.startsWith("/"));
|
|
544
544
|
return `${a}/${l}`;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function Xa(e) {
|
|
547
547
|
return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Oa(e = "blitzItExtensionExists") {
|
|
550
550
|
try {
|
|
551
551
|
var t = document.getElementById(e);
|
|
552
552
|
return t != null;
|
|
@@ -554,7 +554,7 @@ function ru(e = "blitzItExtensionExists") {
|
|
|
554
554
|
return console.log(va(a)), !1;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function pa(e, t) {
|
|
558
558
|
return [
|
|
559
559
|
{ lat: e.lat - t, lng: e.lng + t },
|
|
560
560
|
{ lat: e.lat - t, lng: e.lng - t },
|
|
@@ -562,7 +562,7 @@ function tu(e, t) {
|
|
|
562
562
|
{ lat: e.lat + t, lng: e.lng + t }
|
|
563
563
|
];
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function eu(e, t) {
|
|
566
566
|
return [
|
|
567
567
|
{ lat: e.lat - t * 2, lng: e.lng + t },
|
|
568
568
|
{ lat: e.lat - t * 2, lng: e.lng - t },
|
|
@@ -570,7 +570,7 @@ function nu(e, t) {
|
|
|
570
570
|
{ lat: e.lat, lng: e.lng + t }
|
|
571
571
|
];
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function ru(e, t) {
|
|
574
574
|
return [
|
|
575
575
|
{ lat: e.lat, lng: e.lng + t },
|
|
576
576
|
{ lat: e.lat, lng: e.lng - t },
|
|
@@ -578,11 +578,11 @@ function au(e, t) {
|
|
|
578
578
|
{ lat: e.lat + t * 2, lng: e.lng + t }
|
|
579
579
|
];
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
var t =
|
|
581
|
+
function tu(e) {
|
|
582
|
+
var t = Mt(e, !0);
|
|
583
583
|
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(" ", "");
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Mt(e, t = !1) {
|
|
586
586
|
if (e == null)
|
|
587
587
|
return "";
|
|
588
588
|
if (typeof e != "object")
|
|
@@ -590,21 +590,21 @@ function Rt(e, t = !1) {
|
|
|
590
590
|
var a = "";
|
|
591
591
|
return e.addressLineOne != null && !t && (a = e.addressLineOne + " "), e.streetNumber != null && (a = a + e.streetNumber + " "), e.streetName != null && (a = a + e.streetName + ", "), e.suburb != null && (a = a + e.suburb + " "), e.state != null && (a = a + e.state + " "), e.postcode != null && (a = a + e.postcode), a;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function nu(e, t, a) {
|
|
594
594
|
if (e) {
|
|
595
595
|
var l = new Image();
|
|
596
596
|
l.onload = t, l.onerror = a, l.src = e;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
async function
|
|
599
|
+
async function au(e, t = !0) {
|
|
600
600
|
return new Promise((a, l) => {
|
|
601
601
|
e == null && l("no url given");
|
|
602
602
|
var s = new Image();
|
|
603
603
|
s.setAttribute("crossOrigin", "anonymous"), s.onload = function() {
|
|
604
604
|
var o = document.createElement("canvas");
|
|
605
605
|
o.width = this.width, o.height = this.height;
|
|
606
|
-
var
|
|
607
|
-
|
|
606
|
+
var D = o.getContext("2d");
|
|
607
|
+
D == null || D.drawImage(this, 0, 0), a(o.toDataURL("image/png"));
|
|
608
608
|
}, s.onerror = function() {
|
|
609
609
|
console.log("errr"), t ? l("image could not be loaded for some reason") : a(null);
|
|
610
610
|
}, e != null && (s.src = e);
|
|
@@ -613,7 +613,7 @@ async function cu(e, t = !0) {
|
|
|
613
613
|
function ia(e) {
|
|
614
614
|
return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function uu(e) {
|
|
617
617
|
if (e != null && typeof e == "object")
|
|
618
618
|
for (var t in e)
|
|
619
619
|
/^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
|
|
@@ -632,39 +632,39 @@ const Ye = [
|
|
|
632
632
|
{ value: 7, short: "sat", values: ["sat", "saturday"] },
|
|
633
633
|
{ value: 0, short: "always", values: ["always", null, void 0] }
|
|
634
634
|
];
|
|
635
|
-
function
|
|
635
|
+
function lu(e) {
|
|
636
636
|
if (e == null)
|
|
637
637
|
return 0;
|
|
638
638
|
const t = e.replaceAll(" ", "").split(",").map((l) => l.toLowerCase()), a = Ye.filter((l) => l.values.some((s) => t.some((o) => s == o))).map((l) => l.value);
|
|
639
639
|
return a.length == 0 ? 8 : Math.min(...a);
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function cu(e) {
|
|
642
642
|
return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
|
|
643
643
|
let a = Ye.find((l) => l.values.some((s) => s == t));
|
|
644
644
|
return a != null ? a.short : "";
|
|
645
645
|
}).filter((t) => t != null && t.length > 0).toString();
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function iu(e, t) {
|
|
648
648
|
if (e == null || t == null)
|
|
649
649
|
return !0;
|
|
650
|
-
const a = e.replaceAll(" ", "").split(",").map((o) => o.toLowerCase()), l = t.replaceAll(" ", "").toLowerCase(), s = Ye.find((o) => o.values.some((
|
|
651
|
-
return s != null && a.some((o) => o == s.short || s.values.some((
|
|
650
|
+
const a = e.replaceAll(" ", "").split(",").map((o) => o.toLowerCase()), l = t.replaceAll(" ", "").toLowerCase(), s = Ye.find((o) => o.values.some((D) => D == l));
|
|
651
|
+
return s != null && a.some((o) => o == s.short || s.values.some((D) => D == o));
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function fu(e, t) {
|
|
654
654
|
if (t == null)
|
|
655
655
|
return e;
|
|
656
656
|
let a = e ?? "";
|
|
657
657
|
a = `${a},${t}`;
|
|
658
|
-
let l = [...new Set(a.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ye.find((o) => o.values.some((
|
|
658
|
+
let l = [...new Set(a.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ye.find((o) => o.values.some((D) => D == s))).filter((s) => s != null).sort(Ze.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
|
|
659
659
|
return l.length > 0 ? l : void 0;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function su(e, t) {
|
|
662
662
|
if (t == null || e == null)
|
|
663
663
|
return e;
|
|
664
|
-
let a = e ?? "", l = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(a.replaceAll(" ", "").toLowerCase().split(",").map((o) => Ye.find((
|
|
664
|
+
let a = e ?? "", l = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(a.replaceAll(" ", "").toLowerCase().split(",").map((o) => Ye.find((D) => D.values.some((S) => S == o && S != l))).filter((o) => o != null).sort(Ze.firstBy((o) => (o == null ? void 0 : o.value) ?? 0)).map((o) => o == null ? void 0 : o.short))].toString();
|
|
665
665
|
return s.length > 0 ? s : void 0;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function ou(e, t) {
|
|
668
668
|
return e != null && Array.isArray(e) && e.length == t;
|
|
669
669
|
}
|
|
670
670
|
function Fe(e, t = 0) {
|
|
@@ -673,13 +673,13 @@ function Fe(e, t = 0) {
|
|
|
673
673
|
function sa(e) {
|
|
674
674
|
return e == "0001-01-01T00:00:00Z";
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function hu() {
|
|
677
677
|
return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
|
|
678
678
|
}
|
|
679
679
|
function oa() {
|
|
680
680
|
return "0001-01-01T00:00:00Z";
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function du(e, t) {
|
|
683
683
|
let a = "1", l = 0;
|
|
684
684
|
if (l < t)
|
|
685
685
|
do
|
|
@@ -688,7 +688,7 @@ function gu(e, t) {
|
|
|
688
688
|
let s = Number.parseInt(a);
|
|
689
689
|
return Math.round(e * s) / s;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function mu(e, t) {
|
|
692
692
|
let a = e ?? "";
|
|
693
693
|
return t != null && (ha(a, t) ? a = a.split(",").filter((l) => l != t).toString() : a != null ? a = `${a},${t}` : a = t), a != null && a.length > 0 ? a : null;
|
|
694
694
|
}
|
|
@@ -700,12 +700,12 @@ function ha(e, t) {
|
|
|
700
700
|
var a = e.split(","), l = t.split(",");
|
|
701
701
|
return a.some((s) => l.some((o) => o == s));
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Kr(e) {
|
|
704
704
|
if (!e)
|
|
705
705
|
return e;
|
|
706
706
|
let t, a = Array.isArray(e) ? [] : {};
|
|
707
707
|
for (const l in e)
|
|
708
|
-
t = e[l], a[l] = typeof t == "object" ?
|
|
708
|
+
t = e[l], a[l] = typeof t == "object" ? Kr(t) : t;
|
|
709
709
|
return a;
|
|
710
710
|
}
|
|
711
711
|
function da(e) {
|
|
@@ -717,17 +717,17 @@ function da(e) {
|
|
|
717
717
|
function ma(e, t) {
|
|
718
718
|
return t == null ? !0 : e == null ? !1 : e.toLowerCase().includes(t.toLowerCase());
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Rt(e, t = (a) => a) {
|
|
721
721
|
if (e == null)
|
|
722
722
|
return [];
|
|
723
723
|
const a = Array.isArray(e) ? e : t(e);
|
|
724
724
|
return Fe(a) ? [...a.reduce((l, s) => {
|
|
725
725
|
l.push(s);
|
|
726
|
-
const o =
|
|
726
|
+
const o = Rt(s, t);
|
|
727
727
|
return Fe(o) && l.push(...o), l;
|
|
728
728
|
}, [])] : [];
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function vu(e) {
|
|
731
731
|
const t = e.split(","), a = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), l = t[0].split(":")[1].split(";")[0], s = new Uint8Array(a.length);
|
|
732
732
|
for (let o = 0; o < a.length; o++)
|
|
733
733
|
s[o] = a.charCodeAt(o);
|
|
@@ -757,21 +757,21 @@ function ya(e, t, a) {
|
|
|
757
757
|
return !1;
|
|
758
758
|
for (let s = 0; s < a.length; s++) {
|
|
759
759
|
const o = a[s];
|
|
760
|
-
var l =
|
|
760
|
+
var l = Mr(e, o);
|
|
761
761
|
if (l != null && typeof l == "string" && ma(l, t))
|
|
762
762
|
return !0;
|
|
763
763
|
}
|
|
764
764
|
return !1;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function gu(e) {
|
|
767
767
|
return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function yu(e = 2e3) {
|
|
770
770
|
return new Promise((t) => {
|
|
771
771
|
setTimeout(() => t(), e);
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function Mr(e, t) {
|
|
775
775
|
if (e == null || e == null || !t)
|
|
776
776
|
return null;
|
|
777
777
|
var a = t.split(".");
|
|
@@ -784,12 +784,12 @@ function Rr(e, t) {
|
|
|
784
784
|
function wa(e) {
|
|
785
785
|
return e ? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) : !1;
|
|
786
786
|
}
|
|
787
|
-
let
|
|
787
|
+
let Rr;
|
|
788
788
|
function ba() {
|
|
789
|
-
return
|
|
789
|
+
return Rr;
|
|
790
790
|
}
|
|
791
791
|
function Ea(e) {
|
|
792
|
-
const t = (e == null ? void 0 : e.buildHeaders) ??
|
|
792
|
+
const t = (e == null ? void 0 : e.buildHeaders) ?? D, a = (e == null ? void 0 : e.buildQuery) ?? s, l = (e == null ? void 0 : e.buildUrl) ?? o;
|
|
793
793
|
function s(c) {
|
|
794
794
|
let h = new URLSearchParams();
|
|
795
795
|
return Object.entries(c).forEach((r) => {
|
|
@@ -802,7 +802,7 @@ function Ea(e) {
|
|
|
802
802
|
let h = K(c.url) ?? void 0, r = K(c.id);
|
|
803
803
|
return h == null && c.nav != null && (e == null ? void 0 : e.findPath) != null && (h = e.findPath(c.nav)), c.additionalUrl != null && (h == null ? h = c.additionalUrl : h = Ce(h, c.additionalUrl)), r != null && (h != null && h.includes("{id}") ? h = h.replaceAll("{id}", r) : h = Ce(h, r)), c.params != null && (h = `${h}?${a(c.params)}`), c.finalUrl = h, c.finalUrl ?? "";
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function D(c) {
|
|
806
806
|
var r, x;
|
|
807
807
|
let h = { ...c.headers };
|
|
808
808
|
return c.proxyID && (h.ManagedCompanyAccountID ?? (h.ManagedCompanyAccountID = c.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((r = e == null ? void 0 : e.auth) == null ? void 0 : r.isLoggedIn.value) == !0 && (h.authorization ?? (h.authorization = `bearer ${(x = e == null ? void 0 : e.auth) == null ? void 0 : x.credentials.value.token}`)), h["Content-Type"] ?? (h["Content-Type"] = c.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), h;
|
|
@@ -920,7 +920,7 @@ function Ea(e) {
|
|
|
920
920
|
throw new Error(y);
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
|
-
return
|
|
923
|
+
return Rr = {
|
|
924
924
|
buildHeaders: t,
|
|
925
925
|
buildQuery: a,
|
|
926
926
|
buildUrl: l,
|
|
@@ -929,145 +929,145 @@ function Ea(e) {
|
|
|
929
929
|
getAll: N,
|
|
930
930
|
patch: R,
|
|
931
931
|
post: L
|
|
932
|
-
},
|
|
932
|
+
}, Rr;
|
|
933
933
|
}
|
|
934
934
|
/*!
|
|
935
935
|
* vue-router v4.3.0
|
|
936
936
|
* (c) 2024 Eduardo San Martin Morote
|
|
937
937
|
* @license MIT
|
|
938
938
|
*/
|
|
939
|
-
var
|
|
939
|
+
var ot;
|
|
940
940
|
(function(e) {
|
|
941
941
|
e.pop = "pop", e.push = "push";
|
|
942
|
-
})(
|
|
943
|
-
var
|
|
942
|
+
})(ot || (ot = {}));
|
|
943
|
+
var ht;
|
|
944
944
|
(function(e) {
|
|
945
945
|
e.back = "back", e.forward = "forward", e.unknown = "";
|
|
946
|
-
})(
|
|
946
|
+
})(ht || (ht = {}));
|
|
947
947
|
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
948
|
-
var
|
|
948
|
+
var dt;
|
|
949
949
|
(function(e) {
|
|
950
950
|
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
|
951
|
-
})(
|
|
951
|
+
})(dt || (dt = {}));
|
|
952
952
|
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
953
953
|
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
954
954
|
const Sa = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), _a = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
955
955
|
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
956
|
-
function
|
|
957
|
-
return
|
|
956
|
+
function Ut() {
|
|
957
|
+
return ir(Sa);
|
|
958
958
|
}
|
|
959
959
|
function Aa() {
|
|
960
|
-
return
|
|
960
|
+
return ir(_a);
|
|
961
961
|
}
|
|
962
|
-
var
|
|
962
|
+
var Qr = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
963
963
|
let ye;
|
|
964
|
-
function
|
|
965
|
-
const e =
|
|
964
|
+
function Bt() {
|
|
965
|
+
const e = Qr.NODE_ENV;
|
|
966
966
|
return ye == null ? e : (ye[e] ?? ye.development).localDbName ?? e;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
969
|
-
const e =
|
|
968
|
+
function mt() {
|
|
969
|
+
const e = Qr.NODE_ENV;
|
|
970
970
|
return ye == null ? "" : (ye[e] ?? ye.development).auth ?? "";
|
|
971
971
|
}
|
|
972
972
|
function Da(e) {
|
|
973
|
-
const t =
|
|
973
|
+
const t = Qr.NODE_ENV;
|
|
974
974
|
if (ye == null)
|
|
975
975
|
return "";
|
|
976
976
|
const a = ye[t] ?? ye.development;
|
|
977
977
|
return e == null ? a.data ?? "" : a.other[e] ?? a.data ?? "";
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function wu() {
|
|
980
980
|
return ye;
|
|
981
981
|
}
|
|
982
982
|
function Ia(e) {
|
|
983
983
|
return ye = e, ye;
|
|
984
984
|
}
|
|
985
|
-
let pe = "Australia/Melbourne",
|
|
986
|
-
function
|
|
987
|
-
return
|
|
985
|
+
let pe = "Australia/Melbourne", Ur;
|
|
986
|
+
function bu() {
|
|
987
|
+
return Ur;
|
|
988
988
|
}
|
|
989
989
|
function xa(e) {
|
|
990
|
-
const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a", a =
|
|
990
|
+
const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a", a = Lr("auth-credentials-state", Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11)), l = Lr("auth-credentials", {});
|
|
991
991
|
function s(m) {
|
|
992
992
|
if (m == null)
|
|
993
993
|
return !0;
|
|
994
|
-
var
|
|
995
|
-
if (
|
|
994
|
+
var A = e.getAuthItem != null ? e.getAuthItem(m) : null;
|
|
995
|
+
if (A == null)
|
|
996
996
|
return !1;
|
|
997
|
-
if (
|
|
997
|
+
if (A.requiresAuth === !1)
|
|
998
998
|
return !0;
|
|
999
999
|
const g = K(l);
|
|
1000
|
-
if (g.isSuspended &&
|
|
1000
|
+
if (g.isSuspended && A.ignoreSuspension !== !0)
|
|
1001
1001
|
return !1;
|
|
1002
1002
|
if (g.isGlobalAdmin)
|
|
1003
1003
|
return !0;
|
|
1004
|
-
if (
|
|
1005
|
-
for (var f = 0; f <
|
|
1006
|
-
if (!o(
|
|
1004
|
+
if (A.permissions != null) {
|
|
1005
|
+
for (var f = 0; f < A.permissions.length; f++)
|
|
1006
|
+
if (!o(A.permissions[f]))
|
|
1007
1007
|
return !1;
|
|
1008
1008
|
}
|
|
1009
1009
|
return !0;
|
|
1010
1010
|
}
|
|
1011
1011
|
function o(m) {
|
|
1012
|
-
const
|
|
1013
|
-
if (
|
|
1014
|
-
for (var g = 0; g <
|
|
1015
|
-
var f =
|
|
1016
|
-
if (
|
|
1012
|
+
const A = K(l);
|
|
1013
|
+
if (A.userPermissions != null)
|
|
1014
|
+
for (var g = 0; g < A.userPermissions.length; g++) {
|
|
1015
|
+
var f = A.userPermissions[g].split(".");
|
|
1016
|
+
if (A.userPermissions[g] == "everything.edit" || m == f[0] && f.length > 1 && f[1] == "edit")
|
|
1017
1017
|
return !0;
|
|
1018
1018
|
}
|
|
1019
1019
|
return !1;
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function D(m) {
|
|
1022
1022
|
if (m == null)
|
|
1023
1023
|
return !0;
|
|
1024
|
-
var
|
|
1025
|
-
if (
|
|
1024
|
+
var A = e.getAuthItem != null ? e.getAuthItem(m) : null;
|
|
1025
|
+
if (A == null)
|
|
1026
1026
|
return !1;
|
|
1027
|
-
if (
|
|
1027
|
+
if (A.requiresAuth === !1)
|
|
1028
1028
|
return !0;
|
|
1029
1029
|
const g = K(l);
|
|
1030
|
-
if (g.isSuspended &&
|
|
1030
|
+
if (g.isSuspended && A.ignoreSuspension !== !0)
|
|
1031
1031
|
return !1;
|
|
1032
1032
|
if (g.isGlobalAdmin)
|
|
1033
1033
|
return !0;
|
|
1034
|
-
if (
|
|
1035
|
-
for (var f = 0; f <
|
|
1036
|
-
if (!S(
|
|
1034
|
+
if (A.permissions != null) {
|
|
1035
|
+
for (var f = 0; f < A.permissions.length; f++)
|
|
1036
|
+
if (!S(A.permissions[f]))
|
|
1037
1037
|
return !1;
|
|
1038
1038
|
}
|
|
1039
1039
|
return !0;
|
|
1040
1040
|
}
|
|
1041
1041
|
function S(m) {
|
|
1042
|
-
const
|
|
1043
|
-
if (
|
|
1044
|
-
for (var g = 0; g <
|
|
1045
|
-
var f =
|
|
1046
|
-
if (m == f[0] || m == "everything" ||
|
|
1042
|
+
const A = K(l);
|
|
1043
|
+
if (A.userPermissions != null)
|
|
1044
|
+
for (var g = 0; g < A.userPermissions.length; g++) {
|
|
1045
|
+
var f = A.userPermissions[g].split(".");
|
|
1046
|
+
if (m == f[0] || m == "everything" || A.userPermissions[g] == "everything.view" || A.userPermissions[g] == "everything.edit")
|
|
1047
1047
|
return !0;
|
|
1048
1048
|
}
|
|
1049
1049
|
return !1;
|
|
1050
1050
|
}
|
|
1051
|
-
function N(m,
|
|
1051
|
+
function N(m, A, g) {
|
|
1052
1052
|
let f = !0;
|
|
1053
|
-
return K(l).isGlobalAdmin ? !0 : (
|
|
1053
|
+
return K(l).isGlobalAdmin ? !0 : (A != null && A.length > 0 && A.forEach((G) => {
|
|
1054
1054
|
g == "edit" ? o(G) || (f = !1) : S(G) || (f = !1);
|
|
1055
1055
|
}), m != null && m.length > 0 && (m.some((G) => c(G)) || (f = !1)), f);
|
|
1056
1056
|
}
|
|
1057
|
-
function L(m,
|
|
1057
|
+
function L(m, A = !1) {
|
|
1058
1058
|
var g = e.getAuthItem != null ? e.getAuthItem(m) : null;
|
|
1059
1059
|
let f = !1;
|
|
1060
1060
|
if (g == null)
|
|
1061
1061
|
return !1;
|
|
1062
1062
|
let C = g.subscriptions ?? [], G = g.permissions ?? [], J = N(C, G, "view");
|
|
1063
|
-
return J || !
|
|
1063
|
+
return J || !A || !Fe(g.children) ? J : ((g == null ? void 0 : g.children) != null && g.children.forEach((ee) => {
|
|
1064
1064
|
L(ee, !0) && (f = !0);
|
|
1065
1065
|
}), f);
|
|
1066
1066
|
}
|
|
1067
1067
|
function R(m) {
|
|
1068
|
-
return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (
|
|
1069
|
-
const f = Ce(
|
|
1070
|
-
return
|
|
1068
|
+
return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (A, g) => {
|
|
1069
|
+
const f = Ce(mt(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${g}`);
|
|
1070
|
+
return A ? `${f}&redirect_path=${A}` : f;
|
|
1071
1071
|
}), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(m, a.value) ?? "" : "";
|
|
1072
1072
|
}
|
|
1073
1073
|
function b(m) {
|
|
@@ -1075,12 +1075,12 @@ function xa(e) {
|
|
|
1075
1075
|
return m == null ? 0 : ((g = (e.subscriptionOptions ?? []).find((f) => f.code == m)) == null ? void 0 : g.value) ?? 0;
|
|
1076
1076
|
}
|
|
1077
1077
|
function c(m) {
|
|
1078
|
-
const
|
|
1079
|
-
if (
|
|
1078
|
+
const A = K(l);
|
|
1079
|
+
if (A.subscriptionCode == null)
|
|
1080
1080
|
return !1;
|
|
1081
|
-
if (
|
|
1081
|
+
if (A.subscriptionCode == m)
|
|
1082
1082
|
return !0;
|
|
1083
|
-
const g = b(m), f = b(
|
|
1083
|
+
const g = b(m), f = b(A.subscriptionCode);
|
|
1084
1084
|
return g <= f;
|
|
1085
1085
|
}
|
|
1086
1086
|
function h(m) {
|
|
@@ -1093,23 +1093,23 @@ function xa(e) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
function r(m) {
|
|
1095
1095
|
if (l.value = void 0, B(), m != null) {
|
|
1096
|
-
const
|
|
1097
|
-
|
|
1096
|
+
const A = Ut();
|
|
1097
|
+
A.currentRoute.value.name != m && A.push({ name: m });
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
function x(m) {
|
|
1101
1101
|
var g;
|
|
1102
1102
|
K(l).isLoggedIn || ((g = e.demo) == null || g.endDemo(), P() && (r(), window.location.href = R(m)));
|
|
1103
1103
|
}
|
|
1104
|
-
async function E(m,
|
|
1104
|
+
async function E(m, A) {
|
|
1105
1105
|
return e.getToken ?? (e.getToken = async () => {
|
|
1106
|
-
let g = m, f =
|
|
1106
|
+
let g = m, f = A, C = e.oauthGrantType ?? "authorization_token", G = e.oauthClientID ?? "";
|
|
1107
1107
|
if (g == null || f == null)
|
|
1108
1108
|
throw new Error("Code and State required in OAuth token process");
|
|
1109
1109
|
if (f != a.value)
|
|
1110
1110
|
throw new Error("state does not match");
|
|
1111
1111
|
let J = "";
|
|
1112
|
-
e.getTokenUrl ?? (e.getTokenUrl = () => Ce(
|
|
1112
|
+
e.getTokenUrl ?? (e.getTokenUrl = () => Ce(mt(), "token")), J = e.getTokenUrl(g, `${window.location.origin}/authentication`, C, G);
|
|
1113
1113
|
const ee = {};
|
|
1114
1114
|
ee.grant_type = C, ee.code = g, ee.redirect_uri = `${window.location.origin}/authentication`, ee.client_id = G;
|
|
1115
1115
|
const W = await ba().post({
|
|
@@ -1117,18 +1117,18 @@ function xa(e) {
|
|
|
1117
1117
|
data: ee
|
|
1118
1118
|
});
|
|
1119
1119
|
y(W.access_token);
|
|
1120
|
-
}), await e.getToken(m,
|
|
1120
|
+
}), await e.getToken(m, A);
|
|
1121
1121
|
}
|
|
1122
1122
|
function y(m) {
|
|
1123
1123
|
if (m != null && (e.demo == null || !e.demo.isDemoing.value)) {
|
|
1124
|
-
const
|
|
1125
|
-
I(
|
|
1124
|
+
const A = h(m);
|
|
1125
|
+
I(A), e.processTokenPayload != null && e.processTokenPayload(l, A);
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
function I(m) {
|
|
1129
1129
|
var g;
|
|
1130
|
-
const
|
|
1131
|
-
|
|
1130
|
+
const A = l.value;
|
|
1131
|
+
A.expiresOn = m.ExpiresOn, A.isGlobalAdmin = m.IsGlobalAdmin == "True", A.isLoggedIn = !0, A.permissions = m.Permissions, A.subscriptionCode = m.Subscription, A.timeZone ?? (A.timeZone = e.defaultTimeZone ?? pe), A.token = m, A.userID = m.UserLoginID, A.userPermissions = ((g = m.Permissions) == null ? void 0 : g.split(",")) ?? [];
|
|
1132
1132
|
}
|
|
1133
1133
|
function B() {
|
|
1134
1134
|
var m;
|
|
@@ -1145,14 +1145,14 @@ function xa(e) {
|
|
|
1145
1145
|
const m = K(l);
|
|
1146
1146
|
if (m == null || m.expiresOn == null)
|
|
1147
1147
|
return !0;
|
|
1148
|
-
const
|
|
1149
|
-
return
|
|
1148
|
+
const A = fe.fromFormat(m.expiresOn, t), g = fe.utc();
|
|
1149
|
+
return A <= g;
|
|
1150
1150
|
}
|
|
1151
|
-
return B(),
|
|
1151
|
+
return B(), Ur = {
|
|
1152
1152
|
authState: a.value,
|
|
1153
1153
|
canEdit: s,
|
|
1154
1154
|
canEditPermit: o,
|
|
1155
|
-
canView:
|
|
1155
|
+
canView: D,
|
|
1156
1156
|
canViewPermit: S,
|
|
1157
1157
|
credentials: l,
|
|
1158
1158
|
doShow: N,
|
|
@@ -1166,10 +1166,10 @@ function xa(e) {
|
|
|
1166
1166
|
setAuth: y,
|
|
1167
1167
|
timeZone: le(() => l.value.timeZone ?? e.defaultTimeZone ?? pe),
|
|
1168
1168
|
tryLogin: _
|
|
1169
|
-
},
|
|
1169
|
+
}, Ur;
|
|
1170
1170
|
}
|
|
1171
1171
|
function Na(e, t) {
|
|
1172
|
-
const a =
|
|
1172
|
+
const a = cr();
|
|
1173
1173
|
if (!a)
|
|
1174
1174
|
throw new Error(`[Vuetify] ${e} ${t || "must be called from inside a setup function"}`);
|
|
1175
1175
|
return a;
|
|
@@ -1177,12 +1177,12 @@ function Na(e, t) {
|
|
|
1177
1177
|
const Ta = Symbol.for("vuetify:theme");
|
|
1178
1178
|
function Ca() {
|
|
1179
1179
|
Na("useTheme");
|
|
1180
|
-
const e =
|
|
1180
|
+
const e = ir(Ta, null);
|
|
1181
1181
|
if (!e)
|
|
1182
1182
|
throw new Error("Could not find Vuetify theme injection");
|
|
1183
1183
|
return e;
|
|
1184
1184
|
}
|
|
1185
|
-
const
|
|
1185
|
+
const Br = {
|
|
1186
1186
|
primary: "#192233",
|
|
1187
1187
|
secondary: "#192233",
|
|
1188
1188
|
accent: "#2a76a2",
|
|
@@ -1190,7 +1190,7 @@ const $r = {
|
|
|
1190
1190
|
info: "#2196F3",
|
|
1191
1191
|
success: "#4CAF50",
|
|
1192
1192
|
warning: "#FB8C00"
|
|
1193
|
-
},
|
|
1193
|
+
}, $r = {
|
|
1194
1194
|
primary: "#1d5474",
|
|
1195
1195
|
secondary: "#192233",
|
|
1196
1196
|
accent: "#7fcbf7",
|
|
@@ -1200,7 +1200,7 @@ const $r = {
|
|
|
1200
1200
|
warning: "#FB8C00"
|
|
1201
1201
|
};
|
|
1202
1202
|
let Ge = {}, ie;
|
|
1203
|
-
function
|
|
1203
|
+
function Eu() {
|
|
1204
1204
|
const e = Ca();
|
|
1205
1205
|
function t() {
|
|
1206
1206
|
e.global.name.value = ie.value.theme;
|
|
@@ -1216,13 +1216,13 @@ function Au() {
|
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
1218
|
function a(N) {
|
|
1219
|
-
e.global.name.value = ie.value.theme, e.global.name.value == "dark" ? (N && (ie.value.dark = { ...Ge.defaultDarkTheme ??
|
|
1219
|
+
e.global.name.value = ie.value.theme, e.global.name.value == "dark" ? (N && (ie.value.dark = { ...Ge.defaultDarkTheme ?? $r }), e.themes.value.dark = {
|
|
1220
1220
|
...e.themes.value.dark,
|
|
1221
1221
|
colors: {
|
|
1222
1222
|
...e.themes.value.dark.colors,
|
|
1223
1223
|
...ie.value.dark
|
|
1224
1224
|
}
|
|
1225
|
-
}) : (N && (ie.value.light = { ...Ge.defaultLightTheme ??
|
|
1225
|
+
}) : (N && (ie.value.light = { ...Ge.defaultLightTheme ?? Br }), e.themes.value.light = {
|
|
1226
1226
|
...e.themes.value.light,
|
|
1227
1227
|
colors: {
|
|
1228
1228
|
...e.themes.value.light.colors,
|
|
@@ -1241,13 +1241,13 @@ function Au() {
|
|
|
1241
1241
|
function o() {
|
|
1242
1242
|
ie.value.drawerStick = !ie.value.drawerStick;
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function D() {
|
|
1245
1245
|
ie.value.theme = ie.value.theme == "dark" ? "light" : "dark", e.global.name.value = ie.value.theme;
|
|
1246
1246
|
}
|
|
1247
1247
|
function S() {
|
|
1248
1248
|
var R;
|
|
1249
1249
|
const N = e.themes.value.dark, L = e.themes.value.light;
|
|
1250
|
-
N.colors.primary = (ie.value.dark ?? Ge.defaultDarkTheme ??
|
|
1250
|
+
N.colors.primary = (ie.value.dark ?? Ge.defaultDarkTheme ?? $r).primary, L.colors.primary = (ie.value.light ?? Ge.defaultLightTheme ?? Br).primary, (R = document.querySelector('meta[name="theme-color"]')) == null || R.setAttribute("content", "");
|
|
1251
1251
|
}
|
|
1252
1252
|
return {
|
|
1253
1253
|
state: ie,
|
|
@@ -1256,20 +1256,20 @@ function Au() {
|
|
|
1256
1256
|
setTemporaryColor: l,
|
|
1257
1257
|
toggleDrawer: s,
|
|
1258
1258
|
toggleDrawerStick: o,
|
|
1259
|
-
toggleLightDark:
|
|
1259
|
+
toggleLightDark: D,
|
|
1260
1260
|
undoTemporaryColor: S
|
|
1261
1261
|
};
|
|
1262
1262
|
}
|
|
1263
1263
|
function Pa(e) {
|
|
1264
|
-
ie =
|
|
1264
|
+
ie = Lr("cosmetics", {
|
|
1265
1265
|
theme: e.defaultTheme ?? "light",
|
|
1266
|
-
light: e.defaultLightTheme ??
|
|
1267
|
-
dark: e.defaultDarkTheme ??
|
|
1266
|
+
light: e.defaultLightTheme ?? Br,
|
|
1267
|
+
dark: e.defaultDarkTheme ?? $r,
|
|
1268
1268
|
drawer: e.defaultDrawer ?? !0,
|
|
1269
1269
|
drawerStick: e.defaultDrawerStick ?? !1
|
|
1270
1270
|
}), Ge = e;
|
|
1271
1271
|
}
|
|
1272
|
-
const
|
|
1272
|
+
const Su = {
|
|
1273
1273
|
canExportCSV: !1
|
|
1274
1274
|
};
|
|
1275
1275
|
function La() {
|
|
@@ -1285,13 +1285,13 @@ function La() {
|
|
|
1285
1285
|
var o = [];
|
|
1286
1286
|
for (let r = 0; r < t.length; r++) {
|
|
1287
1287
|
const x = t[r];
|
|
1288
|
-
var
|
|
1288
|
+
var D = {}, S = [];
|
|
1289
1289
|
for (let E = 0; E < s.length; E++) {
|
|
1290
1290
|
const y = s[E];
|
|
1291
1291
|
var N = null;
|
|
1292
|
-
typeof y.value == "function" ? N = y.value(x) : typeof y.value == "string" && (N =
|
|
1292
|
+
typeof y.value == "function" ? N = y.value(x) : typeof y.value == "string" && (N = Mr(x, y.value)), y.itemText != null ? D[y.header] = Mr(N, y.itemText) : D[y.header] = N;
|
|
1293
1293
|
}
|
|
1294
|
-
o.push(
|
|
1294
|
+
o.push(D), Fe(S) && S.forEach((E) => {
|
|
1295
1295
|
o.push(E);
|
|
1296
1296
|
}), S = [];
|
|
1297
1297
|
}
|
|
@@ -1318,9 +1318,9 @@ function La() {
|
|
|
1318
1318
|
exportToCSV: e
|
|
1319
1319
|
};
|
|
1320
1320
|
}
|
|
1321
|
-
let
|
|
1322
|
-
function
|
|
1323
|
-
return
|
|
1321
|
+
let Fr;
|
|
1322
|
+
function _u() {
|
|
1323
|
+
return Fr;
|
|
1324
1324
|
}
|
|
1325
1325
|
function Ma(e) {
|
|
1326
1326
|
function t() {
|
|
@@ -1347,7 +1347,7 @@ function Ma(e) {
|
|
|
1347
1347
|
function o(S, N) {
|
|
1348
1348
|
return S == null ? fe.utc() : N ? fe.fromFormat(S, N) : fe.fromISO(S);
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function D(S, N, L) {
|
|
1351
1351
|
if (S == null)
|
|
1352
1352
|
return N ? fe.utc().toFormat(N) : fe.utc().toString();
|
|
1353
1353
|
{
|
|
@@ -1355,18 +1355,18 @@ function Ma(e) {
|
|
|
1355
1355
|
return N ? R.toFormat(N) : R.toString();
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
return
|
|
1358
|
+
return Fr = {
|
|
1359
1359
|
getToday: t,
|
|
1360
1360
|
getTomorrow: a,
|
|
1361
1361
|
tzDate: l,
|
|
1362
1362
|
tzString: s,
|
|
1363
1363
|
utcDate: o,
|
|
1364
|
-
utcString:
|
|
1365
|
-
},
|
|
1364
|
+
utcString: D
|
|
1365
|
+
}, Fr;
|
|
1366
1366
|
}
|
|
1367
|
-
let
|
|
1368
|
-
function
|
|
1369
|
-
return
|
|
1367
|
+
let kr;
|
|
1368
|
+
function Au() {
|
|
1369
|
+
return kr;
|
|
1370
1370
|
}
|
|
1371
1371
|
function Ra() {
|
|
1372
1372
|
const e = Y(!1);
|
|
@@ -1374,14 +1374,14 @@ function Ra() {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
function a() {
|
|
1376
1376
|
}
|
|
1377
|
-
return
|
|
1377
|
+
return kr = {
|
|
1378
1378
|
endDemo: a,
|
|
1379
1379
|
isDemoing: e,
|
|
1380
1380
|
startDemo: t
|
|
1381
|
-
},
|
|
1381
|
+
}, kr;
|
|
1382
1382
|
}
|
|
1383
1383
|
var Ua = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
1384
|
-
function
|
|
1384
|
+
function Du(e) {
|
|
1385
1385
|
function t(a) {
|
|
1386
1386
|
var s;
|
|
1387
1387
|
const l = a.matched.slice().reverse().find((o) => o.meta && o.meta.title);
|
|
@@ -1389,20 +1389,20 @@ function Nu(e) {
|
|
|
1389
1389
|
document.title = l.meta.title;
|
|
1390
1390
|
else {
|
|
1391
1391
|
const o = Ua.NODE_ENV;
|
|
1392
|
-
let
|
|
1393
|
-
o == "development" ?
|
|
1392
|
+
let D = "";
|
|
1393
|
+
o == "development" ? D = "BWeb Dev" : o == "staging" ? D = "BlitzIt Sandpit" : D = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((s = e == null ? void 0 : e.demo) == null ? void 0 : s.isDemoing.value) == !0 && (D = `Training: ${D}`), document.title = D;
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
1396
|
return {
|
|
1397
1397
|
updateMeta: t
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Iu(e, t, a = {}) {
|
|
1401
1401
|
const {
|
|
1402
1402
|
preventDefault: l = !1,
|
|
1403
1403
|
stopPropagation: s = !1,
|
|
1404
1404
|
axis: o = "both"
|
|
1405
|
-
} = a,
|
|
1405
|
+
} = a, D = { capture: a.capture ?? !0 };
|
|
1406
1406
|
let S = { x: 0, y: 0 }, N = { x: 0, y: 0 }, L = { x: 0, y: 0 }, R = [], b = [], c = Y(!1);
|
|
1407
1407
|
function h(U) {
|
|
1408
1408
|
K(l) && U.preventDefault(), K(s) && U.stopPropagation();
|
|
@@ -1412,8 +1412,8 @@ function Tu(e, t, a = {}) {
|
|
|
1412
1412
|
const _ = K(e);
|
|
1413
1413
|
if (!_)
|
|
1414
1414
|
return;
|
|
1415
|
-
const P = _.$el,
|
|
1416
|
-
L = { x:
|
|
1415
|
+
const P = _.$el, A = U.type === "touchstart" && U.touches.length > 0 ? U.touches[0] : U;
|
|
1416
|
+
L = { x: A.clientX, y: A.clientY }, N = {
|
|
1417
1417
|
x: P.offsetLeft,
|
|
1418
1418
|
y: P.offsetTop
|
|
1419
1419
|
}, S = {
|
|
@@ -1426,8 +1426,8 @@ function Tu(e, t, a = {}) {
|
|
|
1426
1426
|
if (!L || !K(e))
|
|
1427
1427
|
return;
|
|
1428
1428
|
const m = U.type === "touchmove" && U.touches.length > 0 ? U.touches[0] : U;
|
|
1429
|
-
let
|
|
1430
|
-
(o === "x" || o === "both") && (S.x = N.x +
|
|
1429
|
+
let A = m.clientX - L.x, g = m.clientY - L.y;
|
|
1430
|
+
(o === "x" || o === "both") && (S.x = N.x + A), (o === "y" || o === "both") && (S.y = N.y + g), (f = a.onMove) == null || f.call(a, S, U), h(U), y(S);
|
|
1431
1431
|
}
|
|
1432
1432
|
function E(U) {
|
|
1433
1433
|
var _;
|
|
@@ -1449,7 +1449,7 @@ function Tu(e, t, a = {}) {
|
|
|
1449
1449
|
if (!U)
|
|
1450
1450
|
return;
|
|
1451
1451
|
const _ = U.$el;
|
|
1452
|
-
_.style.cursor = "move", R.push(he(_, "mousedown", r,
|
|
1452
|
+
_.style.cursor = "move", R.push(he(_, "mousedown", r, D)), R.push(he(_, "touchstart", r, D)), c.value = !0;
|
|
1453
1453
|
}
|
|
1454
1454
|
function B() {
|
|
1455
1455
|
if (!K(c))
|
|
@@ -1468,9 +1468,9 @@ function Tu(e, t, a = {}) {
|
|
|
1468
1468
|
turnDraggableOn: I
|
|
1469
1469
|
};
|
|
1470
1470
|
}
|
|
1471
|
-
let
|
|
1472
|
-
function
|
|
1473
|
-
return
|
|
1471
|
+
let Vr;
|
|
1472
|
+
function xu() {
|
|
1473
|
+
return Vr;
|
|
1474
1474
|
}
|
|
1475
1475
|
function Ba(e) {
|
|
1476
1476
|
function t(g, f, C) {
|
|
@@ -1500,7 +1500,7 @@ function Ba(e) {
|
|
|
1500
1500
|
function o(g, f) {
|
|
1501
1501
|
return t(g, "d LLL", f);
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function D(g, f) {
|
|
1504
1504
|
return t(g, "ccc", f);
|
|
1505
1505
|
}
|
|
1506
1506
|
function S(g, f) {
|
|
@@ -1525,7 +1525,7 @@ function Ba(e) {
|
|
|
1525
1525
|
return e.dates.utcString(g, f);
|
|
1526
1526
|
}
|
|
1527
1527
|
function h(g) {
|
|
1528
|
-
return
|
|
1528
|
+
return Mt(g, !1);
|
|
1529
1529
|
}
|
|
1530
1530
|
function r(g) {
|
|
1531
1531
|
if (!g)
|
|
@@ -1568,7 +1568,7 @@ function Ba(e) {
|
|
|
1568
1568
|
toCurrency: l,
|
|
1569
1569
|
toDayDate: s,
|
|
1570
1570
|
toDayMonth: o,
|
|
1571
|
-
toDayOfWeek:
|
|
1571
|
+
toDayOfWeek: D,
|
|
1572
1572
|
toDayShortDate: S,
|
|
1573
1573
|
toDayShortDateAndTime: N,
|
|
1574
1574
|
toDisplayNumber: L,
|
|
@@ -1586,7 +1586,7 @@ function Ba(e) {
|
|
|
1586
1586
|
toTime: _,
|
|
1587
1587
|
toTimeOfDay: P
|
|
1588
1588
|
};
|
|
1589
|
-
function
|
|
1589
|
+
function A(g) {
|
|
1590
1590
|
if (g != null) {
|
|
1591
1591
|
let f = g;
|
|
1592
1592
|
if (f != null && m[f] != null)
|
|
@@ -1594,15 +1594,15 @@ function Ba(e) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
return (f) => f;
|
|
1596
1596
|
}
|
|
1597
|
-
return
|
|
1598
|
-
findFilter:
|
|
1597
|
+
return Vr = {
|
|
1598
|
+
findFilter: A,
|
|
1599
1599
|
...m
|
|
1600
|
-
},
|
|
1600
|
+
}, Vr;
|
|
1601
1601
|
}
|
|
1602
1602
|
function er(e) {
|
|
1603
1603
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1604
1604
|
}
|
|
1605
|
-
var
|
|
1605
|
+
var $t = { exports: {} };
|
|
1606
1606
|
/*!
|
|
1607
1607
|
localForage -- Offline Storage, Improved
|
|
1608
1608
|
Version 1.10.0
|
|
@@ -1614,7 +1614,7 @@ var Ft = { exports: {} };
|
|
|
1614
1614
|
e.exports = a();
|
|
1615
1615
|
})(function() {
|
|
1616
1616
|
return function a(l, s, o) {
|
|
1617
|
-
function
|
|
1617
|
+
function D(L, R) {
|
|
1618
1618
|
if (!s[L]) {
|
|
1619
1619
|
if (!l[L]) {
|
|
1620
1620
|
var b = typeof er == "function" && er;
|
|
@@ -1628,19 +1628,19 @@ var Ft = { exports: {} };
|
|
|
1628
1628
|
var h = s[L] = { exports: {} };
|
|
1629
1629
|
l[L][0].call(h.exports, function(r) {
|
|
1630
1630
|
var x = l[L][1][r];
|
|
1631
|
-
return
|
|
1631
|
+
return D(x || r);
|
|
1632
1632
|
}, h, h.exports, a, l, s, o);
|
|
1633
1633
|
}
|
|
1634
1634
|
return s[L].exports;
|
|
1635
1635
|
}
|
|
1636
1636
|
for (var S = typeof er == "function" && er, N = 0; N < o.length; N++)
|
|
1637
|
-
|
|
1638
|
-
return
|
|
1637
|
+
D(o[N]);
|
|
1638
|
+
return D;
|
|
1639
1639
|
}({ 1: [function(a, l, s) {
|
|
1640
1640
|
(function(o) {
|
|
1641
|
-
var
|
|
1642
|
-
if (
|
|
1643
|
-
var N = 0, L = new
|
|
1641
|
+
var D = o.MutationObserver || o.WebKitMutationObserver, S;
|
|
1642
|
+
if (D) {
|
|
1643
|
+
var N = 0, L = new D(r), R = o.document.createTextNode("");
|
|
1644
1644
|
L.observe(R, {
|
|
1645
1645
|
characterData: !0
|
|
1646
1646
|
}), S = function() {
|
|
@@ -1677,24 +1677,24 @@ var Ft = { exports: {} };
|
|
|
1677
1677
|
}).call(this, typeof Oe < "u" ? Oe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1678
1678
|
}, {}], 2: [function(a, l, s) {
|
|
1679
1679
|
var o = a(1);
|
|
1680
|
-
function
|
|
1680
|
+
function D() {
|
|
1681
1681
|
}
|
|
1682
1682
|
var S = {}, N = ["REJECTED"], L = ["FULFILLED"], R = ["PENDING"];
|
|
1683
1683
|
l.exports = b;
|
|
1684
1684
|
function b(_) {
|
|
1685
1685
|
if (typeof _ != "function")
|
|
1686
1686
|
throw new TypeError("resolver must be a function");
|
|
1687
|
-
this.state = R, this.queue = [], this.outcome = void 0, _ !==
|
|
1687
|
+
this.state = R, this.queue = [], this.outcome = void 0, _ !== D && x(this, _);
|
|
1688
1688
|
}
|
|
1689
1689
|
b.prototype.catch = function(_) {
|
|
1690
1690
|
return this.then(null, _);
|
|
1691
1691
|
}, b.prototype.then = function(_, P) {
|
|
1692
1692
|
if (typeof _ != "function" && this.state === L || typeof P != "function" && this.state === N)
|
|
1693
1693
|
return this;
|
|
1694
|
-
var m = new this.constructor(
|
|
1694
|
+
var m = new this.constructor(D);
|
|
1695
1695
|
if (this.state !== R) {
|
|
1696
|
-
var
|
|
1697
|
-
h(m,
|
|
1696
|
+
var A = this.state === L ? _ : P;
|
|
1697
|
+
h(m, A, this.outcome);
|
|
1698
1698
|
} else
|
|
1699
1699
|
this.queue.push(new c(m, _, P));
|
|
1700
1700
|
return m;
|
|
@@ -1713,22 +1713,22 @@ var Ft = { exports: {} };
|
|
|
1713
1713
|
};
|
|
1714
1714
|
function h(_, P, m) {
|
|
1715
1715
|
o(function() {
|
|
1716
|
-
var
|
|
1716
|
+
var A;
|
|
1717
1717
|
try {
|
|
1718
|
-
|
|
1718
|
+
A = P(m);
|
|
1719
1719
|
} catch (g) {
|
|
1720
1720
|
return S.reject(_, g);
|
|
1721
1721
|
}
|
|
1722
|
-
|
|
1722
|
+
A === _ ? S.reject(_, new TypeError("Cannot resolve promise with itself")) : S.resolve(_, A);
|
|
1723
1723
|
});
|
|
1724
1724
|
}
|
|
1725
1725
|
S.resolve = function(_, P) {
|
|
1726
1726
|
var m = E(r, P);
|
|
1727
1727
|
if (m.status === "error")
|
|
1728
1728
|
return S.reject(_, m.value);
|
|
1729
|
-
var
|
|
1730
|
-
if (
|
|
1731
|
-
x(_,
|
|
1729
|
+
var A = m.value;
|
|
1730
|
+
if (A)
|
|
1731
|
+
x(_, A);
|
|
1732
1732
|
else {
|
|
1733
1733
|
_.state = L, _.outcome = P;
|
|
1734
1734
|
for (var g = -1, f = _.queue.length; ++g < f; )
|
|
@@ -1737,7 +1737,7 @@ var Ft = { exports: {} };
|
|
|
1737
1737
|
return _;
|
|
1738
1738
|
}, S.reject = function(_, P) {
|
|
1739
1739
|
_.state = N, _.outcome = P;
|
|
1740
|
-
for (var m = -1,
|
|
1740
|
+
for (var m = -1, A = _.queue.length; ++m < A; )
|
|
1741
1741
|
_.queue[m].callRejected(P);
|
|
1742
1742
|
return _;
|
|
1743
1743
|
};
|
|
@@ -1750,34 +1750,34 @@ var Ft = { exports: {} };
|
|
|
1750
1750
|
}
|
|
1751
1751
|
function x(_, P) {
|
|
1752
1752
|
var m = !1;
|
|
1753
|
-
function
|
|
1753
|
+
function A(G) {
|
|
1754
1754
|
m || (m = !0, S.reject(_, G));
|
|
1755
1755
|
}
|
|
1756
1756
|
function g(G) {
|
|
1757
1757
|
m || (m = !0, S.resolve(_, G));
|
|
1758
1758
|
}
|
|
1759
1759
|
function f() {
|
|
1760
|
-
P(g,
|
|
1760
|
+
P(g, A);
|
|
1761
1761
|
}
|
|
1762
1762
|
var C = E(f);
|
|
1763
|
-
C.status === "error" &&
|
|
1763
|
+
C.status === "error" && A(C.value);
|
|
1764
1764
|
}
|
|
1765
1765
|
function E(_, P) {
|
|
1766
1766
|
var m = {};
|
|
1767
1767
|
try {
|
|
1768
1768
|
m.value = _(P), m.status = "success";
|
|
1769
|
-
} catch (
|
|
1770
|
-
m.status = "error", m.value =
|
|
1769
|
+
} catch (A) {
|
|
1770
|
+
m.status = "error", m.value = A;
|
|
1771
1771
|
}
|
|
1772
1772
|
return m;
|
|
1773
1773
|
}
|
|
1774
1774
|
b.resolve = y;
|
|
1775
1775
|
function y(_) {
|
|
1776
|
-
return _ instanceof this ? _ : S.resolve(new this(
|
|
1776
|
+
return _ instanceof this ? _ : S.resolve(new this(D), _);
|
|
1777
1777
|
}
|
|
1778
1778
|
b.reject = I;
|
|
1779
1779
|
function I(_) {
|
|
1780
|
-
var P = new this(
|
|
1780
|
+
var P = new this(D);
|
|
1781
1781
|
return S.reject(P, _);
|
|
1782
1782
|
}
|
|
1783
1783
|
b.all = B;
|
|
@@ -1785,18 +1785,18 @@ var Ft = { exports: {} };
|
|
|
1785
1785
|
var P = this;
|
|
1786
1786
|
if (Object.prototype.toString.call(_) !== "[object Array]")
|
|
1787
1787
|
return this.reject(new TypeError("must be an array"));
|
|
1788
|
-
var m = _.length,
|
|
1788
|
+
var m = _.length, A = !1;
|
|
1789
1789
|
if (!m)
|
|
1790
1790
|
return this.resolve([]);
|
|
1791
|
-
for (var g = new Array(m), f = 0, C = -1, G = new this(
|
|
1791
|
+
for (var g = new Array(m), f = 0, C = -1, G = new this(D); ++C < m; )
|
|
1792
1792
|
J(_[C], C);
|
|
1793
1793
|
return G;
|
|
1794
1794
|
function J(ee, we) {
|
|
1795
1795
|
P.resolve(ee).then(W, function(H) {
|
|
1796
|
-
|
|
1796
|
+
A || (A = !0, S.reject(G, H));
|
|
1797
1797
|
});
|
|
1798
1798
|
function W(H) {
|
|
1799
|
-
g[we] = H, ++f === m && !
|
|
1799
|
+
g[we] = H, ++f === m && !A && (A = !0, S.resolve(G, g));
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
1802
|
}
|
|
@@ -1805,17 +1805,17 @@ var Ft = { exports: {} };
|
|
|
1805
1805
|
var P = this;
|
|
1806
1806
|
if (Object.prototype.toString.call(_) !== "[object Array]")
|
|
1807
1807
|
return this.reject(new TypeError("must be an array"));
|
|
1808
|
-
var m = _.length,
|
|
1808
|
+
var m = _.length, A = !1;
|
|
1809
1809
|
if (!m)
|
|
1810
1810
|
return this.resolve([]);
|
|
1811
|
-
for (var g = -1, f = new this(
|
|
1811
|
+
for (var g = -1, f = new this(D); ++g < m; )
|
|
1812
1812
|
C(_[g]);
|
|
1813
1813
|
return f;
|
|
1814
1814
|
function C(G) {
|
|
1815
1815
|
P.resolve(G).then(function(J) {
|
|
1816
|
-
|
|
1816
|
+
A || (A = !0, S.resolve(f, J));
|
|
1817
1817
|
}, function(J) {
|
|
1818
|
-
|
|
1818
|
+
A || (A = !0, S.reject(f, J));
|
|
1819
1819
|
});
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
@@ -1829,7 +1829,7 @@ var Ft = { exports: {} };
|
|
|
1829
1829
|
} : function(n) {
|
|
1830
1830
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
1831
1831
|
};
|
|
1832
|
-
function
|
|
1832
|
+
function D(n, i) {
|
|
1833
1833
|
if (!(n instanceof i))
|
|
1834
1834
|
throw new TypeError("Cannot call a class as a function");
|
|
1835
1835
|
}
|
|
@@ -1914,7 +1914,7 @@ var Ft = { exports: {} };
|
|
|
1914
1914
|
return !1;
|
|
1915
1915
|
});
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function A(n) {
|
|
1918
1918
|
return typeof y == "boolean" ? b.resolve(y) : m(n).then(function(i) {
|
|
1919
1919
|
return y = i, y;
|
|
1920
1920
|
});
|
|
@@ -2114,7 +2114,7 @@ var Ft = { exports: {} };
|
|
|
2114
2114
|
});
|
|
2115
2115
|
return c(v, i), v;
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function fr(n, i) {
|
|
2118
2118
|
var u = this, v = new b(function(w, d) {
|
|
2119
2119
|
u.ready().then(function() {
|
|
2120
2120
|
re(u._dbInfo, U, function(T, M) {
|
|
@@ -2148,7 +2148,7 @@ var Ft = { exports: {} };
|
|
|
2148
2148
|
var w = new b(function(d, T) {
|
|
2149
2149
|
var M;
|
|
2150
2150
|
v.ready().then(function() {
|
|
2151
|
-
return M = v._dbInfo, B.call(i) === "[object Blob]" ?
|
|
2151
|
+
return M = v._dbInfo, B.call(i) === "[object Blob]" ? A(M.db).then(function($) {
|
|
2152
2152
|
return $ ? i : W(i);
|
|
2153
2153
|
}) : i;
|
|
2154
2154
|
}).then(function($) {
|
|
@@ -2173,7 +2173,7 @@ var Ft = { exports: {} };
|
|
|
2173
2173
|
});
|
|
2174
2174
|
return c(w, u), w;
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2176
|
+
function sr(n, i) {
|
|
2177
2177
|
var u = this;
|
|
2178
2178
|
n = r(n);
|
|
2179
2179
|
var v = new b(function(w, d) {
|
|
@@ -2199,7 +2199,7 @@ var Ft = { exports: {} };
|
|
|
2199
2199
|
});
|
|
2200
2200
|
return c(v, i), v;
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2202
|
+
function or(n) {
|
|
2203
2203
|
var i = this, u = new b(function(v, w) {
|
|
2204
2204
|
i.ready().then(function() {
|
|
2205
2205
|
re(i._dbInfo, _, function(d, T) {
|
|
@@ -2221,7 +2221,7 @@ var Ft = { exports: {} };
|
|
|
2221
2221
|
});
|
|
2222
2222
|
return c(u, n), u;
|
|
2223
2223
|
}
|
|
2224
|
-
function
|
|
2224
|
+
function hr(n) {
|
|
2225
2225
|
var i = this, u = new b(function(v, w) {
|
|
2226
2226
|
i.ready().then(function() {
|
|
2227
2227
|
re(i._dbInfo, U, function(d, T) {
|
|
@@ -2242,7 +2242,7 @@ var Ft = { exports: {} };
|
|
|
2242
2242
|
});
|
|
2243
2243
|
return c(u, n), u;
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function dr(n, i) {
|
|
2246
2246
|
var u = this, v = new b(function(w, d) {
|
|
2247
2247
|
if (n < 0) {
|
|
2248
2248
|
w(null);
|
|
@@ -2272,7 +2272,7 @@ var Ft = { exports: {} };
|
|
|
2272
2272
|
});
|
|
2273
2273
|
return c(v, i), v;
|
|
2274
2274
|
}
|
|
2275
|
-
function
|
|
2275
|
+
function mr(n) {
|
|
2276
2276
|
var i = this, u = new b(function(v, w) {
|
|
2277
2277
|
i.ready().then(function() {
|
|
2278
2278
|
re(i._dbInfo, U, function(d, T) {
|
|
@@ -2298,7 +2298,7 @@ var Ft = { exports: {} };
|
|
|
2298
2298
|
});
|
|
2299
2299
|
return c(u, n), u;
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function vr(n, i) {
|
|
2302
2302
|
i = x.apply(this, arguments);
|
|
2303
2303
|
var u = this.config();
|
|
2304
2304
|
n = typeof n != "function" && n || {}, n.name || (n.name = n.name || u.name, n.storeName = n.storeName || u.storeName);
|
|
@@ -2381,25 +2381,25 @@ var Ft = { exports: {} };
|
|
|
2381
2381
|
}
|
|
2382
2382
|
return c(w, i), w;
|
|
2383
2383
|
}
|
|
2384
|
-
var
|
|
2384
|
+
var gr = {
|
|
2385
2385
|
_driver: "asyncStorage",
|
|
2386
2386
|
_initStorage: me,
|
|
2387
2387
|
_support: L(),
|
|
2388
|
-
iterate:
|
|
2388
|
+
iterate: fr,
|
|
2389
2389
|
getItem: be,
|
|
2390
2390
|
setItem: Le,
|
|
2391
|
-
removeItem:
|
|
2392
|
-
clear:
|
|
2393
|
-
length:
|
|
2394
|
-
key:
|
|
2395
|
-
keys:
|
|
2396
|
-
dropInstance:
|
|
2391
|
+
removeItem: sr,
|
|
2392
|
+
clear: or,
|
|
2393
|
+
length: hr,
|
|
2394
|
+
key: dr,
|
|
2395
|
+
keys: mr,
|
|
2396
|
+
dropInstance: vr
|
|
2397
2397
|
};
|
|
2398
2398
|
function ke() {
|
|
2399
2399
|
return typeof openDatabase == "function";
|
|
2400
2400
|
}
|
|
2401
|
-
var Se = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Te = "~~local_forage_type~", Je = /^~~local_forage_type~([^~]+)~/, Me = "__lfsc__:", Re = Me.length, j = "arbf", te = "blob", Q = "si08", p = "ui08", Ee = "uic8", De = "si16", Ue = "si32", _e = "ur16", oe = "ui32", Ie = "fl32",
|
|
2402
|
-
function
|
|
2401
|
+
var Se = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Te = "~~local_forage_type~", Je = /^~~local_forage_type~([^~]+)~/, Me = "__lfsc__:", Re = Me.length, j = "arbf", te = "blob", Q = "si08", p = "ui08", Ee = "uic8", De = "si16", Ue = "si32", _e = "ur16", oe = "ui32", Ie = "fl32", Or = "fl64", pr = Re + j.length, et = Object.prototype.toString;
|
|
2402
|
+
function rt(n) {
|
|
2403
2403
|
var i = n.length * 0.75, u = n.length, v, w = 0, d, T, M, $;
|
|
2404
2404
|
n[n.length - 1] === "=" && (i--, n[n.length - 2] === "=" && i--);
|
|
2405
2405
|
var F = new ArrayBuffer(i), k = new Uint8Array(F);
|
|
@@ -2407,7 +2407,7 @@ var Ft = { exports: {} };
|
|
|
2407
2407
|
d = Se.indexOf(n[v]), T = Se.indexOf(n[v + 1]), M = Se.indexOf(n[v + 2]), $ = Se.indexOf(n[v + 3]), k[w++] = d << 2 | T >> 4, k[w++] = (T & 15) << 4 | M >> 2, k[w++] = (M & 3) << 6 | $ & 63;
|
|
2408
2408
|
return F;
|
|
2409
2409
|
}
|
|
2410
|
-
function
|
|
2410
|
+
function yr(n) {
|
|
2411
2411
|
var i = new Uint8Array(n), u = "", v;
|
|
2412
2412
|
for (v = 0; v < i.length; v += 3)
|
|
2413
2413
|
u += Se[i[v] >> 2], u += Se[(i[v] & 3) << 4 | i[v + 1] >> 4], u += Se[(i[v + 1] & 15) << 2 | i[v + 2] >> 6], u += Se[i[v + 2] & 63];
|
|
@@ -2415,13 +2415,13 @@ var Ft = { exports: {} };
|
|
|
2415
2415
|
}
|
|
2416
2416
|
function Gt(n, i) {
|
|
2417
2417
|
var u = "";
|
|
2418
|
-
if (n && (u =
|
|
2418
|
+
if (n && (u = et.call(n)), n && (u === "[object ArrayBuffer]" || n.buffer && et.call(n.buffer) === "[object ArrayBuffer]")) {
|
|
2419
2419
|
var v, w = Me;
|
|
2420
|
-
n instanceof ArrayBuffer ? (v = n, w += j) : (v = n.buffer, u === "[object Int8Array]" ? w += Q : u === "[object Uint8Array]" ? w += p : u === "[object Uint8ClampedArray]" ? w += Ee : u === "[object Int16Array]" ? w += De : u === "[object Uint16Array]" ? w += _e : u === "[object Int32Array]" ? w += Ue : u === "[object Uint32Array]" ? w += oe : u === "[object Float32Array]" ? w += Ie : u === "[object Float64Array]" ? w +=
|
|
2420
|
+
n instanceof ArrayBuffer ? (v = n, w += j) : (v = n.buffer, u === "[object Int8Array]" ? w += Q : u === "[object Uint8Array]" ? w += p : u === "[object Uint8ClampedArray]" ? w += Ee : u === "[object Int16Array]" ? w += De : u === "[object Uint16Array]" ? w += _e : u === "[object Int32Array]" ? w += Ue : u === "[object Uint32Array]" ? w += oe : u === "[object Float32Array]" ? w += Ie : u === "[object Float64Array]" ? w += Or : i(new Error("Failed to get type for BinaryArray"))), i(w + yr(v));
|
|
2421
2421
|
} else if (u === "[object Blob]") {
|
|
2422
2422
|
var d = new FileReader();
|
|
2423
2423
|
d.onload = function() {
|
|
2424
|
-
var T = Te + n.type + "~" +
|
|
2424
|
+
var T = Te + n.type + "~" + yr(this.result);
|
|
2425
2425
|
i(Me + te + T);
|
|
2426
2426
|
}, d.readAsArrayBuffer(n);
|
|
2427
2427
|
} else
|
|
@@ -2434,12 +2434,12 @@ var Ft = { exports: {} };
|
|
|
2434
2434
|
function qt(n) {
|
|
2435
2435
|
if (n.substring(0, Re) !== Me)
|
|
2436
2436
|
return JSON.parse(n);
|
|
2437
|
-
var i = n.substring(
|
|
2437
|
+
var i = n.substring(pr), u = n.substring(Re, pr), v;
|
|
2438
2438
|
if (u === te && Je.test(i)) {
|
|
2439
2439
|
var w = i.match(Je);
|
|
2440
2440
|
v = w[1], i = i.substring(w[0].length);
|
|
2441
2441
|
}
|
|
2442
|
-
var d =
|
|
2442
|
+
var d = rt(i);
|
|
2443
2443
|
switch (u) {
|
|
2444
2444
|
case j:
|
|
2445
2445
|
return d;
|
|
@@ -2461,19 +2461,19 @@ var Ft = { exports: {} };
|
|
|
2461
2461
|
return new Uint32Array(d);
|
|
2462
2462
|
case Ie:
|
|
2463
2463
|
return new Float32Array(d);
|
|
2464
|
-
case
|
|
2464
|
+
case Or:
|
|
2465
2465
|
return new Float64Array(d);
|
|
2466
2466
|
default:
|
|
2467
2467
|
throw new Error("Unkown type: " + u);
|
|
2468
2468
|
}
|
|
2469
2469
|
}
|
|
2470
|
-
var
|
|
2470
|
+
var wr = {
|
|
2471
2471
|
serialize: Gt,
|
|
2472
2472
|
deserialize: qt,
|
|
2473
|
-
stringToBuffer:
|
|
2474
|
-
bufferToString:
|
|
2473
|
+
stringToBuffer: rt,
|
|
2474
|
+
bufferToString: yr
|
|
2475
2475
|
};
|
|
2476
|
-
function
|
|
2476
|
+
function tt(n, i, u, v) {
|
|
2477
2477
|
n.executeSql("CREATE TABLE IF NOT EXISTS " + i.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], u, v);
|
|
2478
2478
|
}
|
|
2479
2479
|
function Ht(n) {
|
|
@@ -2490,19 +2490,19 @@ var Ft = { exports: {} };
|
|
|
2490
2490
|
return T(M);
|
|
2491
2491
|
}
|
|
2492
2492
|
u.db.transaction(function(M) {
|
|
2493
|
-
|
|
2493
|
+
tt(M, u, function() {
|
|
2494
2494
|
i._dbInfo = u, d();
|
|
2495
2495
|
}, function($, F) {
|
|
2496
2496
|
T(F);
|
|
2497
2497
|
});
|
|
2498
2498
|
}, T);
|
|
2499
2499
|
});
|
|
2500
|
-
return u.serializer =
|
|
2500
|
+
return u.serializer = wr, w;
|
|
2501
2501
|
}
|
|
2502
2502
|
function xe(n, i, u, v, w, d) {
|
|
2503
2503
|
n.executeSql(u, v, w, function(T, M) {
|
|
2504
2504
|
M.code === M.SYNTAX_ERR ? T.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [i.storeName], function($, F) {
|
|
2505
|
-
F.rows.length ? d($, M) :
|
|
2505
|
+
F.rows.length ? d($, M) : tt($, i, function() {
|
|
2506
2506
|
$.executeSql(u, v, w, d);
|
|
2507
2507
|
}, d);
|
|
2508
2508
|
}, d) : d(T, M);
|
|
@@ -2548,7 +2548,7 @@ var Ft = { exports: {} };
|
|
|
2548
2548
|
});
|
|
2549
2549
|
return c(v, i), v;
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2551
|
+
function nt(n, i, u, v) {
|
|
2552
2552
|
var w = this;
|
|
2553
2553
|
n = r(n);
|
|
2554
2554
|
var d = new b(function(T, M) {
|
|
@@ -2565,7 +2565,7 @@ var Ft = { exports: {} };
|
|
|
2565
2565
|
}, function(z) {
|
|
2566
2566
|
if (z.code === z.QUOTA_ERR) {
|
|
2567
2567
|
if (v > 0) {
|
|
2568
|
-
T(
|
|
2568
|
+
T(nt.apply(w, [n, $, u, v - 1]));
|
|
2569
2569
|
return;
|
|
2570
2570
|
}
|
|
2571
2571
|
M(z);
|
|
@@ -2577,7 +2577,7 @@ var Ft = { exports: {} };
|
|
|
2577
2577
|
return c(d, u), d;
|
|
2578
2578
|
}
|
|
2579
2579
|
function Yt(n, i, u) {
|
|
2580
|
-
return
|
|
2580
|
+
return nt.apply(this, [n, i, u, 1]);
|
|
2581
2581
|
}
|
|
2582
2582
|
function Jt(n, i) {
|
|
2583
2583
|
var u = this;
|
|
@@ -2736,7 +2736,7 @@ var Ft = { exports: {} };
|
|
|
2736
2736
|
return !1;
|
|
2737
2737
|
}
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2739
|
+
function at(n, i) {
|
|
2740
2740
|
var u = n.name + "/";
|
|
2741
2741
|
return n.storeName !== i.storeName && (u += n.storeName + "/"), u;
|
|
2742
2742
|
}
|
|
@@ -2756,7 +2756,7 @@ var Ft = { exports: {} };
|
|
|
2756
2756
|
if (n)
|
|
2757
2757
|
for (var v in n)
|
|
2758
2758
|
u[v] = n[v];
|
|
2759
|
-
return u.keyPrefix =
|
|
2759
|
+
return u.keyPrefix = at(n, i._defaultConfig), an() ? (i._dbInfo = u, u.serializer = wr, b.resolve()) : b.reject();
|
|
2760
2760
|
}
|
|
2761
2761
|
function ln(n) {
|
|
2762
2762
|
var i = this, u = i.ready().then(function() {
|
|
@@ -2855,7 +2855,7 @@ var Ft = { exports: {} };
|
|
|
2855
2855
|
}
|
|
2856
2856
|
var v = this, w;
|
|
2857
2857
|
return n.name ? w = new b(function(d) {
|
|
2858
|
-
n.storeName ? d(
|
|
2858
|
+
n.storeName ? d(at(n, v._defaultConfig)) : d(n.name + "/");
|
|
2859
2859
|
}).then(function(d) {
|
|
2860
2860
|
for (var T = localStorage.length - 1; T >= 0; T--) {
|
|
2861
2861
|
var M = localStorage.key(T);
|
|
@@ -2885,13 +2885,13 @@ var Ft = { exports: {} };
|
|
|
2885
2885
|
w++;
|
|
2886
2886
|
}
|
|
2887
2887
|
return !1;
|
|
2888
|
-
},
|
|
2888
|
+
}, ut = Array.isArray || function(n) {
|
|
2889
2889
|
return Object.prototype.toString.call(n) === "[object Array]";
|
|
2890
|
-
}, Ve = {},
|
|
2891
|
-
INDEXEDDB:
|
|
2890
|
+
}, Ve = {}, lt = {}, Be = {
|
|
2891
|
+
INDEXEDDB: gr,
|
|
2892
2892
|
WEBSQL: rn,
|
|
2893
2893
|
LOCALSTORAGE: gn
|
|
2894
|
-
}, bn = [Be.INDEXEDDB._driver, Be.WEBSQL._driver, Be.LOCALSTORAGE._driver], Ke = ["dropInstance"],
|
|
2894
|
+
}, bn = [Be.INDEXEDDB._driver, Be.WEBSQL._driver, Be.LOCALSTORAGE._driver], Ke = ["dropInstance"], br = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), En = {
|
|
2895
2895
|
description: "",
|
|
2896
2896
|
driver: bn.slice(),
|
|
2897
2897
|
name: "localforage",
|
|
@@ -2909,24 +2909,24 @@ var Ft = { exports: {} };
|
|
|
2909
2909
|
});
|
|
2910
2910
|
};
|
|
2911
2911
|
}
|
|
2912
|
-
function
|
|
2912
|
+
function Er() {
|
|
2913
2913
|
for (var n = 1; n < arguments.length; n++) {
|
|
2914
2914
|
var i = arguments[n];
|
|
2915
2915
|
if (i)
|
|
2916
2916
|
for (var u in i)
|
|
2917
|
-
i.hasOwnProperty(u) && (
|
|
2917
|
+
i.hasOwnProperty(u) && (ut(i[u]) ? arguments[0][u] = i[u].slice() : arguments[0][u] = i[u]);
|
|
2918
2918
|
}
|
|
2919
2919
|
return arguments[0];
|
|
2920
2920
|
}
|
|
2921
2921
|
var _n = function() {
|
|
2922
2922
|
function n(i) {
|
|
2923
|
-
|
|
2923
|
+
D(this, n);
|
|
2924
2924
|
for (var u in Be)
|
|
2925
2925
|
if (Be.hasOwnProperty(u)) {
|
|
2926
2926
|
var v = Be[u], w = v._driver;
|
|
2927
2927
|
this[u] = w, Ve[w] || this.defineDriver(v);
|
|
2928
2928
|
}
|
|
2929
|
-
this._defaultConfig =
|
|
2929
|
+
this._defaultConfig = Er({}, En), this._config = Er({}, this._defaultConfig, i), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
|
|
2930
2930
|
});
|
|
2931
2931
|
}
|
|
2932
2932
|
return n.prototype.config = function(u) {
|
|
@@ -2949,7 +2949,7 @@ var Ft = { exports: {} };
|
|
|
2949
2949
|
M(F);
|
|
2950
2950
|
return;
|
|
2951
2951
|
}
|
|
2952
|
-
for (var k =
|
|
2952
|
+
for (var k = br.concat("_initStorage"), q = 0, z = k.length; q < z; q++) {
|
|
2953
2953
|
var X = k[q], O = !wn(Ke, X);
|
|
2954
2954
|
if ((O || u[X]) && typeof u[X] != "function") {
|
|
2955
2955
|
M(F);
|
|
@@ -2959,17 +2959,17 @@ var Ft = { exports: {} };
|
|
|
2959
2959
|
var ue = function() {
|
|
2960
2960
|
for (var We = function(In) {
|
|
2961
2961
|
return function() {
|
|
2962
|
-
var xn = new Error("Method " + In + " is not implemented by the current driver"),
|
|
2963
|
-
return c(
|
|
2962
|
+
var xn = new Error("Method " + In + " is not implemented by the current driver"), ct = b.reject(xn);
|
|
2963
|
+
return c(ct, arguments[arguments.length - 1]), ct;
|
|
2964
2964
|
};
|
|
2965
|
-
},
|
|
2966
|
-
var
|
|
2967
|
-
u[
|
|
2965
|
+
}, Sr = 0, Dn = Ke.length; Sr < Dn; Sr++) {
|
|
2966
|
+
var _r = Ke[Sr];
|
|
2967
|
+
u[_r] || (u[_r] = We(_r));
|
|
2968
2968
|
}
|
|
2969
2969
|
};
|
|
2970
2970
|
ue();
|
|
2971
2971
|
var ne = function(We) {
|
|
2972
|
-
Ve[$] && console.info("Redefining LocalForage driver: " + $), Ve[$] = u,
|
|
2972
|
+
Ve[$] && console.info("Redefining LocalForage driver: " + $), Ve[$] = u, lt[$] = We, T();
|
|
2973
2973
|
};
|
|
2974
2974
|
"_support" in u ? u._support && typeof u._support == "function" ? u._support().then(ne, M) : ne(!!u._support) : ne(!0);
|
|
2975
2975
|
} catch (ve) {
|
|
@@ -2983,7 +2983,7 @@ var Ft = { exports: {} };
|
|
|
2983
2983
|
var d = Ve[u] ? b.resolve(Ve[u]) : b.reject(new Error("Driver not found."));
|
|
2984
2984
|
return h(d, v, w), d;
|
|
2985
2985
|
}, n.prototype.getSerializer = function(u) {
|
|
2986
|
-
var v = b.resolve(
|
|
2986
|
+
var v = b.resolve(wr);
|
|
2987
2987
|
return h(v, u), v;
|
|
2988
2988
|
}, n.prototype.ready = function(u) {
|
|
2989
2989
|
var v = this, w = v._driverSet.then(function() {
|
|
@@ -2992,7 +2992,7 @@ var Ft = { exports: {} };
|
|
|
2992
2992
|
return h(w, u, u), w;
|
|
2993
2993
|
}, n.prototype.setDriver = function(u, v, w) {
|
|
2994
2994
|
var d = this;
|
|
2995
|
-
|
|
2995
|
+
ut(u) || (u = [u]);
|
|
2996
2996
|
var T = this._getSupportedDrivers(u);
|
|
2997
2997
|
function M() {
|
|
2998
2998
|
d._config.driver = d.driver();
|
|
@@ -3029,9 +3029,9 @@ var Ft = { exports: {} };
|
|
|
3029
3029
|
return d._driverSet = b.reject(q), d._driverSet;
|
|
3030
3030
|
}), h(this._driverSet, v, w), this._driverSet;
|
|
3031
3031
|
}, n.prototype.supports = function(u) {
|
|
3032
|
-
return !!
|
|
3032
|
+
return !!lt[u];
|
|
3033
3033
|
}, n.prototype._extend = function(u) {
|
|
3034
|
-
|
|
3034
|
+
Er(this, u);
|
|
3035
3035
|
}, n.prototype._getSupportedDrivers = function(u) {
|
|
3036
3036
|
for (var v = [], w = 0, d = u.length; w < d; w++) {
|
|
3037
3037
|
var T = u[w];
|
|
@@ -3039,8 +3039,8 @@ var Ft = { exports: {} };
|
|
|
3039
3039
|
}
|
|
3040
3040
|
return v;
|
|
3041
3041
|
}, n.prototype._wrapLibraryMethodsWithReady = function() {
|
|
3042
|
-
for (var u = 0, v =
|
|
3043
|
-
Sn(this,
|
|
3042
|
+
for (var u = 0, v = br.length; u < v; u++)
|
|
3043
|
+
Sn(this, br[u]);
|
|
3044
3044
|
}, n.prototype.createInstance = function(u) {
|
|
3045
3045
|
return new n(u);
|
|
3046
3046
|
}, n;
|
|
@@ -3048,18 +3048,18 @@ var Ft = { exports: {} };
|
|
|
3048
3048
|
l.exports = An;
|
|
3049
3049
|
}, { 3: 3 }] }, {}, [4])(4);
|
|
3050
3050
|
});
|
|
3051
|
-
})(
|
|
3052
|
-
var $a =
|
|
3053
|
-
const
|
|
3051
|
+
})($t);
|
|
3052
|
+
var $a = $t.exports;
|
|
3053
|
+
const Ft = /* @__PURE__ */ ca($a);
|
|
3054
3054
|
let rr = null;
|
|
3055
|
-
|
|
3056
|
-
name:
|
|
3055
|
+
Ft.config({
|
|
3056
|
+
name: Bt()
|
|
3057
3057
|
});
|
|
3058
3058
|
function de() {
|
|
3059
|
-
const e =
|
|
3060
|
-
return (rr == null || rr.config.name != e) && (rr =
|
|
3059
|
+
const e = Bt();
|
|
3060
|
+
return (rr == null || rr.config.name != e) && (rr = Ft.createInstance({ name: e })), rr;
|
|
3061
3061
|
}
|
|
3062
|
-
function
|
|
3062
|
+
function Nu() {
|
|
3063
3063
|
async function e(s) {
|
|
3064
3064
|
const o = de();
|
|
3065
3065
|
(await o.keys()).filter((N) => N.startsWith(s)).forEach((N) => {
|
|
@@ -3086,7 +3086,7 @@ var Fa = !1;
|
|
|
3086
3086
|
function tr(e, t, a) {
|
|
3087
3087
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, a), a) : (e[t] = a, a);
|
|
3088
3088
|
}
|
|
3089
|
-
function
|
|
3089
|
+
function Ar(e, t) {
|
|
3090
3090
|
if (Array.isArray(e)) {
|
|
3091
3091
|
e.splice(t, 1);
|
|
3092
3092
|
return;
|
|
@@ -3110,26 +3110,26 @@ var He;
|
|
|
3110
3110
|
(function(e) {
|
|
3111
3111
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
3112
3112
|
})(He || (He = {}));
|
|
3113
|
-
const
|
|
3114
|
-
function
|
|
3113
|
+
const Xr = typeof window < "u", Dr = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && Xr;
|
|
3114
|
+
function kt(e, t) {
|
|
3115
3115
|
for (const a in t) {
|
|
3116
3116
|
const l = t[a];
|
|
3117
3117
|
if (!(a in e))
|
|
3118
3118
|
continue;
|
|
3119
3119
|
const s = e[a];
|
|
3120
|
-
Pe(s) && Pe(l) && !ze(l) && !
|
|
3120
|
+
Pe(s) && Pe(l) && !ze(l) && !Zr(l) ? e[a] = kt(s, l) : e[a] = l;
|
|
3121
3121
|
}
|
|
3122
3122
|
return e;
|
|
3123
3123
|
}
|
|
3124
|
-
const
|
|
3124
|
+
const Vt = () => {
|
|
3125
3125
|
};
|
|
3126
|
-
function
|
|
3126
|
+
function vt(e, t, a, l = Vt) {
|
|
3127
3127
|
e.push(t);
|
|
3128
3128
|
const s = () => {
|
|
3129
3129
|
const o = e.indexOf(t);
|
|
3130
3130
|
o > -1 && (e.splice(o, 1), l());
|
|
3131
3131
|
};
|
|
3132
|
-
return !a &&
|
|
3132
|
+
return !a && Nt() && Tt(s), s;
|
|
3133
3133
|
}
|
|
3134
3134
|
function $e(e, ...t) {
|
|
3135
3135
|
e.slice().forEach((a) => {
|
|
@@ -3137,13 +3137,13 @@ function $e(e, ...t) {
|
|
|
3137
3137
|
});
|
|
3138
3138
|
}
|
|
3139
3139
|
const Va = (e) => e();
|
|
3140
|
-
function
|
|
3140
|
+
function Wr(e, t) {
|
|
3141
3141
|
e instanceof Map && t instanceof Map && t.forEach((a, l) => e.set(l, a)), e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
3142
3142
|
for (const a in t) {
|
|
3143
3143
|
if (!t.hasOwnProperty(a))
|
|
3144
3144
|
continue;
|
|
3145
3145
|
const l = t[a], s = e[a];
|
|
3146
|
-
Pe(s) && Pe(l) && e.hasOwnProperty(a) && !ze(l) && !
|
|
3146
|
+
Pe(s) && Pe(l) && e.hasOwnProperty(a) && !ze(l) && !Zr(l) ? e[a] = Wr(s, l) : e[a] = l;
|
|
3147
3147
|
}
|
|
3148
3148
|
return e;
|
|
3149
3149
|
}
|
|
@@ -3155,28 +3155,28 @@ function ja(e) {
|
|
|
3155
3155
|
return !Pe(e) || !e.hasOwnProperty(Wa);
|
|
3156
3156
|
}
|
|
3157
3157
|
const { assign: ge } = Object;
|
|
3158
|
-
function
|
|
3158
|
+
function gt(e) {
|
|
3159
3159
|
return !!(ze(e) && e.effect);
|
|
3160
3160
|
}
|
|
3161
|
-
function
|
|
3162
|
-
const { state: s, actions: o, getters:
|
|
3161
|
+
function yt(e, t, a, l) {
|
|
3162
|
+
const { state: s, actions: o, getters: D } = t, S = a.state.value[e];
|
|
3163
3163
|
let N;
|
|
3164
3164
|
function L() {
|
|
3165
3165
|
!S && (process.env.NODE_ENV === "production" || !l) && (a.state.value[e] = s ? s() : {});
|
|
3166
3166
|
const R = process.env.NODE_ENV !== "production" && l ? (
|
|
3167
3167
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
3168
|
-
|
|
3169
|
-
) :
|
|
3170
|
-
return ge(R, o, Object.keys(
|
|
3168
|
+
it(Y(s ? s() : {}).value)
|
|
3169
|
+
) : it(a.state.value[e]);
|
|
3170
|
+
return ge(R, o, Object.keys(D || {}).reduce((b, c) => (process.env.NODE_ENV !== "production" && c in R && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${c}" in store "${e}".`), b[c] = je(le(() => {
|
|
3171
3171
|
lr(a);
|
|
3172
3172
|
const h = a._s.get(e);
|
|
3173
|
-
return
|
|
3173
|
+
return D[c].call(h, h);
|
|
3174
3174
|
})), b), {}));
|
|
3175
3175
|
}
|
|
3176
|
-
return N =
|
|
3176
|
+
return N = jr(e, L, t, a, l, !0), N;
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3179
|
-
let
|
|
3178
|
+
function jr(e, t, a = {}, l, s, o) {
|
|
3179
|
+
let D;
|
|
3180
3180
|
const S = ge({ actions: {} }, a);
|
|
3181
3181
|
if (process.env.NODE_ENV !== "production" && !l._e.active)
|
|
3182
3182
|
throw new Error("Pinia destroyed");
|
|
@@ -3198,7 +3198,7 @@ function Gr(e, t, a = {}, l, s, o) {
|
|
|
3198
3198
|
type: He.patchFunction,
|
|
3199
3199
|
storeId: e,
|
|
3200
3200
|
events: h
|
|
3201
|
-
}) : (
|
|
3201
|
+
}) : (Wr(l.state.value[e], f), C = {
|
|
3202
3202
|
type: He.patchObject,
|
|
3203
3203
|
payload: f,
|
|
3204
3204
|
storeId: e,
|
|
@@ -3218,10 +3218,10 @@ function Gr(e, t, a = {}, l, s, o) {
|
|
|
3218
3218
|
/* istanbul ignore next */
|
|
3219
3219
|
process.env.NODE_ENV !== "production" ? () => {
|
|
3220
3220
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
3221
|
-
} :
|
|
3221
|
+
} : Vt
|
|
3222
3222
|
);
|
|
3223
3223
|
function B() {
|
|
3224
|
-
|
|
3224
|
+
D.stop(), b = [], c = [], l._s.delete(e);
|
|
3225
3225
|
}
|
|
3226
3226
|
function U(f, C) {
|
|
3227
3227
|
return function() {
|
|
@@ -3258,11 +3258,11 @@ function Gr(e, t, a = {}, l, s, o) {
|
|
|
3258
3258
|
_p: l,
|
|
3259
3259
|
// _s: scope,
|
|
3260
3260
|
$id: e,
|
|
3261
|
-
$onAction:
|
|
3261
|
+
$onAction: vt.bind(null, c),
|
|
3262
3262
|
$patch: y,
|
|
3263
3263
|
$reset: I,
|
|
3264
3264
|
$subscribe(f, C = {}) {
|
|
3265
|
-
const G =
|
|
3265
|
+
const G = vt(b, f, C.detached, () => J()), J = D.run(() => Ae(() => l.state.value[e], (ee) => {
|
|
3266
3266
|
(C.flush === "sync" ? R : L) && f({
|
|
3267
3267
|
storeId: e,
|
|
3268
3268
|
type: He.direct,
|
|
@@ -3272,7 +3272,7 @@ function Gr(e, t, a = {}, l, s, o) {
|
|
|
3272
3272
|
return G;
|
|
3273
3273
|
},
|
|
3274
3274
|
$dispose: B
|
|
3275
|
-
}, m = Mn(process.env.NODE_ENV !== "production" ||
|
|
3275
|
+
}, m = Mn(process.env.NODE_ENV !== "production" || Dr ? ge(
|
|
3276
3276
|
{
|
|
3277
3277
|
_hmrPayload: _,
|
|
3278
3278
|
_customProperties: je(/* @__PURE__ */ new Set())
|
|
@@ -3283,19 +3283,19 @@ function Gr(e, t, a = {}, l, s, o) {
|
|
|
3283
3283
|
// setupStore
|
|
3284
3284
|
) : P);
|
|
3285
3285
|
l._s.set(e, m);
|
|
3286
|
-
const g = (l._a && l._a.runWithContext || Va)(() => l._e.run(() => (
|
|
3286
|
+
const g = (l._a && l._a.runWithContext || Va)(() => l._e.run(() => (D = Rn()).run(t)));
|
|
3287
3287
|
for (const f in g) {
|
|
3288
3288
|
const C = g[f];
|
|
3289
|
-
if (ze(C) && !
|
|
3290
|
-
process.env.NODE_ENV !== "production" && s ? tr(x.value, f, ar(g, f)) : o || (r && ja(C) && (ze(C) ? C.value = r[f] :
|
|
3289
|
+
if (ze(C) && !gt(C) || Zr(C))
|
|
3290
|
+
process.env.NODE_ENV !== "production" && s ? tr(x.value, f, ar(g, f)) : o || (r && ja(C) && (ze(C) ? C.value = r[f] : Wr(C, r[f])), l.state.value[e][f] = C), process.env.NODE_ENV !== "production" && _.state.push(f);
|
|
3291
3291
|
else if (typeof C == "function") {
|
|
3292
3292
|
const G = process.env.NODE_ENV !== "production" && s ? C : U(f, C);
|
|
3293
3293
|
g[f] = G, process.env.NODE_ENV !== "production" && (_.actions[f] = C), S.actions[f] = C;
|
|
3294
3294
|
} else
|
|
3295
|
-
process.env.NODE_ENV !== "production" &&
|
|
3295
|
+
process.env.NODE_ENV !== "production" && gt(C) && (_.getters[f] = o ? (
|
|
3296
3296
|
// @ts-expect-error
|
|
3297
3297
|
a.getters[f]
|
|
3298
|
-
) : C,
|
|
3298
|
+
) : C, Xr && (g._getters || // @ts-expect-error: same
|
|
3299
3299
|
(g._getters = je([]))).push(f));
|
|
3300
3300
|
}
|
|
3301
3301
|
if (ge(m, g), ge(Un(m), g), Object.defineProperty(m, "$state", {
|
|
@@ -3311,11 +3311,11 @@ function Gr(e, t, a = {}, l, s, o) {
|
|
|
3311
3311
|
m._hotUpdating = !0, f._hmrPayload.state.forEach((C) => {
|
|
3312
3312
|
if (C in m.$state) {
|
|
3313
3313
|
const G = f.$state[C], J = m.$state[C];
|
|
3314
|
-
typeof G == "object" && Pe(G) && Pe(J) ?
|
|
3314
|
+
typeof G == "object" && Pe(G) && Pe(J) ? kt(G, J) : f.$state[C] = J;
|
|
3315
3315
|
}
|
|
3316
3316
|
tr(m, C, ar(f.$state, C));
|
|
3317
3317
|
}), Object.keys(m.$state).forEach((C) => {
|
|
3318
|
-
C in f.$state ||
|
|
3318
|
+
C in f.$state || Ar(m, C);
|
|
3319
3319
|
}), L = !1, R = !1, l.state.value[e] = ar(f._hmrPayload, "hotState"), R = !0, ur().then(() => {
|
|
3320
3320
|
L = !0;
|
|
3321
3321
|
});
|
|
@@ -3331,11 +3331,11 @@ function Gr(e, t, a = {}, l, s, o) {
|
|
|
3331
3331
|
tr(m, C, J);
|
|
3332
3332
|
}
|
|
3333
3333
|
Object.keys(m._hmrPayload.getters).forEach((C) => {
|
|
3334
|
-
C in f._hmrPayload.getters ||
|
|
3334
|
+
C in f._hmrPayload.getters || Ar(m, C);
|
|
3335
3335
|
}), Object.keys(m._hmrPayload.actions).forEach((C) => {
|
|
3336
|
-
C in f._hmrPayload.actions ||
|
|
3336
|
+
C in f._hmrPayload.actions || Ar(m, C);
|
|
3337
3337
|
}), m._hmrPayload = f._hmrPayload, m._getters = f._getters, m._hotUpdating = !1;
|
|
3338
|
-
})),
|
|
3338
|
+
})), Dr) {
|
|
3339
3339
|
const f = {
|
|
3340
3340
|
writable: !0,
|
|
3341
3341
|
configurable: !0,
|
|
@@ -3347,8 +3347,8 @@ function Gr(e, t, a = {}, l, s, o) {
|
|
|
3347
3347
|
});
|
|
3348
3348
|
}
|
|
3349
3349
|
return l._p.forEach((f) => {
|
|
3350
|
-
if (
|
|
3351
|
-
const C =
|
|
3350
|
+
if (Dr) {
|
|
3351
|
+
const C = D.run(() => f({
|
|
3352
3352
|
store: m,
|
|
3353
3353
|
app: l._a,
|
|
3354
3354
|
pinia: l,
|
|
@@ -3356,7 +3356,7 @@ function Gr(e, t, a = {}, l, s, o) {
|
|
|
3356
3356
|
}));
|
|
3357
3357
|
Object.keys(C || {}).forEach((G) => m._customProperties.add(G)), ge(m, C);
|
|
3358
3358
|
} else
|
|
3359
|
-
ge(m,
|
|
3359
|
+
ge(m, D.run(() => f({
|
|
3360
3360
|
store: m,
|
|
3361
3361
|
app: l._a,
|
|
3362
3362
|
pinia: l,
|
|
@@ -3366,29 +3366,29 @@ function Gr(e, t, a = {}, l, s, o) {
|
|
|
3366
3366
|
state: () => new MyClass()
|
|
3367
3367
|
Found in store "${m.$id}".`), r && o && a.hydrate && a.hydrate(m.$state, r), L = !0, R = !0, m;
|
|
3368
3368
|
}
|
|
3369
|
-
function
|
|
3369
|
+
function Wt(e, t, a) {
|
|
3370
3370
|
let l, s;
|
|
3371
3371
|
const o = typeof t == "function";
|
|
3372
3372
|
if (typeof e == "string")
|
|
3373
3373
|
l = e, s = o ? a : t;
|
|
3374
3374
|
else if (s = e, l = e.id, process.env.NODE_ENV !== "production" && typeof l != "string")
|
|
3375
3375
|
throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
|
|
3376
|
-
function
|
|
3376
|
+
function D(S, N) {
|
|
3377
3377
|
const L = Ln();
|
|
3378
3378
|
if (S = // in test mode, ignore the argument provided as we can always retrieve a
|
|
3379
3379
|
// pinia instance with getActivePinia()
|
|
3380
|
-
(process.env.NODE_ENV === "test" && qe && qe._testing ? null : S) || (L ?
|
|
3380
|
+
(process.env.NODE_ENV === "test" && qe && qe._testing ? null : S) || (L ? ir(ka, null) : null), S && lr(S), process.env.NODE_ENV !== "production" && !qe)
|
|
3381
3381
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
3382
3382
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
3383
3383
|
This will fail in production.`);
|
|
3384
|
-
S = qe, S._s.has(l) || (o ?
|
|
3384
|
+
S = qe, S._s.has(l) || (o ? jr(l, t, s, S) : yt(l, s, S), process.env.NODE_ENV !== "production" && (D._pinia = S));
|
|
3385
3385
|
const R = S._s.get(l);
|
|
3386
3386
|
if (process.env.NODE_ENV !== "production" && N) {
|
|
3387
|
-
const b = "__hot:" + l, c = o ?
|
|
3387
|
+
const b = "__hot:" + l, c = o ? jr(b, t, s, S, !0) : yt(b, ge({}, s), S, !0);
|
|
3388
3388
|
N._hotUpdate(c), delete S.state.value[b], S._s.delete(b);
|
|
3389
3389
|
}
|
|
3390
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3391
|
-
const b =
|
|
3390
|
+
if (process.env.NODE_ENV !== "production" && Xr) {
|
|
3391
|
+
const b = cr();
|
|
3392
3392
|
if (b && b.proxy && // avoid adding stores that are just built for hot module replacement
|
|
3393
3393
|
!N) {
|
|
3394
3394
|
const c = b.proxy, h = "_pStores" in c ? c._pStores : c._pStores = {};
|
|
@@ -3397,34 +3397,24 @@ This will fail in production.`);
|
|
|
3397
3397
|
}
|
|
3398
3398
|
return R;
|
|
3399
3399
|
}
|
|
3400
|
-
return
|
|
3400
|
+
return D.$id = l, D;
|
|
3401
3401
|
}
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
return cr(e)();
|
|
3402
|
+
function Tu(e) {
|
|
3403
|
+
return jt(e)();
|
|
3405
3404
|
}
|
|
3406
|
-
function
|
|
3407
|
-
|
|
3408
|
-
}
|
|
3409
|
-
function qa(e) {
|
|
3410
|
-
return cr = (t) => Ha({
|
|
3411
|
-
...e,
|
|
3412
|
-
...t
|
|
3413
|
-
}), cr;
|
|
3414
|
-
}
|
|
3415
|
-
function Ha(e) {
|
|
3416
|
-
if (e.storeMode == "whole-last-updated") {
|
|
3405
|
+
function jt(e) {
|
|
3406
|
+
if (console.log("getting store definition"), e.storeMode == "whole-last-updated") {
|
|
3417
3407
|
if (e.api == null)
|
|
3418
3408
|
throw new Error("Must supply an api object to use store");
|
|
3419
|
-
return
|
|
3409
|
+
return wt(e);
|
|
3420
3410
|
} else if (e.storeMode == "partial-last-updated") {
|
|
3421
3411
|
if (e.api == null)
|
|
3422
3412
|
throw new Error("Must supply an api object to use store");
|
|
3423
|
-
return
|
|
3413
|
+
return wt(e);
|
|
3424
3414
|
} else
|
|
3425
|
-
return
|
|
3415
|
+
return qa(e);
|
|
3426
3416
|
}
|
|
3427
|
-
const
|
|
3417
|
+
const Ga = (e) => {
|
|
3428
3418
|
let t = K(e.url) ?? void 0;
|
|
3429
3419
|
if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Ce(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Ce(t, e.id)), e.params != null) {
|
|
3430
3420
|
t ?? (t = "");
|
|
@@ -3435,11 +3425,11 @@ const za = (e) => {
|
|
|
3435
3425
|
}
|
|
3436
3426
|
return e.finalUrl = t, e.finalUrl ?? "";
|
|
3437
3427
|
};
|
|
3438
|
-
function
|
|
3439
|
-
return
|
|
3428
|
+
function qa(e) {
|
|
3429
|
+
return Wt(e.storeName, () => {
|
|
3440
3430
|
var h;
|
|
3441
|
-
const t = fe.utc().toSeconds() / 86400, a = Y({}), l = Y({}), s = e.storageMode == "local-cache", o = e.buildUrl ?? ((h = e.api) == null ? void 0 : h.buildUrl) ??
|
|
3442
|
-
function
|
|
3431
|
+
const t = fe.utc().toSeconds() / 86400, a = Y({}), l = Y({}), s = e.storageMode == "local-cache", o = e.buildUrl ?? ((h = e.api) == null ? void 0 : h.buildUrl) ?? Ga;
|
|
3432
|
+
function D(r) {
|
|
3443
3433
|
var x, E;
|
|
3444
3434
|
return `${e.storeName}_${((x = e.auth) == null ? void 0 : x.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}`;
|
|
3445
3435
|
}
|
|
@@ -3461,13 +3451,13 @@ function Za(e) {
|
|
|
3461
3451
|
B == null && (B = new Promise(async (_, P) => {
|
|
3462
3452
|
var m;
|
|
3463
3453
|
try {
|
|
3464
|
-
let
|
|
3454
|
+
let A = await ((m = e.api) == null ? void 0 : m.getAll(r));
|
|
3465
3455
|
s == !0 && await de().setItem(E, {
|
|
3466
3456
|
meta: { storedOn: t },
|
|
3467
|
-
...
|
|
3468
|
-
}), _(
|
|
3469
|
-
} catch (
|
|
3470
|
-
P(
|
|
3457
|
+
...A
|
|
3458
|
+
}), _(A);
|
|
3459
|
+
} catch (A) {
|
|
3460
|
+
P(A);
|
|
3471
3461
|
} finally {
|
|
3472
3462
|
delete l.value[E];
|
|
3473
3463
|
}
|
|
@@ -3481,7 +3471,7 @@ function Za(e) {
|
|
|
3481
3471
|
}
|
|
3482
3472
|
async function N(r) {
|
|
3483
3473
|
r.additionalUrl ?? (r.additionalUrl = "/get");
|
|
3484
|
-
const x =
|
|
3474
|
+
const x = D(r), E = r.refresh;
|
|
3485
3475
|
if (!E && a.value[x] !== void 0)
|
|
3486
3476
|
return a.value[x] ?? [];
|
|
3487
3477
|
if (!E && s == !0) {
|
|
@@ -3516,7 +3506,7 @@ function Za(e) {
|
|
|
3516
3506
|
}
|
|
3517
3507
|
async function L(r) {
|
|
3518
3508
|
r.additionalUrl ?? (r.additionalUrl = "/patch");
|
|
3519
|
-
const x =
|
|
3509
|
+
const x = D(r);
|
|
3520
3510
|
let E;
|
|
3521
3511
|
if (e.api != null)
|
|
3522
3512
|
try {
|
|
@@ -3549,7 +3539,7 @@ function Za(e) {
|
|
|
3549
3539
|
}
|
|
3550
3540
|
async function R(r) {
|
|
3551
3541
|
r.additionalUrl ?? (r.additionalUrl = "/post");
|
|
3552
|
-
const x =
|
|
3542
|
+
const x = D(r);
|
|
3553
3543
|
let E;
|
|
3554
3544
|
if (e.api != null)
|
|
3555
3545
|
try {
|
|
@@ -3568,7 +3558,7 @@ function Za(e) {
|
|
|
3568
3558
|
}
|
|
3569
3559
|
async function b(r) {
|
|
3570
3560
|
r.additionalUrl ?? (r.additionalUrl = "/delete");
|
|
3571
|
-
const x =
|
|
3561
|
+
const x = D(r);
|
|
3572
3562
|
if (e.api != null)
|
|
3573
3563
|
try {
|
|
3574
3564
|
let E = await e.api.deleteItem(r);
|
|
@@ -3602,9 +3592,9 @@ function Za(e) {
|
|
|
3602
3592
|
};
|
|
3603
3593
|
});
|
|
3604
3594
|
}
|
|
3605
|
-
function
|
|
3606
|
-
return
|
|
3607
|
-
const t = Y(), a = Y(0), l = fe.utc().toSeconds() / 3600, s = Y(), o = Y(),
|
|
3595
|
+
function wt(e) {
|
|
3596
|
+
return Wt(e.storeName, () => {
|
|
3597
|
+
const t = Y(), a = Y(0), l = fe.utc().toSeconds() / 3600, s = Y(), o = Y(), D = Y({}), S = e.storageMode == "local-cache";
|
|
3608
3598
|
function N() {
|
|
3609
3599
|
var y;
|
|
3610
3600
|
return `${e.storeName}_${((y = e.auth) == null ? void 0 : y.credentials.value.userID) ?? "no-user-id"}`;
|
|
@@ -3619,7 +3609,7 @@ function bt(e) {
|
|
|
3619
3609
|
}
|
|
3620
3610
|
function R(y) {
|
|
3621
3611
|
const I = N();
|
|
3622
|
-
return
|
|
3612
|
+
return D.value[I] || (D.value[I] = new Promise(async (B, U) => {
|
|
3623
3613
|
var _, P;
|
|
3624
3614
|
try {
|
|
3625
3615
|
let m = await ((P = e.api) == null ? void 0 : P.getAll({
|
|
@@ -3629,10 +3619,10 @@ function bt(e) {
|
|
|
3629
3619
|
lastUpdate: ((_ = o.value) == null ? void 0 : _.lastUpdate) ?? oa()
|
|
3630
3620
|
}
|
|
3631
3621
|
}));
|
|
3632
|
-
m == null ? U(m) : (t.value ?? (t.value = []), m.data.forEach((
|
|
3622
|
+
m == null ? U(m) : (t.value ?? (t.value = []), m.data.forEach((A) => {
|
|
3633
3623
|
var f, C;
|
|
3634
|
-
const g = t.value.findIndex((G) => G.id ==
|
|
3635
|
-
g >= 0 ? (f = t.value) == null || f.splice(g, 1,
|
|
3624
|
+
const g = t.value.findIndex((G) => G.id == A.id);
|
|
3625
|
+
g >= 0 ? (f = t.value) == null || f.splice(g, 1, A) : (C = t.value) == null || C.push(A);
|
|
3636
3626
|
}), a.value = t.value.length, o.value = {
|
|
3637
3627
|
lastUpdate: fe.utc().toString(),
|
|
3638
3628
|
storedOn: l.toString()
|
|
@@ -3640,9 +3630,9 @@ function bt(e) {
|
|
|
3640
3630
|
} catch (m) {
|
|
3641
3631
|
U(m);
|
|
3642
3632
|
} finally {
|
|
3643
|
-
delete
|
|
3633
|
+
delete D.value[I];
|
|
3644
3634
|
}
|
|
3645
|
-
})),
|
|
3635
|
+
})), D.value[I];
|
|
3646
3636
|
}
|
|
3647
3637
|
async function b(y) {
|
|
3648
3638
|
var U, _, P;
|
|
@@ -3672,8 +3662,8 @@ function bt(e) {
|
|
|
3672
3662
|
try {
|
|
3673
3663
|
return await R(y);
|
|
3674
3664
|
} catch (m) {
|
|
3675
|
-
let
|
|
3676
|
-
throw new Error(
|
|
3665
|
+
let A = m;
|
|
3666
|
+
throw new Error(A.message ?? "Problem");
|
|
3677
3667
|
}
|
|
3678
3668
|
}
|
|
3679
3669
|
async function c(y) {
|
|
@@ -3687,7 +3677,7 @@ function bt(e) {
|
|
|
3687
3677
|
const P = await de().getItem(I);
|
|
3688
3678
|
if (P != null && parseFloat(P.meta.storedOn) > l - 12) {
|
|
3689
3679
|
t.value = P.data, a.value = P.data.length, s.value = P.filters ?? [], o.value = P.meta;
|
|
3690
|
-
let m = t.value.find((
|
|
3680
|
+
let m = t.value.find((A) => A.id == y.id);
|
|
3691
3681
|
if (m != null)
|
|
3692
3682
|
return { data: m };
|
|
3693
3683
|
}
|
|
@@ -3784,44 +3774,44 @@ function bt(e) {
|
|
|
3784
3774
|
};
|
|
3785
3775
|
});
|
|
3786
3776
|
}
|
|
3787
|
-
function
|
|
3777
|
+
function Cu(e, t, a) {
|
|
3788
3778
|
var Re;
|
|
3789
|
-
const l = e.storeMode ?? (a == null ? void 0 : a.storeMode) ?? "session", s = e.storageMode ?? (a == null ? void 0 : a.storageMode) ?? "local-cache", o = e.nav ?? e.nav ?? "basic",
|
|
3779
|
+
const l = e.storeMode ?? (a == null ? void 0 : a.storeMode) ?? "session", s = e.storageMode ?? (a == null ? void 0 : a.storageMode) ?? "local-cache", o = e.nav ?? e.nav ?? "basic", D = La(), S = Ut(), N = Aa(), L = Y(1), R = K(e.customFilters) ?? [], b = Y([]);
|
|
3790
3780
|
let c = Y(new Array());
|
|
3791
3781
|
const h = le(() => Jn([
|
|
3792
3782
|
...R.filter((j) => j.name != null).map((j) => j.name),
|
|
3793
3783
|
...e.defaultFilters ?? [],
|
|
3794
3784
|
...b.value
|
|
3795
|
-
]).value), r = Y((e.defaultFilters ?? []).map((j) => h.value.indexOf(j))), x = le(() =>
|
|
3785
|
+
]).value), r = Y((e.defaultFilters ?? []).map((j) => h.value.indexOf(j))), x = le(() => ft(c, r).value.length > 0 || ft(r, c).value.length > 0), E = K(e.proxyQueryKey), y = le(() => {
|
|
3796
3786
|
var j;
|
|
3797
3787
|
return K(e.proxyID) ?? (E != null ? (j = N.query) == null ? void 0 : j[E] : void 0);
|
|
3798
3788
|
}), I = K(e.searchQueryKey), B = Y(I != null ? (Re = N.query) == null ? void 0 : Re[I] : void 0), U = Y(K(e.startShowingInactive) ?? !1), _ = Y(K(e.sortOrder)), P = le(() => [
|
|
3799
3789
|
...e.searchProps ?? [],
|
|
3800
3790
|
...(e.headers ?? []).filter((j) => j.searchable != null && j.value != null).map((j) => j.value ?? "")
|
|
3801
|
-
]), m = Y([]),
|
|
3791
|
+
]), m = Y([]), A = Ne([]), g = Y([]);
|
|
3802
3792
|
let f;
|
|
3803
3793
|
const { actionErrorMsg: C, actionLoadingMsg: G, deleteItem: J, doAction: ee, getItem: we, getAllItems: W, restoreItem: H } = la({
|
|
3804
3794
|
nav: e.nav ?? e.bladeName ?? e.itemBladeName,
|
|
3805
3795
|
proxyID: y.value,
|
|
3806
|
-
store:
|
|
3796
|
+
store: jt({
|
|
3807
3797
|
storeMode: l,
|
|
3808
3798
|
storageMode: s,
|
|
3809
3799
|
storeName: o
|
|
3810
3800
|
})
|
|
3811
|
-
}), V = le(() => e.errorMsg ?? C.value), ce = le(() => e.loadingMsg ?? G.value), Z = le(() => ce.value != null), re = Ne(!1), se = Ne(e.showSearch ?? !1), me = Y(0), be = le(() => (j) => e.onCanDelete != null ? e.onCanDelete(j) : !(j != null && j.isInactive === !0)),
|
|
3801
|
+
}), V = le(() => e.errorMsg ?? C.value), ce = le(() => e.loadingMsg ?? G.value), Z = le(() => ce.value != null), re = Ne(!1), se = Ne(e.showSearch ?? !1), me = Y(0), be = le(() => (j) => e.onCanDelete != null ? e.onCanDelete(j) : !(j != null && j.isInactive === !0)), fr = le(() => (j) => U.value ? e.onCanRestore != null ? e.onCanRestore(j) : (j == null ? void 0 : j.isInactive) === !0 : !1), Le = le(() => g.value.filter((j) => !j.hide)), sr = le(() => {
|
|
3812
3802
|
let j = new Array();
|
|
3813
3803
|
return Le.value.filter((Q) => Q.sublevel != null).forEach((Q) => {
|
|
3814
3804
|
let p = j.find((Ee) => Ee.position == Q.sublevel);
|
|
3815
3805
|
p == null ? j.push({ position: Q.sublevel ?? 0, values: [Q] }) : p.values.push(Q);
|
|
3816
3806
|
}), j.sort(Ze.firstBy((Q) => Q.position));
|
|
3817
|
-
}),
|
|
3807
|
+
}), or = le(() => {
|
|
3818
3808
|
let j = new Array();
|
|
3819
3809
|
return Le.value.filter((Q) => Q.level != null).forEach((Q) => {
|
|
3820
3810
|
let p = j.find((Ee) => Ee.position == Q.level);
|
|
3821
3811
|
p == null ? j.push({ position: Q.level ?? 0, values: [Q] }) : p.values.push(Q);
|
|
3822
3812
|
}), j.sort(Ze.firstBy((Q) => Q.position));
|
|
3823
|
-
}),
|
|
3824
|
-
function
|
|
3813
|
+
}), hr = le(() => []);
|
|
3814
|
+
function dr(j) {
|
|
3825
3815
|
if (e.itemBladeName != null) {
|
|
3826
3816
|
let te = {
|
|
3827
3817
|
bladeName: e.itemBladeName,
|
|
@@ -3834,7 +3824,7 @@ function Mu(e, t, a) {
|
|
|
3834
3824
|
});
|
|
3835
3825
|
}
|
|
3836
3826
|
}
|
|
3837
|
-
function
|
|
3827
|
+
function mr(j) {
|
|
3838
3828
|
const {
|
|
3839
3829
|
additionalUrl: te,
|
|
3840
3830
|
onDeleteAsync: Q
|
|
@@ -3865,7 +3855,7 @@ function Mu(e, t, a) {
|
|
|
3865
3855
|
requireConfirmation: !0
|
|
3866
3856
|
}), t && t("deleted", j);
|
|
3867
3857
|
}
|
|
3868
|
-
function
|
|
3858
|
+
function vr(j) {
|
|
3869
3859
|
H({
|
|
3870
3860
|
data: K(j),
|
|
3871
3861
|
additionalUrl: e.additionalUrl,
|
|
@@ -3877,9 +3867,9 @@ function Mu(e, t, a) {
|
|
|
3877
3867
|
// ...(useBladeSrc ? bladeData.value : {})
|
|
3878
3868
|
});
|
|
3879
3869
|
}
|
|
3880
|
-
function
|
|
3870
|
+
function gr() {
|
|
3881
3871
|
ee(() => {
|
|
3882
|
-
|
|
3872
|
+
D.exportToCSV(Le.value, A.value);
|
|
3883
3873
|
}, { loadingMsg: "Exporting to CSV" });
|
|
3884
3874
|
}
|
|
3885
3875
|
function ke() {
|
|
@@ -3888,7 +3878,7 @@ function Mu(e, t, a) {
|
|
|
3888
3878
|
let te = [...P.value];
|
|
3889
3879
|
e.itemText && te.push(e.itemText), Fe(te) && (j = j.filter((Q) => ya(Q, B.value, te)));
|
|
3890
3880
|
}
|
|
3891
|
-
|
|
3881
|
+
A.value = j;
|
|
3892
3882
|
}
|
|
3893
3883
|
function Se() {
|
|
3894
3884
|
e.headers != null && (g.value = [...e.headers], e.hideActions || g.value.push({ title: "Actions", value: "itemActions", align: "end" }));
|
|
@@ -3916,8 +3906,8 @@ function Mu(e, t, a) {
|
|
|
3916
3906
|
let Q = await W({
|
|
3917
3907
|
...te,
|
|
3918
3908
|
onGetSuccessAsync: async (p, Ee) => {
|
|
3919
|
-
let De = p.data;
|
|
3920
|
-
return b.value = p.filters ?? [], e.useServerPagination === !0 && e.itemsPerPage && p.count && (me.value = Math.ceil(p.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (De = await e.onGetSuccessAsync(De, Ee)), De;
|
|
3909
|
+
let De = p == null ? void 0 : p.data;
|
|
3910
|
+
return b.value = (p == null ? void 0 : p.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && p.count && (me.value = Math.ceil(p.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (De = await e.onGetSuccessAsync(De, Ee)), De;
|
|
3921
3911
|
}
|
|
3922
3912
|
});
|
|
3923
3913
|
m.value = Q;
|
|
@@ -3952,29 +3942,29 @@ function Mu(e, t, a) {
|
|
|
3952
3942
|
re.value = j != null || te != null;
|
|
3953
3943
|
}), Ae(() => e.refreshToggle, () => {
|
|
3954
3944
|
Te({ deepRefresh: !0 });
|
|
3955
|
-
}),
|
|
3945
|
+
}), Lt([m, () => e.items], () => {
|
|
3956
3946
|
ke();
|
|
3957
|
-
}),
|
|
3947
|
+
}), zr(async () => {
|
|
3958
3948
|
var j;
|
|
3959
3949
|
e.eager == !0 && await Te({ deepRefresh: ((j = N.params) == null ? void 0 : j.refresh) == "true" });
|
|
3960
3950
|
}), {
|
|
3961
|
-
add:
|
|
3951
|
+
add: dr,
|
|
3962
3952
|
asyncItems: m,
|
|
3963
3953
|
currentPage: L,
|
|
3964
|
-
deleteItem:
|
|
3965
|
-
displayHeaders:
|
|
3954
|
+
deleteItem: mr,
|
|
3955
|
+
displayHeaders: hr,
|
|
3966
3956
|
errorMsg: V,
|
|
3967
|
-
exportToCSV:
|
|
3968
|
-
filteredItems:
|
|
3957
|
+
exportToCSV: gr,
|
|
3958
|
+
filteredItems: A,
|
|
3969
3959
|
filters: h,
|
|
3970
3960
|
filtersChanged: x,
|
|
3971
3961
|
headerOptions: g,
|
|
3972
3962
|
isDeletable: be,
|
|
3973
3963
|
isLoading: Z,
|
|
3974
|
-
isRestorable:
|
|
3964
|
+
isRestorable: fr,
|
|
3975
3965
|
loadingMsg: ce,
|
|
3976
3966
|
refresh: Te,
|
|
3977
|
-
restoreItem:
|
|
3967
|
+
restoreItem: vr,
|
|
3978
3968
|
searchString: B,
|
|
3979
3969
|
selectedFilters: r,
|
|
3980
3970
|
selectItem: Je,
|
|
@@ -3983,19 +3973,19 @@ function Mu(e, t, a) {
|
|
|
3983
3973
|
showInactive: U,
|
|
3984
3974
|
showSearch: se,
|
|
3985
3975
|
sortOrder: _,
|
|
3986
|
-
subtitleOptions:
|
|
3976
|
+
subtitleOptions: sr,
|
|
3987
3977
|
tableHeaders: Le,
|
|
3988
|
-
titleOptions:
|
|
3978
|
+
titleOptions: or,
|
|
3989
3979
|
toggleSearch: Me,
|
|
3990
3980
|
totalPages: me
|
|
3991
3981
|
};
|
|
3992
3982
|
}
|
|
3993
|
-
const
|
|
3994
|
-
let
|
|
3995
|
-
function
|
|
3996
|
-
return
|
|
3983
|
+
const bt = Y(!0), Et = Y(!1), St = Y(), Ir = Y(!1);
|
|
3984
|
+
let xr = null, Gr;
|
|
3985
|
+
function Pu() {
|
|
3986
|
+
return Gr;
|
|
3997
3987
|
}
|
|
3998
|
-
function
|
|
3988
|
+
function Ha(e) {
|
|
3999
3989
|
const t = e.defaultCacheExpiryHours ?? 7;
|
|
4000
3990
|
e.getDisplayName ?? (e.getDisplayName = (c) => {
|
|
4001
3991
|
if (c.displayName != null)
|
|
@@ -4019,12 +4009,12 @@ function Ya(e) {
|
|
|
4019
4009
|
var h;
|
|
4020
4010
|
return (h = S(c)) == null ? void 0 : h.displayName;
|
|
4021
4011
|
}
|
|
4022
|
-
function
|
|
4012
|
+
function D(c) {
|
|
4023
4013
|
var h;
|
|
4024
4014
|
return (h = S(c)) == null ? void 0 : h.icon;
|
|
4025
4015
|
}
|
|
4026
4016
|
function S(c) {
|
|
4027
|
-
return c == null ? null : typeof c != "string" ? c :
|
|
4017
|
+
return c == null ? null : typeof c != "string" ? c : Rt(a, (r) => r.children).find((r) => {
|
|
4028
4018
|
var x;
|
|
4029
4019
|
return r.name == c || r.singleName == c || ((x = r.aliases) == null ? void 0 : x.some((E) => E == c));
|
|
4030
4020
|
}) ?? null;
|
|
@@ -4052,81 +4042,81 @@ function Ya(e) {
|
|
|
4052
4042
|
if (c == null)
|
|
4053
4043
|
return;
|
|
4054
4044
|
const h = typeof c == "string" ? S(c) : c;
|
|
4055
|
-
|
|
4045
|
+
St.value = h == null ? void 0 : h.background, Et.value = (h == null ? void 0 : h.hideNavigation) !== !0, bt.value = (h == null ? void 0 : h.hideAppBar) !== !0, xr != null && xr(), Ir.value = (h == null ? void 0 : h.hesitate) === !0, Ir.value && (xr = window.addEventListener("beforeunload", (r) => {
|
|
4056
4046
|
r.preventDefault();
|
|
4057
4047
|
}));
|
|
4058
4048
|
}
|
|
4059
|
-
return
|
|
4060
|
-
showAppBar:
|
|
4061
|
-
showAppNavigation:
|
|
4062
|
-
backgroundName:
|
|
4063
|
-
hesitate:
|
|
4049
|
+
return Gr = {
|
|
4050
|
+
showAppBar: bt,
|
|
4051
|
+
showAppNavigation: Et,
|
|
4052
|
+
backgroundName: St,
|
|
4053
|
+
hesitate: Ir,
|
|
4064
4054
|
navigationItems: a,
|
|
4065
4055
|
findArchiveName: l,
|
|
4066
4056
|
findCacheHours: s,
|
|
4067
4057
|
findDisplay: o,
|
|
4068
|
-
findIcon:
|
|
4058
|
+
findIcon: D,
|
|
4069
4059
|
findItem: S,
|
|
4070
4060
|
findStoreName: R,
|
|
4071
4061
|
findPath: N,
|
|
4072
4062
|
findSingleDisplay: L,
|
|
4073
4063
|
updateNavigationProperties: b
|
|
4074
|
-
},
|
|
4064
|
+
}, Gr;
|
|
4075
4065
|
}
|
|
4076
|
-
let
|
|
4077
|
-
function
|
|
4078
|
-
return
|
|
4066
|
+
let qr;
|
|
4067
|
+
function Lu(e) {
|
|
4068
|
+
return qr.usePresets(e);
|
|
4079
4069
|
}
|
|
4080
|
-
function
|
|
4070
|
+
function za(e) {
|
|
4081
4071
|
function t(a) {
|
|
4082
4072
|
if (!a)
|
|
4083
4073
|
return {};
|
|
4084
4074
|
let l = a;
|
|
4085
4075
|
return e.presets[l] ?? {};
|
|
4086
4076
|
}
|
|
4087
|
-
return
|
|
4077
|
+
return qr = {
|
|
4088
4078
|
usePresets: t
|
|
4089
|
-
},
|
|
4079
|
+
}, qr;
|
|
4090
4080
|
}
|
|
4091
|
-
let At, Dt, It
|
|
4092
|
-
const
|
|
4093
|
-
let
|
|
4094
|
-
function
|
|
4095
|
-
return
|
|
4081
|
+
let _t, At, Dt, It = !1;
|
|
4082
|
+
const Nr = Y(!1), Tr = Y(!1), xt = Y(), nr = Y();
|
|
4083
|
+
let Hr;
|
|
4084
|
+
function Mu() {
|
|
4085
|
+
return Hr;
|
|
4096
4086
|
}
|
|
4097
|
-
function
|
|
4098
|
-
function e(
|
|
4099
|
-
nr.value =
|
|
4087
|
+
function Za() {
|
|
4088
|
+
function e(D) {
|
|
4089
|
+
nr.value = D.detail, Tr.value = !0;
|
|
4100
4090
|
}
|
|
4101
4091
|
function t() {
|
|
4102
|
-
|
|
4092
|
+
It || (It = !0, window.location.reload());
|
|
4103
4093
|
}
|
|
4104
4094
|
function a() {
|
|
4105
|
-
var
|
|
4106
|
-
(
|
|
4095
|
+
var D;
|
|
4096
|
+
(D = xt.value) == null || D.prompt(), Nr.value = !1;
|
|
4107
4097
|
}
|
|
4108
4098
|
function l() {
|
|
4109
4099
|
return !!window.matchMedia("(display-mode: standalone)").matches;
|
|
4110
4100
|
}
|
|
4111
|
-
function s(
|
|
4112
|
-
|
|
4101
|
+
function s(D) {
|
|
4102
|
+
D.preventDefault(), Nr.value = !0, xt.value = D;
|
|
4113
4103
|
}
|
|
4114
4104
|
function o() {
|
|
4115
|
-
|
|
4105
|
+
Tr.value = !1, !(!nr.value || !nr.value.waiting) && nr.value.waiting.postMessage({ type: "SKIP_WAITING" });
|
|
4116
4106
|
}
|
|
4117
|
-
return
|
|
4118
|
-
|
|
4119
|
-
}),
|
|
4120
|
-
canInstallApp:
|
|
4121
|
-
canUpdateApp:
|
|
4107
|
+
return Yr(() => {
|
|
4108
|
+
_t == null && (_t = document.addEventListener("swUpdated", e, { once: !0 })), At == null && (At = navigator.serviceWorker.addEventListener("controllerchange", t)), Dt == null && (Dt = window.addEventListener("beforeinstallprompt", s));
|
|
4109
|
+
}), Hr = {
|
|
4110
|
+
canInstallApp: Nr,
|
|
4111
|
+
canUpdateApp: Tr,
|
|
4122
4112
|
installApp: a,
|
|
4123
4113
|
isInstalled: l,
|
|
4124
4114
|
updateApp: o
|
|
4125
|
-
},
|
|
4115
|
+
}, Hr;
|
|
4126
4116
|
}
|
|
4127
|
-
const
|
|
4128
|
-
function
|
|
4129
|
-
let a, l = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, o = t.minWidth ?? 0,
|
|
4117
|
+
const Ya = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
|
|
4118
|
+
function Ru(e, t = {}) {
|
|
4119
|
+
let a, l = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, o = t.minWidth ?? 0, D = t.maxWidth ?? Number.MAX_SAFE_INTEGER, S = t.minHeight ?? 0, N = t.maxHeight ?? Number.MAX_SAFE_INTEGER, L = t.preventDefault ?? !1, R = t.stopPropagation ?? !1, b, c = [];
|
|
4130
4120
|
const h = Y(!1);
|
|
4131
4121
|
let r = [], x = [];
|
|
4132
4122
|
const E = Y(!1), y = Y({ x: 0, y: 0 });
|
|
@@ -4144,7 +4134,7 @@ function $u(e, t = {}) {
|
|
|
4144
4134
|
const H = l + "px", V = -l / 2 + "px", ce = s + 1, Z = document.createElement("div");
|
|
4145
4135
|
return Z.dataset.handle = W, Z.style.position = "absolute", Z.style.touchAction = "none", Z.style.userSelect = "none", Z.style.zIndex = (W.length === 1 ? s : ce).toString(), Z.style.cursor = C(W), W.includes("t") && (Z.style.top = V, Z.style.height = H, W === "t" && (Z.style.left = "0", Z.style.width = "100%")), W.includes("b") && (Z.style.bottom = V, Z.style.height = H, W === "b" && (Z.style.left = "0", Z.style.width = "100%")), W.includes("r") && (Z.style.right = V, Z.style.width = H, W === "r" && (Z.style.top = "0", Z.style.height = "100%")), W.includes("l") && (Z.style.left = V, Z.style.width = H, W === "l" && (Z.style.top = "0", Z.style.height = "100%")), Z;
|
|
4146
4136
|
}
|
|
4147
|
-
function
|
|
4137
|
+
function A(W) {
|
|
4148
4138
|
var se;
|
|
4149
4139
|
if (!c.some((me) => me == W.target))
|
|
4150
4140
|
return;
|
|
@@ -4157,7 +4147,7 @@ function $u(e, t = {}) {
|
|
|
4157
4147
|
top: V.offsetTop,
|
|
4158
4148
|
height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
|
|
4159
4149
|
width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
|
|
4160
|
-
}, B =
|
|
4150
|
+
}, B = Kr(I), ((se = t.onStart) == null ? void 0 : se.call(t, y.value, W)) === !1)
|
|
4161
4151
|
return;
|
|
4162
4152
|
let re = W.target;
|
|
4163
4153
|
document.documentElement.style.cursor = C(re.dataset.handle), b = re.dataset.handle, x.push(he("mousemove", g)), x.push(he("mouseup", f)), x.push(he("touchmove", g)), x.push(he("touchend", f)), U(W);
|
|
@@ -4178,11 +4168,11 @@ function $u(e, t = {}) {
|
|
|
4178
4168
|
B.height = be;
|
|
4179
4169
|
}
|
|
4180
4170
|
if (b.includes("l")) {
|
|
4181
|
-
const be = Math.min(
|
|
4171
|
+
const be = Math.min(D, Math.max(o, (me.width ?? 0) - re));
|
|
4182
4172
|
B.width = be, B.left = (me.left ?? 0) + re;
|
|
4183
4173
|
}
|
|
4184
4174
|
if (b.includes("r")) {
|
|
4185
|
-
const be = Math.min(
|
|
4175
|
+
const be = Math.min(D, Math.max(o, (me.width ?? 0) + re));
|
|
4186
4176
|
B.width = be;
|
|
4187
4177
|
}
|
|
4188
4178
|
V.dispatchEvent(new CustomEvent("resize")), U(W), J(B);
|
|
@@ -4259,7 +4249,7 @@ function $u(e, t = {}) {
|
|
|
4259
4249
|
if (E.value)
|
|
4260
4250
|
return;
|
|
4261
4251
|
const V = ae(e);
|
|
4262
|
-
V && (_(V, W ??
|
|
4252
|
+
V && (_(V, W ?? Ya), G(H), r.push(he(V.$el, "mousedown", A)), r.push(he(V.$el, "touchstart", A)), E.value = !0, a = H);
|
|
4263
4253
|
}
|
|
4264
4254
|
function we(W) {
|
|
4265
4255
|
if (!E.value)
|
|
@@ -4275,137 +4265,134 @@ function $u(e, t = {}) {
|
|
|
4275
4265
|
turnResizingOff: we
|
|
4276
4266
|
};
|
|
4277
4267
|
}
|
|
4278
|
-
function
|
|
4268
|
+
function Uu(e) {
|
|
4279
4269
|
const t = [];
|
|
4280
4270
|
return (e == null ? void 0 : e.required) == !0 && t.push((a) => !!a || "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((a) => !!a || "Password is required"), t.push((a) => a != null && a.length > 9 || "Password must be 10 or more characters"), t.push((a) => /^(.*[a-z].*)$/.test(a) || "Password must contain a lowercase letter"), t.push((a) => /^(.*[A-Z].*)$/.test(a) || "Password must contain an uppercase letter"), t.push((a) => /^(.*\d.*)$/.test(a) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((a) => !!a || "Email is required"), t.push((a) => wa(a) || "Email must be valid")), t;
|
|
4281
4271
|
}
|
|
4282
|
-
function
|
|
4272
|
+
function Bu(e, t) {
|
|
4283
4273
|
const a = Y(!1), l = ar(e);
|
|
4284
4274
|
let s = o(K(e));
|
|
4285
4275
|
(t == null ? void 0 : t.useTracker) !== !1 && Ae(l, (S) => {
|
|
4286
4276
|
a.value = o(S) != s;
|
|
4287
4277
|
}, { deep: !0 });
|
|
4288
4278
|
function o(S) {
|
|
4289
|
-
const N =
|
|
4279
|
+
const N = Kr(S);
|
|
4290
4280
|
return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((L) => {
|
|
4291
4281
|
delete N[L];
|
|
4292
4282
|
}) : t.propsToTrack != null && Object.keys(S).forEach((R) => {
|
|
4293
4283
|
t.propsToTrack.some((b) => b == R) || delete N[R];
|
|
4294
4284
|
})), JSON.stringify(N);
|
|
4295
4285
|
}
|
|
4296
|
-
function
|
|
4286
|
+
function D() {
|
|
4297
4287
|
s = o(K(l)), a.value = !1;
|
|
4298
4288
|
}
|
|
4299
4289
|
return {
|
|
4300
4290
|
asyncItem: l,
|
|
4301
4291
|
isChanged: a,
|
|
4302
|
-
restartTracker:
|
|
4292
|
+
restartTracker: D
|
|
4303
4293
|
};
|
|
4304
4294
|
}
|
|
4305
|
-
function
|
|
4295
|
+
function $u(e) {
|
|
4306
4296
|
return {
|
|
4307
4297
|
install() {
|
|
4308
|
-
var
|
|
4309
|
-
Pa(e);
|
|
4310
|
-
const t = Ra(), a =
|
|
4311
|
-
|
|
4312
|
-
const l = xa(e.auth)
|
|
4298
|
+
var o;
|
|
4299
|
+
console.log("core installing"), Pa(e);
|
|
4300
|
+
const t = Ra(), a = Ha(e);
|
|
4301
|
+
za(e), (o = e.auth).demo ?? (o.demo = t), e.auth.getAuthItem = a.findItem;
|
|
4302
|
+
const l = xa(e.auth);
|
|
4303
|
+
Ea({
|
|
4313
4304
|
auth: l,
|
|
4314
4305
|
findPath: a.findPath,
|
|
4315
4306
|
useBearerToken: !0
|
|
4316
|
-
})
|
|
4307
|
+
});
|
|
4308
|
+
const s = Ma({
|
|
4317
4309
|
getTimeZone: l.getTimeZone
|
|
4318
4310
|
});
|
|
4319
4311
|
Ba({
|
|
4320
|
-
dates:
|
|
4321
|
-
}),
|
|
4322
|
-
api: s,
|
|
4323
|
-
auth: l
|
|
4324
|
-
}), Ia(e.urls);
|
|
4312
|
+
dates: s
|
|
4313
|
+
}), Za(), Ia(e.urls);
|
|
4325
4314
|
}
|
|
4326
4315
|
};
|
|
4327
4316
|
}
|
|
4328
4317
|
export {
|
|
4329
|
-
|
|
4330
|
-
|
|
4318
|
+
vu as DataURIToBlob,
|
|
4319
|
+
fu as addWeekday,
|
|
4331
4320
|
Ce as appendUrl,
|
|
4332
4321
|
fa as capitalizeWords,
|
|
4333
|
-
|
|
4322
|
+
nu as checkImage,
|
|
4334
4323
|
ma as containsSearch,
|
|
4335
|
-
|
|
4336
|
-
|
|
4324
|
+
iu as containsWeekday,
|
|
4325
|
+
Kr as copyDeep,
|
|
4337
4326
|
da as copyItemByAlphabet,
|
|
4338
4327
|
Ea as createApi,
|
|
4339
4328
|
xa as createAuth,
|
|
4340
|
-
|
|
4329
|
+
$u as createCore,
|
|
4341
4330
|
Pa as createCosmetics,
|
|
4342
4331
|
Ma as createDates,
|
|
4343
4332
|
Ra as createDemo,
|
|
4344
4333
|
Ba as createFilters,
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
qa as createStoreBuilder,
|
|
4350
|
-
Ha as createStoreDefinition,
|
|
4334
|
+
Ha as createNavigation,
|
|
4335
|
+
Za as createPWA,
|
|
4336
|
+
za as createPresets,
|
|
4337
|
+
qa as createSessionStoreDefinition,
|
|
4351
4338
|
Ia as createUrl,
|
|
4352
|
-
|
|
4339
|
+
wt as createWholeLastUpdateStoreDefinition,
|
|
4353
4340
|
ha as csvContains,
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4341
|
+
Su as csvDefaults,
|
|
4342
|
+
Rt as deepSelect,
|
|
4343
|
+
Xa as distinct,
|
|
4344
|
+
Oa as extensionExists,
|
|
4358
4345
|
va as extractErrorDescription,
|
|
4359
4346
|
ia as fromCamelCase,
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4347
|
+
pa as getAreaAround,
|
|
4348
|
+
eu as getAreaToLeft,
|
|
4349
|
+
ru as getAreaToRight,
|
|
4350
|
+
tu as getGoogleMapsLocationLine,
|
|
4351
|
+
au as getImageData,
|
|
4352
|
+
Mt as getLocationLine,
|
|
4353
|
+
hu as getMinDate,
|
|
4367
4354
|
oa as getMinDateString,
|
|
4368
4355
|
ga as getRandomColor,
|
|
4369
4356
|
ya as hasSearch,
|
|
4370
|
-
|
|
4357
|
+
ou as isArrayOfLength,
|
|
4371
4358
|
Fe as isLengthyArray,
|
|
4372
4359
|
sa as isMinDate,
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4360
|
+
Mr as nestedValue,
|
|
4361
|
+
su as removeWeekday,
|
|
4362
|
+
du as roundTo,
|
|
4363
|
+
uu as toCamelCase,
|
|
4364
|
+
gu as toCompareString,
|
|
4365
|
+
mu as toggleCSV,
|
|
4366
|
+
yu as twiddleThumbs,
|
|
4380
4367
|
la as useActions,
|
|
4381
4368
|
ua as useActionsTracker,
|
|
4382
4369
|
ba as useApi,
|
|
4383
|
-
|
|
4384
|
-
|
|
4370
|
+
bu as useAuth,
|
|
4371
|
+
mt as useAuthUrl,
|
|
4385
4372
|
La as useCSV,
|
|
4386
|
-
|
|
4373
|
+
Eu as useCosmetics,
|
|
4387
4374
|
Da as useDataUrl,
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4375
|
+
_u as useDates,
|
|
4376
|
+
Bt as useDbName,
|
|
4377
|
+
Au as useDemo,
|
|
4378
|
+
Du as useDocumentMeta,
|
|
4379
|
+
Iu as useDraggable,
|
|
4380
|
+
xu as useFilters,
|
|
4394
4381
|
na as useId,
|
|
4395
|
-
|
|
4396
|
-
|
|
4382
|
+
Cu as useList,
|
|
4383
|
+
Nu as useLocalCache,
|
|
4397
4384
|
de as useLocalDb,
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4385
|
+
Pu as useNavigation,
|
|
4386
|
+
Mu as usePWA,
|
|
4387
|
+
Lu as usePresets,
|
|
4388
|
+
Ru as useResizable,
|
|
4389
|
+
Uu as useRules,
|
|
4390
|
+
Tu as useStore,
|
|
4391
|
+
jt as useStoreDefinition,
|
|
4392
|
+
Bu as useTracker,
|
|
4393
|
+
wu as useUrls,
|
|
4407
4394
|
wa as validEmail,
|
|
4408
4395
|
Ye as weekdayPairs,
|
|
4409
|
-
|
|
4410
|
-
|
|
4396
|
+
cu as weekdayShortName,
|
|
4397
|
+
lu as weekdayValue
|
|
4411
4398
|
};
|