"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[574],{9574:function(t,a,c){c.r(a),c.d(a,{mount:function(){return e}});var r=c(2194),o=c.n(r);let s=null;const e=function(t){var a=o()(t).attr("name").replace(/cart\[([\w]+)\]\[qty\]/g,"$1"),c=o()(t).val(),r=parseFloat(c);if(!t.reportValidity())return;s&&(s.abort(),s=null);const e=t.closest(".woocommerce-mini-cart-item");e&&e.classList.add("processing"),s=o().ajax({type:"POST",url:ct_localizations.ajax_url,data:{action:"blocksy_update_qty_cart",hash:a,quantity:r},success:function(t){jQuery("body").trigger("updated_wc_div"),ctEvents.trigger("ct:header:update")}})}}}]);