@mjsz-vbr-elements/core 2.2.1 → 2.2.2
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/{SeasonSelector-hqWIAEq6.js → AdditionalStandingsText-nuhfGhAD.js} +505 -460
- package/dist/columns.js +1 -1
- package/dist/components.js +18 -17
- package/dist/composables.js +39 -38
- package/dist/constants.js +1 -1
- package/dist/{convert-PMHuZhPy.js → convert-rWfB71vI.js} +2 -2
- package/dist/{datetime-EyEBo0-h.js → datetime--bMmvxSM.js} +16 -16
- 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 +98 -96
- package/dist/{useSort-WcJ_BIws.js → useAdditionalText-hj0kZWr7.js} +246 -225
- package/dist/utils.js +4 -4
- package/package.json +2 -2
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.
|
|
3
|
+
* version: v2.2.2 - 08/01/2024, 11:28:47
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { ref as
|
|
9
|
-
import { _ as F, j as
|
|
10
|
-
import { SORT_STATE_ORIGINAL as
|
|
11
|
-
var
|
|
12
|
-
const
|
|
8
|
+
import { ref as w, readonly as me, watch as I, nextTick as Ce, getCurrentScope as Ne, onScopeDispose as De, unref as T, isRef as Le, shallowRef as te, computed as A, reactive as ye, defineComponent as Fe, h as Be, provide as ge, inject as he, onErrorCaptured as Ve } from "vue";
|
|
9
|
+
import { _ as F, j as Ue, k as ke, l as We, m as Me, n as ze, p as qe, q as j, s as R, r as Ke, t as Ge, u as He, v as Xe, w as re } from "./datetime--bMmvxSM.js";
|
|
10
|
+
import { SORT_STATE_ORIGINAL as N, SORT_STATE_DESCEND as z, SORT_STATE_ASCEND as D } from "./constants.js";
|
|
11
|
+
var Ye = { VITE_VBR_API_URL: "https://api.icehockey.hu/vbr", VITE_VBR_API_KEY: "", VITE_USER_NODE_ENV: "production", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
12
|
+
const Ht = (e) => (Ye.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + e;
|
|
13
13
|
function _e(e) {
|
|
14
|
-
return
|
|
14
|
+
return Ne() ? (De(e), !0) : !1;
|
|
15
15
|
}
|
|
16
16
|
function E(e) {
|
|
17
|
-
return typeof e == "function" ? e() :
|
|
17
|
+
return typeof e == "function" ? e() : T(e);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
},
|
|
21
|
-
function
|
|
19
|
+
const k = typeof window < "u", B = () => {
|
|
20
|
+
}, Je = /* @__PURE__ */ Qe();
|
|
21
|
+
function Qe() {
|
|
22
22
|
var e;
|
|
23
|
-
return
|
|
23
|
+
return k && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Ze(e, t) {
|
|
26
26
|
function r(...n) {
|
|
27
27
|
return new Promise((a, o) => {
|
|
28
28
|
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(a).catch(o);
|
|
@@ -30,9 +30,9 @@ function Je(e, t) {
|
|
|
30
30
|
}
|
|
31
31
|
return r;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
function
|
|
35
|
-
const t =
|
|
33
|
+
const Oe = (e) => e();
|
|
34
|
+
function et(e = Oe) {
|
|
35
|
+
const t = w(!0);
|
|
36
36
|
function r() {
|
|
37
37
|
t.value = !1;
|
|
38
38
|
}
|
|
@@ -42,7 +42,7 @@ function Qe(e = he) {
|
|
|
42
42
|
const a = (...o) => {
|
|
43
43
|
t.value && e(...o);
|
|
44
44
|
};
|
|
45
|
-
return { isActive:
|
|
45
|
+
return { isActive: me(t), pause: r, resume: n, eventFilter: a };
|
|
46
46
|
}
|
|
47
47
|
function K(e, t = !1, r = "Timeout") {
|
|
48
48
|
return new Promise((n, a) => {
|
|
@@ -51,12 +51,12 @@ function K(e, t = !1, r = "Timeout") {
|
|
|
51
51
|
}
|
|
52
52
|
function G(e, t = !1) {
|
|
53
53
|
function r(l, { flush: s = "sync", deep: f = !1, timeout: v, throwOnTimeout: P } = {}) {
|
|
54
|
-
let
|
|
55
|
-
const
|
|
56
|
-
|
|
54
|
+
let _ = null;
|
|
55
|
+
const O = [new Promise((b) => {
|
|
56
|
+
_ = I(
|
|
57
57
|
e,
|
|
58
58
|
(m) => {
|
|
59
|
-
l(m) !== t && (
|
|
59
|
+
l(m) !== t && (_ == null || _(), b(m));
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
flush: s,
|
|
@@ -65,20 +65,20 @@ function G(e, t = !1) {
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
})];
|
|
68
|
-
return v != null &&
|
|
69
|
-
K(v, P).then(() => E(e)).finally(() =>
|
|
70
|
-
), Promise.race(
|
|
68
|
+
return v != null && O.push(
|
|
69
|
+
K(v, P).then(() => E(e)).finally(() => _ == null ? void 0 : _())
|
|
70
|
+
), Promise.race(O);
|
|
71
71
|
}
|
|
72
72
|
function n(l, s) {
|
|
73
73
|
if (!Le(l))
|
|
74
74
|
return r((m) => m === l, s);
|
|
75
|
-
const { flush: f = "sync", deep: v = !1, timeout: P, throwOnTimeout:
|
|
75
|
+
const { flush: f = "sync", deep: v = !1, timeout: P, throwOnTimeout: _ } = s ?? {};
|
|
76
76
|
let y = null;
|
|
77
77
|
const b = [new Promise((m) => {
|
|
78
|
-
y =
|
|
78
|
+
y = I(
|
|
79
79
|
[e, l],
|
|
80
|
-
([
|
|
81
|
-
t !== (
|
|
80
|
+
([S, C]) => {
|
|
81
|
+
t !== (S === C) && (y == null || y(), m(S));
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
flush: f,
|
|
@@ -88,7 +88,7 @@ function G(e, t = !1) {
|
|
|
88
88
|
);
|
|
89
89
|
})];
|
|
90
90
|
return P != null && b.push(
|
|
91
|
-
K(P,
|
|
91
|
+
K(P, _).then(() => E(e)).finally(() => (y == null || y(), E(e)))
|
|
92
92
|
), Promise.race(b);
|
|
93
93
|
}
|
|
94
94
|
function a(l) {
|
|
@@ -138,13 +138,13 @@ function G(e, t = !1) {
|
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function tt(e) {
|
|
142
142
|
return G(e);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function rt(e, t, r = {}) {
|
|
145
145
|
const {
|
|
146
146
|
immediate: n = !0
|
|
147
|
-
} = r, a =
|
|
147
|
+
} = r, a = w(!1);
|
|
148
148
|
let o = null;
|
|
149
149
|
function c() {
|
|
150
150
|
o && (clearTimeout(o), o = null);
|
|
@@ -157,71 +157,71 @@ function et(e, t, r = {}) {
|
|
|
157
157
|
a.value = !1, o = null, e(...p);
|
|
158
158
|
}, E(t));
|
|
159
159
|
}
|
|
160
|
-
return n && (a.value = !0,
|
|
161
|
-
isPending:
|
|
160
|
+
return n && (a.value = !0, k && u()), _e(i), {
|
|
161
|
+
isPending: me(a),
|
|
162
162
|
start: u,
|
|
163
163
|
stop: i
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
var
|
|
166
|
+
var ne = Object.getOwnPropertySymbols, nt = Object.prototype.hasOwnProperty, ot = Object.prototype.propertyIsEnumerable, at = (e, t) => {
|
|
167
167
|
var r = {};
|
|
168
168
|
for (var n in e)
|
|
169
|
-
|
|
170
|
-
if (e != null &&
|
|
171
|
-
for (var n of
|
|
172
|
-
t.indexOf(n) < 0 &&
|
|
169
|
+
nt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
170
|
+
if (e != null && ne)
|
|
171
|
+
for (var n of ne(e))
|
|
172
|
+
t.indexOf(n) < 0 && ot.call(e, n) && (r[n] = e[n]);
|
|
173
173
|
return r;
|
|
174
174
|
};
|
|
175
|
-
function
|
|
175
|
+
function it(e, t, r = {}) {
|
|
176
176
|
const n = r, {
|
|
177
|
-
eventFilter: a =
|
|
178
|
-
} = n, o =
|
|
177
|
+
eventFilter: a = Oe
|
|
178
|
+
} = n, o = at(n, [
|
|
179
179
|
"eventFilter"
|
|
180
180
|
]);
|
|
181
|
-
return
|
|
181
|
+
return I(
|
|
182
182
|
e,
|
|
183
|
-
|
|
183
|
+
Ze(
|
|
184
184
|
a,
|
|
185
185
|
t
|
|
186
186
|
),
|
|
187
187
|
o
|
|
188
188
|
);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
const n =
|
|
190
|
+
function st(e, t, r) {
|
|
191
|
+
const n = I(e, (...a) => (Ce(() => n()), t(...a)), r);
|
|
192
192
|
}
|
|
193
|
-
var
|
|
193
|
+
var ct = Object.defineProperty, ut = Object.defineProperties, lt = Object.getOwnPropertyDescriptors, V = Object.getOwnPropertySymbols, we = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable, oe = (e, t, r) => t in e ? ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
|
|
194
194
|
for (var r in t || (t = {}))
|
|
195
|
-
we.call(t, r) &&
|
|
196
|
-
if (
|
|
197
|
-
for (var r of
|
|
198
|
-
|
|
195
|
+
we.call(t, r) && oe(e, r, t[r]);
|
|
196
|
+
if (V)
|
|
197
|
+
for (var r of V(t))
|
|
198
|
+
be.call(t, r) && oe(e, r, t[r]);
|
|
199
199
|
return e;
|
|
200
|
-
},
|
|
200
|
+
}, pt = (e, t) => ut(e, lt(t)), dt = (e, t) => {
|
|
201
201
|
var r = {};
|
|
202
202
|
for (var n in e)
|
|
203
203
|
we.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
204
|
-
if (e != null &&
|
|
205
|
-
for (var n of
|
|
206
|
-
t.indexOf(n) < 0 &&
|
|
204
|
+
if (e != null && V)
|
|
205
|
+
for (var n of V(e))
|
|
206
|
+
t.indexOf(n) < 0 && be.call(e, n) && (r[n] = e[n]);
|
|
207
207
|
return r;
|
|
208
208
|
};
|
|
209
|
-
function
|
|
209
|
+
function Xt(e, t, r = {}) {
|
|
210
210
|
const n = r, {
|
|
211
211
|
eventFilter: a
|
|
212
|
-
} = n, o =
|
|
212
|
+
} = n, o = dt(n, [
|
|
213
213
|
"eventFilter"
|
|
214
|
-
]), { eventFilter: c, pause: i, resume: u, isActive: p } =
|
|
215
|
-
return { stop:
|
|
214
|
+
]), { eventFilter: c, pause: i, resume: u, isActive: p } = et(a);
|
|
215
|
+
return { stop: it(
|
|
216
216
|
e,
|
|
217
217
|
t,
|
|
218
|
-
|
|
218
|
+
pt(ft({}, o), {
|
|
219
219
|
eventFilter: c
|
|
220
220
|
})
|
|
221
221
|
), pause: i, resume: u, isActive: p };
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
return
|
|
223
|
+
function Yt(e, t, r) {
|
|
224
|
+
return I(
|
|
225
225
|
e,
|
|
226
226
|
(n, a, o) => {
|
|
227
227
|
n && t(n, a, o);
|
|
@@ -234,15 +234,15 @@ function $(e) {
|
|
|
234
234
|
const r = E(e);
|
|
235
235
|
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
236
236
|
}
|
|
237
|
-
const
|
|
238
|
-
function
|
|
237
|
+
const Ee = k ? window : void 0, vt = k ? window.document : void 0;
|
|
238
|
+
function L(...e) {
|
|
239
239
|
let t, r, n, a;
|
|
240
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t =
|
|
240
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = Ee) : [t, r, n, a] = e, !t)
|
|
241
241
|
return B;
|
|
242
242
|
Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
|
|
243
243
|
const o = [], c = () => {
|
|
244
244
|
o.forEach((d) => d()), o.length = 0;
|
|
245
|
-
}, i = (d, l, s, f) => (d.addEventListener(l, s, f), () => d.removeEventListener(l, s, f)), u =
|
|
245
|
+
}, i = (d, l, s, f) => (d.addEventListener(l, s, f), () => d.removeEventListener(l, s, f)), u = I(
|
|
246
246
|
() => [$(t), E(a)],
|
|
247
247
|
([d, l]) => {
|
|
248
248
|
c(), d && o.push(
|
|
@@ -255,12 +255,12 @@ function N(...e) {
|
|
|
255
255
|
};
|
|
256
256
|
return _e(p), p;
|
|
257
257
|
}
|
|
258
|
-
let
|
|
259
|
-
function
|
|
260
|
-
const { window: n =
|
|
258
|
+
let ae = !1;
|
|
259
|
+
function Jt(e, t, r = {}) {
|
|
260
|
+
const { window: n = Ee, ignore: a = [], capture: o = !0, detectIframe: c = !1 } = r;
|
|
261
261
|
if (!n)
|
|
262
262
|
return;
|
|
263
|
-
|
|
263
|
+
Je && !ae && (ae = !0, Array.from(n.document.body.children).forEach((s) => s.addEventListener("click", B)));
|
|
264
264
|
let i = !0;
|
|
265
265
|
const u = (s) => a.some((f) => {
|
|
266
266
|
if (typeof f == "string")
|
|
@@ -270,7 +270,7 @@ function Xt(e, t, r = {}) {
|
|
|
270
270
|
return v && (s.target === v || s.composedPath().includes(v));
|
|
271
271
|
}
|
|
272
272
|
}), d = [
|
|
273
|
-
|
|
273
|
+
L(n, "click", (s) => {
|
|
274
274
|
const f = $(e);
|
|
275
275
|
if (!(!f || f === s.target || s.composedPath().includes(f))) {
|
|
276
276
|
if (s.detail === 0 && (i = !u(s)), !i) {
|
|
@@ -280,11 +280,11 @@ function Xt(e, t, r = {}) {
|
|
|
280
280
|
t(s);
|
|
281
281
|
}
|
|
282
282
|
}, { passive: !0, capture: o }),
|
|
283
|
-
|
|
283
|
+
L(n, "pointerdown", (s) => {
|
|
284
284
|
const f = $(e);
|
|
285
285
|
f && (i = !s.composedPath().includes(f) && !u(s));
|
|
286
286
|
}, { passive: !0 }),
|
|
287
|
-
c &&
|
|
287
|
+
c && L(n, "blur", (s) => {
|
|
288
288
|
var f;
|
|
289
289
|
const v = $(e);
|
|
290
290
|
((f = n.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(v != null && v.contains(n.document.activeElement)) && t(s);
|
|
@@ -292,15 +292,15 @@ function Xt(e, t, r = {}) {
|
|
|
292
292
|
].filter(Boolean);
|
|
293
293
|
return () => d.forEach((s) => s());
|
|
294
294
|
}
|
|
295
|
-
var
|
|
295
|
+
var mt = Object.defineProperty, yt = Object.defineProperties, gt = Object.getOwnPropertyDescriptors, ie = Object.getOwnPropertySymbols, ht = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable, se = (e, t, r) => t in e ? mt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ot = (e, t) => {
|
|
296
296
|
for (var r in t || (t = {}))
|
|
297
|
-
|
|
298
|
-
if (
|
|
299
|
-
for (var r of
|
|
300
|
-
|
|
297
|
+
ht.call(t, r) && se(e, r, t[r]);
|
|
298
|
+
if (ie)
|
|
299
|
+
for (var r of ie(t))
|
|
300
|
+
_t.call(t, r) && se(e, r, t[r]);
|
|
301
301
|
return e;
|
|
302
|
-
},
|
|
303
|
-
function
|
|
302
|
+
}, wt = (e, t) => yt(e, gt(t));
|
|
303
|
+
function bt(e, t, r) {
|
|
304
304
|
const {
|
|
305
305
|
immediate: n = !0,
|
|
306
306
|
delay: a = 0,
|
|
@@ -309,10 +309,10 @@ function ht(e, t, r) {
|
|
|
309
309
|
resetOnExecute: i = !0,
|
|
310
310
|
shallow: u = !0,
|
|
311
311
|
throwError: p
|
|
312
|
-
} = r ?? {}, d = u ? te(t) :
|
|
313
|
-
async function v(y = 0, ...
|
|
312
|
+
} = r ?? {}, d = u ? te(t) : w(t), l = w(!1), s = w(!1), f = te(void 0);
|
|
313
|
+
async function v(y = 0, ...O) {
|
|
314
314
|
i && (d.value = t), f.value = void 0, l.value = !1, s.value = !0, y > 0 && await K(y);
|
|
315
|
-
const b = typeof e == "function" ? e(...
|
|
315
|
+
const b = typeof e == "function" ? e(...O) : e;
|
|
316
316
|
try {
|
|
317
317
|
const m = await b;
|
|
318
318
|
d.value = m, l.value = !0, c(m);
|
|
@@ -332,61 +332,61 @@ function ht(e, t, r) {
|
|
|
332
332
|
error: f,
|
|
333
333
|
execute: v
|
|
334
334
|
};
|
|
335
|
-
function
|
|
336
|
-
return new Promise((y,
|
|
337
|
-
|
|
335
|
+
function _() {
|
|
336
|
+
return new Promise((y, O) => {
|
|
337
|
+
tt(s).toBe(!1).then(() => y(P)).catch(O);
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
|
-
return
|
|
341
|
-
then(y,
|
|
342
|
-
return
|
|
340
|
+
return wt(Ot({}, P), {
|
|
341
|
+
then(y, O) {
|
|
342
|
+
return _().then(y, O);
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Qt({ document: e = vt } = {}) {
|
|
347
347
|
if (!e)
|
|
348
|
-
return
|
|
349
|
-
const t =
|
|
350
|
-
return
|
|
348
|
+
return w("visible");
|
|
349
|
+
const t = w(e.visibilityState);
|
|
350
|
+
return L(e, "visibilitychange", () => {
|
|
351
351
|
t.value = e.visibilityState;
|
|
352
352
|
}), t;
|
|
353
353
|
}
|
|
354
|
-
var
|
|
354
|
+
var Et = Object.defineProperty, ce = Object.getOwnPropertySymbols, Pt = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, ue = (e, t, r) => t in e ? Et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, It = (e, t) => {
|
|
355
355
|
for (var r in t || (t = {}))
|
|
356
|
-
|
|
357
|
-
if (
|
|
358
|
-
for (var r of
|
|
359
|
-
|
|
356
|
+
Pt.call(t, r) && ue(e, r, t[r]);
|
|
357
|
+
if (ce)
|
|
358
|
+
for (var r of ce(t))
|
|
359
|
+
Tt.call(t, r) && ue(e, r, t[r]);
|
|
360
360
|
return e;
|
|
361
361
|
};
|
|
362
|
-
async function
|
|
362
|
+
async function At(e) {
|
|
363
363
|
return new Promise((t, r) => {
|
|
364
364
|
const n = new Image(), { src: a, srcset: o, sizes: c, class: i, loading: u, crossorigin: p } = e;
|
|
365
365
|
n.src = a, o && (n.srcset = o), c && (n.sizes = c), i && (n.className = i), u && (n.loading = u), p && (n.crossOrigin = p), n.onload = () => t(n), n.onerror = r;
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
const r =
|
|
370
|
-
() =>
|
|
368
|
+
function Zt(e, t = {}) {
|
|
369
|
+
const r = bt(
|
|
370
|
+
() => At(E(e)),
|
|
371
371
|
void 0,
|
|
372
|
-
|
|
372
|
+
It({
|
|
373
373
|
resetOnExecute: !0
|
|
374
374
|
}, t)
|
|
375
375
|
);
|
|
376
|
-
return
|
|
376
|
+
return I(
|
|
377
377
|
() => E(e),
|
|
378
378
|
() => r.execute(t.delay),
|
|
379
379
|
{ deep: !0 }
|
|
380
380
|
), r;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
const { delay: r = 0 } = t, n =
|
|
384
|
-
const i =
|
|
385
|
-
return Array.isArray(i) ? i.map((u) =>
|
|
386
|
-
}), { start: o, stop: c } =
|
|
382
|
+
function er(e = [], t = {}) {
|
|
383
|
+
const { delay: r = 0 } = t, n = w(!1), a = A(() => {
|
|
384
|
+
const i = T(e);
|
|
385
|
+
return Array.isArray(i) ? i.map((u) => T(u)).some(Boolean) : i;
|
|
386
|
+
}), { start: o, stop: c } = rt(() => {
|
|
387
387
|
n.value = !0;
|
|
388
388
|
}, r);
|
|
389
|
-
return
|
|
389
|
+
return I(
|
|
390
390
|
a,
|
|
391
391
|
(i) => {
|
|
392
392
|
if (i)
|
|
@@ -396,88 +396,88 @@ function Qt(e = [], t = {}) {
|
|
|
396
396
|
{ immediate: !0, deep: !0 }
|
|
397
397
|
), n;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function St(e) {
|
|
400
400
|
var t = Object.prototype.toString.call(e);
|
|
401
401
|
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]";
|
|
402
402
|
}
|
|
403
|
-
var
|
|
404
|
-
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() :
|
|
403
|
+
var xt = /* @__PURE__ */ F(function(t) {
|
|
404
|
+
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() : Ue(t) ? [] : ke(t) ? "" : We(t) ? {} : Me(t) ? /* @__PURE__ */ function() {
|
|
405
405
|
return arguments;
|
|
406
|
-
}() :
|
|
407
|
-
}),
|
|
408
|
-
return t != null &&
|
|
409
|
-
}),
|
|
406
|
+
}() : St(t) ? t.constructor.from("") : void 0;
|
|
407
|
+
}), $t = /* @__PURE__ */ F(function(t) {
|
|
408
|
+
return t != null && ze(t, xt(t));
|
|
409
|
+
}), jt = /* @__PURE__ */ qe(function(t, r) {
|
|
410
410
|
for (var n = {}, a = {}, o = 0, c = t.length; o < c; )
|
|
411
411
|
a[t[o]] = 1, o += 1;
|
|
412
412
|
for (var i in r)
|
|
413
413
|
a.hasOwnProperty(i) || (n[i] = r[i]);
|
|
414
414
|
return n;
|
|
415
|
-
}),
|
|
416
|
-
\v\f\r \u2028\u2029\uFEFF`, Rt = "",
|
|
417
|
-
var r = new RegExp("^[" +
|
|
415
|
+
}), x = `
|
|
416
|
+
\v\f\r \u2028\u2029\uFEFF`, Rt = "", Ct = typeof String.prototype.trim == "function", Nt = !Ct || /* @__PURE__ */ x.trim() || !/* @__PURE__ */ Rt.trim() ? /* @__PURE__ */ F(function(t) {
|
|
417
|
+
var r = new RegExp("^[" + x + "][" + x + "]*"), n = new RegExp("[" + x + "][" + x + "]*$");
|
|
418
418
|
return t.replace(r, "").replace(n, "");
|
|
419
419
|
}) : /* @__PURE__ */ F(function(t) {
|
|
420
420
|
return t.trim();
|
|
421
421
|
});
|
|
422
|
-
const
|
|
422
|
+
const U = Nt, Pe = Symbol("I18nContext"), h = ye({
|
|
423
423
|
messages: {},
|
|
424
424
|
locale: "",
|
|
425
425
|
fallbackLocale: ""
|
|
426
|
-
}),
|
|
427
|
-
|
|
426
|
+
}), tr = ({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) => {
|
|
427
|
+
h.messages = e, h.locale = t, h.fallbackLocale = r;
|
|
428
428
|
const n = (u, p = {}) => {
|
|
429
|
-
const d =
|
|
430
|
-
return
|
|
431
|
-
const f =
|
|
432
|
-
return d ?
|
|
429
|
+
const d = !$t(p), l = j(U, R(".", u));
|
|
430
|
+
return A(() => {
|
|
431
|
+
const f = Te(l);
|
|
432
|
+
return d ? Ft(f, p) : f;
|
|
433
433
|
}).value;
|
|
434
434
|
}, a = (u) => {
|
|
435
|
-
const p = j(
|
|
436
|
-
return !!H(
|
|
435
|
+
const p = j(U, R(".", u));
|
|
436
|
+
return !!H(h.locale, p, h.messages);
|
|
437
437
|
}, o = (u) => {
|
|
438
|
-
|
|
438
|
+
h.locale = u;
|
|
439
439
|
}, i = {
|
|
440
|
-
locale:
|
|
440
|
+
locale: A({
|
|
441
441
|
get() {
|
|
442
|
-
return
|
|
442
|
+
return h.locale;
|
|
443
443
|
},
|
|
444
444
|
set(u) {
|
|
445
|
-
|
|
445
|
+
h.locale = u;
|
|
446
446
|
}
|
|
447
447
|
}),
|
|
448
448
|
setLocale: o,
|
|
449
449
|
translate: n,
|
|
450
450
|
hasTranlation: a
|
|
451
451
|
};
|
|
452
|
-
return
|
|
452
|
+
return ge(Pe, i), {
|
|
453
453
|
translate: n
|
|
454
454
|
};
|
|
455
|
-
},
|
|
456
|
-
e && (
|
|
457
|
-
const t =
|
|
455
|
+
}, Dt = (e) => {
|
|
456
|
+
e && (h.messages = e.messages, h.locale = e.locale, h.fallbackLocale = e.fallbackLocale);
|
|
457
|
+
const t = Lt();
|
|
458
458
|
return {
|
|
459
459
|
locale: t.locale,
|
|
460
460
|
t: t.translate,
|
|
461
461
|
setLocale: t.setLocale,
|
|
462
462
|
hasTranlation: t.hasTranlation
|
|
463
463
|
};
|
|
464
|
-
},
|
|
465
|
-
const e =
|
|
464
|
+
}, Lt = () => {
|
|
465
|
+
const e = he(Pe, null);
|
|
466
466
|
if (e === null)
|
|
467
467
|
throw new Error("Privider is missing a parent component.");
|
|
468
468
|
return e;
|
|
469
|
-
},
|
|
470
|
-
let t = H(
|
|
471
|
-
return !t &&
|
|
469
|
+
}, Te = (e = []) => {
|
|
470
|
+
let t = H(h.locale, e, h.messages);
|
|
471
|
+
return !t && h.fallbackLocale && (t = H(h.fallbackLocale, e, h.messages)), t || e.join(".");
|
|
472
472
|
};
|
|
473
473
|
function H(e, t, r) {
|
|
474
|
-
return
|
|
474
|
+
return Ke([e, ...t], r);
|
|
475
475
|
}
|
|
476
|
-
const
|
|
476
|
+
const Ft = function(e, t) {
|
|
477
477
|
return e.replace(/\{(\w+)\}/g, function(r, n) {
|
|
478
478
|
return t[n];
|
|
479
479
|
});
|
|
480
|
-
},
|
|
480
|
+
}, rr = Fe({
|
|
481
481
|
props: {
|
|
482
482
|
tag: {
|
|
483
483
|
type: String,
|
|
@@ -489,67 +489,67 @@ const Dt = function(e, t) {
|
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
491
|
setup(e, { slots: t }) {
|
|
492
|
-
const r = j(
|
|
492
|
+
const r = j(U, R(".", e.path)), n = Te(r), a = R(/{|}/, n), o = Object.keys(t).map((c) => {
|
|
493
493
|
const i = a.indexOf(c);
|
|
494
494
|
return i > -1 && (a[i] = t[c]()[0]), a;
|
|
495
495
|
});
|
|
496
|
-
return () =>
|
|
496
|
+
return () => Be(e.tag, o);
|
|
497
497
|
}
|
|
498
|
-
}), Ie = Symbol("ErrorProviderContext"),
|
|
499
|
-
const e =
|
|
498
|
+
}), Ie = Symbol("ErrorProviderContext"), nr = () => {
|
|
499
|
+
const e = w(""), t = w({}), r = (o) => {
|
|
500
500
|
console.error({ error: o }), e.value = o.message || o.error.message, t.value = {
|
|
501
501
|
message: o.message,
|
|
502
|
-
key: o.key ||
|
|
502
|
+
key: o.key || Ge(o.message),
|
|
503
503
|
cause: o.cause
|
|
504
504
|
};
|
|
505
505
|
};
|
|
506
|
-
return
|
|
506
|
+
return ge(Ie, {
|
|
507
507
|
onError: r,
|
|
508
508
|
reset: () => {
|
|
509
509
|
e.value = "", t.value = {};
|
|
510
510
|
}
|
|
511
511
|
}), window.onerror = (o) => {
|
|
512
512
|
console.error("WINDOW_ONERROR:", o);
|
|
513
|
-
},
|
|
513
|
+
}, Ve((o, c, i) => {
|
|
514
514
|
console.error("onErrorCaptured:", o, c, i);
|
|
515
515
|
}), {
|
|
516
|
-
hasError:
|
|
516
|
+
hasError: A(() => e.value.length > 0),
|
|
517
517
|
message: e,
|
|
518
518
|
error: t,
|
|
519
519
|
onError: r
|
|
520
520
|
};
|
|
521
|
-
},
|
|
522
|
-
const e =
|
|
521
|
+
}, or = () => {
|
|
522
|
+
const e = Bt();
|
|
523
523
|
return {
|
|
524
524
|
onError: e.onError,
|
|
525
525
|
reset: e.reset
|
|
526
526
|
};
|
|
527
|
-
},
|
|
528
|
-
const e =
|
|
527
|
+
}, Bt = () => {
|
|
528
|
+
const e = he(Ie, null);
|
|
529
529
|
if (e === null)
|
|
530
530
|
throw new Error("Privider is missing a parent component.");
|
|
531
531
|
return e;
|
|
532
|
-
},
|
|
533
|
-
const n =
|
|
534
|
-
if (
|
|
532
|
+
}, ar = (e, t = "", r = {}) => {
|
|
533
|
+
const n = w(""), { t: a } = Dt(), o = A(() => {
|
|
534
|
+
if (T(t))
|
|
535
535
|
try {
|
|
536
|
-
const u =
|
|
537
|
-
return
|
|
536
|
+
const u = Vt(T(e), T(t));
|
|
537
|
+
return jt(u, T(e));
|
|
538
538
|
} catch (u) {
|
|
539
539
|
n.value = u;
|
|
540
540
|
}
|
|
541
|
-
return
|
|
541
|
+
return T(e);
|
|
542
542
|
}), c = (u) => ({
|
|
543
543
|
...u,
|
|
544
|
-
...u.label && { label: a(u.label ?? "",
|
|
544
|
+
...u.label && { label: a(u.label ?? "", T(r)) },
|
|
545
545
|
...u.tooltip && { tooltip: a(u.tooltip ?? "") }
|
|
546
546
|
});
|
|
547
547
|
return {
|
|
548
|
-
columns:
|
|
548
|
+
columns: A(() => j(c, o.value)),
|
|
549
549
|
error: n
|
|
550
550
|
};
|
|
551
|
-
},
|
|
552
|
-
const r = j(
|
|
551
|
+
}, Vt = (e, t = "") => {
|
|
552
|
+
const r = j(U, R(",", t)), n = He(e);
|
|
553
553
|
if (r[0] === "")
|
|
554
554
|
return resolve([]);
|
|
555
555
|
const a = r.findIndex((o) => !n.includes(o));
|
|
@@ -571,7 +571,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
571
571
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
572
572
|
PERFORMANCE OF THIS SOFTWARE.
|
|
573
573
|
***************************************************************************** */
|
|
574
|
-
function
|
|
574
|
+
function le(e, t) {
|
|
575
575
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
576
576
|
if (!r)
|
|
577
577
|
return e;
|
|
@@ -591,15 +591,15 @@ function ue(e, t) {
|
|
|
591
591
|
}
|
|
592
592
|
return c;
|
|
593
593
|
}
|
|
594
|
-
var
|
|
594
|
+
var fe;
|
|
595
595
|
(function(e) {
|
|
596
596
|
e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
|
|
597
|
-
})(
|
|
598
|
-
var
|
|
597
|
+
})(fe || (fe = {}));
|
|
598
|
+
var Ut = { type: "xstate.init" };
|
|
599
599
|
function q(e) {
|
|
600
600
|
return e === void 0 ? [] : [].concat(e);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function pe(e, t) {
|
|
603
603
|
return typeof (e = typeof e == "string" && t && t[e] ? t[e] : e) == "string" ? { type: e } : typeof e == "function" ? { type: e.name, exec: e } : e;
|
|
604
604
|
}
|
|
605
605
|
function X(e) {
|
|
@@ -607,13 +607,13 @@ function X(e) {
|
|
|
607
607
|
return e === t;
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function kt(e) {
|
|
611
611
|
return typeof e == "string" ? { type: e } : e;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function de(e, t) {
|
|
614
614
|
return { value: e, context: t, actions: [], changed: !1, matches: X(e) };
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function ve(e, t, r) {
|
|
617
617
|
var n = t, a = !1;
|
|
618
618
|
return [e.filter(function(o) {
|
|
619
619
|
if (o.type === "xstate.assign") {
|
|
@@ -626,16 +626,16 @@ function de(e, t, r) {
|
|
|
626
626
|
return !0;
|
|
627
627
|
}), n, a];
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Wt(e, t) {
|
|
630
630
|
t === void 0 && (t = {});
|
|
631
|
-
var r =
|
|
632
|
-
return
|
|
633
|
-
}), e.context,
|
|
634
|
-
var u, p, d = typeof c == "string" ? { value: c, context: e.context } : c, l = d.value, s = d.context, f =
|
|
631
|
+
var r = le(ve(q(e.states[e.initial].entry).map(function(c) {
|
|
632
|
+
return pe(c, t.actions);
|
|
633
|
+
}), e.context, Ut), 2), n = r[0], a = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: a, matches: X(e.initial) }, transition: function(c, i) {
|
|
634
|
+
var u, p, d = typeof c == "string" ? { value: c, context: e.context } : c, l = d.value, s = d.context, f = kt(i), v = e.states[l];
|
|
635
635
|
if (v.on) {
|
|
636
636
|
var P = q(v.on[f.type]);
|
|
637
637
|
try {
|
|
638
|
-
for (var
|
|
638
|
+
for (var _ = function(g) {
|
|
639
639
|
var M = typeof Symbol == "function" && Symbol.iterator, Z = M && g[M], ee = 0;
|
|
640
640
|
if (Z)
|
|
641
641
|
return Z.call(g);
|
|
@@ -644,66 +644,66 @@ function kt(e, t) {
|
|
|
644
644
|
return g && ee >= g.length && (g = void 0), { value: g && g[ee++], done: !g };
|
|
645
645
|
} };
|
|
646
646
|
throw new TypeError(M ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
647
|
-
}(P), y =
|
|
648
|
-
var
|
|
649
|
-
if (
|
|
650
|
-
return
|
|
651
|
-
var b = typeof
|
|
647
|
+
}(P), y = _.next(); !y.done; y = _.next()) {
|
|
648
|
+
var O = y.value;
|
|
649
|
+
if (O === void 0)
|
|
650
|
+
return de(l, s);
|
|
651
|
+
var b = typeof O == "string" ? { target: O } : O, m = b.target, S = b.actions, C = S === void 0 ? [] : S, Y = b.cond, Ae = Y === void 0 ? function() {
|
|
652
652
|
return !0;
|
|
653
|
-
} : Y, Se = m === void 0,
|
|
653
|
+
} : Y, Se = m === void 0, xe = m ?? l, $e = e.states[xe];
|
|
654
654
|
if (Ae(s, f)) {
|
|
655
|
-
var W =
|
|
655
|
+
var W = le(ve((Se ? q(C) : [].concat(v.exit, C, $e.entry).filter(function(g) {
|
|
656
656
|
return g;
|
|
657
657
|
})).map(function(g) {
|
|
658
|
-
return
|
|
659
|
-
}), s, f), 3), J = W[0],
|
|
660
|
-
return { value: Q, context:
|
|
658
|
+
return pe(g, o._options.actions);
|
|
659
|
+
}), s, f), 3), J = W[0], je = W[1], Re = W[2], Q = m ?? l;
|
|
660
|
+
return { value: Q, context: je, actions: J, changed: m !== l || J.length > 0 || Re, matches: X(Q) };
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
} catch (g) {
|
|
664
664
|
u = { error: g };
|
|
665
665
|
} finally {
|
|
666
666
|
try {
|
|
667
|
-
y && !y.done && (p =
|
|
667
|
+
y && !y.done && (p = _.return) && p.call(_);
|
|
668
668
|
} finally {
|
|
669
669
|
if (u)
|
|
670
670
|
throw u.error;
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
return
|
|
674
|
+
return de(l, s);
|
|
675
675
|
} };
|
|
676
676
|
return o;
|
|
677
677
|
}
|
|
678
|
-
const
|
|
678
|
+
const Mt = Wt({
|
|
679
679
|
id: "sort",
|
|
680
|
-
initial:
|
|
680
|
+
initial: N,
|
|
681
681
|
states: {
|
|
682
|
-
[
|
|
682
|
+
[N]: {
|
|
683
683
|
on: {
|
|
684
684
|
DIRECTION1: z,
|
|
685
|
-
DIRECTION2:
|
|
685
|
+
DIRECTION2: D
|
|
686
686
|
}
|
|
687
687
|
},
|
|
688
688
|
[z]: {
|
|
689
689
|
on: {
|
|
690
|
-
DIRECTION1:
|
|
691
|
-
DIRECTION2:
|
|
690
|
+
DIRECTION1: D,
|
|
691
|
+
DIRECTION2: N
|
|
692
692
|
}
|
|
693
693
|
},
|
|
694
|
-
[
|
|
694
|
+
[D]: {
|
|
695
695
|
on: {
|
|
696
|
-
DIRECTION1:
|
|
696
|
+
DIRECTION1: N,
|
|
697
697
|
DIRECTION2: z
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
|
-
}),
|
|
702
|
-
const r = t ===
|
|
703
|
-
return
|
|
701
|
+
}), zt = (e, t) => {
|
|
702
|
+
const r = t === D ? "DIRECTION2" : "DIRECTION1";
|
|
703
|
+
return Mt.transition(e, r).value;
|
|
704
704
|
};
|
|
705
|
-
function
|
|
706
|
-
const { sortTarget: t = null, orders: r = [] } = e, n =
|
|
705
|
+
function ir(e = {}) {
|
|
706
|
+
const { sortTarget: t = null, orders: r = [] } = e, n = ye({ sortTarget: t, orders: r });
|
|
707
707
|
return {
|
|
708
708
|
sort: n,
|
|
709
709
|
change: ({ target: o, orders: c }) => {
|
|
@@ -713,30 +713,51 @@ function or(e = {}) {
|
|
|
713
713
|
}
|
|
714
714
|
const i = c.map((u, p) => ({
|
|
715
715
|
...u,
|
|
716
|
-
direction:
|
|
716
|
+
direction: zt(n.orders[p].direction, u.direction)
|
|
717
717
|
}));
|
|
718
718
|
n.sortTarget = o, n.orders = i;
|
|
719
719
|
}
|
|
720
720
|
};
|
|
721
721
|
}
|
|
722
|
+
function sr(e, t, r) {
|
|
723
|
+
const n = w(""), a = w(!1);
|
|
724
|
+
return st(e, (c) => {
|
|
725
|
+
const i = Xe(re(t), c), u = i.length > 0;
|
|
726
|
+
if (a.value = u, !u)
|
|
727
|
+
return n.value = "";
|
|
728
|
+
const d = i.map((l) => ({
|
|
729
|
+
team: l.team.longName,
|
|
730
|
+
points: re(t, l)
|
|
731
|
+
})).map((l) => r(`additionalText.${t}.content`, l)).join(", ");
|
|
732
|
+
n.value = [
|
|
733
|
+
r(`additionalText.${t}.prependix`),
|
|
734
|
+
d,
|
|
735
|
+
...r(`additionalText.${t}.appendix`) && [r(`additionalText.${t}.appendix`)]
|
|
736
|
+
].join(" ");
|
|
737
|
+
}), {
|
|
738
|
+
text: n,
|
|
739
|
+
isVisible: a
|
|
740
|
+
};
|
|
741
|
+
}
|
|
722
742
|
export {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
743
|
+
nr as a,
|
|
744
|
+
or as b,
|
|
745
|
+
tr as c,
|
|
746
|
+
Dt as d,
|
|
747
|
+
er as e,
|
|
748
|
+
Ht as f,
|
|
749
|
+
ir as g,
|
|
750
|
+
sr as h,
|
|
751
|
+
rr as i,
|
|
752
|
+
Zt as j,
|
|
753
|
+
st as k,
|
|
754
|
+
bt as l,
|
|
755
|
+
Qt as m,
|
|
736
756
|
B as n,
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
757
|
+
Jt as o,
|
|
758
|
+
Xt as p,
|
|
759
|
+
$ as q,
|
|
760
|
+
ar as u,
|
|
761
|
+
Vt as v,
|
|
762
|
+
Yt as w
|
|
742
763
|
};
|