1 2; /* Start:"a:4:{s:4:"full";s:83:"/local/templates/aspro_max/components/bitrix/catalog/main/script.js?163894698515061";s:6:"source";s:67:"/local/templates/aspro_max/components/bitrix/catalog/main/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3function setNewHeader(obOffer){ 4 var ratingHtml = priceHtml = imgHtml = skuHtml = buttonHtml = ''; 5 6 if(arMaxOptions['THEME']['SHOW_HEADER_GOODS'] != 'Y' || !$('.main-catalog-wrapper.details').length) 7 return; 8 9 $('#headerfixed').addClass('with-product'); 10 11 if($('.product-info-headnote .rating').length) //show rating 12 { 13 ratingHtml = '<div class="votes_block nstar'+(arAsproOptions['THEME']['REVIEWS_VIEW'] == 'EXTENDED' ? ' pointer' : '')+'"><div class="ratings"><div class="inner_rating"'; 14 var inner = $('.product-info-headnote .rating .inner_rating'); 15 if(inner.length && inner.attr('title') !== undefined) { 16 ratingHtml += 'title="'+inner.attr('title'); 17 } 18 ratingHtml += '">'; 19 20 $('.product-info-headnote .rating .inner_rating > div').each(function(index){ 21 var index_title = index+1; 22 ratingHtml += '<div class="item-rating '+($(this).hasClass('filed') ? 'filed' : ''); 23 if(inner.attr('title') === undefined) { 24 ratingHtml += '" title="'+index_title; 25 } 26 ratingHtml += '">'+$(this).html()+'</div>'; 27 }); 28 29 ratingHtml += '</div></div></div>'; 30 31 if($('.product-info-headnote .rating span').length) { 32 ratingHtml += $('.product-info-headnote .rating span')[0].outerHTML; 33 } 34 } 35 if($('div *[itemprop="offers"]').length) //show price 36 {
37 /*if($('.cost.detail .js_price_wrapper').length) 38 { 39 priceHtml = $('.cost.detail .js_price_wrapper .price_matrix_wrapper').html(); 40 } 41 else 42 { 43 if($('.cost.detail .price_group.min').length) 44 priceHtml = $('.cost.detail .price_group.min').html(); 45 else if($('.cost.detail .price_matrix_wrapper').length) 46 priceHtml = $('.cost.detail .price_matrix_wrapper').html(); 47 }*/ 48 49 if(BX.util.object_search_key('ASPRO_ITEM_POPUP_PRICE',BX.message) && BX.message('ASPRO_ITEM_POPUP_PRICE') == 'Y'){ 50 var obOffer = { 51 SHOW_POPUP_PRICE: false, 52 PRICES_COUNT: BX.message('ASPRO_ITEM_PRICES') 53 } 54 if(BX.util.object_search_key('ASPRO_ITEM_PRICE_MATRIX',BX.message)){ 55 obOffer.USE_PRICE_COUNT = true; 56 obOffer.PRICE_MATRIX = BX.message('ASPRO_ITEM_PRICE_MATRIX'); 57 }else if(BX.util.object_search_key('ASPRO_ITEM_PRICE',BX.message)){ 58 obOffer.PRICES_HTML = BX.message('ASPRO_ITEM_PRICE'); 59 } 60 } 61 62 if(typeof obOffer !== 'undefined'){ 63 if(!obOffer.SHOW_POPUP_PRICE && 64 (('PRICES_COUNT' in obOffer && obOffer.PRICES_COUNT > 1) || 65 (('PRICES' in obOffer && Object.keys(obOffer.PRICES).length > 1) || ('ITEM_PRICES' in obOffer && Object.keys(obOffer.ITEM_PRICES).length > 1)))){ 66 67 var bPriceCount = (obOffer.USE_PRICE_COUNT && obOffer.PRICE_MATRIX), 68 topPrice = ''; 69 70 if(bPriceCount){ 71 if($('.cost.detail .with_matrix').length){ 72 topPrice = $('.cost.detail .with_matrix').html(); 73 }else{ 74 topPrice = '<div class="prices-wrapper">'+$('.cost.detail').html()+'</div>'; 75 } 76 }else{ 77 topPrice = '<div class="prices-wrapper">'+obOffer.PRICES_HTML+'</div>'; 78 } 79 80 priceHtml = '<div class="with_matrix pl with_old price_matrix_wrapper">'+topPrice+'</div>'; 81 priceHtml += '<div class="js_price_wrapper">'; 82 priceHtml += '<div class="js-info-block rounded3">'+ 83 '<div class="block_title text-upper font_xs font-bold">'+ 84 BX.message('PRICES_TYPE')+ 85 '<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>'+ 86 '</div>'+ 87 '<div class="block_wrap">'+ 88 '<div class="block_wrap_inner prices srollbar-custom">'; 89 90 if(bPriceCount) 91 { 92 priceHtml += obOffer.PRICE_MATRIX; 93 } 94 else if(obOffer.PRICES_HTML) 95 { 96 priceHtml += obOffer.PRICES_HTML; 97 } 98 99 priceHtml += '<div class="more-btn text-center"></div>'; 100 priceHtml += '</div></div></div>'; 101 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>'; 102 priceHtml += '</div>'; 103 104 }else{ 105 priceHtml = $('.cost.detail').html(); 106 } 107 }else{ 108 priceHtml = $('.cost.detail').html(); 109 } 110 } 111 112 if($('#photo-sku').length) //show img 113 { 114 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')); 115 } 116 else if($('.product-detail-gallery__slider #photo-0').length) 117 { 118 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')); 119 } 120 //show button 121 if ($('.quantity_block_wrapper > span').text() === 'â РаÑпÑодано') { 122 buttonHtml = ''; 123 } else if ($('.slide_offer').length) { 124 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>'; 125 } else if ($('.buy_block .sku_props').length) { 126 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>'; 127 // buttonHtml = $('.buy_block .button_block').html().replace(/btn-lg/g, 'btn-sm more ww'); 128 } else if ($('.buy_block .button_block').length) { 129 buttonHtml = $('.buy_block .button_block').html().replace(/btn-lg/g, 'btn-sm'); 130 } 131 132 if($('.sku_props .bx_catalog_item_scu > div').length) 133 { 134 var skuHtmlTmp = ''; 135 $('.product-container .sku_props .bx_catalog_item_scu > div').each(function(){ 136 var _this = $(this), 137 li_block = _this.find('li.active'), 138 select_block = _this.find('select'); 139 if(li_block.length) 140 { 141 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>'; 142 } 143 else if(select_block.length) 144 { 145 if(select_block.find('option:selected').data('img_src') !== undefined) 146 { 147 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>'; 148 } 149 else 150 { 151 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>'; 152 } 153 } 154 }) 155 skuHtml = skuHtmlTmp.replace(/mCustomScrollbar/g, ''); 156 } 157 // setTimeout(function(){ 158 $('#headerfixed .logo-row').html( 159 '<div class="ajax_load">'+ 160 '<div class="table-view flexbox flexbox--row">'+ 161 '<div class="table-view__item item main_item_wrapper">'+ 162 '<div class="table-view__item-wrapper item_info catalog-adaptive flexbox flexbox--row">'+ 163 '<div class="item-foto">'+ 164 '<div class="item-foto__picture">'+ 165 '<img src="'+imgSrc+'" />'+ 166 '</div>'+ 167 '</div>'+ 168 '<div class="item-info">'+ 169 '<div class="item-title">'+ 170 '<span>'+$('#pagetitle').text()+'</span>'+ 171 '</div>'+ 172 '<div class="wrapp_stockers sa_block">'+ 173 ($('.product-info-headnote .rating').length ? '<div class="rating sm-stars">'+ratingHtml+'</div>' : '')+ 174 ($('.quantity_block_wrapper .item-stock').length ? '<div class="item-stock">'+$('.quantity_block_wrapper .item-stock').html()+'</div>' : '')+ 175 '</div>'+ 176 '</div>'+ 177 '<div class="item-actions flexbox flexbox--row">'+ 178 '<div class="item-price">'+ 179 '<div class="cost prices">'+priceHtml+'</div>'+ 180 '</div>'+ 181 '<div class="item-sku">
181'+ 182 '<div class="but-cell flexbox flexbox--row sku_props">'+skuHtml+'</div>'+ 183 '</div>'+ 184 '<div class="item-buttons">'+ 185 '<div class="but-cell">'+buttonHtml+'</div>'+ 186 '</div>'+ 187 ($('.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>' : '')+ 188 '</div>'+ 189 '</div>'+ 190 '</div>'+ 191 '</div>'+ 192 '</div>'); 193 // },5000) 194 195 InitLazyLoad(); 196 InitScrollBar(); 197 198 if(typeof obMaxPredictions === 'object'){ 199 obMaxPredictions.showAll(); 200 } 201} 202 203BX.addCustomEvent('onWindowResize', function(eventdata){ 204 if( window.predictionWindow && typeof window.predictionWindow.close === 'function' ) { 205 window.predictionWindow.close(); 206 } 207}); 208 209$(document).on('click', '.ordered-block.goods .tabs li', function(){ 210 setTimeout( 211 sliceItemBlockSlide, 5 212 ); 213}); 214 215$(document).on('click', ".item-stock .store_view", function(){ 216 scroll_block($('.js-store-scroll'), $('a[href=#stores]')); 217}); 218 219$(document).on('click', '.blog-info__rating--top-info, #headerfixed .wproducts .wrapp_stockers .rating .votes_block', function() { 220 var reviews = $('.reviews.EXTENDED'); 221 if(reviews.length) { 222 scroll_block($('.js-store-scroll'), $('.ordered-block .nav-tabs a[href="#reviews"]')); 223 } 224}); 225 226$(document).on('click', ".table-view__item--has-stores .item-stock .value", function(){ 227 $(this).closest('.table-view__item-wrapper').find('.stores-icons .btn').trigger('click'); 228}); 229 230$(document).on('click', '#headerfixed .item-buttons .more', function(){ 231 if($('.product-container .buy_block .offer_buy_block .to-cart').is(':visible')) 232 $('.product-container .buy_block .offer_buy_block .to-cart').trigger('click'); 233 else 234 location.href = arAsproOptions['PAGES']['BASKET_PAGE_URL']; 235}) 236 237$(document).on('click', '#headerfixed .item-actions .bx_catalog_item_scu', function(){ 238 var offset = 0; 239 offset = $('.product-container .sku_props .bx_catalog_item_scu').offset().top; 240 241 $('body, html').animate({scrollTop: offset-150}, 500); 242}) 243 244$(document).on('click', ".stores-title .stores-title__list", function(){ 245 var _this = $(this); 246 _this.siblings().removeClass('stores-title--active'); 247 _this.addClass('stores-title--active'); 248 249 $('.stores_block_wrap .stores-amount-list').hide(100).removeClass('stores-amount-list--active'); 250 $('.stores_block_wrap .stores-amount-list:eq('+_this.index()+')').show(100, function(){ 251 if(_this.hasClass('stores-title--map')) 252 { 253 if(typeof map !== 'undefined') 254 { 255 map.container.fitToViewport(); 256 if(typeof clusterer !== 'undefined' && !$(this).find('.detail_items').is(':visible')) 257 { 258 map.setBounds(clusterer.getBounds(), { 259 zoomMargin: 40, 260 // checkZoomRange: true 261 }); 262 } 263 } 264 } 265 }).addClass('stores-amount-list--active'); 266 267}) 268 269$(document).on('click', ".info_ext_block .title", function(){ 270 var _this = $(this); 271 _this.toggleClass('opened'); 272 _this.next().slideToggle(); 273}) 274 275$(document).on('click', ".stores-icons .btn", function(){ 276 var _this = $(this), 277 block = _this.closest('.table-view__item-wrapper').next(), 278 bVisibleblock = (block.is(':visible')), 279 animate = (bVisibleblock ? 'slideUp' : 'slideDown'); 280 281 if(!_this.hasClass('clicked')) 282 { 283 _this.addClass('clicked'); 284 285 block.velocity('stop').velocity(animate, { 286 duration: 400, 287 // delay: 250, 288 begin: function(){ 289 _this.toggleClass('closed'); 290 }, 291 complete: function(){ 292 _this.removeClass('clicked'); 293 // InitLazyLoad(); 294 } 295 }); 296 } 297}); 298 299var checkFilterLandgings = function(){ 300 if ($('.top-content-block .with-filter .with-filter-wrapper').length) { 301 var bActiveClass = false; 302 if ($("#mobilefilter .with-filter-wrapper").length) { 303 if ($("#mobilefilter .with-filter-wrapper .bx_filter_parameters_box").hasClass('active')) { 304 bActiveClass = true; 305 } 306 $("#mobilefilter .with-filter-wrapper").empty() 307 $('.top-content-block .with-filter .with-filter-wrapper').prependTo($("#mobilefilter .with-filter-wrapper")) 308 } else { 309 $('.top-content-block .with-filter .with-filter-wrapper').prependTo($("#mobilefilter .bx_filter_parameters")) 310 } 311 if ($("#mobilefilter .bx_filter_parameters .landings-list__item--active").length || bActiveClass) { 312 $("#mobilefilter .with-filter-wrapper .bx_filter_parameters_box").addClass('active') 313 } 314 $('#mobilefilter .scrollbar').scrollTop(0) 315 if ($('#mobilefilter .bx_filter_parameters.scroll-init').length) { 316 $('#mobilefilter .bx_filter_parameters.scroll-init').mCustomScrollbar('scrollTo', 0) 317 } 318 } 319} 320 321 322$(document).ready(function(){ 323 lazyLoadPagenBlock(); 324 BX.addCustomEvent('onWindowResize', function(){ 325 try { 326 var fixedMobile = arAsproOptions.THEME['FIXED_BUY_MOBILE'] == 'Y'; 327 328 if(fixedMobile) { 329 var buyBlock = $('.buy_block'); 330 var counterWrapp = $('.counter_wrapp'); 331 332 if(buyBlock.length && counterWrapp.length && !$('.list-offers.ajax_load').length) { 333 if( window.matchMedia('(max-width: 767px)').matches ) { 334 if(buyBlock.data('hasCatalog') === undefined) { 335 var hasCatalog = buyBlock.hasClass('catalog_block'); 336 buyBlock.data('hasCatalog', hasCatalog); 337 } 338 buyBlock.addClass('catalog_block'); 339 340 if(counterWrapp.data('hasList') === undefined) { 341 var hasList = counterWrapp.hasClass('list'); 342 counterWrapp.data('hasList', hasList); 343 } 344 counterWrapp.removeClass('list').addClass('fixed'); 345 } else { 346 if(buyBlock.data('hasCatalog') !== undefined && !buyBlock.data('hasCatalog')) { 347 buyBlock.removeClass('catalog_block'); 348 } 349 350 if(counterWrapp.data('hasList') !== undefined && counterWrapp.data('hasList')) { 351 counterWrapp.addClass('list'); 352 } 353 counterWrapp.removeClass('fixed'); 354 } 355 } 356 357 } 358 }catch(e){} 359 }); 360 361 $(document).find('.catalog_detail [class^=bx_item_detail] [class*=_scroller_container]').mCustomScrollbar({ 362 mouseWheel: { 363 scrollAmount: 150, 364 preventDefault: true 365 } 366 }); 367}); 368 369/* End */ 370; 371; /* Start:"a:4:{s:4:"full";s:107:"/local/templates/aspro_max/components/bitrix/catalog.section.list/sections_list/script.min.js?1614352418472";s:6:"source";s:89:"/local/templates/aspro_max/components/bitrix/catalog.section.list/sections_list/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 372$(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 i=$(this).closest(".toggle").find(".slide-wrapper"),t=i.is(":visible"),l=t?200:400,s=t?"slideUp":"slideDown";i.length&&($(e.target).closest("a").length||$(e.target).hasClass("dark_link")||(i.velocity(s,{duration:l,easing:"easeOutQuart"}),i.toggleClass("opened")))})}); 373/* End */ 374;; /* /local/templates/aspro_max/components/bitrix/catalog/main/script.
374js?163894698515061*/ 375; /* /local/templates/aspro_max/components/bitrix/catalog.section.list/sections_list/script.min.js?1614352418472*/
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.