
; /* Start:"a:4:{s:4:"full";s:97:"/bitrix/templates/aspro-allcorp3medc/components/bitrix/news/contacts/script.min.js?16667685823461";s:6:"source";s:78:"/bitrix/templates/aspro-allcorp3medc/components/bitrix/news/contacts/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
$(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"),id,last_id;if($title.find("span").text($(this).text()),$title.trigger("click"),$select.hasClass("city")){var id=$(this).data("id"),$region=$(this).closest(".contacts__panel-wrapper").find(".dropdown-select.region"),href=$(this).attr("href"),last_id;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")}if(id!=(last_id=(last_id=$select.data("id"))>0?last_id:0)){$select.data("id",id);var data={SECTION_ID:id},$specialiation=$(this).closest(".contacts__panel-wrapper").find(".dropdown-select.specialization");$specialiation.length&&(data.SPECIALIZATION=$specialiation.data("id")),$.ajax({url:href,type:"GET",data:data}).done((function(html){var ob=BX.processHTML(html);$(".contacts__ajax_items")[0].innerHTML=ob.HTML,BX.ajax.processScripts(ob.SCRIPT)}))}}if($select.hasClass("specialization")&&(id=$(this).data("id"))!=(last_id=(last_id=$select.data("id"))>0?last_id:0)){$select.data("id",id);var sectionId=!1,href=location.href,$city=$(this).closest(".contacts__panel-wrapper").find(".dropdown-select.city");$city.length&&(sectionId=$city.data("id"),href=$city.attr("href"));var $region=$(this).closest(".contacts__panel-wrapper").find(".dropdown-select.region");!sectionId&&$region.length&&($currentRegion=$region.find(".dropdown-select__list-link--current"),$currentRegion.length&&(sectionId=$region.find(".dropdown-select__list-link--current").data("id"),href=$region.find(".dropdown-select__list-link--current").attr("href"))),$.ajax({url:href,type:"POST",data:{SECTION_ID:sectionId,SPECIALIZATION: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")}))}));
/* End */
;
; /* Start:"a:4:{s:4:"full";s:103:"/bitrix/templates/aspro-allcorp3medc/components/bitrix/map.yandex.view/map/script.min.js?16982279352339";s:6:"source";s:84:"/bitrix/templates/aspro-allcorp3medc/components/bitrix/map.yandex.view/map/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
window.BX_YMapAddPlacemark=function(map,arPlacemark,isClustered){if(null==map)return!1;if(!arPlacemark.LAT||!arPlacemark.LON)return!1;var props={};if(null!=arPlacemark.TEXT&&arPlacemark.TEXT.length>0){var value_view="";if(arPlacemark.TEXT.length>0){var rnpos=arPlacemark.TEXT.indexOf("\n");value_view=rnpos<=0?arPlacemark.TEXT:arPlacemark.TEXT.substring(0,rnpos)}props.balloonContent=arPlacemark.TEXT.replace(/\n/g,"<br />"),props.hintContent=value_view}null!=arPlacemark.HTML&&arPlacemark.HTML.length>0&&(props.balloonContent=arPlacemark.HTML);var option={item:arPlacemark.ITEM_ID,hasHint:!1};if("Y"!=arAllcorp3Options.THEME.DEFAULT_MAP_MARKET){var markerSVG=ymaps.templateLayoutFactory.createClass(['<svg width="38" height="48" class="marker dynamic" viewBox="0 0 38 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="fill-theme-svg" d="M31.7547 28.6615C33.7914 25.977 35 22.6296 35 19C35 10.1634 27.8366 3 19 3C10.1634 3 3 10.1634 3 19C3 27.8366 10.1634 35 19 35V43.061C19 44.0285 20.2369 44.4321 20.8075 43.6509L31.7555 28.6627L31.7547 28.6615Z" fill="#3761E9"/><path d="M1.5 19C1.5 28.1597 8.5372 35.6758 17.5 36.4366V43.061C17.5 45.4796 20.5922 46.4887 22.0188 44.5357L32.9668 29.5474L33.0099 29.4884C33.0974 29.3717 33.1834 29.2539 33.2681 29.1349L33.5968 28.6849L33.5871 28.6709C35.4274 25.9001 36.5 22.5736 36.5 19C36.5 9.33502 28.665 1.5 19 1.5C9.33502 1.5 1.5 9.33502 1.5 19Z" stroke="white" stroke-opacity="0.5" stroke-width="3"/><circle cx="19" cy="19" r="10" fill="white"/></svg>'].join(""));option.iconImageSize=[38,48],option.iconLayout=markerSVG}var obPlacemark=new ymaps.Placemark([arPlacemark.LAT,arPlacemark.LON],props,option,{balloonCloseButton:!0});return isClustered||map.geoObjects.add(obPlacemark),obPlacemark},window.BX_YMapAddPolyline||(window.BX_YMapAddPolyline=function(map,arPolyline){if(null==map)return!1;if(!(null!=arPolyline.POINTS&&arPolyline.POINTS.length>1))return!1;for(var arPoints=[],i=0,len=arPolyline.POINTS.length;i<len;i++)arPoints.push([arPolyline.POINTS[i].LAT,arPolyline.POINTS[i].LON]);var obParams={clickable:!0};null!=arPolyline.STYLE&&(obParams.strokeColor=arPolyline.STYLE.strokeColor,obParams.strokeWidth=arPolyline.STYLE.strokeWidth);var obPolyline=new ymaps.Polyline(arPoints,{balloonContent:arPolyline.TITLE},obParams);return map.geoObjects.add(obPolyline),obPolyline});
/* End */
;; /* /bitrix/templates/aspro-allcorp3medc/components/bitrix/news/contacts/script.min.js?16667685823461*/
; /* /bitrix/templates/aspro-allcorp3medc/components/bitrix/map.yandex.view/map/script.min.js?16982279352339*/
