zmp-cli 3.15.9 → 3.15.10

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.
Files changed (42) hide show
  1. package/build/index.js +1 -1
  2. package/config/index.js +1 -1
  3. package/create/index.js +1 -1
  4. package/create/utils/generate-app-config.js +1 -1
  5. package/create/utils/generate-npm-scripts.js +1 -1
  6. package/create/utils/get-options.js +1 -1
  7. package/create/utils/npm-scripts.js +1 -1
  8. package/deploy/index.js +1 -1
  9. package/deploy/utils/get-options.js +1 -1
  10. package/deploy/utils/request-upload.js +1 -1
  11. package/deploy/utils/upload-app.js +1 -1
  12. package/index.js +1 -1
  13. package/login/index.js +1 -1
  14. package/login/utils/get-options.js +1 -1
  15. package/login/utils/zalo-login.js +1 -1
  16. package/migrate/icons/update-icon-v3.js +1 -1
  17. package/migrate/index.js +1 -1
  18. package/migrate/utils/get-options.js +1 -1
  19. package/migrate/utils/migrate-react.js +1 -1
  20. package/package.json +1 -1
  21. package/start/index.js +1 -1
  22. package/sync/index-to-app-config.js +1 -1
  23. package/sync/index.js +1 -1
  24. package/utils/axios.js +1 -1
  25. package/utils/check-update.js +1 -1
  26. package/utils/constants.js +1 -1
  27. package/utils/env.js +1 -1
  28. package/utils/error.js +1 -1
  29. package/utils/find-files-by-ext.js +1 -1
  30. package/utils/find-free-port.js +1 -1
  31. package/utils/fs-extra.js +1 -1
  32. package/utils/generate-pages-map.js +1 -1
  33. package/utils/get-app-info.js +1 -1
  34. package/utils/get-current-project.js +1 -1
  35. package/utils/get-ip.js +1 -1
  36. package/utils/get-latest-version.js +1 -0
  37. package/utils/log.js +1 -1
  38. package/utils/node-blob.js +1 -1
  39. package/utils/resumable.d.js +1 -1
  40. package/utils/resumable.js +1 -1
  41. package/utils/spinner.js +1 -1
  42. package/utils/tunnel.js +1 -1
