"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"),components_1=require("@wordpress/components");function Edit({attributes:e}){const t=(0,block_editor_1.useBlockProps)(),{label:r,property:o,disabled:s}=e,[d,n]=(0,core_data_1.useEntityProp)("postType","product",o);return(0,element_1.createElement)("div",{...t},(0,element_1.createElement)(components_1.ToggleControl,{label:r,checked:d,disabled:s,onChange:n}))}exports.Edit=Edit;