"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[185],{3185(t,a,c){c.r(a),c.d(a,{mount:function(){return s}});var e=c(8043),r=c.n(e);let o=null;const s=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;o&&(o.abort(),o=null);const s=t.closest(".woocommerce-mini-cart-item");s&&s.classList.add("processing"),o=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"),r()(document.body).trigger("update_checkout"),r()(document).trigger("wc_update_cart"),ctEvents.trigger("ct:header:update")}})}}}]);