systemrobotassistant 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of systemrobotassistant might be problematic. Click here for more details.

Files changed (369) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc +45 -0
  3. package/.gitlab-ci.yml +52 -0
  4. package/.lecprc.ts +76 -0
  5. package/.yarnrc +1 -0
  6. package/CHANGELOG.md +114 -0
  7. package/README.md +14 -0
  8. package/custom-amd-plugin.ts +46 -0
  9. package/es/component/answer-itme/index.d.ts +20 -0
  10. package/es/component/answer-itme/index.d.ts.map +1 -0
  11. package/es/component/answer-itme/index.js +41 -0
  12. package/es/component/answer-itme/style.css +35 -0
  13. package/es/component/data-container/index.d.ts +19 -0
  14. package/es/component/data-container/index.d.ts.map +1 -0
  15. package/es/component/data-container/index.js +37 -0
  16. package/es/component/data-container/style.css +26 -0
  17. package/es/component/days-tab/index.d.ts +6 -0
  18. package/es/component/days-tab/index.d.ts.map +1 -0
  19. package/es/component/days-tab/index.js +119 -0
  20. package/es/component/days-tab/style.css +43 -0
  21. package/es/component/days-tab/utils.d.ts +32 -0
  22. package/es/component/days-tab/utils.d.ts.map +1 -0
  23. package/es/component/days-tab/utils.js +98 -0
  24. package/es/component/error-boundary/index.d.ts +2 -0
  25. package/es/component/error-boundary/index.d.ts.map +1 -0
  26. package/es/component/error-boundary/index.js +33 -0
  27. package/es/component/it-notice-modal/columns.d.ts +11 -0
  28. package/es/component/it-notice-modal/columns.d.ts.map +1 -0
  29. package/es/component/it-notice-modal/columns.js +108 -0
  30. package/es/component/it-notice-modal/double-tab.d.ts +6 -0
  31. package/es/component/it-notice-modal/double-tab.d.ts.map +1 -0
  32. package/es/component/it-notice-modal/double-tab.js +94 -0
  33. package/es/component/it-notice-modal/index.d.ts +6 -0
  34. package/es/component/it-notice-modal/index.d.ts.map +1 -0
  35. package/es/component/it-notice-modal/index.js +488 -0
  36. package/es/component/it-notice-modal/server.d.ts +8 -0
  37. package/es/component/it-notice-modal/server.d.ts.map +1 -0
  38. package/es/component/it-notice-modal/server.js +43 -0
  39. package/es/component/it-notice-modal/single-tab.d.ts +6 -0
  40. package/es/component/it-notice-modal/single-tab.d.ts.map +1 -0
  41. package/es/component/it-notice-modal/single-tab.js +82 -0
  42. package/es/component/it-notice-modal/style.css +301 -0
  43. package/es/component/it-notice-modal/utils.d.ts +2 -0
  44. package/es/component/it-notice-modal/utils.d.ts.map +1 -0
  45. package/es/component/it-notice-modal/utils.js +8 -0
  46. package/es/component/it-notice-tab/index.d.ts +6 -0
  47. package/es/component/it-notice-tab/index.d.ts.map +1 -0
  48. package/es/component/it-notice-tab/index.js +206 -0
  49. package/es/component/it-notice-tab/server.d.ts +3 -0
  50. package/es/component/it-notice-tab/server.d.ts.map +1 -0
  51. package/es/component/it-notice-tab/server.js +13 -0
  52. package/es/component/it-notice-tab/style.css +103 -0
  53. package/es/component/mail-list-modal/index.d.ts +2 -0
  54. package/es/component/mail-list-modal/index.d.ts.map +1 -0
  55. package/es/component/mail-list-modal/index.js +306 -0
  56. package/es/component/mail-list-modal/server.d.ts +7 -0
  57. package/es/component/mail-list-modal/server.d.ts.map +1 -0
  58. package/es/component/mail-list-modal/server.js +38 -0
  59. package/es/component/mail-list-modal/style.css +132 -0
  60. package/es/component/myself-chat-card/index.d.ts +15 -0
  61. package/es/component/myself-chat-card/index.d.ts.map +1 -0
  62. package/es/component/myself-chat-card/index.js +25 -0
  63. package/es/component/myself-chat-card/style.css +22 -0
  64. package/es/component/need-answer/index.d.ts +15 -0
  65. package/es/component/need-answer/index.d.ts.map +1 -0
  66. package/es/component/need-answer/index.js +60 -0
  67. package/es/component/need-answer/style.css +19 -0
  68. package/es/component/opppsition-chat-card/index.d.ts +11 -0
  69. package/es/component/opppsition-chat-card/index.d.ts.map +1 -0
  70. package/es/component/opppsition-chat-card/index.js +25 -0
  71. package/es/component/opppsition-chat-card/style.css +23 -0
  72. package/es/component/question-library/index.d.ts +10 -0
  73. package/es/component/question-library/index.d.ts.map +1 -0
  74. package/es/component/question-library/index.js +291 -0
  75. package/es/component/question-library/server.d.ts +4 -0
  76. package/es/component/question-library/server.d.ts.map +1 -0
  77. package/es/component/question-library/server.js +19 -0
  78. package/es/component/question-library/style.css +75 -0
  79. package/es/component/question-tag/index.d.ts +11 -0
  80. package/es/component/question-tag/index.d.ts.map +1 -0
  81. package/es/component/question-tag/index.js +23 -0
  82. package/es/component/question-tag/style.css +12 -0
  83. package/es/component/recommend-questions-card/index.d.ts +10 -0
  84. package/es/component/recommend-questions-card/index.d.ts.map +1 -0
  85. package/es/component/recommend-questions-card/index.js +104 -0
  86. package/es/component/recommend-questions-card/style.css +54 -0
  87. package/es/component/scroll-view/index.d.ts +3 -0
  88. package/es/component/scroll-view/index.d.ts.map +1 -0
  89. package/es/component/scroll-view/index.js +2 -0
  90. package/es/component/scroll-view/scroll-view.d.ts +18 -0
  91. package/es/component/scroll-view/scroll-view.d.ts.map +1 -0
  92. package/es/component/scroll-view/scroll-view.js +66 -0
  93. package/es/component/scroll-view/style.css +34 -0
  94. package/es/component/tab/index.d.ts +2 -0
  95. package/es/component/tab/index.d.ts.map +1 -0
  96. package/es/component/tab/index.js +18 -0
  97. package/es/component/tab/style.css +26 -0
  98. package/es/component/tips-answer/index.d.ts +15 -0
  99. package/es/component/tips-answer/index.d.ts.map +1 -0
  100. package/es/component/tips-answer/index.js +28 -0
  101. package/es/component/tips-answer/style.css +10 -0
  102. package/es/images/expire-robot.svg +16 -0
  103. package/es/images/pc-invalid.svg +11 -0
  104. package/es/images/screenshot-5.png +0 -0
  105. package/es/index.d.ts +92 -0
  106. package/es/index.d.ts.map +1 -0
  107. package/es/index.js +506 -0
  108. package/es/js/const.d.ts +41 -0
  109. package/es/js/const.d.ts.map +1 -0
  110. package/es/js/const.js +46 -0
  111. package/es/js/gen-render-promise.d.ts +9 -0
  112. package/es/js/gen-render-promise.d.ts.map +1 -0
  113. package/es/js/gen-render-promise.js +30 -0
  114. package/es/js/get-time.d.ts +15 -0
  115. package/es/js/get-time.d.ts.map +1 -0
  116. package/es/js/get-time.js +35 -0
  117. package/es/js/hfc-space.d.ts +16 -0
  118. package/es/js/hfc-space.d.ts.map +1 -0
  119. package/es/js/hfc-space.js +71 -0
  120. package/es/js/render-special.d.ts +16 -0
  121. package/es/js/render-special.d.ts.map +1 -0
  122. package/es/js/render-special.js +53 -0
  123. package/es/js/request/fetch.d.ts +10 -0
  124. package/es/js/request/fetch.d.ts.map +1 -0
  125. package/es/js/request/fetch.js +81 -0
  126. package/es/js/request/request.d.ts +3 -0
  127. package/es/js/request/request.d.ts.map +1 -0
  128. package/es/js/request/request.js +63 -0
  129. package/es/js/showMessage.d.ts +15 -0
  130. package/es/js/showMessage.d.ts.map +1 -0
  131. package/es/js/showMessage.js +75 -0
  132. package/es/js/state-immer.d.ts +3 -0
  133. package/es/js/state-immer.d.ts.map +1 -0
  134. package/es/js/state-immer.js +19 -0
  135. package/es/js/timer-executor.d.ts +3 -0
  136. package/es/js/timer-executor.d.ts.map +1 -0
  137. package/es/js/timer-executor.js +83 -0
  138. package/es/js/to-hfc.d.ts +2 -0
  139. package/es/js/to-hfc.d.ts.map +1 -0
  140. package/es/js/to-hfc.js +8 -0
  141. package/es/js/utils.d.ts +3 -0
  142. package/es/js/utils.d.ts.map +1 -0
  143. package/es/js/utils.js +11 -0
  144. package/es/jsx/chat-modal.d.ts +16 -0
  145. package/es/jsx/chat-modal.d.ts.map +1 -0
  146. package/es/jsx/chat-modal.js +268 -0
  147. package/es/server.d.ts +8 -0
  148. package/es/server.d.ts.map +1 -0
  149. package/es/server.js +44 -0
  150. package/es/style.css +174 -0
  151. package/lib/component/answer-itme/index.d.ts +20 -0
  152. package/lib/component/answer-itme/index.d.ts.map +1 -0
  153. package/lib/component/answer-itme/index.js +51 -0
  154. package/lib/component/answer-itme/style.css +35 -0
  155. package/lib/component/data-container/index.d.ts +19 -0
  156. package/lib/component/data-container/index.d.ts.map +1 -0
  157. package/lib/component/data-container/index.js +45 -0
  158. package/lib/component/data-container/style.css +26 -0
  159. package/lib/component/days-tab/index.d.ts +6 -0
  160. package/lib/component/days-tab/index.d.ts.map +1 -0
  161. package/lib/component/days-tab/index.js +129 -0
  162. package/lib/component/days-tab/style.css +43 -0
  163. package/lib/component/days-tab/utils.d.ts +32 -0
  164. package/lib/component/days-tab/utils.d.ts.map +1 -0
  165. package/lib/component/days-tab/utils.js +110 -0
  166. package/lib/component/error-boundary/index.d.ts +2 -0
  167. package/lib/component/error-boundary/index.d.ts.map +1 -0
  168. package/lib/component/error-boundary/index.js +40 -0
  169. package/lib/component/it-notice-modal/columns.d.ts +11 -0
  170. package/lib/component/it-notice-modal/columns.d.ts.map +1 -0
  171. package/lib/component/it-notice-modal/columns.js +116 -0
  172. package/lib/component/it-notice-modal/double-tab.d.ts +6 -0
  173. package/lib/component/it-notice-modal/double-tab.d.ts.map +1 -0
  174. package/lib/component/it-notice-modal/double-tab.js +104 -0
  175. package/lib/component/it-notice-modal/index.d.ts +6 -0
  176. package/lib/component/it-notice-modal/index.d.ts.map +1 -0
  177. package/lib/component/it-notice-modal/index.js +499 -0
  178. package/lib/component/it-notice-modal/server.d.ts +8 -0
  179. package/lib/component/it-notice-modal/server.d.ts.map +1 -0
  180. package/lib/component/it-notice-modal/server.js +55 -0
  181. package/lib/component/it-notice-modal/single-tab.d.ts +6 -0
  182. package/lib/component/it-notice-modal/single-tab.d.ts.map +1 -0
  183. package/lib/component/it-notice-modal/single-tab.js +92 -0
  184. package/lib/component/it-notice-modal/style.css +301 -0
  185. package/lib/component/it-notice-modal/utils.d.ts +2 -0
  186. package/lib/component/it-notice-modal/utils.d.ts.map +1 -0
  187. package/lib/component/it-notice-modal/utils.js +15 -0
  188. package/lib/component/it-notice-tab/index.d.ts +6 -0
  189. package/lib/component/it-notice-tab/index.d.ts.map +1 -0
  190. package/lib/component/it-notice-tab/index.js +216 -0
  191. package/lib/component/it-notice-tab/server.d.ts +3 -0
  192. package/lib/component/it-notice-tab/server.d.ts.map +1 -0
  193. package/lib/component/it-notice-tab/server.js +20 -0
  194. package/lib/component/it-notice-tab/style.css +103 -0
  195. package/lib/component/mail-list-modal/index.d.ts +2 -0
  196. package/lib/component/mail-list-modal/index.d.ts.map +1 -0
  197. package/lib/component/mail-list-modal/index.js +316 -0
  198. package/lib/component/mail-list-modal/server.d.ts +7 -0
  199. package/lib/component/mail-list-modal/server.d.ts.map +1 -0
  200. package/lib/component/mail-list-modal/server.js +50 -0
  201. package/lib/component/mail-list-modal/style.css +132 -0
  202. package/lib/component/myself-chat-card/index.d.ts +15 -0
  203. package/lib/component/myself-chat-card/index.d.ts.map +1 -0
  204. package/lib/component/myself-chat-card/index.js +35 -0
  205. package/lib/component/myself-chat-card/style.css +22 -0
  206. package/lib/component/need-answer/index.d.ts +15 -0
  207. package/lib/component/need-answer/index.d.ts.map +1 -0
  208. package/lib/component/need-answer/index.js +70 -0
  209. package/lib/component/need-answer/style.css +19 -0
  210. package/lib/component/opppsition-chat-card/index.d.ts +11 -0
  211. package/lib/component/opppsition-chat-card/index.d.ts.map +1 -0
  212. package/lib/component/opppsition-chat-card/index.js +35 -0
  213. package/lib/component/opppsition-chat-card/style.css +23 -0
  214. package/lib/component/question-library/index.d.ts +10 -0
  215. package/lib/component/question-library/index.d.ts.map +1 -0
  216. package/lib/component/question-library/index.js +301 -0
  217. package/lib/component/question-library/server.d.ts +4 -0
  218. package/lib/component/question-library/server.d.ts.map +1 -0
  219. package/lib/component/question-library/server.js +27 -0
  220. package/lib/component/question-library/style.css +75 -0
  221. package/lib/component/question-tag/index.d.ts +11 -0
  222. package/lib/component/question-tag/index.d.ts.map +1 -0
  223. package/lib/component/question-tag/index.js +33 -0
  224. package/lib/component/question-tag/style.css +12 -0
  225. package/lib/component/recommend-questions-card/index.d.ts +10 -0
  226. package/lib/component/recommend-questions-card/index.d.ts.map +1 -0
  227. package/lib/component/recommend-questions-card/index.js +114 -0
  228. package/lib/component/recommend-questions-card/style.css +54 -0
  229. package/lib/component/scroll-view/index.d.ts +3 -0
  230. package/lib/component/scroll-view/index.d.ts.map +1 -0
  231. package/lib/component/scroll-view/index.js +10 -0
  232. package/lib/component/scroll-view/scroll-view.d.ts +18 -0
  233. package/lib/component/scroll-view/scroll-view.d.ts.map +1 -0
  234. package/lib/component/scroll-view/scroll-view.js +76 -0
  235. package/lib/component/scroll-view/style.css +34 -0
  236. package/lib/component/tab/index.d.ts +2 -0
  237. package/lib/component/tab/index.d.ts.map +1 -0
  238. package/lib/component/tab/index.js +28 -0
  239. package/lib/component/tab/style.css +26 -0
  240. package/lib/component/tips-answer/index.d.ts +15 -0
  241. package/lib/component/tips-answer/index.d.ts.map +1 -0
  242. package/lib/component/tips-answer/index.js +38 -0
  243. package/lib/component/tips-answer/style.css +10 -0
  244. package/lib/images/expire-robot.svg +16 -0
  245. package/lib/images/pc-invalid.svg +11 -0
  246. package/lib/images/screenshot-5.png +0 -0
  247. package/lib/index.d.ts +92 -0
  248. package/lib/index.d.ts.map +1 -0
  249. package/lib/index.js +516 -0
  250. package/lib/js/const.d.ts +41 -0
  251. package/lib/js/const.d.ts.map +1 -0
  252. package/lib/js/const.js +55 -0
  253. package/lib/js/gen-render-promise.d.ts +9 -0
  254. package/lib/js/gen-render-promise.d.ts.map +1 -0
  255. package/lib/js/gen-render-promise.js +37 -0
  256. package/lib/js/get-time.d.ts +15 -0
  257. package/lib/js/get-time.d.ts.map +1 -0
  258. package/lib/js/get-time.js +43 -0
  259. package/lib/js/hfc-space.d.ts +16 -0
  260. package/lib/js/hfc-space.d.ts.map +1 -0
  261. package/lib/js/hfc-space.js +91 -0
  262. package/lib/js/render-special.d.ts +16 -0
  263. package/lib/js/render-special.d.ts.map +1 -0
  264. package/lib/js/render-special.js +61 -0
  265. package/lib/js/request/fetch.d.ts +10 -0
  266. package/lib/js/request/fetch.d.ts.map +1 -0
  267. package/lib/js/request/fetch.js +88 -0
  268. package/lib/js/request/request.d.ts +3 -0
  269. package/lib/js/request/request.d.ts.map +1 -0
  270. package/lib/js/request/request.js +71 -0
  271. package/lib/js/showMessage.d.ts +15 -0
  272. package/lib/js/showMessage.d.ts.map +1 -0
  273. package/lib/js/showMessage.js +83 -0
  274. package/lib/js/state-immer.d.ts +3 -0
  275. package/lib/js/state-immer.d.ts.map +1 -0
  276. package/lib/js/state-immer.js +27 -0
  277. package/lib/js/timer-executor.d.ts +3 -0
  278. package/lib/js/timer-executor.d.ts.map +1 -0
  279. package/lib/js/timer-executor.js +91 -0
  280. package/lib/js/to-hfc.d.ts +2 -0
  281. package/lib/js/to-hfc.d.ts.map +1 -0
  282. package/lib/js/to-hfc.js +14 -0
  283. package/lib/js/utils.d.ts +3 -0
  284. package/lib/js/utils.d.ts.map +1 -0
  285. package/lib/js/utils.js +19 -0
  286. package/lib/jsx/chat-modal.d.ts +16 -0
  287. package/lib/jsx/chat-modal.d.ts.map +1 -0
  288. package/lib/jsx/chat-modal.js +278 -0
  289. package/lib/server.d.ts +8 -0
  290. package/lib/server.d.ts.map +1 -0
  291. package/lib/server.js +58 -0
  292. package/lib/style.css +174 -0
  293. package/package.json +57 -0
  294. package/rct.config.js +8 -0
  295. package/src/component/answer-itme/index.jsx +64 -0
  296. package/src/component/answer-itme/style.less +37 -0
  297. package/src/component/data-container/index.jsx +45 -0
  298. package/src/component/data-container/style.less +27 -0
  299. package/src/component/days-tab/index.jsx +114 -0
  300. package/src/component/days-tab/style.less +55 -0
  301. package/src/component/days-tab/utils.js +87 -0
  302. package/src/component/error-boundary/index.jsx +39 -0
  303. package/src/component/it-notice-modal/columns.js +102 -0
  304. package/src/component/it-notice-modal/double-tab.jsx +83 -0
  305. package/src/component/it-notice-modal/index.jsx +404 -0
  306. package/src/component/it-notice-modal/server.js +43 -0
  307. package/src/component/it-notice-modal/single-tab.jsx +70 -0
  308. package/src/component/it-notice-modal/style.less +367 -0
  309. package/src/component/it-notice-modal/utils.js +8 -0
  310. package/src/component/it-notice-tab/index.jsx +196 -0
  311. package/src/component/it-notice-tab/server.js +14 -0
  312. package/src/component/it-notice-tab/style.less +120 -0
  313. package/src/component/mail-list-modal/index.jsx +270 -0
  314. package/src/component/mail-list-modal/server.js +38 -0
  315. package/src/component/mail-list-modal/style.less +154 -0
  316. package/src/component/myself-chat-card/index.jsx +27 -0
  317. package/src/component/myself-chat-card/style.less +30 -0
  318. package/src/component/need-answer/index.jsx +56 -0
  319. package/src/component/need-answer/style.less +21 -0
  320. package/src/component/opppsition-chat-card/index.jsx +25 -0
  321. package/src/component/opppsition-chat-card/style.less +33 -0
  322. package/src/component/question-library/index.jsx +316 -0
  323. package/src/component/question-library/server.js +19 -0
  324. package/src/component/question-library/style.less +102 -0
  325. package/src/component/question-tag/index.jsx +27 -0
  326. package/src/component/question-tag/style.less +15 -0
  327. package/src/component/recommend-questions-card/index.jsx +111 -0
  328. package/src/component/recommend-questions-card/style.less +66 -0
  329. package/src/component/scroll-view/index.js +3 -0
  330. package/src/component/scroll-view/scroll-view.jsx +74 -0
  331. package/src/component/scroll-view/style.less +37 -0
  332. package/src/component/tab/index.jsx +17 -0
  333. package/src/component/tab/style.less +26 -0
  334. package/src/component/tips-answer/index.jsx +38 -0
  335. package/src/component/tips-answer/style.less +11 -0
  336. package/src/images/expire-robot.svg +16 -0
  337. package/src/images/pc-invalid.svg +11 -0
  338. package/src/images/screenshot-5.png +0 -0
  339. package/src/index.jsx +554 -0
  340. package/src/js/const.js +48 -0
  341. package/src/js/gen-render-promise.js +32 -0
  342. package/src/js/get-time.js +35 -0
  343. package/src/js/hfc-space.js +91 -0
  344. package/src/js/render-special.js +64 -0
  345. package/src/js/request/fetch.js +87 -0
  346. package/src/js/request/request.js +74 -0
  347. package/src/js/showMessage.js +81 -0
  348. package/src/js/state-immer.js +12 -0
  349. package/src/js/timer-executor.js +37 -0
  350. package/src/js/to-hfc.js +9 -0
  351. package/src/js/utils.js +13 -0
  352. package/src/jsx/chat-modal.jsx +254 -0
  353. package/src/main.js +1 -0
  354. package/src/server.js +45 -0
  355. package/src/style.less +229 -0
  356. package/test/cases/case-01.assert.js +6 -0
  357. package/test/cases/case-01.source.jsx +17 -0
  358. package/test/cases/case-02.assert.js +6 -0
  359. package/test/cases/case-02.source.jsx +25 -0
  360. package/test/cases/case-02.style.less +15 -0
  361. package/test/cases/case-03.source.jsx +69 -0
  362. package/test/cases/case-03.style.less +3 -0
  363. package/tsconfig.json +48 -0
  364. package/typings.d.ts +5 -0
  365. package/umd/b415d90208c277ba3703.png +0 -0
  366. package/umd/index.css +1753 -0
  367. package/umd/index.js +36258 -0
  368. package/umd/index.min.css +1 -0
  369. package/umd/index.min.js +657 -0
