@ckeditor/ckeditor5-paste-from-office-enhanced 48.3.0-alpha.5 → 48.3.0-alpha.6
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 _0x1bc1d5}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x1b0668,PasteFromOfficeMSWordNormalizer as _0x83cafb}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x3f0a94,uid as _0x1ac761}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x16693b,ViewDomConverter as _0x364b96,ViewUpcastWriter as _0x4348a0}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x416b1f){return f['test'](_0x416b1f);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x40528b,_0x2b9ddf){const _0x330474=new Map();for(const [_0x51e838,_0x4b5c1c]of _0x2b9ddf){if(!_0x51e838['tagName']&&!_0x51e838['className'])continue;const _0x411b6d=!_0x51e838['tagName']||_0x40528b['name']===_0x51e838['tagName'],_0x1f1103=!_0x51e838['className']||_0x40528b['hasClass'](_0x51e838['className']);_0x411b6d&&_0x1f1103&&_0x330474['set'](_0x51e838,_0x4b5c1c);}return _0x330474;}function m(_0x3fc62d){const _0x461b94={};for(let _0x3adc8b=0x0;_0x3adc8b<_0x3fc62d['length'];_0x3adc8b++){const _0x1caf83=_0x3fc62d[_0x3adc8b],_0xd37346=_0x3fc62d['getPropertyValue'](_0x1caf83);'initial'!==_0xd37346&&(_0x461b94[_0x1caf83]=_0xd37346);}return _0x461b94;}function w(_0x4e8493){const _0x5a8a6d=_0x4e8493['split'](',')['map'](_0x5f04dc=>_0x5f04dc['trim']()),_0x18b575=[];for(const _0x1c842c of _0x5a8a6d){const _0x34ed7e=l['exec'](_0x1c842c);_0x34ed7e&&_0x18b575['push'](_0x34ed7e['groups']);}return _0x18b575;}function y(_0x610483){const _0x56a709={};for(const _0x5c41fe of _0x610483)Object['assign'](_0x56a709,_0x5c41fe);return _0x56a709;}var g=class extends _0x83cafb{['execute'](_0x3aa4e6){const {styles:_0x5e7f8c,stylesString:_0x4cd981}=_0x3aa4e6['extraContent'],_0x392973=new _0x4348a0(_0x3aa4e6['content']['document']),_0x22e075=_0x392973['createRangeIn'](_0x3aa4e6['content']),_0x5e50ee=function(_0x3364e3){const _0x1fb4e1=new Map();for(const _0x1f52f4 in _0x3364e3){const _0x313077=w(_0x1f52f4),_0x3685bd=_0x3364e3[_0x1f52f4];for(const _0x490b3a of _0x313077)_0x1fb4e1['set'](_0x490b3a,_0x3685bd);}return _0x1fb4e1;}(function(_0x39f199){const _0x269da7={};for(const _0x7b0a90 of _0x39f199)for(const _0x19ce74 of _0x7b0a90['cssRules'])if(_0x19ce74 instanceof CSSStyleRule){const _0x56b2f5=m(_0x19ce74['style']);_0x269da7[_0x19ce74['selectorText']]=Object['assign']({},_0x269da7[_0x19ce74['selectorText']]||{},_0x56b2f5);}return _0x269da7;}(_0x5e7f8c)),_0x2de393=function(_0x2b6a0c){const _0x4477eb={},_0x4be346=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x28ac1a=/\.(?<className>[\w-]+)/g;let _0x3cd3bf;for(;null!==(_0x3cd3bf=_0x4be346['exec'](_0x2b6a0c));){const {selector:_0x4b20e1,color:_0x38e2d8,patternType:_0x2acc02}=_0x3cd3bf['groups'];if('auto'!==_0x38e2d8['toLowerCase']()&&'none'!==_0x2acc02['toLowerCase']()&&'auto'!==_0x2acc02['toLowerCase']()){for(const _0x4b6562 of _0x4b20e1['matchAll'](_0x28ac1a))_0x4477eb[_0x4b6562['groups']['className']]=_0x38e2d8;}}return _0x4477eb;}(_0x4cd981);for(const _0x2e7250 of _0x22e075){if('elementStart'!==_0x2e7250['type'])continue;const _0x7adfeb=_0x2e7250['item'],_0x456833=d(_0x7adfeb,_0x5e50ee),_0x169585=_0x456833['size']?y(Array['from'](_0x456833['values']())):{};if(!('background-color'in _0x169585)&&!('background'in _0x169585)){for(const [_0x2c7997,_0x363e06]of Object['entries'](_0x2de393))if(_0x7adfeb['hasClass'](_0x2c7997)){_0x169585['background-color']=_0x363e06;break;}}for(const _0x1d9d6f in _0x169585)_0x7adfeb['hasStyle'](_0x1d9d6f)||_0x392973['setStyle'](_0x1d9d6f,_0x169585[_0x1d9d6f],_0x7adfeb);}}['isActive'](_0x426bba){return super['isActive'](_0x426bba)||u(_0x426bba);}},p=class extends _0x1bc1d5{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1b0668];}['init'](){const _0x403daa=this['editor'],_0x18acf1=_0x403daa['plugins']['get']('PasteFromOffice'),_0x43eba5=_0x403daa['editing']['view']['document'],_0x127234=new g(_0x43eba5);_0x18acf1['registerNormalizer'](_0x127234,_0x3f0a94['high']+0xb);}['afterInit'](){!async function(_0x1a0fca){const _0x13e6aa='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x323ed1=0x78e40,_0x15c07d=window['Date']['now'](),_0x964342=_0x1a0fca['editor'],_0x60bf8b=new window['Promise'](_0x57c577=>{_0x964342['once']('ready',_0x57c577);}),_0x210a14={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x46fe0b=_0x964342['config']['get']('licenseKey');async function _0x11f931(){let _0x21ba79,_0x923b02=null,_0x432785=null;try{return'GPL'==_0x46fe0b?'NotAllowed':(_0x21ba79=_0x48d3c6(),_0x21ba79?(_0x21ba79['usageEndpoint']&&(_0x432785=_0xc354a0(_0x21ba79['usageEndpoint'],_0x21ba79['jti'])),await _0x2806c8()?_0x3e3a6a()?_0x1a7277()?'Expired':_0x5e968f()?('evaluation'==_0x21ba79['licenseType']&&(_0x923b02=_0x8c793('EvaluationLimit')),await _0x2e2a58()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1a7277(){const _0x365c0e=['evaluation','trial']['includes'](_0x21ba79['licenseType'])?_0x15c07d/0x3e8:0xe10*_0x323ed1;return _0x21ba79['exp']<_0x365c0e;}function _0x3e3a6a(){const _0x4b7bde=_0x21ba79['features'];return!!_0x4b7bde&&(!!_0x4b7bde['includes']('*')||(!!_0x4b7bde['includes']('POE')||(!!_0x4b7bde['includes']('PP')||!(!_0x4b7bde['includes']('TRILIUM')||!_0x138e67()))));}function _0x5e968f(){const _0x4037d5=_0x21ba79['licensedHosts'];if(!_0x4037d5||0x0==_0x4037d5['length'])return!0x0;const {hostname:_0x4d5cab}=new URL(window['location']['href']);if(_0x4037d5['includes'](_0x4d5cab))return!0x0;const _0x39d9f2=_0x4d5cab['split']('.');return _0x4037d5['filter'](_0x22a10f=>_0x22a10f['includes']('*'))['map'](_0x4e9aed=>_0x4e9aed['split']('.'))['filter'](_0x2af29e=>_0x2af29e['length']<=_0x39d9f2['length'])['map'](_0x1acf91=>Array(_0x39d9f2['length']-_0x1acf91['length'])['fill']('*'===_0x1acf91[0x0]?'*':'')['concat'](_0x1acf91))['some'](_0x1dad6e=>_0x39d9f2['every']((_0x3162aa,_0xb37d36)=>_0x1dad6e[_0xb37d36]===_0x3162aa||'*'===_0x1dad6e[_0xb37d36]));}function _0x2e2a58(){return _0x923b02&&_0x432785?new window['Promise']((_0x17599d,_0xb71561)=>{_0x923b02['then'](_0x17599d,_0xb71561),_0x432785['then'](_0x5018fc=>{'Valid'!=_0x5018fc&&_0x17599d(_0x5018fc);},_0xb71561);}):_0x923b02||_0x432785||'Valid';}}function _0xc354a0(_0x7e76c3,_0x549817){return new window['Promise'](_0x28c295=>{if(_0x10bb01())return _0x28c295('Valid');_0x3395eb(),_0x964342['decorate']('_sendUsageRequest');let _0x47a1bc=!0x1;const _0x5a2638=_0x1ac761();function _0x476fd9(_0x2d67a1){return!!_0x2d67a1&&('object'==typeof _0x2d67a1||'function'==typeof _0x2d67a1)&&'function'==typeof _0x2d67a1['then']&&'function'==typeof _0x2d67a1['catch'];}function _0x3482f5(_0x59c47d){_0x3a5edf(_0x59c47d)['then'](_0x179edb=>_0x179edb&&'ok'==_0x179edb['status']?_0x12d97f(_0x3861fd(_0x5a2638+_0x549817))!=_0x179edb['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x416343=>(_0x793355(),_0x416343),()=>{const _0x279b95=_0x36f4e6();return null==_0x279b95?(_0x793355(),'Valid'):_0x15c07d-_0x279b95>0x240c8400?'UsageLimit':'Valid';})['then'](_0x28c295)['catch'](()=>{_0x28c295('UsageLimit');});const _0x1d2282=0x36ee80;function _0x793355(){const _0x318c4d='llct-'+_0x12d97f(_0x3861fd(_0x7e76c3)),_0x544334=_0xb95adf(_0x12d97f(window['Math']['ceil'](_0x15c07d/_0x1d2282)));window['localStorage']['setItem'](_0x318c4d,_0x544334);}function _0x36f4e6(){const _0x47eecf='llct-'+_0x12d97f(_0x3861fd(_0x7e76c3)),_0x138630=window['localStorage']['getItem'](_0x47eecf);return _0x138630?window['parseInt'](_0xb95adf(_0x138630),0x10)*_0x1d2282:null;}function _0x3a5edf(_0x459f07){return new window['Promise']((_0xb4072a,_0x58be04)=>{_0x459f07['then'](_0xb4072a,_0x58be04),window['setTimeout'](_0x58be04,0x1d4c0);});}}_0x964342['on']('_sendUsageRequest',(_0x36af69,_0x5cfa6f)=>{if(_0x5cfa6f[0x0]!=_0x7e76c3)return _0x28c295('UsageLimit');_0x5cfa6f[0x1]={..._0x5cfa6f[0x1],'requestId':_0x5a2638};},{'priority':'high'}),_0x964342['on']('_sendUsageRequest',_0x4e7bab=>{_0x476fd9(_0x4e7bab['return'])&&(_0x47a1bc=!0x0,_0x3482f5(_0x4e7bab['return']));},{'priority':'low'}),_0x60bf8b['then'](()=>{_0x47a1bc||_0x28c295('UsageLimit');});});function _0x10bb01(){return'auto'==_0x964342['editing']['view']['_overlayModeHint'];}function _0x3395eb(){_0x964342['editing']['view']['_overlayModeHint']='auto';}}function _0x8c793(_0x282e58){const _0x26ee9d=[new window['Promise'](_0x7c9490=>setTimeout(_0x7c9490,0x93ecc)),_0x60bf8b['then'](()=>new window['Promise'](_0x318d9e=>{let _0x236342=0x0;_0x964342['model']['on']('applyOperation',(_0x517ff9,_0x93ee3c)=>{_0x93ee3c[0x0]['isDocumentOperation']&&_0x236342++,0x5e8==_0x236342&&(_0x318d9e(),_0x517ff9['off']());});}))];return window['Promise']['race'](_0x26ee9d)['then'](()=>_0x282e58);}async function _0x365514(){await _0x60bf8b,_0x964342['model']['change']=_0x3f1af1,_0x964342['model']['enqueueChange']=_0x3f1af1,_0x964342['enableReadOnlyMode']('model');}function _0x138e67(){return window['glob']&&window['glob']['triliumVersion'];}function _0x3a69d2(_0x19d6d1){const _0x5deefc=_0x4fc0bd();_0x964342[_0x5deefc]='pasteFromOfficeEnhancedLicenseKey'+_0x19d6d1,'Valid'!=_0x19d6d1&&_0x365514();}function _0x4fc0bd(){const _0x40ce1c=window['String'](window['performance']['now']())['replace']('.','');let _0x270293='s';for(let _0x2eaf61=0x0;_0x2eaf61<_0x40ce1c['length'];_0x2eaf61+=0x2){let _0x4f6ee0=window['parseInt'](_0x40ce1c['substring'](_0x2eaf61,_0x2eaf61+0x2));_0x4f6ee0>=0x3e&&(_0x4f6ee0-=0x3e),_0x270293+=_0x13e6aa[_0x4f6ee0];}return _0x270293;}function _0x48d3c6(){const _0x4cdc34=_0x46fe0b['split']('.');if(0x3!=_0x4cdc34['length'])return null;return _0x493742(_0x4cdc34[0x1]);function _0x493742(_0x408d9f){const _0x45e625=_0x6d5adf(_0x408d9f);return _0x45e625&&_0x4f83d1()?_0x45e625:null;function _0x4f83d1(){const _0x47cbd6=_0x45e625['jti'],_0x634cf5=window['parseInt'](_0x47cbd6['substring'](_0x47cbd6['length']-0x8),0x10),_0x153993={..._0x45e625,'jti':_0x47cbd6['substring'](0x0,_0x47cbd6['length']-0x8)};return delete _0x153993['vc'],_0x3861fd(_0x153993)==_0x634cf5;}}}async function _0x2806c8(){let _0x420d94=!0x0;try{const [_0x473a12,_0x21dd25,_0x1bfa32]=_0x46fe0b['split']('.');return _0x48859c(_0x473a12),await _0x3a2dfa(_0x473a12,_0x21dd25,_0x1bfa32),_0x420d94;}catch{return!0x1;}function _0x48859c(_0x5dfaaa){const _0x2b50ad=_0x6d5adf(_0x5dfaaa);_0x2b50ad&&'ES256'==_0x2b50ad['alg']||(_0x420d94=!0x1);}async function _0x3a2dfa(_0x38f1d9,_0x38389b,_0x16a5f6){const _0x121532=window['Uint8Array']['from'](_0x590534(_0x16a5f6),_0x9b112d=>_0x9b112d['charCodeAt'](0x0)),_0x21f06d=new window['TextEncoder']()['encode'](_0x38f1d9+'.'+_0x38389b),_0x2abb6c=window['crypto']['subtle'];if(!_0x2abb6c)return;const _0x297974=await _0x2abb6c['importKey']('jwk',_0x210a14,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2abb6c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x297974,_0x121532,_0x21f06d)||(_0x420d94=!0x1);}}function _0x6d5adf(_0x223b30){return _0x223b30['startsWith']('ey')?JSON['parse'](_0x590534(_0x223b30)):null;}function _0x590534(_0x8b946a){return window['atob'](_0x8b946a['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3861fd(_0x190306){let _0x3f73ca=0x1505;function _0xfd18af(_0x5cb95b){for(let _0x27d621=0x0;_0x27d621<_0x5cb95b['length'];_0x27d621++){const _0x7adea=_0x5cb95b['charCodeAt'](_0x27d621);_0x3f73ca=(_0x3f73ca<<0x5)+_0x3f73ca+_0x7adea,_0x3f73ca&=_0x3f73ca;}}function _0x1f60d0(_0x43ed36){Array['isArray'](_0x43ed36)?_0x43ed36['forEach'](_0x1f60d0):_0x43ed36&&'object'==typeof _0x43ed36?Object['entries'](_0x43ed36)['sort']()['forEach'](([_0x58849f,_0x3e6907])=>{_0xfd18af(_0x58849f),_0x1f60d0(_0x3e6907);}):_0xfd18af(window['String'](_0x43ed36));}return _0x1f60d0(_0x190306),_0x3f73ca>>>0x0;}function _0x12d97f(_0xa6c43e){return _0xa6c43e['toString'](0x10)['padStart'](0x8,'0');}function _0xb95adf(_0xf3cffb){return _0xf3cffb['split']('')['reverse']()['join']('');}function _0x3f1af1(){}_0x3a69d2(await _0x11f931());}(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'],[_0x3a412e=>Number(_0x3a412e)>=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(_0x3d5ac2){return h['includes'](_0x3d5ac2);}function v(_0x52572b){return Array['from'](_0x52572b['getStyleNames']())['filter'](E);}function F(_0x3aca91,_0xbe4338,_0x40476f){const {spanStyles:_0x353191,stylesToBeHtmlElements:_0x18042f}=K(_0x3aca91,_0x40476f);!function(_0x30fda9,_0x2ae1a2,_0x453b99){for(const _0x28013d in _0x453b99)_0x453b99[_0x28013d]['forEach'](([,_0x47cf7a])=>{const _0x8db488=_0x2ae1a2['createElement'](_0x47cf7a,[],_0x30fda9['getChildren']());_0x2ae1a2['insertChild'](0x0,_0x8db488,_0x30fda9);}),_0x2ae1a2['removeStyle'](_0x28013d,_0x30fda9);}(_0x3aca91,_0xbe4338,_0x18042f),function(_0x124dac,_0x498ed0,_0x572676){if(!Object['keys'](_0x572676)['length'])return;const _0xb657e2=_0x498ed0['createElement']('span',[],_0x124dac['getChildren']());_0x498ed0['setStyle'](_0x572676,_0xb657e2),_0x498ed0['insertChild'](0x0,_0xb657e2,_0x124dac),_0x498ed0['removeStyle'](Object['keys'](_0x572676),_0x124dac);}(_0x3aca91,_0xbe4338,_0x353191);}function P(_0x1e59fa,_0x472281,_0x5c7d60){const {spanStyles:_0x5558e1}=K(_0x1e59fa,_0x5c7d60),_0x1f18e0=Object['keys'](_0x5558e1);if(!_0x1f18e0['length'])return;let _0x52e98e=!0x1;for(const _0x35f425 of _0x1e59fa['getChildren']())if(_0x35f425['is']('element','span')){_0x52e98e=!0x0;for(const [_0x341380,_0x3332e9]of Object['entries'](_0x5558e1))_0x35f425['hasStyle'](_0x341380)||_0x472281['setStyle']({[_0x341380]:_0x3332e9},_0x35f425);}_0x52e98e&&_0x472281['removeStyle'](_0x1f18e0,_0x1e59fa);}function K(_0xbdd29a,_0x4d1df7){const _0x52bfc6={},_0x2ecc97={};return _0x4d1df7['forEach'](_0x1410d9=>{const _0x5ff0e8=_0xbdd29a['getStyle'](_0x1410d9);if(_0x5ff0e8){if(function(_0x37c179){return O['includes'](_0x37c179);}(_0x1410d9))_0x52bfc6[_0x1410d9]=_0x5ff0e8;else{if(function(_0x242245){return _0x242245 in L;}(_0x1410d9)){const _0x1b7f06=_0x5ff0e8['split']('\x20');L[_0x1410d9]['forEach'](([_0xad12ad,_0x2806af])=>{for(const _0x25e1b7 of _0x1b7f06)('function'==typeof _0xad12ad&&_0xad12ad(_0x25e1b7)||_0xad12ad===_0x25e1b7)&&(_0x2ecc97[_0x1410d9]=[..._0x2ecc97[_0x1410d9]||[],[_0xad12ad,_0x2806af]]);});}}}}),{'spanStyles':_0x52bfc6,'stylesToBeHtmlElements':_0x2ecc97};}var b=class extends _0x83cafb{['execute'](_0x997e15){const _0x1b0fcb=new _0x4348a0(_0x997e15['content']['document']),_0x39fba0=_0x1b0fcb['createRangeIn'](_0x997e15['content']),_0x5175cc=[...new _0x364b96(new _0x16693b(_0x1b0fcb['document']['stylesProcessor']))['blockElements'],'font'],_0x40ed9d=_0x39fba0['getItems']();for(const _0x13298a of _0x40ed9d)if(_0x13298a['is']('element')&&_0x5175cc['includes'](_0x13298a['name'])){if(_0x13298a['hasStyle']('mso-list')&&'none'!==_0x13298a['getStyle']('mso-list')){P(_0x13298a,_0x1b0fcb,v(_0x13298a));continue;}F(_0x13298a,_0x1b0fcb,v(_0x13298a));}}['isActive'](_0x5c99f5){return super['isActive'](_0x5c99f5)||u(_0x5c99f5);}},x=class extends _0x1bc1d5{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1b0668];}['init'](){const _0x41c3fe=this['editor'],_0x34f5fe=_0x41c3fe['plugins']['get']('PasteFromOffice'),_0x442653=_0x41c3fe['editing']['view']['document'],_0x57409f=new b(_0x442653);_0x34f5fe['registerNormalizer'](_0x57409f,_0x3f0a94['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x147d12=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x587ffb;for(const _0x3c17dc in _0x147d12){const _0x4d717f=_0x3c17dc,_0x4c44c6=_0x147d12[_0x4d717f];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x4c44c6||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4c44c6||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4c44c6||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4c44c6||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4c44c6||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4c44c6||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4c44c6){delete _0x147d12[_0x4d717f],_0x587ffb=_0x4c44c6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x587ffb&&_0x147d12['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x587ffb&&_0x147d12['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x587ffb&&_0x147d12['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x587ffb&&_0x147d12['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x587ffb&&_0x147d12['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x587ffb&&_0x147d12['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x1bc1d5{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1b0668,p,x];}};export{k as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x77be76}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x35001f,PasteFromOfficeMSWordNormalizer as _0x5bbc79}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x5515d3,uid as _0x13aae6}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x83bcd7,ViewDomConverter as _0x4a94c3,ViewUpcastWriter as _0x5b4cde}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x10f81a){return f['test'](_0x10f81a);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x1595e1,_0x30b12e){const _0x44e840=new Map();for(const [_0x3b7a81,_0x203818]of _0x30b12e){if(!_0x3b7a81['tagName']&&!_0x3b7a81['className'])continue;const _0x5ae425=!_0x3b7a81['tagName']||_0x1595e1['name']===_0x3b7a81['tagName'],_0x2b3229=!_0x3b7a81['className']||_0x1595e1['hasClass'](_0x3b7a81['className']);_0x5ae425&&_0x2b3229&&_0x44e840['set'](_0x3b7a81,_0x203818);}return _0x44e840;}function m(_0x82cc7){const _0x3bd5ab={};for(let _0x331fb3=0x0;_0x331fb3<_0x82cc7['length'];_0x331fb3++){const _0x514196=_0x82cc7[_0x331fb3],_0x6d5782=_0x82cc7['getPropertyValue'](_0x514196);'initial'!==_0x6d5782&&(_0x3bd5ab[_0x514196]=_0x6d5782);}return _0x3bd5ab;}function w(_0x2525d2){const _0xd2ed8b=_0x2525d2['split'](',')['map'](_0x352182=>_0x352182['trim']()),_0x2be1a2=[];for(const _0x3348a1 of _0xd2ed8b){const _0x25670b=l['exec'](_0x3348a1);_0x25670b&&_0x2be1a2['push'](_0x25670b['groups']);}return _0x2be1a2;}function y(_0x1927ce){const _0x28a70e={};for(const _0x18423a of _0x1927ce)Object['assign'](_0x28a70e,_0x18423a);return _0x28a70e;}var g=class extends _0x5bbc79{['execute'](_0x2e2c22){const {styles:_0x33cd28,stylesString:_0x2dbd7f}=_0x2e2c22['extraContent'],_0x2a5575=new _0x5b4cde(_0x2e2c22['content']['document']),_0x1b0d87=_0x2a5575['createRangeIn'](_0x2e2c22['content']),_0x5dfd7d=function(_0x4ee36c){const _0x5f1f08=new Map();for(const _0x11bcb8 in _0x4ee36c){const _0x4db0d4=w(_0x11bcb8),_0x57569c=_0x4ee36c[_0x11bcb8];for(const _0x5af529 of _0x4db0d4)_0x5f1f08['set'](_0x5af529,_0x57569c);}return _0x5f1f08;}(function(_0xa37c58){const _0x28a800={};for(const _0x210d24 of _0xa37c58)for(const _0x3c74e4 of _0x210d24['cssRules'])if(_0x3c74e4 instanceof CSSStyleRule){const _0x35683a=m(_0x3c74e4['style']);_0x28a800[_0x3c74e4['selectorText']]=Object['assign']({},_0x28a800[_0x3c74e4['selectorText']]||{},_0x35683a);}return _0x28a800;}(_0x33cd28)),_0x27b8a5=function(_0xb19e81){const _0x4810df={},_0x95c85a=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0xd39420=/\.(?<className>[\w-]+)/g;let _0x3564a6;for(;null!==(_0x3564a6=_0x95c85a['exec'](_0xb19e81));){const {selector:_0x177a32,color:_0xd433b3,patternType:_0x529833}=_0x3564a6['groups'];if('auto'!==_0xd433b3['toLowerCase']()&&'none'!==_0x529833['toLowerCase']()&&'auto'!==_0x529833['toLowerCase']()){for(const _0x4a663e of _0x177a32['matchAll'](_0xd39420))_0x4810df[_0x4a663e['groups']['className']]=_0xd433b3;}}return _0x4810df;}(_0x2dbd7f);for(const _0x5ad396 of _0x1b0d87){if('elementStart'!==_0x5ad396['type'])continue;const _0x2f3fb5=_0x5ad396['item'],_0x4d725b=d(_0x2f3fb5,_0x5dfd7d),_0x3511ec=_0x4d725b['size']?y(Array['from'](_0x4d725b['values']())):{};if(!('background-color'in _0x3511ec)&&!('background'in _0x3511ec)){for(const [_0x36e492,_0x51a138]of Object['entries'](_0x27b8a5))if(_0x2f3fb5['hasClass'](_0x36e492)){_0x3511ec['background-color']=_0x51a138;break;}}for(const _0x5a12b9 in _0x3511ec)_0x2f3fb5['hasStyle'](_0x5a12b9)||_0x2a5575['setStyle'](_0x5a12b9,_0x3511ec[_0x5a12b9],_0x2f3fb5);}}['isActive'](_0x369308){return super['isActive'](_0x369308)||u(_0x369308);}},p=class extends _0x77be76{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x35001f];}['init'](){const _0x16aefa=this['editor'],_0x4e6844=_0x16aefa['plugins']['get']('PasteFromOffice'),_0x5175f2=_0x16aefa['editing']['view']['document'],_0x2bb8fd=new g(_0x5175f2);_0x4e6844['registerNormalizer'](_0x2bb8fd,_0x5515d3['high']+0xb);}['afterInit'](){!async function(_0x50ad37){const _0x221ff3='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x24990f=0x78e58,_0x37d01d=window['Date']['now'](),_0x4687a3=_0x50ad37['editor'],_0x240d4b=new window['Promise'](_0x449f85=>{_0x4687a3['once']('ready',_0x449f85);}),_0x532499={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3a1f9f=_0x4687a3['config']['get']('licenseKey');async function _0x3f0f05(){let _0x1e6217,_0x21d8db=null,_0x355c17=null;try{return'GPL'==_0x3a1f9f?'NotAllowed':(_0x1e6217=_0x14bae8(),_0x1e6217?(_0x1e6217['usageEndpoint']&&(_0x355c17=_0x261890(_0x1e6217['usageEndpoint'],_0x1e6217['jti'])),await _0x170218()?_0x49403d()?_0x304584()?'Expired':_0x2d2932()?('evaluation'==_0x1e6217['licenseType']&&(_0x21d8db=_0x1defd1('EvaluationLimit')),await _0x30b5de()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x304584(){const _0x27b1e0=['evaluation','trial']['includes'](_0x1e6217['licenseType'])?_0x37d01d/0x3e8:0xe10*_0x24990f;return _0x1e6217['exp']<_0x27b1e0;}function _0x49403d(){const _0x9b7018=_0x1e6217['features'];return!!_0x9b7018&&(!!_0x9b7018['includes']('*')||(!!_0x9b7018['includes']('POE')||(!!_0x9b7018['includes']('PP')||!(!_0x9b7018['includes']('TRILIUM')||!_0x2dcba8()))));}function _0x2d2932(){const _0x249ec7=_0x1e6217['licensedHosts'];if(!_0x249ec7||0x0==_0x249ec7['length'])return!0x0;const {hostname:_0x134643}=new URL(window['location']['href']);if(_0x249ec7['includes'](_0x134643))return!0x0;const _0x4d814f=_0x134643['split']('.');return _0x249ec7['filter'](_0x4d9b40=>_0x4d9b40['includes']('*'))['map'](_0x3df026=>_0x3df026['split']('.'))['filter'](_0x14ee0e=>_0x14ee0e['length']<=_0x4d814f['length'])['map'](_0x2312cb=>Array(_0x4d814f['length']-_0x2312cb['length'])['fill']('*'===_0x2312cb[0x0]?'*':'')['concat'](_0x2312cb))['some'](_0x1a1757=>_0x4d814f['every']((_0x2a1a82,_0x5a4a56)=>_0x1a1757[_0x5a4a56]===_0x2a1a82||'*'===_0x1a1757[_0x5a4a56]));}function _0x30b5de(){return _0x21d8db&&_0x355c17?new window['Promise']((_0x45f96c,_0x5d7b0d)=>{_0x21d8db['then'](_0x45f96c,_0x5d7b0d),_0x355c17['then'](_0x4e4f6d=>{'Valid'!=_0x4e4f6d&&_0x45f96c(_0x4e4f6d);},_0x5d7b0d);}):_0x21d8db||_0x355c17||'Valid';}}function _0x261890(_0x5bc4f5,_0x43b2a5){return new window['Promise'](_0x31881e=>{if(_0x544c38())return _0x31881e('Valid');_0x312a86(),_0x4687a3['decorate']('_sendUsageRequest');let _0x59af13=!0x1;const _0x4d6632=_0x13aae6();function _0x2c94ef(_0x4c7fb9){return!!_0x4c7fb9&&('object'==typeof _0x4c7fb9||'function'==typeof _0x4c7fb9)&&'function'==typeof _0x4c7fb9['then']&&'function'==typeof _0x4c7fb9['catch'];}function _0x1c074a(_0x573003){_0x42663a(_0x573003)['then'](_0x384818=>_0x384818&&'ok'==_0x384818['status']?_0x1f9b43(_0x1a8b9d(_0x4d6632+_0x43b2a5))!=_0x384818['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x50fb99=>(_0x46736b(),_0x50fb99),()=>{const _0x11b833=_0x41b0b0();return null==_0x11b833?(_0x46736b(),'Valid'):_0x37d01d-_0x11b833>0x240c8400?'UsageLimit':'Valid';})['then'](_0x31881e)['catch'](()=>{_0x31881e('UsageLimit');});const _0x16c3ac=0x36ee80;function _0x46736b(){const _0x5c644a='llct-'+_0x1f9b43(_0x1a8b9d(_0x5bc4f5)),_0x326292=_0x446601(_0x1f9b43(window['Math']['ceil'](_0x37d01d/_0x16c3ac)));window['localStorage']['setItem'](_0x5c644a,_0x326292);}function _0x41b0b0(){const _0x14a002='llct-'+_0x1f9b43(_0x1a8b9d(_0x5bc4f5)),_0x29c1e0=window['localStorage']['getItem'](_0x14a002);return _0x29c1e0?window['parseInt'](_0x446601(_0x29c1e0),0x10)*_0x16c3ac:null;}function _0x42663a(_0x484baf){return new window['Promise']((_0x5143cc,_0x3562bf)=>{_0x484baf['then'](_0x5143cc,_0x3562bf),window['setTimeout'](_0x3562bf,0x1d4c0);});}}_0x4687a3['on']('_sendUsageRequest',(_0x33e6bd,_0x3ff2d9)=>{if(_0x3ff2d9[0x0]!=_0x5bc4f5)return _0x31881e('UsageLimit');_0x3ff2d9[0x1]={..._0x3ff2d9[0x1],'requestId':_0x4d6632};},{'priority':'high'}),_0x4687a3['on']('_sendUsageRequest',_0x119759=>{_0x2c94ef(_0x119759['return'])&&(_0x59af13=!0x0,_0x1c074a(_0x119759['return']));},{'priority':'low'}),_0x240d4b['then'](()=>{_0x59af13||_0x31881e('UsageLimit');});});function _0x544c38(){return'auto'==_0x4687a3['editing']['view']['_overlayModeHint'];}function _0x312a86(){_0x4687a3['editing']['view']['_overlayModeHint']='auto';}}function _0x1defd1(_0x45964b){const _0x4f9bde=[new window['Promise'](_0x29d866=>setTimeout(_0x29d866,0x93ecc)),_0x240d4b['then'](()=>new window['Promise'](_0x5e9b4d=>{let _0x2d7717=0x0;_0x4687a3['model']['on']('applyOperation',(_0x16102f,_0x56c931)=>{_0x56c931[0x0]['isDocumentOperation']&&_0x2d7717++,0x5e8==_0x2d7717&&(_0x5e9b4d(),_0x16102f['off']());});}))];return window['Promise']['race'](_0x4f9bde)['then'](()=>_0x45964b);}async function _0x388e13(){await _0x240d4b,_0x4687a3['model']['change']=_0x29c52b,_0x4687a3['model']['enqueueChange']=_0x29c52b,_0x4687a3['enableReadOnlyMode']('model');}function _0x2dcba8(){return window['glob']&&window['glob']['triliumVersion'];}function _0x26787f(_0x2bdb32){const _0x1e1ffe=_0xebb8d1();_0x4687a3[_0x1e1ffe]='pasteFromOfficeEnhancedLicenseKey'+_0x2bdb32,'Valid'!=_0x2bdb32&&_0x388e13();}function _0xebb8d1(){const _0x275cf1=window['String'](window['performance']['now']())['replace']('.','');let _0x254667='s';for(let _0x31880b=0x0;_0x31880b<_0x275cf1['length'];_0x31880b+=0x2){let _0x18bb0b=window['parseInt'](_0x275cf1['substring'](_0x31880b,_0x31880b+0x2));_0x18bb0b>=0x3e&&(_0x18bb0b-=0x3e),_0x254667+=_0x221ff3[_0x18bb0b];}return _0x254667;}function _0x14bae8(){const _0x1fb075=_0x3a1f9f['split']('.');if(0x3!=_0x1fb075['length'])return null;return _0x498653(_0x1fb075[0x1]);function _0x498653(_0x34f2e8){const _0x4c0142=_0x3a0833(_0x34f2e8);return _0x4c0142&&_0x53c0f5()?_0x4c0142:null;function _0x53c0f5(){const _0x265a8e=_0x4c0142['jti'],_0x12ca2b=window['parseInt'](_0x265a8e['substring'](_0x265a8e['length']-0x8),0x10),_0x1ad44e={..._0x4c0142,'jti':_0x265a8e['substring'](0x0,_0x265a8e['length']-0x8)};return delete _0x1ad44e['vc'],_0x1a8b9d(_0x1ad44e)==_0x12ca2b;}}}async function _0x170218(){let _0x21291e=!0x0;try{const [_0x5b974d,_0x429aca,_0x45a19d]=_0x3a1f9f['split']('.');return _0x1adf45(_0x5b974d),await _0x438277(_0x5b974d,_0x429aca,_0x45a19d),_0x21291e;}catch{return!0x1;}function _0x1adf45(_0xf6f701){const _0x18574c=_0x3a0833(_0xf6f701);_0x18574c&&'ES256'==_0x18574c['alg']||(_0x21291e=!0x1);}async function _0x438277(_0x24980f,_0x25dbb8,_0x559f93){const _0x4e8f30=window['Uint8Array']['from'](_0x3bc22d(_0x559f93),_0x4775c6=>_0x4775c6['charCodeAt'](0x0)),_0x3b510b=new window['TextEncoder']()['encode'](_0x24980f+'.'+_0x25dbb8),_0x5c1179=window['crypto']['subtle'];if(!_0x5c1179)return;const _0x2673cc=await _0x5c1179['importKey']('jwk',_0x532499,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5c1179['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2673cc,_0x4e8f30,_0x3b510b)||(_0x21291e=!0x1);}}function _0x3a0833(_0x5af856){return _0x5af856['startsWith']('ey')?JSON['parse'](_0x3bc22d(_0x5af856)):null;}function _0x3bc22d(_0x5d5a4e){return window['atob'](_0x5d5a4e['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1a8b9d(_0x3fc4b1){let _0x3d4d17=0x1505;function _0x47a610(_0x261e60){for(let _0x4112b4=0x0;_0x4112b4<_0x261e60['length'];_0x4112b4++){const _0x26fad2=_0x261e60['charCodeAt'](_0x4112b4);_0x3d4d17=(_0x3d4d17<<0x5)+_0x3d4d17+_0x26fad2,_0x3d4d17&=_0x3d4d17;}}function _0x435409(_0x4b39ac){Array['isArray'](_0x4b39ac)?_0x4b39ac['forEach'](_0x435409):_0x4b39ac&&'object'==typeof _0x4b39ac?Object['entries'](_0x4b39ac)['sort']()['forEach'](([_0x3ae198,_0x292860])=>{_0x47a610(_0x3ae198),_0x435409(_0x292860);}):_0x47a610(window['String'](_0x4b39ac));}return _0x435409(_0x3fc4b1),_0x3d4d17>>>0x0;}function _0x1f9b43(_0x5f59db){return _0x5f59db['toString'](0x10)['padStart'](0x8,'0');}function _0x446601(_0x732bfc){return _0x732bfc['split']('')['reverse']()['join']('');}function _0x29c52b(){}_0x26787f(await _0x3f0f05());}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x34b400=>Number(_0x34b400)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0x757298){return h['includes'](_0x757298);}function v(_0x510407){return Array['from'](_0x510407['getStyleNames']())['filter'](E);}function F(_0x31f59a,_0x8a2647,_0x5cc13b){const {spanStyles:_0x75b3cb,stylesToBeHtmlElements:_0x87ddd8}=K(_0x31f59a,_0x5cc13b);!function(_0x3da6c1,_0x12653c,_0x3ac924){for(const _0x5756ad in _0x3ac924)_0x3ac924[_0x5756ad]['forEach'](([,_0x4cea3a])=>{const _0x337bea=_0x12653c['createElement'](_0x4cea3a,[],_0x3da6c1['getChildren']());_0x12653c['insertChild'](0x0,_0x337bea,_0x3da6c1);}),_0x12653c['removeStyle'](_0x5756ad,_0x3da6c1);}(_0x31f59a,_0x8a2647,_0x87ddd8),function(_0xf66dc4,_0xd35364,_0x5a895d){if(!Object['keys'](_0x5a895d)['length'])return;const _0x3c793a=_0xd35364['createElement']('span',[],_0xf66dc4['getChildren']());_0xd35364['setStyle'](_0x5a895d,_0x3c793a),_0xd35364['insertChild'](0x0,_0x3c793a,_0xf66dc4),_0xd35364['removeStyle'](Object['keys'](_0x5a895d),_0xf66dc4);}(_0x31f59a,_0x8a2647,_0x75b3cb);}function P(_0x79e329,_0x30a7eb,_0x5c63fe){const {spanStyles:_0x49eaa5}=K(_0x79e329,_0x5c63fe),_0x31ff3a=Object['keys'](_0x49eaa5);if(!_0x31ff3a['length'])return;let _0x559177=!0x1;for(const _0x2a12a2 of _0x79e329['getChildren']())if(_0x2a12a2['is']('element','span')){_0x559177=!0x0;for(const [_0x4e6343,_0x564100]of Object['entries'](_0x49eaa5))_0x2a12a2['hasStyle'](_0x4e6343)||_0x30a7eb['setStyle']({[_0x4e6343]:_0x564100},_0x2a12a2);}_0x559177&&_0x30a7eb['removeStyle'](_0x31ff3a,_0x79e329);}function K(_0x384aa4,_0x27d8ba){const _0x351841={},_0x42b4e8={};return _0x27d8ba['forEach'](_0x5a6420=>{const _0x5c3c8c=_0x384aa4['getStyle'](_0x5a6420);if(_0x5c3c8c){if(function(_0x32b953){return O['includes'](_0x32b953);}(_0x5a6420))_0x351841[_0x5a6420]=_0x5c3c8c;else{if(function(_0x3e2553){return _0x3e2553 in L;}(_0x5a6420)){const _0x263b3f=_0x5c3c8c['split']('\x20');L[_0x5a6420]['forEach'](([_0x21c27c,_0x2533ca])=>{for(const _0x4c6a15 of _0x263b3f)('function'==typeof _0x21c27c&&_0x21c27c(_0x4c6a15)||_0x21c27c===_0x4c6a15)&&(_0x42b4e8[_0x5a6420]=[..._0x42b4e8[_0x5a6420]||[],[_0x21c27c,_0x2533ca]]);});}}}}),{'spanStyles':_0x351841,'stylesToBeHtmlElements':_0x42b4e8};}var b=class extends _0x5bbc79{['execute'](_0x6bcb5b){const _0x3c0484=new _0x5b4cde(_0x6bcb5b['content']['document']),_0x21f2e6=_0x3c0484['createRangeIn'](_0x6bcb5b['content']),_0xda098b=[...new _0x4a94c3(new _0x83bcd7(_0x3c0484['document']['stylesProcessor']))['blockElements'],'font'],_0x3ce599=_0x21f2e6['getItems']();for(const _0x4b4a00 of _0x3ce599)if(_0x4b4a00['is']('element')&&_0xda098b['includes'](_0x4b4a00['name'])){if(_0x4b4a00['hasStyle']('mso-list')&&'none'!==_0x4b4a00['getStyle']('mso-list')){P(_0x4b4a00,_0x3c0484,v(_0x4b4a00));continue;}F(_0x4b4a00,_0x3c0484,v(_0x4b4a00));}}['isActive'](_0x1e6535){return super['isActive'](_0x1e6535)||u(_0x1e6535);}},x=class extends _0x77be76{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x35001f];}['init'](){const _0x5f3224=this['editor'],_0x21c131=_0x5f3224['plugins']['get']('PasteFromOffice'),_0x594d9e=_0x5f3224['editing']['view']['document'],_0x1fffc5=new b(_0x594d9e);_0x21c131['registerNormalizer'](_0x1fffc5,_0x5515d3['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x40f840=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39be32;for(const _0x1426e1 in _0x40f840){const _0x404b8a=_0x1426e1,_0x35655a=_0x40f840[_0x404b8a];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x35655a||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x35655a){delete _0x40f840[_0x404b8a],_0x39be32=_0x35655a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x39be32&&_0x40f840['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x39be32&&_0x40f840['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x39be32&&_0x40f840['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x39be32&&_0x40f840['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x39be32&&_0x40f840['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x39be32&&_0x40f840['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x77be76{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x35001f,p,x];}};export{k as PasteFromOfficeEnhanced};
|
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.6",
|
|
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.6",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.3.0-alpha.6",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.6",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.3.0-alpha.6",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.6"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|