{adventureToEdit ? 'Edit Adventure' : 'New Adventure'}

{#if adventure.id === '' || isDetails}
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}
Location Information

{#if places.length > 0}

Search Results

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

No results found

{/if}
{#each markers as marker} {/each}
Activity Types ({adventure.activity_types?.length || 0})
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}

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 != ''}
Warning: {warningMessage}
{/if}
{:else}

Upload images here




{#if images.length > 0}

My Images

{:else}

No Images

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

Share this Adventure!

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

{/if}