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