{{#if @item}}
  {{#let (service/external-source @item) as |externalSource|}}
    {{#if externalSource}}
      <span
        data-test-external-source={{externalSource}}
        class="consul-external-source {{externalSource}}"
        ...attributes
      >
        {{#if @label}}
          {{@label}}
        {{else}}
          {{#if (eq externalSource 'aws')}}
            Registered via {{uppercase externalSource}}
          {{else}}
            Registered via {{capitalize externalSource}}
          {{/if}}
        {{/if}}
      </span>
    {{/if}}
  {{/let}}
{{/if}}
