{#if fieldState} {#if !optionsType || optionsType === "select"} x : x => x.label} getOptionValue={flatOptions ? x => x : x => x.value} id={fieldState.fieldId} disabled={fieldState.disabled} on:change={handleChange} {placeholder} {options} {autocomplete} /> {:else if optionsType === "checkbox"} x : x => x.label} getOptionValue={flatOptions ? x => x : x => x.value} /> {/if} {/if}