jQuery(document).ready(function(o){o(document.body).on("change",".edd-item-quantity",function(){let d=o(this),t=parseInt(d.val()),a=d.data("key"),e=d.closest(".edd_cart_item").data("download-id"),i=JSON.parse(d.parent().find('input[name="edd-cart-download-'+a+'-options"]').val()),n=Object.entries(window.gtmkit_data.edd.cart_items);n.forEach(d=>{d[1].download.download_id!==e||void 0!==d[1].download.price_id&&d[1].download.price_id!==i.price_id||Object.assign(window.gtmkit_data.edd.cart_items[d[0]],{quantity:t})})})});