"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 n of __getOwnPropNames(r))__hasOwnProp.call(e,n)||n===o||__defProp(e,n,{get:()=>r[n],enumerable:!(t=__getOwnPropDesc(r,n))||t.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),paragraph_rtl_control_exports={};__export(paragraph_rtl_control_exports,{ParagraphRTLControl:()=>ParagraphRTLControl}),module.exports=__toCommonJS(paragraph_rtl_control_exports);var import_element=require("@wordpress/element"),import_components=require("@wordpress/components"),import_i18n=require("@wordpress/i18n"),import_icons=require("@wordpress/icons");function ParagraphRTLControl({direction:e,onChange:r}){return(0,import_element.createElement)(import_element.Fragment,null,(0,import_i18n.isRTL)()&&(0,import_element.createElement)(import_components.ToolbarButton,{icon:import_icons.formatLtr,title:(0,import_i18n._x)("Left to right","editor button","woocommerce"),isActive:"ltr"===e,onClick:function(){"function"==typeof r&&r("ltr"===e?void 0:"ltr")}}))}