{daily.balanceLabel}
{#if !editing}
Edit
{/if}
{#if !editing}
Daily allowance {daily.allowance} · resets {daily.resetTime || "—"} ({daily.resetSourceLabel})
{:else}
{ e.preventDefault(); void submit(); }} >
Daily allowance
Reset time (local)
Leave the time empty to use the auto-detected refill time.
{#if error}
{error}
{/if}
(editing = false)} disabled={saving}>Cancel
{#if saving}
{/if} Save
{/if}