1 2; /* Start:"a:4:{s:4:"full";s:94:"/bitrix/templates/.default/components/bitrix/news/contacts_custom/script.min.js?17853022352422";s:6:"source";s:75:"/bitrix/templates/.default/components/bitrix/news/contacts_custom/script.js";s:3:"min";s:79:"/bitrix/templates/.default/components/bitrix/news/contacts_custom/script.min.js";s:3:"map";s:83:"/bitrix/templates/.default/components/bitrix/news/contacts_custom/script.min.js.map";}"*/ 3$(document).ready((function(){$(".contacts__filter-select .dropdown-select .dropdown-select__list-item a").on("click",(function(e){e.preventDefault();var $select=$(this).closest(".dropdown-select");$select.find(".dropdown-select__list-link--current").removeClass("dropdown-select__list-link--current"),$(this).addClass("dropdown-select__list-link--current");var $title=$select.find(".dropdown-select__title");$title.find("span").text($(this).text()),$title.trigger("click");var id=$(this).data("id");if($select.hasClass("city")){var $region=$(this).closest(".contacts__panel-wrapper").find(".dropdown-select.region"),href=$(this).attr("href");if(!id&&$region.length&&($currentRegion=$region.find(".dropdown-select__list-link--current"),$currentRegion.length)){id=$region.find(".dropdown-select__list-link--current").data("id");var href=$region.find(".dropdown-select__list-link--current").attr("href")}var last_id=$select.data("id");id!=(last_id=last_id>0?last_id:0)&&($select.data("id",id),$.ajax({url:href,type:"POST",data:{SECTION_ID:id}}).done((function(html){var ob=BX.processHTML(html);$(".contacts__ajax_items")[0].innerHTML=ob.HTML,BX.ajax.processScripts(ob.SCRIPT)})))}})),$(".contacts__filter-select .dropdown-select.region .dropdown-select__list-item a").on("click",(function(e){e.preventDefault();var id=$(this).data("id"),$city=$(this).closest(".contacts__panel-wrapper").find(".dropdown-select.city");if($city.length){var $emptyCity=$city.find(".dropdown-select__list-item a.empty"),$currentCity=$city.find(".dropdown-select__list-link--current"),$visibleCities=$city.find(".dropdown-select__list-item a[data-parent_id="+id+"]");$city.find(".dropdown-select__list-item a").hide(),$emptyCity.show(),id&&$visibleCities.show();var bOpenCitySelect=id&&$visibleCities.length>1,last_id;bOpenCitySelect||$city.find(".dropdown-select__title").addClass("clicked"),$currentCity.data("parent_id")!=id?1==$visibleCities.length?$visibleCities.first().trigger("click"):$emptyCity.trigger("click"):$currentCity.trigger("click"),bOpenCitySelect||$city.find(".dropdown-select__title").removeClass("clicked")}})),$(".contacts__tabs .tabs .nav-tabs li a").on("click",(function(){$content=$(this).closest(".contacts__row").find(".contacts__tab-content"),"#map"===$(this).attr("href")?$content.addClass("contacts__tab-content--map"):$content.removeClass("contacts__tab-content--map")}))})); 4/* End */ 5; 6; /* Start:"a:4:{s:4:"full";s:85:"/bitrix/components/bitrix/map.yandex.view/templates/.default/script.js?16895954551540";s:6:"source";s:70:"/bitrix/components/bitrix/map.yandex.view/templates/.default/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 7if (!window.BX_YMapAddPlacemark) 8{ 9 window.BX_YMapAddPlacemark = function(map, arPlacemark) 10 { 11 if (null == map) 12 return false; 13 14 if(!arPlacemark.LAT || !arPlacemark.LON) 15 return false; 16 17 var props = {}; 18 if (null != arPlacemark.TEXT && arPlacemark.TEXT.length > 0) 19 { 20 var value_view = ''; 21 22 if (arPlacemark.TEXT.length > 0) 23 { 24 var rnpos = arPlacemark.TEXT.indexOf("\n"); 25 value_view = rnpos <= 0 ? arPlacemark.TEXT : arPlacemark.TEXT.substring(0, rnpos); 26 } 27 28 props.balloonContent = arPlacemark.TEXT.replace(/\n/g, '<br />'); 29 props.hintContent = value_view; 30 } 31 32 var obPlacemark = new ymaps.Placemark( 33 [arPlacemark.LAT, arPlacemark.LON], 34 props, 35 {balloonCloseButton: true} 36 ); 37 38 map.geoObjects.add(obPlacemark); 39 40 return obPlacemark; 41 } 42} 43 44if (!window.BX_YMapAddPolyline) 45{ 46 window.BX_YMapAddPolyline = function(map, arPolyline) 47 { 48 if (null == map) 49 return false; 50 51 if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1) 52 { 53 var arPoints = []; 54 for (var i = 0, len = arPolyline.POINTS.length; i < len; i++) 55 { 56 arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]); 57 } 58 } 59 else 60 { 61 return false;
62 } 63 64 var obParams = {clickable: true}; 65 if (null != arPolyline.STYLE) 66 { 67 obParams.strokeColor = arPolyline.STYLE.strokeColor; 68 obParams.strokeWidth = arPolyline.STYLE.strokeWidth; 69 } 70 var obPolyline = new ymaps.Polyline( 71 arPoints, {balloonContent: arPolyline.TITLE}, obParams 72 ); 73 74 map.geoObjects.add(obPolyline); 75 76 return obPolyline; 77 } 78} 79/* End */ 80;; /* /bitrix/templates/.default/components/bitrix/news/contacts_custom/script.min.js?17853022352422*/ 81; /* /bitrix/components/bitrix/map.yandex.view/templates/.default/script.js?16895954551540*/ 82 83//# sourceMappingURL=page_65c2fe50830d1a733a98c0337b24b6bb.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.