@dcrackel/hematournamentui 1.0.437 → 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.
@@ -840,8 +840,12 @@ const GC = /* @__PURE__ */ ie(qC, [["render", UC]]), JC = {
840
840
  this.$refs.dropdownContainer && !this.$refs.dropdownContainer.contains(n.target) && (this.isDropDownOpen = !1);
841
841
  },
842
842
  filterDropDown(n) {
843
- const e = n.target.value.toLowerCase();
844
- this.localItems = this.items.filter((t) => t.text.toLowerCase().includes(e));
843
+ var t, r;
844
+ const e = (r = (t = n == null ? void 0 : n.target) == null ? void 0 : t.value) == null ? void 0 : r.toLowerCase();
845
+ this.localItems = this.items.filter((o) => {
846
+ var i;
847
+ return (i = o == null ? void 0 : o.text) == null ? void 0 : i.toLowerCase().includes(e);
848
+ });
845
849
  }
846
850
  },
847
851
  mounted() {
@@ -9385,9 +9389,15 @@ const Bo = /* @__PURE__ */ ie(UE, [["render", WE]]), XE = {
9385
9389
  NumberOfRings: !1,
9386
9390
  WeaponId: !1,
9387
9391
  saveButtonLabel: "Next"
9388
- }
9392
+ },
9393
+ localWeapons: this.weapons
9389
9394
  };
9390
9395
  },
