{#if !gradio.shared.interactive}
gradio.dispatch("select", detail)}
on:share={({ detail }) => gradio.dispatch("share", detail)}
on:error={({ detail }) => gradio.dispatch("error", detail)}
on:fullscreen={({ detail }) => {
fullscreen = detail;
}}
{fullscreen}
value={gradio.props.value}
label={gradio.shared.label}
show_label={gradio.shared.show_label}
selectable={gradio.props._selectable}
i18n={gradio.i18n}
buttons={gradio.props.buttons}
/>
{:else}
{#if gradio.shared.loading_status.type === "output"}
gradio.dispatch("clear_status", gradio.shared.loading_status)}
/>
{/if}
gradio.dispatch("edit")}
on:clear={() => {
fullscreen = false;
gradio.dispatch("clear");
gradio.dispatch("input");
}}
on:stream={({ detail }) => {
stream_data = detail;
gradio.dispatch("stream", detail);
}}
on:drag={({ detail }) => (dragging = detail)}
on:upload={() => {
gradio.dispatch("upload");
gradio.dispatch("input");
}}
on:select={({ detail }) => gradio.dispatch("select", detail)}
on:share={({ detail }) => gradio.dispatch("share", detail)}
on:error={({ detail }) => {
gradio.shared.loading_status.status = "error";
gradio.dispatch("error", detail);
}}
on:close_stream={() => {
gradio.dispatch("close_stream");
}}
on:fullscreen={({ detail }) => {
fullscreen = detail;
}}
label={gradio.shared.label}
show_label={gradio.shared.show_label}
pending={gradio.shared.loading_status?.status === "pending" ||
gradio.shared.loading_status?.status === "streaming"}
streaming={gradio.props.streaming}
webcam_options={gradio.props.webcam_options}
stream_every={gradio.props.stream_every}
time_limit={gradio.shared.loading_status?.time_limit}
max_file_size={gradio.shared.max_file_size}
i18n={gradio.i18n}
upload={(...args) => gradio.shared.client.upload(...args)}
stream_handler={gradio.shared.client?.stream}
stream_state={status}
>
{#if active_source === "upload" || !active_source}
{:else if active_source === "clipboard"}
{:else}
{/if}
{/if}