@dcrackel/hematournamentui 1.0.199 → 1.0.201

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.
@@ -9611,9 +9611,8 @@ const xQ = {
9611
9611
  return new Date((/* @__PURE__ */ new Date()).setFullYear((/* @__PURE__ */ new Date()).getFullYear() - 1));
9612
9612
  },
9613
9613
  parseDate(n) {
9614
- if (console.log(n), typeof n == "string") {
9614
+ if (typeof n == "string") {
9615
9615
  if (this.pickerMode === "time") {
9616
- console.log("PICKER TIME", n);
9617
9616
  const [i, o, s] = n.split(":").map(Number);
9618
9617
  return { hours: i, minutes: o, seconds: s || 0 };
9619
9618
  }
@@ -9638,7 +9637,7 @@ function kQ(n, e, t, r, i, o) {
9638
9637
  }, o.datePickerAttrs), null, 16, ["modelValue", "format", "min-date", "mode", "class"])
9639
9638
  ]);
9640
9639
  }
9641
- const da = /* @__PURE__ */ ae(xQ, [["render", kQ], ["__scopeId", "data-v-b7657ddd"]]), DQ = {
9640
+ const da = /* @__PURE__ */ ae(xQ, [["render", kQ], ["__scopeId", "data-v-a34ab0de"]]), DQ = {
9642
9641
  name: "ToggleSwitch",
9643
9642
  components: { BaseText: ye },
9644
9643
  props: {
@@ -9976,7 +9975,7 @@ const zQ = /* @__PURE__ */ ae(PQ, [["render", HQ]]), FQ = {
9976
9975
  this.eventConfig.DEPromationOrder = n;
9977
9976
  },
9978
9977
  handleSubmit() {
9979
- console.log(this.updatedEvent), this.$emit("update:submit", this.updatedEvent);
9978
+ this.$emit("update:submit", this.updatedEvent);
9980
9979
  },
9981
9980
  handleCancel() {
9982
9981
  this.$emit("update:cancel");
@@ -10757,10 +10756,10 @@ const ga = /* @__PURE__ */ ae(Ov, [["render", Pv]]), Rv = {
10757
10756
  },
10758
10757
  methods: {
10759
10758
  handleEditClick(n) {
10760
- console.log("handleEditClick"), this.$emit("edit", this.detail.TournamentId);
10759
+ console.log(n), this.$emit("edit", this.detail.TournamentId);
10761
10760
  },
10762
10761
  listEvents() {
10763
- console.log("handleListEvents"), this.$emit("listEvents", this.detail.TournamentId);
10762
+ this.$emit("listEvents", this.detail.TournamentId);
10764
10763
  }
10765
10764
  }
10766
10765
  }, Nv = { class: "rounded-xl w-72 shadow border border-dropdownSelect hover:border-bright" };
@@ -33042,7 +33041,7 @@ const iN = /* @__PURE__ */ ae(X2, [["render", rN]]), oN = {
33042
33041
  this.showSubmit && this.$emit("submit:bout", this.localBout);
33043
33042
  },
33044
33043
  emitBout() {
33045
- this.localBout.Started === null && (this.localBout.Started = (/* @__PURE__ */ new Date()).toISOString()), this.showSubmit = this.localBout.Score1 === this.maxPoints || this.localBout.Score2 === this.maxPoints || this.localBout.TimeLeft === 0 || this.localBout.CurrentPass === this.maxPasses - 1, console.log(this.localBout), this.$emit("update:bout", this.localBout);
33044
+ this.localBout.Started === null && (this.localBout.Started = (/* @__PURE__ */ new Date()).toISOString()), this.showSubmit = this.localBout.Score1 === this.maxPoints || this.localBout.Score2 === this.maxPoints || this.localBout.TimeLeft === 0 || this.localBout.CurrentPass === this.maxPasses - 1, this.$emit("update:bout", this.localBout);
33046
33045
  }
33047
33046
  }
33048
33047
  }, sN = { class: "w-11/12 mt-5 mx-6" };
@@ -34390,7 +34389,7 @@ const eL = /* @__PURE__ */ ae(Y3, [["render", $3]]), tL = {
34390
34389
  };
34391
34390
  },
34392
34391
  mounted() {
34393
- console.log("PoolResults.vue mounted"), console.log("poolResults", this.poolResults), this.calculateInitialCutoffIndex(this.getNumericValue(this.promoted));
34392
+ this.calculateInitialCutoffIndex(this.getNumericValue(this.promoted));
34394
34393
  },
