{#if displayHeader} {/if} {#if description}
{description}
{/if}
{#if inputCat == 'number'} {#if extra['min'] != undefined && extra['max'] != undefined}
{extra['min']}
{extra['max']} {value}
{:else if extra?.currency} {:else} { dispatch('focus') }} type="number" class={twMerge( valid && error == '' ? '' : 'border !border-red-700 !border-opacity-70 focus:!border-red-700 focus:!border-opacity-30' )} placeholder={defaultValue ?? ''} bind:value min={extra['min']} max={extra['max']} /> {/if} {:else if inputCat == 'boolean'} { e?.stopPropagation() }} class={valid && error == '' ? '' : 'border !border-red-700 !border-opacity-70 focus:!border-red-700 focus:!border-opacity-30'} bind:checked={value} /> {#if type == 'boolean' && value == undefined}   Not set {/if} {:else if inputCat == 'list'}
{#if Array.isArray(itemsType?.multiselect) && Array.isArray(value)}
{:else if Array.isArray(itemsType?.enum) && Array.isArray(value)}
{:else}
{#if Array.isArray(value)} {#each value ?? [] as v, i}
{#if itemsType?.type == 'number'} {:else if itemsType?.type == 'string' && itemsType?.contentEncoding == 'base64'} fileChanged(x, (val) => (value[i] = val))} multiple={false} /> {:else if Array.isArray(itemsType?.enum)} {:else} {/if}
{/each} {:else} List is not an array {/if}
{(value ?? []).length} item{(value ?? []).length != 1 ? 's' : ''} {/if}
{:else if inputCat == 'resource-object'} {:else if inputCat == 'object'} {#if properties && Object.keys(properties).length > 0}
{:else}