<commit_before><SearchBar
  class="consul-auth-method-search-bar"
  ...attributes
  @filter={{@filter}}
>
    <:status as |search|>

{{#let

  (t (concat "components.consul.auth-method.search-bar." search.status.key ".name")
      default=(array
        (concat "common.search." search.status.key)
        (concat "common.consul." search.status.key)
      )
  )

  (t (concat "components.consul.auth-method.search-bar." search.status.key ".options." 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|}}
      <search.RemoveFilter
        aria-label={{t "common.ui.remove" item=(concat key " " value)}}
      >
        <dl>
          <dt>{{key}}</dt>
          <dd>{{value}}</dd>
        </dl>
      </search.RemoveFilter>
{{/let}}

    </:status>
    <:search as |search|>
      <search.Search
        @onsearch={{action @onsearch}}
        @value={{@search}}
        @placeholder={{t "common.search.search"}}
      >
        <search.Select
          class="type-search-properties"
          @position="right"
          @onchange={{action @filter.searchproperty.change}}
          @multiple={{true}}
          @required={{true}}
        as |components|>
          <BlockSlot @name="selected">
            <span>
              {{t "common.search.searchproperty"}}
            </span>
          </BlockSlot>
          <BlockSlot @name="options">
    {{#let components.Optgroup components.Option as |Optgroup Option|}}
            {{#each @filter.searchproperty.default as |prop|}}
              <Option @value={{prop}} @selected={{includes prop @filter.searchproperty.value}}>
                {{t (concat "common.consul." (lowercase prop))}}
              </Option>
            {{/each}}
    {{/let}}
          </BlockSlot>
        </search.Select>
      </search.Search>
    </:search>
    <:filter as |search|>
      <search.Select
        class="type-kind"
        @position="left"
        @onchange={{action @filter.kind.change}}
        @multiple={{true}}
      as |components|>
        <BlockSlot @name="selected">
          <span>
            {{t "components.consul.auth-method.search-bar.kind.name"}}
          </span>
        </BlockSlot>
        <BlockSlot @name="options">
        {{#let components.Optgroup components.Option as |Optgroup Option|}}
          <Option class="kubernetes" @value="kubernetes" @selected={{includes 'kubernetes' @filter.kind.value}}>Kubernetes</Option>
          <Option class="jwt" @value="jwt" @selected={{includes 'jwt' @filter.kind.value}}>JWT</Option>
        {{#if (env 'CONSUL_SSO_ENABLED')}}
          <Option class="oidc" @value="oidc" @selected={{includes 'oidc' @filter.kind.value}}>OIDC</Option>
        {{/if}}
        {{/let}}
        </BlockSlot>
      </search.Select>
      <search.Select
        class="type-locality"
        @position="left"
        @onchange={{action @filter.source.change}}
        @multiple={{true}}
      as |components|>
        <BlockSlot @name="selected">
          <span>
            {{t "components.consul.auth-method.search-bar.locality.name"}}
          </span>
        </BlockSlot>
        <BlockSlot @name="options">
      {{#let components.Optgroup components.Option as |Optgroup Option|}}
        {{#each (array "local" "global") as |option|}}
          <Option class="{{option}}" @value={{option}} @selected={{includes option @filter.types}}>
            {{t (concat "components.consul.auth-method.search-bar.locality.options." option)}}
          </Option>
        {{/each}}
      {{/let}}
        </BlockSlot>
      </search.Select>
    </:filter>
    <:sort as |search|>
      <search.Select
        class="type-sort"
        data-test-sort-control
        @position="right"
        @onchange={{action @sort.change}}
        @multiple={{false}}
        @required={{true}}
      as |components|>
        <BlockSlot @name="selected">
          <span>
            {{#let (from-entries (array
                  (array "MethodName:asc" (t "common.sort.alpha.asc"))
                  (array "MethodName:desc" (t "common.sort.alpha.desc"))
                  (array "TokenTTL:desc" (t "common.sort.duration.asc"))
                  (array "TokenTTL:asc" (t "common.sort.duration.desc"))
                ))
              as |selectable|
            }}
              {{get selectable @sort.value}}
            {{/let}}
          </span>
        </BlockSlot>
        <BlockSlot @name="options">
  {{#let components.Optgroup components.Option as |Optgroup Option|}}
        <Optgroup @label={{t "common.ui.name"}}>
          <Option @value="MethodName:asc" @selected={{eq "MethodName:asc" @sort.value}}>{{t "common.sort.alpha.asc"}}</Option>
          <Option @value="MethodName:desc" @selected={{eq "MethodName:desc" @sort.value}}>{{t "common.sort.alpha.desc"}}</Option>
        </Optgroup>
        <Optgroup @label={{t "common.ui.maxttl"}}>
          <Option @value="TokenTTL:desc" @selected={{eq "TokenTTL:desc" @sort.value}}>{{t "common.sort.duration.asc"}}</Option>
          <Option @value="TokenTTL:asc" @selected={{eq "TokenTTL:asc" @sort.value}}>{{t "common.sort.duration.desc"}}</Option>
        </Optgroup>
  {{/let}}
        </BlockSlot>
      </search.Select>
    </:sort>
</SearchBar><commit_msg>Format auth method search bar template<commit_after><SearchBar class='consul-auth-method-search-bar' ...attributes @filter={{@filter}}>
  <:status as |search|>

    {{#let
      (t
        (concat 'components.consul.auth-method.search-bar.' search.status.key '.name')
        default=(array
          (concat 'common.search.' search.status.key) (concat 'common.consul.' search.status.key)
        )
      )
      (t
        (concat
          'components.consul.auth-method.search-bar.'
          search.status.key
          '.options.'
          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|
    }}
      <search.RemoveFilter aria-label={{t 'common.ui.remove' item=(concat key ' ' value)}}>
        <dl>
          <dt>{{key}}</dt>
          <dd>{{value}}</dd>
        </dl>
      </search.RemoveFilter>
    {{/let}}

  </:status>
  <:search as |search|>
    <search.Search
      @onsearch={{action @onsearch}}
      @value={{@search}}
      @placeholder={{t 'common.search.search'}}
    >
      <search.Select
        class='type-search-properties'
        @position='right'
        @onchange={{action @filter.searchproperty.change}}
        @multiple={{true}}
        @required={{true}}
        as |components|
      >
        <BlockSlot @name='selected'>
          <span>
            {{t 'common.search.searchproperty'}}
          </span>
        </BlockSlot>
        <BlockSlot @name='options'>
          {{#let components.Optgroup components.Option as |Optgroup Option|}}
            {{#each @filter.searchproperty.default as |prop|}}
              <Option @value={{prop}} @selected={{includes prop @filter.searchproperty.value}}>
                {{t (concat 'common.consul.' (lowercase prop))}}
              </Option>
            {{/each}}
          {{/let}}
        </BlockSlot>
      </search.Select>
    </search.Search>
  </:search>
  <:filter as |search|>
    <search.Select
      class='type-kind'
      @position='left'
      @onchange={{action @filter.kind.change}}
      @multiple={{true}}
      as |components|
    >
      <BlockSlot @name='selected'>
        <span>
          {{t 'components.consul.auth-method.search-bar.kind.name'}}
        </span>
      </BlockSlot>
      <BlockSlot @name='options'>
        {{#let components.Optgroup components.Option as |Optgroup Option|}}
          <Option
            class='kubernetes'
            @value='kubernetes'
            @selected={{includes 'kubernetes' @filter.kind.value}}
          >Kubernetes</Option>
          <Option
            class='jwt'
            @value='jwt'
            @selected={{includes 'jwt' @filter.kind.value}}
          >JWT</Option>
          {{#if (env 'CONSUL_SSO_ENABLED')}}
            <Option
              class='oidc'
              @value='oidc'
              @selected={{includes 'oidc' @filter.kind.value}}
            >OIDC</Option>
          {{/if}}
        {{/let}}
      </BlockSlot>
    </search.Select>
    <search.Select
      class='type-locality'
      @position='left'
      @onchange={{action @filter.source.change}}
      @multiple={{true}}
      as |components|
    >
      <BlockSlot @name='selected'>
        <span>
          {{t 'components.consul.auth-method.search-bar.locality.name'}}
        </span>
      </BlockSlot>
      <BlockSlot @name='options'>
        {{#let components.Optgroup components.Option as |Optgroup Option|}}
          {{#each (array 'local' 'global') as |option|}}
            <Option
              class='{{option}}'
              @value={{option}}
              @selected={{includes option @filter.types}}
            >
              {{t (concat 'components.consul.auth-method.search-bar.locality.options.' option)}}
            </Option>
          {{/each}}
        {{/let}}
      </BlockSlot>
    </search.Select>
  </:filter>
  <:sort as |search|>
    <search.Select
      class='type-sort'
      data-test-sort-control
      @position='right'
      @onchange={{action @sort.change}}
      @multiple={{false}}
      @required={{true}}
      as |components|
    >
      <BlockSlot @name='selected'>
        <span>
          {{#let
            (from-entries
              (array
                (array 'MethodName:asc' (t 'common.sort.alpha.asc'))
                (array 'MethodName:desc' (t 'common.sort.alpha.desc'))
                (array 'TokenTTL:desc' (t 'common.sort.duration.asc'))
                (array 'TokenTTL:asc' (t 'common.sort.duration.desc'))
              )
            )
            as |selectable|
          }}
            {{get selectable @sort.value}}
          {{/let}}
        </span>
      </BlockSlot>
      <BlockSlot @name='options'>
        {{#let components.Optgroup components.Option as |Optgroup Option|}}
          <Optgroup @label={{t 'common.ui.name'}}>
            <Option @value='MethodName:asc' @selected={{eq 'MethodName:asc' @sort.value}}>{{t
                'common.sort.alpha.asc'
              }}</Option>
            <Option @value='MethodName:desc' @selected={{eq 'MethodName:desc' @sort.value}}>{{t
                'common.sort.alpha.desc'
              }}</Option>
          </Optgroup>
          <Optgroup @label={{t 'common.ui.maxttl'}}>
            <Option @value='TokenTTL:desc' @selected={{eq 'TokenTTL:desc' @sort.value}}>{{t
                'common.sort.duration.asc'
              }}</Option>
            <Option @value='TokenTTL:asc' @selected={{eq 'TokenTTL:asc' @sort.value}}>{{t
                'common.sort.duration.desc'
              }}</Option>
          </Optgroup>
        {{/let}}
      </BlockSlot>
    </search.Select>
  </:sort>
</SearchBar>
{'fraction_non_alphanumeric': 0.17377255183556234, 'fraction_numerical': 0.0, 'mean_word_length': 2.029363784665579, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5219985', 'n_tokens_mistral': 3335, 'n_tokens_neox': 3329, 'n_words': 591}