{% macro _get_min(price1, price2, currency) %}
{% set price1 = price1 is defined and price1 > 0 ? price1 : 999999999 %}
{% set price2 = price2 is defined and price2 > 0 ? price2 : 999999999 %}
{% if price1 == 999999999 and price2 == 999999999 %}
-
{% elseif price1 == 999999999 %}
{{price2}} {{ currency }}
{% elseif price2 == 999999999 %}
{{price1}} {{ currency }}
{% else %}
{{ min([price1,price2]) }} {{ currency }}
{% endif %}
{% endmacro %}
{%- macro _check_out_price(price1, price2, price3) -%}
{%- set maxPrice = 999999999 %}
{%- set price1 = price1 is defined and price1 > 0 ? price1 : maxPrice -%}
{%- set price2 = price2 is defined and price2 > 0 ? price2 : maxPrice -%}
{%- set price3 = price3 is defined and price3 > 0 ? price3 : maxPrice -%}
{%- if price1 != maxPrice or price2 != maxPrice or price3 != maxPrice -%}
1
{%- else -%}
0
{%- endif -%}
{%- endmacro -%}
{%- set servicesList = "Секс классический|Секс анальный|Секс групповой|Услуги семейной паре|Секс-игрушки|Минет в презервативе|Минет без резинки|Минет глубокий|Минет в машине|Куннилингус|Окончание на грудь|Окончание на лицо|Окончание в рот|Стриптиз профи|Стриптиз не профи|Массаж классический|Массаж профессиональный|Массаж расслабляющий|Массаж тайский|Массаж урологический|Массаж точечный|Массаж эротический|Массаж ветка сакуры|Страпон|Анилингус делаю|Золотой дождь выдача|Золотой дождь прием|Копро выдача|Фистинг анальный|Фистинг классический|Фистинг Вам|Фистинг мне|Госпожа|Игры|Легкая доминация|Порка|Рабыня|Фетиш|Трамплинг|Бондаж|Ролевые игры|Фото/видео съемка|Эскорт|GFE|Целуюсь" -%}
{%- macro _gen_alt(profile, servicesList) -%}
{%- set isMainCity = profile.city.uriIdentity == default_city().uriIdentity -%}
{%- set service1 = servicesList|seo_morphing(profile.id + 12)|lower -%}
{%- set service2 = servicesList|seo_morphing(profile.id + 2)|lower -%}
{%- set commonAlt = ', ' ~ service1 ~ ', ' ~ service2 ~ (profile.seo.phone is defined ? ", тел. " ~ profile.seo.phone : '') ~ ", анкета " ~ profile.id -%}
{%- if isMainCity -%}
{%- set firstStation = '' -%}
{%- if profile.stations|length > 0 -%}
{%- set firstStation = profile.stations|first -%}
{%- endif -%}
{{ profile.name|trans ~ (firstStation ? ', ' ~ firstStation.name : '' ) ~ commonAlt }}
{%- else -%}
{{ profile.name|trans ~ commonAlt }}
{%- endif -%}
{%- endmacro -%}
{% set profiles_array = (profiles is iterable) ? ((profiles.array is defined) ? profiles.array : profiles) : [] %}
{% if top_profile is defined and null != top_profile %}
{% set profiles_array = [top_profile]|merge(profiles_array) %}
{% endif %}
{% for profile in profiles_array %}
{% set isLazyLoad = loop.index < 3 %}
{% set isTopProfile = top_profile is defined and profile == top_profile %}
{%- set isSelfies = profile.selfies is iterable ? (profile.selfies|length > 0) : profile.selfies -%}
{%- set isVideos = profile.videos is iterable ? (profile.videos|length > 0) : profile.videos -%}
{%- set isComments = profile.comments is iterable ? (profile.comments|length > 0) : profile.comments -%}
<div class="models-item-col" data-profile data-id="{{ profile.id }}" data-profile-id="{{ profile.id }}">
<div class="models-item">
<div class="models-item__header d-flex align-items-center">
<div class="models-item__header-title d-flex align-items-center mr-2">
{% if ( profile.isApproved ) %}
<svg class="icon mr-2">
<use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-verify"></use>
</svg>
{% endif %}
<a href="{{ path('profile_preview.page', {'city': profile.city.uriIdentity, 'profile': profile.uriIdentity}) }}" target="_blank">
{{ profile.name|trans }}
</a>
</div>
{# {% if profile.isActive or not profile.isHidden %}
{% set onlyPhoneNumber = profile.phoneNumber|replace({' ': '', '-': '', '(': '', ')': ''}) %}
<button class="models-item__header-phone ml-auto" type="button" onclick="this.classList.add('d-none');this.nextElementSibling.classList.remove('d-none')">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" fill="none"><g clip-path="url(#a)"><path fill="#F7901D" d="M12.39 9.16a.84.84 0 0 0-1.2 0l-1.34 1.35a6.3 6.3 0 0 1-2.52-1.35A6.3 6.3 0 0 1 6 6.65L7.33 5.3a.84.84 0 0 0 0-1.19L3.97.75a.84.84 0 0 0-1.2 0L.5 3.03c-.32.32-.5.76-.49 1.2.02 1.2.34 5.37 3.62 8.65a12.89 12.89 0 0 0 8.64 3.62h.03c.44 0 .86-.18 1.18-.5l2.28-2.28a.84.84 0 0 0 0-1.19L12.4 9.16Zm-.11 5.66c-1.05-.02-4.65-.3-7.47-3.13a11.15 11.15 0 0 1-3.13-7.47l1.7-1.69 2.17 2.18L4.46 5.8a.84.84 0 0 0-.23.77c.02.1.52 2.39 1.91 3.79 1.4 1.4 3.7 1.89 3.8 1.9a.83.83 0 0 0 .76-.22l1.1-1.09 2.17 2.18-1.7 1.69Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 .5h16v16H0z"/></clipPath></defs></svg>
<span class="btn-text">Показать телефон</span>
</button>
<!--noindex--><a href="tel:{{ onlyPhoneNumber }}" rel="nofollow" class="models-item__header-phone ml-auto d-none">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" fill="none"><g clip-path="url(#a)"><path fill="#F7901D" d="M12.39 9.16a.84.84 0 0 0-1.2 0l-1.34 1.35a6.3 6.3 0 0 1-2.52-1.35A6.3 6.3 0 0 1 6 6.65L7.33 5.3a.84.84 0 0 0 0-1.19L3.97.75a.84.84 0 0 0-1.2 0L.5 3.03c-.32.32-.5.76-.49 1.2.02 1.2.34 5.37 3.62 8.65a12.89 12.89 0 0 0 8.64 3.62h.03c.44 0 .86-.18 1.18-.5l2.28-2.28a.84.84 0 0 0 0-1.19L12.4 9.16Zm-.11 5.66c-1.05-.02-4.65-.3-7.47-3.13a11.15 11.15 0 0 1-3.13-7.47l1.7-1.69 2.17 2.18L4.46 5.8a.84.84 0 0 0-.23.77c.02.1.52 2.39 1.91 3.79 1.4 1.4 3.7 1.89 3.8 1.9a.83.83 0 0 0 .76-.22l1.1-1.09 2.17 2.18-1.7 1.69Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 .5h16v16H0z"/></clipPath></defs></svg>
<span class="btn-text">{{- profile.phoneNumber -}}</span>
</a><!--/noindex-->
{% else %}
{% endif %} #}
</div>
<div class="models-item__content d-flex">
<a href="{{ path('profile_preview.page', {'city': profile.city.uriIdentity, 'profile': profile.uriIdentity}) }}" class="models-item__images d-block" target="_blank">
{% set photo = profile|avatar %}
{% if photo %}
<img data-src="{{ responsive_asset(photo.path, 'profile_media', "200x280", "jpg") }}"
class="lazy img-fluid"
alt="{{- _self._gen_alt(profile, servicesList) -}}">
{% endif %}
{% if profile.isUltraVip or profile.isVip %}
<div class="status-line">
{% if profile.isUltraVip %}
<div class="status-line__info d-flex align-items-center">
<div class="status-line__icons d-flex align-items-center justify-content-center mr-2">
<img src="{{ asset('assets/images/icons/icon-status-gold.svg','basicConfig') }}">
</div>
</div>
{% elseif profile.isVip %}
<div class="status-line__info d-flex align-items-center">
<div class="status-line__icons d-flex align-items-center justify-content-center mr-2">
<img src="{{ asset('assets/images/icons/icon-status-silver.svg') }}">
</div>
</div>
{% endif %}
</div>
{% endif %}
</a>
<div class="models-item__info flex-fill">
{%- set station = false -%}
{%- if 'profile_list.list_by_station' in app.request.get('_route') -%}
{%- set station = app.request.attributes.get('station') -%}
{%- elseif profile.stations|length > 0 -%}
{%- set station = profile.stations|first -%}
{%- endif -%}
{% if profile.city.uriIdentity == default_city().uriIdentity and station %}
<div class="item-info metro d-flex align-items-center">
<svg class="icon mr-1">
<use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-metro"></use>
</svg>
<a href="{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}" target="_blank" title="{{ station.name }}">
{%- include 'components/metro/icon_generate.partial.twig' with {data: station.id|station_lines} -%}
{{- station.name -}}
</a>
</div>
{% endif %}
<div class="item-info">
<p class="d-flex align-items-center m-0">
Возраст:<span class="d-inline-block ml-auto">{{ profile.personParameters.age ? profile.personParameters.age : '-' }}</span>
</p>
<p class="d-flex align-items-center m-0">
Рост:<span class="d-inline-block ml-auto">{{ profile.personParameters.height ? profile.personParameters.height : '-' }}</span>
</p>
<p class="d-flex align-items-center m-0">
Вес:<span class="d-inline-block ml-auto">{{ profile.personParameters.weight ? profile.personParameters.weight : '-' }}</span>
</p>
<p class="d-flex align-items-center m-0">
Грудь:<span class="d-inline-block ml-auto">{{ profile.personParameters.breastSize ? profile.personParameters.breastSize : '-' }}</span>
</p>
</div>
{%- set currencyProfile -%}{{ profile.city.countryCode|country_currency }}{%- endset -%}
{%- set minPriceHour -%}{{ _self._get_min(profile.apartmentsPricing.oneHourPrice,profile.takeOutPricing.oneHourPrice,currencyProfile) }}{%- endset -%}
{%- set minPriceTwo -%}{{ _self._get_min(profile.apartmentsPricing.twoHoursPrice,profile.takeOutPricing.twoHoursPrice,currencyProfile) }}{%- endset -%}
{%- set minPriceNight -%}{{ _self._get_min(profile.apartmentsPricing.nightPrice,profile.takeOutPricing.nightPrice,currencyProfile) }}{%- endset -%}
{%- set hasOutPrice -%}{{- _self._check_out_price(profile.takeOutPricing.oneHourPrice,profile.takeOutPricing.twoHoursPrice,profile.takeOutPricing.nightPrice) -}}{%- endset -%}
<div class="item-info">
<p class="d-flex align-items-center m-0">
Час:<span class="d-inline-block ml-auto description">{{ minPriceHour != '-' ? minPriceHour : '-' }}</span>
</p>
<p class="d-flex align-items-center m-0">
2 часа:<span class="d-inline-block ml-auto description">{{ minPriceTwo != '-' ? minPriceTwo : '-' }}</span>
</p>
<p class="d-flex align-items-center m-0">
Ночь:<span class="d-inline-block ml-auto description">{{ minPriceNight != '-' ? minPriceNight : '-' }}</span>
</p>
<p class="d-flex align-items-center m-0">
Выезд:<span class="d-inline-block ml-auto">{{ hasOutPrice == '1' ? 'Есть' : '-' }}</span>
</p>
</div>
<div class="item-status d-flex align-items-center justify-content-center">
{% if isComments %}
<div class="status-item d-flex align-items-center active" data-toggle="tooltip" data-placement="top" title="Есть комментарии">
<svg class="icon">
<use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-comments-thumb"></use>
</svg>
</div>
{% else %}
<div class="status-item d-flex align-items-center">
<svg class="icon">
<use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-comments-thumb"></use>
</svg>
</div>
{% endif %}
{% if isSelfies %}
<div class="status-item d-flex align-items-center active" data-toggle="tooltip" data-placement="top" title="Есть селфи">
<svg class="icon">
<use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-selfie-thumb"></use>
</svg>
</div>
{% else %}
<div class="status-item d-flex align-items-center">
<svg class="icon">
<use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-selfie-thumb"></use>
</svg>
</div>
{% endif %}
{% if isVideos %}
<div class="status-item d-flex align-items-center active" data-toggle="tooltip" data-placement="top" title="Есть видео">
<svg class="icon">
<use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-video-thumb"></use>
</svg>
</div>
{% else %}
<div class="status-item d-flex align-items-center">
<svg class="icon">
<use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-video-thumb"></use>
</svg>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
{% if show_pagination is defined %}
<div class="filtered_profiles_pagination">
{{ porpaginas_render(profiles) }}
</div>
{% endif %}
{%- if app.request.method == 'GET' and app.request.isXmlHttpRequest() -%}
{{- porpaginas_render(profiles) -}}
{% endif %}