"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 n of __getOwnPropNames(t))__hasOwnProp.call(e,n)||n===o||__defProp(e,n,{get:()=>t[n],enumerable:!(r=__getOwnPropDesc(t,n))||r.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),toolbar_button_alignment_exports={};__export(toolbar_button_alignment_exports,{ALIGNMENT_CONTROLS:()=>ALIGNMENT_CONTROLS,default:()=>AlignmentToolbarButton}),module.exports=__toCommonJS(toolbar_button_alignment_exports);var import_element=require("@wordpress/element"),import_i18n=require("@wordpress/i18n"),import_icons=require("@wordpress/icons"),import_block_editor=require("@wordpress/block-editor");const ALIGNMENT_CONTROLS=[{icon:import_icons.alignLeft,title:(0,import_i18n.__)("Align text left","woocommerce"),align:"left"},{icon:import_icons.alignCenter,title:(0,import_i18n.__)("Align text center","woocommerce"),align:"center"},{icon:import_icons.alignRight,title:(0,import_i18n.__)("Align text right","woocommerce"),align:"right"},{icon:import_icons.alignJustify,title:(0,import_i18n.__)("Align text justify","woocommerce"),align:"justify"}];function AlignmentToolbarButton({align:e,setAlignment:t}){return(0,import_element.createElement)(import_block_editor.AlignmentControl,{alignmentControls:ALIGNMENT_CONTROLS,value:e,onChange:t})}