{#if !interactive || value !== null}
gradio.dispatch("share", e.detail)}
on:error={(e) => gradio.dispatch("error", e.detail)}
on:end={() => gradio.dispatch("end")}
/>
{:else}
(value = detail)}
on:stream={({ detail }) => {
value = detail;
gradio.dispatch("stream", value);
}}
on:drag={({ detail }) => (dragging = detail)}
{root}
{sources}
{active_source}
{pending}
{streaming}
{handle_reset_value}
bind:dragging
on:edit={() => gradio.dispatch("edit")}
on:play={() => gradio.dispatch("play")}
on:pause={() => gradio.dispatch("pause")}
on:stop={() => gradio.dispatch("stop")}
on:end={() => gradio.dispatch("end")}
on:start_recording={() => gradio.dispatch("start_recording")}
on:pause_recording={() => gradio.dispatch("pause_recording")}
on:stop_recording={(e) => gradio.dispatch("stop_recording", e.detail)}
on:upload={() => gradio.dispatch("upload")}
on:clear={() => gradio.dispatch("clear")}
on:error={handle_error}
i18n={gradio.i18n}
{waveform_settings}
>
{/if}