(()=>{"use strict";const e=window.wp.i18n,t=window.wp.richText,a=window.wp.blockEditor;var i=function(e){return React.createElement("svg",{clipRule:"evenodd",fillRule:"evenodd",height:24,strokeLinejoin:"round",strokeMiterlimit:2,viewBox:"0 0 32 32",width:24,xmlns:"http://www.w3.org/2000/svg",style:{backgroundColor:e.background,padding:e.padding}},React.createElement("path",{fill:e.color,d:"M3 30h14.503a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2zm6.515-19.054-1.592 1.077a3.001 3.001 0 0 0-.442 4.607l.796.795-1.458 6.368a.943.943 0 0 0-.022.138l-1.183 1.184a1 1 0 0 0 1.414 1.414l1.184-1.183a1.1 1.1 0 0 0 .138-.022l6.368-1.458.652.653a3.001 3.001 0 0 0 4.607-.442l1.077-1.592zm1.688-1.14 10.991 10.991 7.292-10.792a3.001 3.001 0 0 0-.365-3.801l-3.325-3.325a3.001 3.001 0 0 0-3.801-.365z"}))};(0,t.registerFormatType)("has/inline",{title:(0,e.__)("Highlight and Share","highlight-and-share"),tagName:"span",attributes:{class:"class"},className:"has-inline-text",edit:function(n){var l=function(){n.isActive?n.onChange((0,t.removeFormat)(n.value,"has/inline")):(n.value.start!==n.value.end||n.isActive)&&n.onChange((0,t.applyFormat)(n.value,{type:"has/inline",attributes:{class:"has-inline-text"}}))};return React.createElement(React.Fragment,null,!1===n.isActive&&React.createElement(a.RichTextToolbarButton,{icon:React.createElement(i,{background:"transparent",color:"#cbb200",padding:"0"}),title:(0,e.__)("Inline Social Highlight","highlight-and-share"),onClick:l}),!0===n.isActive&&React.createElement(a.RichTextToolbarButton,{icon:React.createElement(i,{background:"#1e1e1e",color:"#ffd700",padding:"5px"}),title:(0,e.__)("Inline Social Highlight","highlight-and-share"),onClick:l}))}})})();