{#if uid === null} {:else if photoQuery.isPending} {:else if photoQuery.isError} {:else if photoQuery.data} {@const pf = primaryFile(photoQuery.data)} {#if showChevrons && currentIndex > 0} {/if} {#if showChevrons && currentIndex >= 0 && currentIndex < order.length - 1} {/if} {#if isVideo(photoQuery.data) && armedUid === uid} {@const vf = videoFile(photoQuery.data)} {#key vf.Hash} {/key} {:else} {@const altText = photoQuery.data.OriginalName ?? pf.Name ?? (isVideo(photoQuery.data) ? 'Video' : 'Photo')} {#if pf.Width && pf.Height} {/if} {altText} {/if} {/if}