{#if !interactive}
gradio.dispatch("select", detail)}
on:share={({ detail }) => gradio.dispatch("share", detail)}
on:error={({ detail }) => gradio.dispatch("error", detail)}
{value}
{label}
{show_label}
{show_download_button}
selectable={_selectable}
{show_share_button}
i18n={gradio.i18n}
{show_fullscreen_button}
/>
{:else}
gradio.dispatch("clear_status", loading_status)}
/>
gradio.dispatch("edit")}
on:clear={() => {
gradio.dispatch("clear");
}}
on:stream={() => gradio.dispatch("stream")}
on:drag={({ detail }) => (dragging = detail)}
on:upload={() => gradio.dispatch("upload")}
on:select={({ detail }) => gradio.dispatch("select", detail)}
on:share={({ detail }) => gradio.dispatch("share", detail)}
on:error={({ detail }) => {
loading_status = loading_status || {};
loading_status.status = "error";
gradio.dispatch("error", detail);
}}
{label}
{show_label}
{pending}
{streaming}
{mirror_webcam}
max_file_size={gradio.max_file_size}
i18n={gradio.i18n}
upload={gradio.client.upload}
stream_handler={gradio.client.stream}
>
{#if active_source === "upload" || !active_source}
{:else if active_source === "clipboard"}
{:else}
{/if}
{/if}