!function(p){var d=!1;function r(t,e){var t=t.find(".swiper-slide-visible"),n=-1;t.each(function(){var t,o=p(this);"product"===e&&(t=o.find(".pp-woo-product-wrapper").outerHeight(),n
'),o=(d("body").append(t),d("div",t).innerWidth()),e=(t.css("overflow-y","scroll"),d("div",t).innerWidth());return d(t).remove(),o-e},n=(n.on("click",function(t){this===t.target&&o()}),d(document).keyup(function(t){27===t.keyCode&&o()}),t.on("click",function(t){t.preventDefault(),o()}),o=function(){e.removeClass("pp-quick-view-bg-ready"),i.removeClass("open").removeClass("loading"),d("html").removeClass("pp-quick-view-is-open"),d("html").css("margin-right",""),setTimeout(function(){a.html("")},600)},window.addEventListener("resize",function(t){u()}),function(){r.off("click","#pp-quick-view-content .single_add_to_cart_button").off("pp_added_to_cart").on("click","#pp-quick-view-content .single_add_to_cart_button",this.onAddToCart).on("pp_added_to_cart",this.updateButton)});n.prototype.onAddToCart=function(t){t.preventDefault();t=d(this).closest("form");if(!t[0].checkValidity())return t[0].reportValidity(),!1;var o=d(this),e=d(this).val(),n=d('input[name="variation_id"]').val()||"",i=d('input[name="quantity"]').val(),a=(p.find(".woocommerce-grouped-product-list-item").length&&(a=d("input.qty"),i=[],d.each(a,function(t,o){var e=d(this).attr("name");e=(e=e.replace("quantity[","")).replace("]",""),e=parseInt(e),d(this).val()&&(i[e]=d(this).val())})),t.serialize());o.is(".single_add_to_cart_button")&&(o.removeClass("added"),o.addClass("loading"),""!=n?jQuery.ajax({url:pp_woo_products_script.ajax_url,type:"POST",data:"action=pp_add_cart_single_product&product_id="+e+"&nonce="+pp_woo_products_script.add_cart_nonce+"&"+a,success:function(t){d(document.body).trigger("wc_fragment_refresh"),d(document.body).trigger("pp_added_to_cart",[o]),o.removeClass("loading"),o.addClass("added")}}):jQuery.ajax({url:pp_woo_products_script.ajax_url,type:"POST",data:"action=pp_add_cart_single_product&product_id="+e+"&nonce="+pp_woo_products_script.add_cart_nonce+"&"+a,success:function(t){d(document.body).trigger("wc_fragment_refresh"),r.trigger("pp_added_to_cart",[o])}}))},n.prototype.updateButton=function(t,o){d(o=void 0!==o&&o)&&(d(o).removeClass("loading"),d(o).addClass("added"),d(o).addClass("testng"),pp_woo_products_script.is_cart||0!==d(o).parent().find(".added_to_cart").length||d(o).after(' '+pp_woo_products_script.view_cart+""))},new n},t=function(o,t,e){var n,i,a,p,d;void 0!==o&&(0<(p=o.find(".pp-woo-products-slider")).length&&(n=o.find(".swiper-container-wrap").eq(0),i=o.find(".pp-woo-products-inner").eq(0),a=JSON.parse(p.attr("data-woo_slider")),jQuery(n).closest(".elementor-widget-wrap").addClass("e-swiper-container"),jQuery(n).closest(".elementor-widget").addClass("e-widget-swiper"),0'+pp_woo_products_script.view_cart+""))},new p),elementorFrontend.isEditMode()&&s(o,t))},o=(p(document).off("click",".pp-woocommerce-pagination a.page-numbers").on("click",".pp-woocommerce-pagination a.page-numbers",function(t){var o,e,n,i;($scope=p(this).closest(".elementor-widget-pp-woo-products")).find(".pp-woocommerce").hasClass("pp-woo-query-main")||(t.preventDefault(),$scope.find("ul.products").after('
'),t=$scope.data("id"),o=$scope.find(".pp-woocommerce").data("page"),i=1,e=parseInt($scope.find(".pp-woocommerce-pagination .page-numbers.current").html()),n=$scope.find(".pp-woocommerce").data("skin"),i=p(this).hasClass("next")?e+1:p(this).hasClass("prev")?e-1:p(this).html(),p.ajax({url:pp_woo_products_script.ajax_url,data:{action:"pp_get_products",page_id:o,widget_id:t,skin:n,page_number:i,nonce:pp_woo_products_script.get_product_nonce},dataType:"json",type:"POST",success:function(t){$scope.find(".pp-woo-loader").remove(),p("html, body").animate({scrollTop:$scope.find(".pp-woocommerce").offset().top-30},"slow"),$scope.find(".pp-woo-products-inner ul.products").replaceWith(t.data.html),$scope.find(".pp-woocommerce-pagination").replaceWith(t.data.pagination)}}))}),function(t,i){i("body").off("added_to_cart.pp_cart").on("added_to_cart.pp_cart",function(t,o,e,n){i(n).parent().parent().parent().hasClass("elementor-widget-pp-woo-add-to-cart")&&0<($btn=i(n)).length&&!pp_woo_products_script.is_cart&&$btn.hasClass("added")&&$btn.hasClass("pp-redirect")&&setTimeout(function(){window.location=pp_woo_products_script.cart_url},500)})}),e=function(t,o){0