@golstats/gsc-landing 1.0.131 → 1.0.132

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.
@@ -14507,7 +14507,7 @@ const a5 = {
14507
14507
  }, 16, ["modelValue"]))
14508
14508
  ], 4));
14509
14509
  }
14510
- }, vf = /* @__PURE__ */ Ct(r5, [["__scopeId", "data-v-377fede2"]]), qt = (s) => (Ye("data-v-9f06d3e2"), s = s(), Ze(), s), l5 = { class: "quadrant-matches" }, c5 = { class: "quadrant-matches__header" }, d5 = { class: "quadrant-matches__header__pc" }, u5 = { class: "title-and-switch" }, h5 = { class: "quadrant-matches__title" }, m5 = /* @__PURE__ */ qt(() => /* @__PURE__ */ v("span", null, " →", -1)), f5 = {
14510
+ }, vf = /* @__PURE__ */ Ct(r5, [["__scopeId", "data-v-377fede2"]]), qt = (s) => (Ye("data-v-4ce6d224"), s = s(), Ze(), s), l5 = { class: "quadrant-matches" }, c5 = { class: "quadrant-matches__header" }, d5 = { class: "quadrant-matches__header__pc" }, u5 = { class: "title-and-switch" }, h5 = { class: "quadrant-matches__title" }, m5 = /* @__PURE__ */ qt(() => /* @__PURE__ */ v("span", null, " →", -1)), f5 = {
14511
14511
  key: 0,
14512
14512
  class: "quadrant-matches__header__games-type"
14513
14513
  }, g5 = /* @__PURE__ */ qt(() => /* @__PURE__ */ v("div", { class: "quadrant-matches__header__my-team" }, "Mi equipo", -1)), p5 = { class: "quadrant-matches__header__games-type__logo" }, y5 = ["src"], v5 = { class: "quadrant-matches__header__games-type__switch" }, b5 = { class: "quadrant-matches__header__games-type__logo" }, A5 = ["src"], w5 = {
@@ -14857,7 +14857,7 @@ const a5 = {
14857
14857
  ], 64)) : x("", !0)
14858
14858
  ]));
14859
14859
  }
14860
- }, Q5 = /* @__PURE__ */ Ct(W5, [["__scopeId", "data-v-9f06d3e2"]]), J5 = {
14860
+ }, Q5 = /* @__PURE__ */ Ct(W5, [["__scopeId", "data-v-4ce6d224"]]), J5 = {
14861
14861
  __name: "gsc-games",
14862
14862
  props: {
14863
14863
  componentWidth: {
@@ -44301,6 +44301,23 @@ const Yt = BL(), SB = {
44301
44301
  }
44302
44302
  },
44303
44303
  watch: {
44304
+ games: {
44305
+ immediate: !0,
44306
+ deep: !0,
44307
+ handler(s) {
44308
+ if (s.length > 0) {
44309
+ for (let t = 0; t < s.length; t++) {
44310
+ const i = this.gamesAllStories.findIndex((n) => n.game_id === s[t].game_id);
44311
+ i !== -1 && (this.gamesAllStories[i].is_live = s[t].is_live, this.gamesAllStories[i].game_status = s[t].game_status);
44312
+ }
44313
+ const e = s.filter((t) => t.is_live);
44314
+ for (let t = 0; t < e.length; t++) {
44315
+ const i = this.gamesAllStories.findIndex((n) => n.game_id === e[t].game_id);
44316
+ i !== -1 ? this.gamesAllStories[i].score = e[t].score : (this.gamesAllStories.push(e[t]), this.gamesAllStories = this.ordenarYFiltrarPartidos(this.gamesAllStories));
44317
+ }
44318
+ }
44319
+ }
44320
+ },
44304
44321
  "allLiveGames.length": {
44305
44322
  handler(s) {
44306
44323
  s.length === 0 && this.resetGamesLiveInterval();
@@ -44562,7 +44579,7 @@ const Yt = BL(), SB = {
44562
44579
  },
44563
44580
  ordenarYFiltrarPartidos(s) {
44564
44581
  const e = s.filter(
44565
- (t) => t.game_status === 1 || t.is_live == 1
44582
+ (t) => t.game_status === 1 || t.is_live == 1 || t.game_status == 0
44566
44583
  );
44567
44584
  return e.sort((t, i) => new Date(i.date_time_utc) - new Date(t.date_time_utc)), e.slice(0, 18);
44568
44585
  },
@@ -45029,7 +45046,7 @@ const Yt = BL(), SB = {
45029
45046
  beforeUnmount() {
45030
45047
  this.resetGamesLiveInterval();
45031
45048
  }
45032
- }, wi = (s) => (Ye("data-v-1776696e"), s = s(), Ze(), s), CB = {
45049
+ }, wi = (s) => (Ye("data-v-0a215248"), s = s(), Ze(), s), CB = {
45033
45050
  class: "gsclanding",
45034
45051
  ref: "landingref"
45035
45052
  }, TB = {
@@ -45343,7 +45360,7 @@ function tD(s, e, t, i, n, a) {
45343
45360
  ], 2)
45344
45361
  ], 512);
45345
45362
  }
45346
- const dD = /* @__PURE__ */ Ct(SB, [["render", tD], ["__scopeId", "data-v-1776696e"]]);
45363
+ const dD = /* @__PURE__ */ Ct(SB, [["render", tD], ["__scopeId", "data-v-0a215248"]]);
45347
45364
  export {
45348
45365
  dD as GSCLanding
45349
45366
  };