@myun/gimi-chat 0.0.4 → 0.0.6

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 (98) hide show
  1. package/dist/components/ai-chat-dialogue/index.js +182 -136
  2. package/dist/components/ai-chat-dialogue/index.module.css +230 -0
  3. package/dist/components/ai-correction/index.js +38 -25
  4. package/dist/components/ai-loading/index.js +13 -9
  5. package/dist/components/ai-loading/index.module.css +11 -0
  6. package/dist/components/answer-item/index.js +136 -114
  7. package/dist/components/answer-item/index.module.css +266 -0
  8. package/dist/components/ask-card/index.js +43 -34
  9. package/dist/components/ask-card/index.module.css +122 -0
  10. package/dist/components/chat-input/index.js +136 -115
  11. package/dist/components/chat-input/index.module.css +42 -0
  12. package/dist/components/chat-voice/VoiceCommunication.js +23 -21
  13. package/dist/components/chat-voice/VoiceRecord.js +24 -21
  14. package/dist/components/conversation-delete/index.js +10 -8
  15. package/dist/components/dots-loading/index.js +11 -8
  16. package/dist/components/dots-loading/index.module.css +41 -0
  17. package/dist/components/empty/index.js +13 -8
  18. package/dist/components/empty/index.module.css +24 -0
  19. package/dist/components/excel-components/ExcelCard.js +7 -3
  20. package/dist/components/excel-components/ExcelExcuting.js +61 -44
  21. package/dist/components/excel-components/ExcelFailCard.js +16 -11
  22. package/dist/components/excel-components/ExcelSuccessCard.js +3 -2
  23. package/dist/components/excel-components/index.module.css +212 -0
  24. package/dist/components/excel-components/styles.module.css +178 -0
  25. package/dist/components/file-card/fileCardSidebar.js +24 -17
  26. package/dist/components/file-card/index.js +69 -50
  27. package/dist/components/file-card/index.module.css +139 -0
  28. package/dist/components/file-preview/index.js +39 -34
  29. package/dist/components/file-preview/index.module.css +83 -0
  30. package/dist/components/file-upload/index.js +10 -7
  31. package/dist/components/file-upload/uploadV1.js +33 -27
  32. package/dist/components/gimi-sidebar/index.js +21 -14
  33. package/dist/components/gimi-sidebar/index.module.css +118 -0
  34. package/dist/components/header/index.js +19 -12
  35. package/dist/components/header/index.module.css +19 -0
  36. package/dist/components/iconfont-com/index.js +2 -1
  37. package/dist/components/knowledge-trace/KnowledgeIconComponent.js +29 -23
  38. package/dist/components/knowledge-trace/classList.js +38 -29
  39. package/dist/components/knowledge-trace/documentList.js +37 -28
  40. package/dist/components/knowledge-trace/index.js +29 -22
  41. package/dist/components/knowledge-trace/index.module.css +254 -0
  42. package/dist/components/knowledge-trace/videoList.js +47 -37
  43. package/dist/components/lottie-img/index.js +10 -8
  44. package/dist/components/message-actions/CopyButton.js +25 -22
  45. package/dist/components/message-actions/LikeButton.js +25 -22
  46. package/dist/components/message-actions/RegenerateButton.js +21 -18
  47. package/dist/components/message-actions/UnLikeButton.js +25 -22
  48. package/dist/components/message-actions/VoicePlay.js +25 -22
  49. package/dist/components/message-list/index.js +86 -76
  50. package/dist/components/message-list/index.module.css +261 -0
  51. package/dist/components/no-microphone-root/index.js +40 -30
  52. package/dist/components/no-microphone-root/index.module.css +48 -0
  53. package/dist/components/preset-agent-content/index.js +21 -16
  54. package/dist/components/preset-agent-content/index.module.css +46 -0
  55. package/dist/components/quoted-content/index.module.css +80 -0
  56. package/dist/components/reasoning-content/index.js +56 -43
  57. package/dist/components/reasoning-content/index.module.css +169 -0
  58. package/dist/components/reference-content/index.js +73 -64
  59. package/dist/components/reference-content/index.module.css +84 -0
  60. package/dist/components/templates/CommonChat.js +79 -65
  61. package/dist/components/templates/GimiChatComponent.js +13 -6
  62. package/dist/components/templates/demo/demo.js +104 -103
  63. package/dist/components/templates/index.module.css +109 -0
  64. package/dist/components/upload-list/index.js +57 -42
  65. package/dist/components/upload-list/index.module.css +119 -0
  66. package/dist/components/voice-bars/index.js +22 -19
  67. package/dist/components/voice-check-dialog/index.js +25 -18
  68. package/dist/components/voice-check-dialog/{index.module.scss → index.module.css} +2 -2
  69. package/dist/components/voice-recording/index.js +58 -43
  70. package/dist/components/voice-recording/index.module.css +41 -0
  71. package/dist/components/work-flow-content/demo.js +2 -1
  72. package/dist/components/work-flow-content/index.js +13 -10
  73. package/dist/components/work-flow-content/index.module.css +24 -0
  74. package/package.json +7 -6
  75. package/dist/components/ai-chat-dialogue/index.module.scss +0 -272
  76. package/dist/components/ai-loading/index.module.scss +0 -11
  77. package/dist/components/answer-item/index.module.scss +0 -295
  78. package/dist/components/ask-card/index.module.scss +0 -125
  79. package/dist/components/chat-input/index.module.scss +0 -44
  80. package/dist/components/dots-loading/index.module.scss +0 -45
  81. package/dist/components/empty/index.module.scss +0 -27
  82. package/dist/components/excel-components/index.module.scss +0 -210
  83. package/dist/components/excel-components/styles.module.scss +0 -186
  84. package/dist/components/file-card/index.module.scss +0 -139
  85. package/dist/components/file-preview/index.module.scss +0 -120
  86. package/dist/components/gimi-sidebar/index.module.scss +0 -136
  87. package/dist/components/header/index.module.scss +0 -26
  88. package/dist/components/knowledge-trace/index.module.scss +0 -262
  89. package/dist/components/message-list/index.module.scss +0 -304
  90. package/dist/components/no-microphone-root/index.module.scss +0 -42
  91. package/dist/components/preset-agent-content/index.module.scss +0 -48
  92. package/dist/components/quoted-content/index.module.scss +0 -76
  93. package/dist/components/reasoning-content/index.module.scss +0 -164
  94. package/dist/components/reference-content/index.module.scss +0 -73
  95. package/dist/components/templates/index.module.scss +0 -119
  96. package/dist/components/upload-list/index.module.scss +0 -119
  97. package/dist/components/voice-recording/index.module.scss +0 -41
  98. package/dist/components/work-flow-content/index.module.scss +0 -23
