@dcrackel/hematournamentui 1.0.492 → 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.
@@ -34861,8 +34861,8 @@ const Gz = /* @__PURE__ */ se(Rz, [["render", Uz]]), Jz = {
34861
34861
  this.selectPenaltyId = null;
34862
34862
  const e = this.fencer1 ? this.bout.Person1.Penalties.findIndex((n) => n.PenaltyId === t) : this.bout.Person2.Penalties.findIndex((n) => n.PenaltyId === t);
34863
34863
  if (e !== -1) {
34864
- const n = this.bout.Person1.Penalties.splice(e, 1)[0];
34865
- this.$emit("penalty:remove", n);
34864
+ const n = this.fencer1 ? this.bout.Person1.Penalties.splice(e, 1)[0] : this.bout.Person1.Penalties.splice(e, 1)[0];
34865
+ this.countCards(), this.$emit("penalty:remove", n);
34866
34866
  }
34867
34867
  },
34868
34868
  getFlagIcon(t) {
@@ -34901,7 +34901,7 @@ const Gz = /* @__PURE__ */ se(Rz, [["render", Uz]]), Jz = {
34901
34901
  }, Vz = { class: "w-full bg-poolSetup p-2" }, Wz = { class: "flex items-center mb-6" }, Xz = {
34902
34902
  key: 0,
34903
34903
  class: "w-12 h-12 rounded-full bg-dropdownSelect flex items-center justify-center"
34904
- }, Zz = ["src"], _z = { class: "pl-3" }, $z = { class: "flex justify-between mb-6" }, eL = { class: "h-12 w-12 bg-neutral border rounded-full z-0 shadow" }, tL = { class: "h-12 w-12 bg-neutral border rounded-full z-0 shadow" }, nL = { class: "mb-4" }, rL = { class: "w-full flex justify-between" }, oL = ["onClick"];
34904
+ }, Zz = ["src"], _z = { class: "pl-3" }, $z = { class: "flex justify-around mb-6" }, eL = { class: "h-12 w-12 bg-neutral border rounded-full z-0 shadow" }, tL = { class: "h-12 w-12 bg-neutral border rounded-full z-0 shadow" }, nL = { class: "mb-4" }, rL = { class: "w-full flex justify-between" }, oL = ["onClick"];
34905
34905
  function iL(t, e, n, r, o, i) {
34906
34906
  const A = y("BaseText"), a = y("BaseIcon"), l = y("BaseButton");
34907
34907
  return C(), m("div", Vz, [
@@ -34961,11 +34961,11 @@ function iL(t, e, n, r, o, i) {
34961
34961
  onClick: e[1] || (e[1] = (c) => i.toggleCard("red"))
34962
34962
  }),
34963
34963
  h("span", {
34964
- class: ee(["h-5 w-5 bg-red rounded-full flex justify-center ml-9 -mt-3 z-10 border", o.redCardToggle ? "bg-red" : "bg-gray-200"])
34964
+ class: ee(["h-5 w-5 rounded-full flex justify-center ml-9 -mt-3 z-10 border", o.redCardToggle ? "bg-red" : "bg-gray-200"])
34965
34965
  }, [
34966
34966
  p(A, {
34967
34967
  text: o.redCardCount,
34968
- size: "sm",
34968
+ size: "xs",
34969
34969
  color: o.redCardToggle ? "neutral" : "primary"
34970
34970
  }, null, 8, ["text", "color"])
34971
34971
  ], 2)
@@ -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" };