package/build/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5210db=_0xd946;function _0xd946(_0x2b2ef5,_0x1d6143){const _0x45df68=_0x45df();return _0xd946=function(_0xd9463f,_0x154fa6){_0xd9463f=_0xd9463f-0x107;let _0x282e40=_0x45df68[_0xd9463f];return _0x282e40;},_0xd946(_0x2b2ef5,_0x1d6143);}(function(_0x14bd57,_0x3ea2d5){const _0x4a9ccf=_0xd946,_0x1e7abc=_0x14bd57();while(!![]){try{const _0x522e7c=-parseInt(_0x4a9ccf(0x122))/0x1*(-parseInt(_0x4a9ccf(0x129))/0x2)+-parseInt(_0x4a9ccf(0x133))/0x3+-parseInt(_0x4a9ccf(0x136))/0x4*(parseInt(_0x4a9ccf(0x121))/0x5)+parseInt(_0x4a9ccf(0x111))/0x6*(parseInt(_0x4a9ccf(0x128))/0x7)+parseInt(_0x4a9ccf(0x11c))/0x8*(parseInt(_0x4a9ccf(0x10e))/0x9)+-parseInt(_0x4a9ccf(0x134))/0xa+parseInt(_0x4a9ccf(0x116))/0xb;if(_0x522e7c===_0x3ea2d5)break;else _0x1e7abc['push'](_0x1e7abc['shift']());}catch(_0x195fa6){_0x1e7abc['push'](_0x1e7abc['shift']());}}}(_0x45df,0x9ede8));const e=require(_0x5210db(0x108)),r=require(_0x5210db(0x10f)),t=require(_0x5210db(0x11f)),i=require('@rollup/plugin-dynamic-import-vars')['default'],o=require(_0x5210db(0x131)),{buildApp:n}=require('zmp-cli-core'),u=require('../utils/fs-extra'),a=require(_0x5210db(0x11b)),l=require('../utils/env'),{errorExit:s}=require(_0x5210db(0x110)),p=require(_0x5210db(0x12f)),g=require(_0x5210db(0x11d)),{existsSync:c}=require('fs'),w=l[_0x5210db(0x10b)]('NODE_ENV')||_0x5210db(0x12a),d=e[_0x5210db(0x10a)]('Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),f=e['yellow'](_0x5210db(0x115)),m=r(_0x5210db(0x12a)===w?_0x5210db(0x135):_0x5210db(0x120));function _0x45df(){const _0x9ceacd=['3783516iPjPDS','error','appConfig','writeFileSync','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','11227535IAkFJv','cwd','statusError','statusStart','bold','../utils/get-app-info','11752hAxiUq','../utils/generate-pages-map','join','path','Building\x20development\x20version...','1240gBAxDl','40563QwHSkn','statusDone','Build\x20Done!\x0a','appId','latestVersion','filename','7ijHbLb','26OMiwOg','production','www/','green','node_modules','text','../config','env','@rollup/plugin-replace','Error\x20building\x20project','1994088MGRCfN','1296950LAWTwF','Building\x20for\x20production...','17256cdygNr','exports','chalk','zmp-framework','gray','getEnv','stringify','start','2061lRirhv','ora','../utils/error'];_0x45df=function(){return _0x9ceacd;};return _0x45df();}module[_0x5210db(0x107)]=async(_0x325113={},_0x5086dd)=>{const _0x2af529=_0x5210db;let _0x467ff7=_0x325113[_0x2af529(0x117)]||process[_0x2af529(0x117)](),_0x18958e=_0x466539=>t['join'](_0x467ff7,_0x466539),_0xd1a839=_0x325113['appConfigJson']||require(_0x18958e(p[_0x2af529(0x127)][_0x2af529(0x113)]));_0x5086dd||(_0x5086dd={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),c(t[_0x2af529(0x11e)](_0x467ff7,_0x2af529(0x12d),_0x2af529(0x109)))&&_0x5086dd['text'](f),m[_0x2af529(0x10d)](),_0x5086dd[_0x2af529(0x119)](d);try{let _0x46cce6=l[_0x2af529(0x10b)](p[_0x2af529(0x130)][_0x2af529(0x125)]),_0x12d3f2=_0x325113['nextVersion'];if(!_0x12d3f2){let _0x22fcee=await a(_0x46cce6,_0x325113),_0x10a20c=_0x22fcee&&_0x22fcee[_0x2af529(0x126)]&&Number(_0x22fcee['latestVersion']);null==_0x10a20c&&(_0x10a20c=0x0),_0x12d3f2=_0x10a20c+0x1;}let {appConfigJson:_0x3b3cfa}=await n({'cwd':_0x467ff7,'mode':w,'appId':_0x46cce6,'nextVersion':_0x12d3f2,'appConfig':_0xd1a839,'outDir':'www','vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>g(_0x467ff7)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x5086dd['text'],'warn':_0x5086dd[_0x2af529(0x12e)],'warnOnce':_0x5086dd[_0x2af529(0x12e)],'error':_0x5086dd[_0x2af529(0x112)]}});return _0x3b3cfa&&u[_0x2af529(0x114)](_0x18958e(_0x2af529(0x12b)+p['filename']['appConfig']),JSON[_0x2af529(0x10c)](_0x3b3cfa)),_0x5086dd[_0x2af529(0x123)](''+e[_0x2af529(0x11a)][_0x2af529(0x12c)](_0x2af529(0x124))),_0x3b3cfa;}catch(_0x49566b){_0x5086dd[_0x2af529(0x118)](_0x2af529(0x132)),s(_0x49566b);return;}};
1
+ 'use strict';const _0x44116a=_0x46ff;(function(_0x48f61d,_0x4098b0){const _0x2f0fb9=_0x46ff,_0x20519b=_0x48f61d();while(!![]){try{const _0x418469=parseInt(_0x2f0fb9(0x9c))/0x1*(-parseInt(_0x2f0fb9(0xb9))/0x2)+-parseInt(_0x2f0fb9(0x9a))/0x3+parseInt(_0x2f0fb9(0x99))/0x4+-parseInt(_0x2f0fb9(0x9d))/0x5+-parseInt(_0x2f0fb9(0x95))/0x6+parseInt(_0x2f0fb9(0xa1))/0x7*(parseInt(_0x2f0fb9(0xa3))/0x8)+parseInt(_0x2f0fb9(0xb6))/0x9;if(_0x418469===_0x4098b0)break;else _0x20519b['push'](_0x20519b['shift']());}catch(_0x28bbb5){_0x20519b['push'](_0x20519b['shift']());}}}(_0x2bc7,0x711dc));const e=require('chalk'),r=require(_0x44116a(0x96)),t=require(_0x44116a(0x98)),i=require(_0x44116a(0xac))[_0x44116a(0xad)],o=require(_0x44116a(0xa5)),{buildApp:n}=require('zmp-cli-core'),u=require(_0x44116a(0x97)),a=require(_0x44116a(0xbc)),{errorExit:s}=require(_0x44116a(0xa2)),l=require(_0x44116a(0xaa)),p=require(_0x44116a(0xa8)),{existsSync:g}=require('fs'),c=require(_0x44116a(0x91)),w=a['getEnv'](_0x44116a(0xa7))||_0x44116a(0xa6),d=e[_0x44116a(0xb8)](_0x44116a(0xb5)),m=e[_0x44116a(0x92)](_0x44116a(0xae)),f=r(_0x44116a(0xa6)===w?'Building\x20for\x20production...':_0x44116a(0x9e));function _0x2bc7(){const _0x240d94=['14hZXIwg','../utils/error','2925672aPruWl','statusDone','@rollup/plugin-replace','production','NODE_ENV','../utils/generate-pages-map','statusError','../config','bold','@rollup/plugin-dynamic-import-vars','default','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','join','www','Error\x20building\x20project','text','appConfig','exports','Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','4129506VpyfxJ','Build\x20Done!\x0a','gray','1124590TScioN','latestVersion','www/','../utils/env','statusStart','zmp-framework','../utils/get-latest-version','yellow','cwd','filename','2712018aaXwVi','ora','../utils/fs-extra','path','3555872EQYJfd','182565olpmJM','node_modules','1gTOiYX','2703715GoQGBd','Building\x20development\x20version...','start','nextVersion'];_0x2bc7=function(){return _0x240d94;};return _0x2bc7();}function _0x46ff(_0x593df7,_0x36cde5){const _0x2bc740=_0x2bc7();return _0x46ff=function(_0x46ff35,_0x51149c){_0x46ff35=_0x46ff35-0x8f;let _0x8bc34=_0x2bc740[_0x46ff35];return _0x8bc34;},_0x46ff(_0x593df7,_0x36cde5);}module[_0x44116a(0xb4)]=async(_0x3779fb={},_0x4b9834)=>{const _0x451d34=_0x44116a;let _0x2b42f0=_0x3779fb[_0x451d34(0x93)]||process[_0x451d34(0x93)](),_0x3e9c07=_0x1e6f1f=>t[_0x451d34(0xaf)](_0x2b42f0,_0x1e6f1f),_0x22dd69=_0x3779fb['appConfigJson']||require(_0x3e9c07(l[_0x451d34(0x94)][_0x451d34(0xb3)]));_0x4b9834||(_0x4b9834={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),g(t['join'](_0x2b42f0,_0x451d34(0x9b),_0x451d34(0x90)))&&_0x4b9834[_0x451d34(0xb2)](m),f[_0x451d34(0x9f)](),_0x4b9834[_0x451d34(0x8f)](d);try{let _0x52c31f=a['getEnv'](l['env']['appId']),_0x2959cd=_0x3779fb[_0x451d34(0xa0)];if(!_0x2959cd){let _0x42d169=await c(_0x52c31f,_0x3779fb),_0x7a2bdd=_0x42d169&&_0x42d169[_0x451d34(0xba)]&&Number(_0x42d169[_0x451d34(0xba)]);null==_0x7a2bdd&&(_0x7a2bdd=0x0),_0x2959cd=_0x7a2bdd+0x1;}let {appConfigJson:_0x5ab5ea}=await n({'cwd':_0x2b42f0,'mode':w,'appId':_0x52c31f,'nextVersion':_0x2959cd,'appConfig':_0x22dd69,'outDir':_0x451d34(0xb0),'vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>p(_0x2b42f0)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x4b9834[_0x451d34(0xb2)],'warn':_0x4b9834[_0x451d34(0xb2)],'warnOnce':_0x4b9834[_0x451d34(0xb2)],'error':_0x4b9834['error']}});return _0x5ab5ea&&u['writeFileSync'](_0x3e9c07(_0x451d34(0xbb)+l['filename'][_0x451d34(0xb3)]),JSON['stringify'](_0x5ab5ea)),_0x4b9834[_0x451d34(0xa4)](''+e[_0x451d34(0xab)]['green'](_0x451d34(0xb7))),_0x5ab5ea;}catch(_0x4a9825){_0x4b9834[_0x451d34(0xa9)](_0x451d34(0xb1)),s(_0x4a9825);return;}};
package/config/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x3763(){var _0x21c247=['1919797vBHGfM','1585944MUEbAB','136FgfFtU','cwd','zmp-cli.json','36tVpiii','31765mEBWzH','app/request-upload','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','34018EzUfOD','octet','5aUTmbs','196408UhqssF','admin/get-login-status','admin/request-login','/.env','2109450mTsGMu','app/upload-chunk','app/get-info','Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','Request\x20Timeout','10FbmCEV','1331400mSKlvq','https://zmp-api.developers.zalo.me/','//h5.zdn.vn/zapps/','ZMP_TOKEN','APP_ID'];_0x3763=function(){return _0x21c247;};return _0x3763();}var _0x2a9474=_0x1b39;(function(_0x20a399,_0x1e250a){var _0x5ae351=_0x1b39,_0x56f901=_0x20a399();while(!![]){try{var _0x1d01c=-parseInt(_0x5ae351(0x124))/0x1*(-parseInt(_0x5ae351(0x122))/0x2)+parseInt(_0x5ae351(0x12f))/0x3+-parseInt(_0x5ae351(0x11b))/0x4*(parseInt(_0x5ae351(0x11f))/0x5)+parseInt(_0x5ae351(0x11a))/0x6+-parseInt(_0x5ae351(0x129))/0x7+-parseInt(_0x5ae351(0x125))/0x8*(-parseInt(_0x5ae351(0x11e))/0x9)+parseInt(_0x5ae351(0x12e))/0xa*(parseInt(_0x5ae351(0x119))/0xb);if(_0x1d01c===_0x1e250a)break;else _0x56f901['push'](_0x56f901['shift']());}catch(_0x373da7){_0x56f901['push'](_0x56f901['shift']());}}}(_0x3763,0x85ec4));function _0x1b39(_0x345519,_0x4c71fe){var _0x37633f=_0x3763();return _0x1b39=function(_0x1b3981,_0x594409){_0x1b3981=_0x1b3981-0x118;var _0x13780f=_0x37633f[_0x1b3981];return _0x13780f;},_0x1b39(_0x345519,_0x4c71fe);}module['exports']={'filename':{'appConfig':'app-config.json','zmpConfig':_0x2a9474(0x11d),'packageJson':'package.json'},'api_domain':_0x2a9474(0x130),'zdn_url':_0x2a9474(0x131),'path':{'login':'admin/login','requestLogin':_0x2a9474(0x127),'checkLoginStatus':_0x2a9474(0x126),'uploadAppByChunk':_0x2a9474(0x12a),'requestUploadResumable':_0x2a9474(0x120),'getAppInfo':_0x2a9474(0x12b)},'dirname':__dirname,'root_env':()=>process[_0x2a9474(0x11c)]()+_0x2a9474(0x128),'env':{'appId':_0x2a9474(0x118),'token':_0x2a9474(0x132)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x2a9474(0x121),'permission_denied':_0x2a9474(0x12c),'request_timeout':_0x2a9474(0x12d)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x2a9474(0x123),'forceChunkSize':!0x1}};
1
+ 'use strict';var _0x22a5f5=_0xc226;(function(_0x3122d5,_0x378bdb){var _0x96486=_0xc226,_0x5810da=_0x3122d5();while(!![]){try{var _0x2dc666=parseInt(_0x96486(0x1f5))/0x1*(-parseInt(_0x96486(0x1eb))/0x2)+-parseInt(_0x96486(0x1f4))/0x3*(-parseInt(_0x96486(0x1f0))/0x4)+-parseInt(_0x96486(0x1ed))/0x5*(parseInt(_0x96486(0x1e9))/0x6)+parseInt(_0x96486(0x1f1))/0x7+-parseInt(_0x96486(0x1f6))/0x8*(parseInt(_0x96486(0x1f2))/0x9)+parseInt(_0x96486(0x1e7))/0xa+-parseInt(_0x96486(0x1fb))/0xb*(-parseInt(_0x96486(0x1f8))/0xc);if(_0x2dc666===_0x378bdb)break;else _0x5810da['push'](_0x5810da['shift']());}catch(_0x4e99d1){_0x5810da['push'](_0x5810da['shift']());}}}(_0x13f8,0x8733e));function _0x13f8(){var _0xec0ca7=['dev-tools/app/get-info','zmp-cli.json','ZMP_TOKEN','app-config.json','APP_ID','cwd','//h5.zdn.vn/zapps/','1856430BKIlAY','https://zmp-api.developers.zalo.me/','5172LLhHcl','package.json','734966JWjsfN','admin/login','470avkWdL','Request\x20Timeout','Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','4qjchTi','6001464lLwRjc','1287qoeOEl','octet','2043957bhRjgt','1lXsBJd','44824WUiKwT','admin/request-login','59412DpSJXj','admin/get-login-status','app/upload-chunk','176ALHaou'];_0x13f8=function(){return _0xec0ca7;};return _0x13f8();}function _0xc226(_0x44464b,_0x52d7e2){var _0x13f8ef=_0x13f8();return _0xc226=function(_0xc22601,_0x151592){_0xc22601=_0xc22601-0x1e7;var _0x14f0df=_0x13f8ef[_0xc22601];return _0x14f0df;},_0xc226(_0x44464b,_0x52d7e2);}module['exports']={'filename':{'appConfig':_0x22a5f5(0x1ff),'zmpConfig':_0x22a5f5(0x1fd),'packageJson':_0x22a5f5(0x1ea)},'api_domain':_0x22a5f5(0x1e8),'zdn_url':_0x22a5f5(0x202),'path':{'login':_0x22a5f5(0x1ec),'requestLogin':_0x22a5f5(0x1f7),'checkLoginStatus':_0x22a5f5(0x1f9),'uploadAppByChunk':_0x22a5f5(0x1fa),'requestUploadResumable':'app/request-upload','getAppInfo':'app/get-info','getLatestVersion':_0x22a5f5(0x1fc)},'dirname':__dirname,'root_env':()=>process[_0x22a5f5(0x201)]()+'/.env','env':{'appId':_0x22a5f5(0x200),'token':_0x22a5f5(0x1fe)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':'App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','permission_denied':_0x22a5f5(0x1ef),'request_timeout':_0x22a5f5(0x1ee)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x22a5f5(0x1f3),'forceChunkSize':!0x1}};
package/create/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x47af(){const _0x5a0602=['cwd','\x20💪\x0a\x0a','bold','appConfig','npm\x20install','writeFileSync','10268220pVWeiK','log-symbols','statusError','747816PjmVRx','213yWnIKQ','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','\x0a\x20\x20','4274914xgddWE','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','Done!','statusStart','exec-sh','promise','join','Creating\x20project\x20files','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','statusDone','Installing\x20NPM\x20Dependencies','23804fuRVLq','gray','\x20Run\x20\x22npm\x20run\x20','folderName','resolve','chalk','Next\x20steps:','filename','path','\x22\x20-\x20','./utils/generate-app-config','Error\x20creating\x20project\x20files','info','../config','2817786ZRnXyM','128SKBFyo','271446WgBlxU','text','Generating\x20app-config.json','\x0a-\x20👉\x20Run\x20\x22cd\x20','Error\x20installing\x20NPM\x20Dependencies','10bXzBXo','newProject','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','README.md','\x20&&\x20npm\x20install','../utils/error','606834fDuDWs'];_0x47af=function(){return _0x5a0602;};return _0x47af();}const _0x4a6d57=_0x40eb;(function(_0x400655,_0x82a32d){const _0x55c8a7=_0x40eb,_0x24bdfc=_0x400655();while(!![]){try{const _0x2af876=parseInt(_0x55c8a7(0x194))/0x1+parseInt(_0x55c8a7(0x1b3))/0x2+-parseInt(_0x55c8a7(0x195))/0x3*(-parseInt(_0x55c8a7(0x1a3))/0x4)+-parseInt(_0x55c8a7(0x184))/0x5*(-parseInt(_0x55c8a7(0x1b1))/0x6)+parseInt(_0x55c8a7(0x198))/0x7+parseInt(_0x55c8a7(0x1b2))/0x8*(-parseInt(_0x55c8a7(0x18a))/0x9)+-parseInt(_0x55c8a7(0x191))/0xa;if(_0x2af876===_0x82a32d)break;else _0x24bdfc['push'](_0x24bdfc['shift']());}catch(_0x478f87){_0x24bdfc['push'](_0x24bdfc['shift']());}}}(_0x47af,0xb7332));const e=require(_0x4a6d57(0x19c)),t=require(_0x4a6d57(0x1ab)),n=require(_0x4a6d57(0x1a8)),r=require(_0x4a6d57(0x192)),{initProject:i}=require('zmp-cli-core'),o=require('../utils/fs-extra'),{errorExit:s}=require(_0x4a6d57(0x189)),a=require(_0x4a6d57(0x1b0)),c=require(_0x4a6d57(0x1ad)),l=require('./utils/generate-npm-scripts'),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x4a6d57(0x1a4)](_0x4a6d57(0x196));async function f(_0x5c34d5,_0x3780c5){const _0x150ef7=_0x4a6d57;_0x3780c5[_0x150ef7(0x19b)](_0x150ef7(0x19f));try{let {cwd:_0x37d3b9,template:_0x3f695d,folderName:_0x23cd4f,name:_0x2b853e}=_0x5c34d5;await i({'cwd':_0x37d3b9,'template':_0x3f695d,'folderName':_0x23cd4f,'projectName':_0x2b853e});}catch(_0x5bac50){_0x3780c5[_0x150ef7(0x193)](_0x150ef7(0x1ae)),s(_0x5bac50);}_0x3780c5[_0x150ef7(0x1a1)](_0x150ef7(0x19f));}async function m(_0x467cfa){const _0x349bcd=_0x4a6d57;let _0x170e74=t[_0x349bcd(0x1a7)](_0x467cfa[_0x349bcd(0x18b)],'.env'),_0x33c27f=t[_0x349bcd(0x1a7)](_0x467cfa[_0x349bcd(0x18b)],_0x467cfa['folderName'],'.env');p(_0x170e74)&&!p(_0x33c27f)&&u(_0x170e74,_0x33c27f);}async function g(_0x42a109,_0x5ed2fe){const _0x4d0a8b=_0x4a6d57;let {cwd:_0x1a5ca3}=_0x42a109;_0x5ed2fe[_0x4d0a8b(0x19b)](_0x4d0a8b(0x181));let _0x4ff7be=c(_0x42a109);o[_0x4d0a8b(0x190)](t['join'](_0x1a5ca3,a[_0x4d0a8b(0x1aa)][_0x4d0a8b(0x18e)]),_0x4ff7be['content']),_0x5ed2fe[_0x4d0a8b(0x1a1)](_0x4d0a8b(0x181));}function _0x40eb(_0x132add,_0x3cb603){const _0x47afd7=_0x47af();return _0x40eb=function(_0x40eb71,_0x586096){_0x40eb71=_0x40eb71-0x181;let _0x4a353a=_0x47afd7[_0x40eb71];return _0x4a353a;},_0x40eb(_0x132add,_0x3cb603);}async function $(_0x1a3555,_0x2eb3bf){const _0x37e487=_0x4a6d57;let _0x1caad0=t['join'](_0x1a3555[_0x37e487(0x18b)],_0x1a3555['folderName']);_0x2eb3bf['statusStart']('Installing\x20NPM\x20Dependencies\x20'+d);let _0x389f39=_0x1caad0===process['cwd']();try{_0x389f39?await e[_0x37e487(0x19d)](_0x37e487(0x18f),!0x0):await e[_0x37e487(0x19d)]('cd\x20'+_0x1caad0['replace'](/ /g,'\x5c\x20')+_0x37e487(0x188),!0x0);}catch(_0xa13c6d){_0x2eb3bf[_0x37e487(0x193)](_0x37e487(0x183)),s(_0xa13c6d);return;}_0x2eb3bf['statusDone'](_0x37e487(0x1a2));}async function h(_0x27300c,_0xfb4870){const _0x1322cd=_0x4a6d57;let _0xd46f0e=l(['s','r'])['map'](_0x453867=>'-\x20'+_0x453867['icon']+_0x1322cd(0x1a5)+_0x453867['name']+_0x1322cd(0x1ac)+_0x453867['description']),_0x8833be='\x0a'+n['bold'](r['success'])+'\x20'+n[_0x1322cd(0x18d)](_0x1322cd(0x19a))+_0x1322cd(0x18c)+n[_0x1322cd(0x18d)](r[_0x1322cd(0x1af)])+'\x20'+n['bold'](_0x1322cd(0x1a9))+_0x1322cd(0x182)+_0x27300c[_0x1322cd(0x1a6)]+'\x22\x0a'+_0xd46f0e[_0x1322cd(0x19e)]('\x0a')+_0x1322cd(0x186)+n[_0x1322cd(0x18d)]('https://mini.zalo.me/')+'\x0a-\x20📖\x20Check\x20'+n[_0x1322cd(0x18d)](_0x1322cd(0x187))+_0x1322cd(0x199);_0xfb4870[_0x1322cd(0x1b4)](_0x8833be);}async function y(_0x344bd8,_0x2c87ad){const _0x5beb90=_0x4a6d57;let _0x9bc8cc='\x0a'+n[_0x5beb90(0x18d)](r['success'])+'\x20'+n[_0x5beb90(0x18d)](_0x5beb90(0x19a))+_0x5beb90(0x18c)+n[_0x5beb90(0x18d)](r[_0x5beb90(0x1af)])+'\x20'+n[_0x5beb90(0x18d)]('Next\x20steps:')+_0x5beb90(0x1a0)+n[_0x5beb90(0x18d)]('https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/')+_0x5beb90(0x197);_0x2c87ad[_0x5beb90(0x1b4)](_0x9bc8cc);}module['exports']=async(_0xbe7e73={},_0xfc54e2)=>{const _0x57e1d8=_0x4a6d57;for(let _0x43f2f4 of(_0xfc54e2||(_0xfc54e2={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0xbe7e73[_0x57e1d8(0x185)]?[f,m,$,h]:[g,y]))await _0x43f2f4(_0xbe7e73,_0xfc54e2);};
1
+ 'use strict';const _0x3a32df=_0x45ef;(function(_0x1a780c,_0x110db5){const _0x99d5af=_0x45ef,_0x1a6ec6=_0x1a780c();while(!![]){try{const _0x5df37c=parseInt(_0x99d5af(0x150))/0x1+parseInt(_0x99d5af(0x14c))/0x2*(-parseInt(_0x99d5af(0x169))/0x3)+-parseInt(_0x99d5af(0x172))/0x4*(-parseInt(_0x99d5af(0x152))/0x5)+-parseInt(_0x99d5af(0x16e))/0x6*(-parseInt(_0x99d5af(0x161))/0x7)+parseInt(_0x99d5af(0x14f))/0x8+parseInt(_0x99d5af(0x15b))/0x9*(parseInt(_0x99d5af(0x16c))/0xa)+parseInt(_0x99d5af(0x181))/0xb*(-parseInt(_0x99d5af(0x17f))/0xc);if(_0x5df37c===_0x110db5)break;else _0x1a6ec6['push'](_0x1a6ec6['shift']());}catch(_0x1be76c){_0x1a6ec6['push'](_0x1a6ec6['shift']());}}}(_0x3851,0xd98b8));const e=require('exec-sh'),t=require(_0x3a32df(0x14d)),n=require(_0x3a32df(0x156)),r=require('log-symbols'),{initProject:i}=require(_0x3a32df(0x17c)),o=require('../utils/fs-extra'),{errorExit:s}=require(_0x3a32df(0x17b)),a=require(_0x3a32df(0x178)),c=require(_0x3a32df(0x14e)),l=require(_0x3a32df(0x177)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x3a32df(0x170)](_0x3a32df(0x160));async function f(_0xf63b9f,_0x463c24){const _0x4d43e4=_0x3a32df;_0x463c24[_0x4d43e4(0x174)](_0x4d43e4(0x175));try{let {cwd:_0x534a87,template:_0x5b32f1,folderName:_0x55448b,name:_0x90089b}=_0xf63b9f;await i({'cwd':_0x534a87,'template':_0x5b32f1,'folderName':_0x55448b,'projectName':_0x90089b});}catch(_0x583873){_0x463c24['statusError'](_0x4d43e4(0x14a)),s(_0x583873);}_0x463c24[_0x4d43e4(0x176)](_0x4d43e4(0x175));}async function m(_0x55f218){const _0x210ea9=_0x3a32df;let _0x5b99a1=t[_0x210ea9(0x153)](_0x55f218['cwd'],_0x210ea9(0x16d)),_0x34e69c=t[_0x210ea9(0x153)](_0x55f218[_0x210ea9(0x148)],_0x55f218[_0x210ea9(0x165)],'.env');p(_0x5b99a1)&&!p(_0x34e69c)&&u(_0x5b99a1,_0x34e69c);}async function g(_0x472744,_0x4d1c1c){const _0x4d54fe=_0x3a32df;let {cwd:_0x4ae500}=_0x472744;_0x4d1c1c[_0x4d54fe(0x174)]('Generating\x20app-config.json');let _0x4d84c1=c(_0x472744);o[_0x4d54fe(0x179)](t[_0x4d54fe(0x15a)](_0x4ae500,a[_0x4d54fe(0x162)][_0x4d54fe(0x15d)]),_0x4d84c1[_0x4d54fe(0x15f)]),_0x4d1c1c['statusDone']('Generating\x20app-config.json');}async function $(_0x19e643,_0x4ef0df){const _0x4faa3b=_0x3a32df;let _0x3a14dc=t[_0x4faa3b(0x15a)](_0x19e643[_0x4faa3b(0x148)],_0x19e643[_0x4faa3b(0x165)]);_0x4ef0df[_0x4faa3b(0x174)](_0x4faa3b(0x180)+d);let _0x5b2428=_0x3a14dc===process['cwd']();try{_0x5b2428?await e[_0x4faa3b(0x14b)](_0x4faa3b(0x147),!0x0):await e[_0x4faa3b(0x14b)]('cd\x20'+_0x3a14dc[_0x4faa3b(0x164)](/ /g,'\x5c\x20')+_0x4faa3b(0x163),!0x0);}catch(_0x586c59){_0x4ef0df['statusError']('Error\x20installing\x20NPM\x20Dependencies'),s(_0x586c59);return;}_0x4ef0df['statusDone'](_0x4faa3b(0x17e));}function _0x45ef(_0xe04235,_0x9a3b68){const _0x38519d=_0x3851();return _0x45ef=function(_0x45efed,_0x20ee66){_0x45efed=_0x45efed-0x147;let _0x9f3ca8=_0x38519d[_0x45efed];return _0x9f3ca8;},_0x45ef(_0xe04235,_0x9a3b68);}function _0x3851(){const _0x1087bb=['Installing\x20NPM\x20Dependencies','24rtSRdv','Installing\x20NPM\x20Dependencies\x20','22945175sdchhV','bold','npm\x20install','cwd','Next\x20steps:','Error\x20creating\x20project\x20files','promise','76394uOFbHC','path','./utils/generate-app-config','12801472IMknnX','1248868uFXeVE','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','971335pwWcBJ','resolve','info','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','chalk','https://mini.zalo.me/','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','newProject','join','7715781qLByOy','map','appConfig','Done!','content','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','10007655TLRsnS','filename','\x20&&\x20npm\x20install','replace','folderName','icon','\x22\x20-\x20','success','21AMNVvk','\x0a-\x20👉\x20Run\x20\x22cd\x20','\x0a-\x20📖\x20Check\x20','10rSgzjU','.env','6NjFmqg','description','gray','\x20💪\x0a\x0a','4iYQZPW','text','statusStart','Creating\x20project\x20files','statusDone','./utils/generate-npm-scripts','../config','writeFileSync','\x0a\x20\x20','../utils/error','zmp-cli-core','exports'];_0x3851=function(){return _0x1087bb;};return _0x3851();}async function h(_0x36a7f0,_0x213f8e){const _0x1a52ee=_0x3a32df;let _0x545da5=l(['s','r'])[_0x1a52ee(0x15c)](_0x29edf1=>'-\x20'+_0x29edf1[_0x1a52ee(0x166)]+'\x20Run\x20\x22npm\x20run\x20'+_0x29edf1['name']+_0x1a52ee(0x167)+_0x29edf1[_0x1a52ee(0x16f)]),_0x9ffccb='\x0a'+n['bold'](r[_0x1a52ee(0x168)])+'\x20'+n[_0x1a52ee(0x182)]('Done!')+_0x1a52ee(0x171)+n[_0x1a52ee(0x182)](r[_0x1a52ee(0x154)])+'\x20'+n['bold'](_0x1a52ee(0x149))+_0x1a52ee(0x16a)+_0x36a7f0[_0x1a52ee(0x165)]+'\x22\x0a'+_0x545da5[_0x1a52ee(0x15a)]('\x0a')+_0x1a52ee(0x155)+n[_0x1a52ee(0x182)](_0x1a52ee(0x157))+_0x1a52ee(0x16b)+n[_0x1a52ee(0x182)]('README.md')+_0x1a52ee(0x158);_0x213f8e[_0x1a52ee(0x173)](_0x9ffccb);}async function y(_0x4139d4,_0x40d4b0){const _0x30d54d=_0x3a32df;let _0x286aaf='\x0a'+n[_0x30d54d(0x182)](r[_0x30d54d(0x168)])+'\x20'+n[_0x30d54d(0x182)](_0x30d54d(0x15e))+_0x30d54d(0x171)+n[_0x30d54d(0x182)](r[_0x30d54d(0x154)])+'\x20'+n[_0x30d54d(0x182)](_0x30d54d(0x149))+'\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20'+n['bold'](_0x30d54d(0x151))+_0x30d54d(0x17a);_0x40d4b0[_0x30d54d(0x173)](_0x286aaf);}module[_0x3a32df(0x17d)]=async(_0x3c7d1b={},_0x263cc5)=>{const _0x518b57=_0x3a32df;for(let _0x4316bd of(_0x263cc5||(_0x263cc5={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x3c7d1b[_0x518b57(0x159)]?[f,m,$,h]:[g,y]))await _0x4316bd(_0x3c7d1b,_0x263cc5);};
@@ -1 +1 @@
1
- 'use strict';function _0x2e46(){const _0x119aec=['751867xaVHVL','126dCIDWy','white','23988DVVrda','4543zjlxid','120920HuDyvI','116UrIEHR','2022vapVXl','1673QpgEnW','41138gHELHS','trim','4738100xDRkwo','back','stringify','normal','111gKRafu','504664GKjBWv'];_0x2e46=function(){return _0x119aec;};return _0x2e46();}function _0x3fed(_0x2f920d,_0x385bc3){const _0x2e465a=_0x2e46();return _0x3fed=function(_0x3fedd8,_0x1766f7){_0x3fedd8=_0x3fedd8-0x192;let _0x1856d5=_0x2e465a[_0x3fedd8];return _0x1856d5;},_0x3fed(_0x2f920d,_0x385bc3);}(function(_0x1ea12a,_0x9a48ad){const _0x498f91=_0x3fed,_0x41281c=_0x1ea12a();while(!![]){try{const _0x3fcb93=parseInt(_0x498f91(0x192))/0x1+parseInt(_0x498f91(0x19b))/0x2*(parseInt(_0x498f91(0x1a1))/0x3)+-parseInt(_0x498f91(0x198))/0x4*(parseInt(_0x498f91(0x197))/0x5)+-parseInt(_0x498f91(0x199))/0x6*(-parseInt(_0x498f91(0x19a))/0x7)+parseInt(_0x498f91(0x1a2))/0x8*(parseInt(_0x498f91(0x193))/0x9)+-parseInt(_0x498f91(0x19d))/0xa+parseInt(_0x498f91(0x196))/0xb*(-parseInt(_0x498f91(0x195))/0xc);if(_0x3fcb93===_0x9a48ad)break;else _0x41281c['push'](_0x41281c['shift']());}catch(_0xc9ad9){_0x41281c['push'](_0x41281c['shift']());}}}(_0x2e46,0x742f4));module['exports']=function(_0x33b9bb){const _0x4d9fad=_0x3fed;let {name:_0x45e10c}=_0x33b9bb,_0x35b5e4={'title':_0x45e10c,'headerTitle':_0x45e10c,'headerColor':'#1843EF','textColor':_0x4d9fad(0x194),'leftButton':_0x4d9fad(0x19e),'statusBar':_0x4d9fad(0x1a0),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x4d9fad(0x19f)]({'app':_0x35b5e4,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)[_0x4d9fad(0x19c)](),'appConfig':_0x35b5e4};};
1
+ 'use strict';function _0x2af0(){const _0x298d56=['22584nlAire','#1843EF','1782729HMyRjG','white','normal','14fXVuoY','3108625xgGiEa','stringify','39271NedmlQ','418956srBIXD','8LMmhEP','back','exports','2267600EQVcmR','trim','4196710wXqgCI','3AiMNJp'];_0x2af0=function(){return _0x298d56;};return _0x2af0();}const _0x1e54e8=_0x4c88;(function(_0x284818,_0x596800){const _0x1c14c4=_0x4c88,_0x3fa38c=_0x284818();while(!![]){try{const _0x2ea7d7=-parseInt(_0x1c14c4(0x13a))/0x1*(parseInt(_0x1c14c4(0x137))/0x2)+parseInt(_0x1c14c4(0x142))/0x3*(parseInt(_0x1c14c4(0x143))/0x4)+parseInt(_0x1c14c4(0x138))/0x5+-parseInt(_0x1c14c4(0x13b))/0x6+-parseInt(_0x1c14c4(0x141))/0x7*(-parseInt(_0x1c14c4(0x13c))/0x8)+-parseInt(_0x1c14c4(0x145))/0x9+-parseInt(_0x1c14c4(0x13f))/0xa;if(_0x2ea7d7===_0x596800)break;else _0x3fa38c['push'](_0x3fa38c['shift']());}catch(_0xe4ff02){_0x3fa38c['push'](_0x3fa38c['shift']());}}}(_0x2af0,0x6fa79));function _0x4c88(_0x44fbc6,_0xae961f){const _0x2af077=_0x2af0();return _0x4c88=function(_0x4c8822,_0x362597){_0x4c8822=_0x4c8822-0x137;let _0x37fadc=_0x2af077[_0x4c8822];return _0x37fadc;},_0x4c88(_0x44fbc6,_0xae961f);}module[_0x1e54e8(0x13e)]=function(_0x33f8a7){const _0x563e7f=_0x1e54e8;let {name:_0x552fed}=_0x33f8a7,_0x56f7cf={'title':_0x552fed,'headerTitle':_0x552fed,'headerColor':_0x563e7f(0x144),'textColor':_0x563e7f(0x146),'leftButton':_0x563e7f(0x13d),'statusBar':_0x563e7f(0x147),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x563e7f(0x139)]({'app':_0x56f7cf,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)[_0x563e7f(0x140)](),'appConfig':_0x56f7cf};};
@@ -1 +1 @@
1
- 'use strict';const _0x55e88a=_0x5d90;(function(_0x9f4cc7,_0x5eaaba){const _0x386307=_0x5d90,_0xd7ae17=_0x9f4cc7();while(!![]){try{const _0x4f379c=-parseInt(_0x386307(0x185))/0x1+-parseInt(_0x386307(0x182))/0x2+-parseInt(_0x386307(0x17d))/0x3*(parseInt(_0x386307(0x17a))/0x4)+parseInt(_0x386307(0x174))/0x5+-parseInt(_0x386307(0x175))/0x6+-parseInt(_0x386307(0x180))/0x7+-parseInt(_0x386307(0x184))/0x8*(-parseInt(_0x386307(0x181))/0x9);if(_0x4f379c===_0x5eaaba)break;else _0xd7ae17['push'](_0xd7ae17['shift']());}catch(_0xca875e){_0xd7ae17['push'](_0xd7ae17['shift']());}}}(_0x25ec,0xb5b25));function _0x25ec(){const _0xbf8d53=['script','556503vcGJWA','exports','icon','9703848WgPohV','76248HPruHu','1514532CVkCnM','map','3968tUzqBR','163334eeNYZf','3919710ibCDYJ','2705718oWLNsH','name','tailwind','./npm-scripts','default','32SNcwOE','description'];_0x25ec=function(){return _0xbf8d53;};return _0x25ec();}function _0x5d90(_0x586d8e,_0x5d78b3){const _0x25ecc9=_0x25ec();return _0x5d90=function(_0x5d901b,_0xa4ba08){_0x5d901b=_0x5d901b-0x174;let _0xc5ee5e=_0x25ecc9[_0x5d901b];return _0xc5ee5e;},_0x5d90(_0x586d8e,_0x5d78b3);}const i=require(_0x55e88a(0x178));module[_0x55e88a(0x17e)]=(_0x25cdea=['s','r'])=>_0x25cdea[_0x55e88a(0x183)](_0x1b1d36=>({'icon':i['default'][_0x1b1d36][_0x55e88a(0x17f)],'name':i[_0x55e88a(0x179)][_0x1b1d36][_0x55e88a(0x176)],'script':i['default'][_0x1b1d36][_0x55e88a(0x17c)],'description':i[_0x55e88a(0x179)][_0x1b1d36]['description']})),module[_0x55e88a(0x17e)]['generateTailWindScripts']=(_0x23abdb=['t'])=>_0x23abdb['map'](_0x44c4e7=>({'icon':i[_0x55e88a(0x177)][_0x44c4e7]['icon'],'name':i['tailwind'][_0x44c4e7][_0x55e88a(0x176)],'script':i['tailwind'][_0x44c4e7][_0x55e88a(0x17c)],'description':i[_0x55e88a(0x177)][_0x44c4e7][_0x55e88a(0x17b)]}));
1
+ 'use strict';const _0x112c68=_0x12b3;function _0x12b3(_0x1f09f8,_0x545db4){const _0x1a007e=_0x1a00();return _0x12b3=function(_0x12b359,_0x1b153e){_0x12b359=_0x12b359-0x92;let _0x553cfc=_0x1a007e[_0x12b359];return _0x553cfc;},_0x12b3(_0x1f09f8,_0x545db4);}(function(_0x115a8a,_0x5e2d54){const _0x45e56e=_0x12b3,_0x3ae23e=_0x115a8a();while(!![]){try{const _0x5e0715=-parseInt(_0x45e56e(0x9c))/0x1*(parseInt(_0x45e56e(0xa2))/0x2)+parseInt(_0x45e56e(0x94))/0x3*(-parseInt(_0x45e56e(0x93))/0x4)+parseInt(_0x45e56e(0x95))/0x5*(-parseInt(_0x45e56e(0x96))/0x6)+-parseInt(_0x45e56e(0xa5))/0x7+parseInt(_0x45e56e(0x98))/0x8*(-parseInt(_0x45e56e(0xa3))/0x9)+-parseInt(_0x45e56e(0x9f))/0xa*(parseInt(_0x45e56e(0x97))/0xb)+-parseInt(_0x45e56e(0xa7))/0xc*(-parseInt(_0x45e56e(0xa1))/0xd);if(_0x5e0715===_0x5e2d54)break;else _0x3ae23e['push'](_0x3ae23e['shift']());}catch(_0x5e3986){_0x3ae23e['push'](_0x3ae23e['shift']());}}}(_0x1a00,0x9e9aa));function _0x1a00(){const _0x12035d=['exports','48039036GekNHM','tailwind','1191116zfSQTI','3AodEgT','5ArYrIJ','5661486jwgQyO','33jEHoXl','40vISQxC','./npm-scripts','script','default','1LtqqkU','icon','map','1984370HoMHNn','name','13tESFaM','301082HkcTwU','380862gWjWIA','description','8083663vGKGeY'];_0x1a00=function(){return _0x12035d;};return _0x1a00();}const i=require(_0x112c68(0x99));module[_0x112c68(0xa6)]=(_0x22ea10=['s','r'])=>_0x22ea10[_0x112c68(0x9e)](_0x1ed785=>({'icon':i[_0x112c68(0x9b)][_0x1ed785][_0x112c68(0x9d)],'name':i[_0x112c68(0x9b)][_0x1ed785][_0x112c68(0xa0)],'script':i[_0x112c68(0x9b)][_0x1ed785][_0x112c68(0x9a)],'description':i[_0x112c68(0x9b)][_0x1ed785]['description']})),module[_0x112c68(0xa6)]['generateTailWindScripts']=(_0x3a8140=['t'])=>_0x3a8140[_0x112c68(0x9e)](_0x28bca1=>({'icon':i['tailwind'][_0x28bca1][_0x112c68(0x9d)],'name':i[_0x112c68(0x92)][_0x28bca1][_0x112c68(0xa0)],'script':i[_0x112c68(0x92)][_0x28bca1][_0x112c68(0x9a)],'description':i[_0x112c68(0x92)][_0x28bca1][_0x112c68(0xa4)]}));
@@ -1 +1 @@
1
- 'use strict';function _0x90d3(){const _0x3418d7=['name','isBlank','100892HfyKSA','ZaUI\x20','input','Existing\x20project','newProject','filter','zmp-cli-core','Folder\x20name\x20is\x20required','inquirer','Choose\x20a\x20template:','map','\x20App','toLowerCase','23345UomTzU','9UdYmeU','italic','list','folderName','32890DvNTPC','9fLqWyN','43238HFAuDa','New\x20project','template','prompt','What\x20action\x20you\x20want\x20to\x20do?','App\x20name\x20is\x20required','731668sIAZyE','1647064hYPGWP','24rfXWBB','App\x20(project)\x20name:','replace','448401ENkDnN','My\x20'];_0x90d3=function(){return _0x3418d7;};return _0x90d3();}const _0x5cfb0a=_0x5a0b;function _0x5a0b(_0x38db06,_0x1ae2da){const _0x90d315=_0x90d3();return _0x5a0b=function(_0x5a0b35,_0x5dbb43){_0x5a0b35=_0x5a0b35-0x1bb;let _0x1244fe=_0x90d315[_0x5a0b35];return _0x1244fe;},_0x5a0b(_0x38db06,_0x1ae2da);}(function(_0x587555,_0x714347){const _0x1c3442=_0x5a0b,_0x888eca=_0x587555();while(!![]){try{const _0x502c06=parseInt(_0x1c3442(0x1c1))/0x1*(parseInt(_0x1c3442(0x1c7))/0x2)+-parseInt(_0x1c3442(0x1d2))/0x3+-parseInt(_0x1c3442(0x1d6))/0x4+parseInt(_0x1c3442(0x1c0))/0x5*(parseInt(_0x1c3442(0x1cf))/0x6)+-parseInt(_0x1c3442(0x1cd))/0x7+parseInt(_0x1c3442(0x1ce))/0x8*(parseInt(_0x1c3442(0x1c6))/0x9)+parseInt(_0x1c3442(0x1c5))/0xa;if(_0x502c06===_0x714347)break;else _0x888eca['push'](_0x888eca['shift']());}catch(_0x462070){_0x888eca['push'](_0x888eca['shift']());}}}(_0x90d3,0x22f65));const e=require(_0x5cfb0a(0x1bb)),r=require('chalk'),{INIT_TEMPLATES:a}=require(_0x5cfb0a(0x1dc)),t=[{'type':_0x5cfb0a(0x1c3),'name':_0x5cfb0a(0x1da),'message':_0x5cfb0a(0x1cb),'choices':[{'name':'Create\x20a\x20new\x20ZMP\x20project','value':!0x0,'short':_0x5cfb0a(0x1c8)},{'name':'Using\x20ZMP\x20to\x20deploy\x20only','value':!0x1,'short':_0x5cfb0a(0x1d9)}]},{'type':_0x5cfb0a(0x1c3),'name':_0x5cfb0a(0x1c9),'when':_0xf960eb=>_0xf960eb[_0x5cfb0a(0x1da)],'message':_0x5cfb0a(0x1bc),'choices':[...a[_0x5cfb0a(0x1db)](_0x2ad020=>_0x2ad020['isBlank'])['map'](_0x10b263=>({'name':_0x10b263['name'],'value':_0x10b263})),new e['Separator'](),...a[_0x5cfb0a(0x1db)](_0x2180b3=>!_0x2180b3[_0x5cfb0a(0x1d5)])[_0x5cfb0a(0x1bd)](_0x22e6ba=>({'name':_0x22e6ba[_0x5cfb0a(0x1d4)],'value':_0x22e6ba}))]},{'type':_0x5cfb0a(0x1d8),'name':_0x5cfb0a(0x1d4),'message':_0x5cfb0a(0x1d0),'default':_0x548a9a=>{const _0x258e89=_0x5cfb0a;let {template:_0x38cbe2}=_0x548a9a;return _0x38cbe2&&!_0x38cbe2[_0x258e89(0x1d5)]?_0x258e89(0x1d3)+_0x38cbe2[_0x258e89(0x1d4)][_0x258e89(0x1d1)](_0x258e89(0x1d7),'')+_0x258e89(0x1be):'My\x20App';},'validate':_0x38a0ff=>new Promise((_0x3d421f,_0x20ff01)=>{const _0x1aec20=_0x5cfb0a;_0x38a0ff?_0x3d421f(!0x0):_0x20ff01(Error(_0x1aec20(0x1cc)));})},{'type':'input','name':_0x5cfb0a(0x1c4),'when':_0x2f6bfa=>_0x2f6bfa[_0x5cfb0a(0x1da)],'message':'Folder\x20name:','suffix':'\x0a'+r[_0x5cfb0a(0x1c2)]('(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)'),'default':_0x17dc03=>{const _0x4aec46=_0x5cfb0a;let {name:_0x897c6c}=_0x17dc03;return _0x897c6c[_0x4aec46(0x1d1)](/ /g,'-')[_0x4aec46(0x1d1)](/[^a-zA-Z0-9-]/g,'')[_0x4aec46(0x1bf)]();},'validate':_0x4e6628=>new Promise((_0x1e525e,_0x446a04)=>{const _0x1826a8=_0x5cfb0a;_0x4e6628?_0x1e525e(!0x0):_0x446a04(Error(_0x1826a8(0x1dd)));})}];module['exports']=function(){const _0x14ca77=_0x5cfb0a;return e[_0x14ca77(0x1ca)](t)['then'](_0x39d0b5=>Promise['resolve'](_0x39d0b5));};
1
+ 'use strict';function _0x51a7(){const _0x457b95=['13148YBCCbf','filter','44924rLjVSL','850HWREtB','exports','7rmSsUo','8050275IpDYbV','My\x20','Existing\x20project','Folder\x20name:','App\x20(project)\x20name:','Using\x20ZMP\x20to\x20deploy\x20only','895DzRUOo','Choose\x20a\x20template:','App\x20name\x20is\x20required','prompt','replace','isBlank','folderName','map','My\x20App','9wyeMjR','inquirer','What\x20action\x20you\x20want\x20to\x20do?','Create\x20a\x20new\x20ZMP\x20project','newProject','then','250212pVhYaz','1852068yiElmv','name','(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)','865632JpKHoC','191798ngJkDd','\x20App','list','toLowerCase','resolve'];_0x51a7=function(){return _0x457b95;};return _0x51a7();}const _0x96069c=_0x5a7b;(function(_0x31388e,_0x32c9e1){const _0x227dc4=_0x5a7b,_0x1e9aab=_0x31388e();while(!![]){try{const _0x2572e1=parseInt(_0x227dc4(0x178))/0x1*(parseInt(_0x227dc4(0x15e))/0x2)+parseInt(_0x227dc4(0x17e))/0x3+parseInt(_0x227dc4(0x163))/0x4*(parseInt(_0x227dc4(0x16f))/0x5)+parseInt(_0x227dc4(0x17f))/0x6*(-parseInt(_0x227dc4(0x168))/0x7)+-parseInt(_0x227dc4(0x182))/0x8+-parseInt(_0x227dc4(0x169))/0x9+-parseInt(_0x227dc4(0x166))/0xa*(-parseInt(_0x227dc4(0x165))/0xb);if(_0x2572e1===_0x32c9e1)break;else _0x1e9aab['push'](_0x1e9aab['shift']());}catch(_0x451938){_0x1e9aab['push'](_0x1e9aab['shift']());}}}(_0x51a7,0x8b51b));function _0x5a7b(_0x2e9a19,_0x4ba7d5){const _0x51a737=_0x51a7();return _0x5a7b=function(_0x5a7bbc,_0x2339b1){_0x5a7bbc=_0x5a7bbc-0x15e;let _0x23cbba=_0x51a737[_0x5a7bbc];return _0x23cbba;},_0x5a7b(_0x2e9a19,_0x4ba7d5);}const e=require(_0x96069c(0x179)),r=require('chalk'),{INIT_TEMPLATES:a}=require('zmp-cli-core'),t=[{'type':_0x96069c(0x160),'name':_0x96069c(0x17c),'message':_0x96069c(0x17a),'choices':[{'name':_0x96069c(0x17b),'value':!0x0,'short':'New\x20project'},{'name':_0x96069c(0x16e),'value':!0x1,'short':_0x96069c(0x16b)}]},{'type':_0x96069c(0x160),'name':'template','when':_0x2d9bb4=>_0x2d9bb4[_0x96069c(0x17c)],'message':_0x96069c(0x170),'choices':[...a[_0x96069c(0x164)](_0x101d08=>_0x101d08[_0x96069c(0x174)])[_0x96069c(0x176)](_0x2ae8e8=>({'name':_0x2ae8e8[_0x96069c(0x180)],'value':_0x2ae8e8})),new e['Separator'](),...a[_0x96069c(0x164)](_0xec80fd=>!_0xec80fd[_0x96069c(0x174)])[_0x96069c(0x176)](_0x1b75df=>({'name':_0x1b75df[_0x96069c(0x180)],'value':_0x1b75df}))]},{'type':'input','name':_0x96069c(0x180),'message':_0x96069c(0x16d),'default':_0x1564ec=>{const _0x51e409=_0x96069c;let {template:_0x4cf9fa}=_0x1564ec;return _0x4cf9fa&&!_0x4cf9fa[_0x51e409(0x174)]?_0x51e409(0x16a)+_0x4cf9fa[_0x51e409(0x180)]['replace']('ZaUI\x20','')+_0x51e409(0x15f):_0x51e409(0x177);},'validate':_0x2d3dcb=>new Promise((_0x4a2bd2,_0x307601)=>{const _0xe7ede9=_0x96069c;_0x2d3dcb?_0x4a2bd2(!0x0):_0x307601(Error(_0xe7ede9(0x171)));})},{'type':'input','name':_0x96069c(0x175),'when':_0x4a6733=>_0x4a6733['newProject'],'message':_0x96069c(0x16c),'suffix':'\x0a'+r['italic'](_0x96069c(0x181)),'default':_0x18ff06=>{const _0x1c9014=_0x96069c;let {name:_0x587c6e}=_0x18ff06;return _0x587c6e[_0x1c9014(0x173)](/ /g,'-')[_0x1c9014(0x173)](/[^a-zA-Z0-9-]/g,'')[_0x1c9014(0x161)]();},'validate':_0x276c88=>new Promise((_0x1fc952,_0x174ad8)=>{_0x276c88?_0x1fc952(!0x0):_0x174ad8(Error('Folder\x20name\x20is\x20required'));})}];module[_0x96069c(0x167)]=function(){const _0xb0e0b3=_0x96069c;return e[_0xb0e0b3(0x172)](t)[_0xb0e0b3(0x17d)](_0xfa8d9=>Promise[_0xb0e0b3(0x162)](_0xfa8d9));};
@@ -1 +1 @@
1
- 'use strict';function _0x3ca3(){const _0x3f7f97=['4775655mwTHAn','4702768QGxwke','38011150VqBopw','prod','3051EPVnod','run\x20development\x20server','deploy\x20mini\x20app\x20for\x20production','186KmVerM','tailwind','start','1411GyyuFh','forEach','76QiFwqV','558BxOgYj','exports','zmp\x20deploy','serve','http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','build:css','zmp\x20start','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','deploy','keys','dev','116557CmCuHt','default','map','7539516WyBSAB','join','name','split','httpServer','build\x20tailwind\x20css'];_0x3ca3=function(){return _0x3f7f97;};return _0x3ca3();}function _0x3b8e(_0x2ddd3f,_0xb24a37){const _0x3ca3c8=_0x3ca3();return _0x3b8e=function(_0x3b8e22,_0x2ac162){_0x3b8e22=_0x3b8e22-0xf6;let _0x2f7d4c=_0x3ca3c8[_0x3b8e22];return _0x2f7d4c;},_0x3b8e(_0x2ddd3f,_0xb24a37);}const _0x332c87=_0x3b8e;(function(_0x5680e5,_0x5b75bc){const _0x150fc5=_0x3b8e,_0x4408da=_0x5680e5();while(!![]){try{const _0x8db835=-parseInt(_0x150fc5(0x10a))/0x1*(parseInt(_0x150fc5(0x10d))/0x2)+parseInt(_0x150fc5(0x104))/0x3*(-parseInt(_0x150fc5(0x10c))/0x4)+-parseInt(_0x150fc5(0x100))/0x5+parseInt(_0x150fc5(0x107))/0x6*(-parseInt(_0x150fc5(0xf7))/0x7)+-parseInt(_0x150fc5(0x101))/0x8+-parseInt(_0x150fc5(0xfa))/0x9+parseInt(_0x150fc5(0x102))/0xa;if(_0x8db835===_0x5b75bc)break;else _0x4408da['push'](_0x4408da['shift']());}catch(_0x89c638){_0x4408da['push'](_0x4408da['shift']());}}}(_0x3ca3,0x77ee9));const e={'d':_0x332c87(0xf6),'p':_0x332c87(0x103),'s':_0x332c87(0x109),'v':_0x332c87(0x110),'r':_0x332c87(0x115),'t':_0x332c87(0x112)};function s(_0x171625){const _0x38c6ac=_0x332c87;return _0x171625[_0x38c6ac(0xfd)]('_')[0x0][_0x38c6ac(0xfd)]('')[_0x38c6ac(0xf9)](_0xf64edc=>e[_0xf64edc])[_0x38c6ac(0xfb)]('-');}const t={'default':{'s':{'icon':'🔥','script':_0x332c87(0x113),'description':_0x332c87(0x105)},'r':{'icon':'🙏','script':_0x332c87(0x10f),'description':_0x332c87(0x106)}},'httpServer':{'v':{'icon':'🔧','script':_0x332c87(0x111),'description':_0x332c87(0x105)},'s':{'icon':'🔥','script':'npm\x20run\x20serve','description':_0x332c87(0x105)}},'tailwind':{'t':{'icon':'🔧','script':_0x332c87(0x114),'description':_0x332c87(0xff)}}};Object[_0x332c87(0x116)](t[_0x332c87(0xf8)])[_0x332c87(0x10b)](_0x526eff=>{const _0x2b2b24=_0x332c87;t['default'][_0x526eff][_0x2b2b24(0xfc)]=s(_0x526eff);}),Object['keys'](t[_0x332c87(0xfe)])[_0x332c87(0x10b)](_0x4c3178=>{const _0x3632cd=_0x332c87;t[_0x3632cd(0xfe)][_0x4c3178][_0x3632cd(0xfc)]=s(_0x4c3178);}),Object[_0x332c87(0x116)](t[_0x332c87(0x108)])[_0x332c87(0x10b)](_0x3590ef=>{const _0x1b9725=_0x332c87;t[_0x1b9725(0x108)][_0x3590ef][_0x1b9725(0xfc)]=s(_0x3590ef);}),module[_0x332c87(0x10e)]=t;
1
+ 'use strict';function _0x1236(_0x49a141,_0xcad545){const _0x3f02a3=_0x3f02();return _0x1236=function(_0x12360a,_0x3f7617){_0x12360a=_0x12360a-0x15c;let _0x56dc55=_0x3f02a3[_0x12360a];return _0x56dc55;},_0x1236(_0x49a141,_0xcad545);}const _0x19a114=_0x1236;(function(_0x48a08c,_0x1c2eee){const _0x1e00d0=_0x1236,_0x13e4ee=_0x48a08c();while(!![]){try{const _0x214c83=parseInt(_0x1e00d0(0x15d))/0x1+parseInt(_0x1e00d0(0x16e))/0x2+parseInt(_0x1e00d0(0x16f))/0x3*(parseInt(_0x1e00d0(0x169))/0x4)+parseInt(_0x1e00d0(0x167))/0x5*(-parseInt(_0x1e00d0(0x16d))/0x6)+parseInt(_0x1e00d0(0x163))/0x7+parseInt(_0x1e00d0(0x15c))/0x8+-parseInt(_0x1e00d0(0x166))/0x9*(parseInt(_0x1e00d0(0x164))/0xa);if(_0x214c83===_0x1c2eee)break;else _0x13e4ee['push'](_0x13e4ee['shift']());}catch(_0x3646de){_0x13e4ee['push'](_0x13e4ee['shift']());}}}(_0x3f02,0x2989a));function _0x3f02(){const _0x2b9ecf=['2351960jmogaS','258657ZWBTrm','keys','zmp\x20deploy','name','start','default','1911490RDfJEE','10MMCFdI','split','8818857dohqlR','3785cYCYXw','prod','16nuHcCE','deploy','forEach','build\x20tailwind\x20css','222FjmhyK','670972EQoxXf','12609YJtKyg','serve','build:css','dev','exports','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','tailwind'];_0x3f02=function(){return _0x2b9ecf;};return _0x3f02();}const e={'d':_0x19a114(0x172),'p':_0x19a114(0x168),'s':_0x19a114(0x161),'v':_0x19a114(0x170),'r':_0x19a114(0x16a),'t':_0x19a114(0x171)};function s(_0x8a451a){const _0x4b0d94=_0x19a114;return _0x8a451a['split']('_')[0x0][_0x4b0d94(0x165)]('')['map'](_0x2dacbe=>e[_0x2dacbe])['join']('-');}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':'run\x20development\x20server'},'r':{'icon':'🙏','script':_0x19a114(0x15f),'description':'deploy\x20mini\x20app\x20for\x20production'}},'httpServer':{'v':{'icon':'🔧','script':'http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','description':'run\x20development\x20server'},'s':{'icon':'🔥','script':'npm\x20run\x20serve','description':'run\x20development\x20server'}},'tailwind':{'t':{'icon':'🔧','script':_0x19a114(0x174),'description':_0x19a114(0x16c)}}};Object[_0x19a114(0x15e)](t[_0x19a114(0x162)])['forEach'](_0x47e114=>{const _0x50870f=_0x19a114;t[_0x50870f(0x162)][_0x47e114][_0x50870f(0x160)]=s(_0x47e114);}),Object[_0x19a114(0x15e)](t['httpServer'])[_0x19a114(0x16b)](_0x3b093d=>{const _0x3389e3=_0x19a114;t['httpServer'][_0x3b093d][_0x3389e3(0x160)]=s(_0x3b093d);}),Object['keys'](t[_0x19a114(0x175)])[_0x19a114(0x16b)](_0x4e27c8=>{const _0x520a8d=_0x19a114;t[_0x520a8d(0x175)][_0x4e27c8][_0x520a8d(0x160)]=s(_0x4e27c8);}),module[_0x19a114(0x173)]=t;
package/deploy/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x4410(){const _0x594fb2=['versionStatus','18bcyTRu','filename','Update\x20app\x20with\x20new\x20version','7072296yJHqFz','statusDone','nextVersion','3526400IJOITo','../utils/env','data','569524aEawxr','293730frgZqX','zip','4kVFCLP','appConfig','includes','appUrl','listAsyncJS','dependencies','desc','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','packageJson','listSyncJS','join','path','memory','zmp','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','\x20View\x20app\x20at:\x0a','entries','error_msg','statusStart','length','4880172SbAOse','customProject','cwd','./utils/request-upload','../config','Error\x20deploying\x20your\x20app','Deploying\x20Your\x20App\x20','../build/index','token','exports','3996160lqzBpX','stringify','requestUploadResumable','8068770wRouvQ','green','\x20💪','info','log-symbols','bold','../utils/fs-extra','env','react','outputDir','www','Deploy\x20Done!'];_0x4410=function(){return _0x594fb2;};return _0x4410();}const _0x5c97c3=_0x5bf4;(function(_0x44d1ea,_0x340e79){const _0x3b70ab=_0x5bf4,_0x3a4517=_0x44d1ea();while(!![]){try{const _0xbe4cd2=parseInt(_0x3b70ab(0x21f))/0x1*(parseInt(_0x3b70ab(0x21d))/0x2)+-parseInt(_0x3b70ab(0x213))/0x3*(-parseInt(_0x3b70ab(0x21c))/0x4)+parseInt(_0x3b70ab(0x219))/0x5+parseInt(_0x3b70ab(0x1f9))/0x6+-parseInt(_0x3b70ab(0x203))/0x7+-parseInt(_0x3b70ab(0x216))/0x8+-parseInt(_0x3b70ab(0x206))/0x9;if(_0xbe4cd2===_0x340e79)break;else _0x3a4517['push'](_0x3a4517['shift']());}catch(_0xbe57e8){_0x3a4517['push'](_0x3a4517['shift']());}}}(_0x4410,0x94aad));function _0x5bf4(_0x5846a9,_0x8420bf){const _0x441093=_0x4410();return _0x5bf4=function(_0x5bf44f,_0x4835af){_0x5bf44f=_0x5bf44f-0x1ef;let _0x2d7360=_0x441093[_0x5bf44f];return _0x2d7360;},_0x5bf4(_0x5846a9,_0x8420bf);}const e=require('chalk'),t=require('path'),r=require('zip-local'),i=require(_0x5c97c3(0x20a)),a=require('qrcode-terminal'),s=require(_0x5c97c3(0x1fd)),n=require(_0x5c97c3(0x200)),o=require(_0x5c97c3(0x21a)),{errorExit:l}=require('../utils/error'),p=require('./utils/upload-app'),u=require(_0x5c97c3(0x20c)),c=require(_0x5c97c3(0x1fc)),d=e['gray'](_0x5c97c3(0x1f3)),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};module[_0x5c97c3(0x202)]=async(_0x29ca49={},_0x41f636=f)=>{const _0x3836ba=_0x5c97c3;let _0x18c926,_0x55540a,_0x17d0ab,_0x4759cb=_0x29ca49[_0x3836ba(0x1fb)]||process['cwd'](),_0x393618=_0x29ca49[_0x3836ba(0x20f)]||_0x3836ba(0x210),_0xfb2c19=s['api_domain'],_0x335731=_0x45c852=>t[_0x3836ba(0x1ef)](_0x4759cb,_0x45c852),_0x5a129f=o['getEnv'](s[_0x3836ba(0x20d)][_0x3836ba(0x201)]),_0x3089f=s[_0x3836ba(0x214)][_0x3836ba(0x220)],_0x19032a=s[_0x3836ba(0x214)][_0x3836ba(0x227)],_0x4ee7e9=!0x0;try{_0x18c926=require(_0x335731(_0x3089f));}catch(_0x4d91ba){try{_0x18c926=require(_0x335731(_0x393618+'/'+_0x3089f)),_0x4ee7e9=!0x1;}catch(_0xa91a94){l(Error(s[_0x3836ba(0x1f6)]['app_config_not_found']));}}let _0x3bba46={};try{let _0x1197af=require(_0x335731(_0x19032a))[_0x3836ba(0x224)];Object[_0x3836ba(0x1f5)](_0x1197af)['forEach'](([_0x3140dc,_0x55ccc1])=>{const _0xfc24ba=_0x3836ba;(_0x3140dc[_0xfc24ba(0x221)](_0xfc24ba(0x1f2))||_0x3140dc[_0xfc24ba(0x221)](_0xfc24ba(0x20e)))&&(_0x3bba46[_0x3140dc]=_0x55ccc1);});}catch(_0x4fed5b){}let _0x57f923={'appName':_0x18c926['app']['title'],'appDesc':_0x29ca49[_0x3836ba(0x225)]||_0x3836ba(0x215),'appConfig':JSON['stringify'](_0x18c926),'frameworkVersions':JSON[_0x3836ba(0x204)](_0x3bba46)};try{let _0x2f203d=''+_0xfb2c19+s[_0x3836ba(0x1f0)][_0x3836ba(0x205)],_0x2af301=await c(_0x2f203d,_0x57f923,_0x29ca49[_0x3836ba(0x212)],_0x5a129f);_0x55540a=_0x2af301[_0x3836ba(0x218)],_0x17d0ab=_0x2af301['identifier'];}catch(_0x58aed9){l(_0x58aed9);}if(_0x29ca49[_0x3836ba(0x1fa)]){let _0x1f1a36=0x0;_0x18c926[_0x3836ba(0x228)]&&_0x18c926[_0x3836ba(0x228)][_0x3836ba(0x1f8)]>0x0&&(_0x1f1a36+=0x1),_0x18c926[_0x3836ba(0x223)]&&_0x18c926[_0x3836ba(0x223)][_0x3836ba(0x1f8)]>0x0&&(_0x1f1a36+=0x1),0x0===_0x1f1a36&&l(Error(_0x3836ba(0x226))),_0x4ee7e9&&u['writeFileSync'](_0x335731(_0x393618+'/'+s[_0x3836ba(0x214)][_0x3836ba(0x220)]),JSON['stringify'](_0x18c926));}else _0x18c926=await n({..._0x29ca49,'appConfigJson':_0x18c926,'nextVersion':_0x55540a},_0x41f636);_0x41f636[_0x3836ba(0x1f7)](_0x3836ba(0x1ff)+d);try{let _0x354425=await new Promise((_0x23b7c2,_0x3d14cc)=>{const _0x113187=_0x3836ba;r[_0x113187(0x21e)](_0x335731(_0x393618),function(_0x1579cf,_0x5e759b){const _0x515dd1=_0x113187;return _0x1579cf?_0x3d14cc(_0x1579cf):(_0x5e759b['compress'](),_0x23b7c2(_0x5e759b[_0x515dd1(0x1f1)]()));});}),_0x11f386={..._0x57f923,'appBuffer':_0x354425,'identifier':_0x17d0ab},_0x5c9b5f=await p(_0x11f386,_0x29ca49,_0x41f636),_0x1ecd98=_0x5c9b5f&&_0x5c9b5f[_0x3836ba(0x21b)]&&_0x5c9b5f['data'][_0x3836ba(0x222)];a['generate'](_0x1ecd98,{'small':!0x0},function(_0x9d42c7){const _0xb0217c=_0x3836ba;let _0x1603d5=''+e[_0xb0217c(0x20b)](i[_0xb0217c(0x209)]+_0xb0217c(0x1f4)+_0x9d42c7);_0x41f636[_0xb0217c(0x217)](e[_0xb0217c(0x20b)][_0xb0217c(0x207)](_0xb0217c(0x211))+_0xb0217c(0x208)),_0x41f636[_0xb0217c(0x217)](e['bold'][_0xb0217c(0x207)]('Version:')+'\x20'+_0x55540a),_0x41f636['text'](_0x1603d5);});}catch(_0xb59567){_0x41f636['statusError'](_0x3836ba(0x1fe)),l(_0xb59567);}};
1
+ 'use strict';const _0x385d5f=_0x210c;function _0xfff0(){const _0x454559=['writeFileSync','1806652XrRRqL','memory','statusDone','../build/index','Deploying\x20Your\x20App\x20','versionStatus','green','gray','12190017CitPkd','listSyncJS','env','compress','title','4013090BOvUhz','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','qrcode-terminal','../utils/error','api_domain','../config','includes','nextVersion','stringify','desc','listAsyncJS','zmp','www','app_config_not_found','\x20💪','Error\x20deploying\x20your\x20app','zip','1290072JPUkIW','text','\x20View\x20app\x20at:\x0a','dependencies','data','1046574PqJCvW','Update\x20app\x20with\x20new\x20version','cwd','outputDir','entries','3cNOwOt','customProject','generate','exports','13333424ZXhimK','appUrl','bold','appConfig','app','identifier','zip-local','Version:','react','366116LWxZCM','length','path','requestUploadResumable','./utils/request-upload','filename','error_msg','token'];_0xfff0=function(){return _0x454559;};return _0xfff0();}(function(_0x8cfac9,_0x5b6d70){const _0x5a862a=_0x210c,_0x534d65=_0x8cfac9();while(!![]){try{const _0x35aab3=-parseInt(_0x5a862a(0x181))/0x1+parseInt(_0x5a862a(0x19c))/0x2+-parseInt(_0x5a862a(0x186))/0x3*(-parseInt(_0x5a862a(0x193))/0x4)+parseInt(_0x5a862a(0x1a9))/0x5+parseInt(_0x5a862a(0x1ba))/0x6+-parseInt(_0x5a862a(0x1a4))/0x7+parseInt(_0x5a862a(0x18a))/0x8;if(_0x35aab3===_0x5b6d70)break;else _0x534d65['push'](_0x534d65['shift']());}catch(_0x2a9cdc){_0x534d65['push'](_0x534d65['shift']());}}}(_0xfff0,0xd9916));function _0x210c(_0x836b57,_0x1baa03){const _0xfff09f=_0xfff0();return _0x210c=function(_0x210ca5,_0x4be745){_0x210ca5=_0x210ca5-0x181;let _0x13981c=_0xfff09f[_0x210ca5];return _0x13981c;},_0x210c(_0x836b57,_0x1baa03);}const e=require('chalk'),t=require(_0x385d5f(0x195)),r=require(_0x385d5f(0x190)),i=require('log-symbols'),a=require(_0x385d5f(0x1ab)),s=require(_0x385d5f(0x1ae)),n=require(_0x385d5f(0x19f)),o=require('../utils/env'),{errorExit:l}=require(_0x385d5f(0x1ac)),p=require('./utils/upload-app'),u=require('../utils/fs-extra'),c=require(_0x385d5f(0x197)),d=e[_0x385d5f(0x1a3)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};module[_0x385d5f(0x189)]=async(_0x1530e5={},_0x32231b=f)=>{const _0x5702d3=_0x385d5f;let _0x147be7,_0x14ce1b,_0x439c04,_0x30826e=_0x1530e5[_0x5702d3(0x183)]||process['cwd'](),_0x3d9499=_0x1530e5[_0x5702d3(0x184)]||_0x5702d3(0x1b5),_0x357248=s[_0x5702d3(0x1ad)],_0x45d243=_0x4371c2=>t['join'](_0x30826e,_0x4371c2),_0x31dff6=o['getEnv'](s[_0x5702d3(0x1a6)][_0x5702d3(0x19a)]),_0x46c60d=s[_0x5702d3(0x198)][_0x5702d3(0x18d)],_0xb8c8b0=s['filename']['packageJson'],_0x493065=!0x0;try{_0x147be7=require(_0x45d243(_0x46c60d));}catch(_0x3e397d){try{_0x147be7=require(_0x45d243(_0x3d9499+'/'+_0x46c60d)),_0x493065=!0x1;}catch(_0x211bac){l(Error(s[_0x5702d3(0x199)][_0x5702d3(0x1b6)]));}}let _0x20e422={};try{let _0x3d3a3b=require(_0x45d243(_0xb8c8b0))[_0x5702d3(0x1bd)];Object[_0x5702d3(0x185)](_0x3d3a3b)['forEach'](([_0xc6237f,_0x5b2a40])=>{const _0x57052f=_0x5702d3;(_0xc6237f[_0x57052f(0x1af)](_0x57052f(0x1b4))||_0xc6237f[_0x57052f(0x1af)](_0x57052f(0x192)))&&(_0x20e422[_0xc6237f]=_0x5b2a40);});}catch(_0x1e7758){}let _0x255172={'appName':_0x147be7[_0x5702d3(0x18e)][_0x5702d3(0x1a8)],'appDesc':_0x1530e5[_0x5702d3(0x1b2)]||_0x5702d3(0x182),'appConfig':JSON['stringify'](_0x147be7),'frameworkVersions':JSON[_0x5702d3(0x1b1)](_0x20e422)};try{let _0x38b137=''+_0x357248+s['path'][_0x5702d3(0x196)],_0x55e327=await c(_0x38b137,_0x255172,_0x1530e5[_0x5702d3(0x1a1)],_0x31dff6);_0x14ce1b=_0x55e327[_0x5702d3(0x1b0)],_0x439c04=_0x55e327[_0x5702d3(0x18f)];}catch(_0x5ae7c8){l(_0x5ae7c8);}if(_0x1530e5[_0x5702d3(0x187)]){let _0x4c9c2b=0x0;_0x147be7[_0x5702d3(0x1a5)]&&_0x147be7[_0x5702d3(0x1a5)][_0x5702d3(0x194)]>0x0&&(_0x4c9c2b+=0x1),_0x147be7[_0x5702d3(0x1b3)]&&_0x147be7[_0x5702d3(0x1b3)]['length']>0x0&&(_0x4c9c2b+=0x1),0x0===_0x4c9c2b&&l(Error(_0x5702d3(0x1aa))),_0x493065&&u[_0x5702d3(0x19b)](_0x45d243(_0x3d9499+'/'+s[_0x5702d3(0x198)]['appConfig']),JSON[_0x5702d3(0x1b1)](_0x147be7));}else _0x147be7=await n({..._0x1530e5,'appConfigJson':_0x147be7,'nextVersion':_0x14ce1b},_0x32231b);_0x32231b['statusStart'](_0x5702d3(0x1a0)+d);try{let _0x5bf253=await new Promise((_0x5997d2,_0x499a83)=>{const _0x37e338=_0x5702d3;r[_0x37e338(0x1b9)](_0x45d243(_0x3d9499),function(_0x3a6dcf,_0x48e14a){const _0x4e2077=_0x37e338;return _0x3a6dcf?_0x499a83(_0x3a6dcf):(_0x48e14a[_0x4e2077(0x1a7)](),_0x5997d2(_0x48e14a[_0x4e2077(0x19d)]()));});}),_0x5e56f7={..._0x255172,'appBuffer':_0x5bf253,'identifier':_0x439c04},_0x204c8e=await p(_0x5e56f7,_0x1530e5,_0x32231b),_0x50e717=_0x204c8e&&_0x204c8e[_0x5702d3(0x1be)]&&_0x204c8e[_0x5702d3(0x1be)][_0x5702d3(0x18b)];a[_0x5702d3(0x188)](_0x50e717,{'small':!0x0},function(_0x49d5e6){const _0x1890b0=_0x5702d3;let _0x29fe26=''+e[_0x1890b0(0x18c)](i['info']+_0x1890b0(0x1bc)+_0x49d5e6);_0x32231b[_0x1890b0(0x19e)](e[_0x1890b0(0x18c)][_0x1890b0(0x1a2)]('Deploy\x20Done!')+_0x1890b0(0x1b7)),_0x32231b[_0x1890b0(0x19e)](e['bold'][_0x1890b0(0x1a2)](_0x1890b0(0x191))+'\x20'+_0x14ce1b),_0x32231b[_0x1890b0(0x1bb)](_0x29fe26);});}catch(_0x2bf1df){_0x32231b['statusError'](_0x5702d3(0x1b8)),l(_0x2bf1df);}};
@@ -1 +1 @@
1
- 'use strict';const _0x1f54a4=_0x21ef;function _0x21ef(_0x2b023f,_0x3abff7){const _0x5d251f=_0x5d25();return _0x21ef=function(_0x21ef00,_0x11d4ff){_0x21ef00=_0x21ef00-0x8e;let _0x26ff67=_0x5d251f[_0x21ef00];return _0x26ff67;},_0x21ef(_0x2b023f,_0x3abff7);}(function(_0x4423ca,_0x1faa62){const _0x3fa612=_0x21ef,_0x2bfe60=_0x4423ca();while(!![]){try{const _0x2e85e6=parseInt(_0x3fa612(0xa8))/0x1+parseInt(_0x3fa612(0x9e))/0x2*(parseInt(_0x3fa612(0x8f))/0x3)+parseInt(_0x3fa612(0xa4))/0x4*(parseInt(_0x3fa612(0x9b))/0x5)+parseInt(_0x3fa612(0x92))/0x6+parseInt(_0x3fa612(0xac))/0x7*(-parseInt(_0x3fa612(0xa5))/0x8)+-parseInt(_0x3fa612(0x98))/0x9+-parseInt(_0x3fa612(0xad))/0xa;if(_0x2e85e6===_0x1faa62)break;else _0x2bfe60['push'](_0x2bfe60['shift']());}catch(_0x352cfb){_0x2bfe60['push'](_0x2bfe60['shift']());}}}(_0x5d25,0x1b1de));const e=require(_0x1f54a4(0x94)),{versionStatus:t}=require(_0x1f54a4(0x97)),i=require(_0x1f54a4(0x96)),r=[{'type':_0x1f54a4(0x9d),'name':'versionStatus','message':_0x1f54a4(0xa6),'choices':Object[_0x1f54a4(0xae)](t)[_0x1f54a4(0x99)](_0x76bfb3=>({'name':i[_0x1f54a4(0xab)](_0x76bfb3),'value':t[_0x76bfb3]})),'when':_0x5b2fc6=>!_0x5b2fc6[_0x1f54a4(0x9a)],'validate':_0x3a1ab2=>new Promise((_0x18f993,_0xad6f4)=>{const _0x31bf5a=_0x1f54a4;_0x3a1ab2&&_0x3a1ab2[_0x31bf5a(0xa2)]?_0x18f993(!0x0):_0xad6f4(Error('Server\x20type\x20is\x20required!'));})},{'type':_0x1f54a4(0x8e),'name':_0x1f54a4(0x93),'message':'Description:','when':_0x30cb59=>!_0x30cb59['quit'],'validate':_0x249051=>new Promise((_0x5785b1,_0x382c05)=>{const _0x37c311=_0x1f54a4;_0x249051&&_0x249051['length']?_0x5785b1(!0x0):_0x382c05(Error(_0x37c311(0x90)));})}],s=[{'type':_0x1f54a4(0x9d),'name':_0x1f54a4(0x9a),'message':_0x1f54a4(0x9c),'choices':[{'name':_0x1f54a4(0xaa),'value':!0x1},{'name':_0x1f54a4(0xa1),'value':!0x0}]},{'type':_0x1f54a4(0x8e),'name':'outputDir','message':_0x1f54a4(0xa7),'when':_0x25a049=>!_0x25a049[_0x1f54a4(0x9a)],'default':_0x1f54a4(0x95)}];module[_0x1f54a4(0xa3)]=async function(_0x4a7c08){const _0x1b4324=_0x1f54a4;let _0x37e301=_0x4a7c08?[...r]:[...s,...r];return e[_0x1b4324(0xa9)](_0x37e301)[_0x1b4324(0xa0)](_0x4d690c=>(_0x4d690c['customProject']=!0x1,!0x1===_0x4d690c[_0x1b4324(0x9a)]&&(_0x4d690c[_0x1b4324(0x9f)]=!0x0),Promise[_0x1b4324(0x91)](_0x4d690c)));};function _0x5d25(){const _0x591a58=['www','lodash','../../utils/constants','902061GQXJJP','map','quit','4410dCQkIy','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','list','6XSOGTE','customProject','then','Quit','length','exports','808OhSlDL','8pmZYVY','What\x20version\x20status\x20are\x20you\x20deploying?','Where\x20is\x20your\x20dist\x20folder?','88609Qbcsvk','prompt','Deploy\x20your\x20existing\x20project','capitalize','1379763aXbVFm','1912400kAdvhF','keys','input','169110CncbWV','Description\x20is\x20required!','resolve','982590QLflWN','desc','inquirer'];_0x5d25=function(){return _0x591a58;};return _0x5d25();}
1
+ 'use strict';function _0x52fb(){const _0x25c69=['resolve','exports','quit','Where\x20is\x20your\x20dist\x20folder?','outputDir','keys','10040996kHmCdX','capitalize','../../utils/constants','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','35522631ipRrIl','Description:','2617554sMLvJo','5CKKleP','46qDilXH','40801cfFOUr','versionStatus','Quit','input','lodash','5636892tvTRnp','inquirer','desc','What\x20version\x20status\x20are\x20you\x20deploying?','3660764ibKktt','www','length','then','list','1364272tUYakn'];_0x52fb=function(){return _0x25c69;};return _0x52fb();}const _0x785c82=_0x5498;(function(_0x30e7ca,_0x5e644f){const _0x212ee3=_0x5498,_0x232c87=_0x30e7ca();while(!![]){try{const _0x1a4a11=parseInt(_0x212ee3(0x1e4))/0x1*(parseInt(_0x212ee3(0x1e3))/0x2)+parseInt(_0x212ee3(0x1e1))/0x3+-parseInt(_0x212ee3(0x1cf))/0x4*(-parseInt(_0x212ee3(0x1e2))/0x5)+parseInt(_0x212ee3(0x1cb))/0x6+parseInt(_0x212ee3(0x1db))/0x7+-parseInt(_0x212ee3(0x1d4))/0x8+-parseInt(_0x212ee3(0x1df))/0x9;if(_0x1a4a11===_0x5e644f)break;else _0x232c87['push'](_0x232c87['shift']());}catch(_0x167cb5){_0x232c87['push'](_0x232c87['shift']());}}}(_0x52fb,0xefe15));function _0x5498(_0x5591c9,_0x247838){const _0x52fb85=_0x52fb();return _0x5498=function(_0x549851,_0x46e656){_0x549851=_0x549851-0x1c8;let _0x571c68=_0x52fb85[_0x549851];return _0x571c68;},_0x5498(_0x5591c9,_0x247838);}const e=require(_0x785c82(0x1cc)),{versionStatus:t}=require(_0x785c82(0x1dd)),i=require(_0x785c82(0x1ca)),r=[{'type':_0x785c82(0x1d3),'name':_0x785c82(0x1e5),'message':_0x785c82(0x1ce),'choices':Object[_0x785c82(0x1da)](t)['map'](_0x4d87aa=>({'name':i[_0x785c82(0x1dc)](_0x4d87aa),'value':t[_0x4d87aa]})),'when':_0x4b888f=>!_0x4b888f[_0x785c82(0x1d7)],'validate':_0xdd68a7=>new Promise((_0x2ca61c,_0x4c10dd)=>{const _0x476fc5=_0x785c82;_0xdd68a7&&_0xdd68a7[_0x476fc5(0x1d1)]?_0x2ca61c(!0x0):_0x4c10dd(Error('Server\x20type\x20is\x20required!'));})},{'type':_0x785c82(0x1c9),'name':_0x785c82(0x1cd),'message':_0x785c82(0x1e0),'when':_0x42b909=>!_0x42b909[_0x785c82(0x1d7)],'validate':_0xb041d2=>new Promise((_0x1fe1c6,_0x35448c)=>{const _0x65d013=_0x785c82;_0xb041d2&&_0xb041d2[_0x65d013(0x1d1)]?_0x1fe1c6(!0x0):_0x35448c(Error('Description\x20is\x20required!'));})}],s=[{'type':_0x785c82(0x1d3),'name':'quit','message':_0x785c82(0x1de),'choices':[{'name':'Deploy\x20your\x20existing\x20project','value':!0x1},{'name':_0x785c82(0x1c8),'value':!0x0}]},{'type':'input','name':_0x785c82(0x1d9),'message':_0x785c82(0x1d8),'when':_0x4427e4=>!_0x4427e4[_0x785c82(0x1d7)],'default':_0x785c82(0x1d0)}];module[_0x785c82(0x1d6)]=async function(_0x3568db){const _0x4b7e13=_0x785c82;let _0x2db0ab=_0x3568db?[...r]:[...s,...r];return e['prompt'](_0x2db0ab)[_0x4b7e13(0x1d2)](_0x5442d6=>(_0x5442d6['customProject']=!0x1,!0x1===_0x5442d6[_0x4b7e13(0x1d7)]&&(_0x5442d6['customProject']=!0x0),Promise[_0x4b7e13(0x1d5)](_0x5442d6)));};
@@ -1 +1 @@
1
- 'use strict';function _0x309b(_0x4340b9,_0x4c06aa){const _0xad748d=_0xad74();return _0x309b=function(_0x309bf3,_0x501bf3){_0x309bf3=_0x309bf3-0x167;let _0x3d75f9=_0xad748d[_0x309bf3];return _0x3d75f9;},_0x309b(_0x4340b9,_0x4c06aa);}const _0xee7f8c=_0x309b;function _0xad74(){const _0x46603b=['176guqZBm','125127NUsnfN','10aCxhJZ','214130nGtPgY','get','7694771wUuynz','exports','1415420pkMqRo','Bearer\x20','2189092HhLDkE','../../utils/axios','59123kqsuKg','err','error_code','permission_denied','3oAWBlx','6847524hMEoES','data'];_0xad74=function(){return _0x46603b;};return _0xad74();}(function(_0x58794d,_0x4e768b){const _0x3f8069=_0x309b,_0x29330c=_0x58794d();while(!![]){try{const _0x9f2c4=parseInt(_0x3f8069(0x174))/0x1+parseInt(_0x3f8069(0x170))/0x2*(-parseInt(_0x3f8069(0x178))/0x3)+-parseInt(_0x3f8069(0x172))/0x4*(-parseInt(_0x3f8069(0x16b))/0x5)+parseInt(_0x3f8069(0x167))/0x6+-parseInt(_0x3f8069(0x16e))/0x7+parseInt(_0x3f8069(0x169))/0x8*(parseInt(_0x3f8069(0x16a))/0x9)+parseInt(_0x3f8069(0x16c))/0xa;if(_0x9f2c4===_0x4e768b)break;else _0x29330c['push'](_0x29330c['shift']());}catch(_0x27e668){_0x29330c['push'](_0x29330c['shift']());}}}(_0xad74,0xc7087));const {axiosClient:r}=require(_0xee7f8c(0x173)),e=require('../../config'),i=async(_0x523b9f,_0x288600,_0x2ff1a3,_0x2ed173)=>{const _0x369ea2=_0xee7f8c;let {appName:_0x2f44dc,appDesc:_0x10cb53,appConfig:_0x11561f,frameworkVersions:_0x5d6fa7}=_0x288600,_0x1c652f={'Authorization':_0x369ea2(0x171)+_0x2ed173,'cache-control':'no-cache'},_0x284164=(await r[_0x369ea2(0x16d)](_0x523b9f,{'params':{'name':_0x2f44dc,'desc':_0x10cb53,'config':_0x11561f,'versionStatus':_0x2ff1a3,'frameworkVersions':_0x5d6fa7},'headers':_0x1c652f,'withCredentials':!0x0}))[_0x369ea2(0x168)];if(!_0x284164||_0x284164['err']<0x0){if(_0x284164&&_0x284164[_0x369ea2(0x175)]===e[_0x369ea2(0x176)]['permission_denied'])throw Error(e['error_msg'][_0x369ea2(0x177)]);throw Error(JSON['stringify'](_0x284164));}return _0x284164[_0x369ea2(0x168)];};module[_0xee7f8c(0x16f)]=i;
1
+ 'use strict';const _0x1e615b=_0xe257;function _0xe257(_0x512ca7,_0x23d3a1){const _0x38c730=_0x38c7();return _0xe257=function(_0xe2570f,_0x3ffa45){_0xe2570f=_0xe2570f-0x139;let _0x34f7c1=_0x38c730[_0xe2570f];return _0x34f7c1;},_0xe257(_0x512ca7,_0x23d3a1);}(function(_0x492517,_0x5d95b4){const _0x11e5e7=_0xe257,_0x2ce6cf=_0x492517();while(!![]){try{const _0x231f63=-parseInt(_0x11e5e7(0x13c))/0x1+parseInt(_0x11e5e7(0x140))/0x2*(parseInt(_0x11e5e7(0x143))/0x3)+parseInt(_0x11e5e7(0x149))/0x4*(parseInt(_0x11e5e7(0x147))/0x5)+parseInt(_0x11e5e7(0x13e))/0x6+parseInt(_0x11e5e7(0x142))/0x7+parseInt(_0x11e5e7(0x139))/0x8*(-parseInt(_0x11e5e7(0x13d))/0x9)+-parseInt(_0x11e5e7(0x13b))/0xa*(parseInt(_0x11e5e7(0x146))/0xb);if(_0x231f63===_0x5d95b4)break;else _0x2ce6cf['push'](_0x2ce6cf['shift']());}catch(_0x3fb356){_0x2ce6cf['push'](_0x2ce6cf['shift']());}}}(_0x38c7,0x8be45));const {axiosClient:r}=require(_0x1e615b(0x144)),e=require('../../config'),i=async(_0x4bee52,_0x285e3b,_0x5e8df0,_0x537f95)=>{const _0x15ddea=_0x1e615b;let {appName:_0x1be386,appDesc:_0x282b40,appConfig:_0x5ca8d4,frameworkVersions:_0x906772}=_0x285e3b,_0x3b8266={'Authorization':_0x15ddea(0x13f)+_0x537f95,'cache-control':_0x15ddea(0x141)},_0x23397e=(await r[_0x15ddea(0x14a)](_0x4bee52,{'params':{'name':_0x1be386,'desc':_0x282b40,'config':_0x5ca8d4,'versionStatus':_0x5e8df0,'frameworkVersions':_0x906772},'headers':_0x3b8266,'withCredentials':!0x0}))[_0x15ddea(0x148)];if(!_0x23397e||_0x23397e[_0x15ddea(0x14b)]<0x0){if(_0x23397e&&_0x23397e[_0x15ddea(0x14b)]===e['error_code'][_0x15ddea(0x14c)])throw Error(e['error_msg']['permission_denied']);throw Error(JSON[_0x15ddea(0x145)](_0x23397e));}return _0x23397e[_0x15ddea(0x148)];};module[_0x1e615b(0x13a)]=i;function _0x38c7(){const _0x4de5c2=['no-cache','3698086EvMfbx','230706kForzH','../../utils/axios','stringify','990583zXEqAl','67555dnJpDX','data','32HyzxJJ','get','err','permission_denied','466696awAgRj','exports','30dpGOSC','787159zlfmJZ','45EXEhed','6790860ExNINQ','Bearer\x20','4RPrDEq'];_0x38c7=function(){return _0x4de5c2;};return _0x38c7();}
@@ -1 +1 @@
1
- 'use strict';const _0x4547fd=_0x5cb4;function _0x3d27(){const _0x2df656=['path','statusText','form-data','err','config','fileSuccess','7ZAkXSw','fileAdded','10737126IeMDML','fileError','Error\x20upload\x20app:\x20cancel','statusError','13915QnKHhb','8870GsBJyb','35836260CWFYZt','1048604ZeiwiS','www.zip','append','isNumber','File','57844GfJpQz','token','16SjXmkD','15HVKApA','../../utils/env','join','zipFile','fileProgress','../../utils/resumable','addFile','Error\x20upload\x20app:\x20','api_domain','chalk','6gvXGKg','resumable_option','support','upload','Does\x20not\x20support\x20upload\x20app','round','progress','157672yRwNsr','../../config','6496205WVsvpB','exports','env','lodash','Deploying\x20Your\x20App\x20','complete','name','getEnv'];_0x3d27=function(){return _0x2df656;};return _0x3d27();}(function(_0x320832,_0x2c558a){const _0x5b1a65=_0x5cb4,_0x44d102=_0x320832();while(!![]){try{const _0x33f756=-parseInt(_0x5b1a65(0x9f))/0x1*(-parseInt(_0x5b1a65(0xa1))/0x2)+-parseInt(_0x5b1a65(0x70))/0x3*(parseInt(_0x5b1a65(0x9a))/0x4)+-parseInt(_0x5b1a65(0x83))/0x5*(parseInt(_0x5b1a65(0x7a))/0x6)+parseInt(_0x5b1a65(0x91))/0x7*(-parseInt(_0x5b1a65(0x81))/0x8)+parseInt(_0x5b1a65(0x93))/0x9+-parseInt(_0x5b1a65(0x98))/0xa*(parseInt(_0x5b1a65(0x97))/0xb)+parseInt(_0x5b1a65(0x99))/0xc;if(_0x33f756===_0x2c558a)break;else _0x44d102['push'](_0x44d102['shift']());}catch(_0x37f723){_0x44d102['push'](_0x44d102['shift']());}}}(_0x3d27,0xd95f9));const r=require(_0x4547fd(0x75)),e=require(_0x4547fd(0x79)),n=require(_0x4547fd(0x82)),o=require(_0x4547fd(0x71)),t=require('file-api')[_0x4547fd(0x9e)],a=require(_0x4547fd(0x8d)),u=require(_0x4547fd(0x86));function _0x5cb4(_0x24c757,_0x2fec9e){const _0x3d2752=_0x3d27();return _0x5cb4=function(_0x5cb4a5,_0x488f4b){_0x5cb4a5=_0x5cb4a5-0x70;let _0x23b612=_0x3d2752[_0x5cb4a5];return _0x23b612;},_0x5cb4(_0x24c757,_0x2fec9e);}module[_0x4547fd(0x84)]=async function(_0x118e3a,_0x472078,_0x44ed3c){const _0x51dc41=_0x4547fd;let _0x55c7f8=n[_0x51dc41(0x78)],_0x38077d=''+_0x55c7f8+n[_0x51dc41(0x8b)]['uploadAppByChunk'],{appName:_0x26b028,appDesc:_0x143734,appBuffer:_0x144b89,appConfig:_0xb6aef5,identifier:_0x19c440}=_0x118e3a,_0x3685d9=o[_0x51dc41(0x8a)](n[_0x51dc41(0x85)][_0x51dc41(0xa0)]),_0x3e776b=new r({...n[_0x51dc41(0x7b)],'target':_0x38077d,'headers':{'Authorization':'Bearer\x20'+_0x3685d9},'generateUniqueIdentifier':()=>_0x19c440}),_0x1a210d=new a();if(_0x1a210d['append'](_0x51dc41(0x73),_0x144b89),_0x1a210d[_0x51dc41(0x9c)](_0x51dc41(0x89),_0x26b028),_0x1a210d[_0x51dc41(0x9c)]('desc',_0x143734),_0x1a210d[_0x51dc41(0x9c)](_0x51dc41(0x8f),_0xb6aef5),_0x3e776b[_0x51dc41(0x7c)])return _0x3e776b['on'](_0x51dc41(0x74),function(_0x29b3fa){const _0x4b9c4a=_0x51dc41;let _0x502153=Array(Math[_0x4b9c4a(0x7f)](0x64*_0x29b3fa['progress']())%0x65+0x1)[_0x4b9c4a(0x72)]('|');_0x44ed3c[_0x4b9c4a(0x8c)](_0x4b9c4a(0x87)+e['gray']('\x0a'+_0x502153+'\x20'+Math[_0x4b9c4a(0x7f)](0x64*_0x29b3fa[_0x4b9c4a(0x80)]())+'%'));}),await new Promise((_0x78a82a,_0x2ed101)=>{const _0x242db9=_0x51dc41;try{var _0x107305=new t({'name':_0x242db9(0x9b),'buffer':_0x144b89});_0x3e776b['on'](_0x242db9(0x92),function(){const _0x288ca2=_0x242db9;_0x3e776b[_0x288ca2(0x7d)]();}),_0x3e776b['on'](_0x242db9(0x88),function(){return _0x78a82a();}),_0x3e776b['on'](_0x242db9(0x94),function(_0x56fe03,_0x55efec){return _0x2ed101(Error('Error\x20upload\x20app:\x20'+_0x55efec));}),_0x3e776b['on']('cancel',function(){const _0x2e5eea=_0x242db9;return _0x2ed101(Error(_0x2e5eea(0x95)));}),_0x3e776b['on'](_0x242db9(0x90),function(_0x352918,_0xcb0b94){const _0x46fc89=_0x242db9;let _0x686c91=JSON['parse'](_0xcb0b94);return u[_0x46fc89(0x9d)](_0x686c91['err'])&&_0x686c91[_0x46fc89(0x8e)]<0x0?_0x2ed101(Error(_0x46fc89(0x77)+_0xcb0b94)):_0x78a82a(_0x686c91);}),_0x3e776b[_0x242db9(0x76)](_0x107305);}catch(_0x446ce2){return _0x2ed101(_0x446ce2);}});_0x44ed3c[_0x51dc41(0x96)](_0x51dc41(0x7e));};
1
+ 'use strict';const _0x270fda=_0x3c9b;(function(_0x586d47,_0x47e58c){const _0x11f338=_0x3c9b,_0x5da492=_0x586d47();while(!![]){try{const _0xc740e=-parseInt(_0x11f338(0xf5))/0x1*(-parseInt(_0x11f338(0xec))/0x2)+-parseInt(_0x11f338(0xe3))/0x3+-parseInt(_0x11f338(0xdf))/0x4*(parseInt(_0x11f338(0xef))/0x5)+parseInt(_0x11f338(0xf3))/0x6+parseInt(_0x11f338(0xe6))/0x7+parseInt(_0x11f338(0xf9))/0x8*(-parseInt(_0x11f338(0xd5))/0x9)+parseInt(_0x11f338(0xde))/0xa*(-parseInt(_0x11f338(0xfa))/0xb);if(_0xc740e===_0x47e58c)break;else _0x5da492['push'](_0x5da492['shift']());}catch(_0x5278c4){_0x5da492['push'](_0x5da492['shift']());}}}(_0x41f7,0x78b52));function _0x3c9b(_0x4d7cd1,_0x315692){const _0x41f7b1=_0x41f7();return _0x3c9b=function(_0x3c9b66,_0x2a8421){_0x3c9b66=_0x3c9b66-0xd4;let _0x32bf20=_0x41f7b1[_0x3c9b66];return _0x32bf20;},_0x3c9b(_0x4d7cd1,_0x315692);}const r=require(_0x270fda(0xf1)),e=require(_0x270fda(0xdd)),n=require('../../config'),o=require('../../utils/env'),t=require(_0x270fda(0xf4))[_0x270fda(0xea)],a=require(_0x270fda(0xd4)),u=require(_0x270fda(0xeb));function _0x41f7(){const _0x1d1da5=['api_domain','98856sSAHcl','fileAdded','progress','3859065wxCRfj','fileError','Bearer\x20','upload','File','lodash','1042npHcPr','join','statusText','486195lnnBBl','gray','../../utils/resumable','www.zip','4814874xoPenn','file-api','1088gEjXaq','support','name','path','2992296IZFrAG','11IIKAyj','form-data','18bTcmJO','fileSuccess','append','resumable_option','isNumber','statusError','Does\x20not\x20support\x20upload\x20app','err','chalk','5479390hrIShK','4ZBgMSf','getEnv','complete'];_0x41f7=function(){return _0x1d1da5;};return _0x41f7();}module['exports']=async function(_0x21bb0b,_0x184e86,_0x1d158e){const _0x2a4c05=_0x270fda;let _0x2a6c13=n[_0x2a4c05(0xe2)],_0xb825b7=''+_0x2a6c13+n[_0x2a4c05(0xf8)]['uploadAppByChunk'],{appName:_0x6aabc0,appDesc:_0x495b73,appBuffer:_0x4866d9,appConfig:_0x43a0f4,identifier:_0x50da40}=_0x21bb0b,_0x375898=o[_0x2a4c05(0xe0)](n['env']['token']),_0x1a6f7c=new r({...n[_0x2a4c05(0xd8)],'target':_0xb825b7,'headers':{'Authorization':_0x2a4c05(0xe8)+_0x375898},'generateUniqueIdentifier':()=>_0x50da40}),_0x39fc9b=new a();if(_0x39fc9b[_0x2a4c05(0xd7)]('zipFile',_0x4866d9),_0x39fc9b[_0x2a4c05(0xd7)](_0x2a4c05(0xf7),_0x6aabc0),_0x39fc9b['append']('desc',_0x495b73),_0x39fc9b[_0x2a4c05(0xd7)]('config',_0x43a0f4),_0x1a6f7c[_0x2a4c05(0xf6)])return _0x1a6f7c['on']('fileProgress',function(_0x2425fc){const _0x225b9c=_0x2a4c05;let _0xbc130b=Array(Math['round'](0x64*_0x2425fc[_0x225b9c(0xe5)]())%0x65+0x1)[_0x225b9c(0xed)]('|');_0x1d158e[_0x225b9c(0xee)]('Deploying\x20Your\x20App\x20'+e[_0x225b9c(0xf0)]('\x0a'+_0xbc130b+'\x20'+Math['round'](0x64*_0x2425fc['progress']())+'%'));}),await new Promise((_0x101aea,_0x44f737)=>{const _0x5407ef=_0x2a4c05;try{var _0x5090fb=new t({'name':_0x5407ef(0xf2),'buffer':_0x4866d9});_0x1a6f7c['on'](_0x5407ef(0xe4),function(){const _0x30cef9=_0x5407ef;_0x1a6f7c[_0x30cef9(0xe9)]();}),_0x1a6f7c['on'](_0x5407ef(0xe1),function(){return _0x101aea();}),_0x1a6f7c['on'](_0x5407ef(0xe7),function(_0x45a8e1,_0x22b1b6){return _0x44f737(Error('Error\x20upload\x20app:\x20'+_0x22b1b6));}),_0x1a6f7c['on']('cancel',function(){return _0x44f737(Error('Error\x20upload\x20app:\x20cancel'));}),_0x1a6f7c['on'](_0x5407ef(0xd6),function(_0x334869,_0x2ee828){const _0xd205bd=_0x5407ef;let _0x3b88be=JSON['parse'](_0x2ee828);return u[_0xd205bd(0xd9)](_0x3b88be[_0xd205bd(0xdc)])&&_0x3b88be[_0xd205bd(0xdc)]<0x0?_0x44f737(Error('Error\x20upload\x20app:\x20'+_0x2ee828)):_0x101aea(_0x3b88be);}),_0x1a6f7c['addFile'](_0x5090fb);}catch(_0x451861){return _0x44f737(_0x451861);}});_0x1d158e[_0x2a4c05(0xda)](_0x2a4c05(0xdb));};
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const _0x38e8d4=_0x4355;(function(_0x42296d,_0x34e9f2){const _0x4badd0=_0x4355,_0x113c6d=_0x42296d();while(!![]){try{const _0x31512b=parseInt(_0x4badd0(0x1c3))/0x1+parseInt(_0x4badd0(0x1f6))/0x2*(parseInt(_0x4badd0(0x1dc))/0x3)+parseInt(_0x4badd0(0x20a))/0x4*(-parseInt(_0x4badd0(0x1dd))/0x5)+parseInt(_0x4badd0(0x204))/0x6+parseInt(_0x4badd0(0x1e1))/0x7+-parseInt(_0x4badd0(0x1c6))/0x8*(-parseInt(_0x4badd0(0x209))/0x9)+-parseInt(_0x4badd0(0x203))/0xa*(parseInt(_0x4badd0(0x20f))/0xb);if(_0x31512b===_0x34e9f2)break;else _0x113c6d['push'](_0x113c6d['shift']());}catch(_0xfcf23c){_0x113c6d['push'](_0x113c6d['shift']());}}}(_0x1a43,0x7ae2f));function _0x4355(_0x5522f0,_0x2a77a5){const _0x1a4330=_0x1a43();return _0x4355=function(_0x43550f,_0x58dab3){_0x43550f=_0x43550f-0x1b1;let _0x42e0c5=_0x1a4330[_0x43550f];return _0x42e0c5;},_0x4355(_0x5522f0,_0x2a77a5);}const e=require('chalk'),o=require(_0x38e8d4(0x1f1)),t=require(_0x38e8d4(0x1f9)),i=require(_0x38e8d4(0x1ca)),s=require(_0x38e8d4(0x1ef)),r=require('./utils/fs-extra'),n=require(_0x38e8d4(0x1c5)),a=require('./utils/spinner'),c=require('./utils/log'),p=require('./utils/get-current-project'),u=require(_0x38e8d4(0x211)),l=require(_0x38e8d4(0x1fd)),d=require('./deploy/utils/get-options'),m=require('./migrate/utils/get-options'),g=require(_0x38e8d4(0x200)),x=require('./create/index'),y=require(_0x38e8d4(0x202)),v=require('./build/index'),w=require(_0x38e8d4(0x201)),f=require(_0x38e8d4(0x1ea)),q=require('./migrate/index'),h=require('os'),M=require(_0x38e8d4(0x1ec)),P=require(_0x38e8d4(0x1f2)),{versionStatus:j}=require('./utils/constants'),Z=process[_0x38e8d4(0x206)](),D={'statusStart':_0x579c56=>a[_0x38e8d4(0x1b1)](_0x579c56),'statusDone':_0x12196e=>a[_0x38e8d4(0x1fe)](_0x12196e),'statusText':_0x44410a=>a[_0x38e8d4(0x1df)](_0x44410a),'statusError':_0x2b732e=>a[_0x38e8d4(0x1f0)](_0x2b732e),'text':_0x2cc448=>c[_0x38e8d4(0x1df)](_0x2cc448),'error':_0x210ce9=>c[_0x38e8d4(0x1f0)](_0x210ce9),'showOnUI':()=>{}};function _0x1a43(){const _0x33aa26=['Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','-D,\x20--dev','writeFileSync','-e,\x20--existing','skipUpdate','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','sync-config\x20<source>','cyan','.local','version','exit','zaloApp','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001','log','ZMP\x20CLI','817946XmIeNY','ios','./utils/check-update','8NcazTF','Deploy\x20existing\x20project','-o,\x20--outputDir\x20<output>','deploy','commander','root_env','Version\x20description','mode','frame','\x0a\x20Unknown\x20command\x20','build','-r,\x20--root-element\x20<selector>','Custom\x20entry\x20point,\x20default\x20is\x20#app','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','iosHostName','Deploy\x20a\x20ZMP\x20project','command','Output\x20folder.\x20Default\x20www','Device\x20mode','args','login','Passive\x20mode\x20(non-interactive)','1101JtQUDu','2246740ODklNe','-iosH,\x20--ios-host-name\x20<n>','text','-ios,\x20--ios','559419SWLXzk','hostname','Version:\x20','argv','textSync','Run\x20on\x20ios','-M,\x20--mode\x20<m>','existsSync','Env\x20mode','./sync/index','Run\x20without\x20Zalo\x20frame','./package.json','usage','dev','log-symbols','error','clear','./config','Login\x20ZMP','action','\x20This\x20is\x20not\x20ZMP\x20project','3980ozIFMF','-D,\x20--device','-P,\x20--port\x20<n>','figlet','showMobileUi','Build\x20a\x20ZMP\x20project','includes','./login/utils/get-options','done','--skipUpdate','./login/index','./deploy/index','./start/index','7190ubBaaC','961230UAcUHd','-p,\x20--passive','cwd','Start\x20a\x20ZMP\x20project','description','5685705SsjnXI','8GmLiVu','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','-Z,\x20--zalo-app','init','code','15576ueekuG','Deploy\x20testing\x20version','./create/utils/get-options','option','migrate','outputHelp','resolve','port','<command>\x20[options]','start','Init\x20ZMP\x20project','Deploy\x20in\x20Development\x20server'];_0x1a43=function(){return _0x33aa26;};return _0x1a43();}o(),r[_0x38e8d4(0x1e8)](P[_0x38e8d4(0x1cb)]())||r[_0x38e8d4(0x1b6)](P['root_env']()),console[_0x38e8d4(0x1c1)](e[_0x38e8d4(0x1bb)](t[_0x38e8d4(0x1e5)](_0x38e8d4(0x1c2),{'horizontalLayout':'full','verticalLayout':'full'})),e['cyan'](_0x38e8d4(0x1e3)+M[_0x38e8d4(0x1bd)]+'\x0a')),i[_0x38e8d4(0x1bd)](M['version'])[_0x38e8d4(0x1ed)](_0x38e8d4(0x217))[_0x38e8d4(0x1d6)](_0x38e8d4(0x20d))[_0x38e8d4(0x212)](_0x38e8d4(0x1ff),_0x38e8d4(0x1d3))['description'](_0x38e8d4(0x1b2))[_0x38e8d4(0x1f4)](async _0x105581=>{const _0x12fe69=_0x38e8d4;_0x105581[_0x12fe69(0x1b8)]||await n();let _0x5ad946=await l();await g({'cwd':Z,..._0x5ad946},D);let _0x5af9bc=await u();await x({'cwd':Z,..._0x5af9bc},D),process[_0x12fe69(0x1be)](0x0);}),i[_0x38e8d4(0x1ed)](_0x38e8d4(0x217))[_0x38e8d4(0x1d6)](_0x38e8d4(0x1da))['description'](_0x38e8d4(0x1f3))[_0x38e8d4(0x1f4)](async()=>{const _0x424e91=_0x38e8d4;let _0x2af0f7=await l();await g({'cwd':Z,..._0x2af0f7},D),process[_0x424e91(0x1be)](0x0);}),i[_0x38e8d4(0x1ed)]('<command>\x20[options]')[_0x38e8d4(0x1d6)]('start')['option'](_0x38e8d4(0x1de),_0x38e8d4(0x1b9))[_0x38e8d4(0x212)]('-P,\x20--port\x20<n>',_0x38e8d4(0x20b),parseInt)['option'](_0x38e8d4(0x20c),'Preview\x20on\x20Zalo')[_0x38e8d4(0x212)](_0x38e8d4(0x1e0),_0x38e8d4(0x1e6))[_0x38e8d4(0x212)]('-nF,\x20--no-frame',_0x38e8d4(0x1eb))['option'](_0x38e8d4(0x1f7),_0x38e8d4(0x1d8))[_0x38e8d4(0x212)](_0x38e8d4(0x1e7),'Env\x20mode')[_0x38e8d4(0x208)](_0x38e8d4(0x207))[_0x38e8d4(0x1f4)](async _0x2f9c3f=>{const _0x51ff29=_0x38e8d4;if(p(Z)||(c[_0x51ff29(0x1df)](s[_0x51ff29(0x1f0)]+_0x51ff29(0x1f5)),process[_0x51ff29(0x1be)](0x1)),_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1fa)])try{console[_0x51ff29(0x1c1)](require[_0x51ff29(0x215)]('nw'));}catch(_0x64f561){console['error']('NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22'),process[_0x51ff29(0x1be)](_0x64f561[_0x51ff29(0x20e)]);}let _0x3387ce=h[_0x51ff29(0x1e2)]();_0x3387ce[_0x51ff29(0x1fc)](_0x51ff29(0x1bc))||(_0x3387ce=_0x3387ce+_0x51ff29(0x1bc)),await y({'cwd':Z,'port':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x216)]||0xbb8,'iosHostName':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1d4)]||_0x3387ce,'showMobileUI':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1fa)]||!0x1,'previewOnZalo':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1bf)]||!0x1,'ios':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1c4)]||!0x1,'mode':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1cd)],'frame':!!_0x2f9c3f&&(void 0x0===_0x2f9c3f['frame']||null===_0x2f9c3f[_0x51ff29(0x1ce)])||_0x2f9c3f[_0x51ff29(0x1ce)],'deviceMode':_0x2f9c3f&&_0x2f9c3f['device']||!0x1},D),process['exit'](0x0);}),i['usage'](_0x38e8d4(0x217))['command'](_0x38e8d4(0x1d0))['description'](_0x38e8d4(0x1fb))[_0x38e8d4(0x1f4)](async()=>{const _0x457fce=_0x38e8d4;p(Z)||(c[_0x457fce(0x1df)](s[_0x457fce(0x1f0)]+_0x457fce(0x1f5)),process[_0x457fce(0x1be)](0x1)),await v({'cwd':Z},D),process[_0x457fce(0x1be)](0x0);}),i[_0x38e8d4(0x1ed)](_0x38e8d4(0x217))['command'](_0x38e8d4(0x1c9))[_0x38e8d4(0x212)](_0x38e8d4(0x1b5),_0x38e8d4(0x1b3))[_0x38e8d4(0x212)]('-M,\x20--mode\x20<m>',_0x38e8d4(0x1e9))['option'](_0x38e8d4(0x205),_0x38e8d4(0x1db))[_0x38e8d4(0x212)](_0x38e8d4(0x1b7),_0x38e8d4(0x1c7))['option']('-t,\x20--testing',_0x38e8d4(0x210))[_0x38e8d4(0x212)]('-m,\x20--desc\x20<message>',_0x38e8d4(0x1cc))['option'](_0x38e8d4(0x1c8),_0x38e8d4(0x1d7))[_0x38e8d4(0x212)](_0x38e8d4(0x1f8),_0x38e8d4(0x1c0),parseInt)['description'](_0x38e8d4(0x1d5))[_0x38e8d4(0x1f4)](async _0x415769=>{const _0x595fbc=_0x38e8d4;let _0x2a91f7=p(Z),_0xda8be2=_0x415769;_0x415769['existing']?_0xda8be2['customProject']=!0x0:_0x415769['passive']||(_0xda8be2=await d(_0x2a91f7)),_0x415769['testing']&&(_0xda8be2['versionStatus']=j['TESTING']),_0xda8be2['quit']&&process['exit'](0x1),await w({'cwd':Z,'dev':_0x415769&&_0x415769[_0x595fbc(0x1ee)],'mode':_0x415769&&_0x415769['mode'],..._0xda8be2},D),process['exit'](0x0);}),i[_0x38e8d4(0x1ed)](_0x38e8d4(0x217))['command'](_0x38e8d4(0x1ba))[_0x38e8d4(0x212)](_0x38e8d4(0x1d1),_0x38e8d4(0x1d2))[_0x38e8d4(0x208)](_0x38e8d4(0x1b4))['action'](async(_0x19240a,_0x1ae8a1)=>{const _0x543c21=_0x38e8d4;await f({'source':_0x19240a,..._0x1ae8a1},D),process[_0x543c21(0x1be)](0x0);}),i[_0x38e8d4(0x1ed)](_0x38e8d4(0x217))['command'](_0x38e8d4(0x213))[_0x38e8d4(0x1f4)](async function(){const _0x3d5588=_0x38e8d4;let _0x1f2ae8=p(Z);_0x1f2ae8||(D[_0x3d5588(0x1df)](s[_0x3d5588(0x1f0)]+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x3d5588(0x1be)](0x1));let _0x4d76b5=await m();await q({'cwd':Z,..._0x4d76b5,..._0x1f2ae8},D),process[_0x3d5588(0x1be)](0x0);}),i['on']('command:*',_0x26744e=>{const _0x1bb5a6=_0x38e8d4;i['outputHelp'](),c[_0x1bb5a6(0x1df)](_0x1bb5a6(0x1cf)+_0x26744e);}),i['parse'](process[_0x38e8d4(0x1e4)]),i[_0x38e8d4(0x1d9)]['length']||i[_0x38e8d4(0x214)]();
2
+ 'use strict';const _0x3962bf=_0x191d;(function(_0x4c0160,_0x27b68a){const _0xb4e454=_0x191d,_0x2d7969=_0x4c0160();while(!![]){try{const _0x2ac106=-parseInt(_0xb4e454(0x1ba))/0x1+-parseInt(_0xb4e454(0x1d0))/0x2*(parseInt(_0xb4e454(0x1ed))/0x3)+-parseInt(_0xb4e454(0x20c))/0x4+-parseInt(_0xb4e454(0x1bf))/0x5+-parseInt(_0xb4e454(0x1eb))/0x6*(parseInt(_0xb4e454(0x1f7))/0x7)+-parseInt(_0xb4e454(0x1e9))/0x8*(parseInt(_0xb4e454(0x1c0))/0x9)+parseInt(_0xb4e454(0x1cf))/0xa*(parseInt(_0xb4e454(0x1c9))/0xb);if(_0x2ac106===_0x27b68a)break;else _0x2d7969['push'](_0x2d7969['shift']());}catch(_0x3da1a4){_0x2d7969['push'](_0x2d7969['shift']());}}}(_0x39cf,0x68f94));const e=require(_0x3962bf(0x1cc)),o=require(_0x3962bf(0x1e2)),t=require(_0x3962bf(0x20a)),i=require(_0x3962bf(0x200)),s=require(_0x3962bf(0x1d6)),r=require(_0x3962bf(0x221)),n=require(_0x3962bf(0x1c6)),a=require(_0x3962bf(0x209)),c=require(_0x3962bf(0x1fd)),p=require(_0x3962bf(0x217)),u=require(_0x3962bf(0x1d7)),l=require(_0x3962bf(0x1dc)),d=require(_0x3962bf(0x21e)),m=require(_0x3962bf(0x1f6)),g=require(_0x3962bf(0x211)),x=require(_0x3962bf(0x1fb)),y=require('./start/index'),v=require(_0x3962bf(0x1b6)),w=require(_0x3962bf(0x1af)),f=require(_0x3962bf(0x1e5)),q=require(_0x3962bf(0x1b9)),h=require('os'),M=require(_0x3962bf(0x1e8)),P=require(_0x3962bf(0x1ae)),{versionStatus:j}=require('./utils/constants'),Z=process[_0x3962bf(0x20d)](),D={'statusStart':_0x3215b2=>a[_0x3962bf(0x1e6)](_0x3215b2),'statusDone':_0x3d6898=>a[_0x3962bf(0x1bb)](_0x3d6898),'statusText':_0x4112a5=>a[_0x3962bf(0x202)](_0x4112a5),'statusError':_0x4fc116=>a['error'](_0x4fc116),'text':_0x4527f8=>c['text'](_0x4527f8),'error':_0x4a6785=>c[_0x3962bf(0x1e4)](_0x4a6785),'showOnUI':()=>{}};function _0x39cf(){const _0x25d2ca=['Deploy\x20a\x20ZMP\x20project','commander','Deploy\x20testing\x20version','text','-M,\x20--mode\x20<m>','code','-r,\x20--root-element\x20<selector>','ZMP\x20CLI','textSync','deploy','./utils/spinner','figlet','migrate','297272vzacsM','cwd','parse','build','mode','./login/index','log','passive','.local','Run\x20on\x20ios','existing','./utils/get-current-project','-t,\x20--testing','login','writeFileSync','Preview\x20on\x20Zalo','option','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','./deploy/utils/get-options','Output\x20folder.\x20Default\x20www','command:*','./utils/fs-extra','hostname','./config','./deploy/index','Build\x20a\x20ZMP\x20project','includes','skipUpdate','versionStatus','cyan','TESTING','./build/index','-iosH,\x20--ios-host-name\x20<n>','Deploy\x20existing\x20project','./migrate/index','451594OmGjBz','done','Passive\x20mode\x20(non-interactive)','description','argv','883355TEZUSM','9dNGgwp','zaloApp','<command>\x20[options]','Deploy\x20in\x20Development\x20server','--skipUpdate','Init\x20ZMP\x20project','./utils/check-update','-o,\x20--outputDir\x20<output>','args','22bwBGVf','-ios,\x20--ios','iosHostName','chalk','showMobileUi','-m,\x20--desc\x20<message>','12940390JINAfI','423602mwEPhz','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','\x20This\x20is\x20not\x20ZMP\x20project','root_env','full','usage','log-symbols','./create/utils/get-options','Version\x20description','-e,\x20--existing','-p,\x20--passive','Device\x20mode','./login/utils/get-options','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','Version:\x20','version','-Z,\x20--zalo-app','length','clear','dev','error','./sync/index','start','-D,\x20--device','./package.json','90216RBsmcS','existsSync','5826rVWPCv','-D,\x20--dev','9NeBIdv','-P,\x20--port\x20<n>','-nF,\x20--no-frame','exit','resolve','Run\x20without\x20Zalo\x20frame','action','outputHelp','sync-config\x20<source>','./migrate/utils/get-options','5831ZTcuon','init','command','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001','./create/index','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','./utils/log','ios'];_0x39cf=function(){return _0x25d2ca;};return _0x39cf();}function _0x191d(_0x13ad17,_0xc07ac8){const _0x39cf95=_0x39cf();return _0x191d=function(_0x191dc6,_0x5a2daf){_0x191dc6=_0x191dc6-0x1ad;let _0x4ebee0=_0x39cf95[_0x191dc6];return _0x4ebee0;},_0x191d(_0x13ad17,_0xc07ac8);}o(),r[_0x3962bf(0x1ea)](P[_0x3962bf(0x1d3)]())||r[_0x3962bf(0x21a)](P[_0x3962bf(0x1d3)]()),console[_0x3962bf(0x212)](e[_0x3962bf(0x1b4)](t[_0x3962bf(0x207)](_0x3962bf(0x206),{'horizontalLayout':_0x3962bf(0x1d4),'verticalLayout':_0x3962bf(0x1d4)})),e[_0x3962bf(0x1b4)](_0x3962bf(0x1de)+M[_0x3962bf(0x1df)]+'\x0a')),i['version'](M[_0x3962bf(0x1df)])[_0x3962bf(0x1d5)](_0x3962bf(0x1c2))[_0x3962bf(0x1f9)](_0x3962bf(0x1f8))[_0x3962bf(0x21c)](_0x3962bf(0x1c4),_0x3962bf(0x1fc))['description'](_0x3962bf(0x1c5))[_0x3962bf(0x1f3)](async _0x9b063b=>{const _0x358437=_0x3962bf;_0x9b063b[_0x358437(0x1b2)]||await n();let _0x2bb133=await l();await g({'cwd':Z,..._0x2bb133},D);let _0x676e1e=await u();await x({'cwd':Z,..._0x676e1e},D),process[_0x358437(0x1f0)](0x0);}),i[_0x3962bf(0x1d5)](_0x3962bf(0x1c2))[_0x3962bf(0x1f9)](_0x3962bf(0x219))['description']('Login\x20ZMP')['action'](async()=>{const _0x4e822d=_0x3962bf;let _0x2871a2=await l();await g({'cwd':Z,..._0x2871a2},D),process[_0x4e822d(0x1f0)](0x0);}),i[_0x3962bf(0x1d5)](_0x3962bf(0x1c2))[_0x3962bf(0x1f9)](_0x3962bf(0x1e6))['option'](_0x3962bf(0x1b7),_0x3962bf(0x21d))[_0x3962bf(0x21c)]('-P,\x20--port\x20<n>',_0x3962bf(0x1dd),parseInt)[_0x3962bf(0x21c)](_0x3962bf(0x1e0),_0x3962bf(0x21b))[_0x3962bf(0x21c)](_0x3962bf(0x1ca),_0x3962bf(0x215))[_0x3962bf(0x21c)](_0x3962bf(0x1ef),_0x3962bf(0x1f2))[_0x3962bf(0x21c)](_0x3962bf(0x1e7),_0x3962bf(0x1db))[_0x3962bf(0x21c)](_0x3962bf(0x203),'Env\x20mode')[_0x3962bf(0x1bd)]('Start\x20a\x20ZMP\x20project')['action'](async _0x2014ec=>{const _0x1004f1=_0x3962bf;if(p(Z)||(c[_0x1004f1(0x202)](s[_0x1004f1(0x1e4)]+_0x1004f1(0x1d2)),process[_0x1004f1(0x1f0)](0x1)),_0x2014ec&&_0x2014ec[_0x1004f1(0x1cd)])try{console['log'](require[_0x1004f1(0x1f1)]('nw'));}catch(_0x3e515d){console[_0x1004f1(0x1e4)]('NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22'),process[_0x1004f1(0x1f0)](_0x3e515d[_0x1004f1(0x204)]);}let _0xeee159=h[_0x1004f1(0x1ad)]();_0xeee159[_0x1004f1(0x1b1)]('.local')||(_0xeee159=_0xeee159+_0x1004f1(0x214)),await y({'cwd':Z,'port':_0x2014ec&&_0x2014ec['port']||0xbb8,'iosHostName':_0x2014ec&&_0x2014ec[_0x1004f1(0x1cb)]||_0xeee159,'showMobileUI':_0x2014ec&&_0x2014ec[_0x1004f1(0x1cd)]||!0x1,'previewOnZalo':_0x2014ec&&_0x2014ec[_0x1004f1(0x1c1)]||!0x1,'ios':_0x2014ec&&_0x2014ec[_0x1004f1(0x1fe)]||!0x1,'mode':_0x2014ec&&_0x2014ec[_0x1004f1(0x210)],'frame':!!_0x2014ec&&(void 0x0===_0x2014ec['frame']||null===_0x2014ec['frame'])||_0x2014ec['frame'],'deviceMode':_0x2014ec&&_0x2014ec['device']||!0x1},D),process[_0x1004f1(0x1f0)](0x0);}),i[_0x3962bf(0x1d5)]('<command>\x20[options]')[_0x3962bf(0x1f9)](_0x3962bf(0x20f))[_0x3962bf(0x1bd)](_0x3962bf(0x1b0))['action'](async()=>{const _0x8b7e03=_0x3962bf;p(Z)||(c['text'](s[_0x8b7e03(0x1e4)]+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x8b7e03(0x1f0)](0x1)),await v({'cwd':Z},D),process[_0x8b7e03(0x1f0)](0x0);}),i[_0x3962bf(0x1d5)](_0x3962bf(0x1c2))[_0x3962bf(0x1f9)](_0x3962bf(0x208))['option'](_0x3962bf(0x1ec),_0x3962bf(0x1c3))[_0x3962bf(0x21c)](_0x3962bf(0x203),'Env\x20mode')[_0x3962bf(0x21c)](_0x3962bf(0x1da),_0x3962bf(0x1bc))['option'](_0x3962bf(0x1d9),_0x3962bf(0x1b8))[_0x3962bf(0x21c)](_0x3962bf(0x218),_0x3962bf(0x201))[_0x3962bf(0x21c)](_0x3962bf(0x1ce),_0x3962bf(0x1d8))[_0x3962bf(0x21c)](_0x3962bf(0x1c7),_0x3962bf(0x21f))[_0x3962bf(0x21c)](_0x3962bf(0x1ee),_0x3962bf(0x1fa),parseInt)['description'](_0x3962bf(0x1ff))[_0x3962bf(0x1f3)](async _0x24fb7e=>{const _0x4c7706=_0x3962bf;let _0x3b470a=p(Z),_0x306121=_0x24fb7e;_0x24fb7e[_0x4c7706(0x216)]?_0x306121['customProject']=!0x0:_0x24fb7e[_0x4c7706(0x213)]||(_0x306121=await d(_0x3b470a)),_0x24fb7e['testing']&&(_0x306121[_0x4c7706(0x1b3)]=j[_0x4c7706(0x1b5)]),_0x306121['quit']&&process[_0x4c7706(0x1f0)](0x1),await w({'cwd':Z,'dev':_0x24fb7e&&_0x24fb7e[_0x4c7706(0x1e3)],'mode':_0x24fb7e&&_0x24fb7e[_0x4c7706(0x210)],..._0x306121},D),process[_0x4c7706(0x1f0)](0x0);}),i['usage'](_0x3962bf(0x1c2))['command'](_0x3962bf(0x1f5))[_0x3962bf(0x21c)](_0x3962bf(0x205),'Custom\x20entry\x20point,\x20default\x20is\x20#app')[_0x3962bf(0x1bd)](_0x3962bf(0x1d1))[_0x3962bf(0x1f3)](async(_0x5dfdee,_0x4c20c4)=>{const _0x34ab89=_0x3962bf;await f({'source':_0x5dfdee,..._0x4c20c4},D),process[_0x34ab89(0x1f0)](0x0);}),i[_0x3962bf(0x1d5)]('<command>\x20[options]')['command'](_0x3962bf(0x20b))['action'](async function(){const _0xaa6a31=_0x3962bf;let _0x135afb=p(Z);_0x135afb||(D['text'](s[_0xaa6a31(0x1e4)]+_0xaa6a31(0x1d2)),process['exit'](0x1));let _0x5ad969=await m();await q({'cwd':Z,..._0x5ad969,..._0x135afb},D),process[_0xaa6a31(0x1f0)](0x0);}),i['on'](_0x3962bf(0x220),_0x37d8a1=>{const _0x307e24=_0x3962bf;i[_0x307e24(0x1f4)](),c[_0x307e24(0x202)]('\x0a\x20Unknown\x20command\x20'+_0x37d8a1);}),i[_0x3962bf(0x20e)](process[_0x3962bf(0x1be)]),i[_0x3962bf(0x1c8)][_0x3962bf(0x1e1)]||i['outputHelp']();
package/login/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5e5dd0=_0x2c1b;(function(_0x1cbe1c,_0x9f5ee2){const _0x338f75=_0x2c1b,_0x50a661=_0x1cbe1c();while(!![]){try{const _0x195001=parseInt(_0x338f75(0x182))/0x1*(parseInt(_0x338f75(0x15f))/0x2)+parseInt(_0x338f75(0x17a))/0x3+parseInt(_0x338f75(0x184))/0x4+-parseInt(_0x338f75(0x173))/0x5*(-parseInt(_0x338f75(0x16a))/0x6)+-parseInt(_0x338f75(0x171))/0x7*(parseInt(_0x338f75(0x16f))/0x8)+-parseInt(_0x338f75(0x176))/0x9+-parseInt(_0x338f75(0x181))/0xa*(-parseInt(_0x338f75(0x188))/0xb);if(_0x195001===_0x9f5ee2)break;else _0x50a661['push'](_0x50a661['shift']());}catch(_0x222222){_0x50a661['push'](_0x50a661['shift']());}}}(_0x2cca,0x303ec));function _0x2cca(){const _0x4e50f0=['setEnv','238158KoVJku','data','../config','getQRCode','stop','path','generate','44750pOloOF','5643yoFjsh','loginMethod','142280iYEcyg','err','error_code','application/x-www-form-urlencoded','649wAOEDi','msg','Token\x20Invalid!','env','info','zmpsk','request_timeout','../utils/env','loginUrl','api_domain','start','zalo','chalk','statusStart','error','appId','text','token','no-cache','../utils/axios','jwt','34GvuLfg','qrcode-terminal','then','checkStatus','stringify','error_msg','bold','statusError','stderr','Login\x20failed!','login','1543236qFFCxj','log-symbols','jsonwebtoken','catch','ora','378520mLLOiE','Login\x20Success!','35RpbTfQ','decode','5NCCLKo','POST','./utils/zalo-login','2681379weuRKN','\x20(Time\x20out\x20after\x20','permission_denied'];_0x2cca=function(){return _0x4e50f0;};return _0x2cca();}function _0x2c1b(_0x5e4025,_0x4cf522){const _0x2cca70=_0x2cca();return _0x2c1b=function(_0x2c1b0d,_0x284c26){_0x2c1b0d=_0x2c1b0d-0x14e;let _0x1ebd68=_0x2cca70[_0x2c1b0d];return _0x1ebd68;},_0x2c1b(_0x5e4025,_0x4cf522);}const e=require(_0x5e5dd0(0x156)),t=require(_0x5e5dd0(0x16e)),r=require(_0x5e5dd0(0x16c)),a=require(_0x5e5dd0(0x160)),n=require(_0x5e5dd0(0x16b)),o=require(_0x5e5dd0(0x17c)),s=require(_0x5e5dd0(0x151)),i=require('../utils/log'),u=require(_0x5e5dd0(0x175)),{axiosClient:l}=require(_0x5e5dd0(0x15d)),c=require('qs'),d=e['gray']('Login...'),p=t(d);module['exports']=async(_0x2c5c7c={},_0x3130ea)=>{const _0x28a9a6=_0x5e5dd0;let _0x587ee4;_0x3130ea||(_0x3130ea={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x3130ea[_0x28a9a6(0x157)](d),p[_0x28a9a6(0x154)]();let _0x3c480c=_0x2c5c7c[_0x28a9a6(0x183)],_0xad0f0=_0x2c5c7c[_0x28a9a6(0x159)]||s['getEnv'](o[_0x28a9a6(0x18b)][_0x28a9a6(0x159)]),_0x48dc90=_0x2c5c7c[_0x28a9a6(0x15b)],_0x3b2e96=''+o[_0x28a9a6(0x153)]+o[_0x28a9a6(0x17f)][_0x28a9a6(0x169)];try{if(p[_0x28a9a6(0x154)](),_0x28a9a6(0x155)===_0x3c480c){let _0x8f20bf;await new Promise((_0xd6eb59,_0x632ef9)=>{const _0x13c6a3=_0x28a9a6;u[_0x13c6a3(0x17d)](_0xad0f0)['then'](function(_0xe5d287){const _0x235a05=_0x13c6a3;p[_0x235a05(0x17e)]();let _0x2afe83=_0xe5d287[_0x235a05(0x17b)];if(!_0x2afe83||_0x2afe83[_0x235a05(0x185)]<0x0)return _0x632ef9(Error(_0x2afe83[_0x235a05(0x189)]));let _0x4448a6=_0x2afe83[_0x235a05(0x17b)]&&_0x2afe83[_0x235a05(0x17b)][_0x235a05(0x152)];return _0x8f20bf=_0x2afe83[_0x235a05(0x17b)]&&_0x2afe83[_0x235a05(0x17b)][_0x235a05(0x14f)],a[_0x235a05(0x180)](_0x4448a6,{'small':!0x0},function(_0x11890c){const _0x1ac768=_0x235a05;let _0x97eea5=n[_0x1ac768(0x14e)]+'\x20'+e[_0x1ac768(0x165)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x11890c);_0x3130ea[_0x1ac768(0x15a)](_0x97eea5);}),s['setEnv'](o['env'][_0x235a05(0x159)],_0xad0f0),_0xd6eb59();})[_0x13c6a3(0x16d)](function(_0x591db2){const _0x2ba642=_0x13c6a3;return p[_0x2ba642(0x17e)](),_0x632ef9(_0x591db2);});}),await new Promise((_0x57e2d5,_0x5e6448)=>{const _0x1fcec3=_0x28a9a6;if(!_0x8f20bf)return _0x5e6448(Error(_0x1fcec3(0x18a)));let _0x3e9e0a=0x0;_0x587ee4=setInterval(()=>{const _0x58e84e=_0x1fcec3;if(_0x3130ea['statusText'](d+_0x58e84e(0x177)+(0x3c-_0x3e9e0a)+'s)'),_0x3e9e0a>0x3c)return clearInterval(_0x587ee4),_0x5e6448(Error(o[_0x58e84e(0x164)]['request_timeout']));_0x3e9e0a++,u[_0x58e84e(0x162)](_0x8f20bf)[_0x58e84e(0x161)](function(_0xdd3cd6){const _0x366050=_0x58e84e;p['stop']();let _0x1dffcb=_0xdd3cd6[_0x366050(0x17b)];if(_0x1dffcb&&_0x1dffcb[_0x366050(0x185)]===o[_0x366050(0x186)][_0x366050(0x178)])return clearInterval(_0x587ee4),_0x5e6448(Error(o['error_msg'][_0x366050(0x178)]));if(_0x1dffcb&&_0x1dffcb[_0x366050(0x185)]===o[_0x366050(0x186)][_0x366050(0x150)])return clearInterval(_0x587ee4),_0x5e6448(Error(o['error_msg'][_0x366050(0x150)]));if(_0x1dffcb&&_0x1dffcb[_0x366050(0x185)]>=0x0){clearInterval(_0x587ee4);let _0x51b22a=_0x1dffcb[_0x366050(0x17b)]&&_0x1dffcb[_0x366050(0x17b)][_0x366050(0x15e)];return s[_0x366050(0x179)](o[_0x366050(0x18b)]['token'],_0x51b22a),_0x3130ea['statusDone'](_0x366050(0x170)),_0x57e2d5();}})[_0x58e84e(0x16d)](function(_0x161459){return clearInterval(_0x587ee4),p['stop'](),_0x5e6448(_0x161459);});},0x7d0);});}else await new Promise((_0x3b55b1,_0x184d83)=>{const _0x3fc255=_0x28a9a6;l({'url':_0x3b2e96,'method':_0x3fc255(0x174),'headers':{'cache-control':_0x3fc255(0x15c),'content-type':_0x3fc255(0x187)},'data':c[_0x3fc255(0x163)]({'accessToken':_0x48dc90,'appId':_0xad0f0}),'withCredentials':!0x0})[_0x3fc255(0x161)](function(_0x28deba){const _0x5f2600=_0x3fc255;p[_0x5f2600(0x17e)]();let _0x36e2e9=_0x28deba[_0x5f2600(0x17b)];if(!_0x36e2e9||_0x36e2e9[_0x5f2600(0x185)]<0x0)return _0x184d83(Error(_0x36e2e9[_0x5f2600(0x189)]));let _0x36dc1e=_0x36e2e9[_0x5f2600(0x17b)]&&_0x36e2e9[_0x5f2600(0x17b)][_0x5f2600(0x15e)];try{let _0xf0ea7e=r[_0x5f2600(0x172)](_0x36dc1e);s[_0x5f2600(0x179)](o[_0x5f2600(0x18b)][_0x5f2600(0x159)],_0xf0ea7e[_0x5f2600(0x159)]),s[_0x5f2600(0x179)](o['env']['token'],_0x36dc1e);}catch(_0x3dabc2){return _0x184d83(_0x3dabc2);}return _0x3130ea['statusDone'](_0x5f2600(0x170)),_0x3b55b1();})['catch'](function(_0x323f91){const _0x21a4d3=_0x3fc255;return p[_0x21a4d3(0x17e)](),_0x184d83(_0x323f91);});});}catch(_0xbc102c){_0x3130ea[_0x28a9a6(0x166)](_0x28a9a6(0x168)),i[_0x28a9a6(0x158)](_0xbc102c[_0x28a9a6(0x167)]||_0xbc102c);return;}};
1
+ 'use strict';const _0x18ceba=_0x4403;(function(_0x375cf5,_0x5b8d46){const _0x9cdc7b=_0x4403,_0xfced77=_0x375cf5();while(!![]){try{const _0x20f3bb=-parseInt(_0x9cdc7b(0x18c))/0x1*(-parseInt(_0x9cdc7b(0x163))/0x2)+parseInt(_0x9cdc7b(0x166))/0x3*(parseInt(_0x9cdc7b(0x160))/0x4)+parseInt(_0x9cdc7b(0x17e))/0x5*(parseInt(_0x9cdc7b(0x18f))/0x6)+parseInt(_0x9cdc7b(0x189))/0x7+-parseInt(_0x9cdc7b(0x188))/0x8*(-parseInt(_0x9cdc7b(0x181))/0x9)+-parseInt(_0x9cdc7b(0x172))/0xa+-parseInt(_0x9cdc7b(0x187))/0xb;if(_0x20f3bb===_0x5b8d46)break;else _0xfced77['push'](_0xfced77['shift']());}catch(_0x2ecb16){_0xfced77['push'](_0xfced77['shift']());}}}(_0x5443,0x5f3f5));function _0x5443(){const _0x25ed81=['stringify','statusDone','20824870PWTTkZ','8oVNOvg','1095094obDhnT','token','appId','421XRJLbN','ora','gray','1542BoHbcT','bold','Login\x20Success!','POST','loginUrl','\x20(Time\x20out\x20after\x20','zmpsk','env','statusError','path','8mwrWio','loginMethod','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','2804hltEYm','./utils/zalo-login','stop','972753IYINUv','Login\x20failed!','error_code','log-symbols','../utils/log','stderr','catch','jwt','exports','start','login','getEnv','1928550rDfWFw','error_msg','permission_denied','../config','no-cache','statusText','getQRCode','request_timeout','../utils/env','info','then','generate','6890nAWADD','data','text','6541434LiHZsq','application/x-www-form-urlencoded','err','setEnv'];_0x5443=function(){return _0x25ed81;};return _0x5443();}function _0x4403(_0x1bc550,_0x2f8546){const _0x5443f=_0x5443();return _0x4403=function(_0x440385,_0x375375){_0x440385=_0x440385-0x160;let _0x1b403a=_0x5443f[_0x440385];return _0x1b403a;},_0x4403(_0x1bc550,_0x2f8546);}const e=require('chalk'),t=require(_0x18ceba(0x18d)),r=require('jsonwebtoken'),a=require('qrcode-terminal'),n=require(_0x18ceba(0x169)),o=require(_0x18ceba(0x175)),s=require(_0x18ceba(0x17a)),i=require(_0x18ceba(0x16a)),u=require(_0x18ceba(0x164)),{axiosClient:l}=require('../utils/axios'),c=require('qs'),d=e[_0x18ceba(0x18e)]('Login...'),p=t(d);module[_0x18ceba(0x16e)]=async(_0x1c076b={},_0xdebdba)=>{const _0x5131df=_0x18ceba;let _0x5014a2;_0xdebdba||(_0xdebdba={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0xdebdba['statusStart'](d),p['start']();let _0x275080=_0x1c076b[_0x5131df(0x161)],_0x1b8c37=_0x1c076b[_0x5131df(0x18b)]||s[_0x5131df(0x171)](o['env'][_0x5131df(0x18b)]),_0x3e9ac2=_0x1c076b[_0x5131df(0x18a)],_0x2f6c79=''+o['api_domain']+o[_0x5131df(0x198)][_0x5131df(0x170)];try{if(p[_0x5131df(0x16f)](),'zalo'===_0x275080){let _0x1dd92a;await new Promise((_0x1f0120,_0x1d1f49)=>{const _0x2fcdea=_0x5131df;u[_0x2fcdea(0x178)](_0x1b8c37)[_0x2fcdea(0x17c)](function(_0x2c1e94){const _0x14e926=_0x2fcdea;p['stop']();let _0x14704f=_0x2c1e94['data'];if(!_0x14704f||_0x14704f['err']<0x0)return _0x1d1f49(Error(_0x14704f['msg']));let _0x21bff0=_0x14704f[_0x14e926(0x17f)]&&_0x14704f[_0x14e926(0x17f)][_0x14e926(0x193)];return _0x1dd92a=_0x14704f['data']&&_0x14704f[_0x14e926(0x17f)][_0x14e926(0x195)],a[_0x14e926(0x17d)](_0x21bff0,{'small':!0x0},function(_0x55b4cf){const _0x16c92e=_0x14e926;let _0x1b2a16=n[_0x16c92e(0x17b)]+'\x20'+e[_0x16c92e(0x190)](_0x16c92e(0x162)+_0x55b4cf);_0xdebdba[_0x16c92e(0x180)](_0x1b2a16);}),s[_0x14e926(0x184)](o[_0x14e926(0x196)][_0x14e926(0x18b)],_0x1b8c37),_0x1f0120();})[_0x2fcdea(0x16c)](function(_0x3dd1bf){return p['stop'](),_0x1d1f49(_0x3dd1bf);});}),await new Promise((_0x41af8c,_0x3105d2)=>{if(!_0x1dd92a)return _0x3105d2(Error('Token\x20Invalid!'));let _0x2106d3=0x0;_0x5014a2=setInterval(()=>{const _0x546ce2=_0x4403;if(_0xdebdba[_0x546ce2(0x177)](d+_0x546ce2(0x194)+(0x3c-_0x2106d3)+'s)'),_0x2106d3>0x3c)return clearInterval(_0x5014a2),_0x3105d2(Error(o[_0x546ce2(0x173)][_0x546ce2(0x179)]));_0x2106d3++,u['checkStatus'](_0x1dd92a)[_0x546ce2(0x17c)](function(_0x1c849c){const _0x320f10=_0x546ce2;p[_0x320f10(0x165)]();let _0x28c3eb=_0x1c849c['data'];if(_0x28c3eb&&_0x28c3eb[_0x320f10(0x183)]===o[_0x320f10(0x168)][_0x320f10(0x174)])return clearInterval(_0x5014a2),_0x3105d2(Error(o[_0x320f10(0x173)]['permission_denied']));if(_0x28c3eb&&_0x28c3eb['err']===o[_0x320f10(0x168)][_0x320f10(0x179)])return clearInterval(_0x5014a2),_0x3105d2(Error(o['error_msg'][_0x320f10(0x179)]));if(_0x28c3eb&&_0x28c3eb[_0x320f10(0x183)]>=0x0){clearInterval(_0x5014a2);let _0x41bddf=_0x28c3eb[_0x320f10(0x17f)]&&_0x28c3eb[_0x320f10(0x17f)][_0x320f10(0x16d)];return s['setEnv'](o[_0x320f10(0x196)]['token'],_0x41bddf),_0xdebdba[_0x320f10(0x186)](_0x320f10(0x191)),_0x41af8c();}})[_0x546ce2(0x16c)](function(_0x3e1848){const _0x5e670d=_0x546ce2;return clearInterval(_0x5014a2),p[_0x5e670d(0x165)](),_0x3105d2(_0x3e1848);});},0x7d0);});}else await new Promise((_0x5a8112,_0xb42ce0)=>{const _0x25b3de=_0x5131df;l({'url':_0x2f6c79,'method':_0x25b3de(0x192),'headers':{'cache-control':_0x25b3de(0x176),'content-type':_0x25b3de(0x182)},'data':c[_0x25b3de(0x185)]({'accessToken':_0x3e9ac2,'appId':_0x1b8c37}),'withCredentials':!0x0})[_0x25b3de(0x17c)](function(_0x89fec2){const _0x463f72=_0x25b3de;p[_0x463f72(0x165)]();let _0xf7657=_0x89fec2[_0x463f72(0x17f)];if(!_0xf7657||_0xf7657['err']<0x0)return _0xb42ce0(Error(_0xf7657['msg']));let _0x525adc=_0xf7657[_0x463f72(0x17f)]&&_0xf7657[_0x463f72(0x17f)][_0x463f72(0x16d)];try{let _0x1ad00e=r['decode'](_0x525adc);s[_0x463f72(0x184)](o[_0x463f72(0x196)][_0x463f72(0x18b)],_0x1ad00e['appId']),s['setEnv'](o[_0x463f72(0x196)][_0x463f72(0x18a)],_0x525adc);}catch(_0x2fc4e5){return _0xb42ce0(_0x2fc4e5);}return _0xdebdba['statusDone'](_0x463f72(0x191)),_0x5a8112();})[_0x25b3de(0x16c)](function(_0x157d8a){const _0x24a990=_0x25b3de;return p[_0x24a990(0x165)](),_0xb42ce0(_0x157d8a);});});}catch(_0x253d79){_0xdebdba[_0x5131df(0x197)](_0x5131df(0x167)),i['error'](_0x253d79[_0x5131df(0x16b)]||_0x253d79);return;}};
@@ -1 +1 @@
1
- 'use strict';const _0x158105=_0x1e55;function _0x45af(){const _0x3b58e6=['token','Mini\x20App\x20ID:','accessToken','prompt','1218PWujFT','Zalo\x20Access\x20Token:','env','loginMethod','length','Choose\x20a\x20Login\x20Method','614019WNynXV','1256200DSivVk','2347077aOwtUt','resolve','10755gkQXlL','getEnv','136ltMRVR','2.\x20Login\x20With\x20App\x20Access\x20Token','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','../../config','list','appId','2cFmkPD','Zalo\x20Access\x20Token\x20is\x20required','input','6190FwAcrI','../../utils/env','5270IvglaY','4252168bwgocM','12470898DPNIXw','exports'];_0x45af=function(){return _0x3b58e6;};return _0x45af();}(function(_0x14f671,_0x35fe15){const _0x448e4b=_0x1e55,_0x4e0daa=_0x14f671();while(!![]){try{const _0xc73087=-parseInt(_0x448e4b(0x1b2))/0x1+-parseInt(_0x448e4b(0x19e))/0x2*(-parseInt(_0x448e4b(0x194))/0x3)+parseInt(_0x448e4b(0x1a4))/0x4+parseInt(_0x448e4b(0x1a3))/0x5*(-parseInt(_0x448e4b(0x1ab))/0x6)+-parseInt(_0x448e4b(0x1b1))/0x7*(parseInt(_0x448e4b(0x198))/0x8)+parseInt(_0x448e4b(0x196))/0x9*(parseInt(_0x448e4b(0x1a1))/0xa)+parseInt(_0x448e4b(0x1a5))/0xb;if(_0xc73087===_0x35fe15)break;else _0x4e0daa['push'](_0x4e0daa['shift']());}catch(_0x490c56){_0x4e0daa['push'](_0x4e0daa['shift']());}}}(_0x45af,0xb8ee1));const e=require('inquirer'),i=require(_0x158105(0x1a2)),o=require(_0x158105(0x19b));function _0x1e55(_0x3a9c13,_0x48f29c){const _0x45af35=_0x45af();return _0x1e55=function(_0x1e5528,_0x2853a8){_0x1e5528=_0x1e5528-0x194;let _0x5240c1=_0x45af35[_0x1e5528];return _0x5240c1;},_0x1e55(_0x3a9c13,_0x48f29c);}module[_0x158105(0x1a6)]=function(){const _0x400fca=_0x158105;let _0x48530b=[{'type':_0x400fca(0x1a0),'name':_0x400fca(0x19d),'message':_0x400fca(0x1a8),'when':()=>!i[_0x400fca(0x197)](o[_0x400fca(0x1ad)][_0x400fca(0x19d)]),'validate':_0x1b5bdd=>new Promise((_0x1b524e,_0x4b1e01)=>{_0x1b5bdd?_0x1b524e(!0x0):_0x4b1e01(Error('Mimi\x20App\x20ID\x20is\x20required'));})},{'type':_0x400fca(0x19c),'name':'loginMethod','message':_0x400fca(0x1b0),'choices':[{'name':_0x400fca(0x19a),'value':'zalo'},{'name':_0x400fca(0x199),'value':_0x400fca(0x1a9)}],'validate':_0x3d719c=>new Promise((_0x225ee3,_0x570600)=>{const _0x2e11c5=_0x400fca;_0x3d719c&&_0x3d719c[_0x2e11c5(0x1af)]?_0x225ee3(!0x0):_0x570600(Error('Login\x20method\x20is\x20required!'));})},{'type':_0x400fca(0x1a0),'name':_0x400fca(0x1a7),'message':_0x400fca(0x1ac),'when':_0x4767db=>_0x400fca(0x1a9)===_0x4767db[_0x400fca(0x1ae)],'validate':_0x415bab=>new Promise((_0xa783cb,_0x225491)=>{const _0x433c13=_0x400fca;_0x415bab?_0xa783cb(!0x0):_0x225491(Error(_0x433c13(0x19f)));})}];return e[_0x400fca(0x1aa)](_0x48530b)['then'](_0x548886=>Promise[_0x400fca(0x195)](_0x548886));};
1
+ 'use strict';function _0x5afd(){const _0x3ef0b4=['loginMethod','6vChbQL','Mini\x20App\x20ID:','resolve','then','getEnv','../../utils/env','22476iGRyad','4237855jtAsdX','1474GeVylg','length','inquirer','Zalo\x20Access\x20Token:','120570EUazfj','exports','list','73LBSTOj','../../config','149821exdErG','zalo','accessToken','token','2195757XVtnrz','88gsrQKH','16172QYBxCE','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','306moPiiG','2344892BjZDrV','Login\x20method\x20is\x20required!','input'];_0x5afd=function(){return _0x3ef0b4;};return _0x5afd();}const _0x47c1b4=_0xdcb1;function _0xdcb1(_0x53417a,_0xdc002f){const _0x5afdf0=_0x5afd();return _0xdcb1=function(_0xdcb1a0,_0x33873f){_0xdcb1a0=_0xdcb1a0-0x99;let _0x5bf853=_0x5afdf0[_0xdcb1a0];return _0x5bf853;},_0xdcb1(_0x53417a,_0xdc002f);}(function(_0x8fecb6,_0x4fa960){const _0x4464f0=_0xdcb1,_0x25565c=_0x8fecb6();while(!![]){try{const _0x5a22b5=parseInt(_0x4464f0(0x9f))/0x1*(-parseInt(_0x4464f0(0xa7))/0x2)+parseInt(_0x4464f0(0xa5))/0x3+-parseInt(_0x4464f0(0xaa))/0x4+parseInt(_0x4464f0(0xb5))/0x5*(parseInt(_0x4464f0(0xae))/0x6)+parseInt(_0x4464f0(0xa1))/0x7*(parseInt(_0x4464f0(0xa6))/0x8)+-parseInt(_0x4464f0(0xa9))/0x9*(parseInt(_0x4464f0(0x9c))/0xa)+parseInt(_0x4464f0(0xb6))/0xb*(parseInt(_0x4464f0(0xb4))/0xc);if(_0x5a22b5===_0x4fa960)break;else _0x25565c['push'](_0x25565c['shift']());}catch(_0x413305){_0x25565c['push'](_0x25565c['shift']());}}}(_0x5afd,0x750ea));const e=require(_0x47c1b4(0x9a)),i=require(_0x47c1b4(0xb3)),o=require(_0x47c1b4(0xa0));module[_0x47c1b4(0x9d)]=function(){const _0x3e481e=_0x47c1b4;let _0x4ba612=[{'type':_0x3e481e(0xac),'name':'appId','message':_0x3e481e(0xaf),'when':()=>!i[_0x3e481e(0xb2)](o['env']['appId']),'validate':_0x515954=>new Promise((_0x434073,_0x1d2735)=>{_0x515954?_0x434073(!0x0):_0x1d2735(Error('Mimi\x20App\x20ID\x20is\x20required'));})},{'type':_0x3e481e(0x9e),'name':_0x3e481e(0xad),'message':'Choose\x20a\x20Login\x20Method','choices':[{'name':_0x3e481e(0xa8),'value':_0x3e481e(0xa2)},{'name':'2.\x20Login\x20With\x20App\x20Access\x20Token','value':_0x3e481e(0xa3)}],'validate':_0x561bc6=>new Promise((_0x32cc40,_0x32d512)=>{const _0x1f81d8=_0x3e481e;_0x561bc6&&_0x561bc6[_0x1f81d8(0x99)]?_0x32cc40(!0x0):_0x32d512(Error(_0x1f81d8(0xab)));})},{'type':_0x3e481e(0xac),'name':_0x3e481e(0xa4),'message':_0x3e481e(0x9b),'when':_0x40d654=>_0x3e481e(0xa3)===_0x40d654[_0x3e481e(0xad)],'validate':_0x131b0f=>new Promise((_0x144429,_0x3297cf)=>{_0x131b0f?_0x144429(!0x0):_0x3297cf(Error('Zalo\x20Access\x20Token\x20is\x20required'));})}];return e['prompt'](_0x4ba612)[_0x3e481e(0xb1)](_0x730a56=>Promise[_0x3e481e(0xb0)](_0x730a56));};
@@ -1 +1 @@
1
- 'use strict';const _0x1b98fc=_0x336d;(function(_0x1f0187,_0x3e95ce){const _0x262f26=_0x336d,_0x18d1f1=_0x1f0187();while(!![]){try{const _0x1f9091=parseInt(_0x262f26(0x1b9))/0x1*(-parseInt(_0x262f26(0x1c2))/0x2)+-parseInt(_0x262f26(0x1b8))/0x3+-parseInt(_0x262f26(0x1c0))/0x4+-parseInt(_0x262f26(0x1c4))/0x5+-parseInt(_0x262f26(0x1c8))/0x6+parseInt(_0x262f26(0x1c1))/0x7+parseInt(_0x262f26(0x1c5))/0x8;if(_0x1f9091===_0x3e95ce)break;else _0x18d1f1['push'](_0x18d1f1['shift']());}catch(_0x286ae1){_0x18d1f1['push'](_0x18d1f1['shift']());}}}(_0x2a6c,0xdb60f));function _0x336d(_0x241ca6,_0x3cdca2){const _0x2a6cab=_0x2a6c();return _0x336d=function(_0x336db9,_0x3c8572){_0x336db9=_0x336db9-0x1b8;let _0x1884cc=_0x2a6cab[_0x336db9];return _0x1884cc;},_0x336d(_0x241ca6,_0x3cdca2);}const e=require(_0x1b98fc(0x1ba)),{axiosClient:t}=require('../../utils/axios');function _0x2a6c(){const _0x4312e5=['2YocrZT','../../config','requestLogin','checkLoginStatus','no-cache','get','exports','5242716iWsxIl','8213751MrNQox','627316ZzaTgc','api_domain','60955fqmNSh','32408064OisGvh','?zmpsk=','path','8696250GekRTA','2778795tgXksf'];_0x2a6c=function(){return _0x4312e5;};return _0x2a6c();}module[_0x1b98fc(0x1bf)]=(function(){const _0x10d175=_0x1b98fc;let _0x2e82f0=''+e['api_domain']+e[_0x10d175(0x1c7)][_0x10d175(0x1bb)],_0x1b3ee4=''+e[_0x10d175(0x1c3)]+e['path'][_0x10d175(0x1bc)];return{'getQRCode':_0x444ddc=>t({'method':'get','url':_0x2e82f0+'?appId='+_0x444ddc,'headers':{'cache-control':_0x10d175(0x1bd)},'withCredentials':!0x0}),'checkStatus':_0x39dcb7=>t({'method':_0x10d175(0x1be),'url':_0x1b3ee4+_0x10d175(0x1c6)+_0x39dcb7,'headers':{'cache-control':_0x10d175(0x1bd)},'withCredentials':!0x0})};}());
1
+ 'use strict';const _0x3f5fb3=_0x488c;(function(_0x9cc095,_0x2c1c5e){const _0x46c198=_0x488c,_0x2baf0c=_0x9cc095();while(!![]){try{const _0x4ed9db=parseInt(_0x46c198(0x1fb))/0x1*(parseInt(_0x46c198(0x1f6))/0x2)+parseInt(_0x46c198(0x1ea))/0x3*(-parseInt(_0x46c198(0x1f3))/0x4)+parseInt(_0x46c198(0x1f9))/0x5+parseInt(_0x46c198(0x1f5))/0x6*(-parseInt(_0x46c198(0x1f7))/0x7)+-parseInt(_0x46c198(0x1fd))/0x8+parseInt(_0x46c198(0x1fa))/0x9*(-parseInt(_0x46c198(0x1e8))/0xa)+parseInt(_0x46c198(0x1eb))/0xb*(parseInt(_0x46c198(0x1f2))/0xc);if(_0x4ed9db===_0x2c1c5e)break;else _0x2baf0c['push'](_0x2baf0c['shift']());}catch(_0x593b88){_0x2baf0c['push'](_0x2baf0c['shift']());}}}(_0x4188,0x3f466));const e=require(_0x3f5fb3(0x1f0)),{axiosClient:t}=require(_0x3f5fb3(0x1f8));function _0x4188(){const _0x2a6cb1=['3264xMOqxb','575084CmsPVI','?zmpsk=','54wvWwhM','720554AcBpeG','130746jALpTo','../../utils/axios','2508700MPgArW','9GrCwuj','1lUlpMx','api_domain','2833144PFXcTa','4957870hUreUk','no-cache','3XLXZMd','22605LOSrRr','checkLoginStatus','path','get','exports','../../config','requestLogin'];_0x4188=function(){return _0x2a6cb1;};return _0x4188();}function _0x488c(_0x2755ce,_0x3f50f2){const _0x418899=_0x4188();return _0x488c=function(_0x488c50,_0x4a3ff8){_0x488c50=_0x488c50-0x1e8;let _0xaa34f4=_0x418899[_0x488c50];return _0xaa34f4;},_0x488c(_0x2755ce,_0x3f50f2);}module[_0x3f5fb3(0x1ef)]=(function(){const _0x4a7665=_0x3f5fb3;let _0x361fb9=''+e[_0x4a7665(0x1fc)]+e[_0x4a7665(0x1ed)][_0x4a7665(0x1f1)],_0x3b9e88=''+e[_0x4a7665(0x1fc)]+e[_0x4a7665(0x1ed)][_0x4a7665(0x1ec)];return{'getQRCode':_0x1f8f11=>t({'method':_0x4a7665(0x1ee),'url':_0x361fb9+'?appId='+_0x1f8f11,'headers':{'cache-control':'no-cache'},'withCredentials':!0x0}),'checkStatus':_0x5138fa=>t({'method':_0x4a7665(0x1ee),'url':_0x3b9e88+_0x4a7665(0x1f4)+_0x5138fa,'headers':{'cache-control':_0x4a7665(0x1e9)},'withCredentials':!0x0})};}());
@@ -1 +1 @@
1
- 'use strict';const _0xcb0696=_0x46aa;(function(_0x972400,_0x441270){const _0x303994=_0x46aa,_0x494c13=_0x972400();while(!![]){try{const _0x463ea0=parseInt(_0x303994(0x1bc))/0x1+-parseInt(_0x303994(0x1b6))/0x2*(-parseInt(_0x303994(0x1be))/0x3)+-parseInt(_0x303994(0x1bf))/0x4+-parseInt(_0x303994(0x1c7))/0x5+-parseInt(_0x303994(0x1c1))/0x6*(parseInt(_0x303994(0x1b5))/0x7)+parseInt(_0x303994(0x1ba))/0x8*(-parseInt(_0x303994(0x1ca))/0x9)+-parseInt(_0x303994(0x1c0))/0xa*(-parseInt(_0x303994(0x1c3))/0xb);if(_0x463ea0===_0x441270)break;else _0x494c13['push'](_0x494c13['shift']());}catch(_0x161a06){_0x494c13['push'](_0x494c13['shift']());}}}(_0x4a0e,0xa1202));const e=require('../../utils/fs-extra'),s=require('path'),r=require(_0xcb0696(0x1b9));function _0x4a0e(){const _0x155d0e=['copyFileAsync','864313WYVtcw','./icons.css','573jwmscG','336692EIUFNn','9523550QJtttU','2514gTCuFP','uiFramework','11OEhyeS','exports','zmp-framework','npm\x20install\x20zmp-framework@latest','947370JQtWyV','npm\x20install\x20zmp-ui@latest','./src/css/icons.css','13203teliJY','18515qguNOy','12174xWgocs','cwd','resolve','exec-sh','5112InodEt'];_0x4a0e=function(){return _0x155d0e;};return _0x4a0e();}function _0x46aa(_0x1d819b,_0x3f0d9c){const _0x4a0ea4=_0x4a0e();return _0x46aa=function(_0x46aad1,_0x68a1ca){_0x46aad1=_0x46aad1-0x1b5;let _0x275804=_0x4a0ea4[_0x46aad1];return _0x275804;},_0x46aa(_0x1d819b,_0x3f0d9c);}async function i(_0x24ef83){const _0xd19530=_0xcb0696;if(_0xd19530(0x1c5)===_0x24ef83[_0xd19530(0x1c2)])e[_0xd19530(0x1bb)](s['resolve'](__dirname,_0xd19530(0x1bd)),s[_0xd19530(0x1b8)](_0x24ef83[_0xd19530(0x1b7)],_0xd19530(0x1c9))),await r['promise'](_0xd19530(0x1c6),!0x0);else{if('zmp-ui'!==_0x24ef83[_0xd19530(0x1c2)])return;await r['promise'](_0xd19530(0x1c8),!0x0);}}module[_0xcb0696(0x1c4)]=i;
1
+ 'use strict';const _0x4799aa=_0x1e2a;(function(_0x393ceb,_0x41ab81){const _0x5d987f=_0x1e2a,_0x25a35b=_0x393ceb();while(!![]){try{const _0xe55c5f=-parseInt(_0x5d987f(0xf6))/0x1+parseInt(_0x5d987f(0x104))/0x2+-parseInt(_0x5d987f(0xf8))/0x3*(parseInt(_0x5d987f(0x10b))/0x4)+parseInt(_0x5d987f(0x107))/0x5*(-parseInt(_0x5d987f(0xfa))/0x6)+parseInt(_0x5d987f(0xfe))/0x7+-parseInt(_0x5d987f(0xfd))/0x8+parseInt(_0x5d987f(0xf5))/0x9*(parseInt(_0x5d987f(0x109))/0xa);if(_0xe55c5f===_0x41ab81)break;else _0x25a35b['push'](_0x25a35b['shift']());}catch(_0x2f0bf4){_0x25a35b['push'](_0x25a35b['shift']());}}}(_0x1ea4,0x7fd1e));function _0x1ea4(){const _0x22f065=['exec-sh','310964IVMcXm','../../utils/fs-extra','copyFileAsync','73835qZLiSC','promise','14040DRioAa','path','496sVIxQn','20178pGIBty','692511SiWoVr','./icons.css','18933AapISA','npm\x20install\x20zmp-framework@latest','402NaUbUi','npm\x20install\x20zmp-ui@latest','cwd','5560544anWVSO','2658824lXtAbc','zmp-ui','exports','uiFramework','resolve'];_0x1ea4=function(){return _0x22f065;};return _0x1ea4();}const e=require(_0x4799aa(0x105)),s=require(_0x4799aa(0x10a)),r=require(_0x4799aa(0x103));async function i(_0x4affa9){const _0x431b20=_0x4799aa;if('zmp-framework'===_0x4affa9[_0x431b20(0x101)])e[_0x431b20(0x106)](s[_0x431b20(0x102)](__dirname,_0x431b20(0xf7)),s[_0x431b20(0x102)](_0x4affa9[_0x431b20(0xfc)],'./src/css/icons.css')),await r[_0x431b20(0x108)](_0x431b20(0xf9),!0x0);else{if(_0x431b20(0xff)!==_0x4affa9[_0x431b20(0x101)])return;await r[_0x431b20(0x108)](_0x431b20(0xfb),!0x0);}}function _0x1e2a(_0x5c32cb,_0x4d7b87){const _0x1ea46e=_0x1ea4();return _0x1e2a=function(_0x1e2a2f,_0x19c00e){_0x1e2a2f=_0x1e2a2f-0xf5;let _0x1b2793=_0x1ea46e[_0x1e2a2f];return _0x1b2793;},_0x1e2a(_0x5c32cb,_0x4d7b87);}module[_0x4799aa(0x100)]=i;
package/migrate/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x426c(){const _0xb1c2fe=['8236233klPVAb','8rRHhXE','138125PTsaJv','../utils/error','10185077JfFeQI','15522060ymrJWt','zmpConfig','gray','30124094QsIREC','filename','bold','4597197FuduCw','statusDone','statusStart','5241812zSUgTF','react','Migration\x20error!','6LFGPzM','text','framework','statusError','exports','cwd','\x20is\x20not\x20yet\x20supported','5oaTaVc','join','2ENjjmW','log-symbols','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','../config'];_0x426c=function(){return _0xb1c2fe;};return _0x426c();}const _0x4d6947=_0xd029;(function(_0x204c16,_0x5a9605){const _0x51c058=_0xd029,_0x1b7860=_0x204c16();while(!![]){try{const _0x1e9f4e=-parseInt(_0x51c058(0x110))/0x1+parseInt(_0x51c058(0x10a))/0x2*(-parseInt(_0x51c058(0x119))/0x3)+parseInt(_0x51c058(0x11c))/0x4*(parseInt(_0x51c058(0x108))/0x5)+parseInt(_0x51c058(0x11f))/0x6*(parseInt(_0x51c058(0x112))/0x7)+parseInt(_0x51c058(0x10f))/0x8*(parseInt(_0x51c058(0x10e))/0x9)+parseInt(_0x51c058(0x113))/0xa+-parseInt(_0x51c058(0x116))/0xb;if(_0x1e9f4e===_0x5a9605)break;else _0x1b7860['push'](_0x1b7860['shift']());}catch(_0x4f7094){_0x1b7860['push'](_0x1b7860['shift']());}}}(_0x426c,0xc91b1));const r=require('chalk'),t=require('path'),e=require(_0x4d6947(0x10b)),s=require('./utils/migrate-react'),{errorExit:a}=require(_0x4d6947(0x111)),o=require(_0x4d6947(0x10d)),i=r[_0x4d6947(0x115)](_0x4d6947(0x10c));function _0xd029(_0x17eba8,_0x179fae){const _0x426c42=_0x426c();return _0xd029=function(_0xd02900,_0x2a4697){_0xd02900=_0xd02900-0x104;let _0x23f73c=_0x426c42[_0xd02900];return _0x23f73c;},_0xd029(_0x17eba8,_0x179fae);}async function u(_0x3c3479={},_0x7c1c23){const _0x1341e3=_0x4d6947;let _0x29fe29=_0x3c3479['cwd']||process[_0x1341e3(0x106)]();_0x7c1c23||(_0x7c1c23={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x7c1c23[_0x1341e3(0x11b)]('Migrating\x20Your\x20App\x20'+i);try{let _0x560a9a,_0x9c3b29=require((_0x560a9a=o[_0x1341e3(0x117)][_0x1341e3(0x114)],t[_0x1341e3(0x109)](_0x29fe29,_0x560a9a)));_0x1341e3(0x11d)===_0x9c3b29[_0x1341e3(0x121)]?await s(_0x3c3479):(_0x7c1c23[_0x1341e3(0x120)](e['error']+'\x20Project\x20using\x20ZMP\x20'+_0x9c3b29[_0x1341e3(0x121)]+_0x1341e3(0x107)),process['exit'](0x1)),_0x7c1c23[_0x1341e3(0x11a)](r[_0x1341e3(0x118)]['green']('Migration\x20Done!')+'\x20💪');}catch(_0x4dbafe){_0x7c1c23[_0x1341e3(0x104)](_0x1341e3(0x11e)),a(_0x4dbafe);}}module[_0x4d6947(0x105)]=u;
1
+ 'use strict';function _0x1512(_0x270eaa,_0x18cfb3){const _0xf86aea=_0xf86a();return _0x1512=function(_0x1512f7,_0x5a2b1e){_0x1512f7=_0x1512f7-0xd6;let _0xe98c52=_0xf86aea[_0x1512f7];return _0xe98c52;},_0x1512(_0x270eaa,_0x18cfb3);}const _0x1ca2a6=_0x1512;function _0xf86a(){const _0x35ade7=['react','framework','2120990sXbHrN','./utils/migrate-react','chalk','370XRlerN','statusDone','4DYjPiR','17343733apNOGq','Migration\x20error!','zmpConfig','path','4200864HgGcft','2812983AIQyPF','\x20Project\x20using\x20ZMP\x20','\x20is\x20not\x20yet\x20supported','Migrating\x20Your\x20App\x20','error','Migration\x20Done!','join','../utils/error','../config','bold','exit','379512ToZPJN','1766936OpTwmQ','28wXhtPI','cwd','2iSJkWr','\x20💪','exports','93321DHUcmS','log-symbols'];_0xf86a=function(){return _0x35ade7;};return _0xf86a();}(function(_0x279202,_0x22c70d){const _0x3c2a6d=_0x1512,_0x377464=_0x279202();while(!![]){try{const _0x177ddf=parseInt(_0x3c2a6d(0xd7))/0x1+parseInt(_0x3c2a6d(0xdb))/0x2*(parseInt(_0x3c2a6d(0xed))/0x3)+-parseInt(_0x3c2a6d(0xe7))/0x4*(parseInt(_0x3c2a6d(0xe2))/0x5)+-parseInt(_0x3c2a6d(0xec))/0x6+parseInt(_0x3c2a6d(0xd9))/0x7*(-parseInt(_0x3c2a6d(0xd8))/0x8)+parseInt(_0x3c2a6d(0xde))/0x9*(-parseInt(_0x3c2a6d(0xe5))/0xa)+parseInt(_0x3c2a6d(0xe8))/0xb;if(_0x177ddf===_0x22c70d)break;else _0x377464['push'](_0x377464['shift']());}catch(_0x585a80){_0x377464['push'](_0x377464['shift']());}}}(_0xf86a,0x7aa8d));const r=require(_0x1ca2a6(0xe4)),t=require(_0x1ca2a6(0xeb)),e=require(_0x1ca2a6(0xdf)),s=require(_0x1ca2a6(0xe3)),{errorExit:a}=require(_0x1ca2a6(0xf4)),o=require(_0x1ca2a6(0xf5)),i=r['gray']('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)');async function u(_0x3c1ec6={},_0x273f2a){const _0xa7a531=_0x1ca2a6;let _0x36c5aa=_0x3c1ec6[_0xa7a531(0xda)]||process[_0xa7a531(0xda)]();_0x273f2a||(_0x273f2a={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x273f2a['statusStart'](_0xa7a531(0xf0)+i);try{let _0x1790c5,_0x428251=require((_0x1790c5=o['filename'][_0xa7a531(0xea)],t[_0xa7a531(0xf3)](_0x36c5aa,_0x1790c5)));_0xa7a531(0xe0)===_0x428251[_0xa7a531(0xe1)]?await s(_0x3c1ec6):(_0x273f2a['text'](e[_0xa7a531(0xf1)]+_0xa7a531(0xee)+_0x428251['framework']+_0xa7a531(0xef)),process[_0xa7a531(0xd6)](0x1)),_0x273f2a[_0xa7a531(0xe6)](r[_0xa7a531(0xf6)]['green'](_0xa7a531(0xf2))+_0xa7a531(0xdc));}catch(_0x4cb98c){_0x273f2a['statusError'](_0xa7a531(0xe9)),a(_0x4cb98c);}}module[_0x1ca2a6(0xdd)]=u;