@@ -7,7 +7,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React from 'react';
8
8
  import { Toast, Tooltip } from '@douyinfe/semi-ui';
9
9
  // import useVoiceFirstUse from '@/hooks/useVoiceFirstUse';
10
-
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  var ICON_ADDRESS = 'https://simg01.gaodunwangxiao.com/uploadimgs/tmp/upload/202601/12/0812c_20260112171004.png';
12
12
  var VoiceCommunication = function VoiceCommunication(props) {
13
13
  var _React$useState = React.useState(false),
@@ -40,30 +40,32 @@ var VoiceCommunication = function VoiceCommunication(props) {
40
40
  }
41
41
  props.onClick();
42
42
  };
43
- return /*#__PURE__*/React.createElement(Tooltip, {
43
+ return /*#__PURE__*/_jsx(Tooltip, {
44
44
  content: '语音通话',
45
45
  visible: showToast,
46
46
  onVisibleChange: function onVisibleChange(isVisible) {
47
47
  return setShowToast(isVisible);
48
- }
49
- }, /*#__PURE__*/React.createElement("div", {
50
- style: {
51
- display: 'flex',
52
- alignItems: 'center',
53
- justifyContent: 'center',
54
- width: '32px',
55
- height: '32px',
56
- cursor: props.disabled ? 'not-allowed' : 'pointer',
57
- fontSize: '20px'
58
- },
59
- onClick: handleClick
60
- }, /*#__PURE__*/React.createElement("img", {
61
- style: {
62
- width: '32px',
63
- height: '32px'
64
48
  },
65
- src: ICON_ADDRESS,
66
- alt: "\u8BED\u97F3\u901A\u8BDD"
67
- })));
49
+ children: /*#__PURE__*/_jsx("div", {
50
+ style: {
51
+ display: 'flex',
52
+ alignItems: 'center',
53
+ justifyContent: 'center',
54
+ width: '32px',
55
+ height: '32px',
56
+ cursor: props.disabled ? 'not-allowed' : 'pointer',
57
+ fontSize: '20px'
58
+ },
59
+ onClick: handleClick,
60
+ children: /*#__PURE__*/_jsx("img", {
61
+ style: {
62
+ width: '32px',
63
+ height: '32px'
64
+ },
65
+ src: ICON_ADDRESS,
66
+ alt: "\u8BED\u97F3\u901A\u8BDD"
67
+ })
68
+ })
69
+ });
68
70
  };
