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