@ckeditor/ckeditor5-paste-from-office-enhanced 48.5.0-alpha.5 → 48.5.0-alpha.7
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 _0x598479}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x3216f0,PasteFromOfficeMSWordNormalizer as _0x4c9f46}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x25561a,uid as _0xb9494e}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x424892,ViewDomConverter as _0x1c34d6,ViewUpcastWriter as _0x5bb052}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x2ee0c5){return f['test'](_0x2ee0c5);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x2538b8,_0x2d4744){const _0x5a06be=new Map();for(const [_0x29921e,_0x253b4c]of _0x2d4744){if(!_0x29921e['tagName']&&!_0x29921e['className'])continue;const _0x4b3ded=!_0x29921e['tagName']||_0x2538b8['name']===_0x29921e['tagName'],_0x4d3b44=!_0x29921e['className']||_0x2538b8['hasClass'](_0x29921e['className']);_0x4b3ded&&_0x4d3b44&&_0x5a06be['set'](_0x29921e,_0x253b4c);}return _0x5a06be;}function m(_0x29c0b3){const _0x141b6a={};for(let _0x573797=0x0;_0x573797<_0x29c0b3['length'];_0x573797++){const _0x4f2445=_0x29c0b3[_0x573797],_0x182d7f=_0x29c0b3['getPropertyValue'](_0x4f2445);'initial'!==_0x182d7f&&(_0x141b6a[_0x4f2445]=_0x182d7f);}return _0x141b6a;}function w(_0x3e33a4){const _0x1f22a1=_0x3e33a4['split'](',')['map'](_0x203c5a=>_0x203c5a['trim']()),_0x40ca31=[];for(const _0x536a42 of _0x1f22a1){const _0x418c49=l['exec'](_0x536a42);_0x418c49&&_0x40ca31['push'](_0x418c49['groups']);}return _0x40ca31;}function y(_0xed9a86){const _0x455fbd={};for(const _0x33b900 of _0xed9a86)Object['assign'](_0x455fbd,_0x33b900);return _0x455fbd;}var g=class extends _0x4c9f46{execute(_0x3adbf4){const {styles:_0x21bd4d,stylesString:_0x4f6837}=_0x3adbf4['extraContent'],_0x5378c8=new _0x5bb052(_0x3adbf4['content']['document']),_0x533603=_0x5378c8['createRangeIn'](_0x3adbf4['content']),_0x235391=function(_0x395042){const _0x5b3f17={};for(const _0x43c52a of _0x395042)for(const _0xdfb95b of _0x43c52a['cssRules'])if(_0xdfb95b instanceof CSSStyleRule){const _0x4e71fd=m(_0xdfb95b['style']);_0x5b3f17[_0xdfb95b['selectorText']]=Object['assign']({},_0x5b3f17[_0xdfb95b['selectorText']]||{},_0x4e71fd);}return _0x5b3f17;}(_0x21bd4d),_0x3db612=function(_0x1f3385){const _0x304551=new Map();for(const _0x5b7315 in _0x1f3385){const _0x475a3a=w(_0x5b7315),_0x4ac5ca=_0x1f3385[_0x5b7315];for(const _0x210c34 of _0x475a3a)_0x304551['set'](_0x210c34,_0x4ac5ca);}return _0x304551;}(_0x235391),_0x1ed8e2=function(_0x49bbe0){const _0x177dbe={},_0x3eb800=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x4633cb=/\.(?<className>[\w-]+)/g;let _0x1515fb;for(;null!==(_0x1515fb=_0x3eb800['exec'](_0x49bbe0));){const {selector:_0x5d34e1,color:_0x11cd94,patternType:_0x482554}=_0x1515fb['groups'];if('auto'!==_0x11cd94['toLowerCase']()&&'none'!==_0x482554['toLowerCase']()&&'auto'!==_0x482554['toLowerCase']()){for(const _0x4910ab of _0x5d34e1['matchAll'](_0x4633cb))_0x177dbe[_0x4910ab['groups']['className']]=_0x11cd94;}}return _0x177dbe;}(_0x4f6837);for(const _0x589385 of _0x533603){if('elementStart'!==_0x589385['type'])continue;const _0x1af8d8=_0x589385['item'],_0x44348f=d(_0x1af8d8,_0x3db612),_0xc79d3a=_0x44348f['size']?y(Array['from'](_0x44348f['values']())):{};if(!('background-color'in _0xc79d3a)&&!('background'in _0xc79d3a)){for(const [_0x563c83,_0x28c4f2]of Object['entries'](_0x1ed8e2))if(_0x1af8d8['hasClass'](_0x563c83)){_0xc79d3a['background-color']=_0x28c4f2;break;}}for(const _0x60da4c in _0xc79d3a)_0x1af8d8['hasStyle'](_0x60da4c)||_0x5378c8['setStyle'](_0x60da4c,_0xc79d3a[_0x60da4c],_0x1af8d8);}}isActive(_0x234244){return super['isActive'](_0x234244)||u(_0x234244);}},p=class extends _0x598479{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3216f0];}init(){const _0x381d1d=this['editor'],_0x38e298=_0x381d1d['plugins']['get']('PasteFromOffice'),_0xcb989f=_0x381d1d['editing']['view']['document'],_0x1d1739=new g(_0xcb989f);_0x38e298['registerNormalizer'](_0x1d1739,_0x25561a['high']+0xb);}afterInit(){!async function(_0x431397){const _0x2c4cf0='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x5c9edf=0x79440,_0x354c93={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x17b24f(_0x10e075){const _0x46792e=new window['Promise'](_0x53897e=>{_0x10e075['once']('ready',_0x53897e);}),_0xf7241c=window['Date']['now'](),_0x196b1d=_0x10e075['config']['get']('licenseKey');async function _0x53e2a6(){let _0x32a36b,_0xdec82f=null,_0x4d2d6a=null;try{return'GPL'==_0x196b1d?'NotAllowed':(_0x32a36b=_0x227a7f(),_0x32a36b?(_0x32a36b['usageEndpoint']&&(_0x4d2d6a=_0x97bd69(_0x32a36b['usageEndpoint'],_0x32a36b['jti'])),await _0x812094()?_0x34d157()?_0x151615()?'Expired':_0x2d1d30()?('evaluation'==_0x32a36b['licenseType']&&(_0xdec82f=_0x4fdc7b('EvaluationLimit')),await _0x17ceea()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x151615(){const _0x200661=['evaluation','trial']['includes'](_0x32a36b['licenseType'])?_0xf7241c/0x3e8:0xe10*_0x5c9edf;return _0x32a36b['exp']<_0x200661;}function _0x34d157(){const _0x55fd49=_0x32a36b['features'];return!!_0x55fd49&&(!!_0x55fd49['includes']('*')||(!!_0x55fd49['includes']('POE')||(!!_0x55fd49['includes']('PP')||!(!_0x55fd49['includes']('TRILIUM')||!_0x5f14c6()))));}function _0x2d1d30(){const _0x2034b6=_0x32a36b['licensedHosts'];if(!_0x2034b6||0x0==_0x2034b6['length'])return!0x0;const {hostname:_0x34503f}=new URL(window['location']['href']);if(_0x2034b6['includes'](_0x34503f))return!0x0;const _0x45743c=_0x34503f['split']('.');return _0x2034b6['filter'](_0x142432=>_0x142432['includes']('*'))['map'](_0x1eca72=>_0x1eca72['split']('.'))['filter'](_0x19036d=>_0x19036d['length']<=_0x45743c['length'])['map'](_0x330ce3=>Array(_0x45743c['length']-_0x330ce3['length'])['fill']('*'===_0x330ce3[0x0]?'*':'')['concat'](_0x330ce3))['some'](_0x19c4aa=>_0x45743c['every']((_0x4be99d,_0x3a7bf3)=>_0x19c4aa[_0x3a7bf3]===_0x4be99d||'*'===_0x19c4aa[_0x3a7bf3]));}function _0x17ceea(){return _0xdec82f&&_0x4d2d6a?new window['Promise']((_0x4d62c5,_0x6ca0c4)=>{_0xdec82f['then'](_0x4d62c5,_0x6ca0c4),_0x4d2d6a['then'](_0x9ff79d=>{'Valid'!=_0x9ff79d&&_0x4d62c5(_0x9ff79d);},_0x6ca0c4);}):_0xdec82f||_0x4d2d6a||'Valid';}}function _0x97bd69(_0x5221cc,_0x5a8dc0){return new window['Promise'](_0x3af418=>{if(_0x21dc9f())return _0x3af418('Valid');_0x2af6fa(),_0x10e075['decorate']('_sendUsageRequest');let _0x3ae85b=!0x1;const _0x2d8d40=_0xb9494e();function _0x18ae3e(_0x52f943){return!!_0x52f943&&('object'==typeof _0x52f943||'function'==typeof _0x52f943)&&'function'==typeof _0x52f943['then']&&'function'==typeof _0x52f943['catch'];}function _0xd0ec7e(_0x53a954){_0x35b9ac(_0x53a954)['then'](_0x2a82cc=>_0x2a82cc&&'ok'==_0x2a82cc['status']?_0x414e80(_0x1c2e27(_0x2d8d40+_0x5a8dc0))!=_0x2a82cc['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x25529a=>(_0x11a4f2(),_0x25529a),()=>{const _0xf2ca9a=_0x575862();return null==_0xf2ca9a?(_0x11a4f2(),'Valid'):_0xf7241c-_0xf2ca9a>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3af418)['catch'](()=>{_0x3af418('UsageLimit');});const _0x3d4df4=0x36ee80;function _0x11a4f2(){const _0x403c8d='llct-'+_0x414e80(_0x1c2e27(_0x5221cc)),_0x2790b1=_0x511fcb(_0x414e80(window['Math']['ceil'](_0xf7241c/_0x3d4df4)));window['localStorage']['setItem'](_0x403c8d,_0x2790b1);}function _0x575862(){const _0x494154='llct-'+_0x414e80(_0x1c2e27(_0x5221cc)),_0x251aae=window['localStorage']['getItem'](_0x494154);return _0x251aae?window['parseInt'](_0x511fcb(_0x251aae),0x10)*_0x3d4df4:null;}function _0x35b9ac(_0x40d78b){return new window['Promise']((_0x13a249,_0x23a224)=>{_0x40d78b['then'](_0x13a249,_0x23a224),window['setTimeout'](_0x23a224,0x1d4c0);});}}_0x10e075['on']('_sendUsageRequest',(_0x17c3f8,_0x268ed2)=>{if(_0x268ed2[0x0]!=_0x5221cc)return _0x3af418('UsageLimit');_0x268ed2[0x1]={..._0x268ed2[0x1],'requestId':_0x2d8d40};},{'priority':'high'}),_0x10e075['on']('_sendUsageRequest',_0x3f91d6=>{_0x18ae3e(_0x3f91d6['return'])&&(_0x3ae85b=!0x0,_0xd0ec7e(_0x3f91d6['return']));},{'priority':'low'}),_0x46792e['then'](()=>{_0x3ae85b||_0x3af418('UsageLimit');});});function _0x21dc9f(){return'auto'==_0x10e075['editing']['view']['_overlayModeHint'];}function _0x2af6fa(){_0x10e075['editing']['view']['_overlayModeHint']='auto';}}function _0x4fdc7b(_0x405394){const _0x47df3c=[new window['Promise'](_0x5b4f22=>setTimeout(_0x5b4f22,0x93ecc)),_0x46792e['then'](()=>new window['Promise'](_0x2af60f=>{let _0x460f10=0x0;_0x10e075['model']['on']('applyOperation',(_0x5d721e,_0x2fdb26)=>{_0x2fdb26[0x0]['isDocumentOperation']&&_0x460f10++,0x5e8==_0x460f10&&(_0x2af60f(),_0x5d721e['off']());});}))];return window['Promise']['race'](_0x47df3c)['then'](()=>_0x405394);}async function _0x25a3f2(){await _0x46792e,_0x10e075['model']['change']=_0x447bab,_0x10e075['model']['enqueueChange']=_0x447bab,_0x10e075['enableReadOnlyMode']('model');}function _0x5f14c6(){return window['glob']&&window['glob']['triliumVersion'];}function _0x2a2b15(_0x4df4d0){const _0xff5d0c=_0x9b47c7();_0x10e075[_0xff5d0c]='pasteFromOfficeEnhancedLicenseKey'+_0x4df4d0,'Valid'!=_0x4df4d0&&_0x25a3f2();}function _0x9b47c7(){const _0x40726f=window['String'](window['performance']['now']())['replace']('.','');let _0x26cfaa='u';for(let _0x36d559=0x0;_0x36d559<_0x40726f['length'];_0x36d559+=0x2){let _0x5a5132=window['parseInt'](_0x40726f['substring'](_0x36d559,_0x36d559+0x2));_0x5a5132>=0x3e&&(_0x5a5132-=0x3e),_0x26cfaa+=_0x2c4cf0[_0x5a5132];}return _0x26cfaa;}function _0x227a7f(){const _0x3a278=_0x196b1d['split']('.');if(0x3!=_0x3a278['length'])return null;return _0x5e9d98(_0x3a278[0x1]);function _0x5e9d98(_0x179505){const _0x43653f=_0x1feff8(_0x179505);return _0x43653f&&_0x1a25af()?_0x43653f:null;function _0x1a25af(){const _0x5879f7=_0x43653f['jti'],_0xe267fe=window['parseInt'](_0x5879f7['substring'](_0x5879f7['length']-0x8),0x10),_0x48c6dc={..._0x43653f,'jti':_0x5879f7['substring'](0x0,_0x5879f7['length']-0x8)};return delete _0x48c6dc['vc'],_0x1c2e27(_0x48c6dc)==_0xe267fe;}}}async function _0x812094(){let _0xc5724a=!0x0;try{const [_0xd7fe,_0x578d02,_0x5a83f3]=_0x196b1d['split']('.');return _0x3f705f(_0xd7fe),await _0x47ce25(_0xd7fe,_0x578d02,_0x5a83f3),_0xc5724a;}catch{return!0x1;}function _0x3f705f(_0x3155f7){const _0x21e8ec=_0x1feff8(_0x3155f7);_0x21e8ec&&'ES256'==_0x21e8ec['alg']||(_0xc5724a=!0x1);}async function _0x47ce25(_0x2d032f,_0x1b0c49,_0x3c7c6f){const _0x2f2f81=window['Uint8Array']['from'](_0x3fe95d(_0x3c7c6f),_0x48dace=>_0x48dace['charCodeAt'](0x0)),_0x381d92=new window['TextEncoder']()['encode'](_0x2d032f+'.'+_0x1b0c49),_0x2d1595=window['crypto']['subtle'];if(!_0x2d1595)return;const _0x257672=await _0x2d1595['importKey']('jwk',_0x354c93,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2d1595['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x257672,_0x2f2f81,_0x381d92)||(_0xc5724a=!0x1);}}function _0x1feff8(_0xae4628){return _0xae4628['startsWith']('ey')?JSON['parse'](_0x3fe95d(_0xae4628)):null;}function _0x3fe95d(_0x232eae){return window['atob'](_0x232eae['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1c2e27(_0x4b01e7){let _0x4c5c2d=0x1505;function _0x50e803(_0x496d77){for(let _0x16a6c2=0x0;_0x16a6c2<_0x496d77['length'];_0x16a6c2++){const _0x27c046=_0x496d77['charCodeAt'](_0x16a6c2);_0x4c5c2d=(_0x4c5c2d<<0x5)+_0x4c5c2d+_0x27c046,_0x4c5c2d&=_0x4c5c2d;}}function _0x5eeae4(_0x36485f){Array['isArray'](_0x36485f)?_0x36485f['forEach'](_0x5eeae4):_0x36485f&&'object'==typeof _0x36485f?Object['entries'](_0x36485f)['sort']()['forEach'](([_0x10b3d3,_0x3f1816])=>{_0x50e803(_0x10b3d3),_0x5eeae4(_0x3f1816);}):_0x50e803(window['String'](_0x36485f));}return _0x5eeae4(_0x4b01e7),_0x4c5c2d>>>0x0;}function _0x414e80(_0x45bc99){return _0x45bc99['toString'](0x10)['padStart'](0x8,'0');}function _0x511fcb(_0x3ae1de){return _0x3ae1de['split']('')['reverse']()['join']('');}function _0x447bab(){}_0x2a2b15(await _0x53e2a6());}_0x17b24f(_0x431397['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'],[_0x50def7=>Number(_0x50def7)>=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(_0x209fd1){return h['includes'](_0x209fd1);}function v(_0x1d9957){return Array['from'](_0x1d9957['getStyleNames']())['filter'](E);}function F(_0x41a6b7,_0x3b2e30,_0x26ea2c){const {spanStyles:_0xf04741,stylesToBeHtmlElements:_0x16cb89}=K(_0x41a6b7,_0x26ea2c);!function(_0x214d2f,_0x27a10d,_0x508c1f){for(const _0x3bbfea in _0x508c1f)_0x508c1f[_0x3bbfea]['forEach'](([,_0x3755b0])=>{const _0x336d78=_0x27a10d['createElement'](_0x3755b0,[],_0x214d2f['getChildren']());_0x27a10d['insertChild'](0x0,_0x336d78,_0x214d2f);}),_0x27a10d['removeStyle'](_0x3bbfea,_0x214d2f);}(_0x41a6b7,_0x3b2e30,_0x16cb89),function(_0x5bb104,_0x27dac6,_0x250b99){if(!Object['keys'](_0x250b99)['length'])return;const _0x157001=_0x27dac6['createElement']('span',[],_0x5bb104['getChildren']());_0x27dac6['setStyle'](_0x250b99,_0x157001),_0x27dac6['insertChild'](0x0,_0x157001,_0x5bb104),_0x27dac6['removeStyle'](Object['keys'](_0x250b99),_0x5bb104);}(_0x41a6b7,_0x3b2e30,_0xf04741);}function P(_0x7dc03,_0x35880d,_0x8106ce){const {spanStyles:_0x551a74}=K(_0x7dc03,_0x8106ce),_0x3407a9=Object['keys'](_0x551a74);if(!_0x3407a9['length'])return;let _0x1e3b36=!0x1;for(const _0x178f2c of _0x7dc03['getChildren']())if(_0x178f2c['is']('element','span')){_0x1e3b36=!0x0;for(const [_0x1ed1ba,_0x5db1c3]of Object['entries'](_0x551a74))_0x178f2c['hasStyle'](_0x1ed1ba)||_0x35880d['setStyle']({[_0x1ed1ba]:_0x5db1c3},_0x178f2c);}_0x1e3b36&&_0x35880d['removeStyle'](_0x3407a9,_0x7dc03);}function K(_0x3ed010,_0x4188df){const _0x343387={},_0x28d953={};return _0x4188df['forEach'](_0x305338=>{const _0x307fef=_0x3ed010['getStyle'](_0x305338);if(_0x307fef){if(function(_0x434cd8){return O['includes'](_0x434cd8);}(_0x305338))_0x343387[_0x305338]=_0x307fef;else{if(function(_0x2f2831){return _0x2f2831 in L;}(_0x305338)){const _0x1c9572=_0x307fef['split']('\x20');L[_0x305338]['forEach'](([_0x1f6140,_0x176414])=>{for(const _0x1ea3d6 of _0x1c9572)('function'==typeof _0x1f6140&&_0x1f6140(_0x1ea3d6)||_0x1f6140===_0x1ea3d6)&&(_0x28d953[_0x305338]=[..._0x28d953[_0x305338]||[],[_0x1f6140,_0x176414]]);});}}}}),{'spanStyles':_0x343387,'stylesToBeHtmlElements':_0x28d953};}var b=class extends _0x4c9f46{execute(_0x208542){const _0x146804=new _0x5bb052(_0x208542['content']['document']),_0x4d8148=_0x146804['createRangeIn'](_0x208542['content']),_0x5ef777=new _0x424892(_0x146804['document']['stylesProcessor']),_0x418a4d=[...new _0x1c34d6(_0x5ef777)['blockElements'],'font'],_0x59a7ed=_0x4d8148['getItems']();for(const _0x2dfc51 of _0x59a7ed)if(_0x2dfc51['is']('element')&&_0x418a4d['includes'](_0x2dfc51['name'])){if(_0x2dfc51['hasStyle']('mso-list')&&'none'!==_0x2dfc51['getStyle']('mso-list')){P(_0x2dfc51,_0x146804,v(_0x2dfc51));continue;}F(_0x2dfc51,_0x146804,v(_0x2dfc51));}}isActive(_0x68e5a9){return super['isActive'](_0x68e5a9)||u(_0x68e5a9);}},x=class extends _0x598479{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3216f0];}init(){const _0x566e56=this['editor'],_0x316b09=_0x566e56['plugins']['get']('PasteFromOffice'),_0x4857ac=_0x566e56['editing']['view']['document'],_0x4a2c6e=new b(_0x4857ac);_0x316b09['registerNormalizer'](_0x4a2c6e,_0x25561a['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x3e27d9=[this['editor']];for(const _0x283623 of _0x3e27d9){let _0x22ee14;for(const _0x2cc12f in _0x283623){const _0x54013f=_0x2cc12f,_0x5b3d9f=_0x283623[_0x54013f];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5b3d9f){delete _0x283623[_0x54013f],_0x22ee14=_0x5b3d9f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x22ee14&&_0x283623['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x22ee14&&_0x283623['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x22ee14&&_0x283623['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x22ee14&&_0x283623['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x22ee14&&_0x283623['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x22ee14&&_0x283623['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x598479{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3216f0,p,x];}};export{k as PasteFromOfficeEnhanced};
|
|
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};
|
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.7",
|
|
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.7",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.5.0-alpha.7",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.5.0-alpha.7",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.5.0-alpha.7",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.5.0-alpha.7"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|