PageSourceSearch

https://sportnutra.ru/bitrix/templates/aspro_max/components/bitrix/catalog/main/script.min.js?160367130011669

js sportnutra.ru collected 2026-10-08 17:34:43 UTC 11,669 bytes, 1 lines download raw bytes

1function setNewHeader(t){var e=priceHtml=imgHtml=skuHtml=buttonHtml="";if("Y"==arMaxOptions.THEME.SHOW_HEADER_GOODS&&$(".main-catalog-wrapper.details").length){if($("#headerfixed").addClass("with-product"),$(".product-info-headnote .rating").length){e='<div class="votes_block nstar'+("EXTENDED"==arAsproOptions.THEME.REVIEWS_VIEW?" pointer":"")+'"><div class="ratings"><div class="inner_rating"';var s=$(".product-info-headnote .rating .inner_rating");s.length&&void 0!==s.attr("title")&&(e+='title="'+s.attr("title")),e+='">',$(".product-info-headnote .rating .inner_rating > div").each(function(t){var i=t+1;e+='<div class="item-rating '+($(this).hasClass("filed")?"filed":""),void 0===s.attr("title")&&(e+='" title="'+i),e+='">'+$(this).html()+"</div>"}),e+="</div></div></div>",$(".product-info-headnote .rating span").length&&(e+=$(".product-info-headnote .rating span")[0].outerHTML)}if($('div *[itemprop="offers"]').length){if(BX.util.object_search_key("ASPRO_ITEM_POPUP_PRICE",BX.message)&&"Y"==BX.message("ASPRO_ITEM_POPUP_PRICE")){t={SHOW_POPUP_PRICE:!1,PRICES_COUNT:BX.message("ASPRO_ITEM_PRICES")};BX.util.object_search_key("ASPRO_ITEM_PRICE_MATRIX",BX.message)?(t.USE_PRICE_COUNT=!0,t.PRICE_MATRIX=BX.message("ASPRO_ITEM_PRICE_MATRIX")):BX.util.object_search_key("ASPRO_ITEM_PRICE",BX.message)&&(t.PRICES_HTML=BX.message("ASPRO_ITEM_PRICE"))}if(void 0!==t)if(!t.SHOW_POPUP_PRICE&&("PRICES_COUNT"in t&&1<t.PRICES_COUNT||"PRICES"in t&&1<Object.keys(t.PRICES).length||"ITEM_PRICES"in t&&1<Object.keys(t.ITEM_PRICES).length)){var i=t.USE_PRICE_COUNT&&t.PRICE_MATRIX,l="";l=i?$(".cost.detail .with_matrix").length?$(".cost.detail .with_matrix").html():'<div class="prices-wrapper">'+$(".cost.detail").html()+"</div>":'<div class="prices-wrapper">'+t.PRICES_HTML+"</div>",priceHtml='<div class="with_matrix pl with_old price_matrix_wrapper">'+l+"</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 srollbar-custom">',i?priceHtml+=t.PRICE_MATRIX:t.PRICES_HTML&&(priceHtml+=t.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=$(".cost.detail").html();else priceHtml=$(".cost.detail").html()}if($("#photo-sku").length?imgSrc=$("#photo-sku .product-detail-gallery__picture.one").attr("src")?$("#photo-sku .product-detail-gallery__picture.one").attr("src"):$("#photo-sku .product-detail-gallery__picture").data("src")?$("#photo-sku .product-detail-gallery__picture").data("src"):$("#photo-sku .product-detail-gallery__picture").attr("src"):$(".product-detail-gallery__slider #photo-0").length&&(imgSrc=$(".product-detail-gallery__slider #photo-0 .product-detail-gallery__picture").data("src")?$(".product-detail-gallery__slider #photo-0 .product-detail-gallery__picture").data("src"):$(".product-detail-gallery__slider #photo-0 .product-detail-gallery__picture").attr("src")),$(".slide_offer").length?buttonHtml='<span class="buy_block"><span class="btn btn-default btn-sm slide_offer 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 .sku_props").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")),$(".sku_props .bx_catalog_item_scu > div").length){var a="";$(".product-container .sku_props .bx_catalog_item_scu > div").each(function(){var t=$(this),i=t.find("li.active"),e=t.find("select");i.length?a+='<div class="bx_catalog_item_scu"><div class="bx_scu"><div class="'+t.attr("class")+'"><ul><li class="active" title="'+i.attr("title")+'">'+i.html()+"</li></ul></div></div></div>":e.length&&(void 0!==e.find("option:selected").data("img_src")?a+='<div class="bx_catalog_item_scu"><div class="bx_scu"><div class="bx_item_detail_scu"><ul><li class="active" title="'+e.val()+'"><span class="cnt1"><span class="cnt_item" style="background-image:url('+e.find("option:selected").data("img_src")+')"></span></span></li></ul></div></div></div>':a+='<div class="bx_catalog_item_scu"><div class="bx_scu"><div class="'+t.attr("class")+'"><ul><li class="active"><span class="cnt">'+e.val()+"</span></li></ul></div></div></div>")}),skuHtml=a.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">'+e+"</div>":"")+($(".quantity_block_wrapper .item-stock").length?'<div class="item-stock">'+$(".quantity_block_wrapper .item-stock").html()+"</div>":"")+'</div></div><div class="item-actions flexbox flexbox--row"><div class="item-price"><div class="cost prices">'+priceHtml+'</div></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(),InitScrollBar(),"object"==typeof obMaxPredictions&&obMaxPredictions.showAll()}}BX.addCustomEvent("onWindowResize",function(t){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 t=$(".reviews.EXTENDED");if(t.length){var i=$(".ordered-block.tabs-block"),e=i.length?i:t;scroll_block(e,$('.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",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 t;t=$(".product-container .sku_props .bx_catalog_item_scu").offset().top,$("body, html").animate({scrollTop:t-150},500)}),$(document).on("click",".stores-title .stores-title__list",function(){var t=$(this);t.siblings().removeClass("stores-title--active"),t.addClass("stores-title--active"),$(".stores_block_wrap .stores-amount-list").hide(100).removeClass("stores-amount-list--active"),$(".stores_block_wrap .stores-amount-list:eq("+t.index()+")").show(100,function(){t.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}))}).addClass("stores-amount-list--active")}),$(document).on("click",".info_ext_block .title",function(){var t=$(this);t.toggleClass("opened"),t.next().slideToggle()}),$(document).on("click",".stores-icons .btn",function(){var t=$(this),i=t.closest(".table-view__item-wrapper").next(),e=i.is(":visible")?"slideUp":"slideDown";t.hasClass("clicked")||(t.addClass("clicked"),i.velocity("stop").velocity(e,{duration:400,begin:function(){t.toggleClass("closed")},complete:function(){t.removeClass("clicked")}}
1))});var checkFilterLandgings=function(){if($(".top-content-block .with-filter .with-filter-wrapper").length){var t=!1;$("#mobilefilter .with-filter-wrapper").length?($("#mobilefilter .with-filter-wrapper .bx_filter_parameters_box").hasClass("active")&&(t=!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||t)&&$("#mobilefilter .with-filter-wrapper .bx_filter_parameters_box").addClass("active"),$("#mobilefilter .scrollbar").scrollTop(0),$("#mobilefilter .bx_filter_parameters.scroll-init").length&&$("#mobilefilter .bx_filter_parameters.scroll-init").mCustomScrollbar("scrollTo",0)}};$(document).ready(function(){lazyLoadPagenBlock(),BX.addCustomEvent("onWindowResize",function(){try{if("Y"==arAsproOptions.THEME.FIXED_BUY_MOBILE){var t=$(".product-action .buy_block"),i=$(".product-action .counter_wrapp");if(t.length&&i.length&&!$(".list-offers.ajax_load").length)if(window.matchMedia("(max-width: 767px)").matches){if(void 0===t.data("hasCatalog")){var e=t.hasClass("catalog_block");t.data("hasCatalog",e)}if(t.addClass("catalog_block"),void 0===i.data("hasList")){var s=i.hasClass("list");i.data("hasList",s)}i.removeClass("list").addClass("fixed")}else void 0===t.data("hasCatalog")||t.data("hasCatalog")||t.removeClass("catalog_block"),void 0!==i.data("hasList")&&i.data("hasList")&&i.addClass("list"),i.removeClass("fixed")}}catch(t){}}),$(document).find(".catalog_detail [class^=bx_item_detail] [class*=_scroller_container]").mCustomScrollbar({mouseWheel:{scrollAmount:150,preventDefault:!0}})});

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.