@ckeditor/ckeditor5-paste-from-office-enhanced 48.4.0-alpha.4 → 48.4.0-alpha.5
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 _0x103ec0}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x5f3b4d,PasteFromOfficeMSWordNormalizer as _0x78b68d}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x1a7cab,uid as _0x22824a}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x57a959,ViewDomConverter as _0x346aa0,ViewUpcastWriter as _0x4e7bfa}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xec7c53){return f['test'](_0xec7c53);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x67cd0e,_0x54c50c){const _0x510792=new Map();for(const [_0x1231a0,_0x423b72]of _0x54c50c){if(!_0x1231a0['tagName']&&!_0x1231a0['className'])continue;const _0x451c85=!_0x1231a0['tagName']||_0x67cd0e['name']===_0x1231a0['tagName'],_0x31ba15=!_0x1231a0['className']||_0x67cd0e['hasClass'](_0x1231a0['className']);_0x451c85&&_0x31ba15&&_0x510792['set'](_0x1231a0,_0x423b72);}return _0x510792;}function m(_0x5864e8){const _0x1f61ef={};for(let _0xcddd1a=0x0;_0xcddd1a<_0x5864e8['length'];_0xcddd1a++){const _0x5d4c27=_0x5864e8[_0xcddd1a],_0x52e041=_0x5864e8['getPropertyValue'](_0x5d4c27);'initial'!==_0x52e041&&(_0x1f61ef[_0x5d4c27]=_0x52e041);}return _0x1f61ef;}function w(_0x3c1745){const _0x61d155=_0x3c1745['split'](',')['map'](_0x5d09a9=>_0x5d09a9['trim']()),_0x38ba52=[];for(const _0x293bfe of _0x61d155){const _0x31e5c3=l['exec'](_0x293bfe);_0x31e5c3&&_0x38ba52['push'](_0x31e5c3['groups']);}return _0x38ba52;}function y(_0x5eedb4){const _0x14dcc6={};for(const _0x26c55a of _0x5eedb4)Object['assign'](_0x14dcc6,_0x26c55a);return _0x14dcc6;}var g=class extends _0x78b68d{execute(_0x2d0955){const {styles:_0x138288,stylesString:_0x2a1592}=_0x2d0955['extraContent'],_0x1868cf=new _0x4e7bfa(_0x2d0955['content']['document']),_0x524b0d=_0x1868cf['createRangeIn'](_0x2d0955['content']),_0x187364=function(_0x127e18){const _0x1b755f=new Map();for(const _0x5293fa in _0x127e18){const _0x4a555f=w(_0x5293fa),_0x2be7c8=_0x127e18[_0x5293fa];for(const _0x455157 of _0x4a555f)_0x1b755f['set'](_0x455157,_0x2be7c8);}return _0x1b755f;}(function(_0x8e2476){const _0x1afd64={};for(const _0x309f74 of _0x8e2476)for(const _0x1c56f2 of _0x309f74['cssRules'])if(_0x1c56f2 instanceof CSSStyleRule){const _0x456833=m(_0x1c56f2['style']);_0x1afd64[_0x1c56f2['selectorText']]=Object['assign']({},_0x1afd64[_0x1c56f2['selectorText']]||{},_0x456833);}return _0x1afd64;}(_0x138288)),_0x5bc486=function(_0xa473ac){const _0xa95a27={},_0x5e2e47=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x5dead9=/\.(?<className>[\w-]+)/g;let _0x48b9f1;for(;null!==(_0x48b9f1=_0x5e2e47['exec'](_0xa473ac));){const {selector:_0x165b85,color:_0x2d6d1f,patternType:_0x55af50}=_0x48b9f1['groups'];if('auto'!==_0x2d6d1f['toLowerCase']()&&'none'!==_0x55af50['toLowerCase']()&&'auto'!==_0x55af50['toLowerCase']()){for(const _0x41a6d2 of _0x165b85['matchAll'](_0x5dead9))_0xa95a27[_0x41a6d2['groups']['className']]=_0x2d6d1f;}}return _0xa95a27;}(_0x2a1592);for(const _0x1db5d3 of _0x524b0d){if('elementStart'!==_0x1db5d3['type'])continue;const _0x2fbcbb=_0x1db5d3['item'],_0x2b096b=d(_0x2fbcbb,_0x187364),_0x3d0647=_0x2b096b['size']?y(Array['from'](_0x2b096b['values']())):{};if(!('background-color'in _0x3d0647)&&!('background'in _0x3d0647)){for(const [_0x1fece5,_0x19ac80]of Object['entries'](_0x5bc486))if(_0x2fbcbb['hasClass'](_0x1fece5)){_0x3d0647['background-color']=_0x19ac80;break;}}for(const _0x1c6fcb in _0x3d0647)_0x2fbcbb['hasStyle'](_0x1c6fcb)||_0x1868cf['setStyle'](_0x1c6fcb,_0x3d0647[_0x1c6fcb],_0x2fbcbb);}}isActive(_0x56a258){return super['isActive'](_0x56a258)||u(_0x56a258);}},p=class extends _0x103ec0{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5f3b4d];}init(){const _0x3c9fa3=this['editor'],_0x2637c9=_0x3c9fa3['plugins']['get']('PasteFromOffice'),_0x59a870=_0x3c9fa3['editing']['view']['document'],_0x41f80e=new g(_0x59a870);_0x2637c9['registerNormalizer'](_0x41f80e,_0x1a7cab['high']+0xb);}afterInit(){!async function(_0x534fde){const _0x26177f='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x118e76=0x79188,_0x5cef97=window['Date']['now'](),_0x29c9df=_0x534fde['editor'],_0x4cc7ad=new window['Promise'](_0xebae3f=>{_0x29c9df['once']('ready',_0xebae3f);}),_0x5d9892={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x4d8427=_0x29c9df['config']['get']('licenseKey');async function _0x48e478(){let _0x536f40,_0x5da3d4=null,_0xe07fd2=null;try{return'GPL'==_0x4d8427?'NotAllowed':(_0x536f40=_0x567a98(),_0x536f40?(_0x536f40['usageEndpoint']&&(_0xe07fd2=_0x5c36b3(_0x536f40['usageEndpoint'],_0x536f40['jti'])),await _0xd58ea1()?_0x14aaec()?_0x39f0ff()?'Expired':_0x127a6c()?('evaluation'==_0x536f40['licenseType']&&(_0x5da3d4=_0x1045dd('EvaluationLimit')),await _0x6fdb8a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x39f0ff(){const _0x470a9c=['evaluation','trial']['includes'](_0x536f40['licenseType'])?_0x5cef97/0x3e8:0xe10*_0x118e76;return _0x536f40['exp']<_0x470a9c;}function _0x14aaec(){const _0x2e96cf=_0x536f40['features'];return!!_0x2e96cf&&(!!_0x2e96cf['includes']('*')||(!!_0x2e96cf['includes']('POE')||(!!_0x2e96cf['includes']('PP')||!(!_0x2e96cf['includes']('TRILIUM')||!_0x16c4c2()))));}function _0x127a6c(){const _0x5695ed=_0x536f40['licensedHosts'];if(!_0x5695ed||0x0==_0x5695ed['length'])return!0x0;const {hostname:_0x339be1}=new URL(window['location']['href']);if(_0x5695ed['includes'](_0x339be1))return!0x0;const _0xd8db81=_0x339be1['split']('.');return _0x5695ed['filter'](_0x314f63=>_0x314f63['includes']('*'))['map'](_0x3f687b=>_0x3f687b['split']('.'))['filter'](_0x421e9a=>_0x421e9a['length']<=_0xd8db81['length'])['map'](_0x4415bf=>Array(_0xd8db81['length']-_0x4415bf['length'])['fill']('*'===_0x4415bf[0x0]?'*':'')['concat'](_0x4415bf))['some'](_0x462a1c=>_0xd8db81['every']((_0x1d6aac,_0x57d834)=>_0x462a1c[_0x57d834]===_0x1d6aac||'*'===_0x462a1c[_0x57d834]));}function _0x6fdb8a(){return _0x5da3d4&&_0xe07fd2?new window['Promise']((_0x54a442,_0x5e925c)=>{_0x5da3d4['then'](_0x54a442,_0x5e925c),_0xe07fd2['then'](_0x5b050f=>{'Valid'!=_0x5b050f&&_0x54a442(_0x5b050f);},_0x5e925c);}):_0x5da3d4||_0xe07fd2||'Valid';}}function _0x5c36b3(_0x571df7,_0x4b462a){return new window['Promise'](_0xee5cbc=>{if(_0x30bf8e())return _0xee5cbc('Valid');_0x187666(),_0x29c9df['decorate']('_sendUsageRequest');let _0x2f9d1d=!0x1;const _0x36acd5=_0x22824a();function _0x2e9c4a(_0x32a144){return!!_0x32a144&&('object'==typeof _0x32a144||'function'==typeof _0x32a144)&&'function'==typeof _0x32a144['then']&&'function'==typeof _0x32a144['catch'];}function _0x106395(_0x55781e){_0x30dc39(_0x55781e)['then'](_0x226bb7=>_0x226bb7&&'ok'==_0x226bb7['status']?_0x14d5db(_0xad9187(_0x36acd5+_0x4b462a))!=_0x226bb7['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x533309=>(_0x89c776(),_0x533309),()=>{const _0xbf0c5d=_0x5aadba();return null==_0xbf0c5d?(_0x89c776(),'Valid'):_0x5cef97-_0xbf0c5d>0x240c8400?'UsageLimit':'Valid';})['then'](_0xee5cbc)['catch'](()=>{_0xee5cbc('UsageLimit');});const _0x3aedf8=0x36ee80;function _0x89c776(){const _0x59412c='llct-'+_0x14d5db(_0xad9187(_0x571df7)),_0x19b326=_0x3cb41b(_0x14d5db(window['Math']['ceil'](_0x5cef97/_0x3aedf8)));window['localStorage']['setItem'](_0x59412c,_0x19b326);}function _0x5aadba(){const _0x4623dc='llct-'+_0x14d5db(_0xad9187(_0x571df7)),_0x2de01=window['localStorage']['getItem'](_0x4623dc);return _0x2de01?window['parseInt'](_0x3cb41b(_0x2de01),0x10)*_0x3aedf8:null;}function _0x30dc39(_0x87cf0e){return new window['Promise']((_0x1f724d,_0xbb6601)=>{_0x87cf0e['then'](_0x1f724d,_0xbb6601),window['setTimeout'](_0xbb6601,0x1d4c0);});}}_0x29c9df['on']('_sendUsageRequest',(_0x1894d3,_0x51e500)=>{if(_0x51e500[0x0]!=_0x571df7)return _0xee5cbc('UsageLimit');_0x51e500[0x1]={..._0x51e500[0x1],'requestId':_0x36acd5};},{'priority':'high'}),_0x29c9df['on']('_sendUsageRequest',_0x2249fc=>{_0x2e9c4a(_0x2249fc['return'])&&(_0x2f9d1d=!0x0,_0x106395(_0x2249fc['return']));},{'priority':'low'}),_0x4cc7ad['then'](()=>{_0x2f9d1d||_0xee5cbc('UsageLimit');});});function _0x30bf8e(){return'auto'==_0x29c9df['editing']['view']['_overlayModeHint'];}function _0x187666(){_0x29c9df['editing']['view']['_overlayModeHint']='auto';}}function _0x1045dd(_0x17288d){const _0x4f8540=[new window['Promise'](_0x1efeed=>setTimeout(_0x1efeed,0x93ecc)),_0x4cc7ad['then'](()=>new window['Promise'](_0x59bbe1=>{let _0x487fb8=0x0;_0x29c9df['model']['on']('applyOperation',(_0x529e53,_0x19e244)=>{_0x19e244[0x0]['isDocumentOperation']&&_0x487fb8++,0x5e8==_0x487fb8&&(_0x59bbe1(),_0x529e53['off']());});}))];return window['Promise']['race'](_0x4f8540)['then'](()=>_0x17288d);}async function _0x4fe3a3(){await _0x4cc7ad,_0x29c9df['model']['change']=_0x51995f,_0x29c9df['model']['enqueueChange']=_0x51995f,_0x29c9df['enableReadOnlyMode']('model');}function _0x16c4c2(){return window['glob']&&window['glob']['triliumVersion'];}function _0x368184(_0x504a3b){const _0x21574a=_0x588285();_0x29c9df[_0x21574a]='pasteFromOfficeEnhancedLicenseKey'+_0x504a3b,'Valid'!=_0x504a3b&&_0x4fe3a3();}function _0x588285(){const _0x40e4f5=window['String'](window['performance']['now']())['replace']('.','');let _0x4da656='s';for(let _0x1e0259=0x0;_0x1e0259<_0x40e4f5['length'];_0x1e0259+=0x2){let _0xdd53c9=window['parseInt'](_0x40e4f5['substring'](_0x1e0259,_0x1e0259+0x2));_0xdd53c9>=0x3e&&(_0xdd53c9-=0x3e),_0x4da656+=_0x26177f[_0xdd53c9];}return _0x4da656;}function _0x567a98(){const _0x31c04b=_0x4d8427['split']('.');if(0x3!=_0x31c04b['length'])return null;return _0x140b85(_0x31c04b[0x1]);function _0x140b85(_0x5eea9f){const _0x2de577=_0x58b170(_0x5eea9f);return _0x2de577&&_0x5a12b2()?_0x2de577:null;function _0x5a12b2(){const _0x105b5b=_0x2de577['jti'],_0xeb17da=window['parseInt'](_0x105b5b['substring'](_0x105b5b['length']-0x8),0x10),_0x366cc7={..._0x2de577,'jti':_0x105b5b['substring'](0x0,_0x105b5b['length']-0x8)};return delete _0x366cc7['vc'],_0xad9187(_0x366cc7)==_0xeb17da;}}}async function _0xd58ea1(){let _0x15eb0a=!0x0;try{const [_0x787d93,_0x47d6e0,_0x23e028]=_0x4d8427['split']('.');return _0x4676cf(_0x787d93),await _0x53a1f8(_0x787d93,_0x47d6e0,_0x23e028),_0x15eb0a;}catch{return!0x1;}function _0x4676cf(_0x18c4ab){const _0x2591dd=_0x58b170(_0x18c4ab);_0x2591dd&&'ES256'==_0x2591dd['alg']||(_0x15eb0a=!0x1);}async function _0x53a1f8(_0x4ca4a8,_0x2f82c6,_0x140cf1){const _0x383684=window['Uint8Array']['from'](_0x5c8b40(_0x140cf1),_0x4dd2f1=>_0x4dd2f1['charCodeAt'](0x0)),_0x3477ac=new window['TextEncoder']()['encode'](_0x4ca4a8+'.'+_0x2f82c6),_0x22789d=window['crypto']['subtle'];if(!_0x22789d)return;const _0x139020=await _0x22789d['importKey']('jwk',_0x5d9892,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x22789d['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x139020,_0x383684,_0x3477ac)||(_0x15eb0a=!0x1);}}function _0x58b170(_0x2128a1){return _0x2128a1['startsWith']('ey')?JSON['parse'](_0x5c8b40(_0x2128a1)):null;}function _0x5c8b40(_0x4e5a64){return window['atob'](_0x4e5a64['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xad9187(_0x2e0d0a){let _0x17863a=0x1505;function _0x2fc79c(_0x38c8ee){for(let _0x1e845d=0x0;_0x1e845d<_0x38c8ee['length'];_0x1e845d++){const _0x410d64=_0x38c8ee['charCodeAt'](_0x1e845d);_0x17863a=(_0x17863a<<0x5)+_0x17863a+_0x410d64,_0x17863a&=_0x17863a;}}function _0x41d420(_0x23c2bf){Array['isArray'](_0x23c2bf)?_0x23c2bf['forEach'](_0x41d420):_0x23c2bf&&'object'==typeof _0x23c2bf?Object['entries'](_0x23c2bf)['sort']()['forEach'](([_0x338a54,_0x5039b9])=>{_0x2fc79c(_0x338a54),_0x41d420(_0x5039b9);}):_0x2fc79c(window['String'](_0x23c2bf));}return _0x41d420(_0x2e0d0a),_0x17863a>>>0x0;}function _0x14d5db(_0x208fd4){return _0x208fd4['toString'](0x10)['padStart'](0x8,'0');}function _0x3cb41b(_0xe59299){return _0xe59299['split']('')['reverse']()['join']('');}function _0x51995f(){}_0x368184(await _0x48e478());}(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'],[_0x1ca121=>Number(_0x1ca121)>=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(_0x287cdb){return h['includes'](_0x287cdb);}function v(_0x3c7ade){return Array['from'](_0x3c7ade['getStyleNames']())['filter'](E);}function F(_0x529e19,_0x5b7dd8,_0x410890){const {spanStyles:_0x16a765,stylesToBeHtmlElements:_0x5533d2}=K(_0x529e19,_0x410890);!function(_0x2c4eb9,_0x158388,_0x2b652a){for(const _0x19480a in _0x2b652a)_0x2b652a[_0x19480a]['forEach'](([,_0x234a4f])=>{const _0x419dad=_0x158388['createElement'](_0x234a4f,[],_0x2c4eb9['getChildren']());_0x158388['insertChild'](0x0,_0x419dad,_0x2c4eb9);}),_0x158388['removeStyle'](_0x19480a,_0x2c4eb9);}(_0x529e19,_0x5b7dd8,_0x5533d2),function(_0x30660d,_0x483595,_0x43efed){if(!Object['keys'](_0x43efed)['length'])return;const _0x2d91c7=_0x483595['createElement']('span',[],_0x30660d['getChildren']());_0x483595['setStyle'](_0x43efed,_0x2d91c7),_0x483595['insertChild'](0x0,_0x2d91c7,_0x30660d),_0x483595['removeStyle'](Object['keys'](_0x43efed),_0x30660d);}(_0x529e19,_0x5b7dd8,_0x16a765);}function P(_0x5486f1,_0x5a46a1,_0x4f4954){const {spanStyles:_0x1789ba}=K(_0x5486f1,_0x4f4954),_0x4e7583=Object['keys'](_0x1789ba);if(!_0x4e7583['length'])return;let _0xfab910=!0x1;for(const _0x3ee058 of _0x5486f1['getChildren']())if(_0x3ee058['is']('element','span')){_0xfab910=!0x0;for(const [_0x8e09de,_0x3aea9b]of Object['entries'](_0x1789ba))_0x3ee058['hasStyle'](_0x8e09de)||_0x5a46a1['setStyle']({[_0x8e09de]:_0x3aea9b},_0x3ee058);}_0xfab910&&_0x5a46a1['removeStyle'](_0x4e7583,_0x5486f1);}function K(_0x5af9d0,_0xf423ad){const _0x718c26={},_0x3f5c4a={};return _0xf423ad['forEach'](_0x15b2bd=>{const _0x13b281=_0x5af9d0['getStyle'](_0x15b2bd);if(_0x13b281){if(function(_0x4bd07b){return O['includes'](_0x4bd07b);}(_0x15b2bd))_0x718c26[_0x15b2bd]=_0x13b281;else{if(function(_0x46231c){return _0x46231c in L;}(_0x15b2bd)){const _0x2a31fa=_0x13b281['split']('\x20');L[_0x15b2bd]['forEach'](([_0x4cc49a,_0x31a0cd])=>{for(const _0x21f64d of _0x2a31fa)('function'==typeof _0x4cc49a&&_0x4cc49a(_0x21f64d)||_0x4cc49a===_0x21f64d)&&(_0x3f5c4a[_0x15b2bd]=[..._0x3f5c4a[_0x15b2bd]||[],[_0x4cc49a,_0x31a0cd]]);});}}}}),{'spanStyles':_0x718c26,'stylesToBeHtmlElements':_0x3f5c4a};}var b=class extends _0x78b68d{execute(_0x25658e){const _0x2f0c31=new _0x4e7bfa(_0x25658e['content']['document']),_0x430c67=_0x2f0c31['createRangeIn'](_0x25658e['content']),_0x2c8d97=[...new _0x346aa0(new _0x57a959(_0x2f0c31['document']['stylesProcessor']))['blockElements'],'font'],_0x1b4e3b=_0x430c67['getItems']();for(const _0x7424b9 of _0x1b4e3b)if(_0x7424b9['is']('element')&&_0x2c8d97['includes'](_0x7424b9['name'])){if(_0x7424b9['hasStyle']('mso-list')&&'none'!==_0x7424b9['getStyle']('mso-list')){P(_0x7424b9,_0x2f0c31,v(_0x7424b9));continue;}F(_0x7424b9,_0x2f0c31,v(_0x7424b9));}}isActive(_0x44f38c){return super['isActive'](_0x44f38c)||u(_0x44f38c);}},x=class extends _0x103ec0{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5f3b4d];}init(){const _0x2a6742=this['editor'],_0x8346c3=_0x2a6742['plugins']['get']('PasteFromOffice'),_0x24a129=_0x2a6742['editing']['view']['document'],_0x3243e7=new b(_0x24a129);_0x8346c3['registerNormalizer'](_0x3243e7,_0x1a7cab['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x7caeed=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ea19c;for(const _0x80158e in _0x7caeed){const _0x23067d=_0x80158e,_0xebe57a=_0x7caeed[_0x23067d];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0xebe57a){delete _0x7caeed[_0x23067d],_0x4ea19c=_0xebe57a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4ea19c&&_0x7caeed['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4ea19c&&_0x7caeed['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4ea19c&&_0x7caeed['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4ea19c&&_0x7caeed['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4ea19c&&_0x7caeed['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4ea19c&&_0x7caeed['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x103ec0{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5f3b4d,p,x];}};export{k as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x1ccdcb}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x8ba53d,PasteFromOfficeMSWordNormalizer as _0x9319e1}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x2ee922,uid as _0x2d2dda}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x380b04,ViewDomConverter as _0x1efe36,ViewUpcastWriter as _0x5b0491}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x14ce8f){return f['test'](_0x14ce8f);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x54a2db,_0x5d3137){const _0x517974=new Map();for(const [_0x164de4,_0x3c59da]of _0x5d3137){if(!_0x164de4['tagName']&&!_0x164de4['className'])continue;const _0x31e744=!_0x164de4['tagName']||_0x54a2db['name']===_0x164de4['tagName'],_0x47f592=!_0x164de4['className']||_0x54a2db['hasClass'](_0x164de4['className']);_0x31e744&&_0x47f592&&_0x517974['set'](_0x164de4,_0x3c59da);}return _0x517974;}function m(_0x532b75){const _0x1600bb={};for(let _0x4c514f=0x0;_0x4c514f<_0x532b75['length'];_0x4c514f++){const _0x558eab=_0x532b75[_0x4c514f],_0x417ed4=_0x532b75['getPropertyValue'](_0x558eab);'initial'!==_0x417ed4&&(_0x1600bb[_0x558eab]=_0x417ed4);}return _0x1600bb;}function w(_0x4e42f0){const _0x25ac58=_0x4e42f0['split'](',')['map'](_0x5e2129=>_0x5e2129['trim']()),_0xc9c17d=[];for(const _0x3dc6ce of _0x25ac58){const _0x156e67=l['exec'](_0x3dc6ce);_0x156e67&&_0xc9c17d['push'](_0x156e67['groups']);}return _0xc9c17d;}function y(_0x182cc7){const _0x2ad3f6={};for(const _0x4730f2 of _0x182cc7)Object['assign'](_0x2ad3f6,_0x4730f2);return _0x2ad3f6;}var g=class extends _0x9319e1{execute(_0x2bed6a){const {styles:_0x5e4d21,stylesString:_0x8b9a8}=_0x2bed6a['extraContent'],_0x1e69f2=new _0x5b0491(_0x2bed6a['content']['document']),_0x2ce289=_0x1e69f2['createRangeIn'](_0x2bed6a['content']),_0x8f9d46=function(_0x3438b1){const _0xbf0cd=new Map();for(const _0x3a14e6 in _0x3438b1){const _0x1265bf=w(_0x3a14e6),_0x3becef=_0x3438b1[_0x3a14e6];for(const _0x38a303 of _0x1265bf)_0xbf0cd['set'](_0x38a303,_0x3becef);}return _0xbf0cd;}(function(_0x288e83){const _0x2bb00c={};for(const _0x180ec8 of _0x288e83)for(const _0x271366 of _0x180ec8['cssRules'])if(_0x271366 instanceof CSSStyleRule){const _0xbaa753=m(_0x271366['style']);_0x2bb00c[_0x271366['selectorText']]=Object['assign']({},_0x2bb00c[_0x271366['selectorText']]||{},_0xbaa753);}return _0x2bb00c;}(_0x5e4d21)),_0x1077e7=function(_0x25d6a5){const _0x553a77={},_0x3fc923=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0xfef652=/\.(?<className>[\w-]+)/g;let _0x1bb265;for(;null!==(_0x1bb265=_0x3fc923['exec'](_0x25d6a5));){const {selector:_0x3513b2,color:_0x2af460,patternType:_0x29c5ef}=_0x1bb265['groups'];if('auto'!==_0x2af460['toLowerCase']()&&'none'!==_0x29c5ef['toLowerCase']()&&'auto'!==_0x29c5ef['toLowerCase']()){for(const _0x379520 of _0x3513b2['matchAll'](_0xfef652))_0x553a77[_0x379520['groups']['className']]=_0x2af460;}}return _0x553a77;}(_0x8b9a8);for(const _0x3324a0 of _0x2ce289){if('elementStart'!==_0x3324a0['type'])continue;const _0x4a4468=_0x3324a0['item'],_0x5ec3f6=d(_0x4a4468,_0x8f9d46),_0x48f946=_0x5ec3f6['size']?y(Array['from'](_0x5ec3f6['values']())):{};if(!('background-color'in _0x48f946)&&!('background'in _0x48f946)){for(const [_0x10ba0c,_0x51a2a4]of Object['entries'](_0x1077e7))if(_0x4a4468['hasClass'](_0x10ba0c)){_0x48f946['background-color']=_0x51a2a4;break;}}for(const _0x2e747a in _0x48f946)_0x4a4468['hasStyle'](_0x2e747a)||_0x1e69f2['setStyle'](_0x2e747a,_0x48f946[_0x2e747a],_0x4a4468);}}isActive(_0x3dac40){return super['isActive'](_0x3dac40)||u(_0x3dac40);}},p=class extends _0x1ccdcb{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x8ba53d];}init(){const _0x353649=this['editor'],_0x35dd9f=_0x353649['plugins']['get']('PasteFromOffice'),_0x5030d8=_0x353649['editing']['view']['document'],_0x56bd19=new g(_0x5030d8);_0x35dd9f['registerNormalizer'](_0x56bd19,_0x2ee922['high']+0xb);}afterInit(){!async function(_0x5ecaca){const _0x26ce9d='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x33b465=0x791a0,_0x2f7c5a=window['Date']['now'](),_0x407277=_0x5ecaca['editor'],_0x3a2b59=new window['Promise'](_0x4f2b9f=>{_0x407277['once']('ready',_0x4f2b9f);}),_0x569aec={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x643b49=_0x407277['config']['get']('licenseKey');async function _0x117b57(){let _0x5e6698,_0x305f07=null,_0x272ce9=null;try{return'GPL'==_0x643b49?'NotAllowed':(_0x5e6698=_0x2692da(),_0x5e6698?(_0x5e6698['usageEndpoint']&&(_0x272ce9=_0x115408(_0x5e6698['usageEndpoint'],_0x5e6698['jti'])),await _0x3c4ff1()?_0x3d4e91()?_0x1532d6()?'Expired':_0x4ac7da()?('evaluation'==_0x5e6698['licenseType']&&(_0x305f07=_0x2c57ee('EvaluationLimit')),await _0x48da2e()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1532d6(){const _0x3f6029=['evaluation','trial']['includes'](_0x5e6698['licenseType'])?_0x2f7c5a/0x3e8:0xe10*_0x33b465;return _0x5e6698['exp']<_0x3f6029;}function _0x3d4e91(){const _0x50606d=_0x5e6698['features'];return!!_0x50606d&&(!!_0x50606d['includes']('*')||(!!_0x50606d['includes']('POE')||(!!_0x50606d['includes']('PP')||!(!_0x50606d['includes']('TRILIUM')||!_0x42f2b9()))));}function _0x4ac7da(){const _0x2728eb=_0x5e6698['licensedHosts'];if(!_0x2728eb||0x0==_0x2728eb['length'])return!0x0;const {hostname:_0x320d5f}=new URL(window['location']['href']);if(_0x2728eb['includes'](_0x320d5f))return!0x0;const _0x63d9e7=_0x320d5f['split']('.');return _0x2728eb['filter'](_0x318142=>_0x318142['includes']('*'))['map'](_0x34cf59=>_0x34cf59['split']('.'))['filter'](_0x5ec26d=>_0x5ec26d['length']<=_0x63d9e7['length'])['map'](_0x42de95=>Array(_0x63d9e7['length']-_0x42de95['length'])['fill']('*'===_0x42de95[0x0]?'*':'')['concat'](_0x42de95))['some'](_0x399f34=>_0x63d9e7['every']((_0x5bf418,_0x4f6ec2)=>_0x399f34[_0x4f6ec2]===_0x5bf418||'*'===_0x399f34[_0x4f6ec2]));}function _0x48da2e(){return _0x305f07&&_0x272ce9?new window['Promise']((_0x2b4c4c,_0x36cbb7)=>{_0x305f07['then'](_0x2b4c4c,_0x36cbb7),_0x272ce9['then'](_0x218b4d=>{'Valid'!=_0x218b4d&&_0x2b4c4c(_0x218b4d);},_0x36cbb7);}):_0x305f07||_0x272ce9||'Valid';}}function _0x115408(_0x499824,_0x135ce7){return new window['Promise'](_0x18730f=>{if(_0x129af5())return _0x18730f('Valid');_0x20abee(),_0x407277['decorate']('_sendUsageRequest');let _0x445a17=!0x1;const _0xbbae31=_0x2d2dda();function _0x11836f(_0x163295){return!!_0x163295&&('object'==typeof _0x163295||'function'==typeof _0x163295)&&'function'==typeof _0x163295['then']&&'function'==typeof _0x163295['catch'];}function _0x201358(_0x27f21e){_0x2218dc(_0x27f21e)['then'](_0x4926e4=>_0x4926e4&&'ok'==_0x4926e4['status']?_0x4703ea(_0x1cf01e(_0xbbae31+_0x135ce7))!=_0x4926e4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x39ea80=>(_0x2a4d41(),_0x39ea80),()=>{const _0x1745b4=_0x1a5d8b();return null==_0x1745b4?(_0x2a4d41(),'Valid'):_0x2f7c5a-_0x1745b4>0x240c8400?'UsageLimit':'Valid';})['then'](_0x18730f)['catch'](()=>{_0x18730f('UsageLimit');});const _0x43c814=0x36ee80;function _0x2a4d41(){const _0x2f8a46='llct-'+_0x4703ea(_0x1cf01e(_0x499824)),_0x2279d2=_0x3b4097(_0x4703ea(window['Math']['ceil'](_0x2f7c5a/_0x43c814)));window['localStorage']['setItem'](_0x2f8a46,_0x2279d2);}function _0x1a5d8b(){const _0x190210='llct-'+_0x4703ea(_0x1cf01e(_0x499824)),_0x2b6736=window['localStorage']['getItem'](_0x190210);return _0x2b6736?window['parseInt'](_0x3b4097(_0x2b6736),0x10)*_0x43c814:null;}function _0x2218dc(_0x1abed7){return new window['Promise']((_0x2d549b,_0x3eb0aa)=>{_0x1abed7['then'](_0x2d549b,_0x3eb0aa),window['setTimeout'](_0x3eb0aa,0x1d4c0);});}}_0x407277['on']('_sendUsageRequest',(_0x2573a6,_0x12fe93)=>{if(_0x12fe93[0x0]!=_0x499824)return _0x18730f('UsageLimit');_0x12fe93[0x1]={..._0x12fe93[0x1],'requestId':_0xbbae31};},{'priority':'high'}),_0x407277['on']('_sendUsageRequest',_0x5834ba=>{_0x11836f(_0x5834ba['return'])&&(_0x445a17=!0x0,_0x201358(_0x5834ba['return']));},{'priority':'low'}),_0x3a2b59['then'](()=>{_0x445a17||_0x18730f('UsageLimit');});});function _0x129af5(){return'auto'==_0x407277['editing']['view']['_overlayModeHint'];}function _0x20abee(){_0x407277['editing']['view']['_overlayModeHint']='auto';}}function _0x2c57ee(_0x9af080){const _0x483f7c=[new window['Promise'](_0x5145c4=>setTimeout(_0x5145c4,0x93ecc)),_0x3a2b59['then'](()=>new window['Promise'](_0x3d2364=>{let _0x590e3c=0x0;_0x407277['model']['on']('applyOperation',(_0x1074e8,_0x110f59)=>{_0x110f59[0x0]['isDocumentOperation']&&_0x590e3c++,0x5e8==_0x590e3c&&(_0x3d2364(),_0x1074e8['off']());});}))];return window['Promise']['race'](_0x483f7c)['then'](()=>_0x9af080);}async function _0x1cddc4(){await _0x3a2b59,_0x407277['model']['change']=_0x2bf9a3,_0x407277['model']['enqueueChange']=_0x2bf9a3,_0x407277['enableReadOnlyMode']('model');}function _0x42f2b9(){return window['glob']&&window['glob']['triliumVersion'];}function _0x503371(_0x4e90b5){const _0x23c860=_0x587def();_0x407277[_0x23c860]='pasteFromOfficeEnhancedLicenseKey'+_0x4e90b5,'Valid'!=_0x4e90b5&&_0x1cddc4();}function _0x587def(){const _0x13cfaa=window['String'](window['performance']['now']())['replace']('.','');let _0x1371b9='s';for(let _0x358fc8=0x0;_0x358fc8<_0x13cfaa['length'];_0x358fc8+=0x2){let _0x3bbf78=window['parseInt'](_0x13cfaa['substring'](_0x358fc8,_0x358fc8+0x2));_0x3bbf78>=0x3e&&(_0x3bbf78-=0x3e),_0x1371b9+=_0x26ce9d[_0x3bbf78];}return _0x1371b9;}function _0x2692da(){const _0x52247e=_0x643b49['split']('.');if(0x3!=_0x52247e['length'])return null;return _0x14b146(_0x52247e[0x1]);function _0x14b146(_0x43305f){const _0x122efc=_0xf4a9ec(_0x43305f);return _0x122efc&&_0x480e8e()?_0x122efc:null;function _0x480e8e(){const _0x2f7f09=_0x122efc['jti'],_0x54d2ae=window['parseInt'](_0x2f7f09['substring'](_0x2f7f09['length']-0x8),0x10),_0x26e029={..._0x122efc,'jti':_0x2f7f09['substring'](0x0,_0x2f7f09['length']-0x8)};return delete _0x26e029['vc'],_0x1cf01e(_0x26e029)==_0x54d2ae;}}}async function _0x3c4ff1(){let _0x1a2c8f=!0x0;try{const [_0x1192bc,_0x135630,_0x9aec9f]=_0x643b49['split']('.');return _0x5bf6d5(_0x1192bc),await _0x3d2282(_0x1192bc,_0x135630,_0x9aec9f),_0x1a2c8f;}catch{return!0x1;}function _0x5bf6d5(_0x51ab18){const _0x30067f=_0xf4a9ec(_0x51ab18);_0x30067f&&'ES256'==_0x30067f['alg']||(_0x1a2c8f=!0x1);}async function _0x3d2282(_0x4a6010,_0x537a6f,_0x4e6276){const _0x3c135a=window['Uint8Array']['from'](_0x2c1b99(_0x4e6276),_0xe30d90=>_0xe30d90['charCodeAt'](0x0)),_0x4630aa=new window['TextEncoder']()['encode'](_0x4a6010+'.'+_0x537a6f),_0x3eb674=window['crypto']['subtle'];if(!_0x3eb674)return;const _0x3f3559=await _0x3eb674['importKey']('jwk',_0x569aec,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3eb674['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3f3559,_0x3c135a,_0x4630aa)||(_0x1a2c8f=!0x1);}}function _0xf4a9ec(_0xeca844){return _0xeca844['startsWith']('ey')?JSON['parse'](_0x2c1b99(_0xeca844)):null;}function _0x2c1b99(_0x1e0119){return window['atob'](_0x1e0119['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1cf01e(_0x1791d4){let _0x347db4=0x1505;function _0x13ba08(_0x5a8db3){for(let _0x88ae12=0x0;_0x88ae12<_0x5a8db3['length'];_0x88ae12++){const _0x5e174b=_0x5a8db3['charCodeAt'](_0x88ae12);_0x347db4=(_0x347db4<<0x5)+_0x347db4+_0x5e174b,_0x347db4&=_0x347db4;}}function _0x4fc3f0(_0x5248e7){Array['isArray'](_0x5248e7)?_0x5248e7['forEach'](_0x4fc3f0):_0x5248e7&&'object'==typeof _0x5248e7?Object['entries'](_0x5248e7)['sort']()['forEach'](([_0x253337,_0x23b84d])=>{_0x13ba08(_0x253337),_0x4fc3f0(_0x23b84d);}):_0x13ba08(window['String'](_0x5248e7));}return _0x4fc3f0(_0x1791d4),_0x347db4>>>0x0;}function _0x4703ea(_0x10bf99){return _0x10bf99['toString'](0x10)['padStart'](0x8,'0');}function _0x3b4097(_0x1459be){return _0x1459be['split']('')['reverse']()['join']('');}function _0x2bf9a3(){}_0x503371(await _0x117b57());}(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'],[_0x228498=>Number(_0x228498)>=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(_0x581e5b){return h['includes'](_0x581e5b);}function v(_0x49a6dd){return Array['from'](_0x49a6dd['getStyleNames']())['filter'](E);}function F(_0x443914,_0x18d347,_0x39301a){const {spanStyles:_0x5c1686,stylesToBeHtmlElements:_0x5b78d2}=K(_0x443914,_0x39301a);!function(_0x35e96d,_0x23bb8a,_0x3101b4){for(const _0x412a4e in _0x3101b4)_0x3101b4[_0x412a4e]['forEach'](([,_0x111122])=>{const _0x38f0cd=_0x23bb8a['createElement'](_0x111122,[],_0x35e96d['getChildren']());_0x23bb8a['insertChild'](0x0,_0x38f0cd,_0x35e96d);}),_0x23bb8a['removeStyle'](_0x412a4e,_0x35e96d);}(_0x443914,_0x18d347,_0x5b78d2),function(_0x17e1a7,_0x4cb3cf,_0x1d341c){if(!Object['keys'](_0x1d341c)['length'])return;const _0x58c4c4=_0x4cb3cf['createElement']('span',[],_0x17e1a7['getChildren']());_0x4cb3cf['setStyle'](_0x1d341c,_0x58c4c4),_0x4cb3cf['insertChild'](0x0,_0x58c4c4,_0x17e1a7),_0x4cb3cf['removeStyle'](Object['keys'](_0x1d341c),_0x17e1a7);}(_0x443914,_0x18d347,_0x5c1686);}function P(_0xcc1a03,_0x1fa231,_0x4ed7eb){const {spanStyles:_0x5c027e}=K(_0xcc1a03,_0x4ed7eb),_0x4d644e=Object['keys'](_0x5c027e);if(!_0x4d644e['length'])return;let _0x2c31e4=!0x1;for(const _0x42aeb7 of _0xcc1a03['getChildren']())if(_0x42aeb7['is']('element','span')){_0x2c31e4=!0x0;for(const [_0x515275,_0xa8b1eb]of Object['entries'](_0x5c027e))_0x42aeb7['hasStyle'](_0x515275)||_0x1fa231['setStyle']({[_0x515275]:_0xa8b1eb},_0x42aeb7);}_0x2c31e4&&_0x1fa231['removeStyle'](_0x4d644e,_0xcc1a03);}function K(_0x3e8eaf,_0x157420){const _0x35a257={},_0x58cc77={};return _0x157420['forEach'](_0x40eedb=>{const _0xd71ad=_0x3e8eaf['getStyle'](_0x40eedb);if(_0xd71ad){if(function(_0x547222){return O['includes'](_0x547222);}(_0x40eedb))_0x35a257[_0x40eedb]=_0xd71ad;else{if(function(_0x1f1fc6){return _0x1f1fc6 in L;}(_0x40eedb)){const _0x250b12=_0xd71ad['split']('\x20');L[_0x40eedb]['forEach'](([_0x193a47,_0x31d70f])=>{for(const _0x32eca8 of _0x250b12)('function'==typeof _0x193a47&&_0x193a47(_0x32eca8)||_0x193a47===_0x32eca8)&&(_0x58cc77[_0x40eedb]=[..._0x58cc77[_0x40eedb]||[],[_0x193a47,_0x31d70f]]);});}}}}),{'spanStyles':_0x35a257,'stylesToBeHtmlElements':_0x58cc77};}var b=class extends _0x9319e1{execute(_0x499957){const _0x1bbe41=new _0x5b0491(_0x499957['content']['document']),_0x2d0c03=_0x1bbe41['createRangeIn'](_0x499957['content']),_0x533ad1=[...new _0x1efe36(new _0x380b04(_0x1bbe41['document']['stylesProcessor']))['blockElements'],'font'],_0x5630ba=_0x2d0c03['getItems']();for(const _0x3a4b62 of _0x5630ba)if(_0x3a4b62['is']('element')&&_0x533ad1['includes'](_0x3a4b62['name'])){if(_0x3a4b62['hasStyle']('mso-list')&&'none'!==_0x3a4b62['getStyle']('mso-list')){P(_0x3a4b62,_0x1bbe41,v(_0x3a4b62));continue;}F(_0x3a4b62,_0x1bbe41,v(_0x3a4b62));}}isActive(_0x3b9ede){return super['isActive'](_0x3b9ede)||u(_0x3b9ede);}},x=class extends _0x1ccdcb{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x8ba53d];}init(){const _0x2dbb84=this['editor'],_0xa9680c=_0x2dbb84['plugins']['get']('PasteFromOffice'),_0x5c9424=_0x2dbb84['editing']['view']['document'],_0x594ae2=new b(_0x5c9424);_0xa9680c['registerNormalizer'](_0x594ae2,_0x2ee922['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ba8d7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59b106;for(const _0xf1de60 in _0x2ba8d7){const _0x4d1ccc=_0xf1de60,_0x484a9a=_0x2ba8d7[_0x4d1ccc];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x484a9a){delete _0x2ba8d7[_0x4d1ccc],_0x59b106=_0x484a9a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x59b106&&_0x2ba8d7['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x59b106&&_0x2ba8d7['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x59b106&&_0x2ba8d7['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x59b106&&_0x2ba8d7['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x59b106&&_0x2ba8d7['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x59b106&&_0x2ba8d7['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x1ccdcb{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x8ba53d,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.4.0-alpha.
|
|
3
|
+
"version": "48.4.0-alpha.5",
|
|
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.4.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.4.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.4.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.4.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.4.0-alpha.5",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.4.0-alpha.5",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.4.0-alpha.5",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.5",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.4.0-alpha.5"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|