@ckeditor/ckeditor5-paste-from-office-enhanced 48.4.0-alpha.1 → 48.4.0-alpha.3
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 _0xe14af8}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x3f1b88,PasteFromOfficeMSWordNormalizer as _0x183bbe}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x3e17da,uid as _0x52d937}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0xa0eabd,ViewDomConverter as _0x9eb54a,ViewUpcastWriter as _0x1a490a}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x3466d5){return f['test'](_0x3466d5);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x122238,_0x502723){const _0x3ac86f=new Map();for(const [_0x23c087,_0x59cef5]of _0x502723){if(!_0x23c087['tagName']&&!_0x23c087['className'])continue;const _0x242a4d=!_0x23c087['tagName']||_0x122238['name']===_0x23c087['tagName'],_0xe4a6ce=!_0x23c087['className']||_0x122238['hasClass'](_0x23c087['className']);_0x242a4d&&_0xe4a6ce&&_0x3ac86f['set'](_0x23c087,_0x59cef5);}return _0x3ac86f;}function m(_0x374d03){const _0x329f14={};for(let _0x1fab20=0x0;_0x1fab20<_0x374d03['length'];_0x1fab20++){const _0x2aa4da=_0x374d03[_0x1fab20],_0x53963b=_0x374d03['getPropertyValue'](_0x2aa4da);'initial'!==_0x53963b&&(_0x329f14[_0x2aa4da]=_0x53963b);}return _0x329f14;}function w(_0x45694a){const _0x271fe1=_0x45694a['split'](',')['map'](_0xe6450c=>_0xe6450c['trim']()),_0x179dd5=[];for(const _0x8e1c4d of _0x271fe1){const _0x4279ce=l['exec'](_0x8e1c4d);_0x4279ce&&_0x179dd5['push'](_0x4279ce['groups']);}return _0x179dd5;}function y(_0x5b41e1){const _0x4ef309={};for(const _0x17b7a4 of _0x5b41e1)Object['assign'](_0x4ef309,_0x17b7a4);return _0x4ef309;}var g=class extends _0x183bbe{execute(_0x19769a){const {styles:_0x6f287e,stylesString:_0x2b6d4c}=_0x19769a['extraContent'],_0x471e05=new _0x1a490a(_0x19769a['content']['document']),_0x5712f4=_0x471e05['createRangeIn'](_0x19769a['content']),_0x3699b7=function(_0x903508){const _0x5940ed=new Map();for(const _0x599c5e in _0x903508){const _0xae2bd1=w(_0x599c5e),_0x517686=_0x903508[_0x599c5e];for(const _0x5eed60 of _0xae2bd1)_0x5940ed['set'](_0x5eed60,_0x517686);}return _0x5940ed;}(function(_0x584be6){const _0x5e6bfa={};for(const _0xf1a222 of _0x584be6)for(const _0x2f6aeb of _0xf1a222['cssRules'])if(_0x2f6aeb instanceof CSSStyleRule){const _0x3ac11e=m(_0x2f6aeb['style']);_0x5e6bfa[_0x2f6aeb['selectorText']]=Object['assign']({},_0x5e6bfa[_0x2f6aeb['selectorText']]||{},_0x3ac11e);}return _0x5e6bfa;}(_0x6f287e)),_0x728e93=function(_0x43e5e8){const _0x4d26e7={},_0x54648f=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x5a43dd=/\.(?<className>[\w-]+)/g;let _0x369d0d;for(;null!==(_0x369d0d=_0x54648f['exec'](_0x43e5e8));){const {selector:_0x47bdbe,color:_0x6742eb,patternType:_0x40d342}=_0x369d0d['groups'];if('auto'!==_0x6742eb['toLowerCase']()&&'none'!==_0x40d342['toLowerCase']()&&'auto'!==_0x40d342['toLowerCase']()){for(const _0x49fe66 of _0x47bdbe['matchAll'](_0x5a43dd))_0x4d26e7[_0x49fe66['groups']['className']]=_0x6742eb;}}return _0x4d26e7;}(_0x2b6d4c);for(const _0x39f66a of _0x5712f4){if('elementStart'!==_0x39f66a['type'])continue;const _0x53a590=_0x39f66a['item'],_0x200c91=d(_0x53a590,_0x3699b7),_0x936d9d=_0x200c91['size']?y(Array['from'](_0x200c91['values']())):{};if(!('background-color'in _0x936d9d)&&!('background'in _0x936d9d)){for(const [_0x3f3743,_0x4a025f]of Object['entries'](_0x728e93))if(_0x53a590['hasClass'](_0x3f3743)){_0x936d9d['background-color']=_0x4a025f;break;}}for(const _0x51eddb in _0x936d9d)_0x53a590['hasStyle'](_0x51eddb)||_0x471e05['setStyle'](_0x51eddb,_0x936d9d[_0x51eddb],_0x53a590);}}isActive(_0x3f8942){return super['isActive'](_0x3f8942)||u(_0x3f8942);}},p=class extends _0xe14af8{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3f1b88];}init(){const _0x4613fe=this['editor'],_0x15efaa=_0x4613fe['plugins']['get']('PasteFromOffice'),_0x58b9fd=_0x4613fe['editing']['view']['document'],_0x190226=new g(_0x58b9fd);_0x15efaa['registerNormalizer'](_0x190226,_0x3e17da['high']+0xb);}afterInit(){!async function(_0xd619c5){const _0xcafce4='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x1db114=0x79140,_0x40c687=window['Date']['now'](),_0x64acea=_0xd619c5['editor'],_0x3b9ba4=new window['Promise'](_0x37bbd1=>{_0x64acea['once']('ready',_0x37bbd1);}),_0x3b3658={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x406b54=_0x64acea['config']['get']('licenseKey');async function _0x423cff(){let _0x302bab,_0x484d0e=null,_0x14a91c=null;try{return'GPL'==_0x406b54?'NotAllowed':(_0x302bab=_0x45e4ff(),_0x302bab?(_0x302bab['usageEndpoint']&&(_0x14a91c=_0x52ac29(_0x302bab['usageEndpoint'],_0x302bab['jti'])),await _0x34f035()?_0x4ed384()?_0x1cc53c()?'Expired':_0x2cb15a()?('evaluation'==_0x302bab['licenseType']&&(_0x484d0e=_0x1dfa6c('EvaluationLimit')),await _0x1ae1e7()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1cc53c(){const _0x39c9a3=['evaluation','trial']['includes'](_0x302bab['licenseType'])?_0x40c687/0x3e8:0xe10*_0x1db114;return _0x302bab['exp']<_0x39c9a3;}function _0x4ed384(){const _0x1acdc0=_0x302bab['features'];return!!_0x1acdc0&&(!!_0x1acdc0['includes']('*')||(!!_0x1acdc0['includes']('POE')||(!!_0x1acdc0['includes']('PP')||!(!_0x1acdc0['includes']('TRILIUM')||!_0x3bf7f3()))));}function _0x2cb15a(){const _0x3254ac=_0x302bab['licensedHosts'];if(!_0x3254ac||0x0==_0x3254ac['length'])return!0x0;const {hostname:_0x4097ae}=new URL(window['location']['href']);if(_0x3254ac['includes'](_0x4097ae))return!0x0;const _0x52b34e=_0x4097ae['split']('.');return _0x3254ac['filter'](_0x595c24=>_0x595c24['includes']('*'))['map'](_0x33e4ed=>_0x33e4ed['split']('.'))['filter'](_0x5555e8=>_0x5555e8['length']<=_0x52b34e['length'])['map'](_0x553e9f=>Array(_0x52b34e['length']-_0x553e9f['length'])['fill']('*'===_0x553e9f[0x0]?'*':'')['concat'](_0x553e9f))['some'](_0x218679=>_0x52b34e['every']((_0x22609a,_0x476732)=>_0x218679[_0x476732]===_0x22609a||'*'===_0x218679[_0x476732]));}function _0x1ae1e7(){return _0x484d0e&&_0x14a91c?new window['Promise']((_0x359764,_0x46ec69)=>{_0x484d0e['then'](_0x359764,_0x46ec69),_0x14a91c['then'](_0x391004=>{'Valid'!=_0x391004&&_0x359764(_0x391004);},_0x46ec69);}):_0x484d0e||_0x14a91c||'Valid';}}function _0x52ac29(_0x238017,_0x59f524){return new window['Promise'](_0x3f78bb=>{if(_0x4ce01e())return _0x3f78bb('Valid');_0x4e6fff(),_0x64acea['decorate']('_sendUsageRequest');let _0x2ac76c=!0x1;const _0x260cf5=_0x52d937();function _0x44e3b5(_0x50767f){return!!_0x50767f&&('object'==typeof _0x50767f||'function'==typeof _0x50767f)&&'function'==typeof _0x50767f['then']&&'function'==typeof _0x50767f['catch'];}function _0xeb33db(_0x3e7bb0){_0x3393a4(_0x3e7bb0)['then'](_0x45c3ce=>_0x45c3ce&&'ok'==_0x45c3ce['status']?_0x1d0944(_0x31abbc(_0x260cf5+_0x59f524))!=_0x45c3ce['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x16e139=>(_0x3bdd05(),_0x16e139),()=>{const _0x5189b9=_0x5b826d();return null==_0x5189b9?(_0x3bdd05(),'Valid'):_0x40c687-_0x5189b9>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3f78bb)['catch'](()=>{_0x3f78bb('UsageLimit');});const _0x17c746=0x36ee80;function _0x3bdd05(){const _0xa34360='llct-'+_0x1d0944(_0x31abbc(_0x238017)),_0x1f8db0=_0x5b6f43(_0x1d0944(window['Math']['ceil'](_0x40c687/_0x17c746)));window['localStorage']['setItem'](_0xa34360,_0x1f8db0);}function _0x5b826d(){const _0x4bce89='llct-'+_0x1d0944(_0x31abbc(_0x238017)),_0x44c605=window['localStorage']['getItem'](_0x4bce89);return _0x44c605?window['parseInt'](_0x5b6f43(_0x44c605),0x10)*_0x17c746:null;}function _0x3393a4(_0x17f144){return new window['Promise']((_0x3ff2f4,_0x2bdaaf)=>{_0x17f144['then'](_0x3ff2f4,_0x2bdaaf),window['setTimeout'](_0x2bdaaf,0x1d4c0);});}}_0x64acea['on']('_sendUsageRequest',(_0xd3fee7,_0x53ea2d)=>{if(_0x53ea2d[0x0]!=_0x238017)return _0x3f78bb('UsageLimit');_0x53ea2d[0x1]={..._0x53ea2d[0x1],'requestId':_0x260cf5};},{'priority':'high'}),_0x64acea['on']('_sendUsageRequest',_0x22dd27=>{_0x44e3b5(_0x22dd27['return'])&&(_0x2ac76c=!0x0,_0xeb33db(_0x22dd27['return']));},{'priority':'low'}),_0x3b9ba4['then'](()=>{_0x2ac76c||_0x3f78bb('UsageLimit');});});function _0x4ce01e(){return'auto'==_0x64acea['editing']['view']['_overlayModeHint'];}function _0x4e6fff(){_0x64acea['editing']['view']['_overlayModeHint']='auto';}}function _0x1dfa6c(_0x5c8eda){const _0x452b75=[new window['Promise'](_0x26ca19=>setTimeout(_0x26ca19,0x93ecc)),_0x3b9ba4['then'](()=>new window['Promise'](_0x5b5f6a=>{let _0x40c2f3=0x0;_0x64acea['model']['on']('applyOperation',(_0x401d04,_0x5b57a8)=>{_0x5b57a8[0x0]['isDocumentOperation']&&_0x40c2f3++,0x5e8==_0x40c2f3&&(_0x5b5f6a(),_0x401d04['off']());});}))];return window['Promise']['race'](_0x452b75)['then'](()=>_0x5c8eda);}async function _0xfb1d2f(){await _0x3b9ba4,_0x64acea['model']['change']=_0x37d281,_0x64acea['model']['enqueueChange']=_0x37d281,_0x64acea['enableReadOnlyMode']('model');}function _0x3bf7f3(){return window['glob']&&window['glob']['triliumVersion'];}function _0xbdbe56(_0x1d997e){const _0x43a32c=_0x2469a5();_0x64acea[_0x43a32c]='pasteFromOfficeEnhancedLicenseKey'+_0x1d997e,'Valid'!=_0x1d997e&&_0xfb1d2f();}function _0x2469a5(){const _0x53f16b=window['String'](window['performance']['now']())['replace']('.','');let _0x335997='s';for(let _0x340888=0x0;_0x340888<_0x53f16b['length'];_0x340888+=0x2){let _0xc54969=window['parseInt'](_0x53f16b['substring'](_0x340888,_0x340888+0x2));_0xc54969>=0x3e&&(_0xc54969-=0x3e),_0x335997+=_0xcafce4[_0xc54969];}return _0x335997;}function _0x45e4ff(){const _0x54335a=_0x406b54['split']('.');if(0x3!=_0x54335a['length'])return null;return _0x3533c2(_0x54335a[0x1]);function _0x3533c2(_0x537f4e){const _0x1062d4=_0x41a4cd(_0x537f4e);return _0x1062d4&&_0xca750e()?_0x1062d4:null;function _0xca750e(){const _0x3bf922=_0x1062d4['jti'],_0x56d382=window['parseInt'](_0x3bf922['substring'](_0x3bf922['length']-0x8),0x10),_0x4a9ceb={..._0x1062d4,'jti':_0x3bf922['substring'](0x0,_0x3bf922['length']-0x8)};return delete _0x4a9ceb['vc'],_0x31abbc(_0x4a9ceb)==_0x56d382;}}}async function _0x34f035(){let _0x282759=!0x0;try{const [_0x535aab,_0x4d0fed,_0x3f5829]=_0x406b54['split']('.');return _0x38170c(_0x535aab),await _0xcca742(_0x535aab,_0x4d0fed,_0x3f5829),_0x282759;}catch{return!0x1;}function _0x38170c(_0x12ffca){const _0x37e33a=_0x41a4cd(_0x12ffca);_0x37e33a&&'ES256'==_0x37e33a['alg']||(_0x282759=!0x1);}async function _0xcca742(_0xcb4595,_0x1af4d6,_0x20e0fe){const _0x411ac8=window['Uint8Array']['from'](_0x3d9ede(_0x20e0fe),_0xb82984=>_0xb82984['charCodeAt'](0x0)),_0x2410c6=new window['TextEncoder']()['encode'](_0xcb4595+'.'+_0x1af4d6),_0x255d4e=window['crypto']['subtle'];if(!_0x255d4e)return;const _0x300e77=await _0x255d4e['importKey']('jwk',_0x3b3658,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x255d4e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x300e77,_0x411ac8,_0x2410c6)||(_0x282759=!0x1);}}function _0x41a4cd(_0x2e1e6d){return _0x2e1e6d['startsWith']('ey')?JSON['parse'](_0x3d9ede(_0x2e1e6d)):null;}function _0x3d9ede(_0x444d11){return window['atob'](_0x444d11['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x31abbc(_0x16a0d5){let _0x107740=0x1505;function _0x37b636(_0x65123d){for(let _0x45ef44=0x0;_0x45ef44<_0x65123d['length'];_0x45ef44++){const _0x128b44=_0x65123d['charCodeAt'](_0x45ef44);_0x107740=(_0x107740<<0x5)+_0x107740+_0x128b44,_0x107740&=_0x107740;}}function _0x30a7c6(_0x276865){Array['isArray'](_0x276865)?_0x276865['forEach'](_0x30a7c6):_0x276865&&'object'==typeof _0x276865?Object['entries'](_0x276865)['sort']()['forEach'](([_0x3c6ceb,_0xf2b7])=>{_0x37b636(_0x3c6ceb),_0x30a7c6(_0xf2b7);}):_0x37b636(window['String'](_0x276865));}return _0x30a7c6(_0x16a0d5),_0x107740>>>0x0;}function _0x1d0944(_0x217757){return _0x217757['toString'](0x10)['padStart'](0x8,'0');}function _0x5b6f43(_0x131626){return _0x131626['split']('')['reverse']()['join']('');}function _0x37d281(){}_0xbdbe56(await _0x423cff());}(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'],[_0x17c7aa=>Number(_0x17c7aa)>=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(_0x5c492e){return h['includes'](_0x5c492e);}function v(_0x3ab64b){return Array['from'](_0x3ab64b['getStyleNames']())['filter'](E);}function F(_0x32dac8,_0x2cbc80,_0x400b06){const {spanStyles:_0xe66d1d,stylesToBeHtmlElements:_0x6ed439}=K(_0x32dac8,_0x400b06);!function(_0xdf03f8,_0x37e423,_0x45d782){for(const _0x31d42b in _0x45d782)_0x45d782[_0x31d42b]['forEach'](([,_0x2778b0])=>{const _0x2b25d7=_0x37e423['createElement'](_0x2778b0,[],_0xdf03f8['getChildren']());_0x37e423['insertChild'](0x0,_0x2b25d7,_0xdf03f8);}),_0x37e423['removeStyle'](_0x31d42b,_0xdf03f8);}(_0x32dac8,_0x2cbc80,_0x6ed439),function(_0x225482,_0x40cc1c,_0x598244){if(!Object['keys'](_0x598244)['length'])return;const _0x336439=_0x40cc1c['createElement']('span',[],_0x225482['getChildren']());_0x40cc1c['setStyle'](_0x598244,_0x336439),_0x40cc1c['insertChild'](0x0,_0x336439,_0x225482),_0x40cc1c['removeStyle'](Object['keys'](_0x598244),_0x225482);}(_0x32dac8,_0x2cbc80,_0xe66d1d);}function P(_0x2343a2,_0x2032a7,_0x5f27ec){const {spanStyles:_0x1837ce}=K(_0x2343a2,_0x5f27ec),_0x3e17dd=Object['keys'](_0x1837ce);if(!_0x3e17dd['length'])return;let _0x5b3fe1=!0x1;for(const _0x5edc30 of _0x2343a2['getChildren']())if(_0x5edc30['is']('element','span')){_0x5b3fe1=!0x0;for(const [_0x650d56,_0x5e66a7]of Object['entries'](_0x1837ce))_0x5edc30['hasStyle'](_0x650d56)||_0x2032a7['setStyle']({[_0x650d56]:_0x5e66a7},_0x5edc30);}_0x5b3fe1&&_0x2032a7['removeStyle'](_0x3e17dd,_0x2343a2);}function K(_0x1e2656,_0xf09578){const _0x468ff2={},_0xf7d311={};return _0xf09578['forEach'](_0x20ec05=>{const _0x5d32ad=_0x1e2656['getStyle'](_0x20ec05);if(_0x5d32ad){if(function(_0x4925a5){return O['includes'](_0x4925a5);}(_0x20ec05))_0x468ff2[_0x20ec05]=_0x5d32ad;else{if(function(_0x623f98){return _0x623f98 in L;}(_0x20ec05)){const _0x109a74=_0x5d32ad['split']('\x20');L[_0x20ec05]['forEach'](([_0x2172e4,_0x59d817])=>{for(const _0x45995c of _0x109a74)('function'==typeof _0x2172e4&&_0x2172e4(_0x45995c)||_0x2172e4===_0x45995c)&&(_0xf7d311[_0x20ec05]=[..._0xf7d311[_0x20ec05]||[],[_0x2172e4,_0x59d817]]);});}}}}),{'spanStyles':_0x468ff2,'stylesToBeHtmlElements':_0xf7d311};}var b=class extends _0x183bbe{execute(_0xadc5df){const _0x47d0e0=new _0x1a490a(_0xadc5df['content']['document']),_0xa31f6b=_0x47d0e0['createRangeIn'](_0xadc5df['content']),_0x3e6ad7=[...new _0x9eb54a(new _0xa0eabd(_0x47d0e0['document']['stylesProcessor']))['blockElements'],'font'],_0x4eca1b=_0xa31f6b['getItems']();for(const _0x3caec7 of _0x4eca1b)if(_0x3caec7['is']('element')&&_0x3e6ad7['includes'](_0x3caec7['name'])){if(_0x3caec7['hasStyle']('mso-list')&&'none'!==_0x3caec7['getStyle']('mso-list')){P(_0x3caec7,_0x47d0e0,v(_0x3caec7));continue;}F(_0x3caec7,_0x47d0e0,v(_0x3caec7));}}isActive(_0x233989){return super['isActive'](_0x233989)||u(_0x233989);}},x=class extends _0xe14af8{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3f1b88];}init(){const _0x15aafc=this['editor'],_0x42fd7c=_0x15aafc['plugins']['get']('PasteFromOffice'),_0x310c2c=_0x15aafc['editing']['view']['document'],_0xfc9900=new b(_0x310c2c);_0x42fd7c['registerNormalizer'](_0xfc9900,_0x3e17da['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x22bc31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x235700;for(const _0x16a294 in _0x22bc31){const _0x7ca083=_0x16a294,_0x28f6d2=_0x22bc31[_0x7ca083];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x28f6d2){delete _0x22bc31[_0x7ca083],_0x235700=_0x28f6d2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x235700&&_0x22bc31['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x235700&&_0x22bc31['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x235700&&_0x22bc31['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x235700&&_0x22bc31['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x235700&&_0x22bc31['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x235700&&_0x22bc31['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0xe14af8{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3f1b88,p,x];}};export{k as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x2e908f}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x318797,PasteFromOfficeMSWordNormalizer as _0x4ba51e}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x51ae5c,uid as _0xffba1d}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x30a503,ViewDomConverter as _0x5cc413,ViewUpcastWriter as _0xb08bc3}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x1de449){return f['test'](_0x1de449);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x61eec7,_0x19cabf){const _0x5cbeeb=new Map();for(const [_0x263a02,_0x45db10]of _0x19cabf){if(!_0x263a02['tagName']&&!_0x263a02['className'])continue;const _0xb10a52=!_0x263a02['tagName']||_0x61eec7['name']===_0x263a02['tagName'],_0x2d6a8=!_0x263a02['className']||_0x61eec7['hasClass'](_0x263a02['className']);_0xb10a52&&_0x2d6a8&&_0x5cbeeb['set'](_0x263a02,_0x45db10);}return _0x5cbeeb;}function m(_0x4c4ca0){const _0x4cf6a6={};for(let _0x1fc929=0x0;_0x1fc929<_0x4c4ca0['length'];_0x1fc929++){const _0x2629dd=_0x4c4ca0[_0x1fc929],_0x4d6140=_0x4c4ca0['getPropertyValue'](_0x2629dd);'initial'!==_0x4d6140&&(_0x4cf6a6[_0x2629dd]=_0x4d6140);}return _0x4cf6a6;}function w(_0x34a9a2){const _0x8a4c6c=_0x34a9a2['split'](',')['map'](_0x39d54a=>_0x39d54a['trim']()),_0x216042=[];for(const _0x63f6ed of _0x8a4c6c){const _0x1f29a5=l['exec'](_0x63f6ed);_0x1f29a5&&_0x216042['push'](_0x1f29a5['groups']);}return _0x216042;}function y(_0x3aeedc){const _0x4f8d31={};for(const _0x120978 of _0x3aeedc)Object['assign'](_0x4f8d31,_0x120978);return _0x4f8d31;}var g=class extends _0x4ba51e{execute(_0x50ed46){const {styles:_0x463526,stylesString:_0x4d4257}=_0x50ed46['extraContent'],_0x9045d5=new _0xb08bc3(_0x50ed46['content']['document']),_0x32c616=_0x9045d5['createRangeIn'](_0x50ed46['content']),_0x2f8cc3=function(_0x483aea){const _0x409ca2=new Map();for(const _0x210a52 in _0x483aea){const _0x4519b5=w(_0x210a52),_0x53a61f=_0x483aea[_0x210a52];for(const _0x404fbe of _0x4519b5)_0x409ca2['set'](_0x404fbe,_0x53a61f);}return _0x409ca2;}(function(_0xa96e0){const _0x11f8bc={};for(const _0x3370db of _0xa96e0)for(const _0x1b0824 of _0x3370db['cssRules'])if(_0x1b0824 instanceof CSSStyleRule){const _0x59b016=m(_0x1b0824['style']);_0x11f8bc[_0x1b0824['selectorText']]=Object['assign']({},_0x11f8bc[_0x1b0824['selectorText']]||{},_0x59b016);}return _0x11f8bc;}(_0x463526)),_0x303574=function(_0x2491b9){const _0x352ddf={},_0x9e88f=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x5d8dd7=/\.(?<className>[\w-]+)/g;let _0x239a51;for(;null!==(_0x239a51=_0x9e88f['exec'](_0x2491b9));){const {selector:_0x40509c,color:_0x163e84,patternType:_0x508621}=_0x239a51['groups'];if('auto'!==_0x163e84['toLowerCase']()&&'none'!==_0x508621['toLowerCase']()&&'auto'!==_0x508621['toLowerCase']()){for(const _0x3780ab of _0x40509c['matchAll'](_0x5d8dd7))_0x352ddf[_0x3780ab['groups']['className']]=_0x163e84;}}return _0x352ddf;}(_0x4d4257);for(const _0x35f651 of _0x32c616){if('elementStart'!==_0x35f651['type'])continue;const _0x462991=_0x35f651['item'],_0x16e81c=d(_0x462991,_0x2f8cc3),_0x2756f8=_0x16e81c['size']?y(Array['from'](_0x16e81c['values']())):{};if(!('background-color'in _0x2756f8)&&!('background'in _0x2756f8)){for(const [_0x371eac,_0x2d6802]of Object['entries'](_0x303574))if(_0x462991['hasClass'](_0x371eac)){_0x2756f8['background-color']=_0x2d6802;break;}}for(const _0x44a6f3 in _0x2756f8)_0x462991['hasStyle'](_0x44a6f3)||_0x9045d5['setStyle'](_0x44a6f3,_0x2756f8[_0x44a6f3],_0x462991);}}isActive(_0x53cff8){return super['isActive'](_0x53cff8)||u(_0x53cff8);}},p=class extends _0x2e908f{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x318797];}init(){const _0x19f066=this['editor'],_0x3e7a08=_0x19f066['plugins']['get']('PasteFromOffice'),_0x4c129c=_0x19f066['editing']['view']['document'],_0x5a4df4=new g(_0x4c129c);_0x3e7a08['registerNormalizer'](_0x5a4df4,_0x51ae5c['high']+0xb);}afterInit(){!async function(_0x34f9d7){const _0x685ec0='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x32f9ee=0x79170,_0x3cbfd6=window['Date']['now'](),_0x40d3e0=_0x34f9d7['editor'],_0x386bc2=new window['Promise'](_0x33f126=>{_0x40d3e0['once']('ready',_0x33f126);}),_0x4909af={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x535c77=_0x40d3e0['config']['get']('licenseKey');async function _0xf2b281(){let _0x19d314,_0x193b49=null,_0xf3f1f0=null;try{return'GPL'==_0x535c77?'NotAllowed':(_0x19d314=_0x306d80(),_0x19d314?(_0x19d314['usageEndpoint']&&(_0xf3f1f0=_0x63306(_0x19d314['usageEndpoint'],_0x19d314['jti'])),await _0x2ca8ad()?_0x26e7f7()?_0x40b98b()?'Expired':_0x334a84()?('evaluation'==_0x19d314['licenseType']&&(_0x193b49=_0x5db2de('EvaluationLimit')),await _0x14e78d()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x40b98b(){const _0x245b98=['evaluation','trial']['includes'](_0x19d314['licenseType'])?_0x3cbfd6/0x3e8:0xe10*_0x32f9ee;return _0x19d314['exp']<_0x245b98;}function _0x26e7f7(){const _0x3b95b0=_0x19d314['features'];return!!_0x3b95b0&&(!!_0x3b95b0['includes']('*')||(!!_0x3b95b0['includes']('POE')||(!!_0x3b95b0['includes']('PP')||!(!_0x3b95b0['includes']('TRILIUM')||!_0x5a3a52()))));}function _0x334a84(){const _0xaa0271=_0x19d314['licensedHosts'];if(!_0xaa0271||0x0==_0xaa0271['length'])return!0x0;const {hostname:_0x3ce317}=new URL(window['location']['href']);if(_0xaa0271['includes'](_0x3ce317))return!0x0;const _0x1ca01d=_0x3ce317['split']('.');return _0xaa0271['filter'](_0x23026d=>_0x23026d['includes']('*'))['map'](_0x75d2e5=>_0x75d2e5['split']('.'))['filter'](_0x4b3c2b=>_0x4b3c2b['length']<=_0x1ca01d['length'])['map'](_0x37f85c=>Array(_0x1ca01d['length']-_0x37f85c['length'])['fill']('*'===_0x37f85c[0x0]?'*':'')['concat'](_0x37f85c))['some'](_0x220f65=>_0x1ca01d['every']((_0x2ca57f,_0x70deae)=>_0x220f65[_0x70deae]===_0x2ca57f||'*'===_0x220f65[_0x70deae]));}function _0x14e78d(){return _0x193b49&&_0xf3f1f0?new window['Promise']((_0xc52f29,_0x519736)=>{_0x193b49['then'](_0xc52f29,_0x519736),_0xf3f1f0['then'](_0x23a9ff=>{'Valid'!=_0x23a9ff&&_0xc52f29(_0x23a9ff);},_0x519736);}):_0x193b49||_0xf3f1f0||'Valid';}}function _0x63306(_0x4c7de2,_0x4060b2){return new window['Promise'](_0x5659f8=>{if(_0x4abeb2())return _0x5659f8('Valid');_0x4a075c(),_0x40d3e0['decorate']('_sendUsageRequest');let _0x263c50=!0x1;const _0x4b105c=_0xffba1d();function _0x14b217(_0x3bedec){return!!_0x3bedec&&('object'==typeof _0x3bedec||'function'==typeof _0x3bedec)&&'function'==typeof _0x3bedec['then']&&'function'==typeof _0x3bedec['catch'];}function _0x3f7a25(_0xa37437){_0x39eca9(_0xa37437)['then'](_0x35da8e=>_0x35da8e&&'ok'==_0x35da8e['status']?_0x971c57(_0x1e2527(_0x4b105c+_0x4060b2))!=_0x35da8e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x9e4a10=>(_0x567028(),_0x9e4a10),()=>{const _0x18a8d2=_0x3ebc26();return null==_0x18a8d2?(_0x567028(),'Valid'):_0x3cbfd6-_0x18a8d2>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5659f8)['catch'](()=>{_0x5659f8('UsageLimit');});const _0x108721=0x36ee80;function _0x567028(){const _0x3c4915='llct-'+_0x971c57(_0x1e2527(_0x4c7de2)),_0x2b3b3e=_0x2bb660(_0x971c57(window['Math']['ceil'](_0x3cbfd6/_0x108721)));window['localStorage']['setItem'](_0x3c4915,_0x2b3b3e);}function _0x3ebc26(){const _0x15bbb1='llct-'+_0x971c57(_0x1e2527(_0x4c7de2)),_0x8444ed=window['localStorage']['getItem'](_0x15bbb1);return _0x8444ed?window['parseInt'](_0x2bb660(_0x8444ed),0x10)*_0x108721:null;}function _0x39eca9(_0xf09805){return new window['Promise']((_0x6d4218,_0x47aa1a)=>{_0xf09805['then'](_0x6d4218,_0x47aa1a),window['setTimeout'](_0x47aa1a,0x1d4c0);});}}_0x40d3e0['on']('_sendUsageRequest',(_0xbbdf1e,_0x271d2b)=>{if(_0x271d2b[0x0]!=_0x4c7de2)return _0x5659f8('UsageLimit');_0x271d2b[0x1]={..._0x271d2b[0x1],'requestId':_0x4b105c};},{'priority':'high'}),_0x40d3e0['on']('_sendUsageRequest',_0x4d0e55=>{_0x14b217(_0x4d0e55['return'])&&(_0x263c50=!0x0,_0x3f7a25(_0x4d0e55['return']));},{'priority':'low'}),_0x386bc2['then'](()=>{_0x263c50||_0x5659f8('UsageLimit');});});function _0x4abeb2(){return'auto'==_0x40d3e0['editing']['view']['_overlayModeHint'];}function _0x4a075c(){_0x40d3e0['editing']['view']['_overlayModeHint']='auto';}}function _0x5db2de(_0x2b7ad7){const _0x228b1c=[new window['Promise'](_0x55a230=>setTimeout(_0x55a230,0x93ecc)),_0x386bc2['then'](()=>new window['Promise'](_0x37388b=>{let _0x1fe9df=0x0;_0x40d3e0['model']['on']('applyOperation',(_0x1e7268,_0x4c0cd3)=>{_0x4c0cd3[0x0]['isDocumentOperation']&&_0x1fe9df++,0x5e8==_0x1fe9df&&(_0x37388b(),_0x1e7268['off']());});}))];return window['Promise']['race'](_0x228b1c)['then'](()=>_0x2b7ad7);}async function _0x43e1f6(){await _0x386bc2,_0x40d3e0['model']['change']=_0x447870,_0x40d3e0['model']['enqueueChange']=_0x447870,_0x40d3e0['enableReadOnlyMode']('model');}function _0x5a3a52(){return window['glob']&&window['glob']['triliumVersion'];}function _0x578192(_0x9b7c0a){const _0x553e7c=_0x22f6f6();_0x40d3e0[_0x553e7c]='pasteFromOfficeEnhancedLicenseKey'+_0x9b7c0a,'Valid'!=_0x9b7c0a&&_0x43e1f6();}function _0x22f6f6(){const _0x356eb1=window['String'](window['performance']['now']())['replace']('.','');let _0x3b7790='s';for(let _0x51d917=0x0;_0x51d917<_0x356eb1['length'];_0x51d917+=0x2){let _0x43dc04=window['parseInt'](_0x356eb1['substring'](_0x51d917,_0x51d917+0x2));_0x43dc04>=0x3e&&(_0x43dc04-=0x3e),_0x3b7790+=_0x685ec0[_0x43dc04];}return _0x3b7790;}function _0x306d80(){const _0x221aea=_0x535c77['split']('.');if(0x3!=_0x221aea['length'])return null;return _0x2757d9(_0x221aea[0x1]);function _0x2757d9(_0x3fa46a){const _0x2a91cb=_0xa78e28(_0x3fa46a);return _0x2a91cb&&_0x499162()?_0x2a91cb:null;function _0x499162(){const _0x185e67=_0x2a91cb['jti'],_0x332cde=window['parseInt'](_0x185e67['substring'](_0x185e67['length']-0x8),0x10),_0x550bbd={..._0x2a91cb,'jti':_0x185e67['substring'](0x0,_0x185e67['length']-0x8)};return delete _0x550bbd['vc'],_0x1e2527(_0x550bbd)==_0x332cde;}}}async function _0x2ca8ad(){let _0x1ba000=!0x0;try{const [_0x498ece,_0x8f3e2,_0x4dbfd0]=_0x535c77['split']('.');return _0x442a47(_0x498ece),await _0x3a708e(_0x498ece,_0x8f3e2,_0x4dbfd0),_0x1ba000;}catch{return!0x1;}function _0x442a47(_0x368807){const _0xa987f5=_0xa78e28(_0x368807);_0xa987f5&&'ES256'==_0xa987f5['alg']||(_0x1ba000=!0x1);}async function _0x3a708e(_0x2987ce,_0x1b7cfb,_0x424301){const _0x18309f=window['Uint8Array']['from'](_0xd0154b(_0x424301),_0x50b45c=>_0x50b45c['charCodeAt'](0x0)),_0x3f7cf2=new window['TextEncoder']()['encode'](_0x2987ce+'.'+_0x1b7cfb),_0x533643=window['crypto']['subtle'];if(!_0x533643)return;const _0x53851f=await _0x533643['importKey']('jwk',_0x4909af,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x533643['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x53851f,_0x18309f,_0x3f7cf2)||(_0x1ba000=!0x1);}}function _0xa78e28(_0x32afb5){return _0x32afb5['startsWith']('ey')?JSON['parse'](_0xd0154b(_0x32afb5)):null;}function _0xd0154b(_0xe2ee74){return window['atob'](_0xe2ee74['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1e2527(_0x1cfc9){let _0x3909c0=0x1505;function _0x5ac375(_0x527fa7){for(let _0x27e8ca=0x0;_0x27e8ca<_0x527fa7['length'];_0x27e8ca++){const _0x4390f2=_0x527fa7['charCodeAt'](_0x27e8ca);_0x3909c0=(_0x3909c0<<0x5)+_0x3909c0+_0x4390f2,_0x3909c0&=_0x3909c0;}}function _0x45d73a(_0x374e2e){Array['isArray'](_0x374e2e)?_0x374e2e['forEach'](_0x45d73a):_0x374e2e&&'object'==typeof _0x374e2e?Object['entries'](_0x374e2e)['sort']()['forEach'](([_0x26641f,_0x30a09f])=>{_0x5ac375(_0x26641f),_0x45d73a(_0x30a09f);}):_0x5ac375(window['String'](_0x374e2e));}return _0x45d73a(_0x1cfc9),_0x3909c0>>>0x0;}function _0x971c57(_0x314340){return _0x314340['toString'](0x10)['padStart'](0x8,'0');}function _0x2bb660(_0x490fe1){return _0x490fe1['split']('')['reverse']()['join']('');}function _0x447870(){}_0x578192(await _0xf2b281());}(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'],[_0x57d7f0=>Number(_0x57d7f0)>=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(_0xb3a49f){return h['includes'](_0xb3a49f);}function v(_0x3159c8){return Array['from'](_0x3159c8['getStyleNames']())['filter'](E);}function F(_0x55a466,_0x5558e6,_0x3f545b){const {spanStyles:_0x4b1d92,stylesToBeHtmlElements:_0x469065}=K(_0x55a466,_0x3f545b);!function(_0x3e7da6,_0x4f0fe0,_0x363202){for(const _0xed97cc in _0x363202)_0x363202[_0xed97cc]['forEach'](([,_0x56e891])=>{const _0x9f53da=_0x4f0fe0['createElement'](_0x56e891,[],_0x3e7da6['getChildren']());_0x4f0fe0['insertChild'](0x0,_0x9f53da,_0x3e7da6);}),_0x4f0fe0['removeStyle'](_0xed97cc,_0x3e7da6);}(_0x55a466,_0x5558e6,_0x469065),function(_0x272153,_0x3a5e2a,_0x88a0be){if(!Object['keys'](_0x88a0be)['length'])return;const _0x3708fa=_0x3a5e2a['createElement']('span',[],_0x272153['getChildren']());_0x3a5e2a['setStyle'](_0x88a0be,_0x3708fa),_0x3a5e2a['insertChild'](0x0,_0x3708fa,_0x272153),_0x3a5e2a['removeStyle'](Object['keys'](_0x88a0be),_0x272153);}(_0x55a466,_0x5558e6,_0x4b1d92);}function P(_0x17ffa1,_0x39d29c,_0x57ec65){const {spanStyles:_0x328bbc}=K(_0x17ffa1,_0x57ec65),_0x264333=Object['keys'](_0x328bbc);if(!_0x264333['length'])return;let _0x2e5a93=!0x1;for(const _0x396672 of _0x17ffa1['getChildren']())if(_0x396672['is']('element','span')){_0x2e5a93=!0x0;for(const [_0x461748,_0x296501]of Object['entries'](_0x328bbc))_0x396672['hasStyle'](_0x461748)||_0x39d29c['setStyle']({[_0x461748]:_0x296501},_0x396672);}_0x2e5a93&&_0x39d29c['removeStyle'](_0x264333,_0x17ffa1);}function K(_0x59b31b,_0x3f2566){const _0x356419={},_0x17014c={};return _0x3f2566['forEach'](_0x30d6e0=>{const _0x98aebc=_0x59b31b['getStyle'](_0x30d6e0);if(_0x98aebc){if(function(_0x2a24a2){return O['includes'](_0x2a24a2);}(_0x30d6e0))_0x356419[_0x30d6e0]=_0x98aebc;else{if(function(_0x4078bf){return _0x4078bf in L;}(_0x30d6e0)){const _0x315d2a=_0x98aebc['split']('\x20');L[_0x30d6e0]['forEach'](([_0x40ef23,_0x5d1add])=>{for(const _0x9e1d2c of _0x315d2a)('function'==typeof _0x40ef23&&_0x40ef23(_0x9e1d2c)||_0x40ef23===_0x9e1d2c)&&(_0x17014c[_0x30d6e0]=[..._0x17014c[_0x30d6e0]||[],[_0x40ef23,_0x5d1add]]);});}}}}),{'spanStyles':_0x356419,'stylesToBeHtmlElements':_0x17014c};}var b=class extends _0x4ba51e{execute(_0x5b013f){const _0xf6c693=new _0xb08bc3(_0x5b013f['content']['document']),_0x4d546e=_0xf6c693['createRangeIn'](_0x5b013f['content']),_0x3fc245=[...new _0x5cc413(new _0x30a503(_0xf6c693['document']['stylesProcessor']))['blockElements'],'font'],_0x1046ee=_0x4d546e['getItems']();for(const _0x42aa48 of _0x1046ee)if(_0x42aa48['is']('element')&&_0x3fc245['includes'](_0x42aa48['name'])){if(_0x42aa48['hasStyle']('mso-list')&&'none'!==_0x42aa48['getStyle']('mso-list')){P(_0x42aa48,_0xf6c693,v(_0x42aa48));continue;}F(_0x42aa48,_0xf6c693,v(_0x42aa48));}}isActive(_0x4eed21){return super['isActive'](_0x4eed21)||u(_0x4eed21);}},x=class extends _0x2e908f{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x318797];}init(){const _0x25cb03=this['editor'],_0x20ecad=_0x25cb03['plugins']['get']('PasteFromOffice'),_0x57c6e2=_0x25cb03['editing']['view']['document'],_0x4898a5=new b(_0x57c6e2);_0x20ecad['registerNormalizer'](_0x4898a5,_0x51ae5c['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x47d7b3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x417258;for(const _0x1784e7 in _0x47d7b3){const _0x2b63d0=_0x1784e7,_0x120eb9=_0x47d7b3[_0x2b63d0];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x120eb9||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x120eb9||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x120eb9||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x120eb9||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x120eb9||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x120eb9||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x120eb9){delete _0x47d7b3[_0x2b63d0],_0x417258=_0x120eb9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x417258&&_0x47d7b3['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x417258&&_0x47d7b3['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x417258&&_0x47d7b3['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x417258&&_0x47d7b3['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x417258&&_0x47d7b3['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x417258&&_0x47d7b3['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x2e908f{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x318797,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.4.0-alpha.
|
|
3
|
+
"version": "48.4.0-alpha.3",
|
|
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.4.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.4.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.4.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.4.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.4.0-alpha.3",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.4.0-alpha.3",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.4.0-alpha.3",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.3",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.4.0-alpha.3"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|