Sindbad~EG File Manager

Current Path : /var/www/quickscrum.com/wp-content/plugins/tinymce-advanced/block-editor/
Upload File :
Current File : /var/www/quickscrum.com/wp-content/plugins/tinymce-advanced/block-editor/richtext-buttons.js

!function(t){var e={};function o(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=1)}([,function(t,e,o){"use strict";o.r(e);const r=window.tadvBlockButtons||{},{wp:n}=window,{RichTextToolbarButton:a}=n.blockEditor,{registerFormatType:c,removeFormat:i}=n.richText,{createElement:l}=n.element,{ToolbarButton:u}=n.components,s=r.strRemoveFormatting||"Clear formatting";let m;function d(t){const e=[];return m||(m=r.formats_to_remove?r.formats_to_remove.split(","):["core/bold","core/italic","core/code","core/underline","core/strikethrough","core/text-color","tadv/sup","tadv/sub","tadv/mark","tadv/color-panel","tadv/background-color-panel"]),t.forEach(t=>{t&&t.forEach(t=>{m.indexOf(t.type)>-1&&-1===e.indexOf(t.type)&&e.push(t.type)})}),e}const{wp:f}=window,v=window.tadvBlockButtons||{},{createElement:p,Fragment:h}=f.element,{__:g}=f.i18n,{ToolbarButton:b}=f.components,{RichTextToolbarButton:y,RichTextShortcut:w}=f.blockEditor,{Path:k,SVG:x}=f.components,{registerFormatType:T,getActiveFormat:F,toggleFormat:_,applyFormat:O,removeFormat:B}=f.richText,E=p(x,{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:"dashicon tadv-mark-icon"},p(k,{"aria-hidden":"true",role:"img",focusable:"false",width:"20",height:"20",d:"M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"})),P=v.strMark;function j(t,e,o){e(_(t,{type:"tadv/mark"})),o&&o()}const{wp:S}=window,{select:C}=S.data,{registerPlugin:M}=S.plugins,N=["tadv/mark","tadv/removeformat"],A={"tadv/mark":function(){T("tadv/mark",{title:P,tagName:"mark",className:null,edit({value:t,onChange:e,onFocus:o,isActive:r}){const n=p(y,{title:P,icon:E,onClick:()=>j(t,e,o),className:"tadv-icon-button-mark",isActive:r,shortcutType:"access",shortcutCharacter:"m"});return p(h,null,p(w,{type:"access",character:"m",onUse:()=>j(t,e)}),n)}})},"tadv/removeformat":function(){c("tadv/removeformat",{title:s,tagName:"u",className:"remove-format",edit:({value:t,onChange:e,onFocus:o,isActive:r})=>l(a,{icon:"editor-removeformatting",title:s,onClick:()=>e(function(t){let e=t.formats;if(!e.length)return t;let o=0,r=e.length;t.end>t.start&&(o=t.start,r=t.end,e=e.slice(o,r));const n=d(e);return n.length?(n.forEach(e=>{t=i(t,e,o,r)}),t):t}(t)),isActive:null})})}};M("tadv-add-toolbar-buttons",{render:()=>(N.forEach(t=>{A.hasOwnProperty(t)&&!function(t){const e=C("core/rich-text").getFormatTypes();let o=!1;return e.forEach(e=>{e.name===t&&(o=!0)}),o}(t)&&A[t].call(null)}),null)})}]);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists