{#if isCollectionModalOpen} (isCollectionModalOpen = false)} /> {/if} {#if isWarningModalOpen} (isWarningModalOpen = false)} on:confirm={deleteAdventure} /> {/if} {#if image_url} (image_url = null)} {adventure} /> {/if}
{#if adventure.images && adventure.images.length > 0} {:else} No image available {/if}
{#if adventure.type == 'visited'}
Visited
{:else if adventure.type == 'planned'}
Planned
{:else if adventure.type == 'lodging'}
Lodging
{:else if adventure.type == 'dining'}
Dining
{/if}
{adventure.is_public ? 'Public' : 'Private'}
{#if adventure.location && adventure.location !== ''}

{adventure.location}

{/if} {#if adventure.date && adventure.date !== ''}

{new Date(adventure.date).toLocaleDateString(undefined, { timeZone: 'UTC' })}{adventure.end_date && adventure.end_date !== '' ? ' - ' + new Date(adventure.end_date).toLocaleDateString(undefined, { timeZone: 'UTC' }) : ''}

{/if} {#if adventure.activity_types && adventure.activity_types.length > 0}
    {#each activityTypes as activity}
    {activity}
    {/each}
{/if}
{#if type != 'link'} {#if adventure.user_id == user?.pk || (collection && user && collection.shared_with.includes(user.uuid))} {:else} {/if} {/if} {#if type == 'link'} {/if}