PageSourceSearch

https://jessejamesbeads.com/cdn/shop/t/82/assets/pagination.js?v=69633001443073574931790791046

js jessejamesbeads.com collected 2026-10-03 23:39:52 UTC 2,624 bytes, 2 lines download raw bytes

1if(!customElements.get("pagination")){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.animations_enabled=document.body.classList.contains("animations-true")&&typeof gsap<"u",this.i=2}connectedCallback(){this.classList.contains("pagination-type--loadmore")&&this.loadMore(),this.classList.contains("pagination-type--infinite")&&this.infinite()}disconnectedCallback(){this.observer&&this.observer.disconnect()}addUrlParam(search,key){var newParam=key+"="+this.i,params="?"+newParam;return search&&(params=search.replace(new RegExp("([?&])"+key+"[^&]*"),"$1"+newParam),params===search&&(params+="&"+newParam)),params}loadMore(){let base=this;this.button.addEventListener("click",function(){return base.loadProducts(),this.blur(),!1})}infinite(){let base=this;base.observer=new IntersectionObserver(function(entries){entries[0].intersectionRatio===1&&base.loadProducts()},{threshold:[0,1]}),base.observer.observe(base)}loadProducts(){let base=this,url=document.location.pathname+base.addUrlParam(document.location.search,"page");base.getAttribute("loading")||(base.i++,base.setAttribute("loading",!0),fetch(url).then(response=>response.text()).then(responseText=>{const html=responseText;base.renderProducts(html,url),dispatchCustomEvent("pagination:page-changed",{url})}))}renderProducts(html,url){let base=this,grid_to_replace=new DOMParser().parseFromString(html,"text/html").getElementById("product-grid");if(!grid_to_replace){base.observer&&base.observer.unobserve(base),base.removeAttribute("loading"),base.button&&base.button.classList.add("visually-hidden");return}let products=grid_to_replace.querySelectorAll(".column");const appendProducts=()=>{for(var i=0;i<products.length;i++)this.grid.appendChild(products[i])};this.animations_enabled?(appendProducts(),gsap.set(products,{opacity:0,y:30}),gsap.to(products,{duration:.5,y:0,opacity:1,stagger:.05,onComplete:function(){base.removeAttribute("loading"),typeof StampedFn.loadBadges<"u"&&StampedFn.loadBadges()}})):(this.renderWithViewTransition(appendProducts),base.removeAttribute("loading"),typeof StampedFn.loadBadges<"u"&&StampedFn.loadBadges())}renderWithViewTransition(update){typeof document.startViewTransition=="function"&&document.body.classList.contains("animations-true")&&!document.body.classList.contains("open-cc")?document.startViewTransition(update):update()}}customElements.define("pagination-theme",Pagination)}
2//# sourceMappingURL=/cdn/shop/t/82/assets/pagination.js.map?v=69633001443073574931790791046

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.