(()=>{var c=parseInt(astra.shop_infinite_total)||"",d=parseInt(astra.shop_infinite_count)||"",e=astra.shop_pagination||"",l=!0,o=astra.shop_infinite_scroll_event||"",p=astra.shopRevealEffectEnable||"",u=document.querySelector(".ast-shop-pagination-infinite .ast-loader");if(astShopLoadMore=document.querySelector(".ast-shop-load-more"),"string"==typeof e&&"infinite"===e){if("undefined"!=typeof wp&&void 0!==wp.customize)return;if("string"==typeof o)switch(o){case"click":document.body.addEventListener("click",function(e){if(e.target&&e.target.classList.contains("ast-shop-load-more")&&(e.preventDefault(),"undefined"!=d)&&""!=d&&"undefined"!=c&&""!=c){if(c{astShopLoadMore&&astShopLoadMore.classList.remove("active");var r=document.querySelector("a.next.page-numbers"),s=r.getAttribute("href"),i=(u.style.display="block",new XMLHttpRequest);i.open("GET",s,!0),i.send(),i.onload=function(){var e=i.response,e=(new DOMParser).parseFromString(e,"text/html"),t=(e.querySelector("#main")||e).querySelectorAll("li.product"),o=document.querySelector(".ast-woocommerce-container ul.products");o=o||document.querySelector(".elementor-widget-wc-archive-products ul.products"),u.style.display="none",astShopLoadMore&&astShopLoadMore.classList.add("active");for(var a=0;a'+e+"":(e=s.replace(/\/page\/[0-9]+/,"/page/"+(n+1)),r.setAttribute("href",e)),l=!0,document.dispatchEvent(new CustomEvent("astraInfinitePaginationLoaded",{detail:{}})),p&&fadin(".ast-fade-up",{delay:200})}}}})();