{#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}
{/if} {#if totpSecret}
{totpSecret}
Copy
{/if} {/if}
{/if}
{:else if mode === 'report'}
{#if reportLoading}
Loading report options...
{:else} {#if reportTypes.length}
{#each reportTypes as type, i (i)}
{type.replace(/([A-Z])/g, ' $1').trim()}
{/each}
{/if}
{#if reportSiteKey}
{/if} {/if}
{:else if shouldShowInput}
{/if} {#if mode === 'multiselect'}
{#each items as item (item.label)}
{item.label}
{/each}
{/if} {#if displayError}
{displayError}
{/if}
{confirmLabel}
Cancel
{/if}