(()=>{"use strict";const t=window.wp.element,e=window.ReactJSXRuntime,{registerCheckoutFilters:n}=window.wc.blocksCheckout,{getSetting:o}=window.wc.wcSettings,c=o("dokan_vendor_discount_data");function s(n,o){let c=null!=o?o:n;return(0,e.jsx)(t.RawHTML,{children:c})}n("dokan_vendor_discount",{coupons:(t,e,n)=>t.map(t=>(t=>{const e=c?.couponSettings[t.code],n=c?.settings;let o=t.label;return n?.orderDiscountEnabled&&e?.hasDiscount&&e?.orderDiscount?.hasApplied?o=s(t.label,e?.orderDiscount?.label):n?.productDiscountEnabled&&e?.hasDiscount&&e?.productDiscount?.hasApplied&&(o=s(t.label,e?.productDiscount?.label)),{...t,label:o}})(t))})})();