e.stopPropagation()}
onkeydown={(e) => e.stopPropagation()}
>
(publicationActionsOpen = true)}
>
{#if publicationActionsOpen}
(publicationActionsOpen = false)}
>
-
-
-
-
-
-
-
{#if $userStore.signedIn && $userStore.pubkey === indexEvent.pubkey}
-
{/if}
{/if}
{#if publicationDeleted}
Publication deleted. Redirecting to publications page...
{/if}
{#if showArticleCommentUI}
Comment on Article
{#if articleCommentError}
{articleCommentError}
{/if}
{#if articleCommentSuccess}
Comment posted successfully!
{/if}
{/if}
{#if isLoading && leaves.length > 0}
Loading previous sections...
{/if}
{#each leaves as leaf, i}
{#if leaf == null}
Error loading content. One or more events could not be loaded.
{:else}
{@const address = leaf.tagAddress()}
{@const publicationTitle = getMatchingTags(indexEvent, "title")[0]?.[1]}
{@const isFirstSection = i === 0}
onPublicationSectionMounted(el, address)}
/>
{/if}
{/each}
{#if isDone}
You've reached the end of the publication.
{:else if isLoading}
{/if}
{#each leaves as leaf, i}
{#if leaf}
{/if}
{/each}
{#if isInnerActive()}
{#key currentBlog}
{#if currentBlogEvent && currentBlog}
{@const address = currentBlog}
onPublicationSectionMounted(el, address)}
/>
{:else}
{/if}
{/key}
{/if}