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