<link rel="stylesheet" type="text/css" href="{{ asset('bundles/my/css/auth.css') }}">
{% include '@My/preloader-css.html.twig' %}
{#popup enter cabinet#}
<noindex>
{# Авторизація #}
<div class="modal-fw log-reg-modal" id="enterModal" v-show="showEnterModal" @click.self="closeEnterModal">
<div class="" role="document" id="auth-form">
<div class="modal-content" v-if="isInit">
<div class="modal-header w-100">
<div class="enter_modal-title w-100 text-center">
{% set referer = app.request.getSchemeAndHttpHost() %}
{% if referer == 'https://insurance.vidi.ua' %}
<div class="btn-group-slider">
<a class="btn btn-primary btn-lg btn-red" style='font-size: 11px' href="/ua/">Повернутися на сайт ВІДІ СТРАХУВАННЯ</a>
</div>
{% endif %}
<svg width="34" height="33" viewbox="0 0 34 33" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M33 32C33 27.7565 31.3143 23.6869 28.3137 20.6863C25.3131 17.6857 21.2435 16 17 16C12.7565 16 8.68688 17.6857 5.68629 20.6863C2.68571 23.6869 1 27.7565 1 32" stroke="#333333" stroke-width="2" stroke-linecap="round"/>
<circle cx="17" cy="8" r="7" stroke="#333333" stroke-width="2"/>
</svg>
</div>
{% set referer = app.request.getSchemeAndHttpHost() %}
{% if referer == 'https://insurance.vidi.ua' %}
<div class="modal-title" id="enterModalLabel" v-if="loginMode">{{ 'auth.enter_cab_insurance'|trans({},'loyality') }}
</div>
{% else %}
<div class="modal-title" id="enterModalLabel" v-if="loginMode">{{ 'auth.enter_cab'|trans({},'loyality') }}</div>
{% endif %}
<div class="modal-title" id="enterModalLabel" v-if="registerMode">{{ 'auth.registration'|trans({},'loyality') }}</div>
<button type="button" class="close" data-dismiss="modal" data-bs-dismiss="modal" aria-label="Close" @click="resetForm">
<svg width="18" height="18" viewbox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.0001 1.00001L1.00014 17M17 17L1 1" stroke="#333333" stroke-linecap="round"/>
</svg>
</button>
</div>
<div class="modal-body row row-form justify-content-center">
<div class="col-sm-9 col-md-7 col-lg-5 col-xl-3">
{########################}
{### Вход в кабинет ###}
{########################}
<div v-if="loginMode"> <div class="form-group">
<p style="color: forestgreen" v-show="isRegisterSecondStep">
<svg class="mr-1" xmlns="http://www.w3.org/2000/svg" width="14" height="10" viewbox="0 0 14 10" fill="none">
<path d="M1 3.45168L4.84199 8.67752M13 1L5.15801 9" stroke="#4CB30F" stroke-width="2" stroke-linecap="round"/>
</svg>
Вас успішно зареєстровано на сайті.
</p>
<p v-show="!confirmPhone && !brokenPhoneMode">{{ 'auth.info'|trans({},'loyality') }}</p>
<p v-show="!confirmPhone && brokenPhoneMode" class="text-center">{{ 'auth.broken_phone_info'|trans({},'loyality')|raw }}</p>
<p v-show="!confirmPhone && brokenEmailMode" class="text-center">{{ 'auth.broken_email_info'|trans({},'loyality')|raw }}</p>
<p v-show="confirmPhone" id="loginPhoneInfo"></p>
</div>
<div id="loginOther" class="invalid-feedback" v-if="!brokenPhoneMode"></div>
<div class="form-group" v-show="!confirmPhone && !brokenPhoneMode && !brokenEmailMode">
<label for="loginEmail">{{ 'auth.email_or_phone'|trans({},'loyality') }}</label>
<input class="form-control" @change="changeEventValidateLogin" v-model="login" type="text" id="memail" name="email">
<div id="loginEmail" class="invalid-feedback"></div>
</div>
<div class="form-group" v-show="!confirmPhone && !brokenPhoneMode && !brokenEmailMode && showPasswordInputForAuthByCode">
<label for="loginPassword">{{ 'auth.password'|trans({}, 'insurance') }}</label>
<div class="form-inline d-flex justify-content-between">
<input @change="changeEventValidatePassword" v-if="!showPassword" class="form-control" style="width: 90%!important;" v-model="loginPassword" type="password" id="password" name="password">
<input @change="changeEventValidatePassword" v-else class="form-control" style="width: 90%!important;" v-model="loginPassword" type="text" id="password" name="password">
<a class="register-info-btn" style="cursor: pointer" @click="showPassword=!showPassword">
<svg v-if="showPassword" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="25px" viewbox="0 0 497.25 497.25" style="enable-background:new 0 0 497.25 497.25;" xml:space="preserve">
<g>
<g>
<circle cx="248.625" cy="248.625" r="19.125" fill="currentColor"/>
<path d="M248.625,172.125c-42.075,0-76.5,34.425-76.5,76.5s34.425,76.5,76.5,76.5s76.5-34.425,76.5-76.5
S290.7,172.125,248.625,172.125z M248.625,306c-32.513,0-57.375-24.862-57.375-57.375s24.862-57.375,57.375-57.375
S306,216.112,306,248.625S281.138,306,248.625,306z" fill="currentColor"/>
<path d="M248.625,114.75C76.5,114.75,0,248.625,0,248.625S76.5,382.5,248.625,382.5S497.25,248.625,497.25,248.625
S420.75,114.75,248.625,114.75z M248.625,363.375c-153,0-225.675-114.75-225.675-114.75s72.675-114.75,225.675-114.75
S474.3,248.625,474.3,248.625S401.625,363.375,248.625,363.375z" fill="currentColor"/>
</g>
</g>
</svg>
<svg v-else version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="25px" viewbox="0 0 497.301 497.301" style="enable-background:new 0 0 497.301 497.301;" xml:space="preserve">
<g>
<path fill="currentColor" d="M97.5,342.351C30.6,302.15,0,248.65,0,248.65s76.5-133.9,248.6-133.9c24.9,0,47.8,1.9,68.8,7.6l-15.301,15.3
c-17.199-1.9-34.4-3.8-53.5-3.8c-153,0-225.7,114.8-225.7,114.8s28.7,45.9,88,80.3L97.5,342.351z M172.1,248.65
c0,5.7,0,11.5,1.9,17.2l17.2-17.2c0-15.3,5.7-28.7,17.2-40.2s26.8-17.2,40.2-17.2l17.201-17.2c-5.701-1.9-11.5-1.9-17.201-1.9
C206.5,172.15,172.1,206.55,172.1,248.65z M399.699,154.95l-13.398,13.4c59.299,34.4,88,80.3,88,80.3S401.6,363.45,248.6,363.45
c-19.1,0-36.3-1.899-53.5-3.8l-15.3,15.3c21,5.7,44,7.601,68.9,7.601c172.101,0,248.601-133.9,248.601-133.9
S466.6,195.15,399.699,154.95z M401.4,76.95L76.9,401.45l18.9,18.9l324.6-324.6L401.4,76.95z M288.801,288.851
c-11.5,11.5-24.9,17.2-40.201,17.2l-17.2,17.199c5.7,1.9,11.5,1.9,17.2,1.9c42.099,0,76.5-34.4,76.5-76.5c0-5.7,0-11.5-1.9-17.2
L306,248.65C306,263.95,300.199,277.351,288.801,288.851z"/>
</g>
</svg>
</a>
</div>
<div id="loginPassword" class="invalid-feedback"></div>
</div>
<div class="form-group" v-if="code && !brokenPhoneMode">
<label for="userCode">Код</label>
<input @input="changeEventUserCode" class="form-control" v-model="userCode" type="text" autocomplete="off" id="loginOtp" name="otp" required>
<div id="loginOtpError" class="invalid-feedback"></div>
<p style="font-size: 11px">{{ 'auth.code_not_send'|trans({}, 'loyality') }}
<a v-on:click.stop.prevent="getCode(1)" href="#">{{ 'auth.resent_code'|trans({}, 'loyality') }}</a>
</p>
</div>
<a href="#" v-show="!confirmPhone && !brokenPhoneMode && !brokenEmailMode && showPasswordInputForAuthByCode" class="forgot-pass" id="restoreBtn" data-dismiss="modal" data-toggle="modal" data-target="#recoverPassModal">
{{ 'auth.forgot_pass'|trans({}, 'loyality') }}
</a>
<div class="log-reg-btn-wrap position-relative">
<div id="preloader-auth" v-show="stepPreloader">
<div id="fountainG">
<div id="fountainG_1" class="fountainG"></div>
<div id="fountainG_2" class="fountainG"></div>
<div id="fountainG_3" class="fountainG"></div>
<div id="fountainG_4" class="fountainG"></div>
<div id="fountainG_5" class="fountainG"></div>
<div id="fountainG_6" class="fountainG"></div>
<div id="fountainG_7" class="fountainG"></div>
<div id="fountainG_8" class="fountainG"></div>
</div>
</div>
<button v-if="!code && !brokenPhoneMode && !brokenEmailMode" type="button" v-on:click.stop.prevent="getCode(0)" class="btn-red">
{{ 'auth.get_code'|trans({},'loyality') }}
</button>
<button v-if="code && !brokenPhoneMode && !brokenEmailMode" type="button" v-on:click.stop.prevent="loginByCode" class="btn-red">
{{ 'auth.confirm'|trans({},'loyality') }}
</button>
<button v-if="!code && !brokenPhoneMode && !brokenEmailMode" class="btn-red-transparent" v-on:click.stop.prevent="(registerMode = true) & (loginMode = false)">
{{ 'auth.sign_up'|trans({},'loyality') }}
</button>
<a v-if="(code || brokenPhoneMode) && !brokenEmailMode" href="#" class="btn-red-transparent" data-dismiss="modal" data-toggle="modal" data-target="#changePhoneModal">
{{ 'change_phone.main_title'|trans({},'loyality') }}
</a>
<a v-if="!code && brokenEmailMode" href="{{ path('my_update_credentials') }}" class="btn-red-transparent">
{{ 'recovery.update_credentials'|trans({},'loyality') }}
</a>
<button v-if="brokenPhoneMode || brokenEmailMode" class="btn-red-transparent mt-3" @click="brokenPhoneMode = brokenEmailMode = false">
{{ 'auth.mentioned_pass'|trans({},'loyality') }}
</button>
</div>
</div>
{#####################}
{### Регистрация ###}
{#####################}
<form v-on:submit.stop.prevent="registerUser" id="registerForm" class="position-relative" action="{{ path('my_register_user') }}" method="post" v-show="registerMode"> <input type="hidden" name="locale" value="{{ app.request.locale }}">
<div class="form-group" v-show="!confirmPhone">
<label for="regName">{{ 'auth.name'|trans({},'insurance') }}
*</label>
<input class="form-control" v-model="regName" type="text" id="name" name="name">
<div id="regName" class="invalid-feedback"></div>
</div>
<div class="form-group" v-show="!confirmPhone">
<label for="lname">{{ 'auth.lname'|trans({},'insurance') }}
*</label>
<input class="form-control" v-model="regLName" id="lname" type="text" name="lname">
<div id="regLName" class="invalid-feedback"></div>
</div>
<div class="form-group" v-show="!confirmPhone">
<label for="mname">{{ 'auth.mname'|trans({},'insurance') }}</label>
<input class="form-control" v-model="regMName" type="text" id="mname" name="mname">
<div id="regMName" class="invalid-feedback"></div>
</div>
<div class="form-group" v-show="!confirmPhone">
<label for="memail">{{ 'auth.email'|trans({}, 'loyality') }}
*</label>
<input class="form-control" v-model="regEmail" type="text" id="memail" name="email">
<div id="regEmail" class="invalid-feedback"></div>
</div>
<div class="form-group position-relative" v-show="!confirmPhone">
<label for="regPhone">{{ 'auth.phone'|trans({}, 'loyality') }}
*</label>
<input autocomplete="off" @focus="focusEventPhone" @blur="blurEventPhone" class="form-control" data-toggle="tooltip" v-mask="'+38(###)###-##-##'" v-model="regPhone" type="text" name="phone" id="phone-reg" placeholder="+38 (0">
<div id="regPhoneError" class="invalid-feedback"></div>
<div class="tooltip bs-tooltip-bottom position-absolute d-none" id="phoneRegTooltip" style="z-index: 1; bottom: -80px" role="tooltip">
<div class="arrow"></div>
<div class="tooltip-inner">
{{ 'auth.send_sms'|trans({},'loyality') }}
</div>
</div>
</div>
<div class="form-group position-relative" v-show="!confirmPhone && showPasswordInputForAuthByCode">
<label for="password">{{ 'auth.password'|trans({}, 'insurance') }}
*</label>
<div class="d-flex justify-content-between position-relative align-items-center">
<input autocomplete="off" @focus="focusEventPassword" @blur="blurEventPassword" data-toggle="tooltip" v-if="!showPassword && showPasswordInputForAuthByCode" class="form-control" style="width: 90%!important;" v-model="regPassword" type="password" id="password" name="password" required>
<input autocomplete="off" @focus="focusEventPassword" @blur="blurEventPassword" data-toggle="tooltip" v-if="showPasswordInputForAuthByCode" class="form-control" style="width: 90%!important;" v-model="regPassword" type="text" id="password" name="password" required>
<a class="register-info-btn" style="cursor: pointer" @click="showPassword=!showPassword">
<svg v-if="showPassword" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="25px" viewbox="0 0 497.25 497.25" style="enable-background:new 0 0 497.25 497.25;" xml:space="preserve">
<g>
<g>
<circle cx="248.625" cy="248.625" r="19.125" fill="currentColor"/>
<path d="M248.625,172.125c-42.075,0-76.5,34.425-76.5,76.5s34.425,76.5,76.5,76.5s76.5-34.425,76.5-76.5
S290.7,172.125,248.625,172.125z M248.625,306c-32.513,0-57.375-24.862-57.375-57.375s24.862-57.375,57.375-57.375
S306,216.112,306,248.625S281.138,306,248.625,306z" fill="currentColor"/>
<path d="M248.625,114.75C76.5,114.75,0,248.625,0,248.625S76.5,382.5,248.625,382.5S497.25,248.625,497.25,248.625
S420.75,114.75,248.625,114.75z M248.625,363.375c-153,0-225.675-114.75-225.675-114.75s72.675-114.75,225.675-114.75
S474.3,248.625,474.3,248.625S401.625,363.375,248.625,363.375z" fill="currentColor"/>
</g>
</g>
</svg>
<svg v-else version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="25px" viewbox="0 0 497.301 497.301" style="enable-background:new 0 0 497.301 497.301;" xml:space="preserve">
<g>
<path d="M97.5,342.351C30.6,302.15,0,248.65,0,248.65s76.5-133.9,248.6-133.9c24.9,0,47.8,1.9,68.8,7.6l-15.301,15.3
c-17.199-1.9-34.4-3.8-53.5-3.8c-153,0-225.7,114.8-225.7,114.8s28.7,45.9,88,80.3L97.5,342.351z M172.1,248.65
c0,5.7,0,11.5,1.9,17.2l17.2-17.2c0-15.3,5.7-28.7,17.2-40.2s26.8-17.2,40.2-17.2l17.201-17.2c-5.701-1.9-11.5-1.9-17.201-1.9
C206.5,172.15,172.1,206.55,172.1,248.65z M399.699,154.95l-13.398,13.4c59.299,34.4,88,80.3,88,80.3S401.6,363.45,248.6,363.45
c-19.1,0-36.3-1.899-53.5-3.8l-15.3,15.3c21,5.7,44,7.601,68.9,7.601c172.101,0,248.601-133.9,248.601-133.9
S466.6,195.15,399.699,154.95z M401.4,76.95L76.9,401.45l18.9,18.9l324.6-324.6L401.4,76.95z M288.801,288.851
c-11.5,11.5-24.9,17.2-40.201,17.2l-17.2,17.199c5.7,1.9,11.5,1.9,17.2,1.9c42.099,0,76.5-34.4,76.5-76.5c0-5.7,0-11.5-1.9-17.2
L306,248.65C306,263.95,300.199,277.351,288.801,288.851z" fill="currentColor"/>
</g>
</svg>
</a>
<img v-show="showCheckPasswordIcon" v-if="!validatePasswordCheck" style="visibility: hidden" class="check-password-icon" width="18px;" src="{{ asset('/bundles/my/img/check-icon-error.png') }}" alt="">
<img v-show="showCheckPasswordIcon" v-else class="check-password-icon" width="18px;" data-src="{{ asset('/bundles/my/img/check-icon-success.png') }}" alt="">
</div>
<div id="regPassword" class="invalid-feedback"></div>
<div class="tooltip bs-tooltip-bottom position-absolute d-none" id="passwordRegTooltip" style="z-index: 1;bottom: -122px" role="tooltip">
<div class="arrow"></div>
<div class="tooltip-inner">
{{ 'register.valid_password'|trans({},'loyality') }}
</div>
</div>
</div>
<span class="modal-subtitle confirm-code" v-show="confirmPhone" v-text="confirmCodeSubtitle"></span>
<div class="form-group" v-if="confirmPhone">
<label for="confirmPhoneCodeF">Код</label>
<input @input="changeEventUserCode" class="form-control" v-model="userCode" type="text" id="confirmPhoneCodeF" name="code" autocomplete="off" required>
<div id="userCodeError" class="invalid-feedback"></div>
<p style="font-size: 11px">{{'auth.code_not_send'|trans({}, 'loyality')}}
<a v-on:click.stop.prevent="registerResendCode" href="#">{{ 'auth.resent_code'|trans({}, 'loyality') }}</a>
</p>
</div>
<div class="form-check" v-if="!confirmPhone">
<input type="checkbox" class="form-check-input" id="exampleCheck1" v-model="regUseCabinetConfirmation">
<label class="form-check-label check-info-text" for="exampleCheck1">
{{'auth.true_rules'|trans({}, 'loyality')}}
<a href="{{ path('portal_information_rules') }}" target="_blank">
{{'auth.used_cabinet'|trans({}, 'loyality')}}
</a>
</label>
</div>
<div class="align-items-center log-reg-btn-wrap position-relative flex-column align-items-stretch">
<div id="preloader-auth" v-show="stepPreloader">
<div id="fountainG">
<div id="fountainG_1" class="fountainG"></div>
<div id="fountainG_2" class="fountainG"></div>
<div id="fountainG_3" class="fountainG"></div>
<div id="fountainG_4" class="fountainG"></div>
<div id="fountainG_5" class="fountainG"></div>
<div id="fountainG_6" class="fountainG"></div>
<div id="fountainG_7" class="fountainG"></div>
<div id="fountainG_8" class="fountainG"></div>
</div>
</div>
<button type="button" v-on:click.stop.prevent="confirmRegistration" v-if="confirmPhone" class="btn-red">
{{ 'auth.sign_in'|trans({},'loyality') }}
</button>
<button type="submit" v-else class="btn-red w-100">
{{ 'auth.sign_up'|trans({},'loyality') }}
</button>
<div class="text-center w-100" v-if="!confirmPhone">
<a href="#" v-on:click.stop.prevent="(registerMode = false) & (loginMode = true)" class="forgot-pass mb-0">{{ 'auth.alredy_reg'|trans({},'loyality') }}</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{# popup recover pass #}
<div class="modal-fw log-reg-modal" id="recoverPassModal" v-show="showRecoverModal" @click.self="closeRecoverModal">
<div class="" role="document" id="recovery-form">
<div class="modal-content" v-show="!newPasswordMode" v-if="isInit">
<div class="modal-header w-100">
<div class="modal-title" id="recoverPassModalLabel">
{{ 'auth.recovery_pass'|trans({},'loyality') }}
</div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" @click="resetForm">
<svg width="18" height="18" viewbox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.0001 1.00001L1.00014 17M17 17L1 1" stroke="#333333" stroke-linecap="round"/>
</svg>
</button>
</div>
<div class="modal-body row row-form justify-content-center">
<div class="col-sm-9 col-md-7 col-lg-5 col-xl-3">
<span class="modal-subtitle">
{{ 'auth.enter_phone_text'|trans({},'loyality')|raw }}
</span>
<form id="restoreForm" action="" method="post">
<div class="form-group" v-if="!confirmPhone">
<label for="recoveryEmail">
{{ 'auth.email_or_phone'|trans({},'loyality') }}
</label>
<input class="form-control" @change="changeEventValidateLogin" v-model="recoveryLogin" type="text" id="recoveryEmail" name="email">
<div id="recoveryEmailError" class="invalid-feedback"></div>
</div>
<div class="form-group" v-if="code">
<label for="otp">Код</label>
<input class="form-control" v-model="userCode" type="text" id="loginOtpconfirmPhoneCodeF" name="otp" required>
<div id="recoveryUserCode" class="invalid-feedback"></div>
<p style="font-size: 11px">{{ 'auth.code_not_send'|trans({}, 'loyality') }}
<a v-on:click.stop.prevent="getCode(1)" href="#">
{{ 'auth.resent_code'|trans({}, 'loyality') }}
</a>
</p>
</div>
<div class="form-group" v-if="code">
<label for="recoveryPassword">{{ 'auth.enter_new_password'|trans({},'loyality') }}</label>
<div class="d-flex justify-content-between position-relative align-items-center">
<input v-if="!showNewPassword && showPasswordInputForAuthByCode" class="form-control" style="width: 90%!important;" v-model="recoveryPassword" type="password" id="recoveryPassword" name="password" required>
<input v-else class="form-control" style="width: 90%!important;" v-model="recoveryPassword" type="text" id="recoveryPassword" name="password" required>
<a class="register-info-btn" style="cursor: pointer" @click="showNewPassword=!showNewPassword">
<svg v-if="showNewPassword" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="25px" viewbox="0 0 497.25 497.25" style="enable-background:new 0 0 497.25 497.25;" xml:space="preserve">
<g>
<g>
<circle cx="248.625" cy="248.625" r="19.125" fill="currentColor"/>
<path d="M248.625,172.125c-42.075,0-76.5,34.425-76.5,76.5s34.425,76.5,76.5,76.5s76.5-34.425,76.5-76.5
S290.7,172.125,248.625,172.125z M248.625,306c-32.513,0-57.375-24.862-57.375-57.375s24.862-57.375,57.375-57.375
S306,216.112,306,248.625S281.138,306,248.625,306z" fill="currentColor"/>
<path d="M248.625,114.75C76.5,114.75,0,248.625,0,248.625S76.5,382.5,248.625,382.5S497.25,248.625,497.25,248.625
S420.75,114.75,248.625,114.75z M248.625,363.375c-153,0-225.675-114.75-225.675-114.75s72.675-114.75,225.675-114.75
S474.3,248.625,474.3,248.625S401.625,363.375,248.625,363.375z" fill="currentColor"/>
</g>
</g>
</svg>
<svg v-else version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="25px" viewbox="0 0 497.301 497.301" style="enable-background:new 0 0 497.301 497.301;" xml:space="preserve">
<g>
<path d="M97.5,342.351C30.6,302.15,0,248.65,0,248.65s76.5-133.9,248.6-133.9c24.9,0,47.8,1.9,68.8,7.6l-15.301,15.3
c-17.199-1.9-34.4-3.8-53.5-3.8c-153,0-225.7,114.8-225.7,114.8s28.7,45.9,88,80.3L97.5,342.351z M172.1,248.65
c0,5.7,0,11.5,1.9,17.2l17.2-17.2c0-15.3,5.7-28.7,17.2-40.2s26.8-17.2,40.2-17.2l17.201-17.2c-5.701-1.9-11.5-1.9-17.201-1.9
C206.5,172.15,172.1,206.55,172.1,248.65z M399.699,154.95l-13.398,13.4c59.299,34.4,88,80.3,88,80.3S401.6,363.45,248.6,363.45
c-19.1,0-36.3-1.899-53.5-3.8l-15.3,15.3c21,5.7,44,7.601,68.9,7.601c172.101,0,248.601-133.9,248.601-133.9
S466.6,195.15,399.699,154.95z M401.4,76.95L76.9,401.45l18.9,18.9l324.6-324.6L401.4,76.95z M288.801,288.851
c-11.5,11.5-24.9,17.2-40.201,17.2l-17.2,17.199c5.7,1.9,11.5,1.9,17.2,1.9c42.099,0,76.5-34.4,76.5-76.5c0-5.7,0-11.5-1.9-17.2
L306,248.65C306,263.95,300.199,277.351,288.801,288.851z" fill="currentColor"/>
</g>
</svg>
</a>
</div>
<div id="recoveryPasswordError" class="invalid-feedback"></div>
</div>
<span v-if="code" class="register-info-text">{{ 'register.valid_password'|trans({},'loyality') }}</span>
<div class="log-reg-btn-wrap position-relative">
<div id="preloader-auth" v-show="stepPreloader">
<div id="fountainG">
<div id="fountainG_1" class="fountainG"></div>
<div id="fountainG_2" class="fountainG"></div>
<div id="fountainG_3" class="fountainG"></div>
<div id="fountainG_4" class="fountainG"></div>
<div id="fountainG_5" class="fountainG"></div>
<div id="fountainG_6" class="fountainG"></div>
<div id="fountainG_7" class="fountainG"></div>
<div id="fountainG_8" class="fountainG"></div>
</div>
</div>
<button v-if="!code" type="button" v-on:click.stop.prevent="getCode(0)" class="btn-red">
{{ 'auth.restore_pass'|trans({},'loyality') }}
</button>
<button v-if="code" type="button" v-on:click.stop.prevent="recoveryConfirmCode" class="btn-red">
{{ 'auth.sign_in'|trans({},'loyality') }}
</button>
<button class="btn-red-transparent" id="cancelRestoreBtn" data-dismiss="modal" data-toggle="modal" data-target="#enterModal">
{{ 'auth.mentioned_pass'|trans({},'loyality') }}
</button>
</div>
</form>
</div>
</div>
</div>
<div class="modal-content" v-show="newPasswordMode" v-if="isInit">
<div class="modal-header w-100">
<div class="modal-title" id="updatePassModalLabel">{{ 'auth.recovery_pass'|trans({},'loyality') }}</div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" @click="resetForm">
<svg width="18" height="18" viewbox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.0001 1.00001L1.00014 17M17 17L1 1" stroke="#333333" stroke-linecap="round"/>
</svg>
</button>
</div>
<div class="modal-body row row-form justify-content-center">
<div class="col-sm-9 col-md-7 col-lg-5 col-xl-3">
<form id="setPasswordForm" action="" method="post">
<div class="form-group">
<label for="recoveryPassword">
{{ 'auth.confirm_pass'|trans({},'loyality') }}
</label>
<input type="password" name="recoveryPassword" class="form-control" v-model="recoveryConfirmPassword" id="recoveryConfirmPassword" required="">
<div id="recoveryConfirmPasswordError" class="invalid-feedback"></div>
</div>
<div class="log-reg-btn-wrap position-relative">
<div id="preloader-auth" v-show="stepPreloader">
<div id="fountainG">
<div id="fountainG_1" class="fountainG"></div>
<div id="fountainG_2" class="fountainG"></div>
<div id="fountainG_3" class="fountainG"></div>
<div id="fountainG_4" class="fountainG"></div>
<div id="fountainG_5" class="fountainG"></div>
<div id="fountainG_6" class="fountainG"></div>
<div id="fountainG_7" class="fountainG"></div>
<div id="fountainG_8" class="fountainG"></div>
</div>
</div>
<button type="submit" v-on:click.stop.prevent="recoverySetPassword" class="btn-red">{{ 'auth.recover_pass'|trans({},'loyality') }}</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{# popup enter sms code #}
<div class="modal-fw log-reg-modal" id="confirmPhoneModal" v-show="showConfirmModal" @click.self="closeConfirmModal">
<div class="" role="document">
<div class="modal-content">
<div class="modal-header w-100">
<div class="modal-title" id="confirmPhoneModalLabel">{{ 'auth.recovery_pass'|trans({},'loyality') }}</div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.0001 1.00001L1.00014 17M17 17L1 1" stroke="#333333" stroke-linecap="round"/>
</svg>
</button>
</div>
<div class="modal-body row row-form justify-content-center">
<div class="col-sm-9 col-md-7 col-lg-5 col-xl-3">
<span class="modal-subtitle">{{ 'auth.enter_code_message'|trans({},'loyality') }}</span>
<form id="" action="" method="">
<div class="form-group" id="">
<input type="number" name="name" maxlength="6" max="999999" class="form-control" id="confirmCodeInput" placeholder="××××××" required="">
</div>
<span class="d-block mb-4">{{ 'auth.sms_with_code'|trans({},'loyality') }}<b id="userPhone">+380666666666</b></span>
<div class="log-reg-btn-wrap position-relative">
<div id="preloader-auth" v-show="stepPreloader">
<div id="fountainG">
<div id="fountainG_1" class="fountainG"></div>
<div id="fountainG_2" class="fountainG"></div>
<div id="fountainG_3" class="fountainG"></div>
<div id="fountainG_4" class="fountainG"></div>
<div id="fountainG_5" class="fountainG"></div>
<div id="fountainG_6" class="fountainG"></div>
<div id="fountainG_7" class="fountainG"></div>
<div id="fountainG_8" class="fountainG"></div>
</div>
</div>
<button type="submit" id="sendConfirmCode" class="btn-red">{{ 'auth.confirm'|trans({},'loyality') }}</button>
<a href="{{ path('my_resend_sms',{hash: '__hash__'}) }}" class="btn-red-transparent js-resend-sms">{{ 'auth.resubmit'|trans({},'loyality') }}</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{# popup change phone #}
<div class="modal-fw log-reg-modal" id="changePhoneModal" v-show="showChangeModal" @click.self="closeChangeModal">
<div class="" role="document" id="change-phone-form">
{# Step 1 #}
<div class="modal-content" v-show="enterEmailAndPasswordMode" v-if="isInit">
<div class="modal-header w-100">
<div class="modal-title" id="recoverPassModalLabel">
{{ 'auth.change_phone_form'|trans({},'loyality') }}
</div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" @click="resetForm">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.0001 1.00001L1.00014 17M17 17L1 1" stroke="#333333" stroke-linecap="round"/>
</svg>
</button>
</div>
<div class="modal-body row row-form justify-content-center">
<div class="col-sm-9 col-md-7 col-lg-5 col-xl-3">
<span class="modal-subtitle">
{{ 'auth.change_phone_description'|trans({},'loyality')|raw }}
</span>
<div id="changePhoneOtherError" class="invalid-feedback"></div>
<form id="restoreForm" action="" method="post">
<div class="form-group mb-3">
<label for="changePhoneEmail">
{{ 'auth.email'|trans({},'loyality') }}
</label>
<input class="form-control"
v-model="email"
type="text"
id="changePhoneEmail"
name="changePhoneEmail">
<div id="changePhoneEmailError" class="invalid-feedback"></div>
</div>
<div class="form-group" v-show="showPasswordInputForChangePhone">
<label for="changePhonePassword">{{ 'auth.enter_password'|trans({},'loyality') }}</label>
<div class="d-flex justify-content-between position-relative align-items-center">
<input v-if="!showPassword" class="form-control" style="width: 90%!important;" v-model="password" type="password" id="changePhonePassword" name="changePhonePassword">
<input v-else class="form-control" style="width: 90%!important;" v-model="password" type="text" id="changePhonePassword" name="changePhonePassword">
<a class="register-info-btn" style="cursor: pointer" @click="showPassword=!showPassword">
<svg v-if="showPassword" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="25px" height="25px" viewBox="0 0 497.25 497.25" style="enable-background:new 0 0 497.25 497.25;"
xml:space="preserve">
<g>
<g>
<circle cx="248.625" cy="248.625" r="19.125" fill="currentColor"/>
<path d="M248.625,172.125c-42.075,0-76.5,34.425-76.5,76.5s34.425,76.5,76.5,76.5s76.5-34.425,76.5-76.5
S290.7,172.125,248.625,172.125z M248.625,306c-32.513,0-57.375-24.862-57.375-57.375s24.862-57.375,57.375-57.375
S306,216.112,306,248.625S281.138,306,248.625,306z" fill="currentColor"/>
<path d="M248.625,114.75C76.5,114.75,0,248.625,0,248.625S76.5,382.5,248.625,382.5S497.25,248.625,497.25,248.625
S420.75,114.75,248.625,114.75z M248.625,363.375c-153,0-225.675-114.75-225.675-114.75s72.675-114.75,225.675-114.75
S474.3,248.625,474.3,248.625S401.625,363.375,248.625,363.375z" fill="currentColor"/>
</g>
</g>
</svg>
<svg v-else version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="25px" height="25px" viewBox="0 0 497.301 497.301" style="enable-background:new 0 0 497.301 497.301;"
xml:space="preserve">
<g>
<path d="M97.5,342.351C30.6,302.15,0,248.65,0,248.65s76.5-133.9,248.6-133.9c24.9,0,47.8,1.9,68.8,7.6l-15.301,15.3
c-17.199-1.9-34.4-3.8-53.5-3.8c-153,0-225.7,114.8-225.7,114.8s28.7,45.9,88,80.3L97.5,342.351z M172.1,248.65
c0,5.7,0,11.5,1.9,17.2l17.2-17.2c0-15.3,5.7-28.7,17.2-40.2s26.8-17.2,40.2-17.2l17.201-17.2c-5.701-1.9-11.5-1.9-17.201-1.9
C206.5,172.15,172.1,206.55,172.1,248.65z M399.699,154.95l-13.398,13.4c59.299,34.4,88,80.3,88,80.3S401.6,363.45,248.6,363.45
c-19.1,0-36.3-1.899-53.5-3.8l-15.3,15.3c21,5.7,44,7.601,68.9,7.601c172.101,0,248.601-133.9,248.601-133.9
S466.6,195.15,399.699,154.95z M401.4,76.95L76.9,401.45l18.9,18.9l324.6-324.6L401.4,76.95z M288.801,288.851
c-11.5,11.5-24.9,17.2-40.201,17.2l-17.2,17.199c5.7,1.9,11.5,1.9,17.2,1.9c42.099,0,76.5-34.4,76.5-76.5c0-5.7,0-11.5-1.9-17.2
L306,248.65C306,263.95,300.199,277.351,288.801,288.851z" fill="currentColor"/>
</g>
</svg>
</a>
</div>
<div id="changePhonePasswordError" class="invalid-feedback"></div>
</div>
<div class="log-reg-btn-wrap position-relative">
<div id="preloader-auth" v-show="stepPreloader">
<div id="fountainG">
<div id="fountainG_1" class="fountainG"></div>
<div id="fountainG_2" class="fountainG"></div>
<div id="fountainG_3" class="fountainG"></div>
<div id="fountainG_4" class="fountainG"></div>
<div id="fountainG_5" class="fountainG"></div>
<div id="fountainG_6" class="fountainG"></div>
<div id="fountainG_7" class="fountainG"></div>
<div id="fountainG_8" class="fountainG"></div>
</div>
</div>
<button type="button" v-on:click.stop.prevent="getCode" class="btn-red">
{{ 'change_phone.button.confirm_email'|trans({},'loyality') }}
</button>
<button class="btn-red-transparent" id="cancelRestoreBtn" data-dismiss="modal"
data-toggle="modal" data-target="#enterModal">
{{ 'auth.mentioned_pass'|trans({},'loyality') }}
</button>
</div>
</form>
</div>
</div>
</div>
{# Step 2 #}
<div class="modal-content" v-show="confirmCodeMode" v-if="isInit">
<div class="modal-header w-100">
<div class="modal-title" id="updatePassModalLabel">{{ 'change_phone.second_title'|trans({},'loyality') }}</div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" @click="resetForm">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.0001 1.00001L1.00014 17M17 17L1 1" stroke="#333333" stroke-linecap="round"/>
</svg>
</button>
</div>
<div class="modal-body row row-form justify-content-center">
<div class="col-sm-9 col-md-7 col-lg-5 col-xl-3">
<span class="modal-subtitle">
{{ 'auth.change_phone_second_description'|trans({},'loyality')|raw }}
</span>
<div id="otherError" class="invalid-feedback"></div>
<form action="" method="post" >
<div class="form-group">
<label for="otp">Код</label>
<input class="form-control" v-model="userCode" type="text" name="otp" required>
<div id="changePhoneUserCodeError" class="invalid-feedback"></div>
<p style="font-size: 11px">{{ 'auth.code_not_send'|trans({}, 'loyality') }}
<a v-on:click.stop.prevent="getCode" href="#">
{{ 'auth.resent_code'|trans({}, 'loyality') }}
</a>
</p>
</div>
<div class="form-group">
<label for="phone">{{ 'change_phone.enter_new_phone'|trans({}, 'loyality') }}</label>
<input class="form-control" v-mask="'+38(###)###-##-##'" v-model="phone" type="text" name="phone" id="phone" placeholder="+38 (0" required>
<div id="changePhoneError" class="invalid-feedback"></div>
</div>
<div class="log-reg-btn-wrap position-relative">
<div id="preloader-auth" v-show="stepPreloader">
<div id="fountainG">
<div id="fountainG_1" class="fountainG"></div>
<div id="fountainG_2" class="fountainG"></div>
<div id="fountainG_3" class="fountainG"></div>
<div id="fountainG_4" class="fountainG"></div>
<div id="fountainG_5" class="fountainG"></div>
<div id="fountainG_6" class="fountainG"></div>
<div id="fountainG_7" class="fountainG"></div>
<div id="fountainG_8" class="fountainG"></div>
</div>
</div>
<button type="submit" v-on:click.stop.prevent="confirmCode" class="btn-red">
{{ 'change_phone.button.confirm_email'|trans({},'loyality') }}
</button>
</div>
</form>
</div>
</div>
</div>
{# Step 3 #}
<div class="modal-content" v-show="enterSmsAfterChangePhoneMode" v-if="isInit">
<div class="modal-header w-100">
<div class="modal-title" id="updatePassModalLabel">{{ 'change_phone.second_title_confirm_phone'|trans({},'loyality') }}</div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" @click="resetForm">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.0001 1.00001L1.00014 17M17 17L1 1" stroke="#333333" stroke-linecap="round"/>
</svg>
</button>
</div>
<div class="modal-body row row-form justify-content-center">
<div class="col-sm-9 col-md-7 col-lg-5 col-xl-3">
<span class="modal-subtitle">
{{ 'auth.enter_code_after_change_phone'|trans({},'loyality')|raw }}
</span>
<div id="otherError" class="invalid-feedback"></div>
<form action="" method="post" >
<div class="form-group">
<label for="otp">Код</label>
<input class="form-control" v-model="userCode" type="text" name="otp" required>
<div id="changePhoneError" class="invalid-feedback"></div>
</div>
<div class="log-reg-btn-wrap position-relative">
<div id="preloader-auth" v-show="stepPreloader">
<div id="fountainG">
<div id="fountainG_1" class="fountainG"></div>
<div id="fountainG_2" class="fountainG"></div>
<div id="fountainG_3" class="fountainG"></div>
<div id="fountainG_4" class="fountainG"></div>
<div id="fountainG_5" class="fountainG"></div>
<div id="fountainG_6" class="fountainG"></div>
<div id="fountainG_7" class="fountainG"></div>
<div id="fountainG_8" class="fountainG"></div>
</div>
</div>
<button type="submit" v-on:click.stop.prevent="loginByCode(true)" class="btn-red">
{{ 'change_phone.button.confirm_phone_and_enter'|trans({},'loyality') }}
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</noindex>