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