0 ? photos?.map(photoURL) : ['/missing-photo.png']} />

{rent + charges}€

{#if !small} dont {charges}€ de charges
{/if} {#if surface > 0} soit {Math.round((rent + charges) / surface)} €/m² {/if}

{#if surface}

{surface}m²

{DISPLAY_APPARTMENT_KIND[kind]} {#if roomsCount && kind === 'colocation'}
de {roomsCount} chambres{/if}

{/if}
{#if !small}
{#if availableAt.valueOf() >= Date.now()}

{availableAtSentence(secondsAvailableSince, availableAt)} {#if !isToday(availableAt)} {#if secondsAvailableSince > 0}il y a{:else}dans{/if} {durationDisplay(Math.abs(secondsAvailableSince))} {/if}

{/if}

{address} {#if latitude && longitude} à {distanceDisplay( distanceBetween({ latitude, longitude }, ENSEEIHT) )} {/if}

{#if travelTimeToN7?.byBike || travelTimeToN7?.byFoot || travelTimeToN7?.byPublicTransport}

{#if travelTimeToN7.byFoot !== null} {durationDisplay(travelTimeToN7.byFoot)} à pied {/if} {#if travelTimeToN7.byBike !== null} , {durationDisplay(travelTimeToN7.byBike)} à vélo {/if} {#if travelTimeToN7.byPublicTransport !== null} , {durationDisplay(travelTimeToN7.byPublicTransport)} en transports {/if}

{/if}
{#if hasFurniture !== null}

{hasFurniture ? 'Meublé' : 'Non meublé'}

{/if} {#if hasParking !== null}

{hasParking ? 'Place de parking' : 'Pas de place de parking'}

{/if} {#if hasBicycleParking !== null}

{hasBicycleParking ? 'Place pour vélo' : 'Pas de place pour vélo'}

{/if} {#if hasFiberInternet !== null}

{hasFiberInternet ? 'Fibre optique' : 'Pas de fibre optique'}

{/if} {#if hasElevator !== null}

{hasElevator ? 'Ascenseur' : "Pas d'ascenseur"}

{/if} {#if likes.length > 0} {/if}
{/if}
{#if editable || dislikeable}
{#if editable} Modifier {#if !archived} { await fetch(`/appartements/${number}/archiver`, { method: 'POST' }); window.location.reload(); }}>Archiver {:else} { await fetch(`/appartements/${number}/publier`, { method: 'POST' }); window.location.reload(); }}>Publier {/if} Supprimer {/if} {#if dislikeable} Ne plus suivre {/if}
{/if}