@mjsz-vbr-elements/core 2.10.0 → 2.11.1
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/README.md +1 -0
- package/dist/{AdditionalStandingsText-3jExdQ4O.js → TimezoneSelector-pJzOJFd2.js} +776 -774
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +84 -71
- package/dist/constants.js +1 -1
- package/dist/{datetime-P3jKxpvY.js → datetime-DTVWbsTz.js} +504 -454
- package/dist/{convert-HYpfGr9y.js → errors-1KEdp4yb.js} +226 -184
- 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 +127 -122
- package/dist/{useAdditionalText-DHQEg82L.js → useSort-fVNzrwPD.js} +188 -173
- package/dist/utils.js +35 -30
- package/package.json +9 -9
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.11.1 - 14/01/2025, 17:08:27
|
|
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 fe, watch as S, nextTick as z, getCurrentScope as Pe, onScopeDispose as Ce, toValue as E, isRef as Re, shallowRef as re,
|
|
9
|
-
import { _ as U, w as Ne, x as ke, z as Fe, A as De, B as Be, C as Me, D as
|
|
8
|
+
import { ref as I, readonly as fe, watch as S, nextTick as z, getCurrentScope as Pe, onScopeDispose as Ce, toValue as E, isRef as Re, shallowRef as re, unref as O, reactive as de, defineComponent as je, h as _e, computed as j, provide as pe, inject as me, onErrorCaptured as Le } from "vue";
|
|
9
|
+
import { _ as U, w as Ne, x as ke, z as Fe, A as De, B as Be, C as Me, D as We, E as oe, F as k, G as F, H as $e, I as ze, u as Ue } from "./datetime-DTVWbsTz.js";
|
|
10
10
|
import { SORT_STATE_ORIGINAL as B, SORT_STATE_DESCEND as K, SORT_STATE_ASCEND as W } from "./constants.js";
|
|
11
|
-
const At = (e) => "mjsz-vbr-" + e;
|
|
12
11
|
function ye(e) {
|
|
13
12
|
return Pe() ? (Ce(e), !0) : !1;
|
|
14
13
|
}
|
|
@@ -64,11 +63,11 @@ function Qe(e, t, r = {}) {
|
|
|
64
63
|
i
|
|
65
64
|
);
|
|
66
65
|
}
|
|
67
|
-
function
|
|
66
|
+
function At(e, t, r = {}) {
|
|
68
67
|
const {
|
|
69
68
|
eventFilter: n,
|
|
70
69
|
...i
|
|
71
|
-
} = r, { eventFilter: o, pause:
|
|
70
|
+
} = r, { eventFilter: o, pause: a, resume: s, isActive: c } = Je(n);
|
|
72
71
|
return { stop: Qe(
|
|
73
72
|
e,
|
|
74
73
|
t,
|
|
@@ -76,7 +75,7 @@ function Et(e, t, r = {}) {
|
|
|
76
75
|
...i,
|
|
77
76
|
eventFilter: o
|
|
78
77
|
}
|
|
79
|
-
), pause:
|
|
78
|
+
), pause: a, resume: s, isActive: c };
|
|
80
79
|
}
|
|
81
80
|
function X(e, t = !1) {
|
|
82
81
|
function r(u, { flush: d = "sync", deep: m = !1, timeout: h, throwOnTimeout: l } = {}) {
|
|
@@ -126,10 +125,10 @@ function X(e, t = !1) {
|
|
|
126
125
|
function o(u) {
|
|
127
126
|
return n(null, u);
|
|
128
127
|
}
|
|
129
|
-
function
|
|
128
|
+
function a(u) {
|
|
130
129
|
return n(void 0, u);
|
|
131
130
|
}
|
|
132
|
-
function
|
|
131
|
+
function s(u) {
|
|
133
132
|
return r(Number.isNaN, u);
|
|
134
133
|
}
|
|
135
134
|
function c(u, d) {
|
|
@@ -158,8 +157,8 @@ function X(e, t = !1) {
|
|
|
158
157
|
toBe: n,
|
|
159
158
|
toBeTruthy: i,
|
|
160
159
|
toBeNull: o,
|
|
161
|
-
toBeNaN:
|
|
162
|
-
toBeUndefined:
|
|
160
|
+
toBeNaN: s,
|
|
161
|
+
toBeUndefined: a,
|
|
163
162
|
changed: y,
|
|
164
163
|
changedTimes: v,
|
|
165
164
|
get not() {
|
|
@@ -175,32 +174,32 @@ function Ye(e, t, r = {}) {
|
|
|
175
174
|
immediate: n = !0
|
|
176
175
|
} = r, i = I(!1);
|
|
177
176
|
let o = null;
|
|
178
|
-
function
|
|
177
|
+
function a() {
|
|
179
178
|
o && (clearTimeout(o), o = null);
|
|
180
179
|
}
|
|
181
|
-
function
|
|
182
|
-
i.value = !1,
|
|
180
|
+
function s() {
|
|
181
|
+
i.value = !1, a();
|
|
183
182
|
}
|
|
184
183
|
function c(...y) {
|
|
185
|
-
|
|
184
|
+
a(), i.value = !0, o = setTimeout(() => {
|
|
186
185
|
i.value = !1, o = null, e(...y);
|
|
187
186
|
}, E(t));
|
|
188
187
|
}
|
|
189
|
-
return n && (i.value = !0, V && c()), ye(
|
|
188
|
+
return n && (i.value = !0, V && c()), ye(s), {
|
|
190
189
|
isPending: fe(i),
|
|
191
190
|
start: c,
|
|
192
|
-
stop:
|
|
191
|
+
stop: s
|
|
193
192
|
};
|
|
194
193
|
}
|
|
195
194
|
function Ze(e, t, r) {
|
|
196
195
|
const n = S(e, (...i) => (z(() => n()), t(...i)), r);
|
|
197
196
|
return n;
|
|
198
197
|
}
|
|
199
|
-
function
|
|
198
|
+
function Et(e, t, r) {
|
|
200
199
|
const n = S(
|
|
201
200
|
e,
|
|
202
|
-
(i, o,
|
|
203
|
-
i && (r != null && r.once && z(() => n()), t(i, o,
|
|
201
|
+
(i, o, a) => {
|
|
202
|
+
i && (r != null && r.once && z(() => n()), t(i, o, a));
|
|
204
203
|
},
|
|
205
204
|
{
|
|
206
205
|
...r,
|
|
@@ -220,31 +219,31 @@ function $(...e) {
|
|
|
220
219
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, i] = e, t = he) : [t, r, n, i] = e, !t)
|
|
221
220
|
return R;
|
|
222
221
|
r = ie(r), n = ie(n);
|
|
223
|
-
const o = [],
|
|
222
|
+
const o = [], a = () => {
|
|
224
223
|
o.forEach((v) => v()), o.length = 0;
|
|
225
|
-
},
|
|
224
|
+
}, s = (v, u, d, m) => (v.addEventListener(u, d, m), () => v.removeEventListener(u, d, m)), c = S(
|
|
226
225
|
() => [N(t), E(i)],
|
|
227
226
|
([v, u]) => {
|
|
228
|
-
if (
|
|
227
|
+
if (a(), !v)
|
|
229
228
|
return;
|
|
230
229
|
const d = Ve(u) ? { ...u } : u;
|
|
231
230
|
o.push(
|
|
232
|
-
...r.flatMap((m) => n.map((h) =>
|
|
231
|
+
...r.flatMap((m) => n.map((h) => s(v, m, h, d)))
|
|
233
232
|
);
|
|
234
233
|
},
|
|
235
234
|
{ immediate: !0, flush: "post" }
|
|
236
235
|
), y = () => {
|
|
237
|
-
c(),
|
|
236
|
+
c(), a();
|
|
238
237
|
};
|
|
239
238
|
return ye(y), y;
|
|
240
239
|
}
|
|
241
|
-
let
|
|
242
|
-
function
|
|
243
|
-
const { window: n = he, ignore: i = [], capture: o = !0, detectIframe:
|
|
240
|
+
let ae = !1;
|
|
241
|
+
function It(e, t, r = {}) {
|
|
242
|
+
const { window: n = he, ignore: i = [], capture: o = !0, detectIframe: a = !1 } = r;
|
|
244
243
|
if (!n)
|
|
245
244
|
return R;
|
|
246
|
-
qe && !
|
|
247
|
-
let
|
|
245
|
+
qe && !ae && (ae = !0, Array.from(n.document.body.children).forEach((l) => l.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
|
|
246
|
+
let s = !0;
|
|
248
247
|
const c = (l) => E(i).some((f) => {
|
|
249
248
|
if (typeof f == "string")
|
|
250
249
|
return Array.from(n.document.querySelectorAll(f)).some((p) => p === l.target || l.composedPath().includes(p));
|
|
@@ -264,8 +263,8 @@ function Ot(e, t, r = {}) {
|
|
|
264
263
|
const u = (l) => {
|
|
265
264
|
const f = N(e);
|
|
266
265
|
if (l.target != null && !(!(f instanceof Element) && y(e) && v(e, l)) && !(!f || f === l.target || l.composedPath().includes(f))) {
|
|
267
|
-
if (l.detail === 0 && (
|
|
268
|
-
|
|
266
|
+
if (l.detail === 0 && (s = !c(l)), !s) {
|
|
267
|
+
s = !0;
|
|
269
268
|
return;
|
|
270
269
|
}
|
|
271
270
|
t(l);
|
|
@@ -280,9 +279,9 @@ function Ot(e, t, r = {}) {
|
|
|
280
279
|
}, { passive: !0, capture: o }),
|
|
281
280
|
$(n, "pointerdown", (l) => {
|
|
282
281
|
const f = N(e);
|
|
283
|
-
|
|
282
|
+
s = !c(l) && !!(f && !l.composedPath().includes(f));
|
|
284
283
|
}, { passive: !0 }),
|
|
285
|
-
|
|
284
|
+
a && $(n, "blur", (l) => {
|
|
286
285
|
setTimeout(() => {
|
|
287
286
|
var f;
|
|
288
287
|
const p = N(e);
|
|
@@ -297,17 +296,17 @@ function tt(e, t, r) {
|
|
|
297
296
|
immediate: n = !0,
|
|
298
297
|
delay: i = 0,
|
|
299
298
|
onError: o = R,
|
|
300
|
-
onSuccess:
|
|
301
|
-
resetOnExecute:
|
|
299
|
+
onSuccess: a = R,
|
|
300
|
+
resetOnExecute: s = !0,
|
|
302
301
|
shallow: c = !0,
|
|
303
302
|
throwError: y
|
|
304
303
|
} = r ?? {}, v = c ? re(t) : I(t), u = I(!1), d = I(!1), m = re(void 0);
|
|
305
304
|
async function h(p = 0, ...w) {
|
|
306
|
-
|
|
305
|
+
s && (v.value = t), m.value = void 0, u.value = !1, d.value = !0, p > 0 && await Q(p);
|
|
307
306
|
const A = typeof e == "function" ? e(...w) : e;
|
|
308
307
|
try {
|
|
309
308
|
const g = await A;
|
|
310
|
-
v.value = g, u.value = !0,
|
|
309
|
+
v.value = g, u.value = !0, a(g);
|
|
311
310
|
} catch (g) {
|
|
312
311
|
if (m.value = g, o(g), y)
|
|
313
312
|
throw g;
|
|
@@ -336,7 +335,7 @@ function tt(e, t, r) {
|
|
|
336
335
|
}
|
|
337
336
|
};
|
|
338
337
|
}
|
|
339
|
-
function
|
|
338
|
+
function Ot(e = {}) {
|
|
340
339
|
const { document: t = et } = e;
|
|
341
340
|
if (!t)
|
|
342
341
|
return I("visible");
|
|
@@ -347,11 +346,11 @@ function xt(e = {}) {
|
|
|
347
346
|
}
|
|
348
347
|
async function nt(e) {
|
|
349
348
|
return new Promise((t, r) => {
|
|
350
|
-
const n = new Image(), { src: i, srcset: o, sizes:
|
|
351
|
-
n.src = i, o != null && (n.srcset = o),
|
|
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
|
+
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;
|
|
352
351
|
});
|
|
353
352
|
}
|
|
354
|
-
function
|
|
353
|
+
function xt(e, t = {}) {
|
|
355
354
|
const r = tt(
|
|
356
355
|
() => nt(E(e)),
|
|
357
356
|
void 0,
|
|
@@ -366,22 +365,6 @@ function St(e, t = {}) {
|
|
|
366
365
|
{ deep: !0 }
|
|
367
366
|
), r;
|
|
368
367
|
}
|
|
369
|
-
function Pt(e = [], t = {}) {
|
|
370
|
-
const { delay: r = 0 } = t, n = I(!1), i = j(() => {
|
|
371
|
-
const a = O(e);
|
|
372
|
-
return Array.isArray(a) ? a.map((c) => O(c)).some(Boolean) : a;
|
|
373
|
-
}), { start: o, stop: s } = Ye(() => {
|
|
374
|
-
n.value = !0;
|
|
375
|
-
}, r);
|
|
376
|
-
return S(
|
|
377
|
-
i,
|
|
378
|
-
(a) => {
|
|
379
|
-
if (a) return o();
|
|
380
|
-
s(), n.value = !1;
|
|
381
|
-
},
|
|
382
|
-
{ immediate: !0, deep: !0 }
|
|
383
|
-
), n;
|
|
384
|
-
}
|
|
385
368
|
function rt(e) {
|
|
386
369
|
var t = Object.prototype.toString.call(e);
|
|
387
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]";
|
|
@@ -392,24 +375,48 @@ var ot = /* @__PURE__ */ U(function(t) {
|
|
|
392
375
|
}() : rt(t) ? t.constructor.from("") : void 0;
|
|
393
376
|
}), it = /* @__PURE__ */ U(function(t) {
|
|
394
377
|
return t != null && Be(t, ot(t));
|
|
395
|
-
}),
|
|
396
|
-
for (var n = {}, i = {}, o = 0,
|
|
378
|
+
}), at = /* @__PURE__ */ Me(function(t, r) {
|
|
379
|
+
for (var n = {}, i = {}, o = 0, a = t.length; o < a; )
|
|
397
380
|
i[t[o]] = 1, o += 1;
|
|
398
|
-
for (var
|
|
399
|
-
i.hasOwnProperty(
|
|
381
|
+
for (var s in r)
|
|
382
|
+
i.hasOwnProperty(s) || (n[s] = r[s]);
|
|
400
383
|
return n;
|
|
401
384
|
}), L = `
|
|
402
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
|
385
|
+
\v\f\r \u2028\u2029\uFEFF`, st = "", ut = typeof String.prototype.trim == "function", G = !ut || /* @__PURE__ */ L.trim() || !/* @__PURE__ */ st.trim() ? /* @__PURE__ */ U(function(t) {
|
|
403
386
|
var r = new RegExp("^[" + L + "][" + L + "]*"), n = new RegExp("[" + L + "][" + L + "]*$");
|
|
404
387
|
return t.replace(r, "").replace(n, "");
|
|
405
388
|
}) : /* @__PURE__ */ U(function(t) {
|
|
406
389
|
return t.trim();
|
|
407
390
|
});
|
|
391
|
+
function St(e, t, r, n) {
|
|
392
|
+
const i = I(""), o = I(!1), a = (s) => {
|
|
393
|
+
const c = We(oe(t), s), y = c.length > 0;
|
|
394
|
+
if (o.value = y, !y)
|
|
395
|
+
return i.value = "";
|
|
396
|
+
const u = c.map((d) => ({
|
|
397
|
+
team: d.team.longName,
|
|
398
|
+
points: Math.abs(oe(t, d))
|
|
399
|
+
})).map((d) => r(`additionalText.${t}.content`, d)).join(", ");
|
|
400
|
+
i.value = [
|
|
401
|
+
r(`additionalText.${t}.prependix`),
|
|
402
|
+
u,
|
|
403
|
+
...r(`additionalText.${t}.appendix`) && [r(`additionalText.${t}.appendix`)]
|
|
404
|
+
].join(" ");
|
|
405
|
+
};
|
|
406
|
+
return Ze(e, a), S(
|
|
407
|
+
() => O(n),
|
|
408
|
+
() => a(O(e))
|
|
409
|
+
), {
|
|
410
|
+
text: i,
|
|
411
|
+
isVisible: o
|
|
412
|
+
};
|
|
413
|
+
}
|
|
408
414
|
const ge = Symbol("I18nContext"), T = de({
|
|
409
415
|
messages: {},
|
|
410
416
|
locale: "",
|
|
411
417
|
fallbackLocale: ""
|
|
412
|
-
})
|
|
418
|
+
});
|
|
419
|
+
function Pt({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) {
|
|
413
420
|
T.messages = e, T.locale = t, T.fallbackLocale = r;
|
|
414
421
|
const n = (c, y = {}) => {
|
|
415
422
|
const v = !it(y), u = k(G, F(".", c));
|
|
@@ -422,7 +429,7 @@ const ge = Symbol("I18nContext"), T = de({
|
|
|
422
429
|
return !!Y(T.locale, y, T.messages);
|
|
423
430
|
}, o = (c) => {
|
|
424
431
|
T.locale = c;
|
|
425
|
-
},
|
|
432
|
+
}, s = {
|
|
426
433
|
locale: j({
|
|
427
434
|
get() {
|
|
428
435
|
return T.locale;
|
|
@@ -435,10 +442,11 @@ const ge = Symbol("I18nContext"), T = de({
|
|
|
435
442
|
translate: n,
|
|
436
443
|
hasTranslation: i
|
|
437
444
|
};
|
|
438
|
-
return pe(ge,
|
|
445
|
+
return pe(ge, s), {
|
|
439
446
|
translate: n
|
|
440
447
|
};
|
|
441
|
-
}
|
|
448
|
+
}
|
|
449
|
+
function ct(e) {
|
|
442
450
|
e && (T.messages = e.messages, T.locale = e.locale, T.fallbackLocale = e.fallbackLocale);
|
|
443
451
|
const t = lt();
|
|
444
452
|
return {
|
|
@@ -447,23 +455,24 @@ const ge = Symbol("I18nContext"), T = de({
|
|
|
447
455
|
setLocale: t.setLocale,
|
|
448
456
|
hasTranslation: t.hasTranslation
|
|
449
457
|
};
|
|
450
|
-
}
|
|
458
|
+
}
|
|
459
|
+
function lt() {
|
|
451
460
|
const e = me(ge, null);
|
|
452
461
|
if (e === null)
|
|
453
462
|
throw new Error("Privider is missing a parent component.");
|
|
454
463
|
return e;
|
|
455
|
-
}
|
|
464
|
+
}
|
|
465
|
+
function we(e = []) {
|
|
456
466
|
let t = Y(T.locale, e, T.messages);
|
|
457
467
|
return !t && T.fallbackLocale && (t = Y(T.fallbackLocale, e, T.messages)), t || e.join(".");
|
|
458
|
-
}
|
|
468
|
+
}
|
|
459
469
|
function Y(e, t, r) {
|
|
460
|
-
return
|
|
470
|
+
return $e([e, ...t], r);
|
|
461
471
|
}
|
|
462
|
-
|
|
463
|
-
return e.replace(/\{(\w+)\}/g,
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}, Rt = je({
|
|
472
|
+
function ft(e, t) {
|
|
473
|
+
return e.replace(/\{(\w+)\}/g, (r, n) => t[n]);
|
|
474
|
+
}
|
|
475
|
+
const Ct = je({
|
|
467
476
|
props: {
|
|
468
477
|
tag: {
|
|
469
478
|
type: String,
|
|
@@ -475,17 +484,48 @@ const ft = function(e, t) {
|
|
|
475
484
|
}
|
|
476
485
|
},
|
|
477
486
|
setup(e, { slots: t }) {
|
|
478
|
-
const r = k(G, F(".", e.path)), n = we(r), i = F(
|
|
479
|
-
const
|
|
480
|
-
return
|
|
487
|
+
const r = k(G, F(".", e.path)), n = we(r), i = F(/\{|\}/, n), o = Object.keys(t).map((a) => {
|
|
488
|
+
const s = i.indexOf(a);
|
|
489
|
+
return s > -1 && (i[s] = t[a]()[0]), i;
|
|
481
490
|
});
|
|
482
491
|
return () => _e(e.tag, o);
|
|
483
492
|
}
|
|
484
|
-
})
|
|
493
|
+
});
|
|
494
|
+
function Rt(e, t = "", r = {}) {
|
|
495
|
+
const n = I(""), { t: i } = ct(), o = j(() => {
|
|
496
|
+
if (O(t))
|
|
497
|
+
try {
|
|
498
|
+
const c = dt(O(e), O(t));
|
|
499
|
+
return at(c, O(e));
|
|
500
|
+
} catch (c) {
|
|
501
|
+
n.value = c;
|
|
502
|
+
}
|
|
503
|
+
return O(e);
|
|
504
|
+
}), a = (c) => ({
|
|
505
|
+
...c,
|
|
506
|
+
...c.label && { label: i(c.label ?? "", O(r)) },
|
|
507
|
+
...c.tooltip && { tooltip: i(c.tooltip ?? "") }
|
|
508
|
+
});
|
|
509
|
+
return {
|
|
510
|
+
columns: j(() => k(a, o.value)),
|
|
511
|
+
error: n
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
function dt(e, t = "") {
|
|
515
|
+
const r = k(G, F(",", t)), n = ze(e);
|
|
516
|
+
if (r[0] === "")
|
|
517
|
+
return [];
|
|
518
|
+
const i = r.findIndex((o) => !n.includes(o));
|
|
519
|
+
if (i > -1)
|
|
520
|
+
throw r[i];
|
|
521
|
+
return r;
|
|
522
|
+
}
|
|
523
|
+
const be = Symbol("ErrorProviderContext");
|
|
524
|
+
function jt() {
|
|
485
525
|
const e = I(""), t = I({}), r = (o) => {
|
|
486
526
|
console.error({ error: o }), e.value = o.message || o.error.message, t.value = {
|
|
487
527
|
message: o.message,
|
|
488
|
-
key: o.key ||
|
|
528
|
+
key: o.key || Ue(o.message),
|
|
489
529
|
cause: o.cause
|
|
490
530
|
};
|
|
491
531
|
};
|
|
@@ -496,52 +536,48 @@ const ft = function(e, t) {
|
|
|
496
536
|
}
|
|
497
537
|
}), window.onerror = (o) => {
|
|
498
538
|
console.error("WINDOW_ONERROR:", o);
|
|
499
|
-
}, Le((o,
|
|
500
|
-
console.error("onErrorCaptured:", o,
|
|
539
|
+
}, Le((o, a, s) => {
|
|
540
|
+
console.error("onErrorCaptured:", o, a, s);
|
|
501
541
|
}), {
|
|
502
542
|
hasError: j(() => e.value.length > 0),
|
|
503
543
|
message: e,
|
|
504
544
|
error: t,
|
|
505
545
|
onError: r
|
|
506
546
|
};
|
|
507
|
-
}
|
|
508
|
-
|
|
547
|
+
}
|
|
548
|
+
function _t() {
|
|
549
|
+
const e = pt();
|
|
509
550
|
return {
|
|
510
551
|
onError: e.onError,
|
|
511
552
|
reset: e.reset
|
|
512
553
|
};
|
|
513
|
-
}
|
|
554
|
+
}
|
|
555
|
+
function pt() {
|
|
514
556
|
const e = me(be, null);
|
|
515
557
|
if (e === null)
|
|
516
558
|
throw new Error("Privider is missing a parent component.");
|
|
517
559
|
return e;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
if (r[0] === "") return resolve([]);
|
|
540
|
-
const i = r.findIndex((o) => !n.includes(o));
|
|
541
|
-
if (i > -1)
|
|
542
|
-
throw r[i];
|
|
543
|
-
return r;
|
|
544
|
-
};
|
|
560
|
+
}
|
|
561
|
+
function Lt(e = [], t = {}) {
|
|
562
|
+
const { delay: r = 0 } = t, n = I(!1), i = j(() => {
|
|
563
|
+
const s = O(e);
|
|
564
|
+
return Array.isArray(s) ? s.map((c) => O(c)).some(Boolean) : s;
|
|
565
|
+
}), { start: o, stop: a } = Ye(() => {
|
|
566
|
+
n.value = !0;
|
|
567
|
+
}, r);
|
|
568
|
+
return S(
|
|
569
|
+
i,
|
|
570
|
+
(s) => {
|
|
571
|
+
if (s)
|
|
572
|
+
return o();
|
|
573
|
+
a(), n.value = !1;
|
|
574
|
+
},
|
|
575
|
+
{ immediate: !0, deep: !0 }
|
|
576
|
+
), n;
|
|
577
|
+
}
|
|
578
|
+
function Nt(e) {
|
|
579
|
+
return "mjsz-vbr-" + e;
|
|
580
|
+
}
|
|
545
581
|
/*! *****************************************************************************
|
|
546
582
|
Copyright (c) Microsoft Corporation.
|
|
547
583
|
|
|
@@ -559,11 +595,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
559
595
|
function J(e, t) {
|
|
560
596
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
561
597
|
if (!r) return e;
|
|
562
|
-
var n, i, o = r.call(e),
|
|
598
|
+
var n, i, o = r.call(e), a = [];
|
|
563
599
|
try {
|
|
564
|
-
for (; (t === void 0 || t-- > 0) && !(n = o.next()).done; )
|
|
565
|
-
} catch (
|
|
566
|
-
i = { error:
|
|
600
|
+
for (; (t === void 0 || t-- > 0) && !(n = o.next()).done; ) a.push(n.value);
|
|
601
|
+
} catch (s) {
|
|
602
|
+
i = { error: s };
|
|
567
603
|
} finally {
|
|
568
604
|
try {
|
|
569
605
|
n && !n.done && (r = o.return) && r.call(o);
|
|
@@ -571,12 +607,12 @@ function J(e, t) {
|
|
|
571
607
|
if (i) throw i.error;
|
|
572
608
|
}
|
|
573
609
|
}
|
|
574
|
-
return
|
|
610
|
+
return a;
|
|
575
611
|
}
|
|
576
|
-
var
|
|
612
|
+
var se;
|
|
577
613
|
(function(e) {
|
|
578
614
|
e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
|
|
579
|
-
})(
|
|
615
|
+
})(se || (se = {}));
|
|
580
616
|
var mt = { type: "xstate.init" };
|
|
581
617
|
function M(e) {
|
|
582
618
|
return e === void 0 ? [] : [].concat(e);
|
|
@@ -600,20 +636,20 @@ function le(e, t, r) {
|
|
|
600
636
|
return [e.filter(function(o) {
|
|
601
637
|
if (o.type === "xstate.assign") {
|
|
602
638
|
i = !0;
|
|
603
|
-
var
|
|
604
|
-
return typeof o.assignment == "function" ?
|
|
605
|
-
s
|
|
606
|
-
}), n =
|
|
639
|
+
var a = Object.assign({}, n);
|
|
640
|
+
return typeof o.assignment == "function" ? a = o.assignment(n, r) : Object.keys(o.assignment).forEach(function(s) {
|
|
641
|
+
a[s] = typeof o.assignment[s] == "function" ? o.assignment[s](n, r) : o.assignment[s];
|
|
642
|
+
}), n = a, !1;
|
|
607
643
|
}
|
|
608
644
|
return !0;
|
|
609
645
|
}), n, i];
|
|
610
646
|
}
|
|
611
647
|
function vt(e, t) {
|
|
612
648
|
t === void 0 && (t = {});
|
|
613
|
-
var r = J(le(M(e.states[e.initial].entry).map(function(
|
|
614
|
-
return ue(
|
|
615
|
-
}), e.context, mt), 2), n = r[0], i = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: i, matches: Z(e.initial) }, transition: function(
|
|
616
|
-
var c, y, v = typeof
|
|
649
|
+
var r = J(le(M(e.states[e.initial].entry).map(function(a) {
|
|
650
|
+
return ue(a, t.actions);
|
|
651
|
+
}), e.context, mt), 2), n = r[0], i = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: i, matches: Z(e.initial) }, transition: function(a, s) {
|
|
652
|
+
var c, y, v = typeof a == "string" ? { value: a, context: e.context } : a, u = v.value, d = v.context, m = yt(s), h = e.states[u];
|
|
617
653
|
if (h.on) {
|
|
618
654
|
var l = M(h.on[m.type]);
|
|
619
655
|
"*" in h.on && l.push.apply(l, function(b, x, H) {
|
|
@@ -680,69 +716,48 @@ const ht = vt({
|
|
|
680
716
|
}
|
|
681
717
|
}
|
|
682
718
|
}
|
|
683
|
-
})
|
|
719
|
+
});
|
|
720
|
+
function gt(e, t) {
|
|
684
721
|
const r = t === W ? "DIRECTION2" : "DIRECTION1";
|
|
685
722
|
return ht.transition(e, r).value;
|
|
686
|
-
}
|
|
687
|
-
function
|
|
723
|
+
}
|
|
724
|
+
function kt(e = {}) {
|
|
688
725
|
const { sortTarget: t = null, orders: r = [] } = e, n = de({ sortTarget: t, orders: r });
|
|
689
726
|
return {
|
|
690
727
|
sort: n,
|
|
691
|
-
change: ({ target: o, orders:
|
|
728
|
+
change: ({ target: o, orders: a }) => {
|
|
692
729
|
if (n.sortTarget !== o) {
|
|
693
|
-
n.sortTarget = o, n.orders =
|
|
730
|
+
n.sortTarget = o, n.orders = a;
|
|
694
731
|
return;
|
|
695
732
|
}
|
|
696
|
-
const
|
|
733
|
+
const s = a.map((c, y) => ({
|
|
697
734
|
...c,
|
|
698
735
|
direction: gt(n.orders[y].direction, c.direction)
|
|
699
736
|
}));
|
|
700
|
-
n.sortTarget = o, n.orders =
|
|
737
|
+
n.sortTarget = o, n.orders = s;
|
|
701
738
|
}
|
|
702
739
|
};
|
|
703
740
|
}
|
|
704
|
-
function kt(e, t, r, n) {
|
|
705
|
-
const i = I(""), o = I(!1), s = (a) => {
|
|
706
|
-
const c = Ue(oe(t), a), y = c.length > 0;
|
|
707
|
-
if (o.value = y, !y) return i.value = "";
|
|
708
|
-
const u = c.map((d) => ({
|
|
709
|
-
team: d.team.longName,
|
|
710
|
-
points: Math.abs(oe(t, d))
|
|
711
|
-
})).map((d) => r(`additionalText.${t}.content`, d)).join(", ");
|
|
712
|
-
i.value = [
|
|
713
|
-
r(`additionalText.${t}.prependix`),
|
|
714
|
-
u,
|
|
715
|
-
...r(`additionalText.${t}.appendix`) && [r(`additionalText.${t}.appendix`)]
|
|
716
|
-
].join(" ");
|
|
717
|
-
};
|
|
718
|
-
return Ze(e, s), S(
|
|
719
|
-
() => O(n),
|
|
720
|
-
() => s(O(e))
|
|
721
|
-
), {
|
|
722
|
-
text: i,
|
|
723
|
-
isVisible: o
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
741
|
export {
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
742
|
+
Rt as a,
|
|
743
|
+
jt as b,
|
|
744
|
+
_t as c,
|
|
745
|
+
Pt as d,
|
|
746
|
+
ct as e,
|
|
747
|
+
Lt as f,
|
|
733
748
|
Nt as g,
|
|
734
749
|
kt as h,
|
|
735
|
-
|
|
736
|
-
|
|
750
|
+
Ct as i,
|
|
751
|
+
xt as j,
|
|
737
752
|
it as k,
|
|
738
753
|
Ze as l,
|
|
739
|
-
|
|
754
|
+
At as m,
|
|
740
755
|
R as n,
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
756
|
+
It as o,
|
|
757
|
+
N as p,
|
|
758
|
+
tt as q,
|
|
759
|
+
Ot as r,
|
|
760
|
+
St as u,
|
|
761
|
+
dt as v,
|
|
762
|
+
Et as w
|
|
748
763
|
};
|