69
71
  export default VoiceCommunication;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Tooltip, Toast } from '@douyinfe/semi-ui';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
3
4
  var ICON_ADDRESS = 'https://simg01.gaodunwangxiao.com/uploadimgs/tmp/upload/202601/04/be8de_20260104155638.png';
4
5
  var VoiceRecord = function VoiceRecord(props) {
5
6
  var handleClick = function handleClick() {
@@ -9,26 +10,28 @@ var VoiceRecord = function VoiceRecord(props) {
9
10
  }
10
11
  props.onClick();
11
12
  };
12
- return /*#__PURE__*/React.createElement(Tooltip, {
13
- content: '语音输入'
14
- }, /*#__PURE__*/React.createElement("div", {
15
- style: {
16
- display: 'flex',
17
- alignItems: 'center',
18
- justifyContent: 'center',
19
- width: '32px',
20
- height: '32px',
21
- cursor: props.disabled ? 'not-allowed' : 'pointer',
22
- fontSize: '20px'
23
- },
24
- onClick: handleClick
25
- }, /*#__PURE__*/React.createElement("img", {
26
- style: {
27
- width: '32px',
28
- height: '32px'
29
- },
30
- src: ICON_ADDRESS,
31
- alt: "\u8BED\u97F3\u8F93\u5165"
32
- })));
13
+ return /*#__PURE__*/_jsx(Tooltip, {
14
+ content: '语音输入',
15
+ children: /*#__PURE__*/_jsx("div", {
16
+ style: {
17
+ display: 'flex',
18
+ alignItems: 'center',
19
+ justifyContent: 'center',
20
+ width: '32px',
21
+ height: '32px',
22
+ cursor: props.disabled ? 'not-allowed' : 'pointer',
23
+ fontSize: '20px'
24
+ },
25
+ onClick: handleClick,
26
+ children: /*#__PURE__*/_jsx("img", {
27
+ style: {
28
+ width: '32px',
29
+ height: '32px'
30
+ },
31
+ src: ICON_ADDRESS,
32
+ alt: "\u8BED\u97F3\u8F93\u5165"
33
+ })
34
+ })
35
+ });
33
36
  };
34
37
  export default VoiceRecord;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Popconfirm, Button } from '@douyinfe/semi-ui';
3
3
  import { IconDeleteStroked } from '@douyinfe/semi-icons';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
