@golstats/gsc-game-data 1.0.44 → 1.0.46
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/gsc-game-data.js +32 -40
- package/dist/gsc-game-data.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/gsc-game-data.js
CHANGED
|
@@ -11578,7 +11578,7 @@ const wR = {
|
|
|
11578
11578
|
...Xt("nextGeneral", ["usePastSeasonId", "pastSeasonId", "gameId"]),
|
|
11579
11579
|
...Xt("general", ["booleanIsStatisticModalOpen"]),
|
|
11580
11580
|
...ht("xgGeneral", ["playsLocal", "goalsQtyLocal", "shotsOnGoalQtyLocal", "xGLocal"]),
|
|
11581
|
-
...ht("nextGeneral", ["getSeasonId", "homeTeam", "visitingTeam", "showPostMatchData"]),
|
|
11581
|
+
...ht("nextGeneral", ["getSeasonId", "homeTeam", "visitingTeam", "showPostMatchData", "game", "getGameForAnalysis"]),
|
|
11582
11582
|
...ht("loginGeneral", ["getPremiumAccount", "getIsGolstats"]),
|
|
11583
11583
|
...ht("general", ["getPreviewSectionAnalytics"]),
|
|
11584
11584
|
stringSelectedTeamLogo() {
|
|
@@ -11596,16 +11596,11 @@ const wR = {
|
|
|
11596
11596
|
}
|
|
11597
11597
|
},
|
|
11598
11598
|
watch: {
|
|
11599
|
-
|
|
11599
|
+
getGameForAnalysis: {
|
|
11600
11600
|
deep: !0,
|
|
11601
11601
|
handler(e) {
|
|
11602
11602
|
e && this.fillXgPlays();
|
|
11603
11603
|
}
|
|
11604
|
-
},
|
|
11605
|
-
showPostMatchData: {
|
|
11606
|
-
handler(e, t) {
|
|
11607
|
-
e !== t && this.fillXgPlays();
|
|
11608
|
-
}
|
|
11609
11604
|
}
|
|
11610
11605
|
},
|
|
11611
11606
|
methods: {
|
|
@@ -11619,22 +11614,22 @@ const wR = {
|
|
|
11619
11614
|
return this.homeTeam.team_id;
|
|
11620
11615
|
},
|
|
11621
11616
|
fillXgPlays() {
|
|
11622
|
-
this.
|
|
11623
|
-
seasonId: this.gameId,
|
|
11624
|
-
localTeamId: this.homeTeam.team_id,
|
|
11625
|
-
visitingTeamId: this.visitingTeam.team_id,
|
|
11626
|
-
postMatch: this.showPostMatchData
|
|
11627
|
-
}) : this.getXgPlays({
|
|
11617
|
+
this.getGameForAnalysis.game_status != 1 ? this.getXgPlays({
|
|
11628
11618
|
seasonId: this.usePastSeasonId ? this.pastSeasonId : this.getSeasonId,
|
|
11629
11619
|
localTeamId: this.homeTeam.team_id,
|
|
11630
11620
|
visitingTeamId: this.visitingTeam.team_id
|
|
11621
|
+
}) : this.getXgPlays({
|
|
11622
|
+
seasonId: this.gameId,
|
|
11623
|
+
localTeamId: this.homeTeam.team_id,
|
|
11624
|
+
visitingTeamId: this.visitingTeam.team_id,
|
|
11625
|
+
postMatch: !0
|
|
11631
11626
|
});
|
|
11632
11627
|
}
|
|
11633
11628
|
},
|
|
11634
11629
|
beforeMount() {
|
|
11635
11630
|
this.fillXgPlays();
|
|
11636
11631
|
}
|
|
11637
|
-
}, Nv = (e) => (we("data-v-
|
|
11632
|
+
}, Nv = (e) => (we("data-v-6fa9fc78"), e = e(), Ce(), e), CR = { class: "xg-container" }, SR = { class: "xg-container__info" }, kR = /* @__PURE__ */ Nv(() => /* @__PURE__ */ r("div", { class: "title" }, "Goles esperados (xG)", -1)), $R = { class: "table" }, xR = { class: "table__row" }, AR = { class: "table__row__title" }, IR = { class: "table__row__value" }, OR = ["src"], TR = { class: "table__row" }, ER = { class: "table__row__title" }, RR = { class: "table__row__value" }, PR = { class: "table__row" }, FR = { class: "table__row__title" }, BR = { class: "table__row__value" }, LR = /* @__PURE__ */ Nv(() => /* @__PURE__ */ r("div", { class: "table-description" }, [
|
|
11638
11633
|
/* @__PURE__ */ r("span", null, "xG:"),
|
|
11639
11634
|
/* @__PURE__ */ M(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")
|
|
11640
11635
|
], -1)), jR = { class: "xg-container__field" };
|
|
@@ -11674,7 +11669,7 @@ function DR(e, t, a, s, i, o) {
|
|
|
11674
11669
|
])
|
|
11675
11670
|
]);
|
|
11676
11671
|
}
|
|
11677
|
-
const NR = /* @__PURE__ */ st(wR, [["render", DR], ["__scopeId", "data-v-
|
|
11672
|
+
const NR = /* @__PURE__ */ st(wR, [["render", DR], ["__scopeId", "data-v-6fa9fc78"]]);
|
|
11678
11673
|
const MR = {
|
|
11679
11674
|
name: "Xg",
|
|
11680
11675
|
components: {
|
|
@@ -11695,7 +11690,7 @@ const MR = {
|
|
|
11695
11690
|
...Xt("nextGeneral", ["usePastSeasonId", "pastSeasonId", "gameId"]),
|
|
11696
11691
|
...Xt("general", ["booleanIsStatisticModalOpen"]),
|
|
11697
11692
|
...ht("xgGeneral", ["playsAway", "goalsQtyAway", "shotsOnGoalQtyAway", "xGAway"]),
|
|
11698
|
-
...ht("nextGeneral", ["getSeasonId", "homeTeam", "visitingTeam", "showPostMatchData"]),
|
|
11693
|
+
...ht("nextGeneral", ["getSeasonId", "homeTeam", "visitingTeam", "showPostMatchData", "game", "getGameForAnalysis"]),
|
|
11699
11694
|
...ht("loginGeneral", ["getPremiumAccount", "getIsGolstats"]),
|
|
11700
11695
|
...ht("general", ["getPreviewSectionAnalytics"]),
|
|
11701
11696
|
stringSelectedTeamLogo() {
|
|
@@ -11713,15 +11708,10 @@ const MR = {
|
|
|
11713
11708
|
}
|
|
11714
11709
|
},
|
|
11715
11710
|
watch: {
|
|
11716
|
-
|
|
11711
|
+
getGameForAnalysis: {
|
|
11717
11712
|
deep: !0,
|
|
11718
11713
|
handler(e) {
|
|
11719
|
-
e && this.fillXgPlays();
|
|
11720
|
-
}
|
|
11721
|
-
},
|
|
11722
|
-
showPostMatchData: {
|
|
11723
|
-
handler(e, t) {
|
|
11724
|
-
e !== t && this.fillXgPlays();
|
|
11714
|
+
e && (console.log("Cambio el getGameForAnalysis "), this.fillXgPlays());
|
|
11725
11715
|
}
|
|
11726
11716
|
}
|
|
11727
11717
|
},
|
|
@@ -11736,22 +11726,22 @@ const MR = {
|
|
|
11736
11726
|
return this.visitingTeam.team_id;
|
|
11737
11727
|
},
|
|
11738
11728
|
fillXgPlays() {
|
|
11739
|
-
this.
|
|
11740
|
-
seasonId: this.gameId,
|
|
11741
|
-
localTeamId: this.homeTeam.team_id,
|
|
11742
|
-
visitingTeamId: this.visitingTeam.team_id,
|
|
11743
|
-
postMatch: this.showPostMatchData
|
|
11744
|
-
}) : this.getXgPlays({
|
|
11729
|
+
this.getGameForAnalysis.game_status != 1 ? this.getXgPlays({
|
|
11745
11730
|
seasonId: this.usePastSeasonId ? this.pastSeasonId : this.getSeasonId,
|
|
11746
11731
|
localTeamId: this.homeTeam.team_id,
|
|
11747
11732
|
visitingTeamId: this.visitingTeam.team_id
|
|
11733
|
+
}) : this.getXgPlays({
|
|
11734
|
+
seasonId: this.gameId,
|
|
11735
|
+
localTeamId: this.homeTeam.team_id,
|
|
11736
|
+
visitingTeamId: this.visitingTeam.team_id,
|
|
11737
|
+
postMatch: !0
|
|
11748
11738
|
});
|
|
11749
11739
|
}
|
|
11750
11740
|
},
|
|
11751
11741
|
beforeMount() {
|
|
11752
11742
|
this.setTeamSelected("Visiting"), this.fillXgPlays();
|
|
11753
11743
|
}
|
|
11754
|
-
}, Mv = (e) => (we("data-v-
|
|
11744
|
+
}, Mv = (e) => (we("data-v-860437b0"), e = e(), Ce(), e), HR = { class: "xg-container" }, zR = { class: "xg-container__info" }, UR = /* @__PURE__ */ Mv(() => /* @__PURE__ */ r("div", { class: "title" }, "Goles esperados (xG)", -1)), VR = { class: "table" }, GR = { class: "table__row" }, WR = { class: "table__row__title" }, qR = { class: "table__row__value" }, JR = ["src"], XR = { class: "table__row" }, ZR = { class: "table__row__title" }, YR = { class: "table__row__value" }, KR = { class: "table__row" }, QR = { class: "table__row__title" }, eP = { class: "table__row__value" }, tP = /* @__PURE__ */ Mv(() => /* @__PURE__ */ r("div", { class: "table-description" }, [
|
|
11755
11745
|
/* @__PURE__ */ r("span", null, "xG:"),
|
|
11756
11746
|
/* @__PURE__ */ M(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")
|
|
11757
11747
|
], -1)), aP = { class: "xg-container__field" };
|
|
@@ -11793,7 +11783,7 @@ function sP(e, t, a, s, i, o) {
|
|
|
11793
11783
|
])
|
|
11794
11784
|
]);
|
|
11795
11785
|
}
|
|
11796
|
-
const iP = /* @__PURE__ */ st(MR, [["render", sP], ["__scopeId", "data-v-
|
|
11786
|
+
const iP = /* @__PURE__ */ st(MR, [["render", sP], ["__scopeId", "data-v-860437b0"]]);
|
|
11797
11787
|
const oP = {
|
|
11798
11788
|
name: "SoccerChalkboard",
|
|
11799
11789
|
components: {
|
|
@@ -32993,7 +32983,7 @@ const Nne = { class: "datagame-container" }, Mne = {
|
|
|
32993
32983
|
t("openmedia", o);
|
|
32994
32984
|
}
|
|
32995
32985
|
return (o, n) => (f(), _("div", Nne, [
|
|
32996
|
-
e.game.
|
|
32986
|
+
e.game.game_status == 4 ? (f(), _(R, { key: 0 }, [
|
|
32997
32987
|
Object.keys(e.game).length > 0 ? (f(), V(_e(pf), {
|
|
32998
32988
|
onOpenmedia: i,
|
|
32999
32989
|
key: s.value,
|
|
@@ -33010,7 +33000,7 @@ const Nne = { class: "datagame-container" }, Mne = {
|
|
|
33010
33000
|
], 64))
|
|
33011
33001
|
]));
|
|
33012
33002
|
}
|
|
33013
|
-
}, Hne = /* @__PURE__ */ st(Mne, [["__scopeId", "data-v-
|
|
33003
|
+
}, Hne = /* @__PURE__ */ st(Mne, [["__scopeId", "data-v-ce673ad1"]]);
|
|
33014
33004
|
function jw(e, t) {
|
|
33015
33005
|
return function() {
|
|
33016
33006
|
return e.apply(t, arguments);
|
|
@@ -43579,7 +43569,7 @@ const i1e = { class: "datagame-container" }, o1e = {
|
|
|
43579
43569
|
t("openmedia", o);
|
|
43580
43570
|
}
|
|
43581
43571
|
return (o, n) => (f(), _("div", i1e, [
|
|
43582
|
-
e.game.
|
|
43572
|
+
e.game.game_status == 4 ? (f(), _(R, { key: 0 }, [
|
|
43583
43573
|
Object.keys(e.game).length > 0 ? (f(), V(_e(B_), {
|
|
43584
43574
|
onOpenmedia: i,
|
|
43585
43575
|
key: s.value,
|
|
@@ -43596,7 +43586,7 @@ const i1e = { class: "datagame-container" }, o1e = {
|
|
|
43596
43586
|
], 64))
|
|
43597
43587
|
]));
|
|
43598
43588
|
}
|
|
43599
|
-
}, n1e = /* @__PURE__ */ st(o1e, [["__scopeId", "data-v-
|
|
43589
|
+
}, n1e = /* @__PURE__ */ st(o1e, [["__scopeId", "data-v-fe6f377f"]]), r1e = (e, t) => {
|
|
43600
43590
|
const a = e.__vccOpts || e;
|
|
43601
43591
|
for (const [s, i] of t)
|
|
43602
43592
|
a[s] = i;
|
|
@@ -69554,7 +69544,7 @@ const _De = { class: "datagame-container" }, bDe = {
|
|
|
69554
69544
|
t("changeToTab", n);
|
|
69555
69545
|
}
|
|
69556
69546
|
return (n, c) => (f(), _("div", _De, [
|
|
69557
|
-
e.game.
|
|
69547
|
+
e.game.game_status == 4 ? (f(), _(R, { key: 0 }, [
|
|
69558
69548
|
Object.keys(e.game).length > 0 ? (f(), V(_e(J5), {
|
|
69559
69549
|
onOpenmedia: i,
|
|
69560
69550
|
onChangeToTab: o,
|
|
@@ -69575,7 +69565,7 @@ const _De = { class: "datagame-container" }, bDe = {
|
|
|
69575
69565
|
], 64))
|
|
69576
69566
|
]));
|
|
69577
69567
|
}
|
|
69578
|
-
}, vDe = /* @__PURE__ */ st(bDe, [["__scopeId", "data-v-
|
|
69568
|
+
}, vDe = /* @__PURE__ */ st(bDe, [["__scopeId", "data-v-e61b9884"]]), Un = (e, t) => {
|
|
69579
69569
|
const a = e.__vccOpts || e;
|
|
69580
69570
|
for (const [s, i] of t)
|
|
69581
69571
|
a[s] = i;
|
|
@@ -73228,7 +73218,8 @@ const vze = ot({
|
|
|
73228
73218
|
gameId: o.value.game_id,
|
|
73229
73219
|
id: o.value.game_id,
|
|
73230
73220
|
seasonId: o.value.season_id,
|
|
73231
|
-
status: o.value.game_status
|
|
73221
|
+
status: o.value.game_status,
|
|
73222
|
+
game_status: o.value.game_status == 0 ? 4 : o.value.game_status,
|
|
73232
73223
|
dateTimeUTC: o.value.date_time_utc,
|
|
73233
73224
|
homeTeam: o.value.home_team,
|
|
73234
73225
|
awayTeam: o.value.visiting_team
|
|
@@ -73322,7 +73313,7 @@ const vze = ot({
|
|
|
73322
73313
|
])
|
|
73323
73314
|
], 512));
|
|
73324
73315
|
}
|
|
73325
|
-
}), PUe = /* @__PURE__ */ st(wze, [["__scopeId", "data-v-
|
|
73316
|
+
}), PUe = /* @__PURE__ */ st(wze, [["__scopeId", "data-v-7bbaaf14"]]);
|
|
73326
73317
|
async function Gt({ url: e, options: t = {}, retries: a = 3 }) {
|
|
73327
73318
|
return await Ml.get(e, t).then((s) => s).catch((s) => a > 0 ? Gt({ url: e, options: t, retries: a - 1 }) : s);
|
|
73328
73319
|
}
|
|
@@ -75098,6 +75089,7 @@ const Uze = [
|
|
|
75098
75089
|
getHomeResultGame: (e) => e.homeResultGame,
|
|
75099
75090
|
getAwayResultGame: (e) => e.awayResultGame,
|
|
75100
75091
|
getSeasonId: (e) => e.seasonId,
|
|
75092
|
+
getGameForAnalysis: (e) => e.gameForAnalysis,
|
|
75101
75093
|
isLive: (e) => (e.isLive = !!e.gameForAnalysis.is_live, e.isLive),
|
|
75102
75094
|
showLive: (e) => e.gameForAnalysis.game_status === 4 && e.gameForAnalysis.is_live,
|
|
75103
75095
|
menuOptionActive: (e) => e.menuOptionActive,
|
|
@@ -75628,7 +75620,7 @@ const Uze = [
|
|
|
75628
75620
|
const h = await t("getCurrentSeasonGamesLast");
|
|
75629
75621
|
a("leagueGeneral/updateCurrentSeasonGames", h, { root: !0 });
|
|
75630
75622
|
}
|
|
75631
|
-
(n || e.currentSeasonTeams.length === 0 || !e.currentSeasonTeams.find((h) => l.home_team === h.team_id)) && p.push(t("getCurrentSeasonTeams")), a("setHomeResultGame", l.score[0]), a("setAwayResultGame", l.score[1]), i ? l.game_status !== 1 ? (await t("fillStatisticData", { gameId: s, gameinfo: l, promises: p, defaultFilter: c }), a("updateShowPostMatchData", !1)) : (a("updateStats", []), a("updateShowPostMatchData", !0), p.push(
|
|
75623
|
+
(n || e.currentSeasonTeams.length === 0 || !e.currentSeasonTeams.find((h) => l.home_team === h.team_id)) && p.push(t("getCurrentSeasonTeams")), a("setHomeResultGame", l.score[0]), a("setAwayResultGame", l.score[1]), i ? l.game_status !== 1 ? (console.log("<---- GAME INFO --->"), console.log(l), await t("fillStatisticData", { gameId: s, gameinfo: l, promises: p, defaultFilter: c }), a("updateShowPostMatchData", !1)) : (a("updateStats", []), a("updateShowPostMatchData", !0), p.push(
|
|
75632
75624
|
t("fillStatisticDataPostMatch", {
|
|
75633
75625
|
game: s,
|
|
75634
75626
|
homeTeam: l.home_team,
|