bt-core-app 1.4.70 → 1.4.71
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 +649 -650
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ref as z, shallowRef as Re, computed as te, toValue as K, watch as
|
|
2
|
-
import { watchArray as
|
|
3
|
-
import { defineStore as
|
|
4
|
-
import { DateTime as
|
|
5
|
-
import { useRouter as Mr, useRoute as
|
|
6
|
-
function
|
|
7
|
-
return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g,
|
|
1
|
+
import { ref as z, shallowRef as Re, computed as te, toValue as K, watch as Te, toRef as Yt, onMounted as Xr } from "vue";
|
|
2
|
+
import { watchArray as Or, useStorage as Zt, useEventListener as me, toValue as Ae, useParentElement as Jt, useResizeObserver as jt, useArrayUnique as Kt, useArrayDifference as Gr, watchDebounced as Qt, tryOnMounted as Xt } from "@vueuse/core";
|
|
3
|
+
import { defineStore as pr } from "pinia";
|
|
4
|
+
import { DateTime as he } from "luxon";
|
|
5
|
+
import { useRouter as Mr, useRoute as et } from "vue-router";
|
|
6
|
+
function Ot(e) {
|
|
7
|
+
return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, pt);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function pt(e) {
|
|
10
10
|
const t = Math.random() * 16 | 0;
|
|
11
11
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function en(e) {
|
|
14
14
|
const t = z([]), l = Re(), S = Re(), s = Re(), g = te(() => l.value != null);
|
|
15
15
|
function x(d) {
|
|
16
16
|
t.value = t.value.filter((h) => h.id != d);
|
|
17
17
|
}
|
|
18
18
|
function P(d) {
|
|
19
19
|
const h = {
|
|
20
|
-
id:
|
|
20
|
+
id: Ot(),
|
|
21
21
|
msg: d ?? "Loading"
|
|
22
22
|
};
|
|
23
23
|
return t.value.push(h), h.id;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function _(d) {
|
|
26
26
|
d != null && (S.value = d.toString());
|
|
27
27
|
}
|
|
28
28
|
function N() {
|
|
@@ -41,13 +41,13 @@ function rn(e) {
|
|
|
41
41
|
else {
|
|
42
42
|
if (u.throwError == !0)
|
|
43
43
|
return I;
|
|
44
|
-
|
|
44
|
+
_(u.errorMsg ?? I ?? "error");
|
|
45
45
|
}
|
|
46
46
|
} finally {
|
|
47
47
|
x(r);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return Or(t, (d) => {
|
|
51
51
|
l.value = d.length > 0 ? d[0].msg : void 0;
|
|
52
52
|
}, { deep: !0 }), {
|
|
53
53
|
actionErrorMsg: S,
|
|
@@ -56,11 +56,11 @@ function rn(e) {
|
|
|
56
56
|
clearErrors: N,
|
|
57
57
|
doAction: $,
|
|
58
58
|
isLoading: g,
|
|
59
|
-
logError:
|
|
59
|
+
logError: _
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
63
|
-
function
|
|
63
|
+
function rn(e) {
|
|
64
64
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
65
65
|
}
|
|
66
66
|
var Ue = function() {
|
|
@@ -78,11 +78,11 @@ var Ue = function() {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
if (s.length === 1) {
|
|
81
|
-
var P = s,
|
|
81
|
+
var P = s, _ = g.ignoreCase ? t : e, N = g.cmp || function(d, h) {
|
|
82
82
|
return d < h ? -1 : d > h ? 1 : 0;
|
|
83
83
|
};
|
|
84
84
|
s = function(d, h) {
|
|
85
|
-
return N(
|
|
85
|
+
return N(_(P(d)), _(P(h)));
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
const $ = { "-1": "", desc: "" };
|
|
@@ -91,10 +91,10 @@ var Ue = function() {
|
|
|
91
91
|
} : s;
|
|
92
92
|
}
|
|
93
93
|
function S(s, g) {
|
|
94
|
-
var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(s, g),
|
|
94
|
+
var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(s, g), _ = x ? function(N, $) {
|
|
95
95
|
return x(N, $) || P(N, $);
|
|
96
96
|
} : P;
|
|
97
|
-
return
|
|
97
|
+
return _.thenBy = S, _;
|
|
98
98
|
}
|
|
99
99
|
return S.firstBy = S, S;
|
|
100
100
|
}();
|
|
@@ -110,18 +110,18 @@ function Be(e, t) {
|
|
|
110
110
|
while (S.startsWith("/"));
|
|
111
111
|
return `${l}/${S}`;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Zn(e) {
|
|
114
114
|
return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Jn(e = "blitzItExtensionExists") {
|
|
117
117
|
try {
|
|
118
118
|
var t = document.getElementById(e);
|
|
119
119
|
return t != null;
|
|
120
120
|
} catch (l) {
|
|
121
|
-
return console.log(
|
|
121
|
+
return console.log(sn(l)), !1;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function jn(e, t) {
|
|
125
125
|
return [
|
|
126
126
|
{ lat: e.lat - t, lng: e.lng + t },
|
|
127
127
|
{ lat: e.lat - t, lng: e.lng - t },
|
|
@@ -129,7 +129,7 @@ function Kn(e, t) {
|
|
|
129
129
|
{ lat: e.lat + t, lng: e.lng + t }
|
|
130
130
|
];
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Kn(e, t) {
|
|
133
133
|
return [
|
|
134
134
|
{ lat: e.lat - t * 2, lng: e.lng + t },
|
|
135
135
|
{ lat: e.lat - t * 2, lng: e.lng - t },
|
|
@@ -137,7 +137,7 @@ function Qn(e, t) {
|
|
|
137
137
|
{ lat: e.lat, lng: e.lng + t }
|
|
138
138
|
];
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Qn(e, t) {
|
|
141
141
|
return [
|
|
142
142
|
{ lat: e.lat, lng: e.lng + t },
|
|
143
143
|
{ lat: e.lat, lng: e.lng - t },
|
|
@@ -145,11 +145,11 @@ function Xn(e, t) {
|
|
|
145
145
|
{ lat: e.lat + t * 2, lng: e.lng + t }
|
|
146
146
|
];
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
var t =
|
|
148
|
+
function Xn(e) {
|
|
149
|
+
var t = rt(e, !0);
|
|
150
150
|
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(" ", "");
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function rt(e, t = !1) {
|
|
153
153
|
if (e == null)
|
|
154
154
|
return "";
|
|
155
155
|
if (typeof e != "object")
|
|
@@ -157,13 +157,13 @@ function tt(e, t = !1) {
|
|
|
157
157
|
var l = "";
|
|
158
158
|
return e.addressLineOne != null && !t && (l = e.addressLineOne + " "), e.streetNumber != null && (l = l + e.streetNumber + " "), e.streetName != null && (l = l + e.streetName + ", "), e.suburb != null && (l = l + e.suburb + " "), e.state != null && (l = l + e.state + " "), e.postcode != null && (l = l + e.postcode), l;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function On(e, t, l) {
|
|
161
161
|
if (e) {
|
|
162
162
|
var S = new Image();
|
|
163
163
|
S.onload = t, S.onerror = l, S.src = e;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
async function
|
|
166
|
+
async function pn(e, t = !0) {
|
|
167
167
|
return new Promise((l, S) => {
|
|
168
168
|
e == null && S("no url given");
|
|
169
169
|
var s = new Image();
|
|
@@ -177,16 +177,16 @@ async function ea(e, t = !0) {
|
|
|
177
177
|
}, e != null && (s.src = e);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function tn(e) {
|
|
181
181
|
return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function ea(e) {
|
|
184
184
|
if (e != null && typeof e == "object")
|
|
185
185
|
for (var t in e)
|
|
186
186
|
/^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
|
|
187
187
|
return e;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function nn(e) {
|
|
190
190
|
return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (l) => l.toUpperCase()));
|
|
191
191
|
}
|
|
192
192
|
const Ye = [
|
|
@@ -199,25 +199,25 @@ const Ye = [
|
|
|
199
199
|
{ value: 7, short: "sat", values: ["sat", "saturday"] },
|
|
200
200
|
{ value: 0, short: "always", values: ["always", null, void 0] }
|
|
201
201
|
];
|
|
202
|
-
function
|
|
202
|
+
function ra(e) {
|
|
203
203
|
if (e == null)
|
|
204
204
|
return 0;
|
|
205
205
|
const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), l = Ye.filter((S) => S.values.some((s) => t.some((g) => s == g))).map((S) => S.value);
|
|
206
206
|
return l.length == 0 ? 8 : Math.min(...l);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function ta(e) {
|
|
209
209
|
return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
|
|
210
210
|
let l = Ye.find((S) => S.values.some((s) => s == t));
|
|
211
211
|
return l != null ? l.short : "";
|
|
212
212
|
}).filter((t) => t != null && t.length > 0).toString();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function na(e, t) {
|
|
215
215
|
if (e == null || t == null)
|
|
216
216
|
return !0;
|
|
217
217
|
const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), s = Ye.find((g) => g.values.some((x) => x == S));
|
|
218
218
|
return s != null && l.some((g) => g == s.short || s.values.some((x) => x == g));
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function aa(e, t) {
|
|
221
221
|
if (t == null)
|
|
222
222
|
return e;
|
|
223
223
|
let l = e ?? "";
|
|
@@ -225,28 +225,28 @@ function la(e, t) {
|
|
|
225
225
|
let S = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ye.find((g) => g.values.some((x) => x == s))).filter((s) => s != null).sort(Ue.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
|
|
226
226
|
return S.length > 0 ? S : void 0;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function la(e, t) {
|
|
229
229
|
if (t == null || e == null)
|
|
230
230
|
return e;
|
|
231
231
|
let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ye.find((x) => x.values.some((P) => P == g && P != S))).filter((g) => g != null).sort(Ue.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
|
|
232
232
|
return s.length > 0 ? s : void 0;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function ua(e, t) {
|
|
235
235
|
return e != null && Array.isArray(e) && e.length == t;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function _e(e, t = 0) {
|
|
238
238
|
return e != null && Array.isArray(e) && e.length > t;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function an(e) {
|
|
241
241
|
return e == "0001-01-01T00:00:00Z";
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function ia() {
|
|
244
244
|
return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function ln() {
|
|
247
247
|
return "0001-01-01T00:00:00Z";
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function ca(e, t) {
|
|
250
250
|
let l = "1", S = 0;
|
|
251
251
|
if (S < t)
|
|
252
252
|
do
|
|
@@ -255,11 +255,11 @@ function fa(e, t) {
|
|
|
255
255
|
let s = Number.parseInt(l);
|
|
256
256
|
return Math.round(e * s) / s;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function fa(e, t) {
|
|
259
259
|
let l = e ?? "";
|
|
260
|
-
return t != null && (
|
|
260
|
+
return t != null && (un(l, t) ? l = l.split(",").filter((S) => S != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function un(e, t) {
|
|
263
263
|
if (e == null || e.length == 0)
|
|
264
264
|
return !1;
|
|
265
265
|
if (!t)
|
|
@@ -275,32 +275,32 @@ function Lr(e) {
|
|
|
275
275
|
t = e[S], l[S] = typeof t == "object" ? Lr(t) : t;
|
|
276
276
|
return l;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function cn(e) {
|
|
279
279
|
return e && Object.keys(e).sort().reduce(function(t, l) {
|
|
280
280
|
let S = e[l];
|
|
281
|
-
return t[l] = typeof S == "object" && S !== null ?
|
|
281
|
+
return t[l] = typeof S == "object" && S !== null ? cn(S) : S, t;
|
|
282
282
|
}, Array.isArray(e) ? [] : {});
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function fn(e, t) {
|
|
285
285
|
return t == null ? !0 : e == null ? !1 : e.toLowerCase().includes(t.toLowerCase());
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function tt(e, t = (l) => l) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return [];
|
|
290
290
|
const l = Array.isArray(e) ? e : t(e);
|
|
291
|
-
return
|
|
291
|
+
return _e(l) ? [...l.reduce((S, s) => {
|
|
292
292
|
S.push(s);
|
|
293
|
-
const g =
|
|
294
|
-
return
|
|
293
|
+
const g = tt(s, t);
|
|
294
|
+
return _e(g) && S.push(...g), S;
|
|
295
295
|
}, [])] : [];
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function sa(e) {
|
|
298
298
|
const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), S = t[0].split(":")[1].split(";")[0], s = new Uint8Array(l.length);
|
|
299
299
|
for (let g = 0; g < l.length; g++)
|
|
300
300
|
s[g] = l.charCodeAt(g);
|
|
301
301
|
return new Blob([s], { type: S });
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function sn(e) {
|
|
304
304
|
var t = "";
|
|
305
305
|
if (e) {
|
|
306
306
|
if (e.message && (t = e.message), e.response && e.response.data) {
|
|
@@ -313,11 +313,11 @@ function on(e) {
|
|
|
313
313
|
}
|
|
314
314
|
return "hmmm no error was supplied";
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function on() {
|
|
317
317
|
const e = "#" + Math.floor(Math.random() * 16777215).toString(16);
|
|
318
|
-
return e.length !== 7 ?
|
|
318
|
+
return e.length !== 7 ? on() : e;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function dn(e, t, l) {
|
|
321
321
|
if (t == null)
|
|
322
322
|
return !0;
|
|
323
323
|
if (e == null || l == null)
|
|
@@ -325,15 +325,15 @@ function hn(e, t, l) {
|
|
|
325
325
|
for (let s = 0; s < l.length; s++) {
|
|
326
326
|
const g = l[s];
|
|
327
327
|
var S = Sr(e, g);
|
|
328
|
-
if (S != null && typeof S == "string" &&
|
|
328
|
+
if (S != null && typeof S == "string" && fn(S, t))
|
|
329
329
|
return !0;
|
|
330
330
|
}
|
|
331
331
|
return !1;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function oa(e) {
|
|
334
334
|
return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function da(e = 2e3) {
|
|
337
337
|
return new Promise((t) => {
|
|
338
338
|
setTimeout(() => t(), e);
|
|
339
339
|
});
|
|
@@ -348,16 +348,16 @@ function Sr(e, t) {
|
|
|
348
348
|
return null;
|
|
349
349
|
return s;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function hn(e) {
|
|
352
352
|
return e ? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) : !1;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function mn(e) {
|
|
355
355
|
return e.endsWith("ies") ? e.slice(0, e.length - 3) : e.endsWith("s") ? e.slice(0, e.length - 1) : e;
|
|
356
356
|
}
|
|
357
357
|
function Xe(e) {
|
|
358
358
|
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.');
|
|
359
359
|
}
|
|
360
|
-
var
|
|
360
|
+
var nt = { exports: {} };
|
|
361
361
|
/*!
|
|
362
362
|
localForage -- Offline Storage, Improved
|
|
363
363
|
Version 1.10.0
|
|
@@ -388,18 +388,18 @@ var at = { exports: {} };
|
|
|
388
388
|
}
|
|
389
389
|
return s[N].exports;
|
|
390
390
|
}
|
|
391
|
-
for (var P = typeof Xe == "function" && Xe,
|
|
392
|
-
x(g[
|
|
391
|
+
for (var P = typeof Xe == "function" && Xe, _ = 0; _ < g.length; _++)
|
|
392
|
+
x(g[_]);
|
|
393
393
|
return x;
|
|
394
394
|
}({ 1: [function(l, S, s) {
|
|
395
395
|
(function(g) {
|
|
396
396
|
var x = g.MutationObserver || g.WebKitMutationObserver, P;
|
|
397
397
|
if (x) {
|
|
398
|
-
var
|
|
398
|
+
var _ = 0, N = new x(r), $ = g.document.createTextNode("");
|
|
399
399
|
N.observe($, {
|
|
400
400
|
characterData: !0
|
|
401
401
|
}), P = function() {
|
|
402
|
-
$.data =
|
|
402
|
+
$.data = _ = ++_ % 2;
|
|
403
403
|
};
|
|
404
404
|
} else if (!g.setImmediate && typeof g.MessageChannel < "u") {
|
|
405
405
|
var d = new g.MessageChannel();
|
|
@@ -434,7 +434,7 @@ var at = { exports: {} };
|
|
|
434
434
|
var g = l(1);
|
|
435
435
|
function x() {
|
|
436
436
|
}
|
|
437
|
-
var P = {},
|
|
437
|
+
var P = {}, _ = ["REJECTED"], N = ["FULFILLED"], $ = ["PENDING"];
|
|
438
438
|
S.exports = d;
|
|
439
439
|
function d(b) {
|
|
440
440
|
if (typeof b != "function")
|
|
@@ -443,19 +443,19 @@ var at = { exports: {} };
|
|
|
443
443
|
}
|
|
444
444
|
d.prototype.catch = function(b) {
|
|
445
445
|
return this.then(null, b);
|
|
446
|
-
}, d.prototype.then = function(b,
|
|
447
|
-
if (typeof b != "function" && this.state === N || typeof
|
|
446
|
+
}, d.prototype.then = function(b, T) {
|
|
447
|
+
if (typeof b != "function" && this.state === N || typeof T != "function" && this.state === _)
|
|
448
448
|
return this;
|
|
449
449
|
var D = new this.constructor(x);
|
|
450
450
|
if (this.state !== $) {
|
|
451
|
-
var L = this.state === N ? b :
|
|
451
|
+
var L = this.state === N ? b : T;
|
|
452
452
|
u(D, L, this.outcome);
|
|
453
453
|
} else
|
|
454
|
-
this.queue.push(new h(D, b,
|
|
454
|
+
this.queue.push(new h(D, b, T));
|
|
455
455
|
return D;
|
|
456
456
|
};
|
|
457
|
-
function h(b,
|
|
458
|
-
this.promise = b, typeof
|
|
457
|
+
function h(b, T, D) {
|
|
458
|
+
this.promise = b, typeof T == "function" && (this.onFulfilled = T, this.callFulfilled = this.otherCallFulfilled), typeof D == "function" && (this.onRejected = D, this.callRejected = this.otherCallRejected);
|
|
459
459
|
}
|
|
460
460
|
h.prototype.callFulfilled = function(b) {
|
|
461
461
|
P.resolve(this.promise, b);
|
|
@@ -466,44 +466,44 @@ var at = { exports: {} };
|
|
|
466
466
|
}, h.prototype.otherCallRejected = function(b) {
|
|
467
467
|
u(this.promise, this.onRejected, b);
|
|
468
468
|
};
|
|
469
|
-
function u(b,
|
|
469
|
+
function u(b, T, D) {
|
|
470
470
|
g(function() {
|
|
471
471
|
var L;
|
|
472
472
|
try {
|
|
473
|
-
L =
|
|
473
|
+
L = T(D);
|
|
474
474
|
} catch (f) {
|
|
475
475
|
return P.reject(b, f);
|
|
476
476
|
}
|
|
477
477
|
L === b ? P.reject(b, new TypeError("Cannot resolve promise with itself")) : P.resolve(b, L);
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
-
P.resolve = function(b,
|
|
481
|
-
var D = I(r,
|
|
480
|
+
P.resolve = function(b, T) {
|
|
481
|
+
var D = I(r, T);
|
|
482
482
|
if (D.status === "error")
|
|
483
483
|
return P.reject(b, D.value);
|
|
484
484
|
var L = D.value;
|
|
485
485
|
if (L)
|
|
486
486
|
y(b, L);
|
|
487
487
|
else {
|
|
488
|
-
b.state = N, b.outcome =
|
|
488
|
+
b.state = N, b.outcome = T;
|
|
489
489
|
for (var f = -1, A = b.queue.length; ++f < A; )
|
|
490
|
-
b.queue[f].callFulfilled(
|
|
490
|
+
b.queue[f].callFulfilled(T);
|
|
491
491
|
}
|
|
492
492
|
return b;
|
|
493
|
-
}, P.reject = function(b,
|
|
494
|
-
b.state =
|
|
493
|
+
}, P.reject = function(b, T) {
|
|
494
|
+
b.state = _, b.outcome = T;
|
|
495
495
|
for (var D = -1, L = b.queue.length; ++D < L; )
|
|
496
|
-
b.queue[D].callRejected(
|
|
496
|
+
b.queue[D].callRejected(T);
|
|
497
497
|
return b;
|
|
498
498
|
};
|
|
499
499
|
function r(b) {
|
|
500
|
-
var
|
|
501
|
-
if (b && (typeof b == "object" || typeof b == "function") && typeof
|
|
500
|
+
var T = b && b.then;
|
|
501
|
+
if (b && (typeof b == "object" || typeof b == "function") && typeof T == "function")
|
|
502
502
|
return function() {
|
|
503
|
-
|
|
503
|
+
T.apply(b, arguments);
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
function y(b,
|
|
506
|
+
function y(b, T) {
|
|
507
507
|
var D = !1;
|
|
508
508
|
function L(Q) {
|
|
509
509
|
D || (D = !0, P.reject(b, Q));
|
|
@@ -512,15 +512,15 @@ var at = { exports: {} };
|
|
|
512
512
|
D || (D = !0, P.resolve(b, Q));
|
|
513
513
|
}
|
|
514
514
|
function A() {
|
|
515
|
-
|
|
515
|
+
T(f, L);
|
|
516
516
|
}
|
|
517
517
|
var J = I(A);
|
|
518
518
|
J.status === "error" && L(J.value);
|
|
519
519
|
}
|
|
520
|
-
function I(b,
|
|
520
|
+
function I(b, T) {
|
|
521
521
|
var D = {};
|
|
522
522
|
try {
|
|
523
|
-
D.value = b(
|
|
523
|
+
D.value = b(T), D.status = "success";
|
|
524
524
|
} catch (L) {
|
|
525
525
|
D.status = "error", D.value = L;
|
|
526
526
|
}
|
|
@@ -532,12 +532,12 @@ var at = { exports: {} };
|
|
|
532
532
|
}
|
|
533
533
|
d.reject = E;
|
|
534
534
|
function E(b) {
|
|
535
|
-
var
|
|
536
|
-
return P.reject(
|
|
535
|
+
var T = new this(x);
|
|
536
|
+
return P.reject(T, b);
|
|
537
537
|
}
|
|
538
538
|
d.all = w;
|
|
539
539
|
function w(b) {
|
|
540
|
-
var
|
|
540
|
+
var T = this;
|
|
541
541
|
if (Object.prototype.toString.call(b) !== "[object Array]")
|
|
542
542
|
return this.reject(new TypeError("must be an array"));
|
|
543
543
|
var D = b.length, L = !1;
|
|
@@ -547,7 +547,7 @@ var at = { exports: {} };
|
|
|
547
547
|
ee(b[J], J);
|
|
548
548
|
return Q;
|
|
549
549
|
function ee(ie, we) {
|
|
550
|
-
|
|
550
|
+
T.resolve(ie).then(W, function(Y) {
|
|
551
551
|
L || (L = !0, P.reject(Q, Y));
|
|
552
552
|
});
|
|
553
553
|
function W(Y) {
|
|
@@ -557,7 +557,7 @@ var at = { exports: {} };
|
|
|
557
557
|
}
|
|
558
558
|
d.race = M;
|
|
559
559
|
function M(b) {
|
|
560
|
-
var
|
|
560
|
+
var T = this;
|
|
561
561
|
if (Object.prototype.toString.call(b) !== "[object Array]")
|
|
562
562
|
return this.reject(new TypeError("must be an array"));
|
|
563
563
|
var D = b.length, L = !1;
|
|
@@ -567,7 +567,7 @@ var at = { exports: {} };
|
|
|
567
567
|
J(b[f]);
|
|
568
568
|
return A;
|
|
569
569
|
function J(Q) {
|
|
570
|
-
|
|
570
|
+
T.resolve(Q).then(function(ee) {
|
|
571
571
|
L || (L = !0, P.resolve(A, ee));
|
|
572
572
|
}, function(ee) {
|
|
573
573
|
L || (L = !0, P.reject(A, ee));
|
|
@@ -604,10 +604,10 @@ var at = { exports: {} };
|
|
|
604
604
|
return;
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
var
|
|
607
|
+
var _ = P();
|
|
608
608
|
function N() {
|
|
609
609
|
try {
|
|
610
|
-
if (!
|
|
610
|
+
if (!_ || !_.open)
|
|
611
611
|
return !1;
|
|
612
612
|
var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), c = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
|
|
613
613
|
return (!n || c) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
|
|
@@ -651,7 +651,7 @@ var at = { exports: {} };
|
|
|
651
651
|
return arguments[arguments.length - 1];
|
|
652
652
|
}
|
|
653
653
|
var I = "local-forage-detect-blob-support", i = void 0, E = {}, w = Object.prototype.toString, M = "readonly", b = "readwrite";
|
|
654
|
-
function
|
|
654
|
+
function T(n) {
|
|
655
655
|
for (var c = n.length, a = new ArrayBuffer(c), m = new Uint8Array(a), v = 0; v < c; v++)
|
|
656
656
|
m[v] = n.charCodeAt(v);
|
|
657
657
|
return a;
|
|
@@ -701,7 +701,7 @@ var at = { exports: {} };
|
|
|
701
701
|
return a(n.db);
|
|
702
702
|
var v = [n.name];
|
|
703
703
|
c && v.push(n.version);
|
|
704
|
-
var o =
|
|
704
|
+
var o = _.open.apply(_, v);
|
|
705
705
|
c && (o.onupgradeneeded = function(C) {
|
|
706
706
|
var R = o.result;
|
|
707
707
|
try {
|
|
@@ -755,10 +755,10 @@ var at = { exports: {} };
|
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
function Y(n) {
|
|
758
|
-
var c =
|
|
758
|
+
var c = T(atob(n.data));
|
|
759
759
|
return $([c], { type: n.type });
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function H(n) {
|
|
762
762
|
return n && n.__local_forage_encoded_blob;
|
|
763
763
|
}
|
|
764
764
|
function ae(n) {
|
|
@@ -857,7 +857,7 @@ var at = { exports: {} };
|
|
|
857
857
|
var B = R.objectStore(a._dbInfo.storeName), F = B.get(n);
|
|
858
858
|
F.onsuccess = function() {
|
|
859
859
|
var k = F.result;
|
|
860
|
-
k === void 0 && (k = null),
|
|
860
|
+
k === void 0 && (k = null), H(k) && (k = Y(k)), v(k);
|
|
861
861
|
}, F.onerror = function() {
|
|
862
862
|
o(F.error);
|
|
863
863
|
};
|
|
@@ -881,7 +881,7 @@ var at = { exports: {} };
|
|
|
881
881
|
var q = F.result;
|
|
882
882
|
if (q) {
|
|
883
883
|
var Z = q.value;
|
|
884
|
-
|
|
884
|
+
H(Z) && (Z = Y(Z));
|
|
885
885
|
var p = n(Z, q.key, k++);
|
|
886
886
|
p !== void 0 ? v(p) : q.continue();
|
|
887
887
|
} else
|
|
@@ -1079,16 +1079,16 @@ var at = { exports: {} };
|
|
|
1079
1079
|
Z._dbInfo.db = null, Z._dbInfo.version = B;
|
|
1080
1080
|
}
|
|
1081
1081
|
var p = new d(function(re, ue) {
|
|
1082
|
-
var le =
|
|
1083
|
-
le.onerror = function(
|
|
1082
|
+
var le = _.open(n.name, B);
|
|
1083
|
+
le.onerror = function(ye) {
|
|
1084
1084
|
var ze = le.result;
|
|
1085
|
-
ze.close(), ue(
|
|
1085
|
+
ze.close(), ue(ye);
|
|
1086
1086
|
}, le.onupgradeneeded = function() {
|
|
1087
|
-
var
|
|
1088
|
-
|
|
1087
|
+
var ye = le.result;
|
|
1088
|
+
ye.deleteObjectStore(n.storeName);
|
|
1089
1089
|
}, le.onsuccess = function() {
|
|
1090
|
-
var
|
|
1091
|
-
|
|
1090
|
+
var ye = le.result;
|
|
1091
|
+
ye.close(), re(ye);
|
|
1092
1092
|
};
|
|
1093
1093
|
});
|
|
1094
1094
|
return p.then(function(re) {
|
|
@@ -1111,7 +1111,7 @@ var at = { exports: {} };
|
|
|
1111
1111
|
q._dbInfo.db = null;
|
|
1112
1112
|
}
|
|
1113
1113
|
var Z = new d(function(p, re) {
|
|
1114
|
-
var ue =
|
|
1114
|
+
var ue = _.deleteDatabase(n.name);
|
|
1115
1115
|
ue.onerror = function() {
|
|
1116
1116
|
var le = ue.result;
|
|
1117
1117
|
le && le.close(), re(ue.error);
|
|
@@ -1153,7 +1153,7 @@ var at = { exports: {} };
|
|
|
1153
1153
|
function ur() {
|
|
1154
1154
|
return typeof openDatabase == "function";
|
|
1155
1155
|
}
|
|
1156
|
-
var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8",
|
|
1156
|
+
var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", He = "si16", U = "si32", j = "ur16", V = "ui32", O = "fl32", de = "fl64", ge = Ne + We.length, De = Object.prototype.toString;
|
|
1157
1157
|
function Se(n) {
|
|
1158
1158
|
var c = n.length * 0.75, a = n.length, m, v = 0, o, C, R, B;
|
|
1159
1159
|
n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
|
|
@@ -1172,7 +1172,7 @@ var at = { exports: {} };
|
|
|
1172
1172
|
var a = "";
|
|
1173
1173
|
if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
|
|
1174
1174
|
var m, v = Fe;
|
|
1175
|
-
n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v +=
|
|
1175
|
+
n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += He : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += V : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += de : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
|
|
1176
1176
|
} else if (a === "[object Blob]") {
|
|
1177
1177
|
var o = new FileReader();
|
|
1178
1178
|
o.onload = function() {
|
|
@@ -1186,10 +1186,10 @@ var at = { exports: {} };
|
|
|
1186
1186
|
console.error("Couldn't convert value into a JSON string: ", n), c(null, C);
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function ct(n) {
|
|
1190
1190
|
if (n.substring(0, Ne) !== Fe)
|
|
1191
1191
|
return JSON.parse(n);
|
|
1192
|
-
var c = n.substring(
|
|
1192
|
+
var c = n.substring(ge), a = n.substring(Ne, ge), m;
|
|
1193
1193
|
if (a === Ie && Ze.test(c)) {
|
|
1194
1194
|
var v = c.match(Ze);
|
|
1195
1195
|
m = v[1], c = c.substring(v[0].length);
|
|
@@ -1206,17 +1206,17 @@ var at = { exports: {} };
|
|
|
1206
1206
|
return new Uint8Array(o);
|
|
1207
1207
|
case qe:
|
|
1208
1208
|
return new Uint8ClampedArray(o);
|
|
1209
|
-
case
|
|
1209
|
+
case He:
|
|
1210
1210
|
return new Int16Array(o);
|
|
1211
1211
|
case j:
|
|
1212
1212
|
return new Uint16Array(o);
|
|
1213
1213
|
case U:
|
|
1214
1214
|
return new Int32Array(o);
|
|
1215
|
-
case
|
|
1215
|
+
case V:
|
|
1216
1216
|
return new Uint32Array(o);
|
|
1217
1217
|
case O:
|
|
1218
1218
|
return new Float32Array(o);
|
|
1219
|
-
case
|
|
1219
|
+
case de:
|
|
1220
1220
|
return new Float64Array(o);
|
|
1221
1221
|
default:
|
|
1222
1222
|
throw new Error("Unkown type: " + a);
|
|
@@ -1224,14 +1224,14 @@ var at = { exports: {} };
|
|
|
1224
1224
|
}
|
|
1225
1225
|
var cr = {
|
|
1226
1226
|
serialize: Me,
|
|
1227
|
-
deserialize:
|
|
1227
|
+
deserialize: ct,
|
|
1228
1228
|
stringToBuffer: Se,
|
|
1229
1229
|
bufferToString: se
|
|
1230
1230
|
};
|
|
1231
|
-
function
|
|
1231
|
+
function Rr(n, c, a, m) {
|
|
1232
1232
|
n.executeSql("CREATE TABLE IF NOT EXISTS " + c.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], a, m);
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function ft(n) {
|
|
1235
1235
|
var c = this, a = {
|
|
1236
1236
|
db: null
|
|
1237
1237
|
};
|
|
@@ -1245,7 +1245,7 @@ var at = { exports: {} };
|
|
|
1245
1245
|
return C(R);
|
|
1246
1246
|
}
|
|
1247
1247
|
a.db.transaction(function(R) {
|
|
1248
|
-
|
|
1248
|
+
Rr(R, a, function() {
|
|
1249
1249
|
c._dbInfo = a, o();
|
|
1250
1250
|
}, function(B, F) {
|
|
1251
1251
|
C(F);
|
|
@@ -1257,13 +1257,13 @@ var at = { exports: {} };
|
|
|
1257
1257
|
function xe(n, c, a, m, v, o) {
|
|
1258
1258
|
n.executeSql(a, m, v, function(C, R) {
|
|
1259
1259
|
R.code === R.SYNTAX_ERR ? C.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
|
|
1260
|
-
F.rows.length ? o(B, R) :
|
|
1260
|
+
F.rows.length ? o(B, R) : Rr(B, c, function() {
|
|
1261
1261
|
B.executeSql(a, m, v, o);
|
|
1262
1262
|
}, o);
|
|
1263
1263
|
}, o) : o(C, R);
|
|
1264
1264
|
}, o);
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function st(n, c) {
|
|
1267
1267
|
var a = this;
|
|
1268
1268
|
n = r(n);
|
|
1269
1269
|
var m = new d(function(v, o) {
|
|
@@ -1281,7 +1281,7 @@ var at = { exports: {} };
|
|
|
1281
1281
|
});
|
|
1282
1282
|
return h(m, c), m;
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function ot(n, c) {
|
|
1285
1285
|
var a = this, m = new d(function(v, o) {
|
|
1286
1286
|
a.ready().then(function() {
|
|
1287
1287
|
var C = a._dbInfo;
|
|
@@ -1303,7 +1303,7 @@ var at = { exports: {} };
|
|
|
1303
1303
|
});
|
|
1304
1304
|
return h(m, c), m;
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function Ur(n, c, a, m) {
|
|
1307
1307
|
var v = this;
|
|
1308
1308
|
n = r(n);
|
|
1309
1309
|
var o = new d(function(C, R) {
|
|
@@ -1320,7 +1320,7 @@ var at = { exports: {} };
|
|
|
1320
1320
|
}, function(Z) {
|
|
1321
1321
|
if (Z.code === Z.QUOTA_ERR) {
|
|
1322
1322
|
if (m > 0) {
|
|
1323
|
-
C(
|
|
1323
|
+
C(Ur.apply(v, [n, B, a, m - 1]));
|
|
1324
1324
|
return;
|
|
1325
1325
|
}
|
|
1326
1326
|
R(Z);
|
|
@@ -1331,10 +1331,10 @@ var at = { exports: {} };
|
|
|
1331
1331
|
});
|
|
1332
1332
|
return h(o, a), o;
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1335
|
-
return
|
|
1334
|
+
function dt(n, c, a) {
|
|
1335
|
+
return Ur.apply(this, [n, c, a, 1]);
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function ht(n, c) {
|
|
1338
1338
|
var a = this;
|
|
1339
1339
|
n = r(n);
|
|
1340
1340
|
var m = new d(function(v, o) {
|
|
@@ -1351,7 +1351,7 @@ var at = { exports: {} };
|
|
|
1351
1351
|
});
|
|
1352
1352
|
return h(m, c), m;
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function mt(n) {
|
|
1355
1355
|
var c = this, a = new d(function(m, v) {
|
|
1356
1356
|
c.ready().then(function() {
|
|
1357
1357
|
var o = c._dbInfo;
|
|
@@ -1366,7 +1366,7 @@ var at = { exports: {} };
|
|
|
1366
1366
|
});
|
|
1367
1367
|
return h(a, n), a;
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function vt(n) {
|
|
1370
1370
|
var c = this, a = new d(function(m, v) {
|
|
1371
1371
|
c.ready().then(function() {
|
|
1372
1372
|
var o = c._dbInfo;
|
|
@@ -1382,7 +1382,7 @@ var at = { exports: {} };
|
|
|
1382
1382
|
});
|
|
1383
1383
|
return h(a, n), a;
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function gt(n, c) {
|
|
1386
1386
|
var a = this, m = new d(function(v, o) {
|
|
1387
1387
|
a.ready().then(function() {
|
|
1388
1388
|
var C = a._dbInfo;
|
|
@@ -1398,7 +1398,7 @@ var at = { exports: {} };
|
|
|
1398
1398
|
});
|
|
1399
1399
|
return h(m, c), m;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function yt(n) {
|
|
1402
1402
|
var c = this, a = new d(function(m, v) {
|
|
1403
1403
|
c.ready().then(function() {
|
|
1404
1404
|
var o = c._dbInfo;
|
|
@@ -1415,7 +1415,7 @@ var at = { exports: {} };
|
|
|
1415
1415
|
});
|
|
1416
1416
|
return h(a, n), a;
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function wt(n) {
|
|
1419
1419
|
return new d(function(c, a) {
|
|
1420
1420
|
n.transaction(function(m) {
|
|
1421
1421
|
m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(v, o) {
|
|
@@ -1433,7 +1433,7 @@ var at = { exports: {} };
|
|
|
1433
1433
|
});
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function bt(n, c) {
|
|
1437
1437
|
c = y.apply(this, arguments);
|
|
1438
1438
|
var a = this.config();
|
|
1439
1439
|
n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
|
|
@@ -1443,7 +1443,7 @@ var at = { exports: {} };
|
|
|
1443
1443
|
n.name === a.name ? C = m._dbInfo.db : C = openDatabase(n.name, "", "", 0), n.storeName ? o({
|
|
1444
1444
|
db: C,
|
|
1445
1445
|
storeNames: [n.storeName]
|
|
1446
|
-
}) : o(
|
|
1446
|
+
}) : o(wt(C));
|
|
1447
1447
|
}).then(function(o) {
|
|
1448
1448
|
return new d(function(C, R) {
|
|
1449
1449
|
o.db.transaction(function(B) {
|
|
@@ -1451,8 +1451,8 @@ var at = { exports: {} };
|
|
|
1451
1451
|
return new d(function(re, ue) {
|
|
1452
1452
|
B.executeSql("DROP TABLE IF EXISTS " + p, [], function() {
|
|
1453
1453
|
re();
|
|
1454
|
-
}, function(le,
|
|
1455
|
-
ue(
|
|
1454
|
+
}, function(le, ye) {
|
|
1455
|
+
ue(ye);
|
|
1456
1456
|
});
|
|
1457
1457
|
});
|
|
1458
1458
|
}
|
|
@@ -1469,21 +1469,21 @@ var at = { exports: {} };
|
|
|
1469
1469
|
});
|
|
1470
1470
|
}) : v = d.reject("Invalid arguments"), h(v, c), v;
|
|
1471
1471
|
}
|
|
1472
|
-
var
|
|
1472
|
+
var St = {
|
|
1473
1473
|
_driver: "webSQLStorage",
|
|
1474
|
-
_initStorage:
|
|
1474
|
+
_initStorage: ft,
|
|
1475
1475
|
_support: ur(),
|
|
1476
|
-
iterate:
|
|
1477
|
-
getItem:
|
|
1478
|
-
setItem:
|
|
1479
|
-
removeItem:
|
|
1480
|
-
clear:
|
|
1481
|
-
length:
|
|
1482
|
-
key:
|
|
1483
|
-
keys:
|
|
1484
|
-
dropInstance:
|
|
1476
|
+
iterate: ot,
|
|
1477
|
+
getItem: st,
|
|
1478
|
+
setItem: dt,
|
|
1479
|
+
removeItem: ht,
|
|
1480
|
+
clear: mt,
|
|
1481
|
+
length: vt,
|
|
1482
|
+
key: gt,
|
|
1483
|
+
keys: yt,
|
|
1484
|
+
dropInstance: bt
|
|
1485
1485
|
};
|
|
1486
|
-
function
|
|
1486
|
+
function At() {
|
|
1487
1487
|
try {
|
|
1488
1488
|
return typeof localStorage < "u" && "setItem" in localStorage && // in IE8 typeof localStorage.setItem === 'object'
|
|
1489
1489
|
!!localStorage.setItem;
|
|
@@ -1491,11 +1491,11 @@ var at = { exports: {} };
|
|
|
1491
1491
|
return !1;
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function Br(n, c) {
|
|
1495
1495
|
var a = n.name + "/";
|
|
1496
1496
|
return n.storeName !== c.storeName && (a += n.storeName + "/"), a;
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function Et() {
|
|
1499
1499
|
var n = "_localforage_support_test";
|
|
1500
1500
|
try {
|
|
1501
1501
|
return localStorage.setItem(n, !0), localStorage.removeItem(n), !1;
|
|
@@ -1503,17 +1503,17 @@ var at = { exports: {} };
|
|
|
1503
1503
|
return !0;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1507
|
-
return !
|
|
1506
|
+
function It() {
|
|
1507
|
+
return !Et() || localStorage.length > 0;
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Dt(n) {
|
|
1510
1510
|
var c = this, a = {};
|
|
1511
1511
|
if (n)
|
|
1512
1512
|
for (var m in n)
|
|
1513
1513
|
a[m] = n[m];
|
|
1514
|
-
return a.keyPrefix =
|
|
1514
|
+
return a.keyPrefix = Br(n, c._defaultConfig), It() ? (c._dbInfo = a, a.serializer = cr, d.resolve()) : d.reject();
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function xt(n) {
|
|
1517
1517
|
var c = this, a = c.ready().then(function() {
|
|
1518
1518
|
for (var m = c._dbInfo.keyPrefix, v = localStorage.length - 1; v >= 0; v--) {
|
|
1519
1519
|
var o = localStorage.key(v);
|
|
@@ -1531,7 +1531,7 @@ var at = { exports: {} };
|
|
|
1531
1531
|
});
|
|
1532
1532
|
return h(m, c), m;
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function _t(n, c) {
|
|
1535
1535
|
var a = this, m = a.ready().then(function() {
|
|
1536
1536
|
for (var v = a._dbInfo, o = v.keyPrefix, C = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
|
|
1537
1537
|
var k = localStorage.key(F);
|
|
@@ -1544,7 +1544,7 @@ var at = { exports: {} };
|
|
|
1544
1544
|
});
|
|
1545
1545
|
return h(m, c), m;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function Ct(n, c) {
|
|
1548
1548
|
var a = this, m = a.ready().then(function() {
|
|
1549
1549
|
var v = a._dbInfo, o;
|
|
1550
1550
|
try {
|
|
@@ -1556,7 +1556,7 @@ var at = { exports: {} };
|
|
|
1556
1556
|
});
|
|
1557
1557
|
return h(m, c), m;
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1559
|
+
function Pt(n) {
|
|
1560
1560
|
var c = this, a = c.ready().then(function() {
|
|
1561
1561
|
for (var m = c._dbInfo, v = localStorage.length, o = [], C = 0; C < v; C++) {
|
|
1562
1562
|
var R = localStorage.key(C);
|
|
@@ -1566,13 +1566,13 @@ var at = { exports: {} };
|
|
|
1566
1566
|
});
|
|
1567
1567
|
return h(a, n), a;
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function Nt(n) {
|
|
1570
1570
|
var c = this, a = c.keys().then(function(m) {
|
|
1571
1571
|
return m.length;
|
|
1572
1572
|
});
|
|
1573
1573
|
return h(a, n), a;
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1575
|
+
function Mt(n, c) {
|
|
1576
1576
|
var a = this;
|
|
1577
1577
|
n = r(n);
|
|
1578
1578
|
var m = a.ready().then(function() {
|
|
@@ -1581,7 +1581,7 @@ var at = { exports: {} };
|
|
|
1581
1581
|
});
|
|
1582
1582
|
return h(m, c), m;
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Lt(n, c, a) {
|
|
1585
1585
|
var m = this;
|
|
1586
1586
|
n = r(n);
|
|
1587
1587
|
var v = m.ready().then(function() {
|
|
@@ -1603,14 +1603,14 @@ var at = { exports: {} };
|
|
|
1603
1603
|
});
|
|
1604
1604
|
return h(v, a), v;
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function Rt(n, c) {
|
|
1607
1607
|
if (c = y.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
|
|
1608
1608
|
var a = this.config();
|
|
1609
1609
|
n.name = n.name || a.name, n.storeName = n.storeName || a.storeName;
|
|
1610
1610
|
}
|
|
1611
1611
|
var m = this, v;
|
|
1612
1612
|
return n.name ? v = new d(function(o) {
|
|
1613
|
-
n.storeName ? o(
|
|
1613
|
+
n.storeName ? o(Br(n, m._defaultConfig)) : o(n.name + "/");
|
|
1614
1614
|
}).then(function(o) {
|
|
1615
1615
|
for (var C = localStorage.length - 1; C >= 0; C--) {
|
|
1616
1616
|
var R = localStorage.key(C);
|
|
@@ -1618,37 +1618,37 @@ var at = { exports: {} };
|
|
|
1618
1618
|
}
|
|
1619
1619
|
}) : v = d.reject("Invalid arguments"), h(v, c), v;
|
|
1620
1620
|
}
|
|
1621
|
-
var
|
|
1621
|
+
var Ut = {
|
|
1622
1622
|
_driver: "localStorageWrapper",
|
|
1623
|
-
_initStorage:
|
|
1624
|
-
_support:
|
|
1625
|
-
iterate:
|
|
1623
|
+
_initStorage: Dt,
|
|
1624
|
+
_support: At(),
|
|
1625
|
+
iterate: _t,
|
|
1626
1626
|
getItem: Tt,
|
|
1627
|
-
setItem:
|
|
1628
|
-
removeItem:
|
|
1629
|
-
clear:
|
|
1630
|
-
length:
|
|
1631
|
-
key:
|
|
1632
|
-
keys:
|
|
1633
|
-
dropInstance:
|
|
1634
|
-
},
|
|
1627
|
+
setItem: Lt,
|
|
1628
|
+
removeItem: Mt,
|
|
1629
|
+
clear: xt,
|
|
1630
|
+
length: Nt,
|
|
1631
|
+
key: Ct,
|
|
1632
|
+
keys: Pt,
|
|
1633
|
+
dropInstance: Rt
|
|
1634
|
+
}, Bt = function(c, a) {
|
|
1635
1635
|
return c === a || typeof c == "number" && typeof a == "number" && isNaN(c) && isNaN(a);
|
|
1636
|
-
},
|
|
1636
|
+
}, $t = function(c, a) {
|
|
1637
1637
|
for (var m = c.length, v = 0; v < m; ) {
|
|
1638
|
-
if (
|
|
1638
|
+
if (Bt(c[v], a))
|
|
1639
1639
|
return !0;
|
|
1640
1640
|
v++;
|
|
1641
1641
|
}
|
|
1642
1642
|
return !1;
|
|
1643
|
-
},
|
|
1643
|
+
}, $r = Array.isArray || function(n) {
|
|
1644
1644
|
return Object.prototype.toString.call(n) === "[object Array]";
|
|
1645
|
-
},
|
|
1645
|
+
}, Ve = {}, Fr = {}, ke = {
|
|
1646
1646
|
INDEXEDDB: lr,
|
|
1647
|
-
WEBSQL:
|
|
1648
|
-
LOCALSTORAGE:
|
|
1649
|
-
},
|
|
1647
|
+
WEBSQL: St,
|
|
1648
|
+
LOCALSTORAGE: Ut
|
|
1649
|
+
}, Ft = [ke.INDEXEDDB._driver, ke.WEBSQL._driver, ke.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), kt = {
|
|
1650
1650
|
description: "",
|
|
1651
|
-
driver:
|
|
1651
|
+
driver: Ft.slice(),
|
|
1652
1652
|
name: "localforage",
|
|
1653
1653
|
// Default DB size is _JUST UNDER_ 5MB, as it's the highest size
|
|
1654
1654
|
// we can use without a prompt.
|
|
@@ -1656,7 +1656,7 @@ var at = { exports: {} };
|
|
|
1656
1656
|
storeName: "keyvaluepairs",
|
|
1657
1657
|
version: 1
|
|
1658
1658
|
};
|
|
1659
|
-
function
|
|
1659
|
+
function Gt(n, c) {
|
|
1660
1660
|
n[c] = function() {
|
|
1661
1661
|
var a = arguments;
|
|
1662
1662
|
return n.ready().then(function() {
|
|
@@ -1669,19 +1669,19 @@ var at = { exports: {} };
|
|
|
1669
1669
|
var c = arguments[n];
|
|
1670
1670
|
if (c)
|
|
1671
1671
|
for (var a in c)
|
|
1672
|
-
c.hasOwnProperty(a) && (
|
|
1672
|
+
c.hasOwnProperty(a) && ($r(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
|
|
1673
1673
|
}
|
|
1674
1674
|
return arguments[0];
|
|
1675
1675
|
}
|
|
1676
|
-
var
|
|
1676
|
+
var Wt = function() {
|
|
1677
1677
|
function n(c) {
|
|
1678
1678
|
x(this, n);
|
|
1679
1679
|
for (var a in ke)
|
|
1680
1680
|
if (ke.hasOwnProperty(a)) {
|
|
1681
1681
|
var m = ke[a], v = m._driver;
|
|
1682
|
-
this[a] = v,
|
|
1682
|
+
this[a] = v, Ve[v] || this.defineDriver(m);
|
|
1683
1683
|
}
|
|
1684
|
-
this._defaultConfig = sr({},
|
|
1684
|
+
this._defaultConfig = sr({}, kt), this._config = sr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
1687
|
return n.prototype.config = function(a) {
|
|
@@ -1705,17 +1705,17 @@ var at = { exports: {} };
|
|
|
1705
1705
|
return;
|
|
1706
1706
|
}
|
|
1707
1707
|
for (var k = fr.concat("_initStorage"), q = 0, Z = k.length; q < Z; q++) {
|
|
1708
|
-
var p = k[q], re =
|
|
1708
|
+
var p = k[q], re = !$t(Ke, p);
|
|
1709
1709
|
if ((re || a[p]) && typeof a[p] != "function") {
|
|
1710
1710
|
R(F);
|
|
1711
1711
|
return;
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
1714
|
var ue = function() {
|
|
1715
|
-
for (var ze = function(
|
|
1715
|
+
for (var ze = function(Vt) {
|
|
1716
1716
|
return function() {
|
|
1717
|
-
var
|
|
1718
|
-
return h(
|
|
1717
|
+
var zt = new Error("Method " + Vt + " is not implemented by the current driver"), kr = d.reject(zt);
|
|
1718
|
+
return h(kr, arguments[arguments.length - 1]), kr;
|
|
1719
1719
|
};
|
|
1720
1720
|
}, or = 0, Ht = Ke.length; or < Ht; or++) {
|
|
1721
1721
|
var dr = Ke[or];
|
|
@@ -1724,18 +1724,18 @@ var at = { exports: {} };
|
|
|
1724
1724
|
};
|
|
1725
1725
|
ue();
|
|
1726
1726
|
var le = function(ze) {
|
|
1727
|
-
|
|
1727
|
+
Ve[B] && console.info("Redefining LocalForage driver: " + B), Ve[B] = a, Fr[B] = ze, C();
|
|
1728
1728
|
};
|
|
1729
1729
|
"_support" in a ? a._support && typeof a._support == "function" ? a._support().then(le, R) : le(!!a._support) : le(!0);
|
|
1730
|
-
} catch (
|
|
1731
|
-
R(
|
|
1730
|
+
} catch (ye) {
|
|
1731
|
+
R(ye);
|
|
1732
1732
|
}
|
|
1733
1733
|
});
|
|
1734
1734
|
return u(o, m, v), o;
|
|
1735
1735
|
}, n.prototype.driver = function() {
|
|
1736
1736
|
return this._driver || null;
|
|
1737
1737
|
}, n.prototype.getDriver = function(a, m, v) {
|
|
1738
|
-
var o =
|
|
1738
|
+
var o = Ve[a] ? d.resolve(Ve[a]) : d.reject(new Error("Driver not found."));
|
|
1739
1739
|
return u(o, m, v), o;
|
|
1740
1740
|
}, n.prototype.getSerializer = function(a) {
|
|
1741
1741
|
var m = d.resolve(cr);
|
|
@@ -1747,7 +1747,7 @@ var at = { exports: {} };
|
|
|
1747
1747
|
return u(v, a, a), v;
|
|
1748
1748
|
}, n.prototype.setDriver = function(a, m, v) {
|
|
1749
1749
|
var o = this;
|
|
1750
|
-
|
|
1750
|
+
$r(a) || (a = [a]);
|
|
1751
1751
|
var C = this._getSupportedDrivers(a);
|
|
1752
1752
|
function R() {
|
|
1753
1753
|
o._config.driver = o.driver();
|
|
@@ -1784,7 +1784,7 @@ var at = { exports: {} };
|
|
|
1784
1784
|
return o._driverSet = d.reject(q), o._driverSet;
|
|
1785
1785
|
}), u(this._driverSet, m, v), this._driverSet;
|
|
1786
1786
|
}, n.prototype.supports = function(a) {
|
|
1787
|
-
return !!
|
|
1787
|
+
return !!Fr[a];
|
|
1788
1788
|
}, n.prototype._extend = function(a) {
|
|
1789
1789
|
sr(this, a);
|
|
1790
1790
|
}, n.prototype._getSupportedDrivers = function(a) {
|
|
@@ -1795,63 +1795,62 @@ var at = { exports: {} };
|
|
|
1795
1795
|
return m;
|
|
1796
1796
|
}, n.prototype._wrapLibraryMethodsWithReady = function() {
|
|
1797
1797
|
for (var a = 0, m = fr.length; a < m; a++)
|
|
1798
|
-
|
|
1798
|
+
Gt(this, fr[a]);
|
|
1799
1799
|
}, n.prototype.createInstance = function(a) {
|
|
1800
1800
|
return new n(a);
|
|
1801
1801
|
}, n;
|
|
1802
|
-
}(),
|
|
1803
|
-
S.exports =
|
|
1802
|
+
}(), qt = new Wt();
|
|
1803
|
+
S.exports = qt;
|
|
1804
1804
|
}, { 3: 3 }] }, {}, [4])(4);
|
|
1805
1805
|
});
|
|
1806
|
-
})(
|
|
1807
|
-
var
|
|
1808
|
-
const
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
return ye == null ? e : (ye[e] ?? ye.development).localDbName ?? e;
|
|
1806
|
+
})(nt);
|
|
1807
|
+
var vn = nt.exports;
|
|
1808
|
+
const at = /* @__PURE__ */ rn(vn);
|
|
1809
|
+
let oe;
|
|
1810
|
+
function lt() {
|
|
1811
|
+
const e = oe.getEnv();
|
|
1812
|
+
return oe == null ? e : (oe[e] ?? oe.development).localDbName ?? e;
|
|
1814
1813
|
}
|
|
1815
|
-
function
|
|
1816
|
-
const e =
|
|
1817
|
-
return console.log(`env var: ${e}`),
|
|
1814
|
+
function Wr() {
|
|
1815
|
+
const e = oe.getEnv();
|
|
1816
|
+
return console.log(`env var: ${e}`), oe == null ? "" : (oe[e] ?? oe.development).auth ?? "";
|
|
1818
1817
|
}
|
|
1819
|
-
function
|
|
1820
|
-
const t =
|
|
1821
|
-
if (
|
|
1818
|
+
function gn(e) {
|
|
1819
|
+
const t = oe.getEnv();
|
|
1820
|
+
if (oe == null)
|
|
1822
1821
|
return "";
|
|
1823
|
-
const l =
|
|
1822
|
+
const l = oe[t] ?? oe.development;
|
|
1824
1823
|
return e == null ? l.data ?? "" : l.other[e] ?? l.data ?? "";
|
|
1825
1824
|
}
|
|
1826
|
-
function
|
|
1827
|
-
return
|
|
1825
|
+
function ha() {
|
|
1826
|
+
return oe;
|
|
1828
1827
|
}
|
|
1829
|
-
function
|
|
1830
|
-
return
|
|
1828
|
+
function yn(e) {
|
|
1829
|
+
return oe = e, oe;
|
|
1831
1830
|
}
|
|
1832
1831
|
let Oe = null;
|
|
1833
|
-
|
|
1834
|
-
name:
|
|
1832
|
+
at.config({
|
|
1833
|
+
name: lt()
|
|
1835
1834
|
});
|
|
1836
|
-
function
|
|
1837
|
-
const e =
|
|
1838
|
-
return (Oe == null || Oe.config.name != e) && (Oe =
|
|
1835
|
+
function ve() {
|
|
1836
|
+
const e = lt();
|
|
1837
|
+
return (Oe == null || Oe.config.name != e) && (Oe = at.createInstance({ name: e })), Oe;
|
|
1839
1838
|
}
|
|
1840
|
-
function
|
|
1839
|
+
function ma() {
|
|
1841
1840
|
async function e(s) {
|
|
1842
|
-
const g =
|
|
1843
|
-
(await g.keys()).filter((
|
|
1844
|
-
g.removeItem(
|
|
1841
|
+
const g = ve();
|
|
1842
|
+
(await g.keys()).filter((_) => _.startsWith(s)).forEach((_) => {
|
|
1843
|
+
g.removeItem(_);
|
|
1845
1844
|
});
|
|
1846
1845
|
}
|
|
1847
1846
|
async function t(s) {
|
|
1848
|
-
return await
|
|
1847
|
+
return await ve().getItem(s);
|
|
1849
1848
|
}
|
|
1850
1849
|
async function l(s) {
|
|
1851
|
-
return await
|
|
1850
|
+
return await ve().removeItem(s);
|
|
1852
1851
|
}
|
|
1853
1852
|
async function S(s, g) {
|
|
1854
|
-
await
|
|
1853
|
+
await ve().setItem(g, s);
|
|
1855
1854
|
}
|
|
1856
1855
|
return {
|
|
1857
1856
|
clearAsync: e,
|
|
@@ -1861,34 +1860,34 @@ function va() {
|
|
|
1861
1860
|
};
|
|
1862
1861
|
}
|
|
1863
1862
|
let er;
|
|
1864
|
-
function
|
|
1863
|
+
function va(e) {
|
|
1865
1864
|
return er(e)();
|
|
1866
1865
|
}
|
|
1867
1866
|
function Le(e) {
|
|
1868
1867
|
return er(e);
|
|
1869
1868
|
}
|
|
1870
|
-
function
|
|
1871
|
-
return er = (t) =>
|
|
1869
|
+
function wn(e) {
|
|
1870
|
+
return er = (t) => bn({
|
|
1872
1871
|
...e,
|
|
1873
1872
|
...t
|
|
1874
1873
|
}), er;
|
|
1875
1874
|
}
|
|
1876
|
-
function
|
|
1875
|
+
function bn(e) {
|
|
1877
1876
|
var t, l, S, s, g;
|
|
1878
1877
|
if (e.storeMode ?? (e.storeMode = ((l = (t = e.navigation) == null ? void 0 : t.findItem(e.nav)) == null ? void 0 : l.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((s = (S = e.navigation) == null ? void 0 : S.findItem(e.nav)) == null ? void 0 : s.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((g = e.navigation) == null ? void 0 : g.findStoreName(e.nav)) ?? e.nav), e.storeName == null)
|
|
1879
1878
|
throw new Error("no store name provided");
|
|
1880
1879
|
if (e.storeMode == "whole-last-updated") {
|
|
1881
1880
|
if (e.api == null)
|
|
1882
1881
|
throw new Error("Must supply an api object to use store");
|
|
1883
|
-
return
|
|
1882
|
+
return qr({ ...e, storeName: e.storeName ?? "" });
|
|
1884
1883
|
} else if (e.storeMode == "partial-last-updated") {
|
|
1885
1884
|
if (e.api == null)
|
|
1886
1885
|
throw new Error("Must supply an api object to use store");
|
|
1887
|
-
return
|
|
1886
|
+
return qr({ ...e, storeName: e.storeName ?? "" });
|
|
1888
1887
|
} else
|
|
1889
|
-
return
|
|
1888
|
+
return An({ ...e, storeName: e.storeName ?? "" });
|
|
1890
1889
|
}
|
|
1891
|
-
const
|
|
1890
|
+
const Sn = (e) => {
|
|
1892
1891
|
let t = K(e.url) ?? void 0;
|
|
1893
1892
|
if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Be(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Be(t, e.id)), e.params != null) {
|
|
1894
1893
|
t ?? (t = "");
|
|
@@ -1899,10 +1898,10 @@ const An = (e) => {
|
|
|
1899
1898
|
}
|
|
1900
1899
|
return e.finalUrl = t, e.finalUrl ?? "";
|
|
1901
1900
|
};
|
|
1902
|
-
function
|
|
1903
|
-
return
|
|
1901
|
+
function An(e) {
|
|
1902
|
+
return pr(e.storeName, () => {
|
|
1904
1903
|
var u;
|
|
1905
|
-
const t =
|
|
1904
|
+
const t = he.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Sn;
|
|
1906
1905
|
function x(r) {
|
|
1907
1906
|
var i, E;
|
|
1908
1907
|
let y = "";
|
|
@@ -1915,7 +1914,7 @@ function En(e) {
|
|
|
1915
1914
|
if (!I && l.value[y] !== void 0)
|
|
1916
1915
|
return l.value[y];
|
|
1917
1916
|
if (!I && s == !0) {
|
|
1918
|
-
const i = await
|
|
1917
|
+
const i = await ve().getItem(y);
|
|
1919
1918
|
if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
|
|
1920
1919
|
return l.value[y] = i, i;
|
|
1921
1920
|
}
|
|
@@ -1926,15 +1925,15 @@ function En(e) {
|
|
|
1926
1925
|
i == null && (i = new Promise(async (w, M) => {
|
|
1927
1926
|
var b;
|
|
1928
1927
|
try {
|
|
1929
|
-
const
|
|
1928
|
+
const T = await ((b = e.api) == null ? void 0 : b.getAll(r)), D = {
|
|
1930
1929
|
meta: { storedOn: t.toString() },
|
|
1931
|
-
data:
|
|
1932
|
-
count:
|
|
1933
|
-
filters: (
|
|
1930
|
+
data: T == null ? void 0 : T.data,
|
|
1931
|
+
count: T == null ? void 0 : T.count,
|
|
1932
|
+
filters: (T == null ? void 0 : T.filters) ?? []
|
|
1934
1933
|
};
|
|
1935
|
-
s == !0 && await
|
|
1936
|
-
} catch (
|
|
1937
|
-
M(
|
|
1934
|
+
s == !0 && await ve().setItem(y, D), w(D);
|
|
1935
|
+
} catch (T) {
|
|
1936
|
+
M(T);
|
|
1938
1937
|
} finally {
|
|
1939
1938
|
delete S.value[y];
|
|
1940
1939
|
}
|
|
@@ -1949,13 +1948,13 @@ function En(e) {
|
|
|
1949
1948
|
throw i;
|
|
1950
1949
|
}
|
|
1951
1950
|
}
|
|
1952
|
-
async function
|
|
1951
|
+
async function _(r) {
|
|
1953
1952
|
r.additionalUrl ?? (r.additionalUrl = "/get"), g(r);
|
|
1954
1953
|
const y = x(r), I = r.refresh;
|
|
1955
1954
|
if (!I && l.value[y] !== void 0)
|
|
1956
1955
|
return l.value[y];
|
|
1957
1956
|
if (!I && s == !0) {
|
|
1958
|
-
const i = await
|
|
1957
|
+
const i = await ve().getItem(y);
|
|
1959
1958
|
if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
|
|
1960
1959
|
return l.value[y] = i, { data: i.data };
|
|
1961
1960
|
}
|
|
@@ -1966,14 +1965,14 @@ function En(e) {
|
|
|
1966
1965
|
i == null && (i = new Promise(async (w, M) => {
|
|
1967
1966
|
var b;
|
|
1968
1967
|
try {
|
|
1969
|
-
let
|
|
1968
|
+
let T = await ((b = e.api) == null ? void 0 : b.get(r));
|
|
1970
1969
|
const D = {
|
|
1971
1970
|
meta: { storedOn: t.toString() },
|
|
1972
|
-
data:
|
|
1971
|
+
data: T == null ? void 0 : T.data
|
|
1973
1972
|
};
|
|
1974
|
-
s == !0 && await
|
|
1975
|
-
} catch (
|
|
1976
|
-
M(
|
|
1973
|
+
s == !0 && await ve().setItem(y, D), w(D);
|
|
1974
|
+
} catch (T) {
|
|
1975
|
+
M(T);
|
|
1977
1976
|
} finally {
|
|
1978
1977
|
delete S.value[y];
|
|
1979
1978
|
}
|
|
@@ -2003,12 +2002,12 @@ function En(e) {
|
|
|
2003
2002
|
meta: { storedOn: t.toString() },
|
|
2004
2003
|
data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...I }
|
|
2005
2004
|
};
|
|
2006
|
-
return l.value[y] = E, s == !0 && await
|
|
2005
|
+
return l.value[y] = E, s == !0 && await ve().setItem(y, E), I.id != null && I.rowVersion != null && Object.entries(l.value).forEach((M) => {
|
|
2007
2006
|
const b = M[1].data;
|
|
2008
2007
|
if (b != null)
|
|
2009
2008
|
if (Array.isArray(b))
|
|
2010
|
-
for (let
|
|
2011
|
-
b[
|
|
2009
|
+
for (let T = 0; T < b.length; T++)
|
|
2010
|
+
b[T].id == I.id && b.splice(T, 1, E.data);
|
|
2012
2011
|
else
|
|
2013
2012
|
b.id == I.id && (l.value[M[0]] = E);
|
|
2014
2013
|
}), E.data;
|
|
@@ -2033,7 +2032,7 @@ function En(e) {
|
|
|
2033
2032
|
meta: { storedOn: t.toString() },
|
|
2034
2033
|
data: I
|
|
2035
2034
|
};
|
|
2036
|
-
return s == !0 && await
|
|
2035
|
+
return s == !0 && await ve().setItem(y, i), l.value[y] = i, i.data;
|
|
2037
2036
|
}
|
|
2038
2037
|
return I;
|
|
2039
2038
|
}
|
|
@@ -2059,7 +2058,7 @@ function En(e) {
|
|
|
2059
2058
|
M[b].id == I && M.splice(b, 1);
|
|
2060
2059
|
else
|
|
2061
2060
|
delete l.value[w[0]];
|
|
2062
|
-
}), s == !0 && await
|
|
2061
|
+
}), s == !0 && await ve().removeItem(y);
|
|
2063
2062
|
}
|
|
2064
2063
|
async function h(r) {
|
|
2065
2064
|
if (r.additionalUrl ?? (r.additionalUrl = `/patch/restore?id=${r.data.id}`), g(r), e.api != null)
|
|
@@ -2072,7 +2071,7 @@ function En(e) {
|
|
|
2072
2071
|
}
|
|
2073
2072
|
return {
|
|
2074
2073
|
deleteItem: d,
|
|
2075
|
-
get:
|
|
2074
|
+
get: _,
|
|
2076
2075
|
getAll: P,
|
|
2077
2076
|
patch: N,
|
|
2078
2077
|
post: $,
|
|
@@ -2082,15 +2081,15 @@ function En(e) {
|
|
|
2082
2081
|
};
|
|
2083
2082
|
});
|
|
2084
2083
|
}
|
|
2085
|
-
function
|
|
2086
|
-
return
|
|
2087
|
-
const t = z(), l = z(0), S =
|
|
2088
|
-
function
|
|
2084
|
+
function qr(e) {
|
|
2085
|
+
return pr(e.storeName, () => {
|
|
2086
|
+
const t = z(), l = z(0), S = he.utc().toSeconds() / 3600, s = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
|
|
2087
|
+
function _() {
|
|
2089
2088
|
var i;
|
|
2090
2089
|
return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
|
|
2091
2090
|
}
|
|
2092
2091
|
async function N() {
|
|
2093
|
-
P == !0 && await
|
|
2092
|
+
P == !0 && await ve().setItem(_(), {
|
|
2094
2093
|
meta: g.value,
|
|
2095
2094
|
data: t.value,
|
|
2096
2095
|
count: l.value,
|
|
@@ -2098,15 +2097,15 @@ function Vr(e) {
|
|
|
2098
2097
|
});
|
|
2099
2098
|
}
|
|
2100
2099
|
function $(i) {
|
|
2101
|
-
const E =
|
|
2100
|
+
const E = _();
|
|
2102
2101
|
return x.value[E] || (x.value[E] = new Promise(async (w, M) => {
|
|
2103
|
-
var b,
|
|
2102
|
+
var b, T;
|
|
2104
2103
|
try {
|
|
2105
|
-
let D = await ((
|
|
2104
|
+
let D = await ((T = e.api) == null ? void 0 : T.getAll({
|
|
2106
2105
|
additionalUrl: "/getAll",
|
|
2107
2106
|
nav: i.nav,
|
|
2108
2107
|
params: {
|
|
2109
|
-
lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ??
|
|
2108
|
+
lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? ln()
|
|
2110
2109
|
}
|
|
2111
2110
|
}));
|
|
2112
2111
|
D == null ? M(D) : (t.value ?? (t.value = []), D.data.forEach((L) => {
|
|
@@ -2114,7 +2113,7 @@ function Vr(e) {
|
|
|
2114
2113
|
const f = t.value.findIndex((Q) => Q.id == L.id);
|
|
2115
2114
|
f >= 0 ? (A = t.value) == null || A.splice(f, 1, L) : (J = t.value) == null || J.push(L);
|
|
2116
2115
|
}), l.value = t.value.length, g.value = {
|
|
2117
|
-
lastUpdate:
|
|
2116
|
+
lastUpdate: he.utc().toString(),
|
|
2118
2117
|
storedOn: S.toString()
|
|
2119
2118
|
}, await N(), w(D));
|
|
2120
2119
|
} catch (D) {
|
|
@@ -2125,8 +2124,8 @@ function Vr(e) {
|
|
|
2125
2124
|
})), x.value[E];
|
|
2126
2125
|
}
|
|
2127
2126
|
async function d(i) {
|
|
2128
|
-
var M, b,
|
|
2129
|
-
const E =
|
|
2127
|
+
var M, b, T;
|
|
2128
|
+
const E = _(), w = i.refresh;
|
|
2130
2129
|
if (!w && t.value != null)
|
|
2131
2130
|
return {
|
|
2132
2131
|
count: (M = t.value) == null ? void 0 : M.length,
|
|
@@ -2134,7 +2133,7 @@ function Vr(e) {
|
|
|
2134
2133
|
filters: []
|
|
2135
2134
|
};
|
|
2136
2135
|
if (!w && P == !0) {
|
|
2137
|
-
const D = await
|
|
2136
|
+
const D = await ve().getItem(E);
|
|
2138
2137
|
if (D != null && parseFloat(D.meta.storedOn) > S - 7)
|
|
2139
2138
|
return t.value = D.data, l.value = D.data.length, s.value = D.filters ?? [], g.value = D.meta, {
|
|
2140
2139
|
count: (b = t.value) == null ? void 0 : b.length,
|
|
@@ -2144,7 +2143,7 @@ function Vr(e) {
|
|
|
2144
2143
|
}
|
|
2145
2144
|
if (e.api == null)
|
|
2146
2145
|
return {
|
|
2147
|
-
count: (
|
|
2146
|
+
count: (T = t.value) == null ? void 0 : T.length,
|
|
2148
2147
|
data: t.value ?? [],
|
|
2149
2148
|
filters: s.value
|
|
2150
2149
|
};
|
|
@@ -2157,8 +2156,8 @@ function Vr(e) {
|
|
|
2157
2156
|
}
|
|
2158
2157
|
}
|
|
2159
2158
|
async function h(i) {
|
|
2160
|
-
var b,
|
|
2161
|
-
const E =
|
|
2159
|
+
var b, T, D, L;
|
|
2160
|
+
const E = _(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
|
|
2162
2161
|
if (w == null)
|
|
2163
2162
|
throw new Error("no id provided");
|
|
2164
2163
|
let M = i.refresh;
|
|
@@ -2168,10 +2167,10 @@ function Vr(e) {
|
|
|
2168
2167
|
return { data: f };
|
|
2169
2168
|
}
|
|
2170
2169
|
if (!M && P == !0) {
|
|
2171
|
-
const f = await
|
|
2170
|
+
const f = await ve().getItem(E);
|
|
2172
2171
|
if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
|
|
2173
2172
|
t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
|
|
2174
|
-
let A = (
|
|
2173
|
+
let A = (T = t.value) == null ? void 0 : T.find((J) => J.id == i.id);
|
|
2175
2174
|
if (A != null)
|
|
2176
2175
|
return { data: A };
|
|
2177
2176
|
}
|
|
@@ -2194,19 +2193,19 @@ function Vr(e) {
|
|
|
2194
2193
|
let E;
|
|
2195
2194
|
if (e.api != null)
|
|
2196
2195
|
try {
|
|
2197
|
-
let
|
|
2198
|
-
E = { ...i.data, ...
|
|
2199
|
-
} catch (
|
|
2200
|
-
let D =
|
|
2196
|
+
let T = await e.api.patch(i);
|
|
2197
|
+
E = { ...i.data, ...T == null ? void 0 : T.data };
|
|
2198
|
+
} catch (T) {
|
|
2199
|
+
let D = T;
|
|
2201
2200
|
throw new Error(D.message ?? "Patch Problem");
|
|
2202
2201
|
}
|
|
2203
2202
|
else
|
|
2204
2203
|
E = i.data;
|
|
2205
2204
|
if (E != null) {
|
|
2206
|
-
let
|
|
2207
|
-
|
|
2205
|
+
let T = (w = t.value) == null ? void 0 : w.findIndex((D) => D.id == E.id);
|
|
2206
|
+
T != null && T >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(T, 1, E), await N());
|
|
2208
2207
|
}
|
|
2209
|
-
return (b = t.value) == null ? void 0 : b.find((
|
|
2208
|
+
return (b = t.value) == null ? void 0 : b.find((T) => T.id == (i.id ?? i.data.id));
|
|
2210
2209
|
}
|
|
2211
2210
|
async function r(i) {
|
|
2212
2211
|
var w, M;
|
|
@@ -2217,8 +2216,8 @@ function Vr(e) {
|
|
|
2217
2216
|
let b = await e.api.post(i);
|
|
2218
2217
|
E = b == null ? void 0 : b.data;
|
|
2219
2218
|
} catch (b) {
|
|
2220
|
-
let
|
|
2221
|
-
throw new Error(
|
|
2219
|
+
let T = b;
|
|
2220
|
+
throw new Error(T.message ?? "Patch Problem");
|
|
2222
2221
|
}
|
|
2223
2222
|
else
|
|
2224
2223
|
E = i.data;
|
|
@@ -2232,12 +2231,12 @@ function Vr(e) {
|
|
|
2232
2231
|
if (b != null)
|
|
2233
2232
|
return b;
|
|
2234
2233
|
} catch (b) {
|
|
2235
|
-
let
|
|
2236
|
-
throw new Error(
|
|
2234
|
+
let T = b;
|
|
2235
|
+
throw new Error(T.message ?? "Patch Problem");
|
|
2237
2236
|
}
|
|
2238
2237
|
const E = i.id ?? i.data.id;
|
|
2239
2238
|
if (E != null) {
|
|
2240
|
-
let b = (w = t.value) == null ? void 0 : w.findIndex((
|
|
2239
|
+
let b = (w = t.value) == null ? void 0 : w.findIndex((T) => T.id == E);
|
|
2241
2240
|
b != null && b >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(b, 1), await N());
|
|
2242
2241
|
}
|
|
2243
2242
|
}
|
|
@@ -2272,7 +2271,7 @@ let Ar;
|
|
|
2272
2271
|
function Er() {
|
|
2273
2272
|
return Ar;
|
|
2274
2273
|
}
|
|
2275
|
-
function
|
|
2274
|
+
function En(e) {
|
|
2276
2275
|
const t = (e == null ? void 0 : e.buildHeaders) ?? P, l = (e == null ? void 0 : e.buildQuery) ?? g, S = (e == null ? void 0 : e.buildUrl) ?? x, s = e == null ? void 0 : e.demo;
|
|
2277
2276
|
function g(u) {
|
|
2278
2277
|
let r = new URLSearchParams();
|
|
@@ -2291,7 +2290,7 @@ function In(e) {
|
|
|
2291
2290
|
let r = { ...u.headers };
|
|
2292
2291
|
return u.proxyID && (r.ManagedCompanyAccountID ?? (r.ManagedCompanyAccountID = u.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((y = e == null ? void 0 : e.auth) == null ? void 0 : y.isLoggedIn.value) == !0 && (r.authorization ?? (r.authorization = `bearer ${(I = e == null ? void 0 : e.auth) == null ? void 0 : I.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
|
|
2293
2292
|
}
|
|
2294
|
-
async function
|
|
2293
|
+
async function _(u) {
|
|
2295
2294
|
const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
|
|
2296
2295
|
let i = u.finalUrl, E = u.headers;
|
|
2297
2296
|
if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
|
|
@@ -2466,14 +2465,14 @@ function In(e) {
|
|
|
2466
2465
|
buildQuery: l,
|
|
2467
2466
|
buildUrl: S,
|
|
2468
2467
|
deleteItem: h,
|
|
2469
|
-
get:
|
|
2468
|
+
get: _,
|
|
2470
2469
|
getAll: N,
|
|
2471
2470
|
patch: d,
|
|
2472
2471
|
post: $
|
|
2473
2472
|
}, Ar;
|
|
2474
2473
|
}
|
|
2475
|
-
function
|
|
2476
|
-
const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: x } =
|
|
2474
|
+
function ut(e) {
|
|
2475
|
+
const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: x } = en(e);
|
|
2477
2476
|
function P(r) {
|
|
2478
2477
|
r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0);
|
|
2479
2478
|
let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
@@ -2497,7 +2496,7 @@ function it(e) {
|
|
|
2497
2496
|
throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
|
|
2498
2497
|
});
|
|
2499
2498
|
}
|
|
2500
|
-
function
|
|
2499
|
+
function _(r) {
|
|
2501
2500
|
r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
|
|
2502
2501
|
let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
2503
2502
|
const I = (e == null ? void 0 : e.items) ?? [];
|
|
@@ -2593,7 +2592,7 @@ function it(e) {
|
|
|
2593
2592
|
deleteItem: P,
|
|
2594
2593
|
doAction: g,
|
|
2595
2594
|
getAllItems: N,
|
|
2596
|
-
getItem:
|
|
2595
|
+
getItem: _,
|
|
2597
2596
|
isLoading: s,
|
|
2598
2597
|
logError: x,
|
|
2599
2598
|
restoreItem: $,
|
|
@@ -2602,17 +2601,17 @@ function it(e) {
|
|
|
2602
2601
|
}
|
|
2603
2602
|
let hr = "Australia/Melbourne", Ir;
|
|
2604
2603
|
const Hr = "auth-credentials-state";
|
|
2605
|
-
function
|
|
2604
|
+
function In() {
|
|
2606
2605
|
return Ir;
|
|
2607
2606
|
}
|
|
2608
|
-
function
|
|
2607
|
+
function Dn(e) {
|
|
2609
2608
|
const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
|
|
2610
2609
|
let l = z(localStorage.getItem(Hr) ?? "");
|
|
2611
2610
|
l.value.length == 0 && S();
|
|
2612
2611
|
function S() {
|
|
2613
2612
|
l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Hr, l.value);
|
|
2614
2613
|
}
|
|
2615
|
-
const s =
|
|
2614
|
+
const s = Zt("auth-credentials", {});
|
|
2616
2615
|
function g(D) {
|
|
2617
2616
|
if (D == null)
|
|
2618
2617
|
return !0;
|
|
@@ -2658,12 +2657,12 @@ function xn(e) {
|
|
|
2658
2657
|
return !0;
|
|
2659
2658
|
if (L.permissions != null) {
|
|
2660
2659
|
for (var A = 0; A < L.permissions.length; A++)
|
|
2661
|
-
if (!
|
|
2660
|
+
if (!_(L.permissions[A]))
|
|
2662
2661
|
return !1;
|
|
2663
2662
|
}
|
|
2664
2663
|
return !0;
|
|
2665
2664
|
}
|
|
2666
|
-
function
|
|
2665
|
+
function _(D) {
|
|
2667
2666
|
const L = K(s);
|
|
2668
2667
|
if (L.userPermissions != null)
|
|
2669
2668
|
for (var f = 0; f < L.userPermissions.length; f++) {
|
|
@@ -2676,7 +2675,7 @@ function xn(e) {
|
|
|
2676
2675
|
function N(D, L, f) {
|
|
2677
2676
|
let A = !0;
|
|
2678
2677
|
return K(s).isGlobalAdmin ? !0 : (L != null && L.length > 0 && L.forEach((Q) => {
|
|
2679
|
-
f == "edit" ? x(Q) || (A = !1) :
|
|
2678
|
+
f == "edit" ? x(Q) || (A = !1) : _(Q) || (A = !1);
|
|
2680
2679
|
}), D != null && D.length > 0 && (D.some((Q) => u(Q)) || (A = !1)), A);
|
|
2681
2680
|
}
|
|
2682
2681
|
function $(D, L = !1) {
|
|
@@ -2685,13 +2684,13 @@ function xn(e) {
|
|
|
2685
2684
|
if (f == null)
|
|
2686
2685
|
return !1;
|
|
2687
2686
|
let J = f.subscriptions ?? [], Q = f.permissions ?? [], ee = N(J, Q, "view");
|
|
2688
|
-
return ee || !L || !
|
|
2687
|
+
return ee || !L || !_e(f.children) ? ee : ((f == null ? void 0 : f.children) != null && f.children.forEach((ie) => {
|
|
2689
2688
|
$(ie, !0) && (A = !0);
|
|
2690
2689
|
}), A);
|
|
2691
2690
|
}
|
|
2692
2691
|
function d(D) {
|
|
2693
2692
|
return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (L, f) => {
|
|
2694
|
-
const A = Be(
|
|
2693
|
+
const A = Be(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
|
|
2695
2694
|
return L ? `${A}&redirect_path=${L}` : A;
|
|
2696
2695
|
}), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(D, l.value) ?? "" : "";
|
|
2697
2696
|
}
|
|
@@ -2721,7 +2720,7 @@ function xn(e) {
|
|
|
2721
2720
|
}
|
|
2722
2721
|
function I(D) {
|
|
2723
2722
|
var f;
|
|
2724
|
-
K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(),
|
|
2723
|
+
K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(D)));
|
|
2725
2724
|
}
|
|
2726
2725
|
async function i(D, L) {
|
|
2727
2726
|
return e.getToken ?? (e.getToken = async () => {
|
|
@@ -2731,7 +2730,7 @@ function xn(e) {
|
|
|
2731
2730
|
if (A != l.value)
|
|
2732
2731
|
throw new Error("state does not match");
|
|
2733
2732
|
let ee = "";
|
|
2734
|
-
e.getTokenUrl ?? (e.getTokenUrl = () => Be(
|
|
2733
|
+
e.getTokenUrl ?? (e.getTokenUrl = () => Be(Wr(), "token")), ee = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
|
|
2735
2734
|
const ie = {};
|
|
2736
2735
|
ie.grant_type = J, ie.code = f, ie.redirect_uri = `${window.location.origin}/authentication`, ie.client_id = Q;
|
|
2737
2736
|
const W = await Er().post({
|
|
@@ -2758,13 +2757,13 @@ function xn(e) {
|
|
|
2758
2757
|
}
|
|
2759
2758
|
function b() {
|
|
2760
2759
|
const D = K(s);
|
|
2761
|
-
return D.isLoggedIn &&
|
|
2760
|
+
return D.isLoggedIn && T() && (y(), window.location.href = d()), D.isLoggedIn;
|
|
2762
2761
|
}
|
|
2763
|
-
function
|
|
2762
|
+
function T() {
|
|
2764
2763
|
const D = K(s);
|
|
2765
2764
|
if (D == null || D.expiresOn == null)
|
|
2766
2765
|
return !0;
|
|
2767
|
-
const L =
|
|
2766
|
+
const L = he.fromFormat(D.expiresOn, t), f = he.utc();
|
|
2768
2767
|
return L <= f;
|
|
2769
2768
|
}
|
|
2770
2769
|
return M(), Ir = {
|
|
@@ -2772,7 +2771,7 @@ function xn(e) {
|
|
|
2772
2771
|
canEdit: g,
|
|
2773
2772
|
canEditPermit: x,
|
|
2774
2773
|
canView: P,
|
|
2775
|
-
canViewPermit:
|
|
2774
|
+
canViewPermit: _,
|
|
2776
2775
|
credentials: s,
|
|
2777
2776
|
doShow: N,
|
|
2778
2777
|
doShowByNav: $,
|
|
@@ -2787,13 +2786,13 @@ function xn(e) {
|
|
|
2787
2786
|
tryLogin: b
|
|
2788
2787
|
}, Ir;
|
|
2789
2788
|
}
|
|
2790
|
-
function
|
|
2789
|
+
function xn(e, t, l = {}) {
|
|
2791
2790
|
const {
|
|
2792
2791
|
preventDefault: S = !1,
|
|
2793
2792
|
stopPropagation: s = !1,
|
|
2794
2793
|
axis: g = "both"
|
|
2795
2794
|
} = l, x = { capture: l.capture ?? !0 };
|
|
2796
|
-
let P = { x: 0, y: 0 },
|
|
2795
|
+
let P = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
|
|
2797
2796
|
function u(M) {
|
|
2798
2797
|
K(S) && M.preventDefault(), K(s) && M.stopPropagation();
|
|
2799
2798
|
}
|
|
@@ -2802,14 +2801,14 @@ function _n(e, t, l = {}) {
|
|
|
2802
2801
|
const b = K(e);
|
|
2803
2802
|
if (!b)
|
|
2804
2803
|
return;
|
|
2805
|
-
const
|
|
2806
|
-
N = { x: L.clientX, y: L.clientY },
|
|
2807
|
-
x:
|
|
2808
|
-
y:
|
|
2804
|
+
const T = b.$el, L = M.type === "touchstart" && M.touches.length > 0 ? M.touches[0] : M;
|
|
2805
|
+
N = { x: L.clientX, y: L.clientY }, _ = {
|
|
2806
|
+
x: T.offsetLeft,
|
|
2807
|
+
y: T.offsetTop
|
|
2809
2808
|
}, P = {
|
|
2810
|
-
x:
|
|
2811
|
-
y:
|
|
2812
|
-
}, ((f = l.onStart) == null ? void 0 : f.call(l, N, M)) !== !1 && (d.push(
|
|
2809
|
+
x: T.offsetLeft,
|
|
2810
|
+
y: T.offsetTop
|
|
2811
|
+
}, ((f = l.onStart) == null ? void 0 : f.call(l, N, M)) !== !1 && (d.push(me("mousemove", y)), d.push(me("touchmove", y)), d.push(me("mouseup", I)), d.push(me("touchend", I)), u(M));
|
|
2813
2812
|
}
|
|
2814
2813
|
function y(M) {
|
|
2815
2814
|
var A;
|
|
@@ -2817,20 +2816,20 @@ function _n(e, t, l = {}) {
|
|
|
2817
2816
|
return;
|
|
2818
2817
|
const D = M.type === "touchmove" && M.touches.length > 0 ? M.touches[0] : M;
|
|
2819
2818
|
let L = D.clientX - N.x, f = D.clientY - N.y;
|
|
2820
|
-
(g === "x" || g === "both") && (P.x =
|
|
2819
|
+
(g === "x" || g === "both") && (P.x = _.x + L), (g === "y" || g === "both") && (P.y = _.y + f), (A = l.onMove) == null || A.call(l, P, M), u(M), i(P);
|
|
2821
2820
|
}
|
|
2822
2821
|
function I(M) {
|
|
2823
2822
|
var b;
|
|
2824
|
-
document.documentElement.style.cursor = "", d.forEach((
|
|
2825
|
-
|
|
2823
|
+
document.documentElement.style.cursor = "", d.forEach((T) => {
|
|
2824
|
+
T();
|
|
2826
2825
|
}), d.length = 0, (b = l.onEnd) == null || b.call(l, P, M), u(M);
|
|
2827
2826
|
}
|
|
2828
2827
|
function i(M) {
|
|
2829
2828
|
const b = K(e);
|
|
2830
2829
|
if (!b)
|
|
2831
2830
|
return;
|
|
2832
|
-
const
|
|
2833
|
-
|
|
2831
|
+
const T = b.$el;
|
|
2832
|
+
T.style.left = `${M.x}px`, T.style.top = `${M.y}px`;
|
|
2834
2833
|
}
|
|
2835
2834
|
function E() {
|
|
2836
2835
|
if (K(h))
|
|
@@ -2839,7 +2838,7 @@ function _n(e, t, l = {}) {
|
|
|
2839
2838
|
if (!M)
|
|
2840
2839
|
return;
|
|
2841
2840
|
const b = M.$el;
|
|
2842
|
-
b.style.cursor = "move", $.push(
|
|
2841
|
+
b.style.cursor = "move", $.push(me(b, "mousedown", r, x)), $.push(me(b, "touchstart", r, x)), h.value = !0;
|
|
2843
2842
|
}
|
|
2844
2843
|
function w() {
|
|
2845
2844
|
if (!K(h))
|
|
@@ -2848,8 +2847,8 @@ function _n(e, t, l = {}) {
|
|
|
2848
2847
|
if (!M)
|
|
2849
2848
|
return;
|
|
2850
2849
|
const b = M.$el;
|
|
2851
|
-
b.style.cursor = "", $.forEach((
|
|
2852
|
-
|
|
2850
|
+
b.style.cursor = "", $.forEach((T) => {
|
|
2851
|
+
T();
|
|
2853
2852
|
}), $.length = 0, h.value = !1;
|
|
2854
2853
|
}
|
|
2855
2854
|
return {
|
|
@@ -2859,8 +2858,8 @@ function _n(e, t, l = {}) {
|
|
|
2859
2858
|
};
|
|
2860
2859
|
}
|
|
2861
2860
|
const Tn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
|
|
2862
|
-
function
|
|
2863
|
-
let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0,
|
|
2861
|
+
function _n(e, t = {}) {
|
|
2862
|
+
let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, N = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
|
|
2864
2863
|
const u = z(!1);
|
|
2865
2864
|
let r = [], y = [];
|
|
2866
2865
|
const I = z(!1), i = z({ x: 0, y: 0 });
|
|
@@ -2869,14 +2868,14 @@ function Cn(e, t = {}) {
|
|
|
2869
2868
|
Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
|
|
2870
2869
|
}
|
|
2871
2870
|
function b(W, Y) {
|
|
2872
|
-
h = Y.map(D), h.forEach((
|
|
2871
|
+
h = Y.map(D), h.forEach((H) => W.$el.appendChild(H));
|
|
2873
2872
|
}
|
|
2874
|
-
function
|
|
2873
|
+
function T(W) {
|
|
2875
2874
|
h.forEach((Y) => W.$el.removeChild(Y));
|
|
2876
2875
|
}
|
|
2877
2876
|
function D(W) {
|
|
2878
|
-
const Y = S + "px",
|
|
2879
|
-
return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top =
|
|
2877
|
+
const Y = S + "px", H = -S / 2 + "px", ae = s + 1, G = document.createElement("div");
|
|
2878
|
+
return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top = H, G.style.height = Y, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = H, G.style.height = Y, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = H, G.style.width = Y, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = H, G.style.width = Y, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
|
|
2880
2879
|
}
|
|
2881
2880
|
function L(W) {
|
|
2882
2881
|
var ne;
|
|
@@ -2885,30 +2884,30 @@ function Cn(e, t = {}) {
|
|
|
2885
2884
|
const Y = Ae(e);
|
|
2886
2885
|
if (!Y)
|
|
2887
2886
|
return;
|
|
2888
|
-
const
|
|
2887
|
+
const H = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
|
|
2889
2888
|
if (i.value.x = G.clientX, i.value.y = G.clientY, E = {
|
|
2890
|
-
left:
|
|
2891
|
-
top:
|
|
2892
|
-
height: parseInt(window.getComputedStyle(
|
|
2893
|
-
width: parseInt(window.getComputedStyle(
|
|
2889
|
+
left: H.offsetLeft,
|
|
2890
|
+
top: H.offsetTop,
|
|
2891
|
+
height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
|
|
2892
|
+
width: parseInt(window.getComputedStyle(H).getPropertyValue("width"))
|
|
2894
2893
|
}, w = Lr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
|
|
2895
2894
|
return;
|
|
2896
2895
|
let X = W.target;
|
|
2897
|
-
document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(
|
|
2896
|
+
document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(me("mousemove", f)), y.push(me("mouseup", A)), y.push(me("touchmove", f)), y.push(me("touchend", A)), M(W);
|
|
2898
2897
|
}
|
|
2899
2898
|
function f(W) {
|
|
2900
2899
|
const Y = Ae(e);
|
|
2901
2900
|
if (!Y)
|
|
2902
2901
|
return;
|
|
2903
|
-
const
|
|
2902
|
+
const H = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
|
|
2904
2903
|
let X = G.clientX - i.value.x, ne = G.clientY - i.value.y;
|
|
2905
2904
|
const fe = Ae(E);
|
|
2906
2905
|
if (d.includes("t")) {
|
|
2907
|
-
const ce = Math.min(
|
|
2906
|
+
const ce = Math.min(_, Math.max(P, (fe.height ?? 0) - ne));
|
|
2908
2907
|
w.height = ce, w.top = (fe.top ?? 0) + ne;
|
|
2909
2908
|
}
|
|
2910
2909
|
if (d.includes("b")) {
|
|
2911
|
-
const ce = Math.min(
|
|
2910
|
+
const ce = Math.min(_, Math.max(P, (fe.height ?? 0) + ne));
|
|
2912
2911
|
w.height = ce;
|
|
2913
2912
|
}
|
|
2914
2913
|
if (d.includes("l")) {
|
|
@@ -2919,7 +2918,7 @@ function Cn(e, t = {}) {
|
|
|
2919
2918
|
const ce = Math.min(x, Math.max(g, (fe.width ?? 0) + X));
|
|
2920
2919
|
w.width = ce;
|
|
2921
2920
|
}
|
|
2922
|
-
|
|
2921
|
+
H.dispatchEvent(new CustomEvent("resize")), M(W), ee(w);
|
|
2923
2922
|
}
|
|
2924
2923
|
function A() {
|
|
2925
2924
|
document.documentElement.style.cursor = "", d = null, y.forEach((W) => {
|
|
@@ -2933,37 +2932,37 @@ function Cn(e, t = {}) {
|
|
|
2933
2932
|
b: "s",
|
|
2934
2933
|
l: "w"
|
|
2935
2934
|
};
|
|
2936
|
-
return W.split("").map((
|
|
2935
|
+
return W.split("").map((H) => Y[H]).join("") + "-resize";
|
|
2937
2936
|
}
|
|
2938
2937
|
function Q(W) {
|
|
2939
2938
|
const Y = Ae(e);
|
|
2940
2939
|
if (!Y)
|
|
2941
2940
|
return;
|
|
2942
|
-
const
|
|
2941
|
+
const H = Y.$el;
|
|
2943
2942
|
if (console.log(l), l !== "page" && W == "page") {
|
|
2944
|
-
const ae =
|
|
2943
|
+
const ae = Jt(H), G = Ae(ae) ?? null;
|
|
2945
2944
|
let X = 0;
|
|
2946
2945
|
if (G != null) {
|
|
2947
2946
|
const ne = window.getComputedStyle(G);
|
|
2948
2947
|
X = parseInt(ne.getPropertyValue("width")) - G.offsetLeft;
|
|
2949
2948
|
}
|
|
2950
|
-
|
|
2949
|
+
H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", H.offsetHeight, u.value = !0, ee({
|
|
2951
2950
|
height: void 0,
|
|
2952
2951
|
width: X,
|
|
2953
2952
|
top: 0,
|
|
2954
2953
|
left: 0,
|
|
2955
2954
|
position: void 0
|
|
2956
|
-
}),
|
|
2957
|
-
|
|
2955
|
+
}), me(H, "transitionend", () => {
|
|
2956
|
+
H.style.width = "auto", H.style.top = "", H.style.left = "", H.style.position = "", H.style.transition = "", u.value = !1;
|
|
2958
2957
|
}, { once: !0 });
|
|
2959
2958
|
} else if ((l == "page" || Y.$el.style.position !== "absolute") && W !== "page") {
|
|
2960
|
-
|
|
2961
|
-
height: parseInt(window.getComputedStyle(
|
|
2962
|
-
width: parseInt(window.getComputedStyle(
|
|
2963
|
-
top:
|
|
2964
|
-
left:
|
|
2959
|
+
H.style.transition = "width 0.5s, height 0.5s, top 0.5s, left 0.5s", u.value = !0, E = {
|
|
2960
|
+
height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
|
|
2961
|
+
width: parseInt(window.getComputedStyle(H).getPropertyValue("width")),
|
|
2962
|
+
top: H.offsetTop,
|
|
2963
|
+
left: H.offsetLeft,
|
|
2965
2964
|
position: "absolute"
|
|
2966
|
-
}, ee(E),
|
|
2965
|
+
}, ee(E), H.offsetHeight;
|
|
2967
2966
|
const ae = E;
|
|
2968
2967
|
W == "freestyle" ? w = {
|
|
2969
2968
|
height: ae.height,
|
|
@@ -2977,8 +2976,8 @@ function Cn(e, t = {}) {
|
|
|
2977
2976
|
top: (ae.top ?? 0) + 2,
|
|
2978
2977
|
left: (ae.left ?? 0) + 2,
|
|
2979
2978
|
position: "absolute"
|
|
2980
|
-
}), ee(w),
|
|
2981
|
-
|
|
2979
|
+
}), ee(w), me(H, "transitionend", () => {
|
|
2980
|
+
H.style.transition = "", u.value = !1;
|
|
2982
2981
|
}, { once: !0 });
|
|
2983
2982
|
}
|
|
2984
2983
|
}
|
|
@@ -2986,21 +2985,21 @@ function Cn(e, t = {}) {
|
|
|
2986
2985
|
const Y = Ae(e);
|
|
2987
2986
|
if (!Y)
|
|
2988
2987
|
return;
|
|
2989
|
-
const
|
|
2990
|
-
W.top ?
|
|
2988
|
+
const H = Y.$el;
|
|
2989
|
+
W.top ? H.style.top = `${W.top}px` : H.style.top = void 0, W.left ? H.style.left = `${W.left}px` : H.style.left = void 0, W.height ? H.style.height = `${W.height}px` : H.style.height = void 0, W.width ? H.style.width = `${W.width}px` : H.style.width = void 0, W.position ? H.style.position = `${W.position}` : H.style.position = void 0, console.log(H.style.position);
|
|
2991
2990
|
}
|
|
2992
2991
|
function ie(W, Y) {
|
|
2993
2992
|
if (I.value)
|
|
2994
2993
|
return;
|
|
2995
|
-
const
|
|
2996
|
-
|
|
2994
|
+
const H = Ae(e);
|
|
2995
|
+
H && (b(H, W ?? Tn), Q(Y), r.push(me(H.$el, "mousedown", L)), r.push(me(H.$el, "touchstart", L)), I.value = !0, l = Y);
|
|
2997
2996
|
}
|
|
2998
2997
|
function we(W) {
|
|
2999
2998
|
if (!I.value)
|
|
3000
2999
|
return;
|
|
3001
3000
|
const Y = Ae(e);
|
|
3002
|
-
Y && (
|
|
3003
|
-
|
|
3001
|
+
Y && (T(Y), Q(W), r.forEach((H) => {
|
|
3002
|
+
H();
|
|
3004
3003
|
}), r.length = 0, I.value = !1);
|
|
3005
3004
|
}
|
|
3006
3005
|
return {
|
|
@@ -3009,16 +3008,16 @@ function Cn(e, t = {}) {
|
|
|
3009
3008
|
turnResizingOff: we
|
|
3010
3009
|
};
|
|
3011
3010
|
}
|
|
3012
|
-
function
|
|
3013
|
-
const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), x = z({}), { turnResizingOff: P, turnResizingOn:
|
|
3014
|
-
|
|
3011
|
+
function Cn(e) {
|
|
3012
|
+
const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), x = z({}), { turnResizingOff: P, turnResizingOn: _ } = _n(t), { turnDraggableOff: N, turnDraggableOn: $ } = xn(t, l);
|
|
3013
|
+
jt(t, (h) => {
|
|
3015
3014
|
const u = h[0], { width: r } = u.contentRect;
|
|
3016
3015
|
S.value = r < s;
|
|
3017
3016
|
});
|
|
3018
3017
|
function d(h) {
|
|
3019
|
-
N(), h == "page" ? P(h) : h == "blade" ?
|
|
3018
|
+
N(), h == "page" ? P(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (P(), _(void 0, h), $()) : h == "inline" && P();
|
|
3020
3019
|
}
|
|
3021
|
-
return d(g.value),
|
|
3020
|
+
return d(g.value), Te(g, (h) => d(h)), {
|
|
3022
3021
|
isMobile: S,
|
|
3023
3022
|
variant: g,
|
|
3024
3023
|
bladeData: x
|
|
@@ -3042,10 +3041,10 @@ const mr = {
|
|
|
3042
3041
|
warning: "#FB8C00"
|
|
3043
3042
|
};
|
|
3044
3043
|
let Dr;
|
|
3045
|
-
function
|
|
3044
|
+
function ga() {
|
|
3046
3045
|
return Dr;
|
|
3047
3046
|
}
|
|
3048
|
-
function
|
|
3047
|
+
function ya(e) {
|
|
3049
3048
|
const t = localStorage.getItem("cosmetics");
|
|
3050
3049
|
let l;
|
|
3051
3050
|
return t != null && t.length > 0 && (l = JSON.parse(t)), l ?? (l = {}), l.dark ?? (l.dark = e == null ? void 0 : e.dark), l.light ?? (l.light = e == null ? void 0 : e.light), l.theme ?? (l.theme = e == null ? void 0 : e.defaultTheme), {
|
|
@@ -3060,7 +3059,7 @@ function wa(e) {
|
|
|
3060
3059
|
}
|
|
3061
3060
|
};
|
|
3062
3061
|
}
|
|
3063
|
-
function
|
|
3062
|
+
function Pn(e) {
|
|
3064
3063
|
const t = z({});
|
|
3065
3064
|
let l = e.vuetifyInstance;
|
|
3066
3065
|
function S() {
|
|
@@ -3101,7 +3100,7 @@ function Nn(e) {
|
|
|
3101
3100
|
function P() {
|
|
3102
3101
|
t.value.drawer = !t.value.drawer;
|
|
3103
3102
|
}
|
|
3104
|
-
function
|
|
3103
|
+
function _() {
|
|
3105
3104
|
t.value.drawerStick = !t.value.drawerStick;
|
|
3106
3105
|
}
|
|
3107
3106
|
function N() {
|
|
@@ -3114,22 +3113,22 @@ function Nn(e) {
|
|
|
3114
3113
|
h.colors.primary = (t.value.dark ?? { ...vr, ...e.defaultDarkTheme }).primary, u.colors.primary = (t.value.light ?? { ...mr, ...e.defaultLightTheme }).primary, (d = document.querySelector('meta[name="theme-color"]')) == null || d.setAttribute("content", "");
|
|
3115
3114
|
}
|
|
3116
3115
|
}
|
|
3117
|
-
return S(),
|
|
3116
|
+
return S(), Te(t, () => {
|
|
3118
3117
|
s();
|
|
3119
3118
|
}), Dr = {
|
|
3120
3119
|
state: t,
|
|
3121
3120
|
resetCosmetics: g,
|
|
3122
3121
|
setTemporaryColor: x,
|
|
3123
3122
|
toggleDrawer: P,
|
|
3124
|
-
toggleDrawerStick:
|
|
3123
|
+
toggleDrawerStick: _,
|
|
3125
3124
|
toggleLightDark: N,
|
|
3126
3125
|
undoTemporaryColor: $
|
|
3127
3126
|
}, Dr;
|
|
3128
3127
|
}
|
|
3129
|
-
const
|
|
3128
|
+
const wa = {
|
|
3130
3129
|
canExportCSV: !1
|
|
3131
3130
|
};
|
|
3132
|
-
function
|
|
3131
|
+
function Nn() {
|
|
3133
3132
|
function e(t) {
|
|
3134
3133
|
const {
|
|
3135
3134
|
items: l,
|
|
@@ -3137,24 +3136,24 @@ function Mn() {
|
|
|
3137
3136
|
fileName: s = "data.csv",
|
|
3138
3137
|
format: g = "file"
|
|
3139
3138
|
} = t;
|
|
3140
|
-
if (!
|
|
3139
|
+
if (!_e(l))
|
|
3141
3140
|
return;
|
|
3142
3141
|
let x = [];
|
|
3143
3142
|
S != null ? x = S == null ? void 0 : S.filter((I) => (I.csv ?? I.csvText ?? I.csvFilter ?? I.csvArray) != null).map((I) => ({
|
|
3144
3143
|
header: I.title ?? I.value ?? "",
|
|
3145
3144
|
itemText: I.itemText,
|
|
3146
3145
|
value: I.value
|
|
3147
|
-
})) : x = Object.keys(l[0]).map((I) => ({ header:
|
|
3146
|
+
})) : x = Object.keys(l[0]).map((I) => ({ header: tn(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
|
|
3148
3147
|
var P = [];
|
|
3149
3148
|
for (let I = 0; I < l.length; I++) {
|
|
3150
3149
|
const i = l[I];
|
|
3151
|
-
var
|
|
3150
|
+
var _ = {}, N = [];
|
|
3152
3151
|
for (let E = 0; E < x.length; E++) {
|
|
3153
3152
|
const w = x[E];
|
|
3154
3153
|
var $ = null;
|
|
3155
|
-
typeof w.value == "function" ? $ = w.value(i) : typeof w.value == "string" && ($ = Sr(i, w.value)), w.itemText != null ?
|
|
3154
|
+
typeof w.value == "function" ? $ = w.value(i) : typeof w.value == "string" && ($ = Sr(i, w.value)), w.itemText != null ? _[w.header] = Sr($, w.itemText) : _[w.header] = $;
|
|
3156
3155
|
}
|
|
3157
|
-
P.push(
|
|
3156
|
+
P.push(_), _e(N) && N.forEach((E) => {
|
|
3158
3157
|
P.push(E);
|
|
3159
3158
|
}), N = [];
|
|
3160
3159
|
}
|
|
@@ -3183,38 +3182,38 @@ function Mn() {
|
|
|
3183
3182
|
};
|
|
3184
3183
|
}
|
|
3185
3184
|
let xr;
|
|
3186
|
-
function
|
|
3185
|
+
function ba() {
|
|
3187
3186
|
return xr;
|
|
3188
3187
|
}
|
|
3189
|
-
function
|
|
3190
|
-
const t = e.getUTC ??
|
|
3188
|
+
function Mn(e) {
|
|
3189
|
+
const t = e.getUTC ?? he.utc;
|
|
3191
3190
|
function l() {
|
|
3192
3191
|
return s().startOf("day").toUTC().toString() ?? "";
|
|
3193
3192
|
}
|
|
3194
3193
|
function S() {
|
|
3195
3194
|
return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
|
|
3196
3195
|
}
|
|
3197
|
-
function s(
|
|
3198
|
-
return
|
|
3196
|
+
function s(_, N) {
|
|
3197
|
+
return _ == null ? t().setZone(e.getTimeZone()) : N ? he.fromFormat(_, N, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
|
|
3199
3198
|
}
|
|
3200
|
-
function g(
|
|
3201
|
-
if (
|
|
3199
|
+
function g(_, N, $) {
|
|
3200
|
+
if (_ == null) {
|
|
3202
3201
|
const h = t().setZone(e.getTimeZone());
|
|
3203
3202
|
return N ? h.toFormat(N) : h.toString();
|
|
3204
3203
|
}
|
|
3205
|
-
if (
|
|
3204
|
+
if (_ == "Invalid DateTime")
|
|
3206
3205
|
return "";
|
|
3207
|
-
const d = $ ?
|
|
3206
|
+
const d = $ ? he.fromFormat(_, $, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
|
|
3208
3207
|
return N ? d.toFormat(N) : d == null ? void 0 : d.toString();
|
|
3209
3208
|
}
|
|
3210
|
-
function x(
|
|
3211
|
-
return
|
|
3209
|
+
function x(_, N) {
|
|
3210
|
+
return _ == null ? t() : N ? he.fromFormat(_, N) : he.fromISO(_);
|
|
3212
3211
|
}
|
|
3213
|
-
function P(
|
|
3214
|
-
if (
|
|
3212
|
+
function P(_, N, $) {
|
|
3213
|
+
if (_ == null)
|
|
3215
3214
|
return N ? t().toFormat(N) : t().toString();
|
|
3216
3215
|
{
|
|
3217
|
-
const d = $ ?
|
|
3216
|
+
const d = $ ? he.fromFormat(_, $) : he.fromISO(_);
|
|
3218
3217
|
return N ? d.toFormat(N) : d.toString();
|
|
3219
3218
|
}
|
|
3220
3219
|
}
|
|
@@ -3227,11 +3226,11 @@ function Ln(e) {
|
|
|
3227
3226
|
utcString: P
|
|
3228
3227
|
}, xr;
|
|
3229
3228
|
}
|
|
3230
|
-
let
|
|
3231
|
-
function
|
|
3232
|
-
return
|
|
3229
|
+
let Tr;
|
|
3230
|
+
function Sa() {
|
|
3231
|
+
return Tr;
|
|
3233
3232
|
}
|
|
3234
|
-
function
|
|
3233
|
+
function Ln(e) {
|
|
3235
3234
|
const t = z(!1), l = (e == null ? void 0 : e.apis) ?? [];
|
|
3236
3235
|
function S() {
|
|
3237
3236
|
t.value = !0;
|
|
@@ -3276,7 +3275,7 @@ function Rn(e) {
|
|
|
3276
3275
|
});
|
|
3277
3276
|
});
|
|
3278
3277
|
}
|
|
3279
|
-
function
|
|
3278
|
+
function _(d) {
|
|
3280
3279
|
if (l == null)
|
|
3281
3280
|
throw new Error("no demo data available for this api");
|
|
3282
3281
|
const h = g(d);
|
|
@@ -3327,27 +3326,27 @@ function Rn(e) {
|
|
|
3327
3326
|
});
|
|
3328
3327
|
});
|
|
3329
3328
|
}
|
|
3330
|
-
return
|
|
3329
|
+
return Tr = {
|
|
3331
3330
|
endDemo: s,
|
|
3332
3331
|
isDemoing: t,
|
|
3333
3332
|
startDemo: S,
|
|
3334
3333
|
data: l,
|
|
3335
3334
|
deleteItem: x,
|
|
3336
3335
|
get: P,
|
|
3337
|
-
getAll:
|
|
3336
|
+
getAll: _,
|
|
3338
3337
|
post: N,
|
|
3339
3338
|
patch: $
|
|
3340
|
-
},
|
|
3339
|
+
}, Tr;
|
|
3341
3340
|
}
|
|
3342
|
-
var
|
|
3343
|
-
function
|
|
3341
|
+
var Rn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
3342
|
+
function Aa(e) {
|
|
3344
3343
|
function t(l) {
|
|
3345
3344
|
var s;
|
|
3346
3345
|
const S = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
|
|
3347
3346
|
if (S)
|
|
3348
3347
|
document.title = S.meta.title;
|
|
3349
3348
|
else {
|
|
3350
|
-
const g =
|
|
3349
|
+
const g = Rn.VITE_NODE_ENV;
|
|
3351
3350
|
let x = "";
|
|
3352
3351
|
g == "development" ? x = "BWeb Dev" : g == "staging" ? x = "BlitzIt Sandpit" : x = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((s = e == null ? void 0 : e.demo) == null ? void 0 : s.isDemoing.value) == !0 && (x = `Training: ${x}`), document.title = x;
|
|
3353
3352
|
}
|
|
@@ -3356,13 +3355,13 @@ function Ea(e) {
|
|
|
3356
3355
|
updateMeta: t
|
|
3357
3356
|
};
|
|
3358
3357
|
}
|
|
3359
|
-
let
|
|
3360
|
-
function
|
|
3361
|
-
return
|
|
3358
|
+
let _r;
|
|
3359
|
+
function Ea() {
|
|
3360
|
+
return _r;
|
|
3362
3361
|
}
|
|
3363
|
-
function
|
|
3362
|
+
function Un(e) {
|
|
3364
3363
|
function t(f, A, J) {
|
|
3365
|
-
return f ?
|
|
3364
|
+
return f ? an(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
|
|
3366
3365
|
}
|
|
3367
3366
|
function l(f) {
|
|
3368
3367
|
if (!f)
|
|
@@ -3394,7 +3393,7 @@ function Bn(e) {
|
|
|
3394
3393
|
function P(f, A) {
|
|
3395
3394
|
return t(f, "ccc dd LLL yyyy", A);
|
|
3396
3395
|
}
|
|
3397
|
-
function
|
|
3396
|
+
function _(f, A) {
|
|
3398
3397
|
return t(f, "ccc dd LLL @ hh:mm a", A);
|
|
3399
3398
|
}
|
|
3400
3399
|
function N(f) {
|
|
@@ -3413,7 +3412,7 @@ function Bn(e) {
|
|
|
3413
3412
|
return e.dates.utcString(f, A);
|
|
3414
3413
|
}
|
|
3415
3414
|
function u(f) {
|
|
3416
|
-
return
|
|
3415
|
+
return rt(f, !1);
|
|
3417
3416
|
}
|
|
3418
3417
|
function r(f) {
|
|
3419
3418
|
if (!f)
|
|
@@ -3448,7 +3447,7 @@ function Bn(e) {
|
|
|
3448
3447
|
function b(f, A) {
|
|
3449
3448
|
return t(f, "hh:mm a", A);
|
|
3450
3449
|
}
|
|
3451
|
-
function
|
|
3450
|
+
function T(f) {
|
|
3452
3451
|
return f == null ? "" : typeof f == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: f }).toFormat("T") : typeof f == "string" ? e.dates.tzString(f, "t") : "unknown";
|
|
3453
3452
|
}
|
|
3454
3453
|
const D = {
|
|
@@ -3458,7 +3457,7 @@ function Bn(e) {
|
|
|
3458
3457
|
toDayMonth: g,
|
|
3459
3458
|
toDayOfWeek: x,
|
|
3460
3459
|
toDayShortDate: P,
|
|
3461
|
-
toDayShortDateAndTime:
|
|
3460
|
+
toDayShortDateAndTime: _,
|
|
3462
3461
|
toDisplayNumber: N,
|
|
3463
3462
|
toDisplayNumberOver: $,
|
|
3464
3463
|
toDisplayNumberSigned: d,
|
|
@@ -3472,7 +3471,7 @@ function Bn(e) {
|
|
|
3472
3471
|
toShortDate: w,
|
|
3473
3472
|
toShortDateAndTime: M,
|
|
3474
3473
|
toTime: b,
|
|
3475
|
-
toTimeOfDay:
|
|
3474
|
+
toTimeOfDay: T
|
|
3476
3475
|
};
|
|
3477
3476
|
function L(f) {
|
|
3478
3477
|
if (f != null) {
|
|
@@ -3482,24 +3481,24 @@ function Bn(e) {
|
|
|
3482
3481
|
}
|
|
3483
3482
|
return (A) => A;
|
|
3484
3483
|
}
|
|
3485
|
-
return
|
|
3484
|
+
return _r = {
|
|
3486
3485
|
findFilter: L,
|
|
3487
3486
|
...D
|
|
3488
|
-
},
|
|
3487
|
+
}, _r;
|
|
3489
3488
|
}
|
|
3490
|
-
function
|
|
3491
|
-
const l = z(!1), S =
|
|
3489
|
+
function Bn(e, t) {
|
|
3490
|
+
const l = z(!1), S = Yt(e);
|
|
3492
3491
|
let s = g(K(e));
|
|
3493
|
-
(t == null ? void 0 : t.useTracker) !== !1 &&
|
|
3492
|
+
(t == null ? void 0 : t.useTracker) !== !1 && Te(S, (P) => {
|
|
3494
3493
|
l.value = g(P) != s;
|
|
3495
3494
|
}, { deep: !0 });
|
|
3496
3495
|
function g(P) {
|
|
3497
|
-
const
|
|
3496
|
+
const _ = Lr(P);
|
|
3498
3497
|
return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((N) => {
|
|
3499
|
-
delete
|
|
3498
|
+
delete _[N];
|
|
3500
3499
|
}) : t.propsToTrack != null && Object.keys(P).forEach(($) => {
|
|
3501
|
-
t.propsToTrack.some((d) => d == $) || delete
|
|
3502
|
-
})), JSON.stringify(
|
|
3500
|
+
t.propsToTrack.some((d) => d == $) || delete _[$];
|
|
3501
|
+
})), JSON.stringify(_);
|
|
3503
3502
|
}
|
|
3504
3503
|
function x() {
|
|
3505
3504
|
s = g(K(S)), l.value = !1;
|
|
@@ -3510,15 +3509,15 @@ function $n(e, t) {
|
|
|
3510
3509
|
restartTracker: x
|
|
3511
3510
|
};
|
|
3512
3511
|
}
|
|
3513
|
-
function
|
|
3512
|
+
function Ia(e, t) {
|
|
3514
3513
|
var ae;
|
|
3515
3514
|
const {
|
|
3516
3515
|
// useBladeSrc = true,
|
|
3517
3516
|
useRouteSrc: l = !0
|
|
3518
|
-
} = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", x = Mr(), P =
|
|
3517
|
+
} = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", x = Mr(), P = et(), _ = K(e.proxyQueryKey), N = te(() => {
|
|
3519
3518
|
var G;
|
|
3520
|
-
return K(e.proxyID) ?? (
|
|
3521
|
-
}), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: i } =
|
|
3519
|
+
return K(e.proxyID) ?? (_ != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[_] : void 0);
|
|
3520
|
+
}), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: i } = ut({
|
|
3522
3521
|
nav: g,
|
|
3523
3522
|
onError: e.onError ?? (t == null ? void 0 : t.onError),
|
|
3524
3523
|
proxyID: N.value,
|
|
@@ -3527,25 +3526,25 @@ function Da(e, t) {
|
|
|
3527
3526
|
storageMode: s,
|
|
3528
3527
|
nav: g
|
|
3529
3528
|
})
|
|
3530
|
-
}), E = te(() => e.errorMsg ?? d.value), w = te(() => e.loadingMsg ?? h.value), M = te(() => w.value != null), b = z(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)),
|
|
3531
|
-
if (
|
|
3529
|
+
}), E = te(() => e.errorMsg ?? d.value), w = te(() => e.loadingMsg ?? h.value), M = te(() => w.value != null), b = z(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), L = te(() => {
|
|
3530
|
+
if (T.value == "new")
|
|
3532
3531
|
return !1;
|
|
3533
3532
|
const G = K($);
|
|
3534
3533
|
return e.onCanDelete != null ? e.onCanDelete(G) : (G == null ? void 0 : G.isInactive) !== !0;
|
|
3535
3534
|
}), f = te(() => {
|
|
3536
|
-
if (
|
|
3535
|
+
if (T.value == "new")
|
|
3537
3536
|
return !1;
|
|
3538
3537
|
const G = K($);
|
|
3539
3538
|
return e.onCanEdit != null ? e.onCanEdit(G) : !0;
|
|
3540
3539
|
}), A = te(() => {
|
|
3541
|
-
if (
|
|
3540
|
+
if (T.value == "new")
|
|
3542
3541
|
return !1;
|
|
3543
3542
|
const G = K($);
|
|
3544
3543
|
return e.onCanRestore != null ? e.onCanRestore(G) : (G == null ? void 0 : G.isInactive) === !0;
|
|
3545
3544
|
}), J = te(() => {
|
|
3546
3545
|
const G = K($);
|
|
3547
3546
|
return e.onCanSave != null ? e.onCanSave(G) : !0;
|
|
3548
|
-
}), { isChanged: Q, restartTracker: ee } =
|
|
3547
|
+
}), { isChanged: Q, restartTracker: ee } = Bn($, {
|
|
3549
3548
|
useTracker: e.trackChanges,
|
|
3550
3549
|
propsToIgnore: e.trackIgnoreProps,
|
|
3551
3550
|
propsToTrack: e.trackProps
|
|
@@ -3617,7 +3616,7 @@ function Da(e, t) {
|
|
|
3617
3616
|
onCanSaveAsync: fe,
|
|
3618
3617
|
onGetSaveAsync: ce,
|
|
3619
3618
|
onSaveAsync: Ee,
|
|
3620
|
-
onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), ee(),
|
|
3619
|
+
onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), ee(), T.value = "view"), Promise.resolve(void 0))
|
|
3621
3620
|
} = { ...e };
|
|
3622
3621
|
i({
|
|
3623
3622
|
additionalUrl: ne,
|
|
@@ -3630,18 +3629,18 @@ function Da(e, t) {
|
|
|
3630
3629
|
proxyID: N.value,
|
|
3631
3630
|
// ...params.getOptions(),
|
|
3632
3631
|
// ...(useBladeSrc ? bladeData.value : {}),
|
|
3633
|
-
mode:
|
|
3632
|
+
mode: T.value
|
|
3634
3633
|
});
|
|
3635
3634
|
}
|
|
3636
|
-
function
|
|
3637
|
-
const G = K(
|
|
3638
|
-
!G || G == "view" ?
|
|
3635
|
+
function H() {
|
|
3636
|
+
const G = K(T);
|
|
3637
|
+
!G || G == "view" ? T.value = "edit" : G == "edit" && (T.value = "view");
|
|
3639
3638
|
}
|
|
3640
|
-
return
|
|
3639
|
+
return Te(E, (G) => {
|
|
3641
3640
|
D.value = G != null;
|
|
3642
|
-
}),
|
|
3641
|
+
}), Te(() => e.refreshToggle, () => {
|
|
3643
3642
|
W({ deepRefresh: !0 });
|
|
3644
|
-
}),
|
|
3643
|
+
}), Xr(async () => {
|
|
3645
3644
|
var G;
|
|
3646
3645
|
e.eager == !0 && await W({ deepRefresh: ((G = P == null ? void 0 : P.params) == null ? void 0 : G.refresh) == "true" });
|
|
3647
3646
|
}), {
|
|
@@ -3650,33 +3649,33 @@ function Da(e, t) {
|
|
|
3650
3649
|
errorMsg: E,
|
|
3651
3650
|
isChanged: Q,
|
|
3652
3651
|
isDeletable: L,
|
|
3653
|
-
isEditing: te(() =>
|
|
3652
|
+
isEditing: te(() => T.value == "new" || T.value == "edit"),
|
|
3654
3653
|
isEditable: f,
|
|
3655
3654
|
isLoading: M,
|
|
3656
|
-
isNew: te(() =>
|
|
3655
|
+
isNew: te(() => T.value == "new"),
|
|
3657
3656
|
isRestorable: A,
|
|
3658
3657
|
isSaveable: J,
|
|
3659
3658
|
loadingMsg: w,
|
|
3660
|
-
mode:
|
|
3659
|
+
mode: T,
|
|
3661
3660
|
refresh: W,
|
|
3662
3661
|
restoreItem: we,
|
|
3663
3662
|
saveItem: Y,
|
|
3664
3663
|
showError: D,
|
|
3665
|
-
toggleMode:
|
|
3664
|
+
toggleMode: H
|
|
3666
3665
|
};
|
|
3667
3666
|
}
|
|
3668
|
-
const
|
|
3667
|
+
const Vr = z(!0), zr = z(!1), Yr = z(), gr = z(!1);
|
|
3669
3668
|
let yr = null, Cr;
|
|
3670
|
-
function
|
|
3669
|
+
function it() {
|
|
3671
3670
|
return Cr;
|
|
3672
3671
|
}
|
|
3673
|
-
function
|
|
3672
|
+
function $n(e) {
|
|
3674
3673
|
const t = e.defaultCacheExpiryHours ?? 7;
|
|
3675
3674
|
e.getDisplayName ?? (e.getDisplayName = (h) => {
|
|
3676
3675
|
if (h.displayName != null)
|
|
3677
3676
|
return h.displayName;
|
|
3678
3677
|
if (h.name != null)
|
|
3679
|
-
return
|
|
3678
|
+
return nn(h.name.replaceAll("-", " "));
|
|
3680
3679
|
});
|
|
3681
3680
|
const l = (e.navItems ?? []).map((h) => ({
|
|
3682
3681
|
displayName: h.displayName ?? e.getDisplayName(h),
|
|
@@ -3699,16 +3698,16 @@ function Fn(e) {
|
|
|
3699
3698
|
return (u = P(h)) == null ? void 0 : u.icon;
|
|
3700
3699
|
}
|
|
3701
3700
|
function P(h) {
|
|
3702
|
-
return h == null ? null : typeof h != "string" ? h :
|
|
3701
|
+
return h == null ? null : typeof h != "string" ? h : tt(l, (r) => r.children).find((r) => {
|
|
3703
3702
|
var y;
|
|
3704
3703
|
return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((I) => I == h));
|
|
3705
3704
|
}) ?? null;
|
|
3706
3705
|
}
|
|
3707
|
-
function
|
|
3706
|
+
function _(h) {
|
|
3708
3707
|
const u = P(h);
|
|
3709
3708
|
if (u == null)
|
|
3710
3709
|
return;
|
|
3711
|
-
let r =
|
|
3710
|
+
let r = gn(u.microservice ?? "default") ?? "";
|
|
3712
3711
|
return u.path != null && (r = Be(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
|
|
3713
3712
|
}
|
|
3714
3713
|
function N(h) {
|
|
@@ -3717,7 +3716,7 @@ function Fn(e) {
|
|
|
3717
3716
|
return u.singleName;
|
|
3718
3717
|
const r = u == null ? void 0 : u.displayName;
|
|
3719
3718
|
if (r != null)
|
|
3720
|
-
return
|
|
3719
|
+
return mn(r);
|
|
3721
3720
|
}
|
|
3722
3721
|
function $(h) {
|
|
3723
3722
|
const u = P(h);
|
|
@@ -3727,14 +3726,14 @@ function Fn(e) {
|
|
|
3727
3726
|
if (h == null)
|
|
3728
3727
|
return;
|
|
3729
3728
|
const u = typeof h == "string" ? P(h) : h;
|
|
3730
|
-
|
|
3729
|
+
Yr.value = u == null ? void 0 : u.background, zr.value = (u == null ? void 0 : u.hideNavigation) !== !0, Vr.value = (u == null ? void 0 : u.hideAppBar) !== !0, yr != null && yr(), gr.value = (u == null ? void 0 : u.hesitate) === !0, gr.value && (yr = window.addEventListener("beforeunload", (r) => {
|
|
3731
3730
|
r.preventDefault();
|
|
3732
3731
|
}));
|
|
3733
3732
|
}
|
|
3734
3733
|
return Cr = {
|
|
3735
|
-
showAppBar:
|
|
3736
|
-
showAppNavigation:
|
|
3737
|
-
backgroundName:
|
|
3734
|
+
showAppBar: Vr,
|
|
3735
|
+
showAppNavigation: zr,
|
|
3736
|
+
backgroundName: Yr,
|
|
3738
3737
|
hesitate: gr,
|
|
3739
3738
|
navigationItems: l,
|
|
3740
3739
|
findArchiveName: S,
|
|
@@ -3743,59 +3742,59 @@ function Fn(e) {
|
|
|
3743
3742
|
findIcon: x,
|
|
3744
3743
|
findItem: P,
|
|
3745
3744
|
findStoreName: $,
|
|
3746
|
-
findPath:
|
|
3745
|
+
findPath: _,
|
|
3747
3746
|
findSingleDisplay: N,
|
|
3748
3747
|
updateNavigationProperties: d
|
|
3749
3748
|
}, Cr;
|
|
3750
3749
|
}
|
|
3751
|
-
function
|
|
3752
|
-
var qe,
|
|
3753
|
-
const S =
|
|
3750
|
+
function Da(e, t, l) {
|
|
3751
|
+
var qe, He;
|
|
3752
|
+
const S = Nn(), s = it(), g = Mr(), x = et(), { bladeData: P } = Cn({}), _ = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((He = s.findItem($)) == null ? void 0 : He.storageMode), u = K(e.customFilters) ?? [], r = z([]), y = te(() => Kt([
|
|
3754
3753
|
...u.filter((U) => U.name != null).map((U) => U.name),
|
|
3755
3754
|
...e.defaultFilters ?? [],
|
|
3756
3755
|
...r.value
|
|
3757
3756
|
]).value), I = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
|
|
3758
3757
|
let i = z([...I.value]);
|
|
3759
|
-
const E = te(() =>
|
|
3758
|
+
const E = te(() => Gr(i, I).value.length > 0 || Gr(I, i).value.length > 0), w = z(M());
|
|
3760
3759
|
function M() {
|
|
3761
3760
|
var U, j;
|
|
3762
|
-
if (
|
|
3763
|
-
const
|
|
3764
|
-
if (
|
|
3765
|
-
return Number.parseInt(
|
|
3761
|
+
if (_) {
|
|
3762
|
+
const V = (U = P.value) == null ? void 0 : U.page;
|
|
3763
|
+
if (V != null)
|
|
3764
|
+
return Number.parseInt(V);
|
|
3766
3765
|
}
|
|
3767
3766
|
if (N) {
|
|
3768
|
-
const
|
|
3769
|
-
if (
|
|
3770
|
-
return Number.parseInt(typeof
|
|
3767
|
+
const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.page;
|
|
3768
|
+
if (V != null)
|
|
3769
|
+
return Number.parseInt(typeof V == "string" ? V : V.toString());
|
|
3771
3770
|
}
|
|
3772
3771
|
return 1;
|
|
3773
3772
|
}
|
|
3774
3773
|
const b = te(() => {
|
|
3775
3774
|
var U, j;
|
|
3776
|
-
if (
|
|
3777
|
-
const
|
|
3778
|
-
if (
|
|
3779
|
-
return
|
|
3775
|
+
if (_) {
|
|
3776
|
+
const V = (U = P.value) == null ? void 0 : U.proxyID;
|
|
3777
|
+
if (V != null)
|
|
3778
|
+
return V;
|
|
3780
3779
|
}
|
|
3781
3780
|
if (N) {
|
|
3782
|
-
const
|
|
3783
|
-
if (
|
|
3784
|
-
return
|
|
3781
|
+
const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.query;
|
|
3782
|
+
if (V != null)
|
|
3783
|
+
return V;
|
|
3785
3784
|
}
|
|
3786
3785
|
return e.proxyID;
|
|
3787
|
-
}),
|
|
3786
|
+
}), T = z(D());
|
|
3788
3787
|
function D() {
|
|
3789
3788
|
var U, j;
|
|
3790
|
-
if (
|
|
3791
|
-
const
|
|
3792
|
-
if (
|
|
3793
|
-
return
|
|
3789
|
+
if (_) {
|
|
3790
|
+
const V = (U = P.value) == null ? void 0 : U.search;
|
|
3791
|
+
if (V != null)
|
|
3792
|
+
return V;
|
|
3794
3793
|
}
|
|
3795
3794
|
if (N) {
|
|
3796
|
-
const
|
|
3797
|
-
if (
|
|
3798
|
-
return
|
|
3795
|
+
const V = (j = x == null ? void 0 : x.query) == null ? void 0 : j.search;
|
|
3796
|
+
if (V != null)
|
|
3797
|
+
return V;
|
|
3799
3798
|
}
|
|
3800
3799
|
}
|
|
3801
3800
|
const L = z(K(e.startShowingInactive) ?? !1), f = te(() => [
|
|
@@ -3803,7 +3802,7 @@ function xa(e, t, l) {
|
|
|
3803
3802
|
...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
|
|
3804
3803
|
]), A = z([]), J = Re([]), Q = z([]);
|
|
3805
3804
|
let ee;
|
|
3806
|
-
const { actionErrorMsg: ie, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem:
|
|
3805
|
+
const { actionErrorMsg: ie, actionLoadingMsg: we, deleteItem: W, doAction: Y, getItem: H, getAllItems: ae, restoreItem: G } = ut({
|
|
3807
3806
|
nav: $,
|
|
3808
3807
|
onError: e.onError ?? (l == null ? void 0 : l.onError),
|
|
3809
3808
|
proxyID: b.value,
|
|
@@ -3815,27 +3814,27 @@ function xa(e, t, l) {
|
|
|
3815
3814
|
}), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Re(!1), Ee = Re(e.showSearch ?? !0), $e = z(0), Ce = te(() => {
|
|
3816
3815
|
let U, j = [];
|
|
3817
3816
|
I.value.forEach((O) => {
|
|
3818
|
-
const
|
|
3819
|
-
|
|
3817
|
+
const de = y.value[O], ge = u.find((De) => De.name == de);
|
|
3818
|
+
ge != null ? U = U != null ? `${U}ANDALSO${ge.filterFunction()}` : ge.filterFunction() : j.push(de);
|
|
3820
3819
|
});
|
|
3821
|
-
const
|
|
3822
|
-
return
|
|
3820
|
+
const V = {};
|
|
3821
|
+
return _e(j) && (V.filterBy = j.toString()), U != null && (V.query = U), V;
|
|
3823
3822
|
}), rr = te(() => {
|
|
3824
3823
|
var j;
|
|
3825
3824
|
let U = e.params != null ? { ...e.params } : {};
|
|
3826
|
-
return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), Ce.value != null && (U = { ...U, ...Ce.value }), L.value && (U.includeInactive = !0),
|
|
3825
|
+
return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), Ce.value != null && (U = { ...U, ...Ce.value }), L.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (j = e.selectProps) == null ? void 0 : j.toString()), T.value != null && (U.searchString = T.value), U;
|
|
3827
3826
|
}), tr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = te(() => (U) => L.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Pe = te(() => Q.value.filter((U) => !U.hide)), ar = te(() => {
|
|
3828
3827
|
let U = new Array();
|
|
3829
|
-
return Pe.value.filter((
|
|
3830
|
-
let O = U.find((
|
|
3831
|
-
O == null ? U.push({ position:
|
|
3832
|
-
}), U.sort(Ue.firstBy((
|
|
3828
|
+
return Pe.value.filter((V) => V.sublevel != null).forEach((V) => {
|
|
3829
|
+
let O = U.find((de) => de.position == V.sublevel);
|
|
3830
|
+
O == null ? U.push({ position: V.sublevel ?? 0, values: [V] }) : O.values.push(V);
|
|
3831
|
+
}), U.sort(Ue.firstBy((V) => V.position));
|
|
3833
3832
|
}), lr = te(() => {
|
|
3834
3833
|
let U = new Array();
|
|
3835
|
-
return Pe.value.filter((
|
|
3836
|
-
let O = U.find((
|
|
3837
|
-
O == null ? U.push({ position:
|
|
3838
|
-
}), U.sort(Ue.firstBy((
|
|
3834
|
+
return Pe.value.filter((V) => V.level != null).forEach((V) => {
|
|
3835
|
+
let O = U.find((de) => de.position == V.level);
|
|
3836
|
+
O == null ? U.push({ position: V.level ?? 0, values: [V] }) : O.values.push(V);
|
|
3837
|
+
}), U.sort(Ue.firstBy((V) => V.position));
|
|
3839
3838
|
}), ur = te(() => Pe.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
|
|
3840
3839
|
function be(U) {
|
|
3841
3840
|
if (e.itemBladeName != null) {
|
|
@@ -3853,8 +3852,8 @@ function xa(e, t, l) {
|
|
|
3853
3852
|
function ir(U) {
|
|
3854
3853
|
const {
|
|
3855
3854
|
additionalUrl: j,
|
|
3856
|
-
onDeleteAsync:
|
|
3857
|
-
} = { ...e }, O = K(U),
|
|
3855
|
+
onDeleteAsync: V
|
|
3856
|
+
} = { ...e }, O = K(U), de = O.id, ge = (De) => {
|
|
3858
3857
|
if (De != null) {
|
|
3859
3858
|
let Se = A.value.findIndex((se) => se.id == De);
|
|
3860
3859
|
if (Se > -1 && A.value.splice(Se, 1), e.items != null) {
|
|
@@ -3869,13 +3868,13 @@ function xa(e, t, l) {
|
|
|
3869
3868
|
}
|
|
3870
3869
|
}
|
|
3871
3870
|
};
|
|
3872
|
-
e.localOnly == !0 || $ == null ?
|
|
3871
|
+
e.localOnly == !0 || $ == null ? ge(de) : W({
|
|
3873
3872
|
additionalUrl: j,
|
|
3874
3873
|
data: O,
|
|
3875
3874
|
nav: $,
|
|
3876
3875
|
onCanDeleteAsync: e.onCanDeleteAsync,
|
|
3877
|
-
onDeleteAsync:
|
|
3878
|
-
onDeleteSuccessAsync: async () => (
|
|
3876
|
+
onDeleteAsync: V,
|
|
3877
|
+
onDeleteSuccessAsync: async () => (ge(de), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
|
|
3879
3878
|
proxyID: b.value,
|
|
3880
3879
|
// ...(useBladeSrc ? bladeData.value : {}),
|
|
3881
3880
|
requireConfirmation: !0
|
|
@@ -3900,9 +3899,9 @@ function xa(e, t, l) {
|
|
|
3900
3899
|
}
|
|
3901
3900
|
function Ne() {
|
|
3902
3901
|
let U = K(A);
|
|
3903
|
-
if (U = e.onFilter ? e.onFilter(U) : U,
|
|
3902
|
+
if (U = e.onFilter ? e.onFilter(U) : U, T.value != null && T.value.length > 0) {
|
|
3904
3903
|
let j = [...f.value];
|
|
3905
|
-
e.itemText && j.push(e.itemText),
|
|
3904
|
+
e.itemText && j.push(e.itemText), _e(j) && (U = U.filter((V) => dn(V, T.value, j)));
|
|
3906
3905
|
}
|
|
3907
3906
|
J.value = U;
|
|
3908
3907
|
}
|
|
@@ -3911,7 +3910,7 @@ function xa(e, t, l) {
|
|
|
3911
3910
|
e.headers != null && (Q.value = [...e.headers], U || Q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
|
|
3912
3911
|
}
|
|
3913
3912
|
async function Ie(U) {
|
|
3914
|
-
if (ce.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1,
|
|
3913
|
+
if (ce.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1, T.value = void 0), e.items != null) {
|
|
3915
3914
|
A.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
|
|
3916
3915
|
return;
|
|
3917
3916
|
}
|
|
@@ -3930,28 +3929,28 @@ function xa(e, t, l) {
|
|
|
3930
3929
|
onGetSuccessAsync: e.onGetSuccessAsync
|
|
3931
3930
|
};
|
|
3932
3931
|
if (e.isSingle === !0)
|
|
3933
|
-
j.id === "new" ? A.value = [] : A.value = await
|
|
3932
|
+
j.id === "new" ? A.value = [] : A.value = await H(j);
|
|
3934
3933
|
else {
|
|
3935
|
-
let
|
|
3934
|
+
let V = await ae({
|
|
3936
3935
|
...j,
|
|
3937
|
-
onGetSuccessAsync: async (O,
|
|
3938
|
-
let
|
|
3939
|
-
return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && ($e.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (
|
|
3936
|
+
onGetSuccessAsync: async (O, de) => {
|
|
3937
|
+
let ge = O == null ? void 0 : O.data;
|
|
3938
|
+
return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && ($e.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ge = await e.onGetSuccessAsync(ge, de)), ge;
|
|
3940
3939
|
}
|
|
3941
3940
|
});
|
|
3942
|
-
A.value =
|
|
3941
|
+
A.value = V, i.value = [...I.value];
|
|
3943
3942
|
}
|
|
3944
3943
|
Ne();
|
|
3945
3944
|
}
|
|
3946
3945
|
function Je(U, j) {
|
|
3947
|
-
const
|
|
3948
|
-
if (
|
|
3946
|
+
const V = K(U);
|
|
3947
|
+
if (V != null && V === ee && e.canUnselect ? ee = null : ee = V, t != null && t("select", ee), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(V)))
|
|
3949
3948
|
if (e.onSelectItem != null)
|
|
3950
3949
|
e.onSelectItem(ee);
|
|
3951
3950
|
else {
|
|
3952
3951
|
let O = {
|
|
3953
3952
|
bladeName: e.itemBladeName,
|
|
3954
|
-
id:
|
|
3953
|
+
id: V.id,
|
|
3955
3954
|
nav: $
|
|
3956
3955
|
};
|
|
3957
3956
|
j == "page" && g.push({
|
|
@@ -3961,19 +3960,19 @@ function xa(e, t, l) {
|
|
|
3961
3960
|
}
|
|
3962
3961
|
}
|
|
3963
3962
|
function je() {
|
|
3964
|
-
Ee.value ? (Ee.value = e.showSearch ?? !1,
|
|
3963
|
+
Ee.value ? (Ee.value = e.showSearch ?? !1, T.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
|
|
3965
3964
|
}
|
|
3966
|
-
return We(),
|
|
3965
|
+
return We(), Qt([T], () => {
|
|
3967
3966
|
Ne();
|
|
3968
|
-
}, { debounce: 500, maxWait: 500 }),
|
|
3967
|
+
}, { debounce: 500, maxWait: 500 }), Te([L, w], async () => {
|
|
3969
3968
|
await Ie();
|
|
3970
|
-
}),
|
|
3969
|
+
}), Te([X, () => e.errorMsg], ([U, j]) => {
|
|
3971
3970
|
ce.value = U != null || j != null;
|
|
3972
|
-
}),
|
|
3971
|
+
}), Te(() => e.refreshToggle, () => {
|
|
3973
3972
|
Ie({ deepRefresh: !0 });
|
|
3974
|
-
}),
|
|
3973
|
+
}), Or([A, () => e.items], () => {
|
|
3975
3974
|
Ne();
|
|
3976
|
-
}),
|
|
3975
|
+
}), Xr(async () => {
|
|
3977
3976
|
var U;
|
|
3978
3977
|
e.eager == !0 && await Ie({ deepRefresh: ((U = x == null ? void 0 : x.params) == null ? void 0 : U.refresh) == "true" });
|
|
3979
3978
|
}), {
|
|
@@ -3994,7 +3993,7 @@ function xa(e, t, l) {
|
|
|
3994
3993
|
loadingMsg: ne,
|
|
3995
3994
|
refresh: Ie,
|
|
3996
3995
|
restoreItem: Ze,
|
|
3997
|
-
searchString:
|
|
3996
|
+
searchString: T,
|
|
3998
3997
|
selectedFilters: I,
|
|
3999
3998
|
selectItem: Je,
|
|
4000
3999
|
// serverFilters,
|
|
@@ -4009,7 +4008,7 @@ function xa(e, t, l) {
|
|
|
4009
4008
|
};
|
|
4010
4009
|
}
|
|
4011
4010
|
let Ge;
|
|
4012
|
-
function
|
|
4011
|
+
function Fn(e) {
|
|
4013
4012
|
const t = z((e == null ? void 0 : e.default) ?? "Admin"), l = z((e == null ? void 0 : e.groups) ?? []);
|
|
4014
4013
|
return Ge = {
|
|
4015
4014
|
currentGroup: t,
|
|
@@ -4017,8 +4016,8 @@ function kn(e) {
|
|
|
4017
4016
|
useRoutes: e == null ? void 0 : e.useRoutes
|
|
4018
4017
|
}, Ge;
|
|
4019
4018
|
}
|
|
4020
|
-
function
|
|
4021
|
-
const e = Mr(), t =
|
|
4019
|
+
function xa() {
|
|
4020
|
+
const e = Mr(), t = it(), l = In();
|
|
4022
4021
|
let S = e.getRoutes();
|
|
4023
4022
|
return {
|
|
4024
4023
|
...Ge,
|
|
@@ -4028,25 +4027,25 @@ function _a() {
|
|
|
4028
4027
|
const s = [];
|
|
4029
4028
|
return S.forEach((x) => {
|
|
4030
4029
|
var d;
|
|
4031
|
-
const P = Ge.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup),
|
|
4030
|
+
const P = Ge.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), _ = t.findItem(x.meta.nav), N = x.meta;
|
|
4032
4031
|
let $ = s.find((h) => h.displayName == N.menuGroup);
|
|
4033
4032
|
$ == null && ($ = {
|
|
4034
4033
|
displayName: N.menuGroup,
|
|
4035
|
-
icon: (P == null ? void 0 : P.icon) ?? (N == null ? void 0 : N.icon) ?? (
|
|
4034
|
+
icon: (P == null ? void 0 : P.icon) ?? (N == null ? void 0 : N.icon) ?? (_ == null ? void 0 : _.icon),
|
|
4036
4035
|
isGroup: !0,
|
|
4037
4036
|
items: []
|
|
4038
4037
|
}, s.push($)), (d = $.items) == null || d.push({
|
|
4039
|
-
displayName: (N == null ? void 0 : N.displayName) ?? t.findDisplay(
|
|
4040
|
-
icon: (N == null ? void 0 : N.icon) ?? t.findIcon(
|
|
4041
|
-
permissions: (N == null ? void 0 : N.permissions) ?? (
|
|
4038
|
+
displayName: (N == null ? void 0 : N.displayName) ?? t.findDisplay(_ ?? void 0),
|
|
4039
|
+
icon: (N == null ? void 0 : N.icon) ?? t.findIcon(_ ?? void 0),
|
|
4040
|
+
permissions: (N == null ? void 0 : N.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
|
|
4042
4041
|
requiresAuth: (N == null ? void 0 : N.requiresAuth) !== !1,
|
|
4043
|
-
subscriptions: (N == null ? void 0 : N.subscriptions) ?? (
|
|
4044
|
-
subFilters: (N == null ? void 0 : N.subFilters) ?? (
|
|
4042
|
+
subscriptions: (N == null ? void 0 : N.subscriptions) ?? (_ == null ? void 0 : _.subscriptions) ?? [],
|
|
4043
|
+
subFilters: (N == null ? void 0 : N.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
|
|
4045
4044
|
routeName: x.name
|
|
4046
4045
|
});
|
|
4047
4046
|
}), s.forEach((x) => {
|
|
4048
4047
|
var P;
|
|
4049
|
-
x.items = (P = x.items) == null ? void 0 : P.filter((
|
|
4048
|
+
x.items = (P = x.items) == null ? void 0 : P.filter((_) => !_.requiresAuth || l.doShow(_.subscriptions, _.permissions, "view")).sort(Ue.firstBy((_) => _.displayName));
|
|
4050
4049
|
}), Ge.currentGroup.value != null ? ((g = s.find((x) => x.displayName == Ge.currentGroup.value)) == null ? void 0 : g.items) ?? [] : s.filter((x) => !x.requiresAuth || l.doShow(x.subscriptions, x.permissions, "view"));
|
|
4051
4050
|
})
|
|
4052
4051
|
};
|
|
@@ -4055,7 +4054,7 @@ let Pr;
|
|
|
4055
4054
|
function Ta(e) {
|
|
4056
4055
|
return Pr.usePresets(e);
|
|
4057
4056
|
}
|
|
4058
|
-
function
|
|
4057
|
+
function kn(e) {
|
|
4059
4058
|
function t(l) {
|
|
4060
4059
|
if (!l)
|
|
4061
4060
|
return {};
|
|
@@ -4066,34 +4065,34 @@ function Gn(e) {
|
|
|
4066
4065
|
usePresets: t
|
|
4067
4066
|
}, Pr;
|
|
4068
4067
|
}
|
|
4069
|
-
let Jr, jr, Kr
|
|
4070
|
-
const wr = z(!1), br = z(!1),
|
|
4068
|
+
let Zr, Jr, jr, Kr = !1;
|
|
4069
|
+
const wr = z(!1), br = z(!1), Qr = z(), pe = z();
|
|
4071
4070
|
let Nr;
|
|
4072
|
-
function
|
|
4071
|
+
function _a() {
|
|
4073
4072
|
return Nr;
|
|
4074
4073
|
}
|
|
4075
|
-
function
|
|
4074
|
+
function Gn() {
|
|
4076
4075
|
function e(x) {
|
|
4077
4076
|
pe.value = x.detail, br.value = !0;
|
|
4078
4077
|
}
|
|
4079
4078
|
function t() {
|
|
4080
|
-
|
|
4079
|
+
Kr || (Kr = !0, window.location.reload());
|
|
4081
4080
|
}
|
|
4082
4081
|
function l() {
|
|
4083
4082
|
var x;
|
|
4084
|
-
(x =
|
|
4083
|
+
(x = Qr.value) == null || x.prompt(), wr.value = !1;
|
|
4085
4084
|
}
|
|
4086
4085
|
function S() {
|
|
4087
4086
|
return !!window.matchMedia("(display-mode: standalone)").matches;
|
|
4088
4087
|
}
|
|
4089
4088
|
function s(x) {
|
|
4090
|
-
x.preventDefault(), wr.value = !0,
|
|
4089
|
+
x.preventDefault(), wr.value = !0, Qr.value = x;
|
|
4091
4090
|
}
|
|
4092
4091
|
function g() {
|
|
4093
4092
|
br.value = !1, !(!pe.value || !pe.value.waiting) && pe.value.waiting.postMessage({ type: "SKIP_WAITING" });
|
|
4094
4093
|
}
|
|
4095
|
-
return
|
|
4096
|
-
|
|
4094
|
+
return Xt(() => {
|
|
4095
|
+
Zr == null && (Zr = document.addEventListener("swUpdated", e, { once: !0 })), Jr == null && (Jr = navigator.serviceWorker.addEventListener("controllerchange", t)), jr == null && (jr = window.addEventListener("beforeinstallprompt", s));
|
|
4097
4096
|
}), Nr = {
|
|
4098
4097
|
canInstallApp: wr,
|
|
4099
4098
|
canUpdateApp: br,
|
|
@@ -4102,122 +4101,122 @@ function Wn() {
|
|
|
4102
4101
|
updateApp: g
|
|
4103
4102
|
}, Nr;
|
|
4104
4103
|
}
|
|
4105
|
-
function
|
|
4104
|
+
function Ca(e) {
|
|
4106
4105
|
const t = [];
|
|
4107
|
-
return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) =>
|
|
4106
|
+
return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) => hn(l) || "Email must be valid")), t;
|
|
4108
4107
|
}
|
|
4109
|
-
function
|
|
4108
|
+
function Pa(e) {
|
|
4110
4109
|
return {
|
|
4111
4110
|
install(t, l) {
|
|
4112
|
-
var
|
|
4113
|
-
console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance),
|
|
4114
|
-
const S =
|
|
4115
|
-
|
|
4116
|
-
const g =
|
|
4117
|
-
|
|
4118
|
-
const x =
|
|
4111
|
+
var _;
|
|
4112
|
+
console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), Pn(e);
|
|
4113
|
+
const S = Ln(), s = $n(e);
|
|
4114
|
+
kn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
|
|
4115
|
+
const g = Dn(e.auth);
|
|
4116
|
+
Fn(e.menu);
|
|
4117
|
+
const x = En({
|
|
4119
4118
|
auth: g,
|
|
4120
4119
|
findPath: s.findPath,
|
|
4121
4120
|
useBearerToken: !0
|
|
4122
|
-
}), P =
|
|
4121
|
+
}), P = Mn({
|
|
4123
4122
|
getTimeZone: () => g.timeZone.value
|
|
4124
4123
|
});
|
|
4125
|
-
|
|
4124
|
+
Un({
|
|
4126
4125
|
dates: P
|
|
4127
|
-
}),
|
|
4126
|
+
}), Gn(), wn({
|
|
4128
4127
|
api: x,
|
|
4129
4128
|
auth: g,
|
|
4130
4129
|
navigation: s
|
|
4131
|
-
}),
|
|
4130
|
+
}), yn(e.urls);
|
|
4132
4131
|
}
|
|
4133
4132
|
};
|
|
4134
4133
|
}
|
|
4135
4134
|
export {
|
|
4136
|
-
|
|
4137
|
-
|
|
4135
|
+
sa as DataURIToBlob,
|
|
4136
|
+
aa as addWeekday,
|
|
4138
4137
|
Be as appendUrl,
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4138
|
+
nn as capitalizeWords,
|
|
4139
|
+
On as checkImage,
|
|
4140
|
+
fn as containsSearch,
|
|
4141
|
+
na as containsWeekday,
|
|
4143
4142
|
Lr as copyDeep,
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4143
|
+
cn as copyItemByAlphabet,
|
|
4144
|
+
En as createApi,
|
|
4145
|
+
Dn as createAuth,
|
|
4146
|
+
Pa as createCore,
|
|
4147
|
+
Pn as createCosmetics,
|
|
4148
|
+
Mn as createDates,
|
|
4149
|
+
Ln as createDemo,
|
|
4150
|
+
Un as createFilters,
|
|
4151
|
+
Fn as createMenu,
|
|
4152
|
+
$n as createNavigation,
|
|
4153
|
+
Gn as createPWA,
|
|
4154
|
+
kn as createPresets,
|
|
4155
|
+
An as createSessionStoreDefinition,
|
|
4156
|
+
wn as createStoreBuilder,
|
|
4157
|
+
yn as createUrl,
|
|
4158
|
+
qr as createWholeLastUpdateStoreDefinition,
|
|
4159
|
+
un as csvContains,
|
|
4160
|
+
wa as csvDefaults,
|
|
4161
|
+
tt as deepSelect,
|
|
4162
|
+
Zn as distinct,
|
|
4163
|
+
Jn as extensionExists,
|
|
4164
|
+
sn as extractErrorDescription,
|
|
4165
|
+
tn as fromCamelCase,
|
|
4166
|
+
jn as getAreaAround,
|
|
4167
|
+
Kn as getAreaToLeft,
|
|
4168
|
+
Qn as getAreaToRight,
|
|
4169
|
+
Xn as getGoogleMapsLocationLine,
|
|
4170
|
+
pn as getImageData,
|
|
4171
|
+
rt as getLocationLine,
|
|
4172
|
+
ia as getMinDate,
|
|
4173
|
+
ln as getMinDateString,
|
|
4174
|
+
on as getRandomColor,
|
|
4175
|
+
dn as hasSearch,
|
|
4176
|
+
ua as isArrayOfLength,
|
|
4177
|
+
_e as isLengthyArray,
|
|
4178
|
+
an as isMinDate,
|
|
4180
4179
|
Sr as nestedValue,
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4180
|
+
la as removeWeekday,
|
|
4181
|
+
ca as roundTo,
|
|
4182
|
+
mn as singularize,
|
|
4183
|
+
ea as toCamelCase,
|
|
4184
|
+
oa as toCompareString,
|
|
4185
|
+
fa as toggleCSV,
|
|
4186
|
+
da as twiddleThumbs,
|
|
4187
|
+
ut as useActions,
|
|
4188
|
+
en as useActionsTracker,
|
|
4190
4189
|
Er as useApi,
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4190
|
+
In as useAuth,
|
|
4191
|
+
Wr as useAuthUrl,
|
|
4192
|
+
Cn as useBlade,
|
|
4193
|
+
Nn as useCSV,
|
|
4194
|
+
ga as useCosmetics,
|
|
4195
|
+
gn as useDataUrl,
|
|
4196
|
+
ba as useDates,
|
|
4197
|
+
lt as useDbName,
|
|
4198
|
+
Sa as useDemo,
|
|
4199
|
+
Aa as useDocumentMeta,
|
|
4200
|
+
xn as useDraggable,
|
|
4201
|
+
Ea as useFilters,
|
|
4202
|
+
Ot as useId,
|
|
4203
|
+
Ia as useItem,
|
|
4204
|
+
Da as useList,
|
|
4205
|
+
ma as useLocalCache,
|
|
4206
|
+
ya as useLocalCosmetics,
|
|
4207
|
+
ve as useLocalDb,
|
|
4208
|
+
xa as useMenu,
|
|
4209
|
+
it as useNavigation,
|
|
4210
|
+
_a as usePWA,
|
|
4212
4211
|
Ta as usePresets,
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4212
|
+
_n as useResizable,
|
|
4213
|
+
Ca as useRules,
|
|
4214
|
+
va as useStore,
|
|
4216
4215
|
Le as useStoreDefinition,
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4216
|
+
Bn as useTracker,
|
|
4217
|
+
ha as useUrls,
|
|
4218
|
+
hn as validEmail,
|
|
4220
4219
|
Ye as weekdayPairs,
|
|
4221
|
-
|
|
4222
|
-
|
|
4220
|
+
ta as weekdayShortName,
|
|
4221
|
+
ra as weekdayValue
|
|
4223
4222
|
};
|