{#if min && filteredItems.length > 0 && startItem?.started_at}
{#if showZoomButtons}
{ e.stopPropagation() onZoom?.() }} class="hover:text-primary hover:bg-surface p-1 -my-1 rounded-md" > {#if zoom === 'in'}
{:else}
{/if}
{:else}
{/if}
{#if waitingLen > 100 && startItem.created_at}
{:else if startItem?.started_at}
{/if} {#if showIterations} {#each filteredItems as item, i} {#if item.started_at} {@const position = calculateItemPosition(item)}
0 ? 'border-l border-gray-300 dark:border-gray-800 ' : '', i === selectedIndex ? 'outline' : '' )} style="opacity: {opacity}" onclick={(e) => { e.stopPropagation() onSelectIteration?.(item.id) }} >
{#snippet text()} {`#${(idToIterationIndex?.(item.id) ?? 0) + 1}`}
{msToReadableTime(getLength(item), 1)} {#if opacity < 1}
Overlapping
{/if} {/snippet}
{/if} {/each} {:else} {#if selectedItem?.started_at} {@const position = calculateItemPosition(selectedItem)}
{ e.stopPropagation() }} >
{#snippet text()} {msToReadableTime(selectedLen, 1)} {/snippet}
{/if} {/if}
{#if selectedLen > 0}
{msToReadableTimeShort(selectedLen, 1)}
{/if}
{/if}