{#if loading}
{:else if error}

{error}

{:else if data}

{data.event.name}

{#if viewMode === 'list' && allTags.length > 0}
{#each allTags as [tag, count] (tag)} {/each}
{/if} {#if viewMode === 'grid'}
(showAutocomplete = true)} onblur={() => setTimeout(() => (showAutocomplete = false), 150)} class="min-w-0 flex-1 bg-transparent text-sm text-gray-900 placeholder-gray-400 outline-none" /> {#if searchQuery} {/if}
{#if showAutocomplete && suggestions.length > 0}
{#each suggestions as item (item.type + ':' + item.value)} {/each}
{/if}
{#if activeFilters.length > 0}
{#each activeFilters as filter (filter.type + ':' + filter.value)} {filter.type === 'tag' ? '#' : ''}{filter.value} {/each} {#if activeFilters.length >= 2} {/if}
{/if}
{/if}
{#if displayPosts.length === 0}

Noch keine Fotos.

{#if activeFilters.length > 0} {/if}
{:else if viewMode === 'list'}
{#each displayPosts as post (post.id)}
{initial(post.uploader)}

{post.uploader}

{formatDate(post.timestamp)}

{post.likes} {#if commentsEnabled} {post.comments.length} {/if}
{#if post.caption}

{post.caption}

{/if}
{/each}
{:else}
{#each displayPosts as post (post.id)}

{post.uploader}

{post.likes} {#if commentsEnabled} {post.comments.length} {/if}
{/each}
{/if}

{data.event.name} · Offline-Galerie · EventSnap

Exportiert am {formatDate(data.event.exported_at)}

{#if selectedPost} {/if} {/if}