"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__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 _ of __getOwnPropNames(t))__hasOwnProp.call(e,_)||_===o||__defProp(e,_,{get:()=>t[_],enumerable:!(r=__getOwnPropDesc(t,_))||r.enumerable});return e},__toESM=(e,t,o)=>(o=null!=e?__create(__getProtoOf(e)):{},__copyProps(!t&&e&&e.__esModule?o:__defProp(o,"default",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),with_full_editor_toolbar_button_exports={};__export(with_full_editor_toolbar_button_exports,{default:()=>with_full_editor_toolbar_button_default}),module.exports=__toCommonJS(with_full_editor_toolbar_button_exports);var import_element=require("@wordpress/element"),import_compose=require("@wordpress/compose"),import_block_editor=require("@wordpress/block-editor"),import_full_editor_toolbar_button=__toESM(require("./full-editor-toolbar-button"));const wooBlockwithFullEditorToolbarButton=(0,import_compose.createHigherOrderComponent)(e=>t=>"woocommerce/product-summary-field"!==t?.name||"product-description__content"!==t?.attributes?._templateBlockId?(0,import_element.createElement)(e,{...t}):(0,import_element.createElement)(import_element.Fragment,null,(0,import_element.createElement)(import_block_editor.BlockControls,{group:"other"},(0,import_element.createElement)(import_full_editor_toolbar_button.default,null)),(0,import_element.createElement)(e,{...t})),"wooBlockwithFullEditorToolbarButton");var with_full_editor_toolbar_button_default=wooBlockwithFullEditorToolbarButton;