@mjsz-vbr-elements/liga 2.40.3 → 2.40.4
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 +1129 -1114
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,162 +1,162 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/liga
|
|
3
|
-
* version: v2.40.
|
|
3
|
+
* version: v2.40.4 - 07/01/2026, 21:27:58
|
|
4
4
|
* (c) 2026
|
|
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
|
|
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
|
|
10
|
-
import { useError as be, useServices as O, useI18n as q, useColumns as ee, usePage as jt, useSort as
|
|
11
|
-
import * as
|
|
12
|
-
import { WidgetError as Vt, InvalidSeasonName as
|
|
13
|
-
import { SORT_STATE_ASCEND as
|
|
14
|
-
import { COLUMNS_STANDINGS_P_3 as
|
|
8
|
+
import { computed as x, toValue as he, shallowRef as Qe, isRef as Ee, watch as ue, shallowReadonly as Ot, getCurrentScope as ga, onScopeDispose as ba, readonly as Gt, toRef as Dt, ref as j, customRef as wa, reactive as Z, getCurrentInstance as fa, nextTick as ya, unref as o, 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 u, createCommentVNode as _, normalizeClass as H, createElementVNode as s, setBlockTracking as St, Fragment as A, renderList as F, mergeProps as pt, toRefs as Mt, withDirectives as xa, vModelText as ka, toHandlers as _a, defineCustomElement as re } from "vue";
|
|
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 vt, FormField as X, Paginator as Kt, LoadingIndicator as Ge, BaseSelect as pe, TimezoneSelector as za, AdditionalStandingsText as Tt, StatisticsTable as Sa } from "@mjsz-vbr-elements/core/components";
|
|
10
|
+
import { useError as be, useServices as O, useI18n as q, useColumns as ee, usePage as jt, useSort as ht, useLazyLoadingState as ut, useErrorProvider as Bt, useScrollToGameDate as Ta, useVisibilityChange as Ia, fetchVBRData as Ke } from "@mjsz-vbr-elements/core/composables";
|
|
11
|
+
import * as it from "@mjsz-vbr-elements/core/utils";
|
|
12
|
+
import { WidgetError as Vt, InvalidSeasonName as qe, convertSeasons as Ut, head as Pe, selectLastSections as Pa, convertTeams as gt, removeUnneededPhases as $a, selectFirstPhaseName as Na, rawConvert as Xe, reverse as La, teamName as Yt, convertTimesMinToMinSec as Wt, sortGames as bt, teamResultType as Ht, gameResult as qt, teamOpponent as Jt, removeCurrentFromSeasonStats as Ca, transformCurrentSeasonStats as Ea, pick as ve, omit as $e, convert as Y, offsetName as wt, externalGameLinkResolver as Ze, format as Ne, yearToNow as Ra, isNotEmpty as Aa, flagResolver as Qt, transformPlayers as Oa, externalTeamLinkResolver as De, externalPlayerLinkResolver as et, getLocalTimezone as ft, sortBy as Xt, isBetween as Ga, last as Zt, scrollToTop as It, clone as Da, standingTableSort as Ma, prop as Fa, convertPhaseName as Ka, path as ja, playerName as Ba, convertTimesSecToMin as Va, convertAddress as Ua, map as Ya, gameDateTime as Wa, transformRosters as Ha, transformFieledPlayersStats as nt, mergePlayerStats as qa, isEmpty as Ja, externalStatisticLinkResolver as Qa } from "@mjsz-vbr-elements/core/utils";
|
|
13
|
+
import { SORT_STATE_ASCEND as Ce, DEFAULT_PORTRAIT_IMAGE_URL as Je, REFRESH_DELAY as Pt } from "@mjsz-vbr-elements/core/constants";
|
|
14
|
+
import { COLUMNS_STANDINGS_P_3 as Xa, COLUMNS_FIELD_PLAYERS as je, COLUMNS_FIELD_PLAYERS_PENALTY as Za, COLUMNS_FIELD_PLAYERS_TOI as eo, COLUMNS_GOALIES as $t, COLUMNS_TEAM_ATTENDANCE as to, COLUMNS_TEAMS_FAIRPLAY as ao, COLUMNS_TEAMS_PENALTY_KILLING as oo, COLUMNS_TEAMS_POWERPLAY as ro, COLUMNS_SCORING_EFFICIENCY as lo } from "@mjsz-vbr-elements/core/columns";
|
|
15
15
|
import { SORT_STATE_DESCEND as G } from "@mjsz-vbr-elements/core";
|
|
16
|
-
const
|
|
17
|
-
selection:
|
|
18
|
-
table:
|
|
19
|
-
report:
|
|
20
|
-
playoffs:
|
|
21
|
-
teams:
|
|
22
|
-
players:
|
|
23
|
-
standings:
|
|
24
|
-
nationality:
|
|
25
|
-
},
|
|
26
|
-
selection:
|
|
27
|
-
table:
|
|
28
|
-
report:
|
|
29
|
-
playoffs:
|
|
16
|
+
const io = { report: "Report", video: "Video", season: "Season", section: "Section", phases: "Phases", noPhases: "No Phases", teams: "Teams", filterName: "Filter by Name", players: "Players", month: "Month", homeOrAway: "Home or Away", home: "Home", away: "Away" }, no = { nationality: { short: "Nationality", tooltip: "Nationality" }, birthDate: { short: "Birth Date", tooltip: "Birth Date" }, birthPlace: { short: "Birth Place", tooltip: "Birth Place" }, season: { short: "Season", tooltip: "Season" }, pp: { short: "PP", tooltip: "powerplay" }, pk: { short: "PK", tooltip: "Penalty Killing" } }, so = { toi: "Time On Ice", points: "Points", goals: "Goals", assists: "Assists", penalties: "Penalties", goalies: "Goalies", goaliesLimit: "Goalies under 40%", teamAttendance: "Attendance", teamFairplay: "Fairplay", teamPenaltyKilling: "Penalty Killing", teamPowerplay: "Powerplay", teamScoringEfficiency: "Scoring Efficiency" }, co = { Negyeddöntő: "Quarterfinal", Elődöntő: "Semifinal", Döntő: "Final" }, mo = { tabs: { teamInfo: "Informations", games: "Games" }, goalies: "Goalies", defenders: "Defenders", forwards: "Forwards", fieldPlayers: "Field Players", games: "Games", teamInfo: "Organization Informations", roster: "Roster", playerStats: "Player Stats", info: { organizationName: "Organization name:", organizationCountry: "Organization country:", organizationEmail: "Organization e-mail:", organizationWebpage: "Organization homepage:", organizationPhoneNumber: "Organization phone number:", organizationAddresses: "Organization address:", organizationFoundingDate: "Organization founding year:" } }, po = { age: "{years} old", games: "Games", seasons: "Seasons" }, vo = { live: "Live", default: "Overall" }, ho = { hu: "Hungarian", ro: "Romanian", us: "American", il: "Izraelian", ca: "Canadian", lv: "Latvian", ee: "Estonian", ru: "Russian", fi: "Finnish", si: "Slovenian", sk: "Slovakian", nl: "Netherlands", by: "Belarusian", cz: "Czech", ua: "Ukrainian", lt: "Lithuanian", it: "Italian", "gb-eng": "English", rs: "Serbian", se: "Swedish", de: "German", gb: "British", kz: "Kazah", dk: "Danish", pl: "Polish", at: "Austrian", ch: "Swiss", fr: "French", es: "Spanish", hr: "Croatian", no: "Norwegian" }, ne = {
|
|
17
|
+
selection: io,
|
|
18
|
+
table: no,
|
|
19
|
+
report: so,
|
|
20
|
+
playoffs: co,
|
|
21
|
+
teams: mo,
|
|
22
|
+
players: po,
|
|
23
|
+
standings: vo,
|
|
24
|
+
nationality: ho
|
|
25
|
+
}, uo = { 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" }, go = { 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" } }, bo = { 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" }, wo = { Negyeddöntő: "Negyeddöntő", Elődöntő: "Elődöntő", Döntő: "Döntő" }, fo = { 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:" } }, yo = { age: "{years}es", games: "Mérkőzések", seasons: "Szezonok" }, xo = { live: "Élő", default: "Összesített" }, ko = { 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
|
+
selection: uo,
|
|
27
|
+
table: go,
|
|
28
|
+
report: bo,
|
|
29
|
+
playoffs: wo,
|
|
30
30
|
teams: fo,
|
|
31
|
-
players:
|
|
32
|
-
standings:
|
|
33
|
-
nationality:
|
|
31
|
+
players: yo,
|
|
32
|
+
standings: xo,
|
|
33
|
+
nationality: ko
|
|
34
34
|
};
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function Re(e) {
|
|
36
|
+
return ga() ? (ba(e), !0) : !1;
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const Ae = typeof window < "u" && typeof document < "u";
|
|
39
39
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
40
|
-
const
|
|
40
|
+
const _o = (e) => typeof e < "u", zo = Object.prototype.toString, So = (e) => zo.call(e) === "[object Object]", Le = () => {
|
|
41
41
|
};
|
|
42
|
-
function
|
|
42
|
+
function To(...e) {
|
|
43
43
|
if (e.length !== 1)
|
|
44
44
|
return Dt(...e);
|
|
45
45
|
const t = e[0];
|
|
46
|
-
return typeof t == "function" ? Gt(
|
|
46
|
+
return typeof t == "function" ? Gt(wa(() => ({ get: t, set: Le }))) : j(t);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
function i(...
|
|
48
|
+
function Io(e, t) {
|
|
49
|
+
function i(...a) {
|
|
50
50
|
return new Promise((r, l) => {
|
|
51
|
-
Promise.resolve(e(() => t.apply(this,
|
|
51
|
+
Promise.resolve(e(() => t.apply(this, a), { fn: t, thisArg: this, args: a })).then(r).catch(l);
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
return i;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
57
|
-
function
|
|
56
|
+
const ea = (e) => e();
|
|
57
|
+
function Po(e = ea, t = {}) {
|
|
58
58
|
const {
|
|
59
59
|
initialState: i = "active"
|
|
60
|
-
} = t,
|
|
60
|
+
} = t, a = To(i === "active");
|
|
61
61
|
function r() {
|
|
62
|
-
|
|
62
|
+
a.value = !1;
|
|
63
63
|
}
|
|
64
64
|
function l() {
|
|
65
|
-
|
|
65
|
+
a.value = !0;
|
|
66
66
|
}
|
|
67
|
-
const
|
|
68
|
-
|
|
67
|
+
const p = (...d) => {
|
|
68
|
+
a.value && e(...d);
|
|
69
69
|
};
|
|
70
|
-
return { isActive: Gt(
|
|
70
|
+
return { isActive: Gt(a), pause: r, resume: l, eventFilter: p };
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function st(e) {
|
|
73
73
|
return Array.isArray(e) ? e : [e];
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function $o(e, t, i = {}) {
|
|
76
76
|
const {
|
|
77
|
-
eventFilter:
|
|
77
|
+
eventFilter: a = ea,
|
|
78
78
|
...r
|
|
79
79
|
} = i;
|
|
80
80
|
return ue(
|
|
81
81
|
e,
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
Io(
|
|
83
|
+
a,
|
|
84
84
|
t
|
|
85
85
|
),
|
|
86
86
|
r
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function No(e, t, i = {}) {
|
|
90
90
|
const {
|
|
91
|
-
eventFilter:
|
|
91
|
+
eventFilter: a,
|
|
92
92
|
initialState: r = "active",
|
|
93
93
|
...l
|
|
94
|
-
} = i, { eventFilter:
|
|
95
|
-
return { stop:
|
|
94
|
+
} = i, { eventFilter: p, pause: d, resume: g, isActive: m } = Po(a, { initialState: r });
|
|
95
|
+
return { stop: $o(
|
|
96
96
|
e,
|
|
97
97
|
t,
|
|
98
98
|
{
|
|
99
99
|
...l,
|
|
100
|
-
eventFilter:
|
|
100
|
+
eventFilter: p
|
|
101
101
|
}
|
|
102
|
-
), pause:
|
|
102
|
+
), pause: d, resume: g, isActive: m };
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return x(() => he(e).some((i,
|
|
104
|
+
function Lo(e, t) {
|
|
105
|
+
return x(() => he(e).some((i, a, r) => t(he(i), a, r)));
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Co(e, t = 1e3, i = {}) {
|
|
108
108
|
const {
|
|
109
|
-
immediate:
|
|
109
|
+
immediate: a = !0,
|
|
110
110
|
immediateCallback: r = !1
|
|
111
111
|
} = i;
|
|
112
112
|
let l = null;
|
|
113
|
-
const
|
|
114
|
-
function
|
|
113
|
+
const p = Qe(!1);
|
|
114
|
+
function d() {
|
|
115
115
|
l && (clearInterval(l), l = null);
|
|
116
116
|
}
|
|
117
117
|
function g() {
|
|
118
|
-
|
|
118
|
+
p.value = !1, d();
|
|
119
119
|
}
|
|
120
120
|
function m() {
|
|
121
|
-
const
|
|
122
|
-
|
|
121
|
+
const b = he(t);
|
|
122
|
+
b <= 0 || (p.value = !0, r && e(), d(), p.value && (l = setInterval(e, b)));
|
|
123
123
|
}
|
|
124
|
-
if (
|
|
125
|
-
const
|
|
126
|
-
|
|
124
|
+
if (a && Ae && m(), Ee(t) || typeof t == "function") {
|
|
125
|
+
const b = ue(t, () => {
|
|
126
|
+
p.value && Ae && m();
|
|
127
127
|
});
|
|
128
|
-
|
|
128
|
+
Re(b);
|
|
129
129
|
}
|
|
130
|
-
return
|
|
131
|
-
isActive: Ot(
|
|
130
|
+
return Re(g), {
|
|
131
|
+
isActive: Ot(p),
|
|
132
132
|
pause: g,
|
|
133
133
|
resume: m
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ta(e, t, i = {}) {
|
|
137
137
|
const {
|
|
138
|
-
immediate:
|
|
138
|
+
immediate: a = !0,
|
|
139
139
|
immediateCallback: r = !1
|
|
140
140
|
} = i, l = Qe(!1);
|
|
141
|
-
let
|
|
142
|
-
function
|
|
143
|
-
|
|
141
|
+
let p;
|
|
142
|
+
function d() {
|
|
143
|
+
p && (clearTimeout(p), p = void 0);
|
|
144
144
|
}
|
|
145
145
|
function g() {
|
|
146
|
-
l.value = !1,
|
|
146
|
+
l.value = !1, d();
|
|
147
147
|
}
|
|
148
|
-
function m(...
|
|
149
|
-
r && e(),
|
|
150
|
-
l.value = !1,
|
|
148
|
+
function m(...b) {
|
|
149
|
+
r && e(), d(), l.value = !0, p = setTimeout(() => {
|
|
150
|
+
l.value = !1, p = void 0, e(...b);
|
|
151
151
|
}, he(t));
|
|
152
152
|
}
|
|
153
|
-
return
|
|
153
|
+
return a && (l.value = !0, Ae && m()), Re(g), {
|
|
154
154
|
isPending: Ot(l),
|
|
155
155
|
start: m,
|
|
156
156
|
stop: g
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Eo(e, t, i) {
|
|
160
160
|
return ue(
|
|
161
161
|
e,
|
|
162
162
|
t,
|
|
@@ -166,7 +166,7 @@ function Co(e, t, i) {
|
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Ro(e, t, i) {
|
|
170
170
|
return ue(
|
|
171
171
|
e,
|
|
172
172
|
t,
|
|
@@ -176,109 +176,109 @@ function Eo(e, t, i) {
|
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
179
|
+
const aa = Ae ? window : void 0;
|
|
180
|
+
function oa(e) {
|
|
181
181
|
var t;
|
|
182
182
|
const i = he(e);
|
|
183
183
|
return (t = i?.$el) != null ? t : i;
|
|
184
184
|
}
|
|
185
185
|
function Nt(...e) {
|
|
186
186
|
const t = [], i = () => {
|
|
187
|
-
t.forEach((
|
|
188
|
-
},
|
|
189
|
-
const
|
|
190
|
-
return
|
|
191
|
-
}), l =
|
|
187
|
+
t.forEach((d) => d()), t.length = 0;
|
|
188
|
+
}, a = (d, g, m, b) => (d.addEventListener(g, m, b), () => d.removeEventListener(g, m, b)), r = x(() => {
|
|
189
|
+
const d = st(he(e[0])).filter((g) => g != null);
|
|
190
|
+
return d.every((g) => typeof g != "string") ? d : void 0;
|
|
191
|
+
}), l = Eo(
|
|
192
192
|
() => {
|
|
193
|
-
var
|
|
193
|
+
var d, g;
|
|
194
194
|
return [
|
|
195
|
-
(g = (
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
(g = (d = r.value) == null ? void 0 : d.map((m) => oa(m))) != null ? g : [aa].filter((m) => m != null),
|
|
196
|
+
st(he(r.value ? e[1] : e[0])),
|
|
197
|
+
st(o(r.value ? e[2] : e[1])),
|
|
198
198
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
199
199
|
he(r.value ? e[3] : e[2])
|
|
200
200
|
];
|
|
201
201
|
},
|
|
202
|
-
([
|
|
203
|
-
if (i(), !
|
|
202
|
+
([d, g, m, b]) => {
|
|
203
|
+
if (i(), !d?.length || !g?.length || !m?.length)
|
|
204
204
|
return;
|
|
205
|
-
const
|
|
205
|
+
const w = So(b) ? { ...b } : b;
|
|
206
206
|
t.push(
|
|
207
|
-
...
|
|
207
|
+
...d.flatMap(
|
|
208
208
|
(h) => g.flatMap(
|
|
209
|
-
(c) => m.map((T) =>
|
|
209
|
+
(c) => m.map((T) => a(h, c, T, w))
|
|
210
210
|
)
|
|
211
211
|
)
|
|
212
212
|
);
|
|
213
213
|
},
|
|
214
214
|
{ flush: "post" }
|
|
215
|
-
),
|
|
215
|
+
), p = () => {
|
|
216
216
|
l(), i();
|
|
217
217
|
};
|
|
218
|
-
return
|
|
218
|
+
return Re(i), p;
|
|
219
219
|
}
|
|
220
220
|
function te(e, t) {
|
|
221
221
|
const {
|
|
222
222
|
interrupt: i = !0,
|
|
223
|
-
onError:
|
|
224
|
-
onFinished: r =
|
|
223
|
+
onError: a = Le,
|
|
224
|
+
onFinished: r = Le,
|
|
225
225
|
signal: l
|
|
226
|
-
} = t || {},
|
|
226
|
+
} = t || {}, p = {
|
|
227
227
|
aborted: "aborted",
|
|
228
228
|
fulfilled: "fulfilled",
|
|
229
229
|
pending: "pending",
|
|
230
230
|
rejected: "rejected"
|
|
231
|
-
},
|
|
231
|
+
}, d = Array.from(Array.from({ length: e.length }), () => ({ state: p.pending, data: null })), g = Z(d), m = Qe(-1);
|
|
232
232
|
if (!e || e.length === 0)
|
|
233
233
|
return r(), {
|
|
234
234
|
activeIndex: m,
|
|
235
235
|
result: g
|
|
236
236
|
};
|
|
237
|
-
function
|
|
238
|
-
m.value++, g[m.value].data = h, g[m.value].state =
|
|
237
|
+
function b(w, h) {
|
|
238
|
+
m.value++, g[m.value].data = h, g[m.value].state = w;
|
|
239
239
|
}
|
|
240
|
-
return e.reduce((
|
|
240
|
+
return e.reduce((w, h) => w.then((c) => {
|
|
241
241
|
var T;
|
|
242
242
|
if (l?.aborted) {
|
|
243
|
-
|
|
243
|
+
b(p.aborted, new Error("aborted"));
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
|
-
if (((T = g[m.value]) == null ? void 0 : T.state) ===
|
|
246
|
+
if (((T = g[m.value]) == null ? void 0 : T.state) === p.rejected && i) {
|
|
247
247
|
r();
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
const L = h(c).then((C) => (
|
|
251
|
-
return l ? Promise.race([L,
|
|
252
|
-
}).catch((c) => l?.aborted ? (
|
|
250
|
+
const L = h(c).then((C) => (b(p.fulfilled, C), m.value === e.length - 1 && r(), C));
|
|
251
|
+
return l ? Promise.race([L, Ao(l)]) : L;
|
|
252
|
+
}).catch((c) => l?.aborted ? (b(p.aborted, c), c) : (b(p.rejected, c), a(), c)), Promise.resolve()), {
|
|
253
253
|
activeIndex: m,
|
|
254
254
|
result: g
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Ao(e) {
|
|
258
258
|
return new Promise((t, i) => {
|
|
259
|
-
const
|
|
260
|
-
e.aborted ? i(
|
|
259
|
+
const a = new Error("aborted");
|
|
260
|
+
e.aborted ? i(a) : e.addEventListener("abort", () => i(a), { once: !0 });
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Oo(e) {
|
|
264
264
|
return JSON.parse(JSON.stringify(e));
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Go(e, t, i = {}) {
|
|
267
267
|
const {
|
|
268
|
-
immediate:
|
|
268
|
+
immediate: a = !0,
|
|
269
269
|
immediateCallback: r = !1
|
|
270
|
-
} = i, { start: l } =
|
|
271
|
-
async function
|
|
272
|
-
|
|
270
|
+
} = i, { start: l } = ta(d, t, { immediate: a }), p = Qe(!1);
|
|
271
|
+
async function d() {
|
|
272
|
+
p.value && (await e(), l());
|
|
273
273
|
}
|
|
274
274
|
function g() {
|
|
275
|
-
|
|
275
|
+
p.value || (p.value = !0, r && e(), l());
|
|
276
276
|
}
|
|
277
277
|
function m() {
|
|
278
|
-
|
|
278
|
+
p.value = !1;
|
|
279
279
|
}
|
|
280
|
-
return
|
|
281
|
-
isActive:
|
|
280
|
+
return a && Ae && g(), Re(m), {
|
|
281
|
+
isActive: p,
|
|
282
282
|
pause: m,
|
|
283
283
|
resume: g
|
|
284
284
|
};
|
|
@@ -286,36 +286,36 @@ function Oo(e, t, i = {}) {
|
|
|
286
286
|
function _e(e = "history", t = {}) {
|
|
287
287
|
const {
|
|
288
288
|
initialValue: i = {},
|
|
289
|
-
removeNullishValues:
|
|
289
|
+
removeNullishValues: a = !0,
|
|
290
290
|
removeFalsyValues: r = !1,
|
|
291
291
|
write: l = !0,
|
|
292
|
-
writeMode:
|
|
293
|
-
window:
|
|
292
|
+
writeMode: p = "replace",
|
|
293
|
+
window: d = aa,
|
|
294
294
|
stringify: g = ($) => $.toString()
|
|
295
295
|
} = t;
|
|
296
|
-
if (!
|
|
296
|
+
if (!d)
|
|
297
297
|
return Z(i);
|
|
298
298
|
const m = Z({});
|
|
299
|
-
function
|
|
299
|
+
function b() {
|
|
300
300
|
if (e === "history")
|
|
301
|
-
return
|
|
301
|
+
return d.location.search || "";
|
|
302
302
|
if (e === "hash") {
|
|
303
|
-
const $ =
|
|
303
|
+
const $ = d.location.hash || "", S = $.indexOf("?");
|
|
304
304
|
return S > 0 ? $.slice(S) : "";
|
|
305
305
|
} else
|
|
306
|
-
return (
|
|
306
|
+
return (d.location.hash || "").replace(/^#/, "");
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function w($) {
|
|
309
309
|
const S = g($);
|
|
310
310
|
if (e === "history")
|
|
311
|
-
return `${S ? `?${S}` : ""}${
|
|
311
|
+
return `${S ? `?${S}` : ""}${d.location.hash || ""}`;
|
|
312
312
|
if (e === "hash-params")
|
|
313
|
-
return `${
|
|
314
|
-
const E =
|
|
315
|
-
return M > 0 ? `${
|
|
313
|
+
return `${d.location.search || ""}${S ? `#${S}` : ""}`;
|
|
314
|
+
const E = d.location.hash || "#", M = E.indexOf("?");
|
|
315
|
+
return M > 0 ? `${d.location.search || ""}${E.slice(0, M)}${S ? `?${S}` : ""}` : `${d.location.search || ""}${E}${S ? `?${S}` : ""}`;
|
|
316
316
|
}
|
|
317
317
|
function h() {
|
|
318
|
-
return new URLSearchParams(
|
|
318
|
+
return new URLSearchParams(b());
|
|
319
319
|
}
|
|
320
320
|
function c($) {
|
|
321
321
|
const S = new Set(Object.keys(m));
|
|
@@ -325,49 +325,49 @@ function _e(e = "history", t = {}) {
|
|
|
325
325
|
}
|
|
326
326
|
Array.from(S).forEach((E) => delete m[E]);
|
|
327
327
|
}
|
|
328
|
-
const { pause: T, resume: L } =
|
|
328
|
+
const { pause: T, resume: L } = No(
|
|
329
329
|
m,
|
|
330
330
|
() => {
|
|
331
331
|
const $ = new URLSearchParams("");
|
|
332
332
|
Object.keys(m).forEach((S) => {
|
|
333
333
|
const E = m[S];
|
|
334
|
-
Array.isArray(E) ? E.forEach((M) => $.append(S, M)) :
|
|
334
|
+
Array.isArray(E) ? E.forEach((M) => $.append(S, M)) : a && E == null || r && !E ? $.delete(S) : $.set(S, E);
|
|
335
335
|
}), C($, !1);
|
|
336
336
|
},
|
|
337
337
|
{ deep: !0 }
|
|
338
338
|
);
|
|
339
339
|
function C($, S) {
|
|
340
|
-
T(), S && c($),
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
) :
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
340
|
+
T(), S && c($), p === "replace" ? d.history.replaceState(
|
|
341
|
+
d.history.state,
|
|
342
|
+
d.document.title,
|
|
343
|
+
d.location.pathname + w($)
|
|
344
|
+
) : d.history.pushState(
|
|
345
|
+
d.history.state,
|
|
346
|
+
d.document.title,
|
|
347
|
+
d.location.pathname + w($)
|
|
348
348
|
), L();
|
|
349
349
|
}
|
|
350
350
|
function P() {
|
|
351
351
|
l && C(h(), !0);
|
|
352
352
|
}
|
|
353
353
|
const z = { passive: !0 };
|
|
354
|
-
Nt(
|
|
354
|
+
Nt(d, "popstate", P, z), e !== "history" && Nt(d, "hashchange", P, z);
|
|
355
355
|
const k = h();
|
|
356
356
|
return k.keys().next().value ? c(k) : Object.assign(m, i), m;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
var r, l,
|
|
358
|
+
function Do(e, t, i, a = {}) {
|
|
359
|
+
var r, l, p;
|
|
360
360
|
const {
|
|
361
|
-
clone:
|
|
361
|
+
clone: d = !1,
|
|
362
362
|
passive: g = !1,
|
|
363
363
|
eventName: m,
|
|
364
|
-
deep:
|
|
365
|
-
defaultValue:
|
|
364
|
+
deep: b = !1,
|
|
365
|
+
defaultValue: w,
|
|
366
366
|
shouldEmit: h
|
|
367
|
-
} =
|
|
367
|
+
} = a, c = fa(), T = i || c?.emit || ((r = c?.$emit) == null ? void 0 : r.bind(c)) || ((p = (l = c?.proxy) == null ? void 0 : l.$emit) == null ? void 0 : p.bind(c?.proxy));
|
|
368
368
|
let L = m;
|
|
369
369
|
t || (t = "modelValue"), L = L || `update:${t.toString()}`;
|
|
370
|
-
const C = (k) =>
|
|
370
|
+
const C = (k) => d ? typeof d == "function" ? d(k) : Oo(k) : k, P = () => _o(e[t]) ? C(e[t]) : w, z = (k) => {
|
|
371
371
|
h ? h(k) && T(L, k) : T(L, k);
|
|
372
372
|
};
|
|
373
373
|
if (g) {
|
|
@@ -376,14 +376,14 @@ function Go(e, t, i, o = {}) {
|
|
|
376
376
|
return ue(
|
|
377
377
|
() => e[t],
|
|
378
378
|
(E) => {
|
|
379
|
-
S || (S = !0, $.value = C(E),
|
|
379
|
+
S || (S = !0, $.value = C(E), ya(() => S = !1));
|
|
380
380
|
}
|
|
381
381
|
), ue(
|
|
382
382
|
$,
|
|
383
383
|
(E) => {
|
|
384
|
-
!S && (E !== e[t] ||
|
|
384
|
+
!S && (E !== e[t] || b) && z(E);
|
|
385
385
|
},
|
|
386
|
-
{ deep:
|
|
386
|
+
{ deep: b }
|
|
387
387
|
), $;
|
|
388
388
|
} else
|
|
389
389
|
return x({
|
|
@@ -395,37 +395,37 @@ function Go(e, t, i, o = {}) {
|
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
const
|
|
398
|
+
function Mo(e, t, i = {}) {
|
|
399
|
+
const a = {};
|
|
400
400
|
for (const r in e)
|
|
401
|
-
|
|
401
|
+
a[r] = Do(
|
|
402
402
|
e,
|
|
403
403
|
r,
|
|
404
404
|
t,
|
|
405
405
|
i
|
|
406
406
|
);
|
|
407
|
-
return
|
|
407
|
+
return a;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function tt(e, t) {
|
|
410
410
|
if (e.length === 0)
|
|
411
|
-
throw new Vt(
|
|
411
|
+
throw new Vt(qe.message, qe.options);
|
|
412
412
|
t.seasons = Ut(e), t.championshipId || (t.championshipId = Pe(t.seasons).championshipId);
|
|
413
413
|
}
|
|
414
|
-
function Mo(e, t) {
|
|
415
|
-
t.sections = La(e), t.section = Ca(t.sections);
|
|
416
|
-
}
|
|
417
414
|
function Fo(e, t) {
|
|
418
|
-
t.sections =
|
|
415
|
+
t.sections = $a(e), t.section = Na(t.sections);
|
|
419
416
|
}
|
|
420
417
|
function Ko(e, t) {
|
|
421
|
-
t.
|
|
418
|
+
t.sections = [...e], t.section || (t.section = Pa(t.sections));
|
|
419
|
+
}
|
|
420
|
+
function jo(e, t) {
|
|
421
|
+
t.teams = gt(e);
|
|
422
422
|
}
|
|
423
|
-
const
|
|
423
|
+
const ra = {
|
|
424
424
|
jerseyNr: {
|
|
425
425
|
label: "table.jerseyNumber.short",
|
|
426
426
|
tooltip: "table.jerseyNumber.tooltip",
|
|
427
427
|
class: "font-bold",
|
|
428
|
-
sortOrders: [{ target: "jerseyNr", direction:
|
|
428
|
+
sortOrders: [{ target: "jerseyNr", direction: Ce }]
|
|
429
429
|
},
|
|
430
430
|
playerPortrait: {
|
|
431
431
|
label: "",
|
|
@@ -435,13 +435,13 @@ const ia = {
|
|
|
435
435
|
label: "table.name.short",
|
|
436
436
|
tooltip: "table.name.tooltip",
|
|
437
437
|
class: "text-start w-auto font-bold",
|
|
438
|
-
sortOrders: [{ target: "name", direction:
|
|
438
|
+
sortOrders: [{ target: "name", direction: Ce }]
|
|
439
439
|
},
|
|
440
440
|
teamName: {
|
|
441
441
|
label: "table.team.short",
|
|
442
442
|
tooltip: "table.team.tooltip",
|
|
443
443
|
class: "text-start w-auto font-bold",
|
|
444
|
-
sortOrders: [{ target: "teamName", direction:
|
|
444
|
+
sortOrders: [{ target: "teamName", direction: Ce }]
|
|
445
445
|
},
|
|
446
446
|
position: {
|
|
447
447
|
label: "table.position.short",
|
|
@@ -455,15 +455,15 @@ const ia = {
|
|
|
455
455
|
label: "table.birthDate.short",
|
|
456
456
|
tooltip: "table.birthDate.tooltip",
|
|
457
457
|
class: "text-end",
|
|
458
|
-
sortOrders: [{ target: "birthDate", direction:
|
|
458
|
+
sortOrders: [{ target: "birthDate", direction: Ce }]
|
|
459
459
|
},
|
|
460
460
|
birthPlace: {
|
|
461
461
|
label: "table.birthPlace.short",
|
|
462
462
|
tooltip: "table.birthPlace.tooltip",
|
|
463
463
|
class: "text-end",
|
|
464
|
-
sortOrders: [{ target: "birthPlace", direction:
|
|
464
|
+
sortOrders: [{ target: "birthPlace", direction: Ce }]
|
|
465
465
|
}
|
|
466
|
-
},
|
|
466
|
+
}, dt = {
|
|
467
467
|
gameDateDate: {
|
|
468
468
|
label: "table.gameDate.short",
|
|
469
469
|
tooltip: "table.gameDate.tooltip",
|
|
@@ -695,20 +695,19 @@ const ia = {
|
|
|
695
695
|
label: "table.pimPerGame.short",
|
|
696
696
|
tooltip: "table.pimPerGame.tooltip"
|
|
697
697
|
}
|
|
698
|
-
},
|
|
699
|
-
function
|
|
698
|
+
}, Be = "games", ct = "seasons";
|
|
699
|
+
function Bo(e) {
|
|
700
700
|
return {
|
|
701
701
|
...e,
|
|
702
702
|
name: e.player.nationality.includes("hu") ? `${e.player.lastName} ${e.player.firstName}` : `${e.player.firstName} ${e.player.lastName}`,
|
|
703
|
-
age: Ea(e.birthDate, t),
|
|
704
703
|
position: e.position.toUpperCase()
|
|
705
704
|
};
|
|
706
705
|
}
|
|
707
|
-
const
|
|
708
|
-
function
|
|
709
|
-
return Xe(
|
|
706
|
+
const Vo = (e) => Xe(La(e), Yt, Wt(["mip"]));
|
|
707
|
+
function Uo(e, t) {
|
|
708
|
+
return Xe(bt(e), Ht, qt(t.teamId), Jt);
|
|
710
709
|
}
|
|
711
|
-
const
|
|
710
|
+
const Yo = "/v2/player-season-stats", Wo = "/v2/goalie-season-stats", Ho = "/v2/player-games", qo = "/v2/goalie-games", Jo = {
|
|
712
711
|
__name: "DataProvider",
|
|
713
712
|
props: {
|
|
714
713
|
apiKey: {
|
|
@@ -729,58 +728,58 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
729
728
|
}
|
|
730
729
|
},
|
|
731
730
|
setup(e) {
|
|
732
|
-
const t = e, i =
|
|
733
|
-
playerId: Number(
|
|
734
|
-
championshipId: Number(
|
|
735
|
-
seasonApi:
|
|
736
|
-
gamesApi:
|
|
731
|
+
const t = e, i = _e("history"), a = Z({
|
|
732
|
+
playerId: Number(i.playerId) || Number(t.playerId),
|
|
733
|
+
championshipId: Number(i.championshipId) || Number(t.championshipId),
|
|
734
|
+
seasonApi: Yo,
|
|
735
|
+
gamesApi: Ho,
|
|
737
736
|
isGoalie: !1,
|
|
738
|
-
pane:
|
|
739
|
-
}), { onError:
|
|
737
|
+
pane: Be
|
|
738
|
+
}), { onError: r } = be(), { state: l, isLoading: p } = O({
|
|
740
739
|
options: {
|
|
741
740
|
path: "/v2/player-data",
|
|
742
741
|
apiKey: t.apiKey,
|
|
743
|
-
params: x(() => ({ championshipId:
|
|
742
|
+
params: x(() => ({ championshipId: a.championshipId, playerId: a.playerId })),
|
|
744
743
|
immediate: !0
|
|
745
744
|
},
|
|
746
|
-
transform: (S) =>
|
|
747
|
-
onError:
|
|
745
|
+
transform: (S) => Bo(S),
|
|
746
|
+
onError: r,
|
|
748
747
|
onSuccess: (S) => {
|
|
749
748
|
const { position: E } = S;
|
|
750
|
-
E.toLowerCase() === "gk" && (
|
|
749
|
+
E.toLowerCase() === "gk" && (a.seasonApi = Wo, a.gamesApi = qo, a.isGoalie = !0), k();
|
|
751
750
|
}
|
|
752
751
|
}), {
|
|
753
|
-
state:
|
|
754
|
-
isLoading:
|
|
755
|
-
execute:
|
|
752
|
+
state: d,
|
|
753
|
+
isLoading: g,
|
|
754
|
+
execute: m
|
|
756
755
|
} = O({
|
|
757
756
|
options: {
|
|
758
|
-
path: x(() =>
|
|
757
|
+
path: x(() => a.seasonApi),
|
|
759
758
|
apiKey: t.apiKey,
|
|
760
|
-
params: x(() => ({ playerId:
|
|
759
|
+
params: x(() => ({ playerId: a.playerId })),
|
|
761
760
|
immediate: !1
|
|
762
761
|
},
|
|
763
|
-
transform: (S) =>
|
|
764
|
-
onError:
|
|
762
|
+
transform: (S) => Vo(S),
|
|
763
|
+
onError: r
|
|
765
764
|
}), {
|
|
766
765
|
state: b,
|
|
767
|
-
isLoading:
|
|
768
|
-
execute:
|
|
766
|
+
isLoading: w,
|
|
767
|
+
execute: h
|
|
769
768
|
} = O({
|
|
770
769
|
options: {
|
|
771
|
-
path: x(() =>
|
|
770
|
+
path: x(() => a.gamesApi),
|
|
772
771
|
apiKey: t.apiKey,
|
|
773
|
-
params: x(() => ({ championshipId:
|
|
772
|
+
params: x(() => ({ championshipId: a.championshipId, playerId: a.playerId })),
|
|
774
773
|
immediate: !1
|
|
775
774
|
},
|
|
776
|
-
transform: (S) =>
|
|
777
|
-
onError:
|
|
778
|
-
}),
|
|
779
|
-
() =>
|
|
775
|
+
transform: (S) => Uo(S, a),
|
|
776
|
+
onError: r
|
|
777
|
+
}), c = x(
|
|
778
|
+
() => Ca(a.championshipId, d.value)
|
|
779
|
+
), T = x(
|
|
780
|
+
() => Ea(a.championshipId, d.value)
|
|
780
781
|
), L = x(
|
|
781
|
-
() =>
|
|
782
|
-
), C = x(
|
|
783
|
-
() => r.isGoalie ? ve(
|
|
782
|
+
() => a.isGoalie ? ve(
|
|
784
783
|
["teamName", "gkd", "gpi", "mipMin", "mipPercent", "ga", "gaa", "sog", "svs", "svsPercent"],
|
|
785
784
|
Ie
|
|
786
785
|
) : $e(
|
|
@@ -800,8 +799,8 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
800
799
|
],
|
|
801
800
|
Ie
|
|
802
801
|
)
|
|
803
|
-
),
|
|
804
|
-
() =>
|
|
802
|
+
), C = x(
|
|
803
|
+
() => a.isGoalie ? ve(
|
|
805
804
|
["season", "teamName", "gkd", "gpi", "mipMin", "ga", "gaa", "sog", "svs", "svsPercent"],
|
|
806
805
|
Ie
|
|
807
806
|
) : $e(
|
|
@@ -827,8 +826,8 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
827
826
|
],
|
|
828
827
|
Ie
|
|
829
828
|
)
|
|
830
|
-
),
|
|
831
|
-
() =>
|
|
829
|
+
), P = x(
|
|
830
|
+
() => a.isGoalie ? ve(
|
|
832
831
|
[
|
|
833
832
|
"gameDateDate",
|
|
834
833
|
"gameDateTime",
|
|
@@ -842,7 +841,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
842
841
|
"gaa",
|
|
843
842
|
"svsPercent"
|
|
844
843
|
],
|
|
845
|
-
|
|
844
|
+
dt
|
|
846
845
|
) : ve(
|
|
847
846
|
[
|
|
848
847
|
"gameDateDate",
|
|
@@ -860,40 +859,40 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
860
859
|
"shotPercent",
|
|
861
860
|
"pim"
|
|
862
861
|
],
|
|
863
|
-
|
|
862
|
+
dt
|
|
864
863
|
)
|
|
865
|
-
);
|
|
864
|
+
), z = x(() => Y(o(b)).schedule(null, t.locale).value());
|
|
866
865
|
function k() {
|
|
867
|
-
te([
|
|
866
|
+
te([m, h]);
|
|
868
867
|
}
|
|
869
868
|
function $(S) {
|
|
870
|
-
|
|
869
|
+
a.pane = S;
|
|
871
870
|
}
|
|
872
|
-
return (S, E) =>
|
|
873
|
-
pane:
|
|
874
|
-
isLoadingPlayerData:
|
|
875
|
-
isPlayerSeasonsLoading:
|
|
876
|
-
isGamesLoading:
|
|
877
|
-
playerData:
|
|
878
|
-
playerGames:
|
|
879
|
-
playerSeasonStats:
|
|
880
|
-
currentSeasonStats:
|
|
881
|
-
gameColumns:
|
|
882
|
-
currentSeasonColumns:
|
|
883
|
-
seasonColumns:
|
|
871
|
+
return (S, E) => fe(S.$slots, "default", ye(xe({
|
|
872
|
+
pane: a.pane,
|
|
873
|
+
isLoadingPlayerData: o(p),
|
|
874
|
+
isPlayerSeasonsLoading: o(g),
|
|
875
|
+
isGamesLoading: o(w),
|
|
876
|
+
playerData: o(l),
|
|
877
|
+
playerGames: z.value.rows,
|
|
878
|
+
playerSeasonStats: c.value,
|
|
879
|
+
currentSeasonStats: T.value,
|
|
880
|
+
gameColumns: P.value,
|
|
881
|
+
currentSeasonColumns: L.value,
|
|
882
|
+
seasonColumns: C.value,
|
|
884
883
|
onChangePane: $
|
|
885
884
|
})));
|
|
886
885
|
}
|
|
887
|
-
},
|
|
886
|
+
}, Qo = { class: "is-team-name-long" }, Xo = { class: "is-team-name-short" }, Zo = {
|
|
888
887
|
key: 0,
|
|
889
888
|
class: "text-highlighted"
|
|
890
|
-
},
|
|
889
|
+
}, er = ["href"], tr = {
|
|
891
890
|
key: 0,
|
|
892
891
|
class: "badge"
|
|
893
|
-
},
|
|
892
|
+
}, ar = {
|
|
894
893
|
key: 1,
|
|
895
894
|
class: "badge"
|
|
896
|
-
},
|
|
895
|
+
}, la = {
|
|
897
896
|
__name: "GamesDataTable",
|
|
898
897
|
props: {
|
|
899
898
|
columns: {
|
|
@@ -924,9 +923,9 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
924
923
|
},
|
|
925
924
|
setup(e) {
|
|
926
925
|
const { t } = q();
|
|
927
|
-
return (i,
|
|
926
|
+
return (i, a) => (n(), N(o(oe), null, {
|
|
928
927
|
default: y(() => [
|
|
929
|
-
|
|
928
|
+
f(o(ge), {
|
|
930
929
|
rows: e.rows,
|
|
931
930
|
columns: e.columns,
|
|
932
931
|
"is-loading": e.isLoading,
|
|
@@ -944,19 +943,19 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
944
943
|
}, v(r.resultType), 3)
|
|
945
944
|
]),
|
|
946
945
|
"cell-teamName": y(({ row: r }) => [
|
|
947
|
-
s("span",
|
|
948
|
-
s("span",
|
|
946
|
+
s("span", Qo, v(r.team?.longName), 1),
|
|
947
|
+
s("span", Xo, v(r.team?.shortName), 1)
|
|
949
948
|
]),
|
|
950
949
|
"cell-gameResult": y(({ row: r }) => [
|
|
951
|
-
r.gameStatus === 0 ? (n(), u("span",
|
|
950
|
+
r.gameStatus === 0 ? (n(), u("span", Zo, "-:-")) : (n(), u("a", {
|
|
952
951
|
key: 1,
|
|
953
952
|
href: e.gameResolver(r),
|
|
954
953
|
class: H({ "text-highlighted": r.gameStatus !== 1, "is-text-accent": r.gameStatus === 1 })
|
|
955
|
-
}, v(r.gameResult), 11,
|
|
954
|
+
}, v(r.gameResult), 11, er))
|
|
956
955
|
]),
|
|
957
956
|
"cell-gameResultType": y(({ row: r }) => [
|
|
958
|
-
r.isOvertime ? (n(), u("span",
|
|
959
|
-
r.isShootout ? (n(), u("span",
|
|
957
|
+
r.isOvertime ? (n(), u("span", tr, v(o(t)("common.overtimeShort")), 1)) : _("", !0),
|
|
958
|
+
r.isShootout ? (n(), u("span", ar, v(o(t)("common.shootoutShort")), 1)) : _("", !0)
|
|
960
959
|
]),
|
|
961
960
|
"cell-powerplay": y(({ row: r }) => [
|
|
962
961
|
V(v(r.adv) + " / " + v(r.ppgf), 1)
|
|
@@ -970,7 +969,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
970
969
|
_: 1
|
|
971
970
|
}));
|
|
972
971
|
}
|
|
973
|
-
},
|
|
972
|
+
}, or = {
|
|
974
973
|
__name: "Games",
|
|
975
974
|
props: {
|
|
976
975
|
columns: {
|
|
@@ -1003,22 +1002,19 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1003
1002
|
x(() => t.columns),
|
|
1004
1003
|
null,
|
|
1005
1004
|
x(() => ({ offsetName: wt(/* @__PURE__ */ new Date(), null, "hu") }))
|
|
1006
|
-
),
|
|
1007
|
-
return (r, l) => (n(), N(
|
|
1005
|
+
), a = (r) => Ze(t.gameResolver, r);
|
|
1006
|
+
return (r, l) => (n(), N(la, {
|
|
1008
1007
|
rows: e.rows,
|
|
1009
|
-
columns:
|
|
1008
|
+
columns: o(i),
|
|
1010
1009
|
"is-loading": e.isLoading,
|
|
1011
1010
|
"append-to": e.appendTo,
|
|
1012
|
-
"game-resolver":
|
|
1011
|
+
"game-resolver": a
|
|
1013
1012
|
}, null, 8, ["rows", "columns", "is-loading", "append-to"]));
|
|
1014
1013
|
}
|
|
1015
|
-
},
|
|
1014
|
+
}, rr = {
|
|
1016
1015
|
key: 0,
|
|
1017
|
-
|
|
1018
|
-
},
|
|
1019
|
-
class: "text-default",
|
|
1020
|
-
style: { display: "flex", "align-items": "center", "justify-content": "center" }
|
|
1021
|
-
}, ir = {
|
|
1016
|
+
class: "grid justify-center"
|
|
1017
|
+
}, lr = { class: "italic" }, ir = { class: "unordered-list centered" }, nr = {
|
|
1022
1018
|
__name: "PlayerInfo",
|
|
1023
1019
|
props: {
|
|
1024
1020
|
data: {
|
|
@@ -1028,48 +1024,63 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1028
1024
|
appendTo: {
|
|
1029
1025
|
type: [Object, String],
|
|
1030
1026
|
default: null
|
|
1027
|
+
},
|
|
1028
|
+
isBirthYearOnly: {
|
|
1029
|
+
type: Boolean,
|
|
1030
|
+
default: !1
|
|
1031
1031
|
}
|
|
1032
1032
|
},
|
|
1033
1033
|
setup(e) {
|
|
1034
|
-
const { t } = q();
|
|
1035
|
-
return (
|
|
1036
|
-
|
|
1034
|
+
const t = e, { locale: i, t: a } = q(), r = x(() => t.isBirthYearOnly ? Ne(t.data.birthDate, "YYYY") : Ne(t.data.birthDate, "LL", null, i.value)), l = x(() => Ra(t.data.birthDate, i.value));
|
|
1035
|
+
return (p, d) => o(Aa)(e.data) ? (n(), u("div", rr, [
|
|
1036
|
+
d[0] || (St(-1, !0), (d[0] = s("h2", null, [
|
|
1037
1037
|
V(v(e.data.name) + " ", 1),
|
|
1038
|
-
s("span",
|
|
1039
|
-
])).cacheIndex = 0, St(1),
|
|
1040
|
-
s("
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
key:
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
}, {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1038
|
+
s("span", lr, "#" + v(e.data.jerseyNr), 1)
|
|
1039
|
+
])).cacheIndex = 0, St(1), d[0]),
|
|
1040
|
+
s("ul", ir, [
|
|
1041
|
+
s("li", null, [
|
|
1042
|
+
V(v(r.value) + " ", 1),
|
|
1043
|
+
e.isBirthYearOnly ? _("", !0) : (n(), u(A, { key: 0 }, [
|
|
1044
|
+
V(" (" + v(o(a)("players.age", { years: l.value })) + ") ", 1)
|
|
1045
|
+
], 64))
|
|
1046
|
+
]),
|
|
1047
|
+
s("li", null, [
|
|
1048
|
+
(n(!0), u(A, null, F(e.data.player.nationality, (g) => (n(), u(A, { key: g }, [
|
|
1049
|
+
f(o(Ft), {
|
|
1050
|
+
placement: "top",
|
|
1051
|
+
content: o(a)(`nationality.${g}`),
|
|
1052
|
+
"append-to": e.appendTo
|
|
1053
|
+
}, {
|
|
1054
|
+
default: y(({ setRef: m, events: b }) => [
|
|
1055
|
+
s("span", pt({
|
|
1056
|
+
ref_for: !0,
|
|
1057
|
+
ref: m,
|
|
1058
|
+
class: "avatar"
|
|
1059
|
+
}, { ref_for: !0 }, b), [
|
|
1060
|
+
f(o(B), {
|
|
1061
|
+
src: o(Qt)(g)
|
|
1062
|
+
}, null, 8, ["src"])
|
|
1063
|
+
], 16)
|
|
1064
|
+
]),
|
|
1065
|
+
_: 2
|
|
1066
|
+
}, 1032, ["content", "append-to"]),
|
|
1067
|
+
V(" " + v(e.data.birthPlace), 1)
|
|
1068
|
+
], 64))), 128))
|
|
1069
|
+
]),
|
|
1070
|
+
s("li", null, v(e.data.position), 1),
|
|
1071
|
+
s("li", null, [
|
|
1072
|
+
(n(), N(o(B), {
|
|
1073
|
+
key: e.data.team?.id,
|
|
1074
|
+
class: "is-logo-image is-w-7",
|
|
1075
|
+
style: { width: "var(--size-24)" },
|
|
1076
|
+
src: e.data.team?.logo
|
|
1077
|
+
}, null, 8, ["src"])),
|
|
1078
|
+
V(" " + v(e.data.team?.longName), 1)
|
|
1079
|
+
])
|
|
1069
1080
|
])
|
|
1070
|
-
]));
|
|
1081
|
+
])) : _("", !0);
|
|
1071
1082
|
}
|
|
1072
|
-
},
|
|
1083
|
+
}, sr = {
|
|
1073
1084
|
__name: "Seasons",
|
|
1074
1085
|
props: {
|
|
1075
1086
|
columns: {
|
|
@@ -1091,18 +1102,18 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1091
1102
|
},
|
|
1092
1103
|
setup(e) {
|
|
1093
1104
|
const t = e, { columns: i } = ee(x(() => t.columns));
|
|
1094
|
-
return (
|
|
1105
|
+
return (a, r) => (n(), N(o(oe), null, {
|
|
1095
1106
|
default: y(() => [
|
|
1096
|
-
|
|
1107
|
+
f(o(ge), {
|
|
1097
1108
|
rows: e.rows,
|
|
1098
|
-
columns:
|
|
1109
|
+
columns: o(i),
|
|
1099
1110
|
"append-to": e.appendTo
|
|
1100
1111
|
}, null, 8, ["rows", "columns", "append-to"])
|
|
1101
1112
|
]),
|
|
1102
1113
|
_: 1
|
|
1103
1114
|
}));
|
|
1104
1115
|
}
|
|
1105
|
-
},
|
|
1116
|
+
}, cr = {
|
|
1106
1117
|
__name: "SeasonStats",
|
|
1107
1118
|
props: {
|
|
1108
1119
|
columns: {
|
|
@@ -1124,13 +1135,13 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1124
1135
|
},
|
|
1125
1136
|
setup(e) {
|
|
1126
1137
|
const t = e, { columns: i } = ee(x(() => t.columns));
|
|
1127
|
-
return (
|
|
1138
|
+
return (a, r) => (n(), u(A, null, [
|
|
1128
1139
|
s("h2", null, v(e.rows[0]?.season ?? ""), 1),
|
|
1129
|
-
|
|
1140
|
+
f(o(oe), { class: "mb-md" }, {
|
|
1130
1141
|
default: y(() => [
|
|
1131
|
-
|
|
1142
|
+
f(o(ge), {
|
|
1132
1143
|
rows: e.rows,
|
|
1133
|
-
columns:
|
|
1144
|
+
columns: o(i),
|
|
1134
1145
|
"is-loading": e.isLoading,
|
|
1135
1146
|
"append-to": e.appendTo
|
|
1136
1147
|
}, null, 8, ["rows", "columns", "is-loading", "append-to"])
|
|
@@ -1139,18 +1150,21 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1139
1150
|
})
|
|
1140
1151
|
], 64));
|
|
1141
1152
|
}
|
|
1142
|
-
}, ce = `@layer normalize,theme,components.variables,components,utils;:where(:host,:root){--mvw-color-white: #fff;--mvw-color-black: #000;--mvw-color-primary-0: #ffffff;--mvw-color-primary-50: #eceff1;--mvw-color-primary-100: #cfd8dc;--mvw-color-primary-200: #b0bec5;--mvw-color-primary-300: #90a4ae;--mvw-color-primary-400: #78909c;--mvw-color-primary-500: #607d8b;--mvw-color-primary-600: #546e7a;--mvw-color-primary-700: #455a64;--mvw-color-primary-800: #37474f;--mvw-color-primary-900: #263238;--mvw-color-primary-950: #182024}:where(:host,:root){--mvw-color-secondary-100: #dcedc8;--mvw-color-secondary-200: #badb94;--mvw-color-secondary-300: #aed581;--mvw-color-secondary-400: #9ccc65;--mvw-color-secondary-500: #8bc34a;--mvw-color-secondary-700: #689f38;--mvw-color-secondary-800: #558b2f;--mvw-color-secondary-900: #33691e;--mvw-color-secondary-950: #14290c}:where(:host){--radius-1: 2px;--radius-2: 5px;--radius-3: 16px;--radius-4: 32px;--radius-5: 64px;--radius-6: 96px}:where(:host){--font-size-50: .625rem;--font-size-100: .6875rem;--font-size-200: .75rem;--font-size-300: .8125rem;--font-size-400: .875rem;--font-size-500: 1rem;--font-size-600: 1.125rem;--font-size-700: 1.25rem;--font-size-800: 1.5rem;--font-size-900: 1.75rem;--font-size-950: 2rem;--font-lineheight-50: .95;--font-lineheight-100: 1;--font-lineheight-200: 1.1;--font-lineheight-300: 1.25;--font-lineheight-400: 1.375;--font-lineheight-500: 1.5;--font-lineheight-600: 1.75;--font-lineheight-700: 2}:where(:host){--size-1: 1px;--size-2: .125rem;--size-4: .25rem;--size-6: .375rem;--size-8: .5rem;--size-10: .625rem;--size-12: .75rem;--size-16: 1rem;--size-24: 1.5rem;--size-32: 2rem}:where(:host){--shadow-color: 220 3% 15%;--shadow-strength: 1%;--inner-shadow-highlight: inset 0 -.5px 0 0 #fff, inset 0 .5px 0 0 #0001;--shadow-3: 0 -1px 3px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)), 0 1px 2px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 2%)), 0 2px 5px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), 0 4px 12px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), 0 12px 15px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%));--shadow-6: 0 -1px 2px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)), 0 3px 2px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), 0 7px 5px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), 0 12px 10px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), 0 22px 18px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), 0 41px 33px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 6%)), 0 100px 80px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%))}@media (prefers-color-scheme: dark){:where(:host){--shadow-color: 220 40% 2%;--shadow-strength: 25%;--inner-shadow-highlight: inset 0 -.5px 0 0 #fff1, inset 0 .5px 0 0 #0007}}:where(:host){--ease-spring-1: linear( 0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1 )}@layer normalize{*,:before,:after{box-sizing:border-box}*{scrollbar-width:thin}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block}:where(img,svg,video){block-size:auto;max-inline-size:100%}:where(img){opacity:0;transition:opacity .5s ease-out}:where(img).is-loaded{opacity:1}:where(svg:not([width])){inline-size:var(--size-16)}:where(input,button,textarea),:where(input[type=file])::-webkit-file-upload-button{color:inherit;font-size:inherit;font:inherit;letter-spacing:inherit}:where(a[href],area,button,[role=button],input,label[for],select,summary,textarea,[tabindex]:not([tabindex*="-"])){-webkit-tap-highlight-color:transparent;touch-action:manipulation}:where(:not(fieldset,progress,meter)){background-origin:border-box;background-repeat:no-repeat;border-style:solid;border-width:0}:where(button){appearance:button;-webkit-appearance:button;background-color:transparent;background-image:none}:where(dd,pre){margin:0}:where(ul,li){margin:0;padding:0}:where(ol,ul){list-style:none}}@layer theme{[data-theme=light],:host-context(.light){color-scheme:only light}[data-theme=dark],:host-context(.dark){color-scheme:only dark}:root,:host{font-family:var(--mvw-font, inherit);--mvw-color-live: #8bc34a;--mvw-color-error: #fb2c36;--mvw-color-warning: #ffc107;--mvw-color-info: #2870ed;--mvw-color-team: #ff6129;--mvw-link-color: light-dark(var(--mvw-color-secondary-700), var(--mvw-color-secondary-400));--mvw-text-pale: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700));--mvw-text-faded: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-600));--mvw-text-dimmed: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-500));--mvw-text-muted: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-text-toned: light-dark(var(--mvw-color-primary-600), var(--mvw-color-primary-300));--mvw-text-default: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-200));--mvw-text-highlighted: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-text-inverted: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-bg-default: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-bg-muted: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-bg-elevated: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-800));--mvw-bg-accented: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-700));--mvw-bg-highlighted: var(--mvw-color-secondary-500);--mvw-bg-inverted: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-border-faded: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-800));--mvw-border-muted: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-700));--mvw-border-highlighted: var(--mvw-color-secondary-500)}}@layer components{:where(a[href]){--_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);color:var(--mvw-link-color);text-decoration:none}:where(a[href]):hover{color:light-dark(var(--_darken),var(--_lighten))}:where(a[target=_blank]){position:relative}:where(a[target=_blank]):hover:after{transition:all 1s cubic-bezier(.075,.82,.165,1);content:"";display:inline-block;margin-inline-start:var(--size-2);background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3C!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3C!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;inline-size:.8em;block-size:.8em}}@layer components{:where(.loading-indicator){padding:var(--size-16);font-weight:600;color:var(--mvw-loading-indicator-text-color, var(--mvw-text-toned));text-align:center}}@layer utils{.font-bold{font-weight:700}.italic{font-style:italic}.uppercase{text-transform:uppercase}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-start{text-align:start}.text-end{text-align:end}.text-center{text-align:center}.text-xs{font-size:var(--font-size-200)}.text-sm{font-size:var(--font-size-400)}.text-xl{font-size:var(--font-size-700)}.text-faded{color:var(--mvw-text-faded)}.text-dimmed{color:var(--mvw-text-dimmed)}.text-muted{color:var(--mvw-text-muted)}.text-toned{color:var(--mvw-text-toned)}.text-default{color:var(--mvw-text-default)}.text-highlighted{color:var(--mvw-text-highlighted)}.w-auto{width:auto}.mx-sm{margin-inline:var(--size-8)}.mb-sm{margin-block-end:var(--size-8)}.mb-md{margin-block-end:var(--size-16)}.mb-xl{margin-block-end:calc(var(--size-16) * 2)}.mt-md{margin-block-start:var(--size-16)}.mt-lg{margin-block-start:var(--size-24)}.mt-xl{margin-block-start:calc(var(--size-16) * 2)}.p-sm{padding-block:var(--size-8)}.py-md{padding-block:var(--size-16)}.flex{display:flex}.grid{display:grid}.block{display:block}.rounded{border-radius:1e5px}.sticky{position:sticky;top:var(--mvw-sticky-top-offset, 0);z-index:10}.blured-bg{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.grid-container{--min-width: 230px;--max-width: 1fr;--gap: var(--size-16);--align-items: center;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(var(--min-width),100%),var(--max-width)));align-items:var(--align-items);gap:var(--gap)}.flex-container{display:flex;flex-wrap:wrap;gap:var(--size-16)}.responsive-team-name{container-type:inline-size;container-name:team-name}.responsive-team-name>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.responsive-team-name>* .team-name-short{display:none}@container team-name (max-width: 200px){.responsive-team-name>* .team-name-long{display:none}.responsive-team-name>* .team-name-short{display:inline-block}}}`, De = "@layer components{:where(.table-responsive){container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}:where(.table-responsive) :where(table){width:100%}}", ot = '@layer components.variables{:where(:host){--mvw-table-header-font-size: var(--font-size-200);--mvw-table-default-column-width: 40px;--mvw-table-default-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-neutral-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-table-header-bg-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-header-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-800));--mvw-table-header-hover-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-hover-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-white));--mvw-table-hover-bg-color: light-dark(var(--mvw-color-secondary-100), var(--mvw-color-primary-950));--mvw-table-active-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-bg-color: light-dark(var(--mvw-color-secondary-200), var(--mvw-color-secondary-800));--mvw-table-active-even-bg-color: light-dark(var(--mvw-color-secondary-300), var(--mvw-color-secondary-700));--mvw-table-active-hover-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-hover-bg-color: light-dark(var(--mvw-color-secondary-400), var(--mvw-color-secondary-500));--mvw-table-portrait-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-table-portrait-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-stripped-bg-color: light-dark( hsl(from var(--mvw-color-primary-50) h s calc(l + 3) ), hsl(from var(--mvw-color-primary-900) h s calc(l + 2) ) );--mvw-table-label-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-table-label-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-cell-logo-size: 20px;--mvw-table-cell-portrait-size: 26px;--mvw-table-caption-color: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-600));--mvw-table-caption-font-size: var(--font-size-200)}}@layer components{:where(.table){border-collapse:collapse;max-inline-size:100%;position:relative;color:var(--mvw-table-color);background-color:var(--mvw-table-default-bg-color)}:where(.table) tr{background-color:var(--surface-default);border-top:1px solid var(--border-color)}:where(.table) tr:hover{background-color:oklch(from var(--surface-filled) l c h / 75%)}:where(.table) tr:nth-child(2n){background:var(--mvw-table-stripped-bg-color)}:where(.table) tr:nth-child(2n) td.is-active{background-color:var(--mvw-table-active-even-bg-color)}:where(.table) tr.is-highlighted{color:var(--mvw-color-error)}:where(.table) tr.is-optional{opacity:.5}:where(.table) :is(th,td){padding:var(--size-8);white-space:nowrap;text-align:center}:where(.table) th{background:var(--mvw-table-header-bg-color);color:var(--mvw-table-header-color);font-size:var(--mvw-table-header-font-size);font-weight:700;text-align:center;width:var(--mvw-table-default-column-width)}:where(.table) th:focus-visible,:where(.table) th:hover{background-color:var(--mvw-table-header-hover-bg-color);outline:none}:where(.table) th.is-sortable{position:relative;cursor:pointer}:where(.table) th.is-sortable .is-icon-sort{opacity:.5}:where(.table) th.is-active{background-color:var(--mvw-table-header-active-bg-color);color:var(--mvw-table-header-active-color)}:where(.table) th.is-active .is-icon-sort{opacity:1}:where(.table) th.is-has-image,:where(.table) th.has-avatar{width:0}:where(.table) th .is-icon-sort{display:inline-block;width:var(--size-12);height:var(--size-12);margin-inline-start:var(--size-4)}:where(.table) td.is-active{font-weight:700;color:var(--mvw-table-active-color);background:var(--mvw-table-active-bg-color)}:where(.table) td.has-avatar .avatar{--_width: var(--mvw-table-cell-portrait-size)}:where(.table) td[data-value="0"],:where(.table) td.is-zero{color:var(--mvw-text-faded)}:where(.table) td.is-possible-empty:empty:before{content:"0";color:var(--mvw-text-faded)}:where(.table) td.is-horizontal-content{display:inline-flex;align-items:center}:where(.table) td a[target=_blank]:after{content:"";position:absolute;left:100%;top:calc(50% - .4em)}:where(.table) td .is-logo-image{display:inline-block;vertical-align:middle;width:var(--mvw-table-cell-logo-size);height:var(--mvw-table-cell-logo-size);max-inline-size:fit-content}:where(.table) td .is-duplicated{color:var(--mvw-table-neutral-color)}:where(.table) td .is-team-name-long{display:inline-block}:where(.table) td .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){:where(.table) td .is-team-name-long{display:none}:where(.table) td .is-team-name-short{display:inline-block}}:where(.table) caption{caption-side:bottom;color:var(--mvw-table-caption-color);font-size:var(--mvw-table-caption-font-size, .75rem);padding:var(--size-12) 0;text-align:start}:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover{color:var(--mvw-table-hover-color);background-color:var(--mvw-table-hover-bg-color)}:is(:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover) td.is-active{color:var(--mvw-table-active-hover-color);background-color:var(--mvw-table-active-hover-bg-color)}}', rt = "@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)}}", Me = "@layer components.variables{:where(:host){--mvw-tooltip-font-size: var(--font-size-200);--mvw-tooltip-color: light-dark(white, black);--mvw-tooltip-bg-color: light-dark(black, white);--mvw-floating-content-bg-color: light-dark(white, var(--mvw-color-primary-800))}}@layer components{:where(.floating-content).is-tooltip{background-color:var(--mvw-tooltip-bg-color);color:var(--mvw-tooltip-color);font-weight:700;padding:var(--size-4) var(--size-8);border-radius:var(--radius-2);font-size:var(--mvw-tooltip-font-size);white-space:nowrap;pointer-events:none}:where(.floating-content).is-tooltip .is-arrow{background-color:var(--mvw-tooltip-bg-color)}:where(.floating-content).is-content{background-color:var(--mvw-floating-content-bg-color);border-radius:var(--radius-2);box-shadow:var(--shadow-6)}:where(.floating-content).is-content .is-arrow{background-color:var(--mvw-floating-content-bg-color)}:where(.floating-content) .is-arrow{width:8px;height:8px;transform:rotate(45deg)}[data-placement^=top] :is(:where(.floating-content) .is-arrow){bottom:-4px;clip-path:polygon(80% 0,100% 0,100% 100%,0 100%,0 80%)}[data-placement^=bottom] :is(:where(.floating-content) .is-arrow){top:-4px;clip-path:polygon(100% 0,0 0,0 100%)}[data-placement^=left] :is(:where(.floating-content) .is-arrow){right:-4px;clip-path:polygon(100% 0,0 0,100% 100%)}[data-placement^=right] :is(:where(.floating-content) .is-arrow){left:-4px;clip-path:polygon(100% 0,0 0,0 100%)}.transition-fade-enter-active,.transition-fade-leave-active{transition:all .7s var(--ease-spring-1)}.transition-fade-enter-from,.transition-fade-leave-to{opacity:0;transform:translateY(5px)}}", lt = "@layer components.variables{:where(:host){--mvw-avatar-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700))}}@layer components{:where(.avatar){--_width: 20px;display:inline-flex;vertical-align:middle;aspect-ratio:1;inline-size:var(--_width);justify-content:center;overflow:clip;position:relative;border-radius:100%;border:1px solid var(--mvw-avatar-border-color)}:where(.avatar) img{block-size:100%;inline-size:100%;inset:0;object-fit:cover;position:absolute}}", it = "@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}}", yt = "@layer components{:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){color:var(--mvw-text-highlighted);font-weight:700;text-wrap:pretty}:where(h1,.h1){font-size:var(--font-size-h1, var(--font-size-700));letter-spacing:-.02em;line-height:1.15}:where(h2,.h2){font-size:var(--font-size-h2, var(--font-size-5, 2rem));letter-spacing:-.02em;line-height:1.2}:where(h3,.h3){font-size:var(--font-size-h3, var(--font-size-4, 1.5rem));letter-spacing:-.01em;line-height:1.167}:where(h4,.h4){font-size:var(--font-size-h4, var(--font-size-3, 1.25rem));letter-spacing:-.01em;line-height:1.235}:where(h5,.h5){font-size:var(--font-size-h5, var(--font-size-2, 1.1rem));line-height:1.334}:where(h6,.h6){font-size:var(--font-size-h6, var(--font-size-500, 1rem));line-height:1}}", xt = "@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)}}", sa = "@layer components{:where(.hero){--overlay-size: var(--mvw-hero-overlay-size, 160px);--overlay-radius: 50%;display:grid;grid-template-columns:1fr var(--overlay-size) 1fr;grid-template-rows:1fr 1fr 1fr calc(var(--overlay-size) / 2) calc(var(--overlay-size) / 2);margin-left:var(--mvw-main-image-wrapper-horizontal-margin);margin-right:var(--mvw-main-image-wrapper-horizontal-margin)}:where(.hero):has(img.is-default){min-height:470px}:where(.hero) .is-main-image{grid-column:1/4;grid-row:1/5;display:flex;justify-content:center;align-items:center;background-color:light-dark(var(--mvw-color-primary-50),var(--mvw-color-primary-900));box-shadow:0 2px 4px #0003}:where(.hero) .is-main-image .is-default{filter:grayscale(1);opacity:.3;mix-blend-mode:multiply}:where(.hero) .is-main-image img:not(.is-default){width:100%}:where(.hero) .is-ovarlay-image{grid-row:4/-1;grid-column:2;justify-self:center;overflow:hidden;border-radius:var(--overlay-radius);z-index:1}:where(.hero) .is-ovarlay-image img{width:100%;aspect-ratio:1}}", me = (e, t) => {
|
|
1153
|
+
}, ce = `@layer normalize,theme,components.variables,components,utils;:where(:host,:root){--mvw-color-white: #fff;--mvw-color-black: #000;--mvw-color-primary-0: #ffffff;--mvw-color-primary-50: #eceff1;--mvw-color-primary-100: #cfd8dc;--mvw-color-primary-200: #b0bec5;--mvw-color-primary-300: #90a4ae;--mvw-color-primary-400: #78909c;--mvw-color-primary-500: #607d8b;--mvw-color-primary-600: #546e7a;--mvw-color-primary-700: #455a64;--mvw-color-primary-800: #37474f;--mvw-color-primary-900: #263238;--mvw-color-primary-950: #182024}:where(:host,:root){--mvw-color-secondary-100: #dcedc8;--mvw-color-secondary-200: #badb94;--mvw-color-secondary-300: #aed581;--mvw-color-secondary-400: #9ccc65;--mvw-color-secondary-500: #8bc34a;--mvw-color-secondary-700: #689f38;--mvw-color-secondary-800: #558b2f;--mvw-color-secondary-900: #33691e;--mvw-color-secondary-950: #14290c}:where(:host){--radius-1: 2px;--radius-2: 5px;--radius-3: 16px;--radius-4: 32px;--radius-5: 64px;--radius-6: 96px}:where(:host){--font-size-50: .625rem;--font-size-100: .6875rem;--font-size-200: .75rem;--font-size-300: .8125rem;--font-size-400: .875rem;--font-size-500: 1rem;--font-size-600: 1.125rem;--font-size-700: 1.25rem;--font-size-800: 1.5rem;--font-size-900: 1.75rem;--font-size-950: 2rem;--font-lineheight-50: .95;--font-lineheight-100: 1;--font-lineheight-200: 1.1;--font-lineheight-300: 1.25;--font-lineheight-400: 1.375;--font-lineheight-500: 1.5;--font-lineheight-600: 1.75;--font-lineheight-700: 2}:where(:host){--size-1: 1px;--size-2: .125rem;--size-4: .25rem;--size-6: .375rem;--size-8: .5rem;--size-10: .625rem;--size-12: .75rem;--size-16: 1rem;--size-24: 1.5rem;--size-32: 2rem}:where(:host){--shadow-color: 220 3% 15%;--shadow-strength: 1%;--inner-shadow-highlight: inset 0 -.5px 0 0 #fff, inset 0 .5px 0 0 #0001;--shadow-3: 0 -1px 3px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)), 0 1px 2px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 2%)), 0 2px 5px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), 0 4px 12px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), 0 12px 15px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%));--shadow-6: 0 -1px 2px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)), 0 3px 2px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), 0 7px 5px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), 0 12px 10px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), 0 22px 18px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), 0 41px 33px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 6%)), 0 100px 80px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%))}@media (prefers-color-scheme: dark){:where(:host){--shadow-color: 220 40% 2%;--shadow-strength: 25%;--inner-shadow-highlight: inset 0 -.5px 0 0 #fff1, inset 0 .5px 0 0 #0007}}:where(:host){--ease-spring-1: linear( 0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1 )}@layer normalize{*,:before,:after{box-sizing:border-box}*{scrollbar-width:thin}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block}:where(img,svg,video){block-size:auto;max-inline-size:100%}:where(img){opacity:0;transition:opacity .5s ease-out}:where(img).is-loaded{opacity:1}:where(svg:not([width])){inline-size:var(--size-16)}:where(input,button,textarea),:where(input[type=file])::-webkit-file-upload-button{color:inherit;font-size:inherit;font:inherit;letter-spacing:inherit}:where(a[href],area,button,[role=button],input,label[for],select,summary,textarea,[tabindex]:not([tabindex*="-"])){-webkit-tap-highlight-color:transparent;touch-action:manipulation}:where(:not(fieldset,progress,meter)){background-origin:border-box;background-repeat:no-repeat;border-style:solid;border-width:0}:where(button){appearance:button;-webkit-appearance:button;background-color:transparent;background-image:none}:where(dd,pre){margin:0}:where(ul,li){margin:0;padding:0}:where(ol,ul){list-style:none}}@layer theme{[data-theme=light],:host-context(.light){color-scheme:only light}[data-theme=dark],:host-context(.dark){color-scheme:only dark}:root,:host{font-family:var(--mvw-font, inherit);--mvw-color-live: #8bc34a;--mvw-color-error: #fb2c36;--mvw-color-warning: #ffc107;--mvw-color-info: #2870ed;--mvw-color-team: #ff6129;--mvw-link-color: light-dark(var(--mvw-color-secondary-700), var(--mvw-color-secondary-400));--mvw-text-pale: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700));--mvw-text-faded: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-600));--mvw-text-dimmed: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-500));--mvw-text-muted: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-text-toned: light-dark(var(--mvw-color-primary-600), var(--mvw-color-primary-300));--mvw-text-default: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-200));--mvw-text-highlighted: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-text-inverted: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-bg-default: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-bg-muted: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-bg-elevated: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-800));--mvw-bg-accented: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-700));--mvw-bg-highlighted: var(--mvw-color-secondary-500);--mvw-bg-inverted: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-border-faded: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-800));--mvw-border-muted: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-700));--mvw-border-highlighted: var(--mvw-color-secondary-500)}}@layer components{:where(a[href]){--_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);color:var(--mvw-link-color);text-decoration:none}:where(a[href]):hover{color:light-dark(var(--_darken),var(--_lighten))}:where(a[target=_blank]){position:relative}:where(a[target=_blank]):hover:after{transition:all 1s cubic-bezier(.075,.82,.165,1);content:"";display:inline-block;margin-inline-start:var(--size-2);background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3C!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3C!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;inline-size:.8em;block-size:.8em}}@layer components{:where(.loading-indicator){padding:var(--size-16);font-weight:600;color:var(--mvw-loading-indicator-text-color, var(--mvw-text-toned));text-align:center}}@layer utils{.font-bold{font-weight:700}.italic{font-style:italic}.uppercase{text-transform:uppercase}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-start{text-align:start}.text-end{text-align:end}.text-center{text-align:center}.text-xs{font-size:var(--font-size-200)}.text-sm{font-size:var(--font-size-400)}.text-xl{font-size:var(--font-size-700)}.text-faded{color:var(--mvw-text-faded)}.text-dimmed{color:var(--mvw-text-dimmed)}.text-muted{color:var(--mvw-text-muted)}.text-toned{color:var(--mvw-text-toned)}.text-default{color:var(--mvw-text-default)}.text-highlighted{color:var(--mvw-text-highlighted)}.w-auto{width:auto}.mx-sm{margin-inline:var(--size-8)}.mb-sm{margin-block-end:var(--size-8)}.mb-md{margin-block-end:var(--size-16)}.mb-xl{margin-block-end:calc(var(--size-16) * 2)}.mt-md{margin-block-start:var(--size-16)}.mt-lg{margin-block-start:var(--size-24)}.mt-xl{margin-block-start:calc(var(--size-16) * 2)}.p-sm{padding-block:var(--size-8)}.py-md{padding-block:var(--size-16)}.flex{display:flex}.grid{display:grid}.block{display:block}.rounded{border-radius:1e5px}.sticky{position:sticky;top:var(--mvw-sticky-top-offset, 0);z-index:10}.blured-bg{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.justify-center{justify-items:center}.grid-container{--min-width: 230px;--max-width: 1fr;--gap: var(--size-16);--align-items: center;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(var(--min-width),100%),var(--max-width)));align-items:var(--align-items);gap:var(--gap)}.flex-container{display:flex;flex-wrap:wrap;gap:var(--size-16)}.responsive-team-name{container-type:inline-size;container-name:team-name}.responsive-team-name>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.responsive-team-name>* .team-name-short{display:none}@container team-name (max-width: 200px){.responsive-team-name>* .team-name-long{display:none}.responsive-team-name>* .team-name-short{display:inline-block}}}`, Me = "@layer components{:where(.table-responsive){container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}:where(.table-responsive) :where(table){width:100%}}", at = '@layer components.variables{:where(:host){--mvw-table-header-font-size: var(--font-size-200);--mvw-table-default-column-width: 40px;--mvw-table-default-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-neutral-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-table-header-bg-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-header-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-800));--mvw-table-header-hover-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-hover-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-white));--mvw-table-hover-bg-color: light-dark(var(--mvw-color-secondary-100), var(--mvw-color-primary-950));--mvw-table-active-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-bg-color: light-dark(var(--mvw-color-secondary-200), var(--mvw-color-secondary-800));--mvw-table-active-even-bg-color: light-dark(var(--mvw-color-secondary-300), var(--mvw-color-secondary-700));--mvw-table-active-hover-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-hover-bg-color: light-dark(var(--mvw-color-secondary-400), var(--mvw-color-secondary-500));--mvw-table-portrait-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-table-portrait-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-stripped-bg-color: light-dark( hsl(from var(--mvw-color-primary-50) h s calc(l + 3) ), hsl(from var(--mvw-color-primary-900) h s calc(l + 2) ) );--mvw-table-label-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-table-label-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-cell-logo-size: 20px;--mvw-table-cell-portrait-size: 26px;--mvw-table-caption-color: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-600));--mvw-table-caption-font-size: var(--font-size-200)}}@layer components{:where(.table){border-collapse:collapse;max-inline-size:100%;position:relative;color:var(--mvw-table-color);background-color:var(--mvw-table-default-bg-color)}:where(.table) tr{background-color:var(--surface-default);border-top:1px solid var(--border-color)}:where(.table) tr:hover{background-color:oklch(from var(--surface-filled) l c h / 75%)}:where(.table) tr:nth-child(2n){background:var(--mvw-table-stripped-bg-color)}:where(.table) tr:nth-child(2n) td.is-active{background-color:var(--mvw-table-active-even-bg-color)}:where(.table) tr.is-highlighted{color:var(--mvw-color-error)}:where(.table) tr.is-optional{opacity:.5}:where(.table) :is(th,td){padding:var(--size-8);white-space:nowrap;text-align:center}:where(.table) th{background:var(--mvw-table-header-bg-color);color:var(--mvw-table-header-color);font-size:var(--mvw-table-header-font-size);font-weight:700;text-align:center;width:var(--mvw-table-default-column-width)}:where(.table) th:focus-visible,:where(.table) th:hover{background-color:var(--mvw-table-header-hover-bg-color);outline:none}:where(.table) th.is-sortable{position:relative;cursor:pointer}:where(.table) th.is-sortable .is-icon-sort{opacity:.5}:where(.table) th.is-active{background-color:var(--mvw-table-header-active-bg-color);color:var(--mvw-table-header-active-color)}:where(.table) th.is-active .is-icon-sort{opacity:1}:where(.table) th.is-has-image,:where(.table) th.has-avatar{width:0}:where(.table) th .is-icon-sort{display:inline-block;width:var(--size-12);height:var(--size-12);margin-inline-start:var(--size-4)}:where(.table) td.is-active{font-weight:700;color:var(--mvw-table-active-color);background:var(--mvw-table-active-bg-color)}:where(.table) td.has-avatar .avatar{--_width: var(--mvw-table-cell-portrait-size)}:where(.table) td[data-value="0"],:where(.table) td.is-zero{color:var(--mvw-text-faded)}:where(.table) td.is-possible-empty:empty:before{content:"0";color:var(--mvw-text-faded)}:where(.table) td.is-horizontal-content{display:inline-flex;align-items:center}:where(.table) td a[target=_blank]:after{content:"";position:absolute;left:100%;top:calc(50% - .4em)}:where(.table) td .is-logo-image{display:inline-block;vertical-align:middle;width:var(--mvw-table-cell-logo-size);height:var(--mvw-table-cell-logo-size);max-inline-size:fit-content}:where(.table) td .is-duplicated{color:var(--mvw-table-neutral-color)}:where(.table) td .is-team-name-long{display:inline-block}:where(.table) td .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){:where(.table) td .is-team-name-long{display:none}:where(.table) td .is-team-name-short{display:inline-block}}:where(.table) caption{caption-side:bottom;color:var(--mvw-table-caption-color);font-size:var(--mvw-table-caption-font-size, .75rem);padding:var(--size-12) 0;text-align:start}:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover{color:var(--mvw-table-hover-color);background-color:var(--mvw-table-hover-bg-color)}:is(:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover) td.is-active{color:var(--mvw-table-active-hover-color);background-color:var(--mvw-table-active-hover-bg-color)}}', ot = "@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)}}", Fe = "@layer components.variables{:where(:host){--mvw-tooltip-font-size: var(--font-size-200);--mvw-tooltip-color: light-dark(white, black);--mvw-tooltip-bg-color: light-dark(black, white);--mvw-floating-content-bg-color: light-dark(white, var(--mvw-color-primary-800))}}@layer components{:where(.floating-content).is-tooltip{background-color:var(--mvw-tooltip-bg-color);color:var(--mvw-tooltip-color);font-weight:700;padding:var(--size-4) var(--size-8);border-radius:var(--radius-2);font-size:var(--mvw-tooltip-font-size);white-space:nowrap;pointer-events:none}:where(.floating-content).is-tooltip .is-arrow{background-color:var(--mvw-tooltip-bg-color)}:where(.floating-content).is-content{background-color:var(--mvw-floating-content-bg-color);border-radius:var(--radius-2);box-shadow:var(--shadow-6)}:where(.floating-content).is-content .is-arrow{background-color:var(--mvw-floating-content-bg-color)}:where(.floating-content) .is-arrow{width:8px;height:8px;transform:rotate(45deg)}[data-placement^=top] :is(:where(.floating-content) .is-arrow){bottom:-4px;clip-path:polygon(80% 0,100% 0,100% 100%,0 100%,0 80%)}[data-placement^=bottom] :is(:where(.floating-content) .is-arrow){top:-4px;clip-path:polygon(100% 0,0 0,0 100%)}[data-placement^=left] :is(:where(.floating-content) .is-arrow){right:-4px;clip-path:polygon(100% 0,0 0,100% 100%)}[data-placement^=right] :is(:where(.floating-content) .is-arrow){left:-4px;clip-path:polygon(100% 0,0 0,0 100%)}.transition-fade-enter-active,.transition-fade-leave-active{transition:all .7s var(--ease-spring-1)}.transition-fade-enter-from,.transition-fade-leave-to{opacity:0;transform:translateY(5px)}}", rt = "@layer components.variables{:where(:host){--mvw-avatar-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700))}}@layer components{:where(.avatar){--_width: 20px;display:inline-flex;vertical-align:middle;aspect-ratio:1;inline-size:var(--_width);justify-content:center;overflow:clip;position:relative;border-radius:100%;border:1px solid var(--mvw-avatar-border-color)}:where(.avatar) img{block-size:100%;inline-size:100%;inset:0;object-fit:cover;position:absolute}}", lt = "@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}}", yt = "@layer components{:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){color:var(--mvw-text-highlighted);font-weight:700;text-wrap:pretty}:where(h1,.h1){font-size:var(--font-size-h1, var(--font-size-700));letter-spacing:-.02em;line-height:1.15}:where(h2,.h2){font-size:var(--font-size-h2, var(--font-size-5, 2rem));letter-spacing:-.02em;line-height:1.2}:where(h3,.h3){font-size:var(--font-size-h3, var(--font-size-4, 1.5rem));letter-spacing:-.01em;line-height:1.167}:where(h4,.h4){font-size:var(--font-size-h4, var(--font-size-3, 1.25rem));letter-spacing:-.01em;line-height:1.235}:where(h5,.h5){font-size:var(--font-size-h5, var(--font-size-2, 1.1rem));line-height:1.334}:where(h6,.h6){font-size:var(--font-size-h6, var(--font-size-500, 1rem));line-height:1}}", xt = "@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)}}", ia = "@layer components{:where(.hero){--overlay-size: var(--mvw-hero-overlay-size, 160px);--overlay-radius: 50%;display:grid;grid-template-columns:1fr var(--overlay-size) 1fr;grid-template-rows:1fr 1fr 1fr calc(var(--overlay-size) / 2) calc(var(--overlay-size) / 2);margin-left:var(--mvw-main-image-wrapper-horizontal-margin);margin-right:var(--mvw-main-image-wrapper-horizontal-margin)}:where(.hero):has(img.is-default){min-height:470px}:where(.hero) .is-main-image{grid-column:1/4;grid-row:1/5;display:flex;justify-content:center;align-items:center;background-color:light-dark(var(--mvw-color-primary-50),var(--mvw-color-primary-900));box-shadow:0 2px 4px #0003}:where(.hero) .is-main-image .is-default{filter:grayscale(1);opacity:.3;mix-blend-mode:multiply}:where(.hero) .is-main-image img:not(.is-default){width:100%}:where(.hero) .is-ovarlay-image{grid-row:4/-1;grid-column:2;justify-self:center;overflow:hidden;border-radius:var(--overlay-radius);z-index:1}:where(.hero) .is-ovarlay-image img{width:100%;aspect-ratio:1}}", mr = '@layer components.variables{:where(:host){--mvw-list-item-font-size: var(--font-size-400);--mvw-list-item-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-200));--mvw-list-item-hover-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-50));--mvw-list-item-hover-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-list-item-selected-color: light-dark(var(--mvw-color-secondary-700), var(--mvw-color-secondary-300))}}@layer components{:where(.list){list-style:none;margin:0;padding:var(--size-4)}@media (pointer: coarse){:where(.list),:where(.list) *{-webkit-user-select:none;user-select:none}}:where(.list) :where(li,option,[role=group]>label){align-items:center;display:flex;gap:var(--size-4);isolation:isolate;min-block-size:40px;position:relative}:where(.list) :where(li,option,[role=group]>label):before{display:none}:where(.list) :where(li,option,[role=group]>label) *{font-size:inherit}:where(.list) :where(li,option,[role=group]>label):has(>a,>button,>label){background:transparent;display:block;min-block-size:auto;padding:0}:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label{align-items:center;color:var(--mvw-list-item-color);cursor:pointer;display:flex;gap:var(--size-8);inline-size:100%;margin:0;outline-offset:-1px;font-size:var(--mvw-list-item-font-size);padding:var(--size-4) var(--size-6);text-align:start;text-decoration:none;border-radius:var(--radius-2);z-index:0}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label):focus,:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label):focus-visible,:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label):hover{color:var(--mvw-list-item-hover-color);background-color:var(--mvw-list-item-hover-bg-color)}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label)[aria-selected=true]{color:var(--mvw-list-item-selected-color)}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .text{flex:1;line-height:1.6}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .text :where(h1,h2,h3,h4,h5,h6,p,span){color:inherit;font-weight:400}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .text p+p{font-size:var(--font-size-100)}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .start{align-self:center;align-items:center;display:grid;z-index:1}:is(:where(.list) :where(li,option,[role=group]>label)>a,:where(.list) :where(li,option,[role=group]>label)>button,:where(.list) :where(li,option,[role=group]>label)>label) .start svg{inline-size:var(--mvw-list-item-font-size)}:where(.unordered-list){display:grid;align-items:center}:where(.unordered-list) li{display:flex;align-items:center;gap:var(--size-4);color:var(--mvw-text-default);padding:var(--size-6) var(--size-4)}:where(.unordered-list) li:not(:first-child){border-top:1px solid var(--mvw-border-muted)}:where(.unordered-list).centered li{justify-content:center}@media (width > 500px){:where(.unordered-list){display:flex}:where(.unordered-list) li:not(:first-child){border-top:none}:where(.unordered-list) li:not(:first-of-type):before{content:"/";margin-inline-end:var(--size-6);color:var(--mvw-border-muted)}}}', me = (e, t) => {
|
|
1143
1154
|
const i = e.__vccOpts || e;
|
|
1144
|
-
for (const [
|
|
1145
|
-
i[
|
|
1155
|
+
for (const [a, r] of t)
|
|
1156
|
+
i[a] = r;
|
|
1146
1157
|
return i;
|
|
1147
|
-
},
|
|
1158
|
+
}, dr = { class: "is-mb-5" }, pr = {
|
|
1159
|
+
key: 0,
|
|
1160
|
+
class: "uppercase"
|
|
1161
|
+
}, vr = {
|
|
1148
1162
|
class: "hero",
|
|
1149
1163
|
style: { "--overlay-size": "180px" }
|
|
1150
|
-
},
|
|
1164
|
+
}, hr = {
|
|
1151
1165
|
key: 0,
|
|
1152
1166
|
class: "is-main-image"
|
|
1153
|
-
},
|
|
1167
|
+
}, ur = { class: "is-ovarlay-image" }, gr = { class: "tabs underlined" }, br = ["aria-label"], wr = ["aria-selected", "onClick"], fr = ["aria-selected", "onClick"], yr = {
|
|
1154
1168
|
__name: "Player.ce",
|
|
1155
1169
|
props: {
|
|
1156
1170
|
locale: {
|
|
@@ -1183,20 +1197,20 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1183
1197
|
}
|
|
1184
1198
|
},
|
|
1185
1199
|
setup(e) {
|
|
1186
|
-
const t = e, i = { en: ne, hu: se },
|
|
1187
|
-
return (r, l) => (n(), u("div",
|
|
1188
|
-
|
|
1200
|
+
const t = e, i = { en: ne, hu: se }, a = j(null);
|
|
1201
|
+
return (r, l) => (n(), u("div", dr, [
|
|
1202
|
+
f(o(le), {
|
|
1189
1203
|
locale: t.locale,
|
|
1190
1204
|
messages: i
|
|
1191
1205
|
}, {
|
|
1192
|
-
default: y(({ t:
|
|
1193
|
-
|
|
1194
|
-
default: y(({ error:
|
|
1195
|
-
g ? (n(), N(
|
|
1206
|
+
default: y(({ t: p }) => [
|
|
1207
|
+
f(o(ke), null, {
|
|
1208
|
+
default: y(({ error: d, hasError: g }) => [
|
|
1209
|
+
g ? (n(), N(o(ie), {
|
|
1196
1210
|
key: 0,
|
|
1197
|
-
error:
|
|
1211
|
+
error: d
|
|
1198
1212
|
}, null, 8, ["error"])) : _("", !0),
|
|
1199
|
-
|
|
1213
|
+
f(Jo, {
|
|
1200
1214
|
"api-key": t.apiKey,
|
|
1201
1215
|
locale: e.locale,
|
|
1202
1216
|
"championship-id": e.championshipId,
|
|
@@ -1204,8 +1218,8 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1204
1218
|
}, {
|
|
1205
1219
|
default: y(({
|
|
1206
1220
|
pane: m,
|
|
1207
|
-
isGamesLoading:
|
|
1208
|
-
isPlayerSeasonsLoading:
|
|
1221
|
+
isGamesLoading: b,
|
|
1222
|
+
isPlayerSeasonsLoading: w,
|
|
1209
1223
|
playerData: h,
|
|
1210
1224
|
playerGames: c,
|
|
1211
1225
|
playerSeasonStats: T,
|
|
@@ -1215,68 +1229,69 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1215
1229
|
currentSeasonColumns: z,
|
|
1216
1230
|
onChangePane: k
|
|
1217
1231
|
}) => [
|
|
1218
|
-
|
|
1219
|
-
s("div",
|
|
1220
|
-
e.disableActionImage ? _("", !0) : (n(), u("div",
|
|
1221
|
-
(n(), N(
|
|
1232
|
+
e.disableActionImage ? _("", !0) : (n(), u("h1", pr, v(h.name), 1)),
|
|
1233
|
+
s("div", vr, [
|
|
1234
|
+
e.disableActionImage ? _("", !0) : (n(), u("div", hr, [
|
|
1235
|
+
(n(), N(o(B), {
|
|
1222
1236
|
key: h.player?.playerId,
|
|
1223
1237
|
src: h.playerAction,
|
|
1224
1238
|
"default-src": "https://www.ersteliga.hu/assets/images/logo_liga@2x.png"
|
|
1225
1239
|
}, null, 8, ["src"]))
|
|
1226
1240
|
])),
|
|
1227
|
-
s("div",
|
|
1228
|
-
(n(), N(
|
|
1241
|
+
s("div", ur, [
|
|
1242
|
+
(n(), N(o(B), {
|
|
1229
1243
|
key: h.player?.playerId,
|
|
1230
1244
|
src: h?.player?.picture
|
|
1231
1245
|
}, null, 8, ["src"]))
|
|
1232
1246
|
])
|
|
1233
1247
|
]),
|
|
1234
|
-
|
|
1248
|
+
f(nr, {
|
|
1235
1249
|
data: h,
|
|
1236
|
-
"append-to":
|
|
1237
|
-
|
|
1238
|
-
|
|
1250
|
+
"append-to": a.value,
|
|
1251
|
+
"is-birth-year-only": e.disableActionImage
|
|
1252
|
+
}, null, 8, ["data", "append-to", "is-birth-year-only"]),
|
|
1253
|
+
f(cr, {
|
|
1239
1254
|
rows: L,
|
|
1240
1255
|
columns: z,
|
|
1241
|
-
"is-loading":
|
|
1242
|
-
"append-to":
|
|
1256
|
+
"is-loading": w,
|
|
1257
|
+
"append-to": a.value
|
|
1243
1258
|
}, null, 8, ["rows", "columns", "is-loading", "append-to"]),
|
|
1244
|
-
s("nav",
|
|
1259
|
+
s("nav", gr, [
|
|
1245
1260
|
s("div", {
|
|
1246
1261
|
role: "tablist",
|
|
1247
|
-
"aria-label":
|
|
1262
|
+
"aria-label": p("selection.sections")
|
|
1248
1263
|
}, [
|
|
1249
1264
|
s("button", {
|
|
1250
1265
|
role: "tab",
|
|
1251
1266
|
type: "button",
|
|
1252
|
-
"aria-selected": m ===
|
|
1253
|
-
onClick: ($) => k(
|
|
1254
|
-
}, v(
|
|
1267
|
+
"aria-selected": m === o(Be),
|
|
1268
|
+
onClick: ($) => k(o(Be))
|
|
1269
|
+
}, v(p("players.games")), 9, wr),
|
|
1255
1270
|
s("button", {
|
|
1256
1271
|
role: "tab",
|
|
1257
1272
|
type: "button",
|
|
1258
|
-
"aria-selected": m ===
|
|
1259
|
-
onClick: ($) => k(
|
|
1260
|
-
}, v(
|
|
1261
|
-
], 8,
|
|
1273
|
+
"aria-selected": m === o(ct),
|
|
1274
|
+
onClick: ($) => k(o(ct))
|
|
1275
|
+
}, v(p("players.seasons")), 9, fr)
|
|
1276
|
+
], 8, br)
|
|
1262
1277
|
]),
|
|
1263
|
-
m ===
|
|
1264
|
-
key:
|
|
1278
|
+
m === o(Be) ? (n(), N(or, {
|
|
1279
|
+
key: 1,
|
|
1265
1280
|
rows: c,
|
|
1266
1281
|
columns: C,
|
|
1267
|
-
"is-loading":
|
|
1268
|
-
"append-to":
|
|
1282
|
+
"is-loading": b,
|
|
1283
|
+
"append-to": a.value,
|
|
1269
1284
|
"game-resolver": t.externalGameResolver
|
|
1270
1285
|
}, null, 8, ["rows", "columns", "is-loading", "append-to", "game-resolver"])) : _("", !0),
|
|
1271
|
-
m ===
|
|
1272
|
-
key:
|
|
1286
|
+
m === o(ct) ? (n(), N(sr, {
|
|
1287
|
+
key: 2,
|
|
1273
1288
|
rows: T,
|
|
1274
1289
|
columns: P,
|
|
1275
|
-
"append-to":
|
|
1290
|
+
"append-to": a.value
|
|
1276
1291
|
}, null, 8, ["rows", "columns", "append-to"])) : _("", !0),
|
|
1277
1292
|
s("div", {
|
|
1278
1293
|
ref_key: "tooltipContainer",
|
|
1279
|
-
ref:
|
|
1294
|
+
ref: a
|
|
1280
1295
|
}, null, 512)
|
|
1281
1296
|
]),
|
|
1282
1297
|
_: 2
|
|
@@ -1289,7 +1304,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1289
1304
|
}, 8, ["locale"])
|
|
1290
1305
|
]));
|
|
1291
1306
|
}
|
|
1292
|
-
},
|
|
1307
|
+
}, xr = /* @__PURE__ */ me(yr, [["styles", [ce, Me, at, ot, Fe, rt, lt, yt, xt, ia, mr]]]), kr = { class: "avatar" }, _r = ["href", "textContent"], zr = ["href", "textContent"], na = {
|
|
1293
1308
|
__name: "PlayersDataTable",
|
|
1294
1309
|
props: {
|
|
1295
1310
|
columns: {
|
|
@@ -1327,23 +1342,23 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1327
1342
|
},
|
|
1328
1343
|
emits: ["sort"],
|
|
1329
1344
|
setup(e, { emit: t }) {
|
|
1330
|
-
const i = e,
|
|
1331
|
-
return (
|
|
1345
|
+
const i = e, a = t, { t: r } = q(), { columns: l } = ee(i.columns), p = (d) => a("sort", d);
|
|
1346
|
+
return (d, g) => (n(), N(o(oe), null, {
|
|
1332
1347
|
default: y(() => [
|
|
1333
|
-
|
|
1334
|
-
columns:
|
|
1348
|
+
f(o(ge), {
|
|
1349
|
+
columns: o(l),
|
|
1335
1350
|
rows: e.rows,
|
|
1336
1351
|
"is-loading": e.isLoading,
|
|
1337
1352
|
"append-to": e.appendTo,
|
|
1338
1353
|
sort: e.sort,
|
|
1339
|
-
onSort:
|
|
1354
|
+
onSort: p
|
|
1340
1355
|
}, {
|
|
1341
1356
|
"cell-playerPortrait": y(({ row: m }) => [
|
|
1342
|
-
s("div",
|
|
1343
|
-
(n(), N(
|
|
1357
|
+
s("div", kr, [
|
|
1358
|
+
(n(), N(o(B), {
|
|
1344
1359
|
key: m.player.playerId,
|
|
1345
1360
|
src: m.player.picture,
|
|
1346
|
-
"default-src":
|
|
1361
|
+
"default-src": o(Je)
|
|
1347
1362
|
}, null, 8, ["src", "default-src"]))
|
|
1348
1363
|
])
|
|
1349
1364
|
]),
|
|
@@ -1351,29 +1366,29 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1351
1366
|
s("a", {
|
|
1352
1367
|
href: e.playerResolver({ ...m, championshipId: e.championshipId }),
|
|
1353
1368
|
textContent: v(m.name)
|
|
1354
|
-
}, null, 8,
|
|
1369
|
+
}, null, 8, _r)
|
|
1355
1370
|
]),
|
|
1356
1371
|
"cell-teamName": y(({ row: m }) => [
|
|
1357
1372
|
s("a", {
|
|
1358
1373
|
href: e.teamResolver({ ...m, championshipId: e.championshipId }),
|
|
1359
1374
|
textContent: v(m.teamName)
|
|
1360
|
-
}, null, 8,
|
|
1375
|
+
}, null, 8, zr)
|
|
1361
1376
|
]),
|
|
1362
1377
|
"cell-nationality": y(({ row: m }) => [
|
|
1363
|
-
(n(!0), u(A, null, F(m.player.nationality, (
|
|
1364
|
-
key:
|
|
1378
|
+
(n(!0), u(A, null, F(m.player.nationality, (b) => (n(), N(o(Ft), {
|
|
1379
|
+
key: b,
|
|
1365
1380
|
placement: "top",
|
|
1366
|
-
content:
|
|
1381
|
+
content: o(r)(`nationality.${b}`),
|
|
1367
1382
|
"append-to": e.appendTo
|
|
1368
1383
|
}, {
|
|
1369
|
-
default: y(({ setRef:
|
|
1370
|
-
s("div",
|
|
1384
|
+
default: y(({ setRef: w, events: h }) => [
|
|
1385
|
+
s("div", pt({
|
|
1371
1386
|
ref_for: !0,
|
|
1372
|
-
ref:
|
|
1387
|
+
ref: w,
|
|
1373
1388
|
class: "avatar"
|
|
1374
1389
|
}, { ref_for: !0 }, h), [
|
|
1375
|
-
|
|
1376
|
-
src:
|
|
1390
|
+
f(o(B), {
|
|
1391
|
+
src: o(Qt)(b)
|
|
1377
1392
|
}, null, 8, ["src"])
|
|
1378
1393
|
], 16)
|
|
1379
1394
|
]),
|
|
@@ -1389,7 +1404,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1389
1404
|
_: 1
|
|
1390
1405
|
}));
|
|
1391
1406
|
}
|
|
1392
|
-
},
|
|
1407
|
+
}, Sr = {
|
|
1393
1408
|
__name: "DataProvider",
|
|
1394
1409
|
props: {
|
|
1395
1410
|
championshipName: {
|
|
@@ -1410,24 +1425,24 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1410
1425
|
}
|
|
1411
1426
|
},
|
|
1412
1427
|
setup(e) {
|
|
1413
|
-
const t = e, i = _e("hash"),
|
|
1428
|
+
const t = e, i = _e("hash"), a = Z({
|
|
1414
1429
|
championshipName: t.championshipName,
|
|
1415
1430
|
seasons: [],
|
|
1416
1431
|
championshipId: Number(i.championshipId) || 0,
|
|
1417
1432
|
query: ""
|
|
1418
|
-
}), { onError: r } = be(), { page: l, change:
|
|
1433
|
+
}), { onError: r } = be(), { page: l, change: p } = jt(), { sort: d, change: g } = ht({
|
|
1419
1434
|
sortTarget: "",
|
|
1420
1435
|
orders: []
|
|
1421
|
-
}), { isLoading: m, execute:
|
|
1436
|
+
}), { isLoading: m, execute: b } = O({
|
|
1422
1437
|
options: {
|
|
1423
1438
|
path: "/v2/championship-seasons",
|
|
1424
1439
|
apiKey: t.apiKey,
|
|
1425
|
-
params: { championshipName:
|
|
1440
|
+
params: { championshipName: a.championshipName }
|
|
1426
1441
|
},
|
|
1427
|
-
transform: (k) =>
|
|
1442
|
+
transform: (k) => tt(k, a),
|
|
1428
1443
|
onError: r
|
|
1429
1444
|
}), {
|
|
1430
|
-
isLoading:
|
|
1445
|
+
isLoading: w,
|
|
1431
1446
|
state: h,
|
|
1432
1447
|
execute: c
|
|
1433
1448
|
} = O({
|
|
@@ -1435,40 +1450,40 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1435
1450
|
path: "/v2/championship-players",
|
|
1436
1451
|
apiKey: t.apiKey,
|
|
1437
1452
|
params: x(() => ({
|
|
1438
|
-
championshipId:
|
|
1453
|
+
championshipId: a.championshipId
|
|
1439
1454
|
}))
|
|
1440
1455
|
},
|
|
1441
|
-
transform: (k) =>
|
|
1456
|
+
transform: (k) => Oa(k),
|
|
1442
1457
|
onError: r
|
|
1443
|
-
}), T =
|
|
1444
|
-
te([
|
|
1458
|
+
}), T = ut([m, w], { delay: 1e3 });
|
|
1459
|
+
te([b, c]);
|
|
1445
1460
|
const L = x(
|
|
1446
|
-
() =>
|
|
1461
|
+
() => Y(h.value).sorted(d).filter(a.query, [["name"]]).pagination(l.value, t.limit).value()
|
|
1447
1462
|
), C = x(() => [(l.value - 1) * t.limit + 1, Math.min(l.value * t.limit, L.value.totalItems)]);
|
|
1448
1463
|
function P(k) {
|
|
1449
|
-
|
|
1464
|
+
p(1), a.championshipId = k, i.championshipId = k, a.query = "", i.query = null, te([c]);
|
|
1450
1465
|
}
|
|
1451
1466
|
function z(k) {
|
|
1452
1467
|
const { value: $ } = k.target;
|
|
1453
|
-
|
|
1468
|
+
p(1), a.query = $, i.query = $;
|
|
1454
1469
|
}
|
|
1455
|
-
return (k, $) =>
|
|
1456
|
-
...
|
|
1457
|
-
sort:
|
|
1458
|
-
page:
|
|
1470
|
+
return (k, $) => fe(k.$slots, "default", ye(xe({
|
|
1471
|
+
...a,
|
|
1472
|
+
sort: o(d),
|
|
1473
|
+
page: o(l),
|
|
1459
1474
|
range: C.value,
|
|
1460
|
-
isLoading:
|
|
1475
|
+
isLoading: o(T),
|
|
1461
1476
|
players: L.value,
|
|
1462
|
-
onSort:
|
|
1477
|
+
onSort: o(g),
|
|
1463
1478
|
onInput: z,
|
|
1464
1479
|
changeSeason: P,
|
|
1465
|
-
onPaginatorChange:
|
|
1480
|
+
onPaginatorChange: o(p)
|
|
1466
1481
|
})));
|
|
1467
1482
|
}
|
|
1468
|
-
}, kt = `@layer components.variables{:where(:host){--mvw-form-label-font-size: var(--font-size-200);--mvw-form-label-color: var(--mvw-text-muted);--mvw-input-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-input-font-size: var(--font-size-400);--mvw-input-border-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-input-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-input-border-radius: var(--radius-2)}}@layer components{:where(.form-field){--_border-color: var(--mvw-input-border-color);--_bg-color: var(--mvw-input-bg-color);--_height: var(--size-32);--_color: var(--mvw-input-color);--_field-padding-block: var(--size-6);--_field-padding-inline: var(--size-10);contain:layout;position:relative;color:var(--mvw-text-default)}:where(.form-field) pre,:where(.form-field) input,:where(.form-field) select{appearance:none;block-size:var(--_height);min-inline-size:0;font-family:inherit;font-size:var(--mvw-input-font-size);color:var(--_color);line-height:var(--font-lineheight-100);background-color:var(--_bg-color);border:var(--field-border-width, 1px) solid var(--_border-color);border-radius:var(--mvw-input-border-radius);padding:var(--_field-padding-block) var(--_field-padding-inline)}:where(.form-field) select{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='%23888' 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 var(--size-6) center;background-size:16px 12px;padding-inline-end:var(--size-24)}:where(.form-field) pre{line-height:var(--font-lineheight-500)}:where(.form-field) input::placeholder{color:rgb(from var(--_color) r g b / 50%)}:where(.form-field) label{display:block;font-size:var(--mvw-form-label-font-size);line-height:var(--font-lineheight-700);color:var(--mvw-form-label-color);text-transform:uppercase;font-weight:700}:where(:where(.form-field).full-width input,:where(.form-field).full-width select){inline-size:100%}}`, zr = "@layer components{:where(.table-responsive){container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}:where(.table-responsive) :where(table){width:100%}}", Sr = '@layer components.variables{:where(:host){--mvw-table-header-font-size: var(--font-size-200);--mvw-table-default-column-width: 40px;--mvw-table-default-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-neutral-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-table-header-bg-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-header-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-800));--mvw-table-header-hover-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-hover-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-white));--mvw-table-hover-bg-color: light-dark(var(--mvw-color-secondary-100), var(--mvw-color-primary-950));--mvw-table-active-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-bg-color: light-dark(var(--mvw-color-secondary-200), var(--mvw-color-secondary-800));--mvw-table-active-even-bg-color: light-dark(var(--mvw-color-secondary-300), var(--mvw-color-secondary-700));--mvw-table-active-hover-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-hover-bg-color: light-dark(var(--mvw-color-secondary-400), var(--mvw-color-secondary-500));--mvw-table-portrait-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-table-portrait-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-stripped-bg-color: light-dark( hsl(from var(--mvw-color-primary-50) h s calc(l + 3) ), hsl(from var(--mvw-color-primary-900) h s calc(l + 2) ) );--mvw-table-label-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-table-label-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-cell-logo-size: 20px;--mvw-table-cell-portrait-size: 26px;--mvw-table-caption-color: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-600));--mvw-table-caption-font-size: var(--font-size-200)}}@layer components{:where(.table){border-collapse:collapse;max-inline-size:100%;position:relative;color:var(--mvw-table-color);background-color:var(--mvw-table-default-bg-color)}:where(.table) tr{background-color:var(--surface-default);border-top:1px solid var(--border-color)}:where(.table) tr:hover{background-color:oklch(from var(--surface-filled) l c h / 75%)}:where(.table) tr:nth-child(2n){background:var(--mvw-table-stripped-bg-color)}:where(.table) tr:nth-child(2n) td.is-active{background-color:var(--mvw-table-active-even-bg-color)}:where(.table) tr.is-highlighted{color:var(--mvw-color-error)}:where(.table) tr.is-optional{opacity:.5}:where(.table) :is(th,td){padding:var(--size-8);white-space:nowrap;text-align:center}:where(.table) th{background:var(--mvw-table-header-bg-color);color:var(--mvw-table-header-color);font-size:var(--mvw-table-header-font-size);font-weight:700;text-align:center;width:var(--mvw-table-default-column-width)}:where(.table) th:focus-visible,:where(.table) th:hover{background-color:var(--mvw-table-header-hover-bg-color);outline:none}:where(.table) th.is-sortable{position:relative;cursor:pointer}:where(.table) th.is-sortable .is-icon-sort{opacity:.5}:where(.table) th.is-active{background-color:var(--mvw-table-header-active-bg-color);color:var(--mvw-table-header-active-color)}:where(.table) th.is-active .is-icon-sort{opacity:1}:where(.table) th.is-has-image,:where(.table) th.has-avatar{width:0}:where(.table) th .is-icon-sort{display:inline-block;width:var(--size-12);height:var(--size-12);margin-inline-start:var(--size-4)}:where(.table) td.is-active{font-weight:700;color:var(--mvw-table-active-color);background:var(--mvw-table-active-bg-color)}:where(.table) td.has-avatar .avatar{--_width: var(--mvw-table-cell-portrait-size)}:where(.table) td[data-value="0"],:where(.table) td.is-zero{color:var(--mvw-text-faded)}:where(.table) td.is-possible-empty:empty:before{content:"0";color:var(--mvw-text-faded)}:where(.table) td.is-horizontal-content{display:inline-flex;align-items:center}:where(.table) td a[target=_blank]:after{content:"";position:absolute;left:100%;top:calc(50% - .4em)}:where(.table) td .is-logo-image{display:inline-block;vertical-align:middle;width:var(--mvw-table-cell-logo-size);height:var(--mvw-table-cell-logo-size);max-inline-size:fit-content}:where(.table) td .is-duplicated{color:var(--mvw-table-neutral-color)}:where(.table) td .is-team-name-long{display:inline-block}:where(.table) td .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){:where(.table) td .is-team-name-long{display:none}:where(.table) td .is-team-name-short{display:inline-block}}:where(.table) caption{caption-side:bottom;color:var(--mvw-table-caption-color);font-size:var(--mvw-table-caption-font-size, .75rem);padding:var(--size-12) 0;text-align:start}:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover{color:var(--mvw-table-hover-color);background-color:var(--mvw-table-hover-bg-color)}:is(:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover) td.is-active{color:var(--mvw-table-active-hover-color);background-color:var(--mvw-table-active-hover-bg-color)}}', Tr = "@layer components.variables{:where(:host){--mvw-paginator-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-paginator-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-paginator-hover-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-paginator-hover-bg-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-paginator-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700));--mvw-paginator-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-black));--mvw-paginator-active-bg-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-paginator-disabled-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-600))}}@layer components{:where(.paginator){display:flex;flex-direction:row;list-style-type:none;margin:10px 0;padding:0}:where(.paginator) button,:where(.paginator) div{display:flex;align-items:center;justify-content:center;padding:var(--size-6) var(--size-12);text-decoration:none;cursor:pointer;color:var(--mvw-paginator-color);border:1px solid var(--mvw-paginator-border-color);background-color:var(--mvw-paginator-bg-color);margin-left:-1px}:is(:where(.paginator) button,:where(.paginator) div) .icon{width:var(--size-16);height:var(--size-16);margin:0 -4px;max-inline-size:var(--size-16)}:is(:where(.paginator) button,:where(.paginator) div):hover:not(:is(:where(.paginator) button,:where(.paginator) div).is-disabled,:is(:where(.paginator) button,:where(.paginator) div).is-active){color:var(--mvw-paginator-hover-color);background-color:var(--mvw-paginator-hover-bg-color)}:is(:where(.paginator) button,:where(.paginator) div):disabled,:is(:where(.paginator) button,:where(.paginator) div).is-disabled{color:var(--mvw-paginator-disabled-color);background-color:var(--mvw-paginator-bg-color);pointer-events:none;cursor:default}:is(:where(.paginator) button,:where(.paginator) div).is-active{color:var(--mvw-paginator-active-color);background-color:var(--mvw-paginator-active-bg-color);border-color:var(--mvw-paginator-active-bg-color);cursor:default}}", Ir = "@layer components.variables{:where(:host){--mvw-avatar-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700))}}@layer components{:where(.avatar){--_width: 20px;display:inline-flex;vertical-align:middle;aspect-ratio:1;inline-size:var(--_width);justify-content:center;overflow:clip;position:relative;border-radius:100%;border:1px solid var(--mvw-avatar-border-color)}:where(.avatar) img{block-size:100%;inline-size:100%;inset:0;object-fit:cover;position:absolute}}", Pr = "@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}}", $r = ["value", "onInput"], Nr = { class: "grid-container" }, Lr = {
|
|
1483
|
+
}, kt = `@layer components.variables{:where(:host){--mvw-form-label-font-size: var(--font-size-200);--mvw-form-label-color: var(--mvw-text-muted);--mvw-input-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-input-font-size: var(--font-size-400);--mvw-input-border-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-input-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-input-border-radius: var(--radius-2)}}@layer components{:where(.form-field){--_border-color: var(--mvw-input-border-color);--_bg-color: var(--mvw-input-bg-color);--_height: var(--size-32);--_color: var(--mvw-input-color);--_field-padding-block: var(--size-6);--_field-padding-inline: var(--size-10);contain:layout;position:relative;color:var(--mvw-text-default)}:where(.form-field) pre,:where(.form-field) input,:where(.form-field) select{appearance:none;block-size:var(--_height);min-inline-size:0;font-family:inherit;font-size:var(--mvw-input-font-size);color:var(--_color);line-height:var(--font-lineheight-100);background-color:var(--_bg-color);border:var(--field-border-width, 1px) solid var(--_border-color);border-radius:var(--mvw-input-border-radius);padding:var(--_field-padding-block) var(--_field-padding-inline)}:where(.form-field) select{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='%23888' 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 var(--size-6) center;background-size:16px 12px;padding-inline-end:var(--size-24)}:where(.form-field) pre{line-height:var(--font-lineheight-500)}:where(.form-field) input::placeholder{color:rgb(from var(--_color) r g b / 50%)}:where(.form-field) label{display:block;font-size:var(--mvw-form-label-font-size);line-height:var(--font-lineheight-700);color:var(--mvw-form-label-color);text-transform:uppercase;font-weight:700}:where(:where(.form-field).full-width input,:where(.form-field).full-width select){inline-size:100%}}`, Tr = "@layer components{:where(.table-responsive){container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}:where(.table-responsive) :where(table){width:100%}}", Ir = '@layer components.variables{:where(:host){--mvw-table-header-font-size: var(--font-size-200);--mvw-table-default-column-width: 40px;--mvw-table-default-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-neutral-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-table-header-bg-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-table-header-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-800));--mvw-table-header-hover-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-bg-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-table-header-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-900));--mvw-table-hover-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-white));--mvw-table-hover-bg-color: light-dark(var(--mvw-color-secondary-100), var(--mvw-color-primary-950));--mvw-table-active-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-bg-color: light-dark(var(--mvw-color-secondary-200), var(--mvw-color-secondary-800));--mvw-table-active-even-bg-color: light-dark(var(--mvw-color-secondary-300), var(--mvw-color-secondary-700));--mvw-table-active-hover-color: light-dark(var(--mvw-color-secondary-900), var(--mvw-color-secondary-100));--mvw-table-active-hover-bg-color: light-dark(var(--mvw-color-secondary-400), var(--mvw-color-secondary-500));--mvw-table-portrait-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-table-portrait-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-stripped-bg-color: light-dark( hsl(from var(--mvw-color-primary-50) h s calc(l + 3) ), hsl(from var(--mvw-color-primary-900) h s calc(l + 2) ) );--mvw-table-label-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-table-label-bg-color: light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900));--mvw-table-cell-logo-size: 20px;--mvw-table-cell-portrait-size: 26px;--mvw-table-caption-color: light-dark(var(--mvw-color-primary-400), var(--mvw-color-primary-600));--mvw-table-caption-font-size: var(--font-size-200)}}@layer components{:where(.table){border-collapse:collapse;max-inline-size:100%;position:relative;color:var(--mvw-table-color);background-color:var(--mvw-table-default-bg-color)}:where(.table) tr{background-color:var(--surface-default);border-top:1px solid var(--border-color)}:where(.table) tr:hover{background-color:oklch(from var(--surface-filled) l c h / 75%)}:where(.table) tr:nth-child(2n){background:var(--mvw-table-stripped-bg-color)}:where(.table) tr:nth-child(2n) td.is-active{background-color:var(--mvw-table-active-even-bg-color)}:where(.table) tr.is-highlighted{color:var(--mvw-color-error)}:where(.table) tr.is-optional{opacity:.5}:where(.table) :is(th,td){padding:var(--size-8);white-space:nowrap;text-align:center}:where(.table) th{background:var(--mvw-table-header-bg-color);color:var(--mvw-table-header-color);font-size:var(--mvw-table-header-font-size);font-weight:700;text-align:center;width:var(--mvw-table-default-column-width)}:where(.table) th:focus-visible,:where(.table) th:hover{background-color:var(--mvw-table-header-hover-bg-color);outline:none}:where(.table) th.is-sortable{position:relative;cursor:pointer}:where(.table) th.is-sortable .is-icon-sort{opacity:.5}:where(.table) th.is-active{background-color:var(--mvw-table-header-active-bg-color);color:var(--mvw-table-header-active-color)}:where(.table) th.is-active .is-icon-sort{opacity:1}:where(.table) th.is-has-image,:where(.table) th.has-avatar{width:0}:where(.table) th .is-icon-sort{display:inline-block;width:var(--size-12);height:var(--size-12);margin-inline-start:var(--size-4)}:where(.table) td.is-active{font-weight:700;color:var(--mvw-table-active-color);background:var(--mvw-table-active-bg-color)}:where(.table) td.has-avatar .avatar{--_width: var(--mvw-table-cell-portrait-size)}:where(.table) td[data-value="0"],:where(.table) td.is-zero{color:var(--mvw-text-faded)}:where(.table) td.is-possible-empty:empty:before{content:"0";color:var(--mvw-text-faded)}:where(.table) td.is-horizontal-content{display:inline-flex;align-items:center}:where(.table) td a[target=_blank]:after{content:"";position:absolute;left:100%;top:calc(50% - .4em)}:where(.table) td .is-logo-image{display:inline-block;vertical-align:middle;width:var(--mvw-table-cell-logo-size);height:var(--mvw-table-cell-logo-size);max-inline-size:fit-content}:where(.table) td .is-duplicated{color:var(--mvw-table-neutral-color)}:where(.table) td .is-team-name-long{display:inline-block}:where(.table) td .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){:where(.table) td .is-team-name-long{display:none}:where(.table) td .is-team-name-short{display:inline-block}}:where(.table) caption{caption-side:bottom;color:var(--mvw-table-caption-color);font-size:var(--mvw-table-caption-font-size, .75rem);padding:var(--size-12) 0;text-align:start}:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover{color:var(--mvw-table-hover-color);background-color:var(--mvw-table-hover-bg-color)}:is(:where(.table) tbody tr:focus-within,:where(.table) tbody tr:hover) td.is-active{color:var(--mvw-table-active-hover-color);background-color:var(--mvw-table-active-hover-bg-color)}}', Pr = "@layer components.variables{:where(:host){--mvw-paginator-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-paginator-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-paginator-hover-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-paginator-hover-bg-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-paginator-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700));--mvw-paginator-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-black));--mvw-paginator-active-bg-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-paginator-disabled-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-600))}}@layer components{:where(.paginator){display:flex;flex-direction:row;list-style-type:none;margin:10px 0;padding:0}:where(.paginator) button,:where(.paginator) div{display:flex;align-items:center;justify-content:center;padding:var(--size-6) var(--size-12);text-decoration:none;cursor:pointer;color:var(--mvw-paginator-color);border:1px solid var(--mvw-paginator-border-color);background-color:var(--mvw-paginator-bg-color);margin-left:-1px}:is(:where(.paginator) button,:where(.paginator) div) .icon{width:var(--size-16);height:var(--size-16);margin:0 -4px;max-inline-size:var(--size-16)}:is(:where(.paginator) button,:where(.paginator) div):hover:not(:is(:where(.paginator) button,:where(.paginator) div).is-disabled,:is(:where(.paginator) button,:where(.paginator) div).is-active){color:var(--mvw-paginator-hover-color);background-color:var(--mvw-paginator-hover-bg-color)}:is(:where(.paginator) button,:where(.paginator) div):disabled,:is(:where(.paginator) button,:where(.paginator) div).is-disabled{color:var(--mvw-paginator-disabled-color);background-color:var(--mvw-paginator-bg-color);pointer-events:none;cursor:default}:is(:where(.paginator) button,:where(.paginator) div).is-active{color:var(--mvw-paginator-active-color);background-color:var(--mvw-paginator-active-bg-color);border-color:var(--mvw-paginator-active-bg-color);cursor:default}}", $r = "@layer components.variables{:where(:host){--mvw-avatar-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700))}}@layer components{:where(.avatar){--_width: 20px;display:inline-flex;vertical-align:middle;aspect-ratio:1;inline-size:var(--_width);justify-content:center;overflow:clip;position:relative;border-radius:100%;border:1px solid var(--mvw-avatar-border-color)}:where(.avatar) img{block-size:100%;inline-size:100%;inset:0;object-fit:cover;position:absolute}}", Nr = "@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}}", Lr = ["value", "onInput"], Cr = { class: "grid-container" }, Er = {
|
|
1469
1484
|
key: 0,
|
|
1470
1485
|
class: "text-muted text-end"
|
|
1471
|
-
},
|
|
1486
|
+
}, Rr = {
|
|
1472
1487
|
__name: "Players.ce",
|
|
1473
1488
|
props: {
|
|
1474
1489
|
locale: {
|
|
@@ -1497,27 +1512,27 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1497
1512
|
}
|
|
1498
1513
|
},
|
|
1499
1514
|
setup(e) {
|
|
1500
|
-
const t = e, i = { en: ne, hu: se },
|
|
1501
|
-
return (
|
|
1502
|
-
|
|
1515
|
+
const t = e, i = { en: ne, hu: se }, a = j(null), r = (p) => et(t.externalPlayerResolver, p), l = (p) => De(t.externalTeamResolver, p);
|
|
1516
|
+
return (p, d) => (n(), u("div", null, [
|
|
1517
|
+
f(o(le), {
|
|
1503
1518
|
locale: t.locale,
|
|
1504
1519
|
messages: i
|
|
1505
1520
|
}, {
|
|
1506
1521
|
default: y(({ t: g }) => [
|
|
1507
|
-
|
|
1508
|
-
default: y(({ error: m, hasError:
|
|
1509
|
-
|
|
1522
|
+
f(o(ke), null, {
|
|
1523
|
+
default: y(({ error: m, hasError: b }) => [
|
|
1524
|
+
b ? (n(), N(o(ie), {
|
|
1510
1525
|
key: 0,
|
|
1511
1526
|
error: m
|
|
1512
1527
|
}, null, 8, ["error"])) : _("", !0),
|
|
1513
|
-
|
|
1528
|
+
f(Sr, {
|
|
1514
1529
|
"api-key": t.apiKey,
|
|
1515
1530
|
locale: e.locale,
|
|
1516
1531
|
"championship-name": e.championshipName,
|
|
1517
1532
|
limit: e.limit
|
|
1518
1533
|
}, {
|
|
1519
1534
|
default: y(({
|
|
1520
|
-
range:
|
|
1535
|
+
range: w,
|
|
1521
1536
|
players: h,
|
|
1522
1537
|
seasons: c,
|
|
1523
1538
|
isLoading: T,
|
|
@@ -1530,14 +1545,14 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1530
1545
|
onPaginatorChange: S,
|
|
1531
1546
|
onInput: E
|
|
1532
1547
|
}) => [
|
|
1533
|
-
|
|
1548
|
+
f(o(vt), {
|
|
1534
1549
|
seasons: c,
|
|
1535
1550
|
"championship-id": L,
|
|
1536
1551
|
"is-section-selection-disabled": "",
|
|
1537
1552
|
onOnChangeSeason: z
|
|
1538
1553
|
}, {
|
|
1539
1554
|
default: y(() => [
|
|
1540
|
-
|
|
1555
|
+
f(o(X), {
|
|
1541
1556
|
label: g("selection.filterName"),
|
|
1542
1557
|
name: "player"
|
|
1543
1558
|
}, {
|
|
@@ -1548,17 +1563,17 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1548
1563
|
class: "base-input",
|
|
1549
1564
|
value: P,
|
|
1550
1565
|
onInput: E
|
|
1551
|
-
}, null, 40,
|
|
1566
|
+
}, null, 40, Lr)
|
|
1552
1567
|
]),
|
|
1553
1568
|
_: 2
|
|
1554
1569
|
}, 1032, ["label"])
|
|
1555
1570
|
]),
|
|
1556
1571
|
_: 2
|
|
1557
1572
|
}, 1032, ["seasons", "championship-id", "onOnChangeSeason"]),
|
|
1558
|
-
|
|
1559
|
-
columns:
|
|
1573
|
+
f(na, {
|
|
1574
|
+
columns: o(ra),
|
|
1560
1575
|
rows: h.rows,
|
|
1561
|
-
"append-to":
|
|
1576
|
+
"append-to": a.value,
|
|
1562
1577
|
sort: k,
|
|
1563
1578
|
"is-loading": T,
|
|
1564
1579
|
"championship-id": L,
|
|
@@ -1566,19 +1581,19 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1566
1581
|
"team-resolver": l,
|
|
1567
1582
|
onSort: $
|
|
1568
1583
|
}, null, 8, ["columns", "rows", "append-to", "sort", "is-loading", "championship-id", "onSort"]),
|
|
1569
|
-
s("div",
|
|
1570
|
-
|
|
1584
|
+
s("div", Cr, [
|
|
1585
|
+
f(o(Kt), {
|
|
1571
1586
|
page: C,
|
|
1572
1587
|
"items-per-page": t.limit,
|
|
1573
1588
|
"total-items": h.totalItems,
|
|
1574
1589
|
"range-length": 5,
|
|
1575
1590
|
onChange: S
|
|
1576
1591
|
}, null, 8, ["page", "items-per-page", "total-items", "onChange"]),
|
|
1577
|
-
h.totalItems > 0 ? (n(), u("div",
|
|
1592
|
+
h.totalItems > 0 ? (n(), u("div", Er, v(w.join("-")) + " / " + v(h.totalItems), 1)) : _("", !0)
|
|
1578
1593
|
]),
|
|
1579
1594
|
s("div", {
|
|
1580
1595
|
ref_key: "tooltipContainer",
|
|
1581
|
-
ref:
|
|
1596
|
+
ref: a
|
|
1582
1597
|
}, null, 512)
|
|
1583
1598
|
]),
|
|
1584
1599
|
_: 2
|
|
@@ -1591,7 +1606,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1591
1606
|
}, 8, ["locale"])
|
|
1592
1607
|
]));
|
|
1593
1608
|
}
|
|
1594
|
-
},
|
|
1609
|
+
}, Ar = /* @__PURE__ */ me(Rr, [["styles", [ce, kt, Tr, Ir, Fe, Pr, $r, Nr]]]), Or = {
|
|
1595
1610
|
externalTeamResolver: {
|
|
1596
1611
|
type: [String, Function],
|
|
1597
1612
|
default: ""
|
|
@@ -1600,7 +1615,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1600
1615
|
type: Boolean,
|
|
1601
1616
|
default: !1
|
|
1602
1617
|
}
|
|
1603
|
-
},
|
|
1618
|
+
}, Gr = {
|
|
1604
1619
|
limit: {
|
|
1605
1620
|
type: Number,
|
|
1606
1621
|
default: 20
|
|
@@ -1617,7 +1632,7 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1617
1632
|
type: Boolean,
|
|
1618
1633
|
default: !1
|
|
1619
1634
|
}
|
|
1620
|
-
},
|
|
1635
|
+
}, sa = {
|
|
1621
1636
|
externalGameResolver: {
|
|
1622
1637
|
type: [String, Function],
|
|
1623
1638
|
default: ""
|
|
@@ -1626,13 +1641,13 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1626
1641
|
type: Boolean,
|
|
1627
1642
|
default: !1
|
|
1628
1643
|
}
|
|
1629
|
-
},
|
|
1644
|
+
}, Dr = "@layer components.variables{:where(:host){--mvw-playoffs-header-bg: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-300));--mvw-playoffs-header-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-800));--mvw-playoffs-header-size: var(--font-size-500);--mvw-playoffs-details-bg: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-800))}}@layer components{:where(.playoffs){--_logo-size: 70px}:where(.playoffs) .section-title{padding:var(--size-8);text-align:center;font-size:var(--mvw-playoffs-header-size);font-weight:700;color:var(--mvw-playoffs-header-color);background-color:var(--mvw-playoffs-header-bg)}:where(.playoffs) .section-details{display:grid;align-items:center;justify-items:center;gap:var(--size-16);padding:var(--size-16);background-color:var(--mvw-playoffs-details-bg)}@media (width > 576px){:where(.playoffs) .section-details{grid-template-columns:1fr fit-content(var(--_logo-size)) fit-content(var(--_logo-size)) fit-content(var(--_logo-size)) 1fr}}:where(.playoffs) .section-details .is-result{font-size:var(--mvw-playoffs-reasult-size, calc(var(--font-size-500) * 4));font-weight:700;text-align:center;color:var(--mvw-text-highlighted)}:where(.playoffs) .section-details .is-team-name{font-size:var(--font-size-700);font-weight:700;color:var(--mvw-text-highlighted)}:where(.playoffs) .table-grid{display:grid;grid-template-columns:70px 160px 60px minmax(160px,1fr) minmax(40px,60px) 5ch minmax(160px,1fr) minmax(180px,1.2fr);color:var(--mvw-table-color)}:where(.playoffs) .table-grid:nth-child(2n)>div{background-color:var( --mvw-table-stripped-bg-color, light-dark(var(--mvw-color-primary-50), var(--mvw-color-primary-900)) )}:where(.playoffs) .table-grid:hover>div{background-color:var( --mvw-table-hover-bg-color, light-dark(var(--mvw-color-secondary-100), var(--mvw-color-secondary-400)) )}:where(.playoffs) .table-grid.is-optional{opacity:.5}:where(.playoffs) .table-grid>div{padding:var(--size-8)}}", Mr = "@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)}}", ca = "@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}}", Fr = { class: "playoffs" }, Kr = { class: "section-title" }, jr = { key: 0 }, Br = { class: "section-details" }, Vr = { class: "is-team-name text-end" }, Ur = { class: "is-result" }, Yr = { class: "is-team-name" }, Wr = { class: "text-dimmed" }, Hr = { class: "text-muted" }, qr = { class: "text-muted" }, Jr = { class: "responsive-team-name" }, Qr = { class: "text-highlighted text-end font-bold" }, Xr = { class: "team-name-long" }, Zr = { class: "team-name-short" }, el = { class: "text-center" }, tl = {
|
|
1630
1645
|
key: 0,
|
|
1631
1646
|
class: "text-highlighted"
|
|
1632
|
-
},
|
|
1647
|
+
}, al = ["href", "target"], ol = {
|
|
1633
1648
|
key: 0,
|
|
1634
1649
|
class: "badge xl inverted"
|
|
1635
|
-
},
|
|
1650
|
+
}, rl = { class: "responsive-team-name" }, ll = { class: "text-highlighted font-bold" }, il = { class: "team-name-long" }, nl = { class: "team-name-short" }, sl = { class: "text-dimmed truncate text-end" }, cl = "/game/id/{gameId}", ml = {
|
|
1636
1651
|
__name: "Playoffs.ce",
|
|
1637
1652
|
props: {
|
|
1638
1653
|
locale: {
|
|
@@ -1648,10 +1663,10 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1648
1663
|
default: 0
|
|
1649
1664
|
},
|
|
1650
1665
|
// externalGameResolver, isGameTargetExternal
|
|
1651
|
-
...
|
|
1666
|
+
...sa
|
|
1652
1667
|
},
|
|
1653
1668
|
setup(e) {
|
|
1654
|
-
const t = e, { onError: i, error:
|
|
1669
|
+
const t = e, { onError: i, error: a, hasError: r } = Bt(), { state: l, isLoading: p, execute: d } = O({
|
|
1655
1670
|
options: {
|
|
1656
1671
|
path: "/v2/playoffs-tree",
|
|
1657
1672
|
apiKey: t.apiKey,
|
|
@@ -1659,80 +1674,80 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1659
1674
|
},
|
|
1660
1675
|
onError: i
|
|
1661
1676
|
});
|
|
1662
|
-
|
|
1663
|
-
const g =
|
|
1664
|
-
function
|
|
1665
|
-
return
|
|
1677
|
+
d();
|
|
1678
|
+
const g = ft(), m = { en: ne, hu: se };
|
|
1679
|
+
function b(T) {
|
|
1680
|
+
return Ze(t.externalGameResolver || cl, T);
|
|
1666
1681
|
}
|
|
1667
|
-
const
|
|
1668
|
-
return (T, L) => (n(), u("div",
|
|
1669
|
-
|
|
1682
|
+
const w = x(() => t.isGameTargetExternal ? "_blank" : "_self"), h = (T) => Ne(T, "L dddd", g, t.locale), c = (T) => Ne(T, "HH:mm", g, t.locale);
|
|
1683
|
+
return (T, L) => (n(), u("div", Fr, [
|
|
1684
|
+
f(o(le), {
|
|
1670
1685
|
locale: t.locale,
|
|
1671
1686
|
messages: m
|
|
1672
1687
|
}, {
|
|
1673
1688
|
default: y(({ t: C }) => [
|
|
1674
|
-
|
|
1689
|
+
o(r) ? (n(), N(o(ie), {
|
|
1675
1690
|
key: 0,
|
|
1676
|
-
error: a
|
|
1691
|
+
error: o(a)
|
|
1677
1692
|
}, null, 8, ["error"])) : _("", !0),
|
|
1678
|
-
|
|
1679
|
-
(n(!0), u(A, null, F(
|
|
1693
|
+
o(p) ? (n(), N(o(Ge), { key: 1 })) : _("", !0),
|
|
1694
|
+
(n(!0), u(A, null, F(o(l), (P) => (n(), u("div", {
|
|
1680
1695
|
key: `${P.divisionStage2Name}-${P.divisionStageNumber}`
|
|
1681
1696
|
}, [
|
|
1682
|
-
s("div",
|
|
1697
|
+
s("div", Kr, [
|
|
1683
1698
|
V(v(C(`playoffs.${P.divisionStage2Name}`)), 1),
|
|
1684
|
-
P.divisionStageNumber ? (n(), u("span",
|
|
1699
|
+
P.divisionStageNumber ? (n(), u("span", jr, "-" + v(P.divisionStageNumber), 1)) : _("", !0)
|
|
1685
1700
|
]),
|
|
1686
|
-
s("div",
|
|
1687
|
-
s("div",
|
|
1701
|
+
s("div", Br, [
|
|
1702
|
+
s("div", Vr, v(P.homeTeam?.longName), 1),
|
|
1688
1703
|
s("div", null, [
|
|
1689
|
-
|
|
1704
|
+
f(o(B), {
|
|
1690
1705
|
class: "is-logo-image",
|
|
1691
1706
|
src: P.homeTeam.logo
|
|
1692
1707
|
}, null, 8, ["src"])
|
|
1693
1708
|
]),
|
|
1694
|
-
s("div",
|
|
1709
|
+
s("div", Ur, v(P.seriesStandings), 1),
|
|
1695
1710
|
s("div", null, [
|
|
1696
|
-
|
|
1711
|
+
f(o(B), {
|
|
1697
1712
|
class: "is-logo-image",
|
|
1698
1713
|
src: P.awayTeam.logo
|
|
1699
1714
|
}, null, 8, ["src"])
|
|
1700
1715
|
]),
|
|
1701
|
-
s("div",
|
|
1716
|
+
s("div", Yr, v(P.awayTeam?.longName), 1)
|
|
1702
1717
|
]),
|
|
1703
|
-
|
|
1718
|
+
f(o(oe), null, {
|
|
1704
1719
|
default: y(() => [
|
|
1705
1720
|
(n(!0), u(A, null, F(P.games, (z) => (n(), u("div", {
|
|
1706
1721
|
key: z.id,
|
|
1707
1722
|
class: H(["table-grid", { "is-optional": z.optional }])
|
|
1708
1723
|
}, [
|
|
1709
|
-
s("div",
|
|
1710
|
-
s("div",
|
|
1711
|
-
s("div",
|
|
1712
|
-
s("div",
|
|
1713
|
-
s("div",
|
|
1714
|
-
s("span",
|
|
1715
|
-
s("span",
|
|
1724
|
+
s("div", Wr, v(z.gameName), 1),
|
|
1725
|
+
s("div", Hr, v(h(z.gameDate)), 1),
|
|
1726
|
+
s("div", qr, v(c(z.gameDate)), 1),
|
|
1727
|
+
s("div", Jr, [
|
|
1728
|
+
s("div", Qr, [
|
|
1729
|
+
s("span", Xr, v(z.homeTeam?.longName), 1),
|
|
1730
|
+
s("span", Zr, v(z.homeTeam?.shortName), 1)
|
|
1716
1731
|
])
|
|
1717
1732
|
]),
|
|
1718
|
-
s("div",
|
|
1719
|
-
z.gameStatus === 0 ? (n(), u("span",
|
|
1733
|
+
s("div", el, [
|
|
1734
|
+
z.gameStatus === 0 ? (n(), u("span", tl, "-:-")) : (n(), u("a", {
|
|
1720
1735
|
key: 1,
|
|
1721
|
-
href:
|
|
1722
|
-
target:
|
|
1736
|
+
href: b(z),
|
|
1737
|
+
target: w.value,
|
|
1723
1738
|
class: H(["font-bold", [{ "text-highlighted": z.gameStatus !== 1, "is-text-accent": z.gameStatus === 1 }]])
|
|
1724
|
-
}, v(z.homeTeamScore) + ":" + v(z.awayTeamScore), 11,
|
|
1739
|
+
}, v(z.homeTeamScore) + ":" + v(z.awayTeamScore), 11, al))
|
|
1725
1740
|
]),
|
|
1726
1741
|
s("div", null, [
|
|
1727
|
-
z.seriesStandings ? (n(), u("span",
|
|
1742
|
+
z.seriesStandings ? (n(), u("span", ol, v(z.seriesStandings), 1)) : _("", !0)
|
|
1728
1743
|
]),
|
|
1729
|
-
s("div",
|
|
1730
|
-
s("div",
|
|
1731
|
-
s("span",
|
|
1732
|
-
s("span",
|
|
1744
|
+
s("div", rl, [
|
|
1745
|
+
s("div", ll, [
|
|
1746
|
+
s("span", il, v(z.awayTeam?.longName), 1),
|
|
1747
|
+
s("span", nl, v(z.awayTeam?.shortName), 1)
|
|
1733
1748
|
])
|
|
1734
1749
|
]),
|
|
1735
|
-
s("div",
|
|
1750
|
+
s("div", sl, v(z.location?.locationName ?? ""), 1)
|
|
1736
1751
|
], 2))), 128))
|
|
1737
1752
|
]),
|
|
1738
1753
|
_: 2
|
|
@@ -1743,31 +1758,31 @@ const Uo = "/v2/player-season-stats", Yo = "/v2/goalie-season-stats", Wo = "/v2/
|
|
|
1743
1758
|
}, 8, ["locale"])
|
|
1744
1759
|
]));
|
|
1745
1760
|
}
|
|
1746
|
-
},
|
|
1747
|
-
function
|
|
1748
|
-
const
|
|
1761
|
+
}, dl = /* @__PURE__ */ me(ml, [["styles", [ce, Me, Dr, Mr, ca]]]);
|
|
1762
|
+
function pl(e = [], t = "hu", i = Le) {
|
|
1763
|
+
const a = j([]), r = j(null), l = j([]), p = () => {
|
|
1749
1764
|
l.value = e.value.reduce((g, m) => {
|
|
1750
|
-
const
|
|
1751
|
-
return g[
|
|
1752
|
-
}, {}),
|
|
1753
|
-
},
|
|
1754
|
-
const g =
|
|
1755
|
-
r.value =
|
|
1765
|
+
const b = new Date(m.gameDate), w = new Intl.DateTimeFormat("en-GB", { month: "long" }).format(b)?.toLowerCase(), h = new Intl.DateTimeFormat(t.value, { month: "long" }).format(b);
|
|
1766
|
+
return g[w] || (g[w] = { value: b.getMonth(), name: vl(h) }), g;
|
|
1767
|
+
}, {}), a.value = Object.values(l.value);
|
|
1768
|
+
}, d = () => {
|
|
1769
|
+
const g = Ga(/* @__PURE__ */ new Date(), Pe(e.value)?.gameDate, Zt(e.value)?.gameDate), m = new Intl.DateTimeFormat("en-GB", { month: "long" }).format(/* @__PURE__ */ new Date())?.toLowerCase(), b = ve([m], l.value);
|
|
1770
|
+
r.value = b && g ? (/* @__PURE__ */ new Date()).getMonth() : Pe(a.value)?.value, i(r.value);
|
|
1756
1771
|
};
|
|
1757
|
-
return ue([e, t],
|
|
1758
|
-
|
|
1772
|
+
return ue([e, t], p), Ro(e, () => {
|
|
1773
|
+
p(), d();
|
|
1759
1774
|
}), {
|
|
1760
|
-
months:
|
|
1775
|
+
months: a,
|
|
1761
1776
|
selectedMonth: r
|
|
1762
1777
|
};
|
|
1763
1778
|
}
|
|
1764
|
-
function
|
|
1779
|
+
function vl(e) {
|
|
1765
1780
|
return e[0].toUpperCase() + e.slice(1);
|
|
1766
1781
|
}
|
|
1767
|
-
function
|
|
1768
|
-
return
|
|
1782
|
+
function hl(e) {
|
|
1783
|
+
return Xt(({ phaseTypeName: i }) => ["Negyeddöntő", "Elődöntő", "Döntő"].indexOf(i), e);
|
|
1769
1784
|
}
|
|
1770
|
-
const
|
|
1785
|
+
const ul = {
|
|
1771
1786
|
__name: "DataProvider",
|
|
1772
1787
|
props: {
|
|
1773
1788
|
championshipName: {
|
|
@@ -1812,7 +1827,7 @@ const vl = {
|
|
|
1812
1827
|
}
|
|
1813
1828
|
},
|
|
1814
1829
|
setup(e) {
|
|
1815
|
-
const t = e, i = _e("history"),
|
|
1830
|
+
const t = e, i = _e("history"), a = Z({
|
|
1816
1831
|
championshipName: t.championshipName,
|
|
1817
1832
|
loading: !1,
|
|
1818
1833
|
seasons: [],
|
|
@@ -1824,8 +1839,8 @@ const vl = {
|
|
|
1824
1839
|
selectedMonth: Number(i.selectedMonth) ?? null,
|
|
1825
1840
|
selectedTeam: Number(i.selectedTeam) || null,
|
|
1826
1841
|
selectedTeamGameType: i.selectedTeamGameType || "all"
|
|
1827
|
-
}), { timezone: r, mainElement: l, scrollOffset:
|
|
1828
|
-
switch (
|
|
1842
|
+
}), { timezone: r, mainElement: l, scrollOffset: p, scrollToGameDate: d } = Mt(t), { onError: g } = be(), m = x(() => {
|
|
1843
|
+
switch (a.selectedTeamGameType) {
|
|
1829
1844
|
case "all":
|
|
1830
1845
|
return [
|
|
1831
1846
|
["homeTeam", "id"],
|
|
@@ -1836,29 +1851,29 @@ const vl = {
|
|
|
1836
1851
|
default:
|
|
1837
1852
|
return [["awayTeam", "id"]];
|
|
1838
1853
|
}
|
|
1839
|
-
}), { isLoading:
|
|
1854
|
+
}), { isLoading: b, execute: w } = O({
|
|
1840
1855
|
options: {
|
|
1841
1856
|
path: "/v2/championship-seasons",
|
|
1842
1857
|
apiKey: t.apiKey,
|
|
1843
|
-
params: { championshipName:
|
|
1858
|
+
params: { championshipName: a.championshipName }
|
|
1844
1859
|
},
|
|
1845
|
-
transform: (R) =>
|
|
1860
|
+
transform: (R) => tt(R, a),
|
|
1846
1861
|
onError: g
|
|
1847
1862
|
}), { isLoading: h, execute: c } = O({
|
|
1848
1863
|
options: {
|
|
1849
1864
|
path: "/v2/championship-phases",
|
|
1850
1865
|
apiKey: t.apiKey,
|
|
1851
|
-
params: x(() => ({ championshipId:
|
|
1866
|
+
params: x(() => ({ championshipId: a.championshipId }))
|
|
1852
1867
|
},
|
|
1853
|
-
transform: (R) =>
|
|
1868
|
+
transform: (R) => Ko(R, a),
|
|
1854
1869
|
onError: g
|
|
1855
1870
|
}), { isLoading: T, execute: L } = O({
|
|
1856
1871
|
options: {
|
|
1857
1872
|
path: "/v2/championship-teams",
|
|
1858
1873
|
apiKey: t.apiKey,
|
|
1859
|
-
params: x(() => ({ championshipId:
|
|
1874
|
+
params: x(() => ({ championshipId: a.championshipId }))
|
|
1860
1875
|
},
|
|
1861
|
-
transform: (R) =>
|
|
1876
|
+
transform: (R) => jo(R, a),
|
|
1862
1877
|
onError: g
|
|
1863
1878
|
}), {
|
|
1864
1879
|
isLoading: C,
|
|
@@ -1868,90 +1883,90 @@ const vl = {
|
|
|
1868
1883
|
options: {
|
|
1869
1884
|
path: "/v2/games-list",
|
|
1870
1885
|
apiKey: t.apiKey,
|
|
1871
|
-
params: x(() => ({ championshipId:
|
|
1886
|
+
params: x(() => ({ championshipId: a.championshipId, division: a.section }))
|
|
1872
1887
|
},
|
|
1873
|
-
transform: (R) =>
|
|
1888
|
+
transform: (R) => bt(R),
|
|
1874
1889
|
onError: g
|
|
1875
|
-
}), k =
|
|
1876
|
-
|
|
1890
|
+
}), k = ut([h, b, T, C], { delay: 1e3 }), { months: $ } = pl(P, Dt(t, "locale"), (R) => {
|
|
1891
|
+
a.selectedMonth = Number(i.selectedMonth) || R;
|
|
1877
1892
|
});
|
|
1878
|
-
|
|
1879
|
-
const { pause: S, resume: E } =
|
|
1880
|
-
|
|
1881
|
-
const M = x(() =>
|
|
1882
|
-
const R =
|
|
1883
|
-
return
|
|
1893
|
+
Ta({ items: P, element: l, offset: p, enabled: d });
|
|
1894
|
+
const { pause: S, resume: E } = Go(z, Pt, { immediate: !1 });
|
|
1895
|
+
Ia(t.autoRefresh, E, S);
|
|
1896
|
+
const M = x(() => Y(o(P)).filter(a.selectedTeam, m.value, !0).schedule(o(r), o(t.locale)).filter(a.subPhase, [["divisionStage2Name"]], !0).gameDateFilter(o(a.selectedMonth)).groupByDays().value()), D = x(() => {
|
|
1897
|
+
const R = a.sections.find((ze) => ze.phaseName === a.section);
|
|
1898
|
+
return hl(R?.phases ?? []);
|
|
1884
1899
|
});
|
|
1885
|
-
te([
|
|
1900
|
+
te([w, c, L, z], {
|
|
1886
1901
|
onFinished: () => {
|
|
1887
|
-
t.autoRefresh &&
|
|
1902
|
+
t.autoRefresh && ta(E, Pt);
|
|
1888
1903
|
}
|
|
1889
1904
|
});
|
|
1890
1905
|
function ae(R) {
|
|
1891
|
-
|
|
1906
|
+
a.championshipId = R, i.championshipId = R, t.autoRefresh && E(), a.selectedTeam = null, i.selectedTeam = null, a.selectedMonth = null, i.selectedMonth = null, a.selectedTeamGameType = "all", i.selectedTeamGameType = null, a.subPhase = "", te([c, L, z]), t.autoRefresh && E(), It();
|
|
1892
1907
|
}
|
|
1893
1908
|
function I(R) {
|
|
1894
|
-
|
|
1909
|
+
a.selectedMonth = R, i.selectedMonth = R, It();
|
|
1895
1910
|
}
|
|
1896
|
-
function
|
|
1897
|
-
|
|
1911
|
+
function W(R) {
|
|
1912
|
+
a.section = R, i.section = R, a.selectedMonth = null, i.selectedMonth = null, a.subPhase = "", z();
|
|
1898
1913
|
}
|
|
1899
1914
|
function J(R) {
|
|
1900
|
-
|
|
1915
|
+
a.subPhase = R;
|
|
1901
1916
|
}
|
|
1902
1917
|
function Q(R) {
|
|
1903
|
-
|
|
1918
|
+
a.selectedTeam = R, i.selectedTeam = R, R || (a.selectedTeamGameType = "all", i.selectedTeamGameType = null);
|
|
1904
1919
|
}
|
|
1905
|
-
function
|
|
1906
|
-
|
|
1920
|
+
function we(R) {
|
|
1921
|
+
a.selectedTeamGameType = R, i.selectedTeamGameType = R;
|
|
1907
1922
|
}
|
|
1908
|
-
return (R, ze) =>
|
|
1909
|
-
...
|
|
1910
|
-
months:
|
|
1911
|
-
isLoading:
|
|
1923
|
+
return (R, ze) => fe(R.$slots, "default", ye(xe({
|
|
1924
|
+
...a,
|
|
1925
|
+
months: o($),
|
|
1926
|
+
isLoading: o(k),
|
|
1912
1927
|
subPhases: D.value,
|
|
1913
1928
|
games: M.value,
|
|
1914
1929
|
changeSeason: ae,
|
|
1915
1930
|
changeMonth: I,
|
|
1916
|
-
changeSection:
|
|
1931
|
+
changeSection: W,
|
|
1917
1932
|
changeTeam: Q,
|
|
1918
|
-
changeTeamType:
|
|
1933
|
+
changeTeamType: we,
|
|
1919
1934
|
changeSubSection: J
|
|
1920
1935
|
})));
|
|
1921
1936
|
}
|
|
1922
|
-
},
|
|
1937
|
+
}, gl = {
|
|
1923
1938
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1924
1939
|
viewBox: "0 0 24 24"
|
|
1925
1940
|
};
|
|
1926
|
-
function
|
|
1927
|
-
return n(), u("svg",
|
|
1941
|
+
function ma(e, t) {
|
|
1942
|
+
return n(), u("svg", gl, [...t[0] || (t[0] = [
|
|
1928
1943
|
s("path", {
|
|
1929
1944
|
fill: "currentColor",
|
|
1930
1945
|
d: "M8.12 9.29 12 13.17l3.88-3.88a.996.996 0 1 1 1.41 1.41l-4.59 4.59a.996.996 0 0 1-1.41 0L6.7 10.7a.996.996 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z"
|
|
1931
1946
|
}, null, -1)
|
|
1932
1947
|
])]);
|
|
1933
1948
|
}
|
|
1934
|
-
const
|
|
1949
|
+
const bl = { render: ma }, Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1935
1950
|
__proto__: null,
|
|
1936
|
-
default:
|
|
1937
|
-
render:
|
|
1938
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1951
|
+
default: bl,
|
|
1952
|
+
render: ma
|
|
1953
|
+
}, Symbol.toStringTag, { value: "Module" })), wl = {
|
|
1939
1954
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1940
1955
|
viewBox: "0 0 24 24"
|
|
1941
1956
|
};
|
|
1942
|
-
function
|
|
1943
|
-
return n(), u("svg",
|
|
1957
|
+
function da(e, t) {
|
|
1958
|
+
return n(), u("svg", wl, [...t[0] || (t[0] = [
|
|
1944
1959
|
s("path", {
|
|
1945
1960
|
fill: "currentColor",
|
|
1946
1961
|
d: "M8.12 14.71L12 10.83l3.88 3.88a.996.996 0 1 0 1.41-1.41L12.7 8.71a.996.996 0 0 0-1.41 0L6.7 13.3a.996.996 0 0 0 0 1.41c.39.38 1.03.39 1.42 0"
|
|
1947
1962
|
}, null, -1)
|
|
1948
1963
|
])]);
|
|
1949
1964
|
}
|
|
1950
|
-
const
|
|
1965
|
+
const fl = { render: da }, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1951
1966
|
__proto__: null,
|
|
1952
|
-
default:
|
|
1953
|
-
render:
|
|
1954
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1967
|
+
default: fl,
|
|
1968
|
+
render: da
|
|
1969
|
+
}, Symbol.toStringTag, { value: "Module" })), yl = {
|
|
1955
1970
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1956
1971
|
viewBox: "0 0 24 24",
|
|
1957
1972
|
fill: "none",
|
|
@@ -1960,8 +1975,8 @@ const bl = { render: va }, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1960
1975
|
"stroke-linecap": "round",
|
|
1961
1976
|
"stroke-linejoin": "round"
|
|
1962
1977
|
};
|
|
1963
|
-
function
|
|
1964
|
-
return n(), u("svg",
|
|
1978
|
+
function pa(e, t) {
|
|
1979
|
+
return n(), u("svg", yl, [...t[0] || (t[0] = [
|
|
1965
1980
|
s("rect", {
|
|
1966
1981
|
x: "2",
|
|
1967
1982
|
y: "3",
|
|
@@ -1984,11 +1999,11 @@ function ha(e, t) {
|
|
|
1984
1999
|
}, null, -1)
|
|
1985
2000
|
])]);
|
|
1986
2001
|
}
|
|
1987
|
-
const
|
|
2002
|
+
const xl = { render: pa }, kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1988
2003
|
__proto__: null,
|
|
1989
|
-
default:
|
|
1990
|
-
render:
|
|
1991
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2004
|
+
default: xl,
|
|
2005
|
+
render: pa
|
|
2006
|
+
}, Symbol.toStringTag, { value: "Module" })), _l = {
|
|
1992
2007
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1993
2008
|
viewBox: "0 0 24 24",
|
|
1994
2009
|
fill: "none",
|
|
@@ -1997,16 +2012,16 @@ const wl = { render: ha }, yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
1997
2012
|
"stroke-linecap": "round",
|
|
1998
2013
|
"stroke-linejoin": "round"
|
|
1999
2014
|
};
|
|
2000
|
-
function
|
|
2001
|
-
return n(), u("svg",
|
|
2015
|
+
function va(e, t) {
|
|
2016
|
+
return n(), u("svg", _l, [...t[0] || (t[0] = [
|
|
2002
2017
|
s("polyline", { points: "9 18 15 12 9 6" }, null, -1)
|
|
2003
2018
|
])]);
|
|
2004
2019
|
}
|
|
2005
|
-
const
|
|
2020
|
+
const zl = { render: va }, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2006
2021
|
__proto__: null,
|
|
2007
|
-
default:
|
|
2008
|
-
render:
|
|
2009
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2022
|
+
default: zl,
|
|
2023
|
+
render: va
|
|
2024
|
+
}, Symbol.toStringTag, { value: "Module" })), Tl = {
|
|
2010
2025
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2011
2026
|
viewBox: "0 0 24 24",
|
|
2012
2027
|
fill: "none",
|
|
@@ -2015,59 +2030,59 @@ const kl = { render: ua }, _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2015
2030
|
"stroke-linecap": "round",
|
|
2016
2031
|
"stroke-linejoin": "round"
|
|
2017
2032
|
};
|
|
2018
|
-
function
|
|
2019
|
-
return n(), u("svg",
|
|
2033
|
+
function ha(e, t) {
|
|
2034
|
+
return n(), u("svg", Tl, [...t[0] || (t[0] = [
|
|
2020
2035
|
s("path", { d: "M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z" }, null, -1),
|
|
2021
2036
|
s("polygon", { points: "9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" }, null, -1)
|
|
2022
2037
|
])]);
|
|
2023
2038
|
}
|
|
2024
|
-
const
|
|
2039
|
+
const Il = { render: ha }, Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2025
2040
|
__proto__: null,
|
|
2026
|
-
default:
|
|
2027
|
-
render:
|
|
2028
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2041
|
+
default: Il,
|
|
2042
|
+
render: ha
|
|
2043
|
+
}, Symbol.toStringTag, { value: "Module" })), $l = {
|
|
2029
2044
|
class: "text-muted text-sm text-center",
|
|
2030
2045
|
style: { "grid-area": "name" }
|
|
2031
|
-
},
|
|
2046
|
+
}, Nl = ["href"], Ll = {
|
|
2032
2047
|
class: "responsive-team-name",
|
|
2033
2048
|
style: { "grid-area": "home-team" }
|
|
2034
|
-
},
|
|
2049
|
+
}, Cl = {
|
|
2035
2050
|
key: 0,
|
|
2036
2051
|
class: "text-end text-highlighted font-bold"
|
|
2037
|
-
},
|
|
2052
|
+
}, El = { class: "team-name-short" }, Rl = { class: "team-name-long" }, Al = { style: { "grid-area": "home-team-logo" } }, Ol = {
|
|
2038
2053
|
class: "grid text-center",
|
|
2039
2054
|
style: { "grid-area": "game-data" }
|
|
2040
|
-
},
|
|
2055
|
+
}, Gl = { class: "" }, Dl = {
|
|
2041
2056
|
key: 0,
|
|
2042
2057
|
class: "badge"
|
|
2043
|
-
},
|
|
2058
|
+
}, Ml = {
|
|
2044
2059
|
key: 1,
|
|
2045
2060
|
class: "badge"
|
|
2046
|
-
},
|
|
2061
|
+
}, Fl = {
|
|
2047
2062
|
key: 2,
|
|
2048
2063
|
class: "badge inverted"
|
|
2049
|
-
},
|
|
2064
|
+
}, Kl = ["href", "target"], jl = {
|
|
2050
2065
|
key: 0,
|
|
2051
2066
|
class: "text-xl font-bold"
|
|
2052
|
-
},
|
|
2067
|
+
}, Bl = {
|
|
2053
2068
|
key: 1,
|
|
2054
2069
|
class: "text-xl font-bold"
|
|
2055
|
-
},
|
|
2070
|
+
}, Vl = {
|
|
2056
2071
|
key: 2,
|
|
2057
2072
|
class: "text-xl font-bold"
|
|
2058
|
-
},
|
|
2073
|
+
}, Ul = { key: 3 }, Yl = {
|
|
2059
2074
|
key: 0,
|
|
2060
2075
|
class: "text-sm text-faded"
|
|
2061
|
-
},
|
|
2076
|
+
}, Wl = { class: "text-sm text-muted is-whitespace-nowrap" }, Hl = {
|
|
2062
2077
|
key: 0,
|
|
2063
2078
|
class: "text-xs uppercase text-muted is-whitespace-nowrap"
|
|
2064
|
-
},
|
|
2079
|
+
}, ql = { style: { "grid-area": "away-team-logo" } }, Jl = {
|
|
2065
2080
|
class: "responsive-team-name",
|
|
2066
2081
|
style: { "grid-area": "away-team" }
|
|
2067
|
-
},
|
|
2082
|
+
}, Ql = {
|
|
2068
2083
|
key: 0,
|
|
2069
2084
|
class: "text-highlighted font-bold"
|
|
2070
|
-
},
|
|
2085
|
+
}, Xl = { class: "team-name-short" }, Zl = { class: "team-name-long" }, ei = "--_grid-template-areas: 'name name name name name' 'home-team home-team-logo game-data away-team-logo away-team';", ti = {
|
|
2071
2086
|
__name: "Item",
|
|
2072
2087
|
props: {
|
|
2073
2088
|
game: {
|
|
@@ -2080,7 +2095,7 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2080
2095
|
},
|
|
2081
2096
|
gameLink: {
|
|
2082
2097
|
type: Function,
|
|
2083
|
-
default:
|
|
2098
|
+
default: Le
|
|
2084
2099
|
},
|
|
2085
2100
|
target: {
|
|
2086
2101
|
type: String,
|
|
@@ -2089,77 +2104,77 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2089
2104
|
},
|
|
2090
2105
|
setup(e) {
|
|
2091
2106
|
const { t } = q();
|
|
2092
|
-
return (i,
|
|
2107
|
+
return (i, a) => (n(), u("div", {
|
|
2093
2108
|
class: H(["card-item", { "is-optional": e.game.optional }]),
|
|
2094
|
-
style:
|
|
2109
|
+
style: ei
|
|
2095
2110
|
}, [
|
|
2096
|
-
s("div",
|
|
2111
|
+
s("div", $l, [
|
|
2097
2112
|
V(v(e.game.gameName) + " - " + v(e.game.divisionName) + " - " + v(e.game.location.locationName) + " ", 1),
|
|
2098
2113
|
e.game.broadcast ? (n(), u(A, { key: 0 }, [
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2114
|
+
a[0] || (a[0] = V(" - ", -1)),
|
|
2115
|
+
f(o(kl), { height: "16" }),
|
|
2116
|
+
a[1] || (a[1] = V(" ", -1))
|
|
2102
2117
|
], 64)) : _("", !0),
|
|
2103
2118
|
e.game.video ? (n(), u(A, { key: 1 }, [
|
|
2104
|
-
|
|
2119
|
+
a[2] || (a[2] = V(" - ", -1)),
|
|
2105
2120
|
s("a", {
|
|
2106
2121
|
href: e.game.video,
|
|
2107
2122
|
target: "_blank"
|
|
2108
2123
|
}, [
|
|
2109
|
-
|
|
2110
|
-
], 8,
|
|
2124
|
+
f(o(Pl), { height: "18" })
|
|
2125
|
+
], 8, Nl)
|
|
2111
2126
|
], 64)) : _("", !0)
|
|
2112
2127
|
]),
|
|
2113
|
-
s("div",
|
|
2114
|
-
e.game.homeTeam ? (n(), u("div",
|
|
2115
|
-
s("span",
|
|
2116
|
-
s("span",
|
|
2128
|
+
s("div", Ll, [
|
|
2129
|
+
e.game.homeTeam ? (n(), u("div", Cl, [
|
|
2130
|
+
s("span", El, v(e.game.homeTeam.shortName), 1),
|
|
2131
|
+
s("span", Rl, v(e.game.homeTeam.longName), 1)
|
|
2117
2132
|
])) : _("", !0)
|
|
2118
2133
|
]),
|
|
2119
|
-
s("div",
|
|
2120
|
-
(n(), N(
|
|
2134
|
+
s("div", Al, [
|
|
2135
|
+
(n(), N(o(B), {
|
|
2121
2136
|
key: e.game.homeTeam.id,
|
|
2122
2137
|
src: e.game.homeTeam.logo
|
|
2123
2138
|
}, null, 8, ["src"]))
|
|
2124
2139
|
]),
|
|
2125
|
-
s("div",
|
|
2126
|
-
s("div",
|
|
2127
|
-
e.game.isOvertime ? (n(), u("span",
|
|
2128
|
-
e.game.isShootout ? (n(), u("span",
|
|
2129
|
-
e.game.seriesStandings ? (n(), u("span",
|
|
2140
|
+
s("div", Ol, [
|
|
2141
|
+
s("div", Gl, [
|
|
2142
|
+
e.game.isOvertime ? (n(), u("span", Dl, v(o(t)("common.overtimeShort")), 1)) : _("", !0),
|
|
2143
|
+
e.game.isShootout ? (n(), u("span", Ml, v(o(t)("common.shootoutShort")), 1)) : _("", !0),
|
|
2144
|
+
e.game.seriesStandings ? (n(), u("span", Fl, v(e.game.seriesStandings), 1)) : _("", !0)
|
|
2130
2145
|
]),
|
|
2131
2146
|
s("a", {
|
|
2132
2147
|
href: e.gameLink(e.game),
|
|
2133
2148
|
target: e.target,
|
|
2134
2149
|
class: H(["game-result", [{ "is-live": e.game.gameStatus === 1 }]])
|
|
2135
2150
|
}, [
|
|
2136
|
-
e.game.gameStatus > 0 && e.game.gameStatus < 3 ? (n(), u("span",
|
|
2137
|
-
e.game.gameStatus === 3 ? (n(), u("span",
|
|
2138
|
-
e.game.gameStatus === 4 ? (n(), u("span",
|
|
2139
|
-
e.game.gameStatus === 0 ? (n(), u("span",
|
|
2140
|
-
], 10,
|
|
2141
|
-
e.game.gameStatus === 0 ? (n(), u("span",
|
|
2151
|
+
e.game.gameStatus > 0 && e.game.gameStatus < 3 ? (n(), u("span", jl, v(e.game.homeTeamScore) + " : " + v(e.game.awayTeamScore), 1)) : _("", !0),
|
|
2152
|
+
e.game.gameStatus === 3 ? (n(), u("span", Bl, v(o(t)("game.status.jury")), 1)) : _("", !0),
|
|
2153
|
+
e.game.gameStatus === 4 ? (n(), u("span", Vl, v(o(t)("game.status.delayed")), 1)) : _("", !0),
|
|
2154
|
+
e.game.gameStatus === 0 ? (n(), u("span", Ul, v(e.game.gameDateTime), 1)) : _("", !0)
|
|
2155
|
+
], 10, Kl),
|
|
2156
|
+
e.game.gameStatus === 0 ? (n(), u("span", Yl, "(" + v(e.offsetName) + ")", 1)) : _("", !0),
|
|
2142
2157
|
e.game.gameStatus > 0 ? (n(), u(A, { key: 1 }, [
|
|
2143
|
-
s("div",
|
|
2144
|
-
e.game.gameStatus !== 2 ? (n(), u("div",
|
|
2158
|
+
s("div", Wl, v(e.game.periodResults), 1),
|
|
2159
|
+
e.game.gameStatus !== 2 ? (n(), u("div", Hl, v(o(t)(`game.period.${e.game.period}`)), 1)) : _("", !0)
|
|
2145
2160
|
], 64)) : _("", !0)
|
|
2146
2161
|
]),
|
|
2147
|
-
s("div",
|
|
2148
|
-
(n(), N(
|
|
2162
|
+
s("div", ql, [
|
|
2163
|
+
(n(), N(o(B), {
|
|
2149
2164
|
key: e.game.awayTeam.id,
|
|
2150
2165
|
class: "is-logo-image",
|
|
2151
2166
|
src: e.game.awayTeam.logo
|
|
2152
2167
|
}, null, 8, ["src"]))
|
|
2153
2168
|
]),
|
|
2154
|
-
s("div",
|
|
2155
|
-
e.game.awayTeam ? (n(), u("div",
|
|
2156
|
-
s("span",
|
|
2157
|
-
s("span",
|
|
2169
|
+
s("div", Jl, [
|
|
2170
|
+
e.game.awayTeam ? (n(), u("div", Ql, [
|
|
2171
|
+
s("span", Xl, v(e.game.awayTeam.shortName), 1),
|
|
2172
|
+
s("span", Zl, v(e.game.awayTeam.longName), 1)
|
|
2158
2173
|
])) : _("", !0)
|
|
2159
2174
|
])
|
|
2160
2175
|
], 2));
|
|
2161
2176
|
}
|
|
2162
|
-
},
|
|
2177
|
+
}, ai = { class: "flex-container py-md" }, oi = ["value"], ri = { value: null }, li = ["value"], ii = { value: null }, ni = ["value"], si = { value: "all" }, ci = { value: "home" }, mi = { value: "away" }, di = {
|
|
2163
2178
|
__name: "ScheduleSelector",
|
|
2164
2179
|
props: {
|
|
2165
2180
|
seasons: {
|
|
@@ -2198,88 +2213,88 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2198
2213
|
"update:selectedTeamGameType"
|
|
2199
2214
|
],
|
|
2200
2215
|
setup(e, { emit: t }) {
|
|
2201
|
-
const i = e,
|
|
2202
|
-
return (
|
|
2203
|
-
|
|
2216
|
+
const i = e, a = t, { t: r } = q(), { championshipId: l, selectedMonth: p, selectedTeam: d, selectedTeamGameType: g } = Mo(i, a), m = x(() => d.value === null);
|
|
2217
|
+
return (b, w) => (n(), u("div", ai, [
|
|
2218
|
+
f(o(X), {
|
|
2204
2219
|
name: "season",
|
|
2205
|
-
label:
|
|
2220
|
+
label: o(r)("selection.season")
|
|
2206
2221
|
}, {
|
|
2207
2222
|
default: y(() => [
|
|
2208
|
-
|
|
2223
|
+
f(o(pe), {
|
|
2209
2224
|
id: "season",
|
|
2210
|
-
modelValue:
|
|
2211
|
-
"onUpdate:modelValue":
|
|
2225
|
+
modelValue: o(l),
|
|
2226
|
+
"onUpdate:modelValue": w[0] || (w[0] = (h) => Ee(l) ? l.value = h : null)
|
|
2212
2227
|
}, {
|
|
2213
2228
|
default: y(() => [
|
|
2214
2229
|
(n(!0), u(A, null, F(e.seasons, (h) => (n(), u("option", {
|
|
2215
2230
|
key: h.championshipId,
|
|
2216
2231
|
value: h.championshipId
|
|
2217
|
-
}, v(h.seasonName), 9,
|
|
2232
|
+
}, v(h.seasonName), 9, oi))), 128))
|
|
2218
2233
|
]),
|
|
2219
2234
|
_: 1
|
|
2220
2235
|
}, 8, ["modelValue"])
|
|
2221
2236
|
]),
|
|
2222
2237
|
_: 1
|
|
2223
2238
|
}, 8, ["label"]),
|
|
2224
|
-
|
|
2239
|
+
f(o(X), {
|
|
2225
2240
|
name: "months",
|
|
2226
|
-
label:
|
|
2241
|
+
label: o(r)("selection.month")
|
|
2227
2242
|
}, {
|
|
2228
2243
|
default: y(() => [
|
|
2229
|
-
|
|
2244
|
+
f(o(pe), {
|
|
2230
2245
|
id: "months",
|
|
2231
|
-
modelValue:
|
|
2232
|
-
"onUpdate:modelValue":
|
|
2246
|
+
modelValue: o(p),
|
|
2247
|
+
"onUpdate:modelValue": w[1] || (w[1] = (h) => Ee(p) ? p.value = h : null)
|
|
2233
2248
|
}, {
|
|
2234
2249
|
default: y(() => [
|
|
2235
|
-
s("option",
|
|
2250
|
+
s("option", ri, v(o(r)("common.all")), 1),
|
|
2236
2251
|
(n(!0), u(A, null, F(e.months, (h) => (n(), u("option", {
|
|
2237
2252
|
key: h.value,
|
|
2238
2253
|
value: h.value
|
|
2239
|
-
}, v(h.name), 9,
|
|
2254
|
+
}, v(h.name), 9, li))), 128))
|
|
2240
2255
|
]),
|
|
2241
2256
|
_: 1
|
|
2242
2257
|
}, 8, ["modelValue"])
|
|
2243
2258
|
]),
|
|
2244
2259
|
_: 1
|
|
2245
2260
|
}, 8, ["label"]),
|
|
2246
|
-
|
|
2261
|
+
f(o(X), {
|
|
2247
2262
|
name: "teams",
|
|
2248
|
-
label:
|
|
2263
|
+
label: o(r)("selection.teams")
|
|
2249
2264
|
}, {
|
|
2250
2265
|
default: y(() => [
|
|
2251
|
-
|
|
2266
|
+
f(o(pe), {
|
|
2252
2267
|
id: "teams",
|
|
2253
|
-
modelValue:
|
|
2254
|
-
"onUpdate:modelValue":
|
|
2268
|
+
modelValue: o(d),
|
|
2269
|
+
"onUpdate:modelValue": w[2] || (w[2] = (h) => Ee(d) ? d.value = h : null)
|
|
2255
2270
|
}, {
|
|
2256
2271
|
default: y(() => [
|
|
2257
|
-
s("option",
|
|
2272
|
+
s("option", ii, v(o(r)("common.all")), 1),
|
|
2258
2273
|
(n(!0), u(A, null, F(e.teams, (h) => (n(), u("option", {
|
|
2259
2274
|
key: h.teamId,
|
|
2260
2275
|
value: h.teamId
|
|
2261
|
-
}, v(h.teamName), 9,
|
|
2276
|
+
}, v(h.teamName), 9, ni))), 128))
|
|
2262
2277
|
]),
|
|
2263
2278
|
_: 1
|
|
2264
2279
|
}, 8, ["modelValue"])
|
|
2265
2280
|
]),
|
|
2266
2281
|
_: 1
|
|
2267
2282
|
}, 8, ["label"]),
|
|
2268
|
-
|
|
2283
|
+
f(o(X), {
|
|
2269
2284
|
name: "type",
|
|
2270
|
-
label:
|
|
2285
|
+
label: o(r)("selection.homeOrAway")
|
|
2271
2286
|
}, {
|
|
2272
2287
|
default: y(() => [
|
|
2273
|
-
|
|
2288
|
+
f(o(pe), {
|
|
2274
2289
|
id: "type",
|
|
2275
|
-
modelValue:
|
|
2276
|
-
"onUpdate:modelValue":
|
|
2290
|
+
modelValue: o(g),
|
|
2291
|
+
"onUpdate:modelValue": w[3] || (w[3] = (h) => Ee(g) ? g.value = h : null),
|
|
2277
2292
|
disabled: m.value
|
|
2278
2293
|
}, {
|
|
2279
2294
|
default: y(() => [
|
|
2280
|
-
s("option",
|
|
2281
|
-
s("option",
|
|
2282
|
-
s("option",
|
|
2295
|
+
s("option", si, v(o(r)("common.all")), 1),
|
|
2296
|
+
s("option", ci, v(o(r)("selection.home")), 1),
|
|
2297
|
+
s("option", mi, v(o(r)("selection.away")), 1)
|
|
2283
2298
|
]),
|
|
2284
2299
|
_: 1
|
|
2285
2300
|
}, 8, ["modelValue", "disabled"])
|
|
@@ -2288,10 +2303,10 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2288
2303
|
}, 8, ["label"])
|
|
2289
2304
|
]));
|
|
2290
2305
|
}
|
|
2291
|
-
},
|
|
2306
|
+
}, ua = "@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}}", pi = "@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}}", vi = '@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}}}', hi = "@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)}}", ui = "@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))}}", gi = "@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)}}", bi = "@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)}}", wi = { class: "tabs underlined mb-md" }, fi = { role: "tablist" }, yi = ["aria-selected", "onClick"], xi = {
|
|
2292
2307
|
key: 0,
|
|
2293
2308
|
class: "tabs filled"
|
|
2294
|
-
},
|
|
2309
|
+
}, ki = { role: "tablist" }, _i = ["aria-selected", "onClick"], zi = ["aria-selected", "onClick"], Si = ["data-gamedate"], Ti = { class: "card" }, Ii = "/game/id/{gameId}", Pi = {
|
|
2295
2310
|
__name: "ScheduleLiga.ce",
|
|
2296
2311
|
props: {
|
|
2297
2312
|
locale: {
|
|
@@ -2318,40 +2333,40 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2318
2333
|
type: String,
|
|
2319
2334
|
default: "true"
|
|
2320
2335
|
},
|
|
2321
|
-
...
|
|
2336
|
+
...sa
|
|
2322
2337
|
},
|
|
2323
2338
|
setup(e) {
|
|
2324
|
-
const t = e, i = { en: ne, hu: se },
|
|
2339
|
+
const t = e, i = { en: ne, hu: se }, a = j(null), r = j(null), l = j(ft()), p = x(() => wt(/* @__PURE__ */ new Date(), o(l), t.locale)), d = x(() => t.scrollToGameDate.toLowerCase() === "true"), g = x(() => oa(r)?.clientHeight ?? 0);
|
|
2325
2340
|
function m(h) {
|
|
2326
2341
|
l.value = h;
|
|
2327
2342
|
}
|
|
2328
|
-
function
|
|
2329
|
-
return
|
|
2343
|
+
function b(h) {
|
|
2344
|
+
return Ze(t.externalGameResolver || Ii, h);
|
|
2330
2345
|
}
|
|
2331
|
-
const
|
|
2346
|
+
const w = x(() => t.isGameTargetExternal ? "_blank" : "_self");
|
|
2332
2347
|
return (h, c) => (n(), u("div", {
|
|
2333
2348
|
ref_key: "mainElement",
|
|
2334
|
-
ref:
|
|
2349
|
+
ref: a
|
|
2335
2350
|
}, [
|
|
2336
|
-
|
|
2351
|
+
f(o(le), {
|
|
2337
2352
|
locale: t.locale,
|
|
2338
2353
|
messages: i
|
|
2339
2354
|
}, {
|
|
2340
2355
|
default: y(({ t: T }) => [
|
|
2341
|
-
|
|
2356
|
+
f(o(ke), null, {
|
|
2342
2357
|
default: y(({ error: L, hasError: C }) => [
|
|
2343
|
-
C ? (n(), N(
|
|
2358
|
+
C ? (n(), N(o(ie), {
|
|
2344
2359
|
key: 0,
|
|
2345
2360
|
error: L
|
|
2346
2361
|
}, null, 8, ["error"])) : _("", !0),
|
|
2347
|
-
|
|
2362
|
+
f(ul, {
|
|
2348
2363
|
locale: e.locale,
|
|
2349
2364
|
timezone: l.value,
|
|
2350
2365
|
"championship-name": e.championshipName,
|
|
2351
|
-
"main-element":
|
|
2366
|
+
"main-element": a.value,
|
|
2352
2367
|
"auto-refresh": t.autoRefresh,
|
|
2353
2368
|
"scroll-offset": g.value,
|
|
2354
|
-
"scroll-to-game-date":
|
|
2369
|
+
"scroll-to-game-date": d.value
|
|
2355
2370
|
}, {
|
|
2356
2371
|
default: y(({
|
|
2357
2372
|
seasons: P,
|
|
@@ -2364,82 +2379,82 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2364
2379
|
isLoading: D,
|
|
2365
2380
|
subPhases: ae,
|
|
2366
2381
|
subPhase: I,
|
|
2367
|
-
selectedMonth:
|
|
2382
|
+
selectedMonth: W,
|
|
2368
2383
|
selectedTeam: J,
|
|
2369
2384
|
selectedTeamGameType: Q,
|
|
2370
|
-
changeSeason:
|
|
2385
|
+
changeSeason: we,
|
|
2371
2386
|
changeMonth: R,
|
|
2372
2387
|
changeSection: ze,
|
|
2373
2388
|
changeTeam: U,
|
|
2374
2389
|
changeTeamType: _t,
|
|
2375
2390
|
changeSubSection: de
|
|
2376
2391
|
}) => [
|
|
2377
|
-
|
|
2392
|
+
f(di, {
|
|
2378
2393
|
ref_key: "selectorElement",
|
|
2379
2394
|
ref: r,
|
|
2380
2395
|
class: "sticky blured-bg",
|
|
2381
2396
|
seasons: P,
|
|
2382
2397
|
"championship-id": z,
|
|
2383
2398
|
months: M,
|
|
2384
|
-
"selected-month":
|
|
2399
|
+
"selected-month": W,
|
|
2385
2400
|
teams: S,
|
|
2386
2401
|
"selected-team": J,
|
|
2387
2402
|
"selected-team-game-type": Q,
|
|
2388
|
-
"onUpdate:championshipId":
|
|
2403
|
+
"onUpdate:championshipId": we,
|
|
2389
2404
|
"onUpdate:selectedMonth": R,
|
|
2390
2405
|
"onUpdate:selectedTeam": U,
|
|
2391
2406
|
"onUpdate:selectedTeamGameType": _t
|
|
2392
2407
|
}, null, 8, ["seasons", "championship-id", "months", "selected-month", "teams", "selected-team", "selected-team-game-type", "onUpdate:championshipId", "onUpdate:selectedMonth", "onUpdate:selectedTeam", "onUpdate:selectedTeamGameType"]),
|
|
2393
|
-
s("nav",
|
|
2394
|
-
s("div",
|
|
2408
|
+
s("nav", wi, [
|
|
2409
|
+
s("div", fi, [
|
|
2395
2410
|
(n(!0), u(A, null, F(k, (K) => (n(), u("button", {
|
|
2396
2411
|
key: K.id,
|
|
2397
2412
|
role: "tab",
|
|
2398
2413
|
type: "button",
|
|
2399
2414
|
"aria-selected": K.phaseName === $,
|
|
2400
2415
|
onClick: (Se) => ze(K.phaseName)
|
|
2401
|
-
}, v(K.phaseName), 9,
|
|
2416
|
+
}, v(K.phaseName), 9, yi))), 128))
|
|
2402
2417
|
])
|
|
2403
2418
|
]),
|
|
2404
|
-
ae.length > 1 ? (n(), u("nav",
|
|
2405
|
-
s("div",
|
|
2419
|
+
ae.length > 1 ? (n(), u("nav", xi, [
|
|
2420
|
+
s("div", ki, [
|
|
2406
2421
|
s("button", {
|
|
2407
2422
|
role: "tab",
|
|
2408
2423
|
type: "button",
|
|
2409
2424
|
"aria-selected": I === "",
|
|
2410
2425
|
onClick: (K) => de("")
|
|
2411
|
-
}, v(T("common.all")), 9,
|
|
2426
|
+
}, v(T("common.all")), 9, _i),
|
|
2412
2427
|
(n(!0), u(A, null, F(ae, ({ phaseTypeName: K }) => (n(), u("button", {
|
|
2413
2428
|
key: K,
|
|
2414
2429
|
role: "tab",
|
|
2415
2430
|
type: "button",
|
|
2416
2431
|
"aria-selected": K === I,
|
|
2417
2432
|
onClick: (Se) => de(K)
|
|
2418
|
-
}, v(K), 9,
|
|
2433
|
+
}, v(K), 9, zi))), 128))
|
|
2419
2434
|
])
|
|
2420
2435
|
])) : _("", !0),
|
|
2421
|
-
t.timezoneSelector ? (n(), N(
|
|
2436
|
+
t.timezoneSelector ? (n(), N(o(za), {
|
|
2422
2437
|
key: t.locale,
|
|
2423
2438
|
class: "is-mb-5",
|
|
2424
2439
|
locale: t.locale,
|
|
2425
2440
|
"current-zone": l.value,
|
|
2426
2441
|
onChange: m
|
|
2427
2442
|
}, null, 8, ["locale", "current-zone"])) : _("", !0),
|
|
2428
|
-
D ? (n(), N(
|
|
2443
|
+
D ? (n(), N(o(Ge), { key: 2 })) : (n(!0), u(A, { key: 3 }, F(E.rows, (K, Se) => (n(), u("div", {
|
|
2429
2444
|
key: Se,
|
|
2430
2445
|
"data-gamedate": Se
|
|
2431
2446
|
}, [
|
|
2432
|
-
s("h6", null, v(
|
|
2433
|
-
s("div",
|
|
2434
|
-
(n(!0), u(A, null, F(K, (zt) => (n(), N(
|
|
2447
|
+
s("h6", null, v(o(Ne)(new Date(Se), "L dddd", l.value, e.locale)), 1),
|
|
2448
|
+
s("div", Ti, [
|
|
2449
|
+
(n(!0), u(A, null, F(K, (zt) => (n(), N(ti, {
|
|
2435
2450
|
key: zt.id,
|
|
2436
2451
|
game: zt,
|
|
2437
|
-
"offset-name":
|
|
2438
|
-
"game-link":
|
|
2439
|
-
target:
|
|
2452
|
+
"offset-name": p.value,
|
|
2453
|
+
"game-link": b,
|
|
2454
|
+
target: w.value
|
|
2440
2455
|
}, null, 8, ["game", "offset-name", "target"]))), 128))
|
|
2441
2456
|
])
|
|
2442
|
-
], 8,
|
|
2457
|
+
], 8, Si))), 128))
|
|
2443
2458
|
]),
|
|
2444
2459
|
_: 2
|
|
2445
2460
|
}, 1032, ["locale", "timezone", "championship-name", "main-element", "auto-refresh", "scroll-offset", "scroll-to-game-date"])
|
|
@@ -2451,7 +2466,7 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2451
2466
|
}, 8, ["locale"])
|
|
2452
2467
|
], 512));
|
|
2453
2468
|
}
|
|
2454
|
-
},
|
|
2469
|
+
}, $i = /* @__PURE__ */ me(Pi, [["styles", [ce, kt, ua, pi, vi, hi, ui, yt, gi, bi]]]), Ve = "live", mt = "default", Ni = 1e3 * 60 * 2, Li = {
|
|
2455
2470
|
index: {
|
|
2456
2471
|
label: "table.blank",
|
|
2457
2472
|
class: "text-start"
|
|
@@ -2515,38 +2530,38 @@ const Sl = { render: ga }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
2515
2530
|
class: "font-bold"
|
|
2516
2531
|
}
|
|
2517
2532
|
};
|
|
2518
|
-
function
|
|
2519
|
-
const i = x(() => (
|
|
2533
|
+
function Ci(e = [], t = []) {
|
|
2534
|
+
const i = x(() => (o(t) || []).filter((p) => p.gameStatus === 1) || []), a = x(() => i.value.length > 0), r = x(() => Ei(o(e) || [], i.value)), l = x(() => Ai(o(e) || [], r.value));
|
|
2520
2535
|
return {
|
|
2521
|
-
isActive:
|
|
2536
|
+
isActive: a,
|
|
2522
2537
|
rows: l
|
|
2523
2538
|
};
|
|
2524
2539
|
}
|
|
2525
|
-
function
|
|
2526
|
-
return
|
|
2527
|
-
const r = t.find((l) => l.homeTeam.id ===
|
|
2528
|
-
if (
|
|
2529
|
-
const
|
|
2530
|
-
|
|
2540
|
+
function Ei(e = [], t = []) {
|
|
2541
|
+
return Da(e).map((a) => {
|
|
2542
|
+
const r = t.find((l) => l.homeTeam.id === a.team.id || l.awayTeam.id === a.team.id);
|
|
2543
|
+
if (a.isActiveGame = !!r, r) {
|
|
2544
|
+
const p = a.team.id === r.homeTeam.id ? [r.homeTeamScore, r.awayTeamScore] : [r.awayTeamScore, r.homeTeamScore];
|
|
2545
|
+
a.score = p.join(":"), a.scoreType = Oi(p), a.points = a.points + Ri(p, r), a.gf = a.gf + p[0], a.ga = a.ga + p[1], a.gd = a.gf - a.ga, a.gamesPlayed = a.gamesPlayed + 1, a.rowClasses = "is-highlighted";
|
|
2531
2546
|
}
|
|
2532
|
-
return
|
|
2547
|
+
return a;
|
|
2533
2548
|
});
|
|
2534
2549
|
}
|
|
2535
|
-
function
|
|
2550
|
+
function Ri(e, t) {
|
|
2536
2551
|
const i = t.isOvertime || t.isShootout;
|
|
2537
2552
|
return e[0] > e[1] ? i ? 2 : 3 : e[0] < e[1] ? i ? 1 : 0 : 1;
|
|
2538
2553
|
}
|
|
2539
|
-
function
|
|
2540
|
-
const i =
|
|
2541
|
-
return i.map((
|
|
2542
|
-
const r = e.findIndex((
|
|
2543
|
-
return
|
|
2554
|
+
function Ai(e, t) {
|
|
2555
|
+
const i = Ma(t);
|
|
2556
|
+
return i.map((a) => {
|
|
2557
|
+
const r = e.findIndex((p) => a.team.id === p.team.id), l = i.findIndex((p) => a.team.id === p.team.id);
|
|
2558
|
+
return a.diff = r - l, a;
|
|
2544
2559
|
});
|
|
2545
2560
|
}
|
|
2546
|
-
function
|
|
2561
|
+
function Oi(e) {
|
|
2547
2562
|
return e[0] > e[1] ? "W" : e[0] < e[1] ? "L" : "D";
|
|
2548
2563
|
}
|
|
2549
|
-
const
|
|
2564
|
+
const Gi = {
|
|
2550
2565
|
__name: "DataProvider",
|
|
2551
2566
|
props: {
|
|
2552
2567
|
championshipName: {
|
|
@@ -2563,76 +2578,76 @@ const Ai = {
|
|
|
2563
2578
|
}
|
|
2564
2579
|
},
|
|
2565
2580
|
setup(e) {
|
|
2566
|
-
const t = e, i = _e("history"),
|
|
2581
|
+
const t = e, i = _e("history"), a = Z({
|
|
2567
2582
|
championshipName: t.championshipName,
|
|
2568
2583
|
loading: !1,
|
|
2569
2584
|
seasons: [],
|
|
2570
2585
|
championshipId: Number(i.championshipId) || 0,
|
|
2571
2586
|
sections: [],
|
|
2572
2587
|
section: i.section || null,
|
|
2573
|
-
standingsType:
|
|
2574
|
-
}), { onError: r } = be(), { sort: l, change:
|
|
2588
|
+
standingsType: Ve
|
|
2589
|
+
}), { onError: r } = be(), { sort: l, change: p } = ht({
|
|
2575
2590
|
sortTarget: "",
|
|
2576
2591
|
orders: []
|
|
2577
|
-
}), { isLoading:
|
|
2592
|
+
}), { isLoading: d, execute: g } = O({
|
|
2578
2593
|
options: {
|
|
2579
2594
|
path: "/v2/championship-seasons",
|
|
2580
2595
|
apiKey: t.apiKey,
|
|
2581
|
-
params: { championshipName:
|
|
2596
|
+
params: { championshipName: a.championshipName }
|
|
2582
2597
|
},
|
|
2583
|
-
transform: (D) =>
|
|
2598
|
+
transform: (D) => tt(D, a),
|
|
2584
2599
|
onError: r
|
|
2585
|
-
}), { isLoading: m, execute:
|
|
2600
|
+
}), { isLoading: m, execute: b } = O({
|
|
2586
2601
|
options: {
|
|
2587
2602
|
path: "/v2/championship-sections",
|
|
2588
2603
|
apiKey: t.apiKey,
|
|
2589
|
-
params: x(() => ({ championshipId:
|
|
2604
|
+
params: x(() => ({ championshipId: a.championshipId }))
|
|
2590
2605
|
},
|
|
2591
|
-
transform: (D) =>
|
|
2606
|
+
transform: (D) => Fo(D, a),
|
|
2592
2607
|
onError: r
|
|
2593
2608
|
}), {
|
|
2594
|
-
isLoading:
|
|
2609
|
+
isLoading: w,
|
|
2595
2610
|
state: h,
|
|
2596
2611
|
execute: c
|
|
2597
2612
|
} = O({
|
|
2598
2613
|
options: {
|
|
2599
2614
|
path: "/v2/standings",
|
|
2600
2615
|
apiKey: t.apiKey,
|
|
2601
|
-
params: x(() => ({ championshipId:
|
|
2616
|
+
params: x(() => ({ championshipId: a.championshipId, division: a.section }))
|
|
2602
2617
|
},
|
|
2603
2618
|
onError: r
|
|
2604
2619
|
}), { state: T, execute: L } = O({
|
|
2605
2620
|
options: {
|
|
2606
2621
|
path: "/v2/games-list",
|
|
2607
2622
|
apiKey: t.apiKey,
|
|
2608
|
-
params: x(() => ({ championshipId:
|
|
2623
|
+
params: x(() => ({ championshipId: a.championshipId, division: a.section }))
|
|
2609
2624
|
},
|
|
2610
2625
|
onError: r
|
|
2611
|
-
}), { isActive: C, rows: P } =
|
|
2612
|
-
te([g,
|
|
2626
|
+
}), { isActive: C, rows: P } = Ci(h, T), z = x(() => [m.value, d.value, w.value].some(Boolean)), k = x(() => Y(o(h)).teamName().sorted(l).addContinuousIndex().value()), $ = x(() => Y(o(P)).addContinuousIndex().value());
|
|
2627
|
+
te([g, b, c, L]), Co(L, Ni);
|
|
2613
2628
|
function S(D) {
|
|
2614
|
-
|
|
2629
|
+
a.championshipId = D, i.championshipId = D, i.section = null, te([b, c]);
|
|
2615
2630
|
}
|
|
2616
2631
|
function E(D) {
|
|
2617
|
-
|
|
2632
|
+
a.section = D, i.section = D, c();
|
|
2618
2633
|
}
|
|
2619
2634
|
function M(D) {
|
|
2620
|
-
|
|
2635
|
+
a.standingsType = D;
|
|
2621
2636
|
}
|
|
2622
|
-
return (D, ae) =>
|
|
2623
|
-
...
|
|
2624
|
-
sort:
|
|
2637
|
+
return (D, ae) => fe(D.$slots, "default", ye(xe({
|
|
2638
|
+
...a,
|
|
2639
|
+
sort: o(l),
|
|
2625
2640
|
isLoading: z.value,
|
|
2626
|
-
isLiveStandingsActive:
|
|
2641
|
+
isLiveStandingsActive: o(C),
|
|
2627
2642
|
teams: k.value,
|
|
2628
2643
|
liveRows: $.value,
|
|
2629
|
-
onSort:
|
|
2644
|
+
onSort: o(p),
|
|
2630
2645
|
changeSeason: S,
|
|
2631
2646
|
changeSection: E,
|
|
2632
2647
|
onChangeStandingsType: M
|
|
2633
2648
|
})));
|
|
2634
2649
|
}
|
|
2635
|
-
},
|
|
2650
|
+
}, Di = ["href"], Mi = { class: "is-team-name-long" }, Fi = { class: "is-team-name-short" }, Ki = { class: "is-team-name-long" }, ji = { key: 0 }, Bi = { class: "is-team-name-short" }, Vi = { key: 0 }, Et = {
|
|
2636
2651
|
__name: "StandingsTable",
|
|
2637
2652
|
props: {
|
|
2638
2653
|
columns: {
|
|
@@ -2692,24 +2707,24 @@ const Ai = {
|
|
|
2692
2707
|
},
|
|
2693
2708
|
emits: ["sort"],
|
|
2694
2709
|
setup(e, { emit: t }) {
|
|
2695
|
-
const i = e,
|
|
2710
|
+
const i = e, a = t, { columns: r, hideColumns: l } = Mt(i), { onError: p } = be(), { columns: d, error: g } = ee(
|
|
2696
2711
|
r,
|
|
2697
2712
|
l,
|
|
2698
2713
|
x(() => ({
|
|
2699
2714
|
offsetName: i.offsetName
|
|
2700
2715
|
}))
|
|
2701
2716
|
);
|
|
2702
|
-
g.value &&
|
|
2703
|
-
new
|
|
2704
|
-
...
|
|
2717
|
+
g.value && p(
|
|
2718
|
+
new it.WidgetError(it.UndefinedColumn.message, {
|
|
2719
|
+
...it.UndefinedColumn.options,
|
|
2705
2720
|
cause: { column: g.value }
|
|
2706
2721
|
})
|
|
2707
2722
|
);
|
|
2708
|
-
const m = (
|
|
2709
|
-
return (
|
|
2723
|
+
const m = (b) => a("sort", b);
|
|
2724
|
+
return (b, w) => (n(), N(o(oe), null, {
|
|
2710
2725
|
default: y(({ el: h }) => [
|
|
2711
|
-
|
|
2712
|
-
columns:
|
|
2726
|
+
f(o(ge), {
|
|
2727
|
+
columns: o(d),
|
|
2713
2728
|
sort: i.sort,
|
|
2714
2729
|
rows: i.rows,
|
|
2715
2730
|
"is-loading": e.isLoading,
|
|
@@ -2722,7 +2737,7 @@ const Ai = {
|
|
|
2722
2737
|
}, v(c.index), 3)
|
|
2723
2738
|
]),
|
|
2724
2739
|
"cell-teamLogo": y(({ row: c }) => [
|
|
2725
|
-
(n(), N(
|
|
2740
|
+
(n(), N(o(B), {
|
|
2726
2741
|
key: c.team?.id ?? c.id,
|
|
2727
2742
|
class: "is-logo-image",
|
|
2728
2743
|
src: c.team?.logo
|
|
@@ -2734,34 +2749,34 @@ const Ai = {
|
|
|
2734
2749
|
href: e.externalTeamResolver(c.team?.longName),
|
|
2735
2750
|
target: "_blank"
|
|
2736
2751
|
}, [
|
|
2737
|
-
s("span",
|
|
2738
|
-
s("span",
|
|
2752
|
+
s("span", Mi, v(c.team?.longName), 1),
|
|
2753
|
+
s("span", Fi, v(c.team?.shortName), 1),
|
|
2739
2754
|
c.isActiveGame && c.diff !== 0 ? (n(), u("div", {
|
|
2740
2755
|
key: 0,
|
|
2741
2756
|
class: H(["badge mx-sm", { live: c.diff > 0, error: c.diff < 0 }])
|
|
2742
2757
|
}, [
|
|
2743
|
-
c.diff > 0 ? (n(), N(
|
|
2758
|
+
c.diff > 0 ? (n(), N(o(Ct), {
|
|
2744
2759
|
key: 0,
|
|
2745
2760
|
width: "12",
|
|
2746
2761
|
height: "12"
|
|
2747
2762
|
})) : _("", !0),
|
|
2748
|
-
c.diff < 0 ? (n(), N(
|
|
2763
|
+
c.diff < 0 ? (n(), N(o(Lt), {
|
|
2749
2764
|
key: 1,
|
|
2750
2765
|
width: "12",
|
|
2751
2766
|
height: "12"
|
|
2752
2767
|
})) : _("", !0),
|
|
2753
2768
|
s("span", null, v(`${c.diff > 0 ? "+" : ""}${c.diff}`), 1)
|
|
2754
2769
|
], 2)) : _("", !0)
|
|
2755
|
-
], 8,
|
|
2756
|
-
s("span",
|
|
2770
|
+
], 8, Di)) : (n(), u(A, { key: 1 }, [
|
|
2771
|
+
s("span", Ki, [
|
|
2757
2772
|
V(v(c.team?.longName) + " ", 1),
|
|
2758
|
-
c.penaltyPoints ? (n(), u("span",
|
|
2773
|
+
c.penaltyPoints ? (n(), u("span", ji, [...w[0] || (w[0] = [
|
|
2759
2774
|
s("sup", null, "*", -1)
|
|
2760
2775
|
])])) : _("", !0)
|
|
2761
2776
|
]),
|
|
2762
|
-
s("span",
|
|
2777
|
+
s("span", Bi, [
|
|
2763
2778
|
V(v(c.team?.shortName) + " ", 1),
|
|
2764
|
-
c.penaltyPoints ? (n(), u("span",
|
|
2779
|
+
c.penaltyPoints ? (n(), u("span", Vi, [...w[1] || (w[1] = [
|
|
2765
2780
|
s("sup", null, "*", -1)
|
|
2766
2781
|
])])) : _("", !0)
|
|
2767
2782
|
]),
|
|
@@ -2769,12 +2784,12 @@ const Ai = {
|
|
|
2769
2784
|
key: 0,
|
|
2770
2785
|
class: H(["badge mx-sm", { live: c.diff > 0, error: c.diff < 0 }])
|
|
2771
2786
|
}, [
|
|
2772
|
-
c.diff > 0 ? (n(), N(
|
|
2787
|
+
c.diff > 0 ? (n(), N(o(Ct), {
|
|
2773
2788
|
key: 0,
|
|
2774
2789
|
width: "12",
|
|
2775
2790
|
height: "12"
|
|
2776
2791
|
})) : _("", !0),
|
|
2777
|
-
c.diff < 0 ? (n(), N(
|
|
2792
|
+
c.diff < 0 ? (n(), N(o(Lt), {
|
|
2778
2793
|
key: 1,
|
|
2779
2794
|
width: "12",
|
|
2780
2795
|
height: "12"
|
|
@@ -2792,7 +2807,7 @@ const Ai = {
|
|
|
2792
2807
|
}, v(c.score), 3)) : _("", !0)
|
|
2793
2808
|
]),
|
|
2794
2809
|
loading: y(() => [
|
|
2795
|
-
|
|
2810
|
+
f(o(Ge))
|
|
2796
2811
|
]),
|
|
2797
2812
|
_: 1
|
|
2798
2813
|
}, 8, ["columns", "sort", "rows", "is-loading", "append-to"])
|
|
@@ -2800,10 +2815,10 @@ const Ai = {
|
|
|
2800
2815
|
_: 1
|
|
2801
2816
|
}));
|
|
2802
2817
|
}
|
|
2803
|
-
},
|
|
2818
|
+
}, Ui = `@layer components.variables{:where(:host){--mvw-form-label-font-size: var(--font-size-200);--mvw-form-label-color: var(--mvw-text-muted);--mvw-input-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-input-font-size: var(--font-size-400);--mvw-input-border-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-input-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-input-border-radius: var(--radius-2)}}@layer components{:where(.form-field){--_border-color: var(--mvw-input-border-color);--_bg-color: var(--mvw-input-bg-color);--_height: var(--size-32);--_color: var(--mvw-input-color);--_field-padding-block: var(--size-6);--_field-padding-inline: var(--size-10);contain:layout;position:relative;color:var(--mvw-text-default)}:where(.form-field) pre,:where(.form-field) input,:where(.form-field) select{appearance:none;block-size:var(--_height);min-inline-size:0;font-family:inherit;font-size:var(--mvw-input-font-size);color:var(--_color);line-height:var(--font-lineheight-100);background-color:var(--_bg-color);border:var(--field-border-width, 1px) solid var(--_border-color);border-radius:var(--mvw-input-border-radius);padding:var(--_field-padding-block) var(--_field-padding-inline)}:where(.form-field) select{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='%23888' 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 var(--size-6) center;background-size:16px 12px;padding-inline-end:var(--size-24)}:where(.form-field) pre{line-height:var(--font-lineheight-500)}:where(.form-field) input::placeholder{color:rgb(from var(--_color) r g b / 50%)}:where(.form-field) label{display:block;font-size:var(--mvw-form-label-font-size);line-height:var(--font-lineheight-700);color:var(--mvw-form-label-color);text-transform:uppercase;font-weight:700}:where(:where(.form-field).full-width input,:where(.form-field).full-width select){inline-size:100%}}`, Yi = {
|
|
2804
2819
|
key: 0,
|
|
2805
2820
|
class: "tabs filled mb-md"
|
|
2806
|
-
},
|
|
2821
|
+
}, Wi = ["aria-label"], Hi = ["aria-selected", "onClick"], qi = ["aria-selected", "onClick"], Ji = {
|
|
2807
2822
|
__name: "StandingsLiga.ce",
|
|
2808
2823
|
props: {
|
|
2809
2824
|
locale: {
|
|
@@ -2824,26 +2839,26 @@ const Ai = {
|
|
|
2824
2839
|
}
|
|
2825
2840
|
},
|
|
2826
2841
|
setup(e) {
|
|
2827
|
-
const t = e, i = { en: ne, hu: se },
|
|
2828
|
-
return (l,
|
|
2829
|
-
|
|
2842
|
+
const t = e, i = { en: ne, hu: se }, a = j(null), r = (l) => De(t.externalTeamResolver, l);
|
|
2843
|
+
return (l, p) => (n(), u("div", null, [
|
|
2844
|
+
f(o(le), {
|
|
2830
2845
|
locale: t.locale,
|
|
2831
2846
|
messages: i
|
|
2832
2847
|
}, {
|
|
2833
|
-
default: y(({ t:
|
|
2834
|
-
|
|
2848
|
+
default: y(({ t: d }) => [
|
|
2849
|
+
f(o(ke), null, {
|
|
2835
2850
|
default: y(({ error: g, hasError: m }) => [
|
|
2836
|
-
m ? (n(), N(
|
|
2851
|
+
m ? (n(), N(o(ie), {
|
|
2837
2852
|
key: 0,
|
|
2838
2853
|
error: g
|
|
2839
2854
|
}, null, 8, ["error"])) : _("", !0),
|
|
2840
|
-
|
|
2855
|
+
f(Gi, {
|
|
2841
2856
|
locale: e.locale,
|
|
2842
2857
|
"championship-name": e.championshipName
|
|
2843
2858
|
}, {
|
|
2844
2859
|
default: y(({
|
|
2845
|
-
sort:
|
|
2846
|
-
teams:
|
|
2860
|
+
sort: b,
|
|
2861
|
+
teams: w,
|
|
2847
2862
|
seasons: h,
|
|
2848
2863
|
section: c,
|
|
2849
2864
|
sections: T,
|
|
@@ -2857,7 +2872,7 @@ const Ai = {
|
|
|
2857
2872
|
changeSection: E,
|
|
2858
2873
|
onChangeStandingsType: M
|
|
2859
2874
|
}) => [
|
|
2860
|
-
|
|
2875
|
+
f(o(vt), {
|
|
2861
2876
|
seasons: h,
|
|
2862
2877
|
"championship-id": z,
|
|
2863
2878
|
sections: T,
|
|
@@ -2865,49 +2880,49 @@ const Ai = {
|
|
|
2865
2880
|
onOnChangeSeason: S,
|
|
2866
2881
|
onOnChangeSection: E
|
|
2867
2882
|
}, null, 8, ["seasons", "championship-id", "sections", "section-id", "onOnChangeSeason", "onOnChangeSection"]),
|
|
2868
|
-
k ? (n(), u("nav",
|
|
2883
|
+
k ? (n(), u("nav", Yi, [
|
|
2869
2884
|
s("div", {
|
|
2870
2885
|
role: "tablist",
|
|
2871
|
-
"aria-label":
|
|
2886
|
+
"aria-label": d("selection.sections")
|
|
2872
2887
|
}, [
|
|
2873
2888
|
s("button", {
|
|
2874
2889
|
role: "tab",
|
|
2875
2890
|
type: "button",
|
|
2876
|
-
"aria-selected": P ===
|
|
2877
|
-
onClick: (D) => M(
|
|
2878
|
-
}, v(
|
|
2891
|
+
"aria-selected": P === o(Ve),
|
|
2892
|
+
onClick: (D) => M(o(Ve))
|
|
2893
|
+
}, v(d("standings.live")), 9, Hi),
|
|
2879
2894
|
s("button", {
|
|
2880
2895
|
role: "tab",
|
|
2881
2896
|
type: "button",
|
|
2882
|
-
"aria-selected": P ===
|
|
2883
|
-
onClick: (D) => M(
|
|
2884
|
-
}, v(
|
|
2885
|
-
], 8,
|
|
2897
|
+
"aria-selected": P === o(mt),
|
|
2898
|
+
onClick: (D) => M(o(mt))
|
|
2899
|
+
}, v(d("standings.default")), 9, qi)
|
|
2900
|
+
], 8, Wi)
|
|
2886
2901
|
])) : _("", !0),
|
|
2887
|
-
P ===
|
|
2902
|
+
P === o(Ve) && k ? (n(), N(Et, {
|
|
2888
2903
|
key: 1,
|
|
2889
2904
|
rows: L.rows,
|
|
2890
|
-
columns:
|
|
2905
|
+
columns: o(Li),
|
|
2891
2906
|
"external-team-resolver": r,
|
|
2892
2907
|
"is-loading": C,
|
|
2893
|
-
"append-to":
|
|
2908
|
+
"append-to": a.value
|
|
2894
2909
|
}, null, 8, ["rows", "columns", "is-loading", "append-to"])) : _("", !0),
|
|
2895
|
-
P ===
|
|
2910
|
+
P === o(mt) || !k ? (n(), N(Et, {
|
|
2896
2911
|
key: 2,
|
|
2897
|
-
rows:
|
|
2898
|
-
columns:
|
|
2899
|
-
sort:
|
|
2912
|
+
rows: w.rows,
|
|
2913
|
+
columns: o(Xa),
|
|
2914
|
+
sort: b,
|
|
2900
2915
|
"external-team-resolver": r,
|
|
2901
|
-
"append-to":
|
|
2916
|
+
"append-to": a.value,
|
|
2902
2917
|
"is-loading": C,
|
|
2903
2918
|
onSort: $
|
|
2904
2919
|
}, null, 8, ["rows", "columns", "sort", "append-to", "is-loading", "onSort"])) : _("", !0),
|
|
2905
|
-
|
|
2906
|
-
rows:
|
|
2920
|
+
f(o(Tt), {
|
|
2921
|
+
rows: w.rows,
|
|
2907
2922
|
"additional-key": "inheritedPoints"
|
|
2908
2923
|
}, null, 8, ["rows"]),
|
|
2909
|
-
|
|
2910
|
-
rows:
|
|
2924
|
+
f(o(Tt), {
|
|
2925
|
+
rows: w.rows,
|
|
2911
2926
|
"additional-key": "penaltyPoints"
|
|
2912
2927
|
}, null, 8, ["rows"])
|
|
2913
2928
|
]),
|
|
@@ -2915,7 +2930,7 @@ const Ai = {
|
|
|
2915
2930
|
}, 1032, ["locale", "championship-name"]),
|
|
2916
2931
|
s("div", {
|
|
2917
2932
|
ref_key: "tooltipContainer",
|
|
2918
|
-
ref:
|
|
2933
|
+
ref: a
|
|
2919
2934
|
}, null, 512)
|
|
2920
2935
|
]),
|
|
2921
2936
|
_: 2
|
|
@@ -2925,16 +2940,16 @@ const Ai = {
|
|
|
2925
2940
|
}, 8, ["locale"])
|
|
2926
2941
|
]));
|
|
2927
2942
|
}
|
|
2928
|
-
},
|
|
2943
|
+
}, Qi = /* @__PURE__ */ me(Ji, [["styles", [ce, Me, at, ot, Fe, rt, lt, Ui, xt]]]), Oe = "players", Rt = "teams", At = (/* @__PURE__ */ new Map()).set("points", {
|
|
2929
2944
|
api: "/v2/players-stats",
|
|
2930
|
-
columns:
|
|
2945
|
+
columns: je,
|
|
2931
2946
|
sort: {
|
|
2932
2947
|
sortTarget: "points",
|
|
2933
2948
|
orders: [{ target: "points", direction: G }]
|
|
2934
2949
|
}
|
|
2935
2950
|
}).set("goals", {
|
|
2936
2951
|
api: "/v2/players-stats",
|
|
2937
|
-
columns:
|
|
2952
|
+
columns: je,
|
|
2938
2953
|
sort: {
|
|
2939
2954
|
sortTarget: "goals",
|
|
2940
2955
|
orders: [
|
|
@@ -2944,7 +2959,7 @@ const Ai = {
|
|
|
2944
2959
|
}
|
|
2945
2960
|
}).set("assists", {
|
|
2946
2961
|
api: "/v2/players-stats",
|
|
2947
|
-
columns:
|
|
2962
|
+
columns: je,
|
|
2948
2963
|
sort: {
|
|
2949
2964
|
sortTarget: "assists",
|
|
2950
2965
|
orders: [
|
|
@@ -2954,21 +2969,21 @@ const Ai = {
|
|
|
2954
2969
|
}
|
|
2955
2970
|
}).set("plusminus", {
|
|
2956
2971
|
api: "/v2/players-stats",
|
|
2957
|
-
columns:
|
|
2972
|
+
columns: je,
|
|
2958
2973
|
sort: {
|
|
2959
2974
|
sortTarget: "plusMinus",
|
|
2960
2975
|
orders: [{ target: "plusMinus", direction: G }]
|
|
2961
2976
|
}
|
|
2962
2977
|
}).set("playerspenalties", {
|
|
2963
2978
|
api: "/v2/players-penalty",
|
|
2964
|
-
columns:
|
|
2979
|
+
columns: Za,
|
|
2965
2980
|
sort: {
|
|
2966
2981
|
sortTarget: "pim",
|
|
2967
2982
|
orders: [{ target: "pim", direction: G }]
|
|
2968
2983
|
}
|
|
2969
2984
|
}).set("playerstoi", {
|
|
2970
2985
|
api: "/v2/players-toi",
|
|
2971
|
-
columns:
|
|
2986
|
+
columns: eo,
|
|
2972
2987
|
sort: {
|
|
2973
2988
|
sortTarget: "toiMin",
|
|
2974
2989
|
orders: [{ target: "toi", direction: G }]
|
|
@@ -2991,41 +3006,41 @@ const Ai = {
|
|
|
2991
3006
|
}
|
|
2992
3007
|
}).set("teamAttandance", {
|
|
2993
3008
|
api: "/v2/team-attendance",
|
|
2994
|
-
columns:
|
|
3009
|
+
columns: to,
|
|
2995
3010
|
sort: {
|
|
2996
3011
|
sortTarget: "totalAttendanceAvg",
|
|
2997
3012
|
orders: [{ target: "totalAttendanceAvg", direction: G }]
|
|
2998
3013
|
}
|
|
2999
3014
|
}).set("teamFairplay", {
|
|
3000
3015
|
api: "/v2/team-fairplay",
|
|
3001
|
-
columns:
|
|
3016
|
+
columns: ao,
|
|
3002
3017
|
sort: {
|
|
3003
3018
|
sortTarget: "pim",
|
|
3004
3019
|
orders: [{ target: "pim", direction: G }]
|
|
3005
3020
|
}
|
|
3006
3021
|
}).set("teamPenaltiKilling", {
|
|
3007
3022
|
api: "/v2/team-powerplay",
|
|
3008
|
-
columns:
|
|
3023
|
+
columns: oo,
|
|
3009
3024
|
sort: {
|
|
3010
3025
|
sortTarget: "pkPercent",
|
|
3011
3026
|
orders: [{ target: "pkPercent", direction: G }]
|
|
3012
3027
|
}
|
|
3013
3028
|
}).set("teamPowerplay", {
|
|
3014
3029
|
api: "/v2/team-powerplay",
|
|
3015
|
-
columns:
|
|
3030
|
+
columns: ro,
|
|
3016
3031
|
sort: {
|
|
3017
3032
|
sortTarget: "ppPercent",
|
|
3018
3033
|
orders: [{ target: "ppPercent", direction: G }]
|
|
3019
3034
|
}
|
|
3020
3035
|
}).set("teamScoringEfficiency", {
|
|
3021
3036
|
api: "/v2/team-scoring-efficiency",
|
|
3022
|
-
columns:
|
|
3037
|
+
columns: lo,
|
|
3023
3038
|
sort: {
|
|
3024
3039
|
sortTarget: "sp",
|
|
3025
3040
|
orders: [{ target: "sp", direction: G }]
|
|
3026
3041
|
}
|
|
3027
3042
|
});
|
|
3028
|
-
function
|
|
3043
|
+
function Xi(e) {
|
|
3029
3044
|
return [
|
|
3030
3045
|
{
|
|
3031
3046
|
name: e("report.points"),
|
|
@@ -3061,7 +3076,7 @@ function Ji(e) {
|
|
|
3061
3076
|
}
|
|
3062
3077
|
];
|
|
3063
3078
|
}
|
|
3064
|
-
function
|
|
3079
|
+
function Zi(e) {
|
|
3065
3080
|
return [
|
|
3066
3081
|
{
|
|
3067
3082
|
name: e("report.teamAttendance"),
|
|
@@ -3085,10 +3100,10 @@ function Qi(e) {
|
|
|
3085
3100
|
}
|
|
3086
3101
|
];
|
|
3087
3102
|
}
|
|
3088
|
-
function
|
|
3089
|
-
return e.report ? e.report : e.type ? e.type ===
|
|
3103
|
+
function en(e) {
|
|
3104
|
+
return e.report ? e.report : e.type ? e.type === Oe ? "points" : "teamAttandance" : "points";
|
|
3090
3105
|
}
|
|
3091
|
-
const
|
|
3106
|
+
const tn = { class: "flex-container mb-md" }, an = ["value"], on = ["value"], rn = ["value"], ln = { value: null }, nn = ["value"], sn = ["disabled"], cn = { class: "tabs underlined" }, mn = ["aria-label"], dn = ["aria-selected"], pn = ["aria-selected"], vn = {
|
|
3092
3107
|
__name: "StatisticSelector",
|
|
3093
3108
|
props: {
|
|
3094
3109
|
seasons: {
|
|
@@ -3141,33 +3156,33 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3141
3156
|
"onStatTypeChange"
|
|
3142
3157
|
],
|
|
3143
3158
|
setup(e, { emit: t }) {
|
|
3144
|
-
const i = e,
|
|
3159
|
+
const i = e, a = t, { t: r } = q(), l = x({
|
|
3145
3160
|
get: () => i.championshipId,
|
|
3146
|
-
set: (
|
|
3147
|
-
}), d = x({
|
|
3148
|
-
get: () => i.phaseId,
|
|
3149
|
-
set: (b) => o("onSectionChange", b)
|
|
3161
|
+
set: (w) => a("onSeasonChange", w)
|
|
3150
3162
|
}), p = x({
|
|
3163
|
+
get: () => i.phaseId,
|
|
3164
|
+
set: (w) => a("onSectionChange", w)
|
|
3165
|
+
}), d = x({
|
|
3151
3166
|
get: () => i.currentReport,
|
|
3152
|
-
set: (
|
|
3167
|
+
set: (w) => a("onReportChange", w)
|
|
3153
3168
|
}), g = x({
|
|
3154
3169
|
get: () => i.teamFilter,
|
|
3155
|
-
set: (
|
|
3170
|
+
set: (w) => a("onTeamChange", w)
|
|
3156
3171
|
}), m = x({
|
|
3157
3172
|
get: () => i.playerFilter,
|
|
3158
|
-
set: (
|
|
3173
|
+
set: (w) => a("onPlayerInput", w)
|
|
3159
3174
|
});
|
|
3160
|
-
function
|
|
3161
|
-
|
|
3175
|
+
function b(w) {
|
|
3176
|
+
a("onStatTypeChange", w);
|
|
3162
3177
|
}
|
|
3163
|
-
return (
|
|
3164
|
-
s("div",
|
|
3165
|
-
|
|
3166
|
-
label:
|
|
3178
|
+
return (w, h) => (n(), u(A, null, [
|
|
3179
|
+
s("div", tn, [
|
|
3180
|
+
f(o(X), {
|
|
3181
|
+
label: o(r)("selection.season"),
|
|
3167
3182
|
name: "season"
|
|
3168
3183
|
}, {
|
|
3169
3184
|
default: y(() => [
|
|
3170
|
-
|
|
3185
|
+
f(o(pe), {
|
|
3171
3186
|
id: "season",
|
|
3172
3187
|
modelValue: l.value,
|
|
3173
3188
|
"onUpdate:modelValue": h[0] || (h[0] = (c) => l.value = c)
|
|
@@ -3176,49 +3191,49 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3176
3191
|
(n(!0), u(A, null, F(e.seasons, (c) => (n(), u("option", {
|
|
3177
3192
|
key: c.championshipId,
|
|
3178
3193
|
value: c.championshipId
|
|
3179
|
-
}, v(c.seasonName), 9,
|
|
3194
|
+
}, v(c.seasonName), 9, an))), 128))
|
|
3180
3195
|
]),
|
|
3181
3196
|
_: 1
|
|
3182
3197
|
}, 8, ["modelValue"])
|
|
3183
3198
|
]),
|
|
3184
3199
|
_: 1
|
|
3185
3200
|
}, 8, ["label"]),
|
|
3186
|
-
|
|
3187
|
-
label:
|
|
3201
|
+
f(o(X), {
|
|
3202
|
+
label: o(r)("selection.section"),
|
|
3188
3203
|
name: "section"
|
|
3189
3204
|
}, {
|
|
3190
3205
|
default: y(() => [
|
|
3191
|
-
|
|
3206
|
+
f(o(pe), {
|
|
3192
3207
|
id: "section",
|
|
3193
|
-
modelValue:
|
|
3194
|
-
"onUpdate:modelValue": h[1] || (h[1] = (c) =>
|
|
3208
|
+
modelValue: p.value,
|
|
3209
|
+
"onUpdate:modelValue": h[1] || (h[1] = (c) => p.value = c)
|
|
3195
3210
|
}, {
|
|
3196
3211
|
default: y(() => [
|
|
3197
3212
|
(n(!0), u(A, null, F(e.sections, (c) => (n(), u("option", {
|
|
3198
3213
|
key: c.phaseId,
|
|
3199
3214
|
value: c.phaseId
|
|
3200
|
-
}, v(c.phaseName), 9,
|
|
3215
|
+
}, v(c.phaseName), 9, on))), 128))
|
|
3201
3216
|
]),
|
|
3202
3217
|
_: 1
|
|
3203
3218
|
}, 8, ["modelValue"])
|
|
3204
3219
|
]),
|
|
3205
3220
|
_: 1
|
|
3206
3221
|
}, 8, ["label"]),
|
|
3207
|
-
|
|
3208
|
-
label:
|
|
3222
|
+
f(o(X), {
|
|
3223
|
+
label: o(r)("selection.report"),
|
|
3209
3224
|
name: "report"
|
|
3210
3225
|
}, {
|
|
3211
3226
|
default: y(() => [
|
|
3212
|
-
|
|
3227
|
+
f(o(pe), {
|
|
3213
3228
|
id: "report",
|
|
3214
|
-
modelValue:
|
|
3215
|
-
"onUpdate:modelValue": h[2] || (h[2] = (c) =>
|
|
3229
|
+
modelValue: d.value,
|
|
3230
|
+
"onUpdate:modelValue": h[2] || (h[2] = (c) => d.value = c)
|
|
3216
3231
|
}, {
|
|
3217
3232
|
default: y(() => [
|
|
3218
3233
|
(n(!0), u(A, null, F(e.reports, ({ name: c, value: T }) => (n(), u("option", {
|
|
3219
3234
|
key: T,
|
|
3220
3235
|
value: T
|
|
3221
|
-
}, v(c), 9,
|
|
3236
|
+
}, v(c), 9, rn))), 128))
|
|
3222
3237
|
]),
|
|
3223
3238
|
_: 1
|
|
3224
3239
|
}, 8, ["modelValue"])
|
|
@@ -3226,70 +3241,70 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3226
3241
|
_: 1
|
|
3227
3242
|
}, 8, ["label"]),
|
|
3228
3243
|
e.reportType === "players" ? (n(), u(A, { key: 0 }, [
|
|
3229
|
-
|
|
3230
|
-
label:
|
|
3244
|
+
f(o(X), {
|
|
3245
|
+
label: o(r)("selection.teams"),
|
|
3231
3246
|
name: "teams"
|
|
3232
3247
|
}, {
|
|
3233
3248
|
default: y(() => [
|
|
3234
|
-
|
|
3249
|
+
f(o(pe), {
|
|
3235
3250
|
id: "teams",
|
|
3236
3251
|
modelValue: g.value,
|
|
3237
3252
|
"onUpdate:modelValue": h[3] || (h[3] = (c) => g.value = c),
|
|
3238
3253
|
disabled: e.reportType !== "players"
|
|
3239
3254
|
}, {
|
|
3240
3255
|
default: y(() => [
|
|
3241
|
-
s("option",
|
|
3256
|
+
s("option", ln, v(o(r)("common.all")), 1),
|
|
3242
3257
|
(n(!0), u(A, null, F(e.teams, ({ teamId: c, teamName: T }) => (n(), u("option", {
|
|
3243
3258
|
key: c,
|
|
3244
3259
|
value: c
|
|
3245
|
-
}, v(T), 9,
|
|
3260
|
+
}, v(T), 9, nn))), 128))
|
|
3246
3261
|
]),
|
|
3247
3262
|
_: 1
|
|
3248
3263
|
}, 8, ["modelValue", "disabled"])
|
|
3249
3264
|
]),
|
|
3250
3265
|
_: 1
|
|
3251
3266
|
}, 8, ["label"]),
|
|
3252
|
-
|
|
3253
|
-
label:
|
|
3267
|
+
f(o(X), {
|
|
3268
|
+
label: o(r)("selection.filterName"),
|
|
3254
3269
|
name: "player"
|
|
3255
3270
|
}, {
|
|
3256
3271
|
default: y(() => [
|
|
3257
|
-
|
|
3272
|
+
xa(s("input", {
|
|
3258
3273
|
id: "player",
|
|
3259
3274
|
"onUpdate:modelValue": h[4] || (h[4] = (c) => m.value = c),
|
|
3260
3275
|
type: "search",
|
|
3261
3276
|
class: "base-input",
|
|
3262
3277
|
disabled: e.reportType !== "players"
|
|
3263
|
-
}, null, 8,
|
|
3264
|
-
[
|
|
3278
|
+
}, null, 8, sn), [
|
|
3279
|
+
[ka, m.value]
|
|
3265
3280
|
])
|
|
3266
3281
|
]),
|
|
3267
3282
|
_: 1
|
|
3268
3283
|
}, 8, ["label"])
|
|
3269
3284
|
], 64)) : _("", !0)
|
|
3270
3285
|
]),
|
|
3271
|
-
s("nav",
|
|
3286
|
+
s("nav", cn, [
|
|
3272
3287
|
s("div", {
|
|
3273
3288
|
role: "tablist",
|
|
3274
|
-
"aria-label":
|
|
3289
|
+
"aria-label": o(r)("selection.sections")
|
|
3275
3290
|
}, [
|
|
3276
3291
|
s("button", {
|
|
3277
3292
|
role: "tab",
|
|
3278
3293
|
type: "button",
|
|
3279
|
-
"aria-selected": e.reportType ===
|
|
3280
|
-
onClick: h[5] || (h[5] = (c) =>
|
|
3281
|
-
}, v(
|
|
3294
|
+
"aria-selected": e.reportType === o(Oe),
|
|
3295
|
+
onClick: h[5] || (h[5] = (c) => b(o(Oe)))
|
|
3296
|
+
}, v(o(r)("selection.players")), 9, dn),
|
|
3282
3297
|
s("button", {
|
|
3283
3298
|
role: "tab",
|
|
3284
3299
|
type: "button",
|
|
3285
|
-
"aria-selected": e.reportType ===
|
|
3286
|
-
onClick: h[6] || (h[6] = (c) =>
|
|
3287
|
-
}, v(
|
|
3288
|
-
], 8,
|
|
3300
|
+
"aria-selected": e.reportType === o(Rt),
|
|
3301
|
+
onClick: h[6] || (h[6] = (c) => b(o(Rt)))
|
|
3302
|
+
}, v(o(r)("selection.teams")), 9, pn)
|
|
3303
|
+
], 8, mn)
|
|
3289
3304
|
])
|
|
3290
3305
|
], 64));
|
|
3291
3306
|
}
|
|
3292
|
-
},
|
|
3307
|
+
}, hn = {
|
|
3293
3308
|
__name: "StatisticsProvider",
|
|
3294
3309
|
props: {
|
|
3295
3310
|
championshipName: {
|
|
@@ -3310,7 +3325,7 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3310
3325
|
}
|
|
3311
3326
|
},
|
|
3312
3327
|
setup(e) {
|
|
3313
|
-
const t = e, { t: i } = q(), { onError:
|
|
3328
|
+
const t = e, { t: i } = q(), { onError: a } = be(), r = _e("history"), l = Z({
|
|
3314
3329
|
loading: !1,
|
|
3315
3330
|
seasons: [],
|
|
3316
3331
|
championshipId: Number(r.championshipId) || t.championshipId,
|
|
@@ -3320,32 +3335,32 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3320
3335
|
teams: [],
|
|
3321
3336
|
teamFilter: Number(r.teamFilter) || null,
|
|
3322
3337
|
playerFilter: "",
|
|
3323
|
-
reportType: r.type ||
|
|
3338
|
+
reportType: r.type || Oe,
|
|
3324
3339
|
reports: null,
|
|
3325
|
-
currentReport:
|
|
3340
|
+
currentReport: en(r),
|
|
3326
3341
|
rows: [],
|
|
3327
3342
|
columns: null,
|
|
3328
3343
|
api: null,
|
|
3329
3344
|
apiParams: {}
|
|
3330
|
-
}),
|
|
3331
|
-
l.columns =
|
|
3332
|
-
const
|
|
3333
|
-
() => l.reportType ===
|
|
3334
|
-
), { page: g, change: m } = jt(), { sort:
|
|
3345
|
+
}), p = At.get("points");
|
|
3346
|
+
l.columns = p.columns, l.api = p.api;
|
|
3347
|
+
const d = x(
|
|
3348
|
+
() => l.reportType === Oe ? Xi(i) : Zi(i)
|
|
3349
|
+
), { page: g, change: m } = jt(), { sort: b, change: w } = ht({
|
|
3335
3350
|
sortTarget: "points",
|
|
3336
3351
|
orders: [{ target: "points", direction: G }]
|
|
3337
3352
|
});
|
|
3338
3353
|
async function h() {
|
|
3339
3354
|
try {
|
|
3340
3355
|
l.loading = !0;
|
|
3341
|
-
const I = await
|
|
3356
|
+
const I = await Ke("/v2/championship-seasons", t.apiKey, {
|
|
3342
3357
|
championshipName: t.championshipName
|
|
3343
3358
|
});
|
|
3344
3359
|
if (I.length === 0)
|
|
3345
|
-
throw new Vt(
|
|
3360
|
+
throw new Vt(qe.message, qe.options);
|
|
3346
3361
|
l.seasons = Ut(I), l.championshipId || (l.championshipId = Pe(l.seasons).championshipId);
|
|
3347
3362
|
} catch (I) {
|
|
3348
|
-
|
|
3363
|
+
a(I);
|
|
3349
3364
|
} finally {
|
|
3350
3365
|
l.loading = !1;
|
|
3351
3366
|
}
|
|
@@ -3353,12 +3368,12 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3353
3368
|
async function c() {
|
|
3354
3369
|
try {
|
|
3355
3370
|
l.loading = !0;
|
|
3356
|
-
const I = await
|
|
3371
|
+
const I = await Ke("/v2/championship-sections", t.apiKey, {
|
|
3357
3372
|
championshipId: l.championshipId
|
|
3358
3373
|
});
|
|
3359
|
-
l.sections =
|
|
3374
|
+
l.sections = Xt(Fa("phaseName"))(Ka(ja([0, "phases"], I))), l.phaseId = l.phaseId || Pe(l.sections)?.phaseId;
|
|
3360
3375
|
} catch (I) {
|
|
3361
|
-
|
|
3376
|
+
a(I);
|
|
3362
3377
|
} finally {
|
|
3363
3378
|
l.loading = !1;
|
|
3364
3379
|
}
|
|
@@ -3366,17 +3381,17 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3366
3381
|
async function T() {
|
|
3367
3382
|
try {
|
|
3368
3383
|
l.loading = !0, l.rows = [], m(1);
|
|
3369
|
-
const I = await
|
|
3384
|
+
const I = await Ke(l.api, t.apiKey, {
|
|
3370
3385
|
championshipId: l.championshipId,
|
|
3371
3386
|
phaseId: l.phaseId,
|
|
3372
3387
|
...l.apiParams
|
|
3373
3388
|
});
|
|
3374
3389
|
l.rows = Xe(
|
|
3375
3390
|
I,
|
|
3376
|
-
|
|
3391
|
+
Ba,
|
|
3377
3392
|
Yt,
|
|
3378
3393
|
Wt(["mip"]),
|
|
3379
|
-
|
|
3394
|
+
Va([
|
|
3380
3395
|
"dvgTime",
|
|
3381
3396
|
"dvgTimePP1",
|
|
3382
3397
|
"dvgTimePP2",
|
|
@@ -3398,7 +3413,7 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3398
3413
|
])
|
|
3399
3414
|
);
|
|
3400
3415
|
} catch (I) {
|
|
3401
|
-
|
|
3416
|
+
a(I);
|
|
3402
3417
|
} finally {
|
|
3403
3418
|
l.loading = !1;
|
|
3404
3419
|
}
|
|
@@ -3406,22 +3421,22 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3406
3421
|
async function L() {
|
|
3407
3422
|
try {
|
|
3408
3423
|
l.loading = !0, l.rows = [];
|
|
3409
|
-
const I = await
|
|
3424
|
+
const I = await Ke("/v2/championship-teams", t.apiKey, {
|
|
3410
3425
|
championshipId: l.championshipId
|
|
3411
3426
|
});
|
|
3412
|
-
l.teams =
|
|
3427
|
+
l.teams = gt(I);
|
|
3413
3428
|
} catch (I) {
|
|
3414
|
-
|
|
3429
|
+
a(I);
|
|
3415
3430
|
} finally {
|
|
3416
3431
|
l.loading = !1;
|
|
3417
3432
|
}
|
|
3418
3433
|
}
|
|
3419
3434
|
const C = x(
|
|
3420
|
-
() =>
|
|
3435
|
+
() => Y(l.rows).filter(l.teamFilter, [["team", "id"]], !0).filter(l.playerFilter, ["name"]).sorted(b).addIndex(b.sortTarget).pagination(o(g), t.limit).value()
|
|
3421
3436
|
), P = x(() => [(g.value - 1) * t.limit + 1, Math.min(g.value * t.limit, C.value.totalItems)]);
|
|
3422
3437
|
function z() {
|
|
3423
3438
|
const I = At.get(l.currentReport);
|
|
3424
|
-
l.columns = I.columns, l.api = I.api, l.apiParams = I.params || {},
|
|
3439
|
+
l.columns = I.columns, l.api = I.api, l.apiParams = I.params || {}, b.sortTarget = I.sort.sortTarget, b.orders = I.sort.orders;
|
|
3425
3440
|
}
|
|
3426
3441
|
async function k(I) {
|
|
3427
3442
|
l.championshipId = I, r.championshipId = I, l.phaseId = null, r.phaseId = null, await c(), r.section = l.section, await L(), await T();
|
|
@@ -3439,20 +3454,20 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3439
3454
|
m(1), I instanceof Event && (I = I.target.value), l.playerFilter = I;
|
|
3440
3455
|
}
|
|
3441
3456
|
function D(I) {
|
|
3442
|
-
l.reportType = I, l.currentReport = Pe(
|
|
3457
|
+
l.reportType = I, l.currentReport = Pe(d.value).value, l.teamFilter = null, l.playerFilter = "", r.report = l.currentReport, r.teamFilter = null, r.type = I, z(), T();
|
|
3443
3458
|
}
|
|
3444
3459
|
async function ae() {
|
|
3445
3460
|
await h(), await c(), await L(), z(), await T();
|
|
3446
3461
|
}
|
|
3447
|
-
return ae(), (I,
|
|
3462
|
+
return ae(), (I, W) => fe(I.$slots, "default", ye(xe({
|
|
3448
3463
|
...l,
|
|
3449
3464
|
rows: C.value,
|
|
3450
|
-
sort:
|
|
3451
|
-
page:
|
|
3465
|
+
sort: o(b),
|
|
3466
|
+
page: o(g),
|
|
3452
3467
|
range: P.value,
|
|
3453
3468
|
selectorProps: {
|
|
3454
|
-
reports:
|
|
3455
|
-
...
|
|
3469
|
+
reports: d.value,
|
|
3470
|
+
...o(ve)(
|
|
3456
3471
|
[
|
|
3457
3472
|
"seasons",
|
|
3458
3473
|
"championshipId",
|
|
@@ -3475,14 +3490,14 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3475
3490
|
onTeamChange: E,
|
|
3476
3491
|
onPlayerInput: M
|
|
3477
3492
|
},
|
|
3478
|
-
onPaginatorChange:
|
|
3479
|
-
onSort:
|
|
3493
|
+
onPaginatorChange: o(m),
|
|
3494
|
+
onSort: o(w)
|
|
3480
3495
|
})));
|
|
3481
3496
|
}
|
|
3482
|
-
},
|
|
3497
|
+
}, un = "@layer components.variables{:where(:host){--mvw-paginator-color: light-dark(var(--mvw-color-primary-500), var(--mvw-color-primary-400));--mvw-paginator-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-paginator-hover-color: light-dark(var(--mvw-color-primary-700), var(--mvw-color-primary-300));--mvw-paginator-hover-bg-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-900));--mvw-paginator-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700));--mvw-paginator-active-color: light-dark(var(--mvw-color-white), var(--mvw-color-black));--mvw-paginator-active-bg-color: light-dark(var(--mvw-color-primary-900), var(--mvw-color-primary-50));--mvw-paginator-disabled-color: light-dark(var(--mvw-color-primary-200), var(--mvw-color-primary-600))}}@layer components{:where(.paginator){display:flex;flex-direction:row;list-style-type:none;margin:10px 0;padding:0}:where(.paginator) button,:where(.paginator) div{display:flex;align-items:center;justify-content:center;padding:var(--size-6) var(--size-12);text-decoration:none;cursor:pointer;color:var(--mvw-paginator-color);border:1px solid var(--mvw-paginator-border-color);background-color:var(--mvw-paginator-bg-color);margin-left:-1px}:is(:where(.paginator) button,:where(.paginator) div) .icon{width:var(--size-16);height:var(--size-16);margin:0 -4px;max-inline-size:var(--size-16)}:is(:where(.paginator) button,:where(.paginator) div):hover:not(:is(:where(.paginator) button,:where(.paginator) div).is-disabled,:is(:where(.paginator) button,:where(.paginator) div).is-active){color:var(--mvw-paginator-hover-color);background-color:var(--mvw-paginator-hover-bg-color)}:is(:where(.paginator) button,:where(.paginator) div):disabled,:is(:where(.paginator) button,:where(.paginator) div).is-disabled{color:var(--mvw-paginator-disabled-color);background-color:var(--mvw-paginator-bg-color);pointer-events:none;cursor:default}:is(:where(.paginator) button,:where(.paginator) div).is-active{color:var(--mvw-paginator-active-color);background-color:var(--mvw-paginator-active-bg-color);border-color:var(--mvw-paginator-active-bg-color);cursor:default}}", gn = `@layer components.variables{:where(:host){--mvw-form-label-font-size: var(--font-size-200);--mvw-form-label-color: var(--mvw-text-muted);--mvw-input-color: light-dark(var(--mvw-color-primary-800), var(--mvw-color-primary-200));--mvw-input-font-size: var(--font-size-400);--mvw-input-border-color: light-dark(var(--mvw-color-primary-300), var(--mvw-color-primary-700));--mvw-input-bg-color: light-dark(var(--mvw-color-white), var(--mvw-color-primary-950));--mvw-input-border-radius: var(--radius-2)}}@layer components{:where(.form-field){--_border-color: var(--mvw-input-border-color);--_bg-color: var(--mvw-input-bg-color);--_height: var(--size-32);--_color: var(--mvw-input-color);--_field-padding-block: var(--size-6);--_field-padding-inline: var(--size-10);contain:layout;position:relative;color:var(--mvw-text-default)}:where(.form-field) pre,:where(.form-field) input,:where(.form-field) select{appearance:none;block-size:var(--_height);min-inline-size:0;font-family:inherit;font-size:var(--mvw-input-font-size);color:var(--_color);line-height:var(--font-lineheight-100);background-color:var(--_bg-color);border:var(--field-border-width, 1px) solid var(--_border-color);border-radius:var(--mvw-input-border-radius);padding:var(--_field-padding-block) var(--_field-padding-inline)}:where(.form-field) select{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='%23888' 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 var(--size-6) center;background-size:16px 12px;padding-inline-end:var(--size-24)}:where(.form-field) pre{line-height:var(--font-lineheight-500)}:where(.form-field) input::placeholder{color:rgb(from var(--_color) r g b / 50%)}:where(.form-field) label{display:block;font-size:var(--mvw-form-label-font-size);line-height:var(--font-lineheight-700);color:var(--mvw-form-label-color);text-transform:uppercase;font-weight:700}:where(:where(.form-field).full-width input,:where(.form-field).full-width select){inline-size:100%}}`, bn = { class: "grid-container" }, wn = {
|
|
3483
3498
|
key: 0,
|
|
3484
3499
|
class: "text-muted text-end"
|
|
3485
|
-
},
|
|
3500
|
+
}, fn = {
|
|
3486
3501
|
__name: "Statistics.ce",
|
|
3487
3502
|
props: {
|
|
3488
3503
|
locale: {
|
|
@@ -3505,27 +3520,27 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3505
3520
|
type: String,
|
|
3506
3521
|
default: ""
|
|
3507
3522
|
},
|
|
3508
|
-
...
|
|
3509
|
-
...
|
|
3523
|
+
...Gr,
|
|
3524
|
+
...Or
|
|
3510
3525
|
},
|
|
3511
3526
|
setup(e) {
|
|
3512
|
-
const t = e, i = { en: ne, hu: se },
|
|
3513
|
-
return (
|
|
3514
|
-
|
|
3527
|
+
const t = e, i = { en: ne, hu: se }, a = j(null), r = (p) => De(t.externalTeamResolver, p), l = (p) => et(t.externalPlayerLink, p);
|
|
3528
|
+
return (p, d) => (n(), u("div", null, [
|
|
3529
|
+
f(o(le), {
|
|
3515
3530
|
locale: t.locale,
|
|
3516
3531
|
messages: i
|
|
3517
3532
|
}, {
|
|
3518
3533
|
default: y(({ t: g }) => [
|
|
3519
|
-
|
|
3520
|
-
default: y(({ hasError: m, error:
|
|
3521
|
-
|
|
3534
|
+
f(o(ke), null, {
|
|
3535
|
+
default: y(({ hasError: m, error: b }) => [
|
|
3536
|
+
f(hn, {
|
|
3522
3537
|
"championship-name": e.championshipName,
|
|
3523
3538
|
"championship-id": e.championshipId,
|
|
3524
3539
|
limit: t.limit,
|
|
3525
3540
|
"api-key": e.apiKey
|
|
3526
3541
|
}, {
|
|
3527
3542
|
default: y(({
|
|
3528
|
-
sort:
|
|
3543
|
+
sort: w,
|
|
3529
3544
|
columns: h,
|
|
3530
3545
|
rows: c,
|
|
3531
3546
|
page: T,
|
|
@@ -3536,36 +3551,36 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3536
3551
|
onPaginatorChange: k,
|
|
3537
3552
|
onSort: $
|
|
3538
3553
|
}) => [
|
|
3539
|
-
m ? (n(), N(
|
|
3554
|
+
m ? (n(), N(o(ie), {
|
|
3540
3555
|
key: 0,
|
|
3541
|
-
error:
|
|
3542
|
-
}, null, 8, ["error"])) : (n(), N(
|
|
3543
|
-
|
|
3556
|
+
error: b
|
|
3557
|
+
}, null, 8, ["error"])) : (n(), N(vn, pt({ key: 1 }, P, _a(z)), null, 16)),
|
|
3558
|
+
f(o(Sa), {
|
|
3544
3559
|
columns: h,
|
|
3545
3560
|
rows: c.rows,
|
|
3546
|
-
sort:
|
|
3561
|
+
sort: w,
|
|
3547
3562
|
"is-loading": C,
|
|
3548
3563
|
"external-team-resolver": r,
|
|
3549
3564
|
"external-player-resolver": l,
|
|
3550
|
-
"is-team-linked":
|
|
3551
|
-
"is-player-linked":
|
|
3565
|
+
"is-team-linked": p.isTeamLinked,
|
|
3566
|
+
"is-player-linked": p.isPlayerLinked,
|
|
3552
3567
|
"hide-columns": e.hideColumns,
|
|
3553
|
-
"append-to":
|
|
3568
|
+
"append-to": a.value,
|
|
3554
3569
|
onSort: $
|
|
3555
3570
|
}, null, 8, ["columns", "rows", "sort", "is-loading", "is-team-linked", "is-player-linked", "hide-columns", "append-to", "onSort"]),
|
|
3556
|
-
s("div",
|
|
3557
|
-
|
|
3571
|
+
s("div", bn, [
|
|
3572
|
+
f(o(Kt), {
|
|
3558
3573
|
page: T,
|
|
3559
3574
|
"items-per-page": t.limit,
|
|
3560
3575
|
"total-items": c.totalItems,
|
|
3561
3576
|
"range-length": 5,
|
|
3562
3577
|
onChange: k
|
|
3563
3578
|
}, null, 8, ["page", "items-per-page", "total-items", "onChange"]),
|
|
3564
|
-
c.totalItems > 0 ? (n(), u("div",
|
|
3579
|
+
c.totalItems > 0 ? (n(), u("div", wn, v(g("table.info", { min: L[0], max: L[1], total: c.totalItems })), 1)) : _("", !0)
|
|
3565
3580
|
]),
|
|
3566
3581
|
s("div", {
|
|
3567
3582
|
ref_key: "tooltipContainer",
|
|
3568
|
-
ref:
|
|
3583
|
+
ref: a
|
|
3569
3584
|
}, null, 512)
|
|
3570
3585
|
]),
|
|
3571
3586
|
_: 2
|
|
@@ -3578,7 +3593,7 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3578
3593
|
}, 8, ["locale"])
|
|
3579
3594
|
]));
|
|
3580
3595
|
}
|
|
3581
|
-
},
|
|
3596
|
+
}, yn = /* @__PURE__ */ me(fn, [["styles", [ce, Me, at, ot, Fe, rt, lt, un, gn]]]), Ue = "Info", Ye = "Games", We = "Stats", He = "Roster", xn = {
|
|
3582
3597
|
teamKeyIntl: {
|
|
3583
3598
|
label: "table.blank",
|
|
3584
3599
|
class: "text-start"
|
|
@@ -3588,19 +3603,19 @@ const Zi = { class: "flex-container mb-md" }, en = ["value"], tn = ["value"], an
|
|
|
3588
3603
|
class: "text-start"
|
|
3589
3604
|
}
|
|
3590
3605
|
};
|
|
3591
|
-
function
|
|
3606
|
+
function kn(e) {
|
|
3592
3607
|
const t = ve(
|
|
3593
3608
|
["organizationAddresses", "organizationCountry", "organizationEmail", "organizationFoundingDate", "organizationName", "organizationPhoneNumber", "organizationWebpage"],
|
|
3594
3609
|
e
|
|
3595
3610
|
), i = [];
|
|
3596
|
-
for (let [
|
|
3597
|
-
|
|
3611
|
+
for (let [a, r] of Object.entries(t))
|
|
3612
|
+
a === "organizationFoundingDate" && (r = Ne(r, "YYYY")), a === "organizationAddresses" && (r = Ua(r?.headquarter ?? {})), i.push({ teamKey: a, teamValue: r });
|
|
3598
3613
|
return { team: e?.team, organizationInfo: i };
|
|
3599
3614
|
}
|
|
3600
|
-
function
|
|
3601
|
-
return
|
|
3615
|
+
function _n(e) {
|
|
3616
|
+
return Ya($e(["sortOrders"]), e);
|
|
3602
3617
|
}
|
|
3603
|
-
const
|
|
3618
|
+
const zn = {
|
|
3604
3619
|
__name: "DataProvider",
|
|
3605
3620
|
props: {
|
|
3606
3621
|
apiKey: {
|
|
@@ -3621,36 +3636,36 @@ const kn = {
|
|
|
3621
3636
|
}
|
|
3622
3637
|
},
|
|
3623
3638
|
setup(e) {
|
|
3624
|
-
const t = e, i =
|
|
3625
|
-
page:
|
|
3626
|
-
teamId: Number(
|
|
3627
|
-
championshipId: Number(
|
|
3639
|
+
const t = e, i = ft(), a = _e("history"), r = Z({
|
|
3640
|
+
page: a.page || Ue,
|
|
3641
|
+
teamId: Number(a.teamId) || Number(t.teamId),
|
|
3642
|
+
championshipId: Number(a.championshipId) || Number(t.championshipId),
|
|
3628
3643
|
statistics: {},
|
|
3629
3644
|
isStatsLoading: !1
|
|
3630
|
-
}), { onError: l } = be(), { state:
|
|
3645
|
+
}), { onError: l } = be(), { state: p } = O({
|
|
3631
3646
|
options: {
|
|
3632
3647
|
path: "/v2/team-info",
|
|
3633
3648
|
apiKey: t.apiKey,
|
|
3634
3649
|
params: x(() => ({ championshipId: r.championshipId, teamId: r.teamId })),
|
|
3635
3650
|
immediate: !0
|
|
3636
3651
|
},
|
|
3637
|
-
transform: (k) =>
|
|
3652
|
+
transform: (k) => kn(k),
|
|
3638
3653
|
onError: l
|
|
3639
|
-
}), { state:
|
|
3654
|
+
}), { state: d, execute: g } = O({
|
|
3640
3655
|
options: {
|
|
3641
3656
|
path: "/v2/team-games",
|
|
3642
3657
|
apiKey: t.apiKey,
|
|
3643
3658
|
params: x(() => ({ championshipId: r.championshipId, teamId: r.teamId }))
|
|
3644
3659
|
},
|
|
3645
3660
|
transform: (k) => Xe(
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3661
|
+
bt(k),
|
|
3662
|
+
Wa(i, t.locale),
|
|
3663
|
+
Ht,
|
|
3664
|
+
qt(r.teamId),
|
|
3665
|
+
Jt
|
|
3651
3666
|
),
|
|
3652
3667
|
onError: l
|
|
3653
|
-
}), { state: m, execute:
|
|
3668
|
+
}), { state: m, execute: b } = O({
|
|
3654
3669
|
options: {
|
|
3655
3670
|
path: "/v2/championship-players",
|
|
3656
3671
|
apiKey: t.apiKey,
|
|
@@ -3658,13 +3673,13 @@ const kn = {
|
|
|
3658
3673
|
},
|
|
3659
3674
|
transform: (k) => Ha(k, r.teamId),
|
|
3660
3675
|
onError: l
|
|
3661
|
-
}), { state:
|
|
3676
|
+
}), { state: w, execute: h } = O({
|
|
3662
3677
|
options: {
|
|
3663
3678
|
path: "/v2/players-stats",
|
|
3664
3679
|
apiKey: t.apiKey,
|
|
3665
3680
|
params: x(() => ({ championshipId: r.championshipId }))
|
|
3666
3681
|
},
|
|
3667
|
-
transform: (k) =>
|
|
3682
|
+
transform: (k) => nt(k, r.teamId),
|
|
3668
3683
|
onError: l
|
|
3669
3684
|
}), { state: c, execute: T } = O({
|
|
3670
3685
|
options: {
|
|
@@ -3672,7 +3687,7 @@ const kn = {
|
|
|
3672
3687
|
apiKey: t.apiKey,
|
|
3673
3688
|
params: x(() => ({ championshipId: r.championshipId }))
|
|
3674
3689
|
},
|
|
3675
|
-
transform: (k) =>
|
|
3690
|
+
transform: (k) => nt(k, r.teamId),
|
|
3676
3691
|
onError: l
|
|
3677
3692
|
}), { state: L, execute: C } = O({
|
|
3678
3693
|
options: {
|
|
@@ -3680,35 +3695,35 @@ const kn = {
|
|
|
3680
3695
|
apiKey: t.apiKey,
|
|
3681
3696
|
params: x(() => ({ championshipId: r.championshipId }))
|
|
3682
3697
|
},
|
|
3683
|
-
transform: (k) =>
|
|
3698
|
+
transform: (k) => nt(k, r.teamId),
|
|
3684
3699
|
onError: l
|
|
3685
3700
|
});
|
|
3686
3701
|
ue(
|
|
3687
|
-
|
|
3702
|
+
a,
|
|
3688
3703
|
() => {
|
|
3689
|
-
z(
|
|
3704
|
+
z(a.page);
|
|
3690
3705
|
},
|
|
3691
3706
|
{
|
|
3692
3707
|
immediate: !0
|
|
3693
3708
|
}
|
|
3694
3709
|
);
|
|
3695
3710
|
function P(k) {
|
|
3696
|
-
r.page = k,
|
|
3711
|
+
r.page = k, a.page = k;
|
|
3697
3712
|
}
|
|
3698
3713
|
function z(k) {
|
|
3699
3714
|
switch (k) {
|
|
3700
|
-
case
|
|
3715
|
+
case Ye:
|
|
3701
3716
|
g();
|
|
3702
3717
|
break;
|
|
3703
|
-
case
|
|
3704
|
-
|
|
3718
|
+
case He:
|
|
3719
|
+
b();
|
|
3705
3720
|
break;
|
|
3706
|
-
case
|
|
3721
|
+
case We:
|
|
3707
3722
|
r.isStatsLoading = !0, te([C, h, T], {
|
|
3708
3723
|
onFinished: () => {
|
|
3709
3724
|
r.isStatsLoading = !1, r.statistics = qa({
|
|
3710
3725
|
goalieStats: L.value,
|
|
3711
|
-
fieldPlayers:
|
|
3726
|
+
fieldPlayers: w.value,
|
|
3712
3727
|
playersPenalty: c.value
|
|
3713
3728
|
});
|
|
3714
3729
|
}
|
|
@@ -3716,9 +3731,9 @@ const kn = {
|
|
|
3716
3731
|
break;
|
|
3717
3732
|
}
|
|
3718
3733
|
}
|
|
3719
|
-
return (k, $) =>
|
|
3734
|
+
return (k, $) => fe(k.$slots, "default", ye(xe({ ...r, games: o(d), teamInfo: o(p), roster: o(m), fieldPlayers: o(w), fieldPlayersPenalty: o(c), onChangePage: P })));
|
|
3720
3735
|
}
|
|
3721
|
-
},
|
|
3736
|
+
}, Sn = {
|
|
3722
3737
|
__name: "Games",
|
|
3723
3738
|
props: {
|
|
3724
3739
|
data: {
|
|
@@ -3731,7 +3746,7 @@ const kn = {
|
|
|
3731
3746
|
}
|
|
3732
3747
|
},
|
|
3733
3748
|
setup(e) {
|
|
3734
|
-
const t = j(null), { t: i } = q(), { columns:
|
|
3749
|
+
const t = j(null), { t: i } = q(), { columns: a } = ee(
|
|
3735
3750
|
ve(
|
|
3736
3751
|
[
|
|
3737
3752
|
"gameDateDate",
|
|
@@ -3745,16 +3760,16 @@ const kn = {
|
|
|
3745
3760
|
"powerplay",
|
|
3746
3761
|
"penaltyKilling"
|
|
3747
3762
|
],
|
|
3748
|
-
|
|
3763
|
+
dt
|
|
3749
3764
|
),
|
|
3750
3765
|
null,
|
|
3751
3766
|
x(() => ({ offsetName: wt(/* @__PURE__ */ new Date(), null, "hu") }))
|
|
3752
3767
|
);
|
|
3753
3768
|
return (r, l) => (n(), u(A, null, [
|
|
3754
|
-
s("h2", null, v(
|
|
3755
|
-
|
|
3769
|
+
s("h2", null, v(o(i)("teams.games")), 1),
|
|
3770
|
+
f(la, {
|
|
3756
3771
|
rows: e.data,
|
|
3757
|
-
columns: a
|
|
3772
|
+
columns: o(a),
|
|
3758
3773
|
"game-resolver": e.gameResolver,
|
|
3759
3774
|
"append-to": t.value
|
|
3760
3775
|
}, null, 8, ["rows", "columns", "game-resolver", "append-to"]),
|
|
@@ -3764,7 +3779,7 @@ const kn = {
|
|
|
3764
3779
|
}, null, 512)
|
|
3765
3780
|
], 64));
|
|
3766
3781
|
}
|
|
3767
|
-
},
|
|
3782
|
+
}, Tn = ["href"], In = ["href"], Pn = {
|
|
3768
3783
|
__name: "Info",
|
|
3769
3784
|
props: {
|
|
3770
3785
|
data: {
|
|
@@ -3773,13 +3788,13 @@ const kn = {
|
|
|
3773
3788
|
}
|
|
3774
3789
|
},
|
|
3775
3790
|
setup(e) {
|
|
3776
|
-
const t = e, i = j(null), { t:
|
|
3777
|
-
return (
|
|
3778
|
-
s("h2", null, v(a
|
|
3779
|
-
|
|
3791
|
+
const t = e, i = j(null), { t: a } = q(), { columns: r } = ee(xn), l = x(() => t.data.map((p) => ({ ...p, teamKeyIntl: a(`teams.info.${p.teamKey}`) })));
|
|
3792
|
+
return (p, d) => (n(), u("div", null, [
|
|
3793
|
+
s("h2", null, v(o(a)("teams.teamInfo")), 1),
|
|
3794
|
+
f(o(oe), null, {
|
|
3780
3795
|
default: y(() => [
|
|
3781
|
-
|
|
3782
|
-
columns:
|
|
3796
|
+
f(o(ge), {
|
|
3797
|
+
columns: o(r),
|
|
3783
3798
|
rows: l.value,
|
|
3784
3799
|
"append-to": i.value
|
|
3785
3800
|
}, {
|
|
@@ -3787,12 +3802,12 @@ const kn = {
|
|
|
3787
3802
|
g.teamKey === "organizationEmail" ? (n(), u("a", {
|
|
3788
3803
|
key: 0,
|
|
3789
3804
|
href: `mailto:${g.teamValue}`
|
|
3790
|
-
}, v(g.teamValue), 9,
|
|
3805
|
+
}, v(g.teamValue), 9, Tn)) : _("", !0),
|
|
3791
3806
|
g.teamKey === "organizationWebpage" ? (n(), u("a", {
|
|
3792
3807
|
key: 1,
|
|
3793
3808
|
href: `https://${g.teamValue}`,
|
|
3794
3809
|
target: "_blank"
|
|
3795
|
-
}, v(g.teamValue), 9,
|
|
3810
|
+
}, v(g.teamValue), 9, In)) : _("", !0)
|
|
3796
3811
|
]),
|
|
3797
3812
|
_: 1
|
|
3798
3813
|
}, 8, ["columns", "rows", "append-to"])
|
|
@@ -3805,7 +3820,7 @@ const kn = {
|
|
|
3805
3820
|
}, null, 512)
|
|
3806
3821
|
]));
|
|
3807
3822
|
}
|
|
3808
|
-
},
|
|
3823
|
+
}, $n = {
|
|
3809
3824
|
__name: "Roster",
|
|
3810
3825
|
props: {
|
|
3811
3826
|
data: {
|
|
@@ -3826,13 +3841,13 @@ const kn = {
|
|
|
3826
3841
|
}
|
|
3827
3842
|
},
|
|
3828
3843
|
setup(e) {
|
|
3829
|
-
const t = j(null), { t: i } = q(), { columns:
|
|
3844
|
+
const t = j(null), { t: i } = q(), { columns: a } = ee($e(["teamName"], _n(ra)));
|
|
3830
3845
|
return (r, l) => (n(), u(A, null, [
|
|
3831
|
-
(n(!0), u(A, null, F(e.data, (
|
|
3832
|
-
s("h2", null, v(
|
|
3833
|
-
|
|
3834
|
-
rows:
|
|
3835
|
-
columns: a
|
|
3846
|
+
(n(!0), u(A, null, F(e.data, (p, d) => (n(), u(A, { key: d }, [
|
|
3847
|
+
s("h2", null, v(o(i)(`teams.${d}`)), 1),
|
|
3848
|
+
f(na, {
|
|
3849
|
+
rows: p,
|
|
3850
|
+
columns: o(a),
|
|
3836
3851
|
"championship-id": e.championshipId,
|
|
3837
3852
|
"player-resolver": e.externalPlayerResolver,
|
|
3838
3853
|
"append-to": t.value
|
|
@@ -3844,7 +3859,7 @@ const kn = {
|
|
|
3844
3859
|
}, null, 512)
|
|
3845
3860
|
], 64));
|
|
3846
3861
|
}
|
|
3847
|
-
},
|
|
3862
|
+
}, Nn = { class: "avatar" }, Ln = ["href", "textContent"], Cn = { class: "avatar" }, En = ["href", "textContent"], Rn = {
|
|
3848
3863
|
__name: "Statistics",
|
|
3849
3864
|
props: {
|
|
3850
3865
|
fieldPlayers: {
|
|
@@ -3889,23 +3904,23 @@ const kn = {
|
|
|
3889
3904
|
"pimPerGame"
|
|
3890
3905
|
],
|
|
3891
3906
|
Ie
|
|
3892
|
-
),
|
|
3893
|
-
return (
|
|
3894
|
-
s("h2", null, v(
|
|
3895
|
-
|
|
3907
|
+
), a = j(null), { t: r } = q(), { columns: l } = ee(t), { columns: p } = ee(i);
|
|
3908
|
+
return (d, g) => (n(), u("div", null, [
|
|
3909
|
+
s("h2", null, v(o(r)("teams.fieldPlayers")), 1),
|
|
3910
|
+
f(o(oe), null, {
|
|
3896
3911
|
default: y(() => [
|
|
3897
|
-
|
|
3898
|
-
columns:
|
|
3912
|
+
f(o(ge), {
|
|
3913
|
+
columns: o(l),
|
|
3899
3914
|
rows: e.fieldPlayers,
|
|
3900
3915
|
"is-loading": e.isLoading,
|
|
3901
|
-
"append-to":
|
|
3916
|
+
"append-to": a.value
|
|
3902
3917
|
}, {
|
|
3903
3918
|
"cell-playerPortrait": y(({ row: m }) => [
|
|
3904
|
-
s("div",
|
|
3905
|
-
(n(), N(
|
|
3919
|
+
s("div", Nn, [
|
|
3920
|
+
(n(), N(o(B), {
|
|
3906
3921
|
key: m.player.playerId,
|
|
3907
3922
|
src: m.player.picture,
|
|
3908
|
-
"default-src":
|
|
3923
|
+
"default-src": o(Je)
|
|
3909
3924
|
}, null, 8, ["src", "default-src"]))
|
|
3910
3925
|
])
|
|
3911
3926
|
]),
|
|
@@ -3913,28 +3928,28 @@ const kn = {
|
|
|
3913
3928
|
s("a", {
|
|
3914
3929
|
href: e.externalPlayerResolver({ ...m, championshipId: e.championshipId }),
|
|
3915
3930
|
textContent: v(m.name)
|
|
3916
|
-
}, null, 8,
|
|
3931
|
+
}, null, 8, Ln)
|
|
3917
3932
|
]),
|
|
3918
3933
|
_: 1
|
|
3919
3934
|
}, 8, ["columns", "rows", "is-loading", "append-to"])
|
|
3920
3935
|
]),
|
|
3921
3936
|
_: 1
|
|
3922
3937
|
}),
|
|
3923
|
-
s("h2", null, v(
|
|
3924
|
-
|
|
3938
|
+
s("h2", null, v(o(r)("teams.goalies")), 1),
|
|
3939
|
+
f(o(oe), null, {
|
|
3925
3940
|
default: y(() => [
|
|
3926
|
-
|
|
3927
|
-
columns:
|
|
3941
|
+
f(o(ge), {
|
|
3942
|
+
columns: o(p),
|
|
3928
3943
|
rows: e.goalies,
|
|
3929
3944
|
"is-loading": e.isLoading,
|
|
3930
|
-
"append-to":
|
|
3945
|
+
"append-to": a.value
|
|
3931
3946
|
}, {
|
|
3932
3947
|
"cell-playerPortrait": y(({ row: m }) => [
|
|
3933
|
-
s("div",
|
|
3934
|
-
(n(), N(
|
|
3948
|
+
s("div", Cn, [
|
|
3949
|
+
(n(), N(o(B), {
|
|
3935
3950
|
key: m.player.playerId,
|
|
3936
3951
|
src: m.player.picture,
|
|
3937
|
-
"default-src":
|
|
3952
|
+
"default-src": o(Je)
|
|
3938
3953
|
}, null, 8, ["src", "default-src"]))
|
|
3939
3954
|
])
|
|
3940
3955
|
]),
|
|
@@ -3942,7 +3957,7 @@ const kn = {
|
|
|
3942
3957
|
s("a", {
|
|
3943
3958
|
href: e.externalPlayerResolver({ ...m, championshipId: e.championshipId }),
|
|
3944
3959
|
textContent: v(m.name)
|
|
3945
|
-
}, null, 8,
|
|
3960
|
+
}, null, 8, En)
|
|
3946
3961
|
]),
|
|
3947
3962
|
_: 1
|
|
3948
3963
|
}, 8, ["columns", "rows", "is-loading", "append-to"])
|
|
@@ -3951,14 +3966,14 @@ const kn = {
|
|
|
3951
3966
|
}),
|
|
3952
3967
|
s("div", {
|
|
3953
3968
|
ref_key: "tooltipContainer",
|
|
3954
|
-
ref:
|
|
3969
|
+
ref: a
|
|
3955
3970
|
}, null, 512)
|
|
3956
3971
|
]));
|
|
3957
3972
|
}
|
|
3958
|
-
},
|
|
3973
|
+
}, An = { class: "mb-md" }, On = { class: "uppercase" }, Gn = {
|
|
3959
3974
|
class: "hero",
|
|
3960
3975
|
style: { "--overlay-radius": "0px" }
|
|
3961
|
-
},
|
|
3976
|
+
}, Dn = { class: "is-main-image" }, Mn = { class: "is-ovarlay-image" }, Fn = { class: "tabs underlined" }, Kn = ["aria-label"], jn = ["aria-selected", "onClick"], Bn = ["aria-selected", "onClick"], Vn = ["aria-selected", "onClick"], Un = ["aria-selected", "onClick"], Yn = {
|
|
3962
3977
|
__name: "Team.ce",
|
|
3963
3978
|
props: {
|
|
3964
3979
|
locale: {
|
|
@@ -3987,102 +4002,102 @@ const kn = {
|
|
|
3987
4002
|
}
|
|
3988
4003
|
},
|
|
3989
4004
|
setup(e) {
|
|
3990
|
-
const t = e, i = { en: ne, hu: se },
|
|
3991
|
-
return (l,
|
|
3992
|
-
|
|
4005
|
+
const t = e, i = { en: ne, hu: se }, a = (l) => et(t.externalPlayerResolver, l), r = (l) => Ze(t.externalGameResolver, l);
|
|
4006
|
+
return (l, p) => (n(), u("div", An, [
|
|
4007
|
+
f(o(le), {
|
|
3993
4008
|
locale: t.locale,
|
|
3994
4009
|
messages: i
|
|
3995
4010
|
}, {
|
|
3996
|
-
default: y(({ t:
|
|
3997
|
-
|
|
4011
|
+
default: y(({ t: d }) => [
|
|
4012
|
+
f(o(ke), null, {
|
|
3998
4013
|
default: y(({ hasError: g, error: m }) => [
|
|
3999
|
-
g ? (n(), N(
|
|
4014
|
+
g ? (n(), N(o(ie), {
|
|
4000
4015
|
key: 0,
|
|
4001
4016
|
error: m
|
|
4002
4017
|
}, null, 8, ["error"])) : _("", !0),
|
|
4003
|
-
|
|
4018
|
+
f(zn, {
|
|
4004
4019
|
"api-key": t.apiKey,
|
|
4005
4020
|
"championship-id": e.championshipId,
|
|
4006
4021
|
"team-id": e.teamId
|
|
4007
4022
|
}, {
|
|
4008
4023
|
default: y(({
|
|
4009
|
-
teamInfo:
|
|
4010
|
-
page:
|
|
4024
|
+
teamInfo: b,
|
|
4025
|
+
page: w,
|
|
4011
4026
|
roster: h,
|
|
4012
4027
|
games: c,
|
|
4013
4028
|
statistics: T,
|
|
4014
4029
|
isStatsLoading: L,
|
|
4015
4030
|
onChangePage: C
|
|
4016
4031
|
}) => [
|
|
4017
|
-
s("h1",
|
|
4018
|
-
s("div",
|
|
4019
|
-
s("div",
|
|
4020
|
-
(n(), N(
|
|
4021
|
-
key:
|
|
4022
|
-
src:
|
|
4032
|
+
s("h1", On, v(b?.team?.longName), 1),
|
|
4033
|
+
s("div", Gn, [
|
|
4034
|
+
s("div", Dn, [
|
|
4035
|
+
(n(), N(o(B), {
|
|
4036
|
+
key: b?.team?.id,
|
|
4037
|
+
src: b?.team?.teamPhoto,
|
|
4023
4038
|
"default-src": "https://www.ersteliga.hu/assets/images/logo_liga@2x.png"
|
|
4024
4039
|
}, null, 8, ["src"]))
|
|
4025
4040
|
]),
|
|
4026
|
-
s("div",
|
|
4027
|
-
(n(), N(
|
|
4028
|
-
key:
|
|
4029
|
-
src:
|
|
4041
|
+
s("div", Mn, [
|
|
4042
|
+
(n(), N(o(B), {
|
|
4043
|
+
key: b?.team?.id,
|
|
4044
|
+
src: b?.team?.logo
|
|
4030
4045
|
}, null, 8, ["src"]))
|
|
4031
4046
|
])
|
|
4032
4047
|
]),
|
|
4033
|
-
s("nav",
|
|
4048
|
+
s("nav", Fn, [
|
|
4034
4049
|
s("div", {
|
|
4035
4050
|
role: "tablist",
|
|
4036
|
-
"aria-label":
|
|
4051
|
+
"aria-label": d("selection.sections")
|
|
4037
4052
|
}, [
|
|
4038
4053
|
s("button", {
|
|
4039
4054
|
role: "tab",
|
|
4040
4055
|
type: "button",
|
|
4041
|
-
"aria-selected":
|
|
4042
|
-
onClick: (P) => C(
|
|
4043
|
-
}, v(
|
|
4056
|
+
"aria-selected": w === o(Ue),
|
|
4057
|
+
onClick: (P) => C(o(Ue))
|
|
4058
|
+
}, v(d("teams.tabs.teamInfo")), 9, jn),
|
|
4044
4059
|
s("button", {
|
|
4045
4060
|
role: "tab",
|
|
4046
4061
|
type: "button",
|
|
4047
|
-
"aria-selected":
|
|
4048
|
-
onClick: (P) => C(
|
|
4049
|
-
}, v(
|
|
4062
|
+
"aria-selected": w === o(Ye),
|
|
4063
|
+
onClick: (P) => C(o(Ye))
|
|
4064
|
+
}, v(d("teams.tabs.games")), 9, Bn),
|
|
4050
4065
|
s("button", {
|
|
4051
4066
|
role: "tab",
|
|
4052
4067
|
type: "button",
|
|
4053
|
-
"aria-selected":
|
|
4054
|
-
onClick: (P) => C(
|
|
4055
|
-
}, v(
|
|
4068
|
+
"aria-selected": w === o(We),
|
|
4069
|
+
onClick: (P) => C(o(We))
|
|
4070
|
+
}, v(d("teams.playerStats")), 9, Vn),
|
|
4056
4071
|
s("button", {
|
|
4057
4072
|
role: "tab",
|
|
4058
4073
|
type: "button",
|
|
4059
|
-
"aria-selected":
|
|
4060
|
-
onClick: (P) => C(
|
|
4061
|
-
}, v(
|
|
4062
|
-
], 8,
|
|
4074
|
+
"aria-selected": w === o(He),
|
|
4075
|
+
onClick: (P) => C(o(He))
|
|
4076
|
+
}, v(d("teams.roster")), 9, Un)
|
|
4077
|
+
], 8, Kn)
|
|
4063
4078
|
]),
|
|
4064
|
-
|
|
4079
|
+
w === o(Ue) ? (n(), N(Pn, {
|
|
4065
4080
|
key: 0,
|
|
4066
|
-
data:
|
|
4081
|
+
data: b.organizationInfo
|
|
4067
4082
|
}, null, 8, ["data"])) : _("", !0),
|
|
4068
|
-
|
|
4083
|
+
w === o(Ye) ? (n(), N(Sn, {
|
|
4069
4084
|
key: 1,
|
|
4070
4085
|
data: c,
|
|
4071
4086
|
"game-resolver": r
|
|
4072
4087
|
}, null, 8, ["data"])) : _("", !0),
|
|
4073
|
-
|
|
4088
|
+
w === o(We) ? (n(), N(Rn, {
|
|
4074
4089
|
key: 2,
|
|
4075
4090
|
"field-players": T.fieldPlayers,
|
|
4076
4091
|
goalies: T.goalies,
|
|
4077
4092
|
"championship-id": e.championshipId,
|
|
4078
4093
|
"is-loading": L,
|
|
4079
|
-
"external-player-resolver":
|
|
4094
|
+
"external-player-resolver": a
|
|
4080
4095
|
}, null, 8, ["field-players", "goalies", "championship-id", "is-loading"])) : _("", !0),
|
|
4081
|
-
|
|
4096
|
+
w === o(He) ? (n(), N($n, {
|
|
4082
4097
|
key: 3,
|
|
4083
4098
|
data: h,
|
|
4084
4099
|
"championship-id": e.championshipId,
|
|
4085
|
-
"external-player-resolver":
|
|
4100
|
+
"external-player-resolver": a
|
|
4086
4101
|
}, null, 8, ["data", "championship-id"])) : _("", !0)
|
|
4087
4102
|
]),
|
|
4088
4103
|
_: 2
|
|
@@ -4095,7 +4110,7 @@ const kn = {
|
|
|
4095
4110
|
}, 8, ["locale"])
|
|
4096
4111
|
]));
|
|
4097
4112
|
}
|
|
4098
|
-
},
|
|
4113
|
+
}, Wn = /* @__PURE__ */ me(Yn, [["styles", [ce, Me, at, ot, Fe, rt, lt, yt, xt, ia]]]), Hn = {
|
|
4099
4114
|
__name: "DataProvider",
|
|
4100
4115
|
props: {
|
|
4101
4116
|
championshipName: {
|
|
@@ -4112,48 +4127,48 @@ const kn = {
|
|
|
4112
4127
|
}
|
|
4113
4128
|
},
|
|
4114
4129
|
setup(e) {
|
|
4115
|
-
const t = e, i = _e("history"),
|
|
4130
|
+
const t = e, i = _e("history"), a = Z({
|
|
4116
4131
|
championshipName: t.championshipName,
|
|
4117
4132
|
seasons: [],
|
|
4118
4133
|
championshipId: Number(i.championshipId) || 0
|
|
4119
|
-
}), { onError: r } = be(), { isLoading: l, execute:
|
|
4134
|
+
}), { onError: r } = be(), { isLoading: l, execute: p } = O({
|
|
4120
4135
|
options: {
|
|
4121
4136
|
path: "/v2/championship-seasons",
|
|
4122
4137
|
apiKey: t.apiKey,
|
|
4123
|
-
params: { championshipName:
|
|
4138
|
+
params: { championshipName: a.championshipName }
|
|
4124
4139
|
},
|
|
4125
|
-
transform: (h) =>
|
|
4140
|
+
transform: (h) => tt(h, a),
|
|
4126
4141
|
onError: r
|
|
4127
4142
|
}), {
|
|
4128
|
-
isLoading:
|
|
4143
|
+
isLoading: d,
|
|
4129
4144
|
state: g,
|
|
4130
4145
|
execute: m
|
|
4131
4146
|
} = O({
|
|
4132
4147
|
options: {
|
|
4133
4148
|
path: "/v2/championship-teams",
|
|
4134
4149
|
apiKey: t.apiKey,
|
|
4135
|
-
params: x(() => ({ championshipId:
|
|
4150
|
+
params: x(() => ({ championshipId: a.championshipId }))
|
|
4136
4151
|
},
|
|
4137
|
-
transform:
|
|
4152
|
+
transform: gt,
|
|
4138
4153
|
onError: r
|
|
4139
|
-
}),
|
|
4140
|
-
te([
|
|
4141
|
-
function
|
|
4142
|
-
|
|
4154
|
+
}), b = ut([l, d], { delay: 1e3 });
|
|
4155
|
+
te([p, m]);
|
|
4156
|
+
function w(h) {
|
|
4157
|
+
a.championshipId = h, i.championshipId = h, te([m]);
|
|
4143
4158
|
}
|
|
4144
|
-
return (h, c) =>
|
|
4145
|
-
...
|
|
4146
|
-
teams:
|
|
4147
|
-
isLoading:
|
|
4148
|
-
changeSeason:
|
|
4159
|
+
return (h, c) => fe(h.$slots, "default", ye(xe({
|
|
4160
|
+
...a,
|
|
4161
|
+
teams: o(g),
|
|
4162
|
+
isLoading: o(b),
|
|
4163
|
+
changeSeason: w
|
|
4149
4164
|
})));
|
|
4150
4165
|
}
|
|
4151
|
-
},
|
|
4166
|
+
}, qn = {
|
|
4152
4167
|
key: 1,
|
|
4153
4168
|
role: "list",
|
|
4154
4169
|
class: "grid-container",
|
|
4155
4170
|
style: { "--min-width": "80px", "--max-width": "160px", "--gap": "calc(var(--size-16) * 2)", "--align-items": "start" }
|
|
4156
|
-
},
|
|
4171
|
+
}, Jn = ["href"], Qn = { class: "text-center" }, Xn = {
|
|
4157
4172
|
__name: "Teams.ce",
|
|
4158
4173
|
props: {
|
|
4159
4174
|
locale: {
|
|
@@ -4175,50 +4190,50 @@ const kn = {
|
|
|
4175
4190
|
},
|
|
4176
4191
|
setup(e) {
|
|
4177
4192
|
const t = e, i = { en: ne, hu: se };
|
|
4178
|
-
function
|
|
4179
|
-
return
|
|
4193
|
+
function a(r, l) {
|
|
4194
|
+
return De(t.externalTeamResolver, { team: { id: r }, championshipId: l });
|
|
4180
4195
|
}
|
|
4181
4196
|
return (r, l) => (n(), u("div", null, [
|
|
4182
|
-
|
|
4197
|
+
f(o(le), {
|
|
4183
4198
|
locale: t.locale,
|
|
4184
4199
|
messages: i
|
|
4185
4200
|
}, {
|
|
4186
4201
|
default: y(() => [
|
|
4187
|
-
|
|
4188
|
-
default: y(({ error:
|
|
4189
|
-
|
|
4202
|
+
f(o(ke), null, {
|
|
4203
|
+
default: y(({ error: p, hasError: d }) => [
|
|
4204
|
+
d ? (n(), N(o(ie), {
|
|
4190
4205
|
key: 0,
|
|
4191
|
-
error:
|
|
4206
|
+
error: p
|
|
4192
4207
|
}, null, 8, ["error"])) : _("", !0),
|
|
4193
|
-
|
|
4208
|
+
d ? _("", !0) : (n(), N(Hn, {
|
|
4194
4209
|
key: 1,
|
|
4195
4210
|
"api-key": t.apiKey,
|
|
4196
4211
|
locale: e.locale,
|
|
4197
4212
|
"championship-name": e.championshipName
|
|
4198
4213
|
}, {
|
|
4199
|
-
default: y(({ teams: g, seasons: m, isLoading:
|
|
4200
|
-
|
|
4214
|
+
default: y(({ teams: g, seasons: m, isLoading: b, championshipId: w, changeSeason: h }) => [
|
|
4215
|
+
f(o(vt), {
|
|
4201
4216
|
seasons: m,
|
|
4202
|
-
"championship-id":
|
|
4217
|
+
"championship-id": w,
|
|
4203
4218
|
"is-section-selection-disabled": "",
|
|
4204
4219
|
onOnChangeSeason: h
|
|
4205
4220
|
}, null, 8, ["seasons", "championship-id", "onOnChangeSeason"]),
|
|
4206
|
-
|
|
4221
|
+
b ? (n(), N(o(Ge), { key: 0 })) : (n(), u("div", qn, [
|
|
4207
4222
|
(n(!0), u(A, null, F(g, (c) => (n(), u("div", {
|
|
4208
4223
|
key: c.teamId,
|
|
4209
4224
|
role: "listitem"
|
|
4210
4225
|
}, [
|
|
4211
4226
|
s("a", {
|
|
4212
|
-
href:
|
|
4227
|
+
href: a(c.teamId, w),
|
|
4213
4228
|
class: "text-lg font-bold"
|
|
4214
4229
|
}, [
|
|
4215
|
-
(n(), N(
|
|
4230
|
+
(n(), N(o(B), {
|
|
4216
4231
|
key: c.teamId,
|
|
4217
4232
|
class: "is-team-logo",
|
|
4218
4233
|
src: c.teamLogo
|
|
4219
4234
|
}, null, 8, ["src"])),
|
|
4220
|
-
s("div",
|
|
4221
|
-
], 8,
|
|
4235
|
+
s("div", Qn, v(c.teamName), 1)
|
|
4236
|
+
], 8, Jn)
|
|
4222
4237
|
]))), 128))
|
|
4223
4238
|
]))
|
|
4224
4239
|
]),
|
|
@@ -4232,12 +4247,12 @@ const kn = {
|
|
|
4232
4247
|
}, 8, ["locale"])
|
|
4233
4248
|
]));
|
|
4234
4249
|
}
|
|
4235
|
-
},
|
|
4236
|
-
function
|
|
4237
|
-
const t = e.reduce((i,
|
|
4238
|
-
return Array.from(t, ([i,
|
|
4250
|
+
}, Zn = /* @__PURE__ */ me(Xn, [["styles", [ce, kt, ua]]]);
|
|
4251
|
+
function es(e) {
|
|
4252
|
+
const t = e.reduce((i, a) => (i.has(a.phaseBaseId) || i.set(a.phaseBaseId, { phaseBaseId: a.phaseBaseId, phaseName: a.phaseName }), i), /* @__PURE__ */ new Map());
|
|
4253
|
+
return Array.from(t, ([i, a]) => a);
|
|
4239
4254
|
}
|
|
4240
|
-
const
|
|
4255
|
+
const ts = { class: "top-list-container" }, as = ["href"], os = { role: "list" }, rs = { class: "is-images avatar" }, ls = ["href"], is = ["href"], ns = ["textContent"], Te = {
|
|
4241
4256
|
__name: "List",
|
|
4242
4257
|
props: {
|
|
4243
4258
|
title: {
|
|
@@ -4262,7 +4277,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4262
4277
|
},
|
|
4263
4278
|
statResolver: {
|
|
4264
4279
|
type: Function,
|
|
4265
|
-
default:
|
|
4280
|
+
default: Le
|
|
4266
4281
|
},
|
|
4267
4282
|
externalId: {
|
|
4268
4283
|
type: String,
|
|
@@ -4270,60 +4285,60 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4270
4285
|
}
|
|
4271
4286
|
},
|
|
4272
4287
|
setup(e) {
|
|
4273
|
-
return (t, i) => (n(), u("div",
|
|
4288
|
+
return (t, i) => (n(), u("div", ts, [
|
|
4274
4289
|
s("h2", null, [
|
|
4275
4290
|
V(v(e.title) + " ", 1),
|
|
4276
4291
|
s("a", {
|
|
4277
4292
|
href: e.statResolver(e.externalId)
|
|
4278
4293
|
}, [
|
|
4279
|
-
|
|
4280
|
-
], 8,
|
|
4294
|
+
f(o(Sl))
|
|
4295
|
+
], 8, as)
|
|
4281
4296
|
]),
|
|
4282
|
-
s("div",
|
|
4283
|
-
(n(!0), u(A, null, F(e.list, (
|
|
4284
|
-
key:
|
|
4297
|
+
s("div", os, [
|
|
4298
|
+
(n(!0), u(A, null, F(e.list, (a, r) => (n(), u("div", {
|
|
4299
|
+
key: a.player.playerId,
|
|
4285
4300
|
role: "listitem",
|
|
4286
4301
|
class: H({ "is-large": r === 0 })
|
|
4287
4302
|
}, [
|
|
4288
|
-
s("div",
|
|
4289
|
-
|
|
4303
|
+
s("div", rs, [
|
|
4304
|
+
f(o(B), {
|
|
4290
4305
|
class: "is-player truncate",
|
|
4291
|
-
src:
|
|
4292
|
-
"default-src":
|
|
4306
|
+
src: a.player.picture,
|
|
4307
|
+
"default-src": o(Je)
|
|
4293
4308
|
}, null, 8, ["src", "default-src"])
|
|
4294
4309
|
]),
|
|
4295
4310
|
s("a", {
|
|
4296
|
-
href: e.playerResolver(
|
|
4311
|
+
href: e.playerResolver(a),
|
|
4297
4312
|
class: "is-player truncate"
|
|
4298
|
-
}, v(
|
|
4313
|
+
}, v(a.name), 9, ls),
|
|
4299
4314
|
s("a", {
|
|
4300
|
-
href: e.teamResolver(
|
|
4315
|
+
href: e.teamResolver(a),
|
|
4301
4316
|
class: "is-team truncate"
|
|
4302
|
-
}, v(
|
|
4317
|
+
}, v(a.team.longName), 9, is),
|
|
4303
4318
|
s("span", {
|
|
4304
|
-
textContent: v(
|
|
4305
|
-
}, null, 8,
|
|
4319
|
+
textContent: v(a[e.dataKey])
|
|
4320
|
+
}, null, 8, ns)
|
|
4306
4321
|
], 2))), 128))
|
|
4307
4322
|
])
|
|
4308
4323
|
]));
|
|
4309
4324
|
}
|
|
4310
|
-
},
|
|
4325
|
+
}, ss = "@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)}}", cs = '@layer components.variables{:where(:host){--mvw-top-list-bg-color: var(--mvw-color-primary-900);--mvw-top-list-title-color: var(--mvw-color-primary-50);--mvw-top-list-title-separator-color: var(--mvw-color-primary-700);--mvw-top-list-value-color: var(--mvw-color-primary-300);--mvw-top-list-player-separator-color: var(--mvw-color-primary-800);--mvw-top-list-image-border-color: var(--mvw-color-primary-600);--mvw-top-list-image-bg-color: var(--mvw-color-primary-800);--mvw-top-list-selector-border-color: var(--mvw-color-primary-400)}}@layer components{:where(.liga-top-list){background-color:var(--mvw-top-list-bg-color)}:where(.liga-top-list) .top-list-container{padding:var(--size-16)}:where(.liga-top-list) .top-list-container h2{display:grid;grid-template-columns:1fr auto;align-items:center;padding-block:var(--size-8);font-size:var(--font-size-400);font-weight:700;text-transform:uppercase;color:var(--mvw-top-list-title-color);border-bottom:1px solid var(--mvw-top-list-title-separator-color)}:where(.liga-top-list) .top-list-container h2 svg{display:block;width:14px;height:14px}:where(.liga-top-list) .top-list-container [role=list],:where(.liga-top-list) .top-list-container ul{display:grid;gap:var(--size-8)}:where(.liga-top-list) .top-list-container [role=listitem],:where(.liga-top-list) .top-list-container li{display:grid;grid-template-columns:30px 1fr auto;grid-template-areas:"logo player value" "logo team value";align-items:center;gap:var(--size-4) var(--size-8);padding-block:var(--size-8);font-size:var(--font-size-300);line-height:1;border-bottom:1px solid var(--mvw-top-list-player-separator-color)}:is(:where(.liga-top-list) .top-list-container [role=listitem],:where(.liga-top-list) .top-list-container li) .avatar{--_width: 26px}:is(:where(.liga-top-list) .top-list-container [role=listitem],:where(.liga-top-list) .top-list-container li).is-large{font-size:var(--font-size-400);font-weight:700}:is(:where(.liga-top-list) .top-list-container [role=listitem],:where(.liga-top-list) .top-list-container li).is-large .avatar{--_width: 32px}:is(:where(.liga-top-list) .top-list-container [role=listitem],:where(.liga-top-list) .top-list-container li) a.is-player{grid-area:player}:is(:where(.liga-top-list) .top-list-container [role=listitem],:where(.liga-top-list) .top-list-container li) a.is-team{grid-area:team;font-size:var(--font-size-50)}:is(:where(.liga-top-list) .top-list-container [role=listitem],:where(.liga-top-list) .top-list-container li) span{grid-area:value;font-weight:700;color:var(--mvw-top-list-value-color)}:is(:where(.liga-top-list) .top-list-container [role=listitem],:where(.liga-top-list) .top-list-container li) .is-images{grid-area:logo;justify-self:center}}', ms = "@layer components.variables{:where(:host){--mvw-avatar-border-color: light-dark(var(--mvw-color-primary-100), var(--mvw-color-primary-700))}}@layer components{:where(.avatar){--_width: 20px;display:inline-flex;vertical-align:middle;aspect-ratio:1;inline-size:var(--_width);justify-content:center;overflow:clip;position:relative;border-radius:100%;border:1px solid var(--mvw-avatar-border-color)}:where(.avatar) img{block-size:100%;inline-size:100%;inset:0;object-fit:cover;position:absolute}}", ds = {
|
|
4311
4326
|
class: "liga-top-list",
|
|
4312
4327
|
"data-theme": "dark"
|
|
4313
|
-
},
|
|
4328
|
+
}, ps = {
|
|
4314
4329
|
key: 0,
|
|
4315
4330
|
style: { padding: "1rem" }
|
|
4316
|
-
},
|
|
4331
|
+
}, vs = {
|
|
4317
4332
|
key: 0,
|
|
4318
4333
|
class: "tabs underlined"
|
|
4319
|
-
},
|
|
4334
|
+
}, hs = {
|
|
4320
4335
|
role: "tablist",
|
|
4321
4336
|
class: "liga-top-list-selector"
|
|
4322
|
-
},
|
|
4337
|
+
}, us = ["aria-selected", "onClick"], gs = {
|
|
4323
4338
|
key: 2,
|
|
4324
4339
|
class: "grid-container",
|
|
4325
4340
|
style: { "--min-width": "185px", "--gap": "0" }
|
|
4326
|
-
},
|
|
4341
|
+
}, bs = {
|
|
4327
4342
|
__name: "TopList.ce",
|
|
4328
4343
|
props: {
|
|
4329
4344
|
locale: {
|
|
@@ -4356,23 +4371,23 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4356
4371
|
}
|
|
4357
4372
|
},
|
|
4358
4373
|
setup(e) {
|
|
4359
|
-
const t = e, i = { en: ne, hu: se },
|
|
4374
|
+
const t = e, i = { en: ne, hu: se }, a = j(0), { onError: r, error: l, hasError: p, reset: d } = Bt(), { isLoading: g, state: m, execute: b } = O({
|
|
4360
4375
|
options: {
|
|
4361
4376
|
path: "/v2/championship-sections",
|
|
4362
4377
|
apiKey: t.apiKey,
|
|
4363
4378
|
params: { championshipId: t.championshipId },
|
|
4364
4379
|
immediate: !0
|
|
4365
4380
|
},
|
|
4366
|
-
transform: (U) =>
|
|
4381
|
+
transform: (U) => es(U[0].phases || []),
|
|
4367
4382
|
onSuccess: (U) => {
|
|
4368
|
-
|
|
4383
|
+
a.value = Zt(U)?.phaseBaseId ?? 0, we();
|
|
4369
4384
|
},
|
|
4370
4385
|
onError: r
|
|
4371
|
-
}), { isLoading:
|
|
4386
|
+
}), { isLoading: w, state: h, execute: c } = O({
|
|
4372
4387
|
options: {
|
|
4373
4388
|
path: "/v2/players-stats",
|
|
4374
4389
|
apiKey: t.apiKey,
|
|
4375
|
-
params: x(() => ({ championshipId: t.championshipId, phaseBaseId:
|
|
4390
|
+
params: x(() => ({ championshipId: t.championshipId, phaseBaseId: a.value })),
|
|
4376
4391
|
immediate: !1
|
|
4377
4392
|
},
|
|
4378
4393
|
onError: r
|
|
@@ -4380,7 +4395,7 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4380
4395
|
options: {
|
|
4381
4396
|
path: "/v2/players-goalie",
|
|
4382
4397
|
apiKey: t.apiKey,
|
|
4383
|
-
params: x(() => ({ championshipId: t.championshipId, phaseBaseId:
|
|
4398
|
+
params: x(() => ({ championshipId: t.championshipId, phaseBaseId: a.value, more: !0 })),
|
|
4384
4399
|
immediate: !1
|
|
4385
4400
|
},
|
|
4386
4401
|
onError: r
|
|
@@ -4388,114 +4403,114 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4388
4403
|
options: {
|
|
4389
4404
|
path: "/v2/players-penalty",
|
|
4390
4405
|
apiKey: t.apiKey,
|
|
4391
|
-
params: x(() => ({ championshipId: t.championshipId, phaseBaseId:
|
|
4406
|
+
params: x(() => ({ championshipId: t.championshipId, phaseBaseId: a.value })),
|
|
4392
4407
|
immediate: !1
|
|
4393
4408
|
},
|
|
4394
4409
|
onError: r
|
|
4395
|
-
}), $ =
|
|
4410
|
+
}), $ = Lo([w, T, P, g], Boolean), S = x(() => Y(h.value).sorted({
|
|
4396
4411
|
sortTarget: "points",
|
|
4397
4412
|
orders: [{ target: "points", direction: G }, { target: "goals", direction: G }]
|
|
4398
|
-
}).slice(t.limit).playerName().value()), E = x(() =>
|
|
4413
|
+
}).slice(t.limit).playerName().value()), E = x(() => Y(h.value).sorted({
|
|
4399
4414
|
sortTarget: "goals",
|
|
4400
4415
|
orders: [{ target: "goals", direction: G }, { target: "assists", direction: G }]
|
|
4401
|
-
}).slice(t.limit).playerName().value()), M = x(() =>
|
|
4416
|
+
}).slice(t.limit).playerName().value()), M = x(() => Y(h.value).sorted({
|
|
4402
4417
|
sortTarget: "assists",
|
|
4403
4418
|
orders: [{ target: "assists", direction: G }, { target: "goals", direction: G }]
|
|
4404
|
-
}).slice(t.limit).playerName().value()), D = x(() =>
|
|
4419
|
+
}).slice(t.limit).playerName().value()), D = x(() => Y(h.value).sorted({
|
|
4405
4420
|
sortTarget: "plusMinus",
|
|
4406
4421
|
orders: [{ target: "plusMinus", direction: G }]
|
|
4407
|
-
}).slice(t.limit).playerName().value()), ae = x(() =>
|
|
4422
|
+
}).slice(t.limit).playerName().value()), ae = x(() => Y(L.value).sorted({
|
|
4408
4423
|
sortTarget: "svsPercent",
|
|
4409
4424
|
orders: [{ target: "svsPercent", direction: G }]
|
|
4410
|
-
}).slice(t.limit).playerName().value()), I = x(() =>
|
|
4425
|
+
}).slice(t.limit).playerName().value()), I = x(() => Y(z.value).sorted({
|
|
4411
4426
|
sortTarget: "pim",
|
|
4412
4427
|
orders: [{ target: "pim", direction: G }]
|
|
4413
|
-
}).slice(t.limit).playerName().value()),
|
|
4414
|
-
function
|
|
4428
|
+
}).slice(t.limit).playerName().value()), W = (U) => et(t.externalPlayerResolver, { ...U, championshipId: t.championshipId }), J = (U) => De(t.externalTeamResolver, { ...U, championshipId: t.championshipId }), Q = (U) => Qa(t.externalStatisticResolver, { id: U });
|
|
4429
|
+
function we() {
|
|
4415
4430
|
c(), C(), k();
|
|
4416
4431
|
}
|
|
4417
4432
|
function R(U) {
|
|
4418
|
-
|
|
4433
|
+
a.value = U, we();
|
|
4419
4434
|
}
|
|
4420
4435
|
function ze() {
|
|
4421
|
-
|
|
4436
|
+
d(), b(), we();
|
|
4422
4437
|
}
|
|
4423
|
-
return (U, _t) => (n(), N(
|
|
4438
|
+
return (U, _t) => (n(), N(o(le), {
|
|
4424
4439
|
locale: t.locale,
|
|
4425
4440
|
messages: i
|
|
4426
4441
|
}, {
|
|
4427
4442
|
default: y(({ t: de }) => [
|
|
4428
|
-
s("div",
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
error:
|
|
4443
|
+
s("div", ds, [
|
|
4444
|
+
o(p) ? (n(), u("div", ps, [
|
|
4445
|
+
f(o(ie), {
|
|
4446
|
+
error: o(l),
|
|
4432
4447
|
"use-retry": "",
|
|
4433
4448
|
onRetry: ze
|
|
4434
4449
|
}, null, 8, ["error"])
|
|
4435
4450
|
])) : (n(), u(A, { key: 1 }, [
|
|
4436
|
-
!
|
|
4437
|
-
s("div",
|
|
4438
|
-
(n(!0), u(A, null, F(
|
|
4451
|
+
!o(Ja)(o(m)) && o(m).length > 1 ? (n(), u("nav", vs, [
|
|
4452
|
+
s("div", hs, [
|
|
4453
|
+
(n(!0), u(A, null, F(o(m), (K) => (n(), u("button", {
|
|
4439
4454
|
key: K.phaseBaseId,
|
|
4440
4455
|
role: "tab",
|
|
4441
4456
|
type: "button",
|
|
4442
|
-
"aria-selected": K.phaseBaseId ===
|
|
4457
|
+
"aria-selected": K.phaseBaseId === a.value,
|
|
4443
4458
|
onClick: (Se) => R(K.phaseBaseId)
|
|
4444
|
-
}, v(K.phaseName), 9,
|
|
4459
|
+
}, v(K.phaseName), 9, us))), 128))
|
|
4445
4460
|
])
|
|
4446
4461
|
])) : _("", !0),
|
|
4447
|
-
|
|
4448
|
-
|
|
4462
|
+
o($) ? (n(), N(o(Ge), { key: 1 })) : (n(), u("div", gs, [
|
|
4463
|
+
f(Te, {
|
|
4449
4464
|
title: de("report.points"),
|
|
4450
4465
|
list: S.value.rows,
|
|
4451
4466
|
"data-key": "points",
|
|
4452
4467
|
"external-id": "points",
|
|
4453
|
-
"player-resolver":
|
|
4468
|
+
"player-resolver": W,
|
|
4454
4469
|
"team-resolver": J,
|
|
4455
4470
|
"stat-resolver": Q
|
|
4456
4471
|
}, null, 8, ["title", "list"]),
|
|
4457
|
-
|
|
4472
|
+
f(Te, {
|
|
4458
4473
|
title: de("report.goals"),
|
|
4459
4474
|
list: E.value.rows,
|
|
4460
4475
|
"data-key": "goals",
|
|
4461
4476
|
"external-id": "goals",
|
|
4462
|
-
"player-resolver":
|
|
4477
|
+
"player-resolver": W,
|
|
4463
4478
|
"team-resolver": J,
|
|
4464
4479
|
"stat-resolver": Q
|
|
4465
4480
|
}, null, 8, ["title", "list"]),
|
|
4466
|
-
|
|
4481
|
+
f(Te, {
|
|
4467
4482
|
title: de("report.assists"),
|
|
4468
4483
|
list: M.value.rows,
|
|
4469
4484
|
"data-key": "assists",
|
|
4470
4485
|
"external-id": "assists",
|
|
4471
|
-
"player-resolver":
|
|
4486
|
+
"player-resolver": W,
|
|
4472
4487
|
"team-resolver": J,
|
|
4473
4488
|
"stat-resolver": Q
|
|
4474
4489
|
}, null, 8, ["title", "list"]),
|
|
4475
|
-
|
|
4490
|
+
f(Te, {
|
|
4476
4491
|
title: de("report.goalies"),
|
|
4477
4492
|
list: ae.value.rows,
|
|
4478
4493
|
"data-key": "svsPercent",
|
|
4479
4494
|
"external-id": "goalies",
|
|
4480
|
-
"player-resolver":
|
|
4495
|
+
"player-resolver": W,
|
|
4481
4496
|
"team-resolver": J,
|
|
4482
4497
|
"stat-resolver": Q
|
|
4483
4498
|
}, null, 8, ["title", "list"]),
|
|
4484
|
-
|
|
4499
|
+
f(Te, {
|
|
4485
4500
|
title: de("report.penalties"),
|
|
4486
4501
|
list: I.value.rows,
|
|
4487
4502
|
"data-key": "pim",
|
|
4488
4503
|
"external-id": "playerspenalties",
|
|
4489
|
-
"player-resolver":
|
|
4504
|
+
"player-resolver": W,
|
|
4490
4505
|
"team-resolver": J,
|
|
4491
4506
|
"stat-resolver": Q
|
|
4492
4507
|
}, null, 8, ["title", "list"]),
|
|
4493
|
-
|
|
4508
|
+
f(Te, {
|
|
4494
4509
|
title: "+/-",
|
|
4495
4510
|
list: D.value.rows,
|
|
4496
4511
|
"data-key": "plusMinus",
|
|
4497
4512
|
"external-id": "plusminus",
|
|
4498
|
-
"player-resolver":
|
|
4513
|
+
"player-resolver": W,
|
|
4499
4514
|
"team-resolver": J,
|
|
4500
4515
|
"stat-resolver": Q
|
|
4501
4516
|
}, null, 8, ["list"])
|
|
@@ -4506,32 +4521,32 @@ const Zn = { class: "top-list-container" }, es = ["href"], ts = { role: "list" }
|
|
|
4506
4521
|
_: 1
|
|
4507
4522
|
}, 8, ["locale"]));
|
|
4508
4523
|
}
|
|
4509
|
-
},
|
|
4510
|
-
function
|
|
4511
|
-
customElements.define("mjsz-vbr-statistics",
|
|
4524
|
+
}, ws = /* @__PURE__ */ me(bs, [["styles", [ce, ss, cs, ms, ca]]]), fs = re(yn), ys = re($i), xs = re(dl), ks = re(Qi), _s = re(Zn), zs = re(Wn), Ss = re(Ar), Ts = re(xr), Is = re(ws);
|
|
4525
|
+
function Ps() {
|
|
4526
|
+
customElements.define("mjsz-vbr-statistics", fs), customElements.define("mjsz-vbr-schedule-liga", ys), customElements.define("mjsz-vbr-playoffs", xs), customElements.define("mjsz-vbr-standings-liga", ks), customElements.define("mjsz-vbr-teams-liga", _s), customElements.define("mjsz-vbr-players-liga", Ss), customElements.define("mjsz-vbr-player-liga", Ts), customElements.define("mjsz-vbr-team-liga", zs), customElements.define("mjsz-vbr-top-list-liga", Is);
|
|
4512
4527
|
}
|
|
4513
|
-
const
|
|
4514
|
-
install: () =>
|
|
4528
|
+
const Os = {
|
|
4529
|
+
install: () => Ps()
|
|
4515
4530
|
};
|
|
4516
4531
|
export {
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4532
|
+
xr as PlayerLiga,
|
|
4533
|
+
Ts as PlayerLigaCE,
|
|
4534
|
+
Ar as PlayersLiga,
|
|
4535
|
+
Ss as PlayersLigaCE,
|
|
4536
|
+
dl as Playoffs,
|
|
4537
|
+
xs as PlayoffsCE,
|
|
4538
|
+
$i as ScheduleLiga,
|
|
4539
|
+
ys as ScheduleLigaCE,
|
|
4540
|
+
Qi as StandingsLiga,
|
|
4541
|
+
ks as StandingsLigaCE,
|
|
4542
|
+
yn as Statistics,
|
|
4543
|
+
fs as StatisticsCE,
|
|
4544
|
+
Wn as TeamLiga,
|
|
4545
|
+
zs as TeamLigaCE,
|
|
4546
|
+
Zn as TeamsLiga,
|
|
4547
|
+
_s as TeamsLigaCE,
|
|
4548
|
+
ws as TopListLiga,
|
|
4549
|
+
Is as TopListLigaCE,
|
|
4550
|
+
Os as default,
|
|
4551
|
+
Ps as register
|
|
4537
4552
|
};
|