@dcrackel/hematournamentui 1.0.495 → 1.0.496

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.
@@ -35032,14 +35032,15 @@ function iL(t, e, n, r, o, i) {
35032
35032
  ])
35033
35033
  ]),
35034
35034
  h("div", null, [
35035
- p(A, {
35035
+ i.pastCards.length ? (C(), ne(A, {
35036
+ key: 0,
35036
35037
  text: "Past Notes",
35037
35038
  type: "h3",
35038
35039
  size: "lg",
35039
35040
  color: "primary",
35040
35041
  weight: "bold",
35041
35042
  class: "mb-2"
35042
- }),
35043
+ })) : b("", !0),
35043
35044
  (C(!0), m(ue, null, Ee(i.pastCards, (c) => (C(), m("div", {
35044
35045
  key: c.PenaltyId,
35045
35046
  class: "flex items-center justify-between bg-neutral mb-2 border shadow-md p-2 rounded-lg"
@@ -35091,10 +35092,10 @@ const sL = /* @__PURE__ */ se(Jz, [["render", iL]]), AL = {
35091
35092
  this.$emit("update:closeModal", this.bout);
35092
35093
  },
35093
35094
  handleUpdatePenalty(t) {
35094
- this.$emit("penalty:update", t);
35095
+ this.$emit("penalty:update", { penalty: t, fencer1: this.fencer1 });
35095
35096
  },
35096
35097
  handleAddPenalty(t) {
35097
- this.$emit("penalty:add", t);
35098
+ this.$emit("penalty:add", { penalty: t, fencer1: this.fencer1 });
35098
35099
  }
35099
35100
  }
35100
35101
  }, aL = { class: "flex w-full justify-end mt-1" };
@@ -35250,10 +35251,12 @@ const Vp = /* @__PURE__ */ se(AL, [["render", lL]]), cL = {
35250
35251
  this.fencer1ForModal = t, this.showPenaltyModal = !0;
35251
35252
  },
35252
35253
  handleUpdatePenalty(t) {
35253
- this.$emit("penalty:update", t);
35254
+ const e = t.penalty;
35255
+ t.fencer1 ? this.bout.Person1.EventPersons[0].LastNote = e.Notes : this.bout.Person2.EventPersons[0].LastNote = e.Notes, this.$emit("penalty:update", e);
35254
35256
  },
35255
35257
  handleAddPenalty(t) {
35256
- this.$emit("penalty:add", t);
35258
+ const e = t.penalty;
35259
+ t.fencer1 ? this.bout.Person1.EventPersons[0].LastNote = e.Notes : this.bout.Person2.EventPersons[0].LastNote = e.Notes, this.$emit("penalty:add", e);
35257
35260
  }
35258
35261
  }
35259
35262
  }, uL = { class: "w-11/12 mt-5 mx-6" };