{#if open}
ev.target === ev.currentTarget && (open = false)}>
Preferences
Kept in this browser, and nowhere else.
{#each PREFERENCES as p (p.key)}
{#if p.kind === 'toggle'}
setPref(p.key, e.currentTarget.checked)} />
{p.label}
{:else}
{p.label}
setPref(p.key, e.currentTarget.value)}> {#each p.choices ?? [] as c (c.value)}
{c.label}
{/each}
{/if} {#if p.note}
{p.note}
{/if}
{/each}
(open = false)}>Done
{/if}