@mjsz-vbr-elements/liga 2.20.0 → 2.20.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/dist/index.iife.js +2 -2
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +546 -542
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/liga
|
|
3
|
-
* version: v2.20.
|
|
3
|
+
* version: v2.20.1 - 11/03/2025, 18:23:03
|
|
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 { getCurrentScope as
|
|
9
|
-
import { ResponsiveTable as ie, DataTable as ce, FloatingPanel as ha, Image as V, I18NProvider as
|
|
10
|
-
import { useError as
|
|
8
|
+
import { getCurrentScope as gr, onScopeDispose as pr, ref as K, isRef as Ie, watch as se, readonly as ba, nextTick as ma, toValue as $e, reactive as Z, computed as _, getCurrentInstance as ur, unref as n, renderSlot as xe, normalizeProps as ke, guardReactiveProps as _e, openBlock as c, createBlock as $, withCtx as k, createVNode as w, createElementVNode as d, normalizeClass as G, toDisplayString as b, createElementBlock as h, createCommentVNode as I, createTextVNode as W, setBlockTracking as Wt, Fragment as O, renderList as U, toRefs as va, toRef as br, withDirectives as mr, vModelText as vr, mergeProps as hr, toHandlers as fr, defineCustomElement as de } from "vue";
|
|
9
|
+
import { ResponsiveTable as ie, DataTable as ce, FloatingPanel as ha, Image as V, I18NProvider as ge, ErrorProvider as ze, ErrorNotice as Se, SeasonSelector as fa, Paginator as ya, LoadingIndicator as at, BaseSelect as re, TimezoneSelector as yr, AdditionalStandingsText as Yt, StatisticsTable as wr } from "@mjsz-vbr-elements/core/components";
|
|
10
|
+
import { useError as pe, useServices as D, useI18n as Q, useColumns as ee, usePage as wa, useSort as At, useLazyLoadingState as Lt, useScrollToGameDate as xr, useVisibilityChange as kr, fetchVBRData as Be } from "@mjsz-vbr-elements/core/composables";
|
|
11
11
|
import { WidgetError as xa, InvalidSeasonName as Ze, yearToNow as _r, rawConvert as rt, teamName as ot, convertTimesMinToMinSec as ka, sortGames as Ct, gameDateTime as _a, teamResultType as za, gameResult as Sa, teamOpponent as Ta, getLocalTimezone as it, offsetName as Et, externalGameLinkResolver as nt, flagResolver as Ia, playerName as lt, convert as Oe, externalPlayerLinkResolver as Ot, externalTeamLinkResolver as st, format as et, isBetween as zr, scrollToTop as Ht, convertPhaseName as Sr, convertTimesSecToMin as Tr, upperCase as Ir, localeSort as Jt } from "@mjsz-vbr-elements/core/utils";
|
|
12
12
|
import * as xt from "@mjsz-vbr-elements/core";
|
|
13
13
|
import { SORT_STATE_ASCEND as Ce, DEFAULT_PORTRAIT_IMAGE_URL as Pr, gameProps as Pa, REFRESH_DELAY as Xt, SORT_STATE_DESCEND as B, playerStatsProps as Nr, teamStatsProps as $r } from "@mjsz-vbr-elements/core";
|
|
@@ -33,7 +33,7 @@ const Gr = { report: "Report", video: "Video", season: "Season", section: "Secti
|
|
|
33
33
|
nationality: eo
|
|
34
34
|
};
|
|
35
35
|
function je(e) {
|
|
36
|
-
return
|
|
36
|
+
return gr() ? (pr(e), !0) : !1;
|
|
37
37
|
}
|
|
38
38
|
const Re = typeof window < "u" && typeof document < "u";
|
|
39
39
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -82,7 +82,7 @@ function lo(e, t, a = {}) {
|
|
|
82
82
|
const {
|
|
83
83
|
eventFilter: r,
|
|
84
84
|
...o
|
|
85
|
-
} = a, { eventFilter: i, pause: l, resume: s, isActive:
|
|
85
|
+
} = a, { eventFilter: i, pause: l, resume: s, isActive: g } = io(r);
|
|
86
86
|
return { stop: no(
|
|
87
87
|
e,
|
|
88
88
|
t,
|
|
@@ -90,7 +90,7 @@ function lo(e, t, a = {}) {
|
|
|
90
90
|
...o,
|
|
91
91
|
eventFilter: i
|
|
92
92
|
}
|
|
93
|
-
), pause: l, resume: s, isActive:
|
|
93
|
+
), pause: l, resume: s, isActive: g };
|
|
94
94
|
}
|
|
95
95
|
function so(e, t = 1e3, a = {}) {
|
|
96
96
|
const {
|
|
@@ -102,7 +102,7 @@ function so(e, t = 1e3, a = {}) {
|
|
|
102
102
|
function s() {
|
|
103
103
|
i && (clearInterval(i), i = null);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function g() {
|
|
106
106
|
l.value = !1, s();
|
|
107
107
|
}
|
|
108
108
|
function u() {
|
|
@@ -115,9 +115,9 @@ function so(e, t = 1e3, a = {}) {
|
|
|
115
115
|
});
|
|
116
116
|
je(v);
|
|
117
117
|
}
|
|
118
|
-
return je(
|
|
118
|
+
return je(g), {
|
|
119
119
|
isActive: l,
|
|
120
|
-
pause:
|
|
120
|
+
pause: g,
|
|
121
121
|
resume: u
|
|
122
122
|
};
|
|
123
123
|
}
|
|
@@ -132,14 +132,14 @@ function $a(e, t, a = {}) {
|
|
|
132
132
|
function s() {
|
|
133
133
|
o.value = !1, l();
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function g(...u) {
|
|
136
136
|
l(), o.value = !0, i = setTimeout(() => {
|
|
137
137
|
o.value = !1, i = null, e(...u);
|
|
138
138
|
}, $e(t));
|
|
139
139
|
}
|
|
140
|
-
return r && (o.value = !0, Re &&
|
|
140
|
+
return r && (o.value = !0, Re && g()), je(s), {
|
|
141
141
|
isPending: ba(o),
|
|
142
|
-
start:
|
|
142
|
+
start: g,
|
|
143
143
|
stop: s
|
|
144
144
|
};
|
|
145
145
|
}
|
|
@@ -153,7 +153,7 @@ function co(e, t, a) {
|
|
|
153
153
|
}
|
|
154
154
|
);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function go(e, t, a) {
|
|
157
157
|
const r = se(e, (...o) => (ma(() => r()), t(...o)), a);
|
|
158
158
|
return r;
|
|
159
159
|
}
|
|
@@ -166,28 +166,28 @@ function La(e) {
|
|
|
166
166
|
function ea(...e) {
|
|
167
167
|
const t = [], a = () => {
|
|
168
168
|
t.forEach((s) => s()), t.length = 0;
|
|
169
|
-
}, r = (s,
|
|
170
|
-
const s = kt($e(e[0])).filter((
|
|
171
|
-
return s.every((
|
|
169
|
+
}, r = (s, g, u, v) => (s.addEventListener(g, u, v), () => s.removeEventListener(g, u, v)), o = _(() => {
|
|
170
|
+
const s = kt($e(e[0])).filter((g) => g != null);
|
|
171
|
+
return s.every((g) => typeof g != "string") ? s : void 0;
|
|
172
172
|
}), i = co(
|
|
173
173
|
() => {
|
|
174
|
-
var s,
|
|
174
|
+
var s, g;
|
|
175
175
|
return [
|
|
176
|
-
(
|
|
176
|
+
(g = (s = o.value) == null ? void 0 : s.map((u) => La(u))) != null ? g : [Aa].filter((u) => u != null),
|
|
177
177
|
kt($e(o.value ? e[1] : e[0])),
|
|
178
178
|
kt(n(o.value ? e[2] : e[1])),
|
|
179
179
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
180
180
|
$e(o.value ? e[3] : e[2])
|
|
181
181
|
];
|
|
182
182
|
},
|
|
183
|
-
([s,
|
|
184
|
-
if (a(), !(s != null && s.length) || !(
|
|
183
|
+
([s, g, u, v]) => {
|
|
184
|
+
if (a(), !(s != null && s.length) || !(g != null && g.length) || !(u != null && u.length))
|
|
185
185
|
return;
|
|
186
|
-
const
|
|
186
|
+
const f = ro(v) ? { ...v } : v;
|
|
187
187
|
t.push(
|
|
188
188
|
...s.flatMap(
|
|
189
|
-
(m) =>
|
|
190
|
-
(
|
|
189
|
+
(m) => g.flatMap(
|
|
190
|
+
(p) => u.map((x) => r(m, p, x, f))
|
|
191
191
|
)
|
|
192
192
|
)
|
|
193
193
|
);
|
|
@@ -209,33 +209,33 @@ function te(e, t) {
|
|
|
209
209
|
fulfilled: "fulfilled",
|
|
210
210
|
pending: "pending",
|
|
211
211
|
rejected: "rejected"
|
|
212
|
-
}, s = Array.from(Array.from({ length: e.length }), () => ({ state: l.pending, data: null })),
|
|
212
|
+
}, s = Array.from(Array.from({ length: e.length }), () => ({ state: l.pending, data: null })), g = Z(s), u = K(-1);
|
|
213
213
|
if (!e || e.length === 0)
|
|
214
214
|
return o(), {
|
|
215
215
|
activeIndex: u,
|
|
216
|
-
result:
|
|
216
|
+
result: g
|
|
217
217
|
};
|
|
218
|
-
function v(
|
|
219
|
-
u.value++,
|
|
218
|
+
function v(f, m) {
|
|
219
|
+
u.value++, g[u.value].data = m, g[u.value].state = f;
|
|
220
220
|
}
|
|
221
|
-
return e.reduce((
|
|
221
|
+
return e.reduce((f, m) => f.then((p) => {
|
|
222
222
|
var x;
|
|
223
223
|
if (i != null && i.aborted) {
|
|
224
224
|
v(l.aborted, new Error("aborted"));
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
|
-
if (((x =
|
|
227
|
+
if (((x = g[u.value]) == null ? void 0 : x.state) === l.rejected && a) {
|
|
228
228
|
o();
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
|
-
const P = m(
|
|
232
|
-
return i ? Promise.race([P,
|
|
233
|
-
}).catch((
|
|
231
|
+
const P = m(p).then((A) => (v(l.fulfilled, A), u.value === e.length - 1 && o(), A));
|
|
232
|
+
return i ? Promise.race([P, po(i)]) : P;
|
|
233
|
+
}).catch((p) => i != null && i.aborted ? (v(l.aborted, p), p) : (v(l.rejected, p), r(), p)), Promise.resolve()), {
|
|
234
234
|
activeIndex: u,
|
|
235
|
-
result:
|
|
235
|
+
result: g
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function po(e) {
|
|
239
239
|
return new Promise((t, a) => {
|
|
240
240
|
const r = new Error("aborted");
|
|
241
241
|
e.aborted ? a(r) : e.addEventListener("abort", () => a(r), { once: !0 });
|
|
@@ -254,12 +254,12 @@ function bo(e, t, a = {}) {
|
|
|
254
254
|
function s() {
|
|
255
255
|
i.value || (i.value = !0, l());
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function g() {
|
|
258
258
|
i.value = !1;
|
|
259
259
|
}
|
|
260
|
-
return r && Re && s(), je(
|
|
260
|
+
return r && Re && s(), je(g), {
|
|
261
261
|
isActive: i,
|
|
262
|
-
pause:
|
|
262
|
+
pause: g,
|
|
263
263
|
resume: s
|
|
264
264
|
};
|
|
265
265
|
}
|
|
@@ -274,7 +274,7 @@ function Te(e = "history", t = {}) {
|
|
|
274
274
|
} = t;
|
|
275
275
|
if (!s)
|
|
276
276
|
return Z(a);
|
|
277
|
-
const
|
|
277
|
+
const g = Z({});
|
|
278
278
|
function u() {
|
|
279
279
|
if (e === "history")
|
|
280
280
|
return s.location.search || "";
|
|
@@ -293,30 +293,30 @@ function Te(e = "history", t = {}) {
|
|
|
293
293
|
const T = s.location.hash || "#", C = T.indexOf("?");
|
|
294
294
|
return C > 0 ? `${s.location.search || ""}${T.slice(0, C)}${S ? `?${S}` : ""}` : `${s.location.search || ""}${T}${S ? `?${S}` : ""}`;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function f() {
|
|
297
297
|
return new URLSearchParams(u());
|
|
298
298
|
}
|
|
299
299
|
function m(y) {
|
|
300
|
-
const S = new Set(Object.keys(
|
|
300
|
+
const S = new Set(Object.keys(g));
|
|
301
301
|
for (const T of y.keys()) {
|
|
302
302
|
const C = y.getAll(T);
|
|
303
|
-
|
|
303
|
+
g[T] = C.length > 1 ? C : y.get(T) || "", S.delete(T);
|
|
304
304
|
}
|
|
305
|
-
Array.from(S).forEach((T) => delete
|
|
305
|
+
Array.from(S).forEach((T) => delete g[T]);
|
|
306
306
|
}
|
|
307
|
-
const { pause:
|
|
308
|
-
|
|
307
|
+
const { pause: p, resume: x } = lo(
|
|
308
|
+
g,
|
|
309
309
|
() => {
|
|
310
310
|
const y = new URLSearchParams("");
|
|
311
|
-
Object.keys(
|
|
312
|
-
const T =
|
|
311
|
+
Object.keys(g).forEach((S) => {
|
|
312
|
+
const T = g[S];
|
|
313
313
|
Array.isArray(T) ? T.forEach((C) => y.append(S, C)) : r && T == null || o && !T ? y.delete(S) : y.set(S, T);
|
|
314
314
|
}), P(y, !1);
|
|
315
315
|
},
|
|
316
316
|
{ deep: !0 }
|
|
317
317
|
);
|
|
318
318
|
function P(y, S) {
|
|
319
|
-
|
|
319
|
+
p(), S && m(y), l === "replace" ? s.history.replaceState(
|
|
320
320
|
s.history.state,
|
|
321
321
|
s.document.title,
|
|
322
322
|
s.location.pathname + v(y)
|
|
@@ -327,29 +327,29 @@ function Te(e = "history", t = {}) {
|
|
|
327
327
|
), x();
|
|
328
328
|
}
|
|
329
329
|
function A() {
|
|
330
|
-
i && P(
|
|
330
|
+
i && P(f(), !0);
|
|
331
331
|
}
|
|
332
332
|
const z = { passive: !0 };
|
|
333
333
|
ea(s, "popstate", A, z), e !== "history" && ea(s, "hashchange", A, z);
|
|
334
|
-
const L =
|
|
335
|
-
return L.keys().next().value ? m(L) : Object.assign(
|
|
334
|
+
const L = f();
|
|
335
|
+
return L.keys().next().value ? m(L) : Object.assign(g, a), g;
|
|
336
336
|
}
|
|
337
337
|
function mo(e, t, a, r = {}) {
|
|
338
338
|
var o, i, l;
|
|
339
339
|
const {
|
|
340
340
|
clone: s = !1,
|
|
341
|
-
passive:
|
|
341
|
+
passive: g = !1,
|
|
342
342
|
eventName: u,
|
|
343
343
|
deep: v = !1,
|
|
344
|
-
defaultValue:
|
|
344
|
+
defaultValue: f,
|
|
345
345
|
shouldEmit: m
|
|
346
|
-
} = r,
|
|
346
|
+
} = r, p = ur(), x = a || (p == null ? void 0 : p.emit) || ((o = p == null ? void 0 : p.$emit) == null ? void 0 : o.bind(p)) || ((l = (i = p == null ? void 0 : p.proxy) == null ? void 0 : i.$emit) == null ? void 0 : l.bind(p == null ? void 0 : p.proxy));
|
|
347
347
|
let P = u;
|
|
348
348
|
t || (t = "modelValue"), P = P || `update:${t.toString()}`;
|
|
349
|
-
const A = (y) => s ? typeof s == "function" ? s(y) : uo(y) : y, z = () => to(e[t]) ? A(e[t]) :
|
|
349
|
+
const A = (y) => s ? typeof s == "function" ? s(y) : uo(y) : y, z = () => to(e[t]) ? A(e[t]) : f, L = (y) => {
|
|
350
350
|
m ? m(y) && x(P, y) : x(P, y);
|
|
351
351
|
};
|
|
352
|
-
if (
|
|
352
|
+
if (g) {
|
|
353
353
|
const y = z(), S = K(y);
|
|
354
354
|
let T = !1;
|
|
355
355
|
return se(
|
|
@@ -442,19 +442,19 @@ function ct(e, t) {
|
|
|
442
442
|
return t.apply(this, arguments);
|
|
443
443
|
};
|
|
444
444
|
case 7:
|
|
445
|
-
return function(a, r, o, i, l, s,
|
|
445
|
+
return function(a, r, o, i, l, s, g) {
|
|
446
446
|
return t.apply(this, arguments);
|
|
447
447
|
};
|
|
448
448
|
case 8:
|
|
449
|
-
return function(a, r, o, i, l, s,
|
|
449
|
+
return function(a, r, o, i, l, s, g, u) {
|
|
450
450
|
return t.apply(this, arguments);
|
|
451
451
|
};
|
|
452
452
|
case 9:
|
|
453
|
-
return function(a, r, o, i, l, s,
|
|
453
|
+
return function(a, r, o, i, l, s, g, u, v) {
|
|
454
454
|
return t.apply(this, arguments);
|
|
455
455
|
};
|
|
456
456
|
case 10:
|
|
457
|
-
return function(a, r, o, i, l, s,
|
|
457
|
+
return function(a, r, o, i, l, s, g, u, v, f) {
|
|
458
458
|
return t.apply(this, arguments);
|
|
459
459
|
};
|
|
460
460
|
default:
|
|
@@ -464,8 +464,8 @@ function ct(e, t) {
|
|
|
464
464
|
function jt(e, t, a) {
|
|
465
465
|
return function() {
|
|
466
466
|
for (var r = [], o = 0, i = e, l = 0, s = !1; l < t.length || o < arguments.length; ) {
|
|
467
|
-
var
|
|
468
|
-
l < t.length && (!R(t[l]) || o >= arguments.length) ?
|
|
467
|
+
var g;
|
|
468
|
+
l < t.length && (!R(t[l]) || o >= arguments.length) ? g = t[l] : (g = arguments[o], o += 1), r[l] = g, R(g) ? s = !0 : i -= 1, l += 1;
|
|
469
469
|
}
|
|
470
470
|
return !s && i <= 0 ? a.apply(this, r) : ct(Math.max(0, i), jt(e, r, a));
|
|
471
471
|
};
|
|
@@ -604,11 +604,11 @@ var aa = Object.prototype.toString, Oa = /* @__PURE__ */ function() {
|
|
|
604
604
|
});
|
|
605
605
|
function ia(e, t, a, r) {
|
|
606
606
|
var o = ta(e), i = ta(t);
|
|
607
|
-
function l(s,
|
|
608
|
-
return Ft(s,
|
|
607
|
+
function l(s, g) {
|
|
608
|
+
return Ft(s, g, a.slice(), r.slice());
|
|
609
609
|
}
|
|
610
|
-
return !Pt(function(s,
|
|
611
|
-
return !Pt(l,
|
|
610
|
+
return !Pt(function(s, g) {
|
|
611
|
+
return !Pt(l, g, s);
|
|
612
612
|
}, i, o);
|
|
613
613
|
}
|
|
614
614
|
function Ft(e, t, a, r) {
|
|
@@ -681,10 +681,10 @@ function Ft(e, t, a, r) {
|
|
|
681
681
|
var l = ye(e);
|
|
682
682
|
if (l.length !== ye(t).length)
|
|
683
683
|
return !1;
|
|
684
|
-
var s = a.concat([e]),
|
|
684
|
+
var s = a.concat([e]), g = r.concat([t]);
|
|
685
685
|
for (i = l.length - 1; i >= 0; ) {
|
|
686
686
|
var u = l[i];
|
|
687
|
-
if (!(X(u, t) && Ft(t[u], e[u], s,
|
|
687
|
+
if (!(X(u, t) && Ft(t[u], e[u], s, g)))
|
|
688
688
|
return !1;
|
|
689
689
|
i -= 1;
|
|
690
690
|
}
|
|
@@ -788,7 +788,7 @@ var Gt = /* @__PURE__ */ F(/* @__PURE__ */ Rt(["fantasy-land/filter", "filter"],
|
|
|
788
788
|
// else
|
|
789
789
|
Fa(e, t)
|
|
790
790
|
);
|
|
791
|
-
})),
|
|
791
|
+
})), gt = /* @__PURE__ */ F(function(t, a) {
|
|
792
792
|
return Gt(zo(t), a);
|
|
793
793
|
});
|
|
794
794
|
function Ma(e, t) {
|
|
@@ -804,7 +804,7 @@ function Ma(e, t) {
|
|
|
804
804
|
case "[object Arguments]":
|
|
805
805
|
return "(function() { return arguments; }(" + qe(a, e).join(", ") + "))";
|
|
806
806
|
case "[object Array]":
|
|
807
|
-
return "[" + qe(a, e).concat(r(e,
|
|
807
|
+
return "[" + qe(a, e).concat(r(e, gt(function(i) {
|
|
808
808
|
return /^\d+$/.test(i);
|
|
809
809
|
}, ye(e)))).join(", ") + "]";
|
|
810
810
|
case "[object Boolean]":
|
|
@@ -859,7 +859,7 @@ var Io = /* @__PURE__ */ M(function(t) {
|
|
|
859
859
|
return qe(t, a);
|
|
860
860
|
}
|
|
861
861
|
}));
|
|
862
|
-
const
|
|
862
|
+
const pt = Number.isInteger || function(t) {
|
|
863
863
|
return t << 0 === t;
|
|
864
864
|
};
|
|
865
865
|
function ut(e) {
|
|
@@ -871,7 +871,7 @@ function bt(e, t) {
|
|
|
871
871
|
}
|
|
872
872
|
var q = /* @__PURE__ */ F(function(t, a) {
|
|
873
873
|
if (a != null)
|
|
874
|
-
return
|
|
874
|
+
return pt(t) ? bt(t, a) : a[t];
|
|
875
875
|
}), $o = /* @__PURE__ */ M(function(t) {
|
|
876
876
|
return Ae(t) ? !0 : !t || typeof t != "object" || ut(t) ? !1 : t.length === 0 ? !0 : t.length > 0 ? t.hasOwnProperty(0) && t.hasOwnProperty(t.length - 1) : !1;
|
|
877
877
|
}), na = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
|
|
@@ -946,7 +946,7 @@ var Ro = /* @__PURE__ */ Y(function(e, t, a) {
|
|
|
946
946
|
return o < i ? -1 : o > i ? 1 : 0;
|
|
947
947
|
});
|
|
948
948
|
function Fo(e, t, a) {
|
|
949
|
-
if (
|
|
949
|
+
if (pt(e) && Ae(a)) {
|
|
950
950
|
var r = [].concat(a);
|
|
951
951
|
return r[e] = t, r;
|
|
952
952
|
}
|
|
@@ -962,7 +962,7 @@ var Go = /* @__PURE__ */ M(function(t) {
|
|
|
962
962
|
return a;
|
|
963
963
|
var o = t[0];
|
|
964
964
|
if (t.length > 1) {
|
|
965
|
-
var i = !Go(r) && X(o, r) && typeof r[o] == "object" ? r[o] :
|
|
965
|
+
var i = !Go(r) && X(o, r) && typeof r[o] == "object" ? r[o] : pt(t[1]) ? [] : {};
|
|
966
966
|
a = e(Array.prototype.slice.call(t, 1), a, i);
|
|
967
967
|
}
|
|
968
968
|
return Fo(o, a, r);
|
|
@@ -1106,8 +1106,8 @@ function Xo(e, t, a) {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
var qa = /* @__PURE__ */ jt(4, [], /* @__PURE__ */ Rt([], Xo, function(t, a, r, o) {
|
|
1108
1108
|
var i = Ka(function(l, s) {
|
|
1109
|
-
var
|
|
1110
|
-
return u && u["@@transducer/reduced"] ? ho(l) : (l[
|
|
1109
|
+
var g = r(s), u = t(X(g, l) ? l[g] : mt(a, !1), s);
|
|
1110
|
+
return u && u["@@transducer/reduced"] ? ho(l) : (l[g] = u, l);
|
|
1111
1111
|
});
|
|
1112
1112
|
return Da(i, {}, o);
|
|
1113
1113
|
})), Pe = /* @__PURE__ */ Y(function(t, a, r) {
|
|
@@ -1171,7 +1171,7 @@ function Ha(e, t) {
|
|
|
1171
1171
|
if (a == null)
|
|
1172
1172
|
return;
|
|
1173
1173
|
var o = e[r];
|
|
1174
|
-
|
|
1174
|
+
pt(o) ? a = bt(o, a) : a = a[o];
|
|
1175
1175
|
}
|
|
1176
1176
|
return a;
|
|
1177
1177
|
}
|
|
@@ -1187,7 +1187,7 @@ var si = /* @__PURE__ */ M(function(t) {
|
|
|
1187
1187
|
return o;
|
|
1188
1188
|
}), di = /* @__PURE__ */ F(function(t, a) {
|
|
1189
1189
|
return oi({}, a, t);
|
|
1190
|
-
}),
|
|
1190
|
+
}), gi = /* @__PURE__ */ Y(function(t, a, r) {
|
|
1191
1191
|
return ci(function(o, i, l) {
|
|
1192
1192
|
return t(i, l);
|
|
1193
1193
|
}, a, r);
|
|
@@ -1204,7 +1204,7 @@ var si = /* @__PURE__ */ M(function(t) {
|
|
|
1204
1204
|
return Ja(t(e));
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
|
-
},
|
|
1207
|
+
}, pi = /* @__PURE__ */ Y(function(t, a, r) {
|
|
1208
1208
|
return t(function(o) {
|
|
1209
1209
|
return Ja(a(o));
|
|
1210
1210
|
})(r).value;
|
|
@@ -1239,7 +1239,7 @@ function ht(e, t) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
function hi(e, t) {
|
|
1241
1241
|
const a = (r) => ["Rájátszás", "Újrajátszandó"].includes(r.phaseName);
|
|
1242
|
-
t.sections = ae(
|
|
1242
|
+
t.sections = ae(gt(a), Ge([0, "phases"]))(e), t.section = ae(q("phaseName"), fe)(t.sections);
|
|
1243
1243
|
}
|
|
1244
1244
|
function fi(e, t) {
|
|
1245
1245
|
t.sections = [...e], t.section || (t.section = ae(q("name"), Wa)(t.sections));
|
|
@@ -1539,7 +1539,7 @@ function xi(e, t) {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
const ki = (e) => rt(Va(e), ot, ka(["mip"]));
|
|
1541
1541
|
function _i(e, t) {
|
|
1542
|
-
return
|
|
1542
|
+
return gt(Xa(e, "championshipId"))(t);
|
|
1543
1543
|
}
|
|
1544
1544
|
function zi(e, t) {
|
|
1545
1545
|
return Gt(Xa(e, "championshipId"))(t);
|
|
@@ -1575,7 +1575,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1575
1575
|
gamesApi: Pi,
|
|
1576
1576
|
isGoalie: !1,
|
|
1577
1577
|
pane: We
|
|
1578
|
-
}), { onError: i } =
|
|
1578
|
+
}), { onError: i } = pe(), { state: l, isLoading: s } = D({
|
|
1579
1579
|
options: {
|
|
1580
1580
|
path: "/v2/player-data",
|
|
1581
1581
|
apiKey: t.apiKey,
|
|
@@ -1589,7 +1589,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1589
1589
|
C.toLowerCase() === "gk" && (o.seasonApi = Ii, o.gamesApi = Ni, o.isGoalie = !0), y();
|
|
1590
1590
|
}
|
|
1591
1591
|
}), {
|
|
1592
|
-
state:
|
|
1592
|
+
state: g,
|
|
1593
1593
|
isLoading: u,
|
|
1594
1594
|
execute: v
|
|
1595
1595
|
} = D({
|
|
@@ -1602,9 +1602,9 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1602
1602
|
transform: (T) => ki(T),
|
|
1603
1603
|
onError: i
|
|
1604
1604
|
}), {
|
|
1605
|
-
state:
|
|
1605
|
+
state: f,
|
|
1606
1606
|
isLoading: m,
|
|
1607
|
-
execute:
|
|
1607
|
+
execute: p
|
|
1608
1608
|
} = D({
|
|
1609
1609
|
options: {
|
|
1610
1610
|
path: _(() => o.gamesApi),
|
|
@@ -1615,9 +1615,9 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1615
1615
|
transform: (T) => Si(T, o, t.locale, a),
|
|
1616
1616
|
onError: i
|
|
1617
1617
|
}), x = _(
|
|
1618
|
-
() => _i(o.championshipId,
|
|
1618
|
+
() => _i(o.championshipId, g.value)
|
|
1619
1619
|
), P = _(
|
|
1620
|
-
() => zi(o.championshipId,
|
|
1620
|
+
() => zi(o.championshipId, g.value)
|
|
1621
1621
|
), A = _(
|
|
1622
1622
|
() => o.isGoalie ? oe(
|
|
1623
1623
|
["teamName", "gkd", "gpi", "mipMin", "mipPercent", "ga", "gaa", "sog", "svs", "svsPercent"],
|
|
@@ -1703,7 +1703,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1703
1703
|
)
|
|
1704
1704
|
);
|
|
1705
1705
|
function y() {
|
|
1706
|
-
te([v,
|
|
1706
|
+
te([v, p]);
|
|
1707
1707
|
}
|
|
1708
1708
|
function S(T) {
|
|
1709
1709
|
o.pane = T;
|
|
@@ -1714,7 +1714,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1714
1714
|
isPlayerSeasonsLoading: n(u),
|
|
1715
1715
|
isGamesLoading: n(m),
|
|
1716
1716
|
playerData: n(l),
|
|
1717
|
-
playerGames: n(
|
|
1717
|
+
playerGames: n(f),
|
|
1718
1718
|
playerSeasonStats: x.value,
|
|
1719
1719
|
currentSeasonStats: P.value,
|
|
1720
1720
|
gameColumns: L.value,
|
|
@@ -1763,7 +1763,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1763
1763
|
},
|
|
1764
1764
|
setup(e) {
|
|
1765
1765
|
const { t } = Q();
|
|
1766
|
-
return (a, r) => (
|
|
1766
|
+
return (a, r) => (c(), $(n(ie), null, {
|
|
1767
1767
|
default: k(() => [
|
|
1768
1768
|
w(n(ce), {
|
|
1769
1769
|
rows: e.rows,
|
|
@@ -1772,7 +1772,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1772
1772
|
"append-to": e.appendTo
|
|
1773
1773
|
}, {
|
|
1774
1774
|
"cell-resultType": k(({ row: o }) => [
|
|
1775
|
-
|
|
1775
|
+
d("span", {
|
|
1776
1776
|
class: G(["is-badge", [
|
|
1777
1777
|
{
|
|
1778
1778
|
"is-green": ["W", "OTW", "SOW"].includes(o.resultType),
|
|
@@ -1785,20 +1785,20 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1785
1785
|
"cell-teamName": k(({ row: o }) => {
|
|
1786
1786
|
var i, l;
|
|
1787
1787
|
return [
|
|
1788
|
-
|
|
1789
|
-
|
|
1788
|
+
d("span", Ai, b((i = o.team) == null ? void 0 : i.longName), 1),
|
|
1789
|
+
d("span", Li, b((l = o.team) == null ? void 0 : l.shortName), 1)
|
|
1790
1790
|
];
|
|
1791
1791
|
}),
|
|
1792
1792
|
"cell-gameResult": k(({ row: o }) => [
|
|
1793
|
-
o.gameStatus === 0 ? (
|
|
1793
|
+
o.gameStatus === 0 ? (c(), h("span", Ci, "-:-")) : (c(), h("a", {
|
|
1794
1794
|
key: 1,
|
|
1795
1795
|
href: e.gameResolver(o),
|
|
1796
1796
|
class: G({ "is-text-dark": o.gameStatus !== 1, "is-text-accent": o.gameStatus === 1 })
|
|
1797
1797
|
}, b(o.gameResult), 11, Ei))
|
|
1798
1798
|
]),
|
|
1799
1799
|
"cell-gameResultType": k(({ row: o }) => [
|
|
1800
|
-
o.isOvertime ? (
|
|
1801
|
-
o.isShootout ? (
|
|
1800
|
+
o.isOvertime ? (c(), h("span", Oi, b(n(t)("common.overtimeShort")), 1)) : I("", !0),
|
|
1801
|
+
o.isShootout ? (c(), h("span", ji, b(n(t)("common.shootoutShort")), 1)) : I("", !0)
|
|
1802
1802
|
]),
|
|
1803
1803
|
"cell-powerplay": k(({ row: o }) => [
|
|
1804
1804
|
W(b(o.adv) + " / " + b(o.ppgf), 1)
|
|
@@ -1846,7 +1846,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1846
1846
|
null,
|
|
1847
1847
|
_(() => ({ offsetName: Et(/* @__PURE__ */ new Date(), null, "hu") }))
|
|
1848
1848
|
), r = (o) => nt(t.gameResolver, o);
|
|
1849
|
-
return (o, i) => (
|
|
1849
|
+
return (o, i) => (c(), $(er, {
|
|
1850
1850
|
rows: e.rows,
|
|
1851
1851
|
columns: n(a),
|
|
1852
1852
|
"is-loading": e.isLoading,
|
|
@@ -1873,23 +1873,23 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1873
1873
|
const { t } = Q();
|
|
1874
1874
|
return (a, r) => {
|
|
1875
1875
|
var o, i, l;
|
|
1876
|
-
return n(ii)(e.data) ? I("", !0) : (
|
|
1877
|
-
r[0] || (Wt(-1, !0), (r[0] =
|
|
1876
|
+
return n(ii)(e.data) ? I("", !0) : (c(), h("div", Fi, [
|
|
1877
|
+
r[0] || (Wt(-1, !0), (r[0] = d("h2", { class: "is-heading-2" }, [
|
|
1878
1878
|
W(b(e.data.name) + " ", 1),
|
|
1879
|
-
|
|
1879
|
+
d("span", Gi, "#" + b(e.data.jerseyNr), 1)
|
|
1880
1880
|
])).cacheIndex = 0, Wt(1), r[0]),
|
|
1881
|
-
|
|
1881
|
+
d("div", Mi, [
|
|
1882
1882
|
W(b(e.data.birthDate) + " (" + b(n(t)("players.age", { years: e.data.age })) + ") / ", 1),
|
|
1883
|
-
(
|
|
1883
|
+
(c(!0), h(O, null, U(e.data.player.nationality, (s) => (c(), $(n(ha), {
|
|
1884
1884
|
key: s,
|
|
1885
1885
|
placement: "top",
|
|
1886
1886
|
content: n(t)(`nationality.${s}`),
|
|
1887
1887
|
"append-to": e.appendTo
|
|
1888
1888
|
}, {
|
|
1889
|
-
default: k(({ setRef:
|
|
1890
|
-
|
|
1889
|
+
default: k(({ setRef: g, show: u, hide: v }) => [
|
|
1890
|
+
d("span", {
|
|
1891
1891
|
ref_for: !0,
|
|
1892
|
-
ref:
|
|
1892
|
+
ref: g,
|
|
1893
1893
|
class: "is-rounded",
|
|
1894
1894
|
onMouseenter: u,
|
|
1895
1895
|
onMouseleave: v,
|
|
@@ -1904,7 +1904,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1904
1904
|
_: 2
|
|
1905
1905
|
}, 1032, ["content", "append-to"]))), 128)),
|
|
1906
1906
|
W(" " + b(e.data.birthPlace) + " / " + b(e.data.position) + " / ", 1),
|
|
1907
|
-
(
|
|
1907
|
+
(c(), $(n(V), {
|
|
1908
1908
|
key: (o = e.data.team) == null ? void 0 : o.id,
|
|
1909
1909
|
class: "is-logo-image is-w-7",
|
|
1910
1910
|
src: (i = e.data.team) == null ? void 0 : i.logo
|
|
@@ -1936,7 +1936,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1936
1936
|
},
|
|
1937
1937
|
setup(e) {
|
|
1938
1938
|
const t = e, { columns: a } = ee(_(() => t.columns));
|
|
1939
|
-
return (r, o) => (
|
|
1939
|
+
return (r, o) => (c(), $(n(ie), null, {
|
|
1940
1940
|
default: k(() => [
|
|
1941
1941
|
w(n(ce), {
|
|
1942
1942
|
rows: e.rows,
|
|
@@ -1971,8 +1971,8 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1971
1971
|
const t = e, { columns: a } = ee(_(() => t.columns));
|
|
1972
1972
|
return (r, o) => {
|
|
1973
1973
|
var i;
|
|
1974
|
-
return
|
|
1975
|
-
|
|
1974
|
+
return c(), h(O, null, [
|
|
1975
|
+
d("h2", Bi, b(((i = e.rows[0]) == null ? void 0 : i.season) ?? ""), 1),
|
|
1976
1976
|
w(n(ie), null, {
|
|
1977
1977
|
default: k(() => [
|
|
1978
1978
|
w(n(ce), {
|
|
@@ -2025,15 +2025,15 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2025
2025
|
},
|
|
2026
2026
|
setup(e) {
|
|
2027
2027
|
const t = e, a = { en: ue, hu: be }, r = K(null);
|
|
2028
|
-
return (o, i) => (
|
|
2029
|
-
w(n(
|
|
2028
|
+
return (o, i) => (c(), h("div", Ji, [
|
|
2029
|
+
w(n(ge), {
|
|
2030
2030
|
locale: t.locale,
|
|
2031
2031
|
messages: a
|
|
2032
2032
|
}, {
|
|
2033
2033
|
default: k(({ t: l }) => [
|
|
2034
2034
|
w(n(ze), null, {
|
|
2035
|
-
default: k(({ error: s, hasError:
|
|
2036
|
-
|
|
2035
|
+
default: k(({ error: s, hasError: g }) => [
|
|
2036
|
+
g ? (c(), $(n(Se), {
|
|
2037
2037
|
key: 0,
|
|
2038
2038
|
error: s
|
|
2039
2039
|
}, null, 8, ["error"])) : I("", !0),
|
|
@@ -2046,9 +2046,9 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2046
2046
|
default: k(({
|
|
2047
2047
|
pane: u,
|
|
2048
2048
|
isGamesLoading: v,
|
|
2049
|
-
isPlayerSeasonsLoading:
|
|
2049
|
+
isPlayerSeasonsLoading: f,
|
|
2050
2050
|
playerData: m,
|
|
2051
|
-
playerGames:
|
|
2051
|
+
playerGames: p,
|
|
2052
2052
|
playerSeasonStats: x,
|
|
2053
2053
|
currentSeasonStats: P,
|
|
2054
2054
|
gameColumns: A,
|
|
@@ -2058,17 +2058,17 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2058
2058
|
}) => {
|
|
2059
2059
|
var S, T, C;
|
|
2060
2060
|
return [
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
(
|
|
2061
|
+
d("h1", Xi, b(m.name), 1),
|
|
2062
|
+
d("div", Qi, [
|
|
2063
|
+
d("div", Zi, [
|
|
2064
|
+
(c(), $(n(V), {
|
|
2065
2065
|
key: (S = m.player) == null ? void 0 : S.playerId,
|
|
2066
2066
|
src: m.playerAction,
|
|
2067
2067
|
"default-src": "https://www.ersteliga.hu/assets/images/logo_liga@2x.png"
|
|
2068
2068
|
}, null, 8, ["src"]))
|
|
2069
2069
|
]),
|
|
2070
|
-
|
|
2071
|
-
(
|
|
2070
|
+
d("div", en, [
|
|
2071
|
+
(c(), $(n(V), {
|
|
2072
2072
|
key: (T = m.player) == null ? void 0 : T.playerId,
|
|
2073
2073
|
src: (C = m == null ? void 0 : m.player) == null ? void 0 : C.picture
|
|
2074
2074
|
}, null, 8, ["src"]))
|
|
@@ -2081,36 +2081,36 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2081
2081
|
w(Vi, {
|
|
2082
2082
|
rows: P,
|
|
2083
2083
|
columns: L,
|
|
2084
|
-
"is-loading":
|
|
2084
|
+
"is-loading": f,
|
|
2085
2085
|
"append-to": r.value
|
|
2086
2086
|
}, null, 8, ["rows", "columns", "is-loading", "append-to"]),
|
|
2087
|
-
|
|
2088
|
-
|
|
2087
|
+
d("div", tn, [
|
|
2088
|
+
d("button", {
|
|
2089
2089
|
type: "button",
|
|
2090
2090
|
class: G(["tab-button", { "is-active": u === n(We) }]),
|
|
2091
2091
|
onClick: (H) => y(n(We))
|
|
2092
2092
|
}, b(l("players.games")), 11, an),
|
|
2093
|
-
|
|
2093
|
+
d("button", {
|
|
2094
2094
|
type: "button",
|
|
2095
2095
|
class: G(["tab-button", { "is-active": u === n(St) }]),
|
|
2096
2096
|
onClick: (H) => y(n(St))
|
|
2097
2097
|
}, b(l("players.seasons")), 11, rn)
|
|
2098
2098
|
]),
|
|
2099
|
-
u === n(We) ? (
|
|
2099
|
+
u === n(We) ? (c(), $(Ri, {
|
|
2100
2100
|
key: 0,
|
|
2101
|
-
rows:
|
|
2101
|
+
rows: p,
|
|
2102
2102
|
columns: A,
|
|
2103
2103
|
"is-loading": v,
|
|
2104
2104
|
"append-to": r.value,
|
|
2105
2105
|
"game-resolver": t.externalGameResolver
|
|
2106
2106
|
}, null, 8, ["rows", "columns", "is-loading", "append-to", "game-resolver"])) : I("", !0),
|
|
2107
|
-
u === n(St) ? (
|
|
2107
|
+
u === n(St) ? (c(), $(Ui, {
|
|
2108
2108
|
key: 1,
|
|
2109
2109
|
rows: x,
|
|
2110
2110
|
columns: z,
|
|
2111
2111
|
"append-to": r.value
|
|
2112
2112
|
}, null, 8, ["rows", "columns", "append-to"])) : I("", !0),
|
|
2113
|
-
|
|
2113
|
+
d("div", {
|
|
2114
2114
|
ref_key: "tooltipContainer",
|
|
2115
2115
|
ref: r
|
|
2116
2116
|
}, null, 512)
|
|
@@ -2126,7 +2126,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2126
2126
|
}, 8, ["locale"])
|
|
2127
2127
|
]));
|
|
2128
2128
|
}
|
|
2129
|
-
}, nn = /* @__PURE__ */ he(on, [["styles", [ve, Ke, Kt, tr, qi, ar, Wi, Yi, Hi]]]), ln = { class: "is-portrait-image" }, sn = ["href", "textContent"], cn = ["href", "textContent"], dn = { class: "g-row" },
|
|
2129
|
+
}, nn = /* @__PURE__ */ he(on, [["styles", [ve, Ke, Kt, tr, qi, ar, Wi, Yi, Hi]]]), ln = { class: "is-portrait-image" }, sn = ["href", "textContent"], cn = ["href", "textContent"], dn = { class: "g-row" }, gn = ["onMouseenter", "onMouseleave", "onFocus", "onBlur"], rr = {
|
|
2130
2130
|
__name: "PlayersDataTable",
|
|
2131
2131
|
props: {
|
|
2132
2132
|
columns: {
|
|
@@ -2165,7 +2165,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2165
2165
|
emits: ["sort"],
|
|
2166
2166
|
setup(e, { emit: t }) {
|
|
2167
2167
|
const a = e, r = t, { t: o } = Q(), { columns: i } = ee(a.columns), l = (s) => r("sort", s);
|
|
2168
|
-
return (s,
|
|
2168
|
+
return (s, g) => (c(), $(n(ie), null, {
|
|
2169
2169
|
default: k(() => [
|
|
2170
2170
|
w(n(ce), {
|
|
2171
2171
|
columns: n(i),
|
|
@@ -2176,8 +2176,8 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2176
2176
|
onSort: l
|
|
2177
2177
|
}, {
|
|
2178
2178
|
"cell-playerPortrait": k(({ row: u }) => [
|
|
2179
|
-
|
|
2180
|
-
(
|
|
2179
|
+
d("div", ln, [
|
|
2180
|
+
(c(), $(n(V), {
|
|
2181
2181
|
key: u.player.playerId,
|
|
2182
2182
|
src: u.player.picture,
|
|
2183
2183
|
"default-src": n(Pr)
|
|
@@ -2185,39 +2185,39 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2185
2185
|
])
|
|
2186
2186
|
]),
|
|
2187
2187
|
"cell-name": k(({ row: u }) => [
|
|
2188
|
-
|
|
2188
|
+
d("a", {
|
|
2189
2189
|
href: e.playerResolver({ ...u, championshipId: e.championshipId }),
|
|
2190
2190
|
textContent: b(u.name)
|
|
2191
2191
|
}, null, 8, sn)
|
|
2192
2192
|
]),
|
|
2193
2193
|
"cell-teamName": k(({ row: u }) => [
|
|
2194
|
-
|
|
2194
|
+
d("a", {
|
|
2195
2195
|
href: e.teamResolver({ ...u, championshipId: e.championshipId }),
|
|
2196
2196
|
textContent: b(u.teamName)
|
|
2197
2197
|
}, null, 8, cn)
|
|
2198
2198
|
]),
|
|
2199
2199
|
"cell-nationality": k(({ row: u }) => [
|
|
2200
|
-
|
|
2201
|
-
(
|
|
2200
|
+
d("div", dn, [
|
|
2201
|
+
(c(!0), h(O, null, U(u.nationalityCode, (v) => (c(), $(n(ha), {
|
|
2202
2202
|
key: v,
|
|
2203
2203
|
placement: "top",
|
|
2204
2204
|
content: n(o)(`nationality.${v}`),
|
|
2205
2205
|
"append-to": e.appendTo
|
|
2206
2206
|
}, {
|
|
2207
|
-
default: k(({ setRef:
|
|
2208
|
-
|
|
2207
|
+
default: k(({ setRef: f, show: m, hide: p }) => [
|
|
2208
|
+
d("div", {
|
|
2209
2209
|
ref_for: !0,
|
|
2210
|
-
ref:
|
|
2210
|
+
ref: f,
|
|
2211
2211
|
class: "is-rounded is-w-5",
|
|
2212
2212
|
onMouseenter: m,
|
|
2213
|
-
onMouseleave:
|
|
2213
|
+
onMouseleave: p,
|
|
2214
2214
|
onFocus: m,
|
|
2215
|
-
onBlur:
|
|
2215
|
+
onBlur: p
|
|
2216
2216
|
}, [
|
|
2217
2217
|
w(n(V), {
|
|
2218
2218
|
src: n(Ia)(v)
|
|
2219
2219
|
}, null, 8, ["src"])
|
|
2220
|
-
], 40,
|
|
2220
|
+
], 40, gn)
|
|
2221
2221
|
]),
|
|
2222
2222
|
_: 2
|
|
2223
2223
|
}, 1032, ["content", "append-to"]))), 128))
|
|
@@ -2235,7 +2235,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2235
2235
|
_: 1
|
|
2236
2236
|
}));
|
|
2237
2237
|
}
|
|
2238
|
-
},
|
|
2238
|
+
}, pn = (e) => ae(Me(q("name")), me(ae(lt, ot)))(e), un = {
|
|
2239
2239
|
__name: "DataProvider",
|
|
2240
2240
|
props: {
|
|
2241
2241
|
championshipName: {
|
|
@@ -2261,7 +2261,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2261
2261
|
seasons: [],
|
|
2262
2262
|
championshipId: Number(a.championshipId) || 0,
|
|
2263
2263
|
query: ""
|
|
2264
|
-
}), { onError: o } =
|
|
2264
|
+
}), { onError: o } = pe(), { page: i, change: l } = wa(), { sort: s, change: g } = At({
|
|
2265
2265
|
sortTarget: "",
|
|
2266
2266
|
orders: []
|
|
2267
2267
|
}), { isLoading: u, execute: v } = D({
|
|
@@ -2273,9 +2273,9 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2273
2273
|
transform: (y) => ht(y, r),
|
|
2274
2274
|
onError: o
|
|
2275
2275
|
}), {
|
|
2276
|
-
isLoading:
|
|
2276
|
+
isLoading: f,
|
|
2277
2277
|
state: m,
|
|
2278
|
-
execute:
|
|
2278
|
+
execute: p
|
|
2279
2279
|
} = D({
|
|
2280
2280
|
options: {
|
|
2281
2281
|
path: "/v2/championship-players",
|
|
@@ -2284,15 +2284,15 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2284
2284
|
championshipId: r.championshipId
|
|
2285
2285
|
}))
|
|
2286
2286
|
},
|
|
2287
|
-
transform: (y) =>
|
|
2287
|
+
transform: (y) => pn(y),
|
|
2288
2288
|
onError: o
|
|
2289
|
-
}), x = Lt([u,
|
|
2290
|
-
te([v,
|
|
2289
|
+
}), x = Lt([u, f], { delay: 1e3 });
|
|
2290
|
+
te([v, p]);
|
|
2291
2291
|
const P = _(
|
|
2292
2292
|
() => Oe(m.value).sorted(s).filter(r.query, [["name"]]).pagination(i.value, t.limit).value()
|
|
2293
2293
|
), A = _(() => [(i.value - 1) * t.limit + 1, Math.min(i.value * t.limit, P.value.totalItems)]);
|
|
2294
2294
|
function z(y) {
|
|
2295
|
-
l(1), r.championshipId = y, a.championshipId = y, r.query = "", a.query = null, te([
|
|
2295
|
+
l(1), r.championshipId = y, a.championshipId = y, r.query = "", a.query = null, te([p]);
|
|
2296
2296
|
}
|
|
2297
2297
|
function L(y) {
|
|
2298
2298
|
const { value: S } = y.target;
|
|
@@ -2305,7 +2305,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2305
2305
|
range: A.value,
|
|
2306
2306
|
isLoading: n(x),
|
|
2307
2307
|
players: P.value,
|
|
2308
|
-
onSort: n(
|
|
2308
|
+
onSort: n(g),
|
|
2309
2309
|
onInput: L,
|
|
2310
2310
|
changeSeason: z,
|
|
2311
2311
|
onPaginatorChange: n(l)
|
|
@@ -2344,15 +2344,15 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2344
2344
|
},
|
|
2345
2345
|
setup(e) {
|
|
2346
2346
|
const t = e, a = { en: ue, hu: be }, r = K(null), o = (l) => Ot(t.externalPlayerResolver, l), i = (l) => st(t.externalTeamResolver, l);
|
|
2347
|
-
return (l, s) => (
|
|
2348
|
-
w(n(
|
|
2347
|
+
return (l, s) => (c(), h("div", null, [
|
|
2348
|
+
w(n(ge), {
|
|
2349
2349
|
locale: t.locale,
|
|
2350
2350
|
messages: a
|
|
2351
2351
|
}, {
|
|
2352
|
-
default: k(({ t:
|
|
2352
|
+
default: k(({ t: g }) => [
|
|
2353
2353
|
w(n(ze), null, {
|
|
2354
2354
|
default: k(({ error: u, hasError: v }) => [
|
|
2355
|
-
v ? (
|
|
2355
|
+
v ? (c(), $(n(Se), {
|
|
2356
2356
|
key: 0,
|
|
2357
2357
|
error: u
|
|
2358
2358
|
}, null, 8, ["error"])) : I("", !0),
|
|
@@ -2363,9 +2363,9 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2363
2363
|
limit: e.limit
|
|
2364
2364
|
}, {
|
|
2365
2365
|
default: k(({
|
|
2366
|
-
range:
|
|
2366
|
+
range: f,
|
|
2367
2367
|
players: m,
|
|
2368
|
-
seasons:
|
|
2368
|
+
seasons: p,
|
|
2369
2369
|
isLoading: x,
|
|
2370
2370
|
championshipId: P,
|
|
2371
2371
|
page: A,
|
|
@@ -2377,15 +2377,15 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2377
2377
|
onInput: C
|
|
2378
2378
|
}) => [
|
|
2379
2379
|
w(n(fa), {
|
|
2380
|
-
seasons:
|
|
2380
|
+
seasons: p,
|
|
2381
2381
|
"championship-id": P,
|
|
2382
2382
|
"is-section-selection-disabled": "",
|
|
2383
2383
|
onOnChangeSeason: L
|
|
2384
2384
|
}, {
|
|
2385
2385
|
default: k(() => [
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2386
|
+
d("div", null, [
|
|
2387
|
+
d("label", mn, b(g("selection.filterName")), 1),
|
|
2388
|
+
d("input", {
|
|
2389
2389
|
id: "player",
|
|
2390
2390
|
type: "text",
|
|
2391
2391
|
class: "base-input",
|
|
@@ -2407,7 +2407,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2407
2407
|
"team-resolver": i,
|
|
2408
2408
|
onSort: S
|
|
2409
2409
|
}, null, 8, ["columns", "rows", "append-to", "sort", "is-loading", "championship-id", "onSort"]),
|
|
2410
|
-
|
|
2410
|
+
d("div", hn, [
|
|
2411
2411
|
w(n(ya), {
|
|
2412
2412
|
page: A,
|
|
2413
2413
|
"items-per-page": t.limit,
|
|
@@ -2415,9 +2415,9 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2415
2415
|
"range-length": 5,
|
|
2416
2416
|
onChange: T
|
|
2417
2417
|
}, null, 8, ["page", "items-per-page", "total-items", "onChange"]),
|
|
2418
|
-
m.totalItems > 0 ? (
|
|
2418
|
+
m.totalItems > 0 ? (c(), h("div", fn, b(f.join("-")) + " / " + b(m.totalItems), 1)) : I("", !0)
|
|
2419
2419
|
]),
|
|
2420
|
-
|
|
2420
|
+
d("div", {
|
|
2421
2421
|
ref_key: "tooltipContainer",
|
|
2422
2422
|
ref: r
|
|
2423
2423
|
}, null, 512)
|
|
@@ -2466,74 +2466,74 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2466
2466
|
});
|
|
2467
2467
|
o();
|
|
2468
2468
|
const i = it(), l = { en: ue, hu: be };
|
|
2469
|
-
function s(
|
|
2470
|
-
return nt(t.externalGameResolver || Dn,
|
|
2469
|
+
function s(f) {
|
|
2470
|
+
return nt(t.externalGameResolver || Dn, f);
|
|
2471
2471
|
}
|
|
2472
|
-
const
|
|
2473
|
-
return (
|
|
2474
|
-
w(n(
|
|
2472
|
+
const g = _(() => t.isGameTargetExternal ? "_blank" : "_self"), u = (f) => et(f, "L dddd", i, t.locale), v = (f) => et(f, "HH:mm", i, t.locale);
|
|
2473
|
+
return (f, m) => (c(), h("div", _n, [
|
|
2474
|
+
w(n(ge), {
|
|
2475
2475
|
locale: t.locale,
|
|
2476
2476
|
messages: l
|
|
2477
2477
|
}, {
|
|
2478
|
-
default: k(({ t:
|
|
2479
|
-
n(r) ? (
|
|
2480
|
-
(
|
|
2478
|
+
default: k(({ t: p }) => [
|
|
2479
|
+
n(r) ? (c(), $(n(at), { key: 0 })) : I("", !0),
|
|
2480
|
+
(c(!0), h(O, null, U(n(a), (x) => {
|
|
2481
2481
|
var P, A;
|
|
2482
|
-
return
|
|
2482
|
+
return c(), h("div", {
|
|
2483
2483
|
key: `${x.divisionStage2Name}-${x.divisionStageNumber}`
|
|
2484
2484
|
}, [
|
|
2485
|
-
|
|
2486
|
-
W(b(
|
|
2487
|
-
x.divisionStageNumber ? (
|
|
2485
|
+
d("div", zn, [
|
|
2486
|
+
W(b(p(`playoffs.${x.divisionStage2Name}`)), 1),
|
|
2487
|
+
x.divisionStageNumber ? (c(), h("span", Sn, "-" + b(x.divisionStageNumber), 1)) : I("", !0)
|
|
2488
2488
|
]),
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2489
|
+
d("div", Tn, [
|
|
2490
|
+
d("div", In, b((P = x.homeTeam) == null ? void 0 : P.longName), 1),
|
|
2491
|
+
d("div", null, [
|
|
2492
2492
|
w(n(V), {
|
|
2493
2493
|
class: "is-logo-image",
|
|
2494
2494
|
src: x.homeTeam.logo
|
|
2495
2495
|
}, null, 8, ["src"])
|
|
2496
2496
|
]),
|
|
2497
|
-
|
|
2498
|
-
|
|
2497
|
+
d("div", Pn, b(x.seriesStandings), 1),
|
|
2498
|
+
d("div", null, [
|
|
2499
2499
|
w(n(V), {
|
|
2500
2500
|
class: "is-logo-image",
|
|
2501
2501
|
src: x.awayTeam.logo
|
|
2502
2502
|
}, null, 8, ["src"])
|
|
2503
2503
|
]),
|
|
2504
|
-
|
|
2504
|
+
d("div", Nn, b((A = x.awayTeam) == null ? void 0 : A.longName), 1)
|
|
2505
2505
|
]),
|
|
2506
2506
|
w(n(ie), null, {
|
|
2507
2507
|
default: k(() => [
|
|
2508
|
-
(
|
|
2508
|
+
(c(!0), h(O, null, U(x.games, (z) => {
|
|
2509
2509
|
var L, y, S, T, C;
|
|
2510
|
-
return
|
|
2510
|
+
return c(), h("div", {
|
|
2511
2511
|
key: z.id,
|
|
2512
2512
|
class: G(["table-grid", { "is-optional": z.optional }])
|
|
2513
2513
|
}, [
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2514
|
+
d("div", null, b(z.gameName), 1),
|
|
2515
|
+
d("div", null, b(u(z.gameDate)), 1),
|
|
2516
|
+
d("div", null, b(v(z.gameDate)), 1),
|
|
2517
|
+
d("div", $n, [
|
|
2518
|
+
d("span", An, b((L = z.homeTeam) == null ? void 0 : L.longName), 1),
|
|
2519
|
+
d("span", Ln, b((y = z.homeTeam) == null ? void 0 : y.shortName), 1)
|
|
2520
2520
|
]),
|
|
2521
|
-
|
|
2522
|
-
z.gameStatus === 0 ? (
|
|
2521
|
+
d("div", Cn, [
|
|
2522
|
+
z.gameStatus === 0 ? (c(), h("span", En, "-:-")) : (c(), h("a", {
|
|
2523
2523
|
key: 1,
|
|
2524
2524
|
href: s(z),
|
|
2525
|
-
target:
|
|
2525
|
+
target: g.value,
|
|
2526
2526
|
class: G(["is-text-bold", [{ "is-text-dark": z.gameStatus !== 1, "is-text-accent": z.gameStatus === 1 }]])
|
|
2527
2527
|
}, b(z.homeTeamScore) + ":" + b(z.awayTeamScore), 11, On))
|
|
2528
2528
|
]),
|
|
2529
|
-
|
|
2530
|
-
z.seriesStandings ? (
|
|
2529
|
+
d("div", null, [
|
|
2530
|
+
z.seriesStandings ? (c(), h("span", jn, b(z.seriesStandings), 1)) : I("", !0)
|
|
2531
2531
|
]),
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2532
|
+
d("div", Rn, [
|
|
2533
|
+
d("span", Fn, b((S = z.awayTeam) == null ? void 0 : S.longName), 1),
|
|
2534
|
+
d("span", Gn, b((T = z.awayTeam) == null ? void 0 : T.shortName), 1)
|
|
2535
2535
|
]),
|
|
2536
|
-
|
|
2536
|
+
d("div", Mn, b(((C = z.location) == null ? void 0 : C.locationName) ?? ""), 1)
|
|
2537
2537
|
], 2);
|
|
2538
2538
|
}), 128))
|
|
2539
2539
|
]),
|
|
@@ -2549,17 +2549,17 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2549
2549
|
}, Un = /* @__PURE__ */ he(Kn, [["styles", [ve, xn, kn, lr]]]);
|
|
2550
2550
|
function Bn(e = [], t = "hu", a = tt) {
|
|
2551
2551
|
const r = K([]), o = K(null), i = K([]), l = () => {
|
|
2552
|
-
i.value = e.value.reduce((
|
|
2553
|
-
var
|
|
2554
|
-
const v = new Date(u.gameDate),
|
|
2555
|
-
return
|
|
2552
|
+
i.value = e.value.reduce((g, u) => {
|
|
2553
|
+
var p;
|
|
2554
|
+
const v = new Date(u.gameDate), f = (p = new Intl.DateTimeFormat("en-GB", { month: "long" }).format(v)) == null ? void 0 : p.toLowerCase(), m = new Intl.DateTimeFormat(t.value, { month: "long" }).format(v);
|
|
2555
|
+
return g[f] || (g[f] = { value: v.getMonth(), name: Vn(m) }), g;
|
|
2556
2556
|
}, {}), r.value = Object.values(i.value);
|
|
2557
2557
|
}, s = () => {
|
|
2558
|
-
var
|
|
2559
|
-
const
|
|
2560
|
-
o.value = v &&
|
|
2558
|
+
var f, m, p, x;
|
|
2559
|
+
const g = zr(/* @__PURE__ */ new Date(), (f = fe(e.value)) == null ? void 0 : f.gameDate, (m = Wa(e.value)) == null ? void 0 : m.gameDate), u = (p = new Intl.DateTimeFormat("en-GB", { month: "long" }).format(/* @__PURE__ */ new Date())) == null ? void 0 : p.toLowerCase(), v = oe([u], i.value);
|
|
2560
|
+
o.value = v && g ? (/* @__PURE__ */ new Date()).getMonth() : (x = fe(r.value)) == null ? void 0 : x.value, a(o.value);
|
|
2561
2561
|
};
|
|
2562
|
-
return se([e, t], l),
|
|
2562
|
+
return se([e, t], l), go(e, () => {
|
|
2563
2563
|
l(), s();
|
|
2564
2564
|
}), {
|
|
2565
2565
|
months: r,
|
|
@@ -2629,7 +2629,7 @@ const Wn = {
|
|
|
2629
2629
|
selectedMonth: Number(a.selectedMonth) ?? null,
|
|
2630
2630
|
selectedTeam: Number(a.selectedTeam) || null,
|
|
2631
2631
|
selectedTeamGameType: a.selectedTeamGameType || "all"
|
|
2632
|
-
}), { timezone: o, mainElement: i, scrollOffset: l, scrollToGameDate: s } = va(t), { onError:
|
|
2632
|
+
}), { timezone: o, mainElement: i, scrollOffset: l, scrollToGameDate: s } = va(t), { onError: g } = pe(), u = _(() => {
|
|
2633
2633
|
switch (r.selectedTeamGameType) {
|
|
2634
2634
|
case "all":
|
|
2635
2635
|
return [
|
|
@@ -2641,22 +2641,22 @@ const Wn = {
|
|
|
2641
2641
|
default:
|
|
2642
2642
|
return [["awayTeam", "id"]];
|
|
2643
2643
|
}
|
|
2644
|
-
}), { isLoading: v, execute:
|
|
2644
|
+
}), { isLoading: v, execute: f } = D({
|
|
2645
2645
|
options: {
|
|
2646
2646
|
path: "/v2/championship-seasons",
|
|
2647
2647
|
apiKey: t.apiKey,
|
|
2648
2648
|
params: { championshipName: r.championshipName }
|
|
2649
2649
|
},
|
|
2650
2650
|
transform: (E) => ht(E, r),
|
|
2651
|
-
onError:
|
|
2652
|
-
}), { isLoading: m, execute:
|
|
2651
|
+
onError: g
|
|
2652
|
+
}), { isLoading: m, execute: p } = D({
|
|
2653
2653
|
options: {
|
|
2654
2654
|
path: "/v2/championship-phases",
|
|
2655
2655
|
apiKey: t.apiKey,
|
|
2656
2656
|
params: _(() => ({ championshipId: r.championshipId }))
|
|
2657
2657
|
},
|
|
2658
2658
|
transform: (E) => fi(E, r),
|
|
2659
|
-
onError:
|
|
2659
|
+
onError: g
|
|
2660
2660
|
}), { isLoading: x, execute: P } = D({
|
|
2661
2661
|
options: {
|
|
2662
2662
|
path: "/v2/championship-teams",
|
|
@@ -2664,7 +2664,7 @@ const Wn = {
|
|
|
2664
2664
|
params: _(() => ({ championshipId: r.championshipId }))
|
|
2665
2665
|
},
|
|
2666
2666
|
transform: (E) => yi(E, r),
|
|
2667
|
-
onError:
|
|
2667
|
+
onError: g
|
|
2668
2668
|
}), {
|
|
2669
2669
|
isLoading: A,
|
|
2670
2670
|
state: z,
|
|
@@ -2676,7 +2676,7 @@ const Wn = {
|
|
|
2676
2676
|
params: _(() => ({ championshipId: r.championshipId, division: r.section }))
|
|
2677
2677
|
},
|
|
2678
2678
|
transform: (E) => Ct(E),
|
|
2679
|
-
onError:
|
|
2679
|
+
onError: g
|
|
2680
2680
|
}), y = Lt([m, v, x, A], { delay: 1e3 }), { months: S } = Bn(z, br(t, "locale"), (E) => {
|
|
2681
2681
|
r.selectedMonth = Number(a.selectedMonth) || E;
|
|
2682
2682
|
});
|
|
@@ -2687,13 +2687,13 @@ const Wn = {
|
|
|
2687
2687
|
const E = r.sections.find((Ue) => Ue.name === r.section);
|
|
2688
2688
|
return qn((E == null ? void 0 : E.phases) ?? []);
|
|
2689
2689
|
});
|
|
2690
|
-
te([
|
|
2690
|
+
te([f, p, P, L], {
|
|
2691
2691
|
onFinished: () => {
|
|
2692
2692
|
t.autoRefresh && $a(C, Xt);
|
|
2693
2693
|
}
|
|
2694
2694
|
});
|
|
2695
2695
|
function ne(E) {
|
|
2696
|
-
r.championshipId = E, a.championshipId = E, t.autoRefresh && C(), r.selectedTeam = null, a.selectedTeam = null, r.selectedMonth = null, a.selectedMonth = null, r.selectedTeamGameType = "all", a.selectedTeamGameType = null, r.subPhase = "", te([
|
|
2696
|
+
r.championshipId = E, a.championshipId = E, t.autoRefresh && C(), r.selectedTeam = null, a.selectedTeam = null, r.selectedMonth = null, a.selectedMonth = null, r.selectedTeamGameType = "all", a.selectedTeamGameType = null, r.subPhase = "", te([p, P, L]), t.autoRefresh && C(), Ht();
|
|
2697
2697
|
}
|
|
2698
2698
|
function N(E) {
|
|
2699
2699
|
r.selectedMonth = E, a.selectedMonth = E, Ht();
|
|
@@ -2734,8 +2734,8 @@ const Wn = {
|
|
|
2734
2734
|
"stroke-linejoin": "round"
|
|
2735
2735
|
};
|
|
2736
2736
|
function Hn(e, t) {
|
|
2737
|
-
return
|
|
2738
|
-
|
|
2737
|
+
return c(), h("svg", Yn, t[0] || (t[0] = [
|
|
2738
|
+
d("rect", {
|
|
2739
2739
|
x: "2",
|
|
2740
2740
|
y: "3",
|
|
2741
2741
|
width: "20",
|
|
@@ -2743,13 +2743,13 @@ function Hn(e, t) {
|
|
|
2743
2743
|
rx: "2",
|
|
2744
2744
|
ry: "2"
|
|
2745
2745
|
}, null, -1),
|
|
2746
|
-
|
|
2746
|
+
d("line", {
|
|
2747
2747
|
x1: "8",
|
|
2748
2748
|
y1: "21",
|
|
2749
2749
|
x2: "16",
|
|
2750
2750
|
y2: "21"
|
|
2751
2751
|
}, null, -1),
|
|
2752
|
-
|
|
2752
|
+
d("line", {
|
|
2753
2753
|
x1: "12",
|
|
2754
2754
|
y1: "17",
|
|
2755
2755
|
x2: "12",
|
|
@@ -2767,9 +2767,9 @@ const Jn = { render: Hn }, Xn = {
|
|
|
2767
2767
|
"stroke-linejoin": "round"
|
|
2768
2768
|
};
|
|
2769
2769
|
function Qn(e, t) {
|
|
2770
|
-
return
|
|
2771
|
-
|
|
2772
|
-
|
|
2770
|
+
return c(), h("svg", Xn, t[0] || (t[0] = [
|
|
2771
|
+
d("path", { d: "M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z" }, null, -1),
|
|
2772
|
+
d("polygon", { points: "9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" }, null, -1)
|
|
2773
2773
|
]));
|
|
2774
2774
|
}
|
|
2775
2775
|
const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"], al = { class: "is-home-team is-text-base" }, rl = { class: "is-team-name-short" }, ol = { class: "is-team-name-long" }, il = { class: "g-row" }, nl = {
|
|
@@ -2784,10 +2784,10 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
2784
2784
|
}, cl = ["href", "target"], dl = {
|
|
2785
2785
|
key: 0,
|
|
2786
2786
|
class: "is-text-xl is-text-bold"
|
|
2787
|
-
},
|
|
2787
|
+
}, gl = {
|
|
2788
2788
|
key: 1,
|
|
2789
2789
|
class: "is-text-xl is-text-bold"
|
|
2790
|
-
},
|
|
2790
|
+
}, pl = {
|
|
2791
2791
|
key: 2,
|
|
2792
2792
|
class: "is-text-xl is-text-bold"
|
|
2793
2793
|
}, ul = { key: 3 }, bl = {
|
|
@@ -2818,19 +2818,19 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
2818
2818
|
},
|
|
2819
2819
|
setup(e) {
|
|
2820
2820
|
const { t } = Q();
|
|
2821
|
-
return (a, r) => (
|
|
2821
|
+
return (a, r) => (c(), h("div", {
|
|
2822
2822
|
class: G(["card-item", { "is-optional": e.game.optional }])
|
|
2823
2823
|
}, [
|
|
2824
|
-
|
|
2824
|
+
d("div", el, [
|
|
2825
2825
|
W(b(e.game.gameName) + " - " + b(e.game.divisionName) + " - " + b(e.game.location.locationName) + " ", 1),
|
|
2826
|
-
e.game.broadcast ? (
|
|
2826
|
+
e.game.broadcast ? (c(), h(O, { key: 0 }, [
|
|
2827
2827
|
r[0] || (r[0] = W(" - ")),
|
|
2828
2828
|
w(n(Jn), { height: "16" }),
|
|
2829
2829
|
r[1] || (r[1] = W(" "))
|
|
2830
2830
|
], 64)) : I("", !0),
|
|
2831
|
-
e.game.video ? (
|
|
2831
|
+
e.game.video ? (c(), h(O, { key: 1 }, [
|
|
2832
2832
|
r[2] || (r[2] = W(" - ")),
|
|
2833
|
-
|
|
2833
|
+
d("a", {
|
|
2834
2834
|
href: e.game.video,
|
|
2835
2835
|
target: "_blank"
|
|
2836
2836
|
}, [
|
|
@@ -2838,46 +2838,50 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
2838
2838
|
], 8, tl)
|
|
2839
2839
|
], 64)) : I("", !0)
|
|
2840
2840
|
]),
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2841
|
+
d("div", al, [
|
|
2842
|
+
e.game.homeTeam ? (c(), h(O, { key: 0 }, [
|
|
2843
|
+
d("span", rl, b(e.game.homeTeam.shortName), 1),
|
|
2844
|
+
d("span", ol, b(e.game.homeTeam.longName), 1),
|
|
2845
|
+
(c(), $(n(V), {
|
|
2846
|
+
key: e.game.homeTeam.id,
|
|
2847
|
+
class: "is-logo-image",
|
|
2848
|
+
src: e.game.homeTeam.logo
|
|
2849
|
+
}, null, 8, ["src"]))
|
|
2850
|
+
], 64)) : I("", !0)
|
|
2849
2851
|
]),
|
|
2850
|
-
|
|
2852
|
+
d("div", {
|
|
2851
2853
|
class: G(["is-game-data", [{ "is-live": e.game.gameStatus === 1 }]])
|
|
2852
2854
|
}, [
|
|
2853
|
-
|
|
2854
|
-
e.game.isOvertime ? (
|
|
2855
|
-
e.game.isShootout ? (
|
|
2856
|
-
e.game.seriesStandings ? (
|
|
2855
|
+
d("div", il, [
|
|
2856
|
+
e.game.isOvertime ? (c(), h("span", nl, b(n(t)("common.overtimeShort")), 1)) : I("", !0),
|
|
2857
|
+
e.game.isShootout ? (c(), h("span", ll, b(n(t)("common.shootoutShort")), 1)) : I("", !0),
|
|
2858
|
+
e.game.seriesStandings ? (c(), h("span", sl, b(e.game.seriesStandings), 1)) : I("", !0)
|
|
2857
2859
|
]),
|
|
2858
|
-
|
|
2860
|
+
d("a", {
|
|
2859
2861
|
href: e.gameLink(e.game),
|
|
2860
2862
|
target: e.target
|
|
2861
2863
|
}, [
|
|
2862
|
-
e.game.gameStatus > 0 && e.game.gameStatus < 3 ? (
|
|
2863
|
-
e.game.gameStatus === 3 ? (
|
|
2864
|
-
e.game.gameStatus === 4 ? (
|
|
2865
|
-
e.game.gameStatus === 0 ? (
|
|
2864
|
+
e.game.gameStatus > 0 && e.game.gameStatus < 3 ? (c(), h("span", dl, b(e.game.homeTeamScore) + " : " + b(e.game.awayTeamScore), 1)) : I("", !0),
|
|
2865
|
+
e.game.gameStatus === 3 ? (c(), h("span", gl, b(n(t)("game.status.jury")), 1)) : I("", !0),
|
|
2866
|
+
e.game.gameStatus === 4 ? (c(), h("span", pl, b(n(t)("game.status.delayed")), 1)) : I("", !0),
|
|
2867
|
+
e.game.gameStatus === 0 ? (c(), h("span", ul, b(e.game.gameDateTime), 1)) : I("", !0)
|
|
2866
2868
|
], 8, cl),
|
|
2867
|
-
e.game.gameStatus === 0 ? (
|
|
2868
|
-
e.game.gameStatus > 0 ? (
|
|
2869
|
-
|
|
2870
|
-
e.game.gameStatus !== 2 ? (
|
|
2869
|
+
e.game.gameStatus === 0 ? (c(), h("span", bl, "(" + b(e.offsetName) + ")", 1)) : I("", !0),
|
|
2870
|
+
e.game.gameStatus > 0 ? (c(), h(O, { key: 1 }, [
|
|
2871
|
+
d("div", ml, b(e.game.periodResults), 1),
|
|
2872
|
+
e.game.gameStatus !== 2 ? (c(), h("div", vl, b(n(t)(`game.period.${e.game.period}`)), 1)) : I("", !0)
|
|
2871
2873
|
], 64)) : I("", !0)
|
|
2872
2874
|
], 2),
|
|
2873
|
-
|
|
2874
|
-
(
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2875
|
+
d("div", hl, [
|
|
2876
|
+
e.game.awayTeam ? (c(), h(O, { key: 0 }, [
|
|
2877
|
+
(c(), $(n(V), {
|
|
2878
|
+
key: e.game.awayTeam.id,
|
|
2879
|
+
class: "is-logo-image",
|
|
2880
|
+
src: e.game.awayTeam.logo
|
|
2881
|
+
}, null, 8, ["src"])),
|
|
2882
|
+
d("span", fl, b(e.game.awayTeam.shortName), 1),
|
|
2883
|
+
d("span", yl, b(e.game.awayTeam.longName), 1)
|
|
2884
|
+
], 64)) : I("", !0)
|
|
2881
2885
|
])
|
|
2882
2886
|
], 2));
|
|
2883
2887
|
}
|
|
@@ -2935,17 +2939,17 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
2935
2939
|
"update:selectedTeamGameType"
|
|
2936
2940
|
],
|
|
2937
2941
|
setup(e, { emit: t }) {
|
|
2938
|
-
const a = e, r = t, { t: o } = Q(), { championshipId: i, selectedMonth: l, selectedTeam: s, selectedTeamGameType:
|
|
2939
|
-
return (v,
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
+
const a = e, r = t, { t: o } = Q(), { championshipId: i, selectedMonth: l, selectedTeam: s, selectedTeamGameType: g } = Ca(a, r), u = _(() => s.value === null);
|
|
2943
|
+
return (v, f) => (c(), h("div", xl, [
|
|
2944
|
+
d("div", null, [
|
|
2945
|
+
d("label", kl, b(n(o)("selection.season")), 1),
|
|
2942
2946
|
w(n(re), {
|
|
2943
2947
|
id: "season",
|
|
2944
2948
|
modelValue: n(i),
|
|
2945
|
-
"onUpdate:modelValue":
|
|
2949
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => Ie(i) ? i.value = m : null)
|
|
2946
2950
|
}, {
|
|
2947
2951
|
default: k(() => [
|
|
2948
|
-
(
|
|
2952
|
+
(c(!0), h(O, null, U(e.seasons, (m) => (c(), h("option", {
|
|
2949
2953
|
key: m.championshipId,
|
|
2950
2954
|
value: m.championshipId
|
|
2951
2955
|
}, b(m.seasonName), 9, _l))), 128))
|
|
@@ -2953,16 +2957,16 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
2953
2957
|
_: 1
|
|
2954
2958
|
}, 8, ["modelValue"])
|
|
2955
2959
|
]),
|
|
2956
|
-
|
|
2957
|
-
|
|
2960
|
+
d("div", null, [
|
|
2961
|
+
d("label", zl, b(n(o)("selection.month")), 1),
|
|
2958
2962
|
w(n(re), {
|
|
2959
2963
|
id: "months",
|
|
2960
2964
|
modelValue: n(l),
|
|
2961
|
-
"onUpdate:modelValue":
|
|
2965
|
+
"onUpdate:modelValue": f[1] || (f[1] = (m) => Ie(l) ? l.value = m : null)
|
|
2962
2966
|
}, {
|
|
2963
2967
|
default: k(() => [
|
|
2964
|
-
|
|
2965
|
-
(
|
|
2968
|
+
d("option", Sl, b(n(o)("common.all")), 1),
|
|
2969
|
+
(c(!0), h(O, null, U(e.months, (m) => (c(), h("option", {
|
|
2966
2970
|
key: m.value,
|
|
2967
2971
|
value: m.value
|
|
2968
2972
|
}, b(m.name), 9, Tl))), 128))
|
|
@@ -2970,16 +2974,16 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
2970
2974
|
_: 1
|
|
2971
2975
|
}, 8, ["modelValue"])
|
|
2972
2976
|
]),
|
|
2973
|
-
|
|
2974
|
-
|
|
2977
|
+
d("div", null, [
|
|
2978
|
+
d("label", Il, b(n(o)("selection.teams")), 1),
|
|
2975
2979
|
w(n(re), {
|
|
2976
2980
|
id: "teams",
|
|
2977
2981
|
modelValue: n(s),
|
|
2978
|
-
"onUpdate:modelValue":
|
|
2982
|
+
"onUpdate:modelValue": f[2] || (f[2] = (m) => Ie(s) ? s.value = m : null)
|
|
2979
2983
|
}, {
|
|
2980
2984
|
default: k(() => [
|
|
2981
|
-
|
|
2982
|
-
(
|
|
2985
|
+
d("option", Pl, b(n(o)("common.all")), 1),
|
|
2986
|
+
(c(!0), h(O, null, U(e.teams, (m) => (c(), h("option", {
|
|
2983
2987
|
key: m.teamId,
|
|
2984
2988
|
value: m.teamId
|
|
2985
2989
|
}, b(m.teamName), 9, Nl))), 128))
|
|
@@ -2987,18 +2991,18 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
2987
2991
|
_: 1
|
|
2988
2992
|
}, 8, ["modelValue"])
|
|
2989
2993
|
]),
|
|
2990
|
-
|
|
2991
|
-
|
|
2994
|
+
d("div", null, [
|
|
2995
|
+
d("label", $l, b(n(o)("selection.homeOrAway")), 1),
|
|
2992
2996
|
w(n(re), {
|
|
2993
2997
|
id: "type",
|
|
2994
|
-
modelValue: n(
|
|
2995
|
-
"onUpdate:modelValue":
|
|
2998
|
+
modelValue: n(g),
|
|
2999
|
+
"onUpdate:modelValue": f[3] || (f[3] = (m) => Ie(g) ? g.value = m : null),
|
|
2996
3000
|
disabled: u.value
|
|
2997
3001
|
}, {
|
|
2998
3002
|
default: k(() => [
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3003
|
+
d("option", Al, b(n(o)("common.all")), 1),
|
|
3004
|
+
d("option", Ll, b(n(o)("selection.home")), 1),
|
|
3005
|
+
d("option", Cl, b(n(o)("selection.away")), 1)
|
|
3002
3006
|
]),
|
|
3003
3007
|
_: 1
|
|
3004
3008
|
}, 8, ["modelValue", "disabled"])
|
|
@@ -3038,7 +3042,7 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
3038
3042
|
...Pa
|
|
3039
3043
|
},
|
|
3040
3044
|
setup(e) {
|
|
3041
|
-
const t = e, a = { en: ue, hu: be }, r = K(null), o = K(null), i = K(it()), l = _(() => Et(/* @__PURE__ */ new Date(), n(i), t.locale)), s = _(() => t.scrollToGameDate.toLowerCase() === "true"),
|
|
3045
|
+
const t = e, a = { en: ue, hu: be }, r = K(null), o = K(null), i = K(it()), l = _(() => Et(/* @__PURE__ */ new Date(), n(i), t.locale)), s = _(() => t.scrollToGameDate.toLowerCase() === "true"), g = _(() => {
|
|
3042
3046
|
var m;
|
|
3043
3047
|
return ((m = La(o)) == null ? void 0 : m.clientHeight) ?? 0;
|
|
3044
3048
|
});
|
|
@@ -3048,19 +3052,19 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
3048
3052
|
function v(m) {
|
|
3049
3053
|
return nt(t.externalGameResolver || Vl, m);
|
|
3050
3054
|
}
|
|
3051
|
-
const
|
|
3052
|
-
return (m,
|
|
3055
|
+
const f = _(() => t.isGameTargetExternal ? "_blank" : "_self");
|
|
3056
|
+
return (m, p) => (c(), h("div", {
|
|
3053
3057
|
ref_key: "mainElement",
|
|
3054
3058
|
ref: r
|
|
3055
3059
|
}, [
|
|
3056
|
-
w(n(
|
|
3060
|
+
w(n(ge), {
|
|
3057
3061
|
locale: t.locale,
|
|
3058
3062
|
messages: a
|
|
3059
3063
|
}, {
|
|
3060
3064
|
default: k(({ t: x }) => [
|
|
3061
3065
|
w(n(ze), null, {
|
|
3062
3066
|
default: k(({ error: P, hasError: A }) => [
|
|
3063
|
-
A ? (
|
|
3067
|
+
A ? (c(), $(n(Se), {
|
|
3064
3068
|
key: 0,
|
|
3065
3069
|
error: P
|
|
3066
3070
|
}, null, 8, ["error"])) : I("", !0),
|
|
@@ -3070,7 +3074,7 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
3070
3074
|
"championship-name": e.championshipName,
|
|
3071
3075
|
"main-element": r.value,
|
|
3072
3076
|
"auto-refresh": t.autoRefresh,
|
|
3073
|
-
"scroll-offset":
|
|
3077
|
+
"scroll-offset": g.value,
|
|
3074
3078
|
"scroll-to-game-date": s.value
|
|
3075
3079
|
}, {
|
|
3076
3080
|
default: k(({
|
|
@@ -3110,43 +3114,43 @@ const Zn = { render: Qn }, el = { class: "is-info is-text-base" }, tl = ["href"]
|
|
|
3110
3114
|
"onUpdate:selectedTeam": cr,
|
|
3111
3115
|
"onUpdate:selectedTeamGameType": dr
|
|
3112
3116
|
}, null, 8, ["seasons", "championship-id", "months", "selected-month", "teams", "selected-team", "selected-team-game-type", "onUpdate:championshipId", "onUpdate:selectedMonth", "onUpdate:selectedTeam", "onUpdate:selectedTeamGameType"]),
|
|
3113
|
-
|
|
3114
|
-
(
|
|
3117
|
+
d("div", Rl, [
|
|
3118
|
+
(c(!0), h(O, null, U(y, (J) => (c(), h("button", {
|
|
3115
3119
|
key: J.id,
|
|
3116
3120
|
class: G(["tab-button", { "is-active": J.name === S }]),
|
|
3117
3121
|
onClick: (Le) => Ue(J.name)
|
|
3118
3122
|
}, b(J.name), 11, Fl))), 128))
|
|
3119
3123
|
]),
|
|
3120
|
-
ne.length > 1 ? (
|
|
3121
|
-
|
|
3124
|
+
ne.length > 1 ? (c(), h("div", Gl, [
|
|
3125
|
+
d("button", {
|
|
3122
3126
|
class: G({ "is-active": N === "" }),
|
|
3123
3127
|
onClick: (J) => Vt("")
|
|
3124
3128
|
}, b(x("common.all")), 11, Ml),
|
|
3125
|
-
(
|
|
3129
|
+
(c(!0), h(O, null, U(ne, ({ name: J }) => (c(), h("button", {
|
|
3126
3130
|
key: J,
|
|
3127
3131
|
class: G({ "is-active": J === N }),
|
|
3128
3132
|
onClick: (Le) => Vt(J)
|
|
3129
3133
|
}, b(J), 11, Dl))), 128))
|
|
3130
3134
|
])) : I("", !0),
|
|
3131
|
-
t.timezoneSelector ? (
|
|
3135
|
+
t.timezoneSelector ? (c(), $(n(yr), {
|
|
3132
3136
|
key: t.locale,
|
|
3133
3137
|
class: "is-mb-5",
|
|
3134
3138
|
locale: t.locale,
|
|
3135
3139
|
"current-zone": i.value,
|
|
3136
3140
|
onChange: u
|
|
3137
3141
|
}, null, 8, ["locale", "current-zone"])) : I("", !0),
|
|
3138
|
-
j ? (
|
|
3142
|
+
j ? (c(), $(n(at), { key: 2 })) : (c(!0), h(O, { key: 3 }, U(C.rows, (J, Le) => (c(), h("div", {
|
|
3139
3143
|
key: Le,
|
|
3140
3144
|
"data-gamedate": Le
|
|
3141
3145
|
}, [
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
(
|
|
3146
|
+
d("span", Ul, b(n(et)(new Date(Le), "L dddd", i.value, e.locale)), 1),
|
|
3147
|
+
d("div", Bl, [
|
|
3148
|
+
(c(!0), h(O, null, U(J, (qt) => (c(), $(wl, {
|
|
3145
3149
|
key: qt.id,
|
|
3146
3150
|
game: qt,
|
|
3147
3151
|
"offset-name": l.value,
|
|
3148
3152
|
"game-link": v,
|
|
3149
|
-
target:
|
|
3153
|
+
target: f.value
|
|
3150
3154
|
}, null, 8, ["game", "offset-name", "target"]))), 128))
|
|
3151
3155
|
])
|
|
3152
3156
|
], 8, Kl))), 128))
|
|
@@ -3287,10 +3291,10 @@ const ts = {
|
|
|
3287
3291
|
sections: [],
|
|
3288
3292
|
section: a.section || null,
|
|
3289
3293
|
standingsType: Ye
|
|
3290
|
-
}), { onError: o } =
|
|
3294
|
+
}), { onError: o } = pe(), { sort: i, change: l } = At({
|
|
3291
3295
|
sortTarget: "",
|
|
3292
3296
|
orders: []
|
|
3293
|
-
}), { isLoading: s, execute:
|
|
3297
|
+
}), { isLoading: s, execute: g } = D({
|
|
3294
3298
|
options: {
|
|
3295
3299
|
path: "/v2/championship-seasons",
|
|
3296
3300
|
apiKey: t.apiKey,
|
|
@@ -3307,9 +3311,9 @@ const ts = {
|
|
|
3307
3311
|
transform: (j) => hi(j, r),
|
|
3308
3312
|
onError: o
|
|
3309
3313
|
}), {
|
|
3310
|
-
isLoading:
|
|
3314
|
+
isLoading: f,
|
|
3311
3315
|
state: m,
|
|
3312
|
-
execute:
|
|
3316
|
+
execute: p
|
|
3313
3317
|
} = D({
|
|
3314
3318
|
options: {
|
|
3315
3319
|
path: "/v2/standings",
|
|
@@ -3324,13 +3328,13 @@ const ts = {
|
|
|
3324
3328
|
params: _(() => ({ championshipId: r.championshipId, division: r.section }))
|
|
3325
3329
|
},
|
|
3326
3330
|
onError: o
|
|
3327
|
-
}), { isActive: A, rows: z } = Jl(m, x), L = _(() => [u.value, s.value,
|
|
3328
|
-
te([
|
|
3331
|
+
}), { isActive: A, rows: z } = Jl(m, x), L = _(() => [u.value, s.value, f.value].some(Boolean)), y = _(() => Oe(n(m)).teamName().sorted(i).addContinuousIndex().value()), S = _(() => Oe(n(z)).addContinuousIndex().value());
|
|
3332
|
+
te([g, v, p, P]), so(P, Yl);
|
|
3329
3333
|
function T(j) {
|
|
3330
|
-
r.championshipId = j, a.championshipId = j, a.section = null, te([v,
|
|
3334
|
+
r.championshipId = j, a.championshipId = j, a.section = null, te([v, p]);
|
|
3331
3335
|
}
|
|
3332
3336
|
function C(j) {
|
|
3333
|
-
r.section = j, a.section = j,
|
|
3337
|
+
r.section = j, a.section = j, p();
|
|
3334
3338
|
}
|
|
3335
3339
|
function H(j) {
|
|
3336
3340
|
r.standingsType = j;
|
|
@@ -3394,19 +3398,19 @@ const ts = {
|
|
|
3394
3398
|
],
|
|
3395
3399
|
setup(e, { emit: t }) {
|
|
3396
3400
|
const a = e, r = t, { t: o } = Q(), { championshipId: i } = Ca(a, r);
|
|
3397
|
-
return (l, s) => (
|
|
3398
|
-
|
|
3399
|
-
|
|
3401
|
+
return (l, s) => (c(), h("div", as, [
|
|
3402
|
+
d("div", null, [
|
|
3403
|
+
d("label", rs, b(n(o)("selection.season")), 1),
|
|
3400
3404
|
w(n(re), {
|
|
3401
3405
|
id: "season",
|
|
3402
3406
|
modelValue: n(i),
|
|
3403
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
3407
|
+
"onUpdate:modelValue": s[0] || (s[0] = (g) => Ie(i) ? i.value = g : null)
|
|
3404
3408
|
}, {
|
|
3405
3409
|
default: k(() => [
|
|
3406
|
-
(
|
|
3407
|
-
key:
|
|
3408
|
-
value:
|
|
3409
|
-
}, b(
|
|
3410
|
+
(c(!0), h(O, null, U(e.seasons, (g) => (c(), h("option", {
|
|
3411
|
+
key: g.championshipId,
|
|
3412
|
+
value: g.championshipId
|
|
3413
|
+
}, b(g.seasonName), 9, os))), 128))
|
|
3410
3414
|
]),
|
|
3411
3415
|
_: 1
|
|
3412
3416
|
}, 8, ["modelValue"])
|
|
@@ -3418,8 +3422,8 @@ const ts = {
|
|
|
3418
3422
|
viewBox: "0 0 24 24"
|
|
3419
3423
|
};
|
|
3420
3424
|
function ls(e, t) {
|
|
3421
|
-
return
|
|
3422
|
-
|
|
3425
|
+
return c(), h("svg", ns, t[0] || (t[0] = [
|
|
3426
|
+
d("path", {
|
|
3423
3427
|
fill: "currentColor",
|
|
3424
3428
|
d: "M8.12 9.29 12 13.17l3.88-3.88a.996.996 0 1 1 1.41 1.41l-4.59 4.59a.996.996 0 0 1-1.41 0L6.7 10.7a.996.996 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z"
|
|
3425
3429
|
}, null, -1)
|
|
@@ -3430,14 +3434,14 @@ const sa = { render: ls }, ss = {
|
|
|
3430
3434
|
viewBox: "0 0 24 24"
|
|
3431
3435
|
};
|
|
3432
3436
|
function cs(e, t) {
|
|
3433
|
-
return
|
|
3434
|
-
|
|
3437
|
+
return c(), h("svg", ss, t[0] || (t[0] = [
|
|
3438
|
+
d("path", {
|
|
3435
3439
|
fill: "currentColor",
|
|
3436
3440
|
d: "M8.12 14.71L12 10.83l3.88 3.88a.996.996 0 1 0 1.41-1.41L12.7 8.71a.996.996 0 0 0-1.41 0L6.7 13.3a.996.996 0 0 0 0 1.41c.39.38 1.03.39 1.42 0"
|
|
3437
3441
|
}, null, -1)
|
|
3438
3442
|
]));
|
|
3439
3443
|
}
|
|
3440
|
-
const ca = { render: cs }, ds = ["href"],
|
|
3444
|
+
const ca = { render: cs }, ds = ["href"], gs = { class: "is-team-name-long" }, ps = { class: "is-team-name-short" }, us = { class: "is-team-name-long" }, bs = { key: 0 }, ms = { class: "is-team-name-short" }, vs = { key: 0 }, da = {
|
|
3441
3445
|
__name: "StandingsTable",
|
|
3442
3446
|
props: {
|
|
3443
3447
|
columns: {
|
|
@@ -3497,21 +3501,21 @@ const ca = { render: cs }, ds = ["href"], ps = { class: "is-team-name-long" }, g
|
|
|
3497
3501
|
},
|
|
3498
3502
|
emits: ["sort"],
|
|
3499
3503
|
setup(e, { emit: t }) {
|
|
3500
|
-
const a = e, r = t, { columns: o, hideColumns: i } = va(a), { onError: l } =
|
|
3504
|
+
const a = e, r = t, { columns: o, hideColumns: i } = va(a), { onError: l } = pe(), { columns: s, error: g } = ee(
|
|
3501
3505
|
o,
|
|
3502
3506
|
i,
|
|
3503
3507
|
_(() => ({
|
|
3504
3508
|
offsetName: a.offsetName
|
|
3505
3509
|
}))
|
|
3506
3510
|
);
|
|
3507
|
-
|
|
3511
|
+
g.value && l(
|
|
3508
3512
|
new xt.WidgetError(xt.UndefinedColumn.message, {
|
|
3509
3513
|
...xt.UndefinedColumn.options,
|
|
3510
|
-
cause: { column:
|
|
3514
|
+
cause: { column: g.value }
|
|
3511
3515
|
})
|
|
3512
3516
|
);
|
|
3513
3517
|
const u = (v) => r("sort", v);
|
|
3514
|
-
return (v,
|
|
3518
|
+
return (v, f) => (c(), $(n(ie), null, {
|
|
3515
3519
|
default: k(({ el: m }) => [
|
|
3516
3520
|
w(n(ce), {
|
|
3517
3521
|
columns: n(s),
|
|
@@ -3521,88 +3525,88 @@ const ca = { render: cs }, ds = ["href"], ps = { class: "is-team-name-long" }, g
|
|
|
3521
3525
|
"append-to": e.appendTo || m,
|
|
3522
3526
|
onSort: u
|
|
3523
3527
|
}, {
|
|
3524
|
-
"cell-index": k(({ row:
|
|
3525
|
-
|
|
3526
|
-
class: G(
|
|
3527
|
-
}, b(
|
|
3528
|
+
"cell-index": k(({ row: p }) => [
|
|
3529
|
+
d("span", {
|
|
3530
|
+
class: G(p.indexClass)
|
|
3531
|
+
}, b(p.index), 3)
|
|
3528
3532
|
]),
|
|
3529
|
-
"cell-teamLogo": k(({ row:
|
|
3533
|
+
"cell-teamLogo": k(({ row: p }) => {
|
|
3530
3534
|
var x, P;
|
|
3531
3535
|
return [
|
|
3532
|
-
(
|
|
3533
|
-
key: ((x =
|
|
3536
|
+
(c(), $(n(V), {
|
|
3537
|
+
key: ((x = p.team) == null ? void 0 : x.id) ?? p.id,
|
|
3534
3538
|
class: "is-logo-image",
|
|
3535
|
-
src: (P =
|
|
3539
|
+
src: (P = p.team) == null ? void 0 : P.logo
|
|
3536
3540
|
}, null, 8, ["src"]))
|
|
3537
3541
|
];
|
|
3538
3542
|
}),
|
|
3539
|
-
"cell-teamName": k(({ row:
|
|
3543
|
+
"cell-teamName": k(({ row: p }) => {
|
|
3540
3544
|
var x, P, A, z, L;
|
|
3541
3545
|
return [
|
|
3542
|
-
e.isTeamLinked ? (
|
|
3546
|
+
e.isTeamLinked ? (c(), h("a", {
|
|
3543
3547
|
key: 0,
|
|
3544
|
-
href: e.externalTeamResolver((x =
|
|
3548
|
+
href: e.externalTeamResolver((x = p.team) == null ? void 0 : x.longName),
|
|
3545
3549
|
target: "_blank"
|
|
3546
3550
|
}, [
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
+
d("span", gs, b((P = p.team) == null ? void 0 : P.longName), 1),
|
|
3552
|
+
d("span", ps, b((A = p.team) == null ? void 0 : A.shortName), 1),
|
|
3553
|
+
p.isActiveGame && p.diff !== 0 ? (c(), h(O, { key: 0 }, [
|
|
3554
|
+
p.diff > 0 ? (c(), $(n(ca), {
|
|
3551
3555
|
key: 0,
|
|
3552
3556
|
width: "12",
|
|
3553
3557
|
height: "12",
|
|
3554
3558
|
class: "is-text-positive"
|
|
3555
3559
|
})) : I("", !0),
|
|
3556
|
-
|
|
3560
|
+
p.diff < 0 ? (c(), $(n(sa), {
|
|
3557
3561
|
key: 1,
|
|
3558
3562
|
width: "12",
|
|
3559
3563
|
height: "12",
|
|
3560
3564
|
class: "is-text-negative"
|
|
3561
3565
|
})) : I("", !0),
|
|
3562
|
-
|
|
3563
|
-
class: G({ "is-text-positive":
|
|
3564
|
-
}, b(
|
|
3566
|
+
d("span", {
|
|
3567
|
+
class: G({ "is-text-positive": p.diff > 0, "is-text-negative": p.diff < 0 })
|
|
3568
|
+
}, b(p.diff), 3)
|
|
3565
3569
|
], 64)) : I("", !0)
|
|
3566
|
-
], 8, ds)) : (
|
|
3567
|
-
|
|
3568
|
-
W(b((z =
|
|
3569
|
-
|
|
3570
|
-
|
|
3570
|
+
], 8, ds)) : (c(), h(O, { key: 1 }, [
|
|
3571
|
+
d("span", us, [
|
|
3572
|
+
W(b((z = p.team) == null ? void 0 : z.longName) + " ", 1),
|
|
3573
|
+
p.penaltyPoints ? (c(), h("span", bs, f[0] || (f[0] = [
|
|
3574
|
+
d("sup", null, "*", -1)
|
|
3571
3575
|
]))) : I("", !0)
|
|
3572
3576
|
]),
|
|
3573
|
-
|
|
3574
|
-
W(b((L =
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
+
d("span", ms, [
|
|
3578
|
+
W(b((L = p.team) == null ? void 0 : L.shortName) + " ", 1),
|
|
3579
|
+
p.penaltyPoints ? (c(), h("span", vs, f[1] || (f[1] = [
|
|
3580
|
+
d("sup", null, "*", -1)
|
|
3577
3581
|
]))) : I("", !0)
|
|
3578
3582
|
]),
|
|
3579
|
-
|
|
3580
|
-
|
|
3583
|
+
p.isActiveGame && p.diff !== 0 ? (c(), h(O, { key: 0 }, [
|
|
3584
|
+
p.diff > 0 ? (c(), $(n(ca), {
|
|
3581
3585
|
key: 0,
|
|
3582
3586
|
width: "12",
|
|
3583
3587
|
height: "12",
|
|
3584
3588
|
class: "is-text-positive"
|
|
3585
3589
|
})) : I("", !0),
|
|
3586
|
-
|
|
3590
|
+
p.diff < 0 ? (c(), $(n(sa), {
|
|
3587
3591
|
key: 1,
|
|
3588
3592
|
width: "12",
|
|
3589
3593
|
height: "12",
|
|
3590
3594
|
class: "is-text-negative"
|
|
3591
3595
|
})) : I("", !0),
|
|
3592
|
-
|
|
3593
|
-
class: G({ "is-text-positive":
|
|
3594
|
-
}, b(
|
|
3596
|
+
d("span", {
|
|
3597
|
+
class: G({ "is-text-positive": p.diff > 0, "is-text-negative": p.diff < 0 })
|
|
3598
|
+
}, b(p.diff), 3)
|
|
3595
3599
|
], 64)) : I("", !0)
|
|
3596
3600
|
], 64))
|
|
3597
3601
|
];
|
|
3598
3602
|
}),
|
|
3599
|
-
"cell-score": k(({ row:
|
|
3600
|
-
|
|
3603
|
+
"cell-score": k(({ row: p }) => [
|
|
3604
|
+
p.isActiveGame ? (c(), h("span", {
|
|
3601
3605
|
key: 0,
|
|
3602
3606
|
class: G(["is-badge is-large", [
|
|
3603
|
-
{ "is-green":
|
|
3607
|
+
{ "is-green": p.scoreType === "W", "is-red": p.scoreType === "L", "is-yellow": p.scoreType === "D" }
|
|
3604
3608
|
]])
|
|
3605
|
-
}, b(
|
|
3609
|
+
}, b(p.score), 3)) : I("", !0)
|
|
3606
3610
|
]),
|
|
3607
3611
|
loading: k(() => [
|
|
3608
3612
|
w(n(at))
|
|
@@ -3638,17 +3642,17 @@ const ca = { render: cs }, ds = ["href"], ps = { class: "is-team-name-long" }, g
|
|
|
3638
3642
|
},
|
|
3639
3643
|
setup(e) {
|
|
3640
3644
|
const t = e, a = { en: ue, hu: be }, r = K(null), o = (i) => st(t.externalTeamResolver, i);
|
|
3641
|
-
return (i, l) => (
|
|
3642
|
-
w(n(
|
|
3645
|
+
return (i, l) => (c(), h("div", null, [
|
|
3646
|
+
w(n(ge), {
|
|
3643
3647
|
locale: t.locale,
|
|
3644
3648
|
messages: a
|
|
3645
3649
|
}, {
|
|
3646
3650
|
default: k(({ t: s }) => [
|
|
3647
3651
|
w(n(ze), null, {
|
|
3648
|
-
default: k(({ error:
|
|
3649
|
-
u ? (
|
|
3652
|
+
default: k(({ error: g, hasError: u }) => [
|
|
3653
|
+
u ? (c(), $(n(Se), {
|
|
3650
3654
|
key: 0,
|
|
3651
|
-
error:
|
|
3655
|
+
error: g
|
|
3652
3656
|
}, null, 8, ["error"])) : I("", !0),
|
|
3653
3657
|
w(ts, {
|
|
3654
3658
|
locale: e.locale,
|
|
@@ -3656,9 +3660,9 @@ const ca = { render: cs }, ds = ["href"], ps = { class: "is-team-name-long" }, g
|
|
|
3656
3660
|
}, {
|
|
3657
3661
|
default: k(({
|
|
3658
3662
|
sort: v,
|
|
3659
|
-
teams:
|
|
3663
|
+
teams: f,
|
|
3660
3664
|
seasons: m,
|
|
3661
|
-
section:
|
|
3665
|
+
section: p,
|
|
3662
3666
|
sections: x,
|
|
3663
3667
|
liveRows: P,
|
|
3664
3668
|
isLoading: A,
|
|
@@ -3675,24 +3679,24 @@ const ca = { render: cs }, ds = ["href"], ps = { class: "is-team-name-long" }, g
|
|
|
3675
3679
|
"championship-id": L,
|
|
3676
3680
|
"onUpdate:championshipId": T
|
|
3677
3681
|
}, null, 8, ["seasons", "championship-id", "onUpdate:championshipId"]),
|
|
3678
|
-
|
|
3679
|
-
(
|
|
3682
|
+
d("div", fs, [
|
|
3683
|
+
(c(!0), h(O, null, U(x, (j) => (c(), h("button", {
|
|
3680
3684
|
key: j.phaseId,
|
|
3681
|
-
class: G(["tab-button", { "is-active": j.phaseName ===
|
|
3685
|
+
class: G(["tab-button", { "is-active": j.phaseName === p }]),
|
|
3682
3686
|
onClick: (ne) => C(j.phaseName)
|
|
3683
3687
|
}, b(j.phaseName), 11, ys))), 128))
|
|
3684
3688
|
]),
|
|
3685
|
-
y ? (
|
|
3686
|
-
|
|
3689
|
+
y ? (c(), h("div", ws, [
|
|
3690
|
+
d("button", {
|
|
3687
3691
|
class: G({ "is-active": z === n(Ye) }),
|
|
3688
3692
|
onClick: (j) => H(n(Ye))
|
|
3689
3693
|
}, b(s("standings.live")), 11, xs),
|
|
3690
|
-
|
|
3694
|
+
d("button", {
|
|
3691
3695
|
class: G({ "is-active": z === n(Tt) }),
|
|
3692
3696
|
onClick: (j) => H(n(Tt))
|
|
3693
3697
|
}, b(s("standings.default")), 11, ks)
|
|
3694
3698
|
])) : I("", !0),
|
|
3695
|
-
z === n(Ye) && y ? (
|
|
3699
|
+
z === n(Ye) && y ? (c(), $(da, {
|
|
3696
3700
|
key: 1,
|
|
3697
3701
|
rows: P.rows,
|
|
3698
3702
|
columns: n(Hl),
|
|
@@ -3700,9 +3704,9 @@ const ca = { render: cs }, ds = ["href"], ps = { class: "is-team-name-long" }, g
|
|
|
3700
3704
|
"is-loading": A,
|
|
3701
3705
|
"append-to": r.value
|
|
3702
3706
|
}, null, 8, ["rows", "columns", "is-loading", "append-to"])) : I("", !0),
|
|
3703
|
-
z === n(Tt) || !y ? (
|
|
3707
|
+
z === n(Tt) || !y ? (c(), $(da, {
|
|
3704
3708
|
key: 2,
|
|
3705
|
-
rows:
|
|
3709
|
+
rows: f.rows,
|
|
3706
3710
|
columns: n(Ar),
|
|
3707
3711
|
sort: v,
|
|
3708
3712
|
"external-team-resolver": o,
|
|
@@ -3711,17 +3715,17 @@ const ca = { render: cs }, ds = ["href"], ps = { class: "is-team-name-long" }, g
|
|
|
3711
3715
|
onSort: S
|
|
3712
3716
|
}, null, 8, ["rows", "columns", "sort", "append-to", "is-loading", "onSort"])) : I("", !0),
|
|
3713
3717
|
w(n(Yt), {
|
|
3714
|
-
rows:
|
|
3718
|
+
rows: f.rows,
|
|
3715
3719
|
"additional-key": "inheritedPoints"
|
|
3716
3720
|
}, null, 8, ["rows"]),
|
|
3717
3721
|
w(n(Yt), {
|
|
3718
|
-
rows:
|
|
3722
|
+
rows: f.rows,
|
|
3719
3723
|
"additional-key": "penaltyPoints"
|
|
3720
3724
|
}, null, 8, ["rows"])
|
|
3721
3725
|
]),
|
|
3722
3726
|
_: 2
|
|
3723
3727
|
}, 1032, ["locale", "championship-name"]),
|
|
3724
|
-
|
|
3728
|
+
d("div", {
|
|
3725
3729
|
ref_key: "tooltipContainer",
|
|
3726
3730
|
ref: r
|
|
3727
3731
|
}, null, 512)
|
|
@@ -3733,7 +3737,7 @@ const ca = { render: cs }, ds = ["href"], ps = { class: "is-team-name-long" }, g
|
|
|
3733
3737
|
}, 8, ["locale"])
|
|
3734
3738
|
]));
|
|
3735
3739
|
}
|
|
3736
|
-
}, zs = /* @__PURE__ */ he(_s, [["styles", [ve, Ke, Ut, lr, Bt, or, hs]]]), De = "players",
|
|
3740
|
+
}, zs = /* @__PURE__ */ he(_s, [["styles", [ve, Ke, Ut, lr, Bt, or, hs]]]), De = "players", ga = "teams", pa = (/* @__PURE__ */ new Map()).set("points", {
|
|
3737
3741
|
api: "/v2/players-stats",
|
|
3738
3742
|
columns: Ve,
|
|
3739
3743
|
sort: {
|
|
@@ -3973,97 +3977,97 @@ const $s = {
|
|
|
3973
3977
|
setup(e, { emit: t }) {
|
|
3974
3978
|
const a = e, r = t, { t: o } = Q(), i = _({
|
|
3975
3979
|
get: () => a.championshipId,
|
|
3976
|
-
set: (
|
|
3980
|
+
set: (f) => r("onSeasonChange", f)
|
|
3977
3981
|
}), l = _({
|
|
3978
3982
|
get: () => a.phaseId,
|
|
3979
|
-
set: (
|
|
3983
|
+
set: (f) => r("onSectionChange", f)
|
|
3980
3984
|
}), s = _({
|
|
3981
3985
|
get: () => a.currentReport,
|
|
3982
|
-
set: (
|
|
3983
|
-
}),
|
|
3986
|
+
set: (f) => r("onReportChange", f)
|
|
3987
|
+
}), g = _({
|
|
3984
3988
|
get: () => a.teamFilter,
|
|
3985
|
-
set: (
|
|
3989
|
+
set: (f) => r("onTeamChange", f)
|
|
3986
3990
|
}), u = _({
|
|
3987
3991
|
get: () => a.playerFilter,
|
|
3988
|
-
set: (
|
|
3992
|
+
set: (f) => r("onPlayerInput", f)
|
|
3989
3993
|
});
|
|
3990
|
-
function v(
|
|
3991
|
-
r("onStatTypeChange",
|
|
3994
|
+
function v(f) {
|
|
3995
|
+
r("onStatTypeChange", f);
|
|
3992
3996
|
}
|
|
3993
|
-
return (
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
+
return (f, m) => (c(), h(O, null, [
|
|
3998
|
+
d("div", $s, [
|
|
3999
|
+
d("div", null, [
|
|
4000
|
+
d("label", As, b(n(o)("selection.season")), 1),
|
|
3997
4001
|
w(n(re), {
|
|
3998
4002
|
id: "season",
|
|
3999
4003
|
modelValue: i.value,
|
|
4000
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
4004
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => i.value = p)
|
|
4001
4005
|
}, {
|
|
4002
4006
|
default: k(() => [
|
|
4003
|
-
(
|
|
4004
|
-
key:
|
|
4005
|
-
value:
|
|
4006
|
-
}, b(
|
|
4007
|
+
(c(!0), h(O, null, U(e.seasons, (p) => (c(), h("option", {
|
|
4008
|
+
key: p.championshipId,
|
|
4009
|
+
value: p.championshipId
|
|
4010
|
+
}, b(p.seasonName), 9, Ls))), 128))
|
|
4007
4011
|
]),
|
|
4008
4012
|
_: 1
|
|
4009
4013
|
}, 8, ["modelValue"])
|
|
4010
4014
|
]),
|
|
4011
|
-
|
|
4012
|
-
|
|
4015
|
+
d("div", null, [
|
|
4016
|
+
d("label", Cs, b(n(o)("selection.section")), 1),
|
|
4013
4017
|
w(n(re), {
|
|
4014
4018
|
id: "section",
|
|
4015
4019
|
modelValue: l.value,
|
|
4016
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
4020
|
+
"onUpdate:modelValue": m[1] || (m[1] = (p) => l.value = p)
|
|
4017
4021
|
}, {
|
|
4018
4022
|
default: k(() => [
|
|
4019
|
-
(
|
|
4020
|
-
key:
|
|
4021
|
-
value:
|
|
4022
|
-
}, b(
|
|
4023
|
+
(c(!0), h(O, null, U(e.sections, (p) => (c(), h("option", {
|
|
4024
|
+
key: p.phaseId,
|
|
4025
|
+
value: p.phaseId
|
|
4026
|
+
}, b(p.phaseName), 9, Es))), 128))
|
|
4023
4027
|
]),
|
|
4024
4028
|
_: 1
|
|
4025
4029
|
}, 8, ["modelValue"])
|
|
4026
4030
|
]),
|
|
4027
|
-
|
|
4028
|
-
|
|
4031
|
+
d("div", null, [
|
|
4032
|
+
d("label", Os, b(n(o)("selection.report")), 1),
|
|
4029
4033
|
w(n(re), {
|
|
4030
4034
|
id: "report",
|
|
4031
4035
|
modelValue: s.value,
|
|
4032
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
4036
|
+
"onUpdate:modelValue": m[2] || (m[2] = (p) => s.value = p)
|
|
4033
4037
|
}, {
|
|
4034
4038
|
default: k(() => [
|
|
4035
|
-
(
|
|
4039
|
+
(c(!0), h(O, null, U(e.reports, ({ name: p, value: x }) => (c(), h("option", {
|
|
4036
4040
|
key: x,
|
|
4037
4041
|
value: x
|
|
4038
|
-
}, b(
|
|
4042
|
+
}, b(p), 9, js))), 128))
|
|
4039
4043
|
]),
|
|
4040
4044
|
_: 1
|
|
4041
4045
|
}, 8, ["modelValue"])
|
|
4042
4046
|
]),
|
|
4043
|
-
e.reportType === "players" ? (
|
|
4044
|
-
|
|
4045
|
-
|
|
4047
|
+
e.reportType === "players" ? (c(), h(O, { key: 0 }, [
|
|
4048
|
+
d("div", null, [
|
|
4049
|
+
d("label", Rs, b(n(o)("selection.teams")), 1),
|
|
4046
4050
|
w(n(re), {
|
|
4047
4051
|
id: "teams",
|
|
4048
|
-
modelValue:
|
|
4049
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
4052
|
+
modelValue: g.value,
|
|
4053
|
+
"onUpdate:modelValue": m[3] || (m[3] = (p) => g.value = p),
|
|
4050
4054
|
disabled: e.reportType !== "players"
|
|
4051
4055
|
}, {
|
|
4052
4056
|
default: k(() => [
|
|
4053
|
-
|
|
4054
|
-
(
|
|
4055
|
-
key:
|
|
4056
|
-
value:
|
|
4057
|
+
d("option", Fs, b(n(o)("common.all")), 1),
|
|
4058
|
+
(c(!0), h(O, null, U(e.teams, ({ teamId: p, teamName: x }) => (c(), h("option", {
|
|
4059
|
+
key: p,
|
|
4060
|
+
value: p
|
|
4057
4061
|
}, b(x), 9, Gs))), 128))
|
|
4058
4062
|
]),
|
|
4059
4063
|
_: 1
|
|
4060
4064
|
}, 8, ["modelValue", "disabled"])
|
|
4061
4065
|
]),
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
mr(
|
|
4066
|
+
d("div", null, [
|
|
4067
|
+
d("label", Ms, b(n(o)("selection.filterName")), 1),
|
|
4068
|
+
mr(d("input", {
|
|
4065
4069
|
id: "player",
|
|
4066
|
-
"onUpdate:modelValue": m[4] || (m[4] = (
|
|
4070
|
+
"onUpdate:modelValue": m[4] || (m[4] = (p) => u.value = p),
|
|
4067
4071
|
type: "text",
|
|
4068
4072
|
class: "base-input",
|
|
4069
4073
|
disabled: e.reportType !== "players"
|
|
@@ -4073,16 +4077,16 @@ const $s = {
|
|
|
4073
4077
|
])
|
|
4074
4078
|
], 64)) : I("", !0)
|
|
4075
4079
|
]),
|
|
4076
|
-
|
|
4077
|
-
|
|
4080
|
+
d("div", null, [
|
|
4081
|
+
d("button", {
|
|
4078
4082
|
type: "button",
|
|
4079
4083
|
class: G(["tab-button", { "is-active": e.reportType === n(De) }]),
|
|
4080
|
-
onClick: m[5] || (m[5] = (
|
|
4084
|
+
onClick: m[5] || (m[5] = (p) => v(n(De)))
|
|
4081
4085
|
}, b(n(o)("selection.players")), 3),
|
|
4082
|
-
|
|
4086
|
+
d("button", {
|
|
4083
4087
|
type: "button",
|
|
4084
|
-
class: G(["tab-button", { "is-active": e.reportType === n(
|
|
4085
|
-
onClick: m[6] || (m[6] = (
|
|
4088
|
+
class: G(["tab-button", { "is-active": e.reportType === n(ga) }]),
|
|
4089
|
+
onClick: m[6] || (m[6] = (p) => v(n(ga)))
|
|
4086
4090
|
}, b(n(o)("selection.teams")), 3)
|
|
4087
4091
|
])
|
|
4088
4092
|
], 64));
|
|
@@ -4108,7 +4112,7 @@ const $s = {
|
|
|
4108
4112
|
}
|
|
4109
4113
|
},
|
|
4110
4114
|
setup(e) {
|
|
4111
|
-
const t = e, { t: a } = Q(), { onError: r } =
|
|
4115
|
+
const t = e, { t: a } = Q(), { onError: r } = pe(), o = Te("history"), i = Z({
|
|
4112
4116
|
loading: !1,
|
|
4113
4117
|
seasons: [],
|
|
4114
4118
|
championshipId: Number(o.championshipId) || t.championshipId,
|
|
@@ -4125,11 +4129,11 @@ const $s = {
|
|
|
4125
4129
|
columns: null,
|
|
4126
4130
|
api: null,
|
|
4127
4131
|
apiParams: {}
|
|
4128
|
-
}), l =
|
|
4132
|
+
}), l = pa.get("points");
|
|
4129
4133
|
i.columns = l.columns, i.api = l.api;
|
|
4130
4134
|
const s = _(
|
|
4131
4135
|
() => i.reportType === De ? Ss(a) : Ts(a)
|
|
4132
|
-
), { page:
|
|
4136
|
+
), { page: g, change: u } = wa(), { sort: v, change: f } = At({
|
|
4133
4137
|
sortTarget: "points",
|
|
4134
4138
|
orders: [{ target: "points", direction: B }]
|
|
4135
4139
|
});
|
|
@@ -4148,7 +4152,7 @@ const $s = {
|
|
|
4148
4152
|
i.loading = !1;
|
|
4149
4153
|
}
|
|
4150
4154
|
}
|
|
4151
|
-
async function
|
|
4155
|
+
async function p() {
|
|
4152
4156
|
var N;
|
|
4153
4157
|
try {
|
|
4154
4158
|
i.loading = !0;
|
|
@@ -4216,14 +4220,14 @@ const $s = {
|
|
|
4216
4220
|
}
|
|
4217
4221
|
}
|
|
4218
4222
|
const A = _(
|
|
4219
|
-
() => Oe(i.rows).filter(i.teamFilter, [["team", "id"]], !0).filter(i.playerFilter, ["name"]).sorted(v).addIndex(v.sortTarget).pagination(n(
|
|
4220
|
-
), z = _(() => [(
|
|
4223
|
+
() => Oe(i.rows).filter(i.teamFilter, [["team", "id"]], !0).filter(i.playerFilter, ["name"]).sorted(v).addIndex(v.sortTarget).pagination(n(g), t.limit).value()
|
|
4224
|
+
), z = _(() => [(g.value - 1) * t.limit + 1, Math.min(g.value * t.limit, A.value.totalItems)]);
|
|
4221
4225
|
function L() {
|
|
4222
|
-
const N =
|
|
4226
|
+
const N = pa.get(i.currentReport);
|
|
4223
4227
|
i.columns = N.columns, i.api = N.api, i.apiParams = N.params || {}, v.sortTarget = N.sort.sortTarget, v.orders = N.sort.orders;
|
|
4224
4228
|
}
|
|
4225
4229
|
async function y(N) {
|
|
4226
|
-
i.championshipId = N, o.championshipId = N, i.phaseId = null, o.phaseId = null, await
|
|
4230
|
+
i.championshipId = N, o.championshipId = N, i.phaseId = null, o.phaseId = null, await p(), o.section = i.section, await P(), await x();
|
|
4227
4231
|
}
|
|
4228
4232
|
async function S(N) {
|
|
4229
4233
|
i.phaseId = N, o.phaseId = N, await x();
|
|
@@ -4241,13 +4245,13 @@ const $s = {
|
|
|
4241
4245
|
i.reportType = N, i.currentReport = fe(s.value).value, i.teamFilter = null, i.playerFilter = "", o.report = i.currentReport, o.teamFilter = null, o.type = N, L(), x();
|
|
4242
4246
|
}
|
|
4243
4247
|
async function ne() {
|
|
4244
|
-
await m(), await
|
|
4248
|
+
await m(), await p(), await P(), L(), await x();
|
|
4245
4249
|
}
|
|
4246
4250
|
return ne(), (N, le) => xe(N.$slots, "default", ke(_e({
|
|
4247
4251
|
...i,
|
|
4248
4252
|
rows: A.value,
|
|
4249
4253
|
sort: n(v),
|
|
4250
|
-
page: n(
|
|
4254
|
+
page: n(g),
|
|
4251
4255
|
range: z.value,
|
|
4252
4256
|
selectorProps: {
|
|
4253
4257
|
reports: s.value,
|
|
@@ -4275,7 +4279,7 @@ const $s = {
|
|
|
4275
4279
|
onPlayerInput: H
|
|
4276
4280
|
},
|
|
4277
4281
|
onPaginatorChange: n(u),
|
|
4278
|
-
onSort: n(
|
|
4282
|
+
onSort: n(f)
|
|
4279
4283
|
})));
|
|
4280
4284
|
}
|
|
4281
4285
|
}, Bs = `.base-input{padding:.375rem .75rem;font-family:inherit;color:var(--vbr-widget-base-input-color);border:1px solid var(--vbr-widget-base-input-border-color);border-radius:var(--vbr-widget-base-input-border-radius);width:100%;-moz-padding-start:calc(.75rem - 3px);font-size:var(--vbr-widget-base-input-font-size);font-weight:400;line-height:1.5;background-color:#fff;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}.base-input:disabled{opacity:.3}.base-input.is-select{padding-right:2.25rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px}label{display:block;margin-bottom:3px;color:var(--vbr-widget-form-label-color);font-size:var(--vbr-widget-form-label-font-size);font-weight:700;text-transform:uppercase}.tab-button{padding:var(--vbr-widget-tab-btn-padding);font-family:inherit;font-size:var(--vbr-widget-tab-btn-font-size);font-weight:var(--vbr-widget-tab-btn-font-weight);color:var(--vbr-widget-tab-btn-color);text-transform:var(--vbr-widget-tab-btn-text-transform);background-color:var(--vbr-widget-tab-btn-bg-color);border-color:var(--vbr-widget-tab-btn-border-color);border-width:var(--vbr-widget-tab-btn-border-width);border-style:var(--vbr-widget-tab-btn-border-style);outline:none;box-shadow:none;cursor:pointer}.tab-button:hover{color:var(--vbr-widget-tab-btn-hover-color);border-color:var(--vbr-widget-tab-btn-hover-border-color);background-color:var(--vbr-widget-tab-btn-hover-bg-color)}.tab-button.is-active{color:var(--vbr-widget-tab-btn-active-color);border-color:var(--vbr-widget-tab-btn-active-border-color);background-color:var(--vbr-widget-tab-btn-active-bg-color)}.toggle-group{display:flex;flex-wrap:wrap;gap:var(--vbr-widget-toggle-group-gap);margin-bottom:15px}.toggle-group button{padding:var(--vbr-widget-toggle-group-btn-padding);font-family:inherit;font-size:var(--vbr-widget-toggle-group-btn-size);background-color:var(--vbr-widget-toggle-group-btn-bg-color);border-radius:var(--vbr-widget-toggle-group-btn-radius)}.toggle-group button.is-active{color:var(--vbr-widget-toggle-group-btn-active-color);background-color:var(--vbr-widget-toggle-group-btn-active-bg-color)}`, Vs = '.table{border-collapse:collapse;border-spacing:0;color:var(--vbr-widget-table-color);background-color:var(--vbr-widget-table-default-bg-color)}.table table,.table caption,.table tbody,.table tfoot,.table thead,.table tr,.table th,.table td{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.table :is(th,td){padding:8px;white-space:nowrap;vertical-align:middle;text-align:center}.table :is(th,td).is-text-left{text-align:left}.table :is(th,td).is-text-right{text-align:right}.table th{width:var(--vbr-widget-table-default-column-width);background:var(--vbr-widget-table-header-bg-color);font-size:var(--vbr-widget-table-header-font-size);font-weight:700;color:var(--vbr-widget-table-header-color)}.table th:focus-visible,.table th:hover{background-color:var(--vbr-widget-table-header-hover-bg-color);outline:none}.table th.is-sortable{position:relative;cursor:pointer}.table th.is-sortable .icon-sort{opacity:.5}.table th.is-active{background-color:var(--vbr-widget-table-header-active-bg-color);color:var(--vbr-widget-table-header-active-color)}.table th.is-active .icon-sort{opacity:1}.table th.is-asc,.table th.is-desc{position:relative}.table th.is-w-auto{width:auto}.table th .is-icon-sort{width:11px;height:11px;margin-left:5px}.table td.is-active{font-weight:700;color:var(--vbr-widget-table-active-color);background:var(--vbr-widget-table-active-bg-color)}.table td.is-zero{color:var(--vbr-widget-table-zero-color)}.table td.is-possible-empty:empty:before{content:"0";color:var(--vbr-widget-table-zero-color)}.table td .is-text-light,.table td.is-text-light{color:var(--vbr-widget-table-cell-light-color)}.table td .is-text-dark,.table td.is-text-dark{color:var(--vbr-widget-table-cell-dark-color)}.table td .is-logo-image{display:inline-block;vertical-align:middle;width:var(--vbr-widget-table-cell-logo-size);height:var(--vbr-widget-table-cell-logo-size)}.table td .is-portrait-image{display:inline-block;vertical-align:middle;width:var(--vbr-widget-table-cell-portrait-size);height:var(--vbr-widget-table-cell-portrait-size);object-fit:cover;object-position:top;overflow:hidden;border-radius:100%;border:1px solid var(--vbr-widget-primary-color-100)}.table td .is-portrait-image img{width:var(--vbr-widget-table-cell-portrait-size);height:auto}.table td.is-text-bold{font-weight:700}.table td.is-text-italic{font-style:italic}.table td.is-text-xl{font-size:var(--vbr-widget-typography-font-size-700)}.table td .is-text-accent{color:var(--vbr-widget-secondary-color-500)}.table td.is-w-auto{width:auto}.table td.is-horizontal-content{display:inline-flex;align-items:center}.table td.is-text-positive,.table td .is-text-positive{color:var(--vbr-widget-live-game-color)}.table td.is-text-negative,.table td .is-text-negative{color:var(--vbr-widget-danger-color-a400)}.table td.is-has-image{padding:0 2px}.table td .is-duplicated{color:var(--vbr-widget-table-neutral-color)}.table td svg{width:16px;height:16px}.table td button{padding:3px;line-height:0;border:none;outline:none;background-color:transparent}.table td button:hover{background-color:var(--vbr-widget-popover-trigger-hover-bg-color)}.table td button:active,.table td button:focus{background-color:var(--vbr-widget-popover-trigger-focus-bg-color)}.table td a{text-decoration:none}.table td .label{padding:3px 6px;font-size:var(--vbr-widget-typography-font-size-100);font-weight:700;color:var(--vbr-widget-table-label-color);background-color:var(--vbr-widget-table-label-bg-color);border-radius:2px}.table td .label:not(:last-of-type){margin-right:3px}.table td a{color:var(--vbr-widget-link-color)}.table td a:hover{color:var(--vbr-widget-hover-color)}.table td .is-team-name-long{display:block}.table td .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){.table td .is-team-name-long{display:none}.table td .is-team-name-short{display:block}}.table tr.is-highlighted{color:var(--vbr-widget-danger-color-a400)}.table tr.is-optional{opacity:.5}.table tr:nth-child(2n){background:var(--vbr-widget-table-stripped-bg-color)}.table tr:nth-child(2n) td.is-active{background-color:var(--vbr-widget-table-active-even-bg-color)}.table tbody tr:focus-within,.table tbody tr:hover{color:var(--vbr-widget-table-hover-color);background-color:var(--vbr-widget-table-hover-bg-color)}.table tbody tr:focus-within td.is-active,.table tbody tr:hover td.is-active{color:var(--vbr-widget-table-active-hover-color);background-color:var(--vbr-widget-table-active-hover-bg-color)}', qs = ".table-responsive{container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}.table-responsive table{width:100%}", Ws = ".paginator{display:flex;flex-direction:row;list-style-type:none;margin:10px 0;padding:0}.paginator button,.paginator div{display:flex;align-items:center;justify-content:center;padding:6px 12px;text-decoration:none;cursor:pointer;color:var(--vbr-widget-paginator-color);border:1px solid var(--vbr-widget-paginator-border-color);background-color:var(--vbr-widget-paginator-bg-color);margin-left:-1px}.paginator button .icon,.paginator div .icon{width:16px;height:16px;margin:0 -4px}.paginator button:hover:not(.paginator button.is-disabled,.paginator button.is-active,.paginator div.is-disabled,.paginator div.is-active),.paginator div:hover:not(.paginator button.is-disabled,.paginator button.is-active,.paginator div.is-disabled,.paginator div.is-active){color:var(--vbr-widget-paginator-hover-color);background-color:var(--vbr-widget-paginator-hover-bg-color)}.paginator button:disabled,.paginator button.is-disabled,.paginator div:disabled,.paginator div.is-disabled{color:var(--vbr-widget-paginator-disabled-color);background-color:var(--vbr-widget-paginator-bg-color);pointer-events:none;cursor:default}.paginator button.is-active,.paginator div.is-active{color:var(--vbr-widget-paginator-active-color);background-color:var(--vbr-widget-paginator-active-bg-color);border-color:var(--vbr-widget-paginator-active-bg-color);cursor:default}", Ys = { style: { display: "flex", "align-items": "center" } }, Hs = {
|
|
@@ -4309,14 +4313,14 @@ const $s = {
|
|
|
4309
4313
|
},
|
|
4310
4314
|
setup(e) {
|
|
4311
4315
|
const t = e, a = { en: ue, hu: be }, r = K(null), o = (l) => st(t.externalTeamResolver, l), i = (l) => Ot(t.externalPlayerLink, l);
|
|
4312
|
-
return (l, s) => (
|
|
4313
|
-
w(n(
|
|
4316
|
+
return (l, s) => (c(), h("div", null, [
|
|
4317
|
+
w(n(ge), {
|
|
4314
4318
|
locale: t.locale,
|
|
4315
4319
|
messages: a
|
|
4316
4320
|
}, {
|
|
4317
4321
|
default: k(() => [
|
|
4318
4322
|
w(n(ze), null, {
|
|
4319
|
-
default: k(({ hasError:
|
|
4323
|
+
default: k(({ hasError: g, error: u }) => [
|
|
4320
4324
|
w(Us, {
|
|
4321
4325
|
"championship-name": e.championshipName,
|
|
4322
4326
|
"championship-id": e.championshipId,
|
|
@@ -4325,9 +4329,9 @@ const $s = {
|
|
|
4325
4329
|
}, {
|
|
4326
4330
|
default: k(({
|
|
4327
4331
|
sort: v,
|
|
4328
|
-
columns:
|
|
4332
|
+
columns: f,
|
|
4329
4333
|
rows: m,
|
|
4330
|
-
page:
|
|
4334
|
+
page: p,
|
|
4331
4335
|
range: x,
|
|
4332
4336
|
loading: P,
|
|
4333
4337
|
selectorProps: A,
|
|
@@ -4335,12 +4339,12 @@ const $s = {
|
|
|
4335
4339
|
onPaginatorChange: L,
|
|
4336
4340
|
onSort: y
|
|
4337
4341
|
}) => [
|
|
4338
|
-
|
|
4342
|
+
g ? (c(), $(n(Se), {
|
|
4339
4343
|
key: 0,
|
|
4340
4344
|
error: u
|
|
4341
|
-
}, null, 8, ["error"])) : (
|
|
4345
|
+
}, null, 8, ["error"])) : (c(), $(Ks, hr({ key: 1 }, A, fr(z)), null, 16)),
|
|
4342
4346
|
w(n(wr), {
|
|
4343
|
-
columns:
|
|
4347
|
+
columns: f,
|
|
4344
4348
|
rows: m.rows,
|
|
4345
4349
|
sort: v,
|
|
4346
4350
|
"is-loading": P,
|
|
@@ -4352,17 +4356,17 @@ const $s = {
|
|
|
4352
4356
|
"append-to": r.value,
|
|
4353
4357
|
onSort: y
|
|
4354
4358
|
}, null, 8, ["columns", "rows", "sort", "is-loading", "is-team-linked", "is-player-linked", "hide-columns", "append-to", "onSort"]),
|
|
4355
|
-
|
|
4359
|
+
d("div", Ys, [
|
|
4356
4360
|
w(n(ya), {
|
|
4357
|
-
page:
|
|
4361
|
+
page: p,
|
|
4358
4362
|
"items-per-page": t.limit,
|
|
4359
4363
|
"total-items": m.totalItems,
|
|
4360
4364
|
"range-length": 5,
|
|
4361
4365
|
onChange: L
|
|
4362
4366
|
}, null, 8, ["page", "items-per-page", "total-items", "onChange"]),
|
|
4363
|
-
m.totalItems > 0 ? (
|
|
4367
|
+
m.totalItems > 0 ? (c(), h("div", Hs, b(x.join("-")) + " / " + b(m.totalItems) + " db ", 1)) : I("", !0)
|
|
4364
4368
|
]),
|
|
4365
|
-
|
|
4369
|
+
d("div", {
|
|
4366
4370
|
ref_key: "tooltipContainer",
|
|
4367
4371
|
ref: r
|
|
4368
4372
|
}, null, 512)
|
|
@@ -4411,13 +4415,13 @@ function It(e, t) {
|
|
|
4411
4415
|
return Ba(Gt(ui(t, ["team", "id"])), me(lt))(e);
|
|
4412
4416
|
}
|
|
4413
4417
|
function ua(e, t) {
|
|
4414
|
-
return Ua(
|
|
4418
|
+
return Ua(gi(di, la(Ge(["player", "playerId"]), e), la(Ge(["player", "playerId"]), t)));
|
|
4415
4419
|
}
|
|
4416
4420
|
function tc({ goalieStats: e, fieldPlayers: t, playersPenalty: a }) {
|
|
4417
|
-
const r = me(Ge(["player", "playerId"]))(e), i =
|
|
4421
|
+
const r = me(Ge(["player", "playerId"]))(e), i = gt((u) => r.includes(u.player.playerId))(a), l = ai((u, v) => u.player.playerId === v, a, r), s = ua(t, i), g = ua(e, l);
|
|
4418
4422
|
return {
|
|
4419
4423
|
fieldPlayers: Jt(s),
|
|
4420
|
-
goalies: Jt(
|
|
4424
|
+
goalies: Jt(g)
|
|
4421
4425
|
};
|
|
4422
4426
|
}
|
|
4423
4427
|
function ac(e) {
|
|
@@ -4428,7 +4432,7 @@ function rc(e) {
|
|
|
4428
4432
|
return Number(e.jerseyNr);
|
|
4429
4433
|
}
|
|
4430
4434
|
function oc(e) {
|
|
4431
|
-
const t = e.city ?
|
|
4435
|
+
const t = e.city ? pi(si("city"), bi(/$/, ",")) : () => ({});
|
|
4432
4436
|
return ae(ni(" "), Ua, t, we(["type"]))(e);
|
|
4433
4437
|
}
|
|
4434
4438
|
const ic = {
|
|
@@ -4458,7 +4462,7 @@ const ic = {
|
|
|
4458
4462
|
championshipId: Number(r.championshipId) || Number(t.championshipId),
|
|
4459
4463
|
statistics: {},
|
|
4460
4464
|
isStatsLoading: !1
|
|
4461
|
-
}), { onError: i } =
|
|
4465
|
+
}), { onError: i } = pe(), { state: l } = D({
|
|
4462
4466
|
options: {
|
|
4463
4467
|
path: "/v2/team-info",
|
|
4464
4468
|
apiKey: t.apiKey,
|
|
@@ -4467,7 +4471,7 @@ const ic = {
|
|
|
4467
4471
|
},
|
|
4468
4472
|
transform: (y) => Zs(y),
|
|
4469
4473
|
onError: i
|
|
4470
|
-
}), { state: s, execute:
|
|
4474
|
+
}), { state: s, execute: g } = D({
|
|
4471
4475
|
options: {
|
|
4472
4476
|
path: "/v2/team-games",
|
|
4473
4477
|
apiKey: t.apiKey,
|
|
@@ -4489,7 +4493,7 @@ const ic = {
|
|
|
4489
4493
|
},
|
|
4490
4494
|
transform: (y) => ec(y, o.teamId),
|
|
4491
4495
|
onError: i
|
|
4492
|
-
}), { state:
|
|
4496
|
+
}), { state: f, execute: m } = D({
|
|
4493
4497
|
options: {
|
|
4494
4498
|
path: "/v2/players-stats",
|
|
4495
4499
|
apiKey: t.apiKey,
|
|
@@ -4497,7 +4501,7 @@ const ic = {
|
|
|
4497
4501
|
},
|
|
4498
4502
|
transform: (y) => It(y, o.teamId),
|
|
4499
4503
|
onError: i
|
|
4500
|
-
}), { state:
|
|
4504
|
+
}), { state: p, execute: x } = D({
|
|
4501
4505
|
options: {
|
|
4502
4506
|
path: "/v2/players-penalty",
|
|
4503
4507
|
apiKey: t.apiKey,
|
|
@@ -4529,7 +4533,7 @@ const ic = {
|
|
|
4529
4533
|
function L(y) {
|
|
4530
4534
|
switch (y) {
|
|
4531
4535
|
case Je:
|
|
4532
|
-
|
|
4536
|
+
g();
|
|
4533
4537
|
break;
|
|
4534
4538
|
case Qe:
|
|
4535
4539
|
v();
|
|
@@ -4539,15 +4543,15 @@ const ic = {
|
|
|
4539
4543
|
onFinished: () => {
|
|
4540
4544
|
o.isStatsLoading = !1, o.statistics = tc({
|
|
4541
4545
|
goalieStats: P.value,
|
|
4542
|
-
fieldPlayers:
|
|
4543
|
-
playersPenalty:
|
|
4546
|
+
fieldPlayers: f.value,
|
|
4547
|
+
playersPenalty: p.value
|
|
4544
4548
|
});
|
|
4545
4549
|
}
|
|
4546
4550
|
});
|
|
4547
4551
|
break;
|
|
4548
4552
|
}
|
|
4549
4553
|
}
|
|
4550
|
-
return (y, S) => xe(y.$slots, "default", ke(_e({ ...o, games: n(s), teamInfo: n(l), roster: n(u), fieldPlayers: n(
|
|
4554
|
+
return (y, S) => xe(y.$slots, "default", ke(_e({ ...o, games: n(s), teamInfo: n(l), roster: n(u), fieldPlayers: n(f), fieldPlayersPenalty: n(p), onChangePage: z })));
|
|
4551
4555
|
}
|
|
4552
4556
|
}, nc = { class: "is-heading-2" }, lc = {
|
|
4553
4557
|
__name: "Games",
|
|
@@ -4581,21 +4585,21 @@ const ic = {
|
|
|
4581
4585
|
null,
|
|
4582
4586
|
_(() => ({ offsetName: Et(/* @__PURE__ */ new Date(), null, "hu") }))
|
|
4583
4587
|
);
|
|
4584
|
-
return (o, i) => (
|
|
4585
|
-
|
|
4588
|
+
return (o, i) => (c(), h(O, null, [
|
|
4589
|
+
d("h2", nc, b(n(a)("teams.games")), 1),
|
|
4586
4590
|
w(er, {
|
|
4587
4591
|
rows: e.data,
|
|
4588
4592
|
columns: n(r),
|
|
4589
4593
|
"game-resolver": e.gameResolver,
|
|
4590
4594
|
"append-to": t.value
|
|
4591
4595
|
}, null, 8, ["rows", "columns", "game-resolver", "append-to"]),
|
|
4592
|
-
|
|
4596
|
+
d("div", {
|
|
4593
4597
|
ref_key: "tooltipContainer",
|
|
4594
4598
|
ref: t
|
|
4595
4599
|
}, null, 512)
|
|
4596
4600
|
], 64));
|
|
4597
4601
|
}
|
|
4598
|
-
}, sc = { class: "is-heading-2" }, cc = ["href"], dc = ["href"],
|
|
4602
|
+
}, sc = { class: "is-heading-2" }, cc = ["href"], dc = ["href"], gc = {
|
|
4599
4603
|
__name: "Info",
|
|
4600
4604
|
props: {
|
|
4601
4605
|
data: {
|
|
@@ -4605,8 +4609,8 @@ const ic = {
|
|
|
4605
4609
|
},
|
|
4606
4610
|
setup(e) {
|
|
4607
4611
|
const t = e, a = K(null), { t: r } = Q(), { columns: o } = ee(Qs), i = _(() => me((l) => ({ ...l, teamKeyIntl: r(`teams.info.${l.teamKey}`) }))(t.data));
|
|
4608
|
-
return (l, s) => (
|
|
4609
|
-
|
|
4612
|
+
return (l, s) => (c(), h("div", null, [
|
|
4613
|
+
d("h2", sc, b(n(r)("teams.teamInfo")), 1),
|
|
4610
4614
|
w(n(ie), null, {
|
|
4611
4615
|
default: k(() => [
|
|
4612
4616
|
w(n(ce), {
|
|
@@ -4614,29 +4618,29 @@ const ic = {
|
|
|
4614
4618
|
rows: i.value,
|
|
4615
4619
|
"append-to": a.value
|
|
4616
4620
|
}, {
|
|
4617
|
-
"cell-teamValue": k(({ row:
|
|
4618
|
-
|
|
4621
|
+
"cell-teamValue": k(({ row: g }) => [
|
|
4622
|
+
g.teamKey === "organizationEmail" ? (c(), h("a", {
|
|
4619
4623
|
key: 0,
|
|
4620
|
-
href: `mailto:${
|
|
4621
|
-
}, b(
|
|
4622
|
-
|
|
4624
|
+
href: `mailto:${g.teamValue}`
|
|
4625
|
+
}, b(g.teamValue), 9, cc)) : I("", !0),
|
|
4626
|
+
g.teamKey === "organizationWebpage" ? (c(), h("a", {
|
|
4623
4627
|
key: 1,
|
|
4624
|
-
href: `https://${
|
|
4628
|
+
href: `https://${g.teamValue}`,
|
|
4625
4629
|
target: "_blank"
|
|
4626
|
-
}, b(
|
|
4630
|
+
}, b(g.teamValue), 9, dc)) : I("", !0)
|
|
4627
4631
|
]),
|
|
4628
4632
|
_: 1
|
|
4629
4633
|
}, 8, ["columns", "rows", "append-to"])
|
|
4630
4634
|
]),
|
|
4631
4635
|
_: 1
|
|
4632
4636
|
}),
|
|
4633
|
-
|
|
4637
|
+
d("div", {
|
|
4634
4638
|
ref_key: "tooltipContainer",
|
|
4635
4639
|
ref: a
|
|
4636
4640
|
}, null, 512)
|
|
4637
4641
|
]));
|
|
4638
4642
|
}
|
|
4639
|
-
},
|
|
4643
|
+
}, pc = { class: "is-heading-2" }, uc = {
|
|
4640
4644
|
__name: "Roster",
|
|
4641
4645
|
props: {
|
|
4642
4646
|
data: {
|
|
@@ -4658,9 +4662,9 @@ const ic = {
|
|
|
4658
4662
|
},
|
|
4659
4663
|
setup(e) {
|
|
4660
4664
|
const t = K(null), { t: a } = Q(), { columns: r } = ee(we(["teamName"], Za));
|
|
4661
|
-
return (o, i) => (
|
|
4662
|
-
(
|
|
4663
|
-
|
|
4665
|
+
return (o, i) => (c(), h(O, null, [
|
|
4666
|
+
(c(!0), h(O, null, U(e.data, (l, s) => (c(), h(O, { key: s }, [
|
|
4667
|
+
d("h2", pc, b(n(a)(`teams.${s}`)), 1),
|
|
4664
4668
|
w(rr, {
|
|
4665
4669
|
rows: l,
|
|
4666
4670
|
columns: n(r),
|
|
@@ -4669,7 +4673,7 @@ const ic = {
|
|
|
4669
4673
|
"append-to": t.value
|
|
4670
4674
|
}, null, 8, ["rows", "columns", "championship-id", "player-resolver", "append-to"])
|
|
4671
4675
|
], 64))), 128)),
|
|
4672
|
-
|
|
4676
|
+
d("div", {
|
|
4673
4677
|
ref_key: "tooltipContainer",
|
|
4674
4678
|
ref: t
|
|
4675
4679
|
}, null, 512)
|
|
@@ -4721,8 +4725,8 @@ const ic = {
|
|
|
4721
4725
|
],
|
|
4722
4726
|
Ne
|
|
4723
4727
|
), r = K(null), { t: o } = Q(), { columns: i } = ee(t), { columns: l } = ee(a);
|
|
4724
|
-
return (s,
|
|
4725
|
-
|
|
4728
|
+
return (s, g) => (c(), h("div", null, [
|
|
4729
|
+
d("h2", bc, b(n(o)("teams.fieldPlayers")), 1),
|
|
4726
4730
|
w(n(ie), null, {
|
|
4727
4731
|
default: k(() => [
|
|
4728
4732
|
w(n(ce), {
|
|
@@ -4732,8 +4736,8 @@ const ic = {
|
|
|
4732
4736
|
"append-to": r.value
|
|
4733
4737
|
}, {
|
|
4734
4738
|
"cell-playerPortrait": k(({ row: u }) => [
|
|
4735
|
-
|
|
4736
|
-
(
|
|
4739
|
+
d("div", mc, [
|
|
4740
|
+
(c(), $(n(V), {
|
|
4737
4741
|
key: u.player.playerId,
|
|
4738
4742
|
src: u.player.picture,
|
|
4739
4743
|
"default-src": n(Zt)
|
|
@@ -4741,7 +4745,7 @@ const ic = {
|
|
|
4741
4745
|
])
|
|
4742
4746
|
]),
|
|
4743
4747
|
"cell-name": k(({ row: u }) => [
|
|
4744
|
-
|
|
4748
|
+
d("a", {
|
|
4745
4749
|
href: e.externalPlayerResolver({ ...u, championshipId: e.championshipId }),
|
|
4746
4750
|
textContent: b(u.name)
|
|
4747
4751
|
}, null, 8, vc)
|
|
@@ -4751,7 +4755,7 @@ const ic = {
|
|
|
4751
4755
|
]),
|
|
4752
4756
|
_: 1
|
|
4753
4757
|
}),
|
|
4754
|
-
|
|
4758
|
+
d("h2", hc, b(n(o)("teams.goalies")), 1),
|
|
4755
4759
|
w(n(ie), null, {
|
|
4756
4760
|
default: k(() => [
|
|
4757
4761
|
w(n(ce), {
|
|
@@ -4761,8 +4765,8 @@ const ic = {
|
|
|
4761
4765
|
"append-to": r.value
|
|
4762
4766
|
}, {
|
|
4763
4767
|
"cell-playerPortrait": k(({ row: u }) => [
|
|
4764
|
-
|
|
4765
|
-
(
|
|
4768
|
+
d("div", fc, [
|
|
4769
|
+
(c(), $(n(V), {
|
|
4766
4770
|
key: u.player.playerId,
|
|
4767
4771
|
src: u.player.picture,
|
|
4768
4772
|
"default-src": n(Zt)
|
|
@@ -4770,7 +4774,7 @@ const ic = {
|
|
|
4770
4774
|
])
|
|
4771
4775
|
]),
|
|
4772
4776
|
"cell-name": k(({ row: u }) => [
|
|
4773
|
-
|
|
4777
|
+
d("a", {
|
|
4774
4778
|
href: e.externalPlayerResolver({ ...u, championshipId: e.championshipId }),
|
|
4775
4779
|
textContent: b(u.name)
|
|
4776
4780
|
}, null, 8, yc)
|
|
@@ -4780,7 +4784,7 @@ const ic = {
|
|
|
4780
4784
|
]),
|
|
4781
4785
|
_: 1
|
|
4782
4786
|
}),
|
|
4783
|
-
|
|
4787
|
+
d("div", {
|
|
4784
4788
|
ref_key: "tooltipContainer",
|
|
4785
4789
|
ref: r
|
|
4786
4790
|
}, null, 512)
|
|
@@ -4819,15 +4823,15 @@ const ic = {
|
|
|
4819
4823
|
},
|
|
4820
4824
|
setup(e) {
|
|
4821
4825
|
const t = e, a = { en: ue, hu: be }, r = (i) => Ot(t.externalPlayerResolver, i), o = (i) => nt(t.externalGameResolver, i);
|
|
4822
|
-
return (i, l) => (
|
|
4823
|
-
w(n(
|
|
4826
|
+
return (i, l) => (c(), h("div", _c, [
|
|
4827
|
+
w(n(ge), {
|
|
4824
4828
|
locale: t.locale,
|
|
4825
4829
|
messages: a
|
|
4826
4830
|
}, {
|
|
4827
4831
|
default: k(({ t: s }) => [
|
|
4828
4832
|
w(n(ze), null, {
|
|
4829
|
-
default: k(({ hasError:
|
|
4830
|
-
|
|
4833
|
+
default: k(({ hasError: g, error: u }) => [
|
|
4834
|
+
g ? (c(), $(n(Se), {
|
|
4831
4835
|
key: 0,
|
|
4832
4836
|
error: u
|
|
4833
4837
|
}, null, 8, ["error"])) : I("", !0),
|
|
@@ -4838,59 +4842,59 @@ const ic = {
|
|
|
4838
4842
|
}, {
|
|
4839
4843
|
default: k(({
|
|
4840
4844
|
teamInfo: v,
|
|
4841
|
-
page:
|
|
4845
|
+
page: f,
|
|
4842
4846
|
roster: m,
|
|
4843
|
-
games:
|
|
4847
|
+
games: p,
|
|
4844
4848
|
statistics: x,
|
|
4845
4849
|
isStatsLoading: P,
|
|
4846
4850
|
onChangePage: A
|
|
4847
4851
|
}) => {
|
|
4848
4852
|
var z, L, y, S, T;
|
|
4849
4853
|
return [
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
(
|
|
4854
|
+
d("h1", zc, b((z = v == null ? void 0 : v.team) == null ? void 0 : z.longName), 1),
|
|
4855
|
+
d("div", Sc, [
|
|
4856
|
+
d("div", Tc, [
|
|
4857
|
+
(c(), $(n(V), {
|
|
4854
4858
|
key: (L = v == null ? void 0 : v.team) == null ? void 0 : L.id,
|
|
4855
4859
|
src: (y = v == null ? void 0 : v.team) == null ? void 0 : y.teamPhoto,
|
|
4856
4860
|
"default-src": "https://www.ersteliga.hu/assets/images/logo_liga@2x.png"
|
|
4857
4861
|
}, null, 8, ["src"]))
|
|
4858
4862
|
]),
|
|
4859
|
-
|
|
4860
|
-
(
|
|
4863
|
+
d("div", Ic, [
|
|
4864
|
+
(c(), $(n(V), {
|
|
4861
4865
|
key: (S = v == null ? void 0 : v.team) == null ? void 0 : S.id,
|
|
4862
4866
|
src: (T = v == null ? void 0 : v.team) == null ? void 0 : T.logo
|
|
4863
4867
|
}, null, 8, ["src"]))
|
|
4864
4868
|
])
|
|
4865
4869
|
]),
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
class: G(["tab-button", { "is-active":
|
|
4870
|
+
d("div", Pc, [
|
|
4871
|
+
d("button", {
|
|
4872
|
+
class: G(["tab-button", { "is-active": f === n(He) }]),
|
|
4869
4873
|
onClick: (C) => A(n(He))
|
|
4870
4874
|
}, b(s("teams.tabs.teamInfo")), 11, Nc),
|
|
4871
|
-
|
|
4872
|
-
class: G(["tab-button", { "is-active":
|
|
4875
|
+
d("button", {
|
|
4876
|
+
class: G(["tab-button", { "is-active": f === n(Je) }]),
|
|
4873
4877
|
onClick: (C) => A(n(Je))
|
|
4874
4878
|
}, b(s("teams.tabs.games")), 11, $c),
|
|
4875
|
-
|
|
4876
|
-
class: G(["tab-button", { "is-active":
|
|
4879
|
+
d("button", {
|
|
4880
|
+
class: G(["tab-button", { "is-active": f === n(Xe) }]),
|
|
4877
4881
|
onClick: (C) => A(n(Xe))
|
|
4878
4882
|
}, b(s("teams.playerStats")), 11, Ac),
|
|
4879
|
-
|
|
4880
|
-
class: G(["tab-button", { "is-active":
|
|
4883
|
+
d("button", {
|
|
4884
|
+
class: G(["tab-button", { "is-active": f === n(Qe) }]),
|
|
4881
4885
|
onClick: (C) => A(n(Qe))
|
|
4882
4886
|
}, b(s("teams.roster")), 11, Lc)
|
|
4883
4887
|
]),
|
|
4884
|
-
|
|
4888
|
+
f === n(He) ? (c(), $(gc, {
|
|
4885
4889
|
key: 0,
|
|
4886
4890
|
data: v.organizationInfo
|
|
4887
4891
|
}, null, 8, ["data"])) : I("", !0),
|
|
4888
|
-
|
|
4892
|
+
f === n(Je) ? (c(), $(lc, {
|
|
4889
4893
|
key: 1,
|
|
4890
|
-
data:
|
|
4894
|
+
data: p,
|
|
4891
4895
|
"game-resolver": o
|
|
4892
4896
|
}, null, 8, ["data"])) : I("", !0),
|
|
4893
|
-
|
|
4897
|
+
f === n(Xe) ? (c(), $(wc, {
|
|
4894
4898
|
key: 2,
|
|
4895
4899
|
"field-players": x.fieldPlayers,
|
|
4896
4900
|
goalies: x.goalies,
|
|
@@ -4898,7 +4902,7 @@ const ic = {
|
|
|
4898
4902
|
"is-loading": P,
|
|
4899
4903
|
"external-player-resolver": r
|
|
4900
4904
|
}, null, 8, ["field-players", "goalies", "championship-id", "is-loading"])) : I("", !0),
|
|
4901
|
-
|
|
4905
|
+
f === n(Qe) ? (c(), $(uc, {
|
|
4902
4906
|
key: 3,
|
|
4903
4907
|
data: m,
|
|
4904
4908
|
"championship-id": e.championshipId,
|
|
@@ -4937,7 +4941,7 @@ const ic = {
|
|
|
4937
4941
|
championshipName: t.championshipName,
|
|
4938
4942
|
seasons: [],
|
|
4939
4943
|
championshipId: Number(a.championshipId) || 0
|
|
4940
|
-
}), { onError: o } =
|
|
4944
|
+
}), { onError: o } = pe(), { isLoading: i, execute: l } = D({
|
|
4941
4945
|
options: {
|
|
4942
4946
|
path: "/v2/championship-seasons",
|
|
4943
4947
|
apiKey: t.apiKey,
|
|
@@ -4947,7 +4951,7 @@ const ic = {
|
|
|
4947
4951
|
onError: o
|
|
4948
4952
|
}), {
|
|
4949
4953
|
isLoading: s,
|
|
4950
|
-
state:
|
|
4954
|
+
state: g,
|
|
4951
4955
|
execute: u
|
|
4952
4956
|
} = D({
|
|
4953
4957
|
options: {
|
|
@@ -4959,14 +4963,14 @@ const ic = {
|
|
|
4959
4963
|
onError: o
|
|
4960
4964
|
}), v = Lt([i, s], { delay: 1e3 });
|
|
4961
4965
|
te([l, u]);
|
|
4962
|
-
function
|
|
4966
|
+
function f(m) {
|
|
4963
4967
|
r.championshipId = m, a.championshipId = m, te([u]);
|
|
4964
4968
|
}
|
|
4965
|
-
return (m,
|
|
4969
|
+
return (m, p) => xe(m.$slots, "default", ke(_e({
|
|
4966
4970
|
...r,
|
|
4967
|
-
teams: n(
|
|
4971
|
+
teams: n(g),
|
|
4968
4972
|
isLoading: n(v),
|
|
4969
|
-
changeSeason:
|
|
4973
|
+
changeSeason: f
|
|
4970
4974
|
})));
|
|
4971
4975
|
}
|
|
4972
4976
|
}, jc = ".wrapped-grid{--min-width: 300px;--max-width: 1fr;display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--min-width),var(--max-width)));gap:30px;padding-block:20px;text-align:center}.wrapped-grid a{display:flex;flex-direction:column;align-items:center;row-gap:20px}.wrapped-grid .is-team-logo{display:block;width:100%;aspect-ratio:1}", Rc = {
|
|
@@ -4998,15 +5002,15 @@ const ic = {
|
|
|
4998
5002
|
function r(o, i) {
|
|
4999
5003
|
return st(t.externalTeamResolver, { team: { id: o }, championshipId: i });
|
|
5000
5004
|
}
|
|
5001
|
-
return (o, i) => (
|
|
5002
|
-
w(n(
|
|
5005
|
+
return (o, i) => (c(), h("div", null, [
|
|
5006
|
+
w(n(ge), {
|
|
5003
5007
|
locale: t.locale,
|
|
5004
5008
|
messages: a
|
|
5005
5009
|
}, {
|
|
5006
5010
|
default: k(() => [
|
|
5007
5011
|
w(n(ze), null, {
|
|
5008
5012
|
default: k(({ error: l, hasError: s }) => [
|
|
5009
|
-
s ? (
|
|
5013
|
+
s ? (c(), $(n(Se), {
|
|
5010
5014
|
key: 0,
|
|
5011
5015
|
error: l
|
|
5012
5016
|
}, null, 8, ["error"])) : I("", !0),
|
|
@@ -5015,27 +5019,27 @@ const ic = {
|
|
|
5015
5019
|
locale: e.locale,
|
|
5016
5020
|
"championship-name": e.championshipName
|
|
5017
5021
|
}, {
|
|
5018
|
-
default: k(({ teams:
|
|
5022
|
+
default: k(({ teams: g, seasons: u, isLoading: v, championshipId: f, changeSeason: m }) => [
|
|
5019
5023
|
w(n(fa), {
|
|
5020
5024
|
seasons: u,
|
|
5021
|
-
"championship-id":
|
|
5025
|
+
"championship-id": f,
|
|
5022
5026
|
"is-section-selection-disabled": "",
|
|
5023
5027
|
onOnChangeSeason: m
|
|
5024
5028
|
}, null, 8, ["seasons", "championship-id", "onOnChangeSeason"]),
|
|
5025
|
-
v ? (
|
|
5026
|
-
(
|
|
5027
|
-
key:
|
|
5029
|
+
v ? (c(), $(n(at), { key: 0 })) : (c(), h("ul", Rc, [
|
|
5030
|
+
(c(!0), h(O, null, U(g, (p) => (c(), h("li", {
|
|
5031
|
+
key: p.teamId
|
|
5028
5032
|
}, [
|
|
5029
|
-
|
|
5030
|
-
href: r(
|
|
5033
|
+
d("a", {
|
|
5034
|
+
href: r(p.teamId, f),
|
|
5031
5035
|
class: "is-text-lg is-text-bold"
|
|
5032
5036
|
}, [
|
|
5033
|
-
(
|
|
5034
|
-
key:
|
|
5037
|
+
(c(), $(n(V), {
|
|
5038
|
+
key: p.teamId,
|
|
5035
5039
|
class: "is-team-logo",
|
|
5036
|
-
src:
|
|
5040
|
+
src: p.teamLogo
|
|
5037
5041
|
}, null, 8, ["src"])),
|
|
5038
|
-
W(" " + b(
|
|
5042
|
+
W(" " + b(p.teamName), 1)
|
|
5039
5043
|
], 8, Fc)
|
|
5040
5044
|
]))), 128))
|
|
5041
5045
|
]))
|