{% macro _time_to_work(profile) %}
{% if (profile.phoneCallRestrictions.timeFrom == '' and profile.phoneCallRestrictions.timeTo == '') or
(profile.phoneCallRestrictions.timeFrom == profile.phoneCallRestrictions.timeTo) %}
{% trans with {} from 'profile' %}Круглосуточно{% endtrans %}
{% else %}
с
{{ profile.phoneCallRestrictions.timeFrom == '' ? 0 : profile.phoneCallRestrictions.timeFrom }}
до
{{ profile.phoneCallRestrictions.timeTo == '' ? 0 : profile.phoneCallRestrictions.timeTo }}
{% endif %}
{% endmacro %}
{%- if profile.isActive or not profile.hidden -%}
{%- set onlyPhoneNumber = profile.phoneNumber|replace({' ': '', '-': '', '(': '', ')': ''}) -%}
<div class="telephone-mobile d-flex" id="mobile-contacts">
<div class="telephone-mobile-hide-block">
<div class="telephone-mobile-text-scf d-flex">Сообщите, что звоните с Стрелочек</div>
<div class="telephone-mobile-time-work">
<div class="telephone-mobile-time-work-item">Отвечаю на:
<span>
{%- if profile.phoneCallRestrictions.answeringTo|length > 0 %}
{%- for answeringTo in profile.phoneCallRestrictions.answeringTo %}
{{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}{% if not loop.last %},{% endif %}
{% endfor -%}
{%- else -%}
Не указано
{%- endif -%}
</span>
</div>
<div class="telephone-mobile-time-work-item">Работаю: <span>{{ _self._time_to_work(profile) }}</span></div>
</div>
<p class="telephone-mobile-text">Участились случаи мошенничества. Не отправляйте предоплату.</p>
</div>
<div class="telephone-mobile-btn-list d-flex">
<button class="number" type="button" onclick="this.classList.add('d-none');this.nextElementSibling.classList.remove('d-none')">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="m19.63 15.67-4.56-4.15a1.12 1.12 0 0 0-1.56.05l-2.69 2.76a6.45 6.45 0 0 1-3.28-1.87 6.41 6.41 0 0 1-1.87-3.28l2.76-2.69a1.12 1.12 0 0 0 .05-1.56L4.33.37a1.12 1.12 0 0 0-1.56-.1L.33 2.36c-.19.2-.3.45-.32.73-.02.28-.34 6.93 4.82 12.08A17 17 0 0 0 16.9 20c.28-.01.54-.13.73-.33l2.09-2.43a1.12 1.12 0 0 0-.1-1.56Z"/></svg>
<span>Показать телефон</span>
</button>
<!--noindex--><a href="tel:{{ onlyPhoneNumber }}" rel="nofollow" class="number d-none">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="m19.63 15.67-4.56-4.15a1.12 1.12 0 0 0-1.56.05l-2.69 2.76a6.45 6.45 0 0 1-3.28-1.87 6.41 6.41 0 0 1-1.87-3.28l2.76-2.69a1.12 1.12 0 0 0 .05-1.56L4.33.37a1.12 1.12 0 0 0-1.56-.1L.33 2.36c-.19.2-.3.45-.32.73-.02.28-.34 6.93 4.82 12.08A17 17 0 0 0 16.9 20c.28-.01.54-.13.73-.33l2.09-2.43a1.12 1.12 0 0 0-.1-1.56Z"/></svg>
<span>{{- profile.phoneNumber -}}</span>
</a><!--/noindex-->
<!--noindex-->
{%- if profile.messengers.telegram -%}
<svg class="telegram" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="40" height="40" rx="5" fill="#2F89CE"/>
<circle cx="20" cy="20" r="20" fill="#2F89CE"/>
<path d="M9.3507 20.3741L13.9488 22.0886L15.7413 27.8557C15.8192 28.2454 16.2868 28.3233 16.5985 28.0895L19.1703 25.9853C19.4041 25.7515 19.7938 25.7515 20.1055 25.9853L24.7036 29.3364C25.0154 29.5702 25.483 29.4144 25.5609 29.0247L28.99 12.6587C29.0679 12.269 28.6782 11.8793 28.2886 12.0352L9.3507 19.3609C8.8831 19.5168 8.8831 20.2182 9.3507 20.3741ZM15.5075 21.2313L24.5477 15.6981C24.7036 15.6201 24.8595 15.8539 24.7036 15.9319L17.2999 22.868C17.0661 23.1018 16.8323 23.4135 16.8323 23.8032L16.5985 25.6736C16.5985 25.9074 16.2089 25.9853 16.1309 25.6736L15.1957 22.2445C14.9619 21.8548 15.1178 21.3872 15.5075 21.2313Z" fill="white"/>
</svg>
{%- endif -%}
{%- if profile.messengers.whatsApp -%}
<a href="https://wa.me/{{ onlyPhoneNumber|replace({'+': ''}) }}?text=Привет,%20{{ profile.name }}!%20Нашел%20твою%20анкету%20на%20Стрелочках." rel="nofollow" class="whatsup" target="_blank">
<svg class="whatsapp" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="40" height="40" rx="5" fill="#48C95F"/>
<circle cx="20" cy="20" r="20" fill="#48C95F"/>
<path d="M27.9268 12.0625C25.9512 10.0937 23.3171 9 20.5366 9C14.7561 9 10.0732 13.6667 10.0732 19.4271C10.0732 21.25 10.5854 23.0729 11.4634 24.6042L10 30L15.561 28.5417C17.0976 29.3438 18.7805 29.7812 20.5366 29.7812C26.3171 29.7812 31 25.1146 31 19.3542C30.9268 16.6563 29.9024 14.0312 27.9268 12.0625ZM25.5854 23.1458C25.3659 23.7292 24.3415 24.3125 23.8293 24.3854C23.3902 24.4583 22.8049 24.4583 22.2195 24.3125C21.8537 24.1667 21.3415 24.0208 20.7561 23.7292C18.122 22.6354 16.439 20.0104 16.2927 19.7917C16.1463 19.6458 15.1951 18.4062 15.1951 17.0937C15.1951 15.7812 15.8537 15.1979 16.0732 14.9062C16.2927 14.6146 16.5854 14.6146 16.8049 14.6146C16.9512 14.6146 17.1707 14.6146 17.3171 14.6146C17.4634 14.6146 17.6829 14.5417 17.9024 15.0521C18.122 15.5625 18.6341 16.875 18.7073 16.9479C18.7805 17.0938 18.7805 17.2396 18.7073 17.3854C18.6341 17.5312 18.561 17.6771 18.4146 17.8229C18.2683 17.9687 18.1219 18.1875 18.0488 18.2604C17.9024 18.4062 17.7561 18.5521 17.9024 18.7708C18.0488 19.0625 18.561 19.8646 19.3659 20.5937C20.3902 21.4687 21.1951 21.7604 21.4878 21.9063C21.7805 22.0521 21.9268 21.9792 22.0732 21.8333C22.2195 21.6875 22.7317 21.1042 22.878 20.8125C23.0244 20.5208 23.2439 20.5938 23.4634 20.6667C23.6829 20.7396 25 21.3958 25.2195 21.5417C25.5122 21.6875 25.6585 21.7604 25.7317 21.8333C25.8049 22.0521 25.8049 22.5625 25.5854 23.1458Z" fill="white"/>
</svg>
</a>
{%- endif -%}
<!--/noindex-->
</div>
</div>
{%- endif -%}