@abtnode/webapp 1.8.63-beta-a36b5e1a → 1.8.63

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 (198) hide show
  1. package/blocklet.yml +6 -3
  2. package/build/asset-manifest.json +93 -0
  3. package/build/favicon.ico +0 -0
  4. package/build/icons/css/all.css +5919 -0
  5. package/build/icons/css/brands.css +14 -0
  6. package/build/icons/css/brands.min.css +12 -0
  7. package/build/icons/css/fontawesome.css +7816 -0
  8. package/build/icons/css/fontawesome.min.css +5864 -0
  9. package/build/icons/css/light.css +15 -0
  10. package/build/icons/css/light.min.css +13 -0
  11. package/build/icons/webfonts/fa-brands-400.eot +0 -0
  12. package/build/icons/webfonts/fa-brands-400.svg +1256 -0
  13. package/build/icons/webfonts/fa-brands-400.ttf +0 -0
  14. package/build/icons/webfonts/fa-brands-400.woff +0 -0
  15. package/build/icons/webfonts/fa-brands-400.woff2 +0 -0
  16. package/build/icons/webfonts/fa-light-300.eot +0 -0
  17. package/build/icons/webfonts/fa-light-300.svg +4445 -0
  18. package/build/icons/webfonts/fa-light-300.ttf +0 -0
  19. package/build/icons/webfonts/fa-light-300.woff +0 -0
  20. package/build/icons/webfonts/fa-light-300.woff2 +0 -0
  21. package/build/images/blocklet.png +0 -0
  22. package/build/images/blocklets-00c2c4.png +0 -0
  23. package/build/images/blocklets-222222.png +0 -0
  24. package/build/images/celebrate.png +0 -0
  25. package/build/images/community.svg +6 -0
  26. package/build/images/console-00c2c4.png +0 -0
  27. package/build/images/console-222222.png +0 -0
  28. package/build/images/dashboard-00c2c4.png +0 -0
  29. package/build/images/dashboard-222222.png +0 -0
  30. package/build/images/doc-222222.png +0 -0
  31. package/build/images/hourglass-222222.png +0 -0
  32. package/build/images/https-certificate-icon.png +0 -0
  33. package/build/images/labs-00c2c4.png +0 -0
  34. package/build/images/labs-222222.png +0 -0
  35. package/build/images/log-00c2c4.png +0 -0
  36. package/build/images/log-222222.png +0 -0
  37. package/build/images/member-222222.png +0 -0
  38. package/build/images/node.png +0 -0
  39. package/build/images/official.svg +1 -0
  40. package/build/images/private-222222.png +0 -0
  41. package/build/images/public-222222.png +0 -0
  42. package/build/images/public_avatar.png +0 -0
  43. package/build/images/router-00c2c4.png +0 -0
  44. package/build/images/router-222222.png +0 -0
  45. package/build/images/settings-00c2c4.png +0 -0
  46. package/build/images/settings-222222.png +0 -0
  47. package/build/images/slack.png +0 -0
  48. package/build/images/storage-222222.png +0 -0
  49. package/build/images/store-00c2c4.png +0 -0
  50. package/build/images/store-222222.png +0 -0
  51. package/build/images/team-00c2c4.png +0 -0
  52. package/build/images/team-222222.png +0 -0
  53. package/build/images/time-222222.png +0 -0
  54. package/build/images/upgrade.png +0 -0
  55. package/build/index.html +1 -0
  56. package/build/manifest.json +15 -0
  57. package/build/static/css/4381.5ade355d.chunk.css +1 -0
  58. package/build/static/css/4691.56c2f951.chunk.css +1 -0
  59. package/build/static/css/5245.5d6e9197.chunk.css +1 -0
  60. package/build/static/css/8213.f696fdbf.chunk.css +1 -0
  61. package/build/static/css/9779.f696fdbf.chunk.css +1 -0
  62. package/build/static/css/main.c9e90622.css +1 -0
  63. package/build/static/images/logo.png +0 -0
  64. package/build/static/js/1057.8280393f.chunk.js +1 -0
  65. package/build/static/js/1361.85e46159.chunk.js +1 -0
  66. package/build/static/js/1366.2f174c9b.chunk.js +2 -0
  67. package/build/static/js/1366.2f174c9b.chunk.js.LICENSE.txt +37 -0
  68. package/build/static/js/154.94956824.chunk.js +1 -0
  69. package/build/static/js/1826.07c285de.chunk.js +1 -0
  70. package/build/static/js/2129.120e36ae.chunk.js +1 -0
  71. package/build/static/js/2308.b65bc299.chunk.js +1 -0
  72. package/build/static/js/2564.eef717f3.chunk.js +1 -0
  73. package/build/static/js/2657.d3c62d57.chunk.js +1 -0
  74. package/build/static/js/2720.26eb1788.chunk.js +1 -0
  75. package/build/static/js/2828.4f318970.chunk.js +1 -0
  76. package/build/static/js/2878.5626558d.chunk.js +1 -0
  77. package/build/static/js/3111.84e02823.chunk.js +1 -0
  78. package/build/static/js/3476.c0b3411b.chunk.js +1 -0
  79. package/build/static/js/3633.8c7cf02d.chunk.js +1 -0
  80. package/build/static/js/3732.f5d8b39b.chunk.js +1 -0
  81. package/build/static/js/3776.1490b0f7.chunk.js +1 -0
  82. package/build/static/js/3829.b6d6cf45.chunk.js +1 -0
  83. package/build/static/js/4074.19db40ec.chunk.js +1 -0
  84. package/build/static/js/4104.b47ae0e1.chunk.js +1 -0
  85. package/build/static/js/4241.83e4f741.chunk.js +1 -0
  86. package/build/static/js/4274.e18ffddd.chunk.js +1 -0
  87. package/build/static/js/4349.7c2f6507.chunk.js +1 -0
  88. package/build/static/js/4381.631ef61d.chunk.js +2 -0
  89. package/build/static/js/4381.631ef61d.chunk.js.LICENSE.txt +22 -0
  90. package/build/static/js/4557.3907550e.chunk.js +1 -0
  91. package/build/static/js/4590.5a14012c.chunk.js +1 -0
  92. package/build/static/js/4633.9f946ed5.chunk.js +1 -0
  93. package/build/static/js/4691.550fcb40.chunk.js +2 -0
  94. package/build/static/js/4691.550fcb40.chunk.js.LICENSE.txt +8 -0
  95. package/build/static/js/5074.9ea094a9.chunk.js +1 -0
  96. package/build/static/js/5082.18d16cb9.chunk.js +1 -0
  97. package/build/static/js/519.adae6e43.chunk.js +1 -0
  98. package/build/static/js/556.381dcbd8.chunk.js +1 -0
  99. package/build/static/js/5984.25af6288.chunk.js +1 -0
  100. package/build/static/js/6158.8a43296d.chunk.js +1 -0
  101. package/build/static/js/6189.d6d74d14.chunk.js +1 -0
  102. package/build/static/js/6239.5a873a03.chunk.js +2 -0
  103. package/build/static/js/6239.5a873a03.chunk.js.LICENSE.txt +14 -0
  104. package/build/static/js/629.1a7f2553.chunk.js +1 -0
  105. package/build/static/js/6413.ab4a8e01.chunk.js +1 -0
  106. package/build/static/js/6602.c417a217.chunk.js +1 -0
  107. package/build/static/js/6780.64314507.chunk.js +1 -0
  108. package/build/static/js/6830.88b993a0.chunk.js +1 -0
  109. package/build/static/js/6866.2131ea60.chunk.js +2 -0
  110. package/build/static/js/6866.2131ea60.chunk.js.LICENSE.txt +8 -0
  111. package/build/static/js/6898.6fe0c32d.chunk.js +2 -0
  112. package/build/static/js/6898.6fe0c32d.chunk.js.LICENSE.txt +5 -0
  113. package/build/static/js/7016.835958ef.chunk.js +1 -0
  114. package/build/static/js/7298.a7286c09.chunk.js +1 -0
  115. package/build/static/js/7327.56a5e016.chunk.js +1 -0
  116. package/build/static/js/744.8b656dd2.chunk.js +1 -0
  117. package/build/static/js/7652.722b9180.chunk.js +1 -0
  118. package/build/static/js/8034.c4dcdeff.chunk.js +1 -0
  119. package/build/static/js/8058.0b2d4727.chunk.js +1 -0
  120. package/build/static/js/8213.09f25083.chunk.js +1 -0
  121. package/build/static/js/8235.add24931.chunk.js +1 -0
  122. package/build/static/js/8249.63c55b3a.chunk.js +1 -0
  123. package/build/static/js/8262.869cc799.chunk.js +1 -0
  124. package/build/static/js/8352.b57b0e44.chunk.js +1 -0
  125. package/build/static/js/8464.b4b82828.chunk.js +1 -0
  126. package/build/static/js/8606.66db67e2.chunk.js +1 -0
  127. package/build/static/js/9038.2908c176.chunk.js +1 -0
  128. package/build/static/js/9076.c77366bc.chunk.js +1 -0
  129. package/build/static/js/9301.a65db324.chunk.js +2 -0
  130. package/build/static/js/9301.a65db324.chunk.js.LICENSE.txt +8 -0
  131. package/build/static/js/9575.36f3de5b.chunk.js +2 -0
  132. package/build/static/js/9575.36f3de5b.chunk.js.LICENSE.txt +194 -0
  133. package/build/static/js/9779.bbf0dd81.chunk.js +1 -0
  134. package/build/static/js/main.cb5d8d67.js +2 -0
  135. package/build/static/js/main.cb5d8d67.js.LICENSE.txt +159 -0
  136. package/build/static/media/iconify.32b54549e843e448ee9b.cjs +2 -0
  137. package/build/static/media/iconify.32b54549e843e448ee9b.cjs.LICENSE.txt +13 -0
  138. package/build/static/media/lato-all-400-normal.3dc1eff492ab1f598560.woff +0 -0
  139. package/build/static/media/lato-all-700-normal.1e7707c9ec98d9b97e7f.woff +0 -0
  140. package/build/static/media/lato-latin-400-normal.be36596da218e1eec01c.woff2 +0 -0
  141. package/build/static/media/lato-latin-700-normal.8f28e0e1fdb195149f1c.woff2 +0 -0
  142. package/build/static/media/lato-latin-ext-400-normal.361f3dbb9db6a5980326.woff2 +0 -0
  143. package/build/static/media/lato-latin-ext-700-normal.9c8812eaec45956201e1.woff2 +0 -0
  144. package/build/static/media/logo.60f66bbe1ce9674a4df4e374c9d97fc4.svg +16 -0
  145. package/build/static/media/ubuntu-mono-all-400-normal.c879328bc62e9c68268f.woff +0 -0
  146. package/build/static/media/ubuntu-mono-cyrillic-400-normal.c367f416832eb8f1b846.woff2 +0 -0
  147. package/build/static/media/ubuntu-mono-cyrillic-ext-400-normal.eda1c4946b1f7bf58386.woff2 +0 -0
  148. package/build/static/media/ubuntu-mono-greek-400-normal.22f3bfc91f79c342bdf4.woff2 +0 -0
  149. package/build/static/media/ubuntu-mono-greek-ext-400-normal.b3459900ea8a25d1f7c2.woff2 +0 -0
  150. package/build/static/media/ubuntu-mono-latin-400-normal.18e32d9d743af28f913e.woff2 +0 -0
  151. package/build/static/media/ubuntu-mono-latin-ext-400-normal.b56e2315611d10838ad5.woff2 +0 -0
  152. package/package.json +1 -1
  153. package/api/gql/config.js +0 -392
  154. package/api/gql/index.js +0 -102
  155. package/api/gql/middlewares/create-audit-log.js +0 -3
  156. package/api/gql/middlewares/get-blocklet-list.js +0 -14
  157. package/api/gql/middlewares/install-blocklet.js +0 -13
  158. package/api/gql/middlewares/verify-blocklet.js +0 -21
  159. package/api/gql/middlewares/verify-team.js +0 -9
  160. package/api/index.js +0 -249
  161. package/api/libs/auth.js +0 -78
  162. package/api/libs/env.js +0 -3
  163. package/api/libs/login.js +0 -212
  164. package/api/libs/security.js +0 -90
  165. package/api/libs/storage.js +0 -69
  166. package/api/middlewares/mutate-blocklet-permission.js +0 -18
  167. package/api/routes/auth/accept-server.js +0 -28
  168. package/api/routes/auth/connect-owner.js +0 -143
  169. package/api/routes/auth/delegate-transfer-owner-nft.js +0 -86
  170. package/api/routes/auth/invite.js +0 -93
  171. package/api/routes/auth/issue-passport.js +0 -61
  172. package/api/routes/auth/launch-free-blocklet-by-nft.js +0 -9
  173. package/api/routes/auth/launch-free-blocklet.js +0 -9
  174. package/api/routes/auth/launch-paid-blocklet-by-nft.js +0 -9
  175. package/api/routes/auth/launch-paid-blocklet.js +0 -9
  176. package/api/routes/auth/login.js +0 -63
  177. package/api/routes/auth/lost-passport-issue.js +0 -5
  178. package/api/routes/auth/lost-passport-list.js +0 -5
  179. package/api/routes/auth/switch-passport.js +0 -47
  180. package/api/routes/auth/switch-profile.js +0 -69
  181. package/api/routes/auth/util.js +0 -135
  182. package/api/routes/auth/verify-owner.js +0 -39
  183. package/api/routes/auth/verify-purchase.js +0 -185
  184. package/api/routes/blocklet-info.js +0 -246
  185. package/api/routes/blocklet-preference.js +0 -161
  186. package/api/routes/blocklet-proxy.js +0 -220
  187. package/api/routes/did-resolver.js +0 -38
  188. package/api/routes/dns-resolver.js +0 -73
  189. package/api/routes/log.js +0 -31
  190. package/api/routes/passport.js +0 -19
  191. package/api/routes/session.js +0 -61
  192. package/api/routes/user.js +0 -38
  193. package/api/util/find-routing-rule.js +0 -95
  194. package/api/util/get-configs.js +0 -31
  195. package/api/util/index.js +0 -5
  196. package/api/util/navigation.js +0 -84
  197. package/api/webpack.blocklet.js +0 -43
  198. package/api/ws/index.js +0 -146
