1}
style:width={value ? "auto" : "100%"}
ondragover={on_drag_over}
ondrop={on_drop}
>
{#if value === null}
{#if children}{@render children()}{/if}
{/if}
{#if active_source === "webcam" && !streaming && pending}
{:else if active_source === "webcam" && (streaming || (!streaming && !value))}
handle_save(detail, "change")}
onstream={(detail) => handle_save(detail, "stream")}
{onerror}
{onclose_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}