Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
product-editor
/
blocks
/
product-fields
/
password
:
edit.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=Edit;const core_data_1=require("@wordpress/core-data"),element_1=require("@wordpress/element"),block_templates_1=require("@woocommerce/block-templates"),require_password_1=require("../../../components/require-password");function Edit({attributes:e}){const r=(0,block_templates_1.useWooBlockProps)(e),{label:t}=e,[o,s]=(0,core_data_1.useEntityProp)("postType","product","post_password");return(0,element_1.createElement)("div",{...r},(0,element_1.createElement)(require_password_1.RequirePassword,{label:t,postPassword:o,onInputChange:s}))}