{#if !gradio.shared.interactive || (gradio.props.value?.[1] && gradio.props.value?.[0])} gradio.dispatch("select", detail)} on:share={({ detail }) => gradio.dispatch("share", detail)} on:error={({ detail }) => gradio.dispatch("error", detail)} on:clear={() => gradio.dispatch("clear")} on:fullscreen={({ detail }) => { fullscreen = detail; }} {fullscreen} interactive={gradio.shared.interactive} bind:value={gradio.props.value} label={gradio.shared.label} show_label={gradio.shared.show_label} show_download_button={gradio.props.buttons.includes("download")} i18n={gradio.i18n} show_fullscreen_button={gradio.props.buttons.includes("fullscreen")} position={normalised_slider_position} slider_color={gradio.props.slider_color} max_height={gradio.props.max_height} /> {:else} gradio.dispatch("clear_status", gradio.shared.loading_status)} /> gradio.dispatch("edit")} on:clear={() => { gradio.dispatch("clear"); }} on:drag={({ detail }) => (dragging = detail)} on:upload={() => gradio.dispatch("upload")} on:error={({ detail }) => { if (gradio.shared.loading_status) gradio.shared.loading_status.status = "error"; gradio.dispatch("error", detail); }} on:close_stream={() => { gradio.dispatch("close_stream", "stream"); }} label={gradio.shared.label} show_label={gradio.shared.show_label} upload_count={gradio.props.upload_count} max_file_size={gradio.shared.max_file_size} i18n={gradio.i18n} upload={(...args) => gradio.shared.client.upload(...args)} stream_handler={gradio.shared.client?.stream} max_height={gradio.props.max_height} > {#if active_source === "upload" || !active_source} {:else if active_source === "clipboard"} {:else} {/if} {/if}