{#if value === null}
{/if}
{#if value === null && active_source === "webcam"}
handle_save(e.detail)}
on:stream={(e) => handle_save(e.detail)}
on:error
on:drag
on:upload={(e) => handle_save(e.detail)}
mode="image"
include_audio={false}
{i18n}
{upload}
/>
{/if}
{#if value !== null}
dispatch("change")}
{boxesAlpha}
{labelList}
{labelColors}
{boxMinSize}
{interactive}
{handleSize}
{boxThickness}
{singleBox}
{disableEditBoxes}
{showRemoveButton}
{handlesCursor}
{boxSelectedThickness}
src={value.image.url}
/>
{/if}
{#if (sources.length > 1 || sources.includes("clipboard")) && value === null && interactive}