{#if !loading}
{#if valvesSpec}
{#each Object.keys(valvesSpec.properties) as property, idx}
{valvesSpec.properties[property].title}
{#if (valvesSpec?.required ?? []).includes(property)}
*required
{/if}
{#if (valves[property] ?? null) !== null}
{#if valvesSpec.properties[property]?.enum ?? null}
{:else if (valvesSpec.properties[property]?.type ?? null) === 'boolean'}
{valves[property] ? 'Enabled' : 'Disabled'}
{:else}
{/if}
{/if}
{#if (valvesSpec.properties[property]?.description ?? null) !== null}
{valvesSpec.properties[property].description}
{/if}