PageSourceSearch

https://comercialmaldini.cl/wp-content/themes/oceanwp/assets/js/third/woo/woo-quick-view.min.js?ver=1.7.3

js comercialmaldini.cl collected 2026-10-06 12:33:45 UTC 3,381 bytes, 1 lines download raw bytes

1var $j=jQuery.noConflict();$j(document).on("ready",function(){if("undefined"==typeof oceanwpLocalize)return!1;var c=$j("#owp-qv-wrap"),l=$j("#owp-qv-content");$j(document).on("click",".owp-quick-view",function(a){a.preventDefault();var t=$j(this),e=$j(this).data("product_id");t.parent().addClass("loading"),$j.ajax({url:oceanwpLocalize.ajax_url,data:{action:"oceanwp_product_quick_view",product_id:e},success:function(a){var t=$j("html").innerWidth();$j("html").css("overflow","hidden");var e=$j("html").innerWidth();$j("html").css("margin-right",e-t),$j("html").addClass("owp-qv-open"),l.html(a),c.fadeIn(),c.addClass("is-visible");var o=l.find(".variations_form");o.trigger("check_variations"),o.trigger("reset_image");var n=l.find(".variations_form");0<n.length&&(n.wc_variation_form(),n.find("select").change());var r=l.find(".owp-qv-image");1<r.find("li").length&&r.flexslider();var i=l.find("form.grouped_form");if(i){var d=l.find("form.grouped_form").attr("action");i.find(".group_table, button.single_add_to_cart_button").hide(),i.append(' <a href="'+d+'" class="button">'+oceanwpLocalize.grouped_text+"</a>")}}}).done(function(){t.parent().removeClass("loading")})});var t=function(){$j("html").css({overflow:"","margin-right":""}),$j("html").removeClass("owp-qv-open"),c.fadeOut(),c.removeClass("is-visible"),setTimeout(function(){l.html("")},600)};$j(".owp-qv-overlay, .owp-qv-close").on("click",function(a){a.preventDefault(),t()}),$j(document).keyup(function(a){27==a.keyCode&&t()});var a=function(){$j(document.body).on("click","#owp-qv-content .product:not(.product-type-external) .single_add_to_cart_button",this.onAddToCart).on("added_to_cart",this.updateButton)};a.prototype.onAddToCart=function(a){a.preventDefault();var t=$j(this),e=$j(this).val(),o=$j('input[name="variation_id"]').val(),n=$j('input[name="quantity"]').val(),r=$j(this).closest(".variations_form"),i=r.find("select[name^=attribute]"),d={};t.removeClass("added"),t.addClass("loading"),i.length||(i=r.find("[name^=attribute]:checked")),i.length||(i=r.find("input[name^=attribute]")),i.each(function(){var a,t,e=$j(this),o=e.attr("name"),n=e.val();e.removeClass("error"),0===n.length?(a=o.lastIndexOf("_"),t=o.substring(a+1),e.addClass("required error").before("Please select "+t)):d[o]=n}),""!=o?$j.ajax({url:oceanwpLocalize.ajax_url,type:"POST",data:{action:"oceanwp_add_cart_single_product",product_id:e,variation_id:o,variation:d,quantity:n},success:function(a){$j(document.body).trigger("wc_fragment_refresh"),$j(document.body).trigger("added_to_cart",[a.fragments,a.cart_hash,t]),"yes"!==wc_add_to_cart_params.cart_redirect_after_add||(window.location=wc_add_to_cart_params.cart_url)}}):$j.ajax({url:oceanwpLocalize.ajax_url,type:"POST",data:{action:"oceanwp_add_cart_single_product",product_id:e,quantity:n},success:function(a){$j(document.body).trigger("wc_fragment_refresh"),$j(document.body).trigger("added_to_cart",[a.fragments,a.cart_hash,t]),"yes"!==oceanwpLocalize.cart_redirect_after_add||(window.location=oceanwpLocalize.cart_url)}})},a.prototype.updateButton=function(a,t,e,o){(o=void 0!==o&&o)&&(o.removeClass("loading"),o.addClass("added"),oceanwpLocalize.is_cart||0!==o.parent().find(".added_to_cart").length||o.after(' <a href="'+oceanwpLocalize.cart_url+'" class="added_to_cart wc-forward" title="'+oceanwpLocalize.view_cart+'">'+oceanwpLocalize.view_cart+"</a>"))},new a});

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.