@golstats/gsc-game-data 1.0.107 → 1.0.109
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/{FilterConditions-dc6b25de-CdawgDTp-16e855ea.js → FilterConditions-dc6b25de-CdawgDTp-e70a9030.js} +1 -1
- package/dist/{FilterField-37ad154d-PFd8HpMJ-7c61f257.js → FilterField-37ad154d-PFd8HpMJ-88f42917.js} +1 -1
- package/dist/{FilterSubcategories-a7b96423-Bs67-HFD-ab9c9584.js → FilterSubcategories-a7b96423-Bs67-HFD-1fcf7bf8.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/{index-430c2eaa.js → index-11afa970.js} +79 -78
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -84994,11 +84994,11 @@ const z1e = { class: "dropdown" }, N1e = { class: "selected-item" }, j1e = {
|
|
|
84994
84994
|
},
|
|
84995
84995
|
setup(t) {
|
|
84996
84996
|
const e = t, a = I3(
|
|
84997
|
-
() => import("./FilterSubcategories-a7b96423-Bs67-HFD-
|
|
84997
|
+
() => import("./FilterSubcategories-a7b96423-Bs67-HFD-1fcf7bf8.js")
|
|
84998
84998
|
), c = I3(
|
|
84999
|
-
() => import("./FilterConditions-dc6b25de-CdawgDTp-
|
|
84999
|
+
() => import("./FilterConditions-dc6b25de-CdawgDTp-e70a9030.js")
|
|
85000
85000
|
), f = I3(
|
|
85001
|
-
() => import("./FilterField-37ad154d-PFd8HpMJ-
|
|
85001
|
+
() => import("./FilterField-37ad154d-PFd8HpMJ-88f42917.js")
|
|
85002
85002
|
), r = [
|
|
85003
85003
|
{
|
|
85004
85004
|
name: "Sub categorías",
|
|
@@ -192993,14 +192993,6 @@ const IIe = io({
|
|
|
192993
192993
|
type: Boolean,
|
|
192994
192994
|
default: !1
|
|
192995
192995
|
},
|
|
192996
|
-
clientPrivilegesTeamId: {
|
|
192997
|
-
type: Number,
|
|
192998
|
-
default: 0
|
|
192999
|
-
},
|
|
193000
|
-
onlyGamesTeamId: {
|
|
193001
|
-
type: Number,
|
|
193002
|
-
default: 0
|
|
193003
|
-
},
|
|
193004
192996
|
clientPrivilegesBySeasons: {
|
|
193005
192997
|
type: Object,
|
|
193006
192998
|
default: () => null
|
|
@@ -193059,27 +193051,36 @@ const IIe = io({
|
|
|
193059
193051
|
const b = Ve(null), l = Ve(0), s = Ve(i.value[0]), u = Ve([]);
|
|
193060
193052
|
let d = Ve("");
|
|
193061
193053
|
const h = Va(() => {
|
|
193062
|
-
const
|
|
193063
|
-
return r.value && r.value.id && (
|
|
193054
|
+
const R = [];
|
|
193055
|
+
return r.value && r.value.id && (R.push({
|
|
193064
193056
|
id: r.value.id,
|
|
193065
193057
|
name: r.value.name,
|
|
193066
193058
|
type: r.value.type
|
|
193067
|
-
}), r.value.related_seasons && r.value.related_seasons.forEach((
|
|
193068
|
-
|
|
193069
|
-
id:
|
|
193070
|
-
type:
|
|
193059
|
+
}), r.value.related_seasons && r.value.related_seasons.forEach((D) => {
|
|
193060
|
+
R.push({
|
|
193061
|
+
id: D.id,
|
|
193062
|
+
type: D.type
|
|
193071
193063
|
});
|
|
193072
|
-
})),
|
|
193064
|
+
})), R;
|
|
193065
|
+
}), g = Va(() => {
|
|
193066
|
+
if (a.clientPrivilegesBySeasons) {
|
|
193067
|
+
const R = a.clientPrivilegesBySeasons.seasonsAndPrivileges.get(
|
|
193068
|
+
r.value.id
|
|
193069
|
+
);
|
|
193070
|
+
if (R)
|
|
193071
|
+
return R.teamId;
|
|
193072
|
+
}
|
|
193073
|
+
return 0;
|
|
193073
193074
|
});
|
|
193074
|
-
function
|
|
193075
|
-
m = new ResizeObserver((
|
|
193076
|
-
for (const
|
|
193077
|
-
l.value =
|
|
193075
|
+
function _() {
|
|
193076
|
+
m = new ResizeObserver((R) => {
|
|
193077
|
+
for (const D of R)
|
|
193078
|
+
l.value = D.contentRect.width;
|
|
193078
193079
|
}), m.observe(b.value);
|
|
193079
193080
|
}
|
|
193080
|
-
const
|
|
193081
|
-
let
|
|
193082
|
-
return o.value && o.value.game_id && (
|
|
193081
|
+
const v = Va(() => {
|
|
193082
|
+
let R = {};
|
|
193083
|
+
return o.value && o.value.game_id && (R = {
|
|
193083
193084
|
gameId: o.value.game_id,
|
|
193084
193085
|
id: o.value.game_id,
|
|
193085
193086
|
seasonId: o.value.season_id,
|
|
@@ -193089,7 +193090,7 @@ const IIe = io({
|
|
|
193089
193090
|
homeTeam: o.value.home_team,
|
|
193090
193091
|
awayTeam: o.value.visiting_team,
|
|
193091
193092
|
is_live: o.value.is_live
|
|
193092
|
-
}),
|
|
193093
|
+
}), R;
|
|
193093
193094
|
});
|
|
193094
193095
|
dr(
|
|
193095
193096
|
() => c.state.nextGeneral.gameForAnalysis,
|
|
@@ -193098,74 +193099,74 @@ const IIe = io({
|
|
|
193098
193099
|
},
|
|
193099
193100
|
{ deep: !0, immediate: !0 }
|
|
193100
193101
|
);
|
|
193101
|
-
function
|
|
193102
|
-
f.value =
|
|
193102
|
+
function x(R) {
|
|
193103
|
+
f.value = R, n.value = R.is_captured !== 0, f.value.id !== R.id && (f.value = R);
|
|
193103
193104
|
}
|
|
193104
|
-
function
|
|
193105
|
-
e("openmedia",
|
|
193105
|
+
function C(R) {
|
|
193106
|
+
M.value && e("openmedia", R);
|
|
193106
193107
|
}
|
|
193107
|
-
function
|
|
193108
|
-
e("onOpenProfile",
|
|
193108
|
+
function w(R) {
|
|
193109
|
+
e("onOpenProfile", R);
|
|
193109
193110
|
}
|
|
193110
|
-
function
|
|
193111
|
-
|
|
193111
|
+
function I(R) {
|
|
193112
|
+
T(R), R == "Estadísticas" && (d.value = "Comparativa");
|
|
193112
193113
|
}
|
|
193113
|
-
function
|
|
193114
|
+
function k() {
|
|
193114
193115
|
d.value = "";
|
|
193115
193116
|
}
|
|
193116
|
-
function
|
|
193117
|
-
r.value.id !==
|
|
193117
|
+
function S(R) {
|
|
193118
|
+
r.value.id !== R.id && (r.value = R, e("change-season-id", R.id));
|
|
193118
193119
|
}
|
|
193119
|
-
const
|
|
193120
|
+
const A = Va(() => i.value.reduce((R, D) => (!M.value && D.id === 2 || (n.value || D.id !== 5 && D.id !== 6) && R.push(D.name), R), [])), M = Va(() => {
|
|
193120
193121
|
if (a.canPlayVideos && a.clientPrivilegesBySeasons) {
|
|
193121
193122
|
if (r.value && o.value) {
|
|
193122
|
-
const
|
|
193123
|
+
const R = a.clientPrivilegesBySeasons.seasonsAndPrivileges.get(
|
|
193123
193124
|
r.value.id
|
|
193124
193125
|
);
|
|
193125
|
-
if (
|
|
193126
|
-
return
|
|
193127
|
-
|
|
193126
|
+
if (R)
|
|
193127
|
+
return P(R.playingAs), o.value.game_status === 1 ? R.playingAs.has(o.value.playingAs) : E.value.filter((z) => R.playingAs.has(z.playingAs)).length > 0;
|
|
193128
|
+
P(/* @__PURE__ */ new Set());
|
|
193128
193129
|
}
|
|
193129
193130
|
return !1;
|
|
193130
193131
|
} else
|
|
193131
|
-
a.canPlayVideos &&
|
|
193132
|
+
a.canPlayVideos && P(/* @__PURE__ */ new Set([1, 2]));
|
|
193132
193133
|
return a.canPlayVideos;
|
|
193133
|
-
}),
|
|
193134
|
+
}), E = Va(() => {
|
|
193134
193135
|
if (a.clientPrivilegesBySeasons) {
|
|
193135
193136
|
if (r.value) {
|
|
193136
|
-
const
|
|
193137
|
+
const R = a.clientPrivilegesBySeasons.seasonsAndPrivileges.get(
|
|
193137
193138
|
r.value.id
|
|
193138
193139
|
);
|
|
193139
|
-
if (
|
|
193140
|
-
return u.value.filter((
|
|
193140
|
+
if (R)
|
|
193141
|
+
return u.value.filter((D) => D.game_status === 1 && R.playingAs.has(D.playingAs));
|
|
193141
193142
|
}
|
|
193142
193143
|
return [];
|
|
193143
193144
|
}
|
|
193144
193145
|
return [];
|
|
193145
193146
|
});
|
|
193146
|
-
function
|
|
193147
|
-
y.value =
|
|
193147
|
+
function P(R) {
|
|
193148
|
+
y.value = R;
|
|
193148
193149
|
}
|
|
193149
|
-
function
|
|
193150
|
-
s.value = i.value.find((
|
|
193150
|
+
function T(R) {
|
|
193151
|
+
s.value = i.value.find((D) => D.name === R) || i.value[0];
|
|
193151
193152
|
}
|
|
193152
193153
|
Zn(() => {
|
|
193153
|
-
|
|
193154
|
-
a.isSynchronization &&
|
|
193154
|
+
_(), ju(() => {
|
|
193155
|
+
a.isSynchronization && T("Tactica Fija");
|
|
193155
193156
|
});
|
|
193156
193157
|
}), i2(() => {
|
|
193157
193158
|
m && m.disconnect();
|
|
193158
193159
|
});
|
|
193159
|
-
function
|
|
193160
|
-
o.value =
|
|
193160
|
+
function L(R) {
|
|
193161
|
+
R.playingAs || (R.playingAs = g.value ? R.home_team.team_id === g.value ? 1 : 2 : 0), o.value = R;
|
|
193161
193162
|
}
|
|
193162
|
-
function
|
|
193163
|
-
u.value =
|
|
193164
|
-
const
|
|
193165
|
-
return
|
|
193163
|
+
function O(R) {
|
|
193164
|
+
u.value = R.map((D) => {
|
|
193165
|
+
const z = { ...D };
|
|
193166
|
+
return g.value && (z.playingAs = z.home_team.team_id === g.value ? 1 : 2), z;
|
|
193166
193167
|
});
|
|
193167
193168
|
}
|
|
193168
|
-
return (
|
|
193169
|
+
return (R, D) => (vt(), St("div", {
|
|
193169
193170
|
class: "game-data",
|
|
193170
193171
|
ref_key: "gamedata",
|
|
193171
193172
|
ref: b
|
|
@@ -193174,12 +193175,12 @@ const IIe = io({
|
|
|
193174
193175
|
Jr(N("div", CIe, [
|
|
193175
193176
|
fa(tr(xH), {
|
|
193176
193177
|
"current-season-id": t.currentSeasonId,
|
|
193177
|
-
onInput:
|
|
193178
|
+
onInput: x
|
|
193178
193179
|
}, null, 8, ["current-season-id"]),
|
|
193179
193180
|
fa(tr(HH), {
|
|
193180
193181
|
"current-season-id": t.currentSeasonId,
|
|
193181
193182
|
seasons: f.value.seasons,
|
|
193182
|
-
onInput:
|
|
193183
|
+
onInput: S
|
|
193183
193184
|
}, null, 8, ["current-season-id", "seasons"])
|
|
193184
193185
|
], 512), [
|
|
193185
193186
|
[en, t.areTournamentAndSeasonSelectsVisible]
|
|
@@ -193194,10 +193195,10 @@ const IIe = io({
|
|
|
193194
193195
|
"default-game-id": t.defaultGameId,
|
|
193195
193196
|
"sort-calendar": t.sortCalendar,
|
|
193196
193197
|
"is-team-game-per-page": t.isTeamGamePerPage,
|
|
193197
|
-
"client-privileges-team-id":
|
|
193198
|
-
"only-games-team-id":
|
|
193199
|
-
onChangeGameCarousel:
|
|
193200
|
-
onChangeGamesByClientPrivileges:
|
|
193198
|
+
"client-privileges-team-id": g.value,
|
|
193199
|
+
"only-games-team-id": g.value,
|
|
193200
|
+
onChangeGameCarousel: L,
|
|
193201
|
+
onChangeGamesByClientPrivileges: O
|
|
193201
193202
|
}, null, 8, ["token", "seasons", "default-game-id", "sort-calendar", "is-team-game-per-page", "client-privileges-team-id", "only-games-team-id"])
|
|
193202
193203
|
])
|
|
193203
193204
|
]),
|
|
@@ -193206,7 +193207,7 @@ const IIe = io({
|
|
|
193206
193207
|
N("div", AIe, [
|
|
193207
193208
|
fa(tr(Ej), {
|
|
193208
193209
|
type: 2,
|
|
193209
|
-
buttons:
|
|
193210
|
+
buttons: A.value,
|
|
193210
193211
|
"font-family": "Poppins-Regular",
|
|
193211
193212
|
"font-size": "16px",
|
|
193212
193213
|
width: l.value < 400 || l.value < 700 ? "max-content" : l.value < 840 || l.value < 1050 ? "155px" : "165px",
|
|
@@ -193214,32 +193215,32 @@ const IIe = io({
|
|
|
193214
193215
|
borderWidth: "1px",
|
|
193215
193216
|
arrow: !1,
|
|
193216
193217
|
height: "30px",
|
|
193217
|
-
onInput:
|
|
193218
|
+
onInput: T
|
|
193218
193219
|
}, null, 8, ["buttons", "width", "selected-option"])
|
|
193219
193220
|
])
|
|
193220
193221
|
]),
|
|
193221
|
-
|
|
193222
|
+
v.value && v.value.gameId ? (vt(), ja(a2(s.value.componentName), {
|
|
193222
193223
|
key: 0,
|
|
193223
|
-
game:
|
|
193224
|
+
game: v.value,
|
|
193224
193225
|
subsection: tr(d),
|
|
193225
193226
|
seasonSelected: r.value,
|
|
193226
193227
|
showLineups: n.value,
|
|
193227
193228
|
socket: t.socket,
|
|
193228
193229
|
"is-tactic-visible": !!r.value.show_tactic,
|
|
193229
193230
|
"is-synchronization": t.isSynchronization,
|
|
193230
|
-
"can-play-videos":
|
|
193231
|
+
"can-play-videos": M.value,
|
|
193231
193232
|
"video-privileges-playing-as": y.value,
|
|
193232
|
-
"client-privileges-team-id":
|
|
193233
|
-
onResetSubsection:
|
|
193234
|
-
onOpenmedia:
|
|
193235
|
-
onOnOpenProfile:
|
|
193236
|
-
onChangeToTab:
|
|
193237
|
-
onOpenMediaPlayer:
|
|
193233
|
+
"client-privileges-team-id": g.value,
|
|
193234
|
+
onResetSubsection: k,
|
|
193235
|
+
onOpenmedia: C,
|
|
193236
|
+
onOnOpenProfile: w,
|
|
193237
|
+
onChangeToTab: I,
|
|
193238
|
+
onOpenMediaPlayer: C
|
|
193238
193239
|
}, null, 40, ["game", "subsection", "seasonSelected", "showLineups", "socket", "is-tactic-visible", "is-synchronization", "can-play-videos", "video-privileges-playing-as", "client-privileges-team-id"])) : ee("", !0)
|
|
193239
193240
|
])
|
|
193240
193241
|
], 512));
|
|
193241
193242
|
}
|
|
193242
|
-
}), NOe = /* @__PURE__ */ eo(MIe, [["__scopeId", "data-v-
|
|
193243
|
+
}), NOe = /* @__PURE__ */ eo(MIe, [["__scopeId", "data-v-e82afe52"]]);
|
|
193243
193244
|
async function zl({ url: t, options: e = {}, retries: a = 3 }) {
|
|
193244
193245
|
return await T2.get(t, e).then((c) => c).catch((c) => a > 0 ? zl({ url: t, options: e, retries: a - 1 }) : c);
|
|
193245
193246
|
}
|