"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const element_1=require("@wordpress/element"),block_editor_1=require("@wordpress/block-editor"),core_data_1=require("@wordpress/core-data"),radio_field_1=require("../../components/radio-field");function Edit({attributes:e}){const t=(0,block_editor_1.useBlockProps)(),{description:r,options:o,property:i,title:d}=e,[s,n]=(0,core_data_1.useEntityProp)("postType","product",i);return(0,element_1.createElement)("div",{...t},(0,element_1.createElement)(radio_field_1.RadioField,{title:d,description:r,selected:s,options:o,onChange:e=>n(e||"")}))}exports.Edit=Edit;