"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const element_1=require("@wordpress/element"),block_templates_1=require("@woocommerce/block-templates"),core_data_1=require("@wordpress/core-data"),attributes_1=require("../../../components/attributes/attributes");function Edit({attributes:e}){const[t,r]=(0,core_data_1.useEntityProp)("postType","product","attributes"),o=(0,core_data_1.useEntityId)("postType","product"),s=(0,block_templates_1.useWooBlockProps)(e);return(0,element_1.createElement)("div",{...s},(0,element_1.createElement)(attributes_1.Attributes,{productId:o,value:t,onChange:r}))}exports.Edit=Edit;