{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: MPL-2.0
~}}

  <PowerSelect
    @tagName="div"
    data-test-search
    @searchEnabled={{true}}
    @search={{perform this.search}}
    @onInput={{action 'ensureMinimumLength'}}
    @onChange={{action 'selectOption'}}
    @onFocus={{action 'openOnClickOrTab'}}
    @onClose={{action 'onCloseEvent'}}
    @dropdownClass="global-search-dropdown"
    @calculatePosition={{this.calculatePosition}}
    @searchMessageComponent="global-search/message"
    @triggerComponent="global-search/trigger"
    @registerAPI={{action 'storeSelect'}}
    as |option|>
    {{option.label}}
  </PowerSelect>
