{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.city ? reverseGeocodePlace.city + ', ' : ''}{reverseGeocodePlace.region}, {reverseGeocodePlace.country}

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

{#if reverseGeocodePlace.city}

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

{/if}
{#if !reverseGeocodePlace.region_visited || (!reverseGeocodePlace.city_visited && !willBeMarkedVisited)} {/if} {#if (willBeMarkedVisited && !reverseGeocodePlace.region_visited) || (!reverseGeocodePlace.city_visited && willBeMarkedVisited)}
{reverseGeocodePlace.city ? reverseGeocodePlace.city + ', ' : ''}{reverseGeocodePlace.region}, {reverseGeocodePlace.country} {$t('adventures.will_be_marked')}
{/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 immichIntegration} { url = e.detail; fetchImage(); }} /> {/if}
{#if images.length > 0}

{$t('adventures.my_images')}

{#each images as image}
{#if !image.is_primary} {:else}
{/if} {image.id}
{/each}
{:else}

{$t('adventures.no_images')}

{/if}
{/if} {#if adventure.is_public && adventure.id}

{$t('adventures.share_adventure')}

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

{/if}