9396
+ watch: {
9397
+ weapons(n) {
9398
+ this.localWeapons = n;
9399
+ }
9400
+ },
9391
9401
  computed: {
9392
9402
  countedUpLabel() {
9393
9403
  return this.countingUp ? "Score Counts Up From Zero to Max" : "Score Starts at Max and Counts Down to Zero";
@@ -9407,9 +9417,10 @@ const Bo = /* @__PURE__ */ ie(UE, [["render", WE]]), XE = {
9407
9417
  return (n == null ? void 0 : n.RuleValue) || "";
9408
9418
  },
9409
9419
  getWeapons() {
9410
- return this.weapons.map((n) => ({
9411
- text: n.text,
9412
- link: n.link
9420
+ var n;
9421
+ return (n = this.localWeapons) == null ? void 0 : n.map((e) => ({
9422
+ text: e.text,
9423
+ link: e.link
9413
9424
  }));
9414
9425
  }
9415
9426
  },
@@ -9870,8 +9881,10 @@ const fg = /* @__PURE__ */ ie(OQ, [["render", zQ]]), FQ = {
9870
9881
  steps: Array,
9871
9882
  DEFormats: Array
9872
9883
  },
9884
+ emits: ["update", "update:back", "update:submit"],
9873
9885
  data() {
9874
9886
  return {
9887
+ localEventConfig: { ...this.eventConfig },
9875
9888
  selectedFormat: { link: 1, text: "Single Elimination" }
9876
9889
  };
9877
9890
  },
@@ -9882,19 +9895,19 @@ const fg = /* @__PURE__ */ ie(OQ, [["render", zQ]]), FQ = {
9882
9895
  },
9883
9896
  methods: {
9884
9897
  handleDETimerToggle(n) {
9885
- this.$emit("update", { DETimer: n });
9898
+ this.localEventConfig.DETimer = n, this.$emit("update", { DETimer: n });
9886
9899
  },
9887
9900
  handleDETimeChange(n) {
9888
9901
  this.$emit("update", { DETime: n });
9889
9902
  },
9890
9903
  handleDEBoutCountToggle(n) {
9891
- this.$emit("update", { DEBoutCounter: n });
9904
+ this.localEventConfig.DEBoutCounter = n, this.$emit("update", { DEBoutCounter: n });
9892
9905
  },
9893
9906
  handleDEBoutCountChange(n) {
9894
9907
  this.$emit("update", { DEBoutCount: n });
9895
9908
  },
9896
9909
  handleDEMax(n) {
9897
- this.$emit("update", { DEMax: n });
9910
+ this.localEventConfig.DEMax = n, this.$emit("update", { DEMax: n });
9898
9911
  },
9899
9912
  handleDEMaxPointsChange(n) {
9900
9913
  this.$emit("update", { DEMaxPoints: n });
@@ -9909,7 +9922,7 @@ const fg = /* @__PURE__ */ ie(OQ, [["render", zQ]]), FQ = {
9909
9922
  this.$emit("update:submit");
9910
9923
  },
9911
9924
  handleDEFormatChange(n) {
9912
- this.selectedFormat = n, this.eventConfig.DEType = n.text === "Single Elimination" ? "single" : "double", this.$emit("update", { DEType: this.eventConfig.DEType });
9925
+ this.selectedFormat = n, this.localEventConfig.DEType = n.text === "Single Elimination" ? "single" : "double", this.$emit("update", { DEType: this.localEventConfig.DEType });
9913
9926
  }
9914
9927
  }
9915
9928
  }, LQ = { class: "flex flex-col h-full pb-4" }, HQ = { class: "w-full flex justify-center" }, NQ = { class: "grow" }, YQ = { class: "w-full flex flex-row justify-center my-4" }, qQ = { class: "w-full flex flex-col mb-3 ml-1" }, jQ = { class: "grow" }, KQ = { class: "mb-4 mt-8" }, UQ = { class: "mb-2 flex flex-col" }, GQ = { class: "mb-4 mt-8" }, JQ = { class: "mb-2 flex" }, VQ = { class: "mt-1 h-10 w-52" }, WQ = { class: "mb-2 flex" }, XQ = { class: "mt-1 h-10 w-52" }, ZQ = { class: "mb-2 flex" }, _Q = { class: "mt-1 h-10 w-52" }, $Q = {
@@ -9984,15 +9997,15 @@ function rv(n, e, t, r, o, i) {
9984
9997
  h("div", JQ, [
9985
9998
  h("div", VQ, [
9986
9999
  p(c, {
9987
- checked: t.eventConfig.DETimer,
10000
+ checked: o.localEventConfig.DETimer,
9988
10001
  label: "DE Timer",
9989
10002
  labelLeft: !1,
9990
10003
  "onUpdate:checked": i.handleDETimerToggle
9991
10004
  }, null, 8, ["checked", "onUpdate:checked"])
9992
10005
  ]),
9993
- t.eventConfig.DETimer ? (f(), se(u, {
10006
+ o.localEventConfig.DETimer ? (f(), se(u, {
9994
10007
  key: 0,
9995
- inputValue: t.eventConfig.DETime,
10008
+ inputValue: o.localEventConfig.DETime,
9996
10009
  invalid: t.validation.DETime,
9997
10010
  placeholder: "Enter Time in Seconds",
9998
10011
  title: "",
@@ -10002,15 +10015,15 @@ function rv(n, e, t, r, o, i) {
10002
10015
  h("div", WQ, [
10003
10016
  h("div", XQ, [
10004
10017
  p(c, {
10005
- checked: t.eventConfig.DEBoutCounter,
10018
+ checked: o.localEventConfig.DEBoutCounter,
10006
10019
  label: "DE Pass Counter",
10007
10020
  labelLeft: !1,
10008
10021
  "onUpdate:checked": i.handleDEBoutCountToggle
10009
10022
  }, null, 8, ["checked", "onUpdate:checked"])
10010
10023
  ]),
10011
- t.eventConfig.DEBoutCounter ? (f(), se(u, {
10024
+ o.localEventConfig.DEBoutCounter ? (f(), se(u, {
10012
10025
  key: 0,
10013
- inputValue: t.eventConfig.DEBoutCount,
10026
+ inputValue: o.localEventConfig.DEBoutCount,
10014
10027
  invalid: t.validation.DEBoutCount,
10015
10028
  placeholder: "Enter Number of Passes",
10016
10029
  title: "",
@@ -10020,15 +10033,15 @@ function rv(n, e, t, r, o, i) {
10020
10033
  h("div", ZQ, [
10021
10034
  h("div", _Q, [
10022
10035
  p(c, {
10023
- checked: t.eventConfig.DEMax,
10036
+ checked: o.localEventConfig.DEMax,
10024
10037
  label: "DE Max Points",
10025
10038
  labelLeft: !1,
10026
10039
  "onUpdate:checked": i.handleDEMax
10027
10040
  }, null, 8, ["checked", "onUpdate:checked"])
10028
10041
  ]),
10029
- t.eventConfig.DEMax ? (f(), se(u, {
10042
+ o.localEventConfig.DEMax ? (f(), se(u, {
10030
10043
  key: 0,
10031
- inputValue: t.eventConfig.DEMaxPoints,
10044
+ inputValue: o.localEventConfig.DEMaxPoints,
10032
10045
  invalid: t.validation.DEMaxPoints,
10033
10046
  placeholder: "Enter DE Max Points",
10034
10047
  title: "",
@@ -10036,7 +10049,7 @@ function rv(n, e, t, r, o, i) {
10036
10049
  }, null, 8, ["inputValue", "invalid", "onUpdate:value"])) : x("", !0)
10037
10050
  ])
10038
10051
  ]),
10039
- t.eventConfig.DEType === "single" ? (f(), m("div", $Q, [
10052
+ o.localEventConfig.DEType === "single" ? (f(), m("div", $Q, [
10040
10053
  h("div", ev, [
10041
10054
  p(a, {
10042
10055
  color: "quaternary",
@@ -10047,7 +10060,7 @@ function rv(n, e, t, r, o, i) {
10047
10060
  ]),
10048
10061
  h("div", tv, [
10049
10062
  p(c, {
10050
- checked: t.eventConfig.thirdPlaceBout,
10063
+ checked: o.localEventConfig.thirdPlaceBout,
10051
10064
  label: i.thirdPlaceLabel,
10052
10065
  labelLeft: !1,
10053
10066
  "onUpdate:checked": i.handleThirdPlaceToggle
@@ -10273,6 +10286,7 @@ const mv = /* @__PURE__ */ ie(iv, [["render", fv]]), Bv = {
10273
10286
  data() {
10274
10287
  return {
10275
10288
  currentStep: 1,
10289
+ localWeapons: this.weapons,
10276
10290
  localEvent: this.event,
10277
10291
  validation: {
10278
10292
  name: !1,
@@ -10322,6 +10336,11 @@ const mv = /* @__PURE__ */ ie(iv, [["render", fv]]), Bv = {
10322
10336
  mounted() {
10323
10337
  this.setInitialValues();
10324
10338
  },
10339
+ watch: {
10340
+ weapons(n) {
10341
+ this.localWeapons = n;
10342
+ }
10343
+ },
10325
10344
  methods: {
10326
10345
  setInitialValues() {
10327
10346
  this.localEvent.rules && this.localEvent.rules.forEach((n) => {
@@ -10436,7 +10455,7 @@ function Qv(n, e, t, r, o, i) {
10436
10455
  o.currentStep === 1 ? (f(), se(A, {
10437
10456
  key: 0,
10438
10457
  event: o.localEvent,
10439
- weapons: t.weapons,
10458
+ weapons: o.localWeapons,
10440
10459
  validation: o.validation,
10441
10460
  steps: o.steps,
10442
10461
  currentStep: o.currentStep - 1,