@dcrackel/hematournamentui 1.0.438 → 1.0.439

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.
@@ -10286,6 +10286,7 @@ const mv = /* @__PURE__ */ ie(iv, [["render", fv]]), Bv = {
10286
10286
  data() {
10287
10287
  return {
10288
10288
  currentStep: 1,
10289
+ localWeapons: this.weapons,
10289
10290
  localEvent: this.event,
10290
10291
  validation: {
10291
10292
  name: !1,
@@ -10335,6 +10336,11 @@ const mv = /* @__PURE__ */ ie(iv, [["render", fv]]), Bv = {
10335
10336
  mounted() {
10336
10337
  this.setInitialValues();
10337
10338
  },
10339
+ watch: {
10340
+ weapons(n) {
10341
+ this.localWeapons = n;
10342
+ }
10343
+ },
10338
10344
  methods: {
10339
10345
  setInitialValues() {
10340
10346
  this.localEvent.rules && this.localEvent.rules.forEach((n) => {
@@ -10389,7 +10395,6 @@ const mv = /* @__PURE__ */ ie(iv, [["render", fv]]), Bv = {
10389
10395
  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), e === "CutOffNumber" && (this.localEvent.CutOffNumber = t, this.eventConfig.CutOffNumber = t), e === "PoolScoreDirection" && (this.localEvent.PoolScoreDirection = t, this.eventConfig.PoolScoreDirection = t);
10390
10396
  },
10391
10397
  handleValueChange(n) {
10392
- console.log("change", n);
10393
10398
  const [e, t] = Object.entries(n)[0];
10394
10399
  this.localEvent[e] = t;
10395
10400
  },
@@ -10450,7 +10455,7 @@ function Qv(n, e, t, r, o, i) {
10450
10455
  o.currentStep === 1 ? (f(), se(A, {
10451
10456
  key: 0,
10452
10457
  event: o.localEvent,
10453
- weapons: t.weapons,
10458
+ weapons: o.localWeapons,
10454
10459
  validation: o.validation,
10455
10460
  steps: o.steps,
10456
10461
  currentStep: o.currentStep - 1,