{#if ship.status === 'in_transit' && ship.route?.to === dest}

{ship.symbol} is on its way — arrives in .

{:else if !plan}

No known route from {here ?? 'here'} — the lanes there aren't charted.

{:else if plan.legs.length === 0}

{ship.symbol} is already there.

{:else}
    {#each plan.legs as leg, i (i)}
  1. {leg.kind === 'jump' ? 'jump' : 'fly'} {leg.to} ~{dur(leg.seconds)} · {leg.fuel} fuel
  2. {/each}

Total ~{dur(plan.seconds)} · {plan.fuel} fuel of {ship.fuel.current} {#if plan.nebula}Crosses a nebula: slower than shown.{/if}

{#if fuelShort}

Not enough fuel for the whole trip — refuel at a station first.

{/if} {#if preview} {/if} {#if error} {/if}
{#if ship.status === 'in_transit'}

In flight — orders open on arrival.

{:else if jumpGate} {:else if sameSystem && navigate} {:else if sameSystem && orbit} {:else if firstLeg && firstLeg.kind === 'trip'} {:else if firstLeg?.kind === 'jump'}

Undock to jump from here.

{/if}
{/if}