zmp-cli 3.15.7 → 3.15.8

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 (184) hide show
  1. package/README.md +37 -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 +3 -2
  22. package/start/frame/index.html +264 -254
  23. package/start/index.js +1 -1
  24. package/sync/index-to-app-config.js +1 -1
  25. package/sync/index.js +1 -1
  26. package/utils/axios.js +1 -1
  27. package/utils/check-update.js +1 -1
  28. package/utils/constants.js +1 -1
  29. package/utils/env.js +1 -1
  30. package/utils/error.js +1 -1
  31. package/utils/find-files-by-ext.js +1 -1
  32. package/utils/find-free-port.js +1 -1
  33. package/utils/fs-extra.js +1 -1
  34. package/utils/generate-pages-map.js +1 -1
  35. package/utils/get-app-info.js +1 -1
  36. package/utils/get-current-project.js +1 -1
  37. package/utils/get-ip.js +1 -1
  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
  44. package/create/init-zmp-ui.js +0 -1
  45. package/create/templates/app-parameters.js +0 -17
  46. package/create/templates/common/css/icons.css +0 -60
  47. package/create/templates/common/icons/512x512.png +0 -0
  48. package/create/templates/common/icons/apple-touch-icon.png +0 -0
  49. package/create/templates/common/icons/favicon.png +0 -0
  50. package/create/templates/common/postcss.config.js +0 -5
  51. package/create/templates/common/splash-2732x2732.png +0 -0
  52. package/create/templates/common/tailwind/postcss.config.js +0 -5
  53. package/create/templates/common/tailwind/tailwind.config.js +0 -9
  54. package/create/templates/common/tailwind/tailwind.css +0 -3
  55. package/create/templates/common/webpack/build.js +0 -3
  56. package/create/templates/copy-assets.js +0 -1
  57. package/create/templates/core/babel.config.js +0 -11
  58. package/create/templates/core/copy-assets.js +0 -15
  59. package/create/templates/core/generate-home-page.js +0 -121
  60. package/create/templates/core/generate-root.js +0 -248
  61. package/create/templates/core/generate-routes.js +0 -129
  62. package/create/templates/core/generate-scripts.js +0 -45
  63. package/create/templates/core/pages/404.html +0 -20
  64. package/create/templates/core/pages/about.html +0 -26
  65. package/create/templates/core/pages/catalog.html +0 -40
  66. package/create/templates/core/pages/dynamic-route.html +0 -115
  67. package/create/templates/core/pages/form.html +0 -258
  68. package/create/templates/core/pages/left-page-1.html +0 -24
  69. package/create/templates/core/pages/left-page-2.html +0 -23
  70. package/create/templates/core/pages/product.html +0 -36
  71. package/create/templates/core/pages/request-and-load.html +0 -35
  72. package/create/templates/core/pages/settings.html +0 -252
  73. package/create/templates/create-folders.js +0 -1
  74. package/create/templates/generate-config-xml.js +0 -11
  75. package/create/templates/generate-index.js +0 -24
  76. package/create/templates/generate-manifest.js +0 -1
  77. package/create/templates/generate-recoil.js +0 -44
  78. package/create/templates/generate-routes.js +0 -1
  79. package/create/templates/generate-scripts.js +0 -1
  80. package/create/templates/generate-service-worker.js +0 -120
  81. package/create/templates/generate-store.js +0 -77
  82. package/create/templates/generate-styles.js +0 -56
  83. package/create/templates/generate-webpack-config.js +0 -253
  84. package/create/templates/generate-zmp-custom.js +0 -23
  85. package/create/templates/react/babel.config.js +0 -12
  86. package/create/templates/react/components/app-items.jsx +0 -44
  87. package/create/templates/react/components/navbar-back.jsx +0 -25
  88. package/create/templates/react/components/user-card.jsx +0 -18
  89. package/create/templates/react/copy-assets.js +0 -1
  90. package/create/templates/react/generate-home-page.js +0 -81
  91. package/create/templates/react/generate-root.js +0 -55
  92. package/create/templates/react/generate-routes.js +0 -1
  93. package/create/templates/react/generate-scripts.js +0 -42
  94. package/create/templates/react/pages/404.js +0 -19
  95. package/create/templates/react/pages/about.js +0 -44
  96. package/create/templates/react/pages/catalog.js +0 -98
  97. package/create/templates/react/pages/dynamic-route.js +0 -72
  98. package/create/templates/react/pages/form.js +0 -132
  99. package/create/templates/react/pages/index copy.js +0 -1
  100. package/create/templates/react/pages/index.js +0 -1
  101. package/create/templates/react/pages/settings.js +0 -62
  102. package/create/templates/react/pages/user.js +0 -37
  103. package/create/templates/react/vite.config.js +0 -11
  104. package/create/templates/react-typescript/_tsconfig.json +0 -33
  105. package/create/templates/react-typescript/components/app-items.js +0 -46
  106. package/create/templates/react-typescript/components/index.js +0 -1
  107. package/create/templates/react-typescript/components/navbar-back.js +0 -33
  108. package/create/templates/react-typescript/components/user-card.js +0 -25
  109. package/create/templates/react-typescript/copy-assets.js +0 -1
  110. package/create/templates/react-typescript/generate-home-page.js +0 -81
  111. package/create/templates/react-typescript/generate-root.js +0 -50
  112. package/create/templates/react-typescript/generate-routes.js +0 -1
  113. package/create/templates/react-typescript/generate-scripts.js +0 -42
  114. package/create/templates/react-typescript/pages/404.js +0 -19
  115. package/create/templates/react-typescript/pages/about.js +0 -44
  116. package/create/templates/react-typescript/pages/catalog.js +0 -98
  117. package/create/templates/react-typescript/pages/dynamic-route.js +0 -72
  118. package/create/templates/react-typescript/pages/form.js +0 -132
  119. package/create/templates/react-typescript/pages/index.js +0 -1
  120. package/create/templates/react-typescript/pages/settings.js +0 -62
  121. package/create/templates/react-typescript/pages/user.js +0 -37
  122. package/create/templates/react-typescript/vite.config.js +0 -21
  123. package/create/templates/svelte/babel.config.js +0 -10
  124. package/create/templates/svelte/copy-assets.js +0 -1
  125. package/create/templates/svelte/generate-home-page.js +0 -122
  126. package/create/templates/svelte/generate-root.js +0 -177
  127. package/create/templates/svelte/generate-routes.js +0 -76
  128. package/create/templates/svelte/generate-scripts.js +0 -31
  129. package/create/templates/svelte/pages/404.svelte +0 -10
  130. package/create/templates/svelte/pages/about.svelte +0 -16
  131. package/create/templates/svelte/pages/catalog.svelte +0 -31
  132. package/create/templates/svelte/pages/dynamic-route.svelte +0 -34
  133. package/create/templates/svelte/pages/form.svelte +0 -175
  134. package/create/templates/svelte/pages/left-page-1.svelte +0 -13
  135. package/create/templates/svelte/pages/left-page-2.svelte +0 -12
  136. package/create/templates/svelte/pages/product.svelte +0 -21
  137. package/create/templates/svelte/pages/request-and-load.svelte +0 -21
  138. package/create/templates/svelte/pages/settings.svelte +0 -175
  139. package/create/templates/vue/babel.config.js +0 -10
  140. package/create/templates/vue/components/header.vue +0 -28
  141. package/create/templates/vue/components/sun-and-moon.vue +0 -34
  142. package/create/templates/vue/copy-assets.js +0 -1
  143. package/create/templates/vue/generate-home-page.js +0 -50
  144. package/create/templates/vue/generate-root.js +0 -40
  145. package/create/templates/vue/generate-routes.js +0 -1
  146. package/create/templates/vue/generate-scripts.js +0 -46
  147. package/create/templates/vue/global-components.d.js +0 -1
  148. package/create/templates/vue/global-components.d.ts +0 -121
  149. package/create/templates/vue/icons/moon.svg +0 -3
  150. package/create/templates/vue/icons/sun.svg +0 -3
  151. package/create/templates/vue/pages/404.vue +0 -12
  152. package/create/templates/vue/pages/about.vue +0 -15
  153. package/create/templates/vue/pages/catalog.vue +0 -39
  154. package/create/templates/vue/pages/dynamic-route.vue +0 -34
  155. package/create/templates/vue/pages/form.vue +0 -162
  156. package/create/templates/vue/pages/left-page-1.vue +0 -14
  157. package/create/templates/vue/pages/left-page-2.vue +0 -11
  158. package/create/templates/vue/pages/product.vue +0 -31
  159. package/create/templates/vue/pages/request-and-load.vue +0 -25
  160. package/create/templates/vue/pages/settings.vue +0 -18
  161. package/create/templates/vue/vite.config.js +0 -11
  162. package/create/templates/zaui/_tsconfig.json +0 -33
  163. package/create/templates/zaui/babel.config.js +0 -12
  164. package/create/templates/zaui/components/user-card.jsx +0 -16
  165. package/create/templates/zaui/copy-assets.js +0 -1
  166. package/create/templates/zaui/generate-home-page.js +0 -91
  167. package/create/templates/zaui/generate-root.js +0 -33
  168. package/create/templates/zaui/generate-routes.js +0 -1
  169. package/create/templates/zaui/generate-scripts.js +0 -25
  170. package/create/templates/zaui/generate-user-card.js +0 -40
  171. package/create/templates/zaui/pages/about.js +0 -112
  172. package/create/templates/zaui/pages/form.js +0 -106
  173. package/create/templates/zaui/pages/index.js +0 -1
  174. package/create/templates/zaui/pages/user.js +0 -92
  175. package/create/templates/zaui/vite.config.js +0 -11
  176. package/create/utils/colors.js +0 -1
  177. package/create/utils/generate-gitignore.js +0 -1
  178. package/create/utils/generate-package-json.js +0 -1
  179. package/create/utils/generate-readme.js +0 -1
  180. package/create/utils/indent.js +0 -1
  181. package/create/utils/string.js +0 -1
  182. package/create/utils/styles-extension.js +0 -1
  183. package/create/utils/template-if.js +0 -1
  184. package/start/generate-hr-config.js +0 -1
