@ckeditor/ckeditor5-paste-from-office-enhanced 48.3.1-alpha.0 → 48.3.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4f97c4}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x42f398,PasteFromOfficeMSWordNormalizer as _0x520490}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x2cf0b5,uid as _0x39bb0e}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x40d49b,ViewDomConverter as _0x5e905e,ViewUpcastWriter as _0x36b7f2}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xb3d372){return f['test'](_0xb3d372);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x17619e,_0x2d7a3c){const _0x240895=new Map();for(const [_0x35ebc5,_0x2c311b]of _0x2d7a3c){if(!_0x35ebc5['tagName']&&!_0x35ebc5['className'])continue;const _0x5915bb=!_0x35ebc5['tagName']||_0x17619e['name']===_0x35ebc5['tagName'],_0x526075=!_0x35ebc5['className']||_0x17619e['hasClass'](_0x35ebc5['className']);_0x5915bb&&_0x526075&&_0x240895['set'](_0x35ebc5,_0x2c311b);}return _0x240895;}function m(_0x295d4a){const _0x72e21d={};for(let _0x236d9e=0x0;_0x236d9e<_0x295d4a['length'];_0x236d9e++){const _0x96754c=_0x295d4a[_0x236d9e],_0x3d3909=_0x295d4a['getPropertyValue'](_0x96754c);'initial'!==_0x3d3909&&(_0x72e21d[_0x96754c]=_0x3d3909);}return _0x72e21d;}function w(_0x40b7d0){const _0x116c19=_0x40b7d0['split'](',')['map'](_0x274c77=>_0x274c77['trim']()),_0x3c98c2=[];for(const _0x1a9bf1 of _0x116c19){const _0x2b07ff=l['exec'](_0x1a9bf1);_0x2b07ff&&_0x3c98c2['push'](_0x2b07ff['groups']);}return _0x3c98c2;}function y(_0x276f91){const _0x5244e5={};for(const _0x149d39 of _0x276f91)Object['assign'](_0x5244e5,_0x149d39);return _0x5244e5;}var g=class extends _0x520490{['execute'](_0x35a51f){const {styles:_0x571221,stylesString:_0x4f7513}=_0x35a51f['extraContent'],_0x9bc91e=new _0x36b7f2(_0x35a51f['content']['document']),_0x58e765=_0x9bc91e['createRangeIn'](_0x35a51f['content']),_0x1aae63=function(_0x4a469a){const _0x23653a=new Map();for(const _0x7e34b6 in _0x4a469a){const _0x4491a0=w(_0x7e34b6),_0x572a0b=_0x4a469a[_0x7e34b6];for(const _0x58f8b9 of _0x4491a0)_0x23653a['set'](_0x58f8b9,_0x572a0b);}return _0x23653a;}(function(_0x18cde0){const _0x442a46={};for(const _0x6ca05d of _0x18cde0)for(const _0x514adf of _0x6ca05d['cssRules'])if(_0x514adf instanceof CSSStyleRule){const _0x4b1bc5=m(_0x514adf['style']);_0x442a46[_0x514adf['selectorText']]=Object['assign']({},_0x442a46[_0x514adf['selectorText']]||{},_0x4b1bc5);}return _0x442a46;}(_0x571221)),_0x5431ba=function(_0x2b7eec){const _0x3c5584={},_0x5cb12b=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x1a111b=/\.(?<className>[\w-]+)/g;let _0x3dfe5e;for(;null!==(_0x3dfe5e=_0x5cb12b['exec'](_0x2b7eec));){const {selector:_0x4f309e,color:_0x1e43d8,patternType:_0x539a08}=_0x3dfe5e['groups'];if('auto'!==_0x1e43d8['toLowerCase']()&&'none'!==_0x539a08['toLowerCase']()&&'auto'!==_0x539a08['toLowerCase']()){for(const _0x3fbe55 of _0x4f309e['matchAll'](_0x1a111b))_0x3c5584[_0x3fbe55['groups']['className']]=_0x1e43d8;}}return _0x3c5584;}(_0x4f7513);for(const _0x4b80a5 of _0x58e765){if('elementStart'!==_0x4b80a5['type'])continue;const _0x571432=_0x4b80a5['item'],_0x3c8678=d(_0x571432,_0x1aae63),_0x316cdb=_0x3c8678['size']?y(Array['from'](_0x3c8678['values']())):{};if(!('background-color'in _0x316cdb)&&!('background'in _0x316cdb)){for(const [_0x2da451,_0x1d8f78]of Object['entries'](_0x5431ba))if(_0x571432['hasClass'](_0x2da451)){_0x316cdb['background-color']=_0x1d8f78;break;}}for(const _0x55a985 in _0x316cdb)_0x571432['hasStyle'](_0x55a985)||_0x9bc91e['setStyle'](_0x55a985,_0x316cdb[_0x55a985],_0x571432);}}['isActive'](_0x3de7f8){return super['isActive'](_0x3de7f8)||u(_0x3de7f8);}},p=class extends _0x4f97c4{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x42f398];}['init'](){const _0x219c4e=this['editor'],_0x5c8747=_0x219c4e['plugins']['get']('PasteFromOffice'),_0x3a4f35=_0x219c4e['editing']['view']['document'],_0x157b8d=new g(_0x3a4f35);_0x5c8747['registerNormalizer'](_0x157b8d,_0x2cf0b5['high']+0xb);}['afterInit'](){!async function(_0x489bd9){const _0x391dd2='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x410ede=0x78fa8,_0x154cd6=window['Date']['now'](),_0xae6f37=_0x489bd9['editor'],_0x55013d=new window['Promise'](_0x2f958a=>{_0xae6f37['once']('ready',_0x2f958a);}),_0x348fb8={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x4cbe02=_0xae6f37['config']['get']('licenseKey');async function _0x5c5679(){let _0x39869a,_0x3cd0ff=null,_0x3a605a=null;try{return'GPL'==_0x4cbe02?'NotAllowed':(_0x39869a=_0x350a56(),_0x39869a?(_0x39869a['usageEndpoint']&&(_0x3a605a=_0x26379a(_0x39869a['usageEndpoint'],_0x39869a['jti'])),await _0x3b4b6d()?_0x4f6795()?_0x3146d7()?'Expired':_0x2fafb3()?('evaluation'==_0x39869a['licenseType']&&(_0x3cd0ff=_0x291890('EvaluationLimit')),await _0x971cc2()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3146d7(){const _0x42b2be=['evaluation','trial']['includes'](_0x39869a['licenseType'])?_0x154cd6/0x3e8:0xe10*_0x410ede;return _0x39869a['exp']<_0x42b2be;}function _0x4f6795(){const _0x55bb89=_0x39869a['features'];return!!_0x55bb89&&(!!_0x55bb89['includes']('*')||(!!_0x55bb89['includes']('POE')||(!!_0x55bb89['includes']('PP')||!(!_0x55bb89['includes']('TRILIUM')||!_0x507e63()))));}function _0x2fafb3(){const _0x5a04f0=_0x39869a['licensedHosts'];if(!_0x5a04f0||0x0==_0x5a04f0['length'])return!0x0;const {hostname:_0x29d682}=new URL(window['location']['href']);if(_0x5a04f0['includes'](_0x29d682))return!0x0;const _0x4e3ade=_0x29d682['split']('.');return _0x5a04f0['filter'](_0x1a8c67=>_0x1a8c67['includes']('*'))['map'](_0x25aa41=>_0x25aa41['split']('.'))['filter'](_0x1aee6f=>_0x1aee6f['length']<=_0x4e3ade['length'])['map'](_0x24ac6f=>Array(_0x4e3ade['length']-_0x24ac6f['length'])['fill']('*'===_0x24ac6f[0x0]?'*':'')['concat'](_0x24ac6f))['some'](_0x331a08=>_0x4e3ade['every']((_0x1f87b8,_0xdcb7fc)=>_0x331a08[_0xdcb7fc]===_0x1f87b8||'*'===_0x331a08[_0xdcb7fc]));}function _0x971cc2(){return _0x3cd0ff&&_0x3a605a?new window['Promise']((_0x41a38c,_0x457f62)=>{_0x3cd0ff['then'](_0x41a38c,_0x457f62),_0x3a605a['then'](_0x1fb245=>{'Valid'!=_0x1fb245&&_0x41a38c(_0x1fb245);},_0x457f62);}):_0x3cd0ff||_0x3a605a||'Valid';}}function _0x26379a(_0xaa3526,_0x101bc1){return new window['Promise'](_0x5c3d77=>{if(_0x5343f1())return _0x5c3d77('Valid');_0x71d194(),_0xae6f37['decorate']('_sendUsageRequest');let _0x29ad0a=!0x1;const _0x1fac72=_0x39bb0e();function _0x397d52(_0xec8eaf){return!!_0xec8eaf&&('object'==typeof _0xec8eaf||'function'==typeof _0xec8eaf)&&'function'==typeof _0xec8eaf['then']&&'function'==typeof _0xec8eaf['catch'];}function _0x3d4195(_0x292565){_0x2f37f3(_0x292565)['then'](_0x3d624c=>_0x3d624c&&'ok'==_0x3d624c['status']?_0x4f2969(_0x40f89c(_0x1fac72+_0x101bc1))!=_0x3d624c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3c6f57=>(_0x40898d(),_0x3c6f57),()=>{const _0x597f11=_0x4b93cd();return null==_0x597f11?(_0x40898d(),'Valid'):_0x154cd6-_0x597f11>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5c3d77)['catch'](()=>{_0x5c3d77('UsageLimit');});const _0x92cb51=0x36ee80;function _0x40898d(){const _0x23cffe='llct-'+_0x4f2969(_0x40f89c(_0xaa3526)),_0x31a682=_0x4a403e(_0x4f2969(window['Math']['ceil'](_0x154cd6/_0x92cb51)));window['localStorage']['setItem'](_0x23cffe,_0x31a682);}function _0x4b93cd(){const _0x10eaca='llct-'+_0x4f2969(_0x40f89c(_0xaa3526)),_0x167778=window['localStorage']['getItem'](_0x10eaca);return _0x167778?window['parseInt'](_0x4a403e(_0x167778),0x10)*_0x92cb51:null;}function _0x2f37f3(_0x27e992){return new window['Promise']((_0x3b8b6e,_0x473ce2)=>{_0x27e992['then'](_0x3b8b6e,_0x473ce2),window['setTimeout'](_0x473ce2,0x1d4c0);});}}_0xae6f37['on']('_sendUsageRequest',(_0x3faf6b,_0x523f8c)=>{if(_0x523f8c[0x0]!=_0xaa3526)return _0x5c3d77('UsageLimit');_0x523f8c[0x1]={..._0x523f8c[0x1],'requestId':_0x1fac72};},{'priority':'high'}),_0xae6f37['on']('_sendUsageRequest',_0x4233aa=>{_0x397d52(_0x4233aa['return'])&&(_0x29ad0a=!0x0,_0x3d4195(_0x4233aa['return']));},{'priority':'low'}),_0x55013d['then'](()=>{_0x29ad0a||_0x5c3d77('UsageLimit');});});function _0x5343f1(){return'auto'==_0xae6f37['editing']['view']['_overlayModeHint'];}function _0x71d194(){_0xae6f37['editing']['view']['_overlayModeHint']='auto';}}function _0x291890(_0x589f09){const _0x448bed=[new window['Promise'](_0x72818=>setTimeout(_0x72818,0x93ecc)),_0x55013d['then'](()=>new window['Promise'](_0x45934e=>{let _0x2ea198=0x0;_0xae6f37['model']['on']('applyOperation',(_0x1877ad,_0x4eed64)=>{_0x4eed64[0x0]['isDocumentOperation']&&_0x2ea198++,0x5e8==_0x2ea198&&(_0x45934e(),_0x1877ad['off']());});}))];return window['Promise']['race'](_0x448bed)['then'](()=>_0x589f09);}async function _0x522ca7(){await _0x55013d,_0xae6f37['model']['change']=_0x214702,_0xae6f37['model']['enqueueChange']=_0x214702,_0xae6f37['enableReadOnlyMode']('model');}function _0x507e63(){return window['glob']&&window['glob']['triliumVersion'];}function _0x461887(_0x1d2617){const _0x352ecc=_0x4040cc();_0xae6f37[_0x352ecc]='pasteFromOfficeEnhancedLicenseKey'+_0x1d2617,'Valid'!=_0x1d2617&&_0x522ca7();}function _0x4040cc(){const _0x300034=window['String'](window['performance']['now']())['replace']('.','');let _0x6fef08='s';for(let _0x2a9f5d=0x0;_0x2a9f5d<_0x300034['length'];_0x2a9f5d+=0x2){let _0x2098c1=window['parseInt'](_0x300034['substring'](_0x2a9f5d,_0x2a9f5d+0x2));_0x2098c1>=0x3e&&(_0x2098c1-=0x3e),_0x6fef08+=_0x391dd2[_0x2098c1];}return _0x6fef08;}function _0x350a56(){const _0x15b0c6=_0x4cbe02['split']('.');if(0x3!=_0x15b0c6['length'])return null;return _0x5beb7c(_0x15b0c6[0x1]);function _0x5beb7c(_0x56fd16){const _0x161af5=_0xd21bf6(_0x56fd16);return _0x161af5&&_0x3aa003()?_0x161af5:null;function _0x3aa003(){const _0x5429c6=_0x161af5['jti'],_0x146267=window['parseInt'](_0x5429c6['substring'](_0x5429c6['length']-0x8),0x10),_0x4d5bae={..._0x161af5,'jti':_0x5429c6['substring'](0x0,_0x5429c6['length']-0x8)};return delete _0x4d5bae['vc'],_0x40f89c(_0x4d5bae)==_0x146267;}}}async function _0x3b4b6d(){let _0x78f326=!0x0;try{const [_0x15c014,_0x5060a9,_0x4b7b04]=_0x4cbe02['split']('.');return _0x4ee569(_0x15c014),await _0x147062(_0x15c014,_0x5060a9,_0x4b7b04),_0x78f326;}catch{return!0x1;}function _0x4ee569(_0x377a0d){const _0x4e567b=_0xd21bf6(_0x377a0d);_0x4e567b&&'ES256'==_0x4e567b['alg']||(_0x78f326=!0x1);}async function _0x147062(_0x21b24c,_0x510f25,_0x1d3965){const _0x27f83d=window['Uint8Array']['from'](_0x379dfa(_0x1d3965),_0x1143b3=>_0x1143b3['charCodeAt'](0x0)),_0x76c565=new window['TextEncoder']()['encode'](_0x21b24c+'.'+_0x510f25),_0x208b8a=window['crypto']['subtle'];if(!_0x208b8a)return;const _0x4e676a=await _0x208b8a['importKey']('jwk',_0x348fb8,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x208b8a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4e676a,_0x27f83d,_0x76c565)||(_0x78f326=!0x1);}}function _0xd21bf6(_0xe5a9a5){return _0xe5a9a5['startsWith']('ey')?JSON['parse'](_0x379dfa(_0xe5a9a5)):null;}function _0x379dfa(_0x116319){return window['atob'](_0x116319['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x40f89c(_0x1dc445){let _0x1ca43e=0x1505;function _0x376c00(_0x1b8f99){for(let _0x2cec5c=0x0;_0x2cec5c<_0x1b8f99['length'];_0x2cec5c++){const _0x51c787=_0x1b8f99['charCodeAt'](_0x2cec5c);_0x1ca43e=(_0x1ca43e<<0x5)+_0x1ca43e+_0x51c787,_0x1ca43e&=_0x1ca43e;}}function _0x1e4610(_0x5cea2f){Array['isArray'](_0x5cea2f)?_0x5cea2f['forEach'](_0x1e4610):_0x5cea2f&&'object'==typeof _0x5cea2f?Object['entries'](_0x5cea2f)['sort']()['forEach'](([_0x22052f,_0x45129c])=>{_0x376c00(_0x22052f),_0x1e4610(_0x45129c);}):_0x376c00(window['String'](_0x5cea2f));}return _0x1e4610(_0x1dc445),_0x1ca43e>>>0x0;}function _0x4f2969(_0x251123){return _0x251123['toString'](0x10)['padStart'](0x8,'0');}function _0x4a403e(_0x5f2df9){return _0x5f2df9['split']('')['reverse']()['join']('');}function _0x214702(){}_0x461887(await _0x5c5679());}(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'],[_0x83e795=>Number(_0x83e795)>=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(_0x3babc9){return h['includes'](_0x3babc9);}function v(_0x36c7ad){return Array['from'](_0x36c7ad['getStyleNames']())['filter'](E);}function F(_0x4a0664,_0x5891a0,_0x5a22ba){const {spanStyles:_0x258afd,stylesToBeHtmlElements:_0x1338ab}=K(_0x4a0664,_0x5a22ba);!function(_0x14114b,_0x3d3077,_0x2ff15){for(const _0xf9a665 in _0x2ff15)_0x2ff15[_0xf9a665]['forEach'](([,_0x712571])=>{const _0x784e1e=_0x3d3077['createElement'](_0x712571,[],_0x14114b['getChildren']());_0x3d3077['insertChild'](0x0,_0x784e1e,_0x14114b);}),_0x3d3077['removeStyle'](_0xf9a665,_0x14114b);}(_0x4a0664,_0x5891a0,_0x1338ab),function(_0x5077cd,_0x2c0106,_0x371e2e){if(!Object['keys'](_0x371e2e)['length'])return;const _0x3bd92f=_0x2c0106['createElement']('span',[],_0x5077cd['getChildren']());_0x2c0106['setStyle'](_0x371e2e,_0x3bd92f),_0x2c0106['insertChild'](0x0,_0x3bd92f,_0x5077cd),_0x2c0106['removeStyle'](Object['keys'](_0x371e2e),_0x5077cd);}(_0x4a0664,_0x5891a0,_0x258afd);}function P(_0x106e95,_0x2b0f00,_0x55010b){const {spanStyles:_0x481beb}=K(_0x106e95,_0x55010b),_0x5de53e=Object['keys'](_0x481beb);if(!_0x5de53e['length'])return;let _0x471f7a=!0x1;for(const _0x2ba3b1 of _0x106e95['getChildren']())if(_0x2ba3b1['is']('element','span')){_0x471f7a=!0x0;for(const [_0x5d0299,_0xc56095]of Object['entries'](_0x481beb))_0x2ba3b1['hasStyle'](_0x5d0299)||_0x2b0f00['setStyle']({[_0x5d0299]:_0xc56095},_0x2ba3b1);}_0x471f7a&&_0x2b0f00['removeStyle'](_0x5de53e,_0x106e95);}function K(_0x32c2a0,_0x56ef29){const _0xe01ebf={},_0x4ea3de={};return _0x56ef29['forEach'](_0x25ec18=>{const _0x10875f=_0x32c2a0['getStyle'](_0x25ec18);if(_0x10875f){if(function(_0x12c774){return O['includes'](_0x12c774);}(_0x25ec18))_0xe01ebf[_0x25ec18]=_0x10875f;else{if(function(_0x256f27){return _0x256f27 in L;}(_0x25ec18)){const _0x232dcf=_0x10875f['split']('\x20');L[_0x25ec18]['forEach'](([_0x5e280e,_0x3f333e])=>{for(const _0x514d31 of _0x232dcf)('function'==typeof _0x5e280e&&_0x5e280e(_0x514d31)||_0x5e280e===_0x514d31)&&(_0x4ea3de[_0x25ec18]=[..._0x4ea3de[_0x25ec18]||[],[_0x5e280e,_0x3f333e]]);});}}}}),{'spanStyles':_0xe01ebf,'stylesToBeHtmlElements':_0x4ea3de};}var b=class extends _0x520490{['execute'](_0x1408ac){const _0x3c4fab=new _0x36b7f2(_0x1408ac['content']['document']),_0x5993ec=_0x3c4fab['createRangeIn'](_0x1408ac['content']),_0x36bf7c=[...new _0x5e905e(new _0x40d49b(_0x3c4fab['document']['stylesProcessor']))['blockElements'],'font'],_0x1e80c1=_0x5993ec['getItems']();for(const _0x4e14f4 of _0x1e80c1)if(_0x4e14f4['is']('element')&&_0x36bf7c['includes'](_0x4e14f4['name'])){if(_0x4e14f4['hasStyle']('mso-list')&&'none'!==_0x4e14f4['getStyle']('mso-list')){P(_0x4e14f4,_0x3c4fab,v(_0x4e14f4));continue;}F(_0x4e14f4,_0x3c4fab,v(_0x4e14f4));}}['isActive'](_0x434836){return super['isActive'](_0x434836)||u(_0x434836);}},x=class extends _0x4f97c4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x42f398];}['init'](){const _0x57b567=this['editor'],_0x1d87b1=_0x57b567['plugins']['get']('PasteFromOffice'),_0x20cf39=_0x57b567['editing']['view']['document'],_0xb45a64=new b(_0x20cf39);_0x1d87b1['registerNormalizer'](_0xb45a64,_0x2cf0b5['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x40059b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dfc4a;for(const _0x240ea0 in _0x40059b){const _0x36f84a=_0x240ea0,_0x2f8e57=_0x40059b[_0x36f84a];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x2f8e57||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2f8e57||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2f8e57||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2f8e57||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2f8e57||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2f8e57||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2f8e57){delete _0x40059b[_0x36f84a],_0x2dfc4a=_0x2f8e57,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2dfc4a&&_0x40059b['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2dfc4a&&_0x40059b['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2dfc4a&&_0x40059b['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2dfc4a&&_0x40059b['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2dfc4a&&_0x40059b['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2dfc4a&&_0x40059b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x4f97c4{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x42f398,p,x];}};export{k as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x5b72ca}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x2894be,PasteFromOfficeMSWordNormalizer as _0x491e92}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x2cb48f,uid as _0x1299f6}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x4b3ab2,ViewDomConverter as _0x767df1,ViewUpcastWriter as _0x5d39a5}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x39b851){return f['test'](_0x39b851);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x353f51,_0x4d7d8d){const _0x3b8ce2=new Map();for(const [_0x57ee9c,_0x9d09a0]of _0x4d7d8d){if(!_0x57ee9c['tagName']&&!_0x57ee9c['className'])continue;const _0xc6d72=!_0x57ee9c['tagName']||_0x353f51['name']===_0x57ee9c['tagName'],_0x40578d=!_0x57ee9c['className']||_0x353f51['hasClass'](_0x57ee9c['className']);_0xc6d72&&_0x40578d&&_0x3b8ce2['set'](_0x57ee9c,_0x9d09a0);}return _0x3b8ce2;}function m(_0xfb3f0c){const _0x2516de={};for(let _0x7332c0=0x0;_0x7332c0<_0xfb3f0c['length'];_0x7332c0++){const _0x10cac1=_0xfb3f0c[_0x7332c0],_0x14265d=_0xfb3f0c['getPropertyValue'](_0x10cac1);'initial'!==_0x14265d&&(_0x2516de[_0x10cac1]=_0x14265d);}return _0x2516de;}function w(_0x2bcaaa){const _0x2af527=_0x2bcaaa['split'](',')['map'](_0x3d59dc=>_0x3d59dc['trim']()),_0x495da1=[];for(const _0x17db85 of _0x2af527){const _0x494f27=l['exec'](_0x17db85);_0x494f27&&_0x495da1['push'](_0x494f27['groups']);}return _0x495da1;}function y(_0x1f08de){const _0x2582de={};for(const _0x5df4b1 of _0x1f08de)Object['assign'](_0x2582de,_0x5df4b1);return _0x2582de;}var g=class extends _0x491e92{['execute'](_0xbb1716){const {styles:_0x473202,stylesString:_0x5eed45}=_0xbb1716['extraContent'],_0x3630b7=new _0x5d39a5(_0xbb1716['content']['document']),_0x1d11f7=_0x3630b7['createRangeIn'](_0xbb1716['content']),_0x446380=function(_0x1a6de8){const _0x731152=new Map();for(const _0x476da2 in _0x1a6de8){const _0x2cf149=w(_0x476da2),_0x26bf53=_0x1a6de8[_0x476da2];for(const _0xc2e5ae of _0x2cf149)_0x731152['set'](_0xc2e5ae,_0x26bf53);}return _0x731152;}(function(_0x5c188c){const _0x12f8e3={};for(const _0xd6f762 of _0x5c188c)for(const _0x3fd134 of _0xd6f762['cssRules'])if(_0x3fd134 instanceof CSSStyleRule){const _0x384024=m(_0x3fd134['style']);_0x12f8e3[_0x3fd134['selectorText']]=Object['assign']({},_0x12f8e3[_0x3fd134['selectorText']]||{},_0x384024);}return _0x12f8e3;}(_0x473202)),_0x413ab9=function(_0x167eef){const _0x18712f={},_0xf14e77=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x2d7ac7=/\.(?<className>[\w-]+)/g;let _0x9e3d2;for(;null!==(_0x9e3d2=_0xf14e77['exec'](_0x167eef));){const {selector:_0x5de3b3,color:_0x5e823e,patternType:_0x3249fd}=_0x9e3d2['groups'];if('auto'!==_0x5e823e['toLowerCase']()&&'none'!==_0x3249fd['toLowerCase']()&&'auto'!==_0x3249fd['toLowerCase']()){for(const _0x3babf3 of _0x5de3b3['matchAll'](_0x2d7ac7))_0x18712f[_0x3babf3['groups']['className']]=_0x5e823e;}}return _0x18712f;}(_0x5eed45);for(const _0x43a0e0 of _0x1d11f7){if('elementStart'!==_0x43a0e0['type'])continue;const _0xeb4f7f=_0x43a0e0['item'],_0x33ffe3=d(_0xeb4f7f,_0x446380),_0x3fd75d=_0x33ffe3['size']?y(Array['from'](_0x33ffe3['values']())):{};if(!('background-color'in _0x3fd75d)&&!('background'in _0x3fd75d)){for(const [_0x14d456,_0x4ea26a]of Object['entries'](_0x413ab9))if(_0xeb4f7f['hasClass'](_0x14d456)){_0x3fd75d['background-color']=_0x4ea26a;break;}}for(const _0x2a9e89 in _0x3fd75d)_0xeb4f7f['hasStyle'](_0x2a9e89)||_0x3630b7['setStyle'](_0x2a9e89,_0x3fd75d[_0x2a9e89],_0xeb4f7f);}}['isActive'](_0x4b0c9d){return super['isActive'](_0x4b0c9d)||u(_0x4b0c9d);}},p=class extends _0x5b72ca{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2894be];}['init'](){const _0x56af41=this['editor'],_0x1b9e49=_0x56af41['plugins']['get']('PasteFromOffice'),_0x2f6e1d=_0x56af41['editing']['view']['document'],_0xf4044a=new g(_0x2f6e1d);_0x1b9e49['registerNormalizer'](_0xf4044a,_0x2cb48f['high']+0xb);}['afterInit'](){!async function(_0x2e1ee4){const _0x42ed7e='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x1650eb=0x78fc0,_0x54ac9c=window['Date']['now'](),_0x1426ba=_0x2e1ee4['editor'],_0x18b0b1=new window['Promise'](_0xff270b=>{_0x1426ba['once']('ready',_0xff270b);}),_0x54c21c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x36f709=_0x1426ba['config']['get']('licenseKey');async function _0x5bdebd(){let _0x4c94c2,_0x4794a6=null,_0x56259c=null;try{return'GPL'==_0x36f709?'NotAllowed':(_0x4c94c2=_0x14252e(),_0x4c94c2?(_0x4c94c2['usageEndpoint']&&(_0x56259c=_0x22ca0a(_0x4c94c2['usageEndpoint'],_0x4c94c2['jti'])),await _0x104616()?_0x13101e()?_0x716530()?'Expired':_0x2e99aa()?('evaluation'==_0x4c94c2['licenseType']&&(_0x4794a6=_0x1adc77('EvaluationLimit')),await _0x4ccecf()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x716530(){const _0x241bd5=['evaluation','trial']['includes'](_0x4c94c2['licenseType'])?_0x54ac9c/0x3e8:0xe10*_0x1650eb;return _0x4c94c2['exp']<_0x241bd5;}function _0x13101e(){const _0x423ac5=_0x4c94c2['features'];return!!_0x423ac5&&(!!_0x423ac5['includes']('*')||(!!_0x423ac5['includes']('POE')||(!!_0x423ac5['includes']('PP')||!(!_0x423ac5['includes']('TRILIUM')||!_0x54421f()))));}function _0x2e99aa(){const _0x5d5e4c=_0x4c94c2['licensedHosts'];if(!_0x5d5e4c||0x0==_0x5d5e4c['length'])return!0x0;const {hostname:_0x42e460}=new URL(window['location']['href']);if(_0x5d5e4c['includes'](_0x42e460))return!0x0;const _0x2d7d8a=_0x42e460['split']('.');return _0x5d5e4c['filter'](_0x4ab536=>_0x4ab536['includes']('*'))['map'](_0x1d4d89=>_0x1d4d89['split']('.'))['filter'](_0x704874=>_0x704874['length']<=_0x2d7d8a['length'])['map'](_0x3fee45=>Array(_0x2d7d8a['length']-_0x3fee45['length'])['fill']('*'===_0x3fee45[0x0]?'*':'')['concat'](_0x3fee45))['some'](_0x6ce69f=>_0x2d7d8a['every']((_0x2a0732,_0x336ab1)=>_0x6ce69f[_0x336ab1]===_0x2a0732||'*'===_0x6ce69f[_0x336ab1]));}function _0x4ccecf(){return _0x4794a6&&_0x56259c?new window['Promise']((_0x5aabd5,_0x3b20d3)=>{_0x4794a6['then'](_0x5aabd5,_0x3b20d3),_0x56259c['then'](_0x25bffa=>{'Valid'!=_0x25bffa&&_0x5aabd5(_0x25bffa);},_0x3b20d3);}):_0x4794a6||_0x56259c||'Valid';}}function _0x22ca0a(_0x5e6e32,_0x313a2c){return new window['Promise'](_0x4a765d=>{if(_0x467c38())return _0x4a765d('Valid');_0x41174f(),_0x1426ba['decorate']('_sendUsageRequest');let _0x528e77=!0x1;const _0x3fa2d4=_0x1299f6();function _0x25302c(_0x2711c5){return!!_0x2711c5&&('object'==typeof _0x2711c5||'function'==typeof _0x2711c5)&&'function'==typeof _0x2711c5['then']&&'function'==typeof _0x2711c5['catch'];}function _0x389cbd(_0x4747f3){_0x40d4c1(_0x4747f3)['then'](_0x1f488b=>_0x1f488b&&'ok'==_0x1f488b['status']?_0x236412(_0x453dc7(_0x3fa2d4+_0x313a2c))!=_0x1f488b['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2c36d1=>(_0x4f1c93(),_0x2c36d1),()=>{const _0x429760=_0x48d41f();return null==_0x429760?(_0x4f1c93(),'Valid'):_0x54ac9c-_0x429760>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4a765d)['catch'](()=>{_0x4a765d('UsageLimit');});const _0x4e73cc=0x36ee80;function _0x4f1c93(){const _0x547f37='llct-'+_0x236412(_0x453dc7(_0x5e6e32)),_0x3a0ee6=_0xb83848(_0x236412(window['Math']['ceil'](_0x54ac9c/_0x4e73cc)));window['localStorage']['setItem'](_0x547f37,_0x3a0ee6);}function _0x48d41f(){const _0x57d5d4='llct-'+_0x236412(_0x453dc7(_0x5e6e32)),_0xa70316=window['localStorage']['getItem'](_0x57d5d4);return _0xa70316?window['parseInt'](_0xb83848(_0xa70316),0x10)*_0x4e73cc:null;}function _0x40d4c1(_0x211932){return new window['Promise']((_0x36ab92,_0x10a600)=>{_0x211932['then'](_0x36ab92,_0x10a600),window['setTimeout'](_0x10a600,0x1d4c0);});}}_0x1426ba['on']('_sendUsageRequest',(_0x9a52d8,_0x33c74c)=>{if(_0x33c74c[0x0]!=_0x5e6e32)return _0x4a765d('UsageLimit');_0x33c74c[0x1]={..._0x33c74c[0x1],'requestId':_0x3fa2d4};},{'priority':'high'}),_0x1426ba['on']('_sendUsageRequest',_0xa6e740=>{_0x25302c(_0xa6e740['return'])&&(_0x528e77=!0x0,_0x389cbd(_0xa6e740['return']));},{'priority':'low'}),_0x18b0b1['then'](()=>{_0x528e77||_0x4a765d('UsageLimit');});});function _0x467c38(){return'auto'==_0x1426ba['editing']['view']['_overlayModeHint'];}function _0x41174f(){_0x1426ba['editing']['view']['_overlayModeHint']='auto';}}function _0x1adc77(_0x1ef626){const _0x342487=[new window['Promise'](_0x171246=>setTimeout(_0x171246,0x93ecc)),_0x18b0b1['then'](()=>new window['Promise'](_0x137baf=>{let _0x48397b=0x0;_0x1426ba['model']['on']('applyOperation',(_0xb04953,_0x2dad32)=>{_0x2dad32[0x0]['isDocumentOperation']&&_0x48397b++,0x5e8==_0x48397b&&(_0x137baf(),_0xb04953['off']());});}))];return window['Promise']['race'](_0x342487)['then'](()=>_0x1ef626);}async function _0x46164d(){await _0x18b0b1,_0x1426ba['model']['change']=_0x50fe6a,_0x1426ba['model']['enqueueChange']=_0x50fe6a,_0x1426ba['enableReadOnlyMode']('model');}function _0x54421f(){return window['glob']&&window['glob']['triliumVersion'];}function _0x4696da(_0x39fb49){const _0x28576f=_0x16abae();_0x1426ba[_0x28576f]='pasteFromOfficeEnhancedLicenseKey'+_0x39fb49,'Valid'!=_0x39fb49&&_0x46164d();}function _0x16abae(){const _0x4a3cb5=window['String'](window['performance']['now']())['replace']('.','');let _0x43d62c='s';for(let _0x2d97fe=0x0;_0x2d97fe<_0x4a3cb5['length'];_0x2d97fe+=0x2){let _0x5d67c6=window['parseInt'](_0x4a3cb5['substring'](_0x2d97fe,_0x2d97fe+0x2));_0x5d67c6>=0x3e&&(_0x5d67c6-=0x3e),_0x43d62c+=_0x42ed7e[_0x5d67c6];}return _0x43d62c;}function _0x14252e(){const _0x49655e=_0x36f709['split']('.');if(0x3!=_0x49655e['length'])return null;return _0x261e3f(_0x49655e[0x1]);function _0x261e3f(_0x39cc19){const _0x532599=_0x2c2097(_0x39cc19);return _0x532599&&_0x33ff35()?_0x532599:null;function _0x33ff35(){const _0x5594c5=_0x532599['jti'],_0x4b90f4=window['parseInt'](_0x5594c5['substring'](_0x5594c5['length']-0x8),0x10),_0x371bf0={..._0x532599,'jti':_0x5594c5['substring'](0x0,_0x5594c5['length']-0x8)};return delete _0x371bf0['vc'],_0x453dc7(_0x371bf0)==_0x4b90f4;}}}async function _0x104616(){let _0x36a436=!0x0;try{const [_0x92e5c,_0x466417,_0x23cbd9]=_0x36f709['split']('.');return _0x5a4aa6(_0x92e5c),await _0x4f5f2f(_0x92e5c,_0x466417,_0x23cbd9),_0x36a436;}catch{return!0x1;}function _0x5a4aa6(_0xda1758){const _0x13285a=_0x2c2097(_0xda1758);_0x13285a&&'ES256'==_0x13285a['alg']||(_0x36a436=!0x1);}async function _0x4f5f2f(_0x6a1f35,_0x3090d2,_0x130b7a){const _0x3a3365=window['Uint8Array']['from'](_0xe6aab7(_0x130b7a),_0x361cc0=>_0x361cc0['charCodeAt'](0x0)),_0x28d8ca=new window['TextEncoder']()['encode'](_0x6a1f35+'.'+_0x3090d2),_0x364a35=window['crypto']['subtle'];if(!_0x364a35)return;const _0x5d1320=await _0x364a35['importKey']('jwk',_0x54c21c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x364a35['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5d1320,_0x3a3365,_0x28d8ca)||(_0x36a436=!0x1);}}function _0x2c2097(_0x46a719){return _0x46a719['startsWith']('ey')?JSON['parse'](_0xe6aab7(_0x46a719)):null;}function _0xe6aab7(_0x13f4f3){return window['atob'](_0x13f4f3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x453dc7(_0xf70199){let _0x1296d1=0x1505;function _0x35d14a(_0xb74986){for(let _0x266086=0x0;_0x266086<_0xb74986['length'];_0x266086++){const _0x230413=_0xb74986['charCodeAt'](_0x266086);_0x1296d1=(_0x1296d1<<0x5)+_0x1296d1+_0x230413,_0x1296d1&=_0x1296d1;}}function _0x57ae58(_0x3f4b7b){Array['isArray'](_0x3f4b7b)?_0x3f4b7b['forEach'](_0x57ae58):_0x3f4b7b&&'object'==typeof _0x3f4b7b?Object['entries'](_0x3f4b7b)['sort']()['forEach'](([_0x3f7c28,_0x1f74c1])=>{_0x35d14a(_0x3f7c28),_0x57ae58(_0x1f74c1);}):_0x35d14a(window['String'](_0x3f4b7b));}return _0x57ae58(_0xf70199),_0x1296d1>>>0x0;}function _0x236412(_0x3a2cf7){return _0x3a2cf7['toString'](0x10)['padStart'](0x8,'0');}function _0xb83848(_0x54939e){return _0x54939e['split']('')['reverse']()['join']('');}function _0x50fe6a(){}_0x4696da(await _0x5bdebd());}(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'],[_0x18f0a1=>Number(_0x18f0a1)>=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(_0x392211){return h['includes'](_0x392211);}function v(_0x35e47e){return Array['from'](_0x35e47e['getStyleNames']())['filter'](E);}function F(_0x1c1016,_0x5cf2c3,_0x596000){const {spanStyles:_0x1d3201,stylesToBeHtmlElements:_0x4c06ad}=K(_0x1c1016,_0x596000);!function(_0x577f6e,_0x1c196e,_0x1e8e3a){for(const _0x212ca4 in _0x1e8e3a)_0x1e8e3a[_0x212ca4]['forEach'](([,_0xe77bfa])=>{const _0x1540be=_0x1c196e['createElement'](_0xe77bfa,[],_0x577f6e['getChildren']());_0x1c196e['insertChild'](0x0,_0x1540be,_0x577f6e);}),_0x1c196e['removeStyle'](_0x212ca4,_0x577f6e);}(_0x1c1016,_0x5cf2c3,_0x4c06ad),function(_0x1b9a96,_0x136881,_0x12f00e){if(!Object['keys'](_0x12f00e)['length'])return;const _0x549744=_0x136881['createElement']('span',[],_0x1b9a96['getChildren']());_0x136881['setStyle'](_0x12f00e,_0x549744),_0x136881['insertChild'](0x0,_0x549744,_0x1b9a96),_0x136881['removeStyle'](Object['keys'](_0x12f00e),_0x1b9a96);}(_0x1c1016,_0x5cf2c3,_0x1d3201);}function P(_0x2443e1,_0x1c1da1,_0x3706dc){const {spanStyles:_0x397b85}=K(_0x2443e1,_0x3706dc),_0x2104c7=Object['keys'](_0x397b85);if(!_0x2104c7['length'])return;let _0x1cf8ea=!0x1;for(const _0x4372fc of _0x2443e1['getChildren']())if(_0x4372fc['is']('element','span')){_0x1cf8ea=!0x0;for(const [_0x138e60,_0x24091a]of Object['entries'](_0x397b85))_0x4372fc['hasStyle'](_0x138e60)||_0x1c1da1['setStyle']({[_0x138e60]:_0x24091a},_0x4372fc);}_0x1cf8ea&&_0x1c1da1['removeStyle'](_0x2104c7,_0x2443e1);}function K(_0x539164,_0x138a27){const _0x41838e={},_0x3f0356={};return _0x138a27['forEach'](_0x24b010=>{const _0x1d33f6=_0x539164['getStyle'](_0x24b010);if(_0x1d33f6){if(function(_0xe9ac14){return O['includes'](_0xe9ac14);}(_0x24b010))_0x41838e[_0x24b010]=_0x1d33f6;else{if(function(_0x4a4d1f){return _0x4a4d1f in L;}(_0x24b010)){const _0x3ef1d3=_0x1d33f6['split']('\x20');L[_0x24b010]['forEach'](([_0x5bd51c,_0x594886])=>{for(const _0x4e50e9 of _0x3ef1d3)('function'==typeof _0x5bd51c&&_0x5bd51c(_0x4e50e9)||_0x5bd51c===_0x4e50e9)&&(_0x3f0356[_0x24b010]=[..._0x3f0356[_0x24b010]||[],[_0x5bd51c,_0x594886]]);});}}}}),{'spanStyles':_0x41838e,'stylesToBeHtmlElements':_0x3f0356};}var b=class extends _0x491e92{['execute'](_0x240366){const _0x434edc=new _0x5d39a5(_0x240366['content']['document']),_0x47ca45=_0x434edc['createRangeIn'](_0x240366['content']),_0x47fda8=[...new _0x767df1(new _0x4b3ab2(_0x434edc['document']['stylesProcessor']))['blockElements'],'font'],_0x34f4bf=_0x47ca45['getItems']();for(const _0x4fd350 of _0x34f4bf)if(_0x4fd350['is']('element')&&_0x47fda8['includes'](_0x4fd350['name'])){if(_0x4fd350['hasStyle']('mso-list')&&'none'!==_0x4fd350['getStyle']('mso-list')){P(_0x4fd350,_0x434edc,v(_0x4fd350));continue;}F(_0x4fd350,_0x434edc,v(_0x4fd350));}}['isActive'](_0x1d1cbd){return super['isActive'](_0x1d1cbd)||u(_0x1d1cbd);}},x=class extends _0x5b72ca{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2894be];}['init'](){const _0xad5838=this['editor'],_0x4ea32c=_0xad5838['plugins']['get']('PasteFromOffice'),_0xe55e49=_0xad5838['editing']['view']['document'],_0x42f9ca=new b(_0xe55e49);_0x4ea32c['registerNormalizer'](_0x42f9ca,_0x2cb48f['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x238b3b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x485f4e;for(const _0x278e57 in _0x238b3b){const _0x5313e0=_0x278e57,_0x4a2b58=_0x238b3b[_0x5313e0];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x4a2b58||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4a2b58||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4a2b58||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4a2b58||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4a2b58||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4a2b58||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4a2b58){delete _0x238b3b[_0x5313e0],_0x485f4e=_0x4a2b58,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x485f4e&&_0x238b3b['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x485f4e&&_0x238b3b['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x485f4e&&_0x238b3b['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x485f4e&&_0x238b3b['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x485f4e&&_0x238b3b['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x485f4e&&_0x238b3b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x5b72ca{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2894be,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.1-alpha.
|
|
3
|
+
"version": "48.3.1-alpha.1",
|
|
4
4
|
"description": "Enhanced paste from Office feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ckeditor/ckeditor5-clipboard": "48.3.1-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.3.1-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.3.1-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.3.1-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.3.1-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.3.1-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.3.1-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.3.1-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.3.1-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.3.1-alpha.1"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|