{#if !interactive}
gradio.dispatch("select", detail)}
on:share={({ detail }) => gradio.dispatch("share", detail)}
on:error={({ detail }) => gradio.dispatch("error", detail)}
value={normalise_file(value?.composite || null, root, proxy_url)}
{label}
{show_label}
{show_download_button}
selectable={_selectable}
{show_share_button}
i18n={gradio.i18n}
/>
{:else}
handle_save()}
on:edit={() => 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);
}}
on:error
{brush}
{eraser}
{proxy_url}
changeable={attached_events.includes("change")}
i18n={gradio.i18n}
{transforms}
>
{/if}