1}
style:width={value ? "auto" : "100%"}
on:dragover={on_drag_over}
on:drop={on_drop}
>
{#if value === null}
{/if}
{#if active_source === "webcam" && !streaming && pending}
{:else if active_source === "webcam" && (streaming || (!streaming && !value))}
handle_save(e.detail, "change")}
on:stream={(e) => handle_save(e.detail, "stream")}
on:error
on:drag
on:upload={(e) => handle_save(e.detail, "upload")}
on:close_stream
{stream_state}
mirror_webcam={webcam_options.mirror}
{stream_every}
{streaming}
mode="image"
include_audio={false}
{i18n}
{upload}
{time_limit}
webcam_constraints={webcam_options.constraints}
/>
{:else if value !== null && !streaming}
{/if}