{#if show}

{displayTitle}

{#if message}

{message}

{/if} {#if mode === 'totpSetup'}
{totpEnabled ? 'Two-factor authentication is enabled. Enter a current 6-digit code to disable it.' : 'Scan the QR code with your authenticator app or copy the secret to add it manually.'}
{#if totpLoading}

Preparing TOTP enrollment...

{:else} {#if !totpEnabled} {#if totpQr}
TOTP QR code
{/if} {#if totpSecret}
{totpSecret}
{/if} {/if} {/if}
{:else if mode === 'report'}
{#if reportLoading}

Loading report options...

{:else} {#if reportTypes.length} {/if} {#if reportSiteKey}
{/if} {/if}
{:else if shouldShowInput} {/if} {#if mode === 'multiselect'}
{#each items as item (item.label)} {/each}
{/if} {#if displayError}
{displayError}
{/if}
{/if}