{#if isReadOnly} {:else} {/if}

{#if note?.id && !isReadOnly} {$t('notes.editing_note')} {:else if !isReadOnly} {$t('notes.note_editor')} {:else} {$t('notes.note_viewer')} {/if}

{#if note?.id && !isReadOnly} {$t('notes.update_note_details')} "{initialName}" {:else if !isReadOnly} {$t('notes.create_new_note')} {:else} {$t('notes.viewing_note')} "{note?.name || ''}" {/if}

{$t('adventures.basic_information')}
{#if !isReadOnly && hasVisitDateSuggestion}
Itinerary day Prefilled to match your selected day.
{/if} {#if collection && collection.start_date && collection.end_date && !isReadOnly}
{$t('adventures.date_constrain')}
{/if}
{#if !isReadOnly}
{ if (e.key === 'Enter') { e.preventDefault(); addLink(); } }} />
{/if} {#if newNote.links.length > 0}
{#each newNote.links as link, i}
{link} {#if !isReadOnly} {/if}
{/each}
{/if}
{$t('notes.content')}
{#if !isReadOnly} {:else if note}
{@html renderMarkdown(note.content || '')}
{/if}
{#if warning}
{warning}
{/if} {#if collection.is_public}
{$t('notes.note_public')}
{/if}
{#if !isReadOnly} {/if}