1 2; /* Start:"a:4:{s:4:"full";s:61:"/bitrix/templates/aspro_max/js/observer.min.js?16586591533650";s:6:"source";s:42:"/bitrix/templates/aspro_max/js/observer.js";s:3:"min";s:46:"/bitrix/templates/aspro_max/js/observer.min.js";s:3:"map";s:50:"/bitrix/templates/aspro_max/js/observer.min.js.map";}"*/ 3"undefined"==typeof AMutationObserver&&"function"==typeof MutationObserver&&function(w,d){"use strict";var _AMutationObserver=function(_MutationObserver){function _AMutationObserver(callback){var _this;_this=_MutationObserver.call(this,(function(mutationsList,observer){_AMutationObserver.ignore||observer.paused||callback(mutationsList,observer)}))||this,_this.paused=!0,_this.id=Math.floor(Math.random()*Math.floor(1e3));try{eval("@")}catch(e){if("string"==typeof e.stack){_this.stack=e.stack.match(/[^\s]*:[\d]+:[\d]+[^\s]/g),_this.stack.splice(0,1);var script=_this.stack[0];-1!==script.indexOf("yandex.ru/metrika")?_this.id="ym":(script=script.replace(/^(.*[/])?(.*\.js)(.*)$/gi,"$2"),_this.id=script.replace(/(\.min)?\.js$/i,""))}}return _this}_inheritsLoose(_AMutationObserver,_MutationObserver);var _proto=_AMutationObserver.prototype;return _proto.observe=function observe(target,options){this.target=target,this.options=options,this.paused=!1,void 0===_AMutationObserver.observers[this.id]&&(_AMutationObserver.observers[this.id]=this),_MutationObserver.prototype.observe.call(this,target,options)},_proto.disconnect=function disconnect(){this.paused=!0,_MutationObserver.prototype.disconnect.call(this)},_proto.takeRecords=function takeRecords(){return _AMutationObserver.ignore||this.paused?[]:_MutationObserver.prototype.takeRecords.call(this)},_proto.pause=function pause(){this.paused=!0},_proto.resume=function resume(){"false"!=typeof this.options&&(this.paused=!1)},_AMutationObserver}(_wrapNativeSuper(MutationObserver));function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(Class){if(null===Class||!_isNativeFunction(Class))return Class;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)})(Class)}function _construct(Parent,args,Class){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor,instance=new(Function.bind.apply(Parent,a));return Class&&_setPrototypeOf(instance,Class.prototype),instance}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _isNativeFunction(fn){return-1!==Function.toString.call(fn).indexOf("[native code]")}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o})(o,p)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}_AMutationObserver.ignore=!1,_AMutationObserver.observers=[],_AMutationObserver.parent=MutationObserver,_AMutationObserver.toString=function(){return"function MutationObserver() { [native code] }"},MutationObserver=_AMutationObserver}(window,document); 4/* End */ 5; 6; /* Start:"a:4:{s:4:"full";s:66:"/bitrix/templates/aspro_max/js/jquery.actual.min.js?16586591531251";s:6:"source";s:51:"/bitrix/templates/aspro_max/js/jquery.actual.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 7/*! Copyright 2012, Ben Lin (http://dreamerslab.com/) 8 * Licensed under the MIT License (LICENSE.txt). 9 * 10 * Version: 1.0.18 11 * 12 * Requires: jQuery >= 1.2.3 13 */
14(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a); 15}else{a(jQuery);}}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf;a.fn.extend({actual:function(b,l){if(!this[b]){throw'$.actual => The jQuery method "'+b+'" you called does not exist'; 16}var f={absolute:false,clone:false,includeMargin:false,display:"block"};var i=a.extend(f,l);var e=this.eq(0);var h,j;if(i.clone===true){h=function(){var m="position: absolute !important; top: -1000 !important; "; 17e=e.clone().attr("style",m).appendTo("body");};j=function(){e.remove();};}else{var g=[];var d="";var c;h=function(){c=e.parents().addBack().filter(":hidden"); 18d+="visibility: hidden !important; display: "+i.display+" !important; ";if(i.absolute===true){d+="position: absolute !important; ";}c.each(function(){var m=a(this); 19var n=m.attr("style");g.push(n);m.attr("style",n?n+";"+d:d);});};j=function(){c.each(function(m){var o=a(this);var n=g[m];if(n===undefined){o.removeAttr("style"); 20}else{o.attr("style",n);}});};}h();var k=/(outer)/.test(b)?e[b](i.includeMargin):e[b]();j();return k;}});})); 21/* End */ 22; 23; /* Start:"a:4:{s:4:"full";s:60:"/bitrix/templates/aspro_max/js/jqModal.min.js?16586591532838";s:6:"source";s:41:"/bitrix/templates/aspro_max/js/jqModal.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 24(function(n){n.fn.jqm=function(o){var t=n.extend({},n.jqm.params,o);return this.each(function(){var o=n(this),i=n(this).data("jqm");i||(i={ID:u++}),o.data("jqm",n.extend(t,i)).addClass("jqm-init"),t.trigger&&n(this).jqmAddTrigger(t.trigger)})},n.fn.jqmAddTrigger=function(t){return this.each(function(){s(n(this),"jqmShow",t)||o("jqmAddTrigger must be called on initialized modals")})},n.fn.jqmAddClose=function(t){return this.each(function(){s(n(this),"jqmHide",t)||o("jqmAddClose must be called on initialized modals")})},n.fn.jqmShow=function(o){return this.each(function(){!this._jqmShown&&t(n(this),o)})},n.fn.jqmHide=function(o){return this.each(function(){this._jqmShown&&i(n(this),o)})};var o=function(n){window.console&&window.console.error&&window.console.error(n)},t=function(o,t){var i=o.data("jqm"),e=(t=t||window.event,parseInt(o.css("z-index")));if(void 0===i.noOverlay||void 0!==i.noOverlay&&!i.noOverlay){isNaN(e)&&(window.lastJqmZindex?window.lastJqmZindex=e=window.lastJqmZindex+2:e=3e3),window.lastJqmZindex=e;var a=n("<div></div>").addClass(i.overlayClass).css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":e-1,opacity:i.overlay/100});o.css("z-index",e)}else{a=n("");o.css("z-index",2999)}if(h={w:o,c:i,o:a,t:t},i.ajax){var s=i.target||o,d=i.ajax;s="string"==typeof s?n(s,o):n(s),"@"==d.substr(0,1)&&(d=n(t).attr(d.substring(1))),s.html(i.ajaxText).load(d,function(){i.onLoad&&i.onLoad.call(this,h),r(h)})}else r(h)},i=function(n,o){var t=n.data("jqm"),i=(o=o||window.event,{w:n,c:t,o:n.data("jqmv"),t:o});d(i)},e=function(o){return!o.w[0]._jqmShown&&(o.c.overlay>0&&o.o.prependTo("#popup_iframe_wrapper"),o.w.show(),n.jqm.focusFunc(o.w),!0)},a=function(n){return n.w.hide()&&n.o&&n.o.remove(),!0},s=function(o,t,i){return!!o.data("jqm")&&n(i).each(function(){this[t]=this[t]||[],this[t].push(o)}).click(function(){var o=this;return n.each(this[t],function(n,i){i[t](o)}),!1})},r=function(o){var t=o.w,i=o.o,e=o.c;!1!==e.onShow(o)&&(t[0]._jqmShown=!0,e.modal?(!l[0]&&c("bind"),l.push(t)):t.jqmAddClose(i),e.closeClass&&t.jqmAddClose(n("."+e.closeClass,t)),e.toTop&&i&&t.before('<span id="jqmP'+e.ID+'"></span>').insertAfter(i),t.data("jqmv",i))},d=function(o){var t=o.w,i=o.o,e=o.c;!1!==e.onHide(o)&&(t[0]._jqmShown=!1,e.modal&&(l.pop(),!l[0]&&c("unbind")),e.toTop&&i&&n("#jqmP"+e.ID).after(t).remove())},c=function(o){n(document)[o]("keypress keydown mousedown",m)},m=function(o){var t=n(o.target).data("jqm")||n(o.target).parents(".jqm-init:first").data("jqm"),i=l[l.length-1].data("jqm");return!(!t||t.ID!=i.ID)||n.jqm.focusFunc(i)},u=0,l=[];n.jqm={params:{overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:!1,target:!1,ajaxText:"",modal:!1,toTop:!1,onShow:e,onHide:a,onLoad:!1},focusFunc:function(o){return n(":input:visible:first",o).focus(),!1}}})(jQuery); 25/* End */ 26; 27; /* Start:"a:4:{s:4:"full";
vendor: 4,150 bytes, lines 27-38
27s:66:"/bitrix/templates/aspro_max/vendor/js/bootstrap.js?165865915327908";s:6:"source";s:50:"/bitrix/templates/aspro_max/vendor/js/bootstrap.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 28/*! 29 * Bootstrap v3.0.0 30 * 31 * Copyright 2013 Twitter, Inc 32 * Licensed under the Apache License v2.0 33 * http://www.apache.org/licenses/LICENSE-2.0 34 * 35 * Designed and built with all the love in the world @twitter by @mdo and @fat. 36 */ 37 38+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function f(){e.trigger("closed.bs.alert").remove()}var c=a(this),d=c.attr("data-target");d||(d=c.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));var e=a(d);b&&b.preventDefault(),e.length||(e=c.hasClass("alert")?c:c.parent()),e.trigger(b=a.Event("close.bs.alert"));if(b.isDefaultPrevented())return;e.removeClass("in"),a.support.transition&&e.hasClass("fade")?e.one(a.support.transition.end,f).emulateTransitionEnd(150):f()};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){a=="loadingText"?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]');if(a.length){var b=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change");b.prop("type")==="radio"&&a.find(".active").removeClass("active")}this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f=typeof c=="object"&&c;e||d.data("bs.button",e=new b(this,f)),c=="toggle"?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.pause=="hover"&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();if(b>this.$items.length-1||b<0)return;return this.sliding?this.$element.one("slid",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){if(this.sliding)return;return this.slide("next")},b.prototype.prev=function(){if(this.sliding)return;return this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g=b=="next"?"left":"right",h=b=="next"?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;
38e=this.$element.find(".item")[h]()}this.sliding=!0,f&&this.pause();var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});if(e.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")}));if(a.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(j);if(j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{this.$element.trigger(j);if(j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return f&&this.cycle(),this};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),typeof c=="object"&&c),g=typeof c=="string"?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),typeof c=="number"?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),c.data()),g=c.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=c.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(window.jQuery),+function(a){function e(){a(b).remove(),a(c).each(function(b){var c=f(a(this));if(!c.hasClass("open"))return;c.trigger(b=a.Event("hide.bs.dropdown"));if(b.isDefaultPrevented())return;c.removeClass("open").trigger("hidden.bs.dropdown")})}function f(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}"use strict";var b=".dropdown-backdrop",c="[data-toggle=dropdown]",d=function(b){var c=a(b).on("click.bs.dropdown",this.toggle)};d.prototype.toggle=function(b){var c=a(this);if(c.is(".disabled, :disabled"))return;var d=f(c),g=d.hasClass("open");e();if(!g){"ontouchstart"in document.documentElement&&!d.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",e),d.trigger(b=a.Event("show.bs.dropdown"));if(b.isDefaultPrevented())return;d.toggleClass("open").trigger("shown.bs.dropdown"),c.focus()}return!1},d.prototype.keydown=function(b){if(!/(38|40|27)/.test(b.keyCode))return;var d=a(this);b.preventDefault(),b.stopPropagation();if(d.is(".disabled, :disabled"))return;var e=f(d),g=e.hasClass("open");if(!g||g&&b.keyCode==27)return b.which==27&&e.find(c).focus(),d.click();var h=a("[role=menu] li:not(.divider):visible a",e);if(!h.length)return;var i=h.index(h.filter(":focus"));b.keyCode==38&&i>0&&i--,b.keyCode==40&&i<h.length-1&&i++,~i||(i=0),h.eq(i).focus()};var g=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var c=a(this),e=c.data("dropdown");e||c.data("dropdown",e=new d(this)),typeof b=="string"&&e[b].call(c)})},a.fn.dropdown.Constructor=d,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=g,this},a(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",c,d.prototype.toggle).on("keydown.bs.dropdown.data-api",c+", [role=menu]",d.prototype.keydown)}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.options=c,this.$element=a(b),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?"hide":"show"](a)},b.prototype.show=function(b){var c=this,d=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(d);if(this.isShown||d.isDefaultPrevented())return;this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show(),d&&c.$element[0].offsetWidth,c.$element.addClass("in").attr("aria-hidden",!1),c.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:b});
38d?c.$element.find(".modal-dialog").one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)})},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b);if(!this.isShown||b.isDefaultPrevented())return;this.isShown=!1,this.escape(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal()},b.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]!==a.target&&!this.$element.has(a.target).length&&this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",a.proxy(function(a){a.which==27&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger("hidden.bs.modal")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;this.$backdrop=a('<div class="modal-backdrop '+d+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",a.proxy(function(a){if(a.target!==a.currentTarget)return;this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this)},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in");if(!b)return;e?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},b.DEFAULTS,e.data(),typeof c=="object"&&c);f||e.data("bs.modal",f=new b(this,g)),typeof c=="string"?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f,this).one("hide",function(){c.is(":visible")&&c.focus()})}),a(document).on("show.bs.modal",".modal",function(){a(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){a(document.body).removeClass("modal-open")})}(window.jQuery),+function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);var e=this.options.trigger.split(" ");for(var f=e.length;f--;){var g=e[f];if(g=="click")this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if(g!="manual"){var h=g=="hover"?"mouseenter":"focus",i=g=="hover"?"mouseleave":"blur";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(c.timeout),c.hoverState="in";if(!c.options.delay||!c.options.delay.show)return c.show();c.timeout=setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(c.timeout),c.hoverState="out";if(!c.options.delay||!c.options.delay.hide)return c.hide();c.timeout=setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);if(b.isDefaultPrevented())return;var c=this.tip();this.setContent(),this.options.animation&&c.addClass("fade");var d=typeof this.options.placement=="function"?this.options.placement.call(this,c[
380],this.$element[0]):this.options.placement,e=/\s?auto?\s?/i,f=e.test(d);f&&(d=d.replace(e,"")||"top"),c.detach().css({top:0,left:0,display:"block"}).addClass(d),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var g=this.getPosition(),h=c[0].offsetWidth,i=c[0].offsetHeight;if(f){var j=this.$element.parent(),k=d,l=document.documentElement.scrollTop||document.body.scrollTop,m=this.options.container=="body"?window.innerWidth:j.outerWidth(),n=this.options.container=="body"?window.innerHeight:j.outerHeight(),o=this.options.container=="body"?0:j.offset().left;d=d=="bottom"&&g.top+g.height+i-l>n?"top":d=="top"&&g.top-l-i<0?"bottom":d=="right"&&g.right+h>m?"left":d=="left"&&g.left-h<o?"right":d,c.removeClass(k).addClass(d)}var p=this.getCalculatedOffset(d,g,h,i);this.applyPlacement(p,d),this.$element.trigger("shown.bs."+this.type)}},b.prototype.applyPlacement=function(a,b){var c,d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),a.top=a.top+g,a.left=a.left+h,d.offset(a).addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;b=="top"&&j!=f&&(c=!0,a.top=a.top+f-j);if(/bottom|top/.test(b)){var k=0;a.left<0&&(k=a.left*-2,a.left=0,d.offset(a),i=d[0].offsetWidth,j=d[0].offsetHeight),this.replaceArrow(k-e+i,i,"left")}else this.replaceArrow(j-f,j,"top");c&&d.offset(a)},b.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+"%":"")},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},b.prototype.hide=function(){function e(){b.hoverState!="in"&&c.detach()}var b=this,c=this.tip(),d=a.Event("hide.bs."+this.type);this.$element.trigger(d);if(d.isDefaultPrevented())return;return c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?c.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),this.$element.trigger("hidden.bs."+this.type),this},b.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},b.prototype.hasContent=function(){return this.getTitle()},b.prototype.getPosition=function(){var b=this.$element[0];return a.extend({},typeof b.getBoundingClientRect=="function"?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},b.prototype.getCalculatedOffset=function(a,b,c,d){return a=="bottom"?{top:b.top+b.height,left:b.left+b.width/2-c/2}:a=="top"?{top:b.top-d,left:b.left+b.width/2-c/2}:a=="left"?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},b.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a},b.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},b.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},b.prototype.enable=function(){this.enabled=!0},b.prototype.disable=function(){this.enabled=!1},b.prototype.toggleEnabled=function(){this.enabled=!this.enabled},b.prototype.toggle=function(b){var c=b?a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;c.tip().hasClass("in")?c.leave(c):c.enter(c)},b.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f=typeof c=="object"&&c;e||d.data("bs.tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery),+function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");b.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||(typeof b.content=="function"?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f=typeof c=="object"&&c;e||d.data("bs.popover",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(window.jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));if(b.parent("li").hasClass("active"))return;var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});b.trigger(f);if(f.isDefaultPrevented())return;var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})},b.prototype.activate=function(b,c,d){function g(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var e=c.find("> .active"),f=d&&a.support.transition&&e.hasClass("fade");f?e.one(a.support.transition.end,g).emulateTransitionEnd(150):g(),e.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),typeof c=="string"&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;typeof f!="object"&&(h=g=f),typeof g=="function"&&(g=f.top()),typeof h=="function"&&(h=f.bottom());var i=this.unpin!=null&&d+this.unpin<=e.top?!1:h!=null&&e.top+this.$element.height()>=c-h?"bottom":g!=null&&d<=g?"top":!1;if(this.affixed===i)return;this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin=i=="bottom"?e.top-d:null,this.$element.removeClass(b.RESET).addClass("affix"+(i?"-"+i:"")),i=="bottom"&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()})};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f=typeof c=="object"&&c;
vendor: 6,111 bytes, lines 38-48
38e||d.data("bs.affix",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var b=a.Event("show.bs.collapse");this.$element.trigger(b);if(b.isDefaultPrevented())return;var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])},b.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var b=a.Event("hide.bs.collapse");this.$element.trigger(b);if(b.isDefaultPrevented())return;var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!a.support.transition)return d.call(this);this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350)},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),typeof c=="object"&&c);e||d.data("bs.collapse",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c=a(this),d,e=c.attr("data-target")||b.preventDefault()||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":c.data(),i=c.attr("data-parent"),j=i&&a(i);if(!g||!g.transitioning)j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(c).addClass("collapsed"),c[f.hasClass("in")?"addClass":"removeClass"]("collapsed");f.collapse(h)})}(window.jQuery),+function(a){function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is("body")?a(window):a(c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}"use strict",b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);var c=this,d=this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,c=b-this.$scrollElement.height(),d=this.offsets,e=this.targets,f=this.activeTarget,g;if(a>=c)return f!=(g=e.last()[0])&&this.activate(g);for(g=d.length;g--;)f!=e[g]&&a>=d[g]&&(!d[g+1]||a<=d[g+1])&&this.activate(e[g])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f=typeof c=="object"&&c;e||d.data("bs.scrollspy",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),+function(a){function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(a.style[c]!==undefined)return{end:b[c]}}"use strict",a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(window.jQuery) 39/* End */ 40; 41; /* Start:"a:4:{s:4:"full";s:69:"/bitrix/templates/aspro_max/vendor/js/jquery.appear.js?16586591533188";s:6:"source";s:54:"/bitrix/templates/aspro_max/vendor/js/jquery.appear.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 42/* 43 * jQuery.appear 44 * https://github.com/bas2k/jquery.appear/ 45 * http://code.google.com/p/jquery-appear/ 46 * 47 * Copyright (c) 2009 Michael Hixson 48 * Copyright (c) 2012 Alexander Brovikov
49 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 50 */ 51(function($) { 52 $.fn.appear = function(fn, options) { 53 54 var settings = $.extend({ 55 56 //arbitrary data to pass to fn 57 data: undefined, 58 59 //call fn only on the first appear? 60 one: true, 61 62 // X & Y accuracy 63 accX: 0, 64 accY: 0 65 66 }, options); 67 68 return this.each(function() { 69 70 var t = $(this); 71 72 //whether the element is currently visible 73 t.appeared = false; 74 75 if (!fn) { 76 77 //trigger the custom event 78 t.trigger('appear', settings.data); 79 return; 80 } 81 82 var w = $(window); 83 84 //fires the appear event when appropriate 85 var check = function() { 86 87 //is the element hidden? 88 if (!t.is(':visible')) { 89 90 //it became hidden 91 t.appeared = false; 92 return; 93 } 94 95 //is the element inside the visible window? 96 var a = w.scrollLeft(); 97 var b = w.scrollTop(); 98 var o = t.offset(); 99 var x = o.left; 100 var y = o.top; 101 102 var ax = settings.accX; 103 var ay = settings.accY; 104 var th = t.height(); 105 var wh = w.height(); 106 var tw = t.width(); 107 var ww = w.width(); 108 109 if (y + th + ay >= b && 110 y <= b + wh + ay && 111 x + tw + ax >= a && 112 x <= a + ww + ax) { 113 114 //trigger the custom event 115 if (!t.appeared) t.trigger('appear', settings.data); 116 117 } else { 118 119 //it scrolled out of view 120 t.appeared = false; 121 } 122 }; 123 124 //create a modified fn with some additional logic 125 var modifiedFn = function() { 126 127 //mark the element as visible 128 t.appeared = true; 129 130 //is this supposed to happen only once? 131 if (settings.one) { 132 133 //remove the check 134 w.unbind('scroll', check); 135 var i = $.inArray(check, $.fn.appear.checks); 136 if (i >= 0) $.fn.appear.checks.splice(i, 1); 137 } 138 139 //trigger the original fn 140 fn.apply(this, arguments); 141 }; 142 143 //bind the modified fn to the element 144 if (settings.one) t.one('appear', settings.data, modifiedFn); 145 else t.bind('appear', settings.data, modifiedFn); 146 147 //check whenever the window scrolls 148 w.scroll(check); 149 150 //check whenever the dom changes 151 $.fn.appear.checks.push(check); 152 153 //check now 154 (check)(); 155 }); 156 }; 157 158 //keep a queue of appearance checks 159 $.extend($.fn.appear, { 160 161 checks: [], 162 timeout: null, 163 164 //process the queue 165 checkAll: function() { 166 var length = $.fn.appear.checks.length; 167 if (length > 0) while (length--) ($.fn.appear.checks[length])(); 168 }, 169 170 //check the queue asynchronously 171 run: function() { 172 if ($.fn.appear.timeout) clearTimeout($.fn.appear.timeout); 173 $.fn.appear.timeout = setTimeout($.fn.appear.checkAll, 20); 174 } 175 }); 176 177 //run checks when these methods are called 178 $.each(['append', 'prepend', 'after', 'before', 'attr', 179 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 180 'remove', 'css', 'show', 'hide'], function(i, n) { 181 var old = $.fn[n]; 182 if (old) { 183 $.fn[n] = function() { 184 var r = old.apply(this, arguments); 185 $.fn.appear.run(); 186 return r; 187 } 188 } 189 }); 190 191})(jQuery); 192/* End */ 193; 194; /* Start:"a:4:{s:4:"full";s:66:"/bitrix/templates/aspro_max/vendor/js/ripple.min.js?16586591531624";s:6:"source";s:47:"/bitrix/templates/aspro_max/vendor/js/ripple.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 195!function(m,i,h){m.ripple=function(t,e){var c=this,f=c.log=function(){c.defaults.debug&&console&&console.log&&console.log.apply(console,arguments)};c.selector=t,c.defaults={debug:!1,on:"mousedown",opacity:.4,color:"auto",multi:!1,duration:.7,rate:function(t){return t},easing:"linear"},c.defaults=m.extend({},c.defaults,e);m(i).on(c.defaults.on,c.selector,function(t){var e,i,o=m(this);if(o.addClass("has-ripple"),(i=m.extend({},c.defaults,o.data())).multi||!i.multi&&0===o.find(".ripple").length){if((e=m("<span></span>").addClass("ripple")).appendTo(o),f("Create: Ripple"),!e.height()&&!e.width()){var n=h.max(o.outerWidth(),o.outerHeight());e.css({height:n,width:n}),f("Set: Ripple size")}if(i.rate&&"function"==typeof i.rate){var a=h.round(e.width()/i.duration),l=i.rate(a),p=e.width()/l;i.duration.toFixed(2)!==p.toFixed(2)&&(f("Update: Ripple Duration",{from:i.duration,to:p}),i.duration=p)}var d="auto"==i.color?o.css("color"):i.color,r={animationDuration:i.duration.toString()+"s",animationTimingFunction:i.easing,background:d,opacity:i.opacity};f("Set: Ripple CSS",r),e.css(r)}i.multi||(f("Set: Ripple Element"),e=o.find(".ripple")),f("Destroy: Ripple Animation"),e.removeClass("ripple-animate");var s=t.pageX-o.offset().left-e.width()/2,u=t.pageY-o.offset().top-e.height()/2;i.multi&&(f("Set: Ripple animationend event"),e.one("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(){f("Note: Ripple animation ended"),f("Destroy: Ripple"),m(this).remove()})),f("Set: Ripple location"),f("Set: Ripple animation"),e.css({top:u+"px",left:s+"px"}).addClass("ripple-animate")})}}(jQuery,document,Math); 196/* End */ 197; 198; /* Start:"a:4:{s:4:"full";s:74:"/bitrix/templates/aspro_max/vendor/js/velocity/velocity.js?165865915344791";s:6:"source";s:58:"/bitrix/templates/aspro_max/vendor/js/velocity/velocity.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 199/*! VelocityJS.org (1.5.0). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
vendor: 32,176 bytes, lines 200-202
200/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */ 201!function(a){"use strict";function b(a){var b=a.length,d=c.type(a);return"function"!==d&&!c.isWindow(a)&&(!(1!==a.nodeType||!b)||("array"===d||0===b||"number"==typeof b&&b>0&&b-1 in a))}if(!a.jQuery){var c=function(a,b){return new c.fn.init(a,b)};c.isWindow=function(a){return a&&a===a.window},c.type=function(a){return a?"object"==typeof a||"function"==typeof a?e[g.call(a)]||"object":typeof a:a+""},c.isArray=Array.isArray||function(a){return"array"===c.type(a)},c.isPlainObject=function(a){var b;if(!a||"object"!==c.type(a)||a.nodeType||c.isWindow(a))return!1;try{if(a.constructor&&!f.call(a,"constructor")&&!f.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(d){return!1}for(b in a);return b===undefined||f.call(a,b)},c.each=function(a,c,d){var e=0,f=a.length,g=b(a);if(d){if(g)for(;e<f&&c.apply(a[e],d)!==!1;e++);else for(e in a)if(a.hasOwnProperty(e)&&c.apply(a[e],d)===!1)break}else if(g)for(;e<f&&c.call(a[e],e,a[e])!==!1;e++);else for(e in a)if(a.hasOwnProperty(e)&&c.call(a[e],e,a[e])===!1)break;return a},c.data=function(a,b,e){if(e===undefined){var f=a[c.expando],g=f&&d[f];if(b===undefined)return g;if(g&&b in g)return g[b]}else if(b!==undefined){var h=a[c.expando]||(a[c.expando]=++c.uuid);return d[h]=d[h]||{},d[h][b]=e,e}},c.removeData=function(a,b){var e=a[c.expando],f=e&&d[e];f&&(b?c.each(b,function(a,b){delete f[b]}):delete d[e])},c.extend=function(){var a,b,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;for("boolean"==typeof h&&(k=h,h=arguments[i]||{},i++),"object"!=typeof h&&"function"!==c.type(h)&&(h={}),i===j&&(h=this,i--);i<j;i++)if(f=arguments[i])for(e in f)f.hasOwnProperty(e)&&(a=h[e],d=f[e],h!==d&&(k&&d&&(c.isPlainObject(d)||(b=c.isArray(d)))?(b?(b=!1,g=a&&c.isArray(a)?a:[]):g=a&&c.isPlainObject(a)?a:{},h[e]=c.extend(k,g,d)):d!==undefined&&(h[e]=d)));return h},c.queue=function(a,d,e){if(a){d=(d||"fx")+"queue";var f=c.data(a,d);return e?(!f||c.isArray(e)?f=c.data(a,d,function(a,c){var d=c||[];return a&&(b(Object(a))?function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;)a[e++]=b[d++];if(c!==c)for(;b[d]!==undefined;)a[e++]=b[d++];a.length=e,a}(d,"string"==typeof a?[a]:a):[].push.call(d,a)),d}(e)):f.push(e),f):f||[]}},c.dequeue=function(a,b){c.each(a.nodeType?[a]:a,function(a,d){b=b||"fx";var e=c.queue(d,b),f=e.shift();"inprogress"===f&&(f=e.shift()),f&&("fx"===b&&e.unshift("inprogress"),f.call(d,function(){c.dequeue(d,b)}))})},c.fn=c.prototype={init:function(a){if(a.nodeType)return this[0]=a,this;throw new Error("Not a DOM node.")},offset:function(){var b=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:b.top+(a.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:b.left+(a.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var a=this[0],b=function(a){for(var b=a.offsetParent;b&&"html"!==b.nodeName.toLowerCase()&&b.style&&"static"===b.style.position;)b=b.offsetParent;return b||document}(a),d=this.offset(),e=/^(?:body|html)$/i.test(b.nodeName)?{top:0,left:0}:c(b).offset();return d.top-=parseFloat(a.style.marginTop)||0,d.left-=parseFloat(a.style.marginLeft)||0,b.style&&(e.top+=parseFloat(b.style.borderTopWidth)||0,e.left+=parseFloat(b.style.borderLeftWidth)||0),{top:d.top-e.top,left:d.left-e.left}}};var d={};c.expando="velocity"+(new Date).getTime(),c.uuid=0;for(var e={},f=e.hasOwnProperty,g=e.toString,h="Boolean Number String Function Array Date RegExp Object Error".split(" "),i=0;i<h.length;i++)e["[object "+h[i]+"]"]=h[i].toLowerCase();c.fn.init.prototype=c.fn,a.Velocity={Utilities:c}}}(window),function(a){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a():"function"==typeof define&&define.amd?define(a):a()}(function(){"use strict";return function(a,b,c,d){function e(a){for(var b=-1,c=a?a.length:0,d=[];++b<c;){var e=a[b];e&&d.push(e)}return d}function f(a){return u.isWrapped(a)?a=s.call(a):u.isNode(a)&&(a=[a]),a}function g(a){var b=o.data(a,"velocity");return null===b?d:b}function h(a,b){var c=g(a);c&&c.delayTimer&&!c.delayPaused&&(c.delayRemaining=c.delay-b+c.delayBegin,c.delayPaused=!0,clearTimeout(c.delayTimer.setTimeout))}function i(a,b){var c=g(a);c&&c.delayTimer&&c.delayPaused&&(c.delayPaused=!1,c.delayTimer.setTimeout=setTimeout(c.delayTimer.next,c.delayRemaining))}function j(a){return function(b){return Math.round(b*a)*(1/a)}}function k(a,c,d,e){function f(a,b){return 1-3*b+3*a}function g(a,b){return 3*b-6*a}function h(a){return 3*a}function i(a,b,c){return((f(b,c)*a+g(b,c))*a+h(b))*a}function j(a,b,c){return 3*f(b,c)*a*a+2*g(b,c)*a+h(b)}function k(b,c){for(var e=0;e<p;++e){var f=j(c,a,d);if(0===f)return c;c-=(i(c,a,d)-b)/f}return c}function l(){for(var b=0;b<t;++b)x[b]=i(b*u,a,d)}function m(b,c,e){var f,g,h=0;do{g=c+(e-c)/2,f=i(g,a,d)-b,f>0?e=g:c=g}while(Math.abs(f)>r&&++h<s);return g}function n(b){for(var c=0,e=1,f=t-1;e!==f&&x[e]<=b;++e)c+=u;--e;var g=(b-x[e])/(x[e+1]-x[e]),h=c+g*u,i=j(h,a,d);return i>=q?k(b,h):0===i?h:m(b,c,c+u)}function o(){y=!0,a===c&&d===e||l()}var p=4,q=.001,r=1e-7,s=10,t=11,u=1/(t-1),v="Float32Array"in b;if(4!==arguments.length)return!1;for(var w=0;w<4;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;a=Math.min(a,1),d=Math.min(d,1),a=Math.max(a,0),d=Math.max(d,0);var x=v?new Float32Array(t):new Array(t),y=!1,z=function(b){return y||o(),a===c&&d===e?b:0===b?0:1===b?1:i(n(b),c,e)};z.getControlPoints=function(){return[{x:a,y:c},{x:d,y:e}]};var A="generateBezier("+[a,c,d,e]+")";return z.toString=function(){return A},z}function l(a,b){var c=a;return u.isString(a)?y.Easings[a]||(c=!1):c=u.isArray(a)&&1===a.length?j.apply(null,a):u.isArray(a)&&2===a.length?z.apply(null,a.concat([b])):!(!u.isArray(a)||4!==a.length)&&k.apply(null,a),c===!1&&(c=y.Easings[y.defaults.easing]?y.defaults.easing:x),c}function m(a){if(a){var b=y.timestamp&&a!==!0?a:r.now(),c=y.State.calls.length;c>1e4&&(y.State.calls=e(y.State.calls),c=y.State.calls.length);for(var f=0;f<c;f++)if(y.State.calls[f]){var h=y.State.calls[f],i=h[0],j=h[2],k=h[3],l=!!k,q=null,s=h[5],t=h[6];if(k||(k=y.State.calls[f][3]=b-16),s){if(s.resume!==!0)continue;k=h[3]=Math.round(b-t-16),h[5]=null}t=h[6]=b-k;for(var v=Math.min(t/j.duration,1),w=0,x=i.length;w<x;w++){var z=i[w],B=z.element;if(g(B)){var D=!1;if(j.display!==d&&null!==j.display&&"none"!==j.display){if("flex"===j.display){var E=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];o.each(E,function(a,b){A.setPropertyValue(B,"display",b)})}A.setPropertyValue(B,"display",j.display)}j.visibility!==d&&"hidden"!==j.visibility&&A.setPropertyValue(B,"visibility",j.visibility);for(var F in z)if(z.hasOwnProperty(F)&&"element"!==F){var G,H=z[F],I=u.isString(H.easing)?y.Easings[H.easing]:H.easing;if(u.isString(H.pattern)){var J=1===v?function(a,b,c){var d=H.endValue[b];return c?Math.round(d):d}:function(a,b,c){var d=H.startValue[b],e=H.endValue[b]-d,f=d+e*I(v,j,e);return c?Math.round(f):f};G=H.pattern.replace(/{(\d+)(!)?}/g,J)}else if(1===v)G=H.endValue;else{var K=H.endValue-H.startValue;G=H.startValue+K*I(v,j,K)}if(!l&&G===H.currentValue)continue;if(H.currentValue=G,"tween"===F)q=G;else{var L;if(A.Hooks.registered[F]){L=A.Hooks.getRoot(F);var M=g(B).rootPropertyValueCache[L];M&&(H.rootPropertyValue=M)}var N=A.setPropertyValue(B,F,H.currentValue+(p<9&&0===parseFloat(G)?"":H.unitType),H.rootPropertyValue,H.scrollData);A.Hooks.registered[F]&&(A.Normalizations.registered[L]?g(B).rootPropertyValueCache[L]=A.Normalizations.registered[L]("extract",null,N[1]):g(B).rootPropertyValueCache[L]=N[1]),"transform"===N[0]&&(D=!0)}}j.mobileHA&&g(B).transformCache.translate3d===d&&(g(B).transformCache.translate3d="(0px, 0px, 0px)",D=!0),D&&A.flushTransformCache(B)}}j.display!==d&&"none"!==j.display&&(y.State.calls[f][2].display=!1),j.visibility!==d&&"hidden"!==j.visibility&&(y.State.calls[f][2].visibility=!1),j.progress&&j.progress.call(h[1],h[1],v,Math.max(0,k+j.duration-b),k,q),1===v&&n(f)}}y.State.isTicking&&C(m)}function n(a,b){if(!y.State.calls[a])return!1;for(var c=y.State.calls[a][0],e=y.State.calls[a][1],f=y.State.calls[a][2],h=y.State.calls[a][4],i=!1,j=0,k=c.length;j<k;j++){var l=c[j].element;b||f.loop||("none"===f.display&&A.setPropertyValue(l,"display",f.display),"hidden"===f.visibility&&A.setPropertyValue(l,"visibility",f.visibility));var m=g(l);if(f.loop!==!0&&(o.queue(l)[1]===d||!/\.velocityQueueEntryFlag/i.test(o.queue(l)[1]))&&m){m.isAnimating=!1,m.rootPropertyValueCache={};var n=!1;o.each(A.Lists.transforms3D,function(a,b){var c=/^scale/.test(b)?1:0,e=m.transformCache[b];m.transformCache[b]!==d&&new RegExp("^\\("+c+"[^.]").test(e)&&(n=!0,delete m.transformCache[b])}),f.mobileHA&&(n=!0,delete m.transformCache.translate3d),n&&A.flushTransformCache(l),A.Values.removeClass(l,"velocity-animating")}if(!b&&f.complete&&!f.loop&&j===k-1)try{f.complete.call(e,e)}catch(r){setTimeout(function(){throw r},1)}h&&f.loop!==!0&&h(e),m&&f.loop===!0&&!b&&(o.each(m.tweensContainer,function(a,b){if(/^rotate/.test(a)&&(parseFloat(b.startValue)-parseFloat(b.endValue))%360==0){var c=b.startValue;b.startValue=b.endValue,b.endValue=c}/^backgroundPosition/.test(a)&&100===parseFloat(b.endValue)&&"%"===b.unitType&&(b.endValue=0,b.startValue=100)}),y(l,"reverse",{loop:!0,delay:f.delay})),f.queue!==!1&&o.dequeue(l,f.queue)}y.State.calls[a]=!1;for(var p=0,q=y.State.calls.length;p<q;p++)if(y.State.calls[p]!==!1){i=!0;break}i===!1&&(y.State.isTicking=!1,delete y.State.calls,y.State.calls=[])}var o,p=function(){if(c.documentMode)return c.documentMode;for(var a=7;a>4;a--){var b=c.createElement("div");if(b.innerHTML="<!--[if IE "+a+"]><span></span><![endif]-->",b.getElementsByTagName("span").length)return b=null,a}return d}(),q=function(){var a=0;return b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||function(b){var c,d=(new Date).getTime();return c=Math.max(0,16-(d-a)),a=d+c,setTimeout(function(){b(d+c)},c)}}(),r=function(){var a=b.performance||{};if("function"!=typeof a.now){var c=a.timing&&a.timing.navigationStart?a.timing.navigationStart:(new Date).getTime();a.now=function(){return(new Date).getTime()-c}}return a}(),s=function(){var a=Array.prototype.slice;try{return a.call(c.documentElement),a}catch(b){return function(b,c){var d=this.length;if("number"!=typeof b&&(b=0),"number"!=typeof c&&(c=d),this.slice)return a.call(this,b,c);var e,f=[],g=b>=0?b:Math.max(0,d+b),h=c<0?d+c:Math.min(c,d),i=h-g;if(i>0)if(f=new Array(i),this.charAt)for(e=0;e<i;e++)f[e]=this.charAt(g+e);else for(e=0;e<i;e++)f[e]=this[g+e];return f}}}(),t=function(){return Array.prototype.includes?function(a,b){return a.includes(b)}:Array.prototype.indexOf?function(a,b){return a.indexOf(b)>=0}:function(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return!0;return!1}},u={isNumber:function(a){return"number"==typeof a},isString:function(a){return"string"==typeof a},isArray:Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},isFunction:function(a){return"[object Function]"===Object.prototype.toString.call(a)},isNode:function(a){return a&&a.nodeType},isWrapped:function(a){return a&&a!==b&&u.isNumber(a.length)&&!u.isString(a)&&!u.isFunction(a)&&!u.isNode(a)&&(0===a.length||u.isNode(a[0]))},isSVG:function(a){return b.SVGElement&&a instanceof b.SVGElement},isEmptyObject:function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}},v=!1;if(a.fn&&a.fn.jquery?(o=a,v=!0):o=b.Velocity.Utilities,p<=8&&!v)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(p<=7)return void(jQuery.fn.velocity=jQuery.fn.animate);var w=400,x="swing",y={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:b.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:c.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:o,Redirects:{},Easings:{},Promise:b.Promise,defaults:{queue:"",duration:w,easing:x,begin:d,complete:d,progress:d,display:d,visibility:d,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(a){o.data(a,"velocity",{isSVG:u.isSVG(a),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:0},debug:!1,timestamp:!0,pauseAll:function(a){var b=(new Date).getTime();o.each(y.State.calls,function(b,c){if(c){if(a!==d&&(c[2].queue!==a||c[2].queue===!1))return!0;c[5]={resume:!1}}}),o.each(y.State.delayedElements,function(a,c){c&&h(c,b)})},resumeAll:function(a){var b=(new Date).getTime();o.each(y.State.calls,function(b,c){if(c){if(a!==d&&(c[2].queue!==a||c[2].queue===!1))return!0;c[5]&&(c[5].resume=!0)}}),o.each(y.State.delayedElements,function(a,c){c&&i(c,b)})}};b.pageYOffset!==d?(y.State.scrollAnchor=b,y.State.scrollPropertyLeft="pageXOffset",y.State.scrollPropertyTop="pageYOffset"):(y.State.scrollAnchor=c.documentElement||c.body.parentNode||c.body,y.State.scrollPropertyLeft="scrollLeft",y.State.scrollPropertyTop="scrollTop");var z=function(){function a(a){return-a.tension*a.x-a.friction*a.v}function b(b,c,d){var e={x:b.x+d.dx*c,v:b.v+d.dv*c,tension:b.tension,friction:b.friction};return{dx:e.v,dv:a(e)}}function c(c,d){var e={dx:c.v,dv:a(c)},f=b(c,.5*d,e),g=b(c,.5*d,f),h=b(c,d,g),i=1/6*(e.dx+2*(f.dx+g.dx)+h.dx),j=1/6*(e.dv+2*(f.dv+g.dv)+h.dv);return c.x=c.x+i*d,c.v=c.v+j*d,c}return function d(a,b,e){var f,g,h,i={x:-1,v:0,tension:null,friction:null},j=[0],k=0;for(a=parseFloat(a)||500,b=parseFloat(b)||20,e=e||null,i.tension=a,i.friction=b,f=null!==e,f?(k=d(a,b),g=k/e*.016):g=.016;;)if(h=c(h||i,g),j.push(1+h.x),k+=16,!(Math.abs(h.x)>1e-4&&Math.abs(h.v)>1e-4))break;return f?function(a){return j[a*(j.length-1)|0]}:k}}();y.Easings={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},spring:function(a){return 1-Math.cos(4.5*a*Math.PI)*Math.exp(6*-a)}},o.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(a,b){y.Easings[b[0]]=k.apply(null,b[1])});var A=y.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var a=0;a<A.Lists.colors.length;a++){var b="color"===A.Lists.colors[a]?"0 0 0 1":"255 255 255 1";A.Hooks.templates[A.Lists.colors[a]]=["Red Green Blue Alpha",b]}var c,d,e;if(p)for(c in A.Hooks.templates)if(A.Hooks.templates.hasOwnProperty(c)){d=A.Hooks.templates[c],e=d[0].split(" ");var f=d[1].match(A.RegEx.valueSplit);"Color"===e[0]&&(e.push(e.shift()),f.push(f.shift()),A.Hooks.templates[c]=[e.join(" "),f.join(" ")])}for(c in A.Hooks.templates)if(A.Hooks.templates.hasOwnProperty(c)){d=A.Hooks.templates[c],e=d[0].split(" ");for(var g in e)if(e.hasOwnProperty(g)){var h=c+e[g],i=g;A.Hooks.registered[h]=[c,i]}}},getRoot:function(a){var b=A.Hooks.registered[a];return b?b[0]:a},getUnit:function(a,b){var c=(a.substr(b||0,5).match(/^[a-z%]+/)||[])[0]||"";return c&&t(A.Lists.units,c)?c:""},fixColors:function(a){return a.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(a,b,c){return A.Lists.colorNames.hasOwnProperty(c)?(b?b:"rgba(")+A.Lists.colorNames[c]+(b?"":",1)"):b+c})},cleanRootPropertyValue:function(a,b){return A.RegEx.valueUnwrap.test(b)&&(b=b.match(A.RegEx.valueUnwrap)[1]),A.Values.isCSSNullValue(b)&&(b=A.Hooks.templates[a][1]),b},extractValue:function(a,b){var c=A.Hooks.registered[a];if(c){var d=c[0],e=c[1];return b=A.Hooks.cleanRootPropertyValue(d,b),b.toString().match(A.RegEx.valueSplit)[e]}return b},injectValue:function(a,b,c){var d=A.Hooks.registered[a];if(d){var e,f=d[0],g=d[1];return c=A.Hooks.cleanRootPropertyValue(f,c),e=c.toString().match(A.RegEx.valueSplit),e[g]=b,e.join(" ")}return c}},Normalizations:{registered:{clip:function(a,b,c){switch(a){case"name":return"clip";case"extract":var d;return A.RegEx.wrappedValueAlreadyExtracted.test(c)?d=c:(d=c.toString().match(A.RegEx.valueUnwrap),d=d?d[1].replace(/,(\s+)?/g," "):c),d;case"inject":return"rect("+c+")"}},blur:function(a,b,c){switch(a){case"name":return y.State.isFirefox?"filter":"-webkit-filter";case"extract":var d=parseFloat(c);if(!d&&0!==d){var e=c.toString().match(/blur\(([0-9]+[A-z]+)\)/i);d=e?e[1]:0}return d;case"inject":return parseFloat(c)?"blur("+c+")":"none"}},opacity:function(a,b,c){if(p<=8)switch(a){case"name":return"filter";case"extract":var d=c.toString().match(/alpha\(opacity=(.*)\)/i);return c=d?d[1]/100:1;case"inject":return b.style.zoom=1,parseFloat(c)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(c),10)+")"}else switch(a){case"name":return"opacity";case"extract":return c;case"inject":return c}}},register:function(){function a(a,b,c){if("border-box"===A.getPropertyValue(b,"boxSizing").toString().toLowerCase()===(c||!1)){var d,e,f=0,g="width"===a?["Left","Right"]:["Top","Bottom"],h=["padding"+g[0],"padding"+g[1],"border"+g[0]+"Width","border"+g[1]+"Width"];for(d=0;d<h.length;d++)e=parseFloat(A.getPropertyValue(b,h[d])),isNaN(e)||(f+=e);return c?-f:f}return 0}function b(b,c){return function(d,e,f){switch(d){case"name":return b;case"extract":return parseFloat(f)+a(b,e,c);case"inject":return parseFloat(f)-a(b,e,c)+"px"}}}p&&!(p>9)||y.State.isGingerbread||(A.Lists.transformsBase=A.Lists.transformsBase.concat(A.Lists.transforms3D));for(var c=0;c<A.Lists.transformsBase.length;c++)!function(){var a=A.Lists.transformsBase[c];A.Normalizations.registered[a]=function(b,c,e){switch(b){case"name":return"transform";case"extract":return g(c)===d||g(c).transformCache[a]===d?/^scale/i.test(a)?1:0:g(c).transformCache[a].replace(/[()]/g,"");case"inject":var f=!1;switch(a.substr(0,a.length-1)){case"translate":f=!/(%|px|em|rem|vw|vh|\d)$/i.test(e);break;case"scal":case"scale":y.State.isAndroid&&g(c).transformCache[a]===d&&e<1&&(e=1),f=!/(\d)$/i.test(e);break;case"skew":f=!/(deg|\d)$/i.test(e);break;case"rotate":f=!/(deg|\d)$/i.test(e)}return f||(g(c).transformCache[a]="("+e+")"),g(c).transformCache[a]}}}();for(var e=0;e<A.Lists.colors.length;e++)!function(){var a=A.Lists.colors[e];A.Normalizations.registered[a]=function(b,c,e){switch(b){case"name":return a;case"extract":var f;if(A.RegEx.wrappedValueAlreadyExtracted.test(e))f=e;else{var g,h={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(e)?g=h[e]!==d?h[e]:h.black:A.RegEx.isHex.test(e)?g="rgb("+A.Values.hexToRgb(e).join(" ")+")":/^rgba?\(/i.test(e)||(g=h.black),f=(g||e).toString().match(A.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!p||p>8)&&3===f.split(" ").length&&(f+=" 1"),f;case"inject":return/^rgb/.test(e)?e:(p<=8?4===e.split(" ").length&&(e=e.split(/\s+/).slice(0,3).join(" ")):3===e.split(" ").length&&(e+=" 1"),(p<=8?"rgb":"rgba")+"("+e.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();A.Normalizations.registered.innerWidth=b("width",!0),A.Normalizations.registered.innerHeight=b("height",!0),A.Normalizations.registered.outerWidth=b("width"),A.Normalizations.registered.outerHeight=b("height")}},Names:{camelCase:function(a){return a.replace(/-(\w)/g,function(a,b){return b.toUpperCase()})},SVGAttribute:function(a){var b="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(p||y.State.isAndroid&&!y.State.isChrome)&&(b+="|transform"),new RegExp("^("+b+")$","i").test(a)},prefixCheck:function(a){if(y.State.prefixMatches[a])return[y.State.prefixMatches[a],!0];for(var b=["","Webkit","Moz","ms","O"],c=0,d=b.length;c<d;c++){var e;if(e=0===c?a:b[c]+a.replace(/^\w/,function(a){return a.toUpperCase()}),u.isString(y.State.prefixElement.style[e]))return y.State.prefixMatches[a]=e,[e,!0]}return[a,!1]}},Values:{hexToRgb:function(a){var b,c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,b,c,d){return b+b+c+c+d+d}),b=c.exec(a),b?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:[0,0,0]},isCSSNullValue:function(a){return!a||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(a)},getUnitType:function(a){return/^(rotate|skew)/i.test(a)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(a)?"":"px"},getDisplayType:function(a){var b=a&&a.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(b)?"inline":/^(li)$/i.test(b)?"list-item":/^(tr)$/i.test(b)?"table-row":/^(table)$/i.test(b)?"table":/^(tbody)$/i.test(b)?"table-row-group":"block"},addClass:function(a,b){if(a)if(a.classList)a.classList.add(b);else if(u.isString(a.className))a.className+=(a.className.length?" ":"")+b;else{var c=a.getAttribute(p<=7?"className":"class")||"";a.setAttribute("class",c+(c?" ":"")+b)}},removeClass:function(a,b){if(a)if(a.classList)a.classList.remove(b);else if(u.isString(a.className))a.className=a.className.toString().replace(new RegExp("(^|\\s)"+b.split(" ").join("|")+"(\\s|$)","gi")," ");else{var c=a.getAttribute(p<=7?"className":"class")||"";a.setAttribute("class",c.replace(new RegExp("(^|s)"+b.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(a,c,e,f){function h(a,c){var e=0;if(p<=8)e=o.css(a,c);else{var i=!1;/^(width|height)$/.test(c)&&0===A.getPropertyValue(a,"display")&&(i=!0,A.setPropertyValue(a,"display",A.Values.getDisplayType(a)));var j=function(){i&&A.setPropertyValue(a,"display","none")};if(!f){if("height"===c&&"border-box"!==A.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var k=a.offsetHeight-(parseFloat(A.getPropertyValue(a,"borderTopWidth"))||0)-(parseFloat(A.getPropertyValue(a,"borderBottomWidth"))||0)-(parseFloat(A.getPropertyValue(a,"paddingTop"))||0)-(parseFloat(A.getPropertyValue(a,"paddingBottom"))||0);return j(),k}if("width"===c&&"border-box"!==A.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var l=a.offsetWidth-(parseFloat(A.getPropertyValue(a,"borderLeftWidth"))||0)-(parseFloat(A.getPropertyValue(a,"borderRightWidth"))||0)-(parseFloat(A.getPropertyValue(a,"paddingLeft"))||0)-(parseFloat(A.getPropertyValue(a,"paddingRight"))||0);return j(),l}}var m;m=g(a)===d?b.getComputedStyle(a,null):g(a).computedStyle?g(a).computedStyle:g(a).computedStyle=b.getComputedStyle(a,null),"borderColor"===c&&(c="borderTopColor"),e=9===p&&"filter"===c?m.getPropertyValue(c):m[c],""!==e&&null!==e||(e=a.style[c]),j()}if("auto"===e&&/^(top|right|bottom|left)$/i.test(c)){var n=h(a,"position");("fixed"===n||"absolute"===n&&/top|left/i.test(c))&&(e=o(a).position()[c]+"px")}return e}var i;if(A.Hooks.registered[c]){var j=c,k=A.Hooks.getRoot(j);e===d&&(e=A.getPropertyValue(a,A.Names.prefixCheck(k)[0])),A.Normalizations.registered[k]&&(e=A.Normalizations.registered[k]("extract",a,e)),i=A.Hooks.extractValue(j,e)}else if(A.Normalizations.registered[c]){var l,m;l=A.Normalizations.registered[c]("name",a),"transform"!==l&&(m=h(a,A.Names.prefixCheck(l)[0]),A.Values.isCSSNullValue(m)&&A.Hooks.templates[c]&&(m=A.Hooks.templates[c][1])),i=A.Normalizations.registered[c]("extract",a,m)}if(!/^[\d-]/.test(i)){var n=g(a);if(n&&n.isSVG&&A.Names.SVGAttribute(c))if(/^(height|width)$/i.test(c))try{i=a.getBBox()[c]}catch(q){i=0}else i=a.getAttribute(c);else i=h(a,A.Names.prefixCheck(c)[0])}return A.Values.isCSSNullValue(i)&&(i=0),y.debug>=2&&console.log("Get "+c+": "+i),i},setPropertyValue:function(a,c,d,e,f){var h=c;if("scroll"===c)f.container?f.container["scroll"+f.direction]=d:"Left"===f.direction?b.scrollTo(d,f.alternateValue):b.scrollTo(f.alternateValue,d);else if(A.Normalizations.registered[c]&&"transform"===A.Normalizations.registered[c]("name",a))A.Normalizations.registered[c]("inject",a,d),h="transform",d=g(a).transformCache[c];else{if(A.Hooks.registered[c]){var i=c,j=A.Hooks.getRoot(c);e=e||A.getPropertyValue(a,j),d=A.Hooks.injectValue(i,d,e),c=j}if(A.Normalizations.registered[c]&&(d=A.Normalizations.registered[c]("inject",a,d),c=A.Normalizations.registered[c]("name",a)),h=A.Names.prefixCheck(c)[0],p<=8)try{a.style[h]=d}catch(l){y.debug&&console.log("Browser does not support ["+d+"] for ["+h+"]")}else{var k=g(a);k&&k.isSVG&&A.Names.SVGAttribute(c)?a.setAttribute(c,d):a.style[h]=d}y.debug>=2&&console.log("Set "+c+" ("+h+"): "+d)}return[h,d]},flushTransformCache:function(a){var b="",c=g(a);if((p||y.State.isAndroid&&!y.State.isChrome)&&c&&c.isSVG){var d=function(b){return parseFloat(A.getPropertyValue(a,b))},e={translate:[d("translateX"),d("translateY")],skewX:[d("skewX")],skewY:[d("skewY")],scale:1!==d("scale")?[d("scale"),d("scale")]:[d("scaleX"),d("scaleY")],rotate:[d("rotateZ"),0,0]};o.each(g(a).transformCache,function(a){/^translate/i.test(a)?a="translate":/^scale/i.test(a)?a="scale":/^rotate/i.test(a)&&(a="rotate"),e[a]&&(b+=a+"("+e[a].join(" ")+") ",delete e[a])})}else{var f,h;o.each(g(a).transformCache,function(c){if(f=g(a).transformCache[c],"transformPerspective"===c)return h=f,!0;9===p&&"rotateZ"===c&&(c="rotate"),b+=c+f+" "}),h&&(b="perspective"+h+" "+b)}A.setPropertyValue(a,"transform",b)}};A.Hooks.register(),A.Normalizations.register(),y.hook=function(a,b,c){var e;return a=f(a),o.each(a,function(a,f){if(g(f)===d&&y.init(f),c===d)e===d&&(e=A.getPropertyValue(f,b));else{var h=A.setPropertyValue(f,b,c);"transform"===h[0]&&y.CSS.flushTransformCache(f),e=h}}),e};var B=function(){function a(){return k?z.promise||null:p}function e(a,e){function f(f){var k,n;if(i.begin&&0===D)try{i.begin.call(r,r)}catch(V){setTimeout(function(){throw V},1)}if("scroll"===G){var p,q,w,x=/^x$/i.test(i.axis)?"Left":"Top",B=parseFloat(i.offset)||0;i.container?u.isWrapped(i.container)||u.isNode(i.container)?(i.container=i.container[0]||i.container,p=i.container["scroll"+x],w=p+o(a).position()[x.toLowerCase()]+B):i.container=null:(p=y.State.scrollAnchor[y.State["scrollProperty"+x]],q=y.State.scrollAnchor[y.State["scrollProperty"+("Left"===x?"Top":"Left")]],w=o(a).offset()[x.toLowerCase()]+B),j={scroll:{rootPropertyValue:!1,startValue:p,currentValue:p,endValue:w,unitType:"",easing:i.easing,scrollData:{container:i.container,direction:x,alternateValue:q}},element:a},y.debug&&console.log("tweensContainer (scroll): ",j.scroll,a)}else if("reverse"===G){if(!(k=g(a)))return;if(!k.tweensContainer)return void o.dequeue(a,i.queue);"none"===k.opts.display&&(k.opts.display="auto"),"hidden"===k.opts.visibility&&(k.opts.visibility="visible"),k.opts.loop=!1,k.opts.begin=null,k.opts.complete=null,v.easing||delete i.easing,v.duration||delete i.duration,i=o.extend({},k.opts,i),n=o.extend(!0,{},k?k.tweensContainer:null);for(var E in n)if(n.hasOwnProperty(E)&&"element"!==E){var F=n[E].startValue;n[E].startValue=n[E].currentValue=n[E].endValue,n[E].endValue=F,u.isEmptyObject(v)||(n[E].easing=i.easing),y.debug&&console.log("reverse tweensContainer ("+E+"): "+JSON.stringify(n[E]),a)}j=n}else if("start"===G){k=g(a),k&&k.tweensContainer&&k.isAnimating===!0&&(n=k.tweensContainer);var H=function(e,f){var g,l=A.Hooks.getRoot(e),m=!1,p=f[0],q=f[1],r=f[2] 202;if(!(k&&k.isSVG||"tween"===l||A.Names.prefixCheck(l)[1]!==!1
vendor: 5,506 bytes, line 202
202||A.Normalizations.registered[l]!==d))return void(y.debug&&console.log("Skipping ["+l+"] due to a lack of browser support."));(i.display!==d&&null!==i.display&&"none"!==i.display||i.visibility!==d&&"hidden"!==i.visibility)&&/opacity|filter/.test(e)&&!r&&0!==p&&(r=0),i._cacheValues&&n&&n[e]?(r===d&&(r=n[e].endValue+n[e].unitType),m=k.rootPropertyValueCache[l]):A.Hooks.registered[e]?r===d?(m=A.getPropertyValue(a,l),r=A.getPropertyValue(a,e,m)):m=A.Hooks.templates[l][1]:r===d&&(r=A.getPropertyValue(a,e));var s,t,v,w=!1,x=function(a,b){var c,d;return d=(b||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(a){return c=a,""}),c||(c=A.Values.getUnitType(a)),[d,c]};if(r!==p&&u.isString(r)&&u.isString(p)){g="";var z=0,B=0,C=[],D=[],E=0,F=0,G=0;for(r=A.Hooks.fixColors(r),p=A.Hooks.fixColors(p);z<r.length&&B<p.length;){var H=r[z],I=p[B];if(/[\d\.-]/.test(H)&&/[\d\.-]/.test(I)){for(var J=H,K=I,L=".",N=".";++z<r.length;){if((H=r[z])===L)L="..";else if(!/\d/.test(H))break;J+=H}for(;++B<p.length;){if((I=p[B])===N)N="..";else if(!/\d/.test(I))break;K+=I}var O=A.Hooks.getUnit(r,z),P=A.Hooks.getUnit(p,B);if(z+=O.length,B+=P.length,O===P)J===K?g+=J+O:(g+="{"+C.length+(F?"!":"")+"}"+O,C.push(parseFloat(J)),D.push(parseFloat(K)));else{var Q=parseFloat(J),R=parseFloat(K);g+=(E<5?"calc":"")+"("+(Q?"{"+C.length+(F?"!":"")+"}":"0")+O+" + "+(R?"{"+(C.length+(Q?1:0))+(F?"!":"")+"}":"0")+P+")",Q&&(C.push(Q),D.push(0)),R&&(C.push(0),D.push(R))}}else{if(H!==I){E=0;break}g+=H,z++,B++,0===E&&"c"===H||1===E&&"a"===H||2===E&&"l"===H||3===E&&"c"===H||E>=4&&"("===H?E++:(E&&E<5||E>=4&&")"===H&&--E<5)&&(E=0),0===F&&"r"===H||1===F&&"g"===H||2===F&&"b"===H||3===F&&"a"===H||F>=3&&"("===H?(3===F&&"a"===H&&(G=1),F++):G&&","===H?++G>3&&(F=G=0):(G&&F<(G?5:4)||F>=(G?4:3)&&")"===H&&--F<(G?5:4))&&(F=G=0)}}z===r.length&&B===p.length||(y.debug&&console.error('Trying to pattern match mis-matched strings ["'+p+'", "'+r+'"]'),g=d),g&&(C.length?(y.debug&&console.log('Pattern found "'+g+'" -> ',C,D,"["+r+","+p+"]"),r=C,p=D,t=v=""):g=d)}g||(s=x(e,r),r=s[0],v=s[1],s=x(e,p),p=s[0].replace(/^([+-\/*])=/,function(a,b){return w=b,""}),t=s[1],r=parseFloat(r)||0,p=parseFloat(p)||0,"%"===t&&(/^(fontSize|lineHeight)$/.test(e)?(p/=100,t="em"):/^scale/.test(e)?(p/=100,t=""):/(Red|Green|Blue)$/i.test(e)&&(p=p/100*255,t="")));if(/[\/*]/.test(w))t=v;else if(v!==t&&0!==r)if(0===p)t=v;else{h=h||function(){var d={myParent:a.parentNode||c.body,position:A.getPropertyValue(a,"position"),fontSize:A.getPropertyValue(a,"fontSize")},e=d.position===M.lastPosition&&d.myParent===M.lastParent,f=d.fontSize===M.lastFontSize;M.lastParent=d.myParent,M.lastPosition=d.position,M.lastFontSize=d.fontSize;var g={};if(f&&e)g.emToPx=M.lastEmToPx,g.percentToPxWidth=M.lastPercentToPxWidth,g.percentToPxHeight=M.lastPercentToPxHeight;else{var h=k&&k.isSVG?c.createElementNS("http://www.w3.org/2000/svg","rect"):c.createElement("div");y.init(h),d.myParent.appendChild(h),o.each(["overflow","overflowX","overflowY"],function(a,b){y.CSS.setPropertyValue(h,b,"hidden")}),y.CSS.setPropertyValue(h,"position",d.position),y.CSS.setPropertyValue(h,"fontSize",d.fontSize),y.CSS.setPropertyValue(h,"boxSizing","content-box"),o.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(a,b){y.CSS.setPropertyValue(h,b,"100%")}),y.CSS.setPropertyValue(h,"paddingLeft","100em"),g.percentToPxWidth=M.lastPercentToPxWidth=(parseFloat(A.getPropertyValue(h,"width",null,!0))||1)/100,g.percentToPxHeight=M.lastPercentToPxHeight=(parseFloat(A.getPropertyValue(h,"height",null,!0))||1)/100,g.emToPx=M.lastEmToPx=(parseFloat(A.getPropertyValue(h,"paddingLeft"))||1)/100,d.myParent.removeChild(h)}return null===M.remToPx&&(M.remToPx=parseFloat(A.getPropertyValue(c.body,"fontSize"))||16),null===M.vwToPx&&(M.vwToPx=parseFloat(b.innerWidth)/100,M.vhToPx=parseFloat(b.innerHeight)/100),g.remToPx=M.remToPx,g.vwToPx=M.vwToPx,g.vhToPx=M.vhToPx,y.debug>=1&&console.log("Unit ratios: "+JSON.stringify(g),a),g}();var S=/margin|padding|left|right|width|text|word|letter/i.test(e)||/X$/.test(e)||"x"===e?"x":"y";switch(v){case"%":r*="x"===S?h.percentToPxWidth:h.percentToPxHeight;break;case"px":break;default:r*=h[v+"ToPx"]}switch(t){case"%":r*=1/("x"===S?h.percentToPxWidth:h.percentToPxHeight);break;case"px":break;default:r*=1/h[t+"ToPx"]}}switch(w){case"+":p=r+p;break;case"-":p=r-p;break;case"*":p*=r;break;case"/":p=r/p}j[e]={rootPropertyValue:m,startValue:r,currentValue:r,endValue:p,unitType:t,easing:q},g&&(j[e].pattern=g),y.debug&&console.log("tweensContainer ("+e+"): "+JSON.stringify(j[e]),a)};for(var I in s)if(s.hasOwnProperty(I)){var J=A.Names.camelCase(I),K=function(b,c){var d,f,g;return u.isFunction(b)&&(b=b.call(a,e,C)),u.isArray(b)?(d=b[0],!u.isArray(b[1])&&/^[\d-]/.test(b[1])||u.isFunction(b[1])||A.RegEx.isHex.test(b[1])?g=b[1]:u.isString(b[1])&&!A.RegEx.isHex.test(b[1])&&y.Easings[b[1]]||u.isArray(b[1])?(f=c?b[1]:l(b[1],i.duration),g=b[2]):g=b[1]||b[2]):d=b,c||(f=f||i.easing),u.isFunction(d)&&(d=d.call(a,e,C)),u.isFunction(g)&&(g=g.call(a,e,C)),[d||0,f,g]}(s[I]);if(t(A.Lists.colors,J)){var L=K[0],O=K[1],P=K[2];if(A.RegEx.isHex.test(L)){for(var Q=["Red","Green","Blue"],R=A.Values.hexToRgb(L),S=P?A.Values.hexToRgb(P):d,T=0;T<Q.length;T++){var U=[R[T]];O&&U.push(O),S!==d&&U.push(S[T]),H(J+Q[T],U)}continue}}H(J,K)}j.element=a}j.element&&(A.Values.addClass(a,"velocity-animating"),N.push(j),k=g(a),k&&(""===i.queue&&(k.tweensContainer=j,k.opts=i),k.isAnimating=!0),D===C-1?(y.State.calls.push([N,r,i,null,z.resolver,null,0]),
vendor: 7,144 bytes, lines 202-205
202y.State.isTicking===!1&&(y.State.isTicking=!0,m())):D++)}var h,i=o.extend({},y.defaults,v),j={};switch(g(a)===d&&y.init(a),parseFloat(i.delay)&&i.queue!==!1&&o.queue(a,i.queue,function(b){y.velocityQueueEntryFlag=!0;var c=y.State.delayedElements.count++;y.State.delayedElements[c]=a;var d=function(a){return function(){y.State.delayedElements[a]=!1,b()}}(c);g(a).delayBegin=(new Date).getTime(),g(a).delay=parseFloat(i.delay),g(a).delayTimer={setTimeout:setTimeout(b,parseFloat(i.delay)),next:d}}),i.duration.toString().toLowerCase()){case"fast":i.duration=200;break;case"normal":i.duration=w;break;case"slow":i.duration=600;break;default:i.duration=parseFloat(i.duration)||1}if(y.mock!==!1&&(y.mock===!0?i.duration=i.delay=1:(i.duration*=parseFloat(y.mock)||1,i.delay*=parseFloat(y.mock)||1)),i.easing=l(i.easing,i.duration),i.begin&&!u.isFunction(i.begin)&&(i.begin=null),i.progress&&!u.isFunction(i.progress)&&(i.progress=null),i.complete&&!u.isFunction(i.complete)&&(i.complete=null),i.display!==d&&null!==i.display&&(i.display=i.display.toString().toLowerCase(),"auto"===i.display&&(i.display=y.CSS.Values.getDisplayType(a))),i.visibility!==d&&null!==i.visibility&&(i.visibility=i.visibility.toString().toLowerCase()),i.mobileHA=i.mobileHA&&y.State.isMobile&&!y.State.isGingerbread,i.queue===!1)if(i.delay){var k=y.State.delayedElements.count++;y.State.delayedElements[k]=a;var n=function(a){return function(){y.State.delayedElements[a]=!1,f()}}(k);g(a).delayBegin=(new Date).getTime(),g(a).delay=parseFloat(i.delay),g(a).delayTimer={setTimeout:setTimeout(f,parseFloat(i.delay)),next:n}}else f();else o.queue(a,i.queue,function(a,b){if(b===!0)return z.promise&&z.resolver(r),!0;y.velocityQueueEntryFlag=!0,f(a)});""!==i.queue&&"fx"!==i.queue||"inprogress"===o.queue(a)[0]||o.dequeue(a)}var j,k,p,q,r,s,v,x=arguments[0]&&(arguments[0].p||o.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||u.isString(arguments[0].properties));u.isWrapped(this)?(k=!1,q=0,r=this,p=this):(k=!0,q=1,r=x?arguments[0].elements||arguments[0].e:arguments[0]);var z={promise:null,resolver:null,rejecter:null};if(k&&y.Promise&&(z.promise=new y.Promise(function(a,b){z.resolver=a,z.rejecter=b})),x?(s=arguments[0].properties||arguments[0].p,v=arguments[0].options||arguments[0].o):(s=arguments[q],v=arguments[q+1]),!(r=f(r)))return void(z.promise&&(s&&v&&v.promiseRejectEmpty===!1?z.resolver():z.rejecter()));var C=r.length,D=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(s)&&!o.isPlainObject(v)){var E=q+1;v={};for(var F=E;F<arguments.length;F++)u.isArray(arguments[F])||!/^(fast|normal|slow)$/i.test(arguments[F])&&!/^\d/.test(arguments[F])?u.isString(arguments[F])||u.isArray(arguments[F])?v.easing=arguments[F]:u.isFunction(arguments[F])&&(v.complete=arguments[F]):v.duration=arguments[F]}var G;switch(s){case"scroll":G="scroll";break;case"reverse":G="reverse";break;case"pause":var H=(new Date).getTime();return o.each(r,function(a,b){h(b,H)}),o.each(y.State.calls,function(a,b){var c=!1;b&&o.each(b[1],function(a,e){var f=v===d?"":v;return f!==!0&&b[2].queue!==f&&(v!==d||b[2].queue!==!1)||(o.each(r,function(a,d){if(d===e)return b[5]={resume:!1},c=!0,!1}),!c&&void 0)})}),a();case"resume":return o.each(r,function(a,b){i(b,H)}),o.each(y.State.calls,function(a,b){var c=!1;b&&o.each(b[1],function(a,e){var f=v===d?"":v;return f!==!0&&b[2].queue!==f&&(v!==d||b[2].queue!==!1)||(!b[5]||(o.each(r,function(a,d){if(d===e)return b[5].resume=!0,c=!0,!1}),!c&&void 0))})}),a();case"finish":case"finishAll":case"stop":o.each(r,function(a,b){g(b)&&g(b).delayTimer&&(clearTimeout(g(b).delayTimer.setTimeout),g(b).delayTimer.next&&g(b).delayTimer.next(),delete g(b).delayTimer),"finishAll"!==s||v!==!0&&!u.isString(v)||(o.each(o.queue(b,u.isString(v)?v:""),function(a,b){u.isFunction(b)&&b()}),o.queue(b,u.isString(v)?v:"",[]))});var I=[];return o.each(y.State.calls,function(a,b){b&&o.each(b[1],function(c,e){var f=v===d?"":v;if(f!==!0&&b[2].queue!==f&&(v!==d||b[2].queue!==!1))return!0;o.each(r,function(c,d){if(d===e)if((v===!0||u.isString(v))&&(o.each(o.queue(d,u.isString(v)?v:""),function(a,b){u.isFunction(b)&&b(null,!0)}),o.queue(d,u.isString(v)?v:"",[])),"stop"===s){var h=g(d);h&&h.tweensContainer&&f!==!1&&o.each(h.tweensContainer,function(a,b){b.endValue=b.currentValue}),I.push(a)}else"finish"!==s&&"finishAll"!==s||(b[2].duration=1)})})}),"stop"===s&&(o.each(I,function(a,b){n(b,!0)}),z.promise&&z.resolver(r)),a();default:if(!o.isPlainObject(s)||u.isEmptyObject(s)){if(u.isString(s)&&y.Redirects[s]){j=o.extend({},v);var J=j.duration,K=j.delay||0;return j.backwards===!0&&(r=o.extend(!0,[],r).reverse()),o.each(r,function(a,b){parseFloat(j.stagger)?j.delay=K+parseFloat(j.stagger)*a:u.isFunction(j.stagger)&&(j.delay=K+j.stagger.call(b,a,C)),j.drag&&(j.duration=parseFloat(J)||(/^(callout|transition)/.test(s)?1e3:w),j.duration=Math.max(j.duration*(j.backwards?1-a/C:(a+1)/C),.75*j.duration,200)),y.Redirects[s].call(b,b,j||{},a,C,r,z.promise?z:d)}),a()}var L="Velocity: First argument ("+s+") was not a property map, a known action, or a registered redirect. Aborting.";return z.promise?z.rejecter(new Error(L)):b.console&&console.log(L),a()}G="start"}var M={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},N=[];o.each(r,function(a,b){u.isNode(b)&&e(b,a)}),j=o.extend({},y.defaults,v),j.loop=parseInt(j.loop,10);var O=2*j.loop-1;if(j.loop)for(var P=0;P<O;P++){var Q={delay:j.delay,progress:j.progress};P===O-1&&(Q.display=j.display,Q.visibility=j.visibility,Q.complete=j.complete),B(r,"reverse",Q)}return a()};y=o.extend(B,y),y.animate=B;var C=b.requestAnimationFrame||q;if(!y.State.isMobile&&c.hidden!==d){var D=function(){c.hidden?(C=function(a){return setTimeout(function(){a(!0)},16)},m()):C=b.requestAnimationFrame||q};D(),c.addEventListener("visibilitychange",D)}return a.Velocity=y,a!==b&&(a.fn.velocity=B,a.fn.velocity.defaults=y.defaults),o.each(["Down","Up"],function(a,b){y.Redirects["slide"+b]=function(a,c,e,f,g,h){var i=o.extend({},c),j=i.begin,k=i.complete,l={},m={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};i.display===d&&(i.display="Down"===b?"inline"===y.CSS.Values.getDisplayType(a)?"inline-block":"block":"none"),i.begin=function(){0===e&&j&&j.call(g,g);for(var c in m)if(m.hasOwnProperty(c)){l[c]=a.style[c];var d=A.getPropertyValue(a,c);m[c]="Down"===b?[d,0]:[0,d]}l.overflow=a.style.overflow,a.style.overflow="hidden"},i.complete=function(){for(var b in l)l.hasOwnProperty(b)&&(a.style[b]=l[b]);e===f-1&&(k&&k.call(g,g),h&&h.resolver(g))},y(a,m,i)}}),o.each(["In","Out"],function(a,b){y.Redirects["fade"+b]=function(a,c,e,f,g,h){var i=o.extend({},c),j=i.complete,k={opacity:"In"===b?1:0};0!==e&&(i.begin=null),i.complete=e!==f-1?null:function(){j&&j.call(g,g),h&&h.resolver(g)},i.display===d&&(i.display="In"===b?"auto":"none"),y(this,k,i)}}),y}(window.jQuery||window.Zepto||window,window,window?window.document:undefined)}); 203/* End */ 204; 205; /* Start:"a:4:{s:4:"full";s:77:"/bitrix/templates/aspro_max/vendor/js/velocity/velocity.ui.js?165865915313257";s:6:"source";
vendor: 8,937 bytes, lines 205-207
205s:61:"/bitrix/templates/aspro_max/vendor/js/velocity/velocity.ui.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 206/* VelocityJS.org UI Pack (5.0.4). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License. Portions copyright Daniel Eden, Christian Pucci. */ 207!function(t){"function"==typeof require&&"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(["velocity"],t):t()}(function(){return function(t,a,e,r){function n(t,a){var e=[];return t&&a?($.each([t,a],function(t,a){var r=[];$.each(a,function(t,a){for(;a.toString().length<5;)a="0"+a;r.push(a)}),e.push(r.join(""))}),parseFloat(e[0])>parseFloat(e[1])):!1}if(!t.Velocity||!t.Velocity.Utilities)return void(a.console&&console.log("Velocity UI Pack: Velocity must be loaded first. Aborting."));var i=t.Velocity,$=i.Utilities,s=i.version,o={major:1,minor:1,patch:0};if(n(o,s)){var l="Velocity UI Pack: You need to update Velocity (jquery.velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";throw alert(l),new Error(l)}i.RegisterEffect=i.RegisterUI=function(t,a){function e(t,a,e,r){var n=0,s;$.each(t.nodeType?[t]:t,function(t,a){r&&(e+=t*r),s=a.parentNode,$.each(["height","paddingTop","paddingBottom","marginTop","marginBottom"],function(t,e){n+=parseFloat(i.CSS.getPropertyValue(a,e))})}),i.animate(s,{height:("In"===a?"+":"-")+"="+n},{queue:!1,easing:"ease-in-out",duration:e*("In"===a?.6:1)})}return i.Redirects[t]=function(n,s,o,l,c,u){function f(){s.display!==r&&"none"!==s.display||!/Out$/.test(t)||$.each(c.nodeType?[c]:c,function(t,a){i.CSS.setPropertyValue(a,"display","none")}),s.complete&&s.complete.call(c,c),u&&u.resolver(c||n)}var p=o===l-1;a.defaultDuration="function"==typeof a.defaultDuration?a.defaultDuration.call(c,c):parseFloat(a.defaultDuration);for(var d=0;d<a.calls.length;d++){var g=a.calls[d],y=g[0],m=s.duration||a.defaultDuration||1e3,X=g[1],Y=g[2]||{},O={};if(O.duration=m*(X||1),O.queue=s.queue||"",O.easing=Y.easing||"ease",O.delay=parseFloat(Y.delay)||0,O._cacheValues=Y._cacheValues||!0,0===d){if(O.delay+=parseFloat(s.delay)||0,0===o&&(O.begin=function(){s.begin&&s.begin.call(c,c);var a=t.match(/(In|Out)$/);a&&"In"===a[0]&&y.opacity!==r&&$.each(c.nodeType?[c]:c,function(t,a){i.CSS.setPropertyValue(a,"opacity",0)}),s.animateParentHeight&&a&&e(c,a[0],m+O.delay,s.stagger)}),null!==s.display)if(s.display!==r&&"none"!==s.display)O.display=s.display;else if(/In$/.test(t)){var v=i.CSS.Values.getDisplayType(n);O.display="inline"===v?"inline-block":v}s.visibility&&"hidden"!==s.visibility&&(O.visibility=s.visibility)}d===a.calls.length-1&&(O.complete=function(){if(a.reset){for(var t in a.reset){var e=a.reset[t];i.CSS.Hooks.registered[t]!==r||"string"!=typeof e&&"number"!=typeof e||(a.reset[t]=[a.reset[t],a.reset[t]])}var s={duration:0,queue:!1};p&&(s.complete=f),i.animate(n,a.reset,s)}else p&&f()},"hidden"===s.visibility&&(O.visibility=s.visibility)),i.animate(n,y,O)}},i},i.RegisterEffect.packagedEffects={"callout.bounce":{defaultDuration:550,calls:[[{translateY:-30},.25],[{translateY:0},.125],[{translateY:-15},.125],[{translateY:0},.25]]},"callout.shake":{defaultDuration:800,calls:[[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:0},.125]]},"callout.flash":{defaultDuration:1100,calls:[[{opacity:[0,"easeInOutQuad",1]},.25],[{opacity:[1,"easeInOutQuad"]},.25],[{opacity:[0,"easeInOutQuad"]},.25],[{opacity:[1,"easeInOutQuad"]},.25]]},"callout.pulse":{defaultDuration:825,calls:[[{scaleX:1.1,scaleY:1.1},.5,{easing:"easeInExpo"}],[{scaleX:1,scaleY:1},.5]]},"callout.swing":{defaultDuration:950,calls:[[{rotateZ:15},.2],[{rotateZ:-10},.2],[{rotateZ:5},.2],[{rotateZ:-5},.2],[{rotateZ:0},.2]]},"callout.tada":{defaultDuration:1e3,calls:[[{scaleX:.9,scaleY:.9,rotateZ:-3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:-3},.1],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],[{scaleX:1,scaleY:1,rotateZ:0},.2]]},"transition.fadeIn":{defaultDuration:500,calls:[[{opacity:[1,0]}]]},"transition.fadeOut":{defaultDuration:500,calls:[[{opacity:[0,1]}]]},"transition.flipXIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateY:[0,-55]}]],reset:{transformPerspective:0}},"transition.flipXOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateY:55}]],reset:{transformPerspective:0,rotateY:0}},"transition.flipYIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateX:[0,-45]}]],reset:{transformPerspective:0}},"transition.flipYOut":{defaultDuration:800,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateX:25}]],reset:{transformPerspective:0,rotateX:0}},"transition.flipBounceXIn":{defaultDuration:900,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateY:[-10,90]},.5],[{opacity:.8,rotateY:10},.25],[{opacity:1,rotateY:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceXOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateY:-10},.5],[{opacity:0,rotateY:90},.5]],reset:{transformPerspective:0,rotateY:0}},"transition.flipBounceYIn":{defaultDuration:850,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateX:[-10,90]},.5],[{opacity:.8,rotateX:10},.25],[{opacity:1,rotateX:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceYOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateX:-15},.5],[{opacity:0,rotateX:90},.5]],reset:{transformPerspective:0,rotateX:0}},"transition.swoopIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["100%","50%"],transformOriginY:["100%","100%"],scaleX:[1,0],scaleY:[1,0],translateX:[0,-700],translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%"}},"transition.swoopOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformOriginX:["50%","100%"],transformOriginY:["100%","100%"],scaleX:0,scaleY:0,translateX:-700,translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%",scaleX:1,scaleY:1,translateX:0}},"transition.whirlIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,0],scaleY:[1,0],rotateY:[0,160]},1,{easing:"easeInOutSine"}]]},"transition.whirlOut":{defaultDuration:750,calls:[[{opacity:[0,"easeInOutQuint",1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:0,scaleY:0,rotateY:160},1,{easing:"swing"}]],reset:{scaleX:1,scaleY:1,rotateY:0}},"transition.shrinkIn":{defaultDuration:750,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,1.5],scaleY:[1,1.5],translateZ:0}]]},"transition.shrinkOut":{defaultDuration:600,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:1.3,scaleY:1.3,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.expandIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,.625],scaleY:[1,.625],translateZ:0}]]},"transition.expandOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:.5,scaleY:.5,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.bounceIn":{defaultDuration:800,calls:[[{opacity:[1,0],scaleX:[1.05,.3],scaleY:[1.05,.3]},.4],[{scaleX:.9,scaleY:.9,translateZ:0},.2],[{scaleX:1,scaleY:1},.5]]},"transition.bounceOut":{defaultDuration:800,calls:[[{scaleX:.95,scaleY:.95},.35],[{scaleX:1.1,scaleY:1.1,translateZ:0},.35],[{opacity:[0,1],scaleX:.3,scaleY:.3},.3]],reset:{scaleX:1,scaleY:1}},"transition.bounceUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[-30,1e3]},.6,{easing:"easeOutCirc"}],[{translateY:10},.2],[{translateY:0},.2]]},"transition.bounceUpOut":{defaultDuration:1e3,calls:[[{translateY:20},.2],[{opacity:[0,"easeInCirc",1],translateY:-1e3},.8]],reset:{translateY:0}},"transition.bounceDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[30,-1e3]},.6,{easing:"easeOutCirc"}],[{translateY:-10},.2],[{translateY:0},.2]]},"transition.bounceDownOut":{defaultDuration:1e3,calls:[[{translateY:-20},.2],[{opacity:[0,"easeInCirc",1],translateY:1e3},.8]],reset:{translateY:0}},"transition.bounceLeftIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[30,-1250]},.6,{easing:"easeOutCirc"}],[{translateX:-10},.2],[{translateX:0},.2]]},"transition.bounceLeftOut":{defaultDuration:750,calls:[[{translateX:30},.2],[{opacity:[0,"easeInCirc",1],translateX:-1250},.8]],reset:{translateX:0}},"transition.bounceRightIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[-30,1250]},.6,{easing:"easeOutCirc"}],[{translateX:10},.2],[{translateX:0},.2]]},"transition.bounceRightOut":{defaultDuration:750,calls:[[{translateX:-30},.2],[{opacity:[0,"easeInCirc",1],translateX:1250},.8]],reset:{translateX:0}}
207,"transition.slideUpIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,20],translateZ:0}]]},"transition.slideUpOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:-20,translateZ:0}]],reset:{translateY:0}},"transition.slideDownIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,-20],translateZ:0}]]},"transition.slideDownOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:20,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,-20],translateZ:0}]]},"transition.slideLeftOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:-20,translateZ:0}]],reset:{translateX:0}},"transition.slideRightIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,20],translateZ:0}]]},"transition.slideRightOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:20,translateZ:0}]],reset:{translateX:0}},"transition.slideUpBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,75],translateZ:0}]]},"transition.slideUpBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:-75,translateZ:0}]],reset:{translateY:0}},"transition.slideDownBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,-75],translateZ:0}]]},"transition.slideDownBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:75,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,-75],translateZ:0}]]},"transition.slideLeftBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:-75,translateZ:0}]],reset:{translateX:0}},"transition.slideRightBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,75],translateZ:0}]]},"transition.slideRightBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:75,translateZ:0}]],reset:{translateX:0}},"transition.perspectiveUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveUpOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveDownOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveLeftIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveLeftOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}},"transition.perspectiveRightIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveRightOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}}};for(var c in i.RegisterEffect.packagedEffects)i.RegisterEffect(c,i.RegisterEffect.packagedEffects[c]);i.RunSequence=function(t){var a=$.extend(!0,[],t);a.length>1&&($.each(a.reverse(),function(t,e){var r=a[t+1];if(r){var n=e.o||e.options,s=r.o||r.options,o=n&&n.sequenceQueue===!1?"begin":"complete",l=s&&s[o],c={};c[o]=function(){var t=r.e||r.elements,a=t.nodeType?[t]:t;l&&l.call(a,a),i(e)},r.o?r.o=$.extend({},s,c):r.options=$.extend({},s,c)}}),a.reverse()),i(a[0])}}(window.jQuery||window.Zepto||window,window,document)}); 208/* End */ 209; 210; /* Start:"a:4:{s:4:"full";s:59:"/bitrix/templates/aspro_max/js/browser.min.js?1658659153662";s:6:"source";s:41:"/bitrix/templates/aspro_max/js/browser.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 211var matched,browser;jQuery.uaMatch=function(e){e=e.toLowerCase();var r=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie)[\s?]([\w.]+)/.exec(e)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:r[1]||"",version:r[2]||"0"}},matched=jQuery.uaMatch(navigator.userAgent),matched.browser="trident"==matched.browser?"msie":matched.browser,browser={},matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),jQuery.browser=browser;
vendor: 6,071 bytes, lines 212-215
212/* End */ 213; 214; /* Start:"a:4:{s:4:"full";s:67:"/bitrix/templates/aspro_max/js/jquery.uniform.min.js?16586591538308";s:6:"source";s:52:"/bitrix/templates/aspro_max/js/jquery.uniform.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 215(function(e,t){"use strict";function n(e){var t=Array.prototype.slice.call(arguments,1);return e.prop?e.prop.apply(e,t):e.attr.apply(e,t)}function s(e,t,n){var s,a;for(s in n)n.hasOwnProperty(s)&&(a=s.replace(/ |$/g,t.eventNamespace),e.bind(a,n[s]))}function a(e,t,n){s(e,n,{focus:function(){t.addClass(n.focusClass)},blur:function(){t.removeClass(n.focusClass),t.removeClass(n.activeClass)},mouseenter:function(){t.addClass(n.hoverClass)},mouseleave:function(){t.removeClass(n.hoverClass),t.removeClass(n.activeClass)},"mousedown touchbegin":function(){e.is(":disabled")||t.addClass(n.activeClass)},"mouseup touchend":function(){t.removeClass(n.activeClass)}})}function i(e,t){e.removeClass(t.hoverClass+" "+t.focusClass+" "+t.activeClass)}function r(e,t,n){n?e.addClass(t):e.removeClass(t)}function l(e,t,n){var s="checked",a=t.is(":"+s);t.prop?t.prop(s,a):a?t.attr(s,s):t.removeAttr(s),r(e,n.checkedClass,a)}function u(e,t,n){r(e,n.disabledClass,t.is(":disabled"))}function o(e,t,n){switch(n){case"after":return e.after(t),e.next();case"before":return e.before(t),e.prev();case"wrap":return e.wrap(t),e.parent()}return null}function c(t,s,a){var i,r,l;return a||(a={}),a=e.extend({bind:{},divClass:null,divWrap:"wrap",spanClass:null,spanHtml:null,spanWrap:"wrap"},a),i=e("<div />"),r=e("<span />"),s.autoHide&&t.is(":hidden")&&"none"===t.css("display")&&i.hide(),a.divClass&&i.addClass(a.divClass),s.wrapperClass&&i.addClass(s.wrapperClass),a.spanClass&&r.addClass(a.spanClass),l=n(t,"id"),s.useID&&l&&n(i,"id",s.idPrefix+"-"+l),a.spanHtml&&r.html(a.spanHtml),i=o(t,i,a.divWrap),r=o(t,r,a.spanWrap),u(i,t,s),{div:i,span:r}}function d(t,n){var s;return n.wrapperClass?(s=e("<span />").addClass(n.wrapperClass),s=o(t,s,"wrap")):null}function f(){var t,n,s,a;return a="rgb(120,2,153)",n=e('<div style="width:0;height:0;color:'+a+'">'),e("body").append(n),s=n.get(0),t=window.getComputedStyle?window.getComputedStyle(s,"").color:(s.currentStyle||s.style||{}).color,n.remove(),t.replace(/ /g,"")!==a}function p(t){return t?e("<span />").text(t).html():""}function m(){return navigator.cpuClass&&!navigator.product}function v(){return window.XMLHttpRequest!==void 0?!0:!1}function h(e){var t;return e[0].multiple?!0:(t=n(e,"size"),!t||1>=t?!1:!0)}function C(){return!1}function w(e,t){var n="none";s(e,t,{"selectstart dragstart mousedown":C}),e.css({MozUserSelect:n,msUserSelect:n,webkitUserSelect:n,userSelect:n})}function b(e,t,n){var s=e.val();""===s?s=n.fileDefaultHtml:(s=s.split(/[\/\\]+/),s=s[s.length-1]),t.text(s)}function y(e,t,n){var s,a;for(s=[],e.each(function(){var e;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s.push({el:this,name:e,old:this.style[e]}),this.style[e]=t[e])}),n();s.length;)a=s.pop(),a.el.style[a.name]=a.old}function g(e,t){var n;n=e.parents(),n.push(e[0]),n=n.not(":visible"),y(n,{visibility:"hidden",display:"block",position:"absolute"},t)}function k(e,t){return function(){e.unwrap().unwrap().unbind(t.eventNamespace)}}var H=!0,x=!1,A=[{match:function(e){return e.is("a, button, :submit, :reset, input[type='button']")},apply:function(e,t){var r,l,o,d,f;return l=t.submitDefaultHtml,e.is(":reset")&&(l=t.resetDefaultHtml),d=e.is("a, button")?function(){return e.html()||l}:function(){return p(n(e,"value"))||l},o=c(e,t,{divClass:t.buttonClass,spanHtml:d()}),r=o.div,a(e,r,t),f=!1,s(r,t,{"click touchend":function(){var t,s,a,i;f||e.is(":disabled")||(f=!0,e[0].dispatchEvent?(t=document.createEvent("MouseEvents"),t.initEvent("click",!0,!0),s=e[0].dispatchEvent(t),e.is("a")&&s&&(a=n(e,"target"),i=n(e,"href"),a&&"_self"!==a?window.open(i,a):document.location.href=i)):e.click(),f=!1)}}),w(r,t),{remove:function(){return r.after(e),r.remove(),e.unbind(t.eventNamespace),e},update:function(){i(r,t),u(r,e,t),e.detach(),o.span.html(d()).append(e)}}}},{match:function(e){return e.is(":checkbox")},apply:function(e,t){var n,r,o;return n=c(e,t,{divClass:t.checkboxClass}),r=n.div,o=n.span,a(e,r,t),s(e,t,{"click touchend":function(){l(o,e,t)}}),l(o,e,t),{remove:k(e,t),update:function(){i(r,t),o.removeClass(t.checkedClass),l(o,e,t),u(r,e,t)}}}},{match:function(e){return e.is(":file")},apply:function(t,r){function l(){b(t,p,r)}var d,f,p,v;return d=c(t,r,{divClass:r.fileClass,spanClass:r.fileButtonClass,spanHtml:r.fileButtonHtml,spanWrap:"after"}),f=d.div,v=d.span,p=e("<span />").html(r.fileDefaultHtml),p.addClass(r.filenameClass),p=o(t,p,"after"),n(t,"size")||n(t,"size",f.width()/10),a(t,f,r),l(),m()?s(t,r,{click:function(){t.trigger("change"),setTimeout(l,0)}}):s(t,r,{change:l}),w(p,r),w(v,r),{remove:function(){return p.remove(),v.remove(),t.unwrap().unbind(r.eventNamespace)},update:function(){i(f,r),b(t,p,r),u(f,t,r)}}}},{match:function(e){if(e.is("input")){var t=(" "+n(e,"type")+" ").toLowerCase(),s=" color date datetime datetime-local email month number password search tel text time url week ";return s.indexOf(t)>=0}return!1},apply:function(e,t){var s,i;return s=n(e,"type"),e.addClass(t.inputClass),i=d(e,t),a(e,e,t),t.inputAddTypeAsClass&&e.addClass(s),{remove:function(){e.removeClass(t.inputClass),t.inputAddTypeAsClass&&e.removeClass(s),i&&e.unwrap()},update:C}}},{match:function(e){return e.is(":radio")},apply:function(t,r){var o,d,f;return o=c(t,r,{divClass:r.radioClass}),d=o.div,f=o.span,a(t,d,r),s(t,r,{"click touchend":function(){e.uniform.update(e(':radio[name="'+n(t,"name")+'"]'))}}),l(f,t,r),{remove:k(t,r),update:function(){i(d,r),l(f,t,r),u(d,t,r)}}}},{match:function(e){return e.is("select")&&!h(e)?!0:!1},apply:function(t,n){var r,l,o,d;return n.selectAutoWidth&&g(t,function(){d=t.width()}),r=c(t,n,{divClass:n.selectClass,spanHtml:(t.find(":selected:first")||t.find("option:first")).html(),spanWrap:"before"}),l=r.div,o=r.span,n.selectAutoWidth?g(t,function(){y(e([o[0],l[0]]),{display:"block"},function(){var e;e=o.outerWidth()-o.width(),l.width(d+e),o.width(d)})}
215):l.addClass("fixedWidth"),a(t,l,n),s(t,n,{change:function(){o.html(t.find(":selected").html()),l.removeClass(n.activeClass)},"click touchend":function(){var e=t.find(":selected").html();o.html()!==e&&t.trigger("change")},keyup:function(){o.html(t.find(":selected").html())}}),w(o,n),{remove:function(){return o.remove(),t.unwrap().unbind(n.eventNamespace),t},update:function(){n.selectAutoWidth?(e.uniform.restore(t),t.uniform(n)):(i(l,n),o.html(t.find(":selected").html()),u(l,t,n))}}}},{match:function(e){return e.is("select")&&h(e)?!0:!1},apply:function(e,t){var n;return e.addClass(t.selectMultiClass),n=d(e,t),a(e,e,t),{remove:function(){e.removeClass(t.selectMultiClass),n&&e.unwrap()},update:C}}},{match:function(e){return e.is("textarea")},apply:function(e,t){var n;return e.addClass(t.textareaClass),n=d(e,t),a(e,e,t),{remove:function(){e.removeClass(t.textareaClass),n&&e.unwrap()},update:C}}}];m()&&!v()&&(H=!1),e.uniform={defaults:{activeClass:"active",autoHide:!0,buttonClass:"button",checkboxClass:"checker",checkedClass:"checked",disabledClass:"disabled",eventNamespace:".uniform",fileButtonClass:"action",fileButtonHtml:"Choose File",fileClass:"uploader",fileDefaultHtml:"No file selected",filenameClass:"filename",focusClass:"focus",hoverClass:"hover",idPrefix:"uniform",inputAddTypeAsClass:!0,inputClass:"uniform-input",radioClass:"radio",resetDefaultHtml:"Reset",resetSelector:!1,selectAutoWidth:!0,selectClass:"selector",selectMultiClass:"uniform-multiselect",submitDefaultHtml:"Submit",textareaClass:"uniform",useID:!0,wrapperClass:null},elements:[]},e.fn.uniform=function(t){var n=this;return t=e.extend({},e.uniform.defaults,t),x||(x=!0,f()&&(H=!1)),H?(t.resetSelector&&e(t.resetSelector).mouseup(function(){window.setTimeout(function(){e.uniform.update(n)},10)}),this.each(function(){var n,s,a,i=e(this);if(i.data("uniformed"))return e.uniform.update(i),void 0;for(n=0;A.length>n;n+=1)if(s=A[n],s.match(i,t))return a=s.apply(i,t),i.data("uniformed",a),e.uniform.elements.push(i.get(0)),void 0})):this},e.uniform.restore=e.fn.uniform.restore=function(n){n===t&&(n=e.uniform.elements),e(n).each(function(){var t,n,s=e(this);n=s.data("uniformed"),n&&(n.remove(),t=e.inArray(this,e.uniform.elements),t>=0&&e.uniform.elements.splice(t,1),s.removeData("uniformed"))})},e.uniform.update=e.fn.uniform.update=function(n){n===t&&(n=e.uniform.elements),e(n).each(function(){var t,n=e(this);t=n.data("uniformed"),t&&t.update(n,t.options)})}})(jQuery); 216/* End */ 217; 218; /* Start:"a:4:{s:4:"full";s:75:"/bitrix/templates/aspro_max/vendor/js/sticky-sidebar.min.js?165865915311755";s:6:"source";s:55:"/bitrix/templates/aspro_max/vendor/js/sticky-sidebar.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 219!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.StickySidebar={})}(this,function(t){"use strict";"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var e,i,n=(function(t,e){(function(t){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var c,s,e=(s={topSpacing:0,bottomSpacing:0,containerSelector:!(c=".stickySidebar"),innerWrapperSelector:".inner-wrapper-sticky",stickyClass:"is-affixed",resizeSensor:!0,minWidth:!1},function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}(l,[{key:"initialize",value:function(){var i=this;if(this._setSupportFeatures(),this.options.innerWrapperSelector&&(this.sidebarInner=this.sidebar.querySelector(this.options.innerWrapperSelector),null===this.sidebarInner&&(this.sidebarInner=!1)),!this.sidebarInner){var t=document.createElement("div");for(t.setAttribute("class","inner-wrapper-sticky"),this.sidebar.appendChild(t);this.sidebar.firstChild!=t;)t.appendChild(this.sidebar.firstChild);this.sidebarInner=this.sidebar.querySelector(".inner-wrapper-sticky")}if(this.options.containerSelector){var e=document.querySelectorAll(this.options.containerSelector);
219if((e=Array.prototype.slice.call(e)).forEach(function(t,e){t.contains(i.sidebar)&&(i.container=t)}),!e.length)throw new Error("The container does not contains on the sidebar.")}"function"!=typeof this.options.topSpacing&&(this.options.topSpacing=parseInt(this.options.topSpacing)||0),"function"!=typeof this.options.bottomSpacing&&(this.options.bottomSpacing=parseInt(this.options.bottomSpacing)||0),this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(),this.bindEvents(),this._initialized=!0}},{key:"bindEvents",value:function(){window.addEventListener("resize",this,{passive:!0,capture:!1}),window.addEventListener("scroll",this,{passive:!0,capture:!1}),this.sidebar.addEventListener("update"+c,this),this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(new ResizeSensor(this.sidebarInner,this.handleEvent),new ResizeSensor(this.container,this.handleEvent))}},{key:"handleEvent",value:function(t){this.updateSticky(t)}},{key:"calcDimensions",value:function(){if(!this._breakpoint){var t=this.dimensions;t.containerTop=l.offsetRelative(this.container).top,t.containerHeight=this.container.clientHeight,t.containerBottom=t.containerTop+t.containerHeight,t.sidebarHeight=this.sidebarInner.offsetHeight,t.sidebarWidth=this.sidebarInner.offsetWidth,t.viewportHeight=window.innerHeight,t.maxTranslateY=t.containerHeight-t.sidebarHeight,this._calcDimensionsWithScroll()}}},{key:"_calcDimensionsWithScroll",value:function(){var t=this.dimensions;t.sidebarLeft=l.offsetRelative(this.sidebar).left,t.viewportTop=document.documentElement.scrollTop||document.body.scrollTop,t.viewportBottom=t.viewportTop+t.viewportHeight,t.viewportLeft=document.documentElement.scrollLeft||document.body.scrollLeft,t.topSpacing=this.options.topSpacing,t.bottomSpacing=this.options.bottomSpacing,"function"==typeof t.topSpacing&&(t.topSpacing=parseInt(t.topSpacing(this.sidebar))||0),"function"==typeof t.bottomSpacing&&(t.bottomSpacing=parseInt(t.bottomSpacing(this.sidebar))||0),"VIEWPORT-TOP"===this.affixedType?t.topSpacing<t.lastTopSpacing&&(t.translateY+=t.lastTopSpacing-t.topSpacing,this._reStyle=!0):"VIEWPORT-BOTTOM"===this.affixedType&&t.bottomSpacing<t.lastBottomSpacing&&(t.translateY+=t.lastBottomSpacing-t.bottomSpacing,this._reStyle=!0),t.lastTopSpacing=t.topSpacing,t.lastBottomSpacing=t.bottomSpacing}},{key:"isSidebarFitsViewport",value:function(){var t=this.dimensions,e="down"===this.scrollDirection?t.lastBottomSpacing:t.lastTopSpacing;return this.dimensions.sidebarHeight+e<this.dimensions.viewportHeight}},{key:"observeScrollDir",value:function(){var t=this.dimensions;if(t.lastViewportTop!==t.viewportTop){var e="down"===this.direction?Math.min:Math.max;t.viewportTop===e(t.viewportTop,t.lastViewportTop)&&(this.direction="down"===this.direction?"up":"down")}}},{key:"getAffixType",value:function(){this._calcDimensionsWithScroll();var t=this.dimensions,e=t.viewportTop+t.topSpacing,i=this.affixedType;return i=e<=t.containerTop||t.containerHeight<t.sidebarHeight?(t.translateY=0,"STATIC"):"up"===this.direction?this._getAffixTypeScrollingUp():this._getAffixTypeScrollingDown(),t.translateY=Math.max(0,t.translateY),t.translateY=Math.min(t.containerHeight,t.translateY),t.translateY=Math.round(t.translateY),t.lastViewportTop=t.viewportTop,i}},{key:"_getAffixTypeScrollingDown",value:function(){this.dimensions.containerHeight!=this.container.clientHeight&&this.calcDimensions();var t=this.dimensions,e=t.sidebarHeight+t.containerTop,i=t.viewportTop+t.topSpacing,n=t.viewportBottom-t.bottomSpacing,s=this.affixedType;return this.isSidebarFitsViewport()?t.sidebarHeight+i>=t.containerBottom?(t.translateY=t.containerBottom-e,s="CONTAINER-BOTTOM"):i>=t.containerTop&&(t.translateY=i-t.containerTop,s="VIEWPORT-TOP"):t.containerBottom<=n?(t.translateY=t.containerBottom-e,s="CONTAINER-BOTTOM"):e+t.translateY<=n?(t.translateY=n-e,s="VIEWPORT-BOTTOM"):t.containerTop+t.translateY<=i&&0!==t.translateY&&t.maxTranslateY!==t.translateY&&(s="VIEWPORT-UNBOTTOM"),s}},{key:"_getAffixTypeScrollingUp",value:function(){var t=this.dimensions,e=t.sidebarHeight+t.containerTop,i=t.viewportTop+t.topSpacing,n=t.viewportBottom-t.bottomSpacing,s=this.affixedType;return i<=t.translateY+t.containerTop?(t.translateY=i-t.containerTop,s="VIEWPORT-TOP"):t.containerBottom<=n?(t.translateY=t.containerBottom-e,s="CONTAINER-BOTTOM"):this.isSidebarFitsViewport()||t.containerTop<=i&&0!==t.translateY&&t.maxTranslateY
219!==t.translateY&&(s="VIEWPORT-UNBOTTOM"),s}},{key:"_getStyle",value:function(t){if(void 0!==t){var e={inner:{},outer:{}},i=this.dimensions;switch(t){case"VIEWPORT-TOP":e.inner={position:"fixed",top:i.topSpacing,left:i.sidebarLeft-i.viewportLeft,width:i.sidebarWidth};break;case"VIEWPORT-BOTTOM":e.inner={position:"fixed",top:"auto",left:i.sidebarLeft,bottom:i.bottomSpacing,width:i.sidebarWidth};break;case"CONTAINER-BOTTOM":case"VIEWPORT-UNBOTTOM":var n=this._getTranslate(0,i.translateY+"px");e.inner=n?{transform:n}:{position:"absolute",top:i.translateY,width:i.sidebarWidth}}switch(t){case"VIEWPORT-TOP":case"VIEWPORT-BOTTOM":case"VIEWPORT-UNBOTTOM":case"CONTAINER-BOTTOM":e.outer={height:i.sidebarHeight,position:"relative"}}return e.outer=l.extend({height:"",position:""},e.outer),e.inner=l.extend({position:"relative",top:"",left:"",bottom:"",width:"",transform:""},e.inner),e}}},{key:"stickyPosition",value:function(t){if(!this._breakpoint){t=this._reStyle||t||!1,this.options.topSpacing,this.options.bottomSpacing,this.sidebarInner.offsetHeight>this.dimensions.sidebarHeight&&(this.dimensions.sidebarHeight=this.sidebarInner.offsetHeight);var e=this.getAffixType(),i=this._getStyle(e);if((this.affixedType!=e||t)&&e){var n="affix."+e.toLowerCase().replace("viewport-","")+c;for(var s in l.eventTrigger(this.sidebar,n),"STATIC"===e?l.removeClass(this.sidebar,this.options.stickyClass):l.addClass(this.sidebar,this.options.stickyClass),i.outer){var o="number"==typeof i.outer[s]?"px":"";this.sidebar.style[s]=i.outer[s]+o}for(var r in i.inner){var a="number"==typeof i.inner[r]?"px":"";this.sidebarInner.style[r]=i.inner[r]+a}var p="affixed."+e.toLowerCase().replace("viewport-","")+c;l.eventTrigger(this.sidebar,p)}else this._initialized&&(this.sidebarInner.style.left=i.inner.left);this.affixedType=e}}},{key:"_widthBreakpoint",value:function(){window.innerWidth<=this.options.minWidth?(this._breakpoint=!0,this.affixedType="STATIC",this.sidebar.removeAttribute("style"),l.removeClass(this.sidebar,this.options.stickyClass),this.sidebarInner.removeAttribute("style")):this._breakpoint=!1}},{key:"updateSticky",value:function(t){var e,i=this,n=0<arguments.length&&void 0!==t?t:{};this._running||(this._running=!0,e=n.type,requestAnimationFrame(function(){switch(e){case"scroll":i._calcDimensionsWithScroll(),i.observeScrollDir(),i.stickyPosition();break;case"resize":default:i._widthBreakpoint(),i.calcDimensions(),i.stickyPosition(!0)}i._running=!1}))}},{key:"_setSupportFeatures",value:function(){var t=this.support;t.transform=l.supportTransform(),t.transform3d=l.supportTransform(!0)}},{key:"_getTranslate",value:function(t,e,i){var n=0<arguments.length&&void 0!==t?t:0,s=1<arguments.length&&void 0!==e?e:0,o=2<arguments.length&&void 0!==i?i:0;return this.support.transform3d?"translate3d("+n+", "+s+", "+o+")":!!this.support.translate&&"translate("+n+", "+s+")"}},{key:"destroy",value:function(){window.removeEventListener("resize",this,{capture:!1}),window.removeEventListener("scroll",this,{capture:!1}),this.sidebar.classList.remove(this.options.stickyClass),this.sidebar.style.minHeight="",this.sidebar.removeEventListener("update"+c,this);var t={inner:{},outer:{}};for(var e in t.inner={position:"",top:"",left:"",bottom:"",width:"",transform:""},t.outer={height:"",position:""},t.outer)this.sidebar.style[e]=t.outer[e];for(var i in t.inner)this.sidebarInner.style[i]=t.inner[i];this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(ResizeSensor.detach(this.sidebarInner,this.handleEvent),ResizeSensor.detach(this.container,this.handleEvent))}}],[{key:"supportTransform",value:function(t){var i=!1,e=t?"perspective":"transform",n=e.charAt(0).toUpperCase()+e.slice(1),s=document.createElement("support").style;return(e+" "+["Webkit","Moz","O","ms"].join(n+" ")+n).split(" ").forEach(function(t,e){if(void 0!==s[t])return i=t,!1}),i}},{key:"eventTrigger",value:function(t,e,i){try{var n=new CustomEvent(e,{detail:i})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i)}t.dispatchEvent(n)}},{key:"extend",value:function(t,e){var i={};for(var n in t)void 0!==e[n]?i[n]=e[n]:i[n]=t[n];return i}},{key:"offsetRelative",value:function(t){var e={left:0,top:0};do{var i=t.offsetTop,n=t.offsetLeft;isNaN(i)||(e.top+=i),isNaN(n)||(e.left+=n),t="BODY"===t.tagName?t.parentElement:t.offsetParent}while(t);return e}},{key:"addClass",value:function(t,e){l.hasClass(t,e)||(t.classList?t.classList.add(e):t.className+=" "+e)}},{key:"removeClass",value:function(t,e){l.hasClass(t,e)&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}},{key:"defaults",get:function(){return s}}]),l);function l(t){var e=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),this.options=l.extend(s,i),this.sidebar="string"==typeof t?document.querySelector(t):t,void 0===this.sidebar)throw new Error("There is no specific sidebar element.");this.sidebarInner=!1,this.container=this.sidebar.parentElement,this.affixedType="STATIC",this.direction="down",this.support={transform:!1,transform3d:!1},this._initialized=!1,this._reStyle=!1,this._breakpoint=!1,this.dimensions={translateY:0,maxTranslateY:0,topSpacing:0,lastTopSpacing:0,bottomSpacing:0,lastBottomSpacing:0,sidebarHeight:0,sidebarWidth:0,containerTop:0,containerHeight:0,viewportHe
219ight:0,viewportTop:0,lastViewportTop:0},["handleEvent"].forEach(function(t){e[t]=e[t].bind(e)}),this.initialize()}t.default=e,window.StickySidebar=e})(e)}(e={exports:{}},e.exports),e.exports),s=(i=n)&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i;t.default=s,t.__moduleExports=n,Object.defineProperty(t,"__esModule",{value:!0})}); 220/* End */ 221; 222; /* Start:"a:4:{s:4:"full";s:69:"/bitrix/templates/aspro_max/js/jquery.validate.min.js?165865915322257";s:6:"source";s:53:"/bitrix/templates/aspro_max/js/jquery.validate.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 223/*! jQuery Validation Plugin - v1.13.1 - 10/14/2014 224 * http://jqueryvalidation.org/ 225 * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 226!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.validateDelegate(":submit","click",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(b.target).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(b.target).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.submit(function(b){function d(){var d,e;return c.settings.submitHandler?(c.submitButton&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e?e:!1):!0}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c;return a(this[0]).is("form")?b=this.validate().form():(b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b})),b},removeAttrs:function(b){var c={},d=this;return a.each(b.split(/\s/),function(a,b){c[b]=d.attr(b),d.removeAttr(b)}),c},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){return!!a.trim(""+a(b).val())},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element
226(a)},onkeyup:function(a,b){(9!==b.which||""!==this.elementValue(a))&&(a.name in this.submitted||a===this.lastElement)&&this.element(a)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c=a.data(this[0].form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!this.is(e.ignore)&&e[d].call(c,this[0],b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",b).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",b),this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c=this.clean(b),d=this.validationTargetFor(c),e=!0;return this.lastElement=d,void 0===d?delete this.invalid[c.name]:(this.prepareElement(d),this.currentElements=a(d),e=this.check(d)!==!1,e?delete this.invalid[d.name]:this.invalid[d.name]=!0),a(b).attr("aria-invalid",!e),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e},showErrors:function(b){if(b){a.extend(this.errorMap,b),this.errorList=[];for(var c in b)this.errorList.push({message:b[c],element:this.findByName(c)[0]});this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)c++;return c},hideErrors:function(){this.hideThese(this.toHide)}
226,hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled], [readonly]").not(this.settings.ignore).filter(function(){return!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in c||!b.objectLength(a(this).rules())?!1:(c[this.name]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([]),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d=a(b),e=b.type;return"radio"===e||"checkbox"===e?a("input[name='"+b.name+"']:checked").val():"number"===e&&"undefined"!=typeof b.validity?b.validity.badInput?!1:d.val():(c=d.val(),"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(j){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",j),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a];return void 0},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customDataMessage(b,c),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(b,c){var d=this.defaultMessage(b,c.method),e=/\$?\{(\d+)\}/g;"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),this.errorList.push({message:d,element:b,method:c.method}),this.errorMap[b.name]=d,this.submitted[b.name]=d},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g=this.errorsFor(b),h=this.idOrName(b),i=a(b).attr("aria-describedby");
226g.length?(g.removeClass(this.settings.validClass).addClass(this.settings.errorClass),g.html(c)):(g=a("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(c||""),d=g,this.settings.wrapper&&(d=g.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b),g.is("label")?g.attr("for",h):0===g.parents("label[for='"+h+"']").length&&(f=g.attr("id").replace(/(:|\.|\[|\])/g,"\\$1"),i?i.match(new RegExp("\\b"+f+"\\b"))||(i+=" "+f):i=f,a(b).attr("aria-describedby",i),e=this.groups[b.name],e&&a.each(this.groups,function(b,c){c===e&&a("[name='"+b+"']",this.currentForm).attr("aria-describedby",g.attr("id"))}))),!c&&this.settings.success&&(g.text(""),"string"==typeof this.settings.success?g.addClass(this.settings.success):this.settings.success(g,b)),this.toShow=this.toShow.add(g)},errorsFor:function(b){var c=this.idOrName(b),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+d.replace(/\s+/g,", #")),this.errors().filter(e)},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+b+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);
226return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,this.pending[a.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),/min|max/.test(c)&&(null===g||/number|range|text/.test(g))&&(d=Number(d)),d||0===d?e[c]=d:g===c&&"range"!==g&&(e[c]=!0);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b);for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),void 0!==d&&(e[c]=d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0!==e.param?e.param:!0:delete b[d]}}),a.each(b,function(d,e){b[d]=a.isFunction(e)?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:a.trim(b).length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},date:function(a,b){/*return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())*/ /*customized!!!*/ var check = false,re=new RegExp((typeof(VALIDATE_DATE_MASK)!=='undefined'?VALIDATE_DATE_MASK:'^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{4}$')),adata,gg,mm,aaaa,xdata;if(re.test(a)){adata=a.split('.');if(adata.length===1){adata=a.split('-');if(adata.length===1){adata=a.split(' ');
226if(adata.length===1){adata=a.split('/');if(adata.length===1){adata=a.split(':');}}}}gg=parseInt(adata[0],10);mm=parseInt(adata[1],10);aaaa=parseInt(adata[2],10);xdata=new Date(aaaa,mm-1,gg,12,0,0,0);if((xdata.getUTCFullYear()===aaaa)&&(xdata.getUTCMonth()===mm-1)&&(xdata.getUTCDate()===gg)){check = true;}else{check = false;}}else{check = false;}return this.optional(b)||check;},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 \-]+/.test(a))return!1;var c,d,e=0,f=0,g=!1;if(a=a.replace(/\D/g,""),a.length<13||a.length>19)return!1;for(c=a.length-1;c>=0;c--)d=a.charAt(c),f=parseInt(d,10),g&&(f*=2)>9&&(f-=9),e+=f,g=!g;return e%10===0},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||d>=e},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||c>=a},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d){if(this.optional(c))return"dependency-mismatch";var e,f,g=this.previousValue(c);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),g.originalMessage=this.settings.messages[c.name].remote,this.settings.messages[c.name].remote=g.message,d="string"==typeof d&&{url:d}||d,g.old===b?g.valid:(g.old=b,e=this,this.startRequest(c),f={},f[c.name]=b,a.ajax(a.extend(!0,{url:d,mode:"abort",port:"validate"+c.name,dataType:"json",data:f,context:e.currentForm,success:function(d){var f,h,i,j=d===!0||"true"===d;e.settings.messages[c.name].remote=g.originalMessage,j?(i=e.formSubmitted,e.prepareElement(c),e.formSubmitted=i,e.successList.push(c),delete e.invalid[c.name],e.showErrors()):(f={},h=d||e.defaultMessage(c,"remote"),f[c.name]=g.message=a.isFunction(h)?h(b):h,e.invalid[c.name]=!0,e.showErrors(f)),g.valid=j,e.stopRequest(c,j)}},d)),"pending")}}}),a.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."};var b,c={};a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)}),a.extend(a.fn,{validateDelegate:function(b,c,d){return this.bind(c,function(c){var e=a(c.target);return e.is(b)?d.apply(e,arguments):void 0})}})}); 227/* End */ 228; 229; /* Start:"a:4:{s:4:"full";s:78:"/bitrix/templates/aspro_max/js/jquery.inputmask.bundle.min.js?1658659153118400";s:6:"source";
229s:61:"/bitrix/templates/aspro_max/js/jquery.inputmask.bundle.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 230/*! 231* jquery.inputmask.bundle.js 232* https://github.com/RobinHerbots/Inputmask 233* Copyright (c) 2010 - 2019 Robin Herbots 234* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 235* Version: 4.0.9 236*/ 237 238(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{enumerable:true,get:getter})}};__webpack_require__.r=function(exports){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(exports,"__esModule",{value:true})};__webpack_require__.t=function(value,mode){if(mode&1)value=__webpack_require__(value);if(mode&8)return value;if(mode&4&&typeof value==="object"&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:true,value:value});if(mode&2&&typeof value!="string")for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=0)})([function(module,exports,__webpack_require__){"use strict";__webpack_require__(1);__webpack_require__(6);__webpack_require__(7);var _inputmask=__webpack_require__(2);var _inputmask2=_interopRequireDefault(_inputmask);var _inputmask3=__webpack_require__(3);var _inputmask4=_interopRequireDefault(_inputmask3);var _jquery=__webpack_require__(4);var _jquery2=_interopRequireDefault(_jquery);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}if(_inputmask4.default===_jquery2.default){__webpack_require__(8)}window.Inputmask=_inputmask2.default},function(module,exports,__webpack_require__){"use strict";var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};(function(factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(2)],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__==="function"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})(function(Inputmask){Inputmask.extendDefinitions({A:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"&":{validator:"[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});Inputmask.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)//.*",autoUnmask:false},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function validator(chrs,maskset,pos,strict,opts){if(pos-1>-1&&maskset.buffer[pos-1]!=="."){chrs=maskset.buffer[pos-1]+chrs;if(pos-2>-1&&maskset.buffer[pos-2]!=="."){chrs=maskset.buffer[pos-2]+chrs}else chrs="0"+chrs}else chrs="00"+chrs;return new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(chrs)}}},onUnMask:function onUnMask(maskedValue,unmaskedValue,opts){return maskedValue},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:false,casing:"lower",onBeforePaste:function onBeforePaste(pastedValue,opts){pastedValue=pastedValue.toLowerCase();return pastedValue.replace("mailto:","")},definitions:{"*":{validator:"[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function onUnMask(maskedValue,unmaskedValue,opts){return maskedValue},inputmode:"email"}
238,mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:true,autoUnmask:true}});return Inputmask})},function(module,exports,__webpack_require__){"use strict";var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};(function(factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(3),__webpack_require__(5)],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__==="function"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})(function($,window,undefined){var document=window.document,ua=navigator.userAgent,ie=ua.indexOf("MSIE ")>0||ua.indexOf("Trident/")>0,mobile=isInputEventSupported("touchstart"),iemobile=/iemobile/i.test(ua),iphone=/iphone/i.test(ua)&&!iemobile;function Inputmask(alias,options,internal){if(!(this instanceof Inputmask)){return new Inputmask(alias,options,internal)}this.el=undefined;this.events={};this.maskset=undefined;this.refreshValue=false;if(internal!==true){if($.isPlainObject(alias)){options=alias}else{options=options||{};if(alias)options.alias=alias}this.opts=$.extend(true,{},this.defaults,options);this.noMasksCache=options&&options.definitions!==undefined;this.userOptions=options||{};this.isRTL=this.opts.numericInput;resolveAlias(this.opts.alias,options,this.opts)}}Inputmask.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:$.noop,onincomplete:$.noop,oncleared:$.noop,repeat:0,greedy:false,autoUnmask:false,removeMaskOnSubmit:false,clearMaskOnLostFocus:true,insertMode:true,clearIncomplete:false,alias:null,onKeyDown:$.noop,onBeforeMask:null,onBeforePaste:function onBeforePaste(pastedValue,opts){return $.isFunction(opts.onBeforeMask)?opts.onBeforeMask.call(this,pastedValue,opts):pastedValue},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:true,showMaskOnHover:true,onKeyValidation:$.noop,skipOptionalPartCharacter:" ",numericInput:false,rightAlign:false,undoOnEscape:true,radixPoint:"",_radixDance:false,groupSeparator:"",keepStatic:null,positionCaretOnTab:true,tabThrough:false,supportsInputType:["text","tel","url","password","search"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:undefined,jitMasking:false,nullable:true,inputEventOnly:false,noValuePatching:false,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:false,disablePredictiveText:false,importDataAttributes:true,shiftPositions:true},definitions:{9:{validator:"[0-9\uff11-\uff19]",definitionSymbol:"*"},a:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",definitionSymbol:"*"},"*":{validator:"[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"}},aliases:{},masksCache:{},mask:function mask(elems){var that=this;function importAttributeOptions(npt,opts,userOptions,dataAttribute){if(opts.importDataAttributes===true){var attrOptions=npt.getAttribute(dataAttribute),option,dataoptions,optionData,p;var importOption=function importOption(option,optionData){optionData=optionData!==un
238defined?optionData:npt.getAttribute(dataAttribute+"-"+option);if(optionData!==null){if(typeof optionData==="string"){if(option.indexOf("on")===0)optionData=window[optionData];else if(optionData==="false")optionData=false;else if(optionData==="true")optionData=true}userOptions[option]=optionData}};if(attrOptions&&attrOptions!==""){attrOptions=attrOptions.replace(/'/g,'"');dataoptions=JSON.parse("{"+attrOptions+"}")}if(dataoptions){optionData=undefined;for(p in dataoptions){if(p.toLowerCase()==="alias"){optionData=dataoptions[p];break}}}importOption("alias",optionData);if(userOptions.alias){resolveAlias(userOptions.alias,userOptions,opts)}for(option in opts){if(dataoptions){optionData=undefined;for(p in dataoptions){if(p.toLowerCase()===option.toLowerCase()){optionData=dataoptions[p];break}}}importOption(option,optionData)}}$.extend(true,opts,userOptions);if(npt.dir==="rtl"||opts.rightAlign){npt.style.textAlign="right"}if(npt.dir==="rtl"||opts.numericInput){npt.dir="ltr";npt.removeAttribute("dir");opts.isRTL=true}return Object.keys(userOptions).length}if(typeof elems==="string"){elems=document.getElementById(elems)||document.querySelectorAll(elems)}elems=elems.nodeName?[elems]:elems;$.each(elems,function(ndx,el){var scopedOpts=$.extend(true,{},that.opts);if(importAttributeOptions(el,scopedOpts,$.extend(true,{},that.userOptions),that.dataAttribute)){var maskset=generateMaskSet(scopedOpts,that.noMasksCache);if(maskset!==undefined){if(el.inputmask!==undefined){el.inputmask.opts.autoUnmask=true;el.inputmask.remove()}el.inputmask=new Inputmask(undefined,undefined,true);el.inputmask.opts=scopedOpts;el.inputmask.noMasksCache=that.noMasksCache;el.inputmask.userOptions=$.extend(true,{},that.userOptions);el.inputmask.isRTL=scopedOpts.isRTL||scopedOpts.numericInput;el.inputmask.el=el;el.inputmask.maskset=maskset;$.data(el,"_inputmask_opts",scopedOpts);maskScope.call(el.inputmask,{action:"mask"})}}});return elems&&elems[0]?elems[0].inputmask||this:this},option:function option(options,noremask){if(typeof options==="string"){return this.opts[options]}else if((typeof options==="undefined"?"undefined":_typeof(options))==="object"){$.extend(this.userOptions,options);if(this.el&&noremask!==true){this.mask(this.el)}return this}},unmaskedvalue:function unmaskedvalue(value){this.maskset=this.maskset||generateMaskSet(this.opts,this.noMasksCache);return maskScope.call(this,{action:"unmaskedvalue",value:value})},remove:function remove(){return maskScope.call(this,{action:"remove"})},getemptymask:function getemptymask(){this.maskset=this.maskset||generateMaskSet(this.opts,this.noMasksCache);return maskScope.call(this,{action:"getemptymask"})},hasMaskedValue:function hasMaskedValue(){return!this.opts.autoUnmask},isComplete:function isComplete(){this.maskset=this.maskset||generateMaskSet(this.opts,this.noMasksCache);return maskScope.call(this,{action:"isComplete"})},getmetadata:function getmetadata(){this.maskset=this.maskset||generateMaskSet(this.opts,this.noMasksCache);return maskScope.call(this,{action:"getmetadata"})},isValid:function isValid(value){this.maskset=this.maskset||generateMaskSet(this.opts,this.noMasksCache);return maskScope.call(this,{action:"isValid",value:value})},format:function format(value,metadata){this.maskset=this.maskset||generateMaskSet(this.opts,this.noMasksCache);return maskScope.call(this,{action:"format",value:value,metadata:metadata})},setValue:function setValue(value){if(this.el){$(this.el).trigger("setvalue",[value])}},analyseMask:function analyseMask(mask,regexMask,opts){var tokenizer=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,regexTokenizer=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,escaped=false,currentToken=new MaskToken,match,m,openenings=[],maskTokens=[],openingToken,currentOpeningToken,alternator,lastMatch,groupToken;function MaskToken(isGroup,isOptional,isQuantifier,isAlternator){this.matches=[];this.openGroup=isGroup||false;this.alternatorGroup=false;this.isGroup=isGroup||false;this.isOptional=isOptional||false;this.isQuantifier=isQuantifier||false;this.isAlternator=isAlternator||false;this.quantifier={min:1,max:1}}function insertTestDefinition(mtoken,element,position){position=position!==un
238defined?position:mtoken.matches.length;var prevMatch=mtoken.matches[position-1];if(regexMask){if(element.indexOf("[")===0||escaped&&/\\d|\\s|\\w]/i.test(element)||element==="."){mtoken.matches.splice(position++,0,{fn:new RegExp(element,opts.casing?"i":""),optionality:false,newBlockMarker:prevMatch===undefined?"master":prevMatch.def!==element,casing:null,def:element,placeholder:undefined,nativeDef:element})}else{if(escaped)element=element[element.length-1];$.each(element.split(""),function(ndx,lmnt){prevMatch=mtoken.matches[position-1];mtoken.matches.splice(position++,0,{fn:null,optionality:false,newBlockMarker:prevMatch===undefined?"master":prevMatch.def!==lmnt&&prevMatch.fn!==null,casing:null,def:opts.staticDefinitionSymbol||lmnt,placeholder:opts.staticDefinitionSymbol!==undefined?lmnt:undefined,nativeDef:(escaped?"'":"")+lmnt})})}escaped=false}else{var maskdef=(opts.definitions?opts.definitions[element]:undefined)||Inputmask.prototype.definitions[element];if(maskdef&&!escaped){mtoken.matches.splice(position++,0,{fn:maskdef.validator?typeof maskdef.validator=="string"?new RegExp(maskdef.validator,opts.casing?"i":""):new function(){this.test=maskdef.validator}:new RegExp("."),optionality:false,newBlockMarker:prevMatch===undefined?"master":prevMatch.def!==(maskdef.definitionSymbol||element),casing:maskdef.casing,def:maskdef.definitionSymbol||element,placeholder:maskdef.placeholder,nativeDef:element})}else{mtoken.matches.splice(position++,0,{fn:null,optionality:false,newBlockMarker:prevMatch===undefined?"master":prevMatch.def!==element&&prevMatch.fn!==null,casing:null,def:opts.staticDefinitionSymbol||element,placeholder:opts.staticDefinitionSymbol!==undefined?element:undefined,nativeDef:(escaped?"'":"")+element});escaped=false}}}function verifyGroupMarker(maskToken){if(maskToken&&maskToken.matches){$.each(maskToken.matches,function(ndx,token){var nextToken=maskToken.matches[ndx+1];if((nextToken===undefined||nextToken.matches===undefined||nextToken.isQuantifier===false)&&token&&token.isGroup){token.isGroup=false;if(!regexMask){insertTestDefinition(token,opts.groupmarker[0],0);if(token.openGroup!==true){insertTestDefinition(token,opts.groupmarker[1])}}}verifyGroupMarker(token)})}}function defaultCase(){if(openenings.length>0){currentOpeningToken=openenings[openenings.length-1];insertTestDefinition(currentOpeningToken,m);if(currentOpeningToken.isAlternator){alternator=openenings.pop();for(var mndx=0;mndx<alternator.matches.length;mndx++){if(alternator.matches[mndx].isGroup)alternator.matches[mndx].isGroup=false}if(openenings.length>0){currentOpeningToken=openenings[openenings.length-1];currentOpeningToken.matches.push(alternator)}else{currentToken.matches.push(alternator)}}}else{insertTestDefinition(currentToken,m)}}function reverseTokens(maskToken){function reverseStatic(st){if(st===opts.optionalmarker[0])st=opts.optionalmarker[1];else if(st===opts.optionalmarker[1])st=opts.optionalmarker[0];else if(st===opts.groupmarker[0])st=opts.groupmarker[1];else if(st===opts.groupmarker[1])st=opts.groupmarker[0];return st}maskToken.matches=maskToken.matches.reverse();for(var match in maskToken.matches){if(maskToken.matches.hasOwnProperty(match)){var intMatch=parseInt(match);if(maskToken.matches[match].isQuantifier&&maskToken.matches[intMatch+1]&&maskToken.matches[intMatch+1].isGroup){var qt=maskToken.matches[match];maskToken.matches.splice(match,1);maskToken.matches.splice(intMatch+1,0,qt)}if(maskToken.matches[match].matches!==undefined){maskToken.matches[match]=reverseTokens(maskToken.matches[match])}else{maskToken.matches[match]=reverseStatic(maskToken.matches[match])}}}return maskToken}function groupify(matches){var groupToken=new MaskToken(true);groupToken.openGroup=false;groupToken.matches=matches;return groupToken}if(regexMask){opts.optionalmarker[0]=undefined;opts.optionalmarker[1]=undefined}while(match=regexMask?regexTokenizer.exec(mask):tokenizer.exec(mask)){m=match[0];if(regexMask){switch(m.charAt(0)){case"?":m="{0,1}";break;case"+":case"*":m="{"+m+"}";break}}if(escaped){defaultCase();continue}switch(m.charAt(0)){case"(?=":break;case"(?!":break;case"(?<=":break;case"(?<!":break;case opts.escapeChar:escaped=true;if(regexMask){defaultCase()}break;case opts.optionalmarker[1]:case opts.groupmarker[1]:openingToken=openenings.pop();openingToken.openGroup=false;if(openingToken!==undefined){if(openenings.length>0){currentOpeningToken=openenings[openenings.length-1];currentOpeningToken.matches.push(openingToken);if(currentOpeningToken.isAlternator){alternator=openenings.pop();for(var mndx=0;mndx<alternator.matches.length;mndx++){alternator.matches[mndx].isGroup=false;alternator.matches[mndx].alternatorGroup=false}if(openenings.length>0){currentOpeningToken=openenings[openenings.length-1];currentOpeningToken.matches.push(alternator)}else{currentToken.matches.push(alternator)}}}else{currentToken.matches.push(openingToken)}}else defaultCase();break;case opts.optionalmarker[0]:openenings.push(new MaskToken(false,true));break;case opts.groupmarker[0]:openenings.push(new MaskToken(true));break;case opts.quantifiermarker[0]:var quantifier=new MaskToken(false,false,true);m=m.replace(/[{}]/g,"");var mqj=m.split("|"),mq=mqj[0].split(","),mq0=isNaN(mq[0])?mq[0]:parseInt(mq[0]),mq1=mq.length===1?mq0:isNaN(mq[1])?mq[1]:parseInt(mq[1]);if(mq0==="*"||mq0==="+"){mq0=mq1==="*"?0:1}quantifier.quantifier={min:mq0,max:mq1,jit:mqj[1]};var matches=openenings.length>0?openenings[openenings.length-1].matches:currentToken.matches;match=matches.pop();if(match.isAlternator){matches.push(match);matches=match.matches;var groupToken=new MaskToken(true);var tmpMatch=matches.pop();matches.push(groupToken);matches=groupToken.matches;match=tmpMatch}if(!match.isGroup){match=groupify([match])}matches.push(match);matches.push(quantifier);break;case opts.alternatormarker:var groupQuantifier=function groupQuantifier(matches){var lastMatch=matches.pop();if(lastMatch.isQuantifier){lastMatch=groupify([matches.pop(),lastMatch])}return lastMatch};if(openenings.length>0){currentOpeningToken=openenings[openenings.length-1];var subToken=currentOpeningToken.matches[currentOpeningToken.matches.length-1];if(currentOpeningToken.openGroup&&(subToken.matches===undefined||subToken.isGroup===false&&subToken.isAlternator===false)){lastMatch=openenings.pop()}else{lastMatch=groupQuantifier(currentOpeningToken.matches)}}else{lastMatch=groupQuantifier(currentToken.matches)}if(lastMatch.isAlternator){openenings.push(lastMatch)}else{if(lastMatch.alternatorGroup){alternator=openenings.pop();lastMatch.alternatorGroup=false}else{alternator=new MaskToken(false,false,false,true)}alternator.matches.push(lastMatch);openenings.push(alternator);if(lastMatch.openGroup){lastMatch.openGroup=false;var alternatorGroup=new MaskToken(true);alternatorGroup.alternatorGroup=true;openenings.push(alternatorGroup)}}break;default:defaultCase()}}while(openenings.length>0){openingToken=openenings.pop();currentToken.matches.push(openingToken)}if(currentToken.matches.length>0){verifyGroupMarker(currentToken);maskTokens.push(currentToken)}if(opts.numericInput||opts.isRTL){reverseTokens(maskTokens[0])}return maskTokens}
238,positionColorMask:function positionColorMask(input,template){input.style.left=template.offsetLeft+"px"}};Inputmask.extendDefaults=function(options){$.extend(true,Inputmask.prototype.defaults,options)};Inputmask.extendDefinitions=function(definition){$.extend(true,Inputmask.prototype.definitions,definition)};Inputmask.extendAliases=function(alias){$.extend(true,Inputmask.prototype.aliases,alias)};Inputmask.format=function(value,options,metadata){return Inputmask(options).format(value,metadata)};Inputmask.unmask=function(value,options){return Inputmask(options).unmaskedvalue(value)};Inputmask.isValid=function(value,options){return Inputmask(options).isValid(value)};Inputmask.remove=function(elems){if(typeof elems==="string"){elems=document.getElementById(elems)||document.querySelectorAll(elems)}elems=elems.nodeName?[elems]:elems;$.each(elems,function(ndx,el){if(el.inputmask)el.inputmask.remove()})};Inputmask.setValue=function(elems,value){if(typeof elems==="string"){elems=document.getElementById(elems)||document.querySelectorAll(elems)}elems=elems.nodeName?[elems]:elems;$.each(elems,function(ndx,el){if(el.inputmask)el.inputmask.setValue(value);else $(el).trigger("setvalue",[value])})};Inputmask.escapeRegex=function(str){var specials=["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"];return str.replace(new RegExp("(\\"+specials.join("|\\")+")","gim"),"\\$1")};Inputmask.keyCode={BACKSPACE:8,BACKSPACE_SAFARI:127,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SPACE:32,TAB:9,UP:38,X:88,CONTROL:17};Inputmask.dependencyLib=$;function resolveAlias(aliasStr,options,opts){var aliasDefinition=Inputmask.prototype.aliases[aliasStr];if(aliasDefinition){if(aliasDefinition.alias)resolveAlias(aliasDefinition.alias,undefined,opts);$.extend(true,opts,aliasDefinition);$.extend(true,opts,options);return true}else if(opts.mask===null){opts.mask=aliasStr}return false}function generateMaskSet(opts,nocache){function generateMask(mask,metadata,opts){var regexMask=false;if(mask===null||mask===""){regexMask=opts.regex!==null;if(regexMask){mask=opts.regex;mask=mask.replace(/^(\^)(.*)(\$)$/,"$2")}else{regexMask=true;mask=".*"}}if(mask.length===1&&opts.greedy===false&&opts.repeat!==0){opts.placeholder=""}if(opts.repeat>0||opts.repeat==="*"||opts.repeat==="+"){var repeatStart=opts.repeat==="*"?0:opts.repeat==="+"?1:opts.repeat;mask=opts.groupmarker[0]+mask+opts.groupmarker[1]+opts.quantifiermarker[0]+repeatStart+","+opts.repeat+opts.quantifiermarker[1]}var masksetDefinition,maskdefKey=regexMask?"regex_"+opts.regex:opts.numericInput?mask.split("").reverse().join(""):mask;if(Inputmask.prototype.masksCache[maskdefKey]===undefined||nocache===true){masksetDefinition={mask:mask,maskToken:Inputmask.prototype.analyseMask(mask,regexMask,opts),validPositions:{},_buffer:undefined,buffer:undefined,tests:{},excludes:{},metadata:metadata,maskLength:undefined,jitOffset:{}};if(nocache!==true){Inputmask.prototype.masksCache[maskdefKey]=masksetDefinition;masksetDefinition=$.extend(true,{},Inputmask.prototype.masksCache[maskdefKey])}}else masksetDefinition=$.extend(true,{},Inputmask.prototype.masksCache[maskdefKey]);return masksetDefinition}var ms;if($.isFunction(opts.mask)){opts.mask=opts.mask(opts)}if($.isArray(opts.mask)){if(opts.mask.length>1){if(opts.keepStatic===null){opts.keepStatic="auto";for(var i=0;i<opts.mask.length;i++){if(opts.mask[i].charAt(0)!==opts.mask[0].charAt(0)){opts.keepStatic=true;break}}}var altMask=opts.groupmarker[0];$.each(opts.isRTL?opts.mask.reverse():opts.mask,function(ndx,msk){if(altMask.length>1){altMask+=opts.groupmarker[1]+opts.alternatormarker+opts.groupmarker[0]}if(msk.mask!==undefined&&!$.isFunction(msk.mask)){altMask+=msk.mask}else{altMask+=msk}});altMask+=opts.groupmarker[1];return generateMask(altMask,opts.mask,opts)}else opts.mask=opts.mask.pop()}if(opts.mask&&opts.mask.mask!==undefined&&!$.isFunction(opts.mask.mask)){ms=generateMask(opts.mask.mask,opts.mask,opts)}else{ms=generateMask(opts.mask,opts.mask,opts)}return ms}function isInputEventSupported(eventName){var el=document.createElement("input"),evName="on"+eventName,isSupported=evName in el;if(!isSupported){el.setAttribute(evName,"return;");isSupported=typeof el[evName]==="function"}el=null;return isSupported}function maskScope(actionObj,maskset,opts){maskset=maskset||this.maskset;opts=opts||this.opts;
238var inputmask=this,el=this.el,isRTL=this.isRTL,undoValue,$el,skipKeyPressEvent=false,skipInputEvent=false,ignorable=false,maxLength,mouseEnter=false,colorMask,originalPlaceholder;var getMaskTemplate=function getMaskTemplate(baseOnInput,minimalPos,includeMode,noJit,clearOptionalTail){var greedy=opts.greedy;if(clearOptionalTail)opts.greedy=false;minimalPos=minimalPos||0;var maskTemplate=[],ndxIntlzr,pos=0,test,testPos,lvp=getLastValidPosition();do{if(baseOnInput===true&&getMaskSet().validPositions[pos]){testPos=clearOptionalTail&&getMaskSet().validPositions[pos].match.optionality===true&&getMaskSet().validPositions[pos+1]===undefined&&(getMaskSet().validPositions[pos].generatedInput===true||getMaskSet().validPositions[pos].input==opts.skipOptionalPartCharacter&&pos>0)?determineTestTemplate(pos,getTests(pos,ndxIntlzr,pos-1)):getMaskSet().validPositions[pos];test=testPos.match;ndxIntlzr=testPos.locator.slice();maskTemplate.push(includeMode===true?testPos.input:includeMode===false?test.nativeDef:getPlaceholder(pos,test))}else{testPos=getTestTemplate(pos,ndxIntlzr,pos-1);test=testPos.match;ndxIntlzr=testPos.locator.slice();var jitMasking=noJit===true?false:opts.jitMasking!==false?opts.jitMasking:test.jit;if(jitMasking===false||jitMasking===undefined||typeof jitMasking==="number"&&isFinite(jitMasking)&&jitMasking>pos){maskTemplate.push(includeMode===false?test.nativeDef:getPlaceholder(pos,test))}}if(opts.keepStatic==="auto"){if(test.newBlockMarker&&test.fn!==null){opts.keepStatic=pos-1}}pos++}while((maxLength===undefined||pos<maxLength)&&(test.fn!==null||test.def!=="")||minimalPos>pos);if(maskTemplate[maskTemplate.length-1]===""){maskTemplate.pop()}if(includeMode!==false||getMaskSet().maskLength===undefined)getMaskSet().maskLength=pos-1;opts.greedy=greedy;return maskTemplate};function getMaskSet(){return maskset}function resetMaskSet(soft){var maskset=getMaskSet();maskset.buffer=undefined;if(soft!==true){maskset.validPositions={};maskset.p=0}}function getLastValidPosition(closestTo,strict,validPositions){var before=-1,after=-1,valids=validPositions||getMaskSet().validPositions;if(closestTo===undefined)closestTo=-1;for(var posNdx in valids){var psNdx=parseInt(posNdx);if(valids[psNdx]&&(strict||valids[psNdx].generatedInput!==true)){if(psNdx<=closestTo)before=psNdx;if(psNdx>=closestTo)after=psNdx}}return before===-1||before==closestTo?after:after==-1?before:closestTo-before<after-closestTo?before:after}function getDecisionTaker(tst){var decisionTaker=tst.locator[tst.alternation];if(typeof decisionTaker=="string"&&decisionTaker.length>0){decisionTaker=decisionTaker.split(",")[0]}return decisionTaker!==undefined?decisionTaker.toString():""}function getLocator(tst,align){var locator=(tst.alternation!=undefined?tst.mloc[getDecisionTaker(tst)]:tst.locator).join("");if(locator!=="")while(locator.length<align){locator+="0"}return locator}function determineTestTemplate(pos,tests){pos=pos>0?pos-1:0;var altTest=getTest(pos),targetLocator=getLocator(altTest),tstLocator,closest,bestMatch;for(var ndx=0;ndx<tests.length;ndx++){var tst=tests[ndx];tstLocator=getLocator(tst,targetLocator.length);var distance=Math.abs(tstLocator-targetLocator);if(closest===undefined||tstLocator!==""&&distance<closest||bestMatch&&!opts.greedy&&bestMatch.match.optionality&&bestMatch.match.newBlockMarker==="master"&&(!tst.match.optionality||!tst.match.newBlockMarker)||bestMatch&&bestMatch.match.optionalQuantifier&&!tst.match.optionalQuantifier){closest=distance;bestMatch=tst}}return bestMatch}function getTestTemplate(pos,ndxIntlzr,tstPs){return getMaskSet().validPositions[pos]||determineTestTemplate(pos,getTests(pos,ndxIntlzr?ndxIntlzr.slice():ndxIntlzr,tstPs))}function getTest(pos,tests){if(getMaskSet().validPositions[pos]){return getMaskSet().validPositions[pos]}return(tests||getTests(pos))[0]}function positionCanMatchDefinition(pos,def){var valid=false,tests=getTests(pos);for(var tndx=0;tndx<tests.length;tndx++){if(tests[tndx].match&&tests[tndx].match.def===def){valid=true;break}}return valid}function getTests(pos,ndxIntlzr,tstPs){var maskTokens=getMaskSet().maskToken,testPos=ndxIntlzr?tstPs:0,ndxInitializer=ndxIntlzr?ndxIntlzr.slice():[0],matches=[],insertStop=false,latestMatch,cacheDependency=ndxIntlzr?ndxIntlzr.join(""):"";function resolveTestFromToken(maskToken,ndxInitializer,loopNdx,quantifierRecurse){function handleMatch(match,loopNdx,quantifierRecurse){function isFirstMatch(latestMatch,tokenGroup){var firstMatch=$.inArray(latestMatch,tokenGroup.matches)===0;if(!firstMatch){$.each(tokenGroup.matches,function(ndx,match){if
238(match.isQuantifier===true)firstMatch=isFirstMatch(latestMatch,tokenGroup.matches[ndx-1]);else if(match.hasOwnProperty("matches"))firstMatch=isFirstMatch(latestMatch,match);if(firstMatch)return false})}return firstMatch}function resolveNdxInitializer(pos,alternateNdx,targetAlternation){var bestMatch,indexPos;if(getMaskSet().tests[pos]||getMaskSet().validPositions[pos]){$.each(getMaskSet().tests[pos]||[getMaskSet().validPositions[pos]],function(ndx,lmnt){if(lmnt.mloc[alternateNdx]){bestMatch=lmnt;return false}var alternation=targetAlternation!==undefined?targetAlternation:lmnt.alternation,ndxPos=lmnt.locator[alternation]!==undefined?lmnt.locator[alternation].toString().indexOf(alternateNdx):-1;if((indexPos===undefined||ndxPos<indexPos)&&ndxPos!==-1){bestMatch=lmnt;indexPos=ndxPos}})}if(bestMatch){var bestMatchAltIndex=bestMatch.locator[bestMatch.alternation];var locator=bestMatch.mloc[alternateNdx]||bestMatch.mloc[bestMatchAltIndex]||bestMatch.locator;return locator.slice((targetAlternation!==undefined?targetAlternation:bestMatch.alternation)+1)}else{return targetAlternation!==undefined?resolveNdxInitializer(pos,alternateNdx):undefined}}function isSubsetOf(source,target){function expand(pattern){var expanded=[],start,end;for(var i=0,l=pattern.length;i<l;
238i++){if(pattern.charAt(i)==="-"){end=pattern.charCodeAt(i+1);while(++start<end){expanded.push(String.fromCharCode(start))}}else{start=pattern.charCodeAt(i);expanded.push(pattern.charAt(i))}}return expanded.join("")}if(opts.regex&&source.match.fn!==null&&target.match.fn!==null){return expand(target.match.def.replace(/[\[\]]/g,"")).indexOf(expand(source.match.def.replace(/[\[\]]/g,"")))!==-1}return source.match.def===target.match.nativeDef}function staticCanMatchDefinition(source,target){var sloc=source.locator.slice(source.alternation).join(""),tloc=target.locator.slice(target.alternation).join(""),canMatch=sloc==tloc;canMatch=canMatch&&source.match.fn===null&&target.match.fn!==null?target.match.fn.test(source.match.def,getMaskSet(),pos,false,opts,false):false;return canMatch}function setMergeLocators(targetMatch,altMatch){if(altMatch===undefined||targetMatch.alternation===altMatch.alternation&&targetMatch.locator[targetMatch.alternation].toString().indexOf(altMatch.locator[altMatch.alternation])===-1){targetMatch.mloc=targetMatch.mloc||{};var locNdx=targetMatch.locator[targetMatch.alternation];if(locNdx===undefined)targetMatch.alternation=undefined;else{if(typeof locNdx==="string")locNdx=locNdx.split(",")[0];if(targetMatch.mloc[locNdx]===undefined)targetMatch.mloc[locNdx]=targetMatch.locator.slice();if(altMatch!==undefined){for(var ndx in altMatch.mloc){if(typeof ndx==="string")ndx=ndx.split(",")[0];if(targetMatch.mloc[ndx]===undefined)targetMatch.mloc[ndx]=altMatch.mloc[ndx]}targetMatch.locator[targetMatch.alternation]=Object.keys(targetMatch.mloc).join(",")}return true}}return false}if(testPos>500&&quantifierRecurse!==undefined){throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+getMaskSet().mask}if(testPos===pos&&match.matches===undefined){matches.push({match:match,locator:loopNdx.reverse(),cd:cacheDependency,mloc:{}});return true}else if(match.matches!==undefined){if(match.isGroup&&quantifierRecurse!==match){match=handleMatch(maskToken.matches[$.inArray(match,maskToken.matches)+1],loopNdx,quantifierRecurse);if(match)return true}else if(match.isOptional){var optionalToken=match;match=resolveTestFromToken(match,ndxInitializer,loopNdx,quantifierRecurse);if(match){$.each(matches,function(ndx,mtch){mtch.match.optionality=true});latestMatch=matches[matches.length-1].match;if(quantifierRecurse===undefined&&isFirstMatch(latestMatch,optionalToken)){insertStop=true;testPos=pos}else return true}}else if(match.isAlternator){var alternateToken=match,malternateMatches=[],maltMatches,currentMatches=matches.slice(),loopNdxCnt=loopNdx.length;var altIndex=ndxInitializer.length>0?ndxInitializer.shift():-1;if(altIndex===-1||typeof altIndex==="string"){var currentPos=testPos,ndxInitializerClone=ndxInitializer.slice(),altIndexArr=[],amndx;if(typeof altIndex=="string"){altIndexArr=altIndex.split(",")}else{for(amndx=0;amndx<alternateToken.matches.length;amndx++){altIndexArr.push(amndx.toString())}}if(getMaskSet().excludes[pos]){var altIndexArrClone=altIndexArr.slice();for(var i=0,el=getMaskSet().excludes[pos].length;i<el;i++){altIndexArr.splice(altIndexArr.indexOf(getMaskSet().excludes[pos][i].toString()),1)}if(altIndexArr.length===0){getMaskSet().excludes[pos]=undefined;altIndexArr=altIndexArrClone}}if(opts.keepStatic===true||isFinite(parseInt(opts.keepStatic))&¤tPos>=opts.keepStatic)altIndexArr=altIndexArr.slice(0,1);var unMatchedAlternation=false;for(var ndx=0;ndx<altIndexArr.length;ndx++){amndx=parseInt(altIndexArr[ndx]);matches=[];ndxInitializer=typeof altIndex==="string"?resolveNdxInitializer(testPos,amndx,loopNdxCnt)||ndxInitializerClone.slice():ndxInitializerClone.slice();if(alternateToken.matches[amndx]&&handleMatch(alternateToken.matches[amndx],[amndx].concat(loopNdx),quantifierRecurse))match=true;else if(ndx===0){unMatchedAlternation=true}maltMatches=matches.slice();testPos=currentPos;matches=[];for(var ndx1=0;ndx1<maltMatches.length;ndx1++){var altMatch=maltMatches[ndx1],dropMatch=false;altMatch.match.jit=altMatch.match.jit||unMatchedAlternation;altMatch.alternation=altMatch.alternation||loopNdxCnt;setMergeLocators(altMatch);for(var ndx2=0;ndx2<malternateMatches.length;ndx2++){var altMatch2=malternateMatches[ndx2];
238if(typeof altIndex!=="string"||altMatch.alternation!==undefined&&$.inArray(altMatch.locator[altMatch.alternation].toString(),altIndexArr)!==-1){if(altMatch.match.nativeDef===altMatch2.match.nativeDef){dropMatch=true;setMergeLocators(altMatch2,altMatch);break}else if(isSubsetOf(altMatch,altMatch2)){if(setMergeLocators(altMatch,altMatch2)){dropMatch=true;malternateMatches.splice(malternateMatches.indexOf(altMatch2),0,altMatch)}break}else if(isSubsetOf(altMatch2,altMatch)){setMergeLocators(altMatch2,altMatch);break}else if(staticCanMatchDefinition(altMatch,altMatch2)){if(setMergeLocators(altMatch,altMatch2)){dropMatch=true;malternateMatches.splice(malternateMatches.indexOf(altMatch2),0,altMatch)}break}}}if(!dropMatch){malternateMatches.push(altMatch)}}}matches=currentMatches.concat(malternateMatches);testPos=pos;insertStop=matches.length>0;match=malternateMatches.length>0;ndxInitializer=ndxInitializerClone.slice()}else match=handleMatch(alternateToken.matches[altIndex]||maskToken.matches[altIndex],[altIndex].concat(loopNdx),quantifierRecurse);if(match)return true}else if(match.isQuantifier&&quantifierRecurse!==maskToken.matches[$.inArray(match,maskToken.matches)-1]){var qt=match;for(var qndx=ndxInitializer.length>0?ndxInitializer.shift():0;qndx<(isNaN(qt.quantifier.max)?qndx+1:qt.quantifier.max)&&testPos<=pos;qndx++){var tokenGroup=maskToken.matches[$.inArray(qt,maskToken.matches)-1];match=handleMatch(tokenGroup,[qndx].concat(loopNdx),tokenGroup);if(match){latestMatch=matches[matches.length-1].match;latestMatch.optionalQuantifier=qndx>=qt.quantifier.min;latestMatch.jit=(qndx||1)*tokenGroup.matches.indexOf(latestMatch)>=qt.quantifier.jit;if(latestMatch.optionalQuantifier&&isFirstMatch(latestMatch,tokenGroup)){insertStop=true;testPos=pos;break}if(latestMatch.jit){getMaskSet().jitOffset[pos]=tokenGroup.matches.indexOf(latestMatch)}return true}}}else{match=resolveTestFromToken(match,ndxInitializer,loopNdx,quantifierRecurse);if(match)return true}}else{testPos++}}for(var tndx=ndxInitializer.length>0?ndxInitializer.shift():0;tndx<maskToken.matches.length;tndx++){if(maskToken.matches[tndx].isQuantifier!==true){var match=handleMatch(maskToken.matches[tndx],[tndx].concat(loopNdx),quantifierRecurse);if(match&&testPos===pos){return match}else if(testPos>pos){break}}}}function mergeLocators(pos,tests){var locator=[];if(!$.isArray(tests))tests=[tests];if(tests.length>0){if(tests[0].alternation===undefined){locator=determineTestTemplate(pos,tests.slice()).locator.slice();if(locator.length===0)locator=tests[0].locator.slice()}else{$.each(tests,function(ndx,tst){if(tst.def!==""){if(locator.length===0)locator=tst.locator.slice();else{for(var i=0;i<locator.length;i++){if(tst.locator[i]&&locator[i].toString().indexOf(tst.locator[i])===-1){locator[i]+=","+tst.locator[i]}}}}})}}return locator}if(pos>-1){if(ndxIntlzr===undefined){var previousPos=pos-1,test;while((test=getMaskSet().validPositions[previousPos]||getMaskSet().tests[previousPos])===undefined&&previousPos>-1){previousPos--}if(test!==undefined&&previousPos>-1){ndxInitializer=mergeLocators(previousPos,test);cacheDependency=ndxInitializer.join("");testPos=previousPos}}if(getMaskSet().tests[pos]&&getMaskSet().tests[pos][0].cd===cacheDependency){return getMaskSet().tests[pos]}for(var mtndx=ndxInitializer.shift();mtndx<maskTokens.length;mtndx++){var match=resolveTestFromToken(maskTokens[mtndx],ndxInitializer,[mtndx]);if(match&&testPos===pos||testPos>pos){break}}}if(matches.length===0||insertStop){matches.push({match:{fn:null,optionality:false,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:cacheDependency})}if(ndxIntlzr!==undefined&&getMaskSet().tests[pos]){return $.extend(true,[],matches)}getMaskSet().tests[pos]=$.extend(true,[],matches);return getMaskSet().tests[pos]}function getBufferTemplate(){if(getMaskSet()._buffer===undefined){getMaskSet()._buffer=getMaskTemplate(false,1);if(getMaskSet().buffer===undefined)getMaskSet().buffer=getMaskSet()._buffer.slice()}return getMaskSet()._buffer}function getBuffer(noCache){if(getMaskSet().buffer===undefined||noCache===true){getMaskSet().buffer=getMaskTemplate(true,getLastValidPosition(),true);if(getMaskSet()._buffer===undefined)getMaskSet()._buffer=getMaskSet().buffer.slice()}return getMaskSet().buffer}function refreshFromBuffer(start,end,buffer){var i,p;if(start===true){resetMaskSet();start=0;end=buffer.length}else{for(i=start;i<end;i++){delete getMaskSet().validPositions[i]}}p=start;for(i=start;i<end;i++){resetMaskSet(true);if(buffer[i]!==opts.skipOptionalPartCharacter){var valResult=isValid(p,buffer[i],true,true);
238if(valResult!==false){resetMaskSet(true);p=valResult.caret!==undefined?valResult.caret:valResult.pos+1}}}}function casing(elem,test,pos){switch(opts.casing||test.casing){case"upper":elem=elem.toUpperCase();break;case"lower":elem=elem.toLowerCase();break;case"title":var posBefore=getMaskSet().validPositions[pos-1];if(pos===0||posBefore&&posBefore.input===String.fromCharCode(Inputmask.keyCode.SPACE)){elem=elem.toUpperCase()}else{elem=elem.toLowerCase()}break;default:if($.isFunction(opts.casing)){var args=Array.prototype.slice.call(arguments);args.push(getMaskSet().validPositions);elem=opts.casing.apply(this,args)}}return elem}function checkAlternationMatch(altArr1,altArr2,na){var altArrC=opts.greedy?altArr2:altArr2.slice(0,1),isMatch=false,naArr=na!==undefined?na.split(","):[],naNdx;for(var i=0;i<naArr.length;i++){if((naNdx=altArr1.indexOf(naArr[i]))!==-1){altArr1.splice(naNdx,1)}}for(var alndx=0;alndx<altArr1.length;alndx++){if($.inArray(altArr1[alndx],altArrC)!==-1){isMatch=true;break}}return isMatch}function alternate(pos,c,strict,fromSetValid,rAltPos){var validPsClone=$.extend(true,{},getMaskSet().validPositions),lastAlt,alternation,isValidRslt=false,altPos,prevAltPos,i,validPos,decisionPos,lAltPos=rAltPos!==undefined?rAltPos:getLastValidPosition();if(lAltPos===-1&&rAltPos===undefined){lastAlt=0;prevAltPos=getTest(lastAlt);alternation=prevAltPos.alternation}else{for(;lAltPos>=0;lAltPos--){altPos=getMaskSet().validPositions[lAltPos];if(altPos&&altPos.alternation!==undefined){if(prevAltPos&&prevAltPos.locator[altPos.alternation]!==altPos.locator[altPos.alternation]){break}lastAlt=lAltPos;alternation=getMaskSet().validPositions[lastAlt].alternation;prevAltPos=altPos}}}if(alternation!==undefined){decisionPos=parseInt(lastAlt);getMaskSet().excludes[decisionPos]=getMaskSet().excludes[decisionPos]||[];if(pos!==true){getMaskSet().excludes[decisionPos].push(getDecisionTaker(prevAltPos))}var validInputsClone=[],staticInputsBeforePos=0;for(i=decisionPos;i<getLastValidPosition(undefined,true)+1;i++){validPos=getMaskSet().validPositions[i];if(validPos&&validPos.generatedInput!==true){validInputsClone.push(validPos.input)}else if(i<pos)staticInputsBeforePos++;delete getMaskSet().validPositions[i]}while(getMaskSet().excludes[decisionPos]&&getMaskSet().excludes[decisionPos].length<10){var posOffset=staticInputsBeforePos*-1,validInputs=validInputsClone.slice();getMaskSet().tests[decisionPos]=undefined;resetMaskSet(true);isValidRslt=true;while(validInputs.length>0){var input=validInputs.shift();if(!(isValidRslt=isValid(getLastValidPosition(undefined,true)+1,input,false,fromSetValid,true))){break}}if(isValidRslt&&c!==undefined){var targetLvp=getLastValidPosition(pos)+1;for(i=decisionPos;i<getLastValidPosition()+1;i++){validPos=getMaskSet().validPositions[i];if((validPos===undefined||validPos.match.fn==null)&&i<pos+posOffset){posOffset++}}pos=pos+posOffset;isValidRslt=isValid(pos>targetLvp?targetLvp:pos,c,strict,fromSetValid,true)}if(!isValidRslt){resetMaskSet();prevAltPos=getTest(decisionPos);getMaskSet().validPositions=$.extend(true,{},validPsClone);if(getMaskSet().excludes[decisionPos]){var decisionTaker=getDecisionTaker(prevAltPos);if(getMaskSet().excludes[decisionPos].indexOf(decisionTaker)!==-1){isValidRslt=alternate(pos,c,strict,fromSetValid,decisionPos-1);break}getMaskSet().excludes[decisionPos].push(decisionTaker);for(i=decisionPos;i<getLastValidPosition(undefined,true)+1;i++){delete getMaskSet().validPositions[i]}}else{isValidRslt=alternate(pos,c,strict,fromSetValid,decisionPos-1);break}}else break}}getMaskSet().excludes[decisionPos]=undefined;return isValidRslt}function isValid(pos,c,strict,fromSetValid,fromAlternate,validateOnly){function isSelection(posObj){return isRTL?posObj.begin-posObj.end>1||posObj.begin-posObj.end===1:posObj.end-posObj.begin>1||posObj.end-posObj.begin===1}strict=strict===true;var maskPos=pos;if(pos.begin!==undefined){maskPos=isRTL?pos.end:pos.begin}function _isValid(position,c,strict){var rslt=false;$.each(getTests(position),function(ndx,tst){var test=tst.match;getBuffer(true);rslt=test.fn!=null?test.fn.test(c,getMaskSet(),position,strict,opts,isSelection(pos)):(c===test.def||c===opts.skipOptionalPartCharacter)&&test.def!==""?{c:getPlaceholder(position,test,true)||test.def,pos:position}:false;if(rslt!==false){var elem=rslt.c!==undefined?rslt.c:c,validatedPos=position;elem=elem===opts.skipOptionalPartCharacter&&test.fn===null?getPlaceholder(position,test,true)||test.def:elem;if(rslt.remove!==undefined){if(!$.isArray(rslt.remove))rslt.remove=[rslt.remove];
238$.each(rslt.remove.sort(function(a,b){return b-a}),function(ndx,lmnt){revalidateMask({begin:lmnt,end:lmnt+1})})}if(rslt.insert!==undefined){if(!$.isArray(rslt.insert))rslt.insert=[rslt.insert];$.each(rslt.insert.sort(function(a,b){return a-b}),function(ndx,lmnt){isValid(lmnt.pos,lmnt.c,true,fromSetValid)})}if(rslt!==true&&rslt.pos!==undefined&&rslt.pos!==position){validatedPos=rslt.pos}if(rslt!==true&&rslt.pos===undefined&&rslt.c===undefined){return false}if(!revalidateMask(pos,$.extend({},tst,{input:casing(elem,test,validatedPos)}),fromSetValid,validatedPos)){rslt=false}return false}});return rslt}var result=true,positionsClone=$.extend(true,{},getMaskSet().validPositions);if($.isFunction(opts.preValidation)&&!strict&&fromSetValid!==true&&validateOnly!==true){result=opts.preValidation(getBuffer(),maskPos,c,isSelection(pos),opts,getMaskSet())}if(result===true){trackbackPositions(undefined,maskPos,true);if(maxLength===undefined||maskPos<maxLength){result=_isValid(maskPos,c,strict);if((!strict||fromSetValid===true)&&result===false&&validateOnly!==true){var currentPosValid=getMaskSet().validPositions[maskPos];if(currentPosValid&¤tPosValid.match.fn===null&&(currentPosValid.match.def===c||c===opts.skipOptionalPartCharacter)){result={caret:seekNext(maskPos)}}else{if((opts.insertMode||getMaskSet().validPositions[seekNext(maskPos)]===undefined)&&(!isMask(maskPos,true)||getMaskSet().jitOffset[maskPos])){if(getMaskSet().jitOffset[maskPos]&&getMaskSet().validPositions[seekNext(maskPos)]===undefined){result=isValid(maskPos+getMaskSet().jitOffset[maskPos],c,strict);if(result!==false)result.caret=maskPos}else for(var nPos=maskPos+1,snPos=seekNext(maskPos);nPos<=snPos;nPos++){result=_isValid(nPos,c,strict);if(result!==false){result=trackbackPositions(maskPos,result.pos!==undefined?result.pos:nPos)||result;maskPos=nPos;break}}}}}}if(result===false&&opts.keepStatic!==false&&(opts.regex==null||isComplete(getBuffer()))&&!strict&&fromAlternate!==true){result=alternate(maskPos,c,strict,fromSetValid)}if(result===true){result={pos:maskPos}}}if($.isFunction(opts.postValidation)&&result!==false&&!strict&&fromSetValid!==true&&validateOnly!==true){var postResult=opts.postValidation(getBuffer(true),pos.begin!==undefined?isRTL?pos.end:pos.begin:pos,result,opts);if(postResult!==undefined){if(postResult.refreshFromBuffer&&postResult.buffer){var refresh=postResult.refreshFromBuffer;refreshFromBuffer(refresh===true?refresh:refresh.start,refresh.end,postResult.buffer)}result=postResult===true?result:postResult}}if(result&&result.pos===undefined){result.pos=maskPos}if(result===false||validateOnly===true){resetMaskSet(true);getMaskSet().validPositions=$.extend(true,{},positionsClone)}return result}function trackbackPositions(originalPos,newPos,fillOnly){var result;if(originalPos===undefined){for(originalPos=newPos-1;originalPos>0;originalPos--){if(getMaskSet().validPositions[originalPos])break}}for(var ps=originalPos;ps<newPos;ps++){if(getMaskSet().validPositions[ps]===undefined&&!isMask(ps,true)){var vp=ps==0?getTest(ps):getMaskSet().validPositions[ps-1];if(vp){var tests=getTests(ps).slice();if(tests[tests.length-1].match.def==="")tests.pop();var bestMatch=determineTestTemplate(ps,tests);bestMatch=$.extend({},bestMatch,{input:getPlaceholder(ps,bestMatch.match,true)||bestMatch.match.def});bestMatch.generatedInput=true;revalidateMask(ps,bestMatch,true);if(fillOnly!==true){var cvpInput=getMaskSet().validPositions[newPos].input;getMaskSet().validPositions[newPos]=undefined;result=isValid(newPos,cvpInput,true,true)}}}}return result}function revalidateMask(pos,validTest,fromSetValid,validatedPos){function IsEnclosedStatic(pos,valids,selection){var posMatch=valids[pos];if(posMatch!==undefined&&(posMatch.match.fn===null&&posMatch.match.optionality!==true||posMatch.input===opts.radixPoint)){var prevMatch=selection.begin<=pos-1?valids[pos-1]&&valids[pos-1].match.fn===null&&valids[pos-1]:valids[pos-1],nextMatch=selection.end>pos+1?valids[pos+1]&&valids[pos+1].match.fn===null&&valids[pos+1]:valids[pos+1];return prevMatch&&nextMatch}return false}
238var begin=pos.begin!==undefined?pos.begin:pos,end=pos.end!==undefined?pos.end:pos;if(pos.begin>pos.end){begin=pos.end;end=pos.begin}validatedPos=validatedPos!==undefined?validatedPos:begin;if(begin!==end||opts.insertMode&&getMaskSet().validPositions[validatedPos]!==undefined&&fromSetValid===undefined){var positionsClone=$.extend(true,{},getMaskSet().validPositions),lvp=getLastValidPosition(undefined,true),i;getMaskSet().p=begin;for(i=lvp;i>=begin;i--){if(getMaskSet().validPositions[i]&&getMaskSet().validPositions[i].match.nativeDef==="+"){opts.isNegative=false}delete getMaskSet().validPositions[i]}var valid=true,j=validatedPos,vps=getMaskSet().validPositions,needsValidation=false,posMatch=j,i=j;if(validTest){getMaskSet().validPositions[validatedPos]=$.extend(true,{},validTest);posMatch++;j++;if(begin<end)i++}for(;i<=lvp;i++){var t=positionsClone[i];if(t!==undefined&&(i>=end||i>=begin&&t.generatedInput!==true&&IsEnclosedStatic(i,positionsClone,{begin:begin,end:end}))){while(getTest(posMatch).match.def!==""){if(needsValidation===false&&positionsClone[posMatch]&&positionsClone[posMatch].match.nativeDef===t.match.nativeDef){getMaskSet().validPositions[posMatch]=$.extend(true,{},positionsClone[posMatch]);getMaskSet().validPositions[posMatch].input=t.input;trackbackPositions(undefined,posMatch,true);j=posMatch+1;valid=true}else if(opts.shiftPositions&&positionCanMatchDefinition(posMatch,t.match.def)){var result=isValid(posMatch,t.input,true,true);valid=result!==false;j=result.caret||result.insert?getLastValidPosition():posMatch+1;needsValidation=true}else{valid=t.generatedInput===true||t.input===opts.radixPoint&&opts.numericInput===true}if(valid)break;if(!valid&&posMatch>end&&isMask(posMatch,true)&&(t.match.fn!==null||posMatch>getMaskSet().maskLength)){break}posMatch++}if(getTest(posMatch).match.def=="")valid=false;posMatch=j}if(!valid)break}if(!valid){getMaskSet().validPositions=$.extend(true,{},positionsClone);resetMaskSet(true);return false}}else if(validTest){getMaskSet().validPositions[validatedPos]=$.extend(true,{},validTest)}resetMaskSet(true);return true}function isMask(pos,strict){var test=getTestTemplate(pos).match;if(test.def==="")test=getTest(pos).match;if(test.fn!=null){return test.fn}if(strict!==true&&pos>-1){var tests=getTests(pos);return tests.length>1+(tests[tests.length-1].match.def===""?1:0)}return false}function seekNext(pos,newBlock){var position=pos+1;while(getTest(position).match.def!==""&&(newBlock===true&&(getTest(position).match.newBlockMarker!==true||!isMask(position))||newBlock!==true&&!isMask(position))){position++}return position}function seekPrevious(pos,newBlock){var position=pos,tests;if(position<=0)return 0;while(--position>0&&(newBlock===true&&getTest(position).match.newBlockMarker!==true||newBlock!==true&&!isMask(position)&&(tests=getTests(position),tests.length<2||tests.length===2&&tests[1].match.def===""))){}return position}function writeBuffer(input,buffer,caretPos,event,triggerEvents){if(event&&$.isFunction(opts.onBeforeWrite)){var result=opts.onBeforeWrite.call(inputmask,event,buffer,caretPos,opts);if(result){if(result.refreshFromBuffer){var refresh=result.refreshFromBuffer;refreshFromBuffer(refresh===true?refresh:refresh.start,refresh.end,result.buffer||buffer);buffer=getBuffer(true)}if(caretPos!==undefined)caretPos=result.caret!==undefined?result.caret:caretPos}}if(input!==undefined){input.inputmask._valueSet(buffer.join(""));if(caretPos!==undefined&&(event===undefined||event.type!=="blur")){caret(input,caretPos)}else renderColorMask(input,caretPos,buffer.length===0);if(triggerEvents===true){var $input=$(input),nptVal=input.inputmask._valueGet();skipInputEvent=true;$input.trigger("input");setTimeout(function(){if(nptVal===getBufferTemplate().join("")){$input.trigger("cleared")}else if(isComplete(buffer)===true){$input.trigger("complete")}},0)}}}function getPlaceholder(pos,test,returnPL){test=test||getTest(pos).match;if(test.placeholder!==undefined||returnPL===true){return $.isFunction(test.placeholder)?test.placeholder(opts):test.placeholder}else if(test.fn===null){if(pos>-1&&getMaskSet().validPositions[pos]===undefined){var tests=getTests(pos),staticAlternations=[],prevTest;if(tests.length>1+(tests[tests.length-1].match.def===""?1:0)){for(var i=0;i<tests.length;i++){if(tests[i].match.optionality!==true&&tests[i].match.optionalQuantifier!==true&&(tests[i].match.fn===null||prevTest===undefined||tests[i].match.fn.test(prevTest.match.def,getMaskSet(),pos,true,opts)!==false)){staticAlternations.push(tests[i]);if(tests[i].match.fn===null)prevTest=tests[i];if(staticAlternations.length>1){if(/[0-9a-bA-Z]/.test(staticAlternations[0].match.def)){return opts.placeholder.charAt(pos%opts.placeholder.length)}}}}}}return test.def}return opts.placeholder.charAt(pos%opts.placeholder.length)}function HandleNativePlaceholder(npt,value){if(ie){if(npt.inputmask._valueGet()!==value&&(npt.placeholder!==value||npt.placeholder==="")){var buffer=getBuffer().slice(),nptValue=npt.inputmask._valueGet();if(nptValue!==value){var lvp=getLastValidPosition();if(lvp===-1&&nptValue===getBufferTemplate().join("")){buffer=[]}else if(lvp!==-1){clearOptionalTail(buffer)}writeBuffer(npt,buffer)}}}else if(npt.placeholder!==value){npt.placeholder=value;if(npt.placeholder==="")npt.removeAttribute("placeholder")}}var EventRuler={on:function on(input,eventName,eventHandler){var ev=function ev(e){var that=this;if(that.inputmask===undefined&&this.nodeName!=="FORM"){var imOpts=$.data(that,"_inputmask_opts");if(imOpts)new Inputmask(imOpts).mask(that);else EventRuler.off(that)}else if(e.type!=="setvalue"&&this.nodeName!=="FORM"&&(that.disabled||that.readOnly&&!(e.type==="
238keydown"&&e.ctrlKey&&e.keyCode===67||opts.tabThrough===false&&e.keyCode===Inputmask.keyCode.TAB))){e.preventDefault()}else{switch(e.type){case"input":if(skipInputEvent===true){skipInputEvent=false;return e.preventDefault()}if(mobile){var args=arguments;setTimeout(function(){eventHandler.apply(that,args);caret(that,that.inputmask.caretPos,undefined,true)},0);return false}break;case"keydown":skipKeyPressEvent=false;skipInputEvent=false;break;case"keypress":if(skipKeyPressEvent===true){return e.preventDefault()}skipKeyPressEvent=true;break;case"click":if(iemobile||iphone){var args=arguments;setTimeout(function(){eventHandler.apply(that,args)},0);return false}break}var returnVal=eventHandler.apply(that,arguments);if(returnVal===false){e.preventDefault();e.stopPropagation()}return returnVal}};input.inputmask.events[eventName]=input.inputmask.events[eventName]||[];input.inputmask.events[eventName].push(ev);if($.inArray(eventName,["submit","reset"])!==-1){if(input.form!==null)$(input.form).on(eventName,ev)}else{$(input).on(eventName,ev)}},off:function off(input,event){if(input.inputmask&&input.inputmask.events){var events;if(event){events=[];events[event]=input.inputmask.events[event]}else{events=input.inputmask.events}$.each(events,function(eventName,evArr){while(evArr.length>0){var ev=evArr.pop();if($.inArray(eventName,["submit","reset"])!==-1){if(input.form!==null)$(input.form).off(eventName,ev)}else{$(input).off(eventName,ev)}}delete input.inputmask.events[eventName]})}}};var EventHandlers={keydownEvent:function keydownEvent(e){var input=this,$input=$(input),k=e.keyCode,pos=caret(input);if(k===Inputmask.keyCode.BACKSPACE||k===Inputmask.keyCode.DELETE||iphone&&k===Inputmask.keyCode.BACKSPACE_SAFARI||e.ctrlKey&&k===Inputmask.keyCode.X&&!isInputEventSupported("cut")){e.preventDefault();handleRemove(input,k,pos);writeBuffer(input,getBuffer(true),getMaskSet().p,e,input.inputmask._valueGet()!==getBuffer().join(""))}else if(k===Inputmask.keyCode.END||k===Inputmask.keyCode.PAGE_DOWN){e.preventDefault();var caretPos=seekNext(getLastValidPosition());caret(input,e.shiftKey?pos.begin:caretPos,caretPos,true)}else if(k===Inputmask.keyCode.HOME&&!e.shiftKey||k===Inputmask.keyCode.PAGE_UP){e.preventDefault();caret(input,0,e.shiftKey?pos.begin:0,true)}else if((opts.undoOnEscape&&k===Inputmask.keyCode.ESCAPE||k===90&&e.ctrlKey)&&e.altKey!==true){checkVal(input,true,false,undoValue.split(""));$input.trigger("click")}else if(k===Inputmask.keyCode.INSERT&&!(e.shiftKey||e.ctrlKey)){opts.insertMode=!opts.insertMode;input.setAttribute("im-insert",opts.insertMode)}else if(opts.tabThrough===true&&k===Inputmask.keyCode.TAB){if(e.shiftKey===true){if(getTest(pos.begin).match.fn===null){pos.begin=seekNext(pos.begin)}pos.end=seekPrevious(pos.begin,true);pos.begin=seekPrevious(pos.end,true)}else{pos.begin=seekNext(pos.begin,true);pos.end=seekNext(pos.begin,true);if(pos.end<getMaskSet().maskLength)pos.end--}if(pos.begin<getMaskSet().maskLength){e.preventDefault();caret(input,pos.begin,pos.end)}}opts.onKeyDown.call(this,e,getBuffer(),caret(input).begin,opts);ignorable=$.inArray(k,opts.ignorables)!==-1},keypressEvent:function keypressEvent(e,checkval,writeOut,strict,ndx){var input=this,$input=$(input),k=e.which||e.charCode||e.keyCode;if(checkval!==true&&!(e.ctrlKey&&e.altKey)&&(e.ctrlKey||e.metaKey||ignorable)){if(k===Inputmask.keyCode.ENTER&&undoValue!==getBuffer().join("")){undoValue=getBuffer().join("");setTimeout(function(){$input.trigger("change")},0)}return true}else{if(k){if(k===46&&e.shiftKey===false&&opts.radixPoint!=="")k=opts.radixPoint.charCodeAt(0);var pos=checkval?{begin:ndx,end:ndx}:caret(input),forwardPosition,c=String.fromCharCode(k),offset=0;if(opts._radixDance&&opts.numericInput){var caretPos=getBuffer().indexOf(opts.radixPoint.charAt(0))+1;if(pos.begin<=caretPos){if(k===opts.radixPoint.charCodeAt(0))offset=1;pos.begin-=1;pos.end-=1}}getMaskSet().writeOutBuffer=true;var valResult=isValid(pos,c,strict);if(valResult!==false){resetMaskSet(true);forwardPosition=valResult.caret!==undefined?valResult.caret:seekNext(valResult.pos.begin?valResult.pos.begin:valResult.pos);getMaskSet().p=forwardPosition}forwardPosition=(opts.numericInput&&valResult.caret===undefined?seekPrevious(forwardPosition):forwardPosition)+offset;if(writeOut!==false){setTimeout(function(){opts.onKeyValidation.call(input,k,valResult,opts)},0);if(getMaskSet().writeOutBuffer&&valResult!==false){var buffer=getBuffer();writeBuffer(input,buffer,forwardPosition,e,checkval!==true)}}e.preventDefault();
238if(checkval){if(valResult!==false)valResult.forwardPosition=forwardPosition;return valResult}}}},pasteEvent:function pasteEvent(e){var input=this,ev=e.originalEvent||e,$input=$(input),inputValue=input.inputmask._valueGet(true),caretPos=caret(input),tempValue;if(isRTL){tempValue=caretPos.end;caretPos.end=caretPos.begin;caretPos.begin=tempValue}var valueBeforeCaret=inputValue.substr(0,caretPos.begin),valueAfterCaret=inputValue.substr(caretPos.end,inputValue.length);if(valueBeforeCaret===(isRTL?getBufferTemplate().reverse():getBufferTemplate()).slice(0,caretPos.begin).join(""))valueBeforeCaret="";if(valueAfterCaret===(isRTL?getBufferTemplate().reverse():getBufferTemplate()).slice(caretPos.end).join(""))valueAfterCaret="";if(window.clipboardData&&window.clipboardData.getData){inputValue=valueBeforeCaret+window.clipboardData.getData("Text")+valueAfterCaret}else if(ev.clipboardData&&ev.clipboardData.getData){inputValue=valueBeforeCaret+ev.clipboardData.getData("text/plain")+valueAfterCaret}else return true;var pasteValue=inputValue;if($.isFunction(opts.onBeforePaste)){pasteValue=opts.onBeforePaste.call(inputmask,inputValue,opts);if(pasteValue===false){return e.preventDefault()}if(!pasteValue){pasteValue=inputValue}}checkVal(input,false,false,pasteValue.toString().split(""));writeBuffer(input,getBuffer(),seekNext(getLastValidPosition()),e,undoValue!==getBuffer().join(""));return e.preventDefault()},inputFallBackEvent:function inputFallBackEvent(e){function radixPointHandler(input,inputValue,caretPos){if(inputValue.charAt(caretPos.begin-1)==="."&&opts.radixPoint!==""){inputValue=inputValue.split("");inputValue[caretPos.begin-1]=opts.radixPoint.charAt(0);inputValue=inputValue.join("")}return inputValue}function ieMobileHandler(input,inputValue,caretPos){if(iemobile){var inputChar=inputValue.replace(getBuffer().join(""),"");if(inputChar.length===1){var iv=inputValue.split("");iv.splice(caretPos.begin,0,inputChar);inputValue=iv.join("")}}return inputValue}var input=this,inputValue=input.inputmask._valueGet();if(getBuffer().join("")!==inputValue){var caretPos=caret(input);inputValue=radixPointHandler(input,inputValue,caretPos);inputValue=ieMobileHandler(input,inputValue,caretPos);if(getBuffer().join("")!==inputValue){var buffer=getBuffer().join(""),offset=!opts.numericInput&&inputValue.length>buffer.length?-1:0,frontPart=inputValue.substr(0,caretPos.begin),backPart=inputValue.substr(caretPos.begin),frontBufferPart=buffer.substr(0,caretPos.begin+offset),backBufferPart=buffer.substr(caretPos.begin+offset);var selection=caretPos,entries="",isEntry=false;if(frontPart!==frontBufferPart){var fpl=(isEntry=frontPart.length>=frontBufferPart.length)?frontPart.length:frontBufferPart.length,i;for(i=0;frontPart.charAt(i)===frontBufferPart.charAt(i)&&i<fpl;i++){}if(isEntry){selection.begin=i-offset;entries+=frontPart.slice(i,selection.end)}}if(backPart!==backBufferPart){if(backPart.length>backBufferPart.length){entries+=backPart.slice(0,1)}else{if(backPart.length<backBufferPart.length){selection.end+=backBufferPart.length-backPart.length;if(!isEntry&&opts.radixPoint!==""&&backPart===""&&frontPart.charAt(selection.begin+offset-1)===opts.radixPoint){selection.begin--;entries=opts.radixPoint}}}}writeBuffer(input,getBuffer(),{begin:selection.begin+offset,end:selection.end+offset});if(entries.length>0){$.each(entries.split(""),function(ndx,entry){var keypress=new $.Event("keypress");keypress.which=entry.charCodeAt(0);ignorable=false;EventHandlers.keypressEvent.call(input,keypress)})}else{if(selection.begin===selection.end-1){selection.begin=seekPrevious(selection.begin+1);if(selection.begin===selection.end-1){caret(input,selection.begin)}else{caret(input,selection.begin,selection.end)}}var keydown=new $.Event("keydown");keydown.keyCode=opts.numericInput?Inputmask.keyCode.BACKSPACE:Inputmask.keyCode.DELETE;EventHandlers.keydownEvent.call(input,keydown)}e.preventDefault()}}},beforeInputEvent:function beforeInputEvent(e){if(e.cancelable){var input=this;switch(e.inputType){case"insertText":$.each(e.data.split(""),function(ndx,entry){var keypress=new $.Event("keypress");
238keypress.which=entry.charCodeAt(0);ignorable=false;EventHandlers.keypressEvent.call(input,keypress)});return e.preventDefault();case"deleteContentBackward":var keydown=new $.Event("keydown");keydown.keyCode=Inputmask.keyCode.BACKSPACE;EventHandlers.keydownEvent.call(input,keydown);return e.preventDefault();case"deleteContentForward":var keydown=new $.Event("keydown");keydown.keyCode=Inputmask.keyCode.DELETE;EventHandlers.keydownEvent.call(input,keydown);return e.preventDefault()}}},setValueEvent:function setValueEvent(e){this.inputmask.refreshValue=false;var input=this,value=e&&e.detail?e.detail[0]:arguments[1],value=value||input.inputmask._valueGet(true);if($.isFunction(opts.onBeforeMask))value=opts.onBeforeMask.call(inputmask,value,opts)||value;value=value.toString().split("");checkVal(input,true,false,value);undoValue=getBuffer().join("");if((opts.clearMaskOnLostFocus||opts.clearIncomplete)&&input.inputmask._valueGet()===getBufferTemplate().join("")){input.inputmask._valueSet("")}},focusEvent:function focusEvent(e){var input=this,nptValue=input.inputmask._valueGet();if(opts.showMaskOnFocus){if(nptValue!==getBuffer().join("")){writeBuffer(input,getBuffer(),seekNext(getLastValidPosition()))}else if(mouseEnter===false){caret(input,seekNext(getLastValidPosition()))}}if(opts.positionCaretOnTab===true&&mouseEnter===false){EventHandlers.clickEvent.apply(input,[e,true])}undoValue=getBuffer().join("")},mouseleaveEvent:function mouseleaveEvent(e){var input=this;mouseEnter=false;if(opts.clearMaskOnLostFocus&&document.activeElement!==input){HandleNativePlaceholder(input,originalPlaceholder)}},clickEvent:function clickEvent(e,tabbed){function doRadixFocus(clickPos){if(opts.radixPoint!==""){var vps=getMaskSet().validPositions;if(vps[clickPos]===undefined||vps[clickPos].input===getPlaceholder(clickPos)){if(clickPos<seekNext(-1))return true;var radixPos=$.inArray(opts.radixPoint,getBuffer());if(radixPos!==-1){for(var vp in vps){if(radixPos<vp&&vps[vp].input!==getPlaceholder(vp)){return false}}return true}}}return false}var input=this;setTimeout(function(){if(document.activeElement===input){var selectedCaret=caret(input);if(tabbed){if(isRTL){selectedCaret.end=selectedCaret.begin}else{selectedCaret.begin=selectedCaret.end}}if(selectedCaret.begin===selectedCaret.end){switch(opts.positionCaretOnClick){case"none":break;case"select":caret(input,0,getBuffer().length);break;case"ignore":caret(input,seekNext(getLastValidPosition()));break;case"radixFocus":if(doRadixFocus(selectedCaret.begin)){var radixPos=getBuffer().join("").indexOf(opts.radixPoint);caret(input,opts.numericInput?seekNext(radixPos):radixPos);break}default:var clickPosition=selectedCaret.begin,lvclickPosition=getLastValidPosition(clickPosition,true),lastPosition=seekNext(lvclickPosition);if(clickPosition<lastPosition){caret(input,!isMask(clickPosition,true)&&!isMask(clickPosition-1,true)?seekNext(clickPosition):clickPosition)}else{var lvp=getMaskSet().validPositions[lvclickPosition],tt=getTestTemplate(lastPosition,lvp?lvp.match.locator:undefined,lvp),placeholder=getPlaceholder(lastPosition,tt.match);if(placeholder!==""&&getBuffer()[lastPosition]!==placeholder&&tt.match.optionalQuantifier!==true&&tt.match.newBlockMarker!==true||!isMask(lastPosition,opts.keepStatic)&&tt.match.def===placeholder){var newPos=seekNext(lastPosition);if(clickPosition>=newPos||clickPosition===lastPosition){lastPosition=newPos}}caret(input,lastPosition)}break}}}},0)},cutEvent:function cutEvent(e){var input=this,$input=$(input),pos=caret(input),ev=e.originalEvent||e;var clipboardData=window.clipboardData||ev.clipboardData,clipData=isRTL?getBuffer().slice(pos.end,pos.begin):getBuffer().slice(pos.begin,pos.end);clipboardData.setData("text",isRTL?clipData.reverse().join(""):clipData.join(""));if(document.execCommand)document.execCommand("copy");handleRemove(input,Inputmask.keyCode.DELETE,pos);writeBuffer(input,getBuffer(),getMaskSet().p,e,undoValue!==getBuffer().join(""))},blurEvent:function blurEvent(e){var $input=$(this),input=this;if(input.inputmask){HandleNativePlaceholder(input,originalPlaceholder);var nptValue=input.inputmask._valueGet(),buffer=getBuffer().slice();if(nptValue!==""||colorMask!==undefined){if(opts.clearMaskOnLostFocus){if(getLastValidPosition()===-1&&nptValue===getBufferTemplate().join("")){buffer=[]}else{clearOptionalTail(buffer)}}if(isComplete(buffer)===false){setTimeout(function(){$input.trigger("incomplete")},0);if(opts.clearIncomplete){resetMaskSet();if(opts.clearMaskOnLostFocus){buffer=[]}else{buffer=getBufferTemplate().slice()}}}writeBuffer(input,buffer,undefined,e)}if(undoValue!==getBuffer().join("")){undoValue=buffer.join("");$input.trigger("change")}}},mouseenterEvent:function mouseenterEvent(e){var input=this;mouseEnter=true;if(document.activeElement!==input&&opts.showMaskOnHover){HandleNativePlaceholder(input,(isRTL?getBuffer().slice().reverse():getBuffer()).join(""))}},submitEvent:function submitEvent(e){if(undoValue!==getBuffer().join("")){$el.trigger("change")}if(opts.clearMaskOnLostFocus&&getLastValidPosition()===-1&&el.inputmask._valueGet&&el.inputmask._valueGet()===getBufferTemplate().join("")){el.inputmask._valueSet("")}if(opts.clearIncomplete&&isComplete(getBuffer())===false){el.inputmask._valueSet("")}if(opts.removeMaskOnSubmit){el.inputmask._valueSet(el.inputmask.unmaskedvalue(),true);setTimeout(function(){writeBuffer(el,getBuffer())},0)}},resetEvent:function resetEvent(e){el.inputmask.refreshValue=true;setTimeout(function(){$el.trigger("setvalue")},0)}};function checkVal(input,writeOut,strict,nptvl,initiatingEvent){var inputmask=this||input.inputmask,inputValue=nptvl.slice(),charCo
238des="",initialNdx=-1,result=undefined;function isTemplateMatch(ndx,charCodes){var charCodeNdx=getMaskTemplate(true,0,false).slice(ndx,seekNext(ndx)).join("").replace(/'/g,"").indexOf(charCodes);return charCodeNdx!==-1&&!isMask(ndx)&&(getTest(ndx).match.nativeDef===charCodes.charAt(0)||getTest(ndx).match.fn===null&&getTest(ndx).match.nativeDef==="'"+charCodes.charAt(0)||getTest(ndx).match.nativeDef===" "&&(getTest(ndx+1).match.nativeDef===charCodes.charAt(0)||getTest(ndx+1).match.fn===null&&getTest(ndx+1).match.nativeDef==="'"+charCodes.charAt(0)))}resetMaskSet();if(!strict&&opts.autoUnmask!==true){var staticInput=getBufferTemplate().slice(0,seekNext(-1)).join(""),matches=inputValue.join("").match(new RegExp("^"+Inputmask.escapeRegex(staticInput),"g"));if(matches&&matches.length>0){inputValue.splice(0,matches.length*staticInput.length);initialNdx=seekNext(initialNdx)}}else{initialNdx=seekNext(initialNdx)}if(initialNdx===-1){getMaskSet().p=seekNext(initialNdx);initialNdx=0}else getMaskSet().p=initialNdx;inputmask.caretPos={begin:initialNdx};$.each(inputValue,function(ndx,charCode){if(charCode!==undefined){if(getMaskSet().validPositions[ndx]===undefined&&inputValue[ndx]===getPlaceholder(ndx)&&isMask(ndx,true)&&isValid(ndx,inputValue[ndx],true,undefined,undefined,true)===false){getMaskSet().p++}else{var keypress=new $.Event("_checkval");keypress.which=charCode.charCodeAt(0);charCodes+=charCode;var lvp=getLastValidPosition(undefined,true);if(!isTemplateMatch(initialNdx,charCodes)){result=EventHandlers.keypressEvent.call(input,keypress,true,false,strict,inputmask.caretPos.begin);if(result){initialNdx=inputmask.caretPos.begin+1;charCodes=""}}else{result=EventHandlers.keypressEvent.call(input,keypress,true,false,strict,lvp+1)}if(result){writeBuffer(undefined,getBuffer(),result.forwardPosition,keypress,false);inputmask.caretPos={begin:result.forwardPosition,end:result.forwardPosition}}}}});if(writeOut)writeBuffer(input,getBuffer(),result?result.forwardPosition:undefined,initiatingEvent||new $.Event("checkval"),initiatingEvent&&initiatingEvent.type==="input")}function unmaskedvalue(input){if(input){if(input.inputmask===undefined){return input.value}if(input.inputmask&&input.inputmask.refreshValue){EventHandlers.setValueEvent.call(input)}}var umValue=[],vps=getMaskSet().validPositions;for(var pndx in vps){if(vps[pndx].match&&vps[pndx].match.fn!=null){umValue.push(vps[pndx].input)}}var unmaskedValue=umValue.length===0?"":(isRTL?umValue.reverse():umValue).join("");if($.isFunction(opts.onUnMask)){var bufferValue=(isRTL?getBuffer().slice().reverse():getBuffer()).join("");unmaskedValue=opts.onUnMask.call(inputmask,bufferValue,unmaskedValue,opts)}return unmaskedValue}function caret(input,begin,end,notranslate){function translatePosition(pos){if(isRTL&&typeof pos==="number"&&(!opts.greedy||opts.placeholder!=="")&&el){pos=el.inputmask._valueGet().length-pos}return pos}var range;if(begin!==undefined){if($.isArray(begin)){end=isRTL?begin[0]:begin[1];begin=isRTL?begin[1]:begin[0]}if(begin.begin!==undefined){end=isRTL?begin.begin:begin.end;begin=isRTL?begin.end:begin.begin}if(typeof begin==="number"){begin=notranslate?begin:translatePosition(begin);end=notranslate?end:translatePosition(end);end=typeof end=="number"?end:begin;var scrollCalc=parseInt(((input.ownerDocument.defaultView||window).getComputedStyle?(input.ownerDocument.defaultView||window).getComputedStyle(input,null):input.currentStyle).fontSize)*end;input.scrollLeft=scrollCalc>input.scrollWidth?scrollCalc:0;input.inputmask.caretPos={begin:begin,end:end};if(input===document.activeElement){if("selectionStart"in input){input.selectionStart=begin;input.selectionEnd=end}else if(window.getSelection){range=document.createRange();if(input.firstChild===undefined||input.firstChild===null){var textNode=document.createTextNode("");input.appendChild(textNode)}range.setStart(input.firstChild,begin<input.inputmask._valueGet().length?begin:input.inputmask._valueGet().length);range.setEnd(input.firstChild,end<input.inputmask._valueGet().length?end:input.inputmask._valueGet().length);range.collapse(true);var sel=window.getSelection();sel.removeAllRanges();sel.addRange(range)}else if(input.createTextRange){range=input.createTextRange();range.collapse(true);range.moveEnd("character",end);range.moveStart("character",begin);range.select()}renderColorMask(input,{begin:begin,end:end})}}}else{if("selectionStart"in input){begin=input.selectionStart;end=input.selectionEnd}else if(window.getSelection){range=window.getSelection().getRangeAt(0);if(range.commonAncestorContainer.parentNode===input||range.commonAncestorContainer===input){begin=range.startOffset;end=range.endOffset}}else if(document.selection&&document.selection.createRange){range=document.selection.createRange();begin=0-range.duplicate().moveStart("character",-input.inputmask._valueGet().length);end=begin+range.text.length}return{begin:notranslate?begin:translatePosition(begin),end:notranslate?end:translatePosition(en
238d)}}}function determineLastRequiredPosition(returnDefinition){var buffer=getMaskTemplate(true,getLastValidPosition(),true,true),bl=buffer.length,pos,lvp=getLastValidPosition(),positions={},lvTest=getMaskSet().validPositions[lvp],ndxIntlzr=lvTest!==undefined?lvTest.locator.slice():undefined,testPos;for(pos=lvp+1;pos<buffer.length;pos++){testPos=getTestTemplate(pos,ndxIntlzr,pos-1);ndxIntlzr=testPos.locator.slice();positions[pos]=$.extend(true,{},testPos)}var lvTestAlt=lvTest&&lvTest.alternation!==undefined?lvTest.locator[lvTest.alternation]:undefined;for(pos=bl-1;pos>lvp;pos--){testPos=positions[pos];if((testPos.match.optionality||testPos.match.optionalQuantifier&&testPos.match.newBlockMarker||lvTestAlt&&(lvTestAlt!==positions[pos].locator[lvTest.alternation]&&testPos.match.fn!=null||testPos.match.fn===null&&testPos.locator[lvTest.alternation]&&checkAlternationMatch(testPos.locator[lvTest.alternation].toString().split(","),lvTestAlt.toString().split(","))&&getTests(pos)[0].def!==""))&&buffer[pos]===getPlaceholder(pos,testPos.match)){bl--}else break}return returnDefinition?{l:bl,def:positions[bl]?positions[bl].match:undefined}:bl}function clearOptionalTail(buffer){buffer.length=0;var template=getMaskTemplate(true,0,true,undefined,true),lmnt,validPos;while(lmnt=template.shift(),lmnt!==undefined){buffer.push(lmnt)}return buffer}function isComplete(buffer){if($.isFunction(opts.isComplete))return opts.isComplete(buffer,opts);if(opts.repeat==="*")return undefined;var complete=false,lrp=determineLastRequiredPosition(true),aml=seekPrevious(lrp.l);if(lrp.def===undefined||lrp.def.newBlockMarker||lrp.def.optionality||lrp.def.optionalQuantifier){complete=true;for(var i=0;i<=aml;i++){var test=getTestTemplate(i).match;if(test.fn!==null&&getMaskSet().validPositions[i]===undefined&&test.optionality!==true&&test.optionalQuantifier!==true||test.fn===null&&buffer[i]!==getPlaceholder(i,test)){complete=false;break}}}return complete}function handleRemove(input,k,pos,strict,fromIsValid){if(opts.numericInput||isRTL){if(k===Inputmask.keyCode.BACKSPACE){k=Inputmask.keyCode.DELETE}else if(k===Inputmask.keyCode.DELETE){k=Inputmask.keyCode.BACKSPACE}if(isRTL){var pend=pos.end;pos.end=pos.begin;pos.begin=pend}}if(k===Inputmask.keyCode.BACKSPACE&&pos.end-pos.begin<1){pos.begin=seekPrevious(pos.begin);if(getMaskSet().validPositions[pos.begin]!==undefined&&getMaskSet().validPositions[pos.begin].input===opts.groupSeparator){pos.begin--}}else if(k===Inputmask.keyCode.DELETE&&pos.begin===pos.end){pos.end=isMask(pos.end,true)&&getMaskSet().validPositions[pos.end]&&getMaskSet().validPositions[pos.end].input!==opts.radixPoint?pos.end+1:seekNext(pos.end)+1;if(getMaskSet().validPositions[pos.begin]!==undefined&&getMaskSet().validPositions[pos.begin].input===opts.groupSeparator){pos.end++}}revalidateMask(pos);if(strict!==true&&opts.keepStatic!==false||opts.regex!==null){var result=alternate(true);if(result){var newPos=result.caret!==undefined?result.caret:result.pos?seekNext(result.pos.begin?result.pos.begin:result.pos):getLastValidPosition(-1,true);if(k!==Inputmask.keyCode.DELETE||pos.begin>newPos){pos.begin==newPos}}}var lvp=getLastValidPosition(pos.begin,true);if(lvp<pos.begin||pos.begin===-1){getMaskSet().p=seekNext(lvp)}else if(strict!==true){getMaskSet().p=pos.begin;if(fromIsValid!==true){while(getMaskSet().p<lvp&&getMaskSet().validPositions[getMaskSet().p]===undefined){getMaskSet().p++}}}}function initializeColorMask(input){var computedStyle=(input.ownerDocument.defaultView||window).getComputedStyle(input,null);function findCaretPos(clientx){var e=document.createElement("span"),caretPos;for(var style in computedStyle){if(isNaN(style)&&style.indexOf("font")!==-1){e.style[style]=computedStyle[style]}}e.style.textTransform=computedStyle.textTransform;e.style.letterSpacing=computedStyle.letterSpacing;e.style.position="absolute";e.style.height="auto";e.style.width="auto";e.style.visibility="hidden";e.style.whiteSpace="nowrap";document.body.appendChild(e);var inputText=input.inputmask._valueGet(),previousWidth=0,itl;for(caretPos=0,itl=inputText.length;caretPos<=itl;caretPos++){e.innerHTML+=inputText.charAt(caretPos)||"_";if(e.offsetWidth>=clientx){var offset1=clientx-previousWidth;var offset2=e.offsetWidth-clientx;e.innerHTML=inputText.charAt(caretPos);offset1-=e.offsetWidth/3;caretPos=offset1<offset2?caretPos-1:caretPos;break}previousWidth=e.offsetWidth}document.body.removeChild(e);return caretPos}var template=document.createElement("div");template.style.width=computedStyle.width;template.style.textAlign=computedStyle.textAlign;colorMask=document.createElement("div");input.inputmask.colorMask=colorMask;colorMask.className="im-colormask";input.parentNode.insertBefore(colorMask,input);input.parentNode.removeChild(input);colorMask.appendChild(input);colorMask.appendChild(template);
238input.style.left=template.offsetLeft+"px";$(colorMask).on("mouseleave",function(e){return EventHandlers.mouseleaveEvent.call(input,[e])});$(colorMask).on("mouseenter",function(e){return EventHandlers.mouseenterEvent.call(input,[e])});$(colorMask).on("click",function(e){caret(input,findCaretPos(e.clientX));return EventHandlers.clickEvent.call(input,[e])})}function renderColorMask(input,caretPos,clear){var maskTemplate=[],isStatic=false,test,testPos,ndxIntlzr,pos=0;function setEntry(entry){if(entry===undefined)entry="";if(!isStatic&&(test.fn===null||testPos.input===undefined)){isStatic=true;maskTemplate.push("<span class='im-static'>"+entry)}else if(isStatic&&(test.fn!==null&&testPos.input!==undefined||test.def==="")){isStatic=false;var mtl=maskTemplate.length;maskTemplate[mtl-1]=maskTemplate[mtl-1]+"</span>";maskTemplate.push(entry)}else maskTemplate.push(entry)}function setCaret(){if(document.activeElement===input){maskTemplate.splice(caretPos.begin,0,caretPos.begin===caretPos.end||caretPos.end>getMaskSet().maskLength?'<mark class="im-caret" style="border-right-width: 1px;border-right-style: solid;">':'<mark class="im-caret-select">');maskTemplate.splice(caretPos.end+1,0,"</mark>")}}if(colorMask!==undefined){var buffer=getBuffer();if(caretPos===undefined){caretPos=caret(input)}else if(caretPos.begin===undefined){caretPos={begin:caretPos,end:caretPos}}if(clear!==true){var lvp=getLastValidPosition();do{if(getMaskSet().validPositions[pos]){testPos=getMaskSet().validPositions[pos];test=testPos.match;ndxIntlzr=testPos.locator.slice();setEntry(buffer[pos])}else{testPos=getTestTemplate(pos,ndxIntlzr,pos-1);test=testPos.match;ndxIntlzr=testPos.locator.slice();if(opts.jitMasking===false||pos<lvp||typeof opts.jitMasking==="number"&&isFinite(opts.jitMasking)&&opts.jitMasking>pos){setEntry(getPlaceholder(pos,test))}else isStatic=false}pos++}while((maxLength===undefined||pos<maxLength)&&(test.fn!==null||test.def!=="")||lvp>pos||isStatic);if(isStatic)setEntry();setCaret()}var template=colorMask.getElementsByTagName("div")[0];template.innerHTML=maskTemplate.join("");input.inputmask.positionColorMask(input,template)}}function mask(elem){function isElementTypeSupported(input,opts){function patchValueProperty(npt){var valueGet;var valueSet;function patchValhook(type){if($.valHooks&&($.valHooks[type]===undefined||$.valHooks[type].inputmaskpatch!==true)){var valhookGet=$.valHooks[type]&&$.valHooks[type].get?$.valHooks[type].get:function(elem){return elem.value};var valhookSet=$.valHooks[type]&&$.valHooks[type].set?$.valHooks[type].set:function(elem,value){elem.value=value;return elem};$.valHooks[type]={get:function get(elem){if(elem.inputmask){if(elem.inputmask.opts.autoUnmask){return elem.inputmask.unmaskedvalue()}else{var result=valhookGet(elem);return getLastValidPosition(undefined,undefined,elem.inputmask.maskset.validPositions)!==-1||opts.nullable!==true?result:""}}else return valhookGet(elem)},set:function set(elem,value){var $elem=$(elem),result;result=valhookSet(elem,value);if(elem.inputmask){$elem.trigger("setvalue",[value])}return result},inputmaskpatch:true}}}function getter(){if(this.inputmask){return this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():getLastValidPosition()!==-1||opts.nullable!==true?document.activeElement===this&&opts.clearMaskOnLostFocus?(isRTL?clearOptionalTail(getBuffer().slice()).reverse():clearOptionalTail(getBuffer().slice())).join(""):valueGet.call(this):""}else return valueGet.call(this)}function setter(value){valueSet.call(this,value);if(this.inputmask){$(this).trigger("setvalue",[value])}}function installNativeValueSetFallback(npt){EventRuler.on(npt,"mouseenter",function(event){var $input=$(this),input=this,value=input.inputmask._valueGet();if(value!==getBuffer().join("")){$input.trigger("setvalue")}})}if(!npt.inputmask.__valueGet){if(opts.noValuePatching!==true){if(Object.getOwnPropertyDescriptor){if(typeof Object.getPrototypeOf!=="function"){Object.getPrototypeOf=_typeof("test".__proto__)==="object"?function(object){return object.__proto__}:function(object){return object.constructor.prototype}}var valueProperty=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(npt),"value"):un
238defined;if(valueProperty&&valueProperty.get&&valueProperty.set){valueGet=valueProperty.get;valueSet=valueProperty.set;Object.defineProperty(npt,"value",{get:getter,set:setter,configurable:true})}else if(npt.tagName!=="INPUT"){valueGet=function valueGet(){return this.textContent};valueSet=function valueSet(value){this.textContent=value};Object.defineProperty(npt,"value",{get:getter,set:setter,configurable:true})}}else if(document.__lookupGetter__&&npt.__lookupGetter__("value")){valueGet=npt.__lookupGetter__("value");valueSet=npt.__lookupSetter__("value");npt.__defineGetter__("value",getter);npt.__defineSetter__("value",setter)}npt.inputmask.__valueGet=valueGet;npt.inputmask.__valueSet=valueSet}npt.inputmask._valueGet=function(overruleRTL){return isRTL&&overruleRTL!==true?valueGet.call(this.el).split("").reverse().join(""):valueGet.call(this.el)};npt.inputmask._valueSet=function(value,overruleRTL){valueSet.call(this.el,value===null||value===undefined?"":overruleRTL!==true&&isRTL?value.split("").reverse().join(""):value)};if(valueGet===undefined){valueGet=function valueGet(){return this.value};valueSet=function valueSet(value){this.value=value};patchValhook(npt.type);installNativeValueSetFallback(npt)}}}var elementType=input.getAttribute("type");var isSupported=input.tagName==="INPUT"&&$.inArray(elementType,opts.supportsInputType)!==-1||input.isContentEditable||input.tagName==="TEXTAREA";if(!isSupported){if(input.tagName==="INPUT"){var el=document.createElement("input");el.setAttribute("type",elementType);isSupported=el.type==="text";el=null}else isSupported="partial"}if(isSupported!==false){patchValueProperty(input)}else input.inputmask=undefined;return isSupported}EventRuler.off(elem);var isSupported=isElementTypeSupported(elem,opts);if(isSupported!==false){el=elem;$el=$(el);originalPlaceholder=el.placeholder;maxLength=el!==undefined?el.maxLength:undefined;if(maxLength===-1)maxLength=undefined;if(opts.colorMask===true){initializeColorMask(el)}if(mobile){if("inputMode"in el){el.inputmode=opts.inputmode;el.setAttribute("inputmode",opts.inputmode)}if(opts.disablePredictiveText===true){if("autocorrect"in el){el.autocorrect=false}else{if(opts.colorMask!==true){initializeColorMask(el)}el.type="password"}}}if(isSupported===true){el.setAttribute("im-insert",opts.insertMode);EventRuler.on(el,"submit",EventHandlers.submitEvent);EventRuler.on(el,"reset",EventHandlers.resetEvent);EventRuler.on(el,"blur",EventHandlers.blurEvent);EventRuler.on(el,"focus",EventHandlers.focusEvent);if(opts.colorMask!==true){EventRuler.on(el,"click",EventHandlers.clickEvent);EventRuler.on(el,"mouseleave",EventHandlers.mouseleaveEvent);EventRuler.on(el,"mouseenter",EventHandlers.mouseenterEvent)}EventRuler.on(el,"paste",EventHandlers.pasteEvent);EventRuler.on(el,"cut",EventHandlers.cutEvent);EventRuler.on(el,"complete",opts.oncomplete);EventRuler.on(el,"incomplete",opts.onincomplete);EventRuler.on(el,"cleared",opts.oncleared);if(!mobile&&opts.inputEventOnly!==true){EventRuler.on(el,"keydown",EventHandlers.keydownEvent);EventRuler.on(el,"keypress",EventHandlers.keypressEvent)}else{el.removeAttribute("maxLength")}EventRuler.on(el,"input",EventHandlers.inputFallBackEvent);EventRuler.on(el,"beforeinput",EventHandlers.beforeInputEvent)}EventRuler.on(el,"setvalue",EventHandlers.setValueEvent);undoValue=getBufferTemplate().join("");if(el.inputmask._valueGet(true)!==""||opts.clearMaskOnLostFocus===false||document.activeElement===el){var initialValue=$.isFunction(opts.onBeforeMask)?opts.onBeforeMask.call(inputmask,el.inputmask._valueGet(true),opts)||el.inputmask._valueGet(true):el.inputmask._valueGet(true);if(initialValue!=="")checkVal(el,true,false,initialValue.split(""));var buffer=getBuffer().slice();undoValue=buffer.join("");if(isComplete(buffer)===false){if(opts.clearIncomplete){resetMaskSet()}}if(opts.clearMaskOnLostFocus&&document.activeElement!==el){if(getLastValidPosition()===-1){buffer=[]}else{clearOptionalTail(buffer)}}if(opts.clearMaskOnLostFocus===false||opts.showMaskOnFocus&&document.activeElement===el||el.inputmask._valueGet(true)!=="")writeBuffer(el,buffer);if(document.activeElement===el){caret(el,seekNext(getLastValidPosition()))}}}}var valueBuffer;if(actionObj!==undefined){switch(actionObj.action){case"isComplete":el=actionObj.el;return isComplete(getBuffer());case"unmaskedvalue":if(el===undefined||actionObj.value!==undefined){valueBuffer=actionObj.value;valueBuffer=($.isFunction(opts.onBeforeMask)?opts.onBeforeMask.call(inputmask,valueBuffer,opts)||valueBuffer:valueBuffer).split("");checkVal.call(this,undefined,false,false,valueBuffer);if($.isFunction(opts.onBeforeWrite))opts.onBeforeWrite.call(inputmask,undefined,getBuffer(),0,opts)}return unmaskedvalue(el);case"mask":mask(el);break;case"format":valueBuffer=($.isFunction(opts.onBeforeMask)?opts.onBeforeMask.call(inputmask,actionObj.value,opts)||actionObj.value:actionObj.value).split("");checkVal.call(this,undefined,true,false,valueBuffer);if(actionObj.metadata){return{value:isRTL?getBuffer().slice().reverse().join(""):getBuffer().join(""),metadata:maskScope.call(this,{action:"getmetadata"},maskset,opts)}}return isRTL?getBuffer().slice().reverse().join(""):getBuffer().join("");case"isValid":if(actionObj.value){valueBuffer=actionObj.value.split("");checkVal.call(this,undefined,true,true,valueBuffer)}else{actionObj.value=getBuffer().join("")}var buffer=getBuffer();var rl=determineLastRequiredPosition(),lmib=buffer.length-1;for(;lmib>rl;lmib--){if(isMask(lmib))break}buffer.splice(rl,lmib+1-rl);return isComplete(buffer)&&actionObj.value===getBuffer().join("");case"getemptymask":return getBufferTemplate().join("");case"remove":if(el&&el.inputmask){$.data(el,"_inputmask_opts",null);$el=$(el);el.inputmask._valueSet(opts.autoUnmask?unmaskedvalue(el):el.inputmask._valueGet(true));EventRuler.off(el);if(el.inputmask.colorMask){colorMask=el.inputmask.colorMask;colorMask.removeChild(el);colorMask.parentNode.insertBefore(el,colorMask);colorMask.parentNode.removeChild(colorMask)}var valueProperty;if(Object.getOwnPropertyDescriptor&&Object.getPrototypeOf){valueProperty=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(el),"value");if(valueProperty){if(el.inputmask.__valueGet){Object.defineProperty(el,"value",{get:el.inputmask.__valueGet,set:el.inputmask.__valueSet,configurable:true})}}}else if(document.__lookupGetter__&&el.__lookupGetter__("value")){if(el.inputmask.__valueGet){el.__defineGetter__("value",el.inputmask.__valueGet);el.__defineSetter__("value",el.inputmask.__valueSet)}}el.inputmask=undefined}return el;break;case"getmetadata":if($.isArray(maskset.metadata)){var maskTarget=getMaskTemplate(true,0,false).join("");$.each(maskset.metadata,function(ndx,mtdt){if(mtdt.mask===maskTarget){maskTarget=mtdt;return false}});return maskTarget}return maskset.metadata}}}return Inputmask})},function(module,exports,__webpack_require__){"use strict";var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};(function(factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(4)],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__==="function"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})(function($){return $})},function(module,exports){module.exports=jQuery},function(module,exports,__webpack_require__){"use strict";var __WEBPACK_AMD_DEFINE_RESULT__;var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};if(true)!(__WEBPACK_AMD_DEFINE_RESULT__=function(){return typeof window!=="undefined"?window:new(eval("require('jsdom').JSDOM"))("").window}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__));else{}},function(module,exports,__webpack_require__){"use strict";var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};(function(factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(2)],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__==="function"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})(function(Inputmask){var $=Inputmask.dependencyLib;var formatCode={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return pad(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return pad(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return pad(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return pad(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return pad(Date.prototype.getHours.call(this),2)}],hhh:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return pad(Date.prototype.getHours.call(this),2)}],HHH:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return pad(Date.prototype.getMinutes.call(this),2)}],ss:["[0-5][0-9]",Date.prototype.setSeconds,"seconds",function(){return pad(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return pad(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return pad(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]"],tt:["[ap]m"],T:["[AP]"],TT:["[AP]M"],Z:[""],o:[""],S:[""]},formatAlias={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function getTokenizer(opts){if(!opts.tokenizer){var tokens=[];for(var ndx in formatCode){if(tokens.indexOf(ndx[0])===-1)tokens.push(ndx[0])}
238opts.tokenizer="("+tokens.join("+|")+")+?|.";opts.tokenizer=new RegExp(opts.tokenizer,"g")}return opts.tokenizer}function isValidDate(dateParts,currentResult){return!isFinite(dateParts.rawday)||dateParts.day=="29"&&!isFinite(dateParts.rawyear)||new Date(dateParts.date.getFullYear(),isFinite(dateParts.rawmonth)?dateParts.month:dateParts.date.getMonth()+1,0).getDate()>=dateParts.day?currentResult:false}function isDateInRange(dateParts,opts){var result=true;if(opts.min){if(dateParts["rawyear"]){var rawYear=dateParts["rawyear"].replace(/[^0-9]/g,""),minYear=opts.min.year.substr(0,rawYear.length);result=minYear<=rawYear}if(dateParts["year"]===dateParts["rawyear"]){if(opts.min.date.getTime()===opts.min.date.getTime()){result=opts.min.date.getTime()<=dateParts.date.getTime()}}}if(result&&opts.max&&opts.max.date.getTime()===opts.max.date.getTime()){result=opts.max.date.getTime()>=dateParts.date.getTime()}return result}function parse(format,dateObjValue,opts,raw){var mask="",match;while(match=getTokenizer(opts).exec(format)){if(dateObjValue===undefined){if(formatCode[match[0]]){mask+="("+formatCode[match[0]][0]+")"}else{switch(match[0]){case"[":mask+="(";break;case"]":mask+=")?";break;default:mask+=Inputmask.escapeRegex(match[0])}}}else{if(formatCode[match[0]]){if(raw!==true&&formatCode[match[0]][3]){var getFn=formatCode[match[0]][3];mask+=getFn.call(dateObjValue.date)}else if(formatCode[match[0]][2])mask+=dateObjValue["raw"+formatCode[match[0]][2]];else mask+=match[0]}else mask+=match[0]}}return mask}function pad(val,len){val=String(val);len=len||2;while(val.length<len){val="0"+val}return val}function analyseMask(maskString,format,opts){var dateObj={date:new Date(1,0,1)},targetProp,mask=maskString,match,dateOperation,targetValidator;function extendProperty(value){var correctedValue=value.replace(/[^0-9]/g,"0");if(correctedValue!=value){var enteredPart=value.replace(/[^0-9]/g,""),min=(opts.min&&opts.min[targetProp]||value).toString(),max=(opts.max&&opts.max[targetProp]||value).toString();correctedValue=enteredPart+(enteredPart<min.slice(0,enteredPart.length)?min.slice(enteredPart.length):enteredPart>max.slice(0,enteredPart.length)?max.slice(enteredPart.length):correctedValue.toString().slice(enteredPart.length))}return correctedValue}function setValue(dateObj,value,opts){dateObj[targetProp]=extendProperty(value);dateObj["raw"+targetProp]=value;if(dateOperation!==undefined)dateOperation.call(dateObj.date,targetProp=="month"?parseInt(dateObj[targetProp])-1:dateObj[targetProp])}if(typeof mask==="string"){while(match=getTokenizer(opts).exec(format)){var value=mask.slice(0,match[0].length);if(formatCode.hasOwnProperty(match[0])){targetValidator=formatCode[match[0]][0];targetProp=formatCode[match[0]][2];dateOperation=formatCode[match[0]][1];setValue(dateObj,value,opts)}mask=mask.slice(value.length)}return dateObj}else if(mask&&(typeof mask==="undefined"?"undefined":_typeof(mask))==="object"&&mask.hasOwnProperty("date")){return mask}return undefined}Inputmask.extendAliases({datetime:{mask:function mask(opts){formatCode.S=opts.i18n.ordinalSuffix.join("|");opts.inputFormat=formatAlias[opts.inputFormat]||opts.inputFormat;opts.displayFormat=formatAlias[opts.displayFormat]||opts.displayFormat||opts.inputFormat;opts.outputFormat=formatAlias[opts.outputFormat]||opts.outputFormat||opts.inputFormat;opts.placeholder=opts.placeholder!==""?opts.placeholder:opts.inputFormat.replace(/[\[\]]/,"");opts.regex=parse(opts.inputFormat,undefined,opts);return null},placeholder:"",inputFormat:"isoDateTime",displayFormat:undefined,outputFormat:undefined,min:null,max:null,i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},postValidation:function postValidation(buffer,pos,currentResult,opts){opts.min=analyseMask(opts.min,opts.inputFormat,opts);opts.max=analyseMask(opts.max,opts.inputFormat,opts);var result=currentResult,dateParts=analyseMask(buffer.join(""),opts.inputFormat,opts);if(result&&dateParts.date.getTime()===dateParts.date.getTime()){result=isValidDate(dateParts,result);result=result&&isDateInRange(dateParts,opts)}if(pos&&result&¤tResult.pos!==pos){return{buffer:parse(opts.inputFormat,dateParts,opts),refreshFromBuffer:{start:pos,end:currentResult.pos}}}return result},onKeyDown:function onKeyDown(e,buffer,caretPos,opts){var input=this;if(e.ctrlKey&&e.keyCode===Inputmask.keyCode.RIGHT){var today=new Date,match,date="";while(match=getTokenizer(opts).exec(opts.inputFormat)){if(match[0].charAt(0)==="d"){date+=pad(today.getDate(),match[0].length)}else if(match[0].charAt(0)==="m"){date+=pad(today.getMonth()+1,match[0].length)}else if(match[0]==="yyyy"){date+=today.getFullYear().toString()}else if(match[0].charAt(0)==="y"){date+=pad(today.getYear(),match[0].length)}}input.inputmask._valueSet(date);$(input).trigger("setvalue")}},onUnMask:function onUnMask(maskedValue,unmaskedValue,opts){return parse(opts.outputFormat,analyseMask(maskedValue,opts.inputFormat,opts),opts,true)},casing:function casing(elem,test,pos,validPositions){if(test.nativeDef.indexOf("[ap]")==0)return elem.toLowerCase();if(test.nativeDef.indexOf("[AP]")==0)return elem.toUpperCase();return elem},insertMode:false,shiftPositions:false}});return Inputmask})},function(module,exports,__webpack_require__){"use strict";var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};(function(factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(2)],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__==="function"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})(function(Inputmask){var $=Inputmask.dependencyLib;function autoEscape(txt,opts){var escapedTxt="";for(var i=0;i<txt.length;i++){if(Inputmask.prototype.definitions[txt.charAt(i)]||opts.definitions[txt.charAt(i)]||opts.optionalmarker.start===txt.charAt(i)||opts.optionalmarker.end===txt.charAt(i)||opts.quantifiermarker.start===txt.charAt(i)||opts.quantifiermarker.end===txt.charAt(i)||opts.groupmarker.start===txt.charAt(i)||opts.groupmarker.end===txt.charAt(i)||opts.alternatormarker===txt.charAt(i)){escapedTxt+="\\"+txt.charAt(i)}else escapedTxt+=txt.charAt(i)}return escapedTxt}
238function alignDigits(buffer,digits,opts){if(digits>0){var radixPosition=$.inArray(opts.radixPoint,buffer);if(radixPosition===-1){buffer.push(opts.radixPoint);radixPosition=buffer.length-1}for(var i=1;i<=digits;i++){buffer[radixPosition+i]=buffer[radixPosition+i]||"0"}}return buffer}Inputmask.extendAliases({numeric:{mask:function mask(opts){if(opts.repeat!==0&&isNaN(opts.integerDigits)){opts.integerDigits=opts.repeat}opts.repeat=0;if(opts.groupSeparator===opts.radixPoint&&opts.digits&&opts.digits!=="0"){if(opts.radixPoint==="."){opts.groupSeparator=","}else if(opts.radixPoint===","){opts.groupSeparator="."}else opts.groupSeparator=""}if(opts.groupSeparator===" "){opts.skipOptionalPartCharacter=undefined}opts.autoGroup=opts.autoGroup&&opts.groupSeparator!=="";if(opts.autoGroup){if(typeof opts.groupSize=="string"&&isFinite(opts.groupSize))opts.groupSize=parseInt(opts.groupSize);if(isFinite(opts.integerDigits)){var seps=Math.floor(opts.integerDigits/opts.groupSize);var mod=opts.integerDigits%opts.groupSize;opts.integerDigits=parseInt(opts.integerDigits)+(mod===0?seps-1:seps);if(opts.integerDigits<1){opts.integerDigits="*"}}}if(opts.placeholder.length>1){opts.placeholder=opts.placeholder.charAt(0)}if(opts.positionCaretOnClick==="radixFocus"&&opts.placeholder===""&&opts.integerOptional===false){opts.positionCaretOnClick="lvp"}opts.definitions[";"]=opts.definitions["~"];opts.definitions[";"].definitionSymbol="~";if(opts.numericInput===true){opts.positionCaretOnClick=opts.positionCaretOnClick==="radixFocus"?"lvp":opts.positionCaretOnClick;opts.digitsOptional=false;if(isNaN(opts.digits))opts.digits=2;opts.decimalProtect=false}var mask="[+]";mask+=autoEscape(opts.prefix,opts);if(opts.integerOptional===true){mask+="~{1,"+opts.integerDigits+"}"}else mask+="~{"+opts.integerDigits+"}";if(opts.digits!==undefined){var radixDef=opts.decimalProtect?":":opts.radixPoint;var dq=opts.digits.toString().split(",");if(isFinite(dq[0])&&dq[1]&&isFinite(dq[1])){mask+=radixDef+";{"+opts.digits+"}"}else if(isNaN(opts.digits)||parseInt(opts.digits)>0){if(opts.digitsOptional){mask+="["+radixDef+";{1,"+opts.digits+"}]"}else mask+=radixDef+";{"+opts.digits+"}"}}mask+=autoEscape(opts.suffix,opts);mask+="[-]";opts.greedy=false;return mask},placeholder:"",greedy:false,digits:"*",digitsOptional:true,enforceDigitsOnBlur:false,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:false,allowMinus:true,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:true,prefix:"",suffix:"",rightAlign:true,decimalProtect:true,min:null,max:null,step:1,insertMode:true,autoUnmask:false,unmaskAsNumber:false,inputType:"text",inputmode:"numeric",preValidation:function preValidation(buffer,pos,c,isSelection,opts,maskset){if(c==="-"||c===opts.negationSymbol.front){if(opts.allowMinus!==true)return false;opts.isNegative=opts.isNegative===undefined?true:!opts.isNegative;if(buffer.join("")==="")return true;return{caret:maskset.validPositions[pos]?pos:undefined,dopost:true}}if(isSelection===false&&c===opts.radixPoint&&opts.digits!==undefined&&(isNaN(opts.digits)||parseInt(opts.digits)>0)){var radixPos=$.inArray(opts.radixPoint,buffer);if(radixPos!==-1&&maskset.validPositions[radixPos]!==undefined){if(opts.numericInput===true){return pos===radixPos}return{caret:radixPos+1}}}return true},postValidation:function postValidation(buffer,pos,currentResult,opts){function buildPostMask(buffer,opts){var postMask="";postMask+="("+opts.groupSeparator+"*{"+opts.groupSize+"}){*}";if(opts.radixPoint!==""){var radixSplit=buffer.join("").split(opts.radixPoint);if(radixSplit[1]){postMask+=opts.radixPoint+"*{"+radixSplit[1].match(/^\d*\??\d*/)[0].length+"}"}}return postMask}var suffix=opts.suffix.split(""),prefix=opts.prefix.split("");if(currentResult.pos===undefined&¤tResult.caret!==undefined&¤tResult.dopost!==true)return currentResult;var caretPos=currentResult.caret!==undefined?currentResult.caret:currentResult.pos;var maskedValue=buffer.slice();if(opts.numericInput){caretPos=maskedValue.length-caretPos-1;maskedValue=maskedValue.reverse()}var charAtPos=maskedValue[caretPos];if(charAtPos===opts.groupSeparator){caretPos+=1;charAtPos=maskedValue[caretPos]}
238if(caretPos===maskedValue.length-opts.suffix.length-1&&charAtPos===opts.radixPoint)return currentResult;if(charAtPos!==undefined){if(charAtPos!==opts.radixPoint&&charAtPos!==opts.negationSymbol.front&&charAtPos!==opts.negationSymbol.back){maskedValue[caretPos]="?";if(opts.prefix.length>0&&caretPos>=(opts.isNegative===false?1:0)&&caretPos<opts.prefix.length-1+(opts.isNegative===false?1:0)){prefix[caretPos-(opts.isNegative===false?1:0)]="?"}else if(opts.suffix.length>0&&caretPos>=maskedValue.length-opts.suffix.length-(opts.isNegative===false?1:0)){suffix[caretPos-(maskedValue.length-opts.suffix.length-(opts.isNegative===false?1:0))]="?"}}}prefix=prefix.join("");suffix=suffix.join("");var processValue=maskedValue.join("").replace(prefix,"");processValue=processValue.replace(suffix,"");processValue=processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator),"g"),"");processValue=processValue.replace(new RegExp("[-"+Inputmask.escapeRegex(opts.negationSymbol.front)+"]","g"),"");processValue=processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back)+"$"),"");if(isNaN(opts.placeholder)){processValue=processValue.replace(new RegExp(Inputmask.escapeRegex(opts.placeholder),"g"),"")}if(processValue.length>1&&processValue.indexOf(opts.radixPoint)!==1){if(charAtPos==="0"){processValue=processValue.replace(/^\?/g,"")}processValue=processValue.replace(/^0/g,"")}if(processValue.charAt(0)===opts.radixPoint&&opts.radixPoint!==""&&opts.numericInput!==true){processValue="0"+processValue}if(processValue!==""){processValue=processValue.split("");if((!opts.digitsOptional||opts.enforceDigitsOnBlur&¤tResult.event==="blur")&&isFinite(opts.digits)){var radixPosition=$.inArray(opts.radixPoint,processValue);var rpb=$.inArray(opts.radixPoint,maskedValue);if(radixPosition===-1){processValue.push(opts.radixPoint);radixPosition=processValue.length-1}for(var i=1;i<=opts.digits;i++){if((!opts.digitsOptional||opts.enforceDigitsOnBlur&¤tResult.event==="blur")&&(processValue[radixPosition+i]===undefined||processValue[radixPosition+i]===opts.placeholder.charAt(0))){processValue[radixPosition+i]=currentResult.placeholder||opts.placeholder.charAt(0)}else if(rpb!==-1&&maskedValue[rpb+i]!==undefined){processValue[radixPosition+i]=processValue[radixPosition+i]||maskedValue[rpb+i]}}}if(opts.autoGroup===true&&opts.groupSeparator!==""&&(charAtPos!==opts.radixPoint||currentResult.pos!==undefined||currentResult.dopost)){var addRadix=processValue[processValue.length-1]===opts.radixPoint&¤tResult.c===opts.radixPoint;processValue=Inputmask(buildPostMask(processValue,opts),{numericInput:true,jitMasking:true,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(processValue.join(""));if(addRadix)processValue+=opts.radixPoint;if(processValue.charAt(0)===opts.groupSeparator){processValue.substr(1)}}else processValue=processValue.join("")}if(opts.isNegative&¤tResult.event==="blur"){opts.isNegative=processValue!=="0"}processValue=prefix+processValue;processValue+=suffix;if(opts.isNegative){processValue=opts.negationSymbol.front+processValue;processValue+=opts.negationSymbol.back}processValue=processValue.split("");if(charAtPos!==undefined){if(charAtPos!==opts.radixPoint&&charAtPos!==opts.negationSymbol.front&&charAtPos!==opts.negationSymbol.back){caretPos=$.inArray("?",processValue);if(caretPos>-1){processValue[caretPos]=charAtPos}else caretPos=currentResult.caret||0}else if(charAtPos===opts.radixPoint||charAtPos===opts.negationSymbol.front||charAtPos===opts.negationSymbol.back){var newCaretPos=$.inArray(charAtPos,processValue);if(newCaretPos!==-1)caretPos=newCaretPos}}if(opts.numericInput){caretPos=processValue.length-caretPos-1;processValue=processValue.reverse()}var rslt={caret:(charAtPos===undefined||currentResult.pos!==undefined)&&caretPos!==undefined?caretPos+(opts.numericInput?-1:1):caretPos,buffer:processValue,refreshFromBuffer:currentResult.dopost||buffer.join("")!==processValue.join("")};return rslt.refreshFromBuffer?rslt:currentResult},onBeforeWrite:function onBeforeWrite(e,buffer,caretPos,opts){function parseMinMaxOptions(opts){if(opts.parseMinMaxOptions===undefined){if(opts.min!==null){opts.min=opts.min.toString().replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator),"g"),"");if(opts.radixPoint===",")opts.min=opts.min.replace(opts.radixPoint,".");opts.min=isFinite(opts.min)?parseFloat(opts.min):NaN;if(isNaN(opts.min))opts.min=Number.MIN_VALUE}if(opts.max!==null){opts.max=opts.max.toString().replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator),"g"),"");if(opts.radixPoint===",")opts.max=opts.max.replace(opts.radixPoint,".");opts.max=isFinite(opts.max)?parseFloat(opts.max):NaN;if(isNaN(opts.max))opts.max=Number.MAX_VALUE}opts.parseMinMaxOptions="done"}}if(e){switch(e.type){case"keydown":return opts.postValidation(buffer,caretPos,{caret:caretPos,dopost:true},opts);case"blur":case"checkval":var unmasked;parseMinMaxOptions(opts);if(opts.min!==null||opts.max!==null){unmasked=opts.onUnMask(buffer.join(""),undefined,$.extend({},opts,{unmaskAsNumber:true}));if(opts.min!==null&&unmasked<opts.min){opts.isNegative=opts.min<0;return opts.postValidation(opts.min.toString().replace(".",opts.radixPoint).split(""),caretPos,{caret:caretPos,dopost:true,placeholder:"0"},opts)}else if(opts.max!==null&&unmasked>opts.max){opts.isNegative=opts.max<0;return opts.postValidation(opts.max.toString().replace(".",opts.radixPoint).split(""),caretPos,{caret:caretPos,dopost:true,placeholder:"0"},opts)}}return opts.postValidation(buffer,caretPos,{caret:caretPos,placeholder:"0",event:"blur"},opts);case"_checkval":return{caret:caretPos};default:break}}},regex:{integerPart:function integerPart(opts,emptyCheck){return emptyCheck?new RegExp("["+Inputmask.escapeRegex(opts.negationSymbol.front)+"+]?"):new RegExp("["+Inputmask.escapeRegex(opts.negationSymbol.front)+"+]?\\d+")},integerNPart:function integerNPart(opts){return new RegExp("[\\d"+Inputmask.escapeRegex(opts.groupSeparator)+Inputmask.escapeRegex(opts.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function validator(chrs,maskset,pos,strict,opts,isSelection){var isValid,l;if(chrs==="k"||chrs==="m"){isValid={insert:[],c:0};for(var i=0,l=chrs==="k"?2:5;i<l;i++){isValid.insert.push({pos:pos+i,c:0})}isValid.pos=pos+l;return isValid}isValid=strict?new RegExp("[0-9"+Inputmask.escapeRegex(opts.groupSeparator)+"]").test(chrs):new RegExp("[0-9]").test(chrs);if(isValid===true){if(opts.numericInput!==true&&maskset.validPositions[pos]!==undefined&&maskset.validPositions[pos].match.def==="~"&&!isSelection){var processValue=maskset.buffer.join("");processValue=processValue.replace(new RegExp("[-"+Inputmask.escapeRegex(opts.negationSymbol.front)+"]","g"),"");processValue=processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back)+"$"),"");var pvRadixSplit=processValue.split(opts.radixPoint);if(pvRadixSplit.length>1){pvRadixSplit[1]=pvRadixSplit[1].replace(/0/g,opts.placeholder.charAt(0))}if(pvRadixSplit[0]==="0"){pvRadixSplit[0]=pvRadixSplit[0].replace(/0/g,opts.placeholder.charAt(0))}processValue=pvRadixSplit[0]+opts.radixPoint+pvRadixSplit[1]||"";var bufferTemplate=maskset._buffer.join("");if(processValue===opts.radixPoint){processValue=bufferTemplate}while(processValue.match(Inputmask.escapeRegex(bufferTemplate)+"$")===null){bufferTemplate=bufferTemplate.slice(1)}processValue=processValue.replace(bufferTemplate,"");processValue=processValue.split("");
238if(processValue[pos]===undefined){isValid={pos:pos,remove:pos}}else{isValid={pos:pos}}}}else if(!strict&&chrs===opts.radixPoint&&maskset.validPositions[pos-1]===undefined){isValid={insert:{pos:pos,c:0},pos:pos+1}}return isValid},cardinality:1},"+":{validator:function validator(chrs,maskset,pos,strict,opts){return opts.allowMinus&&(chrs==="-"||chrs===opts.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function validator(chrs,maskset,pos,strict,opts){return opts.allowMinus&&chrs===opts.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function validator(chrs,maskset,pos,strict,opts){var radix="["+Inputmask.escapeRegex(opts.radixPoint)+"]";var isValid=new RegExp(radix).test(chrs);if(isValid&&maskset.validPositions[pos]&&maskset.validPositions[pos].match.placeholder===opts.radixPoint){isValid={caret:pos+1}}return isValid},cardinality:1,placeholder:function placeholder(opts){return opts.radixPoint}}},onUnMask:function onUnMask(maskedValue,unmaskedValue,opts){if(unmaskedValue===""&&opts.nullable===true){return unmaskedValue}var processValue=maskedValue.replace(opts.prefix,"");processValue=processValue.replace(opts.suffix,"");processValue=processValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator),"g"),"");if(opts.placeholder.charAt(0)!==""){processValue=processValue.replace(new RegExp(opts.placeholder.charAt(0),"g"),"0")}if(opts.unmaskAsNumber){if(opts.radixPoint!==""&&processValue.indexOf(opts.radixPoint)!==-1)processValue=processValue.replace(Inputmask.escapeRegex.call(this,opts.radixPoint),".");processValue=processValue.replace(new RegExp("^"+Inputmask.escapeRegex(opts.negationSymbol.front)),"-");processValue=processValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back)+"$"),"");return Number(processValue)}return processValue},isComplete:function isComplete(buffer,opts){var maskedValue=(opts.numericInput?buffer.slice().reverse():buffer).join("");maskedValue=maskedValue.replace(new RegExp("^"+Inputmask.escapeRegex(opts.negationSymbol.front)),"-");maskedValue=maskedValue.replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back)+"$"),"");maskedValue=maskedValue.replace(opts.prefix,"");maskedValue=maskedValue.replace(opts.suffix,"");maskedValue=maskedValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator)+"([0-9]{3})","g"),"$1");if(opts.radixPoint===",")maskedValue=maskedValue.replace(Inputmask.escapeRegex(opts.radixPoint),".");return isFinite(maskedValue)},onBeforeMask:function onBeforeMask(initialValue,opts){opts.isNegative=undefined;var radixPoint=opts.radixPoint||",";if((typeof initialValue=="number"||opts.inputType==="number")&&radixPoint!==""){initialValue=initialValue.toString().replace(".",radixPoint)}var valueParts=initialValue.split(radixPoint),integerPart=valueParts[0].replace(/[^\-0-9]/g,""),decimalPart=valueParts.length>1?valueParts[1].replace(/[^0-9]/g,""):"";initialValue=integerPart+(decimalPart!==""?radixPoint+decimalPart:decimalPart);var digits=0;if(radixPoint!==""){digits=decimalPart.length;if(decimalPart!==""){var digitsFactor=Math.pow(10,digits||1);if(isFinite(opts.digits)){digits=parseInt(opts.digits);digitsFactor=Math.pow(10,digits)}initialValue=initialValue.replace(Inputmask.escapeRegex(radixPoint),".");if(isFinite(initialValue))initialValue=Math.round(parseFloat(initialValue)*digitsFactor)/digitsFactor;initialValue=initialValue.toString().replace(".",radixPoint)}}if(opts.digits===0&&initialValue.indexOf(Inputmask.escapeRegex(radixPoint))!==-1){initialValue=initialValue.substring(0,initialValue.indexOf(Inputmask.escapeRegex(radixPoint)))}return alignDigits(initialValue.toString().split(""),digits,opts).join("")},onKeyDown:function onKeyDown(e,buffer,caretPos,opts){var $input=$(this);if(e.ctrlKey){switch(e.keyCode){case Inputmask.keyCode.UP:$input.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(opts.step));$input.trigger("setvalue");break;case Inputmask.keyCode.DOWN:$input.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(opts.step));$input.trigger("setvalue");break}}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:true,digits:2,digitsOptional:false,clearMaskOnLostFocus:false}
238,decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,digitsOptional:true,radixPoint:".",placeholder:"0",autoGroup:false,min:0,max:100,suffix:" %",allowMinus:false}});return Inputmask})},function(module,exports,__webpack_require__){"use strict";var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};(function(factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(4),__webpack_require__(2)],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__==="function"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})(function($,Inputmask){if($.fn.inputmask===undefined){$.fn.inputmask=function(fn,options){var nptmask,input=this[0];if(options===undefined)options={};if(typeof fn==="string"){switch(fn){case"unmaskedvalue":return input&&input.inputmask?input.inputmask.unmaskedvalue():$(input).val();case"remove":return this.each(function(){if(this.inputmask)this.inputmask.remove()});case"getemptymask":return input&&input.inputmask?input.inputmask.getemptymask():"";case"hasMaskedValue":return input&&input.inputmask?input.inputmask.hasMaskedValue():false;case"isComplete":return input&&input.inputmask?input.inputmask.isComplete():true;case"getmetadata":return input&&input.inputmask?input.inputmask.getmetadata():undefined;case"setvalue":Inputmask.setValue(input,options);break;case"option":if(typeof options==="string"){if(input&&input.inputmask!==undefined){return input.inputmask.option(options)}}else{return this.each(function(){if(this.inputmask!==undefined){return this.inputmask.option(options)}})}break;default:options.alias=fn;nptmask=new Inputmask(options);return this.each(function(){nptmask.mask(this)})}}else if(Array.isArray(fn)){options.alias=fn;nptmask=new Inputmask(options);return this.each(function(){nptmask.mask(this)})}else if((typeof fn==="undefined"?"undefined":_typeof(fn))=="object"){nptmask=new Inputmask(fn);if(fn.mask===undefined&&fn.alias===undefined){return this.each(function(){if(this.inputmask!==undefined){return this.inputmask.option(fn)}else nptmask.mask(this)})}else{return this.each(function(){nptmask.mask(this)})}}else if(fn===undefined){return this.each(function(){nptmask=new Inputmask(options);nptmask.mask(this)})}}}return $.fn.inputmask})}]); 239/* End */ 240; 241; /* Start:"a:4:{s:4:"full";s:66:"/bitrix/templates/aspro_max/js/jquery.easing.1.3.js?16586591538095";s:6:"source";s:51:"/bitrix/templates/aspro_max/js/jquery.easing.1.3.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 242/* 243 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 244 * 245 * Uses the built in easing capabilities added In jQuery 1.1 246 * to offer multiple easing options 247 * 248 * TERMS OF USE - jQuery Easing 249 * 250 * Open source under the BSD License. 251 * 252 * Copyright © 2008 George McGinley Smith 253 * All rights reserved. 254 * 255 * Redistribution and use in source and binary forms, with or without modification, 256 * are permitted provided that the following conditions are met: 257 * 258 * Redistributions of source code must retain the above copyright notice, this list of 259 * conditions and the following disclaimer. 260 * Redistributions in binary form must reproduce the above copyright notice, this list 261 * of conditions and the following disclaimer in the documentation and/or other materials 262 * provided with the distribution. 263 * 264 * Neither the name of the author nor the names of contributors may be used to endorse 265 * or promote products derived from this software without specific prior written permission. 266 * 267 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 268 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 269 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 270 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
vendor: 5,091 bytes, lines 271-416
271 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 272 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 273 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 274 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 275 * OF THE POSSIBILITY OF SUCH DAMAGE. 276 * 277*/ 278 279// t: current time, b: begInnIng value, c: change In value, d: duration 280jQuery.easing['jswing'] = jQuery.easing['swing']; 281 282jQuery.extend( jQuery.easing, 283{ 284 def: 'easeOutQuad', 285 swing: function (x, t, b, c, d) { 286 //alert(jQuery.easing.default); 287 return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 288 }, 289 easeInQuad: function (x, t, b, c, d) { 290 return c*(t/=d)*t + b; 291 }, 292 easeOutQuad: function (x, t, b, c, d) { 293 return -c *(t/=d)*(t-2) + b; 294 }, 295 easeInOutQuad: function (x, t, b, c, d) { 296 if ((t/=d/2) < 1) return c/2*t*t + b; 297 return -c/2 * ((--t)*(t-2) - 1) + b; 298 }, 299 easeInCubic: function (x, t, b, c, d) { 300 return c*(t/=d)*t*t + b; 301 }, 302 easeOutCubic: function (x, t, b, c, d) { 303 return c*((t=t/d-1)*t*t + 1) + b; 304 }, 305 easeInOutCubic: function (x, t, b, c, d) { 306 if ((t/=d/2) < 1) return c/2*t*t*t + b; 307 return c/2*((t-=2)*t*t + 2) + b; 308 }, 309 easeInQuart: function (x, t, b, c, d) { 310 return c*(t/=d)*t*t*t + b; 311 }, 312 easeOutQuart: function (x, t, b, c, d) { 313 return -c * ((t=t/d-1)*t*t*t - 1) + b; 314 }, 315 easeInOutQuart: function (x, t, b, c, d) { 316 if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 317 return -c/2 * ((t-=2)*t*t*t - 2) + b; 318 }, 319 easeInQuint: function (x, t, b, c, d) { 320 return c*(t/=d)*t*t*t*t + b; 321 }, 322 easeOutQuint: function (x, t, b, c, d) { 323 return c*((t=t/d-1)*t*t*t*t + 1) + b; 324 }, 325 easeInOutQuint: function (x, t, b, c, d) { 326 if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 327 return c/2*((t-=2)*t*t*t*t + 2) + b; 328 }, 329 easeInSine: function (x, t, b, c, d) { 330 return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 331 }, 332 easeOutSine: function (x, t, b, c, d) { 333 return c * Math.sin(t/d * (Math.PI/2)) + b; 334 }, 335 easeInOutSine: function (x, t, b, c, d) { 336 return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 337 }, 338 easeInExpo: function (x, t, b, c, d) { 339 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 340 }, 341 easeOutExpo: function (x, t, b, c, d) { 342 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 343 }, 344 easeInOutExpo: function (x, t, b, c, d) { 345 if (t==0) return b; 346 if (t==d) return b+c; 347 if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 348 return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 349 }, 350 easeInCirc: function (x, t, b, c, d) { 351 return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 352 }, 353 easeOutCirc: function (x, t, b, c, d) { 354 return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 355 }, 356 easeInOutCirc: function (x, t, b, c, d) { 357 if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 358 return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 359 }, 360 easeInElastic: function (x, t, b, c, d) { 361 var s=1.70158;var p=0;var a=c; 362 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 363 if (a < Math.abs(c)) { a=c; var s=p/4; } 364 else var s = p/(2*Math.PI) * Math.asin (c/a); 365 return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 366 }, 367 easeOutElastic: function (x, t, b, c, d) { 368 var s=1.70158;var p=0;var a=c; 369 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 370 if (a < Math.abs(c)) { a=c; var s=p/4; } 371 else var s = p/(2*Math.PI) * Math.asin (c/a); 372 return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 373 }, 374 easeInOutElastic: function (x, t, b, c, d) { 375 var s=1.70158;var p=0;var a=c; 376 if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 377 if (a < Math.abs(c)) { a=c; var s=p/4; } 378 else var s = p/(2*Math.PI) * Math.asin (c/a); 379 if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 380 return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 381 }, 382 easeInBack: function (x, t, b, c, d, s) { 383 if (s == undefined) s = 1.70158; 384 return c*(t/=d)*t*((s+1)*t - s) + b; 385 }, 386 easeOutBack: function (x, t, b, c, d, s) { 387 if (s == undefined) s = 1.70158; 388 return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 389 }, 390 easeInOutBack: function (x, t, b, c, d, s) { 391 if (s == undefined) s = 1.70158; 392 if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 393 return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 394 }, 395 easeInBounce: function (x, t, b, c, d) { 396 return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 397 }, 398 easeOutBounce: function (x, t, b, c, d) { 399 if ((t/=d) < (1/2.75)) { 400 return c*(7.5625*t*t) + b; 401 } else if (t < (2/2.75)) { 402 return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 403 } else if (t < (2.5/2.75)) { 404 return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 405 } else { 406 return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 407 } 408 }, 409 easeInOutBounce: function (x, t, b, c, d) { 410 if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 411 return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 412 } 413}); 414 415/* 416 *
417 * TERMS OF USE - EASING EQUATIONS 418 * 419 * Open source under the BSD License. 420 * 421 * Copyright © 2001 Robert Penner 422 * All rights reserved. 423 * 424 * Redistribution and use in source and binary forms, with or without modification, 425 * are permitted provided that the following conditions are met: 426 * 427 * Redistributions of source code must retain the above copyright notice, this list of 428 * conditions and the following disclaimer. 429 * Redistributions in binary form must reproduce the above copyright notice, this list 430 * of conditions and the following disclaimer in the documentation and/or other materials 431 * provided with the distribution. 432 * 433 * Neither the name of the author nor the names of contributors may be used to endorse 434 * or promote products derived from this software without specific prior written permission. 435 * 436 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 437 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 438 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 439 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 440 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 441 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 442 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 443 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 444 * OF THE POSSIBILITY OF SUCH DAMAGE. 445 * 446 */ 447/* End */ 448; 449; /* Start:"a:4:{s:4:"full";s:60:"/bitrix/templates/aspro_max/js/equalize.min.js?1658659153588";s:6:"source";s:46:"/bitrix/templates/aspro_max/js/equalize.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 450/** 451 * equalize.js 452 * Author & copyright (c) 2012: Tim Svensen 453 * Dual MIT & GPL license 454 * 455 * Page: http://tsvensen.github.com/equalize.js 456 * Repo: https://github.com/tsvensen/equalize.js/ 457 */ 458(function(b){b.fn.equalize=function(a){var d=!1,g=!1,c,e;b.isPlainObject(a)?(c=a.equalize||"height",d=a.children||!1,g=a.reset||!1):c=a||"height";if(!b.isFunction(b.fn[c]))return!1;e=0<c.indexOf("eight")?"height":"width";return this.each(function(){var a=d?b(this).find(d):b(this).children(),f=0;a.each(function(){var a=b(this);g&&a.css(e,"");a=a[c]();a>f&&(f=a)});a.css(e,f+"px")})}})(jQuery); 459/* End */ 460; 461; /* Start:"a:4:{s:4:"full";s:68:"/bitrix/templates/aspro_max/js/jquery.alphanumeric.js?16586591531972";s:6:"source";s:53:"/bitrix/templates/aspro_max/js/jquery.alphanumeric.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 462(function ($) { 463 $.fn.alphanumeric = function (p) { 464 var input = $(this), 465 az = "abcdefghijklmnopqrstuvwxyz", 466 options = $.extend({ 467 ichars: '!@#$%^&*()+=[]\\\';,/{}|":<>?~`.- _', 468 nchars: '', 469 allow: '' 470 }, p), 471 s = options.allow.split(''), 472 i = 0, 473 ch, 474 regex; 475 476 for (i; i < s.length; i++) { 477 if (options.ichars.indexOf(s[i]) != -1) { 478 s[i] = '\\' + s[i]; 479 } 480 } 481 482 if (options.nocaps) { 483 options.nchars += az.toUpperCase(); 484 } 485 if (options.allcaps) { 486 options.nchars += az; 487 } 488 489 options.allow = s.join('|'); 490 491 regex = new RegExp(options.allow, 'gi'); 492 ch = (options.ichars + options.nchars).replace(regex, ''); 493 494 input.keypress(function (e) { 495 var key = String.fromCharCode(!e.charCode ? e.which : e.charCode); 496 497 if (ch.indexOf(key) != -1 && !e.ctrlKey) { 498 e.preventDefault(); 499 } 500 }); 501 502 input.blur(function () { 503 var value = input.val(), 504 j = 0; 505 506 for (j; j < value.length; j++) { 507 if (ch.indexOf(value[j]) != -1) { 508 input.val(''); 509 return false; 510 } 511 } 512 return false; 513 }); 514 515 return input; 516 }; 517 518 $.fn.numeric = function (p) { 519 var az = 'abcdefghijklmnopqrstuvwxyz', 520 aZ = az.toUpperCase(); 521 522 return this.each(function () {
523 $(this).alphanumeric($.extend({ nchars: az + aZ }, p)); 524 }); 525 }; 526 527 $.fn.alpha = function (p) { 528 var nm = '1234567890'; 529 return this.each(function () { 530 $(this).alphanumeric($.extend({ nchars: nm }, p)); 531 }); 532 }; 533})(jQuery); 534/* End */ 535; 536; /* Start:"a:4:{s:4:"full";s:66:"/bitrix/templates/aspro_max/js/jquery.cookie.min.js?16586591533066";s:6:"source";s:47:"/bitrix/templates/aspro_max/js/jquery.cookie.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 537/*! 538 * jQuery Cookie Plugin v1.4.0 539 * https://github.com/carhartl/jquery-cookie 540 * 541 * Copyright 2013 Klaus Hartl 542 * Released under the MIT license 543 */ 544(function (factory) { 545 if (typeof define === 'function' && define.amd) { 546 // AMD. Register as anonymous module. 547 define(['jquery'], factory); 548 } else { 549 // Browser globals. 550 factory(jQuery); 551 } 552}(function ($) { 553 554 var pluses = /\+/g; 555 556 function encode(s) { 557 return config.raw ? s : encodeURIComponent(s); 558 } 559 560 function decode(s) { 561 return config.raw ? s : decodeURIComponent(s); 562 } 563 564 function stringifyCookieValue(value) { 565 return encode(config.json ? JSON.stringify(value) : String(value)); 566 } 567 568 function parseCookieValue(s) { 569 if (s.indexOf('"') === 0) { 570 // This is a quoted cookie as according to RFC2068, unescape... 571 s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); 572 } 573 574 try { 575 // Replace server-side written pluses with spaces. 576 // If we can't decode the cookie, ignore it, it's unusable. 577 // If we can't parse the cookie, ignore it, it's unusable. 578 s = decodeURIComponent(s.replace(pluses, ' ')); 579 return config.json ? JSON.parse(s) : s; 580 } catch(e) {} 581 } 582 583 function read(s, converter) { 584 var value = config.raw ? s : parseCookieValue(s); 585 return $.isFunction(converter) ? converter(value) : value; 586 } 587 588 var config = $.cookie = function (key, value, options) { 589 590 // Write 591 592 if (value !== undefined && !$.isFunction(value)) { 593 options = $.extend({}, config.defaults, options); 594 595 if (typeof options.expires === 'number') { 596 var days = options.expires, t = options.expires = new Date(); 597 t.setTime(+t + days * 864e+5); 598 } 599 600 return (document.cookie = [ 601 encode(key), '=', stringifyCookieValue(value), 602 options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE 603 options.path ? '; path=' + options.path : '', 604 options.domain ? '; domain=' + options.domain : '', 605 options.secure ? '; secure' : '' 606 ].join('')); 607 } 608 609 // Read 610 611 var result = key ? undefined : {}; 612 613 // To prevent the for loop in the first place assign an empty array 614 // in case there are no cookies at all. Also prevents odd result when 615 // calling $.cookie(). 616 var cookies = document.cookie ? document.cookie.split('; ') : []; 617 618 for (var i = 0, l = cookies.length; i < l; i++) { 619 var parts = cookies[i].split('='); 620 var name = decode(parts.shift()); 621 var cookie = parts.join('='); 622 623 if (key && key === name) { 624 // If second argument (value) is a function it's a converter... 625 result = read(cookie, value); 626 break; 627 } 628 629 // Prevent storing a cookie that we couldn't decode. 630 if (!key && (cookie = read(cookie)) !== undefined) { 631 result[name] = cookie; 632 } 633 } 634 635 return result; 636 }; 637 638 config.defaults = {}; 639 640 $.removeCookie = function (key, options) { 641 if ($.cookie(key) === undefined) { 642 return false; 643 } 644 645 // Must not alter options, thus extending a fresh object... 646 $.cookie(key, '', $.extend({}, options, { expires: -1 })); 647 return !$.cookie(key); 648 }; 649 650})); 651 652/* End */ 653; 654; /* Start:"a:4:{s:4:"full";s:66:"/bitrix/templates/aspro_max/js/jquery.plugin.min.js?16586591523181";s:6:"source";s:51:"/bitrix/templates/aspro_max/js/jquery.plugin.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 655/** Abstract base class for collection plugins v1.0.1. 656 Written by Keith Wood (kbwood{at}iinet.com.au) December 2013. 657 Licensed under the MIT (http://keith-wood.name/licence.html) license. */ 658(function(){var j=false;window.JQClass=function(){};JQClass.classes={};JQClass.extend=function extender(f){var g=this.prototype;j=true;var h=new this();j=false;for(var i in f){h[i]=typeof f[i]=='function'&&typeof g[i]=='function'?(function(d,e){return function(){var b=this._super;this._super=function(a){return g[d].apply(this,a||[])};var c=e.apply(this,arguments);this._super=b;return c}})(i,f[i]):f[i]}function JQClass(){if(!j&&this._init){this._init.apply(this,arguments)}}JQClass.prototype=h;JQClass.prototype.constructor=JQClass;JQClass.extend=extender;return JQClass}})();(function($){JQClass.classes.JQPlugin=JQClass.extend({name:'plugin',defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return'is-'+this.name},_init:function(){$.extend(this.defaultOptions,(this.regionalOptions&&this.regionalOptions[''])||{});var c=camelCase(this.name);$[c]=this;$.fn[c]=function(a){var b=Array.prototype.slice.call(arguments,1
658);if($[c]._isNotChained(a,b)){return $[c][a].apply($[c],[this[0]].concat(b))}return this.each(function(){if(typeof a==='string'){if(a[0]==='_'||!$[c][a]){throw'Unknown method: '+a;}$[c][a].apply($[c],[this].concat(b))}else{$[c]._attach(this,a)}})}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_isNotChained:function(a,b){if(a==='option'&&(b.length===0||(b.length===1&&typeof b[0]==='string'))){return true}return $.inArray(a,this._getters)>-1},_attach:function(a,b){a=$(a);if(a.hasClass(this._getMarker())){return}a.addClass(this._getMarker());b=$.extend({},this.defaultOptions,this._getMetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c);this._postAttach(a,c);this.option(a,b)},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||'';f=f.replace(/'/g,'"');f=f.replace(/([a-zA-Z0-9]+):/g,function(a,b,i){var c=f.substring(0,i).match(/"/g);return(!c||c.length%2===0?'"'+b+'":':b+':')});f=$.parseJSON('{'+f+'}');for(var g in f){var h=f[g];if(typeof h==='string'&&h.match(/^new Date\((.*)\)$/)){f[g]=eval(h)}}return f}catch(e){return{}}},_getInst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name);if(!b||(typeof b==='string'&&c==null)){var e=(d||{}).options;return(e&&b?e[b]:e)}if(!a.hasClass(this._getMarker())){return}var e=b||{};if(typeof b==='string'){e={};e[b]=c}this._optionsChanged(a,d,e);$.extend(d.options,e)},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a);if(!a.hasClass(this._getMarker())){return}this._preDestroy(a,this._getInst(a));a.removeData(this.name).removeClass(this._getMarker())},_preDestroy:function(a,b){}});function camelCase(c){return c.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}$.JQPlugin={createPlugin:function(a,b){if(typeof a==='object'){b=a;a='JQPlugin'}a=camelCase(a);var c=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b);new JQClass.classes[c]()}}})(jQuery); 659/* End */ 660; 661; /* Start:"a:4:{s:4:"full";s:70:"/bitrix/templates/aspro_max/js/jquery.countdown.min.js?165865915313137";s:6:"source";s:54:"/bitrix/templates/aspro_max/js/jquery.countdown.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 662!function(e){var t="countdown",i=0,s=1,n=2,o=3,r=4,a=5,l=6;e.JQPlugin.createPlugin({name:t,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_getters:["getTimes"],_rtlClass:t+"-rtl",_sectionClass:t+"-section",_amountClass:t+"-amount",_periodClass:t+"-period",_rowClass:t+"-row",_holdingClass:t+"-holding",_showClass:t+"-show",_descrClass:t+"-descr",_timerElems:[],_init:function(){function t(e){var a=1e12>e?n?performance.now()+performance.timing.navigationStart:s():e||s();a-r>=1e3&&(i._updateElems(),r=a),o(t)}var i=this;this._super(),this._serverSyncs=[];var s="function"==typeof Date.now?Date.now:function(){return(new Date).getTime()},n=window.performance&&"function"==typeof window.performance.now,o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,r=0;!o||e.noRequestAnimationFrame?(e.noRequestAnimationFrame=null,setInterval(function(){i._updateElems()},980)):(r=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||s(),o(t))},UTCDate:function(e,t,i,s,n,o,r,a){"object"==typeof t&&t.constructor==Date&&(a=t.getMilliseconds(),r=t.getSeconds(),o=t.getMinutes(),n=t.getHours(),s=t.getDate(),i=t.getMonth(),t=t.getFullYear());var l=new Date;return l.setUTCFullYear(t),l.setUTCDate(1),l.setUTCMonth(i||0),l.setUTCDate(s||1),l.setUTCHours(n||0),l.setUTCMinutes((o||0)-(Math.abs(e)<30?60*e:e)),l.setUTCSeconds(r||0),l.setUTCMilliseconds(a||0),l}
662,periodsToSeconds:function(e){return 31557600*e[0]+2629800*e[1]+604800*e[2]+86400*e[3]+3600*e[4]+60*e[5]+e[6]},resync:function(){var t=this;e("."+this._getMarker()).each(function(){var i=e.data(this,t.name);if(i.options.serverSync){for(var s=null,n=0;n<t._serverSyncs.length;n++)if(t._serverSyncs[n][0]==i.options.serverSync){s=t._serverSyncs[n];break}if(null==s[2]){var o=e.isFunction(i.options.serverSync)?i.options.serverSync.apply(this,[]):null;s[2]=(o?(new Date).getTime()-o.getTime():0)-s[1]}i._since&&i._since.setMilliseconds(i._since.getMilliseconds()+s[2]),i._until.setMilliseconds(i._until.getMilliseconds()+s[2])}});for(var i=0;i<t._serverSyncs.length;i++)null!=t._serverSyncs[i][2]&&(t._serverSyncs[i][1]+=t._serverSyncs[i][2],delete t._serverSyncs[i][2])},_instSettings:function(e,t){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(e){this._hasElem(e)||this._timerElems.push(e)},_hasElem:function(t){return e.inArray(t,this._timerElems)>-1},_removeElem:function(t){this._timerElems=e.map(this._timerElems,function(e){return e==t?null:e})},_updateElems:function(){for(var e=this._timerElems.length-1;e>=0;e--)this._updateCountdown(this._timerElems[e])},_optionsChanged:function(t,i,s){s.layout&&(s.layout=s.layout.replace(/</g,"<").replace(/>/g,">")),this._resetExtraLabels(i.options,s);var n=i.options.timezone!=s.timezone;e.extend(i.options,s),this._adjustSettings(t,i,null!=s.until||null!=s.since||n);var o=new Date;(i._since&&i._since<o||i._until&&i._until>o)&&this._addElem(t[0]),this._updateCountdown(t,i)},_updateCountdown:function(t,i){if(t=t.jquery?t:e(t),i=i||this._getInst(t),i&&i.options){if(t.html(this._generateHTML(i)).toggleClass(this._rtlClass,i.options.isRTL),e.isFunction(i.options.onT
662ick)){var s="lap"!=i._hold?i._periods:this._calculatePeriods(i,i._show,i.options.significant,new Date);(1==i.options.tickInterval||this.periodsToSeconds(s)%i.options.tickInterval==0)&&i.options.onTick.apply(t[0],[s])}var n="pause"!=i._hold&&(i._since?i._now.getTime()<i._since.getTime():i._now.getTime()>=i._until.getTime());if(n&&!i._expiring){if(i._expiring=!0,this._hasElem(t[0])||i.options.alwaysExpire){if(this._removeElem(t[0]),e.isFunction(i.options.onExpiry)&&i.options.onExpiry.apply(t[0],[]),i.options.expiryText){var o=i.options.layout;i.options.layout=i.options.expiryText,this._updateCountdown(t[0],i),i.options.layout=o}i.options.expiryUrl&&(window.location=i.options.expiryUrl)}i._expiring=!1}else"pause"==i._hold&&this._removeElem(t[0])}},_resetExtraLabels:function(e,t){for(var i in t)i.match(/[Ll]abels[02-9]|compactLabels1/)&&(e[i]=t[i]);for(var i in e)i.match(/[Ll]abels[02-9]|compactLabels1/)&&"undefined"==typeof t[i]&&(e[i]=null)},_adjustSettings:function(t,i,s){for(var n=null,o=0;o<this._serverSyncs.length;o++)if(this._serverSyncs[o][0]==i.options.serverSync){n=this._serverSyncs[o][1];break}if(null!=n)var r=i.options.serverSync?n:0,a=new Date;else{var l=e.isFunction(i.options.serverSync)?i.options.serverSync.apply(t[0],[]):null,a=new Date,r=l?a.getTime()-l.getTime():0;this._serverSyncs.push([i.options.serverSync,r])}var _=i.options.timezone;_=null==_?-a.getTimezoneOffset():_,(s||!s&&null==i._until&&null==i._since)&&(i._since=i.options.since,null!=i._since&&(i._since=this.UTCDate(_,this._determineTime(i._since,null)),i._since&&r&&i._since.setMilliseconds(i._since.getMilliseconds()+r)),i._until=this.UTCDate(_,this._determineTime(i.options.until,a)),r&&i._until.setMilliseconds(i._until.getMilliseconds()+r)),i._show=this._determineShow(i)},_preDestroy:function(e,t){this._removeElem(e[0]),e.empty()},pause:function(e){this._hold(e,"pause")},lap:function(e){this._hold(e,"lap")},resume:function(e){this._hold(e,null)},toggle:function(t){var i=e.data(t,this.name)||{};this[i._hold?"resume":"pause"](t)},toggleLap:function(t){var i=e.data(t,this.name)||{};this[i._hold?"resume":"lap"](t)},_hold:function(t,i){var s=e.data(t,this.name);if(s){if("pause"==s._hold&&!i){s._periods=s._savePeriods;var n=s._since?"-":"+";s[s._since?"_since":"_until"]=this._determineTime(n+s._periods[0]+"y"+n+s._periods[1]+"o"+n+s._periods[2]+"w"+n+s._periods[3]+"d"+n+s._periods[4]+"h"+n+s._periods[5]+"m"+n+s._periods[6]+"s"),this._addElem(t)}s._hold=i,s._savePeriods="pause"==i?s._periods:null,e.data(t,this.name,s),this._updateCountdown(t,s)}},getTimes:function(t){var i=e.data(t,this.name);return i?"pause"==i._hold?i._savePeriods:i._hold?this._calculatePeriods(i,i._show,i.options.significant,new Date):i._periods:null},_determineTime:function(e,t){var i=this,s=function(e){var t=new Date;return t.setTime(t.getTime()+1e3*e),t},n=function(e){e=e.toLowerCase();for(var t=new Date,s=t.getFullYear(),n=t.getMonth(),o=t.getDate(),r=t.getHours(),a=t.getMinutes(),l=t.getSeconds(),_=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,p=_.exec(e);p;){switch(p[2]||"s"){case"s":l+=parseInt(p[1],10);break;case"m":a+=parseInt(p[1],10);break;case"h":r+=parseInt(p[1],10);break;case"d":o+=parseInt(p[1],10);break;case"w":o+=7*parseInt(p[1],10);break;case"o":n+=parseInt(p[1],10),o=Math.min(o,i._getDaysInMonth(s,n));break;case"y":s+=parseInt(p[1],10),o=Math.min(o,i._getDaysInMonth(s,n))}p=_.exec(e)}return new Date(s,n,o,r,a,l,0)},o=null==e?t:"string"==typeof e?n(e):"number"==typeof e?s(e):e;return o&&o.setMilliseconds(0),o},_getDaysInMonth:function(e,t){return 32-new Date(e,t,32).getDate()},_normalLabels:function(e){return e},_generateHTML:function(t){var _=this;t._periods=t._hold?t._periods:this._calculatePeriods(t,t._show,t.options.significant,new Date);for(var p=!1,c=0,u=t.options.significant,d=e.extend({},t._show),h=i;l>=h;h++)p|="?"==t._show[h]&&t._periods[h]>0,d[h]="?"!=t._show[h]||p?t._show[h]:null,c+=d[h]?1:0,u-=t._periods[h]>0?1:0;for(var m=[!1,!1,!1,!1,!1,!1,!1],h=l;h>=i;h--)t._show[h]&&(t._periods[h]?m[h]=!0:(m[h]=u>0,u--));var g=t.options.compact?t.options.compactLabels:t.options.labels,f=t.options.whichLabels||this._normalLabels,w=function(e){var i=t.o
662ptions["compactLabels"+f(t._periods[e])];return d[e]?_._translateDigits(t,t._periods[e])+(i?i[e]:g[e])+" ":""},y=t.options.padZeroes?2:1,v=function(e){var i=t.options["labels"+f(t._periods[e])];return!t.options.significant&&d[e]||t.options.significant&&m[e]?'<span class="'+_._sectionClass+'"><span class="'+_._amountClass+'">'+_._minDigits(t,t._periods[e],y)+'</span><span class="'+_._periodClass+'">'+(i?i[e]:g[e])+"</span></span>":""};return t.options.layout?this._buildLayout(t,d,t.options.layout,t.options.compact,t.options.significant,m):(t.options.compact?'<span class="'+this._rowClass+" "+this._amountClass+(t._hold?" "+this._holdingClass:"")+'">'+w(i)+w(s)+w(n)+w(o)+(d[r]?this._minDigits(t,t._periods[r],2):"")+(d[a]?(d[r]?t.options.timeSeparator:"")+this._minDigits(t,t._periods[a],2):"")+(d[l]?(d[r]||d[a]?t.options.timeSeparator:"")+this._minDigits(t,t._periods[l],2):""):'<span class="'+this._rowClass+" "+this._showClass+(t.options.significant||c)+(t._hold?" "+this._holdingClass:"")+'">'+v(i)+v(s)+v(n)+v(o)+v(r)+v(a)+v(l))+"</span>"+(t.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+t.options.description+"</span>":"")},_buildLayout:function(t,_,p,c,u,d){for(var h=t.options[c?"compactLabels":"labels"],m=t.options.whichLabels||this._normalLabels,g=function(e){return(t.options[(c?"compactLabels":"labels")+m(t._periods[e])]||h)[e]},f=function(e,i){return t.options.digits[Math.floor(e/i)%10]},w={desc:t.options.description,sep:t.options.timeSeparator,yl:g(i),yn:this._minDigits(t,t._periods[i],1),ynn:this._minDigits(t,t._periods[i],2),ynnn:this._minDigits(t,t._periods[i],3),y1:f(t._periods[i],1),y10:f(t._periods[i],10),y100:f(t._periods[i],100),y1000:f(t._periods[i],1e3),ol:g(s),on:this._minDigits(t,t._periods[s],1),onn:this._minDigits(t,t._periods[s],2),onnn:this._minDigits(t,t._periods[s],3),o1:f(t._periods[s],1),o10:f(t._periods[s],10),o100:f(t._periods[s],100),o1000:f(t._periods[s],1e3),wl:g(n),wn:this._minDigits(t,t._periods[n],1),wnn:this._minDigits(t,t._periods[n],2),wnnn:this._minDigits(t,t._periods[n],3),w1:f(t._periods[n],1),w10:f(t._periods[n],10),w100:f(t._periods[n],100),w1000:f(t._periods[n],1e3),dl:g(o),dn:this._minDigits(t,t._periods[o],1),dnn:this._minDigits(t,t._periods[o],2),dnnn:this._minDigits(t,t._periods[o],3),d1:f(t._periods[o],1),d10:f(t._periods[o],10),d100:f(t._periods[o],100),d1000:f(t._periods[o],1e3),hl:g(r),hn:this._minDigits(t,t._periods[r],1),hnn:this._minDigits(t,t._periods[r],2),hnnn:this._minDigits(t,t._periods[r],3),h1:f(t._periods[r],1),h10:f(t._periods[r],10),h100:f(t._periods[r],100),h1000:f(t._periods[r],1e3),ml:g(a),mn:this._minDigits(t,t._periods[a],1),mnn:this._minDigits(t,t._periods[a],2),mnnn:this._minDigits(t,t._periods[a],3),m1:f(t._periods[a],1),m10:f(t._periods[a],10),m100:f(t._periods[a],100),m1000:f(t._periods[a],1e3),sl:g(l),sn:this._minDigits(t,t._periods[l],1),snn:this._minDigits(t,t._periods[l],2),snnn:this._minDigits(t,t._periods[l],3),s1:f(t._periods[l],1),s10:f(t._periods[l],10),s100:f(t._periods[l],100),s1000:f(t._periods[l],1e3)},y=p,v=i;l>=v;v++){var D="yowdhms".charAt(v),T=new RegExp("\\{"+D+"<\\}([\\s\\S]*)\\{"+D+">\\}","g");y=y.replace(T,!u&&_[v]||u&&d[v]?"$1":"")}return e.each(w,function(e,t){var i=new RegExp("\\{"+e+"\\}","g");y=y.replace(i,t)}),y},_minDigits:function(e,t,i){return t=""+t,t.length>=i?this._translateDigits(e,t):(t="0000000000"+t,this._translateDigits(e,t.substr(t.length-i)))},_translateDigits:function(e,t){return(""+t).replace(/[0-9]/g,function(t){return e.options.digits[t]})},_determineShow:function(e){var t=e.options.format,_=[];return _[i]=t.match("y")?"?":t.match("Y")?"!":null,_[s]=t.match("o")?"?":t.match("O")?"!":null,_[n]=t.match("w")?"?":t.match("W")?"!":null,_[o]=t.match("d")?"?":t.match("D")?"!":null,_[r]=t.match("h")?"?":t.match("H")?"!":null,_[a]=t.match("m")?"?":t.match("M")?"!":null,_[l]=t.match("s")?"?":t.match("S")?"!":null,_},_calculatePeriods:function(e,t,_,p){e._now=p,e._now.setMilliseconds(0);var c=new Date(e._now.getTime());e._since?p.getTime()<e._since.getTime()?e._now=p=c:p=e._since:(c.setTime(e._until.getTime()),p.getTime()>e._until.getTime()&&(e._now=p=c));var u=[0,0,0,0,0,0,0];if(t[i]||t[s]){var d=this._getDaysInMonth(p.getFullYear(),p.getMonth()),h=this._getDaysInMonth(c.getFullYear(),c.getMonth()),m=c.getDate()==p.getDate()||c.getDate()>=Math.min(d,h)&&p.getDate()>=Math.min(d,h),g=function(e){return 60*(60*e.getHours()+e.getMinutes())+e.getSeconds()},f=Math.max(0,12*(c.getFullYear()-p.getFullYear())+c.getMonth()-p.getMonth()+(c.getDate()<p.getDate()&&!m||m&&g(c)<g(p)?-1:0));u[i]=t[i]?Math.floor(f/12):0,u[s]=t[s]?f-12*u[i]:0,p=new Date(p.getTime());var w=p.getDate()==d,y=this._getDaysInMonth(p.getFullYear()+u[i],p.getMonth()+u[s]);p.getDate()>y&&p.setDate(y),p.setFullYear(p.getFullYear()+u[i]),p.setMonth(p.getMonth()+u[s]),w&&p.setDate(y)}var v=Math.floor((c.getTime()-p.getTime())/1e3),D=function(e,i){u[e]=t[e]?Math.floor(v/i):0,v-=u[e]*i};if(D(n,604800),D(o,86400),D(r,3600),D(a,60),D(l,1),v>0&&!e._since)for(var T=[1,12,4.3482,7,24,60,60],M=l,S=1,b=l;b>=i;b--)t[b]&&(u[M]>=S&&(u[M]=0,v=1),v>0&&(u[b]++,v=0,M=b,S=1)),S*=T[b];if(_)for(var b=i;l>=b;b++)_&&u[b]?_--:_||(u[b]=0);return u}})}(jQuery); 663/* End */ 664; 665; /* Start:"a:4:{s:4:"full";s:72:"/bitrix/templates/aspro_max/js/jquery.countdown-ru.min.js?16586591531487";s:6:"source";s:53:"/bitrix/templates/aspro_max/js/jquery.countdown-ru.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 666!function(O){O.countdown.regionalOptions.ru={labels:[BX.message("COUNTDOWN_YEAR0"),BX.message("COUNTDOWN_MONTH0"),BX.message("COUNTDOWN_WEAK0"),BX.message("COUNTDOWN_DAY0"),BX.message("COUNTDOWN_HOUR"),BX.message("COUNTDOWN_MIN"),BX.message("COUNTDOWN_SEC")],labels1:[BX.message("COUNTDOWN_YEAR1"),BX.message("COUNTDOWN_MONTH1"),BX.message("COUNTDOWN_WEAK1"),BX.message("COUNTDOWN_DAY1"),BX.message("COUNTDOWN_HOUR"),BX.message("COUNTDOWN_MIN"),BX.message("COUNTDOWN_SEC")],labels2:[BX.message("COUNTDOWN_YEAR2"),BX.message("COUNTDOWN_MONTH2"),BX.message("COUNTDOWN_WEAK2"),BX.message("COUNTDOWN_DAY2"),BX.message("COUNTDOWN_HOUR"),BX.message("COUNTDOWN_MIN"),BX.message("COUNTDOWN_SEC")],compactLabels:[BX.message("COUNTDOWN_COMPACT_YEAR0"),BX.message("COUNTDOWN_COMPACT_MONTH"),BX.message("COUNTDOWN_COMPACT_WEAK"),BX.message("COUNTDOWN_COMPACT_DAY"),BX.message("COUNTDOWN_COMPACT_HOUR"),BX.message("COUNTDOWN_COMPACT_MIN"),BX.message("COUNTDOWN_COMPACT_SEC")],compactLabels1:[BX.message("COUNTDOWN_COMPACT_YEAR1"),BX.message("COUNTDOWN_COMPACT_MONTH"),BX.message("COUNTDOWN_COMPACT_WEAK"),BX.message("COUNTDOWN_COMPACT_DAY"),BX.message("COUNTDOWN_COMPACT_HOUR"),BX.message("COUNTDOWN_COMPACT_MIN"),BX.message("COUNTDOWN_COMPACT_SEC")],whichLabels:function(O){var e=O%10,s=Math.floor(O%100/10);return 1==O?1:2<=e&&e<=4&&1!=s?2:1==e&&1!=s?1:0},digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1},O.countdown.setDefaults(O.countdown.regionalOptions.ru)}
666(jQuery); 667/* End */ 668; 669; /* Start:"a:4:{s:4:"full";s:69:"/bitrix/templates/aspro_max/js/jquery.ikSelect.min.js?165865915322426";s:6:"source";s:49:"/bitrix/templates/aspro_max/js/jquery.ikSelect.js";s:3:"min";s:53:"/bitrix/templates/aspro_max/js/jquery.ikSelect.min.js";s:3:"map";s:57:"/bitrix/templates/aspro_max/js/jquery.ikSelect.min.js.map";}"*/ 670/*! ikSelect 1.0.3 671 Copyright (c) 2013 Igor Kozlov 672 http://igorkozlov.me */ 673!function($,window,document,undefined){var $window=$(window),defaults={syntax:'<div class="ik_select_link"><div class="ik_select_link_text"></div></div><div class="ik_select_dropdown"><div class="ik_select_list"></div></div>',autoWidth:!0,ddFullWidth:!0,equalWidths:!0,dynamicWidth:!1,extractLink:!1,customClass:"",linkCustomClass:"",ddCustomClass:"",ddMaxHeight:200,filter:!1,nothingFoundText:"Nothing found",isDisabled:!1,onInit:function(){},onShow:function(){},onHide:function(){},onKeyUp:function(){},onKeyDown:function(){},onHoverMove:function(){}},instOpened,uaMatch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};if(!$.browser){var matched=uaMatch(navigator.userAgent),browser={};matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),$.browser=browser}function IkSelect(element,options){var dataOptions={};for(var key in this.el=element,this.$el=$(element),defaults)dataOptions[key]=this.$el.data(key.toLowerCase());this.options=$.extend({},defaults,options,dataOptions),$.browser.mobile&&(this.options.filter=!1),this.init()}$.browser.mobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile/i.test(navigator.userAgent),$.browser.operamini="[object OperaMini]"===Object.prototype.toString.call(window.operamini),$.extend(IkSelect.prototype,{init:function(){this.$wrapper=$('<div class="ik_select">'+this.options.syntax+"</div>"),this.$link=$(".ik_select_link",this.$wrapper),this.$linkText=$(".ik_select_link_text",this.$wrapper),this.$dropdown=$(".ik_select_dropdown",this.$wrapper),this.$list=$(".ik_select_list",this.$wrapper),this.$listInner=$('<div class="ik_select_list_inner"/>'),this.$active=$([]),this.$hover=$([]),this.hoverIndex=0,this.$optionSet=$([]),this.$optgroupSet=$([]),this.$list.append(this.$listInner),this.options.filter&&(this.$filter=$([]),this.$optionSetOriginal=$([]),this.$nothingFoundText=$('<div class="ik_select_nothing_found"/>').html(this.options.nothingFoundText),this.$filterWrap=$(".ik_select_filter_wrap",this.$wrapper),this.$filterWrap.length||(this.$filterWrap=$('<div class="ik_select_filter_wrap"/>')),this.$filter=$('<input type="text" class="ik_select_filter">'),this.$filterWrap.append(this.$filter),this.$list.prepend(this.$filterWrap),this.$filter.on({"keydown.ikSelect keyup.ikSelect":$.proxy(this,"_elKeyUpDown"),"keyup.ikSelect":$.proxy(this,"_filterKeyup")})),this.$wrapper.addClass(this.options.customClass),this.$link.addClass(this.options.linkCustomClass||this.options.customClass&&this.options.customClass+"-link"),this.$dropdown.addClass(this.options.ddCustomClass||this.options.customClass&&this.options.customClass+"-dd"),this.reset(),this.toggle(!(this.options.isDisabled||this.$el.prop("disabled")||this.$el.hasClass("hidden"))),this.$link.on("click.ikSelect",$.proxy(this,"_linkClick")),this.$el.on({"focus.ikSelect":$.proxy(this,"_elFocus"),"blur.ikSelect":$.proxy(this,"_elBlur"),"change.ikSelect":$.proxy(this,"_syncOriginalOption"),"keydown.ikSelect keyup.ikSelect":$.proxy(this,"_elKeyUpDown")}),this.$list.on({"click.ikSelect":$.proxy(this,"_optionClick"),"mouseover.ikSelect":$.proxy(this,"_optionMouseover")},".ik_select_option"),this.$wrapper.on("click",(function(){return!1})),this.$el.after(this.$wrapper),this.redraw(),this.$el.appendTo(this.$wrapper),this.options.onInit(this),this.$el.trigger("ikinit",this)},_linkClick:function(){this.isDisabled||(this===instOpened?this.hideDropdown():this.showDropdown())},_optionClick:function(){this._makeOptionActive(this.searchIndexes?this.$optionSetOriginal.index(this.$hover):this.hoverIndex,!0),this.hideDropdown(),this.$el.change().focus()},_optionMouseover:function(event){var $option=$(event.currentTarget);$option.hasClass("ik_select_option_disabled")||(this.$hover.removeClass("ik_select_hover"),this.$hover=$option.addClass("ik_select_hover"),this.hoverIndex=this.$optionSet.index(this.$hover))},_makeOptionActive:function(index,shouldSync){var $option=$(this.el.options[index]),text="";
673$option.data("img_src")&&(text+='<span class="icon_color" style="background: url('+$option.data("img_src")+')"></span>',this.$link.addClass("img")),$option.attr("title")&&this.$link.attr("title",$option.attr("title")),text+=$option.text(),this.$linkText.html(text),this.$link.toggleClass("ik_select_link_novalue",!$option.attr("value")),this.$hover.removeClass("ik_select_hover"),this.$active.removeClass("ik_select_active"),this.$hover=this.$active=this.$optionSet.eq(index).addClass("ik_select_hover ik_select_active"),this.hoverIndex=index,shouldSync&&this._syncFakeOption()},_elKeyUpDown:function(event){var $handle=$(event.currentTarget),type=event.type,keycode=event.which,newTop;switch(keycode){case 38:"keydown"===type&&(event.preventDefault(),this._moveToPrevActive());break;case 40:"keydown"===type&&(event.preventDefault(),this._moveToNextActive());break;case 33:"keydown"===type&&(event.preventDefault(),newTop=this.$hover.position().top-this.$listInner.height(),this._moveToPrevActive((function(optionTop){return optionTop<=newTop})));break;case 34:"keydown"===type&&(event.preventDefault(),newTop=this.$hover.position().top+this.$listInner.height(),this._moveToNextActive((function(optionTop){return optionTop>=newTop})));break;case 36:"keydown"===type&&$handle.is(this.$el)&&(event.preventDefault(),this._moveToFirstActive());break;case 35:"keydown"===type&&$handle.is(this.$el)&&(event.preventDefault(),this._moveToLastActive());break;case 32:"keydown"===type&&$handle.is(this.$el)&&(event.preventDefault(),this.$dropdown.is(":visible")?this.$hover.click():this._linkClick());break;case 13:"keydown"===type&&this.$dropdown.is(":visible")&&(event.preventDefault(),this.$hover.click());break;case 27:"keydown"===type&&this.$dropdown.is(":visible")&&(event.preventDefault(),this.hideDropdown());break;case 9:"keydown"===type&&($.browser.webkit&&this.$dropdown.is(":visible")?event.preventDefault():this.hideDropdown());break;default:"keyup"===type&&$handle.is(this.$el)&&this._syncOriginalOption()}"keyup"===type&&$.browser.mozilla&&this._syncFakeOption(),"keydown"===type&&(this.options.onKeyDown(this,keycode),this.$el.trigger("ikkeydown",[this,keycode])),"keyup"===type&&(this.options.onKeyUp(this,keycode),this.$el.trigger("ikkeyup",[this,keycode]))},_moveTo:function(index){var optionTopLine,optionBottomLine,$optgroup;if(!this.$dropdown.is(":visible")&&$.browser.webkit)return this.showDropdown(),this;!this.$dropdown.is(":visible")||$.browser.mozilla?this._makeOptionActive(index,!0):(this.$hover.removeClass("ik_select_hover"),this.$hover=this.$optionSet.eq(index).addClass("ik_select_hover"),this.hoverIndex=index),optionBottomLine=(optionTopLine=this.$hover.position().top)+this.$active.outerHeight(),this.$hover.index()||($optgroup=this.$hover.closest(".ik_select_optgroup")).length&&(optionTopLine=$optgroup.position().top),optionBottomLine>this.$listInner.height()?this.$listInner.scrollTop(this.$listInner.scrollTop()+optionBottomLine-this.$listInner.height()):optionTopLine<0&&this.$listInner.scrollTop(this.$listInner.scrollTop()+optionTopLine),this.options.onHoverMove(this),this.$el.trigger("ikhovermove",this)},_moveToFirstActive:function(){for(var i=0;i<this.$optionSet.length;i++)if(!this.$optionSet.eq(i).hasClass("ik_select_option_disabled")){this._moveTo(i);break}},_moveToLastActive:function(){for(var i=this.$optionSet.length-1;i>=0;i++)if(!this.$optionSet.eq(i).hasClass("ik_select_option_disabled")){this._moveTo(i);break}},_moveToPrevActive:function(condition){for(var $option,i=this.hoverIndex-1;i>=0;i--)if(!($option=this.$optionSet.eq(i)).hasClass("ik_select_option_disabled")&&(void 0===condition||condition($option.position().top))){this._moveTo(i);break}},_moveToNextActive:function(condition){for(var $option,i=this.hoverIndex+1;i<this.$optionSet.length;i++)if(!($option=this.$optionSet.eq(i)).hasClass("ik_select_option_disabled")&&(void 0===condition||condition($option.position().top))){this._moveTo(i);break}},_elFocus:function(){var wrapperOffsetTop,wrapperHeight,windowScrollTop,windowHeight;if(this.isDisabled)return this;this.$link.addClass("ik_select_link_focus"),((wrapperOffsetTop=this.$wrapper.offset().top)+(wrapperHeight=this.$wrapper.height())>(windowScrollTop=$window.scrollTop())+(windowHeight=$window.height())||wrapperOffsetTop<windowScrollTop)&&$window.scrollTop(wrapperOffsetTop-windowHeight/2)},_elBlur:function(){this.$link.removeClass("ik_select_link_focus")},_filterKeyup:function(){var filterVal=$.trim(this.$filter.val()),filterValOld;this.$listInner.show(),void 0===this.searchIndexes&&(this.$optionSetOriginal=this.$optionSet,this.searchIndexes=$.makeArray(this.$optionSet.map((function(optionIndex,option){return $(option).text().toLowerCase()})))),filterVal!==filterValOld&&(""===filterVal?(this.$optionSet=this.$optionSetOriginal.show(),this.$optgroupSet.show(),this.$nothingFoundText.remove()):(this.$optionSet=$([]),this.$optgroupSet.show(),this.$optionSetOriginal.each($.proxy((function(optionIndex,option){var $option=$(option);this.searchIndexes[optionIndex].indexOf(filterVal.toLowerCase())>=0?(this.$optionSet=this.$optionSet.add($option),$option.show()):$option.hide()}),this)),this.$optionSet.length?(this.$nothingFoundText.remove(),this.$optgroupSet.each((function(optgroupIndex,optgroup){var $optgroup=$(optgroup);$(".ik_select_option:visible",$optgroup).length||$optgroup.hide()})),this.$hover.is(":visible")||this._moveToFirstActive()):(this.$listInner.hide(),this.$list.append(this.$nothingFoundText))),filterValOld=filterVal)},_syncFakeOption:function(){this.el.selectedIndex=this.hoverIndex},_syncOriginalOption:function(){this._makeOptionActive(this.el.selectedIndex)},_fixHeight:function(){this.$dropdown.show(),this.$listInner.css("height","auto"),this.$listInner.height()>this.options.ddMaxHeight&&this.$listInner.css({overflow:"auto",height:this.options.ddMaxHeight,position:"relative"}),this.$dropdown.hide()},redraw:function(){var maxWidthOuter,scrollbarWidth,wrapperParentWidth;this.options.filter&&this.$filter.hide(),this.$wrapper.css({position:"relative"}),this.$dropdown.css({position:"absolute",zIndex:9998,width:"100%"}),this.$list.css({position:"relative"}),this._fixHeight(),(this.options.dynamicWidth||this.options.autoWidth||this.options.ddFullWidth)&&(this.$wrapper.width(""),this.$dropdown.show().width(9999),this.$listInner.css("float","left"),this.$list.css("float","left"),maxWidthOuter=this.$list.outerWidth(!0),scrollbarWidth=this.$listInner.width()-this.$listInnerUl.width(),this.$list.css("float",""),this.$listInner.css("float",""),this.$dropdown.css("width","100%"),this.options.ddFullWidth&&this.$dropdown.width(maxWidthOuter+scrollbarWidth),this.options.dynamicWidth?this.$wrapper.css({display:"inline-block",width:"auto",verticalAlign:"top"}):this.options.autoWidth&&this.$wrapper.width(maxWidthOuter+(this.options.equalWidths?scrollbarWidth:0)).addClass("ik_select_autowidth"),wrapperParentWidth=this.$wrapper.parent().width(),this.$wrapper.width()>wrapperParentWidth&&this.$wrapper.width(wrapperParentWidth)),this.options.filter&&this.$filter.show().outerWidth(this.$filterWrap.width()),this.$dropdown.hide(),this.$el.css({position:"absolute",margin:0,padding:0,top:0,left:-9999}),$.browser.mobile&&this.$el.css({opacity:0,left:0,height:this.$wrapper.height(),width:this.$wrapper.width()})},reset:function(){var html="";this.$linkText.html(this.$el.val()),this.$listInner.empty(),html="<ul>",this.$el.children().each($.proxy((function(childIndex,child){var $child=$(child),tagName=child.tagName.toLowerCase(),options;"optgroup"===tagName?(options=$child.children().map($.proxy((function(optionIndex,option){return this._generateOptionObject($(option))}),this)),options=$.makeArray(options),html+=this._renderListOptgroup({label:$child.attr("label")||" ",isDisabled:$child.is(":disabled"),options:options})):"option"===tagName&&(html+=this._renderListOption(this._generateOptionObject($child)))}),this)),html+="</ul>",this.$listInner.append(html),this._syncOriginalOption(),this.$listInnerUl=$("> ul",this.$listInner),this.$optgroupSet=$(".ik_select_optgroup",this.$listInner),this.$optionSet=$(".ik_select_option",this.$listInner)},hideDropdown:function(){this.options.filter&&(this.$filter.val(""),this._filterKeyup()),this.$dropdown.hide().appendTo(this.$wrapper).css({left:"",top:""}),this.options.extractLink&&(this.$wrapper.outerWidth(this.$wrapper.data("outerWidth")),this.$wrapper.height(""),this.$link.removeClass("ik_select_link_extracted").css({position:"",top:"",left:"",zIndex:""}).prependTo(this.$wrapper)),instOpened=null,this.$el.focus(),this.options.onHide(this),this.$el.trigger("ikhide",this)},showDropdown:function(){var dropdownOffset,dropdownOuterWidth,dropdownOuterHeight,wrapperOffset,wrapperOuterWidth,windowWidth,windowHeight,windowScroll,linkOffset;instOpened!==this&&this.$optionSet.length&&(instOpened&&instOpened.hideDropdown(),this._syncOriginalOption(),$(".show_un_props").length?this.$dropdown.addClass("show_un_props"):$(".unshow_un_props").length&&this.$dropdown.addClass("unshow_un_props"),this.$dropdown.show(),dropdownOffset=this.$dropdown.offset(),dropdownOuterWidth=this.$dropdown.outerWidth(!0),dropdownOuterHeight=this.$dropdown.outerHeight(!0),wrapperOffset=this.$wrapper.offset(),windowWidth=$window.width(),windowHeight=$window.height(),windowScroll=$window.scrollTop(),this.options.ddFullWidth&&wrapperOffset.left+dropdownOuterWidth>windowWidth&&(dropdownOffset.left=windowWidth-dropdownOuterWidth),dropdownOffset.top+dropdownOuterHeight>windowScroll+windowHeight&&(dropdownOffset.top=windowScroll+windowHeight-dropdownOuterHeight),this.$dropdown.css({left:dropdownOffset.left,top:dropdownOffset.top,width:this.$dropdown.width()}).appendTo("body"),this.options.extractLink&&(linkOffset=this.$link.offset(),wrapperOuterWidth=this.$wrapper.outerWidth(),this.$wrapper.data("outerWidth",wrapperOuterWidth),this.$wrapper.outerWidth(wrapperOuterWidth),this.$wrapper.outerHeight(this.$wrapper.outerHeight()),this.$link.outerWidth(this.$link.outerWidth()),this.$link.addClass("ik_select_link_extracted").css({position:"absolute",top:linkOffset.top,left
673:linkOffset.left,zIndex:9999}).appendTo("body")),this.$listInner.scrollTop(this.$active.position().top-this.$list.height()/2),this.options.filter?this.$filter.focus():this.$el.focus(),instOpened=this,this.options.onShow(this),this.$el.trigger("ikshow",this))},_generateOptionObject:function($option){return{value:$option.val(),label:$option.html()||" ",isDisabled:$option.is(":disabled"),dataParam:$option.data(),className:$option.attr("class"),title:$option.attr("title")}},_renderListOption:function(option){var html,imgClass="",disabledClass=option.isDisabled?" ik_select_option_disabled":"";$.isEmptyObject(option.dataParam)||(imgClass=option.dataParam.img_src?" img":"");var missingClass="hidden"==option.className?" missing":"",title=option.title;return html='<li class="ik_select_option'+disabledClass+imgClass+missingClass+'" title="'+title+'" data-value="'+option.value+'">',html+='<span class="ik_select_option_label" title="'+title+'">',imgClass&&(html+='<span class="icon_color" style="background: url('+option.dataParam.img_src+')"></span>'),html+=option.label,html+="</span>",html+="</li>"},_renderListOptgroup:function(optgroup){var html,disabledClass=optgroup.isDisabled?" ik_select_optgroup_disabled":"";return html='<li class="ik_select_optgroup'+disabledClass+'">',html+='<div class="ik_select_optgroup_label">'+optgroup.label+"</div>",html+="<ul>",$.isArray(optgroup.options)&&$.each(optgroup.options,$.proxy((function(optionIndex,option){html+=this._renderListOption({value:option.value,label:option.label||" ",isDisabled:option.isDisabled})}),this)),html+="</ul>",html+="</li>"},_renderOption:function(option){return'<option value="'+option.value+'">'+option.label+"</option>"},_renderOptgroup:function(optgroup){var html;return html='<optgroup label="'+optgroup.label+'">',$.isArray(optgroup.options)&&$.each(optgroup.options,$.proxy((function(optionIndex,option){html+=this._renderOption(option)}),this)),html+="</option>"},addOptions:function(options,optionIndex,optgroupIndex){var listHtml="",selectHtml="",$destinationUl=this.$listInnerUl,$destinationOptgroup=this.$el,$ulOptions,$optgroupOptions;options=$.isArray(options)?options:[options],$.each(options,$.proxy((function(index,option){listHtml+=this._renderListOption(option),selectHtml+=this._renderOption(option)}),this)),$.isNumeric(optgroupIndex)&&optgroupIndex<this.$optgroupSet.length&&($destinationUl=this.$optgroupSet.eq(optgroupIndex),$destinationOptgroup=$("optgroup",this.$el).eq(optgroupIndex)),$.isNumeric(optionIndex)&&optionIndex<($ulOptions=$(".ik_select_option",$destinationUl)).length&&($ulOptions.eq(optionIndex).before(listHtml),($optgroupOptions=$("option",$destinationOptgroup)).eq(optionIndex).before(selectHtml)),$optgroupOptions||($destinationUl.append(listHtml),$destinationOptgroup.append(selectHtml)),this.$optionSet=$(".ik_select_option",this.$listInner),this._fixHeight()},addOptgroups:function(optgroups,optgroupIndex){var listHtml="",selectHtml="";optgroups&&(optgroups=$.isArray(optgroups)?optgroups:[optgroups],$.each(optgroups,$.proxy((function(optgroupIndex,optgroup){listHtml+=this._renderListOptgroup(optgroup),selectHtml+=this._renderOptgroup(optgroup)}),this)),$.isNumeric(optgroupIndex)&&optgroupIndex<this.$optgroupSet.length?(this.$optgroupSet.eq(optgroupIndex).before(listHtml),$("optgroup",this.$el).eq(optgroupIndex).before(selectHtml)):(this.$listInnerUl.append(listHtml),this.$el.append(selectHtml)),this.$optgroupSet=$(".ik_select_optgroup",this.$listInner),this.$optionSet=$(".ik_select_option",this.$listInner),this._fixHeight())},removeOptions:function(optionIndexes,optgroupIndex){var $removeList=$([]),$listContext,$selectContext;$.isNumeric(optgroupIndex)&&(optgroupIndex<0?($listContext=$("> .ik_select_option",this.$listInnerUl),$selectContext=$("> option",this.$el)):optgroupIndex<this.$optgroupSet.length&&($listContext=$(".ik_select_option",this.$optgroupSet.eq(optgroupIndex)),$selectContext=$("optgroup",this.$el).eq(optgroupIndex).find("option"))),$listContext||($listContext=this.$optionSet,$selectContext=$(this.el.options)),$.isArray(optionIndexes)||(optionIndexes=[optionIndexes]),$.each(optionIndexes,$.proxy((function(index,optionIndex){optionIndex<$listContext.length&&($removeList=$removeList.add($listContext.eq(optionIndex)).add($selectContext.eq(optionIndex)))}),this)),$removeList.remove(),this.$optionSet=$(".ik_select_option",this.$listInner),this._syncOriginalOption(),this._fixHeight()},removeOptgroups:function(optgroupIndexes){var $removeList=$([]),$selectOptgroupSet=$("optgroup",this.el);$.isArray(optgroupIndexes)||(optgroupIndexes=[optgroupIndexes]),$.each(optgroupIndexes,$.proxy((function(index,optgroupIndex){optgroupIndex<this.$optgroupSet.length&&($removeList=$removeList.add(this.$optgroupSet.eq(optgroupIndex)).add($selectOptgroupSet.eq(optgroupIndex)))}),this)),$removeList.remove(),this.$optionSet=$(".ik_select_option",this.$listInner),this.$optgroupSet=$(".ik_select_optgroup",this.$listInner),this._syncOriginalOption(),this._fixHeight()},disable:function(){this.toggle(!1)},enable:function(){this.toggle(!0)},toggle:function(bool){this.isDisabled=void 0!==bool?!bool:!this.isDisabled,this.$el.prop("disabled",this.isDisabled),this.$link.toggleClass("ik_select_link_disabled",this.isDisabled)},select:function(value,isIndex){isIndex?this.el.selectedIndex=value:this.$el.val(value),this._syncOriginalOption()},disableOptgroups:function(optgroupIndexes){this.toggleOptgroups(optgroupIndexes,!1)},enableOptgroups:function(optgroupIndexes){this.toggleOptgroups(optgroupIndexes,!0)},toggleOptgroups:function(optgroupIndexes,bool){$.isArray(optgroupIndexes)||(optgroupIndexes=[optgroupIndexes]),$.each(optgroupIndexes,$.proxy((function(index,optgroupIndex){var isDisabled,$optionSet,indexes=[],indexFirst,$optgroup=$("optgroup",this.$el).eq(optgroupIndex);isDisabled=void 0!==bool?bool:$optgroup.prop("disabled"),$optgroup.prop("disabled",!isDisabled),this.$optgroupSet.eq(optgroupIndex).toggleClass("ik_select_optgroup_disabled",!isDisabled),$optionSet=$("option",$optgroup);for(var i=indexFirst=$(this.el.options).index($optionSet.eq(0));i<indexFirst+$optionSet.length;i++)indexes.push(i);
673this.toggleOptions(indexes,!0,isDisabled)}),this)),this._syncOriginalOption()},disableOptions:function(lookupValues,isIndex){this.toggleOptions(lookupValues,isIndex,!1)},enableOptions:function(lookupValues,isIndex){this.toggleOptions(lookupValues,isIndex,!0)},toggleOptions:function(lookupValues,isIndex,bool){var $selectOptionSet=$("option",this.el);$.isArray(lookupValues)||(lookupValues=[lookupValues]);var toggleOption=$.proxy((function($option,optionIndex){var isDisabled=void 0!==bool?bool:$option.prop("disabled");$option.prop("disabled",!isDisabled),this.$optionSet.eq(optionIndex).toggleClass("ik_select_option_disabled",!isDisabled)}),this);$.each(lookupValues,(function(index,lookupValue){isIndex?toggleOption($selectOptionSet.eq(lookupValue),lookupValue):$selectOptionSet.each((function(optionIndex,option){var $option=$(option);if($option.val()===lookupValue)return toggleOption($option,optionIndex),this}))})),this._syncOriginalOption()},detach:function(){this.$el.off(".ikSelect").css({width:"",height:"",left:"",top:"",position:"",margin:"",padding:""}),this.$wrapper.before(this.$el),this.$wrapper.remove(),this.$el.removeData("plugin_ikSelect")}}),$.fn.ikSelect=function(options){var args;return $.browser.operamini?this:(args=Array.prototype.slice.call(arguments,1),this.each((function(){var plugin;$.data(this,"plugin_ikSelect")?"string"==typeof options&&"function"==typeof(plugin=$.data(this,"plugin_ikSelect"))[options]&&plugin[options].apply(plugin,args):$.data(this,"plugin_ikSelect",new IkSelect(this,options))})))},$.ikSelect={extendDefaults:function(options){$.extend(defaults,options)}},$(document).bind("click.ikSelect",(function(){instOpened&&instOpened.hideDropdown()}))}(jQuery,window,document); 674/* End */ 675; 676; /* Start:"a:4:{s:4:"full";s:79:"/bitrix/templates/aspro_max/js/jquery.mobile.custom.touch.min.js?16586591537784";s:6:"source";s:64:"/bitrix/templates/aspro_max/js/jquery.mobile.custom.touch.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 677/*! jQuery Mobile v1.4.5 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */ 678 679(function(e,t,n){typeof define=="function"&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)})(this,document,function(e,t,n,r){(function(e,t,n,r){function T(e){while(e&&typeof e.originalEvent!="undefined")e=e.originalEvent;return e}function N(t,n){var i=t.type,s,o,a,l,c,h,p,d,v;t=e.Event(t),t.type=n,s=t.originalEvent,o=e.event.props,i.search(/^(mouse|click)/)>-1&&(o=f);if(s)for(p=o.length,l;p;)l=o[--p],t[l]=s[l];i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1);if(i.search(/^touch/)!==-1){a=T(s),i=a.touches,c=a.changedTouches,h=i&&i.length?i[0]:c&&c.length?c[0]:r;if(h)for(d=0,v=u.length;d<v;d++)l=u[d],t[l]=h[l]}return t}function C(t){var n={},r,s;while(t){r=e.data(t,i);for(s in r)r[s]&&(n[s]=n.hasVirtualBinding=!0);t=t.parentNode}return n}function k(t,n){var r;while(t){r=e.data(t,i);if(r&&(!n||r[n]))return t;t=t.parentNode}return null}function L(){g=!1}function A(){g=!0}function O(){E=0,v.length=0,m=!1,A()}function M(){L()}function _(){D(),c=setTimeout(function(){c=0,O()},e.vmouse.resetTimerDuration)}function D(){c&&(clearTimeout(c),c=0)}function P(t,n,r){var i;if(r&&r[t]||!r&&k(n.target,t))i=N(n,t),e(n.target).trigger(i);return i}function H(t){var n=e.data(t.target,s),r;!m&&(!E||E!==n)&&(r=P("v"+t.type,t),r&&(r.isDefaultPrevented()&&t.preventDefault(),r.isPropagationStopped()&&t.stopPropagation(),r.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function B(t){var n=T(t).touches,r,i,o;n&&n.length===1&&(r=t.target,i=C(r),i.hasVirtualBinding&&(E=w++,e.data(r,s,E),D(),M(),d=!1,o=T(t).touches[0],h=o.pageX,p=o.pageY,P("vmouseover",t,i),P("vmousedown",t,i)))}function j(e){if(g)return;d||P("vmousecancel",e,C(e.target)),d=!0,_()}function F(t){if(g)return;var n=T(t).touches[0],r=d,i=e.vmouse.moveDistanceThreshold,s=C(t.target);d=d||Math.abs(n.pageX-h)>i||Math.abs(n.pageY-p)>i,d&&!r&&P("vmousecancel",t,s),P("vmousemove",t,s),_()}function I(e){if(g)return;A();var t=C(e.target),n,r;P("vmouseup",e,t),d||(n=P("vclick",e,t),n&&n.isDefaultPrevented()&&(r=T(e).changedTouches[0],v.push({touchID:E,x:r.clientX,y:r.clientY}),m=!0)),P("vmouseout",e,t),d=!1,_()}function q(t){var n=e.data(t,i),r;if(n)for(r in n)if(n[r])return!0;return!1}function R(){}function U(t){var n=t.substr(1);return{setup:function(){q(this)||e.data(this,i,{});var r=e.data(this,i);r[t]=!0,l[t]=(l[t]||0)+1,l[t]===1&&b.bind(n,H),e(this).bind(n,R),y&&(l.touchstart=(l.touchstart||0)+1,l.touchstart===1&&b.bind("touchstart",B).bind("touchend",I).bind("touchmove",F).bind("scroll",j))},teardown:function(){--l[t],l[t]||b.unbind(n,H),y&&(--l.touchstart,l.touchstart||b.unbind("touchstart",B).unbind("touchmove",F).unbind("touchend",I).unbind("scroll",j));var r=e(this),s=e.data(this,i);s&&(s[t]=!1),r.unbind(n,R),q(this)||r.removeData(i)}}}var i="virtualMouseBindings",s="virtualTouchID",o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),a=e.event.mouseHooks?e.event.mouseHooks.props:[],f=e.event.props.concat(a),l={},c=0,h=0,p=0,d=!1,v=[],m=!1,g=!1,y="addEventListener"in n,b=e(n),w=1,E=0,S,x;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(x=0;x<o.length;x++)e.event.special[o[x]]=U(o[x]);y&&n.addEventListener("click",function(t){var n=v.length,r=t.target,i,o,u,a,f,l;if(n){i=t.clientX,o=t.clientY,S=e.vmouse.clickDistanceThreshold,u=r;while(u){for(a=0;a<n;a++){f=v[a],l=0;if(u===r&&Math.abs(f.x-i)<S&&Math.abs(f.y-o)<S||e.data(u,s)===f.touchID){t.preventDefault(),t.stopPropagation();return}}u=u.parentNode}}},!0)})(e,t,n),function(e){e.mobile={}}(e),function(e,t){var r={touch:"ontouchend"in n};
679e.mobile.support=e.mobile.support||{},e.extend(e.support,r),e.extend(e.mobile.support,r)}(e),function(e,t,r){function l(t,n,i,s){var o=i.type;i.type=n,s?e.event.trigger(i,r,t):e.event.dispatch.call(t,i),i.type=o}var i=e(n),s=e.mobile.support.touch,o="touchmove scroll",u=s?"touchstart":"mousedown",a=s?"touchend":"mouseup",f=s?"touchmove":"mousemove";e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)}),e.event.special.scrollstart={enabled:!0,setup:function(){function s(e,n){r=n,l(t,r?"scrollstart":"scrollstop",e)}var t=this,n=e(t),r,i;n.bind(o,function(t){if(!e.event.special.scrollstart.enabled)return;r||s(t,!0),clearTimeout(i),i=setTimeout(function(){s(t,!1)},50)})},teardown:function(){e(this).unbind(o)}},e.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var t=this,n=e(t),r=!1;n.bind("vmousedown",function(s){function a(){clearTimeout(u)}function f(){a(),n.unbind("vclick",c).unbind("vmouseup",a),i.unbind("vmousecancel",f)}function c(e){f(),!r&&o===e.target?l(t,"tap",e):r&&e.preventDefault()}r=!1;if(s.which&&s.which!==1)return!1;var o=s.target,u;n.bind("vmouseup",a).bind("vclick",c),i.bind("vmousecancel",f),u=setTimeout(function(){e.event.special.tap.emitTapOnTaphold||(r=!0),l(t,"taphold",e.Event("taphold",{target:o}))},e.event.special.tap.tapholdThreshold)})},teardown:function(){e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),i.unbind("vmousecancel")}},e.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var n=t.pageXOffset,r=t.pageYOffset,i=e.clientX,s=e.clientY;if(e.pageY===0&&Math.floor(s)>Math.floor(e.pageY)||e.pageX===0&&Math.floor(i)>Math.floor(e.pageX))i-=n,s-=r;else if(s<e.pageY-r||i<e.pageX-n)i=e.pageX-n,s=e.pageY-r;return{x:i,y:s}},start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y],origin:e(t.target)}},stop:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y]}},handleSwipe:function(t,n,r,i){if(n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.
679coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold){var s=t.coords[0]>n.coords[0]?"swipeleft":"swiperight";return l(r,"swipe",e.Event("swipe",{target:i,swipestart:t,swipestop:n}),!0),l(r,s,e.Event(s,{target:i,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),s={};t=e.data(this,"mobile-events"),t||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=s,s.start=function(t){if(e.event.special.swipe.eventInProgress)return;e.event.special.swipe.eventInProgress=!0;var r,o=e.event.special.swipe.start(t),u=t.target,l=!1;s.move=function(t){if(!o||t.isDefaultPrevented())return;r=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,r,n,u),l&&(e.event.special.swipe.eventInProgress=!1)),Math.abs(o.coords[0]-r.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()},s.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,i.off(f,s.move),s.move=null},i.on(f,s.move).one(a,s.stop)},r.on(u,s.start)},teardown:function(){var t,n;t=e.data(this,"mobile-events"),t&&(n=t.swipe,delete t.swipe,t.length--,t.length===0&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(u,n.start),n.move&&i.off(f,n.move),n.stop&&i.off(a,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}})}(e,this)}); 680/* End */ 681; 682; /* Start:"a:4:{s:4:"full";s:69:"/bitrix/templates/aspro_max/js/jquery.dotdotdot.min.js?16586591535908";s:6:"source";s:50:"/bitrix/templates/aspro_max/js/jquery.dotdotdot.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 683!function(t,e){function n(t,e,n){var r=t.children(),o=!1;t.empty();for(var i=0,d=r.length;d>i;i++){var l=r.eq(i);if(t.append(l),n&&t.append(n),a(t,e)){l.remove(),o=!0;break}n&&n.detach()}return o}function r(e,n,i,d,l){var s=!1,c="a table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",u="script, .dotdotdot-keep";return e.contents().detach().each(function(){var f=this,h=t(f);if("undefined"==typeof f||3==f.nodeType&&0==t.trim(f.data).length)return!0;if(h.is(u))e.append(h);else{if(s)return!0;e.append(h),!l||h.is(d.after)||h.find(d.after).length||e[e.is(c)?"after":"append"](l),a(i,d)&&(s=3==f.nodeType?o(h,n,i,d,l):r(h,n,i,d,l),s||(h.detach(),s=!0)),s||l&&l.detach()}}),s}function o(e,n,r,o,d){var c=e[0];if(!c)return!1;var f=s(c),h=-1!==f.indexOf(" ")?" ":" ",p="letter"==o.wrap?"":h,g=f.split(p),v=-1,w=-1,y=0,b=g.length-1;for(o.fallbackToLetter&&0==y&&0==b&&(p="",g=f.split(p),b=g.length-1);b>=y&&(0!=y||0!=b);){var m=Math.floor((y+b)/2);if(m==w)break;w=m,l(c,g.slice(0,w+1).join(p)+o.ellipsis),a(r,o)?(b=w,o.fallbackToLetter&&0==y&&0==b&&(p="",g=g[0].split(p),v=-1,w=-1,y=0,b=g.length-1)):(v=w,y=w)}if(-1==v||1==g.length&&0==g[0].length){var T=e.parent();e.detach();var x=d&&d.closest(T).length?d.length:0;T.contents().length>x?c=u(T.contents().eq(-1-x),n):(c=u(T,n,!0),x||T.detach()),c&&(f=i(s(c),o),l(c,f),x&&d&&t(c).parent().append(d))}else f=i(g.slice(0,v+1).join(p),o),l(c,f);return!0}function a(t,e){return t.innerHeight()>e.maxHeight}function i(e,n){for(;t.inArray(e.slice(-1),n.lastCharacter.remove)>-1;)e=e.slice(0,-1);return t.inArray(e.slice(-1),n.lastCharacter.noEllipsis)<0&&(e+=n.ellipsis),e}function d(t){return{width:t.innerWidth(),height:t.innerHeight()}}function l(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function s(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function c(t){do t=t.previousSibling;while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function u(e,n,r){var o,a=e&&e[0];if(a){if(!r){if(3===a.nodeType)return a;
vendor: 4,135 bytes, lines 683-687
683if(t.trim(e.text()))return u(e.contents().last(),n)}for(o=c(a);!o;){if(e=e.parent(),e.is(n)||!e.length)return!1;o=c(e[0])}if(o)return u(t(o),n)}return!1}function f(e,n){return e?"string"==typeof e?(e=t(e,n),e.length?e:!1):e.jquery?e:!1:!1}function h(t){for(var e=t.innerHeight(),n=["paddingTop","paddingBottom"],r=0,o=n.length;o>r;r++){var a=parseInt(t.css(n[r]),10);isNaN(a)&&(a=0),e-=a}return e}if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){t(this).dotdotdot(e)});var o=this;o.data("dotdotdot")&&o.trigger("destroy.dot"),o.data("dotdotdot-style",o.attr("style")||""),o.css("word-wrap","break-word"),"nowrap"===o.css("white-space")&&o.css("white-space","normal"),o.bind_events=function(){return o.bind("update.dot",function(e,d){e.preventDefault(),e.stopPropagation(),l.maxHeight="number"==typeof l.height?l.height:h(o),l.maxHeight+=l.tolerance,"undefined"!=typeof d&&(("string"==typeof d||"nodeType"in d&&1===d.nodeType)&&(d=t("<div />").append(d).contents()),d instanceof t&&(i=d)),g=o.wrapInner('<div class="dotdotdot" />').children(),g.contents().detach().end().append(i.clone(!0)).find("br").replaceWith(" <br /> ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var c=!1,u=!1;return s.afterElement&&(c=s.afterElement.clone(!0),c.show(),s.afterElement.detach()),a(g,l)&&(u="children"==l.wrap?n(g,l,c):r(g,o,g,l,c)),g.replaceWith(g.contents()),g=null,t.isFunction(l.callback)&&l.callback.call(o[0],u,i),s.isTruncated=u,u}).bind("isTruncated.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(o[0],s.isTruncated),s.isTruncated}).bind("originalContent.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(o[0],i),i}).bind("destroy.dot",function(t){t.preventDefault(),t.stopPropagation(),o.unwatch().unbind_events().contents().detach().end().append(i).attr("style",o.data("dotdotdot-style")||"").data("dotdotdot",!1)}),o},o.unbind_events=function(){return o.unbind(".dot"),o},o.watch=function(){if(o.unwatch(),"window"==l.watch){var e=t(window),n=e.width(),r=e.height();e.bind("resize.dot"+s.dotId,function(){n==e.width()&&r==e.height()&&l.windowResizeFix||(n=e.width(),r=e.height(),u&&clearInterval(u),u=setTimeout(function(){o.trigger("update.dot")},100))})}else c=d(o),u=setInterval(function(){if(o.is(":visible")){var t=d(o);(c.width!=t.width||c.height!=t.height)&&(o.trigger("update.dot"),c=t)}},500);return o},o.unwatch=function(){return t(window).unbind("resize.dot"+s.dotId),u&&clearInterval(u),o};var i=o.contents(),l=t.extend(!0,{},t.fn.dotdotdot.defaults,e),s={},c={},u=null,g=null;return l.lastCharacter.remove instanceof Array||(l.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),l.lastCharacter.noEllipsis instanceof Array||(l.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),s.afterElement=f(l.after,o),s.isTruncated=!1,s.dotId=p++,o.data("dotdotdot",!0).bind_events().trigger("update.dot"),l.watch&&o.watch(),o},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" "," ",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(t){};var p=1,g=t.fn.html;t.fn.html=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?this.trigger("update",[n]):g.apply(this,arguments)};var v=t.fn.text;t.fn.text=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?(n=t("<div />").text(n).html(),this.trigger("update",[n])):v.apply(this,arguments)}}}(jQuery); 684/* End */ 685; 686; /* Start:"a:4:{s:4:"full";s:65:"/bitrix/templates/aspro_max/js/rating_likes.min.js?16586591537297";s:6:"source";s:46:"/bitrix/templates/aspro_max/js/rating_likes.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 687if(!BXRL)var BXRL={},BXRLW=null;RatingLikes=function(t,e,i,n,o,p,s,a,u){return this.enabled=!0,this.likeId=t,this.entityTypeId=e,this.entity
687Id=i,this.available="Y"==n,this.userId=o,this.localize=p,this.template=s,this.pathToUserProfile=a,this.pathToAjax="string"==typeof u?u:"/bitrix/components/bitrix/rating.vote/vote.ajax.php",this.box=BX("bx-ilike-button-"+t),null===this.box?(this.enabled=!1,!1):(this.button=BX.findChild(this.box,{className:"bx-ilike-left-wrap"},!0,!1),this.wrapp=BX.findChild(this.box,{className:"all-wrapper"},!0,!1),this.buttonText=BX.findChild(this.button,{className:"bx-ilike-text"},!0,!1),this.count=BX.findChild(this.box,{tagName:"span",className:"bx-ilike-right-wrap"},!0,!1),this.countText=BX.findChild(this.count,{tagName:"span",className:"bx-ilike-right"},!0,!1),this.popup=null,this.popupId=null,this.popupOpenId=null,this.popupTimeoutId=null,this.popupContent=BX.findChild(BX("bx-ilike-popup-cont-"+t),{tagName:"span",className:"bx-ilike-popup"},!0,!1),this.popupContentPage=1,this.popupListProcess=!1,this.popupTimeout=!1,this.likeTimeout=!1,void(this.lastVote=BX.hasClass("standart"==s?this.button:this.count,"bx-you-like")?"plus":"cancel"))},RatingLikes.LiveUpdate=function(t){if(t.USER_ID==BX.message("USER_ID"))return!1;for(var e in BXRL)if(BXRL.hasOwnProperty(e)&&BXRL[e].entityTypeId==t.ENTITY_TYPE_ID&&BXRL[e].entityId==t.ENTITY_ID){var i=BXRL[e];i.countText.innerHTML=parseInt(t.TOTAL_POSITIVE_VOTES),i.count.insertBefore(BX.create("span",{props:{className:"bx-ilike-plus-one"},style:{width:i.countText.clientWidth-8+"px",height:i.countText.clientHeight-8+"px"},html:"ADD"==t.TYPE?"+1":"-1"}),i.count.firstChild),i.popup&&(i.popup.close(),i.popupContentPage=1)}},RatingLikes.Set=function(t,e,i,n,o,p,s,a,u){if(void 0===s&&(s="standart"),!BXRL[t]||BXRL[t].tryToSet<=5){var l=BXRL[t]&&BXRL[t].tryToSet?BXRL[t].tryToSet:1;BXRL[t]=new RatingLikes(t,e,i,n,o,p,s,a,u),BXRL[t].enabled?RatingLikes.Init(t):setTimeout(function(){BXRL[t].tryToSet=l+1,RatingLikes.Set(t,e,i,n,o,p,s,a,u)},500)}},RatingLikes.Init=function(t){BXRL[t].available?(BX.bind("standart"==BXRL[t].template?BXRL[t].button:BXRL[t].buttonText,"click",function(e){clearTimeout(BXRL[t].likeTimeout),BX.hasClass("standart"==BXRL[t].template?this:BXRL[t].count,"bx-you-like")?(BXRL[t].buttonText.innerHTML=BXRL[t].localize.LIKE_N,BXRL[t].countText.innerHTML=parseInt(BXRL[t].countText.innerHTML)-1,BX.removeClass("standart"==BXRL[t].template?this:BXRL[t].count,"bx-you-like"),BXRL[t].likeTimeout=setTimeout(function(){"cancel"!=BXRL[t].lastVote&&RatingLikes.Vote(t,"cancel")},1e3)):(BXRL[t].buttonText.innerHTML=BXRL[t].localize.LIKE_Y,BXRL[t].countText.innerHTML=parseInt(BXRL[t].countText.innerHTML)+1,BX.addClass("standart"==BXRL[t].template?this:BXRL[t].count,"bx-you-like"),BXRL[t].likeTimeout=setTimeout(function(){"plus"!=BXRL[t].lastVote&&RatingLikes.Vote(t,"plus")},1e3)),BX.removeClass(this.box,"bx-ilike-button-hover"),BX.PreventDefault(e)}),BX.bind(BXRL[t].box,"mouseover",function(){BX.addClass(this,"bx-ilike-button-hover")}),BX.bind(BXRL[t].box,"mouseout",function(){BX.removeClass(this,"bx-ilike-button-hover")})):void 0!=BXRL[t].buttonText&&(BXRL[t].buttonText.innerHTML=BXRL[t].localize.LIKE_D),RatingLikes.PopupScroll(t),console.log(),BX.bind(BXRL[t].wrapp,"mouseover",function(){clearTimeout(BXRL[t].popupTimeoutId),BXRL[t].popupTimeoutId=setTimeout(function(){return BXRLW==t?!1:(1==BXRL[t].popupContentPage&&RatingLikes.List(t,1),void(BXRL[t].popupTimeoutId=setTimeout(function(){RatingLikes.OpenWindow(t)},400)))},400)}),BX.bind(BXRL[t].wrapp,"mouseout",function(){clearTimeout(BXRL[t].popupTimeoutId)}),BX.bind(BXRL[t].box,"mouseover",function(){clearTimeout(BXRL[t].popupTimeout)}),BX.bind(BXRL[t].box,"mouseout",function(){clearTimeout(BXRL[t].popupTimeout),BXRL[t].popupTimeout=setTimeout(function(){null!==BXRL[t].popup&&(BXRL[t].popup.close(),BXRLW=null)},1e3)})},RatingLikes.OpenWindow=function(t){return 0==parseInt(BXRL[t].countText.innerHTML)?!1:(null==BXRL[t].popup&&(BXRL[t].popup=new BX.PopupWindow("ilike-popup-"+t,"standart"==BXRL[t].template?BXRL[t].count:BXRL[t].box,{lightShadow:!0,offsetLeft:5,autoHide:!0,closeByEsc:!0,zIndex:2005,bindOptions:{position:"top"},events:{onPopupClose:function(){BXRLW=null},onPopupDestroy:function(){}},content:BX("bx-ilike-popup-cont-"+t)}
687),BXRL[t].popup.setAngle({}),BX.bind(BX("ilike-popup-"+t),"mouseout",function(){clearTimeout(BXRL[t].popupTimeout),BXRL[t].popupTimeout=setTimeout(function(){BXRL[t].popup.close()},1e3)}),BX.bind(BX("ilike-popup-"+t),"mouseover",function(){clearTimeout(BXRL[t].popupTimeout)})),null!=BXRLW&&BXRL[BXRLW].popup.close(),BXRLW=t,BXRL[t].popup.show(),void RatingLikes.AdjustWindow(t))},RatingLikes.Vote=function(t,e){return BX.ajax({url:BXRL[t].pathToAjax,method:"POST",dataType:"json",data:{RATING_VOTE:"Y",RATING_VOTE_TYPE_ID:BXRL[t].entityTypeId,RATING_VOTE_ENTITY_ID:BXRL[t].entityId,RATING_VOTE_ACTION:e,sessid:BX.bitrix_sessid()},onsuccess:function(e){BXRL[t].lastVote=e.action,BXRL[t].countText.innerHTML=e.items_all,BXRL[t].popupContentPage=1,BXRL[t].popupContent.innerHTML="",spanTag0=document.createElement("span"),spanTag0.className="bx-ilike-wait",BXRL[t].popupContent.appendChild(spanTag0),RatingLikes.AdjustWindow(t),BX("ilike-popup-"+t)&&"block"==BX("ilike-popup-"+t).style.display&&RatingLikes.List(t,null)},onfailure:function(t){}}),!1},RatingLikes.List=function(t,e){return 0==parseInt(BXRL[t].countText.innerHTML)?!1:(null==e&&(e=BXRL[t].popupContentPage),BXRL[t].popupListProcess=!0,BX.ajax({url:BXRL[t].pathToAjax,method:"POST",dataType:"json",data:{RATING_VOTE_LIST:"Y",RATING_VOTE_TYPE_ID:BXRL[t].entityTypeId,RATING_VOTE_ENTITY_ID:BXRL[t].entityId,RATING_VOTE_LIST_PAGE:e,PATH_TO_USER_PROFILE:BXRL[t].pathToUserProfile,sessid:BX.bitrix_sessid()},onsuccess:function(i){if(BXRL[t].countText.innerHTML=i.items_all,0==parseInt(i.items_page))return!1;1==e&&(BXRL[t].popupContent.innerHTML="",spanTag0=document.createElement("span"),spanTag0.className="bx-ilike-bottom_scroll",BXRL[t].popupContent.appendChild(spanTag0)),BXRL[t].popupContentPage+=1;for(var n=null,o=0;o<i.items.length;o++)n=i.items[o].PHOTO_SRC.length>0?BX.create("IMG",{attrs:{src:i.items[o].PHOTO_SRC},props:{className:"bx-ilike-popup-avatar-img"}}):BX.create("IMG",{attrs:{src:"/bitrix/images/main/blank.gif"},props:{className:"bx-ilike-popup-avatar-img bx-ilike-popup-avatar-img-default"}}),BXRL[t].popupContent.appendChild(BX.create("div",{props:{className:"bx-ilike-popup-img"+(i.items[o].USER_TYPE?" bx-ilike-popup-img-"+i.items[o].USER_TYPE:"")},children:[BX.create("SPAN",{props:{className:"bx-ilike-popup-avatar-new"},children:[n,BX.create("SPAN",{props:{className:"bx-ilike-popup-avatar-status-icon"}})]}),BX.create("SPAN",{props:{className:"bx-ilike-popup-name-new"},html:i.items[o].FULL_NAME})]}));RatingLikes.AdjustWindow(t),RatingLikes.PopupScroll(t),BXRL[t].popupListProcess=!1},onfailure:function(t){}}),!1)},RatingLikes.AdjustWindow=function(t){null!=BXRL[t].popup&&(BXRL[t].popup.bindOptions.forceBindPosition=!0,BXRL[t].popup.adjustPosition(),BXRL[t].popup.bindOptions.forceBindPosition=!1)},RatingLikes.PopupScroll=function(t){BX.bind(BXRL[t].popupContent,"scroll",function(){this.scrollTop>(this.scrollHeight-this.offsetHeight)/1.5&&(RatingLikes.List(t,null),BX.unbindAll(this))})}; 688/* End */ 689; 690; /* Start:"a:4:{s:4:"full";s:65:"/bitrix/templates/aspro_max/js/buy_services.min.js?16586591534173";s:6:"source";s:46:"/bitrix/templates/aspro_max/js/buy_services.js";s:3:"min";s:50:"/bitrix/templates/aspro_max/js/buy_services.min.js";s:3:"map";s:54:"/bitrix/templates/aspro_max/js/buy_services.min.js.map";}"*/ 691function updateBasketInfoServices(refreshBasket){var basketFly;void 0===refreshBasket&&(refreshBasket=!0),$("#basket_line .basket_fly").length?$.ajax({url:arAsproOptions.SITE_DIR+"ajax/basket_fly.php",type:"post",success:function(html){$("#basket_line .basket_fly").addClass("loaded").html(html),window.matchMedia("(min-width: 769px)").matches&&($(".opener .basket_count").removeClass("small"),$('.tabs_content.basket li[item-section="AnDelCanBuy"]').addClass("cur"),$('#basket_line ul.tabs li[item-section="AnDelCanBuy"]').addClass("cur"),$("#basket_line .basket_fly .opener > div:eq(0)").addClass("cur"))}}):$("#ajax_basket").length&&(reloadTopBasket("add",$("#ajax_basket"),200,5e3,"Y"),basketTop("",$(".basket_hover_block"))),$(".wrapper1.basket_page").length&&refreshBasket&&BX.Sale.BasketComponent.sendRequest("refreshAjax",{fullRecalculation:"Y",otherParams:{param:"N"}})}$(document).on("click",".services_in_product .switch_block label",(function(){var $this=$(this),servItem=$this.closest(".services-item"),servBuyButton=servItem.find(".services-item__buy .button_block .to-cart"),switcherState=servItem.find("#"+$this.attr("for")).prop("checked"),parentProduct=$this.closest(".buy_services_wrap").attr("data-parent_product");
691if(servBuyButton.length)if(switcherState){var basketItem=arBasketAspro.SERVICES[servItem.attr("data-item_id")+"_"+parentProduct],currentWrapClasses=servItem.closest(".buy_services_wrap").attr("class");void 0!==basketItem&&basketItem.basket_id&&$.ajax({url:arAsproOptions.SITE_DIR+"ajax/item.php?delete_basket_id="+basketItem.basket_id,type:"post",success:function(html){updateBasketInfoServices(),getActualBasket()}}),$(".product-container .buy_services_wrap[data-parent_product="+parentProduct+"] .services-item[data-item_id="+servItem.attr("data-item_id")+"]").removeClass("services_on"),$(".product-container .buy_services_wrap[data-parent_product="+parentProduct+"] .services-item[data-item_id="+servItem.attr("data-item_id")+'] input[name="buy_switch_services"]').each((function(){var _th=$(this);_th.closest(".buy_services_wrap").attr("class")!==currentWrapClasses&&_th.prop("checked",!1)}))}else{var parentProductId=arBasketAspro.BASKET[parentProduct],currentWrapClasses=servItem.closest(".buy_services_wrap").attr("class"),isBasketPage=servItem.closest(".buy_services_wrap").hasClass("services_in_basket_page");(parentProductId||isBasketPage)&&servBuyButton[0].click(),$(".product-container .buy_services_wrap[data-parent_product="+parentProduct+"] .services-item[data-item_id="+servItem.attr("data-item_id")+"]").addClass("services_on"),$(".product-container .buy_services_wrap[data-parent_product="+parentProduct+"] .services-item[data-item_id="+servItem.attr("data-item_id")+'] input[name="buy_switch_services"]').each((function(){var _th=$(this);_th.closest(".buy_services_wrap").attr("class")!==currentWrapClasses&&_th.prop("checked",!0)}))}})),$(document).on("change",".services_in_product .counter_block input[type=text]",(function(e){var $this=$(this),servItem=$this.closest(".services-item"),servBuyButton=servItem.find(".services-item__buy .button_block .to-cart"),parentProduct=$this.closest(".buy_services_wrap").attr("data-parent_product"),servCount=servItem.find(".counter_block input.text").val();if($(".product-container .buy_services_wrap[data-parent_product="+parentProduct+"] .services-item[data-item_id="+servItem.attr("data-item_id")+"] .counter_block input.text").val(servCount),servBuyButton.length){var basketItem=arBasketAspro.SERVICES[servItem.attr("data-item_id")+"_"+parentProduct],quantity=$this.val();void 0!==basketItem&&basketItem.basket_id&&$.ajax({url:arAsproOptions.SITE_DIR+"ajax/item.php?update_basket_id="+basketItem.basket_id+"&quantity="+quantity,type:"post",success:function(html){updateBasketInfoServices(),getActualBasket()}})}})),$(document).on("click",".services_in_product .more-services-slide",(function(){var _this=$(this),servWrap=_this.closest(".buy_services_wrap");servWrap.toggleClass("show_all"),servWrap.hasClass("show_all")?_this.find(">span").text(_this.attr("data-close")):_this.find(">span").text(_this.attr("data-open"))})); 692/* End */ 693; 694; /* Start:"a:4:{s:4:"full";s:60:"/bitrix/templates/aspro_max/js/mobile.min.js?165865915312360";s:6:"source";s:40:"/bitrix/templates/aspro_max/js/mobile.js";s:3:"min";s:44:"/bitrix/templates/aspro_max/js/mobile.min.js";s:3:"map";s:48:"/bitrix/templates/aspro_max/js/mobile.min.js.map";}"*/ 695$(document).ready((function(){var $mobileMenu=$("#mobilemenu");if($mobileMenu.length){if($mobileMenu.isLeftSide=$mobileMenu.hasClass("leftside"),$mobileMenu.isOpen=$mobileMenu.hasClass("show"),$mobileMenu.isDowndrop=$mobileMenu.find(">.scroller").hasClass("downdrop"),$mobileMenuNlo=$mobileMenu.find("[data-nlo]"),$("#mobileheader .burger").click((function(){SwipeMobileMenu()})),$mobileMenu.isLeftSide){$mobileMenu.parent().append('<div id="mobilemenu-overlay"></div>');var $mobileMenuOverlay=$("#mobilemenu-overlay");$mobileMenuOverlay.click((function(){$mobileMenu.isOpen&&CloseMobileMenu()})),$(document).swiperight((function(e){if(!$(e.target).closest(".flexslider").length&&!$(e.target).closest(".swipeignore").length&&!$(e.target).closest(".jqmWindow.popup").length){var partWindowWidth=document.documentElement.clientWidth/3,swipeStart;e.swipestart.coords[0]<=partWindowWidth&&OpenMobileMenu()}})),$(document).swipeleft((function(e){$(e.target).closest(".flexslider").length||$(e.target).closest(".swipeignore").length||$(e.target).closest(".
695jqmWindow.popup").length||CloseMobileMenu()}))}else $(document).on("click","#mobileheader",(function(e){$(e.target).closest("#mobilemenu").length||$(e.target).closest(".burger").length||!$mobileMenu.isOpen||CloseMobileMenu()}));function MoveMobileMenuWrapNext(){if(!$mobileMenu.isDowndrop){var $scroller=$mobileMenu.find(".scroller").first(),$wrap=$mobileMenu.find(".wrap").first();if($wrap.length){var params=$wrap.data("params"),$dropdownNext=$mobileMenu.find(".expanded>.dropdown").eq(params.depth);if($dropdownNext.length){params.scroll[params.depth]=parseInt($mobileMenu.scrollTop()),params.height[params.depth+1]=Math.max($dropdownNext.height(),params.depth?$mobileMenu.find(".expanded>.dropdown").eq(params.depth-1).height():$wrap.height()),$scroller.css("height",params.height[params.depth+1]+"px"),++params.depth,$wrap.css("transform","translateX("+-100*params.depth+"%)"),setTimeout((function(){$mobileMenu.animate({scrollTop:0},200)}),100);var h=$dropdownNext.height();setTimeout((function(){h?$scroller.css("height",h+"px"):$scroller.css("height","")}),200)}$wrap.data("params",params)}}}function MoveMobileMenuWrapPrev(){if(!$mobileMenu.isDowndrop){var $scroller=$mobileMenu.find(".scroller").first(),$wrap=$mobileMenu.find(".wrap").first();if($wrap.length){var params=$wrap.data("params"),$dropdown;if(params.depth>0)if($mobileMenu.find(".expanded>.dropdown").eq(params.depth-1).length){$scroller.css("height",params.height[params.depth]+"px"),--params.depth,$wrap.css("transform","translateX("+-100*params.depth+"%)"),setTimeout((function(){$mobileMenu.animate({scrollTop:params.scroll[params.depth]},200)}),100);var h=!!params.depth&&$mobileMenu.find(".expanded>.dropdown").eq(params.depth-1).height();setTimeout((function(){h?$scroller.css("height",h+"px"):$scroller.css("height","")}),200)}$wrap.data("params",params)}}}$(document).on("click","#mobilemenu .menu a,#mobilemenu .social-icons a",(function(e){var $this=$(this);if($this.hasClass("parent"))e.preventDefault(),$mobileMenu.isDowndrop?$this.closest("li").hasClass("expanded")?$this.closest("li").removeClass("expanded"):$this.closest("li").addClass("expanded"):($this.closest("li").addClass("expanded"),MoveMobileMenuWrapNext());else{if($this.closest("li").hasClass("counters")){var href=$this.attr("href");if(void 0!==href){if("javascript:void(0)"===href)return;window.location.href=href,window.location.reload()}}$this.closest(".menu_back").length||CloseMobileMenu()}})),$(document).on("click","#mobilemenu .dropdown .menu_back",(function(e){e.preventDefault();var $this=$(this);MoveMobileMenuWrapPrev(),setTimeout((function(){$this.closest(".expanded").removeClass("expanded")}),400)})),OpenMobileMenu=function(){if(CloseMobilePhone(),!$mobileMenu.isOpen){if($(".style-switcher").hasClass("active")&&$(".style-switcher .switch").trigger("click"),$(".style-switcher .switch").hide(),$mobileMenu.isLeftSide?setTimeout((function(){$mobileMenuOverlay.fadeIn("fast")}),100):($("body").scrollTop(0).css({position:"fixed"}),$mobileMenu.css({top:+($("#mobileheader").height()+$("#mobileheader").offset().top)+"px"}),$("#mobileheader .burger").addClass("c")),$mobileMenu.addClass("show"),$mobileMenu.isOpen=!0,!$mobileMenu.isDowndrop){var $wrap=$mobileMenu.find(".wrap").first(),params=$wrap.data("params");void 0===params&&(params={depth:0,scroll:{},height:{}}),$wrap.data("params",params)}$mobileMenuNlo.length&&($mobileMenuNlo.hasClass("nlo-loadings")||($mobileMenuNlo.addClass("nlo-loadings"),setTimeout((function(){$.ajax({data:{nlo:$mobileMenuNlo.attr("data-nlo")},success:function(response){$mobileMenuNlo[0].insertAdjacentHTML("beforebegin",$.trim(response)),$mobileMenuNlo.remove()},error:function(){$mobileMenuNlo.removeClass("nlo-loadings")}})}),300)))}},CloseMobileMenu=function(){$mobileMenu.isOpen&&($mobileMenu.removeClass("show"),$mobileMenu.isOpen=!1,$(".style-switcher .switch").show(),$mobileMenu.isLeftSide?setTimeout((function(){$mobileMenuOverlay.fadeOut("fast")}),100):($("#mobileheader .burger").removeClass("c"),$("body").css({position:""})),$mobileMenu.isDowndrop||setTimeout((function(){var $scroller=$mobileMenu.find(".scroller").first(),$wrap=$mobileMenu.find(".wrap").first(),params=$wrap.data("params");params.depth=0,$wrap.data("params",params).attr("style",""),$mobileMenu.scrollTop(0),$scroller.css("height","")}),400))},SwipeMobileMenu=function(){$mobileMenu.isOpen?CloseMobileMenu():OpenMobileMenu()}}var $mobileHeader=$("#mobileheader"),$simpleHeader=$("body.simple_basket_mode #header"),$mobilePhone=$("#mobilePhone");$mobilePhone.isOpen=!1,$mobilePhone.length&&($mobilePhone.isOpen=$mobilePhone.hasClass("show"),$(document).on("click",".wrap_phones .svg-inline-phone",(function(e){
695SwipeMobilePhone(),e.stopPropagation()})),$(document).on("click",".wrap_phones .svg-inline-close",(function(e){CloseMobilePhone(),e.stopPropagation()}))),SwipeMobilePhone=function(){$mobilePhone.isOpen?CloseMobilePhone():OpenMobilePhone()},OpenMobilePhone=function(){if(!$mobilePhone.isOpen){CloseMobileMenu();var isSimple,positionOffset=Boolean($simpleHeader.length)?$simpleHeader[0].getBoundingClientRect():$mobileHeader[0].getBoundingClientRect(),position=positionOffset.top+positionOffset.height+pageYOffset;console.log(positionOffset),console.log(position),$('<div class="jqmOverlay mobp" style="top:'+position+'px;position:absolute"></div>').appendTo("body"),setTimeout((function(){$mobilePhone.slideDown("fast",(function(){$mobilePhone.addClass("show"),$mobilePhone.isOpen=!0}))}),100)}},CloseMobilePhone=function(){$mobilePhone.isOpen&&setTimeout((function(){$mobilePhone.slideUp("fast",(function(){$mobilePhone.removeClass("show"),$mobilePhone.isOpen=!1,$(".jqmOverlay.mobp").remove()}))}),100)},checkMobilePhone=function(){window.matchMedia("(max-width: 991px)").matches||CloseMobilePhone()},$(document).on("click","body.simple_basket_mode .back-mobile-arrow .arrow-back",(function(){document.referrer&&document.referrer!=location.href?window.history.back():location.href="/"}));var $mobilefilter=$("#mobilefilter");if($mobilefilter.length){$mobilefilter.isOpen=$mobileMenu.hasClass("show"),$mobilefilter.isAppendLeft=!1,$mobilefilter.isWrapFilter=!1,$mobilefilter.isHorizontalOrCompact=$(".filter_horizontal").length||$(".bx_filter_vertical.compact").length,$mobilefilter.close='<i class="svg svg-close close-icons"></i>',$(document).on("click",".bx-filter-title",(function(){OpenMobileFilter()})),$(document).on("click","#mobilefilter .svg-close.close-icons",(function(){CloseMobileFilter()})),$(document).on("click",".bx_filter_select_block",(function(e){var bx_filter_select_container=$(e.target).parents(".bx_filter_select_container");if(bx_filter_select_container.length){var prop_id=bx_filter_select_container.closest(".bx_filter_parameters_box").attr("data-property_id");$("#smartFilterDropDown"+prop_id).length&&$("#smartFilterDropDown"+prop_id).css({"max-width":bx_filter_select_container.width(),"z-index":"3020"})}})),$(document).on("mouseup",".bx_filter_section",(function(e){$(e.target).hasClass("bx_filter_search_button")&&CloseMobileFilter()})),$(document).on("mouseup",".bx_filter_parameters_box_title",(function(e){$("[id^='smartFilterDropDown']").hide(),$(e.target).hasClass("close-icons")&&CloseMobileFilter()})),$mobilefilter.parent().append('<div id="mobilefilter-overlay"></div>');var $mobilefilterOverlay=$("#mobilefilter-overlay");$mobilefilterOverlay.click((function(){$mobilefilter.isOpen&&CloseMobileFilter()})),mobileFilterNum=function(num,def){if(def)$(".bx_filter_search_button").text(num.data("f"));else{var str="",$prosLeng=$(".bx_filter_parameters_box > span");str+=$prosLeng.data("f")+" "+num+" "+declOfNumFilter(num,[$prosLeng.data("fi"),$prosLeng.data("fr"),$prosLeng.data("frm")]),$(".bx_filter_search_button").text(str)}},declOfNumFilter=function(number,titles){return cases=[2,0,1,1,1,2],titles[number%100>4&&number%100<20?2:cases[number%10<5?number%10:5]]},OpenMobileFilter=function(){if(!$mobilefilter.isOpen){if($("body").addClass("jqm-initied wf"),$(".bx_filter_vertical .slide-block__head.filter_title").removeClass("closed"),$(".bx_filter_vertical .slide-block__head.filter_title + .slide-block__body").show(),!$mobilefilter.isAppendLeft){$mobilefilter.isWrapFilter||($(".bx_filter").wrap("<div id='wrapInlineFilter'></div>"),$mobilefilter.isWrapFilter=!0),$(".bx_filter").appendTo($("#mobilefilter"));var helper=$("#filter-helper");helper.length&&helper.prependTo($("#mobilefilter .bx_filter_parameters")),$mobilefilter.isAppendLeft=!0}var init;"function"==typeof checkFilterLandgings&&checkFilterLandgings(),$("#mobilefilter .bx_filter_parameters").addClass("scrollbar"),$("#mobilefilter .slide-block .filter_title").addClass("ignore"),$("#mobilefilter .bx_filter_parameters .bx_filter_parameters_box_title").addClass("colored_theme_hover_bg-block"),$(".bx_filter_button_box.ajax-btns").addClass("colored_theme_bg"),$(".bx_filter_button_box.ajax-btns .filter-bnt-wrapper").removeClass("hidden"),InitCustomScrollBar(),setTimeout((function(){$mobilefilterOverlay.fadeIn("fast")}),100),$("body").css({overflow:"hidden",height:"100vh"}),$mobilefilter.addClass("show"),$mobilefilter.find(".bx_filter").css({display:"block"}),$mobilefilter.isOpen=!0,$("#mobilefilter .bx_filter_button_box.btns.ajax-btns").removeClass("hidden"),void 0===$mobilefilter.data("init")&&($mobilefilter.scroll((function(){$(".bx_filter_section .bx_filter_select_container").each((function(){var prop_id=$(this).closest(".bx_filter_parameters_box").attr("data-property_id");$("#smartFilterDropDown"+prop_id).length&&$("#smartFilterDropDown"+prop_id).hide()}))})),$mobilefilter.data("init","Y"))}},CloseMobileFilter=function(append){if($mobilefilter.find(".bx_filter_parameters").removeClass("scrollbar"),$("#mobilefilter .bx_filter_parameters").length&&$("body").removeClass("jqm-initied wf"),$("#mobilefilter .bx_filter_parameters .bx_filter_parameters_box_title").removeClass("colored_theme_hover_bg-block"),$(".slide-block .filter_title").removeClass("ignore"),$(".bx_filter_button_box.ajax-btns").removeClass("colored_theme_bg"),$(".bx_filter:not(.n-ajax) .bx_filter_button_box.ajax-btns .filter-bnt-wrapper").addClass("hidden"),$mobilefilter.isOpen&&($mobilefilter.find(".bx_filter_parameters").scrollTop(0),$("body").css({overflow:"",height:""}),setTimeout((function(){$mobilefilterOverlay.fadeOut("fast")}),100),$mobilefilter.removeClass("show"),$mobilefilter.isOpen=!1),append&&$mobilefilter.isAppendLeft){$(".bx_filter").appendTo($("#wrapInlineFilter")).show();var helper=$("#filter-helper");helper.length&&helper.appendTo($("#filter-helper-wrapper")),$mobilefilter.isAppendLeft=!1,$mobilefilter.removeData("init"),mobileFilterNum($("#modef_num_mobile"),!0)}},checkMobileFilter=function(){(!window.matchMedia("(max-width: 991px)").matches&&!$mobilefilter.isHorizontalOrCompact||!window.matchMedia("(max-width: 767px)").matches&&$mobilefilter.isHorizontalOrCompact)&&CloseMobileFilter(!0)}}else checkTopFilter(),$(document).on("click",".bx-filter-title",(function(){$(this).toggleClass("opened"),$(".visible_mobile_filter").length?($(".visible_mobile_filter").show(),$(".bx_filter_vertical, .bx_filter").slideToggle(333)):($(".bx_filter_vertical").closest("div[id^=bx_incl]").show(),$(".bx_filter_vertical, .bx_filter").slideToggle(333))}))})); 696/* End */ 697; 698; /* Start:"a:4:{s:4:"full";
vendor: 5,563 bytes, lines 698-763
698s:70:"/bitrix/templates/aspro_max/js/jquery.mousewheel.min.js?16586591532609";s:6:"source";s:55:"/bitrix/templates/aspro_max/js/jquery.mousewheel.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 699!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}); 700/* End */ 701; 702; /* Start:"a:4:{s:4:"full";s:73:"/bitrix/templates/aspro_max/js/jquery.mCustomScrollbar.js?165865915394214";s:6:"source";s:57:"/bitrix/templates/aspro_max/js/jquery.mCustomScrollbar.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 703/* 704== malihu jquery custom scrollbar plugin == 705Version: 3.1.5 706Plugin URI: http://manos.malihu.gr/jquery-custom-content-scroller 707Author: malihu 708Author URI: http://manos.malihu.gr 709License: MIT License (MIT) 710*/ 711 712/* 713Copyright Manos Malihutsakis (email: [email protected]) 714 715Permission is hereby granted, free of charge, to any person obtaining a copy 716of this software and associated documentation files (the "Software"), to deal 717in the Software without restriction, including without limitation the rights 718to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 719copies of the Software, and to permit persons to whom the Software is 720furnished to do so, subject to the following conditions: 721 722The above copyright notice and this permission notice shall be included in 723all copies or substantial portions of the Software. 724 725THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 726IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 727FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 728AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 729LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 730OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 731THE SOFTWARE. 732*/ 733 734/* 735The code below is fairly long, fully commented and should be normally used in development. 736For production, use either the minified jquery.mCustomScrollbar.min.js script or 737the production-ready jquery.mCustomScrollbar.concat.min.js which contains the plugin 738and dependencies (minified). 739*/ 740 741(function(factory){ 742 if(typeof define==="function" && define.amd){ 743 define(["jquery"],factory); 744 }else if(typeof module!=="undefined" && module.exports){ 745 module.exports=factory; 746 }else{ 747 factory(jQuery,window,document); 748 } 749}(function($){ 750(function(init){ 751 var _rjs=typeof define==="function" && define.amd, /* RequireJS */ 752 _njs=typeof module !== "undefined" && module.exports, /* NodeJS */ 753 _dlp=("https:"==document.location.protocol) ? "https:" : "http:", /* location protocol */ 754 _url="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"; 755 if(!_rjs){ 756 if(_njs){ 757 require("jquery-mousewheel")($); 758 }else{ 759 /* load jquery-mousewheel plugin (via CDN) if it's not present or not loaded via RequireJS 760 (works when mCustomScrollbar fn is called on window load) */ 761 $.event.special.mousewheel || $("head").append(decodeURI("%3Cscript src="+_dlp+"//"+_url+"%3E%3C/script%3E")); 762 } 763 }
vendor: 9,056 bytes, lines 764-1086
764 init(); 765}(function(){ 766 767 /* 768 ---------------------------------------- 769 PLUGIN NAMESPACE, PREFIX, DEFAULT SELECTOR(S) 770 ---------------------------------------- 771 */ 772 773 var pluginNS="mCustomScrollbar", 774 pluginPfx="mCS", 775 defaultSelector=".mCustomScrollbar", 776 777 778 779 780 781 /* 782 ---------------------------------------- 783 DEFAULT OPTIONS 784 ---------------------------------------- 785 */ 786 787 defaults={ 788 /* 789 set element/content width/height programmatically 790 values: boolean, pixels, percentage 791 option default 792 ------------------------------------- 793 setWidth false 794 setHeight false 795 */ 796 /* 797 set the initial css top property of content 798 values: string (e.g. "-100px", "10%" etc.) 799 */ 800 setTop:0, 801 /* 802 set the initial css left property of content 803 values: string (e.g. "-100px", "10%" etc.) 804 */ 805 setLeft:0, 806 /* 807 scrollbar axis (vertical and/or horizontal scrollbars) 808 values (string): "y", "x", "yx" 809 */ 810 axis:"y", 811 /* 812 position of scrollbar relative to content 813 values (string): "inside", "outside" ("outside" requires elements with position:relative) 814 */ 815 scrollbarPosition:"inside", 816 /* 817 scrolling inertia 818 values: integer (milliseconds) 819 */ 820 scrollInertia:100, 821 /* 822 auto-adjust scrollbar dragger length 823 values: boolean 824 */ 825 autoDraggerLength:true, 826 /* 827 auto-hide scrollbar when idle 828 values: boolean 829 option default 830 ------------------------------------- 831 autoHideScrollbar false 832 */ 833 /* 834 auto-expands scrollbar on mouse-over and dragging 835 values: boolean 836 option default 837 ------------------------------------- 838 autoExpandScrollbar false 839 */ 840 /* 841 always show scrollbar, even when there's nothing to scroll 842 values: integer (0=disable, 1=always show dragger rail and buttons, 2=always show dragger rail, dragger and buttons), boolean 843 */ 844 alwaysShowScrollbar:0, 845 /* 846 scrolling always snaps to a multiple of this number in pixels 847 values: integer, array ([y,x]) 848 option default 849 ------------------------------------- 850 snapAmount null 851 */ 852 /* 853 when snapping, snap with this number in pixels as an offset 854 values: integer 855 */ 856 snapOffset:0, 857 /* 858 mouse-wheel scrolling 859 */ 860 mouseWheel:{ 861 /* 862 enable mouse-wheel scrolling 863 values: boolean 864 */ 865 enable:true, 866 /* 867 scrolling amount in pixels 868 values: "auto", integer 869 */ 870 scrollAmount:"auto", 871 /* 872 mouse-wheel scrolling axis 873 the default scrolling direction when both vertical and horizontal scrollbars are present 874 values (string): "y", "x" 875 */ 876 axis:"y", 877 /* 878 prevent the default behaviour which automatically scrolls the parent element(s) when end of scrolling is reached 879 values: boolean 880 option default 881 ------------------------------------- 882 preventDefault null 883 */ 884 /* 885 the reported mouse-wheel delta value. The number of lines (translated to pixels) one wheel notch scrolls. 886 values: "auto", integer 887 "auto" uses the default OS/browser value 888 */ 889 deltaFactor:"auto", 890 /* 891 normalize mouse-wheel delta to -1 or 1 (disables mouse-wheel acceleration) 892 values: boolean 893 option default 894 ------------------------------------- 895 normalizeDelta null 896 */ 897 /* 898 invert mouse-wheel scrolling direction 899 values: boolean 900 option default 901 ------------------------------------- 902 invert null 903 */ 904 /* 905 the tags that disable mouse-wheel when cursor is over them 906 */ 907 disableOver:["select","option","keygen","datalist","textarea"] 908 }, 909 /* 910 scrollbar buttons 911 */ 912 scrollButtons:{ 913 /* 914 enable scrollbar buttons 915 values: boolean 916 option default 917 ------------------------------------- 918 enable null 919 */ 920 /* 921 scrollbar buttons scrolling type 922 values (string): "stepless", "stepped" 923 */ 924 scrollType:"stepless", 925 /* 926 scrolling amount in pixels 927 values: "auto", integer 928 */ 929 scrollAmount:"auto" 930 /* 931 tabindex of the scrollbar buttons 932 values: false, integer 933 option default 934 ------------------------------------- 935 tabindex null 936 */ 937 }, 938 /* 939 keyboard scrolling 940 */ 941 keyboard:{ 942 /* 943 enable scrolling via keyboard 944 values: boolean 945 */ 946 enable:true, 947 /* 948 keyboard scrolling type 949 values (string): "stepless", "stepped" 950 */ 951 scrollType:"stepless", 952 /* 953 scrolling amount in pixels 954 values: "auto", integer 955 */ 956 scrollAmount:"auto" 957 }, 958 /* 959 enable content touch-swipe scrolling 960 values: boolean, integer, string (number) 961 integer values define the axis-specific minimum amount required for scrolling momentum 962 */ 963 contentTouchScroll:25, 964 /* 965 enable/disable document (default) touch-swipe scrolling 966 */ 967 documentTouchScroll:true, 968 /* 969 advanced option parameters 970 */ 971 advanced:{ 972 /* 973 auto-expand content horizontally (for "x" or "yx" axis) 974 values: boolean, integer (the value 2 forces the non scrollHeight/scrollWidth method, the value 3 forces the scrollHeight/scrollWidth method) 975 option default 976 ------------------------------------- 977 autoExpandHorizontalScroll null 978 */ 979 /* 980 auto-scroll to elements with focus 981 */ 982 autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']", 983 /* 984 auto-update scrollbars on content, element or viewport resize 985 should be true for fluid layouts/elements, adding/removing content dynamically, hiding/showing elements, content with images etc. 986 values: boolean 987 */ 988 updateOnContentResize:true, 989 /* 990 auto-update scrollbars each time each image inside the element is fully loaded 991 values: "auto", boolean 992 */ 993 updateOnImageLoad:"auto", 994 /* 995 auto-update scrollbars based on the amount and size changes of specific selectors 996 useful when you need to update the scrollbar(s) automatically, each time a type of element is added, removed or changes its size 997 values: boolean, string (e.g. "ul li" will auto-update scrollbars each time list-items inside the element are changed) 998 a value of true (boolean) will auto-update scrollbars each time any element is changed 999 option default 1000 ------------------------------------- 1001 updateOnSelectorChange null 1002 */ 1003 /* 1004 extra selectors that'll allow scrollbar dragging upon mousemove/up, pointermove/up, touchend etc. (e.g. "selector-1, selector-2") 1005 option default 1006 ------------------------------------- 1007 extraDraggableSelectors null 1008 */ 1009 /* 1010 extra selectors that'll release scrollbar dragging upon mouseup, pointerup, touchend etc. (e.g. "selector-1, selector-2") 1011 option default 1012 ------------------------------------- 1013 releaseDraggableSelectors null 1014 */ 1015 /* 1016 auto-update timeout 1017 values: integer (milliseconds) 1018 */ 1019 autoUpdateTimeout:60 1020 }, 1021 /* 1022 scrollbar theme 1023 values: string (see CSS/plugin URI for a list of ready-to-use themes) 1024 */ 1025 theme:"light", 1026 /* 1027 user defined callback functions 1028 */ 1029 callbacks:{ 1030 /* 1031 Available callbacks: 1032 callback default 1033 ------------------------------------- 1034 onCreate null 1035 onInit null 1036 onScrollStart null 1037 onScroll null 1038 onTotalScroll null 1039 onTotalScrollBack null 1040 whileScrolling null 1041 onOverflowY null 1042 onOverflowX null 1043 onOverflowYNone null 1044 onOverflowXNone null 1045 onImageLoad null 1046 onSelectorChange null 1047 onBeforeUpdate null 1048 onUpdate null 1049 */ 1050 onTotalScrollOffset:0, 1051 onTotalScrollBackOffset:0, 1052 alwaysTriggerOffsets:true 1053 } 1054 /* 1055 add scrollbar(s) on all elements matching the current selector, now and in the future 1056 values: boolean, string 1057 string values: "on" (enable), "once" (disable after first invocation), "off" (disable) 1058 liveSelector values: string (selector) 1059 option default 1060 ------------------------------------- 1061 live false 1062 liveSelector null 1063 */ 1064 }, 1065 1066 1067 1068 1069 1070 /* 1071 ---------------------------------------- 1072 VARS, CONSTANTS 1073 ---------------------------------------- 1074 */ 1075 1076 totalInstances=0, /* plugin instances amount */ 1077 liveTimers={}, /* live option timers */ 1078 oldIE=(window.attachEvent && !window.addEventListener) ? 1 : 0, /* detect IE < 9 */ 1079 touchActive=false,touchable, /* global touch vars (for touch and pointer events) */ 1080 /* general plugin classes */ 1081 classes=[ 1082 "mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar", 1083 "mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer", 1084 "mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft colored_theme_hover_text","mCSB_buttonRight colored_theme_hover_text" 1085 ], 1086 touchOffCustom = false;
vendor: 22,935 bytes, lines 1086-1650
1086 1087 1088 1089 1090 1091 1092 /* 1093 ---------------------------------------- 1094 METHODS 1095 ---------------------------------------- 1096 */ 1097 1098 methods={ 1099 1100 /* 1101 plugin initialization method 1102 creates the scrollbar(s), plugin data object and options 1103 ---------------------------------------- 1104 */ 1105 1106 init:function(options){ 1107 1108 var options=$.extend(true,{},defaults,options), 1109 selector=_selector.call(this); /* validate selector */ 1110 1111 /* 1112 if live option is enabled, monitor for elements matching the current selector and 1113 apply scrollbar(s) when found (now and in the future) 1114 */ 1115 if(options.live){ 1116 var liveSelector=options.liveSelector || this.selector || defaultSelector, /* live selector(s) */ 1117 $liveSelector=$(liveSelector); /* live selector(s) as jquery object */ 1118 if(options.live==="off"){ 1119 /* 1120 disable live if requested 1121 usage: $(selector).mCustomScrollbar({live:"off"}); 1122 */ 1123 removeLiveTimers(liveSelector); 1124 return; 1125 } 1126 liveTimers[liveSelector]=setTimeout(function(){ 1127 /* call mCustomScrollbar fn on live selector(s) every half-second */ 1128 $liveSelector.mCustomScrollbar(options); 1129 if(options.live==="once" && $liveSelector.length){ 1130 /* disable live after first invocation */ 1131 removeLiveTimers(liveSelector); 1132 } 1133 },500); 1134 }else{ 1135 removeLiveTimers(liveSelector); 1136 } 1137 1138 /* options backward compatibility (for versions < 3.0.0) and normalization */ 1139 options.setWidth=(options.set_width) ? options.set_width : options.setWidth; 1140 options.setHeight=(options.set_height) ? options.set_height : options.setHeight; 1141 options.axis=(options.horizontalScroll) ? "x" : _findAxis(options.axis); 1142 options.scrollInertia=options.scrollInertia>0 && options.scrollInertia<17 ? 17 : options.scrollInertia; 1143 if(typeof options.mouseWheel!=="object" && options.mouseWheel==true){ /* old school mouseWheel option (non-object) */ 1144 options.mouseWheel={enable:true,scrollAmount:"auto",axis:"y",preventDefault:false,deltaFactor:"auto",normalizeDelta:false,invert:false} 1145 } 1146 options.mouseWheel.scrollAmount=!options.mouseWheelPixels ? options.mouseWheel.scrollAmount : options.mouseWheelPixels; 1147 options.mouseWheel.normalizeDelta=!options.advanced.normalizeMouseWheelDelta ? options.mouseWheel.normalizeDelta : options.advanced.normalizeMouseWheelDelta; 1148 options.scrollButtons.scrollType=_findScrollButtonsType(options.scrollButtons.scrollType); 1149 1150 _theme(options); /* theme-specific options */ 1151 1152 /* plugin constructor */ 1153 return $(selector).each(function(){ 1154 1155 var $this=$(this); 1156 1157 if(!$this.data(pluginPfx)){ /* prevent multiple instantiations */ 1158 1159 /* store options and create objects in jquery data */ 1160 $this.data(pluginPfx,{ 1161 idx:++totalInstances, /* instance index */ 1162 opt:options, /* options */ 1163 scrollRatio:{y:null,x:null}, /* scrollbar to content ratio */ 1164 overflowed:null, /* overflowed axis */ 1165 contentReset:{y:null,x:null}, /* object to check when content resets */ 1166 bindEvents:false, /* object to check if events are bound */ 1167 tweenRunning:false, /* object to check if tween is running */ 1168 sequential:{}, /* sequential scrolling object */ 1169 langDir:$this.css("direction"), /* detect/store direction (ltr or rtl) */ 1170 cbOffsets:null, /* object to check whether callback offsets always trigger */ 1171 /* 1172 object to check how scrolling events where last triggered 1173 "internal" (default - triggered by this script), "external" (triggered by other scripts, e.g. via scrollTo method) 1174 usage: object.data("mCS").trigger 1175 */ 1176 trigger:null, 1177 /* 1178 object to check for changes in elements in order to call the update method automatically 1179 */ 1180 poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}} 1181 }); 1182 1183 var d=$this.data(pluginPfx),o=d.opt, 1184 /* HTML data attributes */ 1185 htmlDataAxis=$this.data("mcs-axis"),htmlDataSbPos=$this.data("mcs-scrollbar-position"),htmlDataTheme=$this.data("mcs-theme"); 1186 1187 if(htmlDataAxis){o.axis=htmlDataAxis;} /* usage example: data-mcs-axis="y" */ 1188 if(htmlDataSbPos){o.scrollbarPosition=htmlDataSbPos;} /* usage example: data-mcs-scrollbar-position="outside" */ 1189 if(htmlDataTheme){ /* usage example: data-mcs-theme="minimal" */ 1190 o.theme=htmlDataTheme; 1191 _theme(o); /* theme-specific options */ 1192 } 1193 1194 _pluginMarkup.call(this); /* add plugin markup */ 1195 1196 if(d && o.callbacks.onCreate && typeof o.callbacks.onCreate==="function"){o.callbacks.onCreate.call(this);} /* callbacks: onCreate */ 1197 1198 $("#mCSB_"+d.idx+"_container img:not(."+classes[2]+")").addClass(classes[2]); /* flag loaded images */ 1199 1200 methods.update.call(null,$this); /* call the update method */ 1201 1202 } 1203 1204 }); 1205 1206 }, 1207 /* ---------------------------------------- */ 1208 1209 1210 1211 /* 1212 plugin update method 1213 updates content and scrollbar(s) values, events and status 1214 ---------------------------------------- 1215 usage: $(selector).mCustomScrollbar("update"); 1216 */ 1217 1218 update:function(el,cb){ 1219 1220 var selector=el || _selector.call(this); /* validate selector */ 1221 1222 return $(selector).each(function(){ 1223 1224 var $this=$(this); 1225 1226 if($this.data(pluginPfx)){ /* check if plugin has initialized */ 1227 1228 var d=$this.data(pluginPfx),o=d.opt, 1229 mCSB_container=$("#mCSB_"+d.idx+"_container"), 1230 mCustomScrollBox=$("#mCSB_"+d.idx), 1231 mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")]; 1232 1233 if(!mCSB_container.length){return;} 1234 1235 if(d.tweenRunning){_stop($this);} /* stop any running tweens while updating */ 1236 1237 if(cb && d && o.callbacks.onBeforeUpdate && typeof o.callbacks.onBeforeUpdate==="function"){o.callbacks.onBeforeUpdate.call(this);} /* callbacks: onBeforeUpdate */ 1238 1239 /* if element was disabled or destroyed, remove class(es) */ 1240 if($this.hasClass(classes[3])){$this.removeClass(classes[3]);} 1241 if($this.hasClass(classes[4])){$this.removeClass(classes[4]);} 1242 1243 /* css flexbox fix, detect/set max-height */ 1244 mCustomScrollBox.css("max-height","none"); 1245 if(mCustomScrollBox.height()!==$this.height()){mCustomScrollBox.css("max-height",$this.height());} 1246 1247 _expandContentHorizontally.call(this); /* expand content horizontally */ 1248 1249 if(o.axis!=="y" && !o.advanced.autoExpandHorizontalScroll){ 1250 mCSB_container.css("width",_contentWidth(mCSB_container)); 1251 } 1252 1253 d.overflowed=_overflowed.call(this); /* determine if scrolling is required */ 1254 1255 _scrollbarVisibility.call(this); /* show/hide scrollbar(s) */ 1256 1257 /* auto-adjust scrollbar dragger length analogous to content */ 1258 if(o.autoDraggerLength){_setDraggerLength.call(this);} 1259 1260 _scrollRatio.call(this); /* calculate and store scrollbar to content ratio */ 1261 1262 _bindEvents.call(this); /* bind scrollbar events */ 1263 1264 /* reset scrolling position and/or events */ 1265 var to=[Math.abs(mCSB_container[0].offsetTop),Math.abs(mCSB_container[0].offsetLeft)]; 1266 if(o.axis!=="x"){ /* y/yx axis */ 1267 if(!d.overflowed[0]){ /* y scrolling is not required */ 1268 _resetContentPosition.call(this); /* reset content position */ 1269 if(o.axis==="y"){ 1270 _unbindEvents.call(this); 1271 }else if(o.axis==="yx" && d.overflowed[1]){ 1272 _scrollTo($this,to[1].toString(),{dir:"x",dur:0,overwrite:"none"}); 1273 } 1274 }else if(mCSB_dragger[0].height()>mCSB_dragger[0].parent().height()){ 1275 _resetContentPosition.call(this); /* reset content position */ 1276 }else{ /* y scrolling is required */ 1277 _scrollTo($this,to[0].toString(),{dir:"y",dur:0,overwrite:"none"}); 1278 d.contentReset.y=null; 1279 } 1280 } 1281 if(o.axis!=="y"){ /* x/yx axis */ 1282 if(!d.overflowed[1]){ /* x scrolling is not required */ 1283 _resetContentPosition.call(this); /* reset content position */ 1284 if(o.axis==="x"){ 1285 _unbindEvents.call(this); 1286 }else if(o.axis==="yx" && d.overflowed[0]){ 1287 _scrollTo($this,to[0].toString(),{dir:"y",dur:0,overwrite:"none"}); 1288 } 1289 }else if(mCSB_dragger[1].width()>mCSB_dragger[1].parent().width()){ 1290 _resetContentPosition.call(this); /* reset content position */ 1291 }else{ /* x scrolling is required */ 1292 _scrollTo($this,to[1].toString(),{dir:"x",dur:0,overwrite:"none"}); 1293 d.contentReset.x=null; 1294 } 1295 } 1296 1297 /* callbacks: onImageLoad, onSelectorChange, onUpdate */ 1298 if(cb && d){ 1299 if(cb===2 && o.callbacks.onImageLoad && typeof o.callbacks.onImageLoad==="function"){ 1300 o.callbacks.onImageLoad.call(this); 1301 }else if(cb===3 && o.callbacks.onSelectorChange && typeof o.callbacks.onSelectorChange==="function"){ 1302 o.callbacks.onSelectorChange.call(this); 1303 }else if(o.callbacks.onUpdate && typeof o.callbacks.onUpdate==="function"){ 1304 o.callbacks.onUpdate.call(this); 1305 } 1306 } 1307 1308 _autoUpdate.call(this); /* initialize automatic updating (for dynamic content, fluid layouts etc.) */ 1309 1310 } 1311 1312 }); 1313 1314 }, 1315 /* ---------------------------------------- */ 1316 1317 1318 1319 /* 1320 plugin scrollTo method 1321 triggers a scrolling event to a specific value 1322 ---------------------------------------- 1323 usage: $(selector).mCustomScrollbar("scrollTo",value,options); 1324 */ 1325 1326 scrollTo:function(val,options){ 1327 1328 /* prevent silly things like $(selector).mCustomScrollbar("scrollTo",undefined); */ 1329 if(typeof val=="undefined" || val==null){return;} 1330 1331 var selector=_selector.call(this); /* validate selector */ 1332 1333 return $(selector).each(function(){ 1334 1335 var $this=$(this); 1336 1337 if($this.data(pluginPfx)){ /* check if plugin has initialized */ 1338 1339 var d=$this.data(pluginPfx),o=d.opt, 1340 /* method default options */ 1341 methodDefaults={ 1342 trigger:"external", /* method is by default triggered externally (e.g. from other scripts) */ 1343 scrollInertia:o.scrollInertia, /* scrolling inertia (animation duration) */ 1344 scrollEasing:"mcsEaseInOut", /* animation easing */ 1345 moveDragger:false, /* move dragger instead of content */ 1346 timeout:60, /* scroll-to delay */ 1347 callbacks:true, /* enable/disable callbacks */ 1348 onStart:true, 1349 onUpdate:true, 1350 onComplete:true 1351 }, 1352 methodOptions=$.extend(true,{},methodDefaults,options), 1353 to=_arr.call(this,val),dur=methodOptions.scrollInertia>0 && methodOptions.scrollInertia<17 ? 17 : methodOptions.scrollInertia; 1354 1355 /* translate yx values to actual scroll-to positions */ 1356 to[0]=_to.call(this,to[0],"y"); 1357 to[1]=_to.call(this,to[1],"x"); 1358 1359 /* 1360 check if scroll-to value moves the dragger instead of content. 1361 Only pixel values apply on dragger (e.g. 100, "100px", "-=100" etc.) 1362 */ 1363 if(methodOptions.moveDragger){ 1364 to[0]*=d.scrollRatio.y; 1365 to[1]*=d.scrollRatio.x; 1366 } 1367 1368 methodOptions.dur=_isTabHidden() ? 0 : dur; //skip animations if browser tab is hidden 1369 setTimeout(function(){ 1370 /* do the scrolling */ 1371 if(to[0]!==null && typeof to[0]!=="undefined" && o.axis!=="x" && d.overflowed[0]){ /* scroll y */ 1372 methodOptions.dir="y"; 1373 methodOptions.overwrite="all"; 1374 _scrollTo($this,to[0].toString(),methodOptions); 1375 } 1376 if(to[1]!==null && typeof to[1]!=="undefined" && o.axis!=="y" && d.overflowed[1]){ /* scroll x */ 1377 methodOptions.dir="x"; 1378 methodOptions.overwrite="none"; 1379 _scrollTo($this,to[1].toString(),methodOptions); 1380 } 1381 },methodOptions.timeout); 1382 1383 } 1384 1385 }); 1386 1387 }, 1388 /* ---------------------------------------- */ 1389 1390 1391 1392 /* 1393 plugin stop method 1394 stops scrolling animation 1395 ---------------------------------------- 1396 usage: $(selector).mCustomScrollbar("stop"); 1397 */ 1398 stop:function(){ 1399 1400 var selector=_selector.call(this); /* validate selector */ 1401 1402 return $(selector).each(function(){ 1403 1404 var $this=$(this); 1405 1406 if($this.data(pluginPfx)){ /* check if plugin has initialized */ 1407 1408 _stop($this); 1409 1410 } 1411 1412 }); 1413 1414 }, 1415 /* ---------------------------------------- */ 1416 1417 1418 1419 /* 1420 plugin disable method 1421 temporarily disables the scrollbar(s) 1422 ---------------------------------------- 1423 usage: $(selector).mCustomScrollbar("disable",reset); 1424 reset (boolean): resets content position to 0 1425 */ 1426 disable:function(r){ 1427 1428 var selector=_selector.call(this); /* validate selector */ 1429 1430 return $(selector).each(function(){ 1431 1432 var $this=$(this); 1433 1434 if($this.data(pluginPfx)){ /* check if plugin has initialized */ 1435 1436 var d=$this.data(pluginPfx); 1437 1438 _autoUpdate.call(this,"remove"); /* remove automatic updating */ 1439 1440 _unbindEvents.call(this); /* unbind events */ 1441 1442 if(r){_resetContentPosition.call(this);} /* reset content position */ 1443 1444 _scrollbarVisibility.call(this,true); /* show/hide scrollbar(s) */ 1445 1446 $this.addClass(classes[3]); /* add disable class */ 1447 1448 } 1449 1450 }); 1451 1452 }, 1453 /* ---------------------------------------- */ 1454 1455 1456 1457 /* 1458 plugin destroy method 1459 completely removes the scrollbar(s) and returns the element to its original state 1460 ---------------------------------------- 1461 usage: $(selector).mCustomScrollbar("destroy"); 1462 */ 1463 destroy:function(){ 1464 1465 var selector=_selector.call(this); /* validate selector */ 1466 1467 return $(selector).each(function(){ 1468 1469 var $this=$(this); 1470 1471 if($this.data(pluginPfx)){ /* check if plugin has initialized */ 1472 1473 var d=$this.data(pluginPfx),o=d.opt, 1474 mCustomScrollBox=$("#mCSB_"+d.idx), 1475 mCSB_container=$("#mCSB_"+d.idx+"_container"), 1476 scrollbar=$(".mCSB_"+d.idx+"_scrollbar"); 1477 1478 if(o.live){removeLiveTimers(o.liveSelector || $(selector).selector);} /* remove live timers */ 1479 1480 _autoUpdate.call(this,"remove"); /* remove automatic updating */ 1481 1482 _unbindEvents.call(this); /* unbind events */ 1483 1484 _resetContentPosition.call(this); /* reset content position */ 1485 1486 $this.removeData(pluginPfx); /* remove plugin data object */ 1487 1488 _delete(this,"mcs"); /* delete callbacks object */ 1489 1490 /* remove plugin markup */ 1491 scrollbar.remove(); /* remove scrollbar(s) first (those can be either inside or outside plugin's inner wrapper) */ 1492 mCSB_container.find("img."+classes[2]).removeClass(classes[2]); /* remove loaded images flag */ 1493 mCustomScrollBox.replaceWith(mCSB_container.contents()); /* replace plugin's inner wrapper with the original content */ 1494 /* remove plugin classes from the element and add destroy class */ 1495 $this.removeClass(pluginNS+" _"+pluginPfx+"_"+d.idx+" "+classes[6]+" "+classes[7]+" "+classes[5]+" "+classes[3]).addClass(classes[4]); 1496 1497 } 1498 1499 }); 1500 1501 } 1502 /* ---------------------------------------- */ 1503 1504 }, 1505 1506 1507 1508 1509 1510 /* 1511 ---------------------------------------- 1512 FUNCTIONS 1513 ---------------------------------------- 1514 */ 1515 1516 /* validates selector (if selector is invalid or undefined uses the default one) */ 1517 _selector=function(){ 1518 return (typeof $(this)!=="object" || $(this).length<1) ? defaultSelector : this; 1519 }, 1520 /* -------------------- */ 1521 1522 1523 /* changes options according to theme */ 1524 _theme=function(obj){ 1525 var fixedSizeScrollbarThemes=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"], 1526 nonExpandedScrollbarThemes=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"], 1527 disabledScrollButtonsThemes=["minimal","minimal-dark"], 1528 enabledAutoHideScrollbarThemes=["minimal","minimal-dark"], 1529 scrollbarPositionOutsideThemes=["minimal","minimal-dark"]; 1530 obj.autoDraggerLength=$.inArray(obj.theme,fixedSizeScrollbarThemes) > -1 ? false : obj.autoDraggerLength; 1531 obj.autoExpandScrollbar=$.inArray(obj.theme,nonExpandedScrollbarThemes) > -1 ? false : obj.autoExpandScrollbar; 1532 obj.scrollButtons.enable=$.inArray(obj.theme,disabledScrollButtonsThemes) > -1 ? false : obj.scrollButtons.enable; 1533 obj.autoHideScrollbar=$.inArray(obj.theme,enabledAutoHideScrollbarThemes) > -1 ? true : obj.autoHideScrollbar; 1534 obj.scrollbarPosition=$.inArray(obj.theme,scrollbarPositionOutsideThemes) > -1 ? "outside" : obj.scrollbarPosition; 1535 }, 1536 /* -------------------- */ 1537 1538 1539 /* live option timers removal */ 1540 removeLiveTimers=function(selector){ 1541 if(liveTimers[selector]){ 1542 clearTimeout(liveTimers[selector]); 1543 _delete(liveTimers,selector); 1544 } 1545 }, 1546 /* -------------------- */ 1547 1548 1549 /* normalizes axis option to valid values: "y", "x", "yx" */ 1550 _findAxis=function(val){ 1551 return (val==="yx" || val==="xy" || val==="auto") ? "yx" : (val==="x" || val==="horizontal") ? "x" : "y"; 1552 }, 1553 /* -------------------- */ 1554 1555 1556 /* normalizes scrollButtons.scrollType option to valid values: "stepless", "stepped" */ 1557 _findScrollButtonsType=function(val){ 1558 return (val==="stepped" || val==="pixels" || val==="step" || val==="click") ? "stepped" : "stepless"; 1559 }, 1560 /* -------------------- */ 1561 1562 1563 /* generates plugin markup */ 1564 _pluginMarkup=function(){ 1565 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 1566 expandClass=o.autoExpandScrollbar ? " "+classes[1]+"_expand" : "", 1567 scrollbar=["<div id='mCSB_"+d.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+d.idx+"_scrollbar mCS-"+o.theme+" mCSB_scrollTools_vertical"+expandClass+"'><div class='"+classes[12]+"'><div id='mCSB_"+d.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+d.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+d.idx+"_scrollbar mCS-"+o.theme+" mCSB_scrollTools_horizontal"+expandClass+"'><div class='"+classes[12]+"'><div id='mCSB_"+d.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"], 1568 wrapperClass=o.axis==="yx" ? "mCSB_vertical_horizontal" : o.axis==="x" ? "mCSB_horizontal" : "mCSB_vertical", 1569 scrollbars=o.axis==="yx" ? scrollbar[0]+scrollbar[1] : o.axis==="x" ? scrollbar[1] : scrollbar[0], 1570 contentWrapper=o.axis==="yx" ? "<div id='mCSB_"+d.idx+"_container_wrapper' class='mCSB_container_wrapper' />" : "", 1571 autoHideClass=o.autoHideScrollbar ? " "+classes[6] : "", 1572 scrollbarDirClass=(o.axis!=="x" && d.langDir==="rtl") ? " "+classes[7] : ""; 1573 if(o.setWidth){$this.css("width",o.setWidth);} /* set element width */ 1574 if(o.setHeight){$this.css("height",o.setHeight);} /* set element height */ 1575 o.setLeft=(o.axis!=="y" && d.langDir==="rtl") ? "989999px" : o.setLeft; /* adjust left position for rtl direction */ 1576 $this.addClass(pluginNS+" _"+pluginPfx+"_"+d.idx+autoHideClass+scrollbarDirClass).wrapInner("<div id='mCSB_"+d.idx+"' class='mCustomScrollBox mCS-"+o.theme+" "+wrapperClass+"'><div id='mCSB_"+d.idx+"_container' class='mCSB_container' style='position:relative; top:"+o.setTop+"; left:"+o.setLeft+";' dir='"+d.langDir+"' /></div>"); 1577 var mCustomScrollBox=$("#mCSB_"+d.idx), 1578 mCSB_container=$("#mCSB_"+d.idx+"_container"); 1579 if(o.axis!=="y" && !o.advanced.autoExpandHorizontalScroll){ 1580 mCSB_container.css("width",_contentWidth(mCSB_container)); 1581 } 1582 if(o.scrollbarPosition==="outside"){ 1583 if($this.css("position")==="static"){ /* requires elements with non-static position */ 1584 $this.css("position","relative"); 1585 } 1586 $this.css("overflow","visible"); 1587 mCustomScrollBox.addClass("mCSB_outside").after(scrollbars); 1588 }else{ 1589 mCustomScrollBox.addClass("mCSB_inside").append(scrollbars); 1590 mCSB_container.wrap(contentWrapper); 1591 } 1592 _scrollButtons.call(this); /* add scrollbar buttons */ 1593 /* minimum dragger length */ 1594 var mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")]; 1595 mCSB_dragger[0].css("min-height",mCSB_dragger[0].height()); 1596 mCSB_dragger[1].css("min-width",mCSB_dragger[1].width()); 1597 }, 1598 /* -------------------- */ 1599 1600 1601 /* calculates content width */ 1602 _contentWidth=function(el){ 1603 var val=[el[0].scrollWidth,Math.max.apply(Math,el.children().map(function(){return $(this).outerWidth(true);}).get())],w=el.parent().width(); 1604 return val[0]>w ? val[0] : val[1]>w ? val[1] : "100%"; 1605 }, 1606 /* -------------------- */ 1607 1608 1609 /* expands content horizontally */ 1610 _expandContentHorizontally=function(){ 1611 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 1612 mCSB_container=$("#mCSB_"+d.idx+"_container"); 1613 if(o.advanced.autoExpandHorizontalScroll && o.axis!=="y"){ 1614 /* calculate scrollWidth */ 1615 mCSB_container.css({"width":"auto","min-width":0,"overflow-x":"scroll"}); 1616 var w=Math.ceil(mCSB_container[0].scrollWidth); 1617 if(o.advanced.autoExpandHorizontalScroll===3 || (o.advanced.autoExpandHorizontalScroll!==2 && w>mCSB_container.parent().width())){ 1618 mCSB_container.css({"width":w,"min-width":"100%","overflow-x":"inherit"}); 1619 }else{ 1620 /* 1621 wrap content with an infinite width div and set its position to absolute and width to auto. 1622 Setting width to auto before calculating the actual width is important! 1623 We must let the browser set the width as browser zoom values are impossible to calculate. 1624 */ 1625 mCSB_container.css({"overflow-x":"inherit","position":"absolute"}) 1626 .wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />") 1627 .css({ /* set actual width, original position and un-wrap */ 1628 /* 1629 get the exact width (with decimals) and then round-up. 1630 Using jquery outerWidth() will round the width value which will mess up with inner elements that have non-integer width 1631 */ 1632 "width":(Math.ceil(mCSB_container[0].getBoundingClientRect().right+0.4)-Math.floor(mCSB_container[0].getBoundingClientRect().left)), 1633 "min-width":"100%", 1634 "position":"relative" 1635 }).unwrap(); 1636 } 1637 } 1638 }, 1639 /* -------------------- */ 1640 1641 1642 /* adds scrollbar buttons */ 1643 _scrollButtons=function(){ 1644 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 1645 mCSB_scrollTools=$(".mCSB_"+d.idx+"_scrollbar:first"), 1646 tabindex=!_isNumeric(o.scrollButtons.tabindex) ? "" : "tabindex='"+o.scrollButtons.tabindex+"'", 1647 btnHTML=[ 1648 "<a href='#' class='"+classes[13]+"' "+tabindex+" />", 1649 "<a href='#' class='"+classes[14]+"' "+tabindex+" />", 1650 "<a href='#' class='"+classes[15]+"' "+tabindex+"
1650><i class='svg right'><svg width='12' height='6.969' viewBox='0 0 12 6.969'><path class='cls-1' d='M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z' transform='translate(-350 -395.031)'></path></svg></i></a>", 1651 "<a href='#' class='"+classes[16]+"' "+tabindex+" ><i class='svg right'><svg width='12' height='6.969' viewBox='0 0 12 6.969'><path class='cls-1' d='M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.99
vendor: 17,514 bytes, lines 1651-2074
16511,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z' transform='translate(-350 -395.031)'></path></svg></i></a>" 1652 ], 1653 btn=[(o.axis==="x" ? btnHTML[2] : btnHTML[0]),(o.axis==="x" ? btnHTML[3] : btnHTML[1]),btnHTML[2],btnHTML[3]]; 1654 if(o.scrollButtons.enable){ 1655 mCSB_scrollTools.prepend(btn[0]).append(btn[1]).next(".mCSB_scrollTools").prepend(btn[2]).append(btn[3]); 1656 } 1657 }, 1658 /* -------------------- */ 1659 1660 1661 /* auto-adjusts scrollbar dragger length */ 1662 _setDraggerLength=function(){ 1663 var $this=$(this),d=$this.data(pluginPfx), 1664 mCustomScrollBox=$("#mCSB_"+d.idx), 1665 mCSB_container=$("#mCSB_"+d.idx+"_container"), 1666 mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")], 1667 ratio=[mCustomScrollBox.height()/mCSB_container.outerHeight(false),mCustomScrollBox.width()/mCSB_container.outerWidth(false)], 1668 l=[ 1669 parseInt(mCSB_dragger[0].css("min-height")),Math.round(ratio[0]*mCSB_dragger[0].parent().height()), 1670 parseInt(mCSB_dragger[1].css("min-width")),Math.round(ratio[1]*mCSB_dragger[1].parent().width()) 1671 ], 1672 h=oldIE && (l[1]<l[0]) ? l[0] : l[1],w=oldIE && (l[3]<l[2]) ? l[2] : l[3]; 1673 mCSB_dragger[0].css({ 1674 "height":h,"max-height":(mCSB_dragger[0].parent().height()-10) 1675 }).find(".mCSB_dragger_bar").css({"line-height":l[0]+"px"}); 1676 mCSB_dragger[1].css({ 1677 "width":w,"max-width":(mCSB_dragger[1].parent().width()-10) 1678 }); 1679 }, 1680 /* -------------------- */ 1681 1682 1683 /* calculates scrollbar to content ratio */ 1684 _scrollRatio=function(){ 1685 var $this=$(this),d=$this.data(pluginPfx), 1686 mCustomScrollBox=$("#mCSB_"+d.idx), 1687 mCSB_container=$("#mCSB_"+d.idx+"_container"), 1688 mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")], 1689 scrollAmount=[mCSB_container.outerHeight(false)-mCustomScrollBox.height(),mCSB_container.outerWidth(false)-mCustomScrollBox.width()], 1690 ratio=[ 1691 scrollAmount[0]/(mCSB_dragger[0].parent().height()-mCSB_dragger[0].height()), 1692 scrollAmount[1]/(mCSB_dragger[1].parent().width()-mCSB_dragger[1].width()) 1693 ]; 1694 d.scrollRatio={y:ratio[0],x:ratio[1]}; 1695 }, 1696 /* -------------------- */ 1697 1698 1699 /* toggles scrolling classes */ 1700 _onDragClasses=function(el,action,xpnd){ 1701 var expandClass=xpnd ? classes[0]+"_expanded" : "", 1702 scrollbar=el.closest(".mCSB_scrollTools"); 1703 if(action==="active"){ 1704 el.toggleClass(classes[0]+" "+expandClass); scrollbar.toggleClass(classes[1]); 1705 el[0]._draggable=el[0]._draggable ? 0 : 1; 1706 }else{ 1707 if(!el[0]._draggable){ 1708 if(action==="hide"){ 1709 el.removeClass(classes[0]); scrollbar.removeClass(classes[1]); 1710 }else{ 1711 el.addClass(classes[0]); scrollbar.addClass(classes[1]); 1712 } 1713 } 1714 } 1715 }, 1716 /* -------------------- */ 1717 1718 1719 /* checks if content overflows its container to determine if scrolling is required */ 1720 _overflowed=function(){ 1721 var $this=$(this),d=$this.data(pluginPfx), 1722 mCustomScrollBox=$("#mCSB_"+d.idx), 1723 mCSB_container=$("#mCSB_"+d.idx+"_container"), 1724 contentHeight=d.overflowed==null ? mCSB_container.height() : mCSB_container.outerHeight(false), 1725 contentWidth=d.overflowed==null ? mCSB_container.width() : mCSB_container.outerWidth(false), 1726 h=mCSB_container[0].scrollHeight,w=mCSB_container[0].scrollWidth; 1727 if(h>contentHeight){contentHeight=h;} 1728 if(w>contentWidth){contentWidth=w;} 1729 return [contentHeight>mCustomScrollBox.height(),contentWidth>mCustomScrollBox.width()]; 1730 }, 1731 /* -------------------- */ 1732 1733 1734 /* resets content position to 0 */ 1735 _resetContentPosition=function(){ 1736 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 1737 mCustomScrollBox=$("#mCSB_"+d.idx), 1738 mCSB_container=$("#mCSB_"+d.idx+"_container"), 1739 mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")]; 1740 _stop($this); /* stop any current scrolling before resetting */ 1741 if((o.axis!=="x" && !d.overflowed[0]) || (o.axis==="y" && d.overflowed[0])){ /* reset y */ 1742 mCSB_dragger[0].add(mCSB_container).css("top",0); 1743 _scrollTo($this,"_resetY"); 1744 } 1745 if((o.axis!=="y" && !d.overflowed[1]) || (o.axis==="x" && d.overflowed[1])){ /* reset x */ 1746 var cx=dx=0; 1747 if(d.langDir==="rtl"){ /* adjust left position for rtl direction */ 1748 cx=mCustomScrollBox.width()-mCSB_container.outerWidth(false); 1749 dx=Math.abs(cx/d.scrollRatio.x); 1750 } 1751 mCSB_container.css("left",cx); 1752 mCSB_dragger[1].css("left",dx); 1753 _scrollTo($this,"_resetX"); 1754 } 1755 }, 1756 /* -------------------- */ 1757 1758 1759 /* binds scrollbar events */ 1760 _bindEvents=function(){ 1761 var $this=$(this),d=$this.data(pluginPfx),o=d.opt; 1762 if(!d.bindEvents){ /* check if events are already bound */ 1763 _draggable.call(this); 1764 if(o.contentTouchScroll){_contentDraggable.call(this);} 1765 _selectable.call(this); 1766 if(o.mouseWheel.enable){ /* bind mousewheel fn when plugin is available */ 1767 function _mwt(){ 1768 mousewheelTimeout=setTimeout(function(){ 1769 if(!$.event.special.mousewheel){ 1770 _mwt(); 1771 }else{ 1772 clearTimeout(mousewheelTimeout); 1773 _mousewheel.call($this[0]); 1774 } 1775 },100); 1776 } 1777 var mousewheelTimeout; 1778 _mwt(); 1779 } 1780 _draggerRail.call(this); 1781 _wrapperScroll.call(this); 1782 if(o.advanced.autoScrollOnFocus){_focus.call(this);} 1783 if(o.scrollButtons.enable){_buttons.call(this);} 1784 if(o.keyboard.enable){_keyboard.call(this);} 1785 d.bindEvents=true; 1786 } 1787 }, 1788 /* -------------------- */ 1789 1790 1791 /* unbinds scrollbar events */ 1792 _unbindEvents=function(){ 1793 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 1794 namespace=pluginPfx+"_"+d.idx, 1795 sb=".mCSB_"+d.idx+"_scrollbar", 1796 sel=$("#mCSB_"+d.idx+",#mCSB_"+d.idx+"_container,#mCSB_"+d.idx+"_container_wrapper,"+sb+" ."+classes[12]+",#mCSB_"+d.idx+"_dragger_vertical,#mCSB_"+d.idx+"_dragger_horizontal,"+sb+">a"), 1797 mCSB_container=$("#mCSB_"+d.idx+"_container"); 1798 if(o.advanced.releaseDraggableSelectors){sel.add($(o.advanced.releaseDraggableSelectors));} 1799 if(o.advanced.extraDraggableSelectors){sel.add($(o.advanced.extraDraggableSelectors));} 1800 if(d.bindEvents){ /* check if events are bound */ 1801 /* unbind namespaced events from document/selectors */ 1802 $(document).add($(!_canAccessIFrame() || top.document)).unbind("."+namespace); 1803 sel.each(function(){ 1804 $(this).unbind("."+namespace); 1805 }); 1806 /* clear and delete timeouts/objects */ 1807 clearTimeout($this[0]._focusTimeout); _delete($this[0],"_focusTimeout"); 1808 clearTimeout(d.sequential.step); _delete(d.sequential,"step"); 1809 clearTimeout(mCSB_container[0].onCompleteTimeout); _delete(mCSB_container[0],"onCompleteTimeout"); 1810 d.bindEvents=false; 1811 } 1812 }, 1813 /* -------------------- */ 1814 1815 1816 /* toggles scrollbar visibility */ 1817 _scrollbarVisibility=function(disabled){ 1818 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 1819 contentWrapper=$("#mCSB_"+d.idx+"_container_wrapper"), 1820 content=contentWrapper.length ? contentWrapper : $("#mCSB_"+d.idx+"_container"), 1821 scrollbar=[$("#mCSB_"+d.idx+"_scrollbar_vertical"),$("#mCSB_"+d.idx+"_scrollbar_horizontal")], 1822 mCSB_dragger=[scrollbar[0].find(".mCSB_dragger"),scrollbar[1].find(".mCSB_dragger")]; 1823 if(o.axis!=="x"){ 1824 if(d.overflowed[0] && !disabled){ 1825 scrollbar[0].add(mCSB_dragger[0]).add(scrollbar[0].children("a")).css("display","block"); 1826 content.removeClass(classes[8]+" "+classes[10]); 1827 }else{ 1828 if(o.alwaysShowScrollbar){ 1829 if(o.alwaysShowScrollbar!==2){mCSB_dragger[0].css("display","none");} 1830 content.removeClass(classes[10]); 1831 }else{ 1832 scrollbar[0].css("display","none"); 1833 content.addClass(classes[10]); 1834 } 1835 content.addClass(classes[8]); 1836 } 1837 } 1838 if(o.axis!=="y"){ 1839 if(d.overflowed[1] && !disabled){ 1840 scrollbar[1].add(mCSB_dragger[1]).add(scrollbar[1].children("a")).css("display","block"); 1841 content.removeClass(classes[9]+" "+classes[11]); 1842 }else{ 1843 if(o.alwaysShowScrollbar){ 1844 if(o.alwaysShowScrollbar!==2){mCSB_dragger[1].css("display","none");} 1845 content.removeClass(classes[11]); 1846 }else{ 1847 scrollbar[1].css("display","none"); 1848 content.addClass(classes[11]); 1849 } 1850 content.addClass(classes[9]); 1851 } 1852 } 1853 if(!d.overflowed[0] && !d.overflowed[1]){ 1854 $this.addClass(classes[5]); 1855 }else{ 1856 $this.removeClass(classes[5]); 1857 } 1858 }, 1859 /* -------------------- */ 1860 1861 1862 /* returns input coordinates of pointer, touch and mouse events (relative to document) */ 1863 _coordinates=function(e){ 1864 var t=e.type,o=e.target.ownerDocument!==document && frameElement!==null ? [$(frameElement).offset().top,$(frameElement).offset().left] : null, 1865 io=_canAccessIFrame() && e.target.ownerDocument!==top.document && frameElement!==null ? [$(e.view.frameElement).offset().top,$(e.view.frameElement).offset().left] : [0,0]; 1866 switch(t){ 1867 case "pointerdown": case "MSPointerDown": case "pointermove": case "MSPointerMove": case "pointerup": case "MSPointerUp": 1868 return o ? [e.originalEvent.pageY-o[0]+io[0],e.originalEvent.pageX-o[1]+io[1],false] : [e.originalEvent.pageY,e.originalEvent.pageX,false]; 1869 break; 1870 case "touchstart": case "touchmove": case "touchend": 1871 var touch=e.originalEvent.touches[0] || e.originalEvent.changedTouches[0], 1872 touches=e.originalEvent.touches.length || e.originalEvent.changedTouches.length; 1873 return e.target.ownerDocument!==document ? [touch.screenY,touch.screenX,touches>1] : [touch.pageY,touch.pageX,touches>1]; 1874 break; 1875 default: 1876 return o ? [e.pageY-o[0]+io[0],e.pageX-o[1]+io[1],false] : [e.pageY,e.pageX,false]; 1877 } 1878 }, 1879 /* -------------------- */ 1880 1881 1882 /* 1883 SCROLLBAR DRAG EVENTS 1884 scrolls content via scrollbar dragging 1885 */ 1886 _draggable=function(){ 1887 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 1888 namespace=pluginPfx+"_"+d.idx, 1889 draggerId=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"], 1890 mCSB_container=$("#mCSB_"+d.idx+"_container"), 1891 mCSB_dragger=$("#"+draggerId[0]+",#"+draggerId[1]), 1892 draggable,dragY,dragX, 1893 rds=o.advanced.releaseDraggableSelectors ? mCSB_dragger.add($(o.advanced.releaseDraggableSelectors)) : mCSB_dragger, 1894 eds=o.advanced.extraDraggableSelectors ? $(!_canAccessIFrame() || top.document).add($(o.advanced.extraDraggableSelectors)) : $(!_canAccessIFrame() || top.document); 1895 mCSB_dragger.bind("contextmenu."+namespace,function(e){ 1896 e.preventDefault(); //prevent right click 1897 }).bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,function(e){ 1898 e.stopImmediatePropagation(); 1899 e.preventDefault(); 1900 if(!_mouseBtnLeft(e)){return;} /* left mouse button only */ 1901 touchActive=true; 1902 if(oldIE){document.onselectstart=function(){return false;}} /* disable text selection for IE < 9 */ 1903 _iframe.call(mCSB_container,false); /* enable scrollbar dragging over iframes by disabling their events */ 1904 _stop($this); 1905 draggable=$(this); 1906 var offset=draggable.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left, 1907 h=draggable.height()+offset.top,w=draggable.width()+offset.left; 1908 if(y<h && y>0 && x<w && x>0){ 1909 dragY=y; 1910 dragX=x; 1911 } 1912 _onDragClasses(draggable,"active",o.autoExpandScrollbar); 1913 }).bind("touchmove."+namespace,function(e){ 1914 e.stopImmediatePropagation(); 1915 e.preventDefault(); 1916 var offset=draggable.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left; 1917 _drag(dragY,dragX,y,x); 1918 }); 1919 $(document).add(eds).bind("mousemove."+namespace+" pointermove."+namespace+" MSPointerMove."+namespace,function(e){ 1920 if(draggable){ 1921 var offset=draggable.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left; 1922 if(dragY===y && dragX===x){return;} /* has it really moved? */ 1923 _drag(dragY,dragX,y,x); 1924 } 1925 }).add(rds).bind("mouseup."+namespace+" touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace,function(e){ 1926 if(draggable){ 1927 _onDragClasses(draggable,"active",o.autoExpandScrollbar); 1928 draggable=null; 1929 } 1930 touchActive=false; 1931 if(oldIE){document.onselectstart=null;} /* enable text selection for IE < 9 */ 1932 _iframe.call(mCSB_container,true); /* enable iframes events */ 1933 }); 1934 function _drag(dragY,dragX,y,x){ 1935 mCSB_container[0].idleTimer=o.scrollInertia<233 ? 250 : 0; 1936 if(draggable.attr("id")===draggerId[1]){ 1937 var dir="x",to=((draggable[0].offsetLeft-dragX)+x)*d.scrollRatio.x; 1938 }else{ 1939 var dir="y",to=((draggable[0].offsetTop-dragY)+y)*d.scrollRatio.y; 1940 } 1941 _scrollTo($this,to.toString(),{dir:dir,drag:true}); 1942 } 1943 }, 1944 /* -------------------- */ 1945 1946 1947 /* 1948 TOUCH SWIPE EVENTS 1949 scrolls content via touch swipe 1950 Emulates the native touch-swipe scrolling with momentum found in iOS, Android and WP devices 1951 */ 1952 _contentDraggable=function(){ 1953 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 1954 namespace=pluginPfx+"_"+d.idx, 1955 mCustomScrollBox=$("#mCSB_"+d.idx), 1956 mCSB_container=$("#mCSB_"+d.idx+"_container"), 1957 mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")], 1958 draggable,dragY,dragX,touchStartY,touchStartX,touchMoveY=[],touchMoveX=[],startTime,runningTime,endTime,distance,speed,amount, 1959 durA=0,durB,overwrite=o.axis==="yx" ? "none" : "all",touchIntent=[],touchDrag,docDrag, 1960 iframe=mCSB_container.find("iframe"), 1961 events=[ 1962 "touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace, //start 1963 "touchmove."+namespace+" pointermove."+namespace+" MSPointerMove."+namespace, //move 1964 "touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace //end 1965 ], 1966 touchAction=document.body.style.touchAction!==undefined && document.body.style.touchAction!==""; 1967 mCSB_container.bind(events[0],function(e){ 1968 _onTouchstart(e); 1969 }).bind(events[1],function(e){ 1970 _onTouchmove(e); 1971 }); 1972 mCustomScrollBox.bind(events[0],function(e){ 1973 _onTouchstart2(e); 1974 }).bind(events[2],function(e){ 1975 _onTouchend(e); 1976 }); 1977 if(iframe.length){ 1978 iframe.each(function(){ 1979 $(this).bind("load",function(){ 1980 /* bind events on accessible iframes */ 1981 if(_canAccessIFrame(this)){ 1982 $(this.contentDocument || this.contentWindow.document).bind(events[0],function(e){ 1983 _onTouchstart(e); 1984 _onTouchstart2(e); 1985 }).bind(events[1],function(e){ 1986 _onTouchmove(e); 1987 }).bind(events[2],function(e){ 1988 _onTouchend(e); 1989 }); 1990 } 1991 }); 1992 }); 1993 } 1994 function _onTouchstart(e){ 1995 if(!_pointerTouch(e) || touchActive || _coordinates(e)[2]){touchable=0; return;} 1996 1997 if($(e.target).closest('.bx_ui_slider_track').length){ 1998 touchOffCustom = true; 1999 touchable=0; return; 2000 } else { 2001 touchOffCustom = false; 2002 } 2003 2004 touchable=1; touchDrag=0; docDrag=0; draggable=1; 2005 $this.removeClass("mCS_touch_action"); 2006 var offset=mCSB_container.offset(); 2007 dragY=_coordinates(e)[0]-offset.top; 2008 dragX=_coordinates(e)[1]-offset.left; 2009 touchIntent=[_coordinates(e)[0],_coordinates(e)[1]]; 2010 2011 } 2012 function _onTouchmove(e){ 2013 if(!_pointerTouch(e) || touchActive || _coordinates(e)[2]){return;} 2014 2015 if(touchOffCustom){ 2016 touchable=0; return; 2017 } 2018 2019 if(!o.documentTouchScroll){e.preventDefault();} 2020 e.stopImmediatePropagation(); 2021 if(docDrag && !touchDrag){return;} 2022 if(draggable){ 2023 runningTime=_getTime(); 2024 var offset=mCustomScrollBox.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left, 2025 easing="mcsLinearOut"; 2026 touchMoveY.push(y); 2027 touchMoveX.push(x); 2028 touchIntent[2]=Math.abs(_coordinates(e)[0]-touchIntent[0]); touchIntent[3]=Math.abs(_coordinates(e)[1]-touchIntent[1]); 2029 if(d.overflowed[0]){ 2030 var limit=mCSB_dragger[0].parent().height()-mCSB_dragger[0].height(), 2031 prevent=((dragY-y)>0 && (y-dragY)>-(limit*d.scrollRatio.y) && (touchIntent[3]*2<touchIntent[2] || o.axis==="yx")); 2032 } 2033 if(d.overflowed[1]){ 2034 var limitX=mCSB_dragger[1].parent().width()-mCSB_dragger[1].width(), 2035 preventX=((dragX-x)>0 && (x-dragX)>-(limitX*d.scrollRatio.x) && (touchIntent[2]*2<touchIntent[3] || o.axis==="yx")); 2036 } 2037 if(prevent || preventX){ /* prevent native document scrolling */ 2038 if(!touchAction){e.preventDefault();} 2039 touchDrag=1; 2040 }else{ 2041 docDrag=1; 2042 $this.addClass("mCS_touch_action"); 2043 } 2044 if(touchAction){e.preventDefault();} 2045 amount=o.axis==="yx" ? [(dragY-y),(dragX-x)] : o.axis==="x" ? [null,(dragX-x)] : [(dragY-y),null]; 2046 mCSB_container[0].idleTimer=250; 2047 if(d.overflowed[0]){_drag(amount[0],durA,easing,"y","all",true);} 2048 if(d.overflowed[1]){_drag(amount[1],durA,easing,"x",overwrite,true);} 2049 } 2050 } 2051 function _onTouchstart2(e){ 2052 if(!_pointerTouch(e) || touchActive || _coordinates(e)[2]){touchable=0; return;} 2053 2054 if($(e.target).closest('.bx_ui_slider_track').length){ 2055 touchOffCustom = true; 2056 touchable=0; return; 2057 } else { 2058 touchOffCustom = false; 2059 } 2060 2061 touchable=1; 2062 e.stopImmediatePropagation(); 2063 _stop($this); 2064 startTime=_getTime(); 2065 var offset=mCustomScrollBox.offset(); 2066 touchStartY=_coordinates(e)[0]-offset.top; 2067 touchStartX=_coordinates(e)[1]-offset.left; 2068 touchMoveY=[]; touchMoveX=[]; 2069 } 2070 function _onTouchend(e){ 2071 if(!_pointerTouch(e) || touchActive || _coordinates(e)[2]){return;} 2072 2073 if($(e.target).closest('.bx_ui_slider_track').length){ 2074 touchOffCustom = false;
2075 touchable=0; return; 2076 }
vendor: 13,509 bytes, lines 2077-2420
2077 2078 draggable=0; 2079 e.stopImmediatePropagation(); 2080 touchDrag=0; docDrag=0; 2081 endTime=_getTime(); 2082 var offset=mCustomScrollBox.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left; 2083 if((endTime-runningTime)>30){return;} 2084 speed=1000/(endTime-startTime); 2085 var easing="mcsEaseOut",slow=speed<2.5, 2086 diff=slow ? [touchMoveY[touchMoveY.length-2],touchMoveX[touchMoveX.length-2]] : [0,0]; 2087 distance=slow ? [(y-diff[0]),(x-diff[1])] : [y-touchStartY,x-touchStartX]; 2088 var absDistance=[Math.abs(distance[0]),Math.abs(distance[1])]; 2089 speed=slow ? [Math.abs(distance[0]/4),Math.abs(distance[1]/4)] : [speed,speed]; 2090 var a=[ 2091 Math.abs(mCSB_container[0].offsetTop)-(distance[0]*_m((absDistance[0]/speed[0]),speed[0])), 2092 Math.abs(mCSB_container[0].offsetLeft)-(distance[1]*_m((absDistance[1]/speed[1]),speed[1])) 2093 ]; 2094 amount=o.axis==="yx" ? [a[0],a[1]] : o.axis==="x" ? [null,a[1]] : [a[0],null]; 2095 durB=[(absDistance[0]*4)+o.scrollInertia,(absDistance[1]*4)+o.scrollInertia]; 2096 var md=parseInt(o.contentTouchScroll) || 0; /* absolute minimum distance required */ 2097 amount[0]=absDistance[0]>md ? amount[0] : 0; 2098 amount[1]=absDistance[1]>md ? amount[1] : 0; 2099 if(d.overflowed[0]){_drag(amount[0],durB[0],easing,"y",overwrite,false);} 2100 if(d.overflowed[1]){_drag(amount[1],durB[1],easing,"x",overwrite,false);} 2101 } 2102 function _m(ds,s){ 2103 var r=[s*1.5,s*2,s/1.5,s/2]; 2104 if(ds>90){ 2105 return s>4 ? r[0] : r[3]; 2106 }else if(ds>60){ 2107 return s>3 ? r[3] : r[2]; 2108 }else if(ds>30){ 2109 return s>8 ? r[1] : s>6 ? r[0] : s>4 ? s : r[2]; 2110 }else{ 2111 return s>8 ? s : r[3]; 2112 } 2113 } 2114 function _drag(amount,dur,easing,dir,overwrite,drag){ 2115 if(!amount){return;} 2116 _scrollTo($this,amount.toString(),{dur:dur,scrollEasing:easing,dir:dir,overwrite:overwrite,drag:drag}); 2117 } 2118 }, 2119 /* -------------------- */ 2120 2121 2122 /* 2123 SELECT TEXT EVENTS 2124 scrolls content when text is selected 2125 */ 2126 _selectable=function(){ 2127 var $this=$(this),d=$this.data(pluginPfx),o=d.opt,seq=d.sequential, 2128 namespace=pluginPfx+"_"+d.idx, 2129 mCSB_container=$("#mCSB_"+d.idx+"_container"), 2130 wrapper=mCSB_container.parent(), 2131 action; 2132 mCSB_container.bind("mousedown."+namespace,function(e){ 2133 if(touchable){return;} 2134 if(!action){action=1; touchActive=true;} 2135 }).add(document).bind("mousemove."+namespace,function(e){ 2136 if(!touchable && action && _sel()){ 2137 var offset=mCSB_container.offset(), 2138 y=_coordinates(e)[0]-offset.top+mCSB_container[0].offsetTop,x=_coordinates(e)[1]-offset.left+mCSB_container[0].offsetLeft; 2139 if(y>0 && y<wrapper.height() && x>0 && x<wrapper.width()){ 2140 if(seq.step){_seq("off",null,"stepped");} 2141 }else{ 2142 if(o.axis!=="x" && d.overflowed[0]){ 2143 if(y<0){ 2144 _seq("on",38); 2145 }else if(y>wrapper.height()){ 2146 _seq("on",40); 2147 } 2148 } 2149 if(o.axis!=="y" && d.overflowed[1]){ 2150 if(x<0){ 2151 _seq("on",37); 2152 }else if(x>wrapper.width()){ 2153 _seq("on",39); 2154 } 2155 } 2156 } 2157 } 2158 }).bind("mouseup."+namespace+" dragend."+namespace,function(e){ 2159 if(touchable){return;} 2160 if(action){action=0; _seq("off",null);} 2161 touchActive=false; 2162 }); 2163 function _sel(){ 2164 return window.getSelection ? window.getSelection().toString() : 2165 document.selection && document.selection.type!="Control" ? document.selection.createRange().text : 0; 2166 } 2167 function _seq(a,c,s){ 2168 seq.type=s && action ? "stepped" : "stepless"; 2169 seq.scrollAmount=10; 2170 _sequentialScroll($this,a,c,"mcsLinearOut",s ? 60 : null); 2171 } 2172 }, 2173 /* -------------------- */ 2174 2175 2176 /* 2177 MOUSE WHEEL EVENT 2178 scrolls content via mouse-wheel 2179 via mouse-wheel plugin (https://github.com/brandonaaron/jquery-mousewheel) 2180 */ 2181 _mousewheel=function(){ 2182 if(!$(this).data(pluginPfx)){return;} /* Check if the scrollbar is ready to use mousewheel events (issue: #185) */ 2183 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 2184 namespace=pluginPfx+"_"+d.idx, 2185 mCustomScrollBox=$("#mCSB_"+d.idx), 2186 mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")], 2187 iframe=$("#mCSB_"+d.idx+"_container").find("iframe"); 2188 if(iframe.length){ 2189 iframe.each(function(){ 2190 $(this).bind("load",function(){ 2191 /* bind events on accessible iframes */ 2192 if(_canAccessIFrame(this)){ 2193 $(this.contentDocument || this.contentWindow.document).bind("mousewheel."+namespace,function(e,delta){ 2194 _onMousewheel(e,delta); 2195 }); 2196 } 2197 }); 2198 }); 2199 } 2200 mCustomScrollBox.bind("mousewheel."+namespace,function(e,delta){ 2201 _onMousewheel(e,delta); 2202 }); 2203 function _onMousewheel(e,delta){ 2204 _stop($this); 2205 if(_disableMousewheel($this,e.target)){return;} /* disables mouse-wheel when hovering specific elements */ 2206 var deltaFactor=o.mouseWheel.deltaFactor!=="auto" ? parseInt(o.mouseWheel.deltaFactor) : (oldIE && e.deltaFactor<100) ? 100 : e.deltaFactor || 100, 2207 dur=o.scrollInertia; 2208 if(o.axis==="x" || o.mouseWheel.axis==="x"){ 2209 var dir="x", 2210 px=[Math.round(deltaFactor*d.scrollRatio.x),parseInt(o.mouseWheel.scrollAmount)], 2211 amount=o.mouseWheel.scrollAmount!=="auto" ? px[1] : px[0]>=mCustomScrollBox.width() ? mCustomScrollBox.width()*0.9 : px[0], 2212 contentPos=Math.abs($("#mCSB_"+d.idx+"_container")[0].offsetLeft), 2213 draggerPos=mCSB_dragger[1][0].offsetLeft, 2214 limit=mCSB_dragger[1].parent().width()-mCSB_dragger[1].width(), 2215 dlt=o.mouseWheel.axis==="y" ? (e.deltaY || delta) : e.deltaX; 2216 }else{ 2217 var dir="y", 2218 px=[Math.round(deltaFactor*d.scrollRatio.y),parseInt(o.mouseWheel.scrollAmount)], 2219 amount=o.mouseWheel.scrollAmount!=="auto" ? px[1] : px[0]>=mCustomScrollBox.height() ? mCustomScrollBox.height()*0.9 : px[0], 2220 contentPos=Math.abs($("#mCSB_"+d.idx+"_container")[0].offsetTop), 2221 draggerPos=mCSB_dragger[0][0].offsetTop, 2222 limit=mCSB_dragger[0].parent().height()-mCSB_dragger[0].height(), 2223 dlt=e.deltaY || delta; 2224 } 2225 if((dir==="y" && !d.overflowed[0]) || (dir==="x" && !d.overflowed[1])){return;} 2226 if(o.mouseWheel.invert || e.webkitDirectionInvertedFromDevice){dlt=-dlt;} 2227 if(o.mouseWheel.normalizeDelta){dlt=dlt<0 ? -1 : 1;} 2228 if((dlt>0 && draggerPos!==0) || (dlt<0 && draggerPos!==limit) || o.mouseWheel.preventDefault){ 2229 e.stopImmediatePropagation(); 2230 e.preventDefault(); 2231 } 2232 if(e.deltaFactor<5 && !o.mouseWheel.normalizeDelta){ 2233 //very low deltaFactor values mean some kind of delta acceleration (e.g. osx trackpad), so adjusting scrolling accordingly 2234 amount=e.deltaFactor; dur=17; 2235 } 2236 _scrollTo($this,(contentPos-(dlt*amount)).toString(),{dir:dir,dur:dur}); 2237 } 2238 }, 2239 /* -------------------- */ 2240 2241 2242 /* checks if iframe can be accessed */ 2243 _canAccessIFrameCache=new Object(), 2244 _canAccessIFrame=function(iframe){ 2245 var result=false,cacheKey=false,html=null; 2246 if(iframe===undefined){ 2247 cacheKey="#empty"; 2248 }else if($(iframe).attr("id")!==undefined){ 2249 cacheKey=$(iframe).attr("id"); 2250 } 2251 if(cacheKey!==false && _canAccessIFrameCache[cacheKey]!==undefined){ 2252 return _canAccessIFrameCache[cacheKey]; 2253 } 2254 if(!iframe){ 2255 try{ 2256 var doc=top.document; 2257 html=doc.body.innerHTML; 2258 }catch(err){/* do nothing */} 2259 result=(html!==null); 2260 }else{ 2261 try{ 2262 var doc=iframe.contentDocument || iframe.contentWindow.document; 2263 html=doc.body.innerHTML; 2264 }catch(err){/* do nothing */} 2265 result=(html!==null); 2266 } 2267 if(cacheKey!==false){_canAccessIFrameCache[cacheKey]=result;} 2268 return result; 2269 }, 2270 /* -------------------- */ 2271 2272 2273 /* switches iframe's pointer-events property (drag, mousewheel etc. over cross-domain iframes) */ 2274 _iframe=function(evt){ 2275 var el=this.find("iframe"); 2276 if(!el.length){return;} /* check if content contains iframes */ 2277 var val=!evt ? "none" : "auto"; 2278 el.css("pointer-events",val); /* for IE11, iframe's display property should not be "block" */ 2279 }, 2280 /* -------------------- */ 2281 2282 2283 /* disables mouse-wheel when hovering specific elements like select, datalist etc. */ 2284 _disableMousewheel=function(el,target){ 2285 var tag=target.nodeName.toLowerCase(), 2286 tags=el.data(pluginPfx).opt.mouseWheel.disableOver, 2287 /* elements that require focus */ 2288 focusTags=["select","textarea"]; 2289 return $.inArray(tag,tags) > -1 && !($.inArray(tag,focusTags) > -1 && !$(target).is(":focus")); 2290 }, 2291 /* -------------------- */ 2292 2293 2294 /* 2295 DRAGGER RAIL CLICK EVENT 2296 scrolls content via dragger rail 2297 */ 2298 _draggerRail=function(){ 2299 var $this=$(this),d=$this.data(pluginPfx), 2300 namespace=pluginPfx+"_"+d.idx, 2301 mCSB_container=$("#mCSB_"+d.idx+"_container"), 2302 wrapper=mCSB_container.parent(), 2303 mCSB_draggerContainer=$(".mCSB_"+d.idx+"_scrollbar ."+classes[12]), 2304 clickable; 2305 mCSB_draggerContainer.bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,function(e){ 2306 touchActive=true; 2307 if(!$(e.target).hasClass("mCSB_dragger")){clickable=1;} 2308 }).bind("touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace,function(e){ 2309 touchActive=false; 2310 }).bind("click."+namespace,function(e){ 2311 if(!clickable){return;} 2312 clickable=0; 2313 if($(e.target).hasClass(classes[12]) || $(e.target).hasClass("mCSB_draggerRail")){ 2314 _stop($this); 2315 var el=$(this),mCSB_dragger=el.find(".mCSB_dragger"); 2316 if(el.parent(".mCSB_scrollTools_horizontal").length>0){ 2317 if(!d.overflowed[1]){return;} 2318 var dir="x", 2319 clickDir=e.pageX>mCSB_dragger.offset().left ? -1 : 1, 2320 to=Math.abs(mCSB_container[0].offsetLeft)-(clickDir*(wrapper.width()*0.9)); 2321 }else{ 2322 if(!d.overflowed[0]){return;} 2323 var dir="y", 2324 clickDir=e.pageY>mCSB_dragger.offset().top ? -1 : 1, 2325 to=Math.abs(mCSB_container[0].offsetTop)-(clickDir*(wrapper.height()*0.9)); 2326 } 2327 _scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"}); 2328 } 2329 }); 2330 }, 2331 /* -------------------- */ 2332 2333 2334 /* 2335 FOCUS EVENT 2336 scrolls content via element focus (e.g. clicking an input, pressing TAB key etc.) 2337 */ 2338 _focus=function(){ 2339 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 2340 namespace=pluginPfx+"_"+d.idx, 2341 mCSB_container=$("#mCSB_"+d.idx+"_container"), 2342 wrapper=mCSB_container.parent(); 2343 mCSB_container.bind("focusin."+namespace,function(e){ 2344 var el=$(document.activeElement), 2345 nested=mCSB_container.find(".mCustomScrollBox").length, 2346 dur=0; 2347 if(!el.is(o.advanced.autoScrollOnFocus)){return;} 2348 _stop($this); 2349 clearTimeout($this[0]._focusTimeout); 2350 $this[0]._focusTimer=nested ? (dur+17)*nested : 0; 2351 $this[0]._focusTimeout=setTimeout(function(){ 2352 var to=[_childPos(el)[0],_childPos(el)[1]], 2353 contentPos=[mCSB_container[0].offsetTop,mCSB_container[0].offsetLeft], 2354 isVisible=[ 2355 (contentPos[0]+to[0]>=0 && contentPos[0]+to[0]<wrapper.height()-el.outerHeight(false)), 2356 (contentPos[1]+to[1]>=0 && contentPos[0]+to[1]<wrapper.width()-el.outerWidth(false)) 2357 ], 2358 overwrite=(o.axis==="yx" && !isVisible[0] && !isVisible[1]) ? "none" : "all"; 2359 if(o.axis!=="x" && !isVisible[0]){ 2360 _scrollTo($this,to[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:overwrite,dur:dur}); 2361 } 2362 if(o.axis!=="y" && !isVisible[1]){ 2363 _scrollTo($this,to[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:overwrite,dur:dur}); 2364 } 2365 },$this[0]._focusTimer); 2366 }); 2367 }, 2368 /* -------------------- */ 2369 2370 2371 /* sets content wrapper scrollTop/scrollLeft always to 0 */ 2372 _wrapperScroll=function(){ 2373 var $this=$(this),d=$this.data(pluginPfx), 2374 namespace=pluginPfx+"_"+d.idx, 2375 wrapper=$("#mCSB_"+d.idx+"_container").parent(); 2376 wrapper.bind("scroll."+namespace,function(e){ 2377 if(wrapper.scrollTop()!==0 || wrapper.scrollLeft()!==0){ 2378 $(".mCSB_"+d.idx+"_scrollbar").css("visibility","hidden"); /* hide scrollbar(s) */ 2379 } 2380 }); 2381 }, 2382 /* -------------------- */ 2383 2384 2385 /* 2386 BUTTONS EVENTS 2387 scrolls content via up, down, left and right buttons 2388 */ 2389 _buttons=function(){ 2390 var $this=$(this),d=$this.data(pluginPfx),o=d.opt,seq=d.sequential, 2391 namespace=pluginPfx+"_"+d.idx, 2392 sel=".mCSB_"+d.idx+"_scrollbar", 2393 btn=$(sel+">a"); 2394 btn.bind("contextmenu."+namespace,function(e){ 2395 e.preventDefault(); //prevent right click 2396 }).bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace+" mouseup."+namespace+" touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace+" mouseout."+namespace+" pointerout."+namespace+" MSPointerOut."+namespace+" click."+namespace,function(e){ 2397 e.preventDefault(); 2398 if(!_mouseBtnLeft(e)){return;} /* left mouse button only */ 2399 var btnClass=$(this).attr("class"); 2400 seq.type=o.scrollButtons.scrollType; 2401 switch(e.type){ 2402 case "mousedown": case "touchstart": case "pointerdown": case "MSPointerDown": 2403 if(seq.type==="stepped"){return;} 2404 touchActive=true; 2405 d.tweenRunning=false; 2406 _seq("on",btnClass); 2407 break; 2408 case "mouseup": case "touchend": case "pointerup": case "MSPointerUp": 2409 case "mouseout": case "pointerout": case "MSPointerOut": 2410 if(seq.type==="stepped"){return;} 2411 touchActive=false; 2412 if(seq.dir){_seq("off",btnClass);} 2413 break; 2414 case "click": 2415 if(seq.type!=="stepped" || d.tweenRunning){return;} 2416 _seq("on",btnClass); 2417 break; 2418 } 2419 function _seq(a,c){ 2420
2420//seq.scrollAmount=o.scrollButtons.scrollAmount; 2421 _sequentialScroll($this,a,c); 2422 } 2423 }); 2424 }, 2425 /* -------------------- */ 2426 2427 2428 /* 2429 KEYBOARD EVENTS 2430 scrolls content via keyboard 2431 Keys: up arrow, down arrow, left arrow, right arrow, PgUp, PgDn, Home, End 2432 */ 2433 _keyboard=function(){ 2434 var $this=$(this),d=$this.data(pluginPfx),o=d.opt,seq=d.sequential, 2435 namespace=pluginPfx+"_"+d.idx, 2436 mCustomScrollBox=$("#mCSB_"+d.idx), 2437 mCSB_container=$("#mCSB_"+d.idx+"_container"), 2438 wrapper=mCSB_container.parent(), 2439 editables="input,textarea,select,datalist,keygen,[contenteditable='true']", 2440 iframe=mCSB_container.find("iframe"),
vendor: 23,820 bytes, lines 2441-3095
2441 events=["blur."+namespace+" keydown."+namespace+" keyup."+namespace]; 2442 if(iframe.length){ 2443 iframe.each(function(){ 2444 $(this).bind("load",function(){ 2445 /* bind events on accessible iframes */ 2446 if(_canAccessIFrame(this)){ 2447 $(this.contentDocument || this.contentWindow.document).bind(events[0],function(e){ 2448 _onKeyboard(e); 2449 }); 2450 } 2451 }); 2452 }); 2453 } 2454 mCustomScrollBox.attr("tabindex","0").bind(events[0],function(e){ 2455 _onKeyboard(e); 2456 }); 2457 function _onKeyboard(e){ 2458 switch(e.type){ 2459 case "blur": 2460 if(d.tweenRunning && seq.dir){_seq("off",null);} 2461 break; 2462 case "keydown": case "keyup": 2463 var code=e.keyCode ? e.keyCode : e.which,action="on"; 2464 if((o.axis!=="x" && (code===38 || code===40)) || (o.axis!=="y" && (code===37 || code===39))){ 2465 /* up (38), down (40), left (37), right (39) arrows */ 2466 if(((code===38 || code===40) && !d.overflowed[0]) || ((code===37 || code===39) && !d.overflowed[1])){return;} 2467 if(e.type==="keyup"){action="off";} 2468 if(!$(document.activeElement).is(editables)){ 2469 e.preventDefault(); 2470 e.stopImmediatePropagation(); 2471 _seq(action,code); 2472 } 2473 }else if(code===33 || code===34){ 2474 /* PgUp (33), PgDn (34) */ 2475 if(d.overflowed[0] || d.overflowed[1]){ 2476 e.preventDefault(); 2477 e.stopImmediatePropagation(); 2478 } 2479 if(e.type==="keyup"){ 2480 _stop($this); 2481 var keyboardDir=code===34 ? -1 : 1; 2482 if(o.axis==="x" || (o.axis==="yx" && d.overflowed[1] && !d.overflowed[0])){ 2483 var dir="x",to=Math.abs(mCSB_container[0].offsetLeft)-(keyboardDir*(wrapper.width()*0.9)); 2484 }else{ 2485 var dir="y",to=Math.abs(mCSB_container[0].offsetTop)-(keyboardDir*(wrapper.height()*0.9)); 2486 } 2487 _scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"}); 2488 } 2489 }else if(code===35 || code===36){ 2490 /* End (35), Home (36) */ 2491 if(!$(document.activeElement).is(editables)){ 2492 if(d.overflowed[0] || d.overflowed[1]){ 2493 e.preventDefault(); 2494 e.stopImmediatePropagation(); 2495 } 2496 if(e.type==="keyup"){ 2497 if(o.axis==="x" || (o.axis==="yx" && d.overflowed[1] && !d.overflowed[0])){ 2498 var dir="x",to=code===35 ? Math.abs(wrapper.width()-mCSB_container.outerWidth(false)) : 0; 2499 }else{ 2500 var dir="y",to=code===35 ? Math.abs(wrapper.height()-mCSB_container.outerHeight(false)) : 0; 2501 } 2502 _scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"}); 2503 } 2504 } 2505 } 2506 break; 2507 } 2508 function _seq(a,c){ 2509 seq.type=o.keyboard.scrollType; 2510 seq.scrollAmount=o.keyboard.scrollAmount; 2511 if(seq.type==="stepped" && d.tweenRunning){return;} 2512 _sequentialScroll($this,a,c); 2513 } 2514 } 2515 }, 2516 /* -------------------- */ 2517 2518 2519 /* scrolls content sequentially (used when scrolling via buttons, keyboard arrows etc.) */ 2520 _sequentialScroll=function(el,action,trigger,e,s){ 2521 var d=el.data(pluginPfx),o=d.opt,seq=d.sequential, 2522 mCSB_container=$("#mCSB_"+d.idx+"_container"), 2523 once=seq.type==="stepped" ? true : false, 2524 steplessSpeed=o.scrollInertia < 26 ? 26 : o.scrollInertia, /* 26/1.5=17 */ 2525 steppedSpeed=o.scrollInertia < 1 ? 17 : o.scrollInertia; 2526 switch(action){ 2527 case "on": 2528 seq.dir=[ 2529 (trigger===classes[16] || trigger===classes[15] || trigger===39 || trigger===37 ? "x" : "y"), 2530 (trigger===classes[13] || trigger===classes[15] || trigger===38 || trigger===37 ? -1 : 1) 2531 ]; 2532 _stop(el); 2533 if(_isNumeric(trigger) && seq.type==="stepped"){return;} 2534 _on(once); 2535 break; 2536 case "off": 2537 _off(); 2538 if(once || (d.tweenRunning && seq.dir)){ 2539 _on(true); 2540 } 2541 break; 2542 } 2543 2544 /* starts sequence */ 2545 function _on(once){ 2546 if(o.snapAmount){seq.scrollAmount=!(o.snapAmount instanceof Array) ? o.snapAmount : seq.dir[0]==="x" ? o.snapAmount[1] : o.snapAmount[0];} /* scrolling snapping */ 2547 var c=seq.type!=="stepped", /* continuous scrolling */ 2548 t=s ? s : !once ? 1000/60 : c ? steplessSpeed/1.5 : steppedSpeed, /* timer */ 2549 m=!once ? 2.5 : c ? 7.5 : 40, /* multiplier */ 2550 contentPos=[Math.abs(mCSB_container[0].offsetTop),Math.abs(mCSB_container[0].offsetLeft)], 2551 ratio=[d.scrollRatio.y>10 ? 10 : d.scrollRatio.y,d.scrollRatio.x>10 ? 10 : d.scrollRatio.x], 2552 amount=seq.dir[0]==="x" ? contentPos[1]+(seq.dir[1]*(ratio[1]*m)) : contentPos[0]+(seq.dir[1]*(ratio[0]*m)), 2553 px=seq.dir[0]==="x" ? contentPos[1]+(seq.dir[1]*parseInt(seq.scrollAmount)) : contentPos[0]+(seq.dir[1]*parseInt(seq.scrollAmount)), 2554 to=seq.scrollAmount!=="auto" ? px : amount, 2555 easing=e ? e : !once ? "mcsLinear" : c ? "mcsLinearOut" : "mcsEaseInOut", 2556 onComplete=!once ? false : true; 2557 if(once && t<17){ 2558 to=seq.dir[0]==="x" ? contentPos[1] : contentPos[0]; 2559 } 2560 2561 _scrollTo(el,to.toString(),{dir:seq.dir[0],scrollEasing:easing,dur:t,onComplete:onComplete}); 2562 if(once){ 2563 seq.dir=false; 2564 return; 2565 } 2566 clearTimeout(seq.step); 2567 seq.step=setTimeout(function(){ 2568 _on(); 2569 },t); 2570 } 2571 /* stops sequence */ 2572 function _off(){ 2573 clearTimeout(seq.step); 2574 _delete(seq,"step"); 2575 _stop(el); 2576 } 2577 }, 2578 /* -------------------- */ 2579 2580 2581 /* returns a yx array from value */ 2582 _arr=function(val){ 2583 var o=$(this).data(pluginPfx).opt,vals=[]; 2584 if(typeof val==="function"){val=val();} /* check if the value is a single anonymous function */ 2585 /* check if value is object or array, its length and create an array with yx values */ 2586 if(!(val instanceof Array)){ /* object value (e.g. {y:"100",x:"100"}, 100 etc.) */ 2587 vals[0]=val.y ? val.y : val.x || o.axis==="x" ? null : val; 2588 vals[1]=val.x ? val.x : val.y || o.axis==="y" ? null : val; 2589 }else{ /* array value (e.g. [100,100]) */ 2590 vals=val.length>1 ? [val[0],val[1]] : o.axis==="x" ? [null,val[0]] : [val[0],null]; 2591 } 2592 /* check if array values are anonymous functions */ 2593 if(typeof vals[0]==="function"){vals[0]=vals[0]();} 2594 if(typeof vals[1]==="function"){vals[1]=vals[1]();} 2595 return vals; 2596 }, 2597 /* -------------------- */ 2598 2599 2600 /* translates values (e.g. "top", 100, "100px", "#id") to actual scroll-to positions */ 2601 _to=function(val,dir){ 2602 if(val==null || typeof val=="undefined"){return;} 2603 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 2604 mCSB_container=$("#mCSB_"+d.idx+"_container"), 2605 wrapper=mCSB_container.parent(), 2606 t=typeof val; 2607 if(!dir){dir=o.axis==="x" ? "x" : "y";} 2608 var contentLength=dir==="x" ? mCSB_container.outerWidth(false)-wrapper.width() : mCSB_container.outerHeight(false)-wrapper.height(), 2609 contentPos=dir==="x" ? mCSB_container[0].offsetLeft : mCSB_container[0].offsetTop, 2610 cssProp=dir==="x" ? "left" : "top"; 2611 switch(t){ 2612 case "function": /* this currently is not used. Consider removing it */ 2613 return val(); 2614 break; 2615 case "object": /* js/jquery object */ 2616 var obj=val.jquery ? val : $(val); 2617 if(!obj.length){return;} 2618 return dir==="x" ? _childPos(obj)[1] : _childPos(obj)[0]; 2619 break; 2620 case "string": case "number": 2621 if(_isNumeric(val)){ /* numeric value */ 2622 return Math.abs(val); 2623 }else if(val.indexOf("%")!==-1){ /* percentage value */ 2624 return Math.abs(contentLength*parseInt(val)/100); 2625 }else if(val.indexOf("-=")!==-1){ /* decrease value */ 2626 return Math.abs(contentPos-parseInt(val.split("-=")[1])); 2627 }else if(val.indexOf("+=")!==-1){ /* inrease value */ 2628 var p=(contentPos+parseInt(val.split("+=")[1])); 2629 return p>=0 ? 0 : Math.abs(p); 2630 }else if(val.indexOf("px")!==-1 && _isNumeric(val.split("px")[0])){ /* pixels string value (e.g. "100px") */ 2631 return Math.abs(val.split("px")[0]); 2632 }else{ 2633 if(val==="top" || val==="left"){ /* special strings */ 2634 return 0; 2635 }else if(val==="bottom"){ 2636 return Math.abs(wrapper.height()-mCSB_container.outerHeight(false)); 2637 }else if(val==="right"){ 2638 return Math.abs(wrapper.width()-mCSB_container.outerWidth(false)); 2639 }else if(val==="first" || val==="last"){ 2640 var obj=mCSB_container.find(":"+val); 2641 return dir==="x" ? _childPos(obj)[1] : _childPos(obj)[0]; 2642 }else{ 2643 if($(val).length){ /* jquery selector */ 2644 return dir==="x" ? _childPos($(val))[1] : _childPos($(val))[0]; 2645 }else{ /* other values (e.g. "100em") */ 2646 mCSB_container.css(cssProp,val); 2647 methods.update.call(null,$this[0]); 2648 return; 2649 } 2650 } 2651 } 2652 break; 2653 } 2654 }, 2655 /* -------------------- */ 2656 2657 2658 /* calls the update method automatically */ 2659 _autoUpdate=function(rem){ 2660 var $this=$(this),d=$this.data(pluginPfx),o=d.opt, 2661 mCSB_container=$("#mCSB_"+d.idx+"_container"); 2662 if(rem){ 2663 /* 2664 removes autoUpdate timer 2665 usage: _autoUpdate.call(this,"remove"); 2666 */ 2667 clearTimeout(mCSB_container[0].autoUpdate); 2668 _delete(mCSB_container[0],"autoUpdate"); 2669 return; 2670 } 2671 upd(); 2672 function upd(){ 2673 clearTimeout(mCSB_container[0].autoUpdate); 2674 if($this.parents("html").length===0){ 2675 /* check element in dom tree */ 2676 $this=null; 2677 return; 2678 } 2679 mCSB_container[0].autoUpdate=setTimeout(function(){ 2680 /* update on specific selector(s) length and size change */ 2681 if(o.advanced.updateOnSelectorChange){ 2682 d.poll.change.n=sizesSum(); 2683 if(d.poll.change.n!==d.poll.change.o){ 2684 d.poll.change.o=d.poll.change.n; 2685 doUpd(3); 2686 return; 2687 } 2688 } 2689 /* update on main element and scrollbar size changes */ 2690 if(o.advanced.updateOnContentResize){ 2691 d.poll.size.n=$this[0].scrollHeight+$this[0].scrollWidth+mCSB_container[0].offsetHeight+$this[0].offsetHeight+$this[0].offsetWidth; 2692 if(d.poll.size.n!==d.poll.size.o){ 2693 d.poll.size.o=d.poll.size.n; 2694 doUpd(1); 2695 return; 2696 } 2697 } 2698 /* update on image load */ 2699 if(o.advanced.updateOnImageLoad){ 2700 if(!(o.advanced.updateOnImageLoad==="auto" && o.axis==="y")){ //by default, it doesn't run on vertical content 2701 d.poll.img.n=mCSB_container.find("img").length; 2702 if(d.poll.img.n!==d.poll.img.o){ 2703 d.poll.img.o=d.poll.img.n; 2704 mCSB_container.find("img").each(function(){ 2705 imgLoader(this); 2706 }); 2707 return; 2708 } 2709 } 2710 } 2711 if(o.advanced.updateOnSelectorChange || o.advanced.updateOnContentResize || o.advanced.updateOnImageLoad){upd();} 2712 },o.advanced.autoUpdateTimeout); 2713 } 2714 /* a tiny image loader */ 2715 function imgLoader(el){ 2716 if($(el).hasClass(classes[2])){doUpd(); return;} 2717 var img=new Image(); 2718 function createDelegate(contextObject,delegateMethod){ 2719 return function(){return delegateMethod.apply(contextObject,arguments);} 2720 } 2721 function imgOnLoad(){ 2722 this.onload=null; 2723 $(el).addClass(classes[2]); 2724 doUpd(2); 2725 } 2726 img.onload=createDelegate(img,imgOnLoad); 2727 img.src=el.src; 2728 } 2729 /* returns the total height and width sum of all elements matching the selector */ 2730 function sizesSum(){ 2731 if(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange="*";} 2732 var total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange); 2733 if(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=this.offsetHeight+this.offsetWidth;});} 2734 return total; 2735 } 2736 /* calls the update method */ 2737 function doUpd(cb){ 2738 clearTimeout(mCSB_container[0].autoUpdate); 2739 methods.update.call(null,$this[0],cb); 2740 } 2741 }, 2742 /* -------------------- */ 2743 2744 2745 /* snaps scrolling to a multiple of a pixels number */ 2746 _snapAmount=function(to,amount,offset){ 2747 return (Math.round(to/amount)*amount-offset); 2748 }, 2749 /* -------------------- */ 2750 2751 2752 /* stops content and scrollbar animations */ 2753 _stop=function(el){ 2754 var d=el.data(pluginPfx), 2755 sel=$("#mCSB_"+d.idx+"_container,#mCSB_"+d.idx+"_container_wrapper,#mCSB_"+d.idx+"_dragger_vertical,#mCSB_"+d.idx+"_dragger_horizontal"); 2756 sel.each(function(){ 2757 _stopTween.call(this); 2758 }); 2759 }, 2760 /* -------------------- */ 2761 2762 2763 /* 2764 ANIMATES CONTENT 2765 This is where the actual scrolling happens 2766 */ 2767 _scrollTo=function(el,to,options){ 2768 var d=el.data(pluginPfx),o=d.opt, 2769 defaults={ 2770 trigger:"internal", 2771 dir:"y", 2772 scrollEasing:"mcsEaseOut", 2773 drag:false, 2774 dur:o.scrollInertia, 2775 overwrite:"all", 2776 callbacks:true, 2777 onStart:true, 2778 onUpdate:true, 2779 onComplete:true 2780 }, 2781 options=$.extend(defaults,options), 2782 dur=[options.dur,(options.drag ? 0 : options.dur)], 2783 mCustomScrollBox=$("#mCSB_"+d.idx), 2784 mCSB_container=$("#mCSB_"+d.idx+"_container"), 2785 wrapper=mCSB_container.parent(), 2786 totalScrollOffsets=o.callbacks.onTotalScrollOffset ? _arr.call(el,o.callbacks.onTotalScrollOffset) : [0,0], 2787 totalScrollBackOffsets=o.callbacks.onTotalScrollBackOffset ? _arr.call(el,o.callbacks.onTotalScrollBackOffset) : [0,0]; 2788 d.trigger=options.trigger; 2789 if(wrapper.scrollTop()!==0 || wrapper.scrollLeft()!==0){ /* always reset scrollTop/Left */ 2790 $(".mCSB_"+d.idx+"_scrollbar").css("visibility","visible"); 2791 wrapper.scrollTop(0).scrollLeft(0); 2792 } 2793 if(to==="_resetY" && !d.contentReset.y){ 2794 /* callbacks: onOverflowYNone */ 2795 if(_cb("onOverflowYNone")){o.callbacks.onOverflowYNone.call(el[0]);} 2796 d.contentReset.y=1; 2797 } 2798 if(to==="_resetX" && !d.contentReset.x){ 2799 /* callbacks: onOverflowXNone */ 2800 if(_cb("onOverflowXNone")){o.callbacks.onOverflowXNone.call(el[0]);} 2801 d.contentReset.x=1; 2802 } 2803 if(to==="_resetY" || to==="_resetX"){return;} 2804 if((d.contentReset.y || !el[0].mcs) && d.overflowed[0]){ 2805 /* callbacks: onOverflowY */ 2806 if(_cb("onOverflowY")){o.callbacks.onOverflowY.call(el[0]);} 2807 d.contentReset.x=null; 2808 } 2809 if((d.contentReset.x || !el[0].mcs) && d.overflowed[1]){ 2810 /* callbacks: onOverflowX */ 2811 if(_cb("onOverflowX")){o.callbacks.onOverflowX.call(el[0]);} 2812 d.contentReset.x=null; 2813 } 2814 if(o.snapAmount){ /* scrolling snapping */ 2815 var snapAmount=!(o.snapAmount instanceof Array) ? o.snapAmount : options.dir==="x" ? o.snapAmount[1] : o.snapAmount[0]; 2816 to=_snapAmount(to,snapAmount,o.snapOffset); 2817 } 2818 switch(options.dir){ 2819 case "x": 2820 var mCSB_dragger=$("#mCSB_"+d.idx+"_dragger_horizontal"), 2821 property="left", 2822 contentPos=mCSB_container[0].offsetLeft, 2823 limit=[ 2824 mCustomScrollBox.width()-mCSB_container.outerWidth(false), 2825 mCSB_dragger.parent().width()-mCSB_dragger.width() 2826 ], 2827 scrollTo=[to,to===0 ? 0 : (to/d.scrollRatio.x)], 2828 tso=totalScrollOffsets[1], 2829 tsbo=totalScrollBackOffsets[1], 2830 totalScrollOffset=tso>0 ? tso/d.scrollRatio.x : 0, 2831 totalScrollBackOffset=tsbo>0 ? tsbo/d.scrollRatio.x : 0; 2832 break; 2833 case "y": 2834 var mCSB_dragger=$("#mCSB_"+d.idx+"_dragger_vertical"), 2835 property="top", 2836 contentPos=mCSB_container[0].offsetTop, 2837 limit=[ 2838 mCustomScrollBox.height()-mCSB_container.outerHeight(false), 2839 mCSB_dragger.parent().height()-mCSB_dragger.height() 2840 ], 2841 scrollTo=[to,to===0 ? 0 : (to/d.scrollRatio.y)], 2842 tso=totalScrollOffsets[0], 2843 tsbo=totalScrollBackOffsets[0], 2844 totalScrollOffset=tso>0 ? tso/d.scrollRatio.y : 0, 2845 totalScrollBackOffset=tsbo>0 ? tsbo/d.scrollRatio.y : 0; 2846 break; 2847 } 2848 if(scrollTo[1]<0 || (scrollTo[0]===0 && scrollTo[1]===0)){ 2849 scrollTo=[0,0]; 2850 }else if(scrollTo[1]>=limit[1]){ 2851 scrollTo=[limit[0],limit[1]]; 2852 }else{ 2853 scrollTo[0]=-scrollTo[0]; 2854 } 2855 if(!el[0].mcs){ 2856 _mcs(); /* init mcs object (once) to make it available before callbacks */ 2857 if(_cb("onInit")){o.callbacks.onInit.call(el[0]);} /* callbacks: onInit */ 2858 } 2859 clearTimeout(mCSB_container[0].onCompleteTimeout); 2860 2861 _tweenTo(mCSB_dragger[0],property,Math.round(scrollTo[1]),dur[1],options.scrollEasing); 2862 if(!d.tweenRunning && ((contentPos===0 && scrollTo[0]>=0) || (contentPos===limit[0] && scrollTo[0]<=limit[0]))){return;} 2863 _tweenTo(mCSB_container[0],property,Math.round(scrollTo[0]),dur[0],options.scrollEasing,options.overwrite,{ 2864 onStart:function(){ 2865 if(options.callbacks && options.onStart && !d.tweenRunning){ 2866 /* callbacks: onScrollStart */ 2867 if(_cb("onScrollStart")){_mcs(); o.callbacks.onScrollStart.call(el[0]);} 2868 d.tweenRunning=true; 2869 _onDragClasses(mCSB_dragger); 2870 d.cbOffsets=_cbOffsets(); 2871 } 2872 },onUpdate:function(){ 2873 if(options.callbacks && options.onUpdate){ 2874 /* callbacks: whileScrolling */ 2875 if(_cb("whileScrolling")){_mcs(); o.callbacks.whileScrolling.call(el[0]);} 2876 } 2877 },onComplete:function(){ 2878 if(options.callbacks && options.onComplete){ 2879 if(o.axis==="yx"){clearTimeout(mCSB_container[0].onCompleteTimeout);} 2880 var t=mCSB_container[0].idleTimer || 0; 2881 mCSB_container[0].onCompleteTimeout=setTimeout(function(){ 2882 /* callbacks: onScroll, onTotalScroll, onTotalScrollBack */ 2883 if(_cb("onScroll")){_mcs(); o.callbacks.onScroll.call(el[0]);} 2884 if(_cb("onTotalScroll") && scrollTo[1]>=limit[1]-totalScrollOffset && d.cbOffsets[0]){_mcs(); o.callbacks.onTotalScroll.call(el[0]);} 2885 if(_cb("onTotalScrollBack") && scrollTo[1]<=totalScrollBackOffset && d.cbOffsets[1]){_mcs(); o.callbacks.onTotalScrollBack.call(el[0]);} 2886 d.tweenRunning=false; 2887 mCSB_container[0].idleTimer=0; 2888 _onDragClasses(mCSB_dragger,"hide"); 2889 },t); 2890 } 2891 } 2892 }); 2893 /* checks if callback function exists */ 2894 function _cb(cb){ 2895 return d && o.callbacks[cb] && typeof o.callbacks[cb]==="function"; 2896 } 2897 /* checks whether callback offsets always trigger */ 2898 function _cbOffsets(){ 2899 return [o.callbacks.alwaysTriggerOffsets || contentPos>=limit[0]+tso,o.callbacks.alwaysTriggerOffsets || contentPos<=-tsbo]; 2900 } 2901 /* 2902 populates object with useful values for the user 2903 values: 2904 content: this.mcs.content 2905 content top position: this.mcs.top 2906 content left position: this.mcs.left 2907 dragger top position: this.mcs.draggerTop 2908 dragger left position: this.mcs.draggerLeft 2909 scrolling y percentage: this.mcs.topPct 2910 scrolling x percentage: this.mcs.leftPct 2911 scrolling direction: this.mcs.direction 2912 */ 2913 function _mcs(){ 2914 var cp=[mCSB_container[0].offsetTop,mCSB_container[0].offsetLeft], /* content position */ 2915 dp=[mCSB_dragger[0].offsetTop,mCSB_dragger[0].offsetLeft], /* dragger position */ 2916 cl=[mCSB_container.outerHeight(false),mCSB_container.outerWidth(false)], /* content length */ 2917 pl=[mCustomScrollBox.height(),mCustomScrollBox.width()]; /* content parent length */ 2918 el[0].mcs={ 2919 content:mCSB_container, /* original content wrapper as jquery object */ 2920 top:cp[0],left:cp[1],draggerTop:dp[0],draggerLeft:dp[1], 2921 topPct:Math.round((100*Math.abs(cp[0]))/(Math.abs(cl[0])-pl[0])),leftPct:Math.round((100*Math.abs(cp[1]))/(Math.abs(cl[1])-pl[1])), 2922 direction:options.dir 2923 }; 2924 /* 2925 this refers to the original element containing the scrollbar(s) 2926 usage: this.mcs.top, this.mcs.leftPct etc. 2927 */ 2928 } 2929 }, 2930 /* -------------------- */ 2931 2932 2933 /* 2934 CUSTOM JAVASCRIPT ANIMATION TWEEN 2935 Lighter and faster than jquery animate() and css transitions 2936 Animates top/left properties and includes easings 2937 */ 2938 _tweenTo=function(el,prop,to,duration,easing,overwrite,callbacks){ 2939 2940 if(el && !el._mTween){el._mTween={top:{},left:{}};} 2941 var callbacks=callbacks || {}, 2942 onStart=callbacks.onStart || function(){},onUpdate=callbacks.onUpdate || function(){},onComplete=callbacks.onComplete || function(){}, 2943 startTime=_getTime(),_delay,progress=0,from=el.offsetTop,elStyle=el.style,_request,tobj=el._mTween[prop]; 2944 if(prop==="left"){from=el.offsetLeft;} 2945 var diff=to-from; 2946 tobj.stop=0; 2947 if(overwrite!=="none"){_cancelTween();} 2948 _startTween(); 2949 function _step(){ 2950 if(tobj.stop){return;} 2951 if(!progress){onStart.call();} 2952 progress=_getTime()-startTime; 2953 _tween(); 2954 if(progress>=tobj.time){ 2955 tobj.time=(progress>tobj.time) ? progress+_delay-(progress-tobj.time) : progress+_delay-1; 2956 if(tobj.time<progress+1){tobj.time=progress+1;} 2957 } 2958 if(tobj.time<duration){tobj.id=_request(_step);}else{onComplete.call();} 2959 } 2960 function _tween(){ 2961 if(duration>0){ 2962 tobj.currVal=_ease(tobj.time,from,diff,duration,easing); 2963 elStyle[prop]=Math.round(tobj.currVal)+"px"; 2964 }else{ 2965 elStyle[prop]=to+"px"; 2966 } 2967 onUpdate.call(); 2968 } 2969 function _startTween(){ 2970 _delay=1000/60; 2971 tobj.time=progress+_delay; 2972 _request=(!window.requestAnimationFrame) ? function(f){_tween(); return setTimeout(f,0.01);} : window.requestAnimationFrame; 2973 tobj.id=_request(_step); 2974 } 2975 function _cancelTween(){ 2976 if(tobj.id==null){return;} 2977 if(!window.requestAnimationFrame){clearTimeout(tobj.id); 2978 }else{window.cancelAnimationFrame(tobj.id);} 2979 tobj.id=null; 2980 } 2981 function _ease(t,b,c,d,type){ 2982 switch(type){ 2983 case "linear": case "mcsLinear": 2984 return c*t/d + b; 2985 break; 2986 case "mcsLinearOut": 2987 t/=d; t--; return c * Math.sqrt(1 - t*t) + b; 2988 break; 2989 case "easeInOutSmooth": 2990 t/=d/2; 2991 if(t<1) return c/2*t*t + b; 2992 t--; 2993 return -c/2 * (t*(t-2) - 1) + b; 2994 break; 2995 case "easeInOutStrong": 2996 t/=d/2; 2997 if(t<1) return c/2 * Math.pow( 2, 10 * (t - 1) ) + b; 2998 t--; 2999 return c/2 * ( -Math.pow( 2, -10 * t) + 2 ) + b; 3000 break; 3001 case "easeInOut": case "mcsEaseInOut": 3002 t/=d/2; 3003 if(t<1) return c/2*t*t*t + b; 3004 t-=2; 3005 return c/2*(t*t*t + 2) + b; 3006 break; 3007 case "easeOutSmooth": 3008 t/=d; t--; 3009 return -c * (t*t*t*t - 1) + b; 3010 break; 3011 case "easeOutStrong": 3012 return c * ( -Math.pow( 2, -10 * t/d ) + 1 ) + b; 3013 break; 3014 case "easeOut": case "mcsEaseOut": default: 3015 var ts=(t/=d)*t,tc=ts*t; 3016 return b+c*(0.499999999999997*tc*ts + -2.5*ts*ts + 5.5*tc + -6.5*ts + 4*t); 3017 } 3018 } 3019 }, 3020 /* -------------------- */ 3021 3022 3023 /* returns current time */ 3024 _getTime=function(){ 3025 if(window.performance && window.performance.now){ 3026 return window.performance.now(); 3027 }else{ 3028 if(window.performance && window.performance.webkitNow){ 3029 return window.performance.webkitNow(); 3030 }else{ 3031 if(Date.now){return Date.now();}else{return new Date().getTime();} 3032 } 3033 } 3034 }, 3035 /* -------------------- */ 3036 3037 3038 /* stops a tween */ 3039 _stopTween=function(){ 3040 var el=this; 3041 if(!el._mTween){el._mTween={top:{},left:{}};} 3042 var props=["top","left"]; 3043 for(var i=0; i<props.length; i++){ 3044 var prop=props[i]; 3045 if(el._mTween[prop].id){ 3046 if(!window.requestAnimationFrame){clearTimeout(el._mTween[prop].id); 3047 }else{window.cancelAnimationFrame(el._mTween[prop].id);} 3048 el._mTween[prop].id=null; 3049 el._mTween[prop].stop=1; 3050 } 3051 } 3052 }, 3053 /* -------------------- */ 3054 3055 3056 /* deletes a property (avoiding the exception thrown by IE) */ 3057 _delete=function(c,m){ 3058 try{delete c[m];}catch(e){c[m]=null;} 3059 }, 3060 /* -------------------- */ 3061 3062 3063 /* detects left mouse button */ 3064 _mouseBtnLeft=function(e){ 3065 return !(e.which && e.which!==1); 3066 }, 3067 /* -------------------- */ 3068 3069 3070 /* detects if pointer type event is touch */ 3071 _pointerTouch=function(e){ 3072 var t=e.originalEvent.pointerType; 3073 return !(t && t!=="touch" && t!==2); 3074 }, 3075 /* -------------------- */ 3076 3077 3078 /* checks if value is numeric */ 3079 _isNumeric=function(val){ 3080 return !isNaN(parseFloat(val)) && isFinite(val); 3081 }, 3082 /* -------------------- */ 3083 3084 3085 /* returns element position according to content */ 3086 _childPos=function(el){ 3087 var p=el.parents(".mCSB_container"); 3088 return [el.offset().top-p.offset().top,el.offset().left-p.offset().left]; 3089 }, 3090 /* -------------------- */ 3091 3092 3093 /* checks if browser tab is hidden/inactive via Page Visibility API */ 3094 _isTabHidden=function(){ 3095 var prop=_getHiddenProp();
3096 if(!prop) return false; 3097 return document[prop]; 3098 function _getHiddenProp(){ 3099 var pfx=["webkit","moz","ms","o"]; 3100 if("hidden" in document) return "hidden"; //natively supported 3101 for(var i=0; i<pfx.length; i++){ //prefixed 3102 if((pfx[i]+"Hidden") in document) 3103 return pfx[i]+"Hidden"; 3104 } 3105 return null; //not supported 3106 } 3107 }; 3108 /* -------------------- */ 3109 3110 3111 3112 3113 3114 /* 3115 ---------------------------------------- 3116 PLUGIN SETUP 3117 ---------------------------------------- 3118 */ 3119 3120 /* plugin constructor functions */ 3121 $.fn[pluginNS]=function(method){ /* usage: $(selector).mCustomScrollbar(); */ 3122 if(methods[method]){ 3123 return methods[method].apply(this,Array.prototype.slice.call(arguments,1)); 3124 }else if(typeof method==="object" || !method){ 3125 return methods.init.apply(this,arguments); 3126 }else{ 3127 $.error("Method "+method+" does not exist"); 3128 } 3129 }; 3130 $[pluginNS]=function(method){ /* usage: $.mCustomScrollbar(); */ 3131 if(methods[method]){ 3132 return methods[method].apply(this,Array.prototype.slice.call(arguments,1)); 3133 }else if(typeof method==="object" || !method){ 3134 return methods.init.apply(this,arguments); 3135 }else{ 3136 $.error("Method "+method+" does not exist"); 3137 } 3138 }; 3139 3140 /* 3141 allow setting plugin default options. 3142 usage: $.mCustomScrollbar.defaults.scrollInertia=500; 3143 to apply any changed default options on default selectors (below), use inside document ready fn 3144 e.g.: $(document).ready(function(){ $.mCustomScrollbar.defaults.scrollInertia=500; }); 3145 */ 3146 $[pluginNS].defaults=defaults; 3147 3148 /* 3149 add window object (window.mCustomScrollbar) 3150 usage: if(window.mCustomScrollbar){console.log("custom scrollbar plugin loaded");} 3151 */ 3152 window[pluginNS]=true; 3153 3154 $(window).bind("load",function(){ 3155 3156 $(defaultSelector)[pluginNS](); /* add scrollbars automatically on default selector */ 3157 3158 /* extend jQuery expressions */ 3159 $.extend($.expr[":"],{ 3160 /* checks if element is within scrollable viewport */ 3161 mcsInView:$.expr[":"].mcsInView || function(el){ 3162 var $el=$(el),content=$el.parents(".mCSB_container"),wrapper,cPos; 3163 if(!content.length){return;} 3164 wrapper=content.parent(); 3165 cPos=[content[0].offsetTop,content[0].offsetLeft]; 3166 return cPos[0]+_childPos($el)[0]>=0 && cPos[0]+_childPos($el)[0]<wrapper.height()-$el.outerHeight(false) && 3167 cPos[1]+_childPos($el)[1]>=0 && cPos[1]+_childPos($el)[1]<wrapper.width()-$el.outerWidth(false); 3168 }, 3169 /* checks if element or part of element is in view of scrollable viewport */ 3170 mcsInSight:$.expr[":"].mcsInSight || function(el,i,m){ 3171 var $el=$(el),elD,content=$el.parents(".mCSB_container"),wrapperView,pos,wrapperViewPct, 3172 pctVals=m[3]==="exact" ? [[1,0],[1,0]] : [[0.9,0.1],[0.6,0.4]]; 3173 if(!content.length){return;} 3174 elD=[$el.outerHeight(false),$el.outerWidth(false)]; 3175 pos=[content[0].offsetTop+_childPos($el)[0],content[0].offsetLeft+_childPos($el)[1]]; 3176 wrapperView=[content.parent()[0].offsetHeight,content.parent()[0].offsetWidth]; 3177 wrapperViewPct=[elD[0]<wrapperView[0] ? pctVals[0] : pctVals[1],elD[1]<wrapperView[1] ? pctVals[0] : pctVals[1]]; 3178 return pos[0]-(wrapperView[0]*wrapperViewPct[0][0])<0 && pos[0]+elD[0]-(wrapperView[0]*wrapperViewPct[0][1])>=0 && 3179 pos[1]-(wrapperView[1]*wrapperViewPct[1][0])<0 && pos[1]+elD[1]-(wrapperView[1]*wrapperViewPct[1][1])>=0; 3180 }, 3181 /* checks if element is overflowed having visible scrollbar(s) */ 3182 mcsOverflow:$.expr[":"].mcsOverflow || function(el){ 3183 var d=$(el).data(pluginPfx); 3184 if(!d){return;} 3185 return d.overflowed[0] || d.overflowed[1]; 3186 } 3187 }); 3188 3189 }); 3190 3191}))})); 3192/* End */ 3193; 3194; /* Start:"a:4:{s:4:"full";s:63:"/bitrix/templates/aspro_max/js/scrollTabs.min.js?16586591536994";s:6:"source";s:44:"/bitrix/templates/aspro_max/js/scrollTabs.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3195InitTabsScroll=function(){$(".arrow_scroll:not(.arrow_scroll_init)").scrollTab()},ResizeScrollTabs=function(){var r=$(".arrow_scroll_init");r.length&&r.each(function(r,e){var t=$(e);t.data("scrollTabOptions").resize()})},$(document).ready(function(){InitTabsScroll()}),$(window).on("resize",function(){void 0!==window.scrollTabsTimeout&&clearTimeout(window.scrollTabsTimeout),window.scrollTabsTimeout=setTimeout(ResizeScrollTabs,20)}),$.fn.scrollTab=function(r){function e(r,e){var t=$(r),a=t.find(e.tabs_wrapper);if(void 0===a||!a.length)return!1;var o=a.find("> li");if(!o.length)return!1;var s='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><rect width="12" height="8" fill="#333" fill-opacity="0" /><path d="M1015.69,507.693a0.986,0.986,0,0,1-1.4,0l-4.31-4.316-4.3,4.316a0.993,0.993,0,0,1-1.4-1.408l4.99-5.009a1.026,1.026,0,0,1,1.43,0l4.99,5.009A0.993,0.993,0,0,1,1015.69,507.693Z" fill="#333" transform="translate(-1004 -501)"/></svg>',n='<div class="arrows_wrapper"><div class="arrow arrow_left colored_theme_hover_text">'+s+'</div><div class="arrow arrow_right colored_theme_hover_text">'+s+"</div></div>",l=$(n).insertAfter(a),i=l.find(".arrow_left"),d=l.find(".arrow_right"),c=$.extend({},e);c.scrollTab=t,c.wrapper=a,c.tabs=o,c.arrows={},c.arrows.wrapper=l,c.arrows.arrow_left=i,c.arrows.arrow_right=d,void 0!==c.linked_tabs&&c.linked_tabs.length&&void 0!==c.linked_tabs.data("scrollTabOptions")&&(c.linked_options=c.linked_tabs.data("scrollTabOptions"),c.linked_options.linked_options=c),e.arrows_css&&(c.arrows.arrow_left.css(e.arrows_css),c.arrows.arrow_right.css(e.arrows_css)),c.initTabs=function(){c.wrapperBounds=c.wrapper[0].getBoundingClientRect(),c.scrollBounds=c.scrollTab[0].getBoundingClientRect(),elements=$(c.tabs),elements.length&&(c.firstTabBound=elements[0].getBoundingClientRect().left,c.lastTabBound=elements[elements.length-1].getBoundingClientRect().right),c.minTranslate=c.wrapperBounds.right<c.lastTabBound?c.wrapperBounds.right-c.lastTabBound-2:0,c.disabled=c.lastTabBound-c.wrapperBounds.left<=c.scrollBounds.width},c.wrapper.css({"white-space":"nowrap","min-width":"auto",overflow:"visible","z-index":"1"}),c.scrollTab.css({overflow:"hidden",position:"relative"}),c.checkArrows=function(r){void 0===r&&(r=c.translate),c.disabled?(c.arrows.arrow_left.addClass("disabled"),c.arrows.arrow_right.addClass("disabled")):r>=c.maxTranslate?(c.arrows.arrow_left.addClass("disabled"),c.arrows.arrow_right.removeClass("disabled")):r<=c.minTranslate?(c.arrows.arrow_right.addClass("disabled"),c.arrows.arrow_left.removeClass("disabled")):(c.arrows.arrow_left.removeClass("disabled"),c.arrows.arrow_right.removeClass("disabled"))},c.directScroll=function(r,e,t){void 0===e&&(e=5),clearInterval(c.timerMoveDirect);var a=c.translate+r;a>c.maxTranslate?a=c.maxTranslate:a<c.minTranslate&&(a=c.minTranslate);var o=c.translate;c.translate=a,0==e?(c.translate=a,c.wrapper.css({transform:"translateX("+c.translate+"px)"})):(void 0===t&&(t=1),c.timerMoveDirect=setInterval(function(){c.wrapper.css({transform:"translateX("+o+"px)"}),(r<0&&o<=a||r>0&&o>=a)&&(c.initTabs(),clearInterval(c.timerMoveDirect)),o<a?o+=t:o-=t},e)),c.checkArrows(a)},c.addArrowsEvents=function(){c.arrows.arrow_right.on("mouseenter",function(){c.arrows.arrow_left.removeClass("disabled"),c.timerMoveLeft=setInterval(function(){c.translate<c.minTranslate?(clearInterval(c.timerMoveLeft),c.arrows.arrow_right.addClass("disabled")):(c.translate-=c.translateSpeed,c.wrapper.css({transform:"translateX("+c.translate+"px)"}))},10)}),c.arrows.arrow_right.on("mouseleave",function(){clearInterval(c.timerMoveLeft)}),c.arrows.arrow_right.on("click",function(){c.directScroll(-c.directTranslate),c.arrows.arrow_left.removeClass("disabled")}),c.arrows.arrow_right.on("touchend",function(){setTimeout(function(){clearInterval(c.timerMoveLeft)},1)}),c.arrows.arrow_left.on("mouseenter",function(){c.arrows.arrow_right.removeClass("disabled"),c.timerMoveRight=setInterval(function(){c.translate>=c.maxTranslate?(clearInterval(c.timerMoveRight),c.arrows.arrow_left.addClass("disabled")):(c.translate+=c.translateSpeed,c.wrapper.css({transform:"translateX("+c.translate+"px)"}))},10)}),c.arrows.arrow_left.on("mouseleave",function(){clearInterval(c.timerMoveRight)}),c.arrows.arrow_left.on("click",function(){c.directScroll(c.directTranslate),c.arrows.arrow_right.removeClass("disabled")}),c.arrows.arrow_left.on("touchend",function(){setTimeout(function(){clearInterval(c.timerMoveRight)},1)})},c.addTabsEvents=function(){c.tabs.on("click",function(){var r=c.scrollBounds.left,e=c.scrollBounds.right,t=this.getBoundingClientRect(),a=t.left-c.arrows.arrow_width,o=t.right+c.arrows.arrow_width;if(a<r?c.directScroll(r-a,1,2):o>e&&c.directScroll(e-o,1,2),c.activeTab=$(this),void 0!==c.linked_options){var s=$(this).index(),n=$(c.linked_options.tabs[s]),l={leftScrollBound:c.linked_options.scrollBounds.left,rightScrollBound:c.linked_options.scrollBounds.right,tabBounds:n[0].getBoundingClientRect()};l.tabBounds.left<l.leftScrollBound?c.linked_options.directScroll(l.leftScrollBound-l.tabBounds.left+c.linked_options.arrows.arrow_width+1,0):l.tabBounds.right>l.rightScrollBound&&c.linked_options.directScroll(l.rightScrollBound-l.tabBounds.right-c.linked_options.arrows.arrow_width-1,0),c.linked_options.activeTab=n}})},c.addWrapperEvents=function(){c.wrapper.on("touchstart",function(r){c.touch.posPrev=r.originalEvent.changedTouches[0].pageX,clearInterval(c.timerMoveRight),clearInterval(c.timerMoveLeft),clearInterval(c.timerMoveDirect)}),c.wrapper.on("touchmove",function(r){c.touch.posCurrent=r.originalEvent.changedTouches[0].pageX-c.touch.posPrev,c.directScroll(c.touch.posCurrent,0),c.touch.posPrev=r.originalEvent.changedTouches[0].pageX})},c.resize=function(){if(c.onBeforeResize&&"function"==typeof c.onBeforeResize&&c.onBeforeResize(c),c.onResize&&"function"==typeof c.onResize&&c.onResize(c),c.translate<c.minTranslate?c.directScroll(c.minTranslate-c.translate):c.translate>c.maxTranslate&&c.directScroll(c.maxTranslate-c.translate),void 0!==c.activeTab&&c.activeTab.length){var r=c.activeTab[0].getBoundingClientRect();r.left<c.scrollBounds.left?c.directScroll(c.scrollBounds.left-r.left):r.right>c.scrollBounds.right&&c.directScroll(c.scrollBounds.right-r.right)}c.initTabs(),c.checkArrows(),c.onAfterResize&&"function"==typeof c.onAfterResize&&c.onAfterResize(c)},t.data("scrollTabOptions",c),t.data("scrollTabOptions").addArrowsEvents(),t.data("scrollTabOptions").addTabsEvents(),t.data("scrollTabOptions").addWrapperEvents(),t.addClass("arrow_scroll_init").addClass("swipeignore"),void 0!==d&&d.length&&(c.arrows.arrow_width=c.arrows.arrow_right[0].getBoundingClientRect().width),t.data("scrollTabOptions").resize(),delete c}r=$.extend({translate:1,translateSpeed:2,directTranslate:150,maxTranslate:1,touch:{},arrows_css:!1,tabs_wrapper:".nav-tabs",onResize:!1,width_grow:9},r);var t=$(this);if(t.hasClass("arrow_scroll_init"))return!1;t.each(function(t,a){e(a,r)})}; 3196/* End */ 3197; 3198; /* Start:"a:4:{s:4:"full";s:59:"/bitrix/templates/aspro_max/js/main.min.js?1658659153257223";s:6:"source";s:38:"/bitrix/templates/aspro_max/js/main.js";s:3:"min";s:42:"/bitrix/templates/aspro_max/js/main.min.js";s:3:"map";s:46:"/bitrix/templates/aspro_max/js/main.min.js.map";}"*/ 3199var basketTimeoutSlide,resizeEventTimer,clicked_tab=0;if(void 0===arAsproOptions){var arAsproOptions={SITE_DIR:"/"};void 0!==$("body").data("site")&&(arAsproOptions.SITE_DIR=$("body").data("site"))}function readyDOM(callback){"loading"!==document.readyState?callback():document.addEventListener("DOMContentLoaded",callback)}var typeofExt=function(item){const _toString=Object.prototype.toString;return _toString.call(item).slice(8,-1).toLowerCase()},InitLazyLoad=function(){};function openYandexMap(element){var $this=$(element);if(!$this.hasClass("closer")){var currentMap=$this.parents(".bx-yandex-view-layout"),mapId=currentMap.find(".bx-yandex-map").attr("id");window.openedYandexMapFrame=mapId;var mapContainer=$('<div data-mapId="'+mapId+'"></div>');$("div[data-mapId="+mapId+"]").length||currentMap.after(mapContainer);var yandexMapFrame=$('<div class="yandex-map__frame"></div>');$("body .wrapper1").append(yandexMapFrame),currentMap.appendTo(yandexMapFrame),currentMap.find(".yandex-map__mobile-opener").addClass("closer"),window.map.container.fitToViewport()}}function closeYandexMap(){var yandexMapFrame=$(".yandex-map__frame");
3199if(yandexMapFrame.length){var currentMap=yandexMapFrame.find(".bx-yandex-view-layout"),yandexMapContainer=$("div[data-mapId="+window.openedYandexMapFrame+"]");currentMap.appendTo(yandexMapContainer),yandexMapFrame.remove(),currentMap.find(".yandex-map__mobile-opener").removeClass("closer"),window.map&&window.map.container.fitToViewport()}}function throttle(f,t){let throttled,saveThis,saveArgs;const wrapper=function(){if(throttled)return saveThis=this,void(saveArgs=arguments);throttled=!0,f.apply(this,arguments),setTimeout((function(){throttled=!1,saveArgs&&(wrapper.apply(saveThis,saveArgs),saveThis=saveArgs=null)}),t)};return wrapper}function debounce(f,t){return function(args){var previousCall=this.lastCall;this.lastCall=Date.now(),previousCall&&this.lastCall-previousCall<=t&&clearTimeout(this.lastCallTimer),this.lastCallTimer=setTimeout((function(){f(args)}),t)}}if($(document).on("change",".uploader input[type=file]",(function(){$(this).next().length&&$(this).next().hasClass("resetfile")||$('<span class="resetfile"><svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewB
3199ox="0 0 11 11"><path d="M1345.19,376.484l4.66,4.659a0.492,0.492,0,0,1,0,.707,0.5,0.5,0,0,1-.71,0l-4.66-4.659-4.65,4.659a0.5,0.5,0,0,1-.71,0,0.492,0.492,0,0,1,0-.707l4.66-4.659-4.66-4.659a0.492,0.492,0,0,1,0-.707,0.5,0.5,0,0,1,.71,0l4.65,4.659,4.66-4.659a0.5,0.5,0,0,1,.71,0,0.492,0.492,0,0,1,0,.707Z" transform="translate(-1339 -371)"/></svg></span>').insertAfter($(this))})),$(document).on("click",".uploader.files_add input[type=file] + .resetfile",(function(){var $input=$(this).prev();$input.val(""),$.uniform.update($input),$(this).remove()})),$(document).on("click",".top_block h3",(function(){if(window.matchMedia("(max-width: 550px)").matches){var $this,a=$(this).siblings("a");a.length&&a[0].click()}})),$(document).on("click",".bx-yandex-view-layout .yandex-map__mobile-opener",(function(){$(this).hasClass("closer")?closeYandexMap():openYandexMap(this)})),$(document).on("click",".flex-control-nav.flex-control-js-click li a:not(.flex-active)",(function(e){var _this=$(this),itemIndex=_this.data("index")?_this.data("index"):_this.closest("li").index(),block="",blocks=_this.closest(".items").find("> .item"),activeBlock=_this.closest(".items").find(".item.active"),activeLi=_this.closest(".flex-control-nav").find(".flex-active");activeBlock.fadeOut((function(){activeBlock.removeClass("active"),(block=blocks.eq(itemIndex)).length&&block.fadeIn((function(){block.addClass("active")})),_this.addClass("flex-active"),activeLi.removeClass("flex-active")})),e.preventDefault()})),$(document).on("mouseenter","#headerfixed .menu-item.wide_menu",(function(){var _this=$(this);setTimeout((function(){var dropdownMenu=_this.find(".wrap > .dropdown-menu"),menuOffset=dropdownMenu[0].getBoundingClientRect(),headerOffset=document.getElementById("headerfixed").getBoundingClientRect(),windowHeight=document.documentElement.clientHeight;if(menuOffset.height+headerOffset.height>windowHeight){var maxHeight=windowHeight-headerOffset.height;dropdownMenu.css({"max-height":maxHeight}),dropdownMenu.find(".menu-navigation").css({"max-height":maxHeight}),dropdownMenu.find(".customScrollbar").css({"max-height":maxHeight}),dropdownMenu.find(".menu-wrapper.menu-type-4 > li").css({"min-height":"auto"})}else dropdownMenu.css({"max-height":""}),dropdownMenu.find(".menu-navigation").css({"max-height":""}),dropdownMenu.find(".customScrollbar").css({"max-height":""}),dropdownMenu.find(".menu-wrapper.menu-type-4 > li").css({"min-height":""})}),300)})),BX.addCustomEvent("onAjaxSuccess",(function(data){if("object"==typeof data&&null!==data&&void 0!==typeof data.BASKET_REFRESHED&&!0===data.BASKET_REFRESHED&&"object"==typeof data.BASKET_DATA&&data.BASKET_DATA){var basketCounts=data.BASKET_DATA.BASKET_ITEMS_COUNT;reloadBasketCounters(basketCounts)}})),BX.addCustomEvent("onHeaderProgressBarChange",(function(data){"function"==typeof updateProgressBar&&updateProgressBar()})),funcDefined("parseUrlQuery")||(parseUrlQuery=function(){var data={};if(location.search)for(var pair=location.search.substr(1).split("&"),i=0;i<pair.length;i++){var param=pair[i].split("=");data[param[0]]=param[1]}return data}),!funcDefined("setLocationSKU"))function setLocationSKU(ID,urlParam){void 0===urlParam&&(urlParam="oid");var objUrl=parseUrlQuery(),j=0,prefix="",query_string="",url="";for(var i in objUrl[urlParam]=ID,objUrl)parseInt(j)>0&&(prefix="&"),query_string=query_string+prefix+i+"="+objUrl[i],j++;query_string&&(url=location.pathname+"?"+query_string+location.hash);try{return void history.replaceState(null,null,url)}catch(e){}location.hash="#"+url.substr(1)}if(funcDefined("ShowOverlay")||(ShowOverlay=function(){$('<div class="jqmOverlay waiting"></div>').appendTo("body")}),funcDefined("HideOverlay")||(HideOverlay=function(){$(".jqmOverlay").detach()}),!funcDefined("trimPrice"))var trimPrice=function trimPrice(s){return s=(s=s.split(" ").join("")).split(" ").join("")};if(funcDefined("pauseYmObserver")||(pauseYmObserver=function(){"function"==typeof MutationObserver&&"object"==typeof MutationObserver.observers&&"object"==typeof MutationObserver.observers.ym&&(void 0===pauseYmObserver.cnt&&(pauseYmObserver.cnt=0),++pauseYmObserver.cnt,MutationObserver.observers.ym.paused||MutationObserver.observers.ym.pause())}),funcDefined("resumeYmObserver")||(resumeYmObserver=function(){"function"==typeof MutationObserver&&"object"==typeof MutationObserver.observers&&"object"==typeof MutationObserver.observers.ym&&(void 0===pauseYmObserver.cnt&&(pauseYmObserver.cnt=1),pauseYmObserver.cnt-=pauseYmObserver.cnt>0?1:0,!pauseYmObserver.cnt&&MutationObserver.observers.ym.paused&&MutationObserver.observers.ym.resume())}),!funcDefined("markProductRemoveBasket"))var markProductRemoveBasket=function markProductRemoveBasket(id){$(".in-cart[data-item="+id+"]").hide(),$(".to-cart[data-item="+id+"]").show(),$(".to-cart[data-item="+id+"]").closest(".counter_wrapp").find(".counter_block").length&&$(".to-cart[data-item="+id+"]").closest(".button_block").removeClass("wide"),$(".to-cart[data-item="+id+"]").closest(".counter_wrapp").find(".counter_block").show(),$(".counter_block[data-item="+id+"]").closest(".counter_block_inner").show(),$(".counter_block[data-item="+id+"]").show(),$(".in-subscribe[data-item="+id+"]").hide(),$(".to-subscribe[data-item="+id+"]").show(),$(".wish_item[data-item="+id+"] .value:not(.added)").show(),$(".wish_item[data-item="+id+"] .value.added").hide(),$(".wish_item.to[data-item="+id+"]").show(),$(".wish_item.in[data-item="+id+"]").hide(),$(".banner_buttons.with_actions .wraps_buttons[data-id="+id+"] .basket_item_add").removeClass("added"),$(".banner_buttons.with_actions .wraps_buttons[data-id="+id+"] .wish_item_add").removeClass("added"),$("#headerfixed .but-cell .type_block").length&&($("#headerfixed .but-cell .type_block span").text(BX.message("MORE_INFO_SKU")),$("#headerfixed .but-cell .type_block .svg-inline-fw").remove())};if(!funcDefined("markProductAddBasket"))var markProductAddBasket=function markProductAddBasket(id){$(".to-cart[data-item="+id+"]").hide(),$(".to-cart[data-item="+id+"]").closest(".counter_wrapp").find(".counter_block_inner").hide(),$(".to-cart[data-item="+id+"]").closest(".counter_wrapp").find(".counter_block").hide(),$(".to-cart[data-item="+id+"]").closest(".button_block").addClass("wide"),$(".in-cart[data-item="+id+"]").show(),$(".wish_item[data-item="+id+"] .value:not(.added)").show(),$(".wish_item[data-item="+id+"] .value.added").hide(),$(".wish_item.to[data-item="+id+"]").show(),$(".wish_item.in[data-item="+id+"]").hide(),$(".banner_buttons.with_actions .wraps_buttons[data-id="+id+"] .basket_item_add").addClass("added"),$("#headerfixed .but-cell .type_block").length&&$("#headerfixed .but-cell .type_block").html($(".in-cart[data-item="+id+"]").html())};if(!funcDefined("markProductDelay"))var markProductDelay=function markProductDelay(id){$(".in-cart[data-item="+id+"]").hide(),$(".to-cart[data-item="+id+"]").show(),$(".to-cart[data-item="+id+"]").closest(".counter_wrapp").find(".counter_block_inner").show(),$(".to-cart[data-item="+id+"]").closest(".counter_wrapp").find(".counter_block").show(),$(".to-cart[data-item="+id+"]").closest(".counter_wrapp").find(".counter_block").length&&$(".to-cart[data-item="+id+"]").closest(".button_block").removeClass("wide"),$(".wish_item[data-item="+id+"] .value:not(.added)").hide(),$(".wish_item[data-item="+id+"] .value.added").css("display","block"),$(".wish_item.to[data-item="+id+"]").hide(),$(".wish_item.in[data-item="+id+"]").show(),$(".banner_buttons.with_actions .wraps_buttons[data-id="+id+"] .wish_item_add").addClass("added"),$("#headerfixed .but-cell .type_block").length&&($("#headerfixed .but-cell .type_block span").text(BX.message("MORE_INFO_SKU")),$("#headerfixed .but-cell .type_block .svg-inline-fw").remove())};if(!funcDefined("markProductSubscribe"))var markProductSubscribe=function markProductSubscribe(id){$(".to-subscribe[data-item="+id+"]").hide(),$(".in-subscribe[data-item="+id+"]").css("display","block")};if(!funcDefined("updateBottomIconsPanel"))var updateBottomIconsPanel=function updateBottomIconsPanel(options){if(options&&$(".bottom-icons-panel").length){var bBasketUpdate="READY"in options||"BASKET_COUNT"in options,basketCount="READY"in options?options.READY.COUNT:"BASKET_COUNT"in options?options.BASKET_COUNT:0,basketTitle="READY"in options?options.READY.TITLE:"BASKET_SUMM_TITLE"in o
3199ptions?options.BASKET_SUMM_TITLE:"",bDelayUpdate="DELAY"in options||"DELAY_COUNT"in options,delayCount="DELAY"in options?options.DELAY.COUNT:"DELAY_COUNT"in options?options.DELAY_COUNT:0,delayTitle="DELAY"in options?options.DELAY.TITLE:"DELAY_SUMM_TITLE"in options?options.DELAY_SUMM_TITLE:"",bCompareUpdate="COMPARE"in options,compareCount="COMPARE"in options?"object"==typeof options.COMPARE&&"COUNT"in options.COMPARE?options.COMPARE.COUNT:Object.keys(options.COMPARE).length:0;bBasketUpdate&&(+basketCount>0?$(".bottom-icons-panel .basket.counter-state").removeClass("counter-state--empty"):$(".bottom-icons-panel .basket.counter-state").addClass("counter-state--empty"),$(".bottom-icons-panel .basket .counter-state__content-item-value").text(basketCount),$(".bottom-icons-panel .basket").closest(".bottom-icons-panel__content-link").attr("title",$("<div/>").html(basketTitle).text())),bDelayUpdate&&bBasketUpdate&&(+delayCount>0?($(".bottom-icons-panel .delay.counter-state").removeClass("counter-state--empty"),$(".bottom-icons-panel-item_delay").attr("href",$(".bottom-icons-panel-item_delay").data("href"))):($(".bottom-icons-panel .delay.counter-state").addClass("counter-state--empty"),$(".bottom-icons-panel-item_delay").attr("href","javascript:void(0)")),$(".bottom-icons-panel .delay .counter-state__content-item-value").text(delayCount),$(".bottom-icons-panel .delay").closest(".bottom-icons-panel__content-link").attr("title",$("<div/>").html(delayTitle).text())),bCompareUpdate&&(compareCount>0?$(".bottom-icons-panel .compare.counter-state").removeClass("counter-state--empty"):$(".bottom-icons-panel .compare.counter-state").addClass("counter-state--empty"),$(".bottom-icons-panel .compare .counter-state__content-item-value").text(compareCount))}};if(!funcDefined("basketFly"))var basketFly=function basketFly(action,opener){"object"==typeof obMaxPredictions&&obMaxPredictions.updateAll(),$.post(arAsproOptions.SITE_DIR+"ajax/basket_fly.php","PARAMS="+$("#basket_form").find("input#fly_basket_params").val(),$.proxy((function(data){var small=$(".opener .basket_count").hasClass("small"),basket_count=$(data).find(".basket_count").find(".items div").text();$("#basket_line .basket_fly").addClass("loaded").html(data),"refresh"==action&&$("li[data-type=AnDelCanBuy]").trigger("click"),void 0===opener||$("#basket_line .basket_fly").hasClass("loading")?window.matchMedia("(min-width: 769px)").matches&&("open"==action?small?"N"!==arAsproOptions.THEME.SHOW_BASKET_ONADDTOCART&&$(".opener .basket_count").click():($(".opener .basket_count").removeClass("small"),$('.tabs_content.basket li[item-section="AnDelCanBuy"]').addClass("cur"),$('#basket_line ul.tabs li[item-section="AnDelCanBuy"]').addClass("cur"),$("#basket_line .basket_fly .opener > div:eq(0)").addClass("cur")):"wish"==action?small?"N"!==arAsproOptions.THEME.SHOW_BASKET_ONADDTOCART&&$(".opener .wish_count").click():($(".opener .wish_count").removeClass("small"),$('.tabs_content.basket li[item-section="DelDelCanBuy"]').addClass("cur"),$('#basket_line ul.tabs li[item-section="DelDelCanBuy"]').addClass("cur")):"N"!==arAsproOptions.THEME.SHOW_BASKET_ONADDTOCART&&$(".opener .basket_count").click()):"SHOW"===opener&&window.matchMedia("(min-width: 769px)").matches&&($(".opener .basket_count").removeClass("small"),$('.tabs_content.basket li[item-section="AnDelCanBuy"]').addClass("cur"),$('#basket_line ul.tabs li[item-section="AnDelCanBuy"]').addClass("cur"),$("#basket_line .basket_fly .opener > div:eq(0)").addClass("cur"))})))};if(!funcDefined("basketTop"))var basketTop=function basketTop(action,hoverBlock){if("reload"==action&&$(".basket_hover_block:hover").length&&(hoverBlock=$(".basket_hover_block:hover")),"open"==action&&"N"!==arAsproOptions.THEME.SHOW_BASKET_ONADDTOCART&&(hoverBlock=$("#headerfixed").hasClass("fixed")?$("#headerfixed .basket_hover_block"):$(".top_basket .basket_hover_block")),void 0===hoverBlock)return console.log("Undefined hoverBlock"),console.trace(),!1;if("close"==action&&hoverBlock.length)return hoverBlock.css({opacity:"",visibility:""}),!0;hoverBlock.removeClass("loaded");var firstTime=hoverBlock.find("div").length?"false":"true",params=$("#basket_form").find("input#fly_basket_params").val(),postData={firstTime:firstTime};void 0!==params&&(postData.PARAMS=params),$.post(arAsproOptions.SITE_DIR+"ajax/showBasketHover.php",postData,$.proxy((function(data){var ob=BX.processHTML(data);$("#headerfixed .basket_hover_block, .top_basket .basket_hover_block").html(ob.HTML),BX.ajax.processScripts(ob.SCRIPT),window.matchMedia("(min-width: 992px)").matches&&(hoverBlock.addClass("loaded"),"open"==action&&"N"!==arAsproOptions.THEME.SHOW_BASKET_ONADDTOCART&&((hoverBlock=$("#headerfixed").hasClass("fixed")?$("#headerfixed .basket_hover_block"):$(".top_basket .basket_hover_block")).css({opacity:"1",visibility:"visible"}),setTimeout((function(){hoverBlock.css({opacity:"",visibility:""})}),2e3)))})))};var lastHash=location.hash;if("onhashchange"in window){function compareHash(current,previous){for(var i=0,len=Math.min(current.length,previous.length);i<len&¤t.charAt(0)==previous.charAt(0);i++);current=current.substr(i),previous=previous.substr(i);for(var i=0,len=Math.min(current.length,previous.length);i<len&¤t.substr(-1)==previous.substr(-1);i++);return[current,previous]}$(window).bind("hashchange",(function(){var newHash=location.hash;"#delayed"==newHash?$("#basket_toolbar_button_delayed").length&&$("#basket_toolbar_button_delayed").trigger("click"):$("#basket_toolbar_button").length&&$("#basket_toolbar_button").trigger("click");var diff=compareHash(newHash,lastHash);if((lastHash=newHash)&&("scrollRestoration"in history&&(history.scrollRestoration="manual"),$('.ordered-block .tabs .nav a[href="'+lastHash+'"]').length)){$('.ordered-block .tabs .nav a[href="'+lastHash+'"]').trigger("click");var content_offset=$(".ordered-block .tabs").offset();$("html, body").animate({scrollTop:content_offset.top-90},400)}}))}if($(document).on("click","#basket_toolbar_button",(function(){lastHash&&(location.hash="cart")})),$(document).on("click","#basket_toolbar_button_delayed",(function(){lastHash&&(location.hash="delayed")})),location.hash)var hash=location.hash;if($(document).on("click","#basket_line .basket_fly .opener > div.clicked",(function(){if(!arAsproOptions.PAGES.BASKET_PAGE&&window.matchMedia("(min-width: 769px)").matches){var _this=this;$(_this).siblings().removeClass("cur"),$(_this).addClass("cur"),parseInt($("#basket_line .basket_fly").css("right"))<0?($("#basket_line .basket_fly").stop().addClass("loading").animate({right:"0"},333,(function(){$(_this).closest(".basket_fly.loaded").length?onOpenFlyBasket(_this):$.ajax({url:arAsproOptions.SITE_DIR+"ajax/basket_fly.php",type:"post",success:function(html){$("#basket_line .basket_fly").removeClass("loading").addClass("loaded").html(html),onOpenFlyBasket(_this)}})})),$("#basket_line .basket_fly").addClass("swiped")):$(this).is(".wish_count:not(.empty)")&&!$("#basket_line .basket_fly .basket_sort ul.tabs li.cur").is("[item-section=DelDelCanBuy]")?($("#basket_line .basket_fly .tabs li").removeClass("cur"),$("#basket_line .basket_fly .tabs_content li").removeClass("cur"),$("#basket_line .basket_fly .tabs_content li[item-section="+$(this).data("type")+"]").addClass("cur"),$("#basket_line .basket_fly .tabs li:eq("+$(this).index()+")").first().addClass("cur")):$(this).is(".basket_count")&&$("#basket_line .basket_fly .basket_sort ul.tabs li.cur").length&&!$("#basket_line .basket_fly .basket_sort ul.tabs li.cur").is("[item-section=AnDelCanBuy]")?($("#basket_line .basket_fly .tabs li").removeClass("cur"),$("#basket_line .basket_fly .tabs_content li").removeClass("cur"),$("#basket_line .basket_fly .tabs_content li:eq("+$(this).index()+")").addClass("cur"),$("#basket_line .basket_fly .tabs li:eq("+$(this).index()+")").first().addClass("cur")):($("#basket_line .basket_fly").stop().animate({right:-$("#basket_line .basket_fly").outerWidth()},150),$("#basket_line .basket_fly .opener > div.clicked").addClass("small"),$("#basket_line .basket_fly").removeClass("swiped"),$("#basket_line .basket_fly .opener > div").removeClass("cur"))}function onOpenFlyBasket(_this){$("#basket_line .basket_fly .tabs li").removeClass("cur"),$("#basket_line .basket_fly .tabs_content li").removeClass("cur"),$(_this).is(".wish_count.empty")?($("#basket_line .basket_fly .tabs li").first().addClass("cur").siblings().removeClass("cur"),$("#basket_line .basket_fly .tabs_content li").first().addClass("cur").siblings().removeClass("cur")):($("#basket_line .basket_fly .tabs_content li[item-section="+$(_this).data("type")+"]").addClass("cur"),$("#basket_line .basket_fly .tabs li:eq("+$(_this).index()+")").addClass("cur")),$("#basket_line .basket_fly .opener > div.clicked").removeClass("small"),$("#basket_line .basket_fly .opener > div").siblings().removeClass("cur"),$("#basket_line .basket_fly .opener > div:eq("+$(_this).index()+")").addClass("cur")}})),!funcDefined("clearViewedProduct"))function clearViewedProduct(){try{var siteID,localKey="MAX_VIEWED_ITEMS_"+arAsproOptions.SITE_ID,cookieParams={path:"/",expires:30};void 0!==BX.localStorage&&BX.localStorage.set(localKey,{},0),$.removeCookie(localKey,cookieParams)}catch(e){console.error(e)}}
3199if(!funcDefined("setViewedProduct"))function setViewedProduct(id,arData){try{var bCookieJson=$.cookie.json;$.cookie.json=!0;var siteID,localKey="MAX_VIEWED_ITEMS_"+arAsproOptions.SITE_ID,cookieParams={path:"/",expires:30};if(void 0!==BX.localStorage&&void 0!==id&&void 0!==arData){var PRODUCT_ID=void 0!==arData.PRODUCT_ID?arData.PRODUCT_ID:id,arViewedLocal=BX.localStorage.get(localKey)?BX.localStorage.get(localKey):{},arViewedCookie=$.cookie(localKey)?$.cookie(localKey):{},count=0;for(var _id in arViewedLocal)arViewedLocal[_id].IS_LAST=!1,void 0===arViewedCookie[_id]&&delete arViewedLocal[_id];for(var _id in arViewedCookie)void 0===arViewedLocal[_id]&&delete arViewedCookie[_id];for(var _id in arViewedCookie)count++;void 0!==arViewedLocal[PRODUCT_ID]&&arViewedLocal[PRODUCT_ID].ID!=id&&(delete arViewedLocal[PRODUCT_ID],delete arViewedCookie[PRODUCT_ID]);var time=(new Date).getTime();arData.ID=id,arData.ACTIVE_FROM=time,arData.IS_LAST=!0,arViewedLocal[PRODUCT_ID]=arData,arViewedCookie[PRODUCT_ID]=[time.toString(),arData.PICTURE_ID],$.cookie(localKey,arViewedCookie,cookieParams),BX.localStorage.set(localKey,arViewedLocal,2592e3)}}catch(e){console.error(e)}finally{$.cookie.json=bCookieJson}}if(!funcDefined("initSelects"))function initSelects(target){var iOS;if((!!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)||$(".wrapper1.iks-on-ios").length)&&!$("#bx-soa-order").length&&!$(".wrapper1.iks-ignore").length){const $target=$(target).find(".wrapper1 select:visible:not(.iks-ignore), .jqmWindow select:visible:not(.iks-ignore)");var timeout;if($target.length)$target.ikSelect({syntax:'<div class="ik_select_link"> <span class="ik_select_link_text"></span> <div class="trigger"></div> </div> <div class="ik_select_dropdown"> <div class="ik_select_list"> </div> </div>',dynamicWidth:!0,ddMaxHeight:112,customClass:"common_select",onShow:function(inst){inst.$dropdown.css("top",parseFloat(inst.$dropdown.css("top"))-5+"px"),inst.$dropdown.outerWidth()<inst.$link.outerWidth()&&inst.$dropdown.css("width",inst.$link.outerWidth()),inst.$dropdown.outerWidth()>inst.$link.outerWidth()&&inst.$dropdown.css("width",inst.$link.outerWidth());var count=0,client_height=0;inst.$dropdown.css("left",inst.$link.offset().left),$(inst.$listInnerUl).find("li").each((function(){$(this).hasClass("ik_select_option_disabled")||(++count,client_height+=$(this).outerHeight())})),client_height<112?inst.$listInner.css("height","auto"):inst.$listInner.css("height","112px"),inst.$link.addClass("opened"),inst.$listInner.addClass("scroller scrollblock"),$(".confirm_region").length&&$(".confirm_region").remove()},onHide:function(inst){inst.$link.removeClass("opened")}}),$(window).on("resize",(function(){ignoreResize.push(!0),clearTimeout(timeout),timeout=setTimeout((function(){var inst="";(inst=$(".common_select-link.opened + select").ikSelect().data("plugin_ikSelect"))&&inst.$dropdown.css("left",inst.$link.offset().left+"px")}),20),ignoreResize.pop()}))}}function extendDepthObject(target,FromObj){var to=Object.assign({},target);for(var key in FromObj)"object"==typeof FromObj[key]?to[key]=extendDepthObject(to[key],FromObj[key]):to[key]=FromObj[key];return to}if(funcDefined("CheckTopMenuFullCatalogSubmenu")||(CheckTopMenuFullCatalogSubmenu=function(){if(!arAsproOptions.THEME||"HOVER"==arAsproOptions.THEME.MENU_TYPE_VIEW){var $menu=$(".left_block .menu_top_block");if($menu.length){var $wrapmenu=$menu.parents(".wrap_menu"),wrapMenuWidth=$menu.closest(".wrapper_inner").actual("width");wrapMenuWidth||(wrapMenuWidth=$menu.closest(".wraps").actual("width"));var bCatalogFirst=$menu.hasClass("catalogfirst"),findMenuLi=$(".left_block .menu_top_block:visible li.full"),parentSubmenuWidth=$menu.actual("outerWidth"),wrapMenuLeft=0,wrapMenuRight=0;$wrapmenu.length&&(wrapMenuWidth=$wrapmenu.actual("outerWidth"),wrapMenuRight=(wrapMenuLeft=$wrapmenu.offset().left)+wrapMenuWidth),$(".left_block .catalog_block.menu_top_block").length&&$(".left_block .catalog_block.menu_top_block").is(":visible")&&(findMenuLi=$(".left_block .menu_top_block.catalog_block li.full")),findMenuLi.each((function(){var $this=$(this),$submenu=$this.find(">.dropdown");$submenu.length&&($submenu.css({width:wrapMenuWidth-parentSubmenuWidth+"px"}),isOnceInited||"TOP"!=arAsproOptions.THEME.MENU_POSITION||$this.on("mouseenter",(function(){$submenu.css("min-height",$this.closest(".dropdown").actual("outerHeight")+"px")})))}))}}}),$.fn.getMaxHeights=function(outer,classNull,minHeight){for(var maxHeight=this.map((function(i,e){var calc_height=0;return $(e).css("height",""),calc_height=1==outer?$(e).actual("outerHeight"):$(e).actual("height")})).get(),i=0,c=maxHeight.length;i<c;++i)maxHeight[i]%2&&--maxHeight[i];return Math.max.apply(this,maxHeight)},$.fn.equalizeHeights=function(outer,classNull,options){for(var maxHeight=[],items=[],i=0,itemKey=0;i<this.length;itemKey++){var item=this[itemKey],_item=$(item),minus_height=0,calc_height=0;if(i++,void 0===options.blockNull||void 0===options.blockNull.class||!_item.hasClass(options.blockNull.class)&&!_item.closest("."+options.blockNull.class).length){if(items.push(this[itemKey]),!1!==classNull&&!isMobile){var nulled=_item.find(classNull);nulled.length&&(minus_height=parseInt(nulled[0].offsetHeight))}minus_height&&(minus_height+=12),_item.css("height",""),calc_height=item.offsetHeight-minus_height,!1!==options.minHeight&&(calc_height<options.minHeight&&(calc_height+=options.minHeight-calc_height),window.matchMedia("(max-width: 520px)").matches&&(calc_height=300),window.matchMedia("(max-width: 400px)").matches&&(calc_height=200)),calc_height||(calc_height=0),maxHeight.push(calc_he
3199ight)}}for(var i=0,c=maxHeight.length;i<c;++i)maxHeight[i]%2&&--maxHeight[i];var result;return $(items).height(Math.max.apply(this,maxHeight))},$.fn.getFloatWidth=function(){var width=0;if($(this).length){var rect=$(this)[0].getBoundingClientRect();(width=rect.width)||(width=rect.right-rect.left)}return $(this).data("floatWidth",width),width},$.fn.sliceHeight=function(options){function _slice(el){var arBreakpoints=Object.keys(options.breakpoint),resizeOptionsTmp={};if(arBreakpoints.length)for(var key in arBreakpoints)window.matchMedia(arBreakpoints[key].toString()).matches&&(resizeOptionsTmp=options.breakpoint[arBreakpoints[key]]);var resizeOptions=extendDepthObject(options,resizeOptionsTmp),blockNullClass=void 0!==resizeOptions.blockNull&&void 0!==resizeOptions.blockNull.class&&resizeOptions.blockNull.class,parent=void 0!==resizeOptions.row&&resizeOptions.row.length?el.first().parents(resizeOptions.row):el.first().parents(".items"),item="";if(void 0!==resizeOptions.item&&resizeOptions.item.length)if(blockNullClass){if($(resizeOptions.item).each((function(i,element){_element=$(element),_element.hasClass(blockNullClass)||(item=_element)})),!item)return!1}else item=$(resizeOptions.item).first();else item=el.first().hasClass("item")?el.first():el.first().parents(".item");if(void 0===resizeOptions.autoslicecount||!1!==resizeOptions.autoslicecount){var elsw=parent.getFloatWidth(),elw=item.getFloatWidth();elsw||(elsw=el.first().parents(".row").getFloatWidth()),elw||(elw=void 0!==resizeOptions.item&&resizeOptions.item.length?$(resizeOptions.item+":eq(1)").getFloatWidth()?$(resizeOptions.item+":eq(1)").getFloatWidth():$(resizeOptions.item+":eq(2)").getFloatWidth():$(el[1]).getFloatWidth()?$(el[1]).getFloatWidth():$(el[2]).getFloatWidth()),elw&&resizeOptions.fixWidth&&(elw-=resizeOptions.fixWidth),elw=parseInt(100*elw)/100,elsw&&elw&&(resizeOptions.slice=Math.floor(elsw/elw))}if(resizeOptions.customSlice){var bSliceNext=!1;resizeOptions.length&&((elw=void 0!==resizeOptions.item&&resizeOptions.item.length?$(resizeOptions.item).last().getFloatWidth():el.last().hasClass("item")?el.last().getFloatWidth():el.last().parents(".item").getFloatWidth())&&(resizeOptions.sliceNext=Math.floor(elsw/elw)),bSliceNext=!0)}if(elements=[],void 0!==resizeOptions.classes&&resizeOptions.classes.length)for(var i=0;i<resizeOptions.classes.length;i++){var items=$(resizeOptions.item).find(resizeOptions.classes[i]);elements.push(items)}var elIndex=elements.push(el)-1;if(1==resizeOptions.mobile&&window.matchMedia("(max-width: 500px)").matches)for(var block=0;block<elements.length;block++){var items;(items=$(elements[block])).css({"line-height":"",height:""})}else if(void 0===resizeOptions.typeResize||0==resizeOptions.typeResize){if(resizeOptions.slice)for(var block=0;block<elements.length;block++)if(resizeOptions.currentRow){var itemNumber=el.index(resizeOptions.currentItem),rowCount=resizeOptions.slice,rowNumber=Math.floor(itemNumber/rowCount),items=$(elements[block].slice(rowNumber*rowCount,rowNumber*rowCount+rowCount)),classNull=block==elIndex&&resizeOptions.classNull;items.css({"line-height":"",height:""}),items.equalizeHeights(resizeOptions.outer,classNull,resizeOptions)}else for(var i=0;i<elements[block].length;){resizeOptions.customSlice&&resizeOptions.sliceNext&&bSliceNext&&i&&(resizeOptions.slice=resizeOptions.sliceNext);var slice=resizeOptions.slice,items=$(elements[block].slice(i,i+slice));if(void 0!==resizeOptions.blockNull&&void 0!==resizeOptions.blockNull.class){var counts=0;items.each((function(i,item){var _item=$(item);(_item.hasClass(resizeOptions.blockNull.class)||_item.closest("."+resizeOptions.blockNull.class).length)&&counts++}))}if(counts&&(slice-=(resizeOptions.blockNull.width-1)*counts),items=$(elements[block].slice(i,i+slice))){var classNull=block==elIndex&&resizeOptions.classNull;items.css({"line-height":"",height:""}),items.equalizeHeights(resizeOptions.outer,classNull,resizeOptions)}i+=slice||1}if(resizeOptions.lineheight){var lineheightAdd=parseInt(resizeOptions.lineheight);isNaN(lineheightAdd)&&(lineheightAdd=0),el.each((function(){$(this).css("line-height",$(this).actual("height")+lineheightAdd+"px")}))}}}
3199var options=$.extend({slice:null,sliceNext:null,outer:!1,lineheight:!1,autoslicecount:!0,classNull:!1,minHeight:!1,row:!1,item:!1,typeResize:!1,typeValue:!1,fixWidth:0,resize:!0,mobile:!1,customSlice:!1,breakpoint:{},classes:[]},options),el=$(this);ignoreResize.push(!0),_slice(el),ignoreResize.pop(),options.resize?BX.addCustomEvent("onWindowResize",(function(eventdata){try{ignoreResize.push(!0),_slice(el)}catch(e){}finally{ignoreResize.pop()}})):ignoreResize.length||_slice(el)},$.fn.sliceHeightNoResize=function(options){function _slice(el){if(el.each((function(){$(this).css("line-height",""),$(this).css("height","")})),1!=options.mobile||!window.matchMedia("(max-width: 550px)").matches){if(void 0===options.autoslicecount||!1!==options.autoslicecount){var elsw=void 0!==options.row&&options.row.length?el.first().parents(options.row).getFloatWidth():el.first().parents(".items").getFloatWidth(),elw=void 0!==options.item&&options.item.length?$(options.item).first().getFloatWidth():el.first().hasClass("item")?el.first().getFloatWidth():el.first().parents(".item").getFloatWidth();elsw||(elsw=el.first().parents(".row").getFloatWidth()),elw&&options.fixWidth&&(elw-=options.fixWidth),elsw&&elw&&(options.slice=Math.floor(elsw/elw))}if(options.customSlice){var arBreakpoints=Object.keys(options.breakpoint),bSliceNext=!1;if(arBreakpoints.length)for(var key in(elw=void 0!==options.item&&options.item.length?$(options.item).last().getFloatWidth():el.last().hasClass("item")?el.last().getFloatWidth():el.last().parents(".item").getFloatWidth())&&(options.sliceNext=Math.floor(elsw/elw)),arBreakpoints)window.matchMedia(arBreakpoints[key].toString()).matches&&(bSliceNext=!0,options.slice=options.breakpoint[arBreakpoints[key]])}if(void 0===options.typeResize||0==options.typeResize){if(options.slice)for(var i=0;i<el.length;i+=options.slice)options.customSlice&&options.sliceNext&&bSliceNext&&i&&(options.slice=options.sliceNext),$(el.slice(i,i+options.slice)).equalizeHeights(options.outer,options.classNull,options.minHeight,options.typeResize,options.typeValue);if(options.lineheight){var lineheightAdd=parseInt(options.lineheight);isNaN(lineheightAdd)&&(lineheightAdd=0),el.each((function(){$(this).css("line-height",$(this).actual("height")+lineheightAdd+"px")}))}}}}var options=$.extend({slice:null,sliceNext:null,outer:!1,lineheight:!1,autoslicecount:!0,classNull:!1,minHeight:!1,row:!1,item:!1,typeResize:!1,typeValue:!1,fixWidth:0,resize:!0,mobile:!1,customSlice:!1,breakpoint:{}},options),el=$(this);ignoreResize.push(!0),_slice(el),ignoreResize.pop()},!funcDefined("initHoverBlock"))function initHoverBlock(target){}if(!funcDefined("setStatusButton"))function setStatusButton(){if(funcDefined("setItemButtonStatus")||(setItemButtonStatus=function(data){if(data.BASKET)for(var i in data.BASKET){var id;"number"!=typeof(id=data.BASKET[i])&&"string"!=typeof id||($(".to-cart[data-item="+id+"]").hide(),$(".counter_block[data-item="+id+"]").closest(".counter_block_inner").hide(),$(".counter_block[data-item="+id+"]").hide(),$(".in-cart[data-item="+id+"]").show(),$(".in-cart[data-item="+id+"]").closest(".button_block").addClass("wide"))}if(data.DELAY)for(var i in data.DELAY){var id;"number"!=typeof(id=data.DELAY[i])&&"string"!=typeof id||($(".wish_item.to[data-item="+id+"]").hide(),$(".wish_item.in[data-item="+id+"]").show(),$(".wish_item[data-item="+id+"]").find(".value.added").length&&($(".wish_item[data-item="+id+"]").find(".value").hide(),$(".wish_item[data-item="+id+"]").find(".value.added").show()))}if(data.SUBSCRIBE)for(var i in data.SUBSCRIBE){var id;"number"!=typeof(id=data.SUBSCRIBE[i])&&"string"!=typeof id||($(".to-subscribe[data-item="+id+"]").hide(),$(".in-subscribe[data-item="+id+"]").show())}if(data.COMPARE)for(var i in data.COMPARE){var id;"number"!=typeof(id=data.COMPARE[i])&&"string"!=typeof id||($(".compare_item.to[data-item="+id+"]").hide(),$(".compare_item.in[data-item="+id+"]").show(),$(".compare_item[data-item="+id+"]").find(".value.added").length&&($(".compare_item[data-item="+id+"]").find(".value").hide(),$(".compare_item[data-item="+id+"]").find(".value.added").show()))}}),Object.keys(arStatusBasketAspro).length)setItemButtonStatus(arStatusBasketAspro);else{if(void 0===arAsproOptions){var arAsproOptions={SITE_DIR:"/"};void 0!==$("body").data("site")&&(arAsproOptions.SITE_DIR=$("body").data("site"))}$.ajax({url:arAsproOptions.SITE_DIR+"ajax/getAjaxBasket.php",type:"POST",success:function(data){arStatusBasketAspro=data,setItemButtonStatus(arStatusBasketAspro)}})}}if(!funcDefined("onLoadjqm"))var onLoadjqm=function(name,hash,requestData,selector,requestTitle,isButton,thButton){
3199if((void 0===hash.c.noOverlay||void 0!==hash.c.noOverlay&&!hash.c.noOverlay)&&$("body").addClass("jqm-initied"),window.matchMedia("(min-width: 768px)").matches&&$("body").addClass("swipeignore")," undefined"!=typeof $(hash.t).data("ls")&&$(hash.t).data("ls")){var ls=$(hash.t).data("ls"),ls_timeout=0,v="";if($(hash.t).data("ls_timeout")&&(ls_timeout=$(hash.t).data("ls_timeout")),ls_timeout=ls_timeout?Date.now()+1e3*ls_timeout:"","undefined"!=typeof localStorage){var val=localStorage.getItem(ls);try{v=JSON.parse(val)}catch(e){v=val}null!=v&&localStorage.removeItem(ls),(v={}).VALUE="Y",v.TIMESTAMP=ls_timeout,localStorage.setItem(ls,JSON.stringify(v))}else{var val;(val=$.cookie(ls))||$.cookie(ls,"Y",{expires:ls_timeout})}var dopClasses=hash.w.find(".marketing-popup").data("classes");dopClasses&&hash.w.addClass(dopClasses)}if(hash.w.hasClass("auth_frame")&&hash.w.find(".form-control:not(.eye-password-ignore) [type=password]").each((function(item){$(this).closest(".form-control").addClass("eye-password")})),$.each($(hash.t).get(0).attributes,(function(index,attr){if(/^data\-autoload\-(.+)$/.test(attr.nodeName)){var key=attr.nodeName.match(/^data\-autoload\-(.+)$/)[1],el=$('input[data-sid="'+key.toUpperCase()+'"]');el.val(BX.util.htmlspecialcharsback($(hash.t).data("autoload-"+key))).attr("readonly","readonly"),el.closest(".form-group").addClass("input-filed"),el.attr("title",el.val())}})),hash.w.hasClass("send_gift_frame")){var imgHtml=priceHtml=propsHtml="";if($(".offers_img a").length?imgHtml=$(".offers_img a").html():$(".product-detail-gallery__container .first_sku_picture").length?imgHtml="<img src="+$(".product-detail-gallery__container link.first_sku_picture").attr("href")+" />":$(".product-detail-gallery__container").length&&(imgHtml="<img src="+$('.product-detail-gallery__container link[itemprop="image"]').attr("href")+" />"),$('.product-container *[itemprop="offers"]').length)if($(".sku-view").length)$(".prices_block .price").length&&(priceHtml=$(".prices_block .cost.prices").html().replace("id","data-id"));else{var mainContainer=$(hash.t).closest(".product-main");mainContainer.find(".prices_block .js_price_wrapper").length?mainContainer.find(".prices_block .js_price_wrapper .with_matrix").length?priceHtml='<div class="with_matrix">'+mainContainer.find(".prices_block .js_price_wrapper .with_matrix").html()+"</div>":mainContainer.find(".prices_block .with_matrix:visible").length?priceHtml='<div class="with_matrix">'+mainContainer.find(".prices_block .with_matrix").html()+"</div>":mainContainer.find(".prices_block .price_group.min").length?priceHtml='<div class="with_matrix">'+mainContainer.find(".prices_block .price_group.min").html()+"</div>":priceHtml='<div class="with_matrix">'+mainContainer.find(".prices_block .js_price_wrapper").html()+"</div>":mainContainer.find(".prices_block .with_matrix").length?priceHtml='<div class="with_matrix">'+mainContainer.find(".prices_block .with_matrix").html()+"</div>":mainContainer.find(".prices_block .price_group.min").length?priceHtml=mainContainer.find(".prices_block .price_group.min").html():mainContainer.find(".prices_block .price_matrix_wrapper").length&&(priceHtml=mainContainer.find(".prices_block .price_matrix_wrapper").html())}$(".buy_block .sku_props").length&&(propsHtml='<div class="props_item">',$(".buy_block .sku_props .bx_catalog_item_scu > div").each((function(){var title=$(this).find(".bx_item_section_name > span").html(),props="",ikSelect=$(this).find(".ik_select_link_text");if(ikSelect.length)props=ikSelect.text();else{var activeSku=$(this).find("ul li.active"),isPicture=activeSku.find(" > i");if(isPicture.length&&isPicture.attr("title")){var propTitle=isPicture.attr("title").split(":");props=propTitle=propTitle.length?propTitle[1].trim():isPicture.attr("title")}else props=activeSku.find(" > span").text()}propsHtml+='<div class="prop_item"><span>'+title+"</span></div>"})),propsHtml+="</div>"),$('<div class="custom_block"><div class="title">'+BX.message("POPUP_GIFT_TEXT")+'</div><div class="item_block"><table class="item_list"><tr><td class="image"><div>'+imgHtml+'</div></td><td class="text"><div class="name">'+$("h1").text()+"</div>"+priceHtml+propsHtml+"</td></tr></table></div></div>").prependTo(hash.w.find(".form_body"))}if("Y"==arAsproOptions.THEME.REGIONALITY_SEARCH_ROW&&(hash.w.hasClass("city_chooser_frame ")||hash.w.hasClass("city_chooser_small_frame"))&&(hash.w.addClass("small_popup_regi
3199ons"),hash.w.addClass("no_scroll")),"fast_view"==name&&$(".smart-filter-filter").length){var navButtons='<div class="navigation-wrapper-fast-view"><div class="fast-view-nav prev colored_theme_hover_bg" data-fast-nav="prev"><i class="svg left"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="6.969" viewBox="0 0 12 6.969"><path id="Rounded_Rectangle_702_copy_24" data-name="Rounded Rectangle 702 copy 24" class="cls-1" d="M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z" transform="translate(-350 -395.031)"/></svg></i></div><div class="fast-view-nav next colored_theme_hover_bg" data-fast-nav="next"><i class="svg right"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="6.969" viewBox="0 0 12 6.969"><path id="Rounded_Rectangle_702_copy_24" data-name="Rounded Rectangle 702 copy 24" class="cls-1" d="M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z" transform="translate(-350 -395.031)"/></svg></i></div></div>';hash.w.closest("#popup_iframe_wrapper").append(navButtons)}hash.w.addClass("scrollblock"),hash.w.addClass("show").css({opacity:1}),(void 0===hash.c.noOverlay||void 0!==hash.c.noOverlay&&!hash.c.noOverlay)&&($("body").css({overflow:"hidden",height:"100vh"}),hash.w.closest("#popup_iframe_wrapper").css({"z-index":3e3,display:"flex"}));var eventdata={action:"loadForm"};BX.onCustomEvent("onCompleteAction",[eventdata,$(hash.t)[0]]),void 0===requestData&&(requestData=""),void 0===selector&&(selector=!1);var width=$("."+name+"_frame").width();"order-popup-call"==name||("order-button"==name?$(".order-button_frame").find("div[product_name]").find("input").val(hash.t.title).attr("readonly","readonly").css({overflow:"hidden","text-overflow":"ellipsis"}):"basket_error"==name?($(".basket_error_frame .pop-up-title").text(requestTitle),$(".basket_error_frame .ajax_text").html(requestData),window.matchMedia("(max-width: 991px)").matches&&$("body").addClass("all_viewed"),initSelects(document),"Y"==isButton&&thButton&&$("<div class='popup_button_basket_wr'><span class='popup_button_basket big_btn button' data-item="+thButton.data("item")+"><span class='btn btn-default'>"+BX.message("ERROR_BASKET_BUTTON")+"</span></span></div>").insertAfter($(".basket_error_frame .ajax_text"))):"fast_view"===name&&initSelects(document)),$("."+name+"_frame").show()};if(!funcDefined("onHidejqm"))var onHidejqm=function(name,hash){hash.w.find(".one_click_buy_result_success").is(":visible")&&"one_click_buy_basket"==name&&(window.location.href=window.location.href),$(".xzoom-source").length&&$(".xzoom-source").remove(),$(".xzoom-preview").length&&$(".xzoom-preview").remove(),hash.w.animate({opacity:0}
3199,200,(function(){var navButtons;(hash.w.hide(),hash.w.empty(),hash.o.remove(),hash.w.removeClass("show"),$("body").css({overflow:"",height:""}),hash.w.closest("#popup_iframe_wrapper").find(".jqmOverlay").length||hash.w.closest("#popup_iframe_wrapper").css({"z-index":"",display:""}),window.matchMedia("(max-width: 991px)").matches&&$("body").removeClass("all_viewed"),$(".jqmOverlay:not(.mobp)").length&&!$(".jqmOverlay.waiting").length||$("body").removeClass("jqm-initied"),window.matchMedia("(min-width: 768px)").matches&&$("body").removeClass("swipeignore"),"fast_view"==name)&&($(".fast_view_popup").remove(),hash.w.closest("#popup_iframe_wrapper").find(".navigation-wrapper-fast-view").remove())})),window.b24form=!1};if($.fn.jqmEx=function(){var _this=$(this),name=_this.data("name");if(name.length&&"disabled"!=_this.attr("disabled")){var extClass="",paramsStr="",trigger="",arTriggerAttrs={};void 0===$.fn.jqmEx.counter?$.fn.jqmEx.counter=0:++$.fn.jqmEx.counter,$.each(_this.get(0).attributes,(function(index,attr){var attrName=attr.nodeName,attrValue=_this.attr(attrName);if("onclick"!==attrName&&(trigger+="["+attrName+'="'+attrValue+'"]',arTriggerAttrs[attrName]=attrValue),/^data\-param\
3199-(.+)$/.test(attrName)){var key=attrName.match(/^data\-param\-(.+)$/)[1];paramsStr+=key+"="+attrValue+"&"}}));var triggerAttrs=JSON.stringify(arTriggerAttrs),encTriggerAttrs=encodeURIComponent(triggerAttrs),script=arAsproOptions.SITE_DIR+"ajax/form.php";script+="auth"==name?"?"+paramsStr+"auth=Y":"?"+paramsStr+"data-trigger="+encTriggerAttrs,_this.closest("#fast_view_item").length&&(extClass="fast_view_popup");var noOverlay="Y"==_this.data("noOverlay");if(noOverlay)var frame=$('<div class="'+name+"_frame "+extClass+' jqmWindow popup" data-popup="'+$.fn.jqmEx.counter+'" data-trigger="'+encTriggerAttrs+'"></div>').appendTo("body");else var frame=$('<div class="'+name+"_frame "+extClass+' jqmWindow popup" data-popup="'+$.fn.jqmEx.counter+'" data-trigger="'+encTriggerAttrs+'"></div>').appendTo("#popup_iframe_wrapper");frame.jqm({ajax:script,trigger:trigger,noOverlay:noOverlay,onLoad:function(hash){onLoadjqm(name,hash)},onHide:function(hash){onHidejqm(name,hash)}})}},window.addEventListener("keydown",(function(e){27==e.keyCode&&($(".jqm-init.show").last().jqmHide(),$(".inline-search-block.show").length&&($(".inline-search-block").toggleClass("show"),$(".jqmOverlay.search").detach()),$(".mega_fixed_menu").fadeOut(animationTime))})),!funcDefined("scroll_block"))function scroll_block(block,clickedItem){if(block.length){if(void 0!==clickedItem&&clickedItem.length)clickedItem.trigger("click");else if($(".prices_tab").addClass("active").siblings().removeClass("active"),$(".prices_tab .opener").length&&!$(".prices_tab .opener .opened").length){var item=$(".prices_tab .opener").first();item.find(".opener_icon").addClass("opened"),item.parents("tr").addClass("nb"),item.parents("tr").next(".offer_stores").find(".stores_block_wrap").slideDown(200)}var topPos=block.offset().top,headerH=$("header").outerHeight(!0,!0);$("html,body").animate({scrollTop:topPos-88},150)}}if(!funcDefined("jqmEd"))var jqmEd=function(name,form_id,open_trigger,requestData,selector,requestTitle,isButton,thButton){return void 0===requestData&&(requestData=""),void 0===selector&&(selector=!1),$("body #popup_iframe_wrapper").find("."+name+"_frame").remove(),$("body #popup_iframe_wrapper").append('<div class="'+name+'_frame jqmWindow popup"></div>'),void 0===open_trigger?$("."+name+"_frame").jqm({trigger:"."+name+"_frame.popup",onHide:function(hash){onHidejqm(name,hash)},onLoad:function(hash){onLoadjqm(name,hash,requestData,selector)},ajax:arAsproOptions.SITE_DIR+"ajax/form.php?form_id="+form_id+(requestData.length?"&"+requestData:"")}):("enter"==name?$("."+name+"_frame").jqm({trigger:open_trigger,onHide:function(hash){onHidejqm(name,hash)},onLoad:function(hash){onLoadjqm(name,hash,requestData,selector)},ajax:arAsproOptions.SITE_DIR+"ajax/auth.php"}):"basket_error"==name?$("."+name+"_frame").jqm({trigger:open_trigger,onHide:function(hash){onHidejqm(name,hash)},onLoad:function(hash){onLoadjqm(name,hash,requestData,selector,requestTitle,isButton,thButton)},ajax:arAsproOptions.SITE_DIR+"ajax/basket_error.php"}):$("."+name+"_frame").jqm({trigger:open_trigger,onHide:function(hash){onHidejqm(name,hash)},onLoad:function(hash){onLoadjqm(name,hash,requestData,selector)},ajax:arAsproOptions.SITE_DIR+"ajax/form.php?form_id="+form_id+(requestData.length?"&"+requestData:"")}),$(open_trigger).dblclick((function(){return!1}))),!0};if(!funcDefined("replaceBasketPopup"))function replaceBasketPopup(hash){void 0!==hash&&(hash.w.hide(),hash.o.hide())}if(!funcDefined("waitLayer"))function waitLayer(delay,callback){"undefined"!=typeof dataLayer&&"function"==typeof callback?callback():setTimeout((function(){waitLayer(delay,callback)}),delay)}if(!funcDefined("checkCounters"))function checkCounters(name){return void 0!==name?"google"==name&&"Y"==arAsproOptions.COUNTERS.GOOGLE_ECOMERCE&&arAsproOptions.COUNTERS.GOOGLE_COUNTER>0||"yandex"==name&&"Y"==arAsproOptions.COUNTERS.YANDEX_ECOMERCE&&arAsproOptions.COUNTERS.YANDEX_COUNTER>0:"Y"==arAsproOptions.COUNTERS.YANDEX_ECOMERCE&&arAsproOptions.COUNTERS.YANDEX_COUNTER>0||"Y"==arAsproOptions.COUNTERS.GOOGLE_ECOMERCE&&arAsproOptions.COUNTERS.GOOGLE_COUNTER>0}if(!funcDefined("addBasketCounter"))function addBasketCounter(id){if
3199("N"!==arAsproOptions.COUNTERS.USE_BASKET_GOALS){var eventdata={goal:"goal_basket_add",params:{id:id}};BX.onCustomEvent("onCounterGoals",[eventdata])}checkCounters()&&$.ajax({url:arAsproOptions.SITE_DIR+"ajax/goals.php",dataType:"json",type:"POST",data:{ID:id},success:function(item){if(item&&item.ID){let ecommerce={items:[{item_name:item.NAME,item_id:item.ID,price:parseFloat(item.PRICE),item_brand:item.BRAND,item_category:item.CATEGORY,item_list_name:"List Results",item_list_id:item.IBLOCK_SECTION_ID,affiliation:item.SHOP_NAME,index:1,quantity:parseFloat(item.QUANTITY)}]};"v3"===arAsproOptions.COUNTERS.GA_VERSION&&(ecommerce={currencyCode:item.CURRENCY,add:{products:[{id:item.ID,name:item.NAME,price:parseFloat(item.PRICE),brand:item.BRAND,category:item.CATEGORY,quantity:parseFloat(item.QUANTITY)}]}}),waitLayer(100,(function(){dataLayer.push({ecommerce:null}),dataLayer.push({event:arAsproOptions.COUNTERS.GOOGLE_EVENTS.ADD2BASKET,currency:item.CURRENCY,value:parseFloat(item.PRICE),ecommerce:ecommerce})}))}}})}if(!funcDefined("purchaseCounter"))function purchaseCounter(order_id,type,callback){checkCounters()&&$.ajax({url:arAsproOptions.SITE_DIR+"ajax/goals.php",dataType:"json",type:"POST",data:{ORDER_ID:order_id,TYPE:type},success:function(order){var products=[];const items=[];if(order.ITEMS)for(var i in order.ITEMS)products.push({id:order.ITEMS[i].ID,sku:order.ITEMS[i].ID,name:order.ITEMS[i].NAME,price:order.ITEMS[i].PRICE,brand:order.ITEMS[i].BRAND,category:order.ITEMS[i].CATEGORY,quantity:order.ITEMS[i].QUANTITY}),items.push({item_id:order.ITEMS[i].ID,item_name:order.ITEMS[i].NAME,price:parseFloat(order.ITEMS[i].PRICE),item_brand:order.ITEMS[i].BRAND,item_category:order.ITEMS[i].CATEGORY,affiliation:order.SHOP_NAME,quantity:parseFloat(order.ITEMS[i].QUANTITY)});if(order.ID){let ecommerce={transaction_id:order.ACCOUNT_NUMBER,affiliation:order.SHOP_NAME,value:order.PRICE,tax:order.TAX_VALUE,shipping:order.PRICE_DELIVERY,currency:order.CURRENCY,items:items};"v3"===arAsproOptions.COUNTERS.GA_VERSION&&(ecommerce={purchase:{actionField:{id:order.ACCOUNT_NUMBER,shipping:order.PRICE_DELIVERY,tax:order.TAX_VALUE,list:type,revenue:order.PRICE},products:products}}),waitLayer(100,(function(){dataLayer.push({ecommerce:null}),dataLayer.push({event:arAsproOptions.COUNTERS.GOOGLE_EVENTS.PURCHASE,ecommerce:ecommerce}),void 0!==callback&&callback(ecommerce)}))}else void 0!==callback&&callback()},error:function(){void 0!==callback&&callback()}})}if(!funcDefined("viewItemCounter"))function viewItemCounter(id,price_id){checkCounters()&&$.ajax({url:arAsproOptions.SITE_DIR+"ajax/goals.php",dataType:"json",type:"POST",data:{PRODUCT_ID:id,PRICE_ID:price_id},success:function(item){if(item.ID){let ecommerce={items:[{item_name:item.NAME,item_id:item.ID,price:parseFloat(item.PRICE),item_brand:item.BRAND,item_category:item.CATEGORY,item_list_name:"List Results",item_list_id:item.IBLOCK_SECTION_ID,affiliation:item.SHOP_NAME,index:1,quantity:parseFloat(item.QUANTITY)}]};"v3"===arAsproOptions.COUNTERS.GA_VERSION&&(ecommerce={detail:{products:[{id:item.ID,name:item.NAME,price:parseFloat(item.PRICE),brand:item.BRAND,category:item.CATEGORY}]}}),waitLayer(100,(function(){dataLayer.push({ecommerce:null}),dataLayer.push({event:"view_item",currency:item.CURRENCY,value:parseFloat(item.PRICE),ecommerce:ecommerce})}))}}})}if(!funcDefined("checkoutCounter"))function checkoutCounter(step,option,callback){checkCounters("google")&&$.ajax({url:arAsproOptions.SITE_DIR+"ajax/goals.php",dataType:"json",type:"POST",data:{BASKET:"Y"},success:function(basket){var products=[];const items=[];let summ=0,currency="RUB";if(basket.ITEMS)for(var i in basket.ITEMS)products.push({id:basket.ITEMS[i].ID,name:basket.ITEMS[i].NAME,price:basket.ITEMS[i].PRICE,brand:basket.ITEMS[i].BRAND,category:basket.ITEMS[i].CATEGORY,quantity:basket.ITEMS[i].QUANTITY}),items.push({item_id:basket.ITEMS[i].ID,item_name:basket.ITEMS[i].NAME,price:parseFloat(basket.ITEMS[i].PRICE),item_brand:basket.ITEMS[i].BRAND,item_category:basket.ITEMS[i].CATEGORY,affiliation:basket.SHOP_NAME,quantity:parseFloat(basket.ITEMS[i].QUANTITY)}
3199),summ+=basket.ITEMS[i].PRICE,currency=basket.ITEMS[i].CURRENCY;if(products){let ecommerce={items:items};"v3"===arAsproOptions.COUNTERS.GA_VERSION&&(ecommerce={checkout:{actionField:{step:step,option:option},products:products}}),waitLayer(100,(function(){dataLayer.push({ecommerce:null}),dataLayer.push({event:arAsproOptions.COUNTERS.GOOGLE_EVENTS.CHECKOUT_ORDER,currency:currency,value:parseFloat(summ),ecommerce:ecommerce}),void 0!==callback&&"function"==typeof callback&&callback()}))}}})}if(!funcDefined("delFromBasketCounter"))function delFromBasketCounter(id,callback){checkCounters()&&$.ajax({url:arAsproOptions.SITE_DIR+"ajax/goals.php",dataType:"json",type:"POST",data:{ID:id},success:function(item){if(item.ID){let ecommerce={items:[{item_name:item.NAME,item_id:item.ID,price:parseFloat(item.PRICE),item_brand:item.BRAND,item_category:item.CATEGORY,affiliation:item.SHOP_NAME,item_list_name:"List Results"}]};"v3"===arAsproOptions.COUNTERS.GA_VERSION&&(ecommerce={remove:{products:[{id:item.ID,name:item.NAME,category:item.CATEGORY}]}}),waitLayer(100,(function(){dataLayer.push({ecommerce:null}),dataLayer.push({event:arAsproOptions.COUNTERS.GOOGLE_EVENTS.REMOVE_BASKET,currency:item.CURRENCY,value:parseFloat(item.PRICE),ecommerce:ecommerce}),"function"==typeof callback&&callback()}))}}})}if(!funcDefined("setHeightCompany"))function setHeightCompany(){$(".md-50.img").height($(".md-50.big").outerHeight()-35)}if(!funcDefined("initSly"))function initSly(){}if(!funcDefined("createTableCompare"))function createTableCompare(originalTable,appendDiv,cloneTable){try{var clone=originalTable.clone().removeAttr("id").addClass("clone");cloneTable.length?(cloneTable.remove(),appendDiv.html(""),appendDiv.html(clone)):appendDiv.append(clone)}catch(e){}}if(funcDefined("fillBasketPropsExt")||(fillBasketPropsExt=function(that,prop_code,basket_prop_div){var i=0,propCollection=null,foundValues=!1,basketParams={},obBasketProps=null;if(!(obBasketProps=BX(basket_prop_div))&&that.closest(".item").find(".basket_props_block").length&&"Y"!==that.data("offers")&&(obBasketProps=that.closest(".item").find(".basket_props_block")[0]),obBasketProps){if((propCollection=obBasketProps.getElementsByTagName("select"))&&propCollection.length)for(i=0;i<propCollection.length;i++)if(!propCollection[i].disabled)switch(propCollection[i].type.toLowerCase()){case"select-one":basketParams[propCollection[i].name]=propCollection[i].value,foundValues=!0}if((propCollection=obBasketProps.getElementsByTagName("input"))&&propCollection.length)for(i=0;i<propCollection.length;i++)if(!propCollection[i].disabled)switch(propCollection[i].type.toLowerCase()){case"hidden":basketParams[propCollection[i].name]=propCollection[i].value,foundValues=!0;break;case"radio":propCollection[i].checked&&(basketParams[propCollection[i].name]=propCollection[i].value,foundValues=!0)}}return foundValues||(basketParams[prop_code]=[],basketParams[prop_code][0]=0),basketParams}),funcDefined("showBasketError")||(showBasketError=function(mess,title,addButton,th,callback){var title_set=title||BX.message("ERROR_BASKET_TITLE"),isButton="N",thButton="";void 0!==typeof addButton&&(isButton="Y"),void 0!==typeof th&&(thButton=th),$("body").append("<span class='add-error-bakset' style='display:none;'></span>"),jqmEd("basket_error","error-bakset",".add-error-bakset",mess,this,title_set,isButton,thButton),$("body .add-error-bakset").click(),$("body .add-error-bakset").remove(),"function"==typeof callback&&callback()}),CheckTopVisibleMenu=function(that){var dropdownMenu=$(".dropdown-menu:visible");void 0!==that&&dropdownMenu.push(that),dropdownMenu.length&&dropdownMenu.each((function(i,el){var dropdownMenuCurrent=$(el);dropdownMenuCurrent.find("a").css("white-space",""),dropdownMenuCurrent.css("left",""),dropdownMenuCurrent.css("right",""),dropdownMenuCurrent.removeClass("toright");var dropdownMenuCurrent_left=dropdownMenuCurrent.offset().left;if(void 0!==dropdownMenuCurrent_left){var menu=dropdownMenuCurrent.parents(".mega-menu");menu.length||(menu=dropdownMenuCurrent.closest(".logo-row"));var menu_width=menu.outerWidth(),menu_left,menu_right=menu.offset().left+menu_width,isToRight=dropdownMenuCurrent.parents(".toright").length>0,parentsdropdownMenuCurrents=dropdownMenuCurrent.parents(".dropdown-menu"),isHasParentdropdownMenuCurrent=parentsdropdownMenuCurrents.length>0;if(isHasParentdropdownMenuCurrent)var parentdropdownMenuCurrent_width,parentdropdownMenuCurrent_left,parentdropdownMenuCurrent_right=parentsdropdownMenuCurrents.first().outerWidth()+parentsdropdownMenuCurrents.first().offset().left;parentdropdownMenuCurrent_right+dropdownMenuCurrent.outerWidth()>menu_right&&dropdownMenuCurrent.find("a").css("white-space","normal");var dropdownMenuCurrent_width,dropdownMenuCurrent_right=dropdownMenuCurrent_left+dropdownMenuCurrent.outerWidth();if(dropdownMenuCurrent_right>menu_right||isToRight){var addleft=0;if(addleft=menu_right-dropdownMenuCurrent_right,isHasParentdropdownMenuCurrent||isToRight)dropdownMenuCurrent.css("left","auto"),dropdownMenuCurrent.css("right","100%"),dropdownMenuCurrent.addClass("toright");else{var dropdownMenuCurrent_curLeft=parseInt(dropdownMenuCurrent.css("left"));dropdownMenuCurrent.css("left",dropdownMenuCurrent_curLeft+addleft+"px")}}}}))},!funcDefined("isRealValue"))function isRealValue(obj){return obj&&"null"!==obj&&"undefined"!==obj}if(!funcDefined("rightScroll"))function rightScroll(prop,id){var el=BX("prop_"+prop+"_"+id);if(el){var curVal=parseInt(el.style.marginLeft);curVal>
3199=0&&(el.style.marginLeft=curVal-20+"%")}}if(!funcDefined("leftScroll"))function leftScroll(prop,id){var el=BX("prop_"+prop+"_"+id);if(el){var curVal=parseInt(el.style.marginLeft);curVal<0&&(el.style.marginLeft=curVal+20+"%")}}if(funcDefined("InitOrderCustom")||(InitOrderCustom=function(){$(".ps_logo img").wrap('<div class="image"></div>'),$("#bx-soa-order .radio-inline").each((function(){"checked"==$(this).find("input").attr("checked")&&$(this).addClass("checked")})),$("#bx-soa-order .checkbox input[type=checkbox]").each((function(){"checked"==$(this).attr("checked")&&$(this).parent().addClass("checked")})),$("#bx-soa-order .bx-authform-starrequired").each((function(){var html=$(this).html();$(this).closest("label").append('<span class="bx-authform-starrequired"> '+html+"</span>"),$(this).detach()})),$(".bx_ordercart_coupon").each((function(){$(this).find(".bad").length?$(this).addClass("bad"):$(this).find(".good").length&&$(this).addClass("good")}))}),funcDefined("InitLabelAnimation")||(InitLabelAnimation=function(className){$(className).length&&($(className).find(".form-group").each((function(){$(this).find("input[type=text], textarea").length&&!$(this).find(".dropdown-block").length&&""!=$(this).find("input[type=text], textarea").val()&&$(this).addClass("value_y")})),$(document).on("click",className+" .form-group:not(.bx-soa-pp-field) label",(function(){$(this).parent().find("input, textarea").focus()})),$(document).on("focusout",className+" .form-group:not(.bx-soa-pp-field) input, "+className+" .form-group:not(.bx-soa-pp-field) textarea",(function(){var value;""==$(this).val()||$(this).closest(".form-group").find(".dropdown-block").length||$(this).closest(".form-group").find("#profile_change").length?$(this).closest(".form-group").removeClass("value_y"):$(this).closest(".form-group").addClass("value_y")})),$(document).on("focus",className+" .form-group:not(.bx-soa-pp-field) input, "+className+" .form-group:not(.bx-soa-pp-field) textarea",(function(){$(this).closest(".form-group").find(".dropdown-block").length||$(this).closest(".form-group").find("#profile_change").length||$(this).closest(".form-group").find("[name=PERSON_TYPE_OLD]").length||$(this).closest(".form-group").addClass("value_y")})))}),checkPopupWidth=function(){$(".popup.show").each((function(){var width_form=$(this).actual("width");$(this).css({"margin-left":$(window).width()>width_form?"-"+width_form/2+"px":"-"+$(window).width()/2+"px"})}))},checkCaptchaWidth=function(){$(".captcha-row").each((function(){var width=$(this).actual("width");$(this).hasClass("b")?width>320&&$(this).removeClass("b"):width<=320&&$(this).addClass("b")}))},checkFormWidth=function(){$(".form .form_left").each((function(){var form=$(this).parents(".form"),width=form.actual("width");form.hasClass("b")?width>417&&form.removeClass("b"):width<=417&&form.addClass("b")}))},checkFormControlWidth=function(){$(".form-control").each((function(){var width=$(this).actual("width"),labelWidth=$(this).find("label:not(.error) > span").actual("width"),errorWidth=$(this).find("label.error").actual("width");errorWidth>0?$(this).hasClass("h")?width>labelWidth+errorWidth+5&&$(this).removeClass("h"):width<=labelWidth+errorWidth+5&&$(this).addClass("h"):$(this).removeClass("h")}))},scrollToTop=function(){if("NONE"!==arAsproOptions.THEME.SCROLLTOTOP_TYPE){var _isScrolling=!1;$("body").append($("<a />").addClass("scroll-to-top "+arAsproOptions.THEME.SCROLLTOTOP_TYPE+" "+arAsproOptions.THEME.SCROLLTOTOP_POSITION).attr({href:"#",id:"scrollToTop"})),arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM&&$("#scrollToTop").css("bottom",+arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM+"px"),arAsproOptions.THEME.SCROLLTOTOP_POSITION_RIGHT&&$("#scrollToTop").css("right",+arAsproOptions.THEME.SCROLLTOTOP_POSITION_RIGHT+"px"),$("#scrollToTop").click((function(e){return e.preventDefault(),$("body, html").animate({scrollTop:0},500),!1})),$(window).scroll((function(){_isScrolling||(_isScrolling=!0,$(window).scrollTop()>150?($("#scrollToTop").stop(!0,!0).addClass("visible"),_isScrolling=!1):($("#scrollToTop").stop(!0,!0).removeClass("visible"),_isScrolling=!1),checkScrollToTop())}))}},checkScrollToTop=function(){if(arAsproOptions.THEME&&arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM)var bottom=+arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM;else var bottom=55;var scrollVal=$(window).scrollTop(),windowHeight=$(window).height(),footerOffset=0;$("footer").length&&(footerOffset=$("footer .footer-inner").offset().top),arAsproOptions.THEME&&"CONTENT"==arAsproOptions.THEME.SCROLLTOTOP_POSITION&&(warpperWidth=$("body > .wrapper > .wrapper_inner").width(),$("#scrollToTop").css("margin-left",Math.ceil(warpperWidth/2)+23)),scrollVal+windowHeight>footerOffset?$("#scrollToTop").css("bottom",Math.round(bottom+scrollVal+windowHeight-footerOffset)+"px"):parseInt($("#scrollToTop").css("bottom"))>bottom&&$("#scrollToTop").css("bottom",Math.round(bottom))},CheckObjectsSizes=function(){$(".container iframe,.container object,.container video").each((function(){var height_attr=$(this).attr("height"),width_attr=$(this).attr("width");height_attr&&width_attr&&$(this).css("height",$(this).outerWidth()*height_attr/width_attr)}))},!funcDefined("reloadTopBasket"))var reloadTopBasket=function reloadTopBasket(action,basketWindow,speed,delay,slideDown,item,sync){var obj={PARAMS:$("#top_basket_params").val(),ACTION:action};void 0!==item&&item&&(obj.delete_top_item="Y",obj.delete_top_item_id=item.data("id")),$.post(arAsproOptions.SITE_DIR+"ajax/show_basket_actual.php",obj,$.proxy((function(data){$(basketWindow).html(data),getActualBasket("","Compare",sync);var eventdata={action:"loadBasket"};BX.onCustomEvent("onCompleteAction",[eventdata])})))};if(CheckTabActive=function(){clicked_tab&&window.matchMedia("(min-width: 768px)").matches&&(clicked_tab--,$(".nav.nav-tabs li").each((function(){$(this).index()==clicked_tab&&$(this).addClass("active")})),$(".catalog_detail .tab-content .tab-pane:eq("+clicked_tab+")").addClass("active"),$(".catalog_detail .tab-content .tab-pane .title-tab-heading").next().removeAttr("style"),clicked_tab=0)},!funcDefined("initCountdown"))var initCountdown=function initCountdown(){$(".view_s
3199ale_block").length&&$(".view_sale_block").each((function(){var _this=$(this);if(!_this.hasClass("init-if-visible")||_this.is(":visible")){var activeTo=_this.find(".active_to").text(),dateTo=new Date(activeTo.replace(/(\d+)\.(\d+)\.(\d+)/,"$3/$2/$1"));_this.hasClass("compact")?_this.find(".countdown").countdown({until:dateTo,format:"dHMS",compact:!0,padZeroes:!0,layout:'{d<}<span class="days item">{dn}<div class="text">{dl}</div></span>{d>} <span class="hours item">{hn}<div class="text">{hl}</div></span> <span class="minutes item">{mn}<div class="text">{ml}</div></span> <span class="sec item">{sn}<div class="text">{sl}</div></span>'},$.countdown.regionalOptions.ru):_this.find(".countdown").countdown({until:dateTo,format:"dHMS",padZeroes:!0,layout:'{d<}<span class="days item">{dnn}<div class="text">{dl}</div></span>{d>} <span class="hours item">{hnn}<div class="text">{hl}</div></span> <span class="minutes item">{mnn}<div class="text">{ml}</div></span> <span class="sec item">{snn}<div class="text">{sl}</div></span>'},$.countdown.regionalOptions.ru)}}))};if(!funcDefined("initCountdownTime"))var initCountdownTime=function initCountdownTime(block,time){if(time){var dateTo=new Date(time.replace(/(\d+)\.(\d+)\.(\d+)/,"$3/$2/$1"));block.find(".countdown").countdown("destroy"),block.hasClass("compact")?block.find(".countdown").countdown({until:dateTo,format:"dHM",compact:!0,padZeroes:!0,layout:'{d<}<span class="days item">{dn}<div class="text">{dl}</div></span>{d>} <span class="hours item">{hn}<div class="text">{hl}</div></span> <span class="minutes item">{mn}<div class="text">{ml}</div></span> <span class="sec item">{sn}<div class="text">{sl}</div></span>'},$.countdown.regionalOptions.ru):block.find(".countdown").countdown({until:dateTo,format:"dHMS",padZeroes:!0,layout:'{d<}<span class="days item">{dnn}<div class="text">{dl}</div></span>{d>} <span class="hours item">{hnn}<div class="text">{hl}</div></span> <span class="minutes item">{mnn}<div class="text">{ml}</div></span> <span class="sec item">{snn}<div class="text">{sl}</div></span>'},$.countdown.regionalOptions.ru),block.find(".view_sale_block").show()}else block.find(".view_sale_block").hide()};waitCounter=function(idCounter,delay,callback){var obCounter;"object"==typeof window["yaCounter"+idCounter]?"function"==typeof callback&&callback():setTimeout((function(){waitCounter(idCounter,delay,callback)}),delay)};var isOnceInited=insertFilter=!1,animationTime=200,delayTime=200,topMenuEnterTimer=!1,previewMode=window!=window.top,isMobile=(jQuery.browser.mobile||previewMode)&&window.matchMedia("(max-width:767px)").matches||window.matchMedia("(max-width:400px)").matches;if(isMobile&&(document.documentElement.className+=" mobile"),previewMode&&(document.documentElement.className+=" previewMode"),-1!=navigator.userAgent.indexOf("Edge")&&(document.documentElement.className+=" bx-ie-edge"),!funcDefined("checkVerticalMobileFilter"))var checkVerticalMobileFilter=function checkVerticalMobileFilter(){};if(!funcDefined("oneClickBuy"))var oneClickBuy=function(elementID,iblockID,that){var name="one_click_buy",elementQuantity=1,offerProps=!1,buy_btn=$(that).closest(".buy_block").find(".to-cart"),buy_btn2=$(that).closest("tr").find(".to-cart"),buy_btn3=$(that).closest(".item").find(".to-cart");void 0!==that&&(elementQuantity=$(that).attr("data-quantity"),offerProps=$(that).attr("data-props")),elementQuantity<0&&(elementQuantity=1);var tmp_props=buy_btn.data("props")||buy_btn2.data("props")||buy_btn3.data("props"),props="",part_props="",add_props="N",fill_prop={},iblockid=buy_btn.data("iblockid"),item=buy_btn.attr("data-item");tmp_props&&(props=tmp_props.split(";")),buy_btn.data("part_props")&&(part_props=buy_btn.data("part_props")),buy_btn.data("add_props")&&(add_props=buy_btn.data("add_props")),(fill_prop=fillBasketPropsExt(buy_btn,"prop",buy_btn.data("bakset_div"))).iblockID=iblockid,fill_prop.part_props=part_props,fill_prop.add_props=add_props,fill_prop.props=JSON.stringify(props),fill_prop.item=item,fill_prop.ocb_item="Y",$(that).hasClass("clicked")||($(that).addClass("clicked"),$("body").find("."+name+"_frame").remove(),$("body").find("."+name+"_trigger").remove(),$("body #popup_iframe_wrapper").append('<div class="'+name+'_frame popup"></div>'),$("body #popup_iframe_wrapper").append('<div class="'+name+'_trigger"></div>'),$("."+name+"_frame").jqm({trigger:"."+name+"_trigger",onHide:function(hash){onHidejqm(name,hash)},toTop:!1,onLoad:function(hash){onLoadjqm(name,hash)},ajax:arAsproOptions.SITE_DIR+"ajax/one_click_buy.php?ELEMENT_ID="+elementID+"&IBLOCK_ID="+iblockID+"&ELEMENT_QUANTITY="+elementQuantity+"&OFFER_PROPS="+fill_prop.props}),$("."+name+"_trigger").click())};if(!funcDefined("oneClickBuyBasket"))var oneClickBuyBasket=function(){if(name="one_click_buy_basket",isMobile){var script=arAsproOptions.SITE_DIR+"form/";script+="?name="+name+"&form_id=ocb&path="+window.location.pathname+"&buy_basket=y",location.href=script}else $(".fast_order").hasClass("clicked")||($(".fast_order").addClass("clicked"),$("body").find("."+name+"_frame").remove(),$("body").find("."+name+"_trigger").remove(),$("body #popup_iframe_wrapper").append('<div class="'+name+'_frame popup"></div>'),$("body #popup_iframe_wrapper").append('<div class="'+name+'_trigger"></div>'),$("."+name+"_frame").jqm({trigger:"."+name+"_trigger",onHide:function(hash){onHidejqm(name,hash)},onLoad:function(hash){onLoadjqm(name,hash)},ajax:arAsproOptions.SITE_DIR+"ajax/one_click_buy_basket.php"}),$("."+name+"_trigger").click())};if($(document).on("click",".menu_top_block>li .more a",(function(){$this=$(this),$this.parents(".dropdown").first().find(">.hidden").removeClass("hidden"),$this.parent().addClass("hidden"),setTimeout((function(){$this.parent().remove()}),500)})),$(document).on("mouseenter",".menu_top_block.catalogfirst>li>.dropdown>li.full",(function(){var $submenu;$(this).find(">.dropdown").length&&topMenuEnterTimer&&(clearTimeout(topMenuEnterTimer),topMenuEnterTimer=!1)})),$(document).on("mouseenter",".menu_top_block>li:not(.full)",(function(){var $submenu=$(this).find(">.dropdown");
3199if($submenu.length&&!$submenu.hasClass("visible")){var $menu,$wrapmenu=$(this).parents(".menu").parents(".wrap_menu"),wrapMenuWidth=$wrapmenu.actual("outerWidth"),wrapMenuLeft,wrapMenuRight,left=$wrapmenu.offset().left+wrapMenuWidth-($(this).offset().left+$submenu.actual("outerWidth"));if(window.matchMedia("(min-width: 951px)").matches&&$(this).hasClass("catalog")&&($(".banner_auto").hasClass("catalog_page")||$(".banner_auto").hasClass("front_page")))return;left<0&&$submenu.css({left:left+"px"}),$submenu.stop().slideDown(animationTime,(function(){$submenu.css({height:"",overflow:"visible"})})),$(this).on("mouseleave",(function(){var leaveTimer=setTimeout((function(){$submenu.stop().slideUp(animationTime,(function(){$submenu.css({left:""})}))}),delayTime);$(this).on("mouseenter",(function(){leaveTimer&&(clearTimeout(leaveTimer),leaveTimer=!1)}))}))}})),$(document).on("mouseenter",".menu_top_block>li .dropdown>li",(function(){var $this=$(this),$submenu=$this.find(">.dropdown");if($submenu.length&&(!$this.parents(".full").length&&!$this.hasClass("full")||$this.parents(".more").length)){var $menu,$wrapmenu=$this.parents(".menu").parents(".wrap_menu"),arParentSubmenuForOpacity=[];topMenuEnterTimer=setTimeout((function(){var wrapMenuWidth=$wrapmenu.actual("outerWidth"),wrapMenuLeft=$wrapmenu.offset().left,wrapMenuRight=wrapMenuLeft+wrapMenuWidth,$parentSubmenu,bToLeft=!!$this.parent().hasClass("toleft");(bToLeft=bToLeft?$this.offset().left+$this.actual("outerWidth")-$submenu.actual("outerWidth")<wrapMenuLeft:$this.offset().left+$this.actual("outerWidth")+$submenu.actual("outerWidth")>wrapMenuRight)?$this.find(">.dropdown").addClass("toleft").show():$this.find(">.dropdown").removeClass("toleft").show();var submenuLeft=$submenu.offset().left,submenuRight=submenuLeft+$submenu.actual("outerWidth");$this.parents(".dropdown").each((function(){var $this=$(this),leftOffset=$this.offset().left,rightOffset=leftOffset+$this.actual("outerWidth");(leftOffset>=submenuLeft&&leftOffset<submenuRight-1||rightOffset>submenuLeft+1&&rightOffset<=submenuRight)&&(arParentSubmenuForOpacity.push($this),$this.find(">li>a").css({opacity:"0.1"}))}))}),delayTime),$this.unbind("mouseleave"),$this.on("mouseleave",(function(){var leaveTimer=setTimeout((function(){if($this.find(".dropdown").removeClass("toleft").hide(),arParentSubmenuForOpacity.length)for(i in arParentSubmenuForOpacity)arParentSubmenuForOpacity[i].find(">li>a").css({opacity:""})}),delayTime);$this.unbind("mouseenter"),$this.on("mouseenter",(function(){leaveTimer&&(clearTimeout(leaveTimer),leaveTimer=!1)}))}))}})),$(document).on("mouseenter",".breadcrumbs .breadcrumbs__item, .hover-block .hover-block__item",(function(){var _this=$(this),menu=_this.find("> .breadcrumbs__dropdown-wrapper, > .hover-block__item-wrapper");menu.velocity("stop").velocity("transition.slideUpIn",{duration:300,delay:100}),_this.one("mouseleave",(function(){menu.velocity("stop").velocity("fadeOut",{duration:100})}))})),$(document).on("mouseenter",".menu .mega-menu table td, .menu-row .mega-menu table td",(function(){var _this=$(this),menu=_this.find("> .wrap > .dropdown-menu");_this.hasClass("wide_menu")||(menu.show(),CheckTopVisibleMenu());var bDarkness=$(".wrapper1.dark-hover-overlay").length>0;menu.velocity("stop"),0!=menu.css("opacity")?(menu.css("opacity","1"),bDarkness&&$(".shadow-block").css("opacity","1")):menu.velocity("fadeIn",{begin:function(elements){InitMenuNavigationAim(),CheckTopVisibleMenu()},duration:150,delay:250,complete:function(){bDarkness&&($("body").addClass("menu-hovered"),$(".shadow-block").length||$('<div class="shadow-block"></div>').appendTo($("body")),$(".shadow-block").velocity("stop").velocity("fadeIn",200));var bannerMenu=$(".dropdown-menu.with_right_block .owl-carousel-hover");bannerMenu.length&&(bannerMenu.removeClass("owl-carousel-hover").addClass("owl-carousel"),setTimeout((function(){InitOwlSlider(),bannerMenu.removeClass("loader_circle")}),1))}}),_this.one("mouseleave",(function(){menu.velocity("stop").velocity("fadeOut",{duration:50,delay:300,complete:function(){bDarkness&&$(".shadow-block").velocity("stop").velocity("fadeOut",{duration:200,complete:function(){$("body").removeClass("menu-hovered")}})}})}))})),$(document).on("mouseenter",".menu-item:not(.wide_menu) .dropdown-menu .dropdown-submenu",(function(){var _this=$(this),menu=_this.find("> .dropdown-menu");menu.velocity("stop"),0!=menu.css("opacity")?menu.css("opacity","1"):menu.velocity("transition.fadeIn",{begin:function(element){$(element).css("display","block"),CheckTopVisibleMenu()},duration:300,delay:250}),_this.one("mouseleave",(function(){menu.velocity("stop").velocity("fadeOut",{duration:150,delay:300})}))})),void 0!==typeof $.Velocity&&"RegisterEffect"in $.Velocity){var effects={"transition.slideDownFullIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,"-100%"],translateZ:0}]]},"transition.slideDownFullOut":{defaultDuration:900,calls:[[{opacity:[.4,1],translateY:["-100%",0],translateZ:0}]]}};for(var effectName in effects)effects.hasOwnProperty(effectName)&&$.Velocity.RegisterEffect(effectName,effects[effectName])}getGridSize=function(counts,slider){var counts_item=1;return window.matchMedia("(min-width: 1200px)").matches&&(counts_item=counts[0],void 0!==slider.data("lg_count")&&slider.data("lg_count")&&$(".front.wide_page").length&&(counts_item=slider.data("lg_count"))),window.matchMedia("(max-width: 1200px)").matches&&(counts_item=counts[1]),window.matchMedia("(max-width: 992px)").matches&&(counts_item=counts[2]),counts[3]&&window.matchMedia("(max-width: 600px)").matches&&(counts_item=counts[3]),counts[4]&&window.matchMedia("(max-width: 400px)").matches&&(counts_item=counts[4]),counts_item}
3199,CheckFlexSlider=function(){$(".flexslider:not(.thmb)").each((function(){var slider=$(this);if(void 0!==slider.data("flexslider")&&"vars"in slider.data("flexslider")){slider.resize();var counts=slider.data("flexslider").vars.counts;if(void 0!==counts&&slider.is(":visible")){var cnt=getGridSize(counts,slider),to0;(cnt!=slider.data("flexslider").vars.minItems||cnt!=slider.data("flexslider").vars.maxItems||cnt!=slider.data("flexslider").vars.move)&&(slider.data("flexslider").vars.minItems=cnt,slider.data("flexslider").vars.maxItems=cnt,slider.data("flexslider").vars.move=cnt,slider.flexslider(0),slider.resize(),slider.resize())}}}))},$.fn.mCustomScrollbarDeferred=function(config){$(this).addClass("scroll-init"),$(this).hasClass("destroyed")||($(this).hover((function(e){var $this=$(this);$this.hasClass("mCustomScrollbar")||$(this).hasClass("destroyed")||$(this).hasClass("mobile-scroll")||$this.data("scrollTimer",setTimeout((function(){$this.mCustomScrollbar(config),$this.off("touchstart touchmove touchend mousewheel mouseenter mouseleave")}),200))}),(function(e){clearTimeout($(this).data("scrollTimer"))})),$(this).on("touchstart touchmove",(function(e){var $this=$(this);$this.hasClass("mCustomScrollbar")||$(this).hasClass("destroyed")||$(this).hasClass("mobile-scroll")||$this.mCustomScrollbar(config);var $scrollContainer=$this.find(">.mCustomScrollBox>.mCSB_container");if($scrollContainer.length){var touch=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],newTouch=new Touch({identifier:42,target:$scrollContainer[0],clientX:touch.clientX,clientY:touch.clientY,screenX:touch.screenX,screenY:touch.screenY,pageX:touch.pageX,pageY:touch.pageY,radiusX:1,radiusY:1}),newEvent=new TouchEvent(e.type,{cancelable:!0,bubbles:!1,composed:!0,touches:[newTouch],targetTouches:[newTouch],changedTouches:[newTouch]});$scrollContainer[0].dispatchEvent(newEvent)}})),$(this).on("touchend",(function(e){$(this).off("touchstart touchmove touchend mousewheel mouseenter mouseleave")})),$.event.special.mousewheel&&$(this).on("mousewheel",(function(e){var $this=$(this);$this.hasClass("mCustomScrollbar")||$(this).hasClass("destroyed")||$(this).hasClass("mobile-scroll")||($this.mCustomScrollbar(config),$this.off("touchstart touchmove touchend mousewheel mouseenter mouseleave"))})))},InitScrollBar=function(el,initOptions){var block;if((block=void 0===el?$(".srollbar-custom:not(.mobile-scroll):not(.scroll-init)"):el.filter(":not(.scroll-init)")).length){block.addClass("scroll-init");var options,defaults={mouseWheel:{scrollAmount:150,preventDefault:!0}},config=$.extend({},defaults,void 0,block.data("plugin-options"),initOptions);config.callbacks={onScroll:function(){$(this).find(".mCSB_buttonLeft").hasClass("disabled")&&$(this).find(".mCSB_buttonLeft").removeClass("disabled"),$(this).find(".mCSB_buttonRight").hasClass("disabled")&&$(this).find(".mCSB_buttonRight").removeClass("disabled")},onTotalScrollBack:function(){$(this).find(".mCSB_buttonLeft").addClass("disabled")},onTotalScroll:function(){$(this).find(".mCSB_buttonRight").addClass("disabled")},onInit:function(){$(this).find(".mCSB_buttonLeft").addClass("disabled")}},block.filter(":not(.scroll-deferred)").mCustomScrollbar(config),block.filter(".scroll-deferred").mCustomScrollbarDeferred(config)}},InitCustomScrollBar=function(el){var block;if((block=void 0===el?$(".scrollbar:not(.mobile-scroll):not(.scroll-init)"):el.filter(":not(.scroll-init)")).length){block.addClass("scroll-init");var options,defaults={effect:"fadeIn",effectTime:300,threshold:0},config=$.extend({},defaults,void 0,block.data("plugin-options"));block.filter(":not(.scroll-deferred)").mCustomScrollbar(config),block.filter(".scroll-deferred").mCustomScrollbarDeferred(config)}};const InitFancyboxThumbnailsGallery=function(instance){if($(".fancybox-thumbs")&&$(".fancybox-thumbs__list a").length>1&&!$(".fancybox-thumbs .swiper-container").length&&"function"==typeof initSwiperSlider){instance.Thumbs.$grid.find(".fancybox-thumbs__list a").each((function(i,el){$(el).css("background-image",'url("'+location.origin+encodeURI(instance.group[i].src)+'")')}));const SLIDER_RESIZE_BREAKPOINT=600,$swiperSlides=$(".fancybox-thumbs__list a"),$swiperWrapper=$(".fancybox-thumbs__list"),sliderDirection=window.innerWidth>=SLIDER_RESIZE_BREAKPOINT?"vertical":"horizontal",options={centerInsufficientSlides:!0,direction:sliderDirection,mousewheelControl:!0,setWrapperSize:!0,slidesPerView:3,spaceBetween:16,breakpoints:{400:{slidesPerView:5}}};$swiperSlides.length>5&&(options.navigation={nextEl:".fancybox-thumbs__wrapper .swiper-button-next",prevEl:".fancybox-thumbs__wrapper .swiper-button-prev"}),$(".fancybox-thumbs").wrapInner("<div class='fancybox-thumbs__wrapper'><div class='swiper-container' data-plugin-options='"+JSON.stringify(options)+"' /></div>");const $swiperContainerWrapper=$(".fancybox-thumbs__wrapper");$swiperSlides.length>5&&($swiperContainerWrapper.append("<div class='swiper-button-next'><i class='svg right'><svg xmlns='http://www.w3.org/2000/svg' width='12' height='6.969' viewBox='0 0 12 6.969'><path id='Rounded_Rectangle_702_copy_24' data-name='Rounded Rectangle 702 copy 24' class='cls-1' d='M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.99
31991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z' transform='translate(-350 -395.031)'></path></svg></i></div>"),$swiperContainerWrapper.prepend("<div class='swiper-button-prev'><i class='svg left'><svg xmlns='http://www.w3.org/2000/svg' width='12' height='6.969' viewBox='0 0 12 6.969'><path id='Rounded_Rectangle_702_copy_24' data-name='Rounded Rectangle 702 copy 24' class='cls-1' d='M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z' transform='translate(-350 -395.031)'></path></svg></i></div>")),$swiperWrapper.addClass("swiper-wrapper"),$swiperSlides.addClass("swiper-slide"),initSwiperSlider(".fancybox-thumbs .swiper-container");const swiper=$(".fancybox-thumbs .swiper-container").data("swiper");swiper.slideTo(instance.curPos,10),swiper.on("resize",(function(){window.innerWidth>=SLIDER_RESIZE_BREAKPOINT&&"horizontal"===options.direction?(options.direction="vertical",swiper.changeDirection(options.direction,!1),$swiperWrapper.css("width","auto"),swiper.update()):window.innerWidth<SLIDER_RESIZE_BREAKPOINT&&"vertical"===options.direction&&(options.direction="horizontal",swiper.changeDirection(options.direction,!1),$swiperWrapper.css("height","auto"),swiper.update())}))}};InitFancyBox=function(){"function"==typeof $.fn.fancybox&&$(".fancy").length&&$(".fancy").fancybox({padding:[40,40,64,40],openEffect:"fade",closeEffect:"fade",nextEffect:"fade",prevEffect:"fade",opacity:!0,tpl:{closeBtn:'<span title="'+BX.message("FANCY_CLOSE")+'" class="fancybox-item fancybox-close inline svg"><svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 24L24 2M2 2L24 24" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg></span>',next:'<a title="'+BX.message("FANCY_NEXT")+'" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="'+BX.message("FANCY_PREV")+'" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},btnTpl:{close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><i class="svg"><svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M2 24L24 2M2 2L24 24" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" /></svg></i></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><i class="svg left"><svg width="16" height="26" viewBox="0 0 15 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 13L0.585787 14.4142C-0.195262 13.6332 -0.195262 12.3668 0.585787 11.5858L2 13ZM11.5858 0.585786C12.3668 -0.195262 13.6332 -0.195262 14.4142 0.585786C15.1953 1.36683 15.1953 2.63317 14.4142 3.41421L11.5858 0.585786ZM14.4142 22.5858C15.1953 23.3668 15.1953 24.6332 14.4142 25.4142C13.6332 26.1953 12.3668 26.1953 11.5858 25.4142L14.4142 22.5858ZM0.585787 11.5858L11.5858 0.585786L14.4142 3.41421L3.41421 14.4142L0.585787 11.5858ZM3.41421 11.5858L14.4142 22.5858L11.5858 25.4142L0.585787 14.4142L3.41421 11.5858Z" fill="#999999"/></svg></i></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><i class="svg right"><svg width="16" height="26" viewBox="0 0 15 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 13L14.4142 14.4142C15.1953 13.6332 15.1953 12.3668 14.4142 11.5858L13 13ZM3.41421 0.585786C2.63317 -0.195262 1.36683 -0.195262 0.585786 0.585786C-0.195262 1.36683 -0.195262 2.63317 0.585786 3.41421L3.41421 0.585786ZM0.585786 22.5858C-0.195262 23.3668 -0.195262 24.6332 0.585786 25.4142C1.36683 26.1953 2.63317 26.1953 3.41421 25.4142L0.585786 22.5858ZM14.4142 11.5858L3.41421 0.585786L0.585786 3.41421L11.5858 14.4142L14.4142 11.5858ZM11.5858 11.5858L0.585786 22.5858L3.41421 25.4142L14.4142 14.4142L11.5858 11.5858Z" fill="white"/></svg></i></div></button>'},touch:"enabled",buttons:["close"],thumbs:{autoStart:!0},backFocus:!1,onActivate:function(instance){InitFancyboxThumbnailsGallery(instance)},beforeShow:function(instance,current){if($(".fancybox-thumbs .swiper-container").length){const swiper=$(".fancybox-thumbs .swiper-container").data("swiper");swiper.slideTo(current.index)}$(".cd-modal-bg").hasClass("is-visible")||BX.loadScript(arAsproOptions.SITE_TEMPLATE_PATH+"/js/aspro_animate_open_fancy.js",(function(){var scaleValue=retrieveScale($(".cd-modal-bg"));$(".cd-modal-bg").show().addClass("is-visible").one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",(function(){animateLayer($(".cd-modal-bg"),scaleValue,!0)}))}));var video_block=$(".company-block source.video-block");if(video_block.length&&"#"==video_block.attr("src")){var video_block_wrapper=video_block.closest("video"),video_block_clone=video_block_wrapper.clone();video_block_clone.find("source").attr("src",video_block_clone.find("source").data("src")),video_block.attr("src",video_block.data("src")),video_block_clone.insertAfter(video_block_wrapper),video_block_clone.siblings("video").remove()}var video_block_frame=$(".company-block #company_video_iframe");
3199if(video_block_frame.length){var data_src_iframe=video_block_frame.attr("data-src");video_block_frame.attr("src",data_src_iframe),video_block_frame.attr("allow","autoplay")}},afterShow:function(){0==$(".fancybox-overlay").css("opacity")&&setTimeout((function(){$(".fancybox-overlay").css("opacity",1),$("html").addClass("overflow_html")}),200),$(".fancybox-nav").css("opacity",0),setTimeout((function(){$(".fancybox-nav").css("opacity",1)}),150),$(".fancybox-inner #company_video").length?setTimeout((function(){$(".fancybox-wrap video").resize(),setTimeout((function(){$(".fancybox-wrap").addClass("show_video"),document.getElementById("company_video").currentTime=0,document.getElementById("company_video").play()}),300)}),150):$(".fancybox-wrap iframe").length&&$(".fancybox-inner").height("100%")},beforeClose:function(){BX.loadScript(arAsproOptions.SITE_TEMPLATE_PATH+"/js/aspro_animate_open_fancy.js",(function(){var video_block_frame;closeModal(),$(".fancybox-overlay").fadeOut(),$("#company_video").length&&(document.getElementById("company_video").currentTime=0),$("html").removeClass("overflow_html"),$(".company-block .video-block").length&&$("#company_video_iframe").attr("src","")}))},onClosed:function(){$(".fancybox-wrap #company_video").length&&document.getElementById("company_video").pause()}})},InitFancyBoxVideo=function(){"function"==typeof $.fn.fancybox&&$(".video_link").length&&$(".video_link").fancybox({type:"iframe",maxWidth:800,maxHeight:600,fitToView:!1,width:"70%",height:"70%",autoSize:!1,closeClick:!1,opacity:!0,tpl:{closeBtn:'<span title="'+BX.message("FANCY_CLOSE")+'" class="fancybox-item fancybox-close inline svg"><svg class="svg svg-close" width="14" height="14" viewBox="0 0 14 14"><path data-name="Rounded Rectangle 568 copy 16" d="M1009.4,953l5.32,5.315a0.987,0.987,0,0,1,0,1.4,1,1,0,0,1-1.41,0L1008,954.4l-5.32,5.315a0.991,0.991,0,0,1-1.4-1.4L1006.6,953l-5.32-5.315a0.991,0.991,0,0,1,1.4-1.4l5.32,5.315,5.31-5.315a1,1,0,0,1,1.41,0,0.987,0.987,0,0,1,0,1.4Z" transform="translate(-1001 -946)"></path></svg></span>',next:'<a title="'+BX.message("FANCY_NEXT")+'" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="'+BX.message("FANCY_PREV")+'" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},beforeShow:function(event){$(".cd-modal-bg").hasClass("is-visible")||BX.loadScript(arAsproOptions.SITE_TEMPLATE_PATH+"/js/aspro_animate_open_fancy.js",(function(){var scaleValue=retrieveScale($(".cd-modal-bg"));$(".cd-modal-bg").show().addClass("is-visible").one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",(function(){animateLayer($(".cd-modal-bg"),scaleValue,!0)}))}))},afterShow:function(){0==$(".fancybox-overlay").css("opacity")&&setTimeout((function(){$(".fancybox-overlay").css("opacity",1),$("html").addClass("overflow_html")}),200),$(".fancybox-nav").css("opacity",0),setTimeout((function(){$(".fancybox-nav").css("opacity",1)}),150),$(".fancybox-wrap iframe").length&&$(".fancybox-inner").height("100%")},beforeClose:function(){BX.loadScript(arAsproOptions.SITE_TEMPLATE_PATH+"/js/aspro_animate_open_fancy.js",(function(){closeModal(),$(".fancybox-overlay").fadeOut(),$("html").removeClass("overflow_html")}))}})},InitStickySideBar=function(el,container_el){var block=".sticky-sidebar",container_catalog=".wraps .wrapper_inner .container_inner .main-catalog-wrapper",container=".wraps .wrapper_inner .container_inner";void 0!==el&&(block=el),$(container_catalog).length&&(container=container_catalog),void 0!==container_el&&(container=container_el),$(block).length&&"N"!=arAsproOptions.THEME.STICKY_SIDEBAR&&(void 0!==window.stickySidebar&&window.stickySidebar.destroy(),window.stickySidebar=ne
3199w StickySidebar(block,{topSpacing:60,bottomSpacing:20,containerSelector:container,resizeSensor:!0,innerWrapperSelector:".sticky-sidebar__inner"}),$(".sticky-sidebar .sticky-sidebar__inner .banner img").length&&$(".sticky-sidebar .sticky-sidebar__inner .banner img").load((function(){void 0!==window.stickySidebar&&window.stickySidebar.updateSticky()})))},InitOwlSlider=function(){"function"==typeof $.fn.owlCarousel&&$(".owl-carousel:not(.owl-loaded):not(.appear-block)").each((function(){var slider=$(this),options,svg='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6.969" viewBox="0 0 12 6.969"><path id="Rounded_Rectangle_702_copy_24" data-name="Rounded Rectangle 702 copy 24" class="cls-1" d="M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z" transform="translate(-350 -395.031)"/></svg>',defaults={navText:['<i class="svg left colored_theme_hover_text">'+svg+"</i>",'<i class="svg right colored_theme_hover_text">'+svg+"</i>"]},config=$.extend({},defaults,void 0,slider.data("plugin-options"));if(slider.on("initialized.owl.carousel",(function(event){var eventdata={slider:event};BX.onCustomEvent("onSliderInitialized",[eventdata]),$(event.target).removeClass("loading-state"),$(event.target).find(".owl-item:first").addClass("current"),$(event.target).hasClass("catalog_block")&&"function"==typeof sliceItemBlockSlide&&sliceItemBlockSlide(),void 0!==window.stickySidebar&&window.stickySidebar.updateSticky()})),slider.owlCarousel(config),slider.on("change.owl.carousel",(function(event){var eventdata={slider:event};BX.onCustomEvent("onSlideChange",[eventdata])})),slider.on("resized.owl.carousel",(function(event){"function"==typeof sliceItemBlockSlide&&sliceItemBlockSlide({resize:!1})})),slider.on("changed.owl.carousel",(function(event){var eventdata={slider:event};if(BX.onCustomEvent("onSlideChanged",[eventdata]),$(event.target).data("pluginOptions")&&("index"in $(event.target).data("pluginOptions")&&$(".switch-item-block").length&&$(".switch-item-block__count-wrapper--big .switch-item-block__count-value").text(event.item.index+1+"/"+event.item.count),"relatedTo"in $(event.target).data("pluginOptions"))){var relatedClass=$(event.target).data("pluginOptions").relatedTo,relatedBlock=$(relatedClass);if(relatedBlock.length&&$(event.target).data("owl.carousel")){if($(event.target).data("owl.carousel").loop){var count=event.item.count-1,current;(current=Math.round(event.item.index-event.item.count/2-.5))<0&&(current=count),current>count&&(current=0)}else var current=event.item.index;relatedBlock.find(".owl-item").removeClass("current").eq(current).addClass("current");var onscreen=relatedBlock.find(".owl-item.active").length-1,start=relatedBlock.find(".owl-item.active").first().index(),end;current>relatedBlock.find(".owl-item.active").last().index()&&relatedBlock.data("owl.carousel").to(current,100,!0),current<start&&relatedBlock.data("owl.carousel").to(current-onscreen,100,!0)}}})),slider.on("translated.owl.carousel",(function(event){})),"clickTo"in config){var relatedClass=config.clickTo,magnifier="magnifier"in config;slider.on("click",".owl-item",(function(e){e.preventDefault();var _this=$(this),number=_this.index();if(magnifier){const $parent=$(relatedClass).closest(".product-container");if($parent.find(".zoom_picture").length){const $zoomImg=$parent.find(".zoom_picture");$zoomImg.attr("data-large",_this.find(".product-detail-gallery__item").data("big")),$zoomImg.attr("xoriginal",_this.find(".product-detail-gallery__item").data("big")),$zoomImg.attr("src",_this.find(".product-detail-gallery__item img").attr("src")),$parent.find(".product-detail-gallery__link").attr("href",_this.find(".product-detail-gallery__item img").attr("src"))}_this.siblings("").removeClass("current"),_this.addClass("current")}else $(relatedClass).data("owl.carousel").to(number,300,!0)}))}}))},InitFlexSlider=function(){"function"==typeof $.fn.flexslider&&$(".flexslider:not(.thmb):not(.flexslider-init):not(.appear-block)").each((function(){var slider=$(this),options,defaults={animationLoop:!1,controlNav:!1,keyboard:!1,pauseOnAction:!1,pauseInvisible:!1,directionNav:!0,useCSS:!1,animation:"slide"},config=$.extend({},defaults,void 0,slider.data("plugin-options"));!slider.parent().hasClass("top_slider_wrapp")&&slider.is(":visible")&&(void 0!==config.counts&&"vertical"!==config.direction&&(config.maxItems=getGridSize(config.counts,slider),config.minItems=getGridSize(config.counts,slider),config.itemWidth=200),void 0===config.move&&(config.move=1),config.start=function(slider){var eventdata={slider:slider};BX.onCustomEvent("onSlideInit",[eventdata])},config.after=function(slider){var eventdata={slider:slider};BX.onCustomEvent("onSlideComplete",[eventdata])},config.end=function(slider){var eventdata={slider:slider};BX.onCustomEvent("onSlideEnd",[eventdata])},slider.flexslider(config).addClass("flexslider-init"),config.controlNav&&slider.addClass("flexslider-control-nav"),config.directionNav&&slider.addClass("flexslider-direction-nav"))}))},InitFlexSliderByClass=function($class){if(!$class.hasClass("flexslider-init")){var slider=$class,options,defaults={animationLoop:!1,controlNav:!1,keyboard:!1,pauseOnAction:!1,pauseInvisible:!1,directionNav:!0,useCSS:!1,animation:"slide"},config=$.extend({},defaults,void 0,slider.data("plugin-options"));!slider.parent().hasClass("top_slider_wrapp")&&slider.is(":visible")&&(void 0!==config.counts&&"vertical"!==config.direction&&(config.maxItems=getGridSize(config.counts,slider),config.minItems=getGridSize(config.counts,slider),config.itemWidth=200),void 0===config.move&&(config.move=1),config.start=function(slider){var eventdata={slider:slider};BX.onCustomEvent("onSlideInit",[eventdata])},config.after=function(slider){var eventdata={slider:slider};BX.onCustomEvent("onSlideComplete",[eventdata])},config.end=function(slider){var eventdata={slider:slider};BX.onCustomEvent("onSlideEnd",[eventdata])},slider.flexslider(config).addClass("flexslider-init"),config.controlNav&&slider.addClass("flexslider-control-nav"),config.directionNav&&slider.addClass("flexslider-direction-nav"))}},inIframe=function(){try{return window.self!==window.top}catch(e){return!0}},InitZoomPict=function(el){const zoomer=void 0!==el?el:$(".zoom_picture");
3199if(zoomer.length){var options;const defaults={title:!0,scroll:!1,Xoffset:15,tint:"#333",defaultScale:-1},config=$.extend({},defaults,void 0,zoomer.data("plugin-options"));zoomer.xzoom(config);const zoomerEventsListeners=$._data(zoomer.get(0),"events");zoomerEventsListeners.mouseout||zoomerEventsListeners.load||(zoomer.on("mouseleave",(function(){zoomer.data("xzoom").movezoom})),zoomer.on("load",(function(){const zoomerParentWidth=zoomer.parent().width(),zoomerHeight=zoomer.height(),zoomerWidth=zoomer.width(),sizeMultiplier=1.5,zoomWidth=zoomerWidth<zoomerParentWidth/2&&zoomerHeight>zoomerWidth?1.5*zoomerWidth:"auto";zoomer.data("xzoom").destroy(),zoomer.removeData("xzoom"),zoomer.width("auto"),config.zoomWidth=zoomWidth,zoomer.xzoom(config)})))}};var arBasketAsproCounters=arStatusBasketAspro=arBasketPrices={};if(SetActualBasketFlyCounters=function(sync){1==arBasketAsproCounters.DEFAULT?$.ajax({url:arAsproOptions.SITE_DIR+"ajax/basket_fly.php",type:"post",success:function(html){$("#basket_line .basket_fly").removeClass("loaded").html(html),void 0!==sync&&$.ajax({type:"GET",url:arAsproOptions.SITE_DIR+"ajax/actualBasket.php",success:function(data){$(".js_ajax").length||$("body").append('<div class="js_ajax"></div>'),$(".js_ajax").html(data),setBasketStatusBtn(!0)}})}}):($(".basket_fly .opener .basket_count .count").attr("class","count"+(arBasketAsproCounters.READY.COUNT>0?"":" empty_items")).find(".items span").text(arBasketAsproCounters.READY.COUNT),$(".basket_fly .opener .basket_count + a").attr("href",arBasketAsproCounters.READY.HREF),$(".basket_fly .opener .basket_count").attr("title",$("<div/>").html(arBasketAsproCounters.READY.TITLE).text()).attr("class","colored_theme_hover_text basket_count small clicked"+(arBasketAsproCounters.READY.COUNT>0?"":" empty")),$(".basket_fly .opener .wish_count .count").attr("class","count"+(arBasketAsproCounters.DELAY.COUNT>0?"":" empty_items")).find(".items span").text(arBasketAsproCounters.DELAY.COUNT),$(".basket_fly .opener .wish_count + a").attr("href",arBasketAsproCounters.DELAY.HREF),$(".basket_fly .opener .wish_count").attr("title",$("<div/>").html(arBasketAsproCounters.DELAY.TITLE).text()).attr("class","colored_theme_hover_text wish_count small clicked"+(arBasketAsproCounters.DELAY.COUNT>0?"":" empty")),$(".basket_fly .opener .compare_count .wraps_icon_block").attr("class","wraps_icon_block compare"+(arBasketAsproCounters.COMPARE.COUNT>0?"":" empty_block")),$(".basket_fly .opener .compare_count .count").attr("class","count"+(arBasketAsproCounters.COMPARE.COUNT>0?"":" empty_items")).find(".items span").text(arBasketAsproCounters.COMPARE.COUNT),$(".basket_fly .opener .compare_count + a").attr("href",arBasketAsproCounters.COMPARE.HREF),updateBottomIconsPanel(arBasketAsproCounters))},CheckHeaderFixed=function(){var header=$("header, body.simple_basket_mode #header").first(),header_fixed=$("#headerfixed, body.simple_basket_mode #header"),header_simple=$("body.simple_basket_mode #header");if(header_fixed.length&&header.length){var isHeaderFixed=!1,isTabsFixed=!1,headerCanFix=!0,headerFixedHeight=header_fixed.actual("outerHeight"),headerNormalHeight=header.actual("outerHeight"),headerDiffHeight=headerNormalHeight-headerFixedHeight,mobileBtnMenu=$(".btn.btn-responsive-nav"),headerTop=$("#panel:visible").actual("outerHeight"),topBlock=$(".TOP_HEADER").first(),$headerFixedNlo=header_fixed.find("[data-nlo]"),isNloLoaded=!$headerFixedNlo.length,OnHeaderFixedScrollHandler;headerDiffHeight<=0&&(headerDiffHeight=0),topBlock.length&&(headerTop+=topBlock.actual("outerHeight")),$(window).scroll(OnHeaderFixedScrollHandler=function(){var tabs_fixed=$(".product-item-detail-tabs-container-fixed");if(window.matchMedia("(min-width:992px)").matches){var scrollTop=$(window).scrollTop(),current_is=$(".search-wrapper .search-input:visible"),tabs=$(".ordered-block .nav.nav-tabs"),headerCanFix=!mobileBtnMenu.is(":visible");if(isHeaderFixed||headerCanFix&&scrollTop>headerNormalHeight+headerTop&&(isNloLoaded?(isHeaderFixed=!0,header_simple.length&&(headerSimpleHeight=header_simple.actual("outerHeight"),header_simple.closest(".header_wrap").css({"margin-top":headerSimpleHeight})),header_fixed.addClass("fixed"),$("nav.mega-menu.sliced.initied").removeClass("initied"),CheckTopMenuDotted()):$headerFixedNlo.hasClass("nlo-loadings")||($headerFixedNlo.addClass("nlo-loadings"),setTimeout((function(){$.ajax({data:{nlo:$headerFixedNlo.attr("data-nlo")},success:function(response){pauseYmObserver(),isNloLoaded=!0,$headerFixedNlo[0].insertAdjacentHTML("beforebegin",$.trim(response)),$headerFixedNlo.remove(),InitMenuNavigationAim(),OnHeaderFixedScrollHandler(),setTimeout(resumeYmObserver,400)},error:function(){$headerFixedNlo.removeClass("nlo-loadings")}
3199})}),300))),!isHeaderFixed&&headerCanFix||(!headerCanFix||scrollTop<=headerDiffHeight+headerTop)&&(isHeaderFixed=!1,header_fixed.removeClass("fixed"),header_simple.length&&header_simple.closest(".header_wrap").css({"margin-top":""})),tabs_fixed.length&&tabs.length){var tabs_offset=$(".ordered-block .nav.nav-tabs").offset();scrollTop+headerFixedHeight>tabs_offset.top?(tabs_fixed.css({top:header_fixed.actual("outerHeight")}),tabs_fixed.addClass("fixed"),header_fixed.addClass("tabs-fixed")):tabs_fixed.hasClass("fixed")&&(tabs_fixed.removeAttr("style"),tabs_fixed.removeClass("fixed"),header_fixed.removeClass("tabs-fixed"))}}})}var headerSimple=$("body.simple_basket_mode .wrapper1.mfixed_Y #header"),mfixed=headerSimple.length?headerSimple:$(".wrapper1.mfixed_Y #mobileheader");if(mfixed.length&&isMobile){var isMHeaderFixed=!1,mheaderCanFix=!0,mheaderFixedHeight=mfixed.actual("outerHeight"),mheaderTop=$("#panel:visible").actual("outerHeight"),mHeaderScrollTop=$(".wrapper1").hasClass("mfixed_view_scroll_top");$(window).scroll((function(){var scrollTop=$(window).scrollTop();window.matchMedia("(max-width:991px)").matches?mHeaderScrollTop?(scrollTop>startScroll?$("#mobilePhone.show").length||(mfixed.removeClass("fixed"),headerSimple.length&&headerSimple.closest(".header_wrap").css({"margin-top":""})):scrollTop>mheaderFixedHeight+mheaderTop?(mfixed.addClass("fixed"),headerSimple.length&&headerSimple.closest(".header_wrap").css({"margin-top":mheaderFixedHeight})):scrollTop<=mheaderFixedHeight+mheaderTop&&(mfixed.removeClass("fixed"),headerSimple.length&&headerSimple.closest(".header_wrap").css({"margin-top":""})),startScroll=scrollTop):isMHeaderFixed?isMHeaderFixed&&scrollTop<=mheaderFixedHeight+mheaderTop&&(isMHeaderFixed=!1,mfixed.removeClass("fixed"),headerSimple.length&&headerSimple.closest(".header_wrap").css({"margin-top":""})):scrollTop>mheaderFixedHeight+mheaderTop&&(isMHeaderFixed=!0,mfixed.addClass("fixed"),headerSimple.length&&headerSimple.closest(".header_wrap").css({"margin-top":mheaderFixedHeight})):(mfixed.removeClass("fixed"),headerSimple.length&&headerSimple.closest(".header_wrap").css({"margin-top":""}))}))}},CheckHeaderFixedMenu=function(){if(arAsproOptions.THEME&&2==arAsproOptions.THEME.HEADER_FIXED&&$("#headerfixed .js-nav").length&&window.matchMedia("(min-width: 992px)").matches){$("#headerfixed .js-nav").css("width","0");var all_width=0,cont_width=$("#headerfixed .maxwidth-theme").actual("width"),padding_menu=$("#headerfixed .logo-row.v2 .menu-block").actual("outerWidth")-$("#headerfixed .logo-row.v2 .menu-block").actual("width");$("#headerfixed .logo-row.v2 > .inner-table-block").each((function(){$(this).hasClass("menu-block")||(all_width+=$(this).actual("outerWidth"))})),$("#headerfixed .js-nav").width(cont_width-all_width-padding_menu)}},CheckSearchWidth=function(){if($(".logo_and_menu-row .search_wrap").length){var searchPosition=$(".logo_and_menu-row .search_wrap").position().left,maxWidth=$(".logo_and_menu-row .maxwidth-theme").width()-2;width=0,$(".logo_and_menu-row .subtop .search_wrap").length?(maxWidth=$(".logo_and_menu-row .subtop").width()-2,$(".logo_and_menu-row .subtop > .row >div >div").each((function(){if(!$(this).hasClass("search_wrap")){var elementWidth=$(this).outerWidth();$(this).is(":visible")&&$(this).height()||(elementWidth=0),width=width?width-elementWidth:maxWidth-elementWidth}})).promise().done((function(){$(".logo_and_menu-row .search_wrap.wide_search").length?$(".logo_and_menu-row .search_wrap .search-block").outerWidth(width):$(".logo_and_menu-row .search_wrap").outerWidth(width),$(".logo_and_menu-row .search_wrap").css({opacity:1,visibility:"visible"})}))):$(".logo_and_menu-row .subbottom .search_wrap").length?(maxWidth=$(".logo_and_menu-row .subbottom").width()-2,$(".logo_and_menu-row .subbottom >div").each((function(){if(!$(this).hasClass("search_wrap")){var elementWidth=$(this).outerWidth();$(this).is(":visible")&&$(this).height()||(elementWidth=0),width=width?width-elementWidth:maxWidth-elementWidth}})).promise().done((function(){$(".logo_and_menu-row .search_wrap.wide_search").length?$(".logo_and_menu-row .search_wrap .search-block").outerWidth(width):$(".logo_and_menu-row .search_wrap").outerWidth(width),$(".logo_and_menu-row .search_wrap").css({opacity:1,visibility:"visible"})}))):$(".logo_and_menu-row .maxwidth-theme > .row >div >div").each((function(){if(!$(this).hasClass("search_wrap")){var elementWidth=$(this).outerWidth();$(this).is(":visible")&&$(this).height()||(elementWidth=0),width=width?width-elementWidth:maxWidth-elementWidth}})).promise().done((function(){$(".logo_and_menu-row .search_wrap.wide_search").length?$(".logo_and_menu-row .search_wrap .search-block").outerWidth(width):$(".logo_and_menu-row .search_wrap").outerWidth(width),$(".logo_and_menu-row .search_wrap").css({opacity:1,visibility:"visible"})}))}},lazyLoadPagenBlock=function(){setTimeout((function(){$(".with-load-block .ajax_load_btn:not
3199(.appear-block)").length&&$(".with-load-block .ajax_load_btn:not(.appear-block)").appear((function(){var $this;$(this).addClass("appear-block").trigger("click")}),{accX:0,accY:200})}),200)},scrollPreviewBlock=function(){if(void 0!==$.cookie("scroll_block")&&$.cookie("scroll_block")){var scroll_block=$($.cookie("scroll_block"));scroll_block.length&&$("body, html").animate({scrollTop:scroll_block.offset().top},500),$.cookie("scroll_block",null)}},scrollToBlock=function(block){if($(block).length){var offset=$(block).offset().top;void 0!==$(block).data("toggle")&&$(block).click(),void 0!==$(block).data("offset")&&(offset+=$(block).data("offset")),$("body, html").animate({scrollTop:offset},500)}},checkMenuLines=function(){if($(".front_page .menu-row .left_border").length||$(".front_page .menu-row .right_border").length){var positionMenu=$(".centered .menu-row .mega-menu table").length?$(".centered .menu-row .mega-menu table").offset().left:0,varFixLineWidth=$("body").hasClass("with_decorate")&&window.matchMedia("(min-width: 1100px)").matches?126:7;$(".menu-row .left_border, .menu-row .right_border").css("width",positionMenu-varFixLineWidth)}},SetFixedAskBlock=function(){if($(".ask_a_question_wrapper").length){var offset=$(".ask_a_question_wrapper").offset(),footer_offset=0,block=$(".ask_a_question_wrapper").find(".ask_a_question"),block_offset=BX.pos(block[0]),block_height=block_offset.bottom-block_offset.top,diff_top_scroll=$("#headerfixed").height()+20;if($("footer").length&&(footer_offset=$("footer").offset().top),$(".banner.CONTENT_BOTTOM").length&&(footer_offset=$(".banner.CONTENT_BOTTOM").offset().top),block_height+diff_top_scroll+documentScrollTopLast+130>footer_offset)block.removeClass("fixed").css({top:"auto",width:"auto",bottom:0}),block.parent().css("position","static"),block.parent().parent().css("position","static");else if(block.parent().removeAttr("style"),block.parent().parent().removeAttr("style"),documentScrollTopLast+diff_top_scroll>offset.top){var fixed_width=$(".fixed_block_fix").width();block.addClass("fixed").css({top:diff_top_scroll,bottom:"auto"}),fixed_width&&block.css({width:$(".fixed_block_fix").width()})}else block.removeClass("fixed").css({top:0,width:"auto"})}},MegaMenuFixed=function(){var animationTime=150,$megaFixedNlo=$(".mega_fixed_menu").find("[data-nlo]");$("header .burger, #headerfixed .burger").on("click",(function(){$megaFixedNlo.length&&($megaFixedNlo.hasClass("nlo-loadings")||($megaFixedNlo.addClass("nlo-loadings"),setTimeout((function(){$.ajax({data:{nlo:$megaFixedNlo.attr("data-nlo")},success:function(response){$megaFixedNlo[0].insertAdjacentHTML("beforebegin",$.trim(response)),$megaFixedNlo.remove()},error:function(){$megaFixedNlo.removeClass("nlo-loadings")}})}),300))),$(".mega_fixed_menu").fadeIn(150)})),$(".mega_fixed_menu .svg.svg-close").on("click",(function(){$(this).closest(".mega_fixed_menu").fadeOut(150)})),$(".mega_fixed_menu .dropdown-menu .arrow").on("click",(function(e){e.preventDefault(),e.stopPropagation(),$(this).closest(".dropdown-submenu").find(".dropdown-menu").slideToggle(150),$(this).closest(".dropdown-submenu").addClass("opened")}))},CheckPopupTop=function(){},AjaxClickLink=function(e){var _this="",container=$(".js-load-wrapper"),container_inner=$(".js-load-wrapper").find(".ajax_load"),dopAction="";if(url="","preventDefault"in e?(e.preventDefault(),_this=$(e.target).hasClass("js-load-link")?$(e.target):$(e.target).closest(".js-load-link")):(_this=$(e),dopAction="Y"),container.length){var objUrl=parseUrlQuery(),obGetData={ajax_get_filter:"Y",control_ajax:"Y",bitrix_include_areas:"N"};"clear_cache"in objUrl&&"Y"==objUrl.clear_cache&&(obGetData.clear_cache="Y"),container_inner.length?container_inner.addClass("loading-state"):container.addClass("loading-state"),_this.data("url")&&(url=_this.data("url")),_this.data("click_block")&&$(_this.data("click_block")).length&&$(_this.data("click_block")).data("url")&&(url=$(_this.data("click_block")).data("url")),dopAction&&(BX.PopupWindowManager.getCurrentPopup().close(),$(".bx_filter_select_popup ul li .sort_btn").removeClass("current"),_this.addClass("current"),_this.closest(".bx_filter_block").find(".bx_filter_select_text").text(_this.text())),$(".bx_filter .bx_sort_filter .bx_filter_select_text").text(_this.text()),$(".bx_filter .bx_sort_filter .bx_filter_select_popup ul li span.current").removeClass("current"),$(".bx_filter .bx_sort_filter .bx_filter_select_popup ul li").eq(_this.parent().index()).find("span").addClass("current"),$.ajax({url:url,data:obGetData,success:function(html){container.html(html),container_inner.length?container_inner.removeClass("loading-state"):container.removeClass("loading-state"),initAnimateLoad();var eventdata={action:"jsLoadBlock"};BX.onCustomEvent("onCompleteAction",[eventdata,_this]),BX.onCustomEvent("onHeaderProgressBarChange",[{}
3199]),initSelects(document),InitCustomScrollBar(),InitScrollBar(),void 0!==window.FilterHelper&&(FilterHelper.resultDiv=$("#filter-helper"),FilterHelper.show())}})}},initCalculatePreview=function(){$(".calculate-delivery.with_preview:not(.inited)").each((function(){var $this=$(this),$calculateSpan=$this.find("span[data-event=jqm]"),$preview=$this.find(".calculate-delivery-preview");$this.addClass("inited"),$this.appear((function(){if($calculateSpan.length){void 0===window["calculate-delivery-preview-index"]?window["calculate-delivery-preview-index"]=1001:++window["calculate-delivery-preview-index"];var productId=1*$calculateSpan.attr("data-param-product_id"),quantity=1*$calculateSpan.attr("data-param-quantity");if(productId>0){var areaIndexSended=window["calculate-delivery-preview-index"];$calculateSpan.data({areaIndex:areaIndexSended}),$.ajax({url:arAsproOptions.SITE_DIR+"ajax/delivery.php",type:"POST",data:{is_preview:"Y",index:areaIndexSended,product_id:productId,quantity:quantity},beforeSend:function(){$this.addClass("loadings")}
3199,success:function(response){var areaIndex=$calculateSpan.data("areaIndex");void 0!==areaIndex&&areaIndex==areaIndexSended&&($calculateSpan.hide(),$preview.html(response),$preview.find(".catalog-delivery-preview").length||($preview.empty(),$calculateSpan.show()))},error:function(xhr,ajaxOptions,thrownError){},complete:function(){var areaIndex=$calculateSpan.data("areaIndex");void 0!==areaIndex&&areaIndex==areaIndexSended&&$this.removeClass("loadings")}})}}}),{accX:0,accY:0})}))},!funcDefined("setPriceItem"))var setPriceItem=function setPriceItem(main_block,quantity,rewrite_price,check_quantity,is_sku,show_percent,percent){var old_quantity=main_block.find(".to-cart").attr("data-ratio"),value=void 0!==rewrite_price&&rewrite_price?rewrite_price:main_block.find(".to-cart").attr("data-value"),currency=main_block.find(".to-cart").attr("data-currency"),total_block='<div class="total_summ" style="display:none;"><div>'+BX.message("TOTAL_SUMM_ITEM")+"<span></span></div></div>",price_block=main_block.find(".cost.prices"),use_percent=void 0!==show_percent&&"Y"==show_percent,percent_number=void 0!==percent&&percent,sku_checked=main_block.find(".has_offer_prop").length?"Y":"N",check=void 0!==check_quantity&&check_quantity;main_block.find(".counter_wrapp + .wrapp-one-click").length?main_block.find(".wrapp-one-click .total_summ").length||is_sku||$(total_block).appendTo(main_block.find(".counter_wrapp + .wrapp-one-click")):main_block.find(".buy_block").length?main_block.find(".buy_block .total_summ").length||is_sku||$(total_block).appendTo(main_block.find(".buy_block")):main_block.find(".counter_wrapp").length&&(main_block.find(".counter_wrapp .total_summ").length||is_sku||$(total_block).appendTo(main_block.find(".counter_wrapp:first"))),main_block.find(".total_summ").length&&(value&¤cy?1==quantity&&old_quantity==quantity||void 0!==is_sku&&is_sku&&!check?main_block.find(".total_summ").slideUp(50):(main_block.find(".total_summ span").html(BX.Currency.currencyFormat(value*quantity,currency,!0)),main_block.find(".total_summ").is(":hidden")&&main_block.find(".total_summ").slideDown(100)):main_block.find(".total_summ").slideUp(100))};if(!funcDefined("getCurrentPrice"))var getCurrentPrice=function getCurrentPrice(price,currency,print_price){var val="",format_value=BX.Currency.currencyFormat(price,currency);return print_price.indexOf(format_value)>=0?(val=print_price.replace(format_value,'<span class="price_value">'+format_value+'</span><span class="price_currency">'),val+="</span>"):val=print_price,val};if(!funcDefined("initAnimateLoad"))var initAnimateLoad=function initAnimateLoad(){$(".animate-load").click((function(){jQuery.browser.mobile||$(this).parent().addClass("loadings")}
3199))};if(!funcDefined("showBasketShareBtn"))var showBasketShareBtn=function(){if("Y"===arAsproOptions.THEME.SHOW_SHARE_BASKET&&!document.querySelector(".basket-checkout-block-btns")){var checkout=document.querySelector(".basket-checkout-section-inner");if(checkout){var btns=BX.create({tag:"div",attrs:{class:"basket-checkout-block basket-checkout-block-btns"},html:'<div class="basket-checkout-block-btns-wrap"></div>'});BX.insertAfter(btns,BX.lastChild(checkout));var btnsWrap=btns.querySelector(".basket-checkout-block-btns-wrap"),btnCheckout=checkout.querySelector(".basket-checkout-block-btn");btnCheckout&&btnsWrap.appendChild(btnCheckout);var btnFastOrder=checkout.querySelector(".fastorder");if(btnFastOrder&&btnsWrap.appendChild(btnFastOrder),$(".basket-btn-checkout").length&&!$(".basket-btn-checkout").hasClass("disabled")){var btnShareBasket=BX.create({tag:"div",attrs:{class:"basket-checkout-block basket-checkout-block-share colored_theme_hover_bg-block",title:arAsproOptions.THEME.EXPRESSION_FOR_SHARE_BASKET},html:'<span class="animate-load" data-event="jqm" data-param-form_id="share_basket" data-name="share_basket"><i class="svg colored_theme_hover_bg-el-svg"><svg class="svg svg-share" xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16"><path data-name="Ellipse 223 copy 8" d="M1613,203a2.967,2.967,0,0,1-1.86-.661l-3.22,2.01a2.689,2.689,0,0,1,0,1.3l3.22,2.01A2.961,2.961,0,0,1,1613,207a3,3,0,1,1-3,3,3.47,3.47,0,0,1,.07-0.651l-3.21-2.01a3,3,0,1,1,0-4.678l3.21-2.01A3.472,3.472,0,0,1,1610,200,3,3,0,1,1,1613,203Zm0,8a1,1,0,1,0-1-1A1,1,0,0,0,1613,211Zm-8-7a1,1,0,1,0,1,1A1,1,0,0,0,1605,204Zm8-5a1,1,0,1,0,1,1A1,1,0,0,0,1613,199Z" transform="translate(-1602 -197)" fill="#B8B8B8"></path></svg></i><span class="title">'+arAsproOptions.THEME.EXPRESSION_FOR_SHARE_BASKET+"</span></span>"});btnsWrap.appendChild(btnShareBasket),initAnimateLoad()}}}};if(!funcDefined("showBasketHeadingBtn"))var showBasketHeadingBtn=function(){if(document.querySelector(".page-top h1")){var topicHeading=document.querySelector(".page-top .topic .topic__heading");if(topicHeading){if("Y"===arAsproOptions.THEME.SHOW_BASKET_PRINT&&!document.querySelector(".btn_basket_heading--print")){var btnPrintBasket=BX.create({tag:"div",attrs:{class:"btn_basket_heading btn_basket_heading--print print-link colored_theme_hover_bg-block",title:arAsproOptions.THEME.EXPRESSION_FOR_PRINT_PAGE},html:'<i class="svg colored_theme_hover_bg-el-svg"><svg class="svg svg-print" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path id="Rectangle_665_copy_4" data-name="Rectangle 665 copy 4" class="cls-print" d="M1570,210h-2v3h-8v-3h-2a2,2,0,0,1-2-2v-5a2,2,0,0,1,2-2h2v-4h8v4h2a2,2,0,0,1,2,2v5A2,2,0,0,1,1570,210Zm-8,1h4v-4h-4v4Zm4-12h-4v2h4v-2Zm4,4h-12v5h2v-3h8v3h2v-5Z" transform="translate(-1556 -197)"></path></svg></i>'});BX.insertBefore(btnPrintBasket,topicHeading)}if($(".basket-btn-checkout").length&&!$(".basket-btn-checkout").hasClass("disabled")){if("Y"===arAsproOptions.THEME.SHOW_DOWNLOAD_BASKET&&!document.querySelector(".btn_basket_heading--download")){var btnDownloadBasket=BX.create({tag:"div",attrs:{class:"btn_basket_heading btn_basket_heading--with_title btn_basket_heading--download colored_theme_hover_bg-block",title:arAsproOptions.THEME.EXPRESSION_FOR_DOWNLOAD_BASKET},events:{click:BX.proxy((function(e){e||(e=window.event),BX.PreventDefault(e);var button=e.target.closest(".btn_basket_heading");if(button){if(BX.hasClass(button,"loadings"))return;BX.addClass(button,"loadings"),setTimeout((function(){BX.removeClass(button,"loadings")}),2e3)}location.href="/ajax/download_basket.php?params[type]="+arAsproOptions.THEME.BASKET_FILE_DOWNLOAD_TEMPLATE}),this)},html:'<i class="svg colored_theme_hover_bg-el-svg"><svg class="svg" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5 14H14L14 6H11H10V5V2H5V6H7H9V8V10V12H7H5V14ZM13.6716 4L12 2.32843V4H13.6716ZM6 8H7V10H6H5H3H2V8H3H5H6ZM3 6H2H0V8V10V12H2H3V14V16H5H14H16V14V4.32843C16 3.79799 15.7893 3.28929 15.4142 2.91421L13.0858 0.585786C12.7107 0.210714 12.202 0 11.6716 0H5H3V2V6Z" fill="#B8B8B8"/></svg></i><span class="title">'+arAsproOptions.THEME.EXPRESSION_FOR_DOWNLOAD_BASKET+"</span>"});BX.insertBefore(btnDownloadBasket,topicHeading)}}else BX.remove(document.querySelector(".btn_basket_heading--send2email")),BX.remove(document.querySelector(".btn_basket_heading--download"));var eventdata={parent:topicHeading};BX.onCustomEvent("onShowBasketHeadingBtn",[eventdata])}}};function touchMenu(selector){isMobile?$(selector).length&&$(selector).each((function(){var th;$(this).on("touchend",(function(e){var _th=$(e.target).closest(".menu-item");if($(".menu.topest > li").removeClass("hover"),$(".menu_top_block.catalog_block li").removeClass("hover"),$(".bx-breadcrumb-item.drop").removeClass("hover"),_th.find(".dropdown-menu").length&&!_th.hasClass("hover"))e.preventDefault(),e.stopPropagation(),_th.siblings().removeClass("hover"),_th.addClass("hover"),$(".menu-row .dropdown-menu").css({display:"none",opacity:0}
3199),_th.hasClass("menu-item")&&_th.closest(".dropdown-menu").css({display:"block",opacity:1}),_th.find("> .wrap > .dropdown-menu")?_th.find("> .wrap > .dropdown-menu").css({display:"block",opacity:1}):_th.find("> .dropdown-menu")&&_th.find("> .dropdown-menu").css({display:"block",opacity:1}),CheckTopVisibleMenu();else{var href=$(e.target).attr("href")?$(e.target).attr("href"):$(e.target).closest("a").attr("href");href&&"undefined"!==href&&(location.href=href)}}))})):$(selector).off()}function touchTopMenu(selector){isMobile?$(selector).length&&$(selector).each((function(){var th;$(this).on("touchend",(function(e){var _th=$(e.target).closest("li");if($(".menu-item").removeClass("hover"),$(".menu_top_block.catalog_block li").removeClass("hover"),$(".bx-breadcrumb-item.drop").removeClass("hover"),_th.hasClass("more")&&!_th.hasClass("hover"))e.preventDefault(),e.stopPropagation(),_th.siblings().removeClass("hover"),_th.addClass("hover"),$(".menu.topest").css({overflow:"visible"});else{var href=$(e.target).attr("href")?$(e.target).attr("href"):$(e.target).closest("a").attr("href");href&&"undefined"!==href&&(location.href=href)}}))})):$(selector).off()}function touchLeftMenu(selector){isMobile?$(selector).length&&$(selector).each((function(){var th;$(this).on("touchend",(function(e){var _th=$(e.target).closest("li");if($(".menu-item").removeClass("hover"),$(".bx-breadcrumb-item.drop").removeClass("hover"),$(".menu.topest > li").removeClass("hover"),_th.hasClass("has-child")&&!_th.hasClass("hover"))e.preventDefault(),e.stopPropagation(),_th.siblings().removeClass("hover"),_th.addClass("hover");else{var href=$(e.target).attr("href")?$(e.target).attr("href"):$(e.target).closest("a").attr("href");href&&"undefined"!==href&&(location.href=href)}}))})):$(selector).off()}function touchBreadcrumbs(selector){isMobile?$(selector).length&&$(selector).each((function(){var th;$(this).on("touchend",(function(e){var _th=$(e.target).closest(".bx-breadcrumb-item");if($(".menu-item").removeClass("hover"),$(".menu.topest > li").removeClass("hover"),$(".menu_top_block.catalog_block li").removeClass("hover"),_th.hasClass("hover")){_th.removeClass("hover");var href=$(e.target).attr("href")?$(e.target).attr("href"):$(e.target).closest("a").attr("href");href&&"undefined"!==href&&(location.href=href)}else e.preventDefault(),e.stopPropagation(),_th.siblings().removeClass("hover"),_th.addClass("hover")}))})):$(selector).off()}function touchItemBlock(selector){}function touchBasket(selector){"N"!==arAsproOptions.THEME.SHOW_BASKET_ONADDTOCART&&($(window).outerWidth()>600?$(document).find(selector).on("touchend",(function(e){$(this).parent().find(".basket_popup_wrapp").length&&!$(this).hasClass("hover")&&(e.preventDefault(),e.stopPropagation(),$(this).addClass("hover"),$(this).parent().find(".basket_popup_wrapp").slideDown())})):$(selector).off())}function showTotalSummItem(popup){if("ALWAYS"==arAsproOptions.THEME.SHOW_TOTAL_SUMM_TYPE&&"Y"==arAsproOptions.THEME.SHOW_TOTAL_SUMM){var parent="body ";"string"==typeof popup&&"Y"==popup&&(parent=".popup "),$(parent+".counter_wrapp .counter_block input.text").each((function(){var _th=$(this);if(_th.data("product")){var obProduct=_th.data("product");"object"==typeof window[obProduct]?window[obProduct].setPriceAction("Y"):setPriceItem(_th.closest(".main_item_wrapper"),_th.val())}else setPriceItem(_th.closest(".main_item_wrapper"),_th.val())}))}}function initFull(){initSelects(document),initHoverBlock(document),touchItemBlock(".catalog_item a"),InitOrderCustom(),showTotalSummItem(),basketActions(),orderActions(),checkMobileRegion()}$(window).on("load",(function(){CheckSearchWidth()})),$(document).ready((function(){if(MegaMenuFixed(),InitScrollBar(),$.ripple(".btn",{debug:!1,on:"mouseenter",opacity:.4,color:"auto",multi:!0,duration:.6,easing:"linear"}),arAsproOptions.PAGES.ORDER_PAGE){var arUrl=parseUrlQuery();if("ORDER_ID"in arUrl){var _id=arUrl.ORDER_ID;if("N"!==arAsproOptions.COUNTERS.USE_FULLORDER_GOALS){var eventdata={goal:"goal_order_success",result:_id};BX.onCustomEvent("onCounterGoals",[eventdata])}if(checkCounters()&&"undefined"!=typeof localStorage){var val=localStorage.getItem("gtm_e_"+_id),d="";try{d=JSON.parse(val)}catch(e){d=val}"object"==typeof d&&(window.dataLayer=window.dataLayer||[],dataLayer.push({event:arAsproOptions.COUNTERS.GOOG
3199LE_EVENTS.PURCHASE,ecommerce:d})),"undefined"!=typeof localStorage&&localStorage.removeItem("gtm_e_"+_id)}}}var bSafary=!1;"object"==typeof jQuery.browser?bSafary=jQuery.browser.safari:"object"==typeof browser&&(bSafary=browser.safari),bSafary?setTimeout((function(){$(window).resize(),setTimeout((function(){CheckTopMenuPadding(),CheckTopMenuOncePadding(),CheckTopMenuDotted(),CheckHeaderFixed(),checkMenuLines(),setTimeout((function(){$(window).scroll()}),50)}),50)}),350):(CheckTopMenuPadding(),CheckTopMenuOncePadding(),CheckTopMenuDotted(),CheckHeaderFixed(),checkMenuLines()),window.matchMedia("(max-width: 767px)").matches&&($(".bx_filter .scrollbar").addClass("mobile-scroll").removeClass("scroll-init"),$(".bx_filter .srollbar-custom").addClass("mobile-scroll").removeClass("scroll-init"),$(".bx_filter .bx_filter_section form .bx_filter_parameters").addClass("mobile-scroll").removeClass("scroll-init"),$(".bx_filter .mobile-scroll.scrollbar").length&&$(".bx_filter .mobile-scroll.scrollbar").mCustomScrollbar("destroy"),$(".bx_filter .mobile-scroll.srollbar-custom").length&&$(".bx_filter .mobile-scroll.srollbar-custom").mCustomScrollbar("destroy")),"Y"===arAsproOptions.THEME.USE_DEBUG_GOALS?$.cookie("_ym_debug",1,{path:"/"}):$.cookie("_ym_debug",null,{path:"/"}),$("#headerfixed .js-nav").length&&(2==arAsproOptions.THEME.HEADER_FIXED&&CheckHeaderFixedMenu(),setTimeout((function(){$("#headerfixed .js-nav").addClass("opacity1")}),350)),$(".instagram_ajax").length?BX.addCustomEvent("onCompleteAction",(function(eventdata){"instagrammLoaded"===eventdata.action&&scrollPreviewBlock()})):scrollPreviewBlock(),scrollToTop(),checkVerticalMobileFilter(),$("[data-scroll-block]").click((function(){var _this=$(this);if(_this.data("scrollBlock")){var target=$(_this.data("scrollBlock"));target.length&&scroll_block(target)}})),$.extend($.validator.messages,{required:BX.message("JS_REQUIRED"),email:BX.message("JS_FORMAT"),equalTo:BX.message("JS_PASSWORD_COPY"),minlength:BX.message("JS_PASSWORD_LENGTH"),remote:BX.message("JS_ERROR")}),$.validator.addMethod("regexp",(function(value,element,regexp){var re=new RegExp(regexp);return this.optional(element)||re.test(value)}),BX.message("JS_FORMAT")),$.validator.addMethod("filesize",(function(value,element,param){return this.optional(element)||element.files[0].size<=param}),BX.message("JS_FILE_SIZE")),$.validator.addMethod("date",(function(value,element,param){var status=!1,re,matches,composedDate,re,matches,composedDate;!value||value.length<=0?status=!1:(matches=(re=new RegExp("^([0-9]{4})(.)([0-9]{2})(.)([0-9]{2})$")).exec(value))?status=(composedDate=new Date(matches[1],matches[3]-1,matches[5])).getMonth()==matches[3]-1&&composedDate.getDate()==matches[5]&&composedDate.getFullYear()==matches[1]:(matches=(re=new RegExp("^([0-9]{2})(.)([0-9]{2})(.)([0-9]{4})$")).exec(value))&&(status=(composedDate=new Date(matches[5],matches[3]-1,matches[1])).getMonth()==matches[3]-1&&composedDate.getDate()==matches[1]&&composedDate.getFullYear()==matches[5]);return status}),BX.message("JS_DATE")),$.validator.addMethod("extension",(function(value,element,param){return param="string"==typeof param?param.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(element)||value.match(new RegExp(".("+param+")$","i"))}),BX.message("JS_FILE_EXT")),$.validator.addMethod("captcha",(function(value,element,params){return $.validator.methods.remote.call(this,value,element,{url:arAsproOptions.SITE_DIR+"ajax/check-captcha.php",type:"post",data:{captcha_word:value,captcha_sid:function(){return $(element).closest("form").find('input[name="captcha_sid"]').val()}}})}),BX.message("JS_ERROR")),$.validator.addMethod("recaptcha",(function(value,element,param){var id=$(element).closest("form").find(".g-recaptcha").attr("data-widgetid");return void 0===id||""!=grecaptcha.getResponse(id)}),BX.message("JS_RECAPTCHA_ERROR")),$.validator.addClassRules({phone:{regexp:arAsproOptions.THEME.VALIDATE_PHONE_MASK},confirm_password:{equalTo:'input[name="REGISTER[PASSWORD]"]',minlength:6},password:{minlength:6},inputfile:{extension:arAsproOptions.THEME.VALIDATE_FILE_EXT,filesize:5e6}
3199,captcha:{captcha:""},recaptcha:{recaptcha:""}}),arAsproOptions.THEME.PHONE_MASK&&$("input.phone").inputmask("mask",{mask:arAsproOptions.THEME.PHONE_MASK}),initCalculatePreview(),$("select.region").on("change",(function(){var val=parseInt($(this).val());$("select.city").length&&(val?($("select.city option").hide(),$("select.city option").prop("disabled","disabled"),$("select.city option[data-parent_section="+val+"]").prop("disabled",""),$("select.city option:eq(0)").prop("disabled",""),$("select.city").ikSelect("reset"),$("select.city option[data-parent_section="+val+"]").show()):$("select.city option").prop("disabled","disabled"),$("select.city option:eq(0)").prop("disabled",""),$("select.city").ikSelect("reset"))})),$("select.city, select.region").on("change",(function(){var _this=$(this),val=parseInt(_this.val());_this.hasClass("region")&&($("select.city option:eq(0)").show(),$("select.city").val(0)),(_this.hasClass("region")&&!val||_this.hasClass("city"))&&$.ajax({type:"POST",data:{ID:val}}).success((function(html){var ob=BX.processHTML(html);$(".ajax_items")[0].innerHTML=ob.HTML,BX.ajax.processScripts(ob.SCRIPT)}))})),$(document).on("mouseenter",".section-gallery-wrapper .section-gallery-wrapper__item",(function(){$(this).siblings().removeClass("_active"),$(this).addClass("_active")})),$(document).on("mouseleave",".image_wrapper_block",(function(){const $elements=$(this).find(".section-gallery-wrapper .section-gallery-wrapper__item");$elements.length&&($elements.removeClass("_active"),$($elements[0]).addClass("_active"))})),$(document).on("click",".hint .icon",(function(e){var tooltipWrapp=$(this).closest(".hint");tooltipWrapp.hasClass("active")?tooltipWrapp.removeClass("active").find(".tooltip").slideUp(200):(tooltipWrapp.addClass("active"),tooltipWrapp.find(".tooltip").slideDown(200),tooltipWrapp.find(".tooltip_close").click((function(e){e.stopPropagation(),tooltipWrapp.removeClass("active").find(".tooltip").slideUp(100)}))),e.stopPropagation()})),$(".mobile_regions .city_item").on("click",(function(e){e.preventDefault();var _this=$(this);$.removeCookie("current_region"),$.cookie("current_region",_this.data("id"),{path:"/",domain:arAsproOptions.SITE_ADDRESS}),location.href=_this.attr("href")}));var $this=this,previewParClosedHeight=25;$("section.toggle > label").prepend($("<i />").addClass("fa fa-plus")),$("section.toggle > label").prepend($("<i />").addClass("fa fa-minus")),$("section.toggle.active > p").addClass("preview-active"),$("section.toggle.active > div.toggle-content").slideDown(350,(function(){})),$("section.toggle > label").click((function(e){var parentSection=$(this).parent(),parentWrapper=$(this).parents("div.toogle"),previewPar=!1,isAccordion;if(parentWrapper.hasClass("toogle-accordion")&&void 0!==e.originalEvent&&parentWrapper.find("section.toggle.active > label").trigger("click"),parentSection.toggleClass("active"),parentSection.find("> p").get(0)){var previewParCurrentHeight=(previewPar=parentSection.find("> p")).css("height");previewPar.css("height","auto");var previewParAnimateHeight=previewPar.css("height");previewPar.css("height",previewParCurrentHeight)}var toggleContent=parentSection.find("> div.toggle-content");parentSection.hasClass("active")?($(previewPar).animate({height:previewParAnimateHeight},350,(function(){$(this).addClass("preview-active")})),toggleContent.slideDown(350,(function(){}))):($(previewPar).animate({height:25},350,(function(){$(this).removeClass("preview-active")})),toggleContent.slideUp(350,(function(){})))})),"function"==typeof $.fn.footable&&$(".tables-responsive .responsive").footable(),$("a[rel=tooltip]").tooltip(),$("span[data-toggle=tooltip]").tooltip(),$(".toggle .more_items").on("click",(function(){$(this).closest(".toggle").find(".collapsed").css("display","inline-block").removeClass("collapsed"),$(this).remove(),void 0!==$(this).data("resize")&&$(this).data("resize")&&$(window).resize()})),$(".toggle_menu .more_items").on("click",(function(){$(this).closest(".toggle_menu").find(".collapsed").addClass("clicked_exp"),$(this).remove()})),$(document).on("keyup",".search-input-div input",(function(e){var inputValue=$(this).val();$(".search-input-div input:not(:focus").val(inputValue),$(this).closest("#headerfixed").length&&13==e.keyCode&&$(".search form").submit()})),$(document).on("click",".search-button-div button",(function(e){$(this).closest("#headerfixed").length&&$(".search form").submit()})),$(".inline-search-show, .inline-search-hide").on("click",(function(e){CloseMobilePhone(),void 0!==$(this).data("type_search")&&"fixed"==$(this).data("type_search")&&$(".inline-search-block").addClass("fixed"),"fixed"==arAsproOptions.THEME.TYPE_SEARCH&&$(".inline-search-block.fixed.big .search-input").focus(),"fixed"!=arAsproOptions.THEME.TYPE_SEARCH&&$("#title-search-input").focus(),$(".inline-search-block").toggleClass("show"),$(".top-block").length&&($(".inline-search-block").hasClass("show")?$(".inline-search-block").css("background",$(".top-block").css("background-color")):$(".inline-search-block").css("background","#fff")),"fixed"==arAsproOptions.THEME.TYPE_SEARCH&&($(".inline-search-block").hasClass("show")?$('<div class="jqmOverlay search"></div>').appendTo("body"):($("#title-search-input").blur(),$(".jqmOverlay").detach()))})),$("html, body").on("mousedown",(function(e){if("string"==typeof e.target.className&&e.target.className.indexOf("adm")<0){e.stopPropagation();var search_target=$(e.target).closest(".title-search-result");$(e.target).hasClass("inline-search-block")||$(e.target).hasClass("svg")||search_target.length||($(".inline-search-block").removeClass("show"),$(".title-search-result").hide(),"fixed"==arAsproOptions.THEME.TYPE_SEARCH&&$(".jqmOverlay.search").detach()),$("#mobilePhone").length&&CloseMobilePhone(),$("#basket_line .basket_fly").length&&parseInt($("#basket_line .basket_fly").css("right"))>=0&&($(e.target).closest(".basket_wrapp").length||($("#basket_line .basket_fly").stop().animate({right:-$("#basket_line .basket_fly").outerWidth()},150),$("#basket_line .basket_fly .opener > div").removeClass("cur"),$("#basket_line .basket_fly").removeClass("swiped"))),isMobile&&search_target.length&&(location.href=search_target.attr("href")),$(e.target).closest(".
3199js-info-block").length||$(e.target).closest(".js-show-info-block").length||($(".js-show-info-block").removeClass("opened"),$(".js-info-block").fadeOut()),$(e.target).closest(".hint.active").length||$(".hint.active .icon").trigger("click");var class_name=$(e.target).attr("class");(void 0===class_name||class_name.indexOf("tooltip")<0)&&$(".tooltip-link").tooltip("hide")}})),$(".inline-search-block").find("*").on("mousedown",(function(e){e.stopPropagation()})),initAnimateLoad(),$(document).on("change","input#select_all_items",(function(){var _this=$(this),notOfferCount=0,bComplect;notOfferCount=_this.closest(".complect_main_wrap").length?_this.closest(".complect_main_wrap").find(".catalog-block-view__item .counter_wrapp:not(.ce_cmp_visible) .button_block .to-cart").length:$(".table-view__item:not([data-product_type=3]), .table-view-offer-tree .table-view__item[data-product_type=3] .counter_wrapp:not(.ce_cmp_visible)").find(".button_block .to-cart").length;var wishCount=$(".table-view__item:not([data-product_type=3]), .table-view-offer-tree .table-view__item[data-product_type=3]").find(".item-icons .wish_item_button .wish_item.to").length,allGoodsCount=$(".table-view__item").length;_this.is(":checked")?(0!=notOfferCount&&$(".opt_action:not([data-action=compare])").removeClass("no-action"),$(".opt_action[data-action=compare]").removeClass("no-action"),$(".opt_action").addClass("animate-load"),$(".opt_action .text").remove(),$('<div class="text">(<span>'+notOfferCount+"</span>)</div>").appendTo($(".opt_action[data-action=buy]")),$('<div class="text muted">(<span>'+wishCount+"</span>)</div>").appendTo($(".opt_action[data-action=wish]")),$('<div class="text muted">(<span>'+allGoodsCount+"</span>)</div>").appendTo($(".opt_action[data-action=compare]")),$('input[name="chec_item"]').prop("checked","checked")):($(".opt_action").addClass("no-action"),$(".opt_action").removeClass("animate-load"),$(".opt_action .text").remove(),$('input[name="chec_item"]').removeAttr("checked")),_this.closest(".complect_header_block").length&&"function"==typeof setNewPriceComplect&&setNewPriceComplect()})),$(document).on("change","input[name='chec_item']",(function(){var _this=$(this),canBuy=_this.closest(".table-view__item").find(".button_block .to-cart").length||_this.closest(".catalog-block-view__item").find(".button_block .to-cart").length,isOffer="3"==_this.closest(".main_item_wrapper").attr("data-product_type")&&!canBuy;_this.is(":checked")?$(".opt_action").each((function(){var _this=$(this),isBuyAction="buy"==_this.attr("data-action"),isWishAction="wish"==_this.attr("data-action");if(isOffer&&(isBuyAction||isWishAction))return!0;if(isBuyAction&&!canBuy)return!0;if(_this.find(".text").length){var count=parseInt(_this.find(".text span").text());_this.find(".text span").text(++count)}else _this.removeClass("no-action"),_this.addClass("animate-load"),$('<div class="text muted">(<span>1</span>)</div>').appendTo(_this)})):$(".opt_action").each((function(){var _this=$(this),isBuyAction="buy"==_this.attr("data-action"),isWishAction="wish"==_this.attr("data-action");if(isOffer&&(isBuyAction||isWishAction))return!0;if(isBuyAction&&!canBuy)return!0;if(_this.find(".text").length){var count=parseInt(_this.find(".text span").text());--count,_this.find(".text span").text(count),count||(_this.addClass("no-action"),_this.removeClass("animate-load"),_this.find(".text").remove())}}))})),$(document).on("click",".opt_action",(function(){var _this=$(this),action=_this.data("action"),itemsAll=[],basketParams={type:"multiple",iblock_id:_this.data("iblock_id"),action:action,items:{}};_this.hasClass("no-action")||($(".opt_action").addClass("no-action"),_this.removeClass("no-action"),$(".table-view__item, .catalog-block-view__item").each((function(){var _this=$(this),canBuy=_this.find(".button_block .to-cart").length,add=_this.find('input[name="chec_item"]').is(":checked")&&(canBuy||"buy"!=action),addOffer="3"==_this.data("product_type")&&_this.find(".button_block .to-cart").length;if(add){var itemId=addOffer?_this.find(".button_block .to-cart").data("item"):_this.data("id");itemsAll.push(_this[0]),basketParams.items[itemId]={},basketParams.items[itemId].id=itemId,basketParams.items[itemId].product_type=_this.data("product_type"),basketParams.items[itemId].quantity=_this.find('input[name="quantity"]').val(),addOffer&&(basketParams.items[itemId].add_offer="Y")}})),$.ajax({type:"POST",url:arAsproOptions.SITE_DIR+"ajax/item.php",data:basketParams,dataType:"json",success:function(data){if("STATUS"in data){if("OK"!==data.STATUS&&showBasketError(BX.message(data.MESSAGE)+" <br/>"+data.MESSAGE_EXT),"undefined"!=typeof JNoticeSurface)switch(action){case"buy":JNoticeSurface.get().onAdd2cart(itemsAll);break;case"wish":JNoticeSurface.get().onAdd2Delay(itemsAll);break;case"compare":JNoticeSurface.get().onAdd2Compare(itemsAll);break;default:console.log("nothing")}$(".header-cart.fly").length?(arBasketAsproCounters.DEFAULT=!0,SetActualBasketFlyCounters(!0)):$("#ajax_basket").length?reloadTopBasket("add",$("#ajax_basket"),200,5e3,"N","",!0):reloadBasketCounters("",!0)}_this.parent().removeClass("loadings"),$(".opt_action").removeClass("no-action")}}))})),setTimeout((function(){$('.with-opt-buy input[name="chec_item"], .with-opt-buy input[name="select_all_items"]').length&&$('.with-opt-buy input[name="chec_item"], .with-opt-buy input[name="select_all_items"]').prop("checked",!1)}),1),$(document).on("click",'*[data-event="jqm"]',(function(e){e.preventDefault(),e.stopPropagation();var _this=$(this),name=_this.data("name");if(previewMode&&(name.length&&"auth"==name||window.matchMedia("(max-width:400px)").matches)){var script=arAsproOptions.SITE_DIR+"form/",paramsStr="",arTriggerAttrs={};$.each(_this.get(0).attributes,(function(index,attr){var attrName=attr.nodeName,attrValue=_this.attr(attrName);
3199if(arTriggerAttrs[attrName]=attrValue,/^data\-param\-(.+)$/.test(attrName)){var key=attrName.match(/^data\-param\-(.+)$/)[1];paramsStr+=key+"="+attrValue+"&"}}));var triggerAttrs=JSON.stringify(arTriggerAttrs),encTriggerAttrs=encodeURIComponent(triggerAttrs);script+="?name="+name+"&"+paramsStr+"data-trigger="+encTriggerAttrs,void 0!==_this.attr("href")&&(script=_this.attr("href")),location.href=script}else $(this).hasClass("clicked")||($(this).addClass("clicked"),$(this).jqmEx(),$(this).trigger("click"));return!1})),BX.addCustomEvent("onCompleteAction",(function(eventdata,_this){try{if("loadForm"===eventdata.action)$(_this).parent().removeClass("loadings"),$(_this).removeClass("clicked"),$(_this).hasClass("one_click_buy_trigger")?($(".wrapp_one_click > span").removeClass("clicked"),$(".one_click").removeClass("clicked")):$(_this).hasClass("one_click_buy_basket_trigger")&&$(".fast_order").removeClass("clicked");else if("loadBasket"===eventdata.action)$(".basket-link.basket").attr("title",$("<div/>").html(arBasketPrices.BASKET_SUMM_TITLE).text()),$(".basket-link.delay").attr("title",$("<div/>").html(arBasketPrices.DELAY_SUMM_TITLE).text()),arBasketPrices.BASKET_COUNT>0?($(".basket-link.basket").addClass("basket-count"),$(".basket-link.basket .count").removeClass("empted"),$(".basket-link.basket .prices").length&&$(".basket-link.basket .prices").html(arBasketPrices.BASKET_SUMM)):($(".basket-link.basket").removeClass("basket-count"),$(".basket-link.basket .count").addClass("empted"),$(".basket-link.basket .prices").length&&$(".basket-link.basket .prices").html(arBasketPrices.BASKET_SUMM_TITLE_SMALL)),$(".basket-link.basket .count").text(arBasketPrices.BASKET_COUNT),arBasketPrices.DELAY_COUNT>0?($(".basket-link.delay").addClass("basket-count"),$(".basket-link.delay .count").removeClass("empted"),$(".basket-link.delay[data-href]").attr("href",$(".basket-link.delay[data-href]").data("href"))):($(".basket-link.delay").removeClass("basket-count"),$(".basket-link.delay .count").addClass("empted"),$(".basket-link.delay[data-href]").attr("href","javascript:void(0)")),$(".basket-link.delay .count").text(arBasketPrices.DELAY_COUNT),updateBottomIconsPanel(arBasketPrices);else if("loadActualBasketCompare"===eventdata.action){var compare_count=Object.keys(arBasketAspro.COMPARE).length;compare_count>0?($(".basket-link.compare").addClass("basket-count"),$(".basket-link.compare .count").removeClass("empted"),$("#compare_fly").length&&$("#compare_fly").removeClass("empty_block")):($(".basket-link.compare").removeClass("basket-count"),$(".basket-link.compare .count").addClass("empted"),$("#compare_fly").length&&$("#compare_fly").addClass("empty_block")),$(".basket-link.compare .count").text(compare_count),updateBottomIconsPanel(arBasketAspro)}else"loadRSS"===eventdata.action||"ajaxContentLoaded"===eventdata.action||"jsLoadBlock"===eventdata.action&&(initCountdown(),setStatusButton(),InitFlexSlider(),setTimeout((function(){InitOwlSlider()}),200),InitFancyBox(),checkLinkedArticles(),checkLinkedBlocks(".linked-banners-list"),lazyLoadPagenBlock(),void 0!==window.stickySidebar&&window.stickySidebar.updateSticky())}catch(e){console.error(e)}})),$(".banners-small .item.normal-block").length&&$(".banners-small .item.normal-block").sliceHeight(),$(".teasers .item").length&&$(".teasers .item").sliceHeight(),$(".wrap-portfolio-front .row.items > div").length&&$(".wrap-portfolio-front .row.items > div").sliceHeight({row:".row.items",item:".item1"}),$("img").removeAttr("draggable"),$(".title-tab-heading").on("click",(function(){var container=$(this).parent(),slide_block=$(this).next(),bReviewTab=container.hasClass("media_review");if(clicked_tab=container.index()+1,container.siblings().removeClass("active"),$(".nav.nav-tabs li").removeClass("active"),container.hasClass("active"))bReviewTab?$("#reviews_content").slideUp(200,(function(){container.removeClass("active")})):slide_block.slideUp(200,(function(){container.removeClass("active")}));else if(container.addClass("active"),bReviewTab)$("#reviews_content").slideDown();else if($(".tabs_section + #reviews_content").length&&$(".tabs_section + #reviews_content").slideUp(),slide_block.slideDown(),void 0!==container.attr("id")&&"descr"==container.attr("id")){var $gallery=$(".galerys-block");if($gallery.length){var bTypeBig,$slider=$gallery.find(".big_slider").length?$gallery.find(".big_slider"):$gallery.find(".small_slider");InitFlexSlider();var interval=setInterval((function(){-1===$slider.find(".slides .item").attr("style").indexOf("height")?$(window).resize():clearInterval(interval)}),100)}}})),InitFlexSlider(),InitOwlSlider(),InitStickySideBar(),InitFancyBox(),InitFancyBoxVideo(),setTimeout((function(){InitTopestMenuGummi(),isOnceInited=!0}),50),InitZoomPict(),$(document).on("click",".captcha_reload",(function(e){var captcha=$(this).parents(".captcha-row");e.preventDefault(),$.ajax({url:arAsproOptions.SITE_DIR+"ajax/captcha.php"}).done((function(text){captcha.find("input[name=captcha_sid],input[name=captcha_code]").val(text),captcha.find("img").attr("src","/bitrix/tools/captcha.php?captcha_sid="+text),captcha.find("input[name=captcha_w
3199ord]").val("").removeClass("error"),captcha.find(".captcha_input").removeClass("error").find(".error").remove()}))})),arAsproOptions.PAGES.BASKET_PAGE?showBasketHeadingBtn():"Y"===arAsproOptions.THEME.PRINT_BUTTON&&setTimeout((function(){var topicHeading=document.querySelector(".period_wrapper.in-detail-news1 .period_wrapper_inner")?document.querySelector(".detail-news1 .period_wrapper .period_wrapper_inner"):document.querySelector(".page-top .topic .topic__heading")?document.querySelector(".page-top .topic .topic__heading"):null;if(topicHeading){var btnPrint=BX.create({tag:"div",attrs:{class:"print-link colored_theme_hover_bg-block",title:arAsproOptions.THEME.EXPRESSION_FOR_PRINT_PAGE},html:'<i class="svg colored_theme_hover_bg-el-svg"><svg class="svg svg-print" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path id="Rectangle_665_copy_4" data-name="Rectangle 665 copy 4" class="cls-print" d="M1570,210h-2v3h-8v-3h-2a2,2,0,0,1-2-2v-5a2,2,0,0,1,2-2h2v-4h8v4h2a2,2,0,0,1,2,2v5A2,2,0,0,1,1570,210Zm-8,1h4v-4h-4v4Zm4-12h-4v2h4v-2Zm4,4h-12v5h2v-3h8v3h2v-5Z" transform="translate(-1556 -197)"></path></svg></i>'});BX.insertBefore(btnPrint,topicHeading)}}),150),$(document).on("click",".print-link",(function(){window.print()})),$(".head-block .item-link").on("click",(function(){var _this=$(this);_this.siblings().removeClass("active"),_this.addClass("active")})),$("table.table").each((function(){var _this=$(this),first_td=_this.find("thead tr th");if(first_td.length||(first_td=_this.find("thead tr td")),first_td.length){var j=0;_this.find("tbody tr td").each((function(i){j>first_td.length-1&&(j=0),$('<div class="th-mobile">'+first_td[j].textContent+"</div>").appendTo($(this)),j++}))}})),window.matchMedia("(min-width: 768px)").matches&&$(".wrapper_middle_menu.wrap_menu").removeClass("mobile"),window.matchMedia("(max-width: 767px)").matches&&$(".wrapper_middle_menu.wrap_menu").addClass("mobile"),$(".menu_top_block .v_bottom a").on("click",(function(e){$(e.target).hasClass("toggle_block")&&e.preventDefault()})),$(".menu_top_block .v_bottom a .toggle_block").click((function(e){var _this=$(this),menu=_this.closest(".has-child").find("> .dropdown"),bVisibleMeu,animate=menu.is(":visible")?"slideUp":"slideDown";_this.hasClass("clicked")||(_this.addClass("clicked"),menu.velocity("stop").velocity(animate,{duration:150,begin:function(){_this.toggleClass("closed")},complete:function(){_this.removeClass("clicked"),void 0!==window.stickySidebar&&window.stickySidebar.updateSticky()}})),$(this).closest(".has-child").toggleClass("opened")})),$(document).on("click",".show_props",(function(){$(this).prev().stop().slideToggle(333),$(this).find(".char_title").toggleClass("opened")})),$(".see_more").on("click",(function(e){e.preventDefault();var see_more=$(this).is(".see_more")?$(this):$(this).parents(".see_more").first(),see_moreText=see_more.find("> a").length?see_more.find("> a"):see_more,see_moreHiden=see_more.parent().find("> .d");return see_more.hasClass("open")?(see_moreText.text(BX.message("CATALOG_VIEW_MORE")),see_more.removeClass("open"),see_moreHiden.hide()):(see_moreText.text(BX.message("CATALOG_VIEW_LESS")),see_more.addClass("open"),see_moreHiden.show()),!1})),$(".button.faq_button").click((function(e){e.preventDefault(),$(this).toggleClass("opened"),$(".faq_ask .form").slideToggle()})),$(".staff.list .staff_section .staff_section_title a").click((function(e){e.preventDefault(),$(this).parents(".staff_section").toggleClass("opened"),$(this).parents(".staff_section").find(".staff_section_items").stop().slideToggle(600),$(this).parents(".staff_section_title").find(".opener_icon").toggleClass("opened")})),$(".jobs_wrapp .item .name").click((function(e){$(this).closest(".item").toggleClass("opened"),$(this).closest(".item").find(".description_wrapp").stop().slideToggle(600),$(this).closest(".item").find(".opener_icon").toggleClass("opened")})),$(".faq.list .item .q a").on("click",(function(e){e.preventDefault(),$(this).parents(".item").toggleClass("opened"),$(this).parents(".item").find(".a").stop().slideToggle(),$(this).parents(".item").find(".q .o
3199pener_icon").toggleClass("opened")})),$(".opener_icon").click((function(e){e.preventDefault(),$(this).parent().find("a").trigger("click")})),$(".dotdot").dotdotdot(),$(".more_block span").on("click",(function(){var content_offset=$(".catalog_detail .tabs_section").offset();$("html, body").animate({scrollTop:content_offset.top-43},400)})),$(document).on("click",".counter_block:not(.basket) .plus",(function(){if((!$(this).parents(".basket_wrapp").length||$(this).parents(".services_in_basket").length)&&"Y"!=$(this).parent().data("offers")){var isDetailSKU2=$(this).parents(".counter_block_wr").length;input=$(this).parents(".counter_block").find("input[type=text]"),tmp_ratio=isDetailSKU2?$(this).parents("tr").first().find("td.buy .to-cart").data("ratio"):$(this).parents(".counter_wrapp").find(".to-cart").data("ratio"),isDblQuantity=isDetailSKU2?$(this).parents("tr").first().find("td.buy .to-cart").data("float_ratio"):$(this).parents(".counter_wrapp").find(".to-cart").data("float_ratio"),ratio=isDblQuantity?parseFloat(tmp_ratio):parseInt(tmp_ratio,10),max_value="",currentValue=input.val(),isDblQuantity&&(ratio=Math.round(ratio*arAsproOptions.JS_ITEM_CLICK.precisionFactor)/arAsproOptions.JS_ITEM_CLICK.precisionFactor),curValue=isDblQuantity?parseFloat(currentValue):parseInt(currentValue,10),curValue+=ratio,isDblQuantity&&(curValue=Math.round(curValue*arAsproOptions.JS_ITEM_CLICK.precisionFactor)/arAsproOptions.JS_ITEM_CLICK.precisionFactor),parseFloat($(this).data("max"))>0?input.val()<$(this).data("max")&&(curValue<=$(this).data("max")&&input.val(curValue),input.change()):(input.val(curValue),input.change())}})),$(document).on("click",".counter_block:not(.basket) .minus",(function(){if((!$(this).parents(".basket_wrapp").length||$(this).parents(".services_in_basket").length)&&"Y"!=$(this).parent().data("offers")){var isDetailSKU2=$(this).parents(".counter_block_wr").length;input=$(this).parents(".counter_block").find("input[type=text]"),tmp_ratio=isDetailSKU2?$(this).parents("tr").first().find("td.buy .to-cart").data("ratio"):$(this).parents(".counter_wrapp").find(".to-cart").data("ratio"),isDblQuantity=isDetailSKU2?$(this).parents("tr").first().find("td.buy .to-cart").data("float_ratio"):$(this).parents(".counter_wrapp").find(".to-cart").data("float_ratio"),ratio=isDblQuantity?parseFloat(tmp_ratio):parseInt(tmp_ratio,10),max_value="",currentValue=input.val(),isDblQuantity&&(ratio=Math.round(ratio*arAsproOptions.JS_ITEM_CLICK.precisionFactor)/arAsproOptions.JS_ITEM_CLICK.precisionFactor),curValue=isDblQuantity?parseFloat(currentValue):parseInt(currentValue,10),curValue-=ratio,isDblQuantity&&(curValue=Math.round(curValue*arAsproOptions.JS_ITEM_CLICK.precisionFactor)/arAsproOptions.JS_ITEM_CLICK.precisionFactor);const minValue=parseFloat($(this).parents(".counter_block").find(".minus").data("min"));minValue&&(ratio=minValue),parseFloat($(this).parents(".counter_block").find(".plus").data("max"))>0?currentValue>ratio&&(curValue<ratio?input.val(ratio):input.val(curValue),input.change()):(curValue>ratio?input.val(curValue):ratio?input.val(ratio):currentValue>1&&input.val(curValue),input.change())}})),$(".counter_block input[type=text]").numeric({allow:"."}),$(document).on("focus",".counter_block input[type=text]",(function(e){$(this).addClass("focus")})),$(document).on("blur",".counter_block input[type=text]",(function(e){$(this).removeClass("focus")}));var timerInitCalculateDelivery=!1,hoveredTrs;function pasteAjaxPagination(html,th,bottom_nav,bLoadingState,_this){var mobileBottomClicked=bottom_nav.hasClass("mobile_slider"),hasMobileBottomNav=$(html).find(".bottom_nav.mobile_slider"),bottomNav=hasMobileBottomNav.length?hasMobileBottomNav:$(html).find(".bottom_nav"),bottomNavHtml=bottomNav.html(),bottomNavScrollClass=bottomNav.data("scroll-class"),hasBottomNav=$(html).find(".ajax_load_btn").length;if(th.closest(".ajax_load").length&&!mobileBottomClicked){th.removeClass("loading"),th.closest(".ajax_load").find(".js_append").length?(_this.closest(".catalog_in_content").length?th.closest(".ajax_load").find(".js_append").append($(".inner_wrapper .js_wrapper_items>",html)):_this.closest(".catalog.search").length?th.closest(".ajax_load").find(".js_a
3199ppend").append($(".js_append>",html)):th.closest(".ajax_load").find(".js_append").append(html),th.closest(".ajax_load").find(".bottom_nav_wrapper").remove()):$(".display_list").length?($(".display_list").append(html),th.closest(".display_list").find(".bottom_nav_wrapper").remove()):$(".block_list").length?($(".block_list").append(html),touchItemBlock(".catalog_item a"),th.closest(".block_list").find(".bottom_nav_wrapper").remove()):$(".module_products_list").length&&($(".module_products_list > tbody").append(html),th.closest(".module_products_list > tbody").find(".bottom_nav_wrapper").remove()),setStatusButton(),checkLinkedArticles(),checkLinkedBlocks(".linked-banners-list");var eventdata={action:"ajaxContentLoadedTab"};BX.onCustomEvent("onAjaxSuccess",[eventdata]),_this.closest(".bottom_nav").html(bottomNavHtml)}else{var eventdata={action:"ajaxContentLoaded"};if($(".banners-small.front").length)$(".banners-small .items.row").append(html),$(".bottom_nav").html($(".banners-small .items.row .bottom_nav").html()),$(".banners-small .items.row .bottom_nav").remove(),hasBottomNav?$(".banners-small .items.row").addClass("has-bottom-nav"):$(".banners-small .items.row").removeClass("has-bottom-nav");else if(void 0!==bottom_nav.data("append")&&void 0!==bottom_nav.data("parent")){var target=html,icon;if(void 0!==bottom_nav.data("target")&&(target=$(html).find(bottom_nav.data("target"))),mobileBottomClicked||hasMobileBottomNav.length){var mobileSliderNav=th.closest(bottom_nav.data("parent")).find(".bottom_nav.mobile_slider");mobileSliderNav.length?mobileSliderNav.before(target):bottom_nav.before(target)}else th.closest(bottom_nav.data("parent")).find(bottom_nav.data("append")).append(target);th.closest(bottom_nav.data("parent")).find(bottom_nav.data("append")).find(".bottom_nav_wrapper").remove(),hasBottomNav?(void 0!==bottomNavScrollClass&&th.closest(bottom_nav.data("parent")).find(bottomNavScrollClass).addClass("has-bottom-nav"),th.closest(bottom_nav.data("parent")).find(bottom_nav.data("append")).addClass("has-bottom-nav")):(void 0!==bottomNavScrollClass&&th.closest(bottom_nav.data("parent")).find(bottomNavScrollClass).removeClass("has-bottom-nav"),th.closest(bottom_nav.data("parent")).find(bottom_nav.data("append")).removeClass("has-bottom-nav")),(bottom_nav=th.closest(bottom_nav.data("parent")).find(".bottom_nav")).html(bottomNavHtml),bottom_nav.find(".svg-inline-bottom_nav-icon").css("display",""),eventdata.container=th.closest(bottom_nav.data("parent"))}else th.closest(".item-views").find(".items").length?th.closest(".item-views").find(".items").append(html):$(html).insertBefore($(".blog .bottom_nav")),bottom_nav.html($(".bottom_nav:hidden").html()),hasBottomNav?th.closest(".item-views").find(".items").addClass("has-bottom-nav"):th.closest(".item-views").find(".items").removeClass("has-bottom-nav"),_this.closest(".item-views").find(".bottom_nav:hidden").remove();eventdata.content=html,eventdata.container=th,BX.onCustomEvent("onCompleteAction",[eventdata,th[0]]),setTimeout((function(){$(".banners-small .item.normal-block").sliceHeight({resize:!1}),$(".item.slice-item").length&&($(".item.slice-item .title").sliceHeight({resize:!1}),$(".item.slice-item").sliceHeight({resize:!1})),th.removeClass("loading"),bLoadingState&&_this.removeClass("loadings")}
3199),100)}BX.onCustomEvent("onHeaderProgressBarChange",[{}]),initCountdown()}if($(document).on("change",".counter_block input[type=text]",(function(e){if(!$(this).parents(".basket_wrapp").length){var val=$(this).val(),tmp_ratio=$(this).parents(".counter_wrapp").find(".to-cart").data("ratio")?$(this).parents(".counter_wrapp").find(".to-cart").data("ratio"):$(this).parents("tr").first().find("td.buy .to-cart").data("ratio"),isDblQuantity=$(this).parents(".counter_wrapp").find(".to-cart").data("float_ratio")?$(this).parents(".counter_wrapp").find(".to-cart").data("float_ratio"):$(this).parents("tr").first().find("td.buy .to-cart").data("float_ratio"),ratio=isDblQuantity?parseFloat(tmp_ratio):parseInt(tmp_ratio,10),diff=val%ratio;isDblQuantity&&(ratio=Math.round(ratio*arAsproOptions.JS_ITEM_CLICK.precisionFactor)/arAsproOptions.JS_ITEM_CLICK.precisionFactor,Math.round(diff*arAsproOptions.JS_ITEM_CLICK.precisionFactor)/arAsproOptions.JS_ITEM_CLICK.precisionFactor==ratio&&(diff=0)),$(this).hasClass("focus")&&(intCount=Math.round(Math.round(val*arAsproOptions.JS_ITEM_CLICK.precisionFactor/ratio)/arAsproOptions.JS_ITEM_CLICK.precisionFactor)||1,val=intCount<=1?ratio:intCount*ratio,val=Math.round(val*arAsproOptions.JS_ITEM_CLICK.precisionFactor)/arAsproOptions.JS_ITEM_CLICK.precisionFactor),parseFloat($(this).parents(".counter_block").find(".plus").data("max"))>0&&val>parseFloat($(this).parents(".counter_block").find(".plus").data("max"))&&(val=parseFloat($(this).parents(".counter_block").find(".plus").data("max"))),parseFloat($(this).parents(".counter_block").find(".minus").data("min"))>0&&val<parseFloat($(this).parents(".counter_block").find(".minus").data("min"))&&(val=parseFloat($(this).parents(".counter_block").find(".minus").data("min"))),val<ratio?val=ratio:parseFloat(val)||(val=1),$(this).parents(".counter_block").parent().parent().find(".to-cart").attr("data-quantity",val),$(this).parents(".counter_block").parent().parent().parent().find(".one_click").attr("data-quantity",val),$(this).parents(".counter_block").parent().parent().parent().parent().find(".one_click").attr("data-quantity",val),$(this).parents(".catalog_item_wrapp").find(".inner_wrap.TYPE_1 .one_click").attr("data-quantity",val),$(this).val(val);var $calculate=$(this).closest(".item").length?$(this).closest(".item").find(".calculate-delivery"):$(this).closest(".catalog_detail").find(".calculate-delivery");$calculate.length&&!$(this).closest(".buy_services_wrap").length&&$calculate.each((function(){var $calculateSpan=$(this).find("span[data-event=jqm]").first();if($calculateSpan.length){var $clone=$calculateSpan.clone();$clone.attr("data-param-quantity",val).removeClass("clicked"),$clone.insertAfter($calculateSpan).on("click",(function(){jQuery.browser.mobile||$(this).parent().addClass("loadings")}
3199)),$calculateSpan.remove()}$(this).hasClass("with_preview")&&($(this).removeClass("inited"),timerInitCalculateDelivery&&clearTimeout(timerInitCalculateDelivery),timerInitCalculateDelivery=setTimeout((function(){initCalculatePreview(),timerInitCalculateDelivery=!1}),1e3))}));var eventdata={type:"change",params:{id:$(this),value:val}};BX.onCustomEvent("onCounterProductAction",[eventdata]),$(this).closest(".complect-block").length&&"function"==typeof setNewPriceComplect&&setNewPriceComplect()}})),BX.addCustomEvent("onCounterProductAction",(function(eventdata){"object"!=typeof eventdata&&(eventdata={type:"undefined"});try{if(void 0!==eventdata.type&&!eventdata.params.id.closest(".gifts").length){var obProduct=eventdata.params.id.data("product");eventdata.params.id.closest(".has_offer_prop").length&&(void 0===window.obSkuQuantys&&(window.obSkuQuantys={}),window.obSkuQuantys[eventdata.params.id.closest(".offer_buy_block").find(".to-cart").data("item")]=eventdata.params.value),"object"==typeof window[obProduct]?("obOffers"==obProduct?setPriceAction("","","Y"):window[obProduct].setPriceAction("Y"),$(".detail_page").length&&setNewHeader()):eventdata.params.id.length&&eventdata.params.id.closest(".main_item_wrapper").length&&!eventdata.params.id.closest(".services-item__buy").length&&"Y"==arAsproOptions.THEME.SHOW_TOTAL_SUMM&&setPriceItem(eventdata.params.id.closest(".main_item_wrapper"),eventdata.params.value),BX.onCustomEvent("onCounterProductActionResize")}}catch(e){console.error(e)}})),$(document).on("mouseenter",".wrap_icon.top_basket, #headerfixed .basket-link.basket",(function(){var _this,parent,hover_block=$(this).closest("header, #headerfixed").find(".basket_hover_block");hover_block.hasClass("loaded")||basketTop("",hover_block)})),$(document).on("click",".wrap_icon.wrap_basket.top_basket, #headerfixed .basket-link.basket",(function(e){var _this=$(this);isMobile&&(_this.hasClass("clicked")||(e.preventDefault(),_this.addClass("clicked"),setTimeout((function(){_this.removeClass("clicked")}),3e3)))})),$(document).on("mouseenter","#basket_line .basket_normal:not(.empty_cart):not(.bcart) .basket_block ",(function(){$(this).closest(".basket_normal").find(".popup").addClass("block"),$(this).closest(".basket_normal").find(".basket_popup_wrapp").stop(!0,!0).slideDown(150)})),$(document).on("mouseleave","#basket_line .basket_normal .basket_block ",(function(){var th=$(this);$(this).closest(".basket_normal").find(".basket_popup_wrapp").stop(!0,!0).slideUp(150,(function(){th.closest(".basket_normal").find(".popup").removeClass("block")}))})),$(document).on("click",".popup_button_basket",(function(){var th=$(".to-cart[data-item="+$(this).data("item")+"]"),val=th.attr("data-quantity");val||($val=1);var tmp_props=th.data("props"),props="",part_props="",add_props="N",fill_prop={},iblockid=th.data("iblockid"),offer=th.data("offers"),rid="",basket_props="",item=th.attr("data-item");"Y"!=offer?offer="N":basket_props=th.closest(".prices_tab").find(".bx_sku_props input").val(),tmp_props&&(props=tmp_props.split(";")),th.data("part_props")&&(part_props=th.data("part_props")),th.data("add_props")&&(add_props=th.data("add_props")),$(".rid_item").length?rid=$(".rid_item").data("rid"):th.data("rid")&&(rid=th.data("rid")),(fill_prop=fillBasketPropsExt(th,"prop","bx_ajax_text")).quantity=val,fill_prop.add_item="Y",fill_prop.rid=rid,fill_prop.offers=offer,fill_prop.iblockID=iblockid,fill_prop.part_props=part_props,fill_prop.add_props=add_props,fill_prop.props=JSON.stringify(props),fill_prop.item=item,fill_prop.basket_props=basket_props;var isDetail=th.closest(".product-action").length||th.closest("#headerfixed.with-product"),isSku2=th.closest(".list-offers").length,bIsService;if(!th.closest(".buy_services_wrap").length&&(isDetail||isSku2)){var allServicesOn=[];allServicesOn=isSku2?th.closest(".product-container").find('.buy_services_wrap .services-item [name="buy_switch_services"]:checked'):$(".product-container").find('.buy_services_wrap[data-parent_product="'+item+'"] .services-item [name="buy_switch_services"]:checked');var servicesNeedAdd=[];allServicesOn.each((function(){var _this,buttonCart=$(this).closest(".services-item").find(".to-cart");servicesNeedAdd[buttonCart.data("item")]={},servicesNeedAdd[buttonCart.data("item")].id=buttonCart.data("item"),servicesNeedAdd[buttonCart.data("item")].quantity=buttonCart.attr("data-quantity"),servicesNeedAdd[buttonCart.data("item")].iblock_id=buttonCart.data("iblockid")})),servicesNeedAdd=array_values_js(servicesNeedAdd),fill_prop.services=servicesNeedAdd}$.ajax({type:"POST",url:arAsproOptions.SITE_DIR+"ajax/item.php",data:fill_prop,dataType:"json",success:function(data){$(".basket_error_frame").jqmHide(),"STATUS"in data?(getActualBasket(fill_prop.iblockID),"OK"===data.STATUS?(th.hide(),th.closest(".counter_wrapp").find(".counter_block_inner").hide(),th.closest(".counter_wrapp").find(".counter_block").hide(),th.parents("tr").find(".counter_block_wr .counter_block").hide(),th.closest(".button_block").addClass("wide"),th.parent().find(".in-cart").show(),addBasketCounter(item),$(".wish_item[data-item="+item+"]").find(".value").show(),$(".wish_item[data-item="+item+"]").find(".value.added").hide(),$("#ajax_basket").length&&reloadTopBasket("add",$("#ajax_basket"),200,5e3,"Y"),$("#basket_line .basket_fly").length&&(th.closest(".fast_view_frame").length||window.matchMedia("(max-width: 767px)").matches?basketFly("open","N"):basketFly("open"))):showBasketError(BX.message(data.MESSAGE))):showBasketError(BX.message("CATALOG_PARTIAL_BASKET_PROPERTIES_ERROR"))}})})),$(document).on("click",".to-cart:not(.read_more), .basket_item_add",(function(e){e.preventDefault();var th=$(this);if(!th.hasClass("clicked")){th.addClass("clicked");var val=$(this).attr("data-quantity"),tmp_props=$(this).data("props"),props="",part_props="",add_props="N",fill_prop={},iblockid=$(this).data("iblockid"),offer=$(this).data("offers"),rid="",bBannerAction=!1,basket_props="",item=$(this).attr("data-item");if(th.closest(".but-cell").length&&$('.counter_block[data-item="'+item+'"]').length&&(val=$('.counter_block[data-item="'+item+'"] input').val()),th.closest(".banner_buttons.with_actions").length){var wrapper_btns=th.closest(".wraps_buttons");item=wrapper_btns.data("id"),bBannerAction=!0}
3199val||(val=1),"Y"!=offer?offer="N":basket_props=$(this).closest(".prices_tab").find(".bx_sku_props input").val(),tmp_props&&(props=tmp_props.split(";")),$(this).data("part_props")&&(part_props=$(this).data("part_props")),$(this).data("add_props")&&(add_props=$(this).data("add_props")),$(".rid_item").length?rid=$(".rid_item").data("rid"):$(this).data("rid")&&(rid=$(this).data("rid")),(fill_prop=fillBasketPropsExt(th,"prop",th.data("bakset_div"))).quantity=val,fill_prop.add_item="Y",fill_prop.rid=rid,fill_prop.offers=offer,fill_prop.iblockID=iblockid,fill_prop.part_props=part_props,fill_prop.add_props=add_props,fill_prop.props=JSON.stringify(props),fill_prop.item=item,fill_prop.basket_props=basket_props;var isDetail=th.closest(".product-action").length||th.closest("#headerfixed.with-product"),isSku2=th.closest(".list-offers").length,bIsService=th.closest(".buy_services_wrap").length;if(!bIsService&&(isDetail||isSku2)){var allServicesOn=[];allServicesOn=isSku2?th.closest(".product-container").find('.buy_services_wrap .services-item [name="buy_switch_services"]:checked'):$(".product-container").find('.buy_services_wrap[data-parent_product="'+item+'"] .services-item [name="buy_switch_services"]:checked');var servicesNeedAdd=[];allServicesOn.each((function(){var _this,buttonCart=$(this).closest(".services-item").find(".to-cart");servicesNeedAdd[buttonCart.data("item")]={},servicesNeedAdd[buttonCart.data("item")].id=buttonCart.data("item"),servicesNeedAdd[buttonCart.data("item")].quantity=buttonCart.attr("data-quantity"),servicesNeedAdd[buttonCart.data("item")].iblock_id=buttonCart.data("iblockid")})),servicesNeedAdd=array_values_js(servicesNeedAdd),fill_prop.services=servicesNeedAdd}var servicesWrap=$(this).closest(".buy_services_wrap");if(bIsService){var parent_product=servicesWrap.attr("data-parent_product");fill_prop["prop[BUY_PRODUCT_PROP]"]=parent_product,fill_prop["prop[ASPRO_BUY_PRODUCT_ID]"]=parent_product}if(bBannerAction){if(th.hasClass("added"))return location.href=th.data("href"),!1;th.attr("title",th.data("title2")),th.toggleClass("added"),wrapper_btns.find(".wish_item_add").length&&wrapper_btns.find(".wish_item_add").removeClass("added")}if("N"==th.data("empty_props")){var basket_popup_html=$("#"+th.data("bakset_div")).html();!basket_popup_html&&th.closest(".item").find(".basket_props_block").length&&(basket_popup_html=th.closest(".item").find(".basket_props_block").html()),showBasketError(basket_popup_html,BX.message("ERROR_BASKET_PROP_TITLE"),"Y",th),BX.addCustomEvent("onCompleteAction",(function(e){if(!e.ignoreSelf){var eventdata={action:"loadForm",ignoreSelf:!0};BX.onCustomEvent("onCompleteAction",[eventdata,th[0]])}}))}else $.ajax({type:"POST",url:arAsproOptions.SITE_DIR+"ajax/item.php",data:fill_prop,dataType:"json",success:function(data){getActualBasket(fill_prop.iblockID);var eventdata={action:"loadForm"};if(BX.onCustomEvent("onCompleteAction",[eventdata,th[0]]),arStatusBasketAspro={},null!==data)if("STATUS"in data)if(null===data.MESSAGE_EXT&&(data.MESSAGE_EXT=""),"OK"===data.STATUS){if($(".to-cart[data-item="+item+"]").hide(),$(".to-cart[data-item="+item+"]").closest(".counter_wrapp").find(".counter_block_inner").hide(),$(".to-cart[data-item="+item+"]").closest(".counter_wrapp").find(".counter_block").hide(),$(".to-cart[data-item="+item+"]").parents("tr").find(".counter_block_wr .counter_block").hide(),$(".to-cart[data-item="+item+"]").closest(".button_block").addClass("wide"),$(".in-cart[data-item="+item+"]").show(),addBasketCounter(item),$(".wish_item[data-item="+item+"]").find(".value").show(),$(".wish_item[data-item="+item+"]").find(".value.added").hide(),$(".wish_item.to[data-item="+item+"]").show(),$(".wish_item.in[data-item="+item+"]").hide(),$bDontOpenBasket=!1,"undefined"!=typeof JNoticeSurface&&(JNoticeSurface.get().onAdd2cart([th[0]]),$bDontOpenBasket=!0),$("#ajax_basket").length&&reloadTopBasket("add",$("#ajax_basket"),200,5e3,"Y"),$("#basket_line .basket_fly").length&&(th.closest(".services_in_basket").length&&!window.matchMedia("(max-width: 767px)").matches?basketFly("open","SHOW"):th.closest(".fast_view_frame").length||window.matchMedia("(max-width: 767px)").matches||$("#basket_line .basket_fly.loaded").length?basketFly("open","N"):$bDontOpenBasket?basketFly("open","N"):basketFly("open")),th.closest(".services_in_basket_page").length&&BX.Sale.BasketComponent.sendRequest("refreshAjax",{fullRecalculation:"Y",otherParams:{param:"N"}}),$(".top_basket").length&&basketTop($bDontOpenBasket?"":"open",$(".top_basket").find(".basket_hover_block")),$("#headerfixed .wproducts .ajax_load .btn").length&&th.closest(".product-action").length&&th.next(".in-cart").length){var buttonHtml='<span class="buy_block"><span class="btn btn-default btn-sm more type_block">'+th.next(".in-cart").html()+"</span></span>";$("#headerfixed .wproducts .ajax_load .item-buttons .but-cell").html(buttonHtml)}}else showBasketError(BX.message(data.MESSAGE)+" <br/>"+data.MESSAGE_EXT);else showBasketError(BX.message("CATALOG_PARTIAL_BASKET_PROPERTIES_ERROR"));else $(".to-cart[data-item="+item+"]").hide(),$(".to-cart[data-item="+item+"]").closest(".counter_wrapp").find(".counter_block_inner").hide(),$(".to-cart[data-item="+item+"]").closest(".counter_wrapp").find(".counter_block").hide(),$(".to-cart[data-item="+item+"]").parents("tr").find(".counter_block_wr .counter_block").hide(),$(".to-cart[data-item="+item+"]").closest(".button_block").addClass("wide"),$(".in-cart[data-item="+item+"]").show(),addBasketCounter(item),$(".wish_item[data-item="+item+"]").find(".value").show(),$(".wish_item[data-item="+item+"]").find(".value.added").hide(),$("#ajax_basket").length&&reloadTopBasket("add",$("#ajax_basket"),200,5e3,"Y"),$("#basket_line .basket_fly").length&&(th.closest(".fast_view_frame").length||window.matchMedia("(max-width: 767px)").matches||$("#basket_line .basket_fly.loaded").length?basketFly("open","N"):basketFly("open"))}})}})),$(document).on("click",".to-subscribe",(function(e){e.preventDefault();var th=$(this);if(!th.hasClass("clicked"))if(th.addClass("clicked"),$(this).is(".auth"))$(this).hasClass("nsubsc")?($(this).jqmEx(),$(this).trigger("click")):location.href=arAsproOptions.SITE_DIR+"auth/?backurl="+location.pathname;else{var item=$(this).attr("data-item"),iblockid=$(this).attr("data-iblockid");$(".to-subscribe[data-item="+item+"]").hide(),$(".to-subscribe[data-item="+item+"]").parent().find(".in-subscribe").show(),$.get(arAsproOptions.SITE_DIR+"ajax/item.php?item="+item+"&subscribe_item=Y",$.proxy((function(data){arStatusBasketAspro={},getActualBasket(iblockid)}))),th.removeClass("clicked")}}
3199)),$(document).on("click",".in-subscribe",(function(e){e.preventDefault();var item=$(this).attr("data-item"),iblockid=$(this).attr("data-iblockid");$(".in-subscribe[data-item="+item+"]").hide(),$(".in-subscribe[data-item="+item+"]").parent().find(".to-subscribe").removeClass("clicked"),$(".in-subscribe[data-item="+item+"]").parent().find(".to-subscribe").show(),$.get(arAsproOptions.SITE_DIR+"ajax/item.php?item="+item+"&subscribe_item=Y",$.proxy((function(data){getActualBasket(iblockid),arStatusBasketAspro={}})))})),$(document).on("click",".wish_item, .wish_item_add",(function(e){e.preventDefault();var val=$(this).attr("data-quantity"),_this=$(this),offer=$(this).data("offers"),iblockid=$(this).data("iblock"),tmp_props=$(this).data("props"),props="",bBannerAction=!1,item=$(this).attr("data-item"),item2=$(this).attr("data-item");if(_this.closest(".banner_buttons.with_actions").length){var wrapper_btns=_this.closest(".wraps_buttons");item=item2=wrapper_btns.data("id"),bBannerAction=!0}_this.hasClass("clicked")||(_this.addClass("clicked"),val||(val=1),"Y"!=offer&&(offer="N"),tmp_props&&(props=tmp_props.split(";")),$(this).hasClass("text")?$(this).hasClass("added")?($(".wish_item[data-item="+item+"]").removeClass("added"),$(".wish_item[data-item="+item+"]").find(".value").show(),$(".wish_item[data-item="+item+"]").find(".value.added").hide(),$(".wish_item.to[data-item="+item+"]").show(),$(".wish_item.in[data-item="+item+"]").hide(),$(".like_icons").each((function(){$(this).find(".wish_item_button").length&&($(this).find(".wish_item_button").find('.wish_item[data-item="'+item+'"]').removeClass("added"),$(this).find(".wish_item_button").find('.wish_item[data-item="'+item+'"]').find(".value").show(),$(this).find(".wish_item_button").find('.wish_item[data-item="'+item+'"]').find(".value.added").hide())}))):($(".wish_item[data-item="+item+"]").addClass("added"),$(".wish_item[data-item="+item+"]").find(".value").hide(),$(".wish_item[data-item="+item+"]").find(".value.added").css("display","block"),$(".wish_item.to[data-item="+item+"]").hide(),$(".wish_item.in[data-item="+item+"]").show(),$(".like_icons").each((function(){$(this).find(".wish_item_button").length&&($(this).find(".wish_item_button").find('.wish_item[data-item="'+item+'"]').addClass("added"),$(this).find(".wish_item_button").find('.wish_item[data-item="'+item+'"]').find(".value").hide(),$(this).find(".wish_item_button").find('.wish_item[data-item="'+item+'"]').find(".value.added").show())}))):$(this).hasClass("added")?(bBannerAction||($(this).hide(),$(this).closest(".wish_item_button").find(".to").show()),$(".like_icons").each((function(){$(this).find('.wish_item.text[data-item="'+item+'"]').length&&($(this).find('.wish_item.text[data-item="'+item+'"]').removeClass("added"),$(this).find('.wish_item.text[data-item="'+item+'"]').find(".value").show(),$(this).find('.wish_item.text[data-item="'+item+'"]').find(".value.added").hide()),$(this).find(".wish_item_button").length&&($(this).find(".wish_item_button").find('.wish_item[data-item="'+item+'"].to').show(),$(this).find(".wish_item_button").find('.wish_item[data-item="'+item+'"].in').hide())}))):(bBannerAction||($(this).hide(),$(this).closest(".wish_item_button").find(".in").addClass("added").show()),$(".like_icons").each((function(){$(this).find('.wish_item.text[data-item="'+item+'"]').length&&($(this).find('.wish_item.text[data-item="'+item+'"]').addClass("added"),$(this).find('.wish_item.text[data-item="'+item+'"]').find(".value").hide(),$(this).find('.wish_item.text[data-item="'+item+'"]').find(".value.added").css({display:"block"})),$(this).find(".wish_item_button").length&&($(this).find(".wish_item_button").find('.wish_item[data-item="'+item+'"].to').hide(),$(this).find(".wish_item_button").find('.wish_item[data-item="'+item+'"].in').show())}))),$(".in-cart[data-item="+item+"]").hide(),$(".to-cart[data-item="+item+"]").removeClass("clicked"),$(".to-cart[data-item="+item+"]").closest(".counter_wrapp").find(".counter_block").length&&$(".to-cart[data-item="+item+"]").parent().removeClass("wide"),$(".counter_block[data-item="+item+"]").closest(".counter_wrapp").find(".to-order").length||($(".to-cart[data-item="+item+"]").show(),$(".counter_block[data-item="+item+"]").closest(".counter_block_inner").show(),$(".counter_block[data-item="+item+"]").show()),bBannerAction&&(_this.toggleClass("added"),_this.hasClass("added")?_this.attr("title",_this.data("title2")):_this.attr("title",_this.data("title")),wrapper_btns.find(".basket_item_add").length&&wrapper_btns.find(".basket_item_add").removeClass("added")),$(this).closest(".module-cart").size()||$.ajax({type:"GET",url:arAsproOptions.SITE_DIR+"ajax/item.php",data:"item="+item2+"&quantity="+val+"&wish_item=Y&offers="+offer+"&iblockID="+iblockid+"&props="+JSON.stringify(props),dataType:"json",success:function(data){if(getActualBasket(iblockid),arStatusBasketAspro={},null!==data)if(null===data.MESSAGE_EXT&&(data.MESSAGE_EXT=""),"STATUS"in data)if("OK"===data.STATUS){if($bDontOpenBasket=!1,"undefined"!=typeof JNoticeSurface&&(!bBannerAction&&!_this.hasClass("added")||bBannerAction&&_this.hasClass("added"))&&(JNoticeSurface.get().onAdd2Delay([_this[0]]),$bDontOpenBasket=!0),"N"!==arAsproOptions.COUNTERS.USE_BASKET_GOALS){var eventdata={goal:"goal_wish_add",params:{id:item2}};BX.onCustomEvent("onCounterGoals",[eventdata])}$("#ajax_basket").length&&reloadTopBasket("wish",$("#ajax_basket"),200,5e3,"N"),$("#basket_line .basket_fly").length&&(_this.closest(".fast_view_frame").length||window.matchMedia("(max-width: 767px)").matches||$("#basket_line .basket_fly.loaded").length?basketFly("wish","N"):$bDontOpenBasket?basketFly("wish","N"):basketFly("wish"))}else showBasketError(BX.message(data.MESSAGE)+" <br/>"+data.MESSAGE_EXT,BX.message("ERROR_ADD_DELAY_ITEM"));else showBasketError(BX.message(data.MESSAGE)+" <br/>"+data.MESSAGE_EXT,BX.message("ERROR_ADD_DELAY_ITEM"));else $("#ajax_basket").length&&reloadTopBasket("wish",$("#ajax_basket"),200,5e3,"N"),$("#basket_line .basket_fly").length&&(_this.closest(".fast_view_frame").length||window.matchMedia("(max-width: 767px)").matches||$("#basket_line .basket_fly.loaded").length?basketFly("wish","N"):basketFly("wish"));_this.removeClass("clicked")}}
3199))})),$(document).on("click",".item_main_info .item_slider .flex-direction-nav li span",(function(e){$(".inner_slider .slides_block").length&&($(this).parent().hasClass("flex-nav-next")?$(".inner_slider .slides_block li.current").next().click():$(".inner_slider .slides_block li.current").prev().click())})),$(document).on("click",".compare_item, .compare_item_add",(function(e){e.preventDefault();var item=$(this).attr("data-item"),iblockID=$(this).attr("data-iblock"),bBannerAction=!1,th=$(this);if(th.closest(".banner_buttons.with_actions").length){var wrapper_btns=th.closest(".wraps_buttons");item=wrapper_btns.data("id"),iblockID=wrapper_btns.data("iblockid"),bBannerAction=!0,th.toggleClass("added"),th.hasClass("added")?th.attr("title",th.data("title2")):th.attr("title",th.data("title"))}th.hasClass("clicked")||(th.addClass("clicked"),$(this).hasClass("text")?$(this).hasClass("added")?($(".compare_item[data-item="+item+"]").removeClass("added"),$(".compare_item[data-item="+item+"]").find(".value").show(),$(".compare_item[data-item="+item+"]").find(".value.added").hide(),$(".like_icons").each((function(){$(this).find(".compare_item_button").length&&($(this).find(".compare_item_button").find('.compare_item[data-item="'+item+'"]').removeClass("added"),$(this).find(".compare_item_button").find('.compare_item[data-item="'+item+'"]').find(".value").show(),$(this).find(".compare_item_button").find('.compare_item[data-item="'+item+'"]').find(".value.added").hide())}))):($(".compare_item[data-item="+item+"]").addClass("added"),$(".compare_item[data-item="+item+"]").find(".value").hide(),$(".compare_item[data-item="+item+"]").find(".value.added").css("display","block"),$(".like_icons").each((function(){$(this).find(".compare_item_button").length&&($(this).find(".compare_item_button").find('.compare_item[data-item="'+item+'"]').addClass("added"),$(this).find(".compare_item_button").find('.compare_item[data-item="'+item+'"]').find(".value.added").show(),$(this).find(".compare_item_button").find('.compare_item[data-item="'+item+'"]').find(".value").hide())}))):$(this).hasClass("added")?(bBannerAction||($(this).hide(),$(this).closest(".compare_item_button").find(".to").show()),$(".like_icons").each((function(){$(this).find('.compare_item.text[data-item="'+item+'"]').length&&($(this).find('.compare_item.text[data-item="'+item+'"]').removeClass("added"),$(this).find('.compare_item.text[data-item="'+item+'"]').find(".value").show(),$(this).find('.compare_item.text[data-item="'+item+'"]').find(".value.added").hide()),$(this).find(".compare_item_button").length&&($(this).find(".compare_item_button").find('.compare_item[data-item="'+item+'"].in').hide(),$(this).find(".compare_item_button").find('.compare_item[data-item="'+item+'"].to').show())}))):(bBannerAction||($(this).hide(),$(this).closest(".compare_item_button").find(".in").show()),$(".like_icons").each((function(){$(this).find('.compare_item.text[data-item="'+item+'"]').length&&($(this).find('.compare_item.text[data-item="'+item+'"]').addClass("added"),$(this).find('.compare_item.text[data-item="'+item+'"]').find(".value").hide(),$(this).find('.compare_item.text[data-item="'+item+'"]').find(".value.added").css({display:"block"})),$(this).find(".compare_item_button").length&&($(this).find(".compare_item_button").find('.compare_item[data-item="'+item+'"].to').hide(),$(this).find(".compare_item_button").find('.compare_item[data-item="'+item+'"].in').show())}))),$.get(arAsproOptions.SITE_DIR+"ajax/item.php?item="+item+"&compare_item=Y&iblock_id="+iblockID,$.proxy((function(data){getActualBasket(iblockID,"Compare"),arStatusBasketAspro={},"undefined"!=typeof JNoticeSurface&&(!bBannerAction&&!th.hasClass("added")||bBannerAction&&th.hasClass("added"))&&JNoticeSurface.get().onAdd2Compare([th[0]]),$("#compare_fly").length&&jsAjaxUtil.InsertDataToNode(arAsproOptions.SITE_DIR+"ajax/show_compare_preview_fly.php","compare_fly",!1),th.removeClass("clicked")}))))})),$(document).on("click",".tabs>li",(function(){var parent=$(this).parent();if(!$(this).hasClass("active")){var sliderIndex=$(this).index(),curLiNav=$(this).closest(".top_block").find(".slider_navigation").find(">li:eq("+sliderIndex+")"),curLi=$(this).closest(".top_block").siblings(".tabs_content").find(">li:eq("+sliderIndex+")");if($(this).addClass("active").addClass("cur").siblings().removeClass("active").removeClass("cur"),curLi.addClass("cur").siblings().removeClass("cur"),curLiNav.addClass("cur").siblings().removeClass("cur"),parent.hasClass("ajax"))if($(this).hasClass("clicked")){var container=curLi.closest(".content_wrapper_block"),bNav;if(container.length)curLi.find(".bottom_nav .module-pagination").length>0?container.removeClass("without-border"):container.addClass("without-borded")}else $.ajax({url:arAsproOptions.SITE_DIR+"include/mainpage/comp_catalog_ajax.php",type:"POST",data:{AJAX_POST:"Y",FILTER_HIT_PROP:$(this).data("c
3199ode"),AJAX_PARAMS:$(this).closest(".tab_slider_wrapp").find(".request-data").data("value"),GLOBAL_FILTER:curLi.data("filter")}}).success((function(html){curLi.find(".tabs_slider").html(html);var container=curLi.closest(".content_wrapper_block"),bNav;container.length&&(curLi.find(".bottom_nav .module-pagination").length>0?container.removeClass("without-border"):container.addClass("without-borded"));setTimeout((function(){curLi.addClass("opacity1")}),100),initCountdown()})),$(this).addClass("clicked");var eventdata={index:sliderIndex,target:$(this)};BX.onCustomEvent("clickedTabsLi",[eventdata])}})),$(".search_block .icon").on("click",(function(){var th=$(this);$(this).hasClass("open")?($(this).closest(".center_block").find(".search_middle_block").removeClass("active"),$(this).removeClass("open"),$(this).closest(".center_block").find(".search_middle_block").find(".noborder").hide()):(setTimeout((function(){th.closest(".center_block").find(".search_middle_block").find(".noborder").show()}),100),$(this).closest(".center_block").find(".search_middle_block").addClass("active"),$(this).addClass("open"))})),$(document).on("click",".no_goods .button",(function(){$(".bx_filter .smartfilter .bx_filter_search_reset").trigger("click")})),$(document).on("click",".js-load-link",(function(e){AjaxClickLink(e)})),$(document).on("click",".svg-inline-bottom_nav-icon",(function(){$(this).next().trigger("click")})),$(document).on("click",".ajax_load_btn",(function(){var _this=$(this),url=_this.closest(".container").find(".module-pagination .flex-direction-nav .flex-next").attr("href"),th=_this.find(".more_text_ajax"),bottom_nav=_this.closest(".bottom_nav"),mobileBottomNav=bottom_nav.hasClass("mobile_slider"),bLoadingState=_this.closest(".animate-load-state").length;if(!th.hasClass("loading")){var icon;if(th.addClass("loading"),mobileBottomNav)bottom_nav.find(".svg-inline-bottom_nav-icon").css("display","none");bLoadingState&&_this.addClass("loadings");var objUrl=parseUrlQuery(),add_url="";if(obGetData={ajax_get:"Y",AJAX_REQUEST:"Y"},_this.closest(".wrapper_inner.front").length){var class_block=th.closest(".drag-block").data("class").replace("_drag","");class_block=class_block.replace(/\s/g,""),obGetData.BLOCK=class_block}if(_this.closest(".tab").length){var parentTab=th.closest(".tab");obGetData.FILTER_HIT_PROP=parentTab.data("code"),obGetData.GLOBAL_FILTER=parentTab.data("filter"),url=_this.closest(".bottom_nav").find(".module-pagination .flex-direction-nav .flex-next").attr("href")}if(_this.closest(".content_linked_goods").length){var filterSections=th.closest(".content_linked_goods").attr("data-sections-ids");obGetData.ajax_section_id=decodeURIComponent(filterSections),url=_this.closest(".bottom_nav").find(".module-pagination .flex-direction-nav .flex-next").attr("href")}"clear_cache"in objUrl&&"Y"==objUrl.clear_cache&&(add_url="&clear_cache=Y"),_this.hasClass("ajax")&&(obGetData.ajax="y"),th.closest(".goods-block.aja
3199x_load")&&(obGetData.bitrix_include_areas="N"),_this.closest(".nav-data_block").length&&(obGetData.data_block=_this.closest(".nav-data_block").attr("data-block"),obGetData.pagen_data_block="Y",url=_this.closest(".bottom_nav").find(".module-pagination .flex-direction-nav .flex-next").attr("href")),$.ajax({url:url+add_url,data:obGetData,success:function(html){pasteAjaxPagination(html,th,bottom_nav,bLoadingState,_this)},error:function(html){pasteAjaxPagination(html.responseText,th,bottom_nav,bLoadingState,_this)}})}})),$(document).on("mouseenter",".form .votes_block.with-text .item-rating",(function(){var $this=$(this),index=$this.index(),ratingValue=$this.data("rating_value"),ratingMessage=$this.data("message");$(this).addClass("filed"),$this.siblings().each((function(){$(this).index()<=index?$(this).addClass("filed"):$(this).removeClass("filed")})),$this.closest(".votes_block").find(".rating_message").text(ratingMessage)})),$(document).on("mouseleave",".form .votes_block.with-text",(function(){var $this=$(this),index=$this.data("rating"),ratingMessage=$this.closest(".votes_block").find(".rating_message").data("message");$this.find(".item-rating").each((function(){$(this).index()<index&&void 0!==index?$(this).addClass("filed"):$(this).removeClass("filed")})),$this.closest(".votes_block").find(".rating_message").text(ratingMessage)})),$(document).on("click",".form .votes_block.with-text .item-rating",(function(){var $this=$(this),rating=$this.closest(".votes_block").data("rating"),index=$this.index()+1,ratingMessage=$this.data("message");$this.closest(".votes_block").data("rating",index),$this.closest(".form-control").find("input[name=RATING]").length?$this.closest(".form-control").find("input[name=RATING]").val(index):$this.closest(".form-control").find("input[data-sid=RATING]").val(index),$this.closest(".votes_block").find(".rating_message").data("message",ratingMessage)})),$(document).on("click",".bx_ordercart_order_table_container .control > a, .basket-item-actions-remove, a[data-entity=basket-item-remove-delayed]",(function(e){$.removeCookie("click_basket",{path:"/"}),$.cookie("click_basket","Y",{path:"/"})})),$(document).on("click",".bx_compare .tabs-head li",(function(){var url=$(this).find(".sortbutton").data("href");BX.showWait(BX("bx_catalog_compare_block")),$.ajax({url:url,data:{ajax_action:"Y"},success:function(html){history.pushState(null,null,url),$("#bx_catalog_compare_block").html(html),BX.closeWait()}})})),$(document).on({mouseover:function(e){var _=$(this),tbodyIndex=_.closest("tbody").index()+1,trIndex=_.index()+1;hoveredTrs=$(e.delegateTarget).find(".data_table_props").children(":nth-child("+tbodyIndex+")").children(":nth-child("+trIndex+")").addClass("hovered")},mouseleave:function(e){hoveredTrs&&hoveredTrs.removeClass("hovered")}},".bx_compare .data_table_props tbody>tr"),$(document).on("click",".fancy_zoom",(function(e){e.preventDefault();var arPict=[],index=0;$(this).closest(".product-detail-gallery__container").find(".product-detail-gallery__thmb-container .product-detail-gallery__item").each((function(){var obImg={};obImg={src:$(this).data("big"),thumb:$(this).find("img").data("src")||$(this).find(".img").attr("src")},$(this).parent().hasClass("current")&&(index=$(this).parent().index()),arPict.push(obImg)})),arPict.length||arPict.push({src:$(this).closest(".product-detail-gallery__container").find(".zoom_picture").data("xoriginal")}),"function"==typeof $.fn.fancybox&&$.fancybox.open(arPict,{tpl:{closeBtn:'<span title="'+BX.message("FANCY_CLOSE")+'" class="fancybox-item fancybox-close inline svg"><svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 24L24 2M2 2L24 24" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg></span>',next:'<a title="'+BX.message("FANCY_NEXT")+'" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="'+BX.message("FANCY_PREV")+'" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},btnTpl:{close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><i class="svg"><svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M2 24L24 2M2 2L24 24" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" /></svg></i></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><i class="svg left"><svg width="16" height="26" viewBox="0 0 15 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 13L0.585787 14.4142C-0.195262 13.6332 -0.195262 12.3668 0.585787 11.5858L2 13ZM11.5858 0.585786C12.3668 -0.195262 13.6332 -0.195262 14.4142 0.585786C15.1953 1.36683 15.1953 2.63317 14.4142 3.41421L11.5858 0.585786ZM14.4142 22.5858C15.1953 23.3668 15.1953 24.6332 14.4142 25.4142C13.6332 26.1953 12.3668 26.1953 11.5858 25.4142L14.4142 22.5858ZM0.585787 11.5858L11.5858 0.585786L14.4142 3.41421L3.41421 14.4142L0.585787 11.5858ZM3.41421 11.5858L14.4142 22.5858L11.5858 25.4142L0.585787 14.4142L3.41421 11.5858Z" fill="#999999"/></svg></i></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><i class="svg right"><svg width="16" height="26" viewBox="0 0 15 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 13L14.4142 14.4142C15.1953 13.6332 15.1953 12.3668 14.4142 11.5858L13 13ZM3.41421 0.585786C2.63317 -0.195262 1.36683 -0.195262 0.585786 0.585786C-0.195262 1.36683 -0.195262 2.63317 0.585786 3.41421L3.41421 0.585786ZM0.585786 22.5858C-0.195262 23.3668 -0.195262 24.6332 0.585786 25.4142C1.36683 26.1953 2.63317 26.1953 3.41421 25.4142L0.585786 22.5858ZM14.4142 11.5858L3.41421 0.585786L0.585786 3.41421L11.5858 14.4142L14.4142 11.5858ZM11.5858 11.5858L0.585786 22.5858L3.41421 25.4142L14.4142 14.4142L11.5858 11.5858Z" fill="white"/></svg></i></div></button>'},touch:"enabled",loop:!1,buttons:["close"],thumbs:{autoStart:!0},onActivate:function(instance){InitFancyboxThumbnailsGallery(instance)},beforeShow:function(instance,current){if($(".fancybox-thumbs .swiper-container").length){const swiper=$(".fancybox-thumbs .swiper-container").data("swiper");swiper.slideTo(current.index)}}},index)})),$(".tabs_section .tabs-head li").on("click",(function(){$(this).is(".current")||($(".tabs_section .tabs-head li").removeClass("current"),$(this).addClass("current"),$(".tabs_section ul.tabs_content li").removeClass("current"),"product_reviews_tab"==$(this).attr("id")?($(".shadow.common").hide(),$("#reviews_content").show()):($(".shadow.common").show(),$("#reviews_content").hide(),$(".tabs_section ul.tabs_content > li:eq("+$(this).index()+")").addClass("current")))})),setTimeout((function(){$(".jobs_wrapp .item:first .name tr").trigger("click")}),300),$(".choise").on("click",(function(){var _this=$(this);void 0!==_this.attr("data-block")&&($(_this.attr("data-block")).closest(".tab-pane").length?($('.ordered-block a[href="#'+$(_this.attr("data-block")).closest(".tab-pane").attr("id")+'"]').click(),_this.data("block",".ordered-block.tabs-block"),$(_this.data("block")).data("offset",-100)):$(_this.data("block")).data("offset",-100),scrollToBlock(_this.data("block")))})),$(document).on("click",".buy_block .slide_offer",(function(){scroll_block($(".js-offers-scroll"))})),$(".share > .share_wrapp .text").on("click",(function(){var block=$(this).parent().find(".shares");block.is(":visible")||$(this).closest(".share.top").length||$("#content").css("z-index",3),block.fadeToggle(100,(function(){block.is(":visible")||$("#content").css("z-index",2)}))})),$("html, body").on("mousedown",(function(e){"string"==typeof e.target.className&&e.target.className.indexOf("adm")<0&&(e.stopPropagation(),$("div.shares").fadeOut(100,(function(){$("#content").css("z-index",2),$(".price_txt .share_wrapp").removeClass("opened")})),$(".search_middle_block").removeClass("active_wide"))})),$(".share_wrapp").find("*").on("mousedown",(function(e){e.stopPropagation()})),$(".price_txt .share_wrapp .text").click((function(){$(this).parent().toggleClass("opened"),$(this).parent().find(".shares").fadeToggle()})),$(document).on("click",".reviews-collapse-link",(function(){$(".reviews-reply-form").slideToggle()})),$(".panel-collapse").on("hidden.bs.collapse",(function(){$(this).parent().toggleClass("opened")})),$(".panel-collapse").on("show.bs.collapse",(function(){$(this).parent().toggleClass("opened")})),$(".accordion-head").on("click",(function(e){e.preventDefault(),$(this).next().hasClass("collapsing")||($(this).toggleClass("accordion-open"),$(this).toggleClass("accordion-close"))})),$("[data-appear-progress-animation]").each((function(){var $this=$(this);$this.appear((function(){var delay=$this.attr("data-appear-animation-delay")?$this.attr("data-appear-animation-delay"):1;delay>1&&$this.css("animation-delay",delay+"ms"),$this.addClass($this.attr("data-appear-animation")),setTimeout((function(){$this.animate({width:$this.attr("data-appear-progress-animation")},1500,"easeOutQuad",(function(){$this.find(".progress-bar-tooltip").animate({opacity:1},500,"easeOutQuad")}))}),delay)}),{accX:0,accY:-50})})),initCountdown(),$(".item.animated-block").length&&$(".item.animated-block").appear((function(){var $this=$(this);$this.addClass($this.data("animation")).addClass("visible")}),{accX:0,accY:150}),$(".appear-block").length&&$(".appear-block").appear((function(){var $this;
3199$(this).removeClass("appear-block"),CheckFlexSlider(),InitFlexSlider(),InitOwlSlider()}),{accX:0,accY:150}),$(".js-load-block").length){var objUrl=parseUrlQuery(),bClearCache=!1;"clear_cache"in objUrl&&"Y"==objUrl.clear_cache&&(bClearCache=!0);var items=[],bIdle=!0,insertNextBlockContent=function(){if(bIdle&&items.length){bIdle=!1;const item=items.pop();$.get(item.url).done((function(html){if(item.content=html,item.content=$.trim(item.content),-1!==item.content.indexOf("/bitrix/js/main/core/core_window.")&&BX.WindowManager&&(item.content=item.content.replace(/<script src="\/bitrix\/js\/main\/core\/core_window\.[^>]*><\/script>/gm,"")),-1!==item.content.indexOf("/bitrix/js/currency/core_currency.")&&"object"==typeof BX.Currency&&BX.Currency.defaultFormat&&(item.content=item.content.replace(/<script src="\/bitrix\/js\/currency\/core_currency\.[^>]*><\/script>/gm,"")),-1!==item.content.indexOf("/bitrix/js/main/pageobject/pageobject.")&&BX.PageObject&&(item.content=item.content.replace(/<script src="\/bitrix\/js\/main\/pageobject\/pageobject\.[^>]*><\/script>/gm,"")),-1!==item.content.indexOf("/bitrix/js/main/polyfill/promise/js/promise.")&&void 0!==window.Promise&&-1!==window.Promise.toString().indexOf("[native code]")&&(item.content=item.content.replace(/<script src="\/bitrix\/js\/main\/polyfill\/promise\/js\/promise\.[^>]*><\/script>/gm,"")),"function"==typeof MutationObserver&&document.querySelector("body").classList.contains("detail_page")){const observer=new MutationObserver((function(list,observer){const $curBlock=list[0].target,curBlockBounds=$curBlock.getBoundingClientRect();if($curBlock.parentElement.classList.contains("complect-block")&&$curBlock.parentElement.classList.add("loaded"),curBlockBounds.top<0&&curBlockBounds.bottom>=0){const offsetTop=window.scrollY+Math.round($curBlock.offsetHeight)-100;window.scrollTo(0,offsetTop)}observer.disconnect()}));observer.observe(item.$context[0],{childList:!0})}const ob=BX.processHTML(item.content);pauseYmObserver(),item.$context.removeAttr("data-file").removeClass("loader_circle"),item.$target.innerHTML=ob.HTML,BX.ajax.processScripts(ob.SCRIPT);var eventdata={action:"jsLoadBlock"};BX.onCustomEvent("onCompleteAction",[eventdata,item.$context]),BX.onCustomEvent("onHeaderProgressBarChange",[{}]),setTimeout(resumeYmObserver,500),bIdle=!0,insertNextBlockContent()}))}};$(".js-load-block").appear((function(){var $this=$(this);if($this.data("file")){const add_url=new URL(location.origin+$this.data("file"));bClearCache&&add_url.searchParams.set("clear_cache","Y"),$this.data("block")&&add_url.searchParams.set("BLOCK",$this.data("block")),$this.data("show_all")&&add_url.searchParams.set("SHOW_ALL","Y");const $target=$this.data("appendTo")?$this.find($this.data("appendTo"))[0]:$this.find('> div[id*="bx_incl_"]').length?$this.find('> div[id*="bx_incl_"]')[0]:$this[0];items.unshift({$target:$target,$context:$this,url:add_url}),insertNextBlockContent()}}),{accX:0,accY:isMobile?300:150})}$(document).on("click",".js-show-info-block",(function(e){var $this=$(this);if(!window.matchMedia("(max-width: 500px)").matches||$this.closest(".cost.prices").length)if(e.stopPropagation(),$(".js-info-block").fadeOut(),$this.hasClass("opened")?$(".js-show-info-block").removeClass("opened"):($(".js-show-info-block").removeClass("opened"),$this.addClass("opened")),$this.siblings(".js-info-block").length)$this.hasClass("opened")?($this.siblings(".js-info-block").find(".more-btn a").attr("href",$this.closest(".item_info").find("a").attr("href")),$this.siblings(".js-info-block").fadeIn(),InitScrollBar()):$this.siblings(".js-info-block").fadeOut();else{var dataFields=$this.closest(".sa_block").data("fields");dataFields="null"==dataFields||void 0===dataFields?"":dataFields;var dataUserFields=$this.closest(".sa_block").data("user-fields");dataUserFields="null"==dataUserFields||void 0===dataUserFields?"":dataUserFields;var objUrl=parseUrlQuery(),add_url="";"clear_cache"in objUrl&&"Y"==objUrl.clear_cache&&(add_url+="?clear_cache=Y");var obPostParams={ajax:"Y",ELEMENT_ID:$this.data("id"),FIELDS:dataFields,USER_FIELDS:dataUserFields,STORES:$this.closest(".sa_block").data("stores")||""};$this.addClass("loadings"),$.post(arAsproOptions.SITE_DIR+"ajax/productStoreAmountCompact.php"+add_url,obPostParams).done((function(html){$this.removeClass("loadings"),$(html).appendTo($this.closest(".sa_block")),$this.siblings(".js-info-block").find(".more-btn a").attr("href",$this.closest(".item_info").find("a").attr("href")),InitScrollBar();var eventdata={action:"jsShowStores"};BX.onCustomEvent("onCompleteAction",[eventdata,$this])}
3199))}})),$(document).on("click",".js-info-block .svg-inline-close",(function(){$(".js-show-info-block").removeClass("opened"),$(this).closest(".js-info-block").fadeOut()})),$(".menu.adaptive").on("click",(function(){$(this).toggleClass("opened"),$(this).hasClass("opened")?$(".mobile_menu").toggleClass("opened").slideDown():$(".mobile_menu").toggleClass("opened").slideUp()})),$(".mobile_menu .has-child >a").on("click",(function(e){var parentLi=$(this).parent();e.preventDefault(),parentLi.toggleClass("opened"),parentLi.find(".dropdown").slideToggle()})),$(".mobile_menu .search-input-div input").on("keyup",(function(e){var inputValue=$(this).val();$(".center_block .stitle_form input").val(inputValue),13==e.keyCode&&$(".center_block .stitle_form form").submit()})),$(".center_block .stitle_form input").on("keyup",(function(e){var inputValue=$(this).val();$(".mobile_menu .search-input-div input").val(inputValue),13==e.keyCode&&$(".center_block .stitle_form form").submit()})),$(".mobile_menu .search-button-div button").on("click",(function(e){e.preventDefault();var inputValue=$(this).parents().find("input").val();$(".center_block .stitle_form input").val(inputValue),$(".center_block .stitle_form form").submit()})),$(document).on("click",".mega-menu .dropdown-menu",(function(e){e.stopPropagation()})),$(document).on("click",".mega-menu .dropdown-toggle.more-items",(function(e){e.preventDefault()})),$(document).on("mouseenter",".table-menu .dropdown,.table-menu .dropdown-submenu,.table-menu .dropdown-toggle",(function(){})),$(document).on("mouseenter","#headerfixed .table-menu .dropdown-menu .dropdown-submenu",(function(){setTimeout((function(){CheckTopVisibleMenu()}),275)})),$(".mega-menu .search-item .search-icon, .menu-row #title-search .fa-close").on("click",(function(e){e.preventDefault(),$(".menu-row #title-search").toggleClass("hide")})),$(".mega-menu ul.nav .search input").on("keyup",(function(e){var inputValue=$(this).val();$(".menu-row > .search input").val(inputValue),13==e.keyCode&&$(".menu-row > .search form").submit()})),$(".menu-row > .search input").on("keyup",(function(e){var inputValue=$(this).val();$(".mega-menu ul.nav .search input").val(inputValue),13==e.keyCode&&$(".menu-row > .search form").submit()})),$(".mega-menu ul.nav .search button").on("click",(function(e){e.preventDefault();var inputValue=$(this).parents(".search").find("input").val();$(".menu-and-search .search input").val(inputValue),$(".menu-row > .search form").submit()})),$(".btn.btn-add").on("click",(function(){$.ajax({type:"GET",url:arAsproOptions.SITE_DIR+"ajax/clearBasket.php",success:function(data){}})})),$(".sort_display a").on("click",(function(){$(this).siblings().removeClass("current"),$(this).addClass("current")})),$(".sale-order-detail-payment-options-methods-info-change-link").on("click",(function(){$(this).closest(".sale-order-detail-payment-options-methods-info").addClass("opened").siblings().addClass("opened")})),$(document).on("click",".expand_block",(function(){togglePropBlock($(this))})),document.addEventListener("touchend",(function(event){if($(event.target).closest(".menu-item").length||$(event.target).hasClass("menu-item")||($(".menu-row .dropdown-menu").css({display:"none",opacity:0}),$(".menu-item").removeClass("hover"),$(".bx-breadcrumb-item.drop").removeClass("hover")),$(event.target).closest(".menu.topest").length||(window.matchMedia("(max-width: 991px)").matches&&$(".menu.topest").css({overflow:"hidden"}),$(".menu.topest > li").removeClass("hover")),$(event.target).closest(".full.has-child").length||$(".menu_top_block.catalog_block li").removeClass("hover"),$(event.target).closest(".basket_block").length||($(".basket_block .link").removeClass("hover"),$(".basket_block .basket_popup_wrapp").slideUp()),!$(event.target).closest(".catalog_item").length){var tabsContentUnhoverHover=1*$(".tab:visible").attr("data-unhover");$(".tab:visible").stop().animate({height:tabsContentUnhoverHover},100),$(".tab:visible").find(".catalog_item").removeClass("hover"),$(".tab:visible").find(".catalog_item .buttons_block").stop().fadeOut(233),$(".catalog_block").length&&($(".catalog_block").find(".catalog_item_wrapp").removeClass("hover"),$(".catalog_block").find(".catalog_item").removeClass("hover"))}}),!1),touchMenu(".menu-row .menu-item"),touchTopMenu(".menu.topest li"),touchLeftMenu(".menu_top_block:not(.in-search) li.full"),touchBreadcrumbs(".bx-breadcrumb-item.drop"),$(document).on("keyup",".coupon .input_coupon input",(function(){$(this).val().length?($(this).removeClass("error"),$(this).closest(".input_coupon").find(".error").remove()):($(this).addClass("error"),$("<label class='error'>"+BX.message("INPUT_COUPON")+"</label>").insertBefore($(this)))})),showPhoneMask("input[autocomplete=tel]"),BX.addCustomEvent(window,"onAjaxSuccessFilter",(function(e){setBasketStatusBtn(),checkLinkedArticles(),checkLinkedBlocks(".linked-banners-list")})),$(document).on("click",".block_container .items .item.initied",(function(){var _this=$(this),itemID=_this.data("id"),animationTime=200;_this.closest(".items").fadeOut(200,(function(){_this.closest(".block_container").find(".detail_items").fadeIn(200),_this.closest(".block_container").find(".detail_items .item[data-id="+itemID+"]").fadeIn(200);
3199var arCoordinates=_this.data("coordinates").split(",");"undefined"!=typeof map&&map.setCenter([arCoordinates[0],arCoordinates[1]],15)}))})),$(document).on("click",".block_container .top-close",(function(){var _this=$(this).closest(".block_container").find(".detail_items .item:visible"),animationTime=200;_this.fadeOut(200),_this.closest(".block_container").find(".detail_items").fadeOut(200,(function(){_this.closest(".block_container").find(".items").fadeIn(200),"undefined"!=typeof map&&"undefined"!=typeof clusterer&&map.setBounds(clusterer.getBounds(),{zoomMargin:40})}))})),BX.addCustomEvent(window,"onAjaxSuccess",(function(e){if("OK"!=e){if(initSelects(document),InitOrderCustom(),showPhoneMask("input[autocomplete=tel]"),arAsproOptions.PAGES.CATALOG_PAGE&&$(".catalog_detail").length&&!$(".fast_view_frame").length){const leftBlock=$(".main-catalog-wrapper > .left_block"),rightBlock=$(".right_block");!leftBlock.length&&rightBlock.hasClass("wide_N")?rightBlock.removeClass("wide_N").addClass("wide_Y"):leftBlock.length&&rightBlock.hasClass("wide_Y")&&rightBlock.removeClass("wide_Y").addClass("wide_N"),$(".bx_filter").remove(),InitFlexSlider(),InitOwlSlider()}arAsproOptions.PAGES.CATALOG_PAGE&&(initCountdown(),void 0!==window.stickySidebar&&window.stickySidebar.updateSticky()),arAsproOptions.PAGES.ORDER_PAGE&&orderActions(e),e&&"object"==typeof e&&"action"in e&&"ajaxContentLoadedTab"===e.action&&lazyLoadPagenBlock(),InitStickySideBar()}})),BX.addCustomEvent(window,"OnBasketChange",(function(e){if(arAsproOptions.PAGES.BASKET_PAGE){var summ=0,title="";void 0!==BX.Sale?void 0!==BX.Sale.BasketComponent&&(summ=BX.Sale.BasketComponent.result.allSum,title=BX.message("JS_BASKET_COUNT_TITLE").replace("SUMM",summ)):(summ=$("#allSum_FORMATED").html().replace(/ /g," "),title=BX.message("JS_BASKET_COUNT_TITLE").replace("SUMM",summ)),$(".js-basket-block .wrap .prices").length&&$(".js-basket-block .wrap .prices").html(summ),$("a.basket-link.basket").length&&$("a.basket-link.basket").attr("title",title),$(".basket_fly .opener .basket_count").length&&$(".basket_fly .opener .basket_count").attr("title",title)}}))})),funcDefined("setBasketStatusBtn")||(setBasketStatusBtn=function(type){var bSync=void 0!==typeof type;if("undefined"!=typeof arBasketAspro){if("BASKET"in arBasketAspro&&arBasketAspro.BASKET)for(var i in arBasketAspro.BASKET)$(".to-cart[data-item="+i+"]").hide(),$(".counter_block[data-item="+i+"]").closest(".counter_block_inner").hide(),$(".counter_block[data-item="+i+"]").hide(),$(".in-cart[data-item="+i+"]").show(),$(".in-cart[data-item="+i+"]").closest(".button_block").addClass("wide"),$(".wish_item.to[data-item="+i+"]").show(),$(".wish_item.in[data-item="+i+"]").hide(),$(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .basket_item_add").length&&($(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .basket_item_add").addClass("added"),$(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .basket_item_add").attr("title",$(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .basket_item_add").data("title2")));if("SERVICES"in arBasketAspro&&($needFillServices=$(".buy_services_wrap[data-parent_product]").length,arBasketAspro.SERVICES&&$needFillServices))for(var i in arBasketAspro.SERVICES){var serviceItem=$(".buy_services_wrap[data-parent_product="+arBasketAspro.SERVICES[i].link_id+"] .services-item[data-item_id="+arBasketAspro.SERVICES[i].item_id+"]");serviceItem.find('input[name="buy_switch_services"]').prop("checked",!0),serviceItem.find('.counter_block input[name="quantity"]').val(arBasketAspro.SERVICES[i].quantity),serviceItem.addClass("services_on")}if("DELAY"in arBasketAspro&&arBasketAspro.DELAY)for(var i in arBasketAspro.DELAY)$(".wish_item.to[data-item="+i+"]").hide(),$(".wish_item.in[data-item="+i+"]").show(),$(".wish_item[data-item="+i+"]").find(".value.added").length&&($(".wish_item[data-item="+i+"]").find(".value").hide(),$(".wish_item[data-item="+i+"]").find(".value.added").css("display","block")),$(".in-cart[data-item="+i+"]").hide(),$(".to-cart[data-item="+i+"]").show(),$(".to-cart[data-item="+i+"]").closest(".counter_wrapp").find(".counter_block_inner").show(),$(".to-cart[data-item="+i+"]").closest(".counter_wrapp").find(".counter_block").show(),$(".to-cart[data-item="+i+"]").closest(".button_block").removeClass("wide"),$(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .wish_item_add").length&&($(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .wish_item_add").addClass("added"),$(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .wish_item_add").attr("title",$(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .wish_item_add").data("title2")));if("SUBSCRIBE"in arBasketAspro&&arBasketAspro.SUBSCRIBE)for(var i in arBasketAspro.SUBSCRIBE)$(".to-subscribe[data-item="+i+"]").hide(),$(".in-subscribe[data-item="+i+"]").show();if("COMPARE"in arBasketAspro&&arBasketAspro.COMPARE)for(var i in arBasketAspro.COMPARE)$(".compare_item.to[data-item="+i+"]").hide(),$(".compare_item.in[data-item="+i+"]").show(),$(".compare_item[data-item="+i+"]").find(".value.added").length&&($(".compare_item[data-item="+i+"]").find(".value").hide(),$(".compare_item[data-item="+i+"]").find(".value.added").css("display","block")),$(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .compare_item_add").length&&($(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .compare_item_add").addClass("added"),$(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .compare_item_add").attr("title",$(".banner_buttons.with_actions .wraps_buttons[data-id="+i+"] .compare_item_add").data("title2")))}}),funcDefined("togglePropBlock")||(togglePropBlock=function(className){var all_props_block=className.closest(".bx_filter_parameters_box_container").find(".hidden_values");all_props_block.length&&(className.hasClass("inner_text")||className.hasClass("expand_block"))&&(all_props_block.is(":visible")?(className.text(BX.message("FILTER_EXPAND_VALUES")),all_props_block.hide()):(className.text(BX.message("FILTER_HIDE_VALUES")),all_props_block.show()))}),funcDefined("showPhoneMask")||(showPhoneMask=function(className){$(className).inputmask("mask",{mask:arAsproOptions.THEME.PHONE_MASK,showMaskOnHover:!1})}),funcDefined("getActualBasket")||(getActualBasket=function(iblockID,type,sync){var data="";void 0!==iblockID&&iblockID&&(data={iblockID:iblockID}),$.ajax({type:"GET",url:arAsproOptions.SITE_DIR+"ajax/actualBasket.php",data:data,success:function(data){if($(".
3199js_ajax").length||$("body").append('<div class="js_ajax"></div>'),$(".js_ajax").html(data),void 0!==sync&&setBasketStatusBtn(!0),void 0!==typeof type){var eventdata={action:"loadActualBasket"+type};BX.onCustomEvent("onCompleteAction",[eventdata])}}})}),funcDefined("reloadBasketCounters")||(reloadBasketCounters=function(count,sync){var data="";count?$(".basket-link.basket .count, .wraps_icon_block.basket .count .items > span").text(count):$.ajax({type:"GET",url:arAsproOptions.SITE_DIR+"ajax/actualBasket.php",data:"",success:function(data){$(".js_ajax").length||$("body").append('<div class="js_ajax"></div>'),$(".js_ajax").html(data);var countServices=void 0!==arBasketAspro.SERVICES?Object.keys(arBasketAspro.SERVICES).length:0;$(".basket-link.basket .count, .wraps_icon_block.basket .count .items > span").text(Object.keys(arBasketAspro.BASKET).length+countServices),$(".basket-link.delay .count, .wraps_icon_block.delay .count .items > span").text(Object.keys(arBasketAspro.DELAY).length),$(".basket-link.compare .count, .wraps_icon_block.compare .count .items > span").text(Object.keys(arBasketAspro.COMPARE).length),void 0!==sync&&setBasketStatusBtn(!0)}})}),checkMobileRegion=function(){$(".confirm_region").length&&($(".top_mobile_region").length||$('<div class="top_mobile_region"><div class="confirm_wrapper"><div class="confirm_region"></div></div></div>').insertBefore($("#mobileheader")),$(".top_mobile_region .confirm_region").html($(".confirm_region").html()))},funcDefined("orderActions")||(orderActions=function(e){if(arAsproOptions.PAGES.ORDER_PAGE){if($("#bx-soa-order input[autocomplete=tel]").length){for(var i=0;i<BX.Sale.OrderAjaxComponent.result.ORDER_PROP.properties.length;++i)if("Y"==BX.Sale.OrderAjaxComponent.result.ORDER_PROP.properties[i].IS_PHONE)var arPropertyPhone=BX.Sale.OrderAjaxComponent.result.ORDER_PROP.properties[i];if(void 0!==BX.Sale.OrderAjaxComponent&&"object"==typeof BX.Sale.OrderAjaxComponent&&"object"==typeof arPropertyPhone&&arPropertyPhone){BX.Sale.OrderAjaxComponent.validatePhone=function(input,arProperty,fieldName){if(!input||!arProperty)return[];var value=input.value,errors=[],name=BX.util.htmlspecialchars(arProperty.NAME),field=BX.message("SOA_FIELD")+' "'+name+'"',re;if("Y"==arProperty.REQUIRED&&0==value.length&&errors.push(field+" "+BX.message("SOA_REQUIRED")),"Y"==arProperty.IS_PHONE&&value.length>0){function regexpPhone(value,element,regexp){var re;return new RegExp(regexp).test(value)}var validPhone;regexpPhone($(input).val(),$(input),arAsproOptions.THEME.VALIDATE_PHONE_MASK)||errors.push(field+" "+BX.message("JS_FORMAT_ORDER"))}return errors},BX.Sale.OrderAjaxComponent.getValidationDataPhone=function(arProperty,propContainer){var data={},inputs;switch(arProperty.TYPE){case"STRING":if(data.action="blur",data.func=BX.delegate((function(input,fieldName){return this.validatePhone(input,arProperty,fieldName)}),this),inputs=propContainer.querySelectorAll("input[type=tel]"),$(inputs).length){data.inputs=inputs;break}}return data},BX.Sale.OrderAjaxComponent.bindValidationPhone=function(id,propContainer){if(this.validation.properties&&this.validation.properties[id]){var arProperty=this.validation.properties[id],data=this.getValidationDataPhone(arProperty,propContainer),i,k;if(data&&data.inputs&&data.action)for(i=0;i<$(data.inputs).length;i++)if(BX.type.isElementNode(data.inputs[i]))BX.bind(data.inputs[i],data.action,BX.delegate((function(){this.isValidProperty(data)}),this));else for(k=0;k<$(data.inputs[i]).length;k++)BX.bind(data.inputs[i][k],data.action,BX.delegate((function(){this.isValidProperty(data)}),this))}},BX.Sale.OrderAjaxComponent.isValidPropertiesBlock=function(excludeLocation){if(!this.options.propertyValidation)return[];var props=this.orderBlockNode.querySelectorAll(".bx-soa-customer-field[data-property-id-row]"),propsErrors=[],id,propContainer,arProperty,data,i;for(i=0;i<props.length;i++)id=props[i].getAttribute("data-property-id-row"),excludeLocation&&this.locations[id]||(propContainer=props[i].querySelector(".soa-property-container"))&&(arProperty=this.validation.properties[id],data=this.getValidationData(arProperty,propContainer),dataPhone=this.getValidationDataPhone(arProperty,propContainer),data=$.extend({},data,dataPhone),propsErrors=propsErrors.concat(this.isValidProperty(data,!0)));return propsErrors};var input,inputHTML=(input=$("input[autocomplete=tel]"))[0].outerHTML,value=input.val(),newInput=input[0].outerHTML.replace('type="text"','type="tel" value="'+value+'"');$(input).length<2&&(input.hide(),$(newInput).insertAfter(input)),showPhoneMask("input[autocomplete=tel][type=tel]"),$("input[autocomplete=tel][type=tel]").on("blur",(function(){var $this=$(this),value=$this.val();$this.parent().find("input[autocomplete=tel][type=text]").val(value)})),BX.Sale.OrderAjaxComponent.bindValidationPhone(arPropertyPhone.ID,$("input[autocomplete=tel]").parent()[0])}}if($(".bx-soa-cart-total").length){if($(".change_basket").length||$(".bx-soa-cart-total").prepend('<div class="change_basket">'+BX.message("BASKET_CHANGE_TITLE")+'<a href="'+arAsproOptions.SITE_DIR+'basket/" class="change_link">'+BX.message("BASKET_CHANGE_LINK")+"</a></div>"),"object"==typeof BX.Sale.OrderAjaxComponent){if("N"!==arAsproOptions.COUNTERS.USE_FULLORDER_GOALS&&void 0===BX.Sale.OrderAjaxComponent.reachgoalbegin){BX.Sale.OrderAjaxComponent.reachgoalbegin=!0;var eventdata={goal:"goal_order_begin"};BX.onCustomEvent("onCounterGoals",[eventdata])}if(BX.Sale.OrderAjaxComponent.hasOwnProperty("params")&&($(".bx-soa-cart-total .change_link").attr("href",BX.Sale.OrderAjaxComponent.params.PATH_TO_BASKET),arAsproOptions.PRICES.MIN_PRICE&&arAsproOptions.PRICES.MIN_PRICE>Number(BX.Sale.OrderAjaxComponent.result.TOTAL.ORDER_PRICE)&&($('<div class="fademask_ext"></div>').appendTo($("body")),location.href=BX.Sale.OrderAjaxComponent.params.PATH_TO_BASKET)),$("#bx-soa-auth").length&&!$("#bx-soa-auth .redisigned").length){var $label,$label;if($('input[name="USER_LOGIN"]').length)($label=$('input[name="USER_LOGIN"]').closest(".bx-authform-formgroup-container").find(".bx-authform-label-container")).find(".bx-authform-starrequired").length||$label.html($label.html()+'<span class="bx-authform-starrequired"> *</span>');if($('input[name="USER_PASSWORD"]').length)($label=$('input[name="USER_PASSWORD"]').closest(".bx-authform-formgroup-container").find(".bx-authform-label-container")).find(".bx-authform-starrequired").length||$label.html($label.html()+'<span class="bx-authform-starrequired"> *</span>');if($('input[name="USER_REMEMBER"]').length){var $label=$('input[name="USER_REMEMBER"]').attr("id","ORDER_AUTH_USER_REMEMBER").closest("label").attr("for","ORDER_AUTH_USER_REMEMBER"),html=$
3199('input[name="USER_REMEMBER"]').attr("id","ORDER_AUTH_USER_REMEMBER").wrap('<div id="trem_"></div>').parent().html();$("#trem_").remove(),$label.html($label.text()),$(html).insertBefore($label).closest(".bx-authform-formgroup-container").addClass("filter");var html=$("#bx-soa-auth .bx-authform>a").addClass("pull-right").addClass("forgot").wrap('<div id="trem_"></div>').parent().html();$("#trem_").remove(),$(html).insertAfter($label.closest(".checkbox"))}$("#bx-soa-auth .bx-soa-reg-block .btn").removeClass("btn-default").removeClass("btn-lg").addClass("transparent").addClass("btn-lg").text(BX.message("ORDER_REGISTER_BUTTON")),$("#bx-soa-auth").append('<div class="redisigned hidden></div>')}if($(".bx-soa-section-content.reg").length&&!$(".bx-soa-section-content.reg .redisigned").length){var bRebindRegSubmit=!1;if("Y"===arAsproOptions.THEME.LOGIN_EQUAL_EMAIL&&(bRebindRegSubmit=!0,$('input[name="NEW_LOGIN"]').length&&$('input[name="NEW_LOGIN"]').closest(".bx-authform-formgroup-container").hide()),"Y"===arAsproOptions.THEME.PERSONAL_ONEFIO&&(bRebindRegSubmit=!0,$('input[name="NEW_NAME"]').length&&$('input[name="NEW_NAME"]').closest(".bx-authform-formgroup-container").find(".bx-authform-label-container").html(BX.message("ORDER_FIO_LABEL")+'<span class="bx-authform-starrequired"> *</span>'),$('input[name="NEW_LAST_NAME"]').length&&($('input[name="NEW_LAST_NAME"]').closest(".bx-authform-formgroup-container").hide(),$('input[name="NEW_LAST_NAME"]').val(" "))),bRebindRegSubmit){var $regSubmit=$("#do_register~input[type=submit]");$regSubmit.length&&(BX.unbindAll($regSubmit[0]),$(document).on("click","#do_register~input[type=submit]",(function(e){if(e.preventDefault(),e.stopImmediatePropagation(),"Y"===arAsproOptions.THEME.LOGIN_EQUAL_EMAIL){var email=BX.findChild(BX("bx-soa-auth"),{attribute:{name:"NEW_EMAIL"}},!0,!1),login=BX.findChild(BX("bx-soa-auth"),{attribute:{name:"NEW_LOGIN"}},!0,!1);login&&email&&(login.value=email.value)}BX("do_register").value="Y",BX.Sale.OrderAjaxComponent.sendRequest("showAuthForm")})))}var $captcha=$(".bx-soa-section-content.reg").find(".bx-captcha");if($captcha.length&&($captcha.addClass("captcha_image"),$captcha.append('<div class="captcha_reload"></div>'),$captcha.closest(".bx-authform-formgroup-container").addClass("captcha-row").find("input[name=captcha_word]").closest(".bx-authform-input-container").addClass("captcha_input")),$(".bx-authform-input-container:not(.eye-password-ignore) [type=password]").each((function(item){$(this).closest(".bx-authform-input-container").addClass("eye-password")})),$("input[name=NEW_NAME]").length&&$("input[name=NEW_LAST_NAME]").length&&"Y"!==arAsproOptions.THEME.PERSONAL_ONEFIO&&!$("input[name=NEW_NAME]").closest(".bx-authform-formgroup-container.col
3199-md-6").length){$("input[name=NEW_NAME],input[name=NEW_LAST_NAME]").closest(".bx-authform-formgroup-container").addClass("col-md-6");var html=$("input[name=NEW_LAST_NAME]").closest(".bx-authform-formgroup-container").wrap('<div id="trem_"></div>').parent().html();$("#trem_").remove(),$(html).insertAfter($("input[name=NEW_NAME]").closest(".bx-authform-formgroup-container").wrap('<div class="row"></div>'))}if($("input[name=NEW_EMAIL]").length&&$("input[name=PHONE_NUMBER]").length&&!$("input[name=PHONE_NUMBER]").closest(".bx-authform-formgroup-container.col-md-6").length){$("input[name=NEW_EMAIL],input[name=PHONE_NUMBER]").closest(".bx-authform-formgroup-container").addClass("col-md-6");var html=$("input[name=PHONE_NUMBER]").closest(".bx-authform-formgroup-container").wrap('<div id="trem_"></div>').parent().html();$("#trem_").remove(),$(html).insertAfter($("input[name=NEW_EMAIL]").closest(".bx-authform-formgroup-container").wrap('<div class="row"></div>'))}if($("input[name=NEW_PASSWORD]").length&&$("input[name=NEW_PASSWORD_CONFIRM]").length&&!$("input[name=NEW_PASSWORD]").closest(".bx-authform-formgroup-container.col
3199-md-6").length){$("input[name=NEW_PASSWORD],input[name=NEW_PASSWORD_CONFIRM]").closest(".bx-authform-formgroup-container").addClass("col-md-6");var html=$("input[name=NEW_PASSWORD_CONFIRM]").closest(".bx-authform-formgroup-container").wrap('<div id="trem_"></div>').parent().html();$("#trem_").remove(),$(html).insertAfter($("input[name=NEW_PASSWORD]").closest(".bx-authform-formgroup-container").wrap('<div class="row"></div>'))}if($("input[name=PHONE_NUMBER]").length){var input,inputHTML=(input=$("input[name=PHONE_NUMBER]"))[0].outerHTML,value=input.val(),newInput=input[0].outerHTML.replace('type="text"','type="tel" value="'+value+'"'),$label;if($(input).length<2)input.hide(),$(newInput).insertAfter(input),showPhoneMask("input[name=PHONE_NUMBER][type=tel]"),$("input[name=PHONE_NUMBER][type=tel]").on("blur",(function(){var $this=$(this),value=$this.val();$this.parent().find("input[name=PHONE_NUMBER][type=text]").val(value)})),($label=$("input[name=PHONE_NUMBER][type=tel]").closest(".bx-authform-formgroup-container").find(".bx-authform-label-container")).html(BX.message("ORDER_PHONE_LABEL")+($label.find(".bx-authform-starrequired").length?'<span class="bx-authform-starrequired"> *</span>':""))}$(".bx-soa-section-content.reg").append('<div class="redisigned hidden></div>')}var asproShowLicence="Y"==arAsproOptions.THEME.SHOW_LICENCE,asproShowOffer="Y"==arAsproOptions.THEME.SHOW_OFFER,tmpAction,tmpActionData;if($(".bx-soa-cart-total-line-total").length&&(asproShowLicence||asproShowOffer)&&(void 0===e&&(BX.Sale.OrderAjaxComponent.state_licence="Y"==arAsproOptions.THEME.LICENCE_CHECKED?"checked":"",BX.Sale.OrderAjaxComponent.state_offer="Y"==arAsproOptions.THEME.OFFER_CHECKED?"checked":""),(!$(".licence_block.filter").length&&asproShowLicence||!$(".offer_block.filter").length&&asproShowOffer)&&($('<div class="form"><div class="license_order_wrap"></div></div>').insertBefore($("#bx-soa-orderSave")),!$(".licence_block.filter").length&&asproShowLicence&&$('<div class="licence_block filter label_block onoff"><label data-for="licenses_order" class="hidden error">'+BX.message("JS_REQUIRED_LICENSES")+'</label><input type="checkbox" name="licenses_order" required '+BX.Sale.OrderAjaxComponent.state_licence+' value="Y"><label data-for="licenses_order" class="license">'+BX.message("LICENSES_TEXT")+"</label></div>").appendTo($(".license_order_wrap")),!$(".offer_block.filter").length&&asproShowOffer&&$('<div class="offer_block filter label_block onoff"><label data-for="offer_order" class="hidden error">'+BX.message("JS_REQUIRED_OFFER")+'</label><input type="checkbox" name="offer_order" required '+BX.Sale.OrderAjaxComponent.state_offer+' value="Y"><label data-for="offer_order" class="offer_pub">'+BX.message("OFFER_TEXT")+"</label></div>").appendTo($(".license_order_wrap")),asproShowLicence&&$(document).on("click",".bx-soa .licence_block label.license",(function(){var id=$(this).data("for");$(".bx-soa .licence_block label.error").addClass("hidden"),$("input[name="+id+"]").prop("checked")?($("input[name="+id+"]").prop("checked",""),BX.Sale.OrderAjaxComponent.state_licence=""):($("input[name="+id+"]").prop("checked","checked"),BX.Sale.OrderAjaxComponent.state_licence="checked")})),asproShowOffer&&$(document).on("click",".bx-soa .offer_block label.offer_pub",(function(){var id=$(this).data("for");$(".bx-soa .offer_block label.error").addClass("hidden"),$("input[name="+id+"]").prop("checked")?($("input[name="+id+"]").prop("checked",""),BX.Sale.OrderAjaxComponent.state_offer=""):($("input[name="+id+"]").prop("checked","checked"),BX.Sale.OrderAjaxComponent.state_offer="checked")})),$(document).on("click",".lic_condition a",(function(){if(BX.hasClass(BX("bx-soa-order"),"orderform--v1"))BX.Sale.OrderAjaxComponent.isValidForm()&&BX.Sale.OrderAjaxComponent.animateScrollTo($(".licence_block, .offer_block")[0],800,50);else{var iCountErrors=BX.Sale.OrderAjaxComponent.isValidPropertiesBlock().length;BX.Sale.OrderAjaxComponent.activeSectionId&&iCountErrors||BX.Sale.OrderAjaxComponent.animateScrollTo($(".licence_block, .offer_block")[0],800,50)}}))),$("#bx-soa-orderSave, .bx-soa-cart-total-button-container").addClass("lic_condition"),void 0===BX.Sale.OrderAjaxComponent.oldClickOrderSaveAction&&void 0!==BX.Sale.OrderAjaxComponent.clickOrderSaveAction&&(BX.Sale.OrderAjaxComponent.oldClickOrderSaveAction=BX.Sale.OrderAjaxComponent.clickOrderSaveAction,BX.Sale.OrderAjaxComponent.clickOrderSaveAction=function(event){!$('input[name="licenses_order"]').prop("checked")&&asproShowLicence||!$('input[name="offer_order"]').prop("checked")&&asproShowOffer?($('input[name="licenses_order"]').prop("checked")||$(".bx-soa .licence_block label.error").removeClass("hidden"),$('input[name="offer_order"]').prop("checked")||$(".bx-soa .offer_block label.error").removeClass("hidden")):($(".bx-soa .licence_block label.error").addClass("hidden"),$(".bx-soa .offer_block label.error").addClass("hidden"),BX.Sale.OrderAjaxComponent.isValidForm()&&("function"==typeof BX.Sale.OrderAjaxComponent.allowOrderSave&&BX.Sale.OrderAjaxComponent.allowOrderSave(),"function"==typeof BX.Sale.OrderAjaxComponent.doSaveAction?BX.Sale.OrderAjaxComponent.doSaveAction():BX.Sale.OrderAjaxComponent.oldClickOrderSaveAction(event)))},BX.Sale.OrderAjaxComponent.orderSaveBlockNode.querySelector(".checkbox")&&"object"==typeof browser&&("msie"in browser&&browser.msie?$(BX.Sale.OrderAjaxComponent.orderSaveBlockNode.querySelector(".checkbox")).remove():BX.Sale.OrderAjaxComponent.orderSaveBlockNode.querySelector(".checkbox").remove()),BX.unbindAll(BX.Sale.OrderAjaxComponent.totalInfoBlockNode.querySelector("a.btn-order-save")),BX.unbindAll(BX.Sale.OrderAjaxComponent.mobileTotalBlockNode.querySelector("a.btn-order-save")),BX.unbindAll(BX.Sale.OrderAjaxComponent.orderSaveBlockNode.querySelector("a")),BX.bind(BX.Sale.OrderAjaxComponent.totalInfoBlockNode.querySelector("a.btn-order-save"),"click",BX.proxy(BX.Sale.OrderAjaxComponent.clickOrderSaveAction,BX.Sale.OrderAjaxComponent)),BX.bind(BX.Sale.OrderAjaxComponent.mobileTotalBlockNode.querySelector("a.btn-order-save"),"click",BX.proxy(BX.Sale.OrderAjaxComponent.clickOrderSaveAction,BX.Sale.OrderAjaxComponent)),BX.bind(BX.Sale.OrderAjaxComponent.orderSaveBlockNode.querySelector("a"),"click",BX.proxy(BX.Sale.OrderAjaxComponent.clickOrderSaveAction,BX.Sale.OrderAjaxComponent)))),$(window).scroll(),checkCounters()&&void 0===BX.Sale.OrderAjaxComponent.oldSaveOrder){var saveFunc=void 0!==BX.Sale.OrderAjaxComponent.saveOrder?"saveOrder":"saveOrderWithJson";
3199void 0!==BX.Sale.OrderAjaxComponent[saveFunc]&&(BX.Sale.OrderAjaxComponent.oldSaveOrder=BX.Sale.OrderAjaxComponent[saveFunc],BX.Sale.OrderAjaxComponent[saveFunc]=function(result){var res=BX.parseJSON(result);res&&res.order?res.order.SHOW_AUTH?BX.Sale.OrderAjaxComponent.oldSaveOrder(result):res.order.REDIRECT_URL&&res.order.REDIRECT_URL.length&&(!res.order.ERROR||BX.util.object_keys(res.order.ERROR).length<1)&&(arMatch=res.order.REDIRECT_URL.match(/ORDER_ID\=[^&=]*/g))&&arMatch.length&&(_id=arMatch[0].replace(/ORDER_ID\=/g,"",arMatch[0]))?$.ajax({url:arAsproOptions.SITE_DIR+"ajax/check_order.php",dataType:"json",type:"POST",data:{ID:_id},success:function(id){parseInt(id)?purchaseCounter(parseInt(id),BX.message("FULL_ORDER"),(function(d){"undefined"!=typeof localStorage&&"object"==typeof d&&localStorage.setItem("gtm_e_"+_id,JSON.stringify(d)),BX.Sale.OrderAjaxComponent.oldSaveOrder(result)})):BX.Sale.OrderAjaxComponent.oldSaveOrder(result)},error:function(){BX.Sale.OrderAjaxComponent.oldSaveOrder(result)}}):BX.Sale.OrderAjaxComponent.oldSaveOrder(result):BX.Sale.OrderAjaxComponent.oldSaveOrder(result)})}if($("#bx-soa-order-form .captcha-row").length&&window.asproRecaptcha&&window.asproRecaptcha.key&&"invisible"==window.asproRecaptcha.params.recaptchaSize&&($("#bx-soa-order-form .captcha-row").addClass("invisible"),"n"===asproRecaptcha.params.recaptchaLogoShow&&$("#bx-soa-order-form .captcha-row").addClass("logo_captcha_n")),$("#bx-soa-order-form .captcha-row.invisible").length)if(void 0===BX.Sale.OrderAjaxComponent.oldSendRequest&&void 0!==BX.Sale.OrderAjaxComponent.sendRequest)BX.Sale.OrderAjaxComponent.oldSendRequest=BX.Sale.OrderAjaxComponent.sendRequest,BX.Sale.OrderAjaxComponent.sendRequest=function(action,actionData){var bSend=!0;if($("#bx-soa-order-form .captcha-row.invisible").length&&window.renderRecaptchaById&&window.asproRecaptcha&&window.asproRecaptcha.key&&"invisible"==window.asproRecaptcha.params.recaptchaSize){var form=BX("bx-soa-order-form");$(form).find(".g-recaptcha").length&&($(form).find(".g-recaptcha-response").val()?bSend=!0:"undefined"!=typeof grecaptcha?(grecaptcha.execute($(form).find(".g-recaptcha").data("widgetid")),bSend=!1):bSend=!1)}bSend?BX.Sale.OrderAjaxComponent.oldSendRequest(action,actionData):(tmpAction=action,tmpActionData=actionData)},$(document).on("submit","#bx-soa-order-form",(function(e){e.preventDefault(),void 0===tmpAction&&void 0===tmpActionData||(BX.Sale.OrderAjaxComponent.sendRequest(tmpAction,tmpActionData),tmpAction=void 0,tmpActionData=void 0)}))}$(".bx-ui-sls-quick-locations.quick-locations").on("click",(function(){$(this).siblings().removeClass("active"),$(this).addClass("active")}))}}}),funcDefined("basketActions")||(basketActions=function(){if(arAsproOptions.PAGES.BASKET_PAGE){if(checkMinPrice(),void 0!==BX.Sale&&"object"==typeof BX.Sale&&void 0!==BX.Sale.BasketComponent&&"object"==typeof BX.Sale.BasketComponent&&$(document).on("click",".basket-item-actions-remove",(function(){var basketID=$(this).closest(".basket-items-list-item-container").data("id");BX.Sale.BasketComponent.items&&BX.Sale.BasketComponent.items[basketID]&&delFromBasketCounter(BX.Sale.BasketComponent.items[basketID].PRODUCT_ID)})),location.hash){var hash=location.hash.substring(1);$("#basket_toolbar_button_"+hash).length&&$("#basket_toolbar_button_"+hash).trigger("click"),$('.basket-items-list-header-filter a[data-filter="'+hash+'"]').length&&$('.basket-items-list-header-filter a[data-filter="'+hash+'"]')[0].click()}var svg_cross='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8"><path id="Rounded_Rectangle_568_copy_13" data-name="Rounded Rectangle 568 copy 13" class="cls-1" d="M1615.4,589l2.32,2.315a0.987,0.987,0,0,1,0,1.4,1,1,0,0,1-1.41,0L1614,590.4l-2.31,2.315a1,1,0,0,1-1.41,0,0.987,0.987,0,0,1,0-1.4L1612.6,589l-2.32-2.314a0.989,0.989,0,0,1,0-1.4,1,1,0,0,1,1.41,0l2.31,2.315,2.31-2.315a1,1,0,0,1,1.41,0,0.989,0.989,0,0,1,0,1.4Z" transform="translate(-1610 -585)"/></svg>';if($(".bx_sort_container").append('<div class="top_control basket_action"><span style="opacity:0;
3199" class="delete_all colored_theme_hover_text remove_all_basket">'+svg_cross+BX.message("BASKET_CLEAR_ALL_BUTTON")+"</span></div>"),$(".basket-items-list-header-filter").length){var cur_index;$(".basket-items-list-header-filter").append('<div class="top_control basket_action"><span style="opacity:1;" class="delete_all colored_theme_hover_text remove_all_basket">'+svg_cross+BX.message("BASKET_CLEAR_ALL_BUTTON")+"</span></div>"),3==(cur_index=$(".basket-items-list-header-filter > a.active").index())&&(cur_index=2),"all"==$(".basket-items-list-header-filter > a.active").data("filter")&&(cur_index="all"),$(".basket-items-list-header-filter .top_control .delete_all").data("type",cur_index),$(".basket-items-list-header-filter > a").on("click",(function(){var index=$(this).index();3==index&&(index=2),"all"==$(this).data("filter")&&(index="all"),$(".basket-items-list-header-filter .top_control .delete_all").data("type",index)}))}else{var cur_index=$(".bx_sort_container a.current").index();$(".bx_sort_container .top_control .delete_all").data("type",cur_index),$(".bx_ordercart > div:eq("+cur_index+") table tbody tr td.item").length&&$(".bx_sort_container .top_control .delete_all").css("opacity",1),$(".bx_ordercart .bx_ordercart_coupon #coupon").wrap('<div class="input"></div>'),$(".bx_sort_container > a").on("click",(function(){var index=$(this).index();$(".bx_sort_container .top_control .delete_all").data("type",index),$(".bx_ordercart > div:eq("+index+") table tbody tr td.item").length?$(".bx_sort_container .top_control .delete_all").css("opacity",1):$(".bx_sort_container .top_control .delete_all").css("opacity",0)}))}$(".basket_print").on("click",(function(){window.print()})),$(".delete_all").on("click",(function(){if("N"!==arAsproOptions.COUNTERS.USE_BASKET_GOALS){var eventdata={goal:"goal_basket_clear",params:{type:$(this).data("type")}};BX.onCustomEvent("onCounterGoals",[eventdata])}$.post(arAsproOptions.SITE_DIR+"ajax/action_basket.php","TYPE="+$(this).data("type")+"&CLEAR_ALL=Y",$.proxy((function(data){location.reload()})))})),$(".bx_item_list_section .bx_catalog_item").sliceHeight({row:".bx_item_list_slide",item:".bx_catalog_item"}),BX.addCustomEvent("onAjaxSuccess",(function(e){checkMinPrice();var errorText=$.trim($("#warning_message").text());$("#basket_items_list .error_text").detach(),""!=errorText&&($("#warning_message").hide().text(""),$("#basket_items_list").prepend('<div class="error_text">'+errorText+"</div>")),"object"==typeof e&&e&&"BASKET_DATA"in e&&($("#ajax_basket").length&&reloadTopBasket("add",$("#ajax_basket"),200,5e3,"Y"),$("#basket_line .basket_fly").length&&basketFly("open","N")),checkCounters("google")&&BX.unbindAll(BX.Sale.BasketComponent.getEntity(BX.Sale.BasketComponent.getCacheNode(BX.Sale.BasketComponent.ids.basketRoot),"basket-checkout-button"))})),checkCounters("google")&&BX.unbindAll(BX.Sale.BasketComponent.getEntity(BX.Sale.BasketComponent.getCacheNode(BX.Sale.BasketComponent.ids.basketRoot),"basket-checkout-button")),$(document).on("click",".bx_ordercart_order_pay_center .checkout, .basket-checkout-section-inner .basket-btn-checkout",(function(){if(checkCounters("google")){const gotoOrder=function(){BX.Sale.BasketComponent.checkOutAction()};checkoutCounter(1,"start order",gotoOrder)}}))}}),funcDefined("checkMinPrice")||(checkMinPrice=function(){if(arAsproOptions.PAGES.BASKET_PAGE){var summ_raw=0,summ=0;if($("#allSum_FORMATED").length){if(summ_raw=$("#allSum_FORMATED").text().replace(/[^0-9\.,]/g,""),summ=parseFloat(summ_raw),$("#basket_items").length){var summ=0;$("#basket_items tr").each((function(){void 0!==$(this).data("item-price")&&$(this).data("item-price")&&(summ+=$(this).data("item-price")*$(this).find("#QUANTITY_INPUT_"+$(this).attr("id")).val())}))}$(".catalog_back").length||$(".bx_ordercart_order_pay_center").prepend('<a href="'+arAsproOptions.PAGES.CATALOG_PAGE_URL+'" class="catalog_back btn btn-default btn-lg white grey">'+BX.message("BASKET_CONTINUE_BUTTON")+"</a>")}if("Y"==arAsproOptions.THEME.SHOW_ONECLICKBUY_ON_BASKET_PAGE&&$(".basket-coupon-section").addClass("smallest"),void 0!==BX.Sale&&void 0!==BX.Sale.BasketComponent&&void 0!==BX.Sale.BasketComponent.result&&(summ=BX.Sale.BasketComponent.result.allSum),arAsproOptions.PRICES.MIN_PRICE)if(arAsproOptions.PRICES.MIN_PRICE>summ){var svgMinPrice='<i class="svg svg-inline-price colored_theme_svg" aria-hidden="true"><svg id="Group_278_copy" data-name="Group 278 copy" xmlns="http://www.w3.org/2000/svg" width="38" height="38" viewBox="0 0 38 38"><path id="Ellipse_305_copy_2" data-name="Ellipse 305 copy 2" class="clswm-1" d="M1851,561a19,19,0,1,1,19-19A19,19,0,0,1,1851,561Zm0-36a17,17,0,1,0,17,17A17,17,0,0,0,1851,525Zm3.97,10.375-0.03.266c-0.01.062-.02,0.127-0.03,0.188l-0.94,7.515h0a2.988,2.988,0,0,1-5.94,0H1848l-0.91-7.525c-0.01-.041-0.01-0.086-0.02-0.128l-0.04-.316h0.01c-0.01-.
3199125-0.04-0.246-0.04-0.375a4,4,0,0,1,8,0c0,0.129-.03.25-0.04,0.375h0.01ZM1851,533a2,2,0,0,0-2,2,1.723,1.723,0,0,0,.06.456L1850,543a1,1,0,0,0,2,0l0.94-7.544A1.723,1.723,0,0,0,1853,535,2,2,0,0,0,1851,533Zm0,14a3,3,0,1,1-3,3A3,3,0,0,1,1851,547Zm0,4a1,1,0,1,0-1-1A1,1,0,0,0,1851,551Z" transform="translate(-1832 -523)"></path> <path class="clswm-2 op-cls" d="M1853,543l-1,1h-2l-1-1-1-8,1-2,1-1h2l1,1,1,2Zm-1,5,1,1v2l-1,1h-2l-1-1v-2l1-1h2Z" transform="translate(-1832 -523)"></path></svg></i>';$(".oneclickbuy.fast_order").length&&$(".oneclickbuy.fast_order").remove(),$(".basket-checkout-container").length?$(".icon_error_wrapper").length||$(".basket-checkout-block.basket-checkout-block-btn").html('<div class="icon_error_wrapper"><div class="icon_error_block">'+svgMinPrice+BX.message("MIN_ORDER_PRICE_TEXT").replace("#PRICE#",jsPriceFormat(arAsproOptions.PRICES.MIN_PRICE))+"</div></div>"):($(".icon_error_wrapper").length||"undefined"==typeof jsPriceFormat||$(".bx_ordercart_order_pay_center").prepend('<div class="icon_error_wrapper"><div class="icon_error_block">'+svgMinPrice+BX.message("MIN_ORDER_PRICE_TEXT").replace("#PRICE#",jsPriceFormat(arAsproOptions.PRICES.MIN_PRICE))+"</div></div>"),$(".bx_ordercart_order_pay .checkout").length&&$(".bx_ordercart_order_pay .checkout").remove())}else $(".icon_error_wrapper").length&&$(".icon_error_wrapper").remove(),$(".basket-checkout-container").length?$(".oneclickbuy.fast_order").length||"Y"!=arAsproOptions.THEME.SHOW_ONECLICKBUY_ON_BASKET_PAGE||$(".basket-btn-checkout.disabled").length||$(".basket-checkout-section-inner").append('<div class="fastorder"><span class="oneclickbuy btn btn-lg fast_order btn-transparent-border-color" onclick="oneClickBuyBasket()">'+BX.message("BASKET_QUICK_ORDER_BUTTON")+"</span></div>"):($(".bx_ordercart_order_pay .checkout").length?$(".bx_ordercart .bx_ordercart_order_pay .checkout").css("opacity","1"):$(".bx_ordercart_order_pay_center").append('<a href="javascript:void(0)" onclick="checkOut();" class="checkout" style="opacity: 1;">'+BX.message("BASKET_ORDER_BUTTON")+"</a>"),$(".oneclickbuy.fast_order").length||"Y"!=arAsproOptions.THEME.SHOW_ONECLICKBUY_ON_BASKET_PAGE||$(".bx_ordercart_order_pay_center").append('<span class="oneclickbuy btn btn-lg fast_order btn-transparent-border-color" onclick="oneClickBuyBasket()">'+BX.message("BASKET_QUICK_ORDER_BUTTON")+"</span>"));else $(".basket-checkout-container").length?$(".oneclickbuy.fast_order").length||"Y"!=arAsproOptions.THEME.SHOW_ONECLICKBUY_ON_BASKET_PAGE||$(".basket-btn-checkout.disabled").length||$(".basket-checkout-section-inner").append('<div class="fastorder"><span class="oneclickbuy btn btn-lg fast_order btn-transparent-border-color" onclick="oneClickBuyBasket()">'+BX.message("BASKET_QUICK_ORDER_BUTTON")+"</span></div>"):($(".bx_ordercart .bx_ordercart_order_pay .checkout").css("opacity","1"),$(".oneclickbuy.fast_order").length||"Y"!=arAsproOptions.THEME.SHOW_ONECLICKBUY_ON_BASKET_PAGE||$(".bx_ordercart_order_pay_center").append('<span class="oneclickbuy btn btn-lg fast_order btn-transparent-border-color" onclick="oneClickBuyBasket()">'+BX.message("BASKET_QUICK_ORDER_BUTTON")+"</span>"));showBasketShareBtn(),showBasketHeadingBtn(),$("#basket-root .basket-checkout-container .basket-checkout-section .basket-checkout-block .basket-btn-checkout"),$("#basket-root .basket-checkout-container").addClass("visible")}});var isFrameDataReceived=!1;void 0!==window.frameCacheVars?(BX.addCustomEvent(window,"onFrameDataRequestFail",(function(response){console.log(response)})),BX.addCustomEvent("onFrameDataReceivedBefore",(function(){pauseYmObserver()})),BX.addCustomEvent("onFrameDataReceived",(function(json){if(initFull(),CheckTopMenuPadding(),CheckTopMenuOncePadding(),CheckTopMenuDotted(),CheckSearchWidth(),checkLinkedArticles(),checkLinkedBlocks(".linked-banners-list"),$(".logo-row.v2").length&&($(window).resize(),setTimeout((function(){CheckTopMenuDotted()}),100)),funcDefined("setNewHeader"))if("object"!=typeof BX||"TYPE_1"==BX.message("TYPE_SKU")&&"Y"==BX.message("HAS_SKU_PROPS")){var objNameWrapper=$(".bx_catalog_item_scu[id]");if(objNameWrapper.length){var id="ob"+objNameWrapper.attr("id").replace("_skudiv","");if(id&&void 0!==window[id]){var obj=window[id].offers[window[id].offerNum];void 0!==obj&&setNewHeader(obj)}}}else setNewHeader();setTimeout(resumeYmObserver,400),isFrameDataReceived=!0}
3199))):$(document).ready(initFull),funcDefined("setHeightBlockSlider")||(setHeightBlockSlider=function(){$(document).find(".specials.tab_slider_wrapp .tabs_content > li.cur").equalize({children:".item-title"}),$(document).find(".specials.tab_slider_wrapp .tabs_content > li.cur").equalize({children:".item_info"}),$(document).find(".specials.tab_slider_wrapp .tabs_content > li.cur").equalize({children:".catalog_item"});var sliderWidth=$(document).find(".specials.tab_slider_wrapp").outerWidth(),iCountTabs;if($(document).find(".specials.tab_slider_wrapp .tabs_content > li.cur").length<=1){$(document).find(".specials.tab_slider_wrapp .tabs_content > li.cur").css("height","");var itemsButtonsHeight=0;$(document).find(".specials.tab_slider_wrapp .tabs_content .tab.cur .tabs_slider li .footer_button").length&&($(document).find(".specials.tab_slider_wrapp .tabs_content .tab.cur .tabs_slider li .footer_button").css("height","auto"),itemsButtonsHeight=$(document).find(".specials.tab_slider_wrapp .tabs_content .tab.cur .tabs_slider li .footer_button").height(),$(document).find(".specials.tab_slider_wrapp .tabs_content .tab.cur .tabs_slider li .footer_button").css("height",""));var tabsContentUnhover=1*$(document).find(".specials.tab_slider_wrapp .tabs_content .tab.cur").height(),tabsContentHover=tabsContentUnhover+itemsButtonsHeight+50;$(document).find(".specials.tab_slider_wrapp .tabs_content .tab.cur").attr("data-unhover",tabsContentUnhover),$(document).find(".specials.tab_slider_wrapp .tabs_content .tab.cur").attr("data-hover",tabsContentHover),$(document).find(".specials.tab_slider_wrapp .tabs_content").height(tabsContentUnhover),$(document).find(".specials.tab_slider_wrapp .tabs_content .tab.cur .flex-viewport").height(tabsContentUnhover)}else $(document).find(".specials.tab_slider_wrapp .tabs_content > li.cur").each((function(){var _th=$(this);_th.css("height","");var itemsButtonsHeight=0;_th.find(".tabs_slider li .footer_button").length&&(_th.find(".tabs_slider li .footer_button").css("height","auto"),itemsButtonsHeight=_th.find(".tabs_slider li .footer_button").height(),_th.find(".tabs_slider li .footer_button").css("height",""));var tabsContentUnhover=1*_th.height(),tabsContentHover=tabsContentUnhover+itemsButtonsHeight+50;_th.attr("data-unhover",tabsContentUnhover),_th.attr("data-hover",tabsContentHover),_th.parent().height(tabsContentUnhover),_th.find(".flex-viewport").height(tabsContentUnhover)}))}),funcDefined("checkTopFilter")||(checkTopFilter=function(){}),funcDefined("checkStickyFooter")||(checkStickyFooter=function(){try{ignoreResize.push(!0),$("#content").css("min-height","");var contentTop=$("#content").offset().top,contentBottom=contentTop+$("#content").outerHeight(),footerTop=0;$("footer").length&&(footerOffset=$("footer").offset().top),$("#content").css("min-height",$(window).height()-contentTop-(0-contentBottom)-$("footer").outerHeight()+"px"),ignoreResize.pop()}catch(e){console.error(e)}}),funcDefined("checkLinkedArticles")||(checkLinkedArticles=function(){try{if($(".linked-blog-list.content .item-views").length){var mobileRow=$(".linked-blog-list").data("mobile_row"),desktopRow=$(".linked-blog-list").data("desktop_row"),parentBlock=$(".ajax_load .js_append"),widthRow=parentBlock.getFloatWidth(),elementWidthRow=parentBlock.find("> .item:eq(0)").getFloatWidth(),elementsCount=parentBlock.find("> .item").length,slice=Math.floor(widthRow/elementWidthRow),rowInsertCount=Math.floor(elementsCount/slice),bCalculateRows=!1;window.matchMedia("(max-width: 767px)").matches?(!mobileRow&&desktopRow&&(mobileRow=desktopRow),mobileRow&&mobileRow<=rowInsertCount&&(rowInsertCount=slice*mobileRow,bCalculateRows=!0)):desktopRow&&desktopRow<=rowInsertCount&&(rowInsertCount=slice*desktopRow,bCalculateRows=!0),bCalculateRows||(rowInsertCount=elementsCount);var linkedBlock=".linked-blog-list",blockInItems=parentBlock.find(linkedBlock);if(blockInItems.length)$(blockInItems).insertAfter(parentBlock.find("> .item:eq("+(rowInsertCount-1)+")")),setTimeout((function(){$(blockInItems).addClass("visible")}),0);else{var cloneBlock=$(linkedBlock).clone(),owlBlock=cloneBlock.find(".owl-carousel-wait");cloneBlock.insertAfter(parentBlock.find("> .item:eq("+(rowInsertCount-1)+")")),owlBlock.removeClass("owl-carousel-wait").addClass("owl-carousel"),setTimeout((function(){cloneBlock.addClass("visible"),InitOwlSlider(),owlBlock.removeClass("loader_circle")}),1)}}}catch(e){console.error(e)}}),funcDefined("checkLinkedBlocks")||(checkLinkedBlocks=function(linkedBlock){linkedBlock||(linkedBlock=".linked-banners-list");try{if($(linkedBlock+".content div").length){var mobileRow=$(linkedBlock).data("mobile_row"),desktopRow=$(linkedBlock).data("desktop_row"),parentBlock=$(".ajax_load .js_append"),widthRow=parentBlock.getFloatWidth(),elementWidthRow=parentBlock.find("> .item:eq(0)").getFloatWidth(),elementsCount=parentBlock.find("> .item").length,slice=Math.floor(widthRow/elementWidthRow),rowInsertCount=Math.floor(elementsCount/slice),bCalculateRows=!1;window.matchMedia("(max-width: 767px)").matches?(!mobileRow&&desktopRow&&(mobileRow=desktopRow),mobileRow&&mobileRow<=rowInsertCount&&(rowInsertCount=slice*mobileRow,bCalculateRows=!0)):desktopRow&&desktopRow<=rowInsertCount&&(rowInsertCount=slice*desktopRow,bCalculateRows=!0),bCalculateRows||(rowInsertCount=elementsCount);var blockInItems=parentBlock.find(linkedBlock);if(blockInItems.length)$(blockInItems).insertAfter(parentBlock.find("> .item:eq("+(rowInsertCount-1)+")")),setTimeout((function(){$(blockInItems).addClass("visible")}),0);else{var cloneBlock=$(linkedBlock).clone(),owlBlock=cloneBlock.find(".owl-carousel-wait");cloneBlock.insertAfter(parentBlock.find("> .item:eq("+(rowInsertCount-1)+")")),owlBlock.removeClass("owl-carousel-wait").addClass("owl-carousel"),setTimeout((function(){cloneBlock.addClass("visible"),InitOwlSlider(),owlBlock.removeClass("loader_circle")}),1)}}}catch(e){console.error(e)}});var timerResize=!1,ignoreResize=[];$(window).resize((function(){CheckPopupTop(),checkLinkedArticles(),checkLinkedBlocks(".linked-banners-list"),ignoreResize.length||(timerResize&&(clearTimeout(timerResize),timerResize=!1),timerResize=setTimeout((function(){BX.onCustomEvent("onWindowResize",!1)}),50))}));var timerScroll=!1,ignoreScroll=[],documentScrollTopLast=$(document).scrollTop(),startScroll=0;$(window).scroll((function(){CheckPopupTop(),documentScrollTopLast=$(document).scrollTop(),SetFixedAskBlock(),ignoreScroll.length||(timerScroll&&(clearTimeout(timerScroll),timerScroll=!1),timerScroll=setTimeout((function(){BX.onCustomEvent("onWindowScroll",!1)}),50))})),BX.addCustomEvent("onWindowResize",(function(eventdata){try{ignoreResize.push(!0),CheckTopMenuPadding(),CheckTopMenuOncePadding(),CheckSearchWidth(),CheckTabActive(),CheckTopMenuFullCatalogSubmenu(),CheckHeaderFixedMenu(),window.matchMedia("(min-width:768px)").matches&&closeYandexMap(),CheckTopMenuDotted(),$("nav.mega-menu.sliced").length&&$("nav.mega-menu.sliced").removeClass("initied"),CheckTopVisibleMenu(),checkScrollToTop(),CheckObjectsSizes(),CheckFlexSli
3199der(),initSly(),"function"==typeof checkMobilePhone&&checkMobilePhone(),checkTopFilter(),"function"==typeof checkMobileFilter&&checkMobileFilter(),arAsproOptions.THEME&&"Y"==arAsproOptions.THEME.COMPACT_FOOTER_MOBILE&&(window.matchMedia("(max-width:767px)").matches?($("footer").addClass("mobile"),$(".bottom-menu .items>.wrap_compact_mobile").addClass("accordion-body collapse"),$(".bottom-menu .items>.item.childs").attr("data-toggle","collapse")):($("footer").removeClass("mobile"),$(".bottom-menu .items>.wrap_compact_mobile").removeClass("accordion-body collapse"),$(".bottom-menu .items>.item.childs").removeAttr("data-toggle"))),void 0!==window.stickySidebar&&(window.matchMedia("(max-width: 991px)").matches?window.stickySidebar.destroy():window.stickySidebar.bindEvents()),$(".flexslider.wsmooth").length&&$(".flexslider.wsmooth").each((function(){$(this).data("flexslider").smoothHeight()})),window.matchMedia("(min-width: 767px)").matches&&$(".wrapper_middle_menu.wrap_menu").removeClass("mobile"),window.matchMedia("(max-width: 767px)").matches&&$(".wrapper_middle_menu.wrap_menu").addClass("mobile"),$("#basket_form").length&&$(window).outerWidth()<=600&&$("#basket_form .tabs_content.basket > li.cur td").each((function(){$(this).css("width","")})),$(".bx_filter_section .bx_filter_select_container").each((function(){var prop_id=$(this).closest(".bx_filter_parameters_box").attr("property_id");$("#smartFilterDropDown"+prop_id).length&&$("#smartFilterDropDown"+prop_id).css("max-width",$(this).width())})),window.matchMedia("(min-width: 768px)").matches?($(".bx_filter .scrollbar").removeClass("mobile-scroll"),$(".bx_filter .srollbar-custom").removeClass("mobile-scroll"),$(".bx_filter .bx_filter_section form .bx_filter_parameters").removeClass("mobile-scroll"),InitScrollBar(),InitCustomScrollBar()):($(".bx_filter .scrollbar").addClass("mobile-scroll").removeClass("scroll-init"),$(".bx_filter .srollbar-custom").addClass("mobile-scroll").removeClass("scroll-init"),$(".bx_filter .bx_filter_section form .bx_filter_parameters").addClass("mobile-scroll").removeClass("scroll-init"),$(".bx_filter .mobile-scroll.scrollbar").length&&$(".bx_filter .mobile-scroll.scrollbar").mCustomScrollbar("destroy"),$(".bx_filter .mobile-scroll.srollbar-custom").length&&$(".bx_filter .mobile-scroll.srollbar-custom").mCustomScrollbar("destroy"))}catch(e){console.log(e)}finally{ignoreResize.pop()}})),BX.addCustomEvent("onWindowScroll",(function(eventdata){try{ignoreScroll.push(!0)}catch(e){}finally{ignoreScroll.pop()}})),BX.addCustomEvent("onSlideInit",(function(eventdata){try{if(ignoreResize.push(!0),eventdata){var slider=eventdata.slider;if(slider){slider.hasClass("small-gallery")&&$(window).resize(),slider.find(".item").removeClass("current");var curSlide=slider.find(".item.flex-active-slide"),curSlideId=curSlide.attr("id"),nav=slider.find(".flex-direction-nav");curSlide.addClass("current"),slider.find(".visible").css("opacity","1"),slider.find(".height0").css("height","auto"),curSlide.hasClass("shown")&&slider.find(".item.clone[id="+curSlideId+"_clone]").addClass("shown"),curSlide.addClass("shown")}}}catch(e){}finally{ignoreResize.pop()}})),BX.addCustomEvent("onCounterGoals",(function(eventdata){if("Y"==arAsproOptions.THEME.YA_GOALS&&arAsproOptions.THEME.YA_COUNTER_ID){var idCounter=arAsproOptions.THEME.YA_COUNTER_ID;if(idCounter=parseInt(idCounter),"object"!=typeof eventdata&&(eventdata={goal:"undefined"}),"string"!=typeof eventdata.goal&&(eventdata.goal="undefined"),idCounter)try{waitCounter(idCounter,50,(function(){var obCounter=window["yaCounter"+idCounter];"object"==typeof obCounter&&obCounter.reachGoal(eventdata.goal)}))}catch(e){console.error(e)}else console.info("Bad counter id!",idCounter)}}));var onCaptchaVerifyinvisible=function(response){$(".g-recaptcha:last").each((function(){var id;void 0!==$(this).attr("data-widgetid")&&response&&($(this).closest("form").find(".g-recaptcha-response").val()||$(this).closest("form").find(".g-recaptcha-response").val(response),$("iframe[src*=recaptcha]").length&&$("iframe[src*=recaptcha]").each((function(){var block=$(this).parent().parent();block.hasClass("grecaptcha-badge")||block.css("width","100%")})),$(this).closest("form").submit())}
3199))},onCaptchaVerifynormal=function(response){$(".g-recaptcha").each((function(){var id=$(this).attr("data-widgetid");void 0!==id&&""!=grecaptcha.getResponse(id)&&$(this).closest("form").find(".recaptcha").valid()}))};function fileInputInit(message,reviews="N"){$("input[type=file]").uniform({fileButtonHtml:BX.message("JS_FILE_BUTTON_NAME"),fileDefaultHtml:message}),$(document).on("change","input[type=file]",(function(){$(this).val()?$(this).closest(".uploader").addClass("files_add"):$(this).closest(".uploader").removeClass("files_add")})),$(".form .add_file").on("click",(function(){var index=$(this).closest(".input").find("input[type=file]").length+1;let inputFormGroup=$(this).closest(".form-group").find(".input");"Y"===reviews?inputFormGroup.append('<input type="file" class="form-control" tabindex="3" id="comment_images" name="comment_images[]" value="" />'):inputFormGroup.append('<input type="file" id="POPUP_FILE" name="FILE_n'+index+'" class="inputfile" value="" />'),$("input[type=file]").uniform({fileButtonHtml:BX.message("JS_FILE_BUTTON_NAME"),fileDefaultHtml:message})}))}function declOfNum(number,titles){var cases;return number+" "+titles[number%100>4&&number%100<20?2:[2,0,1,1,1,2][Math.min(number%10,5)]]}function array_values_js(input){var tmp_arr=new Array,cnt=0;for(key in input)tmp_arr[cnt]=input[key],cnt++;return tmp_arr}BX.addCustomEvent("onSubmitForm",(function(eventdata){try{if(!window.renderRecaptchaById||!window.asproRecaptcha||!window.asproRecaptcha.key)return eventdata.form.submit(),$(eventdata.form).closest(".form").addClass("sending"),!0;if("invisible"!=window.asproRecaptcha.params.recaptchaSize||!$(eventdata.form).find(".g-recaptcha").length)return eventdata.form.submit(),$(eventdata.form).closest(".form").addClass("sending"),!0;if($(eventdata.form).find(".g-recaptcha-response").val())return eventdata.form.submit(),$(eventdata.form).closest(".form").addClass("sending"),!0;if("undefined"==typeof grecaptcha)return!1;grecaptcha.execute($(eventdata.form).find(".g-recaptcha").data("widgetid"))}catch(e){return console.error(e),!0}})),$(document).on("click",".catalog_reviews_extended span.dropdown-select__list-link",(function(){var _this=$(this),ajaxData=_this.data("review_sort_ajax"),container=_this.closest(".blog-comments");containerId=container.attr("id"),void 0!==containerId&&containerId&&(ajaxData.containerId=containerId),void 0!==ajaxData&&(container.addClass("blur"),$.ajax({type:"post",data:ajaxData,success:function(html){$("#reviews_sort_continer").html(html),container.removeClass("blur")}}))})),$(document).on("change",".filter-panel__sort-form input",(function(){const _this=$(this),$form=_this.closest("form")[0],$container=_this.closest(".blog-comments"),method=$form.method,formData=new FormData($form);$container.length&&($container.addClass("blur"),formData.append("containerId",$container.attr("id"))),$.ajax({data:formData,type:method,processData:!1,contentType:!1,success:function(html){$("#reviews_sort_continer").html(html),$container.removeClass("blur")}})})),$(document).on("click",".rating_vote:not(.disable)",(function(){var _this=$(this),action=_this.data("action"),parent=_this.closest(".rating-vote"),commentId=parent.data("comment_id"),userId=parent.data("user_id"),ajaxUrl=parent.data("ajax_url");$.ajax({url:ajaxUrl,dataType:"json",data:{commentId:commentId,action:action,userId:userId},success:function(data){void 0!==data.LIKE&&_this.siblings(".rating-vote-result.like").text(data.LIKE),void 0!==data.DISLIKE&&_this.siblings(".rating-vote-result.dislike").text(data.DISLIKE),void 0!==data.SET_ACTIVE_LIKE&&parent.find(".rating_vote.plus").toggleClass("active"),void 0!==data.SET_ACTIVE_DISLIKE&&parent.find(".rating_vote.minus").toggleClass("active")}})})); 3200/* End */ 3201; 3202; /* Start:"a:4:{s:4:"full";s:66:"/bitrix/templates/aspro_max/js/blocks/blocks.min.js?16586591538843";s:6:"source";s:47:"/bitrix/templates/aspro_max/js/blocks/blocks.js";s:3:"min";s:51:"/bitrix/templates/aspro_max/js/blocks/blocks.min.js";s:3:"map";s:55:"/bitrix/templates/aspro_max/js/blocks/blocks.min.js.map";}"*/ 3203function updateProgressBar(){let allProgressBar="nodelist"===typeofExt(window.asproAllProgressBar)&&window.asproAllProgressBar;if(allProgressBar&&allProgressBar.length){let scrollHeight=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),scrollTop=window.pageYOffset||document.documentElement.scrollTop,clientHeight=document.documentElement.clientHeight,scrollProcent=Math.round(scrollTop/(scrollHeight-clientHeight)*100);if(allProgressBar.length)for(let item=0;item<allProgressBar.length;item++)allProgressBar[item].style.width=scrollProcent+"%"}}InitMenuNavigationAim=function(){var $block=$(".menu-navigation__sections-wrapper .menu-navigation__sections:not(.aim-init)");$block.length&&($block.addClass("aim-init"),BX.loadScript(arAsproOptions.SITE_TEMPLATE_PATH+"/vendor/js/jquery.menu-aim.js",(function(){$block.menuAim({firstActiveRow:!0,rowSelector:"> .menu-navigation__sections-item",activate:function activate(a){var _this=$(a),index=_this.index(),items=_this.closest(".menu-navigation__sections-wrapper").next(),link=_this.find("> a");_this.siblings().find("> a").addClass("dark_link"),link.addClass("colored_theme_text").removeClass("dark_link"),items.find(".parent-items").siblings().hide(),items.find(".parent-items").eq(index).show()},deactivate:function deactivate(a){var _this=$(a),index=_this.index(),items=_this.closest(".menu-navigation__sections-wrapper").next(),link;_this.find("> a").removeClass("colored_theme_text").addClass("dark_link"),items.find(".parent-items").siblings().hide()}})})))},readyDOM((function(){window.asproAllProgressBar=document.querySelectorAll(".header-progress-bar__inner")})),$(document).ready((function(){$(document).on("click",".dropdown-select .dropdown-select__title",(function(){var _this=$(this),menu=_this.parent().find("> .dropdown-select__list"),bVisibleMeu,animate=menu.is(":visible")?"fadeOut":"transition.slide
3203UpIn";_this.hasClass("clicked")||(_this.addClass("clicked"),menu.velocity("stop").velocity(animate,{duration:300,begin:function(){_this.toggleClass("opened")},complete:function(){_this.removeClass("clicked")}}))})),$("html, body").on("mousedown",(function(e){"string"==typeof e.target.className&&e.target.className.indexOf("adm")<0&&(e.stopPropagation(),$(e.target).closest(".dropdown-select").length||$(".dropdown-select .dropdown-select__title.opened").click())})),$(document).on("click",".slide-block .slide-block__head",(function(e){var _this=$(this),menu=_this.siblings(".slide-block__body"),bVisibleMeu=menu.is(":visible"),animate=bVisibleMeu?"slideUp":"slideDown";if(!_this.hasClass("clicked")&&menu.length&&!_this.hasClass("ignore")&&!$(e.target).attr("href")){var type=_this.data("id");_this.addClass("clicked"),bVisibleMeu?$.cookie(type+"_CLOSED","Y"):$.removeCookie(type+"_CLOSED"),menu.velocity("stop").velocity(animate,{duration:150,begin:function(){_this.toggleClass("closed")},complete:function(){_this.removeClass("clicked"),void 0!==window.stickySidebar&&window.stickySidebar.updateSticky()}})}})),"SelectOfferProp"in window||"function"==typeof window.SelectOfferProp||(SelectOfferProp=function(){var _this=$(this),obParams={},obSelect={},objUrl=parseUrlQuery(),add_url="",selectMode=!!_this.hasClass("list_values_wrapper"),container=_this.closest(".bx_catalog_item_scu"),img=_this.closest(".item-parent").find(".thumb img"),bDetail=_this.closest(".product-main").length;obParams={PARAMS:bDetail?$(".js-sku-config").data("params"):_this.closest(".js_wrapper_items").data("params"),ID:container.data("offer_id"),SITE_ID:container.data("site_id"),LINK_ID:container.data("id")+"_"+(bDetail?"detail":_this.closest(".cur").data("code")),IBLOCK_ID:container.data("offer_iblockid"),IBLOCK_ID_PARENT:container.data("iblockid"),PROPERTY_ID:container.data("propertyid"),DEPTH:_this.closest(".item_wrapper").index(),VALUE:selectMode?_this.find("option:selected").data("onevalue"):_this.data("onevalue"),CLASS:"inner_content",PICTURE:img.data("src")?img.data("src"):img.attr("src"),ARTICLE_NAME:_this.closest(".item-parent").find(".article_block").data("name"),ARTICLE_VALUE:_this.closest(".item-parent").find(".article_block").data("value")},"clear_cache"in objUrl&&"Y"==objUrl.clear_cache&&(add_url+="?clear_cache=Y");let isActiveContainer=container.hasClass("js-selected");for($(".bx_catalog_item_scu").removeClass("js-selected"),container.addClass("js-selected"),i=0;i<obParams.DEPTH+1;i++)strName="PROP_"+container.find(".item_wrapper:eq("+i+") > div").data("id"),container.find(".item_wrapper:eq("+i+") select").length?(obSelect[strName]=container.find(".item_wrapper:eq("+i+") select option:selected").data("onevalue"),obParams[strName]=container.find(".item_wrapper:eq("+i+") select option:selected").data("onevalue")):(obSelect[strName]=container.find(".item_wrapper:eq("+i+") li.item.active").data("onevalue"),obParams[strName]=container.find(".item_wrapper:eq("+i+") li.item.active").data("onevalue"));if(selectMode||(_this.siblings().removeClass("active"),_this.addClass("active")),_this.attr("title")){var skuVal=_this.attr("title").split(":")[1];_this.closest(".item_wrapper").find(".show_class .val").text(skuVal)}else{var img_row=_this.find(" > i");if(img_row.length&&img_row.attr("title")){var skuVal=img_row.attr("title").split(":")[1];_this.closest(".item_wrapper").find(".show_class .val").text(skuVal)}}function finalActionSKUInfo(th){$(".counter_wrapp.list")&&$(".counter_wrapp.list .counter_block.big").removeClass("big");var sku_props=th.closest(".sku_props").find(".item_wrapper .item.active, .item_wrapper .list_values_wrapper");$.each(sku_props,(function(index,value){var skuVal="";if((value=$(value)).attr("title"))skuVal=value.attr("title").split(":")[1];else if(void 0!==value.val())skuVal=value.val();else{var img_row=value.find(" > i");img_row.length&&img_row.attr("title")&&(skuVal=img_row.attr("title").split(":")[1])}""!=skuVal&&value.closest(".item_wrapper").find(".show_class .val").text(skuVal)}))}window.obOffers&&"array"===typeofExt(obOffers)&&isActiveContainer?(selectedValues=obSelect,strPropValue=obParam
3203s.VALUE,depth=obParams.DEPTH,arFilter={},tmpFilter=[],UpdateSKUInfoByProps(),finalActionSKUInfo(_this)):$.ajax({url:arMaxOptions.SITE_DIR+"ajax/js_item_detail.php"+add_url,type:"POST",data:obParams}).success((function(html){var ob=BX.processHTML(html);BX.ajax.processScripts(ob.SCRIPT),finalActionSKUInfo(_this)}))},$(document).on("click",".ajax_load .bx_catalog_item_scu li.item",SelectOfferProp),$(document).on("change",".ajax_load .bx_catalog_item_scu select.list_values_wrapper",SelectOfferProp),$(document).on("click",".bx_catalog_item_scu.sku_in_detail li.item",SelectOfferProp),$(document).on("change",".bx_catalog_item_scu.sku_in_detail select.list_values_wrapper",SelectOfferProp)),$(".switch-item-block .switch-item-block__icons").on("click",(function(){var $this=$(this),animationTime=200;$this.hasClass("switch-item-block__icons--small")&&!$this.hasClass("active")?($this.addClass("active"),$this.siblings(".switch-item-block__icons--big").removeClass("active"),$this.closest(".switch-item-block").find(".switch-item-block__count-wrapper--big").fadeOut(200,(function(){$this.closest(".switch-item-block").find(".switch-item-block__count-wrapper--small").fadeIn(200)})),$this.closest(".switch-item-block").siblings(".big-gallery-block").fadeOut(200,(function(){$this.closest(".switch-item-block").siblings(".small-gallery-block").fadeIn(200)}))):$this.hasClass("switch-item-block__icons--big")&&!$this.hasClass("active")&&($this.addClass("active"),$this.siblings(".switch-item-block__icons--small").removeClass("active"),$this.closest(".switch-item-block").find(".switch-item-block__count-wrapper--small").fadeOut(200,(function(){$this.closest(".switch-item-block").find(".switch-item-block__count-wrapper--big").fadeIn(200)})),$this.closest(".switch-item-block").siblings(".small-gallery-block").fadeOut(200,(function(){$this.closest(".switch-item-block").siblings(".big-gallery-block").fadeIn(200)}))),setTimeout((function(){InitLazyLoad()}),300)})),window.addEventListener("scroll",throttle(updateProgressBar,200)),$(".form-control:not(.eye-password-ignore) [type=password]").each((function(item){let passBlock=$(this).closest(".form-control"),labelBlock=passBlock.find(".label_block");labelBlock.length?labelBlock.addClass("eye-password"):passBlock.addClass("eye-password")})),$(document).on("click",".eye-password:not(.eye-password-ignore)",(function(event){let input=this.querySelector("input"),eyeWidth=56;this.clientWidth-56<event.offsetX&&("password"==input.type?(input.type="text",this.classList.add("password-show")):"text"==input.type&&(input.type="password",this.classList.remove("password-show")))}))})); 3204/* End */ 3205; 3206; /* Start:"a:4:{s:4:"full";s:67:"/bitrix/components/bitrix/search.title/script.min.js?17805703806573";s:6:"source";s:48:"/bitrix/components/bitrix/search.title/script.js";s:3:"min";s:52:"/bitrix/components/bitrix/search.title/script.min.js";s:3:"map";s:52:"/bitrix/components/bitrix/search.title/script.map.js";}"*/ 3207function JCTitleSearch(t){var e=this;this.arParams={AJAX_PAGE:BX.util.htmlspecialcharsback(t.AJAX_PAGE),CONTAINER_ID:t.CONTAINER_ID,INPUT_ID:t.INPUT_ID,MIN_QUERY_LEN:parseInt(t.MIN_QUERY_LEN,10)};if(t.WAIT_IMAGE){this.arParams.WAIT_IMAGE=t.WAIT_IMAGE}if(this.arParams.MIN_QUERY_LEN<=0){this.arParams.MIN_QUERY_LEN=1}this.cache=[];this.cache_key=null;this.startText="";this.running=false;this.runningCall=false;this.currentRow=-1;this.RESULT=null;this.CONTAINER=null;this.INPUT=null;this.WAIT=null;this.ShowResult=function(t){if(BX.type.isString(t)){e.RESULT.innerHTML=t}e.RESULT.style.display=e.RESULT.innerHTML===""?"none":"block";var s=e.adjustResultNode();var i=null;var n=null;var l=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(l){n=BX.findChild(l,{tag:"th"},true)}if(n){var r=BX.pos(l);r.width=r.right-r.left;var a=BX.pos(n);a.width=a.right-a.left;n.style.width=a.width+"px";e.RESULT.style.width=s.width+a.width+"px";e.RESULT.style.left=s.left-a.width-1+"px";if(r.width-a.width>s.width){e.RESULT.style.width=s.width+a.width-1+"px"}r=BX.pos(l);i=BX.pos(e.RESULT);if(i.right>r.right){e.RESULT.style.width=r.right-r.left+"px"}}var o=false;if(l){o=BX.findChild(e.RESULT,{class:"title-search-fader"},true)}if(o&&n){i=BX.pos(e.RESULT);o.style.left=i.right-i.left-18+"px";o.style.width=18+"px";o.style.top=0+"px";o.style.height=i.bottom-i.top+"px";o.style.display="block"}};this.onKeyPress=function(t){var s=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(!s){return false}var i=0;var n=s.rows.length;switch(t){case 27:e.RESULT.style.display="none";e.currentRow=-1;e.UnSelectAll();return true;case 40:if(e.RESULT.style.display=="none"){e.RESULT.style.display="block"}var l=-1;for(i=0;i<n;i++){if(!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){if(l==-1){l=i}if(e.currentRow<i){e.currentRow=i;break}else if(s.rows[i].className=="title-search-selected"){s.rows[i].className=""}}}if(i==n&&e.currentRow!=i){e.currentRow=l}s.rows[e.currentRow].className="title-search-selected";return true;case 38:if(e.RESULT.style.display=="none"){e.RESULT.style.display="block"}var r=-1;for(i=n-1;i>=0;i--){if(!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){if(r==-1){r=i}
3207if(e.currentRow>i){e.currentRow=i;break}else if(s.rows[i].className=="title-search-selected"){s.rows[i].className=""}}}if(i<0&&e.currentRow!=i){e.currentRow=r}s.rows[e.currentRow].className="title-search-selected";return true;case 13:if(e.RESULT.style.display=="block"){for(i=0;i<n;i++){if(e.currentRow==i&&!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){var a=BX.findChild(s.rows[i],{tag:"a"},true);if(a){window.location=a.href;return true}}}}return false;default:break}return false};this.onTimeout=function(){e.onChange((function(){setTimeout(e.onTimeout,500)}))};this.onChange=function(t){if(e.running){e.runningCall=true;return}e.running=true;if(e.INPUT.value!=e.oldValue&&e.INPUT.value!=e.startText){e.oldValue=e.INPUT.value;if(e.INPUT.value.length>=e.arParams.MIN_QUERY_LEN){e.cache_key=e.arParams.INPUT_ID+"|"+e.INPUT.value;if(e.cache[e.cache_key]==null){if(e.WAIT){var s=BX.pos(e.INPUT);var i=s.bottom-s.top-2;e.WAIT.style.top=s.top+1+"px";e.WAIT.style.height=i+"px";e.WAIT.style.width=i+"px";e.WAIT.style.left=s.right-i+2+"px";e.WAIT.style.display="block"}BX.ajax.post(e.arParams.AJAX_PAGE,{ajax_call:"y",INPUT_ID:e.arParam
3207s.INPUT_ID,q:e.INPUT.value,l:e.arParams.MIN_QUERY_LEN},(function(s){e.cache[e.cache_key]=s;e.ShowResult(s);e.currentRow=-1;e.EnableMouseEvents();if(e.WAIT){e.WAIT.style.display="none"}if(!!t){t()}e.running=false;if(e.runningCall){e.runningCall=false;e.onChange()}}));return}e.ShowResult(e.cache[e.cache_key]);e.currentRow=-1;e.EnableMouseEvents()}else{e.RESULT.style.display="none";e.currentRow=-1;e.UnSelectAll()}}if(!!t){t()}e.running=false};this.onScroll=function(){if(BX.type.isElementNode(e.RESULT)&&e.RESULT.style.display!=="none"&&e.RESULT.innerHTML!==""){e.adjustResultNode()}};this.UnSelectAll=function(){var t=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(t){var s=t.rows.length;for(var i=0;i<s;i++){t.rows[i].className=""}}};this.EnableMouseEvents=function(){var t=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(t){var s=t.rows.length;for(var i=0;i<s;i++){if(!BX.findChild(t.rows[i],{class:"title-search-separator"},true)){t.rows[i].id="row_"+i;t.rows[i].onmouseover=function(t){if(e.currentRow!=this.id.substr(4)){e.UnSelectAll();this.className="title-search-selected";e.currentRow=this.id.substr(4)}};t.rows[i].onmouseout=function(t){this.className="";e.currentRow=-1}}}}};this.onFocusLost=function(t){setTimeout((function(){e.RESULT.style.display="none"}),250)};this.onFocusGain=function(){if(e.RESULT.innerHTML.length>0){e.ShowResult()}};this.onKeyDown=function(t){if(!t){t=window.event}if(e.RESULT.style.display=="block"&&e.onKeyPress(t.keyCode)){return BX.PreventDefault(t)}};this.adjustResultNode=function(){if(!(BX.type.isElementNode(e.RESULT)&&BX.type.isElementNode(e.CONTAINER))){return{top:0,right:0,bottom:0,left:0,width:0,height:0}}var t=BX.pos(e.CONTAINER);e.RESULT.style.position="absolute";e.RESULT.style.top=t.bottom+2+"px";e.RESULT.style.left=t.left+"px";e.RESULT.style.width=t.width+"px";return t};this.onContainerLayoutChange=function(){if(BX.type.isElementNode(e.RESULT)&&e.RESULT.style.display!=="none"&&e.RESULT.innerHTML!==""){e.adjustResultNode()}};this.Init=function(){this.CONTAINER=document.getElementById(this.arParams.CONTAINER_ID);BX.addCustomEvent(this.CONTAINER,"OnNodeLayoutChange",this.onContainerLayoutChange);this.RESULT=document.body.appendChild(document.createElement("DIV"));this.RESULT.className="title-search-result";this.INPUT=document.getElementById(this.arParams.INPUT_ID);this.startText=this.INPUT.value;this.oldValue=this.INPUT.value;BX.bind(this.INPUT,"focus",(function(){e.onFocusGain()}));BX.bind(this.INPUT,"blur",(function(){e.onFocusLost()}));this.INPUT.onkeydown=this.onKeyDown;if(this.arParams.WAIT_IMAGE){this.WAIT=document.body.appendChild(document.createElement("DIV"));this.WAIT.style.backgroundImage="url('"+this.arParams.WAIT_IMAGE+"')";if(!BX.browser.IsIE()){this.WAIT.style.backgroundRepeat="none"}this.WAIT.style.display="none";this.WAIT.style.position="absolute";this.WAIT.style.zIndex="1100"}BX.bind(this.INPUT,"bxchange",(function(){e.onChange()}));var t=BX.findParent(this.CONTAINER,BX.is_fixed);if(BX.type.isElementNode(t)){BX.bind(window,"scroll",BX.throttle(this.onScroll,100,this))}};BX.ready((function(){e.Init(t)}))} 3208/* End */ 3209; 3210; /* Start:"a:4:{s:4:"full";s:97:"/bitrix/templates/aspro_max/components/bitrix/search.title/mega_menu/script.min.js?16586591556366";s:6:"source";s:78:"/bitrix/templates/aspro_max/components/bitrix/search.title/mega_menu/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3211function JCTitleSearch3(t){var o=this;this.arParams={AJAX_PAGE:t.AJAX_PAGE,CONTAINER_ID:t.CONTAINER_ID,INPUT_ID:t.INPUT_ID,MIN_QUERY_LEN:parseInt(t.MIN_QUERY_LEN)},t.WAIT_IMAGE&&(this.arParams.WAIT_IMAGE=t.WAIT_IMAGE),t.MIN_QUERY_LEN<=0&&(t.MIN_QUERY_LEN=1),this.cache=[],this.cache_key=null,this.startText="",this.running=!1,this.needRunAgain=!1,this.currentRow=-1,this.RESULT=null,this.CONTAINER=null,this.INPUT=null,this.WAIT=null,this.ShowResult=function(t){BX.type.isString(t)&&(o.RESULT.innerHTML=t),o.RESULT.style.display=""!==o.RESULT.innerHTML?"block":"none";var e,s,n,i=o.adjustResultNode(),a=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(a&&(s=BX.findChild(a,{tag:"th"},!0)),s){var l=BX.pos(a);l.width=l.right-l.left;var r=BX.pos(s);r.width=r.right-r.left,s.style.width=r.width+"px",o.RESULT.style.width=i.width+r.width+"px",o.RESULT.style.left=i.left-r.width-1+"px",l.width-r.width>i.width&&(o.RESULT.style.width=i.width+r.width-1+"px"),l=BX.pos(a),(e=BX.pos(o.RESULT)).right>l.right&&(o.RESULT.style.width=l.right-l.left+"px")}
3211a&&(n=BX.findChild(o.RESULT,{class:"title-search-fader"},!0)),n&&s&&(e=BX.pos(o.RESULT),n.style.left=e.right-e.left-18+"px",n.style.width="18px",n.style.top="0px",n.style.height=e.bottom-e.top+"px",n.style.display="block"),$(".bx_searche.scrollbar").mCustomScrollbar({mouseWheel:{scrollAmount:150,preventDefault:!0}})},this.onKeyPress=function(t){var e,s=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(!s)return!1;var n=s.rows.length;switch(t){case 27:return o.RESULT.style.display="none",o.currentRow=-1,o.UnSelectAll(),!0;case 40:"none"==o.RESULT.style.display&&(o.RESULT.style.display="block");var i=-1;for(e=0;e<n;e++)if(!BX.findChild(s.rows[e],{class:"title-search-separator"},!0)){if(-1==i&&(i=e),o.currentRow<e){o.currentRow=e;break}"title-search-selected"==s.rows[e].className&&(s.rows[e].className="")}return e==n&&o.currentRow!=e&&(o.currentRow=i),s.rows[o.currentRow].className="title-search-selected",!0;case 38:"none"==o.RESULT.style.display&&(o.RESULT.style.display="block");var a=-1;for(e=n-1;0<=e;e--)if(!BX.findChild(s.rows[e],{class:"title-search-separator"},!0)){if(-1==a&&(a=e),o.currentRow>e){o.currentRow=e;break}"title-search-selected"==s.rows[e].className&&(s.rows[e].className="")}return e<0&&o.currentRow!=e&&(o.currentRow=a),s.rows[o.currentRow].className="title-search-selected",!0;case 13:if("block"==o.RESULT.style.display)for(e=0;e<n;e++)if(o.currentRow==e&&!BX.findChild(s.rows[e],{class:"title-search-separator"},!0)){var l=BX.findChild(s.rows[e],{tag:"a"},!0);if(l)return window.location=l.href,!0}return!1}return!1},this.onTimeout=function(){o.onChange(function(){setTimeout(o.onTimeout,500)})},this.onChange=function(e){if(o.running)o.needRunAgain=!0;else{if(o.running=!0,o.INPUT.value!=o.oldValue&&o.INPUT.value!=o.startText)if(o.oldValue=o.INPUT.value,o.INPUT.value.length>=o.arParams.MIN_QUERY_LEN){if(o.cache_key=o.arParams.INPUT_ID+"|"+o.INPUT.value,null==o.cache[o.cache_key]){if(o.WAIT){var t=BX.pos(o.INPUT),s=t.bottom-t.top-2;o.WAIT.style.top=t.top+1+"px",o.WAIT.style.height=s+"px",o.WAIT.style.width=s+"px",o.WAIT.style.left=t.right-s+2+"px",o.WAIT.style.display="block"}return void BX.ajax.post(o.arParams.AJAX_PAGE,{ajax_call:"y",INPUT_ID:o.arParams.INPUT_ID,q:o.INPUT.value,l:o.arParams.MIN_QUERY_LEN},function(t){o.cache[o.cache_key]=t,o.ShowResult(t),o.currentRow=-1,o.EnableMouseEvents(),o.WAIT&&(o.WAIT.style.display="none"),e&&e(),o.running=!1,o.needRunAgain&&(o.needRunAgain=!1,o.onChange(e))})}o.ShowResult(o.cache[o.cache_key]),o.currentRow=-1,o.EnableMouseEvents()}else o.RESULT.style.display="none",o.currentRow=-1,o.UnSelectAll();e&&e(),o.running=!1}},this.UnSelectAll=function(){var t=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(t)for(var e=t.rows.length,s=0;s<e;s++)t.rows[s].className=""},this.EnableMouseEvents=function(){var t=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(t)for(var e=t.rows.length,s=0;s<e;s++)BX.findChild(t.rows[s],{class:"title-search-separator"},!0)||(t.rows[s].id="row_"+s,t.rows[s].onmouseover=function(t){o.currentRow!=this.id.substr(4)&&(o.UnSelectAll(),this.className="title-search-selected",o.currentRow=this.id.substr(4))},t.rows[s].onmouseout=function(t){this.className="",o.currentRow=-1})},this.onFocusLost=function(t){setTimeout(function(){o.RESULT.style.display="none"},250)},this.onFocusGain=function(){o.RESULT.innerHTML.length&&o.ShowResult()},this.onKeyDown=function(t){if(t||(t=window.event),"block"==o.RESULT.style.display&&o.onKeyPress(t.keyCode))return BX.PreventDefault(t);$(".title-search-result."+o.arParams.INPUT_ID).removeClass("closed")},this.adjustResultNode=function(){var t,e;BX.findParent(o.CONTAINER,BX.is_fixed);return o.RESULT.style.position="absolute",t=BX.pos(o.CONTAINER,!0),e=BX.pos(o.INPUT),t.width=t.right-t.left,o.RESULT.style.top=t.bottom+2+"px",o.RESULT.style.left="0px",$(o.INPUT).closest(".inline-search-block.with-close").length?o.RESULT.style.width=e.width+"px":o.RESULT.style.width=t.width+"px",t},this._onContainerLayoutChange=function(){"none"!==o.RESULT.style.display&&""!==o.RESULT.innerHTML&&o.adjustResultNode()},this.Init=function(){this.CONTAINER=document.getElementById(this.arParams.CONTAINER_ID),BX.addCustomEvent(this.CONTAINER,"OnNodeLayoutChange",this._onContainerLayoutChange),this.RESULT=document.body.appendChild(document.createElement("DIV")),this.RESULT.className="title-search-result "+this.arParams.INPUT_ID,this.INPUT=document.getElementById(this.arParams.INPUT_ID),this.startText=this.oldValue=this.INPUT.value,BX.bind(this.INPUT,"focus",function(){o.onFocusGain()}),BX.bind(this.INPUT,"blur",function(){o.onFocusLost()}),BX.browser.IsSafari()||BX.browser.IsIE()?this.INPUT.onkeydown=this.onKeyDown:this.INPUT.onkeypress=this.onKeyDown,this.arParams.WAIT_IMAGE&&(this.WAIT=document.body.appendChild(document.createElement("DIV")),this.WAIT.style.backgroundImage="url('"+this.arParams.WAIT_IMAGE+"')",BX.browser.IsIE()||(this.WAIT.style.backgroundRepeat="none"),this.WAIT.style.display="none",this.WAIT.style.position="absolute",this.WAIT.style.zIndex="1100"),BX.bind(this.INPUT,"bxchange",function(){o.onChange()})},BX.ready(function(){o.Init(t)})}$(document).ready(function(){var t=$(".title-search-input_mega_menu").detach();$("#title-search_mega_menu").append(t)}); 3212/* End */ 3213; 3214; /* Start:"a:4:{s:4:"full";s:92:"/bitrix/templates/aspro_max/components/bitrix/menu/menu_in_burger/script.min.js?165865915539";s:6:"source";s:75:"/bitrix/templates/aspro_max/components/bitrix/menu/menu_in_burger/script.js";s:3:"min";s:79:"/bitrix/templates/aspro_max/components/bitrix/menu/menu_in_burger/script.min.js";s:3:"map";s:83:"/bitrix/templates/aspro_max/components/bitrix/menu/menu_in_burger/script.min.js.map";}"*/ 3215 3216/* End */ 3217; 3218; /* Start:"a:4:{s:4:"full";s:81:"/bitrix/templates/aspro_max/components/bitrix/menu/top/script.min.js?165865915573";s:6:"source";s:64:"/bitrix/templates/aspro_max/components/bitrix/menu/top/script.
3218js";s:3:"min";s:68:"/bitrix/templates/aspro_max/components/bitrix/menu/top/script.min.js";s:3:"map";s:72:"/bitrix/templates/aspro_max/components/bitrix/menu/top/script.min.js.map";}"*/ 3219$(document).ready((function(){})); 3220/* End */ 3221; 3222; /* Start:"a:4:{s:4:"full";s:95:"/bitrix/templates/aspro_max/components/bitrix/menu/top_catalog_only/script.min.js?1658659155169";s:6:"source";s:77:"/bitrix/templates/aspro_max/components/bitrix/menu/top_catalog_only/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3223$(document).ready(function(){$(".menu-row .mega-menu table td.wide_menu .customScrollbar").mCustomScrollbarDeferred({mouseWheel:{scrollAmount:150,preventDefault:!0}})}); 3224/* End */ 3225; 3226; /* Start:"a:4:{s:4:"full";s:92:"/bitrix/templates/aspro_max/components/bitrix/search.title/corp/script.min.js?16586591556556";s:6:"source";s:73:"/bitrix/templates/aspro_max/components/bitrix/search.title/corp/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3227function JCTitleSearch4(t){var o=this;this.arParams={AJAX_PAGE:t.AJAX_PAGE,CONTAINER_ID:t.CONTAINER_ID,INPUT_ID:t.INPUT_ID,INPUT_ID_TMP:t.INPUT_ID_TMP,MIN_QUERY_LEN:parseInt(t.MIN_QUERY_LEN)},t.WAIT_IMAGE&&(this.arParams.WAIT_IMAGE=t.WAIT_IMAGE),t.MIN_QUERY_LEN<=0&&(t.MIN_QUERY_LEN=1),this.cache=[],this.cache_key=null,this.startText="",this.running=!1,this.needRunAgain=!1,this.currentRow=-1,this.RESULT=null,this.CONTAINER=null,this.INPUT=null,this.WAIT=null,this.ShowResult=function(t){BX.type.isString(t)&&(o.RESULT.innerHTML=t),o.RESULT.style.display=""!==o.RESULT.innerHTML?"block":"none";var e,s,n,i=o.adjustResultNode(),a=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(a&&(s=BX.findChild(a,{tag:"th"},!0)),s){var r=BX.pos(a);r.width=r.right-r.left;var l=BX.pos(s);l.width=l.right-l.left,s.style.width=l.width+"px",o.RESULT.style.width=i.width+l.width+"px",o.RESULT.style.left="0px",r.width-l.width>i.width&&(o.RESULT.style.width=i.width+l.width-1+"px"),r=BX.pos(a),(e=BX.pos(o.RESULT)).right>r.right&&(o.RESULT.style.width=r.right-r.left+"px")}a&&(n=BX.findChild(o.RESULT,{class:"title-search-fader"},!0)),n&&s&&(e=BX.pos(o.RESULT),n.style.left=e.right-e.left-18+"px",n.style.width="18px",n.style.top="0px",n.style.height=e.bottom-e.top+"px",n.style.display="block"),$(".bx_searche.scrollbar").mCustomScrollbar({mouseWheel:{scrollAmount:150,preventDefault:!0}})},this.onKeyPress=function(t){var e,s=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(!s)return!1;var n=s.rows.length;switch(t){case 27:return o.RESULT.style.display="none",o.currentRow=-1,o.UnSelectAll(),!0;case 40:"none"==o.RESULT.style.display&&(o.RESULT.style.display="block");var i=-1;for(e=0;e<n;e++)if(!BX.findChild(s.rows[e],{class:"title-search-separator"},!0)){if(-1==i&&(i=e),o.currentRow<e){o.currentRow=e;break}"title-search-selected"==s.rows[e].className&&(s.rows[e].className="")}return e==n&&o.currentRow!=e&&(o.currentRow=i),s.rows[o.currentRow].className="title-search-selected",!0;case 38:"none"==o.RESULT.style.display&&(o.RESULT.style.display="block");var a=-1;for(e=n-1;0<=e;e--)if(!BX.findChild(s.rows[e],{class:"title-search-separator"},!0)){if(-1==a&&(a=e),o.currentRow>e){o.currentRow=e;break}"title-search-selected"==s.rows[e].className&&(s.rows[e].className="")}return e<0&&o.currentRow!=e&&(o.currentRow=a),s.rows[o.currentRow].className="title-search-selected",!0;case 13:if("block"==o.RESULT.style.display)for(e=0;e<n;e++)if(o.currentRow==e&&!BX.findChild(s.rows[e],{class:"title-search-separator"},!0)){var r=BX.findChild(s.rows[e],{tag:"a"},!0);if(r)return window.location=r.href,!0}return!1}return!1},this.onTimeout=function(){o.onChange(function(){setTimeout(o.onTimeout,500)})},this.onChange=function(e){if(o.running)o.needRunAgain=!0;else{if(o.running=!0,o.INPUT.value!=o.oldValue&&o.INPUT.value!=o.startText)if(o.oldValue=o.INPUT.value,o.INPUT.value.length>=o.arParams.MIN_QUERY_LEN){if(o.cache_key=o.arParams.INPUT_ID+"|"+o.INPUT.value,null==o.cache[o.cache_key]){if(o.WAIT){var t=BX.pos(o.INPUT),s=t.bottom-t.top-2;o.WAIT.style.top=t.top+1+"px",o.WAIT.style.height=s+"px",o.WAIT.style.width=s+"px",o.WAIT.style.left=t.right-s+2+"px",o.WAIT.style.display="block"}
3227return void BX.ajax.post(o.arParams.AJAX_PAGE,{ajax_call:"y",INPUT_ID:o.arParams.INPUT_ID_TMP,q:o.INPUT.value,l:o.arParams.MIN_QUERY_LEN},function(t){o.cache[o.cache_key]=t,o.ShowResult(t),o.currentRow=-1,o.EnableMouseEvents(),o.WAIT&&(o.WAIT.style.display="none"),e&&e(),o.running=!1,o.needRunAgain&&(o.needRunAgain=!1,o.onChange(e))})}o.ShowResult(o.cache[o.cache_key]),o.currentRow=-1,o.EnableMouseEvents()}else o.RESULT.style.display="none",o.currentRow=-1,o.UnSelectAll();e&&e(),o.running=!1}},this.UnSelectAll=function(){var t=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(t)for(var e=t.rows.length,s=0;s<e;s++)t.rows[s].className=""},this.EnableMouseEvents=function(){var t=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(t)for(var e=t.rows.length,s=0;s<e;s++)BX.findChild(t.rows[s],{class:"title-search-separator"},!0)||(t.rows[s].id="row_"+s,t.rows[s].onmouseover=function(t){o.currentRow!=this.id.substr(4)&&(o.UnSelectAll(),this.className="title-search-selected",o.currentRow=this.id.substr(4))},t.rows[s].onmouseout=function(t){this.className="",o.currentRow=-1})},this.onFocusLost=function(t){setTimeout(function(){o.RESULT.style.display="none"},300)},this.onFocusGain=function(){o.RESULT.innerHTML.length&&o.ShowResult()},this.onKeyDown=function(t){if(t=t||window.event,"block"==o.RESULT.style.display&&o.onKeyPress(t.keyCode))return BX.PreventDefault(t)},this.adjustResultNode=function(){var t,e;BX.findParent(o.CONTAINER,BX.is_fixed);return o.RESULT.style.position="absolute",t=BX.pos(o.CONTAINER),e=BX.pos(o.INPUT),t.width=t.right-t.left,o.RESULT.style.top="100%",o.RESULT.style.left="0px",$(o.INPUT).closest(".inline-search-block.with-close").length?o.RESULT.style.width=e.width+"px":o.RESULT.style.width=t.width+"px",t},this._onContainerLayoutChange=function(){"none"!==o.RESULT.style.display&&""!==o.RESULT.innerHTML&&o.adjustResultNode()},this.Init=function(){this.CONTAINER=document.getElementById(this.arParams.CONTAINER_ID),BX.addCustomEvent(this.CONTAINER,"OnNodeLayoutChange",this._onContainerLayoutChange),this.RESULT=document.body.appendChild(document.createElement("DIV")),this.RESULT.className="title-search-result "+this.arParams.INPUT_ID,this.INPUT=document.getElementById(this.arParams.INPUT_ID),this.startText=this.oldValue=this.INPUT.value,BX.bind(this.INPUT,"focus",function(t){o.onFocusGain()}),BX.bind(this.INPUT,"blur",function(t){$(t.relatedTarget).hasClass("bx_item_block")||o.onFocusLost()}),BX.browser.IsSafari()||BX.browser.IsIE()?this.INPUT.onkeydown=this.onKeyDown:this.INPUT.onkeypress=this.onKeyDown,this.arParams.WAIT_IMAGE&&(this.WAIT=document.body.appendChild(document.createElement("DIV")),this.WAIT.style.backgroundImage="url('"+this.arParams.WAIT_IMAGE+"')",BX.browser.IsIE()||(this.WAIT.style.backgroundRepeat="none"),this.WAIT.style.display="none",this.WAIT.style.position="absolute",this.WAIT.style.zIndex="1100"),BX.bind(this.INPUT,"bxchange",function(t){o.onChange()})},BX.ready(function(){o.Init(t)})}$(document).ready(function(){var t=$(".title-search-input_fixed").detach();$("#title-search_fixed").append(t)}),$(document).ready(function(){var t=$(".title-search-input_fixedtf").detach();$("#title-search_fixedtf").append(t)}),$(document).ready(function(){var t=$(".title-search-input").detach();$("#title-search").append(t)}); 3228/* End */ 3229; 3230; /* Start:"a:4:{s:4:"full";s:91:"/bitrix/templates/aspro_max/components/bitrix/news.list/banners/script.min.js?1658659156105";s:6:"source";s:73:"/bitrix/templates/aspro_max/components/bitrix/news.list/banners/script.js";s:3:"min";s:77:"/bitrix/templates/aspro_max/components/bitrix/news.list/banners/script.min.js";s:3:"map";s:81:"/bitrix/templates/aspro_max/components/bitrix/news.list/banners/script.min.js.map";}"*/ 3231readyDOM((function(){checkLinkedBlocks(".linked-banners-list")})); 3232/* End */ 3233; 3234; /* Start:"a:4:{s:4:"full";s:92:"/bitrix/components/aspro/marketing.popup.max/templates/.default/script.min.js?16586589141099";s:6:"source";s:73:"/bitrix/components/aspro/marketing.popup.max/templates/.default/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3235function showMarketingPopup(){if($(".dyn_mp_jqm").length){var allDelays=[];$(".dyn_mp_jqm").each((function(i,el){var jqmBlock=$(el),delay=0;if(!jqmBlock.hasClass("initied")){for(jqmBlock.addClass("initied"),jqmBlock.data("param-delay")&&(delay=1e3*jqmBlock.data("param-delay"));-1!==allDelays.indexOf(delay);)delay+=1e3;if(allDelays.push(delay),"undefined"!=typeof localStorage){var dataLS=localStorage.getItem(jqmBlock.data("ls")),ls="";try{ls=JSON.parse(dataLS)}catch(e){ls=dataLS}(!ls||ls&&ls.TIMESTAMP<Date.now()&&ls.TIMESTAMP)&&(timeoutID=setTimeout((function(){console.log(jqmBlock,delay),jqmBlock.click()}),delay))}else{var ls;
3235(ls=$.cookie(jqmBlock.data("ls")))||(timeoutID=setTimeout((function(){jqmBlock.click()}),delay))}}}))}}$(document).ready((function(){showMarketingPopup(),void 0!==window.frameCacheVars&&BX.addCustomEvent("onFrameDataReceived",(function(json){showMarketingPopup()})),$(document).on("click",".dyn_mp_jqm_frame .popup-text-info__btn .btn",(function(){var closeBtn=$(this).closest(".dyn_mp_jqm_frame").find(".jqmClose");closeBtn.length&&closeBtn.trigger("click")}))})); 3236/* End */ 3237; 3238; /* Start:"a:4:{s:4:"full";s:93:"/bitrix/templates/aspro_max/components/bitrix/search.title/fixed/script.min.js?16586591556439";s:6:"source";s:74:"/bitrix/templates/aspro_max/components/bitrix/search.title/fixed/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3239function JCTitleSearch2(t){var o=this;this.arParams={AJAX_PAGE:t.AJAX_PAGE,CONTAINER_ID:t.CONTAINER_ID,INPUT_ID:t.INPUT_ID,INPUT_ID_TMP:t.INPUT_ID_TMP,MIN_QUERY_LEN:parseInt(t.MIN_QUERY_LEN)},t.WAIT_IMAGE&&(this.arParams.WAIT_IMAGE=t.WAIT_IMAGE),t.MIN_QUERY_LEN<=0&&(t.MIN_QUERY_LEN=1),this.cache=[],this.cache_key=null,this.startText="",this.running=!1,this.needRunAgain=!1,this.currentRow=-1,this.RESULT=null,this.CONTAINER=null,this.INPUT=null,this.WAIT=null,this.ShowResult=function(t){BX.type.isString(t)&&(o.RESULT.innerHTML=t),o.RESULT.style.display=""!==o.RESULT.innerHTML?"block":"none";var e,s,n,i=o.adjustResultNode(),a=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(a&&(s=BX.findChild(a,{tag:"th"},!0)),s){var l=BX.pos(a);l.width=l.right-l.left;var r=BX.pos(s);r.width=r.right-r.left,s.style.width=r.width+"px",o.RESULT.style.width=i.width+r.width+"px",o.RESULT.style.left=i.left-r.width-1+"px",l.width-r.width>i.width&&(o.RESULT.style.width=i.width+r.width-1+"px"),l=BX.pos(a),(e=BX.pos(o.RESULT)).right>l.right&&(o.RESULT.style.width=l.right-l.left+"px")}a&&(n=BX.findChild(o.RESULT,{class:"title-search-fader"},!0)),n&&s&&(e=BX.pos(o.RESULT),n.style.left=e.right-e.left-18+"px",n.style.width="18px",n.style.top="0px",n.style.height=e.bottom-e.top+"px",n.style.display="block"),$(".bx_searche.scrollbar").mCustomScrollbar({mouseWheel:{scrollAmount:150,preventDefault:!0}})},this.onKeyPress=function(t){var e,s=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(!s)return!1;var n=s.rows.length;switch(t){case 27:return o.RESULT.style.display="none",o.currentRow=-1,o.UnSelectAll(),!0;case 40:"none"==o.RESULT.style.display&&(o.RESULT.style.display="block");var i=-1;for(e=0;e<n;e++)if(!BX.findChild(s.rows[e],{class:"title-search-separator"},!0)){if(-1==i&&(i=e),o.currentRow<e){o.currentRow=e;break}"title-search-selected"==s.rows[e].className&&(s.rows[e].className="")}return e==n&&o.currentRow!=e&&(o.currentRow=i),s.rows[o.currentRow].className="title-search-selected",!0;case 38:"none"==o.RESULT.style.display&&(o.RESULT.style.display="block");var a=-1;for(e=n-1;0<=e;e--)if(!BX.findChild(s.rows[e],{class:"title-search-separator"},!0)){if(-1==a&&(a=e),o.currentRow>e){o.currentRow=e;break}"title-search-selected"==s.rows[e].className&&(s.rows[e].className="")}return e<0&&o.currentRow!=e&&(o.currentRow=a),s.rows[o.currentRow].className="title-search-selected",!0;case 13:if("block"==o.RESULT.style.display)for(e=0;e<n;e++)if(o.currentRow==e&&!BX.findChild(s.rows[e],{class:"title-search-separator"},!0)){var l=BX.findChild(s.rows[e],{tag:"a"},!0);if(l)return window.location=l.href,!0}return!1}return!1},this.onTimeout=function(){o.onChange(function(){setTimeout(o.onTimeout,500)})},this.onChange=function(e){if(o.running)o.needRunAgain=!0;else{if(o.running=!0,o.INPUT.value!=o.oldValue&&o.INPUT.value!=o.startText)if(o.oldValue=o.INPUT.value,o.INPUT.value.length>=o.arParams.MIN_QUERY_LEN){if(o.cache_key=o.arParams.INPUT_ID+"|"+o.INPUT.value,null==o.cache[o.cache_key]){if(o.WAIT){var t=BX.pos(o.INPUT),s=t.bottom-t.top-2;o.WAIT.style.top=t.top+1+"px",o.WAIT.style.height=s+"px",o.WAIT.style.width=s+"px",o.WAIT.style.left=t.right-s+2+"px",o.WAIT.style.display="block"}return void BX.ajax.post(o.arParams.AJAX_PAGE,{ajax_call:"y",INPUT_ID:o.arParams.INPUT_ID_TMP,q:o.INPUT.value,l:o.arParams.MIN_QUERY_LEN},function(t){o.cache[o.cache_key]=t,o.ShowResult(t),o.currentRow=-1,o.EnableMouseEvents(),o.WAIT&&(o.WAIT.style.display="none"),e&&e(),o.running=!1,o.needRunAgain&&(o.needRunAgain=!1,o.onChange(e))})}o.ShowResult(o.cache[o.cache_key]),o.currentRow=-1,o.EnableMouseEvents()}else o.RESULT.style.display="none",o.currentRow=-1,o.UnSelectAll();e&&e(),o.running=!1}},this.UnSelectAll=function(){var t=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(t)for(var e=t.rows.length,s=0;s<e;s++)t.rows[s].className=""},this.EnableMouseEvents=function(){var t=BX.findChild(o.RESULT,{tag:"table",class:"title-search-result"},!0);if(t)for(var e=t.rows.length,s=0;s<e;s++)BX.findChild(t.rows[s],{class:"title-search-separator"},!0)||(t.rows[s].id="row_"+s,t.rows[s].onmouseover=function(t){o.currentRow!=this.id.substr(4)&&(o.UnSelectAll(),this.className="title-search-selected",o.currentRow=this.id.substr(4))},t.rows[s].onmouseout=function(t){this.className="",o.currentRow=-1})},this.onFocusLost=function(t){setTimeout(function(){o.RESULT.style.display="none"},300)},this.onFocusGain=function(){o.RESULT.innerHTML.length&&o.ShowResult()},this.onKeyDown=function(t){if(t=t||window.event,"block"==o.RESULT.style.display&&o.onKeyPress(t.keyCode))return BX.PreventDefault(t)},this.adjustResultNode=function(){var t,e,s=BX.findParent(o.CONTAINER,BX.is_fixed);return t=s?(o.RESULT.style.position="fixed",o.RESULT.style.zIndex=BX.style(s,"z-index")+2,BX.pos(o.CONTAINER,!0)):(o.RESULT.style.position="absolute",BX.pos(o.CONTAINER)),e=BX.pos(o.INPUT),t.width=t.right-t.left,o.RESULT.style.top=t.bottom+2+"px",o.RESULT.style.left=e.left+"px",$(o.INPUT).closest(".inline-search-block.with-close").length?o.RESULT.style.width=e.width+"px":o.RESULT.style.width=t.width+"px",t},this._onContainerLayoutChange=function(){"none"!==o.RESULT.style.display&&""!==o.RESULT.innerHTML&&o.adjustResultNode()},this.Init=function(){this.CONTAINER=document.getElementById(this.arParams.CONTAINER_ID),BX.addCustomEvent(this.CONTAINER,"OnNodeLayoutChange",this._onContainerLayoutChange),this.RESULT=document.body.appendChild(document.createElement("DIV")),this.RESULT.className="title-search-result "+this.arParams.INPUT_ID,"title-search-input_fixed"!=this.arParams.INPUT_ID&&(this.RESULT.className+=" "+arMaxOptions.THEME.TYPE_SEARCH+"_type"),this.INPUT=document.getElementById(this.arParams.INPUT_ID),this.startText=this.oldValue=this.INPUT.value,BX.bind(this.INPUT,"focus",function(){o.onFocusGain()}),BX.bind(this.INPUT,"blur",function(){o.onFocusLost()}),BX.browser.IsSafari()||BX.browser.IsIE()?this.INPUT.onkeydown=this.onKeyDown:this.INPUT.onkeypress=this.onKeyDown,this.arParams.WAIT_IMAGE&&(this.WAIT=document.body.appendChild(document.createElement("DIV")),this.WAIT.style.backgroundImage="url('"+this.arParams.WAIT_IMAGE+"')",BX.browser.IsIE()||(this.WAIT.style.backgroundRepeat="none"),this.WAIT.style.display="none",this.WAIT.style.position="absolute",this.WAIT.style.zIndex="1100"),BX.bind(this.INPUT,"bxchange",function(){o.onChange()})},BX.ready(function(){o.Init(t)})} 3240/* End */ 3241; 3242; /* Start:"a:4:{s:4:"full";s:54:"/bitrix/templates/aspro_max/js/custom.js?1658659153100";s:6:"source";s:40:"/bitrix/templates/aspro_max/js/custom.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3243/* 3244You can use this file with your scripts. 3245It will not be overwritten when you upgrade solution. 3246*/ 3247/* End */ 3248;; /* /bitrix/templates/aspro_max/js/observer.min.js?16586591533650*/ 3249; /* /bitrix/templates/aspro_max/js/jquery.actual.min.js?16586591531251*/ 3250; /* /bitrix/templates/aspro_max/js/jqModal.min.js?16586591532838*/ 3251; /* /bitrix/templates/aspro_max/vendor/js/bootstrap.js?165865915327908*/ 3252; /* /bitrix/templates/aspro_max/vendor/js/jquery.appear.js?16586591533188*/ 3253; /* /bitrix/templates/aspro_max/vendor/js/ripple.min.js?16586591531624*/ 3254; /* /bitrix/templates/aspro_max/vendor/js/velocity/velocity.js?165865915344791*/ 3255; /* /bitrix/templates/aspro_max/vendor/js/velocity/velocity.ui.js?165865915313257*/ 3256; /* /bitrix/templates/aspro_max/js/browser.min.js?1658659153662*/ 3257; /* /bitrix/templates/aspro_max/js/jquery.uniform.min.js?16586591538308*/ 3258; /* /bitrix/templates/aspro_max/vendor/js/sticky-sidebar.min.js?165865915311755*/ 3259; /* /bitrix/templates/aspro_max/js/jquery.validate.min.js?165865915322257*/ 3260; /* /bitrix/templates/aspro_max/js/jquery.inputmask.bundle.min.js?1658659153118400*/ 3261; /* /bitrix/templates/aspro_max/js/jquery.easing.1.3.js?16586591538095*/ 3262; /* /bitrix/templates/aspro_max/js/equalize.min.js?1658659153588*/ 3263;
3263 /* /bitrix/templates/aspro_max/js/jquery.alphanumeric.js?16586591531972*/ 3264; /* /bitrix/templates/aspro_max/js/jquery.cookie.min.js?16586591533066*/ 3265; /* /bitrix/templates/aspro_max/js/jquery.plugin.min.js?16586591523181*/ 3266; /* /bitrix/templates/aspro_max/js/jquery.countdown.min.js?165865915313137*/ 3267; /* /bitrix/templates/aspro_max/js/jquery.countdown-ru.min.js?16586591531487*/ 3268; /* /bitrix/templates/aspro_max/js/jquery.ikSelect.min.js?165865915322426*/ 3269; /* /bitrix/templates/aspro_max/js/jquery.mobile.custom.touch.min.js?16586591537784*/ 3270; /* /bitrix/templates/aspro_max/js/jquery.dotdotdot.min.js?16586591535908*/ 3271; /* /bitrix/templates/aspro_max/js/rating_likes.min.js?16586591537297*/ 3272; /* /bitrix/templates/aspro_max/js/buy_services.min.js?16586591534173*/ 3273; /* /bitrix/templates/aspro_max/js/mobile.min.js?165865915312360*/ 3274; /* /bitrix/templates/aspro_max/js/jquery.mousewheel.min.js?16586591532609*/ 3275; /* /bitrix/templates/aspro_max/js/jquery.mCustomScrollbar.js?165865915394214*/ 3276; /* /bitrix/templates/aspro_max/js/scrollTabs.min.js?16586591536994*/ 3277; /* /bitrix/templates/aspro_max/js/main.min.js?1658659153257223*/ 3278; /* /bitrix/templates/aspro_max/js/blocks/blocks.min.js?16586591538843*/ 3279; /* /bitrix/components/bitrix/search.title/script.min.js?17805703806573*/ 3280; /* /bitrix/templates/aspro_max/components/bitrix/search.title/mega_menu/script.min.js?16586591556366*/ 3281; /* /bitrix/templates/aspro_max/components/bitrix/menu/menu_in_burger/script.min.js?165865915539*/ 3282; /* /bitrix/templates/aspro_max/components/bitrix/menu/top/script.min.js?165865915573*/ 3283; /* /bitrix/templates/aspro_max/components/bitrix/menu/top_catalog_only/script.min.js?1658659155169*/ 3284; /* /bitrix/templates/aspro_max/components/bitrix/search.title/corp/script.min.js?16586591556556*/ 3285; /* /bitrix/templates/aspro_max/components/bitrix/news.list/banners/script.min.js?1658659156105*/ 3286; /* /bitrix/components/aspro/marketing.popup.max/templates/.default/script.min.js?16586589141099*/ 3287; /* /bitrix/templates/aspro_max/components/bitrix/search.title/fixed/script.min.js?16586591556439*/ 3288; /* /bitrix/templates/aspro_max/js/custom.js?1658659153100*/ 3289 3290//# sourceMappingURL=template_121cdff82d01e70535b955eadac29b81.map.js
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.