(function(e){"use strict";e(document).ready(function(){e("body").on("adding_to_cart",function(t,n){n&&n.hasClass("vc_gitem-link")&&n.addClass("vc-gitem-add-to-cart-loading-btn").parents(".vc_grid-item-mini").addClass("vc-woocommerce-add-to-cart-loading").append(e('<div class="vc_wc-load-add-to-loader-wrapper"><div class="vc_wc-load-add-to-loader"></div></div>'))}).on("added_to_cart",function(t,n,s,o){"undefined"==typeof o&&(o=e(".vc-gitem-add-to-cart-loading-btn")),o&&o.hasClass("vc_gitem-link")&&o.removeClass("vc-gitem-add-to-cart-loading-btn").parents(".vc_grid-item-mini").removeClass("vc-woocommerce-add-to-cart-loading").find(".vc_wc-load-add-to-loader-wrapper").remove()})})})(window.jQuery)