
; /* Start:"a:4:{s:4:"full";s:88:"/bitrix/templates/aspro_max/components/bitrix/catalog/main/script.min.js?171809337915111";s:6:"source";s:68:"/bitrix/templates/aspro_max/components/bitrix/catalog/main/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
function setNewHeader(obOffer){var ratingHtml=priceHtml=imgHtml=skuHtml=buttonHtml="";if("Y"!=arMaxOptions.THEME.SHOW_HEADER_GOODS||!$(".main-catalog-wrapper.details").length)return;if($("#headerfixed").addClass("with-product"),$(".product-info-headnote .rating").length){ratingHtml='<div class="votes_block nstar'+("EXTENDED"==arAsproOptions.THEME.REVIEWS_VIEW?" pointer":"")+'"><div class="ratings"><div class="inner_rating"';var inner=$(".product-info-headnote .rating .inner_rating");inner.length&&void 0!==inner.attr("title")&&(ratingHtml+='title="'+inner.attr("title")),ratingHtml+='">',$(".product-info-headnote .rating .inner_rating:first > div").each((function(index){var index_title=index+1;ratingHtml+='<div class="item-rating '+($(this).hasClass("filed")?"filed":""),void 0===inner.attr("title")&&(ratingHtml+='" title="'+index_title),ratingHtml+='">'+$(this).html()+"</div>"})),ratingHtml+="</div></div></div>",$(".product-info-headnote .rating span").length&&(ratingHtml+=$(".product-info-headnote .rating span")[0].outerHTML)}if($('div *[itemprop="offers"]').length){if(void 0===obOffer&&BX.util.object_search_key("ASPRO_ITEM_POPUP_PRICE",BX.message)&&"Y"==BX.message("ASPRO_ITEM_POPUP_PRICE")){var obOffer={SHOW_POPUP_PRICE:!1,PRICES_COUNT:BX.message("ASPRO_ITEM_PRICES")};BX.util.object_search_key("ASPRO_ITEM_PRICE_MATRIX",BX.message)?(obOffer.USE_PRICE_COUNT=!0,obOffer.PRICE_MATRIX_HTML=BX.message("ASPRO_ITEM_PRICE_MATRIX")):BX.util.object_search_key("ASPRO_ITEM_PRICE",BX.message)&&(obOffer.PRICES_HTML=BX.message("ASPRO_ITEM_PRICE"))}if(void 0!==obOffer)if(!obOffer.SHOW_POPUP_PRICE&&("PRICES_COUNT"in obOffer&&obOffer.PRICES_COUNT>1||"PRICES"in obOffer&&Object.keys(obOffer.PRICES).length>1||"ITEM_PRICES"in obOffer&&Object.keys(obOffer.ITEM_PRICES).length>1)){var bPriceCount=obOffer.USE_PRICE_COUNT&&obOffer.PRICE_MATRIX_HTML,topPrice="";topPrice=bPriceCount?$("div:not(.adaptive-block)>.cost.detail .with_matrix:visible").length?$("div:not(.adaptive-block)>.cost.detail .with_matrix:visible").html():'<div class="prices-wrapper">'+$("div:not(.adaptive-block)>.cost.detail").html()+"</div>":'<div class="prices-wrapper">'+obOffer.PRICES_HTML+"</div>",priceHtml='<div class="with_matrix pl with_old price_matrix_wrapper">'+topPrice+"</div>",priceHtml+='<div class="js_price_wrapper">',priceHtml+='<div class="js-info-block rounded3"><div class="block_title text-upper font_xs font-bold">'+BX.message("PRICES_TYPE")+'<i class="svg inline  svg-inline-close" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path data-name="Rounded Rectangle 114 copy 3" class="cccls-1" d="M334.411,138l6.3,6.3a1,1,0,0,1,0,1.414,0.992,0.992,0,0,1-1.408,0l-6.3-6.306-6.3,6.306a1,1,0,0,1-1.409-1.414l6.3-6.3-6.293-6.3a1,1,0,0,1,1.409-1.414l6.3,6.3,6.3-6.3A1,1,0,0,1,340.7,131.7Z" transform="translate(-325 -130)"></path></svg></i></div><div class="block_wrap"><div class="block_wrap_inner prices scrollblock">',bPriceCount?priceHtml+=obOffer.PRICE_MATRIX_HTML:obOffer.PRICES_HTML&&(priceHtml+=obOffer.PRICES_HTML),priceHtml+='<div class="more-btn text-center"></div>',priceHtml+="</div></div></div>",priceHtml+='<div class="js-show-info-block more-item-info rounded3 bordered-block text-center"><i class="svg inline  svg-inline-fw" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="8" height="2" viewBox="0 0 8 2"><path id="Ellipse_292_copy_3" data-name="Ellipse 292 copy 3" class="cls-1" d="M320,4558a1,1,0,1,1-1,1A1,1,0,0,1,320,4558Zm-3,0a1,1,0,1,1-1,1A1,1,0,0,1,317,4558Zm6,0a1,1,0,1,1-1,1A1,1,0,0,1,323,4558Z" transform="translate(-316 -4558)"></path></svg></i></div>',priceHtml+="</div>"}else priceHtml=$("div:not(.adaptive-block)>.cost.detail").html();else priceHtml=$("div:not(.adaptive-block)>.cost.detail").html()}$(".product-info .complect_prices_block").length&&(priceHtml=$(".cost.detail").html());let bonusHtml="",bonusBlockDetail=$("div:not(.adaptive-block)>.cost.detail ~ .bonus-system-block");if(bonusBlockDetail.length&&(bonusHtml=bonusBlockDetail[0].outerHTML),$("#photo-sku").length?imgSrc=$("#photo-sku .detail-gallery-big__picture.one").attr("src")?$("#photo-sku .detail-gallery-big__picture.one").attr("src"):$("#photo-sku .detail-gallery-big__picture").data("src")?$("#photo-sku .detail-gallery-big__picture").data("src"):$("#photo-sku .detail-gallery-big__picture").attr("src"):$(".detail-gallery-big #photo-0").length&&(imgSrc=$(".detail-gallery-big #photo-0 .detail-gallery-big__picture").data("src")?$(".detail-gallery-big #photo-0 .detail-gallery-big__picture").data("src"):$(".detail-gallery-big #photo-0 .detail-gallery-big__picture").attr("src")),$(".slide_offer").length?$(".product-container .buy_block .to-order").length?buttonHtml='<span class="buy_block">'+$(".product-container .buy_block .to-order").clone().wrap("<div/>").parent().html().replace("btn-lg","btn-sm")+"</span>":$(".product-container .buy_block .to-subscribe").length?buttonHtml='<span class="buy_block">'+$(".product-container .buy_block .to-subscribe").clone().wrap("<div/>").parent().html().replace("btn-lg","btn-sm")+$(".product-container .buy_block .in-subscribe").clone().wrap("<div/>").parent().html().replace("btn-lg","btn-sm")+"</span>":$(".product-container .buy_block .btn").length&&(buttonHtml='<span class="buy_block"><span class="btn btn-default btn-sm slide_offer more stay_on_page type_block'+($(".product-container .buy_block .offer_buy_block .btn").hasClass("has_prediction")?" has_prediction":"")+'">'+($(".product-container .buy_block .offer_buy_block .in-cart").is(":visible")?$(".product-container .buy_block .offer_buy_block .in-cart").html():BX.message("MORE_INFO_SKU"))+"</span></span>"):$(".buy_block .sku_props").length?$(".product-container .buy_block .btn--out-of-production").length?buttonHtml='<span class="buy_block">'+$(".product-container .buy_block .btn--out-of-production").clone().wrap("<div/>").parent().html().replace("btn-lg","btn-sm")+"</span>":$(".product-container .buy_block .to-order").length?buttonHtml='<span class="buy_block">'+$(".product-container .buy_block .to-order").clone().wrap("<div/>").parent().html().replace("btn-lg","btn-sm")+"</span>":$(".product-container .buy_block .to-subscribe").length?buttonHtml='<span class="buy_block">'+$(".product-container .buy_block .to-subscribe").clone().wrap("<div/>").parent().html().replace("btn-lg","btn-sm")+$(".product-container .buy_block .in-subscribe").clone().wrap("<div/>").parent().html().replace("btn-lg","btn-sm")+"</span>":$(".product-container .buy_block .btn").length&&(buttonHtml='<span class="buy_block"><span class="btn btn-default btn-sm more type_block'+($(".product-container .buy_block .offer_buy_block .btn").hasClass("has_prediction")?" has_prediction":"")+'">'+($(".product-container .buy_block .offer_buy_block .in-cart").is(":visible")?$(".product-container .buy_block .offer_buy_block .in-cart").html():BX.message("MORE_INFO_SKU"))+"</span></span>"):$(".buy_block .button_block").length&&(buttonHtml=$(".buy_block .button_block").html().replace(/btn-lg/g,"btn-sm")),$(".product-info .complect_prices_block").length&&(buttonHtml=$(".buy_complect_wrap").html()),$(".sku_props .bx_catalog_item_scu > div").length){var skuHtmlTmp="";$(".product-container .sku_props .bx_catalog_item_scu > .item_wrapper > div").each((function(){var _this=$(this),li_block=_this.find("li.active"),select_block=_this.find("select");li_block.length?skuHtmlTmp+='<div class="bx_catalog_item_scu"><div class="bx_scu"><div class="'+_this.attr("class")+'"><ul><li class="active" title="'+li_block.attr("title")+'">'+li_block.html()+"</li></ul></div></div></div>":select_block.length&&(void 0!==select_block.find("option:selected").data("img_src")?skuHtmlTmp+='<div class="bx_catalog_item_scu"><div class="bx_scu"><div class="bx_item_detail_scu"><ul><li class="active" title="'+select_block.val()+'"><span class="cnt1"><span class="cnt_item" style="background-image:url('+select_block.find("option:selected").data("img_src")+')"></span></span></li></ul></div></div></div>':skuHtmlTmp+='<div class="bx_catalog_item_scu"><div class="bx_scu"><div class="'+_this.attr("class")+'"><ul><li class="active"><span class="cnt">'+select_block.val()+"</span></li></ul></div></div></div>")})),skuHtml=skuHtmlTmp.replace(/mCustomScrollbar/g,"")}$("#headerfixed .logo-row").html('<div class="ajax_load"><div class="table-view flexbox flexbox--row"><div class="table-view__item item main_item_wrapper"><div class="table-view__item-wrapper item_info catalog-adaptive flexbox flexbox--row"><div class="item-foto"><div class="item-foto__picture"><img src="'+imgSrc+'" /></div></div><div class="item-info"><div class="item-title"><span>'+$("#pagetitle").text()+'</span></div><div class="wrapp_stockers sa_block">'+($(".product-info-headnote .rating").length?'<div class="rating sm-stars">'+ratingHtml+"</div>":"")+($(".product-main .quantity_block_wrapper .item-stock:visible").length?'<div class="item-stock">'+$(".product-main .quantity_block_wrapper .item-stock:visible").html()+"</div>":"")+'</div></div><div class="item-actions flexbox flexbox--row"><div class="item-price"><div class="cost prices '+($(".cost.detail.sku_matrix").length?"sku_matrix":"")+'">'+priceHtml+"</div>"+bonusHtml+'</div><div class="item-sku"><div class="but-cell flexbox flexbox--row sku_props">'+skuHtml+'</div></div><div class="item-buttons"><div class="but-cell">'+buttonHtml+"</div></div>"+($(".product-info .like_icons").length?'<div class="item-icons s_'+$(".product-info .like_icons").data("size")+'"><div class="like_icons list static icons long">'+$(".product-info .like_icons").html()+"</div></div>":"")+"</div></div></div></div></div>"),InitLazyLoad(),"object"==typeof obMaxPredictions&&obMaxPredictions.showAll()}BX.addCustomEvent("onWindowResize",(function(eventdata){window.predictionWindow&&"function"==typeof window.predictionWindow.close&&window.predictionWindow.close()})),$(document).on("click",".ordered-block.goods .tabs li",(function(){setTimeout(sliceItemBlockSlide,5)})),$(document).on("click",".item-stock .store_view",(function(){scroll_block($(".js-store-scroll"),$("a[href='#stores']"))})),$(document).on("click",".blog-info__rating--top-info, #headerfixed .wproducts .wrapp_stockers .rating .votes_block",(function(){var reviews=$(".reviews.EXTENDED");if(reviews.length){var tabsBlock=$(".ordered-block.tabs-block"),blockToScroll=tabsBlock.length?tabsBlock:reviews;scroll_block(blockToScroll,$('.ordered-block .nav-tabs a[href="#reviews"]'))}})),$(document).on("click",".table-view__item--has-stores .item-stock .value",(function(){$(this).closest(".table-view__item-wrapper").find(".stores-icons .btn").trigger("click")})),$(document).on("click","#headerfixed .item-buttons .more:not(.stay_on_page)",(function(){$(".product-container .buy_block .offer_buy_block .to-cart").is(":visible")?$(".product-container .buy_block .offer_buy_block .to-cart").trigger("click"):$(".middle-info-wrapper .to-cart").is(":visible")?$(".middle-info-wrapper .to-cart").trigger("click"):$(".product-side .to-cart").is(":visible")?$(".product-side .to-cart").trigger("click"):location.href=arAsproOptions.PAGES.BASKET_PAGE_URL})),$(document).on("click","#headerfixed .item-actions .bx_catalog_item_scu",(function(){var offset=0;offset=$(".product-container .sku_props .bx_catalog_item_scu").offset().top,$("body, html").animate({scrollTop:offset-150},500)})),$(document).on("click",".stores-title .stores-title__list",(function(){var _this=$(this);_this.siblings().removeClass("stores-title--active"),_this.addClass("stores-title--active"),$(".stores_block_wrap .stores-amount-list").removeClass("stores-amount-list--active"),$(".stores_block_wrap .stores-amount-list:eq("+_this.index()+")").addClass("stores-amount-list--active").queue((function(){_this.hasClass("stores-title--map")&&"undefined"!=typeof map&&(map.container.fitToViewport(),"undefined"==typeof clusterer||$(this).find(".detail_items").is(":visible")||map.setBounds(clusterer.getBounds(),{zoomMargin:40}))}))})),$(document).on("click",".info_ext_block .title",(function(){var _this=$(this);_this.toggleClass("opened"),_this.next().slideToggle()})),$(document).on("click",".stores-icons .btn",(function(){var _this=$(this),block=_this.closest(".table-view__item-wrapper").next(),bVisibleblock,animate=block.is(":visible")?"slideUp":"slideDown";_this.hasClass("clicked")||(_this.addClass("clicked"),block.stop().slideToggle({start:()=>{_this.toggleClass("closed")},duration:400,done:()=>{_this.removeClass("clicked")}}))}));var checkFilterLandgings=function(){if($(".top-content-block .with-filter .with-filter-wrapper").length){var bActiveClass=!1;$("#mobilefilter .with-filter-wrapper").length?($("#mobilefilter .with-filter-wrapper .bx_filter_parameters_box").hasClass("active")&&(bActiveClass=!0),$("#mobilefilter .with-filter-wrapper").empty(),$(".top-content-block .with-filter .with-filter-wrapper").prependTo($("#mobilefilter .with-filter-wrapper"))):$(".top-content-block .with-filter .with-filter-wrapper").prependTo($("#mobilefilter .bx_filter_parameters")),($("#mobilefilter .bx_filter_parameters .landings-list__item--active").length||bActiveClass)&&$("#mobilefilter .with-filter-wrapper .bx_filter_parameters_box").addClass("active"),$("#mobilefilter .scrollbar").scrollTop(0)}};function setFixedBuyBlock(){try{var fixedMobile;if("Y"==arAsproOptions.THEME.FIXED_BUY_MOBILE){var buyBlock=$(".product-action .buy_block"),counterWrapp=$(".product-action .counter_wrapp:not(.services_counter)");if(buyBlock.length&&counterWrapp.length&&!$(".list-offers.ajax_load").length)if(window.matchMedia("(max-width: 767px)").matches){if(void 0===buyBlock.data("hasCatalog")){var hasCatalog=buyBlock.hasClass("catalog_block");buyBlock.data("hasCatalog",hasCatalog)}if(buyBlock.addClass("catalog_block"),void 0===counterWrapp.data("hasList")){var hasList=counterWrapp.hasClass("list");counterWrapp.data("hasList",hasList)}counterWrapp.removeClass("list").addClass("fixed")}else void 0===buyBlock.data("hasCatalog")||buyBlock.data("hasCatalog")||buyBlock.removeClass("catalog_block"),void 0!==counterWrapp.data("hasList")&&counterWrapp.data("hasList")&&counterWrapp.addClass("list"),counterWrapp.removeClass("fixed")}}catch(e){}}function setNewPriceComplect(){var allCheckbox=$(".complect_main_wrap .complect_checkbox_item:checked"),newPrice=0;allCheckbox.each((function(){var th=$(this).closest(".catalog-block-view__item").find(".button_block .to-cart"),thPrice=th.attr("data-value"),thQuantity=th.attr("data-quantity");thPrice>0&&thQuantity>0&&(newPrice+=thPrice*thQuantity)})),$(".complect_price_value").html(newPrice.toLocaleString("ru"))}$(document).ready((function(){lazyLoadPagenBlock(),BX.addCustomEvent("onWindowResize",(function(){setFixedBuyBlock()})),setFixedBuyBlock()})),$(document).on("change","input.complect_checkbox_item",(function(){setNewPriceComplect()})),BX.addCustomEvent("onCompleteAction",(function(eventdata){"ajaxContentLoaded"!==eventdata.action&&"jsLoadBlock"!==eventdata.action||"object"==typeof window.tableScrollerOb&&window.tableScrollerOb&&window.tableScrollerOb.toggle()}));
/* End */
;
; /* Start:"a:4:{s:4:"full";s:108:"/bitrix/templates/aspro_max/components/bitrix/catalog.section.list/sections_list/script.min.js?1718093360513";s:6:"source";s:90:"/bitrix/templates/aspro_max/components/bitrix/catalog.section.list/sections_list/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
$(document).ready((function(){$(".item_block.slide .arrow-block").on("click",(function(e){$(this).closest(".toggle").find(".name").trigger("click")})),$(".item_block.slide .name").on("click",(function(e){var _this,slideBlock=$(this).closest(".toggle").find(".slide-wrapper"),bOpen=slideBlock.is(":visible"),dur=bOpen?200:400,func=bOpen?"slideUp":"slideDown";slideBlock.length&&($(e.target).closest("a").length||$(e.target).hasClass("dark_link")||(slideBlock.slideToggle(),slideBlock.toggleClass("opened")))}))}));
/* End */
;; /* /bitrix/templates/aspro_max/components/bitrix/catalog/main/script.min.js?171809337915111*/
; /* /bitrix/templates/aspro_max/components/bitrix/catalog.section.list/sections_list/script.min.js?1718093360513*/
