{#if !interactive} gradio.dispatch("select", detail)} selectable={_selectable} {value} {label} {show_label} {height} {representations} {config} {confidenceLabel} {moldata} {errors} i18n={gradio.i18n} molviewer={showviewer} /> {:else} { errors = []; value = detail; }} on:drag={({ detail }) => (dragging = detail)} on:clear={() => gradio.dispatch("clear")} on:select={({ detail }) => gradio.dispatch("select", detail)} on:notfound={() => gradio.dispatch( "error", "identifier not found in database, check spelling" )} on:upload={() => gradio.dispatch("upload")} i18n={gradio.i18n} > {/if} {#if errors.length > 0 && value !== null} {/if}