zmp-cli 3.15.9 → 3.15.11

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 (43) hide show
  1. package/README.md +1 -1
  2. package/build/index.js +1 -1
  3. package/config/index.js +1 -1
  4. package/create/index.js +1 -1
  5. package/create/utils/generate-app-config.js +1 -1
  6. package/create/utils/generate-npm-scripts.js +1 -1
  7. package/create/utils/get-options.js +1 -1
  8. package/create/utils/npm-scripts.js +1 -1
  9. package/deploy/index.js +1 -1
  10. package/deploy/utils/get-options.js +1 -1
  11. package/deploy/utils/request-upload.js +1 -1
  12. package/deploy/utils/upload-app.js +1 -1
  13. package/index.js +1 -1
  14. package/login/index.js +1 -1
  15. package/login/utils/get-options.js +1 -1
  16. package/login/utils/zalo-login.js +1 -1
  17. package/migrate/icons/update-icon-v3.js +1 -1
  18. package/migrate/index.js +1 -1
  19. package/migrate/utils/get-options.js +1 -1
  20. package/migrate/utils/migrate-react.js +1 -1
  21. package/package.json +1 -1
  22. package/start/index.js +1 -1
  23. package/sync/index-to-app-config.js +1 -1
  24. package/sync/index.js +1 -1
  25. package/utils/axios.js +1 -1
  26. package/utils/check-update.js +1 -1
  27. package/utils/constants.js +1 -1
  28. package/utils/env.js +1 -1
  29. package/utils/error.js +1 -1
  30. package/utils/find-files-by-ext.js +1 -1
  31. package/utils/find-free-port.js +1 -1
  32. package/utils/fs-extra.js +1 -1
  33. package/utils/generate-pages-map.js +1 -1
  34. package/utils/get-app-info.js +1 -1
  35. package/utils/get-current-project.js +1 -1
  36. package/utils/get-ip.js +1 -1
  37. package/utils/get-latest-version.js +1 -0
  38. package/utils/log.js +1 -1
  39. package/utils/node-blob.js +1 -1
  40. package/utils/resumable.d.js +1 -1
  41. package/utils/resumable.js +1 -1
  42. package/utils/spinner.js +1 -1
  43. package/utils/tunnel.js +1 -1
package/README.md CHANGED
@@ -77,7 +77,7 @@ Một mã QR code sẽ hiển thị và bạn cần sử dụng ứng dụng Zal
77
77
 
78
78
  Để sử dụng các công cụ như Elements inspector, Console log, hay Network trong Devtools, bạn cần mở trình duyệt và nhập đường dẫn `http://localhost:<PORT>` được hiển thị trong output sau khi chạy lệnh start. Lưu ý: cần sử dụng trình duyệt Google Chrome hoặc một trình duyệt khác có nhân Chromium để mở đường dẫn trên.
79
79
 
