(function(c){let k=window.WPD.ajaxsearchpro.helpers;window.WPD.ajaxsearchpro.addons.add(new function(){this.name="Elementor Widget Fixes";this.init=function(){k.Hooks.addFilter("asp/init/etc",this.fixElementorPostPagination,10,this);k.Hooks.addFilter("asp/live_load/selector",this.fixSelector,10,this);k.Hooks.addFilter("asp/live_load/start",this.start,10,this);k.Hooks.addFilter("asp/live_load/replacement_node",this.fixElementorLoadMoreResults,10,this);k.Hooks.addFilter("asp/live_load/finished",this.finished, 10,this)};this.fixSelector=function(b){-1f.indexOf("asp_ls=")&&0>f.indexOf("asp_ls&")&&(0>f.indexOf("?")?c(this).attr("href",f+"?"+h):c(this).attr("href",f+"&"+h))}),a.find(".elementor-pagination a, .elementor-widget-container .woocommerce-pagination a").on("click",function(f){f.preventDefault();f.stopImmediatePropagation();f.stopPropagation(); b.showLoader();b.liveLoad(".asp_es_"+b.o.id,c(this).attr("href"),!1,!0)})))}}};this.fixElementorLoadMoreResults=function(b,d,e,a){a=c(e).closest("div[data-settings]").data("settings");let g=c(e).find(".asp_e_load_more_anchor");if(null!=a&&""!=a&&(a=JSON.parse(a),"load_more_infinite_scroll"==a.pagination_type&&0==g.length&&(c(".e-load-more-anchor").css("display","none"),c(e).append('
'),g=c(e).find(".asp_e_load_more_anchor"),a=function(){g.inViewPort(50)&&(g.trigger("asp_e_load_more"), g.remove())},d.documentEventHandlers.push({node:window,event:"scroll",handler:a}),c(window).on("scroll",a)),0*").addClass("eicon-animation-spin"); c(b).css("opacity",1)};this.elementorHideSpinner=function(b){c(b).removeClass("e-load-more-pagination-loading");c(b).find(".eicon-animation-spin").removeClass("eicon-animation-spin")}})})(WPD.dom);