);
    if (!this.$) return;
  },

  computeSuggestedItems(query, _itemsChange) {
    const ignoreCase = true;
    const searcher = new autocomplete.Autocomplete(this.items, ignoreCase);
    return searcher.search(query);
  },

  computeHasSuggestions(_suggestedItemsChange) {
    return this.suggestedItems.length > 0;
  },

  computeShowDropdown(_hasSuggestions, _dropdownOpen) {
    return this.hasSuggestions && this.dropdownOpen;
  },

  clearItem() {
    this.set('selectedItem', null);
    this.set('query'