@mjsz-vbr-elements/gamecenter 2.14.3 → 2.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.iife.js +2 -2
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +132 -129
- 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.14.
|
|
3
|
+
* version: v2.14.4 - 30/01/2025, 12:09:28
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { getCurrentScope as wa, onScopeDispose as xa, ref as C, isRef as ka, watch as be, readonly as Mt, toValue as X, computed as w, reactive as ft, unref as n, getCurrentInstance as Ta, onMounted as Sa, openBlock as m, createElementBlock as b, createElementVNode as l, toDisplayString as g, createBlock as T, Fragment as k, createTextVNode as x, createCommentVNode as
|
|
8
|
+
import { getCurrentScope as wa, onScopeDispose as xa, ref as C, isRef as ka, watch as be, readonly as Mt, toValue as X, computed as w, reactive as ft, unref as n, getCurrentInstance as Ta, onMounted as Sa, openBlock as m, createElementBlock as b, createElementVNode as l, toDisplayString as g, createBlock as T, Fragment as k, createTextVNode as x, createCommentVNode as h, normalizeStyle as ze, renderList as N, setBlockTracking as B, createVNode as f, normalizeClass as H, renderSlot as W, withCtx as S, mergeProps as ne, toHandlers as oe, resolveDynamicComponent as Lt, TransitionGroup as za, withModifiers as $a, defineCustomElement as Ct } from "vue";
|
|
9
9
|
import { Image as U, FloatingPanel as Q, ResponsiveTable as Pa, DataTable as ja, I18NProvider as Gt, ErrorNotice as Bt } from "@mjsz-vbr-elements/core/components";
|
|
10
10
|
import { useVisibilityChange as Ea, useI18n as D, useColumns as se, useSort as Na, useServices as Z } from "@mjsz-vbr-elements/core/composables";
|
|
11
11
|
import { convertSecToMin as R, rawConvert as et, convertTimesSecToMin as Ht, convertMinToSec as Oa, format as $e, offsetName as Pe, playerName as tt, upperCase as Ia, convert as Aa } from "@mjsz-vbr-elements/core/utils";
|
|
@@ -160,8 +160,8 @@ function yt(...e) {
|
|
|
160
160
|
const v = La(p) ? { ...p } : p;
|
|
161
161
|
t.push(
|
|
162
162
|
...d.flatMap(
|
|
163
|
-
(
|
|
164
|
-
(z) => u.map((P) => r(
|
|
163
|
+
(y) => c.flatMap(
|
|
164
|
+
(z) => u.map((P) => r(y, z, P, v))
|
|
165
165
|
)
|
|
166
166
|
)
|
|
167
167
|
);
|
|
@@ -194,7 +194,7 @@ function Va(e, t, a = {}) {
|
|
|
194
194
|
return ke(P).map(Te).filter(Da);
|
|
195
195
|
});
|
|
196
196
|
let p = Re;
|
|
197
|
-
const v = C(d),
|
|
197
|
+
const v = C(d), y = c.value ? be(
|
|
198
198
|
() => [u.value, Te(r), v.value],
|
|
199
199
|
([P, E]) => {
|
|
200
200
|
if (p(), !v.value || !P.length)
|
|
@@ -213,7 +213,7 @@ function Va(e, t, a = {}) {
|
|
|
213
213
|
},
|
|
214
214
|
{ immediate: d, flush: "post" }
|
|
215
215
|
) : Re, z = () => {
|
|
216
|
-
p(),
|
|
216
|
+
p(), y(), v.value = !1;
|
|
217
217
|
};
|
|
218
218
|
return ce(z), {
|
|
219
219
|
isSupported: c,
|
|
@@ -279,7 +279,7 @@ function it(e = "history", t = {}) {
|
|
|
279
279
|
function v() {
|
|
280
280
|
return new URLSearchParams(u());
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function y(I) {
|
|
283
283
|
const $ = new Set(Object.keys(c));
|
|
284
284
|
for (const L of I.keys()) {
|
|
285
285
|
const V = I.getAll(L);
|
|
@@ -299,7 +299,7 @@ function it(e = "history", t = {}) {
|
|
|
299
299
|
{ deep: !0 }
|
|
300
300
|
);
|
|
301
301
|
function E(I, $) {
|
|
302
|
-
z(), $ &&
|
|
302
|
+
z(), $ && y(I), s === "replace" ? d.history.replaceState(
|
|
303
303
|
d.history.state,
|
|
304
304
|
d.document.title,
|
|
305
305
|
d.location.pathname + p(I)
|
|
@@ -315,7 +315,7 @@ function it(e = "history", t = {}) {
|
|
|
315
315
|
const G = { passive: !0 };
|
|
316
316
|
yt(d, "popstate", j, G), e !== "history" && yt(d, "hashchange", j, G);
|
|
317
317
|
const ie = v();
|
|
318
|
-
return ie.keys().next().value ?
|
|
318
|
+
return ie.keys().next().value ? y(ie) : Object.assign(c, a), c;
|
|
319
319
|
}
|
|
320
320
|
function O(e) {
|
|
321
321
|
return e != null && typeof e == "object" && e["@@functional/placeholder"] === !0;
|
|
@@ -1328,8 +1328,8 @@ function Li(e, t, a, r) {
|
|
|
1328
1328
|
return `(${i.join(", ")}) ${o}:${s}`;
|
|
1329
1329
|
}
|
|
1330
1330
|
function Ci(e) {
|
|
1331
|
-
var d, c, u, p, v,
|
|
1332
|
-
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.advTime) ?? 0, a = ((c = e == null ? void 0 : e.away) == null ? void 0 : c.advTime) ?? 0, r = ((u = e == null ? void 0 : e.home) == null ? void 0 : u.advTimePP1) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.advTimePP1) ?? 0, o = ((v = e == null ? void 0 : e.home) == null ? void 0 : v.advTimePP2) ?? 0, s = ((
|
|
1331
|
+
var d, c, u, p, v, y;
|
|
1332
|
+
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.advTime) ?? 0, a = ((c = e == null ? void 0 : e.away) == null ? void 0 : c.advTime) ?? 0, r = ((u = e == null ? void 0 : e.home) == null ? void 0 : u.advTimePP1) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.advTimePP1) ?? 0, o = ((v = e == null ? void 0 : e.home) == null ? void 0 : v.advTimePP2) ?? 0, s = ((y = e == null ? void 0 : e.away) == null ? void 0 : y.advTimePP2) ?? 0;
|
|
1333
1333
|
return {
|
|
1334
1334
|
advTime: `${R(t)} / ${R(a)}`,
|
|
1335
1335
|
advTimePP1: `${R(r)} / ${R(i)}`,
|
|
@@ -1337,13 +1337,13 @@ function Ci(e) {
|
|
|
1337
1337
|
};
|
|
1338
1338
|
}
|
|
1339
1339
|
function Gi(e) {
|
|
1340
|
-
var d, c, u, p, v,
|
|
1341
|
-
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.adv) ?? 0, a = ((c = e == null ? void 0 : e.home) == null ? void 0 : c.ppgf) ?? 0, r = ((u = e == null ? void 0 : e.away) == null ? void 0 : u.adv) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.ppgf) ?? 0, o = (((v = e == null ? void 0 : e.home) == null ? void 0 : v.ppPercent) ?? 0).toFixed(2), s = (((
|
|
1340
|
+
var d, c, u, p, v, y;
|
|
1341
|
+
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.adv) ?? 0, a = ((c = e == null ? void 0 : e.home) == null ? void 0 : c.ppgf) ?? 0, r = ((u = e == null ? void 0 : e.away) == null ? void 0 : u.adv) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.ppgf) ?? 0, o = (((v = e == null ? void 0 : e.home) == null ? void 0 : v.ppPercent) ?? 0).toFixed(2), s = (((y = e == null ? void 0 : e.away) == null ? void 0 : y.ppPercent) ?? 0).toFixed(2);
|
|
1342
1342
|
return `(${t}/${a}) <b>${o}%</b> / (${r}/${i}) <b>${s}%</b>`;
|
|
1343
1343
|
}
|
|
1344
1344
|
function Bi(e) {
|
|
1345
|
-
var d, c, u, p, v,
|
|
1346
|
-
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.dvg) ?? 0, a = ((c = e == null ? void 0 : e.home) == null ? void 0 : c.pk) ?? 0, r = ((u = e == null ? void 0 : e.away) == null ? void 0 : u.dvg) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.pk) ?? 0, o = (((v = e == null ? void 0 : e.home) == null ? void 0 : v.pkPercent) ?? 0).toFixed(2), s = (((
|
|
1345
|
+
var d, c, u, p, v, y;
|
|
1346
|
+
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.dvg) ?? 0, a = ((c = e == null ? void 0 : e.home) == null ? void 0 : c.pk) ?? 0, r = ((u = e == null ? void 0 : e.away) == null ? void 0 : u.dvg) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.pk) ?? 0, o = (((v = e == null ? void 0 : e.home) == null ? void 0 : v.pkPercent) ?? 0).toFixed(2), s = (((y = e == null ? void 0 : e.away) == null ? void 0 : y.pkPercent) ?? 0).toFixed(2);
|
|
1347
1347
|
return `(${t}/${a}) <b>${o}%</b> / (${r}/${i}) <b>${s}%</b>`;
|
|
1348
1348
|
}
|
|
1349
1349
|
function ma(e) {
|
|
@@ -1358,7 +1358,7 @@ function ga(e = {}) {
|
|
|
1358
1358
|
() => jt(i, o, s),
|
|
1359
1359
|
a,
|
|
1360
1360
|
{ immediate: !1 }
|
|
1361
|
-
), { pause:
|
|
1361
|
+
), { pause: y } = ht(() => {
|
|
1362
1362
|
i(), d();
|
|
1363
1363
|
}, Nt, {
|
|
1364
1364
|
immediate: !0,
|
|
@@ -1372,7 +1372,7 @@ function ga(e = {}) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
);
|
|
1374
1374
|
return Ea(c, u, p), be(t, (E) => {
|
|
1375
|
-
E.gameStatus < 1 && (c.value = !1), E.gameStatus === 1 && !v.value && (
|
|
1375
|
+
E.gameStatus < 1 && (c.value = !1), E.gameStatus === 1 && !v.value && (y(), z(), u(), c.value = !0), E.gameStatus > 1 && (c.value = !1, jt(o, s, d), y(), P(), p());
|
|
1376
1376
|
}), {
|
|
1377
1377
|
pause: p
|
|
1378
1378
|
};
|
|
@@ -1432,7 +1432,7 @@ const Ri = { class: "gamecenter-timeline-score-board" }, Ki = { class: "is-team
|
|
|
1432
1432
|
l("div", Vi, [
|
|
1433
1433
|
e.gameData.gameStatus > 0 ? (m(), b(k, { key: 0 }, [
|
|
1434
1434
|
x(g(n(t)(`periods.${n(Fe)(e.gameData.period)}`)), 1)
|
|
1435
|
-
], 64)) :
|
|
1435
|
+
], 64)) : h("", !0)
|
|
1436
1436
|
]),
|
|
1437
1437
|
l("div", qi, g(e.gameData.awayTeamScore), 1),
|
|
1438
1438
|
(m(), T(n(U), {
|
|
@@ -1595,9 +1595,9 @@ function Ve(e, t, a, r) {
|
|
|
1595
1595
|
let i = 0, o = 0;
|
|
1596
1596
|
const s = e.reduce((d, c) => {
|
|
1597
1597
|
var z, P, E;
|
|
1598
|
-
const u = ((z = c[t]) == null ? void 0 : z.period) ?? "p1", p = ((P = c[t]) == null ? void 0 : P[r]) ?? 0, v = ((E = c[a]) == null ? void 0 : E[r]) ?? 0,
|
|
1598
|
+
const u = ((z = c[t]) == null ? void 0 : z.period) ?? "p1", p = ((P = c[t]) == null ? void 0 : P[r]) ?? 0, v = ((E = c[a]) == null ? void 0 : E[r]) ?? 0, y = p + v;
|
|
1599
1599
|
return i += p, o += v, d[u] = {
|
|
1600
|
-
max:
|
|
1600
|
+
max: y,
|
|
1601
1601
|
valueStart: p,
|
|
1602
1602
|
valueEnd: v
|
|
1603
1603
|
}, d;
|
|
@@ -1609,8 +1609,8 @@ function Ve(e, t, a, r) {
|
|
|
1609
1609
|
}, s;
|
|
1610
1610
|
}
|
|
1611
1611
|
function pn(e) {
|
|
1612
|
-
var d, c, u, p, v,
|
|
1613
|
-
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.advTime) ?? 0, a = ((c = e == null ? void 0 : e.away) == null ? void 0 : c.advTime) ?? 0, r = ((u = e == null ? void 0 : e.home) == null ? void 0 : u.advTimePP1) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.advTimePP1) ?? 0, o = ((v = e == null ? void 0 : e.home) == null ? void 0 : v.advTimePP2) ?? 0, s = ((
|
|
1612
|
+
var d, c, u, p, v, y;
|
|
1613
|
+
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.advTime) ?? 0, a = ((c = e == null ? void 0 : e.away) == null ? void 0 : c.advTime) ?? 0, r = ((u = e == null ? void 0 : e.home) == null ? void 0 : u.advTimePP1) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.advTimePP1) ?? 0, o = ((v = e == null ? void 0 : e.home) == null ? void 0 : v.advTimePP2) ?? 0, s = ((y = e == null ? void 0 : e.away) == null ? void 0 : y.advTimePP2) ?? 0;
|
|
1614
1614
|
return {
|
|
1615
1615
|
advTime: {
|
|
1616
1616
|
max: t + a,
|
|
@@ -1630,8 +1630,8 @@ function pn(e) {
|
|
|
1630
1630
|
};
|
|
1631
1631
|
}
|
|
1632
1632
|
function fn(e) {
|
|
1633
|
-
var d, c, u, p, v,
|
|
1634
|
-
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.adv) ?? 0, a = ((c = e == null ? void 0 : e.home) == null ? void 0 : c.ppgf) ?? 0, r = ((u = e == null ? void 0 : e.away) == null ? void 0 : u.adv) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.ppgf) ?? 0, o = (((v = e == null ? void 0 : e.home) == null ? void 0 : v.ppPercent) ?? 0).toFixed(2), s = (((
|
|
1633
|
+
var d, c, u, p, v, y;
|
|
1634
|
+
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.adv) ?? 0, a = ((c = e == null ? void 0 : e.home) == null ? void 0 : c.ppgf) ?? 0, r = ((u = e == null ? void 0 : e.away) == null ? void 0 : u.adv) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.ppgf) ?? 0, o = (((v = e == null ? void 0 : e.home) == null ? void 0 : v.ppPercent) ?? 0).toFixed(2), s = (((y = e == null ? void 0 : e.away) == null ? void 0 : y.ppPercent) ?? 0).toFixed(2);
|
|
1635
1635
|
return {
|
|
1636
1636
|
powerPlays: {
|
|
1637
1637
|
max: t + r,
|
|
@@ -1654,8 +1654,8 @@ function fn(e) {
|
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
1656
|
function hn(e) {
|
|
1657
|
-
var d, c, u, p, v,
|
|
1658
|
-
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.dvg) ?? 0, a = ((c = e == null ? void 0 : e.home) == null ? void 0 : c.pk) ?? 0, r = ((u = e == null ? void 0 : e.away) == null ? void 0 : u.dvg) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.pk) ?? 0, o = (((v = e == null ? void 0 : e.home) == null ? void 0 : v.pkPercent) ?? 0).toFixed(2), s = (((
|
|
1657
|
+
var d, c, u, p, v, y;
|
|
1658
|
+
const t = ((d = e == null ? void 0 : e.home) == null ? void 0 : d.dvg) ?? 0, a = ((c = e == null ? void 0 : e.home) == null ? void 0 : c.pk) ?? 0, r = ((u = e == null ? void 0 : e.away) == null ? void 0 : u.dvg) ?? 0, i = ((p = e == null ? void 0 : e.away) == null ? void 0 : p.pk) ?? 0, o = (((v = e == null ? void 0 : e.home) == null ? void 0 : v.pkPercent) ?? 0).toFixed(2), s = (((y = e == null ? void 0 : e.away) == null ? void 0 : y.pkPercent) ?? 0).toFixed(2);
|
|
1659
1659
|
return {
|
|
1660
1660
|
penaltyKill: {
|
|
1661
1661
|
max: t + r,
|
|
@@ -1747,7 +1747,7 @@ const wn = { class: "gamecenter-timeline-game-data" }, xn = { class: "is-title-c
|
|
|
1747
1747
|
}, [
|
|
1748
1748
|
f(n(Oe), { class: "is-icon" }),
|
|
1749
1749
|
x(" " + g(n(a)("sheet")), 1)
|
|
1750
|
-
], 8, zn)) :
|
|
1750
|
+
], 8, zn)) : h("", !0),
|
|
1751
1751
|
e.gameData.toiReportUrl ? (m(), b("a", {
|
|
1752
1752
|
key: 1,
|
|
1753
1753
|
href: e.gameData.toiReportUrl,
|
|
@@ -1755,7 +1755,7 @@ const wn = { class: "gamecenter-timeline-game-data" }, xn = { class: "is-title-c
|
|
|
1755
1755
|
}, [
|
|
1756
1756
|
f(n(Oe), { class: "is-icon" }),
|
|
1757
1757
|
x(" " + g(n(a)("toiSheet")), 1)
|
|
1758
|
-
], 8, $n)) :
|
|
1758
|
+
], 8, $n)) : h("", !0),
|
|
1759
1759
|
e.gameData.video ? (m(), b("a", {
|
|
1760
1760
|
key: 2,
|
|
1761
1761
|
href: e.gameData.video,
|
|
@@ -1763,7 +1763,7 @@ const wn = { class: "gamecenter-timeline-game-data" }, xn = { class: "is-title-c
|
|
|
1763
1763
|
}, [
|
|
1764
1764
|
f(n(va), { class: "is-icon" }),
|
|
1765
1765
|
x(" " + g(n(a)("video")), 1)
|
|
1766
|
-
], 8, Pn)) :
|
|
1766
|
+
], 8, Pn)) : h("", !0)
|
|
1767
1767
|
])
|
|
1768
1768
|
]),
|
|
1769
1769
|
l("div", jn, [
|
|
@@ -1784,21 +1784,21 @@ const wn = { class: "gamecenter-timeline-game-data" }, xn = { class: "is-title-c
|
|
|
1784
1784
|
])
|
|
1785
1785
|
]),
|
|
1786
1786
|
l("div", null, [
|
|
1787
|
-
e.gameData.gameStatus > 1 ? (m(), b("p", On, g(n(a)(`gameStatus.status-${e.gameData.gameStatus}`)), 1)) :
|
|
1788
|
-
e.gameData.gameStatus === 1 ? (m(), b("p", In, g(n(a)(`periods.${n(Fe)(e.gameData.period)}`)), 1)) :
|
|
1787
|
+
e.gameData.gameStatus > 1 ? (m(), b("p", On, g(n(a)(`gameStatus.status-${e.gameData.gameStatus}`)), 1)) : h("", !0),
|
|
1788
|
+
e.gameData.gameStatus === 1 ? (m(), b("p", In, g(n(a)(`periods.${n(Fe)(e.gameData.period)}`)), 1)) : h("", !0),
|
|
1789
1789
|
e.gameData.gameStatus > 1 ? (m(), b(k, { key: 2 }, [
|
|
1790
1790
|
e.gameData.isOvertime ? (m(), b("p", An, [
|
|
1791
1791
|
l("span", _n, g(n(a)("afterOvertime")), 1)
|
|
1792
|
-
])) :
|
|
1792
|
+
])) : h("", !0),
|
|
1793
1793
|
e.gameData.isShootout ? (m(), b("p", Dn, [
|
|
1794
1794
|
l("span", Mn, g(n(a)("afterShootout")), 1)
|
|
1795
|
-
])) :
|
|
1796
|
-
], 64)) :
|
|
1797
|
-
e.gameData.gameStatus === 1 ? (m(), b("p", Ln, g(e.gameData.actualTime), 1)) :
|
|
1795
|
+
])) : h("", !0)
|
|
1796
|
+
], 64)) : h("", !0),
|
|
1797
|
+
e.gameData.gameStatus === 1 ? (m(), b("p", Ln, g(e.gameData.actualTime), 1)) : h("", !0),
|
|
1798
1798
|
e.gameData.gameStatus === 1 ? (m(), T(ba, {
|
|
1799
1799
|
key: 4,
|
|
1800
1800
|
"game-data": e.gameData
|
|
1801
|
-
}, null, 8, ["game-data"])) :
|
|
1801
|
+
}, null, 8, ["game-data"])) : h("", !0),
|
|
1802
1802
|
l("div", {
|
|
1803
1803
|
class: H(["is-game-result", [{ "is-game-status-live": e.gameData.gameStatus === 1 }]])
|
|
1804
1804
|
}, [
|
|
@@ -1806,13 +1806,13 @@ const wn = { class: "gamecenter-timeline-game-data" }, xn = { class: "is-title-c
|
|
|
1806
1806
|
d[3] || (d[3] = x(":")),
|
|
1807
1807
|
e.gameData.gameStatus === 0 ? (m(), b("span", Bn, "-")) : (m(), b("span", Hn, g(e.gameData.awayTeamScore), 1))
|
|
1808
1808
|
], 2),
|
|
1809
|
-
e.gameData.attendance ? (m(), b("p", Fn, g(n(a)("gameData.attendance", [e.gameData.attendance])), 1)) :
|
|
1809
|
+
e.gameData.attendance ? (m(), b("p", Fn, g(n(a)("gameData.attendance", [e.gameData.attendance])), 1)) : h("", !0),
|
|
1810
1810
|
e.gameData.gameStatus > 0 ? (m(), T(dn, {
|
|
1811
1811
|
key: 6,
|
|
1812
1812
|
results: r.value,
|
|
1813
1813
|
"home-team-name": e.gameData.homeTeam.shortName,
|
|
1814
1814
|
"away-team-name": e.gameData.awayTeam.shortName
|
|
1815
|
-
}, null, 8, ["results", "home-team-name", "away-team-name"])) :
|
|
1815
|
+
}, null, 8, ["results", "home-team-name", "away-team-name"])) : h("", !0)
|
|
1816
1816
|
]),
|
|
1817
1817
|
l("div", null, [
|
|
1818
1818
|
d[2] || (B(-1, !0), (d[2] = f(n(U), {
|
|
@@ -1975,8 +1975,8 @@ const pe = { render: qn }, Yn = ["data-team"], Wn = { class: "is-details-title"
|
|
|
1975
1975
|
}, {
|
|
1976
1976
|
title: S(() => [
|
|
1977
1977
|
x(g(n(r)("eventType.Gól")) + " ", 1),
|
|
1978
|
-
e.event.advantage ? (m(), b("span", eo, g(e.event.advantage), 1)) :
|
|
1979
|
-
e.event.en ? (m(), b("span", to, " EN ")) :
|
|
1978
|
+
e.event.advantage ? (m(), b("span", eo, g(e.event.advantage), 1)) : h("", !0),
|
|
1979
|
+
e.event.en ? (m(), b("span", to, " EN ")) : h("", !0),
|
|
1980
1980
|
x(" (" + g(e.event.score) + ") ", 1)
|
|
1981
1981
|
]),
|
|
1982
1982
|
"details-list": S(() => [
|
|
@@ -2036,19 +2036,19 @@ const pe = { render: qn }, Yn = ["data-team"], Wn = { class: "is-details-title"
|
|
|
2036
2036
|
_: 2
|
|
2037
2037
|
}, 1032, ["content", "append-to"]))), 128))
|
|
2038
2038
|
])
|
|
2039
|
-
])) :
|
|
2039
|
+
])) : h("", !0),
|
|
2040
2040
|
l("li", null, [
|
|
2041
2041
|
e.event.ps || e.event.gws || e.event.gwg ? (m(), b("span", mo, [
|
|
2042
2042
|
e.event.ps ? (m(), b(k, { key: 0 }, [
|
|
2043
2043
|
x("PS")
|
|
2044
|
-
], 64)) :
|
|
2044
|
+
], 64)) : h("", !0),
|
|
2045
2045
|
e.event.gws ? (m(), b(k, { key: 1 }, [
|
|
2046
2046
|
x("GWS")
|
|
2047
|
-
], 64)) :
|
|
2047
|
+
], 64)) : h("", !0),
|
|
2048
2048
|
e.event.gwg ? (m(), b(k, { key: 2 }, [
|
|
2049
2049
|
x("GWG")
|
|
2050
|
-
], 64)) :
|
|
2051
|
-
])) :
|
|
2050
|
+
], 64)) : h("", !0)
|
|
2051
|
+
])) : h("", !0)
|
|
2052
2052
|
])
|
|
2053
2053
|
])
|
|
2054
2054
|
]),
|
|
@@ -2148,19 +2148,19 @@ const yo = { render: ho }, wo = { class: "is-details-list" }, xo = { class: "is-
|
|
|
2148
2148
|
width: "24",
|
|
2149
2149
|
height: "24",
|
|
2150
2150
|
class: "is-goalie-in-icon"
|
|
2151
|
-
})) :
|
|
2151
|
+
})) : h("", !0),
|
|
2152
2152
|
e.event.gkDirection === "BE" ? (m(), T(n(Xe), {
|
|
2153
2153
|
key: 1,
|
|
2154
2154
|
width: "24",
|
|
2155
2155
|
height: "24",
|
|
2156
2156
|
class: "is-goalie-in-icon"
|
|
2157
|
-
})) :
|
|
2157
|
+
})) : h("", !0),
|
|
2158
2158
|
e.event.gkDirection === "KI" ? (m(), T(n(pa), {
|
|
2159
2159
|
key: 2,
|
|
2160
2160
|
width: "24",
|
|
2161
2161
|
height: "24",
|
|
2162
2162
|
class: "is-goalie-out-icon"
|
|
2163
|
-
})) :
|
|
2163
|
+
})) : h("", !0)
|
|
2164
2164
|
]),
|
|
2165
2165
|
_: 1
|
|
2166
2166
|
}, 8, ["timestamp", "is-home-team", "event-type", "event"]));
|
|
@@ -2199,11 +2199,11 @@ const fa = { render: zo }, $o = { class: "is-details-list" }, Po = { class: "is-
|
|
|
2199
2199
|
x(g(n(a)("events.penaltyLength", [e.event.penaltyLength])) + " ", 1),
|
|
2200
2200
|
e.event.penaltyEnd ? (m(), b(k, { key: 0 }, [
|
|
2201
2201
|
x(" (" + g(e.event.penaltyEnd) + ") ", 1)
|
|
2202
|
-
], 64)) :
|
|
2203
|
-
], 64)) :
|
|
2202
|
+
], 64)) : h("", !0)
|
|
2203
|
+
], 64)) : h("", !0),
|
|
2204
2204
|
e.event.perc === 0 ? (m(), b(k, { key: 1 }, [
|
|
2205
2205
|
x(" PS ")
|
|
2206
|
-
], 64)) :
|
|
2206
|
+
], 64)) : h("", !0)
|
|
2207
2207
|
]),
|
|
2208
2208
|
"details-list": S(() => [
|
|
2209
2209
|
l("ul", $o, [
|
|
@@ -2443,27 +2443,27 @@ const bt = { render: Lo }, Co = { class: "is-period-header" }, Go = {
|
|
|
2443
2443
|
key: v,
|
|
2444
2444
|
class: H(["gamecenter-timeline-lineups-lines", [{ "is-away-team": v === "away" }]])
|
|
2445
2445
|
}, [
|
|
2446
|
-
(m(!0), b(k, null, N(p, (
|
|
2446
|
+
(m(!0), b(k, null, N(p, (y) => {
|
|
2447
2447
|
var z;
|
|
2448
2448
|
return m(), b("ul", {
|
|
2449
|
-
key:
|
|
2450
|
-
class: H(["is-player-wrapper", [`is-${
|
|
2449
|
+
key: y.position,
|
|
2450
|
+
class: H(["is-player-wrapper", [`is-${y.position}`]])
|
|
2451
2451
|
}, [
|
|
2452
2452
|
l("li", null, [
|
|
2453
2453
|
f(n(U), {
|
|
2454
|
-
src:
|
|
2454
|
+
src: y.player.picture
|
|
2455
2455
|
}, null, 8, ["src"])
|
|
2456
2456
|
]),
|
|
2457
|
-
l("li", null, g(
|
|
2457
|
+
l("li", null, g(y.number), 1),
|
|
2458
2458
|
l("li", null, [
|
|
2459
|
-
x(g(((z = n(tt)(
|
|
2459
|
+
x(g(((z = n(tt)(y)) == null ? void 0 : z.name) ?? "") + " ", 1),
|
|
2460
2460
|
l("ul", null, [
|
|
2461
|
-
(m(!0), b(k, null, N(
|
|
2461
|
+
(m(!0), b(k, null, N(y.goal, (P) => (m(), b("li", { key: P }, [
|
|
2462
2462
|
f(n(pe))
|
|
2463
2463
|
]))), 128))
|
|
2464
2464
|
])
|
|
2465
2465
|
]),
|
|
2466
|
-
l("li", null, g(
|
|
2466
|
+
l("li", null, g(y.position), 1)
|
|
2467
2467
|
], 2);
|
|
2468
2468
|
}), 128))
|
|
2469
2469
|
], 2))), 128))
|
|
@@ -2569,28 +2569,28 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
2569
2569
|
content: n(o)("bestPlayer"),
|
|
2570
2570
|
"append-to": i.value
|
|
2571
2571
|
}, {
|
|
2572
|
-
default: S(({ setRef: v, show:
|
|
2572
|
+
default: S(({ setRef: v, show: y, hide: z }) => [
|
|
2573
2573
|
l("span", {
|
|
2574
2574
|
ref: v,
|
|
2575
2575
|
class: "is-text-dark",
|
|
2576
|
-
onMouseenter:
|
|
2576
|
+
onMouseenter: y,
|
|
2577
2577
|
onMouseleave: z,
|
|
2578
|
-
onFocus:
|
|
2578
|
+
onFocus: y,
|
|
2579
2579
|
onBlur: z
|
|
2580
2580
|
}, [
|
|
2581
2581
|
f(n(es))
|
|
2582
2582
|
], 40, ts)
|
|
2583
2583
|
]),
|
|
2584
2584
|
_: 1
|
|
2585
|
-
}, 8, ["content", "append-to"])) :
|
|
2585
|
+
}, 8, ["content", "append-to"])) : h("", !0)
|
|
2586
2586
|
]),
|
|
2587
2587
|
"cell-cora": S(({ row: p }) => [
|
|
2588
2588
|
p.isPlayerC ? (m(), b(k, { key: 0 }, [
|
|
2589
2589
|
x(" C ")
|
|
2590
|
-
], 64)) :
|
|
2590
|
+
], 64)) : h("", !0),
|
|
2591
2591
|
p.isPlayerA ? (m(), b(k, { key: 1 }, [
|
|
2592
2592
|
x(" A ")
|
|
2593
|
-
], 64)) :
|
|
2593
|
+
], 64)) : h("", !0)
|
|
2594
2594
|
]),
|
|
2595
2595
|
_: 2
|
|
2596
2596
|
}, 1032, ["columns", "rows", "append-to", "sort"])
|
|
@@ -2725,26 +2725,26 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
2725
2725
|
l("h2", ls, g(n(a)("title.fieldPlayers")), 1),
|
|
2726
2726
|
l("div", cs, [
|
|
2727
2727
|
f(_e, { rows: o.value }, {
|
|
2728
|
-
default: S(({ rows: v, sort:
|
|
2728
|
+
default: S(({ rows: v, sort: y, onSort: z }) => [
|
|
2729
2729
|
f(F, {
|
|
2730
2730
|
class: "is-home-team 'gamecenter-timeline-data-table",
|
|
2731
2731
|
columns: n(r),
|
|
2732
2732
|
rows: v,
|
|
2733
2733
|
title: e.homeTeamName,
|
|
2734
|
-
sort:
|
|
2734
|
+
sort: y,
|
|
2735
2735
|
onSort: z
|
|
2736
2736
|
}, null, 8, ["columns", "rows", "title", "sort", "onSort"])
|
|
2737
2737
|
]),
|
|
2738
2738
|
_: 1
|
|
2739
2739
|
}, 8, ["rows"]),
|
|
2740
2740
|
f(_e, { rows: s.value }, {
|
|
2741
|
-
default: S(({ rows: v, sort:
|
|
2741
|
+
default: S(({ rows: v, sort: y, onSort: z }) => [
|
|
2742
2742
|
f(F, {
|
|
2743
2743
|
class: "is-away-team gamecenter-timeline-data-table",
|
|
2744
2744
|
columns: n(r),
|
|
2745
2745
|
rows: v,
|
|
2746
2746
|
title: e.awayTeamName,
|
|
2747
|
-
sort:
|
|
2747
|
+
sort: y,
|
|
2748
2748
|
onSort: z
|
|
2749
2749
|
}, null, 8, ["columns", "rows", "title", "sort", "onSort"])
|
|
2750
2750
|
]),
|
|
@@ -2851,7 +2851,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
2851
2851
|
x(g(e.valueStart) + " ", 1),
|
|
2852
2852
|
e.valueSuffix ? (m(), b(k, { key: 0 }, [
|
|
2853
2853
|
x(g(e.valueSuffix), 1)
|
|
2854
|
-
], 64)) :
|
|
2854
|
+
], 64)) : h("", !0)
|
|
2855
2855
|
])
|
|
2856
2856
|
]),
|
|
2857
2857
|
l("div", fs, [
|
|
@@ -2871,7 +2871,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
2871
2871
|
x(g(e.valueEnd) + " ", 1),
|
|
2872
2872
|
e.valueSuffix ? (m(), b(k, { key: 0 }, [
|
|
2873
2873
|
x(g(e.valueSuffix), 1)
|
|
2874
|
-
], 64)) :
|
|
2874
|
+
], 64)) : h("", !0)
|
|
2875
2875
|
])
|
|
2876
2876
|
]),
|
|
2877
2877
|
l("div", ws, g(e.title), 1)
|
|
@@ -2891,11 +2891,11 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
2891
2891
|
},
|
|
2892
2892
|
setup(e) {
|
|
2893
2893
|
const t = e, { t: a } = D(), r = w(() => {
|
|
2894
|
-
var v,
|
|
2895
|
-
return ((
|
|
2894
|
+
var v, y;
|
|
2895
|
+
return ((y = (v = t.gameData) == null ? void 0 : v.homeTeam) == null ? void 0 : y.id) ?? "";
|
|
2896
2896
|
}), i = w(() => {
|
|
2897
|
-
var v,
|
|
2898
|
-
return ((
|
|
2897
|
+
var v, y;
|
|
2898
|
+
return ((y = (v = t.gameData) == null ? void 0 : v.awayTeam) == null ? void 0 : y.id) ?? "";
|
|
2899
2899
|
}), o = w(() => {
|
|
2900
2900
|
var v;
|
|
2901
2901
|
return Ve(((v = t.gameStats) == null ? void 0 : v.teamSOG) ?? [], i.value, r.value, "shots");
|
|
@@ -2917,7 +2917,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
2917
2917
|
var v;
|
|
2918
2918
|
return pn(((v = t.gameStats) == null ? void 0 : v.teamPowerPlay) ?? {});
|
|
2919
2919
|
});
|
|
2920
|
-
return (v,
|
|
2920
|
+
return (v, y) => (m(), b("div", xs, [
|
|
2921
2921
|
l("h1", ks, g(n(a)("teamsStats.sog")), 1),
|
|
2922
2922
|
l("div", Ts, [
|
|
2923
2923
|
(m(!0), b(k, null, N(o.value, ({ max: z, valueStart: P, valueEnd: E }, j) => (m(), T(J, {
|
|
@@ -3049,7 +3049,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3049
3049
|
threshold: 0.25
|
|
3050
3050
|
}
|
|
3051
3051
|
);
|
|
3052
|
-
const { errors: d, add: c, remove: u } = ua(), p = w(() => (o == null ? void 0 : o.gameid) || (o == null ? void 0 : o.gameId) || t.gameId), { state: v, execute:
|
|
3052
|
+
const { errors: d, add: c, remove: u } = ua(), p = w(() => (o == null ? void 0 : o.gameid) || (o == null ? void 0 : o.gameId) || t.gameId), { state: v, execute: y } = Z({
|
|
3053
3053
|
options: {
|
|
3054
3054
|
path: "/v2/game-data",
|
|
3055
3055
|
apiKey: t.apiKey,
|
|
@@ -3085,7 +3085,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3085
3085
|
});
|
|
3086
3086
|
ga({
|
|
3087
3087
|
data: v,
|
|
3088
|
-
services: { getGameData:
|
|
3088
|
+
services: { getGameData: y, getGameStats: j, getEvents: P, getGameOfficials: ie },
|
|
3089
3089
|
interval: Hs
|
|
3090
3090
|
});
|
|
3091
3091
|
const I = Qi(v);
|
|
@@ -3108,8 +3108,8 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3108
3108
|
key: 0,
|
|
3109
3109
|
class: H({ "is-visible": i.value }),
|
|
3110
3110
|
"game-data": n(v)
|
|
3111
|
-
}, null, 8, ["class", "game-data"])) :
|
|
3112
|
-
n(A)(n(v)) ?
|
|
3111
|
+
}, null, 8, ["class", "game-data"])) : h("", !0),
|
|
3112
|
+
n(A)(n(v)) ? h("", !0) : (m(), T(Un, {
|
|
3113
3113
|
key: 1,
|
|
3114
3114
|
ref_key: "contentElementRef",
|
|
3115
3115
|
ref: r,
|
|
@@ -3126,7 +3126,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3126
3126
|
key: 0,
|
|
3127
3127
|
"game-events": n(z),
|
|
3128
3128
|
"game-data": n(v)
|
|
3129
|
-
}, null, 8, ["game-events", "game-data"])) :
|
|
3129
|
+
}, null, 8, ["game-events", "game-data"])) : h("", !0),
|
|
3130
3130
|
s.value === n(We) ? (m(), T(Jo, {
|
|
3131
3131
|
key: 1,
|
|
3132
3132
|
data: n(E).players,
|
|
@@ -3135,12 +3135,12 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3135
3135
|
"home-team-name": n(v).homeTeam.longName,
|
|
3136
3136
|
"away-team-id": n(v).awayTeam.id,
|
|
3137
3137
|
"away-team-name": n(v).awayTeam.longName
|
|
3138
|
-
}, null, 8, ["data", "game-officials", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) :
|
|
3138
|
+
}, null, 8, ["data", "game-officials", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) : h("", !0),
|
|
3139
3139
|
s.value === n(Qe) ? (m(), T(_s, {
|
|
3140
3140
|
key: 2,
|
|
3141
3141
|
"game-data": n(v),
|
|
3142
3142
|
"game-stats": n(E)
|
|
3143
|
-
}, null, 8, ["game-data", "game-stats"])) :
|
|
3143
|
+
}, null, 8, ["game-data", "game-stats"])) : h("", !0),
|
|
3144
3144
|
s.value === n(Je) && !n(A)(n(E)) ? (m(), T(gs, {
|
|
3145
3145
|
key: 3,
|
|
3146
3146
|
data: n(E),
|
|
@@ -3148,14 +3148,14 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3148
3148
|
"home-team-name": n(v).homeTeam.longName,
|
|
3149
3149
|
"away-team-id": n(v).awayTeam.id,
|
|
3150
3150
|
"away-team-name": n(v).awayTeam.longName
|
|
3151
|
-
}, null, 8, ["data", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) :
|
|
3151
|
+
}, null, 8, ["data", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])) : h("", !0),
|
|
3152
3152
|
s.value === n(Ze) && !n(A)(n(G)) && !n(A)(n(v)) ? (m(), T(ss, {
|
|
3153
3153
|
key: 4,
|
|
3154
3154
|
"game-officials": n(G),
|
|
3155
3155
|
"home-team-name": n(v).homeTeam.longName,
|
|
3156
3156
|
"away-team-name": n(v).awayTeam.longName
|
|
3157
|
-
}, null, 8, ["game-officials", "home-team-name", "away-team-name"])) :
|
|
3158
|
-
], 64)) :
|
|
3157
|
+
}, null, 8, ["game-officials", "home-team-name", "away-team-name"])) : h("", !0)
|
|
3158
|
+
], 64)) : h("", !0)
|
|
3159
3159
|
];
|
|
3160
3160
|
}),
|
|
3161
3161
|
_: 1
|
|
@@ -3204,7 +3204,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3204
3204
|
}, [
|
|
3205
3205
|
f(n(Oe), { class: "is-icon" }),
|
|
3206
3206
|
x(" " + g(n(t)("sheet")), 1)
|
|
3207
|
-
], 8, qs)) :
|
|
3207
|
+
], 8, qs)) : h("", !0),
|
|
3208
3208
|
e.gameData.toiReportUrl ? (m(), b("a", {
|
|
3209
3209
|
key: 1,
|
|
3210
3210
|
href: e.gameData.toiReportUrl,
|
|
@@ -3212,7 +3212,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3212
3212
|
}, [
|
|
3213
3213
|
f(n(Oe), { class: "is-icon" }),
|
|
3214
3214
|
x(" " + g(n(t)("toiSheet")), 1)
|
|
3215
|
-
], 8, Ys)) :
|
|
3215
|
+
], 8, Ys)) : h("", !0),
|
|
3216
3216
|
e.gameData.video ? (m(), b("a", {
|
|
3217
3217
|
key: 2,
|
|
3218
3218
|
href: e.gameData.video,
|
|
@@ -3220,7 +3220,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3220
3220
|
}, [
|
|
3221
3221
|
f(n(va), { class: "is-icon" }),
|
|
3222
3222
|
x(" " + g(n(t)("video")), 1)
|
|
3223
|
-
], 8, Ws)) :
|
|
3223
|
+
], 8, Ws)) : h("", !0)
|
|
3224
3224
|
])
|
|
3225
3225
|
]),
|
|
3226
3226
|
l("div", Qs, [
|
|
@@ -3233,21 +3233,21 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3233
3233
|
l("h1", Js, g(e.gameData.homeTeam.longName), 1)
|
|
3234
3234
|
])).cacheIndex = 3, B(1), r[3]),
|
|
3235
3235
|
l("div", null, [
|
|
3236
|
-
e.gameData.gameStatus > 1 ? (m(), b("p", Zs, g(n(t)(`gameStatus.status-${e.gameData.gameStatus}`)), 1)) :
|
|
3237
|
-
e.gameData.gameStatus === 1 ? (m(), b("p", Xs, g(n(t)(`periods.${n(Fe)(e.gameData.period)}`)), 1)) :
|
|
3236
|
+
e.gameData.gameStatus > 1 ? (m(), b("p", Zs, g(n(t)(`gameStatus.status-${e.gameData.gameStatus}`)), 1)) : h("", !0),
|
|
3237
|
+
e.gameData.gameStatus === 1 ? (m(), b("p", Xs, g(n(t)(`periods.${n(Fe)(e.gameData.period)}`)), 1)) : h("", !0),
|
|
3238
3238
|
e.gameData.gameStatus > 1 ? (m(), b(k, { key: 2 }, [
|
|
3239
3239
|
e.gameData.isOvertime ? (m(), b("p", el, [
|
|
3240
3240
|
l("span", tl, g(n(t)("afterOvertime")), 1)
|
|
3241
|
-
])) :
|
|
3241
|
+
])) : h("", !0),
|
|
3242
3242
|
e.gameData.isShootout ? (m(), b("p", al, [
|
|
3243
3243
|
l("span", rl, g(n(t)("afterShootout")), 1)
|
|
3244
|
-
])) :
|
|
3245
|
-
], 64)) :
|
|
3246
|
-
e.gameData.gameStatus === 1 ? (m(), b("p", il, g(e.gameData.actualTime), 1)) :
|
|
3244
|
+
])) : h("", !0)
|
|
3245
|
+
], 64)) : h("", !0),
|
|
3246
|
+
e.gameData.gameStatus === 1 ? (m(), b("p", il, g(e.gameData.actualTime), 1)) : h("", !0),
|
|
3247
3247
|
e.gameData.gameStatus === 1 ? (m(), T(ba, {
|
|
3248
3248
|
key: 4,
|
|
3249
3249
|
"game-data": e.gameData
|
|
3250
|
-
}, null, 8, ["game-data"])) :
|
|
3250
|
+
}, null, 8, ["game-data"])) : h("", !0),
|
|
3251
3251
|
l("div", {
|
|
3252
3252
|
class: H(["is-game-result", [{ "is-game-status-live": e.gameData.gameStatus === 1 }]])
|
|
3253
3253
|
}, [
|
|
@@ -3354,21 +3354,21 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3354
3354
|
]),
|
|
3355
3355
|
l("div", pl, g(e.event.score), 1),
|
|
3356
3356
|
l("div", null, [
|
|
3357
|
-
e.event.advantage ? (m(), b("span", fl, g(e.event.advantage), 1)) :
|
|
3358
|
-
e.event.en ? (m(), b("span", hl, " EN ")) :
|
|
3357
|
+
e.event.advantage ? (m(), b("span", fl, g(e.event.advantage), 1)) : h("", !0),
|
|
3358
|
+
e.event.en ? (m(), b("span", hl, " EN ")) : h("", !0)
|
|
3359
3359
|
]),
|
|
3360
3360
|
l("div", null, [
|
|
3361
3361
|
e.event.ps || e.event.gws || e.event.gwg ? (m(), b("span", yl, [
|
|
3362
3362
|
e.event.ps ? (m(), b(k, { key: 0 }, [
|
|
3363
3363
|
x("PS")
|
|
3364
|
-
], 64)) :
|
|
3364
|
+
], 64)) : h("", !0),
|
|
3365
3365
|
e.event.gws ? (m(), b(k, { key: 1 }, [
|
|
3366
3366
|
x("GWS")
|
|
3367
|
-
], 64)) :
|
|
3367
|
+
], 64)) : h("", !0),
|
|
3368
3368
|
e.event.gwg ? (m(), b(k, { key: 2 }, [
|
|
3369
3369
|
x("GWG")
|
|
3370
|
-
], 64)) :
|
|
3371
|
-
])) :
|
|
3370
|
+
], 64)) : h("", !0)
|
|
3371
|
+
])) : h("", !0)
|
|
3372
3372
|
]),
|
|
3373
3373
|
l("div", null, [
|
|
3374
3374
|
l("dl", null, [
|
|
@@ -3424,7 +3424,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3424
3424
|
_: 2
|
|
3425
3425
|
}, 1032, ["content", "append-to"]))), 128))
|
|
3426
3426
|
])
|
|
3427
|
-
])) :
|
|
3427
|
+
])) : h("", !0)
|
|
3428
3428
|
]),
|
|
3429
3429
|
l("div", {
|
|
3430
3430
|
ref_key: "tooltipContainer",
|
|
@@ -3462,7 +3462,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3462
3462
|
width: "24",
|
|
3463
3463
|
height: "24",
|
|
3464
3464
|
class: "is-goalie-in-icon"
|
|
3465
|
-
})) :
|
|
3465
|
+
})) : h("", !0),
|
|
3466
3466
|
e.event.gkDirection === "BE" ? (m(), T(n(Xe), {
|
|
3467
3467
|
key: 1,
|
|
3468
3468
|
width: "24",
|
|
@@ -3540,10 +3540,10 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3540
3540
|
l("div", Gl, [
|
|
3541
3541
|
e.event.penaltyLength !== 0 ? (m(), b(k, { key: 0 }, [
|
|
3542
3542
|
x(g(n(r)("events.penaltyLength", [e.event.penaltyLength])), 1)
|
|
3543
|
-
], 64)) :
|
|
3543
|
+
], 64)) : h("", !0),
|
|
3544
3544
|
e.event.perc === 0 ? (m(), b(k, { key: 1 }, [
|
|
3545
3545
|
x(" PS ")
|
|
3546
|
-
], 64)) :
|
|
3546
|
+
], 64)) : h("", !0)
|
|
3547
3547
|
]),
|
|
3548
3548
|
l("div", Bl, g(e.event.penaltyEnd), 1),
|
|
3549
3549
|
l("div", Hl, [
|
|
@@ -3677,7 +3677,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3677
3677
|
return (i, o) => (m(), b("div", ac, [
|
|
3678
3678
|
(m(!0), b(k, null, N(r.value, (s, d) => (m(), b(k, { key: d }, [
|
|
3679
3679
|
l("div", rc, g(n(a)(`periods.${n(Fe)(d)}`)), 1),
|
|
3680
|
-
s.length === 0 ? (m(), b("div", ic, g(n(a)("events.noEventsInPeriod")), 1)) :
|
|
3680
|
+
s.length === 0 ? (m(), b("div", ic, g(n(a)("events.noEventsInPeriod")), 1)) : h("", !0),
|
|
3681
3681
|
(m(!0), b(k, null, N(s, (c) => (m(), b("div", {
|
|
3682
3682
|
key: c.id,
|
|
3683
3683
|
class: "gamecenter-game-event"
|
|
@@ -3768,7 +3768,10 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3768
3768
|
l("dd", { innerHTML: e.data }, null, 8, cc)
|
|
3769
3769
|
]));
|
|
3770
3770
|
}
|
|
3771
|
-
}, dc = {
|
|
3771
|
+
}, dc = {
|
|
3772
|
+
key: 0,
|
|
3773
|
+
class: "gamecenter-game-stats"
|
|
3774
|
+
}, mc = { class: "gamecenter-game-stats-container-wrapper" }, gc = {
|
|
3772
3775
|
__name: "GameOfficials",
|
|
3773
3776
|
props: {
|
|
3774
3777
|
gameOfficials: {
|
|
@@ -3805,7 +3808,7 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3805
3808
|
);
|
|
3806
3809
|
return (o, s) => {
|
|
3807
3810
|
var d;
|
|
3808
|
-
return m(), b("div", dc, [
|
|
3811
|
+
return !o.isEmpty(r.value) || !o.isEmpty(i.value) ? (m(), b("div", dc, [
|
|
3809
3812
|
l("div", mc, [
|
|
3810
3813
|
f(K, {
|
|
3811
3814
|
title: n(a)("gameStats.referees"),
|
|
@@ -3819,9 +3822,9 @@ const es = { render: Xo }, ts = ["onMouseenter", "onMouseleave", "onFocus", "onB
|
|
|
3819
3822
|
key: 0,
|
|
3820
3823
|
title: n(a)("gameStats.attendance"),
|
|
3821
3824
|
data: ((d = e.gameData) == null ? void 0 : d.attendance) ?? 0
|
|
3822
|
-
}, null, 8, ["title", "data"])) :
|
|
3825
|
+
}, null, 8, ["title", "data"])) : h("", !0)
|
|
3823
3826
|
])
|
|
3824
|
-
]);
|
|
3827
|
+
])) : h("", !0);
|
|
3825
3828
|
};
|
|
3826
3829
|
}
|
|
3827
3830
|
}, uc = { class: "gamecenter-data-column" }, vc = {
|
|
@@ -3925,11 +3928,11 @@ const fc = { render: pc }, hc = { class: "gamecenter-game-stats" }, yc = { class
|
|
|
3925
3928
|
},
|
|
3926
3929
|
setup(e) {
|
|
3927
3930
|
const t = e, { t: a } = D(), r = w(() => {
|
|
3928
|
-
var v,
|
|
3929
|
-
return ((
|
|
3931
|
+
var v, y;
|
|
3932
|
+
return ((y = (v = t.gameData) == null ? void 0 : v.homeTeam) == null ? void 0 : y.id) ?? "";
|
|
3930
3933
|
}), i = w(() => {
|
|
3931
|
-
var v,
|
|
3932
|
-
return ((
|
|
3934
|
+
var v, y;
|
|
3935
|
+
return ((y = (v = t.gameData) == null ? void 0 : v.awayTeam) == null ? void 0 : y.id) ?? "";
|
|
3933
3936
|
}), o = w(
|
|
3934
3937
|
() => {
|
|
3935
3938
|
var v;
|
|
@@ -3965,7 +3968,7 @@ const fc = { render: pc }, hc = { class: "gamecenter-game-stats" }, yc = { class
|
|
|
3965
3968
|
var v;
|
|
3966
3969
|
return Bi(((v = t.gameStats) == null ? void 0 : v.teamPowerPlay) ?? {});
|
|
3967
3970
|
});
|
|
3968
|
-
return (v,
|
|
3971
|
+
return (v, y) => (m(), b("div", hc, [
|
|
3969
3972
|
l("div", yc, [
|
|
3970
3973
|
f(K, {
|
|
3971
3974
|
title: n(a)("teamsStats.sog"),
|
|
@@ -4026,7 +4029,7 @@ const fc = { render: pc }, hc = { class: "gamecenter-game-stats" }, yc = { class
|
|
|
4026
4029
|
_: 1
|
|
4027
4030
|
}, 8, ["data"])
|
|
4028
4031
|
]),
|
|
4029
|
-
|
|
4032
|
+
y[0] || (y[0] = l("div", { id: "popover-container" }, null, -1))
|
|
4030
4033
|
]));
|
|
4031
4034
|
}
|
|
4032
4035
|
}, Tc = { class: "gamecenter-data-columns" }, Sc = {
|
|
@@ -4102,7 +4105,7 @@ const fc = { render: pc }, hc = { class: "gamecenter-game-stats" }, yc = { class
|
|
|
4102
4105
|
transform: (j) => ae(mt(re("eventPeriod")), Ge, te(ut("Period", "type")))(j != null && j.isEmpty ? [] : j),
|
|
4103
4106
|
onError: (j) => o("gameEvents", j),
|
|
4104
4107
|
onSuccess: () => s("gameEvents")
|
|
4105
|
-
}), { state:
|
|
4108
|
+
}), { state: y, execute: z } = Z({
|
|
4106
4109
|
options: {
|
|
4107
4110
|
path: "/v2/game-stats",
|
|
4108
4111
|
apiKey: t.apiKey,
|
|
@@ -4135,38 +4138,38 @@ const fc = { render: pc }, hc = { class: "gamecenter-game-stats" }, yc = { class
|
|
|
4135
4138
|
key: I.key,
|
|
4136
4139
|
error: I
|
|
4137
4140
|
}, null, 8, ["error"]))), 128)),
|
|
4138
|
-
n(A)(n(c)) ?
|
|
4141
|
+
n(A)(n(c)) ? h("", !0) : (m(), T(ml, {
|
|
4139
4142
|
key: 0,
|
|
4140
4143
|
"game-data": n(c),
|
|
4141
4144
|
locale: t.locale
|
|
4142
4145
|
}, null, 8, ["game-data", "locale"])),
|
|
4143
|
-
n(A)(n(c)) ?
|
|
4146
|
+
n(A)(n(c)) ? h("", !0) : (m(), T(gc, {
|
|
4144
4147
|
key: 1,
|
|
4145
4148
|
"game-data": n(c),
|
|
4146
4149
|
"game-officials": n(P)
|
|
4147
4150
|
}, null, 8, ["game-data", "game-officials"])),
|
|
4148
4151
|
((ie = n(c)) == null ? void 0 : ie.gameStatus) > 0 ? (m(), b(k, { key: 2 }, [
|
|
4149
|
-
n(A)(n(
|
|
4152
|
+
n(A)(n(y)) ? h("", !0) : (m(), T(kc, {
|
|
4150
4153
|
key: 0,
|
|
4151
4154
|
"game-data": n(c),
|
|
4152
|
-
"game-stats": n(
|
|
4155
|
+
"game-stats": n(y)
|
|
4153
4156
|
}, null, 8, ["game-data", "game-stats"])),
|
|
4154
4157
|
!n(A)(n(p)) && !n(A)(n(c)) ? (m(), T(nc, {
|
|
4155
4158
|
key: 1,
|
|
4156
4159
|
"game-events": n(p),
|
|
4157
4160
|
"game-data": n(c)
|
|
4158
|
-
}, null, 8, ["game-events", "game-data"])) :
|
|
4159
|
-
n(A)(n(
|
|
4161
|
+
}, null, 8, ["game-events", "game-data"])) : h("", !0),
|
|
4162
|
+
n(A)(n(y)) ? h("", !0) : (m(), T(vc, {
|
|
4160
4163
|
key: 2,
|
|
4161
|
-
data: n(
|
|
4164
|
+
data: n(y).players,
|
|
4162
4165
|
"home-team-id": n(c).homeTeam.id,
|
|
4163
4166
|
"home-team-name": n(c).homeTeam.longName,
|
|
4164
4167
|
"away-team-id": n(c).awayTeam.id,
|
|
4165
4168
|
"away-team-name": n(c).awayTeam.longName
|
|
4166
4169
|
}, null, 8, ["data", "home-team-id", "home-team-name", "away-team-id", "away-team-name"])),
|
|
4167
|
-
n(A)(n(
|
|
4170
|
+
n(A)(n(y)) ? h("", !0) : (m(), T(sc, {
|
|
4168
4171
|
key: 3,
|
|
4169
|
-
data: n(
|
|
4172
|
+
data: n(y).goalies,
|
|
4170
4173
|
"home-team-id": n(c).homeTeam.id,
|
|
4171
4174
|
"home-team-name": n(c).homeTeam.longName,
|
|
4172
4175
|
"away-team-id": n(c).awayTeam.id,
|
|
@@ -4177,8 +4180,8 @@ const fc = { render: pc }, hc = { class: "gamecenter-game-stats" }, yc = { class
|
|
|
4177
4180
|
"game-officials": n(P),
|
|
4178
4181
|
"home-team-name": n(c).homeTeam.longName,
|
|
4179
4182
|
"away-team-name": n(c).awayTeam.longName
|
|
4180
|
-
}, null, 8, ["game-officials", "home-team-name", "away-team-name"])) :
|
|
4181
|
-
], 64)) :
|
|
4183
|
+
}, null, 8, ["game-officials", "home-team-name", "away-team-name"])) : h("", !0)
|
|
4184
|
+
], 64)) : h("", !0)
|
|
4182
4185
|
];
|
|
4183
4186
|
}),
|
|
4184
4187
|
_: 1
|