@dcrackel/hematournamentui 1.0.252 → 1.0.255

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.
@@ -10031,9 +10031,8 @@ const Hl = /* @__PURE__ */ re(av, [["render", dv]]), gv = {
10031
10031
  selectedItem: "M2 - MeyerSquared"
10032
10032
  };
10033
10033
  },
10034
- computed: {},
10035
10034
  mounted() {
10036
- this.localEventConfig = { ...this.eventConfig };
10035
+ console.log("PoolConfiguration.vue: computed: eventConfig: ", this.eventConfig), this.localEventConfig = { ...this.eventConfig };
10037
10036
  },
10038
10037
  watch: {
10039
10038
  eventConfig: {
@@ -10617,9 +10616,9 @@ const pw = /* @__PURE__ */ re(nw, [["render", hw]]), fw = {
10617
10616
  boutCounter: !1,
10618
10617
  boutCount: 5,
10619
10618
  poolTimer: !1,
10620
- poolMax: !0,
10621
- DEMax: !0,
10622
- thirdPlaceBout: !0,
10619
+ poolMax: !1,
10620
+ DEMax: !1,
10621
+ thirdPlaceBout: !1,
10623
10622
  poolTime: 120,
10624
10623
  poolMaxPoints: 7,
10625
10624
  DETimer: !1,
@@ -10643,12 +10642,55 @@ const pw = /* @__PURE__ */ re(nw, [["render", hw]]), fw = {
10643
10642
  ]
10644
10643
  };
10645
10644
  },
10645
+ mounted() {
10646
+ this.setInitialValues();
10647
+ },
10646
10648
  methods: {
10649
+ setInitialValues() {
10650
+ this.localEvent.rules && this.localEvent.rules.forEach((n) => {
10651
+ switch (n.RuleId) {
10652
+ case 1:
10653
+ this.eventConfig.poolTime = n.RuleValue, this.eventConfig.poolTimer = !0;
10654
+ break;
10655
+ case 2:
10656
+ this.eventConfig.poolMaxPoints = n.RuleValue, this.eventConfig.poolMax = !0;
10657
+ break;
10658
+ case 3:
10659
+ this.eventConfig.DETime = n.RuleValue, this.eventConfig.DETimer = !0;
10660
+ break;
10661
+ case 4:
10662
+ this.eventConfig.DEMaxPoints = n.RuleValue, this.eventConfig.DEMax = !0;
10663
+ break;
10664
+ case 5:
10665
+ this.eventConfig.thirdPlaceBout = n.RuleValue === "true";
10666
+ break;
10667
+ case 6:
10668
+ this.eventConfig.boutCount = n.RuleValue, this.eventConfig.boutCounter = !0;
10669
+ break;
10670
+ case 7:
10671
+ this.eventConfig.DEBoutCount = n.RuleValue, this.eventConfig.DEBoutCounter = !0;
10672
+ break;
10673
+ case 9:
10674
+ this.eventConfig.DEPromationOrder = n.RuleValue.split(",");
10675
+ break;
10676
+ case 10:
10677
+ this.eventConfig.DEPromotionAmount = n.RuleValue;
10678
+ break;
10679
+ case 11:
10680
+ this.eventConfig.seedWith = n.RuleValue;
10681
+ break;
10682
+ case 14:
10683
+ this.eventConfig.maxFencerCount = n.RuleValue;
10684
+ break;
10685
+ }
10686
+ });
10687
+ },
10647
10688
  handleBasicValueChange(n) {
10648
10689
  const [e, t] = Object.entries(n)[0];
10649
- console.log(e, t), e === "EventName" && (this.localEvent.EventName = t), e === "Date " && (this.localEvent.Date = this.formatDateToYYYYMMDD(t)), e === "StartTime " && (this.localEvent.Date = this.formatTimeToHHMMSS(t)), e === "NumberOfRings " && (this.NumberOfRings = t), e === "WeaponId" && (this.localEvent.WeaponId = t.link), console.log(this.localEvent);
10690
+ e === "EventName" && (this.localEvent.EventName = t), e === "Date " && (this.localEvent.Date = this.formatDateToYYYYMMDD(t)), e === "StartTime " && (this.localEvent.Date = this.formatTimeToHHMMSS(t)), e === "NumberOfRings " && (this.NumberOfRings = t), e === "WeaponId" && (this.localEvent.WeaponId = t.link);
10650
10691
  },
10651
10692
  handleValueChange(n) {
10693
+ console.log(n);
10652
10694
  const [e, t] = Object.entries(n)[0];
10653
10695
  this.eventConfig[e] = t;
10654
10696
  },
@@ -10681,7 +10723,7 @@ const pw = /* @__PURE__ */ re(nw, [["render", hw]]), fw = {
10681
10723
  }));
10682
10724
  },
10683
10725
  handleSubmit() {
10684
- this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), console.log(this.localEvent), this.$emit("update:submit", this.localEvent);
10726
+ this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), this.$emit("update:submit", this.localEvent);
10685
10727
  },
10686
10728
  handleCancel() {
10687
10729
  this.$emit("update:cancel");
@@ -36021,8 +36063,8 @@ const OY = /* @__PURE__ */ re(YL, [["render", qL]]), zL = {
36021
36063
  handleTabMenuClick(n) {
36022
36064
  this.$emit("tab:menu-click", n);
36023
36065
  },
36024
- handleStaffView(n) {
36025
- this.viewName = n;
36066
+ handleSubmit(n) {
36067
+ this.$emit("update:submit", n);
36026
36068
  }
36027
36069
  }
36028
36070
  }, UL = { class: "w-full flex flex-row justify-center mt-3" };
@@ -36038,8 +36080,9 @@ function jL(n, e, t, r, i, o) {
36038
36080
  p(s, {
36039
36081
  event: t.event,
36040
36082
  rules: t.rules,
36041
- weapons: t.weapons
36042
- }, null, 8, ["event", "rules", "weapons"])
36083
+ weapons: t.weapons,
36084
+ "onUpdate:submit": o.handleSubmit
36085
+ }, null, 8, ["event", "rules", "weapons", "onUpdate:submit"])
36043
36086
  ])
36044
36087
  ]);
36045
36088
  }