{#if isWarningModalOpen} (isWarningModalOpen = false)} on:confirm={deleteTransportation} /> {/if}

{transportation.name}

{$t(`transportation.modes.${transportation.type}`)} {' '}{getTransportationIcon(transportation.type)}
{#if transportation.type === 'plane' && transportation.flight_number}
{transportation.flight_number}
{/if} {#if unlinked}
{$t('adventures.out_of_range')}
{/if}
{#if transportation.from_location}
{$t('adventures.from')}:

{transportation.from_location}

{/if} {#if transportation.date}
{$t('adventures.start')}:

{formatDateInTimezone(transportation.date, transportation.start_timezone)} {#if transportation.start_timezone} ({transportation.start_timezone}) {/if}

{/if}
{#if transportation.to_location}
{$t('adventures.to')}:

{transportation.to_location}

{/if} {#if transportation.end_date}
{$t('adventures.end')}:

{formatDateInTimezone(transportation.end_date, transportation.end_timezone)} {#if transportation.end_timezone} ({transportation.end_timezone}) {/if}

{/if}
{#if transportation.user_id == user?.uuid || (collection && user && collection.shared_with?.includes(user.uuid))}
{/if}