{label}
{#if sources && sources.includes("microphone") && active_source === "microphone"}
{#if !mic_audio}
{ mic_audio = value; }} onstoprecording={() => { recording = false; dispatch("stop_recording"); }} onclear={() => { active_source = null; recording = false; mic_audio = null; }} />
{:else}
{/if}
{/if} {#if show_upload} dispatch("error", e)} hidden={true} {upload} {stream_handler} /> {/if}
0 || uploading} > {#if value.files.length > 0 || uploading}
{#if show_upload} {/if} {#each value.files as file, index}
{#if file.mime_type && file.mime_type.includes("image")} {:else if file.mime_type && file.mime_type.includes("audio")} {:else if file.mime_type && file.mime_type.includes("video")}
{/each} {#if uploading}
{/if}
{/if}
{#if show_upload && value.files.length === 0 && !uploading} {/if}