@golstats/gsc-game-data 1.0.122 → 1.0.124

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.
@@ -11077,12 +11077,18 @@ const itt = {
11077
11077
  headers: {
11078
11078
  Authorization: `${this.token}`
11079
11079
  }
11080
- }).get(this.url + this.seasonSelected.id), a = e.data.data.findIndex(
11081
- (p) => p.team_id === this.gameForAnalysis.home_team
11082
- ), c = e.data.data.findIndex(
11083
- (p) => p.team_id === this.gameForAnalysis.visiting_team
11084
- );
11085
- this.home = e.data.data[a], this.away = e.data.data[c];
11080
+ }).get(this.url + this.seasonSelected.id);
11081
+ let a = -1, c = -1;
11082
+ if (this.tournamentType != 1)
11083
+ a = e.data.data.findIndex(
11084
+ (p) => p.team_id === this.gameForAnalysis.home_team
11085
+ ), c = e.data.data.findIndex(
11086
+ (p) => p.team_id === this.gameForAnalysis.visiting_team
11087
+ );
11088
+ else
11089
+ for (let p = 0; p < e.data.groups.length; p++)
11090
+ a == -1 && (a = e.data.groups[p].data.findIndex((r) => r.team_id === this.gameForAnalysis.home_team), a != -1 && (this.home = e.data.groups[p].data[a])), c == -1 && (c = e.data.groups[p].data.findIndex((r) => r.team_id === this.gameForAnalysis.visiting_team), c != -1 && (this.away = e.data.groups[p].data[c]));
11091
+ this.tournamentType != 1 && (this.home = e.data.data[a], this.away = e.data.data[c]);
11086
11092
  } catch (t) {
11087
11093
  console.error(t);
11088
11094
  }
@@ -13136,7 +13142,7 @@ const prt = { class: "statistics-main" }, frt = { class: "statistics-main__heade
13136
13142
  (yt(), Va(a2(tr(y).componentName), {
13137
13143
  seasonSelected: { ...t.seasonSelected },
13138
13144
  game: { ...t.game },
13139
- "tournament-type": tr(c).getters["general/getTournamentType"],
13145
+ "tournament-type": tr(c).getters["gameGlobal/getTournamentType"],
13140
13146
  "can-play-videos": t.canPlayVideos,
13141
13147
  "play-videos-privileges": t.playVideosPrivileges,
13142
13148
  onOpenmedia: l
@@ -13144,7 +13150,7 @@ const prt = { class: "statistics-main" }, frt = { class: "statistics-main__heade
13144
13150
  ]))
13145
13151
  ]));
13146
13152
  }
13147
- }), vrt = /* @__PURE__ */ eo(yrt, [["__scopeId", "data-v-3723b86c"]]);
13153
+ }), vrt = /* @__PURE__ */ eo(yrt, [["__scopeId", "data-v-02c2f77c"]]);
13148
13154
  function XR(t, e) {
13149
13155
  return function() {
13150
13156
  return t.apply(e, arguments);
@@ -85418,11 +85424,11 @@ const G1e = { class: "dropdown" }, W1e = { class: "selected-item" }, q1e = {
85418
85424
  },
85419
85425
  setup(t) {
85420
85426
  const e = t, a = M3(
85421
- () => import("./FilterSubcategories-a7b96423-Bs67-HFD-c697804f.js")
85427
+ () => import("./FilterSubcategories-a7b96423-Bs67-HFD-0e5ac46f.js")
85422
85428
  ), c = M3(
85423
- () => import("./FilterConditions-dc6b25de-CdawgDTp-4d9f4acf.js")
85429
+ () => import("./FilterConditions-dc6b25de-CdawgDTp-c7691ca8.js")
85424
85430
  ), p = M3(
85425
- () => import("./FilterField-37ad154d-PFd8HpMJ-ff115184.js")
85431
+ () => import("./FilterField-37ad154d-PFd8HpMJ-17bad539.js")
85426
85432
  ), r = [
85427
85433
  {
85428
85434
  name: "Sub categorías",