{{#unless this.selectKit.isHidden}} {{component this.selectKit.options.headerComponent tabindex=this.tabindex value=this.value selectedContent=this.selectedContent selectKit=this.selectKit id=(concat this.selectKit.uniqueID "-header") }} {{#unless this.selectKit.options.useHeaderFilter}} {{component this.selectKit.options.filterComponent selectKit=this.selectKit id=(concat this.selectKit.uniqueID "-filter") }} {{#if this.selectedContent.length}}
{{#each this.selectedContent as |item|}} {{component this.selectKit.options.selectedChoiceComponent item=item selectKit=this.selectKit mandatoryValues=@mandatoryValues }} {{/each}}
{{/if}} {{/unless}} {{#each this.collections as |collection|}} {{component (component-for-collection collection.identifier this.selectKit) collection=collection selectKit=this.selectKit value=this.value }} {{/each}} {{#if this.selectKit.filter}} {{#if (and this.selectKit.hasNoContent (not this.selectKit.isLoading))}} {{i18n "select_kit.no_content"}} {{else}} {{i18n "select_kit.results_count" count=this.mainCollection.length}} {{/if}} {{/if}}
{{/unless}}