{% 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 top_profile = profile_top_placement() %}
{% set isTopProfilesExist = top_profile is defined and null != top_profile and null != profiles %}
{%- set profile = profile.profile is defined ? profile.profile : profile -%}
{% set isSearchPage = form is defined %}
{% 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 -%}
{% set isFetchPriority = isFetchPriority is defined ? isFetchPriority : false %}
{# -------------------------- Если страница поиска -------------------------- #}
{% if isSearchPage %}
{% if form.station is defined and form.station.vars.value|length > 0 %}
{% for station in form.station.vars.value %}
{% if stationFromForm is null%}
{% set stationFromForm = profile.stations[station] is defined ? profile.stations[station] : null %}
{% endif %}
{% endfor %}
{% endif %}
{% set listingStation = stationFromForm %}
{% else %}
{% set listingStation = app.request.attributes.get('station') %}
{% endif %}
{# у топа другие поля в объекте #}
{% set isProfileVip = false %}
{% set isProfileUltraVip = false %}
{% set isProfileTop = isTopProfilesExist and top_profile.uriIdentity == profile.uriIdentity %}
{% if not isProfileTop %}
{% set isProfileVip = profile.isVip is defined ? profile.isVip : profile.adBoardPlacement and profile.adBoardPlacement.type.isVip %}
{% set isProfileUltraVip = profile.isUltraVip is defined ? profile.isUltraVip : profile.adBoardPlacement and profile.adBoardPlacement.type.isUltraVip %}
{% endif %}
{% set labelHtml =
isProfileTop ? '<svg class="profile-list__element-label" xmlns="http://www.w3.org/2000/svg" width="35" height="57" fill="none" viewBox="0 0 35 57"><path fill="#fff" d="M0 40h35v17H0z"/><path fill="#fff" d="M23.31 10a11.3 11.3 0 0 1 8.3 3.6 12.3 12.3 0 0 1 0 16.97L17.5 45.35 3.4 30.57a12.3 12.3 0 0 1-.01-16.96 11.3 11.3 0 0 1 8.3-3.61c2.07 0 4.07.57 5.81 1.62A11.3 11.3 0 0 1 23.31 10"/><path fill="url(#a)" d="M26.62 13.7q1.58.7 2.81 1.97a9.3 9.3 0 0 1 0 12.83L27.9 30.1l-3.83-6.57 1.65-.95c.55-.3.74-1 .42-1.55a1.15 1.15 0 0 0-1.56-.41l-1.65.94-1.34-2.29a1.15 1.15 0 0 0-1.56-.42c-.55.32-.74 1.01-.42 1.56l5.82 10-.28-.01a4.4 4.4 0 0 0-2.5.72c-.42.26-.69.41-1.32.41-.62 0-.88-.16-1.3-.4H20a4.4 4.4 0 0 0-2.5-.73c-1.26 0-1.97.4-2.5.71v.01c-.43.26-.68.41-1.32.41s-.9-.15-1.32-.4a4.4 4.4 0 0 0-2.74-.73l5.82-10c.31-.54.13-1.23-.42-1.55a1.15 1.15 0 0 0-1.56.42l-1.34 2.3-1.65-.95a1.15 1.15 0 0 0-1.57.41c-.31.55-.12 1.24.42 1.55l1.66.95-3.85 6.6-1.57-1.64a9.3 9.3 0 0 1 0-12.82 8.3 8.3 0 0 1 11.94-.3 8.4 8.4 0 0 1 9.11-1.68"/><path fill="url(#b)" d="M9.57 32.69 17.5 41l7.93-8.31-.3-.01c-.64 0-.89.14-1.31.4l-.03.02c-.52.3-1.22.71-2.47.71a4.4 4.4 0 0 1-2.5-.73c-.42-.25-.69-.4-1.3-.4-.65 0-.9.14-1.32.4l-.02.01c-.52.3-1.23.72-2.5.72a4.4 4.4 0 0 1-2.49-.73c-.42-.26-.68-.4-1.31-.4z"/><path fill="url(#c)" d="M27.28 49.9h-2.5v-1.73h2.5q.54 0 .88-.18.35-.19.5-.5.17-.33.17-.74 0-.43-.17-.79-.15-.37-.5-.6a1.6 1.6 0 0 0-.88-.22h-1.7v8.22h-2.23v-9.95h3.93q1.19 0 2.03.43a3.1 3.1 0 0 1 1.77 2.9q0 .95-.46 1.67-.46.7-1.3 1.1t-2.04.4"/><path fill="url(#d)" d="M21.7 48.17v.44q0 1.14-.31 2.04-.3.9-.88 1.54-.57.63-1.36.98-.78.33-1.72.33-.96 0-1.74-.34a4 4 0 0 1-2.26-2.51 6 6 0 0 1-.31-2.04v-.44q0-1.14.31-2.04t.89-1.54 1.36-.97q.78-.35 1.73-.35t1.74.35 1.35.97.89 1.54.31 2.04m-2.24.44v-.46q0-.75-.14-1.34t-.4-.98a2 2 0 0 0-.64-.6 2 2 0 0 0-.87-.2q-.5 0-.88.2-.37.21-.64.6-.25.4-.39.98-.12.6-.13 1.34v.46q0 .75.13 1.34.15.58.4.99.26.4.64.6.38.21.89.21.48 0 .86-.2t.64-.61.39-.99q.14-.59.14-1.34"/><path fill="url(#e)" d="M9.19 43.41v9.95H6.97v-9.95zm3.03 0v1.73H4v-1.73z"/><defs><linearGradient id="a" x1="17.5" x2="17.5" y1="53.5" y2="13" gradientUnits="userSpaceOnUse"><stop stop-color="#f7901d"/><stop offset="1" stop-color="#ffa725"/></linearGradient><linearGradient id="b" x1="17.5" x2="17.5" y1="53.5" y2="13" gradientUnits="userSpaceOnUse"><stop stop-color="#f7901d"/><stop offset="1" stop-color="#ffa725"/></linearGradient><linearGradient id="c" x1="17.5" x2="17.5" y1="53.5" y2="13" gradientUnits="userSpaceOnUse"><stop stop-color="#f7901d"/><stop offset="1" stop-color="#ffa725"/></linearGradient><linearGradient id="d" x1="17.5" x2="17.5" y1="53.5" y2="13" gradientUnits="userSpaceOnUse"><stop stop-color="#f7901d"/><stop offset="1" stop-color="#ffa725"/></linearGradient><linearGradient id="e" x1="17.5" x2="17.5" y1="53.5" y2="13" gradientUnits="userSpaceOnUse"><stop stop-color="#f7901d"/><stop offset="1" stop-color="#ffa725"/></linearGradient></defs></svg>' : ''
%}
<div class="models-item-col{{ isProfileTop ? ' models-item-col-top' : '' }}" 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 button-click-first">Показать телефон</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 button-click-second">{{- 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 isTopProfile %}
<div class="status-line">
<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-top.svg','basicConfig') }}">
</div>
</div>
</div>
{% elseif 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>