<:status as |search|> {{#let (t (concat "components.consul.peer.search-bar." search.status.key) default=(array (concat "common.search." search.status.key) (concat "common.consul." search.status.key) ) ) (t (concat "components.consul.peer.search-bar." search.status.value) default=(array (concat "common.search." search.status.value) (concat "common.consul." search.status.value) (concat "common.brand." search.status.value) ) ) as |key value|}}
{{key}}
{{value}}
{{/let}} <:search as |search|> {{t "common.search.searchproperty"}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each @filter.searchproperty.default as |prop|}} {{/each}} {{/let}} <:filter as |search|> {{t "components.consul.peer.search-bar.state.name"}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{#each (get (require '/models/peer' export='schema' from='/components/consul/peer/search-bar' ) 'State.allowedValues' ) as |upperState|}} {{#let (string-to-lower-case upperState) as |state|}} {{/let}} {{/each}} {{/let}} <:sort as |search|> {{#let (from-entries (array (array "Name:asc" (t "common.sort.alpha.asc")) (array "Name:desc" (t "common.sort.alpha.desc")) (array "State:asc" (t "components.consul.peer.search-bar.sort.state.asc")) (array "State:desc" (t "components.consul.peer.search-bar.sort.state.desc")) )) as |selectable| }} {{get selectable @sort.value}} {{/let}} {{#let components.Optgroup components.Option as |Optgroup Option|}} {{/let}}