@@ -0,0 +1,194 @@
1
+ /*!
2
+ * Check to see if the MemoizeMap has recorded a result of the two operands
3
+ *
4
+ * @param {Mixed} leftHandOperand
5
+ * @param {Mixed} rightHandOperand
6
+ * @param {MemoizeMap} memoizeMap
7
+ * @returns {Boolean|null} result
8
+ */
9
+
10
+ /*!
11
+ * Compare two Regular Expressions for equality.
12
+ *
13
+ * @param {RegExp} leftHandOperand
14
+ * @param {RegExp} rightHandOperand
15
+ * @return {Boolean} result
16
+ */
17
+
18
+ /*!
19
+ * Compare two Sets/Maps for equality. Faster than other equality functions.
20
+ *
21
+ * @param {Set} leftHandOperand
22
+ * @param {Set} rightHandOperand
23
+ * @param {Object} [options] (Optional)
24
+ * @return {Boolean} result
25
+ */
26
+
27
+ /*!
28
+ * Determine if the given object has an @@iterator function.
29
+ *
30
+ * @param {Object} target
31
+ * @return {Boolean} `true` if the object has an @@iterator function.
32
+ */
33
+
34
+ /*!
35
+ * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
36
+ * each key. If any value of the given key is not equal, the function will return false (early).
37
+ *
38
+ * @param {Mixed} leftHandOperand
39
+ * @param {Mixed} rightHandOperand
40
+ * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
41
+ * @param {Object} [options] (Optional)
42
+ * @return {Boolean} result
43
+ */
44
+
45
+ /*!
46
+ * Gets all entries from a Generator. This will consume the generator - which could have side effects.
47
+ *
48
+ * @param {Generator} target
49
+ * @returns {Array} an array of entries from the Generator.
50
+ */
51
+
52
+ /*!
53
+ * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
54
+ * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
55
+ *
56
+ * @param {Object} target
57
+ * @returns {Array} an array of entries from the @@iterator function
58
+ */
59
+
60
+ /*!
61
+ * Gets all own and inherited enumerable keys from a target.
62
+ *
63
+ * @param {Object} target
64
+ * @returns {Array} an array of own and inherited enumerable keys from the target.
65
+ */
66
+
67
+ /*!
68
+ * Primary Export
69
+ */
70
+
71
+ /*!
72
+ * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
73
+ * for each enumerable key in the object.
74
+ *
75
+ * @param {Mixed} leftHandOperand
76
+ * @param {Mixed} rightHandOperand
77
+ * @param {Object} [options] (Optional)
78
+ * @return {Boolean} result
79
+ */
80
+
81
+ /*!
82
+ * Returns true if the argument is a primitive.
83
+ *
84
+ * This intentionally returns true for all objects that can be compared by reference,
85
+ * including functions and symbols.
86
+ *
87
+ * @param {Mixed} value
88
+ * @return {Boolean} result
89
+ */
90
+
91
+ /*!
92
+ * Set the result of the equality into the MemoizeMap
93
+ *
94
+ * @param {Mixed} leftHandOperand
95
+ * @param {Mixed} rightHandOperand
96
+ * @param {MemoizeMap} memoizeMap
97
+ * @param {Boolean} result
98
+ */
99
+
100
+ /*!
101
+ * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
102
+ *
103
+ * @param {Iterable} leftHandOperand
104
+ * @param {Iterable} rightHandOperand
105
+ * @param {Object} [options] (Optional)
106
+ * @return {Boolean} result
107
+ */
108
+
109
+ /*!
110
+ * Simple equality for generator objects such as those returned by generator functions.
111
+ *
112
+ * @param {Iterable} leftHandOperand
113
+ * @param {Iterable} rightHandOperand
114
+ * @param {Object} [options] (Optional)
115
+ * @return {Boolean} result
116
+ */
117
+
118
+ /*!
119
+ * The main logic of the `deepEqual` function.
120
+ *
121
+ * @param {Mixed} leftHandOperand
122
+ * @param {Mixed} rightHandOperand
123
+ * @param {Object} [options] (optional) Additional options
124
+ * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
125
+ * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
126
+ complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
127
+ references to blow the stack.
128
+ * @return {Boolean} equal match
129
+ */
130
+
131
+ /*!
132
+ * deep-eql
133
+ * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
134
+ * MIT Licensed
135
+ */
136
+
137
+ /**
138
+ * @license React
139
+ * use-sync-external-store-shim.production.min.js
140
+ *
141
+ * Copyright (c) Facebook, Inc. and its affiliates.
142
+ *
143
+ * This source code is licensed under the MIT license found in the
144
+ * LICENSE file in the root directory of this source tree.
145
+ */
146
+
147
+ /**
148
+ * @license React
149
+ * use-sync-external-store-shim/with-selector.production.min.js
150
+ *
151
+ * Copyright (c) Facebook, Inc. and its affiliates.
152
+ *
153
+ * This source code is licensed under the MIT license found in the
154
+ * LICENSE file in the root directory of this source tree.
155
+ */
156
+
157
+ /**
158
+ * (c) Iconify
159
+ *
160
+ * For the full copyright and license information, please view the license.txt or license.gpl.txt
161
+ * files at https://github.com/iconify/iconify
162
+ *
163
+ * Licensed under MIT.
164
+ *
165
+ * @license MIT
166
+ * @version 3.0.1
167
+ */
168
+
169
+ /** @license React v0.19.1
170
+ * scheduler.production.min.js
171
+ *
172
+ * Copyright (c) Facebook, Inc. and its affiliates.
173
+ *
174
+ * This source code is licensed under the MIT license found in the
175
+ * LICENSE file in the root directory of this source tree.
176
+ */
177
+
178
+ /** @license React v16.14.0
179
+ * react-dom.production.min.js
180
+ *
181
+ * Copyright (c) Facebook, Inc. and its affiliates.
182
+ *
183
+ * This source code is licensed under the MIT license found in the
184
+ * LICENSE file in the root directory of this source tree.
185
+ */
186
+
187
+ /** @license React v16.14.0
188
+ * react.production.min.js
189
+ *
190
+ * Copyright (c) Facebook, Inc. and its affiliates.
191
+ *
192
+ * This source code is licensed under the MIT license found in the
193
+ * LICENSE file in the root directory of this source tree.
194
+ */
@@ -0,0 +1 @@
1
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9779],{58854:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(85493),o=n(37565),i=n(21769),l=n(74490),a=n(19933),u=n(40696),s=n(60411),c=n(96266);function d(){var e=(0,r.s0)(),t=(0,r.UO)().name,n=void 0===t?"abtnode":t,d=(0,s.h6)().info,f=d.routing.provider,p=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info"]}];if(f){var g="Service Gateway(".concat(f,")");p.push({id:"service-gateway-".concat(f),name:g,types:["error","access"]})}var b=(0,c.jsx)(o.Z,{sx:{minWidth:240},children:(0,c.jsx)(i.Z,{value:n,onChange:function(t){e("/logs/".concat(t.target.value))},size:"small",children:p.map((function(e){return(0,c.jsx)(l.Z,{value:e.id,children:e.name},e.id)}))})}),m=p.find((function(e){return e.id===n}))||p[0];return(0,c.jsx)(a.LogTerminalGroup,{name:m.name,logId:m.id,types:m.types,prepend:b,postpend:(0,c.jsx)(u.default,{id:d.did,name:"blocklet-server"})},m.id)}},24460:function(e,t,n){var r=n(93845);e.exports=function(e){return r(e.replace(/^[@./-]/,"").replace(/[@./_]/g,"-"))}},91895:function(e,t,n){"use strict";var r=n(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=n(5057),l=(o=n(12726))&&o.__esModule?o:{default:o},a=n(99875);var u=function(){var e=(0,i.useState)(+new Date),t=r(e,2),n=t[0],o=t[1];return(0,l.default)((function(){o(+new Date)}),1e3),(0,a.formatTime)(n,"MMMM Do YYYY, h:mm:ss a")};t.default=u},40696:function(e,t,n){"use strict";var r=n(27609).default,o=n(91461).default,i=n(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=P;var l=n(5057),a=O(n(55898)),u=O(n(74410)),s=O(n(54935)),c=O(n(63878)),d=O(n(11302)),f=O(n(90211)),p=O(n(51280)),g=O(n(34519)),b=O(n(13714)),m=n(52118),x=O(n(99593)),y=O(n(24460)),h=n(22324),j=O(n(32356)),v=n(96266);function O(e){return e&&e.__esModule?e:{default:e}}var w=[1,7];function P(e){var t=e.id,n=e.name,a=(0,m.useLocaleContext)().t,O=(0,h.useNodeContext)(),P=O.restApi,_=O.inService,C=(0,l.useState)(!1),k=i(C,2),S=k[0],D=k[1],M=(0,l.useState)(!1),B=i(M,2),E=B[0],N=B[1],R=(0,l.useState)(1),z=i(R,2),T=z[0],q=z[1],I=function(){var e=o(r().mark((function e(){var o,i,l,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!E){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,N(!0),o=_?"":"/".concat(t),e.next=7,P.get("/download/log".concat(o,"?days=").concat(T),{responseType:"blob"});case 7:i=e.sent,l=URL.createObjectURL(i.data),(a=document.createElement("a")).href=l,a.setAttribute("download","".concat((0,y.default)(n||t),".").concat((0,u.default)().format("YYYYMMDDHHmmss"),".log.zip")),document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(l),N(!1),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(2),N(!1),j.default.error(e.t0.message);case 23:case"end":return e.stop()}}),e,null,[[2,19]])})));return function(){return e.apply(this,arguments)}}();return[(0,v.jsx)(s.default,{display:"flex",alignItems:"center",style:{gap:16},children:(0,v.jsxs)(b.default,{"data-cy":"download-logs",variant:"outlined",onClick:function(){return D(!0)},disabled:E,children:[E?(0,v.jsx)(g.default,{size:[16,10]}):(0,v.jsx)(c.default,{fontSize:"small",style:{transform:"translateY(2px)"}}),(0,v.jsx)(s.default,{ml:.5,children:a("common.download")})]})}),S&&(0,v.jsx)(x.default,{open:!0,onClose:function(){D(!1)},disableEscapeKeyDown:!0,title:a("common.download"),PaperProps:{style:{minHeight:"auto"}},actions:(0,v.jsxs)(b.default,{"data-cy":"download-logs",variant:"outlined",onClick:function(){return I()},disabled:E,children:[E&&(0,v.jsx)(g.default,{size:[16,10]}),(0,v.jsx)(s.default,{ml:.5,children:a("common.confirm")})]}),children:(0,v.jsx)(s.default,{mb:2,display:"flex",justifyContent:"center",children:(0,v.jsx)(d.default,{size:"small",fullWidth:!0,children:(0,v.jsx)(f.default,{value:T,onChange:function(e){q(e.target.value)},children:w.map((function(e){return(0,v.jsx)(p.default,{value:e,children:a("log.lastDays.".concat(e))},e)}))})})})})]}P.propTypes={id:a.default.string.isRequired,name:a.default.string},P.defaultProps={name:""}},19933:function(e,t,n){"use strict";var r=n(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.LogTerminal=void 0,t.LogTerminalGroup=P;var o,i,l=n(5057),a=y(n(33518)),u=y(n(55898)),s=y(n(66816)),c=y(n(29379)),d=y(n(37154)),f=y(n(9746)),p=y(n(91895)),g=n(22324),b=n(96266),m=["name","logId","types","initialData","prepend","postpend"],x=["logFile"];function y(e){return e&&e.__esModule?e:{default:e}}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function P(e){var t=e.name,n=e.logId,o=e.types,i=e.initialData,a=e.prepend,u=e.postpend,f=w(e,m),p=(0,g.useNodeContext)().ws.useSubscription,x={info:"Info",error:"Error",access:"Access",stdout:"stdout",stderr:"stderr"},y=(0,d.default)((function(e){return e.breakpoints.down("md")})),h=(0,l.useState)(o[0]),j=r(h,2),O=j[0],P=j[1],k=(0,l.useState)(),S=r(k,2),D=S[0],M=S[1],B=(0,l.useRef)({});return(0,l.useEffect)((function(){o.forEach((function(e){var n=B.current[e];n&&(n.write("Collecting ".concat(e," logs for ").concat(t,"...")),n.write("\r\n\r\n"),i.forEach((function(e){return n.write(e)})))}))}),[]),p("log.".concat(n),(function(e){D||M(e.logFiles||{});var t=B.current[e.level];t&&(t.write(e.data.replace(/.\n/g,(function(e){return"\r\n"===e?e:"".concat(e[0],"\r\n\r\n")}))),t.write("\r\n\r\n"))}),[]),(0,b.jsxs)(_,v(v({},f),{},{children:[(0,b.jsxs)("div",{className:"log-terminal-group-head",children:[(0,b.jsxs)("div",{className:"log-terminal-group-head-start",children:[a,(0,b.jsx)(c.default,{variant:"outlined",size:y?"small":"medium",children:o.map((function(e){var t=e===O?{variant:"contained"}:{};return(0,b.jsx)(s.default,v(v({},t),{},{onClick:function(){return P(e)},children:x[e]}),e)}))})]}),(0,b.jsx)("div",{className:"log-terminal-group-head-end",children:u})]}),(0,b.jsx)("div",{className:"log-terminal-group-terminals",children:o.map((function(e){return(0,b.jsx)(C,{ref:function(t){B.current[e]=t},logFile:null===D||void 0===D?void 0:D[e],style:{visibility:e===O?"visible":"hidden"}},e)}))})]}))}P.propTypes={name:u.default.string.isRequired,logId:u.default.string.isRequired,types:u.default.arrayOf(u.default.string),initialData:u.default.arrayOf(u.default.string),prepend:u.default.node,postpend:u.default.node},P.defaultProps={types:["error","info","access","stdout","stderr"],initialData:[],prepend:null,postpend:null};var _=a.default.div(o||(o=h(["\n display: flex;\n flex-direction: column;\n height: 100%;\n .log-terminal-group-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n }\n\n .log-terminal-group-head-start {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: 16px;\n "," {\n flex-direction: column;\n align-items: start;\n }\n }\n\n .log-terminal-group-head-end {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: 16px;\n "," {\n flex-direction: column;\n align-items: start;\n }\n }\n .log-terminal-group-terminals {\n flex: 1;\n position: relative;\n overflow: hidden;\n > * {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.breakpoints.down("md")})),C=(0,l.forwardRef)((function(e,t){var n=e.logFile,r=w(e,x);return(0,b.jsxs)(k,v(v({},r),{},{children:[(0,b.jsxs)("div",{className:"log-terminal-top",children:[(0,b.jsx)(p.default,{}),n&&(0,b.jsx)("span",{children:n})]}),(0,b.jsx)("div",{className:"log-terminal-container",style:{position:"relative"},children:(0,b.jsx)(f.default,{ref:t,style:{width:"100%",boxSizing:"border-box",height:"100%"},options:{theme:{background:"#2C313C",foreground:"#EEEEEE"}}})})]}))}));t.LogTerminal=C,C.propTypes={logFile:u.default.string},C.defaultProps={logFile:""};var k=a.default.div(i||(i=h(["\n height: 100%;\n display: flex;\n flex-direction: column;\n .log-terminal-top {\n flex: 0 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n padding: 8px;\n font-size: 14px;\n color: aquamarine;\n background: darkgray;\n word-break: break-word;\n }\n .log-terminal-container {\n flex: 1;\n height: 100%;\n padding: 8px;\n overflow: hidden;\n background: #2c313c;\n }\n\n .xterm-viewport::-webkit-scrollbar {\n width: 10px;\n }\n .xterm-viewport::-webkit-scrollbar-track {\n opacity: 0;\n }\n .xterm-viewport::-webkit-scrollbar-thumb {\n min-height: 20px;\n background-color: #ffffff20;\n }\n"])))},85002:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=u(n(55898)),o=u(n(13714)),i=u(n(71709)),l=n(96266),a=["title","children","onConfirm","onCancel","showCancelButton","confirmButton","cancelButton","PaperProps"];function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e){var t=e.title,n=e.children,r=e.onConfirm,u=e.onCancel,s=e.showCancelButton,d=e.confirmButton,p=e.cancelButton,g=e.PaperProps,b=f(e,a);return g.style=Object.assign({minHeight:0},g.style),(0,l.jsx)(i.default,c(c({title:t,PaperProps:g},b),{},{onClose:function(){return u()},actions:(0,l.jsxs)(l.Fragment,{children:[s&&(0,l.jsx)(o.default,c(c({onClick:function(){return u()},color:"primary"},p.props),{},{children:p.text})),(0,l.jsx)(o.default,c(c({onClick:function(){return r()},color:"primary",autoFocus:!0},d.props),{},{children:d.text}))]}),children:n}))}p.propTypes={title:r.default.node.isRequired,children:r.default.node.isRequired,onConfirm:r.default.func.isRequired,onCancel:r.default.func.isRequired,showCancelButton:r.default.bool,confirmButton:r.default.shape({text:r.default.string.isRequired,props:r.default.object}),cancelButton:r.default.shape({text:r.default.string.isRequired,props:r.default.object}),PaperProps:r.default.object},p.defaultProps={showCancelButton:!0,confirmButton:{text:"Confirm"},cancelButton:{text:"Cancel"},PaperProps:{}}},71709:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=b(n(55898)),l=b(n(53498)),a=b(n(51294)),u=b(n(62481)),s=b(n(33321)),c=b(n(37154)),d=b(n(13727)),f=n(66044),p=n(96266),g=["children","title","prepend","toolbar","actions","showCloseButton","actionsPosition","PaperProps"];function b(e){return e&&e.__esModule?e:{default:e}}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e){var t=e.children,n=e.title,r=e.prepend,o=e.toolbar,i=e.actions,l=e.showCloseButton,b=e.actionsPosition,m=e.PaperProps,x=j(e,g),h=(0,f.useTheme)(),v=(0,c.default)(h.breakpoints.down("md")),P=n||l||o,_=function(e,t){var n=x.onClose;n&&n(e,t)};m.style=Object.assign({minWidth:300,minHeight:300},m.style);var C=(0,p.jsx)(s.default,{className:"ux-dialog_closeButton",onClick:function(e){return _(e,"closeButton")},size:"large",children:(0,p.jsx)(d.default,{})});return(0,p.jsxs)(O,y(y({fullScreen:v,onClose:_,PaperProps:m},x),{},{children:[P&&(0,p.jsxs)(w,{className:"ux-dialog_header",isMobile:v,children:[(0,p.jsxs)("div",{className:"ux-dialog_left",children:[l&&v&&C,r&&(0,p.jsx)("div",{className:"ux-dialog_prepend",children:r}),n&&(0,p.jsx)("h6",{className:"ux-dialog_title",children:n})]}),(0,p.jsxs)("div",{className:"ux-dialog_right",children:[(0,p.jsx)("div",{className:"ux-dialog_toolbar",children:o}),l&&!v&&C]})]}),(0,p.jsx)(a.default,{children:t}),i&&(0,p.jsx)(u.default,{className:"ux-dialog_actions--".concat(b),children:i})]}))}v.propTypes={children:i.default.node.isRequired,title:i.default.node,prepend:i.default.node,toolbar:i.default.node,actions:i.default.node,showCloseButton:i.default.bool,actionsPosition:i.default.oneOf(["left","center","right"]),PaperProps:i.default.object},v.defaultProps={showCloseButton:!0,title:"",prepend:null,toolbar:null,actions:null,actionsPosition:"right",PaperProps:{}};var O=(0,f.styled)(l.default)(r||(r=m(["\n .MuiDialog-paper {\n ",";\n }\n .MuiDialogContent-root {\n padding: 16px 24px;\n }\n .MuiDialogActions-root {\n padding: 8px 24px 16px 24px;\n }\n .MuiDialogActions-root.ux-dialog_actions--left {\n justify-content: flex-start;\n }\n .MuiDialogActions-root.ux-dialog_actions--right {\n justify-content: flex-end;\n }\n .MuiDialogActions-root.ux-dialog_actions--center {\n justify-content: center;\n }\n"])),(function(e){return e.fullScreen?"border-radius: 0;":""})),w=(0,f.styled)("div")(o||(o=m(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n .ux-dialog_left {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n min-width: 0;\n }\n .ux-dialog_right {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n }\n .ux-dialog_toolbar {\n display: flex;\n align-items: center;\n }\n .ux-dialog_title {\n margin: 0;\n font-size: 18px;\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .ux-dialog_closeButton {\n /* \u4f7f closeButton \u4e0e content \u5de6/\u53f3\u5bf9\u9f50 */\n ","\n }\n"])),(function(e){return e.isMobile?"margin-left: -12px;":"margin-right: -12px;"})),P=v;t.default=P},99593:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Confirm",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.default}});var r=i(n(71709)),o=i(n(85002));function i(e){return e&&e.__esModule?e:{default:e}}}}]);