{#snippet spark( values: number[] )} {#if values.length > 1} {/if} {/snippet} {#snippet balance( money: Money )} {display.text([money])} {/snippet} {#snippet tools()} {#if total} {display.text(balances)} {#if change?.amount} {display.text(changes, true)} {/if} {/if} {/snippet} {#if shown.length === 0}

{assets.isPending ? "" : "No accounts on the home screen."}

{:else} {#each groups as group (group.code)} {#if group.balance && group.change} {/if} {#each group.accounts as account (account.id)} {@const a = account.attributes} {@const key = accountKey(account.id)} {@const open = expanded.includes(account.id)} column.point(key)} > {#if open} {#each recentRows.get(account.id) ?? [] as tx (tx.key)} column.point(tx.key)} > {:else} {/each} {/if} {/each} {/each}
Account Balance This period
{group.code} {@render balance(group.balance)} {#if toNumber(group.change.amount) !== 0} {/if}
{a.name}
{@render balance(moneyOf(a, a.current_balance))} {#if toNumber(a.balance_difference) !== 0} {/if}
{formatDate(tx.date, "short")} {tx.title}
{recent[expanded.indexOf(account.id)]?.isPending ? "" : "Nothing in the last year."}
{/if}