@dcrackel/hematournamentui 1.0.516 → 1.0.518

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.
@@ -30776,7 +30776,8 @@ const xn = /* @__PURE__ */ se(_O, [["render", rT]]), oT = {
30776
30776
  return ((n = (e = (t = this.localTournament) == null ? void 0 : t.Images) == null ? void 0 : e[0]) == null ? void 0 : n.URL) || "";
30777
30777
  },
30778
30778
  tournamentAddress() {
30779
- return this.localTournament.Address.Name;
30779
+ var t, e;
30780
+ return (e = (t = this.localTournament) == null ? void 0 : t.Address) == null ? void 0 : e.Name;
30780
30781
  }
30781
30782
  },
30782
30783
  methods: {
@@ -35254,7 +35255,7 @@ const Vp = /* @__PURE__ */ se(AL, [["render", lL]]), cL = {
35254
35255
  emitBout() {
35255
35256
  this.localBout.Started === null && (this.localBout.Started = (/* @__PURE__ */ new Date()).toISOString());
35256
35257
  const t = this.isCountingUp ? this.localBout.Score1 === this.maxPoints || this.localBout.Score2 === this.maxPoints : this.localBout.Score1 === 0 || this.localBout.Score2 === 0, e = this.localBout.TimeLeft === 0, n = this.localBout.CurrentPass === this.maxPasses - 1;
35257
- this.showPassesBox && (this.showSubmit = n || t), this.showTimerBox && (this.showSubmit = e || t), !this.showPassesBox && !this.showTimerBox && (this.showSubmit = !0), this.$emit("update:bout", this.localBout);
35258
+ this.showPassesBox && (this.showSubmit = n || t), this.showTimerBox && (this.showSubmit = e || t), !this.showPassesBox && !this.showTimerBox && (this.showSubmit = !0), this.localBout.Score1 === this.localBout.Score2 && this.isDoubleElimination() && (this.showSubmit = !1), this.$emit("update:bout", this.localBout);
35258
35259
  },
35259
35260
  setCountingDirection() {
35260
35261
  if (Array.isArray(this.eventRules)) {
@@ -35263,6 +35264,9 @@ const Vp = /* @__PURE__ */ se(AL, [["render", lL]]), cL = {
35263
35264
  }
35264
35265
  Array.isArray(this.eventRules) || (this.isCountingUp = !0);
35265
35266
  },
35267
+ isDoubleElimination() {
35268
+ return this.localBout.RoundLabel;
35269
+ },
35266
35270
  openPenaltyModal(t) {
35267
35271
  this.fencer1ForModal = t, this.showPenaltyModal = !0;
35268
35272
  },
@@ -40261,7 +40265,8 @@ const H2 = /* @__PURE__ */ se(LY, [["render", WY]]), XY = {
40261
40265
  }
40262
40266
  },
40263
40267
  shouldShowButton(t) {
40264
- return t.Status === "live" || t.Status === "results" || t.Status === "de";
40268
+ const e = t.Status.toLowerCase();
40269
+ return e === "live" || e === "results" || e === "de";
40265
40270
  },
40266
40271
  formatTournamentDates(t, e) {
40267
40272
  const n = /* @__PURE__ */ new Date(), r = (i, A) => {