{#each [['all', 'range_all'], ['year', 'range_year'], ['month', 'range_month'], ['30', 'range_30']] as const as [r, label]} {/each}
{t('total_spent')}
{money(st.total, base)}
{#if mine}
{t('my_spending')}
{money(mine.consumed, base)}
{/if}
{#if st.total === 0}

{t('no_data')}

{:else}

{t('by_category')}

{#if st.byMonth.length > 1}

{t('by_month')}

{#if shownMonth}{fmtMonth(shownMonth.month)}: {money(shownMonth.amount, base)}{/if}
{#each st.byMonth as m, i (m.month)} {/each}
{/if} {#if members.length}

{t('per_member')}

{t('legend_paid')} {t('legend_share')}
{/if} {/if}