{#if current?.t === 'Address' && inputValue.length > 0}
(inputValue = '')} />
{:else}
(inputFocused = ev.detail)} on:keydown={handleArrowKeys} {disabled} {placeholder} >
{/if}
(hover = true)} on:mouseleave={() => (hover = false)} bind:this={listEl} > {#if updating}
{/if} {#each options.slice(0, MAX_OPTIONS) as option, idx}
set(option)} on:mousemove={() => focus()} on:focus={() => (optionFocusIndex = idx)} on:blur={() => (optionFocusIndex = -1)} on:keydown={(ev) => { if (ev.key === 'Enter') { set(option); } else { handleArrowKeys(ev); } }} > {#if option.t === 'Address'} {@const address = option.c} {#if option.entry}
{:else}
onAddressResolved(address, ev)} />{/if} {:else if option.t === 'NewAddress'}
{option.c}
{$i18n.t('Create object')}
{:else if option.t === 'Attribute'} {#if option.labels?.length}
{#each option.labels as label}
{label}
{/each}
{option.name}
{:else}
{option.name}
{/if} {:else if option.t === 'NewAttribute'}
{option.label}
{$i18n.t('Create attribute')} ({option.name})
{:else}
{option.t}
{option.c}
{/if}
{/each}