(()=>{"use strict";const e=window.wp.blocks,n=window.wp.i18n,o=window.wp.components,t=window.wp.coreData,p=window.wp.blockEditor,i=window.ReactJSXRuntime,r=JSON.parse('{"UU":"inventory-presser/down-payment"}');(0,e.getBlockType)(r.UU)||(0,e.registerBlockType)(r.UU,{edit:function({isSelected:e,context:r}){const{postType:s}=r,[w,c]=(0,t.useEntityProp)("postType",s,"meta"),a=(0,p.useBlockProps)();return e?(0,i.jsx)("div",{...a,children:(0,i.jsx)(o.TextControl,{label:(0,n.__)("Down Payment","inventory-presser"),value:w[invp_blocks.meta_prefix+"down_payment"],onChange:e=>c({...w,[invp_blocks.meta_prefix+"down_payment"]:e.replace(/[^0-9\.]/g,"")})})}):(0,i.jsxs)("div",{...a,children:[" ",invpFormatCurrency(w[invp_blocks.meta_prefix+"down_payment"])," "]})}})})();