@dcrackel/hematournamentui 1.0.590 → 1.0.592

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.
@@ -30028,7 +30028,9 @@ const IO = /* @__PURE__ */ oe(dO, [["render", pO]]), BO = {
30028
30028
  this.$emit("add-new", this.inputValue), this.showDropdown = !1;
30029
30029
  },
30030
30030
  onInputChanged(n) {
30031
- this.showDropdown && (this.filteredLocations = this.locations.filter((e) => e.Name.toLowerCase().includes(n.toLowerCase())));
30031
+ if (!this.showDropdown) return;
30032
+ const e = (n || "").toLowerCase();
30033
+ this.filteredLocations = this.locations.filter((t) => (t.Name || "").toLowerCase().includes(e));
30032
30034
  },
30033
30035
  debounceSearch() {
30034
30036
  clearTimeout(this.debouncedTimeout), this.debouncedTimeout = setTimeout(() => {
@@ -30039,7 +30041,7 @@ const IO = /* @__PURE__ */ oe(dO, [["render", pO]]), BO = {
30039
30041
  this.formData.locationName = n, this.locationName = n, n.trim() || this.$emit("update:location", null);
30040
30042
  },
30041
30043
  handleNewAddress(n) {
30042
- this.formData.locationName = this.locationName, this.formData.address = n.address, this.formData.coordinates = n.coordinates, this.inputValue = this.locationName, this.$emit("submit:addNewAddress", this.formData);
30044
+ this.formData.Name = this.locationName, this.formData.Address1 = n.address, this.formData.Coordinates = n.coordinates, this.inputValue = this.locationName, this.$emit("submit:addNewAddress", this.formData);
30043
30045
  },
30044
30046
  handleSubmit() {
30045
30047
  this.$emit("submit:location", this.formData), this.showNewLocation = !1, this.showDropdown = !1, this.showAddNew = !1;