zmp-cli 3.15.7 → 3.15.9

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 +97 -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,97 @@
1
- ""
1
+ # Zalo Mini App CLI
2
+
3
+ Zalo Mini App CLI là một công cụ dòng lệnh cung cấp các lệnh giúp bạn đăng nhập, kiểm tra và thử nghiệm Zalo Mini App, tương tự như Zalo Mini App Extension. Tuy nhiên, bạn có thể sử dụng Zalo Mini App CLI với bất kỳ IDE hoặc trình soạn thảo văn bản nào, hoặc tích hợp vào các hệ thống CI/CD để tự động hóa các bước trong quá trình phát triển Zalo Mini App.
4
+
5
+ ## Cài Đặt
6
+
7
+ Để cài đặt Zalo Mini App CLI, bạn có thể thực hiện các bước sau:
8
+
9
+ 1. Mở terminal hoặc command prompt trên máy tính của bạn.
10
+ 2. Chạy lệnh:
11
+
12
+ ```sh
13
+ npm install -g zmp-cli
14
+ ```
15
+
16
+ Bạn có thể kiểm tra xem quá trình cài đặt đã thành công hay không bằng cách chạy lệnh `zmp --help`.
17
+
18
+ ![zmp --help](https://mini.zalo.me/documents/img/zmp-help.gif)
19
+
20
+ ## Đăng nhập
21
+
22
+ Trong quá trình phát triển Zalo Mini App, bạn sẽ thường xuyên được yêu cầu đăng nhập để xác thực tài khoản nhà phát triển Zalo Mini App. Zalo Mini App CLI cung cấp các cách để bạn đăng nhập và xác thực tài khoản sau:
23
+
24
+ | Hình thức | Mô tả |
25
+ | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
26
+ | QR Code | Một mã QR sẽ xuất hiện trên màn hình của bạn. Bạn cần sử dụng ứng dụng Zalo trên điện thoại để quét mã QR này. Sau khi quét mã QR, bạn cần nhấn vào nút Xác nhận trên ứng dụng Zalo trên điện thoại để hoàn tất quá trình đăng nhập trên Zalo Mini App CLI. |
27
+ | Access Token | Bạn cần cung cấp một access token hợp lệ. Để lấy access token, bạn có thể truy cập trang [Zalo for Developers](https://developers.zalo.me), sau đó chọn `Công cụ` > `API Explorer` và nhấn nút `Lấy Access Token`. Đảm bảo rằng bạn đã chọn đúng ứng dụng Zalo App mà bạn đang phát triển khi lấy access token (ở mục `Chọn ứng dụng`). |
28
+
29
+ ![zmp login](https://mini.zalo.me/documents/img/zmp-login.gif)
30
+
31
+ ## Tạo dự án
32
+
33
+ ```sh
34
+ zmp init
35
+ ```
36
+
37
+ Để tạo Zalo Mini App, bạn có thể lựa chọn một trong hai cách sau:
38
+
39
+ - **Create a new ZMP project** (Tạo mới): Zalo Mini App CLI sẽ tạo ra cấu trúc thư mục cho dự án mới và cài đặt các dependencies cần thiết vào thư mục hiện hành đang sử dụng (working directory).
40
+ - **Use ZMP to deploy only** (Chuyển đổi ứng dụng Web có sẵn thành Zalo Mini App): Zalo Mini App CLI sẽ bổ sung các file thiết lập cần thiết để bạn có thể đưa dự án có sẵn lên Zalo Mini App. Chi tiết bạn có thể tham khảo bài viết [Hướng dẫn chuyển đổi Web App thành Zalo Mini App trong 30 phút
41
+ ](https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut)
42
+
43
+ ### Các tuỳ chọn khi tạo dự án
44
+
45
+ | Thiết lập | Tạo mới | Chuyển đổi ứng dụng có sẵn | Mô tả |
46
+ | -------------------- | ------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47
+ | **Zalo Mini App ID** | ✓ | ✓ | ID của Zalo Mini App mà bạn đã đăng ký. Nếu chưa có, bạn có thể tạo ID cho mini app của mình ở [mini.zalo.me](https://mini.zalo.me/developers). |
48
+ | **Template** | ✓ | | CLI hỗ trợ tạo dự án với hai nhóm template: `Mới` chỉ gồm các thiết lập cơ bản để bạn tự phát triển từ đầu và `Dựng sẵn` cho các Mini App nhanh như quán ăn, cà phê, cửa hàng bán lẻ,… |
49
+ | **Name** | ✓ | ✓ | Tên dự án. |
50
+ | **Folder name** | ✓ | | Với luồng **Tạo mới**, CLI sẽ tạo một thư mục mới với tên này bên trong working directory để chứa mã nguồn của dự án. Với luồng **Chuyển đổi ứng dụng có sẵn**, thiết lập bổ sung sẽ được cập nhật trực tiếp vào working directory. |
51
+
52
+ ## Khởi động
53
+
54
+ ```sh
55
+ zmp start
56
+ ```
57
+
58
+ Để phát triển ứng dụng, bạn có thể sử dụng Zalo Mini App CLI để khởi động dự án trên máy tính. Khi đó, Mini App của bạn sẽ chạy giống như một ứng dụng web và bạn có thể sử dụng bất kỳ trình duyệt nào để xem trước giao diện.
59
+
60
+ ![zmp start](https://mini.zalo.me/documents/assets/images/zmp-start-3ca76fd382d17e3af55991da9f63003b.gif)
61
+
62
+ ### Chế độ Device
63
+
64
+ Zalo Mini App CLI cũng hỗ trợ khởi động dự án ở Device mode. Các yêu cầu đối với dự án là như nhau:
65
+
66
+ > - Liên kết với một Zalo Mini App ID hợp lệ.
67
+ > - Sử dụng phiên bản SDK mới nhất.
68
+ > - Sử dụng Vite 2.x cho dự án của bạn. Dự án sử dụng Webpack sẽ không tương thích với chế độ này.
69
+
70
+ Để khởi động dự án ở chế độ Device, bạn chỉ cần thêm flag `-D` vào cuối lệnh `start`:
71
+
72
+ ```bash
73
+ zmp start -D
74
+ ```
75
+
76
+ Một mã QR code sẽ hiển thị và bạn cần sử dụng ứng dụng Zalo trên thiết bị thật để quét mã này.
77
+
78
+ Để sử dụng các công cụ như Elements inspector, Console log, hay Network trong Devtools, bạn cần mở trình duyệt và nhập đường dẫn `http://localhost:<PORT>` được hiển thị trong output sau khi chạy lệnh start. Lưu ý: cần sử dụng trình duyệt Google Chrome hoặc một trình duyệt khác có nhân Chromium để mở đường dẫn trên.
79
+
80
+ ![zmp start -D](https://mini.zalo.me/documents/assets/images/zmp-start-3ca76fd382d17e3af55991da9f63003b.gif)
81
+
82
+ ## Xuất bản
83
+
84
+ ```sh
85
+ zmp deploy
86
+ ```
87
+
88
+ Lệnh này sẽ giúp bạn xuất bản ứng dụng của mình lên Zalo Mini App, từ đó bạn có thể gửi xét duyệt và cho phép người dùng truy cập và sử dụng ứng dụng của bạn trên Zalo.
89
+
90
+ ### Các tuỳ chọn khi xuất bản
91
+
92
+ | Thiết lập | Giá trị mặc định | Mô tả |
93
+ | -------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
94
+ | Version status | Development | <ul><li>Development: không hiển thị trên mục Quản lý phiên bản của mini app và sẽ bị ghi đè bởi bản phát triển mới mỗi khi deploy. Điều này tiện lợi khi bạn muốn kiểm tra nhanh trên Zalo khi ứng dụng vẫn đang được phát triển.</li><li>Testing: tất cả các phiên bản kiểm thử đều được đánh số và lưu trữ trên mục Quản lý phiên bản. Bạn có thể gửi phiên bản kiểm thử để xem xét và phát hành phiên bản đã được xem xét để người dùng Zalo có thể sử dụng.</li></ul> |
95
+ | Description | | Mô tả phiên bản |
96
+
97
+ ![zmp login](https://mini.zalo.me/documents/assets/images/zmp-deploy-b1b48e06267d443950111ab895778fa1.gif#bordered)
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 _0x5210db=_0xd946;function _0xd946(_0x2b2ef5,_0x1d6143){const _0x45df68=_0x45df();return _0xd946=function(_0xd9463f,_0x154fa6){_0xd9463f=_0xd9463f-0x107;let _0x282e40=_0x45df68[_0xd9463f];return _0x282e40;},_0xd946(_0x2b2ef5,_0x1d6143);}(function(_0x14bd57,_0x3ea2d5){const _0x4a9ccf=_0xd946,_0x1e7abc=_0x14bd57();while(!![]){try{const _0x522e7c=-parseInt(_0x4a9ccf(0x122))/0x1*(-parseInt(_0x4a9ccf(0x129))/0x2)+-parseInt(_0x4a9ccf(0x133))/0x3+-parseInt(_0x4a9ccf(0x136))/0x4*(parseInt(_0x4a9ccf(0x121))/0x5)+parseInt(_0x4a9ccf(0x111))/0x6*(parseInt(_0x4a9ccf(0x128))/0x7)+parseInt(_0x4a9ccf(0x11c))/0x8*(parseInt(_0x4a9ccf(0x10e))/0x9)+-parseInt(_0x4a9ccf(0x134))/0xa+parseInt(_0x4a9ccf(0x116))/0xb;if(_0x522e7c===_0x3ea2d5)break;else _0x1e7abc['push'](_0x1e7abc['shift']());}catch(_0x195fa6){_0x1e7abc['push'](_0x1e7abc['shift']());}}}(_0x45df,0x9ede8));const e=require(_0x5210db(0x108)),r=require(_0x5210db(0x10f)),t=require(_0x5210db(0x11f)),i=require('@rollup/plugin-dynamic-import-vars')['default'],o=require(_0x5210db(0x131)),{buildApp:n}=require('zmp-cli-core'),u=require('../utils/fs-extra'),a=require(_0x5210db(0x11b)),l=require('../utils/env'),{errorExit:s}=require(_0x5210db(0x110)),p=require(_0x5210db(0x12f)),g=require(_0x5210db(0x11d)),{existsSync:c}=require('fs'),w=l[_0x5210db(0x10b)]('NODE_ENV')||_0x5210db(0x12a),d=e[_0x5210db(0x10a)]('Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),f=e['yellow'](_0x5210db(0x115)),m=r(_0x5210db(0x12a)===w?_0x5210db(0x135):_0x5210db(0x120));function _0x45df(){const _0x9ceacd=['3783516iPjPDS','error','appConfig','writeFileSync','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','11227535IAkFJv','cwd','statusError','statusStart','bold','../utils/get-app-info','11752hAxiUq','../utils/generate-pages-map','join','path','Building\x20development\x20version...','1240gBAxDl','40563QwHSkn','statusDone','Build\x20Done!\x0a','appId','latestVersion','filename','7ijHbLb','26OMiwOg','production','www/','green','node_modules','text','../config','env','@rollup/plugin-replace','Error\x20building\x20project','1994088MGRCfN','1296950LAWTwF','Building\x20for\x20production...','17256cdygNr','exports','chalk','zmp-framework','gray','getEnv','stringify','start','2061lRirhv','ora','../utils/error'];_0x45df=function(){return _0x9ceacd;};return _0x45df();}module[_0x5210db(0x107)]=async(_0x325113={},_0x5086dd)=>{const _0x2af529=_0x5210db;let _0x467ff7=_0x325113[_0x2af529(0x117)]||process[_0x2af529(0x117)](),_0x18958e=_0x466539=>t['join'](_0x467ff7,_0x466539),_0xd1a839=_0x325113['appConfigJson']||require(_0x18958e(p[_0x2af529(0x127)][_0x2af529(0x113)]));_0x5086dd||(_0x5086dd={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),c(t[_0x2af529(0x11e)](_0x467ff7,_0x2af529(0x12d),_0x2af529(0x109)))&&_0x5086dd['text'](f),m[_0x2af529(0x10d)](),_0x5086dd[_0x2af529(0x119)](d);try{let _0x46cce6=l[_0x2af529(0x10b)](p[_0x2af529(0x130)][_0x2af529(0x125)]),_0x12d3f2=_0x325113['nextVersion'];if(!_0x12d3f2){let _0x22fcee=await a(_0x46cce6,_0x325113),_0x10a20c=_0x22fcee&&_0x22fcee[_0x2af529(0x126)]&&Number(_0x22fcee['latestVersion']);null==_0x10a20c&&(_0x10a20c=0x0),_0x12d3f2=_0x10a20c+0x1;}let {appConfigJson:_0x3b3cfa}=await n({'cwd':_0x467ff7,'mode':w,'appId':_0x46cce6,'nextVersion':_0x12d3f2,'appConfig':_0xd1a839,'outDir':'www','vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>g(_0x467ff7)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x5086dd['text'],'warn':_0x5086dd[_0x2af529(0x12e)],'warnOnce':_0x5086dd[_0x2af529(0x12e)],'error':_0x5086dd[_0x2af529(0x112)]}});return _0x3b3cfa&&u[_0x2af529(0x114)](_0x18958e(_0x2af529(0x12b)+p['filename']['appConfig']),JSON[_0x2af529(0x10c)](_0x3b3cfa)),_0x5086dd[_0x2af529(0x123)](''+e[_0x2af529(0x11a)][_0x2af529(0x12c)](_0x2af529(0x124))),_0x3b3cfa;}catch(_0x49566b){_0x5086dd[_0x2af529(0x118)](_0x2af529(0x132)),s(_0x49566b);return;}};
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';function _0x3763(){var _0x21c247=['1919797vBHGfM','1585944MUEbAB','136FgfFtU','cwd','zmp-cli.json','36tVpiii','31765mEBWzH','app/request-upload','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','34018EzUfOD','octet','5aUTmbs','196408UhqssF','admin/get-login-status','admin/request-login','/.env','2109450mTsGMu','app/upload-chunk','app/get-info','Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','Request\x20Timeout','10FbmCEV','1331400mSKlvq','https://zmp-api.developers.zalo.me/','//h5.zdn.vn/zapps/','ZMP_TOKEN','APP_ID'];_0x3763=function(){return _0x21c247;};return _0x3763();}var _0x2a9474=_0x1b39;(function(_0x20a399,_0x1e250a){var _0x5ae351=_0x1b39,_0x56f901=_0x20a399();while(!![]){try{var _0x1d01c=-parseInt(_0x5ae351(0x124))/0x1*(-parseInt(_0x5ae351(0x122))/0x2)+parseInt(_0x5ae351(0x12f))/0x3+-parseInt(_0x5ae351(0x11b))/0x4*(parseInt(_0x5ae351(0x11f))/0x5)+parseInt(_0x5ae351(0x11a))/0x6+-parseInt(_0x5ae351(0x129))/0x7+-parseInt(_0x5ae351(0x125))/0x8*(-parseInt(_0x5ae351(0x11e))/0x9)+parseInt(_0x5ae351(0x12e))/0xa*(parseInt(_0x5ae351(0x119))/0xb);if(_0x1d01c===_0x1e250a)break;else _0x56f901['push'](_0x56f901['shift']());}catch(_0x373da7){_0x56f901['push'](_0x56f901['shift']());}}}(_0x3763,0x85ec4));function _0x1b39(_0x345519,_0x4c71fe){var _0x37633f=_0x3763();return _0x1b39=function(_0x1b3981,_0x594409){_0x1b3981=_0x1b3981-0x118;var _0x13780f=_0x37633f[_0x1b3981];return _0x13780f;},_0x1b39(_0x345519,_0x4c71fe);}module['exports']={'filename':{'appConfig':'app-config.json','zmpConfig':_0x2a9474(0x11d),'packageJson':'package.json'},'api_domain':_0x2a9474(0x130),'zdn_url':_0x2a9474(0x131),'path':{'login':'admin/login','requestLogin':_0x2a9474(0x127),'checkLoginStatus':_0x2a9474(0x126),'uploadAppByChunk':_0x2a9474(0x12a),'requestUploadResumable':_0x2a9474(0x120),'getAppInfo':_0x2a9474(0x12b)},'dirname':__dirname,'root_env':()=>process[_0x2a9474(0x11c)]()+_0x2a9474(0x128),'env':{'appId':_0x2a9474(0x118),'token':_0x2a9474(0x132)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x2a9474(0x121),'permission_denied':_0x2a9474(0x12c),'request_timeout':_0x2a9474(0x12d)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x2a9474(0x123),'forceChunkSize':!0x1}};
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';function _0x47af(){const _0x5a0602=['cwd','\x20💪\x0a\x0a','bold','appConfig','npm\x20install','writeFileSync','10268220pVWeiK','log-symbols','statusError','747816PjmVRx','213yWnIKQ','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','\x0a\x20\x20','4274914xgddWE','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','Done!','statusStart','exec-sh','promise','join','Creating\x20project\x20files','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','statusDone','Installing\x20NPM\x20Dependencies','23804fuRVLq','gray','\x20Run\x20\x22npm\x20run\x20','folderName','resolve','chalk','Next\x20steps:','filename','path','\x22\x20-\x20','./utils/generate-app-config','Error\x20creating\x20project\x20files','info','../config','2817786ZRnXyM','128SKBFyo','271446WgBlxU','text','Generating\x20app-config.json','\x0a-\x20👉\x20Run\x20\x22cd\x20','Error\x20installing\x20NPM\x20Dependencies','10bXzBXo','newProject','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','README.md','\x20&&\x20npm\x20install','../utils/error','606834fDuDWs'];_0x47af=function(){return _0x5a0602;};return _0x47af();}const _0x4a6d57=_0x40eb;(function(_0x400655,_0x82a32d){const _0x55c8a7=_0x40eb,_0x24bdfc=_0x400655();while(!![]){try{const _0x2af876=parseInt(_0x55c8a7(0x194))/0x1+parseInt(_0x55c8a7(0x1b3))/0x2+-parseInt(_0x55c8a7(0x195))/0x3*(-parseInt(_0x55c8a7(0x1a3))/0x4)+-parseInt(_0x55c8a7(0x184))/0x5*(-parseInt(_0x55c8a7(0x1b1))/0x6)+parseInt(_0x55c8a7(0x198))/0x7+parseInt(_0x55c8a7(0x1b2))/0x8*(-parseInt(_0x55c8a7(0x18a))/0x9)+-parseInt(_0x55c8a7(0x191))/0xa;if(_0x2af876===_0x82a32d)break;else _0x24bdfc['push'](_0x24bdfc['shift']());}catch(_0x478f87){_0x24bdfc['push'](_0x24bdfc['shift']());}}}(_0x47af,0xb7332));const e=require(_0x4a6d57(0x19c)),t=require(_0x4a6d57(0x1ab)),n=require(_0x4a6d57(0x1a8)),r=require(_0x4a6d57(0x192)),{initProject:i}=require('zmp-cli-core'),o=require('../utils/fs-extra'),{errorExit:s}=require(_0x4a6d57(0x189)),a=require(_0x4a6d57(0x1b0)),c=require(_0x4a6d57(0x1ad)),l=require('./utils/generate-npm-scripts'),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x4a6d57(0x1a4)](_0x4a6d57(0x196));async function f(_0x5c34d5,_0x3780c5){const _0x150ef7=_0x4a6d57;_0x3780c5[_0x150ef7(0x19b)](_0x150ef7(0x19f));try{let {cwd:_0x37d3b9,template:_0x3f695d,folderName:_0x23cd4f,name:_0x2b853e}=_0x5c34d5;await i({'cwd':_0x37d3b9,'template':_0x3f695d,'folderName':_0x23cd4f,'projectName':_0x2b853e});}catch(_0x5bac50){_0x3780c5[_0x150ef7(0x193)](_0x150ef7(0x1ae)),s(_0x5bac50);}_0x3780c5[_0x150ef7(0x1a1)](_0x150ef7(0x19f));}async function m(_0x467cfa){const _0x349bcd=_0x4a6d57;let _0x170e74=t[_0x349bcd(0x1a7)](_0x467cfa[_0x349bcd(0x18b)],'.env'),_0x33c27f=t[_0x349bcd(0x1a7)](_0x467cfa[_0x349bcd(0x18b)],_0x467cfa['folderName'],'.env');p(_0x170e74)&&!p(_0x33c27f)&&u(_0x170e74,_0x33c27f);}async function g(_0x42a109,_0x5ed2fe){const _0x4d0a8b=_0x4a6d57;let {cwd:_0x1a5ca3}=_0x42a109;_0x5ed2fe[_0x4d0a8b(0x19b)](_0x4d0a8b(0x181));let _0x4ff7be=c(_0x42a109);o[_0x4d0a8b(0x190)](t['join'](_0x1a5ca3,a[_0x4d0a8b(0x1aa)][_0x4d0a8b(0x18e)]),_0x4ff7be['content']),_0x5ed2fe[_0x4d0a8b(0x1a1)](_0x4d0a8b(0x181));}function _0x40eb(_0x132add,_0x3cb603){const _0x47afd7=_0x47af();return _0x40eb=function(_0x40eb71,_0x586096){_0x40eb71=_0x40eb71-0x181;let _0x4a353a=_0x47afd7[_0x40eb71];return _0x4a353a;},_0x40eb(_0x132add,_0x3cb603);}async function $(_0x1a3555,_0x2eb3bf){const _0x37e487=_0x4a6d57;let _0x1caad0=t['join'](_0x1a3555[_0x37e487(0x18b)],_0x1a3555['folderName']);_0x2eb3bf['statusStart']('Installing\x20NPM\x20Dependencies\x20'+d);let _0x389f39=_0x1caad0===process['cwd']();try{_0x389f39?await e[_0x37e487(0x19d)](_0x37e487(0x18f),!0x0):await e[_0x37e487(0x19d)]('cd\x20'+_0x1caad0['replace'](/ /g,'\x5c\x20')+_0x37e487(0x188),!0x0);}catch(_0xa13c6d){_0x2eb3bf[_0x37e487(0x193)](_0x37e487(0x183)),s(_0xa13c6d);return;}_0x2eb3bf['statusDone'](_0x37e487(0x1a2));}async function h(_0x27300c,_0xfb4870){const _0x1322cd=_0x4a6d57;let _0xd46f0e=l(['s','r'])['map'](_0x453867=>'-\x20'+_0x453867['icon']+_0x1322cd(0x1a5)+_0x453867['name']+_0x1322cd(0x1ac)+_0x453867['description']),_0x8833be='\x0a'+n['bold'](r['success'])+'\x20'+n[_0x1322cd(0x18d)](_0x1322cd(0x19a))+_0x1322cd(0x18c)+n[_0x1322cd(0x18d)](r[_0x1322cd(0x1af)])+'\x20'+n['bold'](_0x1322cd(0x1a9))+_0x1322cd(0x182)+_0x27300c[_0x1322cd(0x1a6)]+'\x22\x0a'+_0xd46f0e[_0x1322cd(0x19e)]('\x0a')+_0x1322cd(0x186)+n[_0x1322cd(0x18d)]('https://mini.zalo.me/')+'\x0a-\x20📖\x20Check\x20'+n[_0x1322cd(0x18d)](_0x1322cd(0x187))+_0x1322cd(0x199);_0xfb4870[_0x1322cd(0x1b4)](_0x8833be);}async function y(_0x344bd8,_0x2c87ad){const _0x5beb90=_0x4a6d57;let _0x9bc8cc='\x0a'+n[_0x5beb90(0x18d)](r['success'])+'\x20'+n[_0x5beb90(0x18d)](_0x5beb90(0x19a))+_0x5beb90(0x18c)+n[_0x5beb90(0x18d)](r[_0x5beb90(0x1af)])+'\x20'+n[_0x5beb90(0x18d)]('Next\x20steps:')+_0x5beb90(0x1a0)+n[_0x5beb90(0x18d)]('https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/')+_0x5beb90(0x197);_0x2c87ad[_0x5beb90(0x1b4)](_0x9bc8cc);}module['exports']=async(_0xbe7e73={},_0xfc54e2)=>{const _0x57e1d8=_0x4a6d57;for(let _0x43f2f4 of(_0xfc54e2||(_0xfc54e2={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0xbe7e73[_0x57e1d8(0x185)]?[f,m,$,h]:[g,y]))await _0x43f2f4(_0xbe7e73,_0xfc54e2);};
@@ -1 +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';function _0x2e46(){const _0x119aec=['751867xaVHVL','126dCIDWy','white','23988DVVrda','4543zjlxid','120920HuDyvI','116UrIEHR','2022vapVXl','1673QpgEnW','41138gHELHS','trim','4738100xDRkwo','back','stringify','normal','111gKRafu','504664GKjBWv'];_0x2e46=function(){return _0x119aec;};return _0x2e46();}function _0x3fed(_0x2f920d,_0x385bc3){const _0x2e465a=_0x2e46();return _0x3fed=function(_0x3fedd8,_0x1766f7){_0x3fedd8=_0x3fedd8-0x192;let _0x1856d5=_0x2e465a[_0x3fedd8];return _0x1856d5;},_0x3fed(_0x2f920d,_0x385bc3);}(function(_0x1ea12a,_0x9a48ad){const _0x498f91=_0x3fed,_0x41281c=_0x1ea12a();while(!![]){try{const _0x3fcb93=parseInt(_0x498f91(0x192))/0x1+parseInt(_0x498f91(0x19b))/0x2*(parseInt(_0x498f91(0x1a1))/0x3)+-parseInt(_0x498f91(0x198))/0x4*(parseInt(_0x498f91(0x197))/0x5)+-parseInt(_0x498f91(0x199))/0x6*(-parseInt(_0x498f91(0x19a))/0x7)+parseInt(_0x498f91(0x1a2))/0x8*(parseInt(_0x498f91(0x193))/0x9)+-parseInt(_0x498f91(0x19d))/0xa+parseInt(_0x498f91(0x196))/0xb*(-parseInt(_0x498f91(0x195))/0xc);if(_0x3fcb93===_0x9a48ad)break;else _0x41281c['push'](_0x41281c['shift']());}catch(_0xc9ad9){_0x41281c['push'](_0x41281c['shift']());}}}(_0x2e46,0x742f4));module['exports']=function(_0x33b9bb){const _0x4d9fad=_0x3fed;let {name:_0x45e10c}=_0x33b9bb,_0x35b5e4={'title':_0x45e10c,'headerTitle':_0x45e10c,'headerColor':'#1843EF','textColor':_0x4d9fad(0x194),'leftButton':_0x4d9fad(0x19e),'statusBar':_0x4d9fad(0x1a0),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x4d9fad(0x19f)]({'app':_0x35b5e4,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)[_0x4d9fad(0x19c)](),'appConfig':_0x35b5e4};};
@@ -1 +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 _0x55e88a=_0x5d90;(function(_0x9f4cc7,_0x5eaaba){const _0x386307=_0x5d90,_0xd7ae17=_0x9f4cc7();while(!![]){try{const _0x4f379c=-parseInt(_0x386307(0x185))/0x1+-parseInt(_0x386307(0x182))/0x2+-parseInt(_0x386307(0x17d))/0x3*(parseInt(_0x386307(0x17a))/0x4)+parseInt(_0x386307(0x174))/0x5+-parseInt(_0x386307(0x175))/0x6+-parseInt(_0x386307(0x180))/0x7+-parseInt(_0x386307(0x184))/0x8*(-parseInt(_0x386307(0x181))/0x9);if(_0x4f379c===_0x5eaaba)break;else _0xd7ae17['push'](_0xd7ae17['shift']());}catch(_0xca875e){_0xd7ae17['push'](_0xd7ae17['shift']());}}}(_0x25ec,0xb5b25));function _0x25ec(){const _0xbf8d53=['script','556503vcGJWA','exports','icon','9703848WgPohV','76248HPruHu','1514532CVkCnM','map','3968tUzqBR','163334eeNYZf','3919710ibCDYJ','2705718oWLNsH','name','tailwind','./npm-scripts','default','32SNcwOE','description'];_0x25ec=function(){return _0xbf8d53;};return _0x25ec();}function _0x5d90(_0x586d8e,_0x5d78b3){const _0x25ecc9=_0x25ec();return _0x5d90=function(_0x5d901b,_0xa4ba08){_0x5d901b=_0x5d901b-0x174;let _0xc5ee5e=_0x25ecc9[_0x5d901b];return _0xc5ee5e;},_0x5d90(_0x586d8e,_0x5d78b3);}const i=require(_0x55e88a(0x178));module[_0x55e88a(0x17e)]=(_0x25cdea=['s','r'])=>_0x25cdea[_0x55e88a(0x183)](_0x1b1d36=>({'icon':i['default'][_0x1b1d36][_0x55e88a(0x17f)],'name':i[_0x55e88a(0x179)][_0x1b1d36][_0x55e88a(0x176)],'script':i['default'][_0x1b1d36][_0x55e88a(0x17c)],'description':i[_0x55e88a(0x179)][_0x1b1d36]['description']})),module[_0x55e88a(0x17e)]['generateTailWindScripts']=(_0x23abdb=['t'])=>_0x23abdb['map'](_0x44c4e7=>({'icon':i[_0x55e88a(0x177)][_0x44c4e7]['icon'],'name':i['tailwind'][_0x44c4e7][_0x55e88a(0x176)],'script':i['tailwind'][_0x44c4e7][_0x55e88a(0x17c)],'description':i[_0x55e88a(0x177)][_0x44c4e7][_0x55e88a(0x17b)]}));
@@ -1 +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';function _0x90d3(){const _0x3418d7=['name','isBlank','100892HfyKSA','ZaUI\x20','input','Existing\x20project','newProject','filter','zmp-cli-core','Folder\x20name\x20is\x20required','inquirer','Choose\x20a\x20template:','map','\x20App','toLowerCase','23345UomTzU','9UdYmeU','italic','list','folderName','32890DvNTPC','9fLqWyN','43238HFAuDa','New\x20project','template','prompt','What\x20action\x20you\x20want\x20to\x20do?','App\x20name\x20is\x20required','731668sIAZyE','1647064hYPGWP','24rfXWBB','App\x20(project)\x20name:','replace','448401ENkDnN','My\x20'];_0x90d3=function(){return _0x3418d7;};return _0x90d3();}const _0x5cfb0a=_0x5a0b;function _0x5a0b(_0x38db06,_0x1ae2da){const _0x90d315=_0x90d3();return _0x5a0b=function(_0x5a0b35,_0x5dbb43){_0x5a0b35=_0x5a0b35-0x1bb;let _0x1244fe=_0x90d315[_0x5a0b35];return _0x1244fe;},_0x5a0b(_0x38db06,_0x1ae2da);}(function(_0x587555,_0x714347){const _0x1c3442=_0x5a0b,_0x888eca=_0x587555();while(!![]){try{const _0x502c06=parseInt(_0x1c3442(0x1c1))/0x1*(parseInt(_0x1c3442(0x1c7))/0x2)+-parseInt(_0x1c3442(0x1d2))/0x3+-parseInt(_0x1c3442(0x1d6))/0x4+parseInt(_0x1c3442(0x1c0))/0x5*(parseInt(_0x1c3442(0x1cf))/0x6)+-parseInt(_0x1c3442(0x1cd))/0x7+parseInt(_0x1c3442(0x1ce))/0x8*(parseInt(_0x1c3442(0x1c6))/0x9)+parseInt(_0x1c3442(0x1c5))/0xa;if(_0x502c06===_0x714347)break;else _0x888eca['push'](_0x888eca['shift']());}catch(_0x462070){_0x888eca['push'](_0x888eca['shift']());}}}(_0x90d3,0x22f65));const e=require(_0x5cfb0a(0x1bb)),r=require('chalk'),{INIT_TEMPLATES:a}=require(_0x5cfb0a(0x1dc)),t=[{'type':_0x5cfb0a(0x1c3),'name':_0x5cfb0a(0x1da),'message':_0x5cfb0a(0x1cb),'choices':[{'name':'Create\x20a\x20new\x20ZMP\x20project','value':!0x0,'short':_0x5cfb0a(0x1c8)},{'name':'Using\x20ZMP\x20to\x20deploy\x20only','value':!0x1,'short':_0x5cfb0a(0x1d9)}]},{'type':_0x5cfb0a(0x1c3),'name':_0x5cfb0a(0x1c9),'when':_0xf960eb=>_0xf960eb[_0x5cfb0a(0x1da)],'message':_0x5cfb0a(0x1bc),'choices':[...a[_0x5cfb0a(0x1db)](_0x2ad020=>_0x2ad020['isBlank'])['map'](_0x10b263=>({'name':_0x10b263['name'],'value':_0x10b263})),new e['Separator'](),...a[_0x5cfb0a(0x1db)](_0x2180b3=>!_0x2180b3[_0x5cfb0a(0x1d5)])[_0x5cfb0a(0x1bd)](_0x22e6ba=>({'name':_0x22e6ba[_0x5cfb0a(0x1d4)],'value':_0x22e6ba}))]},{'type':_0x5cfb0a(0x1d8),'name':_0x5cfb0a(0x1d4),'message':_0x5cfb0a(0x1d0),'default':_0x548a9a=>{const _0x258e89=_0x5cfb0a;let {template:_0x38cbe2}=_0x548a9a;return _0x38cbe2&&!_0x38cbe2[_0x258e89(0x1d5)]?_0x258e89(0x1d3)+_0x38cbe2[_0x258e89(0x1d4)][_0x258e89(0x1d1)](_0x258e89(0x1d7),'')+_0x258e89(0x1be):'My\x20App';},'validate':_0x38a0ff=>new Promise((_0x3d421f,_0x20ff01)=>{const _0x1aec20=_0x5cfb0a;_0x38a0ff?_0x3d421f(!0x0):_0x20ff01(Error(_0x1aec20(0x1cc)));})},{'type':'input','name':_0x5cfb0a(0x1c4),'when':_0x2f6bfa=>_0x2f6bfa[_0x5cfb0a(0x1da)],'message':'Folder\x20name:','suffix':'\x0a'+r[_0x5cfb0a(0x1c2)]('(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)'),'default':_0x17dc03=>{const _0x4aec46=_0x5cfb0a;let {name:_0x897c6c}=_0x17dc03;return _0x897c6c[_0x4aec46(0x1d1)](/ /g,'-')[_0x4aec46(0x1d1)](/[^a-zA-Z0-9-]/g,'')[_0x4aec46(0x1bf)]();},'validate':_0x4e6628=>new Promise((_0x1e525e,_0x446a04)=>{const _0x1826a8=_0x5cfb0a;_0x4e6628?_0x1e525e(!0x0):_0x446a04(Error(_0x1826a8(0x1dd)));})}];module['exports']=function(){const _0x14ca77=_0x5cfb0a;return e[_0x14ca77(0x1ca)](t)['then'](_0x39d0b5=>Promise['resolve'](_0x39d0b5));};
@@ -1 +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';function _0x3ca3(){const _0x3f7f97=['4775655mwTHAn','4702768QGxwke','38011150VqBopw','prod','3051EPVnod','run\x20development\x20server','deploy\x20mini\x20app\x20for\x20production','186KmVerM','tailwind','start','1411GyyuFh','forEach','76QiFwqV','558BxOgYj','exports','zmp\x20deploy','serve','http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','build:css','zmp\x20start','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','deploy','keys','dev','116557CmCuHt','default','map','7539516WyBSAB','join','name','split','httpServer','build\x20tailwind\x20css'];_0x3ca3=function(){return _0x3f7f97;};return _0x3ca3();}function _0x3b8e(_0x2ddd3f,_0xb24a37){const _0x3ca3c8=_0x3ca3();return _0x3b8e=function(_0x3b8e22,_0x2ac162){_0x3b8e22=_0x3b8e22-0xf6;let _0x2f7d4c=_0x3ca3c8[_0x3b8e22];return _0x2f7d4c;},_0x3b8e(_0x2ddd3f,_0xb24a37);}const _0x332c87=_0x3b8e;(function(_0x5680e5,_0x5b75bc){const _0x150fc5=_0x3b8e,_0x4408da=_0x5680e5();while(!![]){try{const _0x8db835=-parseInt(_0x150fc5(0x10a))/0x1*(parseInt(_0x150fc5(0x10d))/0x2)+parseInt(_0x150fc5(0x104))/0x3*(-parseInt(_0x150fc5(0x10c))/0x4)+-parseInt(_0x150fc5(0x100))/0x5+parseInt(_0x150fc5(0x107))/0x6*(-parseInt(_0x150fc5(0xf7))/0x7)+-parseInt(_0x150fc5(0x101))/0x8+-parseInt(_0x150fc5(0xfa))/0x9+parseInt(_0x150fc5(0x102))/0xa;if(_0x8db835===_0x5b75bc)break;else _0x4408da['push'](_0x4408da['shift']());}catch(_0x89c638){_0x4408da['push'](_0x4408da['shift']());}}}(_0x3ca3,0x77ee9));const e={'d':_0x332c87(0xf6),'p':_0x332c87(0x103),'s':_0x332c87(0x109),'v':_0x332c87(0x110),'r':_0x332c87(0x115),'t':_0x332c87(0x112)};function s(_0x171625){const _0x38c6ac=_0x332c87;return _0x171625[_0x38c6ac(0xfd)]('_')[0x0][_0x38c6ac(0xfd)]('')[_0x38c6ac(0xf9)](_0xf64edc=>e[_0xf64edc])[_0x38c6ac(0xfb)]('-');}const t={'default':{'s':{'icon':'🔥','script':_0x332c87(0x113),'description':_0x332c87(0x105)},'r':{'icon':'🙏','script':_0x332c87(0x10f),'description':_0x332c87(0x106)}},'httpServer':{'v':{'icon':'🔧','script':_0x332c87(0x111),'description':_0x332c87(0x105)},'s':{'icon':'🔥','script':'npm\x20run\x20serve','description':_0x332c87(0x105)}},'tailwind':{'t':{'icon':'🔧','script':_0x332c87(0x114),'description':_0x332c87(0xff)}}};Object[_0x332c87(0x116)](t[_0x332c87(0xf8)])[_0x332c87(0x10b)](_0x526eff=>{const _0x2b2b24=_0x332c87;t['default'][_0x526eff][_0x2b2b24(0xfc)]=s(_0x526eff);}),Object['keys'](t[_0x332c87(0xfe)])[_0x332c87(0x10b)](_0x4c3178=>{const _0x3632cd=_0x332c87;t[_0x3632cd(0xfe)][_0x4c3178][_0x3632cd(0xfc)]=s(_0x4c3178);}),Object[_0x332c87(0x116)](t[_0x332c87(0x108)])[_0x332c87(0x10b)](_0x3590ef=>{const _0x1b9725=_0x332c87;t[_0x1b9725(0x108)][_0x3590ef][_0x1b9725(0xfc)]=s(_0x3590ef);}),module[_0x332c87(0x10e)]=t;
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 _0x4410(){const _0x594fb2=['versionStatus','18bcyTRu','filename','Update\x20app\x20with\x20new\x20version','7072296yJHqFz','statusDone','nextVersion','3526400IJOITo','../utils/env','data','569524aEawxr','293730frgZqX','zip','4kVFCLP','appConfig','includes','appUrl','listAsyncJS','dependencies','desc','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','packageJson','listSyncJS','join','path','memory','zmp','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','\x20View\x20app\x20at:\x0a','entries','error_msg','statusStart','length','4880172SbAOse','customProject','cwd','./utils/request-upload','../config','Error\x20deploying\x20your\x20app','Deploying\x20Your\x20App\x20','../build/index','token','exports','3996160lqzBpX','stringify','requestUploadResumable','8068770wRouvQ','green','\x20💪','info','log-symbols','bold','../utils/fs-extra','env','react','outputDir','www','Deploy\x20Done!'];_0x4410=function(){return _0x594fb2;};return _0x4410();}const _0x5c97c3=_0x5bf4;(function(_0x44d1ea,_0x340e79){const _0x3b70ab=_0x5bf4,_0x3a4517=_0x44d1ea();while(!![]){try{const _0xbe4cd2=parseInt(_0x3b70ab(0x21f))/0x1*(parseInt(_0x3b70ab(0x21d))/0x2)+-parseInt(_0x3b70ab(0x213))/0x3*(-parseInt(_0x3b70ab(0x21c))/0x4)+parseInt(_0x3b70ab(0x219))/0x5+parseInt(_0x3b70ab(0x1f9))/0x6+-parseInt(_0x3b70ab(0x203))/0x7+-parseInt(_0x3b70ab(0x216))/0x8+-parseInt(_0x3b70ab(0x206))/0x9;if(_0xbe4cd2===_0x340e79)break;else _0x3a4517['push'](_0x3a4517['shift']());}catch(_0xbe57e8){_0x3a4517['push'](_0x3a4517['shift']());}}}(_0x4410,0x94aad));function _0x5bf4(_0x5846a9,_0x8420bf){const _0x441093=_0x4410();return _0x5bf4=function(_0x5bf44f,_0x4835af){_0x5bf44f=_0x5bf44f-0x1ef;let _0x2d7360=_0x441093[_0x5bf44f];return _0x2d7360;},_0x5bf4(_0x5846a9,_0x8420bf);}const e=require('chalk'),t=require('path'),r=require('zip-local'),i=require(_0x5c97c3(0x20a)),a=require('qrcode-terminal'),s=require(_0x5c97c3(0x1fd)),n=require(_0x5c97c3(0x200)),o=require(_0x5c97c3(0x21a)),{errorExit:l}=require('../utils/error'),p=require('./utils/upload-app'),u=require(_0x5c97c3(0x20c)),c=require(_0x5c97c3(0x1fc)),d=e['gray'](_0x5c97c3(0x1f3)),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};module[_0x5c97c3(0x202)]=async(_0x29ca49={},_0x41f636=f)=>{const _0x3836ba=_0x5c97c3;let _0x18c926,_0x55540a,_0x17d0ab,_0x4759cb=_0x29ca49[_0x3836ba(0x1fb)]||process['cwd'](),_0x393618=_0x29ca49[_0x3836ba(0x20f)]||_0x3836ba(0x210),_0xfb2c19=s['api_domain'],_0x335731=_0x45c852=>t[_0x3836ba(0x1ef)](_0x4759cb,_0x45c852),_0x5a129f=o['getEnv'](s[_0x3836ba(0x20d)][_0x3836ba(0x201)]),_0x3089f=s[_0x3836ba(0x214)][_0x3836ba(0x220)],_0x19032a=s[_0x3836ba(0x214)][_0x3836ba(0x227)],_0x4ee7e9=!0x0;try{_0x18c926=require(_0x335731(_0x3089f));}catch(_0x4d91ba){try{_0x18c926=require(_0x335731(_0x393618+'/'+_0x3089f)),_0x4ee7e9=!0x1;}catch(_0xa91a94){l(Error(s[_0x3836ba(0x1f6)]['app_config_not_found']));}}let _0x3bba46={};try{let _0x1197af=require(_0x335731(_0x19032a))[_0x3836ba(0x224)];Object[_0x3836ba(0x1f5)](_0x1197af)['forEach'](([_0x3140dc,_0x55ccc1])=>{const _0xfc24ba=_0x3836ba;(_0x3140dc[_0xfc24ba(0x221)](_0xfc24ba(0x1f2))||_0x3140dc[_0xfc24ba(0x221)](_0xfc24ba(0x20e)))&&(_0x3bba46[_0x3140dc]=_0x55ccc1);});}catch(_0x4fed5b){}let _0x57f923={'appName':_0x18c926['app']['title'],'appDesc':_0x29ca49[_0x3836ba(0x225)]||_0x3836ba(0x215),'appConfig':JSON['stringify'](_0x18c926),'frameworkVersions':JSON[_0x3836ba(0x204)](_0x3bba46)};try{let _0x2f203d=''+_0xfb2c19+s[_0x3836ba(0x1f0)][_0x3836ba(0x205)],_0x2af301=await c(_0x2f203d,_0x57f923,_0x29ca49[_0x3836ba(0x212)],_0x5a129f);_0x55540a=_0x2af301[_0x3836ba(0x218)],_0x17d0ab=_0x2af301['identifier'];}catch(_0x58aed9){l(_0x58aed9);}if(_0x29ca49[_0x3836ba(0x1fa)]){let _0x1f1a36=0x0;_0x18c926[_0x3836ba(0x228)]&&_0x18c926[_0x3836ba(0x228)][_0x3836ba(0x1f8)]>0x0&&(_0x1f1a36+=0x1),_0x18c926[_0x3836ba(0x223)]&&_0x18c926[_0x3836ba(0x223)][_0x3836ba(0x1f8)]>0x0&&(_0x1f1a36+=0x1),0x0===_0x1f1a36&&l(Error(_0x3836ba(0x226))),_0x4ee7e9&&u['writeFileSync'](_0x335731(_0x393618+'/'+s[_0x3836ba(0x214)][_0x3836ba(0x220)]),JSON['stringify'](_0x18c926));}else _0x18c926=await n({..._0x29ca49,'appConfigJson':_0x18c926,'nextVersion':_0x55540a},_0x41f636);_0x41f636[_0x3836ba(0x1f7)](_0x3836ba(0x1ff)+d);try{let _0x354425=await new Promise((_0x23b7c2,_0x3d14cc)=>{const _0x113187=_0x3836ba;r[_0x113187(0x21e)](_0x335731(_0x393618),function(_0x1579cf,_0x5e759b){const _0x515dd1=_0x113187;return _0x1579cf?_0x3d14cc(_0x1579cf):(_0x5e759b['compress'](),_0x23b7c2(_0x5e759b[_0x515dd1(0x1f1)]()));});}),_0x11f386={..._0x57f923,'appBuffer':_0x354425,'identifier':_0x17d0ab},_0x5c9b5f=await p(_0x11f386,_0x29ca49,_0x41f636),_0x1ecd98=_0x5c9b5f&&_0x5c9b5f[_0x3836ba(0x21b)]&&_0x5c9b5f['data'][_0x3836ba(0x222)];a['generate'](_0x1ecd98,{'small':!0x0},function(_0x9d42c7){const _0xb0217c=_0x3836ba;let _0x1603d5=''+e[_0xb0217c(0x20b)](i[_0xb0217c(0x209)]+_0xb0217c(0x1f4)+_0x9d42c7);_0x41f636[_0xb0217c(0x217)](e[_0xb0217c(0x20b)][_0xb0217c(0x207)](_0xb0217c(0x211))+_0xb0217c(0x208)),_0x41f636[_0xb0217c(0x217)](e['bold'][_0xb0217c(0x207)]('Version:')+'\x20'+_0x55540a),_0x41f636['text'](_0x1603d5);});}catch(_0xb59567){_0x41f636['statusError'](_0x3836ba(0x1fe)),l(_0xb59567);}};
@@ -1 +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';const _0x1f54a4=_0x21ef;function _0x21ef(_0x2b023f,_0x3abff7){const _0x5d251f=_0x5d25();return _0x21ef=function(_0x21ef00,_0x11d4ff){_0x21ef00=_0x21ef00-0x8e;let _0x26ff67=_0x5d251f[_0x21ef00];return _0x26ff67;},_0x21ef(_0x2b023f,_0x3abff7);}(function(_0x4423ca,_0x1faa62){const _0x3fa612=_0x21ef,_0x2bfe60=_0x4423ca();while(!![]){try{const _0x2e85e6=parseInt(_0x3fa612(0xa8))/0x1+parseInt(_0x3fa612(0x9e))/0x2*(parseInt(_0x3fa612(0x8f))/0x3)+parseInt(_0x3fa612(0xa4))/0x4*(parseInt(_0x3fa612(0x9b))/0x5)+parseInt(_0x3fa612(0x92))/0x6+parseInt(_0x3fa612(0xac))/0x7*(-parseInt(_0x3fa612(0xa5))/0x8)+-parseInt(_0x3fa612(0x98))/0x9+-parseInt(_0x3fa612(0xad))/0xa;if(_0x2e85e6===_0x1faa62)break;else _0x2bfe60['push'](_0x2bfe60['shift']());}catch(_0x352cfb){_0x2bfe60['push'](_0x2bfe60['shift']());}}}(_0x5d25,0x1b1de));const e=require(_0x1f54a4(0x94)),{versionStatus:t}=require(_0x1f54a4(0x97)),i=require(_0x1f54a4(0x96)),r=[{'type':_0x1f54a4(0x9d),'name':'versionStatus','message':_0x1f54a4(0xa6),'choices':Object[_0x1f54a4(0xae)](t)[_0x1f54a4(0x99)](_0x76bfb3=>({'name':i[_0x1f54a4(0xab)](_0x76bfb3),'value':t[_0x76bfb3]})),'when':_0x5b2fc6=>!_0x5b2fc6[_0x1f54a4(0x9a)],'validate':_0x3a1ab2=>new Promise((_0x18f993,_0xad6f4)=>{const _0x31bf5a=_0x1f54a4;_0x3a1ab2&&_0x3a1ab2[_0x31bf5a(0xa2)]?_0x18f993(!0x0):_0xad6f4(Error('Server\x20type\x20is\x20required!'));})},{'type':_0x1f54a4(0x8e),'name':_0x1f54a4(0x93),'message':'Description:','when':_0x30cb59=>!_0x30cb59['quit'],'validate':_0x249051=>new Promise((_0x5785b1,_0x382c05)=>{const _0x37c311=_0x1f54a4;_0x249051&&_0x249051['length']?_0x5785b1(!0x0):_0x382c05(Error(_0x37c311(0x90)));})}],s=[{'type':_0x1f54a4(0x9d),'name':_0x1f54a4(0x9a),'message':_0x1f54a4(0x9c),'choices':[{'name':_0x1f54a4(0xaa),'value':!0x1},{'name':_0x1f54a4(0xa1),'value':!0x0}]},{'type':_0x1f54a4(0x8e),'name':'outputDir','message':_0x1f54a4(0xa7),'when':_0x25a049=>!_0x25a049[_0x1f54a4(0x9a)],'default':_0x1f54a4(0x95)}];module[_0x1f54a4(0xa3)]=async function(_0x4a7c08){const _0x1b4324=_0x1f54a4;let _0x37e301=_0x4a7c08?[...r]:[...s,...r];return e[_0x1b4324(0xa9)](_0x37e301)[_0x1b4324(0xa0)](_0x4d690c=>(_0x4d690c['customProject']=!0x1,!0x1===_0x4d690c[_0x1b4324(0x9a)]&&(_0x4d690c[_0x1b4324(0x9f)]=!0x0),Promise[_0x1b4324(0x91)](_0x4d690c)));};function _0x5d25(){const _0x591a58=['www','lodash','../../utils/constants','902061GQXJJP','map','quit','4410dCQkIy','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','list','6XSOGTE','customProject','then','Quit','length','exports','808OhSlDL','8pmZYVY','What\x20version\x20status\x20are\x20you\x20deploying?','Where\x20is\x20your\x20dist\x20folder?','88609Qbcsvk','prompt','Deploy\x20your\x20existing\x20project','capitalize','1379763aXbVFm','1912400kAdvhF','keys','input','169110CncbWV','Description\x20is\x20required!','resolve','982590QLflWN','desc','inquirer'];_0x5d25=function(){return _0x591a58;};return _0x5d25();}
@@ -1 +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 _0x309b(_0x4340b9,_0x4c06aa){const _0xad748d=_0xad74();return _0x309b=function(_0x309bf3,_0x501bf3){_0x309bf3=_0x309bf3-0x167;let _0x3d75f9=_0xad748d[_0x309bf3];return _0x3d75f9;},_0x309b(_0x4340b9,_0x4c06aa);}const _0xee7f8c=_0x309b;function _0xad74(){const _0x46603b=['176guqZBm','125127NUsnfN','10aCxhJZ','214130nGtPgY','get','7694771wUuynz','exports','1415420pkMqRo','Bearer\x20','2189092HhLDkE','../../utils/axios','59123kqsuKg','err','error_code','permission_denied','3oAWBlx','6847524hMEoES','data'];_0xad74=function(){return _0x46603b;};return _0xad74();}(function(_0x58794d,_0x4e768b){const _0x3f8069=_0x309b,_0x29330c=_0x58794d();while(!![]){try{const _0x9f2c4=parseInt(_0x3f8069(0x174))/0x1+parseInt(_0x3f8069(0x170))/0x2*(-parseInt(_0x3f8069(0x178))/0x3)+-parseInt(_0x3f8069(0x172))/0x4*(-parseInt(_0x3f8069(0x16b))/0x5)+parseInt(_0x3f8069(0x167))/0x6+-parseInt(_0x3f8069(0x16e))/0x7+parseInt(_0x3f8069(0x169))/0x8*(parseInt(_0x3f8069(0x16a))/0x9)+parseInt(_0x3f8069(0x16c))/0xa;if(_0x9f2c4===_0x4e768b)break;else _0x29330c['push'](_0x29330c['shift']());}catch(_0x27e668){_0x29330c['push'](_0x29330c['shift']());}}}(_0xad74,0xc7087));const {axiosClient:r}=require(_0xee7f8c(0x173)),e=require('../../config'),i=async(_0x523b9f,_0x288600,_0x2ff1a3,_0x2ed173)=>{const _0x369ea2=_0xee7f8c;let {appName:_0x2f44dc,appDesc:_0x10cb53,appConfig:_0x11561f,frameworkVersions:_0x5d6fa7}=_0x288600,_0x1c652f={'Authorization':_0x369ea2(0x171)+_0x2ed173,'cache-control':'no-cache'},_0x284164=(await r[_0x369ea2(0x16d)](_0x523b9f,{'params':{'name':_0x2f44dc,'desc':_0x10cb53,'config':_0x11561f,'versionStatus':_0x2ff1a3,'frameworkVersions':_0x5d6fa7},'headers':_0x1c652f,'withCredentials':!0x0}))[_0x369ea2(0x168)];if(!_0x284164||_0x284164['err']<0x0){if(_0x284164&&_0x284164[_0x369ea2(0x175)]===e[_0x369ea2(0x176)]['permission_denied'])throw Error(e['error_msg'][_0x369ea2(0x177)]);throw Error(JSON['stringify'](_0x284164));}return _0x284164[_0x369ea2(0x168)];};module[_0xee7f8c(0x16f)]=i;
@@ -1 +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';const _0x4547fd=_0x5cb4;function _0x3d27(){const _0x2df656=['path','statusText','form-data','err','config','fileSuccess','7ZAkXSw','fileAdded','10737126IeMDML','fileError','Error\x20upload\x20app:\x20cancel','statusError','13915QnKHhb','8870GsBJyb','35836260CWFYZt','1048604ZeiwiS','www.zip','append','isNumber','File','57844GfJpQz','token','16SjXmkD','15HVKApA','../../utils/env','join','zipFile','fileProgress','../../utils/resumable','addFile','Error\x20upload\x20app:\x20','api_domain','chalk','6gvXGKg','resumable_option','support','upload','Does\x20not\x20support\x20upload\x20app','round','progress','157672yRwNsr','../../config','6496205WVsvpB','exports','env','lodash','Deploying\x20Your\x20App\x20','complete','name','getEnv'];_0x3d27=function(){return _0x2df656;};return _0x3d27();}(function(_0x320832,_0x2c558a){const _0x5b1a65=_0x5cb4,_0x44d102=_0x320832();while(!![]){try{const _0x33f756=-parseInt(_0x5b1a65(0x9f))/0x1*(-parseInt(_0x5b1a65(0xa1))/0x2)+-parseInt(_0x5b1a65(0x70))/0x3*(parseInt(_0x5b1a65(0x9a))/0x4)+-parseInt(_0x5b1a65(0x83))/0x5*(parseInt(_0x5b1a65(0x7a))/0x6)+parseInt(_0x5b1a65(0x91))/0x7*(-parseInt(_0x5b1a65(0x81))/0x8)+parseInt(_0x5b1a65(0x93))/0x9+-parseInt(_0x5b1a65(0x98))/0xa*(parseInt(_0x5b1a65(0x97))/0xb)+parseInt(_0x5b1a65(0x99))/0xc;if(_0x33f756===_0x2c558a)break;else _0x44d102['push'](_0x44d102['shift']());}catch(_0x37f723){_0x44d102['push'](_0x44d102['shift']());}}}(_0x3d27,0xd95f9));const r=require(_0x4547fd(0x75)),e=require(_0x4547fd(0x79)),n=require(_0x4547fd(0x82)),o=require(_0x4547fd(0x71)),t=require('file-api')[_0x4547fd(0x9e)],a=require(_0x4547fd(0x8d)),u=require(_0x4547fd(0x86));function _0x5cb4(_0x24c757,_0x2fec9e){const _0x3d2752=_0x3d27();return _0x5cb4=function(_0x5cb4a5,_0x488f4b){_0x5cb4a5=_0x5cb4a5-0x70;let _0x23b612=_0x3d2752[_0x5cb4a5];return _0x23b612;},_0x5cb4(_0x24c757,_0x2fec9e);}module[_0x4547fd(0x84)]=async function(_0x118e3a,_0x472078,_0x44ed3c){const _0x51dc41=_0x4547fd;let _0x55c7f8=n[_0x51dc41(0x78)],_0x38077d=''+_0x55c7f8+n[_0x51dc41(0x8b)]['uploadAppByChunk'],{appName:_0x26b028,appDesc:_0x143734,appBuffer:_0x144b89,appConfig:_0xb6aef5,identifier:_0x19c440}=_0x118e3a,_0x3685d9=o[_0x51dc41(0x8a)](n[_0x51dc41(0x85)][_0x51dc41(0xa0)]),_0x3e776b=new r({...n[_0x51dc41(0x7b)],'target':_0x38077d,'headers':{'Authorization':'Bearer\x20'+_0x3685d9},'generateUniqueIdentifier':()=>_0x19c440}),_0x1a210d=new a();if(_0x1a210d['append'](_0x51dc41(0x73),_0x144b89),_0x1a210d[_0x51dc41(0x9c)](_0x51dc41(0x89),_0x26b028),_0x1a210d[_0x51dc41(0x9c)]('desc',_0x143734),_0x1a210d[_0x51dc41(0x9c)](_0x51dc41(0x8f),_0xb6aef5),_0x3e776b[_0x51dc41(0x7c)])return _0x3e776b['on'](_0x51dc41(0x74),function(_0x29b3fa){const _0x4b9c4a=_0x51dc41;let _0x502153=Array(Math[_0x4b9c4a(0x7f)](0x64*_0x29b3fa['progress']())%0x65+0x1)[_0x4b9c4a(0x72)]('|');_0x44ed3c[_0x4b9c4a(0x8c)](_0x4b9c4a(0x87)+e['gray']('\x0a'+_0x502153+'\x20'+Math[_0x4b9c4a(0x7f)](0x64*_0x29b3fa[_0x4b9c4a(0x80)]())+'%'));}),await new Promise((_0x78a82a,_0x2ed101)=>{const _0x242db9=_0x51dc41;try{var _0x107305=new t({'name':_0x242db9(0x9b),'buffer':_0x144b89});_0x3e776b['on'](_0x242db9(0x92),function(){const _0x288ca2=_0x242db9;_0x3e776b[_0x288ca2(0x7d)]();}),_0x3e776b['on'](_0x242db9(0x88),function(){return _0x78a82a();}),_0x3e776b['on'](_0x242db9(0x94),function(_0x56fe03,_0x55efec){return _0x2ed101(Error('Error\x20upload\x20app:\x20'+_0x55efec));}),_0x3e776b['on']('cancel',function(){const _0x2e5eea=_0x242db9;return _0x2ed101(Error(_0x2e5eea(0x95)));}),_0x3e776b['on'](_0x242db9(0x90),function(_0x352918,_0xcb0b94){const _0x46fc89=_0x242db9;let _0x686c91=JSON['parse'](_0xcb0b94);return u[_0x46fc89(0x9d)](_0x686c91['err'])&&_0x686c91[_0x46fc89(0x8e)]<0x0?_0x2ed101(Error(_0x46fc89(0x77)+_0xcb0b94)):_0x78a82a(_0x686c91);}),_0x3e776b[_0x242db9(0x76)](_0x107305);}catch(_0x446ce2){return _0x2ed101(_0x446ce2);}});_0x44ed3c[_0x51dc41(0x96)](_0x51dc41(0x7e));};
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';const _0x38e8d4=_0x4355;(function(_0x42296d,_0x34e9f2){const _0x4badd0=_0x4355,_0x113c6d=_0x42296d();while(!![]){try{const _0x31512b=parseInt(_0x4badd0(0x1c3))/0x1+parseInt(_0x4badd0(0x1f6))/0x2*(parseInt(_0x4badd0(0x1dc))/0x3)+parseInt(_0x4badd0(0x20a))/0x4*(-parseInt(_0x4badd0(0x1dd))/0x5)+parseInt(_0x4badd0(0x204))/0x6+parseInt(_0x4badd0(0x1e1))/0x7+-parseInt(_0x4badd0(0x1c6))/0x8*(-parseInt(_0x4badd0(0x209))/0x9)+-parseInt(_0x4badd0(0x203))/0xa*(parseInt(_0x4badd0(0x20f))/0xb);if(_0x31512b===_0x34e9f2)break;else _0x113c6d['push'](_0x113c6d['shift']());}catch(_0xfcf23c){_0x113c6d['push'](_0x113c6d['shift']());}}}(_0x1a43,0x7ae2f));function _0x4355(_0x5522f0,_0x2a77a5){const _0x1a4330=_0x1a43();return _0x4355=function(_0x43550f,_0x58dab3){_0x43550f=_0x43550f-0x1b1;let _0x42e0c5=_0x1a4330[_0x43550f];return _0x42e0c5;},_0x4355(_0x5522f0,_0x2a77a5);}const e=require('chalk'),o=require(_0x38e8d4(0x1f1)),t=require(_0x38e8d4(0x1f9)),i=require(_0x38e8d4(0x1ca)),s=require(_0x38e8d4(0x1ef)),r=require('./utils/fs-extra'),n=require(_0x38e8d4(0x1c5)),a=require('./utils/spinner'),c=require('./utils/log'),p=require('./utils/get-current-project'),u=require(_0x38e8d4(0x211)),l=require(_0x38e8d4(0x1fd)),d=require('./deploy/utils/get-options'),m=require('./migrate/utils/get-options'),g=require(_0x38e8d4(0x200)),x=require('./create/index'),y=require(_0x38e8d4(0x202)),v=require('./build/index'),w=require(_0x38e8d4(0x201)),f=require(_0x38e8d4(0x1ea)),q=require('./migrate/index'),h=require('os'),M=require(_0x38e8d4(0x1ec)),P=require(_0x38e8d4(0x1f2)),{versionStatus:j}=require('./utils/constants'),Z=process[_0x38e8d4(0x206)](),D={'statusStart':_0x579c56=>a[_0x38e8d4(0x1b1)](_0x579c56),'statusDone':_0x12196e=>a[_0x38e8d4(0x1fe)](_0x12196e),'statusText':_0x44410a=>a[_0x38e8d4(0x1df)](_0x44410a),'statusError':_0x2b732e=>a[_0x38e8d4(0x1f0)](_0x2b732e),'text':_0x2cc448=>c[_0x38e8d4(0x1df)](_0x2cc448),'error':_0x210ce9=>c[_0x38e8d4(0x1f0)](_0x210ce9),'showOnUI':()=>{}};function _0x1a43(){const _0x33aa26=['Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','-D,\x20--dev','writeFileSync','-e,\x20--existing','skipUpdate','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','sync-config\x20<source>','cyan','.local','version','exit','zaloApp','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001','log','ZMP\x20CLI','817946XmIeNY','ios','./utils/check-update','8NcazTF','Deploy\x20existing\x20project','-o,\x20--outputDir\x20<output>','deploy','commander','root_env','Version\x20description','mode','frame','\x0a\x20Unknown\x20command\x20','build','-r,\x20--root-element\x20<selector>','Custom\x20entry\x20point,\x20default\x20is\x20#app','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','iosHostName','Deploy\x20a\x20ZMP\x20project','command','Output\x20folder.\x20Default\x20www','Device\x20mode','args','login','Passive\x20mode\x20(non-interactive)','1101JtQUDu','2246740ODklNe','-iosH,\x20--ios-host-name\x20<n>','text','-ios,\x20--ios','559419SWLXzk','hostname','Version:\x20','argv','textSync','Run\x20on\x20ios','-M,\x20--mode\x20<m>','existsSync','Env\x20mode','./sync/index','Run\x20without\x20Zalo\x20frame','./package.json','usage','dev','log-symbols','error','clear','./config','Login\x20ZMP','action','\x20This\x20is\x20not\x20ZMP\x20project','3980ozIFMF','-D,\x20--device','-P,\x20--port\x20<n>','figlet','showMobileUi','Build\x20a\x20ZMP\x20project','includes','./login/utils/get-options','done','--skipUpdate','./login/index','./deploy/index','./start/index','7190ubBaaC','961230UAcUHd','-p,\x20--passive','cwd','Start\x20a\x20ZMP\x20project','description','5685705SsjnXI','8GmLiVu','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','-Z,\x20--zalo-app','init','code','15576ueekuG','Deploy\x20testing\x20version','./create/utils/get-options','option','migrate','outputHelp','resolve','port','<command>\x20[options]','start','Init\x20ZMP\x20project','Deploy\x20in\x20Development\x20server'];_0x1a43=function(){return _0x33aa26;};return _0x1a43();}o(),r[_0x38e8d4(0x1e8)](P[_0x38e8d4(0x1cb)]())||r[_0x38e8d4(0x1b6)](P['root_env']()),console[_0x38e8d4(0x1c1)](e[_0x38e8d4(0x1bb)](t[_0x38e8d4(0x1e5)](_0x38e8d4(0x1c2),{'horizontalLayout':'full','verticalLayout':'full'})),e['cyan'](_0x38e8d4(0x1e3)+M[_0x38e8d4(0x1bd)]+'\x0a')),i[_0x38e8d4(0x1bd)](M['version'])[_0x38e8d4(0x1ed)](_0x38e8d4(0x217))[_0x38e8d4(0x1d6)](_0x38e8d4(0x20d))[_0x38e8d4(0x212)](_0x38e8d4(0x1ff),_0x38e8d4(0x1d3))['description'](_0x38e8d4(0x1b2))[_0x38e8d4(0x1f4)](async _0x105581=>{const _0x12fe69=_0x38e8d4;_0x105581[_0x12fe69(0x1b8)]||await n();let _0x5ad946=await l();await g({'cwd':Z,..._0x5ad946},D);let _0x5af9bc=await u();await x({'cwd':Z,..._0x5af9bc},D),process[_0x12fe69(0x1be)](0x0);}),i[_0x38e8d4(0x1ed)](_0x38e8d4(0x217))[_0x38e8d4(0x1d6)](_0x38e8d4(0x1da))['description'](_0x38e8d4(0x1f3))[_0x38e8d4(0x1f4)](async()=>{const _0x424e91=_0x38e8d4;let _0x2af0f7=await l();await g({'cwd':Z,..._0x2af0f7},D),process[_0x424e91(0x1be)](0x0);}),i[_0x38e8d4(0x1ed)]('<command>\x20[options]')[_0x38e8d4(0x1d6)]('start')['option'](_0x38e8d4(0x1de),_0x38e8d4(0x1b9))[_0x38e8d4(0x212)]('-P,\x20--port\x20<n>',_0x38e8d4(0x20b),parseInt)['option'](_0x38e8d4(0x20c),'Preview\x20on\x20Zalo')[_0x38e8d4(0x212)](_0x38e8d4(0x1e0),_0x38e8d4(0x1e6))[_0x38e8d4(0x212)]('-nF,\x20--no-frame',_0x38e8d4(0x1eb))['option'](_0x38e8d4(0x1f7),_0x38e8d4(0x1d8))[_0x38e8d4(0x212)](_0x38e8d4(0x1e7),'Env\x20mode')[_0x38e8d4(0x208)](_0x38e8d4(0x207))[_0x38e8d4(0x1f4)](async _0x2f9c3f=>{const _0x51ff29=_0x38e8d4;if(p(Z)||(c[_0x51ff29(0x1df)](s[_0x51ff29(0x1f0)]+_0x51ff29(0x1f5)),process[_0x51ff29(0x1be)](0x1)),_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1fa)])try{console[_0x51ff29(0x1c1)](require[_0x51ff29(0x215)]('nw'));}catch(_0x64f561){console['error']('NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22'),process[_0x51ff29(0x1be)](_0x64f561[_0x51ff29(0x20e)]);}let _0x3387ce=h[_0x51ff29(0x1e2)]();_0x3387ce[_0x51ff29(0x1fc)](_0x51ff29(0x1bc))||(_0x3387ce=_0x3387ce+_0x51ff29(0x1bc)),await y({'cwd':Z,'port':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x216)]||0xbb8,'iosHostName':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1d4)]||_0x3387ce,'showMobileUI':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1fa)]||!0x1,'previewOnZalo':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1bf)]||!0x1,'ios':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1c4)]||!0x1,'mode':_0x2f9c3f&&_0x2f9c3f[_0x51ff29(0x1cd)],'frame':!!_0x2f9c3f&&(void 0x0===_0x2f9c3f['frame']||null===_0x2f9c3f[_0x51ff29(0x1ce)])||_0x2f9c3f[_0x51ff29(0x1ce)],'deviceMode':_0x2f9c3f&&_0x2f9c3f['device']||!0x1},D),process['exit'](0x0);}),i['usage'](_0x38e8d4(0x217))['command'](_0x38e8d4(0x1d0))['description'](_0x38e8d4(0x1fb))[_0x38e8d4(0x1f4)](async()=>{const _0x457fce=_0x38e8d4;p(Z)||(c[_0x457fce(0x1df)](s[_0x457fce(0x1f0)]+_0x457fce(0x1f5)),process[_0x457fce(0x1be)](0x1)),await v({'cwd':Z},D),process[_0x457fce(0x1be)](0x0);}),i[_0x38e8d4(0x1ed)](_0x38e8d4(0x217))['command'](_0x38e8d4(0x1c9))[_0x38e8d4(0x212)](_0x38e8d4(0x1b5),_0x38e8d4(0x1b3))[_0x38e8d4(0x212)]('-M,\x20--mode\x20<m>',_0x38e8d4(0x1e9))['option'](_0x38e8d4(0x205),_0x38e8d4(0x1db))[_0x38e8d4(0x212)](_0x38e8d4(0x1b7),_0x38e8d4(0x1c7))['option']('-t,\x20--testing',_0x38e8d4(0x210))[_0x38e8d4(0x212)]('-m,\x20--desc\x20<message>',_0x38e8d4(0x1cc))['option'](_0x38e8d4(0x1c8),_0x38e8d4(0x1d7))[_0x38e8d4(0x212)](_0x38e8d4(0x1f8),_0x38e8d4(0x1c0),parseInt)['description'](_0x38e8d4(0x1d5))[_0x38e8d4(0x1f4)](async _0x415769=>{const _0x595fbc=_0x38e8d4;let _0x2a91f7=p(Z),_0xda8be2=_0x415769;_0x415769['existing']?_0xda8be2['customProject']=!0x0:_0x415769['passive']||(_0xda8be2=await d(_0x2a91f7)),_0x415769['testing']&&(_0xda8be2['versionStatus']=j['TESTING']),_0xda8be2['quit']&&process['exit'](0x1),await w({'cwd':Z,'dev':_0x415769&&_0x415769[_0x595fbc(0x1ee)],'mode':_0x415769&&_0x415769['mode'],..._0xda8be2},D),process['exit'](0x0);}),i[_0x38e8d4(0x1ed)](_0x38e8d4(0x217))['command'](_0x38e8d4(0x1ba))[_0x38e8d4(0x212)](_0x38e8d4(0x1d1),_0x38e8d4(0x1d2))[_0x38e8d4(0x208)](_0x38e8d4(0x1b4))['action'](async(_0x19240a,_0x1ae8a1)=>{const _0x543c21=_0x38e8d4;await f({'source':_0x19240a,..._0x1ae8a1},D),process[_0x543c21(0x1be)](0x0);}),i[_0x38e8d4(0x1ed)](_0x38e8d4(0x217))['command'](_0x38e8d4(0x213))[_0x38e8d4(0x1f4)](async function(){const _0x3d5588=_0x38e8d4;let _0x1f2ae8=p(Z);_0x1f2ae8||(D[_0x3d5588(0x1df)](s[_0x3d5588(0x1f0)]+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x3d5588(0x1be)](0x1));let _0x4d76b5=await m();await q({'cwd':Z,..._0x4d76b5,..._0x1f2ae8},D),process[_0x3d5588(0x1be)](0x0);}),i['on']('command:*',_0x26744e=>{const _0x1bb5a6=_0x38e8d4;i['outputHelp'](),c[_0x1bb5a6(0x1df)](_0x1bb5a6(0x1cf)+_0x26744e);}),i['parse'](process[_0x38e8d4(0x1e4)]),i[_0x38e8d4(0x1d9)]['length']||i[_0x38e8d4(0x214)]();