{#if notFound}
Lost

Adventure not Found

The adventure you were looking for could not be found. Please try a different adventure or check back later.

{/if} {#if isEditModalOpen} (isEditModalOpen = false)} on:saveEdit={saveEdit} /> {/if} {#if !adventure && !notFound}
{/if} {#if adventure}
{#if adventure.image}
{adventure.name}
{/if}

{adventure.name}

{#if adventure.rating !== undefined && adventure.rating !== null}
{#each Array.from({ length: 5 }, (_, i) => i + 1) as star} {/each}
{/if}
{adventure.is_public ? 'Public' : 'Private'}
{#if adventure.date}
{new Date(adventure.date).toLocaleDateString(undefined, { timeZone: 'UTC' })}
{/if} {#if adventure.location}
{adventure.location}
{/if} {#if adventure.activity_types && adventure.activity_types?.length > 0}
{adventure.activity_types.join(', ')}
{/if} {#if adventure.link} {/if}
{#if adventure.description}

{adventure.description}

{/if}

Trip Details

Trip Type

{adventure.type[0].toLocaleUpperCase() + adventure.type.slice(1)}

{#if data.props.collection} {/if}
{#if adventure.longitude && adventure.latitude}

Latitude

{adventure.latitude}° N

Longitude

{adventure.longitude}° W

{adventure.name}

{adventure.type.charAt(0).toUpperCase() + adventure.type.slice(1)}

{adventure.date ? new Date(adventure.date).toLocaleDateString(undefined, { timeZone: 'UTC' }) : ''}

{/if}
{/if} {data.props.adventure && data.props.adventure.name ? `${data.props.adventure.name}` : 'Adventure'}