bt-core-app 1.4.26 → 1.4.28
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 +500 -489
- package/dist/index.d.ts +24 -2
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { onMounted as
|
|
1
|
+
import { onMounted as Tr, nextTick as at, computed as le, watch as Se, unref as rn, getCurrentInstance as ut, getCurrentScope as tn, onScopeDispose as nn, ref as Y, readonly as an, customRef as un, shallowRef as De, onUpdated as ln, toValue as J, inject as lt, toRef as cn } from "vue";
|
|
2
2
|
import { DateTime as ce } from "luxon";
|
|
3
|
-
import { defineStore as
|
|
3
|
+
import { defineStore as ct } from "pinia";
|
|
4
4
|
function fn(e, t) {
|
|
5
5
|
let a, i, h;
|
|
6
6
|
const d = Y(!0), x = () => {
|
|
7
7
|
d.value = !0, h();
|
|
8
8
|
};
|
|
9
9
|
Se(e, x, { flush: "sync" });
|
|
10
|
-
const E = typeof t == "function" ? t : t.get, N = typeof t == "function" ? void 0 : t.set,
|
|
10
|
+
const E = typeof t == "function" ? t : t.get, N = typeof t == "function" ? void 0 : t.set, U = un(($, y) => (i = $, h = y, {
|
|
11
11
|
get() {
|
|
12
12
|
return d.value && (a = E(), d.value = !1), i(), a;
|
|
13
13
|
},
|
|
@@ -15,7 +15,7 @@ function fn(e, t) {
|
|
|
15
15
|
N == null || N(l);
|
|
16
16
|
}
|
|
17
17
|
}));
|
|
18
|
-
return Object.isExtensible(
|
|
18
|
+
return Object.isExtensible(U) && (U.trigger = x), U;
|
|
19
19
|
}
|
|
20
20
|
function sn(e) {
|
|
21
21
|
return tn() ? (nn(e), !0) : !1;
|
|
@@ -25,7 +25,7 @@ function ne(e) {
|
|
|
25
25
|
}
|
|
26
26
|
const on = typeof window < "u" && typeof document < "u";
|
|
27
27
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
28
|
-
const hn = Object.prototype.toString, dn = (e) => hn.call(e) === "[object Object]",
|
|
28
|
+
const hn = Object.prototype.toString, dn = (e) => hn.call(e) === "[object Object]", vr = () => {
|
|
29
29
|
};
|
|
30
30
|
function mn(e, t) {
|
|
31
31
|
function a(...i) {
|
|
@@ -35,24 +35,24 @@ function mn(e, t) {
|
|
|
35
35
|
}
|
|
36
36
|
return a;
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const it = (e) => e();
|
|
39
39
|
function vn(e, t = {}) {
|
|
40
|
-
let a, i, h =
|
|
40
|
+
let a, i, h = vr;
|
|
41
41
|
const d = (E) => {
|
|
42
|
-
clearTimeout(E), h(), h =
|
|
42
|
+
clearTimeout(E), h(), h = vr;
|
|
43
43
|
};
|
|
44
44
|
return (E) => {
|
|
45
|
-
const N = ne(e),
|
|
46
|
-
return a && d(a), N <= 0 ||
|
|
47
|
-
h = t.rejectOnCancel ? y : $,
|
|
45
|
+
const N = ne(e), U = ne(t.maxWait);
|
|
46
|
+
return a && d(a), N <= 0 || U !== void 0 && U <= 0 ? (i && (d(i), i = null), Promise.resolve(E())) : new Promise(($, y) => {
|
|
47
|
+
h = t.rejectOnCancel ? y : $, U && !i && (i = setTimeout(() => {
|
|
48
48
|
a && d(a), i = null, $(E());
|
|
49
|
-
},
|
|
49
|
+
}, U)), a = setTimeout(() => {
|
|
50
50
|
i && d(i), i = null, $(E());
|
|
51
51
|
}, N);
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
function gn(e =
|
|
55
|
+
function gn(e = it) {
|
|
56
56
|
const t = Y(!0);
|
|
57
57
|
function a() {
|
|
58
58
|
t.value = !1;
|
|
@@ -66,11 +66,11 @@ function gn(e = ct) {
|
|
|
66
66
|
return { isActive: an(t), pause: a, resume: i, eventFilter: h };
|
|
67
67
|
}
|
|
68
68
|
function yn(e) {
|
|
69
|
-
return e ||
|
|
69
|
+
return e || ut();
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function ft(e, t, a = {}) {
|
|
72
72
|
const {
|
|
73
|
-
eventFilter: i =
|
|
73
|
+
eventFilter: i = it,
|
|
74
74
|
...h
|
|
75
75
|
} = a;
|
|
76
76
|
return Se(
|
|
@@ -87,7 +87,7 @@ function wn(e, t, a = {}) {
|
|
|
87
87
|
eventFilter: i,
|
|
88
88
|
...h
|
|
89
89
|
} = a, { eventFilter: d, pause: x, resume: E, isActive: N } = gn(i);
|
|
90
|
-
return { stop:
|
|
90
|
+
return { stop: ft(
|
|
91
91
|
e,
|
|
92
92
|
t,
|
|
93
93
|
{
|
|
@@ -96,13 +96,13 @@ function wn(e, t, a = {}) {
|
|
|
96
96
|
}
|
|
97
97
|
), pause: x, resume: E, isActive: N };
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
yn() ?
|
|
99
|
+
function Cr(e, t = !0, a) {
|
|
100
|
+
yn() ? Tr(e, a) : t ? e() : at(e);
|
|
101
101
|
}
|
|
102
102
|
function bn(e, t) {
|
|
103
103
|
return e === t;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function qr(...e) {
|
|
106
106
|
var t;
|
|
107
107
|
const a = e[0], i = e[1];
|
|
108
108
|
let h = (t = e[2]) != null ? t : bn;
|
|
@@ -124,7 +124,7 @@ function An(e, t) {
|
|
|
124
124
|
return t ? En(a, t) : Sn(a);
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
-
function
|
|
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
130
|
const E = Array.from({ length: i.length }), N = [];
|
|
@@ -137,8 +137,8 @@ function ft(e, t, a) {
|
|
|
137
137
|
}
|
|
138
138
|
y || N.push($);
|
|
139
139
|
}
|
|
140
|
-
const
|
|
141
|
-
t(h, i, N,
|
|
140
|
+
const U = i.filter(($, y) => !E[y]);
|
|
141
|
+
t(h, i, N, U, x), i = [...h];
|
|
142
142
|
}, a);
|
|
143
143
|
}
|
|
144
144
|
function In(e, t, a = {}) {
|
|
@@ -147,7 +147,7 @@ function In(e, t, a = {}) {
|
|
|
147
147
|
maxWait: h = void 0,
|
|
148
148
|
...d
|
|
149
149
|
} = a;
|
|
150
|
-
return
|
|
150
|
+
return ft(
|
|
151
151
|
e,
|
|
152
152
|
t,
|
|
153
153
|
{
|
|
@@ -156,21 +156,21 @@ function In(e, t, a = {}) {
|
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Nr(e) {
|
|
160
160
|
var t;
|
|
161
161
|
const a = ne(e);
|
|
162
162
|
return (t = a == null ? void 0 : a.$el) != null ? t : a;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const gr = on ? window : void 0;
|
|
165
165
|
function oe(...e) {
|
|
166
166
|
let t, a, i, h;
|
|
167
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([a, i, h] = e, t =
|
|
168
|
-
return
|
|
167
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([a, i, h] = e, t = gr) : [t, a, i, h] = e, !t)
|
|
168
|
+
return vr;
|
|
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
|
}, E = ($, y, l, o) => ($.addEventListener(y, l, o), () => $.removeEventListener(y, l, o)), N = Se(
|
|
173
|
-
() => [
|
|
173
|
+
() => [Nr(t), ne(h)],
|
|
174
174
|
([$, y]) => {
|
|
175
175
|
if (x(), !$)
|
|
176
176
|
return;
|
|
@@ -180,10 +180,10 @@ function oe(...e) {
|
|
|
180
180
|
);
|
|
181
181
|
},
|
|
182
182
|
{ immediate: !0, flush: "post" }
|
|
183
|
-
),
|
|
183
|
+
), U = () => {
|
|
184
184
|
N(), x();
|
|
185
185
|
};
|
|
186
|
-
return sn(
|
|
186
|
+
return sn(U), U;
|
|
187
187
|
}
|
|
188
188
|
const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, qe = "__vueuse_ssr_handlers__", _n = /* @__PURE__ */ Dn();
|
|
189
189
|
function Dn() {
|
|
@@ -228,17 +228,17 @@ const Cn = {
|
|
|
228
228
|
read: (e) => new Date(e),
|
|
229
229
|
write: (e) => e.toISOString()
|
|
230
230
|
}
|
|
231
|
-
},
|
|
232
|
-
function
|
|
231
|
+
}, Hr = "vueuse-storage";
|
|
232
|
+
function zr(e, t, a, i = {}) {
|
|
233
233
|
var h;
|
|
234
234
|
const {
|
|
235
235
|
flush: d = "pre",
|
|
236
236
|
deep: x = !0,
|
|
237
237
|
listenToStorageChanges: E = !0,
|
|
238
238
|
writeDefaults: N = !0,
|
|
239
|
-
mergeDefaults:
|
|
239
|
+
mergeDefaults: U = !1,
|
|
240
240
|
shallow: $,
|
|
241
|
-
window: y =
|
|
241
|
+
window: y = gr,
|
|
242
242
|
eventFilter: l,
|
|
243
243
|
onError: o = (w) => {
|
|
244
244
|
console.error(w);
|
|
@@ -249,23 +249,23 @@ function Hr(e, t, a, i = {}) {
|
|
|
249
249
|
try {
|
|
250
250
|
a = xn("getDefaultStorage", () => {
|
|
251
251
|
var w;
|
|
252
|
-
return (w =
|
|
252
|
+
return (w = gr) == null ? void 0 : w.localStorage;
|
|
253
253
|
})();
|
|
254
254
|
} catch (w) {
|
|
255
255
|
o(w);
|
|
256
256
|
}
|
|
257
257
|
if (!a)
|
|
258
258
|
return T;
|
|
259
|
-
const b = ne(t), g = Tn(b), _ = (h = i.serializer) != null ? h : Cn[g], { pause:
|
|
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
|
() => C(T.value),
|
|
262
262
|
{ flush: d, deep: x, eventFilter: l }
|
|
263
263
|
);
|
|
264
|
-
y && E &&
|
|
265
|
-
oe(y, "storage", I), oe(y,
|
|
264
|
+
y && E && Cr(() => {
|
|
265
|
+
oe(y, "storage", I), oe(y, Hr, m), r && I();
|
|
266
266
|
}), r || I();
|
|
267
267
|
function A(w, q) {
|
|
268
|
-
y && y.dispatchEvent(new CustomEvent(
|
|
268
|
+
y && y.dispatchEvent(new CustomEvent(Hr, {
|
|
269
269
|
detail: {
|
|
270
270
|
key: e,
|
|
271
271
|
oldValue: w,
|
|
@@ -291,9 +291,9 @@ function Hr(e, t, a, i = {}) {
|
|
|
291
291
|
const q = w ? w.newValue : a.getItem(e);
|
|
292
292
|
if (q == null)
|
|
293
293
|
return N && b != null && a.setItem(e, _.write(b)), b;
|
|
294
|
-
if (!w &&
|
|
294
|
+
if (!w && U) {
|
|
295
295
|
const H = _.read(q);
|
|
296
|
-
return typeof
|
|
296
|
+
return typeof U == "function" ? U(H, b) : g === "object" && !Array.isArray(H) ? { ...b, ...H } : H;
|
|
297
297
|
} else
|
|
298
298
|
return typeof q != "string" ? q : _.read(q);
|
|
299
299
|
}
|
|
@@ -304,13 +304,13 @@ function Hr(e, t, a, i = {}) {
|
|
|
304
304
|
return;
|
|
305
305
|
}
|
|
306
306
|
if (!(w && w.key !== e)) {
|
|
307
|
-
|
|
307
|
+
B();
|
|
308
308
|
try {
|
|
309
309
|
(w == null ? void 0 : w.newValue) !== _.write(T.value) && (T.value = S(w));
|
|
310
310
|
} catch (q) {
|
|
311
311
|
o(q);
|
|
312
312
|
} finally {
|
|
313
|
-
w ?
|
|
313
|
+
w ? at(P) : P();
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -321,18 +321,18 @@ function Hr(e, t, a, i = {}) {
|
|
|
321
321
|
return T;
|
|
322
322
|
}
|
|
323
323
|
function Nn(e) {
|
|
324
|
-
const t =
|
|
324
|
+
const t = ut(), a = fn(
|
|
325
325
|
() => null,
|
|
326
|
-
() => e ?
|
|
326
|
+
() => e ? Nr(e) : t.proxy.$el
|
|
327
327
|
);
|
|
328
|
-
return ln(a.trigger),
|
|
328
|
+
return ln(a.trigger), Tr(a.trigger), a;
|
|
329
329
|
}
|
|
330
330
|
function Ln(e = Nn()) {
|
|
331
331
|
const t = De(), a = () => {
|
|
332
|
-
const i =
|
|
332
|
+
const i = Nr(e);
|
|
333
333
|
i && (t.value = i.parentElement);
|
|
334
334
|
};
|
|
335
|
-
return
|
|
335
|
+
return Cr(a), Se(() => ne(e), a), t;
|
|
336
336
|
}
|
|
337
337
|
function Mn(e) {
|
|
338
338
|
return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, Pn);
|
|
@@ -356,7 +356,7 @@ function Rn(e) {
|
|
|
356
356
|
function N(y) {
|
|
357
357
|
y != null && (i.value = y.toString());
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function U() {
|
|
360
360
|
i.value = void 0;
|
|
361
361
|
}
|
|
362
362
|
async function $(y, l) {
|
|
@@ -374,19 +374,19 @@ function Rn(e) {
|
|
|
374
374
|
x(r);
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
return
|
|
377
|
+
return st(t, (y) => {
|
|
378
378
|
a.value = y.length > 0 ? y[0].msg : void 0;
|
|
379
379
|
}, { deep: !0 }), {
|
|
380
380
|
actionErrorMsg: i,
|
|
381
381
|
actionLoadingMsg: a,
|
|
382
382
|
actionCompleteMsg: h,
|
|
383
|
-
clearErrors:
|
|
383
|
+
clearErrors: U,
|
|
384
384
|
doAction: $,
|
|
385
385
|
isLoading: d,
|
|
386
386
|
logError: N
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Bn(e) {
|
|
390
390
|
const { actionErrorMsg: t, actionLoadingMsg: a, clearErrors: i, isLoading: h, doAction: d, logError: x } = Rn(e);
|
|
391
391
|
function E(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);
|
|
@@ -418,7 +418,7 @@ function Un(e) {
|
|
|
418
418
|
throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function U(r) {
|
|
422
422
|
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 these items?" : void 0);
|
|
423
423
|
const T = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
424
424
|
return r.nav != null && T != null && (r.onGetAsync ?? (r.onGetAsync = () => T().getAll(r))), d(async () => {
|
|
@@ -485,7 +485,7 @@ function Un(e) {
|
|
|
485
485
|
clearErrors: i,
|
|
486
486
|
deleteItem: E,
|
|
487
487
|
doAction: d,
|
|
488
|
-
getAllItems:
|
|
488
|
+
getAllItems: U,
|
|
489
489
|
getItem: N,
|
|
490
490
|
isLoading: h,
|
|
491
491
|
logError: x,
|
|
@@ -494,7 +494,7 @@ function Un(e) {
|
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
496
|
var He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
497
|
-
function
|
|
497
|
+
function Un(e) {
|
|
498
498
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
499
499
|
}
|
|
500
500
|
var $e = function() {
|
|
@@ -512,11 +512,11 @@ var $e = function() {
|
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
if (h.length === 1) {
|
|
515
|
-
var E = h, N = d.ignoreCase ? t : e,
|
|
515
|
+
var E = h, N = 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
|
|
519
|
+
return U(N(E(y)), N(E(l)));
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
const $ = { "-1": "", desc: "" };
|
|
@@ -525,8 +525,8 @@ var $e = function() {
|
|
|
525
525
|
} : h;
|
|
526
526
|
}
|
|
527
527
|
function i(h, d) {
|
|
528
|
-
var x = typeof this == "function" && !this.firstBy ? this : !1, E = a(h, d), N = x ? function(
|
|
529
|
-
return x(
|
|
528
|
+
var x = typeof this == "function" && !this.firstBy ? this : !1, E = a(h, d), N = x ? function(U, $) {
|
|
529
|
+
return x(U, $) || E(U, $);
|
|
530
530
|
} : E;
|
|
531
531
|
return N.thenBy = i, N;
|
|
532
532
|
}
|
|
@@ -544,10 +544,10 @@ function Te(e, t) {
|
|
|
544
544
|
while (i.startsWith("/"));
|
|
545
545
|
return `${a}/${i}`;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function Sa(e) {
|
|
548
548
|
return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Ea(e = "blitzItExtensionExists") {
|
|
551
551
|
try {
|
|
552
552
|
var t = document.getElementById(e);
|
|
553
553
|
return t != null;
|
|
@@ -555,7 +555,7 @@ function ba(e = "blitzItExtensionExists") {
|
|
|
555
555
|
return console.log(Hn(a)), !1;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function Aa(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 Sa(e, t) {
|
|
|
563
563
|
{ lat: e.lat + t, lng: e.lng + t }
|
|
564
564
|
];
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Ia(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 Ea(e, t) {
|
|
|
571
571
|
{ lat: e.lat, lng: e.lng + t }
|
|
572
572
|
];
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function _a(e, t) {
|
|
575
575
|
return [
|
|
576
576
|
{ lat: e.lat, lng: e.lng + t },
|
|
577
577
|
{ lat: e.lat, lng: e.lng - t },
|
|
@@ -579,11 +579,11 @@ function Aa(e, t) {
|
|
|
579
579
|
{ lat: e.lat + t * 2, lng: e.lng + t }
|
|
580
580
|
];
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
var t =
|
|
582
|
+
function Da(e) {
|
|
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
|
}
|
|
586
|
-
function
|
|
586
|
+
function ot(e, t = !1) {
|
|
587
587
|
if (e == null)
|
|
588
588
|
return "";
|
|
589
589
|
if (typeof e != "object")
|
|
@@ -591,13 +591,13 @@ function st(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 xa(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 Ta(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 Da(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 Ca(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 Na(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 La(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 Ma(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 Pa(e, t) {
|
|
655
655
|
if (t == null)
|
|
656
656
|
return e;
|
|
657
657
|
let a = e ?? "";
|
|
@@ -659,13 +659,13 @@ function La(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 Ra(e, t) {
|
|
663
663
|
if (t == null || e == null)
|
|
664
664
|
return e;
|
|
665
665
|
let a = e ?? "", i = t.replaceAll(" ", "").toLowerCase(), h = [...new Set(a.replaceAll(" ", "").toLowerCase().split(",").map((d) => ke.find((x) => x.values.some((E) => E == d && E != 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 Ba(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 Ua() {
|
|
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 Fa(e, t) {
|
|
684
684
|
let a = "1", i = 0;
|
|
685
685
|
if (i < t)
|
|
686
686
|
do
|
|
@@ -689,7 +689,7 @@ function Ua(e, t) {
|
|
|
689
689
|
let h = Number.parseInt(a);
|
|
690
690
|
return Math.round(e * h) / h;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function $a(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
|
}
|
|
@@ -701,12 +701,12 @@ function Gn(e, t) {
|
|
|
701
701
|
var a = e.split(","), i = t.split(",");
|
|
702
702
|
return a.some((h) => i.some((d) => d == h));
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function Lr(e) {
|
|
705
705
|
if (!e)
|
|
706
706
|
return e;
|
|
707
707
|
let t, a = Array.isArray(e) ? [] : {};
|
|
708
708
|
for (const i in e)
|
|
709
|
-
t = e[i], a[i] = typeof t == "object" ?
|
|
709
|
+
t = e[i], a[i] = typeof t == "object" ? Lr(t) : t;
|
|
710
710
|
return a;
|
|
711
711
|
}
|
|
712
712
|
function Vn(e) {
|
|
@@ -718,17 +718,17 @@ function Vn(e) {
|
|
|
718
718
|
function qn(e, t) {
|
|
719
719
|
return t == null ? !0 : e == null ? !1 : e.toLowerCase().includes(t.toLowerCase());
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function ht(e, t = (a) => a) {
|
|
722
722
|
if (e == null)
|
|
723
723
|
return [];
|
|
724
724
|
const a = Array.isArray(e) ? e : t(e);
|
|
725
725
|
return Re(a) ? [...a.reduce((i, h) => {
|
|
726
726
|
i.push(h);
|
|
727
|
-
const d =
|
|
727
|
+
const d = ht(h, t);
|
|
728
728
|
return Re(d) && i.push(...d), i;
|
|
729
729
|
}, [])] : [];
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function ka(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);
|
|
@@ -758,21 +758,21 @@ function jn(e, t, a) {
|
|
|
758
758
|
return !1;
|
|
759
759
|
for (let h = 0; h < a.length; h++) {
|
|
760
760
|
const d = a[h];
|
|
761
|
-
var i =
|
|
761
|
+
var i = yr(e, d);
|
|
762
762
|
if (i != null && typeof i == "string" && qn(i, t))
|
|
763
763
|
return !0;
|
|
764
764
|
}
|
|
765
765
|
return !1;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function Wa(e) {
|
|
768
768
|
return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function Ga(e = 2e3) {
|
|
771
771
|
return new Promise((t) => {
|
|
772
772
|
setTimeout(() => t(), e);
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function yr(e, t) {
|
|
776
776
|
if (e == null || e == null || !t)
|
|
777
777
|
return null;
|
|
778
778
|
var a = t.split(".");
|
|
@@ -785,9 +785,9 @@ function gr(e, t) {
|
|
|
785
785
|
function Zn(e) {
|
|
786
786
|
return e ? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) : !1;
|
|
787
787
|
}
|
|
788
|
-
let
|
|
788
|
+
let wr;
|
|
789
789
|
function Yn() {
|
|
790
|
-
return
|
|
790
|
+
return wr;
|
|
791
791
|
}
|
|
792
792
|
function Jn(e) {
|
|
793
793
|
const t = (e == null ? void 0 : e.buildHeaders) ?? x, a = (e == null ? void 0 : e.buildQuery) ?? h, i = (e == null ? void 0 : e.buildUrl) ?? d;
|
|
@@ -820,14 +820,14 @@ function Jn(e) {
|
|
|
820
820
|
cache: "no-cache",
|
|
821
821
|
headers: g
|
|
822
822
|
}), !_.ok) {
|
|
823
|
-
let
|
|
824
|
-
throw new Error(
|
|
823
|
+
let B = await _.text();
|
|
824
|
+
throw new Error(B ?? _.statusText ?? "Get error");
|
|
825
825
|
}
|
|
826
826
|
return T ? await _.text() : r ? await _.json() : _;
|
|
827
|
-
} catch (
|
|
827
|
+
} catch (B) {
|
|
828
828
|
if (!o)
|
|
829
829
|
return _;
|
|
830
|
-
throw new Error(
|
|
830
|
+
throw new Error(B);
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
async function N(l) {
|
|
@@ -842,17 +842,17 @@ function Jn(e) {
|
|
|
842
842
|
cache: "no-cache",
|
|
843
843
|
headers: g
|
|
844
844
|
}), !_.ok) {
|
|
845
|
-
let
|
|
846
|
-
throw new Error(
|
|
845
|
+
let B = await _.text();
|
|
846
|
+
throw new Error(B ?? _.statusText ?? "Get all error");
|
|
847
847
|
}
|
|
848
848
|
return T ? await _.text() : r ? await _.json() : _;
|
|
849
|
-
} catch (
|
|
849
|
+
} catch (B) {
|
|
850
850
|
if (!o)
|
|
851
851
|
return _;
|
|
852
|
-
throw new Error(
|
|
852
|
+
throw new Error(B);
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
|
-
async function
|
|
855
|
+
async function U(l) {
|
|
856
856
|
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;
|
|
857
857
|
let b = l.finalUrl, g = l.headers;
|
|
858
858
|
b == null && (b = i(l)), l.overrideHeaders !== !0 && (g = t(l)), console.log(`Post to ${b}`);
|
|
@@ -865,16 +865,16 @@ function Jn(e) {
|
|
|
865
865
|
headers: g,
|
|
866
866
|
body: JSON.stringify(l.data)
|
|
867
867
|
}), !_.ok) {
|
|
868
|
-
let
|
|
869
|
-
throw new Error(
|
|
868
|
+
let B = await _.text();
|
|
869
|
+
throw new Error(B ?? _.statusText ?? "Post error!");
|
|
870
870
|
}
|
|
871
871
|
return T ? await _.text() : r ? await _.json() : _;
|
|
872
|
-
} catch (
|
|
872
|
+
} catch (B) {
|
|
873
873
|
if (!o)
|
|
874
874
|
return _;
|
|
875
875
|
if (_.status == 200)
|
|
876
876
|
return;
|
|
877
|
-
throw new Error(
|
|
877
|
+
throw new Error(B);
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
async function $(l) {
|
|
@@ -890,16 +890,16 @@ function Jn(e) {
|
|
|
890
890
|
headers: g,
|
|
891
891
|
body: JSON.stringify(l.data)
|
|
892
892
|
}), !_.ok) {
|
|
893
|
-
let
|
|
894
|
-
throw new Error(
|
|
893
|
+
let B = await _.text();
|
|
894
|
+
throw new Error(B ?? _.statusText ?? "Patch error!");
|
|
895
895
|
}
|
|
896
896
|
return T ? await _.text() : r ? await _.json() : _;
|
|
897
|
-
} catch (
|
|
897
|
+
} catch (B) {
|
|
898
898
|
if (!o)
|
|
899
899
|
return _;
|
|
900
900
|
if (_.status == 200)
|
|
901
901
|
return;
|
|
902
|
-
throw new Error(
|
|
902
|
+
throw new Error(B);
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
905
|
async function y(l) {
|
|
@@ -921,7 +921,7 @@ function Jn(e) {
|
|
|
921
921
|
throw new Error(g);
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
return
|
|
924
|
+
return wr = {
|
|
925
925
|
buildHeaders: t,
|
|
926
926
|
buildQuery: a,
|
|
927
927
|
buildUrl: i,
|
|
@@ -929,66 +929,66 @@ function Jn(e) {
|
|
|
929
929
|
get: E,
|
|
930
930
|
getAll: N,
|
|
931
931
|
patch: $,
|
|
932
|
-
post:
|
|
933
|
-
},
|
|
932
|
+
post: U
|
|
933
|
+
}, wr;
|
|
934
934
|
}
|
|
935
935
|
/*!
|
|
936
936
|
* vue-router v4.3.0
|
|
937
937
|
* (c) 2024 Eduardo San Martin Morote
|
|
938
938
|
* @license MIT
|
|
939
939
|
*/
|
|
940
|
-
var
|
|
940
|
+
var jr;
|
|
941
941
|
(function(e) {
|
|
942
942
|
e.pop = "pop", e.push = "push";
|
|
943
|
-
})(
|
|
944
|
-
var
|
|
943
|
+
})(jr || (jr = {}));
|
|
944
|
+
var Zr;
|
|
945
945
|
(function(e) {
|
|
946
946
|
e.back = "back", e.forward = "forward", e.unknown = "";
|
|
947
|
-
})(
|
|
947
|
+
})(Zr || (Zr = {}));
|
|
948
948
|
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
949
|
-
var
|
|
949
|
+
var Yr;
|
|
950
950
|
(function(e) {
|
|
951
951
|
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
|
952
|
-
})(
|
|
952
|
+
})(Yr || (Yr = {}));
|
|
953
953
|
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
954
954
|
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
955
955
|
const Kn = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), Qn = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
956
956
|
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
957
|
-
function
|
|
958
|
-
return
|
|
957
|
+
function dt() {
|
|
958
|
+
return lt(Kn);
|
|
959
959
|
}
|
|
960
960
|
function Xn() {
|
|
961
|
-
return
|
|
961
|
+
return lt(Qn);
|
|
962
962
|
}
|
|
963
|
-
var
|
|
963
|
+
var Mr = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
964
964
|
let ve;
|
|
965
|
-
function
|
|
966
|
-
const e =
|
|
965
|
+
function mt() {
|
|
966
|
+
const e = Mr.NODE_ENV;
|
|
967
967
|
return ve == null ? e : (ve[e] ?? ve.development).localDbName ?? e;
|
|
968
968
|
}
|
|
969
|
-
function
|
|
970
|
-
const e =
|
|
969
|
+
function Jr() {
|
|
970
|
+
const e = Mr.NODE_ENV;
|
|
971
971
|
return ve == null ? "" : (ve[e] ?? ve.development).auth ?? "";
|
|
972
972
|
}
|
|
973
973
|
function On(e) {
|
|
974
|
-
const t =
|
|
974
|
+
const t = Mr.NODE_ENV;
|
|
975
975
|
if (ve == null)
|
|
976
976
|
return "";
|
|
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 Va() {
|
|
981
981
|
return ve;
|
|
982
982
|
}
|
|
983
983
|
function pn(e) {
|
|
984
984
|
return ve = e, ve;
|
|
985
985
|
}
|
|
986
|
-
let ze = "Australia/Melbourne",
|
|
987
|
-
function
|
|
988
|
-
return
|
|
986
|
+
let ze = "Australia/Melbourne", br;
|
|
987
|
+
function qa() {
|
|
988
|
+
return br;
|
|
989
989
|
}
|
|
990
990
|
function ea(e) {
|
|
991
|
-
const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a", a =
|
|
991
|
+
const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a", a = zr("auth-credentials-state", Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11)), i = zr("auth-credentials", {});
|
|
992
992
|
function h(S) {
|
|
993
993
|
if (S == null)
|
|
994
994
|
return !0;
|
|
@@ -1055,19 +1055,19 @@ function ea(e) {
|
|
|
1055
1055
|
m == "edit" ? d(H) || (w = !1) : E(H) || (w = !1);
|
|
1056
1056
|
}), S != null && S.length > 0 && (S.some((H) => l(H)) || (w = !1)), w);
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function U(S, I = !1) {
|
|
1059
1059
|
var m = e.getAuthItem != null ? e.getAuthItem(S) : null;
|
|
1060
1060
|
let w = !1;
|
|
1061
1061
|
if (m == null)
|
|
1062
1062
|
return !1;
|
|
1063
1063
|
let q = m.subscriptions ?? [], H = m.permissions ?? [], ee = N(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);
|
|
1067
1067
|
}
|
|
1068
1068
|
function $(S) {
|
|
1069
1069
|
return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (I, m) => {
|
|
1070
|
-
const w = Te(
|
|
1070
|
+
const w = Te(Jr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${m}`);
|
|
1071
1071
|
return I ? `${w}&redirect_path=${I}` : w;
|
|
1072
1072
|
}), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(S, a.value) ?? "" : "";
|
|
1073
1073
|
}
|
|
@@ -1093,8 +1093,8 @@ function ea(e) {
|
|
|
1093
1093
|
return JSON.parse(w);
|
|
1094
1094
|
}
|
|
1095
1095
|
function r(S) {
|
|
1096
|
-
if (i.value = void 0,
|
|
1097
|
-
const I =
|
|
1096
|
+
if (i.value = void 0, B(), S != null) {
|
|
1097
|
+
const I = dt();
|
|
1098
1098
|
I.currentRoute.value.name != S && I.push({ name: S });
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
@@ -1110,7 +1110,7 @@ function ea(e) {
|
|
|
1110
1110
|
if (w != a.value)
|
|
1111
1111
|
throw new Error("state does not match");
|
|
1112
1112
|
let ee = "";
|
|
1113
|
-
e.getTokenUrl ?? (e.getTokenUrl = () => Te(
|
|
1113
|
+
e.getTokenUrl ?? (e.getTokenUrl = () => Te(Jr(), "token")), ee = e.getTokenUrl(m, `${window.location.origin}/authentication`, q, H);
|
|
1114
1114
|
const ie = {};
|
|
1115
1115
|
ie.grant_type = q, ie.code = m, ie.redirect_uri = `${window.location.origin}/authentication`, ie.client_id = H;
|
|
1116
1116
|
const k = await Yn().post({
|
|
@@ -1131,7 +1131,7 @@ function ea(e) {
|
|
|
1131
1131
|
const I = i.value;
|
|
1132
1132
|
I.expiresOn = S.ExpiresOn, I.isGlobalAdmin = S.IsGlobalAdmin == "True", I.isLoggedIn = !0, I.permissions = S.Permissions, I.subscriptionCode = S.Subscription, I.timeZone ?? (I.timeZone = e.defaultTimeZone ?? ze), I.token = S, I.userID = S.UserLoginID, I.userPermissions = ((m = S.Permissions) == null ? void 0 : m.split(",")) ?? [];
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function B() {
|
|
1135
1135
|
var S;
|
|
1136
1136
|
i.value ?? (i.value = {}), (S = i.value).timeZone ?? (S.timeZone = e.defaultTimeZone ?? ze);
|
|
1137
1137
|
}
|
|
@@ -1149,7 +1149,7 @@ function ea(e) {
|
|
|
1149
1149
|
const I = ce.fromFormat(S.expiresOn, t), m = ce.utc();
|
|
1150
1150
|
return I <= m;
|
|
1151
1151
|
}
|
|
1152
|
-
return
|
|
1152
|
+
return B(), br = {
|
|
1153
1153
|
authState: a.value,
|
|
1154
1154
|
canEdit: h,
|
|
1155
1155
|
canEditPermit: d,
|
|
@@ -1157,7 +1157,7 @@ function ea(e) {
|
|
|
1157
1157
|
canViewPermit: E,
|
|
1158
1158
|
credentials: i,
|
|
1159
1159
|
doShow: N,
|
|
1160
|
-
doShowByNav:
|
|
1160
|
+
doShowByNav: U,
|
|
1161
1161
|
getAuthorizeUrl: $,
|
|
1162
1162
|
getTimeZone: P,
|
|
1163
1163
|
getToken: b,
|
|
@@ -1167,9 +1167,9 @@ function ea(e) {
|
|
|
1167
1167
|
setAuth: g,
|
|
1168
1168
|
timeZone: le(() => i.value.timeZone ?? e.defaultTimeZone ?? ze),
|
|
1169
1169
|
tryLogin: A
|
|
1170
|
-
},
|
|
1170
|
+
}, br;
|
|
1171
1171
|
}
|
|
1172
|
-
const
|
|
1172
|
+
const fr = {
|
|
1173
1173
|
primary: "#192233",
|
|
1174
1174
|
secondary: "#192233",
|
|
1175
1175
|
accent: "#2a76a2",
|
|
@@ -1177,7 +1177,7 @@ const ir = {
|
|
|
1177
1177
|
info: "#2196F3",
|
|
1178
1178
|
success: "#4CAF50",
|
|
1179
1179
|
warning: "#FB8C00"
|
|
1180
|
-
},
|
|
1180
|
+
}, sr = {
|
|
1181
1181
|
primary: "#1d5474",
|
|
1182
1182
|
secondary: "#192233",
|
|
1183
1183
|
accent: "#7fcbf7",
|
|
@@ -1186,11 +1186,11 @@ const ir = {
|
|
|
1186
1186
|
success: "#4CAF50",
|
|
1187
1187
|
warning: "#FB8C00"
|
|
1188
1188
|
};
|
|
1189
|
-
let
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1189
|
+
let Sr;
|
|
1190
|
+
function Ha() {
|
|
1191
|
+
return Sr;
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function za(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), {
|
|
@@ -1212,8 +1212,8 @@ function ra(e) {
|
|
|
1212
1212
|
const y = localStorage.getItem("cosmetics");
|
|
1213
1213
|
y != null && y.length > 0 ? t.value = JSON.parse(y) : t.value = {
|
|
1214
1214
|
theme: e.defaultTheme ?? "light",
|
|
1215
|
-
light: e.defaultLightTheme ??
|
|
1216
|
-
dark: e.defaultDarkTheme ??
|
|
1215
|
+
light: e.defaultLightTheme ?? fr,
|
|
1216
|
+
dark: e.defaultDarkTheme ?? sr,
|
|
1217
1217
|
drawer: e.defaultDrawer ?? !0,
|
|
1218
1218
|
drawerStick: e.defaultDrawerStick ?? !1
|
|
1219
1219
|
};
|
|
@@ -1222,13 +1222,13 @@ function ra(e) {
|
|
|
1222
1222
|
localStorage.setItem("cosmetics", JSON.stringify(t.value));
|
|
1223
1223
|
}
|
|
1224
1224
|
function d(y) {
|
|
1225
|
-
a != null && (a.global.name.value = t.value.theme, a.global.name.value == "dark" ? (y && (t.value.dark = { ...e.defaultDarkTheme ??
|
|
1225
|
+
a != null && (a.global.name.value = t.value.theme, a.global.name.value == "dark" ? (y && (t.value.dark = { ...e.defaultDarkTheme ?? sr }), a.themes.value.dark = {
|
|
1226
1226
|
...a.themes.value.dark,
|
|
1227
1227
|
colors: {
|
|
1228
1228
|
...a.themes.value.dark.colors,
|
|
1229
1229
|
...t.value.dark
|
|
1230
1230
|
}
|
|
1231
|
-
}) : (y && (t.value.light = { ...e.defaultLightTheme ??
|
|
1231
|
+
}) : (y && (t.value.light = { ...e.defaultLightTheme ?? fr }), a.themes.value.light = {
|
|
1232
1232
|
...a.themes.value.light,
|
|
1233
1233
|
colors: {
|
|
1234
1234
|
...a.themes.value.light.colors,
|
|
@@ -1249,30 +1249,30 @@ function ra(e) {
|
|
|
1249
1249
|
function N() {
|
|
1250
1250
|
t.value.drawerStick = !t.value.drawerStick;
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function U() {
|
|
1253
1253
|
t.value.theme = t.value.theme == "dark" ? "light" : "dark", a != null && (a.global.name.value = t.value.theme);
|
|
1254
1254
|
}
|
|
1255
1255
|
function $() {
|
|
1256
1256
|
var y;
|
|
1257
1257
|
if (a != null) {
|
|
1258
1258
|
const l = a.themes.value.dark, o = a.themes.value.light;
|
|
1259
|
-
l.colors.primary = (t.value.dark ?? e.defaultDarkTheme ??
|
|
1259
|
+
l.colors.primary = (t.value.dark ?? e.defaultDarkTheme ?? sr).primary, o.colors.primary = (t.value.light ?? e.defaultLightTheme ?? fr).primary, (y = document.querySelector('meta[name="theme-color"]')) == null || y.setAttribute("content", "");
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
return i(), Se(t, () => {
|
|
1263
1263
|
h();
|
|
1264
|
-
}),
|
|
1264
|
+
}), Sr = {
|
|
1265
1265
|
state: t,
|
|
1266
1266
|
resetCosmetics: d,
|
|
1267
1267
|
setTemporaryColor: x,
|
|
1268
1268
|
// setVuetifyInstance,
|
|
1269
1269
|
toggleDrawer: E,
|
|
1270
1270
|
toggleDrawerStick: N,
|
|
1271
|
-
toggleLightDark:
|
|
1271
|
+
toggleLightDark: U,
|
|
1272
1272
|
undoTemporaryColor: $
|
|
1273
|
-
},
|
|
1273
|
+
}, Sr;
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const ja = {
|
|
1276
1276
|
canExportCSV: !1
|
|
1277
1277
|
};
|
|
1278
1278
|
function ta() {
|
|
@@ -1292,21 +1292,21 @@ function ta() {
|
|
|
1292
1292
|
for (let b = 0; b < h.length; b++) {
|
|
1293
1293
|
const g = h[b];
|
|
1294
1294
|
var N = null;
|
|
1295
|
-
typeof g.value == "function" ? N = g.value(T) : typeof g.value == "string" && (N =
|
|
1295
|
+
typeof g.value == "function" ? N = g.value(T) : typeof g.value == "string" && (N = yr(T, g.value)), g.itemText != null ? x[g.header] = yr(N, g.itemText) : x[g.header] = N;
|
|
1296
1296
|
}
|
|
1297
1297
|
d.push(x), Re(E) && E.forEach((b) => {
|
|
1298
1298
|
d.push(b);
|
|
1299
1299
|
}), E = [];
|
|
1300
1300
|
}
|
|
1301
|
-
var
|
|
1302
|
-
|
|
1301
|
+
var U = [];
|
|
1302
|
+
U.push(h.map((r) => r.header)), d.forEach((r) => {
|
|
1303
1303
|
let T = [];
|
|
1304
1304
|
h.forEach(function(b) {
|
|
1305
1305
|
var g = r[b.header];
|
|
1306
1306
|
T.push(g ?? "");
|
|
1307
|
-
}),
|
|
1307
|
+
}), U.push(T.join(","));
|
|
1308
1308
|
});
|
|
1309
|
-
var $ =
|
|
1309
|
+
var $ = U.join(`
|
|
1310
1310
|
`), y = new Blob([$], { type: "text/plain;charset=utf-8" });
|
|
1311
1311
|
if (window.navigator.msSaveOrOpenBlob)
|
|
1312
1312
|
window.navigator.msSaveOrOpenBlob(y, i);
|
|
@@ -1321,9 +1321,9 @@ function ta() {
|
|
|
1321
1321
|
exportToCSV: e
|
|
1322
1322
|
};
|
|
1323
1323
|
}
|
|
1324
|
-
let
|
|
1325
|
-
function
|
|
1326
|
-
return
|
|
1324
|
+
let Er;
|
|
1325
|
+
function Za() {
|
|
1326
|
+
return Er;
|
|
1327
1327
|
}
|
|
1328
1328
|
function na(e) {
|
|
1329
1329
|
function t() {
|
|
@@ -1337,39 +1337,39 @@ function na(e) {
|
|
|
1337
1337
|
function i(E, N) {
|
|
1338
1338
|
return E == null ? ce.utc().setZone(e.getTimeZone()) : N ? ce.fromFormat(E, N, { zone: e.getTimeZone() }) : ce.fromISO(E, { zone: e.getTimeZone() });
|
|
1339
1339
|
}
|
|
1340
|
-
function h(E, N,
|
|
1340
|
+
function h(E, N, U) {
|
|
1341
1341
|
if (E == null) {
|
|
1342
1342
|
const y = ce.utc().setZone(e.getTimeZone());
|
|
1343
1343
|
return N ? y.toFormat(N) : y.toString();
|
|
1344
1344
|
}
|
|
1345
1345
|
if (E == "Invalid DateTime")
|
|
1346
1346
|
return "";
|
|
1347
|
-
const $ =
|
|
1347
|
+
const $ = U ? ce.fromFormat(E, U, { zone: e.getTimeZone() }) : ce.fromISO(E, { zone: e.getTimeZone() });
|
|
1348
1348
|
return N ? $.toFormat(N) : $ == null ? void 0 : $.toString();
|
|
1349
1349
|
}
|
|
1350
1350
|
function d(E, N) {
|
|
1351
1351
|
return E == null ? ce.utc() : N ? ce.fromFormat(E, N) : ce.fromISO(E);
|
|
1352
1352
|
}
|
|
1353
|
-
function x(E, N,
|
|
1353
|
+
function x(E, N, U) {
|
|
1354
1354
|
if (E == null)
|
|
1355
1355
|
return N ? ce.utc().toFormat(N) : ce.utc().toString();
|
|
1356
1356
|
{
|
|
1357
|
-
const $ =
|
|
1357
|
+
const $ = U ? ce.fromFormat(E, U) : ce.fromISO(E);
|
|
1358
1358
|
return N ? $.toFormat(N) : $.toString();
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
return
|
|
1361
|
+
return Er = {
|
|
1362
1362
|
getToday: t,
|
|
1363
1363
|
getTomorrow: a,
|
|
1364
1364
|
tzDate: i,
|
|
1365
1365
|
tzString: h,
|
|
1366
1366
|
utcDate: d,
|
|
1367
1367
|
utcString: x
|
|
1368
|
-
},
|
|
1368
|
+
}, Er;
|
|
1369
1369
|
}
|
|
1370
|
-
let
|
|
1371
|
-
function
|
|
1372
|
-
return
|
|
1370
|
+
let Ar;
|
|
1371
|
+
function Ya() {
|
|
1372
|
+
return Ar;
|
|
1373
1373
|
}
|
|
1374
1374
|
function aa() {
|
|
1375
1375
|
const e = Y(!1);
|
|
@@ -1377,14 +1377,14 @@ function aa() {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
function a() {
|
|
1379
1379
|
}
|
|
1380
|
-
return
|
|
1380
|
+
return Ar = {
|
|
1381
1381
|
endDemo: a,
|
|
1382
1382
|
isDemoing: e,
|
|
1383
1383
|
startDemo: t
|
|
1384
|
-
},
|
|
1384
|
+
}, Ar;
|
|
1385
1385
|
}
|
|
1386
1386
|
var ua = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
1387
|
-
function
|
|
1387
|
+
function Ja(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,13 +1400,13 @@ function Za(e) {
|
|
|
1400
1400
|
updateMeta: t
|
|
1401
1401
|
};
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function Ka(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 E = { x: 0, y: 0 }, N = { x: 0, y: 0 },
|
|
1409
|
+
let E = { x: 0, y: 0 }, N = { 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
|
}
|
|
@@ -1416,20 +1416,20 @@ function Ya(e, t, a = {}) {
|
|
|
1416
1416
|
if (!A)
|
|
1417
1417
|
return;
|
|
1418
1418
|
const C = A.$el, I = P.type === "touchstart" && P.touches.length > 0 ? P.touches[0] : P;
|
|
1419
|
-
|
|
1419
|
+
U = { x: I.clientX, y: I.clientY }, N = {
|
|
1420
1420
|
x: C.offsetLeft,
|
|
1421
1421
|
y: C.offsetTop
|
|
1422
1422
|
}, E = {
|
|
1423
1423
|
x: C.offsetLeft,
|
|
1424
1424
|
y: C.offsetTop
|
|
1425
|
-
}, ((m = a.onStart) == null ? void 0 : m.call(a,
|
|
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) {
|
|
1428
1428
|
var w;
|
|
1429
|
-
if (!
|
|
1429
|
+
if (!U || !J(e))
|
|
1430
1430
|
return;
|
|
1431
1431
|
const S = P.type === "touchmove" && P.touches.length > 0 ? P.touches[0] : P;
|
|
1432
|
-
let I = S.clientX -
|
|
1432
|
+
let I = S.clientX - U.x, m = S.clientY - U.y;
|
|
1433
1433
|
(d === "x" || d === "both") && (E.x = N.x + I), (d === "y" || d === "both") && (E.y = N.y + m), (w = a.onMove) == null || w.call(a, E, P), o(P), g(E);
|
|
1434
1434
|
}
|
|
1435
1435
|
function b(P) {
|
|
@@ -1454,7 +1454,7 @@ function Ya(e, t, a = {}) {
|
|
|
1454
1454
|
const A = P.$el;
|
|
1455
1455
|
A.style.cursor = "move", $.push(oe(A, "mousedown", r, x)), $.push(oe(A, "touchstart", r, x)), l.value = !0;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function B() {
|
|
1458
1458
|
if (!J(l))
|
|
1459
1459
|
return;
|
|
1460
1460
|
const P = J(t);
|
|
@@ -1467,13 +1467,13 @@ function Ya(e, t, a = {}) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
return {
|
|
1469
1469
|
draggingIsOn: l,
|
|
1470
|
-
turnDraggableOff:
|
|
1470
|
+
turnDraggableOff: B,
|
|
1471
1471
|
turnDraggableOn: _
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
|
-
let
|
|
1475
|
-
function
|
|
1476
|
-
return
|
|
1474
|
+
let Ir;
|
|
1475
|
+
function Qa() {
|
|
1476
|
+
return Ir;
|
|
1477
1477
|
}
|
|
1478
1478
|
function la(e) {
|
|
1479
1479
|
function t(m, w, q) {
|
|
@@ -1512,7 +1512,7 @@ function la(e) {
|
|
|
1512
1512
|
function N(m, w) {
|
|
1513
1513
|
return t(m, "ccc dd LLL @ hh:mm a", w);
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function U(m) {
|
|
1516
1516
|
return new Intl.NumberFormat().format(m);
|
|
1517
1517
|
}
|
|
1518
1518
|
function $(m) {
|
|
@@ -1528,7 +1528,7 @@ function la(e) {
|
|
|
1528
1528
|
return e.dates.utcString(m, w);
|
|
1529
1529
|
}
|
|
1530
1530
|
function o(m) {
|
|
1531
|
-
return
|
|
1531
|
+
return ot(m, !1);
|
|
1532
1532
|
}
|
|
1533
1533
|
function r(m) {
|
|
1534
1534
|
if (!m)
|
|
@@ -1554,7 +1554,7 @@ function la(e) {
|
|
|
1554
1554
|
function _(m) {
|
|
1555
1555
|
return m.replaceAll(",", " ");
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function B(m, w) {
|
|
1558
1558
|
return t(m, "dd LLL yyyy", w);
|
|
1559
1559
|
}
|
|
1560
1560
|
function P(m, w) {
|
|
@@ -1574,7 +1574,7 @@ function la(e) {
|
|
|
1574
1574
|
toDayOfWeek: x,
|
|
1575
1575
|
toDayShortDate: E,
|
|
1576
1576
|
toDayShortDateAndTime: N,
|
|
1577
|
-
toDisplayNumber:
|
|
1577
|
+
toDisplayNumber: U,
|
|
1578
1578
|
toDisplayNumberOver: $,
|
|
1579
1579
|
toDisplayNumberSigned: y,
|
|
1580
1580
|
toFormat: l,
|
|
@@ -1584,7 +1584,7 @@ function la(e) {
|
|
|
1584
1584
|
toLongDateAndTime: b,
|
|
1585
1585
|
toPercent: g,
|
|
1586
1586
|
toPrettyCSV: _,
|
|
1587
|
-
toShortDate:
|
|
1587
|
+
toShortDate: B,
|
|
1588
1588
|
toShortDateAndTime: P,
|
|
1589
1589
|
toTime: A,
|
|
1590
1590
|
toTimeOfDay: C
|
|
@@ -1597,15 +1597,15 @@ function la(e) {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
return (w) => w;
|
|
1599
1599
|
}
|
|
1600
|
-
return
|
|
1600
|
+
return Ir = {
|
|
1601
1601
|
findFilter: I,
|
|
1602
1602
|
...S
|
|
1603
|
-
},
|
|
1603
|
+
}, Ir;
|
|
1604
1604
|
}
|
|
1605
1605
|
function je(e) {
|
|
1606
1606
|
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.');
|
|
1607
1607
|
}
|
|
1608
|
-
var
|
|
1608
|
+
var vt = { exports: {} };
|
|
1609
1609
|
/*!
|
|
1610
1610
|
localForage -- Offline Storage, Improved
|
|
1611
1611
|
Version 1.10.0
|
|
@@ -1617,24 +1617,24 @@ var mt = { exports: {} };
|
|
|
1617
1617
|
e.exports = a();
|
|
1618
1618
|
})(function() {
|
|
1619
1619
|
return function a(i, h, d) {
|
|
1620
|
-
function x(
|
|
1621
|
-
if (!h[
|
|
1622
|
-
if (!i[
|
|
1620
|
+
function x(U, $) {
|
|
1621
|
+
if (!h[U]) {
|
|
1622
|
+
if (!i[U]) {
|
|
1623
1623
|
var y = typeof je == "function" && je;
|
|
1624
1624
|
if (!$ && y)
|
|
1625
|
-
return y(
|
|
1625
|
+
return y(U, !0);
|
|
1626
1626
|
if (E)
|
|
1627
|
-
return E(
|
|
1628
|
-
var l = new Error("Cannot find module '" +
|
|
1627
|
+
return E(U, !0);
|
|
1628
|
+
var l = new Error("Cannot find module '" + U + "'");
|
|
1629
1629
|
throw l.code = "MODULE_NOT_FOUND", l;
|
|
1630
1630
|
}
|
|
1631
|
-
var o = h[
|
|
1632
|
-
i[
|
|
1633
|
-
var T = i[
|
|
1631
|
+
var o = h[U] = { exports: {} };
|
|
1632
|
+
i[U][0].call(o.exports, function(r) {
|
|
1633
|
+
var T = i[U][1][r];
|
|
1634
1634
|
return x(T || r);
|
|
1635
1635
|
}, o, o.exports, a, i, h, d);
|
|
1636
1636
|
}
|
|
1637
|
-
return h[
|
|
1637
|
+
return h[U].exports;
|
|
1638
1638
|
}
|
|
1639
1639
|
for (var E = typeof je == "function" && je, N = 0; N < d.length; N++)
|
|
1640
1640
|
x(d[N]);
|
|
@@ -1643,8 +1643,8 @@ var mt = { exports: {} };
|
|
|
1643
1643
|
(function(d) {
|
|
1644
1644
|
var x = d.MutationObserver || d.WebKitMutationObserver, E;
|
|
1645
1645
|
if (x) {
|
|
1646
|
-
var N = 0,
|
|
1647
|
-
|
|
1646
|
+
var N = 0, U = new x(r), $ = d.document.createTextNode("");
|
|
1647
|
+
U.observe($, {
|
|
1648
1648
|
characterData: !0
|
|
1649
1649
|
}), E = function() {
|
|
1650
1650
|
$.data = N = ++N % 2;
|
|
@@ -1682,7 +1682,7 @@ var mt = { exports: {} };
|
|
|
1682
1682
|
var d = a(1);
|
|
1683
1683
|
function x() {
|
|
1684
1684
|
}
|
|
1685
|
-
var E = {}, N = ["REJECTED"],
|
|
1685
|
+
var E = {}, N = ["REJECTED"], U = ["FULFILLED"], $ = ["PENDING"];
|
|
1686
1686
|
i.exports = y;
|
|
1687
1687
|
function y(A) {
|
|
1688
1688
|
if (typeof A != "function")
|
|
@@ -1692,11 +1692,11 @@ var mt = { exports: {} };
|
|
|
1692
1692
|
y.prototype.catch = function(A) {
|
|
1693
1693
|
return this.then(null, A);
|
|
1694
1694
|
}, y.prototype.then = function(A, C) {
|
|
1695
|
-
if (typeof A != "function" && this.state ===
|
|
1695
|
+
if (typeof A != "function" && this.state === U || typeof C != "function" && this.state === N)
|
|
1696
1696
|
return this;
|
|
1697
1697
|
var S = new this.constructor(x);
|
|
1698
1698
|
if (this.state !== $) {
|
|
1699
|
-
var I = this.state ===
|
|
1699
|
+
var I = this.state === U ? A : C;
|
|
1700
1700
|
o(S, I, this.outcome);
|
|
1701
1701
|
} else
|
|
1702
1702
|
this.queue.push(new l(S, A, C));
|
|
@@ -1733,7 +1733,7 @@ var mt = { exports: {} };
|
|
|
1733
1733
|
if (I)
|
|
1734
1734
|
T(A, I);
|
|
1735
1735
|
else {
|
|
1736
|
-
A.state =
|
|
1736
|
+
A.state = U, A.outcome = C;
|
|
1737
1737
|
for (var m = -1, w = A.queue.length; ++m < w; )
|
|
1738
1738
|
A.queue[m].callFulfilled(C);
|
|
1739
1739
|
}
|
|
@@ -1783,8 +1783,8 @@ var mt = { exports: {} };
|
|
|
1783
1783
|
var C = new this(x);
|
|
1784
1784
|
return E.reject(C, A);
|
|
1785
1785
|
}
|
|
1786
|
-
y.all =
|
|
1787
|
-
function
|
|
1786
|
+
y.all = B;
|
|
1787
|
+
function B(A) {
|
|
1788
1788
|
var C = this;
|
|
1789
1789
|
if (Object.prototype.toString.call(A) !== "[object Array]")
|
|
1790
1790
|
return this.reject(new TypeError("must be an array"));
|
|
@@ -1853,7 +1853,7 @@ var mt = { exports: {} };
|
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
1855
|
var N = E();
|
|
1856
|
-
function
|
|
1856
|
+
function U() {
|
|
1857
1857
|
try {
|
|
1858
1858
|
if (!N || !N.open)
|
|
1859
1859
|
return !1;
|
|
@@ -1898,7 +1898,7 @@ var mt = { 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, _ = {},
|
|
1901
|
+
var b = "local-forage-detect-blob-support", g = void 0, _ = {}, B = Object.prototype.toString, P = "readonly", A = "readwrite";
|
|
1902
1902
|
function C(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);
|
|
@@ -2117,7 +2117,7 @@ var mt = { exports: {} };
|
|
|
2117
2117
|
});
|
|
2118
2118
|
return l(s, c), s;
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function Ke(n, c) {
|
|
2121
2121
|
var u = this, s = new y(function(v, f) {
|
|
2122
2122
|
u.ready().then(function() {
|
|
2123
2123
|
p(u._dbInfo, P, function(D, L) {
|
|
@@ -2151,7 +2151,7 @@ var mt = { exports: {} };
|
|
|
2151
2151
|
var v = new y(function(f, D) {
|
|
2152
2152
|
var L;
|
|
2153
2153
|
s.ready().then(function() {
|
|
2154
|
-
return L = s._dbInfo,
|
|
2154
|
+
return L = s._dbInfo, B.call(c) === "[object Blob]" ? I(L.db).then(function(M) {
|
|
2155
2155
|
return M ? c : k(c);
|
|
2156
2156
|
}) : c;
|
|
2157
2157
|
}).then(function(M) {
|
|
@@ -2176,7 +2176,7 @@ var mt = { exports: {} };
|
|
|
2176
2176
|
});
|
|
2177
2177
|
return l(v, u), v;
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function Qe(n, c) {
|
|
2180
2180
|
var u = this;
|
|
2181
2181
|
n = r(n);
|
|
2182
2182
|
var s = new y(function(v, f) {
|
|
@@ -2202,7 +2202,7 @@ var mt = { exports: {} };
|
|
|
2202
2202
|
});
|
|
2203
2203
|
return l(s, c), s;
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2205
|
+
function Xe(n) {
|
|
2206
2206
|
var c = this, u = new y(function(s, v) {
|
|
2207
2207
|
c.ready().then(function() {
|
|
2208
2208
|
p(c._dbInfo, A, function(f, D) {
|
|
@@ -2224,7 +2224,7 @@ var mt = { exports: {} };
|
|
|
2224
2224
|
});
|
|
2225
2225
|
return l(u, n), u;
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function Oe(n) {
|
|
2228
2228
|
var c = this, u = new y(function(s, v) {
|
|
2229
2229
|
c.ready().then(function() {
|
|
2230
2230
|
p(c._dbInfo, P, function(f, D) {
|
|
@@ -2245,7 +2245,7 @@ var mt = { exports: {} };
|
|
|
2245
2245
|
});
|
|
2246
2246
|
return l(u, n), u;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function pe(n, c) {
|
|
2249
2249
|
var u = this, s = new y(function(v, f) {
|
|
2250
2250
|
if (n < 0) {
|
|
2251
2251
|
v(null);
|
|
@@ -2275,7 +2275,7 @@ var mt = { exports: {} };
|
|
|
2275
2275
|
});
|
|
2276
2276
|
return l(s, c), s;
|
|
2277
2277
|
}
|
|
2278
|
-
function
|
|
2278
|
+
function er(n) {
|
|
2279
2279
|
var c = this, u = new y(function(s, v) {
|
|
2280
2280
|
c.ready().then(function() {
|
|
2281
2281
|
p(c._dbInfo, P, function(f, D) {
|
|
@@ -2301,7 +2301,7 @@ var mt = { exports: {} };
|
|
|
2301
2301
|
});
|
|
2302
2302
|
return l(u, n), u;
|
|
2303
2303
|
}
|
|
2304
|
-
function
|
|
2304
|
+
function rr(n, c) {
|
|
2305
2305
|
c = T.apply(this, arguments);
|
|
2306
2306
|
var u = this.config();
|
|
2307
2307
|
n = typeof n != "function" && n || {}, n.name || (n.name = n.name || u.name, n.storeName = n.storeName || u.storeName);
|
|
@@ -2384,24 +2384,24 @@ var mt = { exports: {} };
|
|
|
2384
2384
|
}
|
|
2385
2385
|
return l(v, c), v;
|
|
2386
2386
|
}
|
|
2387
|
-
var
|
|
2387
|
+
var tr = {
|
|
2388
2388
|
_driver: "asyncStorage",
|
|
2389
2389
|
_initStorage: de,
|
|
2390
|
-
_support:
|
|
2391
|
-
iterate:
|
|
2390
|
+
_support: U(),
|
|
2391
|
+
iterate: Ke,
|
|
2392
2392
|
getItem: ge,
|
|
2393
2393
|
setItem: Ce,
|
|
2394
|
-
removeItem:
|
|
2395
|
-
clear:
|
|
2396
|
-
length:
|
|
2397
|
-
key:
|
|
2398
|
-
keys:
|
|
2399
|
-
dropInstance:
|
|
2394
|
+
removeItem: Qe,
|
|
2395
|
+
clear: Xe,
|
|
2396
|
+
length: Oe,
|
|
2397
|
+
key: pe,
|
|
2398
|
+
keys: er,
|
|
2399
|
+
dropInstance: rr
|
|
2400
2400
|
};
|
|
2401
|
-
function
|
|
2401
|
+
function Be() {
|
|
2402
2402
|
return typeof openDatabase == "function";
|
|
2403
2403
|
}
|
|
2404
|
-
var we = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", xe = "~~local_forage_type~", We = /^~~local_forage_type~([^~]+)~/, Ne = "__lfsc__:", Le = Ne.length, W = "arbf", re = "blob", K = "si08", O = "ui08", ye = "uic8", Ae = "si16", Me = "si32", be = "ur16", se = "ui32", Ie = "fl32",
|
|
2404
|
+
var we = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", xe = "~~local_forage_type~", We = /^~~local_forage_type~([^~]+)~/, Ne = "__lfsc__:", Le = Ne.length, W = "arbf", re = "blob", K = "si08", O = "ui08", ye = "uic8", Ae = "si16", Me = "si32", be = "ur16", se = "ui32", Ie = "fl32", Pr = "fl64", Rr = Le + W.length, Br = Object.prototype.toString;
|
|
2405
2405
|
function Ur(n) {
|
|
2406
2406
|
var c = n.length * 0.75, u = n.length, s, v = 0, f, D, L, M;
|
|
2407
2407
|
n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
|
|
@@ -2410,7 +2410,7 @@ var mt = { exports: {} };
|
|
|
2410
2410
|
f = we.indexOf(n[s]), D = we.indexOf(n[s + 1]), L = we.indexOf(n[s + 2]), M = we.indexOf(n[s + 3]), F[v++] = f << 2 | D >> 4, F[v++] = (D & 15) << 4 | L >> 2, F[v++] = (L & 3) << 6 | M & 63;
|
|
2411
2411
|
return R;
|
|
2412
2412
|
}
|
|
2413
|
-
function
|
|
2413
|
+
function nr(n) {
|
|
2414
2414
|
var c = new Uint8Array(n), u = "", s;
|
|
2415
2415
|
for (s = 0; s < c.length; s += 3)
|
|
2416
2416
|
u += we[c[s] >> 2], u += we[(c[s] & 3) << 4 | c[s + 1] >> 4], u += we[(c[s + 1] & 15) << 2 | c[s + 2] >> 6], u += we[c[s + 2] & 63];
|
|
@@ -2418,13 +2418,13 @@ var mt = { exports: {} };
|
|
|
2418
2418
|
}
|
|
2419
2419
|
function yt(n, c) {
|
|
2420
2420
|
var u = "";
|
|
2421
|
-
if (n && (u =
|
|
2421
|
+
if (n && (u = Br.call(n)), n && (u === "[object ArrayBuffer]" || n.buffer && Br.call(n.buffer) === "[object ArrayBuffer]")) {
|
|
2422
2422
|
var s, v = Ne;
|
|
2423
|
-
n instanceof ArrayBuffer ? (s = n, v += W) : (s = n.buffer, u === "[object Int8Array]" ? v += K : u === "[object Uint8Array]" ? v += O : u === "[object Uint8ClampedArray]" ? v += ye : u === "[object Int16Array]" ? v += Ae : u === "[object Uint16Array]" ? v += be : u === "[object Int32Array]" ? v += Me : u === "[object Uint32Array]" ? v += se : u === "[object Float32Array]" ? v += Ie : u === "[object Float64Array]" ? v +=
|
|
2423
|
+
n instanceof ArrayBuffer ? (s = n, v += W) : (s = n.buffer, u === "[object Int8Array]" ? v += K : u === "[object Uint8Array]" ? v += O : u === "[object Uint8ClampedArray]" ? v += ye : u === "[object Int16Array]" ? v += Ae : u === "[object Uint16Array]" ? v += be : u === "[object Int32Array]" ? v += Me : u === "[object Uint32Array]" ? v += se : u === "[object Float32Array]" ? v += Ie : u === "[object Float64Array]" ? v += Pr : c(new Error("Failed to get type for BinaryArray"))), c(v + nr(s));
|
|
2424
2424
|
} else if (u === "[object Blob]") {
|
|
2425
2425
|
var f = new FileReader();
|
|
2426
2426
|
f.onload = function() {
|
|
2427
|
-
var D = xe + n.type + "~" +
|
|
2427
|
+
var D = xe + n.type + "~" + nr(this.result);
|
|
2428
2428
|
c(Ne + re + D);
|
|
2429
2429
|
}, f.readAsArrayBuffer(n);
|
|
2430
2430
|
} else
|
|
@@ -2437,7 +2437,7 @@ var mt = { exports: {} };
|
|
|
2437
2437
|
function wt(n) {
|
|
2438
2438
|
if (n.substring(0, Le) !== Ne)
|
|
2439
2439
|
return JSON.parse(n);
|
|
2440
|
-
var c = n.substring(
|
|
2440
|
+
var c = n.substring(Rr), u = n.substring(Le, Rr), s;
|
|
2441
2441
|
if (u === re && We.test(c)) {
|
|
2442
2442
|
var v = c.match(We);
|
|
2443
2443
|
s = v[1], c = c.substring(v[0].length);
|
|
@@ -2464,19 +2464,19 @@ var mt = { exports: {} };
|
|
|
2464
2464
|
return new Uint32Array(f);
|
|
2465
2465
|
case Ie:
|
|
2466
2466
|
return new Float32Array(f);
|
|
2467
|
-
case
|
|
2467
|
+
case Pr:
|
|
2468
2468
|
return new Float64Array(f);
|
|
2469
2469
|
default:
|
|
2470
2470
|
throw new Error("Unkown type: " + u);
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
|
-
var
|
|
2473
|
+
var ar = {
|
|
2474
2474
|
serialize: yt,
|
|
2475
2475
|
deserialize: wt,
|
|
2476
2476
|
stringToBuffer: Ur,
|
|
2477
|
-
bufferToString:
|
|
2477
|
+
bufferToString: nr
|
|
2478
2478
|
};
|
|
2479
|
-
function
|
|
2479
|
+
function Fr(n, c, u, s) {
|
|
2480
2480
|
n.executeSql("CREATE TABLE IF NOT EXISTS " + c.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], u, s);
|
|
2481
2481
|
}
|
|
2482
2482
|
function bt(n) {
|
|
@@ -2493,19 +2493,19 @@ var mt = { exports: {} };
|
|
|
2493
2493
|
return D(L);
|
|
2494
2494
|
}
|
|
2495
2495
|
u.db.transaction(function(L) {
|
|
2496
|
-
|
|
2496
|
+
Fr(L, u, function() {
|
|
2497
2497
|
c._dbInfo = u, f();
|
|
2498
2498
|
}, function(M, R) {
|
|
2499
2499
|
D(R);
|
|
2500
2500
|
});
|
|
2501
2501
|
}, D);
|
|
2502
2502
|
});
|
|
2503
|
-
return u.serializer =
|
|
2503
|
+
return u.serializer = ar, v;
|
|
2504
2504
|
}
|
|
2505
2505
|
function _e(n, c, u, s, v, f) {
|
|
2506
2506
|
n.executeSql(u, s, v, function(D, L) {
|
|
2507
2507
|
L.code === L.SYNTAX_ERR ? D.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(M, R) {
|
|
2508
|
-
R.rows.length ? f(M, L) :
|
|
2508
|
+
R.rows.length ? f(M, L) : Fr(M, c, function() {
|
|
2509
2509
|
M.executeSql(u, s, v, f);
|
|
2510
2510
|
}, f);
|
|
2511
2511
|
}, f) : f(D, L);
|
|
@@ -2551,7 +2551,7 @@ var mt = { exports: {} };
|
|
|
2551
2551
|
});
|
|
2552
2552
|
return l(s, c), s;
|
|
2553
2553
|
}
|
|
2554
|
-
function
|
|
2554
|
+
function $r(n, c, u, s) {
|
|
2555
2555
|
var v = this;
|
|
2556
2556
|
n = r(n);
|
|
2557
2557
|
var f = new y(function(D, L) {
|
|
@@ -2568,7 +2568,7 @@ var mt = { exports: {} };
|
|
|
2568
2568
|
}, function(j) {
|
|
2569
2569
|
if (j.code === j.QUOTA_ERR) {
|
|
2570
2570
|
if (s > 0) {
|
|
2571
|
-
D(
|
|
2571
|
+
D($r.apply(v, [n, M, u, s - 1]));
|
|
2572
2572
|
return;
|
|
2573
2573
|
}
|
|
2574
2574
|
L(j);
|
|
@@ -2580,7 +2580,7 @@ var mt = { exports: {} };
|
|
|
2580
2580
|
return l(f, u), f;
|
|
2581
2581
|
}
|
|
2582
2582
|
function At(n, c, u) {
|
|
2583
|
-
return
|
|
2583
|
+
return $r.apply(this, [n, c, u, 1]);
|
|
2584
2584
|
}
|
|
2585
2585
|
function It(n, c) {
|
|
2586
2586
|
var u = this;
|
|
@@ -2720,7 +2720,7 @@ var mt = { exports: {} };
|
|
|
2720
2720
|
var Lt = {
|
|
2721
2721
|
_driver: "webSQLStorage",
|
|
2722
2722
|
_initStorage: bt,
|
|
2723
|
-
_support:
|
|
2723
|
+
_support: Be(),
|
|
2724
2724
|
iterate: Et,
|
|
2725
2725
|
getItem: St,
|
|
2726
2726
|
setItem: At,
|
|
@@ -2739,7 +2739,7 @@ var mt = { exports: {} };
|
|
|
2739
2739
|
return !1;
|
|
2740
2740
|
}
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2742
|
+
function kr(n, c) {
|
|
2743
2743
|
var u = n.name + "/";
|
|
2744
2744
|
return n.storeName !== c.storeName && (u += n.storeName + "/"), u;
|
|
2745
2745
|
}
|
|
@@ -2754,14 +2754,14 @@ var mt = { exports: {} };
|
|
|
2754
2754
|
function Rt() {
|
|
2755
2755
|
return !Pt() || localStorage.length > 0;
|
|
2756
2756
|
}
|
|
2757
|
-
function
|
|
2757
|
+
function Bt(n) {
|
|
2758
2758
|
var c = this, u = {};
|
|
2759
2759
|
if (n)
|
|
2760
2760
|
for (var s in n)
|
|
2761
2761
|
u[s] = n[s];
|
|
2762
|
-
return u.keyPrefix =
|
|
2762
|
+
return u.keyPrefix = kr(n, c._defaultConfig), Rt() ? (c._dbInfo = u, u.serializer = ar, y.resolve()) : y.reject();
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function Ut(n) {
|
|
2765
2765
|
var c = this, u = c.ready().then(function() {
|
|
2766
2766
|
for (var s = c._dbInfo.keyPrefix, v = localStorage.length - 1; v >= 0; v--) {
|
|
2767
2767
|
var f = localStorage.key(v);
|
|
@@ -2858,7 +2858,7 @@ var mt = { exports: {} };
|
|
|
2858
2858
|
}
|
|
2859
2859
|
var s = this, v;
|
|
2860
2860
|
return n.name ? v = new y(function(f) {
|
|
2861
|
-
n.storeName ? f(
|
|
2861
|
+
n.storeName ? f(kr(n, s._defaultConfig)) : f(n.name + "/");
|
|
2862
2862
|
}).then(function(f) {
|
|
2863
2863
|
for (var D = localStorage.length - 1; D >= 0; D--) {
|
|
2864
2864
|
var L = localStorage.key(D);
|
|
@@ -2868,13 +2868,13 @@ var mt = { exports: {} };
|
|
|
2868
2868
|
}
|
|
2869
2869
|
var zt = {
|
|
2870
2870
|
_driver: "localStorageWrapper",
|
|
2871
|
-
_initStorage:
|
|
2871
|
+
_initStorage: Bt,
|
|
2872
2872
|
_support: Mt(),
|
|
2873
2873
|
iterate: $t,
|
|
2874
2874
|
getItem: Ft,
|
|
2875
2875
|
setItem: qt,
|
|
2876
2876
|
removeItem: Vt,
|
|
2877
|
-
clear:
|
|
2877
|
+
clear: Ut,
|
|
2878
2878
|
length: Gt,
|
|
2879
2879
|
key: kt,
|
|
2880
2880
|
keys: Wt,
|
|
@@ -2888,13 +2888,13 @@ var mt = { exports: {} };
|
|
|
2888
2888
|
v++;
|
|
2889
2889
|
}
|
|
2890
2890
|
return !1;
|
|
2891
|
-
},
|
|
2891
|
+
}, Wr = Array.isArray || function(n) {
|
|
2892
2892
|
return Object.prototype.toString.call(n) === "[object Array]";
|
|
2893
|
-
},
|
|
2894
|
-
INDEXEDDB:
|
|
2893
|
+
}, Ue = {}, Gr = {}, Pe = {
|
|
2894
|
+
INDEXEDDB: tr,
|
|
2895
2895
|
WEBSQL: Lt,
|
|
2896
2896
|
LOCALSTORAGE: zt
|
|
2897
|
-
}, Yt = [Pe.INDEXEDDB._driver, Pe.WEBSQL._driver, Pe.LOCALSTORAGE._driver], Ge = ["dropInstance"],
|
|
2897
|
+
}, Yt = [Pe.INDEXEDDB._driver, Pe.WEBSQL._driver, Pe.LOCALSTORAGE._driver], Ge = ["dropInstance"], ur = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ge), Jt = {
|
|
2898
2898
|
description: "",
|
|
2899
2899
|
driver: Yt.slice(),
|
|
2900
2900
|
name: "localforage",
|
|
@@ -2912,12 +2912,12 @@ var mt = { exports: {} };
|
|
|
2912
2912
|
});
|
|
2913
2913
|
};
|
|
2914
2914
|
}
|
|
2915
|
-
function
|
|
2915
|
+
function lr() {
|
|
2916
2916
|
for (var n = 1; n < arguments.length; n++) {
|
|
2917
2917
|
var c = arguments[n];
|
|
2918
2918
|
if (c)
|
|
2919
2919
|
for (var u in c)
|
|
2920
|
-
c.hasOwnProperty(u) && (
|
|
2920
|
+
c.hasOwnProperty(u) && (Wr(c[u]) ? arguments[0][u] = c[u].slice() : arguments[0][u] = c[u]);
|
|
2921
2921
|
}
|
|
2922
2922
|
return arguments[0];
|
|
2923
2923
|
}
|
|
@@ -2927,9 +2927,9 @@ var mt = { exports: {} };
|
|
|
2927
2927
|
for (var u in Pe)
|
|
2928
2928
|
if (Pe.hasOwnProperty(u)) {
|
|
2929
2929
|
var s = Pe[u], v = s._driver;
|
|
2930
|
-
this[u] = v,
|
|
2930
|
+
this[u] = v, Ue[v] || this.defineDriver(s);
|
|
2931
2931
|
}
|
|
2932
|
-
this._defaultConfig =
|
|
2932
|
+
this._defaultConfig = lr({}, Jt), this._config = lr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
|
|
2933
2933
|
});
|
|
2934
2934
|
}
|
|
2935
2935
|
return n.prototype.config = function(u) {
|
|
@@ -2952,7 +2952,7 @@ var mt = { exports: {} };
|
|
|
2952
2952
|
L(R);
|
|
2953
2953
|
return;
|
|
2954
2954
|
}
|
|
2955
|
-
for (var F =
|
|
2955
|
+
for (var F = ur.concat("_initStorage"), G = 0, j = F.length; G < j; G++) {
|
|
2956
2956
|
var Q = F[G], X = !Zt(Ge, Q);
|
|
2957
2957
|
if ((X || u[Q]) && typeof u[Q] != "function") {
|
|
2958
2958
|
L(R);
|
|
@@ -2962,17 +2962,17 @@ var mt = { exports: {} };
|
|
|
2962
2962
|
var ae = function() {
|
|
2963
2963
|
for (var Fe = function(pt) {
|
|
2964
2964
|
return function() {
|
|
2965
|
-
var en = new Error("Method " + pt + " is not implemented by the current driver"),
|
|
2966
|
-
return l(
|
|
2965
|
+
var en = new Error("Method " + pt + " is not implemented by the current driver"), Vr = y.reject(en);
|
|
2966
|
+
return l(Vr, arguments[arguments.length - 1]), Vr;
|
|
2967
2967
|
};
|
|
2968
|
-
},
|
|
2969
|
-
var
|
|
2970
|
-
u[
|
|
2968
|
+
}, cr = 0, Ot = Ge.length; cr < Ot; cr++) {
|
|
2969
|
+
var ir = Ge[cr];
|
|
2970
|
+
u[ir] || (u[ir] = Fe(ir));
|
|
2971
2971
|
}
|
|
2972
2972
|
};
|
|
2973
2973
|
ae();
|
|
2974
2974
|
var te = function(Fe) {
|
|
2975
|
-
|
|
2975
|
+
Ue[M] && console.info("Redefining LocalForage driver: " + M), Ue[M] = u, Gr[M] = Fe, D();
|
|
2976
2976
|
};
|
|
2977
2977
|
"_support" in u ? u._support && typeof u._support == "function" ? u._support().then(te, L) : te(!!u._support) : te(!0);
|
|
2978
2978
|
} catch (me) {
|
|
@@ -2983,10 +2983,10 @@ var mt = { exports: {} };
|
|
|
2983
2983
|
}, n.prototype.driver = function() {
|
|
2984
2984
|
return this._driver || null;
|
|
2985
2985
|
}, n.prototype.getDriver = function(u, s, v) {
|
|
2986
|
-
var f =
|
|
2986
|
+
var f = Ue[u] ? y.resolve(Ue[u]) : y.reject(new Error("Driver not found."));
|
|
2987
2987
|
return o(f, s, v), f;
|
|
2988
2988
|
}, n.prototype.getSerializer = function(u) {
|
|
2989
|
-
var s = y.resolve(
|
|
2989
|
+
var s = y.resolve(ar);
|
|
2990
2990
|
return o(s, u), s;
|
|
2991
2991
|
}, n.prototype.ready = function(u) {
|
|
2992
2992
|
var s = this, v = s._driverSet.then(function() {
|
|
@@ -2995,7 +2995,7 @@ var mt = { exports: {} };
|
|
|
2995
2995
|
return o(v, u, u), v;
|
|
2996
2996
|
}, n.prototype.setDriver = function(u, s, v) {
|
|
2997
2997
|
var f = this;
|
|
2998
|
-
|
|
2998
|
+
Wr(u) || (u = [u]);
|
|
2999
2999
|
var D = this._getSupportedDrivers(u);
|
|
3000
3000
|
function L() {
|
|
3001
3001
|
f._config.driver = f.driver();
|
|
@@ -3032,9 +3032,9 @@ var mt = { exports: {} };
|
|
|
3032
3032
|
return f._driverSet = y.reject(G), f._driverSet;
|
|
3033
3033
|
}), o(this._driverSet, s, v), this._driverSet;
|
|
3034
3034
|
}, n.prototype.supports = function(u) {
|
|
3035
|
-
return !!
|
|
3035
|
+
return !!Gr[u];
|
|
3036
3036
|
}, n.prototype._extend = function(u) {
|
|
3037
|
-
|
|
3037
|
+
lr(this, u);
|
|
3038
3038
|
}, n.prototype._getSupportedDrivers = function(u) {
|
|
3039
3039
|
for (var s = [], v = 0, f = u.length; v < f; v++) {
|
|
3040
3040
|
var D = u[v];
|
|
@@ -3042,8 +3042,8 @@ var mt = { exports: {} };
|
|
|
3042
3042
|
}
|
|
3043
3043
|
return s;
|
|
3044
3044
|
}, n.prototype._wrapLibraryMethodsWithReady = function() {
|
|
3045
|
-
for (var u = 0, s =
|
|
3046
|
-
Kt(this,
|
|
3045
|
+
for (var u = 0, s = ur.length; u < s; u++)
|
|
3046
|
+
Kt(this, ur[u]);
|
|
3047
3047
|
}, n.prototype.createInstance = function(u) {
|
|
3048
3048
|
return new n(u);
|
|
3049
3049
|
}, n;
|
|
@@ -3051,18 +3051,18 @@ var mt = { exports: {} };
|
|
|
3051
3051
|
i.exports = Xt;
|
|
3052
3052
|
}, { 3: 3 }] }, {}, [4])(4);
|
|
3053
3053
|
});
|
|
3054
|
-
})(
|
|
3055
|
-
var ca =
|
|
3056
|
-
const
|
|
3054
|
+
})(vt);
|
|
3055
|
+
var ca = vt.exports;
|
|
3056
|
+
const gt = /* @__PURE__ */ Un(ca);
|
|
3057
3057
|
let Ze = null;
|
|
3058
|
-
|
|
3059
|
-
name:
|
|
3058
|
+
gt.config({
|
|
3059
|
+
name: mt()
|
|
3060
3060
|
});
|
|
3061
3061
|
function he() {
|
|
3062
|
-
const e =
|
|
3063
|
-
return (Ze == null || Ze.config.name != e) && (Ze =
|
|
3062
|
+
const e = mt();
|
|
3063
|
+
return (Ze == null || Ze.config.name != e) && (Ze = gt.createInstance({ name: e })), Ze;
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3065
|
+
function Xa() {
|
|
3066
3066
|
async function e(h) {
|
|
3067
3067
|
const d = he();
|
|
3068
3068
|
(await d.keys()).filter((N) => N.startsWith(h)).forEach((N) => {
|
|
@@ -3085,22 +3085,32 @@ function Ka() {
|
|
|
3085
3085
|
saveAsync: i
|
|
3086
3086
|
};
|
|
3087
3087
|
}
|
|
3088
|
-
|
|
3089
|
-
|
|
3088
|
+
let Je;
|
|
3089
|
+
function Oa(e) {
|
|
3090
|
+
return Je(e)();
|
|
3091
|
+
}
|
|
3092
|
+
function ia(e) {
|
|
3093
|
+
return Je(e);
|
|
3094
|
+
}
|
|
3095
|
+
function pa(e) {
|
|
3096
|
+
return Je = (t) => fa({
|
|
3097
|
+
...e,
|
|
3098
|
+
...t
|
|
3099
|
+
}), Je;
|
|
3090
3100
|
}
|
|
3091
|
-
function
|
|
3101
|
+
function fa(e) {
|
|
3092
3102
|
if (console.log("getting store definition"), e.storeMode == "whole-last-updated") {
|
|
3093
3103
|
if (e.api == null)
|
|
3094
3104
|
throw new Error("Must supply an api object to use store");
|
|
3095
|
-
return
|
|
3105
|
+
return Kr(e);
|
|
3096
3106
|
} else if (e.storeMode == "partial-last-updated") {
|
|
3097
3107
|
if (e.api == null)
|
|
3098
3108
|
throw new Error("Must supply an api object to use store");
|
|
3099
|
-
return
|
|
3109
|
+
return Kr(e);
|
|
3100
3110
|
} else
|
|
3101
|
-
return
|
|
3111
|
+
return oa(e);
|
|
3102
3112
|
}
|
|
3103
|
-
const
|
|
3113
|
+
const sa = (e) => {
|
|
3104
3114
|
let t = J(e.url) ?? void 0;
|
|
3105
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) {
|
|
3106
3116
|
t ?? (t = "");
|
|
@@ -3111,10 +3121,10 @@ const ia = (e) => {
|
|
|
3111
3121
|
}
|
|
3112
3122
|
return e.finalUrl = t, e.finalUrl ?? "";
|
|
3113
3123
|
};
|
|
3114
|
-
function
|
|
3115
|
-
return
|
|
3124
|
+
function oa(e) {
|
|
3125
|
+
return ct(e.storeName, () => {
|
|
3116
3126
|
var o;
|
|
3117
|
-
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) ?? sa;
|
|
3118
3128
|
function x(r) {
|
|
3119
3129
|
var T, b;
|
|
3120
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"}`;
|
|
@@ -3126,15 +3136,15 @@ function fa(e) {
|
|
|
3126
3136
|
if (!g && a.value[b] !== void 0)
|
|
3127
3137
|
return a.value[b] ?? null;
|
|
3128
3138
|
if (!g && h == !0) {
|
|
3129
|
-
const
|
|
3130
|
-
if (
|
|
3131
|
-
return a.value[b] =
|
|
3139
|
+
const B = await he().getItem(b);
|
|
3140
|
+
if (B != null && (e.api == null || parseFloat(B.meta.storedOn) > t - 7))
|
|
3141
|
+
return a.value[b] = B, B;
|
|
3132
3142
|
}
|
|
3133
3143
|
if (e.api == null)
|
|
3134
3144
|
return a.value[b];
|
|
3135
3145
|
try {
|
|
3136
|
-
let
|
|
3137
|
-
|
|
3146
|
+
let B = i.value[b];
|
|
3147
|
+
B == null && (B = new Promise(async (A, C) => {
|
|
3138
3148
|
var S;
|
|
3139
3149
|
try {
|
|
3140
3150
|
let I = await ((S = e.api) == null ? void 0 : S.getAll(r));
|
|
@@ -3147,11 +3157,11 @@ function fa(e) {
|
|
|
3147
3157
|
} finally {
|
|
3148
3158
|
delete i.value[b];
|
|
3149
3159
|
}
|
|
3150
|
-
}), i.value[b] =
|
|
3151
|
-
const P = await
|
|
3160
|
+
}), i.value[b] = B);
|
|
3161
|
+
const P = await B;
|
|
3152
3162
|
return a.value[b] = P, P;
|
|
3153
|
-
} catch (
|
|
3154
|
-
let P =
|
|
3163
|
+
} catch (B) {
|
|
3164
|
+
let P = B;
|
|
3155
3165
|
throw new Error(P.message ?? "Problem");
|
|
3156
3166
|
}
|
|
3157
3167
|
}
|
|
@@ -3169,14 +3179,14 @@ function fa(e) {
|
|
|
3169
3179
|
return a.value[T];
|
|
3170
3180
|
try {
|
|
3171
3181
|
let g = i.value[T];
|
|
3172
|
-
g == null && (g = new Promise(async (
|
|
3182
|
+
g == null && (g = new Promise(async (B, P) => {
|
|
3173
3183
|
var A;
|
|
3174
3184
|
try {
|
|
3175
3185
|
let C = await ((A = e.api) == null ? void 0 : A.get(r));
|
|
3176
3186
|
h == !0 && await he().setItem(T, {
|
|
3177
3187
|
meta: { storedOn: t },
|
|
3178
3188
|
...C
|
|
3179
|
-
}),
|
|
3189
|
+
}), B(C);
|
|
3180
3190
|
} catch (C) {
|
|
3181
3191
|
P(C);
|
|
3182
3192
|
} finally {
|
|
@@ -3190,7 +3200,7 @@ function fa(e) {
|
|
|
3190
3200
|
throw new Error(_.message ?? "Problem");
|
|
3191
3201
|
}
|
|
3192
3202
|
}
|
|
3193
|
-
async function
|
|
3203
|
+
async function U(r) {
|
|
3194
3204
|
r.additionalUrl ?? (r.additionalUrl = "/patch");
|
|
3195
3205
|
const T = x(r);
|
|
3196
3206
|
let b;
|
|
@@ -3209,8 +3219,8 @@ function fa(e) {
|
|
|
3209
3219
|
g != null && (g.data = { ...g.data, ...b }, h == !0 && await he().setItem(T, {
|
|
3210
3220
|
meta: { storedOn: t },
|
|
3211
3221
|
...g
|
|
3212
|
-
})), b.id != null && b.rowVersion != null && Object.entries(a.value).forEach((
|
|
3213
|
-
let P =
|
|
3222
|
+
})), b.id != null && b.rowVersion != null && Object.entries(a.value).forEach((B) => {
|
|
3223
|
+
let P = B[1];
|
|
3214
3224
|
if (P = P.data, P != null)
|
|
3215
3225
|
if (Array.isArray(P))
|
|
3216
3226
|
for (let A = 0; A < P.length; A++) {
|
|
@@ -3218,7 +3228,7 @@ function fa(e) {
|
|
|
3218
3228
|
C.id == b.id && P.splice(A, 1, { ...C, ...b });
|
|
3219
3229
|
}
|
|
3220
3230
|
else
|
|
3221
|
-
P.id == b.id && (a.value[
|
|
3231
|
+
P.id == b.id && (a.value[B[0]].data = { ...P, ...b });
|
|
3222
3232
|
});
|
|
3223
3233
|
}
|
|
3224
3234
|
return b;
|
|
@@ -3270,7 +3280,7 @@ function fa(e) {
|
|
|
3270
3280
|
deleteItem: y,
|
|
3271
3281
|
get: N,
|
|
3272
3282
|
getAll: E,
|
|
3273
|
-
patch:
|
|
3283
|
+
patch: U,
|
|
3274
3284
|
post: $,
|
|
3275
3285
|
restore: l,
|
|
3276
3286
|
searchMemory: a
|
|
@@ -3278,14 +3288,14 @@ function fa(e) {
|
|
|
3278
3288
|
};
|
|
3279
3289
|
});
|
|
3280
3290
|
}
|
|
3281
|
-
function
|
|
3282
|
-
return
|
|
3291
|
+
function Kr(e) {
|
|
3292
|
+
return ct(e.storeName, () => {
|
|
3283
3293
|
const t = Y(), a = Y(0), i = ce.utc().toSeconds() / 3600, h = Y(), d = Y(), x = Y({}), E = e.storageMode == "local-cache";
|
|
3284
3294
|
function N() {
|
|
3285
3295
|
var g;
|
|
3286
3296
|
return `${e.storeName}_${((g = e.auth) == null ? void 0 : g.credentials.value.userID) ?? "no-user-id"}`;
|
|
3287
3297
|
}
|
|
3288
|
-
async function
|
|
3298
|
+
async function U() {
|
|
3289
3299
|
E == !0 && await he().setItem(N(), {
|
|
3290
3300
|
meta: d.value,
|
|
3291
3301
|
data: t.value,
|
|
@@ -3295,7 +3305,7 @@ function Jr(e) {
|
|
|
3295
3305
|
}
|
|
3296
3306
|
function $(g) {
|
|
3297
3307
|
const _ = N();
|
|
3298
|
-
return x.value[_] || (x.value[_] = new Promise(async (
|
|
3308
|
+
return x.value[_] || (x.value[_] = new Promise(async (B, P) => {
|
|
3299
3309
|
var A, C;
|
|
3300
3310
|
try {
|
|
3301
3311
|
let S = await ((C = e.api) == null ? void 0 : C.getAll({
|
|
@@ -3312,7 +3322,7 @@ function Jr(e) {
|
|
|
3312
3322
|
}), a.value = t.value.length, d.value = {
|
|
3313
3323
|
lastUpdate: ce.utc().toString(),
|
|
3314
3324
|
storedOn: i.toString()
|
|
3315
|
-
}, await
|
|
3325
|
+
}, await U(), B(S));
|
|
3316
3326
|
} catch (S) {
|
|
3317
3327
|
P(S);
|
|
3318
3328
|
} finally {
|
|
@@ -3322,14 +3332,14 @@ function Jr(e) {
|
|
|
3322
3332
|
}
|
|
3323
3333
|
async function y(g) {
|
|
3324
3334
|
var P, A, C;
|
|
3325
|
-
const _ = N(),
|
|
3326
|
-
if (g.nav ?? (g.nav = e.storeName), !
|
|
3335
|
+
const _ = N(), B = g.refresh;
|
|
3336
|
+
if (g.nav ?? (g.nav = e.storeName), !B && t.value != null)
|
|
3327
3337
|
return {
|
|
3328
3338
|
count: (P = t.value) == null ? void 0 : P.length,
|
|
3329
3339
|
data: t.value,
|
|
3330
3340
|
filters: []
|
|
3331
3341
|
};
|
|
3332
|
-
if (!
|
|
3342
|
+
if (!B && E == !0) {
|
|
3333
3343
|
const S = await he().getItem(_);
|
|
3334
3344
|
if (S != null && parseFloat(S.meta.storedOn) > i - 12)
|
|
3335
3345
|
return t.value = S.data, a.value = S.data.length, h.value = S.filters ?? [], d.value = S.meta, {
|
|
@@ -3354,12 +3364,12 @@ function Jr(e) {
|
|
|
3354
3364
|
}
|
|
3355
3365
|
async function l(g) {
|
|
3356
3366
|
var P, A;
|
|
3357
|
-
const _ = N(),
|
|
3358
|
-
if (g.nav ?? (g.nav = e.storeName), !
|
|
3367
|
+
const _ = N(), B = g.refresh;
|
|
3368
|
+
if (g.nav ?? (g.nav = e.storeName), !B && t.value != null)
|
|
3359
3369
|
return {
|
|
3360
3370
|
data: t.value.find((C) => C.id == g.id)
|
|
3361
3371
|
};
|
|
3362
|
-
if (!
|
|
3372
|
+
if (!B && E == !0) {
|
|
3363
3373
|
const C = await he().getItem(_);
|
|
3364
3374
|
if (C != null && parseFloat(C.meta.storedOn) > i - 12) {
|
|
3365
3375
|
t.value = C.data, a.value = C.data.length, h.value = C.filters ?? [], d.value = C.meta;
|
|
@@ -3381,7 +3391,7 @@ function Jr(e) {
|
|
|
3381
3391
|
}
|
|
3382
3392
|
}
|
|
3383
3393
|
async function o(g) {
|
|
3384
|
-
var
|
|
3394
|
+
var B, P, A;
|
|
3385
3395
|
g.additionalUrl ?? (g.additionalUrl = "/patch"), g.nav ?? (g.nav = e.storeName);
|
|
3386
3396
|
let _;
|
|
3387
3397
|
if (e.api != null)
|
|
@@ -3395,13 +3405,13 @@ function Jr(e) {
|
|
|
3395
3405
|
else
|
|
3396
3406
|
_ = g.data;
|
|
3397
3407
|
if (_ != null) {
|
|
3398
|
-
let C = (
|
|
3399
|
-
C != null && C >= 0 && (t.value ?? (t.value = []), (P = t.value) == null || P.splice(C, 1, _), await
|
|
3408
|
+
let C = (B = t.value) == null ? void 0 : B.findIndex((S) => S.id == _.id);
|
|
3409
|
+
C != null && C >= 0 && (t.value ?? (t.value = []), (P = t.value) == null || P.splice(C, 1, _), await U());
|
|
3400
3410
|
}
|
|
3401
3411
|
return (A = t.value) == null ? void 0 : A.find((C) => C.id == (g.id ?? g.data.id));
|
|
3402
3412
|
}
|
|
3403
3413
|
async function r(g) {
|
|
3404
|
-
var
|
|
3414
|
+
var B, P;
|
|
3405
3415
|
g.additionalUrl ?? (g.additionalUrl = "/post"), g.nav ?? (g.nav = e.storeName);
|
|
3406
3416
|
let _;
|
|
3407
3417
|
if (e.api != null)
|
|
@@ -3414,10 +3424,10 @@ function Jr(e) {
|
|
|
3414
3424
|
}
|
|
3415
3425
|
else
|
|
3416
3426
|
_ = g.data;
|
|
3417
|
-
return _ != null && (t.value ?? (t.value = []), (
|
|
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((A) => A.id == (g.id ?? g.data.id));
|
|
3418
3428
|
}
|
|
3419
3429
|
async function T(g) {
|
|
3420
|
-
var
|
|
3430
|
+
var B, P;
|
|
3421
3431
|
if (g.additionalUrl ?? (g.additionalUrl = "/delete"), g.nav ?? (g.nav = e.storeName), e.api != null)
|
|
3422
3432
|
try {
|
|
3423
3433
|
let A = await e.api.deleteItem(g);
|
|
@@ -3429,8 +3439,8 @@ function Jr(e) {
|
|
|
3429
3439
|
}
|
|
3430
3440
|
const _ = g.id ?? g.data.id;
|
|
3431
3441
|
if (_ != null) {
|
|
3432
|
-
let A = (
|
|
3433
|
-
A != null && A >= 0 && (t.value ?? (t.value = []), (P = t.value) == null || P.splice(A, 1), await
|
|
3442
|
+
let A = (B = t.value) == null ? void 0 : B.findIndex((C) => C.id == _);
|
|
3443
|
+
A != null && A >= 0 && (t.value ?? (t.value = []), (P = t.value) == null || P.splice(A, 1), await U());
|
|
3434
3444
|
}
|
|
3435
3445
|
}
|
|
3436
3446
|
async function b(g) {
|
|
@@ -3438,17 +3448,17 @@ function Jr(e) {
|
|
|
3438
3448
|
if (g.additionalUrl ?? (g.additionalUrl = `/patch/restore?id=${g.data.id}`), g.nav ?? (g.nav = e.storeName), e.api != null)
|
|
3439
3449
|
try {
|
|
3440
3450
|
await e.api.patch(g);
|
|
3441
|
-
} catch (
|
|
3442
|
-
let P =
|
|
3451
|
+
} catch (B) {
|
|
3452
|
+
let P = B;
|
|
3443
3453
|
throw new Error(P.message ?? "Patch Problem");
|
|
3444
3454
|
}
|
|
3445
3455
|
try {
|
|
3446
3456
|
g.additionalUrl = "/getAll", await $(g);
|
|
3447
|
-
} catch (
|
|
3448
|
-
let P =
|
|
3457
|
+
} catch (B) {
|
|
3458
|
+
let P = B;
|
|
3449
3459
|
throw new Error(P.message ?? "Problem");
|
|
3450
3460
|
}
|
|
3451
|
-
return (_ = t.value) == null ? void 0 : _.find((
|
|
3461
|
+
return (_ = t.value) == null ? void 0 : _.find((B) => B.id == (g.id ?? g.data.id));
|
|
3452
3462
|
}
|
|
3453
3463
|
return {
|
|
3454
3464
|
deleteItem: T,
|
|
@@ -3460,44 +3470,44 @@ function Jr(e) {
|
|
|
3460
3470
|
};
|
|
3461
3471
|
});
|
|
3462
3472
|
}
|
|
3463
|
-
function
|
|
3473
|
+
function eu(e, t, a) {
|
|
3464
3474
|
var Le;
|
|
3465
|
-
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(), E =
|
|
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(), E = dt(), N = Xn(), U = Y(1), $ = J(e.customFilters) ?? [], y = Y([]);
|
|
3466
3476
|
let l = Y(new Array());
|
|
3467
3477
|
const o = le(() => An([
|
|
3468
3478
|
...$.filter((W) => W.name != null).map((W) => W.name),
|
|
3469
3479
|
...e.defaultFilters ?? [],
|
|
3470
3480
|
...y.value
|
|
3471
|
-
]).value), r = Y((e.defaultFilters ?? []).map((W) => o.value.indexOf(W))), T = le(() =>
|
|
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(() => {
|
|
3472
3482
|
var W;
|
|
3473
3483
|
return J(e.proxyID) ?? (b != null ? (W = N.query) == null ? void 0 : W[b] : void 0);
|
|
3474
|
-
}), _ = J(e.searchQueryKey),
|
|
3484
|
+
}), _ = J(e.searchQueryKey), B = Y(_ != null ? (Le = N.query) == null ? void 0 : Le[_] : void 0), P = Y(J(e.startShowingInactive) ?? !1), A = Y(J(e.sortOrder)), C = le(() => [
|
|
3475
3485
|
...e.searchProps ?? [],
|
|
3476
3486
|
...(e.headers ?? []).filter((W) => W.searchable != null && W.value != null).map((W) => W.value ?? "")
|
|
3477
3487
|
]), S = Y([]), I = De([]), m = Y([]);
|
|
3478
3488
|
let w;
|
|
3479
|
-
const { actionErrorMsg: q, actionLoadingMsg: H, deleteItem: ee, doAction: ie, getItem: Ee, getAllItems: k, restoreItem: z } =
|
|
3489
|
+
const { actionErrorMsg: q, actionLoadingMsg: H, deleteItem: ee, doAction: ie, getItem: Ee, getAllItems: k, restoreItem: z } = Bn({
|
|
3480
3490
|
nav: e.nav ?? e.bladeName ?? e.itemBladeName,
|
|
3481
3491
|
proxyID: g.value,
|
|
3482
|
-
store:
|
|
3492
|
+
store: ia({
|
|
3483
3493
|
storeMode: i,
|
|
3484
3494
|
storageMode: h,
|
|
3485
3495
|
storeName: d
|
|
3486
3496
|
})
|
|
3487
|
-
}), V = le(() => e.errorMsg ?? q.value), ue = le(() => e.loadingMsg ?? H.value), Z = le(() => ue.value != null), p = De(!1), fe = De(e.showSearch ?? !1), de = Y(0), ge = le(() => (W) => e.onCanDelete != null ? e.onCanDelete(W) : !(W != null && W.isInactive === !0)),
|
|
3497
|
+
}), V = le(() => e.errorMsg ?? q.value), ue = le(() => e.loadingMsg ?? H.value), Z = le(() => ue.value != null), p = De(!1), fe = De(e.showSearch ?? !1), de = Y(0), ge = le(() => (W) => e.onCanDelete != null ? e.onCanDelete(W) : !(W != null && W.isInactive === !0)), Ke = le(() => (W) => P.value ? e.onCanRestore != null ? e.onCanRestore(W) : (W == null ? void 0 : W.isInactive) === !0 : !1), Ce = le(() => m.value.filter((W) => !W.hide)), Qe = le(() => {
|
|
3488
3498
|
let W = new Array();
|
|
3489
3499
|
return Ce.value.filter((K) => K.sublevel != null).forEach((K) => {
|
|
3490
3500
|
let O = W.find((ye) => ye.position == K.sublevel);
|
|
3491
3501
|
O == null ? W.push({ position: K.sublevel ?? 0, values: [K] }) : O.values.push(K);
|
|
3492
3502
|
}), W.sort($e.firstBy((K) => K.position));
|
|
3493
|
-
}),
|
|
3503
|
+
}), Xe = le(() => {
|
|
3494
3504
|
let W = new Array();
|
|
3495
3505
|
return Ce.value.filter((K) => K.level != null).forEach((K) => {
|
|
3496
3506
|
let O = W.find((ye) => ye.position == K.level);
|
|
3497
3507
|
O == null ? W.push({ position: K.level ?? 0, values: [K] }) : O.values.push(K);
|
|
3498
3508
|
}), W.sort($e.firstBy((K) => K.position));
|
|
3499
|
-
}),
|
|
3500
|
-
function
|
|
3509
|
+
}), Oe = le(() => []);
|
|
3510
|
+
function pe(W) {
|
|
3501
3511
|
if (e.itemBladeName != null) {
|
|
3502
3512
|
let re = {
|
|
3503
3513
|
bladeName: e.itemBladeName,
|
|
@@ -3510,7 +3520,7 @@ function Xa(e, t, a) {
|
|
|
3510
3520
|
});
|
|
3511
3521
|
}
|
|
3512
3522
|
}
|
|
3513
|
-
function
|
|
3523
|
+
function er(W) {
|
|
3514
3524
|
const {
|
|
3515
3525
|
additionalUrl: re,
|
|
3516
3526
|
onDeleteAsync: K
|
|
@@ -3541,7 +3551,7 @@ function Xa(e, t, a) {
|
|
|
3541
3551
|
requireConfirmation: !0
|
|
3542
3552
|
}), t && t("deleted", W);
|
|
3543
3553
|
}
|
|
3544
|
-
function
|
|
3554
|
+
function rr(W) {
|
|
3545
3555
|
z({
|
|
3546
3556
|
data: J(W),
|
|
3547
3557
|
additionalUrl: e.additionalUrl,
|
|
@@ -3553,16 +3563,16 @@ function Xa(e, t, a) {
|
|
|
3553
3563
|
// ...(useBladeSrc ? bladeData.value : {})
|
|
3554
3564
|
});
|
|
3555
3565
|
}
|
|
3556
|
-
function
|
|
3566
|
+
function tr() {
|
|
3557
3567
|
ie(() => {
|
|
3558
3568
|
x.exportToCSV(Ce.value, I.value);
|
|
3559
3569
|
}, { loadingMsg: "Exporting to CSV" });
|
|
3560
3570
|
}
|
|
3561
|
-
function
|
|
3571
|
+
function Be() {
|
|
3562
3572
|
let W = J(S);
|
|
3563
|
-
if (W = e.onFilter ? e.onFilter(W) : W,
|
|
3573
|
+
if (W = e.onFilter ? e.onFilter(W) : W, B.value != null && B.value.length > 0) {
|
|
3564
3574
|
let re = [...C.value];
|
|
3565
|
-
e.itemText && re.push(e.itemText), Re(re) && (W = W.filter((K) => jn(K,
|
|
3575
|
+
e.itemText && re.push(e.itemText), Re(re) && (W = W.filter((K) => jn(K, B.value, re)));
|
|
3566
3576
|
}
|
|
3567
3577
|
I.value = W;
|
|
3568
3578
|
}
|
|
@@ -3570,7 +3580,7 @@ function Xa(e, t, a) {
|
|
|
3570
3580
|
e.headers != null && (m.value = [...e.headers], e.hideActions || m.value.push({ title: "Actions", value: "itemActions", align: "end" }));
|
|
3571
3581
|
}
|
|
3572
3582
|
async function xe(W) {
|
|
3573
|
-
if (p.value = !1, (W == null ? void 0 : W.resetSearch) === !0 && (fe.value = e.showSearch ?? !1,
|
|
3583
|
+
if (p.value = !1, (W == null ? void 0 : W.resetSearch) === !0 && (fe.value = e.showSearch ?? !1, B.value = void 0), e.items != null) {
|
|
3574
3584
|
S.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
|
|
3575
3585
|
return;
|
|
3576
3586
|
}
|
|
@@ -3598,7 +3608,7 @@ function Xa(e, t, a) {
|
|
|
3598
3608
|
});
|
|
3599
3609
|
S.value = K;
|
|
3600
3610
|
}
|
|
3601
|
-
|
|
3611
|
+
Be();
|
|
3602
3612
|
}
|
|
3603
3613
|
function We(W, re) {
|
|
3604
3614
|
const K = J(W);
|
|
@@ -3618,40 +3628,40 @@ function Xa(e, t, a) {
|
|
|
3618
3628
|
}
|
|
3619
3629
|
}
|
|
3620
3630
|
function Ne() {
|
|
3621
|
-
fe.value ? (fe.value = e.showSearch ?? !1,
|
|
3631
|
+
fe.value ? (fe.value = e.showSearch ?? !1, B.value = void 0, xe()) : fe.value = e.showSearch ?? !0;
|
|
3622
3632
|
}
|
|
3623
|
-
return we(), In([
|
|
3624
|
-
|
|
3625
|
-
}, { debounce: 500, maxWait: 500 }), Se([P,
|
|
3633
|
+
return we(), In([B], () => {
|
|
3634
|
+
Be();
|
|
3635
|
+
}, { debounce: 500, maxWait: 500 }), Se([P, U], async () => {
|
|
3626
3636
|
await xe();
|
|
3627
3637
|
}), Se([V, () => e.errorMsg], ([W, re]) => {
|
|
3628
3638
|
p.value = W != null || re != null;
|
|
3629
3639
|
}), Se(() => e.refreshToggle, () => {
|
|
3630
3640
|
xe({ deepRefresh: !0 });
|
|
3631
|
-
}),
|
|
3632
|
-
|
|
3633
|
-
}),
|
|
3641
|
+
}), st([S, () => e.items], () => {
|
|
3642
|
+
Be();
|
|
3643
|
+
}), Tr(async () => {
|
|
3634
3644
|
var W;
|
|
3635
3645
|
e.eager == !0 && await xe({ deepRefresh: ((W = N.params) == null ? void 0 : W.refresh) == "true" });
|
|
3636
3646
|
}), {
|
|
3637
|
-
add:
|
|
3647
|
+
add: pe,
|
|
3638
3648
|
asyncItems: S,
|
|
3639
|
-
currentPage:
|
|
3640
|
-
deleteItem:
|
|
3641
|
-
displayHeaders:
|
|
3649
|
+
currentPage: U,
|
|
3650
|
+
deleteItem: er,
|
|
3651
|
+
displayHeaders: Oe,
|
|
3642
3652
|
errorMsg: V,
|
|
3643
|
-
exportToCSV:
|
|
3653
|
+
exportToCSV: tr,
|
|
3644
3654
|
filteredItems: I,
|
|
3645
3655
|
filters: o,
|
|
3646
3656
|
filtersChanged: T,
|
|
3647
3657
|
headerOptions: m,
|
|
3648
3658
|
isDeletable: ge,
|
|
3649
3659
|
isLoading: Z,
|
|
3650
|
-
isRestorable:
|
|
3660
|
+
isRestorable: Ke,
|
|
3651
3661
|
loadingMsg: ue,
|
|
3652
3662
|
refresh: xe,
|
|
3653
|
-
restoreItem:
|
|
3654
|
-
searchString:
|
|
3663
|
+
restoreItem: rr,
|
|
3664
|
+
searchString: B,
|
|
3655
3665
|
selectedFilters: r,
|
|
3656
3666
|
selectItem: We,
|
|
3657
3667
|
serverFilters: y,
|
|
@@ -3659,19 +3669,19 @@ function Xa(e, t, a) {
|
|
|
3659
3669
|
showInactive: P,
|
|
3660
3670
|
showSearch: fe,
|
|
3661
3671
|
sortOrder: A,
|
|
3662
|
-
subtitleOptions:
|
|
3672
|
+
subtitleOptions: Qe,
|
|
3663
3673
|
tableHeaders: Ce,
|
|
3664
|
-
titleOptions:
|
|
3674
|
+
titleOptions: Xe,
|
|
3665
3675
|
toggleSearch: Ne,
|
|
3666
3676
|
totalPages: de
|
|
3667
3677
|
};
|
|
3668
3678
|
}
|
|
3669
|
-
const
|
|
3670
|
-
let
|
|
3671
|
-
function
|
|
3672
|
-
return
|
|
3679
|
+
const Qr = Y(!0), Xr = Y(!1), Or = Y(), or = Y(!1);
|
|
3680
|
+
let hr = null, _r;
|
|
3681
|
+
function ru() {
|
|
3682
|
+
return _r;
|
|
3673
3683
|
}
|
|
3674
|
-
function
|
|
3684
|
+
function ha(e) {
|
|
3675
3685
|
const t = e.defaultCacheExpiryHours ?? 7;
|
|
3676
3686
|
e.getDisplayName ?? (e.getDisplayName = (l) => {
|
|
3677
3687
|
if (l.displayName != null)
|
|
@@ -3700,7 +3710,7 @@ function sa(e) {
|
|
|
3700
3710
|
return (o = E(l)) == null ? void 0 : o.icon;
|
|
3701
3711
|
}
|
|
3702
3712
|
function E(l) {
|
|
3703
|
-
return l == null ? null : typeof l != "string" ? l :
|
|
3713
|
+
return l == null ? null : typeof l != "string" ? l : ht(a, (r) => r.children).find((r) => {
|
|
3704
3714
|
var T;
|
|
3705
3715
|
return r.name == l || r.singleName == l || ((T = r.aliases) == null ? void 0 : T.some((b) => b == l));
|
|
3706
3716
|
}) ?? null;
|
|
@@ -3712,7 +3722,7 @@ function sa(e) {
|
|
|
3712
3722
|
let r = On(o.microservice ?? "default") ?? "";
|
|
3713
3723
|
return o.path != null && (r = Te(r, o.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
|
|
3714
3724
|
}
|
|
3715
|
-
function
|
|
3725
|
+
function U(l) {
|
|
3716
3726
|
const o = E(l);
|
|
3717
3727
|
if ((o == null ? void 0 : o.singleName) != null)
|
|
3718
3728
|
return o.singleName;
|
|
@@ -3728,15 +3738,15 @@ function sa(e) {
|
|
|
3728
3738
|
if (l == null)
|
|
3729
3739
|
return;
|
|
3730
3740
|
const o = typeof l == "string" ? E(l) : l;
|
|
3731
|
-
|
|
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) => {
|
|
3732
3742
|
r.preventDefault();
|
|
3733
3743
|
}));
|
|
3734
3744
|
}
|
|
3735
|
-
return
|
|
3736
|
-
showAppBar:
|
|
3737
|
-
showAppNavigation:
|
|
3738
|
-
backgroundName:
|
|
3739
|
-
hesitate:
|
|
3745
|
+
return _r = {
|
|
3746
|
+
showAppBar: Qr,
|
|
3747
|
+
showAppNavigation: Xr,
|
|
3748
|
+
backgroundName: Or,
|
|
3749
|
+
hesitate: or,
|
|
3740
3750
|
navigationItems: a,
|
|
3741
3751
|
findArchiveName: i,
|
|
3742
3752
|
findCacheHours: h,
|
|
@@ -3745,70 +3755,70 @@ function sa(e) {
|
|
|
3745
3755
|
findItem: E,
|
|
3746
3756
|
findStoreName: $,
|
|
3747
3757
|
findPath: N,
|
|
3748
|
-
findSingleDisplay:
|
|
3758
|
+
findSingleDisplay: U,
|
|
3749
3759
|
updateNavigationProperties: y
|
|
3750
|
-
},
|
|
3760
|
+
}, _r;
|
|
3751
3761
|
}
|
|
3752
|
-
let
|
|
3753
|
-
function
|
|
3754
|
-
return
|
|
3762
|
+
let Dr;
|
|
3763
|
+
function tu(e) {
|
|
3764
|
+
return Dr.usePresets(e);
|
|
3755
3765
|
}
|
|
3756
|
-
function
|
|
3766
|
+
function da(e) {
|
|
3757
3767
|
function t(a) {
|
|
3758
3768
|
if (!a)
|
|
3759
3769
|
return {};
|
|
3760
3770
|
let i = a;
|
|
3761
3771
|
return e.presets[i] ?? {};
|
|
3762
3772
|
}
|
|
3763
|
-
return
|
|
3773
|
+
return Dr = {
|
|
3764
3774
|
usePresets: t
|
|
3765
|
-
},
|
|
3775
|
+
}, Dr;
|
|
3766
3776
|
}
|
|
3767
|
-
let
|
|
3768
|
-
const
|
|
3769
|
-
let
|
|
3770
|
-
function
|
|
3771
|
-
return
|
|
3777
|
+
let pr, et, rt, tt = !1;
|
|
3778
|
+
const dr = Y(!1), mr = Y(!1), nt = Y(), Ye = Y();
|
|
3779
|
+
let xr;
|
|
3780
|
+
function nu() {
|
|
3781
|
+
return xr;
|
|
3772
3782
|
}
|
|
3773
|
-
function
|
|
3783
|
+
function ma() {
|
|
3774
3784
|
function e(x) {
|
|
3775
|
-
Ye.value = x.detail,
|
|
3785
|
+
Ye.value = x.detail, mr.value = !0;
|
|
3776
3786
|
}
|
|
3777
3787
|
function t() {
|
|
3778
|
-
|
|
3788
|
+
tt || (tt = !0, window.location.reload());
|
|
3779
3789
|
}
|
|
3780
3790
|
function a() {
|
|
3781
3791
|
var x;
|
|
3782
|
-
(x =
|
|
3792
|
+
(x = nt.value) == null || x.prompt(), dr.value = !1;
|
|
3783
3793
|
}
|
|
3784
3794
|
function i() {
|
|
3785
3795
|
return !!window.matchMedia("(display-mode: standalone)").matches;
|
|
3786
3796
|
}
|
|
3787
3797
|
function h(x) {
|
|
3788
|
-
x.preventDefault(),
|
|
3798
|
+
x.preventDefault(), dr.value = !0, nt.value = x;
|
|
3789
3799
|
}
|
|
3790
3800
|
function d() {
|
|
3791
|
-
|
|
3801
|
+
mr.value = !1, !(!Ye.value || !Ye.value.waiting) && Ye.value.waiting.postMessage({ type: "SKIP_WAITING" });
|
|
3792
3802
|
}
|
|
3793
|
-
return
|
|
3794
|
-
|
|
3795
|
-
}),
|
|
3796
|
-
canInstallApp:
|
|
3797
|
-
canUpdateApp:
|
|
3803
|
+
return Cr(() => {
|
|
3804
|
+
pr == null && (pr = document.addEventListener("swUpdated", e, { once: !0 })), et == null && (et = navigator.serviceWorker.addEventListener("controllerchange", t)), rt == null && (rt = window.addEventListener("beforeinstallprompt", h));
|
|
3805
|
+
}), xr = {
|
|
3806
|
+
canInstallApp: dr,
|
|
3807
|
+
canUpdateApp: mr,
|
|
3798
3808
|
installApp: a,
|
|
3799
3809
|
isInstalled: i,
|
|
3800
3810
|
updateApp: d
|
|
3801
|
-
},
|
|
3811
|
+
}, xr;
|
|
3802
3812
|
}
|
|
3803
|
-
const
|
|
3804
|
-
function
|
|
3805
|
-
let a, i = t.handleWidth ?? 12, h = t.handleZIndex ?? 100, d = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, E = t.minHeight ?? 0, N = t.maxHeight ?? Number.MAX_SAFE_INTEGER,
|
|
3813
|
+
const va = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
|
|
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, E = t.minHeight ?? 0, N = t.maxHeight ?? Number.MAX_SAFE_INTEGER, U = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, y, l = [];
|
|
3806
3816
|
const o = Y(!1);
|
|
3807
3817
|
let r = [], T = [];
|
|
3808
3818
|
const b = Y(!1), g = Y({ x: 0, y: 0 });
|
|
3809
|
-
let _ = { left: 0, top: 0, height: 0, width: 0, position: "absolute" },
|
|
3819
|
+
let _ = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, B = {};
|
|
3810
3820
|
function P(k) {
|
|
3811
|
-
ne(
|
|
3821
|
+
ne(U) && k.preventDefault(), ne($) && k.stopPropagation();
|
|
3812
3822
|
}
|
|
3813
3823
|
function A(k, z) {
|
|
3814
3824
|
l = z.map(S), l.forEach((V) => k.$el.appendChild(V));
|
|
@@ -3833,7 +3843,7 @@ function ru(e, t = {}) {
|
|
|
3833
3843
|
top: V.offsetTop,
|
|
3834
3844
|
height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
|
|
3835
3845
|
width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
|
|
3836
|
-
},
|
|
3846
|
+
}, B = Lr(_), ((fe = t.onStart) == null ? void 0 : fe.call(t, g.value, k)) === !1)
|
|
3837
3847
|
return;
|
|
3838
3848
|
let p = k.target;
|
|
3839
3849
|
document.documentElement.style.cursor = q(p.dataset.handle), y = p.dataset.handle, T.push(oe("mousemove", m)), T.push(oe("mouseup", w)), T.push(oe("touchmove", m)), T.push(oe("touchend", w)), P(k);
|
|
@@ -3847,21 +3857,21 @@ function ru(e, t = {}) {
|
|
|
3847
3857
|
const de = ne(_);
|
|
3848
3858
|
if (y.includes("t")) {
|
|
3849
3859
|
const ge = Math.min(N, Math.max(E, (de.height ?? 0) - fe));
|
|
3850
|
-
|
|
3860
|
+
B.height = ge, B.top = (de.top ?? 0) + fe;
|
|
3851
3861
|
}
|
|
3852
3862
|
if (y.includes("b")) {
|
|
3853
3863
|
const ge = Math.min(N, Math.max(E, (de.height ?? 0) + fe));
|
|
3854
|
-
|
|
3864
|
+
B.height = ge;
|
|
3855
3865
|
}
|
|
3856
3866
|
if (y.includes("l")) {
|
|
3857
3867
|
const ge = Math.min(x, Math.max(d, (de.width ?? 0) - p));
|
|
3858
|
-
|
|
3868
|
+
B.width = ge, B.left = (de.left ?? 0) + p;
|
|
3859
3869
|
}
|
|
3860
3870
|
if (y.includes("r")) {
|
|
3861
3871
|
const ge = Math.min(x, Math.max(d, (de.width ?? 0) + p));
|
|
3862
|
-
|
|
3872
|
+
B.width = ge;
|
|
3863
3873
|
}
|
|
3864
|
-
V.dispatchEvent(new CustomEvent("resize")), P(k), ee(
|
|
3874
|
+
V.dispatchEvent(new CustomEvent("resize")), P(k), ee(B);
|
|
3865
3875
|
}
|
|
3866
3876
|
function w() {
|
|
3867
3877
|
document.documentElement.style.cursor = "", y = null, T.forEach((k) => {
|
|
@@ -3907,19 +3917,19 @@ function ru(e, t = {}) {
|
|
|
3907
3917
|
position: "absolute"
|
|
3908
3918
|
}, ee(_), V.offsetHeight;
|
|
3909
3919
|
const ue = _;
|
|
3910
|
-
k == "freestyle" ?
|
|
3920
|
+
k == "freestyle" ? B = {
|
|
3911
3921
|
height: ue.height,
|
|
3912
3922
|
width: (ue.width ?? 100) / 2,
|
|
3913
3923
|
top: (ue.top ?? 0) + 2,
|
|
3914
3924
|
left: (ue.left ?? 0) + 2,
|
|
3915
3925
|
position: "absolute"
|
|
3916
|
-
} : k == "blade" && (
|
|
3926
|
+
} : k == "blade" && (B = {
|
|
3917
3927
|
height: ue.height,
|
|
3918
3928
|
width: (ue.width ?? 100) / 2,
|
|
3919
3929
|
top: (ue.top ?? 0) + 2,
|
|
3920
3930
|
left: (ue.left ?? 0) + 2,
|
|
3921
3931
|
position: "absolute"
|
|
3922
|
-
}), ee(
|
|
3932
|
+
}), ee(B), oe(V, "transitionend", () => {
|
|
3923
3933
|
V.style.transition = "", o.value = !1;
|
|
3924
3934
|
}, { once: !0 });
|
|
3925
3935
|
}
|
|
@@ -3935,7 +3945,7 @@ function ru(e, t = {}) {
|
|
|
3935
3945
|
if (b.value)
|
|
3936
3946
|
return;
|
|
3937
3947
|
const V = ne(e);
|
|
3938
|
-
V && (A(V, k ??
|
|
3948
|
+
V && (A(V, k ?? va), H(z), r.push(oe(V.$el, "mousedown", I)), r.push(oe(V.$el, "touchstart", I)), b.value = !0, a = z);
|
|
3939
3949
|
}
|
|
3940
3950
|
function Ee(k) {
|
|
3941
3951
|
if (!b.value)
|
|
@@ -3951,20 +3961,20 @@ function ru(e, t = {}) {
|
|
|
3951
3961
|
turnResizingOff: Ee
|
|
3952
3962
|
};
|
|
3953
3963
|
}
|
|
3954
|
-
function
|
|
3964
|
+
function uu(e) {
|
|
3955
3965
|
const t = [];
|
|
3956
3966
|
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) => Zn(a) || "Email must be valid")), t;
|
|
3957
3967
|
}
|
|
3958
|
-
function
|
|
3968
|
+
function lu(e, t) {
|
|
3959
3969
|
const a = Y(!1), i = cn(e);
|
|
3960
3970
|
let h = d(J(e));
|
|
3961
3971
|
(t == null ? void 0 : t.useTracker) !== !1 && Se(i, (E) => {
|
|
3962
3972
|
a.value = d(E) != h;
|
|
3963
3973
|
}, { deep: !0 });
|
|
3964
3974
|
function d(E) {
|
|
3965
|
-
const N =
|
|
3966
|
-
return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((
|
|
3967
|
-
delete N[
|
|
3975
|
+
const N = Lr(E);
|
|
3976
|
+
return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((U) => {
|
|
3977
|
+
delete N[U];
|
|
3968
3978
|
}) : t.propsToTrack != null && Object.keys(E).forEach(($) => {
|
|
3969
3979
|
t.propsToTrack.some((y) => y == $) || delete N[$];
|
|
3970
3980
|
})), JSON.stringify(N);
|
|
@@ -3978,13 +3988,13 @@ function nu(e, t) {
|
|
|
3978
3988
|
restartTracker: x
|
|
3979
3989
|
};
|
|
3980
3990
|
}
|
|
3981
|
-
function
|
|
3991
|
+
function cu(e) {
|
|
3982
3992
|
return {
|
|
3983
3993
|
install(t, a) {
|
|
3984
3994
|
var E;
|
|
3985
3995
|
console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = a.vuetifyInstance), ra(e);
|
|
3986
|
-
const i = aa(), h =
|
|
3987
|
-
|
|
3996
|
+
const i = aa(), h = ha(e);
|
|
3997
|
+
da(e), (E = e.auth).demo ?? (E.demo = i), e.auth.getAuthItem = h.findItem;
|
|
3988
3998
|
const d = ea(e.auth);
|
|
3989
3999
|
Jn({
|
|
3990
4000
|
auth: d,
|
|
@@ -3996,90 +4006,91 @@ function au(e) {
|
|
|
3996
4006
|
});
|
|
3997
4007
|
la({
|
|
3998
4008
|
dates: x
|
|
3999
|
-
}),
|
|
4009
|
+
}), ma(), pn(e.urls);
|
|
4000
4010
|
}
|
|
4001
4011
|
};
|
|
4002
4012
|
}
|
|
4003
4013
|
export {
|
|
4004
|
-
|
|
4005
|
-
|
|
4014
|
+
ka as DataURIToBlob,
|
|
4015
|
+
Pa as addWeekday,
|
|
4006
4016
|
Te as appendUrl,
|
|
4007
4017
|
$n as capitalizeWords,
|
|
4008
|
-
|
|
4018
|
+
xa as checkImage,
|
|
4009
4019
|
qn as containsSearch,
|
|
4010
|
-
|
|
4011
|
-
|
|
4020
|
+
Ma as containsWeekday,
|
|
4021
|
+
Lr as copyDeep,
|
|
4012
4022
|
Vn as copyItemByAlphabet,
|
|
4013
4023
|
Jn as createApi,
|
|
4014
4024
|
ea as createAuth,
|
|
4015
|
-
|
|
4025
|
+
cu as createCore,
|
|
4016
4026
|
ra as createCosmetics,
|
|
4017
4027
|
na as createDates,
|
|
4018
4028
|
aa as createDemo,
|
|
4019
4029
|
la as createFilters,
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4030
|
+
ha as createNavigation,
|
|
4031
|
+
ma as createPWA,
|
|
4032
|
+
da as createPresets,
|
|
4033
|
+
oa as createSessionStoreDefinition,
|
|
4034
|
+
pa as createStoreBuilder,
|
|
4024
4035
|
pn as createUrl,
|
|
4025
|
-
|
|
4036
|
+
Kr as createWholeLastUpdateStoreDefinition,
|
|
4026
4037
|
Gn as csvContains,
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4038
|
+
ja as csvDefaults,
|
|
4039
|
+
ht as deepSelect,
|
|
4040
|
+
Sa as distinct,
|
|
4041
|
+
Ea as extensionExists,
|
|
4031
4042
|
Hn as extractErrorDescription,
|
|
4032
4043
|
Fn as fromCamelCase,
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4044
|
+
Aa as getAreaAround,
|
|
4045
|
+
Ia as getAreaToLeft,
|
|
4046
|
+
_a as getAreaToRight,
|
|
4047
|
+
Da as getGoogleMapsLocationLine,
|
|
4048
|
+
Ta as getImageData,
|
|
4049
|
+
ot as getLocationLine,
|
|
4050
|
+
Ua as getMinDate,
|
|
4040
4051
|
Wn as getMinDateString,
|
|
4041
4052
|
zn as getRandomColor,
|
|
4042
4053
|
jn as hasSearch,
|
|
4043
|
-
|
|
4054
|
+
Ba as isArrayOfLength,
|
|
4044
4055
|
Re as isLengthyArray,
|
|
4045
4056
|
kn as isMinDate,
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4057
|
+
yr as nestedValue,
|
|
4058
|
+
Ra as removeWeekday,
|
|
4059
|
+
Fa as roundTo,
|
|
4060
|
+
Ca as toCamelCase,
|
|
4061
|
+
Wa as toCompareString,
|
|
4062
|
+
$a as toggleCSV,
|
|
4063
|
+
Ga as twiddleThumbs,
|
|
4064
|
+
Bn as useActions,
|
|
4054
4065
|
Rn as useActionsTracker,
|
|
4055
4066
|
Yn as useApi,
|
|
4056
|
-
|
|
4057
|
-
|
|
4067
|
+
qa as useAuth,
|
|
4068
|
+
Jr as useAuthUrl,
|
|
4058
4069
|
ta as useCSV,
|
|
4059
|
-
|
|
4070
|
+
Ha as useCosmetics,
|
|
4060
4071
|
On as useDataUrl,
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4072
|
+
Za as useDates,
|
|
4073
|
+
mt as useDbName,
|
|
4074
|
+
Ya as useDemo,
|
|
4075
|
+
Ja as useDocumentMeta,
|
|
4076
|
+
Ka as useDraggable,
|
|
4077
|
+
Qa as useFilters,
|
|
4067
4078
|
Mn as useId,
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4079
|
+
eu as useList,
|
|
4080
|
+
Xa as useLocalCache,
|
|
4081
|
+
za as useLocalCosmetics,
|
|
4071
4082
|
he as useLocalDb,
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4083
|
+
ru as useNavigation,
|
|
4084
|
+
nu as usePWA,
|
|
4085
|
+
tu as usePresets,
|
|
4086
|
+
au as useResizable,
|
|
4087
|
+
uu as useRules,
|
|
4088
|
+
Oa as useStore,
|
|
4089
|
+
ia as useStoreDefinition,
|
|
4090
|
+
lu as useTracker,
|
|
4091
|
+
Va as useUrls,
|
|
4081
4092
|
Zn as validEmail,
|
|
4082
4093
|
ke as weekdayPairs,
|
|
4083
|
-
|
|
4084
|
-
|
|
4094
|
+
La as weekdayShortName,
|
|
4095
|
+
Na as weekdayValue
|
|
4085
4096
|
};
|