"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,r)=>{for(var o in r)__defProp(e,o,{get:r[o],enumerable:!0})},__copyProps=(e,r,o,t)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let p of __getOwnPropNames(r))__hasOwnProp.call(e,p)||p===o||__defProp(e,p,{get:()=>r[p],enumerable:!(t=__getOwnPropDesc(r,p))||t.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),edit_exports={};__export(edit_exports,{Edit:()=>Edit}),module.exports=__toCommonJS(edit_exports);var import_core_data=require("@wordpress/core-data"),import_element=require("@wordpress/element"),import_block_templates=require("@woocommerce/block-templates"),import_require_password=require("../../../components/require-password");function Edit({attributes:e}){const r=(0,import_block_templates.useWooBlockProps)(e),{label:o}=e,[t,p]=(0,import_core_data.useEntityProp)("postType","product","post_password");return(0,import_element.createElement)("div",{...r},(0,import_element.createElement)(import_require_password.RequirePassword,{label:o,postPassword:t,onInputChange:p}))}