@ckeditor/ckeditor5-format-painter 48.8.1-alpha.0 → 48.8.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1511fe,Plugin as _0x1fc910}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0xd8f5b7}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x36e8da,SplitButtonView as _0x45fb3d,UIModel as _0x31bd27,addListToDropdown as _0x5036ee}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x173433,Collection as _0x147bc7,global as _0x3f4b5b,uid as _0x5e4ee5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x49c5b8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x36f6e1}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';class CopyFormatCommand extends _0x1511fe{constructor(_0x21995f){super(_0x21995f),this['value']=void 0x0,this['on']('change:isEnabled',(_0xbfb950,_0x2bd71a,_0xf4bcdc)=>{_0xf4bcdc||this['reset']();}),this['on']('change:value',()=>_0x21995f['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x2012b2=this['editor']['model'],_0x566c58=_0x2012b2['document']['selection'];return Object['fromEntries'](Array['from'](_0x566c58['getAttributes']())['filter'](([_0x2f3621])=>_0x2012b2['schema']['getAttributeProperties'](_0x2f3621)['isFormatting']));}}class PasteFormatCommand extends _0x1511fe{constructor(_0x131cad){super(_0x131cad),this['_removeFormatCommand']=new _0xd8f5b7(_0x131cad);}['execute'](_0x3785ea={}){const _0x58604d=this['editor']['model'],_0x71099c=_0x58604d['document']['selection'],_0x234316=Array['from'](_0x71099c['getRanges']()),_0x1ade00=_0x71099c['isCollapsed']?[this['_createRangeOnEntireWord'](_0x58604d,_0x71099c)]:_0x234316;_0x58604d['change'](_0x304679=>{_0x304679['setSelection'](_0x1ade00),this['_removeFormatCommand']['execute']();for(const _0x272e3f in _0x3785ea)for(const _0x44178b of _0x58604d['schema']['getValidRanges'](_0x1ade00,_0x272e3f))_0x304679['setAttribute'](_0x272e3f,_0x3785ea[_0x272e3f],_0x44178b);_0x304679['setSelection'](_0x234316);});}['_createRangeOnEntireWord'](_0x11f539,_0x315b10){const _0x36c077=_0x11f539['createSelection'](_0x315b10);_0x11f539['modifySelection'](_0x36c077,{'unit':'word','direction':'backward'});const _0x3e9a35=_0x36c077['getFirstPosition']();_0x11f539['modifySelection'](_0x36c077,{'unit':'word','direction':'forward'});const _0x5cb416=_0x36c077['getLastPosition']();return _0x11f539['createRange'](_0x3e9a35,_0x5cb416);}}class FormatPainterEditing extends _0x1fc910{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x475080=this['editor'];_0x475080['commands']['add'](w,new CopyFormatCommand(_0x475080)),_0x475080['commands']['add'](g,new PasteFormatCommand(_0x475080)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5afdb8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x509c78;for(const _0xd94760 in _0x5afdb8){const _0x3dc070=_0xd94760,_0x101bd2=_0x5afdb8[_0x3dc070];if('formatPainterLicenseKeyValid'==_0x101bd2||'formatPainterLicenseKeyInvalid'==_0x101bd2||'formatPainterLicenseKeyExpired'==_0x101bd2||'formatPainterLicenseKeyDomainLimit'==_0x101bd2||'formatPainterLicenseKeyNotAllowed'==_0x101bd2||'formatPainterLicenseKeyEvaluationLimit'==_0x101bd2||'formatPainterLicenseKeyUsageLimit'==_0x101bd2){delete _0x5afdb8[_0x3dc070],_0x509c78=_0x101bd2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x509c78&&_0x5afdb8['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x509c78&&_0x5afdb8['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x509c78&&_0x5afdb8['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x509c78&&_0x5afdb8['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x509c78&&_0x5afdb8['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x509c78&&_0x5afdb8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function p(_0x4308ae,_0x242f10){const t=_0x4308ae['t'];switch(_0x242f10){case'Paint\x20formatting':return t('Paint\x20formatting');case'Copy\x20text\x20formatting':return t('Copy\x20text\x20formatting');case'Paste\x20text\x20formatting':return t('Paste\x20text\x20formatting');case'Continuous\x20painting':return t('Continuous\x20painting');case'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':return t('Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.');case'Formatting\x20copied.':return t('Formatting\x20copied.');case'Pasted\x20formatting.':return t('Pasted\x20formatting.');case'Painting\x20cancelled.':return t('Painting\x20cancelled.');default:return _0x242f10;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
24
- _0x173433(_0x1fc910){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53b60e=this['editor'];_0x53b60e['editing']['view']['addObserver'](_0x49c5b8),_0x53b60e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x53b60e['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x53b60e['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x53b60e['ui']['componentFactory']['add']('formatPainter',_0x524ca3=>{const _0x95b965=_0x36e8da(_0x524ca3,_0x45fb3d),_0x181977=_0x53b60e['commands']['get'](w);_0x95b965['buttonView']['set']({'label':p(_0x53b60e['locale'],'Paint\x20formatting'),'icon':_0x36f6e1,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x95b965['class']='ck-format-painter-dropdown',_0x181977&&(_0x95b965['bind']('isEnabled')['to'](_0x181977,'isEnabled'),this['listenTo'](_0x181977,'change:isEnabled',(_0x2f288c,_0x430b44,_0x7730d4)=>{_0x7730d4||this['_finishPainting']();}),_0x95b965['buttonView']['bind']('isOn')['to'](_0x181977,'value',_0x4354d5=>!!_0x4354d5),this['listenTo'](_0x53b60e,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x181977,'change:value',(_0x574aef,_0x167fd8,_0x1f19ba)=>{this['_toggleSpecialCursor'](!!_0x1f19ba);}));const _0x56fc0e=new _0x31bd27({'withText':!0x0,'label':p(_0x53b60e['locale'],'Continuous\x20painting'),'tooltip':p(_0x53b60e['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x5036ee(_0x95b965,new _0x147bc7([{'type':'switchbutton','model':_0x56fc0e}]),{'role':'menu'});const _0x2f8866=()=>{this['_copyFormatting'](),this['listenTo'](_0x3f4b5b['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x56fc0e['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x95b965,'execute',()=>{_0x56fc0e['isOn']=!_0x56fc0e['isOn'];}),this['listenTo'](_0x95b965['buttonView'],'execute',()=>{_0x53b60e['editing']['view']['focus'](),_0x95b965['buttonView']['isOn']?this['_finishPainting']():_0x2f8866();}),_0x53b60e['keystrokes']['set']('Ctrl+Alt+C',(_0x1fc5a7,_0x12dbb4)=>{_0x2f8866(),_0x56fc0e['isOn']=!0x0,_0x12dbb4();},{'priority':'high'}),_0x53b60e['keystrokes']['set']('Ctrl+Alt+V',(_0x4b1e6c,_0x183af0)=>{_0x95b965['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x56fc0e['isOn']||this['_finishPainting'](),_0x183af0());},{'priority':'high'}),_0x53b60e['keystrokes']['set']('Esc',(_0x1f2fea,_0x549aca)=>{_0x95b965['buttonView']['isOn']&&(_0x56fc0e['isOn']=!0x1,this['_finishPainting'](),_0x53b60e['ui']['ariaLiveAnnouncer']['announce'](p(_0x53b60e['locale'],'Painting\x20cancelled.')),_0x549aca());}),_0x95b965;});}['afterInit'](){!async function(_0x84add){const _0x3d4be5=_0x2fe6c7([0x51,0x69,0x4c,0x52,0x43,0x53,0x4f,0x73,0x5a,0x38,0x70,0x41,0x76,0x44,0x64,0x61,0x50,0x4a,0x55,0x45,0x33,0x6f,0x78,0x6a,0x4b,0x6c,0x7a,0x4d,0x32,0x75,0x58,0x67,0x72,0x74,0x47,0x66,0x65,0x79,0x68,0x35,0x63,0x4e,0x46,0x6b,0x6d,0x42,0x77,0x39,0x49,0x36,0x57,0x48,0x30,0x71,0x6e,0x62,0x34,0x54,0x31,0x37,0x59,0x56]),_0x42c271=0x4597e011,_0x2087e8=0x45906a31^_0x42c271,_0x54d4a7=window[_0x2fe6c7([0x44,0x61,0x74,0x65])][_0x2fe6c7([0x6e,0x6f,0x77])](),_0x4a325d=_0x84add[_0x2fe6c7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe38f84=new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x133791=>{_0x4a325d[_0x2fe6c7([0x6f,0x6e,0x63,0x65])](_0x2fe6c7([0x72,0x65,0x61,0x64,0x79]),_0x133791);}),_0x1016e8={[_0x2fe6c7([0x6b,0x74,0x79])]:_0x2fe6c7([0x45,0x43]),[_0x2fe6c7([0x75,0x73,0x65])]:_0x2fe6c7([0x73,0x69,0x67]),[_0x2fe6c7([0x63,0x72,0x76])]:_0x2fe6c7([0x50,0x2d,0x32,0x35,0x36]),[_0x2fe6c7([0x78])]:_0x2fe6c7([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2fe6c7([0x79])]:_0x2fe6c7([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2fe6c7([0x61,0x6c,0x67])]:_0x2fe6c7([0x45,0x53,0x32,0x35,0x36])},_0x4096a3=_0x4a325d[_0x2fe6c7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fe6c7([0x67,0x65,0x74])](_0x2fe6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x232d2e(){let _0x3b75b4,_0x5c5098=null,_0x1b364f=null;try{if(_0x4096a3==_0x2fe6c7([0x47,0x50,0x4c]))return _0x2fe6c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b75b4=_0x47b881(),!_0x3b75b4)return _0x2fe6c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b75b4[_0x2fe6c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b364f=_0x5dc2c7(_0x3b75b4[_0x2fe6c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b75b4[_0x2fe6c7([0x6a,0x74,0x69])])),await _0x8341fa()?_0x8937f3()?_0x41a44e()?_0x2fe6c7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x486cce()?(_0x3b75b4[_0x2fe6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fe6c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c5098=_0x1b519f(_0x2fe6c7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x304a07()):_0x2fe6c7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe6c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fe6c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2fe6c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41a44e(){const _0xf6cd65=[_0x2fe6c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fe6c7([0x74,0x72,0x69,0x61,0x6c])][_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b75b4[_0x2fe6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54d4a7/0x3e8:0xe10*_0x2087e8;return _0x3b75b4[_0x2fe6c7([0x65,0x78,0x70])]<_0xf6cd65;}function _0x8937f3(){const _0x76e30f=_0x3b75b4[_0x2fe6c7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x76e30f&&(!!_0x76e30f[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe6c7([0x2a]))||(!!_0x76e30f[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe6c7([0x46,0x50]))||(!!_0x76e30f[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe6c7([0x50,0x50]))||!(!_0x76e30f[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe6c7([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4e6700()))));}function _0x486cce(){const _0x3016c4=_0x3b75b4[_0x2fe6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3016c4||0x0==_0x3016c4[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1827bf}=new URL(window[_0x2fe6c7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3016c4[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1827bf))return!0x0;const _0x3068e7=_0x1827bf[_0x2fe6c7([0x73,0x70,0x6c,0x69,0x74])](_0x2fe6c7([0x2e]));return _0x3016c4[_0x2fe6c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x498fbc=>_0x498fbc[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe6c7([0x2a])))[_0x2fe6c7([0x6d,0x61,0x70])](_0x1a2a7f=>_0x1a2a7f[_0x2fe6c7([0x73,0x70,0x6c,0x69,0x74])](_0x2fe6c7([0x2e])))[_0x2fe6c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e412c=>_0x3e412c[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3068e7[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fe6c7([0x6d,0x61,0x70])](_0x4fe021=>Array(_0x3068e7[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4fe021[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fe6c7([0x66,0x69,0x6c,0x6c])](_0x4fe021[0x0]===_0x2fe6c7([0x2a])?_0x2fe6c7([0x2a]):'')[_0x2fe6c7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4fe021))[_0x2fe6c7([0x73,0x6f,0x6d,0x65])](_0x29d5f6=>_0x3068e7[_0x2fe6c7([0x65,0x76,0x65,0x72,0x79])]((_0x34495d,_0x61e1bf)=>_0x29d5f6[_0x61e1bf]===_0x34495d||_0x29d5f6[_0x61e1bf]===_0x2fe6c7([0x2a])));}function _0x304a07(){return _0x5c5098&&_0x1b364f?new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58acce,_0xa0e95d)=>{_0x5c5098[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x58acce,_0xa0e95d),_0x1b364f[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x44889b=>{_0x44889b!=_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64])&&_0x58acce(_0x44889b);},_0xa0e95d);}):_0x5c5098||_0x1b364f||_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5dc2c7(_0x2f90d0,_0x59b103){return new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ebc32=>{if(_0x340ee3())return _0x4ebc32(_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64]));_0x4eb9e9(),_0x4a325d[_0x2fe6c7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fe6c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x75a9b7=!0x1;const _0x37d483=_0x5e4ee5();function _0x30af36(_0x39dfd5){return!!_0x39dfd5&&(typeof _0x39dfd5===_0x2fe6c7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39dfd5===_0x2fe6c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39dfd5[_0x2fe6c7([0x74,0x68,0x65,0x6e])]===_0x2fe6c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39dfd5[_0x2fe6c7([0x63,0x61,0x74,0x63,0x68])]===_0x2fe6c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x514005(_0x1a7dde){_0x19d297(_0x1a7dde)[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x11ea81=>{if(!_0x11ea81||_0x11ea81[_0x2fe6c7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fe6c7([0x6f,0x6b]))return _0x2fe6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x421205(_0x16011a(_0x37d483+_0x59b103))!=_0x11ea81[_0x2fe6c7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fe6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x4eb6fa=>(_0x5eb308(),_0x4eb6fa),()=>{const _0x53adcb=_0x3831b1();return null==_0x53adcb?(_0x5eb308(),_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64])):_0x2fe6c7(_0x54d4a7-_0x53adcb>(0x619b6411^_0x42c271)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x4ebc32)[_0x2fe6c7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ebc32(_0x2fe6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3931db=0x45a10e91^_0x42c271;function _0x5eb308(){const _0x4507d5=_0x2fe6c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x421205(_0x16011a(_0x2f90d0)),_0x4b6031=_0x973c32(_0x421205(window[_0x2fe6c7([0x4d,0x61,0x74,0x68])][_0x2fe6c7([0x63,0x65,0x69,0x6c])](_0x54d4a7/_0x3931db)));window[_0x2fe6c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe6c7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4507d5,_0x4b6031);}function _0x3831b1(){const _0x1be5ea=_0x2fe6c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x421205(_0x16011a(_0x2f90d0)),_0x550616=window[_0x2fe6c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe6c7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1be5ea);return _0x550616?window[_0x2fe6c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x973c32(_0x550616),0x10)*_0x3931db:null;}function _0x19d297(_0x4a0e7b){return new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d4526,_0x3da0f5)=>{_0x4a0e7b[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x4d4526,_0x3da0f5),window[_0x2fe6c7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3da0f5,0x459634d1^_0x42c271);});}}_0x4a325d[_0x2fe6c7([0x6f,0x6e])](_0x2fe6c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38947c,_0x3b51e6)=>{if(_0x3b51e6[0x0]!=_0x2f90d0)return _0x4ebc32(_0x2fe6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b51e6[0x1]={..._0x3b51e6[0x1],[_0x2fe6c7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37d483};},{[_0x2fe6c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe6c7([0x68,0x69,0x67,0x68])}),_0x4a325d[_0x2fe6c7([0x6f,0x6e])](_0x2fe6c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a1788=>{_0x30af36(_0x3a1788[_0x2fe6c7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x75a9b7=!0x0,_0x514005(_0x3a1788[_0x2fe6c7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fe6c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe6c7([0x6c,0x6f,0x77])}),_0xe38f84[_0x2fe6c7([0x74,0x68,0x65,0x6e])](()=>{_0x75a9b7||_0x4ebc32(_0x2fe6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x340ee3(){return _0x4a325d[_0x2fe6c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe6c7([0x76,0x69,0x65,0x77])][_0x2fe6c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fe6c7([0x61,0x75,0x74,0x6f]);}function _0x4eb9e9(){_0x4a325d[_0x2fe6c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe6c7([0x76,0x69,0x65,0x77])][_0x2fe6c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fe6c7([0x61,0x75,0x74,0x6f]);}}function _0x1b519f(_0x4217cd){const _0x57d8c5=[new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149531=>setTimeout(_0x149531,0x459ededd^_0x42c271)),_0xe38f84[_0x2fe6c7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x132320=>{let _0x1aff82=0x0;_0x4a325d[_0x2fe6c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe6c7([0x6f,0x6e])](_0x2fe6c7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35c98a,_0x2093c1)=>{_0x2093c1[0x0][_0x2fe6c7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1aff82++,_0x1aff82==(0x4597e5f9^_0x42c271)&&(_0x132320(),_0x35c98a[_0x2fe6c7([0x6f,0x66,0x66])]());});}))];return window[_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fe6c7([0x72,0x61,0x63,0x65])](_0x57d8c5)[_0x2fe6c7([0x74,0x68,0x65,0x6e])](()=>_0x4217cd);}async function _0x2295a0(){await _0xe38f84,_0x4a325d[_0x2fe6c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe6c7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53ae11,_0x4a325d[_0x2fe6c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe6c7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53ae11,_0x4a325d[_0x2fe6c7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fe6c7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e6700(){return window[_0x2fe6c7([0x67,0x6c,0x6f,0x62])]&&window[_0x2fe6c7([0x67,0x6c,0x6f,0x62])][_0x2fe6c7([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x10eb62(_0x513903){const _0x3625b9=_0x477190();_0x4a325d[_0x3625b9]=_0x2fe6c7([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x513903,_0x513903!=_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64])&&_0x2295a0();}function _0x477190(){const _0x240a73=window[_0x2fe6c7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fe6c7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fe6c7([0x6e,0x6f,0x77])]())[_0x2fe6c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fe6c7([0x2e]),'');let _0x14e3d2=_0x2fe6c7([0x51]);for(let _0x2ca814=0x0;_0x2ca814<_0x240a73[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ca814+=0x2){let _0xf76851=window[_0x2fe6c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x240a73[_0x2fe6c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ca814,_0x2ca814+0x2));_0xf76851>=_0x3d4be5[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf76851-=_0x3d4be5[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14e3d2+=_0x3d4be5[_0xf76851];}return _0x14e3d2;}function _0x47b881(){const _0x4bc547=_0x4096a3[_0x2fe6c7([0x73,0x70,0x6c,0x69,0x74])](_0x2fe6c7([0x2e]));if(0x3!=_0x4bc547[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26c044(_0x4bc547[0x1]);function _0x26c044(_0x37d1cc){const _0x12f626=_0x5bcd62(_0x37d1cc);return _0x12f626&&_0x215003()?_0x12f626:null;function _0x215003(){const _0x3f0aa5=_0x12f626[_0x2fe6c7([0x6a,0x74,0x69])],_0x5448df=window[_0x2fe6c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f0aa5[_0x2fe6c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f0aa5[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x513a2d={..._0x12f626,[_0x2fe6c7([0x6a,0x74,0x69])]:_0x3f0aa5[_0x2fe6c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f0aa5[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x513a2d[_0x2fe6c7([0x76,0x63])],_0x16011a(_0x513a2d)==_0x5448df;}}}async function _0x8341fa(){let _0xaed8e7=!0x0;try{const _0x464192=_0x4096a3[_0x2fe6c7([0x73,0x70,0x6c,0x69,0x74])](_0x2fe6c7([0x2e])),[_0x445149,_0x272510,_0x43047d]=_0x464192;return _0x3c6ddf(_0x445149),await _0x42b7bd(_0x445149,_0x272510,_0x43047d),_0xaed8e7;}catch{return!0x1;}function _0x3c6ddf(_0x36ce07){const _0x408def=_0x5bcd62(_0x36ce07);_0x408def&&_0x408def[_0x2fe6c7([0x61,0x6c,0x67])]==_0x2fe6c7([0x45,0x53,0x32,0x35,0x36])||(_0xaed8e7=!0x1);}async function _0x42b7bd(_0x1ac929,_0x233a33,_0x13d30a){const _0x12ab9c=window[_0x2fe6c7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fe6c7([0x66,0x72,0x6f,0x6d])](_0x1657f0(_0x13d30a),_0x351cea=>_0x351cea[_0x2fe6c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5979ff=new window[(_0x2fe6c7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fe6c7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ac929+_0x2fe6c7([0x2e])+_0x233a33),_0x31eab0=window[_0x2fe6c7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fe6c7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31eab0)return;const _0x41575e=await _0x31eab0[_0x2fe6c7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fe6c7([0x6a,0x77,0x6b]),_0x1016e8,{[_0x2fe6c7([0x6e,0x61,0x6d,0x65])]:_0x2fe6c7([0x45,0x43,0x44,0x53,0x41]),[_0x2fe6c7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fe6c7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fe6c7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31eab0[_0x2fe6c7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fe6c7([0x6e,0x61,0x6d,0x65])]:_0x2fe6c7([0x45,0x43,0x44,0x53,0x41]),[_0x2fe6c7([0x68,0x61,0x73,0x68])]:{[_0x2fe6c7([0x6e,0x61,0x6d,0x65])]:_0x2fe6c7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41575e,_0x12ab9c,_0x5979ff)||(_0xaed8e7=!0x1);}}function _0x5bcd62(_0x474cfb){return _0x474cfb[_0x2fe6c7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fe6c7([0x65,0x79]))?JSON[_0x2fe6c7([0x70,0x61,0x72,0x73,0x65])](_0x1657f0(_0x474cfb)):null;}function _0x1657f0(_0x5e5938){return window[_0x2fe6c7([0x61,0x74,0x6f,0x62])](_0x5e5938[_0x2fe6c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fe6c7([0x2b]))[_0x2fe6c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fe6c7([0x2f])));}function _0x16011a(_0x5ab6ec){let _0x1400c6=0x1505;function _0x419c5d(_0x4b9f0b){for(let _0x413f95=0x0;_0x413f95<_0x4b9f0b[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x413f95++){const _0x3ecc46=_0x4b9f0b[_0x2fe6c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x413f95);_0x1400c6=(_0x1400c6<<0x5)+_0x1400c6+_0x3ecc46,_0x1400c6&=_0x1400c6;}}function _0x370d43(_0x36ff67){Array[_0x2fe6c7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36ff67)?_0x36ff67[_0x2fe6c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x370d43):_0x36ff67&&typeof _0x36ff67==_0x2fe6c7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fe6c7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36ff67)[_0x2fe6c7([0x73,0x6f,0x72,0x74])]()[_0x2fe6c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3da67f,_0x1228a7])=>{_0x419c5d(_0x3da67f),_0x370d43(_0x1228a7);}):_0x419c5d(window[_0x2fe6c7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36ff67));}return _0x370d43(_0x5ab6ec),_0x1400c6>>>0x0;}function _0x421205(_0x55b050){return _0x55b050[_0x2fe6c7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fe6c7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fe6c7([0x30]));}function _0x973c32(_0x39a869){return _0x39a869[_0x2fe6c7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fe6c7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fe6c7([0x6a,0x6f,0x69,0x6e])]('');}function _0x53ae11(){}function _0x2fe6c7(_0x57c83b){return _0x57c83b['map'](_0x4b9781=>String['fromCharCode'](_0x4b9781))['join']('');}_0x10eb62(await _0x232d2e());}(this);}['_toggleSpecialCursor'](_0x431035){this['editor']['editing']['view']['change'](_0x2cb804=>{for(const _0x8b57c of this['editor']['editing']['view']['document']['roots'])_0x431035?_0x2cb804['addClass'](h,_0x8b57c):_0x2cb804['removeClass'](h,_0x8b57c);});}['_copyFormatting'](){const {editor:_0x574bea}=this;_0x574bea['execute'](w),_0x574bea['ui']['ariaLiveAnnouncer']['announce'](p(_0x574bea['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x12a4dd}=this,_0x1e75a5=_0x12a4dd['commands']['get'](w)['value'];_0x12a4dd['execute'](g,_0x1e75a5),_0x12a4dd['ui']['ariaLiveAnnouncer']['announce'](p(_0x12a4dd['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x3f4b5b['window']['document'],'mouseup');}}class FormatPainter extends _0x1fc910{static get['requires'](){return[FormatPainterEditing,FormatPainterUI];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CopyFormatCommand,FormatPainter,FormatPainterEditing,FormatPainterUI,PasteFormatCommand};
23
+ import{Command as _0x4b6260,Plugin as _0x1e9f7e}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0x1ab786}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x11b490,SplitButtonView as _0x2fefb6,UIModel as _0x233ceb,addListToDropdown as _0x47c9a6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x56180d,Collection as _0x40afea,global as _0x48532a,uid as _0x4949d7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x10f869}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x22684d}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';class CopyFormatCommand extends _0x4b6260{constructor(_0x3fe8ed){super(_0x3fe8ed),this['value']=void 0x0,this['on']('change:isEnabled',(_0x5ce301,_0x376a57,_0x5c4342)=>{_0x5c4342||this['reset']();}),this['on']('change:value',()=>_0x3fe8ed['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x1cfa43=this['editor']['model'],_0x4b1b50=_0x1cfa43['document']['selection'];return Object['fromEntries'](Array['from'](_0x4b1b50['getAttributes']())['filter'](([_0x11ebbf])=>_0x1cfa43['schema']['getAttributeProperties'](_0x11ebbf)['isFormatting']));}}class PasteFormatCommand extends _0x4b6260{constructor(_0x52638a){super(_0x52638a),this['_removeFormatCommand']=new _0x1ab786(_0x52638a);}['execute'](_0x14450e={}){const _0x309d39=this['editor']['model'],_0x1b4068=_0x309d39['document']['selection'],_0x178661=Array['from'](_0x1b4068['getRanges']()),_0x3e9813=_0x1b4068['isCollapsed']?[this['_createRangeOnEntireWord'](_0x309d39,_0x1b4068)]:_0x178661;_0x309d39['change'](_0x8c588d=>{_0x8c588d['setSelection'](_0x3e9813),this['_removeFormatCommand']['execute']();for(const _0x33f3b7 in _0x14450e)for(const _0x1b037d of _0x309d39['schema']['getValidRanges'](_0x3e9813,_0x33f3b7))_0x8c588d['setAttribute'](_0x33f3b7,_0x14450e[_0x33f3b7],_0x1b037d);_0x8c588d['setSelection'](_0x178661);});}['_createRangeOnEntireWord'](_0x4fe480,_0x507b61){const _0x1969ac=_0x4fe480['createSelection'](_0x507b61);_0x4fe480['modifySelection'](_0x1969ac,{'unit':'word','direction':'backward'});const _0x35346e=_0x1969ac['getFirstPosition']();_0x4fe480['modifySelection'](_0x1969ac,{'unit':'word','direction':'forward'});const _0x3bdedb=_0x1969ac['getLastPosition']();return _0x4fe480['createRange'](_0x35346e,_0x3bdedb);}}class FormatPainterEditing extends _0x1e9f7e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4cc97a=this['editor'];_0x4cc97a['commands']['add'](w,new CopyFormatCommand(_0x4cc97a)),_0x4cc97a['commands']['add'](g,new PasteFormatCommand(_0x4cc97a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x283a77=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40d55e;for(const _0x16bff3 in _0x283a77){const _0x26389b=_0x16bff3,_0x568d6e=_0x283a77[_0x26389b];if('formatPainterLicenseKeyValid'==_0x568d6e||'formatPainterLicenseKeyInvalid'==_0x568d6e||'formatPainterLicenseKeyExpired'==_0x568d6e||'formatPainterLicenseKeyDomainLimit'==_0x568d6e||'formatPainterLicenseKeyNotAllowed'==_0x568d6e||'formatPainterLicenseKeyEvaluationLimit'==_0x568d6e||'formatPainterLicenseKeyUsageLimit'==_0x568d6e){delete _0x283a77[_0x26389b],_0x40d55e=_0x568d6e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x40d55e&&_0x283a77['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x40d55e&&_0x283a77['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x40d55e&&_0x283a77['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x40d55e&&_0x283a77['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x40d55e&&_0x283a77['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x40d55e&&_0x283a77['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function p(_0x4f069f,_0x444f94){const t=_0x4f069f['t'];switch(_0x444f94){case'Paint\x20formatting':return t('Paint\x20formatting');case'Copy\x20text\x20formatting':return t('Copy\x20text\x20formatting');case'Paste\x20text\x20formatting':return t('Paste\x20text\x20formatting');case'Continuous\x20painting':return t('Continuous\x20painting');case'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':return t('Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.');case'Formatting\x20copied.':return t('Formatting\x20copied.');case'Pasted\x20formatting.':return t('Pasted\x20formatting.');case'Painting\x20cancelled.':return t('Painting\x20cancelled.');default:return _0x444f94;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
24
+ _0x56180d(_0x1e9f7e){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2234b5=this['editor'];_0x2234b5['editing']['view']['addObserver'](_0x10f869),_0x2234b5['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x2234b5['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x2234b5['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x2234b5['ui']['componentFactory']['add']('formatPainter',_0xa3a43f=>{const _0x1d65d5=_0x11b490(_0xa3a43f,_0x2fefb6),_0xdf56ad=_0x2234b5['commands']['get'](w);_0x1d65d5['buttonView']['set']({'label':p(_0x2234b5['locale'],'Paint\x20formatting'),'icon':_0x22684d,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x1d65d5['class']='ck-format-painter-dropdown',_0xdf56ad&&(_0x1d65d5['bind']('isEnabled')['to'](_0xdf56ad,'isEnabled'),this['listenTo'](_0xdf56ad,'change:isEnabled',(_0x37ac00,_0x429677,_0xd9d8eb)=>{_0xd9d8eb||this['_finishPainting']();}),_0x1d65d5['buttonView']['bind']('isOn')['to'](_0xdf56ad,'value',_0x4614cb=>!!_0x4614cb),this['listenTo'](_0x2234b5,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0xdf56ad,'change:value',(_0x84d84c,_0x46f29e,_0x45a511)=>{this['_toggleSpecialCursor'](!!_0x45a511);}));const _0x26d73d=new _0x233ceb({'withText':!0x0,'label':p(_0x2234b5['locale'],'Continuous\x20painting'),'tooltip':p(_0x2234b5['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x47c9a6(_0x1d65d5,new _0x40afea([{'type':'switchbutton','model':_0x26d73d}]),{'role':'menu'});const _0x165ca2=()=>{this['_copyFormatting'](),this['listenTo'](_0x48532a['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x26d73d['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x1d65d5,'execute',()=>{_0x26d73d['isOn']=!_0x26d73d['isOn'];}),this['listenTo'](_0x1d65d5['buttonView'],'execute',()=>{_0x2234b5['editing']['view']['focus'](),_0x1d65d5['buttonView']['isOn']?this['_finishPainting']():_0x165ca2();}),_0x2234b5['keystrokes']['set']('Ctrl+Alt+C',(_0x33bb33,_0x20fa9f)=>{_0x165ca2(),_0x26d73d['isOn']=!0x0,_0x20fa9f();},{'priority':'high'}),_0x2234b5['keystrokes']['set']('Ctrl+Alt+V',(_0x389246,_0x8464bc)=>{_0x1d65d5['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x26d73d['isOn']||this['_finishPainting'](),_0x8464bc());},{'priority':'high'}),_0x2234b5['keystrokes']['set']('Esc',(_0x4c4c17,_0x483b39)=>{_0x1d65d5['buttonView']['isOn']&&(_0x26d73d['isOn']=!0x1,this['_finishPainting'](),_0x2234b5['ui']['ariaLiveAnnouncer']['announce'](p(_0x2234b5['locale'],'Painting\x20cancelled.')),_0x483b39());}),_0x1d65d5;});}['afterInit'](){!async function(_0x1b6a4d){const _0x2c1afd=_0x11a551([0x51,0x69,0x4c,0x52,0x43,0x53,0x4f,0x73,0x5a,0x38,0x70,0x41,0x76,0x44,0x64,0x61,0x50,0x4a,0x55,0x45,0x33,0x6f,0x78,0x6a,0x4b,0x6c,0x7a,0x4d,0x32,0x75,0x58,0x67,0x72,0x74,0x47,0x66,0x65,0x79,0x68,0x35,0x63,0x4e,0x46,0x6b,0x6d,0x42,0x77,0x39,0x49,0x36,0x57,0x48,0x30,0x71,0x6e,0x62,0x34,0x54,0x31,0x37,0x59,0x56]),_0x285e16=0x4597e011,_0x372a75=0x45906a41^_0x285e16,_0x10c600=window[_0x11a551([0x44,0x61,0x74,0x65])][_0x11a551([0x6e,0x6f,0x77])](),_0x2ae282=_0x1b6a4d[_0x11a551([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d49f9=new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x299940=>{_0x2ae282[_0x11a551([0x6f,0x6e,0x63,0x65])](_0x11a551([0x72,0x65,0x61,0x64,0x79]),_0x299940);}),_0x4729c1={[_0x11a551([0x6b,0x74,0x79])]:_0x11a551([0x45,0x43]),[_0x11a551([0x75,0x73,0x65])]:_0x11a551([0x73,0x69,0x67]),[_0x11a551([0x63,0x72,0x76])]:_0x11a551([0x50,0x2d,0x32,0x35,0x36]),[_0x11a551([0x78])]:_0x11a551([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x11a551([0x79])]:_0x11a551([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x11a551([0x61,0x6c,0x67])]:_0x11a551([0x45,0x53,0x32,0x35,0x36])},_0x373f1c=_0x2ae282[_0x11a551([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11a551([0x67,0x65,0x74])](_0x11a551([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6bebc6(){let _0x51b594,_0x13239a=null,_0xc023e1=null;try{if(_0x373f1c==_0x11a551([0x47,0x50,0x4c]))return _0x11a551([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51b594=_0x2cdc0f(),!_0x51b594)return _0x11a551([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51b594[_0x11a551([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc023e1=_0x3ff83f(_0x51b594[_0x11a551([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51b594[_0x11a551([0x6a,0x74,0x69])])),await _0x48cd69()?_0x153e05()?_0x2f2af3()?_0x11a551([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47050f()?(_0x51b594[_0x11a551([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11a551([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x13239a=_0x5e000f(_0x11a551([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4179ae()):_0x11a551([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11a551([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11a551([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11a551([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f2af3(){const _0x2b0a52=[_0x11a551([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11a551([0x74,0x72,0x69,0x61,0x6c])][_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51b594[_0x11a551([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10c600/0x3e8:0xe10*_0x372a75;return _0x51b594[_0x11a551([0x65,0x78,0x70])]<_0x2b0a52;}function _0x153e05(){const _0x4e682f=_0x51b594[_0x11a551([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e682f&&(!!_0x4e682f[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a551([0x2a]))||(!!_0x4e682f[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a551([0x46,0x50]))||(!!_0x4e682f[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a551([0x50,0x50]))||!(!_0x4e682f[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a551([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x54b838()))));}function _0x47050f(){const _0xf31999=_0x51b594[_0x11a551([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf31999||0x0==_0xf31999[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2048f1}=new URL(window[_0x11a551([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf31999[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2048f1))return!0x0;const _0x103b9f=_0x2048f1[_0x11a551([0x73,0x70,0x6c,0x69,0x74])](_0x11a551([0x2e]));return _0xf31999[_0x11a551([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d4e52=>_0x2d4e52[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a551([0x2a])))[_0x11a551([0x6d,0x61,0x70])](_0x480696=>_0x480696[_0x11a551([0x73,0x70,0x6c,0x69,0x74])](_0x11a551([0x2e])))[_0x11a551([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b6eca=>_0x2b6eca[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x103b9f[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a551([0x6d,0x61,0x70])](_0x441f5d=>Array(_0x103b9f[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x441f5d[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a551([0x66,0x69,0x6c,0x6c])](_0x441f5d[0x0]===_0x11a551([0x2a])?_0x11a551([0x2a]):'')[_0x11a551([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x441f5d))[_0x11a551([0x73,0x6f,0x6d,0x65])](_0x1aa7fb=>_0x103b9f[_0x11a551([0x65,0x76,0x65,0x72,0x79])]((_0x2d5245,_0x2f4e22)=>_0x1aa7fb[_0x2f4e22]===_0x2d5245||_0x1aa7fb[_0x2f4e22]===_0x11a551([0x2a])));}function _0x4179ae(){return _0x13239a&&_0xc023e1?new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x278fc5,_0x127e61)=>{_0x13239a[_0x11a551([0x74,0x68,0x65,0x6e])](_0x278fc5,_0x127e61),_0xc023e1[_0x11a551([0x74,0x68,0x65,0x6e])](_0x5435d1=>{_0x5435d1!=_0x11a551([0x56,0x61,0x6c,0x69,0x64])&&_0x278fc5(_0x5435d1);},_0x127e61);}):_0x13239a||_0xc023e1||_0x11a551([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ff83f(_0x5781b5,_0x354380){return new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7ebab6=>{if(_0x17a0d0())return _0x7ebab6(_0x11a551([0x56,0x61,0x6c,0x69,0x64]));_0x58f0f9(),_0x2ae282[_0x11a551([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11a551([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50fd66=!0x1;const _0x4fcfdc=_0x4949d7();function _0x52fa93(_0x4a9280){return!!_0x4a9280&&(typeof _0x4a9280===_0x11a551([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a9280===_0x11a551([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a9280[_0x11a551([0x74,0x68,0x65,0x6e])]===_0x11a551([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a9280[_0x11a551([0x63,0x61,0x74,0x63,0x68])]===_0x11a551([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b309d(_0x3a67d8){_0x5c1844(_0x3a67d8)[_0x11a551([0x74,0x68,0x65,0x6e])](_0x13f656=>{if(!_0x13f656||_0x13f656[_0x11a551([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11a551([0x6f,0x6b]))return _0x11a551([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7b0d05(_0x5659be(_0x4fcfdc+_0x354380))!=_0x13f656[_0x11a551([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11a551([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11a551([0x56,0x61,0x6c,0x69,0x64]);})[_0x11a551([0x74,0x68,0x65,0x6e])](_0x5d1ec7=>(_0x9089e4(),_0x5d1ec7),()=>{const _0x25a3b5=_0x3c4e74();return null==_0x25a3b5?(_0x9089e4(),_0x11a551([0x56,0x61,0x6c,0x69,0x64])):_0x11a551(_0x10c600-_0x25a3b5>(0x619b6411^_0x285e16)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11a551([0x74,0x68,0x65,0x6e])](_0x7ebab6)[_0x11a551([0x63,0x61,0x74,0x63,0x68])](()=>{_0x7ebab6(_0x11a551([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x257538=0x45a10e91^_0x285e16;function _0x9089e4(){const _0x3e66bc=_0x11a551([0x6c,0x6c,0x63,0x74,0x2d])+_0x7b0d05(_0x5659be(_0x5781b5)),_0x14a88a=_0x1027d7(_0x7b0d05(window[_0x11a551([0x4d,0x61,0x74,0x68])][_0x11a551([0x63,0x65,0x69,0x6c])](_0x10c600/_0x257538)));window[_0x11a551([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a551([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e66bc,_0x14a88a);}function _0x3c4e74(){const _0x5a0e13=_0x11a551([0x6c,0x6c,0x63,0x74,0x2d])+_0x7b0d05(_0x5659be(_0x5781b5)),_0x4c5ff6=window[_0x11a551([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a551([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a0e13);return _0x4c5ff6?window[_0x11a551([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1027d7(_0x4c5ff6),0x10)*_0x257538:null;}function _0x5c1844(_0x2b4b61){return new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28d155,_0xccd58b)=>{_0x2b4b61[_0x11a551([0x74,0x68,0x65,0x6e])](_0x28d155,_0xccd58b),window[_0x11a551([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xccd58b,0x459634d1^_0x285e16);});}}_0x2ae282[_0x11a551([0x6f,0x6e])](_0x11a551([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5740a5,_0x37f03f)=>{if(_0x37f03f[0x0]!=_0x5781b5)return _0x7ebab6(_0x11a551([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37f03f[0x1]={..._0x37f03f[0x1],[_0x11a551([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4fcfdc};},{[_0x11a551([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a551([0x68,0x69,0x67,0x68])}),_0x2ae282[_0x11a551([0x6f,0x6e])](_0x11a551([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x150023=>{_0x52fa93(_0x150023[_0x11a551([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50fd66=!0x0,_0x3b309d(_0x150023[_0x11a551([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11a551([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a551([0x6c,0x6f,0x77])}),_0x4d49f9[_0x11a551([0x74,0x68,0x65,0x6e])](()=>{_0x50fd66||_0x7ebab6(_0x11a551([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17a0d0(){return _0x2ae282[_0x11a551([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a551([0x76,0x69,0x65,0x77])][_0x11a551([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11a551([0x61,0x75,0x74,0x6f]);}function _0x58f0f9(){_0x2ae282[_0x11a551([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a551([0x76,0x69,0x65,0x77])][_0x11a551([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11a551([0x61,0x75,0x74,0x6f]);}}function _0x5e000f(_0x40a3f4){const _0x1e58d3=[new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2640e4=>setTimeout(_0x2640e4,0x459ededd^_0x285e16)),_0x4d49f9[_0x11a551([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x544215=>{let _0x2608cb=0x0;_0x2ae282[_0x11a551([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a551([0x6f,0x6e])](_0x11a551([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe5f5c2,_0x4ee51b)=>{_0x4ee51b[0x0][_0x11a551([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2608cb++,_0x2608cb==(0x4597e5f9^_0x285e16)&&(_0x544215(),_0xe5f5c2[_0x11a551([0x6f,0x66,0x66])]());});}))];return window[_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11a551([0x72,0x61,0x63,0x65])](_0x1e58d3)[_0x11a551([0x74,0x68,0x65,0x6e])](()=>_0x40a3f4);}async function _0x401a48(){await _0x4d49f9,_0x2ae282[_0x11a551([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a551([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48b9d3,_0x2ae282[_0x11a551([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a551([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48b9d3,_0x2ae282[_0x11a551([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11a551([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54b838(){return window[_0x11a551([0x67,0x6c,0x6f,0x62])]&&window[_0x11a551([0x67,0x6c,0x6f,0x62])][_0x11a551([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4dfeb7(_0xecb980){const _0x54cb49=_0x1ed184();_0x2ae282[_0x54cb49]=_0x11a551([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xecb980,_0xecb980!=_0x11a551([0x56,0x61,0x6c,0x69,0x64])&&_0x401a48();}function _0x1ed184(){const _0x509c39=window[_0x11a551([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11a551([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11a551([0x6e,0x6f,0x77])]())[_0x11a551([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11a551([0x2e]),'');let _0x24c7e6=_0x11a551([0x51]);for(let _0x3e5ccc=0x0;_0x3e5ccc<_0x509c39[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e5ccc+=0x2){let _0x30e5d4=window[_0x11a551([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x509c39[_0x11a551([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e5ccc,_0x3e5ccc+0x2));_0x30e5d4>=_0x2c1afd[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30e5d4-=_0x2c1afd[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24c7e6+=_0x2c1afd[_0x30e5d4];}return _0x24c7e6;}function _0x2cdc0f(){const _0xf8ecca=_0x373f1c[_0x11a551([0x73,0x70,0x6c,0x69,0x74])](_0x11a551([0x2e]));if(0x3!=_0xf8ecca[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57dabe(_0xf8ecca[0x1]);function _0x57dabe(_0x34b1dc){const _0x3f5f28=_0x1c300d(_0x34b1dc);return _0x3f5f28&&_0x1fb161()?_0x3f5f28:null;function _0x1fb161(){const _0x74dd11=_0x3f5f28[_0x11a551([0x6a,0x74,0x69])],_0x43d22c=window[_0x11a551([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x74dd11[_0x11a551([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x74dd11[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x244167={..._0x3f5f28,[_0x11a551([0x6a,0x74,0x69])]:_0x74dd11[_0x11a551([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x74dd11[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x244167[_0x11a551([0x76,0x63])],_0x5659be(_0x244167)==_0x43d22c;}}}async function _0x48cd69(){let _0x346230=!0x0;try{const _0x3cc4e2=_0x373f1c[_0x11a551([0x73,0x70,0x6c,0x69,0x74])](_0x11a551([0x2e])),[_0x2ab652,_0x2c4de3,_0x3ef27e]=_0x3cc4e2;return _0x32456f(_0x2ab652),await _0x4bb343(_0x2ab652,_0x2c4de3,_0x3ef27e),_0x346230;}catch{return!0x1;}function _0x32456f(_0x10318a){const _0x19dd6b=_0x1c300d(_0x10318a);_0x19dd6b&&_0x19dd6b[_0x11a551([0x61,0x6c,0x67])]==_0x11a551([0x45,0x53,0x32,0x35,0x36])||(_0x346230=!0x1);}async function _0x4bb343(_0x5c5a7c,_0xff04b2,_0x584261){const _0x2cc740=window[_0x11a551([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11a551([0x66,0x72,0x6f,0x6d])](_0x52568d(_0x584261),_0x181dad=>_0x181dad[_0x11a551([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ecd24=new window[(_0x11a551([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11a551([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c5a7c+_0x11a551([0x2e])+_0xff04b2),_0x5ae7c6=window[_0x11a551([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11a551([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ae7c6)return;const _0x15a993=await _0x5ae7c6[_0x11a551([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11a551([0x6a,0x77,0x6b]),_0x4729c1,{[_0x11a551([0x6e,0x61,0x6d,0x65])]:_0x11a551([0x45,0x43,0x44,0x53,0x41]),[_0x11a551([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11a551([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11a551([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ae7c6[_0x11a551([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11a551([0x6e,0x61,0x6d,0x65])]:_0x11a551([0x45,0x43,0x44,0x53,0x41]),[_0x11a551([0x68,0x61,0x73,0x68])]:{[_0x11a551([0x6e,0x61,0x6d,0x65])]:_0x11a551([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15a993,_0x2cc740,_0x2ecd24)||(_0x346230=!0x1);}}function _0x1c300d(_0x4ee988){return _0x4ee988[_0x11a551([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11a551([0x65,0x79]))?JSON[_0x11a551([0x70,0x61,0x72,0x73,0x65])](_0x52568d(_0x4ee988)):null;}function _0x52568d(_0x2cefd2){return window[_0x11a551([0x61,0x74,0x6f,0x62])](_0x2cefd2[_0x11a551([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11a551([0x2b]))[_0x11a551([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11a551([0x2f])));}function _0x5659be(_0x10d064){let _0x5121b6=0x1505;function _0x314c8a(_0x6da6a9){for(let _0x57266b=0x0;_0x57266b<_0x6da6a9[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57266b++){const _0x44b961=_0x6da6a9[_0x11a551([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57266b);_0x5121b6=(_0x5121b6<<0x5)+_0x5121b6+_0x44b961,_0x5121b6&=_0x5121b6;}}function _0x58560e(_0x2fed0f){Array[_0x11a551([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fed0f)?_0x2fed0f[_0x11a551([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58560e):_0x2fed0f&&typeof _0x2fed0f==_0x11a551([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11a551([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fed0f)[_0x11a551([0x73,0x6f,0x72,0x74])]()[_0x11a551([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x480d0a,_0x5dd6ee])=>{_0x314c8a(_0x480d0a),_0x58560e(_0x5dd6ee);}):_0x314c8a(window[_0x11a551([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fed0f));}return _0x58560e(_0x10d064),_0x5121b6>>>0x0;}function _0x7b0d05(_0x142bfb){return _0x142bfb[_0x11a551([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11a551([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11a551([0x30]));}function _0x1027d7(_0x5ec4cb){return _0x5ec4cb[_0x11a551([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11a551([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11a551([0x6a,0x6f,0x69,0x6e])]('');}function _0x48b9d3(){}function _0x11a551(_0xfb4a8a){return _0xfb4a8a['map'](_0x52078e=>String['fromCharCode'](_0x52078e))['join']('');}_0x4dfeb7(await _0x6bebc6());}(this);}['_toggleSpecialCursor'](_0x262692){this['editor']['editing']['view']['change'](_0x50b2c1=>{for(const _0x1f73a4 of this['editor']['editing']['view']['document']['roots'])_0x262692?_0x50b2c1['addClass'](h,_0x1f73a4):_0x50b2c1['removeClass'](h,_0x1f73a4);});}['_copyFormatting'](){const {editor:_0xf264f8}=this;_0xf264f8['execute'](w),_0xf264f8['ui']['ariaLiveAnnouncer']['announce'](p(_0xf264f8['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x3ffc6b}=this,_0x35e445=_0x3ffc6b['commands']['get'](w)['value'];_0x3ffc6b['execute'](g,_0x35e445),_0x3ffc6b['ui']['ariaLiveAnnouncer']['announce'](p(_0x3ffc6b['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x48532a['window']['document'],'mouseup');}}class FormatPainter extends _0x1e9f7e{static get['requires'](){return[FormatPainterEditing,FormatPainterUI];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CopyFormatCommand,FormatPainter,FormatPainterEditing,FormatPainterUI,PasteFormatCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-format-painter",
3
- "version": "48.8.1-alpha.0",
3
+ "version": "48.8.1-alpha.2",
4
4
  "description": "Format painter feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,12 +21,12 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.0",
25
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.0",
26
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.0",
27
- "@ckeditor/ckeditor5-remove-format": "48.8.1-alpha.0",
28
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.0",
29
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.0"
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.2",
25
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
26
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
27
+ "@ckeditor/ckeditor5-remove-format": "48.8.1-alpha.2",
28
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
29
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2"
30
30
  },
31
31
  "files": [
32
32
  "dist",