(()=>{"use strict";const e=window.wp.blocks,o=window.wp.i18n,n=window.wp.components,r=window.wp.coreData,i=window.wp.blockEditor,t=window.ReactJSXRuntime,p=JSON.parse('{"UU":"inventory-presser/year-make-model-and-trim"}');(0,e.getBlockType)(p.UU)||(0,e.registerBlockType)(p.UU,{edit:function({isSelected:e,context:p}){const{postType:s}=p,[l,a]=(0,r.useEntityProp)("postType",s,"meta"),_=(0,i.useBlockProps)();return e?(0,t.jsxs)("div",{..._,children:[(0,t.jsx)(n.TextControl,{label:(0,o.__)("Year","inventory-presser"),value:l[invp_blocks.meta_prefix+"year"],onChange:e=>a({...l,[invp_blocks.meta_prefix+"year"]:e.replace(/[^0-9]/g,"")})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Make","inventory-presser"),value:l[invp_blocks.meta_prefix+"make"],onChange:e=>a({...l,[invp_blocks.meta_prefix+"make"]:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Model","inventory-presser"),value:l[invp_blocks.meta_prefix+"model"],onChange:e=>a({...l,[invp_blocks.meta_prefix+"model"]:e})}),(0,t.jsx)(n.TextControl,{label:(0,o.__)("Trim Level","inventory-presser"),value:l[invp_blocks.meta_prefix+"trim"],onChange:e=>a({...l,[invp_blocks.meta_prefix+"trim"]:e})})]}):(0,t.jsx)("div",{..._,children:(0,t.jsxs)("h1",{children:[" ",l[invp_blocks.meta_prefix+"year"]+" ",l[invp_blocks.meta_prefix+"make"]+" ",l[invp_blocks.meta_prefix+"model"]+" ",l[invp_blocks.meta_prefix+"trim"]," "]})})}})})();