updateSlidingWindow()} /> {#if isShowDeleteConfirmation} (isShowDeleteConfirmation = false)} onConfirm={() => handlePromiseError(trashOrDelete(true))} /> {/if} {#if assets.length > 0}
{#each assets as asset, i (asset.id + '-' + i)} {#if isIntersecting(i)} {@const currentAsset = toTimelineAsset(asset)}
{ if (assetInteraction.selectionActive) { handleSelectAssets(currentAsset); return; } void viewAssetHandler(currentAsset); }} onSelect={() => handleSelectAssets(currentAsset)} onMouseEvent={() => assetMouseEventHandler(currentAsset)} {showArchiveIcon} asset={currentAsset} selected={assetInteraction.hasSelectedAsset(currentAsset.id)} selectionCandidate={assetInteraction.hasSelectionCandidate(currentAsset.id)} thumbnailWidth={geometry.getWidth(i)} thumbnailHeight={geometry.getHeight(i)} /> {#if showAssetName && !isTimelineAsset(asset)}
{asset.originalFileName}
{/if}
{/if} {/each}
{/if} {#if $isViewerOpen} {#await import('$lib/components/asset-viewer/asset-viewer.svelte') then { default: AssetViewer }} { assetViewingStore.showAssetViewer(false); handlePromiseError(navigate({ targetRoute: 'current', assetId: null })); }} /> {/await} {/if}