<style>
.timer-group {
height: 180px;
margin: 0 auto;
position: relative;
width: 180px;
}
.timer {
border-radius: 50%;
height: 100px;
overflow: hidden;
position: absolute;
width: 100px;
}
.timer:after {
background: #fff;
border-radius: 100%;
content: "";
display: block;
height: 80px;
left: 10px;
position: absolute;
width: 80px;
top: 10px;
}
.timer .hand {
float: left;
height: 100%;
overflow: hidden;
position: relative;
width: 50%;
}
.timer .hand span {
border: 1px solid #E40C25;
border-bottom-color: transparent;
border-left-color: transparent;
border-radius: 50%;
display: block;
height: 0;
position: absolute;
right: 0;
top: 0;
width: 0;
}
.timer .hand:first-child {
transform: rotate(180deg);
}
.timer .hand span {
animation-duration: 4s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
.timer .hand:first-child span {
animation-name: spin1;
}
.timer .hand:last-child span {
animation-name: spin2;
}
.timer.minute {
height: 169px;
left: 10px;
width: 169px;
top: 10px;
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.15);
}
.timer.minute .hand span {
animation-duration: 60s;
border-right-color: #E40C25;
border-width: 85px;
}
.timer.minute:after {
height: 160px;
left: 5px;
width: 160px;
top: 5px;
}
#time {
position: absolute;
width: 100%;
left: 52%;
transform: translate(-50%, -50%);
top: 52%;
display: block;
font-style: normal;
font-weight: 350;
font-size: 40px;
line-height: normal;
text-align: center;
color: #AFAFAF;
max-width: 160px;
}
@keyframes spin1 {
0% {
transform: rotate(225deg);
}
50% {
transform: rotate(225deg);
}
100% {
transform: rotate(405deg);
}
}
@keyframes spin2 {
0% {
transform: rotate(225deg);
}
50% {
transform: rotate(405deg);
}
100% {
transform: rotate(405deg);
}
}
</style>
<noindex>
<div class="call-form modal" id="callback-order" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<div class="modal-title">
<span v-if="isWorkingTime" v-html="callBackMinute"></span>
<span v-else v-html="callBackWorkingHours"></span>
</div>
<button href="#" class="call-form-close close" data-dismiss="modal" data-bs-dismiss="modal" aria-label="close" @click="closeCall()">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="call-form-wrap" id="callback-body" v-if="isInit">
<div class="call-first-steep" v-if="step == 1">
<div class="call-form-subtitle" id="callback-first-step">
<span>{{ 'callback_widget.choose_dep'|trans({}, 'dc_base') }}</span>
</div>
<div class="choose-dep">
<div class="radio" v-for="(department, key, index) in departments">
<input type="radio" name="department" :value="department.id" :key="department.id" v-model="firstStep.departmentId" :id="'department-'+department.id"/>
{% verbatim %}<label :for="'department-'+department.id">{{ department.name }}</label>{% endverbatim %}
</div>
</div>
<div class="call-wrap-form">
<input id="call-phone-input" :disabled="firstStep.departmentId == null" type="tel" v-mask="['+38###-###-##-##']" class="callback-phone" v-model="firstStep.userPhone" placeholder="+38">
<div class="checkbox style-b" v-if="privacyUrl">
<label class="checkboxes__item-privacy">
<input type="checkbox" v-model="checkPrivacy"/>
<div id="check_privacy" class="checkbox__checkmark form-control"></div>
<div class="checkbox__body">{{ 'callback_widget.privacy'|trans({}, 'dc_base') }} <a :href="privacyUrl" target="_blank">{{ 'callback_widget.privacy_link'|trans({}, 'dc_base') }}</a></div>
</label>
</div>
<button class="btn btn-primary" @click.prevent="createRequest">{{ 'callback_widget.call'|trans({}, 'dc_base') }}</button>
</div>
</div>
<div class="call-second-steep" id="callback-second-step" v-if="step == 2 && isWorkingTime">
<div class="timer-group">
<div class="timer minute">
<div class="hand"><span></span></div>
<div class="hand"><span></span></div>
</div>
<span id="time"> {% verbatim %} {{ timer }} {% endverbatim %} </span>
</div>
</div>
<div class="call-last-steep" id="callback-third-step" v-if="step == 3 && callingSuccess == false">
<div class="call-form-subtitle">
<span>{{ 'callback_widget.soory_text'|trans({}, 'dc_base')|raw }}</span>
</div>
<div class="call-form-subtitle mb-0">
<span>{{ 'callback_widget.specialist_call'|trans({}, 'dc_base') }}</span>
</div>
</div>
<div class="call-last-steep" id="callback-third-step" v-if="step == 3 && callingSuccess == true">
<div class="call-form-subtitle text-center">
<span><br>{{ 'callback_widget.we_call'|trans({}, 'dc_base') }}</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</noindex>