{#if $isAuthenticated && mode !== "pin" && mode !== "password"} {/if} {#if mode === "picker" || mode === "manage"}

{mode === "manage" ? "Manage profiles" : "Who's watching?"}

{#if mode === "manage"} Removing a profile only affects this device. It does not sign that person out elsewhere. {:else} Everyone here signs in to the same server. {/if}

{#if $profiles.error}
{$profiles.error}
{/if} {#if entryError}
{entryError}
{/if}
{#each ordered as profile (profile.userId)}
{profile.username} {#if mode === "manage" && !profile.isActive} {:else if mode === "manage"} In use {/if}
{/each} {#if mode === "picker"}
Add profile
{/if}
{:else if mode === "pin" && selected}
{initialsFor(selected.username)}

{selected.username}

selected && enter(selected, code)} oncancel={reset} />
{:else if mode === "password" && selected}

Sign in as {selected.username}

{#if entryError}
{entryError}
{/if}
{:else if mode === "add"}

Add a profile

Another account on the server you are already connected to.

{#if usePinForNew}
{/if} {#if entryError}
{entryError}
{/if}
{/if}