@ckeditor/ckeditor5-paste-from-office-enhanced 48.3.0-alpha.6 → 48.3.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 _0x77be76}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x35001f,PasteFromOfficeMSWordNormalizer as _0x5bbc79}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x5515d3,uid as _0x13aae6}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x83bcd7,ViewDomConverter as _0x4a94c3,ViewUpcastWriter as _0x5b4cde}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x10f81a){return f['test'](_0x10f81a);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x1595e1,_0x30b12e){const _0x44e840=new Map();for(const [_0x3b7a81,_0x203818]of _0x30b12e){if(!_0x3b7a81['tagName']&&!_0x3b7a81['className'])continue;const _0x5ae425=!_0x3b7a81['tagName']||_0x1595e1['name']===_0x3b7a81['tagName'],_0x2b3229=!_0x3b7a81['className']||_0x1595e1['hasClass'](_0x3b7a81['className']);_0x5ae425&&_0x2b3229&&_0x44e840['set'](_0x3b7a81,_0x203818);}return _0x44e840;}function m(_0x82cc7){const _0x3bd5ab={};for(let _0x331fb3=0x0;_0x331fb3<_0x82cc7['length'];_0x331fb3++){const _0x514196=_0x82cc7[_0x331fb3],_0x6d5782=_0x82cc7['getPropertyValue'](_0x514196);'initial'!==_0x6d5782&&(_0x3bd5ab[_0x514196]=_0x6d5782);}return _0x3bd5ab;}function w(_0x2525d2){const _0xd2ed8b=_0x2525d2['split'](',')['map'](_0x352182=>_0x352182['trim']()),_0x2be1a2=[];for(const _0x3348a1 of _0xd2ed8b){const _0x25670b=l['exec'](_0x3348a1);_0x25670b&&_0x2be1a2['push'](_0x25670b['groups']);}return _0x2be1a2;}function y(_0x1927ce){const _0x28a70e={};for(const _0x18423a of _0x1927ce)Object['assign'](_0x28a70e,_0x18423a);return _0x28a70e;}var g=class extends _0x5bbc79{['execute'](_0x2e2c22){const {styles:_0x33cd28,stylesString:_0x2dbd7f}=_0x2e2c22['extraContent'],_0x2a5575=new _0x5b4cde(_0x2e2c22['content']['document']),_0x1b0d87=_0x2a5575['createRangeIn'](_0x2e2c22['content']),_0x5dfd7d=function(_0x4ee36c){const _0x5f1f08=new Map();for(const _0x11bcb8 in _0x4ee36c){const _0x4db0d4=w(_0x11bcb8),_0x57569c=_0x4ee36c[_0x11bcb8];for(const _0x5af529 of _0x4db0d4)_0x5f1f08['set'](_0x5af529,_0x57569c);}return _0x5f1f08;}(function(_0xa37c58){const _0x28a800={};for(const _0x210d24 of _0xa37c58)for(const _0x3c74e4 of _0x210d24['cssRules'])if(_0x3c74e4 instanceof CSSStyleRule){const _0x35683a=m(_0x3c74e4['style']);_0x28a800[_0x3c74e4['selectorText']]=Object['assign']({},_0x28a800[_0x3c74e4['selectorText']]||{},_0x35683a);}return _0x28a800;}(_0x33cd28)),_0x27b8a5=function(_0xb19e81){const _0x4810df={},_0x95c85a=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0xd39420=/\.(?<className>[\w-]+)/g;let _0x3564a6;for(;null!==(_0x3564a6=_0x95c85a['exec'](_0xb19e81));){const {selector:_0x177a32,color:_0xd433b3,patternType:_0x529833}=_0x3564a6['groups'];if('auto'!==_0xd433b3['toLowerCase']()&&'none'!==_0x529833['toLowerCase']()&&'auto'!==_0x529833['toLowerCase']()){for(const _0x4a663e of _0x177a32['matchAll'](_0xd39420))_0x4810df[_0x4a663e['groups']['className']]=_0xd433b3;}}return _0x4810df;}(_0x2dbd7f);for(const _0x5ad396 of _0x1b0d87){if('elementStart'!==_0x5ad396['type'])continue;const _0x2f3fb5=_0x5ad396['item'],_0x4d725b=d(_0x2f3fb5,_0x5dfd7d),_0x3511ec=_0x4d725b['size']?y(Array['from'](_0x4d725b['values']())):{};if(!('background-color'in _0x3511ec)&&!('background'in _0x3511ec)){for(const [_0x36e492,_0x51a138]of Object['entries'](_0x27b8a5))if(_0x2f3fb5['hasClass'](_0x36e492)){_0x3511ec['background-color']=_0x51a138;break;}}for(const _0x5a12b9 in _0x3511ec)_0x2f3fb5['hasStyle'](_0x5a12b9)||_0x2a5575['setStyle'](_0x5a12b9,_0x3511ec[_0x5a12b9],_0x2f3fb5);}}['isActive'](_0x369308){return super['isActive'](_0x369308)||u(_0x369308);}},p=class extends _0x77be76{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x35001f];}['init'](){const _0x16aefa=this['editor'],_0x4e6844=_0x16aefa['plugins']['get']('PasteFromOffice'),_0x5175f2=_0x16aefa['editing']['view']['document'],_0x2bb8fd=new g(_0x5175f2);_0x4e6844['registerNormalizer'](_0x2bb8fd,_0x5515d3['high']+0xb);}['afterInit'](){!async function(_0x50ad37){const _0x221ff3='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x24990f=0x78e58,_0x37d01d=window['Date']['now'](),_0x4687a3=_0x50ad37['editor'],_0x240d4b=new window['Promise'](_0x449f85=>{_0x4687a3['once']('ready',_0x449f85);}),_0x532499={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3a1f9f=_0x4687a3['config']['get']('licenseKey');async function _0x3f0f05(){let _0x1e6217,_0x21d8db=null,_0x355c17=null;try{return'GPL'==_0x3a1f9f?'NotAllowed':(_0x1e6217=_0x14bae8(),_0x1e6217?(_0x1e6217['usageEndpoint']&&(_0x355c17=_0x261890(_0x1e6217['usageEndpoint'],_0x1e6217['jti'])),await _0x170218()?_0x49403d()?_0x304584()?'Expired':_0x2d2932()?('evaluation'==_0x1e6217['licenseType']&&(_0x21d8db=_0x1defd1('EvaluationLimit')),await _0x30b5de()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x304584(){const _0x27b1e0=['evaluation','trial']['includes'](_0x1e6217['licenseType'])?_0x37d01d/0x3e8:0xe10*_0x24990f;return _0x1e6217['exp']<_0x27b1e0;}function _0x49403d(){const _0x9b7018=_0x1e6217['features'];return!!_0x9b7018&&(!!_0x9b7018['includes']('*')||(!!_0x9b7018['includes']('POE')||(!!_0x9b7018['includes']('PP')||!(!_0x9b7018['includes']('TRILIUM')||!_0x2dcba8()))));}function _0x2d2932(){const _0x249ec7=_0x1e6217['licensedHosts'];if(!_0x249ec7||0x0==_0x249ec7['length'])return!0x0;const {hostname:_0x134643}=new URL(window['location']['href']);if(_0x249ec7['includes'](_0x134643))return!0x0;const _0x4d814f=_0x134643['split']('.');return _0x249ec7['filter'](_0x4d9b40=>_0x4d9b40['includes']('*'))['map'](_0x3df026=>_0x3df026['split']('.'))['filter'](_0x14ee0e=>_0x14ee0e['length']<=_0x4d814f['length'])['map'](_0x2312cb=>Array(_0x4d814f['length']-_0x2312cb['length'])['fill']('*'===_0x2312cb[0x0]?'*':'')['concat'](_0x2312cb))['some'](_0x1a1757=>_0x4d814f['every']((_0x2a1a82,_0x5a4a56)=>_0x1a1757[_0x5a4a56]===_0x2a1a82||'*'===_0x1a1757[_0x5a4a56]));}function _0x30b5de(){return _0x21d8db&&_0x355c17?new window['Promise']((_0x45f96c,_0x5d7b0d)=>{_0x21d8db['then'](_0x45f96c,_0x5d7b0d),_0x355c17['then'](_0x4e4f6d=>{'Valid'!=_0x4e4f6d&&_0x45f96c(_0x4e4f6d);},_0x5d7b0d);}):_0x21d8db||_0x355c17||'Valid';}}function _0x261890(_0x5bc4f5,_0x43b2a5){return new window['Promise'](_0x31881e=>{if(_0x544c38())return _0x31881e('Valid');_0x312a86(),_0x4687a3['decorate']('_sendUsageRequest');let _0x59af13=!0x1;const _0x4d6632=_0x13aae6();function _0x2c94ef(_0x4c7fb9){return!!_0x4c7fb9&&('object'==typeof _0x4c7fb9||'function'==typeof _0x4c7fb9)&&'function'==typeof _0x4c7fb9['then']&&'function'==typeof _0x4c7fb9['catch'];}function _0x1c074a(_0x573003){_0x42663a(_0x573003)['then'](_0x384818=>_0x384818&&'ok'==_0x384818['status']?_0x1f9b43(_0x1a8b9d(_0x4d6632+_0x43b2a5))!=_0x384818['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x50fb99=>(_0x46736b(),_0x50fb99),()=>{const _0x11b833=_0x41b0b0();return null==_0x11b833?(_0x46736b(),'Valid'):_0x37d01d-_0x11b833>0x240c8400?'UsageLimit':'Valid';})['then'](_0x31881e)['catch'](()=>{_0x31881e('UsageLimit');});const _0x16c3ac=0x36ee80;function _0x46736b(){const _0x5c644a='llct-'+_0x1f9b43(_0x1a8b9d(_0x5bc4f5)),_0x326292=_0x446601(_0x1f9b43(window['Math']['ceil'](_0x37d01d/_0x16c3ac)));window['localStorage']['setItem'](_0x5c644a,_0x326292);}function _0x41b0b0(){const _0x14a002='llct-'+_0x1f9b43(_0x1a8b9d(_0x5bc4f5)),_0x29c1e0=window['localStorage']['getItem'](_0x14a002);return _0x29c1e0?window['parseInt'](_0x446601(_0x29c1e0),0x10)*_0x16c3ac:null;}function _0x42663a(_0x484baf){return new window['Promise']((_0x5143cc,_0x3562bf)=>{_0x484baf['then'](_0x5143cc,_0x3562bf),window['setTimeout'](_0x3562bf,0x1d4c0);});}}_0x4687a3['on']('_sendUsageRequest',(_0x33e6bd,_0x3ff2d9)=>{if(_0x3ff2d9[0x0]!=_0x5bc4f5)return _0x31881e('UsageLimit');_0x3ff2d9[0x1]={..._0x3ff2d9[0x1],'requestId':_0x4d6632};},{'priority':'high'}),_0x4687a3['on']('_sendUsageRequest',_0x119759=>{_0x2c94ef(_0x119759['return'])&&(_0x59af13=!0x0,_0x1c074a(_0x119759['return']));},{'priority':'low'}),_0x240d4b['then'](()=>{_0x59af13||_0x31881e('UsageLimit');});});function _0x544c38(){return'auto'==_0x4687a3['editing']['view']['_overlayModeHint'];}function _0x312a86(){_0x4687a3['editing']['view']['_overlayModeHint']='auto';}}function _0x1defd1(_0x45964b){const _0x4f9bde=[new window['Promise'](_0x29d866=>setTimeout(_0x29d866,0x93ecc)),_0x240d4b['then'](()=>new window['Promise'](_0x5e9b4d=>{let _0x2d7717=0x0;_0x4687a3['model']['on']('applyOperation',(_0x16102f,_0x56c931)=>{_0x56c931[0x0]['isDocumentOperation']&&_0x2d7717++,0x5e8==_0x2d7717&&(_0x5e9b4d(),_0x16102f['off']());});}))];return window['Promise']['race'](_0x4f9bde)['then'](()=>_0x45964b);}async function _0x388e13(){await _0x240d4b,_0x4687a3['model']['change']=_0x29c52b,_0x4687a3['model']['enqueueChange']=_0x29c52b,_0x4687a3['enableReadOnlyMode']('model');}function _0x2dcba8(){return window['glob']&&window['glob']['triliumVersion'];}function _0x26787f(_0x2bdb32){const _0x1e1ffe=_0xebb8d1();_0x4687a3[_0x1e1ffe]='pasteFromOfficeEnhancedLicenseKey'+_0x2bdb32,'Valid'!=_0x2bdb32&&_0x388e13();}function _0xebb8d1(){const _0x275cf1=window['String'](window['performance']['now']())['replace']('.','');let _0x254667='s';for(let _0x31880b=0x0;_0x31880b<_0x275cf1['length'];_0x31880b+=0x2){let _0x18bb0b=window['parseInt'](_0x275cf1['substring'](_0x31880b,_0x31880b+0x2));_0x18bb0b>=0x3e&&(_0x18bb0b-=0x3e),_0x254667+=_0x221ff3[_0x18bb0b];}return _0x254667;}function _0x14bae8(){const _0x1fb075=_0x3a1f9f['split']('.');if(0x3!=_0x1fb075['length'])return null;return _0x498653(_0x1fb075[0x1]);function _0x498653(_0x34f2e8){const _0x4c0142=_0x3a0833(_0x34f2e8);return _0x4c0142&&_0x53c0f5()?_0x4c0142:null;function _0x53c0f5(){const _0x265a8e=_0x4c0142['jti'],_0x12ca2b=window['parseInt'](_0x265a8e['substring'](_0x265a8e['length']-0x8),0x10),_0x1ad44e={..._0x4c0142,'jti':_0x265a8e['substring'](0x0,_0x265a8e['length']-0x8)};return delete _0x1ad44e['vc'],_0x1a8b9d(_0x1ad44e)==_0x12ca2b;}}}async function _0x170218(){let _0x21291e=!0x0;try{const [_0x5b974d,_0x429aca,_0x45a19d]=_0x3a1f9f['split']('.');return _0x1adf45(_0x5b974d),await _0x438277(_0x5b974d,_0x429aca,_0x45a19d),_0x21291e;}catch{return!0x1;}function _0x1adf45(_0xf6f701){const _0x18574c=_0x3a0833(_0xf6f701);_0x18574c&&'ES256'==_0x18574c['alg']||(_0x21291e=!0x1);}async function _0x438277(_0x24980f,_0x25dbb8,_0x559f93){const _0x4e8f30=window['Uint8Array']['from'](_0x3bc22d(_0x559f93),_0x4775c6=>_0x4775c6['charCodeAt'](0x0)),_0x3b510b=new window['TextEncoder']()['encode'](_0x24980f+'.'+_0x25dbb8),_0x5c1179=window['crypto']['subtle'];if(!_0x5c1179)return;const _0x2673cc=await _0x5c1179['importKey']('jwk',_0x532499,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5c1179['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2673cc,_0x4e8f30,_0x3b510b)||(_0x21291e=!0x1);}}function _0x3a0833(_0x5af856){return _0x5af856['startsWith']('ey')?JSON['parse'](_0x3bc22d(_0x5af856)):null;}function _0x3bc22d(_0x5d5a4e){return window['atob'](_0x5d5a4e['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1a8b9d(_0x3fc4b1){let _0x3d4d17=0x1505;function _0x47a610(_0x261e60){for(let _0x4112b4=0x0;_0x4112b4<_0x261e60['length'];_0x4112b4++){const _0x26fad2=_0x261e60['charCodeAt'](_0x4112b4);_0x3d4d17=(_0x3d4d17<<0x5)+_0x3d4d17+_0x26fad2,_0x3d4d17&=_0x3d4d17;}}function _0x435409(_0x4b39ac){Array['isArray'](_0x4b39ac)?_0x4b39ac['forEach'](_0x435409):_0x4b39ac&&'object'==typeof _0x4b39ac?Object['entries'](_0x4b39ac)['sort']()['forEach'](([_0x3ae198,_0x292860])=>{_0x47a610(_0x3ae198),_0x435409(_0x292860);}):_0x47a610(window['String'](_0x4b39ac));}return _0x435409(_0x3fc4b1),_0x3d4d17>>>0x0;}function _0x1f9b43(_0x5f59db){return _0x5f59db['toString'](0x10)['padStart'](0x8,'0');}function _0x446601(_0x732bfc){return _0x732bfc['split']('')['reverse']()['join']('');}function _0x29c52b(){}_0x26787f(await _0x3f0f05());}(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'],[_0x34b400=>Number(_0x34b400)>=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(_0x757298){return h['includes'](_0x757298);}function v(_0x510407){return Array['from'](_0x510407['getStyleNames']())['filter'](E);}function F(_0x31f59a,_0x8a2647,_0x5cc13b){const {spanStyles:_0x75b3cb,stylesToBeHtmlElements:_0x87ddd8}=K(_0x31f59a,_0x5cc13b);!function(_0x3da6c1,_0x12653c,_0x3ac924){for(const _0x5756ad in _0x3ac924)_0x3ac924[_0x5756ad]['forEach'](([,_0x4cea3a])=>{const _0x337bea=_0x12653c['createElement'](_0x4cea3a,[],_0x3da6c1['getChildren']());_0x12653c['insertChild'](0x0,_0x337bea,_0x3da6c1);}),_0x12653c['removeStyle'](_0x5756ad,_0x3da6c1);}(_0x31f59a,_0x8a2647,_0x87ddd8),function(_0xf66dc4,_0xd35364,_0x5a895d){if(!Object['keys'](_0x5a895d)['length'])return;const _0x3c793a=_0xd35364['createElement']('span',[],_0xf66dc4['getChildren']());_0xd35364['setStyle'](_0x5a895d,_0x3c793a),_0xd35364['insertChild'](0x0,_0x3c793a,_0xf66dc4),_0xd35364['removeStyle'](Object['keys'](_0x5a895d),_0xf66dc4);}(_0x31f59a,_0x8a2647,_0x75b3cb);}function P(_0x79e329,_0x30a7eb,_0x5c63fe){const {spanStyles:_0x49eaa5}=K(_0x79e329,_0x5c63fe),_0x31ff3a=Object['keys'](_0x49eaa5);if(!_0x31ff3a['length'])return;let _0x559177=!0x1;for(const _0x2a12a2 of _0x79e329['getChildren']())if(_0x2a12a2['is']('element','span')){_0x559177=!0x0;for(const [_0x4e6343,_0x564100]of Object['entries'](_0x49eaa5))_0x2a12a2['hasStyle'](_0x4e6343)||_0x30a7eb['setStyle']({[_0x4e6343]:_0x564100},_0x2a12a2);}_0x559177&&_0x30a7eb['removeStyle'](_0x31ff3a,_0x79e329);}function K(_0x384aa4,_0x27d8ba){const _0x351841={},_0x42b4e8={};return _0x27d8ba['forEach'](_0x5a6420=>{const _0x5c3c8c=_0x384aa4['getStyle'](_0x5a6420);if(_0x5c3c8c){if(function(_0x32b953){return O['includes'](_0x32b953);}(_0x5a6420))_0x351841[_0x5a6420]=_0x5c3c8c;else{if(function(_0x3e2553){return _0x3e2553 in L;}(_0x5a6420)){const _0x263b3f=_0x5c3c8c['split']('\x20');L[_0x5a6420]['forEach'](([_0x21c27c,_0x2533ca])=>{for(const _0x4c6a15 of _0x263b3f)('function'==typeof _0x21c27c&&_0x21c27c(_0x4c6a15)||_0x21c27c===_0x4c6a15)&&(_0x42b4e8[_0x5a6420]=[..._0x42b4e8[_0x5a6420]||[],[_0x21c27c,_0x2533ca]]);});}}}}),{'spanStyles':_0x351841,'stylesToBeHtmlElements':_0x42b4e8};}var b=class extends _0x5bbc79{['execute'](_0x6bcb5b){const _0x3c0484=new _0x5b4cde(_0x6bcb5b['content']['document']),_0x21f2e6=_0x3c0484['createRangeIn'](_0x6bcb5b['content']),_0xda098b=[...new _0x4a94c3(new _0x83bcd7(_0x3c0484['document']['stylesProcessor']))['blockElements'],'font'],_0x3ce599=_0x21f2e6['getItems']();for(const _0x4b4a00 of _0x3ce599)if(_0x4b4a00['is']('element')&&_0xda098b['includes'](_0x4b4a00['name'])){if(_0x4b4a00['hasStyle']('mso-list')&&'none'!==_0x4b4a00['getStyle']('mso-list')){P(_0x4b4a00,_0x3c0484,v(_0x4b4a00));continue;}F(_0x4b4a00,_0x3c0484,v(_0x4b4a00));}}['isActive'](_0x1e6535){return super['isActive'](_0x1e6535)||u(_0x1e6535);}},x=class extends _0x77be76{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x35001f];}['init'](){const _0x5f3224=this['editor'],_0x21c131=_0x5f3224['plugins']['get']('PasteFromOffice'),_0x594d9e=_0x5f3224['editing']['view']['document'],_0x1fffc5=new b(_0x594d9e);_0x21c131['registerNormalizer'](_0x1fffc5,_0x5515d3['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x40f840=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39be32;for(const _0x1426e1 in _0x40f840){const _0x404b8a=_0x1426e1,_0x35655a=_0x40f840[_0x404b8a];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x35655a){delete _0x40f840[_0x404b8a],_0x39be32=_0x35655a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x39be32&&_0x40f840['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x39be32&&_0x40f840['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x39be32&&_0x40f840['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x39be32&&_0x40f840['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x39be32&&_0x40f840['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x39be32&&_0x40f840['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x77be76{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x35001f,p,x];}};export{k as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x49910c}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x25b302,PasteFromOfficeMSWordNormalizer as _0x3acbac}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x2f675d,uid as _0x526802}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x2da69e,ViewDomConverter as _0x37f23f,ViewUpcastWriter as _0x4ced59}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x53fc){return f['test'](_0x53fc);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x3c0f06,_0x210292){const _0x2083ca=new Map();for(const [_0x2f79da,_0x65178a]of _0x210292){if(!_0x2f79da['tagName']&&!_0x2f79da['className'])continue;const _0x4cdc6c=!_0x2f79da['tagName']||_0x3c0f06['name']===_0x2f79da['tagName'],_0x8c60a7=!_0x2f79da['className']||_0x3c0f06['hasClass'](_0x2f79da['className']);_0x4cdc6c&&_0x8c60a7&&_0x2083ca['set'](_0x2f79da,_0x65178a);}return _0x2083ca;}function m(_0x20d8d1){const _0x99094={};for(let _0x5b0bc0=0x0;_0x5b0bc0<_0x20d8d1['length'];_0x5b0bc0++){const _0x1edadc=_0x20d8d1[_0x5b0bc0],_0x46b4e1=_0x20d8d1['getPropertyValue'](_0x1edadc);'initial'!==_0x46b4e1&&(_0x99094[_0x1edadc]=_0x46b4e1);}return _0x99094;}function w(_0x4ad2f7){const _0x28731d=_0x4ad2f7['split'](',')['map'](_0x3a963b=>_0x3a963b['trim']()),_0x474bc0=[];for(const _0x553d04 of _0x28731d){const _0x289e88=l['exec'](_0x553d04);_0x289e88&&_0x474bc0['push'](_0x289e88['groups']);}return _0x474bc0;}function y(_0x4ce91c){const _0x261ebb={};for(const _0xefa3c0 of _0x4ce91c)Object['assign'](_0x261ebb,_0xefa3c0);return _0x261ebb;}var g=class extends _0x3acbac{['execute'](_0x1b4a94){const {styles:_0x4e4564,stylesString:_0x3c6340}=_0x1b4a94['extraContent'],_0x50a544=new _0x4ced59(_0x1b4a94['content']['document']),_0x5b131d=_0x50a544['createRangeIn'](_0x1b4a94['content']),_0x853073=function(_0x4aa9e6){const _0x2fe555=new Map();for(const _0xec3d12 in _0x4aa9e6){const _0x2f1ba0=w(_0xec3d12),_0x2fdc03=_0x4aa9e6[_0xec3d12];for(const _0xf9678d of _0x2f1ba0)_0x2fe555['set'](_0xf9678d,_0x2fdc03);}return _0x2fe555;}(function(_0x42d096){const _0x591108={};for(const _0x16cac2 of _0x42d096)for(const _0x320767 of _0x16cac2['cssRules'])if(_0x320767 instanceof CSSStyleRule){const _0x4429b9=m(_0x320767['style']);_0x591108[_0x320767['selectorText']]=Object['assign']({},_0x591108[_0x320767['selectorText']]||{},_0x4429b9);}return _0x591108;}(_0x4e4564)),_0x568398=function(_0x1c96f1){const _0x27aa12={},_0x1e772f=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x53da25=/\.(?<className>[\w-]+)/g;let _0x1ee900;for(;null!==(_0x1ee900=_0x1e772f['exec'](_0x1c96f1));){const {selector:_0x5921b8,color:_0x39794a,patternType:_0x99ab8f}=_0x1ee900['groups'];if('auto'!==_0x39794a['toLowerCase']()&&'none'!==_0x99ab8f['toLowerCase']()&&'auto'!==_0x99ab8f['toLowerCase']()){for(const _0x3e13de of _0x5921b8['matchAll'](_0x53da25))_0x27aa12[_0x3e13de['groups']['className']]=_0x39794a;}}return _0x27aa12;}(_0x3c6340);for(const _0x5bb8d6 of _0x5b131d){if('elementStart'!==_0x5bb8d6['type'])continue;const _0x294d99=_0x5bb8d6['item'],_0x559ae0=d(_0x294d99,_0x853073),_0x2f6509=_0x559ae0['size']?y(Array['from'](_0x559ae0['values']())):{};if(!('background-color'in _0x2f6509)&&!('background'in _0x2f6509)){for(const [_0x12fb65,_0xffa9ac]of Object['entries'](_0x568398))if(_0x294d99['hasClass'](_0x12fb65)){_0x2f6509['background-color']=_0xffa9ac;break;}}for(const _0x52f0b5 in _0x2f6509)_0x294d99['hasStyle'](_0x52f0b5)||_0x50a544['setStyle'](_0x52f0b5,_0x2f6509[_0x52f0b5],_0x294d99);}}['isActive'](_0x548617){return super['isActive'](_0x548617)||u(_0x548617);}},p=class extends _0x49910c{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x25b302];}['init'](){const _0x3471d4=this['editor'],_0x551302=_0x3471d4['plugins']['get']('PasteFromOffice'),_0xa9481b=_0x3471d4['editing']['view']['document'],_0x345d03=new g(_0xa9481b);_0x551302['registerNormalizer'](_0x345d03,_0x2f675d['high']+0xb);}['afterInit'](){!async function(_0x9c0a23){const _0x2be487='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x140422=0x78e70,_0x2a1bc0=window['Date']['now'](),_0x158041=_0x9c0a23['editor'],_0x28a5fc=new window['Promise'](_0x140c75=>{_0x158041['once']('ready',_0x140c75);}),_0x2eceb9={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1e8573=_0x158041['config']['get']('licenseKey');async function _0x6a39c9(){let _0x400500,_0x44fd74=null,_0x145bfe=null;try{return'GPL'==_0x1e8573?'NotAllowed':(_0x400500=_0x5b0524(),_0x400500?(_0x400500['usageEndpoint']&&(_0x145bfe=_0x4dc089(_0x400500['usageEndpoint'],_0x400500['jti'])),await _0x40bd63()?_0x129518()?_0x2b9f5d()?'Expired':_0x1524ed()?('evaluation'==_0x400500['licenseType']&&(_0x44fd74=_0x52d524('EvaluationLimit')),await _0x405cc6()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2b9f5d(){const _0x5e3796=['evaluation','trial']['includes'](_0x400500['licenseType'])?_0x2a1bc0/0x3e8:0xe10*_0x140422;return _0x400500['exp']<_0x5e3796;}function _0x129518(){const _0x308ead=_0x400500['features'];return!!_0x308ead&&(!!_0x308ead['includes']('*')||(!!_0x308ead['includes']('POE')||(!!_0x308ead['includes']('PP')||!(!_0x308ead['includes']('TRILIUM')||!_0x3604bb()))));}function _0x1524ed(){const _0x56f420=_0x400500['licensedHosts'];if(!_0x56f420||0x0==_0x56f420['length'])return!0x0;const {hostname:_0x467e0c}=new URL(window['location']['href']);if(_0x56f420['includes'](_0x467e0c))return!0x0;const _0xf7b7ab=_0x467e0c['split']('.');return _0x56f420['filter'](_0x46801e=>_0x46801e['includes']('*'))['map'](_0x5d8d9c=>_0x5d8d9c['split']('.'))['filter'](_0xa181bd=>_0xa181bd['length']<=_0xf7b7ab['length'])['map'](_0xb83a81=>Array(_0xf7b7ab['length']-_0xb83a81['length'])['fill']('*'===_0xb83a81[0x0]?'*':'')['concat'](_0xb83a81))['some'](_0x5a3b5a=>_0xf7b7ab['every']((_0x90b852,_0x3900d0)=>_0x5a3b5a[_0x3900d0]===_0x90b852||'*'===_0x5a3b5a[_0x3900d0]));}function _0x405cc6(){return _0x44fd74&&_0x145bfe?new window['Promise']((_0x2f657c,_0x4010c4)=>{_0x44fd74['then'](_0x2f657c,_0x4010c4),_0x145bfe['then'](_0x44df9a=>{'Valid'!=_0x44df9a&&_0x2f657c(_0x44df9a);},_0x4010c4);}):_0x44fd74||_0x145bfe||'Valid';}}function _0x4dc089(_0x50b066,_0x47ee77){return new window['Promise'](_0xefd836=>{if(_0x3b966c())return _0xefd836('Valid');_0x2ec214(),_0x158041['decorate']('_sendUsageRequest');let _0x26e3b1=!0x1;const _0x874d11=_0x526802();function _0x3320f1(_0x4da908){return!!_0x4da908&&('object'==typeof _0x4da908||'function'==typeof _0x4da908)&&'function'==typeof _0x4da908['then']&&'function'==typeof _0x4da908['catch'];}function _0x428d2b(_0x4eabf3){_0xdfe6b8(_0x4eabf3)['then'](_0x30d4fd=>_0x30d4fd&&'ok'==_0x30d4fd['status']?_0x525ac2(_0x166df1(_0x874d11+_0x47ee77))!=_0x30d4fd['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xdd25d2=>(_0x12d33a(),_0xdd25d2),()=>{const _0x2a926c=_0x4eda56();return null==_0x2a926c?(_0x12d33a(),'Valid'):_0x2a1bc0-_0x2a926c>0x240c8400?'UsageLimit':'Valid';})['then'](_0xefd836)['catch'](()=>{_0xefd836('UsageLimit');});const _0xd14127=0x36ee80;function _0x12d33a(){const _0x3a34ee='llct-'+_0x525ac2(_0x166df1(_0x50b066)),_0x3dd452=_0xe5db02(_0x525ac2(window['Math']['ceil'](_0x2a1bc0/_0xd14127)));window['localStorage']['setItem'](_0x3a34ee,_0x3dd452);}function _0x4eda56(){const _0xd11436='llct-'+_0x525ac2(_0x166df1(_0x50b066)),_0x51c4b4=window['localStorage']['getItem'](_0xd11436);return _0x51c4b4?window['parseInt'](_0xe5db02(_0x51c4b4),0x10)*_0xd14127:null;}function _0xdfe6b8(_0x21498e){return new window['Promise']((_0x4caa00,_0x555e6a)=>{_0x21498e['then'](_0x4caa00,_0x555e6a),window['setTimeout'](_0x555e6a,0x1d4c0);});}}_0x158041['on']('_sendUsageRequest',(_0x23cb2c,_0x3dc18a)=>{if(_0x3dc18a[0x0]!=_0x50b066)return _0xefd836('UsageLimit');_0x3dc18a[0x1]={..._0x3dc18a[0x1],'requestId':_0x874d11};},{'priority':'high'}),_0x158041['on']('_sendUsageRequest',_0x1e2f8e=>{_0x3320f1(_0x1e2f8e['return'])&&(_0x26e3b1=!0x0,_0x428d2b(_0x1e2f8e['return']));},{'priority':'low'}),_0x28a5fc['then'](()=>{_0x26e3b1||_0xefd836('UsageLimit');});});function _0x3b966c(){return'auto'==_0x158041['editing']['view']['_overlayModeHint'];}function _0x2ec214(){_0x158041['editing']['view']['_overlayModeHint']='auto';}}function _0x52d524(_0xd190cc){const _0x35453d=[new window['Promise'](_0x45992c=>setTimeout(_0x45992c,0x93ecc)),_0x28a5fc['then'](()=>new window['Promise'](_0x3f57f1=>{let _0x3f2792=0x0;_0x158041['model']['on']('applyOperation',(_0x3fb40d,_0x4296c8)=>{_0x4296c8[0x0]['isDocumentOperation']&&_0x3f2792++,0x5e8==_0x3f2792&&(_0x3f57f1(),_0x3fb40d['off']());});}))];return window['Promise']['race'](_0x35453d)['then'](()=>_0xd190cc);}async function _0x23570d(){await _0x28a5fc,_0x158041['model']['change']=_0x476527,_0x158041['model']['enqueueChange']=_0x476527,_0x158041['enableReadOnlyMode']('model');}function _0x3604bb(){return window['glob']&&window['glob']['triliumVersion'];}function _0x5a5d9a(_0xc28530){const _0x5969b8=_0x4b05e0();_0x158041[_0x5969b8]='pasteFromOfficeEnhancedLicenseKey'+_0xc28530,'Valid'!=_0xc28530&&_0x23570d();}function _0x4b05e0(){const _0x123017=window['String'](window['performance']['now']())['replace']('.','');let _0x5849e0='s';for(let _0x483877=0x0;_0x483877<_0x123017['length'];_0x483877+=0x2){let _0x2f54d0=window['parseInt'](_0x123017['substring'](_0x483877,_0x483877+0x2));_0x2f54d0>=0x3e&&(_0x2f54d0-=0x3e),_0x5849e0+=_0x2be487[_0x2f54d0];}return _0x5849e0;}function _0x5b0524(){const _0x307952=_0x1e8573['split']('.');if(0x3!=_0x307952['length'])return null;return _0x26d25b(_0x307952[0x1]);function _0x26d25b(_0x1685a0){const _0x4b33f6=_0x4a7300(_0x1685a0);return _0x4b33f6&&_0x4ecd0d()?_0x4b33f6:null;function _0x4ecd0d(){const _0x5de9f4=_0x4b33f6['jti'],_0x541ccb=window['parseInt'](_0x5de9f4['substring'](_0x5de9f4['length']-0x8),0x10),_0xefa521={..._0x4b33f6,'jti':_0x5de9f4['substring'](0x0,_0x5de9f4['length']-0x8)};return delete _0xefa521['vc'],_0x166df1(_0xefa521)==_0x541ccb;}}}async function _0x40bd63(){let _0x4a33aa=!0x0;try{const [_0x3daf59,_0x12f372,_0x411f71]=_0x1e8573['split']('.');return _0x316a29(_0x3daf59),await _0x596394(_0x3daf59,_0x12f372,_0x411f71),_0x4a33aa;}catch{return!0x1;}function _0x316a29(_0x3aecbb){const _0x8907ed=_0x4a7300(_0x3aecbb);_0x8907ed&&'ES256'==_0x8907ed['alg']||(_0x4a33aa=!0x1);}async function _0x596394(_0x3aaddb,_0x41794c,_0x56f703){const _0x1842b9=window['Uint8Array']['from'](_0x2cd278(_0x56f703),_0x4c196c=>_0x4c196c['charCodeAt'](0x0)),_0x48323f=new window['TextEncoder']()['encode'](_0x3aaddb+'.'+_0x41794c),_0x1551c9=window['crypto']['subtle'];if(!_0x1551c9)return;const _0x41b19d=await _0x1551c9['importKey']('jwk',_0x2eceb9,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1551c9['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x41b19d,_0x1842b9,_0x48323f)||(_0x4a33aa=!0x1);}}function _0x4a7300(_0x147661){return _0x147661['startsWith']('ey')?JSON['parse'](_0x2cd278(_0x147661)):null;}function _0x2cd278(_0x15f989){return window['atob'](_0x15f989['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x166df1(_0x36b606){let _0x118c49=0x1505;function _0x5e379b(_0x1ffd6e){for(let _0x3a7f3a=0x0;_0x3a7f3a<_0x1ffd6e['length'];_0x3a7f3a++){const _0x55de72=_0x1ffd6e['charCodeAt'](_0x3a7f3a);_0x118c49=(_0x118c49<<0x5)+_0x118c49+_0x55de72,_0x118c49&=_0x118c49;}}function _0x1182ba(_0x475bc7){Array['isArray'](_0x475bc7)?_0x475bc7['forEach'](_0x1182ba):_0x475bc7&&'object'==typeof _0x475bc7?Object['entries'](_0x475bc7)['sort']()['forEach'](([_0x418fea,_0x1eab50])=>{_0x5e379b(_0x418fea),_0x1182ba(_0x1eab50);}):_0x5e379b(window['String'](_0x475bc7));}return _0x1182ba(_0x36b606),_0x118c49>>>0x0;}function _0x525ac2(_0x37a148){return _0x37a148['toString'](0x10)['padStart'](0x8,'0');}function _0xe5db02(_0x21f910){return _0x21f910['split']('')['reverse']()['join']('');}function _0x476527(){}_0x5a5d9a(await _0x6a39c9());}(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'],[_0x5b6cf0=>Number(_0x5b6cf0)>=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(_0x5b6fc0){return h['includes'](_0x5b6fc0);}function v(_0xa722c0){return Array['from'](_0xa722c0['getStyleNames']())['filter'](E);}function F(_0x45c904,_0x502953,_0x40b112){const {spanStyles:_0x4f64a5,stylesToBeHtmlElements:_0x194393}=K(_0x45c904,_0x40b112);!function(_0x35fe36,_0x279d56,_0x5375d4){for(const _0x3a49f7 in _0x5375d4)_0x5375d4[_0x3a49f7]['forEach'](([,_0xff4a7a])=>{const _0x487781=_0x279d56['createElement'](_0xff4a7a,[],_0x35fe36['getChildren']());_0x279d56['insertChild'](0x0,_0x487781,_0x35fe36);}),_0x279d56['removeStyle'](_0x3a49f7,_0x35fe36);}(_0x45c904,_0x502953,_0x194393),function(_0x3bcde2,_0x29a5d2,_0x31a3da){if(!Object['keys'](_0x31a3da)['length'])return;const _0x202d7c=_0x29a5d2['createElement']('span',[],_0x3bcde2['getChildren']());_0x29a5d2['setStyle'](_0x31a3da,_0x202d7c),_0x29a5d2['insertChild'](0x0,_0x202d7c,_0x3bcde2),_0x29a5d2['removeStyle'](Object['keys'](_0x31a3da),_0x3bcde2);}(_0x45c904,_0x502953,_0x4f64a5);}function P(_0x20abee,_0xe4799e,_0x6927f6){const {spanStyles:_0x2b3ff4}=K(_0x20abee,_0x6927f6),_0x3ef245=Object['keys'](_0x2b3ff4);if(!_0x3ef245['length'])return;let _0x233841=!0x1;for(const _0x1d1aba of _0x20abee['getChildren']())if(_0x1d1aba['is']('element','span')){_0x233841=!0x0;for(const [_0x4cd0b7,_0x434a7f]of Object['entries'](_0x2b3ff4))_0x1d1aba['hasStyle'](_0x4cd0b7)||_0xe4799e['setStyle']({[_0x4cd0b7]:_0x434a7f},_0x1d1aba);}_0x233841&&_0xe4799e['removeStyle'](_0x3ef245,_0x20abee);}function K(_0x2ee184,_0x5ac146){const _0x4da3fd={},_0x131912={};return _0x5ac146['forEach'](_0x26a9aa=>{const _0x4f9c00=_0x2ee184['getStyle'](_0x26a9aa);if(_0x4f9c00){if(function(_0x46f46a){return O['includes'](_0x46f46a);}(_0x26a9aa))_0x4da3fd[_0x26a9aa]=_0x4f9c00;else{if(function(_0x3b2896){return _0x3b2896 in L;}(_0x26a9aa)){const _0x4b320c=_0x4f9c00['split']('\x20');L[_0x26a9aa]['forEach'](([_0x374d37,_0x266cf3])=>{for(const _0x51adc7 of _0x4b320c)('function'==typeof _0x374d37&&_0x374d37(_0x51adc7)||_0x374d37===_0x51adc7)&&(_0x131912[_0x26a9aa]=[..._0x131912[_0x26a9aa]||[],[_0x374d37,_0x266cf3]]);});}}}}),{'spanStyles':_0x4da3fd,'stylesToBeHtmlElements':_0x131912};}var b=class extends _0x3acbac{['execute'](_0x2e38b6){const _0x27091a=new _0x4ced59(_0x2e38b6['content']['document']),_0x3d8542=_0x27091a['createRangeIn'](_0x2e38b6['content']),_0x2e9c8c=[...new _0x37f23f(new _0x2da69e(_0x27091a['document']['stylesProcessor']))['blockElements'],'font'],_0x57c1db=_0x3d8542['getItems']();for(const _0x42f1ae of _0x57c1db)if(_0x42f1ae['is']('element')&&_0x2e9c8c['includes'](_0x42f1ae['name'])){if(_0x42f1ae['hasStyle']('mso-list')&&'none'!==_0x42f1ae['getStyle']('mso-list')){P(_0x42f1ae,_0x27091a,v(_0x42f1ae));continue;}F(_0x42f1ae,_0x27091a,v(_0x42f1ae));}}['isActive'](_0x1b0119){return super['isActive'](_0x1b0119)||u(_0x1b0119);}},x=class extends _0x49910c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x25b302];}['init'](){const _0x439306=this['editor'],_0x4eb4c3=_0x439306['plugins']['get']('PasteFromOffice'),_0x4f51e3=_0x439306['editing']['view']['document'],_0x29f127=new b(_0x4f51e3);_0x4eb4c3['registerNormalizer'](_0x29f127,_0x2f675d['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x53850c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x152928;for(const _0x171665 in _0x53850c){const _0x572173=_0x171665,_0xf5c82f=_0x53850c[_0x572173];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0xf5c82f||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0xf5c82f||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0xf5c82f||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0xf5c82f||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0xf5c82f||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0xf5c82f||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0xf5c82f){delete _0x53850c[_0x572173],_0x152928=_0xf5c82f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x152928&&_0x53850c['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x152928&&_0x53850c['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x152928&&_0x53850c['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x152928&&_0x53850c['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x152928&&_0x53850c['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x152928&&_0x53850c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x49910c{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x25b302,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.3.0-alpha.
|
|
3
|
+
"version": "48.3.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.3.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.3.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.3.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.3.0-alpha.7",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.3.0-alpha.7",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.7",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.3.0-alpha.7",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.7"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|