@golstats/gsc-game-data 1.0.92 → 1.0.93

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.
@@ -74621,10 +74621,10 @@ const Zle = /* @__PURE__ */ ao($le, [["render", Yle], ["__scopeId", "data-v-63c4
74621
74621
  deep: !0
74622
74622
  },
74623
74623
  data: {
74624
- handler() {
74624
+ handler(t) {
74625
74625
  setTimeout(() => {
74626
- this.data && Object.keys(this.data.team).length > 0 && (this.type == 0 ? this.flagaux ? (this.itemselected = this.data.team[Object.keys(this.data.team)[0]].data.id, this.$emit("selectteam", this.data.team[Object.keys(this.data.team)[0]].data.id)) : this.data.team.find((t) => t.data.id === this.itemselected) ? this.$emit("selectteam", this.itemselected) : (this.itemselected = this.data.team[Object.keys(this.data.team)[0]].data.id, this.$emit("selectteam", this.data.team[Object.keys(this.data.team)[0]].data.id)) : this.data.players.find(
74627
- (t) => t.data.player_id === this.itemselected
74626
+ this.data && Object.keys(this.data.team).length > 0 && (this.type == 0 ? this.flagaux ? (this.itemselected = this.data.team[Object.keys(this.data.team)[0]].data.id, this.$emit("selectteam", this.data.team[Object.keys(this.data.team)[0]].data.id)) : this.data.team.find((e) => e.data.id === this.itemselected) ? this.$emit("selectteam", this.itemselected) : (this.itemselected = this.data.team[Object.keys(this.data.team)[0]].data.id, this.$emit("selectteam", this.data.team[Object.keys(this.data.team)[0]].data.id)) : this.data.players.find(
74627
+ (e) => e.data.player_id === this.itemselected
74628
74628
  ) || (this.itemselected = this.data.players[Object.keys(this.data.players)[0]].data.player_id, this.$emit(
74629
74629
  "selectplayer",
74630
74630
  this.data.players[Object.keys(this.data.players)[0]].data.player_id
@@ -74646,7 +74646,7 @@ const Zle = /* @__PURE__ */ ao($le, [["render", Yle], ["__scopeId", "data-v-63c4
74646
74646
  mounted() {
74647
74647
  this.data && Object.keys(this.data.team).length > 0 && (this.itemselected = this.data.team[[0]].data.id, this.$emit("selectteam", this.data.team[Object.keys(this.data.team)[0]].data.id));
74648
74648
  }
74649
- }, BB = (t) => (Xr("data-v-3cc2315d"), t = t(), Qr(), t), Kle = ["onClick"], Xle = { class: "gsc-collectors-select-team-item-team" }, Qle = { class: "gsc-collectors-select-team-item-num" }, tce = ["onClick"], ece = { class: "gsc-collectors-select-team-item-team" }, ace = { class: "gsc-collectors-select-team-item-num" }, rce = /* @__PURE__ */ BB(() => /* @__PURE__ */ N("br", null, null, -1)), nce = {
74649
+ }, BB = (t) => (Xr("data-v-d43de6a2"), t = t(), Qr(), t), Kle = ["onClick"], Xle = { class: "gsc-collectors-select-team-item-team" }, Qle = { class: "gsc-collectors-select-team-item-num" }, tce = ["onClick"], ece = { class: "gsc-collectors-select-team-item-team" }, ace = { class: "gsc-collectors-select-team-item-num" }, rce = /* @__PURE__ */ BB(() => /* @__PURE__ */ N("br", null, null, -1)), nce = {
74650
74650
  key: 0,
74651
74651
  class: "gsc-collectors-select-team-item-scroll"
74652
74652
  }, ice = /* @__PURE__ */ BB(() => /* @__PURE__ */ N("svg", {
@@ -74680,7 +74680,7 @@ function sce(t, e, a, u, g, n) {
74680
74680
  a.isMovil ? "gsc-collectors-select-team-container-movil" : "gsc-collectors-select-team-container"
74681
74681
  )
74682
74682
  }, [
74683
- (_t(!0), St(Ke, null, kr(a.data.team, (s, r) => (_t(), St("div", {
74683
+ a.data.team.length > 0 ? (_t(!0), St(Ke, { key: 0 }, kr(a.data.team, (s, r) => (_t(), St("div", {
74684
74684
  key: r,
74685
74685
  style: ha(
74686
74686
  s.data.id == g.itemselected && g.type == 0 ? "border: 1px solid rgb(155, 155, 109);" : ""
@@ -74699,8 +74699,8 @@ function sce(t, e, a, u, g, n) {
74699
74699
  }, null, 6)) : ae("", !0),
74700
74700
  N("div", Xle, re(s.data.name), 1),
74701
74701
  N("div", Qle, re(s.total), 1)
74702
- ], 14, Kle))), 128)),
74703
- (_t(!0), St(Ke, null, kr(a.data.players, (s, r) => (_t(), St("div", {
74702
+ ], 14, Kle))), 128)) : ae("", !0),
74703
+ a.data.players.length > 0 ? (_t(!0), St(Ke, { key: 1 }, kr(a.data.players, (s, r) => (_t(), St("div", {
74704
74704
  key: r,
74705
74705
  style: ha(
74706
74706
  s.data.id == g.itemselected && g.type == 1 ? "border: 1px solid rgb(155, 155, 109);" : ""
@@ -74720,9 +74720,9 @@ function sce(t, e, a, u, g, n) {
74720
74720
  }, null, 6),
74721
74721
  N("div", ece, re(s.data.name), 1),
74722
74722
  N("div", ace, re(s.total), 1)
74723
- ], 14, tce))), 128)),
74723
+ ], 14, tce))), 128)) : ae("", !0),
74724
74724
  a.data.team.length == 0 && a.data.players.length == 0 ? (_t(), St("div", {
74725
- key: 0,
74725
+ key: 2,
74726
74726
  class: wt(a.isMovil ? "class-not-result-movil" : "class-not-result")
74727
74727
  }, [
74728
74728
  Ea(" No se muestran resultados debido"),
@@ -74733,7 +74733,7 @@ function sce(t, e, a, u, g, n) {
74733
74733
  !a.isMovil && (a.data.team.length > 0 || a.data.players.length > 0) ? (_t(), St("div", nce, oce)) : ae("", !0)
74734
74734
  ], 2);
74735
74735
  }
74736
- const lce = /* @__PURE__ */ ao(Jle, [["render", sce], ["__scopeId", "data-v-3cc2315d"]]), cce = {
74736
+ const lce = /* @__PURE__ */ ao(Jle, [["render", sce], ["__scopeId", "data-v-d43de6a2"]]), cce = {
74737
74737
  components: {
74738
74738
  GSCCollectorsSelectPlayer: Zle,
74739
74739
  GSCCollectorsSelectTeam: lce
@@ -75650,7 +75650,7 @@ const NB = /* @__PURE__ */ Xce(F7, [["render", oue], ["__scopeId", "data-v-8a86d
75650
75650
  computed: {
75651
75651
  calculateTouch() {
75652
75652
  let t = {};
75653
- return this.typeView === "General" ? this.touchFilter.length && (this.playersSelect.length > 0 || this.teamSelect.length > 0 ? t = this.getCornersByTouch(this.touchFilter) : t = this.getCornersByTouchReset()) : this.playersSelect.length > 0 || this.teamSelect.length > 0 ? t = this.getCornersByPlay(this.touchFilter) : t = this.getCornersByPlayReset(), t;
75653
+ return this.typeView === "General" ? this.touchFilter.length > 0 && (this.playersSelect.length > 0 || this.teamSelect.length > 0 ? t = this.getCornersByTouch(this.touchFilter) : (this.playersSelect.length > 0 || this.teamSelect.length > 0) && (t = this.getCornersByTouchReset())) : this.touchFilter.length > 0 && (this.playersSelect.length > 0 || this.teamSelect.length > 0 ? t = this.getCornersByPlay(this.touchFilter) : (this.playersSelect.length > 0 || this.teamSelect.length > 0) && (t = this.getCornersByPlayReset())), t;
75654
75654
  },
75655
75655
  titlePCClass() {
75656
75656
  return this.widthContainer <= 768 ? "title-pc768" : "title-pc";
@@ -75691,7 +75691,7 @@ const NB = /* @__PURE__ */ Xce(F7, [["render", oue], ["__scopeId", "data-v-8a86d
75691
75691
  return Object.keys(t).length > 0;
75692
75692
  },
75693
75693
  selectTeam(t) {
75694
- this.typeSelected = 0, this.itemSelected = t, this.touchFilter = this.touchAllData.slice();
75694
+ this.itemSelected != t && (this.typeSelected = 0, this.itemSelected = t, this.touchFilter = this.touchAllData.slice());
75695
75695
  },
75696
75696
  selectPlayer(t) {
75697
75697
  this.typeSelected = 1, this.itemSelected = t, this.touchFilter = this.getFilterDataByPlayer(this.itemSelected);
@@ -75956,7 +75956,7 @@ const NB = /* @__PURE__ */ Xce(F7, [["render", oue], ["__scopeId", "data-v-8a86d
75956
75956
  return e;
75957
75957
  }
75958
75958
  }
75959
- }, jB = (t) => (Xr("data-v-95b60200"), t = t(), Qr(), t), lue = {
75959
+ }, jB = (t) => (Xr("data-v-d53b3eb6"), t = t(), Qr(), t), lue = {
75960
75960
  key: 0,
75961
75961
  class: "gsc-connections-set-piece-container-header-movil"
75962
75962
  }, cue = { class: "gsc-connections-set-piece" }, uue = /* @__PURE__ */ jB(() => /* @__PURE__ */ N("div", { class: "title-pc-title" }, "Conexiones", -1)), due = [
@@ -76039,7 +76039,7 @@ function fue(t, e, a, u, g, n) {
76039
76039
  ])
76040
76040
  ], 2);
76041
76041
  }
76042
- const mue = /* @__PURE__ */ ao(sue, [["render", fue], ["__scopeId", "data-v-95b60200"]]), yp = {
76042
+ const mue = /* @__PURE__ */ ao(sue, [["render", fue], ["__scopeId", "data-v-d53b3eb6"]]), yp = {
76043
76043
  All: 1,
76044
76044
  YEAR: 2,
76045
76045
  AGE_RANGE: 3,
@@ -82255,11 +82255,11 @@ const Yme = { class: "dropdown" }, Zme = { class: "selected-item" }, Jme = {
82255
82255
  },
82256
82256
  setup(t) {
82257
82257
  const e = t, a = x3(
82258
- () => import("./FilterSubcategories-a8a6f334-CwupTyx1-1ee1131a.js")
82258
+ () => import("./FilterSubcategories-a8a6f334-CqH7i2za-ed20edf2.js")
82259
82259
  ), u = x3(
82260
- () => import("./FilterConditions-c30148cb-C26tBWKm-a2f20e3f.js")
82260
+ () => import("./FilterConditions-c30148cb-Cr1KLGPk-46f9c325.js")
82261
82261
  ), g = x3(
82262
- () => import("./FilterField-8cc7d928-CWWslgps-18542dd3.js")
82262
+ () => import("./FilterField-8cc7d928-CQ47c7a_-00cdb7bc.js")
82263
82263
  ), n = [
82264
82264
  {
82265
82265
  name: "Sub categorías",
@@ -92230,7 +92230,7 @@ function Cwe() {
92230
92230
  const uy = {
92231
92231
  TO_RIGHT: "toRight",
92232
92232
  TO_LEFT: "toLeft"
92233
- }, ko = (t) => (Xr("data-v-37f3e843"), t = t(), Qr(), t), Twe = {
92233
+ }, ko = (t) => (Xr("data-v-ea146768"), t = t(), Qr(), t), Twe = {
92234
92234
  key: 0,
92235
92235
  class: "title-movil-title"
92236
92236
  }, Swe = { class: "specific-plays-titlecontainer" }, Awe = { class: "specific-plays-title" }, Mwe = {
@@ -92517,7 +92517,7 @@ const uy = {
92517
92517
  const Y = d.value[w.value];
92518
92518
  if (Y) {
92519
92519
  const q = Y[`${v.isAgainstMode ? "cornersAgainstTeam" : "corners"}`].find((st) => st.isSelected);
92520
- if (q) {
92520
+ if (q && q.playConnections) {
92521
92521
  const st = q.playConnections;
92522
92522
  let nt = [st.mainPlay];
92523
92523
  return st.relatedPlays && nt.push(...st.relatedPlays), nt.sort((rt, it) => rt.touchOrder - it.touchOrder), nt = nt.filter((rt) => S.value ? !rt.isTeamForAnalysis && rt.y1 <= 0.5 || rt.isTeamForAnalysis && rt.y1 >= 0.5 : rt.isTeamForAnalysis && rt.y1 <= 0.5 || !rt.isTeamForAnalysis && rt.y1 >= 0.5), nt.forEach((rt, it) => {
@@ -92560,14 +92560,14 @@ const uy = {
92560
92560
  ), hr(
92561
92561
  () => w.value,
92562
92562
  (Y, q) => {
92563
- if (Y !== q) {
92564
- f.value = "0", b.value = ["-1", "0"], M.value.corners.forEach((nt) => {
92563
+ if (Y !== q && (f.value = "0", b.value = ["-1", "0"], M.value)) {
92564
+ M.value.corners.forEach((nt) => {
92565
92565
  nt.isSelected = !1;
92566
92566
  }), M.value.cornersAgainstTeam.forEach((nt) => {
92567
92567
  nt.isSelected = !1;
92568
92568
  });
92569
- const st = v.isAgainstMode ? M.value.cornersAgainstTeam : M.value.corners;
92570
- st[0].isSelected = !0;
92569
+ const st = (v.isAgainstMode ? M.value.cornersAgainstTeam : M.value.corners).filter((nt) => nt.isVisible);
92570
+ st.length > 0 && (st[0].isSelected = !0);
92571
92571
  }
92572
92572
  }
92573
92573
  ), hr(
@@ -93134,7 +93134,7 @@ const uy = {
93134
93134
  ], 2)
93135
93135
  ], 64));
93136
93136
  }
93137
- }, J6e = /* @__PURE__ */ ao(Z6e, [["__scopeId", "data-v-37f3e843"]]), K6e = {
93137
+ }, J6e = /* @__PURE__ */ ao(Z6e, [["__scopeId", "data-v-ea146768"]]), K6e = {
93138
93138
  components: { GSCRadioToggle: J7 },
93139
93139
  props: {},
93140
93140
  data() {
@@ -186129,7 +186129,13 @@ const q9e = /* @__PURE__ */ ao(v9e, [["render", W9e], ["__scopeId", "data-v-30f3
186129
186129
  const s = e.map((r) => u(r));
186130
186130
  Promise.all(s).then((r) => {
186131
186131
  for (let v = 0; v < r.length; v++)
186132
- r[v].data = this.changeLateralityCoordenatesPlays(r[v].data, !1), r[v].field_positions = this.changeLateralityCoordenatesPlays(r[v].field_positions, !0), g = g.concat(r[v].data), n = n.concat(r[v].field_positions), this.getDataPlayers(r[v].players), this.getDataPlayers(r[v].rival_players), this.getDataTeams(r[v].teams), this.getSeasonByGame({
186132
+ r[v].data = this.changeLateralityCoordenatesPlays(
186133
+ r[v].data,
186134
+ !1
186135
+ ), r[v].field_positions = this.changeLateralityCoordenatesPlays(
186136
+ r[v].field_positions,
186137
+ !0
186138
+ ), g = g.concat(r[v].data), n = n.concat(r[v].field_positions), this.getDataPlayers(r[v].players), this.getDataPlayers(r[v].rival_players), this.getDataTeams(r[v].teams), this.getSeasonByGame({
186133
186139
  season: r[v] && r[v].hasOwnProperty("season_name") ? r[v].season_name : "",
186134
186140
  game: r[v].data[0] ? r[v].data[0][3] : 0
186135
186141
  }), this.getMatchByGame({
@@ -186343,7 +186349,7 @@ const q9e = /* @__PURE__ */ ao(v9e, [["render", W9e], ["__scopeId", "data-v-30f3
186343
186349
  mainSectionType: 1,
186344
186350
  playListType: 3,
186345
186351
  categoryIds: [t.id],
186346
- gameIds: null,
186352
+ gameIds: this.forGame ? [this.game.id] : null,
186347
186353
  playerIds: [],
186348
186354
  goalkeeperIds: [],
186349
186355
  teamId: this.teamSelected,
@@ -186446,7 +186452,7 @@ function K9e(t, e, a, u, g, n) {
186446
186452
  id: g.teamSelected,
186447
186453
  "season-id": a.game.season,
186448
186454
  game: a.game.id,
186449
- onClickPlay: n.onOpenMediaPlayer,
186455
+ onClickPlay: n.onOpenMediaPlayerJson,
186450
186456
  prematch: !!a.forGame
186451
186457
  }, null, 8, ["component-width", "onClickClose", "show-modal-prop", "id", "season-id", "game", "onClickPlay", "prematch"])) : ae("", !0),
186452
186458
  g.teamSelected && a.game.season ? (_t(), Ua(f, {
@@ -186463,7 +186469,7 @@ function K9e(t, e, a, u, g, n) {
186463
186469
  }, null, 8, ["team-id-for-analysis", "season-id-for-analysis", "width-container", "filters", "is-game-only", "game", "is-against-mode", "are-filters-open", "onOpenMediaPlayer"])) : ae("", !0)
186464
186470
  ]);
186465
186471
  }
186466
- const X9e = /* @__PURE__ */ ao(Y9e, [["render", K9e], ["__scopeId", "data-v-eb5e4451"]]);
186472
+ const X9e = /* @__PURE__ */ ao(Y9e, [["render", K9e], ["__scopeId", "data-v-ee59182d"]]);
186467
186473
  const Q9e = { class: "datagame-container" }, tke = {
186468
186474
  __name: "GSCTacticaFijaMain",
186469
186475
  props: {