@@ -0,0 +1,301 @@
1
+ .shein-components_systemrobotassistant_itNoticeModal {
2
+ padding: 0;
3
+ background-color: #F7F9FC;
4
+ overflow: hidden;
5
+ word-break: break-all;
6
+ }
7
+ .shein-components_systemrobotassistant_itNoticeModal .so-card-body {
8
+ display: flex;
9
+ flex-direction: column;
10
+ overflow: hidden;
11
+ color: #35383D;
12
+ font-family: PingFangSC-Regular, PingFang SC;
13
+ }
14
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_modalHeader {
15
+ padding: 12px;
16
+ position: relative;
17
+ text-align: center;
18
+ background-color: #FFFFFF;
19
+ font-size: 20px;
20
+ box-shadow: 0px 1px 0px 0px rgba(230, 234, 240, 0.5);
21
+ }
22
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_modalHeader .shein-components_systemrobotassistant_tabExtraCon {
23
+ position: absolute;
24
+ right: 44px;
25
+ top: 50%;
26
+ transform: translateY(-50%);
27
+ font-size: 14px;
28
+ color: #7E848F;
29
+ }
30
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_modalHeader .shein-components_systemrobotassistant_closeIcon {
31
+ position: absolute;
32
+ right: 12px;
33
+ top: 50%;
34
+ transform: translateY(-50%);
35
+ font-size: 20px;
36
+ color: #7E848F;
37
+ cursor: pointer;
38
+ }
39
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_modalBody {
40
+ display: flex;
41
+ flex: 1;
42
+ overflow: hidden;
43
+ }
44
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_leftCon {
45
+ width: 204px;
46
+ height: 100%;
47
+ display: flex;
48
+ flex-direction: column;
49
+ background-color: #FFFFFF;
50
+ }
51
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_leftCon .shein-components_systemrobotassistant_leftHeader {
52
+ margin-top: 8px;
53
+ padding: 8px 8px 8px 12px;
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: space-between;
57
+ flex-shrink: 0;
58
+ font-weight: bold;
59
+ }
60
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_leftCon .shein-components_systemrobotassistant_leftHeader .shein-components_systemrobotassistant_indentIcon {
61
+ cursor: pointer;
62
+ font-size: 16px;
63
+ }
64
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_leftCon .shein-components_systemrobotassistant_indentHeader {
65
+ width: 48px;
66
+ justify-content: flex-start;
67
+ flex-direction: column-reverse;
68
+ }
69
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_leftCon .shein-components_systemrobotassistant_leftListCon .so-list-item {
70
+ padding: 0;
71
+ }
72
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_leftCon .shein-components_systemrobotassistant_leftListCon .so-list-item::after {
73
+ display: none;
74
+ }
75
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_leftCon .shein-components_systemrobotassistant_leftListCon .shein-components_systemrobotassistant_menuItem {
76
+ padding: 8px 8px 8px 16px;
77
+ margin-bottom: 8px;
78
+ cursor: pointer;
79
+ }
80
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_leftCon .shein-components_systemrobotassistant_leftListCon .shein-components_systemrobotassistant_menuItem:last-child {
81
+ margin-bottom: 0;
82
+ }
83
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_leftCon .shein-components_systemrobotassistant_leftListCon .shein-components_systemrobotassistant_menuItem.shein-components_systemrobotassistant_active {
84
+ position: relative;
85
+ background-color: #E2F2FF;
86
+ color: #1890FF;
87
+ color: var(--primary-color, #1890FF);
88
+ }
89
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_leftCon .shein-components_systemrobotassistant_leftListCon .shein-components_systemrobotassistant_menuItem.shein-components_systemrobotassistant_active::before {
90
+ content: '';
91
+ position: absolute;
92
+ left: 0;
93
+ top: 0;
94
+ width: 4px;
95
+ height: 100%;
96
+ background-color: #1890FF;
97
+ background-color: var(--primary-color, #1890FF);
98
+ border-radius: 0px 4px 4px 0px;
99
+ }
100
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_indentLeftCon {
101
+ width: 48px;
102
+ transition: all 0.3s ease-in-out;
103
+ }
104
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_indentLeftCon .shein-components_systemrobotassistant_leftHeader {
105
+ justify-content: flex-start;
106
+ flex-direction: column-reverse;
107
+ }
108
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_indentLeftCon .shein-components_systemrobotassistant_leftHeader .shein-components_systemrobotassistant_headTitle {
109
+ letter-spacing: 1em;
110
+ margin-left: 1em;
111
+ }
112
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_indentLeftCon .shein-components_systemrobotassistant_leftHeader .shein-components_systemrobotassistant_indentIcon {
113
+ margin-bottom: 8px;
114
+ }
115
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_rightCon {
116
+ position: relative;
117
+ padding: 8px 8px 0;
118
+ display: flex;
119
+ flex-direction: column;
120
+ flex: 1;
121
+ overflow: hidden;
122
+ }
123
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_tabHeader {
124
+ display: flex;
125
+ align-items: center;
126
+ border-bottom: 1px solid #E8EBF0;
127
+ }
128
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_tabHeader .shein-components_systemrobotassistant_tabItem {
129
+ padding: 6px 16px;
130
+ display: flex;
131
+ align-items: center;
132
+ font-size: 16px;
133
+ font-family: PingFangSC-Medium, PingFang SC;
134
+ font-weight: bold;
135
+ line-height: 24px;
136
+ border-radius: 4px 4px 0px 0px;
137
+ background-color: #FFFFFF;
138
+ cursor: pointer;
139
+ }
140
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_tabHeader .shein-components_systemrobotassistant_tabItem .shein-components_systemrobotassistant_helpIcon {
141
+ margin-left: 4px;
142
+ color: #7E848F;
143
+ }
144
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_tabHeader .shein-components_systemrobotassistant_tabItem.shein-components_systemrobotassistant_active {
145
+ position: relative;
146
+ background: #1890FF;
147
+ background: var(--primary-color, #1890FF);
148
+ color: #FFFFFF;
149
+ }
150
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_tabHeader .shein-components_systemrobotassistant_tabItem.shein-components_systemrobotassistant_active .shein-components_systemrobotassistant_helpIcon {
151
+ color: #FFFFFF;
152
+ }
153
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_subTabCon {
154
+ padding-top: 8px;
155
+ background-color: #FFFFFF;
156
+ }
157
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_tabCon {
158
+ display: flex;
159
+ flex-direction: column;
160
+ flex: 1;
161
+ overflow: hidden;
162
+ background-color: #FFFFFF;
163
+ }
164
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_signatureCon {
165
+ position: absolute;
166
+ top: 0;
167
+ right: 12px;
168
+ width: 138px;
169
+ height: 126px;
170
+ display: flex;
171
+ align-items: center;
172
+ justify-content: center;
173
+ color: #D13135;
174
+ font-size: 12px;
175
+ z-index: 10;
176
+ pointer-events: none;
177
+ }
178
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_signatureCon img {
179
+ position: absolute;
180
+ top: 0;
181
+ left: 0;
182
+ width: 138px;
183
+ height: 126px;
184
+ }
185
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_signatureCon .shein-components_systemrobotassistant_signatureTextCon {
186
+ display: flex;
187
+ flex-direction: column;
188
+ align-items: center;
189
+ justify-content: center;
190
+ transform: translateY(4px) rotate(-15deg);
191
+ font-family: 方正兰亭粗黑简体;
192
+ }
193
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_signatureCon .shein-components_systemrobotassistant_signatureTextCon .shein-components_systemrobotassistant_configText {
194
+ white-space: nowrap;
195
+ }
196
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_mainNoticeCon {
197
+ position: relative;
198
+ display: flex;
199
+ flex-direction: column;
200
+ flex: 1;
201
+ overflow: hidden;
202
+ overflow-y: auto;
203
+ background-color: #FFFFFF;
204
+ }
205
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_mainNoticeCon .shein-components_systemrobotassistant_containerTitle {
206
+ color: #7E848F;
207
+ padding: 16px 8px 16px 20px;
208
+ }
209
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_mainNoticeCon .shein-components_systemrobotassistant_containerTitle .shein-components_systemrobotassistant_numberText {
210
+ margin: 0 4px;
211
+ color: #35383D;
212
+ font-size: 16px;
213
+ font-weight: bold;
214
+ }
215
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_datesCon {
216
+ padding: 12px 20px;
217
+ display: grid;
218
+ grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
219
+ grid-gap: 8px;
220
+ }
221
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_datesCon .shein-components_systemrobotassistant_dateItem {
222
+ width: 100%;
223
+ height: 32px;
224
+ display: flex;
225
+ align-items: center;
226
+ justify-content: center;
227
+ border-radius: 4px;
228
+ border: 1px solid #D9D9D9;
229
+ cursor: pointer;
230
+ }
231
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_datesCon .shein-components_systemrobotassistant_dateItem.shein-components_systemrobotassistant_active {
232
+ border: 1px solid #1890FF;
233
+ border: 1px solid var(--primary-color, #1890FF);
234
+ color: #1890FF;
235
+ color: var(--primary-color, #1890FF);
236
+ }
237
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_tableWrapper {
238
+ padding: 0 20px;
239
+ display: flex;
240
+ flex-direction: column;
241
+ flex: 1;
242
+ }
243
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table {
244
+ margin-top: 8px;
245
+ margin-bottom: 0;
246
+ border: 1px solid rgba(217, 217, 217, 0.5);
247
+ border-radius: 4px;
248
+ }
249
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table .shein-components_systemrobotassistant_tdCol {
250
+ display: flex;
251
+ flex-direction: column;
252
+ }
253
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table .shein-components_systemrobotassistant_tdCol .shein-components_systemrobotassistant_title {
254
+ margin-bottom: 4px;
255
+ color: #7E848F;
256
+ }
257
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table .shein-components_systemrobotassistant_tdCol .shein-components_systemrobotassistant_listItem {
258
+ width: 100%;
259
+ display: flex;
260
+ overflow: hidden;
261
+ }
262
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table thead th,
263
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table tr td {
264
+ padding: 12px;
265
+ background-color: #F7F9FC;
266
+ font-weight: normal;
267
+ }
268
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table tr td {
269
+ border-color: rgba(217, 217, 217, 0.5);
270
+ background-color: #FFFFFF;
271
+ }
272
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table tr:last-child td {
273
+ border-bottom: unset;
274
+ }
275
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table thead th {
276
+ color: #7E848F;
277
+ }
278
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table .so-table-head > table {
279
+ border-bottom: 1px solid rgba(217, 217, 217, 0.5);
280
+ }
281
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_table .so-table-empty {
282
+ padding: 12px;
283
+ font-size: 14px;
284
+ }
285
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_clickText {
286
+ color: #1890FF;
287
+ color: var(--primary-color, #1890FF);
288
+ cursor: pointer;
289
+ }
290
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_modalFooter {
291
+ padding: 12px;
292
+ display: flex;
293
+ align-items: center;
294
+ justify-content: center;
295
+ background-color: #FFFFFF;
296
+ box-shadow: 0px -2px 4px 0px rgba(25, 122, 250, 0.15);
297
+ z-index: 1;
298
+ }
299
+ .shein-components_systemrobotassistant_itNoticeModal .shein-components_systemrobotassistant_modalFooter button + button {
300
+ margin-left: 12px;
301
+ }
@@ -0,0 +1,2 @@
1
+ export function getLabel(curDate: any, date: any): string;
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/component/it-notice-modal/utils.js"],"names":[],"mappings":"AAGO,0DAIN"}
@@ -0,0 +1,8 @@
1
+ import moment from 'moment';
2
+
3
+ // 拼接文案
4
+ export var getLabel = (curDate, date) => {
5
+ var curYear = moment(curDate).year();
6
+ var year = moment(date).year();
7
+ return `${year !== curYear ? `${year}-` : ''}${moment(date).format('MM-DD')}`;
8
+ };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+
3
+ declare const ITNotice: React.FC;
4
+
5
+ export default ITNotice;
6
+
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/it-notice-tab/index.jsx"],"names":[],"mappings":";AAoBA;;;;4CA6KC"}
@@ -0,0 +1,206 @@
1
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
6
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import React, { useCallback, useEffect } from 'react';
14
+ import classnames from 'classnames';
15
+ import Ellipsis from '@shein-components/Ellipsis';
16
+ import DataContainer from "../data-container";
17
+ import DaysTab from "../days-tab";
18
+ import { openITNoticeModal } from "../it-notice-modal";
19
+ import useImmer from "../../js/state-immer";
20
+ import { getSystemDateList, getVersionPlan } from "./server";
21
+ import "./style.css";
22
+ var styles = {
23
+ "itNoticeTabCon": "shein-components_systemrobotassistant_itNoticeTabCon",
24
+ "mainNoticeCon": "shein-components_systemrobotassistant_mainNoticeCon",
25
+ "cardBody": "shein-components_systemrobotassistant_cardBody",
26
+ "cardItem": "shein-components_systemrobotassistant_cardItem",
27
+ "itemHeader": "shein-components_systemrobotassistant_itemHeader",
28
+ "img": "shein-components_systemrobotassistant_img",
29
+ "total": "shein-components_systemrobotassistant_total",
30
+ "headerRight": "shein-components_systemrobotassistant_headerRight",
31
+ "itemBody": "shein-components_systemrobotassistant_itemBody",
32
+ "listItem": "shein-components_systemrobotassistant_listItem",
33
+ "checkMore": "shein-components_systemrobotassistant_checkMore",
34
+ "clickText": "shein-components_systemrobotassistant_clickText",
35
+ "noticeMenus": "shein-components_systemrobotassistant_noticeMenus",
36
+ "menuItem": "shein-components_systemrobotassistant_menuItem",
37
+ "active": "shein-components_systemrobotassistant_active"
38
+ };
39
+ var cs = classnames.bind(styles);
40
+ var defaultState = {
41
+ detailInfo: [],
42
+ dateList: [],
43
+ seletedDate: '',
44
+ belongSystemList: [],
45
+ curBelongSystemId: ''
46
+ };
47
+ var ITNotice = _ref => {
48
+ var getBelongSystemList = _ref.getBelongSystemList,
49
+ zIndex = _ref.zIndex,
50
+ t = _ref.t;
51
+ var _useImmer = useImmer(defaultState),
52
+ _useImmer2 = _slicedToArray(_useImmer, 2),
53
+ state = _useImmer2[0],
54
+ setState = _useImmer2[1];
55
+ var detailInfo = state.detailInfo,
56
+ dateList = state.dateList,
57
+ seletedDate = state.seletedDate,
58
+ curBelongSystemId = state.curBelongSystemId,
59
+ belongSystemList = state.belongSystemList;
60
+ var getData = useCallback( /*#__PURE__*/function () {
61
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
62
+ var res, _ref3, _ref3$info, info, index;
63
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
64
+ while (1) switch (_context.prev = _context.next) {
65
+ case 0:
66
+ _context.next = 2;
67
+ return getVersionPlan({
68
+ belongSystemId: params.belongSystemId,
69
+ date: params.date
70
+ });
71
+ case 2:
72
+ res = _context.sent;
73
+ if (res) {
74
+ _ref3 = res || {}, _ref3$info = _ref3.info, info = _ref3$info === void 0 ? [] : _ref3$info;
75
+ index = 0;
76
+ setState({
77
+ detailInfo: info.map(item => {
78
+ var _item$jiraInfoList;
79
+ return _objectSpread(_objectSpread({}, item), {}, {
80
+ jiraInfoList: (_item$jiraInfoList = item.jiraInfoList) === null || _item$jiraInfoList === void 0 ? void 0 : _item$jiraInfoList.map(jira => _objectSpread(_objectSpread({}, jira), {}, {
81
+ showIndex: ++index
82
+ }))
83
+ });
84
+ })
85
+ });
86
+ }
87
+ case 4:
88
+ case "end":
89
+ return _context.stop();
90
+ }
91
+ }, _callee);
92
+ }));
93
+ return function (_x) {
94
+ return _ref2.apply(this, arguments);
95
+ };
96
+ }(), []);
97
+ useEffect(() => {
98
+ getSystemDateList().then(res => {
99
+ var _info$, _info$2, _list$, _list$2, _info$3;
100
+ var _ref4 = res || {},
101
+ _ref4$info = _ref4.info,
102
+ info = _ref4$info === void 0 ? [] : _ref4$info;
103
+ var list = (info === null || info === void 0 ? void 0 : (_info$ = info[0]) === null || _info$ === void 0 ? void 0 : _info$.belongSystemList) || [];
104
+ setState({
105
+ dateList: info,
106
+ seletedDate: info === null || info === void 0 ? void 0 : (_info$2 = info[0]) === null || _info$2 === void 0 ? void 0 : _info$2.date,
107
+ curBelongSystemId: list === null || list === void 0 ? void 0 : (_list$ = list[0]) === null || _list$ === void 0 ? void 0 : _list$.belongSystemId,
108
+ belongSystemList: list
109
+ });
110
+ if (typeof getBelongSystemList === 'function') {
111
+ getBelongSystemList(list);
112
+ }
113
+ getData({
114
+ belongSystemId: list === null || list === void 0 ? void 0 : (_list$2 = list[0]) === null || _list$2 === void 0 ? void 0 : _list$2.belongSystemId,
115
+ date: info === null || info === void 0 ? void 0 : (_info$3 = info[0]) === null || _info$3 === void 0 ? void 0 : _info$3.date
116
+ });
117
+ });
118
+ }, []);
119
+ return /*#__PURE__*/React.createElement("div", {
120
+ className: styles.itNoticeTabCon
121
+ }, /*#__PURE__*/React.createElement(DaysTab, {
122
+ activeDay: seletedDate,
123
+ data: dateList,
124
+ t: t,
125
+ onChange: item => {
126
+ var _list$3, _list$4;
127
+ var list = item.belongSystemList || [];
128
+ setState({
129
+ seletedDate: item.date,
130
+ curBelongSystemId: list === null || list === void 0 ? void 0 : (_list$3 = list[0]) === null || _list$3 === void 0 ? void 0 : _list$3.belongSystemId,
131
+ belongSystemList: list
132
+ });
133
+ getData({
134
+ belongSystemId: list === null || list === void 0 ? void 0 : (_list$4 = list[0]) === null || _list$4 === void 0 ? void 0 : _list$4.belongSystemId,
135
+ date: item.date
136
+ });
137
+ }
138
+ }), /*#__PURE__*/React.createElement("div", {
139
+ className: styles.mainNoticeCon
140
+ }, /*#__PURE__*/React.createElement(DataContainer, {
141
+ className: styles.cardBody
142
+ }, detailInfo === null || detailInfo === void 0 ? void 0 : detailInfo.map(item => {
143
+ var _item$jiraInfoList2, _item$jiraInfoList2$, _item$jiraInfoList3;
144
+ return /*#__PURE__*/React.createElement("div", {
145
+ className: styles.cardItem
146
+ }, /*#__PURE__*/React.createElement("div", {
147
+ className: styles.itemHeader
148
+ }, /*#__PURE__*/React.createElement("div", {
149
+ className: styles.headerLeft
150
+ }, /*#__PURE__*/React.createElement("span", {
151
+ className: styles.clickText,
152
+ style: {
153
+ marginRight: 8
154
+ },
155
+ onClick: () => {
156
+ window.open(item.jiraIssueUrl);
157
+ }
158
+ }, item.bizProjectIssueNum || item.projectIssueNum), item.bizOrigDemandOnlineCount > 0 ? /*#__PURE__*/React.createElement("span", {
159
+ className: styles.total
160
+ }, t('累计已上线:'), item.bizOrigDemandOnlineCount) : null), /*#__PURE__*/React.createElement("div", {
161
+ className: styles.headerRight
162
+ }, item === null || item === void 0 ? void 0 : (_item$jiraInfoList2 = item.jiraInfoList) === null || _item$jiraInfoList2 === void 0 ? void 0 : (_item$jiraInfoList2$ = _item$jiraInfoList2[0]) === null || _item$jiraInfoList2$ === void 0 ? void 0 : _item$jiraInfoList2$.reporterUserName)), /*#__PURE__*/React.createElement("div", {
163
+ className: styles.itemBody
164
+ }, item === null || item === void 0 ? void 0 : (_item$jiraInfoList3 = item.jiraInfoList) === null || _item$jiraInfoList3 === void 0 ? void 0 : _item$jiraInfoList3.map(jira => /*#__PURE__*/React.createElement("div", {
165
+ className: styles.listItem
166
+ }, /*#__PURE__*/React.createElement("div", {
167
+ className: styles.content
168
+ }, /*#__PURE__*/React.createElement("span", null, jira.showIndex, ".\xA0"), /*#__PURE__*/React.createElement("span", {
169
+ className: styles.clickText,
170
+ onClick: () => {
171
+ window.open(jira === null || jira === void 0 ? void 0 : jira.jiraUrl);
172
+ }
173
+ }, jira === null || jira === void 0 ? void 0 : jira.summary))))));
174
+ })), /*#__PURE__*/React.createElement("div", {
175
+ className: styles.checkMore,
176
+ onClick: () => {
177
+ // 打开弹窗
178
+ openITNoticeModal({
179
+ zIndex,
180
+ defaultMenuCollapse: true,
181
+ t
182
+ });
183
+ }
184
+ }, t('查看更多公告'))), (belongSystemList === null || belongSystemList === void 0 ? void 0 : belongSystemList.length) > 1 ? /*#__PURE__*/React.createElement("div", {
185
+ className: styles.noticeMenus
186
+ }, belongSystemList === null || belongSystemList === void 0 ? void 0 : belongSystemList.map(item => /*#__PURE__*/React.createElement("div", {
187
+ key: item.belongSystemId,
188
+ className: cs(styles.menuItem, curBelongSystemId === item.belongSystemId && styles.active),
189
+ onClick: () => {
190
+ // 切换tab
191
+ setState({
192
+ curBelongSystemId: item.belongSystemId
193
+ });
194
+ getData({
195
+ belongSystemId: item.belongSystemId,
196
+ date: seletedDate
197
+ });
198
+ }
199
+ }, /*#__PURE__*/React.createElement(Ellipsis, {
200
+ value: item.belongSystemName,
201
+ popProps: {
202
+ zIndex
203
+ }
204
+ })))) : null);
205
+ };
206
+ export default ITNotice;
@@ -0,0 +1,3 @@
1
+ export function getSystemDateList(argument: any): any;
2
+ export function getVersionPlan(argument: any): any;
3
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/component/it-notice-tab/server.js"],"names":[],"mappings":"AAKA,sDAEC;AAID,mDAEC"}
@@ -0,0 +1,13 @@
1
+ import postRequest from "../../js/request/request";
2
+
3
+ // 返回系统-日期列表
4
+ // https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_getSystemDateList/doc
5
+ export function getSystemDateList(argument) {
6
+ return postRequest('/front/manual/getSystemDateList', argument);
7
+ }
8
+
9
+ // 组件-返回版本计划信息
10
+ // https://soapi.sheincorp.cn/application/5161/routes/post_front_manual_getVersionPlan/doc
11
+ export function getVersionPlan(argument) {
12
+ return postRequest('/front/manual/getVersionPlan', argument);
13
+ }