@dcrackel/hematournamentui 1.0.511 → 1.0.513
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.
|
@@ -34813,7 +34813,8 @@ const Gz = /* @__PURE__ */ se(Rz, [["render", Uz]]), Jz = {
|
|
|
34813
34813
|
this.toggleAllOff(), this.currentNote = "";
|
|
34814
34814
|
},
|
|
34815
34815
|
countCards() {
|
|
34816
|
-
|
|
34816
|
+
var t, e, n, r, o, i, A, a;
|
|
34817
|
+
this.fencer1 && (this.yellowCardCount = ((e = (t = this.bout.Person1) == null ? void 0 : t.Penalties) == null ? void 0 : e.filter((l) => l.PenaltyType === "Yellow" && l.BoutId === this.bout.BoutId).length) || 0, this.redCardCount = ((r = (n = this.bout.Person1) == null ? void 0 : n.Penalties) == null ? void 0 : r.filter((l) => l.PenaltyType === "Red" && l.BoutId === this.bout.BoutId).length) || 0), this.fencer1 || (this.yellowCardCount = ((i = (o = this.bout.Person2) == null ? void 0 : o.Penalties) == null ? void 0 : i.filter((l) => l.PenaltyType === "Yellow" && l.BoutId === this.bout.BoutId).length) || 0, this.redCardCount = ((a = (A = this.bout.Person2) == null ? void 0 : A.Penalties) == null ? void 0 : a.filter((l) => l.PenaltyType === "Red" && l.BoutId === this.bout.BoutId).length) || 0);
|
|
34817
34818
|
},
|
|
34818
34819
|
toggleAllOff() {
|
|
34819
34820
|
this.yellowCardToggle && this.yellowCardCount--, this.redCardToggle && this.redCardCount--, this.yellowCardToggle = !1, this.redCardToggle = !1, this.noteToggle = !1, this.medicalToggle = !1, this.blackCardToggle = !1;
|
|
@@ -35041,7 +35042,7 @@ function iL(t, e, n, r, o, i) {
|
|
|
35041
35042
|
])
|
|
35042
35043
|
]),
|
|
35043
35044
|
h("div", null, [
|
|
35044
|
-
i.pastCards.length ? (C(), ne(A, {
|
|
35045
|
+
i.pastCards && i.pastCards.length ? (C(), ne(A, {
|
|
35045
35046
|
key: 0,
|
|
35046
35047
|
text: "Past Cards in this Event",
|
|
35047
35048
|
type: "h3",
|