gradio.dispatch("change")} selectable={_selectable} {root} {sources} {interactive} showDownloadButton={show_download_button} showShareButton={show_share_button} showClearButton={show_clear_button} i18n={gradio.i18n} height={height} width={width} on:edit={() => gradio.dispatch("edit")} on:patch_select={({ detail }) => gradio.dispatch("patch_select", detail)} on:clear={() => { gradio.dispatch("clear"); }} 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} max_file_size={gradio.max_file_size} cli_upload={gradio.client.upload} stream_handler={gradio.client.stream} imgSize={img_size} patchSize={patch_size} showGrid={show_grid} gridColor={grid_color} > {#if active_source === "upload"} {:else if active_source === "clipboard"} {:else} {/if}