@mjsz-vbr-elements/liga 2.38.1 → 2.38.3
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 +198 -198
- 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.38.
|
|
3
|
+
* version: v2.38.3 - 20/12/2025, 13:54:16
|
|
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 { computed as x, toValue as he, shallowRef as Qe, isRef as Ce, watch as ue, shallowReadonly as Ot, getCurrentScope as
|
|
8
|
+
import { computed as x, toValue as he, shallowRef as Qe, isRef as Ce, watch as ue, shallowReadonly as Ot, getCurrentScope as wa, onScopeDispose as fa, readonly as Gt, toRef as Dt, ref as j, customRef as ya, reactive as Z, getCurrentInstance as xa, nextTick as ka, unref as a, renderSlot as fe, normalizeProps as ye, guardReactiveProps as xe, createBlock as N, openBlock as n, withCtx as y, createVNode as f, createTextVNode as V, toDisplayString as v, createElementBlock as g, createCommentVNode as _, normalizeClass as H, createElementVNode as s, setBlockTracking as St, Fragment as A, renderList as F, mergeProps as vt, toRefs as Mt, withDirectives as _a, vModelText as za, toHandlers as Sa, defineCustomElement as re } from "vue";
|
|
9
9
|
import { ResponsiveTable as oe, DataTable as ge, FloatingPanel as Ft, Image as B, I18NProvider as le, ErrorProvider as ke, ErrorNotice as ie, SeasonSelector as ht, FormField as X, Paginator as Kt, LoadingIndicator as Oe, BaseSelect as pe, TimezoneSelector as Ta, AdditionalStandingsText as Tt, StatisticsTable as Ia } from "@mjsz-vbr-elements/core/components";
|
|
10
10
|
import { useError as be, useServices as O, useI18n as q, useColumns as ee, usePage as jt, useSort as ut, useLazyLoadingState as gt, useErrorProvider as Bt, useScrollToGameDate as Pa, useVisibilityChange as $a, fetchVBRData as Fe } from "@mjsz-vbr-elements/core/composables";
|
|
11
11
|
import * as nt from "@mjsz-vbr-elements/core/utils";
|
|
12
|
-
import { WidgetError as Vt, InvalidSeasonName as He, convertSeasons as Ut, head as Pe, selectLastSections as Na, convertTeams as bt, removeUnneededPhases as La, selectFirstPhaseName as Ca, rawConvert as Xe, yearToNow as Ea, reverse as Ra, teamName as Yt, convertTimesMinToMinSec as Wt, sortGames as
|
|
12
|
+
import { WidgetError as Vt, InvalidSeasonName as He, convertSeasons as Ut, head as Pe, selectLastSections as Na, convertTeams as bt, removeUnneededPhases as La, selectFirstPhaseName as Ca, rawConvert as Xe, yearToNow as Ea, reverse as Ra, teamName as Yt, convertTimesMinToMinSec as Wt, sortGames as wt, gameDateTime as Ht, teamResultType as qt, gameResult as Jt, teamOpponent as Qt, getLocalTimezone as Ze, removeCurrentFromSeasonStats as Aa, transformCurrentSeasonStats as Oa, pick as ve, omit as $e, offsetName as ft, externalGameLinkResolver as et, isEmpty as Xt, flagResolver as Zt, transformPlayers as Ga, convert as W, externalTeamLinkResolver as Ge, externalPlayerLinkResolver as tt, format as qe, sortBy as ea, isBetween as Da, last as ta, scrollToTop as It, clone as Ma, standingTableSort as Fa, prop as Ka, convertPhaseName as ja, path as Ba, playerName as Va, convertTimesSecToMin as Ua, convertAddress as Ya, map as Wa, transformRosters as Ha, transformFieledPlayersStats as st, mergePlayerStats as qa, externalStatisticLinkResolver as Ja } from "@mjsz-vbr-elements/core/utils";
|
|
13
13
|
import { SORT_STATE_ASCEND as Le, DEFAULT_PORTRAIT_IMAGE_URL as Je, REFRESH_DELAY as Pt } from "@mjsz-vbr-elements/core/constants";
|
|
14
14
|
import { COLUMNS_STANDINGS_P_3 as Qa, COLUMNS_FIELD_PLAYERS as Ke, COLUMNS_FIELD_PLAYERS_PENALTY as Xa, COLUMNS_FIELD_PLAYERS_TOI as Za, COLUMNS_GOALIES as $t, COLUMNS_TEAM_ATTENDANCE as eo, COLUMNS_TEAMS_FAIRPLAY as to, COLUMNS_TEAMS_PENALTY_KILLING as ao, COLUMNS_TEAMS_POWERPLAY as oo, COLUMNS_SCORING_EFFICIENCY as ro } from "@mjsz-vbr-elements/core/columns";
|
|
15
15
|
import { SORT_STATE_DESCEND as G } from "@mjsz-vbr-elements/core";
|
|
@@ -22,18 +22,18 @@ const lo = { report: "Report", video: "Video", season: "Season", section: "Secti
|
|
|
22
22
|
players: mo,
|
|
23
23
|
standings: po,
|
|
24
24
|
nationality: vo
|
|
25
|
-
}, ho = { report: "Riport", video: "Videó", season: "Szezon", section: "Szakasz", phases: "Szakaszok", noPhases: "Nincsenek szakaszok", teams: "Csapatok", filterName: "Szűrés névre", players: "Játékosok", month: "Hónap", homeOrAway: "Hazai vagy Vendég", home: "Hazai", away: "Vendég" }, uo = { nationality: { short: "Nemzetiség", tooltip: "Nemzetiség" }, birthDate: { short: "Szülétési idő", tooltip: "Szülétési idő" }, birthPlace: { short: "Születési hely", tooltip: "Születési hely" }, season: { short: "Szezon", tooltip: "Szezon" }, pp: { short: "PP", tooltip: "Emberelőnyök" }, pk: { short: "PK", tooltip: "Emberhátrányos Védekezés" } }, go = { toi: "Jégen töltött idő", points: "Pontok", goals: "Gólok", assists: "Gólpasszok", penalties: "Büntetések", goalies: "Kapusok", goaliesLimit: "Kapusok 40% jégidő alatt", teamAttendance: "Nézőszám", teamFairplay: "Büntetések", teamPenaltyKilling: "Emberhátrányok", teamPowerplay: "Emberelőnyök", teamScoringEfficiency: "Hatékonyság" }, bo = { Negyeddöntő: "Negyeddöntő", Elődöntő: "Elődöntő", Döntő: "Döntő" },
|
|
25
|
+
}, ho = { report: "Riport", video: "Videó", season: "Szezon", section: "Szakasz", phases: "Szakaszok", noPhases: "Nincsenek szakaszok", teams: "Csapatok", filterName: "Szűrés névre", players: "Játékosok", month: "Hónap", homeOrAway: "Hazai vagy Vendég", home: "Hazai", away: "Vendég" }, uo = { nationality: { short: "Nemzetiség", tooltip: "Nemzetiség" }, birthDate: { short: "Szülétési idő", tooltip: "Szülétési idő" }, birthPlace: { short: "Születési hely", tooltip: "Születési hely" }, season: { short: "Szezon", tooltip: "Szezon" }, pp: { short: "PP", tooltip: "Emberelőnyök" }, pk: { short: "PK", tooltip: "Emberhátrányos Védekezés" } }, go = { toi: "Jégen töltött idő", points: "Pontok", goals: "Gólok", assists: "Gólpasszok", penalties: "Büntetések", goalies: "Kapusok", goaliesLimit: "Kapusok 40% jégidő alatt", teamAttendance: "Nézőszám", teamFairplay: "Büntetések", teamPenaltyKilling: "Emberhátrányok", teamPowerplay: "Emberelőnyök", teamScoringEfficiency: "Hatékonyság" }, bo = { Negyeddöntő: "Negyeddöntő", Elődöntő: "Elődöntő", Döntő: "Döntő" }, wo = { tabs: { teamInfo: "Információk", games: "Mérkőzések" }, goalies: "Kapusok", defenders: "Védők", forwards: "Támadók", fieldPlayers: "Mezőnyjátékosok", games: "Lejátszott mérkőzések", teamInfo: "Szervezeti Információk", roster: "Játékoskeret", playerStats: "Játékos statisztikák", info: { organizationName: "Szervezet neve:", organizationCountry: "Szervezet országa:", organizationEmail: "Szervezet e-mail címe:", organizationWebpage: "Szervezet honlapja:", organizationPhoneNumber: "Szervezet telefonszáma:", organizationAddresses: "Szervezet címe:", organizationFoundingDate: "Szervezet alapítási éve:" } }, fo = { age: "{years}es", games: "Mérkőzések", seasons: "Szezonok" }, yo = { live: "Élő", default: "Összesített" }, xo = { hu: "Magyar", ro: "Román", us: "Amerikai", il: "Izraeli", ca: "Kanadai", lv: "Lett", ee: "Észt", ru: "Orosz", fi: "Finn", si: "Szlovén", sk: "Szlovák", nl: "Holland", by: "Fehérorosz", cz: "Cseh", ua: "Ukrán", lt: "Litván", it: "Olasz", "gb-eng": "Angol", rs: "Szerb", se: "Svéd", de: "Német", gb: "Brit", kz: "Kazah", dk: "Dán", pl: "Lengyel", at: "Osztrák", ch: "Svájci", fr: "Francia", es: "Spanyol", hr: "Horvát", no: "Norvég" }, se = {
|
|
26
26
|
selection: ho,
|
|
27
27
|
table: uo,
|
|
28
28
|
report: go,
|
|
29
29
|
playoffs: bo,
|
|
30
|
-
teams:
|
|
31
|
-
players:
|
|
30
|
+
teams: wo,
|
|
31
|
+
players: fo,
|
|
32
32
|
standings: yo,
|
|
33
33
|
nationality: xo
|
|
34
34
|
};
|
|
35
35
|
function Ee(e) {
|
|
36
|
-
return
|
|
36
|
+
return wa() ? (fa(e), !0) : !1;
|
|
37
37
|
}
|
|
38
38
|
const Re = typeof window < "u" && typeof document < "u";
|
|
39
39
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -118,14 +118,14 @@ function Lo(e, t = 1e3, i = {}) {
|
|
|
118
118
|
d.value = !1, p();
|
|
119
119
|
}
|
|
120
120
|
function m() {
|
|
121
|
-
const
|
|
122
|
-
|
|
121
|
+
const w = he(t);
|
|
122
|
+
w <= 0 || (d.value = !0, r && e(), p(), d.value && (l = setInterval(e, w)));
|
|
123
123
|
}
|
|
124
124
|
if (o && Re && m(), Ce(t) || typeof t == "function") {
|
|
125
|
-
const
|
|
125
|
+
const w = ue(t, () => {
|
|
126
126
|
d.value && Re && m();
|
|
127
127
|
});
|
|
128
|
-
Ee(
|
|
128
|
+
Ee(w);
|
|
129
129
|
}
|
|
130
130
|
return Ee(u), {
|
|
131
131
|
isActive: Ot(d),
|
|
@@ -145,9 +145,9 @@ function oa(e, t, i = {}) {
|
|
|
145
145
|
function u() {
|
|
146
146
|
l.value = !1, p();
|
|
147
147
|
}
|
|
148
|
-
function m(...
|
|
148
|
+
function m(...w) {
|
|
149
149
|
r && e(), p(), l.value = !0, d = setTimeout(() => {
|
|
150
|
-
l.value = !1, d = void 0, e(...
|
|
150
|
+
l.value = !1, d = void 0, e(...w);
|
|
151
151
|
}, he(t));
|
|
152
152
|
}
|
|
153
153
|
return o && (l.value = !0, Re && m()), Ee(u), {
|
|
@@ -185,7 +185,7 @@ function la(e) {
|
|
|
185
185
|
function Nt(...e) {
|
|
186
186
|
const t = [], i = () => {
|
|
187
187
|
t.forEach((p) => p()), t.length = 0;
|
|
188
|
-
}, o = (p, u, m,
|
|
188
|
+
}, o = (p, u, m, w) => (p.addEventListener(u, m, w), () => p.removeEventListener(u, m, w)), r = x(() => {
|
|
189
189
|
const p = ct(he(e[0])).filter((u) => u != null);
|
|
190
190
|
return p.every((u) => typeof u != "string") ? p : void 0;
|
|
191
191
|
}), l = Co(
|
|
@@ -199,10 +199,10 @@ function Nt(...e) {
|
|
|
199
199
|
he(r.value ? e[3] : e[2])
|
|
200
200
|
];
|
|
201
201
|
},
|
|
202
|
-
([p, u, m,
|
|
202
|
+
([p, u, m, w]) => {
|
|
203
203
|
if (i(), !p?.length || !u?.length || !m?.length)
|
|
204
204
|
return;
|
|
205
|
-
const b = zo(
|
|
205
|
+
const b = zo(w) ? { ...w } : w;
|
|
206
206
|
t.push(
|
|
207
207
|
...p.flatMap(
|
|
208
208
|
(h) => u.flatMap(
|
|
@@ -234,22 +234,22 @@ function te(e, t) {
|
|
|
234
234
|
activeIndex: m,
|
|
235
235
|
result: u
|
|
236
236
|
};
|
|
237
|
-
function
|
|
237
|
+
function w(b, h) {
|
|
238
238
|
m.value++, u[m.value].data = h, u[m.value].state = b;
|
|
239
239
|
}
|
|
240
240
|
return e.reduce((b, h) => b.then((c) => {
|
|
241
241
|
var T;
|
|
242
242
|
if (l?.aborted) {
|
|
243
|
-
|
|
243
|
+
w(d.aborted, new Error("aborted"));
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
246
|
if (((T = u[m.value]) == null ? void 0 : T.state) === d.rejected && i) {
|
|
247
247
|
r();
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
const L = h(c).then((C) => (
|
|
250
|
+
const L = h(c).then((C) => (w(d.fulfilled, C), m.value === e.length - 1 && r(), C));
|
|
251
251
|
return l ? Promise.race([L, Ro(l)]) : L;
|
|
252
|
-
}).catch((c) => l?.aborted ? (
|
|
252
|
+
}).catch((c) => l?.aborted ? (w(d.aborted, c), c) : (w(d.rejected, c), o(), c)), Promise.resolve()), {
|
|
253
253
|
activeIndex: m,
|
|
254
254
|
result: u
|
|
255
255
|
};
|
|
@@ -296,7 +296,7 @@ function _e(e = "history", t = {}) {
|
|
|
296
296
|
if (!p)
|
|
297
297
|
return Z(i);
|
|
298
298
|
const m = Z({});
|
|
299
|
-
function
|
|
299
|
+
function w() {
|
|
300
300
|
if (e === "history")
|
|
301
301
|
return p.location.search || "";
|
|
302
302
|
if (e === "hash") {
|
|
@@ -315,7 +315,7 @@ function _e(e = "history", t = {}) {
|
|
|
315
315
|
return M > 0 ? `${p.location.search || ""}${E.slice(0, M)}${S ? `?${S}` : ""}` : `${p.location.search || ""}${E}${S ? `?${S}` : ""}`;
|
|
316
316
|
}
|
|
317
317
|
function h() {
|
|
318
|
-
return new URLSearchParams(
|
|
318
|
+
return new URLSearchParams(w());
|
|
319
319
|
}
|
|
320
320
|
function c($) {
|
|
321
321
|
const S = new Set(Object.keys(m));
|
|
@@ -361,7 +361,7 @@ function Go(e, t, i, o = {}) {
|
|
|
361
361
|
clone: p = !1,
|
|
362
362
|
passive: u = !1,
|
|
363
363
|
eventName: m,
|
|
364
|
-
deep:
|
|
364
|
+
deep: w = !1,
|
|
365
365
|
defaultValue: b,
|
|
366
366
|
shouldEmit: h
|
|
367
367
|
} = o, c = xa(), T = i || c?.emit || ((r = c?.$emit) == null ? void 0 : r.bind(c)) || ((d = (l = c?.proxy) == null ? void 0 : l.$emit) == null ? void 0 : d.bind(c?.proxy));
|
|
@@ -381,9 +381,9 @@ function Go(e, t, i, o = {}) {
|
|
|
381
381
|
), ue(
|
|
382
382
|
$,
|
|
383
383
|
(E) => {
|
|
384
|
-
!S && (E !== e[t] ||
|
|
384
|
+
!S && (E !== e[t] || w) && z(E);
|
|
385
385
|
},
|
|
386
|
-
{ deep:
|
|
386
|
+
{ deep: w }
|
|
387
387
|
), $;
|
|
388
388
|
} else
|
|
389
389
|
return x({
|
|
@@ -706,7 +706,7 @@ function jo(e, t) {
|
|
|
706
706
|
}
|
|
707
707
|
const Bo = (e) => Xe(Ra(e), Yt, Wt(["mip"]));
|
|
708
708
|
function Vo(e, t, i, o) {
|
|
709
|
-
return Xe(
|
|
709
|
+
return Xe(wt(e), Ht(o, i), qt, Jt(t.teamId), Qt);
|
|
710
710
|
}
|
|
711
711
|
const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/player-games", Ho = "/v2/goalie-games", qo = {
|
|
712
712
|
__name: "DataProvider",
|
|
@@ -752,7 +752,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
752
752
|
}), {
|
|
753
753
|
state: u,
|
|
754
754
|
isLoading: m,
|
|
755
|
-
execute:
|
|
755
|
+
execute: w
|
|
756
756
|
} = O({
|
|
757
757
|
options: {
|
|
758
758
|
path: x(() => r.seasonApi),
|
|
@@ -864,12 +864,12 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
864
864
|
)
|
|
865
865
|
);
|
|
866
866
|
function k() {
|
|
867
|
-
te([
|
|
867
|
+
te([w, c]);
|
|
868
868
|
}
|
|
869
869
|
function $(S) {
|
|
870
870
|
r.pane = S;
|
|
871
871
|
}
|
|
872
|
-
return (S, E) =>
|
|
872
|
+
return (S, E) => fe(S.$slots, "default", ye(xe({
|
|
873
873
|
pane: r.pane,
|
|
874
874
|
isLoadingPlayerData: a(p),
|
|
875
875
|
isPlayerSeasonsLoading: a(m),
|
|
@@ -926,7 +926,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
926
926
|
const { t } = q();
|
|
927
927
|
return (i, o) => (n(), N(a(oe), null, {
|
|
928
928
|
default: y(() => [
|
|
929
|
-
|
|
929
|
+
f(a(ge), {
|
|
930
930
|
rows: e.rows,
|
|
931
931
|
columns: e.columns,
|
|
932
932
|
"is-loading": e.isLoading,
|
|
@@ -1002,7 +1002,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1002
1002
|
const t = e, { columns: i } = ee(
|
|
1003
1003
|
x(() => t.columns),
|
|
1004
1004
|
null,
|
|
1005
|
-
x(() => ({ offsetName:
|
|
1005
|
+
x(() => ({ offsetName: ft(/* @__PURE__ */ new Date(), null, "hu") }))
|
|
1006
1006
|
), o = (r) => et(t.gameResolver, r);
|
|
1007
1007
|
return (r, l) => (n(), N(na, {
|
|
1008
1008
|
rows: e.rows,
|
|
@@ -1051,7 +1051,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1051
1051
|
ref: l,
|
|
1052
1052
|
class: "avatar"
|
|
1053
1053
|
}, { ref_for: !0 }, d), [
|
|
1054
|
-
|
|
1054
|
+
f(a(B), {
|
|
1055
1055
|
src: a(Zt)(r)
|
|
1056
1056
|
}, null, 8, ["src"])
|
|
1057
1057
|
], 16)
|
|
@@ -1093,7 +1093,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1093
1093
|
const t = e, { columns: i } = ee(x(() => t.columns));
|
|
1094
1094
|
return (o, r) => (n(), N(a(oe), null, {
|
|
1095
1095
|
default: y(() => [
|
|
1096
|
-
|
|
1096
|
+
f(a(ge), {
|
|
1097
1097
|
rows: e.rows,
|
|
1098
1098
|
columns: a(i),
|
|
1099
1099
|
"append-to": e.appendTo
|
|
@@ -1126,9 +1126,9 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1126
1126
|
const t = e, { columns: i } = ee(x(() => t.columns));
|
|
1127
1127
|
return (o, r) => (n(), g(A, null, [
|
|
1128
1128
|
s("h2", null, v(e.rows[0]?.season ?? ""), 1),
|
|
1129
|
-
|
|
1129
|
+
f(a(oe), { class: "mb-md" }, {
|
|
1130
1130
|
default: y(() => [
|
|
1131
|
-
|
|
1131
|
+
f(a(ge), {
|
|
1132
1132
|
rows: e.rows,
|
|
1133
1133
|
columns: a(i),
|
|
1134
1134
|
"is-loading": e.isLoading,
|
|
@@ -1147,7 +1147,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1147
1147
|
}, cr = { class: "is-mb-5" }, mr = { class: "uppercase" }, dr = {
|
|
1148
1148
|
class: "hero",
|
|
1149
1149
|
style: { "--overlay-size": "180px" }
|
|
1150
|
-
}, pr = { class: "is-main-image" }, vr = { class: "is-ovarlay-image" }, hr = { class: "tabs underlined" }, ur = ["aria-label"], gr = ["aria-selected", "onClick"], br = ["aria-selected", "onClick"],
|
|
1150
|
+
}, pr = { class: "is-main-image" }, vr = { class: "is-ovarlay-image" }, hr = { class: "tabs underlined" }, ur = ["aria-label"], gr = ["aria-selected", "onClick"], br = ["aria-selected", "onClick"], wr = {
|
|
1151
1151
|
__name: "Player.ce",
|
|
1152
1152
|
props: {
|
|
1153
1153
|
locale: {
|
|
@@ -1178,18 +1178,18 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1178
1178
|
setup(e) {
|
|
1179
1179
|
const t = e, i = { en: ne, hu: se }, o = j(null);
|
|
1180
1180
|
return (r, l) => (n(), g("div", cr, [
|
|
1181
|
-
|
|
1181
|
+
f(a(le), {
|
|
1182
1182
|
locale: t.locale,
|
|
1183
1183
|
messages: i
|
|
1184
1184
|
}, {
|
|
1185
1185
|
default: y(({ t: d }) => [
|
|
1186
|
-
|
|
1186
|
+
f(a(ke), null, {
|
|
1187
1187
|
default: y(({ error: p, hasError: u }) => [
|
|
1188
1188
|
u ? (n(), N(a(ie), {
|
|
1189
1189
|
key: 0,
|
|
1190
1190
|
error: p
|
|
1191
1191
|
}, null, 8, ["error"])) : _("", !0),
|
|
1192
|
-
|
|
1192
|
+
f(qo, {
|
|
1193
1193
|
"api-key": t.apiKey,
|
|
1194
1194
|
locale: e.locale,
|
|
1195
1195
|
"championship-id": e.championshipId,
|
|
@@ -1197,7 +1197,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1197
1197
|
}, {
|
|
1198
1198
|
default: y(({
|
|
1199
1199
|
pane: m,
|
|
1200
|
-
isGamesLoading:
|
|
1200
|
+
isGamesLoading: w,
|
|
1201
1201
|
isPlayerSeasonsLoading: b,
|
|
1202
1202
|
playerData: h,
|
|
1203
1203
|
playerGames: c,
|
|
@@ -1224,11 +1224,11 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1224
1224
|
}, null, 8, ["src"]))
|
|
1225
1225
|
])
|
|
1226
1226
|
]),
|
|
1227
|
-
|
|
1227
|
+
f(ir, {
|
|
1228
1228
|
data: h,
|
|
1229
1229
|
"append-to": o.value
|
|
1230
1230
|
}, null, 8, ["data", "append-to"]),
|
|
1231
|
-
|
|
1231
|
+
f(sr, {
|
|
1232
1232
|
rows: L,
|
|
1233
1233
|
columns: z,
|
|
1234
1234
|
"is-loading": b,
|
|
@@ -1257,7 +1257,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1257
1257
|
key: 0,
|
|
1258
1258
|
rows: c,
|
|
1259
1259
|
columns: C,
|
|
1260
|
-
"is-loading":
|
|
1260
|
+
"is-loading": w,
|
|
1261
1261
|
"append-to": o.value,
|
|
1262
1262
|
"game-resolver": t.externalGameResolver
|
|
1263
1263
|
}, null, 8, ["rows", "columns", "is-loading", "append-to", "game-resolver"])) : _("", !0),
|
|
@@ -1282,7 +1282,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1282
1282
|
}, 8, ["locale"])
|
|
1283
1283
|
]));
|
|
1284
1284
|
}
|
|
1285
|
-
},
|
|
1285
|
+
}, fr = /* @__PURE__ */ me(wr, [["styles", [ce, De, ot, rt, Me, lt, it, yt, xt, sa]]]), yr = { class: "avatar" }, xr = ["href", "textContent"], kr = ["href", "textContent"], ca = {
|
|
1286
1286
|
__name: "PlayersDataTable",
|
|
1287
1287
|
props: {
|
|
1288
1288
|
columns: {
|
|
@@ -1323,7 +1323,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1323
1323
|
const i = e, o = t, { t: r } = q(), { columns: l } = ee(i.columns), d = (p) => o("sort", p);
|
|
1324
1324
|
return (p, u) => (n(), N(a(oe), null, {
|
|
1325
1325
|
default: y(() => [
|
|
1326
|
-
|
|
1326
|
+
f(a(ge), {
|
|
1327
1327
|
columns: a(l),
|
|
1328
1328
|
rows: e.rows,
|
|
1329
1329
|
"is-loading": e.isLoading,
|
|
@@ -1353,10 +1353,10 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1353
1353
|
}, null, 8, kr)
|
|
1354
1354
|
]),
|
|
1355
1355
|
"cell-nationality": y(({ row: m }) => [
|
|
1356
|
-
(n(!0), g(A, null, F(m.player.nationality, (
|
|
1357
|
-
key:
|
|
1356
|
+
(n(!0), g(A, null, F(m.player.nationality, (w) => (n(), N(a(Ft), {
|
|
1357
|
+
key: w,
|
|
1358
1358
|
placement: "top",
|
|
1359
|
-
content: a(r)(`nationality.${
|
|
1359
|
+
content: a(r)(`nationality.${w}`),
|
|
1360
1360
|
"append-to": e.appendTo
|
|
1361
1361
|
}, {
|
|
1362
1362
|
default: y(({ setRef: b, events: h }) => [
|
|
@@ -1365,8 +1365,8 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1365
1365
|
ref: b,
|
|
1366
1366
|
class: "avatar"
|
|
1367
1367
|
}, { ref_for: !0 }, h), [
|
|
1368
|
-
|
|
1369
|
-
src: a(Zt)(
|
|
1368
|
+
f(a(B), {
|
|
1369
|
+
src: a(Zt)(w)
|
|
1370
1370
|
}, null, 8, ["src"])
|
|
1371
1371
|
], 16)
|
|
1372
1372
|
]),
|
|
@@ -1411,7 +1411,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1411
1411
|
}), { onError: r } = be(), { page: l, change: d } = jt(), { sort: p, change: u } = ut({
|
|
1412
1412
|
sortTarget: "",
|
|
1413
1413
|
orders: []
|
|
1414
|
-
}), { isLoading: m, execute:
|
|
1414
|
+
}), { isLoading: m, execute: w } = O({
|
|
1415
1415
|
options: {
|
|
1416
1416
|
path: "/v2/championship-seasons",
|
|
1417
1417
|
apiKey: t.apiKey,
|
|
@@ -1434,7 +1434,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1434
1434
|
transform: (k) => Ga(k),
|
|
1435
1435
|
onError: r
|
|
1436
1436
|
}), T = gt([m, b], { delay: 1e3 });
|
|
1437
|
-
te([
|
|
1437
|
+
te([w, c]);
|
|
1438
1438
|
const L = x(
|
|
1439
1439
|
() => W(h.value).sorted(p).filter(o.query, [["name"]]).pagination(l.value, t.limit).value()
|
|
1440
1440
|
), C = x(() => [(l.value - 1) * t.limit + 1, Math.min(l.value * t.limit, L.value.totalItems)]);
|
|
@@ -1445,7 +1445,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1445
1445
|
const { value: $ } = k.target;
|
|
1446
1446
|
d(1), o.query = $, i.query = $;
|
|
1447
1447
|
}
|
|
1448
|
-
return (k, $) =>
|
|
1448
|
+
return (k, $) => fe(k.$slots, "default", ye(xe({
|
|
1449
1449
|
...o,
|
|
1450
1450
|
sort: a(p),
|
|
1451
1451
|
page: a(l),
|
|
@@ -1492,18 +1492,18 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1492
1492
|
setup(e) {
|
|
1493
1493
|
const t = e, i = { en: ne, hu: se }, o = j(null), r = (d) => tt(t.externalPlayerResolver, d), l = (d) => Ge(t.externalTeamResolver, d);
|
|
1494
1494
|
return (d, p) => (n(), g("div", null, [
|
|
1495
|
-
|
|
1495
|
+
f(a(le), {
|
|
1496
1496
|
locale: t.locale,
|
|
1497
1497
|
messages: i
|
|
1498
1498
|
}, {
|
|
1499
1499
|
default: y(({ t: u }) => [
|
|
1500
|
-
|
|
1501
|
-
default: y(({ error: m, hasError:
|
|
1502
|
-
|
|
1500
|
+
f(a(ke), null, {
|
|
1501
|
+
default: y(({ error: m, hasError: w }) => [
|
|
1502
|
+
w ? (n(), N(a(ie), {
|
|
1503
1503
|
key: 0,
|
|
1504
1504
|
error: m
|
|
1505
1505
|
}, null, 8, ["error"])) : _("", !0),
|
|
1506
|
-
|
|
1506
|
+
f(_r, {
|
|
1507
1507
|
"api-key": t.apiKey,
|
|
1508
1508
|
locale: e.locale,
|
|
1509
1509
|
"championship-name": e.championshipName,
|
|
@@ -1523,14 +1523,14 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1523
1523
|
onPaginatorChange: S,
|
|
1524
1524
|
onInput: E
|
|
1525
1525
|
}) => [
|
|
1526
|
-
|
|
1526
|
+
f(a(ht), {
|
|
1527
1527
|
seasons: c,
|
|
1528
1528
|
"championship-id": L,
|
|
1529
1529
|
"is-section-selection-disabled": "",
|
|
1530
1530
|
onOnChangeSeason: z
|
|
1531
1531
|
}, {
|
|
1532
1532
|
default: y(() => [
|
|
1533
|
-
|
|
1533
|
+
f(a(X), {
|
|
1534
1534
|
label: u("selection.filterName"),
|
|
1535
1535
|
name: "player"
|
|
1536
1536
|
}, {
|
|
@@ -1548,7 +1548,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1548
1548
|
]),
|
|
1549
1549
|
_: 2
|
|
1550
1550
|
}, 1032, ["seasons", "championship-id", "onOnChangeSeason"]),
|
|
1551
|
-
|
|
1551
|
+
f(ca, {
|
|
1552
1552
|
columns: a(ia),
|
|
1553
1553
|
rows: h.rows,
|
|
1554
1554
|
"append-to": o.value,
|
|
@@ -1560,7 +1560,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1560
1560
|
onSort: $
|
|
1561
1561
|
}, null, 8, ["columns", "rows", "append-to", "sort", "is-loading", "championship-id", "onSort"]),
|
|
1562
1562
|
s("div", Nr, [
|
|
1563
|
-
|
|
1563
|
+
f(a(Kt), {
|
|
1564
1564
|
page: C,
|
|
1565
1565
|
"items-per-page": t.limit,
|
|
1566
1566
|
"total-items": h.totalItems,
|
|
@@ -1654,12 +1654,12 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1654
1654
|
});
|
|
1655
1655
|
p();
|
|
1656
1656
|
const u = Ze(), m = { en: ne, hu: se };
|
|
1657
|
-
function
|
|
1657
|
+
function w(T) {
|
|
1658
1658
|
return et(t.externalGameResolver || nl, T);
|
|
1659
1659
|
}
|
|
1660
1660
|
const b = x(() => t.isGameTargetExternal ? "_blank" : "_self"), h = (T) => qe(T, "L dddd", u, t.locale), c = (T) => qe(T, "HH:mm", u, t.locale);
|
|
1661
1661
|
return (T, L) => (n(), g("div", Dr, [
|
|
1662
|
-
|
|
1662
|
+
f(a(le), {
|
|
1663
1663
|
locale: t.locale,
|
|
1664
1664
|
messages: m
|
|
1665
1665
|
}, {
|
|
@@ -1679,21 +1679,21 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1679
1679
|
s("div", Kr, [
|
|
1680
1680
|
s("div", jr, v(P.homeTeam?.longName), 1),
|
|
1681
1681
|
s("div", null, [
|
|
1682
|
-
|
|
1682
|
+
f(a(B), {
|
|
1683
1683
|
class: "is-logo-image",
|
|
1684
1684
|
src: P.homeTeam.logo
|
|
1685
1685
|
}, null, 8, ["src"])
|
|
1686
1686
|
]),
|
|
1687
1687
|
s("div", Br, v(P.seriesStandings), 1),
|
|
1688
1688
|
s("div", null, [
|
|
1689
|
-
|
|
1689
|
+
f(a(B), {
|
|
1690
1690
|
class: "is-logo-image",
|
|
1691
1691
|
src: P.awayTeam.logo
|
|
1692
1692
|
}, null, 8, ["src"])
|
|
1693
1693
|
]),
|
|
1694
1694
|
s("div", Vr, v(P.awayTeam?.longName), 1)
|
|
1695
1695
|
]),
|
|
1696
|
-
|
|
1696
|
+
f(a(oe), null, {
|
|
1697
1697
|
default: y(() => [
|
|
1698
1698
|
(n(!0), g(A, null, F(P.games, (z) => (n(), g("div", {
|
|
1699
1699
|
key: z.id,
|
|
@@ -1711,7 +1711,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1711
1711
|
s("div", Xr, [
|
|
1712
1712
|
z.gameStatus === 0 ? (n(), g("span", Zr, "-:-")) : (n(), g("a", {
|
|
1713
1713
|
key: 1,
|
|
1714
|
-
href:
|
|
1714
|
+
href: w(z),
|
|
1715
1715
|
target: b.value,
|
|
1716
1716
|
class: H(["font-bold", [{ "text-highlighted": z.gameStatus !== 1, "is-text-accent": z.gameStatus === 1 }]])
|
|
1717
1717
|
}, v(z.homeTeamScore) + ":" + v(z.awayTeamScore), 11, el))
|
|
@@ -1740,12 +1740,12 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1740
1740
|
function ml(e = [], t = "hu", i = Ne) {
|
|
1741
1741
|
const o = j([]), r = j(null), l = j([]), d = () => {
|
|
1742
1742
|
l.value = e.value.reduce((u, m) => {
|
|
1743
|
-
const
|
|
1744
|
-
return u[b] || (u[b] = { value:
|
|
1743
|
+
const w = new Date(m.gameDate), b = new Intl.DateTimeFormat("en-GB", { month: "long" }).format(w)?.toLowerCase(), h = new Intl.DateTimeFormat(t.value, { month: "long" }).format(w);
|
|
1744
|
+
return u[b] || (u[b] = { value: w.getMonth(), name: dl(h) }), u;
|
|
1745
1745
|
}, {}), o.value = Object.values(l.value);
|
|
1746
1746
|
}, p = () => {
|
|
1747
|
-
const u = Da(/* @__PURE__ */ new Date(), Pe(e.value)?.gameDate, ta(e.value)?.gameDate), m = new Intl.DateTimeFormat("en-GB", { month: "long" }).format(/* @__PURE__ */ new Date())?.toLowerCase(),
|
|
1748
|
-
r.value =
|
|
1747
|
+
const u = Da(/* @__PURE__ */ new Date(), Pe(e.value)?.gameDate, ta(e.value)?.gameDate), m = new Intl.DateTimeFormat("en-GB", { month: "long" }).format(/* @__PURE__ */ new Date())?.toLowerCase(), w = ve([m], l.value);
|
|
1748
|
+
r.value = w && u ? (/* @__PURE__ */ new Date()).getMonth() : Pe(o.value)?.value, i(r.value);
|
|
1749
1749
|
};
|
|
1750
1750
|
return ue([e, t], d), Eo(e, () => {
|
|
1751
1751
|
d(), p();
|
|
@@ -1829,7 +1829,7 @@ const vl = {
|
|
|
1829
1829
|
default:
|
|
1830
1830
|
return [["awayTeam", "id"]];
|
|
1831
1831
|
}
|
|
1832
|
-
}), { isLoading:
|
|
1832
|
+
}), { isLoading: w, execute: b } = O({
|
|
1833
1833
|
options: {
|
|
1834
1834
|
path: "/v2/championship-seasons",
|
|
1835
1835
|
apiKey: t.apiKey,
|
|
@@ -1863,9 +1863,9 @@ const vl = {
|
|
|
1863
1863
|
apiKey: t.apiKey,
|
|
1864
1864
|
params: x(() => ({ championshipId: o.championshipId, division: o.section }))
|
|
1865
1865
|
},
|
|
1866
|
-
transform: (R) =>
|
|
1866
|
+
transform: (R) => wt(R),
|
|
1867
1867
|
onError: u
|
|
1868
|
-
}), k = gt([h,
|
|
1868
|
+
}), k = gt([h, w, T, C], { delay: 1e3 }), { months: $ } = ml(P, Dt(t, "locale"), (R) => {
|
|
1869
1869
|
o.selectedMonth = Number(i.selectedMonth) || R;
|
|
1870
1870
|
});
|
|
1871
1871
|
Pa({ items: P, element: l, offset: d, enabled: p });
|
|
@@ -1895,10 +1895,10 @@ const vl = {
|
|
|
1895
1895
|
function Q(R) {
|
|
1896
1896
|
o.selectedTeam = R, i.selectedTeam = R, R || (o.selectedTeamGameType = "all", i.selectedTeamGameType = null);
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function we(R) {
|
|
1899
1899
|
o.selectedTeamGameType = R, i.selectedTeamGameType = R;
|
|
1900
1900
|
}
|
|
1901
|
-
return (R, ze) =>
|
|
1901
|
+
return (R, ze) => fe(R.$slots, "default", ye(xe({
|
|
1902
1902
|
...o,
|
|
1903
1903
|
months: a($),
|
|
1904
1904
|
isLoading: a(k),
|
|
@@ -1908,7 +1908,7 @@ const vl = {
|
|
|
1908
1908
|
changeMonth: I,
|
|
1909
1909
|
changeSection: Y,
|
|
1910
1910
|
changeTeam: Q,
|
|
1911
|
-
changeTeamType:
|
|
1911
|
+
changeTeamType: we,
|
|
1912
1912
|
changeSubSection: J
|
|
1913
1913
|
})));
|
|
1914
1914
|
}
|
|
@@ -1944,7 +1944,7 @@ const bl = { render: va }, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1944
1944
|
__proto__: null,
|
|
1945
1945
|
default: bl,
|
|
1946
1946
|
render: va
|
|
1947
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1947
|
+
}, Symbol.toStringTag, { value: "Module" })), wl = {
|
|
1948
1948
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1949
1949
|
viewBox: "0 0 24 24",
|
|
1950
1950
|
fill: "none",
|
|
@@ -1954,7 +1954,7 @@ const bl = { render: va }, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1954
1954
|
"stroke-linejoin": "round"
|
|
1955
1955
|
};
|
|
1956
1956
|
function ha(e, t) {
|
|
1957
|
-
return n(), g("svg",
|
|
1957
|
+
return n(), g("svg", wl, [...t[0] || (t[0] = [
|
|
1958
1958
|
s("rect", {
|
|
1959
1959
|
x: "2",
|
|
1960
1960
|
y: "3",
|
|
@@ -1977,9 +1977,9 @@ function ha(e, t) {
|
|
|
1977
1977
|
}, null, -1)
|
|
1978
1978
|
])]);
|
|
1979
1979
|
}
|
|
1980
|
-
const
|
|
1980
|
+
const fl = { render: ha }, yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1981
1981
|
__proto__: null,
|
|
1982
|
-
default:
|
|
1982
|
+
default: fl,
|
|
1983
1983
|
render: ha
|
|
1984
1984
|
}, Symbol.toStringTag, { value: "Module" })), xl = {
|
|
1985
1985
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2090,7 +2090,7 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2090
2090
|
V(v(e.game.gameName) + " - " + v(e.game.divisionName) + " - " + v(e.game.location.locationName) + " ", 1),
|
|
2091
2091
|
e.game.broadcast ? (n(), g(A, { key: 0 }, [
|
|
2092
2092
|
o[0] || (o[0] = V(" - ", -1)),
|
|
2093
|
-
|
|
2093
|
+
f(a(yl), { height: "16" }),
|
|
2094
2094
|
o[1] || (o[1] = V(" ", -1))
|
|
2095
2095
|
], 64)) : _("", !0),
|
|
2096
2096
|
e.game.video ? (n(), g(A, { key: 1 }, [
|
|
@@ -2099,7 +2099,7 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2099
2099
|
href: e.game.video,
|
|
2100
2100
|
target: "_blank"
|
|
2101
2101
|
}, [
|
|
2102
|
-
|
|
2102
|
+
f(a(Tl), { height: "18" })
|
|
2103
2103
|
], 8, Pl)
|
|
2104
2104
|
], 64)) : _("", !0)
|
|
2105
2105
|
]),
|
|
@@ -2192,13 +2192,13 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2192
2192
|
],
|
|
2193
2193
|
setup(e, { emit: t }) {
|
|
2194
2194
|
const i = e, o = t, { t: r } = q(), { championshipId: l, selectedMonth: d, selectedTeam: p, selectedTeamGameType: u } = Do(i, o), m = x(() => p.value === null);
|
|
2195
|
-
return (
|
|
2196
|
-
|
|
2195
|
+
return (w, b) => (n(), g("div", ei, [
|
|
2196
|
+
f(a(X), {
|
|
2197
2197
|
name: "season",
|
|
2198
2198
|
label: a(r)("selection.season")
|
|
2199
2199
|
}, {
|
|
2200
2200
|
default: y(() => [
|
|
2201
|
-
|
|
2201
|
+
f(a(pe), {
|
|
2202
2202
|
id: "season",
|
|
2203
2203
|
modelValue: a(l),
|
|
2204
2204
|
"onUpdate:modelValue": b[0] || (b[0] = (h) => Ce(l) ? l.value = h : null)
|
|
@@ -2214,12 +2214,12 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2214
2214
|
]),
|
|
2215
2215
|
_: 1
|
|
2216
2216
|
}, 8, ["label"]),
|
|
2217
|
-
|
|
2217
|
+
f(a(X), {
|
|
2218
2218
|
name: "months",
|
|
2219
2219
|
label: a(r)("selection.month")
|
|
2220
2220
|
}, {
|
|
2221
2221
|
default: y(() => [
|
|
2222
|
-
|
|
2222
|
+
f(a(pe), {
|
|
2223
2223
|
id: "months",
|
|
2224
2224
|
modelValue: a(d),
|
|
2225
2225
|
"onUpdate:modelValue": b[1] || (b[1] = (h) => Ce(d) ? d.value = h : null)
|
|
@@ -2236,12 +2236,12 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2236
2236
|
]),
|
|
2237
2237
|
_: 1
|
|
2238
2238
|
}, 8, ["label"]),
|
|
2239
|
-
|
|
2239
|
+
f(a(X), {
|
|
2240
2240
|
name: "teams",
|
|
2241
2241
|
label: a(r)("selection.teams")
|
|
2242
2242
|
}, {
|
|
2243
2243
|
default: y(() => [
|
|
2244
|
-
|
|
2244
|
+
f(a(pe), {
|
|
2245
2245
|
id: "teams",
|
|
2246
2246
|
modelValue: a(p),
|
|
2247
2247
|
"onUpdate:modelValue": b[2] || (b[2] = (h) => Ce(p) ? p.value = h : null)
|
|
@@ -2258,12 +2258,12 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2258
2258
|
]),
|
|
2259
2259
|
_: 1
|
|
2260
2260
|
}, 8, ["label"]),
|
|
2261
|
-
|
|
2261
|
+
f(a(X), {
|
|
2262
2262
|
name: "type",
|
|
2263
2263
|
label: a(r)("selection.homeOrAway")
|
|
2264
2264
|
}, {
|
|
2265
2265
|
default: y(() => [
|
|
2266
|
-
|
|
2266
|
+
f(a(pe), {
|
|
2267
2267
|
id: "type",
|
|
2268
2268
|
modelValue: a(u),
|
|
2269
2269
|
"onUpdate:modelValue": b[3] || (b[3] = (h) => Ce(u) ? u.value = h : null),
|
|
@@ -2281,7 +2281,7 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2281
2281
|
}, 8, ["label"])
|
|
2282
2282
|
]));
|
|
2283
2283
|
}
|
|
2284
|
-
}, ba = "@layer components.variables{:where(:host){--mvw-color-error-notice-bg-color: color-mix(in oklab, var(--mvw-color-error) 10%, transparent);--mvw-color-error-notice-border-color: color-mix(in oklab, var(--mvw-color-error) 25%, transparent);--mvw-color-error-notice-color: var(--mvw-color-error)}}@layer components{:where(.error-notice){display:flex;align-items:center;justify-items:flex-start;gap:15px;margin:10px 0;padding:10px 20px;background-color:var(--mvw-color-error-notice-bg-color);color:var(--mvw-color-error-notice-color);border:1px solid var(--mvw-color-error-notice-border-color);border-radius:var(--radius-2)}:where(.error-notice) button{text-decoration:underline}}", mi = "@layer components{:where(.card){--_border: none;--_bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));container-type:inline-size;container-name:card-wrapper;padding:var(--size-16);background-color:var(--_bg-color);border:var(--_border);border-radius:var(--radius-2);box-shadow:var(--shadow-3)}:where(.card).bordered{--_bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-950));--_border: 1px solid light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));box-shadow:none;border-radius:0}}", di = '@layer components{:where(.card-item){--_grid-template-areas: "name name name name name" "date date date date date" "home-team home-team-logo game-data away-team-logo away-team";display:grid;grid-gap:var(--size-8);grid-template-columns:1fr 20px 1.5fr 20px 1fr;grid-template-areas:var(--_grid-template-areas);padding:var(--size-16);align-items:center}:where(.card-item):not(:last-of-type){border-bottom:1px solid var(--mvw-border-faded)}:where(.card-item) img{display:block;width:100%;aspect-ratio:1}:where(.card-item) svg{display:inline-block;vertical-align:middle}:where(.card-item) .game-result{color:var(--mvw-text-highlighted)}:where(.card-item) .game-result.is-live{color:var(--mvw-color-live)}@container card-wrapper (width > 768px){:where(.card-item){grid-template-columns:2fr 40px 1fr 40px 2fr}}}', pi = "@layer components.variables{:where(:host){--mvw-timezone-selector-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-500));--mvw-timezone-selector-font-size: var(--font-size-300)}}@layer components{:where(.timezone-selector){padding:3px 0;color:var(--mvw-timezone-selector-color);font-size:var(--mvw-timezone-selector-font-size);font-weight:500}:where(.timezone-selector) button+button{margin-inline-start:var(--size-4)}}", vi = "@layer components{:where(button){--_lighten: oklch(from var(--mvw-link-color) calc(l*1.15) c h);--_darken: oklch(from var(--mvw-link-color) calc(l*.85) c h)}:where(button)[data-variant=link]{padding:0;color:var(--mvw-link-color);cursor:pointer}:where(button)[data-variant=link]:hover{color:light-dark(var(--_darken),var(--_lighten))}:where(button)[data-variant=link].is-active{font-weight:700;color:light-dark(var(--_darken),var(--_lighten))}}", hi = "@layer components.variables{:where(:host){--mvw-tab-btn-font-size: var(--font-size-500);--mvw-tab-btn-font-weight: 500;--mvw-tab-btn-color: var(--mvw-text-dimmed);--mvw-tab-btn-border-style: solid;--mvw-tab-btn-border-width: 0 0 3px 0;--mvw-tab-btn-text-transform: uppercase;--mvw-tab-btn-hover-color: var(--mvw-text-muted);--mvw-tab-btn-hover-border-color: transparent;--mvw-tab-btn-active-color: var(--mvw-text-highlighted);--mvw-tab-btn-active-border-color: var(--mvw-border-highlighted);--mvw-tab-btn-group-separator-color: var(--mvw-border-muted);--mvw-toggle-group-gap: var(--size-6);--mvw-toggle-group-nav-padding: 0;--mvw-toggle-group-border-width: 0;--mvw-toggle-group-btn-padding: var(--size-4) var(--size-8);--mvw-toggle-group-btn-size: var(--font-size-400);--mvw-toggle-group-btn-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-100));--mvw-toggle-group-btn-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-toggle-group-btn-active-color: var(--mvw-color-primary-0);--mvw-toggle-group-btn-active-bg-color: var(--mvw-bg-highlighted);--mvw-toggle-group-btn-radius: var(--radius-2)}}@layer components{:where(nav.tabs)>[role=tablist] button{outline-color:transparent;outline-offset:-4px}:where(nav.tabs)>[role=tablist] button:focus-visible{outline:2px solid blue}:where(nav.tabs).underlined>[role=tablist]{border-bottom:1px solid var(--mvw-tab-btn-group-separator-color)}:where(nav.tabs).underlined>[role=tablist] button{background:transparent;color:var(--mvw-tab-btn-color);font-weight:var(--mvw-tab-btn-font-weight);line-height:var(--font-lineheight-4);padding:var(--size-8) var(--size-16);text-transform:var(--mvw-tab-btn-text-transform)}:where(nav.tabs).underlined>[role=tablist] button:focus-visible{border-radius:0}:where(nav.tabs).underlined>[role=tablist] button[aria-selected=true]{border-block-end:3px solid var(--mvw-tab-btn-active-border-color);color:var(--mvw-tab-btn-active-color)}:where(nav.tabs).underlined>[role=tablist] button[aria-selected=false]:hover{color:var(--mvw-tab-btn-hover-color)}:where(nav.tabs).filled>[role=tablist]{display:flex;gap:var(--mvw-toggle-group-gap);border:var(--mvw-toggle-group-border-width) solid var(--mvw-border-muted);border-radius:calc(var(--mvw-toggle-group-btn-radius) + var(--mvw-toggle-group-nav-padding));overflow:hidden;padding:var(--mvw-toggle-group-nav-padding);width:fit-content}:where(nav.tabs).filled>[role=tablist] button{background-color:var(--mvw-toggle-group-btn-bg-color);border-radius:var(--mvw-toggle-group-btn-radius);font-size:var(--mvw-toggle-group-btn-size);color:var(--mvw-toggle-group-btn-color);padding:var(--mvw-toggle-group-btn-padding)}:where(nav.tabs).filled>[role=tablist] button[aria-selected=true]{color:var(--mvw-toggle-group-btn-active-color);background-color:var(--mvw-toggle-group-btn-active-bg-color)}}", ui = "@layer components{:where(.badge){--_bg-color: var(--mvw-bg-muted);--_color: var(--mvw-text-muted);padding:var(--size-2) var(--size-4);display:inline-flex;gap:var(--size-2);font-size:var(--font-size-100);font-weight:700;line-height:var(--font-lineheight-300);color:var(--_color);background-color:var(--_bg-color);border-radius:var(--radius-2)}:where(.badge) svg{fill:currentColor}:where(.badge).inverted{--_bg-color: var(--mvw-bg-inverted);--_color: var(--mvw-text-inverted)}:where(.badge).live{--_bg-color: var(--mvw-color-live);--_color: var(--mvw-color-white)}:where(.badge).error{--_bg-color: var(--mvw-color-error);--_color: var(--mvw-color-white)}:where(.badge).warning{--_bg-color: var(--mvw-color-warning);--_color: var(--mvw-color-white)}:where(.badge).xs{font-size:var(--font-size-50)}:where(.badge).lg{font-size:var(--font-size-300);padding:var(--size-4) var(--size-6)}:where(.badge)+:where(.badge){margin-inline-start:var(--size-4)}}", gi = { class: "tabs underlined mb-md" }, bi = { role: "tablist" },
|
|
2284
|
+
}, ba = "@layer components.variables{:where(:host){--mvw-color-error-notice-bg-color: color-mix(in oklab, var(--mvw-color-error) 10%, transparent);--mvw-color-error-notice-border-color: color-mix(in oklab, var(--mvw-color-error) 25%, transparent);--mvw-color-error-notice-color: var(--mvw-color-error)}}@layer components{:where(.error-notice){display:flex;align-items:center;justify-items:flex-start;gap:15px;margin:10px 0;padding:10px 20px;background-color:var(--mvw-color-error-notice-bg-color);color:var(--mvw-color-error-notice-color);border:1px solid var(--mvw-color-error-notice-border-color);border-radius:var(--radius-2)}:where(.error-notice) button{text-decoration:underline}}", mi = "@layer components{:where(.card){--_border: none;--_bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));container-type:inline-size;container-name:card-wrapper;padding:var(--size-16);background-color:var(--_bg-color);border:var(--_border);border-radius:var(--radius-2);box-shadow:var(--shadow-3)}:where(.card).bordered{--_bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-950));--_border: 1px solid light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));box-shadow:none;border-radius:0}}", di = '@layer components{:where(.card-item){--_grid-template-areas: "name name name name name" "date date date date date" "home-team home-team-logo game-data away-team-logo away-team";display:grid;grid-gap:var(--size-8);grid-template-columns:1fr 20px 1.5fr 20px 1fr;grid-template-areas:var(--_grid-template-areas);padding:var(--size-16);align-items:center}:where(.card-item):not(:last-of-type){border-bottom:1px solid var(--mvw-border-faded)}:where(.card-item) img{display:block;width:100%;aspect-ratio:1}:where(.card-item) svg{display:inline-block;vertical-align:middle}:where(.card-item) :where(a[target=_blank]):hover:after{content:none}:where(.card-item) .game-result{color:var(--mvw-text-highlighted)}:where(.card-item) .game-result.is-live{color:var(--mvw-color-live)}@container card-wrapper (width > 768px){:where(.card-item){grid-template-columns:2fr 40px 1fr 40px 2fr}}}', pi = "@layer components.variables{:where(:host){--mvw-timezone-selector-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-500));--mvw-timezone-selector-font-size: var(--font-size-300)}}@layer components{:where(.timezone-selector){padding:3px 0;color:var(--mvw-timezone-selector-color);font-size:var(--mvw-timezone-selector-font-size);font-weight:500}:where(.timezone-selector) button+button{margin-inline-start:var(--size-4)}}", vi = "@layer components{:where(button){--_lighten: oklch(from var(--mvw-link-color) calc(l*1.15) c h);--_darken: oklch(from var(--mvw-link-color) calc(l*.85) c h)}:where(button)[data-variant=link]{padding:0;color:var(--mvw-link-color);cursor:pointer}:where(button)[data-variant=link]:hover{color:light-dark(var(--_darken),var(--_lighten))}:where(button)[data-variant=link].is-active{font-weight:700;color:light-dark(var(--_darken),var(--_lighten))}}", hi = "@layer components.variables{:where(:host){--mvw-tab-btn-font-size: var(--font-size-500);--mvw-tab-btn-font-weight: 500;--mvw-tab-btn-color: var(--mvw-text-dimmed);--mvw-tab-btn-border-style: solid;--mvw-tab-btn-border-width: 0 0 3px 0;--mvw-tab-btn-text-transform: uppercase;--mvw-tab-btn-hover-color: var(--mvw-text-muted);--mvw-tab-btn-hover-border-color: transparent;--mvw-tab-btn-active-color: var(--mvw-text-highlighted);--mvw-tab-btn-active-border-color: var(--mvw-border-highlighted);--mvw-tab-btn-group-separator-color: var(--mvw-border-muted);--mvw-toggle-group-gap: var(--size-6);--mvw-toggle-group-nav-padding: 0;--mvw-toggle-group-border-width: 0;--mvw-toggle-group-btn-padding: var(--size-4) var(--size-8);--mvw-toggle-group-btn-size: var(--font-size-400);--mvw-toggle-group-btn-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-100));--mvw-toggle-group-btn-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-toggle-group-btn-active-color: var(--mvw-color-primary-0);--mvw-toggle-group-btn-active-bg-color: var(--mvw-bg-highlighted);--mvw-toggle-group-btn-radius: var(--radius-2)}}@layer components{:where(nav.tabs)>[role=tablist] button{outline-color:transparent;outline-offset:-4px}:where(nav.tabs)>[role=tablist] button:focus-visible{outline:2px solid blue}:where(nav.tabs).underlined>[role=tablist]{border-bottom:1px solid var(--mvw-tab-btn-group-separator-color)}:where(nav.tabs).underlined>[role=tablist] button{background:transparent;color:var(--mvw-tab-btn-color);font-weight:var(--mvw-tab-btn-font-weight);line-height:var(--font-lineheight-4);padding:var(--size-8) var(--size-16);text-transform:var(--mvw-tab-btn-text-transform)}:where(nav.tabs).underlined>[role=tablist] button:focus-visible{border-radius:0}:where(nav.tabs).underlined>[role=tablist] button[aria-selected=true]{border-block-end:3px solid var(--mvw-tab-btn-active-border-color);color:var(--mvw-tab-btn-active-color)}:where(nav.tabs).underlined>[role=tablist] button[aria-selected=false]:hover{color:var(--mvw-tab-btn-hover-color)}:where(nav.tabs).filled>[role=tablist]{display:flex;gap:var(--mvw-toggle-group-gap);border:var(--mvw-toggle-group-border-width) solid var(--mvw-border-muted);border-radius:calc(var(--mvw-toggle-group-btn-radius) + var(--mvw-toggle-group-nav-padding));overflow:hidden;padding:var(--mvw-toggle-group-nav-padding);width:fit-content}:where(nav.tabs).filled>[role=tablist] button{background-color:var(--mvw-toggle-group-btn-bg-color);border-radius:var(--mvw-toggle-group-btn-radius);font-size:var(--mvw-toggle-group-btn-size);color:var(--mvw-toggle-group-btn-color);padding:var(--mvw-toggle-group-btn-padding)}:where(nav.tabs).filled>[role=tablist] button[aria-selected=true]{color:var(--mvw-toggle-group-btn-active-color);background-color:var(--mvw-toggle-group-btn-active-bg-color)}}", ui = "@layer components{:where(.badge){--_bg-color: var(--mvw-bg-muted);--_color: var(--mvw-text-muted);padding:var(--size-2) var(--size-4);display:inline-flex;gap:var(--size-2);font-size:var(--font-size-100);font-weight:700;line-height:var(--font-lineheight-300);color:var(--_color);background-color:var(--_bg-color);border-radius:var(--radius-2)}:where(.badge) svg{fill:currentColor}:where(.badge).inverted{--_bg-color: var(--mvw-bg-inverted);--_color: var(--mvw-text-inverted)}:where(.badge).live{--_bg-color: var(--mvw-color-live);--_color: var(--mvw-color-white)}:where(.badge).error{--_bg-color: var(--mvw-color-error);--_color: var(--mvw-color-white)}:where(.badge).warning{--_bg-color: var(--mvw-color-warning);--_color: var(--mvw-color-white)}:where(.badge).xs{font-size:var(--font-size-50)}:where(.badge).lg{font-size:var(--font-size-300);padding:var(--size-4) var(--size-6)}:where(.badge)+:where(.badge){margin-inline-start:var(--size-4)}}", gi = { class: "tabs underlined mb-md" }, bi = { role: "tablist" }, wi = ["aria-selected", "onClick"], fi = {
|
|
2285
2285
|
key: 0,
|
|
2286
2286
|
class: "tabs filled"
|
|
2287
2287
|
}, yi = { role: "tablist" }, xi = ["aria-selected", "onClick"], ki = ["aria-selected", "onClick"], _i = ["data-gamedate"], zi = { class: "card" }, Si = "/game/id/{gameId}", Ti = {
|
|
@@ -2314,11 +2314,11 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2314
2314
|
...ma
|
|
2315
2315
|
},
|
|
2316
2316
|
setup(e) {
|
|
2317
|
-
const t = e, i = { en: ne, hu: se }, o = j(null), r = j(null), l = j(Ze()), d = x(() =>
|
|
2317
|
+
const t = e, i = { en: ne, hu: se }, o = j(null), r = j(null), l = j(Ze()), d = x(() => ft(/* @__PURE__ */ new Date(), a(l), t.locale)), p = x(() => t.scrollToGameDate.toLowerCase() === "true"), u = x(() => la(r)?.clientHeight ?? 0);
|
|
2318
2318
|
function m(h) {
|
|
2319
2319
|
l.value = h;
|
|
2320
2320
|
}
|
|
2321
|
-
function
|
|
2321
|
+
function w(h) {
|
|
2322
2322
|
return et(t.externalGameResolver || Si, h);
|
|
2323
2323
|
}
|
|
2324
2324
|
const b = x(() => t.isGameTargetExternal ? "_blank" : "_self");
|
|
@@ -2326,18 +2326,18 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2326
2326
|
ref_key: "mainElement",
|
|
2327
2327
|
ref: o
|
|
2328
2328
|
}, [
|
|
2329
|
-
|
|
2329
|
+
f(a(le), {
|
|
2330
2330
|
locale: t.locale,
|
|
2331
2331
|
messages: i
|
|
2332
2332
|
}, {
|
|
2333
2333
|
default: y(({ t: T }) => [
|
|
2334
|
-
|
|
2334
|
+
f(a(ke), null, {
|
|
2335
2335
|
default: y(({ error: L, hasError: C }) => [
|
|
2336
2336
|
C ? (n(), N(a(ie), {
|
|
2337
2337
|
key: 0,
|
|
2338
2338
|
error: L
|
|
2339
2339
|
}, null, 8, ["error"])) : _("", !0),
|
|
2340
|
-
|
|
2340
|
+
f(vl, {
|
|
2341
2341
|
locale: e.locale,
|
|
2342
2342
|
timezone: l.value,
|
|
2343
2343
|
"championship-name": e.championshipName,
|
|
@@ -2360,14 +2360,14 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2360
2360
|
selectedMonth: Y,
|
|
2361
2361
|
selectedTeam: J,
|
|
2362
2362
|
selectedTeamGameType: Q,
|
|
2363
|
-
changeSeason:
|
|
2363
|
+
changeSeason: we,
|
|
2364
2364
|
changeMonth: R,
|
|
2365
2365
|
changeSection: ze,
|
|
2366
2366
|
changeTeam: U,
|
|
2367
2367
|
changeTeamType: _t,
|
|
2368
2368
|
changeSubSection: de
|
|
2369
2369
|
}) => [
|
|
2370
|
-
|
|
2370
|
+
f(ci, {
|
|
2371
2371
|
ref_key: "selectorElement",
|
|
2372
2372
|
ref: r,
|
|
2373
2373
|
class: "sticky blured-bg",
|
|
@@ -2378,7 +2378,7 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2378
2378
|
teams: S,
|
|
2379
2379
|
"selected-team": J,
|
|
2380
2380
|
"selected-team-game-type": Q,
|
|
2381
|
-
"onUpdate:championshipId":
|
|
2381
|
+
"onUpdate:championshipId": we,
|
|
2382
2382
|
"onUpdate:selectedMonth": R,
|
|
2383
2383
|
"onUpdate:selectedTeam": U,
|
|
2384
2384
|
"onUpdate:selectedTeamGameType": _t
|
|
@@ -2391,10 +2391,10 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2391
2391
|
type: "button",
|
|
2392
2392
|
"aria-selected": K.phaseName === $,
|
|
2393
2393
|
onClick: (Se) => ze(K.phaseName)
|
|
2394
|
-
}, v(K.phaseName), 9,
|
|
2394
|
+
}, v(K.phaseName), 9, wi))), 128))
|
|
2395
2395
|
])
|
|
2396
2396
|
]),
|
|
2397
|
-
ae.length > 1 ? (n(), g("nav",
|
|
2397
|
+
ae.length > 1 ? (n(), g("nav", fi, [
|
|
2398
2398
|
s("div", yi, [
|
|
2399
2399
|
s("button", {
|
|
2400
2400
|
role: "tab",
|
|
@@ -2428,7 +2428,7 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2428
2428
|
key: zt.id,
|
|
2429
2429
|
game: zt,
|
|
2430
2430
|
"offset-name": d.value,
|
|
2431
|
-
"game-link":
|
|
2431
|
+
"game-link": w,
|
|
2432
2432
|
target: b.value
|
|
2433
2433
|
}, null, 8, ["game", "offset-name", "target"]))), 128))
|
|
2434
2434
|
])
|
|
@@ -2575,7 +2575,7 @@ const Ai = {
|
|
|
2575
2575
|
},
|
|
2576
2576
|
transform: (D) => at(D, o),
|
|
2577
2577
|
onError: r
|
|
2578
|
-
}), { isLoading: m, execute:
|
|
2578
|
+
}), { isLoading: m, execute: w } = O({
|
|
2579
2579
|
options: {
|
|
2580
2580
|
path: "/v2/championship-sections",
|
|
2581
2581
|
apiKey: t.apiKey,
|
|
@@ -2602,9 +2602,9 @@ const Ai = {
|
|
|
2602
2602
|
},
|
|
2603
2603
|
onError: r
|
|
2604
2604
|
}), { isActive: C, rows: P } = Ni(h, T), z = x(() => [m.value, p.value, b.value].some(Boolean)), k = x(() => W(a(h)).teamName().sorted(l).addContinuousIndex().value()), $ = x(() => W(a(P)).addContinuousIndex().value());
|
|
2605
|
-
te([u,
|
|
2605
|
+
te([u, w, c, L]), Lo(L, Pi);
|
|
2606
2606
|
function S(D) {
|
|
2607
|
-
o.championshipId = D, i.championshipId = D, i.section = null, te([
|
|
2607
|
+
o.championshipId = D, i.championshipId = D, i.section = null, te([w, c]);
|
|
2608
2608
|
}
|
|
2609
2609
|
function E(D) {
|
|
2610
2610
|
o.section = D, i.section = D, c();
|
|
@@ -2612,7 +2612,7 @@ const Ai = {
|
|
|
2612
2612
|
function M(D) {
|
|
2613
2613
|
o.standingsType = D;
|
|
2614
2614
|
}
|
|
2615
|
-
return (D, ae) =>
|
|
2615
|
+
return (D, ae) => fe(D.$slots, "default", ye(xe({
|
|
2616
2616
|
...o,
|
|
2617
2617
|
sort: a(l),
|
|
2618
2618
|
isLoading: z.value,
|
|
@@ -2698,10 +2698,10 @@ const Ai = {
|
|
|
2698
2698
|
cause: { column: u.value }
|
|
2699
2699
|
})
|
|
2700
2700
|
);
|
|
2701
|
-
const m = (
|
|
2702
|
-
return (
|
|
2701
|
+
const m = (w) => o("sort", w);
|
|
2702
|
+
return (w, b) => (n(), N(a(oe), null, {
|
|
2703
2703
|
default: y(({ el: h }) => [
|
|
2704
|
-
|
|
2704
|
+
f(a(ge), {
|
|
2705
2705
|
columns: a(p),
|
|
2706
2706
|
sort: i.sort,
|
|
2707
2707
|
rows: i.rows,
|
|
@@ -2785,7 +2785,7 @@ const Ai = {
|
|
|
2785
2785
|
}, v(c.score), 3)) : _("", !0)
|
|
2786
2786
|
]),
|
|
2787
2787
|
loading: y(() => [
|
|
2788
|
-
|
|
2788
|
+
f(a(Oe))
|
|
2789
2789
|
]),
|
|
2790
2790
|
_: 1
|
|
2791
2791
|
}, 8, ["columns", "sort", "rows", "is-loading", "append-to"])
|
|
@@ -2819,23 +2819,23 @@ const Ai = {
|
|
|
2819
2819
|
setup(e) {
|
|
2820
2820
|
const t = e, i = { en: ne, hu: se }, o = j(null), r = (l) => Ge(t.externalTeamResolver, l);
|
|
2821
2821
|
return (l, d) => (n(), g("div", null, [
|
|
2822
|
-
|
|
2822
|
+
f(a(le), {
|
|
2823
2823
|
locale: t.locale,
|
|
2824
2824
|
messages: i
|
|
2825
2825
|
}, {
|
|
2826
2826
|
default: y(({ t: p }) => [
|
|
2827
|
-
|
|
2827
|
+
f(a(ke), null, {
|
|
2828
2828
|
default: y(({ error: u, hasError: m }) => [
|
|
2829
2829
|
m ? (n(), N(a(ie), {
|
|
2830
2830
|
key: 0,
|
|
2831
2831
|
error: u
|
|
2832
2832
|
}, null, 8, ["error"])) : _("", !0),
|
|
2833
|
-
|
|
2833
|
+
f(Ai, {
|
|
2834
2834
|
locale: e.locale,
|
|
2835
2835
|
"championship-name": e.championshipName
|
|
2836
2836
|
}, {
|
|
2837
2837
|
default: y(({
|
|
2838
|
-
sort:
|
|
2838
|
+
sort: w,
|
|
2839
2839
|
teams: b,
|
|
2840
2840
|
seasons: h,
|
|
2841
2841
|
section: c,
|
|
@@ -2850,7 +2850,7 @@ const Ai = {
|
|
|
2850
2850
|
changeSection: E,
|
|
2851
2851
|
onChangeStandingsType: M
|
|
2852
2852
|
}) => [
|
|
2853
|
-
|
|
2853
|
+
f(a(ht), {
|
|
2854
2854
|
seasons: h,
|
|
2855
2855
|
"championship-id": z,
|
|
2856
2856
|
sections: T,
|
|
@@ -2889,17 +2889,17 @@ const Ai = {
|
|
|
2889
2889
|
key: 2,
|
|
2890
2890
|
rows: b.rows,
|
|
2891
2891
|
columns: a(Qa),
|
|
2892
|
-
sort:
|
|
2892
|
+
sort: w,
|
|
2893
2893
|
"external-team-resolver": r,
|
|
2894
2894
|
"append-to": o.value,
|
|
2895
2895
|
"is-loading": C,
|
|
2896
2896
|
onSort: $
|
|
2897
2897
|
}, null, 8, ["rows", "columns", "sort", "append-to", "is-loading", "onSort"])) : _("", !0),
|
|
2898
|
-
|
|
2898
|
+
f(a(Tt), {
|
|
2899
2899
|
rows: b.rows,
|
|
2900
2900
|
"additional-key": "inheritedPoints"
|
|
2901
2901
|
}, null, 8, ["rows"]),
|
|
2902
|
-
|
|
2902
|
+
f(a(Tt), {
|
|
2903
2903
|
rows: b.rows,
|
|
2904
2904
|
"additional-key": "penaltyPoints"
|
|
2905
2905
|
}, null, 8, ["rows"])
|
|
@@ -3150,17 +3150,17 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3150
3150
|
get: () => i.playerFilter,
|
|
3151
3151
|
set: (b) => o("onPlayerInput", b)
|
|
3152
3152
|
});
|
|
3153
|
-
function
|
|
3153
|
+
function w(b) {
|
|
3154
3154
|
o("onStatTypeChange", b);
|
|
3155
3155
|
}
|
|
3156
3156
|
return (b, h) => (n(), g(A, null, [
|
|
3157
3157
|
s("div", Zi, [
|
|
3158
|
-
|
|
3158
|
+
f(a(X), {
|
|
3159
3159
|
label: a(r)("selection.season"),
|
|
3160
3160
|
name: "season"
|
|
3161
3161
|
}, {
|
|
3162
3162
|
default: y(() => [
|
|
3163
|
-
|
|
3163
|
+
f(a(pe), {
|
|
3164
3164
|
id: "season",
|
|
3165
3165
|
modelValue: l.value,
|
|
3166
3166
|
"onUpdate:modelValue": h[0] || (h[0] = (c) => l.value = c)
|
|
@@ -3176,12 +3176,12 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3176
3176
|
]),
|
|
3177
3177
|
_: 1
|
|
3178
3178
|
}, 8, ["label"]),
|
|
3179
|
-
|
|
3179
|
+
f(a(X), {
|
|
3180
3180
|
label: a(r)("selection.section"),
|
|
3181
3181
|
name: "section"
|
|
3182
3182
|
}, {
|
|
3183
3183
|
default: y(() => [
|
|
3184
|
-
|
|
3184
|
+
f(a(pe), {
|
|
3185
3185
|
id: "section",
|
|
3186
3186
|
modelValue: d.value,
|
|
3187
3187
|
"onUpdate:modelValue": h[1] || (h[1] = (c) => d.value = c)
|
|
@@ -3197,12 +3197,12 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3197
3197
|
]),
|
|
3198
3198
|
_: 1
|
|
3199
3199
|
}, 8, ["label"]),
|
|
3200
|
-
|
|
3200
|
+
f(a(X), {
|
|
3201
3201
|
label: a(r)("selection.report"),
|
|
3202
3202
|
name: "report"
|
|
3203
3203
|
}, {
|
|
3204
3204
|
default: y(() => [
|
|
3205
|
-
|
|
3205
|
+
f(a(pe), {
|
|
3206
3206
|
id: "report",
|
|
3207
3207
|
modelValue: p.value,
|
|
3208
3208
|
"onUpdate:modelValue": h[2] || (h[2] = (c) => p.value = c)
|
|
@@ -3219,12 +3219,12 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3219
3219
|
_: 1
|
|
3220
3220
|
}, 8, ["label"]),
|
|
3221
3221
|
e.reportType === "players" ? (n(), g(A, { key: 0 }, [
|
|
3222
|
-
|
|
3222
|
+
f(a(X), {
|
|
3223
3223
|
label: a(r)("selection.teams"),
|
|
3224
3224
|
name: "teams"
|
|
3225
3225
|
}, {
|
|
3226
3226
|
default: y(() => [
|
|
3227
|
-
|
|
3227
|
+
f(a(pe), {
|
|
3228
3228
|
id: "teams",
|
|
3229
3229
|
modelValue: u.value,
|
|
3230
3230
|
"onUpdate:modelValue": h[3] || (h[3] = (c) => u.value = c),
|
|
@@ -3242,7 +3242,7 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3242
3242
|
]),
|
|
3243
3243
|
_: 1
|
|
3244
3244
|
}, 8, ["label"]),
|
|
3245
|
-
|
|
3245
|
+
f(a(X), {
|
|
3246
3246
|
label: a(r)("selection.filterName"),
|
|
3247
3247
|
name: "player"
|
|
3248
3248
|
}, {
|
|
@@ -3270,13 +3270,13 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3270
3270
|
role: "tab",
|
|
3271
3271
|
type: "button",
|
|
3272
3272
|
"aria-selected": e.reportType === a(Ae),
|
|
3273
|
-
onClick: h[5] || (h[5] = (c) =>
|
|
3273
|
+
onClick: h[5] || (h[5] = (c) => w(a(Ae)))
|
|
3274
3274
|
}, v(a(r)("selection.players")), 9, cn),
|
|
3275
3275
|
s("button", {
|
|
3276
3276
|
role: "tab",
|
|
3277
3277
|
type: "button",
|
|
3278
3278
|
"aria-selected": e.reportType === a(Rt),
|
|
3279
|
-
onClick: h[6] || (h[6] = (c) =>
|
|
3279
|
+
onClick: h[6] || (h[6] = (c) => w(a(Rt)))
|
|
3280
3280
|
}, v(a(r)("selection.teams")), 9, mn)
|
|
3281
3281
|
], 8, sn)
|
|
3282
3282
|
])
|
|
@@ -3324,7 +3324,7 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3324
3324
|
l.columns = d.columns, l.api = d.api;
|
|
3325
3325
|
const p = x(
|
|
3326
3326
|
() => l.reportType === Ae ? Ji(i) : Qi(i)
|
|
3327
|
-
), { page: u, change: m } = jt(), { sort:
|
|
3327
|
+
), { page: u, change: m } = jt(), { sort: w, change: b } = ut({
|
|
3328
3328
|
sortTarget: "points",
|
|
3329
3329
|
orders: [{ target: "points", direction: G }]
|
|
3330
3330
|
});
|
|
@@ -3410,11 +3410,11 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3410
3410
|
}
|
|
3411
3411
|
}
|
|
3412
3412
|
const C = x(
|
|
3413
|
-
() => W(l.rows).filter(l.teamFilter, [["team", "id"]], !0).filter(l.playerFilter, ["name"]).sorted(
|
|
3413
|
+
() => W(l.rows).filter(l.teamFilter, [["team", "id"]], !0).filter(l.playerFilter, ["name"]).sorted(w).addIndex(w.sortTarget).pagination(a(u), t.limit).value()
|
|
3414
3414
|
), P = x(() => [(u.value - 1) * t.limit + 1, Math.min(u.value * t.limit, C.value.totalItems)]);
|
|
3415
3415
|
function z() {
|
|
3416
3416
|
const I = At.get(l.currentReport);
|
|
3417
|
-
l.columns = I.columns, l.api = I.api, l.apiParams = I.params || {},
|
|
3417
|
+
l.columns = I.columns, l.api = I.api, l.apiParams = I.params || {}, w.sortTarget = I.sort.sortTarget, w.orders = I.sort.orders;
|
|
3418
3418
|
}
|
|
3419
3419
|
async function k(I) {
|
|
3420
3420
|
l.championshipId = I, r.championshipId = I, l.phaseId = null, r.phaseId = null, await c(), r.section = l.section, await L(), await T();
|
|
@@ -3437,10 +3437,10 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3437
3437
|
async function ae() {
|
|
3438
3438
|
await h(), await c(), await L(), z(), await T();
|
|
3439
3439
|
}
|
|
3440
|
-
return ae(), (I, Y) =>
|
|
3440
|
+
return ae(), (I, Y) => fe(I.$slots, "default", ye(xe({
|
|
3441
3441
|
...l,
|
|
3442
3442
|
rows: C.value,
|
|
3443
|
-
sort: a(
|
|
3443
|
+
sort: a(w),
|
|
3444
3444
|
page: a(u),
|
|
3445
3445
|
range: P.value,
|
|
3446
3446
|
selectorProps: {
|
|
@@ -3504,14 +3504,14 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3504
3504
|
setup(e) {
|
|
3505
3505
|
const t = e, i = { en: ne, hu: se }, o = j(null), r = (d) => Ge(t.externalTeamResolver, d), l = (d) => tt(t.externalPlayerLink, d);
|
|
3506
3506
|
return (d, p) => (n(), g("div", null, [
|
|
3507
|
-
|
|
3507
|
+
f(a(le), {
|
|
3508
3508
|
locale: t.locale,
|
|
3509
3509
|
messages: i
|
|
3510
3510
|
}, {
|
|
3511
3511
|
default: y(({ t: u }) => [
|
|
3512
|
-
|
|
3513
|
-
default: y(({ hasError: m, error:
|
|
3514
|
-
|
|
3512
|
+
f(a(ke), null, {
|
|
3513
|
+
default: y(({ hasError: m, error: w }) => [
|
|
3514
|
+
f(pn, {
|
|
3515
3515
|
"championship-name": e.championshipName,
|
|
3516
3516
|
"championship-id": e.championshipId,
|
|
3517
3517
|
limit: t.limit,
|
|
@@ -3531,9 +3531,9 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3531
3531
|
}) => [
|
|
3532
3532
|
m ? (n(), N(a(ie), {
|
|
3533
3533
|
key: 0,
|
|
3534
|
-
error:
|
|
3534
|
+
error: w
|
|
3535
3535
|
}, null, 8, ["error"])) : (n(), N(dn, vt({ key: 1 }, P, Sa(z)), null, 16)),
|
|
3536
|
-
|
|
3536
|
+
f(a(Ia), {
|
|
3537
3537
|
columns: h,
|
|
3538
3538
|
rows: c.rows,
|
|
3539
3539
|
sort: b,
|
|
@@ -3547,7 +3547,7 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3547
3547
|
onSort: $
|
|
3548
3548
|
}, null, 8, ["columns", "rows", "sort", "is-loading", "is-team-linked", "is-player-linked", "hide-columns", "append-to", "onSort"]),
|
|
3549
3549
|
s("div", un, [
|
|
3550
|
-
|
|
3550
|
+
f(a(Kt), {
|
|
3551
3551
|
page: T,
|
|
3552
3552
|
"items-per-page": t.limit,
|
|
3553
3553
|
"total-items": c.totalItems,
|
|
@@ -3571,7 +3571,7 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3571
3571
|
}, 8, ["locale"])
|
|
3572
3572
|
]));
|
|
3573
3573
|
}
|
|
3574
|
-
},
|
|
3574
|
+
}, wn = /* @__PURE__ */ me(bn, [["styles", [ce, De, ot, rt, Me, lt, it, vn, hn]]]), Ve = "Info", Ue = "Games", Ye = "Stats", We = "Roster", fn = {
|
|
3575
3575
|
teamKeyIntl: {
|
|
3576
3576
|
label: "table.blank",
|
|
3577
3577
|
class: "text-start"
|
|
@@ -3636,14 +3636,14 @@ const kn = {
|
|
|
3636
3636
|
params: x(() => ({ championshipId: r.championshipId, teamId: r.teamId }))
|
|
3637
3637
|
},
|
|
3638
3638
|
transform: (k) => Xe(
|
|
3639
|
-
|
|
3639
|
+
wt(k),
|
|
3640
3640
|
Ht(i, t.locale),
|
|
3641
3641
|
qt,
|
|
3642
3642
|
Jt(r.teamId),
|
|
3643
3643
|
Qt
|
|
3644
3644
|
),
|
|
3645
3645
|
onError: l
|
|
3646
|
-
}), { state: m, execute:
|
|
3646
|
+
}), { state: m, execute: w } = O({
|
|
3647
3647
|
options: {
|
|
3648
3648
|
path: "/v2/championship-players",
|
|
3649
3649
|
apiKey: t.apiKey,
|
|
@@ -3694,7 +3694,7 @@ const kn = {
|
|
|
3694
3694
|
u();
|
|
3695
3695
|
break;
|
|
3696
3696
|
case We:
|
|
3697
|
-
|
|
3697
|
+
w();
|
|
3698
3698
|
break;
|
|
3699
3699
|
case Ye:
|
|
3700
3700
|
r.isStatsLoading = !0, te([C, h, T], {
|
|
@@ -3709,7 +3709,7 @@ const kn = {
|
|
|
3709
3709
|
break;
|
|
3710
3710
|
}
|
|
3711
3711
|
}
|
|
3712
|
-
return (k, $) =>
|
|
3712
|
+
return (k, $) => fe(k.$slots, "default", ye(xe({ ...r, games: a(p), teamInfo: a(d), roster: a(m), fieldPlayers: a(b), fieldPlayersPenalty: a(c), onChangePage: P })));
|
|
3713
3713
|
}
|
|
3714
3714
|
}, _n = {
|
|
3715
3715
|
__name: "Games",
|
|
@@ -3741,11 +3741,11 @@ const kn = {
|
|
|
3741
3741
|
pt
|
|
3742
3742
|
),
|
|
3743
3743
|
null,
|
|
3744
|
-
x(() => ({ offsetName:
|
|
3744
|
+
x(() => ({ offsetName: ft(/* @__PURE__ */ new Date(), null, "hu") }))
|
|
3745
3745
|
);
|
|
3746
3746
|
return (r, l) => (n(), g(A, null, [
|
|
3747
3747
|
s("h2", null, v(a(i)("teams.games")), 1),
|
|
3748
|
-
|
|
3748
|
+
f(na, {
|
|
3749
3749
|
rows: e.data,
|
|
3750
3750
|
columns: a(o),
|
|
3751
3751
|
"game-resolver": e.gameResolver,
|
|
@@ -3766,12 +3766,12 @@ const kn = {
|
|
|
3766
3766
|
}
|
|
3767
3767
|
},
|
|
3768
3768
|
setup(e) {
|
|
3769
|
-
const t = e, i = j(null), { t: o } = q(), { columns: r } = ee(
|
|
3769
|
+
const t = e, i = j(null), { t: o } = q(), { columns: r } = ee(fn), l = x(() => t.data.map((d) => ({ ...d, teamKeyIntl: o(`teams.info.${d.teamKey}`) })));
|
|
3770
3770
|
return (d, p) => (n(), g("div", null, [
|
|
3771
3771
|
s("h2", null, v(a(o)("teams.teamInfo")), 1),
|
|
3772
|
-
|
|
3772
|
+
f(a(oe), null, {
|
|
3773
3773
|
default: y(() => [
|
|
3774
|
-
|
|
3774
|
+
f(a(ge), {
|
|
3775
3775
|
columns: a(r),
|
|
3776
3776
|
rows: l.value,
|
|
3777
3777
|
"append-to": i.value
|
|
@@ -3823,7 +3823,7 @@ const kn = {
|
|
|
3823
3823
|
return (r, l) => (n(), g(A, null, [
|
|
3824
3824
|
(n(!0), g(A, null, F(e.data, (d, p) => (n(), g(A, { key: p }, [
|
|
3825
3825
|
s("h2", null, v(a(i)(`teams.${p}`)), 1),
|
|
3826
|
-
|
|
3826
|
+
f(ca, {
|
|
3827
3827
|
rows: d,
|
|
3828
3828
|
columns: a(o),
|
|
3829
3829
|
"championship-id": e.championshipId,
|
|
@@ -3885,9 +3885,9 @@ const kn = {
|
|
|
3885
3885
|
), o = j(null), { t: r } = q(), { columns: l } = ee(t), { columns: d } = ee(i);
|
|
3886
3886
|
return (p, u) => (n(), g("div", null, [
|
|
3887
3887
|
s("h2", null, v(a(r)("teams.fieldPlayers")), 1),
|
|
3888
|
-
|
|
3888
|
+
f(a(oe), null, {
|
|
3889
3889
|
default: y(() => [
|
|
3890
|
-
|
|
3890
|
+
f(a(ge), {
|
|
3891
3891
|
columns: a(l),
|
|
3892
3892
|
rows: e.fieldPlayers,
|
|
3893
3893
|
"is-loading": e.isLoading,
|
|
@@ -3914,9 +3914,9 @@ const kn = {
|
|
|
3914
3914
|
_: 1
|
|
3915
3915
|
}),
|
|
3916
3916
|
s("h2", null, v(a(r)("teams.goalies")), 1),
|
|
3917
|
-
|
|
3917
|
+
f(a(oe), null, {
|
|
3918
3918
|
default: y(() => [
|
|
3919
|
-
|
|
3919
|
+
f(a(ge), {
|
|
3920
3920
|
columns: a(d),
|
|
3921
3921
|
rows: e.goalies,
|
|
3922
3922
|
"is-loading": e.isLoading,
|
|
@@ -3982,24 +3982,24 @@ const kn = {
|
|
|
3982
3982
|
setup(e) {
|
|
3983
3983
|
const t = e, i = { en: ne, hu: se }, o = (l) => tt(t.externalPlayerResolver, l), r = (l) => et(t.externalGameResolver, l);
|
|
3984
3984
|
return (l, d) => (n(), g("div", En, [
|
|
3985
|
-
|
|
3985
|
+
f(a(le), {
|
|
3986
3986
|
locale: t.locale,
|
|
3987
3987
|
messages: i
|
|
3988
3988
|
}, {
|
|
3989
3989
|
default: y(({ t: p }) => [
|
|
3990
|
-
|
|
3990
|
+
f(a(ke), null, {
|
|
3991
3991
|
default: y(({ hasError: u, error: m }) => [
|
|
3992
3992
|
u ? (n(), N(a(ie), {
|
|
3993
3993
|
key: 0,
|
|
3994
3994
|
error: m
|
|
3995
3995
|
}, null, 8, ["error"])) : _("", !0),
|
|
3996
|
-
|
|
3996
|
+
f(kn, {
|
|
3997
3997
|
"api-key": t.apiKey,
|
|
3998
3998
|
"championship-id": e.championshipId,
|
|
3999
3999
|
"team-id": e.teamId
|
|
4000
4000
|
}, {
|
|
4001
4001
|
default: y(({
|
|
4002
|
-
teamInfo:
|
|
4002
|
+
teamInfo: w,
|
|
4003
4003
|
page: b,
|
|
4004
4004
|
roster: h,
|
|
4005
4005
|
games: c,
|
|
@@ -4007,19 +4007,19 @@ const kn = {
|
|
|
4007
4007
|
isStatsLoading: L,
|
|
4008
4008
|
onChangePage: C
|
|
4009
4009
|
}) => [
|
|
4010
|
-
s("h1", Rn, v(
|
|
4010
|
+
s("h1", Rn, v(w?.team?.longName), 1),
|
|
4011
4011
|
s("div", An, [
|
|
4012
4012
|
s("div", On, [
|
|
4013
4013
|
(n(), N(a(B), {
|
|
4014
|
-
key:
|
|
4015
|
-
src:
|
|
4014
|
+
key: w?.team?.id,
|
|
4015
|
+
src: w?.team?.teamPhoto,
|
|
4016
4016
|
"default-src": "https://www.ersteliga.hu/assets/images/logo_liga@2x.png"
|
|
4017
4017
|
}, null, 8, ["src"]))
|
|
4018
4018
|
]),
|
|
4019
4019
|
s("div", Gn, [
|
|
4020
4020
|
(n(), N(a(B), {
|
|
4021
|
-
key:
|
|
4022
|
-
src:
|
|
4021
|
+
key: w?.team?.id,
|
|
4022
|
+
src: w?.team?.logo
|
|
4023
4023
|
}, null, 8, ["src"]))
|
|
4024
4024
|
])
|
|
4025
4025
|
]),
|
|
@@ -4056,7 +4056,7 @@ const kn = {
|
|
|
4056
4056
|
]),
|
|
4057
4057
|
b === a(Ve) ? (n(), N(Tn, {
|
|
4058
4058
|
key: 0,
|
|
4059
|
-
data:
|
|
4059
|
+
data: w.organizationInfo
|
|
4060
4060
|
}, null, 8, ["data"])) : _("", !0),
|
|
4061
4061
|
b === a(Ue) ? (n(), N(_n, {
|
|
4062
4062
|
key: 1,
|
|
@@ -4129,15 +4129,15 @@ const kn = {
|
|
|
4129
4129
|
},
|
|
4130
4130
|
transform: bt,
|
|
4131
4131
|
onError: r
|
|
4132
|
-
}),
|
|
4132
|
+
}), w = gt([l, p], { delay: 1e3 });
|
|
4133
4133
|
te([d, m]);
|
|
4134
4134
|
function b(h) {
|
|
4135
4135
|
o.championshipId = h, i.championshipId = h, te([m]);
|
|
4136
4136
|
}
|
|
4137
|
-
return (h, c) =>
|
|
4137
|
+
return (h, c) => fe(h.$slots, "default", ye(xe({
|
|
4138
4138
|
...o,
|
|
4139
4139
|
teams: a(u),
|
|
4140
|
-
isLoading: a(
|
|
4140
|
+
isLoading: a(w),
|
|
4141
4141
|
changeSeason: b
|
|
4142
4142
|
})));
|
|
4143
4143
|
}
|
|
@@ -4172,12 +4172,12 @@ const kn = {
|
|
|
4172
4172
|
return Ge(t.externalTeamResolver, { team: { id: r }, championshipId: l });
|
|
4173
4173
|
}
|
|
4174
4174
|
return (r, l) => (n(), g("div", null, [
|
|
4175
|
-
|
|
4175
|
+
f(a(le), {
|
|
4176
4176
|
locale: t.locale,
|
|
4177
4177
|
messages: i
|
|
4178
4178
|
}, {
|
|
4179
4179
|
default: y(() => [
|
|
4180
|
-
|
|
4180
|
+
f(a(ke), null, {
|
|
4181
4181
|
default: y(({ error: d, hasError: p }) => [
|
|
4182
4182
|
p ? (n(), N(a(ie), {
|
|
4183
4183
|
key: 0,
|
|
@@ -4189,14 +4189,14 @@ const kn = {
|
|
|
4189
4189
|
locale: e.locale,
|
|
4190
4190
|
"championship-name": e.championshipName
|
|
4191
4191
|
}, {
|
|
4192
|
-
default: y(({ teams: u, seasons: m, isLoading:
|
|
4193
|
-
|
|
4192
|
+
default: y(({ teams: u, seasons: m, isLoading: w, championshipId: b, changeSeason: h }) => [
|
|
4193
|
+
f(a(ht), {
|
|
4194
4194
|
seasons: m,
|
|
4195
4195
|
"championship-id": b,
|
|
4196
4196
|
"is-section-selection-disabled": "",
|
|
4197
4197
|
onOnChangeSeason: h
|
|
4198
4198
|
}, null, 8, ["seasons", "championship-id", "onOnChangeSeason"]),
|
|
4199
|
-
|
|
4199
|
+
w ? (n(), N(a(Oe), { key: 0 })) : (n(), g("div", Wn, [
|
|
4200
4200
|
(n(!0), g(A, null, F(u, (c) => (n(), g("div", {
|
|
4201
4201
|
key: c.teamId,
|
|
4202
4202
|
role: "listitem"
|
|
@@ -4269,7 +4269,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4269
4269
|
s("a", {
|
|
4270
4270
|
href: e.statResolver(e.externalId)
|
|
4271
4271
|
}, [
|
|
4272
|
-
|
|
4272
|
+
f(a(_l))
|
|
4273
4273
|
], 8, es)
|
|
4274
4274
|
]),
|
|
4275
4275
|
s("div", ts, [
|
|
@@ -4279,7 +4279,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4279
4279
|
class: H({ "is-large": r === 0 })
|
|
4280
4280
|
}, [
|
|
4281
4281
|
s("div", as, [
|
|
4282
|
-
|
|
4282
|
+
f(a(B), {
|
|
4283
4283
|
class: "is-player truncate",
|
|
4284
4284
|
src: o.player.picture,
|
|
4285
4285
|
"default-src": a(Je)
|
|
@@ -4349,7 +4349,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4349
4349
|
}
|
|
4350
4350
|
},
|
|
4351
4351
|
setup(e) {
|
|
4352
|
-
const t = e, i = { en: ne, hu: se }, o = j(0), { onError: r, error: l, hasError: d, reset: p } = Bt(), { isLoading: u, state: m, execute:
|
|
4352
|
+
const t = e, i = { en: ne, hu: se }, o = j(0), { onError: r, error: l, hasError: d, reset: p } = Bt(), { isLoading: u, state: m, execute: w } = O({
|
|
4353
4353
|
options: {
|
|
4354
4354
|
path: "/v2/championship-sections",
|
|
4355
4355
|
apiKey: t.apiKey,
|
|
@@ -4358,7 +4358,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4358
4358
|
},
|
|
4359
4359
|
transform: (U) => Xn(U[0].phases || []),
|
|
4360
4360
|
onSuccess: (U) => {
|
|
4361
|
-
o.value = ta(U)?.phaseBaseId ?? 0,
|
|
4361
|
+
o.value = ta(U)?.phaseBaseId ?? 0, we();
|
|
4362
4362
|
},
|
|
4363
4363
|
onError: r
|
|
4364
4364
|
}), { isLoading: b, state: h, execute: c } = O({
|
|
@@ -4404,14 +4404,14 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4404
4404
|
sortTarget: "pim",
|
|
4405
4405
|
orders: [{ target: "pim", direction: G }]
|
|
4406
4406
|
}).slice(t.limit).playerName().value()), Y = (U) => tt(t.externalPlayerResolver, { ...U, championshipId: t.championshipId }), J = (U) => Ge(t.externalTeamResolver, { ...U, championshipId: t.championshipId }), Q = (U) => Ja(t.externalStatisticResolver, { id: U });
|
|
4407
|
-
function
|
|
4407
|
+
function we() {
|
|
4408
4408
|
c(), C(), k();
|
|
4409
4409
|
}
|
|
4410
4410
|
function R(U) {
|
|
4411
|
-
o.value = U,
|
|
4411
|
+
o.value = U, we();
|
|
4412
4412
|
}
|
|
4413
4413
|
function ze() {
|
|
4414
|
-
p(),
|
|
4414
|
+
p(), w(), we();
|
|
4415
4415
|
}
|
|
4416
4416
|
return (U, _t) => (n(), N(a(le), {
|
|
4417
4417
|
locale: t.locale,
|
|
@@ -4420,7 +4420,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4420
4420
|
default: y(({ t: de }) => [
|
|
4421
4421
|
s("div", cs, [
|
|
4422
4422
|
a(d) ? (n(), g("div", ms, [
|
|
4423
|
-
|
|
4423
|
+
f(a(ie), {
|
|
4424
4424
|
error: a(l),
|
|
4425
4425
|
"use-retry": "",
|
|
4426
4426
|
onRetry: ze
|
|
@@ -4438,7 +4438,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4438
4438
|
])
|
|
4439
4439
|
])) : _("", !0),
|
|
4440
4440
|
a($) ? (n(), N(a(Oe), { key: 1 })) : (n(), g("div", hs, [
|
|
4441
|
-
|
|
4441
|
+
f(Te, {
|
|
4442
4442
|
title: de("report.points"),
|
|
4443
4443
|
list: S.value.rows,
|
|
4444
4444
|
"data-key": "points",
|
|
@@ -4447,7 +4447,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4447
4447
|
"team-resolver": J,
|
|
4448
4448
|
"stat-resolver": Q
|
|
4449
4449
|
}, null, 8, ["title", "list"]),
|
|
4450
|
-
|
|
4450
|
+
f(Te, {
|
|
4451
4451
|
title: de("report.goals"),
|
|
4452
4452
|
list: E.value.rows,
|
|
4453
4453
|
"data-key": "goals",
|
|
@@ -4456,7 +4456,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4456
4456
|
"team-resolver": J,
|
|
4457
4457
|
"stat-resolver": Q
|
|
4458
4458
|
}, null, 8, ["title", "list"]),
|
|
4459
|
-
|
|
4459
|
+
f(Te, {
|
|
4460
4460
|
title: de("report.assists"),
|
|
4461
4461
|
list: M.value.rows,
|
|
4462
4462
|
"data-key": "assists",
|
|
@@ -4465,7 +4465,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4465
4465
|
"team-resolver": J,
|
|
4466
4466
|
"stat-resolver": Q
|
|
4467
4467
|
}, null, 8, ["title", "list"]),
|
|
4468
|
-
|
|
4468
|
+
f(Te, {
|
|
4469
4469
|
title: de("report.goalies"),
|
|
4470
4470
|
list: ae.value.rows,
|
|
4471
4471
|
"data-key": "svsPercent",
|
|
@@ -4474,7 +4474,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4474
4474
|
"team-resolver": J,
|
|
4475
4475
|
"stat-resolver": Q
|
|
4476
4476
|
}, null, 8, ["title", "list"]),
|
|
4477
|
-
|
|
4477
|
+
f(Te, {
|
|
4478
4478
|
title: de("report.penalties"),
|
|
4479
4479
|
list: I.value.rows,
|
|
4480
4480
|
"data-key": "pim",
|
|
@@ -4483,7 +4483,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4483
4483
|
"team-resolver": J,
|
|
4484
4484
|
"stat-resolver": Q
|
|
4485
4485
|
}, null, 8, ["title", "list"]),
|
|
4486
|
-
|
|
4486
|
+
f(Te, {
|
|
4487
4487
|
title: "+/-",
|
|
4488
4488
|
list: D.value.rows,
|
|
4489
4489
|
"data-key": "plusMinus",
|
|
@@ -4499,25 +4499,25 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4499
4499
|
_: 1
|
|
4500
4500
|
}, 8, ["locale"]));
|
|
4501
4501
|
}
|
|
4502
|
-
}, gs = /* @__PURE__ */ me(us, [["styles", [ce, is, ns, ss, da]]]), bs = re(
|
|
4502
|
+
}, gs = /* @__PURE__ */ me(us, [["styles", [ce, is, ns, ss, da]]]), bs = re(wn), ws = re(Ii), fs = re(cl), ys = re(qi), xs = re(Qn), ks = re(Un), _s = re(Er), zs = re(fr), Ss = re(gs);
|
|
4503
4503
|
function Ts() {
|
|
4504
|
-
customElements.define("mjsz-vbr-statistics", bs), customElements.define("mjsz-vbr-schedule-liga",
|
|
4504
|
+
customElements.define("mjsz-vbr-statistics", bs), customElements.define("mjsz-vbr-schedule-liga", ws), customElements.define("mjsz-vbr-playoffs", fs), customElements.define("mjsz-vbr-standings-liga", ys), customElements.define("mjsz-vbr-teams-liga", xs), customElements.define("mjsz-vbr-players-liga", _s), customElements.define("mjsz-vbr-player-liga", zs), customElements.define("mjsz-vbr-team-liga", ks), customElements.define("mjsz-vbr-top-list-liga", Ss);
|
|
4505
4505
|
}
|
|
4506
4506
|
const Rs = {
|
|
4507
4507
|
install: () => Ts()
|
|
4508
4508
|
};
|
|
4509
4509
|
export {
|
|
4510
|
-
|
|
4510
|
+
fr as PlayerLiga,
|
|
4511
4511
|
zs as PlayerLigaCE,
|
|
4512
4512
|
Er as PlayersLiga,
|
|
4513
4513
|
_s as PlayersLigaCE,
|
|
4514
4514
|
cl as Playoffs,
|
|
4515
|
-
|
|
4515
|
+
fs as PlayoffsCE,
|
|
4516
4516
|
Ii as ScheduleLiga,
|
|
4517
|
-
|
|
4517
|
+
ws as ScheduleLigaCE,
|
|
4518
4518
|
qi as StandingsLiga,
|
|
4519
4519
|
ys as StandingsLigaCE,
|
|
4520
|
-
|
|
4520
|
+
wn as Statistics,
|
|
4521
4521
|
bs as StatisticsCE,
|
|
4522
4522
|
Un as TeamLiga,
|
|
4523
4523
|
ks as TeamLigaCE,
|