{#each controls as control (control.key)} {@const id = `${baseId}-${control.key}`} {@const current = shown(control)}
{#if control.kind === 'checkbox'} update(control, e.currentTarget.checked)} /> {:else if control.kind === 'select'} {:else if control.kind === 'textarea'} {:else}
update(control, e.currentTarget.value)} /> {#if control.kind === 'range'} {typeof current === 'number' ? current : '–'} {/if}
{/if}
{/each} {#each slots as slot (slot.role)}
{slot.label} ({slot.references.length}/{slot.max}) {#if slot.min > 0} *{/if}
{/each} {#if showAdjustments && plan.adjustments.length > 0} {/if} {#if showAdjustments && plan.errors.length > 0} {/if}