@golstats/gsc-landing 1.0.49 → 1.0.50

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.
@@ -23343,6 +23343,9 @@ const tC = /* @__PURE__ */ ot(G6, [["render", eC], ["__scopeId", "data-v-c68c1e2
23343
23343
  };
23344
23344
  },
23345
23345
  computed: {
23346
+ isGenericLike() {
23347
+ return this.user.is_generic || this.tournamentSelected.id !== this.user.tournament;
23348
+ },
23346
23349
  games() {
23347
23350
  if (this.tournamentSelected.id === this.user.tournament && !this.isLeagueSelected)
23348
23351
  return this.fullTournamentSchedule;
@@ -23725,7 +23728,7 @@ const tC = /* @__PURE__ */ ot(G6, [["render", eC], ["__scopeId", "data-v-c68c1e2
23725
23728
  },
23726
23729
  async created() {
23727
23730
  }
23728
- }, oC = (e) => (ye("data-v-361aa91e"), e = e(), be(), e), nC = {
23731
+ }, oC = (e) => (ye("data-v-1b756f75"), e = e(), be(), e), nC = {
23729
23732
  class: "gsclanding",
23730
23733
  ref: "landingref"
23731
23734
  }, iC = {
@@ -23806,7 +23809,7 @@ function _C(e, a, t, o, i, n) {
23806
23809
  H(l, {
23807
23810
  "component-width": o.elementSize.width,
23808
23811
  isplayer: t.isplayer,
23809
- "is-full": i.tournamentSelected.id != t.user.tournament,
23812
+ "is-full": n.isGenericLike,
23810
23813
  data: n.games,
23811
23814
  "tournament-schedule-keys": i.tournamentScheduleKeys,
23812
23815
  "default-match-day-key": i.selectedRound,
@@ -23819,22 +23822,22 @@ function _C(e, a, t, o, i, n) {
23819
23822
  m("div", bC, [
23820
23823
  H(d, {
23821
23824
  "component-width": o.elementSize.width,
23822
- onOpenmedia: n.onOpenMedia,
23823
- videoType: i.tournamentSelected.id == t.user.tournament ? i.resumeType : i.goalsType,
23825
+ videoType: n.isGenericLike ? i.goalsType : i.resumeType,
23824
23826
  team: t.team,
23825
23827
  player: t.user.player,
23826
23828
  isplayer: t.isplayer,
23827
- "is-full": i.tournamentSelected.id != t.user.tournament,
23828
- "is-league-selected": i.tournamentSelected.id != t.user.tournament,
23829
- nextRivalTeam: i.tournamentSelected.id == t.user.tournament && i.nextRivalId != 0 ? { id: i.nextRivalId } : 0,
23829
+ "is-full": n.isGenericLike,
23830
+ "is-league-selected": n.isGenericLike,
23831
+ nextRivalTeam: n.isGenericLike || !i.nextRivalId ? 0 : { id: i.nextRivalId },
23830
23832
  user: t.user,
23831
23833
  "tournament-schedule-keys": i.tournamentScheduleKeys,
23832
23834
  "default-match-day-key": n.latestRound,
23833
23835
  seasonSelected: i.seasonSelected,
23834
23836
  tournamentSelected: i.tournamentSelected,
23835
23837
  myTournament: t.user.tournament,
23836
- "default-media-player-season": t.defaultMediaPlayerSeason
23837
- }, null, 8, ["component-width", "onOpenmedia", "videoType", "team", "player", "isplayer", "is-full", "is-league-selected", "nextRivalTeam", "user", "tournament-schedule-keys", "default-match-day-key", "seasonSelected", "tournamentSelected", "myTournament", "default-media-player-season"])
23838
+ "default-media-player-season": t.defaultMediaPlayerSeason,
23839
+ onOpenmedia: n.onOpenMedia
23840
+ }, null, 8, ["component-width", "videoType", "team", "player", "isplayer", "is-full", "is-league-selected", "nextRivalTeam", "user", "tournament-schedule-keys", "default-match-day-key", "seasonSelected", "tournamentSelected", "myTournament", "default-media-player-season", "onOpenmedia"])
23838
23841
  ]),
23839
23842
  m("div", {
23840
23843
  class: S(n.containerGridCalendarTable)
@@ -23844,7 +23847,7 @@ function _C(e, a, t, o, i, n) {
23844
23847
  style: B(o.elementSize.width < 1e3 ? "width: 100%" : "")
23845
23848
  }, [
23846
23849
  H(h, {
23847
- isPlayer: t.isplayer ? i.tournamentSelected.id == t.user.tournament : !1,
23850
+ isPlayer: t.isplayer && !n.isGenericLike,
23848
23851
  "player-id": t.user.player,
23849
23852
  "team-id": t.user.team,
23850
23853
  "season-selected": i.seasonSelected.id,
@@ -23852,7 +23855,7 @@ function _C(e, a, t, o, i, n) {
23852
23855
  "team-img": "https://az755631.vo.msecnd.net/teams-150/" + t.user.team + ".png",
23853
23856
  "player-img": "https://az755631.vo.msecnd.net/players-profile/" + t.user.player + ".png",
23854
23857
  "rival-img": Object.keys(i.fullTournamentSchedule).length > 0 ? t.user.team == i.fullTournamentSchedule.data.prematch.home_team ? "https://az755631.vo.msecnd.net/teams-150/" + i.fullTournamentSchedule.data.prematch.visiting_team + ".png" : "https://az755631.vo.msecnd.net/teams-150/" + i.fullTournamentSchedule.data.prematch.home_team + ".png" : "",
23855
- "has-team": t.isplayer ? !1 : i.tournamentSelected.id == t.user.tournament,
23858
+ "has-team": !n.isGenericLike,
23856
23859
  "component-width": o.elementSize.width,
23857
23860
  onAction: n.clickCard
23858
23861
  }, null, 8, ["isPlayer", "player-id", "team-id", "season-selected", "next-rival-id", "team-img", "player-img", "rival-img", "has-team", "component-width", "onAction"])
@@ -23871,22 +23874,22 @@ function _C(e, a, t, o, i, n) {
23871
23874
  }, null, 8, ["onAction", "season", "seasons", "onOpenmedia", "onOnOpenProfile", "componentWidth"])
23872
23875
  ], 4)
23873
23876
  ], 2),
23874
- i.tournamentSelected.id == t.user.tournament ? Ut((y(), b("div", vC, [
23877
+ n.isGenericLike ? T("", !0) : Ut((y(), b("div", vC, [
23875
23878
  H(c, {
23876
23879
  onClickProfileBtn: n.clickProfileBtn,
23877
23880
  onViewAll: n.viewAll,
23878
23881
  onTotalPlayers: n.getTotalPlayers,
23879
23882
  "team-id": t.user.team,
23880
23883
  "season-id": i.seasonSelected.id,
23881
- "is-player": t.user.player != 0
23884
+ "is-player": !!t.user.player
23882
23885
  }, null, 8, ["onClickProfileBtn", "onViewAll", "onTotalPlayers", "team-id", "season-id", "is-player"])
23883
23886
  ], 512)), [
23884
23887
  [Ht, i.playersLength > 0]
23885
- ]) : T("", !0),
23888
+ ]),
23886
23889
  m("div", wC, [
23887
23890
  H(p, {
23888
23891
  onMore: n.moreTops,
23889
- "show-switch": i.tournamentSelected.id == t.user.tournament,
23892
+ "show-switch": !n.isGenericLike,
23890
23893
  season: i.seasonSelected.id,
23891
23894
  "team-id": t.user.team,
23892
23895
  onOpenmedia: n.onOpenMedia
@@ -23896,7 +23899,7 @@ function _C(e, a, t, o, i, n) {
23896
23899
  ], 2)
23897
23900
  ], 512);
23898
23901
  }
23899
- const AC = /* @__PURE__ */ ot(aC, [["render", _C], ["__scopeId", "data-v-361aa91e"]]);
23902
+ const AC = /* @__PURE__ */ ot(aC, [["render", _C], ["__scopeId", "data-v-1b756f75"]]);
23900
23903
  export {
23901
23904
  AC as GSCLanding
23902
23905
  };