1appAspro.headerMenu={},BX.Aspro.Utils.readyDOM((()=>{$("#mobileheader .burger").on("click",(function(){const e=$("#mobilemenu");appAspro.headerPhones.close((()=>{e.hasClass("opened")?appAspro.headerMenu.close(e):(appAspro.loadScript([arAsproOptions.SITE_TEMPLATE_PATH+"/vendor/jquery.cookie.js"]),appAspro.headerMenu.open(e))}))})),$(".mobilemenu__close").on("click",(function(){appAspro.headerMenu.close()}))})),appAspro.headerMenu.moveMobileMenuWrapNext=function(e){const n=e.find(".mobilemenu"),i=e.find(".mobilemenu__inner");if(i.length){const o=i.data("params"),t=e.find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown").eq(o.depth);if(t.length){const s=t.closest(".mobilemenu__menu--regions").length,a=s?t.find(".menu-item-fixed"):null;o.scroll[o.depth]=parseInt(e.scrollTop()),o.height[o.depth+1]=Math.max(t.height(),o.depth?e.find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown").eq(o.depth-1).height():i.height()),n.css("height",o.height[o.depth+1]+"px"),++o.depth,i.css("transform","translateX("+-100*o.depth+"%)"),setTimeout((function(){e.animate({scrollTop:0},200)}),100),s&&a.css("height",e.height()-a.position().top-parseInt(t.css("padding-bottom"))+"px");const r=t.outerHeight();setTimeout((function(){r?n.css("height",r+"px"):n.css("height",""),s&&(setTimeout((function(){a.css("overflow","")}),200),appAspro.headerMenu.regions.init())}),200)}i.data("params",o)}},appAspro.headerMenu.moveMobileMenuWrapPrev=function(e){const n=e.find(".mobilemenu"),i=e.find(".mobilemenu__inner");if(i.length){const o=i.data("params");if(o.depth>0){const t=e.find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown").eq(o.depth-1);if(t.length){n.css("height",o.height[o.depth]+"px"),--o.depth,i.css("transform","translateX("+-100*o.depth+"%)"),setTimeout((function(){e.animate({scrollTop:o.scroll[o.depth]},200)}),100),t.closest(".mobilemenu__menu--regions").length&&(t.find(".menu-item-fixed").css("overflow","hidden"),setTimeout((function(){t.find(".menu-item-fixed").animate({scrollTop:0},200)}),100));const s=!!o.depth&&e.find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown").eq(o.depth-1).outerHeight();setTimeout((function(){s?n.css("height",s+"px"):n.css("height","")}),200)}}i.data("params",o)}},appAspro.headerMenu.open=(e=$("#mobilemenu"))=>{$("body").hasClass("mmenu_leftside")?($("#mobileheader").addClass("filter-none"),e.addClass("filter-none"),appAspro.removeOverlay(),appAspro.addOverlay("#mobileheader")):e.css({top:+($("#mobileheader")[0].getBoundingClientRect().top+$("#mobileheader").height())+"px"}),appAspro.loadCSS("/bitrix/templates/aspro-premier/css/left-menu.css"),e.addClass("show");const n=e.find(".mobilemenu__inner");let i=n.data("params");void 0===i&&(i={depth:0,scroll:{},height:{}}),n.data("params",i)},appAspro.headerMenu.close=(e=$("#mobilemenu"))=>{e.removeClass("show"),$("#mobileheader").removeClass("filter-none"),e.removeClass("filter-none"),appAspro.removeOverlay()},appAspro.headerMenu.regions={inited:!1,init:function(){appAspro.headerMenu.regions.inited||(appAspro.headerMenu.regions.inited=!0,BX.loadExt(["aspro_set_cookie_on_domains","aspro_ui"]).then((()=>{$("#mobile-region-search").autocomplete({minLength:2,appendTo:$(".mobilemenu__menu--regions .dropdown .mobile-cities").closest(".menu-item-fixed"),source:function(e,n){let i=BX.message("bitrix_sessid"),o=BX.message("LANGUAGE_ID"),t=BX.message("SITE_ID"),s=location.pathname+location.search;BX.ajax({url:"/bitrix/services/main/ajax.php?mode=ajax&c="+encodeURIComponent("aspro:regionality.list.premier")+"&action=searchCities&sessid="+i+"&SITE_ID="+t+"&siteId="+t+"&url="+encodeURIComponent(s)+"&term="+encodeURIComponent(e.term)+"&lang="+o,method:"POST",async:!0,processData:!0,scriptsRunFirst:!0,emulateOnload:!0,start:!0,cache:!1,dataType:"json",onsuccess:function(e){if("object"==typeof e&&e&&"object"==typeof e.data&&e.data){let i=Object.values(e.data.cities);$("#mobile-region-search").data("cities",i),Object.values(i).length?n(e.data.cities):$(".mobilemenu__menu--regions .dropdown .mobile-cities").hide().siblings().empty().show()}},onfailure:function(){}})},select:function(e,n){let i=n.item.ID;if(i){setCookieOnDomains("current_region",i);let e=n.item.LOCATION_ID;e?setCookieOnDomains("current_location",e):setCookieOnDomains("current_location","",{expires:-1})}return $("#mobile-region-search").val(n.item.label),!1},focus:function(e,n){setTimeout((function(){$("#mobile-region-search").val(n.item.NAME);let e=$("#mobile-region-search").data("cities");"object"==typeof e&&e&&e.every(((e,i)=>e.NAME!=n.item.NAME||($(".mobilemenu__menu--regions .ui-autocomplete .mobilemenu__menu-item").eq(i).addClass("selected").siblings().removeClass("selected"),!1)))}),0)},open:function(e,n){$(".mobilemenu__menu--regions .dropdown .mobile-cities").hide().siblings().show()},close:function(e,n){$(".mobilemenu__menu--regions .dropdown .mobile-cities").siblings().show()}}).data("ui-autocomplete")._renderItem=function(e,n){let i='\n <li class="mobilemenu__menu-item mobilemenu__menu-item--city">\n <div class="link-wrapper bg-opacity-theme-parent-hover fill-theme-parent-all">\n <a href="'+n.URL+'" rel="nofollow" data-id="'+n.ID+'" data-locid="'+(n.LOCATION_ID?n.LOCATION_ID:"")+'" class="dark_link"><span class="font_15">'+n.NAME+"</span>"+(n.PATH?'<div class="secondary-color font_13">'+n.PATH+"</div>":"")+"</a>\n </div>\n </li>\n ";return $(i).appendTo(e)},$(".mobilemenu__menu--regions .dropdown .loadings").length&&(appAspro.headerMenu.regions.getMainCities.lastId=0,appAspro.headerMenu.regions.getMainCities.observer=new IntersectionObserver(((e,n)=>{e.forEach((e=>{e.isIntersecting&&(appAspro.headerMenu.regions.getMainCities.observer.unobserve(e.target),appAspro.headerMenu.regions.getMainCities())}))}),{root:null,rootMargin:"0px",threshold:.5}),appAspro.headerMenu.regions.getMainCities())})))},getMainCities:function(){let e=BX.message("bitrix_sessid"),n=BX.message("LANGUAGE_ID"),i=BX.message("S
1ITE_ID"),o=location.pathname+location.search,t=appAspro.headerMenu.regions.getMainCities.lastId,s=$(".mobilemenu__menu--regions .dropdown .loadings").closest("li");BX.ajax({url:"/bitrix/services/main/ajax.php?mode=ajax&c="+encodeURIComponent("aspro:regionality.list.premier")+"&action=getMainCities&sessid="+e+"&SITE_ID="+i+"&siteId="+i+"&url="+encodeURIComponent(o)+"&lastId="+t+"&lang="+n,method:"POST",async:!0,processData:!0,scriptsRunFirst:!0,emulateOnload:!0,start:!0,cache:!1,dataType:"json",onsuccess:function(e){if("object"==typeof e&&e&&"object"==typeof e.data&&e.data&&(void 0!==e.data.lastId&&(appAspro.headerMenu.regions.getMainCities.lastId=e.data.lastId),e.data.cities&&Object.values(e.data.cities).length)){let n="";for(let i in e.data.cities){let o=e.data.cities[i];n+='\n <li class="mobilemenu__menu-item mobilemenu__menu-item--city main-city'+(1==o.CURRENT?" mobilemenu__menu-item--selected":"")+'">\n <div class="link-wrapper bg-opacity-theme-parent-hover fill-theme-parent-all">\n <a href="'+o.URL+'" rel="nofollow" data-id="'+o.ID+'" data-locid="'+(o.LOCATION_ID?o.LOCATION_ID:"")+'" class="dark_link"><span class="font_15">'+o.NAME+"</span>"+(o.PATH?'<div class="secondary-color font_13">'+o.PATH+"</div>":"")+"</a>\n </div>\n </li>\n "}$(n).insertBefore(s),e.data.more?appAspro.headerMenu.regions.getMainCities.observer.observe(s[0]):s.remove()}},onfailure:function(){s.remove()}})}},$(document).on("click",".mobilemenu__menu .toggle_block",(function(e){e.stopPropagation();const n=$("#mobilemenu"),i=$(this).closest(".mobilemenu__menu-item");i.hasClass("mobilemenu__menu-item--parent")&&(e.preventDefault(),i.addClass("mobilemenu__menu-item--expanded"),appAspro.headerMenu.moveMobileMenuWrapNext(n))})),BX.bindDelegate(document,"click",{class:"mobilemenu__menu-item-back"},(function(){const e=$("#mobilemenu"),n=this.closest(".mobilemenu__menu-item--expanded");appAspro.headerMenu.moveMobileMenuWrapPrev(e),n&&setTimeout((function(){n.classList.remove("mobilemenu__menu-item--expanded")}),400)})),$(document).on("click",".mobilemenu__menu a",(function(e){const n=$("#mobilemenu"),i=$(this),o=i.closest(".mobilemenu__menu-item"),t=i.attr("href");if(void 0!==t)if(t.length)window.location.href=t;else{if(o.hasClass("mobilemenu__menu-item--parent"))return e.preventDefault(),o.addClass("mobilemenu__menu-item--expanded"),void appAspro.headerMenu.moveMobileMenuWrapNext(n);if(o.hasClass("mobilemenu__menu-item--title"))return void e.preventDefault()}appAspro.headerMenu.close()})),$(document).on("click",".mobilemenu__menu--regions .menu_autocomplete .clean_icon",(function(e){$(this).closest(".wrapper").find("input[type=text]").val("").trigger("change"),$(this).hide()})),$(document).on("keyup change paste",".mobilemenu__menu--regions .menu_autocomplete input[type=text]",(function(e){let n=$(this).closest(".wrapper").find(".clean_icon");$(this).val().length?n.show():(n.hide(),$(this).closest(".dropdown").find(".mobile-cities").show().siblings().hide().empty())})),$(document).on("click",".mobilemenu__menu-item--city a",(function(e){e.preventDefault();var n=$(this);let i=n.data("id");if(i){setCookieOnDomains("current_region",i);let e=n.data("locid");e?setCookieOnDomains("current_location",e):setCookieOnDomains("current_location","",{expires:-1})}location.href=n.attr("href")}));
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.