import { r as registerInstance, c as createEvent } from './index-442cf464.js';

const comboBoxConnectorCss = "";

const ComboBoxConnector = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.luNewComboBoxConnectorSearchRequest = createEvent(this, "luNewComboBoxConnectorSearchRequest", 7);
    this.luUpdatedComboBoxSearchResults = createEvent(this, "luUpdatedComboBoxSearchResults", 7);
    /**
     * Provided search results
     */
    this.searchResults = [];
  }
  onSearchResultsChange() {
    this.luUpdatedComboBoxSearchResults.emit(this.searchResults);
  }
  onLuNewSearchResultRequested(ev) {
    const data = ev.detail;
    if (data.purpose && data.purpose.toLowerCase() === this.purpose.toLowerCase()) {
      this.luNewComboBoxConnectorSearchRequest.emit({
        searchText: data.searchText,
        comboBoxId: data.comboBoxId
      });
    }
  }
  static get watchers() { return {
    "searchResults": ["onSearchResultsChange"]
  }; }
};
ComboBoxConnector.style = comboBoxConnectorCss;

export { ComboBoxConnector as lu_combo_box_connector };

//# sourceMappingURL=lu-combo-box-connector.entry.js.map