{#if loading}

Loading profile...

{:else if profile}
{#if profile.picture} {profile.name {/if}

{profile.name || 'Anonymous'}

{#if profile.about}

{profile.about}

{/if} {#if userStatusEvent && userStatusEvent.content && userStatusEvent.content.trim()}
{:else if userStatus && userStatus.trim()}

{userStatus}

{/if} {#if profile.website && profile.website.length > 0}
{#each profile.website as website} {website} {/each}
{/if} {#if profile.nip05 && profile.nip05.length > 0}
{#each profile.nip05 as nip05} {@const isValid = nip05Validations[nip05]} {@const wellKnownUrl = getNIP05WellKnownUrl(nip05)} {nip05} {#if isValid === true} {:else if isValid === false} {#if wellKnownUrl} {:else} {/if} {:else} {/if} {/each}
{/if} {#if profilePubkey}
{nip19.npubEncode(profilePubkey)}
{/if}
{#if isOwnProfile} {:else if currentUserPubkey && currentUserPubkey !== profilePubkey} {/if}
{#if activeTab === 'pins'} {#if pins.length === 0}

No pinned posts yet.

{:else}
{#each pins as pin (pin.id)} {/each}
{/if} {:else if activeTab === 'notifications'} {#if notifications.length === 0}

No notifications yet.

{:else}
{#each notifications as notification (notification.id)} {/each}
{/if} {:else if activeTab === 'wall'} {#if profileEvent}
{#if sessionManager.isLoggedIn()}

Write on the Wall

{ // Reload wall comments after publishing if (profileEvent) { await loadWallComments(profileEvent.id); } }} />
{:else}

Log in to write on the wall

{/if}

Wall Posts

{#if loadingWall}

Loading wall...

{:else if wallComments.length === 0}

No wall posts yet. Be the first to write on the wall!

{:else}
{#each wallComments as comment (comment.id)} {/each}
{/if}
{:else}

Loading profile event...

{/if} {:else if activeTab === 'interactions'} {#if interactionsWithMe.length === 0}

No interactions with you yet.

{:else}
{#each interactionsWithMe as interaction (interaction.id)} {/each}
{/if} {/if}
{:else}

Profile not found

{/if}