"use strict";jQuery(document).ready(function(a){a(document.body).on("added_to_cart",function(t,d,n,e){d["div.hidden.redirect_url"]&&(window.location=d["div.hidden.redirect_url"])}),a(document.body).on("should_send_ajax_request.adding_to_cart",function(t,d){var n={};if(a.each(d.data(),function(t,d){n[t]=d}),a.each(d[0].dataset,function(t,d){n[t]=d}),"1"===n.no_add&&n.redirect)return!1}),a(document.body).on("ajax_request_not_sent.adding_to_cart",function(t,d,n,e){var o={};a.each(e.data(),function(t,d){o[t]=d}),a.each(e[0].dataset,function(t,d){o[t]=d}),o.redirect&&(window.location=o.redirect)})});