{{#outside-click onOutsideClick=(action "hide")}} {{input disabled=(or readOnly asyncContent.loading) class=(concat "form-control input-search search " class " " inputClass) placeholder=placeholder type="text" autocomplete="off" value=filter key-up=(action "search") }} {{#if showOptions}}
{{#if prompt}}
{{#unless value}} {{/unless}} {{#if localizedPrompt}} {{t prompt}} {{else}} {{prompt}} {{/if}}
{{/if}} {{#if prefix}} {{yield this "prefix"}} {{/if}} {{#if loading}}
{{t "generic.loading"}}
{{else if showMessage}}
{{t "searchableSelect.noOptions"}}
{{else}} {{#each unGroupedContent as |item idx|}}
{{#if (eq value (get item optionValuePath))}} {{/if}} {{#if showOptionIcon}} logo {{/if}} {{#if item.custom}} {{get item optionLabelPath}} {{else if localizedLabel}} {{t (get item optionLabelPath)}} {{else if localizedHtmlLabel}} {{t (get item optionLabelPath) htmlSafe=true}} {{else if customLabel}} {{yield item}} {{else}} {{get item optionLabelPath}} {{/if}}
{{/each}} {{#each groupedContent as |group|}}
{{group.group}}
{{#each group.options as |item idx|}}
{{#if (eq value (get item optionValuePath))}} {{/if}} {{#if item.custom}} {{get item optionLabelPath}} {{else if customLabel}} {{yield item}} {{else if localizedLabel}} {{t (get item optionLabelPath)}} {{else if localizedHtmlLabel}} {{t (get item optionLabelPath) htmlSafe=true}} {{else}} {{get item optionLabelPath}} {{/if}}
{{/each}}
{{/each}} {{/if}} {{#if suffix}} {{yield this "suffix"}} {{/if}}
{{/if}} {{/outside-click}}