"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AttributesBlockEdit=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 AttributesBlockEdit({attributes:t}){const[e,r]=(0,core_data_1.useEntityProp)("postType","product","attributes"),o=(0,core_data_1.useEntityId)("postType","product"),s=(0,block_templates_1.useWooBlockProps)(t);return(0,element_1.createElement)("div",{...s},(0,element_1.createElement)(attributes_1.Attributes,{productId:o,value:e,onChange:r}))}exports.AttributesBlockEdit=AttributesBlockEdit;