@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.
@@ -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-ab9c9584.js")
84997
+ () => import("./FilterSubcategories-a7b96423-Bs67-HFD-1fcf7bf8.js")
84998
84998
  ), c = I3(
84999
- () => import("./FilterConditions-dc6b25de-CdawgDTp-16e855ea.js")
84999
+ () => import("./FilterConditions-dc6b25de-CdawgDTp-e70a9030.js")
85000
85000
  ), f = I3(
85001
- () => import("./FilterField-37ad154d-PFd8HpMJ-7c61f257.js")
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 O = [];
193063
- return r.value && r.value.id && (O.push({
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((R) => {
193068
- O.push({
193069
- id: R.id,
193070
- type: R.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
- })), O;
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 g() {
193075
- m = new ResizeObserver((O) => {
193076
- for (const R of O)
193077
- l.value = R.contentRect.width;
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 _ = Va(() => {
193081
- let O = {};
193082
- return o.value && o.value.game_id && (O = {
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
- }), O;
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 v(O) {
193102
- f.value = O, n.value = O.is_captured !== 0, f.value.id !== O.id && (f.value = O);
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 x(O) {
193105
- e("openmedia", O);
193105
+ function C(R) {
193106
+ M.value && e("openmedia", R);
193106
193107
  }
193107
- function C(O) {
193108
- e("onOpenProfile", O);
193108
+ function w(R) {
193109
+ e("onOpenProfile", R);
193109
193110
  }
193110
- function w(O) {
193111
- P(O), O == "Estadísticas" && (d.value = "Comparativa");
193111
+ function I(R) {
193112
+ T(R), R == "Estadísticas" && (d.value = "Comparativa");
193112
193113
  }
193113
- function I() {
193114
+ function k() {
193114
193115
  d.value = "";
193115
193116
  }
193116
- function k(O) {
193117
- r.value.id !== O.id && (r.value = O, e("change-season-id", O.id));
193117
+ function S(R) {
193118
+ r.value.id !== R.id && (r.value = R, e("change-season-id", R.id));
193118
193119
  }
193119
- const S = Va(() => i.value.reduce((O, R) => (!A.value && R.id === 2 || (n.value || R.id !== 5 && R.id !== 6) && O.push(R.name), O), [])), A = Va(() => {
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 O = a.clientPrivilegesBySeasons.seasonsAndPrivileges.get(
193123
+ const R = a.clientPrivilegesBySeasons.seasonsAndPrivileges.get(
193123
193124
  r.value.id
193124
193125
  );
193125
- if (O)
193126
- return E(O.playingAs), o.value.game_status === 1 ? O.playingAs.has(o.value.playingAs) : M.value.filter((D) => O.playingAs.has(D.playingAs)).length > 0;
193127
- E(/* @__PURE__ */ new Set());
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 && E(/* @__PURE__ */ new Set([1, 2]));
193132
+ a.canPlayVideos && P(/* @__PURE__ */ new Set([1, 2]));
193132
193133
  return a.canPlayVideos;
193133
- }), M = Va(() => {
193134
+ }), E = Va(() => {
193134
193135
  if (a.clientPrivilegesBySeasons) {
193135
193136
  if (r.value) {
193136
- const O = a.clientPrivilegesBySeasons.seasonsAndPrivileges.get(
193137
+ const R = a.clientPrivilegesBySeasons.seasonsAndPrivileges.get(
193137
193138
  r.value.id
193138
193139
  );
193139
- if (O)
193140
- return u.value.filter((R) => R.game_status === 1 && O.playingAs.has(R.playingAs));
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 E(O) {
193147
- y.value = O;
193147
+ function P(R) {
193148
+ y.value = R;
193148
193149
  }
193149
- function P(O) {
193150
- s.value = i.value.find((R) => R.name === O) || i.value[0];
193150
+ function T(R) {
193151
+ s.value = i.value.find((D) => D.name === R) || i.value[0];
193151
193152
  }
193152
193153
  Zn(() => {
193153
- g(), ju(() => {
193154
- a.isSynchronization && P("Tactica Fija");
193154
+ _(), ju(() => {
193155
+ a.isSynchronization && T("Tactica Fija");
193155
193156
  });
193156
193157
  }), i2(() => {
193157
193158
  m && m.disconnect();
193158
193159
  });
193159
- function T(O) {
193160
- o.value = O;
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 L(O) {
193163
- u.value = O.map((R) => {
193164
- const D = { ...R };
193165
- return a.clientPrivilegesTeamId && (D.playingAs = D.home_team.team_id === a.clientPrivilegesTeamId ? 1 : 2), D;
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 (O, R) => (vt(), St("div", {
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: v
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: k
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": t.clientPrivilegesTeamId,
193198
- "only-games-team-id": t.onlyGamesTeamId,
193199
- onChangeGameCarousel: T,
193200
- onChangeGamesByClientPrivileges: L
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: S.value,
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: P
193218
+ onInput: T
193218
193219
  }, null, 8, ["buttons", "width", "selected-option"])
193219
193220
  ])
193220
193221
  ]),
193221
- _.value && _.value.gameId ? (vt(), ja(a2(s.value.componentName), {
193222
+ v.value && v.value.gameId ? (vt(), ja(a2(s.value.componentName), {
193222
193223
  key: 0,
193223
- game: _.value,
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": A.value,
193231
+ "can-play-videos": M.value,
193231
193232
  "video-privileges-playing-as": y.value,
193232
- "client-privileges-team-id": t.clientPrivilegesTeamId,
193233
- onResetSubsection: I,
193234
- onOpenmedia: x,
193235
- onOnOpenProfile: C,
193236
- onChangeToTab: w,
193237
- onOpenMediaPlayer: x
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-c94994ba"]]);
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
  }