{% import '_macros/price_helpers.html.twig' as price_helpers %}
{% import 'ProfilePreview/utils/macros.partial.twig' as macros %}
{# {% macro minPrice(prices) %}
{% set valid = prices|filter(v => v is not null and v != 0) %}
{% if valid is not empty %}
{% set sorted = valid|sort %}
{{ sorted[0] }}
{% else %}
—
{% endif %}
{% endmacro %} #}
<noindex>
<div class="recommendation{{ componentClass is defined ? ' ' ~ componentClass : '' }} mb-4" id="profileRecommendations">
<div class="recommendation-heading d-flex-c">
<h2 class="text-xxl">Проститутки рядом</h2>
</div>
<div class="recommendation-container">
<div class="recommendation-list d-grid " id="profileNearestContainer">
{% for profile in nearest_profiles %}
<div class="recommendation-item d-flex swiper-slide card profile-card white-round" data-profile-id="{{ profile.id }}">
<a class="card-link" href="{{ path('profile_preview.page', {city: profile.city.uriIdentity, profile: profile.uriIdentity}) }}" target="_blank">
<span class="visually-hidden">{{ profile.name|trans }}</span>
</a>
<div class="card-layout d-grid">
<div class="card__avatar profile-card__avatar">
<div class="profile-card__avatar-link">
{%- set photo = profile|avatar -%}
{%- set station = null -%}
{% if profile.stations|length > 0 %}
{%- set station = profile.stations|first -%}
{% endif %}
{%- if photo and photo.path -%}
{%- set photoType = photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar' -%}
<img class="card__avatar-image profile-card__avatar-image"
src="{{ responsive_asset(photo.path, photoType, "220x308", "jpg") }}"
alt="Эскортница {{ profile.name|trans }}, {{ 'год'|plural(profile.personParameters.age) }},{{ station ? " " ~ station.name ~ "," : '' }} снять, {{ profile.id }}" width="220" height="308">
{%- endif -%}
</div>
<div class="profile-card__icons d-flex-c">
<div data-tippy-icon="{% if profile.selfies|length > 0 %}Есть{% else %}Нет{% endif %} селфи"{% if profile.selfies|length > 0 %} data-tippy-instance{% endif %}>
<svg class="profile-card__icon{% if profile.selfies|length == 0 %} off{% endif %}" width="20" height="20">
<use href="#selfie"></use>
</svg>
</div>
<div data-tippy-icon="{% if profile.selfies|length > 0 %}Есть{% else %}Нет{% endif %} видео"{% if profile.videos|length > 0 %} data-tippy-instance {% endif %}>
<svg class="profile-card__icon{% if profile.videos|length == 0 %} off{% endif %}" width="20" height="20">
<use href="#video"></use>
</svg>
</div>
<div data-tippy-icon="{% if profile.selfies|length > 0 %}Есть отзывы{% else %}Нет отзывов{% endif %}"{% if profile.comments|length > 0 %} data-tippy-instance {% endif %}>
<svg class="profile-card__icon{% if profile.comments|length == 0 %} off{% endif %}" width="20" height="20">
<use href="#comment"></use>
</svg>
</div>
</div>
</div>
<div class="profile-card__info">
<div class="profile-card__personal clr-text-base">
{# <div class="profile-card__personal-item d-flex"><span class="profile-card__personal-title">Возраст</span><span class="profile-card__personal-value fw-600 ml-auto">{{ profile.personParameters.age }}</span></div> #}
<div class="profile-card__personal-item d-flex"><span class="profile-card__personal-title">Грудь</span><span class="profile-card__personal-value fw-600 ml-auto">{{ profile.personParameters.breastSize ? profile.personParameters.breastSize : '-' }}</span></div>
<div class="profile-card__personal-item d-flex"><span class="profile-card__personal-title">Рост</span><span class="profile-card__personal-value fw-600 ml-auto">{{ profile.personParameters.height ? profile.personParameters.height : '-' }}</span></div>
<div class="profile-card__personal-item d-flex"><span class="profile-card__personal-title">Вес</span><span class="profile-card__personal-value fw-600 ml-auto">{{ profile.personParameters.weight ? profile.personParameters.weight : '-' }}</span></div>
</div>
{# {%- set currencyProfile -%}{{ profile.city.countryCode|country_currency }}{%- endset -%} #}
{%- set currencyProfile -%}р{%- endset -%}
<div class="card-time profile-card-time">
<div class="card-time-item d-flex clr-pre-white-bg"><span class="card-time-title">Час</span><span class="card-time-value fw-700 ml-auto clr-main-text">{{ price_helpers._get_min(profile.apartmentsPricing.oneHourPrice,
profile.takeOutPricing.oneHourPrice,
currencyProfile) }}</span></div>
<div class="card-time-item d-flex clr-pre-white-bg"><span class="card-time-title">2 часа</span><span class="card-time-value fw-700 ml-auto clr-main-text">{{ price_helpers._get_min(profile.apartmentsPricing.twoHoursPrice,
profile.takeOutPricing.twoHoursPrice,
currencyProfile) }}</span></div>
<div class="card-time-item d-flex clr-pre-white-bg"><span class="card-time-title">Ночь</span><span class="card-time-value fw-700 ml-auto clr-main-text">{{ price_helpers._get_min(profile.apartmentsPricing.nightPrice,
profile.takeOutPricing.nightPrice,
currencyProfile) }}</span></div>
</div>
<div class="profile-card__tags d-flex">
{% set hasApartmentsPricing = (profile.apartmentsPricing.oneHourPrice or profile.apartmentsPricing.twoHoursPrice or profile.apartmentsPricing.nightPrice) %}
{% set hasTakeoutPricing = (profile.takeOutPricing.oneHourPrice or profile.takeOutPricing.twoHoursPrice or profile.takeOutPricing.nightPrice) %}
{% set nameMapping = {
'Секс анальный': 'Анал',
'Массаж классический': 'Массаж',
'Куннилингус': 'Куни',
'Минет без резинки': 'МБР',
'Секс классический': 'Классика',
'Окончание в рот': 'ОВР'
} %}
{% if hasApartmentsPricing and hasTakeoutPricing %}
<div class="profile-card__tags-item clr-main-text">Апарты и выезд</div>
{% endif %}
{% for service in profile.providedServices %}
{% if service.name in nameMapping|keys %}
<div class="profile-card__tags-item clr-main-text">{{ nameMapping[service.name] }}</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
<div class="card__bio-name profile-card__bio-name">
<div class="profile-card__bio-link fw-700"><span class="profile-card__bio-text mr-1">{{ profile.name|trans }}</span><span class="profile-card__bio-age mr-1">{{ profile.personParameters.age }}</span></div>
</div>
{% if profile.stations|length > 0 %}
{%- set station = profile.stations|first -%}
<div class="profile-card__bio">
<div class="profile-card__metro">
<div class="card__metro-link metro-link">
<a class="metro-icons d-flex-c" href="{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}">
{%- include 'components/metro/icon_generate.partial.twig' with {data: station.id|station_lines} -%}
{{- station.name -}}
</a>
</div>
</div>
</div>
{% endif %}
<div class="profile-card__bio profile-card__bio-with-text">
{% set description = profile.description|trans %}
<p class="profile-card__bio-desc mb-2">
{{- description|length > 100 ? description|slice(0, 100) : description }}...
</p>
</div>
{# <div class="profile-card__bio">
{% set onlyPhoneNumber = profile.phoneNumber|replace({' ': '', '-': '', '(': '', ')': ''}) %}
<button class="card__phone profile-card__phone btn btn-main-border btn-fluid fw-600" type="button" onclick="this.classList.add('d-none');this.nextElementSibling.classList.remove('d-none')">
<svg class="btn-icon" width="21" height="20" fill="none">
<path d="M6.583 2.5H3.666a.836.836 0 0 0-.833.834C2.833 11.159 9.175 17.5 17 17.5a.836.836 0 0 0 .833-.833v-2.908a.836.836 0 0 0-.833-.834 9.503 9.503 0 0 1-2.975-.475.7.7 0 0 0-.259-.041.854.854 0 0 0-.591.241l-1.834 1.834A12.625 12.625 0 0 1 5.85 8.992l1.833-1.833a.836.836 0 0 0 .208-.85 9.467 9.467 0 0 1-.475-2.975.836.836 0 0 0-.833-.834Z"></path>
</svg>
<span class="btn-text">Показать телефон</span>
</button>
<!--noindex-->
<a href="tel:{{ onlyPhoneNumber }}" rel="nofollow" class="card__phone profile-card__phone btn btn-main-border btn-fluid fw-600 is-active d-none">
<svg class="btn-icon" width="21" height="20" fill="none">
<path d="M6.583 2.5H3.666a.836.836 0 0 0-.833.834C2.833 11.159 9.175 17.5 17 17.5a.836.836 0 0 0 .833-.833v-2.908a.836.836 0 0 0-.833-.834 9.503 9.503 0 0 1-2.975-.475.7.7 0 0 0-.259-.041.854.854 0 0 0-.591.241l-1.834 1.834A12.625 12.625 0 0 1 5.85 8.992l1.833-1.833a.836.836 0 0 0 .208-.85 9.467 9.467 0 0 1-.475-2.975.836.836 0 0 0-.833-.834Z"></path>
</svg>
<span class="btn-text">{{- profile.phoneNumber -}}</span>
</a>
<!--/noindex-->
</div> #}
</div>
{% endfor %}
</div>
</div>
</div>
{# <script>
document.addEventListener('DOMContentLoaded', function() {
const profileIdList = [];
{% for profile in nearest_profiles %}
profileIdList.push({{ profile.id }});
{% endfor %}
window.increase_shows({profiles: profileIdList});
});
</script> #}
</noindex>