@golstats/gsc-game-data 1.0.80 → 1.0.82
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 +15 -16
- package/dist/gsc-game-data.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/gsc-game-data.js
CHANGED
|
@@ -10639,7 +10639,7 @@ const EP = {
|
|
|
10639
10639
|
setUpResizeObserver() {
|
|
10640
10640
|
if (window.ResizeObserver)
|
|
10641
10641
|
Cf = new ResizeObserver(() => {
|
|
10642
|
-
this.gamesContainerWidth = this.$refs.gamesContainer.clientWidth, this.
|
|
10642
|
+
this.gamesContainerWidth = this.$refs.gamesContainer.clientWidth, this.movil = this.gamesContainerWidth < 680;
|
|
10643
10643
|
}), Cf.observe(this.$refs.gamesContainer);
|
|
10644
10644
|
else
|
|
10645
10645
|
throw new Error("Resize observer not supported!");
|
|
@@ -75424,7 +75424,7 @@ const DUe = "/icn-play.svg", LUe = "/icn-tiros-de-esquina.svg", jUe = "/icn-tiro
|
|
|
75424
75424
|
});
|
|
75425
75425
|
}
|
|
75426
75426
|
}
|
|
75427
|
-
}, eVe = (e) => (ke("data-v-
|
|
75427
|
+
}, eVe = (e) => (ke("data-v-c284b7dc"), e = e(), $e(), e), tVe = { class: "time-line-event__details" }, aVe = {
|
|
75428
75428
|
width: "127",
|
|
75429
75429
|
preload: "metadata",
|
|
75430
75430
|
style: { "border-radius": "8px" }
|
|
@@ -75583,10 +75583,11 @@ function RVe(e, t, a, s, i, o) {
|
|
|
75583
75583
|
class: h(["time-line-event__details__info__header__event-name", o.nameClasses]),
|
|
75584
75584
|
onClick: t[1] || (t[1] = (n) => o.thumbnailClick(a.gameEvent.video_link, a.gameEvent.event_type_name))
|
|
75585
75585
|
}, [
|
|
75586
|
-
|
|
75586
|
+
a.gameEvent.video_link !== "-" ? (g(), _("img", {
|
|
75587
|
+
key: 0,
|
|
75587
75588
|
src: DUe,
|
|
75588
75589
|
class: h(`time-line-event__details__info__header__event-play ${[1, 2].includes(a.gameEvent.event_type_id) ? `time-line-event__details__info__header__event-play__${a.gameEvent.event_type_name}` : a.gameEvent.video_link !== "-" ? "time-line-event__details__info__header__event-play__normal-video" : ""}`)
|
|
75589
|
-
}, null, 2),
|
|
75590
|
+
}, null, 2)) : S("", !0),
|
|
75590
75591
|
H(" " + k(a.gameEvent.category_id ? a.gameEvent.event_type_id === 5 ? a.gameEvent.category_name : a.gameEvent.event_type_name === "Gol" ? a.gameEvent.event_type_name + " de " + a.gameEvent.team_name : a.gameEvent.event_type_name : a.gameEvent.comments), 1)
|
|
75591
75592
|
], 2)
|
|
75592
75593
|
], 2),
|
|
@@ -75609,7 +75610,7 @@ function RVe(e, t, a, s, i, o) {
|
|
|
75609
75610
|
], 2)
|
|
75610
75611
|
], 6);
|
|
75611
75612
|
}
|
|
75612
|
-
const BVe = /* @__PURE__ */ Cr(QUe, [["render", RVe], ["__scopeId", "data-v-
|
|
75613
|
+
const BVe = /* @__PURE__ */ Cr(QUe, [["render", RVe], ["__scopeId", "data-v-c284b7dc"]]), DVe = {
|
|
75613
75614
|
"1-1": "gol",
|
|
75614
75615
|
"1-2": "gol",
|
|
75615
75616
|
"1-3": "gol",
|
|
@@ -75788,7 +75789,10 @@ const jVe = {
|
|
|
75788
75789
|
a && (a.style.height = `${i}px`), s && (s.style.height = `${i}px`);
|
|
75789
75790
|
},
|
|
75790
75791
|
sortGameEvents() {
|
|
75791
|
-
this.gameEvents.sort((e, t) => this.getMatchLapseMinutes(e.match_lapse) + Number(e.minute) - (this.getMatchLapseMinutes(t.match_lapse) + Number(t.minute))), this.
|
|
75792
|
+
this.gameEvents.sort((e, t) => this.getMatchLapseMinutes(e.match_lapse) + Number(e.minute) - (this.getMatchLapseMinutes(t.match_lapse) + Number(t.minute))), this.gameEventsByPeriod = {
|
|
75793
|
+
firstHalf: [],
|
|
75794
|
+
secondHalf: []
|
|
75795
|
+
}, this.gameEvents.forEach((e) => {
|
|
75792
75796
|
this.gameEventsByPeriod[e.match_lapse === 1 ? "firstHalf" : "secondHalf"].push(
|
|
75793
75797
|
e
|
|
75794
75798
|
);
|
|
@@ -75864,7 +75868,7 @@ const jVe = {
|
|
|
75864
75868
|
this.channelName === e && this.deleteGameEventFromChannel(t);
|
|
75865
75869
|
}
|
|
75866
75870
|
}
|
|
75867
|
-
}, lS = (e) => (ke("data-v-
|
|
75871
|
+
}, lS = (e) => (ke("data-v-f6284340"), e = e(), $e(), e), NVe = {
|
|
75868
75872
|
ref: "timeLine",
|
|
75869
75873
|
class: "time-line"
|
|
75870
75874
|
}, MVe = { class: "time-line__header" }, HVe = { class: "time-line__header__dot" }, zVe = { class: "time-line__header__dot__home-team team-logo" }, UVe = ["src"], VVe = { class: "time-line__header__dot__away-team team-logo" }, GVe = ["src"], WVe = { class: "time-line__game-events" }, qVe = {
|
|
@@ -75958,7 +75962,7 @@ function eGe(e, t, a, s, i, o) {
|
|
|
75958
75962
|
}, 8, ["data"])
|
|
75959
75963
|
], 64);
|
|
75960
75964
|
}
|
|
75961
|
-
const tGe = /* @__PURE__ */ Cr(jVe, [["render", eGe], ["__scopeId", "data-v-
|
|
75965
|
+
const tGe = /* @__PURE__ */ Cr(jVe, [["render", eGe], ["__scopeId", "data-v-f6284340"]]), aGe = { class: "game-time-line__options" }, sGe = { class: "game-time-line__timeline" }, iGe = {
|
|
75962
75966
|
__name: "GSC-GameTimeLine",
|
|
75963
75967
|
props: {
|
|
75964
75968
|
game: {
|
|
@@ -76716,14 +76720,9 @@ async function Yt({ url: e, options: t = {}, retries: a = 3 }) {
|
|
|
76716
76720
|
}
|
|
76717
76721
|
async function uS({ seasonId: e }, t = !0) {
|
|
76718
76722
|
try {
|
|
76719
|
-
|
|
76720
|
-
|
|
76721
|
-
|
|
76722
|
-
t && (a.url = `https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`, a.retries = 1);
|
|
76723
|
-
const {
|
|
76724
|
-
data: { data: s }
|
|
76725
|
-
} = await Yt(a);
|
|
76726
|
-
return s;
|
|
76723
|
+
return (await (await fetch(
|
|
76724
|
+
`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`
|
|
76725
|
+
)).json()).data;
|
|
76727
76726
|
} catch (a) {
|
|
76728
76727
|
if (t)
|
|
76729
76728
|
return uS({ seasonId: e }, !1);
|