@ckeditor/ckeditor5-format-painter 48.0.0-alpha.0 → 48.0.0-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 _0x5a5192,Plugin as _0x593e4e}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0x12e0ae}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x428ac,SplitButtonView as _0xd2c12c,UIModel as _0xc554e1,addListToDropdown as _0x137f1f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x51c3af,Collection as _0x4cb69e,global as _0x449c58,uid as _0x53d5e3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x385422}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x2cfd42}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',h='pasteFormat',g='ck-format-painter-active';class p extends _0x5a5192{constructor(_0x255208){super(_0x255208),this['value']=void 0x0,this['on']('change:isEnabled',(_0x3c0099,_0x214d12,_0x3c1f73)=>{_0x3c1f73||this['reset']();}),this['on']('change:value',()=>_0x255208['commands']['get'](h)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x110340=this['editor']['model'],_0x51e6e7=_0x110340['document']['selection'];return Object['fromEntries'](Array['from'](_0x51e6e7['getAttributes']())['filter'](([_0x554f8f])=>_0x110340['schema']['getAttributeProperties'](_0x554f8f)['isFormatting']));}}class y extends _0x5a5192{constructor(_0x167740){super(_0x167740),this['_removeFormatCommand']=new _0x12e0ae(_0x167740);}['execute'](_0x1d698d={}){const _0x5acbc9=this['editor']['model'],_0x5ec8e0=_0x5acbc9['document']['selection'],_0x3e874d=Array['from'](_0x5ec8e0['getRanges']()),_0x45a8d8=_0x5ec8e0['isCollapsed']?[this['_createRangeOnEntireWord'](_0x5acbc9,_0x5ec8e0)]:_0x3e874d;_0x5acbc9['change'](_0x378c52=>{_0x378c52['setSelection'](_0x45a8d8),this['_removeFormatCommand']['execute']();for(const _0x51c101 in _0x1d698d)for(const _0x28f04e of _0x5acbc9['schema']['getValidRanges'](_0x45a8d8,_0x51c101))_0x378c52['setAttribute'](_0x51c101,_0x1d698d[_0x51c101],_0x28f04e);_0x378c52['setSelection'](_0x3e874d);});}['_createRangeOnEntireWord'](_0x214032,_0x5c0dac){const _0x47fffd=_0x214032['createSelection'](_0x5c0dac);_0x214032['modifySelection'](_0x47fffd,{'unit':'word','direction':'backward'});const _0x909875=_0x47fffd['getFirstPosition']();_0x214032['modifySelection'](_0x47fffd,{'unit':'word','direction':'forward'});const _0x21b79f=_0x47fffd['getLastPosition']();return _0x214032['createRange'](_0x909875,_0x21b79f);}}class P extends _0x593e4e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43eb5e=this['editor'];_0x43eb5e['commands']['add'](w,new p(_0x43eb5e)),_0x43eb5e['commands']['add'](h,new y(_0x43eb5e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x15783f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x298f8a;for(const _0x1f3b8d in _0x15783f){const _0x57e818=_0x1f3b8d,_0x34ac90=_0x15783f[_0x57e818];if('formatPainterLicenseKeyValid'==_0x34ac90||'formatPainterLicenseKeyInvalid'==_0x34ac90||'formatPainterLicenseKeyExpired'==_0x34ac90||'formatPainterLicenseKeyDomainLimit'==_0x34ac90||'formatPainterLicenseKeyNotAllowed'==_0x34ac90||'formatPainterLicenseKeyEvaluationLimit'==_0x34ac90||'formatPainterLicenseKeyUsageLimit'==_0x34ac90){delete _0x15783f[_0x57e818],_0x298f8a=_0x34ac90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x298f8a&&_0x15783f['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x298f8a&&_0x15783f['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x298f8a&&_0x15783f['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x298f8a&&_0x15783f['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x298f8a&&_0x15783f['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x298f8a&&_0x15783f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x562d4c,_0x183fee){const t=_0x562d4c['t'];switch(_0x183fee){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.');default:return _0x183fee;}}class k extends/* #__PURE__ -- @preserve */
24
- _0x51c3af(_0x593e4e){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4eb3a2=this['editor'];_0x4eb3a2['editing']['view']['addObserver'](_0x385422),_0x4eb3a2['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':x(_0x4eb3a2['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':x(_0x4eb3a2['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x4eb3a2['ui']['componentFactory']['add']('formatPainter',_0x4e9e96=>{const _0x3780b4=_0x428ac(_0x4e9e96,_0xd2c12c),_0x2ea898=_0x4eb3a2['commands']['get'](w);_0x3780b4['buttonView']['set']({'label':x(_0x4eb3a2['locale'],'Paint\x20formatting'),'icon':_0x2cfd42,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x3780b4['class']='ck-format-painter-dropdown',_0x2ea898&&(_0x3780b4['bind']('isEnabled')['to'](_0x2ea898,'isEnabled'),this['listenTo'](_0x2ea898,'change:isEnabled',(_0x19a108,_0x597769,_0x2845b5)=>{_0x2845b5||this['_finishPainting']();}),_0x3780b4['buttonView']['bind']('isOn')['to'](_0x2ea898,'value',_0x2d6eac=>!!_0x2d6eac),this['listenTo'](_0x4eb3a2,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x2ea898,'change:value',(_0x38fa57,_0x5c2548,_0xee86f7)=>{this['_toggleSpecialCursor'](!!_0xee86f7);}));const _0x2367c6=new _0xc554e1({'withText':!0x0,'label':x(_0x4eb3a2['locale'],'Continuous\x20painting'),'tooltip':x(_0x4eb3a2['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x137f1f(_0x3780b4,new _0x4cb69e([{'type':'switchbutton','model':_0x2367c6}]),{'role':'menu'});const _0x878f2d=()=>{this['_copyFormatting'](),this['listenTo'](_0x449c58['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x2367c6['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x3780b4,'execute',()=>{_0x2367c6['isOn']=!_0x2367c6['isOn'];}),this['listenTo'](_0x3780b4['buttonView'],'execute',()=>{_0x4eb3a2['editing']['view']['focus'](),_0x3780b4['buttonView']['isOn']?this['_finishPainting']():_0x878f2d();}),_0x4eb3a2['keystrokes']['set']('Ctrl+Alt+C',(_0x51905c,_0x2c5b11)=>{_0x878f2d(),_0x2367c6['isOn']=!0x0,_0x2c5b11();},{'priority':'high'}),_0x4eb3a2['keystrokes']['set']('Ctrl+Alt+V',(_0x220e0f,_0x3f9c3c)=>{_0x3780b4['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x2367c6['isOn']||this['_finishPainting'](),_0x3f9c3c());},{'priority':'high'}),_0x4eb3a2['keystrokes']['set']('Esc',(_0x118f73,_0x23260c)=>{_0x3780b4['buttonView']['isOn']&&(_0x2367c6['isOn']=!0x1,this['_finishPainting'](),_0x23260c());}),_0x3780b4;});}['afterInit'](){!async function(_0x24db81){const _0x4c194d=_0x10ae8c([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]),_0x1f1482=0x4597e011,_0x467120=0x459064d9^_0x1f1482,_0x5978dd=window[_0x10ae8c([0x44,0x61,0x74,0x65])][_0x10ae8c([0x6e,0x6f,0x77])](),_0x5174e2=_0x24db81[_0x10ae8c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3dca92=new window[(_0x10ae8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5800c6=>{_0x5174e2[_0x10ae8c([0x6f,0x6e,0x63,0x65])](_0x10ae8c([0x72,0x65,0x61,0x64,0x79]),_0x5800c6);}),_0x2b3f7c={[_0x10ae8c([0x6b,0x74,0x79])]:_0x10ae8c([0x45,0x43]),[_0x10ae8c([0x75,0x73,0x65])]:_0x10ae8c([0x73,0x69,0x67]),[_0x10ae8c([0x63,0x72,0x76])]:_0x10ae8c([0x50,0x2d,0x32,0x35,0x36]),[_0x10ae8c([0x78])]:_0x10ae8c([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]),[_0x10ae8c([0x79])]:_0x10ae8c([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]),[_0x10ae8c([0x61,0x6c,0x67])]:_0x10ae8c([0x45,0x53,0x32,0x35,0x36])},_0xab5ed0=_0x5174e2[_0x10ae8c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10ae8c([0x67,0x65,0x74])](_0x10ae8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34cd2d(){let _0x13a798,_0x277d91=null,_0x1d4a3b=null;try{if(_0xab5ed0==_0x10ae8c([0x47,0x50,0x4c]))return _0x10ae8c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x13a798=_0x41b0e2(),!_0x13a798)return _0x10ae8c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x13a798[_0x10ae8c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d4a3b=_0x527b97(_0x13a798[_0x10ae8c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x13a798[_0x10ae8c([0x6a,0x74,0x69])])),await _0x5f829f()?_0x3ee01a()?_0x2c988d()?_0x10ae8c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4753f4()?(_0x13a798[_0x10ae8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10ae8c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x277d91=_0x628f93(_0x10ae8c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe036d9()):_0x10ae8c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10ae8c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10ae8c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x10ae8c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c988d(){const _0x441521=[_0x10ae8c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10ae8c([0x74,0x72,0x69,0x61,0x6c])][_0x10ae8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13a798[_0x10ae8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5978dd/0x3e8:0xe10*_0x467120;return _0x13a798[_0x10ae8c([0x65,0x78,0x70])]<_0x441521;}function _0x3ee01a(){const _0x104a8f=_0x13a798[_0x10ae8c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x104a8f&&(!!_0x104a8f[_0x10ae8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10ae8c([0x2a]))||(!!_0x104a8f[_0x10ae8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10ae8c([0x46,0x50]))||(!!_0x104a8f[_0x10ae8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10ae8c([0x50,0x50]))||!(!_0x104a8f[_0x10ae8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10ae8c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x26c1f2()))));}function _0x4753f4(){const _0x247ab0=_0x13a798[_0x10ae8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x247ab0||0x0==_0x247ab0[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x190109}=new URL(window[_0x10ae8c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x247ab0[_0x10ae8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x190109))return!0x0;const _0x3b079b=_0x190109[_0x10ae8c([0x73,0x70,0x6c,0x69,0x74])](_0x10ae8c([0x2e]));return _0x247ab0[_0x10ae8c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b7239=>_0x3b7239[_0x10ae8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10ae8c([0x2a])))[_0x10ae8c([0x6d,0x61,0x70])](_0x3d5265=>_0x3d5265[_0x10ae8c([0x73,0x70,0x6c,0x69,0x74])](_0x10ae8c([0x2e])))[_0x10ae8c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b3b46=>_0x2b3b46[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b079b[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10ae8c([0x6d,0x61,0x70])](_0x14b29d=>Array(_0x3b079b[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14b29d[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10ae8c([0x66,0x69,0x6c,0x6c])](_0x14b29d[0x0]===_0x10ae8c([0x2a])?_0x10ae8c([0x2a]):'')[_0x10ae8c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14b29d))[_0x10ae8c([0x73,0x6f,0x6d,0x65])](_0x4fc4fd=>_0x3b079b[_0x10ae8c([0x65,0x76,0x65,0x72,0x79])]((_0x271e9b,_0x43a037)=>_0x4fc4fd[_0x43a037]===_0x271e9b||_0x4fc4fd[_0x43a037]===_0x10ae8c([0x2a])));}function _0xe036d9(){return _0x277d91&&_0x1d4a3b?new window[(_0x10ae8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48729b,_0xba0f8a)=>{_0x277d91[_0x10ae8c([0x74,0x68,0x65,0x6e])](_0x48729b,_0xba0f8a),_0x1d4a3b[_0x10ae8c([0x74,0x68,0x65,0x6e])](_0x2344bb=>{_0x2344bb!=_0x10ae8c([0x56,0x61,0x6c,0x69,0x64])&&_0x48729b(_0x2344bb);},_0xba0f8a);}):_0x277d91||_0x1d4a3b||_0x10ae8c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x527b97(_0x46ce39,_0x4983ee){return new window[(_0x10ae8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a87db=>{if(_0x4edaf8())return _0x4a87db(_0x10ae8c([0x56,0x61,0x6c,0x69,0x64]));_0x4fa781(),_0x5174e2[_0x10ae8c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10ae8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2aecd1=!0x1;const _0xf2e43f=_0x53d5e3();function _0x2469d3(_0x4e9e1c){return!!_0x4e9e1c&&(typeof _0x4e9e1c===_0x10ae8c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e9e1c===_0x10ae8c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e9e1c[_0x10ae8c([0x74,0x68,0x65,0x6e])]===_0x10ae8c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e9e1c[_0x10ae8c([0x63,0x61,0x74,0x63,0x68])]===_0x10ae8c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52f7d0(_0x45a194){_0x764d03(_0x45a194)[_0x10ae8c([0x74,0x68,0x65,0x6e])](_0x1e86f2=>{if(!_0x1e86f2||_0x1e86f2[_0x10ae8c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10ae8c([0x6f,0x6b]))return _0x10ae8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3254b2(_0x25bf70(_0xf2e43f+_0x4983ee))!=_0x1e86f2[_0x10ae8c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10ae8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10ae8c([0x56,0x61,0x6c,0x69,0x64]);})[_0x10ae8c([0x74,0x68,0x65,0x6e])](_0x5703c2=>(_0x9750ad(),_0x5703c2),()=>{const _0x139d78=_0x3ced42();return null==_0x139d78?(_0x9750ad(),_0x10ae8c([0x56,0x61,0x6c,0x69,0x64])):_0x10ae8c(_0x5978dd-_0x139d78>(0x619b6411^_0x1f1482)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10ae8c([0x74,0x68,0x65,0x6e])](_0x4a87db)[_0x10ae8c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a87db(_0x10ae8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41cc3e=0x45a10e91^_0x1f1482;function _0x9750ad(){const _0x1c6ab4=_0x10ae8c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3254b2(_0x25bf70(_0x46ce39)),_0x43634c=_0x30f9c1(_0x3254b2(window[_0x10ae8c([0x4d,0x61,0x74,0x68])][_0x10ae8c([0x63,0x65,0x69,0x6c])](_0x5978dd/_0x41cc3e)));window[_0x10ae8c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10ae8c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c6ab4,_0x43634c);}function _0x3ced42(){const _0x33cba6=_0x10ae8c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3254b2(_0x25bf70(_0x46ce39)),_0x6763d0=window[_0x10ae8c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10ae8c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33cba6);return _0x6763d0?window[_0x10ae8c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30f9c1(_0x6763d0),0x10)*_0x41cc3e:null;}function _0x764d03(_0x478f93){return new window[(_0x10ae8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46b742,_0x4d43db)=>{_0x478f93[_0x10ae8c([0x74,0x68,0x65,0x6e])](_0x46b742,_0x4d43db),window[_0x10ae8c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d43db,0x459634d1^_0x1f1482);});}}_0x5174e2[_0x10ae8c([0x6f,0x6e])](_0x10ae8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x82e82a,_0x1aa70d)=>{if(_0x1aa70d[0x0]!=_0x46ce39)return _0x4a87db(_0x10ae8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1aa70d[0x1]={..._0x1aa70d[0x1],[_0x10ae8c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf2e43f};},{[_0x10ae8c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10ae8c([0x68,0x69,0x67,0x68])}),_0x5174e2[_0x10ae8c([0x6f,0x6e])](_0x10ae8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7124dd=>{_0x2469d3(_0x7124dd[_0x10ae8c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2aecd1=!0x0,_0x52f7d0(_0x7124dd[_0x10ae8c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10ae8c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10ae8c([0x6c,0x6f,0x77])}),_0x3dca92[_0x10ae8c([0x74,0x68,0x65,0x6e])](()=>{_0x2aecd1||_0x4a87db(_0x10ae8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4edaf8(){return _0x5174e2[_0x10ae8c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10ae8c([0x76,0x69,0x65,0x77])][_0x10ae8c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10ae8c([0x61,0x75,0x74,0x6f]);}function _0x4fa781(){_0x5174e2[_0x10ae8c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10ae8c([0x76,0x69,0x65,0x77])][_0x10ae8c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10ae8c([0x61,0x75,0x74,0x6f]);}}function _0x628f93(_0x268ea7){const _0x282979=[new window[(_0x10ae8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53e69f=>setTimeout(_0x53e69f,0x459ededd^_0x1f1482)),_0x3dca92[_0x10ae8c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10ae8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x333dbb=>{let _0x34aa5f=0x0;_0x5174e2[_0x10ae8c([0x6d,0x6f,0x64,0x65,0x6c])][_0x10ae8c([0x6f,0x6e])](_0x10ae8c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e89cd,_0x367ab5)=>{_0x367ab5[0x0][_0x10ae8c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34aa5f++,_0x34aa5f==(0x4597e5f9^_0x1f1482)&&(_0x333dbb(),_0x5e89cd[_0x10ae8c([0x6f,0x66,0x66])]());});}))];return window[_0x10ae8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10ae8c([0x72,0x61,0x63,0x65])](_0x282979)[_0x10ae8c([0x74,0x68,0x65,0x6e])](()=>_0x268ea7);}async function _0x5457b7(){await _0x3dca92,_0x5174e2[_0x10ae8c([0x6d,0x6f,0x64,0x65,0x6c])][_0x10ae8c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cba6f,_0x5174e2[_0x10ae8c([0x6d,0x6f,0x64,0x65,0x6c])][_0x10ae8c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cba6f,_0x5174e2[_0x10ae8c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10ae8c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26c1f2(){return window[_0x10ae8c([0x67,0x6c,0x6f,0x62])]&&window[_0x10ae8c([0x67,0x6c,0x6f,0x62])][_0x10ae8c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x58a87c(_0x43426d){const _0x1a34f6=_0x4a3bc9();_0x5174e2[_0x1a34f6]=_0x10ae8c([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43426d,_0x43426d!=_0x10ae8c([0x56,0x61,0x6c,0x69,0x64])&&_0x5457b7();}function _0x4a3bc9(){const _0x221c22=window[_0x10ae8c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10ae8c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10ae8c([0x6e,0x6f,0x77])]())[_0x10ae8c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10ae8c([0x2e]),'');let _0x26c32f=_0x10ae8c([0x51]);for(let _0x499c38=0x0;_0x499c38<_0x221c22[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x499c38+=0x2){let _0x3875ef=window[_0x10ae8c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x221c22[_0x10ae8c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x499c38,_0x499c38+0x2));_0x3875ef>=_0x4c194d[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3875ef-=_0x4c194d[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26c32f+=_0x4c194d[_0x3875ef];}return _0x26c32f;}function _0x41b0e2(){const _0x519847=_0xab5ed0[_0x10ae8c([0x73,0x70,0x6c,0x69,0x74])](_0x10ae8c([0x2e]));if(0x3!=_0x519847[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3601c9(_0x519847[0x1]);function _0x3601c9(_0x2d11c6){const _0x1c5758=_0x4ef895(_0x2d11c6);return _0x1c5758&&_0x1be55b()?_0x1c5758:null;function _0x1be55b(){const _0x2dc592=_0x1c5758[_0x10ae8c([0x6a,0x74,0x69])],_0x400be3=window[_0x10ae8c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dc592[_0x10ae8c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2dc592[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x322de3={..._0x1c5758,[_0x10ae8c([0x6a,0x74,0x69])]:_0x2dc592[_0x10ae8c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2dc592[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x322de3[_0x10ae8c([0x76,0x63])],_0x25bf70(_0x322de3)==_0x400be3;}}}async function _0x5f829f(){let _0x567931=!0x0;try{const _0x1be95c=_0xab5ed0[_0x10ae8c([0x73,0x70,0x6c,0x69,0x74])](_0x10ae8c([0x2e])),[_0xaa03f1,_0x2cafba,_0x5516e5]=_0x1be95c;return _0x5dec7c(_0xaa03f1),await _0x1db280(_0xaa03f1,_0x2cafba,_0x5516e5),_0x567931;}catch{return!0x1;}function _0x5dec7c(_0x36f019){const _0x50811a=_0x4ef895(_0x36f019);_0x50811a&&_0x50811a[_0x10ae8c([0x61,0x6c,0x67])]==_0x10ae8c([0x45,0x53,0x32,0x35,0x36])||(_0x567931=!0x1);}async function _0x1db280(_0x2fd2a1,_0x1b021b,_0x3779b6){const _0x4257bc=window[_0x10ae8c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10ae8c([0x66,0x72,0x6f,0x6d])](_0x13d598(_0x3779b6),_0x37cc10=>_0x37cc10[_0x10ae8c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3129e3=new window[(_0x10ae8c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10ae8c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2fd2a1+_0x10ae8c([0x2e])+_0x1b021b),_0x2de62c=window[_0x10ae8c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10ae8c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2de62c)return;const _0x54d2c3=await _0x2de62c[_0x10ae8c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10ae8c([0x6a,0x77,0x6b]),_0x2b3f7c,{[_0x10ae8c([0x6e,0x61,0x6d,0x65])]:_0x10ae8c([0x45,0x43,0x44,0x53,0x41]),[_0x10ae8c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10ae8c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10ae8c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2de62c[_0x10ae8c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10ae8c([0x6e,0x61,0x6d,0x65])]:_0x10ae8c([0x45,0x43,0x44,0x53,0x41]),[_0x10ae8c([0x68,0x61,0x73,0x68])]:{[_0x10ae8c([0x6e,0x61,0x6d,0x65])]:_0x10ae8c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54d2c3,_0x4257bc,_0x3129e3)||(_0x567931=!0x1);}}function _0x4ef895(_0xf5311a){return _0xf5311a[_0x10ae8c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10ae8c([0x65,0x79]))?JSON[_0x10ae8c([0x70,0x61,0x72,0x73,0x65])](_0x13d598(_0xf5311a)):null;}function _0x13d598(_0x211b54){return window[_0x10ae8c([0x61,0x74,0x6f,0x62])](_0x211b54[_0x10ae8c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10ae8c([0x2b]))[_0x10ae8c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10ae8c([0x2f])));}function _0x25bf70(_0x51a367){let _0x503887=0x1505;function _0x21fda9(_0x19a4e7){for(let _0xc1235b=0x0;_0xc1235b<_0x19a4e7[_0x10ae8c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc1235b++){const _0xcdd81b=_0x19a4e7[_0x10ae8c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc1235b);_0x503887=(_0x503887<<0x5)+_0x503887+_0xcdd81b,_0x503887&=_0x503887;}}function _0x5af264(_0x92ffce){Array[_0x10ae8c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x92ffce)?_0x92ffce[_0x10ae8c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5af264):_0x92ffce&&typeof _0x92ffce==_0x10ae8c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10ae8c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x92ffce)[_0x10ae8c([0x73,0x6f,0x72,0x74])]()[_0x10ae8c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x355d3c,_0x4434be])=>{_0x21fda9(_0x355d3c),_0x5af264(_0x4434be);}):_0x21fda9(window[_0x10ae8c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x92ffce));}return _0x5af264(_0x51a367),_0x503887>>>0x0;}function _0x3254b2(_0x1f938c){return _0x1f938c[_0x10ae8c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10ae8c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10ae8c([0x30]));}function _0x30f9c1(_0x71fafc){return _0x71fafc[_0x10ae8c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10ae8c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10ae8c([0x6a,0x6f,0x69,0x6e])]('');}function _0x3cba6f(){}function _0x10ae8c(_0x38529d){return _0x38529d['map'](_0x1966ab=>String['fromCharCode'](_0x1966ab))['join']('');}_0x58a87c(await _0x34cd2d());}(this);}['_toggleSpecialCursor'](_0x401641){this['editor']['editing']['view']['change'](_0x48d598=>{for(const _0x52d416 of this['editor']['editing']['view']['document']['roots'])_0x401641?_0x48d598['addClass'](g,_0x52d416):_0x48d598['removeClass'](g,_0x52d416);});}['_copyFormatting'](){const {editor:_0x5f026b}=this;_0x5f026b['execute'](w),_0x5f026b['ui']['ariaLiveAnnouncer']['announce'](x(_0x5f026b['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x2efc15}=this,_0x520e80=_0x2efc15['commands']['get'](w)['value'];_0x2efc15['execute'](h,_0x520e80),_0x2efc15['ui']['ariaLiveAnnouncer']['announce'](x(_0x2efc15['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x449c58['window']['document'],'mouseup');}}class L extends _0x593e4e{static get['requires'](){return[P,k];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{p as CopyFormatCommand,L as FormatPainter,P as FormatPainterEditing,k as FormatPainterUI,y as PasteFormatCommand};
23
+ import{Command as _0x5aad7c,Plugin as _0x1ea8c2}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0x437dea}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x128cd8,SplitButtonView as _0x317ff8,UIModel as _0x6df76f,addListToDropdown as _0x121753}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x175d66,Collection as _0x671fd7,global as _0x3887ad,uid as _0x544e74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x528f2e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x52c6cf}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',h='pasteFormat',g='ck-format-painter-active';class p extends _0x5aad7c{constructor(_0x57ea86){super(_0x57ea86),this['value']=void 0x0,this['on']('change:isEnabled',(_0x35ebea,_0x2bb98e,_0x2a6591)=>{_0x2a6591||this['reset']();}),this['on']('change:value',()=>_0x57ea86['commands']['get'](h)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0xda933c=this['editor']['model'],_0x19636b=_0xda933c['document']['selection'];return Object['fromEntries'](Array['from'](_0x19636b['getAttributes']())['filter'](([_0x543259])=>_0xda933c['schema']['getAttributeProperties'](_0x543259)['isFormatting']));}}class y extends _0x5aad7c{constructor(_0x3e8c6f){super(_0x3e8c6f),this['_removeFormatCommand']=new _0x437dea(_0x3e8c6f);}['execute'](_0x33224d={}){const _0x49c62e=this['editor']['model'],_0x1ddc5b=_0x49c62e['document']['selection'],_0x2737e0=Array['from'](_0x1ddc5b['getRanges']()),_0x2d0c90=_0x1ddc5b['isCollapsed']?[this['_createRangeOnEntireWord'](_0x49c62e,_0x1ddc5b)]:_0x2737e0;_0x49c62e['change'](_0x11eee7=>{_0x11eee7['setSelection'](_0x2d0c90),this['_removeFormatCommand']['execute']();for(const _0x2bef24 in _0x33224d)for(const _0x4a5185 of _0x49c62e['schema']['getValidRanges'](_0x2d0c90,_0x2bef24))_0x11eee7['setAttribute'](_0x2bef24,_0x33224d[_0x2bef24],_0x4a5185);_0x11eee7['setSelection'](_0x2737e0);});}['_createRangeOnEntireWord'](_0x564917,_0x2c9eca){const _0x1754db=_0x564917['createSelection'](_0x2c9eca);_0x564917['modifySelection'](_0x1754db,{'unit':'word','direction':'backward'});const _0x26b5dc=_0x1754db['getFirstPosition']();_0x564917['modifySelection'](_0x1754db,{'unit':'word','direction':'forward'});const _0x4e5398=_0x1754db['getLastPosition']();return _0x564917['createRange'](_0x26b5dc,_0x4e5398);}}class P extends _0x1ea8c2{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x426683=this['editor'];_0x426683['commands']['add'](w,new p(_0x426683)),_0x426683['commands']['add'](h,new y(_0x426683)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4aef09=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b687e;for(const _0x2532eb in _0x4aef09){const _0x272953=_0x2532eb,_0xc7aca4=_0x4aef09[_0x272953];if('formatPainterLicenseKeyValid'==_0xc7aca4||'formatPainterLicenseKeyInvalid'==_0xc7aca4||'formatPainterLicenseKeyExpired'==_0xc7aca4||'formatPainterLicenseKeyDomainLimit'==_0xc7aca4||'formatPainterLicenseKeyNotAllowed'==_0xc7aca4||'formatPainterLicenseKeyEvaluationLimit'==_0xc7aca4||'formatPainterLicenseKeyUsageLimit'==_0xc7aca4){delete _0x4aef09[_0x272953],_0x3b687e=_0xc7aca4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x3b687e&&_0x4aef09['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x3b687e&&_0x4aef09['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x3b687e&&_0x4aef09['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x3b687e&&_0x4aef09['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x3b687e&&_0x4aef09['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x3b687e&&_0x4aef09['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x1dd1d7,_0x2ab633){const t=_0x1dd1d7['t'];switch(_0x2ab633){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.');default:return _0x2ab633;}}class k extends/* #__PURE__ -- @preserve */
24
+ _0x175d66(_0x1ea8c2){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x14490b=this['editor'];_0x14490b['editing']['view']['addObserver'](_0x528f2e),_0x14490b['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':x(_0x14490b['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':x(_0x14490b['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x14490b['ui']['componentFactory']['add']('formatPainter',_0x27976b=>{const _0xf05254=_0x128cd8(_0x27976b,_0x317ff8),_0x4b5bf8=_0x14490b['commands']['get'](w);_0xf05254['buttonView']['set']({'label':x(_0x14490b['locale'],'Paint\x20formatting'),'icon':_0x52c6cf,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0xf05254['class']='ck-format-painter-dropdown',_0x4b5bf8&&(_0xf05254['bind']('isEnabled')['to'](_0x4b5bf8,'isEnabled'),this['listenTo'](_0x4b5bf8,'change:isEnabled',(_0x52f955,_0xec5b2a,_0x3c570d)=>{_0x3c570d||this['_finishPainting']();}),_0xf05254['buttonView']['bind']('isOn')['to'](_0x4b5bf8,'value',_0x1e9607=>!!_0x1e9607),this['listenTo'](_0x14490b,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x4b5bf8,'change:value',(_0x20cfcd,_0x239a80,_0x4d8e78)=>{this['_toggleSpecialCursor'](!!_0x4d8e78);}));const _0x47b487=new _0x6df76f({'withText':!0x0,'label':x(_0x14490b['locale'],'Continuous\x20painting'),'tooltip':x(_0x14490b['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x121753(_0xf05254,new _0x671fd7([{'type':'switchbutton','model':_0x47b487}]),{'role':'menu'});const _0x5af657=()=>{this['_copyFormatting'](),this['listenTo'](_0x3887ad['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x47b487['isOn']||this['_finishPainting']();});};return this['listenTo'](_0xf05254,'execute',()=>{_0x47b487['isOn']=!_0x47b487['isOn'];}),this['listenTo'](_0xf05254['buttonView'],'execute',()=>{_0x14490b['editing']['view']['focus'](),_0xf05254['buttonView']['isOn']?this['_finishPainting']():_0x5af657();}),_0x14490b['keystrokes']['set']('Ctrl+Alt+C',(_0x2d1033,_0x1ff3ab)=>{_0x5af657(),_0x47b487['isOn']=!0x0,_0x1ff3ab();},{'priority':'high'}),_0x14490b['keystrokes']['set']('Ctrl+Alt+V',(_0x575702,_0x2f1205)=>{_0xf05254['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x47b487['isOn']||this['_finishPainting'](),_0x2f1205());},{'priority':'high'}),_0x14490b['keystrokes']['set']('Esc',(_0x551e8e,_0x461bb6)=>{_0xf05254['buttonView']['isOn']&&(_0x47b487['isOn']=!0x1,this['_finishPainting'](),_0x461bb6());}),_0xf05254;});}['afterInit'](){!async function(_0x574c7d){const _0x1d731d=_0x26a32c([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]),_0x162c81=0x4597e011,_0x3534ee=0x459064e9^_0x162c81,_0x1ec029=window[_0x26a32c([0x44,0x61,0x74,0x65])][_0x26a32c([0x6e,0x6f,0x77])](),_0x4bb967=_0x574c7d[_0x26a32c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x430f86=new window[(_0x26a32c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1940ff=>{_0x4bb967[_0x26a32c([0x6f,0x6e,0x63,0x65])](_0x26a32c([0x72,0x65,0x61,0x64,0x79]),_0x1940ff);}),_0x24024c={[_0x26a32c([0x6b,0x74,0x79])]:_0x26a32c([0x45,0x43]),[_0x26a32c([0x75,0x73,0x65])]:_0x26a32c([0x73,0x69,0x67]),[_0x26a32c([0x63,0x72,0x76])]:_0x26a32c([0x50,0x2d,0x32,0x35,0x36]),[_0x26a32c([0x78])]:_0x26a32c([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]),[_0x26a32c([0x79])]:_0x26a32c([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]),[_0x26a32c([0x61,0x6c,0x67])]:_0x26a32c([0x45,0x53,0x32,0x35,0x36])},_0x43ccc6=_0x4bb967[_0x26a32c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x26a32c([0x67,0x65,0x74])](_0x26a32c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c8cc7(){let _0x26ee1c,_0x147ec5=null,_0x19bdcc=null;try{if(_0x43ccc6==_0x26a32c([0x47,0x50,0x4c]))return _0x26a32c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26ee1c=_0x212393(),!_0x26ee1c)return _0x26a32c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26ee1c[_0x26a32c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x19bdcc=_0x49b80d(_0x26ee1c[_0x26a32c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26ee1c[_0x26a32c([0x6a,0x74,0x69])])),await _0x416c59()?_0x336f54()?_0x5ed686()?_0x26a32c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x508b03()?(_0x26ee1c[_0x26a32c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26a32c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x147ec5=_0x1c1df5(_0x26a32c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x32a40a()):_0x26a32c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x26a32c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x26a32c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x26a32c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ed686(){const _0x2bd836=[_0x26a32c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x26a32c([0x74,0x72,0x69,0x61,0x6c])][_0x26a32c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26ee1c[_0x26a32c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ec029/0x3e8:0xe10*_0x3534ee;return _0x26ee1c[_0x26a32c([0x65,0x78,0x70])]<_0x2bd836;}function _0x336f54(){const _0x1a5d22=_0x26ee1c[_0x26a32c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1a5d22&&(!!_0x1a5d22[_0x26a32c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26a32c([0x2a]))||(!!_0x1a5d22[_0x26a32c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26a32c([0x46,0x50]))||(!!_0x1a5d22[_0x26a32c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26a32c([0x50,0x50]))||!(!_0x1a5d22[_0x26a32c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26a32c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x21a96e()))));}function _0x508b03(){const _0x4a5136=_0x26ee1c[_0x26a32c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a5136||0x0==_0x4a5136[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27fa3a}=new URL(window[_0x26a32c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a5136[_0x26a32c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27fa3a))return!0x0;const _0x378028=_0x27fa3a[_0x26a32c([0x73,0x70,0x6c,0x69,0x74])](_0x26a32c([0x2e]));return _0x4a5136[_0x26a32c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3577d3=>_0x3577d3[_0x26a32c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26a32c([0x2a])))[_0x26a32c([0x6d,0x61,0x70])](_0x40a707=>_0x40a707[_0x26a32c([0x73,0x70,0x6c,0x69,0x74])](_0x26a32c([0x2e])))[_0x26a32c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x541a90=>_0x541a90[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x378028[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x26a32c([0x6d,0x61,0x70])](_0x508518=>Array(_0x378028[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x508518[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x26a32c([0x66,0x69,0x6c,0x6c])](_0x508518[0x0]===_0x26a32c([0x2a])?_0x26a32c([0x2a]):'')[_0x26a32c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x508518))[_0x26a32c([0x73,0x6f,0x6d,0x65])](_0x5827d0=>_0x378028[_0x26a32c([0x65,0x76,0x65,0x72,0x79])]((_0x2dc18f,_0x497f3d)=>_0x5827d0[_0x497f3d]===_0x2dc18f||_0x5827d0[_0x497f3d]===_0x26a32c([0x2a])));}function _0x32a40a(){return _0x147ec5&&_0x19bdcc?new window[(_0x26a32c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52fee7,_0x235215)=>{_0x147ec5[_0x26a32c([0x74,0x68,0x65,0x6e])](_0x52fee7,_0x235215),_0x19bdcc[_0x26a32c([0x74,0x68,0x65,0x6e])](_0x538eff=>{_0x538eff!=_0x26a32c([0x56,0x61,0x6c,0x69,0x64])&&_0x52fee7(_0x538eff);},_0x235215);}):_0x147ec5||_0x19bdcc||_0x26a32c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49b80d(_0xe8125d,_0x444e91){return new window[(_0x26a32c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221e2b=>{if(_0xae75f1())return _0x221e2b(_0x26a32c([0x56,0x61,0x6c,0x69,0x64]));_0xacd05f(),_0x4bb967[_0x26a32c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x26a32c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20c20a=!0x1;const _0x4cea20=_0x544e74();function _0x2e9e83(_0x16fc64){return!!_0x16fc64&&(typeof _0x16fc64===_0x26a32c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16fc64===_0x26a32c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16fc64[_0x26a32c([0x74,0x68,0x65,0x6e])]===_0x26a32c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16fc64[_0x26a32c([0x63,0x61,0x74,0x63,0x68])]===_0x26a32c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d2e19(_0x2ad636){_0x3bdb20(_0x2ad636)[_0x26a32c([0x74,0x68,0x65,0x6e])](_0x15f219=>{if(!_0x15f219||_0x15f219[_0x26a32c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x26a32c([0x6f,0x6b]))return _0x26a32c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56ebff(_0xa9452c(_0x4cea20+_0x444e91))!=_0x15f219[_0x26a32c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x26a32c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x26a32c([0x56,0x61,0x6c,0x69,0x64]);})[_0x26a32c([0x74,0x68,0x65,0x6e])](_0xd8314=>(_0xa149aa(),_0xd8314),()=>{const _0x33064c=_0x42ee1f();return null==_0x33064c?(_0xa149aa(),_0x26a32c([0x56,0x61,0x6c,0x69,0x64])):_0x26a32c(_0x1ec029-_0x33064c>(0x619b6411^_0x162c81)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x26a32c([0x74,0x68,0x65,0x6e])](_0x221e2b)[_0x26a32c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x221e2b(_0x26a32c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18049d=0x45a10e91^_0x162c81;function _0xa149aa(){const _0x1fefa4=_0x26a32c([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ebff(_0xa9452c(_0xe8125d)),_0x5d40e5=_0x18e5ab(_0x56ebff(window[_0x26a32c([0x4d,0x61,0x74,0x68])][_0x26a32c([0x63,0x65,0x69,0x6c])](_0x1ec029/_0x18049d)));window[_0x26a32c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26a32c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fefa4,_0x5d40e5);}function _0x42ee1f(){const _0x1bd006=_0x26a32c([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ebff(_0xa9452c(_0xe8125d)),_0x5d694f=window[_0x26a32c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26a32c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bd006);return _0x5d694f?window[_0x26a32c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18e5ab(_0x5d694f),0x10)*_0x18049d:null;}function _0x3bdb20(_0x83469f){return new window[(_0x26a32c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ab6b0,_0x381a5d)=>{_0x83469f[_0x26a32c([0x74,0x68,0x65,0x6e])](_0x5ab6b0,_0x381a5d),window[_0x26a32c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x381a5d,0x459634d1^_0x162c81);});}}_0x4bb967[_0x26a32c([0x6f,0x6e])](_0x26a32c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x399afb,_0x1bccc2)=>{if(_0x1bccc2[0x0]!=_0xe8125d)return _0x221e2b(_0x26a32c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bccc2[0x1]={..._0x1bccc2[0x1],[_0x26a32c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cea20};},{[_0x26a32c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26a32c([0x68,0x69,0x67,0x68])}),_0x4bb967[_0x26a32c([0x6f,0x6e])](_0x26a32c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x353cb4=>{_0x2e9e83(_0x353cb4[_0x26a32c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20c20a=!0x0,_0x3d2e19(_0x353cb4[_0x26a32c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x26a32c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26a32c([0x6c,0x6f,0x77])}),_0x430f86[_0x26a32c([0x74,0x68,0x65,0x6e])](()=>{_0x20c20a||_0x221e2b(_0x26a32c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xae75f1(){return _0x4bb967[_0x26a32c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26a32c([0x76,0x69,0x65,0x77])][_0x26a32c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x26a32c([0x61,0x75,0x74,0x6f]);}function _0xacd05f(){_0x4bb967[_0x26a32c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26a32c([0x76,0x69,0x65,0x77])][_0x26a32c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26a32c([0x61,0x75,0x74,0x6f]);}}function _0x1c1df5(_0x3c6843){const _0x5e5b79=[new window[(_0x26a32c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41d9dd=>setTimeout(_0x41d9dd,0x459ededd^_0x162c81)),_0x430f86[_0x26a32c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x26a32c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x127006=>{let _0x163c8d=0x0;_0x4bb967[_0x26a32c([0x6d,0x6f,0x64,0x65,0x6c])][_0x26a32c([0x6f,0x6e])](_0x26a32c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c711e,_0x3deab4)=>{_0x3deab4[0x0][_0x26a32c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x163c8d++,_0x163c8d==(0x4597e5f9^_0x162c81)&&(_0x127006(),_0x4c711e[_0x26a32c([0x6f,0x66,0x66])]());});}))];return window[_0x26a32c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26a32c([0x72,0x61,0x63,0x65])](_0x5e5b79)[_0x26a32c([0x74,0x68,0x65,0x6e])](()=>_0x3c6843);}async function _0x3962a8(){await _0x430f86,_0x4bb967[_0x26a32c([0x6d,0x6f,0x64,0x65,0x6c])][_0x26a32c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc0524b,_0x4bb967[_0x26a32c([0x6d,0x6f,0x64,0x65,0x6c])][_0x26a32c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc0524b,_0x4bb967[_0x26a32c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x26a32c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21a96e(){return window[_0x26a32c([0x67,0x6c,0x6f,0x62])]&&window[_0x26a32c([0x67,0x6c,0x6f,0x62])][_0x26a32c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x146b95(_0x1a5149){const _0x142b7b=_0x389323();_0x4bb967[_0x142b7b]=_0x26a32c([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a5149,_0x1a5149!=_0x26a32c([0x56,0x61,0x6c,0x69,0x64])&&_0x3962a8();}function _0x389323(){const _0x31798e=window[_0x26a32c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x26a32c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x26a32c([0x6e,0x6f,0x77])]())[_0x26a32c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x26a32c([0x2e]),'');let _0x4160f5=_0x26a32c([0x51]);for(let _0x102d7a=0x0;_0x102d7a<_0x31798e[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x102d7a+=0x2){let _0x38acd2=window[_0x26a32c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31798e[_0x26a32c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x102d7a,_0x102d7a+0x2));_0x38acd2>=_0x1d731d[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38acd2-=_0x1d731d[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4160f5+=_0x1d731d[_0x38acd2];}return _0x4160f5;}function _0x212393(){const _0x148c41=_0x43ccc6[_0x26a32c([0x73,0x70,0x6c,0x69,0x74])](_0x26a32c([0x2e]));if(0x3!=_0x148c41[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35eb08(_0x148c41[0x1]);function _0x35eb08(_0x77a449){const _0x488261=_0x3a8814(_0x77a449);return _0x488261&&_0x131851()?_0x488261:null;function _0x131851(){const _0x19fa85=_0x488261[_0x26a32c([0x6a,0x74,0x69])],_0x44eda0=window[_0x26a32c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19fa85[_0x26a32c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19fa85[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55bd05={..._0x488261,[_0x26a32c([0x6a,0x74,0x69])]:_0x19fa85[_0x26a32c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19fa85[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55bd05[_0x26a32c([0x76,0x63])],_0xa9452c(_0x55bd05)==_0x44eda0;}}}async function _0x416c59(){let _0x4414a7=!0x0;try{const _0x478db2=_0x43ccc6[_0x26a32c([0x73,0x70,0x6c,0x69,0x74])](_0x26a32c([0x2e])),[_0x60ba89,_0x106376,_0x2cedc0]=_0x478db2;return _0x314eed(_0x60ba89),await _0x1a577a(_0x60ba89,_0x106376,_0x2cedc0),_0x4414a7;}catch{return!0x1;}function _0x314eed(_0x15c8c9){const _0x40f3de=_0x3a8814(_0x15c8c9);_0x40f3de&&_0x40f3de[_0x26a32c([0x61,0x6c,0x67])]==_0x26a32c([0x45,0x53,0x32,0x35,0x36])||(_0x4414a7=!0x1);}async function _0x1a577a(_0x17a730,_0xe0337e,_0x2b4a89){const _0x23bca=window[_0x26a32c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x26a32c([0x66,0x72,0x6f,0x6d])](_0x2b0801(_0x2b4a89),_0x1e640d=>_0x1e640d[_0x26a32c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x553e71=new window[(_0x26a32c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x26a32c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17a730+_0x26a32c([0x2e])+_0xe0337e),_0x58ab15=window[_0x26a32c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x26a32c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58ab15)return;const _0x978f64=await _0x58ab15[_0x26a32c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x26a32c([0x6a,0x77,0x6b]),_0x24024c,{[_0x26a32c([0x6e,0x61,0x6d,0x65])]:_0x26a32c([0x45,0x43,0x44,0x53,0x41]),[_0x26a32c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x26a32c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x26a32c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58ab15[_0x26a32c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x26a32c([0x6e,0x61,0x6d,0x65])]:_0x26a32c([0x45,0x43,0x44,0x53,0x41]),[_0x26a32c([0x68,0x61,0x73,0x68])]:{[_0x26a32c([0x6e,0x61,0x6d,0x65])]:_0x26a32c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x978f64,_0x23bca,_0x553e71)||(_0x4414a7=!0x1);}}function _0x3a8814(_0x4fab4c){return _0x4fab4c[_0x26a32c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x26a32c([0x65,0x79]))?JSON[_0x26a32c([0x70,0x61,0x72,0x73,0x65])](_0x2b0801(_0x4fab4c)):null;}function _0x2b0801(_0x596ed9){return window[_0x26a32c([0x61,0x74,0x6f,0x62])](_0x596ed9[_0x26a32c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x26a32c([0x2b]))[_0x26a32c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x26a32c([0x2f])));}function _0xa9452c(_0x2fe4e1){let _0x4e9275=0x1505;function _0x3d88cb(_0x2708a0){for(let _0x503ba8=0x0;_0x503ba8<_0x2708a0[_0x26a32c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x503ba8++){const _0x508b82=_0x2708a0[_0x26a32c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x503ba8);_0x4e9275=(_0x4e9275<<0x5)+_0x4e9275+_0x508b82,_0x4e9275&=_0x4e9275;}}function _0x32603a(_0x4a2b50){Array[_0x26a32c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a2b50)?_0x4a2b50[_0x26a32c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32603a):_0x4a2b50&&typeof _0x4a2b50==_0x26a32c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x26a32c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a2b50)[_0x26a32c([0x73,0x6f,0x72,0x74])]()[_0x26a32c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7a5b2a,_0x2a0d78])=>{_0x3d88cb(_0x7a5b2a),_0x32603a(_0x2a0d78);}):_0x3d88cb(window[_0x26a32c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a2b50));}return _0x32603a(_0x2fe4e1),_0x4e9275>>>0x0;}function _0x56ebff(_0x464375){return _0x464375[_0x26a32c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x26a32c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x26a32c([0x30]));}function _0x18e5ab(_0x355024){return _0x355024[_0x26a32c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x26a32c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x26a32c([0x6a,0x6f,0x69,0x6e])]('');}function _0xc0524b(){}function _0x26a32c(_0x533c90){return _0x533c90['map'](_0x41c4b0=>String['fromCharCode'](_0x41c4b0))['join']('');}_0x146b95(await _0x1c8cc7());}(this);}['_toggleSpecialCursor'](_0x4534ab){this['editor']['editing']['view']['change'](_0x22e7cb=>{for(const _0x262759 of this['editor']['editing']['view']['document']['roots'])_0x4534ab?_0x22e7cb['addClass'](g,_0x262759):_0x22e7cb['removeClass'](g,_0x262759);});}['_copyFormatting'](){const {editor:_0x3f5829}=this;_0x3f5829['execute'](w),_0x3f5829['ui']['ariaLiveAnnouncer']['announce'](x(_0x3f5829['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x55745d}=this,_0x2dd92a=_0x55745d['commands']['get'](w)['value'];_0x55745d['execute'](h,_0x2dd92a),_0x55745d['ui']['ariaLiveAnnouncer']['announce'](x(_0x55745d['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x3887ad['window']['document'],'mouseup');}}class L extends _0x1ea8c2{static get['requires'](){return[P,k];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{p as CopyFormatCommand,L as FormatPainter,P as FormatPainterEditing,k as FormatPainterUI,y as PasteFormatCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-format-painter",
3
- "version": "48.0.0-alpha.0",
3
+ "version": "48.0.0-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.0.0-alpha.0",
25
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.0",
26
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-remove-format": "48.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.0"
24
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.2",
25
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.2",
26
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.2",
27
+ "@ckeditor/ckeditor5-remove-format": "48.0.0-alpha.2",
28
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.2",
29
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.2"
30
30
  },
31
31
  "files": [
32
32
  "dist",