"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(o,e)=>{for(var t in e)__defProp(o,t,{get:e[t],enumerable:!0})},__copyProps=(o,e,t,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of __getOwnPropNames(e))__hasOwnProp.call(o,n)||n===t||__defProp(o,n,{get:()=>e[n],enumerable:!(r=__getOwnPropDesc(e,n))||r.enumerable});return o},__toCommonJS=o=>__copyProps(__defProp({},"__esModule",{value:!0}),o),toolbar_button_rtl_exports={};__export(toolbar_button_rtl_exports,{RTLToolbarButton:()=>RTLToolbarButton}),module.exports=__toCommonJS(toolbar_button_rtl_exports);var import_element=require("@wordpress/element"),import_components=require("@wordpress/components"),import_i18n=require("@wordpress/i18n"),import_icons=require("@wordpress/icons");function RTLToolbarButton({direction:o,onChange:e}){return(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"===o,onClick:()=>e?.("ltr"===o?void 0:"ltr")}):null}