@mjsz-vbr-elements/gamecenter 2.40.5 → 2.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.iife.js +2 -2
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +637 -627
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/gamecenter
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.42.0 - 11/03/2026, 07:59:19
|
|
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 { readonly as mt, watch as oe, getCurrentScope as Zt, onScopeDispose as Xt, shallowRef as Ie, shallowReadonly as ct, ref as H, toValue as F, toRef as ea, customRef as ta, isRef as dt, reactive as Ze, computed as
|
|
8
|
+
import { readonly as mt, watch as oe, getCurrentScope as Zt, onScopeDispose as Xt, shallowRef as Ie, shallowReadonly as ct, ref as H, toValue as F, toRef as ea, customRef as ta, isRef as dt, reactive as Ze, computed as p, unref as t, provide as aa, inject as ra, createElementBlock as c, openBlock as n, createElementVNode as o, normalizeStyle as xe, toDisplayString as l, Fragment as y, renderList as E, toRefs as Ve, setBlockTracking as D, createTextVNode as x, createCommentVNode as w, createVNode as f, createBlock as k, normalizeClass as V, renderSlot as Z, withCtx as T, mergeProps as ee, resolveDynamicComponent as vt, withModifiers as oa, defineCustomElement as gt } from "vue";
|
|
9
9
|
import { Image as X, FloatingPanel as q, ResponsiveTable as na, DataTable as ia, I18NProvider as ut, ErrorNotice as ht } from "@mjsz-vbr-elements/core/components";
|
|
10
10
|
import { useVisibilityChange as pt, useI18n as I, useColumns as ne, useSort as sa, useServices as ae, useGameDataSocket as la } from "@mjsz-vbr-elements/core/composables";
|
|
11
11
|
import { rawConvert as Fe, convertSecToMin as K, mergeLeft as ma, convertTimesSecToMin as wt, convertPeriodResults as ca, convertPenaltyCauseName as da, isEmpty as G, convertMinToSec as ft, externalPlayerLinkResolver as va, pick as ga, convertPeriodResultsToArray as ua, filterGoalScorersFromEvents as ha, sortByEventTimeSec as pa, groupLines as Xe, format as ze, offsetName as Te, reject as Ue, pickCoaches as et, playerName as Oe, convertGameOfficials as wa, propEq as fa, upperCase as ya, convert as ba, sortByStartingFive as _e, transformEventsForGameTimeline as ka, resolveApiKey as yt, getWebsocketURL as He, joinOfficals as tt, convertGameEvents as xa, isNotEmpty as J } from "@mjsz-vbr-elements/core/utils";
|
|
@@ -23,26 +23,26 @@ function bt(...e) {
|
|
|
23
23
|
}
|
|
24
24
|
function kt(e, r) {
|
|
25
25
|
function a(...i) {
|
|
26
|
-
return new Promise((s,
|
|
27
|
-
Promise.resolve(e(() => r.apply(this, i), { fn: r, thisArg: this, args: i })).then(s).catch(
|
|
26
|
+
return new Promise((s, d) => {
|
|
27
|
+
Promise.resolve(e(() => r.apply(this, i), { fn: r, thisArg: this, args: i })).then(s).catch(d);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
return a;
|
|
31
31
|
}
|
|
32
32
|
const xt = (e) => e();
|
|
33
33
|
function _a(...e) {
|
|
34
|
-
let r = 0, a, i = !0, s = Re,
|
|
35
|
-
!dt(e[0]) && typeof e[0] == "object" ? { delay: g, trailing: m = !0, leading:
|
|
34
|
+
let r = 0, a, i = !0, s = Re, d, g, m, v, h;
|
|
35
|
+
!dt(e[0]) && typeof e[0] == "object" ? { delay: g, trailing: m = !0, leading: v = !0, rejectOnCancel: h = !1 } = e[0] : [g, m = !0, v = !0, h = !1] = e;
|
|
36
36
|
const u = () => {
|
|
37
37
|
a && (clearTimeout(a), a = void 0, s(), s = Re);
|
|
38
38
|
};
|
|
39
39
|
return (b) => {
|
|
40
|
-
const
|
|
41
|
-
return u(),
|
|
42
|
-
s = h ? L :
|
|
43
|
-
r = Date.now(), i = !0, $(
|
|
44
|
-
}, Math.max(0,
|
|
45
|
-
})), !
|
|
40
|
+
const _ = F(g), z = Date.now() - r, $ = () => d = b();
|
|
41
|
+
return u(), _ <= 0 ? (r = Date.now(), $()) : (z > _ && (v || !i) ? (r = Date.now(), $()) : m && (d = new Promise((N, L) => {
|
|
42
|
+
s = h ? L : N, a = setTimeout(() => {
|
|
43
|
+
r = Date.now(), i = !0, N($()), u();
|
|
44
|
+
}, Math.max(0, _ - z));
|
|
45
|
+
})), !v && !a && (a = setTimeout(() => i = !0, _)), i = !1, d);
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
function Sa(e = xt, r = {}) {
|
|
@@ -52,13 +52,13 @@ function Sa(e = xt, r = {}) {
|
|
|
52
52
|
function s() {
|
|
53
53
|
i.value = !1;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function d() {
|
|
56
56
|
i.value = !0;
|
|
57
57
|
}
|
|
58
58
|
const g = (...m) => {
|
|
59
59
|
i.value && e(...m);
|
|
60
60
|
};
|
|
61
|
-
return { isActive: mt(i), pause: s, resume:
|
|
61
|
+
return { isActive: mt(i), pause: s, resume: d, eventFilter: g };
|
|
62
62
|
}
|
|
63
63
|
function Ae(e) {
|
|
64
64
|
return Array.isArray(e) ? e : [e];
|
|
@@ -72,12 +72,12 @@ function Pa(e, r = 200, a = !1, i = !0, s = !1) {
|
|
|
72
72
|
function $a(e, r = 200, a = !0, i = !0) {
|
|
73
73
|
if (r <= 0)
|
|
74
74
|
return e;
|
|
75
|
-
const s = H(F(e)),
|
|
75
|
+
const s = H(F(e)), d = Pa(() => {
|
|
76
76
|
s.value = e.value;
|
|
77
77
|
}, r, a, i);
|
|
78
|
-
return oe(e, () =>
|
|
78
|
+
return oe(e, () => d()), s;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Na(e, r, a = {}) {
|
|
81
81
|
const {
|
|
82
82
|
eventFilter: i = xt,
|
|
83
83
|
...s
|
|
@@ -91,37 +91,37 @@ function ja(e, r, a = {}) {
|
|
|
91
91
|
s
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ja(e, r, a = {}) {
|
|
95
95
|
const {
|
|
96
96
|
eventFilter: i,
|
|
97
97
|
initialState: s = "active",
|
|
98
|
-
...
|
|
99
|
-
} = a, { eventFilter: g, pause: m, resume:
|
|
100
|
-
return { stop:
|
|
98
|
+
...d
|
|
99
|
+
} = a, { eventFilter: g, pause: m, resume: v, isActive: h } = Sa(i, { initialState: s });
|
|
100
|
+
return { stop: Na(
|
|
101
101
|
e,
|
|
102
102
|
r,
|
|
103
103
|
{
|
|
104
|
-
...
|
|
104
|
+
...d,
|
|
105
105
|
eventFilter: g
|
|
106
106
|
}
|
|
107
|
-
), pause: m, resume:
|
|
107
|
+
), pause: m, resume: v, isActive: h };
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Ea(e, r = 1e3, a = {}) {
|
|
110
110
|
const {
|
|
111
111
|
immediate: i = !0,
|
|
112
112
|
immediateCallback: s = !1
|
|
113
113
|
} = a;
|
|
114
|
-
let
|
|
114
|
+
let d = null;
|
|
115
115
|
const g = Ie(!1);
|
|
116
116
|
function m() {
|
|
117
|
-
|
|
117
|
+
d && (clearInterval(d), d = null);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function v() {
|
|
120
120
|
g.value = !1, m();
|
|
121
121
|
}
|
|
122
122
|
function h() {
|
|
123
123
|
const u = F(r);
|
|
124
|
-
u <= 0 || (g.value = !0, s && e(), m(), g.value && (
|
|
124
|
+
u <= 0 || (g.value = !0, s && e(), m(), g.value && (d = setInterval(e, u)));
|
|
125
125
|
}
|
|
126
126
|
if (i && re && h(), dt(r) || typeof r == "function") {
|
|
127
127
|
const u = oe(r, () => {
|
|
@@ -129,9 +129,9 @@ function Na(e, r = 1e3, a = {}) {
|
|
|
129
129
|
});
|
|
130
130
|
le(u);
|
|
131
131
|
}
|
|
132
|
-
return le(
|
|
132
|
+
return le(v), {
|
|
133
133
|
isActive: ct(g),
|
|
134
|
-
pause:
|
|
134
|
+
pause: v,
|
|
135
135
|
resume: h
|
|
136
136
|
};
|
|
137
137
|
}
|
|
@@ -139,23 +139,23 @@ function Ia(e, r, a = {}) {
|
|
|
139
139
|
const {
|
|
140
140
|
immediate: i = !0,
|
|
141
141
|
immediateCallback: s = !1
|
|
142
|
-
} = a,
|
|
142
|
+
} = a, d = Ie(!1);
|
|
143
143
|
let g;
|
|
144
144
|
function m() {
|
|
145
145
|
g && (clearTimeout(g), g = void 0);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
147
|
+
function v() {
|
|
148
|
+
d.value = !1, m();
|
|
149
149
|
}
|
|
150
150
|
function h(...u) {
|
|
151
|
-
s && e(), m(),
|
|
152
|
-
|
|
151
|
+
s && e(), m(), d.value = !0, g = setTimeout(() => {
|
|
152
|
+
d.value = !1, g = void 0, e(...u);
|
|
153
153
|
}, F(r));
|
|
154
154
|
}
|
|
155
|
-
return i && (
|
|
156
|
-
isPending: ct(
|
|
155
|
+
return i && (d.value = !0, re && h()), le(v), {
|
|
156
|
+
isPending: ct(d),
|
|
157
157
|
start: h,
|
|
158
|
-
stop:
|
|
158
|
+
stop: v
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
function Oa(e, r, a) {
|
|
@@ -177,35 +177,35 @@ function Ma(e) {
|
|
|
177
177
|
function Be(...e) {
|
|
178
178
|
const r = [], a = () => {
|
|
179
179
|
r.forEach((m) => m()), r.length = 0;
|
|
180
|
-
}, i = (m,
|
|
181
|
-
const m = Ae(F(e[0])).filter((
|
|
182
|
-
return m.every((
|
|
183
|
-
}),
|
|
180
|
+
}, i = (m, v, h, u) => (m.addEventListener(v, h, u), () => m.removeEventListener(v, h, u)), s = p(() => {
|
|
181
|
+
const m = Ae(F(e[0])).filter((v) => v != null);
|
|
182
|
+
return m.every((v) => typeof v != "string") ? m : void 0;
|
|
183
|
+
}), d = Oa(
|
|
184
184
|
() => {
|
|
185
|
-
var m,
|
|
185
|
+
var m, v;
|
|
186
186
|
return [
|
|
187
|
-
(
|
|
187
|
+
(v = (m = s.value) == null ? void 0 : m.map((h) => Ma(h))) != null ? v : [zt].filter((h) => h != null),
|
|
188
188
|
Ae(F(s.value ? e[1] : e[0])),
|
|
189
189
|
Ae(t(s.value ? e[2] : e[1])),
|
|
190
190
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
191
191
|
F(s.value ? e[3] : e[2])
|
|
192
192
|
];
|
|
193
193
|
},
|
|
194
|
-
([m,
|
|
195
|
-
if (a(), !m?.length || !
|
|
194
|
+
([m, v, h, u]) => {
|
|
195
|
+
if (a(), !m?.length || !v?.length || !h?.length)
|
|
196
196
|
return;
|
|
197
197
|
const S = Ta(u) ? { ...u } : u;
|
|
198
198
|
r.push(
|
|
199
199
|
...m.flatMap(
|
|
200
|
-
(b) =>
|
|
201
|
-
(
|
|
200
|
+
(b) => v.flatMap(
|
|
201
|
+
(_) => h.map((z) => i(b, _, z, S))
|
|
202
202
|
)
|
|
203
203
|
)
|
|
204
204
|
);
|
|
205
205
|
},
|
|
206
206
|
{ flush: "post" }
|
|
207
207
|
), g = () => {
|
|
208
|
-
|
|
208
|
+
d(), a();
|
|
209
209
|
};
|
|
210
210
|
return le(a), g;
|
|
211
211
|
}
|
|
@@ -213,20 +213,20 @@ function se(e, r, a = {}) {
|
|
|
213
213
|
const {
|
|
214
214
|
immediate: i = !0,
|
|
215
215
|
immediateCallback: s = !1
|
|
216
|
-
} = a, { start:
|
|
216
|
+
} = a, { start: d } = Ia(m, r, { immediate: i }), g = Ie(!1);
|
|
217
217
|
async function m() {
|
|
218
|
-
g.value && (await e(),
|
|
218
|
+
g.value && (await e(), d());
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
g.value || (g.value = !0, s && e(),
|
|
220
|
+
function v() {
|
|
221
|
+
g.value || (g.value = !0, s && e(), d());
|
|
222
222
|
}
|
|
223
223
|
function h() {
|
|
224
224
|
g.value = !1;
|
|
225
225
|
}
|
|
226
|
-
return i && re &&
|
|
226
|
+
return i && re && v(), le(h), {
|
|
227
227
|
isActive: g,
|
|
228
228
|
pause: h,
|
|
229
|
-
resume:
|
|
229
|
+
resume: v
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
232
|
function Ye(e = "history", r = {}) {
|
|
@@ -234,10 +234,10 @@ function Ye(e = "history", r = {}) {
|
|
|
234
234
|
initialValue: a = {},
|
|
235
235
|
removeNullishValues: i = !0,
|
|
236
236
|
removeFalsyValues: s = !1,
|
|
237
|
-
write:
|
|
237
|
+
write: d = !0,
|
|
238
238
|
writeMode: g = "replace",
|
|
239
239
|
window: m = zt,
|
|
240
|
-
stringify:
|
|
240
|
+
stringify: v = (j) => j.toString()
|
|
241
241
|
} = r;
|
|
242
242
|
if (!m)
|
|
243
243
|
return Ze(a);
|
|
@@ -252,7 +252,7 @@ function Ye(e = "history", r = {}) {
|
|
|
252
252
|
return (m.location.hash || "").replace(/^#/, "");
|
|
253
253
|
}
|
|
254
254
|
function S(j) {
|
|
255
|
-
const P =
|
|
255
|
+
const P = v(j);
|
|
256
256
|
if (e === "history")
|
|
257
257
|
return `${P ? `?${P}` : ""}${m.location.hash || ""}`;
|
|
258
258
|
if (e === "hash-params")
|
|
@@ -263,7 +263,7 @@ function Ye(e = "history", r = {}) {
|
|
|
263
263
|
function b() {
|
|
264
264
|
return new URLSearchParams(u());
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function _(j) {
|
|
267
267
|
const P = new Set(Object.keys(h));
|
|
268
268
|
for (const M of j.keys()) {
|
|
269
269
|
const A = j.getAll(M);
|
|
@@ -271,19 +271,19 @@ function Ye(e = "history", r = {}) {
|
|
|
271
271
|
}
|
|
272
272
|
Array.from(P).forEach((M) => delete h[M]);
|
|
273
273
|
}
|
|
274
|
-
const { pause:
|
|
274
|
+
const { pause: z, resume: $ } = ja(
|
|
275
275
|
h,
|
|
276
276
|
() => {
|
|
277
277
|
const j = new URLSearchParams("");
|
|
278
278
|
Object.keys(h).forEach((P) => {
|
|
279
279
|
const M = h[P];
|
|
280
280
|
Array.isArray(M) ? M.forEach((A) => j.append(P, A)) : i && M == null || s && !M ? j.delete(P) : j.set(P, M);
|
|
281
|
-
}),
|
|
281
|
+
}), N(j, !1);
|
|
282
282
|
},
|
|
283
283
|
{ deep: !0 }
|
|
284
284
|
);
|
|
285
|
-
function
|
|
286
|
-
|
|
285
|
+
function N(j, P) {
|
|
286
|
+
z(), P && _(j), g === "replace" ? m.history.replaceState(
|
|
287
287
|
m.history.state,
|
|
288
288
|
m.document.title,
|
|
289
289
|
m.location.pathname + S(j)
|
|
@@ -291,15 +291,15 @@ function Ye(e = "history", r = {}) {
|
|
|
291
291
|
m.history.state,
|
|
292
292
|
m.document.title,
|
|
293
293
|
m.location.pathname + S(j)
|
|
294
|
-
),
|
|
294
|
+
), $();
|
|
295
295
|
}
|
|
296
296
|
function L() {
|
|
297
|
-
|
|
297
|
+
d && N(b(), !0);
|
|
298
298
|
}
|
|
299
299
|
const O = { passive: !0 };
|
|
300
300
|
Be(m, "popstate", L, O), e !== "history" && Be(m, "hashchange", L, O);
|
|
301
301
|
const U = b();
|
|
302
|
-
return U.keys().next().value ?
|
|
302
|
+
return U.keys().next().value ? _(U) : Object.assign(h, a), h;
|
|
303
303
|
}
|
|
304
304
|
const rt = "ping";
|
|
305
305
|
function De(e) {
|
|
@@ -310,13 +310,13 @@ function La(e, r = {}) {
|
|
|
310
310
|
onConnected: a,
|
|
311
311
|
onDisconnected: i,
|
|
312
312
|
onError: s,
|
|
313
|
-
onMessage:
|
|
313
|
+
onMessage: d,
|
|
314
314
|
immediate: g = !0,
|
|
315
315
|
autoConnect: m = !0,
|
|
316
|
-
autoClose:
|
|
316
|
+
autoClose: v = !0,
|
|
317
317
|
protocols: h = []
|
|
318
|
-
} = r, u = H(null), S = Ie("CLOSED"), b = H(),
|
|
319
|
-
let
|
|
318
|
+
} = r, u = H(null), S = Ie("CLOSED"), b = H(), _ = bt(e);
|
|
319
|
+
let z, $, N = !1, L = 0, O = [], U, j;
|
|
320
320
|
const P = () => {
|
|
321
321
|
if (O.length && b.value && S.value === "OPEN") {
|
|
322
322
|
for (const C of O)
|
|
@@ -328,15 +328,15 @@ function La(e, r = {}) {
|
|
|
328
328
|
}, A = () => {
|
|
329
329
|
clearTimeout(j), j = void 0;
|
|
330
330
|
}, me = (C = 1e3, R) => {
|
|
331
|
-
M(), !(!re && !at || !b.value) && (
|
|
331
|
+
M(), !(!re && !at || !b.value) && (N = !0, A(), z?.(), b.value.close(C, R), b.value = void 0);
|
|
332
332
|
}, Qe = (C, R = !0) => !b.value || S.value !== "OPEN" ? (R && O.push(C), !1) : (P(), b.value.send(C), !0), Je = () => {
|
|
333
|
-
if (
|
|
333
|
+
if (N || typeof _.value > "u")
|
|
334
334
|
return;
|
|
335
|
-
const C = new WebSocket(
|
|
335
|
+
const C = new WebSocket(_.value, h);
|
|
336
336
|
b.value = C, S.value = "CONNECTING", C.onopen = () => {
|
|
337
|
-
S.value = "OPEN", L = 0, a?.(C),
|
|
337
|
+
S.value = "OPEN", L = 0, a?.(C), $?.(), P();
|
|
338
338
|
}, C.onclose = (R) => {
|
|
339
|
-
if (S.value = "CLOSED", A(),
|
|
339
|
+
if (S.value = "CLOSED", A(), z?.(), i?.(C, R), !N && r.autoReconnect && (b.value == null || C === b.value)) {
|
|
340
340
|
const {
|
|
341
341
|
retries: Q = -1,
|
|
342
342
|
delay: ce = 1e3,
|
|
@@ -356,7 +356,7 @@ function La(e, r = {}) {
|
|
|
356
356
|
if (R.data === F(ce))
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
u.value = R.data,
|
|
359
|
+
u.value = R.data, d?.(C, R);
|
|
360
360
|
};
|
|
361
361
|
};
|
|
362
362
|
if (r.heartbeat) {
|
|
@@ -364,22 +364,22 @@ function La(e, r = {}) {
|
|
|
364
364
|
message: C = rt,
|
|
365
365
|
interval: R = 1e3,
|
|
366
366
|
pongTimeout: Q = 1e3
|
|
367
|
-
} = De(r.heartbeat), { pause: ce, resume: pe } =
|
|
367
|
+
} = De(r.heartbeat), { pause: ce, resume: pe } = Ea(
|
|
368
368
|
() => {
|
|
369
369
|
Qe(F(C), !1), j == null && (j = setTimeout(() => {
|
|
370
|
-
me(),
|
|
370
|
+
me(), N = !1;
|
|
371
371
|
}, Q));
|
|
372
372
|
},
|
|
373
373
|
R,
|
|
374
374
|
{ immediate: !1 }
|
|
375
375
|
);
|
|
376
|
-
|
|
376
|
+
z = ce, $ = pe;
|
|
377
377
|
}
|
|
378
|
-
|
|
378
|
+
v && (re && Be("beforeunload", () => me(), { passive: !0 }), le(me));
|
|
379
379
|
const Ce = () => {
|
|
380
|
-
!re && !at || (me(),
|
|
380
|
+
!re && !at || (me(), N = !1, L = 0, Je());
|
|
381
381
|
};
|
|
382
|
-
return g && Ce(), m && oe(
|
|
382
|
+
return g && Ce(), m && oe(_, Ce), {
|
|
383
383
|
data: u,
|
|
384
384
|
status: S,
|
|
385
385
|
close: me,
|
|
@@ -429,7 +429,7 @@ const Ca = "Local time", Aa = "Overtime", Da = "Shootout", Ga = "Game sheet", Ha
|
|
|
429
429
|
teamsStats: fr,
|
|
430
430
|
teamMembers: yr,
|
|
431
431
|
penalties: br
|
|
432
|
-
}, kr = { events: "Események", lineups: "Sorok", teamStats: "Csapat statisztikák", playerStats: "Játékos statisztikák", officials: "Hivatalos személyek" }, xr = { coaches: "Edzők", referees: "Játékvezetők", teamOfficials: "Stábtagok", gameOfficials: "Hivatalos személyek", fieldPlayers: "Mezőnyjátékosok", goalies: "Kapusok" }, zr = { Gól: "Gól", Kiállítás: "Kiállítás", Kapus: "Kapus", Idő: "Időkérés", Büntető: "Büntető", goalie: { KI: "Ki", BE: "BE", CSERE: "CSERE" } }, Tr = { all: "Összesen", ot: "Hosszabbítás", so: "Szétlövés", p1: "1. harmad", p2: "2. harmad", p3: "3. harmad", p4: "4. harmad", p5: "5. harmad", p6: "6. harmad" }, _r = { powerPlays: "Emberelőnyök", powerPlaysGoalFor: "Emberelőnyben szerzett gólok", powerPlayEfficiency: "Emberelőny hatékonyság", penaltyKill: "Emberhátrányok", powerPlaysKilled: "Kivédekezett emberhátrányok", penaltyKillEfficiency: "Emberhátrány hatékonyság" }, Sr = { "row-1": "Első sor", "row-2": "Második sor", "row-3": "Harmadik sor", "row-4": "Negyedik sor", "row-gk": "Kapusok" }, Pr = { referee: "Játékvezetők", judge: "Versenybírók", medical: "Egészségügyi személyzet" }, $r = { first_referee: "Játékvezető", second_referee: "Játékvezető", first_line_judge: "Vonalbíró", second_line_judge: "Vonalbíró", first_goal_judge: "Gólbíró", second_goal_judge: "Gólbíró", referee_inspector: "Játékvezető ellenőr", referee_supporter: "Játékvezető támogató", reserve_referee: "Tartalék játékvezető", reserve_linesman: "Tartalék vonalbíró", video_inspector: "Videó ellenőr", recorder_ivr: "Jegyzőkönyvvezető (IVR)", timer: "Időmérő", announcer: "Hangosbemondó", penalty_timer_a: "Büntetés időmérő", penalty_timer_b: "Büntetés időmérő", music: "Zene", sog_statistician_a: "S.O.G. statisztikus", sog_statistician_b: "S.O.G. statisztikus", video_recorder: "Videó-rögzítő", medical: "EÜ személy", doctor: "EÜ személy", federal_inspector: "Szövetségi ellenőr", judge_inspector: "Versenybíró ellenőr", recorder_e_grep: "Jegyzőkönyvvezető (E-Grep)", recorder_manual: "Jegyzőkönyvvezető (Kézi)", recorder_orion: "Jegyzőkönyvvezető (Orion)", toi_statistician_a: "T.O.I. statisztikus", toi_statistician_b: "T.O.I. statisztikus", fos_statistician_a: "F.O.S. statisztikus", fos_statistician_b: "F.O.S. statisztikus", led_wall_operator: "Eredményjelző kezelő", assist_statistician: "Assziszt statisztikus", other: "Egyéb" },
|
|
432
|
+
}, kr = { events: "Események", lineups: "Sorok", teamStats: "Csapat statisztikák", playerStats: "Játékos statisztikák", officials: "Hivatalos személyek" }, xr = { coaches: "Edzők", referees: "Játékvezetők", teamOfficials: "Stábtagok", gameOfficials: "Hivatalos személyek", fieldPlayers: "Mezőnyjátékosok", goalies: "Kapusok" }, zr = { Gól: "Gól", Kiállítás: "Kiállítás", Kapus: "Kapus", Idő: "Időkérés", Büntető: "Büntető", goalie: { KI: "Ki", BE: "BE", CSERE: "CSERE" } }, Tr = { all: "Összesen", ot: "Hosszabbítás", so: "Szétlövés", p1: "1. harmad", p2: "2. harmad", p3: "3. harmad", p4: "4. harmad", p5: "5. harmad", p6: "6. harmad" }, _r = { powerPlays: "Emberelőnyök", powerPlaysGoalFor: "Emberelőnyben szerzett gólok", powerPlayEfficiency: "Emberelőny hatékonyság", penaltyKill: "Emberhátrányok", powerPlaysKilled: "Kivédekezett emberhátrányok", penaltyKillEfficiency: "Emberhátrány hatékonyság" }, Sr = { "row-1": "Első sor", "row-2": "Második sor", "row-3": "Harmadik sor", "row-4": "Negyedik sor", "row-gk": "Kapusok" }, Pr = { referee: "Játékvezetők", judge: "Versenybírók", medical: "Egészségügyi személyzet" }, $r = { first_referee: "Játékvezető", second_referee: "Játékvezető", first_line_judge: "Vonalbíró", second_line_judge: "Vonalbíró", first_goal_judge: "Gólbíró", second_goal_judge: "Gólbíró", referee_inspector: "Játékvezető ellenőr", referee_supporter: "Játékvezető támogató", reserve_referee: "Tartalék játékvezető", reserve_linesman: "Tartalék vonalbíró", video_inspector: "Videó ellenőr", recorder_ivr: "Jegyzőkönyvvezető (IVR)", timer: "Időmérő", announcer: "Hangosbemondó", penalty_timer_a: "Büntetés időmérő", penalty_timer_b: "Büntetés időmérő", music: "Zene", sog_statistician_a: "S.O.G. statisztikus", sog_statistician_b: "S.O.G. statisztikus", video_recorder: "Videó-rögzítő", medical: "EÜ személy", doctor: "EÜ személy", federal_inspector: "Szövetségi ellenőr", judge_inspector: "Versenybíró ellenőr", recorder_e_grep: "Jegyzőkönyvvezető (E-Grep)", recorder_manual: "Jegyzőkönyvvezető (Kézi)", recorder_orion: "Jegyzőkönyvvezető (Orion)", toi_statistician_a: "T.O.I. statisztikus", toi_statistician_b: "T.O.I. statisztikus", fos_statistician_a: "F.O.S. statisztikus", fos_statistician_b: "F.O.S. statisztikus", led_wall_operator: "Eredményjelző kezelő", assist_statistician: "Assziszt statisztikus", other: "Egyéb" }, Nr = {
|
|
433
433
|
menu: kr,
|
|
434
434
|
title: xr,
|
|
435
435
|
eventType: zr,
|
|
@@ -565,49 +565,49 @@ function Se(...e) {
|
|
|
565
565
|
r?.();
|
|
566
566
|
}
|
|
567
567
|
const We = (e) => (e || "").replace(". ", "-");
|
|
568
|
-
function
|
|
568
|
+
function Nt(e) {
|
|
569
569
|
const r = e?.periodResults ?? "";
|
|
570
570
|
let a = ca(r).length;
|
|
571
571
|
return e.isShootout && (a = a - 2), e.isOvertime && (a = a - 1), a;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
const a = e?.actualPeriod ??
|
|
573
|
+
function jr(e, r) {
|
|
574
|
+
const a = e?.actualPeriod ?? Nt(e), i = {};
|
|
575
575
|
e.isShootout && (i.so = [], i.ot = []), e.isOvertime && (i.ot = []);
|
|
576
|
-
for (let
|
|
577
|
-
i[`p${
|
|
576
|
+
for (let d = a; d > 0; d--)
|
|
577
|
+
i[`p${d}`] = [];
|
|
578
578
|
return ma(r, i);
|
|
579
579
|
}
|
|
580
580
|
function ot(e, r, a, i) {
|
|
581
581
|
const s = [];
|
|
582
|
-
let
|
|
582
|
+
let d = 0, g = 0;
|
|
583
583
|
for (let m = 0; m < e.length; m++)
|
|
584
|
-
s.push(`${e[m][r]?.[i] ?? 0}:${e[m][a]?.[i] ?? 0}`),
|
|
585
|
-
return `(${s.join(", ")}) ${
|
|
584
|
+
s.push(`${e[m][r]?.[i] ?? 0}:${e[m][a]?.[i] ?? 0}`), d = d + (e[m][r]?.[i] ?? 0), g = g + (e[m][a]?.[i] ?? 0);
|
|
585
|
+
return `(${s.join(", ")}) ${d}:${g}`;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Er(e, r, a, i) {
|
|
588
588
|
const s = [];
|
|
589
|
-
let
|
|
589
|
+
let d = 0, g = 0;
|
|
590
590
|
for (let m = 0; m < e.length; m++)
|
|
591
|
-
s.push(`${e[m][r]?.[i] ?? 0}:${e[m][a]?.[i] ?? 0}`),
|
|
592
|
-
return `(${s.join(", ")}) ${
|
|
591
|
+
s.push(`${e[m][r]?.[i] ?? 0}:${e[m][a]?.[i] ?? 0}`), d = d + (e[m][r]?.[i] ?? 0), g = g + (e[m][a]?.[i] ?? 0);
|
|
592
|
+
return `(${s.join(", ")}) ${d}:${g}`;
|
|
593
593
|
}
|
|
594
594
|
function Ir(e) {
|
|
595
|
-
const r = e?.home?.advTime ?? 0, a = e?.away?.advTime ?? 0, i = e?.home?.advTimePP1 ?? 0, s = e?.away?.advTimePP1 ?? 0,
|
|
595
|
+
const r = e?.home?.advTime ?? 0, a = e?.away?.advTime ?? 0, i = e?.home?.advTimePP1 ?? 0, s = e?.away?.advTimePP1 ?? 0, d = e?.home?.advTimePP2 ?? 0, g = e?.away?.advTimePP2 ?? 0;
|
|
596
596
|
return {
|
|
597
597
|
advTime: `${K(r)} / ${K(a)}`,
|
|
598
598
|
advTimePP1: `${K(i)} / ${K(s)}`,
|
|
599
|
-
advTimePP2: `${K(
|
|
599
|
+
advTimePP2: `${K(d)} / ${K(g)}`
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
function Or(e) {
|
|
603
|
-
const r = e?.home?.adv ?? 0, a = e?.home?.ppgf ?? 0, i = e?.away?.adv ?? 0, s = e?.away?.ppgf ?? 0,
|
|
604
|
-
return `(${r}/${a}) <b>${
|
|
603
|
+
const r = e?.home?.adv ?? 0, a = e?.home?.ppgf ?? 0, i = e?.away?.adv ?? 0, s = e?.away?.ppgf ?? 0, d = (e?.home?.ppPercent ?? 0).toFixed(2), g = (e?.away?.ppPercent ?? 0).toFixed(2);
|
|
604
|
+
return `(${r}/${a}) <b>${d}%</b> / (${i}/${s}) <b>${g}%</b>`;
|
|
605
605
|
}
|
|
606
606
|
function Mr(e) {
|
|
607
|
-
const r = e?.home?.dvg ?? 0, a = e?.home?.pk ?? 0, i = e?.away?.dvg ?? 0, s = e?.away?.pk ?? 0,
|
|
608
|
-
return `(${r}/${a}) <b>${
|
|
607
|
+
const r = e?.home?.dvg ?? 0, a = e?.home?.pk ?? 0, i = e?.away?.dvg ?? 0, s = e?.away?.pk ?? 0, d = (e?.home?.pkPercent ?? 0).toFixed(2), g = (e?.away?.pkPercent ?? 0).toFixed(2);
|
|
608
|
+
return `(${r}/${a}) <b>${d}%</b> / (${i}/${s}) <b>${g}%</b>`;
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function jt(e) {
|
|
611
611
|
return {
|
|
612
612
|
...e,
|
|
613
613
|
penaltyCause: da(e.penaltyCause)
|
|
@@ -615,8 +615,8 @@ function Et(e) {
|
|
|
615
615
|
}
|
|
616
616
|
const Pe = (e) => Fe(e, wt(["toi"])), Lr = 20, Cr = 1e3 * 30, nt = 1e3 * 60 * 5;
|
|
617
617
|
function Ar(e = {}) {
|
|
618
|
-
const { data: r, services: a } = e, { getGameData: i, getGameStats: s, getEvents:
|
|
619
|
-
() => Se(i, s,
|
|
618
|
+
const { data: r, services: a } = e, { getGameData: i, getGameStats: s, getEvents: d, getGameOfficials: g } = a, m = H(!1), { resume: v, pause: h, isActive: u } = se(
|
|
619
|
+
() => Se(i, s, d),
|
|
620
620
|
Cr,
|
|
621
621
|
{ immediate: !1, immediateCallback: !1 }
|
|
622
622
|
), { pause: S } = se(
|
|
@@ -635,30 +635,30 @@ function Ar(e = {}) {
|
|
|
635
635
|
}
|
|
636
636
|
);
|
|
637
637
|
pt(m, () => {
|
|
638
|
-
|
|
638
|
+
v(), i();
|
|
639
639
|
}, () => {
|
|
640
640
|
h();
|
|
641
|
-
}), oe(r, (
|
|
642
|
-
|
|
641
|
+
}), oe(r, (_) => {
|
|
642
|
+
_.gameStatus === 1 && !u.value && (m.value = !0, S(), b(), v(), s(), d()), _.gameStatus > 1 && (m.value = !1, Se(s, d), S(), b());
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
645
|
function Dr(e = {}) {
|
|
646
|
-
const r = e?.periodLength ?? Lr, a =
|
|
646
|
+
const r = e?.periodLength ?? Lr, a = p(() => {
|
|
647
647
|
let s = r * 60;
|
|
648
648
|
return (t(e).isOvertime || t(e).isShootout) && (s = t(e).overtimeLength * 60), s;
|
|
649
649
|
});
|
|
650
650
|
return {
|
|
651
|
-
value:
|
|
652
|
-
const s = t(e),
|
|
653
|
-
let g =
|
|
651
|
+
value: p(() => {
|
|
652
|
+
const s = t(e), d = a.value - Number.parseInt(s.periodTime, 10) * 60;
|
|
653
|
+
let g = Nt(t(e)) - 1;
|
|
654
654
|
(s.isOvertime || s.isShootout) && g++;
|
|
655
655
|
const m = ft(s.actualTime) - g * r * 60;
|
|
656
|
-
return Math.max(
|
|
656
|
+
return Math.max(d, m);
|
|
657
657
|
}),
|
|
658
658
|
max: a
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function Et() {
|
|
662
662
|
const e = H([]);
|
|
663
663
|
function r(i, s) {
|
|
664
664
|
typeof s == "object" && s !== null && (s = s.message), e.value.push({ key: i, message: s });
|
|
@@ -666,7 +666,7 @@ function Nt() {
|
|
|
666
666
|
function a(i) {
|
|
667
667
|
if (G(e.value))
|
|
668
668
|
return;
|
|
669
|
-
const s = e.value.findIndex((
|
|
669
|
+
const s = e.value.findIndex((d) => d.key === i);
|
|
670
670
|
e.value.splice(s, 1);
|
|
671
671
|
}
|
|
672
672
|
return {
|
|
@@ -691,7 +691,7 @@ function ie() {
|
|
|
691
691
|
return e;
|
|
692
692
|
}
|
|
693
693
|
function Hr(e) {
|
|
694
|
-
return
|
|
694
|
+
return p(() => {
|
|
695
695
|
const { homeTeam: a, awayTeam: i } = F(e);
|
|
696
696
|
return !a?.color || !i?.color ? {} : {
|
|
697
697
|
"--mvw-gamecenter-home-team-identifier-color": `#${a.color}`,
|
|
@@ -715,7 +715,7 @@ const Rr = "Gól", Br = "Kiállítás", Kr = "Kapus", Vr = "Idő", it = "Büntet
|
|
|
715
715
|
viewBox: "0 0 24 24"
|
|
716
716
|
};
|
|
717
717
|
function Ot(e, r) {
|
|
718
|
-
return n(),
|
|
718
|
+
return n(), c("svg", Ur, [...r[0] || (r[0] = [
|
|
719
719
|
o("path", {
|
|
720
720
|
fill: "currentColor",
|
|
721
721
|
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"
|
|
@@ -731,7 +731,7 @@ const Yr = { render: Ot }, Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
731
731
|
viewBox: "0 0 24 24"
|
|
732
732
|
};
|
|
733
733
|
function Lt(e, r) {
|
|
734
|
-
return n(),
|
|
734
|
+
return n(), c("svg", Wr, [...r[0] || (r[0] = [
|
|
735
735
|
o("path", {
|
|
736
736
|
fill: "currentColor",
|
|
737
737
|
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"
|
|
@@ -748,7 +748,7 @@ const qr = { render: Lt }, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
748
748
|
viewBox: "0 0 24 24"
|
|
749
749
|
};
|
|
750
750
|
function Ct(e, r) {
|
|
751
|
-
return n(),
|
|
751
|
+
return n(), c("svg", Qr, [...r[0] || (r[0] = [
|
|
752
752
|
o("path", {
|
|
753
753
|
fill: "#000",
|
|
754
754
|
d: "m7.712 13.208 3.88 3.88 3.88-3.88a.997.997 0 1 1 1.41 1.41l-4.59 4.59a.997.997 0 0 1-1.41 0l-4.59-4.59a.997.997 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0ZM7.712 10.792l3.88-3.88 3.88 3.88a.997.997 0 1 0 1.41-1.41l-4.59-4.59a.996.996 0 0 0-1.41 0l-4.59 4.59a.996.996 0 0 0 0 1.41c.39.38 1.03.39 1.42 0Z"
|
|
@@ -761,7 +761,7 @@ const Jr = { render: Ct }, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
761
761
|
render: Ct
|
|
762
762
|
}, Symbol.toStringTag, { value: "Module" })), Xr = { viewBox: "0 0 32 32" };
|
|
763
763
|
function At(e, r) {
|
|
764
|
-
return n(),
|
|
764
|
+
return n(), c("svg", Xr, [...r[0] || (r[0] = [
|
|
765
765
|
o("path", {
|
|
766
766
|
fill: "currentColor",
|
|
767
767
|
d: "M16 7C9.043 7 2 8.718 2 12v8c0 3.282 7.043 5 14 5s14-1.718 14-5v-8c0-3.282-7.043-5-14-5zm0 2c7.444 0 12 1.942 12 3c0 .926-3.489 2.528-9.348 2.914A40.34 40.34 0 0 1 16 15c-7.444 0-12-1.942-12-3s4.556-3 12-3zM4 14.707c.06.035.134.064.195.098a9.77 9.77 0 0 0 1.014.486c.346.144.706.282 1.094.408c.813.265 1.725.48 2.681.664c.289.055.587.1.885.147c.85.137 1.726.247 2.633.324c1.15.098 2.319.166 3.498.166c1.18 0 2.349-.068 3.498-.166a35.139 35.139 0 0 0 2.633-.324c.298-.047.596-.092.885-.147c.956-.184 1.868-.4 2.681-.664a14.457 14.457 0 0 0 1.395-.539a9.77 9.77 0 0 0 .713-.355c.061-.034.136-.063.195-.098V20c0 1.058-4.556 3-12 3S4 21.058 4 20v-5.293z"
|
|
@@ -782,7 +782,7 @@ const eo = { render: At }, ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
782
782
|
"stroke-linejoin": "round"
|
|
783
783
|
};
|
|
784
784
|
function Dt(e, r) {
|
|
785
|
-
return n(),
|
|
785
|
+
return n(), c("svg", to, [...r[0] || (r[0] = [
|
|
786
786
|
o("circle", {
|
|
787
787
|
cx: "12",
|
|
788
788
|
cy: "12",
|
|
@@ -814,7 +814,7 @@ const ao = { render: Dt }, ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
814
814
|
"stroke-linejoin": "round"
|
|
815
815
|
};
|
|
816
816
|
function Gt(e, r) {
|
|
817
|
-
return n(),
|
|
817
|
+
return n(), c("svg", oo, [...r[0] || (r[0] = [
|
|
818
818
|
o("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }, null, -1),
|
|
819
819
|
o("rect", {
|
|
820
820
|
x: "8",
|
|
@@ -835,7 +835,7 @@ const no = { render: Gt }, $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
835
835
|
viewBox: "0 0 24 24"
|
|
836
836
|
};
|
|
837
837
|
function Ht(e, r) {
|
|
838
|
-
return n(),
|
|
838
|
+
return n(), c("svg", io, [...r[0] || (r[0] = [
|
|
839
839
|
o("path", {
|
|
840
840
|
fill: "currentColor",
|
|
841
841
|
d: "m12 15.4-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z",
|
|
@@ -857,7 +857,7 @@ const so = { render: Ht }, lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
857
857
|
viewBox: "0 0 24 24"
|
|
858
858
|
};
|
|
859
859
|
function Rt(e, r) {
|
|
860
|
-
return n(),
|
|
860
|
+
return n(), c("svg", mo, [...r[0] || (r[0] = [
|
|
861
861
|
o("path", {
|
|
862
862
|
fill: "currentColor",
|
|
863
863
|
d: "M12 20a7 7 0 0 1-7-7a7 7 0 0 1 7-7a7 7 0 0 1 7 7a7 7 0 0 1-7 7m7.03-12.61l1.42-1.42c-.45-.51-.9-.97-1.41-1.41L17.62 6c-1.55-1.26-3.5-2-5.62-2a9 9 0 0 0-9 9a9 9 0 0 0 9 9c5 0 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M11 14h2V8h-2m4-7H9v2h6V1Z"
|
|
@@ -870,7 +870,7 @@ const co = { render: Rt }, qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
870
870
|
render: Rt
|
|
871
871
|
}, Symbol.toStringTag, { value: "Module" })), vo = { viewBox: "0 0 24 24" };
|
|
872
872
|
function Bt(e, r) {
|
|
873
|
-
return n(),
|
|
873
|
+
return n(), c("svg", vo, [...r[0] || (r[0] = [
|
|
874
874
|
o("path", {
|
|
875
875
|
fill: "currentColor",
|
|
876
876
|
d: "M3.76 3.7L2.14 4.88L4.43 8a8.23 8.23 0 0 1 1.92-.72M11 9v2h7v.29l-5 1.42v2.79A4.5 4.5 0 1 1 8.5 11H9V9h-.5a6.5 6.5 0 1 0 6.5 6.5v-1.59L22 12V9m-5.76-5.3L13.85 7h2.47l1.54-2.12M9 2v5h2V2Z"
|
|
@@ -891,7 +891,7 @@ const go = { render: Bt }, Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
891
891
|
"stroke-linejoin": "round"
|
|
892
892
|
};
|
|
893
893
|
function Vt(e, r) {
|
|
894
|
-
return n(),
|
|
894
|
+
return n(), c("svg", uo, [...r[0] || (r[0] = [
|
|
895
895
|
o("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),
|
|
896
896
|
o("polygon", { points: "9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" }, null, -1)
|
|
897
897
|
])]);
|
|
@@ -902,21 +902,21 @@ const ho = { render: Vt }, Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
902
902
|
render: Vt
|
|
903
903
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
904
904
|
function Ut(e, r) {
|
|
905
|
-
const { t: a } = I(), { data: i, open: s, close:
|
|
905
|
+
const { t: a } = I(), { data: i, open: s, close: d } = La(t(e), {
|
|
906
906
|
autoReconnect: {
|
|
907
907
|
retries: 3
|
|
908
908
|
},
|
|
909
909
|
immediate: !1
|
|
910
|
-
}), g =
|
|
910
|
+
}), g = p(() => JSON.parse(i.value)?.visitor ?? 0), m = $a(g, 5e3), v = p(() => m.value > 0), h = p(() => t(r).gameStatus === 0 ? a("gameData.visitorsWaiting", [m.value]) : a("gameData.visitors", [m.value]));
|
|
911
911
|
return oe(() => t(r).gameStatus, (u) => {
|
|
912
912
|
if (u <= 1)
|
|
913
913
|
return s();
|
|
914
|
-
|
|
914
|
+
d();
|
|
915
915
|
}, {
|
|
916
916
|
immediate: !0
|
|
917
917
|
}), {
|
|
918
918
|
visitors: m,
|
|
919
|
-
isVisible:
|
|
919
|
+
isVisible: v,
|
|
920
920
|
visitorsLabel: h
|
|
921
921
|
};
|
|
922
922
|
}
|
|
@@ -929,8 +929,8 @@ const po = { class: "progress" }, wo = ["aria-valuenow", "aria-valuemax"], Yt =
|
|
|
929
929
|
}
|
|
930
930
|
},
|
|
931
931
|
setup(e) {
|
|
932
|
-
const r = e, { max: a, value: i } = Dr(
|
|
933
|
-
return (s,
|
|
932
|
+
const r = e, { max: a, value: i } = Dr(p(() => r.gameData));
|
|
933
|
+
return (s, d) => (n(), c("div", po, [
|
|
934
934
|
o("div", {
|
|
935
935
|
class: "progress-bar progress-bar-stripped progress-bar-animated",
|
|
936
936
|
role: "progressbar",
|
|
@@ -958,21 +958,21 @@ const po = { class: "progress" }, wo = ["aria-valuenow", "aria-valuemax"], Yt =
|
|
|
958
958
|
}
|
|
959
959
|
},
|
|
960
960
|
setup(e) {
|
|
961
|
-
return (r, a) => (n(),
|
|
961
|
+
return (r, a) => (n(), c("table", fo, [
|
|
962
962
|
o("tbody", null, [
|
|
963
963
|
o("tr", null, [
|
|
964
964
|
a[0] || (a[0] = o("td", null, [
|
|
965
965
|
o("span", { class: "is-home-team" })
|
|
966
966
|
], -1)),
|
|
967
967
|
o("td", null, l(e.homeTeamName), 1),
|
|
968
|
-
(n(!0),
|
|
968
|
+
(n(!0), c(y, null, E(e.results.home, (i, s) => (n(), c("td", { key: s }, l(i), 1))), 128))
|
|
969
969
|
]),
|
|
970
970
|
o("tr", null, [
|
|
971
971
|
a[1] || (a[1] = o("td", null, [
|
|
972
972
|
o("span", { class: "is-away-team" })
|
|
973
973
|
], -1)),
|
|
974
974
|
o("td", null, l(e.awayTeamName), 1),
|
|
975
|
-
(n(!0),
|
|
975
|
+
(n(!0), c(y, null, E(e.results.away, (i, s) => (n(), c("td", { key: s }, l(i), 1))), 128))
|
|
976
976
|
])
|
|
977
977
|
])
|
|
978
978
|
]));
|
|
@@ -988,7 +988,7 @@ function ko(e) {
|
|
|
988
988
|
function xo(e, r, a) {
|
|
989
989
|
const i = Xe(e?.[r] ?? []), s = Xe(e?.[a] ?? []);
|
|
990
990
|
return ["1", "2", "3", "4", "gk"].reduce(
|
|
991
|
-
(
|
|
991
|
+
(d, g) => (d[g].home = i[g], d[g].away = s[g], d),
|
|
992
992
|
{
|
|
993
993
|
1: { home: [], away: [] },
|
|
994
994
|
2: { home: [], away: [] },
|
|
@@ -999,23 +999,23 @@ function xo(e, r, a) {
|
|
|
999
999
|
);
|
|
1000
1000
|
}
|
|
1001
1001
|
function Ge(e, r, a, i) {
|
|
1002
|
-
let s = 0,
|
|
1003
|
-
const g = e.reduce((m,
|
|
1004
|
-
const h =
|
|
1005
|
-
return s += u,
|
|
1002
|
+
let s = 0, d = 0;
|
|
1003
|
+
const g = e.reduce((m, v) => {
|
|
1004
|
+
const h = v[r]?.period ?? "p1", u = v[r]?.[i] ?? 0, S = v[a]?.[i] ?? 0, b = u + S;
|
|
1005
|
+
return s += u, d += S, m[h] = {
|
|
1006
1006
|
max: b,
|
|
1007
1007
|
valueStart: u,
|
|
1008
1008
|
valueEnd: S
|
|
1009
1009
|
}, m;
|
|
1010
1010
|
}, {});
|
|
1011
1011
|
return g.all = {
|
|
1012
|
-
max: s +
|
|
1012
|
+
max: s + d,
|
|
1013
1013
|
valueStart: s,
|
|
1014
|
-
valueEnd:
|
|
1014
|
+
valueEnd: d
|
|
1015
1015
|
}, g;
|
|
1016
1016
|
}
|
|
1017
1017
|
function zo(e) {
|
|
1018
|
-
const r = e?.home?.advTime ?? 0, a = e?.away?.advTime ?? 0, i = e?.home?.advTimePP1 ?? 0, s = e?.away?.advTimePP1 ?? 0,
|
|
1018
|
+
const r = e?.home?.advTime ?? 0, a = e?.away?.advTime ?? 0, i = e?.home?.advTimePP1 ?? 0, s = e?.away?.advTimePP1 ?? 0, d = e?.home?.advTimePP2 ?? 0, g = e?.away?.advTimePP2 ?? 0;
|
|
1019
1019
|
return {
|
|
1020
1020
|
advTime: {
|
|
1021
1021
|
max: r + a,
|
|
@@ -1028,14 +1028,14 @@ function zo(e) {
|
|
|
1028
1028
|
valueEnd: s
|
|
1029
1029
|
},
|
|
1030
1030
|
advTimePP2: {
|
|
1031
|
-
max:
|
|
1032
|
-
valueStart:
|
|
1031
|
+
max: d + g,
|
|
1032
|
+
valueStart: d,
|
|
1033
1033
|
valueEnd: g
|
|
1034
1034
|
}
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
1037
|
function To(e) {
|
|
1038
|
-
const r = e?.home?.adv ?? 0, a = e?.home?.ppgf ?? 0, i = e?.away?.adv ?? 0, s = e?.away?.ppgf ?? 0,
|
|
1038
|
+
const r = e?.home?.adv ?? 0, a = e?.home?.ppgf ?? 0, i = e?.away?.adv ?? 0, s = e?.away?.ppgf ?? 0, d = (e?.home?.ppPercent ?? 0).toFixed(2), g = (e?.away?.ppPercent ?? 0).toFixed(2);
|
|
1039
1039
|
return {
|
|
1040
1040
|
powerPlays: {
|
|
1041
1041
|
max: r + i,
|
|
@@ -1051,14 +1051,14 @@ function To(e) {
|
|
|
1051
1051
|
},
|
|
1052
1052
|
powerPlayEfficiency: {
|
|
1053
1053
|
max: 100,
|
|
1054
|
-
valueStart:
|
|
1054
|
+
valueStart: d,
|
|
1055
1055
|
valueEnd: g,
|
|
1056
1056
|
suffix: "%"
|
|
1057
1057
|
}
|
|
1058
1058
|
};
|
|
1059
1059
|
}
|
|
1060
1060
|
function _o(e) {
|
|
1061
|
-
const r = e?.home?.dvg ?? 0, a = e?.home?.pk ?? 0, i = e?.away?.dvg ?? 0, s = e?.away?.pk ?? 0,
|
|
1061
|
+
const r = e?.home?.dvg ?? 0, a = e?.home?.pk ?? 0, i = e?.away?.dvg ?? 0, s = e?.away?.pk ?? 0, d = (e?.home?.pkPercent ?? 0).toFixed(2), g = (e?.away?.pkPercent ?? 0).toFixed(2);
|
|
1062
1062
|
return {
|
|
1063
1063
|
penaltyKill: {
|
|
1064
1064
|
max: r + i,
|
|
@@ -1074,7 +1074,7 @@ function _o(e) {
|
|
|
1074
1074
|
},
|
|
1075
1075
|
penaltyKillEfficiency: {
|
|
1076
1076
|
max: 100,
|
|
1077
|
-
valueStart:
|
|
1077
|
+
valueStart: d,
|
|
1078
1078
|
valueEnd: g,
|
|
1079
1079
|
suffix: "%"
|
|
1080
1080
|
}
|
|
@@ -1094,8 +1094,8 @@ function lt(e, r) {
|
|
|
1094
1094
|
return pa(s);
|
|
1095
1095
|
}
|
|
1096
1096
|
function So(e = {}) {
|
|
1097
|
-
const { data: r, services: a } = e, { getGameData: i, getGameStats: s, getEvents:
|
|
1098
|
-
() => Se(s,
|
|
1097
|
+
const { data: r, services: a } = e, { getGameData: i, getGameStats: s, getEvents: d, getGameOfficials: g } = a, m = H(!1), { resume: v, pause: h, isActive: u } = se(
|
|
1098
|
+
() => Se(s, d),
|
|
1099
1099
|
bo,
|
|
1100
1100
|
{ immediate: !1, immediateCallback: !1 }
|
|
1101
1101
|
);
|
|
@@ -1116,14 +1116,14 @@ function So(e = {}) {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
);
|
|
1118
1118
|
pt(m, () => {
|
|
1119
|
-
|
|
1119
|
+
v(), i();
|
|
1120
1120
|
}, () => {
|
|
1121
1121
|
h();
|
|
1122
1122
|
}), oe(r, (b) => {
|
|
1123
|
-
b.gameStatus === 1 && !u.value && (m.value = !0, S(),
|
|
1123
|
+
b.gameStatus === 1 && !u.value && (m.value = !0, S(), v(), s(), d()), b.gameStatus > 1 && (m.value = !1, Se(s, d), S());
|
|
1124
1124
|
});
|
|
1125
1125
|
}
|
|
1126
|
-
const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o = { class: "is-title-container" },
|
|
1126
|
+
const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o = { class: "is-title-container" }, No = { class: "text-muted" }, jo = { class: "text-muted text-sm" }, Eo = { class: "is-external-contents" }, Io = ["href"], Oo = ["href"], Mo = ["href"], Lo = {
|
|
1127
1127
|
class: "is-teams-and-results",
|
|
1128
1128
|
style: { "align-items": "start" }
|
|
1129
1129
|
}, Co = { class: "is-team-name" }, Ao = { class: "is-goal-scorers" }, Do = ["href"], Go = {
|
|
@@ -1159,110 +1159,115 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1159
1159
|
}
|
|
1160
1160
|
},
|
|
1161
1161
|
setup(e) {
|
|
1162
|
-
const r = e, { gameData: a, websocketUrl: i } = Ve(r), { t: s } = I(), { resolver:
|
|
1163
|
-
|
|
1162
|
+
const r = e, { gameData: a, websocketUrl: i } = Ve(r), { t: s } = I(), { resolver: d } = ie(), g = p(() => ko(r.gameData.periodResults)), m = p(() => lt(r.gameEvents, r.gameData.homeTeam?.id)), v = p(() => lt(r.gameEvents, r.gameData.awayTeam?.id)), { visitorsLabel: h, isVisible: u } = Ut(i, a), S = p(() => a.value.gameStatus <= 1 ? h.value : s("gameData.attendance", [a.value?.attendance ?? 0])), b = p(() => [
|
|
1163
|
+
a.value.championshipName,
|
|
1164
|
+
...a.value.championshipName !== a.value.sectionName ? [a.value.sectionName] : [],
|
|
1165
|
+
a.value.divisionName,
|
|
1166
|
+
a.value.gameName
|
|
1167
|
+
].join(" - "));
|
|
1168
|
+
return (_, z) => (n(), c("div", Po, [
|
|
1164
1169
|
o("div", $o, [
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
])).cacheIndex = 0, D(1),
|
|
1168
|
-
o("div",
|
|
1169
|
-
o("div",
|
|
1170
|
-
o("div",
|
|
1171
|
-
t(a).electronicReportUrl ? (n(),
|
|
1170
|
+
z[0] || (D(-1, !0), (z[0] = o("div", { class: "text-highlighted uppercase font-bold" }, [
|
|
1171
|
+
x(l(b.value) + " / " + l(t(a).location.locationName), 1)
|
|
1172
|
+
])).cacheIndex = 0, D(1), z[0]),
|
|
1173
|
+
o("div", No, l(t(ze)(t(a).gameDate, "L dddd - HH:mm", null, e.locale)) + " (" + l(t(Te)(new Date(t(a).gameDate), null, e.locale)) + ") ", 1),
|
|
1174
|
+
o("div", jo, l(t(s)("localTime")) + " (" + l(t(a).location.locationCountryISO || t(a).location.locationName) + "): " + l(t(ze)(t(a).gameDate, "L dddd - HH:mm", t(a).location.timezone, e.locale)) + " (" + l(t(Te)(new Date(t(a).gameDate), t(a).location.timezone, e.locale)) + ") ", 1),
|
|
1175
|
+
o("div", Eo, [
|
|
1176
|
+
t(a).electronicReportUrl ? (n(), c("a", {
|
|
1172
1177
|
key: 0,
|
|
1173
1178
|
href: t(a).electronicReportUrl,
|
|
1174
1179
|
target: "_blank"
|
|
1175
1180
|
}, [
|
|
1176
1181
|
f(t($e), { class: "is-icon" }),
|
|
1177
|
-
|
|
1178
|
-
], 8, Io)) :
|
|
1179
|
-
t(a).toiReportUrl ? (n(),
|
|
1182
|
+
x(" " + l(t(s)("sheet")), 1)
|
|
1183
|
+
], 8, Io)) : w("", !0),
|
|
1184
|
+
t(a).toiReportUrl ? (n(), c("a", {
|
|
1180
1185
|
key: 1,
|
|
1181
1186
|
href: t(a).toiReportUrl,
|
|
1182
1187
|
target: "_blank"
|
|
1183
1188
|
}, [
|
|
1184
1189
|
f(t($e), { class: "is-icon" }),
|
|
1185
|
-
|
|
1186
|
-
], 8, Oo)) :
|
|
1187
|
-
t(a).video ? (n(),
|
|
1190
|
+
x(" " + l(t(s)("toiSheet")), 1)
|
|
1191
|
+
], 8, Oo)) : w("", !0),
|
|
1192
|
+
t(a).video ? (n(), c("a", {
|
|
1188
1193
|
key: 2,
|
|
1189
1194
|
href: t(a).video,
|
|
1190
1195
|
target: "_blank"
|
|
1191
1196
|
}, [
|
|
1192
1197
|
f(t(Ft), { class: "is-icon" }),
|
|
1193
|
-
|
|
1194
|
-
], 8, Mo)) :
|
|
1198
|
+
x(" " + l(t(s)("video")), 1)
|
|
1199
|
+
], 8, Mo)) : w("", !0)
|
|
1195
1200
|
])
|
|
1196
1201
|
]),
|
|
1197
1202
|
o("div", Lo, [
|
|
1198
1203
|
o("div", null, [
|
|
1199
|
-
|
|
1204
|
+
z[1] || (D(-1, !0), (z[1] = f(t(X), {
|
|
1200
1205
|
src: t(a).homeTeam?.logo,
|
|
1201
1206
|
width: 128,
|
|
1202
1207
|
class: "is-team-logo",
|
|
1203
1208
|
"default-src": t(Me)
|
|
1204
|
-
}, null, 8, ["src", "default-src"])).cacheIndex = 1, D(1),
|
|
1209
|
+
}, null, 8, ["src", "default-src"])).cacheIndex = 1, D(1), z[1]),
|
|
1205
1210
|
o("h1", Co, l(t(a).homeTeam?.longName), 1),
|
|
1206
1211
|
o("ul", Ao, [
|
|
1207
|
-
(n(!0),
|
|
1208
|
-
key:
|
|
1212
|
+
(n(!0), c(y, null, E(m.value, ($) => (n(), c("li", {
|
|
1213
|
+
key: $.id
|
|
1209
1214
|
}, [
|
|
1210
1215
|
o("a", {
|
|
1211
|
-
href: t(
|
|
1216
|
+
href: t(d)({ player: { playerId: $.id } }),
|
|
1212
1217
|
target: "_blank"
|
|
1213
|
-
}, l(
|
|
1214
|
-
o("span", null, " " + l(
|
|
1218
|
+
}, l($.name), 9, Do),
|
|
1219
|
+
o("span", null, " " + l($.eventTime), 1)
|
|
1215
1220
|
]))), 128))
|
|
1216
1221
|
])
|
|
1217
1222
|
]),
|
|
1218
1223
|
o("div", null, [
|
|
1219
|
-
t(a).gameStatus > 1 ? (n(),
|
|
1220
|
-
t(a).gameStatus === 1 ? (n(),
|
|
1221
|
-
t(a).gameStatus > 1 ? (n(),
|
|
1222
|
-
t(a).isOvertime ? (n(),
|
|
1224
|
+
t(a).gameStatus > 1 ? (n(), c("p", Go, l(t(s)(`gameStatus.status-${t(a).gameStatus}`)), 1)) : w("", !0),
|
|
1225
|
+
t(a).gameStatus === 1 ? (n(), c("p", Ho, l(t(s)(`periods.${t(We)(t(a).period)}`)), 1)) : w("", !0),
|
|
1226
|
+
t(a).gameStatus > 1 ? (n(), c(y, { key: 2 }, [
|
|
1227
|
+
t(a).isOvertime ? (n(), c("p", Ro, [
|
|
1223
1228
|
o("span", Bo, l(t(s)("afterOvertime")), 1)
|
|
1224
|
-
])) :
|
|
1225
|
-
t(a).isShootout ? (n(),
|
|
1229
|
+
])) : w("", !0),
|
|
1230
|
+
t(a).isShootout ? (n(), c("p", Ko, [
|
|
1226
1231
|
o("span", Vo, l(t(s)("afterShootout")), 1)
|
|
1227
|
-
])) :
|
|
1228
|
-
], 64)) :
|
|
1229
|
-
t(a).gameStatus === 1 ? (n(),
|
|
1230
|
-
t(a).gameStatus === 1 ? (n(),
|
|
1232
|
+
])) : w("", !0)
|
|
1233
|
+
], 64)) : w("", !0),
|
|
1234
|
+
t(a).gameStatus === 1 ? (n(), c("p", Fo, l(t(a).actualTime), 1)) : w("", !0),
|
|
1235
|
+
t(a).gameStatus === 1 ? (n(), k(Yt, {
|
|
1231
1236
|
key: 4,
|
|
1232
1237
|
"game-data": t(a)
|
|
1233
|
-
}, null, 8, ["game-data"])) :
|
|
1238
|
+
}, null, 8, ["game-data"])) : w("", !0),
|
|
1234
1239
|
o("div", {
|
|
1235
1240
|
class: V(["game-result", [{ live: t(a).gameStatus === 1 }]])
|
|
1236
1241
|
}, [
|
|
1237
|
-
t(a).gameStatus === 0 ? (n(),
|
|
1238
|
-
|
|
1239
|
-
t(a).gameStatus === 0 ? (n(),
|
|
1242
|
+
t(a).gameStatus === 0 ? (n(), c("span", Uo, "-")) : (n(), c("span", Yo, l(t(a).homeTeamScore), 1)),
|
|
1243
|
+
z[3] || (z[3] = x(":", -1)),
|
|
1244
|
+
t(a).gameStatus === 0 ? (n(), c("span", Wo, "-")) : (n(), c("span", qo, l(t(a).awayTeamScore), 1))
|
|
1240
1245
|
], 2),
|
|
1241
|
-
t(u) || t(a)?.attendance ? (n(),
|
|
1242
|
-
t(a).gameStatus > 0 ? (n(),
|
|
1246
|
+
t(u) || t(a)?.attendance ? (n(), c("p", Qo, l(S.value), 1)) : w("", !0),
|
|
1247
|
+
t(a).gameStatus > 0 ? (n(), k(yo, {
|
|
1243
1248
|
key: 6,
|
|
1244
1249
|
results: g.value,
|
|
1245
1250
|
"home-team-name": t(a).homeTeam?.shortName,
|
|
1246
1251
|
"away-team-name": t(a).awayTeam?.shortName
|
|
1247
|
-
}, null, 8, ["results", "home-team-name", "away-team-name"])) :
|
|
1252
|
+
}, null, 8, ["results", "home-team-name", "away-team-name"])) : w("", !0)
|
|
1248
1253
|
]),
|
|
1249
1254
|
o("div", null, [
|
|
1250
|
-
|
|
1255
|
+
z[2] || (D(-1, !0), (z[2] = f(t(X), {
|
|
1251
1256
|
src: t(a).awayTeam?.logo,
|
|
1252
1257
|
width: 128,
|
|
1253
1258
|
"default-src": t(Le),
|
|
1254
1259
|
class: "is-team-logo"
|
|
1255
|
-
}, null, 8, ["src", "default-src"])).cacheIndex = 2, D(1),
|
|
1260
|
+
}, null, 8, ["src", "default-src"])).cacheIndex = 2, D(1), z[2]),
|
|
1256
1261
|
o("h1", Jo, l(t(a).awayTeam?.longName), 1),
|
|
1257
1262
|
o("ul", Zo, [
|
|
1258
|
-
(n(!0),
|
|
1259
|
-
key:
|
|
1263
|
+
(n(!0), c(y, null, E(v.value, ($) => (n(), c("li", {
|
|
1264
|
+
key: $.id
|
|
1260
1265
|
}, [
|
|
1261
1266
|
o("a", {
|
|
1262
|
-
href: t(
|
|
1267
|
+
href: t(d)({ player: { playerId: $.id } }),
|
|
1263
1268
|
target: "_blank"
|
|
1264
|
-
}, l(
|
|
1265
|
-
o("span", null, " " + l(
|
|
1269
|
+
}, l($.name), 9, Xo),
|
|
1270
|
+
o("span", null, " " + l($.eventTime), 1)
|
|
1266
1271
|
]))), 128))
|
|
1267
1272
|
])
|
|
1268
1273
|
])
|
|
@@ -1292,7 +1297,7 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1292
1297
|
}
|
|
1293
1298
|
},
|
|
1294
1299
|
setup(e) {
|
|
1295
|
-
return (r, a) => (n(),
|
|
1300
|
+
return (r, a) => (n(), c("div", {
|
|
1296
1301
|
class: "gamecenter-timeline-game-event",
|
|
1297
1302
|
"data-team": e.isHomeTeam ? "home" : "away"
|
|
1298
1303
|
}, [
|
|
@@ -1341,8 +1346,8 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1341
1346
|
}
|
|
1342
1347
|
},
|
|
1343
1348
|
setup(e) {
|
|
1344
|
-
const r = e, a = H(null), i =
|
|
1345
|
-
return (s,
|
|
1349
|
+
const r = e, a = H(null), i = p(() => r.isHomeTeam ? Me : Le);
|
|
1350
|
+
return (s, d) => (n(), c(y, null, [
|
|
1346
1351
|
f(t(q), {
|
|
1347
1352
|
offset: 2,
|
|
1348
1353
|
placement: "top",
|
|
@@ -1389,17 +1394,17 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1389
1394
|
}
|
|
1390
1395
|
},
|
|
1391
1396
|
setup(e) {
|
|
1392
|
-
const r = e, a = H(null), { t: i } = I(), { resolver: s } = ie(),
|
|
1393
|
-
return (
|
|
1397
|
+
const r = e, a = H(null), { t: i } = I(), { resolver: s } = ie(), d = p(() => Ue((v) => G(v), [r.event.assists1, r.event.assists2])), g = p(() => r.event.homeOnIce), m = p(() => r.event.awayOnIce);
|
|
1398
|
+
return (v, h) => (n(), k(ge, {
|
|
1394
1399
|
timestamp: e.event.eventTime,
|
|
1395
1400
|
"is-home-team": e.isHomeTeam,
|
|
1396
1401
|
"event-type": e.event.type,
|
|
1397
1402
|
event: e.event
|
|
1398
1403
|
}, {
|
|
1399
1404
|
title: T(() => [
|
|
1400
|
-
|
|
1401
|
-
e.event.advantage ? (n(),
|
|
1402
|
-
e.event.en ? (n(),
|
|
1405
|
+
x(l(t(i)("eventType.Gól")) + " ", 1),
|
|
1406
|
+
e.event.advantage ? (n(), c("span", ln, l(e.event.advantage), 1)) : w("", !0),
|
|
1407
|
+
e.event.en ? (n(), c("span", mn, " EN ")) : e.event.score ? (n(), c("span", cn, "(" + l(e.event.score) + ")", 1)) : w("", !0)
|
|
1403
1408
|
]),
|
|
1404
1409
|
"details-list": T(() => [
|
|
1405
1410
|
o("ul", dn, [
|
|
@@ -1411,7 +1416,7 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1411
1416
|
}, l(e.event.lastName) + " " + l(e.event.firstName), 9, un)
|
|
1412
1417
|
]),
|
|
1413
1418
|
o("li", hn, [
|
|
1414
|
-
(n(!0),
|
|
1419
|
+
(n(!0), c(y, null, E(d.value, (u) => (n(), c("span", {
|
|
1415
1420
|
key: u,
|
|
1416
1421
|
class: "is-evented-person"
|
|
1417
1422
|
}, [
|
|
@@ -1422,9 +1427,9 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1422
1427
|
}, l(u.lastName) + " " + l(u.firstName), 9, wn)
|
|
1423
1428
|
]))), 128))
|
|
1424
1429
|
]),
|
|
1425
|
-
!t(G)(g.value) || !t(G)(m.value) ? (n(),
|
|
1430
|
+
!t(G)(g.value) || !t(G)(m.value) ? (n(), c("li", fn, [
|
|
1426
1431
|
o("ul", null, [
|
|
1427
|
-
(n(!0),
|
|
1432
|
+
(n(!0), c(y, null, E(g.value, (u) => (n(), k(t(q), {
|
|
1428
1433
|
key: u.playerId,
|
|
1429
1434
|
offset: 2,
|
|
1430
1435
|
placement: "top",
|
|
@@ -1445,7 +1450,7 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1445
1450
|
]),
|
|
1446
1451
|
h[0] || (h[0] = o("span", null, " / ", -1)),
|
|
1447
1452
|
o("ul", null, [
|
|
1448
|
-
(n(!0),
|
|
1453
|
+
(n(!0), c(y, null, E(m.value, (u) => (n(), k(t(q), {
|
|
1449
1454
|
key: u.playerId,
|
|
1450
1455
|
offset: 2,
|
|
1451
1456
|
placement: "top",
|
|
@@ -1464,24 +1469,24 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1464
1469
|
_: 2
|
|
1465
1470
|
}, 1032, ["content", "append-to"]))), 128))
|
|
1466
1471
|
])
|
|
1467
|
-
])) :
|
|
1472
|
+
])) : w("", !0),
|
|
1468
1473
|
o("li", null, [
|
|
1469
|
-
e.event.ps || e.event.gws || e.event.gwg ? (n(),
|
|
1470
|
-
e.event.ps ? (n(),
|
|
1471
|
-
|
|
1472
|
-
], 64)) :
|
|
1473
|
-
e.event.gws ? (n(),
|
|
1474
|
-
|
|
1475
|
-
], 64)) :
|
|
1476
|
-
e.event.gwg ? (n(),
|
|
1477
|
-
|
|
1478
|
-
], 64)) :
|
|
1479
|
-
])) :
|
|
1474
|
+
e.event.ps || e.event.gws || e.event.gwg ? (n(), c("span", kn, [
|
|
1475
|
+
e.event.ps ? (n(), c(y, { key: 0 }, [
|
|
1476
|
+
x("PS")
|
|
1477
|
+
], 64)) : w("", !0),
|
|
1478
|
+
e.event.gws ? (n(), c(y, { key: 1 }, [
|
|
1479
|
+
x("GWS")
|
|
1480
|
+
], 64)) : w("", !0),
|
|
1481
|
+
e.event.gwg ? (n(), c(y, { key: 2 }, [
|
|
1482
|
+
x("GWG")
|
|
1483
|
+
], 64)) : w("", !0)
|
|
1484
|
+
])) : w("", !0)
|
|
1480
1485
|
])
|
|
1481
1486
|
])
|
|
1482
1487
|
]),
|
|
1483
1488
|
"team-logo": T(() => [
|
|
1484
|
-
(n(),
|
|
1489
|
+
(n(), k(ue, {
|
|
1485
1490
|
key: e.event.team.id,
|
|
1486
1491
|
name: e.event.team.longName,
|
|
1487
1492
|
logo: e.event.team.logo,
|
|
@@ -1508,14 +1513,14 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1508
1513
|
},
|
|
1509
1514
|
setup(e) {
|
|
1510
1515
|
const { t: r } = I(), { resolver: a } = ie();
|
|
1511
|
-
return (i, s) => (n(),
|
|
1516
|
+
return (i, s) => (n(), k(ge, {
|
|
1512
1517
|
timestamp: e.event.eventTime,
|
|
1513
1518
|
"is-home-team": e.isHomeTeam,
|
|
1514
1519
|
"event-type": e.event.type,
|
|
1515
1520
|
event: e.event
|
|
1516
1521
|
}, {
|
|
1517
1522
|
title: T(() => [
|
|
1518
|
-
|
|
1523
|
+
x(l(t(r)("eventType.Kapus")) + " - " + l(t(r)(`eventType.goalie.${e.event.gkDirection}`)), 1)
|
|
1519
1524
|
]),
|
|
1520
1525
|
"details-list": T(() => [
|
|
1521
1526
|
o("ul", zn, [
|
|
@@ -1529,7 +1534,7 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1529
1534
|
])
|
|
1530
1535
|
]),
|
|
1531
1536
|
"team-logo": T(() => [
|
|
1532
|
-
(n(),
|
|
1537
|
+
(n(), k(ue, {
|
|
1533
1538
|
key: e.event.team.id,
|
|
1534
1539
|
name: e.event.team.longName,
|
|
1535
1540
|
logo: e.event.team.logo,
|
|
@@ -1537,29 +1542,29 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1537
1542
|
}, null, 8, ["name", "logo", "is-home-team"]))
|
|
1538
1543
|
]),
|
|
1539
1544
|
"event-type-icon": T(() => [
|
|
1540
|
-
e.event.gkDirection === "CSERE" ? (n(),
|
|
1545
|
+
e.event.gkDirection === "CSERE" ? (n(), k(t(Zr), {
|
|
1541
1546
|
key: 0,
|
|
1542
1547
|
width: "24",
|
|
1543
1548
|
height: "24",
|
|
1544
1549
|
class: "is-goalie-in-icon"
|
|
1545
|
-
})) :
|
|
1546
|
-
e.event.gkDirection === "BE" ? (n(),
|
|
1550
|
+
})) : w("", !0),
|
|
1551
|
+
e.event.gkDirection === "BE" ? (n(), k(t(Ke), {
|
|
1547
1552
|
key: 1,
|
|
1548
1553
|
width: "24",
|
|
1549
1554
|
height: "24",
|
|
1550
1555
|
class: "is-goalie-in-icon"
|
|
1551
|
-
})) :
|
|
1552
|
-
e.event.gkDirection === "KI" ? (n(),
|
|
1556
|
+
})) : w("", !0),
|
|
1557
|
+
e.event.gkDirection === "KI" ? (n(), k(t(Mt), {
|
|
1553
1558
|
key: 2,
|
|
1554
1559
|
width: "24",
|
|
1555
1560
|
height: "24",
|
|
1556
1561
|
class: "is-goalie-out-icon"
|
|
1557
|
-
})) :
|
|
1562
|
+
})) : w("", !0)
|
|
1558
1563
|
]),
|
|
1559
1564
|
_: 1
|
|
1560
1565
|
}, 8, ["timestamp", "is-home-team", "event-type", "event"]));
|
|
1561
1566
|
}
|
|
1562
|
-
}, $n = { key: 0 },
|
|
1567
|
+
}, $n = { key: 0 }, Nn = { class: "is-details-list" }, jn = { class: "is-evented-person" }, En = { key: 0 }, In = { class: "is-player-number" }, On = ["href"], Mn = { class: "is-details-sub-title" }, Ln = {
|
|
1563
1568
|
__name: "Penalty",
|
|
1564
1569
|
props: {
|
|
1565
1570
|
event: {
|
|
@@ -1572,28 +1577,28 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1572
1577
|
}
|
|
1573
1578
|
},
|
|
1574
1579
|
setup(e) {
|
|
1575
|
-
const r = e, { t: a } = I(), { resolver: i } = ie(), s =
|
|
1576
|
-
return (
|
|
1580
|
+
const r = e, { t: a } = I(), { resolver: i } = ie(), s = p(() => jt(r.event));
|
|
1581
|
+
return (d, g) => (n(), k(ge, {
|
|
1577
1582
|
timestamp: e.event.eventTime,
|
|
1578
1583
|
"is-home-team": e.isHomeTeam,
|
|
1579
1584
|
"event-type": e.event.type
|
|
1580
1585
|
}, {
|
|
1581
1586
|
title: T(() => [
|
|
1582
|
-
e.event.ps ?
|
|
1583
|
-
e.event.penaltyLength ? (n(),
|
|
1584
|
-
|
|
1585
|
-
e.event.penaltyEnd ? (n(),
|
|
1586
|
-
|
|
1587
|
-
], 64)) :
|
|
1588
|
-
], 64)) :
|
|
1589
|
-
e.event.ps ? (n(),
|
|
1590
|
-
|
|
1591
|
-
], 64)) :
|
|
1587
|
+
e.event.ps ? w("", !0) : (n(), c("span", $n, l(t(a)("eventType.Kiállítás")) + " ", 1)),
|
|
1588
|
+
e.event.penaltyLength ? (n(), c(y, { key: 1 }, [
|
|
1589
|
+
x(l(t(a)("events.penaltyLength", [e.event.penaltyLength])) + " ", 1),
|
|
1590
|
+
e.event.penaltyEnd ? (n(), c(y, { key: 0 }, [
|
|
1591
|
+
x(" (" + l(e.event.penaltyEnd) + ") ", 1)
|
|
1592
|
+
], 64)) : w("", !0)
|
|
1593
|
+
], 64)) : w("", !0),
|
|
1594
|
+
e.event.ps ? (n(), c(y, { key: 2 }, [
|
|
1595
|
+
x(l(t(a)("penalties.PS")), 1)
|
|
1596
|
+
], 64)) : w("", !0)
|
|
1592
1597
|
]),
|
|
1593
1598
|
"details-list": T(() => [
|
|
1594
|
-
o("ul",
|
|
1595
|
-
o("li",
|
|
1596
|
-
e.event.jerseyNumber === null ? (n(),
|
|
1599
|
+
o("ul", Nn, [
|
|
1600
|
+
o("li", jn, [
|
|
1601
|
+
e.event.jerseyNumber === null ? (n(), c("span", En, l(t(a)("events.teamPenalty")), 1)) : (n(), c(y, { key: 1 }, [
|
|
1597
1602
|
o("span", In, l(e.event.jerseyNumber) + " ", 1),
|
|
1598
1603
|
o("a", {
|
|
1599
1604
|
href: t(i)({ player: { playerId: e.event.playerId } }),
|
|
@@ -1602,13 +1607,13 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1602
1607
|
], 64))
|
|
1603
1608
|
]),
|
|
1604
1609
|
o("li", Mn, [
|
|
1605
|
-
|
|
1610
|
+
x(l(t(a)(`penalties.${s.value.penaltyCause}`)) + " ", 1),
|
|
1606
1611
|
o("b", null, "(" + l(s.value.penaltyCause) + ")", 1)
|
|
1607
1612
|
])
|
|
1608
1613
|
])
|
|
1609
1614
|
]),
|
|
1610
1615
|
"team-logo": T(() => [
|
|
1611
|
-
(n(),
|
|
1616
|
+
(n(), k(ue, {
|
|
1612
1617
|
key: e.event.team.id,
|
|
1613
1618
|
name: e.event.team.longName,
|
|
1614
1619
|
logo: e.event.team.logo,
|
|
@@ -1635,22 +1640,22 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1635
1640
|
},
|
|
1636
1641
|
setup(e) {
|
|
1637
1642
|
const { t: r } = I(), { resolver: a } = ie();
|
|
1638
|
-
return (i, s) => (n(),
|
|
1643
|
+
return (i, s) => (n(), k(ge, {
|
|
1639
1644
|
timestamp: e.event.eventTime,
|
|
1640
1645
|
"is-home-team": e.isHomeTeam,
|
|
1641
1646
|
"event-type": e.event.type,
|
|
1642
1647
|
event: e.event
|
|
1643
1648
|
}, {
|
|
1644
1649
|
title: T(() => [
|
|
1645
|
-
|
|
1646
|
-
e.event.goal ? (n(),
|
|
1647
|
-
|
|
1648
|
-
], 64)) : (n(),
|
|
1649
|
-
|
|
1650
|
+
x(l(t(r)("eventType.Büntető")) + " - ", 1),
|
|
1651
|
+
e.event.goal ? (n(), c(y, { key: 0 }, [
|
|
1652
|
+
x(l(t(r)("events.score")), 1)
|
|
1653
|
+
], 64)) : (n(), c(y, { key: 1 }, [
|
|
1654
|
+
x(l(t(r)("events.missed")), 1)
|
|
1650
1655
|
], 64)),
|
|
1651
|
-
e.event.score ? (n(),
|
|
1652
|
-
|
|
1653
|
-
], 64)) :
|
|
1656
|
+
e.event.score ? (n(), c(y, { key: 2 }, [
|
|
1657
|
+
x(" - (" + l(e.event.score) + ") ", 1)
|
|
1658
|
+
], 64)) : w("", !0)
|
|
1654
1659
|
]),
|
|
1655
1660
|
"details-list": T(() => [
|
|
1656
1661
|
o("ul", Cn, [
|
|
@@ -1664,7 +1669,7 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1664
1669
|
])
|
|
1665
1670
|
]),
|
|
1666
1671
|
"team-logo": T(() => [
|
|
1667
|
-
(n(),
|
|
1672
|
+
(n(), k(ue, {
|
|
1668
1673
|
key: e.event.team.id,
|
|
1669
1674
|
name: e.event.team.longName,
|
|
1670
1675
|
logo: e.event.team.logo,
|
|
@@ -1687,12 +1692,12 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1687
1692
|
},
|
|
1688
1693
|
setup(e) {
|
|
1689
1694
|
const { t: r } = I();
|
|
1690
|
-
return (a, i) => (n(),
|
|
1695
|
+
return (a, i) => (n(), c("div", Rn, [
|
|
1691
1696
|
i[0] || (i[0] = o("div", null, null, -1)),
|
|
1692
1697
|
o("p", null, l(e.event.eventPeriod === "pre" ? "-20:00" : e.event.eventTime), 1),
|
|
1693
1698
|
o("span", null, [
|
|
1694
1699
|
f(t(qe)),
|
|
1695
|
-
|
|
1700
|
+
x(" " + l(t(r)(`periods.${e.event.eventPeriod}`)), 1)
|
|
1696
1701
|
])
|
|
1697
1702
|
]));
|
|
1698
1703
|
}
|
|
@@ -1710,16 +1715,16 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1710
1715
|
},
|
|
1711
1716
|
setup(e) {
|
|
1712
1717
|
const { t: r } = I();
|
|
1713
|
-
return (a, i) => (n(),
|
|
1718
|
+
return (a, i) => (n(), k(ge, {
|
|
1714
1719
|
timestamp: e.event.eventTime,
|
|
1715
1720
|
"is-home-team": e.isHomeTeam,
|
|
1716
1721
|
"event-type": e.event.type
|
|
1717
1722
|
}, {
|
|
1718
1723
|
title: T(() => [
|
|
1719
|
-
|
|
1724
|
+
x(l(t(r)("events.timeout")), 1)
|
|
1720
1725
|
]),
|
|
1721
1726
|
"team-logo": T(() => [
|
|
1722
|
-
(n(),
|
|
1727
|
+
(n(), k(ue, {
|
|
1723
1728
|
key: e.event.team.id,
|
|
1724
1729
|
name: e.event.team.longName,
|
|
1725
1730
|
logo: e.event.team.logo,
|
|
@@ -1745,8 +1750,8 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1745
1750
|
}
|
|
1746
1751
|
},
|
|
1747
1752
|
setup(e) {
|
|
1748
|
-
const r = e, a = (/* @__PURE__ */ new Map()).set("Gól", xn).set("Kiállítás", Ln).set("Kapus", Pn).set("Idő", Kn).set("Büntető", Hn).set("Period", Bn), i =
|
|
1749
|
-
return (
|
|
1753
|
+
const r = e, a = (/* @__PURE__ */ new Map()).set("Gól", xn).set("Kiállítás", Ln).set("Kapus", Pn).set("Idő", Kn).set("Büntető", Hn).set("Period", Bn), i = p(() => a.get(r.event.type)), s = p(() => r.event?.team?.id === r.homeTeamId);
|
|
1754
|
+
return (d, g) => (n(), k(vt(i.value), {
|
|
1750
1755
|
event: e.event,
|
|
1751
1756
|
"is-home-team": s.value
|
|
1752
1757
|
}, null, 8, ["event", "is-home-team"]));
|
|
@@ -1764,8 +1769,8 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1764
1769
|
}
|
|
1765
1770
|
},
|
|
1766
1771
|
setup(e) {
|
|
1767
|
-
return (r, a) => (n(),
|
|
1768
|
-
(n(!0),
|
|
1772
|
+
return (r, a) => (n(), c("div", Fn, [
|
|
1773
|
+
(n(!0), c(y, null, E(e.gameEvents, (i) => (n(), k(Vn, {
|
|
1769
1774
|
key: i.eventId,
|
|
1770
1775
|
event: i,
|
|
1771
1776
|
"home-team-id": e.gameData.homeTeam.id
|
|
@@ -1800,46 +1805,46 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1800
1805
|
}
|
|
1801
1806
|
},
|
|
1802
1807
|
setup(e) {
|
|
1803
|
-
const r = e, { t: a } = I(), { resolver: i } = ie(), s =
|
|
1804
|
-
return (m,
|
|
1805
|
-
(n(!0),
|
|
1808
|
+
const r = e, { t: a } = I(), { resolver: i } = ie(), s = p(() => xo(r.data, r.homeTeamId, r.awayTeamId)), d = p(() => et(r.gameOfficials?.gameTeamMembers?.home ?? [])), g = p(() => et(r.gameOfficials?.gameTeamMembers?.away ?? []));
|
|
1809
|
+
return (m, v) => (n(), c("div", Yn, [
|
|
1810
|
+
(n(!0), c(y, null, E(s.value, (h, u) => (n(), c(y, { key: u }, [
|
|
1806
1811
|
o("h2", Wn, l(t(a)(`rows.row-${u}`)), 1),
|
|
1807
1812
|
o("div", qn, [
|
|
1808
|
-
(n(!0),
|
|
1813
|
+
(n(!0), c(y, null, E(h, (S, b) => (n(), c("div", {
|
|
1809
1814
|
key: b,
|
|
1810
1815
|
class: V(["gamecenter-timeline-lineups-lines", [{ "is-away-team": b === "away" }]])
|
|
1811
1816
|
}, [
|
|
1812
|
-
(n(!0),
|
|
1813
|
-
key:
|
|
1814
|
-
class: V(["is-player-wrapper", [`is-${
|
|
1817
|
+
(n(!0), c(y, null, E(S, (_) => (n(), c("ul", {
|
|
1818
|
+
key: _.position,
|
|
1819
|
+
class: V(["is-player-wrapper", [`is-${_.position}`]])
|
|
1815
1820
|
}, [
|
|
1816
1821
|
o("li", null, [
|
|
1817
1822
|
f(t(X), {
|
|
1818
|
-
src:
|
|
1823
|
+
src: _.player.picture
|
|
1819
1824
|
}, null, 8, ["src"])
|
|
1820
1825
|
]),
|
|
1821
|
-
o("li", null, l(
|
|
1826
|
+
o("li", null, l(_.number), 1),
|
|
1822
1827
|
o("li", null, [
|
|
1823
1828
|
o("a", {
|
|
1824
|
-
href: t(i)(
|
|
1829
|
+
href: t(i)(_),
|
|
1825
1830
|
target: "_blank"
|
|
1826
|
-
}, l(t(Oe)(
|
|
1831
|
+
}, l(t(Oe)(_)?.name ?? ""), 9, Qn),
|
|
1827
1832
|
o("ul", null, [
|
|
1828
|
-
(n(!0),
|
|
1833
|
+
(n(!0), c(y, null, E(_.goal, (z) => (n(), c("li", { key: z }, [
|
|
1829
1834
|
f(t(ve))
|
|
1830
1835
|
]))), 128))
|
|
1831
1836
|
])
|
|
1832
1837
|
]),
|
|
1833
|
-
o("li", null, l(
|
|
1838
|
+
o("li", null, l(_.position), 1)
|
|
1834
1839
|
], 2))), 128))
|
|
1835
1840
|
], 2))), 128))
|
|
1836
1841
|
])
|
|
1837
1842
|
], 64))), 128)),
|
|
1838
|
-
|
|
1843
|
+
v[0] || (v[0] = o("hr", null, null, -1)),
|
|
1839
1844
|
o("h2", Jn, l(t(a)("title.coaches")), 1),
|
|
1840
1845
|
o("div", Zn, [
|
|
1841
1846
|
o("div", Xn, [
|
|
1842
|
-
(n(!0),
|
|
1847
|
+
(n(!0), c(y, null, E(d.value, (h, u) => (n(), c("ul", {
|
|
1843
1848
|
key: h.role,
|
|
1844
1849
|
class: "is-official-person-container is-home-team"
|
|
1845
1850
|
}, [
|
|
@@ -1853,7 +1858,7 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1853
1858
|
]))), 128))
|
|
1854
1859
|
]),
|
|
1855
1860
|
o("div", ei, [
|
|
1856
|
-
(n(!0),
|
|
1861
|
+
(n(!0), c(y, null, E(g.value, (h, u) => (n(), c("ul", {
|
|
1857
1862
|
key: h.role,
|
|
1858
1863
|
class: "is-official-person-container is-away-team"
|
|
1859
1864
|
}, [
|
|
@@ -1870,7 +1875,7 @@ const Po = { class: "gamecenter-game-data gamecenter-timeline-game-data" }, $o =
|
|
|
1870
1875
|
]));
|
|
1871
1876
|
}
|
|
1872
1877
|
};
|
|
1873
|
-
function
|
|
1878
|
+
function Ne(e, r) {
|
|
1874
1879
|
return Object.keys(e).map((i) => ({
|
|
1875
1880
|
...e[i].name ? { name: e[i].name } : e[i].firstName ? Oe(e[i]) : { name: "" },
|
|
1876
1881
|
role: r(`teamMembers.${i}`)
|
|
@@ -1902,8 +1907,8 @@ const ai = ["href"], B = {
|
|
|
1902
1907
|
},
|
|
1903
1908
|
emits: ["sort"],
|
|
1904
1909
|
setup(e, { emit: r }) {
|
|
1905
|
-
const a = e, i = r, s = H(null), { t:
|
|
1906
|
-
return (m,
|
|
1910
|
+
const a = e, i = r, s = H(null), { t: d } = I(), g = (m) => i("sort", m);
|
|
1911
|
+
return (m, v) => (n(), c("div", null, [
|
|
1907
1912
|
o("h3", null, l(e.title), 1),
|
|
1908
1913
|
f(t(na), null, {
|
|
1909
1914
|
default: T(({ el: h }) => [
|
|
@@ -1915,17 +1920,17 @@ const ai = ["href"], B = {
|
|
|
1915
1920
|
onSort: g
|
|
1916
1921
|
}, {
|
|
1917
1922
|
"cell-name": T(({ row: u }) => [
|
|
1918
|
-
e.playerResolver ? (n(),
|
|
1923
|
+
e.playerResolver ? (n(), c("a", {
|
|
1919
1924
|
key: 0,
|
|
1920
1925
|
href: e.playerResolver({ player: u.player }),
|
|
1921
1926
|
target: "_blank"
|
|
1922
|
-
}, l(u.name), 9, ai)) : (n(),
|
|
1923
|
-
|
|
1927
|
+
}, l(u.name), 9, ai)) : (n(), c(y, { key: 1 }, [
|
|
1928
|
+
x(l(u.name), 1)
|
|
1924
1929
|
], 64)),
|
|
1925
|
-
u.isBP ? (n(),
|
|
1930
|
+
u.isBP ? (n(), k(t(q), {
|
|
1926
1931
|
key: 2,
|
|
1927
1932
|
placement: "top",
|
|
1928
|
-
content: t(
|
|
1933
|
+
content: t(d)("bestPlayer"),
|
|
1929
1934
|
"append-to": s.value
|
|
1930
1935
|
}, {
|
|
1931
1936
|
default: T(({ setRef: S, events: b }) => [
|
|
@@ -1937,15 +1942,15 @@ const ai = ["href"], B = {
|
|
|
1937
1942
|
], 16)
|
|
1938
1943
|
]),
|
|
1939
1944
|
_: 1
|
|
1940
|
-
}, 8, ["content", "append-to"])) :
|
|
1945
|
+
}, 8, ["content", "append-to"])) : w("", !0)
|
|
1941
1946
|
]),
|
|
1942
1947
|
"cell-cora": T(({ row: u }) => [
|
|
1943
|
-
u.isPlayerC ? (n(),
|
|
1944
|
-
|
|
1945
|
-
], 64)) :
|
|
1946
|
-
u.isPlayerA ? (n(),
|
|
1947
|
-
|
|
1948
|
-
], 64)) :
|
|
1948
|
+
u.isPlayerC ? (n(), c(y, { key: 0 }, [
|
|
1949
|
+
x(" C ")
|
|
1950
|
+
], 64)) : w("", !0),
|
|
1951
|
+
u.isPlayerA ? (n(), c(y, { key: 1 }, [
|
|
1952
|
+
x(" A ")
|
|
1953
|
+
], 64)) : w("", !0)
|
|
1949
1954
|
]),
|
|
1950
1955
|
_: 1
|
|
1951
1956
|
}, 8, ["columns", "rows", "append-to", "sort"])
|
|
@@ -1981,14 +1986,14 @@ const ai = ["href"], B = {
|
|
|
1981
1986
|
}
|
|
1982
1987
|
},
|
|
1983
1988
|
setup(e) {
|
|
1984
|
-
const r = e, { columns: a } = ne($t), { columns: i } = ne(Fr), { t: s } = I(),
|
|
1985
|
-
return (
|
|
1989
|
+
const r = e, { columns: a } = ne($t), { columns: i } = ne(Fr), { t: s } = I(), d = p(() => Ne(r.gameOfficials?.gameTeamMembers?.home ?? [], s)), g = p(() => Ne(r.gameOfficials?.gameTeamMembers?.away ?? [], s)), m = p(() => wa(r.gameOfficials.gameOfficials, s));
|
|
1990
|
+
return (v, h) => (n(), c("div", ri, [
|
|
1986
1991
|
o("h2", oi, l(t(s)("title.teamOfficials")), 1),
|
|
1987
1992
|
o("div", ni, [
|
|
1988
1993
|
f(B, {
|
|
1989
1994
|
class: "is-home-team gamecenter-timeline-data-table",
|
|
1990
1995
|
columns: t(a),
|
|
1991
|
-
rows:
|
|
1996
|
+
rows: d.value,
|
|
1992
1997
|
title: e.homeTeamName
|
|
1993
1998
|
}, null, 8, ["columns", "rows", "title"]),
|
|
1994
1999
|
f(B, {
|
|
@@ -2000,7 +2005,7 @@ const ai = ["href"], B = {
|
|
|
2000
2005
|
]),
|
|
2001
2006
|
o("h2", ii, l(t(s)("title.gameOfficials")), 1),
|
|
2002
2007
|
o("div", si, [
|
|
2003
|
-
(n(!0),
|
|
2008
|
+
(n(!0), c(y, null, E(m.value, (u, S) => (n(), k(B, {
|
|
2004
2009
|
key: S,
|
|
2005
2010
|
class: "gamecenter-timeline-data-table",
|
|
2006
2011
|
columns: t(i),
|
|
@@ -2010,7 +2015,7 @@ const ai = ["href"], B = {
|
|
|
2010
2015
|
])
|
|
2011
2016
|
]));
|
|
2012
2017
|
}
|
|
2013
|
-
},
|
|
2018
|
+
}, je = {
|
|
2014
2019
|
__name: "GameGoaliesStatsProvider",
|
|
2015
2020
|
props: {
|
|
2016
2021
|
rows: {
|
|
@@ -2019,10 +2024,10 @@ const ai = ["href"], B = {
|
|
|
2019
2024
|
}
|
|
2020
2025
|
},
|
|
2021
2026
|
setup(e) {
|
|
2022
|
-
const r = e, a =
|
|
2027
|
+
const r = e, a = p(() => Fe(r.rows, Oe, wt(["mip"])));
|
|
2023
2028
|
return (i, s) => Z(i.$slots, "default", { rows: a.value });
|
|
2024
2029
|
}
|
|
2025
|
-
},
|
|
2030
|
+
}, Ee = {
|
|
2026
2031
|
__name: "GamePlayerStatsProvider",
|
|
2027
2032
|
props: {
|
|
2028
2033
|
rows: {
|
|
@@ -2031,11 +2036,11 @@ const ai = ["href"], B = {
|
|
|
2031
2036
|
}
|
|
2032
2037
|
},
|
|
2033
2038
|
setup(e) {
|
|
2034
|
-
const r = e, { sort: a, change: i } = sa(), s =
|
|
2039
|
+
const r = e, { sort: a, change: i } = sa(), s = p(
|
|
2035
2040
|
() => Fe(Ue(fa("gk", "row"), r.rows), ya("position"), Oe)
|
|
2036
|
-
),
|
|
2041
|
+
), d = p(() => ba(s.value).sorted(a).value());
|
|
2037
2042
|
return (g, m) => Z(g.$slots, "default", {
|
|
2038
|
-
rows:
|
|
2043
|
+
rows: d.value.rows,
|
|
2039
2044
|
sort: t(a),
|
|
2040
2045
|
onSort: t(i)
|
|
2041
2046
|
});
|
|
@@ -2063,34 +2068,34 @@ const ai = ["href"], B = {
|
|
|
2063
2068
|
}
|
|
2064
2069
|
},
|
|
2065
2070
|
setup(e) {
|
|
2066
|
-
const r = e, { t: a } = I(), { resolver: i } = ie(), { columns: s } = ne(St), { columns:
|
|
2067
|
-
return (u, S) => (n(),
|
|
2071
|
+
const r = e, { t: a } = I(), { resolver: i } = ie(), { columns: s } = ne(St), { columns: d } = ne(Pt), g = p(() => Pe(r.data?.players?.[r.homeTeamId] ?? [])), m = p(() => Pe(r.data?.players?.[r.awayTeamId] ?? [])), v = p(() => _e(r.data?.goalies?.[r.homeTeamId] ?? [])), h = p(() => _e(r.data?.goalies?.[r.awayTeamId] ?? []));
|
|
2072
|
+
return (u, S) => (n(), c(y, null, [
|
|
2068
2073
|
o("h2", mi, l(t(a)("title.fieldPlayers")), 1),
|
|
2069
2074
|
o("div", ci, [
|
|
2070
|
-
f(
|
|
2071
|
-
default: T(({ rows: b, sort:
|
|
2075
|
+
f(Ee, { rows: g.value }, {
|
|
2076
|
+
default: T(({ rows: b, sort: _, onSort: z }) => [
|
|
2072
2077
|
f(B, {
|
|
2073
2078
|
class: "is-home-team gamecenter-timeline-data-table",
|
|
2074
2079
|
columns: t(s),
|
|
2075
2080
|
rows: b,
|
|
2076
2081
|
title: e.homeTeamName,
|
|
2077
|
-
sort:
|
|
2082
|
+
sort: _,
|
|
2078
2083
|
"player-resolver": t(i),
|
|
2079
|
-
onSort:
|
|
2084
|
+
onSort: z
|
|
2080
2085
|
}, null, 8, ["columns", "rows", "title", "sort", "player-resolver", "onSort"])
|
|
2081
2086
|
]),
|
|
2082
2087
|
_: 1
|
|
2083
2088
|
}, 8, ["rows"]),
|
|
2084
|
-
f(
|
|
2085
|
-
default: T(({ rows: b, sort:
|
|
2089
|
+
f(Ee, { rows: m.value }, {
|
|
2090
|
+
default: T(({ rows: b, sort: _, onSort: z }) => [
|
|
2086
2091
|
f(B, {
|
|
2087
2092
|
class: "is-away-team gamecenter-timeline-data-table",
|
|
2088
2093
|
columns: t(s),
|
|
2089
2094
|
rows: b,
|
|
2090
2095
|
title: e.awayTeamName,
|
|
2091
|
-
sort:
|
|
2096
|
+
sort: _,
|
|
2092
2097
|
"player-resolver": t(i),
|
|
2093
|
-
onSort:
|
|
2098
|
+
onSort: z
|
|
2094
2099
|
}, null, 8, ["columns", "rows", "title", "sort", "player-resolver", "onSort"])
|
|
2095
2100
|
]),
|
|
2096
2101
|
_: 1
|
|
@@ -2098,11 +2103,11 @@ const ai = ["href"], B = {
|
|
|
2098
2103
|
]),
|
|
2099
2104
|
o("h2", di, l(t(a)("title.goalies")), 1),
|
|
2100
2105
|
o("div", vi, [
|
|
2101
|
-
f(
|
|
2106
|
+
f(je, { rows: v.value }, {
|
|
2102
2107
|
default: T(({ rows: b }) => [
|
|
2103
2108
|
f(B, {
|
|
2104
2109
|
class: "is-home-team gamecenter-timeline-data-table",
|
|
2105
|
-
columns: t(
|
|
2110
|
+
columns: t(d),
|
|
2106
2111
|
rows: b,
|
|
2107
2112
|
title: e.homeTeamName,
|
|
2108
2113
|
"player-resolver": t(i)
|
|
@@ -2110,11 +2115,11 @@ const ai = ["href"], B = {
|
|
|
2110
2115
|
]),
|
|
2111
2116
|
_: 1
|
|
2112
2117
|
}, 8, ["rows"]),
|
|
2113
|
-
f(
|
|
2118
|
+
f(je, { rows: h.value }, {
|
|
2114
2119
|
default: T(({ rows: b }) => [
|
|
2115
2120
|
f(B, {
|
|
2116
2121
|
class: "is-away-team gamecenter-timeline-data-table",
|
|
2117
|
-
columns: t(
|
|
2122
|
+
columns: t(d),
|
|
2118
2123
|
rows: b,
|
|
2119
2124
|
title: e.awayTeamName,
|
|
2120
2125
|
"player-resolver": t(i)
|
|
@@ -2142,47 +2147,47 @@ const ai = ["href"], B = {
|
|
|
2142
2147
|
},
|
|
2143
2148
|
emits: ["update:activeTab"],
|
|
2144
2149
|
setup(e, { emit: r }) {
|
|
2145
|
-
const a = e, i = r, s = Ye("history"), { t:
|
|
2150
|
+
const a = e, i = r, s = Ye("history"), { t: d } = I();
|
|
2146
2151
|
function g(m) {
|
|
2147
2152
|
i("update:activeTab", m), a.useSearchParams && (s.tab = m);
|
|
2148
2153
|
}
|
|
2149
|
-
return (m,
|
|
2154
|
+
return (m, v) => (n(), c("nav", ui, [
|
|
2150
2155
|
o("div", hi, [
|
|
2151
2156
|
o("button", {
|
|
2152
2157
|
role: "tab",
|
|
2153
2158
|
type: "button",
|
|
2154
2159
|
"aria-selected": e.activeTab === t(de),
|
|
2155
2160
|
class: V(["tab-button", { "is-active": e.activeTab === t(de) }]),
|
|
2156
|
-
onClick:
|
|
2157
|
-
}, l(t(
|
|
2161
|
+
onClick: v[0] || (v[0] = (h) => g(t(de)))
|
|
2162
|
+
}, l(t(d)("menu.events")), 11, pi),
|
|
2158
2163
|
o("button", {
|
|
2159
2164
|
role: "tab",
|
|
2160
2165
|
type: "button",
|
|
2161
2166
|
"aria-selected": e.activeTab === t(fe),
|
|
2162
2167
|
class: V(["tab-button", { "is-active": e.activeTab === t(fe) }]),
|
|
2163
|
-
onClick:
|
|
2164
|
-
}, l(t(
|
|
2168
|
+
onClick: v[1] || (v[1] = (h) => g(t(fe)))
|
|
2169
|
+
}, l(t(d)("menu.lineups")), 11, wi),
|
|
2165
2170
|
o("button", {
|
|
2166
2171
|
role: "tab",
|
|
2167
2172
|
type: "button",
|
|
2168
2173
|
"aria-selected": e.activeTab === t(ye),
|
|
2169
2174
|
class: V(["tab-button", { "is-active": e.activeTab === t(ye) }]),
|
|
2170
|
-
onClick:
|
|
2171
|
-
}, l(t(
|
|
2175
|
+
onClick: v[2] || (v[2] = (h) => g(t(ye)))
|
|
2176
|
+
}, l(t(d)("menu.teamStats")), 11, fi),
|
|
2172
2177
|
o("button", {
|
|
2173
2178
|
role: "tab",
|
|
2174
2179
|
type: "button",
|
|
2175
2180
|
"aria-selected": e.activeTab === t(be),
|
|
2176
2181
|
class: V(["tab-button", { "is-active": e.activeTab === t(be) }]),
|
|
2177
|
-
onClick:
|
|
2178
|
-
}, l(t(
|
|
2182
|
+
onClick: v[3] || (v[3] = (h) => g(t(be)))
|
|
2183
|
+
}, l(t(d)("menu.playerStats")), 11, yi),
|
|
2179
2184
|
o("button", {
|
|
2180
2185
|
role: "tab",
|
|
2181
2186
|
type: "button",
|
|
2182
2187
|
"aria-selected": e.activeTab === t(ke),
|
|
2183
2188
|
class: V(["tab-button", { "is-active": e.activeTab === t(ke) }]),
|
|
2184
|
-
onClick:
|
|
2185
|
-
}, l(t(
|
|
2189
|
+
onClick: v[4] || (v[4] = (h) => g(t(ke)))
|
|
2190
|
+
}, l(t(d)("menu.officials")), 11, bi)
|
|
2186
2191
|
])
|
|
2187
2192
|
]));
|
|
2188
2193
|
}
|
|
@@ -2211,14 +2216,14 @@ const ai = ["href"], B = {
|
|
|
2211
2216
|
}
|
|
2212
2217
|
},
|
|
2213
2218
|
setup(e) {
|
|
2214
|
-
const r = e, a =
|
|
2215
|
-
return (s,
|
|
2219
|
+
const r = e, a = p(() => ({ width: `${r.valueStart / r.max * 100 || 0}%` })), i = p(() => ({ width: `${r.valueEnd / r.max * 100 || 0}%` }));
|
|
2220
|
+
return (s, d) => (n(), c("div", xi, [
|
|
2216
2221
|
o("div", zi, [
|
|
2217
2222
|
Z(s.$slots, "value-start", {}, () => [
|
|
2218
|
-
|
|
2219
|
-
e.valueSuffix ? (n(),
|
|
2220
|
-
|
|
2221
|
-
], 64)) :
|
|
2223
|
+
x(l(e.valueStart) + " ", 1),
|
|
2224
|
+
e.valueSuffix ? (n(), c(y, { key: 0 }, [
|
|
2225
|
+
x(l(e.valueSuffix), 1)
|
|
2226
|
+
], 64)) : w("", !0)
|
|
2222
2227
|
])
|
|
2223
2228
|
]),
|
|
2224
2229
|
o("div", Ti, [
|
|
@@ -2235,16 +2240,16 @@ const ai = ["href"], B = {
|
|
|
2235
2240
|
]),
|
|
2236
2241
|
o("div", Si, [
|
|
2237
2242
|
Z(s.$slots, "value-end", {}, () => [
|
|
2238
|
-
|
|
2239
|
-
e.valueSuffix ? (n(),
|
|
2240
|
-
|
|
2241
|
-
], 64)) :
|
|
2243
|
+
x(l(e.valueEnd) + " ", 1),
|
|
2244
|
+
e.valueSuffix ? (n(), c(y, { key: 0 }, [
|
|
2245
|
+
x(l(e.valueSuffix), 1)
|
|
2246
|
+
], 64)) : w("", !0)
|
|
2242
2247
|
])
|
|
2243
2248
|
]),
|
|
2244
2249
|
o("div", Pi, l(e.title), 1)
|
|
2245
2250
|
]));
|
|
2246
2251
|
}
|
|
2247
|
-
}, $i = { class: "gamecenter-timeline-team-stats" },
|
|
2252
|
+
}, $i = { class: "gamecenter-timeline-team-stats" }, Ni = { class: "text-center" }, ji = { class: "is-stat-container" }, Ei = { class: "text-center" }, Ii = { class: "is-stat-container" }, Oi = { class: "text-center" }, Mi = { class: "is-stat-container" }, Li = { class: "text-center" }, Ci = { class: "is-stat-container" }, Ai = { class: "text-center" }, Di = { class: "is-stat-container" }, Gi = { class: "text-center" }, Hi = { class: "is-stat-container" }, Ri = {
|
|
2248
2253
|
__name: "GameTeamStats",
|
|
2249
2254
|
props: {
|
|
2250
2255
|
gameStats: {
|
|
@@ -2257,60 +2262,60 @@ const ai = ["href"], B = {
|
|
|
2257
2262
|
}
|
|
2258
2263
|
},
|
|
2259
2264
|
setup(e) {
|
|
2260
|
-
const r = e, { t: a } = I(), i =
|
|
2265
|
+
const r = e, { t: a } = I(), i = p(() => r.gameData?.homeTeam?.id ?? ""), s = p(() => r.gameData?.awayTeam?.id ?? ""), d = p(() => Ge(r.gameStats?.teamSOG ?? [], s.value, i.value, "shots")), g = p(() => Ge(r.gameStats?.teamSOG ?? [], i.value, s.value, "saves")), m = p(
|
|
2261
2266
|
() => Ge(r.gameStats?.teamPenalties ?? [], i.value, s.value, "penaltyLength")
|
|
2262
|
-
),
|
|
2263
|
-
return (S, b) => (n(),
|
|
2264
|
-
o("h2",
|
|
2265
|
-
o("div",
|
|
2266
|
-
(n(!0),
|
|
2267
|
-
key:
|
|
2268
|
-
max:
|
|
2269
|
-
"value-start":
|
|
2270
|
-
"value-end":
|
|
2271
|
-
title: t(a)(`section.${
|
|
2267
|
+
), v = p(() => To(r.gameStats?.teamPowerPlay ?? {})), h = p(() => _o(r.gameStats?.teamPowerPlay ?? {})), u = p(() => zo(r.gameStats?.teamPowerPlay ?? {}));
|
|
2268
|
+
return (S, b) => (n(), c("div", $i, [
|
|
2269
|
+
o("h2", Ni, l(t(a)("teamsStats.sog")), 1),
|
|
2270
|
+
o("div", ji, [
|
|
2271
|
+
(n(!0), c(y, null, E(d.value, ({ max: _, valueStart: z, valueEnd: $ }, N) => (n(), k(te, {
|
|
2272
|
+
key: N,
|
|
2273
|
+
max: _,
|
|
2274
|
+
"value-start": z,
|
|
2275
|
+
"value-end": $,
|
|
2276
|
+
title: t(a)(`section.${N}`)
|
|
2272
2277
|
}, null, 8, ["max", "value-start", "value-end", "title"]))), 128))
|
|
2273
2278
|
]),
|
|
2274
|
-
o("h2",
|
|
2279
|
+
o("h2", Ei, l(t(a)("teamsStats.saves")), 1),
|
|
2275
2280
|
o("div", Ii, [
|
|
2276
|
-
(n(!0),
|
|
2277
|
-
key:
|
|
2278
|
-
max:
|
|
2279
|
-
"value-start":
|
|
2280
|
-
"value-end":
|
|
2281
|
-
title: t(a)(`section.${
|
|
2281
|
+
(n(!0), c(y, null, E(g.value, ({ max: _, valueStart: z, valueEnd: $ }, N) => (n(), k(te, {
|
|
2282
|
+
key: N,
|
|
2283
|
+
max: _,
|
|
2284
|
+
"value-start": z,
|
|
2285
|
+
"value-end": $,
|
|
2286
|
+
title: t(a)(`section.${N}`)
|
|
2282
2287
|
}, null, 8, ["max", "value-start", "value-end", "title"]))), 128))
|
|
2283
2288
|
]),
|
|
2284
2289
|
o("h2", Oi, l(t(a)("teamsStats.pim")), 1),
|
|
2285
2290
|
o("div", Mi, [
|
|
2286
|
-
(n(!0),
|
|
2287
|
-
key:
|
|
2288
|
-
max:
|
|
2289
|
-
"value-start":
|
|
2290
|
-
"value-end":
|
|
2291
|
-
title: t(a)(`section.${
|
|
2291
|
+
(n(!0), c(y, null, E(m.value, ({ max: _, valueStart: z, valueEnd: $ }, N) => (n(), k(te, {
|
|
2292
|
+
key: N,
|
|
2293
|
+
max: _,
|
|
2294
|
+
"value-start": z,
|
|
2295
|
+
"value-end": $,
|
|
2296
|
+
title: t(a)(`section.${N}`)
|
|
2292
2297
|
}, null, 8, ["max", "value-start", "value-end", "title"]))), 128))
|
|
2293
2298
|
]),
|
|
2294
2299
|
o("h2", Li, l(t(a)("teamsStats.advPercent")), 1),
|
|
2295
2300
|
o("div", Ci, [
|
|
2296
|
-
(n(!0),
|
|
2301
|
+
(n(!0), c(y, null, E(v.value, ({ max: _, valueStart: z, valueEnd: $, suffix: N }, L) => (n(), k(te, {
|
|
2297
2302
|
key: L,
|
|
2298
|
-
max:
|
|
2299
|
-
"value-start":
|
|
2300
|
-
"value-end":
|
|
2303
|
+
max: _,
|
|
2304
|
+
"value-start": z,
|
|
2305
|
+
"value-end": $,
|
|
2301
2306
|
title: t(a)(`stats.${L}`),
|
|
2302
|
-
"value-suffix":
|
|
2307
|
+
"value-suffix": N
|
|
2303
2308
|
}, null, 8, ["max", "value-start", "value-end", "title", "value-suffix"]))), 128))
|
|
2304
2309
|
]),
|
|
2305
2310
|
o("h2", Ai, l(t(a)("teamsStats.penaltyKilling")), 1),
|
|
2306
2311
|
o("div", Di, [
|
|
2307
|
-
(n(!0),
|
|
2312
|
+
(n(!0), c(y, null, E(h.value, ({ max: _, valueStart: z, valueEnd: $, suffix: N }, L) => (n(), k(te, {
|
|
2308
2313
|
key: L,
|
|
2309
|
-
max:
|
|
2310
|
-
"value-start":
|
|
2311
|
-
"value-end":
|
|
2314
|
+
max: _,
|
|
2315
|
+
"value-start": z,
|
|
2316
|
+
"value-end": $,
|
|
2312
2317
|
title: t(a)(`stats.${L}`),
|
|
2313
|
-
"value-suffix":
|
|
2318
|
+
"value-suffix": N
|
|
2314
2319
|
}, null, 8, ["max", "value-start", "value-end", "title", "value-suffix"]))), 128))
|
|
2315
2320
|
]),
|
|
2316
2321
|
o("h2", Gi, l(t(a)("teamsStats.advantageTime")), 1),
|
|
@@ -2322,10 +2327,10 @@ const ai = ["href"], B = {
|
|
|
2322
2327
|
title: t(a)("section.all")
|
|
2323
2328
|
}, {
|
|
2324
2329
|
"value-start": T(() => [
|
|
2325
|
-
|
|
2330
|
+
x(l(t(K)(u.value.advTime.valueStart)), 1)
|
|
2326
2331
|
]),
|
|
2327
2332
|
"value-end": T(() => [
|
|
2328
|
-
|
|
2333
|
+
x(l(t(K)(u.value.advTime.valueEnd)), 1)
|
|
2329
2334
|
]),
|
|
2330
2335
|
_: 1
|
|
2331
2336
|
}, 8, ["max", "value-start", "value-end", "title"]),
|
|
@@ -2336,10 +2341,10 @@ const ai = ["href"], B = {
|
|
|
2336
2341
|
title: t(a)("teamsStats.advantageTimePP1")
|
|
2337
2342
|
}, {
|
|
2338
2343
|
"value-start": T(() => [
|
|
2339
|
-
|
|
2344
|
+
x(l(t(K)(u.value.advTimePP1.valueStart)), 1)
|
|
2340
2345
|
]),
|
|
2341
2346
|
"value-end": T(() => [
|
|
2342
|
-
|
|
2347
|
+
x(l(t(K)(u.value.advTimePP1.valueEnd)), 1)
|
|
2343
2348
|
]),
|
|
2344
2349
|
_: 1
|
|
2345
2350
|
}, 8, ["max", "value-start", "value-end", "title"]),
|
|
@@ -2350,10 +2355,10 @@ const ai = ["href"], B = {
|
|
|
2350
2355
|
title: t(a)("teamsStats.advantageTimePP2")
|
|
2351
2356
|
}, {
|
|
2352
2357
|
"value-start": T(() => [
|
|
2353
|
-
|
|
2358
|
+
x(l(t(K)(u.value.advTimePP2.valueStart)), 1)
|
|
2354
2359
|
]),
|
|
2355
2360
|
"value-end": T(() => [
|
|
2356
|
-
|
|
2361
|
+
x(l(t(K)(u.value.advTimePP2.valueEnd)), 1)
|
|
2357
2362
|
]),
|
|
2358
2363
|
_: 1
|
|
2359
2364
|
}, 8, ["max", "value-start", "value-end", "title"])
|
|
@@ -2386,15 +2391,15 @@ const ai = ["href"], B = {
|
|
|
2386
2391
|
}
|
|
2387
2392
|
},
|
|
2388
2393
|
setup(e) {
|
|
2389
|
-
const r = e, a = { en: { ...Tt, ...nr }, hu: { ..._t, ...
|
|
2394
|
+
const r = e, a = { en: { ...Tt, ...nr }, hu: { ..._t, ...Nr } }, i = H(null), s = Ye("history"), d = H(s.tab || de), { errors: g, add: m, remove: v } = Et(), h = p(() => s?.gameid || s?.gameId || r.gameId), { state: u, execute: S } = ae({
|
|
2390
2395
|
options: {
|
|
2391
2396
|
path: "/v2/game-data",
|
|
2392
2397
|
apiKey: r.apiKey,
|
|
2393
2398
|
params: { gameId: h.value }
|
|
2394
2399
|
},
|
|
2395
2400
|
onError: (P) => m("gameData", P),
|
|
2396
|
-
onSuccess: () =>
|
|
2397
|
-
}), { state: b, execute:
|
|
2401
|
+
onSuccess: () => v("gameData")
|
|
2402
|
+
}), { state: b, execute: _ } = ae({
|
|
2398
2403
|
options: {
|
|
2399
2404
|
path: "/v2/game-events",
|
|
2400
2405
|
apiKey: r.apiKey,
|
|
@@ -2402,30 +2407,30 @@ const ai = ["href"], B = {
|
|
|
2402
2407
|
},
|
|
2403
2408
|
transform: (P) => ka(P),
|
|
2404
2409
|
onError: (P) => m("gameEvents", P),
|
|
2405
|
-
onSuccess: () =>
|
|
2406
|
-
}), { state:
|
|
2410
|
+
onSuccess: () => v("gameEvents")
|
|
2411
|
+
}), { state: z, execute: $ } = ae({
|
|
2407
2412
|
options: {
|
|
2408
2413
|
path: "/v2/game-stats",
|
|
2409
2414
|
apiKey: r.apiKey,
|
|
2410
2415
|
params: { gameId: h.value }
|
|
2411
2416
|
},
|
|
2412
2417
|
onError: (P) => m("gameStats", P),
|
|
2413
|
-
onSuccess: () =>
|
|
2414
|
-
}), { state:
|
|
2418
|
+
onSuccess: () => v("gameStats")
|
|
2419
|
+
}), { state: N, execute: L } = ae({
|
|
2415
2420
|
options: {
|
|
2416
2421
|
path: "/v2/game-officials",
|
|
2417
2422
|
apiKey: r.apiKey,
|
|
2418
2423
|
params: { gameId: h.value }
|
|
2419
2424
|
},
|
|
2420
2425
|
onError: (P) => m("gameOfficials", P),
|
|
2421
|
-
onSuccess: () =>
|
|
2426
|
+
onSuccess: () => v("gameOfficials")
|
|
2422
2427
|
});
|
|
2423
2428
|
So({
|
|
2424
2429
|
data: u,
|
|
2425
|
-
services: { getGameData: S, getGameStats:
|
|
2430
|
+
services: { getGameData: S, getGameStats: $, getEvents: _, getGameOfficials: L }
|
|
2426
2431
|
}), Gr(r.externalPlayerResolver, u);
|
|
2427
|
-
const O = Hr(u), U = yt(r.apiKey), j =
|
|
2428
|
-
return la(He(`/v2/game-data?gameid=${h.value}&apiKey=${U}`), u), (P, M) => (n(),
|
|
2432
|
+
const O = Hr(u), U = yt(r.apiKey), j = p(() => He(`/v2/game-attendance?gameid=${h.value}&apiKey=${U}`));
|
|
2433
|
+
return la(He(`/v2/game-data?gameid=${h.value}&apiKey=${U}`), u), (P, M) => (n(), c("div", {
|
|
2429
2434
|
class: "gamecenter-timeline",
|
|
2430
2435
|
style: xe(t(O))
|
|
2431
2436
|
}, [
|
|
@@ -2434,11 +2439,11 @@ const ai = ["href"], B = {
|
|
|
2434
2439
|
messages: a
|
|
2435
2440
|
}, {
|
|
2436
2441
|
default: T(() => [
|
|
2437
|
-
(n(!0),
|
|
2442
|
+
(n(!0), c(y, null, E(t(g), (A) => (n(), k(t(ht), {
|
|
2438
2443
|
key: A.key,
|
|
2439
2444
|
error: A
|
|
2440
2445
|
}, null, 8, ["error"]))), 128)),
|
|
2441
|
-
t(G)(t(u)) ?
|
|
2446
|
+
t(G)(t(u)) ? w("", !0) : (n(), k(en, {
|
|
2442
2447
|
key: 0,
|
|
2443
2448
|
ref_key: "contentElementRef",
|
|
2444
2449
|
ref: i,
|
|
@@ -2447,45 +2452,45 @@ const ai = ["href"], B = {
|
|
|
2447
2452
|
"websocket-url": j.value,
|
|
2448
2453
|
locale: e.locale
|
|
2449
2454
|
}, null, 8, ["game-events", "game-data", "websocket-url", "locale"])),
|
|
2450
|
-
t(u)?.gameStatus > 0 ? (n(),
|
|
2455
|
+
t(u)?.gameStatus > 0 ? (n(), c(y, { key: 1 }, [
|
|
2451
2456
|
f(ki, {
|
|
2452
|
-
"active-tab":
|
|
2453
|
-
"onUpdate:activeTab": M[0] || (M[0] = (A) =>
|
|
2457
|
+
"active-tab": d.value,
|
|
2458
|
+
"onUpdate:activeTab": M[0] || (M[0] = (A) => d.value = A)
|
|
2454
2459
|
}, null, 8, ["active-tab"]),
|
|
2455
|
-
|
|
2460
|
+
d.value === t(de) && !t(G)(t(b)) && !t(G)(t(u)) ? (n(), k(Un, {
|
|
2456
2461
|
key: 0,
|
|
2457
2462
|
"game-events": t(b),
|
|
2458
2463
|
"game-data": t(u)
|
|
2459
|
-
}, null, 8, ["game-events", "game-data"])) :
|
|
2460
|
-
|
|
2464
|
+
}, null, 8, ["game-events", "game-data"])) : w("", !0),
|
|
2465
|
+
d.value === t(fe) ? (n(), k(ti, {
|
|
2461
2466
|
key: 1,
|
|
2462
|
-
data: t(
|
|
2463
|
-
"game-officials": t(
|
|
2467
|
+
data: t(z).players,
|
|
2468
|
+
"game-officials": t(N),
|
|
2464
2469
|
"home-team-id": t(u).homeTeam.id,
|
|
2465
2470
|
"home-team-name": t(u).homeTeam.longName,
|
|
2466
2471
|
"away-team-id": t(u).awayTeam.id,
|
|
2467
2472
|
"away-team-name": t(u).awayTeam.longName
|
|
2468
|
-
}, null, 8, ["data", "game-officials", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) :
|
|
2469
|
-
|
|
2473
|
+
}, null, 8, ["data", "game-officials", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) : w("", !0),
|
|
2474
|
+
d.value === t(ye) ? (n(), k(Ri, {
|
|
2470
2475
|
key: 2,
|
|
2471
2476
|
"game-data": t(u),
|
|
2472
|
-
"game-stats": t(
|
|
2473
|
-
}, null, 8, ["game-data", "game-stats"])) :
|
|
2474
|
-
|
|
2477
|
+
"game-stats": t(z)
|
|
2478
|
+
}, null, 8, ["game-data", "game-stats"])) : w("", !0),
|
|
2479
|
+
d.value === t(be) && !t(G)(t(z)) ? (n(), k(gi, {
|
|
2475
2480
|
key: 3,
|
|
2476
|
-
data: t(
|
|
2481
|
+
data: t(z),
|
|
2477
2482
|
"home-team-id": t(u).homeTeam.id,
|
|
2478
2483
|
"home-team-name": t(u).homeTeam.longName,
|
|
2479
2484
|
"away-team-id": t(u).awayTeam.id,
|
|
2480
2485
|
"away-team-name": t(u).awayTeam.longName
|
|
2481
|
-
}, null, 8, ["data", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) :
|
|
2482
|
-
|
|
2486
|
+
}, null, 8, ["data", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) : w("", !0),
|
|
2487
|
+
d.value === t(ke) && !t(G)(t(N)) && !t(G)(t(u)) ? (n(), k(li, {
|
|
2483
2488
|
key: 4,
|
|
2484
|
-
"game-officials": t(
|
|
2489
|
+
"game-officials": t(N),
|
|
2485
2490
|
"home-team-name": t(u).homeTeam.longName,
|
|
2486
2491
|
"away-team-name": t(u).awayTeam.longName
|
|
2487
|
-
}, null, 8, ["game-officials", "home-team-name", "away-team-name"])) :
|
|
2488
|
-
], 64)) :
|
|
2492
|
+
}, null, 8, ["game-officials", "home-team-name", "away-team-name"])) : w("", !0)
|
|
2493
|
+
], 64)) : w("", !0)
|
|
2489
2494
|
]),
|
|
2490
2495
|
_: 1
|
|
2491
2496
|
}, 8, ["locale"])
|
|
@@ -2520,88 +2525,93 @@ const ai = ["href"], B = {
|
|
|
2520
2525
|
}
|
|
2521
2526
|
},
|
|
2522
2527
|
setup(e) {
|
|
2523
|
-
const r = e, { gameData: a, websocketUrl: i } = Ve(r), { t: s } = I(), { visitorsLabel:
|
|
2524
|
-
|
|
2528
|
+
const r = e, { gameData: a, websocketUrl: i } = Ve(r), { t: s } = I(), { visitorsLabel: d, isVisible: g } = Ut(i, a), m = p(() => [
|
|
2529
|
+
a.value.championshipName,
|
|
2530
|
+
...a.value.championshipName !== a.value.sectionName ? [a.value.sectionName] : [],
|
|
2531
|
+
a.value.divisionName,
|
|
2532
|
+
a.value.gameName
|
|
2533
|
+
].join(" - "));
|
|
2534
|
+
return (v, h) => (n(), c("div", es, [
|
|
2525
2535
|
o("div", ts, [
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
])).cacheIndex = 0, D(1),
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
])).cacheIndex = 1, D(1),
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
])).cacheIndex = 2, D(1),
|
|
2536
|
+
h[0] || (D(-1, !0), (h[0] = o("div", { class: "text-highlighted uppercase font-bold" }, [
|
|
2537
|
+
x(l(m.value) + " / " + l(t(a).location.locationName), 1)
|
|
2538
|
+
])).cacheIndex = 0, D(1), h[0]),
|
|
2539
|
+
h[1] || (D(-1, !0), (h[1] = o("div", { class: "text-muted" }, [
|
|
2540
|
+
x(l(t(ze)(t(a).gameDate, "L dddd - HH:mm", null, e.locale)) + " (" + l(t(Te)(new Date(t(a).gameDate), null, e.locale)) + ") ", 1)
|
|
2541
|
+
])).cacheIndex = 1, D(1), h[1]),
|
|
2542
|
+
h[2] || (D(-1, !0), (h[2] = o("div", { class: "text-muted text-sm" }, [
|
|
2543
|
+
x(l(t(s)("localTime")) + " (" + l(t(a).location.locationCountryISO || t(a).location.locationName) + "): " + l(t(ze)(t(a).gameDate, "L dddd - HH:mm", t(a).location.timezone, e.locale)) + " (" + l(t(Te)(new Date(t(a).gameDate), t(a).location.timezone, e.locale)) + ") ", 1)
|
|
2544
|
+
])).cacheIndex = 2, D(1), h[2]),
|
|
2535
2545
|
o("div", as, [
|
|
2536
|
-
t(a).electronicReportUrl ? (n(),
|
|
2546
|
+
t(a).electronicReportUrl ? (n(), c("a", {
|
|
2537
2547
|
key: 0,
|
|
2538
2548
|
href: t(a).electronicReportUrl,
|
|
2539
2549
|
target: "_blank"
|
|
2540
2550
|
}, [
|
|
2541
2551
|
f(t($e), { class: "is-icon" }),
|
|
2542
|
-
|
|
2543
|
-
], 8, rs)) :
|
|
2544
|
-
t(a).toiReportUrl ? (n(),
|
|
2552
|
+
x(" " + l(t(s)("sheet")), 1)
|
|
2553
|
+
], 8, rs)) : w("", !0),
|
|
2554
|
+
t(a).toiReportUrl ? (n(), c("a", {
|
|
2545
2555
|
key: 1,
|
|
2546
2556
|
href: t(a).toiReportUrl,
|
|
2547
2557
|
target: "_blank"
|
|
2548
2558
|
}, [
|
|
2549
2559
|
f(t($e), { class: "is-icon" }),
|
|
2550
|
-
|
|
2551
|
-
], 8, os)) :
|
|
2552
|
-
t(a).video ? (n(),
|
|
2560
|
+
x(" " + l(t(s)("toiSheet")), 1)
|
|
2561
|
+
], 8, os)) : w("", !0),
|
|
2562
|
+
t(a).video ? (n(), c("a", {
|
|
2553
2563
|
key: 2,
|
|
2554
2564
|
href: t(a).video,
|
|
2555
2565
|
target: "_blank"
|
|
2556
2566
|
}, [
|
|
2557
2567
|
f(t(Ft), { class: "is-icon" }),
|
|
2558
|
-
|
|
2559
|
-
], 8, ns)) :
|
|
2568
|
+
x(" " + l(t(s)("video")), 1)
|
|
2569
|
+
], 8, ns)) : w("", !0)
|
|
2560
2570
|
]),
|
|
2561
|
-
t(a).gameStatus <= 1 && t(g) ? (n(),
|
|
2571
|
+
t(a).gameStatus <= 1 && t(g) ? (n(), c("p", is, l(t(d)), 1)) : w("", !0)
|
|
2562
2572
|
]),
|
|
2563
2573
|
o("div", ss, [
|
|
2564
|
-
|
|
2574
|
+
h[3] || (D(-1, !0), (h[3] = o("div", null, [
|
|
2565
2575
|
f(t(X), {
|
|
2566
2576
|
src: t(a).homeTeam?.logo,
|
|
2567
2577
|
width: 128,
|
|
2568
2578
|
"default-src": t(Me)
|
|
2569
2579
|
}, null, 8, ["src", "default-src"]),
|
|
2570
2580
|
o("h1", ls, l(t(a).homeTeam?.longName), 1)
|
|
2571
|
-
])).cacheIndex = 3, D(1),
|
|
2581
|
+
])).cacheIndex = 3, D(1), h[3]),
|
|
2572
2582
|
o("div", null, [
|
|
2573
|
-
t(a).gameStatus > 1 ? (n(),
|
|
2574
|
-
t(a).gameStatus === 1 ? (n(),
|
|
2575
|
-
t(a).gameStatus > 1 ? (n(),
|
|
2576
|
-
t(a).isOvertime ? (n(),
|
|
2583
|
+
t(a).gameStatus > 1 ? (n(), c("div", ms, l(t(s)(`gameStatus.status-${t(a).gameStatus}`)), 1)) : w("", !0),
|
|
2584
|
+
t(a).gameStatus === 1 ? (n(), c("div", cs, l(t(s)(`periods.${t(We)(t(a).period)}`)), 1)) : w("", !0),
|
|
2585
|
+
t(a).gameStatus > 1 ? (n(), c(y, { key: 2 }, [
|
|
2586
|
+
t(a).isOvertime ? (n(), c("div", ds, [
|
|
2577
2587
|
o("span", vs, l(t(s)("afterOvertime")), 1)
|
|
2578
|
-
])) :
|
|
2579
|
-
t(a).isShootout ? (n(),
|
|
2588
|
+
])) : w("", !0),
|
|
2589
|
+
t(a).isShootout ? (n(), c("div", gs, [
|
|
2580
2590
|
o("span", us, l(t(s)("afterShootout")), 1)
|
|
2581
|
-
])) :
|
|
2582
|
-
], 64)) :
|
|
2583
|
-
t(a).gameStatus === 1 ? (n(),
|
|
2584
|
-
t(a).gameStatus === 1 ? (n(),
|
|
2591
|
+
])) : w("", !0)
|
|
2592
|
+
], 64)) : w("", !0),
|
|
2593
|
+
t(a).gameStatus === 1 ? (n(), c("div", hs, l(t(a).actualTime), 1)) : w("", !0),
|
|
2594
|
+
t(a).gameStatus === 1 ? (n(), k(Yt, {
|
|
2585
2595
|
key: 4,
|
|
2586
2596
|
"game-data": t(a)
|
|
2587
|
-
}, null, 8, ["game-data"])) :
|
|
2597
|
+
}, null, 8, ["game-data"])) : w("", !0),
|
|
2588
2598
|
o("div", {
|
|
2589
2599
|
class: V(["game-result", [{ live: t(a).gameStatus === 1 }]])
|
|
2590
2600
|
}, [
|
|
2591
|
-
t(a).gameStatus === 0 ? (n(),
|
|
2592
|
-
|
|
2593
|
-
t(a).gameStatus === 0 ? (n(),
|
|
2601
|
+
t(a).gameStatus === 0 ? (n(), c("span", ps, "-")) : (n(), c("span", ws, l(t(a).homeTeamScore), 1)),
|
|
2602
|
+
h[5] || (h[5] = x(":", -1)),
|
|
2603
|
+
t(a).gameStatus === 0 ? (n(), c("span", fs, "-")) : (n(), c("span", ys, l(t(a).awayTeamScore), 1))
|
|
2594
2604
|
], 2),
|
|
2595
2605
|
o("div", bs, l(t(a).periodResults), 1)
|
|
2596
2606
|
]),
|
|
2597
|
-
|
|
2607
|
+
h[4] || (D(-1, !0), (h[4] = o("div", null, [
|
|
2598
2608
|
f(t(X), {
|
|
2599
2609
|
src: t(a).awayTeam?.logo,
|
|
2600
2610
|
"default-src": t(Le),
|
|
2601
2611
|
width: 128
|
|
2602
2612
|
}, null, 8, ["src", "default-src"]),
|
|
2603
2613
|
o("h1", ks, l(t(a).awayTeam?.longName), 1)
|
|
2604
|
-
])).cacheIndex = 4, D(1),
|
|
2614
|
+
])).cacheIndex = 4, D(1), h[4])
|
|
2605
2615
|
])
|
|
2606
2616
|
]));
|
|
2607
2617
|
}
|
|
@@ -2621,8 +2631,8 @@ const ai = ["href"], B = {
|
|
|
2621
2631
|
}
|
|
2622
2632
|
},
|
|
2623
2633
|
setup(e) {
|
|
2624
|
-
const r = e, a = H(null), i =
|
|
2625
|
-
return (s,
|
|
2634
|
+
const r = e, a = H(null), i = p(() => r.isHomeTeam ? Me : Le);
|
|
2635
|
+
return (s, d) => (n(), c(y, null, [
|
|
2626
2636
|
f(t(q), {
|
|
2627
2637
|
offset: 2,
|
|
2628
2638
|
placement: "top",
|
|
@@ -2653,13 +2663,13 @@ const ai = ["href"], B = {
|
|
|
2653
2663
|
}, Ts = { class: "is-time-cell" }, _s = { class: "is-team-logo-cell" }, Ss = { class: "is-icon-cell" }, Ps = { class: "is-score" }, $s = {
|
|
2654
2664
|
key: 0,
|
|
2655
2665
|
class: "badge lg"
|
|
2656
|
-
},
|
|
2666
|
+
}, Ns = {
|
|
2657
2667
|
key: 1,
|
|
2658
2668
|
class: "badge lg"
|
|
2659
|
-
},
|
|
2669
|
+
}, js = {
|
|
2660
2670
|
key: 0,
|
|
2661
2671
|
class: "badge inverted lg"
|
|
2662
|
-
},
|
|
2672
|
+
}, Es = { class: "is-evented-person" }, Is = { class: "is-player-number" }, Os = { class: "is-assists-list" }, Ms = {
|
|
2663
2673
|
key: 0,
|
|
2664
2674
|
class: "is-poi-data"
|
|
2665
2675
|
}, Ls = ["aria-label"], Cs = ["aria-label"], As = {
|
|
@@ -2675,11 +2685,11 @@ const ai = ["href"], B = {
|
|
|
2675
2685
|
}
|
|
2676
2686
|
},
|
|
2677
2687
|
setup(e) {
|
|
2678
|
-
const r = e, a = H(null), i =
|
|
2679
|
-
return (g, m) => (n(),
|
|
2688
|
+
const r = e, a = H(null), i = p(() => Ue((g) => G(g), [r.event.assists1, r.event.assists2])), s = p(() => r.event.homeOnIce), d = p(() => r.event.awayOnIce);
|
|
2689
|
+
return (g, m) => (n(), c(y, null, [
|
|
2680
2690
|
o("div", Ts, l(e.event.eventTime), 1),
|
|
2681
2691
|
o("div", _s, [
|
|
2682
|
-
(n(),
|
|
2692
|
+
(n(), k(he, {
|
|
2683
2693
|
key: e.event.team.id,
|
|
2684
2694
|
name: e.event.team.longName,
|
|
2685
2695
|
logo: e.event.team.logo,
|
|
@@ -2691,42 +2701,42 @@ const ai = ["href"], B = {
|
|
|
2691
2701
|
]),
|
|
2692
2702
|
o("div", Ps, l(e.event.score), 1),
|
|
2693
2703
|
o("div", null, [
|
|
2694
|
-
e.event.advantage ? (n(),
|
|
2695
|
-
e.event.en ? (n(),
|
|
2704
|
+
e.event.advantage ? (n(), c("span", $s, l(e.event.advantage), 1)) : w("", !0),
|
|
2705
|
+
e.event.en ? (n(), c("span", Ns, " EN ")) : w("", !0)
|
|
2696
2706
|
]),
|
|
2697
2707
|
o("div", null, [
|
|
2698
|
-
e.event.ps || e.event.gws || e.event.gwg ? (n(),
|
|
2699
|
-
e.event.ps ? (n(),
|
|
2700
|
-
|
|
2701
|
-
], 64)) :
|
|
2702
|
-
e.event.gws ? (n(),
|
|
2703
|
-
|
|
2704
|
-
], 64)) :
|
|
2705
|
-
e.event.gwg ? (n(),
|
|
2706
|
-
|
|
2707
|
-
], 64)) :
|
|
2708
|
-
])) :
|
|
2708
|
+
e.event.ps || e.event.gws || e.event.gwg ? (n(), c("span", js, [
|
|
2709
|
+
e.event.ps ? (n(), c(y, { key: 0 }, [
|
|
2710
|
+
x("PS")
|
|
2711
|
+
], 64)) : w("", !0),
|
|
2712
|
+
e.event.gws ? (n(), c(y, { key: 1 }, [
|
|
2713
|
+
x("GWS")
|
|
2714
|
+
], 64)) : w("", !0),
|
|
2715
|
+
e.event.gwg ? (n(), c(y, { key: 2 }, [
|
|
2716
|
+
x("GWG")
|
|
2717
|
+
], 64)) : w("", !0)
|
|
2718
|
+
])) : w("", !0)
|
|
2709
2719
|
]),
|
|
2710
2720
|
o("div", null, [
|
|
2711
2721
|
o("dl", null, [
|
|
2712
|
-
o("dt",
|
|
2722
|
+
o("dt", Es, [
|
|
2713
2723
|
o("span", Is, l(e.event.jerseyNumber), 1),
|
|
2714
|
-
|
|
2724
|
+
x(" " + l(e.event.lastName) + " " + l(e.event.firstName), 1)
|
|
2715
2725
|
]),
|
|
2716
2726
|
o("dt", Os, [
|
|
2717
|
-
(n(!0),
|
|
2718
|
-
o("i", null, l(
|
|
2719
|
-
|
|
2727
|
+
(n(!0), c(y, null, E(i.value, (v) => (n(), c("span", { key: v }, [
|
|
2728
|
+
o("i", null, l(v.jerseyNumber), 1),
|
|
2729
|
+
x(" " + l(v.lastName) + " " + l(v.firstName), 1)
|
|
2720
2730
|
]))), 128))
|
|
2721
2731
|
]),
|
|
2722
|
-
!t(G)(s.value) || !t(G)(
|
|
2732
|
+
!t(G)(s.value) || !t(G)(d.value) ? (n(), c("dd", Ms, [
|
|
2723
2733
|
o("ul", null, [
|
|
2724
|
-
(n(!0),
|
|
2725
|
-
key:
|
|
2734
|
+
(n(!0), c(y, null, E(s.value, (v) => (n(), k(t(q), {
|
|
2735
|
+
key: v.playerId,
|
|
2726
2736
|
offset: 2,
|
|
2727
2737
|
placement: "top",
|
|
2728
2738
|
theme: "tooltip",
|
|
2729
|
-
content: `${
|
|
2739
|
+
content: `${v.lastName} ${v.firstName}`,
|
|
2730
2740
|
"append-to": a.value
|
|
2731
2741
|
}, {
|
|
2732
2742
|
default: T(({ setRef: h, events: u }) => [
|
|
@@ -2734,20 +2744,20 @@ const ai = ["href"], B = {
|
|
|
2734
2744
|
ref_for: !0,
|
|
2735
2745
|
ref: h,
|
|
2736
2746
|
tabindex: 0,
|
|
2737
|
-
"aria-label": `${
|
|
2738
|
-
}, { ref_for: !0 }, u), l(
|
|
2747
|
+
"aria-label": `${v.jerseyNumber} ${v.lastName} ${v.firstName}`
|
|
2748
|
+
}, { ref_for: !0 }, u), l(v.jerseyNumber), 17, Ls)
|
|
2739
2749
|
]),
|
|
2740
2750
|
_: 2
|
|
2741
2751
|
}, 1032, ["content", "append-to"]))), 128))
|
|
2742
2752
|
]),
|
|
2743
2753
|
m[0] || (m[0] = o("span", null, " / ", -1)),
|
|
2744
2754
|
o("ul", null, [
|
|
2745
|
-
(n(!0),
|
|
2746
|
-
key:
|
|
2755
|
+
(n(!0), c(y, null, E(d.value, (v) => (n(), k(t(q), {
|
|
2756
|
+
key: v.playerId,
|
|
2747
2757
|
offset: 2,
|
|
2748
2758
|
placement: "top",
|
|
2749
2759
|
theme: "tooltip",
|
|
2750
|
-
content: `${
|
|
2760
|
+
content: `${v.lastName} ${v.firstName}`,
|
|
2751
2761
|
"append-to": a.value
|
|
2752
2762
|
}, {
|
|
2753
2763
|
default: T(({ setRef: h, events: u }) => [
|
|
@@ -2755,13 +2765,13 @@ const ai = ["href"], B = {
|
|
|
2755
2765
|
ref_for: !0,
|
|
2756
2766
|
ref: h,
|
|
2757
2767
|
tabindex: 0,
|
|
2758
|
-
"aria-label": `${
|
|
2759
|
-
}, { ref_for: !0 }, u), l(
|
|
2768
|
+
"aria-label": `${v.jerseyNumber} ${v.lastName} ${v.firstName}`
|
|
2769
|
+
}, { ref_for: !0 }, u), l(v.jerseyNumber), 17, Cs)
|
|
2760
2770
|
]),
|
|
2761
2771
|
_: 2
|
|
2762
2772
|
}, 1032, ["content", "append-to"]))), 128))
|
|
2763
2773
|
])
|
|
2764
|
-
])) :
|
|
2774
|
+
])) : w("", !0)
|
|
2765
2775
|
]),
|
|
2766
2776
|
o("div", {
|
|
2767
2777
|
ref_key: "tooltipContainer",
|
|
@@ -2783,10 +2793,10 @@ const ai = ["href"], B = {
|
|
|
2783
2793
|
}
|
|
2784
2794
|
},
|
|
2785
2795
|
setup(e) {
|
|
2786
|
-
return (r, a) => (n(),
|
|
2796
|
+
return (r, a) => (n(), c(y, null, [
|
|
2787
2797
|
o("div", Ds, l(e.event.eventTime), 1),
|
|
2788
2798
|
o("div", Gs, [
|
|
2789
|
-
(n(),
|
|
2799
|
+
(n(), k(he, {
|
|
2790
2800
|
key: e.event.team.id,
|
|
2791
2801
|
name: e.event.team.longName,
|
|
2792
2802
|
logo: e.event.team.logo,
|
|
@@ -2794,18 +2804,18 @@ const ai = ["href"], B = {
|
|
|
2794
2804
|
}, null, 8, ["name", "logo", "is-home-team"]))
|
|
2795
2805
|
]),
|
|
2796
2806
|
o("div", Hs, [
|
|
2797
|
-
e.event.gkDirection === "CSERE" ? (n(),
|
|
2807
|
+
e.event.gkDirection === "CSERE" ? (n(), k(t(Ke), {
|
|
2798
2808
|
key: 0,
|
|
2799
2809
|
width: "24",
|
|
2800
2810
|
height: "24",
|
|
2801
2811
|
class: "is-goalie-in-icon"
|
|
2802
|
-
})) :
|
|
2803
|
-
e.event.gkDirection === "BE" ? (n(),
|
|
2812
|
+
})) : w("", !0),
|
|
2813
|
+
e.event.gkDirection === "BE" ? (n(), k(t(Ke), {
|
|
2804
2814
|
key: 1,
|
|
2805
2815
|
width: "24",
|
|
2806
2816
|
height: "24",
|
|
2807
2817
|
class: "is-goalie-in-icon"
|
|
2808
|
-
})) : (n(),
|
|
2818
|
+
})) : (n(), k(t(Mt), {
|
|
2809
2819
|
key: 2,
|
|
2810
2820
|
width: "24",
|
|
2811
2821
|
height: "24",
|
|
@@ -2817,7 +2827,7 @@ const ai = ["href"], B = {
|
|
|
2817
2827
|
a[1] || (a[1] = o("div", null, null, -1)),
|
|
2818
2828
|
o("div", Bs, [
|
|
2819
2829
|
o("span", Ks, l(e.event.jerseyNumber), 1),
|
|
2820
|
-
|
|
2830
|
+
x(" " + l(e.event.lastName) + " " + l(e.event.firstName), 1)
|
|
2821
2831
|
])
|
|
2822
2832
|
], 64));
|
|
2823
2833
|
}
|
|
@@ -2834,11 +2844,11 @@ const ai = ["href"], B = {
|
|
|
2834
2844
|
}
|
|
2835
2845
|
},
|
|
2836
2846
|
setup(e) {
|
|
2837
|
-
const r = e, a = H(null), { t: i } = I(), s =
|
|
2838
|
-
return (
|
|
2847
|
+
const r = e, a = H(null), { t: i } = I(), s = p(() => jt(r.event));
|
|
2848
|
+
return (d, g) => (n(), c(y, null, [
|
|
2839
2849
|
o("div", Fs, l(e.event.eventTime), 1),
|
|
2840
2850
|
o("div", Us, [
|
|
2841
|
-
(n(),
|
|
2851
|
+
(n(), k(he, {
|
|
2842
2852
|
key: e.event.team.id,
|
|
2843
2853
|
name: e.event.team.longName,
|
|
2844
2854
|
logo: e.event.team.logo,
|
|
@@ -2860,12 +2870,12 @@ const ai = ["href"], B = {
|
|
|
2860
2870
|
content: t(i)(`penalties.${s.value.penaltyCause}`),
|
|
2861
2871
|
"append-to": a.value
|
|
2862
2872
|
}, {
|
|
2863
|
-
default: T(({ setRef: m, events:
|
|
2873
|
+
default: T(({ setRef: m, events: v }) => [
|
|
2864
2874
|
o("span", ee({
|
|
2865
2875
|
ref: m,
|
|
2866
2876
|
tabindex: 0,
|
|
2867
2877
|
"aria-label": t(i)(`penalties.${s.value.penaltyCause}`)
|
|
2868
|
-
},
|
|
2878
|
+
}, v), l(s.value.penaltyCause), 17, qs)
|
|
2869
2879
|
]),
|
|
2870
2880
|
_: 1
|
|
2871
2881
|
}, 8, ["content", "append-to"]),
|
|
@@ -2875,10 +2885,10 @@ const ai = ["href"], B = {
|
|
|
2875
2885
|
}, null, 512)
|
|
2876
2886
|
]),
|
|
2877
2887
|
o("div", Qs, [
|
|
2878
|
-
e.event.penaltyLength ? (n(),
|
|
2879
|
-
|
|
2880
|
-
], 64)) :
|
|
2881
|
-
e.event.ps ? (n(),
|
|
2888
|
+
e.event.penaltyLength ? (n(), c(y, { key: 0 }, [
|
|
2889
|
+
x(l(t(i)("events.penaltyLength", [e.event.penaltyLength])), 1)
|
|
2890
|
+
], 64)) : w("", !0),
|
|
2891
|
+
e.event.ps ? (n(), k(t(q), {
|
|
2882
2892
|
key: 1,
|
|
2883
2893
|
offset: 2,
|
|
2884
2894
|
placement: "top",
|
|
@@ -2886,21 +2896,21 @@ const ai = ["href"], B = {
|
|
|
2886
2896
|
content: t(i)("penalties.PS"),
|
|
2887
2897
|
"append-to": a.value
|
|
2888
2898
|
}, {
|
|
2889
|
-
default: T(({ setRef: m, events:
|
|
2899
|
+
default: T(({ setRef: m, events: v }) => [
|
|
2890
2900
|
o("span", ee({
|
|
2891
2901
|
ref: m,
|
|
2892
2902
|
tabindex: 0,
|
|
2893
2903
|
"aria-label": t(i)(`penalties.${s.value.penaltyCause}`)
|
|
2894
|
-
},
|
|
2904
|
+
}, v), " PS ", 16, Js)
|
|
2895
2905
|
]),
|
|
2896
2906
|
_: 1
|
|
2897
|
-
}, 8, ["content", "append-to"])) :
|
|
2907
|
+
}, 8, ["content", "append-to"])) : w("", !0)
|
|
2898
2908
|
]),
|
|
2899
2909
|
o("div", Zs, l(e.event.penaltyEnd), 1),
|
|
2900
2910
|
o("div", Xs, [
|
|
2901
|
-
e.event.jerseyNumber === null ? (n(),
|
|
2911
|
+
e.event.jerseyNumber === null ? (n(), c("span", el, l(t(i)("events.teamPenalty")), 1)) : (n(), c(y, { key: 1 }, [
|
|
2902
2912
|
o("span", tl, l(e.event.jerseyNumber), 1),
|
|
2903
|
-
|
|
2913
|
+
x(" " + l(e.event.lastName) + " " + l(e.event.firstName), 1)
|
|
2904
2914
|
], 64))
|
|
2905
2915
|
])
|
|
2906
2916
|
], 64));
|
|
@@ -2919,10 +2929,10 @@ const ai = ["href"], B = {
|
|
|
2919
2929
|
},
|
|
2920
2930
|
setup(e) {
|
|
2921
2931
|
const { t: r } = I();
|
|
2922
|
-
return (a, i) => (n(),
|
|
2932
|
+
return (a, i) => (n(), c(y, null, [
|
|
2923
2933
|
o("div", rl, l(e.event.eventTime), 1),
|
|
2924
2934
|
o("div", ol, [
|
|
2925
|
-
(n(),
|
|
2935
|
+
(n(), k(he, {
|
|
2926
2936
|
key: e.event.team.id,
|
|
2927
2937
|
name: e.event.team.longName,
|
|
2928
2938
|
logo: e.event.team.logo,
|
|
@@ -2939,17 +2949,17 @@ const ai = ["href"], B = {
|
|
|
2939
2949
|
o("span", {
|
|
2940
2950
|
class: V(["badge lg", [{ live: e.event.goal }]])
|
|
2941
2951
|
}, [
|
|
2942
|
-
e.event.goal ? (n(),
|
|
2943
|
-
|
|
2944
|
-
], 64)) : (n(),
|
|
2945
|
-
|
|
2952
|
+
e.event.goal ? (n(), c(y, { key: 0 }, [
|
|
2953
|
+
x(l(t(r)("events.score")), 1)
|
|
2954
|
+
], 64)) : (n(), c(y, { key: 1 }, [
|
|
2955
|
+
x(l(t(r)("events.missed")), 1)
|
|
2946
2956
|
], 64))
|
|
2947
2957
|
], 2)
|
|
2948
2958
|
]),
|
|
2949
2959
|
i[0] || (i[0] = o("div", null, null, -1)),
|
|
2950
2960
|
o("div", il, [
|
|
2951
2961
|
o("span", sl, l(e.event.jerseyNumber), 1),
|
|
2952
|
-
|
|
2962
|
+
x(" " + l(e.event.lastName) + " " + l(e.event.firstName), 1)
|
|
2953
2963
|
])
|
|
2954
2964
|
], 64));
|
|
2955
2965
|
}
|
|
@@ -2967,10 +2977,10 @@ const ai = ["href"], B = {
|
|
|
2967
2977
|
},
|
|
2968
2978
|
setup(e) {
|
|
2969
2979
|
const { t: r } = I();
|
|
2970
|
-
return (a, i) => (n(),
|
|
2980
|
+
return (a, i) => (n(), c(y, null, [
|
|
2971
2981
|
o("div", ml, l(e.event.eventTime), 1),
|
|
2972
2982
|
o("div", cl, [
|
|
2973
|
-
(n(),
|
|
2983
|
+
(n(), k(he, {
|
|
2974
2984
|
key: e.event.team.id,
|
|
2975
2985
|
name: e.event.team.longName,
|
|
2976
2986
|
logo: e.event.team.logo,
|
|
@@ -2999,8 +3009,8 @@ const ai = ["href"], B = {
|
|
|
2999
3009
|
}
|
|
3000
3010
|
},
|
|
3001
3011
|
setup(e) {
|
|
3002
|
-
const r = e, a = (/* @__PURE__ */ new Map()).set("Gól", As).set("Kiállítás", al).set("Kapus", Vs).set("Idő", vl).set("Büntető", ll), i =
|
|
3003
|
-
return (
|
|
3012
|
+
const r = e, a = (/* @__PURE__ */ new Map()).set("Gól", As).set("Kiállítás", al).set("Kapus", Vs).set("Idő", vl).set("Büntető", ll), i = p(() => a.get(r.event.type)), s = p(() => r.event.team?.id === r.homeTeamId);
|
|
3013
|
+
return (d, g) => (n(), k(vt(i.value), {
|
|
3004
3014
|
event: e.event,
|
|
3005
3015
|
"is-home-team": s.value
|
|
3006
3016
|
}, null, 8, ["event", "is-home-team"]));
|
|
@@ -3021,22 +3031,22 @@ const ai = ["href"], B = {
|
|
|
3021
3031
|
}
|
|
3022
3032
|
},
|
|
3023
3033
|
setup(e) {
|
|
3024
|
-
const r = e, { t: a } = I(), i =
|
|
3025
|
-
return (s,
|
|
3026
|
-
(n(!0),
|
|
3034
|
+
const r = e, { t: a } = I(), i = p(() => jr(r.gameData, r.gameEvents));
|
|
3035
|
+
return (s, d) => (n(), c("div", ul, [
|
|
3036
|
+
(n(!0), c(y, null, E(i.value, (g, m) => (n(), c(y, { key: m }, [
|
|
3027
3037
|
o("div", hl, l(t(a)(`periods.${t(We)(m)}`)), 1),
|
|
3028
|
-
g.length === 0 ? (n(),
|
|
3029
|
-
(n(!0),
|
|
3030
|
-
key:
|
|
3038
|
+
g.length === 0 ? (n(), c("div", pl, l(t(a)("events.noEventsInPeriod")), 1)) : w("", !0),
|
|
3039
|
+
(n(!0), c(y, null, E(g, (v) => (n(), c("div", {
|
|
3040
|
+
key: v.id,
|
|
3031
3041
|
class: "gamecenter-game-event"
|
|
3032
3042
|
}, [
|
|
3033
3043
|
f(gl, {
|
|
3034
|
-
event:
|
|
3044
|
+
event: v,
|
|
3035
3045
|
"home-team-id": e.gameData.homeTeam.id
|
|
3036
3046
|
}, null, 8, ["event", "home-team-id"])
|
|
3037
3047
|
]))), 128))
|
|
3038
3048
|
], 64))), 128)),
|
|
3039
|
-
|
|
3049
|
+
d[0] || (d[0] = o("div", { id: "event-tooltip-container" }, null, -1))
|
|
3040
3050
|
]));
|
|
3041
3051
|
}
|
|
3042
3052
|
}, fl = {
|
|
@@ -3065,9 +3075,9 @@ const ai = ["href"], B = {
|
|
|
3065
3075
|
}
|
|
3066
3076
|
},
|
|
3067
3077
|
setup(e) {
|
|
3068
|
-
const r = e, { columns: a } = ne(Pt), i =
|
|
3069
|
-
return (
|
|
3070
|
-
f(
|
|
3078
|
+
const r = e, { columns: a } = ne(Pt), i = p(() => _e(r.data?.[r.homeTeamId] ?? [])), s = p(() => _e(r.data?.[r.awayTeamId] ?? []));
|
|
3079
|
+
return (d, g) => (n(), c("div", fl, [
|
|
3080
|
+
f(je, { rows: i.value }, {
|
|
3071
3081
|
default: T(({ rows: m }) => [
|
|
3072
3082
|
f(B, {
|
|
3073
3083
|
class: "gamecenter-data-table",
|
|
@@ -3078,7 +3088,7 @@ const ai = ["href"], B = {
|
|
|
3078
3088
|
]),
|
|
3079
3089
|
_: 1
|
|
3080
3090
|
}, 8, ["rows"]),
|
|
3081
|
-
f(
|
|
3091
|
+
f(je, { rows: s.value }, {
|
|
3082
3092
|
default: T(({ rows: m }) => [
|
|
3083
3093
|
f(B, {
|
|
3084
3094
|
class: "gamecenter-data-table",
|
|
@@ -3104,10 +3114,10 @@ const ai = ["href"], B = {
|
|
|
3104
3114
|
}
|
|
3105
3115
|
},
|
|
3106
3116
|
setup(e) {
|
|
3107
|
-
return (r, a) => (n(),
|
|
3117
|
+
return (r, a) => (n(), c("dl", bl, [
|
|
3108
3118
|
o("dt", null, [
|
|
3109
3119
|
Z(r.$slots, "default", {}, () => [
|
|
3110
|
-
|
|
3120
|
+
x(l(e.title), 1)
|
|
3111
3121
|
])
|
|
3112
3122
|
]),
|
|
3113
3123
|
o("dd", { innerHTML: e.data }, null, 8, kl)
|
|
@@ -3129,33 +3139,33 @@ const ai = ["href"], B = {
|
|
|
3129
3139
|
}
|
|
3130
3140
|
},
|
|
3131
3141
|
setup(e) {
|
|
3132
|
-
const r = e, { gameData: a } = Ve(r), { t: i } = I(), s =
|
|
3142
|
+
const r = e, { gameData: a } = Ve(r), { t: i } = I(), s = p(() => a.value?.attendance ?? 0), d = p(
|
|
3133
3143
|
() => tt([r.gameOfficials?.gameOfficials?.first_referee, r.gameOfficials?.gameOfficials?.second_referee])
|
|
3134
|
-
), g =
|
|
3144
|
+
), g = p(
|
|
3135
3145
|
() => tt([
|
|
3136
3146
|
r.gameOfficials?.gameOfficials?.first_line_judge,
|
|
3137
3147
|
r.gameOfficials?.gameOfficials?.second_line_judge
|
|
3138
3148
|
])
|
|
3139
3149
|
);
|
|
3140
|
-
return (m,
|
|
3150
|
+
return (m, v) => !t(G)(d.value) || !t(G)(g.value) ? (n(), c("div", xl, [
|
|
3141
3151
|
o("div", zl, [
|
|
3142
3152
|
o("div", Tl, [
|
|
3143
3153
|
f(Y, {
|
|
3144
3154
|
title: t(i)("gameStats.referees"),
|
|
3145
|
-
data:
|
|
3155
|
+
data: d.value
|
|
3146
3156
|
}, null, 8, ["title", "data"]),
|
|
3147
3157
|
f(Y, {
|
|
3148
3158
|
title: t(i)("gameStats.linesmen"),
|
|
3149
3159
|
data: g.value
|
|
3150
3160
|
}, null, 8, ["title", "data"]),
|
|
3151
|
-
t(a).attendance ? (n(),
|
|
3161
|
+
t(a).attendance ? (n(), k(Y, {
|
|
3152
3162
|
key: 0,
|
|
3153
3163
|
title: t(i)("gameStats.attendance"),
|
|
3154
3164
|
data: s.value
|
|
3155
|
-
}, null, 8, ["title", "data"])) :
|
|
3165
|
+
}, null, 8, ["title", "data"])) : w("", !0)
|
|
3156
3166
|
])
|
|
3157
3167
|
])
|
|
3158
|
-
])) :
|
|
3168
|
+
])) : w("", !0);
|
|
3159
3169
|
}
|
|
3160
3170
|
}, Sl = {
|
|
3161
3171
|
class: "grid-container mb-md",
|
|
@@ -3183,29 +3193,29 @@ const ai = ["href"], B = {
|
|
|
3183
3193
|
}
|
|
3184
3194
|
},
|
|
3185
3195
|
setup(e) {
|
|
3186
|
-
const r = e, { columns: a } = ne(St), i =
|
|
3187
|
-
return (
|
|
3188
|
-
f(
|
|
3189
|
-
default: T(({ rows: m, sort:
|
|
3196
|
+
const r = e, { columns: a } = ne(St), i = p(() => Pe(r.data?.[r.homeTeamId] ?? [])), s = p(() => Pe(r.data?.[r.awayTeamId] ?? []));
|
|
3197
|
+
return (d, g) => (n(), c("div", Sl, [
|
|
3198
|
+
f(Ee, { rows: i.value }, {
|
|
3199
|
+
default: T(({ rows: m, sort: v, onSort: h }) => [
|
|
3190
3200
|
f(B, {
|
|
3191
3201
|
class: "gamecenter-data-table",
|
|
3192
3202
|
columns: t(a),
|
|
3193
3203
|
rows: m,
|
|
3194
3204
|
title: e.homeTeamName,
|
|
3195
|
-
sort:
|
|
3205
|
+
sort: v,
|
|
3196
3206
|
onSort: h
|
|
3197
3207
|
}, null, 8, ["columns", "rows", "title", "sort", "onSort"])
|
|
3198
3208
|
]),
|
|
3199
3209
|
_: 1
|
|
3200
3210
|
}, 8, ["rows"]),
|
|
3201
|
-
f(
|
|
3202
|
-
default: T(({ rows: m, sort:
|
|
3211
|
+
f(Ee, { rows: s.value }, {
|
|
3212
|
+
default: T(({ rows: m, sort: v, onSort: h }) => [
|
|
3203
3213
|
f(B, {
|
|
3204
3214
|
class: "gamecenter-data-table",
|
|
3205
3215
|
columns: t(a),
|
|
3206
3216
|
rows: m,
|
|
3207
3217
|
title: e.awayTeamName,
|
|
3208
|
-
sort:
|
|
3218
|
+
sort: v,
|
|
3209
3219
|
onSort: h
|
|
3210
3220
|
}, null, 8, ["columns", "rows", "title", "sort", "onSort"])
|
|
3211
3221
|
]),
|
|
@@ -3213,7 +3223,7 @@ const ai = ["href"], B = {
|
|
|
3213
3223
|
}, 8, ["rows"])
|
|
3214
3224
|
]));
|
|
3215
3225
|
}
|
|
3216
|
-
}, $l = { class: "card bordered mb-md" },
|
|
3226
|
+
}, $l = { class: "card bordered mb-md" }, Nl = { class: "gamecenter-game-stats-container-wrapper" }, jl = ["data-state", "onClick", "onBlur"], El = { class: "is-popover-content" }, Il = {
|
|
3217
3227
|
__name: "GameStats",
|
|
3218
3228
|
props: {
|
|
3219
3229
|
gameStats: {
|
|
@@ -3226,28 +3236,28 @@ const ai = ["href"], B = {
|
|
|
3226
3236
|
}
|
|
3227
3237
|
},
|
|
3228
3238
|
setup(e) {
|
|
3229
|
-
const r = e, { t: a } = I(), i =
|
|
3239
|
+
const r = e, { t: a } = I(), i = p(() => r.gameData?.homeTeam?.id ?? ""), s = p(() => r.gameData?.awayTeam?.id ?? ""), d = p(
|
|
3230
3240
|
() => ot(r.gameStats?.teamSOG ?? [], s.value, i.value, "shots")
|
|
3231
|
-
), g =
|
|
3232
|
-
() =>
|
|
3241
|
+
), g = p(
|
|
3242
|
+
() => Er(
|
|
3233
3243
|
r.gameStats?.teamSOG ?? [],
|
|
3234
3244
|
i.value,
|
|
3235
3245
|
s.value,
|
|
3236
3246
|
"saves"
|
|
3237
3247
|
)
|
|
3238
|
-
), m =
|
|
3248
|
+
), m = p(
|
|
3239
3249
|
() => ot(
|
|
3240
3250
|
r.gameStats?.teamPenalties ?? [],
|
|
3241
3251
|
i.value,
|
|
3242
3252
|
s.value,
|
|
3243
3253
|
"penaltyLength"
|
|
3244
3254
|
)
|
|
3245
|
-
),
|
|
3246
|
-
return (S, b) => (n(),
|
|
3247
|
-
o("div",
|
|
3255
|
+
), v = p(() => Ir(r.gameStats?.teamPowerPlay ?? {})), h = p(() => Or(r.gameStats?.teamPowerPlay ?? {})), u = p(() => Mr(r.gameStats?.teamPowerPlay ?? {}));
|
|
3256
|
+
return (S, b) => (n(), c("div", $l, [
|
|
3257
|
+
o("div", Nl, [
|
|
3248
3258
|
f(Y, {
|
|
3249
3259
|
title: t(a)("teamsStats.sog"),
|
|
3250
|
-
data:
|
|
3260
|
+
data: d.value
|
|
3251
3261
|
}, null, 8, ["title", "data"]),
|
|
3252
3262
|
f(Y, {
|
|
3253
3263
|
title: t(a)("teamsStats.saves"),
|
|
@@ -3266,36 +3276,36 @@ const ai = ["href"], B = {
|
|
|
3266
3276
|
data: u.value
|
|
3267
3277
|
}, null, 8, ["title", "data"]),
|
|
3268
3278
|
f(Y, {
|
|
3269
|
-
data:
|
|
3279
|
+
data: v.value.advTime
|
|
3270
3280
|
}, {
|
|
3271
3281
|
default: T(() => [
|
|
3272
|
-
|
|
3282
|
+
x(l(t(a)("teamsStats.advantageTime")) + " ", 1),
|
|
3273
3283
|
f(t(q), {
|
|
3274
3284
|
offset: 10,
|
|
3275
3285
|
placement: "top",
|
|
3276
3286
|
theme: "content",
|
|
3277
3287
|
"append-to": "#popover-container"
|
|
3278
3288
|
}, {
|
|
3279
|
-
default: T(({ setRef:
|
|
3289
|
+
default: T(({ setRef: _, open: z, toggle: $, hide: N }) => [
|
|
3280
3290
|
o("button", {
|
|
3281
|
-
ref:
|
|
3291
|
+
ref: _,
|
|
3282
3292
|
class: "icon-button xs",
|
|
3283
|
-
"data-state":
|
|
3284
|
-
onClick: oa(
|
|
3285
|
-
onBlur:
|
|
3293
|
+
"data-state": z ? "open" : "closed",
|
|
3294
|
+
onClick: oa($, ["stop", "prevent"]),
|
|
3295
|
+
onBlur: N
|
|
3286
3296
|
}, [
|
|
3287
3297
|
f(t(ro))
|
|
3288
|
-
], 40,
|
|
3298
|
+
], 40, jl)
|
|
3289
3299
|
]),
|
|
3290
3300
|
content: T(() => [
|
|
3291
|
-
o("div",
|
|
3301
|
+
o("div", El, [
|
|
3292
3302
|
f(Y, {
|
|
3293
3303
|
title: t(a)("teamsStats.advantageTimePP1"),
|
|
3294
|
-
data:
|
|
3304
|
+
data: v.value.advTimePP1
|
|
3295
3305
|
}, null, 8, ["title", "data"]),
|
|
3296
3306
|
f(Y, {
|
|
3297
3307
|
title: t(a)("teamsStats.advantageTimePP2"),
|
|
3298
|
-
data:
|
|
3308
|
+
data: v.value.advTimePP2
|
|
3299
3309
|
}, null, 8, ["title", "data"])
|
|
3300
3310
|
])
|
|
3301
3311
|
]),
|
|
@@ -3328,8 +3338,8 @@ const ai = ["href"], B = {
|
|
|
3328
3338
|
}
|
|
3329
3339
|
},
|
|
3330
3340
|
setup(e) {
|
|
3331
|
-
const r = e, { columns: a } = ne($t), { t: i } = I(), s =
|
|
3332
|
-
return (g, m) => (n(),
|
|
3341
|
+
const r = e, { columns: a } = ne($t), { t: i } = I(), s = p(() => Ne(r.gameOfficials?.gameTeamMembers?.home ?? [], i)), d = p(() => Ne(r.gameOfficials?.gameTeamMembers?.away ?? [], i));
|
|
3342
|
+
return (g, m) => (n(), c("div", Ol, [
|
|
3333
3343
|
f(B, {
|
|
3334
3344
|
class: "gamecenter-data-table",
|
|
3335
3345
|
columns: t(a),
|
|
@@ -3339,7 +3349,7 @@ const ai = ["href"], B = {
|
|
|
3339
3349
|
f(B, {
|
|
3340
3350
|
class: "gamecenter-data-table",
|
|
3341
3351
|
columns: t(a),
|
|
3342
|
-
rows:
|
|
3352
|
+
rows: d.value,
|
|
3343
3353
|
title: e.awayTeamName
|
|
3344
3354
|
}, null, 8, ["columns", "rows", "title"])
|
|
3345
3355
|
]));
|
|
@@ -3361,13 +3371,13 @@ const ai = ["href"], B = {
|
|
|
3361
3371
|
}
|
|
3362
3372
|
},
|
|
3363
3373
|
setup(e) {
|
|
3364
|
-
const r = e, a = { en: Tt, hu: _t }, i = Ye("history"), { errors: s, add:
|
|
3374
|
+
const r = e, a = { en: Tt, hu: _t }, i = Ye("history"), { errors: s, add: d, remove: g } = Et(), m = p(() => i.gameId || i.gameid || i["game-id"] || r.gameId), { state: v, execute: h } = ae({
|
|
3365
3375
|
options: {
|
|
3366
3376
|
path: "/v2/game-data",
|
|
3367
3377
|
apiKey: r.apiKey,
|
|
3368
3378
|
params: { gameId: m.value }
|
|
3369
3379
|
},
|
|
3370
|
-
onError: (O) =>
|
|
3380
|
+
onError: (O) => d("gameData", O),
|
|
3371
3381
|
onSuccess: () => g("gameData")
|
|
3372
3382
|
}), { state: u, execute: S } = ae({
|
|
3373
3383
|
options: {
|
|
@@ -3376,85 +3386,85 @@ const ai = ["href"], B = {
|
|
|
3376
3386
|
params: { gameId: m.value }
|
|
3377
3387
|
},
|
|
3378
3388
|
transform: (O) => xa(O?.isEmpty ? [] : O),
|
|
3379
|
-
onError: (O) =>
|
|
3389
|
+
onError: (O) => d("gameEvents", O),
|
|
3380
3390
|
onSuccess: () => g("gameEvents")
|
|
3381
|
-
}), { state: b, execute:
|
|
3391
|
+
}), { state: b, execute: _ } = ae({
|
|
3382
3392
|
options: {
|
|
3383
3393
|
path: "/v2/game-stats",
|
|
3384
3394
|
apiKey: r.apiKey,
|
|
3385
3395
|
params: { gameId: m.value }
|
|
3386
3396
|
},
|
|
3387
|
-
onError: (O) =>
|
|
3397
|
+
onError: (O) => d("gameStats", O),
|
|
3388
3398
|
onSuccess: () => g("gameStats")
|
|
3389
|
-
}), { state:
|
|
3399
|
+
}), { state: z, execute: $ } = ae({
|
|
3390
3400
|
options: {
|
|
3391
3401
|
path: "/v2/game-officials",
|
|
3392
3402
|
apiKey: r.apiKey,
|
|
3393
3403
|
params: { gameId: m.value }
|
|
3394
3404
|
},
|
|
3395
|
-
onError: (O) =>
|
|
3405
|
+
onError: (O) => d("gameOfficials", O),
|
|
3396
3406
|
onSuccess: () => g("gameOfficials")
|
|
3397
3407
|
});
|
|
3398
3408
|
Ar({
|
|
3399
|
-
data:
|
|
3400
|
-
services: { getGameData: h, getGameStats:
|
|
3409
|
+
data: v,
|
|
3410
|
+
services: { getGameData: h, getGameStats: _, getEvents: S, getGameOfficials: $ }
|
|
3401
3411
|
});
|
|
3402
|
-
const
|
|
3403
|
-
return (O, U) => (n(),
|
|
3412
|
+
const N = yt(r.apiKey), L = p(() => He(`/v2/game-attendance?gameid=${m.value}&apiKey=${N}`));
|
|
3413
|
+
return (O, U) => (n(), c("div", Kl, [
|
|
3404
3414
|
f(t(ut), {
|
|
3405
3415
|
locale: r.locale,
|
|
3406
3416
|
messages: a
|
|
3407
3417
|
}, {
|
|
3408
3418
|
default: T(() => [
|
|
3409
|
-
(n(!0),
|
|
3419
|
+
(n(!0), c(y, null, E(t(s), (j) => (n(), k(t(ht), {
|
|
3410
3420
|
key: j.key,
|
|
3411
3421
|
error: j
|
|
3412
3422
|
}, null, 8, ["error"]))), 128)),
|
|
3413
|
-
t(J)(t(
|
|
3423
|
+
t(J)(t(v)) ? (n(), k(xs, {
|
|
3414
3424
|
key: 0,
|
|
3415
|
-
"game-data": t(
|
|
3425
|
+
"game-data": t(v),
|
|
3416
3426
|
locale: r.locale,
|
|
3417
3427
|
"websocket-url": L.value
|
|
3418
|
-
}, null, 8, ["game-data", "locale", "websocket-url"])) :
|
|
3419
|
-
t(J)(t(
|
|
3428
|
+
}, null, 8, ["game-data", "locale", "websocket-url"])) : w("", !0),
|
|
3429
|
+
t(J)(t(v)) ? (n(), k(_l, {
|
|
3420
3430
|
key: 1,
|
|
3421
|
-
"game-data": t(
|
|
3422
|
-
"game-officials": t(
|
|
3423
|
-
}, null, 8, ["game-data", "game-officials"])) :
|
|
3424
|
-
t(
|
|
3425
|
-
t(J)(t(b)) ? (n(),
|
|
3431
|
+
"game-data": t(v),
|
|
3432
|
+
"game-officials": t(z)
|
|
3433
|
+
}, null, 8, ["game-data", "game-officials"])) : w("", !0),
|
|
3434
|
+
t(v)?.gameStatus > 0 ? (n(), c(y, { key: 2 }, [
|
|
3435
|
+
t(J)(t(b)) ? (n(), k(Il, {
|
|
3426
3436
|
key: 0,
|
|
3427
|
-
"game-data": t(
|
|
3437
|
+
"game-data": t(v),
|
|
3428
3438
|
"game-stats": t(b)
|
|
3429
|
-
}, null, 8, ["game-data", "game-stats"])) :
|
|
3430
|
-
t(J)(t(u)) && t(J)(t(
|
|
3439
|
+
}, null, 8, ["game-data", "game-stats"])) : w("", !0),
|
|
3440
|
+
t(J)(t(u)) && t(J)(t(v)) ? (n(), k(wl, {
|
|
3431
3441
|
key: 1,
|
|
3432
3442
|
"game-events": t(u),
|
|
3433
|
-
"game-data": t(
|
|
3434
|
-
}, null, 8, ["game-events", "game-data"])) :
|
|
3435
|
-
t(J)(t(b)) ? (n(),
|
|
3443
|
+
"game-data": t(v)
|
|
3444
|
+
}, null, 8, ["game-events", "game-data"])) : w("", !0),
|
|
3445
|
+
t(J)(t(b)) ? (n(), k(Pl, {
|
|
3436
3446
|
key: 2,
|
|
3437
3447
|
data: t(b).players,
|
|
3438
|
-
"home-team-id": t(
|
|
3439
|
-
"home-team-name": t(
|
|
3440
|
-
"away-team-id": t(
|
|
3441
|
-
"away-team-name": t(
|
|
3442
|
-
}, null, 8, ["data", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) :
|
|
3443
|
-
t(J)(t(b)) ? (n(),
|
|
3448
|
+
"home-team-id": t(v).homeTeam.id,
|
|
3449
|
+
"home-team-name": t(v).homeTeam.longName,
|
|
3450
|
+
"away-team-id": t(v).awayTeam.id,
|
|
3451
|
+
"away-team-name": t(v).awayTeam.longName
|
|
3452
|
+
}, null, 8, ["data", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) : w("", !0),
|
|
3453
|
+
t(J)(t(b)) ? (n(), k(yl, {
|
|
3444
3454
|
key: 3,
|
|
3445
3455
|
data: t(b).goalies,
|
|
3446
|
-
"home-team-id": t(
|
|
3447
|
-
"home-team-name": t(
|
|
3448
|
-
"away-team-id": t(
|
|
3449
|
-
"away-team-name": t(
|
|
3450
|
-
}, null, 8, ["data", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) :
|
|
3451
|
-
t(J)(t(
|
|
3456
|
+
"home-team-id": t(v).homeTeam.id,
|
|
3457
|
+
"home-team-name": t(v).homeTeam.longName,
|
|
3458
|
+
"away-team-id": t(v).awayTeam.id,
|
|
3459
|
+
"away-team-name": t(v).awayTeam.longName
|
|
3460
|
+
}, null, 8, ["data", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) : w("", !0),
|
|
3461
|
+
t(J)(t(z)) && t(J)(t(v)) ? (n(), k(Ml, {
|
|
3452
3462
|
key: 4,
|
|
3453
|
-
"game-officials": t(
|
|
3454
|
-
"home-team-name": t(
|
|
3455
|
-
"away-team-name": t(
|
|
3456
|
-
}, null, 8, ["game-officials", "home-team-name", "away-team-name"])) :
|
|
3457
|
-
], 64)) :
|
|
3463
|
+
"game-officials": t(z),
|
|
3464
|
+
"home-team-name": t(v).homeTeam.longName,
|
|
3465
|
+
"away-team-name": t(v).awayTeam.longName
|
|
3466
|
+
}, null, 8, ["game-officials", "home-team-name", "away-team-name"])) : w("", !0)
|
|
3467
|
+
], 64)) : w("", !0)
|
|
3458
3468
|
]),
|
|
3459
3469
|
_: 1
|
|
3460
3470
|
}, 8, ["locale"])
|