PageSourceSearch

https://bbta.com.au/cdn/shop/t/2/assets/pagination.js?v=72186014806742746741729829109

js bbta.com.au collected 2026-10-07 19:52:47 UTC 1,943 bytes, 2 lines download raw bytes

1if(!customElements.get("pagination-theme")){class Pagination extends HTMLElement{constructor(){super();const id=this.dataset.section;this.button=this.querySelector(".load-more"),this.grid=document.querySelector(`[data-id="${id}"]`),this.page=1}connectedCallback(){this.classList.contains("pagination-type--loadmore")&&this.initLoadMore(),this.classList.contains("pagination-type--infinite")&&this.initInfiniteScroll()}addUrlParam(search,key){const newParam=`${key}=${this.page}`;if(!search)return`?${newParam}`;const params=search.replace(new RegExp(`([?&])${key}[^&]*`),`$1${newParam}`);return params===search?`${search}&${newParam}`:params}initLoadMore(){this.button.addEventListener("click",()=>{this.loadProducts(),this.button.blur()})}initInfiniteScroll(){this.observer=new IntersectionObserver(entries=>{entries[0].intersectionRatio===1&&this.loadProducts()},{threshold:[0,1]}),this.observer.observe(this)}async loadProducts(){if(this.hasAttribute("loading"))return;this.page++,this.setAttribute("loading","true");const url=`${document.location.pathname}${this.addUrlParam(document.location.search,"page")}`;try{const responseText=await(await fetch(url)).text();this.renderProducts(responseText,url),dispatchCustomEvent("pagination:page-changed",{url})}catch(error){console.error("Error loading products:",error)}finally{this.removeAttribute("loading")}}renderProducts(html,url){const gridToReplace=new DOMParser().parseFromString(html,"text/html").getElementById("product-grid");if(!gridToReplace){this.observer&&this.observer.unobserve(this),this.button&&this.button.classList.add("visually-hidden");return}gridToReplace.querySelectorAll(".columns").forEach(product=>{this.grid.appendChild(product),product.querySelectorAll(".lazyload").forEach(image=>{lazySizes.loader.unveil(image)})})}}customElements.define("pagination-theme",Pagination)}
2//# sourceMappingURL=/cdn/shop/t/2/assets/pagination.js.map?v=72186014806742746741729829109

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.