@ckeditor/ckeditor5-paste-from-office-enhanced 48.5.0-alpha.2 → 48.5.0-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.
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2209bd}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x37244f,PasteFromOfficeMSWordNormalizer as _0x49d65f}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x3b0984,uid as _0x44e583}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x31a3e4,ViewDomConverter as _0x1e70ae,ViewUpcastWriter as _0x472f14}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x9a4c05){return f['test'](_0x9a4c05);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x5dd6ba,_0x1b1298){const _0x71dab7=new Map();for(const [_0x2eae6d,_0x407198]of _0x1b1298){if(!_0x2eae6d['tagName']&&!_0x2eae6d['className'])continue;const _0x200176=!_0x2eae6d['tagName']||_0x5dd6ba['name']===_0x2eae6d['tagName'],_0x6457b7=!_0x2eae6d['className']||_0x5dd6ba['hasClass'](_0x2eae6d['className']);_0x200176&&_0x6457b7&&_0x71dab7['set'](_0x2eae6d,_0x407198);}return _0x71dab7;}function m(_0x2bab3a){const _0x9d527f={};for(let _0x520cba=0x0;_0x520cba<_0x2bab3a['length'];_0x520cba++){const _0x36d550=_0x2bab3a[_0x520cba],_0x49941b=_0x2bab3a['getPropertyValue'](_0x36d550);'initial'!==_0x49941b&&(_0x9d527f[_0x36d550]=_0x49941b);}return _0x9d527f;}function w(_0x3fb597){const _0x2577e5=_0x3fb597['split'](',')['map'](_0x3f3472=>_0x3f3472['trim']()),_0x352d77=[];for(const _0x250ddc of _0x2577e5){const _0x1513a9=l['exec'](_0x250ddc);_0x1513a9&&_0x352d77['push'](_0x1513a9['groups']);}return _0x352d77;}function y(_0x7b44d8){const _0x53c61f={};for(const _0x5b6e3d of _0x7b44d8)Object['assign'](_0x53c61f,_0x5b6e3d);return _0x53c61f;}var g=class extends _0x49d65f{execute(_0x146810){const {styles:_0x2e3cf5,stylesString:_0xfc6360}=_0x146810['extraContent'],_0x24a475=new _0x472f14(_0x146810['content']['document']),_0x43c336=_0x24a475['createRangeIn'](_0x146810['content']),_0x1dcda8=function(_0xae6680){const _0x1fcd42={};for(const _0x1e06ac of _0xae6680)for(const _0xc27db6 of _0x1e06ac['cssRules'])if(_0xc27db6 instanceof CSSStyleRule){const _0x28640f=m(_0xc27db6['style']);_0x1fcd42[_0xc27db6['selectorText']]=Object['assign']({},_0x1fcd42[_0xc27db6['selectorText']]||{},_0x28640f);}return _0x1fcd42;}(_0x2e3cf5),_0x4c1f5d=function(_0x31653e){const _0x4d7c53=new Map();for(const _0x306b39 in _0x31653e){const _0x3e432d=w(_0x306b39),_0x2a9d7f=_0x31653e[_0x306b39];for(const _0x57ce52 of _0x3e432d)_0x4d7c53['set'](_0x57ce52,_0x2a9d7f);}return _0x4d7c53;}(_0x1dcda8),_0x22cccb=function(_0x511bf6){const _0x3d6183={},_0x2c9448=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x12ae33=/\.(?<className>[\w-]+)/g;let _0x6377da;for(;null!==(_0x6377da=_0x2c9448['exec'](_0x511bf6));){const {selector:_0x47e382,color:_0x18f29b,patternType:_0x55189a}=_0x6377da['groups'];if('auto'!==_0x18f29b['toLowerCase']()&&'none'!==_0x55189a['toLowerCase']()&&'auto'!==_0x55189a['toLowerCase']()){for(const _0x501a49 of _0x47e382['matchAll'](_0x12ae33))_0x3d6183[_0x501a49['groups']['className']]=_0x18f29b;}}return _0x3d6183;}(_0xfc6360);for(const _0x5681cb of _0x43c336){if('elementStart'!==_0x5681cb['type'])continue;const _0x100684=_0x5681cb['item'],_0x110a84=d(_0x100684,_0x4c1f5d),_0xe5502d=_0x110a84['size']?y(Array['from'](_0x110a84['values']())):{};if(!('background-color'in _0xe5502d)&&!('background'in _0xe5502d)){for(const [_0x1c9040,_0x4ab4f0]of Object['entries'](_0x22cccb))if(_0x100684['hasClass'](_0x1c9040)){_0xe5502d['background-color']=_0x4ab4f0;break;}}for(const _0x357d86 in _0xe5502d)_0x100684['hasStyle'](_0x357d86)||_0x24a475['setStyle'](_0x357d86,_0xe5502d[_0x357d86],_0x100684);}}isActive(_0x43e46f){return super['isActive'](_0x43e46f)||u(_0x43e46f);}},p=class extends _0x2209bd{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x37244f];}init(){const _0x56855a=this['editor'],_0x3275ba=_0x56855a['plugins']['get']('PasteFromOffice'),_0x410079=_0x56855a['editing']['view']['document'],_0x47a7c2=new g(_0x410079);_0x3275ba['registerNormalizer'](_0x47a7c2,_0x3b0984['high']+0xb);}afterInit(){!async function(_0x55f4ac){const _0x26bfb2='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x5092bb=0x793f8,_0x45abcb={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x432203(_0x4fc785){const _0x1c90f2=new window['Promise'](_0x13d44d=>{_0x4fc785['once']('ready',_0x13d44d);}),_0x19f0e6=window['Date']['now'](),_0x17b71e=_0x4fc785['config']['get']('licenseKey');async function _0x4c1938(){let _0x2d0107,_0xc2ea79=null,_0x258e47=null;try{return'GPL'==_0x17b71e?'NotAllowed':(_0x2d0107=_0x26bad0(),_0x2d0107?(_0x2d0107['usageEndpoint']&&(_0x258e47=_0xa79f8f(_0x2d0107['usageEndpoint'],_0x2d0107['jti'])),await _0x3ea441()?_0x652080()?_0x50708c()?'Expired':_0x2cb268()?('evaluation'==_0x2d0107['licenseType']&&(_0xc2ea79=_0x3f4488('EvaluationLimit')),await _0x26d0fa()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x50708c(){const _0x4bcca9=['evaluation','trial']['includes'](_0x2d0107['licenseType'])?_0x19f0e6/0x3e8:0xe10*_0x5092bb;return _0x2d0107['exp']<_0x4bcca9;}function _0x652080(){const _0x26db79=_0x2d0107['features'];return!!_0x26db79&&(!!_0x26db79['includes']('*')||(!!_0x26db79['includes']('POE')||(!!_0x26db79['includes']('PP')||!(!_0x26db79['includes']('TRILIUM')||!_0xb9f901()))));}function _0x2cb268(){const _0x3ea85c=_0x2d0107['licensedHosts'];if(!_0x3ea85c||0x0==_0x3ea85c['length'])return!0x0;const {hostname:_0x3e10ef}=new URL(window['location']['href']);if(_0x3ea85c['includes'](_0x3e10ef))return!0x0;const _0x70bdad=_0x3e10ef['split']('.');return _0x3ea85c['filter'](_0x377661=>_0x377661['includes']('*'))['map'](_0x77cf01=>_0x77cf01['split']('.'))['filter'](_0x2a28a9=>_0x2a28a9['length']<=_0x70bdad['length'])['map'](_0x399dc6=>Array(_0x70bdad['length']-_0x399dc6['length'])['fill']('*'===_0x399dc6[0x0]?'*':'')['concat'](_0x399dc6))['some'](_0xa1593c=>_0x70bdad['every']((_0x45db63,_0x1ef71a)=>_0xa1593c[_0x1ef71a]===_0x45db63||'*'===_0xa1593c[_0x1ef71a]));}function _0x26d0fa(){return _0xc2ea79&&_0x258e47?new window['Promise']((_0x29358d,_0x13996a)=>{_0xc2ea79['then'](_0x29358d,_0x13996a),_0x258e47['then'](_0x5f4cc2=>{'Valid'!=_0x5f4cc2&&_0x29358d(_0x5f4cc2);},_0x13996a);}):_0xc2ea79||_0x258e47||'Valid';}}function _0xa79f8f(_0x2062ce,_0x2481a8){return new window['Promise'](_0x4e9b58=>{if(_0x57172a())return _0x4e9b58('Valid');_0x213eb0(),_0x4fc785['decorate']('_sendUsageRequest');let _0x2cadb7=!0x1;const _0x3f488a=_0x44e583();function _0xf473e7(_0x3d584c){return!!_0x3d584c&&('object'==typeof _0x3d584c||'function'==typeof _0x3d584c)&&'function'==typeof _0x3d584c['then']&&'function'==typeof _0x3d584c['catch'];}function _0x4b34f5(_0x3ed87a){_0x9d14ee(_0x3ed87a)['then'](_0x3f96a7=>_0x3f96a7&&'ok'==_0x3f96a7['status']?_0x49e38b(_0x552488(_0x3f488a+_0x2481a8))!=_0x3f96a7['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x26232e=>(_0x2fd9bb(),_0x26232e),()=>{const _0xc6c195=_0x3ebc3f();return null==_0xc6c195?(_0x2fd9bb(),'Valid'):_0x19f0e6-_0xc6c195>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4e9b58)['catch'](()=>{_0x4e9b58('UsageLimit');});const _0x214bd8=0x36ee80;function _0x2fd9bb(){const _0x217e98='llct-'+_0x49e38b(_0x552488(_0x2062ce)),_0x3ccbd6=_0x1f8d15(_0x49e38b(window['Math']['ceil'](_0x19f0e6/_0x214bd8)));window['localStorage']['setItem'](_0x217e98,_0x3ccbd6);}function _0x3ebc3f(){const _0x232b7d='llct-'+_0x49e38b(_0x552488(_0x2062ce)),_0x42c6a7=window['localStorage']['getItem'](_0x232b7d);return _0x42c6a7?window['parseInt'](_0x1f8d15(_0x42c6a7),0x10)*_0x214bd8:null;}function _0x9d14ee(_0x2786f0){return new window['Promise']((_0x357706,_0x546e58)=>{_0x2786f0['then'](_0x357706,_0x546e58),window['setTimeout'](_0x546e58,0x1d4c0);});}}_0x4fc785['on']('_sendUsageRequest',(_0x2131b5,_0x28bac0)=>{if(_0x28bac0[0x0]!=_0x2062ce)return _0x4e9b58('UsageLimit');_0x28bac0[0x1]={..._0x28bac0[0x1],'requestId':_0x3f488a};},{'priority':'high'}),_0x4fc785['on']('_sendUsageRequest',_0x49e107=>{_0xf473e7(_0x49e107['return'])&&(_0x2cadb7=!0x0,_0x4b34f5(_0x49e107['return']));},{'priority':'low'}),_0x1c90f2['then'](()=>{_0x2cadb7||_0x4e9b58('UsageLimit');});});function _0x57172a(){return'auto'==_0x4fc785['editing']['view']['_overlayModeHint'];}function _0x213eb0(){_0x4fc785['editing']['view']['_overlayModeHint']='auto';}}function _0x3f4488(_0x11daa6){const _0x5b0376=[new window['Promise'](_0x28a121=>setTimeout(_0x28a121,0x93ecc)),_0x1c90f2['then'](()=>new window['Promise'](_0x2354d6=>{let _0x28bec9=0x0;_0x4fc785['model']['on']('applyOperation',(_0x49d2d4,_0x118412)=>{_0x118412[0x0]['isDocumentOperation']&&_0x28bec9++,0x5e8==_0x28bec9&&(_0x2354d6(),_0x49d2d4['off']());});}))];return window['Promise']['race'](_0x5b0376)['then'](()=>_0x11daa6);}async function _0xec7cf8(){await _0x1c90f2,_0x4fc785['model']['change']=_0xacf5b2,_0x4fc785['model']['enqueueChange']=_0xacf5b2,_0x4fc785['enableReadOnlyMode']('model');}function _0xb9f901(){return window['glob']&&window['glob']['triliumVersion'];}function _0x50bffe(_0x543323){const _0x407210=_0x1223a9();_0x4fc785[_0x407210]='pasteFromOfficeEnhancedLicenseKey'+_0x543323,'Valid'!=_0x543323&&_0xec7cf8();}function _0x1223a9(){const _0x127be4=window['String'](window['performance']['now']())['replace']('.','');let _0x1328b2='u';for(let _0x3a8de1=0x0;_0x3a8de1<_0x127be4['length'];_0x3a8de1+=0x2){let _0x4ad8f1=window['parseInt'](_0x127be4['substring'](_0x3a8de1,_0x3a8de1+0x2));_0x4ad8f1>=0x3e&&(_0x4ad8f1-=0x3e),_0x1328b2+=_0x26bfb2[_0x4ad8f1];}return _0x1328b2;}function _0x26bad0(){const _0x4c5364=_0x17b71e['split']('.');if(0x3!=_0x4c5364['length'])return null;return _0x5bb624(_0x4c5364[0x1]);function _0x5bb624(_0x40ae9e){const _0x19e881=_0x3658ff(_0x40ae9e);return _0x19e881&&_0x1c4f9f()?_0x19e881:null;function _0x1c4f9f(){const _0x1d412c=_0x19e881['jti'],_0x3cd64d=window['parseInt'](_0x1d412c['substring'](_0x1d412c['length']-0x8),0x10),_0x57b114={..._0x19e881,'jti':_0x1d412c['substring'](0x0,_0x1d412c['length']-0x8)};return delete _0x57b114['vc'],_0x552488(_0x57b114)==_0x3cd64d;}}}async function _0x3ea441(){let _0xd1c751=!0x0;try{const [_0x573277,_0x12456d,_0x2be4a2]=_0x17b71e['split']('.');return _0x2a2874(_0x573277),await _0x329937(_0x573277,_0x12456d,_0x2be4a2),_0xd1c751;}catch{return!0x1;}function _0x2a2874(_0x33ca2d){const _0x1be2a3=_0x3658ff(_0x33ca2d);_0x1be2a3&&'ES256'==_0x1be2a3['alg']||(_0xd1c751=!0x1);}async function _0x329937(_0x290b63,_0x5272cb,_0x5897da){const _0x4feaae=window['Uint8Array']['from'](_0x58edd5(_0x5897da),_0x457344=>_0x457344['charCodeAt'](0x0)),_0x135da2=new window['TextEncoder']()['encode'](_0x290b63+'.'+_0x5272cb),_0x49f3a3=window['crypto']['subtle'];if(!_0x49f3a3)return;const _0x4f91e1=await _0x49f3a3['importKey']('jwk',_0x45abcb,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x49f3a3['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4f91e1,_0x4feaae,_0x135da2)||(_0xd1c751=!0x1);}}function _0x3658ff(_0x8945f1){return _0x8945f1['startsWith']('ey')?JSON['parse'](_0x58edd5(_0x8945f1)):null;}function _0x58edd5(_0x5250c4){return window['atob'](_0x5250c4['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x552488(_0x208d29){let _0x25b2ee=0x1505;function _0x1547f1(_0x3941bf){for(let _0x534c7e=0x0;_0x534c7e<_0x3941bf['length'];_0x534c7e++){const _0x132106=_0x3941bf['charCodeAt'](_0x534c7e);_0x25b2ee=(_0x25b2ee<<0x5)+_0x25b2ee+_0x132106,_0x25b2ee&=_0x25b2ee;}}function _0x1d8017(_0x1e0948){Array['isArray'](_0x1e0948)?_0x1e0948['forEach'](_0x1d8017):_0x1e0948&&'object'==typeof _0x1e0948?Object['entries'](_0x1e0948)['sort']()['forEach'](([_0x5b2a99,_0x5b1178])=>{_0x1547f1(_0x5b2a99),_0x1d8017(_0x5b1178);}):_0x1547f1(window['String'](_0x1e0948));}return _0x1d8017(_0x208d29),_0x25b2ee>>>0x0;}function _0x49e38b(_0x2b2ef9){return _0x2b2ef9['toString'](0x10)['padStart'](0x8,'0');}function _0x1f8d15(_0x1cd3bf){return _0x1cd3bf['split']('')['reverse']()['join']('');}function _0xacf5b2(){}_0x50bffe(await _0x4c1938());}_0x432203(_0x55f4ac['editor']);}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x903fa5=>Number(_0x903fa5)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0x439740){return h['includes'](_0x439740);}function v(_0x39816c){return Array['from'](_0x39816c['getStyleNames']())['filter'](E);}function F(_0x338d4b,_0x1f3793,_0x4b37b5){const {spanStyles:_0x46c215,stylesToBeHtmlElements:_0x51525b}=K(_0x338d4b,_0x4b37b5);!function(_0x2df3bd,_0x3f2b3c,_0xed5678){for(const _0xde000a in _0xed5678)_0xed5678[_0xde000a]['forEach'](([,_0x3e87c4])=>{const _0xe16865=_0x3f2b3c['createElement'](_0x3e87c4,[],_0x2df3bd['getChildren']());_0x3f2b3c['insertChild'](0x0,_0xe16865,_0x2df3bd);}),_0x3f2b3c['removeStyle'](_0xde000a,_0x2df3bd);}(_0x338d4b,_0x1f3793,_0x51525b),function(_0x496a8f,_0x4ab64f,_0x597dc2){if(!Object['keys'](_0x597dc2)['length'])return;const _0x499726=_0x4ab64f['createElement']('span',[],_0x496a8f['getChildren']());_0x4ab64f['setStyle'](_0x597dc2,_0x499726),_0x4ab64f['insertChild'](0x0,_0x499726,_0x496a8f),_0x4ab64f['removeStyle'](Object['keys'](_0x597dc2),_0x496a8f);}(_0x338d4b,_0x1f3793,_0x46c215);}function P(_0x6299d1,_0x2dd3dd,_0x58c270){const {spanStyles:_0x5ad67e}=K(_0x6299d1,_0x58c270),_0x27719c=Object['keys'](_0x5ad67e);if(!_0x27719c['length'])return;let _0x566d91=!0x1;for(const _0x42bc69 of _0x6299d1['getChildren']())if(_0x42bc69['is']('element','span')){_0x566d91=!0x0;for(const [_0x355828,_0x4c337f]of Object['entries'](_0x5ad67e))_0x42bc69['hasStyle'](_0x355828)||_0x2dd3dd['setStyle']({[_0x355828]:_0x4c337f},_0x42bc69);}_0x566d91&&_0x2dd3dd['removeStyle'](_0x27719c,_0x6299d1);}function K(_0x19b21b,_0x414543){const _0x91386={},_0x1c4ec6={};return _0x414543['forEach'](_0x15c0cd=>{const _0x24cc0d=_0x19b21b['getStyle'](_0x15c0cd);if(_0x24cc0d){if(function(_0x3d2172){return O['includes'](_0x3d2172);}(_0x15c0cd))_0x91386[_0x15c0cd]=_0x24cc0d;else{if(function(_0x40ae0e){return _0x40ae0e in L;}(_0x15c0cd)){const _0xe4814b=_0x24cc0d['split']('\x20');L[_0x15c0cd]['forEach'](([_0x439847,_0x20729a])=>{for(const _0xb3aee of _0xe4814b)('function'==typeof _0x439847&&_0x439847(_0xb3aee)||_0x439847===_0xb3aee)&&(_0x1c4ec6[_0x15c0cd]=[..._0x1c4ec6[_0x15c0cd]||[],[_0x439847,_0x20729a]]);});}}}}),{'spanStyles':_0x91386,'stylesToBeHtmlElements':_0x1c4ec6};}var b=class extends _0x49d65f{execute(_0x4627fe){const _0x42d918=new _0x472f14(_0x4627fe['content']['document']),_0x10661b=_0x42d918['createRangeIn'](_0x4627fe['content']),_0x1f8216=new _0x31a3e4(_0x42d918['document']['stylesProcessor']),_0x4736fc=[...new _0x1e70ae(_0x1f8216)['blockElements'],'font'],_0x3e39c8=_0x10661b['getItems']();for(const _0x3a8907 of _0x3e39c8)if(_0x3a8907['is']('element')&&_0x4736fc['includes'](_0x3a8907['name'])){if(_0x3a8907['hasStyle']('mso-list')&&'none'!==_0x3a8907['getStyle']('mso-list')){P(_0x3a8907,_0x42d918,v(_0x3a8907));continue;}F(_0x3a8907,_0x42d918,v(_0x3a8907));}}isActive(_0xcf2291){return super['isActive'](_0xcf2291)||u(_0xcf2291);}},x=class extends _0x2209bd{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x37244f];}init(){const _0x33daab=this['editor'],_0x2f6709=_0x33daab['plugins']['get']('PasteFromOffice'),_0x43aac8=_0x33daab['editing']['view']['document'],_0x531d9c=new b(_0x43aac8);_0x2f6709['registerNormalizer'](_0x531d9c,_0x3b0984['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x31af09=[this['editor']];for(const _0x18553b of _0x31af09){let _0x220e2f;for(const _0x56e10b in _0x18553b){const _0x25ae43=_0x56e10b,_0x59325e=_0x18553b[_0x25ae43];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x59325e||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x59325e||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x59325e||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x59325e||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x59325e||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x59325e||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x59325e){delete _0x18553b[_0x25ae43],_0x220e2f=_0x59325e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x220e2f&&_0x18553b['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x220e2f&&_0x18553b['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x220e2f&&_0x18553b['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x220e2f&&_0x18553b['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x220e2f&&_0x18553b['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x220e2f&&_0x18553b['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x2209bd{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x37244f,p,x];}};export{k as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x2c4808}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x4f3ad0,PasteFromOfficeMSWordNormalizer as _0x2ec24d}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x4a4895,uid as _0x27a12c}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x3d6fb1,ViewDomConverter as _0x142dba,ViewUpcastWriter as _0x5307d4}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x230fb9){return f['test'](_0x230fb9);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x12d283,_0x35d81e){const _0x359166=new Map();for(const [_0x2c6665,_0xf679a6]of _0x35d81e){if(!_0x2c6665['tagName']&&!_0x2c6665['className'])continue;const _0xfecb3=!_0x2c6665['tagName']||_0x12d283['name']===_0x2c6665['tagName'],_0x2a8e87=!_0x2c6665['className']||_0x12d283['hasClass'](_0x2c6665['className']);_0xfecb3&&_0x2a8e87&&_0x359166['set'](_0x2c6665,_0xf679a6);}return _0x359166;}function m(_0xaae47){const _0x1592fb={};for(let _0x54e8fe=0x0;_0x54e8fe<_0xaae47['length'];_0x54e8fe++){const _0x4da712=_0xaae47[_0x54e8fe],_0x41664f=_0xaae47['getPropertyValue'](_0x4da712);'initial'!==_0x41664f&&(_0x1592fb[_0x4da712]=_0x41664f);}return _0x1592fb;}function w(_0x17763a){const _0x5d461e=_0x17763a['split'](',')['map'](_0x700907=>_0x700907['trim']()),_0x50a3d9=[];for(const _0x35c129 of _0x5d461e){const _0x2b311c=l['exec'](_0x35c129);_0x2b311c&&_0x50a3d9['push'](_0x2b311c['groups']);}return _0x50a3d9;}function y(_0x1574c0){const _0x1c1c04={};for(const _0x349460 of _0x1574c0)Object['assign'](_0x1c1c04,_0x349460);return _0x1c1c04;}var g=class extends _0x2ec24d{execute(_0x49872d){const {styles:_0x9d1527,stylesString:_0x40c6c4}=_0x49872d['extraContent'],_0x265c2f=new _0x5307d4(_0x49872d['content']['document']),_0x1306f6=_0x265c2f['createRangeIn'](_0x49872d['content']),_0x254354=function(_0x3a44f2){const _0x3ca260={};for(const _0x12e780 of _0x3a44f2)for(const _0x1130d0 of _0x12e780['cssRules'])if(_0x1130d0 instanceof CSSStyleRule){const _0x126497=m(_0x1130d0['style']);_0x3ca260[_0x1130d0['selectorText']]=Object['assign']({},_0x3ca260[_0x1130d0['selectorText']]||{},_0x126497);}return _0x3ca260;}(_0x9d1527),_0x270042=function(_0x1ed9f0){const _0x58cb3d=new Map();for(const _0x510176 in _0x1ed9f0){const _0x223735=w(_0x510176),_0x5187bf=_0x1ed9f0[_0x510176];for(const _0x44992 of _0x223735)_0x58cb3d['set'](_0x44992,_0x5187bf);}return _0x58cb3d;}(_0x254354),_0x53f83f=function(_0x583b26){const _0x183ee6={},_0x1e4f4=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x5c1cb5=/\.(?<className>[\w-]+)/g;let _0x52d20f;for(;null!==(_0x52d20f=_0x1e4f4['exec'](_0x583b26));){const {selector:_0x381da1,color:_0x2ba7f4,patternType:_0x31236a}=_0x52d20f['groups'];if('auto'!==_0x2ba7f4['toLowerCase']()&&'none'!==_0x31236a['toLowerCase']()&&'auto'!==_0x31236a['toLowerCase']()){for(const _0x13ee87 of _0x381da1['matchAll'](_0x5c1cb5))_0x183ee6[_0x13ee87['groups']['className']]=_0x2ba7f4;}}return _0x183ee6;}(_0x40c6c4);for(const _0x20c3a7 of _0x1306f6){if('elementStart'!==_0x20c3a7['type'])continue;const _0x368c3c=_0x20c3a7['item'],_0x66a842=d(_0x368c3c,_0x270042),_0x128a9d=_0x66a842['size']?y(Array['from'](_0x66a842['values']())):{};if(!('background-color'in _0x128a9d)&&!('background'in _0x128a9d)){for(const [_0x41f388,_0x4011ac]of Object['entries'](_0x53f83f))if(_0x368c3c['hasClass'](_0x41f388)){_0x128a9d['background-color']=_0x4011ac;break;}}for(const _0x4c0cdf in _0x128a9d)_0x368c3c['hasStyle'](_0x4c0cdf)||_0x265c2f['setStyle'](_0x4c0cdf,_0x128a9d[_0x4c0cdf],_0x368c3c);}}isActive(_0x1f70da){return super['isActive'](_0x1f70da)||u(_0x1f70da);}},p=class extends _0x2c4808{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4f3ad0];}init(){const _0x110ee9=this['editor'],_0x16b001=_0x110ee9['plugins']['get']('PasteFromOffice'),_0x136a0a=_0x110ee9['editing']['view']['document'],_0xe57c80=new g(_0x136a0a);_0x16b001['registerNormalizer'](_0xe57c80,_0x4a4895['high']+0xb);}afterInit(){!async function(_0x562da2){const _0x2264a5='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x4c1a43=0x79410,_0x4842d1={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x565f9a(_0x3bf1d4){const _0x1cfa4a=new window['Promise'](_0x4f253e=>{_0x3bf1d4['once']('ready',_0x4f253e);}),_0x50c3f8=window['Date']['now'](),_0x57e315=_0x3bf1d4['config']['get']('licenseKey');async function _0xe226b2(){let _0x1f5f05,_0x164e23=null,_0x4da3ab=null;try{return'GPL'==_0x57e315?'NotAllowed':(_0x1f5f05=_0xc82d32(),_0x1f5f05?(_0x1f5f05['usageEndpoint']&&(_0x4da3ab=_0x20b421(_0x1f5f05['usageEndpoint'],_0x1f5f05['jti'])),await _0x2dea39()?_0x1b1efb()?_0x419bf9()?'Expired':_0x78d341()?('evaluation'==_0x1f5f05['licenseType']&&(_0x164e23=_0x414adb('EvaluationLimit')),await _0x3ce14f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x419bf9(){const _0x28305f=['evaluation','trial']['includes'](_0x1f5f05['licenseType'])?_0x50c3f8/0x3e8:0xe10*_0x4c1a43;return _0x1f5f05['exp']<_0x28305f;}function _0x1b1efb(){const _0x491d12=_0x1f5f05['features'];return!!_0x491d12&&(!!_0x491d12['includes']('*')||(!!_0x491d12['includes']('POE')||(!!_0x491d12['includes']('PP')||!(!_0x491d12['includes']('TRILIUM')||!_0x4b070f()))));}function _0x78d341(){const _0x259af6=_0x1f5f05['licensedHosts'];if(!_0x259af6||0x0==_0x259af6['length'])return!0x0;const {hostname:_0x318937}=new URL(window['location']['href']);if(_0x259af6['includes'](_0x318937))return!0x0;const _0x5a2c3b=_0x318937['split']('.');return _0x259af6['filter'](_0x7cd582=>_0x7cd582['includes']('*'))['map'](_0x218e4b=>_0x218e4b['split']('.'))['filter'](_0x288e66=>_0x288e66['length']<=_0x5a2c3b['length'])['map'](_0x1ad39c=>Array(_0x5a2c3b['length']-_0x1ad39c['length'])['fill']('*'===_0x1ad39c[0x0]?'*':'')['concat'](_0x1ad39c))['some'](_0xdc3e91=>_0x5a2c3b['every']((_0x5a1897,_0x35919a)=>_0xdc3e91[_0x35919a]===_0x5a1897||'*'===_0xdc3e91[_0x35919a]));}function _0x3ce14f(){return _0x164e23&&_0x4da3ab?new window['Promise']((_0x382900,_0x2f2296)=>{_0x164e23['then'](_0x382900,_0x2f2296),_0x4da3ab['then'](_0x3be1dd=>{'Valid'!=_0x3be1dd&&_0x382900(_0x3be1dd);},_0x2f2296);}):_0x164e23||_0x4da3ab||'Valid';}}function _0x20b421(_0x28e4f2,_0x197abb){return new window['Promise'](_0x1bccb0=>{if(_0xb6bdd9())return _0x1bccb0('Valid');_0x25a054(),_0x3bf1d4['decorate']('_sendUsageRequest');let _0x174bf4=!0x1;const _0x18abd0=_0x27a12c();function _0x41f281(_0x50b8ec){return!!_0x50b8ec&&('object'==typeof _0x50b8ec||'function'==typeof _0x50b8ec)&&'function'==typeof _0x50b8ec['then']&&'function'==typeof _0x50b8ec['catch'];}function _0x22ea68(_0x1020d4){_0x15de70(_0x1020d4)['then'](_0x2df96c=>_0x2df96c&&'ok'==_0x2df96c['status']?_0x32f307(_0x5691c1(_0x18abd0+_0x197abb))!=_0x2df96c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x325685=>(_0x5705cc(),_0x325685),()=>{const _0xd26d6b=_0x8c3bf2();return null==_0xd26d6b?(_0x5705cc(),'Valid'):_0x50c3f8-_0xd26d6b>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1bccb0)['catch'](()=>{_0x1bccb0('UsageLimit');});const _0x5e9420=0x36ee80;function _0x5705cc(){const _0x554626='llct-'+_0x32f307(_0x5691c1(_0x28e4f2)),_0x312314=_0x559c84(_0x32f307(window['Math']['ceil'](_0x50c3f8/_0x5e9420)));window['localStorage']['setItem'](_0x554626,_0x312314);}function _0x8c3bf2(){const _0x18665a='llct-'+_0x32f307(_0x5691c1(_0x28e4f2)),_0x133071=window['localStorage']['getItem'](_0x18665a);return _0x133071?window['parseInt'](_0x559c84(_0x133071),0x10)*_0x5e9420:null;}function _0x15de70(_0xc404a0){return new window['Promise']((_0x4b5c6f,_0xd3ec09)=>{_0xc404a0['then'](_0x4b5c6f,_0xd3ec09),window['setTimeout'](_0xd3ec09,0x1d4c0);});}}_0x3bf1d4['on']('_sendUsageRequest',(_0x4c2339,_0x1e3a94)=>{if(_0x1e3a94[0x0]!=_0x28e4f2)return _0x1bccb0('UsageLimit');_0x1e3a94[0x1]={..._0x1e3a94[0x1],'requestId':_0x18abd0};},{'priority':'high'}),_0x3bf1d4['on']('_sendUsageRequest',_0x5219ac=>{_0x41f281(_0x5219ac['return'])&&(_0x174bf4=!0x0,_0x22ea68(_0x5219ac['return']));},{'priority':'low'}),_0x1cfa4a['then'](()=>{_0x174bf4||_0x1bccb0('UsageLimit');});});function _0xb6bdd9(){return'auto'==_0x3bf1d4['editing']['view']['_overlayModeHint'];}function _0x25a054(){_0x3bf1d4['editing']['view']['_overlayModeHint']='auto';}}function _0x414adb(_0x3d50e0){const _0x157155=[new window['Promise'](_0x558735=>setTimeout(_0x558735,0x93ecc)),_0x1cfa4a['then'](()=>new window['Promise'](_0x5b7187=>{let _0x3d0285=0x0;_0x3bf1d4['model']['on']('applyOperation',(_0x3bf7f5,_0x1f059d)=>{_0x1f059d[0x0]['isDocumentOperation']&&_0x3d0285++,0x5e8==_0x3d0285&&(_0x5b7187(),_0x3bf7f5['off']());});}))];return window['Promise']['race'](_0x157155)['then'](()=>_0x3d50e0);}async function _0x1bcfbb(){await _0x1cfa4a,_0x3bf1d4['model']['change']=_0x43ae14,_0x3bf1d4['model']['enqueueChange']=_0x43ae14,_0x3bf1d4['enableReadOnlyMode']('model');}function _0x4b070f(){return window['glob']&&window['glob']['triliumVersion'];}function _0x298ea3(_0xf4eb48){const _0x42cbfe=_0x213b6e();_0x3bf1d4[_0x42cbfe]='pasteFromOfficeEnhancedLicenseKey'+_0xf4eb48,'Valid'!=_0xf4eb48&&_0x1bcfbb();}function _0x213b6e(){const _0x54833c=window['String'](window['performance']['now']())['replace']('.','');let _0x237b3b='u';for(let _0x167930=0x0;_0x167930<_0x54833c['length'];_0x167930+=0x2){let _0x4e52a8=window['parseInt'](_0x54833c['substring'](_0x167930,_0x167930+0x2));_0x4e52a8>=0x3e&&(_0x4e52a8-=0x3e),_0x237b3b+=_0x2264a5[_0x4e52a8];}return _0x237b3b;}function _0xc82d32(){const _0x14df0c=_0x57e315['split']('.');if(0x3!=_0x14df0c['length'])return null;return _0x13573c(_0x14df0c[0x1]);function _0x13573c(_0x36888e){const _0x360026=_0x23b57c(_0x36888e);return _0x360026&&_0x29d238()?_0x360026:null;function _0x29d238(){const _0x1183a6=_0x360026['jti'],_0x45ba29=window['parseInt'](_0x1183a6['substring'](_0x1183a6['length']-0x8),0x10),_0x2773d8={..._0x360026,'jti':_0x1183a6['substring'](0x0,_0x1183a6['length']-0x8)};return delete _0x2773d8['vc'],_0x5691c1(_0x2773d8)==_0x45ba29;}}}async function _0x2dea39(){let _0x584247=!0x0;try{const [_0x5e68df,_0x192b92,_0x54c589]=_0x57e315['split']('.');return _0x2e4f3c(_0x5e68df),await _0x4fa8e5(_0x5e68df,_0x192b92,_0x54c589),_0x584247;}catch{return!0x1;}function _0x2e4f3c(_0x28b16){const _0x2eb14c=_0x23b57c(_0x28b16);_0x2eb14c&&'ES256'==_0x2eb14c['alg']||(_0x584247=!0x1);}async function _0x4fa8e5(_0x5632ac,_0x2b9455,_0x128f05){const _0x52dbbd=window['Uint8Array']['from'](_0x2e1cd2(_0x128f05),_0x207b3c=>_0x207b3c['charCodeAt'](0x0)),_0x1b57b5=new window['TextEncoder']()['encode'](_0x5632ac+'.'+_0x2b9455),_0x5a6e2e=window['crypto']['subtle'];if(!_0x5a6e2e)return;const _0x51c1dc=await _0x5a6e2e['importKey']('jwk',_0x4842d1,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5a6e2e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x51c1dc,_0x52dbbd,_0x1b57b5)||(_0x584247=!0x1);}}function _0x23b57c(_0x908cef){return _0x908cef['startsWith']('ey')?JSON['parse'](_0x2e1cd2(_0x908cef)):null;}function _0x2e1cd2(_0x573686){return window['atob'](_0x573686['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5691c1(_0x1f9b7e){let _0x1bab0c=0x1505;function _0x1197bf(_0x5a7a9a){for(let _0x10ee26=0x0;_0x10ee26<_0x5a7a9a['length'];_0x10ee26++){const _0x41bd09=_0x5a7a9a['charCodeAt'](_0x10ee26);_0x1bab0c=(_0x1bab0c<<0x5)+_0x1bab0c+_0x41bd09,_0x1bab0c&=_0x1bab0c;}}function _0x4db558(_0x51ff46){Array['isArray'](_0x51ff46)?_0x51ff46['forEach'](_0x4db558):_0x51ff46&&'object'==typeof _0x51ff46?Object['entries'](_0x51ff46)['sort']()['forEach'](([_0x4cce31,_0x368ac3])=>{_0x1197bf(_0x4cce31),_0x4db558(_0x368ac3);}):_0x1197bf(window['String'](_0x51ff46));}return _0x4db558(_0x1f9b7e),_0x1bab0c>>>0x0;}function _0x32f307(_0x47c554){return _0x47c554['toString'](0x10)['padStart'](0x8,'0');}function _0x559c84(_0x325c0e){return _0x325c0e['split']('')['reverse']()['join']('');}function _0x43ae14(){}_0x298ea3(await _0xe226b2());}_0x565f9a(_0x562da2['editor']);}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x4ffb29=>Number(_0x4ffb29)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0xfac2e7){return h['includes'](_0xfac2e7);}function v(_0x425f90){return Array['from'](_0x425f90['getStyleNames']())['filter'](E);}function F(_0x1baf56,_0x1f93c8,_0x4f36e2){const {spanStyles:_0x114fcf,stylesToBeHtmlElements:_0x18566d}=K(_0x1baf56,_0x4f36e2);!function(_0x312dca,_0xfdc7ed,_0x55a4fc){for(const _0x52f6c2 in _0x55a4fc)_0x55a4fc[_0x52f6c2]['forEach'](([,_0x3a9c52])=>{const _0x5d71b0=_0xfdc7ed['createElement'](_0x3a9c52,[],_0x312dca['getChildren']());_0xfdc7ed['insertChild'](0x0,_0x5d71b0,_0x312dca);}),_0xfdc7ed['removeStyle'](_0x52f6c2,_0x312dca);}(_0x1baf56,_0x1f93c8,_0x18566d),function(_0x16b49d,_0x2aeca8,_0x49e8b4){if(!Object['keys'](_0x49e8b4)['length'])return;const _0x3bcf4d=_0x2aeca8['createElement']('span',[],_0x16b49d['getChildren']());_0x2aeca8['setStyle'](_0x49e8b4,_0x3bcf4d),_0x2aeca8['insertChild'](0x0,_0x3bcf4d,_0x16b49d),_0x2aeca8['removeStyle'](Object['keys'](_0x49e8b4),_0x16b49d);}(_0x1baf56,_0x1f93c8,_0x114fcf);}function P(_0x5489ee,_0x3d5373,_0x4056ea){const {spanStyles:_0x207dcc}=K(_0x5489ee,_0x4056ea),_0x331362=Object['keys'](_0x207dcc);if(!_0x331362['length'])return;let _0xed6fc8=!0x1;for(const _0x4247aa of _0x5489ee['getChildren']())if(_0x4247aa['is']('element','span')){_0xed6fc8=!0x0;for(const [_0x2a3b87,_0x363bdc]of Object['entries'](_0x207dcc))_0x4247aa['hasStyle'](_0x2a3b87)||_0x3d5373['setStyle']({[_0x2a3b87]:_0x363bdc},_0x4247aa);}_0xed6fc8&&_0x3d5373['removeStyle'](_0x331362,_0x5489ee);}function K(_0x52f22a,_0x4bfa7d){const _0x31a9ee={},_0xb01b08={};return _0x4bfa7d['forEach'](_0x1a5e79=>{const _0x5a89bc=_0x52f22a['getStyle'](_0x1a5e79);if(_0x5a89bc){if(function(_0x46b33c){return O['includes'](_0x46b33c);}(_0x1a5e79))_0x31a9ee[_0x1a5e79]=_0x5a89bc;else{if(function(_0x1db92b){return _0x1db92b in L;}(_0x1a5e79)){const _0x1d118a=_0x5a89bc['split']('\x20');L[_0x1a5e79]['forEach'](([_0x270e4a,_0x1832ec])=>{for(const _0x34bb62 of _0x1d118a)('function'==typeof _0x270e4a&&_0x270e4a(_0x34bb62)||_0x270e4a===_0x34bb62)&&(_0xb01b08[_0x1a5e79]=[..._0xb01b08[_0x1a5e79]||[],[_0x270e4a,_0x1832ec]]);});}}}}),{'spanStyles':_0x31a9ee,'stylesToBeHtmlElements':_0xb01b08};}var b=class extends _0x2ec24d{execute(_0x1a68fd){const _0x31bce7=new _0x5307d4(_0x1a68fd['content']['document']),_0x125e69=_0x31bce7['createRangeIn'](_0x1a68fd['content']),_0x19b766=new _0x3d6fb1(_0x31bce7['document']['stylesProcessor']),_0x1ca0d5=[...new _0x142dba(_0x19b766)['blockElements'],'font'],_0x50ae3b=_0x125e69['getItems']();for(const _0x5e5251 of _0x50ae3b)if(_0x5e5251['is']('element')&&_0x1ca0d5['includes'](_0x5e5251['name'])){if(_0x5e5251['hasStyle']('mso-list')&&'none'!==_0x5e5251['getStyle']('mso-list')){P(_0x5e5251,_0x31bce7,v(_0x5e5251));continue;}F(_0x5e5251,_0x31bce7,v(_0x5e5251));}}isActive(_0x522f52){return super['isActive'](_0x522f52)||u(_0x522f52);}},x=class extends _0x2c4808{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4f3ad0];}init(){const _0x4c9795=this['editor'],_0x5e4a10=_0x4c9795['plugins']['get']('PasteFromOffice'),_0x248678=_0x4c9795['editing']['view']['document'],_0x239679=new b(_0x248678);_0x5e4a10['registerNormalizer'](_0x239679,_0x4a4895['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x48b79d=[this['editor']];for(const _0x55d951 of _0x48b79d){let _0x253f81;for(const _0x1127c4 in _0x55d951){const _0x17f0fc=_0x1127c4,_0x4dc42a=_0x55d951[_0x17f0fc];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4dc42a){delete _0x55d951[_0x17f0fc],_0x253f81=_0x4dc42a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x253f81&&_0x55d951['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x253f81&&_0x55d951['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x253f81&&_0x55d951['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x253f81&&_0x55d951['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x253f81&&_0x55d951['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x253f81&&_0x55d951['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x2c4808{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4f3ad0,p,x];}};export{k as PasteFromOfficeEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
|
|
3
|
-
"version": "48.5.0-alpha.
|
|
3
|
+
"version": "48.5.0-alpha.3",
|
|
4
4
|
"description": "Enhanced paste from Office feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.5.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.5.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.5.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.5.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.3",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.5.0-alpha.3",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.5.0-alpha.3",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.5.0-alpha.3",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.5.0-alpha.3"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|