{#if isWarningModalOpen} (isWarningModalOpen = false)} on:confirm={deleteCollection} /> {/if} {#if isShareModalOpen} (isShareModalOpen = false)} /> {/if} {#if collection.status === 'folder'} ๐ {$t('adventures.folder')} {:else if collection.status === 'upcoming'} ๐ {$t('adventures.upcoming')} {#if collection.days_until_start !== null} โณ {collection.days_until_start} {collection.days_until_start === 1 ? $t('adventures.day') : $t('adventures.days')} {/if} {:else if collection.status === 'in_progress'} ๐ฏ {$t('adventures.in_progress')} {:else if collection.status === 'completed'} {$t('adventures.completed')} {/if} {#if collection.is_archived} {$t('adventures.archived')} {/if} {#if collection.is_public} {:else} {/if} {#if isOwner && type != 'link' && type != 'viewonly'} {#if type != 'viewonly'} {$t('adventures.edit_collection')} (isShareModalOpen = true)} > {$t('adventures.share')} {#if collection.is_public} {#if copied} {$t('adventures.link_copied')} {:else} {$t('adventures.copy_link')} {/if} {/if} {#if collection.is_archived} archiveCollection(false)} > {$t('adventures.unarchive')} {:else} archiveCollection(true)} > {$t('adventures.archive')} {/if} {$t('adventures.export_zip')} {isDuplicating ? '...' : $t('adventures.duplicate')} (isWarningModalOpen = true)} > {$t('adventures.delete')} {/if} {:else if isSharedMember && type != 'link'} dispatch('leave', collection.id)} > {$t('adventures.leave_collection')} {/if} {collection.name} {#if collection.start_date || collection.end_date} {dateRangeString} {/if} {#if type == 'link'} {#if linkedCollectionList && linkedCollectionList .map(String) .includes(String(collection.id))} dispatch('unlink', collection.id)} > {$t('adventures.remove_from_collection')} {:else} dispatch('link', collection.id)} > {$t('adventures.add_to_collection')} {/if} {/if} {locationLength} {locationLength !== 1 ? $t('locations.locations') : $t('locations.location')} {#if days} ยท {days} {days !== 1 ? $t('adventures.days') : $t('adventures.day')} {/if}
{dateRangeString}