1function JCSmartFilter(t,e,i){this.ajaxURL=t,this.form=null,this.timer=null,this.cacheKey="",this.cache=[],this.viewMode=e,this.normal_url=!1,this.reset=!1,this.SEF_SET_FILTER_URL=i.SEF_SET_FILTER_URL,this.SEF_DEL_FILTER_URL=i.SEF_DEL_FILTER_URL,this.bindUrlToButton("set_filter",i.SEF_SET_FILTER_URL),this.sef=!0,this.bindUrlToButton("del_filter",i.SEF_DEL_FILTER_URL),i.SEF_DEL_FILTER_URL||(this.normal_url=!0)}window.JCSmartFilterBinds||$(document).ready((function(){$(document).on("click",".bx_filter.compact .bx_filter_parameters_box_title .delete_filter",(function(){var t=$(this);t.closest(".bx_filter_parameters_box").find("input[type=text]").val(""),t.closest(".bx_filter_parameters_box").removeClass("set"),t.closest(".bx_filter_parameters_box").find(".pict label").removeClass("active"),t.closest(".bx_filter_parameters_box").find(".bx_filter_parameters_box_title .count_selected").text("");var e=!1;t.closest(".bx_filter_parameters_box").find("input").each((function(){var t=this;$(t).prop("checked",!1),e&&clearTimeout(e),e=setTimeout((function(){smartFilter.reload(t)}),100)}))})),$(document).on("click",".bx_filter.compact .bx_filter_block",(function(t){t.stopPropagation()})),$(document).on("click",".bx_filter_button_box .bx_filter_search_reset",(function(t){$(this).addClass("hidden"),$(".bx_filter_search_reset.btn-link-text").click()})),$(document).on("click","#mobilefilter .bx_filter_parameters_box_title:not(.prices)",(function(t){$(this).closest(".bx_filter_parameters_box").toggleClass("active")})),$(document).on("click",".filter-compact-block .bx_filter_parameters_box_title.prices.title",(function(t){BX.PopupWindowManager.getCurrentPopup()&&BX.PopupWindowManager.getCurrentPopup().close(),$(".bx_filter_parameters_box").removeClass("active")})),$(document).on("click",".filter-compact-block .bx_filter_parameters_box_title:not(.prices)",(function(t){t.target;if(!$(t.target).hasClass("tooltip")&&!$(t.target).hasClass("delete_filter")&&!$(t.target).closest(".delete_filter").length){t.stopPropagation();var e=$(this).closest(".bx_filter_parameters_box");if(e.hasClass("active"))$(this).next(".bx_filter_block").stop().slideUp(100);else{$(".bx_filter_block:not(.limited_block)").slideUp(100),$(".bx_filter_parameters_box").removeClass("active");var i=$(this);setTimeout((function(){i.offset().left+i.next(".bx_filter_block").outerWidth()>$(window).width()?i.next(".bx_filter_block").addClass("right"):i.next(".bx_filter_block").removeClass("right")}),0),i.next(".bx_filter_block").stop().slideDown(300)}e.toggleClass("active")}})),$(document).on("click",".bx_filter_block .bx_filter_button_box .btn",(function(){$(this).closest("form").find(".bx_filter_search_button").click()})),$(document).on("click",(function(t){$(".filter-compact-block .bx_filter_block:not(.limited_block)").stop().slideUp(100),$(".filter-compact-block .bx_filter_parameters_box").removeClass("active")})),$(document).click((function(t){$(t.target).hasClass("tooltip")||$(".bx_filter .hint.active").removeClass("active").find(".tooltip").slideUp(200)})),window.JCSmartFilterBinds=!0})),JCSmartFilter.prototype.keyup=function(t){this.timer&&clearTimeout(this.timer),$(t).hasClass("disabled")||(this.timer=setTimeout(BX.delegate((function(){this.reload(t)}),this),500))},JCSmartFilter.prototype.click=function(t){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(BX.delegate((function(){this.reload(t)}),this),500)},JCSmartFilter.prototype.reload=function(t){if(""!==this.cacheKey)return this.timer&&clearTimeout(this.timer),void(this.timer=setTimeout(BX.delegate((function(){this.reload(t)}),this),1e3));if(this.cacheKey="|",this.position=BX.pos(t,!0),this.form=BX.findParent(t,{tag:"form"}),this.form){$(".middle > .container .ajax_load").length&&$(".middle > .container .ajax_load").addClass("loading-state");var e=[];e[0]={name:"ajax",value:"y"},this.gatherInputsValues(e,BX.findChildren(this.form,{tag:new RegExp("^(input|select)$","i")},!0)),$(".bx_filter_parameters_box").removeClass("set");for(var i=0;i<e.length;i++)this.cacheKey+=e[i].name+":"+e[i].value+"|",$("input[name="+e[i].name+"]:not(.filter-search-values)").closest(".bx_filter_parameters_box").addClass("set");if(this.cache[this.cacheKey])this.curFilterinput=t,this.postHandler(this.cache[this.cacheKey],!0);else{if(this.sef){var r=BX("set_filter"),l=BX("del_filter");r&&(r.disabled=!0),l&&(l.disabled=!0)}this.curFilterinput=t,BX.ajax.loadJSON(this.ajaxURL,this.values2post(e),BX.delegate(this.postHandler,this))}}i=0;$(t).closest(".bx_filter_block").find("input[type=checkbox], input[type=radio]").each((function(){!0===$(this).prop("checked")&&++i})).promise().done((function(){0!=i?$(t).closest(".bx_filter_parameters_box").find(".bx_filter_parameters_box_title .count_selected").text(": "+i):$(t).closest(".bx_filter_parameters_box").find(".bx_filter_parameters_box_title .count_selected").text("")}))}
1,JCSmartFilter.prototype.updateItem=function(t,e,i){if("N"===e.PROPERTY_TYPE||e.PRICE){var r=window["trackBar"+t];!r&&e.ENCODED_ID&&(r=window["trackBar"+e.ENCODED_ID]),r&&e.VALUES&&(e.VALUES.MIN&&(e.VALUES.MIN.FILTERED_VALUE?r.setMinFilteredValue(e.VALUES.MIN.FILTERED_VALUE):r.setMinFilteredValue(e.VALUES.MIN.VALUE)),e.VALUES.MAX&&(e.VALUES.MAX.FILTERED_VALUE?r.setMaxFilteredValue(e.VALUES.MAX.FILTERED_VALUE):r.setMaxFilteredValue(e.VALUES.MAX.VALUE)),"Y"==i&&(r.leftPercent=r.rightPercent=0,$("#"+e.VALUES.MIN.CONTROL_ID).val(""),$("#"+e.VALUES.MAX.CONTROL_ID).val(""),$("#left_slider_"+e.ENCODED_ID).css({left:"0%"}),$("#colorUnavailableActive_"+e.ENCODED_ID).css({left:"0%",right:"0%"}),$("#colorAvailableInactive_"+e.ENCODED_ID).css({left:"0%",right:"0%"}),$("#colorAvailableActive_"+e.ENCODED_ID).css({left:"0%",right:"0%"}),$("#right_slider_"+e.ENCODED_ID).css({right:"0%"})))}else if(e.VALUES)for(var l in e.VALUES)if(e.VALUES.hasOwnProperty(l)){var s=e.VALUES[l],o=BX(s.CONTROL_ID);if(o){var a=document.querySelector('[data-role="label_'+s.CONTROL_ID+'"]');input=document.querySelector('[id="'+s.CONTROL_ID+'"]'),s.DISABLED?a?(BX.addClass(a,"disabled"),input&&(input.setAttribute("disabled","disabled"),BX.addClass(input,"disabled"))):BX.addClass(o.parentNode,"disabled"):a?(BX.removeClass(a,"disabled"),input&&(input.removeAttribute("disabled"),BX.removeClass(input,"disabled")),$(o)&&($(o).prop("disabled",!1),$(o).removeClass("disabled")),$(a).find("span").removeClass("disabled")):BX.removeClass(o.parentNode,"disabled"),"Y"==i&&("checkbox"!=$(o).attr("type")&&"radio"!=$(o).attr("type")||$(o).attr("checked")&&$(o).prop("checked",!1)),s.hasOwnProperty("ELEMENT_COUNT")&&(a=document.querySelector('[data-role="count_'+s.CONTROL_ID+'"]'))&&(a.innerHTML=s.ELEMENT_COUNT)}}},JCSmartFilter.prototype.postHandlerAjax=function(t,e){$("#content").html(t)},JCSmartFilter.prototype.setUrlSortDisplay=function(t){var e="",i="";$(".sort_btn").each((function(){(e=$(this).attr("href").split("?"))[0]=t,i=e.join("?"),$(this).attr("href",i)}))},JCSmartFilter.prototype.filterCatalog=function(t,e,i,r){window.History.enabled||null!=window.history.pushState?window.history.pushState(null,document.title,t):location.href=t,$(".middle > .container .ajax_load").length&&$(".middle > .container .ajax_load").addClass("loading-state"),$.ajax({url:t,type:"GET",data:{ajax_get:"Y",ajax_get_filter:"Y"},success:function(t){if(!i||$("#wrapInlineFilter").length&&$("#wrapInlineFilter").is(":empty")){var l=$(t).find(".inner_wrapper").html();$(".middle > .container .inner_wrapper").html(l),$(".sort_header").html($(t).find(".sort_header").html()),$(".top-content-block").html($(t).find(".top-content-block").html()),$(t).find(".filter_title").hasClass("active-filter")?($(".filter_title").addClass("active-filter"),$(".bx_filter_search_reset ").removeClass("hidden")):($(".filter_title").removeClass("active-filter"),$(".bx_filter_search_reset ").addClass("hidden")),i&&$("#mobilefilter .bx_filter").length&&($("#mobilefilter").html(""),$(t).find(".bx_filter").appendTo($("#mobilefilter")),$("#mobilefilter .bx_filter_parameters").addClass("scrollbar"),$("#mobilefilter .bx_filter_parameters .bx_filter_parameters_box_title").addClass("colored_theme_hover_bg-block"),smartFilter.bindUrlToButton("set_filter",smartFilter.SEF_SET_FILTER_URL),smartFilter.bindUrlToButton("del_filter",smartFilter.SEF_DEL_FILTER_URL),mobileFilterNum(r),void 0!==window.sortFilterPopup&&"function"==typeof window.sortFilterPopup.destroy&&window.sortFilterPopup.destroy()),"checkFilterLandgings"in window&&"function"==typeof checkFilterLandgings&&checkFilterLandgings()}else $(".js-load-wrapper").html($(t).find(".js-load-wrapper").html()),$(".top-content-block").html($(t).find(".top-content-block").html()),"checkFilterLandgings"in window&&"function"==typeof checkFilterLandgings&&checkFilterLandgings();if($(".fast_view_frame").remove(),BX.onCustomEvent("onAjaxSuccessFilter"),"Y"==e){var s=BX("set_filter"),o=BX("del_filter");s&&(s.disabled=!1),o&&(o.disabled=!1)}if(BX.onCustomEvent("onCompleteAction",[{action:"jsLoadBlock"},this]),$(".middle > .container .ajax_load").length&&$(".middle > .container .ajax_load").removeClass("loading-state"),"undefined"!=typeof Ya&&"function"==typeof Ya.share2){let t=document.querySelector(".ya-share2");t&&Ya.share2(t,{content:{url:location.href}})}}})},JCSmartFilter.prototype.postHandler=function(t,e){var i,r,l=BX("modef"),s=BX("modef_mobile"),o=BX("modef_num"),a=(BX("modef_num_mobile"),"N");if("RESET_FORM"in t&&(document.getElementsByClassName("smartfilter")[0].reset(),a="Y"),t&&t.ITEMS){for(var n in t.ITEMS)t.ITEMS.hasOwnProperty(n)&&this.updateItem(n,t.ITEMS[n],a);"Y"==a&&$(".bx_filter_select_block").length&&$(".bx_filter_select_block").each((function(){$(this).closest(".bx_filter_parameters_box").attr("property_id");
1var t=$(this).find(".input_wr_all input:first-child").data("title");$(this).find(".bx_filter_select_text").text(t),$(this).find(".bx_filter_select_popup li label").removeClass("selected")})),l&&o&&($(".bx_filter.compact .bx_filter_button_box .bx_filter_container_modef").html(BX.message("SELECTED")+t.ELEMENT_COUNT),$(".bx_filter.compact .bx_filter_button_box").show(),"function"==typeof mobileFilterNum&&mobileFilterNum(t.ELEMENT_COUNT),i=BX.findChildren(l,{tag:"A"},!0),hrefFILTER_mobile=BX.findChildren(s,{tag:"A"},!0),t.FILTER_URL&&i&&(i[0].href=BX.util.htmlspecialcharsback(t.FILTER_URL.replace("/filter/clear/apply/","/")),hrefFILTER_mobile[0].href=BX.util.htmlspecialcharsback(t.FILTER_URL.replace("/filter/clear/apply/","/"))),t.FILTER_AJAX_URL&&t.COMPONENT_CONTAINER_ID&&(BX.unbindAll(i[0]),BX.unbindAll(hrefFILTER_mobile[0]),BX.bind(i[0],"click",(function(e){return r=BX.util.htmlspecialcharsback(t.FILTER_AJAX_URL),BX.ajax.insertToNode(r,t.COMPONENT_CONTAINER_ID),BX.PreventDefault(e)}))),t.INSTANT_RELOAD&&t.COMPONENT_CONTAINER_ID?(r=BX.util.htmlspecialcharsback(t.FILTER_AJAX_URL),BX.ajax.insertToNode(r,t.COMPONENT_CONTAINER_ID)):(r=BX.util.htmlspecialcharsback(t.FILTER_AJAX_URL),this.filterCatalog(r,"N",this.reset,t.ELEMENT_COUNT),t.SEF_SET_FILTER_URL?this.bindUrlToButton("set_filter",t.SEF_SET_FILTER_URL):this.bindUrlToButton("set_filter",r)))}if(this.sef){var c=BX("set_filter"),h=BX("del_filter");c&&(c.disabled=!1),h&&(h.disabled=!1)}e||""===this.cacheKey||(this.cache[this.cacheKey]=t),this.cacheKey=""},JCSmartFilter.prototype.bindUrlToButton=function(t,e){var i=BX(t);if(i){"submit"==i.type&&(i.type="button"),$(i).data("href",e),BX.unbindAll(i),BX.bind(i,"click",BX.proxy((function(){var t=$(i).data("href"),e=$(i).attr("id");if($(".middle > .container .ajax_load").length&&$(".middle > .container .ajax_load").addClass("loading-state"),"del_filter"==e){var r=[],l=this.normal_url?$("form.smartfilter").attr("action"):this.ajaxURL;if(r[0]={name:"ajax",value:"y"},this.normal_url||this.gatherInputsValues(r,BX.findChildren(document.getElementById("smartfilter"),{attribute:"hidden"},!0)),r[1]={name:"reset_form",value:"y"},this.sef){var s=BX("set_filter"),o=BX("del_filter");s&&(s.disabled=!0),o&&(o.disabled=!0)}this.reset=!0,BX.ajax.loadJSON(l,this.values2post(r),BX.delegate(this.postHandler,this))}else if(t){if(this.sef){s=BX("set_filter"),o=BX("del_filter");s&&(s.disabled=!0),o&&(o.disabled=!0)}this.filterCatalog(t,"Y")}}),this))}},JCSmartFilter.prototype.gatherInputsValues=function(t,e){if(e)for(var i=0;i<e.length;i++){var r=e[i];if(r.type)switch(r.type.toLowerCase()){case"text":case"textarea":case"password":case"hidden":case"select-one":r.value.length&&(t[t.length]={name:r.name,value:r.value});break;case"radio":case"checkbox":r.checked&&(t[t.length]={name:r.name,value:r.value});break;case"select-multiple":for(var l=0;l<r.options.length;l++)r.options[l].selected&&(t[t.length]={name:r.name,value:r.options[l].value});break;default:break}}},JCSmartFilter.prototype.values2post=function(t){for(var e=[],i=e,r=0;r<t.length;){var l=t[r].name.indexOf("[");if(-1==l)i[t[r].name]=t[r].value,i=e,r++;else{var s=t[r].name.substring(0,l),o=t[r].name.substring(l+1);i[s]||(i[s]=[]);var a=o.indexOf("]");-1==a?(i=e,r++):0==a?(i=i[s],t[r].name=""+i.length):(i=i[s],t[r].name=o.substring(0,a)+o.substring(a+1))}}return"q"in e&&delete e.q,"s"in e&&delete e.s,e},JCSmartFilter.prototype.hideFilterProps=function(t){var e=t.parentNode,i=e.querySelector("[data-role='bx_filter_block']"),r=e.querySelector("[data-role='prop_angle']");if(BX.hasClass(e,"bx-active"))new BX.easing({duration:300,start:{opacity:1,height:i.offsetHeight},finish:{opacity:0,height:0},transition:BX.easing.transitions.quart,step:function(t){i.style.opacity=t.opacity,i.style.height=t.height+"px"},complete:function(){i.setAttribute("style",""),BX.removeClass(e,"bx-active")}}).animate(),BX.addClass(r,"fa-angle-down"),BX.removeClass(r,"fa-angle-up");else{i.style.display="block",i.style.opacity=0,i.style.height="auto";var l=i.offsetHeight;i.style.height=0,new BX.easing({duration:300,start:{opacity:0,height:0},finish:{opacity:1,height:l},transition:BX.easing.transitions.quart,step:function(t){i.style.opacity=t.opacity,i.style.height=t.height+"px"},complete:function(){}}).animate(),BX.addClass(e,"bx-active"),BX.removeClass(r,"fa-angle-down"),BX.addClass(r,"fa-angle-up")}},JCSmartFilter.prototype.showDropDownPopup=function(t,e){const i="smartFilterDropDown"+e;var r=t.querySelector('[data-role="dropdownContent"]'),l=($(t).offset(),BX.PopupWindowManager.create(i,t,{autoHide:!0,offsetLeft:0,offsetTop:0,overlay:!1,draggable:{restrict:!0},closeByEsc:!0,content:r}));void 0!==BX.PopupWindowManager._popups&&BX.PopupWindowManager._popups.length&&l.bindElement!==t&&(BX.PopupWindowManager._popups=BX.PopupWindowManager._popups.filter((function(t){t.uniquePopupId})),l=BX.PopupWindowManager.create(i,t,{autoHide:!0,offsetLeft:0,offsetTop:0,overlay:!1,draggable:{restrict:!0},closeByEsc:!0,content:r})),"ASPRO_FILTER_SORT"==e&&(window.sortFilterPopup=l),l.show(),$(t).closest(".bx_filter_parameters_box_container").find("#smartFilterDropDown"+e).length||$("#smartFilterDropDown"+e).insertAfter($(t).closest(".bx_filter_parameters_box_container")),$("#smartFilterDropDown"+e).addClass("scrollblock").css({top:"auto",left:"auto"}),InitScrollBar()},JCSmartFilter.prototype.selectDropDownItem=function(t,e){BX.hasClass(t,"disabled")||(this.keyup(BX(e)),BX.findParent(BX(e),{className:"bx_filter_select_container"},!1).querySelector('[data-role="currentOption"]').innerHTML=t.innerHTML,$(t).closest(".bx_filter_select_popup").find("label").removeClass("selected"),BX.addClass(t,"selected"),BX.PopupWindowManager.getCurrentPopup()&&BX.PopupWindowManager.getCurrentPopup().close())},BX.namespace("BX.Iblock.SmartFilter"),BX.Iblock.SmartFilter=function(){var t=function(t){"object"==typeof t&&(this.leftSlider=BX(t.leftSlider),this.rightSlider=BX(t.rightSlider),this.tracker=BX(t.tracker),this.trackerWrap=BX(t.trackerWrap),this.minInput=BX(t.minInputId),this.maxInput=BX(t.maxInputId),this.minPrice=parseFloat(t.minPrice),this.maxPrice=parseFloat(t.maxPrice),this.curMinPrice=parseFloat(t.curMinPrice),this.curMaxPrice=parseFloat(t.curMaxPrice),this.fltMinPrice=t.fltMinPrice?parseFloat(t.fltMinPrice):parseFloat(t.curMinPrice),this.fltMaxPrice=t.fltMaxPrice?parseFloat(t.fltMaxPrice):parseFloat(t.curMaxPrice),this.precision=t.precision||0,this.priceDiff=this.maxPrice-this.minPrice,this.leftPercent=t.leftPercent?parseFloat(t.leftPercent):0,this.rightPercent=t.rightPercent?parseFloat(t.rightPercent):0,this.fltMinPercent=0,this.fltMaxPercent=0,this.colorUnavailableActive=BX(t.colorUnavailableActive),this.colorAvailableActive=BX(t.colorAvailableActive),this.colorAvailableInactive=BX(t.colorAvailableInactive),this.isTouch=!1,this.init(),"ontouchstart"in document.documentElement||"ontouchstart"in window?(this.isTouch=!0,BX.bind(this.leftSlider,"touchstart",BX.proxy((function(t){this.onMoveLeftSlider(t)}),this)),BX.bind(this.rightSlider,"touchstart",BX.proxy((function(t){this.onMoveRightSlider(t)}),this)),BX.bind(this.colorAvailableActive,"touchstart",BX.proxy((function(t){this.onChangeLeftSlider(t)}),this)),BX.bind(this.colorUnavailableActive,"touchstart",BX.proxy((function(t){this.onChangeLeftSlider(t)}),this)),BX.bind(this.colorAvailableInactive,"touchstart",BX.proxy((function(t){this.onChangeLeftSlider(t)}),this))):(BX.bind(this.leftSlider,"mousedown",BX.proxy((function(t){this.onMoveLeftSlider(t)}),this)),BX.bind(this.rightSlider,"mousedown",BX.proxy((function(t){this.onMoveRightSlider(t)}),this)),BX.bind(this.colorAvailableActive,"mousedown",BX.proxy((function(t){this.onChangeLeftSlider(t)}),this)),BX.bind(this.colorUnavailableActive,"mousedown",BX.proxy((function(t){this.onChangeLeftSlider(t)}),this)),BX.bind(this.colorAvailableInactive,"mousedown",BX.proxy((function(t){this.onChangeLeftSlider(t)}),this))),BX.bind(this.minInput,"keyup",BX.proxy((function(t){this.onInputChange()}),this)),BX.bind(this.maxInput,"keyup",BX.proxy((function(t){this.onInputChange()}),this)))};return t.prototype.init=function(){var t;this.curMinPrice>this.minPrice&&(t=this.curMinPrice-this.minPrice,this.leftPercent=100*t/this.priceDiff,this.leftSlider.style.left=this.leftPercent+"%",this.colorUnavailableActive.style.left=this.leftPercent+"%"),this.setMinFilteredValue(this.fltMinPrice),this.curMaxPrice<this.maxPrice&&(t=this.maxPrice-this.curMaxPrice,this.rightPercent=100*t/this.priceDiff,this.rightSlider.style.right=this.rightPercent+"%",this.colorUnavailableActive.style.right=this.rightPercent+"%"),this.setMaxFilteredValue(this.fltMaxPrice)},t.prototype.setMinFilteredValue=function(t){if(this.fltMinPrice=parseFloat(t),this.fltMinPrice>=this.minPrice){var e=this.fltMinPrice-this.minPrice;this.fltMinPercent=100*e/this.priceDiff,this.leftPercent>this.fltMinPercent?this.colorAvailableActive.style.left=this.leftPercent+"%":this.colorAvailableActive.style.left=this.fltMinPercent+"%",this.colorAvailableInactive.style.left=this.fltMinPercent+"%"}else this.colorAvailableActive.style.left="0%",this.colorAvailableInactive.style.left="0%"},t.prototype.setMaxFilteredValue=function(t){if(this.fltMaxPrice=parseFloat(t),this.fltMaxPrice<=this.maxPrice){var e=this.maxPrice-this.fltMaxPrice;this.fltMaxPercent=100*e/this.priceDiff,this.rightPercent>this.fltMaxPercent?this.colorAvailableActive.style.right=this.rightPercent+"%":this.colorAvailableActive.style.right=this.fltMaxPercent+"%",this.colorAvailableInactive.style.right=this.fltMaxPercent+"%"}else this.colorAvailableActive.style.right="0%",this.colorAvailableInactive.style.right="0%"},t.prototype.getXCoord=function(t){var e=t.getBoundingClientRect(),i=document.body,r=document.documentElement,l=window.pageXOffset||r.scrollLeft||i.scrollLeft,s=r.clientLeft||i.clientLeft||0,o=e.left+l-s;return Math.round(o)},t.prototype.getPageX=function(t){t=t||window.event;var e=null;if(this.isTouch&&null!=t.targetTouches[0])e=t.targetTouches[0].pageX;else if(null!=t.pageX)e=t.pageX;else if(null!=t.clientX){var i=document.documentElement,r=document.body;e=t.clientX+(i.scrollLeft||r&&r.scrollLeft||0),e-=i.clientLeft||0}return e},t.prototype.recountMinPrice=function(){var t=this.priceDiff*this.leftPercent/100;(t=(this.minPrice+t).toFixed(this.precision))!=this.minPrice?this.minInput.value=t:this.minInput.value="",smartFilter.keyup(this.minInput)},t.prototype.recountMaxPrice=function(){var t=this.priceDiff*this.rightPercent/100;(t=(this.maxPrice-t).toFixed(this.precision))!=this.maxPrice?this.maxInput.value=t:this.maxInput.value="",smartFilter.keyup(this.maxInput)},t.prototype.onInputChange=function(){var t;if(this.minInput.value){var e=this.minInput.value;e<this.minPrice&&(e=this.minPrice),e>this.maxPrice&&(e=this.maxPrice),t=e-this.minPrice,this.leftPercent=100*t/this.priceDiff,this.makeLeftSliderMove(!1)}if(this.maxInput.value){var i=this.maxInput.value;i<this.minPrice&&(i=this.minPrice),i>this.maxPrice&&(i=this.maxPrice),t=this.maxPrice-i,this.rightPercent=100*t/this.priceDiff,this.makeRightSliderMove(!1)}},t.prototype.makeLeftSliderMove=function(t){t=!1!==t,this.leftSlider.style.left=this.leftPercent+"%",this.colorUnavailableActive.style.left=this.leftPercent+"%";var e=!1;this.leftPercent+this.rightPercent>=100&&(e=!0,this.rightPercent=100-this.leftPercent,this.rightSlider.style.right=this.rightPercent+"%",this.colorUnavailableActive.style.right=this.rightPercent+"%"),this.leftPercent>=this.fltMinPercent&&this.leftPercent<=100-this.fltMaxPercent?(this.colorAvailableActive.style.left=this.leftPercent+"%",e&&(this.colorAvailableActive.style.right=100-this.leftPercent+"%")):this.leftPercent<=this.fltMinPercent?(this.colorAvailableActive.style.left=this.fltMinPercent+"%",e&&(this.colorAvailableActive.style.right=100-this.fltMinPercent+"%")):this.leftPercent>=this.fltMaxPercent&&(this.colorAvailableActive.style.left=100-this.fltMaxPercent+"%",e&&(this.colorAvailableActive.style.right=this.fltMaxPercent+"%")),t&&(this.recountMinPrice(),e&&this.recountMaxPrice())},t.prototype.countNewLeft=function(t){var e=this.getPageX(t),i=this.getXCoord(this.trackerWrap),r=this.trackerWrap.offsetWidth,l=e-i;return l<0?l=0:l>r&&(l=r),l},t.prototype.onMoveLeftSlider=function(t){if(this.isTouch||(this.leftSlider.ondragstart=function(){return!1}),$(".bx_filter .bx_filter_parameters_box_container input").prop("disabled",!1),this.isTouch){var e=BX.proxy((function(t){this.leftPercent=100*this.countNewLeft(t)/this.trackerWrap.offsetWidth,this.makeLeftSliderMove()}),this),i=BX.proxy((function(t){window.removeEventListener("touchmove",e,!1),window.removeEventListener("touchend",i,!1),e=i=null}),this);window.addEventListener("touchmove",e,!1),window.addEventListener("touchend",i,!1)}else document.onmousemove=BX.proxy((function(t){this.leftPercent=100*this.countNewLeft(t)/this.trackerWrap.offsetWidth,this.makeLeftSliderMove()}),this),document.onmouseup=function(){document.onmousemove=document.onmouseup=null};return!1},t.prototype.makeRightSliderMove=function(t){t=!1!==t,this.rightSlider.style.right=this.rightPercent+"%",this.colorUnavailableActive.style.right=this.rightPercent+"%";var e=!1;this.leftPercent+this.rightPercent>=100&&(e=!0,this.leftPercent=100-this.rightPercent,this.leftSlider.style.left=this.leftPercent+"%",this.colorUnavailableActive.style.left=this.leftPercent+"%"),100-this.rightPercent>=this.fltMinPercent&&this.rightPercent>=this.fltMaxPercent?(this.colorAvailableActive.style.right=this.rightPercent+"%",e&&(this.colorAvailableActive.style.left=100-this.rightPercent+"%")):this.rightPercent<=this.fltMaxPercent?(this.colorAvailableActive.style.right=this.fltMaxPercent+"%",e&&(this.colorAvailableActive.style.left=100-this.fltMaxPercent+"%")):100-this.rightPercent<=this.fltMinPercent&&(this.colorAvailableActive.style.right=100-this.fltMinPercent+"%",e&&(this.colorAvailableActive.style.left=this.fltMinPercent+"%")),t&&(this.recountMaxPrice(),e&&this.recountMinPrice())},t.prototype.onMoveRightSlider=function(t){return this.isTouch||(this.rightSlider.ondragstart=function(){return!1}),$(".bx_filter .bx_filter_parameters_box_container input").prop("disabled",!1),this.isTouch?(document.ontouchmove=BX.proxy((function(t){this.rightPercent=100-100*this.countNewLeft(t)/this.trackerWrap.offsetWidth,this.makeRightSliderMove()}),this),document.ontouchend=function(){document.ontouchmove=document.ontouchend=null}):(document.onmousemove=BX.proxy((function(t){this.rightPercent=100-100*this.countNewLeft(t)/this.trackerWrap.offsetWidth,this.makeRightSliderMove()}),this),document.onmouseup=function(){document.onmousemove=document.onmouseup=null}),!1},t.prototype.onChangeLeftSlider=function(t){if(this.isTouch||(this.leftSlider.ondragstart=function(){}),this.isTouch){e=100*this.countNewLeft(t)/this.trackerWrap.offsetWidth;if($(t.target).is(".bx_ui_slider_handle"))return;e<50?(this.leftPercent=e,this.makeLeftSliderMove()):(this.rightPercent=100-e,this.makeRightSliderMove())}else{var e=100*this.countNewLeft(event)/this.trackerWrap.offsetWidth;if($(event.target).is(".bx_ui_slider_handle")||!$(event.target).is("[class^=bx_ui_slider]"))return;e<50?(this.leftPercent=e+1,this.makeLeftSliderMove()):(this.rightPercent=100-e,this.makeRightSliderMove()),document.onmouseup=function(){document.onmousemove=document.onmouseup=null}}return!1},t}();
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.