@syncfusion/ej2-base 25.1.35 → 25.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ### Common
6
+
7
+ #### Bug Fixes
8
+
9
+ - `#I570682` - Changed deprecated event `unload` to `pagehide`.
10
+
5
11
  ## 23.2.6 (2023-11-28)
6
12
 
7
13
  ### Common
@@ -1,2 +1,2 @@
1
1
  #! /usr/bin/env node
2
- 'use strict';var _0x127c23=_0x3fb8;(function(_0x3ccc02,_0x1918ed){var _0x5e8091=_0x3fb8,_0x2a5ede=_0x3ccc02();while(!![]){try{var _0x52f8ae=-parseInt(_0x5e8091(0x160))/0x1*(parseInt(_0x5e8091(0x145))/0x2)+parseInt(_0x5e8091(0x163))/0x3+parseInt(_0x5e8091(0x14d))/0x4+-parseInt(_0x5e8091(0x144))/0x5*(-parseInt(_0x5e8091(0x14a))/0x6)+parseInt(_0x5e8091(0x161))/0x7+parseInt(_0x5e8091(0x155))/0x8+-parseInt(_0x5e8091(0x151))/0x9;if(_0x52f8ae===_0x1918ed)break;else _0x2a5ede['push'](_0x2a5ede['shift']());}catch(_0x253bc3){_0x2a5ede['push'](_0x2a5ede['shift']());}}}(_0x5acc,0xbb0a4));var fs=global['fs']=global['fs']||require('fs');function _0x3fb8(_0x3ddfb7,_0x3dc381){var _0x5acc73=_0x5acc();return _0x3fb8=function(_0x3fb8d1,_0x2ac6ca){_0x3fb8d1=_0x3fb8d1-0x144;var _0x1f94b3=_0x5acc73[_0x3fb8d1];return _0x1f94b3;},_0x3fb8(_0x3ddfb7,_0x3dc381);}const args=process[_0x127c23(0x153)][_0x127c23(0x165)](0x2),isActivate=args[0x0]==_0x127c23(0x168),customPath=args[0x1],envKey=process[_0x127c23(0x157)]['SYNCFUSION_LICENSE'];if(isActivate){var licKey='';if(fs[_0x127c23(0x167)](_0x127c23(0x16a)))licKey=fs[_0x127c23(0x166)]('./syncfusion-license.txt',_0x127c23(0x164));else{if(envKey)licKey=envKey;else customPath&&fs[_0x127c23(0x167)](customPath)&&(licKey=fs[_0x127c23(0x166)](customPath,'UTF8'));}if(licKey!=''){var licKeySplit=licKey['split'](';'),pkey=[0x530000,0x790000,0x4e0000,0x630000,0x460000,0x750000,0x530000,0x690000,0x4f0000,0x6e0000,0x400000,0x440000,0x650000,0x760000,0x500000,0x6c0000,0x610000,0x740000,0x460000,0x6f0000,0x720000,0x6d0000],decryptedStr=[],resultArray=[];for(var i=0x0;i<licKeySplit['length'];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0x127c23(0x149)];i++,k++){k===pkey['length']&&(k=0x0);var c=decodeStr[_0x127c23(0x169)](i);buffr+=String['fromCharCode'](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x127c23(0x146)](';');if(decryptedStr[_0x127c23(0x149)]>0x3){resultArray[_0x127c23(0x15f)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0]['currentPlatform']+';'+resultArray[0x0]['version']+';'+resultArray[0x0][_0x127c23(0x154)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=['./node_modules/@syncfusion/ej2-base/src/validate-lic.js',_0x127c23(0x15e),_0x127c23(0x14e),_0x127c23(0x14c)];for(var n=0x0;n<jsFiles[_0x127c23(0x149)];n++){if(fs[_0x127c23(0x167)](jsFiles[n])){var content=fs[_0x127c23(0x166)](jsFiles[n],_0x127c23(0x164)),regex=jsFiles[n]===_0x127c23(0x14c)?/npxKeyReplace[^"]*/:/npxKeyReplace[^']*/;content=content['replace'](regex,_0x127c23(0x148)+encryptedKey),fs[_0x127c23(0x15c)](jsFiles[n],content);}}console[_0x127c23(0x16b)](_0x127c23(0x14b));}else console[_0x127c23(0x16b)](_0x127c23(0x15d));}}else console[_0x127c23(0x16b)]('Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE');}else console[_0x127c23(0x16b)](_0x127c23(0x162));function getEncryptedKey(_0x2bf8bf){var _0x298f4a=_0x127c23,_0xe65497='',_0x5b4b1c=[],_0x2dbdfc=[],_0x16b6ec=new Array();for(var _0x57ae58=0x0;_0x57ae58<_0x2bf8bf[_0x298f4a(0x149)];_0x57ae58++){_0x5b4b1c[_0x57ae58]=_0x2bf8bf[_0x57ae58][_0x298f4a(0x169)](0x0);}for(var _0x284a14=0x0,_0x125103=0x41;_0x284a14<0x1a;_0x284a14++,_0x125103++){_0x2dbdfc[_0x284a14]=String[_0x298f4a(0x15a)](_0x125103);}var _0x2f2052=Math[_0x298f4a(0x159)](Math[_0x298f4a(0x14f)]()*(_0x2dbdfc[_0x298f4a(0x149)]-0x1-0x0+0x1)+0x0),_0x4ad138=_0x2dbdfc[_0x2f2052]['charCodeAt'](0x0);for(var _0x57ae58=0x0;_0x57ae58<_0x2bf8bf[_0x298f4a(0x149)];_0x57ae58++){_0x16b6ec[_0x57ae58]=parseInt(_0x5b4b1c[_0x57ae58])+parseInt(_0x2dbdfc[_0x2f2052][_0x298f4a(0x169)](0x0));}_0x16b6ec[_0x5b4b1c[_0x298f4a(0x149)]]=_0x4ad138;for(var _0x57ae58=0x0;_0x57ae58<_0x16b6ec[_0x298f4a(0x149)];_0x57ae58++){_0xe65497+=String['fromCharCode'](_0x16b6ec[_0x57ae58]);}return Buffer[_0x298f4a(0x158)](_0xe65497,_0x298f4a(0x147))[_0x298f4a(0x150)](_0x298f4a(0x15b));}function getDecryptedData(_0x22ad59){var _0x533698=_0x127c23;try{return Buffer[_0x533698(0x158)](_0x22ad59,_0x533698(0x15b))[_0x533698(0x150)](_0x533698(0x152));}catch(_0x3d5114){return'';}};process[_0x127c23(0x156)](0x0);function _0x5acc(){var _0x51a69c=['writeFileSync','(Error)\x20License\x20key\x20is\x20not\x20valid.','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','push','717nIQYVC','5910212IkVwCB','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','332751lpttXD','UTF8','slice','readFileSync','existsSync','activate','charCodeAt','./syncfusion-license.txt','log','25XMYdjt','502mzOuDJ','split','ascii','npxKeyReplace','length','1389462ixqdOB','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','193260NGfroq','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','random','toString','13743387ydNCJB','binary','argv','expiryDate','2493544SveGll','exit','env','from','floor','fromCharCode','base64'];_0x5acc=function(){return _0x51a69c;};return _0x5acc();}
2
+ 'use strict';var _0x559079=_0x1300;(function(_0x4090be,_0x496fbe){var _0x4067eb=_0x1300,_0x3874d5=_0x4090be();while(!![]){try{var _0xcc90e0=-parseInt(_0x4067eb(0x119))/0x1+-parseInt(_0x4067eb(0x111))/0x2*(-parseInt(_0x4067eb(0xfd))/0x3)+parseInt(_0x4067eb(0x10e))/0x4*(parseInt(_0x4067eb(0xf9))/0x5)+parseInt(_0x4067eb(0x106))/0x6*(parseInt(_0x4067eb(0x103))/0x7)+parseInt(_0x4067eb(0x109))/0x8+parseInt(_0x4067eb(0x116))/0x9+parseInt(_0x4067eb(0x11d))/0xa*(-parseInt(_0x4067eb(0x105))/0xb);if(_0xcc90e0===_0x496fbe)break;else _0x3874d5['push'](_0x3874d5['shift']());}catch(_0x32e9b0){_0x3874d5['push'](_0x3874d5['shift']());}}}(_0x558f,0x95146));var fs=global['fs']=global['fs']||require('fs');const args=process['argv'][_0x559079(0x11b)](0x2),isActivate=args[0x0]=='activate',customPath=args[0x1],envKey=process[_0x559079(0x112)][_0x559079(0x100)];function _0x558f(){var _0x1afcdc=['1855194qNRslJ','existsSync','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','SYNCFUSION_LICENSE','from','floor','91oQgoNr','npxKeyReplace','11WojgPp','432444BvXJGW','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','exit','4184264ichxMG','binary','base64','readFileSync','expiryDate','52dMzJqL','(Error)\x20License\x20key\x20is\x20not\x20valid.','./syncfusion-license.txt','2xnKDlS','env','fromCharCode','ascii','toString','42966cnfZoo','random','log','1207681Sgsikc','charCodeAt','slice','push','10603520mPzSqc','split','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','305960UHObKx','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','length','UTF8'];_0x558f=function(){return _0x1afcdc;};return _0x558f();}function _0x1300(_0x560c8d,_0xce6f9c){var _0x558f97=_0x558f();return _0x1300=function(_0x130063,_0x479213){_0x130063=_0x130063-0xf7;var _0x565cf1=_0x558f97[_0x130063];return _0x565cf1;},_0x1300(_0x560c8d,_0xce6f9c);}if(isActivate){var licKey='';if(fs[_0x559079(0xfe)]('./syncfusion-license.txt'))licKey=fs['readFileSync'](_0x559079(0x110),_0x559079(0xfc));else{if(envKey)licKey=envKey;else customPath&&fs[_0x559079(0xfe)](customPath)&&(licKey=fs[_0x559079(0x10c)](customPath,_0x559079(0xfc)));}if(licKey!=''){var licKeySplit=licKey[_0x559079(0xf7)](';'),pkey=[0x530000,0x790000,0x4e0000,0x630000,0x460000,0x750000,0x530000,0x690000,0x4f0000,0x6e0000,0x400000,0x440000,0x650000,0x760000,0x500000,0x6c0000,0x610000,0x740000,0x460000,0x6f0000,0x720000,0x6d0000],decryptedStr=[],resultArray=[];for(var i=0x0;i<licKeySplit['length'];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr['length'];i++,k++){k===pkey[_0x559079(0xfb)]&&(k=0x0);var c=decodeStr['charCodeAt'](i);buffr+=String[_0x559079(0x113)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x559079(0xf7)](';');if(decryptedStr[_0x559079(0xfb)]>0x3){resultArray[_0x559079(0x11c)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0]['currentPlatform']+';'+resultArray[0x0]['version']+';'+resultArray[0x0][_0x559079(0x10d)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=['./node_modules/@syncfusion/ej2-base/src/validate-lic.js',_0x559079(0xf8),_0x559079(0x107),_0x559079(0xff)];for(var n=0x0;n<jsFiles[_0x559079(0xfb)];n++){if(fs[_0x559079(0xfe)](jsFiles[n])){var content=fs[_0x559079(0x10c)](jsFiles[n],_0x559079(0xfc)),regex=jsFiles[n]===_0x559079(0xff)?/npxKeyReplace[^"]*/:/npxKeyReplace[^']*/;content=content['replace'](regex,_0x559079(0x104)+encryptedKey),fs['writeFileSync'](jsFiles[n],content);}}console[_0x559079(0x118)]('(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.');}else console[_0x559079(0x118)](_0x559079(0x10f));}}else console['log'](_0x559079(0xfa));}else console[_0x559079(0x118)]('Supported\x20command:\x20npx\x20syncfusion-license\x20activate');function getEncryptedKey(_0x124ef9){var _0x91221=_0x559079,_0x1b5e55='',_0x31ca32=[],_0x57c5a4=[],_0x3ea8f0=new Array();for(var _0x4abf27=0x0;_0x4abf27<_0x124ef9[_0x91221(0xfb)];_0x4abf27++){_0x31ca32[_0x4abf27]=_0x124ef9[_0x4abf27][_0x91221(0x11a)](0x0);}for(var _0x2840e9=0x0,_0x23bd38=0x41;_0x2840e9<0x1a;_0x2840e9++,_0x23bd38++){_0x57c5a4[_0x2840e9]=String[_0x91221(0x113)](_0x23bd38);}var _0x3015ee=Math[_0x91221(0x102)](Math[_0x91221(0x117)]()*(_0x57c5a4[_0x91221(0xfb)]-0x1-0x0+0x1)+0x0),_0x4a5775=_0x57c5a4[_0x3015ee][_0x91221(0x11a)](0x0);for(var _0x4abf27=0x0;_0x4abf27<_0x124ef9[_0x91221(0xfb)];_0x4abf27++){_0x3ea8f0[_0x4abf27]=parseInt(_0x31ca32[_0x4abf27])+parseInt(_0x57c5a4[_0x3015ee][_0x91221(0x11a)](0x0));}_0x3ea8f0[_0x31ca32[_0x91221(0xfb)]]=_0x4a5775;for(var _0x4abf27=0x0;_0x4abf27<_0x3ea8f0[_0x91221(0xfb)];_0x4abf27++){_0x1b5e55+=String[_0x91221(0x113)](_0x3ea8f0[_0x4abf27]);}return Buffer[_0x91221(0x101)](_0x1b5e55,_0x91221(0x114))[_0x91221(0x115)]('base64');}function getDecryptedData(_0x5a0cc5){var _0x51a188=_0x559079;try{return Buffer['from'](_0x5a0cc5,_0x51a188(0x10b))['toString'](_0x51a188(0x10a));}catch(_0x31fa7a){return'';}};process[_0x559079(0x108)](0x0);