@mjsz-vbr-elements/liga 2.16.0 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +791 -790
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/liga
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.17.0 - 15/02/2025, 13:12:02
|
|
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 dr, 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 gr, unref as n, renderSlot as xe, normalizeProps as ke, guardReactiveProps as _e, openBlock as d, createBlock as $, withCtx as
|
|
9
|
-
import { ResponsiveTable as ie, DataTable as ce, FloatingPanel as ha, Image as V, I18NProvider as pe, ErrorProvider as ze, ErrorNotice as Se, SeasonSelector as fa, Paginator as ya,
|
|
8
|
+
import { getCurrentScope as dr, 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 gr, unref as n, renderSlot as xe, normalizeProps as ke, guardReactiveProps as _e, openBlock as d, createBlock as $, withCtx as x, createVNode as w, createElementVNode as c, normalizeClass as G, toDisplayString as u, createElementBlock as h, createCommentVNode as I, createTextVNode as W, setBlockTracking as Wt, Fragment as O, renderList as U, toRefs as va, toRef as ur, withDirectives as br, vModelText as mr, mergeProps as vr, toHandlers as hr, defineCustomElement as de } from "vue";
|
|
9
|
+
import { ResponsiveTable as ie, DataTable as ce, FloatingPanel as ha, Image as V, I18NProvider as pe, ErrorProvider as ze, ErrorNotice as Se, SeasonSelector as fa, Paginator as ya, LoadingIndicator as at, BaseSelect as re, TimezoneSelector as fr, AdditionalStandingsText as Yt, StatisticsTable as yr } from "@mjsz-vbr-elements/core/components";
|
|
10
10
|
import { useError as ge, useServices as D, useI18n as Q, useColumns as ee, usePage as wa, useSort as At, useLazyLoadingState as Lt, useScrollToGameDate as wr, useVisibilityChange as xr, fetchVBRData as Be } from "@mjsz-vbr-elements/core/composables";
|
|
11
|
-
import { WidgetError as xa, InvalidSeasonName as Ze, yearToNow as kr, rawConvert as
|
|
12
|
-
import * as
|
|
11
|
+
import { WidgetError as xa, InvalidSeasonName as Ze, yearToNow as kr, 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 _r, scrollToTop as Ht, convertPhaseName as zr, convertTimesSecToMin as Sr, upperCase as Tr, localeSort as Jt } from "@mjsz-vbr-elements/core/utils";
|
|
12
|
+
import * as xt from "@mjsz-vbr-elements/core";
|
|
13
13
|
import { SORT_STATE_ASCEND as Ce, DEFAULT_PORTRAIT_IMAGE_URL as Ir, REFRESH_DELAY as Xt, gameProps as Pr, SORT_STATE_DESCEND as B, playerStatsProps as Nr, teamStatsProps as $r } from "@mjsz-vbr-elements/core";
|
|
14
14
|
import { COLUMNS_STANDINGS_P_3 as Ar, COLUMNS_FIELD_PLAYERS as Ve, COLUMNS_FIELD_PLAYERS_PENALTY as Lr, COLUMNS_FIELD_PLAYERS_TOI as Cr, COLUMNS_GOALIES as Qt, COLUMNS_TEAM_ATTENDANCE as Er, COLUMNS_TEAMS_FAIRPLAY as Or, COLUMNS_TEAMS_PENALTY_KILLING as jr, COLUMNS_TEAMS_POWERPLAY as Rr, COLUMNS_SCORING_EFFICIENCY as Fr } from "@mjsz-vbr-elements/core/columns";
|
|
15
15
|
import { DEFAULT_PORTRAIT_IMAGE_URL as Zt } from "@mjsz-vbr-elements/core/constants";
|
|
@@ -61,7 +61,7 @@ function io(e = Pa) {
|
|
|
61
61
|
};
|
|
62
62
|
return { isActive: ba(t), pause: a, resume: r, eventFilter: o };
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function kt(e) {
|
|
65
65
|
return Array.isArray(e) ? e : [e];
|
|
66
66
|
}
|
|
67
67
|
function no(e, t, a = {}) {
|
|
@@ -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,23 +102,23 @@ 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
|
-
function
|
|
108
|
+
function b() {
|
|
109
109
|
const v = $e(t);
|
|
110
110
|
v <= 0 || (l.value = !0, o && e(), s(), l.value && (i = setInterval(e, v)));
|
|
111
111
|
}
|
|
112
|
-
if (r && Re &&
|
|
112
|
+
if (r && Re && b(), Ie(t) || typeof t == "function") {
|
|
113
113
|
const v = se(t, () => {
|
|
114
|
-
l.value && Re &&
|
|
114
|
+
l.value && Re && b();
|
|
115
115
|
});
|
|
116
116
|
je(v);
|
|
117
117
|
}
|
|
118
|
-
return je(
|
|
118
|
+
return je(g), {
|
|
119
119
|
isActive: l,
|
|
120
|
-
pause:
|
|
121
|
-
resume:
|
|
120
|
+
pause: g,
|
|
121
|
+
resume: b
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
function Na(e, t, a = {}) {
|
|
@@ -132,14 +132,14 @@ function Na(e, t, a = {}) {
|
|
|
132
132
|
function s() {
|
|
133
133
|
o.value = !1, l();
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function g(...b) {
|
|
136
136
|
l(), o.value = !0, i = setTimeout(() => {
|
|
137
|
-
o.value = !1, i = null, e(...
|
|
137
|
+
o.value = !1, i = null, e(...b);
|
|
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
|
}
|
|
@@ -166,28 +166,28 @@ function Aa(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 =
|
|
171
|
-
return s.every((
|
|
169
|
+
}, r = (s, g, b, v) => (s.addEventListener(g, b, v), () => s.removeEventListener(g, b, 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
|
-
(
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
(g = (s = o.value) == null ? void 0 : s.map((b) => Aa(b))) != null ? g : [$a].filter((b) => b != null),
|
|
177
|
+
kt($e(o.value ? e[1] : e[0])),
|
|
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, b, v]) => {
|
|
184
|
+
if (a(), !(s != null && s.length) || !(g != null && g.length) || !(b != null && b.length))
|
|
185
185
|
return;
|
|
186
|
-
const
|
|
186
|
+
const y = ro(v) ? { ...v } : v;
|
|
187
187
|
t.push(
|
|
188
188
|
...s.flatMap(
|
|
189
|
-
(m) =>
|
|
190
|
-
(
|
|
189
|
+
(m) => g.flatMap(
|
|
190
|
+
(p) => b.map((z) => r(m, p, z, y))
|
|
191
191
|
)
|
|
192
192
|
)
|
|
193
193
|
);
|
|
@@ -209,30 +209,30 @@ 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), b = K(-1);
|
|
213
213
|
if (!e || e.length === 0)
|
|
214
214
|
return o(), {
|
|
215
|
-
activeIndex:
|
|
216
|
-
result:
|
|
215
|
+
activeIndex: b,
|
|
216
|
+
result: g
|
|
217
217
|
};
|
|
218
|
-
function v(
|
|
219
|
-
|
|
218
|
+
function v(y, m) {
|
|
219
|
+
b.value++, g[b.value].data = m, g[b.value].state = y;
|
|
220
220
|
}
|
|
221
|
-
return e.reduce((
|
|
221
|
+
return e.reduce((y, m) => y.then((p) => {
|
|
222
222
|
var z;
|
|
223
223
|
if (i != null && i.aborted) {
|
|
224
224
|
v(l.aborted, new Error("aborted"));
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
|
-
if (((z =
|
|
227
|
+
if (((z = g[b.value]) == null ? void 0 : z.state) === l.rejected && a) {
|
|
228
228
|
o();
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
|
-
const
|
|
232
|
-
return i ? Promise.race([
|
|
233
|
-
}).catch((
|
|
234
|
-
activeIndex:
|
|
235
|
-
result:
|
|
231
|
+
const P = m(p).then((k) => (v(l.fulfilled, k), b.value === e.length - 1 && o(), k));
|
|
232
|
+
return i ? Promise.race([P, go(i)]) : P;
|
|
233
|
+
}).catch((p) => i != null && i.aborted ? (v(l.aborted, p), p) : (v(l.rejected, p), r(), p)), Promise.resolve()), {
|
|
234
|
+
activeIndex: b,
|
|
235
|
+
result: g
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
function go(e) {
|
|
@@ -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,18 +274,18 @@ function Te(e = "history", t = {}) {
|
|
|
274
274
|
} = t;
|
|
275
275
|
if (!s)
|
|
276
276
|
return Z(a);
|
|
277
|
-
const
|
|
278
|
-
function
|
|
277
|
+
const g = Z({});
|
|
278
|
+
function b() {
|
|
279
279
|
if (e === "history")
|
|
280
280
|
return s.location.search || "";
|
|
281
281
|
if (e === "hash") {
|
|
282
|
-
const
|
|
283
|
-
return S > 0 ?
|
|
282
|
+
const f = s.location.hash || "", S = f.indexOf("?");
|
|
283
|
+
return S > 0 ? f.slice(S) : "";
|
|
284
284
|
} else
|
|
285
285
|
return (s.location.hash || "").replace(/^#/, "");
|
|
286
286
|
}
|
|
287
|
-
function v(
|
|
288
|
-
const S =
|
|
287
|
+
function v(f) {
|
|
288
|
+
const S = f.toString();
|
|
289
289
|
if (e === "history")
|
|
290
290
|
return `${S ? `?${S}` : ""}${s.location.hash || ""}`;
|
|
291
291
|
if (e === "hash-params")
|
|
@@ -293,69 +293,69 @@ 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
|
|
297
|
-
return new URLSearchParams(
|
|
296
|
+
function y() {
|
|
297
|
+
return new URLSearchParams(b());
|
|
298
298
|
}
|
|
299
|
-
function m(
|
|
300
|
-
const S = new Set(Object.keys(
|
|
301
|
-
for (const T of
|
|
302
|
-
const C =
|
|
303
|
-
|
|
299
|
+
function m(f) {
|
|
300
|
+
const S = new Set(Object.keys(g));
|
|
301
|
+
for (const T of f.keys()) {
|
|
302
|
+
const C = f.getAll(T);
|
|
303
|
+
g[T] = C.length > 1 ? C : f.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: z } = lo(
|
|
308
|
+
g,
|
|
309
309
|
() => {
|
|
310
|
-
const
|
|
311
|
-
Object.keys(
|
|
312
|
-
const T =
|
|
313
|
-
Array.isArray(T) ? T.forEach((C) =>
|
|
314
|
-
}),
|
|
310
|
+
const f = new URLSearchParams("");
|
|
311
|
+
Object.keys(g).forEach((S) => {
|
|
312
|
+
const T = g[S];
|
|
313
|
+
Array.isArray(T) ? T.forEach((C) => f.append(S, C)) : r && T == null || o && !T ? f.delete(S) : f.set(S, T);
|
|
314
|
+
}), P(f, !1);
|
|
315
315
|
},
|
|
316
316
|
{ deep: !0 }
|
|
317
317
|
);
|
|
318
|
-
function
|
|
319
|
-
|
|
318
|
+
function P(f, S) {
|
|
319
|
+
p(), S && m(f), l === "replace" ? s.history.replaceState(
|
|
320
320
|
s.history.state,
|
|
321
321
|
s.document.title,
|
|
322
|
-
s.location.pathname + v(
|
|
322
|
+
s.location.pathname + v(f)
|
|
323
323
|
) : s.history.pushState(
|
|
324
324
|
s.history.state,
|
|
325
325
|
s.document.title,
|
|
326
|
-
s.location.pathname + v(
|
|
326
|
+
s.location.pathname + v(f)
|
|
327
327
|
), z();
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
i &&
|
|
329
|
+
function k() {
|
|
330
|
+
i && P(y(), !0);
|
|
331
331
|
}
|
|
332
332
|
const A = { passive: !0 };
|
|
333
|
-
ea(s, "popstate",
|
|
334
|
-
const L =
|
|
335
|
-
return L.keys().next().value ? m(L) : Object.assign(
|
|
333
|
+
ea(s, "popstate", k, A), e !== "history" && ea(s, "hashchange", k, A);
|
|
334
|
+
const L = y();
|
|
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:
|
|
342
|
-
eventName:
|
|
341
|
+
passive: g = !1,
|
|
342
|
+
eventName: b,
|
|
343
343
|
deep: v = !1,
|
|
344
|
-
defaultValue:
|
|
344
|
+
defaultValue: y,
|
|
345
345
|
shouldEmit: m
|
|
346
|
-
} = r,
|
|
347
|
-
let
|
|
348
|
-
t || (t = "modelValue"),
|
|
349
|
-
const
|
|
350
|
-
m ? m(
|
|
346
|
+
} = r, p = gr(), z = 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
|
+
let P = b;
|
|
348
|
+
t || (t = "modelValue"), P = P || `update:${t.toString()}`;
|
|
349
|
+
const k = (f) => s ? typeof s == "function" ? s(f) : uo(f) : f, A = () => to(e[t]) ? k(e[t]) : y, L = (f) => {
|
|
350
|
+
m ? m(f) && z(P, f) : z(P, f);
|
|
351
351
|
};
|
|
352
|
-
if (
|
|
353
|
-
const
|
|
352
|
+
if (g) {
|
|
353
|
+
const f = A(), S = K(f);
|
|
354
354
|
let T = !1;
|
|
355
355
|
return se(
|
|
356
356
|
() => e[t],
|
|
357
357
|
(C) => {
|
|
358
|
-
T || (T = !0, S.value =
|
|
358
|
+
T || (T = !0, S.value = k(C), ma(() => T = !1));
|
|
359
359
|
}
|
|
360
360
|
), se(
|
|
361
361
|
S,
|
|
@@ -369,8 +369,8 @@ function mo(e, t, a, r = {}) {
|
|
|
369
369
|
get() {
|
|
370
370
|
return A();
|
|
371
371
|
},
|
|
372
|
-
set(
|
|
373
|
-
L(
|
|
372
|
+
set(f) {
|
|
373
|
+
L(f);
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
376
|
}
|
|
@@ -411,7 +411,7 @@ function F(e) {
|
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function ct(e, t) {
|
|
415
415
|
switch (e) {
|
|
416
416
|
case 0:
|
|
417
417
|
return function() {
|
|
@@ -442,19 +442,19 @@ function st(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, b) {
|
|
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, b, 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, b, v, y) {
|
|
458
458
|
return t.apply(this, arguments);
|
|
459
459
|
};
|
|
460
460
|
default:
|
|
@@ -464,14 +464,14 @@ function st(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
|
-
return !s && i <= 0 ? a.apply(this, r) :
|
|
470
|
+
return !s && i <= 0 ? a.apply(this, r) : ct(Math.max(0, i), jt(e, r, a));
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
var Ca = /* @__PURE__ */ F(function(t, a) {
|
|
474
|
-
return t === 1 ? M(a) :
|
|
474
|
+
return t === 1 ? M(a) : ct(t, jt(t, [], a));
|
|
475
475
|
});
|
|
476
476
|
function Y(e) {
|
|
477
477
|
return function t(a, r, o) {
|
|
@@ -551,7 +551,7 @@ function ta(e) {
|
|
|
551
551
|
t.push(a.value);
|
|
552
552
|
return t;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Pt(e, t, a) {
|
|
555
555
|
for (var r = 0, o = a.length; r < o; ) {
|
|
556
556
|
if (e(t, a[r]))
|
|
557
557
|
return !0;
|
|
@@ -569,7 +569,7 @@ function X(e, t) {
|
|
|
569
569
|
function yo(e, t) {
|
|
570
570
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
571
571
|
}
|
|
572
|
-
const
|
|
572
|
+
const _t = typeof Object.is == "function" ? Object.is : yo;
|
|
573
573
|
var aa = Object.prototype.toString, Ea = /* @__PURE__ */ function() {
|
|
574
574
|
return aa.call(arguments) === "[object Arguments]" ? function(t) {
|
|
575
575
|
return aa.call(t) === "[object Arguments]";
|
|
@@ -599,23 +599,23 @@ var aa = Object.prototype.toString, Ea = /* @__PURE__ */ function() {
|
|
|
599
599
|
for (r = ra.length - 1; r >= 0; )
|
|
600
600
|
a = ra[r], X(a, t) && !xo(o, a) && (o[o.length] = a), r -= 1;
|
|
601
601
|
return o;
|
|
602
|
-
}),
|
|
602
|
+
}), Nt = /* @__PURE__ */ M(function(t) {
|
|
603
603
|
return t === null ? "Null" : t === void 0 ? "Undefined" : Object.prototype.toString.call(t).slice(8, -1);
|
|
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 !
|
|
611
|
-
return !
|
|
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) {
|
|
615
|
-
if (
|
|
615
|
+
if (_t(e, t))
|
|
616
616
|
return !0;
|
|
617
|
-
var o =
|
|
618
|
-
if (o !==
|
|
617
|
+
var o = Nt(e);
|
|
618
|
+
if (o !== Nt(t))
|
|
619
619
|
return !1;
|
|
620
620
|
if (typeof e["fantasy-land/equals"] == "function" || typeof t["fantasy-land/equals"] == "function")
|
|
621
621
|
return typeof e["fantasy-land/equals"] == "function" && e["fantasy-land/equals"](t) && typeof t["fantasy-land/equals"] == "function" && t["fantasy-land/equals"](e);
|
|
@@ -631,11 +631,11 @@ function Ft(e, t, a, r) {
|
|
|
631
631
|
case "Boolean":
|
|
632
632
|
case "Number":
|
|
633
633
|
case "String":
|
|
634
|
-
if (!(typeof e == typeof t &&
|
|
634
|
+
if (!(typeof e == typeof t && _t(e.valueOf(), t.valueOf())))
|
|
635
635
|
return !1;
|
|
636
636
|
break;
|
|
637
637
|
case "Date":
|
|
638
|
-
if (!
|
|
638
|
+
if (!_t(e.valueOf(), t.valueOf()))
|
|
639
639
|
return !1;
|
|
640
640
|
break;
|
|
641
641
|
case "Error":
|
|
@@ -681,16 +681,16 @@ 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
|
-
var
|
|
687
|
-
if (!(X(
|
|
686
|
+
var b = l[i];
|
|
687
|
+
if (!(X(b, t) && Ft(t[b], e[b], s, g)))
|
|
688
688
|
return !1;
|
|
689
689
|
i -= 1;
|
|
690
690
|
}
|
|
691
691
|
return !0;
|
|
692
692
|
}
|
|
693
|
-
var
|
|
693
|
+
var dt = /* @__PURE__ */ F(function(t, a) {
|
|
694
694
|
return Ft(t, a, [], []);
|
|
695
695
|
});
|
|
696
696
|
function Oa(e, t, a) {
|
|
@@ -725,7 +725,7 @@ function Oa(e, t, a) {
|
|
|
725
725
|
return e.indexOf(t, a);
|
|
726
726
|
}
|
|
727
727
|
for (; a < e.length; ) {
|
|
728
|
-
if (
|
|
728
|
+
if (dt(e[a], t))
|
|
729
729
|
return a;
|
|
730
730
|
a += 1;
|
|
731
731
|
}
|
|
@@ -739,7 +739,7 @@ function qe(e, t) {
|
|
|
739
739
|
o[a] = e(t[a]), a += 1;
|
|
740
740
|
return o;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function zt(e) {
|
|
743
743
|
var t = e.replace(/\\/g, "\\\\").replace(/[\b]/g, "\\b").replace(/\f/g, "\\f").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\v/g, "\\v").replace(/\0/g, "\\0");
|
|
744
744
|
return '"' + t.replace(/"/g, '\\"') + '"';
|
|
745
745
|
}
|
|
@@ -788,7 +788,7 @@ var Gt = /* @__PURE__ */ F(/* @__PURE__ */ Rt(["fantasy-land/filter", "filter"],
|
|
|
788
788
|
// else
|
|
789
789
|
Ra(e, t)
|
|
790
790
|
);
|
|
791
|
-
})),
|
|
791
|
+
})), pt = /* @__PURE__ */ F(function(t, a) {
|
|
792
792
|
return Gt(zo(t), a);
|
|
793
793
|
});
|
|
794
794
|
function Ga(e, t) {
|
|
@@ -797,20 +797,20 @@ function Ga(e, t) {
|
|
|
797
797
|
return ko(l, s) ? "<Circular>" : Ga(l, s);
|
|
798
798
|
}, r = function(i, l) {
|
|
799
799
|
return qe(function(s) {
|
|
800
|
-
return
|
|
800
|
+
return zt(s) + ": " + a(i[s]);
|
|
801
801
|
}, l.slice().sort());
|
|
802
802
|
};
|
|
803
803
|
switch (Object.prototype.toString.call(e)) {
|
|
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, pt(function(i) {
|
|
808
808
|
return /^\d+$/.test(i);
|
|
809
809
|
}, ye(e)))).join(", ") + "]";
|
|
810
810
|
case "[object Boolean]":
|
|
811
811
|
return typeof e == "object" ? "new Boolean(" + a(e.valueOf()) + ")" : e.toString();
|
|
812
812
|
case "[object Date]":
|
|
813
|
-
return "new Date(" + (isNaN(e.valueOf()) ? a(NaN) :
|
|
813
|
+
return "new Date(" + (isNaN(e.valueOf()) ? a(NaN) : zt(_o(e))) + ")";
|
|
814
814
|
case "[object Map]":
|
|
815
815
|
return "new Map(" + a(Array.from(e)) + ")";
|
|
816
816
|
case "[object Null]":
|
|
@@ -820,7 +820,7 @@ function Ga(e, t) {
|
|
|
820
820
|
case "[object Set]":
|
|
821
821
|
return "new Set(" + a(Array.from(e).sort()) + ")";
|
|
822
822
|
case "[object String]":
|
|
823
|
-
return typeof e == "object" ? "new String(" + a(e.valueOf()) + ")" :
|
|
823
|
+
return typeof e == "object" ? "new String(" + a(e.valueOf()) + ")" : zt(e);
|
|
824
824
|
case "[object Undefined]":
|
|
825
825
|
return "undefined";
|
|
826
826
|
default:
|
|
@@ -859,21 +859,21 @@ var Io = /* @__PURE__ */ M(function(t) {
|
|
|
859
859
|
return qe(t, a);
|
|
860
860
|
}
|
|
861
861
|
}));
|
|
862
|
-
const
|
|
862
|
+
const gt = Number.isInteger || function(t) {
|
|
863
863
|
return t << 0 === t;
|
|
864
864
|
};
|
|
865
|
-
function
|
|
865
|
+
function ut(e) {
|
|
866
866
|
return Object.prototype.toString.call(e) === "[object String]";
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function bt(e, t) {
|
|
869
869
|
var a = e < 0 ? t.length + e : e;
|
|
870
|
-
return
|
|
870
|
+
return ut(t) ? t.charAt(a) : t[a];
|
|
871
871
|
}
|
|
872
872
|
var q = /* @__PURE__ */ F(function(t, a) {
|
|
873
873
|
if (a != null)
|
|
874
|
-
return
|
|
874
|
+
return gt(t) ? bt(t, a) : a[t];
|
|
875
875
|
}), $o = /* @__PURE__ */ M(function(t) {
|
|
876
|
-
return Ae(t) ? !0 : !t || typeof t != "object" ||
|
|
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";
|
|
878
878
|
function Ao(e, t, a) {
|
|
879
879
|
return function(o, i, l) {
|
|
@@ -903,7 +903,7 @@ function Lo(e, t, a) {
|
|
|
903
903
|
return e["@@transducer/result"](t);
|
|
904
904
|
}
|
|
905
905
|
var Co = /* @__PURE__ */ F(function(t, a) {
|
|
906
|
-
return
|
|
906
|
+
return ct(t.length, function() {
|
|
907
907
|
return t.apply(a, arguments);
|
|
908
908
|
});
|
|
909
909
|
});
|
|
@@ -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 (gt(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] : gt(t[1]) ? [] : {};
|
|
966
966
|
a = e(Array.prototype.slice.call(t, 1), a, i);
|
|
967
967
|
}
|
|
968
968
|
return Fo(o, a, r);
|
|
@@ -976,7 +976,7 @@ function Ko(e) {
|
|
|
976
976
|
function Uo(e) {
|
|
977
977
|
return new RegExp(e.source, e.flags ? e.flags : (e.global ? "g" : "") + (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "") + (e.dotAll ? "s" : ""));
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function mt(e, t, a) {
|
|
980
980
|
if (a || (a = new Vo()), Bo(e))
|
|
981
981
|
return e;
|
|
982
982
|
var r = function(i) {
|
|
@@ -985,10 +985,10 @@ function bt(e, t, a) {
|
|
|
985
985
|
return l;
|
|
986
986
|
a.set(e, i);
|
|
987
987
|
for (var s in e)
|
|
988
|
-
Object.prototype.hasOwnProperty.call(e, s) && (i[s] = t ?
|
|
988
|
+
Object.prototype.hasOwnProperty.call(e, s) && (i[s] = t ? mt(e[s], !0, a) : e[s]);
|
|
989
989
|
return i;
|
|
990
990
|
};
|
|
991
|
-
switch (
|
|
991
|
+
switch (Nt(e)) {
|
|
992
992
|
case "Object":
|
|
993
993
|
return r(Object.create(Object.getPrototypeOf(e)));
|
|
994
994
|
case "Array":
|
|
@@ -1048,7 +1048,7 @@ var Vo = /* @__PURE__ */ function() {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
}, e;
|
|
1050
1050
|
}(), qo = /* @__PURE__ */ M(function(t) {
|
|
1051
|
-
return t != null && typeof t.clone == "function" ? t.clone() :
|
|
1051
|
+
return t != null && typeof t.clone == "function" ? t.clone() : mt(t, !0);
|
|
1052
1052
|
});
|
|
1053
1053
|
function Wo(e, t) {
|
|
1054
1054
|
return function() {
|
|
@@ -1070,10 +1070,10 @@ var Yo = /* @__PURE__ */ Y(/* @__PURE__ */ Dt("slice", function(t, a, r) {
|
|
|
1070
1070
|
function Ua() {
|
|
1071
1071
|
if (arguments.length === 0)
|
|
1072
1072
|
throw new Error("pipe requires at least one argument");
|
|
1073
|
-
return
|
|
1073
|
+
return ct(arguments[0].length, Ro(Wo, arguments[0], Ho(arguments)));
|
|
1074
1074
|
}
|
|
1075
1075
|
var Ba = /* @__PURE__ */ M(function(t) {
|
|
1076
|
-
return
|
|
1076
|
+
return ut(t) ? t.split("").reverse().join("") : Array.prototype.slice.call(t, 0).reverse();
|
|
1077
1077
|
});
|
|
1078
1078
|
function ae() {
|
|
1079
1079
|
if (arguments.length === 0)
|
|
@@ -1081,7 +1081,7 @@ function ae() {
|
|
|
1081
1081
|
return Ua.apply(this, Ba(arguments));
|
|
1082
1082
|
}
|
|
1083
1083
|
var fe = /* @__PURE__ */ M(function(e) {
|
|
1084
|
-
return
|
|
1084
|
+
return bt(0, e);
|
|
1085
1085
|
}), Jo = /* @__PURE__ */ function() {
|
|
1086
1086
|
function e(t, a, r, o) {
|
|
1087
1087
|
this.valueFn = t, this.valueAcc = a, this.keyFn = r, this.xf = o, this.inputs = {};
|
|
@@ -1096,7 +1096,7 @@ var fe = /* @__PURE__ */ M(function(e) {
|
|
|
1096
1096
|
return this.inputs = null, this.xf["@@transducer/result"](t);
|
|
1097
1097
|
}, e.prototype["@@transducer/step"] = function(t, a) {
|
|
1098
1098
|
var r = this.keyFn(a);
|
|
1099
|
-
return this.inputs[r] = this.inputs[r] || [r,
|
|
1099
|
+
return this.inputs[r] = this.inputs[r] || [r, mt(this.valueAcc, !1)], this.inputs[r][1] = this.valueFn(this.inputs[r][1], a), t;
|
|
1100
1100
|
}, e;
|
|
1101
1101
|
}();
|
|
1102
1102
|
function Xo(e, t, a) {
|
|
@@ -1106,22 +1106,22 @@ function Xo(e, t, a) {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
var Va = /* @__PURE__ */ jt(4, [], /* @__PURE__ */ Rt([], Xo, function(t, a, r, o) {
|
|
1108
1108
|
var i = Da(function(l, s) {
|
|
1109
|
-
var
|
|
1110
|
-
return
|
|
1109
|
+
var g = r(s), b = t(X(g, l) ? l[g] : mt(a, !1), s);
|
|
1110
|
+
return b && b["@@transducer/reduced"] ? ho(l) : (l[g] = b, l);
|
|
1111
1111
|
});
|
|
1112
1112
|
return Ma(i, {}, o);
|
|
1113
1113
|
})), Pe = /* @__PURE__ */ Y(function(t, a, r) {
|
|
1114
1114
|
var o = t(a), i = t(r);
|
|
1115
1115
|
return o > i ? -1 : o < i ? 1 : 0;
|
|
1116
1116
|
}), qa = /* @__PURE__ */ M(function(e) {
|
|
1117
|
-
return
|
|
1117
|
+
return bt(-1, e);
|
|
1118
1118
|
});
|
|
1119
1119
|
function Qo(e) {
|
|
1120
1120
|
var t = Object.prototype.toString.call(e);
|
|
1121
1121
|
return t === "[object Uint8ClampedArray]" || t === "[object Int8Array]" || t === "[object Uint8Array]" || t === "[object Int16Array]" || t === "[object Uint16Array]" || t === "[object Int32Array]" || t === "[object Uint32Array]" || t === "[object Float32Array]" || t === "[object Float64Array]" || t === "[object BigInt64Array]" || t === "[object BigUint64Array]";
|
|
1122
1122
|
}
|
|
1123
1123
|
var Zo = /* @__PURE__ */ M(function(t) {
|
|
1124
|
-
return t != null && typeof t["fantasy-land/empty"] == "function" ? t["fantasy-land/empty"]() : t != null && t.constructor != null && typeof t.constructor["fantasy-land/empty"] == "function" ? t.constructor["fantasy-land/empty"]() : t != null && typeof t.empty == "function" ? t.empty() : t != null && t.constructor != null && typeof t.constructor.empty == "function" ? t.constructor.empty() : Ae(t) ? [] :
|
|
1124
|
+
return t != null && typeof t["fantasy-land/empty"] == "function" ? t["fantasy-land/empty"]() : t != null && t.constructor != null && typeof t.constructor["fantasy-land/empty"] == "function" ? t.constructor["fantasy-land/empty"]() : t != null && typeof t.empty == "function" ? t.empty() : t != null && t.constructor != null && typeof t.constructor.empty == "function" ? t.constructor.empty() : Ae(t) ? [] : ut(t) ? "" : Fa(t) ? {} : Ea(t) ? /* @__PURE__ */ function() {
|
|
1125
1125
|
return arguments;
|
|
1126
1126
|
}() : Qo(t) ? t.constructor.from("") : void 0;
|
|
1127
1127
|
}), ei = /* @__PURE__ */ F(/* @__PURE__ */ Dt("groupBy", /* @__PURE__ */ Va(function(e, t) {
|
|
@@ -1132,7 +1132,7 @@ var Zo = /* @__PURE__ */ M(function(t) {
|
|
|
1132
1132
|
return typeof a.indexOf == "function" && !Ae(a) ? a.indexOf(t) : Oa(a, t, 0);
|
|
1133
1133
|
}), ai = /* @__PURE__ */ Y(function(t, a, r) {
|
|
1134
1134
|
return Ra(function(o) {
|
|
1135
|
-
return
|
|
1135
|
+
return Pt(t, o, r);
|
|
1136
1136
|
}, a);
|
|
1137
1137
|
});
|
|
1138
1138
|
function ri(e) {
|
|
@@ -1156,7 +1156,7 @@ var Wa = /* @__PURE__ */ F(function(t, a) {
|
|
|
1156
1156
|
throw new TypeError(Io(r) + ' does not have a method named "' + a + '"');
|
|
1157
1157
|
});
|
|
1158
1158
|
}), ii = /* @__PURE__ */ M(function(t) {
|
|
1159
|
-
return t != null &&
|
|
1159
|
+
return t != null && dt(t, Zo(t));
|
|
1160
1160
|
}), ni = /* @__PURE__ */ Wa(1, "join"), li = /* @__PURE__ */ F(function(t, a) {
|
|
1161
1161
|
return function(r) {
|
|
1162
1162
|
return function(o) {
|
|
@@ -1171,7 +1171,7 @@ function Ya(e, t) {
|
|
|
1171
1171
|
if (a == null)
|
|
1172
1172
|
return;
|
|
1173
1173
|
var o = e[r];
|
|
1174
|
-
|
|
1174
|
+
gt(o) ? a = bt(o, a) : a = a[o];
|
|
1175
1175
|
}
|
|
1176
1176
|
return a;
|
|
1177
1177
|
}
|
|
@@ -1209,16 +1209,16 @@ var si = /* @__PURE__ */ M(function(t) {
|
|
|
1209
1209
|
return Ha(a(o));
|
|
1210
1210
|
})(r).value;
|
|
1211
1211
|
}), Ge = /* @__PURE__ */ F(Ya), ui = /* @__PURE__ */ Y(function(t, a, r) {
|
|
1212
|
-
return
|
|
1212
|
+
return dt(Ya(a, r), t);
|
|
1213
1213
|
}), oe = /* @__PURE__ */ F(function(t, a) {
|
|
1214
1214
|
for (var r = {}, o = 0; o < t.length; )
|
|
1215
1215
|
t[o] in a && (r[t[o]] = a[t[o]]), o += 1;
|
|
1216
1216
|
return r;
|
|
1217
1217
|
}), Ja = /* @__PURE__ */ Y(function(t, a, r) {
|
|
1218
|
-
return
|
|
1218
|
+
return dt(t, q(a, r));
|
|
1219
1219
|
}), bi = /* @__PURE__ */ Y(function(t, a, r) {
|
|
1220
1220
|
return r.replace(t, a);
|
|
1221
|
-
}),
|
|
1221
|
+
}), vt = /* @__PURE__ */ F(function(t, a) {
|
|
1222
1222
|
return Array.prototype.slice.call(a, 0).sort(t);
|
|
1223
1223
|
}), Me = /* @__PURE__ */ F(function(t, a) {
|
|
1224
1224
|
return Array.prototype.slice.call(a, 0).sort(function(r, o) {
|
|
@@ -1232,26 +1232,26 @@ var si = /* @__PURE__ */ M(function(t) {
|
|
|
1232
1232
|
return i;
|
|
1233
1233
|
});
|
|
1234
1234
|
}), vi = /* @__PURE__ */ Wa(0, "toUpperCase");
|
|
1235
|
-
function
|
|
1235
|
+
function ht(e, t) {
|
|
1236
1236
|
if (e.length === 0)
|
|
1237
1237
|
throw new xa(Ze.message, Ze.options);
|
|
1238
1238
|
t.seasons = wi(e), t.championshipId || (t.championshipId = fe(t.seasons).championshipId);
|
|
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(pt(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"), qa)(t.sections));
|
|
1246
1246
|
}
|
|
1247
1247
|
function Xa(e) {
|
|
1248
|
-
return
|
|
1248
|
+
return vt(Mt(q("teamName")), e);
|
|
1249
1249
|
}
|
|
1250
1250
|
function yi(e, t) {
|
|
1251
1251
|
t.teams = Xa(e);
|
|
1252
1252
|
}
|
|
1253
1253
|
function wi(e) {
|
|
1254
|
-
return ae(
|
|
1254
|
+
return ae(vt(Pe(q("seasonName"))), me(oe(["championshipId", "seasonName"])))(e);
|
|
1255
1255
|
}
|
|
1256
1256
|
const Qa = {
|
|
1257
1257
|
jerseyNr: {
|
|
@@ -1296,7 +1296,7 @@ const Qa = {
|
|
|
1296
1296
|
class: "is-text-right",
|
|
1297
1297
|
sortOrders: [{ target: "birthPlace", direction: Ce }]
|
|
1298
1298
|
}
|
|
1299
|
-
},
|
|
1299
|
+
}, $t = {
|
|
1300
1300
|
gameDateDate: {
|
|
1301
1301
|
label: "table.gameDate.short",
|
|
1302
1302
|
tooltip: "table.gameDate.tooltip",
|
|
@@ -1528,7 +1528,7 @@ const Qa = {
|
|
|
1528
1528
|
label: "table.pimPerGame.short",
|
|
1529
1529
|
tooltip: "table.pimPerGame.tooltip"
|
|
1530
1530
|
}
|
|
1531
|
-
}, We = "games",
|
|
1531
|
+
}, We = "games", St = "seasons";
|
|
1532
1532
|
function xi(e, t) {
|
|
1533
1533
|
return {
|
|
1534
1534
|
...e,
|
|
@@ -1537,15 +1537,15 @@ function xi(e, t) {
|
|
|
1537
1537
|
position: vi(e.position)
|
|
1538
1538
|
};
|
|
1539
1539
|
}
|
|
1540
|
-
const ki = (e) =>
|
|
1540
|
+
const ki = (e) => rt(Ba(e), ot, ka(["mip"]));
|
|
1541
1541
|
function _i(e, t) {
|
|
1542
|
-
return
|
|
1542
|
+
return pt(Ja(e, "championshipId"))(t);
|
|
1543
1543
|
}
|
|
1544
1544
|
function zi(e, t) {
|
|
1545
1545
|
return Gt(Ja(e, "championshipId"))(t);
|
|
1546
1546
|
}
|
|
1547
1547
|
function Si(e, t, a, r) {
|
|
1548
|
-
return
|
|
1548
|
+
return rt(Ct(e), _a(r, a), za, Sa(t.teamId), Ta);
|
|
1549
1549
|
}
|
|
1550
1550
|
const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/player-games", Ni = "/v2/goalie-games", $i = {
|
|
1551
1551
|
__name: "DataProvider",
|
|
@@ -1568,7 +1568,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1568
1568
|
}
|
|
1569
1569
|
},
|
|
1570
1570
|
setup(e) {
|
|
1571
|
-
const t = e, a =
|
|
1571
|
+
const t = e, a = it(), r = Te("history"), o = Z({
|
|
1572
1572
|
playerId: Number(r.playerId) || Number(t.playerId),
|
|
1573
1573
|
championshipId: Number(r.championshipId) || Number(t.championshipId),
|
|
1574
1574
|
seasonApi: Ti,
|
|
@@ -1586,11 +1586,11 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1586
1586
|
onError: i,
|
|
1587
1587
|
onSuccess: (T) => {
|
|
1588
1588
|
const { position: C } = T;
|
|
1589
|
-
C.toLowerCase() === "gk" && (o.seasonApi = Ii, o.gamesApi = Ni, o.isGoalie = !0),
|
|
1589
|
+
C.toLowerCase() === "gk" && (o.seasonApi = Ii, o.gamesApi = Ni, o.isGoalie = !0), f();
|
|
1590
1590
|
}
|
|
1591
1591
|
}), {
|
|
1592
|
-
state:
|
|
1593
|
-
isLoading:
|
|
1592
|
+
state: g,
|
|
1593
|
+
isLoading: b,
|
|
1594
1594
|
execute: v
|
|
1595
1595
|
} = D({
|
|
1596
1596
|
options: {
|
|
@@ -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: y,
|
|
1606
1606
|
isLoading: m,
|
|
1607
|
-
execute:
|
|
1607
|
+
execute: p
|
|
1608
1608
|
} = D({
|
|
1609
1609
|
options: {
|
|
1610
1610
|
path: _(() => o.gamesApi),
|
|
@@ -1615,10 +1615,10 @@ 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
|
}), z = _(
|
|
1618
|
-
() => _i(o.championshipId,
|
|
1619
|
-
),
|
|
1620
|
-
() => zi(o.championshipId,
|
|
1621
|
-
),
|
|
1618
|
+
() => _i(o.championshipId, g.value)
|
|
1619
|
+
), P = _(
|
|
1620
|
+
() => zi(o.championshipId, g.value)
|
|
1621
|
+
), k = _(
|
|
1622
1622
|
() => o.isGoalie ? oe(
|
|
1623
1623
|
["teamName", "gkd", "gpi", "mipMin", "mipPercent", "ga", "gaa", "sog", "svs", "svsPercent"],
|
|
1624
1624
|
Ne
|
|
@@ -1681,7 +1681,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1681
1681
|
"gaa",
|
|
1682
1682
|
"svsPercent"
|
|
1683
1683
|
],
|
|
1684
|
-
|
|
1684
|
+
$t
|
|
1685
1685
|
) : oe(
|
|
1686
1686
|
[
|
|
1687
1687
|
"gameDateDate",
|
|
@@ -1699,11 +1699,11 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1699
1699
|
"shotPercent",
|
|
1700
1700
|
"pim"
|
|
1701
1701
|
],
|
|
1702
|
-
|
|
1702
|
+
$t
|
|
1703
1703
|
)
|
|
1704
1704
|
);
|
|
1705
|
-
function
|
|
1706
|
-
te([v,
|
|
1705
|
+
function f() {
|
|
1706
|
+
te([v, p]);
|
|
1707
1707
|
}
|
|
1708
1708
|
function S(T) {
|
|
1709
1709
|
o.pane = T;
|
|
@@ -1711,14 +1711,14 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1711
1711
|
return (T, C) => xe(T.$slots, "default", ke(_e({
|
|
1712
1712
|
pane: o.pane,
|
|
1713
1713
|
isLoadingPlayerData: n(s),
|
|
1714
|
-
isPlayerSeasonsLoading: n(
|
|
1714
|
+
isPlayerSeasonsLoading: n(b),
|
|
1715
1715
|
isGamesLoading: n(m),
|
|
1716
1716
|
playerData: n(l),
|
|
1717
|
-
playerGames: n(
|
|
1717
|
+
playerGames: n(y),
|
|
1718
1718
|
playerSeasonStats: z.value,
|
|
1719
|
-
currentSeasonStats:
|
|
1719
|
+
currentSeasonStats: P.value,
|
|
1720
1720
|
gameColumns: L.value,
|
|
1721
|
-
currentSeasonColumns:
|
|
1721
|
+
currentSeasonColumns: k.value,
|
|
1722
1722
|
seasonColumns: A.value,
|
|
1723
1723
|
onChangePane: S
|
|
1724
1724
|
})));
|
|
@@ -1764,14 +1764,14 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1764
1764
|
setup(e) {
|
|
1765
1765
|
const { t } = Q();
|
|
1766
1766
|
return (a, r) => (d(), $(n(ie), null, {
|
|
1767
|
-
default:
|
|
1768
|
-
|
|
1767
|
+
default: x(() => [
|
|
1768
|
+
w(n(ce), {
|
|
1769
1769
|
rows: e.rows,
|
|
1770
1770
|
columns: e.columns,
|
|
1771
1771
|
"is-loading": e.isLoading,
|
|
1772
1772
|
"append-to": e.appendTo
|
|
1773
1773
|
}, {
|
|
1774
|
-
"cell-resultType":
|
|
1774
|
+
"cell-resultType": x(({ row: o }) => [
|
|
1775
1775
|
c("span", {
|
|
1776
1776
|
class: G(["is-badge", [
|
|
1777
1777
|
{
|
|
@@ -1780,31 +1780,31 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1780
1780
|
"is-yellow": o.resultType === "D"
|
|
1781
1781
|
}
|
|
1782
1782
|
]])
|
|
1783
|
-
},
|
|
1783
|
+
}, u(o.resultType), 3)
|
|
1784
1784
|
]),
|
|
1785
|
-
"cell-teamName":
|
|
1785
|
+
"cell-teamName": x(({ row: o }) => {
|
|
1786
1786
|
var i, l;
|
|
1787
1787
|
return [
|
|
1788
|
-
c("span", Ai,
|
|
1789
|
-
c("span", Li,
|
|
1788
|
+
c("span", Ai, u((i = o.team) == null ? void 0 : i.longName), 1),
|
|
1789
|
+
c("span", Li, u((l = o.team) == null ? void 0 : l.shortName), 1)
|
|
1790
1790
|
];
|
|
1791
1791
|
}),
|
|
1792
|
-
"cell-gameResult":
|
|
1792
|
+
"cell-gameResult": x(({ row: o }) => [
|
|
1793
1793
|
o.gameStatus === 0 ? (d(), h("span", Ci, "-:-")) : (d(), 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
|
+
}, u(o.gameResult), 11, Ei))
|
|
1798
1798
|
]),
|
|
1799
|
-
"cell-gameResultType":
|
|
1800
|
-
o.isOvertime ? (d(), h("span", Oi,
|
|
1801
|
-
o.isShootout ? (d(), h("span", ji,
|
|
1799
|
+
"cell-gameResultType": x(({ row: o }) => [
|
|
1800
|
+
o.isOvertime ? (d(), h("span", Oi, u(n(t)("common.overtimeShort")), 1)) : I("", !0),
|
|
1801
|
+
o.isShootout ? (d(), h("span", ji, u(n(t)("common.shootoutShort")), 1)) : I("", !0)
|
|
1802
1802
|
]),
|
|
1803
|
-
"cell-powerplay":
|
|
1804
|
-
W(
|
|
1803
|
+
"cell-powerplay": x(({ row: o }) => [
|
|
1804
|
+
W(u(o.adv) + " / " + u(o.ppgf), 1)
|
|
1805
1805
|
]),
|
|
1806
|
-
"cell-penaltyKilling":
|
|
1807
|
-
W(
|
|
1806
|
+
"cell-penaltyKilling": x(({ row: o }) => [
|
|
1807
|
+
W(u(o.dvg) + " / " + u(o.pk), 1)
|
|
1808
1808
|
]),
|
|
1809
1809
|
_: 1
|
|
1810
1810
|
}, 8, ["rows", "columns", "is-loading", "append-to"])
|
|
@@ -1845,7 +1845,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1845
1845
|
_(() => t.columns),
|
|
1846
1846
|
null,
|
|
1847
1847
|
_(() => ({ offsetName: Et(/* @__PURE__ */ new Date(), null, "hu") }))
|
|
1848
|
-
), r = (o) =>
|
|
1848
|
+
), r = (o) => nt(t.gameResolver, o);
|
|
1849
1849
|
return (o, i) => (d(), $(Za, {
|
|
1850
1850
|
rows: e.rows,
|
|
1851
1851
|
columns: n(a),
|
|
@@ -1875,41 +1875,41 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1875
1875
|
var o, i, l;
|
|
1876
1876
|
return n(ii)(e.data) ? I("", !0) : (d(), h("div", Fi, [
|
|
1877
1877
|
r[0] || (Wt(-1, !0), (r[0] = c("h2", { class: "is-heading-2" }, [
|
|
1878
|
-
W(
|
|
1879
|
-
c("span", Gi, "#" +
|
|
1878
|
+
W(u(e.data.name) + " ", 1),
|
|
1879
|
+
c("span", Gi, "#" + u(e.data.jerseyNr), 1)
|
|
1880
1880
|
])).cacheIndex = 0, Wt(1), r[0]),
|
|
1881
1881
|
c("div", Mi, [
|
|
1882
|
-
W(
|
|
1882
|
+
W(u(e.data.birthDate) + " (" + u(n(t)("players.age", { years: e.data.age })) + ") / ", 1),
|
|
1883
1883
|
(d(!0), h(O, null, U(e.data.player.nationality, (s) => (d(), $(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:
|
|
1889
|
+
default: x(({ setRef: g, show: b, hide: v }) => [
|
|
1890
1890
|
c("span", {
|
|
1891
1891
|
ref_for: !0,
|
|
1892
|
-
ref:
|
|
1892
|
+
ref: g,
|
|
1893
1893
|
class: "is-rounded",
|
|
1894
|
-
onMouseenter:
|
|
1894
|
+
onMouseenter: b,
|
|
1895
1895
|
onMouseleave: v,
|
|
1896
|
-
onFocus:
|
|
1896
|
+
onFocus: b,
|
|
1897
1897
|
onBlur: v
|
|
1898
1898
|
}, [
|
|
1899
|
-
|
|
1899
|
+
w(n(V), {
|
|
1900
1900
|
src: n(Ia)(s)
|
|
1901
1901
|
}, null, 8, ["src"])
|
|
1902
1902
|
], 40, Di)
|
|
1903
1903
|
]),
|
|
1904
1904
|
_: 2
|
|
1905
1905
|
}, 1032, ["content", "append-to"]))), 128)),
|
|
1906
|
-
W(" " +
|
|
1906
|
+
W(" " + u(e.data.birthPlace) + " / " + u(e.data.position) + " / ", 1),
|
|
1907
1907
|
(d(), $(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
|
|
1911
1911
|
}, null, 8, ["src"])),
|
|
1912
|
-
W(" " +
|
|
1912
|
+
W(" " + u((l = e.data.team) == null ? void 0 : l.longName), 1)
|
|
1913
1913
|
])
|
|
1914
1914
|
]));
|
|
1915
1915
|
};
|
|
@@ -1937,8 +1937,8 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1937
1937
|
setup(e) {
|
|
1938
1938
|
const t = e, { columns: a } = ee(_(() => t.columns));
|
|
1939
1939
|
return (r, o) => (d(), $(n(ie), null, {
|
|
1940
|
-
default:
|
|
1941
|
-
|
|
1940
|
+
default: x(() => [
|
|
1941
|
+
w(n(ce), {
|
|
1942
1942
|
rows: e.rows,
|
|
1943
1943
|
columns: n(a),
|
|
1944
1944
|
"append-to": e.appendTo
|
|
@@ -1972,10 +1972,10 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
1972
1972
|
return (r, o) => {
|
|
1973
1973
|
var i;
|
|
1974
1974
|
return d(), h(O, null, [
|
|
1975
|
-
c("h2", Bi,
|
|
1976
|
-
|
|
1977
|
-
default:
|
|
1978
|
-
|
|
1975
|
+
c("h2", Bi, u(((i = e.rows[0]) == null ? void 0 : i.season) ?? ""), 1),
|
|
1976
|
+
w(n(ie), null, {
|
|
1977
|
+
default: x(() => [
|
|
1978
|
+
w(n(ce), {
|
|
1979
1979
|
rows: e.rows,
|
|
1980
1980
|
columns: n(a),
|
|
1981
1981
|
"is-loading": e.isLoading,
|
|
@@ -2026,39 +2026,39 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2026
2026
|
setup(e) {
|
|
2027
2027
|
const t = e, a = { en: ue, hu: be }, r = K(null);
|
|
2028
2028
|
return (o, i) => (d(), h("div", Ji, [
|
|
2029
|
-
|
|
2029
|
+
w(n(pe), {
|
|
2030
2030
|
locale: t.locale,
|
|
2031
2031
|
messages: a
|
|
2032
2032
|
}, {
|
|
2033
|
-
default:
|
|
2034
|
-
|
|
2035
|
-
default:
|
|
2036
|
-
|
|
2033
|
+
default: x(({ t: l }) => [
|
|
2034
|
+
w(n(ze), null, {
|
|
2035
|
+
default: x(({ error: s, hasError: g }) => [
|
|
2036
|
+
g ? (d(), $(n(Se), {
|
|
2037
2037
|
key: 0,
|
|
2038
2038
|
error: s
|
|
2039
2039
|
}, null, 8, ["error"])) : I("", !0),
|
|
2040
|
-
|
|
2040
|
+
w($i, {
|
|
2041
2041
|
"api-key": t.apiKey,
|
|
2042
2042
|
locale: e.locale,
|
|
2043
2043
|
"championship-id": e.championshipId,
|
|
2044
2044
|
"player-id": t.playerId
|
|
2045
2045
|
}, {
|
|
2046
|
-
default:
|
|
2047
|
-
pane:
|
|
2046
|
+
default: x(({
|
|
2047
|
+
pane: b,
|
|
2048
2048
|
isGamesLoading: v,
|
|
2049
|
-
isPlayerSeasonsLoading:
|
|
2049
|
+
isPlayerSeasonsLoading: y,
|
|
2050
2050
|
playerData: m,
|
|
2051
|
-
playerGames:
|
|
2051
|
+
playerGames: p,
|
|
2052
2052
|
playerSeasonStats: z,
|
|
2053
|
-
currentSeasonStats:
|
|
2054
|
-
gameColumns:
|
|
2053
|
+
currentSeasonStats: P,
|
|
2054
|
+
gameColumns: k,
|
|
2055
2055
|
seasonColumns: A,
|
|
2056
2056
|
currentSeasonColumns: L,
|
|
2057
|
-
onChangePane:
|
|
2057
|
+
onChangePane: f
|
|
2058
2058
|
}) => {
|
|
2059
2059
|
var S, T, C;
|
|
2060
2060
|
return [
|
|
2061
|
-
c("h1", Xi,
|
|
2061
|
+
c("h1", Xi, u(m.name), 1),
|
|
2062
2062
|
c("div", Qi, [
|
|
2063
2063
|
c("div", Zi, [
|
|
2064
2064
|
(d(), $(n(V), {
|
|
@@ -2074,37 +2074,37 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2074
2074
|
}, null, 8, ["src"]))
|
|
2075
2075
|
])
|
|
2076
2076
|
]),
|
|
2077
|
-
|
|
2077
|
+
w(Ki, {
|
|
2078
2078
|
data: m,
|
|
2079
2079
|
"append-to": r.value
|
|
2080
2080
|
}, null, 8, ["data", "append-to"]),
|
|
2081
|
-
|
|
2082
|
-
rows:
|
|
2081
|
+
w(Vi, {
|
|
2082
|
+
rows: P,
|
|
2083
2083
|
columns: L,
|
|
2084
|
-
"is-loading":
|
|
2084
|
+
"is-loading": y,
|
|
2085
2085
|
"append-to": r.value
|
|
2086
2086
|
}, null, 8, ["rows", "columns", "is-loading", "append-to"]),
|
|
2087
2087
|
c("div", tn, [
|
|
2088
2088
|
c("button", {
|
|
2089
2089
|
type: "button",
|
|
2090
|
-
class: G(["tab-button", { "is-active":
|
|
2091
|
-
onClick: (H) =>
|
|
2092
|
-
},
|
|
2090
|
+
class: G(["tab-button", { "is-active": b === n(We) }]),
|
|
2091
|
+
onClick: (H) => f(n(We))
|
|
2092
|
+
}, u(l("players.games")), 11, an),
|
|
2093
2093
|
c("button", {
|
|
2094
2094
|
type: "button",
|
|
2095
|
-
class: G(["tab-button", { "is-active":
|
|
2096
|
-
onClick: (H) =>
|
|
2097
|
-
},
|
|
2095
|
+
class: G(["tab-button", { "is-active": b === n(St) }]),
|
|
2096
|
+
onClick: (H) => f(n(St))
|
|
2097
|
+
}, u(l("players.seasons")), 11, rn)
|
|
2098
2098
|
]),
|
|
2099
|
-
|
|
2099
|
+
b === n(We) ? (d(), $(Ri, {
|
|
2100
2100
|
key: 0,
|
|
2101
|
-
rows:
|
|
2102
|
-
columns:
|
|
2101
|
+
rows: p,
|
|
2102
|
+
columns: k,
|
|
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
|
-
|
|
2107
|
+
b === n(St) ? (d(), $(Ui, {
|
|
2108
2108
|
key: 1,
|
|
2109
2109
|
rows: z,
|
|
2110
2110
|
columns: A,
|
|
@@ -2165,9 +2165,9 @@ 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,
|
|
2169
|
-
default:
|
|
2170
|
-
|
|
2168
|
+
return (s, g) => (d(), $(n(ie), null, {
|
|
2169
|
+
default: x(() => [
|
|
2170
|
+
w(n(ce), {
|
|
2171
2171
|
columns: n(i),
|
|
2172
2172
|
rows: e.rows,
|
|
2173
2173
|
"is-loading": e.isLoading,
|
|
@@ -2175,46 +2175,46 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2175
2175
|
sort: e.sort,
|
|
2176
2176
|
onSort: l
|
|
2177
2177
|
}, {
|
|
2178
|
-
"cell-playerPortrait":
|
|
2178
|
+
"cell-playerPortrait": x(({ row: b }) => [
|
|
2179
2179
|
c("div", ln, [
|
|
2180
2180
|
(d(), $(n(V), {
|
|
2181
|
-
key:
|
|
2182
|
-
src:
|
|
2181
|
+
key: b.player.playerId,
|
|
2182
|
+
src: b.player.picture,
|
|
2183
2183
|
"default-src": n(Ir)
|
|
2184
2184
|
}, null, 8, ["src", "default-src"]))
|
|
2185
2185
|
])
|
|
2186
2186
|
]),
|
|
2187
|
-
"cell-name":
|
|
2187
|
+
"cell-name": x(({ row: b }) => [
|
|
2188
2188
|
c("a", {
|
|
2189
|
-
href: e.playerResolver({ ...
|
|
2190
|
-
textContent: b
|
|
2189
|
+
href: e.playerResolver({ ...b, championshipId: e.championshipId }),
|
|
2190
|
+
textContent: u(b.name)
|
|
2191
2191
|
}, null, 8, sn)
|
|
2192
2192
|
]),
|
|
2193
|
-
"cell-teamName":
|
|
2193
|
+
"cell-teamName": x(({ row: b }) => [
|
|
2194
2194
|
c("a", {
|
|
2195
|
-
href: e.teamResolver({ ...
|
|
2196
|
-
textContent: b
|
|
2195
|
+
href: e.teamResolver({ ...b, championshipId: e.championshipId }),
|
|
2196
|
+
textContent: u(b.teamName)
|
|
2197
2197
|
}, null, 8, cn)
|
|
2198
2198
|
]),
|
|
2199
|
-
"cell-nationality":
|
|
2199
|
+
"cell-nationality": x(({ row: b }) => [
|
|
2200
2200
|
c("div", dn, [
|
|
2201
|
-
(d(!0), h(O, null, U(
|
|
2201
|
+
(d(!0), h(O, null, U(b.nationalityCode, (v) => (d(), $(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:
|
|
2207
|
+
default: x(({ setRef: y, show: m, hide: p }) => [
|
|
2208
2208
|
c("div", {
|
|
2209
2209
|
ref_for: !0,
|
|
2210
|
-
ref:
|
|
2210
|
+
ref: y,
|
|
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
2220
|
], 40, pn)
|
|
@@ -2223,10 +2223,10 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2223
2223
|
}, 1032, ["content", "append-to"]))), 128))
|
|
2224
2224
|
])
|
|
2225
2225
|
]),
|
|
2226
|
-
"cell-position":
|
|
2226
|
+
"cell-position": x(({ row: b }) => {
|
|
2227
2227
|
var v;
|
|
2228
2228
|
return [
|
|
2229
|
-
W(
|
|
2229
|
+
W(u((v = b.position) == null ? void 0 : v.toUpperCase()), 1)
|
|
2230
2230
|
];
|
|
2231
2231
|
}),
|
|
2232
2232
|
_: 1
|
|
@@ -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
|
-
}, gn = (e) => ae(Me(q("name")), me(ae(
|
|
2238
|
+
}, gn = (e) => ae(Me(q("name")), me(ae(lt, ot)))(e), un = {
|
|
2239
2239
|
__name: "DataProvider",
|
|
2240
2240
|
props: {
|
|
2241
2241
|
championshipName: {
|
|
@@ -2261,21 +2261,21 @@ 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 } = ge(), { page: i, change: l } = wa(), { sort: s, change:
|
|
2264
|
+
}), { onError: o } = ge(), { page: i, change: l } = wa(), { sort: s, change: g } = At({
|
|
2265
2265
|
sortTarget: "",
|
|
2266
2266
|
orders: []
|
|
2267
|
-
}), { isLoading:
|
|
2267
|
+
}), { isLoading: b, execute: v } = D({
|
|
2268
2268
|
options: {
|
|
2269
2269
|
path: "/v2/championship-seasons",
|
|
2270
2270
|
apiKey: t.apiKey,
|
|
2271
2271
|
params: { championshipName: r.championshipName }
|
|
2272
2272
|
},
|
|
2273
|
-
transform: (
|
|
2273
|
+
transform: (f) => ht(f, r),
|
|
2274
2274
|
onError: o
|
|
2275
2275
|
}), {
|
|
2276
|
-
isLoading:
|
|
2276
|
+
isLoading: y,
|
|
2277
2277
|
state: m,
|
|
2278
|
-
execute:
|
|
2278
|
+
execute: p
|
|
2279
2279
|
} = D({
|
|
2280
2280
|
options: {
|
|
2281
2281
|
path: "/v2/championship-players",
|
|
@@ -2284,28 +2284,28 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2284
2284
|
championshipId: r.championshipId
|
|
2285
2285
|
}))
|
|
2286
2286
|
},
|
|
2287
|
-
transform: (
|
|
2287
|
+
transform: (f) => gn(f),
|
|
2288
2288
|
onError: o
|
|
2289
|
-
}), z = Lt([
|
|
2290
|
-
te([v,
|
|
2291
|
-
const
|
|
2289
|
+
}), z = Lt([b, y], { delay: 1e3 });
|
|
2290
|
+
te([v, p]);
|
|
2291
|
+
const P = _(
|
|
2292
2292
|
() => Oe(m.value).sorted(s).filter(r.query, [["name"]]).pagination(i.value, t.limit).value()
|
|
2293
|
-
),
|
|
2294
|
-
function A(
|
|
2295
|
-
l(1), r.championshipId =
|
|
2293
|
+
), k = _(() => [(i.value - 1) * t.limit + 1, Math.min(i.value * t.limit, P.value.totalItems)]);
|
|
2294
|
+
function A(f) {
|
|
2295
|
+
l(1), r.championshipId = f, a.championshipId = f, r.query = "", a.query = null, te([p]);
|
|
2296
2296
|
}
|
|
2297
|
-
function L(
|
|
2298
|
-
const { value: S } =
|
|
2297
|
+
function L(f) {
|
|
2298
|
+
const { value: S } = f.target;
|
|
2299
2299
|
l(1), r.query = S, a.query = S;
|
|
2300
2300
|
}
|
|
2301
|
-
return (
|
|
2301
|
+
return (f, S) => xe(f.$slots, "default", ke(_e({
|
|
2302
2302
|
...r,
|
|
2303
2303
|
sort: n(s),
|
|
2304
2304
|
page: n(i),
|
|
2305
|
-
range:
|
|
2305
|
+
range: k.value,
|
|
2306
2306
|
isLoading: n(z),
|
|
2307
|
-
players:
|
|
2308
|
-
onSort: n(
|
|
2307
|
+
players: P.value,
|
|
2308
|
+
onSort: n(g),
|
|
2309
2309
|
onInput: L,
|
|
2310
2310
|
changeSeason: A,
|
|
2311
2311
|
onPaginatorChange: n(l)
|
|
@@ -2343,48 +2343,48 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2343
2343
|
}
|
|
2344
2344
|
},
|
|
2345
2345
|
setup(e) {
|
|
2346
|
-
const t = e, a = { en: ue, hu: be }, r = K(null), o = (l) => Ot(t.externalPlayerResolver, l), i = (l) =>
|
|
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
2347
|
return (l, s) => (d(), h("div", null, [
|
|
2348
|
-
|
|
2348
|
+
w(n(pe), {
|
|
2349
2349
|
locale: t.locale,
|
|
2350
2350
|
messages: a
|
|
2351
2351
|
}, {
|
|
2352
|
-
default:
|
|
2353
|
-
|
|
2354
|
-
default:
|
|
2352
|
+
default: x(({ t: g }) => [
|
|
2353
|
+
w(n(ze), null, {
|
|
2354
|
+
default: x(({ error: b, hasError: v }) => [
|
|
2355
2355
|
v ? (d(), $(n(Se), {
|
|
2356
2356
|
key: 0,
|
|
2357
|
-
error:
|
|
2357
|
+
error: b
|
|
2358
2358
|
}, null, 8, ["error"])) : I("", !0),
|
|
2359
|
-
|
|
2359
|
+
w(un, {
|
|
2360
2360
|
"api-key": t.apiKey,
|
|
2361
2361
|
locale: e.locale,
|
|
2362
2362
|
"championship-name": e.championshipName,
|
|
2363
2363
|
limit: e.limit
|
|
2364
2364
|
}, {
|
|
2365
|
-
default:
|
|
2366
|
-
range:
|
|
2365
|
+
default: x(({
|
|
2366
|
+
range: y,
|
|
2367
2367
|
players: m,
|
|
2368
|
-
seasons:
|
|
2368
|
+
seasons: p,
|
|
2369
2369
|
isLoading: z,
|
|
2370
|
-
championshipId:
|
|
2371
|
-
page:
|
|
2370
|
+
championshipId: P,
|
|
2371
|
+
page: k,
|
|
2372
2372
|
query: A,
|
|
2373
2373
|
changeSeason: L,
|
|
2374
|
-
sort:
|
|
2374
|
+
sort: f,
|
|
2375
2375
|
onSort: S,
|
|
2376
2376
|
onPaginatorChange: T,
|
|
2377
2377
|
onInput: C
|
|
2378
2378
|
}) => [
|
|
2379
|
-
|
|
2380
|
-
seasons:
|
|
2381
|
-
"championship-id":
|
|
2379
|
+
w(n(fa), {
|
|
2380
|
+
seasons: p,
|
|
2381
|
+
"championship-id": P,
|
|
2382
2382
|
"is-section-selection-disabled": "",
|
|
2383
2383
|
onOnChangeSeason: L
|
|
2384
2384
|
}, {
|
|
2385
|
-
default:
|
|
2385
|
+
default: x(() => [
|
|
2386
2386
|
c("div", null, [
|
|
2387
|
-
c("label", mn,
|
|
2387
|
+
c("label", mn, u(g("selection.filterName")), 1),
|
|
2388
2388
|
c("input", {
|
|
2389
2389
|
id: "player",
|
|
2390
2390
|
type: "text",
|
|
@@ -2396,26 +2396,26 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2396
2396
|
]),
|
|
2397
2397
|
_: 2
|
|
2398
2398
|
}, 1032, ["seasons", "championship-id", "onOnChangeSeason"]),
|
|
2399
|
-
|
|
2399
|
+
w(ar, {
|
|
2400
2400
|
columns: n(Qa),
|
|
2401
2401
|
rows: m.rows,
|
|
2402
2402
|
"append-to": r.value,
|
|
2403
|
-
sort:
|
|
2403
|
+
sort: f,
|
|
2404
2404
|
"is-loading": z,
|
|
2405
|
-
"championship-id":
|
|
2405
|
+
"championship-id": P,
|
|
2406
2406
|
"player-resolver": o,
|
|
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
|
c("div", hn, [
|
|
2411
|
-
|
|
2412
|
-
page:
|
|
2411
|
+
w(n(ya), {
|
|
2412
|
+
page: k,
|
|
2413
2413
|
"items-per-page": t.limit,
|
|
2414
2414
|
"total-items": m.totalItems,
|
|
2415
2415
|
"range-length": 5,
|
|
2416
2416
|
onChange: T
|
|
2417
2417
|
}, null, 8, ["page", "items-per-page", "total-items", "onChange"]),
|
|
2418
|
-
m.totalItems > 0 ? (d(), h("div", fn,
|
|
2418
|
+
m.totalItems > 0 ? (d(), h("div", fn, u(y.join("-")) + " / " + u(m.totalItems), 1)) : I("", !0)
|
|
2419
2419
|
]),
|
|
2420
2420
|
c("div", {
|
|
2421
2421
|
ref_key: "tooltipContainer",
|
|
@@ -2432,7 +2432,7 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2432
2432
|
}, 8, ["locale"])
|
|
2433
2433
|
]));
|
|
2434
2434
|
}
|
|
2435
|
-
}, wn = /* @__PURE__ */ he(yn, [["styles", [ve, Ke, Ut, bn, Bt, rr, or, ir]]]), xn = ".playoffs .table-grid{display:grid;grid-template-columns:60px 160px minmax(60px,.41fr) minmax(160px,1fr) minmax(40px,60px) 70px minmax(160px,1fr) minmax(180px,.9fr);color:var(--vbr-widget-table-color)}.playoffs .table-grid:nth-child(odd)>div{background-color:var(--vbr-widget-table-stripped-bg-color)}.playoffs .table-grid.is-optional{opacity:.5}.playoffs .table-grid>div{padding:8px}.playoffs .table-grid .is-truncate{overflow:visible;text-overflow:ellipsis;white-space:nowrap}.playoffs .table-grid .is-text-right{text-align:right}.playoffs .table-grid .is-text-center{text-align:center}.playoffs .table-grid .is-text-bold{font-weight:900}.playoffs .table-grid .is-text-light{color:var(--vbr-widget-table-cell-light-color)}.playoffs .table-grid .is-text-dark{color:var(--vbr-widget-table-cell-dark-color)}.playoffs .table-grid .is-text-accent{color:var(--vbr-widget-secondary-color-500)}.playoffs .table-grid .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}.playoffs .table-grid .label:not(:last-of-type){margin-right:3px}.playoffs .table-grid .is-team-name-long{display:block}.playoffs .table-grid .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){.playoffs .table-grid .is-team-name-long{display:none}.playoffs .table-grid .is-team-name-short{display:block}}.playoffs .section-title{padding:10px;text-align:center;font-size:var(--vbr-widget-typography-font-size-500);font-weight:700;color:var(--vbr-widget-primary-color-100);background-color:var(--vbr-widget-primary-color-700)}.playoffs .section-details{display:grid;grid-template-columns:1fr;align-items:center;justify-items:center;gap:20px;padding:20px;background-color:var(--vbr-widget-primary-color-50)}@media all and (min-width: 576px){.playoffs .section-details{grid-template-columns:1fr fit-content(100px) fit-content(100px) fit-content(100px) 1fr}}.playoffs .section-details .is-team-name-long{display:block}.playoffs .section-details .is-team-name-short{display:none}@container section-details (max-width: 768px){.playoffs .section-details .is-team-name-long{display:none}.playoffs .section-details .is-team-name-short{display:block}}.playoffs .section-details .is-logo-image{width:70px;height:70px}.playoffs .section-details .is-result{font-size:4rem;font-weight:700;text-align:center;color:var(--vbr-widget-primary-color-800)}.playoffs .section-details .is-team-name{font-size:var(--vbr-widget-typography-font-size-700);font-weight:700;color:var(--vbr-widget-primary-color-800)}.playoffs .section-details .is-right{text-align:right}.playoffs-minimal{display:grid;gap:8px}.playoffs-minimal .section .section-title{font-size:var(--vbr-widget-standings-selector-section-title-size);color:var(--vbr-widget-standings-selector-section-title-color);font-weight:700;background:var(--vbr-widget-standings-selector-section-title-bg);text-align:center;padding:var(--vbr-widget-standings-selector-section-title-padding)}.playoffs-minimal .section ul{display:grid;grid-template-columns:minmax(0,1fr) var(--vbr-widget-standings-selector-section-logo-size) auto var(--vbr-widget-standings-selector-section-logo-size) minmax(0,1fr);gap:12px;align-items:center}.playoffs-minimal .section li{padding-block:8px}.playoffs-minimal .section li:first-of-type{text-align:end}.playoffs-minimal .section img{display:block;width:100%;aspect-ratio:1}.playoffs-minimal .section .is-team{font-weight:700;color:var(--vbr-widget-standings-selector-section-team-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.playoffs-minimal .section .is-team .is-team-name-short{display:none}@container table-wrapper (max-width: 360px){.playoffs-minimal .section .is-team .is-team-name-long{display:none}.playoffs-minimal .section .is-team .is-team-name-short{display:block}}", kn = ".table-responsive{container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}.table-responsive table{width:100%}", nr = '.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-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)}', _n = { class: "playoffs" }, zn = { class: "section-title" }, Sn = { class: "section-details" }, Tn = { class: "is-team-name is-right" }, In = { class: "is-result" }, Pn = { class: "is-team-name" }, Nn = { class: "is-text-right is-text-bold" }, $n = { class: "is-team-name-long" }, An = { class: "is-team-name-short" }, Ln = { class: "is-text-center" }, Cn = {
|
|
2435
|
+
}, wn = /* @__PURE__ */ he(yn, [["styles", [ve, Ke, Ut, bn, Bt, rr, or, ir]]]), xn = ".playoffs .table-grid{display:grid;grid-template-columns:60px 160px minmax(60px,.41fr) minmax(160px,1fr) minmax(40px,60px) 70px minmax(160px,1fr) minmax(180px,.9fr);color:var(--vbr-widget-table-color)}.playoffs .table-grid:nth-child(odd)>div{background-color:var(--vbr-widget-table-stripped-bg-color)}.playoffs .table-grid.is-optional{opacity:.5}.playoffs .table-grid>div{padding:8px}.playoffs .table-grid .is-truncate{overflow:visible;text-overflow:ellipsis;white-space:nowrap}.playoffs .table-grid .is-text-right{text-align:right}.playoffs .table-grid .is-text-center{text-align:center}.playoffs .table-grid .is-text-bold{font-weight:900}.playoffs .table-grid .is-text-light{color:var(--vbr-widget-table-cell-light-color)}.playoffs .table-grid .is-text-dark{color:var(--vbr-widget-table-cell-dark-color)}.playoffs .table-grid .is-text-accent{color:var(--vbr-widget-secondary-color-500)}.playoffs .table-grid .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}.playoffs .table-grid .label:not(:last-of-type){margin-right:3px}.playoffs .table-grid .is-team-name-long{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.playoffs .table-grid .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){.playoffs .table-grid .is-team-name-long{display:none}.playoffs .table-grid .is-team-name-short{display:block}}.playoffs .section-title{padding:10px;text-align:center;font-size:var(--vbr-widget-typography-font-size-500);font-weight:700;color:var(--vbr-widget-primary-color-100);background-color:var(--vbr-widget-primary-color-700)}.playoffs .section-details{display:grid;grid-template-columns:1fr;align-items:center;justify-items:center;gap:20px;padding:20px;background-color:var(--vbr-widget-primary-color-50)}@media all and (min-width: 576px){.playoffs .section-details{grid-template-columns:1fr fit-content(100px) fit-content(100px) fit-content(100px) 1fr}}.playoffs .section-details .is-team-name-long{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.playoffs .section-details .is-team-name-short{display:none}@container section-details (max-width: 768px){.playoffs .section-details .is-team-name-long{display:none}.playoffs .section-details .is-team-name-short{display:block}}.playoffs .section-details .is-logo-image{width:70px;height:70px}.playoffs .section-details .is-result{font-size:4rem;font-weight:700;text-align:center;color:var(--vbr-widget-primary-color-800)}.playoffs .section-details .is-team-name{font-size:var(--vbr-widget-typography-font-size-700);font-weight:700;color:var(--vbr-widget-primary-color-800)}.playoffs .section-details .is-right{text-align:right}.playoffs-minimal{display:grid;gap:8px}.playoffs-minimal .section .section-title{font-size:var(--vbr-widget-standings-selector-section-title-size);color:var(--vbr-widget-standings-selector-section-title-color);font-weight:700;background:var(--vbr-widget-standings-selector-section-title-bg);text-align:center;padding:var(--vbr-widget-standings-selector-section-title-padding)}.playoffs-minimal .section ul{display:grid;grid-template-columns:minmax(0,1fr) var(--vbr-widget-standings-selector-section-logo-size) auto var(--vbr-widget-standings-selector-section-logo-size) minmax(0,1fr);gap:12px;align-items:center}.playoffs-minimal .section li{padding-block:8px}.playoffs-minimal .section li:first-of-type{text-align:end}.playoffs-minimal .section img{display:block;width:100%;aspect-ratio:1}.playoffs-minimal .section .is-team{font-weight:700;color:var(--vbr-widget-standings-selector-section-team-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.playoffs-minimal .section .is-team .is-team-name-short{display:none}@container table-wrapper (max-width: 360px){.playoffs-minimal .section .is-team .is-team-name-long{display:none}.playoffs-minimal .section .is-team .is-team-name-short{display:block}}", kn = ".table-responsive{container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}.table-responsive table{width:100%}", nr = '.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-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)}', _n = { class: "playoffs" }, zn = { class: "section-title" }, Sn = { class: "section-details" }, Tn = { class: "is-team-name is-right" }, In = { class: "is-result" }, Pn = { class: "is-team-name" }, Nn = { class: "is-text-right is-text-bold" }, $n = { class: "is-team-name-long" }, An = { class: "is-team-name-short" }, Ln = { class: "is-text-center" }, Cn = {
|
|
2436
2436
|
key: 0,
|
|
2437
2437
|
class: "is-text-dark"
|
|
2438
2438
|
}, En = ["href"], On = {
|
|
@@ -2461,81 +2461,82 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2461
2461
|
}
|
|
2462
2462
|
},
|
|
2463
2463
|
setup(e) {
|
|
2464
|
-
const t = e, { state: a,
|
|
2464
|
+
const t = e, { state: a, isLoading: r, execute: o } = D({
|
|
2465
2465
|
options: {
|
|
2466
2466
|
path: "/v2/playoffs-tree",
|
|
2467
2467
|
apiKey: t.apiKey,
|
|
2468
2468
|
params: _(() => ({ championshipId: t.championshipId }))
|
|
2469
2469
|
}
|
|
2470
2470
|
});
|
|
2471
|
-
|
|
2472
|
-
const
|
|
2473
|
-
function
|
|
2474
|
-
return
|
|
2471
|
+
o();
|
|
2472
|
+
const i = it(), l = { en: ue, hu: be };
|
|
2473
|
+
function s(v) {
|
|
2474
|
+
return nt(t.externalGameLink || Kn, v);
|
|
2475
2475
|
}
|
|
2476
|
-
const
|
|
2477
|
-
return (
|
|
2478
|
-
|
|
2476
|
+
const g = (v) => et(v, "L dddd", i, t.locale), b = (v) => et(v, "HH:mm", i, t.locale);
|
|
2477
|
+
return (v, y) => (d(), h("div", _n, [
|
|
2478
|
+
w(n(pe), {
|
|
2479
2479
|
locale: t.locale,
|
|
2480
|
-
messages:
|
|
2480
|
+
messages: l
|
|
2481
2481
|
}, {
|
|
2482
|
-
default:
|
|
2483
|
-
(d(
|
|
2484
|
-
|
|
2482
|
+
default: x(({ t: m }) => [
|
|
2483
|
+
n(r) ? (d(), $(n(at), { key: 0 })) : I("", !0),
|
|
2484
|
+
(d(!0), h(O, null, U(n(a), (p) => {
|
|
2485
|
+
var z, P;
|
|
2485
2486
|
return d(), h("div", {
|
|
2486
|
-
key: `${
|
|
2487
|
+
key: `${p.divisionStage2Name}-${p.divisionStageNumber}`
|
|
2487
2488
|
}, [
|
|
2488
|
-
c("div", zn,
|
|
2489
|
+
c("div", zn, u(m(`playoffs.${p.divisionStage2Name}`)) + "-" + u(p.divisionStageNumber), 1),
|
|
2489
2490
|
c("div", Sn, [
|
|
2490
|
-
c("div", Tn,
|
|
2491
|
+
c("div", Tn, u((z = p.homeTeam) == null ? void 0 : z.longName), 1),
|
|
2491
2492
|
c("div", null, [
|
|
2492
|
-
|
|
2493
|
+
w(n(V), {
|
|
2493
2494
|
class: "is-logo-image",
|
|
2494
|
-
src:
|
|
2495
|
+
src: p.homeTeam.logo
|
|
2495
2496
|
}, null, 8, ["src"])
|
|
2496
2497
|
]),
|
|
2497
|
-
c("div", In,
|
|
2498
|
+
c("div", In, u(p.seriesStandings), 1),
|
|
2498
2499
|
c("div", null, [
|
|
2499
|
-
|
|
2500
|
+
w(n(V), {
|
|
2500
2501
|
class: "is-logo-image",
|
|
2501
|
-
src:
|
|
2502
|
+
src: p.awayTeam.logo
|
|
2502
2503
|
}, null, 8, ["src"])
|
|
2503
2504
|
]),
|
|
2504
|
-
c("div", Pn,
|
|
2505
|
+
c("div", Pn, u((P = p.awayTeam) == null ? void 0 : P.longName), 1)
|
|
2505
2506
|
]),
|
|
2506
|
-
|
|
2507
|
-
default:
|
|
2508
|
-
(d(!0), h(O, null, U(
|
|
2509
|
-
var
|
|
2507
|
+
w(n(ie), null, {
|
|
2508
|
+
default: x(() => [
|
|
2509
|
+
(d(!0), h(O, null, U(p.games, (k) => {
|
|
2510
|
+
var A, L, f, S, T;
|
|
2510
2511
|
return d(), h("div", {
|
|
2511
|
-
key:
|
|
2512
|
-
class: G(["table-grid", { "is-optional":
|
|
2512
|
+
key: k.id,
|
|
2513
|
+
class: G(["table-grid", { "is-optional": k.optional }])
|
|
2513
2514
|
}, [
|
|
2514
|
-
c("div", null,
|
|
2515
|
-
c("div", null,
|
|
2516
|
-
c("div", null, b(
|
|
2515
|
+
c("div", null, u(k.gameName), 1),
|
|
2516
|
+
c("div", null, u(g(k.gameDate)), 1),
|
|
2517
|
+
c("div", null, u(b(k.gameDate)), 1),
|
|
2517
2518
|
c("div", Nn, [
|
|
2518
|
-
c("span", $n,
|
|
2519
|
-
c("span", An,
|
|
2519
|
+
c("span", $n, u((A = k.homeTeam) == null ? void 0 : A.longName), 1),
|
|
2520
|
+
c("span", An, u((L = k.homeTeam) == null ? void 0 : L.shortName), 1)
|
|
2520
2521
|
]),
|
|
2521
2522
|
c("div", Ln, [
|
|
2522
|
-
|
|
2523
|
+
k.gameStatus === 0 ? (d(), h("span", Cn, "-:-")) : (d(), h("a", {
|
|
2523
2524
|
key: 1,
|
|
2524
|
-
href:
|
|
2525
|
+
href: s(k),
|
|
2525
2526
|
target: "_blank",
|
|
2526
|
-
class: G(["is-text-bold", [{ "is-text-dark":
|
|
2527
|
-
},
|
|
2527
|
+
class: G(["is-text-bold", [{ "is-text-dark": k.gameStatus !== 1, "is-text-accent": k.gameStatus === 1 }]])
|
|
2528
|
+
}, u(k.homeTeamScore) + ":" + u(k.awayTeamScore), 11, En))
|
|
2528
2529
|
]),
|
|
2529
2530
|
c("div", null, [
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2531
|
+
k.isOvertime ? (d(), h("span", On, u(m("common.overtimeShort")), 1)) : I("", !0),
|
|
2532
|
+
k.isShootout ? (d(), h("span", jn, u(m("common.shootoutShort")), 1)) : I("", !0),
|
|
2533
|
+
k.seriesStandings ? (d(), h("span", Rn, u(k.seriesStandings), 1)) : I("", !0)
|
|
2533
2534
|
]),
|
|
2534
2535
|
c("div", Fn, [
|
|
2535
|
-
c("span", Gn,
|
|
2536
|
-
c("span", Mn,
|
|
2536
|
+
c("span", Gn, u((f = k.awayTeam) == null ? void 0 : f.longName), 1),
|
|
2537
|
+
c("span", Mn, u((S = k.awayTeam) == null ? void 0 : S.shortName), 1)
|
|
2537
2538
|
]),
|
|
2538
|
-
c("div", Dn,
|
|
2539
|
+
c("div", Dn, u(((T = k.location) == null ? void 0 : T.locationName) ?? ""), 1)
|
|
2539
2540
|
], 2);
|
|
2540
2541
|
}), 128))
|
|
2541
2542
|
]),
|
|
@@ -2551,15 +2552,15 @@ const Ti = "/v2/player-season-stats", Ii = "/v2/goalie-season-stats", Pi = "/v2/
|
|
|
2551
2552
|
}, Bn = /* @__PURE__ */ he(Un, [["styles", [ve, xn, kn, nr]]]);
|
|
2552
2553
|
function Vn(e = [], t = "hu", a = tt) {
|
|
2553
2554
|
const r = K([]), o = K(null), i = K([]), l = () => {
|
|
2554
|
-
i.value = e.value.reduce((
|
|
2555
|
-
var
|
|
2556
|
-
const v = new Date(
|
|
2557
|
-
return
|
|
2555
|
+
i.value = e.value.reduce((g, b) => {
|
|
2556
|
+
var p;
|
|
2557
|
+
const v = new Date(b.gameDate), y = (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);
|
|
2558
|
+
return g[y] || (g[y] = { value: v.getMonth(), name: qn(m) }), g;
|
|
2558
2559
|
}, {}), r.value = Object.values(i.value);
|
|
2559
2560
|
}, s = () => {
|
|
2560
|
-
var
|
|
2561
|
-
const
|
|
2562
|
-
o.value = v &&
|
|
2561
|
+
var y, m, p, z;
|
|
2562
|
+
const g = _r(/* @__PURE__ */ new Date(), (y = fe(e.value)) == null ? void 0 : y.gameDate, (m = qa(e.value)) == null ? void 0 : m.gameDate), b = (p = new Intl.DateTimeFormat("en-GB", { month: "long" }).format(/* @__PURE__ */ new Date())) == null ? void 0 : p.toLowerCase(), v = oe([b], i.value);
|
|
2563
|
+
o.value = v && g ? (/* @__PURE__ */ new Date()).getMonth() : (z = fe(r.value)) == null ? void 0 : z.value, a(o.value);
|
|
2563
2564
|
};
|
|
2564
2565
|
return se([e, t], l), po(e, () => {
|
|
2565
2566
|
l(), s();
|
|
@@ -2631,7 +2632,7 @@ const Yn = {
|
|
|
2631
2632
|
selectedMonth: Number(a.selectedMonth) ?? null,
|
|
2632
2633
|
selectedTeam: Number(a.selectedTeam) || null,
|
|
2633
2634
|
selectedTeamGameType: a.selectedTeamGameType || "all"
|
|
2634
|
-
}), { timezone: o, mainElement: i, scrollOffset: l, scrollToGameDate: s } = va(t), { onError:
|
|
2635
|
+
}), { timezone: o, mainElement: i, scrollOffset: l, scrollToGameDate: s } = va(t), { onError: g } = ge(), b = _(() => {
|
|
2635
2636
|
switch (r.selectedTeamGameType) {
|
|
2636
2637
|
case "all":
|
|
2637
2638
|
return [
|
|
@@ -2643,32 +2644,32 @@ const Yn = {
|
|
|
2643
2644
|
default:
|
|
2644
2645
|
return [["awayTeam", "id"]];
|
|
2645
2646
|
}
|
|
2646
|
-
}), { isLoading: v, execute:
|
|
2647
|
+
}), { isLoading: v, execute: y } = D({
|
|
2647
2648
|
options: {
|
|
2648
2649
|
path: "/v2/championship-seasons",
|
|
2649
2650
|
apiKey: t.apiKey,
|
|
2650
2651
|
params: { championshipName: r.championshipName }
|
|
2651
2652
|
},
|
|
2652
|
-
transform: (E) =>
|
|
2653
|
-
onError:
|
|
2654
|
-
}), { isLoading: m, execute:
|
|
2653
|
+
transform: (E) => ht(E, r),
|
|
2654
|
+
onError: g
|
|
2655
|
+
}), { isLoading: m, execute: p } = D({
|
|
2655
2656
|
options: {
|
|
2656
2657
|
path: "/v2/championship-phases",
|
|
2657
2658
|
apiKey: t.apiKey,
|
|
2658
2659
|
params: _(() => ({ championshipId: r.championshipId }))
|
|
2659
2660
|
},
|
|
2660
2661
|
transform: (E) => fi(E, r),
|
|
2661
|
-
onError:
|
|
2662
|
-
}), { isLoading: z, execute:
|
|
2662
|
+
onError: g
|
|
2663
|
+
}), { isLoading: z, execute: P } = D({
|
|
2663
2664
|
options: {
|
|
2664
2665
|
path: "/v2/championship-teams",
|
|
2665
2666
|
apiKey: t.apiKey,
|
|
2666
2667
|
params: _(() => ({ championshipId: r.championshipId }))
|
|
2667
2668
|
},
|
|
2668
2669
|
transform: (E) => yi(E, r),
|
|
2669
|
-
onError:
|
|
2670
|
+
onError: g
|
|
2670
2671
|
}), {
|
|
2671
|
-
isLoading:
|
|
2672
|
+
isLoading: k,
|
|
2672
2673
|
state: A,
|
|
2673
2674
|
execute: L
|
|
2674
2675
|
} = D({
|
|
@@ -2678,52 +2679,52 @@ const Yn = {
|
|
|
2678
2679
|
params: _(() => ({ championshipId: r.championshipId, division: r.section }))
|
|
2679
2680
|
},
|
|
2680
2681
|
transform: (E) => Ct(E),
|
|
2681
|
-
onError:
|
|
2682
|
-
}),
|
|
2682
|
+
onError: g
|
|
2683
|
+
}), f = Lt([m, v, z, k], { delay: 1e3 }), { months: S } = Vn(A, ur(t, "locale"), (E) => {
|
|
2683
2684
|
r.selectedMonth = Number(a.selectedMonth) || E;
|
|
2684
2685
|
});
|
|
2685
2686
|
wr({ items: A, element: i, offset: l, enabled: s });
|
|
2686
2687
|
const { pause: T, resume: C } = bo(L, Xt, { immediate: !1 });
|
|
2687
2688
|
xr(t.autoRefresh, C, T);
|
|
2688
|
-
const H = _(() => Oe(n(A)).filter(r.selectedTeam,
|
|
2689
|
+
const H = _(() => Oe(n(A)).filter(r.selectedTeam, b.value, !0).schedule(n(o), n(t.locale)).filter(r.subPhase, [["divisionStage2Name"]], !0).gameDateFilter(n(r.selectedMonth)).groupByDays().value()), j = _(() => {
|
|
2689
2690
|
const E = r.sections.find((Ue) => Ue.name === r.section);
|
|
2690
2691
|
return Wn((E == null ? void 0 : E.phases) ?? []);
|
|
2691
2692
|
});
|
|
2692
|
-
te([
|
|
2693
|
+
te([y, p, P, L], {
|
|
2693
2694
|
onFinished: () => {
|
|
2694
2695
|
t.autoRefresh && Na(C, Xt);
|
|
2695
2696
|
}
|
|
2696
2697
|
});
|
|
2697
2698
|
function ne(E) {
|
|
2698
|
-
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([
|
|
2699
|
+
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();
|
|
2699
2700
|
}
|
|
2700
|
-
function
|
|
2701
|
+
function N(E) {
|
|
2701
2702
|
r.selectedMonth = E, a.selectedMonth = E, Ht();
|
|
2702
2703
|
}
|
|
2703
2704
|
function le(E) {
|
|
2704
2705
|
r.section = E, a.section = E, r.selectedMonth = null, a.selectedMonth = null, r.subPhase = "", L();
|
|
2705
2706
|
}
|
|
2706
|
-
function
|
|
2707
|
+
function ft(E) {
|
|
2707
2708
|
r.subPhase = E;
|
|
2708
2709
|
}
|
|
2709
|
-
function
|
|
2710
|
+
function yt(E) {
|
|
2710
2711
|
r.selectedTeam = E, a.selectedTeam = E, E || (r.selectedTeamGameType = "all", a.selectedTeamGameType = null);
|
|
2711
2712
|
}
|
|
2712
|
-
function
|
|
2713
|
+
function wt(E) {
|
|
2713
2714
|
r.selectedTeamGameType = E, a.selectedTeamGameType = E;
|
|
2714
2715
|
}
|
|
2715
2716
|
return (E, Ue) => xe(E.$slots, "default", ke(_e({
|
|
2716
2717
|
...r,
|
|
2717
2718
|
months: n(S),
|
|
2718
|
-
isLoading: n(
|
|
2719
|
+
isLoading: n(f),
|
|
2719
2720
|
subPhases: j.value,
|
|
2720
2721
|
games: H.value,
|
|
2721
2722
|
changeSeason: ne,
|
|
2722
|
-
changeMonth:
|
|
2723
|
+
changeMonth: N,
|
|
2723
2724
|
changeSection: le,
|
|
2724
|
-
changeTeam:
|
|
2725
|
-
changeTeamType:
|
|
2726
|
-
changeSubSection:
|
|
2725
|
+
changeTeam: yt,
|
|
2726
|
+
changeTeamType: wt,
|
|
2727
|
+
changeSubSection: ft
|
|
2727
2728
|
})));
|
|
2728
2729
|
}
|
|
2729
2730
|
}, Hn = {
|
|
@@ -2824,10 +2825,10 @@ const el = { render: Zn }, tl = { class: "is-info is-text-base" }, al = ["href"]
|
|
|
2824
2825
|
class: G(["card-item", { "is-optional": e.game.optional }])
|
|
2825
2826
|
}, [
|
|
2826
2827
|
c("div", tl, [
|
|
2827
|
-
W(
|
|
2828
|
+
W(u(e.game.gameName) + " - " + u(e.game.divisionName) + " - " + u(e.game.location.locationName) + " ", 1),
|
|
2828
2829
|
e.game.broadcast ? (d(), h(O, { key: 0 }, [
|
|
2829
2830
|
r[0] || (r[0] = W(" - ")),
|
|
2830
|
-
|
|
2831
|
+
w(n(Xn), { height: "16" }),
|
|
2831
2832
|
r[1] || (r[1] = W(" "))
|
|
2832
2833
|
], 64)) : I("", !0),
|
|
2833
2834
|
e.game.video ? (d(), h(O, { key: 1 }, [
|
|
@@ -2836,13 +2837,13 @@ const el = { render: Zn }, tl = { class: "is-info is-text-base" }, al = ["href"]
|
|
|
2836
2837
|
href: e.game.video,
|
|
2837
2838
|
target: "_blank"
|
|
2838
2839
|
}, [
|
|
2839
|
-
|
|
2840
|
+
w(n(el), { height: "18" })
|
|
2840
2841
|
], 8, al)
|
|
2841
2842
|
], 64)) : I("", !0)
|
|
2842
2843
|
]),
|
|
2843
2844
|
c("div", rl, [
|
|
2844
|
-
c("span", ol,
|
|
2845
|
-
c("span", il,
|
|
2845
|
+
c("span", ol, u(e.game.homeTeam.shortName), 1),
|
|
2846
|
+
c("span", il, u(e.game.homeTeam.longName), 1),
|
|
2846
2847
|
(d(), $(n(V), {
|
|
2847
2848
|
key: e.game.homeTeam.id,
|
|
2848
2849
|
class: "is-logo-image",
|
|
@@ -2853,23 +2854,23 @@ const el = { render: Zn }, tl = { class: "is-info is-text-base" }, al = ["href"]
|
|
|
2853
2854
|
class: G(["is-game-data", [{ "is-live": e.game.gameStatus === 1 }]])
|
|
2854
2855
|
}, [
|
|
2855
2856
|
c("div", nl, [
|
|
2856
|
-
e.game.isOvertime ? (d(), h("span", ll,
|
|
2857
|
-
e.game.isShootout ? (d(), h("span", sl,
|
|
2858
|
-
e.game.seriesStandings ? (d(), h("span", cl,
|
|
2857
|
+
e.game.isOvertime ? (d(), h("span", ll, u(n(t)("common.overtimeShort")), 1)) : I("", !0),
|
|
2858
|
+
e.game.isShootout ? (d(), h("span", sl, u(n(t)("common.shootoutShort")), 1)) : I("", !0),
|
|
2859
|
+
e.game.seriesStandings ? (d(), h("span", cl, u(e.game.seriesStandings), 1)) : I("", !0)
|
|
2859
2860
|
]),
|
|
2860
2861
|
c("a", {
|
|
2861
2862
|
href: e.gameLink(e.game),
|
|
2862
2863
|
target: e.target
|
|
2863
2864
|
}, [
|
|
2864
|
-
e.game.gameStatus > 0 && e.game.gameStatus < 3 ? (d(), h("span", pl,
|
|
2865
|
-
e.game.gameStatus === 3 ? (d(), h("span", gl,
|
|
2866
|
-
e.game.gameStatus === 4 ? (d(), h("span", ul,
|
|
2867
|
-
e.game.gameStatus === 0 ? (d(), h("span", bl,
|
|
2865
|
+
e.game.gameStatus > 0 && e.game.gameStatus < 3 ? (d(), h("span", pl, u(e.game.homeTeamScore) + " : " + u(e.game.awayTeamScore), 1)) : I("", !0),
|
|
2866
|
+
e.game.gameStatus === 3 ? (d(), h("span", gl, u(n(t)("game.status.jury")), 1)) : I("", !0),
|
|
2867
|
+
e.game.gameStatus === 4 ? (d(), h("span", ul, u(n(t)("game.status.delayed")), 1)) : I("", !0),
|
|
2868
|
+
e.game.gameStatus === 0 ? (d(), h("span", bl, u(e.game.gameDateTime), 1)) : I("", !0)
|
|
2868
2869
|
], 8, dl),
|
|
2869
|
-
e.game.gameStatus === 0 ? (d(), h("span", ml, "(" +
|
|
2870
|
+
e.game.gameStatus === 0 ? (d(), h("span", ml, "(" + u(e.offsetName) + ")", 1)) : I("", !0),
|
|
2870
2871
|
e.game.gameStatus > 0 ? (d(), h(O, { key: 1 }, [
|
|
2871
|
-
c("div", vl,
|
|
2872
|
-
e.game.gameStatus !== 2 ? (d(), h("div", hl,
|
|
2872
|
+
c("div", vl, u(e.game.periodResults), 1),
|
|
2873
|
+
e.game.gameStatus !== 2 ? (d(), h("div", hl, u(n(t)(`game.period.${e.game.period}`)), 1)) : I("", !0)
|
|
2873
2874
|
], 64)) : I("", !0)
|
|
2874
2875
|
], 2),
|
|
2875
2876
|
c("div", fl, [
|
|
@@ -2878,8 +2879,8 @@ const el = { render: Zn }, tl = { class: "is-info is-text-base" }, al = ["href"]
|
|
|
2878
2879
|
class: "is-logo-image",
|
|
2879
2880
|
src: e.game.awayTeam.logo
|
|
2880
2881
|
}, null, 8, ["src"])),
|
|
2881
|
-
c("span", yl,
|
|
2882
|
-
c("span", wl,
|
|
2882
|
+
c("span", yl, u(e.game.awayTeam.shortName), 1),
|
|
2883
|
+
c("span", wl, u(e.game.awayTeam.longName), 1)
|
|
2883
2884
|
])
|
|
2884
2885
|
], 2));
|
|
2885
2886
|
}
|
|
@@ -2937,70 +2938,70 @@ const el = { render: Zn }, tl = { class: "is-info is-text-base" }, al = ["href"]
|
|
|
2937
2938
|
"update:selectedTeamGameType"
|
|
2938
2939
|
],
|
|
2939
2940
|
setup(e, { emit: t }) {
|
|
2940
|
-
const a = e, r = t, { t: o } = Q(), { championshipId: i, selectedMonth: l, selectedTeam: s, selectedTeamGameType:
|
|
2941
|
-
return (v,
|
|
2941
|
+
const a = e, r = t, { t: o } = Q(), { championshipId: i, selectedMonth: l, selectedTeam: s, selectedTeamGameType: g } = La(a, r), b = _(() => s.value === null);
|
|
2942
|
+
return (v, y) => (d(), h("div", kl, [
|
|
2942
2943
|
c("div", null, [
|
|
2943
|
-
c("label", _l,
|
|
2944
|
-
|
|
2944
|
+
c("label", _l, u(n(o)("selection.season")), 1),
|
|
2945
|
+
w(n(re), {
|
|
2945
2946
|
id: "season",
|
|
2946
2947
|
modelValue: n(i),
|
|
2947
|
-
"onUpdate:modelValue":
|
|
2948
|
+
"onUpdate:modelValue": y[0] || (y[0] = (m) => Ie(i) ? i.value = m : null)
|
|
2948
2949
|
}, {
|
|
2949
|
-
default:
|
|
2950
|
+
default: x(() => [
|
|
2950
2951
|
(d(!0), h(O, null, U(e.seasons, (m) => (d(), h("option", {
|
|
2951
2952
|
key: m.championshipId,
|
|
2952
2953
|
value: m.championshipId
|
|
2953
|
-
},
|
|
2954
|
+
}, u(m.seasonName), 9, zl))), 128))
|
|
2954
2955
|
]),
|
|
2955
2956
|
_: 1
|
|
2956
2957
|
}, 8, ["modelValue"])
|
|
2957
2958
|
]),
|
|
2958
2959
|
c("div", null, [
|
|
2959
|
-
c("label", Sl,
|
|
2960
|
-
|
|
2960
|
+
c("label", Sl, u(n(o)("selection.month")), 1),
|
|
2961
|
+
w(n(re), {
|
|
2961
2962
|
id: "months",
|
|
2962
2963
|
modelValue: n(l),
|
|
2963
|
-
"onUpdate:modelValue":
|
|
2964
|
+
"onUpdate:modelValue": y[1] || (y[1] = (m) => Ie(l) ? l.value = m : null)
|
|
2964
2965
|
}, {
|
|
2965
|
-
default:
|
|
2966
|
-
c("option", Tl,
|
|
2966
|
+
default: x(() => [
|
|
2967
|
+
c("option", Tl, u(n(o)("common.all")), 1),
|
|
2967
2968
|
(d(!0), h(O, null, U(e.months, (m) => (d(), h("option", {
|
|
2968
2969
|
key: m.value,
|
|
2969
2970
|
value: m.value
|
|
2970
|
-
},
|
|
2971
|
+
}, u(m.name), 9, Il))), 128))
|
|
2971
2972
|
]),
|
|
2972
2973
|
_: 1
|
|
2973
2974
|
}, 8, ["modelValue"])
|
|
2974
2975
|
]),
|
|
2975
2976
|
c("div", null, [
|
|
2976
|
-
c("label", Pl,
|
|
2977
|
-
|
|
2977
|
+
c("label", Pl, u(n(o)("selection.teams")), 1),
|
|
2978
|
+
w(n(re), {
|
|
2978
2979
|
id: "teams",
|
|
2979
2980
|
modelValue: n(s),
|
|
2980
|
-
"onUpdate:modelValue":
|
|
2981
|
+
"onUpdate:modelValue": y[2] || (y[2] = (m) => Ie(s) ? s.value = m : null)
|
|
2981
2982
|
}, {
|
|
2982
|
-
default:
|
|
2983
|
-
c("option", Nl,
|
|
2983
|
+
default: x(() => [
|
|
2984
|
+
c("option", Nl, u(n(o)("common.all")), 1),
|
|
2984
2985
|
(d(!0), h(O, null, U(e.teams, (m) => (d(), h("option", {
|
|
2985
2986
|
key: m.teamId,
|
|
2986
2987
|
value: m.teamId
|
|
2987
|
-
},
|
|
2988
|
+
}, u(m.teamName), 9, $l))), 128))
|
|
2988
2989
|
]),
|
|
2989
2990
|
_: 1
|
|
2990
2991
|
}, 8, ["modelValue"])
|
|
2991
2992
|
]),
|
|
2992
2993
|
c("div", null, [
|
|
2993
|
-
c("label", Al,
|
|
2994
|
-
|
|
2994
|
+
c("label", Al, u(n(o)("selection.homeOrAway")), 1),
|
|
2995
|
+
w(n(re), {
|
|
2995
2996
|
id: "type",
|
|
2996
|
-
modelValue: n(
|
|
2997
|
-
"onUpdate:modelValue":
|
|
2998
|
-
disabled:
|
|
2997
|
+
modelValue: n(g),
|
|
2998
|
+
"onUpdate:modelValue": y[3] || (y[3] = (m) => Ie(g) ? g.value = m : null),
|
|
2999
|
+
disabled: b.value
|
|
2999
3000
|
}, {
|
|
3000
|
-
default:
|
|
3001
|
-
c("option", Ll,
|
|
3002
|
-
c("option", Cl,
|
|
3003
|
-
c("option", El,
|
|
3001
|
+
default: x(() => [
|
|
3002
|
+
c("option", Ll, u(n(o)("common.all")), 1),
|
|
3003
|
+
c("option", Cl, u(n(o)("selection.home")), 1),
|
|
3004
|
+
c("option", El, u(n(o)("selection.away")), 1)
|
|
3004
3005
|
]),
|
|
3005
3006
|
_: 1
|
|
3006
3007
|
}, 8, ["modelValue", "disabled"])
|
|
@@ -3040,63 +3041,63 @@ const el = { render: Zn }, tl = { class: "is-info is-text-base" }, al = ["href"]
|
|
|
3040
3041
|
...Pr
|
|
3041
3042
|
},
|
|
3042
3043
|
setup(e) {
|
|
3043
|
-
const t = e, a = { en: ue, hu: be }, r = K(null), o = K(null), i = K(
|
|
3044
|
+
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 = _(() => {
|
|
3044
3045
|
var m;
|
|
3045
3046
|
return ((m = Aa(o)) == null ? void 0 : m.clientHeight) ?? 0;
|
|
3046
3047
|
});
|
|
3047
|
-
function
|
|
3048
|
+
function b(m) {
|
|
3048
3049
|
i.value = m;
|
|
3049
3050
|
}
|
|
3050
3051
|
function v(m) {
|
|
3051
|
-
return
|
|
3052
|
+
return nt(t.externalGameResolver || ql, m);
|
|
3052
3053
|
}
|
|
3053
|
-
const
|
|
3054
|
-
return (m,
|
|
3054
|
+
const y = _(() => t.isGameTargetExternal ? "_blank" : "_self");
|
|
3055
|
+
return (m, p) => (d(), h("div", {
|
|
3055
3056
|
ref_key: "mainElement",
|
|
3056
3057
|
ref: r
|
|
3057
3058
|
}, [
|
|
3058
|
-
|
|
3059
|
+
w(n(pe), {
|
|
3059
3060
|
locale: t.locale,
|
|
3060
3061
|
messages: a
|
|
3061
3062
|
}, {
|
|
3062
|
-
default:
|
|
3063
|
-
|
|
3064
|
-
default:
|
|
3065
|
-
|
|
3063
|
+
default: x(({ t: z }) => [
|
|
3064
|
+
w(n(ze), null, {
|
|
3065
|
+
default: x(({ error: P, hasError: k }) => [
|
|
3066
|
+
k ? (d(), $(n(Se), {
|
|
3066
3067
|
key: 0,
|
|
3067
|
-
error:
|
|
3068
|
+
error: P
|
|
3068
3069
|
}, null, 8, ["error"])) : I("", !0),
|
|
3069
|
-
|
|
3070
|
+
w(Yn, {
|
|
3070
3071
|
locale: e.locale,
|
|
3071
3072
|
timezone: i.value,
|
|
3072
3073
|
"championship-name": e.championshipName,
|
|
3073
3074
|
"main-element": r.value,
|
|
3074
3075
|
"auto-refresh": t.autoRefresh,
|
|
3075
|
-
"scroll-offset":
|
|
3076
|
+
"scroll-offset": g.value,
|
|
3076
3077
|
"scroll-to-game-date": s.value
|
|
3077
3078
|
}, {
|
|
3078
|
-
default:
|
|
3079
|
+
default: x(({
|
|
3079
3080
|
seasons: A,
|
|
3080
3081
|
championshipId: L,
|
|
3081
|
-
sections:
|
|
3082
|
+
sections: f,
|
|
3082
3083
|
section: S,
|
|
3083
3084
|
teams: T,
|
|
3084
3085
|
games: C,
|
|
3085
3086
|
months: H,
|
|
3086
3087
|
isLoading: j,
|
|
3087
3088
|
subPhases: ne,
|
|
3088
|
-
subPhase:
|
|
3089
|
+
subPhase: N,
|
|
3089
3090
|
selectedMonth: le,
|
|
3090
|
-
selectedTeam:
|
|
3091
|
-
selectedTeamGameType:
|
|
3092
|
-
changeSeason:
|
|
3091
|
+
selectedTeam: ft,
|
|
3092
|
+
selectedTeamGameType: yt,
|
|
3093
|
+
changeSeason: wt,
|
|
3093
3094
|
changeMonth: E,
|
|
3094
3095
|
changeSection: Ue,
|
|
3095
3096
|
changeTeam: sr,
|
|
3096
3097
|
changeTeamType: cr,
|
|
3097
3098
|
changeSubSection: Vt
|
|
3098
3099
|
}) => [
|
|
3099
|
-
|
|
3100
|
+
w(Ol, {
|
|
3100
3101
|
ref_key: "selectorElement",
|
|
3101
3102
|
ref: o,
|
|
3102
3103
|
class: "is-sticky is-blured-bg",
|
|
@@ -3105,50 +3106,50 @@ const el = { render: Zn }, tl = { class: "is-info is-text-base" }, al = ["href"]
|
|
|
3105
3106
|
months: H,
|
|
3106
3107
|
"selected-month": le,
|
|
3107
3108
|
teams: T,
|
|
3108
|
-
"selected-team":
|
|
3109
|
-
"selected-team-game-type":
|
|
3110
|
-
"onUpdate:championshipId":
|
|
3109
|
+
"selected-team": ft,
|
|
3110
|
+
"selected-team-game-type": yt,
|
|
3111
|
+
"onUpdate:championshipId": wt,
|
|
3111
3112
|
"onUpdate:selectedMonth": E,
|
|
3112
3113
|
"onUpdate:selectedTeam": sr,
|
|
3113
3114
|
"onUpdate:selectedTeamGameType": cr
|
|
3114
3115
|
}, null, 8, ["seasons", "championship-id", "months", "selected-month", "teams", "selected-team", "selected-team-game-type", "onUpdate:championshipId", "onUpdate:selectedMonth", "onUpdate:selectedTeam", "onUpdate:selectedTeamGameType"]),
|
|
3115
3116
|
c("div", Fl, [
|
|
3116
|
-
(d(!0), h(O, null, U(
|
|
3117
|
+
(d(!0), h(O, null, U(f, (J) => (d(), h("button", {
|
|
3117
3118
|
key: J.id,
|
|
3118
3119
|
class: G(["tab-button", { "is-active": J.name === S }]),
|
|
3119
3120
|
onClick: (Le) => Ue(J.name)
|
|
3120
|
-
},
|
|
3121
|
+
}, u(J.name), 11, Gl))), 128))
|
|
3121
3122
|
]),
|
|
3122
3123
|
ne.length > 1 ? (d(), h("div", Ml, [
|
|
3123
3124
|
c("button", {
|
|
3124
|
-
class: G({ "is-active":
|
|
3125
|
+
class: G({ "is-active": N === "" }),
|
|
3125
3126
|
onClick: (J) => Vt("")
|
|
3126
|
-
},
|
|
3127
|
+
}, u(z("common.all")), 11, Dl),
|
|
3127
3128
|
(d(!0), h(O, null, U(ne, ({ name: J }) => (d(), h("button", {
|
|
3128
3129
|
key: J,
|
|
3129
|
-
class: G({ "is-active": J ===
|
|
3130
|
+
class: G({ "is-active": J === N }),
|
|
3130
3131
|
onClick: (Le) => Vt(J)
|
|
3131
|
-
},
|
|
3132
|
+
}, u(J), 11, Kl))), 128))
|
|
3132
3133
|
])) : I("", !0),
|
|
3133
3134
|
t.timezoneSelector ? (d(), $(n(fr), {
|
|
3134
3135
|
key: t.locale,
|
|
3135
3136
|
class: "is-mb-5",
|
|
3136
3137
|
locale: t.locale,
|
|
3137
3138
|
"current-zone": i.value,
|
|
3138
|
-
onChange:
|
|
3139
|
+
onChange: b
|
|
3139
3140
|
}, null, 8, ["locale", "current-zone"])) : I("", !0),
|
|
3140
|
-
j ? (d(), $(n(
|
|
3141
|
+
j ? (d(), $(n(at), { key: 2 })) : (d(!0), h(O, { key: 3 }, U(C.rows, (J, Le) => (d(), h("div", {
|
|
3141
3142
|
key: Le,
|
|
3142
3143
|
"data-gamedate": Le
|
|
3143
3144
|
}, [
|
|
3144
|
-
c("span", Bl,
|
|
3145
|
+
c("span", Bl, u(n(et)(new Date(Le), "L dddd", i.value, e.locale)), 1),
|
|
3145
3146
|
c("div", Vl, [
|
|
3146
3147
|
(d(!0), h(O, null, U(J, (qt) => (d(), $(xl, {
|
|
3147
3148
|
key: qt.id,
|
|
3148
3149
|
game: qt,
|
|
3149
3150
|
"offset-name": l.value,
|
|
3150
3151
|
"game-link": v,
|
|
3151
|
-
target:
|
|
3152
|
+
target: y.value
|
|
3152
3153
|
}, null, 8, ["game", "offset-name", "target"]))), 128))
|
|
3153
3154
|
])
|
|
3154
3155
|
], 8, Ul))), 128))
|
|
@@ -3163,7 +3164,7 @@ const el = { render: Zn }, tl = { class: "is-info is-text-base" }, al = ["href"]
|
|
|
3163
3164
|
}, 8, ["locale"])
|
|
3164
3165
|
], 512));
|
|
3165
3166
|
}
|
|
3166
|
-
}, Yl = /* @__PURE__ */ he(Wl, [["styles", [ve, jl, Kt, er, Rl]]]), Ye = "live",
|
|
3167
|
+
}, Yl = /* @__PURE__ */ he(Wl, [["styles", [ve, jl, Kt, er, Rl]]]), Ye = "live", Tt = "default", Hl = 1e3 * 60 * 2, Jl = {
|
|
3167
3168
|
index: {
|
|
3168
3169
|
label: "table.blank",
|
|
3169
3170
|
class: "is-text-left"
|
|
@@ -3292,15 +3293,15 @@ const as = {
|
|
|
3292
3293
|
}), { onError: o } = ge(), { sort: i, change: l } = At({
|
|
3293
3294
|
sortTarget: "",
|
|
3294
3295
|
orders: []
|
|
3295
|
-
}), { isLoading: s, execute:
|
|
3296
|
+
}), { isLoading: s, execute: g } = D({
|
|
3296
3297
|
options: {
|
|
3297
3298
|
path: "/v2/championship-seasons",
|
|
3298
3299
|
apiKey: t.apiKey,
|
|
3299
3300
|
params: { championshipName: r.championshipName }
|
|
3300
3301
|
},
|
|
3301
|
-
transform: (j) =>
|
|
3302
|
+
transform: (j) => ht(j, r),
|
|
3302
3303
|
onError: o
|
|
3303
|
-
}), { isLoading:
|
|
3304
|
+
}), { isLoading: b, execute: v } = D({
|
|
3304
3305
|
options: {
|
|
3305
3306
|
path: "/v2/championship-sections",
|
|
3306
3307
|
apiKey: t.apiKey,
|
|
@@ -3309,9 +3310,9 @@ const as = {
|
|
|
3309
3310
|
transform: (j) => hi(j, r),
|
|
3310
3311
|
onError: o
|
|
3311
3312
|
}), {
|
|
3312
|
-
isLoading:
|
|
3313
|
+
isLoading: y,
|
|
3313
3314
|
state: m,
|
|
3314
|
-
execute:
|
|
3315
|
+
execute: p
|
|
3315
3316
|
} = D({
|
|
3316
3317
|
options: {
|
|
3317
3318
|
path: "/v2/standings",
|
|
@@ -3319,20 +3320,20 @@ const as = {
|
|
|
3319
3320
|
params: _(() => ({ championshipId: r.championshipId, division: r.section }))
|
|
3320
3321
|
},
|
|
3321
3322
|
onError: o
|
|
3322
|
-
}), { state: z, execute:
|
|
3323
|
+
}), { state: z, execute: P } = D({
|
|
3323
3324
|
options: {
|
|
3324
3325
|
path: "/v2/games-list",
|
|
3325
3326
|
apiKey: t.apiKey,
|
|
3326
3327
|
params: _(() => ({ championshipId: r.championshipId, division: r.section }))
|
|
3327
3328
|
},
|
|
3328
3329
|
onError: o
|
|
3329
|
-
}), { isActive:
|
|
3330
|
-
te([
|
|
3330
|
+
}), { isActive: k, rows: A } = Xl(m, z), L = _(() => [b.value, s.value, y.value].some(Boolean)), f = _(() => Oe(n(m)).teamName().sorted(i).addContinuousIndex().value()), S = _(() => Oe(n(A)).addContinuousIndex().value());
|
|
3331
|
+
te([g, v, p, P]), so(P, Hl);
|
|
3331
3332
|
function T(j) {
|
|
3332
|
-
r.championshipId = j, a.championshipId = j, a.section = null, te([v,
|
|
3333
|
+
r.championshipId = j, a.championshipId = j, a.section = null, te([v, p]);
|
|
3333
3334
|
}
|
|
3334
3335
|
function C(j) {
|
|
3335
|
-
r.section = j, a.section = j,
|
|
3336
|
+
r.section = j, a.section = j, p();
|
|
3336
3337
|
}
|
|
3337
3338
|
function H(j) {
|
|
3338
3339
|
r.standingsType = j;
|
|
@@ -3341,8 +3342,8 @@ const as = {
|
|
|
3341
3342
|
...r,
|
|
3342
3343
|
sort: n(i),
|
|
3343
3344
|
isLoading: L.value,
|
|
3344
|
-
isLiveStandingsActive: n(
|
|
3345
|
-
teams:
|
|
3345
|
+
isLiveStandingsActive: n(k),
|
|
3346
|
+
teams: f.value,
|
|
3346
3347
|
liveRows: S.value,
|
|
3347
3348
|
onSort: n(l),
|
|
3348
3349
|
changeSeason: T,
|
|
@@ -3398,17 +3399,17 @@ const as = {
|
|
|
3398
3399
|
const a = e, r = t, { t: o } = Q(), { championshipId: i } = La(a, r);
|
|
3399
3400
|
return (l, s) => (d(), h("div", rs, [
|
|
3400
3401
|
c("div", null, [
|
|
3401
|
-
c("label", os,
|
|
3402
|
-
|
|
3402
|
+
c("label", os, u(n(o)("selection.season")), 1),
|
|
3403
|
+
w(n(re), {
|
|
3403
3404
|
id: "season",
|
|
3404
3405
|
modelValue: n(i),
|
|
3405
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
3406
|
+
"onUpdate:modelValue": s[0] || (s[0] = (g) => Ie(i) ? i.value = g : null)
|
|
3406
3407
|
}, {
|
|
3407
|
-
default:
|
|
3408
|
-
(d(!0), h(O, null, U(e.seasons, (
|
|
3409
|
-
key:
|
|
3410
|
-
value:
|
|
3411
|
-
},
|
|
3408
|
+
default: x(() => [
|
|
3409
|
+
(d(!0), h(O, null, U(e.seasons, (g) => (d(), h("option", {
|
|
3410
|
+
key: g.championshipId,
|
|
3411
|
+
value: g.championshipId
|
|
3412
|
+
}, u(g.seasonName), 9, is))), 128))
|
|
3412
3413
|
]),
|
|
3413
3414
|
_: 1
|
|
3414
3415
|
}, 8, ["modelValue"])
|
|
@@ -3499,115 +3500,115 @@ const ca = { render: ds }, ps = ["href"], gs = { class: "is-team-name-long" }, u
|
|
|
3499
3500
|
},
|
|
3500
3501
|
emits: ["sort"],
|
|
3501
3502
|
setup(e, { emit: t }) {
|
|
3502
|
-
const a = e, r = t, { columns: o, hideColumns: i } = va(a), { onError: l } = ge(), { columns: s, error:
|
|
3503
|
+
const a = e, r = t, { columns: o, hideColumns: i } = va(a), { onError: l } = ge(), { columns: s, error: g } = ee(
|
|
3503
3504
|
o,
|
|
3504
3505
|
i,
|
|
3505
3506
|
_(() => ({
|
|
3506
3507
|
offsetName: a.offsetName
|
|
3507
3508
|
}))
|
|
3508
3509
|
);
|
|
3509
|
-
|
|
3510
|
-
new
|
|
3511
|
-
...
|
|
3512
|
-
cause: { column:
|
|
3510
|
+
g.value && l(
|
|
3511
|
+
new xt.WidgetError(xt.UndefinedColumn.message, {
|
|
3512
|
+
...xt.UndefinedColumn.options,
|
|
3513
|
+
cause: { column: g.value }
|
|
3513
3514
|
})
|
|
3514
3515
|
);
|
|
3515
|
-
const
|
|
3516
|
-
return (v,
|
|
3517
|
-
default:
|
|
3518
|
-
|
|
3516
|
+
const b = (v) => r("sort", v);
|
|
3517
|
+
return (v, y) => (d(), $(n(ie), null, {
|
|
3518
|
+
default: x(({ el: m }) => [
|
|
3519
|
+
w(n(ce), {
|
|
3519
3520
|
columns: n(s),
|
|
3520
3521
|
sort: a.sort,
|
|
3521
3522
|
rows: a.rows,
|
|
3522
3523
|
"is-loading": e.isLoading,
|
|
3523
3524
|
"append-to": e.appendTo || m,
|
|
3524
|
-
onSort:
|
|
3525
|
+
onSort: b
|
|
3525
3526
|
}, {
|
|
3526
|
-
"cell-index":
|
|
3527
|
+
"cell-index": x(({ row: p }) => [
|
|
3527
3528
|
c("span", {
|
|
3528
|
-
class: G(
|
|
3529
|
-
},
|
|
3529
|
+
class: G(p.indexClass)
|
|
3530
|
+
}, u(p.index), 3)
|
|
3530
3531
|
]),
|
|
3531
|
-
"cell-teamLogo":
|
|
3532
|
-
var z,
|
|
3532
|
+
"cell-teamLogo": x(({ row: p }) => {
|
|
3533
|
+
var z, P;
|
|
3533
3534
|
return [
|
|
3534
3535
|
(d(), $(n(V), {
|
|
3535
|
-
key: ((z =
|
|
3536
|
+
key: ((z = p.team) == null ? void 0 : z.id) ?? p.id,
|
|
3536
3537
|
class: "is-logo-image",
|
|
3537
|
-
src: (
|
|
3538
|
+
src: (P = p.team) == null ? void 0 : P.logo
|
|
3538
3539
|
}, null, 8, ["src"]))
|
|
3539
3540
|
];
|
|
3540
3541
|
}),
|
|
3541
|
-
"cell-teamName":
|
|
3542
|
-
var z,
|
|
3542
|
+
"cell-teamName": x(({ row: p }) => {
|
|
3543
|
+
var z, P, k, A, L;
|
|
3543
3544
|
return [
|
|
3544
3545
|
e.isTeamLinked ? (d(), h("a", {
|
|
3545
3546
|
key: 0,
|
|
3546
|
-
href: e.externalTeamResolver((z =
|
|
3547
|
+
href: e.externalTeamResolver((z = p.team) == null ? void 0 : z.longName),
|
|
3547
3548
|
target: "_blank"
|
|
3548
3549
|
}, [
|
|
3549
|
-
c("span", gs,
|
|
3550
|
-
c("span", us,
|
|
3551
|
-
|
|
3552
|
-
|
|
3550
|
+
c("span", gs, u((P = p.team) == null ? void 0 : P.longName), 1),
|
|
3551
|
+
c("span", us, u((k = p.team) == null ? void 0 : k.shortName), 1),
|
|
3552
|
+
p.isActiveGame && p.diff !== 0 ? (d(), h(O, { key: 0 }, [
|
|
3553
|
+
p.diff > 0 ? (d(), $(n(ca), {
|
|
3553
3554
|
key: 0,
|
|
3554
3555
|
width: "12",
|
|
3555
3556
|
height: "12",
|
|
3556
3557
|
class: "is-text-positive"
|
|
3557
3558
|
})) : I("", !0),
|
|
3558
|
-
|
|
3559
|
+
p.diff < 0 ? (d(), $(n(sa), {
|
|
3559
3560
|
key: 1,
|
|
3560
3561
|
width: "12",
|
|
3561
3562
|
height: "12",
|
|
3562
3563
|
class: "is-text-negative"
|
|
3563
3564
|
})) : I("", !0),
|
|
3564
3565
|
c("span", {
|
|
3565
|
-
class: G({ "is-text-positive":
|
|
3566
|
-
},
|
|
3566
|
+
class: G({ "is-text-positive": p.diff > 0, "is-text-negative": p.diff < 0 })
|
|
3567
|
+
}, u(p.diff), 3)
|
|
3567
3568
|
], 64)) : I("", !0)
|
|
3568
3569
|
], 8, ps)) : (d(), h(O, { key: 1 }, [
|
|
3569
3570
|
c("span", bs, [
|
|
3570
|
-
W(
|
|
3571
|
-
|
|
3571
|
+
W(u((A = p.team) == null ? void 0 : A.longName) + " ", 1),
|
|
3572
|
+
p.penaltyPoints ? (d(), h("span", ms, y[0] || (y[0] = [
|
|
3572
3573
|
c("sup", null, "*", -1)
|
|
3573
3574
|
]))) : I("", !0)
|
|
3574
3575
|
]),
|
|
3575
3576
|
c("span", vs, [
|
|
3576
|
-
W(
|
|
3577
|
-
|
|
3577
|
+
W(u((L = p.team) == null ? void 0 : L.shortName) + " ", 1),
|
|
3578
|
+
p.penaltyPoints ? (d(), h("span", hs, y[1] || (y[1] = [
|
|
3578
3579
|
c("sup", null, "*", -1)
|
|
3579
3580
|
]))) : I("", !0)
|
|
3580
3581
|
]),
|
|
3581
|
-
|
|
3582
|
-
|
|
3582
|
+
p.isActiveGame && p.diff !== 0 ? (d(), h(O, { key: 0 }, [
|
|
3583
|
+
p.diff > 0 ? (d(), $(n(ca), {
|
|
3583
3584
|
key: 0,
|
|
3584
3585
|
width: "12",
|
|
3585
3586
|
height: "12",
|
|
3586
3587
|
class: "is-text-positive"
|
|
3587
3588
|
})) : I("", !0),
|
|
3588
|
-
|
|
3589
|
+
p.diff < 0 ? (d(), $(n(sa), {
|
|
3589
3590
|
key: 1,
|
|
3590
3591
|
width: "12",
|
|
3591
3592
|
height: "12",
|
|
3592
3593
|
class: "is-text-negative"
|
|
3593
3594
|
})) : I("", !0),
|
|
3594
3595
|
c("span", {
|
|
3595
|
-
class: G({ "is-text-positive":
|
|
3596
|
-
},
|
|
3596
|
+
class: G({ "is-text-positive": p.diff > 0, "is-text-negative": p.diff < 0 })
|
|
3597
|
+
}, u(p.diff), 3)
|
|
3597
3598
|
], 64)) : I("", !0)
|
|
3598
3599
|
], 64))
|
|
3599
3600
|
];
|
|
3600
3601
|
}),
|
|
3601
|
-
"cell-score":
|
|
3602
|
-
|
|
3602
|
+
"cell-score": x(({ row: p }) => [
|
|
3603
|
+
p.isActiveGame ? (d(), h("span", {
|
|
3603
3604
|
key: 0,
|
|
3604
3605
|
class: G(["is-badge is-large", [
|
|
3605
|
-
{ "is-green":
|
|
3606
|
+
{ "is-green": p.scoreType === "W", "is-red": p.scoreType === "L", "is-yellow": p.scoreType === "D" }
|
|
3606
3607
|
]])
|
|
3607
|
-
},
|
|
3608
|
+
}, u(p.score), 3)) : I("", !0)
|
|
3608
3609
|
]),
|
|
3609
|
-
loading:
|
|
3610
|
-
|
|
3610
|
+
loading: x(() => [
|
|
3611
|
+
w(n(at))
|
|
3611
3612
|
]),
|
|
3612
3613
|
_: 2
|
|
3613
3614
|
}, 1032, ["columns", "sort", "rows", "is-loading", "append-to"])
|
|
@@ -3639,40 +3640,40 @@ const ca = { render: ds }, ps = ["href"], gs = { class: "is-team-name-long" }, u
|
|
|
3639
3640
|
}
|
|
3640
3641
|
},
|
|
3641
3642
|
setup(e) {
|
|
3642
|
-
const t = e, a = { en: ue, hu: be }, r = K(null), o = (i) =>
|
|
3643
|
+
const t = e, a = { en: ue, hu: be }, r = K(null), o = (i) => st(t.externalTeamResolver, i);
|
|
3643
3644
|
return (i, l) => (d(), h("div", null, [
|
|
3644
|
-
|
|
3645
|
+
w(n(pe), {
|
|
3645
3646
|
locale: t.locale,
|
|
3646
3647
|
messages: a
|
|
3647
3648
|
}, {
|
|
3648
|
-
default:
|
|
3649
|
-
|
|
3650
|
-
default:
|
|
3651
|
-
|
|
3649
|
+
default: x(({ t: s }) => [
|
|
3650
|
+
w(n(ze), null, {
|
|
3651
|
+
default: x(({ error: g, hasError: b }) => [
|
|
3652
|
+
b ? (d(), $(n(Se), {
|
|
3652
3653
|
key: 0,
|
|
3653
|
-
error:
|
|
3654
|
+
error: g
|
|
3654
3655
|
}, null, 8, ["error"])) : I("", !0),
|
|
3655
|
-
|
|
3656
|
+
w(as, {
|
|
3656
3657
|
locale: e.locale,
|
|
3657
3658
|
"championship-name": e.championshipName
|
|
3658
3659
|
}, {
|
|
3659
|
-
default:
|
|
3660
|
+
default: x(({
|
|
3660
3661
|
sort: v,
|
|
3661
|
-
teams:
|
|
3662
|
+
teams: y,
|
|
3662
3663
|
seasons: m,
|
|
3663
|
-
section:
|
|
3664
|
+
section: p,
|
|
3664
3665
|
sections: z,
|
|
3665
|
-
liveRows:
|
|
3666
|
-
isLoading:
|
|
3666
|
+
liveRows: P,
|
|
3667
|
+
isLoading: k,
|
|
3667
3668
|
standingsType: A,
|
|
3668
3669
|
championshipId: L,
|
|
3669
|
-
isLiveStandingsActive:
|
|
3670
|
+
isLiveStandingsActive: f,
|
|
3670
3671
|
onSort: S,
|
|
3671
3672
|
changeSeason: T,
|
|
3672
3673
|
changeSection: C,
|
|
3673
3674
|
onChangeStandingsType: H
|
|
3674
3675
|
}) => [
|
|
3675
|
-
|
|
3676
|
+
w(ns, {
|
|
3676
3677
|
seasons: m,
|
|
3677
3678
|
"championship-id": L,
|
|
3678
3679
|
"onUpdate:championshipId": T
|
|
@@ -3680,44 +3681,44 @@ const ca = { render: ds }, ps = ["href"], gs = { class: "is-team-name-long" }, u
|
|
|
3680
3681
|
c("div", ys, [
|
|
3681
3682
|
(d(!0), h(O, null, U(z, (j) => (d(), h("button", {
|
|
3682
3683
|
key: j.phaseId,
|
|
3683
|
-
class: G(["tab-button", { "is-active": j.phaseName ===
|
|
3684
|
+
class: G(["tab-button", { "is-active": j.phaseName === p }]),
|
|
3684
3685
|
onClick: (ne) => C(j.phaseName)
|
|
3685
|
-
},
|
|
3686
|
+
}, u(j.phaseName), 11, ws))), 128))
|
|
3686
3687
|
]),
|
|
3687
|
-
|
|
3688
|
+
f ? (d(), h("div", xs, [
|
|
3688
3689
|
c("button", {
|
|
3689
3690
|
class: G({ "is-active": A === n(Ye) }),
|
|
3690
3691
|
onClick: (j) => H(n(Ye))
|
|
3691
|
-
},
|
|
3692
|
+
}, u(s("standings.live")), 11, ks),
|
|
3692
3693
|
c("button", {
|
|
3693
|
-
class: G({ "is-active": A === n(
|
|
3694
|
-
onClick: (j) => H(n(
|
|
3695
|
-
},
|
|
3694
|
+
class: G({ "is-active": A === n(Tt) }),
|
|
3695
|
+
onClick: (j) => H(n(Tt))
|
|
3696
|
+
}, u(s("standings.default")), 11, _s)
|
|
3696
3697
|
])) : I("", !0),
|
|
3697
|
-
A === n(Ye) &&
|
|
3698
|
+
A === n(Ye) && f ? (d(), $(da, {
|
|
3698
3699
|
key: 1,
|
|
3699
|
-
rows:
|
|
3700
|
+
rows: P.rows,
|
|
3700
3701
|
columns: n(Jl),
|
|
3701
3702
|
"external-team-resolver": o,
|
|
3702
|
-
"is-loading":
|
|
3703
|
+
"is-loading": k,
|
|
3703
3704
|
"append-to": r.value
|
|
3704
3705
|
}, null, 8, ["rows", "columns", "is-loading", "append-to"])) : I("", !0),
|
|
3705
|
-
A === n(
|
|
3706
|
+
A === n(Tt) || !f ? (d(), $(da, {
|
|
3706
3707
|
key: 2,
|
|
3707
|
-
rows:
|
|
3708
|
+
rows: y.rows,
|
|
3708
3709
|
columns: n(Ar),
|
|
3709
3710
|
sort: v,
|
|
3710
3711
|
"external-team-resolver": o,
|
|
3711
3712
|
"append-to": r.value,
|
|
3712
|
-
"is-loading":
|
|
3713
|
+
"is-loading": k,
|
|
3713
3714
|
onSort: S
|
|
3714
3715
|
}, null, 8, ["rows", "columns", "sort", "append-to", "is-loading", "onSort"])) : I("", !0),
|
|
3715
|
-
|
|
3716
|
-
rows:
|
|
3716
|
+
w(n(Yt), {
|
|
3717
|
+
rows: y.rows,
|
|
3717
3718
|
"additional-key": "inheritedPoints"
|
|
3718
3719
|
}, null, 8, ["rows"]),
|
|
3719
|
-
|
|
3720
|
-
rows:
|
|
3720
|
+
w(n(Yt), {
|
|
3721
|
+
rows: y.rows,
|
|
3721
3722
|
"additional-key": "penaltyPoints"
|
|
3722
3723
|
}, null, 8, ["rows"])
|
|
3723
3724
|
]),
|
|
@@ -3896,9 +3897,9 @@ function Is(e) {
|
|
|
3896
3897
|
];
|
|
3897
3898
|
}
|
|
3898
3899
|
function Ps(e) {
|
|
3899
|
-
return ae(
|
|
3900
|
+
return ae(vt(Pe(q("championshipId"))), me(oe(["championshipId", "seasonName"])))(e);
|
|
3900
3901
|
}
|
|
3901
|
-
const Ns = (e) =>
|
|
3902
|
+
const Ns = (e) => vt(Mt(q("teamName")), e);
|
|
3902
3903
|
function $s(e) {
|
|
3903
3904
|
return e.report ? e.report : e.type ? e.type === De ? "points" : "teamAttandance" : "points";
|
|
3904
3905
|
}
|
|
@@ -3975,102 +3976,102 @@ const As = {
|
|
|
3975
3976
|
setup(e, { emit: t }) {
|
|
3976
3977
|
const a = e, r = t, { t: o } = Q(), i = _({
|
|
3977
3978
|
get: () => a.championshipId,
|
|
3978
|
-
set: (
|
|
3979
|
+
set: (y) => r("onSeasonChange", y)
|
|
3979
3980
|
}), l = _({
|
|
3980
3981
|
get: () => a.phaseId,
|
|
3981
|
-
set: (
|
|
3982
|
+
set: (y) => r("onSectionChange", y)
|
|
3982
3983
|
}), s = _({
|
|
3983
3984
|
get: () => a.currentReport,
|
|
3984
|
-
set: (
|
|
3985
|
-
}),
|
|
3985
|
+
set: (y) => r("onReportChange", y)
|
|
3986
|
+
}), g = _({
|
|
3986
3987
|
get: () => a.teamFilter,
|
|
3987
|
-
set: (
|
|
3988
|
-
}),
|
|
3988
|
+
set: (y) => r("onTeamChange", y)
|
|
3989
|
+
}), b = _({
|
|
3989
3990
|
get: () => a.playerFilter,
|
|
3990
|
-
set: (
|
|
3991
|
+
set: (y) => r("onPlayerInput", y)
|
|
3991
3992
|
});
|
|
3992
|
-
function v(
|
|
3993
|
-
r("onStatTypeChange",
|
|
3993
|
+
function v(y) {
|
|
3994
|
+
r("onStatTypeChange", y);
|
|
3994
3995
|
}
|
|
3995
|
-
return (
|
|
3996
|
+
return (y, m) => (d(), h(O, null, [
|
|
3996
3997
|
c("div", As, [
|
|
3997
3998
|
c("div", null, [
|
|
3998
|
-
c("label", Ls,
|
|
3999
|
-
|
|
3999
|
+
c("label", Ls, u(n(o)("selection.season")), 1),
|
|
4000
|
+
w(n(re), {
|
|
4000
4001
|
id: "season",
|
|
4001
4002
|
modelValue: i.value,
|
|
4002
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
4003
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => i.value = p)
|
|
4003
4004
|
}, {
|
|
4004
|
-
default:
|
|
4005
|
-
(d(!0), h(O, null, U(e.seasons, (
|
|
4006
|
-
key:
|
|
4007
|
-
value:
|
|
4008
|
-
},
|
|
4005
|
+
default: x(() => [
|
|
4006
|
+
(d(!0), h(O, null, U(e.seasons, (p) => (d(), h("option", {
|
|
4007
|
+
key: p.championshipId,
|
|
4008
|
+
value: p.championshipId
|
|
4009
|
+
}, u(p.seasonName), 9, Cs))), 128))
|
|
4009
4010
|
]),
|
|
4010
4011
|
_: 1
|
|
4011
4012
|
}, 8, ["modelValue"])
|
|
4012
4013
|
]),
|
|
4013
4014
|
c("div", null, [
|
|
4014
|
-
c("label", Es,
|
|
4015
|
-
|
|
4015
|
+
c("label", Es, u(n(o)("selection.section")), 1),
|
|
4016
|
+
w(n(re), {
|
|
4016
4017
|
id: "section",
|
|
4017
4018
|
modelValue: l.value,
|
|
4018
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
4019
|
+
"onUpdate:modelValue": m[1] || (m[1] = (p) => l.value = p)
|
|
4019
4020
|
}, {
|
|
4020
|
-
default:
|
|
4021
|
-
(d(!0), h(O, null, U(e.sections, (
|
|
4022
|
-
key:
|
|
4023
|
-
value:
|
|
4024
|
-
},
|
|
4021
|
+
default: x(() => [
|
|
4022
|
+
(d(!0), h(O, null, U(e.sections, (p) => (d(), h("option", {
|
|
4023
|
+
key: p.phaseId,
|
|
4024
|
+
value: p.phaseId
|
|
4025
|
+
}, u(p.phaseName), 9, Os))), 128))
|
|
4025
4026
|
]),
|
|
4026
4027
|
_: 1
|
|
4027
4028
|
}, 8, ["modelValue"])
|
|
4028
4029
|
]),
|
|
4029
4030
|
c("div", null, [
|
|
4030
|
-
c("label", js,
|
|
4031
|
-
|
|
4031
|
+
c("label", js, u(n(o)("selection.report")), 1),
|
|
4032
|
+
w(n(re), {
|
|
4032
4033
|
id: "report",
|
|
4033
4034
|
modelValue: s.value,
|
|
4034
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
4035
|
+
"onUpdate:modelValue": m[2] || (m[2] = (p) => s.value = p)
|
|
4035
4036
|
}, {
|
|
4036
|
-
default:
|
|
4037
|
-
(d(!0), h(O, null, U(e.reports, ({ name:
|
|
4037
|
+
default: x(() => [
|
|
4038
|
+
(d(!0), h(O, null, U(e.reports, ({ name: p, value: z }) => (d(), h("option", {
|
|
4038
4039
|
key: z,
|
|
4039
4040
|
value: z
|
|
4040
|
-
},
|
|
4041
|
+
}, u(p), 9, Rs))), 128))
|
|
4041
4042
|
]),
|
|
4042
4043
|
_: 1
|
|
4043
4044
|
}, 8, ["modelValue"])
|
|
4044
4045
|
]),
|
|
4045
4046
|
e.reportType === "players" ? (d(), h(O, { key: 0 }, [
|
|
4046
4047
|
c("div", null, [
|
|
4047
|
-
c("label", Fs,
|
|
4048
|
-
|
|
4048
|
+
c("label", Fs, u(n(o)("selection.teams")), 1),
|
|
4049
|
+
w(n(re), {
|
|
4049
4050
|
id: "teams",
|
|
4050
|
-
modelValue:
|
|
4051
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
4051
|
+
modelValue: g.value,
|
|
4052
|
+
"onUpdate:modelValue": m[3] || (m[3] = (p) => g.value = p),
|
|
4052
4053
|
disabled: e.reportType !== "players"
|
|
4053
4054
|
}, {
|
|
4054
|
-
default:
|
|
4055
|
-
c("option", Gs,
|
|
4056
|
-
(d(!0), h(O, null, U(e.teams, ({ teamId:
|
|
4057
|
-
key:
|
|
4058
|
-
value:
|
|
4059
|
-
},
|
|
4055
|
+
default: x(() => [
|
|
4056
|
+
c("option", Gs, u(n(o)("common.all")), 1),
|
|
4057
|
+
(d(!0), h(O, null, U(e.teams, ({ teamId: p, teamName: z }) => (d(), h("option", {
|
|
4058
|
+
key: p,
|
|
4059
|
+
value: p
|
|
4060
|
+
}, u(z), 9, Ms))), 128))
|
|
4060
4061
|
]),
|
|
4061
4062
|
_: 1
|
|
4062
4063
|
}, 8, ["modelValue", "disabled"])
|
|
4063
4064
|
]),
|
|
4064
4065
|
c("div", null, [
|
|
4065
|
-
c("label", Ds,
|
|
4066
|
+
c("label", Ds, u(n(o)("selection.filterName")), 1),
|
|
4066
4067
|
br(c("input", {
|
|
4067
4068
|
id: "player",
|
|
4068
|
-
"onUpdate:modelValue": m[4] || (m[4] = (
|
|
4069
|
+
"onUpdate:modelValue": m[4] || (m[4] = (p) => b.value = p),
|
|
4069
4070
|
type: "text",
|
|
4070
4071
|
class: "base-input",
|
|
4071
4072
|
disabled: e.reportType !== "players"
|
|
4072
4073
|
}, null, 8, Ks), [
|
|
4073
|
-
[mr,
|
|
4074
|
+
[mr, b.value]
|
|
4074
4075
|
])
|
|
4075
4076
|
])
|
|
4076
4077
|
], 64)) : I("", !0)
|
|
@@ -4079,13 +4080,13 @@ const As = {
|
|
|
4079
4080
|
c("button", {
|
|
4080
4081
|
type: "button",
|
|
4081
4082
|
class: G(["tab-button", { "is-active": e.reportType === n(De) }]),
|
|
4082
|
-
onClick: m[5] || (m[5] = (
|
|
4083
|
-
},
|
|
4083
|
+
onClick: m[5] || (m[5] = (p) => v(n(De)))
|
|
4084
|
+
}, u(n(o)("selection.players")), 3),
|
|
4084
4085
|
c("button", {
|
|
4085
4086
|
type: "button",
|
|
4086
4087
|
class: G(["tab-button", { "is-active": e.reportType === n(pa) }]),
|
|
4087
|
-
onClick: m[6] || (m[6] = (
|
|
4088
|
-
},
|
|
4088
|
+
onClick: m[6] || (m[6] = (p) => v(n(pa)))
|
|
4089
|
+
}, u(n(o)("selection.teams")), 3)
|
|
4089
4090
|
])
|
|
4090
4091
|
], 64));
|
|
4091
4092
|
}
|
|
@@ -4131,33 +4132,33 @@ const As = {
|
|
|
4131
4132
|
i.columns = l.columns, i.api = l.api;
|
|
4132
4133
|
const s = _(
|
|
4133
4134
|
() => i.reportType === De ? Ts(a) : Is(a)
|
|
4134
|
-
), { page:
|
|
4135
|
+
), { page: g, change: b } = wa(), { sort: v, change: y } = At({
|
|
4135
4136
|
sortTarget: "points",
|
|
4136
4137
|
orders: [{ target: "points", direction: B }]
|
|
4137
4138
|
});
|
|
4138
4139
|
async function m() {
|
|
4139
4140
|
try {
|
|
4140
4141
|
i.loading = !0;
|
|
4141
|
-
const
|
|
4142
|
+
const N = await Be("/v2/championship-seasons", t.apiKey, {
|
|
4142
4143
|
championshipName: t.championshipName
|
|
4143
4144
|
});
|
|
4144
|
-
if (
|
|
4145
|
+
if (N.length === 0)
|
|
4145
4146
|
throw new xa(Ze.message, Ze.options);
|
|
4146
|
-
i.seasons = Ps(
|
|
4147
|
-
} catch (
|
|
4148
|
-
r(
|
|
4147
|
+
i.seasons = Ps(N), i.championshipId || (i.championshipId = fe(i.seasons).championshipId);
|
|
4148
|
+
} catch (N) {
|
|
4149
|
+
r(N);
|
|
4149
4150
|
} finally {
|
|
4150
4151
|
i.loading = !1;
|
|
4151
4152
|
}
|
|
4152
4153
|
}
|
|
4153
|
-
async function
|
|
4154
|
-
var
|
|
4154
|
+
async function p() {
|
|
4155
|
+
var N;
|
|
4155
4156
|
try {
|
|
4156
4157
|
i.loading = !0;
|
|
4157
4158
|
const le = await Be("/v2/championship-sections", t.apiKey, {
|
|
4158
4159
|
championshipId: i.championshipId
|
|
4159
4160
|
});
|
|
4160
|
-
i.sections = Me(q("phaseName"))(zr(Ge([0, "phases"], le))), i.phaseId = i.phaseId || ((
|
|
4161
|
+
i.sections = Me(q("phaseName"))(zr(Ge([0, "phases"], le))), i.phaseId = i.phaseId || ((N = fe(i.sections)) == null ? void 0 : N.phaseId);
|
|
4161
4162
|
} catch (le) {
|
|
4162
4163
|
r(le);
|
|
4163
4164
|
} finally {
|
|
@@ -4166,16 +4167,16 @@ const As = {
|
|
|
4166
4167
|
}
|
|
4167
4168
|
async function z() {
|
|
4168
4169
|
try {
|
|
4169
|
-
i.loading = !0, i.rows = [],
|
|
4170
|
-
const
|
|
4170
|
+
i.loading = !0, i.rows = [], b(1);
|
|
4171
|
+
const N = await Be(i.api, t.apiKey, {
|
|
4171
4172
|
championshipId: i.championshipId,
|
|
4172
4173
|
phaseId: i.phaseId,
|
|
4173
4174
|
...i.apiParams
|
|
4174
4175
|
});
|
|
4175
|
-
i.rows =
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4176
|
+
i.rows = rt(
|
|
4177
|
+
N,
|
|
4178
|
+
lt,
|
|
4179
|
+
ot,
|
|
4179
4180
|
ka(["mip"]),
|
|
4180
4181
|
Sr([
|
|
4181
4182
|
"dvgTime",
|
|
@@ -4198,58 +4199,58 @@ const As = {
|
|
|
4198
4199
|
"sh2AToi"
|
|
4199
4200
|
])
|
|
4200
4201
|
);
|
|
4201
|
-
} catch (
|
|
4202
|
-
r(
|
|
4202
|
+
} catch (N) {
|
|
4203
|
+
r(N);
|
|
4203
4204
|
} finally {
|
|
4204
4205
|
i.loading = !1;
|
|
4205
4206
|
}
|
|
4206
4207
|
}
|
|
4207
|
-
async function
|
|
4208
|
+
async function P() {
|
|
4208
4209
|
try {
|
|
4209
4210
|
i.loading = !0, i.rows = [];
|
|
4210
|
-
const
|
|
4211
|
+
const N = await Be("/v2/championship-teams", t.apiKey, {
|
|
4211
4212
|
championshipId: i.championshipId
|
|
4212
4213
|
});
|
|
4213
|
-
i.teams = Ns(
|
|
4214
|
-
} catch (
|
|
4215
|
-
r(
|
|
4214
|
+
i.teams = Ns(N);
|
|
4215
|
+
} catch (N) {
|
|
4216
|
+
r(N);
|
|
4216
4217
|
} finally {
|
|
4217
4218
|
i.loading = !1;
|
|
4218
4219
|
}
|
|
4219
4220
|
}
|
|
4220
|
-
const
|
|
4221
|
-
() => Oe(i.rows).filter(i.teamFilter, [["team", "id"]], !0).filter(i.playerFilter, ["name"]).sorted(v).addIndex(v.sortTarget).pagination(n(
|
|
4222
|
-
), A = _(() => [(
|
|
4221
|
+
const k = _(
|
|
4222
|
+
() => Oe(i.rows).filter(i.teamFilter, [["team", "id"]], !0).filter(i.playerFilter, ["name"]).sorted(v).addIndex(v.sortTarget).pagination(n(g), t.limit).value()
|
|
4223
|
+
), A = _(() => [(g.value - 1) * t.limit + 1, Math.min(g.value * t.limit, k.value.totalItems)]);
|
|
4223
4224
|
function L() {
|
|
4224
|
-
const
|
|
4225
|
-
i.columns =
|
|
4225
|
+
const N = ga.get(i.currentReport);
|
|
4226
|
+
i.columns = N.columns, i.api = N.api, i.apiParams = N.params || {}, v.sortTarget = N.sort.sortTarget, v.orders = N.sort.orders;
|
|
4226
4227
|
}
|
|
4227
|
-
async function
|
|
4228
|
-
i.championshipId =
|
|
4228
|
+
async function f(N) {
|
|
4229
|
+
i.championshipId = N, o.championshipId = N, i.phaseId = null, o.phaseId = null, await p(), o.section = i.section, await P(), await z();
|
|
4229
4230
|
}
|
|
4230
|
-
async function S(
|
|
4231
|
-
i.phaseId =
|
|
4231
|
+
async function S(N) {
|
|
4232
|
+
i.phaseId = N, o.phaseId = N, await z();
|
|
4232
4233
|
}
|
|
4233
|
-
function T(
|
|
4234
|
-
i.currentReport =
|
|
4234
|
+
function T(N) {
|
|
4235
|
+
i.currentReport = N, o.report = N, L(), z();
|
|
4235
4236
|
}
|
|
4236
|
-
function C(
|
|
4237
|
-
|
|
4237
|
+
function C(N) {
|
|
4238
|
+
b(1), i.teamFilter = Number(N) || null, o.teamFilter = N || null;
|
|
4238
4239
|
}
|
|
4239
|
-
function H(
|
|
4240
|
-
|
|
4240
|
+
function H(N) {
|
|
4241
|
+
b(1), N instanceof Event && (N = N.target.value), i.playerFilter = N;
|
|
4241
4242
|
}
|
|
4242
|
-
function j(
|
|
4243
|
-
i.reportType =
|
|
4243
|
+
function j(N) {
|
|
4244
|
+
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(), z();
|
|
4244
4245
|
}
|
|
4245
4246
|
async function ne() {
|
|
4246
|
-
await m(), await
|
|
4247
|
+
await m(), await p(), await P(), L(), await z();
|
|
4247
4248
|
}
|
|
4248
|
-
return ne(), (
|
|
4249
|
+
return ne(), (N, le) => xe(N.$slots, "default", ke(_e({
|
|
4249
4250
|
...i,
|
|
4250
|
-
rows:
|
|
4251
|
+
rows: k.value,
|
|
4251
4252
|
sort: n(v),
|
|
4252
|
-
page: n(
|
|
4253
|
+
page: n(g),
|
|
4253
4254
|
range: A.value,
|
|
4254
4255
|
selectorProps: {
|
|
4255
4256
|
reports: s.value,
|
|
@@ -4269,15 +4270,15 @@ const As = {
|
|
|
4269
4270
|
)
|
|
4270
4271
|
},
|
|
4271
4272
|
selectorListeners: {
|
|
4272
|
-
onSeasonChange:
|
|
4273
|
+
onSeasonChange: f,
|
|
4273
4274
|
onSectionChange: S,
|
|
4274
4275
|
onReportChange: T,
|
|
4275
4276
|
onStatTypeChange: j,
|
|
4276
4277
|
onTeamChange: C,
|
|
4277
4278
|
onPlayerInput: H
|
|
4278
4279
|
},
|
|
4279
|
-
onPaginatorChange: n(
|
|
4280
|
-
onSort: n(
|
|
4280
|
+
onPaginatorChange: n(b),
|
|
4281
|
+
onSort: n(y)
|
|
4281
4282
|
})));
|
|
4282
4283
|
}
|
|
4283
4284
|
}, Vs = `.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)}`, qs = '.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-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)}', Ws = ".table-responsive{container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}.table-responsive table{width:100%}", Ys = ".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}", Hs = { style: { display: "flex", "align-items": "center" } }, Js = {
|
|
@@ -4310,59 +4311,59 @@ const As = {
|
|
|
4310
4311
|
...$r
|
|
4311
4312
|
},
|
|
4312
4313
|
setup(e) {
|
|
4313
|
-
const t = e, a = { en: ue, hu: be }, r = K(null), o = (l) =>
|
|
4314
|
+
const t = e, a = { en: ue, hu: be }, r = K(null), o = (l) => st(t.externalTeamResolver, l), i = (l) => Ot(t.externalPlayerLink, l);
|
|
4314
4315
|
return (l, s) => (d(), h("div", null, [
|
|
4315
|
-
|
|
4316
|
+
w(n(pe), {
|
|
4316
4317
|
locale: t.locale,
|
|
4317
4318
|
messages: a
|
|
4318
4319
|
}, {
|
|
4319
|
-
default:
|
|
4320
|
-
|
|
4321
|
-
default:
|
|
4322
|
-
|
|
4320
|
+
default: x(() => [
|
|
4321
|
+
w(n(ze), null, {
|
|
4322
|
+
default: x(({ hasError: g, error: b }) => [
|
|
4323
|
+
w(Bs, {
|
|
4323
4324
|
"championship-name": e.championshipName,
|
|
4324
4325
|
"championship-id": e.championshipId,
|
|
4325
4326
|
limit: t.limit,
|
|
4326
4327
|
"api-key": e.apiKey
|
|
4327
4328
|
}, {
|
|
4328
|
-
default:
|
|
4329
|
+
default: x(({
|
|
4329
4330
|
sort: v,
|
|
4330
|
-
columns:
|
|
4331
|
+
columns: y,
|
|
4331
4332
|
rows: m,
|
|
4332
|
-
page:
|
|
4333
|
+
page: p,
|
|
4333
4334
|
range: z,
|
|
4334
|
-
loading:
|
|
4335
|
-
selectorProps:
|
|
4335
|
+
loading: P,
|
|
4336
|
+
selectorProps: k,
|
|
4336
4337
|
selectorListeners: A,
|
|
4337
4338
|
onPaginatorChange: L,
|
|
4338
|
-
onSort:
|
|
4339
|
+
onSort: f
|
|
4339
4340
|
}) => [
|
|
4340
|
-
|
|
4341
|
+
g ? (d(), $(n(Se), {
|
|
4341
4342
|
key: 0,
|
|
4342
|
-
error:
|
|
4343
|
-
}, null, 8, ["error"])) : (d(), $(Us, vr({ key: 1 },
|
|
4344
|
-
|
|
4345
|
-
columns:
|
|
4343
|
+
error: b
|
|
4344
|
+
}, null, 8, ["error"])) : (d(), $(Us, vr({ key: 1 }, k, hr(A)), null, 16)),
|
|
4345
|
+
w(n(yr), {
|
|
4346
|
+
columns: y,
|
|
4346
4347
|
rows: m.rows,
|
|
4347
4348
|
sort: v,
|
|
4348
|
-
"is-loading":
|
|
4349
|
+
"is-loading": P,
|
|
4349
4350
|
"external-team-resolver": o,
|
|
4350
4351
|
"external-player-resolver": i,
|
|
4351
4352
|
"is-team-linked": l.isTeamLinked,
|
|
4352
4353
|
"is-player-linked": l.isPlayerLinked,
|
|
4353
4354
|
"hide-columns": e.hideColumns,
|
|
4354
4355
|
"append-to": r.value,
|
|
4355
|
-
onSort:
|
|
4356
|
+
onSort: f
|
|
4356
4357
|
}, null, 8, ["columns", "rows", "sort", "is-loading", "is-team-linked", "is-player-linked", "hide-columns", "append-to", "onSort"]),
|
|
4357
4358
|
c("div", Hs, [
|
|
4358
|
-
|
|
4359
|
-
page:
|
|
4359
|
+
w(n(ya), {
|
|
4360
|
+
page: p,
|
|
4360
4361
|
"items-per-page": t.limit,
|
|
4361
4362
|
"total-items": m.totalItems,
|
|
4362
4363
|
"range-length": 5,
|
|
4363
4364
|
onChange: L
|
|
4364
4365
|
}, null, 8, ["page", "items-per-page", "total-items", "onChange"]),
|
|
4365
|
-
m.totalItems > 0 ? (d(), h("div", Js,
|
|
4366
|
+
m.totalItems > 0 ? (d(), h("div", Js, u(z.join("-")) + " / " + u(m.totalItems) + " db ", 1)) : I("", !0)
|
|
4366
4367
|
]),
|
|
4367
4368
|
c("div", {
|
|
4368
4369
|
ref_key: "tooltipContainer",
|
|
@@ -4406,20 +4407,20 @@ function tc(e) {
|
|
|
4406
4407
|
return ["ld", "rd", "d"].includes((a = t.position) == null ? void 0 : a.toLowerCase()) ? 1 : ["lw", "rw", "c"].includes((r = t.position) == null ? void 0 : r.toLowerCase()) ? 2 : 0;
|
|
4407
4408
|
}),
|
|
4408
4409
|
Me(oc),
|
|
4409
|
-
me(ae(
|
|
4410
|
+
me(ae(lt, ot, Tr(["position"])))
|
|
4410
4411
|
)(e);
|
|
4411
4412
|
}
|
|
4412
|
-
function
|
|
4413
|
-
return Ua(Gt(ui(t, ["team", "id"])), me(
|
|
4413
|
+
function It(e, t) {
|
|
4414
|
+
return Ua(Gt(ui(t, ["team", "id"])), me(lt))(e);
|
|
4414
4415
|
}
|
|
4415
4416
|
function ua(e, t) {
|
|
4416
4417
|
return Ka(pi(di, la(Ge(["player", "playerId"]), e), la(Ge(["player", "playerId"]), t)));
|
|
4417
4418
|
}
|
|
4418
4419
|
function ac({ goalieStats: e, fieldPlayers: t, playersPenalty: a }) {
|
|
4419
|
-
const r = me(Ge(["player", "playerId"]))(e), i =
|
|
4420
|
+
const r = me(Ge(["player", "playerId"]))(e), i = pt((b) => r.includes(b.player.playerId))(a), l = ai((b, v) => b.player.playerId === v, a, r), s = ua(t, i), g = ua(e, l);
|
|
4420
4421
|
return {
|
|
4421
4422
|
fieldPlayers: Jt(s),
|
|
4422
|
-
goalies: Jt(
|
|
4423
|
+
goalies: Jt(g)
|
|
4423
4424
|
};
|
|
4424
4425
|
}
|
|
4425
4426
|
function rc(e) {
|
|
@@ -4454,7 +4455,7 @@ const nc = {
|
|
|
4454
4455
|
}
|
|
4455
4456
|
},
|
|
4456
4457
|
setup(e) {
|
|
4457
|
-
const t = e, a =
|
|
4458
|
+
const t = e, a = it(), r = Te("history"), o = Z({
|
|
4458
4459
|
page: r.page || He,
|
|
4459
4460
|
teamId: Number(r.teamId) || Number(t.teamId),
|
|
4460
4461
|
championshipId: Number(r.championshipId) || Number(t.championshipId),
|
|
@@ -4467,53 +4468,53 @@ const nc = {
|
|
|
4467
4468
|
params: _(() => ({ championshipId: o.championshipId, teamId: o.teamId })),
|
|
4468
4469
|
immediate: !0
|
|
4469
4470
|
},
|
|
4470
|
-
transform: (
|
|
4471
|
+
transform: (f) => ec(f),
|
|
4471
4472
|
onError: i
|
|
4472
|
-
}), { state: s, execute:
|
|
4473
|
+
}), { state: s, execute: g } = D({
|
|
4473
4474
|
options: {
|
|
4474
4475
|
path: "/v2/team-games",
|
|
4475
4476
|
apiKey: t.apiKey,
|
|
4476
4477
|
params: _(() => ({ championshipId: o.championshipId, teamId: o.teamId }))
|
|
4477
4478
|
},
|
|
4478
|
-
transform: (
|
|
4479
|
-
Ct(
|
|
4479
|
+
transform: (f) => rt(
|
|
4480
|
+
Ct(f),
|
|
4480
4481
|
_a(a, t.locale),
|
|
4481
4482
|
za,
|
|
4482
4483
|
Sa(o.teamId),
|
|
4483
4484
|
Ta
|
|
4484
4485
|
),
|
|
4485
4486
|
onError: i
|
|
4486
|
-
}), { state:
|
|
4487
|
+
}), { state: b, execute: v } = D({
|
|
4487
4488
|
options: {
|
|
4488
4489
|
path: "/v2/championship-players",
|
|
4489
4490
|
apiKey: t.apiKey,
|
|
4490
4491
|
params: _(() => ({ championshipId: o.championshipId, teamId: o.teamId }))
|
|
4491
4492
|
},
|
|
4492
|
-
transform: (
|
|
4493
|
+
transform: (f) => tc(f, o.teamId),
|
|
4493
4494
|
onError: i
|
|
4494
|
-
}), { state:
|
|
4495
|
+
}), { state: y, execute: m } = D({
|
|
4495
4496
|
options: {
|
|
4496
4497
|
path: "/v2/players-stats",
|
|
4497
4498
|
apiKey: t.apiKey,
|
|
4498
4499
|
params: _(() => ({ championshipId: o.championshipId }))
|
|
4499
4500
|
},
|
|
4500
|
-
transform: (
|
|
4501
|
+
transform: (f) => It(f, o.teamId),
|
|
4501
4502
|
onError: i
|
|
4502
|
-
}), { state:
|
|
4503
|
+
}), { state: p, execute: z } = D({
|
|
4503
4504
|
options: {
|
|
4504
4505
|
path: "/v2/players-penalty",
|
|
4505
4506
|
apiKey: t.apiKey,
|
|
4506
4507
|
params: _(() => ({ championshipId: o.championshipId }))
|
|
4507
4508
|
},
|
|
4508
|
-
transform: (
|
|
4509
|
+
transform: (f) => It(f, o.teamId),
|
|
4509
4510
|
onError: i
|
|
4510
|
-
}), { state:
|
|
4511
|
+
}), { state: P, execute: k } = D({
|
|
4511
4512
|
options: {
|
|
4512
4513
|
path: "/v2/players-goalie",
|
|
4513
4514
|
apiKey: t.apiKey,
|
|
4514
4515
|
params: _(() => ({ championshipId: o.championshipId }))
|
|
4515
4516
|
},
|
|
4516
|
-
transform: (
|
|
4517
|
+
transform: (f) => It(f, o.teamId),
|
|
4517
4518
|
onError: i
|
|
4518
4519
|
});
|
|
4519
4520
|
se(
|
|
@@ -4525,31 +4526,31 @@ const nc = {
|
|
|
4525
4526
|
immediate: !0
|
|
4526
4527
|
}
|
|
4527
4528
|
);
|
|
4528
|
-
function A(
|
|
4529
|
-
o.page =
|
|
4529
|
+
function A(f) {
|
|
4530
|
+
o.page = f, r.page = f;
|
|
4530
4531
|
}
|
|
4531
|
-
function L(
|
|
4532
|
-
switch (
|
|
4532
|
+
function L(f) {
|
|
4533
|
+
switch (f) {
|
|
4533
4534
|
case Je:
|
|
4534
|
-
|
|
4535
|
+
g();
|
|
4535
4536
|
break;
|
|
4536
4537
|
case Qe:
|
|
4537
4538
|
v();
|
|
4538
4539
|
break;
|
|
4539
4540
|
case Xe:
|
|
4540
|
-
o.isStatsLoading = !0, te([
|
|
4541
|
+
o.isStatsLoading = !0, te([k, m, z], {
|
|
4541
4542
|
onFinished: () => {
|
|
4542
4543
|
o.isStatsLoading = !1, o.statistics = ac({
|
|
4543
|
-
goalieStats:
|
|
4544
|
-
fieldPlayers:
|
|
4545
|
-
playersPenalty:
|
|
4544
|
+
goalieStats: P.value,
|
|
4545
|
+
fieldPlayers: y.value,
|
|
4546
|
+
playersPenalty: p.value
|
|
4546
4547
|
});
|
|
4547
4548
|
}
|
|
4548
4549
|
});
|
|
4549
4550
|
break;
|
|
4550
4551
|
}
|
|
4551
4552
|
}
|
|
4552
|
-
return (
|
|
4553
|
+
return (f, S) => xe(f.$slots, "default", ke(_e({ ...o, games: n(s), teamInfo: n(l), roster: n(b), fieldPlayers: n(y), fieldPlayersPenalty: n(p), onChangePage: A })));
|
|
4553
4554
|
}
|
|
4554
4555
|
}, lc = { class: "is-heading-2" }, sc = {
|
|
4555
4556
|
__name: "Games",
|
|
@@ -4578,14 +4579,14 @@ const nc = {
|
|
|
4578
4579
|
"powerplay",
|
|
4579
4580
|
"penaltyKilling"
|
|
4580
4581
|
],
|
|
4581
|
-
|
|
4582
|
+
$t
|
|
4582
4583
|
),
|
|
4583
4584
|
null,
|
|
4584
4585
|
_(() => ({ offsetName: Et(/* @__PURE__ */ new Date(), null, "hu") }))
|
|
4585
4586
|
);
|
|
4586
4587
|
return (o, i) => (d(), h(O, null, [
|
|
4587
|
-
c("h2", lc,
|
|
4588
|
-
|
|
4588
|
+
c("h2", lc, u(n(a)("teams.games")), 1),
|
|
4589
|
+
w(Za, {
|
|
4589
4590
|
rows: e.data,
|
|
4590
4591
|
columns: n(r),
|
|
4591
4592
|
"game-resolver": e.gameResolver,
|
|
@@ -4608,24 +4609,24 @@ const nc = {
|
|
|
4608
4609
|
setup(e) {
|
|
4609
4610
|
const t = e, a = K(null), { t: r } = Q(), { columns: o } = ee(Zs), i = _(() => me((l) => ({ ...l, teamKeyIntl: r(`teams.info.${l.teamKey}`) }))(t.data));
|
|
4610
4611
|
return (l, s) => (d(), h("div", null, [
|
|
4611
|
-
c("h2", cc,
|
|
4612
|
-
|
|
4613
|
-
default:
|
|
4614
|
-
|
|
4612
|
+
c("h2", cc, u(n(r)("teams.teamInfo")), 1),
|
|
4613
|
+
w(n(ie), null, {
|
|
4614
|
+
default: x(() => [
|
|
4615
|
+
w(n(ce), {
|
|
4615
4616
|
columns: n(o),
|
|
4616
4617
|
rows: i.value,
|
|
4617
4618
|
"append-to": a.value
|
|
4618
4619
|
}, {
|
|
4619
|
-
"cell-teamValue":
|
|
4620
|
-
|
|
4620
|
+
"cell-teamValue": x(({ row: g }) => [
|
|
4621
|
+
g.teamKey === "organizationEmail" ? (d(), h("a", {
|
|
4621
4622
|
key: 0,
|
|
4622
|
-
href: `mailto:${
|
|
4623
|
-
},
|
|
4624
|
-
|
|
4623
|
+
href: `mailto:${g.teamValue}`
|
|
4624
|
+
}, u(g.teamValue), 9, dc)) : I("", !0),
|
|
4625
|
+
g.teamKey === "organizationWebpage" ? (d(), h("a", {
|
|
4625
4626
|
key: 1,
|
|
4626
|
-
href: `https://${
|
|
4627
|
+
href: `https://${g.teamValue}`,
|
|
4627
4628
|
target: "_blank"
|
|
4628
|
-
},
|
|
4629
|
+
}, u(g.teamValue), 9, pc)) : I("", !0)
|
|
4629
4630
|
]),
|
|
4630
4631
|
_: 1
|
|
4631
4632
|
}, 8, ["columns", "rows", "append-to"])
|
|
@@ -4662,8 +4663,8 @@ const nc = {
|
|
|
4662
4663
|
const t = K(null), { t: a } = Q(), { columns: r } = ee(we(["teamName"], Qa));
|
|
4663
4664
|
return (o, i) => (d(), h(O, null, [
|
|
4664
4665
|
(d(!0), h(O, null, U(e.data, (l, s) => (d(), h(O, { key: s }, [
|
|
4665
|
-
c("h2", uc,
|
|
4666
|
-
|
|
4666
|
+
c("h2", uc, u(n(a)(`teams.${s}`)), 1),
|
|
4667
|
+
w(ar, {
|
|
4667
4668
|
rows: l,
|
|
4668
4669
|
columns: n(r),
|
|
4669
4670
|
"championship-id": e.championshipId,
|
|
@@ -4723,29 +4724,29 @@ const nc = {
|
|
|
4723
4724
|
],
|
|
4724
4725
|
Ne
|
|
4725
4726
|
), r = K(null), { t: o } = Q(), { columns: i } = ee(t), { columns: l } = ee(a);
|
|
4726
|
-
return (s,
|
|
4727
|
-
c("h2", mc,
|
|
4728
|
-
|
|
4729
|
-
default:
|
|
4730
|
-
|
|
4727
|
+
return (s, g) => (d(), h("div", null, [
|
|
4728
|
+
c("h2", mc, u(n(o)("teams.fieldPlayers")), 1),
|
|
4729
|
+
w(n(ie), null, {
|
|
4730
|
+
default: x(() => [
|
|
4731
|
+
w(n(ce), {
|
|
4731
4732
|
columns: n(i),
|
|
4732
4733
|
rows: e.fieldPlayers,
|
|
4733
4734
|
"is-loading": e.isLoading,
|
|
4734
4735
|
"append-to": r.value
|
|
4735
4736
|
}, {
|
|
4736
|
-
"cell-playerPortrait":
|
|
4737
|
+
"cell-playerPortrait": x(({ row: b }) => [
|
|
4737
4738
|
c("div", vc, [
|
|
4738
4739
|
(d(), $(n(V), {
|
|
4739
|
-
key:
|
|
4740
|
-
src:
|
|
4740
|
+
key: b.player.playerId,
|
|
4741
|
+
src: b.player.picture,
|
|
4741
4742
|
"default-src": n(Zt)
|
|
4742
4743
|
}, null, 8, ["src", "default-src"]))
|
|
4743
4744
|
])
|
|
4744
4745
|
]),
|
|
4745
|
-
"cell-name":
|
|
4746
|
+
"cell-name": x(({ row: b }) => [
|
|
4746
4747
|
c("a", {
|
|
4747
|
-
href: e.externalPlayerResolver({ ...
|
|
4748
|
-
textContent: b
|
|
4748
|
+
href: e.externalPlayerResolver({ ...b, championshipId: e.championshipId }),
|
|
4749
|
+
textContent: u(b.name)
|
|
4749
4750
|
}, null, 8, hc)
|
|
4750
4751
|
]),
|
|
4751
4752
|
_: 1
|
|
@@ -4753,28 +4754,28 @@ const nc = {
|
|
|
4753
4754
|
]),
|
|
4754
4755
|
_: 1
|
|
4755
4756
|
}),
|
|
4756
|
-
c("h2", fc,
|
|
4757
|
-
|
|
4758
|
-
default:
|
|
4759
|
-
|
|
4757
|
+
c("h2", fc, u(n(o)("teams.goalies")), 1),
|
|
4758
|
+
w(n(ie), null, {
|
|
4759
|
+
default: x(() => [
|
|
4760
|
+
w(n(ce), {
|
|
4760
4761
|
columns: n(l),
|
|
4761
4762
|
rows: e.goalies,
|
|
4762
4763
|
"is-loading": e.isLoading,
|
|
4763
4764
|
"append-to": r.value
|
|
4764
4765
|
}, {
|
|
4765
|
-
"cell-playerPortrait":
|
|
4766
|
+
"cell-playerPortrait": x(({ row: b }) => [
|
|
4766
4767
|
c("div", yc, [
|
|
4767
4768
|
(d(), $(n(V), {
|
|
4768
|
-
key:
|
|
4769
|
-
src:
|
|
4769
|
+
key: b.player.playerId,
|
|
4770
|
+
src: b.player.picture,
|
|
4770
4771
|
"default-src": n(Zt)
|
|
4771
4772
|
}, null, 8, ["src", "default-src"]))
|
|
4772
4773
|
])
|
|
4773
4774
|
]),
|
|
4774
|
-
"cell-name":
|
|
4775
|
+
"cell-name": x(({ row: b }) => [
|
|
4775
4776
|
c("a", {
|
|
4776
|
-
href: e.externalPlayerResolver({ ...
|
|
4777
|
-
textContent: b
|
|
4777
|
+
href: e.externalPlayerResolver({ ...b, championshipId: e.championshipId }),
|
|
4778
|
+
textContent: u(b.name)
|
|
4778
4779
|
}, null, 8, wc)
|
|
4779
4780
|
]),
|
|
4780
4781
|
_: 1
|
|
@@ -4820,41 +4821,41 @@ const nc = {
|
|
|
4820
4821
|
}
|
|
4821
4822
|
},
|
|
4822
4823
|
setup(e) {
|
|
4823
|
-
const t = e, a = { en: ue, hu: be }, r = (i) => Ot(t.externalPlayerResolver, i), o = (i) =>
|
|
4824
|
+
const t = e, a = { en: ue, hu: be }, r = (i) => Ot(t.externalPlayerResolver, i), o = (i) => nt(t.externalGameResolver, i);
|
|
4824
4825
|
return (i, l) => (d(), h("div", zc, [
|
|
4825
|
-
|
|
4826
|
+
w(n(pe), {
|
|
4826
4827
|
locale: t.locale,
|
|
4827
4828
|
messages: a
|
|
4828
4829
|
}, {
|
|
4829
|
-
default:
|
|
4830
|
-
|
|
4831
|
-
default:
|
|
4832
|
-
|
|
4830
|
+
default: x(({ t: s }) => [
|
|
4831
|
+
w(n(ze), null, {
|
|
4832
|
+
default: x(({ hasError: g, error: b }) => [
|
|
4833
|
+
g ? (d(), $(n(Se), {
|
|
4833
4834
|
key: 0,
|
|
4834
|
-
error:
|
|
4835
|
+
error: b
|
|
4835
4836
|
}, null, 8, ["error"])) : I("", !0),
|
|
4836
|
-
|
|
4837
|
+
w(nc, {
|
|
4837
4838
|
"api-key": t.apiKey,
|
|
4838
4839
|
"championship-id": e.championshipId,
|
|
4839
4840
|
"team-id": e.teamId
|
|
4840
4841
|
}, {
|
|
4841
|
-
default:
|
|
4842
|
+
default: x(({
|
|
4842
4843
|
teamInfo: v,
|
|
4843
|
-
page:
|
|
4844
|
+
page: y,
|
|
4844
4845
|
roster: m,
|
|
4845
|
-
games:
|
|
4846
|
+
games: p,
|
|
4846
4847
|
statistics: z,
|
|
4847
|
-
isStatsLoading:
|
|
4848
|
-
onChangePage:
|
|
4848
|
+
isStatsLoading: P,
|
|
4849
|
+
onChangePage: k
|
|
4849
4850
|
}) => {
|
|
4850
|
-
var A, L,
|
|
4851
|
+
var A, L, f, S, T;
|
|
4851
4852
|
return [
|
|
4852
|
-
c("h1", Sc,
|
|
4853
|
+
c("h1", Sc, u((A = v == null ? void 0 : v.team) == null ? void 0 : A.longName), 1),
|
|
4853
4854
|
c("div", Tc, [
|
|
4854
4855
|
c("div", Ic, [
|
|
4855
4856
|
(d(), $(n(V), {
|
|
4856
4857
|
key: (L = v == null ? void 0 : v.team) == null ? void 0 : L.id,
|
|
4857
|
-
src: (
|
|
4858
|
+
src: (f = v == null ? void 0 : v.team) == null ? void 0 : f.teamPhoto,
|
|
4858
4859
|
"default-src": "https://www.ersteliga.hu/assets/images/logo_liga@2x.png"
|
|
4859
4860
|
}, null, 8, ["src"]))
|
|
4860
4861
|
]),
|
|
@@ -4867,40 +4868,40 @@ const nc = {
|
|
|
4867
4868
|
]),
|
|
4868
4869
|
c("div", Nc, [
|
|
4869
4870
|
c("button", {
|
|
4870
|
-
class: G(["tab-button", { "is-active":
|
|
4871
|
-
onClick: (C) =>
|
|
4872
|
-
},
|
|
4871
|
+
class: G(["tab-button", { "is-active": y === n(He) }]),
|
|
4872
|
+
onClick: (C) => k(n(He))
|
|
4873
|
+
}, u(s("teams.tabs.teamInfo")), 11, $c),
|
|
4873
4874
|
c("button", {
|
|
4874
|
-
class: G(["tab-button", { "is-active":
|
|
4875
|
-
onClick: (C) =>
|
|
4876
|
-
},
|
|
4875
|
+
class: G(["tab-button", { "is-active": y === n(Je) }]),
|
|
4876
|
+
onClick: (C) => k(n(Je))
|
|
4877
|
+
}, u(s("teams.tabs.games")), 11, Ac),
|
|
4877
4878
|
c("button", {
|
|
4878
|
-
class: G(["tab-button", { "is-active":
|
|
4879
|
-
onClick: (C) =>
|
|
4880
|
-
},
|
|
4879
|
+
class: G(["tab-button", { "is-active": y === n(Xe) }]),
|
|
4880
|
+
onClick: (C) => k(n(Xe))
|
|
4881
|
+
}, u(s("teams.playerStats")), 11, Lc),
|
|
4881
4882
|
c("button", {
|
|
4882
|
-
class: G(["tab-button", { "is-active":
|
|
4883
|
-
onClick: (C) =>
|
|
4884
|
-
},
|
|
4883
|
+
class: G(["tab-button", { "is-active": y === n(Qe) }]),
|
|
4884
|
+
onClick: (C) => k(n(Qe))
|
|
4885
|
+
}, u(s("teams.roster")), 11, Cc)
|
|
4885
4886
|
]),
|
|
4886
|
-
|
|
4887
|
+
y === n(He) ? (d(), $(gc, {
|
|
4887
4888
|
key: 0,
|
|
4888
4889
|
data: v.organizationInfo
|
|
4889
4890
|
}, null, 8, ["data"])) : I("", !0),
|
|
4890
|
-
|
|
4891
|
+
y === n(Je) ? (d(), $(sc, {
|
|
4891
4892
|
key: 1,
|
|
4892
|
-
data:
|
|
4893
|
+
data: p,
|
|
4893
4894
|
"game-resolver": o
|
|
4894
4895
|
}, null, 8, ["data"])) : I("", !0),
|
|
4895
|
-
|
|
4896
|
+
y === n(Xe) ? (d(), $(xc, {
|
|
4896
4897
|
key: 2,
|
|
4897
4898
|
"field-players": z.fieldPlayers,
|
|
4898
4899
|
goalies: z.goalies,
|
|
4899
4900
|
"championship-id": e.championshipId,
|
|
4900
|
-
"is-loading":
|
|
4901
|
+
"is-loading": P,
|
|
4901
4902
|
"external-player-resolver": r
|
|
4902
4903
|
}, null, 8, ["field-players", "goalies", "championship-id", "is-loading"])) : I("", !0),
|
|
4903
|
-
|
|
4904
|
+
y === n(Qe) ? (d(), $(bc, {
|
|
4904
4905
|
key: 3,
|
|
4905
4906
|
data: m,
|
|
4906
4907
|
"championship-id": e.championshipId,
|
|
@@ -4945,12 +4946,12 @@ const nc = {
|
|
|
4945
4946
|
apiKey: t.apiKey,
|
|
4946
4947
|
params: { championshipName: r.championshipName }
|
|
4947
4948
|
},
|
|
4948
|
-
transform: (m) =>
|
|
4949
|
+
transform: (m) => ht(m, r),
|
|
4949
4950
|
onError: o
|
|
4950
4951
|
}), {
|
|
4951
4952
|
isLoading: s,
|
|
4952
|
-
state:
|
|
4953
|
-
execute:
|
|
4953
|
+
state: g,
|
|
4954
|
+
execute: b
|
|
4954
4955
|
} = D({
|
|
4955
4956
|
options: {
|
|
4956
4957
|
path: "/v2/championship-teams",
|
|
@@ -4960,15 +4961,15 @@ const nc = {
|
|
|
4960
4961
|
transform: Xa,
|
|
4961
4962
|
onError: o
|
|
4962
4963
|
}), v = Lt([i, s], { delay: 1e3 });
|
|
4963
|
-
te([l,
|
|
4964
|
-
function
|
|
4965
|
-
r.championshipId = m, a.championshipId = m, te([
|
|
4964
|
+
te([l, b]);
|
|
4965
|
+
function y(m) {
|
|
4966
|
+
r.championshipId = m, a.championshipId = m, te([b]);
|
|
4966
4967
|
}
|
|
4967
|
-
return (m,
|
|
4968
|
+
return (m, p) => xe(m.$slots, "default", ke(_e({
|
|
4968
4969
|
...r,
|
|
4969
|
-
teams: n(
|
|
4970
|
+
teams: n(g),
|
|
4970
4971
|
isLoading: n(v),
|
|
4971
|
-
changeSeason:
|
|
4972
|
+
changeSeason: y
|
|
4972
4973
|
})));
|
|
4973
4974
|
}
|
|
4974
4975
|
}, Rc = ".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}", Fc = {
|
|
@@ -4998,46 +4999,46 @@ const nc = {
|
|
|
4998
4999
|
setup(e) {
|
|
4999
5000
|
const t = e, a = { en: ue, hu: be };
|
|
5000
5001
|
function r(o, i) {
|
|
5001
|
-
return
|
|
5002
|
+
return st(t.externalTeamResolver, { team: { id: o }, championshipId: i });
|
|
5002
5003
|
}
|
|
5003
5004
|
return (o, i) => (d(), h("div", null, [
|
|
5004
|
-
|
|
5005
|
+
w(n(pe), {
|
|
5005
5006
|
locale: t.locale,
|
|
5006
5007
|
messages: a
|
|
5007
5008
|
}, {
|
|
5008
|
-
default:
|
|
5009
|
-
|
|
5010
|
-
default:
|
|
5009
|
+
default: x(() => [
|
|
5010
|
+
w(n(ze), null, {
|
|
5011
|
+
default: x(({ error: l, hasError: s }) => [
|
|
5011
5012
|
s ? (d(), $(n(Se), {
|
|
5012
5013
|
key: 0,
|
|
5013
5014
|
error: l
|
|
5014
5015
|
}, null, 8, ["error"])) : I("", !0),
|
|
5015
|
-
|
|
5016
|
+
w(jc, {
|
|
5016
5017
|
"api-key": t.apiKey,
|
|
5017
5018
|
locale: e.locale,
|
|
5018
5019
|
"championship-name": e.championshipName
|
|
5019
5020
|
}, {
|
|
5020
|
-
default:
|
|
5021
|
-
|
|
5022
|
-
seasons:
|
|
5023
|
-
"championship-id":
|
|
5021
|
+
default: x(({ teams: g, seasons: b, isLoading: v, championshipId: y, changeSeason: m }) => [
|
|
5022
|
+
w(n(fa), {
|
|
5023
|
+
seasons: b,
|
|
5024
|
+
"championship-id": y,
|
|
5024
5025
|
"is-section-selection-disabled": "",
|
|
5025
5026
|
onOnChangeSeason: m
|
|
5026
5027
|
}, null, 8, ["seasons", "championship-id", "onOnChangeSeason"]),
|
|
5027
|
-
v ? (d(), $(n(
|
|
5028
|
-
(d(!0), h(O, null, U(
|
|
5029
|
-
key:
|
|
5028
|
+
v ? (d(), $(n(at), { key: 0 })) : (d(), h("ul", Fc, [
|
|
5029
|
+
(d(!0), h(O, null, U(g, (p) => (d(), h("li", {
|
|
5030
|
+
key: p.teamId
|
|
5030
5031
|
}, [
|
|
5031
5032
|
c("a", {
|
|
5032
|
-
href: r(
|
|
5033
|
+
href: r(p.teamId, y),
|
|
5033
5034
|
class: "is-text-lg is-text-bold"
|
|
5034
5035
|
}, [
|
|
5035
5036
|
(d(), $(n(V), {
|
|
5036
|
-
key:
|
|
5037
|
+
key: p.teamId,
|
|
5037
5038
|
class: "is-team-logo",
|
|
5038
|
-
src:
|
|
5039
|
+
src: p.teamLogo
|
|
5039
5040
|
}, null, 8, ["src"])),
|
|
5040
|
-
W(" " +
|
|
5041
|
+
W(" " + u(p.teamName), 1)
|
|
5041
5042
|
], 8, Gc)
|
|
5042
5043
|
]))), 128))
|
|
5043
5044
|
]))
|