1jQuery(document).ready(function($){aTheme.WC.archive={loadMoreProducts:()=>{$('body').on('click','.js-load-more-archive-products',function(e){e.preventDefault();if(aTheme.app.isDisabled($(this))){return!1} 2const $this=$(this);const nextPageUrl=$this.attr('href');$.ajax({type:'GET',url:nextPageUrl,beforeSend:function(){$this.addClass('is-loading')},complete:function(){$this.removeClass('is-loading')},success:function(response){const $html=$($.parseHTML(response));$('#js-archive-products-products').children().append($html.find('#js-archive-products-products').children().html());$('#js-archive-products-pagination').html($html.find('#js-archive-products-pagination').html());aTheme.loadLazyImages();history.pushState({},null,nextPageUrl);document.title=$html.filter('title').text();aTheme.WC.archive.updateProductCount()}})})},updateProductCount:()=>{const $current=$('#js-product-archive-pagination-current');const $progress=$('#js-product-archive-pagination-progress');const $products=$('#js-archive-products-products');const count=$products.find('article').length;const total=$current.attr('data-total');const percentage=(count/total)*100;$current.text(count);if(parseInt(count)==parseInt(total)){$('#js-product-archive-pagination-percentage').hide()}else{$progress.css({'width':percentage+'%'})}},mobileFilter:()=>{var shopFilter=new hcSticky('.js-shop-filter:not(.is-relative-force)',{disable:!0,responsive:{991:{disable:!1,stickTo:'.t-archive-product__main',bottomEnd:-$('.js-shop-filter').innerHeight(),innerTop:-50,}}});$('.js-toggle-mobile-filter').on('click',function(e){const $this=$(this);const shopFilterElement=document.querySelector('.js-shop-filter');$('.js-shop-filter').toggleClass('is-relative-force');if($('.js-shop-filter').hasClass('is-relative-force')){shopFilter.destroy();if(shopFilterElement){shopFilterElement.scrollIntoView({behavior:'smooth'})}}else{shopFilter.refresh()} 3$('.js-mobile-filters').slideToggle()})},init:()=>{aTheme.WC.archive.loadMoreProducts();aTheme.WC.archive.updateProductCount();aTheme.WC.archive.mobileFilter()}} 4aTheme.WC.archive.init()}) 5;
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.