4
5
  var ConversationDelete = function ConversationDelete(_ref) {
5
6
  var onDelete = _ref.onDelete;
6
7
  var onConfirm = function onConfirm() {
@@ -9,16 +10,17 @@ var ConversationDelete = function ConversationDelete(_ref) {
9
10
  var onCancel = function onCancel() {
10
11
  // 取消删除
11
12
  };
12
- return /*#__PURE__*/React.createElement(Popconfirm, {
13
+ return /*#__PURE__*/_jsx(Popconfirm, {
13
14
  title: "\u786E\u5B9A\u662F\u5426\u8981\u5220\u9664\u4F1A\u8BDD\uFF1F",
14
15
  content: "\u6B64\u64CD\u4F5C\u5C06\u4E0D\u53EF\u9006",
15
16
  onConfirm: onConfirm,
16
- onCancel: onCancel
17
- }, /*#__PURE__*/React.createElement(Button, {
18
- icon: /*#__PURE__*/React.createElement(IconDeleteStroked, {
19
- size: "large"
20
- }),
21
- theme: "borderless"
22
- }));
17
+ onCancel: onCancel,
18
+ children: /*#__PURE__*/_jsx(Button, {
19
+ icon: /*#__PURE__*/_jsx(IconDeleteStroked, {
20
+ size: "large"
21
+ }),
22
+ theme: "borderless"
23
+ })
24
+ });
23
25
  };
24
26
  export default ConversationDelete;
@@ -1,11 +1,14 @@
1
- import styles from "./index.module.scss";
1
+ import styles from "./index.module.css";
2
2
  import React from 'react';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
5
  export default function LoadingDots() {
4
- return /*#__PURE__*/React.createElement("div", {
5
- className: styles.loading_dots
6
- }, /*#__PURE__*/React.createElement("div", {
7
- className: styles.loading_dots__dot
8
- }), /*#__PURE__*/React.createElement("div", {
9
- className: styles.loading_dots__dot
10
- }));
6
+ return /*#__PURE__*/_jsxs("div", {
7
+ className: styles.loading_dots,
8
+ children: [/*#__PURE__*/_jsx("div", {
9
+ className: styles.loading_dots__dot
10
+ }), /*#__PURE__*/_jsx("div", {
11
+ className: styles.loading_dots__dot
12
+ })]
13
+ });
11
14
  }
@@ -0,0 +1,41 @@
1
+ .loading_dots {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ gap: 8px;
6
+ }
7
+ .loading_dots .loading_dots__dot {
8
+ width: 8px;
9
+ height: 8px;
10
+ background-color: #000;
11
+ border-radius: 50%;
12
+ /* Changed animation to swap positions left-right */
13
+ animation: swap 1.2s infinite ease-in-out;
14
+ }
15
+ .loading_dots .loading_dots__dot:first-child {
16
+ /* First dot starts from left, moves to right */
17
+ animation-name: swapLeftToRight;
18
+ }
19
+ .loading_dots .loading_dots__dot:last-child {
20
+ /* Second dot starts from right, moves to left */
21
+ animation-name: swapRightToLeft;
22
+ }
23
+
24
+ /* Animation for first dot: move from left to right */
25
+ @keyframes swapLeftToRight {
26
+ 0%, 100% {
27
+ transform: translateX(0);
28
+ }
29
+ 50% {
30
+ transform: translateX(16px);
31
+ }
32
+ }
33
+ /* Animation for second dot: move from right to left */
34
+ @keyframes swapRightToLeft {
35
+ 0%, 100% {
36
+ transform: translateX(0);
37
+ }
38
+ 50% {
39
+ transform: translateX(-16px);
40
+ }
41
+ }
@@ -8,11 +8,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
8
8
  * @LastEditTime: 2024-05-14 11:01:02
9
9
  * @Description:
10
10
  */
11
- import styles from "./index.module.scss";
11
+ import styles from "./index.module.css";
12
12
  import EmptyImg from "../../assets/image/empty-img.png";
13
13
  import EmptyImgDark from "../../assets/image/empty-img-dark.png";
14
14
  import classNames from 'classnames';
15
15
  import React from 'react';
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
18
  var EmptyShow = function EmptyShow(_ref) {
17
19
  var style = _ref.style,
18
20
  _ref$imgStyle = _ref.imgStyle,
@@ -20,13 +22,16 @@ var EmptyShow = function EmptyShow(_ref) {
20
22
  title = _ref.title,
21
23
  _ref$dark = _ref.dark,
22
24
  dark = _ref$dark === void 0 ? false : _ref$dark;
23
- return /*#__PURE__*/React.createElement("div", {
25
+ return /*#__PURE__*/_jsxs("div", {
24
26
  className: classNames(styles.emptyShow, _defineProperty({}, styles.dark, dark)),
25
- style: style
26
- }, /*#__PURE__*/React.createElement("img", {
27
- src: dark ? EmptyImgDark : EmptyImg,
28
- style: imgStyle,
29
- alt: ""
30
- }), /*#__PURE__*/React.createElement("p", null, title || '暂无内容'));
27
+ style: style,
28
+ children: [/*#__PURE__*/_jsx("img", {
29
+ src: dark ? EmptyImgDark : EmptyImg,
30
+ style: imgStyle,
31
+ alt: ""
32
+ }), /*#__PURE__*/_jsx("p", {
33
+ children: title || '暂无内容'
34
+ })]
35
+ });
31
36
  };
32
37
  export default EmptyShow;
@@ -0,0 +1,24 @@
1
+ .emptyShow {
2
+ display: flex;
3
+ align-items: center;
4
+ flex-direction: column;
5
+ justify-content: center;
6
+ height: 100%;
7
+ }
8
+ .emptyShow img {
9
+ width: 165px;
10
+ }
11
+ .emptyShow p {
12
+ color: #7d91b3;
13
+ margin-top: 10px;
14
+ }
15
+
16
+ .dark img {
17
+ width: 119px;
18
+ height: 98px;
19
+ }
20
+ .dark p {
21
+ color: white;
22
+ margin-top: 12px;
23
+ font-size: 20px;
24
+ }
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import ExcelFailCard from "./ExcelFailCard";
3
3
  import { ExcelExcutingSteps } from "./ExcelExcuting";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ import { Fragment as _Fragment } from "react/jsx-runtime";
4
6
  var ExcelCard = function ExcelCard(_ref) {
5
7
  var item = _ref.item,
6
8
  moduleInfo = _ref.moduleInfo,
@@ -15,14 +17,14 @@ var ExcelCard = function ExcelCard(_ref) {
15
17
  return null;
16
18
  case 2:
17
19
  // 失败
18
- return /*#__PURE__*/React.createElement(ExcelFailCard, {
20
+ return /*#__PURE__*/_jsx(ExcelFailCard, {
19
21
  skillDetail: skillDetail,
20
22
  item: item,
21
23
  onRetry: onRetry
22
24
  });
23
25
  default:
24
26
  // 执行中
25
- return /*#__PURE__*/React.createElement(ExcelExcutingSteps, {
27
+ return /*#__PURE__*/_jsx(ExcelExcutingSteps, {
26
28
  item: item,
27
29
  skillDetail: skillDetail,
28
30
  onSucess: onSucess,
@@ -30,6 +32,8 @@ var ExcelCard = function ExcelCard(_ref) {
30
32
  });
31
33
  }
32
34
  }, [moduleInfo, item, onRetry, onFailure, onSucess]);
33
- return /*#__PURE__*/React.createElement(React.Fragment, null, renderContent);
35
+ return /*#__PURE__*/_jsx(_Fragment, {
36
+ children: renderContent
37
+ });
34
38
  };
35
39
  export default ExcelCard;
@@ -16,11 +16,13 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
16
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  import React from "react";
18
18
  import { IconTickCircle } from "@douyinfe/semi-icons";
19
- import styles from "./styles.module.scss";
19
+ import styles from "./styles.module.css";
20
20
  import LoadingIcon from "../../assets/image/Subtract.png";
21
21
  import classNames from "classnames";
22
22
  import { useExcelExcuteLongPoll } from "../../hooks/useLongPoll";
23
23
  import LoadingDots from "../../components/dots-loading";
24
+ import { jsx as _jsx } from "react/jsx-runtime";
25
+ import { jsxs as _jsxs } from "react/jsx-runtime";
24
26
  var MOCK_STEPS = [{
25
27
  id: 1,
26
28
  text: "启动核心分析模块"
@@ -217,47 +219,62 @@ export var ExcelExcutingSteps = function ExcelExcutingSteps(_ref) {
217
219
  setContentClass(styles.expanded);
218
220
  }
219
221
  }, [isExpanded]);
220
- return /*#__PURE__*/React.createElement("div", {
221
- className: styles.container
222
- }, /*#__PURE__*/React.createElement("div", {
223
- className: styles.aiLoadingSteps
224
- }, isExpanded ? /*#__PURE__*/React.createElement("div", {
225
- className: classNames(styles.contentWrapper, contentClass)
226
- }, /*#__PURE__*/React.createElement("div", {
227
- className: styles.header
228
- }, !onReady && /*#__PURE__*/React.createElement("h3", {
229
- className: styles.title
230
- }, /*#__PURE__*/React.createElement(LoadingDots, null), '正在分析与生成模版...'), /*#__PURE__*/React.createElement("p", {
231
- className: styles.description
232
- }, '正在启动任务处理流程, 结合上下文信息, 系统已进入深度分析阶段, 请稍候5~10分钟。')), /*#__PURE__*/React.createElement("div", {
233
- className: styles.stepsContainer
234
- }, renderSteps.map(function (step) {
235
- return /*#__PURE__*/React.createElement("div", {
236
- key: step.id,
237
- className: classNames(step.isCompleted ? "".concat(styles.stepItem, " ").concat(styles.completed) : "".concat(styles.stepActiveItem, " ").concat(styles.active))
238
- }, /*#__PURE__*/React.createElement("div", {
239
- className: styles.stepIndicator
240
- }, step.isCompleted ? /*#__PURE__*/React.createElement(IconTickCircle, {
241
- className: styles.checkIcon
242
- }) : /*#__PURE__*/React.createElement("img", {
243
- src: LoadingIcon,
244
- className: styles.pendingIcon
245
- }), step.id !== 6 && /*#__PURE__*/React.createElement("div", {
246
- className: styles.verticalLine
247
- })), /*#__PURE__*/React.createElement("div", {
248
- className: styles.stepContent
249
- }, !step.isCompleted ? /*#__PURE__*/React.createElement("span", {
250
- className: styles.stepText
251
- }, displayText, isTyping && /*#__PURE__*/React.createElement("span", {
252
- className: styles.cursor
253
- }, "|")) : /*#__PURE__*/React.createElement("span", {
254
- className: styles.stepText
255
- }, step.text)));
256
- })), onReady && /*#__PURE__*/React.createElement("span", {
257
- className: styles.finishText
258
- }, "\u5206\u6790\u5B8C\u6210\uFF0C\u7ED3\u679C\u8F7D\u4F53\u5373\u5C06\u751F\u6210\uFF0C\u6B63\u51C6\u5907\u5448\u73B0...")) : /*#__PURE__*/React.createElement("div", {
259
- className: classNames(styles.contentWrapper)
260
- }, /*#__PURE__*/React.createElement("h3", {
261
- className: styles.title
262
- }, "\u5206\u6790\u5B8C\u6210\uFF0C\u7ED3\u679C\u8F7D\u4F53\u5373\u5C06\u751F\u6210\uFF0C\u6B63\u5728\u51C6\u5907\u5448\u73B0"))));
222
+ return /*#__PURE__*/_jsx("div", {
223
+ className: styles.container,
224
+ children: /*#__PURE__*/_jsx("div", {
225
+ className: styles.aiLoadingSteps,
226
+ children: isExpanded ? /*#__PURE__*/_jsxs("div", {
227
+ className: classNames(styles.contentWrapper, contentClass),
228
+ children: [/*#__PURE__*/_jsxs("div", {
229
+ className: styles.header,
230
+ children: [!onReady && /*#__PURE__*/_jsxs("h3", {
231
+ className: styles.title,
232
+ children: [/*#__PURE__*/_jsx(LoadingDots, {}), '正在分析与生成模版...']
233
+ }), /*#__PURE__*/_jsx("p", {
234
+ className: styles.description,
235
+ children: '正在启动任务处理流程, 结合上下文信息, 系统已进入深度分析阶段, 请稍候5~10分钟。'
236
+ })]
237
+ }), /*#__PURE__*/_jsx("div", {
238
+ className: styles.stepsContainer,
239
+ children: renderSteps.map(function (step) {
240
+ return /*#__PURE__*/_jsxs("div", {
241
+ className: classNames(step.isCompleted ? "".concat(styles.stepItem, " ").concat(styles.completed) : "".concat(styles.stepActiveItem, " ").concat(styles.active)),
242
+ children: [/*#__PURE__*/_jsxs("div", {
243
+ className: styles.stepIndicator,
244
+ children: [step.isCompleted ? /*#__PURE__*/_jsx(IconTickCircle, {
245
+ className: styles.checkIcon
246
+ }) : /*#__PURE__*/_jsx("img", {
247
+ src: LoadingIcon,
248
+ className: styles.pendingIcon
249
+ }), step.id !== 6 && /*#__PURE__*/_jsx("div", {
250
+ className: styles.verticalLine
251
+ })]
252
+ }), /*#__PURE__*/_jsx("div", {
253
+ className: styles.stepContent,
254
+ children: !step.isCompleted ? /*#__PURE__*/_jsxs("span", {
255
+ className: styles.stepText,
256
+ children: [displayText, isTyping && /*#__PURE__*/_jsx("span", {
257
+ className: styles.cursor,
258
+ children: "|"
259
+ })]
260
+ }) : /*#__PURE__*/_jsx("span", {
261
+ className: styles.stepText,
262
+ children: step.text
263
+ })
264
+ })]
265
+ }, step.id);
266
+ })
267
+ }), onReady && /*#__PURE__*/_jsx("span", {
268
+ className: styles.finishText,
269
+ children: "\u5206\u6790\u5B8C\u6210\uFF0C\u7ED3\u679C\u8F7D\u4F53\u5373\u5C06\u751F\u6210\uFF0C\u6B63\u51C6\u5907\u5448\u73B0..."
270
+ })]
271
+ }) : /*#__PURE__*/_jsx("div", {
272
+ className: classNames(styles.contentWrapper),
273
+ children: /*#__PURE__*/_jsx("h3", {
274
+ className: styles.title,
275
+ children: "\u5206\u6790\u5B8C\u6210\uFF0C\u7ED3\u679C\u8F7D\u4F53\u5373\u5C06\u751F\u6210\uFF0C\u6B63\u5728\u51C6\u5907\u5448\u73B0"
276
+ })
277
+ })
278
+ })
279
+ });
263
280
  };
@@ -1,20 +1,25 @@
1
1
  import React from 'react';
2
- import styles from "./index.module.scss";
2
+ import styles from "./index.module.css";
3
3
  import classNames from 'classnames';
4
+ import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
4
6
  var ExcelFailCard = function ExcelFailCard(_ref) {
5
7
  var item = _ref.item,
6
8
  skillDetail = _ref.skillDetail,
7
9
  onRetry = _ref.onRetry;
8
10
  var message = skillDetail.message;
9
- return /*#__PURE__*/React.createElement("div", {
10
- className: styles.excelFail
11
- }, /*#__PURE__*/React.createElement("div", {
12
- className: styles.failText
13
- }, " ", message), /*#__PURE__*/React.createElement("div", {
14
- className: classNames(styles.Retry, item !== null && item !== void 0 && item.reTryed ? styles.disablebox : ''),
15
- onClick: function onClick() {
16
- return onRetry(skillDetail, item === null || item === void 0 ? void 0 : item.id);
17
- }
18
- }, "\u91CD\u8BD5"));
11
+ return /*#__PURE__*/_jsxs("div", {
12
+ className: styles.excelFail,
13
+ children: [/*#__PURE__*/_jsxs("div", {
14
+ className: styles.failText,
15
+ children: [" ", message]
16
+ }), /*#__PURE__*/_jsx("div", {
17
+ className: classNames(styles.Retry, item !== null && item !== void 0 && item.reTryed ? styles.disablebox : ''),
18
+ onClick: function onClick() {
19
+ return onRetry(skillDetail, item === null || item === void 0 ? void 0 : item.id);
20
+ },
21
+ children: "\u91CD\u8BD5"
22
+ })]
23
+ });
19
24
  };
20
25
  export default ExcelFailCard;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import { FileCard, MultipleFileCard } from "../file-card";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
3
4
  var transforata = function transforata(data) {
4
5
  var fileName = data.file_name || '文件下载.xlsx';
5
6
  var size = data.size || '0.0KB';
@@ -28,7 +29,7 @@ var ExcelSuccessCard = function ExcelSuccessCard(_ref) {
28
29
  var renderData = skillDetail.map(function (item) {
29
30
  return transforata(item);
30
31
  });
31
- return /*#__PURE__*/React.createElement(MultipleFileCard, {
32
+ return /*#__PURE__*/_jsx(MultipleFileCard, {
32
33
  list: renderData
33
34
  });
34
35
  }
@@ -39,7 +40,7 @@ var ExcelSuccessCard = function ExcelSuccessCard(_ref) {
39
40
  downloadUrl = _transforata.downloadUrl,
40
41
  size = _transforata.size,
41
42
  fileType = _transforata.fileType;
42
- return /*#__PURE__*/React.createElement(FileCard, {
43
+ return /*#__PURE__*/_jsx(FileCard, {
43
44
  fileName: fileName,
44
45
  fileType: fileType,
45
46
  size: size,