80
- ![zmp start -D](https://mini.zalo.me/documents/assets/images/zmp-start-3ca76fd382d17e3af55991da9f63003b.gif)
80
+ ![zmp start -D](https://mini.zalo.me/documents/img/zmp-start-d.gif#bordered)
81
81
 
82
82
  ## Xuất bản
83
83
 
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';function _0xbf34(){const _0x37c792=['stringify','text','../utils/env','28082sQovRd','../utils/get-latest-version','path','www/','statusError','zmp-cli-core','green','join','gray','latestVersion','nextVersion','chalk','../utils/fs-extra','../utils/error','Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','appConfigJson','@rollup/plugin-replace','82pRCKwh','exports','9810msnaal','filename','yellow','4209385vpnaKD','Building\x20development\x20version...','1393035EWnRzC','cwd','mode','430283HHAiVt','bold','error','appConfig','writeFileSync','Building\x20for\x20production...','Build\x20Done!\x0a','882ylKTFa','statusStart','NODE_ENV','getEnv','node_modules','72fXRCKJ','4116380TUVXRr','6267774CIgGth','production'];_0xbf34=function(){return _0x37c792;};return _0xbf34();}function _0x4c5e(_0x3b7b7a,_0x2c4d9d){const _0xbf3452=_0xbf34();return _0x4c5e=function(_0x4c5ef1,_0x46d53e){_0x4c5ef1=_0x4c5ef1-0xb5;let _0x4729c9=_0xbf3452[_0x4c5ef1];return _0x4729c9;},_0x4c5e(_0x3b7b7a,_0x2c4d9d);}const _0x1ea86c=_0x4c5e;(function(_0x121915,_0x490006){const _0x4f1715=_0x4c5e,_0x18c7f8=_0x121915();while(!![]){try{const _0x4ff517=parseInt(_0x4f1715(0xd7))/0x1*(-parseInt(_0x4f1715(0xc6))/0x2)+parseInt(_0x4f1715(0xde))/0x3+parseInt(_0x4f1715(0xc0))/0x4+parseInt(_0x4f1715(0xdc))/0x5+-parseInt(_0x4f1715(0xc1))/0x6+-parseInt(_0x4f1715(0xe1))/0x7*(-parseInt(_0x4f1715(0xbf))/0x8)+parseInt(_0x4f1715(0xba))/0x9*(-parseInt(_0x4f1715(0xd9))/0xa);if(_0x4ff517===_0x490006)break;else _0x18c7f8['push'](_0x18c7f8['shift']());}catch(_0x56c25b){_0x18c7f8['push'](_0x18c7f8['shift']());}}}(_0xbf34,0x919b9));const e=require(_0x1ea86c(0xd1)),r=require('ora'),t=require(_0x1ea86c(0xc8)),i=require('@rollup/plugin-dynamic-import-vars')['default'],o=require(_0x1ea86c(0xd6)),{buildApp:n}=require(_0x1ea86c(0xcb)),u=require(_0x1ea86c(0xd2)),a=require(_0x1ea86c(0xc5)),{errorExit:s}=require(_0x1ea86c(0xd3)),l=require('../config'),p=require('../utils/generate-pages-map'),{existsSync:g}=require('fs'),c=require(_0x1ea86c(0xc7)),w=a[_0x1ea86c(0xbd)](_0x1ea86c(0xbc))||_0x1ea86c(0xc2),d=e[_0x1ea86c(0xce)](_0x1ea86c(0xd4)),m=e[_0x1ea86c(0xdb)]('Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher'),f=r('production'===w?_0x1ea86c(0xb8):_0x1ea86c(0xdd));module[_0x1ea86c(0xd8)]=async(_0x50d5a1={},_0x2e4cca)=>{const _0x6bbce0=_0x1ea86c;let _0x57236c=_0x50d5a1[_0x6bbce0(0xdf)]||process[_0x6bbce0(0xdf)](),_0x565833=_0x469662=>t['join'](_0x57236c,_0x469662),_0x11e58c=_0x50d5a1[_0x6bbce0(0xd5)]||require(_0x565833(l[_0x6bbce0(0xda)][_0x6bbce0(0xb6)]));_0x2e4cca||(_0x2e4cca={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),g(t[_0x6bbce0(0xcd)](_0x57236c,_0x6bbce0(0xbe),'zmp-framework'))&&_0x2e4cca['text'](m),f['start'](),_0x2e4cca[_0x6bbce0(0xbb)](d);try{let _0x1eb6b6=a['getEnv'](l['env']['appId']),_0x46a088=_0x50d5a1[_0x6bbce0(0xd0)];if(!_0x46a088){let _0x5b1a82=await c(_0x1eb6b6,_0x50d5a1),_0x26c2ca=_0x5b1a82&&_0x5b1a82[_0x6bbce0(0xcf)]&&Number(_0x5b1a82[_0x6bbce0(0xcf)]);null==_0x26c2ca&&(_0x26c2ca=0x0),_0x46a088=_0x26c2ca+0x1;}let {appConfigJson:_0x552fa5}=await n({'cwd':_0x57236c,'mode':_0x50d5a1[_0x6bbce0(0xe0)]||w,'appId':_0x1eb6b6,'nextVersion':_0x46a088,'appConfig':_0x11e58c,'outDir':'www','vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>p(_0x57236c)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x2e4cca[_0x6bbce0(0xc4)],'warn':_0x2e4cca[_0x6bbce0(0xc4)],'warnOnce':_0x2e4cca[_0x6bbce0(0xc4)],'error':_0x2e4cca[_0x6bbce0(0xb5)]}});return _0x552fa5&&u[_0x6bbce0(0xb7)](_0x565833(_0x6bbce0(0xc9)+l[_0x6bbce0(0xda)][_0x6bbce0(0xb6)]),JSON[_0x6bbce0(0xc3)](_0x552fa5)),_0x2e4cca['statusDone'](''+e[_0x6bbce0(0xe2)][_0x6bbce0(0xcc)](_0x6bbce0(0xb9))),_0x552fa5;}catch(_0x1e95c0){_0x2e4cca[_0x6bbce0(0xca)]('Error\x20building\x20project'),s(_0x1e95c0);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';function _0x5a39(){var _0x3e1774=['admin/get-login-status','octet','4746204gPaBNU','https://zmp-api.developers.zalo.me/','5604sPHYZm','admin/request-login','3044502tSrBKi','70667tBSLHG','app-config.json','/.env','ZMP_TOKEN','app/upload-chunk','//h5.zdn.vn/zapps/','APP_ID','22byahnv','cwd','84NDzFqj','7CtaoQj','4807464PvremB','zmp-cli.json','349425YEYhKX','565371oHVQPu','10cOrbmj','exports','44341XUshIR','admin/login'];_0x5a39=function(){return _0x3e1774;};return _0x5a39();}var _0x2cff6f=_0x5a44;(function(_0x3b047b,_0x36106d){var _0x2b9e22=_0x5a44,_0x4d1772=_0x3b047b();while(!![]){try{var _0x1ad2fd=-parseInt(_0x2b9e22(0xf8))/0x1*(-parseInt(_0x2b9e22(0xff))/0x2)+parseInt(_0x2b9e22(0xf7))/0x3+parseInt(_0x2b9e22(0x101))/0x4*(-parseInt(_0x2b9e22(0x105))/0x5)+-parseInt(_0x2b9e22(0xf3))/0x6+parseInt(_0x2b9e22(0x102))/0x7*(-parseInt(_0x2b9e22(0x103))/0x8)+-parseInt(_0x2b9e22(0x106))/0x9*(parseInt(_0x2b9e22(0x107))/0xa)+parseInt(_0x2b9e22(0x109))/0xb*(parseInt(_0x2b9e22(0xf5))/0xc);if(_0x1ad2fd===_0x36106d)break;else _0x4d1772['push'](_0x4d1772['shift']());}catch(_0x5cdbd5){_0x4d1772['push'](_0x4d1772['shift']());}}}(_0x5a39,0xb7a95));function _0x5a44(_0x1519a2,_0x1ca8f9){var _0x5a3901=_0x5a39();return _0x5a44=function(_0x5a442d,_0x397603){_0x5a442d=_0x5a442d-0xf1;var _0x1ba8fa=_0x5a3901[_0x5a442d];return _0x1ba8fa;},_0x5a44(_0x1519a2,_0x1ca8f9);}module[_0x2cff6f(0x108)]={'filename':{'appConfig':_0x2cff6f(0xf9),'zmpConfig':_0x2cff6f(0x104),'packageJson':'package.json'},'api_domain':_0x2cff6f(0xf4),'zdn_url':_0x2cff6f(0xfd),'path':{'login':_0x2cff6f(0x10a),'requestLogin':_0x2cff6f(0xf6),'checkLoginStatus':_0x2cff6f(0xf1),'uploadAppByChunk':_0x2cff6f(0xfc),'requestUploadResumable':'app/request-upload','getAppInfo':'app/get-info','getLatestVersion':'dev-tools/app/get-info'},'dirname':__dirname,'root_env':()=>process[_0x2cff6f(0x100)]()+_0x2cff6f(0xfa),'env':{'appId':_0x2cff6f(0xfe),'token':_0x2cff6f(0xfb)},'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':'Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','request_timeout':'Request\x20Timeout'},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x2cff6f(0xf2),'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 _0x4b1735=_0x2700;function _0x2354(){const _0x2793dc=['Error\x20creating\x20project\x20files','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','zmp-cli-core','\x0a-\x20📖\x20Check\x20','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','\x0a\x20\x20','Next\x20steps:','Creating\x20project\x20files','replace','\x20&&\x20npm\x20install','path','48bUiQBj','newProject','16467yEfAaG','statusDone','382907oxBVBQ','statusStart','bold','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','321033mxEkvM','https://mini.zalo.me/','Installing\x20NPM\x20Dependencies','text','appConfig','5RwCMAG','filename','\x20💪\x0a\x0a','\x0a-\x20👉\x20Run\x20\x22cd\x20','.env','7DtdwXs','Done!','../config','cwd','folderName','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','success','join','gray','3618996TCAiPW','exec-sh','4tgeFEV','promise','content','4332984vrzfcC','149998dQXFQg','exports','540HoDoAx','../utils/error','\x20Run\x20\x22npm\x20run\x20','../utils/fs-extra','writeFileSync','Generating\x20app-config.json','2890593zJXUNA','description','log-symbols','./utils/generate-npm-scripts','Error\x20installing\x20NPM\x20Dependencies','info','npm\x20install','statusError'];_0x2354=function(){return _0x2793dc;};return _0x2354();}(function(_0x56406b,_0x4f0fba){const _0x3dce92=_0x2700,_0x4d9b74=_0x56406b();while(!![]){try{const _0x58b645=parseInt(_0x3dce92(0x1f6))/0x1*(-parseInt(_0x3dce92(0x1c9))/0x2)+-parseInt(_0x3dce92(0x1ec))/0x3*(parseInt(_0x3dce92(0x1c5))/0x4)+-parseInt(_0x3dce92(0x1f1))/0x5*(-parseInt(_0x3dce92(0x1ff))/0x6)+parseInt(_0x3dce92(0x1e8))/0x7*(parseInt(_0x3dce92(0x1e4))/0x8)+-parseInt(_0x3dce92(0x1d1))/0x9+parseInt(_0x3dce92(0x1cb))/0xa*(parseInt(_0x3dce92(0x1e6))/0xb)+parseInt(_0x3dce92(0x1c8))/0xc;if(_0x58b645===_0x4f0fba)break;else _0x4d9b74['push'](_0x4d9b74['shift']());}catch(_0x1d0fb0){_0x4d9b74['push'](_0x4d9b74['shift']());}}}(_0x2354,0x6690f));const e=require(_0x4b1735(0x1c4)),t=require(_0x4b1735(0x1e3)),n=require('chalk'),r=require(_0x4b1735(0x1d3)),{initProject:i}=require(_0x4b1735(0x1db)),o=require(_0x4b1735(0x1ce)),{errorExit:s}=require(_0x4b1735(0x1cc)),a=require(_0x4b1735(0x1f8)),c=require('./utils/generate-app-config'),l=require(_0x4b1735(0x1d4)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x4b1735(0x1fe)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)');async function f(_0x121a9a,_0x125326){const _0xc6c8f8=_0x4b1735;_0x125326[_0xc6c8f8(0x1e9)]('Creating\x20project\x20files');try{let {cwd:_0x3b7e4c,template:_0x8c490,folderName:_0x1d89f4,name:_0x13e830}=_0x121a9a;await i({'cwd':_0x3b7e4c,'template':_0x8c490,'folderName':_0x1d89f4,'projectName':_0x13e830});}catch(_0x502cbb){_0x125326['statusError'](_0xc6c8f8(0x1d9)),s(_0x502cbb);}_0x125326[_0xc6c8f8(0x1e7)](_0xc6c8f8(0x1e0));}async function m(_0x146c55){const _0x5ad005=_0x4b1735;let _0x4a07f5=t['resolve'](_0x146c55[_0x5ad005(0x1f9)],_0x5ad005(0x1f5)),_0x37698b=t['resolve'](_0x146c55[_0x5ad005(0x1f9)],_0x146c55[_0x5ad005(0x1fa)],_0x5ad005(0x1f5));p(_0x4a07f5)&&!p(_0x37698b)&&u(_0x4a07f5,_0x37698b);}async function g(_0x31984e,_0xfe8d4b){const _0xba4f89=_0x4b1735;let {cwd:_0x273dac}=_0x31984e;_0xfe8d4b[_0xba4f89(0x1e9)]('Generating\x20app-config.json');let _0x4cb083=c(_0x31984e);o[_0xba4f89(0x1cf)](t[_0xba4f89(0x1fd)](_0x273dac,a[_0xba4f89(0x1f2)][_0xba4f89(0x1f0)]),_0x4cb083[_0xba4f89(0x1c7)]),_0xfe8d4b['statusDone'](_0xba4f89(0x1d0));}async function $(_0x3b91c7,_0xb85098){const _0x576abd=_0x4b1735;let _0x822369=t[_0x576abd(0x1fd)](_0x3b91c7[_0x576abd(0x1f9)],_0x3b91c7['folderName']);_0xb85098[_0x576abd(0x1e9)]('Installing\x20NPM\x20Dependencies\x20'+d);let _0x492e38=_0x822369===process[_0x576abd(0x1f9)]();try{_0x492e38?await e['promise'](_0x576abd(0x1d7),!0x0):await e[_0x576abd(0x1c6)]('cd\x20'+_0x822369[_0x576abd(0x1e1)](/ /g,'\x5c\x20')+_0x576abd(0x1e2),!0x0);}catch(_0x19ae52){_0xb85098[_0x576abd(0x1d8)](_0x576abd(0x1d5)),s(_0x19ae52);return;}_0xb85098[_0x576abd(0x1e7)](_0x576abd(0x1ee));}async function h(_0x248664,_0x203d37){const _0x41ce79=_0x4b1735;let _0x35befc=l(['s','r'])['map'](_0x29f10c=>'-\x20'+_0x29f10c['icon']+_0x41ce79(0x1cd)+_0x29f10c['name']+'\x22\x20-\x20'+_0x29f10c[_0x41ce79(0x1d2)]),_0x29ddfc='\x0a'+n[_0x41ce79(0x1ea)](r[_0x41ce79(0x1fc)])+'\x20'+n[_0x41ce79(0x1ea)](_0x41ce79(0x1f7))+_0x41ce79(0x1f3)+n[_0x41ce79(0x1ea)](r[_0x41ce79(0x1d6)])+'\x20'+n[_0x41ce79(0x1ea)](_0x41ce79(0x1df))+_0x41ce79(0x1f4)+_0x248664['folderName']+'\x22\x0a'+_0x35befc[_0x41ce79(0x1fd)]('\x0a')+_0x41ce79(0x1fb)+n[_0x41ce79(0x1ea)](_0x41ce79(0x1ed))+_0x41ce79(0x1dc)+n['bold']('README.md')+_0x41ce79(0x1eb);_0x203d37[_0x41ce79(0x1ef)](_0x29ddfc);}function _0x2700(_0x196657,_0x33b8bc){const _0x235403=_0x2354();return _0x2700=function(_0x270041,_0x9e3b15){_0x270041=_0x270041-0x1c4;let _0x2b8f76=_0x235403[_0x270041];return _0x2b8f76;},_0x2700(_0x196657,_0x33b8bc);}async function y(_0x2523df,_0x89977c){const _0x22accf=_0x4b1735;let _0xe0d71a='\x0a'+n[_0x22accf(0x1ea)](r[_0x22accf(0x1fc)])+'\x20'+n[_0x22accf(0x1ea)](_0x22accf(0x1f7))+'\x20💪\x0a\x0a'+n['bold'](r[_0x22accf(0x1d6)])+'\x20'+n[_0x22accf(0x1ea)](_0x22accf(0x1df))+_0x22accf(0x1da)+n[_0x22accf(0x1ea)](_0x22accf(0x1dd))+_0x22accf(0x1de);_0x89977c[_0x22accf(0x1ef)](_0xe0d71a);}module[_0x4b1735(0x1ca)]=async(_0x5a3074={},_0x3ce738)=>{const _0x358c7f=_0x4b1735;for(let _0x10b0bb of(_0x3ce738||(_0x3ce738={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x5a3074[_0x358c7f(0x1e5)]?[f,m,$,h]:[g,y]))await _0x10b0bb(_0x5a3074,_0x3ce738);};
@@ -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 _0x11a1(_0x16ee6e,_0x1a8440){const _0x197de2=_0x197d();return _0x11a1=function(_0x11a128,_0x3b8d1a){_0x11a128=_0x11a128-0x147;let _0x549ea6=_0x197de2[_0x11a128];return _0x549ea6;},_0x11a1(_0x16ee6e,_0x1a8440);}const _0x1a2ced=_0x11a1;function _0x197d(){const _0x317961=['26113DfjvqO','back','16uyZyiE','#1843EF','11801028axlbhu','857170kpQbBy','20742RDIFfN','5RvHSAr','white','trim','4uXdAmJ','stringify','1031853KhVeaE','exports','1760481BJYvdM','11ROJKYR','49IYxovO','40840bGnqfG'];_0x197d=function(){return _0x317961;};return _0x197d();}(function(_0x2cd110,_0x48b025){const _0x32f32f=_0x11a1,_0x598d03=_0x2cd110();while(!![]){try{const _0x549696=-parseInt(_0x32f32f(0x149))/0x1*(parseInt(_0x32f32f(0x14b))/0x2)+-parseInt(_0x32f32f(0x155))/0x3*(parseInt(_0x32f32f(0x153))/0x4)+parseInt(_0x32f32f(0x150))/0x5*(-parseInt(_0x32f32f(0x14f))/0x6)+-parseInt(_0x32f32f(0x147))/0x7*(-parseInt(_0x32f32f(0x148))/0x8)+-parseInt(_0x32f32f(0x157))/0x9+parseInt(_0x32f32f(0x14e))/0xa*(-parseInt(_0x32f32f(0x158))/0xb)+parseInt(_0x32f32f(0x14d))/0xc;if(_0x549696===_0x48b025)break;else _0x598d03['push'](_0x598d03['shift']());}catch(_0x4c7898){_0x598d03['push'](_0x598d03['shift']());}}}(_0x197d,0x2c50c));module[_0x1a2ced(0x156)]=function(_0x483779){const _0x162735=_0x1a2ced;let {name:_0x27bfff}=_0x483779,_0x4a3dd5={'title':_0x27bfff,'headerTitle':_0x27bfff,'headerColor':_0x162735(0x14c),'textColor':_0x162735(0x151),'leftButton':_0x162735(0x14a),'statusBar':'normal','actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x162735(0x154)]({'app':_0x4a3dd5,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)[_0x162735(0x152)](),'appConfig':_0x4a3dd5};};
@@ -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 _0x318593=_0x1e44;(function(_0x3b4e9e,_0xdb2b10){const _0x427a47=_0x1e44,_0x42b033=_0x3b4e9e();while(!![]){try{const _0x331ed5=-parseInt(_0x427a47(0x14b))/0x1+-parseInt(_0x427a47(0x153))/0x2+parseInt(_0x427a47(0x152))/0x3+-parseInt(_0x427a47(0x158))/0x4*(-parseInt(_0x427a47(0x156))/0x5)+parseInt(_0x427a47(0x15b))/0x6*(-parseInt(_0x427a47(0x159))/0x7)+parseInt(_0x427a47(0x14e))/0x8*(parseInt(_0x427a47(0x14f))/0x9)+parseInt(_0x427a47(0x15a))/0xa;if(_0x331ed5===_0xdb2b10)break;else _0x42b033['push'](_0x42b033['shift']());}catch(_0x49dd16){_0x42b033['push'](_0x42b033['shift']());}}}(_0x2fca,0xab4a2));function _0x1e44(_0x31d2cb,_0x8c3ed5){const _0x2fca79=_0x2fca();return _0x1e44=function(_0x1e4466,_0x1cbaa1){_0x1e4466=_0x1e4466-0x14b;let _0x40606f=_0x2fca79[_0x1e4466];return _0x40606f;},_0x1e44(_0x31d2cb,_0x8c3ed5);}const i=require('./npm-scripts');module[_0x318593(0x150)]=(_0x5cf3b6=['s','r'])=>_0x5cf3b6[_0x318593(0x151)](_0x3a2c56=>({'icon':i[_0x318593(0x15d)][_0x3a2c56][_0x318593(0x15c)],'name':i[_0x318593(0x15d)][_0x3a2c56][_0x318593(0x14d)],'script':i[_0x318593(0x15d)][_0x3a2c56]['script'],'description':i[_0x318593(0x15d)][_0x3a2c56][_0x318593(0x154)]})),module[_0x318593(0x150)][_0x318593(0x157)]=(_0x344966=['t'])=>_0x344966[_0x318593(0x151)](_0x4176a2=>({'icon':i[_0x318593(0x155)][_0x4176a2][_0x318593(0x15c)],'name':i[_0x318593(0x155)][_0x4176a2]['name'],'script':i['tailwind'][_0x4176a2][_0x318593(0x14c)],'description':i[_0x318593(0x155)][_0x4176a2]['description']}));function _0x2fca(){const _0x3dfd86=['1298890CiTeQe','description','tailwind','53070DOOzQQ','generateTailWindScripts','248POZQte','9051pCeEhG','9341290dOrKfh','5850MOViSL','icon','default','1207974QMcONa','script','name','10249936CqVOVT','9vTyUhu','exports','map','2838771zdtkfn'];_0x2fca=function(){return _0x3dfd86;};return _0x2fca();}
@@ -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';const _0x5f04fd=_0x24a9;function _0x15cc(){const _0x393314=['App\x20name\x20is\x20required','1405096SzrkbA','New\x20project','Choose\x20a\x20template:','55JLeBOy','28wdSaUY','Existing\x20project','input','Folder\x20name:','zmp-cli-core','Separator','exports','11796705zkAHRQ','toLowerCase','then','14192eslKQs','italic','1201722BqrUsn','replace','filter','ZaUI\x20','prompt','isBlank','inquirer','name','App\x20(project)\x20name:','resolve','740504UFfADL','372108IeHWgJ','35831ijmqvr','map','\x20App','My\x20App','newProject','list'];_0x15cc=function(){return _0x393314;};return _0x15cc();}(function(_0x1203fb,_0x186a06){const _0x470efd=_0x24a9,_0x58f44d=_0x1203fb();while(!![]){try{const _0x351a7c=parseInt(_0x470efd(0x1d8))/0x1*(parseInt(_0x470efd(0x1e3))/0x2)+-parseInt(_0x470efd(0x1cc))/0x3+-parseInt(_0x470efd(0x1d6))/0x4+-parseInt(_0x470efd(0x1e2))/0x5*(parseInt(_0x470efd(0x1d7))/0x6)+-parseInt(_0x470efd(0x1df))/0x7+parseInt(_0x470efd(0x1ca))/0x8+parseInt(_0x470efd(0x1c7))/0x9;if(_0x351a7c===_0x186a06)break;else _0x58f44d['push'](_0x58f44d['shift']());}catch(_0xfaa098){_0x58f44d['push'](_0x58f44d['shift']());}}}(_0x15cc,0x545b7));const e=require(_0x5f04fd(0x1d2)),r=require('chalk'),{INIT_TEMPLATES:a}=require(_0x5f04fd(0x1c4)),t=[{'type':'list','name':_0x5f04fd(0x1dc),'message':'What\x20action\x20you\x20want\x20to\x20do?','choices':[{'name':'Create\x20a\x20new\x20ZMP\x20project','value':!0x0,'short':_0x5f04fd(0x1e0)},{'name':'Using\x20ZMP\x20to\x20deploy\x20only','value':!0x1,'short':_0x5f04fd(0x1c1)}]},{'type':_0x5f04fd(0x1dd),'name':'template','when':_0xdec61f=>_0xdec61f[_0x5f04fd(0x1dc)],'message':_0x5f04fd(0x1e1),'choices':[...a[_0x5f04fd(0x1ce)](_0x37cb40=>_0x37cb40['isBlank'])[_0x5f04fd(0x1d9)](_0x54737c=>({'name':_0x54737c['name'],'value':_0x54737c})),new e[(_0x5f04fd(0x1c5))](),...a[_0x5f04fd(0x1ce)](_0x604dbe=>!_0x604dbe[_0x5f04fd(0x1d1)])['map'](_0x5ceed4=>({'name':_0x5ceed4[_0x5f04fd(0x1d3)],'value':_0x5ceed4}))]},{'type':_0x5f04fd(0x1c2),'name':'name','message':_0x5f04fd(0x1d4),'default':_0x25eadd=>{const _0xcd8fea=_0x5f04fd;let {template:_0x3525b8}=_0x25eadd;return _0x3525b8&&!_0x3525b8[_0xcd8fea(0x1d1)]?'My\x20'+_0x3525b8['name'][_0xcd8fea(0x1cd)](_0xcd8fea(0x1cf),'')+_0xcd8fea(0x1da):_0xcd8fea(0x1db);},'validate':_0xe6202=>new Promise((_0x416d95,_0x17546f)=>{const _0x148646=_0x5f04fd;_0xe6202?_0x416d95(!0x0):_0x17546f(Error(_0x148646(0x1de)));})},{'type':'input','name':'folderName','when':_0xf66122=>_0xf66122[_0x5f04fd(0x1dc)],'message':_0x5f04fd(0x1c3),'suffix':'\x0a'+r[_0x5f04fd(0x1cb)]('(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)'),'default':_0x256e8c=>{const _0x2fdb9a=_0x5f04fd;let {name:_0x3cc013}=_0x256e8c;return _0x3cc013['replace'](/ /g,'-')['replace'](/[^a-zA-Z0-9-]/g,'')[_0x2fdb9a(0x1c8)]();},'validate':_0xe7d97f=>new Promise((_0x2dc675,_0x59791b)=>{_0xe7d97f?_0x2dc675(!0x0):_0x59791b(Error('Folder\x20name\x20is\x20required'));})}];function _0x24a9(_0x2b049a,_0x3ec623){const _0x15cc0d=_0x15cc();return _0x24a9=function(_0x24a9dc,_0x244573){_0x24a9dc=_0x24a9dc-0x1c1;let _0x48b823=_0x15cc0d[_0x24a9dc];return _0x48b823;},_0x24a9(_0x2b049a,_0x3ec623);}module[_0x5f04fd(0x1c6)]=function(){const _0x5ee405=_0x5f04fd;return e[_0x5ee405(0x1d0)](t)[_0x5ee405(0x1c9)](_0x5e49e4=>Promise[_0x5ee405(0x1d5)](_0x5e49e4));};
@@ -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 _0x92c7(){const _0x2f02d5=['httpServer','dev','join','build\x20tailwind\x20css','210759wmxbIt','tailwind','keys','1527794KVtiJY','zmp\x20start','prod','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','8235608ottTOY','name','2918715nNdgOp','start','default','map','1014678gPZuLT','deploy','33ffXQGS','5011990gviatt','7RToBwk','forEach','6xJygHO','build:css','serve','deploy\x20mini\x20app\x20for\x20production','2458460NBqJTr','split','3qdGWFa','run\x20development\x20server'];_0x92c7=function(){return _0x2f02d5;};return _0x92c7();}const _0x3c7781=_0x1e2f;(function(_0x128924,_0x5e916c){const _0x561d61=_0x1e2f,_0xdcf0b1=_0x128924();while(!![]){try{const _0x3a0fd6=-parseInt(_0x561d61(0xdf))/0x1+-parseInt(_0x561d61(0xe2))/0x2*(parseInt(_0x561d61(0xd9))/0x3)+parseInt(_0x561d61(0xd7))/0x4+-parseInt(_0x561d61(0xe8))/0x5*(-parseInt(_0x561d61(0xd3))/0x6)+-parseInt(_0x561d61(0xd1))/0x7*(parseInt(_0x561d61(0xe6))/0x8)+-parseInt(_0x561d61(0xcd))/0x9+-parseInt(_0x561d61(0xd0))/0xa*(-parseInt(_0x561d61(0xcf))/0xb);if(_0x3a0fd6===_0x5e916c)break;else _0xdcf0b1['push'](_0xdcf0b1['shift']());}catch(_0x347f96){_0xdcf0b1['push'](_0xdcf0b1['shift']());}}}(_0x92c7,0x8ed92));function _0x1e2f(_0x35e3a0,_0x31c039){const _0x92c75e=_0x92c7();return _0x1e2f=function(_0x1e2f55,_0x11d873){_0x1e2f55=_0x1e2f55-0xca;let _0xdbf412=_0x92c75e[_0x1e2f55];return _0xdbf412;},_0x1e2f(_0x35e3a0,_0x31c039);}const e={'d':_0x3c7781(0xdc),'p':_0x3c7781(0xe4),'s':_0x3c7781(0xca),'v':_0x3c7781(0xd5),'r':_0x3c7781(0xce),'t':_0x3c7781(0xd4)};function s(_0x2d5802){const _0x49f2b1=_0x3c7781;return _0x2d5802[_0x49f2b1(0xd8)]('_')[0x0][_0x49f2b1(0xd8)]('')[_0x49f2b1(0xcc)](_0x4811cc=>e[_0x4811cc])[_0x49f2b1(0xdd)]('-');}const t={'default':{'s':{'icon':'🔥','script':_0x3c7781(0xe3),'description':'run\x20development\x20server'},'r':{'icon':'🙏','script':'zmp\x20deploy','description':_0x3c7781(0xd6)}},'httpServer':{'v':{'icon':'🔧','script':'http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','description':_0x3c7781(0xda)},'s':{'icon':'🔥','script':'npm\x20run\x20serve','description':_0x3c7781(0xda)}},'tailwind':{'t':{'icon':'🔧','script':_0x3c7781(0xe5),'description':_0x3c7781(0xde)}}};Object[_0x3c7781(0xe1)](t[_0x3c7781(0xcb)])[_0x3c7781(0xd2)](_0x4c92ab=>{const _0x472a07=_0x3c7781;t[_0x472a07(0xcb)][_0x4c92ab][_0x472a07(0xe7)]=s(_0x4c92ab);}),Object['keys'](t[_0x3c7781(0xdb)])['forEach'](_0x1d99fe=>{t['httpServer'][_0x1d99fe]['name']=s(_0x1d99fe);}),Object['keys'](t[_0x3c7781(0xe0)])[_0x3c7781(0xd2)](_0x58780e=>{const _0x48fc76=_0x3c7781;t[_0x48fc76(0xe0)][_0x58780e]['name']=s(_0x58780e);}),module['exports']=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';function _0x2941(){const _0x3a482c=['api_domain','token','log-symbols','packageJson','outputDir','www','identifier','nextVersion','title','filename','../config','zmp','Deploy\x20Done!','../utils/error','./utils/upload-app','path','dependencies','2341080NUMnYX','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','listAsyncJS','\x20💪','zip','bold','length','16303086DIFJQP','4409741UIrMZG','green','4bsyfJi','1210791EugmBm','app_config_not_found','874313jkkgep','statusDone','stringify','requestUploadResumable','cwd','exports','appUrl','env','error_msg','zip-local','writeFileSync','appConfig','versionStatus','statusError','text','info','statusStart','../utils/env','generate','1168rPPwZH','Version:','Error\x20deploying\x20your\x20app','./utils/request-upload','compress','Deploying\x20Your\x20App\x20','memory','../utils/fs-extra','includes','chalk','listSyncJS','customProject','entries','desc','2669848HNoxZx','data','14015cCeAhp','../build/index'];_0x2941=function(){return _0x3a482c;};return _0x2941();}function _0x52bc(_0x35dc97,_0x4a3ad4){const _0x29417f=_0x2941();return _0x52bc=function(_0x52bc9f,_0x219869){_0x52bc9f=_0x52bc9f-0x92;let _0x394afe=_0x29417f[_0x52bc9f];return _0x394afe;},_0x52bc(_0x35dc97,_0x4a3ad4);}const _0x12c12c=_0x52bc;(function(_0x1132f8,_0x2b4691){const _0x227ec6=_0x52bc,_0x212821=_0x1132f8();while(!![]){try{const _0x1e7b55=parseInt(_0x227ec6(0xb9))/0x1+-parseInt(_0x227ec6(0xb6))/0x2*(parseInt(_0x227ec6(0xb7))/0x3)+parseInt(_0x227ec6(0xcc))/0x4*(-parseInt(_0x227ec6(0x99))/0x5)+parseInt(_0x227ec6(0xac))/0x6+-parseInt(_0x227ec6(0xb4))/0x7+-parseInt(_0x227ec6(0x97))/0x8+parseInt(_0x227ec6(0xb3))/0x9;if(_0x1e7b55===_0x2b4691)break;else _0x212821['push'](_0x212821['shift']());}catch(_0x27af84){_0x212821['push'](_0x212821['shift']());}}}(_0x2941,0x76cb7));const e=require(_0x12c12c(0x92)),t=require(_0x12c12c(0xaa)),r=require(_0x12c12c(0xc2)),i=require(_0x12c12c(0x9d)),a=require('qrcode-terminal'),s=require(_0x12c12c(0xa5)),n=require(_0x12c12c(0x9a)),o=require(_0x12c12c(0xca)),{errorExit:l}=require(_0x12c12c(0xa8)),p=require(_0x12c12c(0xa9)),u=require(_0x12c12c(0xd3)),c=require(_0x12c12c(0xcf)),d=e['gray'](_0x12c12c(0xad)),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};module[_0x12c12c(0xbe)]=async(_0x5c2e74={},_0x4e82f3=f)=>{const _0x20a762=_0x12c12c;let _0x50ec83,_0x2676c1,_0x37df96,_0x14f992=_0x5c2e74[_0x20a762(0xbd)]||process[_0x20a762(0xbd)](),_0x5cf974=_0x5c2e74[_0x20a762(0x9f)]||_0x20a762(0xa0),_0x480c8f=s[_0x20a762(0x9b)],_0x843973=_0x5bbe37=>t['join'](_0x14f992,_0x5bbe37),_0x3c19a=o['getEnv'](s[_0x20a762(0xc0)][_0x20a762(0x9c)]),_0x7cf839=s['filename']['appConfig'],_0x428c75=s[_0x20a762(0xa4)][_0x20a762(0x9e)],_0x2d3741=!0x0;try{_0x50ec83=require(_0x843973(_0x7cf839));}catch(_0x454bcc){try{_0x50ec83=require(_0x843973(_0x5cf974+'/'+_0x7cf839)),_0x2d3741=!0x1;}catch(_0x286196){l(Error(s[_0x20a762(0xc1)][_0x20a762(0xb8)]));}}let _0x3d6381={};try{let _0xbcb172=require(_0x843973(_0x428c75))[_0x20a762(0xab)];Object[_0x20a762(0x95)](_0xbcb172)['forEach'](([_0x612702,_0x2a4434])=>{const _0x76f59f=_0x20a762;(_0x612702[_0x76f59f(0xd4)](_0x76f59f(0xa6))||_0x612702['includes']('react'))&&(_0x3d6381[_0x612702]=_0x2a4434);});}catch(_0x187873){}let _0xd63683={'appName':_0x50ec83['app'][_0x20a762(0xa3)],'appDesc':_0x5c2e74[_0x20a762(0x96)]||'Update\x20app\x20with\x20new\x20version','appConfig':JSON['stringify'](_0x50ec83),'frameworkVersions':JSON[_0x20a762(0xbb)](_0x3d6381)};try{let _0x5400bb=''+_0x480c8f+s['path'][_0x20a762(0xbc)],_0x22d78f=await c(_0x5400bb,_0xd63683,_0x5c2e74[_0x20a762(0xc5)],_0x3c19a);_0x2676c1=_0x22d78f[_0x20a762(0xa2)],_0x37df96=_0x22d78f[_0x20a762(0xa1)];}catch(_0x40cae9){l(_0x40cae9);}if(_0x5c2e74[_0x20a762(0x94)]){let _0x64d882=0x0;_0x50ec83['listSyncJS']&&_0x50ec83[_0x20a762(0x93)]['length']>0x0&&(_0x64d882+=0x1),_0x50ec83[_0x20a762(0xae)]&&_0x50ec83[_0x20a762(0xae)][_0x20a762(0xb2)]>0x0&&(_0x64d882+=0x1),0x0===_0x64d882&&l(Error('Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/')),_0x2d3741&&u[_0x20a762(0xc3)](_0x843973(_0x5cf974+'/'+s[_0x20a762(0xa4)][_0x20a762(0xc4)]),JSON[_0x20a762(0xbb)](_0x50ec83));}else _0x50ec83=await n({..._0x5c2e74,'appConfigJson':_0x50ec83,'nextVersion':_0x2676c1},_0x4e82f3);_0x4e82f3[_0x20a762(0xc9)](_0x20a762(0xd1)+d);try{let _0x35dc2c=await new Promise((_0xd78a94,_0x3a25a5)=>{const _0x5cdf04=_0x20a762;r[_0x5cdf04(0xb0)](_0x843973(_0x5cf974),function(_0x328174,_0x2294aa){const _0x4abc2b=_0x5cdf04;return _0x328174?_0x3a25a5(_0x328174):(_0x2294aa[_0x4abc2b(0xd0)](),_0xd78a94(_0x2294aa[_0x4abc2b(0xd2)]()));});}),_0x13f6f7={..._0xd63683,'appBuffer':_0x35dc2c,'identifier':_0x37df96},_0x6c40bf=await p(_0x13f6f7,_0x5c2e74,_0x4e82f3),_0x1b36fa=_0x6c40bf&&_0x6c40bf[_0x20a762(0x98)]&&_0x6c40bf[_0x20a762(0x98)][_0x20a762(0xbf)];a[_0x20a762(0xcb)](_0x1b36fa,{'small':!0x0},function(_0x1b9e3b){const _0x6078a7=_0x20a762;let _0x49058f=''+e['bold'](i[_0x6078a7(0xc8)]+'\x20View\x20app\x20at:\x0a'+_0x1b9e3b);_0x4e82f3[_0x6078a7(0xba)](e[_0x6078a7(0xb1)][_0x6078a7(0xb5)](_0x6078a7(0xa7))+_0x6078a7(0xaf)),_0x4e82f3['statusDone'](e[_0x6078a7(0xb1)][_0x6078a7(0xb5)](_0x6078a7(0xcd))+'\x20'+_0x2676c1),_0x4e82f3[_0x6078a7(0xc7)](_0x49058f);});}catch(_0x50494e){_0x4e82f3[_0x20a762(0xc6)](_0x20a762(0xce)),l(_0x50494e);}};
@@ -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 _0x5cc4(){const _0x26fcd8=['customProject','3208412qBWTkv','Deploy\x20your\x20existing\x20project','144pqVuyc','443634HNeaYz','length','www','5546380UypHdQ','map','outputDir','list','input','../../utils/constants','Where\x20is\x20your\x20dist\x20folder?','Quit','versionStatus','keys','Server\x20type\x20is\x20required!','Description:','inquirer','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','quit','1418541dYmZMu','lodash','2588910LnCDFW','6zFcLSI','2WnVFmO','228465vjfkEH','11217440CmpZqf'];_0x5cc4=function(){return _0x26fcd8;};return _0x5cc4();}const _0x51bfa9=_0x1263;(function(_0x226955,_0x4dca65){const _0x263083=_0x1263,_0x51fb4e=_0x226955();while(!![]){try{const _0x3bdd4f=parseInt(_0x263083(0x19d))/0x1+parseInt(_0x263083(0x196))/0x2*(parseInt(_0x263083(0x192))/0x3)+-parseInt(_0x263083(0x19a))/0x4+parseInt(_0x263083(0x194))/0x5*(parseInt(_0x263083(0x195))/0x6)+-parseInt(_0x263083(0x1a0))/0x7+parseInt(_0x263083(0x19c))/0x8*(-parseInt(_0x263083(0x197))/0x9)+parseInt(_0x263083(0x198))/0xa;if(_0x3bdd4f===_0x4dca65)break;else _0x51fb4e['push'](_0x51fb4e['shift']());}catch(_0x156937){_0x51fb4e['push'](_0x51fb4e['shift']());}}}(_0x5cc4,0x7b33a));const e=require(_0x51bfa9(0x18f)),{versionStatus:t}=require(_0x51bfa9(0x1a5)),i=require(_0x51bfa9(0x193)),r=[{'type':'list','name':_0x51bfa9(0x1a8),'message':'What\x20version\x20status\x20are\x20you\x20deploying?','choices':Object[_0x51bfa9(0x18c)](t)[_0x51bfa9(0x1a1)](_0x5c97ad=>({'name':i['capitalize'](_0x5c97ad),'value':t[_0x5c97ad]})),'when':_0x367e27=>!_0x367e27[_0x51bfa9(0x191)],'validate':_0x226bae=>new Promise((_0x6c129b,_0x2328a8)=>{const _0x12a009=_0x51bfa9;_0x226bae&&_0x226bae['length']?_0x6c129b(!0x0):_0x2328a8(Error(_0x12a009(0x18d)));})},{'type':_0x51bfa9(0x1a4),'name':'desc','message':_0x51bfa9(0x18e),'when':_0x43bece=>!_0x43bece[_0x51bfa9(0x191)],'validate':_0x38e1dd=>new Promise((_0x382288,_0x1b1e22)=>{const _0x5e53e3=_0x51bfa9;_0x38e1dd&&_0x38e1dd[_0x5e53e3(0x19e)]?_0x382288(!0x0):_0x1b1e22(Error('Description\x20is\x20required!'));})}],s=[{'type':_0x51bfa9(0x1a3),'name':_0x51bfa9(0x191),'message':_0x51bfa9(0x190),'choices':[{'name':_0x51bfa9(0x19b),'value':!0x1},{'name':_0x51bfa9(0x1a7),'value':!0x0}]},{'type':'input','name':_0x51bfa9(0x1a2),'message':_0x51bfa9(0x1a6),'when':_0x337775=>!_0x337775[_0x51bfa9(0x191)],'default':_0x51bfa9(0x19f)}];function _0x1263(_0x42de25,_0x5549b2){const _0x5cc4ed=_0x5cc4();return _0x1263=function(_0x12632c,_0x1a65e1){_0x12632c=_0x12632c-0x18c;let _0x2886b8=_0x5cc4ed[_0x12632c];return _0x2886b8;},_0x1263(_0x42de25,_0x5549b2);}module['exports']=async function(_0x464d36){const _0x1d0d4c=_0x51bfa9;let _0x5ad258=_0x464d36?[...r]:[...s,...r];return e['prompt'](_0x5ad258)['then'](_0x5d9415=>(_0x5d9415[_0x1d0d4c(0x199)]=!0x1,!0x1===_0x5d9415[_0x1d0d4c(0x191)]&&(_0x5d9415['customProject']=!0x0),Promise['resolve'](_0x5d9415)));};
@@ -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';function _0x5773(_0x30692e,_0x4783bf){const _0x461bcc=_0x461b();return _0x5773=function(_0x57736d,_0x848cf1){_0x57736d=_0x57736d-0x142;let _0x2f6207=_0x461bcc[_0x57736d];return _0x2f6207;},_0x5773(_0x30692e,_0x4783bf);}const _0x35290a=_0x5773;(function(_0xcc95d9,_0x1e0175){const _0x5c5024=_0x5773,_0x5deb17=_0xcc95d9();while(!![]){try{const _0x26f96f=-parseInt(_0x5c5024(0x147))/0x1+-parseInt(_0x5c5024(0x149))/0x2+-parseInt(_0x5c5024(0x144))/0x3+-parseInt(_0x5c5024(0x153))/0x4+-parseInt(_0x5c5024(0x14a))/0x5+-parseInt(_0x5c5024(0x14e))/0x6*(parseInt(_0x5c5024(0x151))/0x7)+-parseInt(_0x5c5024(0x145))/0x8*(-parseInt(_0x5c5024(0x152))/0x9);if(_0x26f96f===_0x1e0175)break;else _0x5deb17['push'](_0x5deb17['shift']());}catch(_0xcaf5d7){_0x5deb17['push'](_0x5deb17['shift']());}}}(_0x461b,0xab3ac));function _0x461b(){const _0x17217a=['1152239HuGlvQ','permission_denied','1309678npKpYB','2600670VGWgPd','get','../../config','err','6wLSXKL','../../utils/axios','no-cache','6509279bqcJRP','81WeOriU','1274512sQWSBe','error_msg','data','4179612arTDOw','5040264VfxgOo','error_code'];_0x461b=function(){return _0x17217a;};return _0x461b();}const {axiosClient:r}=require(_0x35290a(0x14f)),e=require(_0x35290a(0x14c)),i=async(_0x1f43ae,_0x35d192,_0x1cfb51,_0x215274)=>{const _0x33dc1e=_0x35290a;let {appName:_0x6b7b83,appDesc:_0x5c4de0,appConfig:_0x301d02,frameworkVersions:_0x418cc0}=_0x35d192,_0x2daffe={'Authorization':'Bearer\x20'+_0x215274,'cache-control':_0x33dc1e(0x150)},_0x4ce129=(await r[_0x33dc1e(0x14b)](_0x1f43ae,{'params':{'name':_0x6b7b83,'desc':_0x5c4de0,'config':_0x301d02,'versionStatus':_0x1cfb51,'frameworkVersions':_0x418cc0},'headers':_0x2daffe,'withCredentials':!0x0}))[_0x33dc1e(0x143)];if(!_0x4ce129||_0x4ce129[_0x33dc1e(0x14d)]<0x0){if(_0x4ce129&&_0x4ce129[_0x33dc1e(0x14d)]===e[_0x33dc1e(0x146)][_0x33dc1e(0x148)])throw Error(e[_0x33dc1e(0x142)]['permission_denied']);throw Error(JSON['stringify'](_0x4ce129));}return _0x4ce129[_0x33dc1e(0x143)];};module['exports']=i;
@@ -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 _0x45ee85=_0x7e67;function _0x7e67(_0x5c610f,_0x3f10dc){const _0x32cf06=_0x32cf();return _0x7e67=function(_0x7e673d,_0x4bcd11){_0x7e673d=_0x7e673d-0x1e0;let _0x41821c=_0x32cf06[_0x7e673d];return _0x41821c;},_0x7e67(_0x5c610f,_0x3f10dc);}(function(_0x364d83,_0x36905f){const _0x5e1265=_0x7e67,_0x472325=_0x364d83();while(!![]){try{const _0x3bea06=-parseInt(_0x5e1265(0x1fa))/0x1+-parseInt(_0x5e1265(0x205))/0x2+parseInt(_0x5e1265(0x200))/0x3+parseInt(_0x5e1265(0x1ff))/0x4*(parseInt(_0x5e1265(0x1e5))/0x5)+-parseInt(_0x5e1265(0x1e3))/0x6+parseInt(_0x5e1265(0x1ea))/0x7*(-parseInt(_0x5e1265(0x1f7))/0x8)+-parseInt(_0x5e1265(0x202))/0x9*(-parseInt(_0x5e1265(0x1e0))/0xa);if(_0x3bea06===_0x36905f)break;else _0x472325['push'](_0x472325['shift']());}catch(_0x40e271){_0x472325['push'](_0x472325['shift']());}}}(_0x32cf,0x522a0));const r=require('../../utils/resumable'),e=require(_0x45ee85(0x1e8)),n=require('../../config'),o=require('../../utils/env'),t=require(_0x45ee85(0x1eb))[_0x45ee85(0x1e7)],a=require('form-data'),u=require(_0x45ee85(0x1e2));function _0x32cf(){const _0x3fcf59=['1303728kQLhvp','desc','9MHeHFM','getEnv','join','335534VvUQMW','Bearer\x20','Does\x20not\x20support\x20upload\x20app','7142930QbVjle','gray','lodash','2407146zjIuzs','token','85DKdcpN','addFile','File','chalk','zipFile','14QvkwsW','file-api','config','env','parse','err','statusError','append','statusText','progress','Error\x20upload\x20app:\x20','name','fileSuccess','1736320JjoSVM','cancel','round','365306LhYAvy','api_domain','fileError','support','fileAdded','130828XcQsPq'];_0x32cf=function(){return _0x3fcf59;};return _0x32cf();}module['exports']=async function(_0x1ccc79,_0xda36b,_0x590915){const _0x585fc6=_0x45ee85;let _0x5132ff=n[_0x585fc6(0x1fb)],_0x189916=''+_0x5132ff+n['path']['uploadAppByChunk'],{appName:_0x4135b9,appDesc:_0xcda67c,appBuffer:_0x38bd19,appConfig:_0xbf53ca,identifier:_0x440b2e}=_0x1ccc79,_0x1f5da9=o[_0x585fc6(0x203)](n[_0x585fc6(0x1ed)][_0x585fc6(0x1e4)]),_0x46d134=new r({...n['resumable_option'],'target':_0x189916,'headers':{'Authorization':_0x585fc6(0x206)+_0x1f5da9},'generateUniqueIdentifier':()=>_0x440b2e}),_0x263e77=new a();if(_0x263e77[_0x585fc6(0x1f1)](_0x585fc6(0x1e9),_0x38bd19),_0x263e77['append'](_0x585fc6(0x1f5),_0x4135b9),_0x263e77[_0x585fc6(0x1f1)](_0x585fc6(0x201),_0xcda67c),_0x263e77[_0x585fc6(0x1f1)](_0x585fc6(0x1ec),_0xbf53ca),_0x46d134[_0x585fc6(0x1fd)])return _0x46d134['on']('fileProgress',function(_0x2ca552){const _0x1a7756=_0x585fc6;let _0x22e18f=Array(Math[_0x1a7756(0x1f9)](0x64*_0x2ca552[_0x1a7756(0x1f3)]())%0x65+0x1)[_0x1a7756(0x204)]('|');_0x590915[_0x1a7756(0x1f2)]('Deploying\x20Your\x20App\x20'+e[_0x1a7756(0x1e1)]('\x0a'+_0x22e18f+'\x20'+Math[_0x1a7756(0x1f9)](0x64*_0x2ca552[_0x1a7756(0x1f3)]())+'%'));}),await new Promise((_0x45a297,_0x41f567)=>{const _0x3772f3=_0x585fc6;try{var _0x1ea939=new t({'name':'www.zip','buffer':_0x38bd19});_0x46d134['on'](_0x3772f3(0x1fe),function(){_0x46d134['upload']();}),_0x46d134['on']('complete',function(){return _0x45a297();}),_0x46d134['on'](_0x3772f3(0x1fc),function(_0x910515,_0x3d06c8){return _0x41f567(Error('Error\x20upload\x20app:\x20'+_0x3d06c8));}),_0x46d134['on'](_0x3772f3(0x1f8),function(){return _0x41f567(Error('Error\x20upload\x20app:\x20cancel'));}),_0x46d134['on'](_0x3772f3(0x1f6),function(_0x14ade8,_0x434eb6){const _0x273793=_0x3772f3;let _0x3fa76f=JSON[_0x273793(0x1ee)](_0x434eb6);return u['isNumber'](_0x3fa76f[_0x273793(0x1ef)])&&_0x3fa76f[_0x273793(0x1ef)]<0x0?_0x41f567(Error(_0x273793(0x1f4)+_0x434eb6)):_0x45a297(_0x3fa76f);}),_0x46d134[_0x3772f3(0x1e6)](_0x1ea939);}catch(_0x4f838a){return _0x41f567(_0x4f838a);}});_0x590915[_0x585fc6(0x1f0)](_0x585fc6(0x207));};
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';function _0x2728(){const _0x13e431=['./build/index','includes','chalk','-M,\x20--mode\x20<m>','testing','.local','version','6565603qPZGHy','full','exit','resolve','2ZXYDkT','text','log-symbols','Version:\x20','4933608bTdSbI','command:*','7610dpyZpm','passive','Version\x20description','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','./config','2259chhZxc','action','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','ZMP\x20CLI','command','port','iosHostName','-r,\x20--root-element\x20<selector>','mode','TESTING','-t,\x20--testing','./utils/fs-extra','3zwlQUp','Run\x20on\x20ios','--skipUpdate','-e,\x20--existing','Device\x20mode','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','description','writeFileSync','./migrate/index','\x0a\x20Unknown\x20command\x20','existing','Login\x20ZMP','Build\x20a\x20ZMP\x20project','-o,\x20--outputDir\x20<output>','./utils/constants','./deploy/index','usage','ios','log','Deploy\x20testing\x20version','Passive\x20mode\x20(non-interactive)','-Z,\x20--zalo-app','parse','code','./utils/log','<command>\x20[options]','-iosH,\x20--ios-host-name\x20<n>','467846gPagIy','./utils/check-update','956435BQPuer','-nF,\x20--no-frame','cwd','-D,\x20--device','490476rkuvPD','quit','versionStatus','./utils/get-current-project','cyan','./utils/spinner','./login/index','./login/utils/get-options','customProject','Env\x20mode','Deploy\x20a\x20ZMP\x20project','Preview\x20on\x20Zalo','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','error','args','option','clear','hostname','login','existsSync','sync-config\x20<source>','textSync','1742612dJArLu','14LLkUoO','-ios,\x20--ios','frame','done','init','build','migrate','\x20This\x20is\x20not\x20ZMP\x20project'];_0x2728=function(){return _0x13e431;};return _0x2728();}const _0x40da9d=_0x507f;function _0x507f(_0x1f09dd,_0x534d0c){const _0x2728be=_0x2728();return _0x507f=function(_0x507f87,_0x52e313){_0x507f87=_0x507f87-0x1f2;let _0x4dcefa=_0x2728be[_0x507f87];return _0x4dcefa;},_0x507f(_0x1f09dd,_0x534d0c);}(function(_0x3ad21d,_0x5e24b4){const _0x420520=_0x507f,_0x48d2cd=_0x3ad21d();while(!![]){try{const _0x6596aa=-parseInt(_0x420520(0x237))/0x1*(parseInt(_0x420520(0x205))/0x2)+-parseInt(_0x420520(0x21c))/0x3*(-parseInt(_0x420520(0x253))/0x4)+parseInt(_0x420520(0x239))/0x5+parseInt(_0x420520(0x23d))/0x6*(parseInt(_0x420520(0x1f2))/0x7)+-parseInt(_0x420520(0x209))/0x8+-parseInt(_0x420520(0x210))/0x9*(-parseInt(_0x420520(0x20b))/0xa)+parseInt(_0x420520(0x201))/0xb;if(_0x6596aa===_0x5e24b4)break;else _0x48d2cd['push'](_0x48d2cd['shift']());}catch(_0xfe04de){_0x48d2cd['push'](_0x48d2cd['shift']());}}}(_0x2728,0x788c9));const e=require(_0x40da9d(0x1fc)),o=require(_0x40da9d(0x24d)),t=require('figlet'),i=require('commander'),s=require(_0x40da9d(0x207)),r=require(_0x40da9d(0x21b)),n=require(_0x40da9d(0x238)),a=require(_0x40da9d(0x242)),c=require(_0x40da9d(0x234)),p=require(_0x40da9d(0x240)),u=require('./create/utils/get-options'),l=require(_0x40da9d(0x244)),d=require('./deploy/utils/get-options'),m=require('./migrate/utils/get-options'),g=require(_0x40da9d(0x243)),x=require('./create/index'),y=require('./start/index'),w=require(_0x40da9d(0x1fa)),v=require(_0x40da9d(0x22b)),f=require('./sync/index'),q=require(_0x40da9d(0x224)),h=require('os'),M=require('./package.json'),P=require(_0x40da9d(0x20f)),{versionStatus:j}=require(_0x40da9d(0x22a)),Z=process[_0x40da9d(0x23b)](),S={'statusStart':_0x207142=>a['start'](_0x207142),'statusDone':_0x1a4719=>a[_0x40da9d(0x1f5)](_0x1a4719),'statusText':_0x332146=>a['text'](_0x332146),'statusError':_0x4a8bcb=>a[_0x40da9d(0x24a)](_0x4a8bcb),'text':_0x2490d1=>c[_0x40da9d(0x206)](_0x2490d1),'error':_0x2fd6c9=>c[_0x40da9d(0x24a)](_0x2fd6c9),'showOnUI':()=>{}};o(),r[_0x40da9d(0x250)](P['root_env']())||r[_0x40da9d(0x223)](P['root_env']()),console[_0x40da9d(0x22e)](e['cyan'](t[_0x40da9d(0x252)](_0x40da9d(0x213),{'horizontalLayout':'full','verticalLayout':_0x40da9d(0x202)})),e[_0x40da9d(0x241)](_0x40da9d(0x208)+M[_0x40da9d(0x200)]+'\x0a')),i[_0x40da9d(0x200)](M[_0x40da9d(0x200)])[_0x40da9d(0x22c)]('<command>\x20[options]')[_0x40da9d(0x214)](_0x40da9d(0x1f6))[_0x40da9d(0x24c)](_0x40da9d(0x21e),_0x40da9d(0x221))[_0x40da9d(0x222)]('Init\x20ZMP\x20project')[_0x40da9d(0x211)](async _0xdbd13c=>{const _0x4db694=_0x40da9d;_0xdbd13c['skipUpdate']||await n();let _0x327750=await l();await g({'cwd':Z,..._0x327750},S);let _0x568435=await u();await x({'cwd':Z,..._0x568435},S),process[_0x4db694(0x203)](0x0);}),i[_0x40da9d(0x22c)](_0x40da9d(0x235))[_0x40da9d(0x214)](_0x40da9d(0x24f))['description'](_0x40da9d(0x227))['action'](async()=>{let _0x302241=await l();await g({'cwd':Z,..._0x302241},S),process['exit'](0x0);}),i[_0x40da9d(0x22c)]('<command>\x20[options]')[_0x40da9d(0x214)]('start')[_0x40da9d(0x24c)](_0x40da9d(0x236),_0x40da9d(0x212))['option']('-P,\x20--port\x20<n>',_0x40da9d(0x20e),parseInt)[_0x40da9d(0x24c)](_0x40da9d(0x231),_0x40da9d(0x248))[_0x40da9d(0x24c)](_0x40da9d(0x1f3),_0x40da9d(0x21d))[_0x40da9d(0x24c)](_0x40da9d(0x23a),'Run\x20without\x20Zalo\x20frame')[_0x40da9d(0x24c)](_0x40da9d(0x23c),_0x40da9d(0x220))[_0x40da9d(0x24c)](_0x40da9d(0x1fd),_0x40da9d(0x246))['description']('Start\x20a\x20ZMP\x20project')[_0x40da9d(0x211)](async _0x5e6e9c=>{const _0x181880=_0x40da9d;if(p(Z)||(c[_0x181880(0x206)](s[_0x181880(0x24a)]+_0x181880(0x1f9)),process[_0x181880(0x203)](0x1)),_0x5e6e9c&&_0x5e6e9c['showMobileUi'])try{console[_0x181880(0x22e)](require[_0x181880(0x204)]('nw'));}catch(_0x3d5f3f){console[_0x181880(0x24a)](_0x181880(0x249)),process['exit'](_0x3d5f3f[_0x181880(0x233)]);}let _0x3a5434=h[_0x181880(0x24e)]();_0x3a5434[_0x181880(0x1fb)](_0x181880(0x1ff))||(_0x3a5434=_0x3a5434+_0x181880(0x1ff)),await y({'cwd':Z,'port':_0x5e6e9c&&_0x5e6e9c[_0x181880(0x215)]||0xbb8,'iosHostName':_0x5e6e9c&&_0x5e6e9c[_0x181880(0x216)]||_0x3a5434,'showMobileUI':_0x5e6e9c&&_0x5e6e9c['showMobileUi']||!0x1,'previewOnZalo':_0x5e6e9c&&_0x5e6e9c['zaloApp']||!0x1,'ios':_0x5e6e9c&&_0x5e6e9c[_0x181880(0x22d)]||!0x1,'mode':_0x5e6e9c&&_0x5e6e9c[_0x181880(0x218)],'frame':!!_0x5e6e9c&&(void 0x0===_0x5e6e9c[_0x181880(0x1f4)]||null===_0x5e6e9c['frame'])||_0x5e6e9c[_0x181880(0x1f4)],'deviceMode':_0x5e6e9c&&_0x5e6e9c['device']||!0x1},S),process[_0x181880(0x203)](0x0);}),i[_0x40da9d(0x22c)]('<command>\x20[options]')[_0x40da9d(0x214)](_0x40da9d(0x1f7))[_0x40da9d(0x24c)](_0x40da9d(0x1fd),_0x40da9d(0x246))[_0x40da9d(0x222)](_0x40da9d(0x228))[_0x40da9d(0x211)](async _0x1380f5=>{const _0x25e2b5=_0x40da9d;p(Z)||(c[_0x25e2b5(0x206)](s['error']+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x25e2b5(0x203)](0x1)),await w({'cwd':Z,'mode':_0x1380f5&&_0x1380f5[_0x25e2b5(0x218)]},S),process[_0x25e2b5(0x203)](0x0);}),i[_0x40da9d(0x22c)](_0x40da9d(0x235))[_0x40da9d(0x214)]('deploy')[_0x40da9d(0x24c)](_0x40da9d(0x1fd),'Env\x20mode')[_0x40da9d(0x24c)]('-p,\x20--passive',_0x40da9d(0x230))[_0x40da9d(0x24c)](_0x40da9d(0x21f),'Deploy\x20existing\x20project')[_0x40da9d(0x24c)](_0x40da9d(0x21a),_0x40da9d(0x22f))[_0x40da9d(0x24c)]('-m,\x20--desc\x20<message>',_0x40da9d(0x20d))['option'](_0x40da9d(0x229),'Output\x20folder.\x20Default\x20www')[_0x40da9d(0x24c)]('-P,\x20--port\x20<n>','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001',parseInt)[_0x40da9d(0x222)](_0x40da9d(0x247))[_0x40da9d(0x211)](async _0x12edb4=>{const _0x1673fb=_0x40da9d;let _0x1ac358=p(Z),_0x365931=_0x12edb4;_0x12edb4[_0x1673fb(0x226)]?_0x365931[_0x1673fb(0x245)]=!0x0:_0x12edb4[_0x1673fb(0x20c)]||(_0x365931=await d(_0x1ac358)),_0x12edb4[_0x1673fb(0x1fe)]&&(_0x365931[_0x1673fb(0x23f)]=j[_0x1673fb(0x219)]),_0x365931[_0x1673fb(0x23e)]&&process[_0x1673fb(0x203)](0x1),await v({'cwd':Z,'mode':_0x12edb4&&_0x12edb4['mode'],..._0x365931},S),process[_0x1673fb(0x203)](0x0);}),i[_0x40da9d(0x22c)](_0x40da9d(0x235))[_0x40da9d(0x214)](_0x40da9d(0x251))[_0x40da9d(0x24c)](_0x40da9d(0x217),'Custom\x20entry\x20point,\x20default\x20is\x20#app')[_0x40da9d(0x222)]('Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html')[_0x40da9d(0x211)](async(_0x56a172,_0xcb9c6f)=>{const _0x577b98=_0x40da9d;await f({'source':_0x56a172,..._0xcb9c6f},S),process[_0x577b98(0x203)](0x0);}),i['usage']('<command>\x20[options]')[_0x40da9d(0x214)](_0x40da9d(0x1f8))['action'](async function(){const _0x4f4159=_0x40da9d;let _0x5a66d=p(Z);_0x5a66d||(S[_0x4f4159(0x206)](s[_0x4f4159(0x24a)]+_0x4f4159(0x1f9)),process['exit'](0x1));let _0x456a0f=await m();await q({'cwd':Z,..._0x456a0f,..._0x5a66d},S),process[_0x4f4159(0x203)](0x0);}),i['on'](_0x40da9d(0x20a),_0x495dc6=>{const _0x245973=_0x40da9d;i['outputHelp'](),c[_0x245973(0x206)](_0x245973(0x225)+_0x495dc6);}),i[_0x40da9d(0x232)](process['argv']),i[_0x40da9d(0x24b)]['length']||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 _0x2a4150=_0x4c68;function _0x5735(){const _0x1c81d7=['12BuInct','text','bold','err','info','Login\x20failed!','Login...','../config','17783pExjvN','7pVICCn','request_timeout','jwt','statusDone','6SofLld','catch','767300gKHSuO','jsonwebtoken','statusError','Token\x20Invalid!','stringify','setEnv','error_msg','env','statusStart','1143CDCUUF','data','token','appId','./utils/zalo-login','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','1877768jepWwp','3749328JYZVUJ','stop','checkStatus','then','../utils/env','log-symbols','POST','chalk','qrcode-terminal','../utils/log','loginUrl','zmpsk','ora','permission_denied','687759pdVNvf','2asewnX','1183555ZDzpvB','decode','Login\x20Success!','error_code','getQRCode','loginMethod','msg','20930hvjzAC','getEnv'];_0x5735=function(){return _0x1c81d7;};return _0x5735();}function _0x4c68(_0x1f454b,_0x65751a){const _0x5735ea=_0x5735();return _0x4c68=function(_0x4c6846,_0x5f35aa){_0x4c6846=_0x4c6846-0xad;let _0x396a01=_0x5735ea[_0x4c6846];return _0x396a01;},_0x4c68(_0x1f454b,_0x65751a);}(function(_0x51dbd8,_0x528ad4){const _0x1c1377=_0x4c68,_0x2a54b1=_0x51dbd8();while(!![]){try{const _0x11e6d7=-parseInt(_0x1c1377(0xe1))/0x1*(-parseInt(_0x1c1377(0xcf))/0x2)+-parseInt(_0x1c1377(0xce))/0x3+-parseInt(_0x1c1377(0xb0))/0x4+parseInt(_0x1c1377(0xd0))/0x5*(parseInt(_0x1c1377(0xae))/0x6)+parseInt(_0x1c1377(0xe2))/0x7*(-parseInt(_0x1c1377(0xbf))/0x8)+-parseInt(_0x1c1377(0xb9))/0x9*(-parseInt(_0x1c1377(0xd7))/0xa)+parseInt(_0x1c1377(0xc0))/0xb*(parseInt(_0x1c1377(0xd9))/0xc);if(_0x11e6d7===_0x528ad4)break;else _0x2a54b1['push'](_0x2a54b1['shift']());}catch(_0xb3e004){_0x2a54b1['push'](_0x2a54b1['shift']());}}}(_0x5735,0x3222a));const e=require(_0x2a4150(0xc7)),t=require(_0x2a4150(0xcc)),r=require(_0x2a4150(0xb1)),a=require(_0x2a4150(0xc8)),n=require(_0x2a4150(0xc5)),o=require(_0x2a4150(0xe0)),s=require(_0x2a4150(0xc4)),i=require(_0x2a4150(0xc9)),u=require(_0x2a4150(0xbd)),{axiosClient:l}=require('../utils/axios'),c=require('qs'),d=e['gray'](_0x2a4150(0xdf)),p=t(d);module['exports']=async(_0x291d8f={},_0x2ace73)=>{const _0x5ba493=_0x2a4150;let _0x2e2132;_0x2ace73||(_0x2ace73={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x2ace73[_0x5ba493(0xb8)](d),p['start']();let _0x2e860b=_0x291d8f[_0x5ba493(0xd5)],_0x795acc=_0x291d8f['appId']||s[_0x5ba493(0xd8)](o[_0x5ba493(0xb7)][_0x5ba493(0xbc)]),_0x450889=_0x291d8f[_0x5ba493(0xbb)],_0xf65beb=''+o['api_domain']+o['path']['login'];try{if(p['start'](),'zalo'===_0x2e860b){let _0x56646a;await new Promise((_0x49a402,_0xe40ea0)=>{const _0x408f0a=_0x5ba493;u[_0x408f0a(0xd4)](_0x795acc)['then'](function(_0x381ee9){const _0x426d1d=_0x408f0a;p[_0x426d1d(0xc1)]();let _0x19a683=_0x381ee9[_0x426d1d(0xba)];if(!_0x19a683||_0x19a683[_0x426d1d(0xdc)]<0x0)return _0xe40ea0(Error(_0x19a683[_0x426d1d(0xd6)]));let _0x563f2e=_0x19a683[_0x426d1d(0xba)]&&_0x19a683[_0x426d1d(0xba)][_0x426d1d(0xca)];return _0x56646a=_0x19a683[_0x426d1d(0xba)]&&_0x19a683[_0x426d1d(0xba)][_0x426d1d(0xcb)],a['generate'](_0x563f2e,{'small':!0x0},function(_0x3c8477){const _0x51624f=_0x426d1d;let _0xae500f=n[_0x51624f(0xdd)]+'\x20'+e[_0x51624f(0xdb)](_0x51624f(0xbe)+_0x3c8477);_0x2ace73[_0x51624f(0xda)](_0xae500f);}),s[_0x426d1d(0xb5)](o['env'][_0x426d1d(0xbc)],_0x795acc),_0x49a402();})['catch'](function(_0xeb2463){const _0x505258=_0x408f0a;return p[_0x505258(0xc1)](),_0xe40ea0(_0xeb2463);});}),await new Promise((_0x4163a5,_0x5e247d)=>{const _0x59c879=_0x5ba493;if(!_0x56646a)return _0x5e247d(Error(_0x59c879(0xb3)));let _0x15b127=0x0;_0x2e2132=setInterval(()=>{const _0x2fe907=_0x59c879;if(_0x2ace73['statusText'](d+'\x20(Time\x20out\x20after\x20'+(0x3c-_0x15b127)+'s)'),_0x15b127>0x3c)return clearInterval(_0x2e2132),_0x5e247d(Error(o['error_msg'][_0x2fe907(0xe3)]));_0x15b127++,u[_0x2fe907(0xc2)](_0x56646a)[_0x2fe907(0xc3)](function(_0x13596b){const _0x1e0edf=_0x2fe907;p[_0x1e0edf(0xc1)]();let _0x1e14a2=_0x13596b[_0x1e0edf(0xba)];if(_0x1e14a2&&_0x1e14a2[_0x1e0edf(0xdc)]===o['error_code'][_0x1e0edf(0xcd)])return clearInterval(_0x2e2132),_0x5e247d(Error(o[_0x1e0edf(0xb6)][_0x1e0edf(0xcd)]));if(_0x1e14a2&&_0x1e14a2['err']===o[_0x1e0edf(0xd3)]['request_timeout'])return clearInterval(_0x2e2132),_0x5e247d(Error(o['error_msg'][_0x1e0edf(0xe3)]));if(_0x1e14a2&&_0x1e14a2[_0x1e0edf(0xdc)]>=0x0){clearInterval(_0x2e2132);let _0x7206a=_0x1e14a2['data']&&_0x1e14a2['data'][_0x1e0edf(0xe4)];return s[_0x1e0edf(0xb5)](o[_0x1e0edf(0xb7)][_0x1e0edf(0xbb)],_0x7206a),_0x2ace73[_0x1e0edf(0xad)](_0x1e0edf(0xd2)),_0x4163a5();}})[_0x2fe907(0xaf)](function(_0x2fa341){return clearInterval(_0x2e2132),p['stop'](),_0x5e247d(_0x2fa341);});},0x7d0);});}else await new Promise((_0x4576b4,_0x365331)=>{const _0x4531e8=_0x5ba493;l({'url':_0xf65beb,'method':_0x4531e8(0xc6),'headers':{'cache-control':'no-cache','content-type':'application/x-www-form-urlencoded'},'data':c[_0x4531e8(0xb4)]({'accessToken':_0x450889,'appId':_0x795acc}),'withCredentials':!0x0})[_0x4531e8(0xc3)](function(_0x507e02){const _0x466b49=_0x4531e8;p[_0x466b49(0xc1)]();let _0x5f52ae=_0x507e02['data'];if(!_0x5f52ae||_0x5f52ae[_0x466b49(0xdc)]<0x0)return _0x365331(Error(_0x5f52ae[_0x466b49(0xd6)]));let _0xc9f37d=_0x5f52ae[_0x466b49(0xba)]&&_0x5f52ae[_0x466b49(0xba)][_0x466b49(0xe4)];try{let _0x49bac3=r[_0x466b49(0xd1)](_0xc9f37d);s['setEnv'](o[_0x466b49(0xb7)][_0x466b49(0xbc)],_0x49bac3[_0x466b49(0xbc)]),s['setEnv'](o[_0x466b49(0xb7)][_0x466b49(0xbb)],_0xc9f37d);}catch(_0x384733){return _0x365331(_0x384733);}return _0x2ace73[_0x466b49(0xad)](_0x466b49(0xd2)),_0x4576b4();})[_0x4531e8(0xaf)](function(_0x5d6cb9){const _0x20f42e=_0x4531e8;return p[_0x20f42e(0xc1)](),_0x365331(_0x5d6cb9);});});}catch(_0x4efaef){_0x2ace73[_0x5ba493(0xb2)](_0x5ba493(0xde)),i['error'](_0x4efaef['stderr']||_0x4efaef);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';const _0x54843b=_0x5ce2;function _0x5ce2(_0x444910,_0xc3ba08){const _0x4ab986=_0x4ab9();return _0x5ce2=function(_0x5ce2c4,_0xccedd0){_0x5ce2c4=_0x5ce2c4-0x9d;let _0x141e61=_0x4ab986[_0x5ce2c4];return _0x141e61;},_0x5ce2(_0x444910,_0xc3ba08);}(function(_0x21056f,_0x3b3d46){const _0x212622=_0x5ce2,_0x16e906=_0x21056f();while(!![]){try{const _0x550be8=-parseInt(_0x212622(0xa1))/0x1+parseInt(_0x212622(0xa7))/0x2*(parseInt(_0x212622(0xa4))/0x3)+parseInt(_0x212622(0xb1))/0x4*(parseInt(_0x212622(0xb2))/0x5)+parseInt(_0x212622(0xad))/0x6*(-parseInt(_0x212622(0xba))/0x7)+parseInt(_0x212622(0xa3))/0x8*(-parseInt(_0x212622(0xb3))/0x9)+parseInt(_0x212622(0xbb))/0xa+-parseInt(_0x212622(0xb0))/0xb*(-parseInt(_0x212622(0xb4))/0xc);if(_0x550be8===_0x3b3d46)break;else _0x16e906['push'](_0x16e906['shift']());}catch(_0xb89ba9){_0x16e906['push'](_0x16e906['shift']());}}}(_0x4ab9,0x5c5d9));function _0x4ab9(){const _0x299165=['9DUaFng','12xbNpKt','Zalo\x20Access\x20Token\x20is\x20required','list','Mini\x20App\x20ID:','appId','loginMethod','23905EjjUHI','5727320HQlufU','length','prompt','../../utils/env','resolve','accessToken','2.\x20Login\x20With\x20App\x20Access\x20Token','500704BxZSyg','Mimi\x20App\x20ID\x20is\x20required','2058352MfIQwe','6DLogJT','exports','../../config','41110ImCkEc','env','then','token','Choose\x20a\x20Login\x20Method','inquirer','294cthUhx','input','getEnv','2340096PwHhGX','7664vWPPEd','1245rEwRNb'];_0x4ab9=function(){return _0x299165;};return _0x4ab9();}const e=require(_0x54843b(0xac)),i=require(_0x54843b(0x9d)),o=require(_0x54843b(0xa6));module[_0x54843b(0xa5)]=function(){const _0x101417=_0x54843b;let _0x36cf0f=[{'type':_0x101417(0xae),'name':_0x101417(0xb8),'message':_0x101417(0xb7),'when':()=>!i[_0x101417(0xaf)](o[_0x101417(0xa8)]['appId']),'validate':_0x246197=>new Promise((_0x46b4db,_0x5da1a1)=>{const _0x46d192=_0x101417;_0x246197?_0x46b4db(!0x0):_0x5da1a1(Error(_0x46d192(0xa2)));})},{'type':_0x101417(0xb6),'name':'loginMethod','message':_0x101417(0xab),'choices':[{'name':'1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','value':'zalo'},{'name':_0x101417(0xa0),'value':'accessToken'}],'validate':_0x1fba73=>new Promise((_0x4633fe,_0x202f3c)=>{const _0x2edd87=_0x101417;_0x1fba73&&_0x1fba73[_0x2edd87(0xbc)]?_0x4633fe(!0x0):_0x202f3c(Error('Login\x20method\x20is\x20required!'));})},{'type':_0x101417(0xae),'name':_0x101417(0xaa),'message':'Zalo\x20Access\x20Token:','when':_0x997ff8=>_0x101417(0x9f)===_0x997ff8[_0x101417(0xb9)],'validate':_0x265e69=>new Promise((_0x45413d,_0x216572)=>{const _0x3a4ac9=_0x101417;_0x265e69?_0x45413d(!0x0):_0x216572(Error(_0x3a4ac9(0xb5)));})}];return e[_0x101417(0xbd)](_0x36cf0f)[_0x101417(0xa9)](_0x3151f3=>Promise[_0x101417(0x9e)](_0x3151f3));};
@@ -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 _0x1ca826=_0x3495;(function(_0x1411af,_0x152111){const _0x4a2b05=_0x3495,_0x2d670b=_0x1411af();while(!![]){try{const _0x1262f2=-parseInt(_0x4a2b05(0x1c0))/0x1+-parseInt(_0x4a2b05(0x1ba))/0x2+parseInt(_0x4a2b05(0x1c9))/0x3*(-parseInt(_0x4a2b05(0x1c4))/0x4)+-parseInt(_0x4a2b05(0x1c8))/0x5+parseInt(_0x4a2b05(0x1c6))/0x6*(parseInt(_0x4a2b05(0x1c3))/0x7)+-parseInt(_0x4a2b05(0x1bc))/0x8+parseInt(_0x4a2b05(0x1c7))/0x9;if(_0x1262f2===_0x152111)break;else _0x2d670b['push'](_0x2d670b['shift']());}catch(_0x1adbb2){_0x2d670b['push'](_0x2d670b['shift']());}}}(_0x2409,0x296ed));function _0x3495(_0x5c90c7,_0x43c13f){const _0x240908=_0x2409();return _0x3495=function(_0x3495ab,_0xa16084){_0x3495ab=_0x3495ab-0x1ba;let _0x543caa=_0x240908[_0x3495ab];return _0x543caa;},_0x3495(_0x5c90c7,_0x43c13f);}const e=require('../../config'),{axiosClient:t}=require(_0x1ca826(0x1bf));module[_0x1ca826(0x1c1)]=(function(){const _0x4d53fa=_0x1ca826;let _0x4d5a5f=''+e[_0x4d53fa(0x1bd)]+e[_0x4d53fa(0x1bb)]['requestLogin'],_0x5e3e47=''+e[_0x4d53fa(0x1bd)]+e[_0x4d53fa(0x1bb)][_0x4d53fa(0x1c5)];return{'getQRCode':_0xce0bb7=>t({'method':_0x4d53fa(0x1be),'url':_0x4d5a5f+'?appId='+_0xce0bb7,'headers':{'cache-control':_0x4d53fa(0x1c2)},'withCredentials':!0x0}),'checkStatus':_0x42e5fa=>t({'method':_0x4d53fa(0x1be),'url':_0x5e3e47+'?zmpsk='+_0x42e5fa,'headers':{'cache-control':_0x4d53fa(0x1c2)},'withCredentials':!0x0})};}());function _0x2409(){const _0x139d26=['../../utils/axios','50960WPLaJu','exports','no-cache','264803SjoChq','7700AQBJAl','checkLoginStatus','42pszAON','4392513BiJmzY','820970FZgAcb','111WbGVQw','306536krScNw','path','1148032adQaZy','api_domain','get'];_0x2409=function(){return _0x139d26;};return _0x2409();}
@@ -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 _0x3d425a=_0x56f5;function _0x2b6b(){const _0x37e9a6=['4034632EwsmvW','zmp-ui','./src/css/icons.css','46gcUDyb','485IbQAdX','zmp-framework','811890enKAFE','resolve','promise','1006698ZcoZKd','../../utils/fs-extra','copyFileAsync','7723938zltEbI','npm\x20install\x20zmp-framework@latest','5346208rVDeXZ','uiFramework','34396ekTCmu','exec-sh','./icons.css','path','5199mGbiPC'];_0x2b6b=function(){return _0x37e9a6;};return _0x2b6b();}(function(_0xa8b53c,_0x1a9b42){const _0x44c4d1=_0x56f5,_0x46f0b5=_0xa8b53c();while(!![]){try{const _0x366dec=-parseInt(_0x44c4d1(0x1a3))/0x1*(-parseInt(_0x44c4d1(0x1a7))/0x2)+parseInt(_0x44c4d1(0x198))/0x3+-parseInt(_0x44c4d1(0x19f))/0x4*(parseInt(_0x44c4d1(0x1a8))/0x5)+parseInt(_0x44c4d1(0x19b))/0x6+-parseInt(_0x44c4d1(0x19d))/0x7+parseInt(_0x44c4d1(0x1a4))/0x8+parseInt(_0x44c4d1(0x1aa))/0x9;if(_0x366dec===_0x1a9b42)break;else _0x46f0b5['push'](_0x46f0b5['shift']());}catch(_0x18a127){_0x46f0b5['push'](_0x46f0b5['shift']());}}}(_0x2b6b,0xb4756));const e=require(_0x3d425a(0x199)),s=require(_0x3d425a(0x1a2)),r=require(_0x3d425a(0x1a0));function _0x56f5(_0x56cc6e,_0x5d248d){const _0x2b6b37=_0x2b6b();return _0x56f5=function(_0x56f58f,_0x1f2aff){_0x56f58f=_0x56f58f-0x198;let _0x54ca57=_0x2b6b37[_0x56f58f];return _0x54ca57;},_0x56f5(_0x56cc6e,_0x5d248d);}async function i(_0x47374d){const _0x4735bf=_0x3d425a;if(_0x4735bf(0x1a9)===_0x47374d[_0x4735bf(0x19e)])e[_0x4735bf(0x19a)](s[_0x4735bf(0x1ab)](__dirname,_0x4735bf(0x1a1)),s[_0x4735bf(0x1ab)](_0x47374d['cwd'],_0x4735bf(0x1a6))),await r[_0x4735bf(0x1ac)](_0x4735bf(0x19c),!0x0);else{if(_0x4735bf(0x1a5)!==_0x47374d[_0x4735bf(0x19e)])return;await r[_0x4735bf(0x1ac)]('npm\x20install\x20zmp-ui@latest',!0x0);}}module['exports']=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';const _0x4899f8=_0x4f92;(function(_0x58bbda,_0x255227){const _0x22a44d=_0x4f92,_0x955e88=_0x58bbda();while(!![]){try{const _0x450021=-parseInt(_0x22a44d(0xfd))/0x1*(parseInt(_0x22a44d(0x11b))/0x2)+-parseInt(_0x22a44d(0x107))/0x3*(parseInt(_0x22a44d(0x102))/0x4)+parseInt(_0x22a44d(0x104))/0x5+parseInt(_0x22a44d(0x113))/0x6+-parseInt(_0x22a44d(0x117))/0x7*(-parseInt(_0x22a44d(0x10c))/0x8)+-parseInt(_0x22a44d(0x10d))/0x9+-parseInt(_0x22a44d(0xff))/0xa*(parseInt(_0x22a44d(0x119))/0xb);if(_0x450021===_0x255227)break;else _0x955e88['push'](_0x955e88['shift']());}catch(_0x104fe6){_0x955e88['push'](_0x955e88['shift']());}}}(_0x3c23,0x551d3));const r=require(_0x4899f8(0x10b)),t=require(_0x4899f8(0xfe)),e=require('log-symbols'),s=require('./utils/migrate-react'),{errorExit:a}=require('../utils/error'),o=require(_0x4899f8(0x110)),i=r['gray'](_0x4899f8(0x108));async function u(_0x34a8d0={},_0x24f1b3){const _0x17dd59=_0x4899f8;let _0x2eac10=_0x34a8d0[_0x17dd59(0x109)]||process[_0x17dd59(0x109)]();_0x24f1b3||(_0x24f1b3={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x24f1b3[_0x17dd59(0xfb)](_0x17dd59(0x103)+i);try{let _0x183d6e,_0x522b46=require((_0x183d6e=o['filename'][_0x17dd59(0xfc)],t[_0x17dd59(0x118)](_0x2eac10,_0x183d6e)));_0x17dd59(0x115)===_0x522b46[_0x17dd59(0x114)]?await s(_0x34a8d0):(_0x24f1b3[_0x17dd59(0x100)](e[_0x17dd59(0x11a)]+_0x17dd59(0x106)+_0x522b46['framework']+_0x17dd59(0x10a)),process[_0x17dd59(0x105)](0x1)),_0x24f1b3[_0x17dd59(0x10f)](r[_0x17dd59(0x10e)][_0x17dd59(0x116)](_0x17dd59(0x101))+_0x17dd59(0x111));}catch(_0x54aec8){_0x24f1b3['statusError']('Migration\x20error!'),a(_0x54aec8);}}function _0x4f92(_0x3f96b1,_0x4eb75a){const _0x3c230c=_0x3c23();return _0x4f92=function(_0x4f9287,_0x6353b4){_0x4f9287=_0x4f9287-0xfb;let _0x177d05=_0x3c230c[_0x4f9287];return _0x177d05;},_0x4f92(_0x3f96b1,_0x4eb75a);}module[_0x4899f8(0x112)]=u;function _0x3c23(){const _0x225f03=['react','green','13153kWwTkL','join','275vLHzgM','error','2IVvyNo','statusStart','zmpConfig','178889skecwv','path','135100EDFZfP','text','Migration\x20Done!','4MQUnfE','Migrating\x20Your\x20App\x20','3215710yahREx','exit','\x20Project\x20using\x20ZMP\x20','1621827DssfiY','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','cwd','\x20is\x20not\x20yet\x20supported','chalk','2624ZydYll','3324204VbGokA','bold','statusDone','../config','\x20💪','exports','3094662fGBBDP','framework'];_0x3c23=function(){return _0x225f03;};return _0x3c23();}