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