34395
34394
  methods: {
34396
34395
  handleTabMenuClick(n) {
@@ -34874,7 +34873,6 @@ const hp = /* @__PURE__ */ ae(gL, [["render", hL]]), fL = {
34874
34873
  methods: {
34875
34874
  updateConfig() {
34876
34875
  var e, t;
34877
- console.log(`updateConfig large=${this.large} roundName=${this.roundName} bracketSize=${this.bracketSize}`);
34878
34876
  const n = this.large ? "large" : "small";
34879
34877
  this.currentConfig = ((t = (e = fL[this.bracketSize]) == null ? void 0 : e[n]) == null ? void 0 : t[this.roundName]) || {};
34880
34878
  }
@@ -34955,10 +34953,10 @@ const vL = /* @__PURE__ */ ae(pL, [["render", QL]]), yL = {
34955
34953
  computed: {},
34956
34954
  methods: {
34957
34955
  handleEditBout(n) {
34958
- console.log("TableauColumn:handleEditBout", n), this.$emit("action:directingBout", n);
34956
+ this.$emit("action:directingBout", n);
34959
34957
  },
34960
34958
  handleDirectorBout(n) {
34961
- console.log("TableauColumn:handleDirectorBout", n), this.$emit("action:editBout", n);
34959
+ this.$emit("action:editBout", n);
34962
34960
  }
34963
34961
  }
34964
34962
  };
@@ -35024,10 +35022,10 @@ const fp = /* @__PURE__ */ ae(yL, [["render", wL]]), bL = {
35024
35022
  },
35025
35023
  methods: {
35026
35024
  handleEditBout(n) {
35027
- console.log("Tableau:handleEditBout", n), this.$emit("action:directingBout", n);
35025
+ this.$emit("action:directingBout", n);
35028
35026
  },
35029
35027
  handleDirectorBout(n) {
35030
- console.log("Tableau:handleDirectorBout", n), this.$emit("action:editBout", n);
35028
+ this.$emit("action:editBout", n);
35031
35029
  },
35032
35030
  groupBoutsByRound(n) {
35033
35031
  return n.reduce((e, t) => (e[t.RoundLabel] || (e[t.RoundLabel] = []), e[t.RoundLabel].push(t), e), {});
@@ -35052,7 +35050,7 @@ function DL(n, e, t, r, i, o) {
35052
35050
  ])
35053
35051
  ]);
35054
35052
  }
35055
- const SL = /* @__PURE__ */ ae(bL, [["render", DL], ["__scopeId", "data-v-eb0cf487"]]), TL = {
35053
+ const SL = /* @__PURE__ */ ae(bL, [["render", DL], ["__scopeId", "data-v-fc790535"]]), TL = {
35056
35054
  components: {
35057
35055
  ServerConnected: Cc,
35058
35056
  TableauColumn: fp,
@@ -35083,18 +35081,8 @@ const SL = /* @__PURE__ */ ae(bL, [["render", DL], ["__scopeId", "data-v-eb0cf48
35083
35081
  }
35084
35082
  },
35085
35083
  computed: {
35086
- // upcomingBouts() {
35087
- // return this.bouts.filter(bout =>
35088
- // bout.Status === 'Scheduled' &&
35089
- // bout.Person1Id !== 0 &&
35090
- // bout.Person2Id !== 0
35091
- // ).map(bout => this.updateBoutStatus(bout));
35092
- // },
35093
- // completedBouts() {
35094
- // return this.bouts.filter(bout => bout.Status === 'Completed');
35095
- // },
35096
35084
  bracketSize() {
35097
- return this.bouts[0].RoundLabel;
35085
+ return this.bouts && this.bouts.length > 0 && this.bouts[0].RoundLabel ? this.bouts[0].RoundLabel : "";
35098
35086
  },
35099
35087
  activeBouts() {
35100
35088
  return this.bouts.filter((n) => n.Status === "Active");
@@ -35160,14 +35148,10 @@ const SL = /* @__PURE__ */ ae(bL, [["render", DL], ["__scopeId", "data-v-eb0cf48
35160
35148
  Object.assign(e, n), e.Status = "Completed", e.Ended = (/* @__PURE__ */ new Date()).toISOString(), this.$emit("submit:bout", e);
35161
35149
  },
35162
35150
  directBout(n) {
35163
- if (console.log("Bracket: updatedBout", n), console.log("Bracket: updatedBout", n.Person1.PersonId), n.Person1.PersonId === 0 || n.Person2.PersonId === 0) {
35164
- console.log("BYE BYE BYE BYE BYE");
35165
- return;
35166
- }
35167
- n.Status = "Active", this.showDirectorModal = !0, this.selectedBout = n, this.$emit("update:directing-bout", n);
35151
+ n.Person1.PersonId === 0 || n.Person2.PersonId === 0 || (n.Status = "Active", this.showDirectorModal = !0, this.selectedBout = n, this.$emit("update:directing-bout", n));
35168
35152
  },
35169
35153
  editBout(n) {
35170
- console.log("Bracket: editBout", n), this.bouts.find((t) => t.BoutId === n.BoutId) && (this.showEditBoutModal = !0, this.selectedBout = n);
35154
+ this.bouts.find((t) => t.BoutId === n.BoutId) && (this.showEditBoutModal = !0, this.selectedBout = n);
35171
35155
  },
35172
35156
  handleCardSizeToggle(n) {
35173
35157
  this.largeCards = n;
@@ -35904,7 +35888,7 @@ const U4 = /* @__PURE__ */ ae(D4, [["render", F4]]), V4 = {
35904
35888
  this.selectedClub = n, this.localDisplay.clubId = n.link;
35905
35889
  },
35906
35890
  handleSubmit() {
35907
- this.validateForm(), this.hasValidationErrors() || (console.log(this.localDisplay), this.$emit("update:submit", this.localDisplay));
35891
+ this.validateForm(), this.hasValidationErrors() || this.$emit("update:submit", this.localDisplay);
35908
35892
  },
35909
35893
  handleCancel() {
35910
35894
  this.$emit("update:cancel");
@@ -36157,7 +36141,7 @@ const iH = /* @__PURE__ */ ae(tH, [["render", rH]]), oH = {
36157
36141
  },
36158
36142
  methods: {
36159
36143
  openModal() {
36160
- console.log("open modal"), this.showModal = !0;
36144
+ this.showModal = !0;
36161
36145
  },
36162
36146
  closeModal() {
36163
36147
  this.showModal = !1;