1$(document).on("click",".mobilemenu__menu-item--city a",(function(e){e.preventDefault();const i=$(this);if($.removeCookie("current_region"),-1!==arAsproOptions.SITE_ADDRESS.indexOf(",")){const e=arAsproOptions.SITE_ADDRESS.split(","),o=i.data("id");e.forEach((e=>{const i=e.trim().replace(/'/g,"");$.cookie("current_region",o,{path:"/",domain:i})}))}else $.cookie("current_region",i.data("id"),{path:"/",domain:arAsproOptions.SITE_ADDRESS})})),BX.addCustomEvent("onBefore.moveMobileMenuWrapNext.updateScrollerHeight",(e=>{const{bMobileRegions:i,$fixedCities:o}=getMobileRegionParams(e.dropdownNext);if(i){const i=e.menu.height()-o.position().top-parseInt(e.dropdownNext.css("padding-bottom"));o.css("height",i+"px")}})),BX.addCustomEvent("onAfter.moveMobileMenuWrapNext.updateScrollerHeight",(e=>init(e)));const init=(()=>{let e=!1;return function(i){const{bMobileRegions:o,$fixedCities:n}=getMobileRegionParams(i.dropdownNext);o&&!e&&(setTimeout((()=>n.css("overflow","")),200),e=!0,BX.loadExt(["aspro_ui"]).then((()=>{const e=$("#mobile-region-search");e.data("ui-autocomplete")||(e.autocomplete({minLength:2,source(e,i){const o=location.pathname+location.search;$.getJSON(`${arAsproOptions.SITE_DIR}ajax/city_select.php`,{term:e.term,url:o}).done((e=>{Array.isArray(e)&&e.length?i(e):$(".mobilemenu__menu--regions .dropdown .mobile-cities").hide().siblings().empty().show()}))},appendTo:$(".mobilemenu__menu--regions .dropdown .mobile-cities").closest(".menu-item-fixed"),open(){$(".mobilemenu__menu--regions .dropdown .mobile-cities").hide().siblings().show()},close(){$(".mobilemenu__menu--regions .dropdown .mobile-cities").siblings().show()},classes:{"ui-autocomplete":"dropdown-city-autocomplete"}}).data("ui-autocomplete")._renderItem=(e,i)=>$(renderCityItem(i)).appendTo(e)),$(".mobilemenu__menu--regions .dropdown .loadings").length&&getMainCities()})))}})();function getMainCities(){const e=location.pathname+location.search,i=$(".mobilemenu__menu--regions .dropdown .loadings").closest("li");i.length&&$.getJSON(arAsproOptions.SITE_DIR+"ajax/city_select.php",{term:"",url:e}).done((e=>{if(Array.isArray(e)&&e.length){const o=e.map(renderCityItem).join("");$(o).insertBefore(i),i.remove()}}))}function getMobileRegionParams(e){const i=e.closest(".mobilemenu__menu--regions").length>0;return{bMobileRegions:i,$fixedCities:i?e.find(".menu-item-fixed"):null}}function renderCityItem(e){return`\n <li class="mobilemenu__menu-item mobilemenu__menu-item--city ${e.CURRENT?" mobilemenu__menu-item--city--selected":""}">\n <div class="link-wrapper">\n\n <a href="${e.HREF}" class="dark_link" rel="nofollow" data-id="${e.ID}">\n <div class="flexbox flexbox--row flexbox--justify-beetwen">\n <span class="font_15 ">${e.label}</span>\n ${e.CURRENT?`<i class='svg inline stroke-dark-light' aria-hidden="true"><svg width='12' height='9'><use xlink:href='${arAsproOptions.SITE_TEMPLATE_PATH}/images/svg/check.svg#check'></use></svg></i>`:""}\n </div>\n ${e.REGION?`<div class="color_999 font_13">${e.REGION}</div>`:""}\n </a>\n </div>\n </li>\n `}$(document).on("click",".mobilemenu__menu--regions .menu_autocomplete .clean_icon",(function(){$(this).closest(".wrapper").find("input[type=text]").val("").focus().trigger("change"),$(this).hide()})),$(document).on("keyup change paste",".mobilemenu__menu--regions .menu_autocomplete input[type=text]",(function(){const e=$(this).closest(".wrapper").find(".clean_icon"),i=$(this).closest(".dropdown");$(this).val().length?e.show():(e.hide(),i.find(".mobile-cities").show().siblings().hide().empty())}));
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.