"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var o in t)__defProp(e,o,{get:t[o],enumerable:!0})},__copyProps=(e,t,o,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of __getOwnPropNames(t))__hasOwnProp.call(e,i)||i===o||__defProp(e,i,{get:()=>t[i],enumerable:!(r=__getOwnPropDesc(t,i))||r.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_catalog_visibility=require("../../../components/catalog-visibility");function Edit({attributes:e}){const{label:t,visibility:o}=e,r=(0,import_block_templates.useWooBlockProps)(e),[i,_]=(0,import_core_data.useEntityProp)("postType","product","catalog_visibility");return(0,import_element.createElement)("div",{...r},(0,import_element.createElement)(import_catalog_visibility.CatalogVisibility,{catalogVisibility:i,label:t,visibility:o,onCheckboxChange:_}))}