@ckeditor/ckeditor5-paste-from-office-enhanced 48.3.0-alpha.0 → 48.3.0-alpha.2
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 _0x223902}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x382b04,PasteFromOfficeMSWordNormalizer as _0x535b2e}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x3d1437,uid as _0x154e62}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x20e32e,ViewDomConverter as _0x549d18,ViewUpcastWriter as _0x203b04}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xab4cdf){return f['test'](_0xab4cdf);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x4467be,_0x4f1624){const _0x144096=new Map();for(const [_0x1eb9b8,_0x575570]of _0x4f1624){if(!_0x1eb9b8['tagName']&&!_0x1eb9b8['className'])continue;const _0x26bcef=!_0x1eb9b8['tagName']||_0x4467be['name']===_0x1eb9b8['tagName'],_0x4363f3=!_0x1eb9b8['className']||_0x4467be['hasClass'](_0x1eb9b8['className']);_0x26bcef&&_0x4363f3&&_0x144096['set'](_0x1eb9b8,_0x575570);}return _0x144096;}function m(_0x4af2fe){const _0x5b16e6={};for(let _0x23e824=0x0;_0x23e824<_0x4af2fe['length'];_0x23e824++){const _0x39b021=_0x4af2fe[_0x23e824],_0x97d316=_0x4af2fe['getPropertyValue'](_0x39b021);'initial'!==_0x97d316&&(_0x5b16e6[_0x39b021]=_0x97d316);}return _0x5b16e6;}function w(_0x4bd3e1){const _0x3cc646=_0x4bd3e1['split'](',')['map'](_0x506bce=>_0x506bce['trim']()),_0x2cd0dc=[];for(const _0x1a5d6b of _0x3cc646){const _0x322391=l['exec'](_0x1a5d6b);_0x322391&&_0x2cd0dc['push'](_0x322391['groups']);}return _0x2cd0dc;}function y(_0x12e9a4){const _0x1f1a8d={};for(const _0xf54a3a of _0x12e9a4)Object['assign'](_0x1f1a8d,_0xf54a3a);return _0x1f1a8d;}var g=class extends _0x535b2e{['execute'](_0x5bd142){const {styles:_0x5b38ef,stylesString:_0x4ec3c5}=_0x5bd142['extraContent'],_0x4d675e=new _0x203b04(_0x5bd142['content']['document']),_0x153c09=_0x4d675e['createRangeIn'](_0x5bd142['content']),_0x5de40e=function(_0x5a20d0){const _0x3674a2=new Map();for(const _0x3c2b9f in _0x5a20d0){const _0x53eb8f=w(_0x3c2b9f),_0x4011a5=_0x5a20d0[_0x3c2b9f];for(const _0xd1a54e of _0x53eb8f)_0x3674a2['set'](_0xd1a54e,_0x4011a5);}return _0x3674a2;}(function(_0x2da1d4){const _0x4224dd={};for(const _0x250b23 of _0x2da1d4)for(const _0x4663a8 of _0x250b23['cssRules'])if(_0x4663a8 instanceof CSSStyleRule){const _0x227218=m(_0x4663a8['style']);_0x4224dd[_0x4663a8['selectorText']]=Object['assign']({},_0x4224dd[_0x4663a8['selectorText']]||{},_0x227218);}return _0x4224dd;}(_0x5b38ef)),_0x70665d=function(_0x1a782a){const _0x250911={},_0x146e58=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x4476e7=/\.(?<className>[\w-]+)/g;let _0xa64955;for(;null!==(_0xa64955=_0x146e58['exec'](_0x1a782a));){const {selector:_0x55b8e6,color:_0x337600,patternType:_0x324de6}=_0xa64955['groups'];if('auto'!==_0x337600['toLowerCase']()&&'none'!==_0x324de6['toLowerCase']()&&'auto'!==_0x324de6['toLowerCase']()){for(const _0xeede82 of _0x55b8e6['matchAll'](_0x4476e7))_0x250911[_0xeede82['groups']['className']]=_0x337600;}}return _0x250911;}(_0x4ec3c5);for(const _0x514b75 of _0x153c09){if('elementStart'!==_0x514b75['type'])continue;const _0xb001d2=_0x514b75['item'],_0x50f3ab=d(_0xb001d2,_0x5de40e),_0x3fa29a=_0x50f3ab['size']?y(Array['from'](_0x50f3ab['values']())):{};if(!('background-color'in _0x3fa29a)&&!('background'in _0x3fa29a)){for(const [_0x2b87fe,_0x3a4bd0]of Object['entries'](_0x70665d))if(_0xb001d2['hasClass'](_0x2b87fe)){_0x3fa29a['background-color']=_0x3a4bd0;break;}}for(const _0x6a3a3d in _0x3fa29a)_0xb001d2['hasStyle'](_0x6a3a3d)||_0x4d675e['setStyle'](_0x6a3a3d,_0x3fa29a[_0x6a3a3d],_0xb001d2);}}['isActive'](_0x2725dd){return super['isActive'](_0x2725dd)||u(_0x2725dd);}},p=class extends _0x223902{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x382b04];}['init'](){const _0x36aae4=this['editor'],_0x58e410=_0x36aae4['plugins']['get']('PasteFromOffice'),_0xbcd92b=_0x36aae4['editing']['view']['document'],_0x1fc269=new g(_0xbcd92b);_0x58e410['registerNormalizer'](_0x1fc269,_0x3d1437['high']+0xb);}['afterInit'](){!async function(_0x1f81bc){const _0x15c778='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x5c6178=0x78de0,_0x322476=window['Date']['now'](),_0x2508dc=_0x1f81bc['editor'],_0x18dd71=new window['Promise'](_0x19c108=>{_0x2508dc['once']('ready',_0x19c108);}),_0x13407a={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3c25e8=_0x2508dc['config']['get']('licenseKey');async function _0x5c8680(){let _0x39ac2a,_0x1306a0=null,_0x22d2c0=null;try{return'GPL'==_0x3c25e8?'NotAllowed':(_0x39ac2a=_0x25d18b(),_0x39ac2a?(_0x39ac2a['usageEndpoint']&&(_0x22d2c0=_0x536c7f(_0x39ac2a['usageEndpoint'],_0x39ac2a['jti'])),await _0x3041fa()?_0x5adc89()?_0x3cc935()?'Expired':_0x597810()?('evaluation'==_0x39ac2a['licenseType']&&(_0x1306a0=_0x5c2134('EvaluationLimit')),await _0x27250b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3cc935(){const _0x10bf87=['evaluation','trial']['includes'](_0x39ac2a['licenseType'])?_0x322476/0x3e8:0xe10*_0x5c6178;return _0x39ac2a['exp']<_0x10bf87;}function _0x5adc89(){const _0x1201ff=_0x39ac2a['features'];return!!_0x1201ff&&(!!_0x1201ff['includes']('*')||(!!_0x1201ff['includes']('POE')||(!!_0x1201ff['includes']('PP')||!(!_0x1201ff['includes']('TRILIUM')||!_0x305e5b()))));}function _0x597810(){const _0xab6345=_0x39ac2a['licensedHosts'];if(!_0xab6345||0x0==_0xab6345['length'])return!0x0;const {hostname:_0x38afda}=new URL(window['location']['href']);if(_0xab6345['includes'](_0x38afda))return!0x0;const _0x2138a3=_0x38afda['split']('.');return _0xab6345['filter'](_0x243e9d=>_0x243e9d['includes']('*'))['map'](_0x14d50d=>_0x14d50d['split']('.'))['filter'](_0x3d78b7=>_0x3d78b7['length']<=_0x2138a3['length'])['map'](_0x26d733=>Array(_0x2138a3['length']-_0x26d733['length'])['fill']('*'===_0x26d733[0x0]?'*':'')['concat'](_0x26d733))['some'](_0x1e2588=>_0x2138a3['every']((_0x424ddf,_0x5940f4)=>_0x1e2588[_0x5940f4]===_0x424ddf||'*'===_0x1e2588[_0x5940f4]));}function _0x27250b(){return _0x1306a0&&_0x22d2c0?new window['Promise']((_0x1c63db,_0x17f955)=>{_0x1306a0['then'](_0x1c63db,_0x17f955),_0x22d2c0['then'](_0x4b9507=>{'Valid'!=_0x4b9507&&_0x1c63db(_0x4b9507);},_0x17f955);}):_0x1306a0||_0x22d2c0||'Valid';}}function _0x536c7f(_0x4ae9d3,_0x2f54ed){return new window['Promise'](_0x636a95=>{if(_0x2540a2())return _0x636a95('Valid');_0x12722c(),_0x2508dc['decorate']('_sendUsageRequest');let _0x1f8a55=!0x1;const _0x39330a=_0x154e62();function _0x2b1aec(_0xb78b7f){return!!_0xb78b7f&&('object'==typeof _0xb78b7f||'function'==typeof _0xb78b7f)&&'function'==typeof _0xb78b7f['then']&&'function'==typeof _0xb78b7f['catch'];}function _0xd0e741(_0x406ae5){_0x22499b(_0x406ae5)['then'](_0x3885b0=>_0x3885b0&&'ok'==_0x3885b0['status']?_0x2cf2ca(_0x3e029e(_0x39330a+_0x2f54ed))!=_0x3885b0['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x59013f=>(_0x4102da(),_0x59013f),()=>{const _0x118709=_0x436224();return null==_0x118709?(_0x4102da(),'Valid'):_0x322476-_0x118709>0x240c8400?'UsageLimit':'Valid';})['then'](_0x636a95)['catch'](()=>{_0x636a95('UsageLimit');});const _0x178423=0x36ee80;function _0x4102da(){const _0x31f83f='llct-'+_0x2cf2ca(_0x3e029e(_0x4ae9d3)),_0xb364b4=_0x379833(_0x2cf2ca(window['Math']['ceil'](_0x322476/_0x178423)));window['localStorage']['setItem'](_0x31f83f,_0xb364b4);}function _0x436224(){const _0x443b97='llct-'+_0x2cf2ca(_0x3e029e(_0x4ae9d3)),_0x592f03=window['localStorage']['getItem'](_0x443b97);return _0x592f03?window['parseInt'](_0x379833(_0x592f03),0x10)*_0x178423:null;}function _0x22499b(_0x2da53d){return new window['Promise']((_0x404ba6,_0xcdde64)=>{_0x2da53d['then'](_0x404ba6,_0xcdde64),window['setTimeout'](_0xcdde64,0x1d4c0);});}}_0x2508dc['on']('_sendUsageRequest',(_0x5f3917,_0x38edbe)=>{if(_0x38edbe[0x0]!=_0x4ae9d3)return _0x636a95('UsageLimit');_0x38edbe[0x1]={..._0x38edbe[0x1],'requestId':_0x39330a};},{'priority':'high'}),_0x2508dc['on']('_sendUsageRequest',_0x2db1fd=>{_0x2b1aec(_0x2db1fd['return'])&&(_0x1f8a55=!0x0,_0xd0e741(_0x2db1fd['return']));},{'priority':'low'}),_0x18dd71['then'](()=>{_0x1f8a55||_0x636a95('UsageLimit');});});function _0x2540a2(){return'auto'==_0x2508dc['editing']['view']['_overlayModeHint'];}function _0x12722c(){_0x2508dc['editing']['view']['_overlayModeHint']='auto';}}function _0x5c2134(_0x5cdcee){const _0x173df1=[new window['Promise'](_0x113019=>setTimeout(_0x113019,0x93ecc)),_0x18dd71['then'](()=>new window['Promise'](_0x2d4c0f=>{let _0x4f6258=0x0;_0x2508dc['model']['on']('applyOperation',(_0x4b56b2,_0x39ca74)=>{_0x39ca74[0x0]['isDocumentOperation']&&_0x4f6258++,0x5e8==_0x4f6258&&(_0x2d4c0f(),_0x4b56b2['off']());});}))];return window['Promise']['race'](_0x173df1)['then'](()=>_0x5cdcee);}async function _0x1e3521(){await _0x18dd71,_0x2508dc['model']['change']=_0x4140f6,_0x2508dc['model']['enqueueChange']=_0x4140f6,_0x2508dc['enableReadOnlyMode']('model');}function _0x305e5b(){return window['glob']&&window['glob']['triliumVersion'];}function _0x11964b(_0x4bb0c3){const _0x2a08f4=_0x46bde1();_0x2508dc[_0x2a08f4]='pasteFromOfficeEnhancedLicenseKey'+_0x4bb0c3,'Valid'!=_0x4bb0c3&&_0x1e3521();}function _0x46bde1(){const _0x387bc7=window['String'](window['performance']['now']())['replace']('.','');let _0x554404='s';for(let _0x27d034=0x0;_0x27d034<_0x387bc7['length'];_0x27d034+=0x2){let _0x153507=window['parseInt'](_0x387bc7['substring'](_0x27d034,_0x27d034+0x2));_0x153507>=0x3e&&(_0x153507-=0x3e),_0x554404+=_0x15c778[_0x153507];}return _0x554404;}function _0x25d18b(){const _0x1ccc6a=_0x3c25e8['split']('.');if(0x3!=_0x1ccc6a['length'])return null;return _0x57be07(_0x1ccc6a[0x1]);function _0x57be07(_0xe00dce){const _0x966765=_0x530ed5(_0xe00dce);return _0x966765&&_0x375352()?_0x966765:null;function _0x375352(){const _0x3f6587=_0x966765['jti'],_0x375289=window['parseInt'](_0x3f6587['substring'](_0x3f6587['length']-0x8),0x10),_0x54b506={..._0x966765,'jti':_0x3f6587['substring'](0x0,_0x3f6587['length']-0x8)};return delete _0x54b506['vc'],_0x3e029e(_0x54b506)==_0x375289;}}}async function _0x3041fa(){let _0x2fd370=!0x0;try{const [_0x4ff157,_0x212cc0,_0x449f2e]=_0x3c25e8['split']('.');return _0x56dc5c(_0x4ff157),await _0x49558a(_0x4ff157,_0x212cc0,_0x449f2e),_0x2fd370;}catch{return!0x1;}function _0x56dc5c(_0x52c4d3){const _0x259e1b=_0x530ed5(_0x52c4d3);_0x259e1b&&'ES256'==_0x259e1b['alg']||(_0x2fd370=!0x1);}async function _0x49558a(_0x2aa969,_0x58f812,_0xd70e95){const _0x57e27b=window['Uint8Array']['from'](_0x4c2cfa(_0xd70e95),_0x4750b1=>_0x4750b1['charCodeAt'](0x0)),_0x484eec=new window['TextEncoder']()['encode'](_0x2aa969+'.'+_0x58f812),_0x8d7d1b=window['crypto']['subtle'];if(!_0x8d7d1b)return;const _0x17ae55=await _0x8d7d1b['importKey']('jwk',_0x13407a,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x8d7d1b['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x17ae55,_0x57e27b,_0x484eec)||(_0x2fd370=!0x1);}}function _0x530ed5(_0x5ba1d1){return _0x5ba1d1['startsWith']('ey')?JSON['parse'](_0x4c2cfa(_0x5ba1d1)):null;}function _0x4c2cfa(_0x1aeb20){return window['atob'](_0x1aeb20['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3e029e(_0x4836cf){let _0x21d01a=0x1505;function _0x5b7eae(_0x4bdf25){for(let _0x14f82f=0x0;_0x14f82f<_0x4bdf25['length'];_0x14f82f++){const _0x2e899b=_0x4bdf25['charCodeAt'](_0x14f82f);_0x21d01a=(_0x21d01a<<0x5)+_0x21d01a+_0x2e899b,_0x21d01a&=_0x21d01a;}}function _0x202c6f(_0x29c2ac){Array['isArray'](_0x29c2ac)?_0x29c2ac['forEach'](_0x202c6f):_0x29c2ac&&'object'==typeof _0x29c2ac?Object['entries'](_0x29c2ac)['sort']()['forEach'](([_0x411929,_0xb9be6c])=>{_0x5b7eae(_0x411929),_0x202c6f(_0xb9be6c);}):_0x5b7eae(window['String'](_0x29c2ac));}return _0x202c6f(_0x4836cf),_0x21d01a>>>0x0;}function _0x2cf2ca(_0x316e7c){return _0x316e7c['toString'](0x10)['padStart'](0x8,'0');}function _0x379833(_0x7b216a){return _0x7b216a['split']('')['reverse']()['join']('');}function _0x4140f6(){}_0x11964b(await _0x5c8680());}(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'],[_0x23a156=>Number(_0x23a156)>=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(_0x35866c){return h['includes'](_0x35866c);}function v(_0x7d3fe3){return Array['from'](_0x7d3fe3['getStyleNames']())['filter'](E);}function F(_0x3db097,_0x1d9b6e,_0x1d563e){const {spanStyles:_0x2819fc,stylesToBeHtmlElements:_0x4e919e}=K(_0x3db097,_0x1d563e);!function(_0x5d2f6b,_0x42d665,_0x31650f){for(const _0x21c299 in _0x31650f)_0x31650f[_0x21c299]['forEach'](([,_0x2a62a3])=>{const _0x9bb78=_0x42d665['createElement'](_0x2a62a3,[],_0x5d2f6b['getChildren']());_0x42d665['insertChild'](0x0,_0x9bb78,_0x5d2f6b);}),_0x42d665['removeStyle'](_0x21c299,_0x5d2f6b);}(_0x3db097,_0x1d9b6e,_0x4e919e),function(_0x42f639,_0xbdb266,_0x1481e3){if(!Object['keys'](_0x1481e3)['length'])return;const _0x2f3921=_0xbdb266['createElement']('span',[],_0x42f639['getChildren']());_0xbdb266['setStyle'](_0x1481e3,_0x2f3921),_0xbdb266['insertChild'](0x0,_0x2f3921,_0x42f639),_0xbdb266['removeStyle'](Object['keys'](_0x1481e3),_0x42f639);}(_0x3db097,_0x1d9b6e,_0x2819fc);}function P(_0x3f8fb2,_0x2f0360,_0x227bb5){const {spanStyles:_0x19caca}=K(_0x3f8fb2,_0x227bb5),_0x1f7c01=Object['keys'](_0x19caca);if(!_0x1f7c01['length'])return;let _0x121a38=!0x1;for(const _0x1f29a2 of _0x3f8fb2['getChildren']())if(_0x1f29a2['is']('element','span')){_0x121a38=!0x0;for(const [_0x39fe5c,_0x591e96]of Object['entries'](_0x19caca))_0x1f29a2['hasStyle'](_0x39fe5c)||_0x2f0360['setStyle']({[_0x39fe5c]:_0x591e96},_0x1f29a2);}_0x121a38&&_0x2f0360['removeStyle'](_0x1f7c01,_0x3f8fb2);}function K(_0x5c8c30,_0x67f167){const _0x2a57d2={},_0x474fa2={};return _0x67f167['forEach'](_0xfa6cba=>{const _0x687230=_0x5c8c30['getStyle'](_0xfa6cba);if(_0x687230){if(function(_0x20ad71){return O['includes'](_0x20ad71);}(_0xfa6cba))_0x2a57d2[_0xfa6cba]=_0x687230;else{if(function(_0x1ccae8){return _0x1ccae8 in L;}(_0xfa6cba)){const _0x33a83b=_0x687230['split']('\x20');L[_0xfa6cba]['forEach'](([_0x4fbbc,_0x532281])=>{for(const _0xd0e885 of _0x33a83b)('function'==typeof _0x4fbbc&&_0x4fbbc(_0xd0e885)||_0x4fbbc===_0xd0e885)&&(_0x474fa2[_0xfa6cba]=[..._0x474fa2[_0xfa6cba]||[],[_0x4fbbc,_0x532281]]);});}}}}),{'spanStyles':_0x2a57d2,'stylesToBeHtmlElements':_0x474fa2};}var b=class extends _0x535b2e{['execute'](_0x502bfc){const _0x47b68a=new _0x203b04(_0x502bfc['content']['document']),_0x5ac3a7=_0x47b68a['createRangeIn'](_0x502bfc['content']),_0x3f8a6f=[...new _0x549d18(new _0x20e32e(_0x47b68a['document']['stylesProcessor']))['blockElements'],'font'],_0x5288d2=_0x5ac3a7['getItems']();for(const _0x2fbf7b of _0x5288d2)if(_0x2fbf7b['is']('element')&&_0x3f8a6f['includes'](_0x2fbf7b['name'])){if(_0x2fbf7b['hasStyle']('mso-list')&&'none'!==_0x2fbf7b['getStyle']('mso-list')){P(_0x2fbf7b,_0x47b68a,v(_0x2fbf7b));continue;}F(_0x2fbf7b,_0x47b68a,v(_0x2fbf7b));}}['isActive'](_0x5ccd78){return super['isActive'](_0x5ccd78)||u(_0x5ccd78);}},x=class extends _0x223902{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x382b04];}['init'](){const _0x2485e0=this['editor'],_0x1d042c=_0x2485e0['plugins']['get']('PasteFromOffice'),_0x17fb12=_0x2485e0['editing']['view']['document'],_0x47c878=new b(_0x17fb12);_0x1d042c['registerNormalizer'](_0x47c878,_0x3d1437['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x388bf1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x524b59;for(const _0x2033f3 in _0x388bf1){const _0x5e9244=_0x2033f3,_0x1cdd9e=_0x388bf1[_0x5e9244];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1cdd9e){delete _0x388bf1[_0x5e9244],_0x524b59=_0x1cdd9e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x524b59&&_0x388bf1['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x524b59&&_0x388bf1['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x524b59&&_0x388bf1['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x524b59&&_0x388bf1['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x524b59&&_0x388bf1['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x524b59&&_0x388bf1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x223902{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x382b04,p,x];}};export{k as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x41ca10}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x3007d5,PasteFromOfficeMSWordNormalizer as _0x11a040}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x592b72,uid as _0x6dcfc8}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x17cb42,ViewDomConverter as _0x43659c,ViewUpcastWriter as _0x6dde02}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x2ee058){return f['test'](_0x2ee058);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x33d5aa,_0x2adc5d){const _0x519e86=new Map();for(const [_0x56e43f,_0x66b377]of _0x2adc5d){if(!_0x56e43f['tagName']&&!_0x56e43f['className'])continue;const _0x111597=!_0x56e43f['tagName']||_0x33d5aa['name']===_0x56e43f['tagName'],_0x2f3780=!_0x56e43f['className']||_0x33d5aa['hasClass'](_0x56e43f['className']);_0x111597&&_0x2f3780&&_0x519e86['set'](_0x56e43f,_0x66b377);}return _0x519e86;}function m(_0x11b6bc){const _0x3c387c={};for(let _0x1601cb=0x0;_0x1601cb<_0x11b6bc['length'];_0x1601cb++){const _0xfbc69c=_0x11b6bc[_0x1601cb],_0x39b2e2=_0x11b6bc['getPropertyValue'](_0xfbc69c);'initial'!==_0x39b2e2&&(_0x3c387c[_0xfbc69c]=_0x39b2e2);}return _0x3c387c;}function w(_0x2c2fae){const _0x3b140b=_0x2c2fae['split'](',')['map'](_0x4c2a41=>_0x4c2a41['trim']()),_0x17449=[];for(const _0xe79566 of _0x3b140b){const _0x480345=l['exec'](_0xe79566);_0x480345&&_0x17449['push'](_0x480345['groups']);}return _0x17449;}function y(_0x4412d0){const _0x109872={};for(const _0x5cab0c of _0x4412d0)Object['assign'](_0x109872,_0x5cab0c);return _0x109872;}var g=class extends _0x11a040{['execute'](_0x53d6d0){const {styles:_0x9cc51f,stylesString:_0xeb4944}=_0x53d6d0['extraContent'],_0x5a9251=new _0x6dde02(_0x53d6d0['content']['document']),_0x424cee=_0x5a9251['createRangeIn'](_0x53d6d0['content']),_0x2c6001=function(_0x3375b5){const _0x25b1cc=new Map();for(const _0x36e66f in _0x3375b5){const _0xecaaef=w(_0x36e66f),_0x4a7ede=_0x3375b5[_0x36e66f];for(const _0x52449d of _0xecaaef)_0x25b1cc['set'](_0x52449d,_0x4a7ede);}return _0x25b1cc;}(function(_0x273596){const _0x289a14={};for(const _0x51c09d of _0x273596)for(const _0x5af0fb of _0x51c09d['cssRules'])if(_0x5af0fb instanceof CSSStyleRule){const _0x195cf1=m(_0x5af0fb['style']);_0x289a14[_0x5af0fb['selectorText']]=Object['assign']({},_0x289a14[_0x5af0fb['selectorText']]||{},_0x195cf1);}return _0x289a14;}(_0x9cc51f)),_0x418941=function(_0x624bb1){const _0x3889c3={},_0x36f21a=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x3f75e8=/\.(?<className>[\w-]+)/g;let _0x48cd97;for(;null!==(_0x48cd97=_0x36f21a['exec'](_0x624bb1));){const {selector:_0x4e2a9c,color:_0x50fd86,patternType:_0x308d76}=_0x48cd97['groups'];if('auto'!==_0x50fd86['toLowerCase']()&&'none'!==_0x308d76['toLowerCase']()&&'auto'!==_0x308d76['toLowerCase']()){for(const _0x1fc9cb of _0x4e2a9c['matchAll'](_0x3f75e8))_0x3889c3[_0x1fc9cb['groups']['className']]=_0x50fd86;}}return _0x3889c3;}(_0xeb4944);for(const _0x3a3eeb of _0x424cee){if('elementStart'!==_0x3a3eeb['type'])continue;const _0x14f0df=_0x3a3eeb['item'],_0x18a79b=d(_0x14f0df,_0x2c6001),_0x17bf14=_0x18a79b['size']?y(Array['from'](_0x18a79b['values']())):{};if(!('background-color'in _0x17bf14)&&!('background'in _0x17bf14)){for(const [_0xe3e60e,_0x144d74]of Object['entries'](_0x418941))if(_0x14f0df['hasClass'](_0xe3e60e)){_0x17bf14['background-color']=_0x144d74;break;}}for(const _0x1f4cf6 in _0x17bf14)_0x14f0df['hasStyle'](_0x1f4cf6)||_0x5a9251['setStyle'](_0x1f4cf6,_0x17bf14[_0x1f4cf6],_0x14f0df);}}['isActive'](_0x2e5063){return super['isActive'](_0x2e5063)||u(_0x2e5063);}},p=class extends _0x41ca10{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3007d5];}['init'](){const _0x5c3497=this['editor'],_0x32f3fc=_0x5c3497['plugins']['get']('PasteFromOffice'),_0x3dbc9d=_0x5c3497['editing']['view']['document'],_0x163b26=new g(_0x3dbc9d);_0x32f3fc['registerNormalizer'](_0x163b26,_0x592b72['high']+0xb);}['afterInit'](){!async function(_0x2deec3){const _0x2273d4='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x4d1e84=0x78e10,_0x36bf7d=window['Date']['now'](),_0x395e23=_0x2deec3['editor'],_0x54148f=new window['Promise'](_0x156253=>{_0x395e23['once']('ready',_0x156253);}),_0x50c91f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xfe7aaa=_0x395e23['config']['get']('licenseKey');async function _0x20fceb(){let _0x77eb8,_0x7e5a3b=null,_0x53ace0=null;try{return'GPL'==_0xfe7aaa?'NotAllowed':(_0x77eb8=_0x2d045b(),_0x77eb8?(_0x77eb8['usageEndpoint']&&(_0x53ace0=_0x4d7d0e(_0x77eb8['usageEndpoint'],_0x77eb8['jti'])),await _0xb41b1c()?_0x254a5b()?_0x5d5940()?'Expired':_0x49f318()?('evaluation'==_0x77eb8['licenseType']&&(_0x7e5a3b=_0x26adf4('EvaluationLimit')),await _0x4b51d5()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5d5940(){const _0x29ef57=['evaluation','trial']['includes'](_0x77eb8['licenseType'])?_0x36bf7d/0x3e8:0xe10*_0x4d1e84;return _0x77eb8['exp']<_0x29ef57;}function _0x254a5b(){const _0x46703b=_0x77eb8['features'];return!!_0x46703b&&(!!_0x46703b['includes']('*')||(!!_0x46703b['includes']('POE')||(!!_0x46703b['includes']('PP')||!(!_0x46703b['includes']('TRILIUM')||!_0xdfa41e()))));}function _0x49f318(){const _0x42e98f=_0x77eb8['licensedHosts'];if(!_0x42e98f||0x0==_0x42e98f['length'])return!0x0;const {hostname:_0xffdbf9}=new URL(window['location']['href']);if(_0x42e98f['includes'](_0xffdbf9))return!0x0;const _0x57a6ec=_0xffdbf9['split']('.');return _0x42e98f['filter'](_0x347392=>_0x347392['includes']('*'))['map'](_0x172301=>_0x172301['split']('.'))['filter'](_0x2d9b8e=>_0x2d9b8e['length']<=_0x57a6ec['length'])['map'](_0x542570=>Array(_0x57a6ec['length']-_0x542570['length'])['fill']('*'===_0x542570[0x0]?'*':'')['concat'](_0x542570))['some'](_0x30020e=>_0x57a6ec['every']((_0x55dd68,_0x35f44c)=>_0x30020e[_0x35f44c]===_0x55dd68||'*'===_0x30020e[_0x35f44c]));}function _0x4b51d5(){return _0x7e5a3b&&_0x53ace0?new window['Promise']((_0x52d640,_0x3dbd5d)=>{_0x7e5a3b['then'](_0x52d640,_0x3dbd5d),_0x53ace0['then'](_0x123b3b=>{'Valid'!=_0x123b3b&&_0x52d640(_0x123b3b);},_0x3dbd5d);}):_0x7e5a3b||_0x53ace0||'Valid';}}function _0x4d7d0e(_0x4839e1,_0x300bb0){return new window['Promise'](_0x2d0773=>{if(_0x816481())return _0x2d0773('Valid');_0x2a6581(),_0x395e23['decorate']('_sendUsageRequest');let _0x175d71=!0x1;const _0xee5587=_0x6dcfc8();function _0x5dc877(_0x36ccf5){return!!_0x36ccf5&&('object'==typeof _0x36ccf5||'function'==typeof _0x36ccf5)&&'function'==typeof _0x36ccf5['then']&&'function'==typeof _0x36ccf5['catch'];}function _0x4cf02f(_0x39e246){_0x3eaf7b(_0x39e246)['then'](_0x31d2c9=>_0x31d2c9&&'ok'==_0x31d2c9['status']?_0x280989(_0x1d23e4(_0xee5587+_0x300bb0))!=_0x31d2c9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5f2e77=>(_0x4905ff(),_0x5f2e77),()=>{const _0x1c005d=_0x3ec1a7();return null==_0x1c005d?(_0x4905ff(),'Valid'):_0x36bf7d-_0x1c005d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2d0773)['catch'](()=>{_0x2d0773('UsageLimit');});const _0x189ad8=0x36ee80;function _0x4905ff(){const _0x416f00='llct-'+_0x280989(_0x1d23e4(_0x4839e1)),_0x5b47a8=_0x5a957f(_0x280989(window['Math']['ceil'](_0x36bf7d/_0x189ad8)));window['localStorage']['setItem'](_0x416f00,_0x5b47a8);}function _0x3ec1a7(){const _0x3a6cc0='llct-'+_0x280989(_0x1d23e4(_0x4839e1)),_0x4dc875=window['localStorage']['getItem'](_0x3a6cc0);return _0x4dc875?window['parseInt'](_0x5a957f(_0x4dc875),0x10)*_0x189ad8:null;}function _0x3eaf7b(_0x32fc6d){return new window['Promise']((_0x1c89e5,_0xb0df1d)=>{_0x32fc6d['then'](_0x1c89e5,_0xb0df1d),window['setTimeout'](_0xb0df1d,0x1d4c0);});}}_0x395e23['on']('_sendUsageRequest',(_0x48f099,_0xd359f8)=>{if(_0xd359f8[0x0]!=_0x4839e1)return _0x2d0773('UsageLimit');_0xd359f8[0x1]={..._0xd359f8[0x1],'requestId':_0xee5587};},{'priority':'high'}),_0x395e23['on']('_sendUsageRequest',_0x5b7f50=>{_0x5dc877(_0x5b7f50['return'])&&(_0x175d71=!0x0,_0x4cf02f(_0x5b7f50['return']));},{'priority':'low'}),_0x54148f['then'](()=>{_0x175d71||_0x2d0773('UsageLimit');});});function _0x816481(){return'auto'==_0x395e23['editing']['view']['_overlayModeHint'];}function _0x2a6581(){_0x395e23['editing']['view']['_overlayModeHint']='auto';}}function _0x26adf4(_0x150bc0){const _0x41e20a=[new window['Promise'](_0x4277fe=>setTimeout(_0x4277fe,0x93ecc)),_0x54148f['then'](()=>new window['Promise'](_0x2b9f08=>{let _0x3f8062=0x0;_0x395e23['model']['on']('applyOperation',(_0x9b88e3,_0x5ba7ee)=>{_0x5ba7ee[0x0]['isDocumentOperation']&&_0x3f8062++,0x5e8==_0x3f8062&&(_0x2b9f08(),_0x9b88e3['off']());});}))];return window['Promise']['race'](_0x41e20a)['then'](()=>_0x150bc0);}async function _0x32563a(){await _0x54148f,_0x395e23['model']['change']=_0x1769c9,_0x395e23['model']['enqueueChange']=_0x1769c9,_0x395e23['enableReadOnlyMode']('model');}function _0xdfa41e(){return window['glob']&&window['glob']['triliumVersion'];}function _0x31d802(_0x3041ea){const _0x518f54=_0x1be7de();_0x395e23[_0x518f54]='pasteFromOfficeEnhancedLicenseKey'+_0x3041ea,'Valid'!=_0x3041ea&&_0x32563a();}function _0x1be7de(){const _0x3bdb7a=window['String'](window['performance']['now']())['replace']('.','');let _0x397eca='s';for(let _0x4efeaa=0x0;_0x4efeaa<_0x3bdb7a['length'];_0x4efeaa+=0x2){let _0x4a2232=window['parseInt'](_0x3bdb7a['substring'](_0x4efeaa,_0x4efeaa+0x2));_0x4a2232>=0x3e&&(_0x4a2232-=0x3e),_0x397eca+=_0x2273d4[_0x4a2232];}return _0x397eca;}function _0x2d045b(){const _0x1463c1=_0xfe7aaa['split']('.');if(0x3!=_0x1463c1['length'])return null;return _0xd26e39(_0x1463c1[0x1]);function _0xd26e39(_0x52108d){const _0x24029a=_0x36d0c8(_0x52108d);return _0x24029a&&_0x488861()?_0x24029a:null;function _0x488861(){const _0x26988e=_0x24029a['jti'],_0x56869e=window['parseInt'](_0x26988e['substring'](_0x26988e['length']-0x8),0x10),_0x2a5c6e={..._0x24029a,'jti':_0x26988e['substring'](0x0,_0x26988e['length']-0x8)};return delete _0x2a5c6e['vc'],_0x1d23e4(_0x2a5c6e)==_0x56869e;}}}async function _0xb41b1c(){let _0x1dc828=!0x0;try{const [_0x3e0cbe,_0x529d0e,_0x3847c5]=_0xfe7aaa['split']('.');return _0x5a4acd(_0x3e0cbe),await _0x120e78(_0x3e0cbe,_0x529d0e,_0x3847c5),_0x1dc828;}catch{return!0x1;}function _0x5a4acd(_0x5ff232){const _0x2313d8=_0x36d0c8(_0x5ff232);_0x2313d8&&'ES256'==_0x2313d8['alg']||(_0x1dc828=!0x1);}async function _0x120e78(_0x26ee2c,_0x431600,_0x539fb8){const _0x5befd3=window['Uint8Array']['from'](_0xe570e4(_0x539fb8),_0x4d77a8=>_0x4d77a8['charCodeAt'](0x0)),_0x4c667a=new window['TextEncoder']()['encode'](_0x26ee2c+'.'+_0x431600),_0x2ae060=window['crypto']['subtle'];if(!_0x2ae060)return;const _0x44abe8=await _0x2ae060['importKey']('jwk',_0x50c91f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2ae060['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x44abe8,_0x5befd3,_0x4c667a)||(_0x1dc828=!0x1);}}function _0x36d0c8(_0x1650d7){return _0x1650d7['startsWith']('ey')?JSON['parse'](_0xe570e4(_0x1650d7)):null;}function _0xe570e4(_0x425b1c){return window['atob'](_0x425b1c['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1d23e4(_0x50ff6e){let _0x1545cd=0x1505;function _0x1cf5f4(_0x5973b2){for(let _0x2a75c8=0x0;_0x2a75c8<_0x5973b2['length'];_0x2a75c8++){const _0x2e7d9c=_0x5973b2['charCodeAt'](_0x2a75c8);_0x1545cd=(_0x1545cd<<0x5)+_0x1545cd+_0x2e7d9c,_0x1545cd&=_0x1545cd;}}function _0x3ce968(_0x33ce4d){Array['isArray'](_0x33ce4d)?_0x33ce4d['forEach'](_0x3ce968):_0x33ce4d&&'object'==typeof _0x33ce4d?Object['entries'](_0x33ce4d)['sort']()['forEach'](([_0x1631cb,_0x19b691])=>{_0x1cf5f4(_0x1631cb),_0x3ce968(_0x19b691);}):_0x1cf5f4(window['String'](_0x33ce4d));}return _0x3ce968(_0x50ff6e),_0x1545cd>>>0x0;}function _0x280989(_0x1f0c29){return _0x1f0c29['toString'](0x10)['padStart'](0x8,'0');}function _0x5a957f(_0x2219b6){return _0x2219b6['split']('')['reverse']()['join']('');}function _0x1769c9(){}_0x31d802(await _0x20fceb());}(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'],[_0x17feaf=>Number(_0x17feaf)>=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(_0x417ad3){return h['includes'](_0x417ad3);}function v(_0x55037a){return Array['from'](_0x55037a['getStyleNames']())['filter'](E);}function F(_0x1d63ff,_0x4a1622,_0x4212ce){const {spanStyles:_0x359e9b,stylesToBeHtmlElements:_0x2d0237}=K(_0x1d63ff,_0x4212ce);!function(_0x223869,_0x4ca5e0,_0x244811){for(const _0x2f6bd7 in _0x244811)_0x244811[_0x2f6bd7]['forEach'](([,_0x13708d])=>{const _0x59a976=_0x4ca5e0['createElement'](_0x13708d,[],_0x223869['getChildren']());_0x4ca5e0['insertChild'](0x0,_0x59a976,_0x223869);}),_0x4ca5e0['removeStyle'](_0x2f6bd7,_0x223869);}(_0x1d63ff,_0x4a1622,_0x2d0237),function(_0x492ef7,_0x58422b,_0x4c1257){if(!Object['keys'](_0x4c1257)['length'])return;const _0x4a8bff=_0x58422b['createElement']('span',[],_0x492ef7['getChildren']());_0x58422b['setStyle'](_0x4c1257,_0x4a8bff),_0x58422b['insertChild'](0x0,_0x4a8bff,_0x492ef7),_0x58422b['removeStyle'](Object['keys'](_0x4c1257),_0x492ef7);}(_0x1d63ff,_0x4a1622,_0x359e9b);}function P(_0x37b783,_0xaf058c,_0x16034c){const {spanStyles:_0x4f6cb6}=K(_0x37b783,_0x16034c),_0x541e84=Object['keys'](_0x4f6cb6);if(!_0x541e84['length'])return;let _0x15dc95=!0x1;for(const _0x2d1960 of _0x37b783['getChildren']())if(_0x2d1960['is']('element','span')){_0x15dc95=!0x0;for(const [_0x2355eb,_0x5b4177]of Object['entries'](_0x4f6cb6))_0x2d1960['hasStyle'](_0x2355eb)||_0xaf058c['setStyle']({[_0x2355eb]:_0x5b4177},_0x2d1960);}_0x15dc95&&_0xaf058c['removeStyle'](_0x541e84,_0x37b783);}function K(_0x32f830,_0x3de9a7){const _0x291c83={},_0x23e726={};return _0x3de9a7['forEach'](_0x280274=>{const _0x538dc2=_0x32f830['getStyle'](_0x280274);if(_0x538dc2){if(function(_0x471b74){return O['includes'](_0x471b74);}(_0x280274))_0x291c83[_0x280274]=_0x538dc2;else{if(function(_0x1626c3){return _0x1626c3 in L;}(_0x280274)){const _0x4497a1=_0x538dc2['split']('\x20');L[_0x280274]['forEach'](([_0x50620a,_0x2085ef])=>{for(const _0x20169d of _0x4497a1)('function'==typeof _0x50620a&&_0x50620a(_0x20169d)||_0x50620a===_0x20169d)&&(_0x23e726[_0x280274]=[..._0x23e726[_0x280274]||[],[_0x50620a,_0x2085ef]]);});}}}}),{'spanStyles':_0x291c83,'stylesToBeHtmlElements':_0x23e726};}var b=class extends _0x11a040{['execute'](_0x5afaf0){const _0x56c3f7=new _0x6dde02(_0x5afaf0['content']['document']),_0x54d34d=_0x56c3f7['createRangeIn'](_0x5afaf0['content']),_0x450d95=[...new _0x43659c(new _0x17cb42(_0x56c3f7['document']['stylesProcessor']))['blockElements'],'font'],_0x530a99=_0x54d34d['getItems']();for(const _0x446ac5 of _0x530a99)if(_0x446ac5['is']('element')&&_0x450d95['includes'](_0x446ac5['name'])){if(_0x446ac5['hasStyle']('mso-list')&&'none'!==_0x446ac5['getStyle']('mso-list')){P(_0x446ac5,_0x56c3f7,v(_0x446ac5));continue;}F(_0x446ac5,_0x56c3f7,v(_0x446ac5));}}['isActive'](_0x3b4926){return super['isActive'](_0x3b4926)||u(_0x3b4926);}},x=class extends _0x41ca10{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3007d5];}['init'](){const _0x2bb599=this['editor'],_0x4d7370=_0x2bb599['plugins']['get']('PasteFromOffice'),_0xcb6294=_0x2bb599['editing']['view']['document'],_0x2eff32=new b(_0xcb6294);_0x4d7370['registerNormalizer'](_0x2eff32,_0x592b72['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e16e9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x49c94c;for(const _0x181a7d in _0x5e16e9){const _0x20c150=_0x181a7d,_0x5f2448=_0x5e16e9[_0x20c150];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x5f2448||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5f2448||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5f2448||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5f2448||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5f2448||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5f2448||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5f2448){delete _0x5e16e9[_0x20c150],_0x49c94c=_0x5f2448,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x49c94c&&_0x5e16e9['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x49c94c&&_0x5e16e9['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x49c94c&&_0x5e16e9['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x49c94c&&_0x5e16e9['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x49c94c&&_0x5e16e9['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x49c94c&&_0x5e16e9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x41ca10{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3007d5,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.2",
|
|
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.2",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.3.0-alpha.2",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.2",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.3.0-alpha.2",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.2"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|