@ckeditor/ckeditor5-format-painter 48.8.1-alpha.1 → 48.8.1-alpha.3

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 _0x58e619,Plugin as _0x4eee4}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0x1fb3a9}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x22b3c6,SplitButtonView as _0x482fed,UIModel as _0x111680,addListToDropdown as _0x3be317}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x3cba51,Collection as _0x3f7411,global as _0x456ad3,uid as _0x7387e7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x29b0d9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x19e873}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';class CopyFormatCommand extends _0x58e619{constructor(_0x2259fd){super(_0x2259fd),this['value']=void 0x0,this['on']('change:isEnabled',(_0x4b65f7,_0x5f6fe2,_0x17d988)=>{_0x17d988||this['reset']();}),this['on']('change:value',()=>_0x2259fd['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x26d861=this['editor']['model'],_0xebb727=_0x26d861['document']['selection'];return Object['fromEntries'](Array['from'](_0xebb727['getAttributes']())['filter'](([_0x3edb79])=>_0x26d861['schema']['getAttributeProperties'](_0x3edb79)['isFormatting']));}}class PasteFormatCommand extends _0x58e619{constructor(_0x2ef95a){super(_0x2ef95a),this['_removeFormatCommand']=new _0x1fb3a9(_0x2ef95a);}['execute'](_0x346521={}){const _0x172c99=this['editor']['model'],_0x42c9bf=_0x172c99['document']['selection'],_0x5c593f=Array['from'](_0x42c9bf['getRanges']()),_0x1c095e=_0x42c9bf['isCollapsed']?[this['_createRangeOnEntireWord'](_0x172c99,_0x42c9bf)]:_0x5c593f;_0x172c99['change'](_0x1b1926=>{_0x1b1926['setSelection'](_0x1c095e),this['_removeFormatCommand']['execute']();for(const _0x51c2a0 in _0x346521)for(const _0x111497 of _0x172c99['schema']['getValidRanges'](_0x1c095e,_0x51c2a0))_0x1b1926['setAttribute'](_0x51c2a0,_0x346521[_0x51c2a0],_0x111497);_0x1b1926['setSelection'](_0x5c593f);});}['_createRangeOnEntireWord'](_0x59b03d,_0x4c0d26){const _0x4d7dd9=_0x59b03d['createSelection'](_0x4c0d26);_0x59b03d['modifySelection'](_0x4d7dd9,{'unit':'word','direction':'backward'});const _0x36fff6=_0x4d7dd9['getFirstPosition']();_0x59b03d['modifySelection'](_0x4d7dd9,{'unit':'word','direction':'forward'});const _0x266b03=_0x4d7dd9['getLastPosition']();return _0x59b03d['createRange'](_0x36fff6,_0x266b03);}}class FormatPainterEditing extends _0x4eee4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x589c28=this['editor'];_0x589c28['commands']['add'](w,new CopyFormatCommand(_0x589c28)),_0x589c28['commands']['add'](g,new PasteFormatCommand(_0x589c28)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x346651=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a1dc0;for(const _0x8c5dba in _0x346651){const _0x3dfe24=_0x8c5dba,_0x33ab8b=_0x346651[_0x3dfe24];if('formatPainterLicenseKeyValid'==_0x33ab8b||'formatPainterLicenseKeyInvalid'==_0x33ab8b||'formatPainterLicenseKeyExpired'==_0x33ab8b||'formatPainterLicenseKeyDomainLimit'==_0x33ab8b||'formatPainterLicenseKeyNotAllowed'==_0x33ab8b||'formatPainterLicenseKeyEvaluationLimit'==_0x33ab8b||'formatPainterLicenseKeyUsageLimit'==_0x33ab8b){delete _0x346651[_0x3dfe24],_0x4a1dc0=_0x33ab8b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x4a1dc0&&_0x346651['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x4a1dc0&&_0x346651['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x4a1dc0&&_0x346651['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x4a1dc0&&_0x346651['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x4a1dc0&&_0x346651['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x4a1dc0&&_0x346651['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function p(_0x2debdb,_0x441e0d){const t=_0x2debdb['t'];switch(_0x441e0d){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 _0x441e0d;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
24
- _0x3cba51(_0x4eee4){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1f7bcb=this['editor'];_0x1f7bcb['editing']['view']['addObserver'](_0x29b0d9),_0x1f7bcb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x1f7bcb['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x1f7bcb['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x1f7bcb['ui']['componentFactory']['add']('formatPainter',_0x39faf3=>{const _0x43395b=_0x22b3c6(_0x39faf3,_0x482fed),_0x57c879=_0x1f7bcb['commands']['get'](w);_0x43395b['buttonView']['set']({'label':p(_0x1f7bcb['locale'],'Paint\x20formatting'),'icon':_0x19e873,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x43395b['class']='ck-format-painter-dropdown',_0x57c879&&(_0x43395b['bind']('isEnabled')['to'](_0x57c879,'isEnabled'),this['listenTo'](_0x57c879,'change:isEnabled',(_0x3c5edf,_0x3867f2,_0x4651f7)=>{_0x4651f7||this['_finishPainting']();}),_0x43395b['buttonView']['bind']('isOn')['to'](_0x57c879,'value',_0xed2736=>!!_0xed2736),this['listenTo'](_0x1f7bcb,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x57c879,'change:value',(_0x20d734,_0x4cf8f5,_0x467124)=>{this['_toggleSpecialCursor'](!!_0x467124);}));const _0x124ae0=new _0x111680({'withText':!0x0,'label':p(_0x1f7bcb['locale'],'Continuous\x20painting'),'tooltip':p(_0x1f7bcb['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x3be317(_0x43395b,new _0x3f7411([{'type':'switchbutton','model':_0x124ae0}]),{'role':'menu'});const _0x49b7d2=()=>{this['_copyFormatting'](),this['listenTo'](_0x456ad3['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x124ae0['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x43395b,'execute',()=>{_0x124ae0['isOn']=!_0x124ae0['isOn'];}),this['listenTo'](_0x43395b['buttonView'],'execute',()=>{_0x1f7bcb['editing']['view']['focus'](),_0x43395b['buttonView']['isOn']?this['_finishPainting']():_0x49b7d2();}),_0x1f7bcb['keystrokes']['set']('Ctrl+Alt+C',(_0x5af0ad,_0xa9283b)=>{_0x49b7d2(),_0x124ae0['isOn']=!0x0,_0xa9283b();},{'priority':'high'}),_0x1f7bcb['keystrokes']['set']('Ctrl+Alt+V',(_0x3368e1,_0x57e587)=>{_0x43395b['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x124ae0['isOn']||this['_finishPainting'](),_0x57e587());},{'priority':'high'}),_0x1f7bcb['keystrokes']['set']('Esc',(_0x4ef596,_0xbe012d)=>{_0x43395b['buttonView']['isOn']&&(_0x124ae0['isOn']=!0x1,this['_finishPainting'](),_0x1f7bcb['ui']['ariaLiveAnnouncer']['announce'](p(_0x1f7bcb['locale'],'Painting\x20cancelled.')),_0xbe012d());}),_0x43395b;});}['afterInit'](){!async function(_0x47756c){const _0x1dfd62=_0x4f4148([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]),_0x34d024=0x4597e011,_0x28d2bb=0x45906a29^_0x34d024,_0x59912f=window[_0x4f4148([0x44,0x61,0x74,0x65])][_0x4f4148([0x6e,0x6f,0x77])](),_0x20d95f=_0x47756c[_0x4f4148([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1faccc=new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x389ced=>{_0x20d95f[_0x4f4148([0x6f,0x6e,0x63,0x65])](_0x4f4148([0x72,0x65,0x61,0x64,0x79]),_0x389ced);}),_0x4b62f3={[_0x4f4148([0x6b,0x74,0x79])]:_0x4f4148([0x45,0x43]),[_0x4f4148([0x75,0x73,0x65])]:_0x4f4148([0x73,0x69,0x67]),[_0x4f4148([0x63,0x72,0x76])]:_0x4f4148([0x50,0x2d,0x32,0x35,0x36]),[_0x4f4148([0x78])]:_0x4f4148([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]),[_0x4f4148([0x79])]:_0x4f4148([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]),[_0x4f4148([0x61,0x6c,0x67])]:_0x4f4148([0x45,0x53,0x32,0x35,0x36])},_0x2f07e0=_0x20d95f[_0x4f4148([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f4148([0x67,0x65,0x74])](_0x4f4148([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b6719(){let _0x59152a,_0x420422=null,_0x5f5233=null;try{if(_0x2f07e0==_0x4f4148([0x47,0x50,0x4c]))return _0x4f4148([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59152a=_0x333422(),!_0x59152a)return _0x4f4148([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59152a[_0x4f4148([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f5233=_0x4a2d3f(_0x59152a[_0x4f4148([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59152a[_0x4f4148([0x6a,0x74,0x69])])),await _0x5923fc()?_0x331aa9()?_0x189fec()?_0x4f4148([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x96bd3e()?(_0x59152a[_0x4f4148([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f4148([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x420422=_0x147d50(_0x4f4148([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36b7d8()):_0x4f4148([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f4148([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f4148([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f4148([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x189fec(){const _0x3ec810=[_0x4f4148([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f4148([0x74,0x72,0x69,0x61,0x6c])][_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59152a[_0x4f4148([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59912f/0x3e8:0xe10*_0x28d2bb;return _0x59152a[_0x4f4148([0x65,0x78,0x70])]<_0x3ec810;}function _0x331aa9(){const _0x12277e=_0x59152a[_0x4f4148([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x12277e&&(!!_0x12277e[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4148([0x2a]))||(!!_0x12277e[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4148([0x46,0x50]))||(!!_0x12277e[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4148([0x50,0x50]))||!(!_0x12277e[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4148([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xd56d8d()))));}function _0x96bd3e(){const _0xd8fea6=_0x59152a[_0x4f4148([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd8fea6||0x0==_0xd8fea6[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16c82a}=new URL(window[_0x4f4148([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd8fea6[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16c82a))return!0x0;const _0x453f28=_0x16c82a[_0x4f4148([0x73,0x70,0x6c,0x69,0x74])](_0x4f4148([0x2e]));return _0xd8fea6[_0x4f4148([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46097f=>_0x46097f[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4148([0x2a])))[_0x4f4148([0x6d,0x61,0x70])](_0x165701=>_0x165701[_0x4f4148([0x73,0x70,0x6c,0x69,0x74])](_0x4f4148([0x2e])))[_0x4f4148([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15eba2=>_0x15eba2[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x453f28[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f4148([0x6d,0x61,0x70])](_0x2e29b0=>Array(_0x453f28[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e29b0[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f4148([0x66,0x69,0x6c,0x6c])](_0x2e29b0[0x0]===_0x4f4148([0x2a])?_0x4f4148([0x2a]):'')[_0x4f4148([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e29b0))[_0x4f4148([0x73,0x6f,0x6d,0x65])](_0x5c78ba=>_0x453f28[_0x4f4148([0x65,0x76,0x65,0x72,0x79])]((_0x3fc342,_0x7135ac)=>_0x5c78ba[_0x7135ac]===_0x3fc342||_0x5c78ba[_0x7135ac]===_0x4f4148([0x2a])));}function _0x36b7d8(){return _0x420422&&_0x5f5233?new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f83fd,_0x1548e1)=>{_0x420422[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x1f83fd,_0x1548e1),_0x5f5233[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x1b9ab6=>{_0x1b9ab6!=_0x4f4148([0x56,0x61,0x6c,0x69,0x64])&&_0x1f83fd(_0x1b9ab6);},_0x1548e1);}):_0x420422||_0x5f5233||_0x4f4148([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a2d3f(_0x5c7354,_0x2678d0){return new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6d44=>{if(_0x573726())return _0x2f6d44(_0x4f4148([0x56,0x61,0x6c,0x69,0x64]));_0x49a749(),_0x20d95f[_0x4f4148([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f4148([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cedd7=!0x1;const _0x1cdf35=_0x7387e7();function _0x5c4469(_0x35a9a6){return!!_0x35a9a6&&(typeof _0x35a9a6===_0x4f4148([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35a9a6===_0x4f4148([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35a9a6[_0x4f4148([0x74,0x68,0x65,0x6e])]===_0x4f4148([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35a9a6[_0x4f4148([0x63,0x61,0x74,0x63,0x68])]===_0x4f4148([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bfff3(_0x66ba54){_0xe00373(_0x66ba54)[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x3d2463=>{if(!_0x3d2463||_0x3d2463[_0x4f4148([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f4148([0x6f,0x6b]))return _0x4f4148([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5589a4(_0x9153bf(_0x1cdf35+_0x2678d0))!=_0x3d2463[_0x4f4148([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f4148([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f4148([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x5237f3=>(_0x122edd(),_0x5237f3),()=>{const _0x50c45f=_0x4a9d74();return null==_0x50c45f?(_0x122edd(),_0x4f4148([0x56,0x61,0x6c,0x69,0x64])):_0x4f4148(_0x59912f-_0x50c45f>(0x619b6411^_0x34d024)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x2f6d44)[_0x4f4148([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f6d44(_0x4f4148([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x337b19=0x45a10e91^_0x34d024;function _0x122edd(){const _0x556d8a=_0x4f4148([0x6c,0x6c,0x63,0x74,0x2d])+_0x5589a4(_0x9153bf(_0x5c7354)),_0xe029c4=_0x31167f(_0x5589a4(window[_0x4f4148([0x4d,0x61,0x74,0x68])][_0x4f4148([0x63,0x65,0x69,0x6c])](_0x59912f/_0x337b19)));window[_0x4f4148([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f4148([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x556d8a,_0xe029c4);}function _0x4a9d74(){const _0x35e6e4=_0x4f4148([0x6c,0x6c,0x63,0x74,0x2d])+_0x5589a4(_0x9153bf(_0x5c7354)),_0x2055f4=window[_0x4f4148([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f4148([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35e6e4);return _0x2055f4?window[_0x4f4148([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31167f(_0x2055f4),0x10)*_0x337b19:null;}function _0xe00373(_0x172b76){return new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x385113,_0x2fc15c)=>{_0x172b76[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x385113,_0x2fc15c),window[_0x4f4148([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fc15c,0x459634d1^_0x34d024);});}}_0x20d95f[_0x4f4148([0x6f,0x6e])](_0x4f4148([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a2ffd,_0xbffdaa)=>{if(_0xbffdaa[0x0]!=_0x5c7354)return _0x2f6d44(_0x4f4148([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbffdaa[0x1]={..._0xbffdaa[0x1],[_0x4f4148([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1cdf35};},{[_0x4f4148([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f4148([0x68,0x69,0x67,0x68])}),_0x20d95f[_0x4f4148([0x6f,0x6e])](_0x4f4148([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x543018=>{_0x5c4469(_0x543018[_0x4f4148([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cedd7=!0x0,_0x3bfff3(_0x543018[_0x4f4148([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f4148([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f4148([0x6c,0x6f,0x77])}),_0x1faccc[_0x4f4148([0x74,0x68,0x65,0x6e])](()=>{_0x4cedd7||_0x2f6d44(_0x4f4148([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x573726(){return _0x20d95f[_0x4f4148([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f4148([0x76,0x69,0x65,0x77])][_0x4f4148([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f4148([0x61,0x75,0x74,0x6f]);}function _0x49a749(){_0x20d95f[_0x4f4148([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f4148([0x76,0x69,0x65,0x77])][_0x4f4148([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f4148([0x61,0x75,0x74,0x6f]);}}function _0x147d50(_0x2862aa){const _0x19e341=[new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56ab9b=>setTimeout(_0x56ab9b,0x459ededd^_0x34d024)),_0x1faccc[_0x4f4148([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c2ccb=>{let _0x3ffadb=0x0;_0x20d95f[_0x4f4148([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f4148([0x6f,0x6e])](_0x4f4148([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2eb5d8,_0x25e0c5)=>{_0x25e0c5[0x0][_0x4f4148([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3ffadb++,_0x3ffadb==(0x4597e5f9^_0x34d024)&&(_0x4c2ccb(),_0x2eb5d8[_0x4f4148([0x6f,0x66,0x66])]());});}))];return window[_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f4148([0x72,0x61,0x63,0x65])](_0x19e341)[_0x4f4148([0x74,0x68,0x65,0x6e])](()=>_0x2862aa);}async function _0x53d77e(){await _0x1faccc,_0x20d95f[_0x4f4148([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f4148([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d8511,_0x20d95f[_0x4f4148([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f4148([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d8511,_0x20d95f[_0x4f4148([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f4148([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd56d8d(){return window[_0x4f4148([0x67,0x6c,0x6f,0x62])]&&window[_0x4f4148([0x67,0x6c,0x6f,0x62])][_0x4f4148([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x3ce6ef(_0x43cc04){const _0xbf5abd=_0x44c4d4();_0x20d95f[_0xbf5abd]=_0x4f4148([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43cc04,_0x43cc04!=_0x4f4148([0x56,0x61,0x6c,0x69,0x64])&&_0x53d77e();}function _0x44c4d4(){const _0x4d38e3=window[_0x4f4148([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f4148([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f4148([0x6e,0x6f,0x77])]())[_0x4f4148([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f4148([0x2e]),'');let _0x201208=_0x4f4148([0x51]);for(let _0x5b8780=0x0;_0x5b8780<_0x4d38e3[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b8780+=0x2){let _0x1d9a13=window[_0x4f4148([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d38e3[_0x4f4148([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b8780,_0x5b8780+0x2));_0x1d9a13>=_0x1dfd62[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d9a13-=_0x1dfd62[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x201208+=_0x1dfd62[_0x1d9a13];}return _0x201208;}function _0x333422(){const _0x1e8af4=_0x2f07e0[_0x4f4148([0x73,0x70,0x6c,0x69,0x74])](_0x4f4148([0x2e]));if(0x3!=_0x1e8af4[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ae8df(_0x1e8af4[0x1]);function _0x2ae8df(_0x9a2f23){const _0x47466b=_0x17bff6(_0x9a2f23);return _0x47466b&&_0x43b272()?_0x47466b:null;function _0x43b272(){const _0x20db34=_0x47466b[_0x4f4148([0x6a,0x74,0x69])],_0x4f0e2c=window[_0x4f4148([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20db34[_0x4f4148([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20db34[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ad20a={..._0x47466b,[_0x4f4148([0x6a,0x74,0x69])]:_0x20db34[_0x4f4148([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20db34[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ad20a[_0x4f4148([0x76,0x63])],_0x9153bf(_0x2ad20a)==_0x4f0e2c;}}}async function _0x5923fc(){let _0x500a5a=!0x0;try{const _0x46e6c7=_0x2f07e0[_0x4f4148([0x73,0x70,0x6c,0x69,0x74])](_0x4f4148([0x2e])),[_0x20803a,_0x26f174,_0x193874]=_0x46e6c7;return _0x4c5fcd(_0x20803a),await _0x4781d8(_0x20803a,_0x26f174,_0x193874),_0x500a5a;}catch{return!0x1;}function _0x4c5fcd(_0x4fde3e){const _0x43b6c3=_0x17bff6(_0x4fde3e);_0x43b6c3&&_0x43b6c3[_0x4f4148([0x61,0x6c,0x67])]==_0x4f4148([0x45,0x53,0x32,0x35,0x36])||(_0x500a5a=!0x1);}async function _0x4781d8(_0x3ee8b4,_0x211eb5,_0x572ec7){const _0x20ffc3=window[_0x4f4148([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f4148([0x66,0x72,0x6f,0x6d])](_0x25ec7b(_0x572ec7),_0x7a053d=>_0x7a053d[_0x4f4148([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x540cbd=new window[(_0x4f4148([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f4148([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ee8b4+_0x4f4148([0x2e])+_0x211eb5),_0x58a636=window[_0x4f4148([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f4148([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58a636)return;const _0x90ff28=await _0x58a636[_0x4f4148([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f4148([0x6a,0x77,0x6b]),_0x4b62f3,{[_0x4f4148([0x6e,0x61,0x6d,0x65])]:_0x4f4148([0x45,0x43,0x44,0x53,0x41]),[_0x4f4148([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f4148([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f4148([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58a636[_0x4f4148([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f4148([0x6e,0x61,0x6d,0x65])]:_0x4f4148([0x45,0x43,0x44,0x53,0x41]),[_0x4f4148([0x68,0x61,0x73,0x68])]:{[_0x4f4148([0x6e,0x61,0x6d,0x65])]:_0x4f4148([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x90ff28,_0x20ffc3,_0x540cbd)||(_0x500a5a=!0x1);}}function _0x17bff6(_0x3f94e7){return _0x3f94e7[_0x4f4148([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f4148([0x65,0x79]))?JSON[_0x4f4148([0x70,0x61,0x72,0x73,0x65])](_0x25ec7b(_0x3f94e7)):null;}function _0x25ec7b(_0x10eb3d){return window[_0x4f4148([0x61,0x74,0x6f,0x62])](_0x10eb3d[_0x4f4148([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f4148([0x2b]))[_0x4f4148([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f4148([0x2f])));}function _0x9153bf(_0x5d31ef){let _0x58897c=0x1505;function _0x37e527(_0x2ec670){for(let _0x5dffae=0x0;_0x5dffae<_0x2ec670[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dffae++){const _0x288ae5=_0x2ec670[_0x4f4148([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dffae);_0x58897c=(_0x58897c<<0x5)+_0x58897c+_0x288ae5,_0x58897c&=_0x58897c;}}function _0x1fe5a6(_0x29dcf1){Array[_0x4f4148([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29dcf1)?_0x29dcf1[_0x4f4148([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fe5a6):_0x29dcf1&&typeof _0x29dcf1==_0x4f4148([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f4148([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29dcf1)[_0x4f4148([0x73,0x6f,0x72,0x74])]()[_0x4f4148([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fdd16,_0x43120e])=>{_0x37e527(_0x3fdd16),_0x1fe5a6(_0x43120e);}):_0x37e527(window[_0x4f4148([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29dcf1));}return _0x1fe5a6(_0x5d31ef),_0x58897c>>>0x0;}function _0x5589a4(_0xb8b9a){return _0xb8b9a[_0x4f4148([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f4148([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f4148([0x30]));}function _0x31167f(_0x21605c){return _0x21605c[_0x4f4148([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f4148([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f4148([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d8511(){}function _0x4f4148(_0x3d9440){return _0x3d9440['map'](_0x5a42d4=>String['fromCharCode'](_0x5a42d4))['join']('');}_0x3ce6ef(await _0x5b6719());}(this);}['_toggleSpecialCursor'](_0x309c31){this['editor']['editing']['view']['change'](_0x5c2951=>{for(const _0x10d683 of this['editor']['editing']['view']['document']['roots'])_0x309c31?_0x5c2951['addClass'](h,_0x10d683):_0x5c2951['removeClass'](h,_0x10d683);});}['_copyFormatting'](){const {editor:_0x1d393f}=this;_0x1d393f['execute'](w),_0x1d393f['ui']['ariaLiveAnnouncer']['announce'](p(_0x1d393f['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x365f52}=this,_0x543f1f=_0x365f52['commands']['get'](w)['value'];_0x365f52['execute'](g,_0x543f1f),_0x365f52['ui']['ariaLiveAnnouncer']['announce'](p(_0x365f52['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x456ad3['window']['document'],'mouseup');}}class FormatPainter extends _0x4eee4{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 _0x1f8e64,Plugin as _0x84604f}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0x37c0be}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x25f407,SplitButtonView as _0x2d5f6d,UIModel as _0x1f129e,addListToDropdown as _0xad4581}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x4aa564,Collection as _0x4a42f4,global as _0x1d1616,uid as _0x5a684e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x5c5280}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x3a42f9}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';class CopyFormatCommand extends _0x1f8e64{constructor(_0x40d5be){super(_0x40d5be),this['value']=void 0x0,this['on']('change:isEnabled',(_0x4e016a,_0x4ca227,_0x40bdfe)=>{_0x40bdfe||this['reset']();}),this['on']('change:value',()=>_0x40d5be['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x50e2db=this['editor']['model'],_0x3b8904=_0x50e2db['document']['selection'];return Object['fromEntries'](Array['from'](_0x3b8904['getAttributes']())['filter'](([_0x4dab96])=>_0x50e2db['schema']['getAttributeProperties'](_0x4dab96)['isFormatting']));}}class PasteFormatCommand extends _0x1f8e64{constructor(_0x247aa1){super(_0x247aa1),this['_removeFormatCommand']=new _0x37c0be(_0x247aa1);}['execute'](_0x43e6d6={}){const _0x38048e=this['editor']['model'],_0x3a8845=_0x38048e['document']['selection'],_0x5dec69=Array['from'](_0x3a8845['getRanges']()),_0x1978b4=_0x3a8845['isCollapsed']?[this['_createRangeOnEntireWord'](_0x38048e,_0x3a8845)]:_0x5dec69;_0x38048e['change'](_0x111a47=>{_0x111a47['setSelection'](_0x1978b4),this['_removeFormatCommand']['execute']();for(const _0x3f7af4 in _0x43e6d6)for(const _0x57f884 of _0x38048e['schema']['getValidRanges'](_0x1978b4,_0x3f7af4))_0x111a47['setAttribute'](_0x3f7af4,_0x43e6d6[_0x3f7af4],_0x57f884);_0x111a47['setSelection'](_0x5dec69);});}['_createRangeOnEntireWord'](_0x685f59,_0x7c8b31){const _0x1401aa=_0x685f59['createSelection'](_0x7c8b31);_0x685f59['modifySelection'](_0x1401aa,{'unit':'word','direction':'backward'});const _0x29d96d=_0x1401aa['getFirstPosition']();_0x685f59['modifySelection'](_0x1401aa,{'unit':'word','direction':'forward'});const _0x172319=_0x1401aa['getLastPosition']();return _0x685f59['createRange'](_0x29d96d,_0x172319);}}class FormatPainterEditing extends _0x84604f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2618f2=this['editor'];_0x2618f2['commands']['add'](w,new CopyFormatCommand(_0x2618f2)),_0x2618f2['commands']['add'](g,new PasteFormatCommand(_0x2618f2)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ff50c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c737d;for(const _0x48d8b9 in _0x4ff50c){const _0x584c8f=_0x48d8b9,_0x42c1f3=_0x4ff50c[_0x584c8f];if('formatPainterLicenseKeyValid'==_0x42c1f3||'formatPainterLicenseKeyInvalid'==_0x42c1f3||'formatPainterLicenseKeyExpired'==_0x42c1f3||'formatPainterLicenseKeyDomainLimit'==_0x42c1f3||'formatPainterLicenseKeyNotAllowed'==_0x42c1f3||'formatPainterLicenseKeyEvaluationLimit'==_0x42c1f3||'formatPainterLicenseKeyUsageLimit'==_0x42c1f3){delete _0x4ff50c[_0x584c8f],_0x1c737d=_0x42c1f3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x1c737d&&_0x4ff50c['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x1c737d&&_0x4ff50c['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x1c737d&&_0x4ff50c['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x1c737d&&_0x4ff50c['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x1c737d&&_0x4ff50c['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x1c737d&&_0x4ff50c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function p(_0x2dc18a,_0x1a4837){const t=_0x2dc18a['t'];switch(_0x1a4837){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 _0x1a4837;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
24
+ _0x4aa564(_0x84604f){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53366c=this['editor'];_0x53366c['editing']['view']['addObserver'](_0x5c5280),_0x53366c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x53366c['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x53366c['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x53366c['ui']['componentFactory']['add']('formatPainter',_0x5a132a=>{const _0x4c3e1c=_0x25f407(_0x5a132a,_0x2d5f6d),_0x215f0d=_0x53366c['commands']['get'](w);_0x4c3e1c['buttonView']['set']({'label':p(_0x53366c['locale'],'Paint\x20formatting'),'icon':_0x3a42f9,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x4c3e1c['class']='ck-format-painter-dropdown',_0x215f0d&&(_0x4c3e1c['bind']('isEnabled')['to'](_0x215f0d,'isEnabled'),this['listenTo'](_0x215f0d,'change:isEnabled',(_0x140d2a,_0x2d7b4e,_0x4444e6)=>{_0x4444e6||this['_finishPainting']();}),_0x4c3e1c['buttonView']['bind']('isOn')['to'](_0x215f0d,'value',_0x140667=>!!_0x140667),this['listenTo'](_0x53366c,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x215f0d,'change:value',(_0x574e5b,_0xc3064e,_0x12b4ba)=>{this['_toggleSpecialCursor'](!!_0x12b4ba);}));const _0x438152=new _0x1f129e({'withText':!0x0,'label':p(_0x53366c['locale'],'Continuous\x20painting'),'tooltip':p(_0x53366c['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0xad4581(_0x4c3e1c,new _0x4a42f4([{'type':'switchbutton','model':_0x438152}]),{'role':'menu'});const _0x352354=()=>{this['_copyFormatting'](),this['listenTo'](_0x1d1616['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x438152['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x4c3e1c,'execute',()=>{_0x438152['isOn']=!_0x438152['isOn'];}),this['listenTo'](_0x4c3e1c['buttonView'],'execute',()=>{_0x53366c['editing']['view']['focus'](),_0x4c3e1c['buttonView']['isOn']?this['_finishPainting']():_0x352354();}),_0x53366c['keystrokes']['set']('Ctrl+Alt+C',(_0x20c18b,_0x553a15)=>{_0x352354(),_0x438152['isOn']=!0x0,_0x553a15();},{'priority':'high'}),_0x53366c['keystrokes']['set']('Ctrl+Alt+V',(_0x4b2111,_0xa69cda)=>{_0x4c3e1c['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x438152['isOn']||this['_finishPainting'](),_0xa69cda());},{'priority':'high'}),_0x53366c['keystrokes']['set']('Esc',(_0x20dc33,_0x109b8e)=>{_0x4c3e1c['buttonView']['isOn']&&(_0x438152['isOn']=!0x1,this['_finishPainting'](),_0x53366c['ui']['ariaLiveAnnouncer']['announce'](p(_0x53366c['locale'],'Painting\x20cancelled.')),_0x109b8e());}),_0x4c3e1c;});}['afterInit'](){!async function(_0x313407){const _0x54c79a=_0x10a961([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]),_0x31b71d=0x4597e011,_0x1a3318=0x45906a79^_0x31b71d,_0x3ea2bf=window[_0x10a961([0x44,0x61,0x74,0x65])][_0x10a961([0x6e,0x6f,0x77])](),_0x5da668=_0x313407[_0x10a961([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ebd49=new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14c0f3=>{_0x5da668[_0x10a961([0x6f,0x6e,0x63,0x65])](_0x10a961([0x72,0x65,0x61,0x64,0x79]),_0x14c0f3);}),_0x1605df={[_0x10a961([0x6b,0x74,0x79])]:_0x10a961([0x45,0x43]),[_0x10a961([0x75,0x73,0x65])]:_0x10a961([0x73,0x69,0x67]),[_0x10a961([0x63,0x72,0x76])]:_0x10a961([0x50,0x2d,0x32,0x35,0x36]),[_0x10a961([0x78])]:_0x10a961([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]),[_0x10a961([0x79])]:_0x10a961([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]),[_0x10a961([0x61,0x6c,0x67])]:_0x10a961([0x45,0x53,0x32,0x35,0x36])},_0x2d2bf7=_0x5da668[_0x10a961([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10a961([0x67,0x65,0x74])](_0x10a961([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x402060(){let _0xbea773,_0x266ebc=null,_0x37dd62=null;try{if(_0x2d2bf7==_0x10a961([0x47,0x50,0x4c]))return _0x10a961([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbea773=_0x22b062(),!_0xbea773)return _0x10a961([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbea773[_0x10a961([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37dd62=_0x4d21f9(_0xbea773[_0x10a961([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbea773[_0x10a961([0x6a,0x74,0x69])])),await _0x947245()?_0x40cf58()?_0x45a492()?_0x10a961([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x398d9f()?(_0xbea773[_0x10a961([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10a961([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x266ebc=_0x3b2d75(_0x10a961([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5581db()):_0x10a961([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10a961([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10a961([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x10a961([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45a492(){const _0x1d8f90=[_0x10a961([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10a961([0x74,0x72,0x69,0x61,0x6c])][_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbea773[_0x10a961([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ea2bf/0x3e8:0xe10*_0x1a3318;return _0xbea773[_0x10a961([0x65,0x78,0x70])]<_0x1d8f90;}function _0x40cf58(){const _0x4bfdf2=_0xbea773[_0x10a961([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4bfdf2&&(!!_0x4bfdf2[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a961([0x2a]))||(!!_0x4bfdf2[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a961([0x46,0x50]))||(!!_0x4bfdf2[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a961([0x50,0x50]))||!(!_0x4bfdf2[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a961([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xf1fd34()))));}function _0x398d9f(){const _0x5ef1e4=_0xbea773[_0x10a961([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ef1e4||0x0==_0x5ef1e4[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1aee43}=new URL(window[_0x10a961([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ef1e4[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aee43))return!0x0;const _0xf1f568=_0x1aee43[_0x10a961([0x73,0x70,0x6c,0x69,0x74])](_0x10a961([0x2e]));return _0x5ef1e4[_0x10a961([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x113db1=>_0x113db1[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a961([0x2a])))[_0x10a961([0x6d,0x61,0x70])](_0x4f25ce=>_0x4f25ce[_0x10a961([0x73,0x70,0x6c,0x69,0x74])](_0x10a961([0x2e])))[_0x10a961([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x472504=>_0x472504[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf1f568[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10a961([0x6d,0x61,0x70])](_0x14955d=>Array(_0xf1f568[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14955d[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10a961([0x66,0x69,0x6c,0x6c])](_0x14955d[0x0]===_0x10a961([0x2a])?_0x10a961([0x2a]):'')[_0x10a961([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14955d))[_0x10a961([0x73,0x6f,0x6d,0x65])](_0x14938c=>_0xf1f568[_0x10a961([0x65,0x76,0x65,0x72,0x79])]((_0x10f8ad,_0x45fa0c)=>_0x14938c[_0x45fa0c]===_0x10f8ad||_0x14938c[_0x45fa0c]===_0x10a961([0x2a])));}function _0x5581db(){return _0x266ebc&&_0x37dd62?new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4633ea,_0x56a601)=>{_0x266ebc[_0x10a961([0x74,0x68,0x65,0x6e])](_0x4633ea,_0x56a601),_0x37dd62[_0x10a961([0x74,0x68,0x65,0x6e])](_0x3a73da=>{_0x3a73da!=_0x10a961([0x56,0x61,0x6c,0x69,0x64])&&_0x4633ea(_0x3a73da);},_0x56a601);}):_0x266ebc||_0x37dd62||_0x10a961([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d21f9(_0xca47f1,_0x16fe91){return new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49fbe0=>{if(_0x1c2c2b())return _0x49fbe0(_0x10a961([0x56,0x61,0x6c,0x69,0x64]));_0x2858e3(),_0x5da668[_0x10a961([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10a961([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf87aad=!0x1;const _0x2a6e0f=_0x5a684e();function _0x13368b(_0x40f68e){return!!_0x40f68e&&(typeof _0x40f68e===_0x10a961([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40f68e===_0x10a961([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40f68e[_0x10a961([0x74,0x68,0x65,0x6e])]===_0x10a961([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40f68e[_0x10a961([0x63,0x61,0x74,0x63,0x68])]===_0x10a961([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x176fd5(_0x148297){_0x1a00f7(_0x148297)[_0x10a961([0x74,0x68,0x65,0x6e])](_0x47976b=>{if(!_0x47976b||_0x47976b[_0x10a961([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10a961([0x6f,0x6b]))return _0x10a961([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fe8b2(_0x39a681(_0x2a6e0f+_0x16fe91))!=_0x47976b[_0x10a961([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10a961([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10a961([0x56,0x61,0x6c,0x69,0x64]);})[_0x10a961([0x74,0x68,0x65,0x6e])](_0x55e537=>(_0x51f9c2(),_0x55e537),()=>{const _0x1d63cb=_0x4d4962();return null==_0x1d63cb?(_0x51f9c2(),_0x10a961([0x56,0x61,0x6c,0x69,0x64])):_0x10a961(_0x3ea2bf-_0x1d63cb>(0x619b6411^_0x31b71d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10a961([0x74,0x68,0x65,0x6e])](_0x49fbe0)[_0x10a961([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49fbe0(_0x10a961([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4dd2a4=0x45a10e91^_0x31b71d;function _0x51f9c2(){const _0x18f7ed=_0x10a961([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fe8b2(_0x39a681(_0xca47f1)),_0x5ce035=_0x421784(_0x3fe8b2(window[_0x10a961([0x4d,0x61,0x74,0x68])][_0x10a961([0x63,0x65,0x69,0x6c])](_0x3ea2bf/_0x4dd2a4)));window[_0x10a961([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10a961([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18f7ed,_0x5ce035);}function _0x4d4962(){const _0x10fb8a=_0x10a961([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fe8b2(_0x39a681(_0xca47f1)),_0x361b7f=window[_0x10a961([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10a961([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10fb8a);return _0x361b7f?window[_0x10a961([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x421784(_0x361b7f),0x10)*_0x4dd2a4:null;}function _0x1a00f7(_0x40c44b){return new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47ed88,_0x1c81ae)=>{_0x40c44b[_0x10a961([0x74,0x68,0x65,0x6e])](_0x47ed88,_0x1c81ae),window[_0x10a961([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c81ae,0x459634d1^_0x31b71d);});}}_0x5da668[_0x10a961([0x6f,0x6e])](_0x10a961([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x348145,_0x5b2653)=>{if(_0x5b2653[0x0]!=_0xca47f1)return _0x49fbe0(_0x10a961([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b2653[0x1]={..._0x5b2653[0x1],[_0x10a961([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a6e0f};},{[_0x10a961([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10a961([0x68,0x69,0x67,0x68])}),_0x5da668[_0x10a961([0x6f,0x6e])](_0x10a961([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x440b99=>{_0x13368b(_0x440b99[_0x10a961([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf87aad=!0x0,_0x176fd5(_0x440b99[_0x10a961([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10a961([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10a961([0x6c,0x6f,0x77])}),_0x4ebd49[_0x10a961([0x74,0x68,0x65,0x6e])](()=>{_0xf87aad||_0x49fbe0(_0x10a961([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c2c2b(){return _0x5da668[_0x10a961([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10a961([0x76,0x69,0x65,0x77])][_0x10a961([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10a961([0x61,0x75,0x74,0x6f]);}function _0x2858e3(){_0x5da668[_0x10a961([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10a961([0x76,0x69,0x65,0x77])][_0x10a961([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10a961([0x61,0x75,0x74,0x6f]);}}function _0x3b2d75(_0x3aa0e7){const _0x5ba2f4=[new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e6142=>setTimeout(_0x2e6142,0x459ededd^_0x31b71d)),_0x4ebd49[_0x10a961([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325ec7=>{let _0x549efd=0x0;_0x5da668[_0x10a961([0x6d,0x6f,0x64,0x65,0x6c])][_0x10a961([0x6f,0x6e])](_0x10a961([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a07d2,_0x1ad95f)=>{_0x1ad95f[0x0][_0x10a961([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x549efd++,_0x549efd==(0x4597e5f9^_0x31b71d)&&(_0x325ec7(),_0x5a07d2[_0x10a961([0x6f,0x66,0x66])]());});}))];return window[_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10a961([0x72,0x61,0x63,0x65])](_0x5ba2f4)[_0x10a961([0x74,0x68,0x65,0x6e])](()=>_0x3aa0e7);}async function _0x105cb9(){await _0x4ebd49,_0x5da668[_0x10a961([0x6d,0x6f,0x64,0x65,0x6c])][_0x10a961([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x837fb7,_0x5da668[_0x10a961([0x6d,0x6f,0x64,0x65,0x6c])][_0x10a961([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x837fb7,_0x5da668[_0x10a961([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10a961([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf1fd34(){return window[_0x10a961([0x67,0x6c,0x6f,0x62])]&&window[_0x10a961([0x67,0x6c,0x6f,0x62])][_0x10a961([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5e7c66(_0x44375b){const _0x299afb=_0x5cbe94();_0x5da668[_0x299afb]=_0x10a961([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44375b,_0x44375b!=_0x10a961([0x56,0x61,0x6c,0x69,0x64])&&_0x105cb9();}function _0x5cbe94(){const _0x34719a=window[_0x10a961([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10a961([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10a961([0x6e,0x6f,0x77])]())[_0x10a961([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10a961([0x2e]),'');let _0x619099=_0x10a961([0x51]);for(let _0x533053=0x0;_0x533053<_0x34719a[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x533053+=0x2){let _0xad2b90=window[_0x10a961([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34719a[_0x10a961([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x533053,_0x533053+0x2));_0xad2b90>=_0x54c79a[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xad2b90-=_0x54c79a[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x619099+=_0x54c79a[_0xad2b90];}return _0x619099;}function _0x22b062(){const _0x14eef2=_0x2d2bf7[_0x10a961([0x73,0x70,0x6c,0x69,0x74])](_0x10a961([0x2e]));if(0x3!=_0x14eef2[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x23642f(_0x14eef2[0x1]);function _0x23642f(_0x314463){const _0x40bfe8=_0x27376d(_0x314463);return _0x40bfe8&&_0x4528b9()?_0x40bfe8:null;function _0x4528b9(){const _0x390e58=_0x40bfe8[_0x10a961([0x6a,0x74,0x69])],_0x514728=window[_0x10a961([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x390e58[_0x10a961([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x390e58[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e8349={..._0x40bfe8,[_0x10a961([0x6a,0x74,0x69])]:_0x390e58[_0x10a961([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x390e58[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e8349[_0x10a961([0x76,0x63])],_0x39a681(_0x3e8349)==_0x514728;}}}async function _0x947245(){let _0x40052b=!0x0;try{const _0x531ac0=_0x2d2bf7[_0x10a961([0x73,0x70,0x6c,0x69,0x74])](_0x10a961([0x2e])),[_0x18d4e1,_0x1e2dd6,_0x106e94]=_0x531ac0;return _0x4984fe(_0x18d4e1),await _0x25500f(_0x18d4e1,_0x1e2dd6,_0x106e94),_0x40052b;}catch{return!0x1;}function _0x4984fe(_0x1f2812){const _0x479ec7=_0x27376d(_0x1f2812);_0x479ec7&&_0x479ec7[_0x10a961([0x61,0x6c,0x67])]==_0x10a961([0x45,0x53,0x32,0x35,0x36])||(_0x40052b=!0x1);}async function _0x25500f(_0x3009f3,_0x2b9f6b,_0x1112b9){const _0x19c6a9=window[_0x10a961([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10a961([0x66,0x72,0x6f,0x6d])](_0x77deaf(_0x1112b9),_0x538182=>_0x538182[_0x10a961([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1aa546=new window[(_0x10a961([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10a961([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3009f3+_0x10a961([0x2e])+_0x2b9f6b),_0x40e82b=window[_0x10a961([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10a961([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40e82b)return;const _0x5e7336=await _0x40e82b[_0x10a961([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10a961([0x6a,0x77,0x6b]),_0x1605df,{[_0x10a961([0x6e,0x61,0x6d,0x65])]:_0x10a961([0x45,0x43,0x44,0x53,0x41]),[_0x10a961([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10a961([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10a961([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40e82b[_0x10a961([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10a961([0x6e,0x61,0x6d,0x65])]:_0x10a961([0x45,0x43,0x44,0x53,0x41]),[_0x10a961([0x68,0x61,0x73,0x68])]:{[_0x10a961([0x6e,0x61,0x6d,0x65])]:_0x10a961([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e7336,_0x19c6a9,_0x1aa546)||(_0x40052b=!0x1);}}function _0x27376d(_0xe0b45e){return _0xe0b45e[_0x10a961([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10a961([0x65,0x79]))?JSON[_0x10a961([0x70,0x61,0x72,0x73,0x65])](_0x77deaf(_0xe0b45e)):null;}function _0x77deaf(_0x236187){return window[_0x10a961([0x61,0x74,0x6f,0x62])](_0x236187[_0x10a961([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10a961([0x2b]))[_0x10a961([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10a961([0x2f])));}function _0x39a681(_0x597fc1){let _0x2d3146=0x1505;function _0x30be91(_0x20bd00){for(let _0x2496e1=0x0;_0x2496e1<_0x20bd00[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2496e1++){const _0x4973b4=_0x20bd00[_0x10a961([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2496e1);_0x2d3146=(_0x2d3146<<0x5)+_0x2d3146+_0x4973b4,_0x2d3146&=_0x2d3146;}}function _0x515509(_0x1462a1){Array[_0x10a961([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1462a1)?_0x1462a1[_0x10a961([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x515509):_0x1462a1&&typeof _0x1462a1==_0x10a961([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10a961([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1462a1)[_0x10a961([0x73,0x6f,0x72,0x74])]()[_0x10a961([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x258cde,_0x407ad8])=>{_0x30be91(_0x258cde),_0x515509(_0x407ad8);}):_0x30be91(window[_0x10a961([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1462a1));}return _0x515509(_0x597fc1),_0x2d3146>>>0x0;}function _0x3fe8b2(_0x310590){return _0x310590[_0x10a961([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10a961([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10a961([0x30]));}function _0x421784(_0x1479b9){return _0x1479b9[_0x10a961([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10a961([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10a961([0x6a,0x6f,0x69,0x6e])]('');}function _0x837fb7(){}function _0x10a961(_0x2c5ea9){return _0x2c5ea9['map'](_0x10601b=>String['fromCharCode'](_0x10601b))['join']('');}_0x5e7c66(await _0x402060());}(this);}['_toggleSpecialCursor'](_0x5b9c4f){this['editor']['editing']['view']['change'](_0x107058=>{for(const _0x38f9fd of this['editor']['editing']['view']['document']['roots'])_0x5b9c4f?_0x107058['addClass'](h,_0x38f9fd):_0x107058['removeClass'](h,_0x38f9fd);});}['_copyFormatting'](){const {editor:_0x3d0563}=this;_0x3d0563['execute'](w),_0x3d0563['ui']['ariaLiveAnnouncer']['announce'](p(_0x3d0563['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x2a8795}=this,_0x9fbebc=_0x2a8795['commands']['get'](w)['value'];_0x2a8795['execute'](g,_0x9fbebc),_0x2a8795['ui']['ariaLiveAnnouncer']['announce'](p(_0x2a8795['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x1d1616['window']['document'],'mouseup');}}class FormatPainter extends _0x84604f{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.1",
3
+ "version": "48.8.1-alpha.3",
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.1",
25
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
26
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
27
- "@ckeditor/ckeditor5-remove-format": "48.8.1-alpha.1",
28
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
29
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1"
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
25
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.3",
26
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
27
+ "@ckeditor/ckeditor5-remove-format": "48.8.1-alpha.3",
28
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
29
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.3"
30
30
  },
31
31
  "files": [
32
32
  "dist",