bt-core-app 1.4.28 → 1.4.29
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 +407 -406
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -7,12 +7,12 @@ function fn(e, t) {
|
|
|
7
7
|
d.value = !0, h();
|
|
8
8
|
};
|
|
9
9
|
Se(e, x, { flush: "sync" });
|
|
10
|
-
const
|
|
10
|
+
const A = typeof t == "function" ? t : t.get, C = typeof t == "function" ? void 0 : t.set, U = un(($, y) => (i = $, h = y, {
|
|
11
11
|
get() {
|
|
12
|
-
return d.value && (a =
|
|
12
|
+
return d.value && (a = A(), d.value = !1), i(), a;
|
|
13
13
|
},
|
|
14
14
|
set(l) {
|
|
15
|
-
|
|
15
|
+
C == null || C(l);
|
|
16
16
|
}
|
|
17
17
|
}));
|
|
18
18
|
return Object.isExtensible(U) && (U.trigger = x), U;
|
|
@@ -38,17 +38,17 @@ function mn(e, t) {
|
|
|
38
38
|
const it = (e) => e();
|
|
39
39
|
function vn(e, t = {}) {
|
|
40
40
|
let a, i, h = vr;
|
|
41
|
-
const d = (
|
|
42
|
-
clearTimeout(
|
|
41
|
+
const d = (A) => {
|
|
42
|
+
clearTimeout(A), h(), h = vr;
|
|
43
43
|
};
|
|
44
|
-
return (
|
|
45
|
-
const
|
|
46
|
-
return a && d(a),
|
|
44
|
+
return (A) => {
|
|
45
|
+
const C = ne(e), U = ne(t.maxWait);
|
|
46
|
+
return a && d(a), C <= 0 || U !== void 0 && U <= 0 ? (i && (d(i), i = null), Promise.resolve(A())) : new Promise(($, y) => {
|
|
47
47
|
h = t.rejectOnCancel ? y : $, U && !i && (i = setTimeout(() => {
|
|
48
|
-
a && d(a), i = null, $(
|
|
48
|
+
a && d(a), i = null, $(A());
|
|
49
49
|
}, U)), a = setTimeout(() => {
|
|
50
|
-
i && d(i), i = null, $(
|
|
51
|
-
},
|
|
50
|
+
i && d(i), i = null, $(A());
|
|
51
|
+
}, C);
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -86,7 +86,7 @@ function wn(e, t, a = {}) {
|
|
|
86
86
|
const {
|
|
87
87
|
eventFilter: i,
|
|
88
88
|
...h
|
|
89
|
-
} = a, { eventFilter: d, pause: x, resume:
|
|
89
|
+
} = a, { eventFilter: d, pause: x, resume: A, isActive: C } = gn(i);
|
|
90
90
|
return { stop: ft(
|
|
91
91
|
e,
|
|
92
92
|
t,
|
|
@@ -94,7 +94,7 @@ function wn(e, t, a = {}) {
|
|
|
94
94
|
...h,
|
|
95
95
|
eventFilter: d
|
|
96
96
|
}
|
|
97
|
-
), pause: x, resume:
|
|
97
|
+
), pause: x, resume: A, isActive: C };
|
|
98
98
|
}
|
|
99
99
|
function Cr(e, t = !0, a) {
|
|
100
100
|
yn() ? Tr(e, a) : t ? e() : at(e);
|
|
@@ -108,7 +108,7 @@ function qr(...e) {
|
|
|
108
108
|
let h = (t = e[2]) != null ? t : bn;
|
|
109
109
|
if (typeof h == "string") {
|
|
110
110
|
const d = h;
|
|
111
|
-
h = (x,
|
|
111
|
+
h = (x, A) => x[d] === A[d];
|
|
112
112
|
}
|
|
113
113
|
return le(() => ne(a).filter((d) => ne(i).findIndex((x) => h(d, x)) === -1));
|
|
114
114
|
}
|
|
@@ -127,18 +127,18 @@ function An(e, t) {
|
|
|
127
127
|
function st(e, t, a) {
|
|
128
128
|
let i = a != null && a.immediate ? [] : [...e instanceof Function ? e() : Array.isArray(e) ? e : ne(e)];
|
|
129
129
|
return Se(e, (h, d, x) => {
|
|
130
|
-
const
|
|
130
|
+
const A = Array.from({ length: i.length }), C = [];
|
|
131
131
|
for (const $ of h) {
|
|
132
132
|
let y = !1;
|
|
133
133
|
for (let l = 0; l < i.length; l++)
|
|
134
|
-
if (!
|
|
135
|
-
|
|
134
|
+
if (!A[l] && $ === i[l]) {
|
|
135
|
+
A[l] = !0, y = !0;
|
|
136
136
|
break;
|
|
137
137
|
}
|
|
138
|
-
y ||
|
|
138
|
+
y || C.push($);
|
|
139
139
|
}
|
|
140
|
-
const U = i.filter(($, y) => !
|
|
141
|
-
t(h, i,
|
|
140
|
+
const U = i.filter(($, y) => !A[y]);
|
|
141
|
+
t(h, i, C, U, x), i = [...h];
|
|
142
142
|
}, a);
|
|
143
143
|
}
|
|
144
144
|
function In(e, t, a = {}) {
|
|
@@ -169,19 +169,19 @@ function oe(...e) {
|
|
|
169
169
|
Array.isArray(a) || (a = [a]), Array.isArray(i) || (i = [i]);
|
|
170
170
|
const d = [], x = () => {
|
|
171
171
|
d.forEach(($) => $()), d.length = 0;
|
|
172
|
-
},
|
|
172
|
+
}, A = ($, y, l, o) => ($.addEventListener(y, l, o), () => $.removeEventListener(y, l, o)), C = Se(
|
|
173
173
|
() => [Nr(t), ne(h)],
|
|
174
174
|
([$, y]) => {
|
|
175
175
|
if (x(), !$)
|
|
176
176
|
return;
|
|
177
177
|
const l = dn(y) ? { ...y } : y;
|
|
178
178
|
d.push(
|
|
179
|
-
...a.flatMap((o) => i.map((r) =>
|
|
179
|
+
...a.flatMap((o) => i.map((r) => A($, o, r, l)))
|
|
180
180
|
);
|
|
181
181
|
},
|
|
182
182
|
{ immediate: !0, flush: "post" }
|
|
183
183
|
), U = () => {
|
|
184
|
-
|
|
184
|
+
C(), x();
|
|
185
185
|
};
|
|
186
186
|
return sn(U), U;
|
|
187
187
|
}
|
|
@@ -234,8 +234,8 @@ function zr(e, t, a, i = {}) {
|
|
|
234
234
|
const {
|
|
235
235
|
flush: d = "pre",
|
|
236
236
|
deep: x = !0,
|
|
237
|
-
listenToStorageChanges:
|
|
238
|
-
writeDefaults:
|
|
237
|
+
listenToStorageChanges: A = !0,
|
|
238
|
+
writeDefaults: C = !0,
|
|
239
239
|
mergeDefaults: U = !1,
|
|
240
240
|
shallow: $,
|
|
241
241
|
window: y = gr,
|
|
@@ -258,13 +258,13 @@ function zr(e, t, a, i = {}) {
|
|
|
258
258
|
return T;
|
|
259
259
|
const b = ne(t), g = Tn(b), _ = (h = i.serializer) != null ? h : Cn[g], { pause: B, resume: P } = wn(
|
|
260
260
|
T,
|
|
261
|
-
() =>
|
|
261
|
+
() => N(T.value),
|
|
262
262
|
{ flush: d, deep: x, eventFilter: l }
|
|
263
263
|
);
|
|
264
|
-
y &&
|
|
264
|
+
y && A && Cr(() => {
|
|
265
265
|
oe(y, "storage", I), oe(y, Hr, m), r && I();
|
|
266
266
|
}), r || I();
|
|
267
|
-
function
|
|
267
|
+
function E(w, q) {
|
|
268
268
|
y && y.dispatchEvent(new CustomEvent(Hr, {
|
|
269
269
|
detail: {
|
|
270
270
|
key: e,
|
|
@@ -274,14 +274,14 @@ function zr(e, t, a, i = {}) {
|
|
|
274
274
|
}
|
|
275
275
|
}));
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function N(w) {
|
|
278
278
|
try {
|
|
279
279
|
const q = a.getItem(e);
|
|
280
280
|
if (w == null)
|
|
281
|
-
|
|
281
|
+
E(q, null), a.removeItem(e);
|
|
282
282
|
else {
|
|
283
283
|
const H = _.write(w);
|
|
284
|
-
q !== H && (a.setItem(e, H),
|
|
284
|
+
q !== H && (a.setItem(e, H), E(q, H));
|
|
285
285
|
}
|
|
286
286
|
} catch (q) {
|
|
287
287
|
o(q);
|
|
@@ -290,7 +290,7 @@ function zr(e, t, a, i = {}) {
|
|
|
290
290
|
function S(w) {
|
|
291
291
|
const q = w ? w.newValue : a.getItem(e);
|
|
292
292
|
if (q == null)
|
|
293
|
-
return
|
|
293
|
+
return C && b != null && a.setItem(e, _.write(b)), b;
|
|
294
294
|
if (!w && U) {
|
|
295
295
|
const H = _.read(q);
|
|
296
296
|
return typeof U == "function" ? U(H, b) : g === "object" && !Array.isArray(H) ? { ...b, ...H } : H;
|
|
@@ -346,14 +346,14 @@ function Rn(e) {
|
|
|
346
346
|
function x(y) {
|
|
347
347
|
t.value = t.value.filter((l) => l.id != y);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function A(y) {
|
|
350
350
|
const l = {
|
|
351
351
|
id: Mn(),
|
|
352
352
|
msg: y ?? "Loading"
|
|
353
353
|
};
|
|
354
354
|
return t.value.push(l), l.id;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function C(y) {
|
|
357
357
|
y != null && (i.value = y.toString());
|
|
358
358
|
}
|
|
359
359
|
function U() {
|
|
@@ -362,14 +362,14 @@ function Rn(e) {
|
|
|
362
362
|
async function $(y, l) {
|
|
363
363
|
const o = { ...l };
|
|
364
364
|
o.completionMsg ?? (o.completionMsg = e == null ? void 0 : e.completionMsg), o.confirmationMsg ?? (o.confirmationMsg = e == null ? void 0 : e.confirmationMsg), o.errorMsg ?? (o.errorMsg = e == null ? void 0 : e.errorMsg), o.loadingMsg ?? (o.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), o.requireConfirmation ?? (o.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
|
|
365
|
-
const r =
|
|
365
|
+
const r = A(o.loadingMsg);
|
|
366
366
|
let T = null;
|
|
367
367
|
try {
|
|
368
368
|
return o.requireConfirmation || o.confirmationMsg, T = await y(), o.completionMsg != null && (h.value = o.completionMsg), T;
|
|
369
369
|
} catch (b) {
|
|
370
370
|
if (o.throwError == !0)
|
|
371
371
|
return T;
|
|
372
|
-
|
|
372
|
+
C(o.errorMsg ?? b ?? "error");
|
|
373
373
|
} finally {
|
|
374
374
|
x(r);
|
|
375
375
|
}
|
|
@@ -383,12 +383,12 @@ function Rn(e) {
|
|
|
383
383
|
clearErrors: U,
|
|
384
384
|
doAction: $,
|
|
385
385
|
isLoading: d,
|
|
386
|
-
logError:
|
|
386
|
+
logError: C
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
389
|
function Bn(e) {
|
|
390
390
|
const { actionErrorMsg: t, actionLoadingMsg: a, clearErrors: i, isLoading: h, doAction: d, logError: x } = Rn(e);
|
|
391
|
-
function
|
|
391
|
+
function A(r) {
|
|
392
392
|
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);
|
|
393
393
|
const T = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
394
394
|
return r.nav != null && T != null && (r.onDeleteAsync ?? (r.onDeleteAsync = () => T().deleteItem(r))), d(async () => {
|
|
@@ -403,7 +403,7 @@ function Bn(e) {
|
|
|
403
403
|
throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function C(r) {
|
|
407
407
|
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 get this item?" : void 0);
|
|
408
408
|
const T = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
409
409
|
return r.nav != null && T != null && (r.onGetAsync ?? (r.onGetAsync = async () => (await T().get(r)).data)), d(async () => {
|
|
@@ -483,10 +483,10 @@ function Bn(e) {
|
|
|
483
483
|
actionLoadingMsg: a,
|
|
484
484
|
actionErrorMsg: t,
|
|
485
485
|
clearErrors: i,
|
|
486
|
-
deleteItem:
|
|
486
|
+
deleteItem: A,
|
|
487
487
|
doAction: d,
|
|
488
488
|
getAllItems: U,
|
|
489
|
-
getItem:
|
|
489
|
+
getItem: C,
|
|
490
490
|
isLoading: h,
|
|
491
491
|
logError: x,
|
|
492
492
|
restoreItem: $,
|
|
@@ -512,11 +512,11 @@ var $e = function() {
|
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
if (h.length === 1) {
|
|
515
|
-
var
|
|
515
|
+
var A = h, C = d.ignoreCase ? t : e, U = d.cmp || function(y, l) {
|
|
516
516
|
return y < l ? -1 : y > l ? 1 : 0;
|
|
517
517
|
};
|
|
518
518
|
h = function(y, l) {
|
|
519
|
-
return U(
|
|
519
|
+
return U(C(A(y)), C(A(l)));
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
const $ = { "-1": "", desc: "" };
|
|
@@ -525,10 +525,10 @@ var $e = function() {
|
|
|
525
525
|
} : h;
|
|
526
526
|
}
|
|
527
527
|
function i(h, d) {
|
|
528
|
-
var x = typeof this == "function" && !this.firstBy ? this : !1,
|
|
529
|
-
return x(U, $) ||
|
|
530
|
-
} :
|
|
531
|
-
return
|
|
528
|
+
var x = typeof this == "function" && !this.firstBy ? this : !1, A = a(h, d), C = x ? function(U, $) {
|
|
529
|
+
return x(U, $) || A(U, $);
|
|
530
|
+
} : A;
|
|
531
|
+
return C.thenBy = i, C;
|
|
532
532
|
}
|
|
533
533
|
return i.firstBy = i, i;
|
|
534
534
|
}();
|
|
@@ -544,10 +544,10 @@ function Te(e, t) {
|
|
|
544
544
|
while (i.startsWith("/"));
|
|
545
545
|
return `${a}/${i}`;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function Ea(e) {
|
|
548
548
|
return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Aa(e = "blitzItExtensionExists") {
|
|
551
551
|
try {
|
|
552
552
|
var t = document.getElementById(e);
|
|
553
553
|
return t != null;
|
|
@@ -555,7 +555,7 @@ function Ea(e = "blitzItExtensionExists") {
|
|
|
555
555
|
return console.log(Hn(a)), !1;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function Ia(e, t) {
|
|
559
559
|
return [
|
|
560
560
|
{ lat: e.lat - t, lng: e.lng + t },
|
|
561
561
|
{ lat: e.lat - t, lng: e.lng - t },
|
|
@@ -563,7 +563,7 @@ function Aa(e, t) {
|
|
|
563
563
|
{ lat: e.lat + t, lng: e.lng + t }
|
|
564
564
|
];
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function _a(e, t) {
|
|
567
567
|
return [
|
|
568
568
|
{ lat: e.lat - t * 2, lng: e.lng + t },
|
|
569
569
|
{ lat: e.lat - t * 2, lng: e.lng - t },
|
|
@@ -571,7 +571,7 @@ function Ia(e, t) {
|
|
|
571
571
|
{ lat: e.lat, lng: e.lng + t }
|
|
572
572
|
];
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Da(e, t) {
|
|
575
575
|
return [
|
|
576
576
|
{ lat: e.lat, lng: e.lng + t },
|
|
577
577
|
{ lat: e.lat, lng: e.lng - t },
|
|
@@ -579,7 +579,7 @@ function _a(e, t) {
|
|
|
579
579
|
{ lat: e.lat + t * 2, lng: e.lng + t }
|
|
580
580
|
];
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function xa(e) {
|
|
583
583
|
var t = ot(e, !0);
|
|
584
584
|
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(" ", "");
|
|
585
585
|
}
|
|
@@ -591,13 +591,13 @@ function ot(e, t = !1) {
|
|
|
591
591
|
var a = "";
|
|
592
592
|
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;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ta(e, t, a) {
|
|
595
595
|
if (e) {
|
|
596
596
|
var i = new Image();
|
|
597
597
|
i.onload = t, i.onerror = a, i.src = e;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
async function
|
|
600
|
+
async function Ca(e, t = !0) {
|
|
601
601
|
return new Promise((a, i) => {
|
|
602
602
|
e == null && i("no url given");
|
|
603
603
|
var h = new Image();
|
|
@@ -614,7 +614,7 @@ async function Ta(e, t = !0) {
|
|
|
614
614
|
function Fn(e) {
|
|
615
615
|
return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Na(e) {
|
|
618
618
|
if (e != null && typeof e == "object")
|
|
619
619
|
for (var t in e)
|
|
620
620
|
/^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
|
|
@@ -633,25 +633,25 @@ const ke = [
|
|
|
633
633
|
{ value: 7, short: "sat", values: ["sat", "saturday"] },
|
|
634
634
|
{ value: 0, short: "always", values: ["always", null, void 0] }
|
|
635
635
|
];
|
|
636
|
-
function
|
|
636
|
+
function La(e) {
|
|
637
637
|
if (e == null)
|
|
638
638
|
return 0;
|
|
639
639
|
const t = e.replaceAll(" ", "").split(",").map((i) => i.toLowerCase()), a = ke.filter((i) => i.values.some((h) => t.some((d) => h == d))).map((i) => i.value);
|
|
640
640
|
return a.length == 0 ? 8 : Math.min(...a);
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Ma(e) {
|
|
643
643
|
return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
|
|
644
644
|
let a = ke.find((i) => i.values.some((h) => h == t));
|
|
645
645
|
return a != null ? a.short : "";
|
|
646
646
|
}).filter((t) => t != null && t.length > 0).toString();
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Pa(e, t) {
|
|
649
649
|
if (e == null || t == null)
|
|
650
650
|
return !0;
|
|
651
651
|
const a = e.replaceAll(" ", "").split(",").map((d) => d.toLowerCase()), i = t.replaceAll(" ", "").toLowerCase(), h = ke.find((d) => d.values.some((x) => x == i));
|
|
652
652
|
return h != null && a.some((d) => d == h.short || h.values.some((x) => x == d));
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function Ra(e, t) {
|
|
655
655
|
if (t == null)
|
|
656
656
|
return e;
|
|
657
657
|
let a = e ?? "";
|
|
@@ -659,13 +659,13 @@ function Pa(e, t) {
|
|
|
659
659
|
let i = [...new Set(a.replaceAll(" ", "").toLowerCase().split(",").map((h) => ke.find((d) => d.values.some((x) => x == h))).filter((h) => h != null).sort($e.firstBy((h) => (h == null ? void 0 : h.value) ?? 0)).map((h) => h == null ? void 0 : h.short))].toString();
|
|
660
660
|
return i.length > 0 ? i : void 0;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Ba(e, t) {
|
|
663
663
|
if (t == null || e == null)
|
|
664
664
|
return e;
|
|
665
|
-
let a = e ?? "", i = t.replaceAll(" ", "").toLowerCase(), h = [...new Set(a.replaceAll(" ", "").toLowerCase().split(",").map((d) => ke.find((x) => x.values.some((
|
|
665
|
+
let a = e ?? "", i = t.replaceAll(" ", "").toLowerCase(), h = [...new Set(a.replaceAll(" ", "").toLowerCase().split(",").map((d) => ke.find((x) => x.values.some((A) => A == d && A != i))).filter((d) => d != null).sort($e.firstBy((d) => (d == null ? void 0 : d.value) ?? 0)).map((d) => d == null ? void 0 : d.short))].toString();
|
|
666
666
|
return h.length > 0 ? h : void 0;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Ua(e, t) {
|
|
669
669
|
return e != null && Array.isArray(e) && e.length == t;
|
|
670
670
|
}
|
|
671
671
|
function Re(e, t = 0) {
|
|
@@ -674,13 +674,13 @@ function Re(e, t = 0) {
|
|
|
674
674
|
function kn(e) {
|
|
675
675
|
return e == "0001-01-01T00:00:00Z";
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Fa() {
|
|
678
678
|
return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
|
|
679
679
|
}
|
|
680
680
|
function Wn() {
|
|
681
681
|
return "0001-01-01T00:00:00Z";
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function $a(e, t) {
|
|
684
684
|
let a = "1", i = 0;
|
|
685
685
|
if (i < t)
|
|
686
686
|
do
|
|
@@ -689,7 +689,7 @@ function Fa(e, t) {
|
|
|
689
689
|
let h = Number.parseInt(a);
|
|
690
690
|
return Math.round(e * h) / h;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function ka(e, t) {
|
|
693
693
|
let a = e ?? "";
|
|
694
694
|
return t != null && (Gn(a, t) ? a = a.split(",").filter((i) => i != t).toString() : a != null ? a = `${a},${t}` : a = t), a != null && a.length > 0 ? a : null;
|
|
695
695
|
}
|
|
@@ -728,7 +728,7 @@ function ht(e, t = (a) => a) {
|
|
|
728
728
|
return Re(d) && i.push(...d), i;
|
|
729
729
|
}, [])] : [];
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Wa(e) {
|
|
732
732
|
const t = e.split(","), a = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), i = t[0].split(":")[1].split(";")[0], h = new Uint8Array(a.length);
|
|
733
733
|
for (let d = 0; d < a.length; d++)
|
|
734
734
|
h[d] = a.charCodeAt(d);
|
|
@@ -764,10 +764,10 @@ function jn(e, t, a) {
|
|
|
764
764
|
}
|
|
765
765
|
return !1;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function Ga(e) {
|
|
768
768
|
return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function Va(e = 2e3) {
|
|
771
771
|
return new Promise((t) => {
|
|
772
772
|
setTimeout(() => t(), e);
|
|
773
773
|
});
|
|
@@ -808,7 +808,7 @@ function Jn(e) {
|
|
|
808
808
|
let o = { ...l.headers };
|
|
809
809
|
return l.proxyID && (o.ManagedCompanyAccountID ?? (o.ManagedCompanyAccountID = l.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((r = e == null ? void 0 : e.auth) == null ? void 0 : r.isLoggedIn.value) == !0 && (o.authorization ?? (o.authorization = `bearer ${(T = e == null ? void 0 : e.auth) == null ? void 0 : T.credentials.value.token}`)), o["Content-Type"] ?? (o["Content-Type"] = l.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), o;
|
|
810
810
|
}
|
|
811
|
-
async function
|
|
811
|
+
async function A(l) {
|
|
812
812
|
const o = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, T = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
|
|
813
813
|
let b = l.finalUrl, g = l.headers;
|
|
814
814
|
b == null && (b = i(l)), l.overrideHeaders !== !0 && (g = t(l)), console.log(`Get from ${b}`);
|
|
@@ -830,7 +830,7 @@ function Jn(e) {
|
|
|
830
830
|
throw new Error(B);
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
async function
|
|
833
|
+
async function C(l) {
|
|
834
834
|
const o = l.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = l.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, T = l.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
|
|
835
835
|
let b = l.finalUrl, g = l.headers;
|
|
836
836
|
b == null && (b = i(l)), l.overrideHeaders !== !0 && (g = t(l)), console.log(`Get all from ${b}`);
|
|
@@ -926,8 +926,8 @@ function Jn(e) {
|
|
|
926
926
|
buildQuery: a,
|
|
927
927
|
buildUrl: i,
|
|
928
928
|
deleteItem: y,
|
|
929
|
-
get:
|
|
930
|
-
getAll:
|
|
929
|
+
get: A,
|
|
930
|
+
getAll: C,
|
|
931
931
|
patch: $,
|
|
932
932
|
post: U
|
|
933
933
|
}, wr;
|
|
@@ -977,14 +977,14 @@ function On(e) {
|
|
|
977
977
|
const a = ve[t] ?? ve.development;
|
|
978
978
|
return e == null ? a.data ?? "" : a.other[e] ?? a.data ?? "";
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function qa() {
|
|
981
981
|
return ve;
|
|
982
982
|
}
|
|
983
983
|
function pn(e) {
|
|
984
984
|
return ve = e, ve;
|
|
985
985
|
}
|
|
986
986
|
let ze = "Australia/Melbourne", br;
|
|
987
|
-
function
|
|
987
|
+
function Ha() {
|
|
988
988
|
return br;
|
|
989
989
|
}
|
|
990
990
|
function ea(e) {
|
|
@@ -1034,12 +1034,12 @@ function ea(e) {
|
|
|
1034
1034
|
return !0;
|
|
1035
1035
|
if (I.permissions != null) {
|
|
1036
1036
|
for (var w = 0; w < I.permissions.length; w++)
|
|
1037
|
-
if (!
|
|
1037
|
+
if (!A(I.permissions[w]))
|
|
1038
1038
|
return !1;
|
|
1039
1039
|
}
|
|
1040
1040
|
return !0;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function A(S) {
|
|
1043
1043
|
const I = J(i);
|
|
1044
1044
|
if (I.userPermissions != null)
|
|
1045
1045
|
for (var m = 0; m < I.userPermissions.length; m++) {
|
|
@@ -1049,10 +1049,10 @@ function ea(e) {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
return !1;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function C(S, I, m) {
|
|
1053
1053
|
let w = !0;
|
|
1054
1054
|
return J(i).isGlobalAdmin ? !0 : (I != null && I.length > 0 && I.forEach((H) => {
|
|
1055
|
-
m == "edit" ? d(H) || (w = !1) :
|
|
1055
|
+
m == "edit" ? d(H) || (w = !1) : A(H) || (w = !1);
|
|
1056
1056
|
}), S != null && S.length > 0 && (S.some((H) => l(H)) || (w = !1)), w);
|
|
1057
1057
|
}
|
|
1058
1058
|
function U(S, I = !1) {
|
|
@@ -1060,7 +1060,7 @@ function ea(e) {
|
|
|
1060
1060
|
let w = !1;
|
|
1061
1061
|
if (m == null)
|
|
1062
1062
|
return !1;
|
|
1063
|
-
let q = m.subscriptions ?? [], H = m.permissions ?? [], ee =
|
|
1063
|
+
let q = m.subscriptions ?? [], H = m.permissions ?? [], ee = C(q, H, "view");
|
|
1064
1064
|
return ee || !I || !Re(m.children) ? ee : ((m == null ? void 0 : m.children) != null && m.children.forEach((ie) => {
|
|
1065
1065
|
U(ie, !0) && (w = !0);
|
|
1066
1066
|
}), w);
|
|
@@ -1100,7 +1100,7 @@ function ea(e) {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
function T(S) {
|
|
1102
1102
|
var m;
|
|
1103
|
-
J(i).isLoggedIn || ((m = e.demo) == null || m.endDemo(),
|
|
1103
|
+
J(i).isLoggedIn || ((m = e.demo) == null || m.endDemo(), N() && (r(), window.location.href = $(S)));
|
|
1104
1104
|
}
|
|
1105
1105
|
async function b(S, I) {
|
|
1106
1106
|
return e.getToken ?? (e.getToken = async () => {
|
|
@@ -1138,11 +1138,11 @@ function ea(e) {
|
|
|
1138
1138
|
function P() {
|
|
1139
1139
|
return i.value.timeZone ?? e.defaultTimeZone ?? ze;
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function E() {
|
|
1142
1142
|
const S = J(i);
|
|
1143
|
-
return S.isLoggedIn &&
|
|
1143
|
+
return S.isLoggedIn && N() && (r(), window.location.href = $()), S.isLoggedIn;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function N() {
|
|
1146
1146
|
const S = J(i);
|
|
1147
1147
|
if (S == null || S.expiresOn == null)
|
|
1148
1148
|
return !0;
|
|
@@ -1154,9 +1154,9 @@ function ea(e) {
|
|
|
1154
1154
|
canEdit: h,
|
|
1155
1155
|
canEditPermit: d,
|
|
1156
1156
|
canView: x,
|
|
1157
|
-
canViewPermit:
|
|
1157
|
+
canViewPermit: A,
|
|
1158
1158
|
credentials: i,
|
|
1159
|
-
doShow:
|
|
1159
|
+
doShow: C,
|
|
1160
1160
|
doShowByNav: U,
|
|
1161
1161
|
getAuthorizeUrl: $,
|
|
1162
1162
|
getTimeZone: P,
|
|
@@ -1166,7 +1166,7 @@ function ea(e) {
|
|
|
1166
1166
|
logout: r,
|
|
1167
1167
|
setAuth: g,
|
|
1168
1168
|
timeZone: le(() => i.value.timeZone ?? e.defaultTimeZone ?? ze),
|
|
1169
|
-
tryLogin:
|
|
1169
|
+
tryLogin: E
|
|
1170
1170
|
}, br;
|
|
1171
1171
|
}
|
|
1172
1172
|
const fr = {
|
|
@@ -1187,10 +1187,10 @@ const fr = {
|
|
|
1187
1187
|
warning: "#FB8C00"
|
|
1188
1188
|
};
|
|
1189
1189
|
let Sr;
|
|
1190
|
-
function
|
|
1190
|
+
function za() {
|
|
1191
1191
|
return Sr;
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function ja(e) {
|
|
1194
1194
|
const t = localStorage.getItem("cosmetics");
|
|
1195
1195
|
let a;
|
|
1196
1196
|
return t != null && t.length > 0 && (a = JSON.parse(t)), a ?? (a = {}), a.dark ?? (a.dark = e == null ? void 0 : e.dark), a.light ?? (a.light = e == null ? void 0 : e.light), a.theme ?? (a.theme = e == null ? void 0 : e.defaultTheme), {
|
|
@@ -1243,10 +1243,10 @@ function ra(e) {
|
|
|
1243
1243
|
o.colors.primary = y, r.colors.primary = y, (l = document.querySelector('meta[name="theme-color"]')) == null || l.setAttribute("content", y);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function A() {
|
|
1247
1247
|
t.value.drawer = !t.value.drawer;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function C() {
|
|
1250
1250
|
t.value.drawerStick = !t.value.drawerStick;
|
|
1251
1251
|
}
|
|
1252
1252
|
function U() {
|
|
@@ -1266,13 +1266,13 @@ function ra(e) {
|
|
|
1266
1266
|
resetCosmetics: d,
|
|
1267
1267
|
setTemporaryColor: x,
|
|
1268
1268
|
// setVuetifyInstance,
|
|
1269
|
-
toggleDrawer:
|
|
1270
|
-
toggleDrawerStick:
|
|
1269
|
+
toggleDrawer: A,
|
|
1270
|
+
toggleDrawerStick: C,
|
|
1271
1271
|
toggleLightDark: U,
|
|
1272
1272
|
undoTemporaryColor: $
|
|
1273
1273
|
}, Sr;
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const Za = {
|
|
1276
1276
|
canExportCSV: !1
|
|
1277
1277
|
};
|
|
1278
1278
|
function ta() {
|
|
@@ -1288,15 +1288,15 @@ function ta() {
|
|
|
1288
1288
|
var d = [];
|
|
1289
1289
|
for (let r = 0; r < t.length; r++) {
|
|
1290
1290
|
const T = t[r];
|
|
1291
|
-
var x = {},
|
|
1291
|
+
var x = {}, A = [];
|
|
1292
1292
|
for (let b = 0; b < h.length; b++) {
|
|
1293
1293
|
const g = h[b];
|
|
1294
|
-
var
|
|
1295
|
-
typeof g.value == "function" ?
|
|
1294
|
+
var C = null;
|
|
1295
|
+
typeof g.value == "function" ? C = g.value(T) : typeof g.value == "string" && (C = yr(T, g.value)), g.itemText != null ? x[g.header] = yr(C, g.itemText) : x[g.header] = C;
|
|
1296
1296
|
}
|
|
1297
|
-
d.push(x), Re(
|
|
1297
|
+
d.push(x), Re(A) && A.forEach((b) => {
|
|
1298
1298
|
d.push(b);
|
|
1299
|
-
}),
|
|
1299
|
+
}), A = [];
|
|
1300
1300
|
}
|
|
1301
1301
|
var U = [];
|
|
1302
1302
|
U.push(h.map((r) => r.header)), d.forEach((r) => {
|
|
@@ -1322,40 +1322,40 @@ function ta() {
|
|
|
1322
1322
|
};
|
|
1323
1323
|
}
|
|
1324
1324
|
let Er;
|
|
1325
|
-
function
|
|
1325
|
+
function Ya() {
|
|
1326
1326
|
return Er;
|
|
1327
1327
|
}
|
|
1328
1328
|
function na(e) {
|
|
1329
1329
|
function t() {
|
|
1330
|
-
var
|
|
1331
|
-
return ((
|
|
1330
|
+
var A;
|
|
1331
|
+
return ((A = i()) == null ? void 0 : A.startOf("day").toUTC().toString()) ?? "";
|
|
1332
1332
|
}
|
|
1333
1333
|
function a() {
|
|
1334
|
-
var
|
|
1335
|
-
return ((
|
|
1334
|
+
var A;
|
|
1335
|
+
return ((A = i()) == null ? void 0 : A.endOf("day").toUTC().toString()) ?? "";
|
|
1336
1336
|
}
|
|
1337
|
-
function i(
|
|
1338
|
-
return
|
|
1337
|
+
function i(A, C) {
|
|
1338
|
+
return A == null ? ce.utc().setZone(e.getTimeZone()) : C ? ce.fromFormat(A, C, { zone: e.getTimeZone() }) : ce.fromISO(A, { zone: e.getTimeZone() });
|
|
1339
1339
|
}
|
|
1340
|
-
function h(
|
|
1341
|
-
if (
|
|
1340
|
+
function h(A, C, U) {
|
|
1341
|
+
if (A == null) {
|
|
1342
1342
|
const y = ce.utc().setZone(e.getTimeZone());
|
|
1343
|
-
return
|
|
1343
|
+
return C ? y.toFormat(C) : y.toString();
|
|
1344
1344
|
}
|
|
1345
|
-
if (
|
|
1345
|
+
if (A == "Invalid DateTime")
|
|
1346
1346
|
return "";
|
|
1347
|
-
const $ = U ? ce.fromFormat(
|
|
1348
|
-
return
|
|
1347
|
+
const $ = U ? ce.fromFormat(A, U, { zone: e.getTimeZone() }) : ce.fromISO(A, { zone: e.getTimeZone() });
|
|
1348
|
+
return C ? $.toFormat(C) : $ == null ? void 0 : $.toString();
|
|
1349
1349
|
}
|
|
1350
|
-
function d(
|
|
1351
|
-
return
|
|
1350
|
+
function d(A, C) {
|
|
1351
|
+
return A == null ? ce.utc() : C ? ce.fromFormat(A, C) : ce.fromISO(A);
|
|
1352
1352
|
}
|
|
1353
|
-
function x(
|
|
1354
|
-
if (
|
|
1355
|
-
return
|
|
1353
|
+
function x(A, C, U) {
|
|
1354
|
+
if (A == null)
|
|
1355
|
+
return C ? ce.utc().toFormat(C) : ce.utc().toString();
|
|
1356
1356
|
{
|
|
1357
|
-
const $ = U ? ce.fromFormat(
|
|
1358
|
-
return
|
|
1357
|
+
const $ = U ? ce.fromFormat(A, U) : ce.fromISO(A);
|
|
1358
|
+
return C ? $.toFormat(C) : $.toString();
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
return Er = {
|
|
@@ -1368,7 +1368,7 @@ function na(e) {
|
|
|
1368
1368
|
}, Er;
|
|
1369
1369
|
}
|
|
1370
1370
|
let Ar;
|
|
1371
|
-
function
|
|
1371
|
+
function Ja() {
|
|
1372
1372
|
return Ar;
|
|
1373
1373
|
}
|
|
1374
1374
|
function aa() {
|
|
@@ -1384,7 +1384,7 @@ function aa() {
|
|
|
1384
1384
|
}, Ar;
|
|
1385
1385
|
}
|
|
1386
1386
|
var ua = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
1387
|
-
function
|
|
1387
|
+
function Ka(e) {
|
|
1388
1388
|
function t(a) {
|
|
1389
1389
|
var h;
|
|
1390
1390
|
const i = a.matched.slice().reverse().find((d) => d.meta && d.meta.title);
|
|
@@ -1400,28 +1400,28 @@ function Ja(e) {
|
|
|
1400
1400
|
updateMeta: t
|
|
1401
1401
|
};
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function Qa(e, t, a = {}) {
|
|
1404
1404
|
const {
|
|
1405
1405
|
preventDefault: i = !1,
|
|
1406
1406
|
stopPropagation: h = !1,
|
|
1407
1407
|
axis: d = "both"
|
|
1408
1408
|
} = a, x = { capture: a.capture ?? !0 };
|
|
1409
|
-
let
|
|
1409
|
+
let A = { x: 0, y: 0 }, C = { x: 0, y: 0 }, U = { x: 0, y: 0 }, $ = [], y = [], l = Y(!1);
|
|
1410
1410
|
function o(P) {
|
|
1411
1411
|
J(i) && P.preventDefault(), J(h) && P.stopPropagation();
|
|
1412
1412
|
}
|
|
1413
1413
|
function r(P) {
|
|
1414
1414
|
var m;
|
|
1415
|
-
const
|
|
1416
|
-
if (!
|
|
1415
|
+
const E = J(e);
|
|
1416
|
+
if (!E)
|
|
1417
1417
|
return;
|
|
1418
|
-
const
|
|
1419
|
-
U = { x: I.clientX, y: I.clientY },
|
|
1420
|
-
x:
|
|
1421
|
-
y:
|
|
1422
|
-
},
|
|
1423
|
-
x:
|
|
1424
|
-
y:
|
|
1418
|
+
const N = E.$el, I = P.type === "touchstart" && P.touches.length > 0 ? P.touches[0] : P;
|
|
1419
|
+
U = { x: I.clientX, y: I.clientY }, C = {
|
|
1420
|
+
x: N.offsetLeft,
|
|
1421
|
+
y: N.offsetTop
|
|
1422
|
+
}, A = {
|
|
1423
|
+
x: N.offsetLeft,
|
|
1424
|
+
y: N.offsetTop
|
|
1425
1425
|
}, ((m = a.onStart) == null ? void 0 : m.call(a, U, P)) !== !1 && (y.push(oe("mousemove", T)), y.push(oe("touchmove", T)), y.push(oe("mouseup", b)), y.push(oe("touchend", b)), o(P));
|
|
1426
1426
|
}
|
|
1427
1427
|
function T(P) {
|
|
@@ -1430,20 +1430,20 @@ function Ka(e, t, a = {}) {
|
|
|
1430
1430
|
return;
|
|
1431
1431
|
const S = P.type === "touchmove" && P.touches.length > 0 ? P.touches[0] : P;
|
|
1432
1432
|
let I = S.clientX - U.x, m = S.clientY - U.y;
|
|
1433
|
-
(d === "x" || d === "both") && (
|
|
1433
|
+
(d === "x" || d === "both") && (A.x = C.x + I), (d === "y" || d === "both") && (A.y = C.y + m), (w = a.onMove) == null || w.call(a, A, P), o(P), g(A);
|
|
1434
1434
|
}
|
|
1435
1435
|
function b(P) {
|
|
1436
|
-
var
|
|
1437
|
-
document.documentElement.style.cursor = "", y.forEach((
|
|
1438
|
-
|
|
1439
|
-
}), y.length = 0, (
|
|
1436
|
+
var E;
|
|
1437
|
+
document.documentElement.style.cursor = "", y.forEach((N) => {
|
|
1438
|
+
N();
|
|
1439
|
+
}), y.length = 0, (E = a.onEnd) == null || E.call(a, A, P), o(P);
|
|
1440
1440
|
}
|
|
1441
1441
|
function g(P) {
|
|
1442
|
-
const
|
|
1443
|
-
if (!
|
|
1442
|
+
const E = J(e);
|
|
1443
|
+
if (!E)
|
|
1444
1444
|
return;
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1445
|
+
const N = E.$el;
|
|
1446
|
+
N.style.left = `${P.x}px`, N.style.top = `${P.y}px`;
|
|
1447
1447
|
}
|
|
1448
1448
|
function _() {
|
|
1449
1449
|
if (J(l))
|
|
@@ -1451,8 +1451,8 @@ function Ka(e, t, a = {}) {
|
|
|
1451
1451
|
const P = J(t);
|
|
1452
1452
|
if (!P)
|
|
1453
1453
|
return;
|
|
1454
|
-
const
|
|
1455
|
-
|
|
1454
|
+
const E = P.$el;
|
|
1455
|
+
E.style.cursor = "move", $.push(oe(E, "mousedown", r, x)), $.push(oe(E, "touchstart", r, x)), l.value = !0;
|
|
1456
1456
|
}
|
|
1457
1457
|
function B() {
|
|
1458
1458
|
if (!J(l))
|
|
@@ -1460,9 +1460,9 @@ function Ka(e, t, a = {}) {
|
|
|
1460
1460
|
const P = J(t);
|
|
1461
1461
|
if (!P)
|
|
1462
1462
|
return;
|
|
1463
|
-
const
|
|
1464
|
-
|
|
1465
|
-
|
|
1463
|
+
const E = P.$el;
|
|
1464
|
+
E.style.cursor = "", $.forEach((N) => {
|
|
1465
|
+
N();
|
|
1466
1466
|
}), $.length = 0, l.value = !1;
|
|
1467
1467
|
}
|
|
1468
1468
|
return {
|
|
@@ -1472,7 +1472,7 @@ function Ka(e, t, a = {}) {
|
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
1474
|
let Ir;
|
|
1475
|
-
function
|
|
1475
|
+
function Xa() {
|
|
1476
1476
|
return Ir;
|
|
1477
1477
|
}
|
|
1478
1478
|
function la(e) {
|
|
@@ -1506,10 +1506,10 @@ function la(e) {
|
|
|
1506
1506
|
function x(m, w) {
|
|
1507
1507
|
return t(m, "ccc", w);
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function A(m, w) {
|
|
1510
1510
|
return t(m, "ccc dd LLL yyyy", w);
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function C(m, w) {
|
|
1513
1513
|
return t(m, "ccc dd LLL @ hh:mm a", w);
|
|
1514
1514
|
}
|
|
1515
1515
|
function U(m) {
|
|
@@ -1560,10 +1560,10 @@ function la(e) {
|
|
|
1560
1560
|
function P(m, w) {
|
|
1561
1561
|
return t(m, "dd LLL yyyy hh:mm a", w);
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function E(m, w) {
|
|
1564
1564
|
return t(m, "hh:mm a", w);
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function N(m) {
|
|
1567
1567
|
return m == null ? "" : typeof m == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: m }).toFormat("T") : typeof m == "string" ? e.dates.tzString(m, "t") : "unknown";
|
|
1568
1568
|
}
|
|
1569
1569
|
const S = {
|
|
@@ -1572,8 +1572,8 @@ function la(e) {
|
|
|
1572
1572
|
toDayDate: h,
|
|
1573
1573
|
toDayMonth: d,
|
|
1574
1574
|
toDayOfWeek: x,
|
|
1575
|
-
toDayShortDate:
|
|
1576
|
-
toDayShortDateAndTime:
|
|
1575
|
+
toDayShortDate: A,
|
|
1576
|
+
toDayShortDateAndTime: C,
|
|
1577
1577
|
toDisplayNumber: U,
|
|
1578
1578
|
toDisplayNumberOver: $,
|
|
1579
1579
|
toDisplayNumberSigned: y,
|
|
@@ -1586,8 +1586,8 @@ function la(e) {
|
|
|
1586
1586
|
toPrettyCSV: _,
|
|
1587
1587
|
toShortDate: B,
|
|
1588
1588
|
toShortDateAndTime: P,
|
|
1589
|
-
toTime:
|
|
1590
|
-
toTimeOfDay:
|
|
1589
|
+
toTime: E,
|
|
1590
|
+
toTimeOfDay: N
|
|
1591
1591
|
};
|
|
1592
1592
|
function I(m) {
|
|
1593
1593
|
if (m != null) {
|
|
@@ -1623,8 +1623,8 @@ var vt = { exports: {} };
|
|
|
1623
1623
|
var y = typeof je == "function" && je;
|
|
1624
1624
|
if (!$ && y)
|
|
1625
1625
|
return y(U, !0);
|
|
1626
|
-
if (
|
|
1627
|
-
return
|
|
1626
|
+
if (A)
|
|
1627
|
+
return A(U, !0);
|
|
1628
1628
|
var l = new Error("Cannot find module '" + U + "'");
|
|
1629
1629
|
throw l.code = "MODULE_NOT_FOUND", l;
|
|
1630
1630
|
}
|
|
@@ -1636,31 +1636,31 @@ var vt = { exports: {} };
|
|
|
1636
1636
|
}
|
|
1637
1637
|
return h[U].exports;
|
|
1638
1638
|
}
|
|
1639
|
-
for (var
|
|
1640
|
-
x(d[
|
|
1639
|
+
for (var A = typeof je == "function" && je, C = 0; C < d.length; C++)
|
|
1640
|
+
x(d[C]);
|
|
1641
1641
|
return x;
|
|
1642
1642
|
}({ 1: [function(a, i, h) {
|
|
1643
1643
|
(function(d) {
|
|
1644
|
-
var x = d.MutationObserver || d.WebKitMutationObserver,
|
|
1644
|
+
var x = d.MutationObserver || d.WebKitMutationObserver, A;
|
|
1645
1645
|
if (x) {
|
|
1646
|
-
var
|
|
1646
|
+
var C = 0, U = new x(r), $ = d.document.createTextNode("");
|
|
1647
1647
|
U.observe($, {
|
|
1648
1648
|
characterData: !0
|
|
1649
|
-
}),
|
|
1650
|
-
$.data =
|
|
1649
|
+
}), A = function() {
|
|
1650
|
+
$.data = C = ++C % 2;
|
|
1651
1651
|
};
|
|
1652
1652
|
} else if (!d.setImmediate && typeof d.MessageChannel < "u") {
|
|
1653
1653
|
var y = new d.MessageChannel();
|
|
1654
|
-
y.port1.onmessage = r,
|
|
1654
|
+
y.port1.onmessage = r, A = function() {
|
|
1655
1655
|
y.port2.postMessage(0);
|
|
1656
1656
|
};
|
|
1657
1657
|
} else
|
|
1658
|
-
"document" in d && "onreadystatechange" in d.document.createElement("script") ?
|
|
1658
|
+
"document" in d && "onreadystatechange" in d.document.createElement("script") ? A = function() {
|
|
1659
1659
|
var b = d.document.createElement("script");
|
|
1660
1660
|
b.onreadystatechange = function() {
|
|
1661
1661
|
r(), b.onreadystatechange = null, b.parentNode.removeChild(b), b = null;
|
|
1662
1662
|
}, d.document.documentElement.appendChild(b);
|
|
1663
|
-
} :
|
|
1663
|
+
} : A = function() {
|
|
1664
1664
|
setTimeout(r, 0);
|
|
1665
1665
|
};
|
|
1666
1666
|
var l, o = [];
|
|
@@ -1675,150 +1675,150 @@ var vt = { exports: {} };
|
|
|
1675
1675
|
}
|
|
1676
1676
|
i.exports = T;
|
|
1677
1677
|
function T(b) {
|
|
1678
|
-
o.push(b) === 1 && !l &&
|
|
1678
|
+
o.push(b) === 1 && !l && A();
|
|
1679
1679
|
}
|
|
1680
1680
|
}).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1681
1681
|
}, {}], 2: [function(a, i, h) {
|
|
1682
1682
|
var d = a(1);
|
|
1683
1683
|
function x() {
|
|
1684
1684
|
}
|
|
1685
|
-
var
|
|
1685
|
+
var A = {}, C = ["REJECTED"], U = ["FULFILLED"], $ = ["PENDING"];
|
|
1686
1686
|
i.exports = y;
|
|
1687
|
-
function y(
|
|
1688
|
-
if (typeof
|
|
1687
|
+
function y(E) {
|
|
1688
|
+
if (typeof E != "function")
|
|
1689
1689
|
throw new TypeError("resolver must be a function");
|
|
1690
|
-
this.state = $, this.queue = [], this.outcome = void 0,
|
|
1690
|
+
this.state = $, this.queue = [], this.outcome = void 0, E !== x && T(this, E);
|
|
1691
1691
|
}
|
|
1692
|
-
y.prototype.catch = function(
|
|
1693
|
-
return this.then(null,
|
|
1694
|
-
}, y.prototype.then = function(
|
|
1695
|
-
if (typeof
|
|
1692
|
+
y.prototype.catch = function(E) {
|
|
1693
|
+
return this.then(null, E);
|
|
1694
|
+
}, y.prototype.then = function(E, N) {
|
|
1695
|
+
if (typeof E != "function" && this.state === U || typeof N != "function" && this.state === C)
|
|
1696
1696
|
return this;
|
|
1697
1697
|
var S = new this.constructor(x);
|
|
1698
1698
|
if (this.state !== $) {
|
|
1699
|
-
var I = this.state === U ?
|
|
1699
|
+
var I = this.state === U ? E : N;
|
|
1700
1700
|
o(S, I, this.outcome);
|
|
1701
1701
|
} else
|
|
1702
|
-
this.queue.push(new l(S,
|
|
1702
|
+
this.queue.push(new l(S, E, N));
|
|
1703
1703
|
return S;
|
|
1704
1704
|
};
|
|
1705
|
-
function l(
|
|
1706
|
-
this.promise =
|
|
1705
|
+
function l(E, N, S) {
|
|
1706
|
+
this.promise = E, typeof N == "function" && (this.onFulfilled = N, this.callFulfilled = this.otherCallFulfilled), typeof S == "function" && (this.onRejected = S, this.callRejected = this.otherCallRejected);
|
|
1707
1707
|
}
|
|
1708
|
-
l.prototype.callFulfilled = function(
|
|
1709
|
-
|
|
1710
|
-
}, l.prototype.otherCallFulfilled = function(
|
|
1711
|
-
o(this.promise, this.onFulfilled,
|
|
1712
|
-
}, l.prototype.callRejected = function(
|
|
1713
|
-
|
|
1714
|
-
}, l.prototype.otherCallRejected = function(
|
|
1715
|
-
o(this.promise, this.onRejected,
|
|
1708
|
+
l.prototype.callFulfilled = function(E) {
|
|
1709
|
+
A.resolve(this.promise, E);
|
|
1710
|
+
}, l.prototype.otherCallFulfilled = function(E) {
|
|
1711
|
+
o(this.promise, this.onFulfilled, E);
|
|
1712
|
+
}, l.prototype.callRejected = function(E) {
|
|
1713
|
+
A.reject(this.promise, E);
|
|
1714
|
+
}, l.prototype.otherCallRejected = function(E) {
|
|
1715
|
+
o(this.promise, this.onRejected, E);
|
|
1716
1716
|
};
|
|
1717
|
-
function o(
|
|
1717
|
+
function o(E, N, S) {
|
|
1718
1718
|
d(function() {
|
|
1719
1719
|
var I;
|
|
1720
1720
|
try {
|
|
1721
|
-
I =
|
|
1721
|
+
I = N(S);
|
|
1722
1722
|
} catch (m) {
|
|
1723
|
-
return
|
|
1723
|
+
return A.reject(E, m);
|
|
1724
1724
|
}
|
|
1725
|
-
I ===
|
|
1725
|
+
I === E ? A.reject(E, new TypeError("Cannot resolve promise with itself")) : A.resolve(E, I);
|
|
1726
1726
|
});
|
|
1727
1727
|
}
|
|
1728
|
-
|
|
1729
|
-
var S = b(r,
|
|
1728
|
+
A.resolve = function(E, N) {
|
|
1729
|
+
var S = b(r, N);
|
|
1730
1730
|
if (S.status === "error")
|
|
1731
|
-
return
|
|
1731
|
+
return A.reject(E, S.value);
|
|
1732
1732
|
var I = S.value;
|
|
1733
1733
|
if (I)
|
|
1734
|
-
T(
|
|
1734
|
+
T(E, I);
|
|
1735
1735
|
else {
|
|
1736
|
-
|
|
1737
|
-
for (var m = -1, w =
|
|
1738
|
-
|
|
1736
|
+
E.state = U, E.outcome = N;
|
|
1737
|
+
for (var m = -1, w = E.queue.length; ++m < w; )
|
|
1738
|
+
E.queue[m].callFulfilled(N);
|
|
1739
1739
|
}
|
|
1740
|
-
return
|
|
1741
|
-
},
|
|
1742
|
-
|
|
1743
|
-
for (var S = -1, I =
|
|
1744
|
-
|
|
1745
|
-
return
|
|
1740
|
+
return E;
|
|
1741
|
+
}, A.reject = function(E, N) {
|
|
1742
|
+
E.state = C, E.outcome = N;
|
|
1743
|
+
for (var S = -1, I = E.queue.length; ++S < I; )
|
|
1744
|
+
E.queue[S].callRejected(N);
|
|
1745
|
+
return E;
|
|
1746
1746
|
};
|
|
1747
|
-
function r(
|
|
1748
|
-
var
|
|
1749
|
-
if (
|
|
1747
|
+
function r(E) {
|
|
1748
|
+
var N = E && E.then;
|
|
1749
|
+
if (E && (typeof E == "object" || typeof E == "function") && typeof N == "function")
|
|
1750
1750
|
return function() {
|
|
1751
|
-
|
|
1751
|
+
N.apply(E, arguments);
|
|
1752
1752
|
};
|
|
1753
1753
|
}
|
|
1754
|
-
function T(
|
|
1754
|
+
function T(E, N) {
|
|
1755
1755
|
var S = !1;
|
|
1756
1756
|
function I(H) {
|
|
1757
|
-
S || (S = !0,
|
|
1757
|
+
S || (S = !0, A.reject(E, H));
|
|
1758
1758
|
}
|
|
1759
1759
|
function m(H) {
|
|
1760
|
-
S || (S = !0,
|
|
1760
|
+
S || (S = !0, A.resolve(E, H));
|
|
1761
1761
|
}
|
|
1762
1762
|
function w() {
|
|
1763
|
-
|
|
1763
|
+
N(m, I);
|
|
1764
1764
|
}
|
|
1765
1765
|
var q = b(w);
|
|
1766
1766
|
q.status === "error" && I(q.value);
|
|
1767
1767
|
}
|
|
1768
|
-
function b(
|
|
1768
|
+
function b(E, N) {
|
|
1769
1769
|
var S = {};
|
|
1770
1770
|
try {
|
|
1771
|
-
S.value =
|
|
1771
|
+
S.value = E(N), S.status = "success";
|
|
1772
1772
|
} catch (I) {
|
|
1773
1773
|
S.status = "error", S.value = I;
|
|
1774
1774
|
}
|
|
1775
1775
|
return S;
|
|
1776
1776
|
}
|
|
1777
1777
|
y.resolve = g;
|
|
1778
|
-
function g(
|
|
1779
|
-
return
|
|
1778
|
+
function g(E) {
|
|
1779
|
+
return E instanceof this ? E : A.resolve(new this(x), E);
|
|
1780
1780
|
}
|
|
1781
1781
|
y.reject = _;
|
|
1782
|
-
function _(
|
|
1783
|
-
var
|
|
1784
|
-
return
|
|
1782
|
+
function _(E) {
|
|
1783
|
+
var N = new this(x);
|
|
1784
|
+
return A.reject(N, E);
|
|
1785
1785
|
}
|
|
1786
1786
|
y.all = B;
|
|
1787
|
-
function B(
|
|
1788
|
-
var
|
|
1789
|
-
if (Object.prototype.toString.call(
|
|
1787
|
+
function B(E) {
|
|
1788
|
+
var N = this;
|
|
1789
|
+
if (Object.prototype.toString.call(E) !== "[object Array]")
|
|
1790
1790
|
return this.reject(new TypeError("must be an array"));
|
|
1791
|
-
var S =
|
|
1791
|
+
var S = E.length, I = !1;
|
|
1792
1792
|
if (!S)
|
|
1793
1793
|
return this.resolve([]);
|
|
1794
1794
|
for (var m = new Array(S), w = 0, q = -1, H = new this(x); ++q < S; )
|
|
1795
|
-
ee(
|
|
1795
|
+
ee(E[q], q);
|
|
1796
1796
|
return H;
|
|
1797
1797
|
function ee(ie, Ee) {
|
|
1798
|
-
|
|
1799
|
-
I || (I = !0,
|
|
1798
|
+
N.resolve(ie).then(k, function(z) {
|
|
1799
|
+
I || (I = !0, A.reject(H, z));
|
|
1800
1800
|
});
|
|
1801
1801
|
function k(z) {
|
|
1802
|
-
m[Ee] = z, ++w === S && !I && (I = !0,
|
|
1802
|
+
m[Ee] = z, ++w === S && !I && (I = !0, A.resolve(H, m));
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
y.race = P;
|
|
1807
|
-
function P(
|
|
1808
|
-
var
|
|
1809
|
-
if (Object.prototype.toString.call(
|
|
1807
|
+
function P(E) {
|
|
1808
|
+
var N = this;
|
|
1809
|
+
if (Object.prototype.toString.call(E) !== "[object Array]")
|
|
1810
1810
|
return this.reject(new TypeError("must be an array"));
|
|
1811
|
-
var S =
|
|
1811
|
+
var S = E.length, I = !1;
|
|
1812
1812
|
if (!S)
|
|
1813
1813
|
return this.resolve([]);
|
|
1814
1814
|
for (var m = -1, w = new this(x); ++m < S; )
|
|
1815
|
-
q(
|
|
1815
|
+
q(E[m]);
|
|
1816
1816
|
return w;
|
|
1817
1817
|
function q(H) {
|
|
1818
|
-
|
|
1819
|
-
I || (I = !0,
|
|
1818
|
+
N.resolve(H).then(function(ee) {
|
|
1819
|
+
I || (I = !0, A.resolve(w, ee));
|
|
1820
1820
|
}, function(ee) {
|
|
1821
|
-
I || (I = !0,
|
|
1821
|
+
I || (I = !0, A.reject(w, ee));
|
|
1822
1822
|
});
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
@@ -1836,7 +1836,7 @@ var vt = { exports: {} };
|
|
|
1836
1836
|
if (!(n instanceof c))
|
|
1837
1837
|
throw new TypeError("Cannot call a class as a function");
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function A() {
|
|
1840
1840
|
try {
|
|
1841
1841
|
if (typeof indexedDB < "u")
|
|
1842
1842
|
return indexedDB;
|
|
@@ -1852,10 +1852,10 @@ var vt = { exports: {} };
|
|
|
1852
1852
|
return;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
var
|
|
1855
|
+
var C = A();
|
|
1856
1856
|
function U() {
|
|
1857
1857
|
try {
|
|
1858
|
-
if (!
|
|
1858
|
+
if (!C || !C.open)
|
|
1859
1859
|
return !1;
|
|
1860
1860
|
var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), c = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
|
|
1861
1861
|
return (!n || c) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
|
|
@@ -1898,15 +1898,15 @@ var vt = { exports: {} };
|
|
|
1898
1898
|
if (arguments.length && typeof arguments[arguments.length - 1] == "function")
|
|
1899
1899
|
return arguments[arguments.length - 1];
|
|
1900
1900
|
}
|
|
1901
|
-
var b = "local-forage-detect-blob-support", g = void 0, _ = {}, B = Object.prototype.toString, P = "readonly",
|
|
1902
|
-
function
|
|
1901
|
+
var b = "local-forage-detect-blob-support", g = void 0, _ = {}, B = Object.prototype.toString, P = "readonly", E = "readwrite";
|
|
1902
|
+
function N(n) {
|
|
1903
1903
|
for (var c = n.length, u = new ArrayBuffer(c), s = new Uint8Array(u), v = 0; v < c; v++)
|
|
1904
1904
|
s[v] = n.charCodeAt(v);
|
|
1905
1905
|
return u;
|
|
1906
1906
|
}
|
|
1907
1907
|
function S(n) {
|
|
1908
1908
|
return new y(function(c) {
|
|
1909
|
-
var u = n.transaction(b,
|
|
1909
|
+
var u = n.transaction(b, E), s = $([""]);
|
|
1910
1910
|
u.objectStore(b).put(s, "key"), u.onabort = function(v) {
|
|
1911
1911
|
v.preventDefault(), v.stopPropagation(), c(!1);
|
|
1912
1912
|
}, u.oncomplete = function() {
|
|
@@ -1949,7 +1949,7 @@ var vt = { exports: {} };
|
|
|
1949
1949
|
return u(n.db);
|
|
1950
1950
|
var v = [n.name];
|
|
1951
1951
|
c && v.push(n.version);
|
|
1952
|
-
var f =
|
|
1952
|
+
var f = C.open.apply(C, v);
|
|
1953
1953
|
c && (f.onupgradeneeded = function(D) {
|
|
1954
1954
|
var L = f.result;
|
|
1955
1955
|
try {
|
|
@@ -2003,7 +2003,7 @@ var vt = { exports: {} };
|
|
|
2003
2003
|
});
|
|
2004
2004
|
}
|
|
2005
2005
|
function z(n) {
|
|
2006
|
-
var c =
|
|
2006
|
+
var c = N(atob(n.data));
|
|
2007
2007
|
return $([c], { type: n.type });
|
|
2008
2008
|
}
|
|
2009
2009
|
function V(n) {
|
|
@@ -2155,7 +2155,7 @@ var vt = { exports: {} };
|
|
|
2155
2155
|
return M ? c : k(c);
|
|
2156
2156
|
}) : c;
|
|
2157
2157
|
}).then(function(M) {
|
|
2158
|
-
p(s._dbInfo,
|
|
2158
|
+
p(s._dbInfo, E, function(R, F) {
|
|
2159
2159
|
if (R)
|
|
2160
2160
|
return D(R);
|
|
2161
2161
|
try {
|
|
@@ -2181,7 +2181,7 @@ var vt = { exports: {} };
|
|
|
2181
2181
|
n = r(n);
|
|
2182
2182
|
var s = new y(function(v, f) {
|
|
2183
2183
|
u.ready().then(function() {
|
|
2184
|
-
p(u._dbInfo,
|
|
2184
|
+
p(u._dbInfo, E, function(D, L) {
|
|
2185
2185
|
if (D)
|
|
2186
2186
|
return f(D);
|
|
2187
2187
|
try {
|
|
@@ -2205,7 +2205,7 @@ var vt = { exports: {} };
|
|
|
2205
2205
|
function Xe(n) {
|
|
2206
2206
|
var c = this, u = new y(function(s, v) {
|
|
2207
2207
|
c.ready().then(function() {
|
|
2208
|
-
p(c._dbInfo,
|
|
2208
|
+
p(c._dbInfo, E, function(f, D) {
|
|
2209
2209
|
if (f)
|
|
2210
2210
|
return v(f);
|
|
2211
2211
|
try {
|
|
@@ -2327,7 +2327,7 @@ var vt = { exports: {} };
|
|
|
2327
2327
|
j._dbInfo.db = null, j._dbInfo.version = M;
|
|
2328
2328
|
}
|
|
2329
2329
|
var Q = new y(function(X, ae) {
|
|
2330
|
-
var te =
|
|
2330
|
+
var te = C.open(n.name, M);
|
|
2331
2331
|
te.onerror = function(me) {
|
|
2332
2332
|
var Fe = te.result;
|
|
2333
2333
|
Fe.close(), ae(me);
|
|
@@ -2359,7 +2359,7 @@ var vt = { exports: {} };
|
|
|
2359
2359
|
G._dbInfo.db = null;
|
|
2360
2360
|
}
|
|
2361
2361
|
var j = new y(function(Q, X) {
|
|
2362
|
-
var ae =
|
|
2362
|
+
var ae = C.deleteDatabase(n.name);
|
|
2363
2363
|
ae.onerror = function() {
|
|
2364
2364
|
var te = ae.result;
|
|
2365
2365
|
te && te.close(), X(ae.error);
|
|
@@ -3062,11 +3062,11 @@ function he() {
|
|
|
3062
3062
|
const e = mt();
|
|
3063
3063
|
return (Ze == null || Ze.config.name != e) && (Ze = gt.createInstance({ name: e })), Ze;
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3065
|
+
function Oa() {
|
|
3066
3066
|
async function e(h) {
|
|
3067
3067
|
const d = he();
|
|
3068
|
-
(await d.keys()).filter((
|
|
3069
|
-
d.removeItem(
|
|
3068
|
+
(await d.keys()).filter((C) => C.startsWith(h)).forEach((C) => {
|
|
3069
|
+
d.removeItem(C);
|
|
3070
3070
|
});
|
|
3071
3071
|
}
|
|
3072
3072
|
async function t(h) {
|
|
@@ -3086,19 +3086,19 @@ function Xa() {
|
|
|
3086
3086
|
};
|
|
3087
3087
|
}
|
|
3088
3088
|
let Je;
|
|
3089
|
-
function
|
|
3089
|
+
function pa(e) {
|
|
3090
3090
|
return Je(e)();
|
|
3091
3091
|
}
|
|
3092
3092
|
function ia(e) {
|
|
3093
3093
|
return Je(e);
|
|
3094
3094
|
}
|
|
3095
|
-
function
|
|
3096
|
-
return Je = (t) =>
|
|
3095
|
+
function fa(e) {
|
|
3096
|
+
return Je = (t) => sa({
|
|
3097
3097
|
...e,
|
|
3098
3098
|
...t
|
|
3099
3099
|
}), Je;
|
|
3100
3100
|
}
|
|
3101
|
-
function
|
|
3101
|
+
function sa(e) {
|
|
3102
3102
|
if (console.log("getting store definition"), e.storeMode == "whole-last-updated") {
|
|
3103
3103
|
if (e.api == null)
|
|
3104
3104
|
throw new Error("Must supply an api object to use store");
|
|
@@ -3108,9 +3108,9 @@ function fa(e) {
|
|
|
3108
3108
|
throw new Error("Must supply an api object to use store");
|
|
3109
3109
|
return Kr(e);
|
|
3110
3110
|
} else
|
|
3111
|
-
return
|
|
3111
|
+
return ha(e);
|
|
3112
3112
|
}
|
|
3113
|
-
const
|
|
3113
|
+
const oa = (e) => {
|
|
3114
3114
|
let t = J(e.url) ?? void 0;
|
|
3115
3115
|
if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Te(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Te(t, e.id)), e.params != null) {
|
|
3116
3116
|
t ?? (t = "");
|
|
@@ -3121,15 +3121,15 @@ const sa = (e) => {
|
|
|
3121
3121
|
}
|
|
3122
3122
|
return e.finalUrl = t, e.finalUrl ?? "";
|
|
3123
3123
|
};
|
|
3124
|
-
function
|
|
3124
|
+
function ha(e) {
|
|
3125
3125
|
return ct(e.storeName, () => {
|
|
3126
3126
|
var o;
|
|
3127
|
-
const t = ce.utc().toSeconds() / 86400, a = Y({}), i = Y({}), h = e.storageMode == "local-cache", d = e.buildUrl ?? ((o = e.api) == null ? void 0 : o.buildUrl) ??
|
|
3127
|
+
const t = ce.utc().toSeconds() / 86400, a = Y({}), i = Y({}), h = e.storageMode == "local-cache", d = e.buildUrl ?? ((o = e.api) == null ? void 0 : o.buildUrl) ?? oa;
|
|
3128
3128
|
function x(r) {
|
|
3129
3129
|
var T, b;
|
|
3130
3130
|
return `${e.storeName}_${((T = e.auth) == null ? void 0 : T.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((b = r.data) == null ? void 0 : b.id) ?? "no-item-id"}`;
|
|
3131
3131
|
}
|
|
3132
|
-
async function
|
|
3132
|
+
async function A(r) {
|
|
3133
3133
|
var _;
|
|
3134
3134
|
r.additionalUrl ?? (r.additionalUrl = "/getAll");
|
|
3135
3135
|
const T = d(r), b = `${e.storeName}_${((_ = e.auth) == null ? void 0 : _.credentials.value.userID) ?? "no-user-id"}_${T}`, g = r.refresh;
|
|
@@ -3144,16 +3144,16 @@ function oa(e) {
|
|
|
3144
3144
|
return a.value[b];
|
|
3145
3145
|
try {
|
|
3146
3146
|
let B = i.value[b];
|
|
3147
|
-
B == null && (B = new Promise(async (
|
|
3147
|
+
B == null && (B = new Promise(async (E, N) => {
|
|
3148
3148
|
var S;
|
|
3149
3149
|
try {
|
|
3150
3150
|
let I = await ((S = e.api) == null ? void 0 : S.getAll(r));
|
|
3151
3151
|
h == !0 && await he().setItem(b, {
|
|
3152
3152
|
meta: { storedOn: t },
|
|
3153
3153
|
...I
|
|
3154
|
-
}),
|
|
3154
|
+
}), E(I);
|
|
3155
3155
|
} catch (I) {
|
|
3156
|
-
|
|
3156
|
+
N(I);
|
|
3157
3157
|
} finally {
|
|
3158
3158
|
delete i.value[b];
|
|
3159
3159
|
}
|
|
@@ -3165,7 +3165,7 @@ function oa(e) {
|
|
|
3165
3165
|
throw new Error(P.message ?? "Problem");
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
|
-
async function
|
|
3168
|
+
async function C(r) {
|
|
3169
3169
|
r.additionalUrl ?? (r.additionalUrl = "/get");
|
|
3170
3170
|
const T = x(r), b = r.refresh;
|
|
3171
3171
|
if (!b && a.value[T] !== void 0)
|
|
@@ -3180,15 +3180,15 @@ function oa(e) {
|
|
|
3180
3180
|
try {
|
|
3181
3181
|
let g = i.value[T];
|
|
3182
3182
|
g == null && (g = new Promise(async (B, P) => {
|
|
3183
|
-
var
|
|
3183
|
+
var E;
|
|
3184
3184
|
try {
|
|
3185
|
-
let
|
|
3185
|
+
let N = await ((E = e.api) == null ? void 0 : E.get(r));
|
|
3186
3186
|
h == !0 && await he().setItem(T, {
|
|
3187
3187
|
meta: { storedOn: t },
|
|
3188
|
-
...
|
|
3189
|
-
}), B(
|
|
3190
|
-
} catch (
|
|
3191
|
-
P(
|
|
3188
|
+
...N
|
|
3189
|
+
}), B(N);
|
|
3190
|
+
} catch (N) {
|
|
3191
|
+
P(N);
|
|
3192
3192
|
} finally {
|
|
3193
3193
|
delete i.value[T];
|
|
3194
3194
|
}
|
|
@@ -3223,9 +3223,9 @@ function oa(e) {
|
|
|
3223
3223
|
let P = B[1];
|
|
3224
3224
|
if (P = P.data, P != null)
|
|
3225
3225
|
if (Array.isArray(P))
|
|
3226
|
-
for (let
|
|
3227
|
-
const
|
|
3228
|
-
|
|
3226
|
+
for (let E = 0; E < P.length; E++) {
|
|
3227
|
+
const N = P[E];
|
|
3228
|
+
N.id == b.id && P.splice(E, 1, { ...N, ...b });
|
|
3229
3229
|
}
|
|
3230
3230
|
else
|
|
3231
3231
|
P.id == b.id && (a.value[B[0]].data = { ...P, ...b });
|
|
@@ -3278,8 +3278,8 @@ function oa(e) {
|
|
|
3278
3278
|
}
|
|
3279
3279
|
return {
|
|
3280
3280
|
deleteItem: y,
|
|
3281
|
-
get:
|
|
3282
|
-
getAll:
|
|
3281
|
+
get: C,
|
|
3282
|
+
getAll: A,
|
|
3283
3283
|
patch: U,
|
|
3284
3284
|
post: $,
|
|
3285
3285
|
restore: l,
|
|
@@ -3290,13 +3290,13 @@ function oa(e) {
|
|
|
3290
3290
|
}
|
|
3291
3291
|
function Kr(e) {
|
|
3292
3292
|
return ct(e.storeName, () => {
|
|
3293
|
-
const t = Y(), a = Y(0), i = ce.utc().toSeconds() / 3600, h = Y(), d = Y(), x = Y({}),
|
|
3294
|
-
function
|
|
3293
|
+
const t = Y(), a = Y(0), i = ce.utc().toSeconds() / 3600, h = Y(), d = Y(), x = Y({}), A = e.storageMode == "local-cache";
|
|
3294
|
+
function C() {
|
|
3295
3295
|
var g;
|
|
3296
3296
|
return `${e.storeName}_${((g = e.auth) == null ? void 0 : g.credentials.value.userID) ?? "no-user-id"}`;
|
|
3297
3297
|
}
|
|
3298
3298
|
async function U() {
|
|
3299
|
-
|
|
3299
|
+
A == !0 && await he().setItem(C(), {
|
|
3300
3300
|
meta: d.value,
|
|
3301
3301
|
data: t.value,
|
|
3302
3302
|
count: a.value,
|
|
@@ -3304,15 +3304,15 @@ function Kr(e) {
|
|
|
3304
3304
|
});
|
|
3305
3305
|
}
|
|
3306
3306
|
function $(g) {
|
|
3307
|
-
const _ =
|
|
3307
|
+
const _ = C();
|
|
3308
3308
|
return x.value[_] || (x.value[_] = new Promise(async (B, P) => {
|
|
3309
|
-
var
|
|
3309
|
+
var E, N;
|
|
3310
3310
|
try {
|
|
3311
|
-
let S = await ((
|
|
3311
|
+
let S = await ((N = e.api) == null ? void 0 : N.getAll({
|
|
3312
3312
|
additionalUrl: "/getAll",
|
|
3313
3313
|
nav: g.nav,
|
|
3314
3314
|
params: {
|
|
3315
|
-
lastUpdate: ((
|
|
3315
|
+
lastUpdate: ((E = d.value) == null ? void 0 : E.lastUpdate) ?? Wn()
|
|
3316
3316
|
}
|
|
3317
3317
|
}));
|
|
3318
3318
|
S == null ? P(S) : (t.value ?? (t.value = []), S.data.forEach((I) => {
|
|
@@ -3331,26 +3331,26 @@ function Kr(e) {
|
|
|
3331
3331
|
})), x.value[_];
|
|
3332
3332
|
}
|
|
3333
3333
|
async function y(g) {
|
|
3334
|
-
var P,
|
|
3335
|
-
const _ =
|
|
3334
|
+
var P, E, N;
|
|
3335
|
+
const _ = C(), B = g.refresh;
|
|
3336
3336
|
if (g.nav ?? (g.nav = e.storeName), !B && t.value != null)
|
|
3337
3337
|
return {
|
|
3338
3338
|
count: (P = t.value) == null ? void 0 : P.length,
|
|
3339
3339
|
data: t.value,
|
|
3340
3340
|
filters: []
|
|
3341
3341
|
};
|
|
3342
|
-
if (!B &&
|
|
3342
|
+
if (!B && A == !0) {
|
|
3343
3343
|
const S = await he().getItem(_);
|
|
3344
3344
|
if (S != null && parseFloat(S.meta.storedOn) > i - 12)
|
|
3345
3345
|
return t.value = S.data, a.value = S.data.length, h.value = S.filters ?? [], d.value = S.meta, {
|
|
3346
|
-
count: (
|
|
3346
|
+
count: (E = t.value) == null ? void 0 : E.length,
|
|
3347
3347
|
data: t.value,
|
|
3348
3348
|
filters: []
|
|
3349
3349
|
};
|
|
3350
3350
|
}
|
|
3351
3351
|
if (e.api == null)
|
|
3352
3352
|
return {
|
|
3353
|
-
count: (
|
|
3353
|
+
count: (N = t.value) == null ? void 0 : N.length,
|
|
3354
3354
|
data: t.value ?? [],
|
|
3355
3355
|
filters: h.value
|
|
3356
3356
|
};
|
|
@@ -3363,16 +3363,16 @@ function Kr(e) {
|
|
|
3363
3363
|
}
|
|
3364
3364
|
}
|
|
3365
3365
|
async function l(g) {
|
|
3366
|
-
var P,
|
|
3367
|
-
const _ =
|
|
3366
|
+
var P, E;
|
|
3367
|
+
const _ = C(), B = g.refresh;
|
|
3368
3368
|
if (g.nav ?? (g.nav = e.storeName), !B && t.value != null)
|
|
3369
3369
|
return {
|
|
3370
|
-
data: t.value.find((
|
|
3370
|
+
data: t.value.find((N) => N.id == g.id)
|
|
3371
3371
|
};
|
|
3372
|
-
if (!B &&
|
|
3373
|
-
const
|
|
3374
|
-
if (
|
|
3375
|
-
t.value =
|
|
3372
|
+
if (!B && A == !0) {
|
|
3373
|
+
const N = await he().getItem(_);
|
|
3374
|
+
if (N != null && parseFloat(N.meta.storedOn) > i - 12) {
|
|
3375
|
+
t.value = N.data, a.value = N.data.length, h.value = N.filters ?? [], d.value = N.meta;
|
|
3376
3376
|
let S = t.value.find((I) => I.id == g.id);
|
|
3377
3377
|
if (S != null)
|
|
3378
3378
|
return { data: S };
|
|
@@ -3380,35 +3380,35 @@ function Kr(e) {
|
|
|
3380
3380
|
}
|
|
3381
3381
|
if (e.api == null)
|
|
3382
3382
|
return {
|
|
3383
|
-
data: (P = t.value) == null ? void 0 : P.find((
|
|
3383
|
+
data: (P = t.value) == null ? void 0 : P.find((N) => N.id == g.id)
|
|
3384
3384
|
};
|
|
3385
3385
|
t.value ?? (t.value = []);
|
|
3386
3386
|
try {
|
|
3387
|
-
return await $(g), { data: (
|
|
3388
|
-
} catch (
|
|
3389
|
-
let S =
|
|
3387
|
+
return await $(g), { data: (E = t.value) == null ? void 0 : E.find((N) => N.id == g.id) };
|
|
3388
|
+
} catch (N) {
|
|
3389
|
+
let S = N;
|
|
3390
3390
|
throw new Error(S.message ?? "Problem");
|
|
3391
3391
|
}
|
|
3392
3392
|
}
|
|
3393
3393
|
async function o(g) {
|
|
3394
|
-
var B, P,
|
|
3394
|
+
var B, P, E;
|
|
3395
3395
|
g.additionalUrl ?? (g.additionalUrl = "/patch"), g.nav ?? (g.nav = e.storeName);
|
|
3396
3396
|
let _;
|
|
3397
3397
|
if (e.api != null)
|
|
3398
3398
|
try {
|
|
3399
|
-
let
|
|
3400
|
-
_ = { ...g.data, ...
|
|
3401
|
-
} catch (
|
|
3402
|
-
let S =
|
|
3399
|
+
let N = await e.api.patch(g);
|
|
3400
|
+
_ = { ...g.data, ...N == null ? void 0 : N.data };
|
|
3401
|
+
} catch (N) {
|
|
3402
|
+
let S = N;
|
|
3403
3403
|
throw new Error(S.message ?? "Patch Problem");
|
|
3404
3404
|
}
|
|
3405
3405
|
else
|
|
3406
3406
|
_ = g.data;
|
|
3407
3407
|
if (_ != null) {
|
|
3408
|
-
let
|
|
3409
|
-
|
|
3408
|
+
let N = (B = t.value) == null ? void 0 : B.findIndex((S) => S.id == _.id);
|
|
3409
|
+
N != null && N >= 0 && (t.value ?? (t.value = []), (P = t.value) == null || P.splice(N, 1, _), await U());
|
|
3410
3410
|
}
|
|
3411
|
-
return (
|
|
3411
|
+
return (E = t.value) == null ? void 0 : E.find((N) => N.id == (g.id ?? g.data.id));
|
|
3412
3412
|
}
|
|
3413
3413
|
async function r(g) {
|
|
3414
3414
|
var B, P;
|
|
@@ -3416,31 +3416,31 @@ function Kr(e) {
|
|
|
3416
3416
|
let _;
|
|
3417
3417
|
if (e.api != null)
|
|
3418
3418
|
try {
|
|
3419
|
-
let
|
|
3420
|
-
_ =
|
|
3421
|
-
} catch (
|
|
3422
|
-
let
|
|
3423
|
-
throw new Error(
|
|
3419
|
+
let E = await e.api.post(g);
|
|
3420
|
+
_ = E == null ? void 0 : E.data;
|
|
3421
|
+
} catch (E) {
|
|
3422
|
+
let N = E;
|
|
3423
|
+
throw new Error(N.message ?? "Patch Problem");
|
|
3424
3424
|
}
|
|
3425
3425
|
else
|
|
3426
3426
|
_ = g.data;
|
|
3427
|
-
return _ != null && (t.value ?? (t.value = []), (B = t.value) == null || B.unshift(_), a.value += 1, await U()), (P = t.value) == null ? void 0 : P.find((
|
|
3427
|
+
return _ != null && (t.value ?? (t.value = []), (B = t.value) == null || B.unshift(_), a.value += 1, await U()), (P = t.value) == null ? void 0 : P.find((E) => E.id == (g.id ?? g.data.id));
|
|
3428
3428
|
}
|
|
3429
3429
|
async function T(g) {
|
|
3430
3430
|
var B, P;
|
|
3431
3431
|
if (g.additionalUrl ?? (g.additionalUrl = "/delete"), g.nav ?? (g.nav = e.storeName), e.api != null)
|
|
3432
3432
|
try {
|
|
3433
|
-
let
|
|
3434
|
-
if (
|
|
3435
|
-
return
|
|
3436
|
-
} catch (
|
|
3437
|
-
let
|
|
3438
|
-
throw new Error(
|
|
3433
|
+
let E = await e.api.deleteItem(g);
|
|
3434
|
+
if (E != null)
|
|
3435
|
+
return E;
|
|
3436
|
+
} catch (E) {
|
|
3437
|
+
let N = E;
|
|
3438
|
+
throw new Error(N.message ?? "Patch Problem");
|
|
3439
3439
|
}
|
|
3440
3440
|
const _ = g.id ?? g.data.id;
|
|
3441
3441
|
if (_ != null) {
|
|
3442
|
-
let
|
|
3443
|
-
|
|
3442
|
+
let E = (B = t.value) == null ? void 0 : B.findIndex((N) => N.id == _);
|
|
3443
|
+
E != null && E >= 0 && (t.value ?? (t.value = []), (P = t.value) == null || P.splice(E, 1), await U());
|
|
3444
3444
|
}
|
|
3445
3445
|
}
|
|
3446
3446
|
async function b(g) {
|
|
@@ -3472,7 +3472,7 @@ function Kr(e) {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
function eu(e, t, a) {
|
|
3474
3474
|
var Le;
|
|
3475
|
-
const i = e.storeMode ?? (a == null ? void 0 : a.storeMode) ?? "session", h = e.storageMode ?? (a == null ? void 0 : a.storageMode) ?? "local-cache", d = e.nav ?? e.nav ?? "basic", x = ta(),
|
|
3475
|
+
const i = e.storeMode ?? (a == null ? void 0 : a.storeMode) ?? "session", h = e.storageMode ?? (a == null ? void 0 : a.storageMode) ?? "local-cache", d = e.nav ?? e.nav ?? "basic", x = ta(), A = dt(), C = Xn(), U = Y(1), $ = J(e.customFilters) ?? [], y = Y([]);
|
|
3476
3476
|
let l = Y(new Array());
|
|
3477
3477
|
const o = le(() => An([
|
|
3478
3478
|
...$.filter((W) => W.name != null).map((W) => W.name),
|
|
@@ -3480,8 +3480,8 @@ function eu(e, t, a) {
|
|
|
3480
3480
|
...y.value
|
|
3481
3481
|
]).value), r = Y((e.defaultFilters ?? []).map((W) => o.value.indexOf(W))), T = le(() => qr(l, r).value.length > 0 || qr(r, l).value.length > 0), b = J(e.proxyQueryKey), g = le(() => {
|
|
3482
3482
|
var W;
|
|
3483
|
-
return J(e.proxyID) ?? (b != null ? (W =
|
|
3484
|
-
}), _ = J(e.searchQueryKey), B = Y(_ != null ? (Le =
|
|
3483
|
+
return J(e.proxyID) ?? (b != null ? (W = C.query) == null ? void 0 : W[b] : void 0);
|
|
3484
|
+
}), _ = J(e.searchQueryKey), B = Y(_ != null ? (Le = C.query) == null ? void 0 : Le[_] : void 0), P = Y(J(e.startShowingInactive) ?? !1), E = Y(J(e.sortOrder)), N = le(() => [
|
|
3485
3485
|
...e.searchProps ?? [],
|
|
3486
3486
|
...(e.headers ?? []).filter((W) => W.searchable != null && W.value != null).map((W) => W.value ?? "")
|
|
3487
3487
|
]), S = Y([]), I = De([]), m = Y([]);
|
|
@@ -3514,7 +3514,7 @@ function eu(e, t, a) {
|
|
|
3514
3514
|
id: "new",
|
|
3515
3515
|
nav: d
|
|
3516
3516
|
};
|
|
3517
|
-
W == "page" &&
|
|
3517
|
+
W == "page" && A.push({
|
|
3518
3518
|
name: re.bladeName,
|
|
3519
3519
|
params: { id: "new" }
|
|
3520
3520
|
});
|
|
@@ -3571,7 +3571,7 @@ function eu(e, t, a) {
|
|
|
3571
3571
|
function Be() {
|
|
3572
3572
|
let W = J(S);
|
|
3573
3573
|
if (W = e.onFilter ? e.onFilter(W) : W, B.value != null && B.value.length > 0) {
|
|
3574
|
-
let re = [...
|
|
3574
|
+
let re = [...N.value];
|
|
3575
3575
|
e.itemText && re.push(e.itemText), Re(re) && (W = W.filter((K) => jn(K, B.value, re)));
|
|
3576
3576
|
}
|
|
3577
3577
|
I.value = W;
|
|
@@ -3621,7 +3621,7 @@ function eu(e, t, a) {
|
|
|
3621
3621
|
id: K.id,
|
|
3622
3622
|
nav: e.nav
|
|
3623
3623
|
};
|
|
3624
|
-
re == "page" &&
|
|
3624
|
+
re == "page" && A.push({
|
|
3625
3625
|
name: O.bladeName,
|
|
3626
3626
|
params: { id: O.id }
|
|
3627
3627
|
});
|
|
@@ -3642,7 +3642,7 @@ function eu(e, t, a) {
|
|
|
3642
3642
|
Be();
|
|
3643
3643
|
}), Tr(async () => {
|
|
3644
3644
|
var W;
|
|
3645
|
-
e.eager == !0 && await xe({ deepRefresh: ((W =
|
|
3645
|
+
e.eager == !0 && await xe({ deepRefresh: ((W = C.params) == null ? void 0 : W.refresh) == "true" });
|
|
3646
3646
|
}), {
|
|
3647
3647
|
add: pe,
|
|
3648
3648
|
asyncItems: S,
|
|
@@ -3668,7 +3668,7 @@ function eu(e, t, a) {
|
|
|
3668
3668
|
showError: p,
|
|
3669
3669
|
showInactive: P,
|
|
3670
3670
|
showSearch: fe,
|
|
3671
|
-
sortOrder:
|
|
3671
|
+
sortOrder: E,
|
|
3672
3672
|
subtitleOptions: Qe,
|
|
3673
3673
|
tableHeaders: Ce,
|
|
3674
3674
|
titleOptions: Xe,
|
|
@@ -3681,7 +3681,7 @@ let hr = null, _r;
|
|
|
3681
3681
|
function ru() {
|
|
3682
3682
|
return _r;
|
|
3683
3683
|
}
|
|
3684
|
-
function
|
|
3684
|
+
function da(e) {
|
|
3685
3685
|
const t = e.defaultCacheExpiryHours ?? 7;
|
|
3686
3686
|
e.getDisplayName ?? (e.getDisplayName = (l) => {
|
|
3687
3687
|
if (l.displayName != null)
|
|
@@ -3695,35 +3695,35 @@ function ha(e) {
|
|
|
3695
3695
|
}));
|
|
3696
3696
|
function i(l) {
|
|
3697
3697
|
var o;
|
|
3698
|
-
return (o =
|
|
3698
|
+
return (o = A(l)) == null ? void 0 : o.archiveName;
|
|
3699
3699
|
}
|
|
3700
3700
|
function h(l) {
|
|
3701
3701
|
var o;
|
|
3702
|
-
return ((o =
|
|
3702
|
+
return ((o = A(l)) == null ? void 0 : o.cacheExpiryHours) ?? t;
|
|
3703
3703
|
}
|
|
3704
3704
|
function d(l) {
|
|
3705
3705
|
var o;
|
|
3706
|
-
return (o =
|
|
3706
|
+
return (o = A(l)) == null ? void 0 : o.displayName;
|
|
3707
3707
|
}
|
|
3708
3708
|
function x(l) {
|
|
3709
3709
|
var o;
|
|
3710
|
-
return (o =
|
|
3710
|
+
return (o = A(l)) == null ? void 0 : o.icon;
|
|
3711
3711
|
}
|
|
3712
|
-
function
|
|
3712
|
+
function A(l) {
|
|
3713
3713
|
return l == null ? null : typeof l != "string" ? l : ht(a, (r) => r.children).find((r) => {
|
|
3714
3714
|
var T;
|
|
3715
3715
|
return r.name == l || r.singleName == l || ((T = r.aliases) == null ? void 0 : T.some((b) => b == l));
|
|
3716
3716
|
}) ?? null;
|
|
3717
3717
|
}
|
|
3718
|
-
function
|
|
3719
|
-
const o =
|
|
3718
|
+
function C(l) {
|
|
3719
|
+
const o = A(l);
|
|
3720
3720
|
if (o == null)
|
|
3721
3721
|
return;
|
|
3722
3722
|
let r = On(o.microservice ?? "default") ?? "";
|
|
3723
3723
|
return o.path != null && (r = Te(r, o.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
|
|
3724
3724
|
}
|
|
3725
3725
|
function U(l) {
|
|
3726
|
-
const o =
|
|
3726
|
+
const o = A(l);
|
|
3727
3727
|
if ((o == null ? void 0 : o.singleName) != null)
|
|
3728
3728
|
return o.singleName;
|
|
3729
3729
|
const r = o == null ? void 0 : o.displayName;
|
|
@@ -3731,13 +3731,13 @@ function ha(e) {
|
|
|
3731
3731
|
return r.endsWith("ies") ? r.slice(0, r.length - 3) : r.endsWith("es") ? r.slice(0, r.length - 2) : r.endsWith("s") ? r.slice(0, r.length - 1) : r;
|
|
3732
3732
|
}
|
|
3733
3733
|
function $(l) {
|
|
3734
|
-
const o =
|
|
3734
|
+
const o = A(l);
|
|
3735
3735
|
return (o == null ? void 0 : o.name) ?? (o == null ? void 0 : o.singleName) ?? "store";
|
|
3736
3736
|
}
|
|
3737
3737
|
function y(l) {
|
|
3738
3738
|
if (l == null)
|
|
3739
3739
|
return;
|
|
3740
|
-
const o = typeof l == "string" ?
|
|
3740
|
+
const o = typeof l == "string" ? A(l) : l;
|
|
3741
3741
|
Or.value = o == null ? void 0 : o.background, Xr.value = (o == null ? void 0 : o.hideNavigation) !== !0, Qr.value = (o == null ? void 0 : o.hideAppBar) !== !0, hr != null && hr(), or.value = (o == null ? void 0 : o.hesitate) === !0, or.value && (hr = window.addEventListener("beforeunload", (r) => {
|
|
3742
3742
|
r.preventDefault();
|
|
3743
3743
|
}));
|
|
@@ -3752,9 +3752,9 @@ function ha(e) {
|
|
|
3752
3752
|
findCacheHours: h,
|
|
3753
3753
|
findDisplay: d,
|
|
3754
3754
|
findIcon: x,
|
|
3755
|
-
findItem:
|
|
3755
|
+
findItem: A,
|
|
3756
3756
|
findStoreName: $,
|
|
3757
|
-
findPath:
|
|
3757
|
+
findPath: C,
|
|
3758
3758
|
findSingleDisplay: U,
|
|
3759
3759
|
updateNavigationProperties: y
|
|
3760
3760
|
}, _r;
|
|
@@ -3763,7 +3763,7 @@ let Dr;
|
|
|
3763
3763
|
function tu(e) {
|
|
3764
3764
|
return Dr.usePresets(e);
|
|
3765
3765
|
}
|
|
3766
|
-
function
|
|
3766
|
+
function ma(e) {
|
|
3767
3767
|
function t(a) {
|
|
3768
3768
|
if (!a)
|
|
3769
3769
|
return {};
|
|
@@ -3780,7 +3780,7 @@ let xr;
|
|
|
3780
3780
|
function nu() {
|
|
3781
3781
|
return xr;
|
|
3782
3782
|
}
|
|
3783
|
-
function
|
|
3783
|
+
function va() {
|
|
3784
3784
|
function e(x) {
|
|
3785
3785
|
Ye.value = x.detail, mr.value = !0;
|
|
3786
3786
|
}
|
|
@@ -3810,9 +3810,9 @@ function ma() {
|
|
|
3810
3810
|
updateApp: d
|
|
3811
3811
|
}, xr;
|
|
3812
3812
|
}
|
|
3813
|
-
const
|
|
3813
|
+
const ga = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
|
|
3814
3814
|
function au(e, t = {}) {
|
|
3815
|
-
let a, i = t.handleWidth ?? 12, h = t.handleZIndex ?? 100, d = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER,
|
|
3815
|
+
let a, i = t.handleWidth ?? 12, h = t.handleZIndex ?? 100, d = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, A = t.minHeight ?? 0, C = t.maxHeight ?? Number.MAX_SAFE_INTEGER, U = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, y, l = [];
|
|
3816
3816
|
const o = Y(!1);
|
|
3817
3817
|
let r = [], T = [];
|
|
3818
3818
|
const b = Y(!1), g = Y({ x: 0, y: 0 });
|
|
@@ -3820,10 +3820,10 @@ function au(e, t = {}) {
|
|
|
3820
3820
|
function P(k) {
|
|
3821
3821
|
ne(U) && k.preventDefault(), ne($) && k.stopPropagation();
|
|
3822
3822
|
}
|
|
3823
|
-
function
|
|
3823
|
+
function E(k, z) {
|
|
3824
3824
|
l = z.map(S), l.forEach((V) => k.$el.appendChild(V));
|
|
3825
3825
|
}
|
|
3826
|
-
function
|
|
3826
|
+
function N(k) {
|
|
3827
3827
|
l.forEach((z) => k.$el.removeChild(z));
|
|
3828
3828
|
}
|
|
3829
3829
|
function S(k) {
|
|
@@ -3856,11 +3856,11 @@ function au(e, t = {}) {
|
|
|
3856
3856
|
let p = Z.clientX - g.value.x, fe = Z.clientY - g.value.y;
|
|
3857
3857
|
const de = ne(_);
|
|
3858
3858
|
if (y.includes("t")) {
|
|
3859
|
-
const ge = Math.min(
|
|
3859
|
+
const ge = Math.min(C, Math.max(A, (de.height ?? 0) - fe));
|
|
3860
3860
|
B.height = ge, B.top = (de.top ?? 0) + fe;
|
|
3861
3861
|
}
|
|
3862
3862
|
if (y.includes("b")) {
|
|
3863
|
-
const ge = Math.min(
|
|
3863
|
+
const ge = Math.min(C, Math.max(A, (de.height ?? 0) + fe));
|
|
3864
3864
|
B.height = ge;
|
|
3865
3865
|
}
|
|
3866
3866
|
if (y.includes("l")) {
|
|
@@ -3945,13 +3945,13 @@ function au(e, t = {}) {
|
|
|
3945
3945
|
if (b.value)
|
|
3946
3946
|
return;
|
|
3947
3947
|
const V = ne(e);
|
|
3948
|
-
V && (
|
|
3948
|
+
V && (E(V, k ?? ga), H(z), r.push(oe(V.$el, "mousedown", I)), r.push(oe(V.$el, "touchstart", I)), b.value = !0, a = z);
|
|
3949
3949
|
}
|
|
3950
3950
|
function Ee(k) {
|
|
3951
3951
|
if (!b.value)
|
|
3952
3952
|
return;
|
|
3953
3953
|
const z = ne(e);
|
|
3954
|
-
z && (
|
|
3954
|
+
z && (N(z), H(k), r.forEach((V) => {
|
|
3955
3955
|
V();
|
|
3956
3956
|
}), r.length = 0, b.value = !1);
|
|
3957
3957
|
}
|
|
@@ -3968,16 +3968,16 @@ function uu(e) {
|
|
|
3968
3968
|
function lu(e, t) {
|
|
3969
3969
|
const a = Y(!1), i = cn(e);
|
|
3970
3970
|
let h = d(J(e));
|
|
3971
|
-
(t == null ? void 0 : t.useTracker) !== !1 && Se(i, (
|
|
3972
|
-
a.value = d(
|
|
3971
|
+
(t == null ? void 0 : t.useTracker) !== !1 && Se(i, (A) => {
|
|
3972
|
+
a.value = d(A) != h;
|
|
3973
3973
|
}, { deep: !0 });
|
|
3974
|
-
function d(
|
|
3975
|
-
const
|
|
3974
|
+
function d(A) {
|
|
3975
|
+
const C = Lr(A);
|
|
3976
3976
|
return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((U) => {
|
|
3977
|
-
delete
|
|
3978
|
-
}) : t.propsToTrack != null && Object.keys(
|
|
3979
|
-
t.propsToTrack.some((y) => y == $) || delete
|
|
3980
|
-
})), JSON.stringify(
|
|
3977
|
+
delete C[U];
|
|
3978
|
+
}) : t.propsToTrack != null && Object.keys(A).forEach(($) => {
|
|
3979
|
+
t.propsToTrack.some((y) => y == $) || delete C[$];
|
|
3980
|
+
})), JSON.stringify(C);
|
|
3981
3981
|
}
|
|
3982
3982
|
function x() {
|
|
3983
3983
|
h = d(J(i)), a.value = !1;
|
|
@@ -3991,33 +3991,34 @@ function lu(e, t) {
|
|
|
3991
3991
|
function cu(e) {
|
|
3992
3992
|
return {
|
|
3993
3993
|
install(t, a) {
|
|
3994
|
-
var
|
|
3994
|
+
var C;
|
|
3995
3995
|
console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = a.vuetifyInstance), ra(e);
|
|
3996
|
-
const i = aa(), h =
|
|
3997
|
-
|
|
3998
|
-
const d = ea(e.auth)
|
|
3999
|
-
Jn({
|
|
3996
|
+
const i = aa(), h = da(e);
|
|
3997
|
+
ma(e), (C = e.auth).demo ?? (C.demo = i), e.auth.getAuthItem = h.findItem;
|
|
3998
|
+
const d = ea(e.auth), x = Jn({
|
|
4000
3999
|
auth: d,
|
|
4001
4000
|
findPath: h.findPath,
|
|
4002
4001
|
useBearerToken: !0
|
|
4003
|
-
})
|
|
4004
|
-
const x = na({
|
|
4002
|
+
}), A = na({
|
|
4005
4003
|
getTimeZone: d.getTimeZone
|
|
4006
4004
|
});
|
|
4007
4005
|
la({
|
|
4008
|
-
dates:
|
|
4009
|
-
}),
|
|
4006
|
+
dates: A
|
|
4007
|
+
}), va(), fa({
|
|
4008
|
+
api: x,
|
|
4009
|
+
auth: d
|
|
4010
|
+
}), pn(e.urls);
|
|
4010
4011
|
}
|
|
4011
4012
|
};
|
|
4012
4013
|
}
|
|
4013
4014
|
export {
|
|
4014
|
-
|
|
4015
|
-
|
|
4015
|
+
Wa as DataURIToBlob,
|
|
4016
|
+
Ra as addWeekday,
|
|
4016
4017
|
Te as appendUrl,
|
|
4017
4018
|
$n as capitalizeWords,
|
|
4018
|
-
|
|
4019
|
+
Ta as checkImage,
|
|
4019
4020
|
qn as containsSearch,
|
|
4020
|
-
|
|
4021
|
+
Pa as containsWeekday,
|
|
4021
4022
|
Lr as copyDeep,
|
|
4022
4023
|
Vn as copyItemByAlphabet,
|
|
4023
4024
|
Jn as createApi,
|
|
@@ -4027,70 +4028,70 @@ export {
|
|
|
4027
4028
|
na as createDates,
|
|
4028
4029
|
aa as createDemo,
|
|
4029
4030
|
la as createFilters,
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4031
|
+
da as createNavigation,
|
|
4032
|
+
va as createPWA,
|
|
4033
|
+
ma as createPresets,
|
|
4034
|
+
ha as createSessionStoreDefinition,
|
|
4035
|
+
fa as createStoreBuilder,
|
|
4035
4036
|
pn as createUrl,
|
|
4036
4037
|
Kr as createWholeLastUpdateStoreDefinition,
|
|
4037
4038
|
Gn as csvContains,
|
|
4038
|
-
|
|
4039
|
+
Za as csvDefaults,
|
|
4039
4040
|
ht as deepSelect,
|
|
4040
|
-
|
|
4041
|
-
|
|
4041
|
+
Ea as distinct,
|
|
4042
|
+
Aa as extensionExists,
|
|
4042
4043
|
Hn as extractErrorDescription,
|
|
4043
4044
|
Fn as fromCamelCase,
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4045
|
+
Ia as getAreaAround,
|
|
4046
|
+
_a as getAreaToLeft,
|
|
4047
|
+
Da as getAreaToRight,
|
|
4048
|
+
xa as getGoogleMapsLocationLine,
|
|
4049
|
+
Ca as getImageData,
|
|
4049
4050
|
ot as getLocationLine,
|
|
4050
|
-
|
|
4051
|
+
Fa as getMinDate,
|
|
4051
4052
|
Wn as getMinDateString,
|
|
4052
4053
|
zn as getRandomColor,
|
|
4053
4054
|
jn as hasSearch,
|
|
4054
|
-
|
|
4055
|
+
Ua as isArrayOfLength,
|
|
4055
4056
|
Re as isLengthyArray,
|
|
4056
4057
|
kn as isMinDate,
|
|
4057
4058
|
yr as nestedValue,
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4059
|
+
Ba as removeWeekday,
|
|
4060
|
+
$a as roundTo,
|
|
4061
|
+
Na as toCamelCase,
|
|
4062
|
+
Ga as toCompareString,
|
|
4063
|
+
ka as toggleCSV,
|
|
4064
|
+
Va as twiddleThumbs,
|
|
4064
4065
|
Bn as useActions,
|
|
4065
4066
|
Rn as useActionsTracker,
|
|
4066
4067
|
Yn as useApi,
|
|
4067
|
-
|
|
4068
|
+
Ha as useAuth,
|
|
4068
4069
|
Jr as useAuthUrl,
|
|
4069
4070
|
ta as useCSV,
|
|
4070
|
-
|
|
4071
|
+
za as useCosmetics,
|
|
4071
4072
|
On as useDataUrl,
|
|
4072
|
-
|
|
4073
|
+
Ya as useDates,
|
|
4073
4074
|
mt as useDbName,
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4075
|
+
Ja as useDemo,
|
|
4076
|
+
Ka as useDocumentMeta,
|
|
4077
|
+
Qa as useDraggable,
|
|
4078
|
+
Xa as useFilters,
|
|
4078
4079
|
Mn as useId,
|
|
4079
4080
|
eu as useList,
|
|
4080
|
-
|
|
4081
|
-
|
|
4081
|
+
Oa as useLocalCache,
|
|
4082
|
+
ja as useLocalCosmetics,
|
|
4082
4083
|
he as useLocalDb,
|
|
4083
4084
|
ru as useNavigation,
|
|
4084
4085
|
nu as usePWA,
|
|
4085
4086
|
tu as usePresets,
|
|
4086
4087
|
au as useResizable,
|
|
4087
4088
|
uu as useRules,
|
|
4088
|
-
|
|
4089
|
+
pa as useStore,
|
|
4089
4090
|
ia as useStoreDefinition,
|
|
4090
4091
|
lu as useTracker,
|
|
4091
|
-
|
|
4092
|
+
qa as useUrls,
|
|
4092
4093
|
Zn as validEmail,
|
|
4093
4094
|
ke as weekdayPairs,
|
|
4094
|
-
|
|
4095
|
-
|
|
4095
|
+
Ma as weekdayShortName,
|
|
4096
|
+
La as weekdayValue
|
|
4096
4097
|
};
|