@mjsz-vbr-elements/core 2.11.2 → 2.11.3
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/{TimezoneSelector-pJzOJFd2.js → TimezoneSelector-CNpTsLPu.js} +653 -670
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +29 -29
- package/dist/constants.js +1 -1
- package/dist/{datetime-DTVWbsTz.js → datetime-K_d-hEsO.js} +10 -10
- package/dist/{errors-1KEdp4yb.js → errors-DBdI9YRN.js} +12 -12
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +5 -5
- package/dist/{useSort-fVNzrwPD.js → useSort-CmtczEGw.js} +212 -195
- package/dist/utils.js +4 -4
- package/package.json +2 -2
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.11.
|
|
3
|
+
* version: v2.11.3 - 15/01/2025, 13:04:28
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { ref as I, readonly as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { SORT_STATE_ORIGINAL as
|
|
11
|
-
function
|
|
12
|
-
return
|
|
8
|
+
import { ref as I, readonly as pe, watch as S, nextTick as U, getCurrentScope as je, onScopeDispose as Le, toValue as E, isRef as De, shallowRef as ie, unref as O, reactive as me, defineComponent as ke, h as Ne, computed as _, provide as ye, inject as ve, onErrorCaptured as Fe } from "vue";
|
|
9
|
+
import { _ as K, w as Be, x as We, z as X, A as Me, B as $e, C as he, D as B, E as ge, F as ze, G as ae, H as k, I as N, J as Ue, K as Ke, u as Ge } from "./datetime-K_d-hEsO.js";
|
|
10
|
+
import { SORT_STATE_ORIGINAL as W, SORT_STATE_DESCEND as Q, SORT_STATE_ASCEND as $ } from "./constants.js";
|
|
11
|
+
function we(e) {
|
|
12
|
+
return je() ? (Le(e), !0) : !1;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const q = typeof window < "u" && typeof document < "u";
|
|
15
15
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
16
|
-
const
|
|
17
|
-
},
|
|
18
|
-
function
|
|
16
|
+
const qe = Object.prototype.toString, He = (e) => qe.call(e) === "[object Object]", R = () => {
|
|
17
|
+
}, Je = /* @__PURE__ */ Qe();
|
|
18
|
+
function Qe() {
|
|
19
19
|
var e, t;
|
|
20
|
-
return
|
|
20
|
+
return q && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ve(e, t) {
|
|
23
23
|
function r(...n) {
|
|
24
24
|
return new Promise((i, o) => {
|
|
25
25
|
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(i).catch(o);
|
|
@@ -27,8 +27,8 @@ function Ke(e, t) {
|
|
|
27
27
|
}
|
|
28
28
|
return r;
|
|
29
29
|
}
|
|
30
|
-
const
|
|
31
|
-
function
|
|
30
|
+
const be = (e) => e();
|
|
31
|
+
function Xe(e = be) {
|
|
32
32
|
const t = I(!0);
|
|
33
33
|
function r() {
|
|
34
34
|
t.value = !1;
|
|
@@ -39,36 +39,36 @@ function Je(e = ve) {
|
|
|
39
39
|
const i = (...o) => {
|
|
40
40
|
t.value && e(...o);
|
|
41
41
|
};
|
|
42
|
-
return { isActive:
|
|
42
|
+
return { isActive: pe(t), pause: r, resume: n, eventFilter: i };
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Y(e, t = !1, r = "Timeout") {
|
|
45
45
|
return new Promise((n, i) => {
|
|
46
46
|
setTimeout(t ? () => i(r) : n, e);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function se(e) {
|
|
50
50
|
return Array.isArray(e) ? e : [e];
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Ye(e, t, r = {}) {
|
|
53
53
|
const {
|
|
54
|
-
eventFilter: n =
|
|
54
|
+
eventFilter: n = be,
|
|
55
55
|
...i
|
|
56
56
|
} = r;
|
|
57
57
|
return S(
|
|
58
58
|
e,
|
|
59
|
-
|
|
59
|
+
Ve(
|
|
60
60
|
n,
|
|
61
61
|
t
|
|
62
62
|
),
|
|
63
63
|
i
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function St(e, t, r = {}) {
|
|
67
67
|
const {
|
|
68
68
|
eventFilter: n,
|
|
69
69
|
...i
|
|
70
|
-
} = r, { eventFilter: o, pause: a, resume: s, isActive: c } =
|
|
71
|
-
return { stop:
|
|
70
|
+
} = r, { eventFilter: o, pause: a, resume: s, isActive: c } = Xe(n);
|
|
71
|
+
return { stop: Ye(
|
|
72
72
|
e,
|
|
73
73
|
t,
|
|
74
74
|
{
|
|
@@ -77,14 +77,14 @@ function At(e, t, r = {}) {
|
|
|
77
77
|
}
|
|
78
78
|
), pause: a, resume: s, isActive: c };
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Z(e, t = !1) {
|
|
81
81
|
function r(u, { flush: d = "sync", deep: m = !1, timeout: h, throwOnTimeout: l } = {}) {
|
|
82
82
|
let f = null;
|
|
83
83
|
const w = [new Promise((A) => {
|
|
84
84
|
f = S(
|
|
85
85
|
e,
|
|
86
86
|
(g) => {
|
|
87
|
-
u(g) !== t && (f ? f() :
|
|
87
|
+
u(g) !== t && (f ? f() : U(() => f == null ? void 0 : f()), A(g));
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
flush: d,
|
|
@@ -94,19 +94,19 @@ function X(e, t = !1) {
|
|
|
94
94
|
);
|
|
95
95
|
})];
|
|
96
96
|
return h != null && w.push(
|
|
97
|
-
|
|
97
|
+
Y(h, l).then(() => E(e)).finally(() => f == null ? void 0 : f())
|
|
98
98
|
), Promise.race(w);
|
|
99
99
|
}
|
|
100
100
|
function n(u, d) {
|
|
101
|
-
if (!
|
|
101
|
+
if (!De(u))
|
|
102
102
|
return r((g) => g === u, d);
|
|
103
103
|
const { flush: m = "sync", deep: h = !1, timeout: l, throwOnTimeout: f } = d ?? {};
|
|
104
104
|
let p = null;
|
|
105
105
|
const A = [new Promise((g) => {
|
|
106
106
|
p = S(
|
|
107
107
|
[e, u],
|
|
108
|
-
([
|
|
109
|
-
t !== (
|
|
108
|
+
([j, F]) => {
|
|
109
|
+
t !== (j === F) && (p ? p() : U(() => p == null ? void 0 : p()), g(j));
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
flush: m,
|
|
@@ -116,7 +116,7 @@ function X(e, t = !1) {
|
|
|
116
116
|
);
|
|
117
117
|
})];
|
|
118
118
|
return l != null && A.push(
|
|
119
|
-
|
|
119
|
+
Y(l, f).then(() => E(e)).finally(() => (p == null || p(), E(e)))
|
|
120
120
|
), Promise.race(A);
|
|
121
121
|
}
|
|
122
122
|
function i(u) {
|
|
@@ -150,7 +150,7 @@ function X(e, t = !1) {
|
|
|
150
150
|
changed: y,
|
|
151
151
|
changedTimes: v,
|
|
152
152
|
get not() {
|
|
153
|
-
return
|
|
153
|
+
return Z(e, !t);
|
|
154
154
|
}
|
|
155
155
|
} : {
|
|
156
156
|
toMatch: r,
|
|
@@ -162,14 +162,14 @@ function X(e, t = !1) {
|
|
|
162
162
|
changed: y,
|
|
163
163
|
changedTimes: v,
|
|
164
164
|
get not() {
|
|
165
|
-
return
|
|
165
|
+
return Z(e, !t);
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
return
|
|
169
|
+
function Ze(e) {
|
|
170
|
+
return Z(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function et(e, t, r = {}) {
|
|
173
173
|
const {
|
|
174
174
|
immediate: n = !0
|
|
175
175
|
} = r, i = I(!1);
|
|
@@ -185,21 +185,21 @@ function Ye(e, t, r = {}) {
|
|
|
185
185
|
i.value = !1, o = null, e(...y);
|
|
186
186
|
}, E(t));
|
|
187
187
|
}
|
|
188
|
-
return n && (i.value = !0,
|
|
189
|
-
isPending:
|
|
188
|
+
return n && (i.value = !0, q && c()), we(s), {
|
|
189
|
+
isPending: pe(i),
|
|
190
190
|
start: c,
|
|
191
191
|
stop: s
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
const n = S(e, (...i) => (
|
|
194
|
+
function tt(e, t, r) {
|
|
195
|
+
const n = S(e, (...i) => (U(() => n()), t(...i)), r);
|
|
196
196
|
return n;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Pt(e, t, r) {
|
|
199
199
|
const n = S(
|
|
200
200
|
e,
|
|
201
201
|
(i, o, a) => {
|
|
202
|
-
i && (r != null && r.once &&
|
|
202
|
+
i && (r != null && r.once && U(() => n()), t(i, o, a));
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
...r,
|
|
@@ -208,25 +208,25 @@ function Et(e, t, r) {
|
|
|
208
208
|
);
|
|
209
209
|
return n;
|
|
210
210
|
}
|
|
211
|
-
const
|
|
212
|
-
function
|
|
211
|
+
const Te = q ? window : void 0, nt = q ? window.document : void 0;
|
|
212
|
+
function D(e) {
|
|
213
213
|
var t;
|
|
214
214
|
const r = E(e);
|
|
215
215
|
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function z(...e) {
|
|
218
218
|
let t, r, n, i;
|
|
219
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, i] = e, t =
|
|
219
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, i] = e, t = Te) : [t, r, n, i] = e, !t)
|
|
220
220
|
return R;
|
|
221
|
-
r =
|
|
221
|
+
r = se(r), n = se(n);
|
|
222
222
|
const o = [], a = () => {
|
|
223
223
|
o.forEach((v) => v()), o.length = 0;
|
|
224
224
|
}, s = (v, u, d, m) => (v.addEventListener(u, d, m), () => v.removeEventListener(u, d, m)), c = S(
|
|
225
|
-
() => [
|
|
225
|
+
() => [D(t), E(i)],
|
|
226
226
|
([v, u]) => {
|
|
227
227
|
if (a(), !v)
|
|
228
228
|
return;
|
|
229
|
-
const d =
|
|
229
|
+
const d = He(u) ? { ...u } : u;
|
|
230
230
|
o.push(
|
|
231
231
|
...r.flatMap((m) => n.map((h) => s(v, m, h, d)))
|
|
232
232
|
);
|
|
@@ -235,20 +235,20 @@ function $(...e) {
|
|
|
235
235
|
), y = () => {
|
|
236
236
|
c(), a();
|
|
237
237
|
};
|
|
238
|
-
return
|
|
238
|
+
return we(y), y;
|
|
239
239
|
}
|
|
240
|
-
let
|
|
241
|
-
function
|
|
242
|
-
const { window: n =
|
|
240
|
+
let ue = !1;
|
|
241
|
+
function Ct(e, t, r = {}) {
|
|
242
|
+
const { window: n = Te, ignore: i = [], capture: o = !0, detectIframe: a = !1 } = r;
|
|
243
243
|
if (!n)
|
|
244
244
|
return R;
|
|
245
|
-
|
|
245
|
+
Je && !ue && (ue = !0, Array.from(n.document.body.children).forEach((l) => l.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
|
|
246
246
|
let s = !0;
|
|
247
247
|
const c = (l) => E(i).some((f) => {
|
|
248
248
|
if (typeof f == "string")
|
|
249
249
|
return Array.from(n.document.querySelectorAll(f)).some((p) => p === l.target || l.composedPath().includes(p));
|
|
250
250
|
{
|
|
251
|
-
const p =
|
|
251
|
+
const p = D(f);
|
|
252
252
|
return p && (l.target === p || l.composedPath().includes(p));
|
|
253
253
|
}
|
|
254
254
|
});
|
|
@@ -261,7 +261,7 @@ function It(e, t, r = {}) {
|
|
|
261
261
|
return w == null || !Array.isArray(w) ? !1 : w.some((A) => A.el === f.target || f.composedPath().includes(A.el));
|
|
262
262
|
}
|
|
263
263
|
const u = (l) => {
|
|
264
|
-
const f =
|
|
264
|
+
const f = D(e);
|
|
265
265
|
if (l.target != null && !(!(f instanceof Element) && y(e) && v(e, l)) && !(!f || f === l.target || l.composedPath().includes(f))) {
|
|
266
266
|
if (l.detail === 0 && (s = !c(l)), !s) {
|
|
267
267
|
s = !0;
|
|
@@ -272,26 +272,26 @@ function It(e, t, r = {}) {
|
|
|
272
272
|
};
|
|
273
273
|
let d = !1;
|
|
274
274
|
const m = [
|
|
275
|
-
|
|
275
|
+
z(n, "click", (l) => {
|
|
276
276
|
d || (d = !0, setTimeout(() => {
|
|
277
277
|
d = !1;
|
|
278
278
|
}, 0), u(l));
|
|
279
279
|
}, { passive: !0, capture: o }),
|
|
280
|
-
|
|
281
|
-
const f =
|
|
280
|
+
z(n, "pointerdown", (l) => {
|
|
281
|
+
const f = D(e);
|
|
282
282
|
s = !c(l) && !!(f && !l.composedPath().includes(f));
|
|
283
283
|
}, { passive: !0 }),
|
|
284
|
-
a &&
|
|
284
|
+
a && z(n, "blur", (l) => {
|
|
285
285
|
setTimeout(() => {
|
|
286
286
|
var f;
|
|
287
|
-
const p =
|
|
287
|
+
const p = D(e);
|
|
288
288
|
((f = n.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(p != null && p.contains(n.document.activeElement)) && t(l);
|
|
289
289
|
}, 0);
|
|
290
290
|
}, { passive: !0 })
|
|
291
291
|
].filter(Boolean);
|
|
292
292
|
return () => m.forEach((l) => l());
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function rt(e, t, r) {
|
|
295
295
|
const {
|
|
296
296
|
immediate: n = !0,
|
|
297
297
|
delay: i = 0,
|
|
@@ -300,9 +300,9 @@ function tt(e, t, r) {
|
|
|
300
300
|
resetOnExecute: s = !0,
|
|
301
301
|
shallow: c = !0,
|
|
302
302
|
throwError: y
|
|
303
|
-
} = r ?? {}, v = c ?
|
|
303
|
+
} = r ?? {}, v = c ? ie(t) : I(t), u = I(!1), d = I(!1), m = ie(void 0);
|
|
304
304
|
async function h(p = 0, ...w) {
|
|
305
|
-
s && (v.value = t), m.value = void 0, u.value = !1, d.value = !0, p > 0 && await
|
|
305
|
+
s && (v.value = t), m.value = void 0, u.value = !1, d.value = !0, p > 0 && await Y(p);
|
|
306
306
|
const A = typeof e == "function" ? e(...w) : e;
|
|
307
307
|
try {
|
|
308
308
|
const g = await A;
|
|
@@ -325,7 +325,7 @@ function tt(e, t, r) {
|
|
|
325
325
|
};
|
|
326
326
|
function f() {
|
|
327
327
|
return new Promise((p, w) => {
|
|
328
|
-
|
|
328
|
+
Ze(d).toBe(!1).then(() => p(l)).catch(w);
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
return {
|
|
@@ -335,24 +335,24 @@ function tt(e, t, r) {
|
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
const { document: t =
|
|
338
|
+
function Rt(e = {}) {
|
|
339
|
+
const { document: t = nt } = e;
|
|
340
340
|
if (!t)
|
|
341
341
|
return I("visible");
|
|
342
342
|
const r = I(t.visibilityState);
|
|
343
|
-
return
|
|
343
|
+
return z(t, "visibilitychange", () => {
|
|
344
344
|
r.value = t.visibilityState;
|
|
345
345
|
}, { passive: !0 }), r;
|
|
346
346
|
}
|
|
347
|
-
async function
|
|
347
|
+
async function ot(e) {
|
|
348
348
|
return new Promise((t, r) => {
|
|
349
349
|
const n = new Image(), { src: i, srcset: o, sizes: a, class: s, loading: c, crossorigin: y, referrerPolicy: v, width: u, height: d, decoding: m, fetchPriority: h, ismap: l, usemap: f } = e;
|
|
350
350
|
n.src = i, o != null && (n.srcset = o), a != null && (n.sizes = a), s != null && (n.className = s), c != null && (n.loading = c), y != null && (n.crossOrigin = y), v != null && (n.referrerPolicy = v), u != null && (n.width = u), d != null && (n.height = d), m != null && (n.decoding = m), h != null && (n.fetchPriority = h), l != null && (n.isMap = l), f != null && (n.useMap = f), n.onload = () => t(n), n.onerror = r;
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
const r =
|
|
355
|
-
() =>
|
|
353
|
+
function _t(e, t = {}) {
|
|
354
|
+
const r = rt(
|
|
355
|
+
() => ot(E(e)),
|
|
356
356
|
void 0,
|
|
357
357
|
{
|
|
358
358
|
resetOnExecute: !0,
|
|
@@ -365,37 +365,53 @@ function xt(e, t = {}) {
|
|
|
365
365
|
{ deep: !0 }
|
|
366
366
|
), r;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function it(e) {
|
|
369
369
|
var t = Object.prototype.toString.call(e);
|
|
370
370
|
return t === "[object Uint8ClampedArray]" || t === "[object Int8Array]" || t === "[object Uint8Array]" || t === "[object Int16Array]" || t === "[object Uint16Array]" || t === "[object Int32Array]" || t === "[object Uint32Array]" || t === "[object Float32Array]" || t === "[object Float64Array]" || t === "[object BigInt64Array]" || t === "[object BigUint64Array]";
|
|
371
371
|
}
|
|
372
|
-
var
|
|
373
|
-
return t != null && typeof t["fantasy-land/empty"] == "function" ? t["fantasy-land/empty"]() : t != null && t.constructor != null && typeof t.constructor["fantasy-land/empty"] == "function" ? t.constructor["fantasy-land/empty"]() : t != null && typeof t.empty == "function" ? t.empty() : t != null && t.constructor != null && typeof t.constructor.empty == "function" ? t.constructor.empty() :
|
|
372
|
+
var at = /* @__PURE__ */ K(function(t) {
|
|
373
|
+
return t != null && typeof t["fantasy-land/empty"] == "function" ? t["fantasy-land/empty"]() : t != null && t.constructor != null && typeof t.constructor["fantasy-land/empty"] == "function" ? t.constructor["fantasy-land/empty"]() : t != null && typeof t.empty == "function" ? t.empty() : t != null && t.constructor != null && typeof t.constructor.empty == "function" ? t.constructor.empty() : Be(t) ? [] : We(t) ? "" : X(t) ? {} : Me(t) ? /* @__PURE__ */ function() {
|
|
374
374
|
return arguments;
|
|
375
|
-
}() :
|
|
376
|
-
}),
|
|
377
|
-
return t != null &&
|
|
378
|
-
}),
|
|
375
|
+
}() : it(t) ? t.constructor.from("") : void 0;
|
|
376
|
+
}), st = /* @__PURE__ */ K(function(t) {
|
|
377
|
+
return t != null && $e(t, at(t));
|
|
378
|
+
}), ut = /* @__PURE__ */ he(function(t, r, n) {
|
|
379
|
+
var i = {}, o;
|
|
380
|
+
r = r || {}, n = n || {};
|
|
381
|
+
for (o in r)
|
|
382
|
+
B(o, r) && (i[o] = B(o, n) ? t(o, r[o], n[o]) : r[o]);
|
|
383
|
+
for (o in n)
|
|
384
|
+
B(o, n) && !B(o, i) && (i[o] = n[o]);
|
|
385
|
+
return i;
|
|
386
|
+
}), ct = /* @__PURE__ */ he(function e(t, r, n) {
|
|
387
|
+
return ut(function(i, o, a) {
|
|
388
|
+
return X(o) && X(a) ? e(t, o, a) : t(i, o, a);
|
|
389
|
+
}, r, n);
|
|
390
|
+
}), lt = /* @__PURE__ */ ge(function(t, r) {
|
|
391
|
+
return ct(function(n, i, o) {
|
|
392
|
+
return o;
|
|
393
|
+
}, t, r);
|
|
394
|
+
}), ft = /* @__PURE__ */ ge(function(t, r) {
|
|
379
395
|
for (var n = {}, i = {}, o = 0, a = t.length; o < a; )
|
|
380
396
|
i[t[o]] = 1, o += 1;
|
|
381
397
|
for (var s in r)
|
|
382
398
|
i.hasOwnProperty(s) || (n[s] = r[s]);
|
|
383
399
|
return n;
|
|
384
400
|
}), L = `
|
|
385
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
|
401
|
+
\v\f\r \u2028\u2029\uFEFF`, dt = "", pt = typeof String.prototype.trim == "function", G = !pt || /* @__PURE__ */ L.trim() || !/* @__PURE__ */ dt.trim() ? /* @__PURE__ */ K(function(t) {
|
|
386
402
|
var r = new RegExp("^[" + L + "][" + L + "]*"), n = new RegExp("[" + L + "][" + L + "]*$");
|
|
387
403
|
return t.replace(r, "").replace(n, "");
|
|
388
|
-
}) : /* @__PURE__ */
|
|
404
|
+
}) : /* @__PURE__ */ K(function(t) {
|
|
389
405
|
return t.trim();
|
|
390
406
|
});
|
|
391
|
-
function
|
|
407
|
+
function jt(e, t, r, n) {
|
|
392
408
|
const i = I(""), o = I(!1), a = (s) => {
|
|
393
|
-
const c =
|
|
409
|
+
const c = ze(ae(t), s), y = c.length > 0;
|
|
394
410
|
if (o.value = y, !y)
|
|
395
411
|
return i.value = "";
|
|
396
412
|
const u = c.map((d) => ({
|
|
397
413
|
team: d.team.longName,
|
|
398
|
-
points: Math.abs(
|
|
414
|
+
points: Math.abs(ae(t, d))
|
|
399
415
|
})).map((d) => r(`additionalText.${t}.content`, d)).join(", ");
|
|
400
416
|
i.value = [
|
|
401
417
|
r(`additionalText.${t}.prependix`),
|
|
@@ -403,7 +419,7 @@ function St(e, t, r, n) {
|
|
|
403
419
|
...r(`additionalText.${t}.appendix`) && [r(`additionalText.${t}.appendix`)]
|
|
404
420
|
].join(" ");
|
|
405
421
|
};
|
|
406
|
-
return
|
|
422
|
+
return tt(e, a), S(
|
|
407
423
|
() => O(n),
|
|
408
424
|
() => a(O(e))
|
|
409
425
|
), {
|
|
@@ -411,26 +427,26 @@ function St(e, t, r, n) {
|
|
|
411
427
|
isVisible: o
|
|
412
428
|
};
|
|
413
429
|
}
|
|
414
|
-
const
|
|
430
|
+
const Ae = Symbol("I18nContext"), T = me({
|
|
415
431
|
messages: {},
|
|
416
432
|
locale: "",
|
|
417
433
|
fallbackLocale: ""
|
|
418
434
|
});
|
|
419
|
-
function
|
|
420
|
-
T.messages = e, T.locale = t, T.fallbackLocale = r;
|
|
435
|
+
function Lt({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) {
|
|
436
|
+
T.messages = lt(T.messages, e), T.locale = t, T.fallbackLocale = r;
|
|
421
437
|
const n = (c, y = {}) => {
|
|
422
|
-
const v = !
|
|
423
|
-
return
|
|
424
|
-
const m =
|
|
425
|
-
return v ?
|
|
438
|
+
const v = !st(y), u = k(G, N(".", c));
|
|
439
|
+
return _(() => {
|
|
440
|
+
const m = Ee(u);
|
|
441
|
+
return v ? vt(m, y) : m;
|
|
426
442
|
}).value;
|
|
427
443
|
}, i = (c) => {
|
|
428
|
-
const y = k(G,
|
|
429
|
-
return !!
|
|
444
|
+
const y = k(G, N(".", c));
|
|
445
|
+
return !!ee(T.locale, y, T.messages);
|
|
430
446
|
}, o = (c) => {
|
|
431
447
|
T.locale = c;
|
|
432
448
|
}, s = {
|
|
433
|
-
locale:
|
|
449
|
+
locale: _({
|
|
434
450
|
get() {
|
|
435
451
|
return T.locale;
|
|
436
452
|
},
|
|
@@ -442,13 +458,13 @@ function Pt({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) {
|
|
|
442
458
|
translate: n,
|
|
443
459
|
hasTranslation: i
|
|
444
460
|
};
|
|
445
|
-
return
|
|
461
|
+
return ye(Ae, s), {
|
|
446
462
|
translate: n
|
|
447
463
|
};
|
|
448
464
|
}
|
|
449
|
-
function
|
|
465
|
+
function mt(e) {
|
|
450
466
|
e && (T.messages = e.messages, T.locale = e.locale, T.fallbackLocale = e.fallbackLocale);
|
|
451
|
-
const t =
|
|
467
|
+
const t = yt();
|
|
452
468
|
return {
|
|
453
469
|
locale: t.locale,
|
|
454
470
|
t: t.translate,
|
|
@@ -456,23 +472,23 @@ function ct(e) {
|
|
|
456
472
|
hasTranslation: t.hasTranslation
|
|
457
473
|
};
|
|
458
474
|
}
|
|
459
|
-
function
|
|
460
|
-
const e =
|
|
475
|
+
function yt() {
|
|
476
|
+
const e = ve(Ae, null);
|
|
461
477
|
if (e === null)
|
|
462
478
|
throw new Error("Privider is missing a parent component.");
|
|
463
479
|
return e;
|
|
464
480
|
}
|
|
465
|
-
function
|
|
466
|
-
let t =
|
|
467
|
-
return !t && T.fallbackLocale && (t =
|
|
481
|
+
function Ee(e = []) {
|
|
482
|
+
let t = ee(T.locale, e, T.messages);
|
|
483
|
+
return !t && T.fallbackLocale && (t = ee(T.fallbackLocale, e, T.messages)), t || e.join(".");
|
|
468
484
|
}
|
|
469
|
-
function
|
|
470
|
-
return
|
|
485
|
+
function ee(e, t, r) {
|
|
486
|
+
return Ue([e, ...t], r);
|
|
471
487
|
}
|
|
472
|
-
function
|
|
488
|
+
function vt(e, t) {
|
|
473
489
|
return e.replace(/\{(\w+)\}/g, (r, n) => t[n]);
|
|
474
490
|
}
|
|
475
|
-
const
|
|
491
|
+
const Dt = ke({
|
|
476
492
|
props: {
|
|
477
493
|
tag: {
|
|
478
494
|
type: String,
|
|
@@ -484,19 +500,19 @@ const Ct = je({
|
|
|
484
500
|
}
|
|
485
501
|
},
|
|
486
502
|
setup(e, { slots: t }) {
|
|
487
|
-
const r = k(G,
|
|
503
|
+
const r = k(G, N(".", e.path)), n = Ee(r), i = N(/\{|\}/, n), o = Object.keys(t).map((a) => {
|
|
488
504
|
const s = i.indexOf(a);
|
|
489
505
|
return s > -1 && (i[s] = t[a]()[0]), i;
|
|
490
506
|
});
|
|
491
|
-
return () =>
|
|
507
|
+
return () => Ne(e.tag, o);
|
|
492
508
|
}
|
|
493
509
|
});
|
|
494
|
-
function
|
|
495
|
-
const n = I(""), { t: i } =
|
|
510
|
+
function kt(e, t = "", r = {}) {
|
|
511
|
+
const n = I(""), { t: i } = mt(), o = _(() => {
|
|
496
512
|
if (O(t))
|
|
497
513
|
try {
|
|
498
|
-
const c =
|
|
499
|
-
return
|
|
514
|
+
const c = ht(O(e), O(t));
|
|
515
|
+
return ft(c, O(e));
|
|
500
516
|
} catch (c) {
|
|
501
517
|
n.value = c;
|
|
502
518
|
}
|
|
@@ -507,12 +523,12 @@ function Rt(e, t = "", r = {}) {
|
|
|
507
523
|
...c.tooltip && { tooltip: i(c.tooltip ?? "") }
|
|
508
524
|
});
|
|
509
525
|
return {
|
|
510
|
-
columns:
|
|
526
|
+
columns: _(() => k(a, o.value)),
|
|
511
527
|
error: n
|
|
512
528
|
};
|
|
513
529
|
}
|
|
514
|
-
function
|
|
515
|
-
const r = k(G,
|
|
530
|
+
function ht(e, t = "") {
|
|
531
|
+
const r = k(G, N(",", t)), n = Ke(e);
|
|
516
532
|
if (r[0] === "")
|
|
517
533
|
return [];
|
|
518
534
|
const i = r.findIndex((o) => !n.includes(o));
|
|
@@ -520,49 +536,49 @@ function dt(e, t = "") {
|
|
|
520
536
|
throw r[i];
|
|
521
537
|
return r;
|
|
522
538
|
}
|
|
523
|
-
const
|
|
524
|
-
function
|
|
539
|
+
const Ie = Symbol("ErrorProviderContext");
|
|
540
|
+
function Nt() {
|
|
525
541
|
const e = I(""), t = I({}), r = (o) => {
|
|
526
542
|
console.error({ error: o }), e.value = o.message || o.error.message, t.value = {
|
|
527
543
|
message: o.message,
|
|
528
|
-
key: o.key ||
|
|
544
|
+
key: o.key || Ge(o.message),
|
|
529
545
|
cause: o.cause
|
|
530
546
|
};
|
|
531
547
|
};
|
|
532
|
-
return
|
|
548
|
+
return ye(Ie, {
|
|
533
549
|
onError: r,
|
|
534
550
|
reset: () => {
|
|
535
551
|
e.value = "", t.value = {};
|
|
536
552
|
}
|
|
537
553
|
}), window.onerror = (o) => {
|
|
538
554
|
console.error("WINDOW_ONERROR:", o);
|
|
539
|
-
},
|
|
555
|
+
}, Fe((o, a, s) => {
|
|
540
556
|
console.error("onErrorCaptured:", o, a, s);
|
|
541
557
|
}), {
|
|
542
|
-
hasError:
|
|
558
|
+
hasError: _(() => e.value.length > 0),
|
|
543
559
|
message: e,
|
|
544
560
|
error: t,
|
|
545
561
|
onError: r
|
|
546
562
|
};
|
|
547
563
|
}
|
|
548
|
-
function
|
|
549
|
-
const e =
|
|
564
|
+
function Ft() {
|
|
565
|
+
const e = gt();
|
|
550
566
|
return {
|
|
551
567
|
onError: e.onError,
|
|
552
568
|
reset: e.reset
|
|
553
569
|
};
|
|
554
570
|
}
|
|
555
|
-
function
|
|
556
|
-
const e =
|
|
571
|
+
function gt() {
|
|
572
|
+
const e = ve(Ie, null);
|
|
557
573
|
if (e === null)
|
|
558
574
|
throw new Error("Privider is missing a parent component.");
|
|
559
575
|
return e;
|
|
560
576
|
}
|
|
561
|
-
function
|
|
562
|
-
const { delay: r = 0 } = t, n = I(!1), i =
|
|
577
|
+
function Bt(e = [], t = {}) {
|
|
578
|
+
const { delay: r = 0 } = t, n = I(!1), i = _(() => {
|
|
563
579
|
const s = O(e);
|
|
564
580
|
return Array.isArray(s) ? s.map((c) => O(c)).some(Boolean) : s;
|
|
565
|
-
}), { start: o, stop: a } =
|
|
581
|
+
}), { start: o, stop: a } = et(() => {
|
|
566
582
|
n.value = !0;
|
|
567
583
|
}, r);
|
|
568
584
|
return S(
|
|
@@ -575,7 +591,7 @@ function Lt(e = [], t = {}) {
|
|
|
575
591
|
{ immediate: !0, deep: !0 }
|
|
576
592
|
), n;
|
|
577
593
|
}
|
|
578
|
-
function
|
|
594
|
+
function Wt(e) {
|
|
579
595
|
return "mjsz-vbr-" + e;
|
|
580
596
|
}
|
|
581
597
|
/*! *****************************************************************************
|
|
@@ -592,7 +608,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
592
608
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
593
609
|
PERFORMANCE OF THIS SOFTWARE.
|
|
594
610
|
***************************************************************************** */
|
|
595
|
-
function
|
|
611
|
+
function V(e, t) {
|
|
596
612
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
597
613
|
if (!r) return e;
|
|
598
614
|
var n, i, o = r.call(e), a = [];
|
|
@@ -609,29 +625,29 @@ function J(e, t) {
|
|
|
609
625
|
}
|
|
610
626
|
return a;
|
|
611
627
|
}
|
|
612
|
-
var
|
|
628
|
+
var ce;
|
|
613
629
|
(function(e) {
|
|
614
630
|
e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
|
|
615
|
-
})(
|
|
616
|
-
var
|
|
631
|
+
})(ce || (ce = {}));
|
|
632
|
+
var wt = { type: "xstate.init" };
|
|
617
633
|
function M(e) {
|
|
618
634
|
return e === void 0 ? [] : [].concat(e);
|
|
619
635
|
}
|
|
620
|
-
function
|
|
636
|
+
function le(e, t) {
|
|
621
637
|
return typeof (e = typeof e == "string" && t && t[e] ? t[e] : e) == "string" ? { type: e } : typeof e == "function" ? { type: e.name, exec: e } : e;
|
|
622
638
|
}
|
|
623
|
-
function
|
|
639
|
+
function te(e) {
|
|
624
640
|
return function(t) {
|
|
625
641
|
return e === t;
|
|
626
642
|
};
|
|
627
643
|
}
|
|
628
|
-
function
|
|
644
|
+
function bt(e) {
|
|
629
645
|
return typeof e == "string" ? { type: e } : e;
|
|
630
646
|
}
|
|
631
|
-
function
|
|
632
|
-
return { value: e, context: t, actions: [], changed: !1, matches:
|
|
647
|
+
function fe(e, t) {
|
|
648
|
+
return { value: e, context: t, actions: [], changed: !1, matches: te(e) };
|
|
633
649
|
}
|
|
634
|
-
function
|
|
650
|
+
function de(e, t, r) {
|
|
635
651
|
var n = t, i = !1;
|
|
636
652
|
return [e.filter(function(o) {
|
|
637
653
|
if (o.type === "xstate.assign") {
|
|
@@ -644,39 +660,39 @@ function le(e, t, r) {
|
|
|
644
660
|
return !0;
|
|
645
661
|
}), n, i];
|
|
646
662
|
}
|
|
647
|
-
function
|
|
663
|
+
function Tt(e, t) {
|
|
648
664
|
t === void 0 && (t = {});
|
|
649
|
-
var r =
|
|
650
|
-
return
|
|
651
|
-
}), e.context,
|
|
652
|
-
var c, y, v = typeof a == "string" ? { value: a, context: e.context } : a, u = v.value, d = v.context, m =
|
|
665
|
+
var r = V(de(M(e.states[e.initial].entry).map(function(a) {
|
|
666
|
+
return le(a, t.actions);
|
|
667
|
+
}), e.context, wt), 2), n = r[0], i = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: i, matches: te(e.initial) }, transition: function(a, s) {
|
|
668
|
+
var c, y, v = typeof a == "string" ? { value: a, context: e.context } : a, u = v.value, d = v.context, m = bt(s), h = e.states[u];
|
|
653
669
|
if (h.on) {
|
|
654
670
|
var l = M(h.on[m.type]);
|
|
655
|
-
"*" in h.on && l.push.apply(l, function(b, x,
|
|
656
|
-
if (arguments.length === 2) for (var P, C = 0,
|
|
671
|
+
"*" in h.on && l.push.apply(l, function(b, x, J) {
|
|
672
|
+
if (arguments.length === 2) for (var P, C = 0, _e = x.length; C < _e; C++) !P && C in x || (P || (P = Array.prototype.slice.call(x, 0, C)), P[C] = x[C]);
|
|
657
673
|
return b.concat(P || Array.prototype.slice.call(x));
|
|
658
|
-
}([],
|
|
674
|
+
}([], V(M(h.on["*"])), !1));
|
|
659
675
|
try {
|
|
660
676
|
for (var f = function(b) {
|
|
661
|
-
var x = typeof Symbol == "function" && Symbol.iterator,
|
|
662
|
-
if (
|
|
677
|
+
var x = typeof Symbol == "function" && Symbol.iterator, J = x && b[x], P = 0;
|
|
678
|
+
if (J) return J.call(b);
|
|
663
679
|
if (b && typeof b.length == "number") return { next: function() {
|
|
664
680
|
return b && P >= b.length && (b = void 0), { value: b && b[P++], done: !b };
|
|
665
681
|
} };
|
|
666
682
|
throw new TypeError(x ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
667
683
|
}(l), p = f.next(); !p.done; p = f.next()) {
|
|
668
684
|
var w = p.value;
|
|
669
|
-
if (w === void 0) return
|
|
670
|
-
var A = typeof w == "string" ? { target: w } : w, g = A.target,
|
|
685
|
+
if (w === void 0) return fe(u, d);
|
|
686
|
+
var A = typeof w == "string" ? { target: w } : w, g = A.target, j = A.actions, F = j === void 0 ? [] : j, ne = A.cond, Oe = ne === void 0 ? function() {
|
|
671
687
|
return !0;
|
|
672
|
-
} :
|
|
673
|
-
if (
|
|
674
|
-
var
|
|
688
|
+
} : ne, xe = g === void 0, Se = g ?? u, Pe = e.states[Se];
|
|
689
|
+
if (Oe(d, m)) {
|
|
690
|
+
var H = V(de((xe ? M(F) : [].concat(h.exit, F, Pe.entry).filter(function(b) {
|
|
675
691
|
return b;
|
|
676
692
|
})).map(function(b) {
|
|
677
|
-
return
|
|
678
|
-
}), d, m), 3),
|
|
679
|
-
return { value:
|
|
693
|
+
return le(b, o._options.actions);
|
|
694
|
+
}), d, m), 3), re = H[0], Ce = H[1], Re = H[2], oe = g ?? u;
|
|
695
|
+
return { value: oe, context: Ce, actions: re, changed: g !== u || re.length > 0 || Re, matches: te(oe) };
|
|
680
696
|
}
|
|
681
697
|
}
|
|
682
698
|
} catch (b) {
|
|
@@ -689,40 +705,40 @@ function vt(e, t) {
|
|
|
689
705
|
}
|
|
690
706
|
}
|
|
691
707
|
}
|
|
692
|
-
return
|
|
708
|
+
return fe(u, d);
|
|
693
709
|
} };
|
|
694
710
|
return o;
|
|
695
711
|
}
|
|
696
|
-
const
|
|
712
|
+
const At = Tt({
|
|
697
713
|
id: "sort",
|
|
698
|
-
initial:
|
|
714
|
+
initial: W,
|
|
699
715
|
states: {
|
|
700
|
-
[
|
|
716
|
+
[W]: {
|
|
701
717
|
on: {
|
|
702
|
-
DIRECTION1:
|
|
703
|
-
DIRECTION2:
|
|
718
|
+
DIRECTION1: Q,
|
|
719
|
+
DIRECTION2: $
|
|
704
720
|
}
|
|
705
721
|
},
|
|
706
|
-
[
|
|
722
|
+
[Q]: {
|
|
707
723
|
on: {
|
|
708
|
-
DIRECTION1:
|
|
709
|
-
DIRECTION2:
|
|
724
|
+
DIRECTION1: $,
|
|
725
|
+
DIRECTION2: W
|
|
710
726
|
}
|
|
711
727
|
},
|
|
712
|
-
[
|
|
728
|
+
[$]: {
|
|
713
729
|
on: {
|
|
714
|
-
DIRECTION1:
|
|
715
|
-
DIRECTION2:
|
|
730
|
+
DIRECTION1: W,
|
|
731
|
+
DIRECTION2: Q
|
|
716
732
|
}
|
|
717
733
|
}
|
|
718
734
|
}
|
|
719
735
|
});
|
|
720
|
-
function
|
|
721
|
-
const r = t ===
|
|
722
|
-
return
|
|
736
|
+
function Et(e, t) {
|
|
737
|
+
const r = t === $ ? "DIRECTION2" : "DIRECTION1";
|
|
738
|
+
return At.transition(e, r).value;
|
|
723
739
|
}
|
|
724
|
-
function
|
|
725
|
-
const { sortTarget: t = null, orders: r = [] } = e, n =
|
|
740
|
+
function Mt(e = {}) {
|
|
741
|
+
const { sortTarget: t = null, orders: r = [] } = e, n = me({ sortTarget: t, orders: r });
|
|
726
742
|
return {
|
|
727
743
|
sort: n,
|
|
728
744
|
change: ({ target: o, orders: a }) => {
|
|
@@ -732,32 +748,33 @@ function kt(e = {}) {
|
|
|
732
748
|
}
|
|
733
749
|
const s = a.map((c, y) => ({
|
|
734
750
|
...c,
|
|
735
|
-
direction:
|
|
751
|
+
direction: Et(n.orders[y].direction, c.direction)
|
|
736
752
|
}));
|
|
737
753
|
n.sortTarget = o, n.orders = s;
|
|
738
754
|
}
|
|
739
755
|
};
|
|
740
756
|
}
|
|
741
757
|
export {
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
758
|
+
kt as a,
|
|
759
|
+
Nt as b,
|
|
760
|
+
Ft as c,
|
|
761
|
+
Lt as d,
|
|
762
|
+
mt as e,
|
|
763
|
+
Bt as f,
|
|
764
|
+
Wt as g,
|
|
765
|
+
Mt as h,
|
|
766
|
+
Dt as i,
|
|
767
|
+
_t as j,
|
|
768
|
+
st as k,
|
|
769
|
+
tt as l,
|
|
770
|
+
lt as m,
|
|
755
771
|
R as n,
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
772
|
+
Ct as o,
|
|
773
|
+
St as p,
|
|
774
|
+
D as q,
|
|
775
|
+
rt as r,
|
|
776
|
+
Rt as s,
|
|
777
|
+
jt as u,
|
|
778
|
+
ht as v,
|
|
779
|
+
Pt as w
|
|
763
780
|
};
|