{#if mode === "edit"}
{/if}
{#if mode === "edit" && trimmedDuration !== null}
{format_time(trimmedDuration)}
{ mode = ""; processingVideo = true; trimVideo(ffmpeg, dragStart, dragEnd, videoElement) .then((videoBlob) => { handle_trim_video(videoBlob); }) .then(() => { processingVideo = false; }); }}>Trim
Cancel
{:else}
{/if}
handle_clear()} download={show_download_button ? value?.url : null} > {#if showRedo && mode === ""}
{ handle_reset_value(); mode = ""; }} /> {/if} {#if interactive && mode === ""}
{/if}