{#if isCollectionModalOpen} linkCollection(e)} on:unlink={(e) => removeFromCollection(e)} on:close={() => (isCollectionModalOpen = false)} linkedCollectionList={adventure.collections} /> {/if} {#if isWarningModalOpen} (isWarningModalOpen = false)} on:confirm={deleteAdventure} /> {/if} {#if adventure.is_visited} {:else} {/if} {#if adventure.is_public} {:else} {/if} {#if adventure.category} {adventure.category.display_name} {adventure.category.icon} {/if} {#if adventure.user && collection} {#if adventure.user.profile_pic} {:else} {creatorInitials.toUpperCase()} {/if} {/if} {adventure.name} goto(`/locations/${adventure.id}`)} > {#if !readOnly} {#if (adventure.user && adventure.user.uuid == user?.uuid) || (collection && user && collection.shared_with?.includes(user.uuid)) || (collection && user && collection.user == user.uuid)} { if (isActionsMenuOpen) { isActionsMenuOpen = false; return; } closeAllLocationMenus(); isActionsMenuOpen = true; }} > { isActionsMenuOpen = false; editAdventure(); }} class="flex items-center gap-2" > {$t('adventures.edit_location')} {#if user?.uuid == adventure.user?.uuid} { isActionsMenuOpen = false; isCollectionModalOpen = true; }} class="flex items-center gap-2" > {$t('collection.manage_collections')} {:else if collection && user && collection.user == user.uuid} { isActionsMenuOpen = false; removeFromCollection(new CustomEvent('unlink', { detail: collection.id })); }} class="flex items-center gap-2" > {$t('adventures.remove_from_collection')} {/if} {#if adventure.is_public} { isActionsMenuOpen = false; copyLink(); }} class="flex items-center gap-2" > {#if copied} {$t('adventures.link_copied')} {:else} {$t('adventures.copy_link')} {/if} {/if} {#if itineraryItem && itineraryItem.id} {#if !itineraryItem.is_global} { isActionsMenuOpen = false; dispatch('moveToGlobal', { type: 'location', id: adventure.id }); }} class=" flex items-center gap-2" > {$t('itinerary.move_to_trip_context') || 'Move to Trip Context'} { isActionsMenuOpen = false; changeDay(); }} class=" flex items-center gap-2" > {$t('itinerary.change_day')} { isActionsMenuOpen = false; removeFromItinerary(); }} class="text-error flex items-center gap-2" > {$t('itinerary.remove_from_itinerary')} {/if} {#if itineraryItem.is_global} { isActionsMenuOpen = false; removeFromItinerary(); }} class="text-error flex items-center gap-2" > {$t('itinerary.remove_from_trip_context')} {/if} {/if} {#if user.uuid == adventure.user?.uuid} { isActionsMenuOpen = false; isWarningModalOpen = true; }} > {$t('adventures.delete')} {/if} {/if} {/if} {#if adventure.location} {adventure.location} {/if} {#if adventure.rating} {#each renderStars(adventure.rating) as filled} {#if filled} {:else} {/if} {/each} ({adventure.rating}/5) {/if} {#if adventurePriceLabel} 💰 {adventurePriceLabel} {/if} {#if displayActivityTypes.length > 0} {#each displayActivityTypes as tag} {tag} {/each} {#if remainingCount > 0} +{remainingCount} {/if} {/if} {#if !readOnly} {#if type == 'link'} Link Adventure {/if} {/if}