{#if !gradio.shared.interactive} gradio.dispatch("clear_status", gradio.shared.loading_status)} /> gradio.dispatch("select", detail)} on:share={({ detail }) => gradio.dispatch("share", detail)} on:error={({ detail }) => gradio.dispatch("error", detail)} value={gradio.props.value?.composite || null} label={gradio.shared.label} show_label={gradio.shared.show_label} buttons={gradio.props.buttons} selectable={gradio.props._selectable} i18n={gradio.i18n} /> {:else} gradio.dispatch("clear_status", gradio.shared.loading_status)} /> { if (!has_run_input) { has_run_input = true; } else { gradio.dispatch("input"); } }} on:save={(e) => handle_save()} on:edit={() => gradio.dispatch("edit")} on:clear={() => gradio.dispatch("clear")} on:drag={({ detail }) => (is_dragging = detail)} on:upload={() => gradio.dispatch("upload")} on:share={({ detail }) => gradio.dispatch("share", detail)} on:error={({ detail }) => { gradio.shared.loading_status = gradio.shared.loading_status || {}; gradio.shared.loading_status.status = "error"; gradio.dispatch("error", detail); }} on:receive_null={() => (gradio.props.value = { background: null, layers: [], composite: null })} on:change={() => { if (!has_run_change) { has_run_change = true; } else { gradio.dispatch("change"); } }} on:error brush={gradio.props.brush} eraser={gradio.props.eraser} changeable={gradio.shared.attached_events.includes("apply")} realtime={gradio.shared.attached_events.includes("change") || gradio.shared.attached_events.includes("input")} i18n={gradio.i18n} transforms={gradio.props.transforms} accept_blobs={gradio.shared.server.accept_blobs} layer_options={gradio.props.layers} upload={(...args) => gradio.shared.client.upload(...args)} placeholder={gradio.props.placeholder} webcam_options={gradio.props.webcam_options} show_download_button={gradio.props.buttons === null ? true : gradio.props.buttons.includes("download")} theme_mode={gradio.shared.theme_mode} on:download_error={(e) => gradio.dispatch("error", e.detail)} > {/if}