{#if show}
e.key === 'Escape' && handleClose()} role="presentation">
e.stopPropagation()} onkeydown={(e) => e.stopPropagation()} role="dialog" aria-modal="true" tabindex="-1">
{$_('reauth.title')}
×
{$_('reauth.subtitle')}
{#if error}
{error}
{/if} {#if availableMethods.length > 1}
{#if availableMethods.includes('password')}
activeMethod = 'password'} > {$_('reauth.password')}
{/if} {#if availableMethods.includes('totp')}
activeMethod = 'totp'} > {$_('reauth.totp')}
{/if} {#if availableMethods.includes('passkey')}
activeMethod = 'passkey'} > {$_('reauth.passkey')}
{/if}
{/if}
{#if activeMethod === 'password'}
{$_('reauth.password')}
{loading ? $_('common.verifying') : $_('common.verify')}
{:else if activeMethod === 'totp'}
{$_('reauth.authenticatorCode')}
{loading ? $_('common.verifying') : $_('common.verify')}
{:else if activeMethod === 'passkey'}
{$_('reauth.passkeyPrompt')}
{loading ? $_('reauth.authenticating') : $_('reauth.usePasskey')}
{/if}
{/if}