text: "use strict";for(var countElementListMenu=$(".menu__list-items").length,_loop=function(t){$("#menuList-".concat(t)).on("click",function(){for(var e=1;e<=countElementListMenu;e++)$("#menuList-".concat(e)).removeClass("menu__list-items-active");$("#menuList-".concat(t)).addClass("menu__list-items-active")})},i=1;i<=countElementListMenu;i++)_loop(i);$(".t-header__nav-client-profile").on("click",function(){$(".t-header__nav-client-list").toggleClass("display-n"),$(".t-header__nav-client-arrow").toggleClass("rotate-180")}),$(function(){0==$(".t-profile__info-student-items").length?($(".t-profile__info-student-nav").addClass("display-n"),$(".t-profile__info-student-list").addClass("display-n"),$(".t-profile__info-student-banner").removeClass("display-n")):($(".t-profile__info-student-nav").removeClass("display-n"),$(".t-profile__info-student-list").removeClass("display-n"),$(".t-profile__info-student-banner").addClass("display-n")),0==$(".t-profile__info-lessons-items").length?($(".t-profile__info-lessons-nav").addClass("display-n"),$(".t-profile__info-lessons-list").addClass("display-n"),$(".t-profile__info-lessons-banner").removeClass("display-n")):($(".t-profile__info-lessons-nav").removeClass("display-n"),$(".t-profile__info-lessons-list").removeClass("display-n"),$(".t-profile__info-lessons-banner").addClass("display-n"))});for(var eventDatesTeacher={},countElementDataListTeacher=$(".t-schedule__list-items").length,_i=1;_i<=countElementDataListTeacher;_i++){var element=$(".t-schedule__list-items:nth-child(".concat(_i,")")).text();eventDatesTeacher[new Date("".concat(element))]=new Date("".concat(element))}$(function(){var e=$("#datepickerScheduleTeacher").val();$(".t-schedule__info-list-title").text(e)}),console.log($.datepicker),$.datepicker.regional.ru={closeText:"Закрыть",prevText:"Предыдущий",nextText:"Следующий",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница"," суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Не",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",beforeShowDay:function(e){return eventDatesTeacher[e]?[!0,"t-active-date",""]:[!0,"",""]}},$.datepicker.setDefaults($.datepicker.regional.ru),$("#datepickerScheduleTeacher").datepicker().on("change",function(){$(".model-calendar").addClass("display-n");var e=$("#datepickerScheduleTeacher").val();$(".t-schedule__info-list-title").text(e),$("#modaldatepickerScheduleTeacher").val(e)});for(var _i2=1;_i2<=$(".t-schedule__info-items").length;_i2++)_i2<10?$(".t-schedule__info-items:nth-child(".concat(_i2,") .t-schedule__info-items-number")).text("0"+_i2):$(".t-schedule__info-items:nth-child(".concat(_i2,") .t-schedule__info-items-number")).text(_i2);$(".t-schedule__info-calendar-btn").on("click",function(){$(".modelScheduleTeacher").removeClass("display-n"),$("body").css("overflow","hidden")}),$(".modelScheduleTeacher__wrappers-close").on("click",function(){$("body").css("overflow","visible"),$(".modelScheduleTeacher").addClass("display-n")}),$(function(){$("#modaldatepickerScheduleTeacher").datepicker(),$("#modalsdatepickerScheduleTeacher").datepicker()}),$(function(){var e=$(".modelScheduleTeacher__time-items").map(function(){if($(this).html())return $(this).html()}).get();$.each(e,function(e,t){var i=document.createElement("option");i.setAttribute("value","".concat(t)),i.innerHTML="".concat(t),document.getElementsByClassName("modaltime")[0].appendChild(i)})});var quizOrderDataCalendarInput=$("#datepickerScheduleTeacher").val();$("#modaldatepickerScheduleTeacher").val(quizOrderDataCalendarInput),$("#againDate").on("click",function(){$(".modelScheduleTeacher__wrappers-calendars").toggleClass("display-n")});for(var _loop2=function(e){for(var t=1;t<=$(".t-question__list-block-items").length;t++)$("#t_questionListElement_".concat(t," .t-question__list-block-text")).addClass("display-n"),$("#t_questionListElement_".concat(t," .t-question__list-block-btn")).removeClass("rotate-45");$("#t_questionListElement_".concat(e)).on("click",function(){$("#t_questionListElement_".concat(e," .t-question__list-block-text")).hasClass("display-n")?($("#t_questionListElement_".concat(e," .t-question__list-block-text")).removeClass("display-n"),$("#t_questionListElement_".concat(e," .t-question__list-block-btn")).addClass("rotate-45")):($("#t_questionListElement_".concat(e," .t-question__list-block-text")).addClass("display-n"),$("#t_questionListElement_".concat(e," .t-question__list-block-btn")).removeClass("rotate-45"))})},_i3=1;_i3<=$(".t-question__list-block-items").length;_i3++)_loop2(_i3);for(var _i4=1;_i4<=$(".t-quiz__page-items").length;_i4++)_i4<10?$(".t-quiz__page-items:nth-child(".concat(_i4,") .t-quiz__page-items-number")).text("0"+_i4):$(".t-quiz__page-items:nth-child(".concat(_i4,") .t-quiz__page-items-number")).text(_i4);for(var _loop3=function(t){$(".t-quiz__type-block-items:nth-child(".concat(t,")")).on("click",function(){var e=$(".t-quiz__type-block-items:nth-child(".concat(t,") p")).text();$(".t-quiz__age-title p").text(e),$(".t-quiz__book-title h3").text(e),$(".t-quiz__page-title h3").text(e),$(".t-quiz__type").addClass("display-n"),$(".t-quiz__age").removeClass("display-n")})},_i5=1;_i5<=$(".t-quiz__type-block-items").length;_i5++)_loop3(_i5);for(var _loop4=function(t){$("#t_quizAgeElement_".concat(t)).on("click",function(){var e=$("#t_quizAgeElement_".concat(t," p")).text();$(".t-quiz__book-title p").text(e),$(".t-quiz__page-title p").text(e),$(".t-quiz__age").addClass("display-n"),$(".t-quiz__book").removeClass("display-n")})},_i6=1;_i6<=$(".t-quiz__age-items").length;_i6++)_loop4(_i6);for(var _i7=1;_i7<=$(".t-quiz__book-items").length;_i7++)$(".t-quiz__book-items:nth-child(".concat(_i7,")")).on("click",function(){$(".t-quiz__book").addClass("display-n"),$(".t-quiz__page").removeClass("display-n")});for(var _i8=1;_i8<=$(".t-quiz__page-items").length;_i8++)$(".t-quiz__page-items").on("click",function(){$(".t-quiz__pages").removeClass("display-n")});$(".t-quiz__age-back").on("click",function(){$(".t-quiz__age").addClass("display-n"),$(".t-quiz__type").removeClass("display-n")}),$(".t-quiz__book-back").on("click",function(){$(".t-quiz__book").addClass("display-n"),$(".t-quiz__age").removeClass("display-n")}),$(".t-quiz__page-back").on("click",function(){$(".t-quiz__page").addClass("display-n"),$(".t-quiz__pages").addClass("display-n"),$(".t-quiz__book").removeClass("display-n")});for(var _loop5=function(e){$(".t-student__info-list-items:nth-child(".concat(e,")")).on("click",function(){$(".wrappers .t-student__info-chat").addClass("display-n"),$(".wrappers .t-student__info-chat:nth-child(".concat(e+1,")")).removeClass("display-n")})},_i9=1;_i9<=$(".t-student__info-list-items").length;_i9++)_loop5(_i9);$(function(){$("select.js-select").each(function(){var t=$(this),e='<div class="js-select-css sort-select-item"><div class="sort-select-placeholder">';e+=t.find("option:eq(0)").text(),e+='</div><div class="sort-select-block display-n"><div class="sort-select-wrapper">',t.find("option:eq(0)").css("display","none"),t.find("option").each(function(){e+='<button class="sort-select-element" data-val="'+$(this).attr("value")+'" type="button">'+$(this).text()+"</button>"}),e+="</div></div></div></div>",$(e).insertAfter(t.hide()),$('.sort-select-element[data-val="undefined"]').remove();var i=t.next();i.find(".sort-select-placeholder").on("click",function(e){e.preventDefault(),i.find(".sort-select-block").toggleClass("display-n"),i.toggleClass("sort-select-item-active")}).end().find(".sort-select-element").on("click",function(e){e.preventDefault(),i.find(".sort-select-placeholder").text($(this).text()),t.val($(this).data("val")).trigger("change"),i.find(".sort-select-placeholder").trigger("click")})})}),$(".t-lesson__contact-timeline-progress").css("width","".concat($(".t-lesson__contact-timeline-progress span").text(),"%")),$(".t-edit__info-plus").on("click",function(){var e=$(".t-edit__info-student input").attr("placeholder"),t=document.getElementsByClassName("t-edit__info-student")[0],i=document.createElement("div");i.classList.add("t-edit__info-students"),i.innerHTML='<input type="text" placeholder="'.concat(e,"\" id='edit__student_").concat(1,"' />"),t.appendChild(i);e=$(".t-edit__info-time input").attr("placeholder"),t=document.getElementsByClassName("t-edit__info-time")[0],i=document.createElement("div");i.classList.add("t-edit__info-times"),i.innerHTML='<input type="text" placeholder="'.concat(e,"\" id='edit__time_").concat(1,"' />"),t.appendChild(i);e=$(".t-edit__info-price input").attr("placeholder"),t=document.getElementsByClassName("t-edit__info-price")[0],i=document.createElement("div");i.classList.add("t-edit__info-prices"),i.innerHTML='<input type="text" placeholder="'.concat(e,"\" id='edit__price_").concat(1,"' />"),t.appendChild(i)}),$(".s-header__nav-client-profile").on("click",function(){$(".s-header__nav-client-list").toggleClass("display-n"),$(".s-header__nav-client-arrow").toggleClass("rotate-180")}),$(function(){$("select.quiz-select").each(function(){var t=$(this),e='<div class="quiz-select-css quiz-select-item"><div class="quiz-select-placeholder">';e+=t.find("option:eq(0)").text(),e+='</div><div class="quiz-select-block display-n"><div class="quiz-select-wrapper">',t.find("option:eq(0)").css("display","none"),t.find("option").each(function(){e+='<button class="quiz-select-element" data-val="'+$(this).attr("value")+'" type="button">'+$(this).text()+"</button>"}),e+="</div></div></div></div>",$(e).insertAfter(t.hide()),$('.quiz-select-element[data-val="undefined"]').remove();var i=t.next();i.find(".quiz-select-placeholder").on("click",function(e){e.preventDefault(),i.find(".quiz-select-block").toggleClass("display-n"),i.toggleClass("quiz-select-item-active")}).end().find(".quiz-select-element").on("click",function(e){e.preventDefault(),i.find(".quiz-select-placeholder").text($(this).text()),t.val($(this).data("val")).trigger("change"),i.find(".quiz-select-placeholder").trigger("click")})})}),$("#numberAllQuiz").html($(".elementQuiz").length);for(var activeQuizElement=0,elementQuizCount=6,_loop6=function(e){$(".s-search__quiz-navig:nth-child(".concat(e,")")).on("click",function(){changeSlide(e)})},_i10=0;_i10<=$(".s-search__quiz-navig").length;_i10++)_loop6(_i10);function displayElementQuiz(){$(".s-search__quiz-things").addClass("display-n"),$(".s-search__quiz-long").addClass("display-n"),$(".s-search__quiz-times").addClass("display-n"),$(".s-search__quiz-stat").addClass("display-n"),$(".s-search__quiz-student").addClass("display-n"),$(".s-search__quiz-price").addClass("display-n")}function lastElementQuiz(){$(".s-search__quiz-btn").removeClass("display-n"),$(".s-search__quiz-btns").addClass("display-n")}function activeNavQuiz(){for(var e=1;e<=$(".s-search__quiz-navig").length;e++)$(".s-search__quiz-navig:nth-child(".concat(e,")")).removeClass("s-search__quiz-navig-active")}function changeSlide(e){0==(activeQuizElement="next"===e&&++activeQuizElement===elementQuizCount?0:activeQuizElement)&&(activeNavQuiz(),$(".s-search__quiz-navig:nth-child(1)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-things").removeClass("display-n"),$("#numberActiveQuiz").html(1),$(".s-search__quiz-title h3").html("Выбор предмета")),1==activeQuizElement&&(activeNavQuiz(),$(".s-search__quiz-navig:nth-child(2)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-long").removeClass("display-n"),$("#numberActiveQuiz").html(2),$(".s-search__quiz-title h3").html("Выбор длительности и интенсивности")),2==activeQuizElement&&(activeNavQuiz(),$(".s-search__quiz-navig:nth-child(3)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-times").removeClass("display-n"),$("#numberActiveQuiz").html(3),$(".s-search__quiz-title h3").html("Время проведения занятий")),3==activeQuizElement&&(activeNavQuiz(),$(".s-search__quiz-navig:nth-child(4)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-stat").removeClass("display-n"),$("#numberActiveQuiz").html(4),$(".s-search__quiz-title h3").html("Требования к репетитору")),4==activeQuizElement&&(activeNavQuiz(),$(".s-search__quiz-navig:nth-child(5)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-student").removeClass("display-n"),$("#numberActiveQuiz").html(5),$(".s-search__quiz-title h3").html("Об ученике")),5==activeQuizElement&&(activeNavQuiz(),$(".s-search__quiz-navig:nth-child(6)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-price").removeClass("display-n"),$(".s-search__quiz-btns").removeClass("display-n"),$(".s-search__quiz-btn").addClass("display-n"),$("#numberActiveQuiz").html(6),$(".s-search__quiz-title h3").html("Стоимость занятия")),1==e&&(activeQuizElement=0,activeNavQuiz(),$(".s-search__quiz-navig:nth-child(1)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-things").removeClass("display-n"),$("#numberActiveQuiz").html(1),$(".s-search__quiz-title h3").html("Выбор предмета")),2==e&&(activeQuizElement=1,activeNavQuiz(),$(".s-search__quiz-navig:nth-child(2)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-long").removeClass("display-n"),$("#numberActiveQuiz").html(2),$(".s-search__quiz-title h3").html("Выбор длительности и интенсивности")),3==e&&(activeQuizElement=2,activeNavQuiz(),$(".s-search__quiz-navig:nth-child(3)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-times").removeClass("display-n"),$("#numberActiveQuiz").html(3),$(".s-search__quiz-title h3").html("Время проведения занятий")),4==e&&(activeQuizElement=3,activeNavQuiz(),$(".s-search__quiz-navig:nth-child(4)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-stat").removeClass("display-n"),$("#numberActiveQuiz").html(4),$(".s-search__quiz-title h3").html("Требования к репетитору")),5==e&&(activeQuizElement=4,activeNavQuiz(),$(".s-search__quiz-navig:nth-child(5)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-student").removeClass("display-n"),$("#numberActiveQuiz").html(5),$(".s-search__quiz-title h3").html("Об ученике")),6==e&&(activeQuizElement=5,activeNavQuiz(),$(".s-search__quiz-navig:nth-child(6)").addClass("s-search__quiz-navig-active"),displayElementQuiz(),lastElementQuiz(),$(".s-search__quiz-price").removeClass("display-n"),$(".s-search__quiz-btns").removeClass("display-n"),$(".s-search__quiz-btn").addClass("display-n"),$("#numberActiveQuiz").html(6),$(".s-search__quiz-title h3").html("Стоимость занятия"))}function removeTimeElement(e){e=e.value;1==$(".s-search__quiz-time-items").length||$("#".concat(e)).remove()}$(".s-search__quiz-btn").on("click",function(){changeSlide("next")});for(var eventDatesStudent={},countElementDataListStudent=$(".s-schedule__list-items").length,_i12=1;_i12<=countElementDataListStudent;_i12++){var _element=$(".s-schedule__list-items:nth-child(".concat(_i12,")")).text();eventDatesStudent[new Date("".concat(_element))]=new Date("".concat(_element))}$.datepicker.regional.ru={closeText:"Закрыть",prevText:"Предыдущий",nextText:"Следующий",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница"," суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Не",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",beforeShowDay:function(e){return eventDatesStudent[e]?[!0,"s-active-date",""]:[!0,"",""]}},$.datepicker.setDefaults($.datepicker.regional.ru),$("#datepickerScheduleStudent").datepicker().on("change",function(){$(".model-calendar").addClass("display-n");var e=$("#datepickerScheduleStudent").val();$(".s-schedule__info-list-title").text(e)});for(var _i13=1;_i13<=$(".s-schedule__info-items").length;_i13++)_i13<10?$(".s-schedule__info-items:nth-child(".concat(_i13,") .s-schedule__info-items-number")).text("0"+_i13):$(".s-schedule__info-items:nth-child(".concat(_i13,") .s-schedule__info-items-number")).text(_i13);$(".s-schedule__info-calendar-btn").on("click",function(){$(".modelScheduleTeacher").removeClass("display-n"),$("body").css("overflow","hidden")}),$(".modelScheduleTeacher__wrappers-close").on("click",function(){$("body").css("overflow","visible"),$(".modelScheduleTeacher").addClass("display-n")});for(var _loop7=function(e){$(".s-teacher__info-list-items:nth-child(".concat(e,")")).on("click",function(){$(".wrappers .s-teacher__info-chat").addClass("display-n"),$(".wrappers .s-teacher__info-chat:nth-child(".concat(e+1,")")).removeClass("display-n")})},_i14=1;_i14<=$(".s-teacher__info-list-items").length;_i14++)_loop7(_i14);$(function(){$(".s-found__title p").html("("+$(".s-found__items").length+")")});