@dcrackel/hematournamentui 1.0.298 → 1.0.299

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.
@@ -13411,7 +13411,7 @@ const Iu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAACRCAYAAADtlO7dAA
13411
13411
  this.message = "Upload completed.";
13412
13412
  },
13413
13413
  handlerError(n, e, t) {
13414
- console.error(`${n} ${e} ${t}`), this.message = "Oops! Something went wrong...";
13414
+ console.error(n), console.error(e), console.error(t), this.message = "Oops! Something went wrong...";
13415
13415
  },
13416
13416
  onImageError() {
13417
13417
  this.$emit("update:url", null), this.showCropper = !0;
@@ -37525,7 +37525,7 @@ const FY = /* @__PURE__ */ te(OY, [["render", LY]]), HY = {
37525
37525
  },
37526
37526
  methods: {
37527
37527
  handleProfilePicUpdate(n) {
37528
- this.person.ProfileImage.URL = n, this.$emit("update:image", n);
37528
+ this.person.ProfileImage = n, this.$emit("update:image", n);
37529
37529
  },
37530
37530
  updateDisplayName(n) {
37531
37531
  this.person.DisplayName = n;
@@ -37743,7 +37743,7 @@ const Nq = /* @__PURE__ */ te(HY, [["render", tq]]), nq = {
37743
37743
  },
37744
37744
  uploadImageName: {
37745
37745
  type: String,
37746
- default: "club-profile-pic"
37746
+ default: "default-club-pic-name"
37747
37747
  },
37748
37748
  uploadServer: {
37749
37749
  type: String,
@@ -37777,12 +37777,22 @@ const Nq = /* @__PURE__ */ te(HY, [["render", tq]]), nq = {
37777
37777
  return this.club.Address.Name;
37778
37778
  },
37779
37779
  getClass() {
37780
- return this.club.ProfileImage ? "border-2 border-dashed rounded-full w-32" : "border-2 border-dashed rounded-lg w-full";
37780
+ return "border-2 border-dashed rounded-full w-32 h-32";
37781
37781
  }
37782
37782
  },
37783
37783
  methods: {
37784
37784
  handleProfilePicUpdate(n) {
37785
- this.club.ProfileImage.URL = n, this.$emit("update:image", n);
37785
+ if (this.club.Images[0] && (this.club.Images[0].URL = n), !this.club.Images[0]) {
37786
+ const e = {
37787
+ URL: n,
37788
+ AltText: "ClubImage",
37789
+ Type: "Club",
37790
+ EntityId: this.club.ClubId,
37791
+ EntityType: "Club"
37792
+ };
37793
+ this.club.Images.push(e);
37794
+ }
37795
+ this.$emit("update:image", n);
37786
37796
  },
37787
37797
  updateName(n) {
37788
37798
  this.club.Name = n;
@@ -37797,16 +37807,16 @@ const Nq = /* @__PURE__ */ te(HY, [["render", tq]]), nq = {
37797
37807
  console.log(this.club), this.$emit("submit:club", this.club);
37798
37808
  },
37799
37809
  handleSelectedAddress(n) {
37800
- console.log("handleSelectedAddress", n), this.club.Address.AddressId = n.link;
37810
+ this.club.Address.AddressId = n.link;
37801
37811
  },
37802
37812
  handleEditorUpdate(n) {
37803
37813
  this.club.Description = n;
37804
37814
  },
37805
37815
  handleAddNewAddress(n) {
37806
- console.log("addNewAddress", n), this.$emit("addNewAddress", n);
37816
+ this.$emit("addNewAddress", n);
37807
37817
  },
37808
37818
  handleAddressUpdate(n) {
37809
- console.log("handleAddressUpdate", n), this.club.AddressId = n.AddressId;
37819
+ this.club.AddressId = n.AddressId;
37810
37820
  }
37811
37821
  }
37812
37822
  }, rq = { class: "flex" }, iq = { class: "rounded-lg p-9 bg-neutral w-full" }, oq = { class: "w-full flex flex-row justify-center mb-4" }, sq = { class: "w-full flex-row justify-center mb-4 flex drop-shadow" }, aq = { class: "flex flex-col mb-4" }, Aq = { class: "flex flex-col mb-4" }, lq = { class: "flex flex-col mb-4" }, cq = { class: "flex flex-col mb-4" }, uq = { class: "flex flex-row justify-end mt-8" };