updateSlidingWindow()} /> {#if isShowDeleteConfirmation} (isShowDeleteConfirmation = false)} onConfirm={() => handlePromiseError(trashOrDelete(true))} /> {/if} {#if assets.length > 0}
{#each assetLayouts.assetLayout as layout, layoutIndex (layout.asset.id + '-' + layoutIndex)} {@const currentAsset = layout.asset} {#if layout.display}
{ if (assetInteraction.selectionActive) { handleSelectAssets(toTimelineAsset(currentAsset)); return; } void viewAssetHandler(toTimelineAsset(currentAsset)); }} onSelect={() => handleSelectAssets(toTimelineAsset(currentAsset))} onMouseEvent={() => assetMouseEventHandler(toTimelineAsset(currentAsset))} {showArchiveIcon} asset={toTimelineAsset(currentAsset)} selected={assetInteraction.hasSelectedAsset(currentAsset.id)} selectionCandidate={assetInteraction.hasSelectionCandidate(currentAsset.id)} thumbnailWidth={layout.width} thumbnailHeight={layout.height} /> {#if showAssetName && !isTimelineAsset(currentAsset)}
{currentAsset.originalFileName}
{/if}
{/if} {/each}
{/if} {#if $isViewerOpen} { assetViewingStore.showAssetViewer(false); handlePromiseError(navigate({ targetRoute: 'current', assetId: null })); }} /> {/if}