{adventureToEdit ? $t('adventures.edit_adventure') : $t('adventures.new_adventure')}

{#if adventure.id === '' || isDetails}
{$t('adventures.basic_information')}



(adventure.rating = 1)} checked={adventure.rating === 1} /> (adventure.rating = 2)} checked={adventure.rating === 2} /> (adventure.rating = 3)} checked={adventure.rating === 3} /> (adventure.rating = 4)} checked={adventure.rating === 4} /> (adventure.rating = 5)} checked={adventure.rating === 5} /> {#if adventure.rating} {/if}


{wikiError}

{#if !collection?.id}
{/if}
{$t('adventures.location_information')}

{#if is_custom_location} {/if}
{#if places.length > 0}

{$t('adventures.search_results')}

{#each places as place} {/each}
{:else if noPlaces}

{$t('adventures.no_results')}

{/if}
{#each markers as marker} {/each} {#if reverseGeocodePlace}

{reverseGeocodePlace.region}, {reverseGeocodePlace.country}

{reverseGeocodePlace.is_visited ? $t('adventures.visited') : $t('adventures.not_visited')}

{#if !reverseGeocodePlace.is_visited}
{$t('adventures.mark_region_as_visited', { values: { region: reverseGeocodePlace.region, country: reverseGeocodePlace.country } })}
{/if} {/if}
{$t('adventures.tags')} ({adventure.activity_types?.length || 0})
{$t('adventures.visits')} ({adventure.visits.length})
{#if !constrainDates} { if (e.key === 'Enter') { e.preventDefault(); addNewVisit(); } }} /> { if (e.key === 'Enter') { e.preventDefault(); addNewVisit(); } }} /> {:else} { if (e.key === 'Enter') { e.preventDefault(); addNewVisit(); } }} /> { if (e.key === 'Enter') { e.preventDefault(); addNewVisit(); } }} /> {/if}
{#if adventure.visits.length > 0}

{$t('adventures.my_visits')}

{#each adventure.visits as visit}

{new Date(visit.start_date).toLocaleDateString(undefined, { timeZone: 'UTC' })}

{#if visit.end_date && visit.end_date !== visit.start_date}

{new Date(visit.end_date).toLocaleDateString(undefined, { timeZone: 'UTC' })}

{/if}

{visit.notes}

{/each} {/if}
{#if warningMessage != ''}
{$t('adventures.warning')}: {warningMessage}
{/if}
{:else}

{$t('adventures.upload_images_here')}




{#if images.length > 0}

{$t('adventures.my_images')}

{:else}

{$t('adventures.no_images')}

{/if}
{#each images as image}
{image.id}
{/each}
{/if} {#if adventure.is_public && adventure.id}

{$t('adventures.share_adventure')}

{window.location.origin}/adventures/{adventure.id}

{/if}