1function businessLoanCalculate(){var e=parseFloat($("input[name=salary]").val()),t=parseFloat($("input[name=month]").val()),n=e/12/100,a=parseFloat($("input[name=credit]").val())*(n*Math.pow(1+n,t))/(Math.pow(1+n,t)-1),o=a*t,i=parseFloat(a).toFixed(2).split("."),s=parseFloat(o).toFixed(2).split(".");$("input[name=pay_month_credit]").val(i[0]),$("input[name=pay_month_percent]").val(e),$("#my_month_pay").html(i[0]+'.<span style="font-size:10px;">'+i[1]+"</span><span> AZN</span>"),$("#my_year_pay").html(s[0]+'.<span style="font-size:10px;">'+s[1]+"</span><span> AZN</span>"),$("#my_percent").length>0&&$("#my_percent").html(e+"<span> %</span>")}$(document).on("input",".business_range",function(e){var t=$(this);tV=t.val(),t.css("--val",tV),t.closest(".lc_item").find(".range_result").val(tV),businessLoanCalculate()}),$(document).on("keyup",".business_check",function(e){var t=$(this);tV=t.val(),r=t.siblings(".business_range"),rMin=r.attr("min"),rMax=r.attr("max"),parseInt(tV)>parseInt(rMax)&&t.val(rMax),parseInt(tV)<parseInt(rMin)&&tV.length<1&&t.val(rMin),tVnew=t.val(),r.val(tVnew),r.css("--val",tVnew),tVnew>parseInt(rMin)&&businessLoanCalculate()}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},a=n[e]=n[e]||[];return-1==a.indexOf(t)&&a.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var a=n.indexOf(t);return-1!=a&&n.splice(a,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var a=this._onceEvents&&this._onceEvents[e],o=0;o<n.length;o++){var i=n[o];a&&a[i]&&(this.off(e,i),delete a[i]),i.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(n){return t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){var n=e.jQuery,a=e.console;function o(e,t){for(var n in t)e[n]=t[n];return e}var i=Array.prototype.slice;function s(e,t,r){if(!(this instanceof s))return new s(e,t,r);var l,c=e;("string"==typeof e&&(c=document.querySelectorAll(e)),c)?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?i.call(l):[l]),this.options=o({},this.options),"function"==typeof t?r=t:o(this.options,t),r&&this.on("always",r),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):a.error("Bad element for imagesLoaded "+(c||e))}s.prototype=Object.create(t.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&r[t]){for(var n=e.querySelectorAll("img"),a=0;a<n.length;a++){var o=n[a];this.addImage(o)}if("string"==typeof this.options.background){var i=e.querySelectorAll(this.options.background);for(a=0;a<i.length;a++){var s=i[a];this.addElementBackgroundImages(s)}}}};var r={1:!0,9:!0,11:!0};function l(e){this.img=e}function c(e,t){this.url=e,this.element=t,this.img=new Image}return s.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,a=n.exec(t.backgroundImage);null!==a;){var o=a&&a[2];o&&this.addBackground(o,e),a=n.exec(t.backgroundImage)}},s.prototype.addImage=function(e){var t=new l(e);this.images.push(t)},s.prototype.addBackground=function(e,t){var n=new c(e,t);this.images.push(n)},s.prototype.check=function(){var e=this;function t(t,n,a){setTimeout(function(){e.progress(t,n,a)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEac
1h(function(e){e.once("progress",t),e.check()}):this.complete()},s.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},l.prototype=Object.create(t.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},l.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},s.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(n(this))})},s.makeJQueryPlugin(),s});var maaw_ch=0,Yelo={initialized:!1,init:function(){if($(".footer_tags")){$(".footer_tags ul").flickity({cellAlign:"left",contain:!0,pageDots:!1,wrapAround:!0,prevNextButtons:!0})}if($(".datetimepicker").length&&($.fn.datepicker.language.en={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"mm/dd/yyyy",timeFormat:"hh:ii aa",firstDay:0},$(".datetimepicker").datepicker({language:"en",dateFormat:"dd MM yyyy"})),jQuery("#datetimepicker3").datetimepicker({onGenerate:function(e){jQuery(this).find(".xdsoft_date.xdsoft_weekend").addClass("xdsoft_disabled")},dayOfWeekStart:1,format:"Y-m-d H:i",inline:!0,lang:"ru",minTime:"00:00",maxTime:"00:00"}
1),$(document).on("click",".m_item",function(){var e=$(this),t=e.find(".m_image").attr("style"),n=e.find(".m_desc b").text(),a=e.find(".m_desc p").text(),o=e.data("text");return""==o||(null==t?$("body").append('<div class="leadership_darkness"></div><div class="leadership_modal long"><a href="javascript:void(0);" class="close"></a><div class="inner"><h3>'+n+"</h3><h4>"+a+'</h4><div class="text">'+o+"</div></div></div>"):$("body").append('<div class="leadership_darkness"></div><div class="leadership_modal"><a href="javascript:void(0);" class="close"></a><div class="image" style="'+t+'"></div><div class="inner"><h3>'+n+"</h3><h4>"+a+'</h4><div class="text">'+o+"</div></div></div>"),setTimeout(function(){$(".leadership_darkness").addClass("show_me"),$(".leadership_modal").addClass("show_me")},150)),!1}),$(document).on("click",".leadership_darkness, .leadership_modal .close",function(){return $(".leadership_darkness").removeClass("show_me"),$(".leadership_modal").removeClass("show_me"),setTimeout(function(){$(".leadership_darkness, .leadership_modal").remove()},350),!1}),$(".m_item").length)for(var e=0;e<$(".m_item").length;e++)""==$(".m_item").eq(e).data("text")&&$(".m_item").eq(e).find(".link").remove();if($(document).on("click",".call_faq",function(){return $(".faq_darkness").addClass("show_me"),setTimeout(function(){$(".faq_modal").addClass("show_me")},150),!1}),$(document).on("click",".faq_modal .close",function(){$(".faq_modal").removeClass("show_me"),setTimeout(function(){$(".faq_darkness").removeClass("show_me")},150)}),$(document).on("click",".answer_link a",function(){return $(".answer_form").toggleClass("show_me"),!1}),$(document).on("click",".call_form",function(){$(".hidden_form").html("");var e=$(this).parents(".common_item");if(e.next().toggleClass("show_me"),$(this).hasClass("brand_bttn")&&e.next().hasClass("show_me")){var t=$(this).attr("data-url");$.ajax({url:t,method:"post",contentType:!1,processData:!1,cache:!1,beforeSend:function(e){},success:function(t){var n=$(t).find(".form_self");e.next().html(n)}})}return setTimeout(function(){$(".mask_phone_short").length>0&&$(".mask_phone_short").mask("000 00 00"),$(".mask_phone").inputmask("+994 00 000 00 00",{clearMaskOnLostFocus:!1,oncomplete:function(){$(this).removeClass("alert")},onincomplete:function(){$(this).addClass("alert")}})},600),!1}),$(document).on("keydown",".mask_phone",function(e){if(5==function(e){if(e.selectionStart)return e.selectionStart;if(document.selection){var t=document.selection.createRange(),n=t.duplicate();return t.collapse(!0),n.moveToElementText(e),n.setEndPoint("EndToEnd",t),n.text.length}return 0}(document.getElementsByClassName("mask_phone")[1])&&(48==e.keyCode||96==e.keyCode))return!1}),$(document).ready(function(){const e=["10","50","51","55","60","70","77","99"],t=["1","5","6","7","9"];function n(n,a){let o=a.replace("+994","").replace(/[^0-9]/g,"");if(0!==o.length){if(1===o.length){const e=o[0];if(!t.includes(e))return void $(n).val("+994")}if(2===o.length){const t=o.substring(0,2);if(!e.includes(t))return void $(n).val("+994 "+o[0])}$(n).val("+994"+o)}else $(n).val("+994")}"ontouchstart"in document.documentElement?$(".mask_phone_prefix_control").on("input",function(e){let t=$(this).val();if(""===t)return t="+994",void $(this).val(t);t.startsWith("+994")||(t="+994",$(this).val(t)),n(this,t)}):$(".mask_phone_prefix_control").on("input",function(e){let t=$(this).val();if(""===t)return t="+994",void $(this).val(t);t.startsWith("+994")||(t="+994"),n(this,t)})}),$(document).on("click",".call_links",function(){return $(".darkness").addClass("show_me"),setTimeout(function(){$(".links_modal").addClass("show_me")},150),!1}),$(document).on("click",".darkness",function(){return $(".links_modal").removeClass("show_me"),setTimeout(function(){$(".darkness").removeClass("show_me")},150),!1}),$(document).keydown(function(e){27==e.keyCode&&$(".darkness").click()}
1),$(".branshes_list").length&&setTimeout(function(){var e=$(".branshes_list").data("google"),t=$(".branches_top").data("wase");$(".map_link a").text(e),$(".map_link.wase a").text(t)},100),$(".br_sl_filters .tabs").length&&setTimeout(function(){$(".br_sl_filters .tabs li").eq(0).find("a").click()},600),$(window).scrollTop()>0?$("header").addClass("add_bg"):$("header").removeClass("add_bg"),!Yelo.initialized){if(Yelo.initialized=!0,Yelo.resize(),$(".card_inner_image").length>0&&$("body").imagesLoaded(function(){setTimeout(function(){$(".card_inner_image").addClass("show")},1e3)}),$(document).on("click",".search_header",function(e){$(".search_wrap").fadeIn(100,function(){$("body").addClass("open_search"),$(".search_self input").focus()})}),$(document).on("click",".again_search",function(e){$(".search_wrap").fadeIn(100,function(){$("body").addClass("open_search"),$(".search_self input").focus()})}),$(document).on("click",".close_search",function(e){$("body").removeClass("open_search"),$(".search_wrap").fadeOut(400)}),$(document).on("click",".menu_toggle",function(e){$("body").toggleClass("open_menu"),$("header").hasClass("hide_top")&&$("header").removeClass("hide_top")}),$(document).on("click",".open_select",function(e){$(this).siblings(".select_box").toggleClass("open_select")}),$(document).on("click",".active_lang",function(e){$(".head_top").addClass("no_oveflow")}),$(document).on("click",".dp_calc_type .switch",function(e){$(this).toggleClass("on"),$(".monthly_income").toggle(),"undefined"!=typeof deposit_calc_json&&h()}),$(document).on("keyup","input[name=depo_amount]",function(e){var t=parseInt($(this).attr("max"));parseInt($(this).val())>t&&$(this).val(t),h()}),$(document).on("keyup","input[name=depo_amount_pre]",function(e){h()}),$(document).on("change","input[name=depo_month]",function(e){h()}),$(document).on("input",".range",function(e){var t=parseInt($("input[name=calc_type]").val());$(this).parent().hasClass("lc_salary")&&(maaw_ch=1),0==maaw_ch&&1017==t?0==$("input[name=superpower]").length&&$(".calc_error").show():$(".calc_error").hide();var n=$(this);if(tV=n.val(),n.css("--val",tV),n.closest(".lc_item").find(".range_result").val(tV),9==t)return for_ipoteka($(this).parent().find("input[type=number]").attr("name")),!1;"undefined"!=typeof credit_json&&m(),"undefined"!=typeof deposit_calc_json&&h(),p(n.closest(".lc_item").find(".range_result").attr("name"))}),"undefined"!=typeof credit_json&&m(),"undefined"!=typeof deposit_calc_json&&h(),$(document).on("change",".select_currency",function(e){"undefined"!=typeof deposit_calc_json&&h()}),$(document).on("change","select[name=komissiya]",function(e){"undefined"!=typeof credit_json&&m()}),$(document).on("focusout",".range_result",function(e){var t=$(this);tV=t.val(),r=t.siblings(".range"),rMin=r.attr("min"),rMax=r.attr("max"),p(t.closest(".lc_item").find(".range_result").attr("name")),parseInt(tV)<parseInt(rMin)||($(".show_credit_result").show(),$(".show_credit_err").hide())}),$(document).on("keyup",".range_result",function(e){var t=$(this);$(this).parent().hasClass("lc_salary")&&(maaw_ch=1),tV=t.val(),r=t.siblings(".range"),rMin=r.attr("min"),rMax=r.attr("max"),parseInt(tV)>parseInt(rMax)&&t.val(rMax),parseInt(tV)<parseInt(rMin)&&tV.length<1&&t.val(rMin),tVnew=t.val(),r.val(tVnew),r.css("--val",tVnew),tVnew>parseInt(rMin)&&("undefined"!=typeof credit_json&&m(),"undefined"!=typeof deposit_calc_json&&h())}),$(".home_slider .slide_item").length>1)$(".home_slider").flickity({cellAlign:"left",contain:!0,prevNextButtons:!1,pageDots:!0,autoPlay:3e3,wrapAround:!0,adaptiveHeight:!0});if($(".work_slider").length>0)$(".work_slider").flickity({cellAlign:"left",contain:!0,pageDots:!1});if($(".products_slider").length>0){$(".products_slider").flickity({cellAlign:"left",contain:!0,pageDots:!1});setTimeout(function(){$(".products_slider article").css("height",$(".products_slider").height()+"px")},300)}if($(document).on("click",".add_line",function(e){var t=$(this);tC=t.closest(".form_item"),clone=tC.clone(),clone.find("input").val(""),$(".multiline_form").append(clone)}),$(document).on("click",".remove_line",function(e){var t=$(this);tC=t.closest(".form_item"),tC.remove()}),$(".dropzone").length>0){var t=$(".dropzone");t.on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}),t.on("dragover dragenter",function(){$(this).addClass("is-dragover")}),t.on("dragleave dragend drop",function(){$(this).removeClass("is-dragover")}),t.on("drop",function(e){var n=e.originalEvent.dataTransfer.files;$('.select_cv input[type="file"]').prop("files",n),name=$(".dropzone input").val(),name=name.replace(/.*[\/\\]/,""),$(".after_drop").html("<div class='uploaded cv_upload'><p>"+name+"</p></div>"),t.find(".before_drop").hide()}),$(document).on("change",".dropzone input",function(e){$(this);name=$(this).val(),name=name.replace(/.*[\/\\]/,""),$(".after_drop").html("<div class='uploaded cv_upload'><p>"+name+"</p></div>"),t.find(".before_drop").hide()})}if($(".s_carousel").length>0){$(".mob_it").length>0&&$(".s_carousel .first_one").remove();var n=$(".stories .s_carousel").flickity({cellAlign:"left",contain:!0,prevNextButtons:!1,pageDots:!1});$(".stories .s_item").length<5&&$(".stories .block_nav").hide(),$(document).on("click",".stories .n_s",function(e){n.flickity("next")}),$(document).on("click",".stories .p_s",function(e){n.flickity("previous")})}if($(".services_block .s_carousel").length>0){var a=$(".services_block .s_carousel").flickity({cellAlign:"left",contain:!0,prevNextButtons:!1,pageDots:!1});$(document).on("click",".services_block .n_s",function(e){a.flickity("next")}),$(document).on("click",".services_block .p_s",function(e){a.flickity("previous")})}if($(".atvImg").length>0&&$(".web_it").length>0&&atvImg(),$(".stories_content").length>0){var o,i,s;function l(e){c(),s=0,o=!1,i=setInterval(()=>{!1===o&&(s_index=$(".story_item.is-selected").index(),s+=1/10.1,$(".stories_progress li").eq(s_index).find(".p_bar").css({width:s+"%"}),s>=100&&($(".next_story").trigger("click"),l()))},10)}function c(){$(".stories_progress .p_bar").css({width:"0%"}),clearTimeout(i)}$(".modal_item.active .stories_carousel").on({mouseenter:function(){o=!0},mouseleave:function(){o=!1}
1});var d=$(".stories_carousel").flickity({cellAlign:"left",contain:!0,prevNextButtons:!1,pageDots:!1,wrapAround:!0,on:{change:function(e){c(),l(),$(".stories_lit_nav li").eq(e-1).find(".story_lit").removeClass("not_seen")}}});$(".stories_lit_nav li .story_lit").addClass("not_seen"),$(document).on("click",".next_story",function(e){d.flickity("next")}),$(document).on("click",".prev_story",function(e){d.flickity("previous")}),$(document).on("click",".stories_lit_nav a",function(e){var t=$(this);index=t.closest("li").index(),d.flickity("select",index)}),$(".story_item").each(function(){$(".stories_progress ul").append('<li><div class="bar_holder"><div class="p_bar"></div></div></li>')})}$(document).on("click","a[data-modal]",function(e){e.preventDefault();var t=$(this),n=t.attr("data-modal"),a=t.attr("href");t.closest(".s_item").index();return aM=$(".modal_item[data-modal='"+n+"']"),$(".modals").show(),setTimeout(function(){$(".modals").addClass("active"),setTimeout(function(){if(aM.addClass("active"),"stories_modal"==n)index=$(".stories_carousel").find(".story_item[data-url='"+a+"']").index(),d.flickity("resize"),d.flickity("select",index),l();else if("cash_back_item"==n)aM.find(".cashback_left").html('<div class="commonlist_loading"></div>'),$.get(t.attr("href"),function(e,a){e=$(e).find(".modal_item[data-modal='"+n+"'] .cashback_left").children(),aM.find(".cashback_left").html("").append(e),aM.data("loading",!1),history.pushState({},"",t.attr("href"))});else if("card_pop_up"==n){var e=t.attr("data-service-id");t.parents(".flickity-slider").length?$(".c_pp_right a[data-service-id='"+e+"']").trigger("click"):($(".c_pp_right a[data-service-id='"+e+"']").trigger("click"),$(".c_pp_right li").eq(t.parent().index()).find("a").trigger("click")),history.pushState({},"",t.attr("href"))}setTimeout(function(){aM.addClass("show")},100)},100)},100),!1}),$(document).on("click",".c_pp_right a",function(e){var t=$(this);tSid=t.attr("data-service-id"),$(".c_pp_right a").removeClass("active"),t.addClass("active"),$(".service_item_pp").removeClass("active"),$(".service_item_pp[data-service-id='"+tSid+"']").addClass("active"),t.data("url")&&history.pushState({},"",t.data("url"))}),$(document).on("click",".close_pp, .fader",function(e){$(".modal_item.active").removeClass("show"),setTimeout(function(){$(".modal_item.active").removeClass("active show"),$(".modals").removeClass("active"),setTimeout(function(){$(".modals").hide(),$(".modals").removeClass("dark")},300)},300)}),$(document).on("click","[data-tabs] a",function(e){var t=$(this);tC=t.closest("div"),tCd=tC.attr("data-tabs"),tF=t.attr("data-filter"),tC.find("a").removeClass("active"),t.addClass("active"),"*"==tF?$("*[data-tabs-content='"+tCd+"'] *[data-filter]").show():($("*[data-tabs-content='"+tCd+"'] *[data-filter]").hide().removeClass("active"),$("*[data-tabs-content='"+tCd+"']").find("*[data-filter='"+tF+"']").show().addClass("active"))}),$(document).on("click",".cash_back_filters .select_content a",function(e){var t=$(this);tT=t.text(),tC=t.closest(".cash_back_filters"),tC.find(".select_content a").removeClass("active"),tC.find(".open_select span").text(tT),tC.find(".open_select").trigger("click"),t.addClass("active")}),$(document).on("click",".scroll_to_order",function(e){fO=$(".form_self").offset(),$("html, body").animate({scrollTop:fO.top-200},1500,"easeInOutExpo")}),$(document).on("change",".form_file input",function(e){var t=$(this);tS=t.siblings(".form_file_select"),name=$(this).val(),name=name.replace(/.*[\/\\]/,""),this.files&&this.files[0]&&file_send_ajax(this.files[0],t)}),$(document).on("click",".question",function(e){var t=$(this);t.hasClass("open")?(t.removeClass("open"),t.siblings(".answer").animate({height:"hide",padding:"0"},350,"easeInOutExpo")):($(".question").removeClass("open"),t.closest(".faq_item").siblings().find(".answer").animate({height:"hide",padding:"0"},350,"easeInOutExpo"),t.addClass("open"),t.siblings(".answer").stop(!0,!0).animate({height:"show",padding:"20px 0 0 0"},350,"easeInOutExpo"))}),$(".branches_page").length>0&&($(".br_search_line input").quicksearch(".branches_bottom a"),Yelo.initialize(40.389268,49.859476,locations),$(document).on("click",".toggle_b_filter",function(e){$(this).toggleClass("active"),$(".br_sl_filters").toggle()}),$(document).on("click",".br_sl_filters a",function(e){var t=$(this);tF=t.attr("data-filter"),new_locations=[],"*"==tF?new_locations=locations:(tF=parseInt(tF.replace("pin","")),locations.forEach(function(e){e.includes(tF)&&new_locations.push(e)})),Yelo.initialize(40.389268,49.859476,new_locations)})),$(document).on("click",".play_bttn",function(e){$(".play_bttn").fadeOut(function(){$(".video_self video").get(0).play()})}),$(document).on("click",".t_pause",function(e){$(this).removeClass("t_pause").addClass("t_play"),$(".video_self video").get(0).pause()}),$(document).on("click",".t_play",function(e){$(this).removeClass("t_play").addClass("t_pause"),$(".video_self video").get(0).play()}),$(".c_map").length>0&&Yelo.initialize(40.371094,49.84216,locations),$(".mask_phone").length>0&&($(".mask_phone").inputmask("+994 00 000 00 00",{clearMaskOnLostFocus:!1,oncomplete:function(){$(this).removeClass("alert")},onincomplete:function(){$(this).addClass("alert")},definitions:{0:{validator:"[0-9]",cardinality:1,casing:"lower"}}}),/Mobi|Android/i.test(navigator.userAgent)&&$(".mask_phone").on("keydown",function(e){let t=$(this),n=t.val(),a=t.prop("selectionStart");if("Backspace"===e.key&&a>0){if(" "===n[a-1]&&a>1){let o=n[a-2];/[0-9]/.test(o)&&(e.preventDefault(),t.val(n.slice(0,a-2)+n.slice(a)),t.prop("selectionStart",a-2),t.prop("selectionEnd",a-2))}}})),$(".mask_phone_n").length>0&&$(".mask_phone_n").inputmask("+994 00 000 00 00",{oncomplete:function(){$(this).removeClass("alert")},onincomplete:function(){$(this).addClass("alert")}}),$(".mask_phone_short").length>0&&$(".mask_phone_short").mask("000 00 00"),$(".mask_phone_long").length>0&&$(".mask_phone_long").mask("+994 (00) 000 00 00"),$(".mask_letter").length>0&&$(document).on("keyup blur",".mask_letter",function(e){var t=$(this);t.val(t.val().replace(/[^a-zA-Z]/g,""))}),$(".mask_letter_az").length>0&&$(document).on("input",".mask_letter_az",function(e){var t=$(this);t.val(t.val().replace(/[^a-zA-Z ÆÉÃüÄÄÃöİÅÅÃçIı]/g,""))}),$(".not_symbols").length>0&&$(document).on("keyup blur",".not_symbols",function(e){var t=$(this);t.val(t.val().replace(/[^a-za0-9\s]/gi,""))}),$(".only_number").length>0&&$(".only_number").keypress(function(e){if(8!=e.which&&0!=e.which&&46!=e.which&&(e.which<48||e.which>57))return!1})}function m(){if(0!=$("input[name=superpower]").length)return e=parseInt($("input[name=month]").val()),u(parseFloat($("input[name=percent]").val()),e,parseInt($("input[name=credit]").val())),!1;var e,t=[];Object.keys(credit_json).map(e=>{t.push(e.split("-"))});var n=parseInt($("input[name=month]").val()),a=parseInt($("input[name=percent]").val()),o=parseInt($("input[name=credit]").val()),i=parseInt($("input[name=calc_type]").val()),s=$("select[name=komissiya]").val()?$("select[name=komissiya]").val():"0";if(1017===i){for(var r=0;r<t.length;r++)if(parseInt(t[r][1])>=n&&n>=parseInt(t[r][0])){month_key=t[r].join("-");var l=[];
1if(credit_json[month_key][s]){Object.keys(credit_json[month_key][s]).map(e=>{l.push(e)});for(var c=0;c<l.length;c++){var d=l[c].split("-");if(parseInt(d[1])>=a&&a>=parseInt(d[0])){u(credit_json[month_key][s][d.join("-")],n,o);break}}}$("select[name=komissiya]").val()&&($("select[name=komissiya]").html(""),Object.keys(credit_json[month_key]).map(e=>{var t="";e==s&&(t="selected"),$("select[name=komissiya]").append('<option value="'+e+'" '+t+">"+e+"%</option>")}));break}}else 9==i?for_ipoteka():u(a,n,o)}function u(e,t,n){var a=e/12/100,o=n*(a*Math.pow(1+a,t))/(Math.pow(1+a,t)-1),i=o*t,s=parseFloat(o).toFixed(2).split("."),r=parseFloat(i).toFixed(2).split(".");$("input[name=pay_month_credit]").val(s[0]),$("input[name=pay_month_percent]").val(e),$("#my_month_pay").html(s[0]+"<span> AZN</span>"),$("#my_year_pay").html(r[0]+'.<span style="font-size:10px;">'+r[1]+"</span><span> AZN</span>"),$("#my_percent").length>0&&$("#my_percent").html(e+"<span> %</span>")}function p(e){if(1017==parseInt($("input[name=calc_type]").val())){var t=parseInt($("input[name=salary]").val()),n=parseInt($("input[name=pay_month_credit]").val()),a=parseInt($("input[name=pay_month_percent]").val()),o=parseInt($("input[name=month]").val()),i=.45*t;if(n>.45*t){if("salary"==e&&36==o){var s=a/12/100,r=Math.pow(1+s,o),l=Math.pow(1+s,o),c=parseInt(i*(l-1)/(s*r));$("input[name=credit]").val(c),$("input[name=credit]").closest(".lc_item").find(".range").val(c),$("input[name=credit]").closest(".lc_item").find(".range").css("--val",c),m(),p("ttt")}else if("credit"==e||"salary"==e){var d=$("input[name=month]").data("max");if(d==$("input[name=month]").val()){s=a/12/100,r=Math.pow(1+s,o),l=Math.pow(1+s,o);(c=parseInt(i*(l-1)/(s*r)))>3e4&&(c=3e4),$("input[name=credit]").val(c),$("input[name=credit]").closest(".lc_item").find(".range").val(c),$("input[name=credit]").closest(".lc_item").find(".range").css("--val",c)}$("input[name=month]").val(d),$("input[name=month]").closest(".lc_item").find(".range").val(d),$("input[name=month]").closest(".lc_item").find(".range").css("--val",d),m(),p("ttt")}if("month"==e){s=a/12/100,r=Math.pow(1+s,o),l=Math.pow(1+s,o);(c=parseInt(i*(l-1)/(s*r)))>3e4&&(c=3e4),$("input[name=credit]").val(c),$("input[name=credit]").closest(".lc_item").find(".range").val(c),$("input[name=credit]").closest(".lc_item").find(".range").css("--val",c),m(),p("ttt")}}else $(".show_credit_result").show(),$(".show_credit_err").hide()}}function h(){var e=parseInt($("select[name=depo_month]").val()),t=parseInt($("input[name=depo_amount]").val()),n=$("select[name=currency]").val();if("undefined"!=typeof deposit_type&&null!==deposit_type){let e;e=t<1e5?0:t>5e5?2:1,function(e,t,n,a){var o=e*n/100*(t/12),i=o/t;$("#deposit_percent_amount").html(o.toFixed()+"<span> "+a.toUpperCase()+"</span>"),$("#deposit_percent_month").html(i.toFixed(2)+"<span> "+a.toUpperCase()+"</span>"),$(".depo_currency").html(a.toUpperCase()),$("#deposit_percent_val").html(n+"<span> %</span>")}(t,36,deposit_calc_json[n][e][0],n)}else{!function(e,t,n,a){var o=$(".switch").hasClass("on")?n[1]:n[0],i=e*o/100*(t/12),s=i/t,r=parseInt($("input[name=depo_amount_pre]").val());(r=parseInt(r))&&(s=(i=Math.round(e*o/100/12*t+r*o/100/12*(12===t?66:143)))/t);$("#deposit_percent_amount").html(i.toFixed()+"<span> "+a.toUpperCase()+"</span>"),$("#deposit_percent_month").html(s.toFixed(2)+"<span> "+a.toUpperCase()+"</span>"),$(".depo_currency").html(a.toUpperCase()),$("#deposit_percent_val").html(o+"<span> %</span>")}(t,e,deposit_calc_json[n][e],n)}}},initialize:function(e,t,n){var a={center:new google.maps.LatLng(e,t),zoom:12,mapTypeId:google.maps.MapTypeId.ROADMAP,panControl:!1,zoomControl:!1,mapTypeControl:!1,streetViewControl:!1,overviewMapControl:!1,fullscreenControl:!1},o=new google.maps.Map(document.getElementById("map"),a);Yelo.setMarkers(o,n)},setMarkers:function(e,t){var n,a=[],o=new google.maps.InfoWindow;for(n=0;n<t.length;n++){var i=t[n][0],s=t[n][1],r=t[n][2],l=t[n][3],c=t[n][4],d=t[n][5];latlngset=new google.maps.LatLng(s,r);var m=new google.maps.Marker({id:d,map:e,title:i,position:latlngset,icon:"/site/templates/images/pin.svg"});a.push(m);var u=$(".branshes_list").data("google"),p=$(".branches_top").data("wase");if($(".branches_page").length>0)var h="<div class='inf_block'><div class='m_content'><a href='javascript:void(0)' class='close_info_block'></a><b>"+i+"</b><ul class='pin_infos'>
1<li class='pin_call'>"+c+"</span></div><div class='trajectory_buttons'> <a href='https://www.google.com/maps/dir/?api=1&origin=&destination="+s+","+r+"&travelmode=driver' class='google' target='_blank'>"+u+"</a> <a href='https://www.waze.com/ul?ll="+s+","+r+"&navigate=yes' class='wase' target='_blank'>"+p+"</a> </div></div>";else h="<div class='inf_block'><div class='m_content'><a href='javascript:void(0)' class='close_info_block'></a><b>"+i+" | "+l+"</b><ul class='pin_infos'><li class='pin_call'>"+c+"</span></div><div class='trajectory_buttons'> <a href='https://www.google.com/maps/dir/?api=1&origin=&destination="+s+","+r+"&travelmode=driver' class='google' target='_blank'>WazeâdÉ aç</a> <a href='https://www.waze.com/ul?ll=40.403065,49.806690&navigate=yes' class='wase' target='_blank'>Google mapsâdÉ aç</a> </div></div>";google.maps.event.addListener(m,"click",function(t,n,a){return function(){a.setContent(n),a.open(e,t),$(".gm-style .gm-style-iw").prev().remove(),$(".gm-style .gm-style-iw").parent().css("margin","20px 10px");t.getPosition();s=t.getPosition().lat(),r=t.getPosition().lng(),nLl=new google.maps.LatLng(s+.0012,r+.005),e.setCenter(nLl),e.setZoom(16)}}(m,h,o))}$(document).on("click",".close_info_block",function(e){o.close()}),$(document).on("click",".branches_bottom a",function(e){var t=function(e,t){for(var n=0;n<t.length;n++)if(t[n].id===e)return t[n]}(parseInt($(this).attr("data-id")),a);google.maps.event.trigger(t,"click"),$("body").removeClass("open_branches_list")}),$(document).on("click",".open_branches a",function(e){$("body").addClass("open_branches_list")})},resize:function(){var e;$(window).width();wH=$(window).height(),$("html").removeClass("web_it mob_it"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?$("html").addClass("mob_it"):$("html").addClass("web_it"),$(".seaction").each(function(){var e=$
1(this);tT=e.position().top,$(document).scrollTop()>=tT-wH/4&&e.addClass("animate")}),$(document).on("scroll",function(){var e=$(this).scrollTop();$(this).scrollTop()>0?$("body").addClass("fixed_h"):$("body").removeClass("fixed_h"),$(".seaction").each(function(){var t=$(this);tT=t.position().top,e>tT-wH/1.8&&t.addClass("animate")})}),$(document).click(function(e){var t=$(".lang_select");t.is(e.target)||0!==t.has(e.target).length||$(".lang_select .select_box").removeClass("open_select")});var t=0;$(window).scroll(function(t){e=!0}),setInterval(function(){e&&(!function(){var e=$(this).scrollTop();e>0?$("header").addClass("add_bg"):$("header").removeClass("add_bg");if(Math.abs(t-e)<=5)return;e>t&&e>0?$("header").addClass("hide_top"):e+$(window).height()<$(document).height()&&$("header").removeClass("hide_top");t=e}(),e=!1)},250)}};$(window).resize(function(){Yelo.resize()}),$(document).ready(function(){Yelo.init()});const refreshing=!1,refreshCashbackStores=e=>{let t=e.target.id;t||(t=e.target.parentElement.parentElement.id);let n="?cat="+$("#cashback_select_cat").val()+"&search="+$("#cashback_search").val()+"&p="+("cashback_more"===t?$("#cashback_more").data("page"):1);window.history.pushState({url:n},null,n),$.ajax({url:n,method:"GET",contentType:!1,processData:!1,cache:!1,beforeSend:function(e){"cashback_more"===t?($(".load_more").before('<div class="loadmore_loading"></div>'),$(".load_more").remove()):($(".common_list").children().remove(),$(".common_list").append('<div class="commonlist_loading"></div>'))},success:function(e){"cashback_more"===t?($(".loadmore_loading").remove(),$(".common_grid").append($(e).find(".common_grid").children()),$(".common_grid").after($(e).find(".load_more"))):($(".search_loading").remove(),$(".common_list").children().remove(),$(".common_list").append($(e).find(".common_list").children()))}})};var interval=null;$(document).on("keyup","#cashback_search",e=>{var t=e.keyCode||e.which;t>=35&&t<=40||(interval&&clearTimeout(interval),interval=setTimeout(function(){$("#cashback_search").after('<div class="search_loading"></div>'),refreshCashbackStores(e),$(e.target).blur()},1e3))}),$(document).on("change","#cashback_select_cat",refreshCashbackStores),$(document).on("click","#cashback_popular a",e=>{let t=$(e.target).data("cat");$("#cashback_select_cat").val(t).change(),$("#cashback_popular a").removeClass("active"),$("*[data-cat="+t+"]").addClass("active")}),$(document).on("click","#cashback_more",refreshCashbackStores),$(document).on("submit",".js_form",function(e){e.preventDefault();var t=$("#"+this.getAttribute("id")),n=new FormData(this),a=this.getAttribute("id");parseInt($("input[name=calc_type]").val());if($(".calc_error").hide(),t.find("select[name=prefix]").val()){var o=t.find("select[name=prefix]").val()+" "+t.find("input[name=phone]").val();t.find("input[name=phone]").val()&&n.set("phone",o)}let i=document.querySelector('input[name="uid"]').value;n.append("uid",i),$.ajax({url:t.attr("action"),method:t.attr("method"),data:n,dataType:"json",contentType:!1,processData:!1,cache:!1,beforeSend:function(e){t.find("button[type=submit]").addClass("preload_button")},success:function(e){if($(".form_item").find(".form_error").remove(),$(".form_item").find(".salary_error").remove(),t.find("button[type=submit]").removeClass("preload_button"),e.redirect)return window.location=e.redirect,!1;if(e.errors)Object.keys(e.errors).map(n=>{if("captcha"===n?t.find(".captcha").parent().append(field_error):"filial"===n?t.find("select[name=filial]").parent().append(field_error):"message"===n?t.find("textarea[name="+n+"]").parent().append(field_error):"type"===n?t.find("select[name=type]").parent().append(field_error):"salary"===n?($(".show_credit_err").hide(),t.find("input[name="+n+"]").parent().append(salary_error)):"fax"==t.find("input[name=action]").val()?t.find("input[name="+n+"]").css({border:"1px solid red"}):t.find("input[name="+n+"]").parent().append(field_error),"file_1"==n&&"image_error"==e.errors.file_1){var a=$("#file_error2").text();t.find("input[name="+n+"]").parent().find(".form_error").text(a)}if("file_2"==n&&"image_error"==e.errors.file_2){a=$("#file_error2").text();t.find("input[name="+n+"]").parent().find(".form_error").text(a)}if("captcha_code"==n&&"code_error"==e.errors.captcha_code){a=$("#code_error2").text();t.find("input[name="+n+"]").parent().find(".form_error").text(a)}t.find(".dropzone .form_error").length>0&&t.find(".dropzone .form_error").css("bottom","10px")});else if("feed_form"==a)window.location.assign("https://yelo.az/az/success/#feedback");else if("get_loan_form"==a)checkForMyLoan(1);else if("ipoteka_form"==a)window.location.assign("https://www.yelo.az/az/success/success-ipoteka/");else if("new_loan_form"==a)window.location.assign("https://yelo.az/az/success/success-new-loan/");else if("career_form"==a)window.location.assign("https://yelo.az/az/success/#career");else if("card_form"==a)window.location.assign("https://yelo.az/az/success/success-card/");else if("credit_form"==a)checkForMyLoan(1);else{t.hide(),t.parent().hide();var n=$(".success_form").clone();if("fax"==t.find("input[name=action]").val()){var o=$("#faq_success_header").text(),i=$("#faq_success_txt").text();n.find("h2").text(o),n.find("p").text(i)}n.css("display","block"),t.parent().parent().append(n),$("html, body").animate({scrollTop:t.parent().parent().offset().top},300,"easeInOutExpo")}}})}),$(document).on("click","#more_news",function(e){var t=this.getAttribute("data-url"),n=this,a=t.split("=");a[1]=parseInt(a[1])+15;var o=a.join("=");$.ajax({url:t,method:"GET",contentType:!1,processData:!1,cache:!1,beforeSend:function(e){$(n).hide(),$(n).parent().append('<span id="dtl">Loading...</span>')},success:function(e){$(n).show(),$("#dtl").remove();var t=$(e).find(".news_list_total").html(),a=$(e).find(".news_list_total li").length;
1$(".news_list_total").append(t),a<15&&(n.style.display="none"),n.setAttribute("data-url",o)},error:function(e){console.log(e)}})});var faq_page=2;$(document).on("click","#more_faq",function(e){var t=this.getAttribute("data-url"),n=this,a=t.split("="),o=window.location.pathname+"#page"+faq_page;faq_page++,a[1]=parseInt(a[1])+20;var i=a.join("=");""!=$("#cashback_select_cat").val()&&(t+="&cat="+$("#cashback_select_cat").val()),$.ajax({url:t,method:"GET",contentType:!1,processData:!1,cache:!1,beforeSend:function(e){$(n).hide(),$(n).parent().append('<span id="dtl">Loading...</span>')},success:function(e){$(n).show(),$("#dtl").remove();var t=$(e).find(".faq_grid").html(),a=$(e).find(".faq_grid article").length;$(".faq_grid").append(t),a<20&&(n.style.display="none"),n.setAttribute("data-url",i),history.pushState({},"",o)},error:function(e){console.log(e)}})});var isMobile=!1;(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.
1substr(0,4)))&&(isMobile=!0),$(document).on("click",".call_video",function(){var e=$(this).data("video");return isMobile?window.open("https://www.youtube.com/watch?v="+e):($("body").append("<div class='video_darkness'></div><div class='video_modal'><div class='video'><iframe width='560' height='315' src='https://www.youtube.com/embed/"+e+"' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe></div><a href='javascript:void(0)' class='close'></a></div>"),setTimeout(function(){$(".video_darkness").addClass("show_me")},150),setTimeout(function(){$(".video_modal").addClass("show_me")},450)),!1}),$(document).on("click",".video_modal .close",function(){return setTimeout(function(){$(".video_modal").removeClass("show_me")},150),setTimeout(function(){$(".video_darkness").removeClass("show_me")},450),setTimeout(function(){$(".video_modal, .video_darkness").remove()},750),!1});var fr_percent=.3;function change_ipoteka_data(){var e=$("select[name=simple]").val(),t=$("select[name=specify]").val(),n=parseInt($("input[name=home_price]").val()),a=credit_json[t][e],o=n*(a[3]/100);$("input[name=first_price]").val(o),$("input[name=first_price]").attr("data-percent",a[3]),$("input[name=first_price]").parent().find("input[type=range]").val(o),$("input[name=first_price]").parent().find("input[type=range]").css("--val",o),for_ipoteka()}function for_ipoteka(e){var t=$("select[name=simple]").val(),n=$("select[name=specify]").val(),a=parseInt($("input[name=first_price]").val()),o=parseInt($("input[name=home_price]").val()),i=o-a,s=parseInt($("input[name=month]").val()),r=parseInt($("input[name=first_price]").attr("data-percent"));if(a>=o)return a=o,$("input[name=first_price]").val(a),$("input[name=first_price]").parent().find("input[type=range]").val(a),$("input[name=first_price]").parent().find("input[type=range]").css("--val",a),!1;i>15e4&&(a=o-15e4,$("input[name=first_price]").val(a),$("input[name=first_price]").parent().find("input[type=range]").val(a),$("input[name=first_price]").parent().find("input[type=range]").css("--val",a));var l=o*(r/100);if(a<l)return $("input[name=first_price]").val(l),$("input[name=first_price]").parent().find("input[type=range]").val(l),$("input[name=first_price]").parent().find("input[type=range]").css("--val",l),!1;var c=credit_json[n][t];$("input[name=month]").parent().find("input[type=range]").attr("max",c[1]),$("input[name=month]").parent().find("input[type=range]").css("--max",c[1]),$("input[name=home_price]").parent().find("input[type=range]").attr("max",c[0]),$("input[name=home_price]").parent().find("input[type=range]").css("--max",c[0]);var d=c[2]/12/100,m=i*(d*Math.pow(1+d,s))/(Math.pow(1+d,s)-1);$("#my_year_pay").text(i.toFixed(0)+" AZN"),$("#my_month_pay").text(m.toFixed(0)+" AZN"),$("#my_percent").text(c[2]+" %"),$("input[name=pay_month_credit]").val(m.toFixed(0)),$("input[name=pay_month_percent]").val(c[2])}function readCookie(e){for(var t=e+"=",n=document.cookie.split(";"),a=0;a<n.length;a++){for(var o=n[a];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null}function show_image(){$(".app_modal, .cont_modal").addClass("show_me")}function hide_image(){$(".app_modal, .cont_modal").removeClass("show_me")}function readCookieD(e){for(var t=e+"=",n=document.cookie.split(";"),a=0;a<n.length;a++){for(var o=n[a];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null}function show_imageD(){$(".mobile_top, .conter_top").addClass("show_me"),$("body").addClass("with_mobile_top")}function hide_imageD(){$(".mobile_top, .conter_top").removeClass("show_me"),$("body").removeClass("with_mobile_top"),document.cookie="imageShowedD=true"}$(document).on("change","select[name=simple]",function(){change_ipoteka_data()}),$(document).on("change","select[name=specify]",function(){change_ipoteka_data()}),$(document).on("change",".home_price_input",function(){change_ipoteka_data()}),$(document).on("click",".app_modal a.close, .cont_modal a.close",function(e){return hide_image(),!1}),$(document).keydown(function(e){27==e.keyCode&&hide_image()}),setTimeout(function(){1==isMobile&&("true"==readCookie("imageShowed")||show_image(),document.cookie="imageShowed=true")},900),$(document).on("click",".mobile_top a.close, .conter_top a.close",function(e){return hide_imageD(),!1}),$(document).keydown(function(e){27==e.keyCode&&hide_imageD()}),setTimeout(function(){0==isMobile&&("true"==readCookieD("imageShowedD")||show_imageD())},900),$(document).on("keyup",".otp_code input",function(e){var t=$(this),n=t.index();_this_val=t.val(),_this_val_length=t.val().length,0==_this_val_length?0==n||t.prev().focus():t.next().focus()}),$(document).on("focus",".otp_code input",function(e){$(this).select()}),$(document).on("keypress",".otp_code input",function(e){if(8!=e.which&&0!=e.which&&46!=e.which&&(e.which<48||e.which>57))return!1});var _location_pathname=document.location.pathname;function copyLink(){navigator.clipboard.writeText($(".share_list a.link").data("link")),$(".share_list, .share_modal .head").hide(),$(".copied_info").show()}-1==_location_pathname.indexOf("stories")||setTimeout(function(){$(".story_content").click()},600),$(document).on("input",".uni_input input, .uni_input textarea, .form_block input",function(){var e=$
1(this);e.val().length>0?e.addClass("valid"):e.removeClass("valid")}),$(document).on("change",".uni_input select, .form_block select",function(){var e=$(this);e.find("option:selected").index();$(this).val()?e.addClass("valid"):e.removeClass("valid")}),$(document).on("click",".faq_list h3 a",function(){var e=$(this).parents("article"),t=e.index();return e.hasClass("active")?($(".faq_list article").removeClass("active"),$(".faq_list article .inner").removeAttr("style")):($(".faq_list article .inner").removeAttr("style"),$(".faq_list article").removeClass("active").eq(t).addClass("active"),$(".faq_list article").eq(t).find(".inner").css("height",$(".faq_list article").eq(t).find(".inner > div").height()+20+"px")),!1}),$(document).on("click",".form_tabs a",function(){var e=$(this),t=e.parent().index();return $(".form_tabs a").removeClass("active"),e.addClass("active"),$(".inner_form section").removeClass("show_me").eq(t).addClass("show_me"),!1}),$(document).on("click",".hint",function(){return $(".fin_darkness").addClass("show_me"),$(".fin_modal").addClass("show_me"),!1}),$(document).on("click",".fin_modal .close, .fin_darkness",function(){return $(".fin_darkness").removeClass("show_me"),$(".fin_modal").removeClass("show_me"),!1}),$(document).on("click",".card_share a, .share_button a",function(){return $(".share_darkness").addClass("show_me"),$(".share_modal").addClass("show_me"),!1}),$(document).on("click",".share_modal .close, .share_darkness",function(){return $(".share_darkness").removeClass("show_me"),$(".share_modal").removeClass("show_me"),setTimeout(function(){$(".share_mail, .copied_info").hide(),$(".share_list, .head").removeAttr("style")},450),!1}),$(document).on("click",".call_form",function(){return $(".form_darkness").addClass("show_me"),$(".form_modal").addClass("show_me"),!1}),$(document).on("click",".form_modal .close, .form_darkness",function(){return $(".form_darkness").removeClass("show_me"),$(".form_modal").removeClass("show_me"),!1}),$(document).keydown(function(e){27==e.keyCode&&$(".close").click()}),$(document).on("click",".share_list a.email",function(){$(".share_list").hide(),$(".share_mail").show(),$(".share_mail .input input").focus()}),$(document).on("click",".call_pdf_modal",function(){$(".pdf_darkness").addClass("show_me"),$(".pdf_modal").addClass("show_me")}),$(document).on("click",".pdf_modal .close, .pdf_darkness",function(){$(".pdf_darkness").removeClass("show_me"),$(".pdf_modal").removeClass("show_me")}),$(document).on("click",".to_form",function(){$("html, body").animate({scrollTop:$("#card_app").offset().top},600)}
1),$(document).on("click",".section_tabs a",function(){var e=$(this).index();$(".form_section section").removeClass("show_me").eq(e).addClass("show_me"),$(".section_tabs a").removeClass("active").eq(e).addClass("active")}),$(document).on("click",".personaled_form .preview",function(){var e=$(this).prev().val();""==e||($(".personaled_image h2 span, .personaled_modal .image h2 span").text(e),$(window).width()<601&&$("html, body").animate({scrollTop:$(".personaled_image").offset().top-120},500))}),$(document).on("input",".personaled_form input.mask_letter_az",function(){var e=$(this).val();$(".personaled_modal .image h2 span").text(e)}),$(document).on("click",".personaled_modal .close",function(){return $(".personaled_darkness").removeClass("show_me"),$(".personaled_modal").removeClass("show_me"),!1});for(var i=0;i<$(".advantage_grid h3").length+1;i++)$(".advantage_grid li").eq(i).find("h3").height()>80&&$(".advantage_grid li").eq(i).addClass("v_top");function setCursorToEnd(e){var t=document.createRange(),n=window.getSelection();t.setStart(e,1),t.collapse(!0),n.removeAllRanges(),n.addRange(t),e.focus()}$(document).keydown(function(e){$("#testing_page").length&&49==e.keyCode&&($("body").toggleClass("bussines_style"),$("#testing_page").toggleClass("new_style"))}),$(".cashback_four").length&&(1==$(".cashback_four article").length&&$(".cashback_four").addClass("one"),2==$(".cashback_four article").length&&$(".cashback_four").addClass("two"),3==$(".cashback_four article").length&&$(".cashback_four").addClass("three"),4==$(".cashback_four article").length&&$(".cashback_four").addClass("four"),5==$(".cashback_four article").length&&$(".cashback_four").addClass("five")),$("#myeditablediv").length&&setTimeout(function(){$("#myeditablediv").keypress(function(e){isNaN(String.fromCharCode(e.which))&&e.preventDefault()})},300),$(".show_after").length&&setTimeout(function(){$(".show_after").show()},300),$(document).on("change",".archive_checkbox input",function(){$(this).is(":checked")?$(".list_of_documents.archive").show():$(".list_of_documents.archive").hide()}),$(document).keydown(function(e){48==e.keyCode&&$(".click_show").toggle()}),setTimeout(function(){$(".uwy, #chat-widget-container").css("z-index","2")},900),setTimeout(function(){$(".uwy, #chat-widget-container").css("z-index","2")},1800),setTimeout(function(){$(".uwy, #chat-widget-container").css("z-index","2")},4500),setTimeout(function(){$(".uwy, #chat-widget-container").css("z-index","2")},600),setTimeout(function(){if($(".countdown_clock").length)var e=new Date($(".countdown_clock").data("start")).getTime(),t=setInterval(function(){var n=(new Date).getTime(),a=e-n,o=Math.floor(a/864e5),i=Math.floor(a%864e5/36e5),s=Math.floor(a%36e5/6e4),r=Math.floor(a%6e4/1e3),l=[" days "," дней "," gün "],c=[" hours "," ÑаÑов "," saat "],d=[" minutes "," минÑÑ "," dÉqiqÉ "],m=[" seconds "," ÑекÑнд "," saniyÉ "];"az"==$("html").attr("lang")?$(".countdown_clock").html("<div class='timeContainer'><div class='wrapper'><div><h2>"+o+"</h2>"+l[2]+"</div><div><h2>"+i+"</h2>"+c[2]+"</div><div><h2>"+s+"</h2>"+d[2]+"</div><div><h2>"+r+"</h2>"+m[2]+"</div></div></div>"):"ru"==$("html").attr("lang")?$(".countdown_clock").html("<div class='timeContainer'><div class='wrapper'><div><h2>"+o+"</h2>"+l[1]+"</div><div><h2>"+i+"</h2>"+c[1]+"</div><div><h2>"+s+"</h2>"+d[1]+"</div><div><h2>"+r+"</h2>"+m[1]+"</div></div></div>"):$(".countdown_clock").html("<div class='timeContainer'><div class='wrapper'><div><h2>"+o+"</h2>"+l[0]+"</div><div><h2>"+i+"</h2>"+c[0]+"</div><div><h2>"+s+"</h2>"+d[0]+"</div><div><h2>"+r+"</h2>"+m[0]+"</div></div></div>"),a<0&&clearInterval(t)},1e3)},600),$(document).ready(function(){$(".with_pencil input[type=number]").on("focus",function(){$(this).next().hide();var e=this;e.type="text",setTimeout(function(){e.selectionStart=e.selectionEnd=1e4},0),setTimeout(function(){e.type="number"},250)}).on("focusout",function(){$(".with_pencil svg").show()}),$(".smart_pencil span").on("focusin",function(){$(this).parent().parent().find("svg").hide()}).on("focusout",function(){$(".smart_pencil svg").show()}
1),$(".smart_pencil svg").on("click",function(){var e=$(this),t=e.parent().find("span");_this_text=t.text(),setCursorToEnd(t.get(0)),e.hide()})});"use strict";var theme={init:function(){theme.stickyHeader(),theme.subMenu(),theme.offCanvas(),theme.isotope(),theme.onepageHeaderOffset(),theme.spyScroll(),theme.anchorSmoothScroll(),theme.svgInject(),theme.backgroundImage(),theme.backgroundImageMobile(),theme.imageHoverOverlay(),theme.rellax(),theme.scrollCue(),theme.swiperSlider(),theme.lightbox(),theme.plyr(),theme.progressBar(),theme.loader(),theme.pageProgress(),theme.counterUp(),theme.bsTooltips(),theme.bsPopovers(),theme.bsModal(),theme.iTooltip(),theme.forms(),theme.passVisibility(),theme.pricingSwitcher(),theme.textRotator(),theme.codeSnippet()},stickyHeader:()=>{if(null!=document.querySelector(".navbar"))new Headhesive(".navbar",{offset:350,offsetSide:"top",classes:{clone:"navbar-clone fixed",stick:"navbar-stick",unstick:"navbar-unstick"},onStick:function(){var e=this.clonedElem.classList;e.contains("transparent")&&e.contains("navbar-dark")&&(this.clonedElem.className=this.clonedElem.className.replace("navbar-dark","navbar-light"))}})},subMenu:()=>{!function(e){const t="has-child-dropdown-show";var n;e.Dropdown.prototype.toggle=(n=e.Dropdown.prototype.toggle,function(){document.querySelectorAll("."+t).forEach(function(e){e.classList.remove(t)});let e=this._element.closest(".dropdown").parentNode.closest(".dropdown");for(;e&&e!==document;e=e.parentNode.closest(".dropdown"))e.classList.add(t);return n.call(this)}),document.querySelectorAll(".dropdown").forEach(function(e){e.addEventListener("hide.bs.dropdown",function(e){this.classList.contains(t)&&(this.classList.remove(t),e.preventDefault()),e.stopPropagation()})})}(bootstrap)},offCanvas:()=>{if(null==document.querySelector(".navbar"))return;const e=document.querySelectorAll(".offcanvas-nav-btn"),t=document.querySelector(".navbar:not(.navbar-clone) .offcanvas-nav"),n=new bootstrap.Offcanvas(t,{scroll:!0}),a=document.querySelectorAll(".onepage .navbar li a.scroll"),o=document.getElementById("offcanvas-search");e.forEach(e=>{e.addEventListener("click",e=>{n.show()})}),a.forEach(e=>{e.addEventListener("click",e=>{n.hide()})}),null!=o&&o.addEventListener("shown.bs.offcanvas",function(){document.getElementById("search-form").focus()})},isotope:()=>{var e=document.querySelectorAll(".grid");null!=e&&e.forEach(e=>{var t=e.querySelector(".isotope"),n=e.querySelector(".isotope-filter"),a=e.querySelectorAll(".isotope-filter"),o=new Isotope(t,{itemSelector:".item",layoutMode:"masonry",masonry:{columnWidth:t.offsetWidth/12},percentPosition:!0,transitionDuration:"0.7s"});if(imagesLoaded(t).on("progress",function(){o.layout({masonry:{columnWidth:t.offsetWidth/12}})}),window.addEventListener("resize",function(){o.arrange({masonry:{columnWidth:t.offsetWidth/12}})},!0),null!=n){n.addEventListener("click",function(e){if(matchesSelector(e.target,".filter-item")){var t=e.target.getAttribute("data-filter");o.arrange({filter:t})}});for(var i=0,s=a.length;i<s;i++){var r=a[i];r.addEventListener("click",function(e){matchesSelector(e.target,".filter-item")&&(r.querySelector(".active").classList.remove("active"),e.target.classList.add("active"))})}}})},onepageHeaderOffset:()=>{if(null==document.querySelector(".navbar"))return;const e=document.querySelector(".navbar").offsetHeight;document.querySelectorAll(".onepage section").forEach(e=>{e.style.paddingTop="75px",e.style.marginTop="-75px"});const t=document.querySelector(".onepage section:first-of-type");null!=t&&(t.style.paddingTop=e+"px",t.style.marginTop="-"+e+"px")},spyScroll:()=>{let e=document.querySelectorAll("section[id]"),t=document.querySelectorAll(".nav-link.scroll");window.onscroll=()=>{e.forEach(e=>{let n=window.scrollY,a=e.offsetTop-0,o=e.offsetHeight,i=e.getAttribute("id");n>=a&&n<a+o&&t.forEach(e=>{e.classList.remove("active"),document.querySelector(`.nav-link.scroll[href*=${i}]`).classList.add("active")})})}},anchorSmoothScroll:()=>{const e=document.querySelectorAll(".scroll");for(const n of e)n.addEventListener("click",t);function t(e){e.preventDefault(),this.blur();const t=this.getAttribute("href"),n=document.querySelector(t).offsetTop;scroll({top:n,behavior:"smooth"})}},svgInject:()=>{SVGInject.setOptions({onFail:function(e,t){e.classList.remove("svg-inject")}}),document.addEventListener("DOMContentLoaded",function(){SVGInject(document.querySelectorAll("img.svg-inject"),{useCache:!0})})},backgroundImage:()=>{for(var e=document.querySelectorAll(".bg-image"),t=0;t<e.length;t++){var n=e[t].getAttribute("data-image-src");e[t].style.backgroundImage="url('"+n+"')"}},backgroundImageMobile:()=>{!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i))&&document.querySelectorAll(".image-wrapper").forEach(e
1=>{e.classList.add("mobile")})},imageHoverOverlay:()=>{for(var e=document.querySelectorAll(".overlay > a, .overlay > span"),t=0;t<e.length;t++){var n=document.createElement("span");n.className="bg",e[t].appendChild(n)}},rellax:()=>{null!=document.querySelector(".rellax")&&(window.onload=function(){var e=new Rellax(".rellax",{speed:2,center:!0,breakpoints:[576,992,1201]}),t=document.querySelectorAll(".projects-overflow");imagesLoaded(t,function(){e.refresh()})})},scrollCue:()=>{scrollCue.init({interval:-400,duration:700,percentage:.8}),scrollCue.update()},swiperSlider:function(){for(var e=document.querySelectorAll(".swiper-container"),t=0;t<e.length;t++){var n=e[t];n.classList.add("swiper-container-"+t);var a=document.createElement("div");a.className="swiper-controls";var o=document.createElement("div");o.className="swiper-pagination";var i=document.createElement("div");i.className="swiper-navigation";var s=document.createElement("div");s.className="swiper-button swiper-button-prev";var r=document.createElement("div");r.className="swiper-button swiper-button-next",n.appendChild(a),a.appendChild(i),i.appendChild(s),i.appendChild(r),a.appendChild(o);var l=n.getAttribute("data-effect")?n.getAttribute("data-effect"):"slide";if("true"===n.getAttribute("data-items-auto"))var c="auto",d=null;else{var m=n.getAttribute("data-items")?n.getAttribute("data-items"):3,u=n.getAttribute("data-items-xs")?n.getAttribute("data-items-xs"):1,p=n.getAttribute("data-items-sm")?n.getAttribute("data-items-sm"):Number(u),h=n.getAttribute("data-items-md")?n.getAttribute("data-items-md"):Number(p),f=n.getAttribute("data-items-lg")?n.getAttribute("data-items-lg"):Number(h),v=n.getAttribute("data-items-xl")?n.getAttribute("data-items-xl"):Number(f),_=n.getAttribute("data-items-xxl")?n.getAttribute("data-items-xxl"):Number(v);c=m,d={0:{slidesPerView:Number(u)},576:{slidesPerView:Number(p)},768:{slidesPerView:Number(h)},992:{slidesPerView:Number(f)},1200:{slidesPerView:Number(v)},1400:{slidesPerView:Number(_)}}}var g=n.getAttribute("data-speed")?n.getAttribute("data-speed"):500,$=(n.getAttribute("data-autoplay"),n.getAttribute("data-autoplaytime")?n.getAttribute("data-autoplaytime"):5e3),y="true"===n.getAttribute("data-autoheight"),w="false"!==n.getAttribute("data-resizeupdate"),b="false"!==n.getAttribute("data-drag"),k="true"===n.getAttribute("data-reverse"),C=n.getAttribute("data-margin")?n.getAttribute("data-margin"):30,x="true"===n.getAttribute("data-loop"),S="true"===n.getAttribute("data-centered"),A="false"!==n.getAttribute("data-watchoverflow"),T=n.querySelector(".swiper:not(.swiper-thumbs)"),E=n.querySelector(".swiper-thumbs"),I=new Swiper(E,{slidesPerView:5,spaceBetween:10,loop:!1,threshold:2,slideToClickedSlide:!0});if("true"===n.getAttribute("data-thumbs")){var q=I,L=document.createElement("div");L.className="swiper-main",T.parentNode.insertBefore(L,T),L.appendChild(T),n.removeChild(a),L.appendChild(a)}else q=null;new Swiper(T,{on:{beforeInit:function(){"true"!==n.getAttribute("data-nav")&&"true"!==n.getAttribute("data-dots")&&a.remove(),"true"!==n.getAttribute("data-dots")&&o.remove(),"true"!==n.getAttribute("data-nav")&&i.remove()},init:function(){"true"!==n.getAttribute("data-autoplay")&&this.autoplay.stop(),this.update()}},autoplay:{delay:$,disableOnInteraction:!1,reverseDirection:k,pauseOnMouseEnter:!1},allowTouchMove:b,speed:parseInt(g),slidesPerView:c,loop:x,centeredSlides:S,spaceBetween:Number(C),effect:l,autoHeight:y,watchOverflow:A,grabCursor:!0,resizeObserver:!1,updateOnWindowResize:w,breakpoints:d,pagination:{el:e[t].querySelector(".swiper-pagination"),clickable:!0},navigation:{prevEl:n.querySelector(".swiper-button-prev"),nextEl:n.querySelector(".swiper-button-next")},thumbs:{swiper:q}})}},lightbox:()=>{GLightbox({selector:"*[data-glightbox]",touchNavigation:!0,loop:!1,zoomable:!1,autoplayVideos:!0,moreLength:0,slideExtraAttributes:{poster:""},plyr:{css:"",js:"",config:{ratio:"",fullscreen:{enabled:!1,iosNative:!1},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3},vimeo:{byline:!1,portrait:!1,title:!1,transparent:!1}}}})},plyr:()=>{Plyr.setup(".player",{loadSprite:!0,fullscreen:{enabled:!0,iosNative:!0},muted:!1})},progressBar:()=>{const e=document.querySelectorAll(".progressbar.line"),t=document.querySelectorAll(".progressbar.semi-circle");
1e.forEach(e=>{var t=new ProgressBar.Line(e,{strokeWidth:6,trailWidth:6,duration:3e3,easing:"easeInOut",text:{style:{color:"inherit",position:"absolute",right:"0",top:"-30px",padding:0,margin:0,transform:null},autoStyleContainer:!1},step:(e,t)=>{t.setText(Math.round(100*t.value())+" %")}}),n=e.getAttribute("data-value")/100;new Waypoint({element:e,handler:function(){t.animate(n)},offset:"bottom-in-view"})}),t.forEach(e=>{var t=new ProgressBar.SemiCircle(e,{strokeWidth:6,trailWidth:6,duration:2e3,easing:"easeInOut",step:(e,t)=>{t.setText(Math.round(100*t.value()))}}),n=e.getAttribute("data-value")/100;new Waypoint({element:e,handler:function(){t.animate(n)},offset:"bottom-in-view"})})},loader:()=>{var e=document.querySelector(".page-loader");null!=e&&(document.body.onload=function(){setTimeout(function(){e.classList.contains("done")||e.classList.add("done")},1e3)})},pageProgress:()=>{var e=document.querySelector(".progress-wrap");if(null!=e){var t=document.querySelector(".progress-wrap path"),n=t.getTotalLength();t.style.transition=t.style.WebkitTransition="none",t.style.strokeDasharray=n+" "+n,t.style.strokeDashoffset=n,t.getBoundingClientRect(),t.style.transition=t.style.WebkitTransition="stroke-dashoffset 10ms linear",window.addEventListener("scroll",function(a){var o=document.body.scrollTop||document.documentElement.scrollTop,i=document.documentElement.scrollHeight-document.documentElement.clientHeight,s=n-o*n/i;t.style.strokeDashoffset=s,(document.body.scrollTop||document.documentElement.scrollTop)>=50?e.classList.add("active-progress"):e.classList.remove("active-progress")}),e.addEventListener("click",function(e){e.preventDefault(),window.scroll({top:0,left:0,behavior:"smooth"})})}},counterUp:()=>{var e=window.counterUp.default;document.querySelectorAll(".counter").forEach(t=>{new Waypoint({element:t,handler:function(){e(t,{duration:1e3,delay:50}),this.destroy()},offset:"bottom-in-view"})})},bsTooltips:()=>{[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(e){return new bootstrap.Tooltip(e,{trigger:"hover"})}),[].slice.call(document.querySelectorAll('[data-bs-toggle="white-tooltip"]')).map(function(e){return new bootstrap.Tooltip(e,{customClass:"white-tooltip",trigger:"hover",placement:"left"})})},bsPopovers:()=>{[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map(function(e){return new bootstrap.Popover(e)})},bsModal:()=>{if(null!=document.querySelector(".modal-popup")){var e=new bootstrap.Modal(document.querySelector(".modal-popup"));setTimeout(function(){e.show()},200)}var t=window.innerWidth-document.body.clientWidth,n=document.querySelectorAll(".modal"),a=document.querySelector(".navbar.fixed"),o=document.querySelector(".progress-wrap");n.forEach(e=>{e.addEventListener("show.bs.modal",function(e){null!=a&&(a.style.paddingRight=t+"px"),null!=o&&(o.style.marginRight=t+"px")}),e.addEventListener("hidden.bs.modal",function(e){null!=a&&(a.style.paddingRight=""),null!=o&&(o.style.marginRight="")})})},iTooltip:()=>{new iTooltip(".itooltip").init({className:"itooltip-inner",indentX:15,indentY:15,positionX:"right",positionY:"bottom"})},forms:()=>{window.addEventListener("load",function(){var e=document.querySelectorAll(".needs-validation"),t=document.querySelector("input[data-recaptcha]");window.verifyRecaptchaCallback=function(e){t.value=e,t.dispatchEvent(new Event("change"))},window.expiredRecaptchaCallback=function(){var e=document.querySelector("input[data-recaptcha]");e.value="",e.dispatchEvent(new Event("change"))},Array.prototype.filter.call(e,function(e){e.addEventListener("submit",function(t){if(!1===e.checkValidity()&&(t.preventDefault(),t.stopPropagation()),e.classList.add("was-validated"),!0===e.checkValidity()&&(t.preventDefault(),e.classList.remove("was-validated"),e.classList.contains("contact-form"))){var n=new FormData(e),a="alert-danger";fetch("assets/php/contact.php",{method:"post",body:n}).then(e=>(e.ok&&(a="alert-success"),e.text())).then(t=>{var n='<div class="alert '+a+' alert-dismissible fade show"><button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>'+t+"</div>";a&&t&&(e.querySelector(".messages").insertAdjacentHTML("beforeend",n),e.reset(),grecaptcha.reset())}).catch(e=>{console.log(e)})}},!1)})},!1)},passVisibility:()=>{let e=document.querySelectorAll(".password-field");for(let t=0;t<e.length;t++){let n=e[t].querySelector(".form-control"),a=e[t].querySelector(".password-toggle > i");a.addEventListener("click",e=>{"password"===n.type?(n.type="text",a.classList.remove("uil-eye"),a.classList.add("uil-eye-slash")):(n.type="password",a.classList.remove("uil-eye-slash"),a.classList.add("uil-eye"))},!1)}},pricingSwitcher:()=>{if(null!=document.querySelector(".pricing-switchers")){document.querySelectorAll(".pricing-wrapper").forEach(e
1=>{const t=e.querySelector(".pricing-switchers"),n=e.querySelectorAll(".pricing-switcher"),a=e.querySelectorAll(".price");t.addEventListener("click",e=>{n.forEach(e=>{e.classList.toggle("pricing-switcher-active")}),a.forEach(e=>{e.classList.remove("price-hidden"),e.classList.toggle("price-show"),e.classList.toggle("price-hide")})})})}},textRotator:()=>{if(null!=document.querySelector(".rotator-zoom"))new ReplaceMe(document.querySelector(".rotator-zoom"),{animation:"animate__animated animate__zoomIn",speed:2500,separator:",",clickChange:!1,loopCount:"infinite"});if(null!=document.querySelector(".rotator-fade"))new ReplaceMe(document.querySelector(".rotator-fade"),{animation:"animate__animated animate__fadeInDown",speed:2500,separator:",",clickChange:!1,loopCount:"infinite"})},codeSnippet:()=>{document.querySelectorAll(".code-wrapper-inner").forEach(function(e){e.insertAdjacentHTML("beforebegin",'<button type="button" class="btn btn-sm btn-white rounded-pill btn-clipboard">Copy</button>')}),new ClipboardJS(".btn-clipboard",{target:function(e){return e.nextElementSibling}}).on("success",e=>{e.trigger.textContent="Copied!",e.clearSelection(),setTimeout(function(){e.trigger.textContent="Copy"},2e3)}),new ClipboardJS(".btn-copy-icon").on("success",function(e){e.clearSelection(),e.trigger.textContent="Copied!",window.setTimeout(function(){e.trigger.textContent="Copy"},2300)})}};function showErrors(e){if(500==e.status)console.log(e),Swal.fire({icon:"error",text:e.responseJSON.message,timer:1200,showConfirmButton:!1});else if(422==e.status)for(a in e.responseJSON)for(b in e.responseJSON[a])Swal.fire({icon:"error",timer:1200,text:e.responseJSON[a][b],showConfirmButton:!1})}theme.init(),$(function(){$('meta[name="csrf-token"]').attr("content");$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}});Swal.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,didOpen:e=>{e.onmouseenter=Swal.stopTimer,e.onmouseleave=Swal.resumeTimer}})}),$(document).ready(function(){function e(e){let t=parseInt($(e).closest(".lc_inputs").find("input[name=credit]").val()),n=parseInt($(e).closest(".lc_inputs").find("input[name=month]").val()),a=function(e,t,n){const a=t/100/12,o=n,i=e*a/(1-Math.pow(1+a,-o)),s=i*o;return{monthlyPayment:i,totalPayment:s,totalInterest:s-e}}(t,parseFloat($(e).closest(".lc_inputs").find("input[name=percent]").val()),n),o=parseFloat(a.monthlyPayment).toFixed(2).split(".")[0],i=parseFloat(a.totalInterest).toFixed(2).split(".")[0];$(e).closest(".form_calc").find(".show_credit_result #my_month_pay").html(o+"<span> AZN</span>"),$(e).closest(".form_calc").find(".show_credit_result #my_year_pay").html(i+"<span> AZN</span>")}$(".range").each(function(){e(this)}),$("body").on("input",".range",function(){let t=$(this),n=t.val();t.css("--val",n),t.closest(".lc_item").find(".range_result").val(n),e(t)}),$("body").on("input",".range_result",function(){let t=$(this),n=$(this).siblings(".range");const a=parseInt(t.val(),10),o=parseInt(n.attr("max"),10),i=parseInt(n.attr("min"),10);a>o&&t.val(o),a<i&&t.val(a),(""==t.val()||t.val()<=0)&&(t.val(1),n.val(1),n.css("--val",1));let s=t.val();n.css("--val",s),n.val(s),e(n)});let t={standart:{standart:[5e5,300,8,30],pro:[5e5,360,4,30]},pro:{standart:[5e5,300,7,20],pro:[5e5,360,3.7,15]}};function n(){var e=$(".form_line_ipoteka .select select[name=simple]").val(),n=$(".form_line_ipoteka .select select[name=specify]").val(),a=parseInt($(".form_line_ipoteka input[name=home_price]").val())||0;if(!e||!n||!t)return void console.warn("Hesablama üçün ilkin ÅÉrtlÉr ödÉnmir (simple, specify, or credit_json_ipoteka).");if(!t[n]||!t[n][e])return void console.error(`"credit_json_ipoteka" obyektindÉ belÉ bir yol tapılmadı: [${n}][${e}]`);var o=t[n][e],i=a*(o[3]/100),s=parseInt(i.toFixed(2).split(".")[0]);$(".form_line_ipoteka input[name=first_price]").css("--val",s),$(".form_line_ipoteka input[name=first_price]").val(s),$(".form_line_ipoteka input[name=first_price]").attr("data-percent",o[3]),$(".form_line_ipoteka input[name=first_price]").siblings("input[type=range]").attr("value",s),$(".form_line_ipoteka input[name=first_price]").siblings("input[type=range]").css("--val",s
1),$(".form_line_ipoteka #my_percent").text(o[2]+" %");var r=a-(parseInt($(".form_line_ipoteka input[name=first_price]").val())||1),l=parseInt($(".form_line_ipoteka input[name=month]").val());let c=function(e,t,n){const a=t/100/12,o=n,i=e*a/(1-Math.pow(1+a,-o)),s=i*o,r=s-e;return{monthlyPayment:i.toFixed(2),totalPayment:s.toFixed(2),totalInterest:r.toFixed(2)}}(r,o[2],l),d=parseFloat(c.totalPayment).toFixed(2).split(".")[0],m=parseFloat(c.monthlyPayment).toFixed(2).split(".")[0];$(".form_line_ipoteka .show_credit_result .lc_r_item #my_year_pays").html(d+"<span> AZN</span>"),$(".form_line_ipoteka .show_credit_result .lc_r_item #my_month_pays").html(m+"<span> AZN</span>")}n(),$("body").on("input",".form_line_ipoteka .select select[name=simple]",function(){n()}),$("body").on("input",".form_line_ipoteka .select select[name=specify]",function(){n()}),$("body").on("input",".form_line_ipoteka .range_result",function(){n()}),$("body").on("input",".form_line_ipoteka .range",function(){n()})}),$("body").on("submit","#business_loan",function(e){e.preventDefault();var t=$(this),n=new FormData(t[0]);return $.ajax({url:t.attr("action"),type:"POST",data:n,processData:!1,contentType:!1,success:function(e){"success"===e.status?Swal.fire({icon:"success",title:e.message,showConfirmButton:!1,timer:2e3,willClose:()=>{window.location.reload()}}):Swal.fire({icon:"error",title:e.message,showConfirmButton:!1,timer:2e3})},error:function(e){showErrors(e)}}),!1}),$("body").on("submit","#consumer_loan",function(e){e.preventDefault();var t=$(this),n=new FormData(t[0]);return $(".form-control").removeClass("is-invalid"),$(".invalid-feedback").hide(),$.ajax({url:t.attr("action"),type:"POST",data:n,processData:!1,contentType:!1,success:function(e){if("success"===e.status)Swal.fire({icon:"success",title:e.message,showConfirmButton:!1,timer:2e3,willClose:()=>{window.location.reload()}});else{if(e.errors)for(const[t,n]of Object.entries(e.errors)){const e=$(`#${t}`);e.addClass("is-invalid"),e.siblings(".invalid-feedback").text(n).show()}Swal.fire({icon:"error",title:e.message,showConfirmButton:!1,timer:2e3})}},error:function(e){showErrors(e)}}),!1}),$("body").on("submit","#debitCardForm",function(e){e.preventDefault();var t=$(this),n=new FormData(t[0]);return $.ajax({url:t.attr("action"),type:"POST",data:n,processData:!1,contentType:!1,success:function(e){"success"===e.status?Swal.fire({icon:"success",title:e.message,showConfirmButton:!1,timer:2e3,willClose:()=>{window.location.reload()}}):Swal.fire({icon:"error",title:e.message,showConfirmButton:!1,timer:2e3})},error:function(e){showErrors(e)}}),!1}),$("body").on("submit","#depositForm",function(e){e.preventDefault();var t=$(this),n=new FormData(t[0]);return $.ajax({url:t.attr("action"),type:"POST",data:n,processData:!1,contentType:!1,success:function(e){"success"===e.status?Swal.fire({icon:"success",title:e.message,showConfirmButton:!1,timer:2e3,willClose:()=>{window.location.reload()}}):Swal.fire({icon:"error",title:e.message,showConfirmButton:!1,timer:2e3})},error:function(e){showErrors(e)}}),!1}),$("body").on("submit","#loanForm",function(e){e.preventDefault();var t=$(this),n=new FormData(t[0]);return $.ajax({url:t.attr("action"),type:"POST",data:n,processData:!1,contentType:!1,success:function(e){"success"===e.status?Swal.fire({icon:"success",title:e.message,showConfirmButton:!1,timer:2e3,willClose:()=>{window.location.reload()}}):Swal.fire({icon:"error",title:e.message,showConfirmButton:!1,timer:2e3})},error:function(e){showErrors(e)}}),!1}),$("body").on("submit","#ipoteka_loan",function(e){e.preventDefault();var t=$(this),n=new FormData(t[0]);return $.ajax({url:t.attr("action"),type:"POST",data:n,processData:!1,contentType:!1,success:function(e){"success"===e.status?Swal.fire({icon:"success",title:e.message,showConfirmButton:!1,timer:2e3,willClose:()=>{window.location.reload()}}):Swal.fire({icon:"error",title:e.message,showConfirmButton:!1,timer:2e3})},error:function(e){showErrors(e)}}),!1}),$(document).on("submit","#subscribeForm",function(e){e.preventDefault();var t=$(this),n=new FormData(t[0]);return $.ajax({url:t.attr("action"),type:"POST",data:n,processData:!1,contentType:!1,success:function(e){"success"===e.status?Swal.fire({icon:"success",title:e.message,showConfirmButton:!1,timer:2e3}):Swal.fire({icon:"error",title:e.message,showConfirmButton:!1,timer:2e3})},error:function(e){showErrors(e)}}),!1});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.