{{yield}} {{#if (not loading)}}
{{#each flashMessages.queue as |flash|}} {{#let (lowercase component.flashType) (lowercase flash.action) as |status type|}} {{! flashes automatically ucfirst the type }}

{{capitalize status}}! {{#yield-slot name="notification" params=(block-params status type flash.item)}} {{yield}} {{#if (eq type 'logout')}} {{#if (eq status 'success') }} You are now logged out. {{else}} There was an error logging out. {{/if}} {{else if (eq type 'authorize')}} {{#if (eq status 'success') }} You are now logged in. {{else}} There was an error, please check your SecretID/Token {{/if}} {{/if}} {{else}} {{#if (eq type 'logout')}} {{#if (eq status 'success') }} You are now logged out. {{else}} There was an error logging out. {{/if}} {{else if (eq type 'authorize')}} {{#if (eq status 'success') }} You are now logged in. {{else}} There was an error, please check your SecretID/Token {{/if}} {{/if}} {{/yield-slot}}

{{/let}}
{{/each}}
{{#if authorized}} {{/if}}
{{yield}}
{{#if authorized}} {{yield}} {{/if}}
{{yield}}
{{#if authorized}} {{yield}} {{/if}}
{{/if}}
{{#if loading}} {{else}} {{#if (not enabled) }} {{yield}} {{else if (not authorized)}} {{yield}} {{else}} {{yield}} {{/if}} {{/if}}