@dcrackel/hematournamentui 1.0.363 → 1.0.366

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.
@@ -33646,7 +33646,7 @@ const Fz = /* @__PURE__ */ ie(wz, [["render", zz]]), Pz = {
33646
33646
  return this.localBout.Pool.RingName || "Ring";
33647
33647
  },
33648
33648
  showPassesBox() {
33649
- return console.log(this.eventRules), this.eventRules.some((n) => n.Rules.RuleName === "PoolNumOfPasses") || this.eventRules.some((n) => n.Rules.RuleName === "DENumOfPasses");
33649
+ return this.eventRules.some((n) => n.Rules.RuleName === "PoolNumOfPasses") || this.eventRules.some((n) => n.Rules.RuleName === "DENumOfPasses");
33650
33650
  },
33651
33651
  showTimerBox() {
33652
33652
  return this.eventRules.some((n) => n.Rules.RuleName === "PoolTime") || this.eventRules.some((n) => n.Rules.RuleName === "DETime");
@@ -33660,7 +33660,7 @@ const Fz = /* @__PURE__ */ ie(wz, [["render", zz]]), Pz = {
33660
33660
  return n ? parseInt(n.RuleValue) : 90;
33661
33661
  },
33662
33662
  maxPoints() {
33663
- if (console.log(this.eventRules), this.localBout.DEBoutId) {
33663
+ if (this.localBout.DEBoutId) {
33664
33664
  const e = this.eventRules.find((t) => t.Rules.RuleName === "DEMaxPoints");
33665
33665
  return e ? parseInt(e.RuleValue) : 7;
33666
33666
  }
@@ -36124,13 +36124,13 @@ const vL = /* @__PURE__ */ ie(fL, [["render", QL], ["__scopeId", "data-v-755be0f
36124
36124
  },
36125
36125
  computed: {
36126
36126
  bracketSize() {
36127
- return this.bouts && this.bouts.length > 0 && this.bouts[0].RoundLabel ? this.bouts[0].RoundLabel : "";
36127
+ return this.boutsData && this.boutsData.length > 0 && this.boutsData[0].RoundLabel ? this.boutsData[0].RoundLabel : "";
36128
36128
  },
36129
36129
  activeBouts() {
36130
- return this.bouts.filter((n) => n.Status === "Active");
36130
+ return this.boutsData.filter((n) => n.Status === "Active");
36131
36131
  },
36132
36132
  sortedBouts() {
36133
- return this.bouts.sort((n, e) => n.DEBoutId < e.DEBoutId ? -1 : n.DEBoutId > e.DEBoutId ? 1 : 0);
36133
+ return this.boutsData.sort((n, e) => n.DEBoutId < e.DEBoutId ? -1 : n.DEBoutId > e.DEBoutId ? 1 : 0);
36134
36134
  }
36135
36135
  },
36136
36136
  data() {
@@ -36150,13 +36150,14 @@ const vL = /* @__PURE__ */ ie(fL, [["render", QL], ["__scopeId", "data-v-755be0f
36150
36150
  { id: "Final", label: "Final Results", color: "primaryHighlight" }
36151
36151
  ],
36152
36152
  viewName: "Tableau",
36153
- largeCards: !0
36153
+ largeCards: !0,
36154
+ boutsData: [...this.bouts]
36154
36155
  };
36155
36156
  },
36156
36157
  watch: {
36157
36158
  bouts: {
36158
36159
  handler(n) {
36159
- this.bouts = n;
36160
+ this.boutsData = [...n];
36160
36161
  },
36161
36162
  deep: !0,
36162
36163
  immediate: !0
@@ -36165,7 +36166,7 @@ const vL = /* @__PURE__ */ ie(fL, [["render", QL], ["__scopeId", "data-v-755be0f
36165
36166
  methods: {
36166
36167
  handleCloseModal(n) {
36167
36168
  if (this.showDirectorModal = !1, this.showEditBoutModal = !1, n.Status !== "Completed") {
36168
- const e = this.bouts.find((t) => t.BoutId === n.BoutId);
36169
+ const e = this.boutsData.find((t) => t.BoutId === n.BoutId);
36169
36170
  e && (e.Status = "Scheduled", e.Score1 = 0, e.Score2 = 0), this.$emit("update:bout", e);
36170
36171
  }
36171
36172
  },
@@ -36183,8 +36184,8 @@ const vL = /* @__PURE__ */ ie(fL, [["render", QL], ["__scopeId", "data-v-755be0f
36183
36184
  },
36184
36185
  handleSubmitBout(n) {
36185
36186
  this.showEditBoutModal = !1, this.showDirectorModal = !1;
36186
- const e = this.bouts.find((t) => t.BoutId === n.BoutId);
36187
- Object.assign(e, n), e.Status = "Completed", e.Ended = (/* @__PURE__ */ new Date()).toISOString(), this.$emit("submit:bout", e);
36187
+ const e = this.boutsData.find((t) => t.BoutId === n.BoutId);
36188
+ Object.assign(e, n), e.Status = "Completed", e.Ended = (/* @__PURE__ */ new Date()).toISOString(), console.log(e), this.$emit("submit:bout", e);
36188
36189
  },
36189
36190
  directBout(n) {
36190
36191
  n.Person1.PersonId === 0 || n.Person2.PersonId === 0 || (n.Status = "Active", this.showDirectorModal = !0, this.selectedBout = n, this.$emit("update:directing-bout", n));