@dcrackel/hematournamentui 1.0.146 → 1.0.148

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.
@@ -633,25 +633,7 @@ const nt = /* @__PURE__ */ de(Up, [["render", Xp]]), qp = {
633
633
  props: {
634
634
  detail: {
635
635
  type: Object,
636
- required: !0,
637
- default: () => ({
638
- TournamentId: null,
639
- Name: "",
640
- StartDate: "",
641
- EndDate: "",
642
- Description: "",
643
- Address: [{
644
- Name: "",
645
- Address1: "",
646
- City: "",
647
- State: "",
648
- Zip: null,
649
- Coordinates: ""
650
- }],
651
- SocialMedia: [],
652
- images: [],
653
- tags: []
654
- })
636
+ required: !0
655
637
  }
656
638
  },
657
639
  data() {
@@ -665,6 +647,12 @@ const nt = /* @__PURE__ */ de(Up, [["render", Xp]]), qp = {
665
647
  },
666
648
  isTruncated() {
667
649
  return this.detail.Description.length > 64;
650
+ },
651
+ address() {
652
+ return this.detail.Address && this.detail.Address.Name;
653
+ },
654
+ tournamentName() {
655
+ return this.detail.Name;
668
656
  }
669
657
  },
670
658
  methods: {
@@ -686,13 +674,13 @@ function _p(n, e, t, r, i, o) {
686
674
  onClick: e[1] || (e[1] = (...s) => o.handleCardClick && o.handleCardClick(...s))
687
675
  }, [
688
676
  I(A, {
689
- text: t.detail.Name,
677
+ text: o.tournamentName,
690
678
  color: "primary",
691
679
  size: "xl",
692
680
  weight: "semi-bold"
693
681
  }, null, 8, ["text"]),
694
682
  I(A, {
695
- text: t.detail.Address && t.detail.Address[0].Name,
683
+ text: o.address,
696
684
  color: "primary",
697
685
  size: "sm",
698
686
  weight: "normal"
@@ -9899,28 +9887,12 @@ const Rl = /* @__PURE__ */ de(MQ, [["render", TQ], ["__scopeId", "data-v-00d7fd2
9899
9887
  props: {
9900
9888
  detail: {
9901
9889
  type: Object,
9902
- required: !0,
9903
- default: () => ({
9904
- tournamentId: null,
9905
- Name: "",
9906
- StartDate: "",
9907
- EndDate: "",
9908
- Description: "",
9909
- ClubId: null,
9910
- AddressId: null,
9911
- "Club.Name": "",
9912
- Address: [{
9913
- Name: "",
9914
- Address1: "",
9915
- City: "",
9916
- State: "",
9917
- Zip: null,
9918
- Coordinates: ""
9919
- }],
9920
- SocialMedia: [],
9921
- images: [],
9922
- tags: []
9923
- })
9890
+ required: !0
9891
+ }
9892
+ },
9893
+ computed: {
9894
+ getImage() {
9895
+ return this.detail.Images && this.detail.Images.length > 0 ? this.detail.Images[0].URL : "";
9924
9896
  }
9925
9897
  },
9926
9898
  methods: {
@@ -9936,7 +9908,7 @@ function RQ(n, e, t, r, i, o) {
9936
9908
  const A = H("TournamentHeader"), a = H("TournamentDetail");
9937
9909
  return E(), y("div", PQ, [
9938
9910
  I(A, {
9939
- artwork: t.detail.images && t.detail.images.length > 0 ? t.detail.images[0].URL : "",
9911
+ artwork: o.getImage,
9940
9912
  tags: t.detail.tags,
9941
9913
  onClick: o.listEvents
9942
9914
  }, null, 8, ["artwork", "tags", "onClick"]),
@@ -28565,10 +28537,10 @@ const xa = /* @__PURE__ */ de(FS, [["render", VS]]), YS = {
28565
28537
  this.tournament.description = n;
28566
28538
  },
28567
28539
  handleSubmit() {
28568
- console.log("submit edits");
28540
+ this.$emit("update:submit", this.localTournament);
28569
28541
  },
28570
28542
  handleCancel() {
28571
- console.log("save nothing and go back to previous page");
28543
+ this.$emit("update:cancel");
28572
28544
  },
28573
28545
  handleUpdateUrl() {
28574
28546
  console.log("handleUpdateUrl");
@@ -28781,10 +28753,10 @@ const YL = /* @__PURE__ */ de(YS, [["render", nM]]), rM = {
28781
28753
  this.$emit("tab:menu-click", n);
28782
28754
  },
28783
28755
  handleSubmit() {
28784
- this.$emit("save:edits", this.localTournament);
28756
+ this.$emit("update:submit", this.localTournament);
28785
28757
  },
28786
28758
  handleCancel() {
28787
- console.log("save nothing and go back to previous page");
28759
+ this.$emit("update:cancel");
28788
28760
  },
28789
28761
  handleUpdateM2(n) {
28790
28762
  this.usingM2 = n, this.localTournament.usingM2 = n;