@ckeditor/ckeditor5-paste-from-office-enhanced 49.0.0-alpha.4 → 49.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2cb12c}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x378137,PasteFromOfficeMSWordNormalizer as _0x364e0d}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x5d2367,uid as _0x5c6a2c}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x3cae20,ViewDomConverter as _0x3ded30,ViewUpcastWriter as _0x845b10}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x546ee8){return f['test'](_0x546ee8);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x33c0f8,_0x3c768a){const _0x653eac=new Map();for(const [_0x492855,_0x44ab17]of _0x3c768a){if(!_0x492855['tagName']&&!_0x492855['className'])continue;const _0x15cb0a=!_0x492855['tagName']||_0x33c0f8['name']===_0x492855['tagName'],_0x327b30=!_0x492855['className']||_0x33c0f8['hasClass'](_0x492855['className']);_0x15cb0a&&_0x327b30&&_0x653eac['set'](_0x492855,_0x44ab17);}return _0x653eac;}function m(_0x8c313){const _0x968f8c={};for(let _0xee1ee1=0x0;_0xee1ee1<_0x8c313['length'];_0xee1ee1++){const _0x4e8b08=_0x8c313[_0xee1ee1],_0x5dcfb7=_0x8c313['getPropertyValue'](_0x4e8b08);'initial'!==_0x5dcfb7&&(_0x968f8c[_0x4e8b08]=_0x5dcfb7);}return _0x968f8c;}function w(_0x163277){const _0x4257a8=_0x163277['split'](',')['map'](_0x5f5284=>_0x5f5284['trim']()),_0x2c78c1=[];for(const _0x47fb82 of _0x4257a8){const _0x4582f8=l['exec'](_0x47fb82);_0x4582f8&&_0x2c78c1['push'](_0x4582f8['groups']);}return _0x2c78c1;}function y(_0x5a3114){const _0x2f3842={};for(const _0x845971 of _0x5a3114)Object['assign'](_0x2f3842,_0x845971);return _0x2f3842;}var g=class extends _0x364e0d{execute(_0x339222){const {styles:_0x190ec0,stylesString:_0x2a55d2}=_0x339222['extraContent'],_0x526eb2=new _0x845b10(_0x339222['content']['document']),_0x5d9c24=_0x526eb2['createRangeIn'](_0x339222['content']),_0xf73560=function(_0x57dde8){const _0x4e0add={};for(const _0xdfbd22 of _0x57dde8)for(const _0x3cd242 of _0xdfbd22['cssRules'])if(_0x3cd242 instanceof CSSStyleRule){const _0x1f07c9=m(_0x3cd242['style']);_0x4e0add[_0x3cd242['selectorText']]=Object['assign']({},_0x4e0add[_0x3cd242['selectorText']]||{},_0x1f07c9);}return _0x4e0add;}(_0x190ec0),_0x3616fe=function(_0x2c352f){const _0x995e5=new Map();for(const _0x540742 in _0x2c352f){const _0xe9421e=w(_0x540742),_0x5be0ad=_0x2c352f[_0x540742];for(const _0x480a8e of _0xe9421e)_0x995e5['set'](_0x480a8e,_0x5be0ad);}return _0x995e5;}(_0xf73560),_0x561e09=function(_0x268fdd){const _0x332973={},_0x2a03fc=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x15cd08=/\.(?<className>[\w-]+)/g;let _0x728686;for(;null!==(_0x728686=_0x2a03fc['exec'](_0x268fdd));){const {selector:_0x24951c,color:_0x482b78,patternType:_0x27a12b}=_0x728686['groups'];if('auto'!==_0x482b78['toLowerCase']()&&'none'!==_0x27a12b['toLowerCase']()&&'auto'!==_0x27a12b['toLowerCase']()){for(const _0x1f7c2b of _0x24951c['matchAll'](_0x15cd08))_0x332973[_0x1f7c2b['groups']['className']]=_0x482b78;}}return _0x332973;}(_0x2a55d2);for(const _0xfcbf58 of _0x5d9c24){if('elementStart'!==_0xfcbf58['type'])continue;const _0x5cb459=_0xfcbf58['item'],_0x3d8c11=d(_0x5cb459,_0x3616fe),_0x21c319=_0x3d8c11['size']?y(Array['from'](_0x3d8c11['values']())):{};if(!('background-color'in _0x21c319)&&!('background'in _0x21c319)){for(const [_0x1e4871,_0x228bdf]of Object['entries'](_0x561e09))if(_0x5cb459['hasClass'](_0x1e4871)){_0x21c319['background-color']=_0x228bdf;break;}}for(const _0x56a06b in _0x21c319)_0x5cb459['hasStyle'](_0x56a06b)||_0x526eb2['setStyle'](_0x56a06b,_0x21c319[_0x56a06b],_0x5cb459);}}isActive(_0x1b4422){return super['isActive'](_0x1b4422)||u(_0x1b4422);}},p=class extends _0x2cb12c{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x378137];}init(){const _0xf54b6b=this['editor'],_0x5c6390=_0xf54b6b['plugins']['get']('PasteFromOffice'),_0x984d9b=_0xf54b6b['editing']['view']['document'],_0x287c58=new g(_0x984d9b);_0x5c6390['registerNormalizer'](_0x287c58,_0x5d2367['high']+0xb);}afterInit(){!async function(_0x18cdc8){const _0x4d7807='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x24a14b=0x79770,_0x5a485e={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x398039(_0x34664f){const _0x4772e2=new window['Promise'](_0x9c3549=>{_0x34664f['once']('ready',_0x9c3549);}),_0x1278dc=window['Date']['now'](),_0x4364c4=_0x34664f['config']['get']('licenseKey');async function _0x1825eb(){let _0x3c7ef3,_0x24443d=null,_0x2cf10b=null;try{return'GPL'==_0x4364c4?'NotAllowed':(_0x3c7ef3=_0x518637(),_0x3c7ef3?(_0x3c7ef3['usageEndpoint']&&(_0x2cf10b=_0x2a595f(_0x3c7ef3['usageEndpoint'],_0x3c7ef3['jti'])),await _0x346688()?_0x10d2c9()?_0x429b50()?'Expired':_0x499a27()?('evaluation'==_0x3c7ef3['licenseType']&&(_0x24443d=_0x494c23('EvaluationLimit')),await _0x56d12a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x429b50(){const _0x251d09=['evaluation','trial']['includes'](_0x3c7ef3['licenseType'])?_0x1278dc/0x3e8:0xe10*_0x24a14b;return _0x3c7ef3['exp']<_0x251d09;}function _0x10d2c9(){const _0x1a0136=_0x3c7ef3['features'];return!!_0x1a0136&&(!!_0x1a0136['includes']('*')||(!!_0x1a0136['includes']('POE')||(!!_0x1a0136['includes']('PP')||!(!_0x1a0136['includes']('TRILIUM')||!_0x414545()))));}function _0x499a27(){const _0x5065e9=_0x3c7ef3['licensedHosts'];if(!_0x5065e9||0x0==_0x5065e9['length'])return!0x0;const {hostname:_0x256ea6}=new URL(window['location']['href']);if(_0x5065e9['includes'](_0x256ea6))return!0x0;const _0x2871a6=_0x256ea6['split']('.');return _0x5065e9['filter'](_0x1c4f8b=>_0x1c4f8b['includes']('*'))['map'](_0x128727=>_0x128727['split']('.'))['filter'](_0x38b213=>_0x38b213['length']<=_0x2871a6['length'])['map'](_0xc87595=>Array(_0x2871a6['length']-_0xc87595['length'])['fill']('*'===_0xc87595[0x0]?'*':'')['concat'](_0xc87595))['some'](_0x26c2ea=>_0x2871a6['every']((_0x83a254,_0x44c621)=>_0x26c2ea[_0x44c621]===_0x83a254||'*'===_0x26c2ea[_0x44c621]));}function _0x56d12a(){return _0x24443d&&_0x2cf10b?new window['Promise']((_0x35e1f1,_0x1e3fd1)=>{_0x24443d['then'](_0x35e1f1,_0x1e3fd1),_0x2cf10b['then'](_0x5e67de=>{'Valid'!=_0x5e67de&&_0x35e1f1(_0x5e67de);},_0x1e3fd1);}):_0x24443d||_0x2cf10b||'Valid';}}function _0x2a595f(_0x1717a0,_0xe508c8){return new window['Promise'](_0x474919=>{if(_0x55737f())return _0x474919('Valid');_0x69685c(),_0x34664f['decorate']('_sendUsageRequest');let _0x32b7e3=!0x1;const _0x358a55=_0x5c6a2c();function _0x28c636(_0x20d592){return!!_0x20d592&&('object'==typeof _0x20d592||'function'==typeof _0x20d592)&&'function'==typeof _0x20d592['then']&&'function'==typeof _0x20d592['catch'];}function _0x3b88da(_0x127edf){_0x25fe1e(_0x127edf)['then'](_0xa35e55=>_0xa35e55&&'ok'==_0xa35e55['status']?_0x277936(_0x551447(_0x358a55+_0xe508c8))!=_0xa35e55['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5bdb53=>(_0x279131(),_0x5bdb53),()=>{const _0x597794=_0x48d8c7();return null==_0x597794?(_0x279131(),'Valid'):_0x1278dc-_0x597794>0x240c8400?'UsageLimit':'Valid';})['then'](_0x474919)['catch'](()=>{_0x474919('UsageLimit');});const _0x47bd7a=0x36ee80;function _0x279131(){const _0x1ab52b='llct-'+_0x277936(_0x551447(_0x1717a0)),_0x67904b=_0x3f2e6e(_0x277936(window['Math']['ceil'](_0x1278dc/_0x47bd7a)));window['localStorage']['setItem'](_0x1ab52b,_0x67904b);}function _0x48d8c7(){const _0x48e453='llct-'+_0x277936(_0x551447(_0x1717a0)),_0x11be0b=window['localStorage']['getItem'](_0x48e453);return _0x11be0b?window['parseInt'](_0x3f2e6e(_0x11be0b),0x10)*_0x47bd7a:null;}function _0x25fe1e(_0x579e1a){return new window['Promise']((_0x4f061b,_0x4da104)=>{_0x579e1a['then'](_0x4f061b,_0x4da104),window['setTimeout'](_0x4da104,0x1d4c0);});}}_0x34664f['on']('_sendUsageRequest',(_0x1b2eae,_0x5eee1f)=>{if(_0x5eee1f[0x0]!=_0x1717a0)return _0x474919('UsageLimit');_0x5eee1f[0x1]={..._0x5eee1f[0x1],'requestId':_0x358a55};},{'priority':'high'}),_0x34664f['on']('_sendUsageRequest',_0x3ac9ca=>{_0x28c636(_0x3ac9ca['return'])&&(_0x32b7e3=!0x0,_0x3b88da(_0x3ac9ca['return']));},{'priority':'low'}),_0x4772e2['then'](()=>{_0x32b7e3||_0x474919('UsageLimit');});});function _0x55737f(){return'auto'==_0x34664f['editing']['view']['_overlayModeHint'];}function _0x69685c(){_0x34664f['editing']['view']['_overlayModeHint']='auto';}}function _0x494c23(_0x58d41b){const _0x394a60=[new window['Promise'](_0x10b181=>setTimeout(_0x10b181,0x93ecc)),_0x4772e2['then'](()=>new window['Promise'](_0x216968=>{let _0x3cb64d=0x0;_0x34664f['model']['on']('applyOperation',(_0x2f9832,_0x1ff4e5)=>{_0x1ff4e5[0x0]['isDocumentOperation']&&_0x3cb64d++,0x5e8==_0x3cb64d&&(_0x216968(),_0x2f9832['off']());});}))];return window['Promise']['race'](_0x394a60)['then'](()=>_0x58d41b);}async function _0xc449f3(){await _0x4772e2,_0x34664f['model']['change']=_0x5a14fe,_0x34664f['model']['enqueueChange']=_0x5a14fe,_0x34664f['enableReadOnlyMode']('model');}function _0x414545(){return window['glob']&&window['glob']['triliumVersion'];}function _0x3fea76(_0x4eb2e4){const _0x304566=_0xf52013();_0x34664f[_0x304566]='pasteFromOfficeEnhancedLicenseKey'+_0x4eb2e4,'Valid'!=_0x4eb2e4&&_0xc449f3();}function _0xf52013(){const _0x29fa8d=window['String'](window['performance']['now']())['replace']('.','');let _0x255dcd='u';for(let _0xf2752f=0x0;_0xf2752f<_0x29fa8d['length'];_0xf2752f+=0x2){let _0x31a6fc=window['parseInt'](_0x29fa8d['substring'](_0xf2752f,_0xf2752f+0x2));_0x31a6fc>=0x3e&&(_0x31a6fc-=0x3e),_0x255dcd+=_0x4d7807[_0x31a6fc];}return _0x255dcd;}function _0x518637(){const _0x10d7e9=_0x4364c4['split']('.');if(0x3!=_0x10d7e9['length'])return null;return _0x19d368(_0x10d7e9[0x1]);function _0x19d368(_0x141dd3){const _0xb19988=_0x1c5c94(_0x141dd3);return _0xb19988&&_0xc5de87()?_0xb19988:null;function _0xc5de87(){const _0x17f9b0=_0xb19988['jti'],_0x262ec1=window['parseInt'](_0x17f9b0['substring'](_0x17f9b0['length']-0x8),0x10),_0x38802f={..._0xb19988,'jti':_0x17f9b0['substring'](0x0,_0x17f9b0['length']-0x8)};return delete _0x38802f['vc'],_0x551447(_0x38802f)==_0x262ec1;}}}async function _0x346688(){let _0x255240=!0x0;try{const [_0x4d3339,_0x15e1aa,_0x6c5eae]=_0x4364c4['split']('.');return _0x423e33(_0x4d3339),await _0x53818a(_0x4d3339,_0x15e1aa,_0x6c5eae),_0x255240;}catch{return!0x1;}function _0x423e33(_0x1dc791){const _0x63291c=_0x1c5c94(_0x1dc791);_0x63291c&&'ES256'==_0x63291c['alg']||(_0x255240=!0x1);}async function _0x53818a(_0xd8bfa2,_0x51025b,_0x27eae0){const _0xc44799=window['Uint8Array']['from'](_0x7f828f(_0x27eae0),_0x18531a=>_0x18531a['charCodeAt'](0x0)),_0x4cc31f=new window['TextEncoder']()['encode'](_0xd8bfa2+'.'+_0x51025b),_0x264099=window['crypto']['subtle'];if(!_0x264099)return;const _0x36397e=await _0x264099['importKey']('jwk',_0x5a485e,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x264099['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x36397e,_0xc44799,_0x4cc31f)||(_0x255240=!0x1);}}function _0x1c5c94(_0x2792ed){return _0x2792ed['startsWith']('ey')?JSON['parse'](_0x7f828f(_0x2792ed)):null;}function _0x7f828f(_0x35273e){return window['atob'](_0x35273e['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x551447(_0x8597d3){let _0x46c2e9=0x1505;function _0x2e18e6(_0x3b5f0f){for(let _0x21287f=0x0;_0x21287f<_0x3b5f0f['length'];_0x21287f++){const _0x4ac536=_0x3b5f0f['charCodeAt'](_0x21287f);_0x46c2e9=(_0x46c2e9<<0x5)+_0x46c2e9+_0x4ac536,_0x46c2e9&=_0x46c2e9;}}function _0x487813(_0x469592){Array['isArray'](_0x469592)?_0x469592['forEach'](_0x487813):_0x469592&&'object'==typeof _0x469592?Object['entries'](_0x469592)['sort']()['forEach'](([_0x332321,_0xc7c65c])=>{_0x2e18e6(_0x332321),_0x487813(_0xc7c65c);}):_0x2e18e6(window['String'](_0x469592));}return _0x487813(_0x8597d3),_0x46c2e9>>>0x0;}function _0x277936(_0x2355e3){return _0x2355e3['toString'](0x10)['padStart'](0x8,'0');}function _0x3f2e6e(_0xcf31dc){return _0xcf31dc['split']('')['reverse']()['join']('');}function _0x5a14fe(){}_0x3fea76(await _0x1825eb());}_0x398039(_0x18cdc8['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'],[_0x430e0d=>Number(_0x430e0d)>=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(_0x4a430e){return h['includes'](_0x4a430e);}function v(_0xcfa7a0){return Array['from'](_0xcfa7a0['getStyleNames']())['filter'](E);}function F(_0x40ce32,_0x3b3854,_0x5dd818){const {spanStyles:_0x31baa0,stylesToBeHtmlElements:_0x3eaffd}=K(_0x40ce32,_0x5dd818);!function(_0x25e345,_0x4e57a4,_0x50a098){for(const _0x1e89f2 in _0x50a098)_0x50a098[_0x1e89f2]['forEach'](([,_0x12d4fb])=>{const _0x2e7aa1=_0x4e57a4['createElement'](_0x12d4fb,[],_0x25e345['getChildren']());_0x4e57a4['insertChild'](0x0,_0x2e7aa1,_0x25e345);}),_0x4e57a4['removeStyle'](_0x1e89f2,_0x25e345);}(_0x40ce32,_0x3b3854,_0x3eaffd),function(_0x5a6819,_0x663bab,_0x20cfef){if(!Object['keys'](_0x20cfef)['length'])return;const _0x343bce=_0x663bab['createElement']('span',[],_0x5a6819['getChildren']());_0x663bab['setStyle'](_0x20cfef,_0x343bce),_0x663bab['insertChild'](0x0,_0x343bce,_0x5a6819),_0x663bab['removeStyle'](Object['keys'](_0x20cfef),_0x5a6819);}(_0x40ce32,_0x3b3854,_0x31baa0);}function P(_0x4fcf42,_0x1d5a3d,_0x4e4a50){const {spanStyles:_0x202850}=K(_0x4fcf42,_0x4e4a50),_0x37654d=Object['keys'](_0x202850);if(!_0x37654d['length'])return;let _0x3b344e=!0x1;for(const _0x413e57 of _0x4fcf42['getChildren']())if(_0x413e57['is']('element','span')){_0x3b344e=!0x0;for(const [_0x3d5913,_0x1ac976]of Object['entries'](_0x202850))_0x413e57['hasStyle'](_0x3d5913)||_0x1d5a3d['setStyle']({[_0x3d5913]:_0x1ac976},_0x413e57);}_0x3b344e&&_0x1d5a3d['removeStyle'](_0x37654d,_0x4fcf42);}function K(_0x344bc9,_0x31d291){const _0x19fccb={},_0x3fe5f9={};return _0x31d291['forEach'](_0x1f16ea=>{const _0x3bda2c=_0x344bc9['getStyle'](_0x1f16ea);if(_0x3bda2c){if(function(_0x4b32c4){return O['includes'](_0x4b32c4);}(_0x1f16ea))_0x19fccb[_0x1f16ea]=_0x3bda2c;else{if(function(_0x5073c0){return _0x5073c0 in L;}(_0x1f16ea)){const _0x4bd1c8=_0x3bda2c['split']('\x20');L[_0x1f16ea]['forEach'](([_0x139a9c,_0x17a1cc])=>{for(const _0x48b923 of _0x4bd1c8)('function'==typeof _0x139a9c&&_0x139a9c(_0x48b923)||_0x139a9c===_0x48b923)&&(_0x3fe5f9[_0x1f16ea]=[..._0x3fe5f9[_0x1f16ea]||[],[_0x139a9c,_0x17a1cc]]);});}}}}),{'spanStyles':_0x19fccb,'stylesToBeHtmlElements':_0x3fe5f9};}var b=class extends _0x364e0d{execute(_0xed784c){const _0x28cb7c=new _0x845b10(_0xed784c['content']['document']),_0x318cf4=_0x28cb7c['createRangeIn'](_0xed784c['content']),_0x3f360d=new _0x3cae20(_0x28cb7c['document']['stylesProcessor']),_0x4e2f3c=[...new _0x3ded30(_0x3f360d)['blockElements'],'font'],_0x2b5462=_0x318cf4['getItems']();for(const _0x1c4551 of _0x2b5462)if(_0x1c4551['is']('element')&&_0x4e2f3c['includes'](_0x1c4551['name'])){if(_0x1c4551['hasStyle']('mso-list')&&'none'!==_0x1c4551['getStyle']('mso-list')){P(_0x1c4551,_0x28cb7c,v(_0x1c4551));continue;}F(_0x1c4551,_0x28cb7c,v(_0x1c4551));}}isActive(_0x53e2c1){return super['isActive'](_0x53e2c1)||u(_0x53e2c1);}},x=class extends _0x2cb12c{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x378137];}init(){const _0x1458fe=this['editor'],_0x8a56a4=_0x1458fe['plugins']['get']('PasteFromOffice'),_0x107804=_0x1458fe['editing']['view']['document'],_0x1f8aa0=new b(_0x107804);_0x8a56a4['registerNormalizer'](_0x1f8aa0,_0x5d2367['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x55d92f=[this['editor']];for(const _0x21c100 of _0x55d92f){let _0x25e8e4;for(const _0x38357d in _0x21c100){const _0x13e99c=_0x38357d,_0x3a46d9=_0x21c100[_0x13e99c];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x3a46d9||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x3a46d9||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x3a46d9||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x3a46d9||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x3a46d9||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x3a46d9||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x3a46d9){delete _0x21c100[_0x13e99c],_0x25e8e4=_0x3a46d9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x25e8e4&&_0x21c100['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x25e8e4&&_0x21c100['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x25e8e4&&_0x21c100['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x25e8e4&&_0x21c100['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x25e8e4&&_0x21c100['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x25e8e4&&_0x21c100['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x2cb12c{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x378137,p,x];}};export{k as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x246452}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x38efab,PasteFromOfficeMSWordNormalizer as _0x3bdb9b}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x2dff8b,uid as _0x335afd}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x266ac8,ViewDomConverter as _0x9a2b36,ViewUpcastWriter as _0xe5f20f}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x589e49){return f['test'](_0x589e49);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x57e7ef,_0x54481b){const _0x4ef712=new Map();for(const [_0xc13556,_0x156f08]of _0x54481b){if(!_0xc13556['tagName']&&!_0xc13556['className'])continue;const _0x4b126e=!_0xc13556['tagName']||_0x57e7ef['name']===_0xc13556['tagName'],_0x41bcb9=!_0xc13556['className']||_0x57e7ef['hasClass'](_0xc13556['className']);_0x4b126e&&_0x41bcb9&&_0x4ef712['set'](_0xc13556,_0x156f08);}return _0x4ef712;}function m(_0xeda8b2){const _0x2ec801={};for(let _0x1f6e6a=0x0;_0x1f6e6a<_0xeda8b2['length'];_0x1f6e6a++){const _0x1e623f=_0xeda8b2[_0x1f6e6a],_0x5cd5a9=_0xeda8b2['getPropertyValue'](_0x1e623f);'initial'!==_0x5cd5a9&&(_0x2ec801[_0x1e623f]=_0x5cd5a9);}return _0x2ec801;}function w(_0x1eeec1){const _0x2f02f1=_0x1eeec1['split'](',')['map'](_0x30ea6c=>_0x30ea6c['trim']()),_0x22b7f1=[];for(const _0x2d12d9 of _0x2f02f1){const _0x39f08d=l['exec'](_0x2d12d9);_0x39f08d&&_0x22b7f1['push'](_0x39f08d['groups']);}return _0x22b7f1;}function y(_0x39772b){const _0x1051f0={};for(const _0x6e4a69 of _0x39772b)Object['assign'](_0x1051f0,_0x6e4a69);return _0x1051f0;}var g=class extends _0x3bdb9b{execute(_0x4cb0ea){const {styles:_0x595a43,stylesString:_0x3a51a8}=_0x4cb0ea['extraContent'],_0x3012ee=new _0xe5f20f(_0x4cb0ea['content']['document']),_0x222ba8=_0x3012ee['createRangeIn'](_0x4cb0ea['content']),_0x33f201=function(_0x3062b4){const _0x4a2e7d={};for(const _0x3ea85c of _0x3062b4)for(const _0x30760a of _0x3ea85c['cssRules'])if(_0x30760a instanceof CSSStyleRule){const _0x4ef8d2=m(_0x30760a['style']);_0x4a2e7d[_0x30760a['selectorText']]=Object['assign']({},_0x4a2e7d[_0x30760a['selectorText']]||{},_0x4ef8d2);}return _0x4a2e7d;}(_0x595a43),_0x92d834=function(_0x347b4a){const _0x4f72bf=new Map();for(const _0x1f858e in _0x347b4a){const _0x3d9702=w(_0x1f858e),_0x250ac0=_0x347b4a[_0x1f858e];for(const _0x39d0af of _0x3d9702)_0x4f72bf['set'](_0x39d0af,_0x250ac0);}return _0x4f72bf;}(_0x33f201),_0x3306dc=function(_0x359d3b){const _0x4b83b7={},_0x496a30=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x40eb1d=/\.(?<className>[\w-]+)/g;let _0x44859a;for(;null!==(_0x44859a=_0x496a30['exec'](_0x359d3b));){const {selector:_0x25f524,color:_0x291686,patternType:_0x41ef3e}=_0x44859a['groups'];if('auto'!==_0x291686['toLowerCase']()&&'none'!==_0x41ef3e['toLowerCase']()&&'auto'!==_0x41ef3e['toLowerCase']()){for(const _0x2942fd of _0x25f524['matchAll'](_0x40eb1d))_0x4b83b7[_0x2942fd['groups']['className']]=_0x291686;}}return _0x4b83b7;}(_0x3a51a8);for(const _0x3acb92 of _0x222ba8){if('elementStart'!==_0x3acb92['type'])continue;const _0x52fa3d=_0x3acb92['item'],_0x18a030=d(_0x52fa3d,_0x92d834),_0x5398be=_0x18a030['size']?y(Array['from'](_0x18a030['values']())):{};if(!('background-color'in _0x5398be)&&!('background'in _0x5398be)){for(const [_0x4b5568,_0xc94a69]of Object['entries'](_0x3306dc))if(_0x52fa3d['hasClass'](_0x4b5568)){_0x5398be['background-color']=_0xc94a69;break;}}for(const _0x3696b7 in _0x5398be)_0x52fa3d['hasStyle'](_0x3696b7)||_0x3012ee['setStyle'](_0x3696b7,_0x5398be[_0x3696b7],_0x52fa3d);}}isActive(_0x40590d){return super['isActive'](_0x40590d)||u(_0x40590d);}},p=class extends _0x246452{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x38efab];}init(){const _0x5ee866=this['editor'],_0x18eecb=_0x5ee866['plugins']['get']('PasteFromOffice'),_0x1e0c52=_0x5ee866['editing']['view']['document'],_0x248623=new g(_0x1e0c52);_0x18eecb['registerNormalizer'](_0x248623,_0x2dff8b['high']+0xb);}afterInit(){!async function(_0x1c2484){const _0x5de09e='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x590196=0x79788,_0x1fb3e8={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x230eb0(_0x311dda){const _0x464567=new window['Promise'](_0x432aa4=>{_0x311dda['once']('ready',_0x432aa4);}),_0xae7680=window['Date']['now'](),_0x56cb14=_0x311dda['config']['get']('licenseKey');async function _0x4fed2c(){let _0x2943cd,_0x1de897=null,_0x18a466=null;try{return'GPL'==_0x56cb14?'NotAllowed':(_0x2943cd=_0x50b56d(),_0x2943cd?(_0x2943cd['usageEndpoint']&&(_0x18a466=_0x4f1aee(_0x2943cd['usageEndpoint'],_0x2943cd['jti'])),await _0x5b00e4()?_0x114536()?_0xfa5cdd()?'Expired':_0x3b56ad()?('evaluation'==_0x2943cd['licenseType']&&(_0x1de897=_0x28cbbf('EvaluationLimit')),await _0x163b0a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xfa5cdd(){const _0x4250e0=['evaluation','trial']['includes'](_0x2943cd['licenseType'])?_0xae7680/0x3e8:0xe10*_0x590196;return _0x2943cd['exp']<_0x4250e0;}function _0x114536(){const _0x4cd50e=_0x2943cd['features'];return!!_0x4cd50e&&(!!_0x4cd50e['includes']('*')||(!!_0x4cd50e['includes']('POE')||(!!_0x4cd50e['includes']('PP')||!(!_0x4cd50e['includes']('TRILIUM')||!_0x3daffa()))));}function _0x3b56ad(){const _0x1d2af7=_0x2943cd['licensedHosts'];if(!_0x1d2af7||0x0==_0x1d2af7['length'])return!0x0;const {hostname:_0x36ffa3}=new URL(window['location']['href']);if(_0x1d2af7['includes'](_0x36ffa3))return!0x0;const _0x299003=_0x36ffa3['split']('.');return _0x1d2af7['filter'](_0x429533=>_0x429533['includes']('*'))['map'](_0x8c370e=>_0x8c370e['split']('.'))['filter'](_0x5a93b2=>_0x5a93b2['length']<=_0x299003['length'])['map'](_0x45b6d5=>Array(_0x299003['length']-_0x45b6d5['length'])['fill']('*'===_0x45b6d5[0x0]?'*':'')['concat'](_0x45b6d5))['some'](_0x537c5e=>_0x299003['every']((_0x65d410,_0x57403f)=>_0x537c5e[_0x57403f]===_0x65d410||'*'===_0x537c5e[_0x57403f]));}function _0x163b0a(){return _0x1de897&&_0x18a466?new window['Promise']((_0x502322,_0x54237f)=>{_0x1de897['then'](_0x502322,_0x54237f),_0x18a466['then'](_0x314e9c=>{'Valid'!=_0x314e9c&&_0x502322(_0x314e9c);},_0x54237f);}):_0x1de897||_0x18a466||'Valid';}}function _0x4f1aee(_0x77d601,_0x15b708){return new window['Promise'](_0xa0bfc9=>{if(_0x425926())return _0xa0bfc9('Valid');_0x54e11f(),_0x311dda['decorate']('_sendUsageRequest');let _0x40b9d8=!0x1;const _0x393176=_0x335afd();function _0x149062(_0x33ff8c){return!!_0x33ff8c&&('object'==typeof _0x33ff8c||'function'==typeof _0x33ff8c)&&'function'==typeof _0x33ff8c['then']&&'function'==typeof _0x33ff8c['catch'];}function _0x2ff4f6(_0x1e01f0){_0xe0cdb(_0x1e01f0)['then'](_0x4de603=>_0x4de603&&'ok'==_0x4de603['status']?_0x45f063(_0x1181d5(_0x393176+_0x15b708))!=_0x4de603['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x20a206=>(_0x541075(),_0x20a206),()=>{const _0x42118f=_0x5bb3de();return null==_0x42118f?(_0x541075(),'Valid'):_0xae7680-_0x42118f>0x240c8400?'UsageLimit':'Valid';})['then'](_0xa0bfc9)['catch'](()=>{_0xa0bfc9('UsageLimit');});const _0x4c60e3=0x36ee80;function _0x541075(){const _0xc7ea1b='llct-'+_0x45f063(_0x1181d5(_0x77d601)),_0x455919=_0x23843f(_0x45f063(window['Math']['ceil'](_0xae7680/_0x4c60e3)));window['localStorage']['setItem'](_0xc7ea1b,_0x455919);}function _0x5bb3de(){const _0x1f3e80='llct-'+_0x45f063(_0x1181d5(_0x77d601)),_0x50e104=window['localStorage']['getItem'](_0x1f3e80);return _0x50e104?window['parseInt'](_0x23843f(_0x50e104),0x10)*_0x4c60e3:null;}function _0xe0cdb(_0x583ea1){return new window['Promise']((_0x16dc27,_0x3d2344)=>{_0x583ea1['then'](_0x16dc27,_0x3d2344),window['setTimeout'](_0x3d2344,0x1d4c0);});}}_0x311dda['on']('_sendUsageRequest',(_0x299893,_0xeb2d98)=>{if(_0xeb2d98[0x0]!=_0x77d601)return _0xa0bfc9('UsageLimit');_0xeb2d98[0x1]={..._0xeb2d98[0x1],'requestId':_0x393176};},{'priority':'high'}),_0x311dda['on']('_sendUsageRequest',_0x5ed262=>{_0x149062(_0x5ed262['return'])&&(_0x40b9d8=!0x0,_0x2ff4f6(_0x5ed262['return']));},{'priority':'low'}),_0x464567['then'](()=>{_0x40b9d8||_0xa0bfc9('UsageLimit');});});function _0x425926(){return'auto'==_0x311dda['editing']['view']['_overlayModeHint'];}function _0x54e11f(){_0x311dda['editing']['view']['_overlayModeHint']='auto';}}function _0x28cbbf(_0x550a44){const _0x29d0ac=[new window['Promise'](_0x3f0136=>setTimeout(_0x3f0136,0x93ecc)),_0x464567['then'](()=>new window['Promise'](_0x2fd887=>{let _0x45ef65=0x0;_0x311dda['model']['on']('applyOperation',(_0x2f7d43,_0x5041dc)=>{_0x5041dc[0x0]['isDocumentOperation']&&_0x45ef65++,0x5e8==_0x45ef65&&(_0x2fd887(),_0x2f7d43['off']());});}))];return window['Promise']['race'](_0x29d0ac)['then'](()=>_0x550a44);}async function _0x5f1c4c(){await _0x464567,_0x311dda['model']['change']=_0x5ef310,_0x311dda['model']['enqueueChange']=_0x5ef310,_0x311dda['enableReadOnlyMode']('model');}function _0x3daffa(){return window['glob']&&window['glob']['triliumVersion'];}function _0x3aeb6a(_0x183201){const _0x38fb7c=_0x44410f();_0x311dda[_0x38fb7c]='pasteFromOfficeEnhancedLicenseKey'+_0x183201,'Valid'!=_0x183201&&_0x5f1c4c();}function _0x44410f(){const _0x5d94b2=window['String'](window['performance']['now']())['replace']('.','');let _0x1b8362='u';for(let _0x3135a0=0x0;_0x3135a0<_0x5d94b2['length'];_0x3135a0+=0x2){let _0x28f810=window['parseInt'](_0x5d94b2['substring'](_0x3135a0,_0x3135a0+0x2));_0x28f810>=0x3e&&(_0x28f810-=0x3e),_0x1b8362+=_0x5de09e[_0x28f810];}return _0x1b8362;}function _0x50b56d(){const _0x2851f7=_0x56cb14['split']('.');if(0x3!=_0x2851f7['length'])return null;return _0x17c7a6(_0x2851f7[0x1]);function _0x17c7a6(_0x2049d3){const _0x3f73bd=_0x56cf75(_0x2049d3);return _0x3f73bd&&_0x42561a()?_0x3f73bd:null;function _0x42561a(){const _0x11f8e3=_0x3f73bd['jti'],_0x1b654f=window['parseInt'](_0x11f8e3['substring'](_0x11f8e3['length']-0x8),0x10),_0x442796={..._0x3f73bd,'jti':_0x11f8e3['substring'](0x0,_0x11f8e3['length']-0x8)};return delete _0x442796['vc'],_0x1181d5(_0x442796)==_0x1b654f;}}}async function _0x5b00e4(){let _0x1e9d6c=!0x0;try{const [_0x33e20b,_0x22ecb1,_0x1d61cc]=_0x56cb14['split']('.');return _0x5528c1(_0x33e20b),await _0x251eb8(_0x33e20b,_0x22ecb1,_0x1d61cc),_0x1e9d6c;}catch{return!0x1;}function _0x5528c1(_0x537652){const _0x1bd565=_0x56cf75(_0x537652);_0x1bd565&&'ES256'==_0x1bd565['alg']||(_0x1e9d6c=!0x1);}async function _0x251eb8(_0x22af81,_0x64938a,_0x1ef147){const _0x3b4509=window['Uint8Array']['from'](_0x240743(_0x1ef147),_0x51ba91=>_0x51ba91['charCodeAt'](0x0)),_0x1fb43b=new window['TextEncoder']()['encode'](_0x22af81+'.'+_0x64938a),_0x34d621=window['crypto']['subtle'];if(!_0x34d621)return;const _0x9da175=await _0x34d621['importKey']('jwk',_0x1fb3e8,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x34d621['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x9da175,_0x3b4509,_0x1fb43b)||(_0x1e9d6c=!0x1);}}function _0x56cf75(_0x168a84){return _0x168a84['startsWith']('ey')?JSON['parse'](_0x240743(_0x168a84)):null;}function _0x240743(_0x5dc277){return window['atob'](_0x5dc277['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1181d5(_0x602015){let _0x21d65a=0x1505;function _0x23f8b5(_0x29d877){for(let _0x59f12e=0x0;_0x59f12e<_0x29d877['length'];_0x59f12e++){const _0x5f11e7=_0x29d877['charCodeAt'](_0x59f12e);_0x21d65a=(_0x21d65a<<0x5)+_0x21d65a+_0x5f11e7,_0x21d65a&=_0x21d65a;}}function _0x4335e3(_0x266bff){Array['isArray'](_0x266bff)?_0x266bff['forEach'](_0x4335e3):_0x266bff&&'object'==typeof _0x266bff?Object['entries'](_0x266bff)['sort']()['forEach'](([_0x42a44e,_0x2e0034])=>{_0x23f8b5(_0x42a44e),_0x4335e3(_0x2e0034);}):_0x23f8b5(window['String'](_0x266bff));}return _0x4335e3(_0x602015),_0x21d65a>>>0x0;}function _0x45f063(_0x84c32f){return _0x84c32f['toString'](0x10)['padStart'](0x8,'0');}function _0x23843f(_0x422f19){return _0x422f19['split']('')['reverse']()['join']('');}function _0x5ef310(){}_0x3aeb6a(await _0x4fed2c());}_0x230eb0(_0x1c2484['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'],[_0x186255=>Number(_0x186255)>=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(_0x2e5fd0){return h['includes'](_0x2e5fd0);}function v(_0x23deaa){return Array['from'](_0x23deaa['getStyleNames']())['filter'](E);}function F(_0x5400ba,_0x55bb76,_0x1e4be3){const {spanStyles:_0x1f6de0,stylesToBeHtmlElements:_0x22b954}=K(_0x5400ba,_0x1e4be3);!function(_0x1d3b2b,_0x593421,_0x231fbc){for(const _0xaf8ff7 in _0x231fbc)_0x231fbc[_0xaf8ff7]['forEach'](([,_0x3ba53a])=>{const _0x5ad7f7=_0x593421['createElement'](_0x3ba53a,[],_0x1d3b2b['getChildren']());_0x593421['insertChild'](0x0,_0x5ad7f7,_0x1d3b2b);}),_0x593421['removeStyle'](_0xaf8ff7,_0x1d3b2b);}(_0x5400ba,_0x55bb76,_0x22b954),function(_0x39f93d,_0x3ca139,_0x42a93d){if(!Object['keys'](_0x42a93d)['length'])return;const _0x41c2ae=_0x3ca139['createElement']('span',[],_0x39f93d['getChildren']());_0x3ca139['setStyle'](_0x42a93d,_0x41c2ae),_0x3ca139['insertChild'](0x0,_0x41c2ae,_0x39f93d),_0x3ca139['removeStyle'](Object['keys'](_0x42a93d),_0x39f93d);}(_0x5400ba,_0x55bb76,_0x1f6de0);}function P(_0x29c524,_0x18ed2b,_0x5165a2){const {spanStyles:_0x190100}=K(_0x29c524,_0x5165a2),_0x5e353f=Object['keys'](_0x190100);if(!_0x5e353f['length'])return;let _0x5a1def=!0x1;for(const _0x2f9cef of _0x29c524['getChildren']())if(_0x2f9cef['is']('element','span')){_0x5a1def=!0x0;for(const [_0x146802,_0x4a3719]of Object['entries'](_0x190100))_0x2f9cef['hasStyle'](_0x146802)||_0x18ed2b['setStyle']({[_0x146802]:_0x4a3719},_0x2f9cef);}_0x5a1def&&_0x18ed2b['removeStyle'](_0x5e353f,_0x29c524);}function K(_0x4beaf6,_0x682ad7){const _0x4e8c66={},_0x956701={};return _0x682ad7['forEach'](_0xe6470e=>{const _0x49fd88=_0x4beaf6['getStyle'](_0xe6470e);if(_0x49fd88){if(function(_0x56fa0e){return O['includes'](_0x56fa0e);}(_0xe6470e))_0x4e8c66[_0xe6470e]=_0x49fd88;else{if(function(_0xb13c43){return _0xb13c43 in L;}(_0xe6470e)){const _0x621994=_0x49fd88['split']('\x20');L[_0xe6470e]['forEach'](([_0x369969,_0x4d3204])=>{for(const _0x380a70 of _0x621994)('function'==typeof _0x369969&&_0x369969(_0x380a70)||_0x369969===_0x380a70)&&(_0x956701[_0xe6470e]=[..._0x956701[_0xe6470e]||[],[_0x369969,_0x4d3204]]);});}}}}),{'spanStyles':_0x4e8c66,'stylesToBeHtmlElements':_0x956701};}var b=class extends _0x3bdb9b{execute(_0x1fa365){const _0x39a1e7=new _0xe5f20f(_0x1fa365['content']['document']),_0x493f41=_0x39a1e7['createRangeIn'](_0x1fa365['content']),_0x2e6d88=new _0x266ac8(_0x39a1e7['document']['stylesProcessor']),_0x69c616=[...new _0x9a2b36(_0x2e6d88)['blockElements'],'font'],_0x31251f=_0x493f41['getItems']();for(const _0xdc0c7f of _0x31251f)if(_0xdc0c7f['is']('element')&&_0x69c616['includes'](_0xdc0c7f['name'])){if(_0xdc0c7f['hasStyle']('mso-list')&&'none'!==_0xdc0c7f['getStyle']('mso-list')){P(_0xdc0c7f,_0x39a1e7,v(_0xdc0c7f));continue;}F(_0xdc0c7f,_0x39a1e7,v(_0xdc0c7f));}}isActive(_0x4fba33){return super['isActive'](_0x4fba33)||u(_0x4fba33);}},x=class extends _0x246452{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x38efab];}init(){const _0x3b0da5=this['editor'],_0x4aab6d=_0x3b0da5['plugins']['get']('PasteFromOffice'),_0x36c6b3=_0x3b0da5['editing']['view']['document'],_0x2a1714=new b(_0x36c6b3);_0x4aab6d['registerNormalizer'](_0x2a1714,_0x2dff8b['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x286199=[this['editor']];for(const _0xf4c6c5 of _0x286199){let _0x20c526;for(const _0x320638 in _0xf4c6c5){const _0x311810=_0x320638,_0x2827a0=_0xf4c6c5[_0x311810];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x2827a0||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2827a0||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2827a0||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2827a0||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2827a0||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2827a0||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2827a0){delete _0xf4c6c5[_0x311810],_0x20c526=_0x2827a0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x20c526&&_0xf4c6c5['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x20c526&&_0xf4c6c5['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x20c526&&_0xf4c6c5['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x20c526&&_0xf4c6c5['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x20c526&&_0xf4c6c5['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x20c526&&_0xf4c6c5['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x246452{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x38efab,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": "49.0.0-alpha.
|
|
3
|
+
"version": "49.0.0-alpha.5",
|
|
4
4
|
"description": "Enhanced paste from Office feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ckeditor/ckeditor5-clipboard": "49.0.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "49.0.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "49.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "49.0.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "49.0.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "49.0.0-alpha.5",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "49.0.0-alpha.5",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "49.0.0-alpha.5",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "49.0.0-alpha.5",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "49.0.0-alpha.5"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|