@ckeditor/ckeditor5-paste-from-office-enhanced 48.5.0 → 48.5.1
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 _0x48fd2d}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x4ee111,PasteFromOfficeMSWordNormalizer as _0x20874d}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x499327,uid as _0x13e6bc}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x50983f,ViewDomConverter as _0x5392c1,ViewUpcastWriter as _0xba758d}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x30c96f){return f['test'](_0x30c96f);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x17be04,_0x4a2327){const _0x54ff4e=new Map();for(const [_0x1f5154,_0x480e46]of _0x4a2327){if(!_0x1f5154['tagName']&&!_0x1f5154['className'])continue;const _0x5ad44c=!_0x1f5154['tagName']||_0x17be04['name']===_0x1f5154['tagName'],_0x5dadf6=!_0x1f5154['className']||_0x17be04['hasClass'](_0x1f5154['className']);_0x5ad44c&&_0x5dadf6&&_0x54ff4e['set'](_0x1f5154,_0x480e46);}return _0x54ff4e;}function m(_0x1bb3e7){const _0x3a5ab2={};for(let _0x3188d9=0x0;_0x3188d9<_0x1bb3e7['length'];_0x3188d9++){const _0x1434dc=_0x1bb3e7[_0x3188d9],_0x5764ef=_0x1bb3e7['getPropertyValue'](_0x1434dc);'initial'!==_0x5764ef&&(_0x3a5ab2[_0x1434dc]=_0x5764ef);}return _0x3a5ab2;}function w(_0x157979){const _0x269778=_0x157979['split'](',')['map'](_0x9a8bbd=>_0x9a8bbd['trim']()),_0x58b89b=[];for(const _0x294295 of _0x269778){const _0x5a292c=l['exec'](_0x294295);_0x5a292c&&_0x58b89b['push'](_0x5a292c['groups']);}return _0x58b89b;}function y(_0x4fd259){const _0x4c10d9={};for(const _0x11958b of _0x4fd259)Object['assign'](_0x4c10d9,_0x11958b);return _0x4c10d9;}var g=class extends _0x20874d{execute(_0x1a5cdf){const {styles:_0x5ee891,stylesString:_0x4e37a6}=_0x1a5cdf['extraContent'],_0x22b5fa=new _0xba758d(_0x1a5cdf['content']['document']),_0x49f8e0=_0x22b5fa['createRangeIn'](_0x1a5cdf['content']),_0x496b02=function(_0x418063){const _0x591e84={};for(const _0x2fb065 of _0x418063)for(const _0x5b48b5 of _0x2fb065['cssRules'])if(_0x5b48b5 instanceof CSSStyleRule){const _0x4f758f=m(_0x5b48b5['style']);_0x591e84[_0x5b48b5['selectorText']]=Object['assign']({},_0x591e84[_0x5b48b5['selectorText']]||{},_0x4f758f);}return _0x591e84;}(_0x5ee891),_0x5ce065=function(_0x3dc602){const _0x34a719=new Map();for(const _0x1e1e27 in _0x3dc602){const _0x374f04=w(_0x1e1e27),_0x1340f9=_0x3dc602[_0x1e1e27];for(const _0x546b58 of _0x374f04)_0x34a719['set'](_0x546b58,_0x1340f9);}return _0x34a719;}(_0x496b02),_0x4563ef=function(_0x38f9b7){const _0x19e9de={},_0x2823f7=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x3acacf=/\.(?<className>[\w-]+)/g;let _0x2ed261;for(;null!==(_0x2ed261=_0x2823f7['exec'](_0x38f9b7));){const {selector:_0x429a0b,color:_0xce636a,patternType:_0x197046}=_0x2ed261['groups'];if('auto'!==_0xce636a['toLowerCase']()&&'none'!==_0x197046['toLowerCase']()&&'auto'!==_0x197046['toLowerCase']()){for(const _0x508bba of _0x429a0b['matchAll'](_0x3acacf))_0x19e9de[_0x508bba['groups']['className']]=_0xce636a;}}return _0x19e9de;}(_0x4e37a6);for(const _0x1e74d6 of _0x49f8e0){if('elementStart'!==_0x1e74d6['type'])continue;const _0x4a2c77=_0x1e74d6['item'],_0x1c2e1d=d(_0x4a2c77,_0x5ce065),_0x2a4534=_0x1c2e1d['size']?y(Array['from'](_0x1c2e1d['values']())):{};if(!('background-color'in _0x2a4534)&&!('background'in _0x2a4534)){for(const [_0x5cf3ec,_0x13a53e]of Object['entries'](_0x4563ef))if(_0x4a2c77['hasClass'](_0x5cf3ec)){_0x2a4534['background-color']=_0x13a53e;break;}}for(const _0x55e5b5 in _0x2a4534)_0x4a2c77['hasStyle'](_0x55e5b5)||_0x22b5fa['setStyle'](_0x55e5b5,_0x2a4534[_0x55e5b5],_0x4a2c77);}}isActive(_0x201b71){return super['isActive'](_0x201b71)||u(_0x201b71);}},p=class extends _0x48fd2d{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4ee111];}init(){const _0x19b837=this['editor'],_0x276e21=_0x19b837['plugins']['get']('PasteFromOffice'),_0x4713d2=_0x19b837['editing']['view']['document'],_0x32f57a=new g(_0x4713d2);_0x276e21['registerNormalizer'](_0x32f57a,_0x499327['high']+0xb);}afterInit(){!async function(_0x4f4701){const _0x19d12f='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x166da1=0x79470,_0x4c25a0={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x5f32d1(_0x4a8b45){const _0x2e7910=new window['Promise'](_0x2b78b1=>{_0x4a8b45['once']('ready',_0x2b78b1);}),_0x73bb88=window['Date']['now'](),_0xbc5a0=_0x4a8b45['config']['get']('licenseKey');async function _0x3aeb45(){let _0x40726e,_0xdcb071=null,_0x5e87ab=null;try{return'GPL'==_0xbc5a0?'NotAllowed':(_0x40726e=_0x5a1c1a(),_0x40726e?(_0x40726e['usageEndpoint']&&(_0x5e87ab=_0x406ba0(_0x40726e['usageEndpoint'],_0x40726e['jti'])),await _0x1b2da2()?_0x5761bb()?_0x5ce2cc()?'Expired':_0x57195f()?('evaluation'==_0x40726e['licenseType']&&(_0xdcb071=_0x7f8fc2('EvaluationLimit')),await _0x5e3987()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5ce2cc(){const _0x359d45=['evaluation','trial']['includes'](_0x40726e['licenseType'])?_0x73bb88/0x3e8:0xe10*_0x166da1;return _0x40726e['exp']<_0x359d45;}function _0x5761bb(){const _0x9488b0=_0x40726e['features'];return!!_0x9488b0&&(!!_0x9488b0['includes']('*')||(!!_0x9488b0['includes']('POE')||(!!_0x9488b0['includes']('PP')||!(!_0x9488b0['includes']('TRILIUM')||!_0x491021()))));}function _0x57195f(){const _0x3a64dd=_0x40726e['licensedHosts'];if(!_0x3a64dd||0x0==_0x3a64dd['length'])return!0x0;const {hostname:_0x15becd}=new URL(window['location']['href']);if(_0x3a64dd['includes'](_0x15becd))return!0x0;const _0x44236c=_0x15becd['split']('.');return _0x3a64dd['filter'](_0x5bf472=>_0x5bf472['includes']('*'))['map'](_0x1d093f=>_0x1d093f['split']('.'))['filter'](_0x151a2f=>_0x151a2f['length']<=_0x44236c['length'])['map'](_0x4661a6=>Array(_0x44236c['length']-_0x4661a6['length'])['fill']('*'===_0x4661a6[0x0]?'*':'')['concat'](_0x4661a6))['some'](_0x7da743=>_0x44236c['every']((_0x40eff7,_0x1ce00d)=>_0x7da743[_0x1ce00d]===_0x40eff7||'*'===_0x7da743[_0x1ce00d]));}function _0x5e3987(){return _0xdcb071&&_0x5e87ab?new window['Promise']((_0x27c16c,_0x506126)=>{_0xdcb071['then'](_0x27c16c,_0x506126),_0x5e87ab['then'](_0x409f6d=>{'Valid'!=_0x409f6d&&_0x27c16c(_0x409f6d);},_0x506126);}):_0xdcb071||_0x5e87ab||'Valid';}}function _0x406ba0(_0x3ec413,_0x389db9){return new window['Promise'](_0x4cb36b=>{if(_0x3f1a9e())return _0x4cb36b('Valid');_0x26cffd(),_0x4a8b45['decorate']('_sendUsageRequest');let _0x1b7647=!0x1;const _0x40e91a=_0x13e6bc();function _0x3a6893(_0x368672){return!!_0x368672&&('object'==typeof _0x368672||'function'==typeof _0x368672)&&'function'==typeof _0x368672['then']&&'function'==typeof _0x368672['catch'];}function _0x71f07e(_0x9dfa3b){_0x56cc0c(_0x9dfa3b)['then'](_0x410b75=>_0x410b75&&'ok'==_0x410b75['status']?_0x3c889e(_0xf1c845(_0x40e91a+_0x389db9))!=_0x410b75['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x42994f=>(_0x23b0ce(),_0x42994f),()=>{const _0x1967fa=_0x3c4839();return null==_0x1967fa?(_0x23b0ce(),'Valid'):_0x73bb88-_0x1967fa>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4cb36b)['catch'](()=>{_0x4cb36b('UsageLimit');});const _0x49caa9=0x36ee80;function _0x23b0ce(){const _0xfb1a3d='llct-'+_0x3c889e(_0xf1c845(_0x3ec413)),_0x3faa32=_0x23df51(_0x3c889e(window['Math']['ceil'](_0x73bb88/_0x49caa9)));window['localStorage']['setItem'](_0xfb1a3d,_0x3faa32);}function _0x3c4839(){const _0x26c53c='llct-'+_0x3c889e(_0xf1c845(_0x3ec413)),_0x30369a=window['localStorage']['getItem'](_0x26c53c);return _0x30369a?window['parseInt'](_0x23df51(_0x30369a),0x10)*_0x49caa9:null;}function _0x56cc0c(_0x48bc26){return new window['Promise']((_0x332d80,_0x16dcb4)=>{_0x48bc26['then'](_0x332d80,_0x16dcb4),window['setTimeout'](_0x16dcb4,0x1d4c0);});}}_0x4a8b45['on']('_sendUsageRequest',(_0x389d8c,_0x3397f1)=>{if(_0x3397f1[0x0]!=_0x3ec413)return _0x4cb36b('UsageLimit');_0x3397f1[0x1]={..._0x3397f1[0x1],'requestId':_0x40e91a};},{'priority':'high'}),_0x4a8b45['on']('_sendUsageRequest',_0x5e9633=>{_0x3a6893(_0x5e9633['return'])&&(_0x1b7647=!0x0,_0x71f07e(_0x5e9633['return']));},{'priority':'low'}),_0x2e7910['then'](()=>{_0x1b7647||_0x4cb36b('UsageLimit');});});function _0x3f1a9e(){return'auto'==_0x4a8b45['editing']['view']['_overlayModeHint'];}function _0x26cffd(){_0x4a8b45['editing']['view']['_overlayModeHint']='auto';}}function _0x7f8fc2(_0x58ad7b){const _0x498cc0=[new window['Promise'](_0x17cba0=>setTimeout(_0x17cba0,0x93ecc)),_0x2e7910['then'](()=>new window['Promise'](_0x2099ed=>{let _0x3d22eb=0x0;_0x4a8b45['model']['on']('applyOperation',(_0x43104f,_0x476c66)=>{_0x476c66[0x0]['isDocumentOperation']&&_0x3d22eb++,0x5e8==_0x3d22eb&&(_0x2099ed(),_0x43104f['off']());});}))];return window['Promise']['race'](_0x498cc0)['then'](()=>_0x58ad7b);}async function _0x915333(){await _0x2e7910,_0x4a8b45['model']['change']=_0x145b22,_0x4a8b45['model']['enqueueChange']=_0x145b22,_0x4a8b45['enableReadOnlyMode']('model');}function _0x491021(){return window['glob']&&window['glob']['triliumVersion'];}function _0x3b9752(_0x5d989c){const _0x58ab32=_0x37c9a0();_0x4a8b45[_0x58ab32]='pasteFromOfficeEnhancedLicenseKey'+_0x5d989c,'Valid'!=_0x5d989c&&_0x915333();}function _0x37c9a0(){const _0x58b4ad=window['String'](window['performance']['now']())['replace']('.','');let _0xf900fa='u';for(let _0x3dbbe8=0x0;_0x3dbbe8<_0x58b4ad['length'];_0x3dbbe8+=0x2){let _0x6a3b36=window['parseInt'](_0x58b4ad['substring'](_0x3dbbe8,_0x3dbbe8+0x2));_0x6a3b36>=0x3e&&(_0x6a3b36-=0x3e),_0xf900fa+=_0x19d12f[_0x6a3b36];}return _0xf900fa;}function _0x5a1c1a(){const _0x115c32=_0xbc5a0['split']('.');if(0x3!=_0x115c32['length'])return null;return _0x2b8052(_0x115c32[0x1]);function _0x2b8052(_0x33ec1e){const _0x5b8dfd=_0x210cb2(_0x33ec1e);return _0x5b8dfd&&_0x127261()?_0x5b8dfd:null;function _0x127261(){const _0x1d4623=_0x5b8dfd['jti'],_0x4dc17d=window['parseInt'](_0x1d4623['substring'](_0x1d4623['length']-0x8),0x10),_0x48581a={..._0x5b8dfd,'jti':_0x1d4623['substring'](0x0,_0x1d4623['length']-0x8)};return delete _0x48581a['vc'],_0xf1c845(_0x48581a)==_0x4dc17d;}}}async function _0x1b2da2(){let _0x19f1bc=!0x0;try{const [_0x45848c,_0x395919,_0x14a00d]=_0xbc5a0['split']('.');return _0xc3ee5e(_0x45848c),await _0xcf7e99(_0x45848c,_0x395919,_0x14a00d),_0x19f1bc;}catch{return!0x1;}function _0xc3ee5e(_0x27d6f8){const _0x4c01e8=_0x210cb2(_0x27d6f8);_0x4c01e8&&'ES256'==_0x4c01e8['alg']||(_0x19f1bc=!0x1);}async function _0xcf7e99(_0x45253b,_0xd691a7,_0x2441e7){const _0x478bbc=window['Uint8Array']['from'](_0x3b3c2f(_0x2441e7),_0x47589a=>_0x47589a['charCodeAt'](0x0)),_0x5491eb=new window['TextEncoder']()['encode'](_0x45253b+'.'+_0xd691a7),_0x2dd5a6=window['crypto']['subtle'];if(!_0x2dd5a6)return;const _0x429e6a=await _0x2dd5a6['importKey']('jwk',_0x4c25a0,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2dd5a6['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x429e6a,_0x478bbc,_0x5491eb)||(_0x19f1bc=!0x1);}}function _0x210cb2(_0x3019f6){return _0x3019f6['startsWith']('ey')?JSON['parse'](_0x3b3c2f(_0x3019f6)):null;}function _0x3b3c2f(_0x27a427){return window['atob'](_0x27a427['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xf1c845(_0x51d684){let _0x35d9a=0x1505;function _0x4fe479(_0x514981){for(let _0x21f62a=0x0;_0x21f62a<_0x514981['length'];_0x21f62a++){const _0x40532f=_0x514981['charCodeAt'](_0x21f62a);_0x35d9a=(_0x35d9a<<0x5)+_0x35d9a+_0x40532f,_0x35d9a&=_0x35d9a;}}function _0x2a2607(_0x21aa76){Array['isArray'](_0x21aa76)?_0x21aa76['forEach'](_0x2a2607):_0x21aa76&&'object'==typeof _0x21aa76?Object['entries'](_0x21aa76)['sort']()['forEach'](([_0x14d10b,_0x12e9c8])=>{_0x4fe479(_0x14d10b),_0x2a2607(_0x12e9c8);}):_0x4fe479(window['String'](_0x21aa76));}return _0x2a2607(_0x51d684),_0x35d9a>>>0x0;}function _0x3c889e(_0x54ac6b){return _0x54ac6b['toString'](0x10)['padStart'](0x8,'0');}function _0x23df51(_0xea7411){return _0xea7411['split']('')['reverse']()['join']('');}function _0x145b22(){}_0x3b9752(await _0x3aeb45());}_0x5f32d1(_0x4f4701['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'],[_0x3accb7=>Number(_0x3accb7)>=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(_0x41226c){return h['includes'](_0x41226c);}function v(_0x419774){return Array['from'](_0x419774['getStyleNames']())['filter'](E);}function F(_0x3f84eb,_0x475949,_0x465cda){const {spanStyles:_0x1e2ca4,stylesToBeHtmlElements:_0x30481c}=K(_0x3f84eb,_0x465cda);!function(_0x382b60,_0x367d5a,_0x23dc9f){for(const _0xe4fccd in _0x23dc9f)_0x23dc9f[_0xe4fccd]['forEach'](([,_0x534fa0])=>{const _0x37d30a=_0x367d5a['createElement'](_0x534fa0,[],_0x382b60['getChildren']());_0x367d5a['insertChild'](0x0,_0x37d30a,_0x382b60);}),_0x367d5a['removeStyle'](_0xe4fccd,_0x382b60);}(_0x3f84eb,_0x475949,_0x30481c),function(_0x1a6f74,_0x3062a1,_0x2e60f7){if(!Object['keys'](_0x2e60f7)['length'])return;const _0x13c73b=_0x3062a1['createElement']('span',[],_0x1a6f74['getChildren']());_0x3062a1['setStyle'](_0x2e60f7,_0x13c73b),_0x3062a1['insertChild'](0x0,_0x13c73b,_0x1a6f74),_0x3062a1['removeStyle'](Object['keys'](_0x2e60f7),_0x1a6f74);}(_0x3f84eb,_0x475949,_0x1e2ca4);}function P(_0x30c623,_0x5f5232,_0x47fe22){const {spanStyles:_0x471a96}=K(_0x30c623,_0x47fe22),_0x14783d=Object['keys'](_0x471a96);if(!_0x14783d['length'])return;let _0x1c59b6=!0x1;for(const _0x4efc63 of _0x30c623['getChildren']())if(_0x4efc63['is']('element','span')){_0x1c59b6=!0x0;for(const [_0x3d6d2f,_0x33aaf1]of Object['entries'](_0x471a96))_0x4efc63['hasStyle'](_0x3d6d2f)||_0x5f5232['setStyle']({[_0x3d6d2f]:_0x33aaf1},_0x4efc63);}_0x1c59b6&&_0x5f5232['removeStyle'](_0x14783d,_0x30c623);}function K(_0x96f34d,_0xdb5db3){const _0x4a330f={},_0x19246a={};return _0xdb5db3['forEach'](_0xfcff0c=>{const _0x101800=_0x96f34d['getStyle'](_0xfcff0c);if(_0x101800){if(function(_0x2f5bce){return O['includes'](_0x2f5bce);}(_0xfcff0c))_0x4a330f[_0xfcff0c]=_0x101800;else{if(function(_0xa4c9e9){return _0xa4c9e9 in L;}(_0xfcff0c)){const _0x47ef92=_0x101800['split']('\x20');L[_0xfcff0c]['forEach'](([_0x1310a2,_0x242964])=>{for(const _0x481a1e of _0x47ef92)('function'==typeof _0x1310a2&&_0x1310a2(_0x481a1e)||_0x1310a2===_0x481a1e)&&(_0x19246a[_0xfcff0c]=[..._0x19246a[_0xfcff0c]||[],[_0x1310a2,_0x242964]]);});}}}}),{'spanStyles':_0x4a330f,'stylesToBeHtmlElements':_0x19246a};}var b=class extends _0x20874d{execute(_0x3aefe6){const _0xbe4e30=new _0xba758d(_0x3aefe6['content']['document']),_0x901c76=_0xbe4e30['createRangeIn'](_0x3aefe6['content']),_0xf4ae1d=new _0x50983f(_0xbe4e30['document']['stylesProcessor']),_0x1bb137=[...new _0x5392c1(_0xf4ae1d)['blockElements'],'font'],_0x2100c8=_0x901c76['getItems']();for(const _0x14b73f of _0x2100c8)if(_0x14b73f['is']('element')&&_0x1bb137['includes'](_0x14b73f['name'])){if(_0x14b73f['hasStyle']('mso-list')&&'none'!==_0x14b73f['getStyle']('mso-list')){P(_0x14b73f,_0xbe4e30,v(_0x14b73f));continue;}F(_0x14b73f,_0xbe4e30,v(_0x14b73f));}}isActive(_0x521db5){return super['isActive'](_0x521db5)||u(_0x521db5);}},x=class extends _0x48fd2d{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4ee111];}init(){const _0x5ed550=this['editor'],_0x2b2ebb=_0x5ed550['plugins']['get']('PasteFromOffice'),_0x717ed6=_0x5ed550['editing']['view']['document'],_0x3d1b68=new b(_0x717ed6);_0x2b2ebb['registerNormalizer'](_0x3d1b68,_0x499327['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x284129=[this['editor']];for(const _0x57b806 of _0x284129){let _0x35297b;for(const _0x5070a3 in _0x57b806){const _0x1799fc=_0x5070a3,_0x13ed94=_0x57b806[_0x1799fc];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x13ed94||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x13ed94||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x13ed94||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x13ed94||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x13ed94||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x13ed94||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x13ed94){delete _0x57b806[_0x1799fc],_0x35297b=_0x13ed94,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x35297b&&_0x57b806['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x35297b&&_0x57b806['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x35297b&&_0x57b806['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x35297b&&_0x57b806['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x35297b&&_0x57b806['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x35297b&&_0x57b806['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x48fd2d{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4ee111,p,x];}};export{k as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x1e8ea6}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x4674d7,PasteFromOfficeMSWordNormalizer as _0x308028}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x15fbb8,uid as _0x317792}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x12b48f,ViewDomConverter as _0x5962c9,ViewUpcastWriter as _0x4ce939}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xfef666){return f['test'](_0xfef666);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x49898c,_0xb4a40e){const _0x44e7f5=new Map();for(const [_0x4f268d,_0x291372]of _0xb4a40e){if(!_0x4f268d['tagName']&&!_0x4f268d['className'])continue;const _0x3e6b8a=!_0x4f268d['tagName']||_0x49898c['name']===_0x4f268d['tagName'],_0x1fa953=!_0x4f268d['className']||_0x49898c['hasClass'](_0x4f268d['className']);_0x3e6b8a&&_0x1fa953&&_0x44e7f5['set'](_0x4f268d,_0x291372);}return _0x44e7f5;}function m(_0x3aa28a){const _0x4f52f6={};for(let _0x5b74c5=0x0;_0x5b74c5<_0x3aa28a['length'];_0x5b74c5++){const _0x1c82d9=_0x3aa28a[_0x5b74c5],_0x49a575=_0x3aa28a['getPropertyValue'](_0x1c82d9);'initial'!==_0x49a575&&(_0x4f52f6[_0x1c82d9]=_0x49a575);}return _0x4f52f6;}function w(_0x3c4c84){const _0x25906e=_0x3c4c84['split'](',')['map'](_0x10a4cc=>_0x10a4cc['trim']()),_0xcbd7ec=[];for(const _0x129afb of _0x25906e){const _0x1fcc9d=l['exec'](_0x129afb);_0x1fcc9d&&_0xcbd7ec['push'](_0x1fcc9d['groups']);}return _0xcbd7ec;}function y(_0x40c784){const _0x43c7f6={};for(const _0x54bb10 of _0x40c784)Object['assign'](_0x43c7f6,_0x54bb10);return _0x43c7f6;}var g=class extends _0x308028{execute(_0x33e425){const {styles:_0x12844b,stylesString:_0x185115}=_0x33e425['extraContent'],_0x463c8a=new _0x4ce939(_0x33e425['content']['document']),_0x269e4b=_0x463c8a['createRangeIn'](_0x33e425['content']),_0x5b5365=function(_0x3d285e){const _0x443d0f={};for(const _0x1e3e6d of _0x3d285e)for(const _0x28886e of _0x1e3e6d['cssRules'])if(_0x28886e instanceof CSSStyleRule){const _0x15555b=m(_0x28886e['style']);_0x443d0f[_0x28886e['selectorText']]=Object['assign']({},_0x443d0f[_0x28886e['selectorText']]||{},_0x15555b);}return _0x443d0f;}(_0x12844b),_0xd899eb=function(_0x15fb30){const _0x3226d7=new Map();for(const _0x57c94b in _0x15fb30){const _0x16f42c=w(_0x57c94b),_0x3ee207=_0x15fb30[_0x57c94b];for(const _0x7a8d53 of _0x16f42c)_0x3226d7['set'](_0x7a8d53,_0x3ee207);}return _0x3226d7;}(_0x5b5365),_0x445cb0=function(_0x283db4){const _0x154bd4={},_0x1fc9ce=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x446ada=/\.(?<className>[\w-]+)/g;let _0x46cacb;for(;null!==(_0x46cacb=_0x1fc9ce['exec'](_0x283db4));){const {selector:_0x5b8c88,color:_0x2c8ce0,patternType:_0x49669d}=_0x46cacb['groups'];if('auto'!==_0x2c8ce0['toLowerCase']()&&'none'!==_0x49669d['toLowerCase']()&&'auto'!==_0x49669d['toLowerCase']()){for(const _0x28860d of _0x5b8c88['matchAll'](_0x446ada))_0x154bd4[_0x28860d['groups']['className']]=_0x2c8ce0;}}return _0x154bd4;}(_0x185115);for(const _0x54ffa7 of _0x269e4b){if('elementStart'!==_0x54ffa7['type'])continue;const _0x1830cb=_0x54ffa7['item'],_0xc7f88d=d(_0x1830cb,_0xd899eb),_0x1175fa=_0xc7f88d['size']?y(Array['from'](_0xc7f88d['values']())):{};if(!('background-color'in _0x1175fa)&&!('background'in _0x1175fa)){for(const [_0x605b45,_0x401f0c]of Object['entries'](_0x445cb0))if(_0x1830cb['hasClass'](_0x605b45)){_0x1175fa['background-color']=_0x401f0c;break;}}for(const _0x40dbfa in _0x1175fa)_0x1830cb['hasStyle'](_0x40dbfa)||_0x463c8a['setStyle'](_0x40dbfa,_0x1175fa[_0x40dbfa],_0x1830cb);}}isActive(_0x46d3f4){return super['isActive'](_0x46d3f4)||u(_0x46d3f4);}},p=class extends _0x1e8ea6{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4674d7];}init(){const _0x1ac048=this['editor'],_0x2cead6=_0x1ac048['plugins']['get']('PasteFromOffice'),_0x21cdce=_0x1ac048['editing']['view']['document'],_0x264029=new g(_0x21cdce);_0x2cead6['registerNormalizer'](_0x264029,_0x15fbb8['high']+0xb);}afterInit(){!async function(_0x3195fb){const _0x534506='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x1c7d67=0x795c0,_0x271d51={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x4f2fed(_0x205973){const _0x556d97=new window['Promise'](_0x40cb0b=>{_0x205973['once']('ready',_0x40cb0b);}),_0x792cc7=window['Date']['now'](),_0x33d638=_0x205973['config']['get']('licenseKey');async function _0x3ba6f3(){let _0x166f32,_0x26819f=null,_0x114479=null;try{return'GPL'==_0x33d638?'NotAllowed':(_0x166f32=_0x198e6(),_0x166f32?(_0x166f32['usageEndpoint']&&(_0x114479=_0x336418(_0x166f32['usageEndpoint'],_0x166f32['jti'])),await _0x112d48()?_0x180186()?_0xeddcdd()?'Expired':_0x16eee4()?('evaluation'==_0x166f32['licenseType']&&(_0x26819f=_0x278461('EvaluationLimit')),await _0x24123f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xeddcdd(){const _0x2ff380=['evaluation','trial']['includes'](_0x166f32['licenseType'])?_0x792cc7/0x3e8:0xe10*_0x1c7d67;return _0x166f32['exp']<_0x2ff380;}function _0x180186(){const _0x3f3f16=_0x166f32['features'];return!!_0x3f3f16&&(!!_0x3f3f16['includes']('*')||(!!_0x3f3f16['includes']('POE')||(!!_0x3f3f16['includes']('PP')||!(!_0x3f3f16['includes']('TRILIUM')||!_0x179c73()))));}function _0x16eee4(){const _0x5a7874=_0x166f32['licensedHosts'];if(!_0x5a7874||0x0==_0x5a7874['length'])return!0x0;const {hostname:_0x4fe9a5}=new URL(window['location']['href']);if(_0x5a7874['includes'](_0x4fe9a5))return!0x0;const _0x17eb1c=_0x4fe9a5['split']('.');return _0x5a7874['filter'](_0x4c5f04=>_0x4c5f04['includes']('*'))['map'](_0xda062d=>_0xda062d['split']('.'))['filter'](_0x56463c=>_0x56463c['length']<=_0x17eb1c['length'])['map'](_0x18b114=>Array(_0x17eb1c['length']-_0x18b114['length'])['fill']('*'===_0x18b114[0x0]?'*':'')['concat'](_0x18b114))['some'](_0x2581cf=>_0x17eb1c['every']((_0x267772,_0xb3ecd0)=>_0x2581cf[_0xb3ecd0]===_0x267772||'*'===_0x2581cf[_0xb3ecd0]));}function _0x24123f(){return _0x26819f&&_0x114479?new window['Promise']((_0x34dce9,_0x380b3c)=>{_0x26819f['then'](_0x34dce9,_0x380b3c),_0x114479['then'](_0x2f4930=>{'Valid'!=_0x2f4930&&_0x34dce9(_0x2f4930);},_0x380b3c);}):_0x26819f||_0x114479||'Valid';}}function _0x336418(_0x23e6f8,_0x3b1d73){return new window['Promise'](_0x917406=>{if(_0x4ff4bb())return _0x917406('Valid');_0x16369c(),_0x205973['decorate']('_sendUsageRequest');let _0x35be11=!0x1;const _0x24f6fe=_0x317792();function _0x4c56d4(_0xa385d){return!!_0xa385d&&('object'==typeof _0xa385d||'function'==typeof _0xa385d)&&'function'==typeof _0xa385d['then']&&'function'==typeof _0xa385d['catch'];}function _0x6e1145(_0x5ee0cd){_0x271e82(_0x5ee0cd)['then'](_0x5bd028=>_0x5bd028&&'ok'==_0x5bd028['status']?_0x7b376d(_0x451a52(_0x24f6fe+_0x3b1d73))!=_0x5bd028['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1c0de2=>(_0x268d9d(),_0x1c0de2),()=>{const _0x5c24ba=_0x57eb97();return null==_0x5c24ba?(_0x268d9d(),'Valid'):_0x792cc7-_0x5c24ba>0x240c8400?'UsageLimit':'Valid';})['then'](_0x917406)['catch'](()=>{_0x917406('UsageLimit');});const _0x39de1a=0x36ee80;function _0x268d9d(){const _0x1fc19c='llct-'+_0x7b376d(_0x451a52(_0x23e6f8)),_0x2d05a9=_0x4d6e60(_0x7b376d(window['Math']['ceil'](_0x792cc7/_0x39de1a)));window['localStorage']['setItem'](_0x1fc19c,_0x2d05a9);}function _0x57eb97(){const _0x516e7d='llct-'+_0x7b376d(_0x451a52(_0x23e6f8)),_0x27ae7e=window['localStorage']['getItem'](_0x516e7d);return _0x27ae7e?window['parseInt'](_0x4d6e60(_0x27ae7e),0x10)*_0x39de1a:null;}function _0x271e82(_0x6433f9){return new window['Promise']((_0x35c2d6,_0x3868bf)=>{_0x6433f9['then'](_0x35c2d6,_0x3868bf),window['setTimeout'](_0x3868bf,0x1d4c0);});}}_0x205973['on']('_sendUsageRequest',(_0x4e237e,_0x60da36)=>{if(_0x60da36[0x0]!=_0x23e6f8)return _0x917406('UsageLimit');_0x60da36[0x1]={..._0x60da36[0x1],'requestId':_0x24f6fe};},{'priority':'high'}),_0x205973['on']('_sendUsageRequest',_0x54af21=>{_0x4c56d4(_0x54af21['return'])&&(_0x35be11=!0x0,_0x6e1145(_0x54af21['return']));},{'priority':'low'}),_0x556d97['then'](()=>{_0x35be11||_0x917406('UsageLimit');});});function _0x4ff4bb(){return'auto'==_0x205973['editing']['view']['_overlayModeHint'];}function _0x16369c(){_0x205973['editing']['view']['_overlayModeHint']='auto';}}function _0x278461(_0x371e1b){const _0x491434=[new window['Promise'](_0x58ce21=>setTimeout(_0x58ce21,0x93ecc)),_0x556d97['then'](()=>new window['Promise'](_0x5598ec=>{let _0x3a08ba=0x0;_0x205973['model']['on']('applyOperation',(_0x10fc19,_0x2f81ec)=>{_0x2f81ec[0x0]['isDocumentOperation']&&_0x3a08ba++,0x5e8==_0x3a08ba&&(_0x5598ec(),_0x10fc19['off']());});}))];return window['Promise']['race'](_0x491434)['then'](()=>_0x371e1b);}async function _0x28d0fc(){await _0x556d97,_0x205973['model']['change']=_0x57b49b,_0x205973['model']['enqueueChange']=_0x57b49b,_0x205973['enableReadOnlyMode']('model');}function _0x179c73(){return window['glob']&&window['glob']['triliumVersion'];}function _0x4203fd(_0x2f4dd7){const _0x5b14f6=_0x130837();_0x205973[_0x5b14f6]='pasteFromOfficeEnhancedLicenseKey'+_0x2f4dd7,'Valid'!=_0x2f4dd7&&_0x28d0fc();}function _0x130837(){const _0x5edef2=window['String'](window['performance']['now']())['replace']('.','');let _0xe754c1='u';for(let _0x2410cd=0x0;_0x2410cd<_0x5edef2['length'];_0x2410cd+=0x2){let _0x9c834f=window['parseInt'](_0x5edef2['substring'](_0x2410cd,_0x2410cd+0x2));_0x9c834f>=0x3e&&(_0x9c834f-=0x3e),_0xe754c1+=_0x534506[_0x9c834f];}return _0xe754c1;}function _0x198e6(){const _0x5637f2=_0x33d638['split']('.');if(0x3!=_0x5637f2['length'])return null;return _0x340b3b(_0x5637f2[0x1]);function _0x340b3b(_0x45a1aa){const _0x4e5f35=_0x5c9b5e(_0x45a1aa);return _0x4e5f35&&_0x1c2d0b()?_0x4e5f35:null;function _0x1c2d0b(){const _0x1f6e1d=_0x4e5f35['jti'],_0x32b6a2=window['parseInt'](_0x1f6e1d['substring'](_0x1f6e1d['length']-0x8),0x10),_0xd6b69a={..._0x4e5f35,'jti':_0x1f6e1d['substring'](0x0,_0x1f6e1d['length']-0x8)};return delete _0xd6b69a['vc'],_0x451a52(_0xd6b69a)==_0x32b6a2;}}}async function _0x112d48(){let _0x57002f=!0x0;try{const [_0x30e74e,_0x3f7b0e,_0x941a6b]=_0x33d638['split']('.');return _0x4912c3(_0x30e74e),await _0x5255fa(_0x30e74e,_0x3f7b0e,_0x941a6b),_0x57002f;}catch{return!0x1;}function _0x4912c3(_0x184fc2){const _0x563d13=_0x5c9b5e(_0x184fc2);_0x563d13&&'ES256'==_0x563d13['alg']||(_0x57002f=!0x1);}async function _0x5255fa(_0x4eee49,_0x8d6f59,_0x235e0d){const _0x28fc95=window['Uint8Array']['from'](_0x1370d5(_0x235e0d),_0x607047=>_0x607047['charCodeAt'](0x0)),_0x6892f7=new window['TextEncoder']()['encode'](_0x4eee49+'.'+_0x8d6f59),_0x4adf00=window['crypto']['subtle'];if(!_0x4adf00)return;const _0x2374c8=await _0x4adf00['importKey']('jwk',_0x271d51,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4adf00['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2374c8,_0x28fc95,_0x6892f7)||(_0x57002f=!0x1);}}function _0x5c9b5e(_0x47753d){return _0x47753d['startsWith']('ey')?JSON['parse'](_0x1370d5(_0x47753d)):null;}function _0x1370d5(_0x5e79c4){return window['atob'](_0x5e79c4['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x451a52(_0x4bc921){let _0x3159d0=0x1505;function _0x500a3a(_0xd7c180){for(let _0x252a7d=0x0;_0x252a7d<_0xd7c180['length'];_0x252a7d++){const _0x44a2c8=_0xd7c180['charCodeAt'](_0x252a7d);_0x3159d0=(_0x3159d0<<0x5)+_0x3159d0+_0x44a2c8,_0x3159d0&=_0x3159d0;}}function _0x5990c3(_0x38f22e){Array['isArray'](_0x38f22e)?_0x38f22e['forEach'](_0x5990c3):_0x38f22e&&'object'==typeof _0x38f22e?Object['entries'](_0x38f22e)['sort']()['forEach'](([_0x2902e6,_0x515d91])=>{_0x500a3a(_0x2902e6),_0x5990c3(_0x515d91);}):_0x500a3a(window['String'](_0x38f22e));}return _0x5990c3(_0x4bc921),_0x3159d0>>>0x0;}function _0x7b376d(_0x5d330c){return _0x5d330c['toString'](0x10)['padStart'](0x8,'0');}function _0x4d6e60(_0x3279c6){return _0x3279c6['split']('')['reverse']()['join']('');}function _0x57b49b(){}_0x4203fd(await _0x3ba6f3());}_0x4f2fed(_0x3195fb['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'],[_0x20d3b9=>Number(_0x20d3b9)>=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(_0x886b5f){return h['includes'](_0x886b5f);}function v(_0x325db2){return Array['from'](_0x325db2['getStyleNames']())['filter'](E);}function F(_0x11bcb2,_0x56dd8f,_0x1c00cf){const {spanStyles:_0x5746dc,stylesToBeHtmlElements:_0x58ddba}=K(_0x11bcb2,_0x1c00cf);!function(_0x2d308c,_0x5e4321,_0x1991c2){for(const _0x23bba9 in _0x1991c2)_0x1991c2[_0x23bba9]['forEach'](([,_0x17db84])=>{const _0x378fe1=_0x5e4321['createElement'](_0x17db84,[],_0x2d308c['getChildren']());_0x5e4321['insertChild'](0x0,_0x378fe1,_0x2d308c);}),_0x5e4321['removeStyle'](_0x23bba9,_0x2d308c);}(_0x11bcb2,_0x56dd8f,_0x58ddba),function(_0x475dae,_0x4bdf5c,_0x416748){if(!Object['keys'](_0x416748)['length'])return;const _0x2016d0=_0x4bdf5c['createElement']('span',[],_0x475dae['getChildren']());_0x4bdf5c['setStyle'](_0x416748,_0x2016d0),_0x4bdf5c['insertChild'](0x0,_0x2016d0,_0x475dae),_0x4bdf5c['removeStyle'](Object['keys'](_0x416748),_0x475dae);}(_0x11bcb2,_0x56dd8f,_0x5746dc);}function P(_0x307e53,_0x733295,_0x241ad1){const {spanStyles:_0x4bbc82}=K(_0x307e53,_0x241ad1),_0xdf9c1d=Object['keys'](_0x4bbc82);if(!_0xdf9c1d['length'])return;let _0x495032=!0x1;for(const _0x2c8f6f of _0x307e53['getChildren']())if(_0x2c8f6f['is']('element','span')){_0x495032=!0x0;for(const [_0xe88d61,_0x4d34a5]of Object['entries'](_0x4bbc82))_0x2c8f6f['hasStyle'](_0xe88d61)||_0x733295['setStyle']({[_0xe88d61]:_0x4d34a5},_0x2c8f6f);}_0x495032&&_0x733295['removeStyle'](_0xdf9c1d,_0x307e53);}function K(_0x40e20f,_0xc35da0){const _0x2ffd15={},_0x610083={};return _0xc35da0['forEach'](_0x2496b1=>{const _0x540f5e=_0x40e20f['getStyle'](_0x2496b1);if(_0x540f5e){if(function(_0x184c2e){return O['includes'](_0x184c2e);}(_0x2496b1))_0x2ffd15[_0x2496b1]=_0x540f5e;else{if(function(_0x487f63){return _0x487f63 in L;}(_0x2496b1)){const _0x2f7963=_0x540f5e['split']('\x20');L[_0x2496b1]['forEach'](([_0x154d02,_0x5ee3ed])=>{for(const _0x3d2ead of _0x2f7963)('function'==typeof _0x154d02&&_0x154d02(_0x3d2ead)||_0x154d02===_0x3d2ead)&&(_0x610083[_0x2496b1]=[..._0x610083[_0x2496b1]||[],[_0x154d02,_0x5ee3ed]]);});}}}}),{'spanStyles':_0x2ffd15,'stylesToBeHtmlElements':_0x610083};}var b=class extends _0x308028{execute(_0x32e1d8){const _0x5272d5=new _0x4ce939(_0x32e1d8['content']['document']),_0x117102=_0x5272d5['createRangeIn'](_0x32e1d8['content']),_0x2452cb=new _0x12b48f(_0x5272d5['document']['stylesProcessor']),_0x4337c0=[...new _0x5962c9(_0x2452cb)['blockElements'],'font'],_0x4409d2=_0x117102['getItems']();for(const _0x281d7f of _0x4409d2)if(_0x281d7f['is']('element')&&_0x4337c0['includes'](_0x281d7f['name'])){if(_0x281d7f['hasStyle']('mso-list')&&'none'!==_0x281d7f['getStyle']('mso-list')){P(_0x281d7f,_0x5272d5,v(_0x281d7f));continue;}F(_0x281d7f,_0x5272d5,v(_0x281d7f));}}isActive(_0x9c2015){return super['isActive'](_0x9c2015)||u(_0x9c2015);}},x=class extends _0x1e8ea6{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4674d7];}init(){const _0x2fd423=this['editor'],_0x2de018=_0x2fd423['plugins']['get']('PasteFromOffice'),_0x308023=_0x2fd423['editing']['view']['document'],_0x8113b1=new b(_0x308023);_0x2de018['registerNormalizer'](_0x8113b1,_0x15fbb8['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x18ad9e=[this['editor']];for(const _0x56a0d8 of _0x18ad9e){let _0x181843;for(const _0x26e8b9 in _0x56a0d8){const _0x20f4ff=_0x26e8b9,_0x420bcb=_0x56a0d8[_0x20f4ff];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x420bcb||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x420bcb||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x420bcb||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x420bcb||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x420bcb||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x420bcb||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x420bcb){delete _0x56a0d8[_0x20f4ff],_0x181843=_0x420bcb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x181843&&_0x56a0d8['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x181843&&_0x56a0d8['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x181843&&_0x56a0d8['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x181843&&_0x56a0d8['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x181843&&_0x56a0d8['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x181843&&_0x56a0d8['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x1e8ea6{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4674d7,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.
|
|
3
|
+
"version": "48.5.1",
|
|
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.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.5.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.5.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.5.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.5.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.5.1",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.5.1",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.5.1",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.5.1",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.5.1"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|