{#if !compact}
{t('balances')}
{/if}
{#each members as { m, i, bal } (m.id)}
{m.name}{m.id === session.me ? ` (${t('you')})` : ''}
= 0 ? 'fill pos-fill' : 'fill neg-fill'} style:width="{(Math.abs(bal) / maxAbs) * 100}%">
{bal === 0 ? t('settled') : (bal > 0 ? '+' : '−') + conv(Math.abs(bal))}
{/each}
{t('settle_up')}
{#if transfers.length === 0}
{t('all_settled')}
{:else}
{#each transfers as tr} {@const from = session.state.members.findIndex((m) => m.id === tr.from)} {@const to = session.state.members.findIndex((m) => m.id === tr.to)}
{session.memberName(tr.from)} → {session.memberName(tr.to)}
{conv(tr.amount)}
record(tr.from, tr.to, tr.amount)}>{t('mark_paid')}
{/each}
{/if} {#if !compact}
{t('show_in')}
{#if showIn && showIn !== session.base}
{factor === null ? t('rate_unavailable') : t('display_only_rate')}
{/if}
{/if}