package/README.md CHANGED
@@ -1 +1,37 @@
1
- ""
1
+ # ZMP-CLI
2
+ CLI dùng để start, build, deploy Zalo Mini App
3
+
4
+ ## Contribute
5
+ Project bao gồm các nhánh:
6
+ - master: nhánh chính tương ứng với version đang release
7
+ - develop: nhánh chính, source code mới nhất bao gồm các tính năng chuẩn bị cho lần release tiếp theo
8
+ - feature/*: nhánh tương ứng với chức năng đang phát triển (xoá sau khi hoàn thành)
9
+ - release/*-rc: nhánh tương ứng với các release candidate (xoá sau khi hoàn thành)
10
+ - hotfix/*: nhánh tương ứng với bug cần fix cho version đang release (xoá sau khi hoàn thành)
11
+
12
+ Suggest sử dụng git flow để quản lí các nhánh:
13
+ 1. Cài đặt và tìm hiểu git flow theo [hướng dẫn](https://danielkummer.github.io/git-flow-cheatsheet/index.vi_VN.html)
14
+ 2. Init git flow tương ứng với các branch trên: ```git flow init```
15
+
16
+ Phát triển một tính năng mới:
17
+ 1. Để bắt đầu code tính năng mới: ```git flow feature start feature_1```
18
+ 2. Sau khi code và test xong: ```git flow feature finish feature_1```, tính năng sẽ được merge vào nhánh develop
19
+
20
+ Tạo một release candidate (suffix "-rc"):
21
+ 1. ```git flow release start <major>.<minor>.<patch>-rc```
22
+ 2. Sau khi test xong: ```git flow release finish <major>.<minor>.<patch>-rc```, tính năng sẽ được merge vào nhánh master để chờ release và nhánh develop
23
+
24
+ Để fix bug trên bản release:
25
+ 1. ```git flow hotfix start bug-a```
26
+ 2. Sau khi fix xong: ```git flow hotfix finish bug-a```, tính năng sẽ được merge vào nhánh master để chờ release và nhánh develop
27
+
28
+ Để fix bug trên bản release-candidate:
29
+ 1. Tạo nhánh mới từ nhánh rc muốn fix với refix: ```git branch ```
30
+ 2. Sau khi fix xong: ```git flow hotfix finish bug-a```, tính năng sẽ được merge vào nhánh master để chờ release và nhánh develop
31
+
32
+ Để release nhánh master:
33
+ 1. ```npm run release```
34
+ 2. Nhập version:
35
+ - patch: fix bug
36
+ - minor: thêm tính năng
37
+ - major: thay đổi lớn có ảnh hưởng tới version cũ
package/build/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x50ffc2=_0x4ef1;(function(_0x16aacd,_0x3acc14){const _0x4df43b=_0x4ef1,_0x5518e3=_0x16aacd();while(!![]){try{const _0x45e8cc=parseInt(_0x4df43b(0x1fb))/0x1*(parseInt(_0x4df43b(0x1d3))/0x2)+parseInt(_0x4df43b(0x1e2))/0x3*(parseInt(_0x4df43b(0x1ef))/0x4)+-parseInt(_0x4df43b(0x1d8))/0x5*(parseInt(_0x4df43b(0x1cb))/0x6)+-parseInt(_0x4df43b(0x200))/0x7+-parseInt(_0x4df43b(0x1f7))/0x8+parseInt(_0x4df43b(0x1c7))/0x9+parseInt(_0x4df43b(0x1ce))/0xa;if(_0x45e8cc===_0x3acc14)break;else _0x5518e3['push'](_0x5518e3['shift']());}catch(_0x4443a9){_0x5518e3['push'](_0x5518e3['shift']());}}}(_0xbd49,0xcfd36));function _0x4ef1(_0x2b03a3,_0x39ca5f){const _0xbd491e=_0xbd49();return _0x4ef1=function(_0x4ef15e,_0x2ec769){_0x4ef15e=_0x4ef15e-0x1c1;let _0x5966c5=_0xbd491e[_0x4ef15e];return _0x5966c5;},_0x4ef1(_0x2b03a3,_0x39ca5f);}const e=require(_0x50ffc2(0x1fc)),r=require(_0x50ffc2(0x1c5)),t=require('path'),{build:i}=require(_0x50ffc2(0x1e6)),s=require(_0x50ffc2(0x202))[_0x50ffc2(0x1e0)],a=require(_0x50ffc2(0x1e4)),l=require('@rollup/plugin-replace'),n=require(_0x50ffc2(0x1cc)),o=require(_0x50ffc2(0x1dd)),u=require('../utils/get-app-info'),p=require('../utils/env'),c=require('../config'),m=require(_0x50ffc2(0x1c9)),g=p[_0x50ffc2(0x1ff)](_0x50ffc2(0x205))||_0x50ffc2(0x1ea),y=e['gray'](_0x50ffc2(0x1f1)),d=e[_0x50ffc2(0x208)]('Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher'),f=r(_0x50ffc2(0x1ea)===g?'Building\x20for\x20production...':_0x50ffc2(0x1c2));function _0xbd49(){const _0x47f768=['30392840NJfDbb','statusStart','zdn_url','Build\x20Done!\x0a','appConfig','43220ZlAgUz','appId','latestVersion','vite.config.ts','es2015','5zSyQgp','forEach','mode','imports','listCSS','../utils/fs-extra','exit','stderr','default','error','3IUoEJr','writeFileSync','lodash','statusDone','vite','set','stringify','fileName','production','exports','appConfigJson','has','get','947740MwFYEL','local','Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','asset','isArray','bold','filename','filter','13065976UHeZEU','isImplicitEntry','statusError','nextVersion','20vhsCOH','chalk','isDynamicEntry','chunk','getEnv','9992766aOAtPF','type','@rollup/plugin-dynamic-import-vars','join','assets/[name].[hash].module.js','NODE_ENV','pick','map','yellow','listSyncJS','push','Building\x20development\x20version...','cwd','www/','ora','www','14191083hkyApS','.css','../utils/generate-pages-map','vite.config.js','8239002chnzRi','../utils/log','env'];_0xbd49=function(){return _0x47f768;};return _0xbd49();}module[_0x50ffc2(0x1eb)]=async(_0x26d613={},_0x589c30,{exitOnError:_0x1dae75=!0x0}={})=>{const _0x108297=_0x50ffc2;let _0x1fb8b7=_0x26d613[_0x108297(0x1c3)]||process[_0x108297(0x1c3)](),_0xd0dbec=_0x53cab6=>t[_0x108297(0x203)](_0x1fb8b7,_0x53cab6),_0x2c6223=_0x26d613[_0x108297(0x1ec)]||require(_0xd0dbec(c[_0x108297(0x1f5)][_0x108297(0x1d2)]));_0x589c30||(_0x589c30={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x589c30['text'](d),f['start'](),_0x589c30[_0x108297(0x1cf)](y);try{let _0x5a5aad=p[_0x108297(0x1ff)](c[_0x108297(0x1cd)][_0x108297(0x1d4)]),_0x534b5c=_0x26d613[_0x108297(0x1fa)];if(!_0x534b5c){let _0x495547=await u(_0x5a5aad,_0x26d613),_0x3d948a=_0x495547&&_0x495547[_0x108297(0x1d5)]&&Number(_0x495547[_0x108297(0x1d5)]);null==_0x3d948a&&(_0x3d948a=0x0),_0x534b5c=_0x3d948a+0x1;}let _0x1385f0=_0x108297(0x1ca);o['existsSync'](t['join'](_0x1fb8b7,_0x108297(0x1d6)))&&(_0x1385f0=_0x108297(0x1d6));let _0x13549d=(await i({'configFile':t[_0x108297(0x203)](_0x1fb8b7,_0x1385f0),'root':_0x1fb8b7,'base':''+c[_0x108297(0x1d0)]+_0x5a5aad+'/'+_0x534b5c+'/','css':{'modules':{'scopeBehaviour':_0x108297(0x1f0)}},'mode':_0x26d613[_0x108297(0x1da)],'build':{'target':_0x108297(0x1d7),'outDir':t[_0x108297(0x203)](_0x1fb8b7,_0x108297(0x1c6)),'assetsInlineLimit':0x0,'cssCodeSplit':!0x1,'cssTarget':[_0x108297(0x1d7),'safari13.1'],'rollupOptions':{'plugins':[l({'values':{'ZMP_IMPORT_PAGES':()=>m(_0x1fb8b7)}}),s({'warnOnError':!0x0})],'output':{'entryFileNames':_0x108297(0x204),'chunkFileNames':_0x108297(0x204)}}},'logLevel':'error'}))['output'][_0x108297(0x207)](_0x30ff99=>a[_0x108297(0x206)](_0x30ff99,['fileName',_0x108297(0x201),_0x108297(0x1db),'isEntry',_0x108297(0x1f8),_0x108297(0x1fd)])),_0x1b4210=new Map();_0x13549d[_0x108297(0x1d9)](_0x2dd165=>{const _0x42ff32=_0x108297;_0x1b4210[_0x42ff32(0x1e7)](_0x2dd165[_0x42ff32(0x1e9)],_0x2dd165);});let _0x427893=_0x13549d[_0x108297(0x1f6)](_0x421f2e=>_0x108297(0x1fe)===_0x421f2e[_0x108297(0x201)]&&_0x421f2e['isEntry']),_0x5f4a72=[],_0x27b279=(_0x50d18c,_0x1cafa3=new Set())=>{const _0x20b56e=_0x108297;let _0x432269=[];return _0x50d18c['imports'][_0x20b56e(0x1d9)](_0x53a34b=>{const _0x251ec3=_0x20b56e;let _0x479c40=_0x1b4210[_0x251ec3(0x1ee)](_0x53a34b);_0x479c40?.['type']!==_0x251ec3(0x1fe)||_0x1cafa3[_0x251ec3(0x1ed)](_0x53a34b)||(_0x1cafa3['add'](_0x53a34b),_0x432269['push'](..._0x27b279(_0x479c40,_0x1cafa3)),_0x432269[_0x251ec3(0x1c1)](_0x479c40));}),_0x432269;};_0x427893[_0x108297(0x1d9)](_0x228b6a=>{const _0x179957=_0x108297;let _0x32e4c3=_0x27b279(_0x228b6a);_0x5f4a72[_0x179957(0x1c1)](..._0x32e4c3);});let _0x57c9b9=_0x13549d[_0x108297(0x1f6)](_0x623a58=>!!(_0x108297(0x1f2)===_0x623a58[_0x108297(0x201)]&&_0x623a58[_0x108297(0x1e9)]['endsWith'](_0x108297(0x1c8)))),_0x45c6b8={..._0x2c6223,'listCSS':[...Array['isArray'](_0x2c6223[_0x108297(0x1dc)])?_0x2c6223['listCSS']:[],..._0x57c9b9[_0x108297(0x207)](_0x581813=>_0x581813[_0x108297(0x1e9)])],'listSyncJS':[...Array[_0x108297(0x1f3)](_0x2c6223[_0x108297(0x209)])?_0x2c6223['listSyncJS']:[],..._0x427893[_0x108297(0x207)](_0x1a6ea3=>_0x1a6ea3[_0x108297(0x1e9)])],'listAsyncJS':[..._0x5f4a72[_0x108297(0x207)](_0x5aebd2=>_0x5aebd2[_0x108297(0x1e9)]),...Array[_0x108297(0x1f3)](_0x2c6223['listAsyncJS'])?_0x2c6223['listAsyncJS']:[]]};return o[_0x108297(0x1e3)](_0xd0dbec(_0x108297(0x1c4)+c['filename'][_0x108297(0x1d2)]),JSON[_0x108297(0x1e8)](_0x45c6b8)),_0x589c30[_0x108297(0x1e5)](''+e[_0x108297(0x1f4)]['green'](_0x108297(0x1d1))),_0x45c6b8;}catch(_0x5980a5){_0x589c30[_0x108297(0x1f9)]('Error\x20building\x20project'),n[_0x108297(0x1e1)](_0x5980a5[_0x108297(0x1df)]||_0x5980a5),_0x1dae75&&process[_0x108297(0x1de)](0x1);return;}};
1
+ 'use strict';const _0x309964=_0x1432;(function(_0x11c86c,_0x15d438){const _0x24b6f7=_0x1432,_0x5e6ba5=_0x11c86c();while(!![]){try{const _0x5e1f17=-parseInt(_0x24b6f7(0x205))/0x1+-parseInt(_0x24b6f7(0x208))/0x2*(parseInt(_0x24b6f7(0x1f3))/0x3)+parseInt(_0x24b6f7(0x211))/0x4+parseInt(_0x24b6f7(0x206))/0x5+-parseInt(_0x24b6f7(0x1fe))/0x6+-parseInt(_0x24b6f7(0x1fc))/0x7+parseInt(_0x24b6f7(0x1fa))/0x8;if(_0x5e1f17===_0x15d438)break;else _0x5e6ba5['push'](_0x5e6ba5['shift']());}catch(_0x237d14){_0x5e6ba5['push'](_0x5e6ba5['shift']());}}}(_0x4323,0x743ae));function _0x1432(_0x5a7de1,_0xfc557e){const _0x4323f0=_0x4323();return _0x1432=function(_0x143283,_0x494574){_0x143283=_0x143283-0x1e8;let _0x4ffc72=_0x4323f0[_0x143283];return _0x4ffc72;},_0x1432(_0x5a7de1,_0xfc557e);}const e=require('chalk'),r=require(_0x309964(0x20b)),t=require(_0x309964(0x20a)),i=require(_0x309964(0x1ff))['default'],o=require(_0x309964(0x1ee)),{buildApp:n}=require(_0x309964(0x214)),u=require(_0x309964(0x203)),a=require(_0x309964(0x1ea)),l=require(_0x309964(0x1eb)),{errorExit:s}=require('../utils/error'),p=require(_0x309964(0x1f5)),g=require(_0x309964(0x1f0)),{existsSync:c}=require('fs'),w=l[_0x309964(0x1fb)]('NODE_ENV')||_0x309964(0x215),d=e[_0x309964(0x200)](_0x309964(0x213)),f=e[_0x309964(0x207)]('Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher'),m=r('production'===w?_0x309964(0x1f6):_0x309964(0x202));function _0x4323(){const _0x4b28ce=['217976yNFMCS','Error\x20building\x20project','Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','zmp-cli-core','production','exports','nextVersion','../utils/get-app-info','../utils/env','statusError','bold','@rollup/plugin-replace','latestVersion','../utils/generate-pages-map','statusDone','join','80643ulOfrT','text','../config','Building\x20for\x20production...','start','green','writeFileSync','17862824flUkVf','getEnv','757960hlYrlv','node_modules','5045952vWgBuv','@rollup/plugin-dynamic-import-vars','gray','Build\x20Done!\x0a','Building\x20development\x20version...','../utils/fs-extra','www/','800165RzEXuv','2110130ICRyiQ','yellow','36fLVumk','filename','path','ora','cwd','statusStart','appConfig','zmp-framework','www'];_0x4323=function(){return _0x4b28ce;};return _0x4323();}module[_0x309964(0x1e8)]=async(_0x3766c4={},_0x4e3c21)=>{const _0x9f488e=_0x309964;let _0x14310d=_0x3766c4[_0x9f488e(0x20c)]||process['cwd'](),_0x1a6837=_0xd09c84=>t[_0x9f488e(0x1f2)](_0x14310d,_0xd09c84),_0x5cf312=_0x3766c4['appConfigJson']||require(_0x1a6837(p[_0x9f488e(0x209)][_0x9f488e(0x20e)]));_0x4e3c21||(_0x4e3c21={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),c(t[_0x9f488e(0x1f2)](_0x14310d,_0x9f488e(0x1fd),_0x9f488e(0x20f)))&&_0x4e3c21[_0x9f488e(0x1f4)](f),m[_0x9f488e(0x1f7)](),_0x4e3c21[_0x9f488e(0x20d)](d);try{let _0x52b0ca=l[_0x9f488e(0x1fb)](p['env']['appId']),_0x3b9aca=_0x3766c4[_0x9f488e(0x1e9)];if(!_0x3b9aca){let _0x54592f=await a(_0x52b0ca,_0x3766c4),_0x3366dd=_0x54592f&&_0x54592f[_0x9f488e(0x1ef)]&&Number(_0x54592f[_0x9f488e(0x1ef)]);null==_0x3366dd&&(_0x3366dd=0x0),_0x3b9aca=_0x3366dd+0x1;}let {appConfigJson:_0x5e6a48}=await n({'cwd':_0x14310d,'mode':w,'appId':_0x52b0ca,'nextVersion':_0x3b9aca,'appConfig':_0x5cf312,'outDir':_0x9f488e(0x210),'vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>g(_0x14310d)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x4e3c21[_0x9f488e(0x1f4)],'warn':_0x4e3c21[_0x9f488e(0x1f4)],'warnOnce':_0x4e3c21['text'],'error':_0x4e3c21['error']}});return _0x5e6a48&&u[_0x9f488e(0x1f9)](_0x1a6837(_0x9f488e(0x204)+p[_0x9f488e(0x209)][_0x9f488e(0x20e)]),JSON['stringify'](_0x5e6a48)),_0x4e3c21[_0x9f488e(0x1f1)](''+e[_0x9f488e(0x1ed)][_0x9f488e(0x1f8)](_0x9f488e(0x201))),_0x5e6a48;}catch(_0x4fa4ac){_0x4e3c21[_0x9f488e(0x1ec)](_0x9f488e(0x212)),s(_0x4fa4ac);return;}};
package/config/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x3de9(){var _0x74353b=['559094VOgVWB','4570192EMtOSa','5FpArbb','app/upload-chunk','1257815YecOKr','app/get-info','184368fhFdDX','octet','3712590EGHUZu','admin/login','app-config.json','cwd','Request\x20Timeout','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','/.env','https://zmp-api.developers.zalo.me/','exports','8QBAKfs','332066mydmUE','//h5.zdn.vn/zapps/','18917082GvxAPm'];_0x3de9=function(){return _0x74353b;};return _0x3de9();}function _0x5d9c(_0x3660cf,_0x4de083){var _0x3de97b=_0x3de9();return _0x5d9c=function(_0x5d9c45,_0x2ba2ab){_0x5d9c45=_0x5d9c45-0x6b;var _0x183c8b=_0x3de97b[_0x5d9c45];return _0x183c8b;},_0x5d9c(_0x3660cf,_0x4de083);}var _0x498ba1=_0x5d9c;(function(_0x54d27b,_0x16bd2f){var _0xb105ee=_0x5d9c,_0x3e3c6c=_0x54d27b();while(!![]){try{var _0x4097df=-parseInt(_0xb105ee(0x70))/0x1*(parseInt(_0xb105ee(0x6e))/0x2)+-parseInt(_0xb105ee(0x74))/0x3+parseInt(_0xb105ee(0x6f))/0x4+-parseInt(_0xb105ee(0x72))/0x5+-parseInt(_0xb105ee(0x76))/0x6+parseInt(_0xb105ee(0x6b))/0x7*(parseInt(_0xb105ee(0x7f))/0x8)+parseInt(_0xb105ee(0x6d))/0x9;if(_0x4097df===_0x16bd2f)break;else _0x3e3c6c['push'](_0x3e3c6c['shift']());}catch(_0x4d4d3d){_0x3e3c6c['push'](_0x3e3c6c['shift']());}}}(_0x3de9,0xeaf3d));module[_0x498ba1(0x7e)]={'filename':{'appConfig':_0x498ba1(0x78),'zmpConfig':'zmp-cli.json','packageJson':'package.json'},'api_domain':_0x498ba1(0x7d),'zdn_url':_0x498ba1(0x6c),'path':{'login':_0x498ba1(0x77),'requestLogin':'admin/request-login','checkLoginStatus':'admin/get-login-status','uploadAppByChunk':_0x498ba1(0x71),'requestUploadResumable':'app/request-upload','getAppInfo':_0x498ba1(0x73)},'dirname':__dirname,'root_env':()=>process[_0x498ba1(0x79)]()+_0x498ba1(0x7c),'env':{'appId':'APP_ID','token':'ZMP_TOKEN'},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x498ba1(0x7b),'permission_denied':'Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','request_timeout':_0x498ba1(0x7a)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x498ba1(0x75),'forceChunkSize':!0x1}};
1
+ 'use strict';var _0x5a419c=_0x2ec7;(function(_0x50a01a,_0x4e2596){var _0x34c54a=_0x2ec7,_0x276bd6=_0x50a01a();while(!![]){try{var _0x21b374=parseInt(_0x34c54a(0x15e))/0x1+-parseInt(_0x34c54a(0x14a))/0x2*(parseInt(_0x34c54a(0x157))/0x3)+parseInt(_0x34c54a(0x148))/0x4*(parseInt(_0x34c54a(0x15a))/0x5)+parseInt(_0x34c54a(0x159))/0x6*(parseInt(_0x34c54a(0x151))/0x7)+-parseInt(_0x34c54a(0x14e))/0x8*(parseInt(_0x34c54a(0x15f))/0x9)+-parseInt(_0x34c54a(0x15d))/0xa*(-parseInt(_0x34c54a(0x14b))/0xb)+-parseInt(_0x34c54a(0x158))/0xc;if(_0x21b374===_0x4e2596)break;else _0x276bd6['push'](_0x276bd6['shift']());}catch(_0x4f0ec1){_0x276bd6['push'](_0x276bd6['shift']());}}}(_0x18e7,0x6d73b));function _0x2ec7(_0x93a5d6,_0x52e9e1){var _0x18e70f=_0x18e7();return _0x2ec7=function(_0x2ec7ae,_0x510523){_0x2ec7ae=_0x2ec7ae-0x147;var _0x97f336=_0x18e70f[_0x2ec7ae];return _0x97f336;},_0x2ec7(_0x93a5d6,_0x52e9e1);}function _0x18e7(){var _0x48aae0=['app-config.json','https://zmp-api.developers.zalo.me/','//h5.zdn.vn/zapps/','638967jHLJtE','8292300THGbmE','1584QeOtjl','3471345wyVAaC','admin/login','app/upload-chunk','2087570PPVAmC','32432MqZbPO','9EprKkN','octet','exports','ZMP_TOKEN','4MnHCtS','cwd','4PGwLEw','33ToOZAF','app/get-info','zmp-cli.json','1186224MbRYdK','Request\x20Timeout','APP_ID','9562wAkUtO','/.env','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)'];_0x18e7=function(){return _0x48aae0;};return _0x18e7();}module[_0x5a419c(0x161)]={'filename':{'appConfig':_0x5a419c(0x154),'zmpConfig':_0x5a419c(0x14d),'packageJson':'package.json'},'api_domain':_0x5a419c(0x155),'zdn_url':_0x5a419c(0x156),'path':{'login':_0x5a419c(0x15b),'requestLogin':'admin/request-login','checkLoginStatus':'admin/get-login-status','uploadAppByChunk':_0x5a419c(0x15c),'requestUploadResumable':'app/request-upload','getAppInfo':_0x5a419c(0x14c)},'dirname':__dirname,'root_env':()=>process[_0x5a419c(0x149)]()+_0x5a419c(0x152),'env':{'appId':_0x5a419c(0x150),'token':_0x5a419c(0x147)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x5a419c(0x153),'permission_denied':'Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','request_timeout':_0x5a419c(0x14f)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x5a419c(0x160),'forceChunkSize':!0x1}};
package/create/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3f729c=_0x1130;(function(_0x1edfe5,_0x5409b0){const _0x3881c4=_0x1130,_0x50741b=_0x1edfe5();while(!![]){try{const _0x4f6731=parseInt(_0x3881c4(0x163))/0x1+-parseInt(_0x3881c4(0x15c))/0x2*(parseInt(_0x3881c4(0x149))/0x3)+parseInt(_0x3881c4(0x193))/0x4*(parseInt(_0x3881c4(0x16f))/0x5)+parseInt(_0x3881c4(0x173))/0x6+parseInt(_0x3881c4(0x146))/0x7+parseInt(_0x3881c4(0x170))/0x8+parseInt(_0x3881c4(0x16c))/0x9;if(_0x4f6731===_0x5409b0)break;else _0x50741b['push'](_0x50741b['shift']());}catch(_0x31baff){_0x50741b['push'](_0x50741b['shift']());}}}(_0x2554,0xae118));function _0x1130(_0x18c96f,_0x2f654f){const _0x2554d2=_0x2554();return _0x1130=function(_0x1130b1,_0x47158c){_0x1130b1=_0x1130b1-0x142;let _0x2dc3ef=_0x2554d2[_0x1130b1];return _0x2dc3ef;},_0x1130(_0x18c96f,_0x2f654f);}const e=require(_0x3f729c(0x16e)),t=require(_0x3f729c(0x186)),r=require(_0x3f729c(0x165)),n=require(_0x3f729c(0x14a)),i=require(_0x3f729c(0x148)),s=require(_0x3f729c(0x17b)),a=require(_0x3f729c(0x166)),{generateTailWindScripts:o}=require('./utils/generate-npm-scripts'),c=require('./utils/generate-app-config'),l=require(_0x3f729c(0x157)),u=require(_0x3f729c(0x191)),p=require(_0x3f729c(0x16a)),g=require(_0x3f729c(0x14d)),d=require(_0x3f729c(0x16b)),m=require(_0x3f729c(0x147)),f=require(_0x3f729c(0x15a)),j=r[_0x3f729c(0x17d)](_0x3f729c(0x14e));function _0x2554(){const _0x5bc2d2=['../utils/fs-extra','222123uOoSXM','log-symbols','length','from','./utils/generate-gitignore','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','content','package.json','stderr','zmp-ui','\x20Run\x20\x22npm\x20run\x20','resolve','dependencies','\x22\x20-\x20','./templates/create-folders','icon','name','./init-zmp-ui','\x20&&\x20npm\x20install\x20','36NQbmoc','filename','error','Creating\x20project\x20files','\x0a\x20\x20','Executing\x20NPM\x20Scripts','cd\x20','491333MgltRZ','https://mini.zalo.me/','chalk','./utils/generate-npm-scripts','newProject','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20\x20\x20','.gitignore','./utils/generate-readme','../utils/log','6101235LdtrLe','text','exec-sh','54185RdIstn','5219584OHWoIm','exit','\x20--save','427782mZeQzs','promise','Error\x20installing\x20NPM\x20Dependencies','description','npm\x20run\x20postinstall','\x0a\x20\x20-\x20📖\x20Check\x20','writeFileSync','Error\x20creating\x20project\x20files','./utils/generate-package-json','writeFileAsync','gray','statusError','Error\x20installing\x20NPM\x20Dev\x20Dependencies','Next\x20steps:','package','postInstall','appConfig','exports','\x0a\x20\x20-\x20📖\x20Visit\x20documentation\x20at\x20','path','statusDone','join','includeTailwind','replace','success','stringify','bold','statusStart','README.md','Generating\x20package.json','./templates/copy-assets','Creating\x20required\x20folders\x20structure','52xDhdIV','Generating\x20app-config.json','\x20--save-dev','npm\x20install\x20','map','Done!','cwd','copyFileAsync','\x20&&\x20npm\x20run\x20postinstall','82936DxNHNw','../config'];_0x2554=function(){return _0x5bc2d2;};return _0x2554();}module[_0x3f729c(0x184)]=async(_0x358c4d={},_0x37d631,{exitOnError:_0x25c141=!0x0,iconFile:_0x556e11=null}={})=>{const _0x5cf00f=_0x3f729c;if(_0x358c4d[_0x5cf00f(0x167)]&&_0x5cf00f(0x152)===_0x358c4d[_0x5cf00f(0x181)]){await f(_0x358c4d,_0x37d631);return;}let _0x3d2aa3=_0x358c4d[_0x5cf00f(0x143)]||process['cwd'](),_0x196bea=_0x3d2aa3===process[_0x5cf00f(0x143)]();function _0x5dad30(_0x3cd6ad){const _0x2220e1=_0x5cf00f;d[_0x2220e1(0x15e)](_0x3cd6ad[_0x2220e1(0x151)]||_0x3cd6ad),_0x25c141&&process['exit'](0x1);}_0x37d631||(_0x37d631={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x37d631[_0x5cf00f(0x18e)](_0x5cf00f(0x194));let _0x3f9fb0=c(_0x358c4d);if(i[_0x5cf00f(0x179)](t[_0x5cf00f(0x188)](_0x3d2aa3,m[_0x5cf00f(0x15d)][_0x5cf00f(0x183)]),_0x3f9fb0['content']),_0x37d631['statusDone'](_0x5cf00f(0x194)),!_0x358c4d[_0x5cf00f(0x167)]){let _0x9ae5c0=a(['r'])[_0x5cf00f(0x197)](_0x248905=>_0x248905[_0x5cf00f(0x158)]+_0x5cf00f(0x153)+_0x248905[_0x5cf00f(0x159)]+_0x5cf00f(0x156)+_0x248905[_0x5cf00f(0x176)]);_0x37d631['text'](_0x9ae5c0[_0x5cf00f(0x188)]('\x0a')),process[_0x5cf00f(0x171)](0x0);}_0x37d631[_0x5cf00f(0x18e)](_0x5cf00f(0x190));let _0x36a667=s(_0x358c4d);i['writeFileSync'](t[_0x5cf00f(0x188)](_0x3d2aa3,_0x5cf00f(0x150)),_0x36a667['content']),i['writeFileSync'](t['join'](_0x3d2aa3,m[_0x5cf00f(0x15d)]['zmpConfig']),JSON[_0x5cf00f(0x18c)](_0x358c4d,'',0x2)),_0x37d631[_0x5cf00f(0x187)](_0x5cf00f(0x190)),_0x37d631['statusStart']('Creating\x20required\x20folders\x20structure');try{l(_0x358c4d);}catch(_0x1d6f68){_0x37d631[_0x5cf00f(0x17e)]('Error\x20creating\x20required\x20folders\x20structure'),_0x5dad30(_0x1d6f68);}_0x37d631['statusDone'](_0x5cf00f(0x192)),_0x37d631[_0x5cf00f(0x18e)]('Installing\x20NPM\x20Dependencies\x20'+j);try{_0x196bea?await e['promise'](_0x5cf00f(0x196)+_0x36a667[_0x5cf00f(0x155)][_0x5cf00f(0x188)]('\x20')+_0x5cf00f(0x172),!0x0):await e['promise'](_0x5cf00f(0x162)+_0x3d2aa3[_0x5cf00f(0x18a)](/ /g,'\x5c\x20')+_0x5cf00f(0x15b)+_0x36a667['dependencies'][_0x5cf00f(0x188)]('\x20')+_0x5cf00f(0x172),!0x0);}catch(_0xbbca43){_0x37d631[_0x5cf00f(0x17e)](_0x5cf00f(0x175)),_0x5dad30(_0xbbca43);return;}_0x37d631[_0x5cf00f(0x187)]('Installing\x20NPM\x20Dependencies'),_0x37d631[_0x5cf00f(0x18e)]('Installing\x20NPM\x20Dev\x20Dependencies\x20'+j);try{_0x196bea?await e[_0x5cf00f(0x174)](_0x5cf00f(0x196)+_0x36a667['devDependencies'][_0x5cf00f(0x188)]('\x20')+_0x5cf00f(0x195),!0x0):await e[_0x5cf00f(0x174)](_0x5cf00f(0x162)+_0x3d2aa3[_0x5cf00f(0x18a)](/ /g,'\x5c\x20')+_0x5cf00f(0x15b)+_0x36a667['devDependencies']['join']('\x20')+_0x5cf00f(0x195),!0x0);}catch(_0x2b813d){_0x37d631['statusError'](_0x5cf00f(0x17f)),_0x5dad30(_0x2b813d);return;}if(_0x37d631['statusDone']('Installing\x20NPM\x20Dev\x20Dependencies'),_0x36a667['postInstall']&&_0x36a667[_0x5cf00f(0x182)][_0x5cf00f(0x14b)]){_0x37d631[_0x5cf00f(0x18e)](_0x5cf00f(0x161));try{_0x196bea?await e[_0x5cf00f(0x174)](_0x5cf00f(0x177),!0x0):await e['promise'](_0x5cf00f(0x162)+_0x3d2aa3['replace'](/ /g,'\x5c\x20')+_0x5cf00f(0x145),!0x0);}catch(_0x216f58){_0x37d631[_0x5cf00f(0x17e)]('Error\x20executing\x20NPM\x20Scripts'),_0x5dad30(_0x216f58);return;}_0x37d631[_0x5cf00f(0x187)](_0x5cf00f(0x161));}_0x37d631['statusStart'](_0x5cf00f(0x15f));let _0x49dbbb=u(_0x358c4d,_0x556e11);try{await Promise['all'](_0x49dbbb['map'](_0x3fd442=>_0x3fd442[_0x5cf00f(0x14c)]?i[_0x5cf00f(0x144)](_0x3fd442['from'],_0x3fd442['to']):_0x3fd442['content']?i[_0x5cf00f(0x17c)](_0x3fd442['to'],_0x3fd442[_0x5cf00f(0x14f)]):Promise[_0x5cf00f(0x154)]()));}catch(_0x5b5527){_0x37d631[_0x5cf00f(0x17e)](_0x5cf00f(0x17a)),_0x5dad30(_0x5b5527);return;}let _0x1b9212=p(_0x358c4d);try{i[_0x5cf00f(0x179)](t[_0x5cf00f(0x188)](_0x3d2aa3,_0x5cf00f(0x18f)),_0x1b9212);}catch(_0x197fdd){_0x37d631['statusError'](_0x5cf00f(0x17a)),_0x5dad30(_0x197fdd);return;}let _0x2a390c=g(_0x358c4d);try{i[_0x5cf00f(0x179)](t['join'](_0x3d2aa3,_0x5cf00f(0x169)),_0x2a390c);}catch(_0x3562e3){_0x37d631['statusError'](_0x5cf00f(0x17a)),_0x5dad30(_0x3562e3);return;}_0x37d631[_0x5cf00f(0x187)](_0x5cf00f(0x15f));let _0x3315d6=a(['s','r'])[_0x5cf00f(0x197)](_0x9a7671=>'-\x20'+_0x9a7671[_0x5cf00f(0x158)]+_0x5cf00f(0x153)+_0x9a7671[_0x5cf00f(0x159)]+_0x5cf00f(0x156)+_0x9a7671[_0x5cf00f(0x176)]);_0x358c4d[_0x5cf00f(0x189)]&&(_0x3315d6=[..._0x3315d6,...o(['t'])[_0x5cf00f(0x197)](_0xd61556=>'-\x20'+_0xd61556[_0x5cf00f(0x158)]+_0x5cf00f(0x153)+_0xd61556[_0x5cf00f(0x159)]+_0x5cf00f(0x156)+_0xd61556[_0x5cf00f(0x176)])]);let _0x3f111f='\x0a'+r[_0x5cf00f(0x18d)](n[_0x5cf00f(0x18b)])+'\x20'+r[_0x5cf00f(0x18d)](_0x5cf00f(0x142))+'\x20💪\x0a\x0a'+r[_0x5cf00f(0x18d)](n['info'])+'\x20'+r[_0x5cf00f(0x18d)](_0x5cf00f(0x180))+'\x0a\x20\x20'+_0x3315d6[_0x5cf00f(0x188)](_0x5cf00f(0x160))+_0x5cf00f(0x185)+r[_0x5cf00f(0x18d)](_0x5cf00f(0x164))+_0x5cf00f(0x178)+r['bold'](_0x5cf00f(0x18f))+_0x5cf00f(0x168);_0x37d631[_0x5cf00f(0x16d)](_0x3f111f);};
1
+ 'use strict';const _0x465e0a=_0x5a08;(function(_0x585675,_0x43c162){const _0x19f2e2=_0x5a08,_0x10d8ff=_0x585675();while(!![]){try{const _0xf8e42b=-parseInt(_0x19f2e2(0x107))/0x1*(parseInt(_0x19f2e2(0x133))/0x2)+parseInt(_0x19f2e2(0x10d))/0x3*(parseInt(_0x19f2e2(0x11b))/0x4)+parseInt(_0x19f2e2(0x11c))/0x5+parseInt(_0x19f2e2(0x134))/0x6+-parseInt(_0x19f2e2(0x109))/0x7*(-parseInt(_0x19f2e2(0x12f))/0x8)+parseInt(_0x19f2e2(0x135))/0x9+-parseInt(_0x19f2e2(0x100))/0xa;if(_0xf8e42b===_0x43c162)break;else _0x10d8ff['push'](_0x10d8ff['shift']());}catch(_0x3788cf){_0x10d8ff['push'](_0x10d8ff['shift']());}}}(_0x221a,0x1c882));function _0x5a08(_0x5ca05f,_0x4b2d15){const _0x221a01=_0x221a();return _0x5a08=function(_0x5a088f,_0x1ceae1){_0x5a088f=_0x5a088f-0xfb;let _0xe3f64=_0x221a01[_0x5a088f];return _0xe3f64;},_0x5a08(_0x5ca05f,_0x4b2d15);}const e=require(_0x465e0a(0x113)),t=require(_0x465e0a(0x11f)),n=require(_0x465e0a(0x132)),r=require(_0x465e0a(0x115)),{initProject:i}=require('zmp-cli-core'),o=require(_0x465e0a(0xff)),{errorExit:s}=require(_0x465e0a(0x137)),a=require(_0x465e0a(0xfe)),c=require(_0x465e0a(0xfc)),l=require(_0x465e0a(0x12b)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x465e0a(0x11d)](_0x465e0a(0x110));async function f(_0x26492a,_0x3d626e){const _0x55246a=_0x465e0a;_0x3d626e[_0x55246a(0x11e)](_0x55246a(0x12d));try{let {cwd:_0x24451e,template:_0x695392,folderName:_0x18c58a,name:_0x590c0d}=_0x26492a;await i({'cwd':_0x24451e,'template':_0x695392,'folderName':_0x18c58a,'projectName':_0x590c0d});}catch(_0x5aaa2){_0x3d626e[_0x55246a(0x12c)]('Error\x20creating\x20project\x20files'),s(_0x5aaa2);}_0x3d626e[_0x55246a(0x123)](_0x55246a(0x12d));}async function m(_0xd24745){const _0x505856=_0x465e0a;let _0x3536e6=t[_0x505856(0x10c)](_0xd24745[_0x505856(0x124)],_0x505856(0x117)),_0x3d577f=t[_0x505856(0x10c)](_0xd24745[_0x505856(0x124)],_0xd24745[_0x505856(0x10b)],_0x505856(0x117));p(_0x3536e6)&&!p(_0x3d577f)&&u(_0x3536e6,_0x3d577f);}async function g(_0x84c60a,_0x1e1307){const _0x59a298=_0x465e0a;let {cwd:_0x2040c5}=_0x84c60a;_0x1e1307[_0x59a298(0x11e)](_0x59a298(0x108));let _0x4a203f=c(_0x84c60a);o[_0x59a298(0x126)](t[_0x59a298(0xfd)](_0x2040c5,a[_0x59a298(0x125)]['appConfig']),_0x4a203f[_0x59a298(0x11a)]),_0x1e1307[_0x59a298(0x123)]('Generating\x20app-config.json');}async function $(_0x447488,_0x330d1c){const _0xee1252=_0x465e0a;let _0x59b09c=t['join'](_0x447488[_0xee1252(0x124)],_0x447488[_0xee1252(0x10b)]);_0x330d1c['statusStart'](_0xee1252(0x120)+d);let _0x490e4b=_0x59b09c===process['cwd']();try{_0x490e4b?await e[_0xee1252(0x102)](_0xee1252(0x12e),!0x0):await e[_0xee1252(0x102)](_0xee1252(0x112)+_0x59b09c['replace'](/ /g,'\x5c\x20')+_0xee1252(0x131),!0x0);}catch(_0x17f78f){_0x330d1c['statusError'](_0xee1252(0x116)),s(_0x17f78f);return;}_0x330d1c[_0xee1252(0x123)](_0xee1252(0x118));}function _0x221a(){const _0x4cc4cd=['../utils/fs-extra','3768150tUOIDg','name','promise','https://mini.zalo.me/','README.md','text','icon','41fXmeCv','Generating\x20app-config.json','204442AEsRji','info','folderName','resolve','10929zVCCha','Next\x20steps:','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','bold','cd\x20','exec-sh','\x0a-\x20📖\x20Check\x20','log-symbols','Error\x20installing\x20NPM\x20Dependencies','.env','Installing\x20NPM\x20Dependencies','description','content','20XEEWWd','790290tZTibO','gray','statusStart','path','Installing\x20NPM\x20Dependencies\x20','\x20Run\x20\x22npm\x20run\x20','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','statusDone','cwd','filename','writeFileSync','exports','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','success','\x0a-\x20👉\x20Run\x20\x22cd\x20','./utils/generate-npm-scripts','statusError','Creating\x20project\x20files','npm\x20install','40hVTpdd','\x20💪\x0a\x0a','\x20&&\x20npm\x20install','chalk','2180qKwCUk','1048446BXqnYD','371943KWZxeD','newProject','../utils/error','Done!','./utils/generate-app-config','join','../config'];_0x221a=function(){return _0x4cc4cd;};return _0x221a();}async function h(_0x348b42,_0x4a066f){const _0x4ea2e0=_0x465e0a;let _0x3a0a14=l(['s','r'])['map'](_0x10dfdf=>'-\x20'+_0x10dfdf[_0x4ea2e0(0x106)]+_0x4ea2e0(0x121)+_0x10dfdf[_0x4ea2e0(0x101)]+'\x22\x20-\x20'+_0x10dfdf[_0x4ea2e0(0x119)]),_0x1eefb2='\x0a'+n[_0x4ea2e0(0x111)](r[_0x4ea2e0(0x129)])+'\x20'+n[_0x4ea2e0(0x111)](_0x4ea2e0(0xfb))+_0x4ea2e0(0x130)+n[_0x4ea2e0(0x111)](r['info'])+'\x20'+n['bold'](_0x4ea2e0(0x10e))+_0x4ea2e0(0x12a)+_0x348b42[_0x4ea2e0(0x10b)]+'\x22\x0a'+_0x3a0a14[_0x4ea2e0(0xfd)]('\x0a')+_0x4ea2e0(0x10f)+n[_0x4ea2e0(0x111)](_0x4ea2e0(0x103))+_0x4ea2e0(0x114)+n[_0x4ea2e0(0x111)](_0x4ea2e0(0x104))+'\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20';_0x4a066f[_0x4ea2e0(0x105)](_0x1eefb2);}async function y(_0x4473ea,_0x3d79a3){const _0x40f31f=_0x465e0a;let _0x17efb7='\x0a'+n['bold'](r[_0x40f31f(0x129)])+'\x20'+n['bold']('Done!')+'\x20💪\x0a\x0a'+n['bold'](r[_0x40f31f(0x10a)])+'\x20'+n['bold'](_0x40f31f(0x10e))+_0x40f31f(0x122)+n[_0x40f31f(0x111)](_0x40f31f(0x128))+'\x0a\x20\x20';_0x3d79a3[_0x40f31f(0x105)](_0x17efb7);}module[_0x465e0a(0x127)]=async(_0x2a663d={},_0x2e8d7a)=>{const _0x33a748=_0x465e0a;for(let _0x3a990b of(_0x2e8d7a||(_0x2e8d7a={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x2a663d[_0x33a748(0x136)]?[f,m,$,h]:[g,y]))await _0x3a990b(_0x2a663d,_0x2e8d7a);};
@@ -1 +1 @@
1
- 'use strict';const _0x3b749e=_0x2b90;(function(_0x3a2a1e,_0x2b3aac){const _0xdc1c88=_0x2b90,_0x1db24e=_0x3a2a1e();while(!![]){try{const _0x25e210=parseInt(_0xdc1c88(0x1d6))/0x1+-parseInt(_0xdc1c88(0x1d5))/0x2*(-parseInt(_0xdc1c88(0x1ca))/0x3)+-parseInt(_0xdc1c88(0x1d3))/0x4*(-parseInt(_0xdc1c88(0x1cb))/0x5)+parseInt(_0xdc1c88(0x1ce))/0x6*(parseInt(_0xdc1c88(0x1d9))/0x7)+parseInt(_0xdc1c88(0x1d1))/0x8*(parseInt(_0xdc1c88(0x1cd))/0x9)+-parseInt(_0xdc1c88(0x1c9))/0xa+-parseInt(_0xdc1c88(0x1d4))/0xb;if(_0x25e210===_0x2b3aac)break;else _0x1db24e['push'](_0x1db24e['shift']());}catch(_0x144849){_0x1db24e['push'](_0x1db24e['shift']());}}}(_0x14e9,0xbc1ab));function _0x2b90(_0x345c52,_0x5c4db0){const _0x14e92c=_0x14e9();return _0x2b90=function(_0x2b9020,_0x485299){_0x2b9020=_0x2b9020-0x1c9;let _0x5edc3e=_0x14e92c[_0x2b9020];return _0x5edc3e;},_0x2b90(_0x345c52,_0x5c4db0);}module[_0x3b749e(0x1d8)]=function(_0x45b829){const _0x2517fc=_0x3b749e;let {name:_0x3ca232}=_0x45b829,_0x2e9c3d={'title':_0x3ca232,'headerTitle':_0x3ca232,'headerColor':_0x2517fc(0x1cc),'textColor':_0x2517fc(0x1d2),'statusBarColor':_0x2517fc(0x1cc),'leftButton':_0x2517fc(0x1cf),'statusBar':_0x2517fc(0x1d0),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON['stringify']({'app':_0x2e9c3d,'debug':!0x1,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)[_0x2517fc(0x1d7)](),'appConfig':_0x2e9c3d};};function _0x14e9(){const _0x3952e2=['exports','178759LHXpVk','3156780HzEOQm','39759mrJesz','2890gVZHkp','#1843EF','2457360ONLvpU','270ftZIfo','back','normal','8aAxrDs','white','2944JIciLD','18152079RicUam','22bOmAmr','742946JoRDoP','trim'];_0x14e9=function(){return _0x3952e2;};return _0x14e9();}
1
+ 'use strict';const _0x10b754=_0x569d;(function(_0x5d7d65,_0x50fcc5){const _0x59f066=_0x569d,_0x373103=_0x5d7d65();while(!![]){try{const _0xffce73=parseInt(_0x59f066(0x1a5))/0x1*(-parseInt(_0x59f066(0x1a6))/0x2)+parseInt(_0x59f066(0x19e))/0x3+-parseInt(_0x59f066(0x19b))/0x4*(-parseInt(_0x59f066(0x1a3))/0x5)+parseInt(_0x59f066(0x1a7))/0x6+parseInt(_0x59f066(0x1a0))/0x7*(parseInt(_0x59f066(0x19a))/0x8)+-parseInt(_0x59f066(0x19d))/0x9+parseInt(_0x59f066(0x19f))/0xa*(-parseInt(_0x59f066(0x199))/0xb);if(_0xffce73===_0x50fcc5)break;else _0x373103['push'](_0x373103['shift']());}catch(_0x57f8e3){_0x373103['push'](_0x373103['shift']());}}}(_0x5aa7,0xc55e2));module[_0x10b754(0x1a2)]=function(_0x59a9b8){const _0x407f11=_0x10b754;let {name:_0x396ec2}=_0x59a9b8,_0x4a7fd1={'title':_0x396ec2,'headerTitle':_0x396ec2,'headerColor':_0x407f11(0x1a4),'textColor':_0x407f11(0x1a1),'leftButton':'back','statusBar':_0x407f11(0x19c),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x407f11(0x1a8)]({'app':_0x4a7fd1,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)['trim'](),'appConfig':_0x4a7fd1};};function _0x569d(_0x16f1b6,_0x3461da){const _0x5aa7bc=_0x5aa7();return _0x569d=function(_0x569d3,_0x36fcd7){_0x569d3=_0x569d3-0x199;let _0x130add=_0x5aa7bc[_0x569d3];return _0x130add;},_0x569d(_0x16f1b6,_0x3461da);}function _0x5aa7(){const _0x5cf2d2=['40GgUrsl','4aKYMuv','normal','5345289gjkACG','970800eJAMSz','50RUuVfe','222243kDmNhq','white','exports','7922785GgUQIX','#1843EF','205152RqxQyd','12WbInqX','7393584TfEZrC','stringify','1465013iGmgnY'];_0x5aa7=function(){return _0x5cf2d2;};return _0x5aa7();}
@@ -1 +1 @@
1
- 'use strict';function _0x224a(){const _0x42f2f4=['tailwind','3412090mxSPgP','77KIwhjM','2855007kuYuPK','17709MMVKvt','8rurTog','name','icon','275666kwoEFq','3538766dBZYTV','description','508USZoKr','1uAGgge','script','264102CcHKoP','default','8412440EcUgjl'];_0x224a=function(){return _0x42f2f4;};return _0x224a();}const _0x60152a=_0x21fd;(function(_0x57b585,_0x5a026c){const _0x10050f=_0x21fd,_0x5b3b22=_0x57b585();while(!![]){try{const _0x5a1623=-parseInt(_0x10050f(0x7c))/0x1*(-parseInt(_0x10050f(0x78))/0x2)+parseInt(_0x10050f(0x74))/0x3*(-parseInt(_0x10050f(0x7b))/0x4)+parseInt(_0x10050f(0x71))/0x5+-parseInt(_0x10050f(0x7e))/0x6*(parseInt(_0x10050f(0x72))/0x7)+-parseInt(_0x10050f(0x75))/0x8*(parseInt(_0x10050f(0x73))/0x9)+parseInt(_0x10050f(0x80))/0xa+parseInt(_0x10050f(0x79))/0xb;if(_0x5a1623===_0x5a026c)break;else _0x5b3b22['push'](_0x5b3b22['shift']());}catch(_0x1631f4){_0x5b3b22['push'](_0x5b3b22['shift']());}}}(_0x224a,0x697ee));function _0x21fd(_0x2c5aaa,_0x5afd9c){const _0x224afd=_0x224a();return _0x21fd=function(_0x21fdab,_0x591404){_0x21fdab=_0x21fdab-0x70;let _0x321074=_0x224afd[_0x21fdab];return _0x321074;},_0x21fd(_0x2c5aaa,_0x5afd9c);}const i=require('./npm-scripts');module['exports']=(_0x52da6f=['s','r'])=>_0x52da6f['map'](_0xd015a4=>({'icon':i[_0x60152a(0x7f)][_0xd015a4][_0x60152a(0x77)],'name':i[_0x60152a(0x7f)][_0xd015a4][_0x60152a(0x76)],'script':i['default'][_0xd015a4][_0x60152a(0x7d)],'description':i[_0x60152a(0x7f)][_0xd015a4]['description']})),module['exports']['generateTailWindScripts']=(_0x79c64f=['t'])=>_0x79c64f['map'](_0x96b7e9=>({'icon':i[_0x60152a(0x70)][_0x96b7e9][_0x60152a(0x77)],'name':i[_0x60152a(0x70)][_0x96b7e9][_0x60152a(0x76)],'script':i[_0x60152a(0x70)][_0x96b7e9][_0x60152a(0x7d)],'description':i[_0x60152a(0x70)][_0x96b7e9][_0x60152a(0x7a)]}));
1
+ 'use strict';const _0x404c4c=_0xf931;(function(_0x34b3bb,_0x5704ca){const _0x565b61=_0xf931,_0x1b29d7=_0x34b3bb();while(!![]){try{const _0x4bbbb2=-parseInt(_0x565b61(0xb9))/0x1+-parseInt(_0x565b61(0xba))/0x2+parseInt(_0x565b61(0xb5))/0x3+-parseInt(_0x565b61(0xbf))/0x4*(parseInt(_0x565b61(0xc2))/0x5)+parseInt(_0x565b61(0xc1))/0x6+parseInt(_0x565b61(0xb7))/0x7*(-parseInt(_0x565b61(0xb8))/0x8)+parseInt(_0x565b61(0xb2))/0x9;if(_0x4bbbb2===_0x5704ca)break;else _0x1b29d7['push'](_0x1b29d7['shift']());}catch(_0x3bb14e){_0x1b29d7['push'](_0x1b29d7['shift']());}}}(_0x45e3,0x75c6e));function _0xf931(_0x4424d0,_0x5dbe6b){const _0x45e32f=_0x45e3();return _0xf931=function(_0xf9313b,_0x4a4748){_0xf9313b=_0xf9313b-0xb2;let _0x334616=_0x45e32f[_0xf9313b];return _0x334616;},_0xf931(_0x4424d0,_0x5dbe6b);}const i=require(_0x404c4c(0xb3));module[_0x404c4c(0xc0)]=(_0x17170c=['s','r'])=>_0x17170c[_0x404c4c(0xb6)](_0x1b4320=>({'icon':i[_0x404c4c(0xbd)][_0x1b4320][_0x404c4c(0xb4)],'name':i[_0x404c4c(0xbd)][_0x1b4320][_0x404c4c(0xbe)],'script':i[_0x404c4c(0xbd)][_0x1b4320][_0x404c4c(0xc3)],'description':i[_0x404c4c(0xbd)][_0x1b4320][_0x404c4c(0xbc)]})),module['exports'][_0x404c4c(0xbb)]=(_0x1c60af=['t'])=>_0x1c60af['map'](_0x490574=>({'icon':i[_0x404c4c(0xc4)][_0x490574]['icon'],'name':i[_0x404c4c(0xc4)][_0x490574][_0x404c4c(0xbe)],'script':i[_0x404c4c(0xc4)][_0x490574][_0x404c4c(0xc3)],'description':i[_0x404c4c(0xc4)][_0x490574][_0x404c4c(0xbc)]}));function _0x45e3(){const _0x5e76ff=['tailwind','18841338MaUmDR','./npm-scripts','icon','2045265dMxFJu','map','7JMMAPy','7302864zJZVuD','878796kxtHeW','745570roPnNR','generateTailWindScripts','description','default','name','100BiAclM','exports','3102246vaVIPm','129085Wftkka','script'];_0x45e3=function(){return _0x5e76ff;};return _0x45e3();}
@@ -1 +1 @@
1
- 'use strict';const _0x1f864f=_0x3677;(function(_0xc25af4,_0x9750e1){const _0x18d53c=_0x3677,_0x2836dc=_0xc25af4();while(!![]){try{const _0x1875fb=-parseInt(_0x18d53c(0x170))/0x1*(-parseInt(_0x18d53c(0x157))/0x2)+-parseInt(_0x18d53c(0x18a))/0x3*(-parseInt(_0x18d53c(0x17e))/0x4)+parseInt(_0x18d53c(0x18f))/0x5+-parseInt(_0x18d53c(0x172))/0x6+-parseInt(_0x18d53c(0x18e))/0x7+-parseInt(_0x18d53c(0x180))/0x8+parseInt(_0x18d53c(0x184))/0x9*(-parseInt(_0x18d53c(0x188))/0xa);if(_0x1875fb===_0x9750e1)break;else _0x2836dc['push'](_0x2836dc['shift']());}catch(_0x4af34e){_0x2836dc['push'](_0x2836dc['shift']());}}}(_0x330a,0x5e9c2));const e=require(_0x1f864f(0x18b));var t=require(_0x1f864f(0x190));const {projectFramework:o}=require('../../utils/constants'),a=t[_0x1f864f(0x174)]('\x09-\x20Including\x20Tailwind\x20CSS\x0a\x09-\x20Including\x20Recoil\x20(React\x20only)'),n=[{'type':'list','name':_0x1f864f(0x16f),'message':'What\x20action\x20you\x20want\x20to\x20do?','choices':[{'name':_0x1f864f(0x179),'value':!0x0},{'name':'Using\x20ZMP\x20to\x20deploy\x20only','value':!0x1}]},{'type':'input','name':'name','message':'App\x20(project)\x20name:','default':_0x1f864f(0x16a),'validate':_0x4087c2=>new Promise((_0x30da01,_0x5c16fd)=>{const _0x4be9eb=_0x1f864f;_0x4087c2?_0x30da01(!0x0):_0x5c16fd(Error(_0x4be9eb(0x183)));})},{'type':_0x1f864f(0x160),'name':_0x1f864f(0x159),'when':_0x346c8d=>_0x346c8d[_0x1f864f(0x16f)],'message':_0x1f864f(0x166),'choices':[{'name':_0x1f864f(0x16d),'value':_0x1f864f(0x16d)}]},{'type':_0x1f864f(0x160),'name':'framework','when':_0x1167a1=>'zmp-ui'==_0x1167a1[_0x1f864f(0x159)],'message':_0x1f864f(0x191),'choices':[{'name':_0x1f864f(0x185),'value':o[_0x1f864f(0x17d)]},{'name':_0x1f864f(0x175),'value':o[_0x1f864f(0x15f)]}]},{'type':_0x1f864f(0x160),'name':'cssPreProcessor','when':_0x4060fb=>_0x4060fb[_0x1f864f(0x16f)],'message':_0x1f864f(0x18d),'default':!0x1,'choices':[{'name':_0x1f864f(0x152),'value':!0x1},{'name':_0x1f864f(0x153),'value':_0x1f864f(0x15a)},{'name':_0x1f864f(0x177),'value':_0x1f864f(0x156)},{'name':_0x1f864f(0x17a),'value':_0x1f864f(0x181)}]},{'type':_0x1f864f(0x160),'name':_0x1f864f(0x173),'when':_0x4ff16b=>_0x1f864f(0x16d)===_0x4ff16b[_0x1f864f(0x159)],'message':_0x1f864f(0x164),'choices':[{'name':'Blank','value':_0x1f864f(0x155)},{'name':_0x1f864f(0x187),'value':'single-view'}]},{'type':_0x1f864f(0x160),'name':_0x1f864f(0x16e),'when':_0x4e782e=>_0x4e782e[_0x1f864f(0x16f)]&&_0x1f864f(0x16d)!==_0x4e782e[_0x1f864f(0x159)],'message':_0x1f864f(0x15d),'choices':[{'name':_0x1f864f(0x182),'value':!0x1},{'name':_0x1f864f(0x15b),'value':!0x0}]},{'type':_0x1f864f(0x178),'name':_0x1f864f(0x169),'message':_0x1f864f(0x15e),'when':_0x6ffb6b=>!0x0===_0x6ffb6b[_0x1f864f(0x16e)],'validate':_0x5a0184=>new Promise((_0x5cf024,_0x5119b8)=>{const _0x2a6701=_0x1f864f;let _0x3ffaef=_0x5a0184[_0x2a6701(0x17c)](/#/g,'');0x3===_0x3ffaef['length']||0x6===_0x3ffaef[_0x2a6701(0x167)]?_0x5cf024(!0x0):_0x5119b8(Error(_0x2a6701(0x18c)));}),'filter':_0x28395f=>_0x28395f[_0x1f864f(0x17c)](/#/g,'')},{'type':'list','name':_0x1f864f(0x189),'when':_0x1e9949=>_0x1e9949[_0x1f864f(0x16f)],'message':_0x1f864f(0x165)+a,'default':!0x1,'choices':[{'name':_0x1f864f(0x16c),'value':!0x1},{'name':'Yes,\x20I\x20want\x20to\x20get\x20more\x20options','value':!0x0}]},{'type':'list','name':_0x1f864f(0x16b),'when':_0x22de20=>_0x22de20[_0x1f864f(0x189)],'message':_0x1f864f(0x17f),'default':!0x0,'choices':[{'name':'Yes,\x20I\x20want\x20to\x20iclude\x20Tailwind\x20CSS','value':!0x0},{'name':'No','value':!0x1}]}];module[_0x1f864f(0x163)]=function(){const _0x2d3cd0=_0x1f864f;return e[_0x2d3cd0(0x168)](n)[_0x2d3cd0(0x17b)](_0x2b86dc=>(_0x2b86dc['theming']={'customColor':_0x2b86dc[_0x2d3cd0(0x16e)],'color':_0x2b86dc[_0x2d3cd0(0x16e)]&&_0x2b86dc[_0x2d3cd0(0x169)]?'#'+_0x2b86dc[_0x2d3cd0(0x169)]:_0x2d3cd0(0x171),'darkTheme':!0x1,'iconFonts':_0x2b86dc[_0x2d3cd0(0x162)],'fillBars':!0x1,'useUiKits':_0x2b86dc[_0x2d3cd0(0x186)]},_0x2b86dc[_0x2d3cd0(0x158)]=!0x1,_0x2b86dc[_0x2d3cd0(0x16b)]=_0x2b86dc[_0x2d3cd0(0x189)]&&_0x2b86dc[_0x2d3cd0(0x16b)],_0x2b86dc['stateManagement']||(_0x2b86dc[_0x2d3cd0(0x154)]=_0x2d3cd0(0x161)),_0x2d3cd0(0x16d)===_0x2b86dc[_0x2d3cd0(0x159)]&&(_0x2b86dc[_0x2d3cd0(0x154)]=_0x2d3cd0(0x15c)),delete _0x2b86dc[_0x2d3cd0(0x16e)],delete _0x2b86dc[_0x2d3cd0(0x169)],delete _0x2b86dc[_0x2d3cd0(0x162)],delete _0x2b86dc[_0x2d3cd0(0x186)],delete _0x2b86dc[_0x2d3cd0(0x189)],Promise[_0x2d3cd0(0x176)](_0x2b86dc)));};function _0x3677(_0x389462,_0x3048f2){const _0x330a87=_0x330a();return _0x3677=function(_0x3677ff,_0x2bb918){_0x3677ff=_0x3677ff-0x152;let _0x205955=_0x330a87[_0x3677ff];return _0x205955;},_0x3677(_0x389462,_0x3048f2);}function _0x330a(){const _0x531398=['React\x20Typescript','resolve','SCSS\x20(SASS)','input','Create\x20a\x20new\x20ZMP\x20project','Stylus','then','replace','REACT','4mBzUGK','Do\x20you\x20want\x20to\x20include\x20Tailwind\x20CSS?','1882320unjTdL','stylus','No,\x20use\x20default\x20color\x20theme','App\x20name\x20is\x20required','891hVVqTe','ReactJS','useUIKits','Single\x20View','49230vpHPzo','moreOptions','649617lLnmhc','inquirer','It\x20doesn\x27t\x20look\x20like\x20a\x20correct\x20HEX\x20number','Do\x20you\x20want\x20to\x20setup\x20CSS\x20Pre-Processor','1207451sFsZLs','3857970ThexJH','chalk','What\x20type\x20of\x20framework/library\x20do\x20you\x20prefer?','No,\x20i\x20am\x20good\x20with\x20CSS','Less','stateManagement','blank','scss','2zApqqQ','customBuild','package','less','Yes,\x20i\x20want\x20to\x20specify\x20my\x20brand\x20color','recoil','Do\x20you\x20want\x20to\x20specify\x20custom\x20theme\x20color?','Enter\x20custom\x20theme\x20color\x20in\x20HEX\x20format\x20(e.g.\x20ff0000)','REACT_TYPESCRIPT','list','store','themingIconFonts','exports','Choose\x20starter\x20template:','More\x20Options?\x0a','Choose\x20an\x20UI\x20library','length','prompt','themingColor','My\x20App','includeTailwind','No,\x20I\x20want\x20to\x20complete\x20initializing\x20process\x20now','zmp-ui','themingCustomColor','newProject','382528lhvtaG','#007aff','527874jljdjF','template','italic'];_0x330a=function(){return _0x531398;};return _0x330a();}
1
+ 'use strict';const _0x534895=_0x162b;(function(_0x167604,_0x251caf){const _0x3e8281=_0x162b,_0x4346e5=_0x167604();while(!![]){try{const _0x4dfb6d=-parseInt(_0x3e8281(0x1b0))/0x1*(-parseInt(_0x3e8281(0x199))/0x2)+-parseInt(_0x3e8281(0x1a0))/0x3*(parseInt(_0x3e8281(0x197))/0x4)+parseInt(_0x3e8281(0x19b))/0x5*(parseInt(_0x3e8281(0x19e))/0x6)+-parseInt(_0x3e8281(0x1a1))/0x7+-parseInt(_0x3e8281(0x192))/0x8+-parseInt(_0x3e8281(0x196))/0x9*(parseInt(_0x3e8281(0x18f))/0xa)+parseInt(_0x3e8281(0x1a5))/0xb;if(_0x4dfb6d===_0x251caf)break;else _0x4346e5['push'](_0x4346e5['shift']());}catch(_0x8d9c3d){_0x4346e5['push'](_0x4346e5['shift']());}}}(_0x346c,0x6f7a8));function _0x162b(_0x19b652,_0x5eb23a){const _0x346cbc=_0x346c();return _0x162b=function(_0x162be7,_0x35cb7d){_0x162be7=_0x162be7-0x18e;let _0x3801e3=_0x346cbc[_0x162be7];return _0x3801e3;},_0x162b(_0x19b652,_0x5eb23a);}const e=require(_0x534895(0x1a2)),r=require(_0x534895(0x1aa)),{INIT_TEMPLATES:a}=require(_0x534895(0x1a4)),t=[{'type':_0x534895(0x190),'name':_0x534895(0x19f),'message':_0x534895(0x195),'choices':[{'name':_0x534895(0x1af),'value':!0x0,'short':'New\x20project'},{'name':'Using\x20ZMP\x20to\x20deploy\x20only','value':!0x1,'short':'Existing\x20project'}]},{'type':'list','name':'template','when':_0x22dfa0=>_0x22dfa0[_0x534895(0x19f)],'message':'Choose\x20a\x20template:','choices':[...a[_0x534895(0x1a7)](_0x1844b6=>_0x1844b6[_0x534895(0x1ae)])[_0x534895(0x1ad)](_0x45a2e9=>({'name':_0x45a2e9[_0x534895(0x1a3)],'value':_0x45a2e9})),new e[(_0x534895(0x194))](),...a[_0x534895(0x1a7)](_0x2d05bf=>!_0x2d05bf[_0x534895(0x1ae)])[_0x534895(0x1ad)](_0x4977b7=>({'name':_0x4977b7['name'],'value':_0x4977b7}))]},{'type':_0x534895(0x198),'name':'name','message':_0x534895(0x191),'default':_0x138c07=>{const _0x358c69=_0x534895;let {template:_0x2c2cc2}=_0x138c07;return _0x2c2cc2&&!_0x2c2cc2['isBlank']?_0x358c69(0x1ab)+_0x2c2cc2[_0x358c69(0x1a3)][_0x358c69(0x19a)](_0x358c69(0x1a9),'')+_0x358c69(0x1a8):_0x358c69(0x18e);},'validate':_0xcbbd3=>new Promise((_0x80d130,_0x52c4ee)=>{_0xcbbd3?_0x80d130(!0x0):_0x52c4ee(Error('App\x20name\x20is\x20required'));})},{'type':_0x534895(0x198),'name':'folderName','when':_0xfb7619=>_0xfb7619[_0x534895(0x19f)],'message':'Folder\x20name:','suffix':'\x0a'+r[_0x534895(0x19d)](_0x534895(0x19c)),'default':_0x25b47e=>{const _0x100efa=_0x534895;let {name:_0x58b8e6}=_0x25b47e;return _0x58b8e6[_0x100efa(0x19a)](/ /g,'-')[_0x100efa(0x19a)](/[^a-zA-Z0-9-]/g,'')['toLowerCase']();},'validate':_0x8f5631=>new Promise((_0x2202d9,_0x432357)=>{_0x8f5631?_0x2202d9(!0x0):_0x432357(Error('Folder\x20name\x20is\x20required'));})}];module['exports']=function(){const _0x240da9=_0x534895;return e[_0x240da9(0x1ac)](t)[_0x240da9(0x1a6)](_0x1bfebd=>Promise[_0x240da9(0x193)](_0x1bfebd));};function _0x346c(){const _0x2191fc=['chalk','My\x20','prompt','map','isBlank','Create\x20a\x20new\x20ZMP\x20project','25891ijFWhv','My\x20App','795890ORcpsX','list','App\x20(project)\x20name:','2292808ODJJNN','resolve','Separator','What\x20action\x20you\x20want\x20to\x20do?','45COEVzO','4rFGUXf','input','4jjfDQM','replace','515hYsYnu','(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)','italic','2406jHslZQ','newProject','438603EOmkkj','1571395ExPSPc','inquirer','name','zmp-cli-core','15606393DWKdzy','then','filter','\x20App','ZaUI\x20'];_0x346c=function(){return _0x2191fc;};return _0x346c();}
@@ -1 +1 @@
1
- 'use strict';const _0x4160c0=_0x4ed9;(function(_0x32f0bf,_0x2a7a14){const _0x14b14c=_0x4ed9,_0x22aa0d=_0x32f0bf();while(!![]){try{const _0x1d5ad2=-parseInt(_0x14b14c(0x177))/0x1*(parseInt(_0x14b14c(0x171))/0x2)+-parseInt(_0x14b14c(0x173))/0x3+parseInt(_0x14b14c(0x189))/0x4+-parseInt(_0x14b14c(0x185))/0x5*(-parseInt(_0x14b14c(0x174))/0x6)+-parseInt(_0x14b14c(0x172))/0x7+parseInt(_0x14b14c(0x180))/0x8*(-parseInt(_0x14b14c(0x17f))/0x9)+parseInt(_0x14b14c(0x176))/0xa;if(_0x1d5ad2===_0x2a7a14)break;else _0x22aa0d['push'](_0x22aa0d['shift']());}catch(_0x580a42){_0x22aa0d['push'](_0x22aa0d['shift']());}}}(_0x392b,0xc99af));function _0x4ed9(_0x55083d,_0x1e5074){const _0x392b4e=_0x392b();return _0x4ed9=function(_0x4ed95c,_0x4145de){_0x4ed95c=_0x4ed95c-0x16e;let _0x15708e=_0x392b4e[_0x4ed95c];return _0x15708e;},_0x4ed9(_0x55083d,_0x1e5074);}const e={'d':_0x4160c0(0x188),'p':_0x4160c0(0x17a),'s':_0x4160c0(0x179),'v':_0x4160c0(0x18b),'r':'deploy','t':_0x4160c0(0x17b)};function s(_0x547bdd){const _0x2fc588=_0x4160c0;return _0x547bdd[_0x2fc588(0x182)]('_')[0x0][_0x2fc588(0x182)]('')[_0x2fc588(0x17d)](_0x5d4762=>e[_0x5d4762])[_0x2fc588(0x18a)]('-');}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':_0x4160c0(0x186)},'r':{'icon':'🙏','script':_0x4160c0(0x178),'description':_0x4160c0(0x187)}},'httpServer':{'v':{'icon':'🔧','script':_0x4160c0(0x17e),'description':'run\x20development\x20server'},'s':{'icon':'🔥','script':'npm\x20run\x20serve','description':_0x4160c0(0x186)}},'tailwind':{'t':{'icon':'🔧','script':_0x4160c0(0x175),'description':_0x4160c0(0x16f)}}};function _0x392b(){const _0x1d2407=['2517752XhyvED','httpServer','split','name','default','25EQaldT','run\x20development\x20server','deploy\x20mini\x20app\x20for\x20production','dev','4199364pzmaHk','join','serve','exports','build\x20tailwind\x20css','tailwind','2szOisP','5589444rgYdxL','998313MEUtpq','1259610OhlFOW','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','8983550fORdGH','726114kWPWsM','zmp\x20deploy','start','prod','build:css','keys','map','http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','9ybjWmK'];_0x392b=function(){return _0x1d2407;};return _0x392b();}Object[_0x4160c0(0x17c)](t[_0x4160c0(0x184)])['forEach'](_0x4a8a97=>{const _0x68a582=_0x4160c0;t[_0x68a582(0x184)][_0x4a8a97][_0x68a582(0x183)]=s(_0x4a8a97);}),Object[_0x4160c0(0x17c)](t[_0x4160c0(0x181)])['forEach'](_0x1c08c8=>{const _0xa9844a=_0x4160c0;t[_0xa9844a(0x181)][_0x1c08c8][_0xa9844a(0x183)]=s(_0x1c08c8);}),Object[_0x4160c0(0x17c)](t[_0x4160c0(0x170)])['forEach'](_0x353693=>{const _0xd6163f=_0x4160c0;t[_0xd6163f(0x170)][_0x353693]['name']=s(_0x353693);}),module[_0x4160c0(0x16e)]=t;
1
+ 'use strict';const _0x3964d2=_0x401a;(function(_0x337f84,_0x170f2c){const _0x13ff1d=_0x401a,_0x522a48=_0x337f84();while(!![]){try{const _0x21a9a7=-parseInt(_0x13ff1d(0x15e))/0x1+-parseInt(_0x13ff1d(0x15a))/0x2*(-parseInt(_0x13ff1d(0x157))/0x3)+parseInt(_0x13ff1d(0x16a))/0x4+-parseInt(_0x13ff1d(0x165))/0x5*(parseInt(_0x13ff1d(0x169))/0x6)+-parseInt(_0x13ff1d(0x172))/0x7+-parseInt(_0x13ff1d(0x15c))/0x8*(parseInt(_0x13ff1d(0x159))/0x9)+parseInt(_0x13ff1d(0x167))/0xa*(parseInt(_0x13ff1d(0x158))/0xb);if(_0x21a9a7===_0x170f2c)break;else _0x522a48['push'](_0x522a48['shift']());}catch(_0x2cbbd2){_0x522a48['push'](_0x522a48['shift']());}}}(_0x59cd,0x4a73c));function _0x401a(_0x5f6a31,_0x6b941b){const _0x59cd15=_0x59cd();return _0x401a=function(_0x401aec,_0x426dd0){_0x401aec=_0x401aec-0x155;let _0x4db776=_0x59cd15[_0x401aec];return _0x4db776;},_0x401a(_0x5f6a31,_0x6b941b);}function _0x59cd(){const _0x502b9f=['run\x20development\x20server','exports','forEach','npm\x20run\x20serve','serve','map','2590280fHHCNA','split','dev','build\x20tailwind\x20css','1749AHPZgs','2465441Pgaldb','1926hRiDlp','544zzIeeR','deploy','232zxIAvj','zmp\x20deploy','333134kboRPC','httpServer','zmp\x20start','name','prod','default','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','10QhmXKN','tailwind','30QIYDJL','start','1175442NycelZ','2300724DLKjDh','build:css'];_0x59cd=function(){return _0x502b9f;};return _0x59cd();}const e={'d':_0x3964d2(0x155),'p':_0x3964d2(0x162),'s':_0x3964d2(0x168),'v':_0x3964d2(0x170),'r':_0x3964d2(0x15b),'t':_0x3964d2(0x16b)};function s(_0x5588ce){const _0x3ca855=_0x3964d2;return _0x5588ce[_0x3ca855(0x173)]('_')[0x0][_0x3ca855(0x173)]('')[_0x3ca855(0x171)](_0x14b623=>e[_0x14b623])['join']('-');}const t={'default':{'s':{'icon':'🔥','script':_0x3964d2(0x160),'description':_0x3964d2(0x16c)},'r':{'icon':'🙏','script':_0x3964d2(0x15d),'description':'deploy\x20mini\x20app\x20for\x20production'}},'httpServer':{'v':{'icon':'🔧','script':'http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','description':'run\x20development\x20server'},'s':{'icon':'🔥','script':_0x3964d2(0x16f),'description':_0x3964d2(0x16c)}},'tailwind':{'t':{'icon':'🔧','script':_0x3964d2(0x164),'description':_0x3964d2(0x156)}}};Object['keys'](t[_0x3964d2(0x163)])[_0x3964d2(0x16e)](_0x178108=>{const _0x922731=_0x3964d2;t[_0x922731(0x163)][_0x178108][_0x922731(0x161)]=s(_0x178108);}),Object['keys'](t[_0x3964d2(0x15f)])[_0x3964d2(0x16e)](_0x2952b1=>{const _0x34fae6=_0x3964d2;t['httpServer'][_0x2952b1][_0x34fae6(0x161)]=s(_0x2952b1);}),Object['keys'](t[_0x3964d2(0x166)])[_0x3964d2(0x16e)](_0x104396=>{t['tailwind'][_0x104396]['name']=s(_0x104396);}),module[_0x3964d2(0x16d)]=t;
package/deploy/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x98bc04=_0x2fa1;(function(_0x55cc49,_0x20b9b3){const _0x1f60da=_0x2fa1,_0x4a9c39=_0x55cc49();while(!![]){try{const _0x249369=-parseInt(_0x1f60da(0x144))/0x1*(-parseInt(_0x1f60da(0x10e))/0x2)+-parseInt(_0x1f60da(0x13c))/0x3*(parseInt(_0x1f60da(0x129))/0x4)+-parseInt(_0x1f60da(0x10a))/0x5*(-parseInt(_0x1f60da(0x133))/0x6)+parseInt(_0x1f60da(0x142))/0x7+parseInt(_0x1f60da(0x10b))/0x8*(parseInt(_0x1f60da(0x10c))/0x9)+parseInt(_0x1f60da(0x105))/0xa+-parseInt(_0x1f60da(0x13f))/0xb;if(_0x249369===_0x20b9b3)break;else _0x4a9c39['push'](_0x4a9c39['shift']());}catch(_0x291063){_0x4a9c39['push'](_0x4a9c39['shift']());}}}(_0x4e15,0x674da));function _0x4e15(){const _0x4b1409=['\x20View\x20app\x20at:\x0a','\x20💪','log-symbols','cwd','3SZRJEd','../utils/fs-extra','memory','13495515AwPlEN','../utils/env','Update\x20app\x20with\x20new\x20version','171206mwulPr','compress','19PBcIjz','join','www','length','listSyncJS','5894500XapPSb','./utils/upload-app','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','filename','zmp','4735zpRLEJ','14848ewAKXW','2907dUIYHo','api_domain','1186mbxgZv','chalk','desc','statusError','../config','appConfig','error_msg','includes','identifier','forEach','data','Deploy\x20Done!','Version:','exit','app_config_not_found','info','Error\x20deploying\x20your\x20app','packageJson','green','nextVersion','appUrl','zip','entries','statusDone','gray','error','text','1037396JfOTbz','customProject','env','Deploying\x20Your\x20App\x20','stringify','writeFileSync','./utils/request-upload','token','title','bold','4338CtnmjO','path','zip-local','versionStatus','listAsyncJS'];_0x4e15=function(){return _0x4b1409;};return _0x4e15();}const e=require(_0x98bc04(0x10f)),t=require('path'),r=require(_0x98bc04(0x135)),i=require(_0x98bc04(0x13a)),a=require('qrcode-terminal'),s=require(_0x98bc04(0x112)),n=require('../build/index'),o=require(_0x98bc04(0x140)),p=require(_0x98bc04(0x106)),l=require(_0x98bc04(0x13d)),u=require(_0x98bc04(0x12f)),c=e[_0x98bc04(0x126)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),d={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};function _0x2fa1(_0x1d8113,_0x42bec3){const _0x4e15b8=_0x4e15();return _0x2fa1=function(_0x2fa14e,_0x2180dd){_0x2fa14e=_0x2fa14e-0x101;let _0xe356ae=_0x4e15b8[_0x2fa14e];return _0xe356ae;},_0x2fa1(_0x1d8113,_0x42bec3);}module['exports']=async(_0x4e1432={},_0x493c99=d,{exitOnError:_0x820e32=!0x0}={})=>{const _0x194e96=_0x98bc04;let _0x273800,_0x1e81f4,_0x3b59c8,_0x5ca6b5=_0x4e1432[_0x194e96(0x13b)]||process[_0x194e96(0x13b)](),_0x3d2f12=_0x4e1432['outputDir']||_0x194e96(0x102),_0x5c599a=s[_0x194e96(0x10d)],_0x4db6e3=_0x98788=>t[_0x194e96(0x101)](_0x5ca6b5,_0x98788);function _0x54b6cc(_0x269b27){const _0x14cc67=_0x194e96;_0x493c99[_0x14cc67(0x127)](_0x269b27['stderr']||_0x269b27),_0x820e32&&process[_0x14cc67(0x11b)](0x1);}let _0x23c154=o['getEnv'](s[_0x194e96(0x12b)][_0x194e96(0x130)]),_0x40cf39=s[_0x194e96(0x108)][_0x194e96(0x113)],_0x476582=s['filename'][_0x194e96(0x11f)],_0x19c003=!0x0;try{_0x273800=require(_0x4db6e3(_0x40cf39));}catch(_0x2a1fbf){try{_0x273800=require(_0x4db6e3(_0x3d2f12+'/'+_0x40cf39)),_0x19c003=!0x1;}catch(_0x5e3467){_0x54b6cc(Error(s[_0x194e96(0x114)][_0x194e96(0x11c)]));}}let _0x45fa61={};try{let _0x309862=require(_0x4db6e3(_0x476582))['dependencies'];Object[_0x194e96(0x124)](_0x309862)[_0x194e96(0x117)](([_0x1e9f2f,_0x468ef2])=>{const _0x1ffba1=_0x194e96;(_0x1e9f2f[_0x1ffba1(0x115)](_0x1ffba1(0x109))||_0x1e9f2f[_0x1ffba1(0x115)]('react'))&&(_0x45fa61[_0x1e9f2f]=_0x468ef2);});}catch(_0x341b58){}let _0x2d4a28={'appName':_0x273800['app'][_0x194e96(0x131)],'appDesc':_0x4e1432[_0x194e96(0x110)]||_0x194e96(0x141),'appConfig':JSON[_0x194e96(0x12d)](_0x273800),'frameworkVersions':JSON['stringify'](_0x45fa61)};try{let _0x302e53=''+_0x5c599a+s[_0x194e96(0x134)]['requestUploadResumable'],_0x4ed4db=await u(_0x302e53,_0x2d4a28,_0x4e1432[_0x194e96(0x136)],_0x23c154);_0x1e81f4=_0x4ed4db[_0x194e96(0x121)],_0x3b59c8=_0x4ed4db[_0x194e96(0x116)];}catch(_0x3a06fe){_0x54b6cc(_0x3a06fe);}if(_0x4e1432[_0x194e96(0x12a)]){let _0x46887b=0x0;_0x273800[_0x194e96(0x104)]&&_0x273800[_0x194e96(0x104)][_0x194e96(0x103)]>0x0&&(_0x46887b+=0x1),_0x273800[_0x194e96(0x137)]&&_0x273800['listAsyncJS'][_0x194e96(0x103)]>0x0&&(_0x46887b+=0x1),0x0===_0x46887b&&_0x54b6cc(Error(_0x194e96(0x107))),_0x19c003&&l[_0x194e96(0x12e)](_0x4db6e3(_0x3d2f12+'/'+s[_0x194e96(0x108)][_0x194e96(0x113)]),JSON[_0x194e96(0x12d)](_0x273800));}else _0x273800=await n({..._0x4e1432,'appConfigJson':_0x273800,'nextVersion':_0x1e81f4},_0x493c99);_0x493c99['statusStart'](_0x194e96(0x12c)+c);try{let _0x16cd3b=await new Promise((_0x3b97b6,_0x5485a9)=>{const _0x2bf2d0=_0x194e96;r[_0x2bf2d0(0x123)](_0x4db6e3(_0x3d2f12),function(_0x347e2d,_0x151ec2){const _0x50ebc7=_0x2bf2d0;return _0x347e2d?_0x5485a9(_0x347e2d):(_0x151ec2[_0x50ebc7(0x143)](),_0x3b97b6(_0x151ec2[_0x50ebc7(0x13e)]()));});}),_0x2c6bf2={..._0x2d4a28,'appBuffer':_0x16cd3b,'identifier':_0x3b59c8},_0x1f7bd0=await p(_0x2c6bf2,_0x4e1432,_0x493c99),_0x2d66aa=_0x1f7bd0&&_0x1f7bd0['data']&&_0x1f7bd0[_0x194e96(0x118)][_0x194e96(0x122)];a['generate'](_0x2d66aa,{'small':!0x0},function(_0x585862){const _0x18cfcd=_0x194e96;let _0x262baa=''+e['bold'](i[_0x18cfcd(0x11d)]+_0x18cfcd(0x138)+_0x585862);_0x493c99[_0x18cfcd(0x125)](e[_0x18cfcd(0x132)][_0x18cfcd(0x120)](_0x18cfcd(0x119))+_0x18cfcd(0x139)),_0x493c99['statusDone'](e['bold']['green'](_0x18cfcd(0x11a))+'\x20'+_0x1e81f4),_0x493c99[_0x18cfcd(0x128)](_0x262baa);});}catch(_0x177c37){_0x493c99[_0x194e96(0x111)](_0x194e96(0x11e)),_0x54b6cc(_0x177c37);}};
1
+ 'use strict';function _0x5a7f(_0x5e8807,_0x2cc1e2){const _0x260490=_0x2604();return _0x5a7f=function(_0x5a7f06,_0x3764d3){_0x5a7f06=_0x5a7f06-0x17f;let _0x5d453c=_0x260490[_0x5a7f06];return _0x5d453c;},_0x5a7f(_0x5e8807,_0x2cc1e2);}const _0x379bbf=_0x5a7f;(function(_0x5439ee,_0x170389){const _0x383dc9=_0x5a7f,_0x12a863=_0x5439ee();while(!![]){try{const _0x2c225c=parseInt(_0x383dc9(0x1a1))/0x1+-parseInt(_0x383dc9(0x1b7))/0x2*(parseInt(_0x383dc9(0x1bb))/0x3)+-parseInt(_0x383dc9(0x190))/0x4*(-parseInt(_0x383dc9(0x1b9))/0x5)+-parseInt(_0x383dc9(0x1ae))/0x6+-parseInt(_0x383dc9(0x1a8))/0x7*(parseInt(_0x383dc9(0x189))/0x8)+parseInt(_0x383dc9(0x187))/0x9+parseInt(_0x383dc9(0x198))/0xa;if(_0x2c225c===_0x170389)break;else _0x12a863['push'](_0x12a863['shift']());}catch(_0x186366){_0x12a863['push'](_0x12a863['shift']());}}}(_0x2604,0xc584f));const e=require(_0x379bbf(0x184)),t=require(_0x379bbf(0x18c)),r=require('zip-local'),i=require(_0x379bbf(0x19b)),a=require('qrcode-terminal'),s=require('../config'),n=require(_0x379bbf(0x19f)),o=require('../utils/env'),{errorExit:l}=require(_0x379bbf(0x18a)),p=require(_0x379bbf(0x1b8)),u=require(_0x379bbf(0x1a0)),c=require('./utils/request-upload'),d=e[_0x379bbf(0x1b4)](_0x379bbf(0x18d)),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};module[_0x379bbf(0x199)]=async(_0x14e8ab={},_0x27b6af=f)=>{const _0x1dd88a=_0x379bbf;let _0x5c59a6,_0x210a22,_0x10bd15,_0x297ec0=_0x14e8ab[_0x1dd88a(0x1b5)]||process[_0x1dd88a(0x1b5)](),_0x33e1ab=_0x14e8ab[_0x1dd88a(0x18f)]||_0x1dd88a(0x19e),_0x157678=s[_0x1dd88a(0x186)],_0x8267e9=_0x3bddde=>t[_0x1dd88a(0x192)](_0x297ec0,_0x3bddde),_0x4b3492=o[_0x1dd88a(0x180)](s[_0x1dd88a(0x193)]['token']),_0xf1428e=s[_0x1dd88a(0x194)][_0x1dd88a(0x1ad)],_0x350c2c=s['filename'][_0x1dd88a(0x17f)],_0x3f459e=!0x0;try{_0x5c59a6=require(_0x8267e9(_0xf1428e));}catch(_0x37c0ff){try{_0x5c59a6=require(_0x8267e9(_0x33e1ab+'/'+_0xf1428e)),_0x3f459e=!0x1;}catch(_0x2425ef){l(Error(s['error_msg']['app_config_not_found']));}}let _0x169a1b={};try{let _0x4ec418=require(_0x8267e9(_0x350c2c))[_0x1dd88a(0x182)];Object[_0x1dd88a(0x1a6)](_0x4ec418)[_0x1dd88a(0x1a5)](([_0xb6663f,_0x51d3b5])=>{const _0x5e681d=_0x1dd88a;(_0xb6663f[_0x5e681d(0x181)](_0x5e681d(0x1b6))||_0xb6663f[_0x5e681d(0x181)]('react'))&&(_0x169a1b[_0xb6663f]=_0x51d3b5);});}catch(_0x1233f8){}let _0x3549f1={'appName':_0x5c59a6['app'][_0x1dd88a(0x1a9)],'appDesc':_0x14e8ab[_0x1dd88a(0x191)]||_0x1dd88a(0x1b3),'appConfig':JSON['stringify'](_0x5c59a6),'frameworkVersions':JSON['stringify'](_0x169a1b)};try{let _0x2b7a91=''+_0x157678+s[_0x1dd88a(0x18c)][_0x1dd88a(0x183)],_0xbe47c8=await c(_0x2b7a91,_0x3549f1,_0x14e8ab['versionStatus'],_0x4b3492);_0x210a22=_0xbe47c8[_0x1dd88a(0x188)],_0x10bd15=_0xbe47c8['identifier'];}catch(_0x59c2ea){l(_0x59c2ea);}if(_0x14e8ab['customProject']){let _0x107e03=0x0;_0x5c59a6[_0x1dd88a(0x1a3)]&&_0x5c59a6['listSyncJS'][_0x1dd88a(0x1ac)]>0x0&&(_0x107e03+=0x1),_0x5c59a6[_0x1dd88a(0x18e)]&&_0x5c59a6[_0x1dd88a(0x18e)][_0x1dd88a(0x1ac)]>0x0&&(_0x107e03+=0x1),0x0===_0x107e03&&l(Error(_0x1dd88a(0x195))),_0x3f459e&&u[_0x1dd88a(0x1b0)](_0x8267e9(_0x33e1ab+'/'+s[_0x1dd88a(0x194)]['appConfig']),JSON['stringify'](_0x5c59a6));}else _0x5c59a6=await n({..._0x14e8ab,'appConfigJson':_0x5c59a6,'nextVersion':_0x210a22},_0x27b6af);_0x27b6af[_0x1dd88a(0x1bc)](_0x1dd88a(0x1aa)+d);try{let _0x40ac80=await new Promise((_0x31995a,_0x513aa0)=>{const _0x18e917=_0x1dd88a;r[_0x18e917(0x19a)](_0x8267e9(_0x33e1ab),function(_0xd587ff,_0x80abdf){const _0x53cbc6=_0x18e917;return _0xd587ff?_0x513aa0(_0xd587ff):(_0x80abdf[_0x53cbc6(0x1ab)](),_0x31995a(_0x80abdf[_0x53cbc6(0x19c)]()));});}),_0x130a0b={..._0x3549f1,'appBuffer':_0x40ac80,'identifier':_0x10bd15},_0x1979d7=await p(_0x130a0b,_0x14e8ab,_0x27b6af),_0x8917c2=_0x1979d7&&_0x1979d7[_0x1dd88a(0x1a2)]&&_0x1979d7[_0x1dd88a(0x1a2)][_0x1dd88a(0x18b)];a[_0x1dd88a(0x19d)](_0x8917c2,{'small':!0x0},function(_0x55c9a7){const _0x5b74af=_0x1dd88a;let _0x3a5319=''+e[_0x5b74af(0x1ba)](i[_0x5b74af(0x196)]+_0x5b74af(0x1b1)+_0x55c9a7);_0x27b6af[_0x5b74af(0x197)](e[_0x5b74af(0x1ba)][_0x5b74af(0x1b2)](_0x5b74af(0x1af))+_0x5b74af(0x185)),_0x27b6af[_0x5b74af(0x197)](e[_0x5b74af(0x1ba)][_0x5b74af(0x1b2)](_0x5b74af(0x1a7))+'\x20'+_0x210a22),_0x27b6af['text'](_0x3a5319);});}catch(_0x5bf9f4){_0x27b6af['statusError'](_0x1dd88a(0x1a4)),l(_0x5bf9f4);}};function _0x2604(){const _0x439907=['requestUploadResumable','chalk','\x20💪','api_domain','5954166CNPIUA','nextVersion','8FkOnJk','../utils/error','appUrl','path','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','listAsyncJS','outputDir','404236FrrTcs','desc','join','env','filename','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','info','statusDone','6375200UOLhHP','exports','zip','log-symbols','memory','generate','www','../build/index','../utils/fs-extra','904741dLpbCG','data','listSyncJS','Error\x20deploying\x20your\x20app','forEach','entries','Version:','6502405ITJjGM','title','Deploying\x20Your\x20App\x20','compress','length','appConfig','3332808ngQiYN','Deploy\x20Done!','writeFileSync','\x20View\x20app\x20at:\x0a','green','Update\x20app\x20with\x20new\x20version','gray','cwd','zmp','206SEpHhg','./utils/upload-app','25rVFMDO','bold','12108fkmEjZ','statusStart','packageJson','getEnv','includes','dependencies'];_0x2604=function(){return _0x439907;};return _0x2604();}
@@ -1 +1 @@
1
- 'use strict';const _0x2156aa=_0x2c1c;(function(_0x67689e,_0x1e5002){const _0x2f2439=_0x2c1c,_0x3279a9=_0x67689e();while(!![]){try{const _0x341e26=parseInt(_0x2f2439(0x1a6))/0x1*(parseInt(_0x2f2439(0x1ae))/0x2)+parseInt(_0x2f2439(0x1aa))/0x3*(-parseInt(_0x2f2439(0x1bb))/0x4)+-parseInt(_0x2f2439(0x1b0))/0x5+-parseInt(_0x2f2439(0x1ba))/0x6+-parseInt(_0x2f2439(0x1a0))/0x7*(parseInt(_0x2f2439(0x1b7))/0x8)+-parseInt(_0x2f2439(0x19c))/0x9+parseInt(_0x2f2439(0x1a4))/0xa*(parseInt(_0x2f2439(0x1b6))/0xb);if(_0x341e26===_0x1e5002)break;else _0x3279a9['push'](_0x3279a9['shift']());}catch(_0x4aaf8a){_0x3279a9['push'](_0x3279a9['shift']());}}}(_0x4960,0xa1a86));function _0x2c1c(_0xbdbec6,_0x335c4b){const _0x4960d2=_0x4960();return _0x2c1c=function(_0x2c1c4c,_0x4e0847){_0x2c1c4c=_0x2c1c4c-0x19c;let _0x4cdf04=_0x4960d2[_0x2c1c4c];return _0x4cdf04;},_0x2c1c(_0xbdbec6,_0x335c4b);}function _0x4960(){const _0x13528e=['versionStatus','../../utils/constants','Quit','25541030oKNoFn','length','826iwzrlY','What\x20version\x20status\x20are\x20you\x20deploying?','inquirer','lodash','27LNaWMh','then','input','prompt','122LaAtqy','map','2690745GdYKpD','Description:','www','keys','Where\x20is\x20your\x20dist\x20folder?','quit','22BVkYud','1360Kpzwpc','outputDir','list','5667498LszkmC','580292WvIaoB','Description\x20is\x20required!','capitalize','7711767JUYEBW','Server\x20type\x20is\x20required!','Deploy\x20your\x20existing\x20project','customProject','35049CwMMZR'];_0x4960=function(){return _0x13528e;};return _0x4960();}const e=require(_0x2156aa(0x1a8)),{versionStatus:t}=require(_0x2156aa(0x1a2)),i=require(_0x2156aa(0x1a9)),r=[{'type':_0x2156aa(0x1b9),'name':_0x2156aa(0x1a1),'message':_0x2156aa(0x1a7),'choices':Object[_0x2156aa(0x1b3)](t)[_0x2156aa(0x1af)](_0x314abb=>({'name':i[_0x2156aa(0x1bd)](_0x314abb),'value':t[_0x314abb]})),'when':_0x44a0ea=>!_0x44a0ea['quit'],'validate':_0x182465=>new Promise((_0x7e3a87,_0x407e48)=>{const _0x1b6730=_0x2156aa;_0x182465&&_0x182465['length']?_0x7e3a87(!0x0):_0x407e48(Error(_0x1b6730(0x19d)));})},{'type':_0x2156aa(0x1ac),'name':'desc','message':_0x2156aa(0x1b1),'when':_0x30b586=>!_0x30b586[_0x2156aa(0x1b5)],'validate':_0x4c4803=>new Promise((_0xc55e29,_0x268cd1)=>{const _0x46aae2=_0x2156aa;_0x4c4803&&_0x4c4803[_0x46aae2(0x1a5)]?_0xc55e29(!0x0):_0x268cd1(Error(_0x46aae2(0x1bc)));})}],s=[{'type':'list','name':'quit','message':'This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','choices':[{'name':_0x2156aa(0x19e),'value':!0x1},{'name':_0x2156aa(0x1a3),'value':!0x0}]},{'type':_0x2156aa(0x1ac),'name':_0x2156aa(0x1b8),'message':_0x2156aa(0x1b4),'when':_0x3d0ecb=>!_0x3d0ecb['quit'],'default':_0x2156aa(0x1b2)}];module['exports']=async function(_0x4ad309){const _0x358d7b=_0x2156aa;let _0x246166=_0x4ad309?[...r]:[...s,...r];return e[_0x358d7b(0x1ad)](_0x246166)[_0x358d7b(0x1ab)](_0x328022=>(_0x328022[_0x358d7b(0x19f)]=!0x1,!0x1===_0x328022['quit']&&(_0x328022[_0x358d7b(0x19f)]=!0x0),Promise['resolve'](_0x328022)));};
1
+ 'use strict';function _0x1c09(_0x46dc20,_0x5d2e3b){const _0x110546=_0x1105();return _0x1c09=function(_0x1c09b1,_0x98672b){_0x1c09b1=_0x1c09b1-0x165;let _0x5cd829=_0x110546[_0x1c09b1];return _0x5cd829;},_0x1c09(_0x46dc20,_0x5d2e3b);}function _0x1105(){const _0x9a39f6=['Description\x20is\x20required!','resolve','desc','Description:','21540BNySKg','Deploy\x20your\x20existing\x20project','Quit','map','Server\x20type\x20is\x20required!','../../utils/constants','exports','900183uxhPoN','versionStatus','4638tgopNA','inquirer','1390jbtzPo','14994177yxWcPK','20331HwMSlA','59rSusmb','10MdNtzN','input','904AfBGgS','2999290BJfauc','length','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','outputDir','1744488xCHEdf','list','customProject','quit'];_0x1105=function(){return _0x9a39f6;};return _0x1105();}const _0x3ab1f2=_0x1c09;(function(_0x194709,_0x27607b){const _0x1e85b5=_0x1c09,_0x2e5bb3=_0x194709();while(!![]){try{const _0x382fda=parseInt(_0x1e85b5(0x172))/0x1*(-parseInt(_0x1e85b5(0x182))/0x2)+-parseInt(_0x1e85b5(0x16b))/0x3+parseInt(_0x1e85b5(0x17a))/0x4+parseInt(_0x1e85b5(0x16f))/0x5*(parseInt(_0x1e85b5(0x16d))/0x6)+-parseInt(_0x1e85b5(0x176))/0x7+parseInt(_0x1e85b5(0x175))/0x8*(-parseInt(_0x1e85b5(0x171))/0x9)+parseInt(_0x1e85b5(0x173))/0xa*(parseInt(_0x1e85b5(0x170))/0xb);if(_0x382fda===_0x27607b)break;else _0x2e5bb3['push'](_0x2e5bb3['shift']());}catch(_0x426557){_0x2e5bb3['push'](_0x2e5bb3['shift']());}}}(_0x1105,0x6068f));const e=require(_0x3ab1f2(0x16e)),{versionStatus:t}=require(_0x3ab1f2(0x169)),i=require('lodash'),r=[{'type':_0x3ab1f2(0x17b),'name':_0x3ab1f2(0x16c),'message':'What\x20version\x20status\x20are\x20you\x20deploying?','choices':Object['keys'](t)[_0x3ab1f2(0x167)](_0x56fd9c=>({'name':i['capitalize'](_0x56fd9c),'value':t[_0x56fd9c]})),'when':_0x3ad402=>!_0x3ad402['quit'],'validate':_0x3a6001=>new Promise((_0x4d1005,_0x9a91b3)=>{const _0x388824=_0x3ab1f2;_0x3a6001&&_0x3a6001[_0x388824(0x177)]?_0x4d1005(!0x0):_0x9a91b3(Error(_0x388824(0x168)));})},{'type':_0x3ab1f2(0x174),'name':_0x3ab1f2(0x180),'message':_0x3ab1f2(0x181),'when':_0x834b59=>!_0x834b59[_0x3ab1f2(0x17d)],'validate':_0x25b992=>new Promise((_0x54925e,_0x4f4f68)=>{const _0x529427=_0x3ab1f2;_0x25b992&&_0x25b992[_0x529427(0x177)]?_0x54925e(!0x0):_0x4f4f68(Error(_0x529427(0x17e)));})}],s=[{'type':_0x3ab1f2(0x17b),'name':'quit','message':_0x3ab1f2(0x178),'choices':[{'name':_0x3ab1f2(0x165),'value':!0x1},{'name':_0x3ab1f2(0x166),'value':!0x0}]},{'type':_0x3ab1f2(0x174),'name':_0x3ab1f2(0x179),'message':'Where\x20is\x20your\x20dist\x20folder?','when':_0x52ef41=>!_0x52ef41[_0x3ab1f2(0x17d)],'default':'www'}];module[_0x3ab1f2(0x16a)]=async function(_0x5701f4){const _0x4c68cc=_0x3ab1f2;let _0x21063e=_0x5701f4?[...r]:[...s,...r];return e['prompt'](_0x21063e)['then'](_0x16d6b0=>(_0x16d6b0[_0x4c68cc(0x17c)]=!0x1,!0x1===_0x16d6b0[_0x4c68cc(0x17d)]&&(_0x16d6b0[_0x4c68cc(0x17c)]=!0x0),Promise[_0x4c68cc(0x17f)](_0x16d6b0)));};
@@ -1 +1 @@
1
- 'use strict';const _0x1789ac=_0x3bd0;(function(_0x29b58a,_0x22616b){const _0x36157f=_0x3bd0,_0x2ebc6a=_0x29b58a();while(!![]){try{const _0x18d73c=-parseInt(_0x36157f(0x144))/0x1+parseInt(_0x36157f(0x13a))/0x2*(-parseInt(_0x36157f(0x14c))/0x3)+parseInt(_0x36157f(0x148))/0x4*(parseInt(_0x36157f(0x14d))/0x5)+parseInt(_0x36157f(0x13c))/0x6*(parseInt(_0x36157f(0x147))/0x7)+-parseInt(_0x36157f(0x13e))/0x8*(-parseInt(_0x36157f(0x13b))/0x9)+-parseInt(_0x36157f(0x14e))/0xa*(-parseInt(_0x36157f(0x146))/0xb)+parseInt(_0x36157f(0x14a))/0xc*(parseInt(_0x36157f(0x142))/0xd);if(_0x18d73c===_0x22616b)break;else _0x2ebc6a['push'](_0x2ebc6a['shift']());}catch(_0x4a0e5a){_0x2ebc6a['push'](_0x2ebc6a['shift']());}}}(_0x4844,0x6bc87));const {axiosClient:r}=require('../../utils/axios'),e=require('../../config'),i=async(_0x2c50f1,_0x327cc2,_0x1600e8,_0x3fb5bd)=>{const _0x161d33=_0x3bd0;let {appName:_0x32db1b,appDesc:_0x4b032e,appConfig:_0x87a84,frameworkVersions:_0x49dcea}=_0x327cc2,_0x5ea28f={'Authorization':_0x161d33(0x141)+_0x3fb5bd,'cache-control':_0x161d33(0x13d)},_0x27be06=(await r[_0x161d33(0x149)](_0x2c50f1,{'params':{'name':_0x32db1b,'desc':_0x4b032e,'config':_0x87a84,'versionStatus':_0x1600e8,'frameworkVersions':_0x49dcea},'headers':_0x5ea28f,'withCredentials':!0x0}))[_0x161d33(0x14b)];if(!_0x27be06||_0x27be06[_0x161d33(0x13f)]<0x0){if(_0x27be06&&_0x27be06[_0x161d33(0x13f)]===e[_0x161d33(0x14f)][_0x161d33(0x145)])throw Error(e[_0x161d33(0x143)][_0x161d33(0x145)]);throw Error(JSON['stringify'](_0x27be06));}return _0x27be06[_0x161d33(0x14b)];};function _0x3bd0(_0x557eab,_0x97530b){const _0x4844fc=_0x4844();return _0x3bd0=function(_0x3bd015,_0x52fae6){_0x3bd015=_0x3bd015-0x13a;let _0x1e71c1=_0x4844fc[_0x3bd015];return _0x1e71c1;},_0x3bd0(_0x557eab,_0x97530b);}function _0x4844(){const _0x5a4e30=['36588FTKPub','data','3lCvxWJ','8035njOzZH','1250stZNFD','error_code','771186CBinPV','891477GaRMci','68838ehqpeq','no-cache','8JNkbdB','err','exports','Bearer\x20','195YtyToW','error_msg','829378lCuefM','permission_denied','26972GsVgKf','399ngBudb','1372cEotLx','get'];_0x4844=function(){return _0x5a4e30;};return _0x4844();}module[_0x1789ac(0x140)]=i;
1
+ 'use strict';function _0x1e4f(){const _0xad98f7=['Bearer\x20','no-cache','703464YSmYqn','11DtFLRQ','282OlXAsh','2636523eajAjs','err','data','13AjJyFM','10xCVyyV','1403504OXAcXy','../../utils/axios','2InHKdU','2411628cHeNCx','7lwZcLr','11357696AuedDE','error_msg','14155oDkNJm','8VrGKen','error_code','7859853BDuFZr'];_0x1e4f=function(){return _0xad98f7;};return _0x1e4f();}const _0x121d19=_0x131b;(function(_0xe3dd53,_0x549eae){const _0x3668b1=_0x131b,_0x4a968f=_0xe3dd53();while(!![]){try{const _0x1afae4=parseInt(_0x3668b1(0x16f))/0x1*(parseInt(_0x3668b1(0x179))/0x2)+-parseInt(_0x3668b1(0x172))/0x3*(-parseInt(_0x3668b1(0x17f))/0x4)+-parseInt(_0x3668b1(0x17e))/0x5*(-parseInt(_0x3668b1(0x171))/0x6)+-parseInt(_0x3668b1(0x17b))/0x7*(-parseInt(_0x3668b1(0x177))/0x8)+parseInt(_0x3668b1(0x16c))/0x9*(-parseInt(_0x3668b1(0x176))/0xa)+-parseInt(_0x3668b1(0x170))/0xb*(parseInt(_0x3668b1(0x17a))/0xc)+parseInt(_0x3668b1(0x175))/0xd*(-parseInt(_0x3668b1(0x17c))/0xe);if(_0x1afae4===_0x549eae)break;else _0x4a968f['push'](_0x4a968f['shift']());}catch(_0x2d49d6){_0x4a968f['push'](_0x4a968f['shift']());}}}(_0x1e4f,0xd7d7b));function _0x131b(_0xe54fa7,_0x11e3fd){const _0x1e4fa1=_0x1e4f();return _0x131b=function(_0x131b72,_0x3f97f0){_0x131b72=_0x131b72-0x16c;let _0x4ecc90=_0x1e4fa1[_0x131b72];return _0x4ecc90;},_0x131b(_0xe54fa7,_0x11e3fd);}const {axiosClient:r}=require(_0x121d19(0x178)),e=require('../../config'),i=async(_0x53df0e,_0x177d28,_0x538ad5,_0x16c879)=>{const _0x57259b=_0x121d19;let {appName:_0x193319,appDesc:_0x31bde0,appConfig:_0x4c2fdc,frameworkVersions:_0xcc866e}=_0x177d28,_0xa830ef={'Authorization':_0x57259b(0x16d)+_0x16c879,'cache-control':_0x57259b(0x16e)},_0x5a0df5=(await r['get'](_0x53df0e,{'params':{'name':_0x193319,'desc':_0x31bde0,'config':_0x4c2fdc,'versionStatus':_0x538ad5,'frameworkVersions':_0xcc866e},'headers':_0xa830ef,'withCredentials':!0x0}))[_0x57259b(0x174)];if(!_0x5a0df5||_0x5a0df5['err']<0x0){if(_0x5a0df5&&_0x5a0df5[_0x57259b(0x173)]===e[_0x57259b(0x180)]['permission_denied'])throw Error(e[_0x57259b(0x17d)]['permission_denied']);throw Error(JSON['stringify'](_0x5a0df5));}return _0x5a0df5['data'];};module['exports']=i;
@@ -1 +1 @@
1
- 'use strict';const _0xc6b83f=_0x13b5;function _0x13b5(_0x133dfe,_0x18d5da){const _0x3f8c85=_0x3f8c();return _0x13b5=function(_0x13b523,_0xc31df1){_0x13b523=_0x13b523-0x17e;let _0x22b26f=_0x3f8c85[_0x13b523];return _0x22b26f;},_0x13b5(_0x133dfe,_0x18d5da);}(function(_0x54de23,_0x3f0370){const _0x4f2c8e=_0x13b5,_0x443653=_0x54de23();while(!![]){try{const _0x214b76=-parseInt(_0x4f2c8e(0x193))/0x1*(-parseInt(_0x4f2c8e(0x181))/0x2)+-parseInt(_0x4f2c8e(0x1ae))/0x3*(parseInt(_0x4f2c8e(0x18d))/0x4)+-parseInt(_0x4f2c8e(0x185))/0x5*(-parseInt(_0x4f2c8e(0x194))/0x6)+parseInt(_0x4f2c8e(0x199))/0x7*(parseInt(_0x4f2c8e(0x19f))/0x8)+parseInt(_0x4f2c8e(0x1a1))/0x9*(-parseInt(_0x4f2c8e(0x191))/0xa)+parseInt(_0x4f2c8e(0x19b))/0xb+parseInt(_0x4f2c8e(0x1af))/0xc;if(_0x214b76===_0x3f0370)break;else _0x443653['push'](_0x443653['shift']());}catch(_0x19ffa4){_0x443653['push'](_0x443653['shift']());}}}(_0x3f8c,0x92aab));const r=require(_0xc6b83f(0x1a0)),e=require(_0xc6b83f(0x190)),n=require('../../config'),o=require('../../utils/env'),t=require(_0xc6b83f(0x18b))[_0xc6b83f(0x18c)],a=require(_0xc6b83f(0x197)),u=require('lodash');function _0x3f8c(){const _0x193f1e=['1058740qnvhjH','getEnv','token','chalk','30DSHPOL','parse','1TnOKWs','8586sJhEHI','fileError','Does\x20not\x20support\x20upload\x20app','form-data','round','399HCMrNy','resumable_option','1780878CMFUnz','config','Error\x20upload\x20app:\x20cancel','Bearer\x20','65080BGAmSm','../../utils/resumable','2533140BIHijj','path','upload','join','exports','isNumber','env','addFile','progress','append','fileSuccess','support','err','6CXJlqM','633360RBzZxi','name','Error\x20upload\x20app:\x20','fileProgress','686156ztonuj','cancel','complete','Deploying\x20Your\x20App\x20','3330kWNyCx','uploadAppByChunk','desc','fileAdded','gray','statusText','file-api','File'];_0x3f8c=function(){return _0x193f1e;};return _0x3f8c();}module[_0xc6b83f(0x1a5)]=async function(_0x190bdf,_0x4bebb4,_0x2330e3){const _0xab832f=_0xc6b83f;let _0x7a2c8e=n['api_domain'],_0x3b766c=''+_0x7a2c8e+n[_0xab832f(0x1a2)][_0xab832f(0x186)],{appName:_0xfeba38,appDesc:_0x52d4fe,appBuffer:_0x112785,appConfig:_0xab7855,identifier:_0x18c373}=_0x190bdf,_0x10a5ef=o[_0xab832f(0x18e)](n[_0xab832f(0x1a7)][_0xab832f(0x18f)]),_0x2c26f6=new r({...n[_0xab832f(0x19a)],'target':_0x3b766c,'headers':{'Authorization':_0xab832f(0x19e)+_0x10a5ef},'generateUniqueIdentifier':()=>_0x18c373}),_0x57059c=new a();if(_0x57059c[_0xab832f(0x1aa)]('zipFile',_0x112785),_0x57059c[_0xab832f(0x1aa)](_0xab832f(0x17e),_0xfeba38),_0x57059c[_0xab832f(0x1aa)](_0xab832f(0x187),_0x52d4fe),_0x57059c['append'](_0xab832f(0x19c),_0xab7855),_0x2c26f6[_0xab832f(0x1ac)])return _0x2c26f6['on'](_0xab832f(0x180),function(_0x1dc8ea){const _0x12773f=_0xab832f;let _0x132b32=Array(Math[_0x12773f(0x198)](0x64*_0x1dc8ea[_0x12773f(0x1a9)]())%0x65+0x1)[_0x12773f(0x1a4)]('|');_0x2330e3[_0x12773f(0x18a)](_0x12773f(0x184)+e[_0x12773f(0x189)]('\x0a'+_0x132b32+'\x20'+Math[_0x12773f(0x198)](0x64*_0x1dc8ea['progress']())+'%'));}),await new Promise((_0x4dbea7,_0x17c6d8)=>{const _0x112a93=_0xab832f;try{var _0x3f5e50=new t({'name':'www.zip','buffer':_0x112785});_0x2c26f6['on'](_0x112a93(0x188),function(){const _0x2457d7=_0x112a93;_0x2c26f6[_0x2457d7(0x1a3)]();}),_0x2c26f6['on'](_0x112a93(0x183),function(){return _0x4dbea7();}),_0x2c26f6['on'](_0x112a93(0x195),function(_0x36ff12,_0x16b348){const _0x546ee6=_0x112a93;return _0x17c6d8(Error(_0x546ee6(0x17f)+_0x16b348));}),_0x2c26f6['on'](_0x112a93(0x182),function(){const _0x2b99c4=_0x112a93;return _0x17c6d8(Error(_0x2b99c4(0x19d)));}),_0x2c26f6['on'](_0x112a93(0x1ab),function(_0x3d603e,_0x3d888a){const _0x292c78=_0x112a93;let _0x3a9077=JSON[_0x292c78(0x192)](_0x3d888a);return u[_0x292c78(0x1a6)](_0x3a9077[_0x292c78(0x1ad)])&&_0x3a9077[_0x292c78(0x1ad)]<0x0?_0x17c6d8(Error('Error\x20upload\x20app:\x20'+_0x3d888a)):_0x4dbea7(_0x3a9077);}),_0x2c26f6[_0x112a93(0x1a8)](_0x3f5e50);}catch(_0x1e2de5){return _0x17c6d8(_0x1e2de5);}});_0x2330e3['statusError'](_0xab832f(0x196));};
1
+ 'use strict';function _0xbdc5(){const _0x32733b=['parse','50942DOayjW','8HIbrrv','token','../../config','277480qLFvKH','join','path','18NAPFuk','append','statusText','6rrkLJC','addFile','Bearer\x20','support','round','5731579eSGiru','612DUKwWG','exports','api_domain','fileError','Error\x20upload\x20app:\x20cancel','complete','config','Does\x20not\x20support\x20upload\x20app','../../utils/resumable','../../utils/env','gray','statusError','www.zip','env','chalk','form-data','2037708SFVGiX','fileProgress','508565VBHucg','resumable_option','desc','name','lodash','Error\x20upload\x20app:\x20','uploadAppByChunk','fileAdded','10641kkFeWc','fileSuccess','file-api','isNumber','err','Deploying\x20Your\x20App\x20','progress','15960461joHyuc'];_0xbdc5=function(){return _0x32733b;};return _0xbdc5();}const _0x1bdaa4=_0x447a;(function(_0x32eed6,_0x568a24){const _0x29b5a6=_0x447a,_0x185b1f=_0x32eed6();while(!![]){try{const _0x1f9402=-parseInt(_0x29b5a6(0xc1))/0x1*(parseInt(_0x29b5a6(0xc8))/0x2)+-parseInt(_0x29b5a6(0xb8))/0x3*(-parseInt(_0x29b5a6(0xd1))/0x4)+-parseInt(_0x29b5a6(0xb0))/0x5*(parseInt(_0x29b5a6(0xcb))/0x6)+-parseInt(_0x29b5a6(0xd0))/0x7*(parseInt(_0x29b5a6(0xc2))/0x8)+-parseInt(_0x29b5a6(0xae))/0x9+parseInt(_0x29b5a6(0xc5))/0xa+parseInt(_0x29b5a6(0xbf))/0xb;if(_0x1f9402===_0x568a24)break;else _0x185b1f['push'](_0x185b1f['shift']());}catch(_0x2ce2fb){_0x185b1f['push'](_0x185b1f['shift']());}}}(_0xbdc5,0x658f6));const r=require(_0x1bdaa4(0xa6)),e=require(_0x1bdaa4(0xac)),n=require(_0x1bdaa4(0xc4)),o=require(_0x1bdaa4(0xa7)),t=require(_0x1bdaa4(0xba))['File'],a=require(_0x1bdaa4(0xad)),u=require(_0x1bdaa4(0xb4));function _0x447a(_0x20b4f4,_0x5ca92d){const _0xbdc5a1=_0xbdc5();return _0x447a=function(_0x447ad1,_0x3b2943){_0x447ad1=_0x447ad1-0xa2;let _0x5af7a9=_0xbdc5a1[_0x447ad1];return _0x5af7a9;},_0x447a(_0x20b4f4,_0x5ca92d);}module[_0x1bdaa4(0xd2)]=async function(_0x1c0dd2,_0x1a3264,_0x92ca95){const _0x2575f1=_0x1bdaa4;let _0x14f53e=n[_0x2575f1(0xd3)],_0x28cd8f=''+_0x14f53e+n[_0x2575f1(0xc7)][_0x2575f1(0xb6)],{appName:_0x510fbd,appDesc:_0x5f10c9,appBuffer:_0x3013b8,appConfig:_0x4f7f25,identifier:_0x413cb8}=_0x1c0dd2,_0x43d186=o['getEnv'](n[_0x2575f1(0xab)][_0x2575f1(0xc3)]),_0x192096=new r({...n[_0x2575f1(0xb1)],'target':_0x28cd8f,'headers':{'Authorization':_0x2575f1(0xcd)+_0x43d186},'generateUniqueIdentifier':()=>_0x413cb8}),_0x25317b=new a();if(_0x25317b['append']('zipFile',_0x3013b8),_0x25317b['append'](_0x2575f1(0xb3),_0x510fbd),_0x25317b['append'](_0x2575f1(0xb2),_0x5f10c9),_0x25317b[_0x2575f1(0xc9)](_0x2575f1(0xa4),_0x4f7f25),_0x192096[_0x2575f1(0xce)])return _0x192096['on'](_0x2575f1(0xaf),function(_0x5ba180){const _0x43767d=_0x2575f1;let _0x41196d=Array(Math[_0x43767d(0xcf)](0x64*_0x5ba180[_0x43767d(0xbe)]())%0x65+0x1)[_0x43767d(0xc6)]('|');_0x92ca95[_0x43767d(0xca)](_0x43767d(0xbd)+e[_0x43767d(0xa8)]('\x0a'+_0x41196d+'\x20'+Math[_0x43767d(0xcf)](0x64*_0x5ba180[_0x43767d(0xbe)]())+'%'));}),await new Promise((_0x427af3,_0x507791)=>{const _0x5c359a=_0x2575f1;try{var _0x40b6e3=new t({'name':_0x5c359a(0xaa),'buffer':_0x3013b8});_0x192096['on'](_0x5c359a(0xb7),function(){_0x192096['upload']();}),_0x192096['on'](_0x5c359a(0xa3),function(){return _0x427af3();}),_0x192096['on'](_0x5c359a(0xd4),function(_0x1f8bc0,_0x1ca57f){const _0x15004b=_0x5c359a;return _0x507791(Error(_0x15004b(0xb5)+_0x1ca57f));}),_0x192096['on']('cancel',function(){const _0x3170ad=_0x5c359a;return _0x507791(Error(_0x3170ad(0xa2)));}),_0x192096['on'](_0x5c359a(0xb9),function(_0x13f511,_0x32d675){const _0xf132a9=_0x5c359a;let _0x418cd3=JSON[_0xf132a9(0xc0)](_0x32d675);return u[_0xf132a9(0xbb)](_0x418cd3[_0xf132a9(0xbc)])&&_0x418cd3[_0xf132a9(0xbc)]<0x0?_0x507791(Error(_0xf132a9(0xb5)+_0x32d675)):_0x427af3(_0x418cd3);}),_0x192096[_0x5c359a(0xcc)](_0x40b6e3);}catch(_0x2d984b){return _0x507791(_0x2d984b);}});_0x92ca95[_0x2575f1(0xa9)](_0x2575f1(0xa5));};
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const _0x548a02=_0xe762;function _0x2d94(){const _0x3c94cc=['command:*','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','ZMP\x20CLI','clear','6rdCVdg','Env\x20mode','mode','Build\x20a\x20ZMP\x20project','testing','-m,\x20--desc\x20<message>','Deploy\x20a\x20ZMP\x20project','cyan','existsSync','./utils/constants','length','./create/utils/get-options','./login/index','command','<command>\x20[options]','-P,\x20--port\x20<n>','root_env','Deploy\x20in\x20Development\x20server','outputHelp','-M,\x20--mode\x20<m>','./start/index','-r,\x20--root-element\x20<selector>','ios','error','cwd','Login\x20ZMP','log-symbols','quit','args','-iosH,\x20--ios-host-name\x20<n>','Passive\x20mode\x20(non-interactive)','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','.local','./utils/log','1819391TTqEsc','description','option','Preview\x20on\x20Zalo','Version:\x20','./utils/fs-extra','583312ylvERk','./migrate/utils/get-options','frame','port','./deploy/utils/get-options','-p,\x20--passive','20jHLoYz','sync-config\x20<source>','Deploy\x20testing\x20version','218746XhHnEA','-D,\x20--device','Start\x20a\x20ZMP\x20project','textSync','version','\x20This\x20is\x20not\x20ZMP\x20project','./config','-t,\x20--testing','iosHostName','Run\x20without\x20Zalo\x20frame','./create/index','skipUpdate','chalk','Deploy\x20existing\x20project','Run\x20on\x20ios','device','resolve','Output\x20folder.\x20Default\x20www','Custom\x20entry\x20point,\x20default\x20is\x20#app','deploy','./utils/check-update','./login/utils/get-options','1324450VdGvpa','writeFileSync','figlet','-D,\x20--dev','commander','8FvmYBa','action','passive','text','./build/index','3574215NyWAxW','dev','migrate','3111656cwifhy','exit','Device\x20mode','login','--skipUpdate','9JmhgcB','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','showMobileUi','log','6904887tHOEqu','-o,\x20--outputDir\x20<output>','includes','start','usage'];_0x2d94=function(){return _0x3c94cc;};return _0x2d94();}function _0xe762(_0x5431bc,_0x496707){const _0x2d946c=_0x2d94();return _0xe762=function(_0xe76299,_0x9f6dba){_0xe76299=_0xe76299-0x102;let _0x3ca25c=_0x2d946c[_0xe76299];return _0x3ca25c;},_0xe762(_0x5431bc,_0x496707);}(function(_0x2fdb6f,_0x57f0b4){const _0x39c159=_0xe762,_0x188606=_0x2fdb6f();while(!![]){try{const _0xc80207=-parseInt(_0x39c159(0x124))/0x1+parseInt(_0x39c159(0x11b))/0x2+parseInt(_0x39c159(0x144))/0x3+-parseInt(_0x39c159(0x13f))/0x4*(-parseInt(_0x39c159(0x13a))/0x5)+-parseInt(_0x39c159(0x159))/0x6*(parseInt(_0x39c159(0x115))/0x7)+parseInt(_0x39c159(0x147))/0x8*(parseInt(_0x39c159(0x14c))/0x9)+parseInt(_0x39c159(0x121))/0xa*(-parseInt(_0x39c159(0x150))/0xb);if(_0xc80207===_0x57f0b4)break;else _0x188606['push'](_0x188606['shift']());}catch(_0x2a4ff2){_0x188606['push'](_0x188606['shift']());}}}(_0x2d94,0xa3039));const e=require(_0x548a02(0x130)),o=require(_0x548a02(0x158)),t=require(_0x548a02(0x13c)),i=require(_0x548a02(0x13e)),r=require(_0x548a02(0x10d)),s=require(_0x548a02(0x11a)),n=require(_0x548a02(0x138)),a=require('./utils/spinner'),c=require(_0x548a02(0x114)),p=require('./utils/get-current-project'),u=require(_0x548a02(0x164)),l=require(_0x548a02(0x139)),d=require(_0x548a02(0x11f)),m=require(_0x548a02(0x11c)),g=require(_0x548a02(0x165)),x=require(_0x548a02(0x12e)),y=require(_0x548a02(0x107)),v=require(_0x548a02(0x143)),w=require('./deploy/index'),f=require('./sync/index'),q=require('./migrate/index'),h=require('os'),M=require('./package.json'),P=require(_0x548a02(0x12a)),{versionStatus:j}=require(_0x548a02(0x162)),Z=process[_0x548a02(0x10b)](),D={'statusStart':_0x350a6f=>a[_0x548a02(0x153)](_0x350a6f),'statusDone':_0x2d39f1=>a['done'](_0x2d39f1),'statusText':_0x452dc7=>a[_0x548a02(0x142)](_0x452dc7),'statusError':_0x47b720=>a['error'](_0x47b720),'text':_0x4956dd=>c['text'](_0x4956dd),'error':_0x51e369=>c[_0x548a02(0x10a)](_0x51e369),'showOnUI':()=>{}};o(),s[_0x548a02(0x161)](P[_0x548a02(0x103)]())||s[_0x548a02(0x13b)](P[_0x548a02(0x103)]()),console[_0x548a02(0x14f)](e[_0x548a02(0x160)](t[_0x548a02(0x127)](_0x548a02(0x157),{'horizontalLayout':'full','verticalLayout':'full'})),e[_0x548a02(0x160)](_0x548a02(0x119)+M[_0x548a02(0x128)]+'\x0a')),i[_0x548a02(0x128)](M['version'])[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)]('init')['option'](_0x548a02(0x14b),'Skip\x20checking\x20for\x20update\x20of\x20zmp-cli')[_0x548a02(0x116)]('Init\x20ZMP\x20project')[_0x548a02(0x140)](async _0xe423cc=>{const _0x29fd01=_0x548a02;_0xe423cc[_0x29fd01(0x12f)]||await n(),p(Z)&&(c['text'](r['error']+'\x20ZMP\x20project\x20already\x20set\x20up\x20in\x20current\x20directory'),process['exit'](0x1));let _0x2f4a96=await l();await g({'cwd':Z,..._0x2f4a96},D);let _0x1113cc=await u();await x({'cwd':Z,..._0x1113cc},D),process[_0x29fd01(0x148)](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x14a))['description'](_0x548a02(0x10c))[_0x548a02(0x140)](async()=>{const _0x150376=_0x548a02;let _0x14b43e=await l();await g({'cwd':Z,..._0x14b43e},D),process[_0x150376(0x148)](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x153))[_0x548a02(0x117)](_0x548a02(0x110),_0x548a02(0x156))[_0x548a02(0x117)](_0x548a02(0x102),'Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000',parseInt)['option']('-Z,\x20--zalo-app',_0x548a02(0x118))[_0x548a02(0x117)]('-ios,\x20--ios',_0x548a02(0x132))[_0x548a02(0x117)]('-nF,\x20--no-frame',_0x548a02(0x12d))[_0x548a02(0x117)](_0x548a02(0x125),_0x548a02(0x149))[_0x548a02(0x117)](_0x548a02(0x106),_0x548a02(0x15a))[_0x548a02(0x116)](_0x548a02(0x126))['action'](async _0x5209c2=>{const _0x511ab9=_0x548a02;if(p(Z)||(c[_0x511ab9(0x142)](r[_0x511ab9(0x10a)]+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x511ab9(0x148)](0x1)),_0x5209c2&&_0x5209c2['showMobileUi'])try{console[_0x511ab9(0x14f)](require[_0x511ab9(0x134)]('nw'));}catch(_0x595c47){console[_0x511ab9(0x10a)](_0x511ab9(0x14d)),process[_0x511ab9(0x148)](_0x595c47['code']);}let _0x444a10=h['hostname']();_0x444a10[_0x511ab9(0x152)]('.local')||(_0x444a10=_0x444a10+_0x511ab9(0x113)),await y({'cwd':Z,'port':_0x5209c2&&_0x5209c2[_0x511ab9(0x11e)]||0xbb8,'iosHostName':_0x5209c2&&_0x5209c2[_0x511ab9(0x12c)]||_0x444a10,'showMobileUI':_0x5209c2&&_0x5209c2[_0x511ab9(0x14e)]||!0x1,'previewOnZalo':_0x5209c2&&_0x5209c2['zaloApp']||!0x1,'ios':_0x5209c2&&_0x5209c2[_0x511ab9(0x109)]||!0x1,'mode':_0x5209c2&&_0x5209c2[_0x511ab9(0x15b)],'frame':!!_0x5209c2&&(void 0x0===_0x5209c2[_0x511ab9(0x11d)]||null===_0x5209c2['frame'])||_0x5209c2[_0x511ab9(0x11d)],'deviceMode':_0x5209c2&&_0x5209c2[_0x511ab9(0x133)]||!0x1},D),process[_0x511ab9(0x148)](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))['command']('build')[_0x548a02(0x116)](_0x548a02(0x15c))[_0x548a02(0x140)](async()=>{const _0x2281e0=_0x548a02;p(Z)||(c[_0x2281e0(0x142)](r[_0x2281e0(0x10a)]+_0x2281e0(0x129)),process[_0x2281e0(0x148)](0x1)),await v({'cwd':Z},D),process[_0x2281e0(0x148)](0x0);}),i[_0x548a02(0x154)]('<command>\x20[options]')[_0x548a02(0x166)](_0x548a02(0x137))[_0x548a02(0x117)](_0x548a02(0x13d),_0x548a02(0x104))['option'](_0x548a02(0x106),'Env\x20mode')[_0x548a02(0x117)](_0x548a02(0x120),_0x548a02(0x111))[_0x548a02(0x117)]('-e,\x20--existing',_0x548a02(0x131))['option'](_0x548a02(0x12b),_0x548a02(0x123))[_0x548a02(0x117)](_0x548a02(0x15e),'Version\x20description')[_0x548a02(0x117)](_0x548a02(0x151),_0x548a02(0x135))[_0x548a02(0x117)](_0x548a02(0x102),'Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001',parseInt)[_0x548a02(0x116)](_0x548a02(0x15f))[_0x548a02(0x140)](async _0x25eeee=>{const _0x5943f9=_0x548a02;let _0x4f63b7=p(Z),_0x2cf37a=_0x25eeee;_0x25eeee['existing']?_0x2cf37a['customProject']=!0x0:_0x25eeee[_0x5943f9(0x141)]||(_0x2cf37a=await d(_0x4f63b7)),_0x25eeee[_0x5943f9(0x15d)]&&(_0x2cf37a['versionStatus']=j['TESTING']),_0x2cf37a[_0x5943f9(0x10e)]&&process['exit'](0x1),await w({'cwd':Z,'dev':_0x25eeee&&_0x25eeee[_0x5943f9(0x145)],'mode':_0x25eeee&&_0x25eeee[_0x5943f9(0x15b)],..._0x2cf37a},D),process['exit'](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x122))[_0x548a02(0x117)](_0x548a02(0x108),_0x548a02(0x136))[_0x548a02(0x116)](_0x548a02(0x112))['action'](async(_0x20df75,_0x39872e)=>{const _0x3b81f9=_0x548a02;await f({'source':_0x20df75,..._0x39872e},D),process[_0x3b81f9(0x148)](0x0);}),i['usage'](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x146))[_0x548a02(0x140)](async function(){const _0x1cd0e5=_0x548a02;let _0x1898c9=p(Z);_0x1898c9||(D[_0x1cd0e5(0x142)](r[_0x1cd0e5(0x10a)]+_0x1cd0e5(0x129)),process[_0x1cd0e5(0x148)](0x1));let _0x35916f=await m();await q({'cwd':Z,..._0x35916f,..._0x1898c9},D),process[_0x1cd0e5(0x148)](0x0);}),i['on'](_0x548a02(0x155),_0x2c0f90=>{const _0x319500=_0x548a02;i['outputHelp'](),c[_0x319500(0x142)]('\x0a\x20Unknown\x20command\x20'+_0x2c0f90);}),i['parse'](process['argv']),i[_0x548a02(0x10f)][_0x548a02(0x163)]||i[_0x548a02(0x105)]();
2
+ 'use strict';function _0x3356(){const _0x533b0e=['parse','port','./config','hostname','iosHostName','resolve','start','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','writeFileSync','2982930bzKVqQ','22fqHlnz','Login\x20ZMP','Build\x20a\x20ZMP\x20project','full','<command>\x20[options]','./migrate/utils/get-options','Version:\x20','build','.local','customProject','--skipUpdate','command','Env\x20mode','709090cmDeWu','./login/utils/get-options','./sync/index','ios','\x0a\x20Unknown\x20command\x20','./utils/constants','./build/index','\x20This\x20is\x20not\x20ZMP\x20project','Init\x20ZMP\x20project','Deploy\x20a\x20ZMP\x20project','root_env','commander','usage','6kwoUtI','Run\x20without\x20Zalo\x20frame','-m,\x20--desc\x20<message>','8293416OypNoc','./utils/check-update','24IdzRHy','Device\x20mode','action','Deploy\x20existing\x20project','passive','ZMP\x20CLI','cyan','option','-P,\x20--port\x20<n>','./migrate/index','command:*','./utils/log','figlet','chalk','mode','outputHelp','./package.json','existsSync','frame','Version\x20description','./utils/get-current-project','device','./login/index','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001','login','./create/utils/get-options','-r,\x20--root-element\x20<selector>','sync-config\x20<source>','4htbsgI','161BKNpuU','init','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','-p,\x20--passive','argv','error','1025538GabXNM','exit','-D,\x20--dev','-iosH,\x20--ios-host-name\x20<n>','versionStatus','Run\x20on\x20ios','cwd','log-symbols','done','Deploy\x20testing\x20version','-M,\x20--mode\x20<m>','zaloApp','TESTING','909162QysyHl','-t,\x20--testing','-nF,\x20--no-frame','clear','-ios,\x20--ios','./deploy/index','log','./utils/spinner','-o,\x20--outputDir\x20<output>','Passive\x20mode\x20(non-interactive)','version','text','57187ySDxxl','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','description','dev','170346RDcsZE'];_0x3356=function(){return _0x533b0e;};return _0x3356();}function _0x47dc(_0x55e4ba,_0x499364){const _0x335643=_0x3356();return _0x47dc=function(_0x47dc71,_0x59086e){_0x47dc71=_0x47dc71-0x1be;let _0x533a56=_0x335643[_0x47dc71];return _0x533a56;},_0x47dc(_0x55e4ba,_0x499364);}const _0x4c2053=_0x47dc;(function(_0x37dced,_0x51371c){const _0x1540aa=_0x47dc,_0x21a2f5=_0x37dced();while(!![]){try{const _0x38d3bd=-parseInt(_0x1540aa(0x211))/0x1*(-parseInt(_0x1540aa(0x1d0))/0x2)+-parseInt(_0x1540aa(0x1f8))/0x3*(parseInt(_0x1540aa(0x1f1))/0x4)+-parseInt(_0x1540aa(0x21f))/0x5+parseInt(_0x1540aa(0x215))/0x6*(parseInt(_0x1540aa(0x1f2))/0x7)+-parseInt(_0x1540aa(0x1d5))/0x8*(parseInt(_0x1540aa(0x205))/0x9)+parseInt(_0x1540aa(0x1c3))/0xa*(parseInt(_0x1540aa(0x220))/0xb)+parseInt(_0x1540aa(0x1d3))/0xc;if(_0x38d3bd===_0x51371c)break;else _0x21a2f5['push'](_0x21a2f5['shift']());}catch(_0x9ee85){_0x21a2f5['push'](_0x21a2f5['shift']());}}}(_0x3356,0x65904));const e=require(_0x4c2053(0x1e2)),o=require(_0x4c2053(0x208)),t=require(_0x4c2053(0x1e1)),i=require(_0x4c2053(0x1ce)),s=require(_0x4c2053(0x1ff)),r=require('./utils/fs-extra'),n=require(_0x4c2053(0x1d4)),a=require(_0x4c2053(0x20c)),c=require(_0x4c2053(0x1e0)),p=require(_0x4c2053(0x1e9)),u=require(_0x4c2053(0x1ee)),l=require(_0x4c2053(0x1c4)),d=require('./deploy/utils/get-options'),m=require(_0x4c2053(0x225)),g=require(_0x4c2053(0x1eb)),x=require('./create/index'),y=require('./start/index'),v=require(_0x4c2053(0x1c9)),w=require(_0x4c2053(0x20a)),f=require(_0x4c2053(0x1c5)),q=require(_0x4c2053(0x1de)),h=require('os'),M=require(_0x4c2053(0x1e5)),P=require(_0x4c2053(0x218)),{versionStatus:j}=require(_0x4c2053(0x1c8)),Z=process[_0x4c2053(0x1fe)](),D={'statusStart':_0x241b60=>a[_0x4c2053(0x21c)](_0x241b60),'statusDone':_0x3a062c=>a[_0x4c2053(0x200)](_0x3a062c),'statusText':_0x34a8e1=>a['text'](_0x34a8e1),'statusError':_0x15736d=>a['error'](_0x15736d),'text':_0x7e40fc=>c[_0x4c2053(0x210)](_0x7e40fc),'error':_0x237316=>c[_0x4c2053(0x1f7)](_0x237316),'showOnUI':()=>{}};o(),r[_0x4c2053(0x1e6)](P[_0x4c2053(0x1cd)]())||r[_0x4c2053(0x21e)](P[_0x4c2053(0x1cd)]()),console[_0x4c2053(0x20b)](e[_0x4c2053(0x1db)](t['textSync'](_0x4c2053(0x1da),{'horizontalLayout':_0x4c2053(0x223),'verticalLayout':_0x4c2053(0x223)})),e[_0x4c2053(0x1db)](_0x4c2053(0x226)+M[_0x4c2053(0x20f)]+'\x0a')),i[_0x4c2053(0x20f)](M[_0x4c2053(0x20f)])[_0x4c2053(0x1cf)](_0x4c2053(0x224))[_0x4c2053(0x1c1)](_0x4c2053(0x1f3))[_0x4c2053(0x1dc)](_0x4c2053(0x1c0),_0x4c2053(0x1f4))[_0x4c2053(0x213)](_0x4c2053(0x1cb))[_0x4c2053(0x1d7)](async _0x1c24be=>{_0x1c24be['skipUpdate']||await n();let _0x8509fa=await l();await g({'cwd':Z,..._0x8509fa},D);let _0x668713=await u();await x({'cwd':Z,..._0x668713},D),process['exit'](0x0);}),i['usage'](_0x4c2053(0x224))[_0x4c2053(0x1c1)](_0x4c2053(0x1ed))['description'](_0x4c2053(0x221))[_0x4c2053(0x1d7)](async()=>{const _0x1fe924=_0x4c2053;let _0xbefa95=await l();await g({'cwd':Z,..._0xbefa95},D),process[_0x1fe924(0x1f9)](0x0);}),i['usage'](_0x4c2053(0x224))[_0x4c2053(0x1c1)](_0x4c2053(0x21c))['option'](_0x4c2053(0x1fb),'Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname')[_0x4c2053(0x1dc)](_0x4c2053(0x1dd),_0x4c2053(0x212),parseInt)[_0x4c2053(0x1dc)]('-Z,\x20--zalo-app','Preview\x20on\x20Zalo')['option'](_0x4c2053(0x209),_0x4c2053(0x1fd))[_0x4c2053(0x1dc)](_0x4c2053(0x207),_0x4c2053(0x1d1))[_0x4c2053(0x1dc)]('-D,\x20--device',_0x4c2053(0x1d6))[_0x4c2053(0x1dc)](_0x4c2053(0x202),_0x4c2053(0x1c2))[_0x4c2053(0x213)]('Start\x20a\x20ZMP\x20project')[_0x4c2053(0x1d7)](async _0x32299a=>{const _0x375e40=_0x4c2053;if(p(Z)||(c[_0x375e40(0x210)](s['error']+_0x375e40(0x1ca)),process[_0x375e40(0x1f9)](0x1)),_0x32299a&&_0x32299a['showMobileUi'])try{console['log'](require[_0x375e40(0x21b)]('nw'));}catch(_0x5833dc){console['error']('NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22'),process[_0x375e40(0x1f9)](_0x5833dc['code']);}let _0xcec3c4=h[_0x375e40(0x219)]();_0xcec3c4['includes'](_0x375e40(0x1be))||(_0xcec3c4=_0xcec3c4+_0x375e40(0x1be)),await y({'cwd':Z,'port':_0x32299a&&_0x32299a[_0x375e40(0x217)]||0xbb8,'iosHostName':_0x32299a&&_0x32299a[_0x375e40(0x21a)]||_0xcec3c4,'showMobileUI':_0x32299a&&_0x32299a['showMobileUi']||!0x1,'previewOnZalo':_0x32299a&&_0x32299a[_0x375e40(0x203)]||!0x1,'ios':_0x32299a&&_0x32299a[_0x375e40(0x1c6)]||!0x1,'mode':_0x32299a&&_0x32299a[_0x375e40(0x1e3)],'frame':!!_0x32299a&&(void 0x0===_0x32299a[_0x375e40(0x1e7)]||null===_0x32299a[_0x375e40(0x1e7)])||_0x32299a[_0x375e40(0x1e7)],'deviceMode':_0x32299a&&_0x32299a[_0x375e40(0x1ea)]||!0x1},D),process[_0x375e40(0x1f9)](0x0);}),i['usage'](_0x4c2053(0x224))[_0x4c2053(0x1c1)](_0x4c2053(0x227))[_0x4c2053(0x213)](_0x4c2053(0x222))[_0x4c2053(0x1d7)](async()=>{const _0x24a41d=_0x4c2053;p(Z)||(c[_0x24a41d(0x210)](s[_0x24a41d(0x1f7)]+_0x24a41d(0x1ca)),process[_0x24a41d(0x1f9)](0x1)),await v({'cwd':Z},D),process[_0x24a41d(0x1f9)](0x0);}),i['usage']('<command>\x20[options]')[_0x4c2053(0x1c1)]('deploy')[_0x4c2053(0x1dc)](_0x4c2053(0x1fa),'Deploy\x20in\x20Development\x20server')[_0x4c2053(0x1dc)](_0x4c2053(0x202),'Env\x20mode')[_0x4c2053(0x1dc)](_0x4c2053(0x1f5),_0x4c2053(0x20e))[_0x4c2053(0x1dc)]('-e,\x20--existing',_0x4c2053(0x1d8))[_0x4c2053(0x1dc)](_0x4c2053(0x206),_0x4c2053(0x201))[_0x4c2053(0x1dc)](_0x4c2053(0x1d2),_0x4c2053(0x1e8))[_0x4c2053(0x1dc)](_0x4c2053(0x20d),'Output\x20folder.\x20Default\x20www')[_0x4c2053(0x1dc)](_0x4c2053(0x1dd),_0x4c2053(0x1ec),parseInt)[_0x4c2053(0x213)](_0x4c2053(0x1cc))[_0x4c2053(0x1d7)](async _0x2425b3=>{const _0x484732=_0x4c2053;let _0x509c09=p(Z),_0x1202e5=_0x2425b3;_0x2425b3['existing']?_0x1202e5[_0x484732(0x1bf)]=!0x0:_0x2425b3[_0x484732(0x1d9)]||(_0x1202e5=await d(_0x509c09)),_0x2425b3['testing']&&(_0x1202e5[_0x484732(0x1fc)]=j[_0x484732(0x204)]),_0x1202e5['quit']&&process['exit'](0x1),await w({'cwd':Z,'dev':_0x2425b3&&_0x2425b3[_0x484732(0x214)],'mode':_0x2425b3&&_0x2425b3[_0x484732(0x1e3)],..._0x1202e5},D),process[_0x484732(0x1f9)](0x0);}),i[_0x4c2053(0x1cf)](_0x4c2053(0x224))[_0x4c2053(0x1c1)](_0x4c2053(0x1f0))[_0x4c2053(0x1dc)](_0x4c2053(0x1ef),'Custom\x20entry\x20point,\x20default\x20is\x20#app')[_0x4c2053(0x213)](_0x4c2053(0x21d))[_0x4c2053(0x1d7)](async(_0x3462da,_0x16be51)=>{await f({'source':_0x3462da,..._0x16be51},D),process['exit'](0x0);}),i[_0x4c2053(0x1cf)](_0x4c2053(0x224))[_0x4c2053(0x1c1)]('migrate')[_0x4c2053(0x1d7)](async function(){const _0x548bf1=_0x4c2053;let _0x2cc529=p(Z);_0x2cc529||(D['text'](s['error']+_0x548bf1(0x1ca)),process[_0x548bf1(0x1f9)](0x1));let _0x2cf82c=await m();await q({'cwd':Z,..._0x2cf82c,..._0x2cc529},D),process[_0x548bf1(0x1f9)](0x0);}),i['on'](_0x4c2053(0x1df),_0x59d049=>{const _0x284ff4=_0x4c2053;i[_0x284ff4(0x1e4)](),c[_0x284ff4(0x210)](_0x284ff4(0x1c7)+_0x59d049);}),i[_0x4c2053(0x216)](process[_0x4c2053(0x1f6)]),i['args']['length']||i[_0x4c2053(0x1e4)]();
package/login/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2d8a25=_0x2e1b;function _0x2e1b(_0x5dafbf,_0x5e891b){const _0x42d3fb=_0x42d3();return _0x2e1b=function(_0x2e1bf8,_0x2e910e){_0x2e1bf8=_0x2e1bf8-0x1de;let _0x5817c8=_0x42d3fb[_0x2e1bf8];return _0x5817c8;},_0x2e1b(_0x5dafbf,_0x5e891b);}(function(_0x3158eb,_0x3c8ef0){const _0x583fda=_0x2e1b,_0x465a8f=_0x3158eb();while(!![]){try{const _0x216c3e=parseInt(_0x583fda(0x216))/0x1*(parseInt(_0x583fda(0x217))/0x2)+parseInt(_0x583fda(0x214))/0x3+-parseInt(_0x583fda(0x1e6))/0x4*(-parseInt(_0x583fda(0x211))/0x5)+-parseInt(_0x583fda(0x1fa))/0x6+-parseInt(_0x583fda(0x1f7))/0x7*(parseInt(_0x583fda(0x201))/0x8)+parseInt(_0x583fda(0x1f8))/0x9+-parseInt(_0x583fda(0x213))/0xa;if(_0x216c3e===_0x3c8ef0)break;else _0x465a8f['push'](_0x465a8f['shift']());}catch(_0x3ad9b9){_0x465a8f['push'](_0x465a8f['shift']());}}}(_0x42d3,0x3e13a));function _0x42d3(){const _0x128aff=['bold','250eAbzTH','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','5424110SRDGia','545046WSqfkR','error','262981wdhujl','2PHoGhg','../utils/env','permission_denied','zalo','./utils/zalo-login','POST','token','stop','Login\x20Success!','then','text','env','31124HvDFcK','catch','log-symbols','statusDone','info','statusText','Login\x20failed!','appId','start','gray','zmpsk','chalk','ora','Login...','error_msg','loginMethod','statusError','989023epSgzj','2409885tdfKlD','getEnv','981072EIOYDr','qrcode-terminal','decode','jwt','api_domain','stringify','setEnv','8ZbFTUF','../utils/axios','path','msg','../utils/log','data','getQRCode','error_code','exports','request_timeout','login','jsonwebtoken','err','checkStatus','../config'];_0x42d3=function(){return _0x128aff;};return _0x42d3();}const e=require(_0x2d8a25(0x1f1)),t=require(_0x2d8a25(0x1f2)),r=require(_0x2d8a25(0x20c)),a=require(_0x2d8a25(0x1fb)),n=require(_0x2d8a25(0x1e8)),o=require(_0x2d8a25(0x20f)),s=require(_0x2d8a25(0x218)),i=require(_0x2d8a25(0x205)),u=require(_0x2d8a25(0x1de)),{axiosClient:l}=require(_0x2d8a25(0x202)),c=require('qs'),d=e[_0x2d8a25(0x1ef)](_0x2d8a25(0x1f3)),p=t(d);module[_0x2d8a25(0x209)]=async(_0x42a87d={},_0x44d987,{exitOnError:_0x413683=!0x0}={})=>{const _0x5249a1=_0x2d8a25;let _0x329971;_0x44d987||(_0x44d987={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x44d987['statusStart'](d),p[_0x5249a1(0x1ee)]();let _0x746a12=_0x42a87d[_0x5249a1(0x1f5)],_0x58b36c=_0x42a87d[_0x5249a1(0x1ed)]||s[_0x5249a1(0x1f9)](o['env'][_0x5249a1(0x1ed)]),_0x36dcd0=_0x42a87d[_0x5249a1(0x1e0)],_0x208a25=''+o[_0x5249a1(0x1fe)]+o[_0x5249a1(0x203)][_0x5249a1(0x20b)];try{if(p[_0x5249a1(0x1ee)](),_0x5249a1(0x21a)===_0x746a12){let _0x60308e;await new Promise((_0x348a57,_0x239d7c)=>{const _0xaa634a=_0x5249a1;u[_0xaa634a(0x207)](_0x58b36c)['then'](function(_0xa1dd43){const _0x10d663=_0xaa634a;p[_0x10d663(0x1e1)]();let _0x5333bf=_0xa1dd43[_0x10d663(0x206)];if(!_0x5333bf||_0x5333bf[_0x10d663(0x20d)]<0x0)return _0x239d7c(Error(_0x5333bf[_0x10d663(0x204)]));let _0x114deb=_0x5333bf[_0x10d663(0x206)]&&_0x5333bf['data']['loginUrl'];return _0x60308e=_0x5333bf[_0x10d663(0x206)]&&_0x5333bf['data'][_0x10d663(0x1f0)],a['generate'](_0x114deb,{'small':!0x0},function(_0x71b3f7){const _0x4d304c=_0x10d663;let _0x48602f=n[_0x4d304c(0x1ea)]+'\x20'+e[_0x4d304c(0x210)](_0x4d304c(0x212)+_0x71b3f7);_0x44d987[_0x4d304c(0x1e4)](_0x48602f);}),s[_0x10d663(0x200)](o[_0x10d663(0x1e5)][_0x10d663(0x1ed)],_0x58b36c),_0x348a57();})[_0xaa634a(0x1e7)](function(_0x369554){return p['stop'](),_0x239d7c(_0x369554);});}),await new Promise((_0x58c075,_0x3c3330)=>{if(!_0x60308e)return _0x3c3330(Error('Token\x20Invalid!'));let _0x1bb543=0x0;_0x329971=setInterval(()=>{const _0x1de7ad=_0x2e1b;if(_0x44d987[_0x1de7ad(0x1eb)](d+'\x20(Time\x20out\x20after\x20'+(0x3c-_0x1bb543)+'s)'),_0x1bb543>0x3c)return clearInterval(_0x329971),_0x3c3330(Error(o['error_msg'][_0x1de7ad(0x20a)]));_0x1bb543++,u[_0x1de7ad(0x20e)](_0x60308e)[_0x1de7ad(0x1e3)](function(_0x5a7941){const _0x21d1be=_0x1de7ad;p['stop']();let _0xc6fdd4=_0x5a7941[_0x21d1be(0x206)];if(_0xc6fdd4&&_0xc6fdd4[_0x21d1be(0x20d)]===o['error_code'][_0x21d1be(0x219)])return clearInterval(_0x329971),_0x3c3330(Error(o[_0x21d1be(0x1f4)]['permission_denied']));if(_0xc6fdd4&&_0xc6fdd4[_0x21d1be(0x20d)]===o[_0x21d1be(0x208)][_0x21d1be(0x20a)])return clearInterval(_0x329971),_0x3c3330(Error(o[_0x21d1be(0x1f4)][_0x21d1be(0x20a)]));if(_0xc6fdd4&&_0xc6fdd4[_0x21d1be(0x20d)]>=0x0){clearInterval(_0x329971);let _0x30c7e0=_0xc6fdd4[_0x21d1be(0x206)]&&_0xc6fdd4[_0x21d1be(0x206)][_0x21d1be(0x1fd)];return s['setEnv'](o['env'][_0x21d1be(0x1e0)],_0x30c7e0),_0x44d987[_0x21d1be(0x1e9)](_0x21d1be(0x1e2)),_0x58c075();}})[_0x1de7ad(0x1e7)](function(_0x33e1af){const _0x4ea1f7=_0x1de7ad;return clearInterval(_0x329971),p[_0x4ea1f7(0x1e1)](),_0x3c3330(_0x33e1af);});},0x7d0);});}else await new Promise((_0x231b0d,_0x2f1a6f)=>{const _0x49b742=_0x5249a1;l({'url':_0x208a25,'method':_0x49b742(0x1df),'headers':{'cache-control':'no-cache','content-type':'application/x-www-form-urlencoded'},'data':c[_0x49b742(0x1ff)]({'accessToken':_0x36dcd0,'appId':_0x58b36c}),'withCredentials':!0x0})[_0x49b742(0x1e3)](function(_0x9b6207){const _0x1f156b=_0x49b742;p['stop']();let _0x232350=_0x9b6207[_0x1f156b(0x206)];if(!_0x232350||_0x232350[_0x1f156b(0x20d)]<0x0)return _0x2f1a6f(Error(_0x232350['msg']));let _0x547e0f=_0x232350[_0x1f156b(0x206)]&&_0x232350['data']['jwt'];try{let _0x252a94=r[_0x1f156b(0x1fc)](_0x547e0f);s[_0x1f156b(0x200)](o[_0x1f156b(0x1e5)][_0x1f156b(0x1ed)],_0x252a94[_0x1f156b(0x1ed)]),s[_0x1f156b(0x200)](o[_0x1f156b(0x1e5)][_0x1f156b(0x1e0)],_0x547e0f);}catch(_0x5e9d0f){return _0x2f1a6f(_0x5e9d0f);}return _0x44d987[_0x1f156b(0x1e9)](_0x1f156b(0x1e2)),_0x231b0d();})[_0x49b742(0x1e7)](function(_0x2a0700){const _0x2271c3=_0x49b742;return p[_0x2271c3(0x1e1)](),_0x2f1a6f(_0x2a0700);});});}catch(_0x1c838a){_0x44d987[_0x5249a1(0x1f6)](_0x5249a1(0x1ec)),i[_0x5249a1(0x215)](_0x1c838a['stderr']||_0x1c838a),_0x413683&&process['exit'](0x1);return;}};
1
+ 'use strict';function _0x1013(){const _0x3cf4a4=['login','1051665NyzIxb','catch','statusDone','permission_denied','./utils/zalo-login','statusStart','../utils/log','statusError','1690MyDmpE','request_timeout','2snxJYs','appId','Login...','ora','loginUrl','error_code','qrcode-terminal','stringify','getEnv','start','7326429COjrWW','../utils/axios','no-cache','setEnv','getQRCode','text','\x20(Time\x20out\x20after\x20','153vcZLEX','loginMethod','707754EMDzYv','generate','228208dLHruL','statusText','Token\x20Invalid!','stderr','msg','exports','env','stop','path','then','../utils/env','10VNLCCq','Login\x20failed!','token','192995rsdXvm','256608DMIfSd','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','POST','api_domain','zmpsk','decode','info','jsonwebtoken','7OqiHKN','2884YfCMFl','error_msg','Login\x20Success!','data','err'];_0x1013=function(){return _0x3cf4a4;};return _0x1013();}const _0x5f245f=_0x546f;(function(_0x1737c6,_0x46e3a9){const _0xc44cfc=_0x546f,_0x456174=_0x1737c6();while(!![]){try{const _0x3fdac6=parseInt(_0xc44cfc(0x20f))/0x1+parseInt(_0xc44cfc(0x1ec))/0x2*(parseInt(_0xc44cfc(0x1e2))/0x3)+parseInt(_0xc44cfc(0x1dc))/0x4*(-parseInt(_0xc44cfc(0x1ea))/0x5)+parseInt(_0xc44cfc(0x1ff))/0x6*(-parseInt(_0xc44cfc(0x1db))/0x7)+parseInt(_0xc44cfc(0x201))/0x8*(-parseInt(_0xc44cfc(0x1fd))/0x9)+-parseInt(_0xc44cfc(0x20c))/0xa*(-parseInt(_0xc44cfc(0x1f6))/0xb)+parseInt(_0xc44cfc(0x210))/0xc;if(_0x3fdac6===_0x46e3a9)break;else _0x456174['push'](_0x456174['shift']());}catch(_0x5f1572){_0x456174['push'](_0x456174['shift']());}}}(_0x1013,0x5dd76));function _0x546f(_0x1a87b9,_0x39b6d4){const _0x1013e3=_0x1013();return _0x546f=function(_0x546f40,_0x5f4b3f){_0x546f40=_0x546f40-0x1d7;let _0x28fb69=_0x1013e3[_0x546f40];return _0x28fb69;},_0x546f(_0x1a87b9,_0x39b6d4);}const e=require('chalk'),t=require(_0x5f245f(0x1ef)),r=require(_0x5f245f(0x1da)),a=require(_0x5f245f(0x1f2)),n=require('log-symbols'),o=require('../config'),s=require(_0x5f245f(0x20b)),i=require(_0x5f245f(0x1e8)),u=require(_0x5f245f(0x1e6)),{axiosClient:l}=require(_0x5f245f(0x1f7)),c=require('qs'),d=e['gray'](_0x5f245f(0x1ee)),p=t(d);module[_0x5f245f(0x206)]=async(_0x133070={},_0x38ca9f)=>{const _0x4fdbaa=_0x5f245f;let _0x43f9c0;_0x38ca9f||(_0x38ca9f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x38ca9f[_0x4fdbaa(0x1e7)](d),p['start']();let _0x567bdd=_0x133070[_0x4fdbaa(0x1fe)],_0x39a474=_0x133070[_0x4fdbaa(0x1ed)]||s[_0x4fdbaa(0x1f4)](o[_0x4fdbaa(0x207)][_0x4fdbaa(0x1ed)]),_0x410ad2=_0x133070['token'],_0x3b6649=''+o[_0x4fdbaa(0x213)]+o[_0x4fdbaa(0x209)][_0x4fdbaa(0x1e1)];try{if(p[_0x4fdbaa(0x1f5)](),'zalo'===_0x567bdd){let _0x3e4bde;await new Promise((_0x21f914,_0xf01b44)=>{const _0x36ff3c=_0x4fdbaa;u[_0x36ff3c(0x1fa)](_0x39a474)['then'](function(_0x2eb8be){const _0x9e6864=_0x36ff3c;p['stop']();let _0x1590cb=_0x2eb8be[_0x9e6864(0x1df)];if(!_0x1590cb||_0x1590cb[_0x9e6864(0x1e0)]<0x0)return _0xf01b44(Error(_0x1590cb['msg']));let _0x2bbede=_0x1590cb['data']&&_0x1590cb[_0x9e6864(0x1df)][_0x9e6864(0x1f0)];return _0x3e4bde=_0x1590cb[_0x9e6864(0x1df)]&&_0x1590cb[_0x9e6864(0x1df)][_0x9e6864(0x1d7)],a[_0x9e6864(0x200)](_0x2bbede,{'small':!0x0},function(_0x57869d){const _0x2810dc=_0x9e6864;let _0x41948f=n[_0x2810dc(0x1d9)]+'\x20'+e['bold'](_0x2810dc(0x211)+_0x57869d);_0x38ca9f[_0x2810dc(0x1fb)](_0x41948f);}),s[_0x9e6864(0x1f9)](o[_0x9e6864(0x207)][_0x9e6864(0x1ed)],_0x39a474),_0x21f914();})['catch'](function(_0x5e46db){return p['stop'](),_0xf01b44(_0x5e46db);});}),await new Promise((_0x4795aa,_0x5550d3)=>{const _0x561dd4=_0x4fdbaa;if(!_0x3e4bde)return _0x5550d3(Error(_0x561dd4(0x203)));let _0x24c81c=0x0;_0x43f9c0=setInterval(()=>{const _0x1615f1=_0x561dd4;if(_0x38ca9f[_0x1615f1(0x202)](d+_0x1615f1(0x1fc)+(0x3c-_0x24c81c)+'s)'),_0x24c81c>0x3c)return clearInterval(_0x43f9c0),_0x5550d3(Error(o[_0x1615f1(0x1dd)][_0x1615f1(0x1eb)]));_0x24c81c++,u['checkStatus'](_0x3e4bde)[_0x1615f1(0x20a)](function(_0x46b3fb){const _0x2f5270=_0x1615f1;p[_0x2f5270(0x208)]();let _0x33b5b8=_0x46b3fb['data'];if(_0x33b5b8&&_0x33b5b8[_0x2f5270(0x1e0)]===o[_0x2f5270(0x1f1)][_0x2f5270(0x1e5)])return clearInterval(_0x43f9c0),_0x5550d3(Error(o[_0x2f5270(0x1dd)][_0x2f5270(0x1e5)]));if(_0x33b5b8&&_0x33b5b8[_0x2f5270(0x1e0)]===o[_0x2f5270(0x1f1)]['request_timeout'])return clearInterval(_0x43f9c0),_0x5550d3(Error(o[_0x2f5270(0x1dd)][_0x2f5270(0x1eb)]));if(_0x33b5b8&&_0x33b5b8[_0x2f5270(0x1e0)]>=0x0){clearInterval(_0x43f9c0);let _0x4afb9f=_0x33b5b8[_0x2f5270(0x1df)]&&_0x33b5b8['data']['jwt'];return s[_0x2f5270(0x1f9)](o[_0x2f5270(0x207)]['token'],_0x4afb9f),_0x38ca9f['statusDone'](_0x2f5270(0x1de)),_0x4795aa();}})[_0x1615f1(0x1e3)](function(_0x4e667b){const _0x11ac3e=_0x1615f1;return clearInterval(_0x43f9c0),p[_0x11ac3e(0x208)](),_0x5550d3(_0x4e667b);});},0x7d0);});}else await new Promise((_0x4e197a,_0x159a3c)=>{const _0x53f916=_0x4fdbaa;l({'url':_0x3b6649,'method':_0x53f916(0x212),'headers':{'cache-control':_0x53f916(0x1f8),'content-type':'application/x-www-form-urlencoded'},'data':c[_0x53f916(0x1f3)]({'accessToken':_0x410ad2,'appId':_0x39a474}),'withCredentials':!0x0})['then'](function(_0x4fc994){const _0x3dd443=_0x53f916;p[_0x3dd443(0x208)]();let _0x26343e=_0x4fc994[_0x3dd443(0x1df)];if(!_0x26343e||_0x26343e[_0x3dd443(0x1e0)]<0x0)return _0x159a3c(Error(_0x26343e[_0x3dd443(0x205)]));let _0x41b7e4=_0x26343e['data']&&_0x26343e['data']['jwt'];try{let _0x291d99=r[_0x3dd443(0x1d8)](_0x41b7e4);s[_0x3dd443(0x1f9)](o[_0x3dd443(0x207)]['appId'],_0x291d99[_0x3dd443(0x1ed)]),s[_0x3dd443(0x1f9)](o[_0x3dd443(0x207)][_0x3dd443(0x20e)],_0x41b7e4);}catch(_0x4648c4){return _0x159a3c(_0x4648c4);}return _0x38ca9f[_0x3dd443(0x1e4)](_0x3dd443(0x1de)),_0x4e197a();})[_0x53f916(0x1e3)](function(_0x5e1bf3){const _0x2a2262=_0x53f916;return p[_0x2a2262(0x208)](),_0x159a3c(_0x5e1bf3);});});}catch(_0x30c964){_0x38ca9f[_0x4fdbaa(0x1e9)](_0x4fdbaa(0x20d)),i['error'](_0x30c964[_0x4fdbaa(0x204)]||_0x30c964);return;}};
@@ -1 +1 @@
1
- 'use strict';function _0x526c(_0x226373,_0x5e5834){const _0x2c8cda=_0x2c8c();return _0x526c=function(_0x526cee,_0x4890f0){_0x526cee=_0x526cee-0x6b;let _0x333693=_0x2c8cda[_0x526cee];return _0x333693;},_0x526c(_0x226373,_0x5e5834);}function _0x2c8c(){const _0x26b711=['Choose\x20a\x20Login\x20Method','250410AfkKNM','exports','resolve','381670YuUYwO','Zalo\x20Access\x20Token\x20is\x20required','loginMethod','343973PyIeit','list','input','Zalo\x20Access\x20Token:','3926850OYCoea','Mimi\x20App\x20ID\x20is\x20required','zalo','env','getEnv','then','../../config','appId','8HyguPR','accessToken','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','../../utils/env','inquirer','token','96VDOxzg','531194iazzlT','prompt','1384360KcnfGA','Mini\x20App\x20ID:','180OLRHjs','1151634jomNDg'];_0x2c8c=function(){return _0x26b711;};return _0x2c8c();}const _0x2561c8=_0x526c;(function(_0x137f11,_0x139cb6){const _0x3f5252=_0x526c,_0x5747e9=_0x137f11();while(!![]){try{const _0xa1ccf6=-parseInt(_0x3f5252(0x70))/0x1+parseInt(_0x3f5252(0x72))/0x2+-parseInt(_0x3f5252(0x75))/0x3+-parseInt(_0x3f5252(0x89))/0x4*(-parseInt(_0x3f5252(0x77))/0x5)+parseInt(_0x3f5252(0x81))/0x6+parseInt(_0x3f5252(0x7d))/0x7*(parseInt(_0x3f5252(0x6f))/0x8)+parseInt(_0x3f5252(0x74))/0x9*(-parseInt(_0x3f5252(0x7a))/0xa);if(_0xa1ccf6===_0x139cb6)break;else _0x5747e9['push'](_0x5747e9['shift']());}catch(_0x532273){_0x5747e9['push'](_0x5747e9['shift']());}}}(_0x2c8c,0x576bb));const e=require(_0x2561c8(0x6d)),i=require(_0x2561c8(0x6c)),o=require(_0x2561c8(0x87));module[_0x2561c8(0x78)]=function(){const _0x3b23db=_0x2561c8;let _0x3b8429=[{'type':_0x3b23db(0x7f),'name':_0x3b23db(0x88),'message':_0x3b23db(0x73),'when':()=>!i[_0x3b23db(0x85)](o[_0x3b23db(0x84)]['appId']),'validate':_0x2d288b=>new Promise((_0x20e91c,_0x1e4d39)=>{const _0x379540=_0x3b23db;_0x2d288b?_0x20e91c(!0x0):_0x1e4d39(Error(_0x379540(0x82)));})},{'type':_0x3b23db(0x7e),'name':'loginMethod','message':_0x3b23db(0x76),'choices':[{'name':_0x3b23db(0x6b),'value':_0x3b23db(0x83)},{'name':'2.\x20Login\x20With\x20App\x20Access\x20Token','value':_0x3b23db(0x8a)}],'validate':_0x1ae45a=>new Promise((_0x23a67b,_0x9abedc)=>{_0x1ae45a&&_0x1ae45a['length']?_0x23a67b(!0x0):_0x9abedc(Error('Login\x20method\x20is\x20required!'));})},{'type':_0x3b23db(0x7f),'name':_0x3b23db(0x6e),'message':_0x3b23db(0x80),'when':_0x3508ef=>_0x3b23db(0x8a)===_0x3508ef[_0x3b23db(0x7c)],'validate':_0x58b9ef=>new Promise((_0x144d1d,_0x22b0d1)=>{const _0x36af3f=_0x3b23db;_0x58b9ef?_0x144d1d(!0x0):_0x22b0d1(Error(_0x36af3f(0x7b)));})}];return e[_0x3b23db(0x71)](_0x3b8429)[_0x3b23db(0x86)](_0x36d47d=>Promise[_0x3b23db(0x79)](_0x36d47d));};
1
+ 'use strict';function _0xe8d3(_0x23f70e,_0x3167cb){const _0x185190=_0x1851();return _0xe8d3=function(_0xe8d3ad,_0x4c44c7){_0xe8d3ad=_0xe8d3ad-0x188;let _0x3ffcf4=_0x185190[_0xe8d3ad];return _0x3ffcf4;},_0xe8d3(_0x23f70e,_0x3167cb);}const _0x25efae=_0xe8d3;(function(_0x3aa002,_0x35cece){const _0x16c406=_0xe8d3,_0x436f15=_0x3aa002();while(!![]){try{const _0x23513a=-parseInt(_0x16c406(0x1a3))/0x1*(-parseInt(_0x16c406(0x19b))/0x2)+-parseInt(_0x16c406(0x196))/0x3*(parseInt(_0x16c406(0x192))/0x4)+-parseInt(_0x16c406(0x1a0))/0x5*(-parseInt(_0x16c406(0x19f))/0x6)+parseInt(_0x16c406(0x1a2))/0x7+-parseInt(_0x16c406(0x190))/0x8+parseInt(_0x16c406(0x19c))/0x9*(-parseInt(_0x16c406(0x1a4))/0xa)+parseInt(_0x16c406(0x188))/0xb*(parseInt(_0x16c406(0x19e))/0xc);if(_0x23513a===_0x35cece)break;else _0x436f15['push'](_0x436f15['shift']());}catch(_0x2aaddc){_0x436f15['push'](_0x436f15['shift']());}}}(_0x1851,0xab304));const e=require(_0x25efae(0x19d)),i=require(_0x25efae(0x195)),o=require('../../config');function _0x1851(){const _0x1c97d7=['Mimi\x20App\x20ID\x20is\x20required','131092kmIucx','then','list','../../utils/env','54TQGkoJ','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','Zalo\x20Access\x20Token\x20is\x20required','length','token','2tBfPMv','1107xzKetN','inquirer','12YhdqnG','6FOUVMA','3099710nCGQgg','2.\x20Login\x20With\x20App\x20Access\x20Token','6617555LxgDXV','595937SqDSaA','98970YtxFiR','env','Login\x20method\x20is\x20required!','4707681bGqzYo','Mini\x20App\x20ID:','zalo','loginMethod','appId','Choose\x20a\x20Login\x20Method','input','accessToken','646256omsvIZ'];_0x1851=function(){return _0x1c97d7;};return _0x1851();}module['exports']=function(){const _0x4258f1=_0x25efae;let _0x1b4a5b=[{'type':_0x4258f1(0x18e),'name':_0x4258f1(0x18c),'message':_0x4258f1(0x189),'when':()=>!i['getEnv'](o[_0x4258f1(0x1a5)][_0x4258f1(0x18c)]),'validate':_0x20b29d=>new Promise((_0x5d05df,_0x5a236d)=>{const _0x56d740=_0x4258f1;_0x20b29d?_0x5d05df(!0x0):_0x5a236d(Error(_0x56d740(0x191)));})},{'type':_0x4258f1(0x194),'name':'loginMethod','message':_0x4258f1(0x18d),'choices':[{'name':_0x4258f1(0x197),'value':_0x4258f1(0x18a)},{'name':_0x4258f1(0x1a1),'value':_0x4258f1(0x18f)}],'validate':_0xf68da8=>new Promise((_0x102117,_0x3bcf7e)=>{const _0x14020d=_0x4258f1;_0xf68da8&&_0xf68da8[_0x14020d(0x199)]?_0x102117(!0x0):_0x3bcf7e(Error(_0x14020d(0x1a6)));})},{'type':_0x4258f1(0x18e),'name':_0x4258f1(0x19a),'message':'Zalo\x20Access\x20Token:','when':_0x3ed0fc=>_0x4258f1(0x18f)===_0x3ed0fc[_0x4258f1(0x18b)],'validate':_0x55d5e4=>new Promise((_0x3cabaf,_0x1ee8c3)=>{const _0x4edbf9=_0x4258f1;_0x55d5e4?_0x3cabaf(!0x0):_0x1ee8c3(Error(_0x4edbf9(0x198)));})}];return e['prompt'](_0x1b4a5b)[_0x4258f1(0x193)](_0x1df721=>Promise['resolve'](_0x1df721));};