{#if isCollectionModalOpen} (isCollectionModalOpen = false)} /> {/if} {#if isWarningModalOpen} (isWarningModalOpen = false)} on:confirm={deleteAdventure} /> {/if}
{#if adventure.images && adventure.images.length > 0} {:else} No image available {/if}
{#if adventure.type == 'visited' && user?.pk == adventure.user_id}
Visited
{:else if user?.pk == adventure.user_id && adventure.type == 'planned'}
Planned
{:else if (user?.pk !== adventure.user_id && adventure.type == 'planned') || adventure.type == 'visited'}
Adventure
{:else if user?.pk == adventure.user_id && 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 user?.pk == adventure.user_id} {:else} {/if} {/if} {#if type == 'link'} {/if}