(()=>{"use strict";const e=window.wp.blocks,t=window.wp.i18n,i=window.wp.blockEditor,o=(window.wp.data,window.wp.coreData),r=window.ReactJSXRuntime,n=JSON.parse('{"UU":"inventory-presser/description"}');(0,e.getBlockType)(n.UU)||(0,e.registerBlockType)(n.UU,{edit:function({isSelected:e,context:n}){const{postType:c}=n,[s,p]=(0,o.useEntityProp)("postType",c,"meta"),l=(0,i.useBlockProps)(),d=s[invp_blocks.meta_prefix+"description"]||"",a=!d||""===d.trim();return e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BlockControls,{}),(0,r.jsx)(i.RichText,{...l,tagName:"p",onChange:e=>{p({...s,[invp_blocks.meta_prefix+"description"]:e})},allowedFormats:["core/bold","core/italic","core/link","core/text-color"],value:d,placeholder:(0,t.__)("Enter vehicle description...","inventory-presser")})]}):a?(0,r.jsx)("div",{...l,children:(0,r.jsx)("p",{style:{opacity:.62,fontStyle:"italic"},children:(0,t.__)("Enter vehicle description...","inventory-presser")})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.RichText,{...l,value:d})})}})})();