{#snippet actions()} {#if editing && saved} Clone Delete {/if} {/snippet}
(lastSplit = splitOf(event.target) ?? lastSplit)} bind:this={root} >
{#each TX_TYPES as type, index (type)} {/each}
{#if editing && form.type !== originalType}

Saving converts this {originalType} into a {form.type}.

{/if} {#if problem} {/if}
{#each form.splits as split, index (split.key)}
removeSplit(split.key)} bind:form />
{/each}
{#if form.splits.length > 1} Total of {form.splits.length} splits: {#each totals as entry, index (entry.currency?.code ?? index)} {money(entry.amount, entry.currency)} {/each} {/if}
{#if form.splits.length > 1} {/if}
{#if editing && journals.length} {/if}
{#if status}

{status.text} {#each status.extra ?? [] as line (line)} {line} {/each} {#if status.href} Open {/if}

{/if}