@dcrackel/hematournamentui 1.0.108 → 1.0.110

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.
@@ -30007,10 +30007,10 @@ const YD = /* @__PURE__ */ ye(FD, [["render", WD]]), ZD = {
30007
30007
  return [{ id: "All", label: "All", color: "primaryHighlight" }, ...e];
30008
30008
  },
30009
30009
  filteredPools() {
30010
- if (this.selectedFlight === "All")
30011
- return this.poolAssignments;
30012
- const n = parseInt(this.selectedFlight.replace("Flight", ""), 10);
30013
- return this.poolAssignments.filter((e) => e.Flight === n);
30010
+ return (this.selectedFlight === "All" ? this.poolAssignments : this.poolAssignments.filter((e) => e.Flight === parseInt(this.selectedFlight.replace("Flight", ""), 10))).map((e) => ({
30011
+ ...e,
30012
+ poolStrengthInd: e.poolStrengthInd !== void 0 ? e.poolStrengthInd : 0
30013
+ }));
30014
30014
  }
30015
30015
  },
30016
30016
  methods: {
@@ -31598,11 +31598,11 @@ const ZO = /* @__PURE__ */ ye(qO, [["render", YO]]), GO = {
31598
31598
  handleCloseModal(n) {
31599
31599
  if (this.showDirectorModal = !1, this.showEditBoutModal = !1, n.Status !== "Completed") {
31600
31600
  const e = this.bouts.find((t) => t.BoutId === n.BoutId);
31601
- e && (e.Status = "Scheduled", e.Score1 = 0, e.Score2 = 0);
31601
+ e && (e.Status = "Scheduled", e.Score1 = 0, e.Score2 = 0), this.$emit("update:bout", e);
31602
31602
  }
31603
31603
  },
31604
- handleTabMenuClick() {
31605
- this.$emit("tab:menu-click", value);
31604
+ handleTabMenuClick(n) {
31605
+ this.$emit("tab:menu-click", n);
31606
31606
  },
31607
31607
  handleViewChange() {
31608
31608
  console.log("handleViewChange");
@@ -31615,16 +31615,16 @@ const ZO = /* @__PURE__ */ ye(qO, [["render", YO]]), GO = {
31615
31615
  console.log("Bout not found in active bouts:", n.BoutId);
31616
31616
  return;
31617
31617
  }
31618
- Object.assign(e, n), e.Status = "Active";
31618
+ Object.assign(e, n), e.Status = "Active", this.$emit("update:bout", e);
31619
31619
  },
31620
31620
  handleSubmitBout(n) {
31621
31621
  this.showEditBoutModal = !1, this.showDirectorModal = !1;
31622
31622
  const e = this.bouts.find((t) => t.BoutId === n.BoutId);
31623
- e && (Object.assign(e, n), e.Status = "Completed", e.Ended = (/* @__PURE__ */ new Date()).toISOString()), this.$emit("submit:bout", e);
31623
+ Object.assign(e, n), e.Status = "Completed", e.Ended = (/* @__PURE__ */ new Date()).toISOString(), this.$emit("submit:bout", e);
31624
31624
  },
31625
31625
  directBout(n) {
31626
31626
  const e = this.bouts.find((t) => t.BoutId === n.BoutId);
31627
- e && (e.Status = "Active", this.showDirectorModal = !0, this.selectedBout = n);
31627
+ e && (e.Status = "Active", this.showDirectorModal = !0, this.selectedBout = e);
31628
31628
  },
31629
31629
  editBout(n) {
31630
31630
  this.bouts.find((t) => t.BoutId === n.BoutId) && (this.showEditBoutModal = !0, this.selectedBout = n);