@mjsz-vbr-elements/core 2.2.7 → 2.3.0
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/AdditionalStandingsText-B3vGuQ_r.js +3026 -0
- package/dist/columns.js +1 -1
- package/dist/components.js +17 -23
- package/dist/composables.js +4 -4
- package/dist/constants.js +1 -1
- package/dist/{convert-E2kZRWM3.js → convert-W8NizgmI.js} +87 -89
- package/dist/datetime-BD_lSSC2.js +1230 -0
- 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/useAdditionalText-Ta-GUW7T.js +738 -0
- package/dist/utils.js +4 -4
- package/package.json +11 -11
- package/dist/AdditionalStandingsText-KDfNU6wm.js +0 -2539
- package/dist/datetime--bMmvxSM.js +0 -1143
- package/dist/useAdditionalText-EldMke4U.js +0 -763
|
@@ -0,0 +1,738 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* name: @mjsz-vbr-elements/core
|
|
3
|
+
* version: v2.3.0 - 25/02/2024, 14:04:34
|
|
4
|
+
* (c) 2024
|
|
5
|
+
* description: Data visualization for MJSZ VBR
|
|
6
|
+
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
|
+
*/
|
|
8
|
+
import { ref as E, readonly as ut, watch as _, nextTick as St, getCurrentScope as _t, onScopeDispose as xt, unref as I, isRef as Pt, shallowRef as nt, computed as C, reactive as lt, defineComponent as Rt, h as Ct, provide as ft, inject as dt, onErrorCaptured as Lt } from "vue";
|
|
9
|
+
import { _ as $, j as jt, k as Nt, l as Dt, m as kt, n as Ft, p as Bt, q as D, s as k, r as Ut, t as Vt, u as Wt, v as Mt, w as rt } from "./datetime-BD_lSSC2.js";
|
|
10
|
+
import { SORT_STATE_ORIGINAL as U, SORT_STATE_DESCEND as K, SORT_STATE_ASCEND as W } from "./constants.js";
|
|
11
|
+
var $t = { 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 Ae = (t) => ($t.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + t;
|
|
13
|
+
function pt(t) {
|
|
14
|
+
return _t() ? (xt(t), !0) : !1;
|
|
15
|
+
}
|
|
16
|
+
function O(t) {
|
|
17
|
+
return typeof t == "function" ? t() : I(t);
|
|
18
|
+
}
|
|
19
|
+
const q = typeof window < "u" && typeof document < "u";
|
|
20
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
21
|
+
const zt = Object.prototype.toString, qt = (t) => zt.call(t) === "[object Object]", R = () => {
|
|
22
|
+
}, Gt = /* @__PURE__ */ Kt();
|
|
23
|
+
function Kt() {
|
|
24
|
+
var t, e;
|
|
25
|
+
return q && ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
26
|
+
}
|
|
27
|
+
function Ht(t, e) {
|
|
28
|
+
function r(...n) {
|
|
29
|
+
return new Promise((i, o) => {
|
|
30
|
+
Promise.resolve(t(() => e.apply(this, n), { fn: e, thisArg: this, args: n })).then(i).catch(o);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return r;
|
|
34
|
+
}
|
|
35
|
+
const mt = (t) => t();
|
|
36
|
+
function Xt(t = mt) {
|
|
37
|
+
const e = E(!0);
|
|
38
|
+
function r() {
|
|
39
|
+
e.value = !1;
|
|
40
|
+
}
|
|
41
|
+
function n() {
|
|
42
|
+
e.value = !0;
|
|
43
|
+
}
|
|
44
|
+
const i = (...o) => {
|
|
45
|
+
e.value && t(...o);
|
|
46
|
+
};
|
|
47
|
+
return { isActive: ut(e), pause: r, resume: n, eventFilter: i };
|
|
48
|
+
}
|
|
49
|
+
function X(t, e = !1, r = "Timeout") {
|
|
50
|
+
return new Promise((n, i) => {
|
|
51
|
+
setTimeout(e ? () => i(r) : n, t);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function Yt(t, e, r = {}) {
|
|
55
|
+
const {
|
|
56
|
+
eventFilter: n = mt,
|
|
57
|
+
...i
|
|
58
|
+
} = r;
|
|
59
|
+
return _(
|
|
60
|
+
t,
|
|
61
|
+
Ht(
|
|
62
|
+
n,
|
|
63
|
+
e
|
|
64
|
+
),
|
|
65
|
+
i
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
function Ie(t, e, r = {}) {
|
|
69
|
+
const {
|
|
70
|
+
eventFilter: n,
|
|
71
|
+
...i
|
|
72
|
+
} = r, { eventFilter: o, pause: c, resume: s, isActive: u } = Xt(n);
|
|
73
|
+
return { stop: Yt(
|
|
74
|
+
t,
|
|
75
|
+
e,
|
|
76
|
+
{
|
|
77
|
+
...i,
|
|
78
|
+
eventFilter: o
|
|
79
|
+
}
|
|
80
|
+
), pause: c, resume: s, isActive: u };
|
|
81
|
+
}
|
|
82
|
+
function Y(t, e = !1) {
|
|
83
|
+
function r(l, { flush: a = "sync", deep: f = !1, timeout: d, throwOnTimeout: T } = {}) {
|
|
84
|
+
let w = null;
|
|
85
|
+
const b = [new Promise((A) => {
|
|
86
|
+
w = _(
|
|
87
|
+
t,
|
|
88
|
+
(v) => {
|
|
89
|
+
l(v) !== e && (w == null || w(), A(v));
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
flush: a,
|
|
93
|
+
deep: f,
|
|
94
|
+
immediate: !0
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
})];
|
|
98
|
+
return d != null && b.push(
|
|
99
|
+
X(d, T).then(() => O(t)).finally(() => w == null ? void 0 : w())
|
|
100
|
+
), Promise.race(b);
|
|
101
|
+
}
|
|
102
|
+
function n(l, a) {
|
|
103
|
+
if (!Pt(l))
|
|
104
|
+
return r((v) => v === l, a);
|
|
105
|
+
const { flush: f = "sync", deep: d = !1, timeout: T, throwOnTimeout: w } = a ?? {};
|
|
106
|
+
let y = null;
|
|
107
|
+
const A = [new Promise((v) => {
|
|
108
|
+
y = _(
|
|
109
|
+
[t, l],
|
|
110
|
+
([L, F]) => {
|
|
111
|
+
e !== (L === F) && (y == null || y(), v(L));
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
flush: f,
|
|
115
|
+
deep: d,
|
|
116
|
+
immediate: !0
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
})];
|
|
120
|
+
return T != null && A.push(
|
|
121
|
+
X(T, w).then(() => O(t)).finally(() => (y == null || y(), O(t)))
|
|
122
|
+
), Promise.race(A);
|
|
123
|
+
}
|
|
124
|
+
function i(l) {
|
|
125
|
+
return r((a) => !!a, l);
|
|
126
|
+
}
|
|
127
|
+
function o(l) {
|
|
128
|
+
return n(null, l);
|
|
129
|
+
}
|
|
130
|
+
function c(l) {
|
|
131
|
+
return n(void 0, l);
|
|
132
|
+
}
|
|
133
|
+
function s(l) {
|
|
134
|
+
return r(Number.isNaN, l);
|
|
135
|
+
}
|
|
136
|
+
function u(l, a) {
|
|
137
|
+
return r((f) => {
|
|
138
|
+
const d = Array.from(f);
|
|
139
|
+
return d.includes(l) || d.includes(O(l));
|
|
140
|
+
}, a);
|
|
141
|
+
}
|
|
142
|
+
function p(l) {
|
|
143
|
+
return m(1, l);
|
|
144
|
+
}
|
|
145
|
+
function m(l = 1, a) {
|
|
146
|
+
let f = -1;
|
|
147
|
+
return r(() => (f += 1, f >= l), a);
|
|
148
|
+
}
|
|
149
|
+
return Array.isArray(O(t)) ? {
|
|
150
|
+
toMatch: r,
|
|
151
|
+
toContains: u,
|
|
152
|
+
changed: p,
|
|
153
|
+
changedTimes: m,
|
|
154
|
+
get not() {
|
|
155
|
+
return Y(t, !e);
|
|
156
|
+
}
|
|
157
|
+
} : {
|
|
158
|
+
toMatch: r,
|
|
159
|
+
toBe: n,
|
|
160
|
+
toBeTruthy: i,
|
|
161
|
+
toBeNull: o,
|
|
162
|
+
toBeNaN: s,
|
|
163
|
+
toBeUndefined: c,
|
|
164
|
+
changed: p,
|
|
165
|
+
changedTimes: m,
|
|
166
|
+
get not() {
|
|
167
|
+
return Y(t, !e);
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
function Jt(t) {
|
|
172
|
+
return Y(t);
|
|
173
|
+
}
|
|
174
|
+
function Qt(t, e, r = {}) {
|
|
175
|
+
const {
|
|
176
|
+
immediate: n = !0
|
|
177
|
+
} = r, i = E(!1);
|
|
178
|
+
let o = null;
|
|
179
|
+
function c() {
|
|
180
|
+
o && (clearTimeout(o), o = null);
|
|
181
|
+
}
|
|
182
|
+
function s() {
|
|
183
|
+
i.value = !1, c();
|
|
184
|
+
}
|
|
185
|
+
function u(...p) {
|
|
186
|
+
c(), i.value = !0, o = setTimeout(() => {
|
|
187
|
+
i.value = !1, o = null, t(...p);
|
|
188
|
+
}, O(e));
|
|
189
|
+
}
|
|
190
|
+
return n && (i.value = !0, q && u()), pt(s), {
|
|
191
|
+
isPending: ut(i),
|
|
192
|
+
start: u,
|
|
193
|
+
stop: s
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
function Zt(t, e, r) {
|
|
197
|
+
const n = _(t, (...i) => (St(() => n()), e(...i)), r);
|
|
198
|
+
return n;
|
|
199
|
+
}
|
|
200
|
+
function Oe(t, e, r) {
|
|
201
|
+
return _(
|
|
202
|
+
t,
|
|
203
|
+
(n, i, o) => {
|
|
204
|
+
n && e(n, i, o);
|
|
205
|
+
},
|
|
206
|
+
r
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
function N(t) {
|
|
210
|
+
var e;
|
|
211
|
+
const r = O(t);
|
|
212
|
+
return (e = r == null ? void 0 : r.$el) != null ? e : r;
|
|
213
|
+
}
|
|
214
|
+
const vt = q ? window : void 0, te = q ? window.document : void 0;
|
|
215
|
+
function M(...t) {
|
|
216
|
+
let e, r, n, i;
|
|
217
|
+
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([r, n, i] = t, e = vt) : [e, r, n, i] = t, !e)
|
|
218
|
+
return R;
|
|
219
|
+
Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
|
|
220
|
+
const o = [], c = () => {
|
|
221
|
+
o.forEach((m) => m()), o.length = 0;
|
|
222
|
+
}, s = (m, l, a, f) => (m.addEventListener(l, a, f), () => m.removeEventListener(l, a, f)), u = _(
|
|
223
|
+
() => [N(e), O(i)],
|
|
224
|
+
([m, l]) => {
|
|
225
|
+
if (c(), !m)
|
|
226
|
+
return;
|
|
227
|
+
const a = qt(l) ? { ...l } : l;
|
|
228
|
+
o.push(
|
|
229
|
+
...r.flatMap((f) => n.map((d) => s(m, f, d, a)))
|
|
230
|
+
);
|
|
231
|
+
},
|
|
232
|
+
{ immediate: !0, flush: "post" }
|
|
233
|
+
), p = () => {
|
|
234
|
+
u(), c();
|
|
235
|
+
};
|
|
236
|
+
return pt(p), p;
|
|
237
|
+
}
|
|
238
|
+
let ot = !1;
|
|
239
|
+
function Se(t, e, r = {}) {
|
|
240
|
+
const { window: n = vt, ignore: i = [], capture: o = !0, detectIframe: c = !1 } = r;
|
|
241
|
+
if (!n)
|
|
242
|
+
return R;
|
|
243
|
+
Gt && !ot && (ot = !0, Array.from(n.document.body.children).forEach((a) => a.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
|
|
244
|
+
let s = !0;
|
|
245
|
+
const u = (a) => i.some((f) => {
|
|
246
|
+
if (typeof f == "string")
|
|
247
|
+
return Array.from(n.document.querySelectorAll(f)).some((d) => d === a.target || a.composedPath().includes(d));
|
|
248
|
+
{
|
|
249
|
+
const d = N(f);
|
|
250
|
+
return d && (a.target === d || a.composedPath().includes(d));
|
|
251
|
+
}
|
|
252
|
+
}), m = [
|
|
253
|
+
M(n, "click", (a) => {
|
|
254
|
+
const f = N(t);
|
|
255
|
+
if (!(!f || f === a.target || a.composedPath().includes(f))) {
|
|
256
|
+
if (a.detail === 0 && (s = !u(a)), !s) {
|
|
257
|
+
s = !0;
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
e(a);
|
|
261
|
+
}
|
|
262
|
+
}, { passive: !0, capture: o }),
|
|
263
|
+
M(n, "pointerdown", (a) => {
|
|
264
|
+
const f = N(t);
|
|
265
|
+
s = !u(a) && !!(f && !a.composedPath().includes(f));
|
|
266
|
+
}, { passive: !0 }),
|
|
267
|
+
c && M(n, "blur", (a) => {
|
|
268
|
+
setTimeout(() => {
|
|
269
|
+
var f;
|
|
270
|
+
const d = N(t);
|
|
271
|
+
((f = n.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(d != null && d.contains(n.document.activeElement)) && e(a);
|
|
272
|
+
}, 0);
|
|
273
|
+
})
|
|
274
|
+
].filter(Boolean);
|
|
275
|
+
return () => m.forEach((a) => a());
|
|
276
|
+
}
|
|
277
|
+
function ee(t, e, r) {
|
|
278
|
+
const {
|
|
279
|
+
immediate: n = !0,
|
|
280
|
+
delay: i = 0,
|
|
281
|
+
onError: o = R,
|
|
282
|
+
onSuccess: c = R,
|
|
283
|
+
resetOnExecute: s = !0,
|
|
284
|
+
shallow: u = !0,
|
|
285
|
+
throwError: p
|
|
286
|
+
} = r ?? {}, m = u ? nt(e) : E(e), l = E(!1), a = E(!1), f = nt(void 0);
|
|
287
|
+
async function d(y = 0, ...b) {
|
|
288
|
+
s && (m.value = e), f.value = void 0, l.value = !1, a.value = !0, y > 0 && await X(y);
|
|
289
|
+
const A = typeof t == "function" ? t(...b) : t;
|
|
290
|
+
try {
|
|
291
|
+
const v = await A;
|
|
292
|
+
m.value = v, l.value = !0, c(v);
|
|
293
|
+
} catch (v) {
|
|
294
|
+
if (f.value = v, o(v), p)
|
|
295
|
+
throw v;
|
|
296
|
+
} finally {
|
|
297
|
+
a.value = !1;
|
|
298
|
+
}
|
|
299
|
+
return m.value;
|
|
300
|
+
}
|
|
301
|
+
n && d(i);
|
|
302
|
+
const T = {
|
|
303
|
+
state: m,
|
|
304
|
+
isReady: l,
|
|
305
|
+
isLoading: a,
|
|
306
|
+
error: f,
|
|
307
|
+
execute: d
|
|
308
|
+
};
|
|
309
|
+
function w() {
|
|
310
|
+
return new Promise((y, b) => {
|
|
311
|
+
Jt(a).toBe(!1).then(() => y(T)).catch(b);
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
return {
|
|
315
|
+
...T,
|
|
316
|
+
then(y, b) {
|
|
317
|
+
return w().then(y, b);
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function _e(t = {}) {
|
|
322
|
+
const { document: e = te } = t;
|
|
323
|
+
if (!e)
|
|
324
|
+
return E("visible");
|
|
325
|
+
const r = E(e.visibilityState);
|
|
326
|
+
return M(e, "visibilitychange", () => {
|
|
327
|
+
r.value = e.visibilityState;
|
|
328
|
+
}), r;
|
|
329
|
+
}
|
|
330
|
+
async function ne(t) {
|
|
331
|
+
return new Promise((e, r) => {
|
|
332
|
+
const n = new Image(), { src: i, srcset: o, sizes: c, class: s, loading: u, crossorigin: p, referrerPolicy: m } = t;
|
|
333
|
+
n.src = i, o && (n.srcset = o), c && (n.sizes = c), s && (n.className = s), u && (n.loading = u), p && (n.crossOrigin = p), m && (n.referrerPolicy = m), n.onload = () => e(n), n.onerror = r;
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
function xe(t, e = {}) {
|
|
337
|
+
const r = ee(
|
|
338
|
+
() => ne(O(t)),
|
|
339
|
+
void 0,
|
|
340
|
+
{
|
|
341
|
+
resetOnExecute: !0,
|
|
342
|
+
...e
|
|
343
|
+
}
|
|
344
|
+
);
|
|
345
|
+
return _(
|
|
346
|
+
() => O(t),
|
|
347
|
+
() => r.execute(e.delay),
|
|
348
|
+
{ deep: !0 }
|
|
349
|
+
), r;
|
|
350
|
+
}
|
|
351
|
+
function Pe(t = [], e = {}) {
|
|
352
|
+
const { delay: r = 0 } = e, n = E(!1), i = C(() => {
|
|
353
|
+
const s = I(t);
|
|
354
|
+
return Array.isArray(s) ? s.map((u) => I(u)).some(Boolean) : s;
|
|
355
|
+
}), { start: o, stop: c } = Qt(() => {
|
|
356
|
+
n.value = !0;
|
|
357
|
+
}, r);
|
|
358
|
+
return _(
|
|
359
|
+
i,
|
|
360
|
+
(s) => {
|
|
361
|
+
if (s)
|
|
362
|
+
return o();
|
|
363
|
+
c(), n.value = !1;
|
|
364
|
+
},
|
|
365
|
+
{ immediate: !0, deep: !0 }
|
|
366
|
+
), n;
|
|
367
|
+
}
|
|
368
|
+
function re(t) {
|
|
369
|
+
var e = Object.prototype.toString.call(t);
|
|
370
|
+
return e === "[object Uint8ClampedArray]" || e === "[object Int8Array]" || e === "[object Uint8Array]" || e === "[object Int16Array]" || e === "[object Uint16Array]" || e === "[object Int32Array]" || e === "[object Uint32Array]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object BigInt64Array]" || e === "[object BigUint64Array]";
|
|
371
|
+
}
|
|
372
|
+
var oe = /* @__PURE__ */ $(function(e) {
|
|
373
|
+
return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : jt(e) ? [] : Nt(e) ? "" : Dt(e) ? {} : kt(e) ? /* @__PURE__ */ function() {
|
|
374
|
+
return arguments;
|
|
375
|
+
}() : re(e) ? e.constructor.from("") : void 0;
|
|
376
|
+
}), ie = /* @__PURE__ */ $(function(e) {
|
|
377
|
+
return e != null && Ft(e, oe(e));
|
|
378
|
+
}), ae = /* @__PURE__ */ Bt(function(e, r) {
|
|
379
|
+
for (var n = {}, i = {}, o = 0, c = e.length; o < c; )
|
|
380
|
+
i[e[o]] = 1, o += 1;
|
|
381
|
+
for (var s in r)
|
|
382
|
+
i.hasOwnProperty(s) || (n[s] = r[s]);
|
|
383
|
+
return n;
|
|
384
|
+
}), j = `
|
|
385
|
+
\v\f\r \u2028\u2029\uFEFF`, se = "", ce = typeof String.prototype.trim == "function", ue = !ce || /* @__PURE__ */ j.trim() || !/* @__PURE__ */ se.trim() ? /* @__PURE__ */ $(function(e) {
|
|
386
|
+
var r = new RegExp("^[" + j + "][" + j + "]*"), n = new RegExp("[" + j + "][" + j + "]*$");
|
|
387
|
+
return e.replace(r, "").replace(n, "");
|
|
388
|
+
}) : /* @__PURE__ */ $(function(e) {
|
|
389
|
+
return e.trim();
|
|
390
|
+
});
|
|
391
|
+
const z = ue, yt = Symbol("I18nContext"), g = lt({
|
|
392
|
+
messages: {},
|
|
393
|
+
locale: "",
|
|
394
|
+
fallbackLocale: ""
|
|
395
|
+
}), Re = ({ messages: t = {}, locale: e = "", fallbackLocale: r = "" }) => {
|
|
396
|
+
g.messages = t, g.locale = e, g.fallbackLocale = r;
|
|
397
|
+
const n = (u, p = {}) => {
|
|
398
|
+
const m = !ie(p), l = D(z, k(".", u));
|
|
399
|
+
return C(() => {
|
|
400
|
+
const f = ht(l);
|
|
401
|
+
return m ? de(f, p) : f;
|
|
402
|
+
}).value;
|
|
403
|
+
}, i = (u) => {
|
|
404
|
+
const p = D(z, k(".", u));
|
|
405
|
+
return !!J(g.locale, p, g.messages);
|
|
406
|
+
}, o = (u) => {
|
|
407
|
+
g.locale = u;
|
|
408
|
+
}, s = {
|
|
409
|
+
locale: C({
|
|
410
|
+
get() {
|
|
411
|
+
return g.locale;
|
|
412
|
+
},
|
|
413
|
+
set(u) {
|
|
414
|
+
g.locale = u;
|
|
415
|
+
}
|
|
416
|
+
}),
|
|
417
|
+
setLocale: o,
|
|
418
|
+
translate: n,
|
|
419
|
+
hasTranslation: i
|
|
420
|
+
};
|
|
421
|
+
return ft(yt, s), {
|
|
422
|
+
translate: n
|
|
423
|
+
};
|
|
424
|
+
}, le = (t) => {
|
|
425
|
+
t && (g.messages = t.messages, g.locale = t.locale, g.fallbackLocale = t.fallbackLocale);
|
|
426
|
+
const e = fe();
|
|
427
|
+
return {
|
|
428
|
+
locale: e.locale,
|
|
429
|
+
t: e.translate,
|
|
430
|
+
setLocale: e.setLocale,
|
|
431
|
+
hasTranslation: e.hasTranslation
|
|
432
|
+
};
|
|
433
|
+
}, fe = () => {
|
|
434
|
+
const t = dt(yt, null);
|
|
435
|
+
if (t === null)
|
|
436
|
+
throw new Error("Privider is missing a parent component.");
|
|
437
|
+
return t;
|
|
438
|
+
}, ht = (t = []) => {
|
|
439
|
+
let e = J(g.locale, t, g.messages);
|
|
440
|
+
return !e && g.fallbackLocale && (e = J(g.fallbackLocale, t, g.messages)), e || t.join(".");
|
|
441
|
+
};
|
|
442
|
+
function J(t, e, r) {
|
|
443
|
+
return Ut([t, ...e], r);
|
|
444
|
+
}
|
|
445
|
+
const de = function(t, e) {
|
|
446
|
+
return t.replace(/\{(\w+)\}/g, function(r, n) {
|
|
447
|
+
return e[n];
|
|
448
|
+
});
|
|
449
|
+
}, Ce = Rt({
|
|
450
|
+
props: {
|
|
451
|
+
tag: {
|
|
452
|
+
type: String,
|
|
453
|
+
default: "div"
|
|
454
|
+
},
|
|
455
|
+
path: {
|
|
456
|
+
type: String,
|
|
457
|
+
defult: ""
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
setup(t, { slots: e }) {
|
|
461
|
+
const r = D(z, k(".", t.path)), n = ht(r), i = k(/{|}/, n), o = Object.keys(e).map((c) => {
|
|
462
|
+
const s = i.indexOf(c);
|
|
463
|
+
return s > -1 && (i[s] = e[c]()[0]), i;
|
|
464
|
+
});
|
|
465
|
+
return () => Ct(t.tag, o);
|
|
466
|
+
}
|
|
467
|
+
}), gt = Symbol("ErrorProviderContext"), Le = () => {
|
|
468
|
+
const t = E(""), e = E({}), r = (o) => {
|
|
469
|
+
console.error({ error: o }), t.value = o.message || o.error.message, e.value = {
|
|
470
|
+
message: o.message,
|
|
471
|
+
key: o.key || Vt(o.message),
|
|
472
|
+
cause: o.cause
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
return ft(gt, {
|
|
476
|
+
onError: r,
|
|
477
|
+
reset: () => {
|
|
478
|
+
t.value = "", e.value = {};
|
|
479
|
+
}
|
|
480
|
+
}), window.onerror = (o) => {
|
|
481
|
+
console.error("WINDOW_ONERROR:", o);
|
|
482
|
+
}, Lt((o, c, s) => {
|
|
483
|
+
console.error("onErrorCaptured:", o, c, s);
|
|
484
|
+
}), {
|
|
485
|
+
hasError: C(() => t.value.length > 0),
|
|
486
|
+
message: t,
|
|
487
|
+
error: e,
|
|
488
|
+
onError: r
|
|
489
|
+
};
|
|
490
|
+
}, je = () => {
|
|
491
|
+
const t = pe();
|
|
492
|
+
return {
|
|
493
|
+
onError: t.onError,
|
|
494
|
+
reset: t.reset
|
|
495
|
+
};
|
|
496
|
+
}, pe = () => {
|
|
497
|
+
const t = dt(gt, null);
|
|
498
|
+
if (t === null)
|
|
499
|
+
throw new Error("Privider is missing a parent component.");
|
|
500
|
+
return t;
|
|
501
|
+
}, Ne = (t, e = "", r = {}) => {
|
|
502
|
+
const n = E(""), { t: i } = le(), o = C(() => {
|
|
503
|
+
if (I(e))
|
|
504
|
+
try {
|
|
505
|
+
const u = me(I(t), I(e));
|
|
506
|
+
return ae(u, I(t));
|
|
507
|
+
} catch (u) {
|
|
508
|
+
n.value = u;
|
|
509
|
+
}
|
|
510
|
+
return I(t);
|
|
511
|
+
}), c = (u) => ({
|
|
512
|
+
...u,
|
|
513
|
+
...u.label && { label: i(u.label ?? "", I(r)) },
|
|
514
|
+
...u.tooltip && { tooltip: i(u.tooltip ?? "") }
|
|
515
|
+
});
|
|
516
|
+
return {
|
|
517
|
+
columns: C(() => D(c, o.value)),
|
|
518
|
+
error: n
|
|
519
|
+
};
|
|
520
|
+
}, me = (t, e = "") => {
|
|
521
|
+
const r = D(z, k(",", e)), n = Wt(t);
|
|
522
|
+
if (r[0] === "")
|
|
523
|
+
return resolve([]);
|
|
524
|
+
const i = r.findIndex((o) => !n.includes(o));
|
|
525
|
+
if (i > -1)
|
|
526
|
+
throw r[i];
|
|
527
|
+
return r;
|
|
528
|
+
};
|
|
529
|
+
/*! *****************************************************************************
|
|
530
|
+
Copyright (c) Microsoft Corporation.
|
|
531
|
+
|
|
532
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
533
|
+
purpose with or without fee is hereby granted.
|
|
534
|
+
|
|
535
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
536
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
537
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
538
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
539
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
540
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
541
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
542
|
+
***************************************************************************** */
|
|
543
|
+
function H(t, e) {
|
|
544
|
+
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
545
|
+
if (!r)
|
|
546
|
+
return t;
|
|
547
|
+
var n, i, o = r.call(t), c = [];
|
|
548
|
+
try {
|
|
549
|
+
for (; (e === void 0 || e-- > 0) && !(n = o.next()).done; )
|
|
550
|
+
c.push(n.value);
|
|
551
|
+
} catch (s) {
|
|
552
|
+
i = { error: s };
|
|
553
|
+
} finally {
|
|
554
|
+
try {
|
|
555
|
+
n && !n.done && (r = o.return) && r.call(o);
|
|
556
|
+
} finally {
|
|
557
|
+
if (i)
|
|
558
|
+
throw i.error;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
return c;
|
|
562
|
+
}
|
|
563
|
+
var it;
|
|
564
|
+
(function(t) {
|
|
565
|
+
t[t.NotStarted = 0] = "NotStarted", t[t.Running = 1] = "Running", t[t.Stopped = 2] = "Stopped";
|
|
566
|
+
})(it || (it = {}));
|
|
567
|
+
var ve = { type: "xstate.init" };
|
|
568
|
+
function V(t) {
|
|
569
|
+
return t === void 0 ? [] : [].concat(t);
|
|
570
|
+
}
|
|
571
|
+
function at(t, e) {
|
|
572
|
+
return typeof (t = typeof t == "string" && e && e[t] ? e[t] : t) == "string" ? { type: t } : typeof t == "function" ? { type: t.name, exec: t } : t;
|
|
573
|
+
}
|
|
574
|
+
function Q(t) {
|
|
575
|
+
return function(e) {
|
|
576
|
+
return t === e;
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
function ye(t) {
|
|
580
|
+
return typeof t == "string" ? { type: t } : t;
|
|
581
|
+
}
|
|
582
|
+
function st(t, e) {
|
|
583
|
+
return { value: t, context: e, actions: [], changed: !1, matches: Q(t) };
|
|
584
|
+
}
|
|
585
|
+
function ct(t, e, r) {
|
|
586
|
+
var n = e, i = !1;
|
|
587
|
+
return [t.filter(function(o) {
|
|
588
|
+
if (o.type === "xstate.assign") {
|
|
589
|
+
i = !0;
|
|
590
|
+
var c = Object.assign({}, n);
|
|
591
|
+
return typeof o.assignment == "function" ? c = o.assignment(n, r) : Object.keys(o.assignment).forEach(function(s) {
|
|
592
|
+
c[s] = typeof o.assignment[s] == "function" ? o.assignment[s](n, r) : o.assignment[s];
|
|
593
|
+
}), n = c, !1;
|
|
594
|
+
}
|
|
595
|
+
return !0;
|
|
596
|
+
}), n, i];
|
|
597
|
+
}
|
|
598
|
+
function he(t, e) {
|
|
599
|
+
e === void 0 && (e = {});
|
|
600
|
+
var r = H(ct(V(t.states[t.initial].entry).map(function(c) {
|
|
601
|
+
return at(c, e.actions);
|
|
602
|
+
}), t.context, ve), 2), n = r[0], i = r[1], o = { config: t, _options: e, initialState: { value: t.initial, actions: n, context: i, matches: Q(t.initial) }, transition: function(c, s) {
|
|
603
|
+
var u, p, m = typeof c == "string" ? { value: c, context: t.context } : c, l = m.value, a = m.context, f = ye(s), d = t.states[l];
|
|
604
|
+
if (d.on) {
|
|
605
|
+
var T = V(d.on[f.type]);
|
|
606
|
+
"*" in d.on && T.push.apply(T, function(h, S, B) {
|
|
607
|
+
if (B || arguments.length === 2)
|
|
608
|
+
for (var x, P = 0, Ot = S.length; P < Ot; P++)
|
|
609
|
+
!x && P in S || (x || (x = Array.prototype.slice.call(S, 0, P)), x[P] = S[P]);
|
|
610
|
+
return h.concat(x || Array.prototype.slice.call(S));
|
|
611
|
+
}([], H(V(d.on["*"])), !1));
|
|
612
|
+
try {
|
|
613
|
+
for (var w = function(h) {
|
|
614
|
+
var S = typeof Symbol == "function" && Symbol.iterator, B = S && h[S], x = 0;
|
|
615
|
+
if (B)
|
|
616
|
+
return B.call(h);
|
|
617
|
+
if (h && typeof h.length == "number")
|
|
618
|
+
return { next: function() {
|
|
619
|
+
return h && x >= h.length && (h = void 0), { value: h && h[x++], done: !h };
|
|
620
|
+
} };
|
|
621
|
+
throw new TypeError(S ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
622
|
+
}(T), y = w.next(); !y.done; y = w.next()) {
|
|
623
|
+
var b = y.value;
|
|
624
|
+
if (b === void 0)
|
|
625
|
+
return st(l, a);
|
|
626
|
+
var A = typeof b == "string" ? { target: b } : b, v = A.target, L = A.actions, F = L === void 0 ? [] : L, Z = A.cond, wt = Z === void 0 ? function() {
|
|
627
|
+
return !0;
|
|
628
|
+
} : Z, bt = v === void 0, Et = v ?? l, Tt = t.states[Et];
|
|
629
|
+
if (wt(a, f)) {
|
|
630
|
+
var G = H(ct((bt ? V(F) : [].concat(d.exit, F, Tt.entry).filter(function(h) {
|
|
631
|
+
return h;
|
|
632
|
+
})).map(function(h) {
|
|
633
|
+
return at(h, o._options.actions);
|
|
634
|
+
}), a, f), 3), tt = G[0], At = G[1], It = G[2], et = v ?? l;
|
|
635
|
+
return { value: et, context: At, actions: tt, changed: v !== l || tt.length > 0 || It, matches: Q(et) };
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
} catch (h) {
|
|
639
|
+
u = { error: h };
|
|
640
|
+
} finally {
|
|
641
|
+
try {
|
|
642
|
+
y && !y.done && (p = w.return) && p.call(w);
|
|
643
|
+
} finally {
|
|
644
|
+
if (u)
|
|
645
|
+
throw u.error;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
return st(l, a);
|
|
650
|
+
} };
|
|
651
|
+
return o;
|
|
652
|
+
}
|
|
653
|
+
const ge = he({
|
|
654
|
+
id: "sort",
|
|
655
|
+
initial: U,
|
|
656
|
+
states: {
|
|
657
|
+
[U]: {
|
|
658
|
+
on: {
|
|
659
|
+
DIRECTION1: K,
|
|
660
|
+
DIRECTION2: W
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
[K]: {
|
|
664
|
+
on: {
|
|
665
|
+
DIRECTION1: W,
|
|
666
|
+
DIRECTION2: U
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
[W]: {
|
|
670
|
+
on: {
|
|
671
|
+
DIRECTION1: U,
|
|
672
|
+
DIRECTION2: K
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}), we = (t, e) => {
|
|
677
|
+
const r = e === W ? "DIRECTION2" : "DIRECTION1";
|
|
678
|
+
return ge.transition(t, r).value;
|
|
679
|
+
};
|
|
680
|
+
function De(t = {}) {
|
|
681
|
+
const { sortTarget: e = null, orders: r = [] } = t, n = lt({ sortTarget: e, orders: r });
|
|
682
|
+
return {
|
|
683
|
+
sort: n,
|
|
684
|
+
change: ({ target: o, orders: c }) => {
|
|
685
|
+
if (n.sortTarget !== o) {
|
|
686
|
+
n.sortTarget = o, n.orders = c;
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
const s = c.map((u, p) => ({
|
|
690
|
+
...u,
|
|
691
|
+
direction: we(n.orders[p].direction, u.direction)
|
|
692
|
+
}));
|
|
693
|
+
n.sortTarget = o, n.orders = s;
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
function ke(t, e, r, n) {
|
|
698
|
+
const i = E(""), o = E(!1), c = (s) => {
|
|
699
|
+
const u = Mt(rt(e), s), p = u.length > 0;
|
|
700
|
+
if (o.value = p, !p)
|
|
701
|
+
return i.value = "";
|
|
702
|
+
const l = u.map((a) => ({
|
|
703
|
+
team: a.team.longName,
|
|
704
|
+
points: Math.abs(rt(e, a))
|
|
705
|
+
})).map((a) => r(`additionalText.${e}.content`, a)).join(", ");
|
|
706
|
+
i.value = [
|
|
707
|
+
r(`additionalText.${e}.prependix`),
|
|
708
|
+
l,
|
|
709
|
+
...r(`additionalText.${e}.appendix`) && [r(`additionalText.${e}.appendix`)]
|
|
710
|
+
].join(" ");
|
|
711
|
+
};
|
|
712
|
+
return Zt(t, c), _(n, () => c(I(t))), {
|
|
713
|
+
text: i,
|
|
714
|
+
isVisible: o
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
export {
|
|
718
|
+
Le as a,
|
|
719
|
+
je as b,
|
|
720
|
+
Re as c,
|
|
721
|
+
le as d,
|
|
722
|
+
Pe as e,
|
|
723
|
+
Ae as f,
|
|
724
|
+
De as g,
|
|
725
|
+
ke as h,
|
|
726
|
+
Ce as i,
|
|
727
|
+
xe as j,
|
|
728
|
+
Zt as k,
|
|
729
|
+
ee as l,
|
|
730
|
+
_e as m,
|
|
731
|
+
R as n,
|
|
732
|
+
Se as o,
|
|
733
|
+
Ie as p,
|
|
734
|
+
N as q,
|
|
735
|
+
Ne as u,
|
|
736
|
+
me as v,
|
|
737
|
+
Oe as w
|
|
738
|
+
};
|