import{i as d,r as O,a as _,A as f}from"../../common/NoticesPlugin.b2b90c58.js";import{a as l,W as r,b as C}from"../../common/sanitize.d66553f0.js";/* empty css                         */function w(){import.meta.url,import("_").catch(()=>1);async function*o(){}}const{addAction:m}=wp.hooks;d();O();_();const s=()=>{const{dummyUpdateCart:o}=acfwfObj.wc,{debounce:e,hasBOGOCoupon:c}=acfwfObj.utils;c()&&e(()=>{o()},750)()};m("experimental__woocommerce_blocks-cart-set-item-quantity","acfwf",({product:o={},quantity:e=1})=>s());m("experimental__woocommerce_blocks-cart-remove-item","acfwf",({product:o={},quantity:e=1})=>s());let u=[];l(()=>{var a,i,n;const o=C(r),c=((n=(i=(a=o==null?void 0:o.getCartData)==null?void 0:a.call(o))==null?void 0:i.coupons)!=null?n:[]).filter(t=>t.discount_type===f).map(t=>t.code),p=c.some(t=>!u.includes(t));u=c,p&&s()},r);export{w as __vite_legacy_guard};
