@dcrackel/hematournamentui 1.0.527 → 1.0.529

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.
@@ -40854,20 +40854,17 @@ const Y2 = /* @__PURE__ */ se(L2, [["render", q2]]), j2 = {
40854
40854
  };
40855
40855
  },
40856
40856
  computed: {
40857
- isMobile() {
40858
- return this.windowWidth <= 748;
40859
- },
40860
40857
  totalYellowCards() {
40861
- return this.penalties.reduce((t, e) => t + e.Penalties.filter((n) => n.PenaltyType === "Yellow").length, 0);
40858
+ return Array.isArray(this.penalties) ? this.penalties.reduce((t, e) => t + (Array.isArray(e == null ? void 0 : e.Penalties) ? e.Penalties.filter((n) => (n == null ? void 0 : n.PenaltyType) === "Yellow").length : 0), 0) : 0;
40862
40859
  },
40863
40860
  totalRedCards() {
40864
- return this.penalties.reduce((t, e) => t + e.Penalties.filter((n) => n.PenaltyType === "Red").length, 0);
40861
+ return Array.isArray(this.penalties) ? this.penalties.reduce((t, e) => t + (Array.isArray(e == null ? void 0 : e.Penalties) ? e.Penalties.filter((n) => (n == null ? void 0 : n.PenaltyType) === "Red").length : 0), 0) : 0;
40865
40862
  },
40866
40863
  totalBlackCards() {
40867
- return this.penalties.reduce((t, e) => t + e.Penalties.filter((n) => n.PenaltyType === "Black").length, 0);
40864
+ return Array.isArray(this.penalties) ? this.penalties.reduce((t, e) => t + (Array.isArray(e == null ? void 0 : e.Penalties) ? e.Penalties.filter((n) => (n == null ? void 0 : n.PenaltyType) === "Black").length : 0), 0) : 0;
40868
40865
  },
40869
40866
  totalMedicalCalls() {
40870
- return this.penalties.reduce((t, e) => t + e.Penalties.filter((n) => n.PenaltyType === "Medical").length, 0);
40867
+ return Array.isArray(this.penalties) ? this.penalties.reduce((t, e) => t + (Array.isArray(e == null ? void 0 : e.Penalties) ? e.Penalties.filter((n) => (n == null ? void 0 : n.PenaltyType) === "Medical").length : 0), 0) : 0;
40871
40868
  }
40872
40869
  },
40873
40870
  methods: {
@@ -40887,7 +40884,7 @@ function W2(t, e, n, r, o, i) {
40887
40884
  return C(), I("section", null, [
40888
40885
  p(A, {
40889
40886
  currentTab: "Penalties",
40890
- tabs: o.tabs(n.role, i.isMobile),
40887
+ tabs: o.tabs(n.role, t.isMobile),
40891
40888
  onTabMenuClick: i.handleTabMenuClick
40892
40889
  }, null, 8, ["tabs", "onTabMenuClick"]),
40893
40890
  p(a, {