eli-video-interview 1.2.41-alpha.3 → 1.2.41-alpha.30

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 (155) hide show
  1. package/esm/components/react-photo-view/hooks/useAnimationPosition.d.ts +1 -1
  2. package/esm/constants/ai-question.d.ts +3 -0
  3. package/esm/constants/ai-question.js +10 -0
  4. package/esm/constants/ai-report.d.ts +5 -0
  5. package/esm/constants/ai-report.js +5 -0
  6. package/esm/enum/ai-report.d.ts +12 -0
  7. package/esm/enum/ai-report.js +12 -0
  8. package/esm/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.d.ts +14 -0
  9. package/esm/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.js +145 -0
  10. package/esm/modules/ai-ability/components/AbilityFormItem/index.d.ts +2 -0
  11. package/esm/modules/ai-ability/components/AbilityFormItem/index.js +17 -6
  12. package/esm/modules/ai-ability/components/AddAbility/index.js +131 -101
  13. package/esm/modules/ai-ability/components/UpdateAbility/index.js +81 -106
  14. package/esm/modules/ai-question/Root.js +3 -3
  15. package/esm/modules/ai-question/components/BootVideo/CustomVideos.js +1 -1
  16. package/esm/modules/ai-question/components/BootVideo/UploadPreview.js +9 -1
  17. package/esm/modules/ai-question/components/BootVideo/index.js +13 -3
  18. package/esm/modules/ai-question/components/QuestionImport/index.d.ts +4 -0
  19. package/esm/modules/ai-question/components/QuestionImport/index.js +109 -0
  20. package/esm/modules/ai-question/components/QuestionImport/interface.d.ts +8 -0
  21. package/esm/modules/ai-question/components/QuestionImport/interface.js +1 -0
  22. package/esm/modules/ai-question/components/QuestionImport/styled.d.ts +13 -0
  23. package/esm/modules/ai-question/components/QuestionImport/styled.js +49 -0
  24. package/esm/modules/ai-question/components/QuestionModel/Header.js +23 -2
  25. package/esm/modules/ai-question/components/QuestionModel/Item.js +4 -4
  26. package/esm/modules/ai-question/components/QuestionModel/index.js +1 -1
  27. package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +1 -0
  28. package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
  29. package/esm/modules/ai-question/components/QuestionUpdate/FllowupSetting.d.ts +4 -0
  30. package/esm/modules/ai-question/components/QuestionUpdate/FllowupSetting.js +86 -0
  31. package/esm/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.d.ts +9 -0
  32. package/esm/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.js +94 -0
  33. package/esm/modules/ai-question/components/QuestionUpdate/FollowupTarget.d.ts +9 -0
  34. package/esm/modules/ai-question/components/QuestionUpdate/FollowupTarget.js +73 -0
  35. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +8 -7
  36. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +2 -1
  37. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +9 -8
  38. package/esm/modules/ai-question/components/QuestionUpdate/index.js +3 -3
  39. package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +7 -0
  40. package/esm/modules/ai-question/interface.d.ts +1 -0
  41. package/esm/modules/ai-question/useAiQuestion.d.ts +1 -0
  42. package/esm/modules/ai-report/Root.js +54 -10
  43. package/esm/modules/ai-report/components/AIEvaluate/index.js +2 -2
  44. package/esm/modules/ai-report/components/ScoreReport/Bar.d.ts +4 -1
  45. package/esm/modules/ai-report/components/ScoreReport/Bar.js +12 -10
  46. package/esm/modules/ai-report/components/ScoreReport/Failed.d.ts +1 -1
  47. package/esm/modules/ai-report/components/ScoreReport/Failed.js +12 -4
  48. package/esm/modules/ai-report/components/ScoreReport/RecommendIcon.d.ts +3 -0
  49. package/esm/modules/ai-report/components/ScoreReport/RecommendIcon.js +17 -0
  50. package/esm/modules/ai-report/components/ScoreReport/Score.js +35 -9
  51. package/esm/modules/ai-report/components/ScoreReport/Tips.d.ts +3 -0
  52. package/esm/modules/ai-report/components/ScoreReport/Tips.js +18 -0
  53. package/esm/modules/ai-report/components/ScoreReport/index.js +8 -10
  54. package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +5 -0
  55. package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
  56. package/esm/modules/ai-report/components/ScoreReport/styled.js +2 -4
  57. package/esm/modules/ai-report/components/Suggestion/index.js +2 -2
  58. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +3 -1
  59. package/esm/modules/ai-report/components/VideoQuestion/Workplaces.d.ts +6 -0
  60. package/esm/modules/ai-report/components/VideoQuestion/Workplaces.js +26 -0
  61. package/esm/modules/ai-report/components/VideoQuestion/index.js +2 -2
  62. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +2 -2
  63. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +1 -0
  64. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +2 -1
  65. package/esm/modules/ai-report/components/WorkPlaces/index.js +4 -3
  66. package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +2 -2
  67. package/esm/modules/ai-report/interface.d.ts +6 -0
  68. package/esm/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
  69. package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
  70. package/esm/services/ai-question.d.ts +3 -0
  71. package/esm/services/ai-question.js +3 -0
  72. package/esm/services/ai-report.d.ts +6 -0
  73. package/esm/services/ai-report.js +1 -0
  74. package/esm/store/ai-question/global-store.d.ts +3 -0
  75. package/esm/store/ai-question/global-store.js +1 -0
  76. package/esm/store/enterprise/enterprise-store.js +2 -2
  77. package/esm/utils/interceptor.js +5 -2
  78. package/lib/components/react-photo-view/hooks/useAnimationPosition.d.ts +1 -1
  79. package/lib/constants/ai-question.d.ts +3 -0
  80. package/lib/constants/ai-question.js +12 -1
  81. package/lib/constants/ai-report.d.ts +5 -0
  82. package/lib/constants/ai-report.js +6 -1
  83. package/lib/enum/ai-report.d.ts +12 -0
  84. package/lib/enum/ai-report.js +13 -1
  85. package/lib/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.d.ts +14 -0
  86. package/lib/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.js +147 -0
  87. package/lib/modules/ai-ability/components/AbilityFormItem/index.d.ts +2 -0
  88. package/lib/modules/ai-ability/components/AbilityFormItem/index.js +15 -4
  89. package/lib/modules/ai-ability/components/AddAbility/index.js +153 -100
  90. package/lib/modules/ai-ability/components/UpdateAbility/index.js +101 -103
  91. package/lib/modules/ai-question/Root.js +3 -3
  92. package/lib/modules/ai-question/components/BootVideo/CustomVideos.js +1 -1
  93. package/lib/modules/ai-question/components/BootVideo/UploadPreview.js +9 -1
  94. package/lib/modules/ai-question/components/BootVideo/index.js +13 -3
  95. package/lib/modules/ai-question/components/QuestionImport/index.d.ts +4 -0
  96. package/lib/modules/ai-question/components/QuestionImport/index.js +114 -0
  97. package/lib/modules/ai-question/components/QuestionImport/interface.d.ts +8 -0
  98. package/lib/modules/ai-question/components/QuestionImport/interface.js +2 -0
  99. package/lib/modules/ai-question/components/QuestionImport/styled.d.ts +13 -0
  100. package/lib/modules/ai-question/components/QuestionImport/styled.js +52 -0
  101. package/lib/modules/ai-question/components/QuestionModel/Header.js +25 -1
  102. package/lib/modules/ai-question/components/QuestionModel/Item.js +3 -3
  103. package/lib/modules/ai-question/components/QuestionModel/index.js +1 -1
  104. package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +1 -0
  105. package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
  106. package/lib/modules/ai-question/components/QuestionUpdate/FllowupSetting.d.ts +4 -0
  107. package/lib/modules/ai-question/components/QuestionUpdate/FllowupSetting.js +91 -0
  108. package/lib/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.d.ts +9 -0
  109. package/lib/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.js +96 -0
  110. package/lib/modules/ai-question/components/QuestionUpdate/FollowupTarget.d.ts +9 -0
  111. package/lib/modules/ai-question/components/QuestionUpdate/FollowupTarget.js +75 -0
  112. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +8 -7
  113. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +4 -3
  114. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +9 -8
  115. package/lib/modules/ai-question/components/QuestionUpdate/index.js +2 -2
  116. package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +7 -0
  117. package/lib/modules/ai-question/interface.d.ts +1 -0
  118. package/lib/modules/ai-question/useAiQuestion.d.ts +1 -0
  119. package/lib/modules/ai-report/Root.js +51 -7
  120. package/lib/modules/ai-report/components/AIEvaluate/index.js +2 -2
  121. package/lib/modules/ai-report/components/ScoreReport/Bar.d.ts +4 -1
  122. package/lib/modules/ai-report/components/ScoreReport/Bar.js +11 -9
  123. package/lib/modules/ai-report/components/ScoreReport/Failed.d.ts +1 -1
  124. package/lib/modules/ai-report/components/ScoreReport/Failed.js +12 -5
  125. package/lib/modules/ai-report/components/ScoreReport/RecommendIcon.d.ts +3 -0
  126. package/lib/modules/ai-report/components/ScoreReport/RecommendIcon.js +22 -0
  127. package/lib/modules/ai-report/components/ScoreReport/Score.js +31 -7
  128. package/lib/modules/ai-report/components/ScoreReport/Tips.d.ts +3 -0
  129. package/lib/modules/ai-report/components/ScoreReport/Tips.js +20 -0
  130. package/lib/modules/ai-report/components/ScoreReport/index.js +6 -8
  131. package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +5 -0
  132. package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
  133. package/lib/modules/ai-report/components/ScoreReport/styled.js +2 -4
  134. package/lib/modules/ai-report/components/Suggestion/index.js +1 -1
  135. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +9 -7
  136. package/lib/modules/ai-report/components/VideoQuestion/index.js +1 -1
  137. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +2 -2
  138. package/lib/modules/ai-report/components/VideoQuestion/workplaces.d.ts +6 -0
  139. package/lib/modules/ai-report/components/VideoQuestion/workplaces.js +28 -0
  140. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +1 -0
  141. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +2 -1
  142. package/lib/modules/ai-report/components/WorkPlaces/index.js +3 -2
  143. package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +2 -2
  144. package/lib/modules/ai-report/interface.d.ts +6 -0
  145. package/lib/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
  146. package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
  147. package/lib/services/ai-question.d.ts +3 -0
  148. package/lib/services/ai-question.js +7 -1
  149. package/lib/services/ai-report.d.ts +6 -0
  150. package/lib/services/ai-report.js +3 -1
  151. package/lib/store/ai-question/global-store.d.ts +3 -0
  152. package/lib/store/ai-question/global-store.js +1 -0
  153. package/lib/store/enterprise/enterprise-store.js +2 -2
  154. package/lib/utils/interceptor.js +5 -2
  155. package/package.json +6 -3
@@ -18,6 +18,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var AIEvaluate_1 = __importDefault(require("./components/AIEvaluate"));
19
19
  var NotFinish_1 = __importDefault(require("./components/NotFinish"));
20
20
  var ScoreReport_1 = __importDefault(require("./components/ScoreReport"));
21
+ var Report_1 = __importDefault(require("./components/ScoreReport/Report"));
21
22
  var Suggestion_1 = __importDefault(require("./components/Suggestion"));
22
23
  var VideoQuestion_1 = __importDefault(require("./components/VideoQuestion"));
23
24
  var WorkPlaces_1 = __importDefault(require("./components/WorkPlaces"));
@@ -27,13 +28,13 @@ var global_store_1 = require("../../store/ai-report/global-store");
27
28
  var ahooks_1 = require("ahooks");
28
29
  var fbm_ui_1 = require("fbm-ui");
29
30
  var react_1 = require("react");
30
- var NO_ANSWER = ai_report_1.INTERVIEW_STATUS.NO_ANSWER;
31
+ var NO_ANSWER = ai_report_1.INTERVIEW_STATUS.NO_ANSWER, FAILED = ai_report_1.INTERVIEW_STATUS.FAILED, IN_CALCULATION = ai_report_1.INTERVIEW_STATUS.IN_CALCULATION;
31
32
  var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
32
33
  var token = props.token, customScore = props.customScore, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onSendReminderClick = props.onSendReminderClick;
33
34
  var firstLoad = (0, react_1.useRef)(true);
34
35
  var _a = (0, global_store_1.useAiReportStore)(), updateState = _a.updateState, updateReportResult = _a.updateReportResult, reportResult = _a.reportResult;
35
- var _b = reportResult || {}, _c = _b.collection, collection = _c === void 0 ? [] : _c, _d = _b.workplaces, workplaces = _d === void 0 ? [] : _d;
36
- var _e = (0, ahooks_1.useRequest)(function () { return (0, ai_report_2.PostAiInterviewResult)([token]); }, {
36
+ var _b = reportResult || {}, _c = _b.collection, collection = _c === void 0 ? [] : _c, _d = _b.workplaces, workplaces = _d === void 0 ? [] : _d, _e = _b.model, model = _e === void 0 ? 'standard' : _e, _f = _b.hasProVersion, hasProVersion = _f === void 0 ? false : _f, _g = _b.isSimulated, isSimulated = _g === void 0 ? false : _g;
37
+ var _h = (0, ahooks_1.useRequest)(function () { return (0, ai_report_2.PostAiInterviewResult)([token]); }, {
37
38
  manual: true,
38
39
  onSuccess: function (_a) {
39
40
  var list = _a.data.list;
@@ -51,11 +52,44 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
51
52
  onLoad === null || onLoad === void 0 ? void 0 : onLoad(__assign({ pageStepIndexes: pageStepIndexes_1 }, result));
52
53
  }
53
54
  },
54
- }), data = _e.data, loading = _e.loading, postAiInterviewResult = _e.run;
55
+ }), data = _h.data, loading = _h.loading, postAiInterviewResult = _h.run;
55
56
  var status = (data === null || data === void 0 ? void 0 : data.data.list[0].status) || NO_ANSWER;
56
57
  var handleRefreshSuccess = (0, react_1.useCallback)(function () {
57
58
  postAiInterviewResult();
58
59
  }, [postAiInterviewResult]);
60
+ var handleSwitchReportModel = (0, react_1.useCallback)(function () {
61
+ var SwithAction = function () {
62
+ (0, ai_report_2.SwitchReportModel)({
63
+ thirdOrderID: token,
64
+ model: model === 'standard' ? 'pro' : 'standard',
65
+ })
66
+ .then(function () {
67
+ postAiInterviewResult();
68
+ })
69
+ .catch(function () {
70
+ fbm_ui_1.Message.error('升级报告失败,请重试。');
71
+ });
72
+ };
73
+ if (model === 'standard' && !hasProVersion) {
74
+ (0, fbm_ui_1.confirm)({
75
+ title: '确认使用增值服务',
76
+ content: ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ color: "textSecondary", sx: { display: 'inline' } }, { children: ["\u4E13\u4E1A\u7248\u62A5\u544A\u4EE5\u9AD8\u7EA7AI\u6280\u672F\u63D0\u4F9B\u66F4\u7CBE\u51C6\u8BC4\u4F30\uFF0C\u5C5E\u589E\u503C\u4EA7\u54C1\uFF0C\u6BCF\u4E13\u4E1A\u7248\u62A5\u544A\u6309\u6807\u51C6\u72482\u4EBA\u6B21\u8BA1\u8D39\uFF0C\u4EC5\u9996\u6B21\u5207\u6362\u6536\u8D39\u3002\u9ED8\u8BA4\u63D0\u4F9B\u6807\u51C6\u7248\uFF0C\u54A8\u8BE2\u5BA2\u6237\u987E\u95EE\u4E86\u89E3\u8D44\u8D39\u4F18\u60E0\u3002", (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontWeight: "medium", sx: { display: 'inline' } }, { children: "\u672C\u6B21\u64CD\u4F5C\u5C06\u6D88\u80172\u4EBA \u6B21\uFF0C\u662F\u5426\u786E\u8BA4\uFF1F" }))] }))),
77
+ okText: '确认',
78
+ okProps: {
79
+ color: 'primary',
80
+ variant: 'contained',
81
+ },
82
+ onOk: function (_a) {
83
+ var onClose = _a.onClose;
84
+ SwithAction();
85
+ onClose === null || onClose === void 0 ? void 0 : onClose();
86
+ },
87
+ });
88
+ }
89
+ else {
90
+ SwithAction();
91
+ }
92
+ }, [token, model, postAiInterviewResult]);
59
93
  (0, react_1.useImperativeHandle)(ref, function () { return ({
60
94
  handleRefresh: function () { return postAiInterviewResult(); },
61
95
  }); });
@@ -73,10 +107,20 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
73
107
  return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", style: { marginTop: '149px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: (0, jsx_runtime_1.jsx)("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/CandidateInfoEmpty.png", alt: "", style: { width: '140px', height: '140px' } }) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", color: "textPrimary", style: { fontWeight: '500' } }, { children: "\u8BE5\u5019\u9009\u4EBA\u5C1A\u672A\u5F00\u59CB\u9762\u8BD5" })) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('sendReminder')) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ style: { marginTop: '2px' } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u82E5\u957F\u65F6\u95F4\u672A\u5F00\u59CB\uFF0C\u5EFA\u8BAE\u4F60\u7ED9\u5019\u9009\u4EBA\u53D1\u9001\u77ED\u4FE1\u63D0\u9192" })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ size: "large", variant: "outlined", color: "primary", disabled: reminderSent, onClick: onSendReminderClick }, { children: reminderSent ? '已提醒' : '发送提醒' })) }))] }))] })));
74
108
  }
75
109
  else {
76
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(NotFinish_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (0, jsx_runtime_1.jsx)(ScoreReport_1.default, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess }), (workplaces === null || workplaces === void 0 ? void 0 : workplaces.length) > 0 && (0, jsx_runtime_1.jsx)(WorkPlaces_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (0, jsx_runtime_1.jsx)(AIEvaluate_1.default, {}), (0, jsx_runtime_1.jsx)(Suggestion_1.default, {}), (0, jsx_runtime_1.jsx)(VideoQuestion_1.default, {})] }));
110
+ return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ pb: 3 }, { children: [(0, jsx_runtime_1.jsx)(NotFinish_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && ((0, jsx_runtime_1.jsx)(ScoreReport_1.default, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess, onSwitchReportModel: handleSwitchReportModel })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Paper, __assign({ variant: "outlined", sx: { mt: -10, zIndex: 1, position: 'relative', mx: 2, borderRadius: 4 } }, { children: [![FAILED, IN_CALCULATION].includes(status) && (0, jsx_runtime_1.jsx)(Report_1.default, {}), (workplaces === null || workplaces === void 0 ? void 0 : workplaces.length) > 0 && (0, jsx_runtime_1.jsx)(WorkPlaces_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (0, jsx_runtime_1.jsx)(AIEvaluate_1.default, {}), !isSimulated && (0, jsx_runtime_1.jsx)(Suggestion_1.default, {}), (0, jsx_runtime_1.jsx)(VideoQuestion_1.default, {})] }))] })));
77
111
  }
78
- }, [handleRefreshSuccess, onSendReminderClick, customScore, reminderSent, status, operableButtons, collection, workplaces]);
79
- return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ loading: firstLoad.current && loading, sx: { width: '100%', minHeight: '584px', height: '100%', margin: '0 auto', overflow: 'auto' } }, { children: aiReportResult })));
112
+ }, [
113
+ status,
114
+ operableButtons,
115
+ reminderSent,
116
+ onSendReminderClick,
117
+ collection,
118
+ customScore,
119
+ handleRefreshSuccess,
120
+ handleSwitchReportModel,
121
+ workplaces,
122
+ ]);
123
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ loading: firstLoad.current && loading, sx: { width: '100%', minHeight: '618px', height: '100%', margin: '0 auto', overflow: 'auto' } }, { children: aiReportResult })));
80
124
  });
81
125
  AiReportRoot.displayName = 'AiReportRoot';
82
126
  exports.default = (0, react_1.memo)(AiReportRoot);
@@ -51,11 +51,11 @@ var Index = function () {
51
51
  // }, [expand]);
52
52
  if (!showAiDimension || ((_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.evaluations) === null || _a === void 0 ? void 0 : _a.length) === 0)
53
53
  return null;
54
- return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ id: "report-evaluate", component: mui_1.Paper, variant: "outlined", px: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1, marginBottom: 1 }, { children: [(0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "AI\u57FA\u7840\u80FD\u529B" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: (0, jsx_runtime_1.jsxs)("span", { children: ["\u7ED3\u679C\u8BF4\u660E\uFF1A", (0, jsx_runtime_1.jsx)("br", {}), "AI\u57FA\u7840\u80FD\u529B\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", (0, jsx_runtime_1.jsx)("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }) }, { children: (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { sx: { fontSize: '16px' } }) })) }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Collapse, __assign({ in: expand }, { children: [(_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.evaluations) === null || _b === void 0 ? void 0 : _b.map(function (v) {
54
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ id: "report-evaluate", px: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1, marginBottom: 1 }, { children: [(0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "AI\u57FA\u7840\u80FD\u529B" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: (0, jsx_runtime_1.jsxs)("span", { children: ["\u7ED3\u679C\u8BF4\u660E\uFF1A", (0, jsx_runtime_1.jsx)("br", {}), "AI\u57FA\u7840\u80FD\u529B\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", (0, jsx_runtime_1.jsx)("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }) }, { children: (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { sx: { fontSize: '16px' } }) })) }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Collapse, __assign({ in: expand }, { children: [(_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.evaluations) === null || _b === void 0 ? void 0 : _b.map(function (v) {
55
55
  var _a;
56
56
  var c = customInterviewDimRankMap === null || customInterviewDimRankMap === void 0 ? void 0 : customInterviewDimRankMap[v.evaluationToken];
57
57
  var rank = (0, utils_1.rankPercent)((c === null || c === void 0 ? void 0 : c.rank) || (v === null || v === void 0 ? void 0 : v.rank), (c === null || c === void 0 ? void 0 : c.total) || (v === null || v === void 0 ? void 0 : v.total));
58
- return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ component: mui_1.Paper, elevation: 0, bgcolor: "#f9f9f9", mb: 2, pb: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ px: 2, pt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h6", fontWeight: "medium", sx: { fontWeight: 500 } }, { children: v.evaluationDimensionName })), !isNaN(rank) && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u51FB\u8D25\u4E86", (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", display: "inline", color: "#4caf50" }, { children: [rank.toFixed(2), "%"] })), "\u7684\u5019\u9009\u4EBA"] })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ mt: 1, mb: 2, variant: "body2", fontWeight: "medium", color: "#4caf50" }, { children: v.impressions.join('、') }))] })), (0, jsx_runtime_1.jsx)(mui_1.Divider, { sx: { borderColor: 'rgba(0,0,0,0.08)' } }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ px: 2 }, { children: [((_a = v.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(Graph_1.default, { items: v.items }) }))), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(Evaluate_1.default, { canEdit: canEditAiDimension, token: v.evaluationToken, evaluations: v.evaluations, title: "\u8BC4\u4EF7\u5185\u5BB9", field: "evaluations", mode: "show" }), (0, jsx_runtime_1.jsx)(Evaluate_1.default, { canEdit: canEditAiDimension, token: v.evaluationToken, evaluations: v.suggestions, title: "\u63D0\u9AD8\u5EFA\u8BAE", field: "suggestions", mode: "show" })] }))] }))] }), v.evaluationToken));
58
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ component: mui_1.Paper, elevation: 0, bgcolor: "#f9f9f9", mb: 2, pb: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ px: 2, pt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h6", fontWeight: "medium", sx: { fontWeight: 500 } }, { children: v.evaluationDimensionName })), !isNaN(rank) && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u51FB\u8D25\u4E86", (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", display: "inline", color: "#4caf50" }, { children: [rank.toFixed(2), "%"] })), "\u7684\u5019\u9009\u4EBA"] })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ mt: 1, mb: 2, variant: "body2", fontWeight: "medium", color: "#4caf50" }, { children: v.impressions.join('、') }))] })), (0, jsx_runtime_1.jsx)(mui_1.Divider, { sx: { borderColor: 'rgba(0,0,0,0.08)' } }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ px: 2 }, { children: [((_a = v.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(Graph_1.default, { items: v.items }) }))), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ spacing: 2, mt: 2 }, { children: (0, jsx_runtime_1.jsx)(Evaluate_1.default, { canEdit: canEditAiDimension, token: v.evaluationToken, evaluations: v.evaluations, title: "\u8BC4\u4EF7\u5185\u5BB9", field: "evaluations", mode: "show" }) }))] }))] }), v.evaluationToken));
59
59
  }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 1, mt: 4, pb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", color: "textSecondary" }, { children: "\u7ED3\u679C\u8BF4\u660E" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "rgba(0,0,0,0.26)" }, { children: ["AI\u57FA\u7840\u80FD\u529B\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", (0, jsx_runtime_1.jsx)("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }))] }))] }))] })));
60
60
  };
61
61
  exports.default = Index;
@@ -1,3 +1,6 @@
1
1
  import { FC } from 'react';
2
- declare const Bar: FC;
2
+ interface BarProps {
3
+ model?: 'pro' | 'standard';
4
+ }
5
+ declare const Bar: FC<BarProps>;
3
6
  export default Bar;
@@ -33,11 +33,12 @@ var ai_report_1 = require("../../../../constants/ai-report");
33
33
  var global_store_1 = require("../../../../store/ai-report/global-store");
34
34
  var fbm_ui_1 = require("fbm-ui");
35
35
  var react_1 = require("react");
36
- var Bar = function () {
37
- var _a = __read((0, react_1.useState)(1), 2), currentRank = _a[0], setCurrentRank = _a[1];
38
- var _b = __read((0, react_1.useState)(''), 2), text = _b[0], setText = _b[1];
39
- var _c = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.scoreRankIntervals]; }), reportResult = _c.reportResult, scoreRankIntervals = _c.scoreRankIntervals, reportRank = _c.reportRank;
40
- var _d = (reportResult || {}).score, score = _d === void 0 ? 0 : _d;
36
+ var Bar = function (_a) {
37
+ var _b = _a.model, model = _b === void 0 ? 'standard' : _b;
38
+ var _c = __read((0, react_1.useState)(1), 2), currentRank = _c[0], setCurrentRank = _c[1];
39
+ var _d = __read((0, react_1.useState)(''), 2), text = _d[0], setText = _d[1];
40
+ var _e = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.scoreRankIntervals]; }), reportResult = _e.reportResult, scoreRankIntervals = _e.scoreRankIntervals, reportRank = _e.reportRank;
41
+ var _f = (reportResult || {}).score, score = _f === void 0 ? 0 : _f;
41
42
  (0, react_1.useEffect)(function () {
42
43
  var floatInterval = scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.find(function (interval) { return score >= interval.score.startScore && score <= interval.score.endScore; });
43
44
  if (floatInterval) {
@@ -53,14 +54,15 @@ var Bar = function () {
53
54
  }, [score, reportRank, scoreRankIntervals]);
54
55
  if (!scoreRankIntervals || (scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.length) === 0)
55
56
  return null;
56
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", flexShrink: 0 }, { children: [text, "\u00A0"] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", sx: { height: 12, mt: 0.5 } }, { children: scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.map(function (_a, index) {
57
- var rank = _a.rank, _b = _a.scoreRankIntervals, startRankProportion = _b.startRankProportion, endRankProportion = _b.endRankProportion;
57
+ return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ color: "inherit", variant: "body2", flexShrink: 0 }, { children: [text, "\u00A0"] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", sx: { height: 12, mt: 0.5 } }, { children: scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.map(function (_a, index) {
58
+ var _b;
59
+ var rank = _a.rank, _c = _a.scoreRankIntervals, startRankProportion = _c.startRankProportion, endRankProportion = _c.endRankProportion;
58
60
  return [
59
61
  (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { sx: {
60
62
  width: "".concat((endRankProportion - startRankProportion) * 100, "%"),
61
63
  height: currentRank === rank ? 'calc(100% + 4px)' : '100%',
62
- background: ai_report_1.scoreRankIntervalColors[index],
63
- border: '1px solid rgb(255, 255, 255)',
64
+ background: (_b = ai_report_1.scoreRankIntervalModeColors === null || ai_report_1.scoreRankIntervalModeColors === void 0 ? void 0 : ai_report_1.scoreRankIntervalModeColors[model]) === null || _b === void 0 ? void 0 : _b[index],
65
+ border: '2px solid rgb(255, 255, 255)',
64
66
  } }, rank),
65
67
  ];
66
68
  }) }))] }));
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
1
  import { FailedProps } from './interface';
2
+ import { FC } from 'react';
3
3
  declare const Failed: FC<FailedProps>;
4
4
  export default Failed;
@@ -12,13 +12,20 @@ var __assign = (this && this.__assign) || function () {
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  var jsx_runtime_1 = require("react/jsx-runtime");
15
- var fbm_ui_1 = require("fbm-ui");
16
15
  var ai_report_1 = require("../../../../enum/ai-report");
17
- var FAILED = ai_report_1.INTERVIEW_STATUS.FAILED;
16
+ var ai_report_2 = require("../../../../enum/ai-report");
17
+ // import { SwitchIcon } from 'fbm-icons';
18
+ var fbm_ui_1 = require("fbm-ui");
19
+ var FAILED = ai_report_2.INTERVIEW_STATUS.FAILED;
18
20
  var Failed = function (_a) {
19
- var loading = _a.loading, status = _a.status, onRefresh = _a.onRefresh;
20
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ loading: loading, display: "flex", alignItems: "center", padding: "32px 24px" }, { children: [status === FAILED && ((0, jsx_runtime_1.jsx)(fbm_ui_1.CancelIcon, { style: {
21
- background: 'white',
21
+ var loading = _a.loading, status = _a.status, onRefresh = _a.onRefresh, _b = _a.model, model = _b === void 0 ? 'standard' : _b, onSwitchReportModel = _a.onSwitchReportModel;
22
+ return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ loading: loading, display: "flex", alignItems: "center", padding: "32px 24px", sx: {
23
+ px: 3,
24
+ height: 280,
25
+ background: "url('".concat(ai_report_1.BackgroundImage[model], "') no-repeat center center / cover"),
26
+ overflow: 'hidden',
27
+ borderRadius: '0 0 62px 62px',
28
+ } }, { children: [status === FAILED && ((0, jsx_runtime_1.jsx)(fbm_ui_1.CancelIcon, { style: {
22
29
  color: '#ff6c6c',
23
30
  width: '24px',
24
31
  height: '24px',
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const RecommendIcon: (props: any) => JSX.Element;
3
+ export default RecommendIcon;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var jsx_runtime_1 = require("react/jsx-runtime");
18
+ var SvgIcon_1 = __importDefault(require("@mui/material/SvgIcon"));
19
+ var RecommendIcon = function (props) {
20
+ return ((0, jsx_runtime_1.jsx)(SvgIcon_1.default, __assign({}, props, { viewBox: "0 0 120 120" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M84.407 24.379a2.648 2.648 0 0 1 1.186 2.298c-.131 4.575 3.655 8.601 8.247 8.731a2.656 2.656 0 0 1 2.415 3.58 8.473 8.473 0 0 0 .119 6.286 8.543 8.543 0 0 0 4.889 4.634 2.656 2.656 0 0 1 .898 4.42 8.43 8.43 0 0 0-.343 12.008 2.656 2.656 0 0 1-.82 4.238 8.472 8.472 0 0 0-4.362 4.53 8.42 8.42 0 0 0 .18 6.733 2.656 2.656 0 0 1-2.491 3.764 8.427 8.427 0 0 0-8.73 8.246 2.65 2.65 0 0 1-3.58 2.415 8.473 8.473 0 0 0-6.287.118 8.405 8.405 0 0 0-4.475 4.49 2.642 2.642 0 0 1-.73 1.389c-1.045 1.044-2.746 1.16-3.775-.02l-.085-.084c-1.79-1.79-3.916-2.676-6.164-2.678a8.475 8.475 0 0 0-5.831 2.345 2.659 2.659 0 0 1-4.24-.82 8.487 8.487 0 0 0-4.53-4.362 8.42 8.42 0 0 0-6.733.178 2.656 2.656 0 0 1-3.763-2.49c.133-4.577-3.66-8.602-8.248-8.732a2.651 2.651 0 0 1-2.415-3.58 8.473 8.473 0 0 0-.119-6.286 8.546 8.546 0 0 0-4.889-4.634 2.656 2.656 0 0 1-.898-4.42 8.432 8.432 0 0 0 .344-12.007 2.656 2.656 0 0 1 .82-4.24 8.424 8.424 0 0 0 4.182-11.262 2.656 2.656 0 0 1 2.49-3.764 8.427 8.427 0 0 0 8.731-8.246 2.65 2.65 0 0 1 3.58-2.415 8.436 8.436 0 0 0 10.919-5.007 2.663 2.663 0 0 1 1.96-1.679 2.702 2.702 0 0 1 2.461.782l.011.011c1.79 1.79 3.914 2.675 6.166 2.677a8.472 8.472 0 0 0 5.832-2.346 2.661 2.661 0 0 1 4.239.825 8.426 8.426 0 0 0 11.26 4.181 2.648 2.648 0 0 1 2.58.193Zm-3.778 5.706c-2.532.45-5.14.172-7.522-.798a13.723 13.723 0 0 1-5.704-4.315 13.705 13.705 0 0 1-14.178-.216 13.626 13.626 0 0 1-5.884 4.757 13.68 13.68 0 0 1-7.086.978 13.68 13.68 0 0 1-3.564 6.205 13.624 13.624 0 0 1-6.613 3.671c.45 2.532.174 5.139-.796 7.52a13.672 13.672 0 0 1-4.319 5.71 13.706 13.706 0 0 1 1.87 6.903 13.627 13.627 0 0 1-2.085 7.278 13.683 13.683 0 0 1 5.742 12.965 13.667 13.667 0 0 1 6.203 3.563 13.627 13.627 0 0 1 3.674 6.615c2.532-.45 5.14-.173 7.522.798 2.25.911 4.218 2.4 5.706 4.317a13.705 13.705 0 0 1 14.176.214 13.618 13.618 0 0 1 5.884-4.757 13.68 13.68 0 0 1 7.088-.98 13.664 13.664 0 0 1 3.562-6.203 13.624 13.624 0 0 1 6.61-3.675c-.45-2.532-.174-5.14.797-7.522a13.67 13.67 0 0 1 4.32-5.702 13.705 13.705 0 0 1 .215-14.185 13.683 13.683 0 0 1-5.74-12.963c-4.839-1.274-8.771-5.36-9.878-10.178Zm-37.034 47.32a2.656 2.656 0 1 1-3.756 3.756 2.656 2.656 0 0 1 3.756-3.757Zm5.635 5.634a2.656 2.656 0 1 1-3.756 3.756 2.656 2.656 0 0 1 3.756-3.756ZM36.77 71.082a2.656 2.656 0 1 1-1.376 5.132 2.656 2.656 0 0 1 1.376-5.132ZM50.819 33.61a1.328 1.328 0 0 1-.318 2.278 26.351 26.351 0 0 0-8.786 5.833 26.491 26.491 0 0 0-5.835 8.784 1.328 1.328 0 0 1-2.46-.996 29.024 29.024 0 0 1 6.417-9.666 28.977 28.977 0 0 1 9.666-6.417c.44-.178.942-.108 1.316.184Zm36.508 36.428.094.11c.294.388.353.905.153 1.349a29.024 29.024 0 0 1-6.417 9.666 28.977 28.977 0 0 1-9.666 6.417 1.323 1.323 0 0 1-1.728-.732 1.328 1.328 0 0 1 .73-1.73 26.351 26.351 0 0 0 8.786-5.833 26.491 26.491 0 0 0 5.835-8.784 1.328 1.328 0 0 1 2.307-.353Zm-13.559 3.55-1.473 1.473-3.756-1.172 2.9 2.9-1.593 1.593-3.44-3.441-1.263 1.262c-1.457 1.458-2.329 1.458-4.027 0l-.917-.766 1.082-2.134 1.082.902c.661.54.827.466 1.307-.015l.992-.992-3.53-3.531 1.592-1.593 3.531 3.531.406-.405 2.464.901-4.433-4.433 1.578-1.577 7.498 7.498ZM58.171 45.97l1.352 2.043c-.766.466-1.547.887-2.329 1.248l1.939 1.938 1.307-2.029 1.818 1.638-1.397 2.119 2.239 2.239-1.698 1.698-2.435-2.435-1.487 1.488 2.194 2.194-1.608 1.608-2.194-2.194-1.518 1.517 2.194 2.194-1.668 1.668-2.194-2.194-1.532 1.533 2.795 2.795-1.683 1.683-8.295-8.295 7.048-7.047-.526.105.856-2.78c.33-.06.646-.135.962-.21l-.631-.63-1.863 1.862c.3.15.57.3.841.421l-.796 1.037-.782 1.022-1.142-.601-3.621 3.62c-1.337 1.338-2.104 1.443-3.591.286l-1.097-.856 1.217-2.3 1.007.767c.45.36.826.196 1.232-.21l2.54-2.54c-.872-.42-1.624-.871-2.195-1.111l1.458-2.24c.721.391 1.623.932 2.614 1.473l2.405-2.404-1.398-1.397 1.848-1.849 1.398 1.398 2.103-2.104 1.698 1.848-2.028 2.029 1.052 1.052-1.142 1.142c1.728-.526 3.125-1.202 4.733-2.24Zm16.844 17.175 1.698 1.848-.766.766 3.185 3.186-1.653 1.652-3.185-3.185-.676.676-1.773-1.773.676-.676-2.885-2.885-.376.376.917 1.427-.752.3 6.657 6.657-1.623 1.623-7.483-7.483c-1.112.3-2.179.526-3.32.616l-6.191 6.19-1.728-1.727 4.432-4.433a27.952 27.952 0 0 1-2.509-.285l.857-2.66c2.193.42 4.282.466 6.31.15l-2.479-2.48 1.623-1.622 3.471 3.471.736-.285-.991-.992.646-.646-3.186-3.186 1.653-1.653 3.186 3.186.841-.842 1.728 1.879-.766.766 2.885 2.885.841-.841Zm-24.207-4.313-1.788-1.788-1.533 1.533 1.789 1.788 1.532-1.533Zm3.186-3.185-1.788-1.789-1.518 1.518 1.788 1.788 1.518-1.517Zm3.095-3.096-1.788-1.788-1.488 1.488 1.789 1.788 1.487-1.488Zm29.701-7.073a2.656 2.656 0 1 1-3.756 3.757 2.656 2.656 0 0 1 3.756-3.757Zm-5.635-5.634A2.656 2.656 0 1 1 77.4 43.6a2.656 2.656 0 0 1 3.756-3.756Zm-6.825-6.322a2.656 2.656 0 1 1-1.375 5.131 2.656 2.656 0 0 1 1.375-5.131Z", fill: "currentColor", fillRule: "evenodd" }) })));
21
+ };
22
+ exports.default = RecommendIcon;
@@ -33,19 +33,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
33
33
  var jsx_runtime_1 = require("react/jsx-runtime");
34
34
  var RankingRange_1 = __importDefault(require("../RankingRange"));
35
35
  var Bar_1 = __importDefault(require("./Bar"));
36
+ var RecommendIcon_1 = __importDefault(require("./RecommendIcon"));
36
37
  var styled_1 = require("./styled");
38
+ // import Tips from './Tips';
39
+ var ai_report_1 = require("../../../../enum/ai-report");
37
40
  var global_store_1 = require("../../../../store/ai-report/global-store");
38
41
  var utils_1 = require("../../../../utils/utils");
39
42
  var dayjs_1 = __importDefault(require("dayjs"));
43
+ // import { SwitchIcon } from 'fbm-icons';
40
44
  var fbm_ui_1 = require("fbm-ui");
45
+ var mui_1 = require("fbm-ui/lib/mui");
41
46
  var react_1 = require("react");
42
47
  var Score = function (_a) {
43
- var customScore = _a.customScore, loading = _a.loading, onRefresh = _a.onRefresh;
44
- var _b = __read((0, react_1.useState)(false), 2), openRankingRange = _b[0], setOpenRankingRange = _b[1];
45
- var _c = __read((0, react_1.useState)(false), 2), openRefresh = _c[0], setOpenRefresh = _c[1];
46
- var _d = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.operableButtons]; }), reportResult = _d.reportResult, operableButtons = _d.operableButtons, onExportReportClick = _d.onExportReportClick;
47
- var _e = reportResult || {}, score = _e.score, createTime = _e.createTime;
48
- var _f = __read((0, react_1.useState)(score || 0), 2), feScore = _f[0], setScore = _f[1];
48
+ var customScore = _a.customScore, loading = _a.loading, onRefresh = _a.onRefresh, onSwitchReportModel = _a.onSwitchReportModel, _b = _a.model, model = _b === void 0 ? 'standard' : _b;
49
+ var _c = __read((0, react_1.useState)(false), 2), openRankingRange = _c[0], setOpenRankingRange = _c[1];
50
+ var _d = __read((0, react_1.useState)(false), 2), openRefresh = _d[0], setOpenRefresh = _d[1];
51
+ var _e = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.operableButtons]; }), reportResult = _e.reportResult, operableButtons = _e.operableButtons, onExportReportClick = _e.onExportReportClick;
52
+ var _f = reportResult || {}, score = _f.score, createTime = _f.createTime;
53
+ var _g = __read((0, react_1.useState)(score || 0), 2), feScore = _g[0], setScore = _g[1];
49
54
  (0, react_1.useEffect)(function () {
50
55
  if (typeof customScore === 'number' && customScore > -1) {
51
56
  setScore(customScore);
@@ -57,6 +62,25 @@ var Score = function (_a) {
57
62
  setOpenRefresh(false);
58
63
  }, [loading, customScore, score]);
59
64
  var content = ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ padding: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", color: "secondary" }, { children: "\u5237\u65B0\u540E\u5C06\u6309\u6700\u65B0\u7B97\u5206\u89C4\u5219\u8BA1\u7B97\uFF0C\u662F\u5426\u786E\u8BA4\u5237\u65B0" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ paddingTop: 1, textAlign: "right" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ loading: loading, onClick: onRefresh }, { children: "\u5237\u65B0" })) }))] })));
60
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", sx: { padding: '24px' } }, { children: [(0, jsx_runtime_1.jsx)(RankingRange_1.default, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flex: "1 0" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsxs)(styled_1.ScoreTypography, { children: [(0, utils_1.formatScore)(feScore || 0), (0, jsx_runtime_1.jsx)(styled_1.ScoreUnitTypography, __assign({ variant: "caption" }, { children: "\u5206" }))] }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 50, height: 50 }, { children: !!feScore && feScore >= 80 && (0, jsx_runtime_1.jsx)("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/recommended.svg", alt: "" }) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", size: "small", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.DownloadIcon, {}), sx: { ml: 1 }, onClick: onExportReportClick }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", mt: 1 }, { children: [(operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: (0, jsx_runtime_1.jsx)(styled_1.RefreshIconRoot, { onClick: function () { return setOpenRefresh(true); } }) }))), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 0.5 }, { children: ["\u62A5\u544A\u751F\u6210\u4E8E ", (0, dayjs_1.default)(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('scoreRank')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", size: "small", sx: { textDecoration: 'underline' }, onClick: function () { return setOpenRankingRange(true); } }, { children: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E" })))] }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 200 }, { children: (0, jsx_runtime_1.jsx)(Bar_1.default, {}) }))] })));
65
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ display: "flex", sx: {
66
+ px: 3,
67
+ height: 280,
68
+ background: "url('".concat(ai_report_1.BackgroundImage[model], "') no-repeat center center / cover"),
69
+ overflow: 'hidden',
70
+ borderRadius: '0 0 62px 62px',
71
+ } }, { children: [model === 'pro' && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", justifyContent: "center", width: 92, height: 30, sx: {
72
+ position: 'absolute',
73
+ top: 0,
74
+ left: 0,
75
+ backgroundColor: ai_report_1.Colors[model],
76
+ borderBottomRightRadius: 16,
77
+ } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", color: "white" }, { children: "\u9AD8\u7CBE\u51C6\u5EA6" })) }))), (0, jsx_runtime_1.jsx)(RankingRange_1.default, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", py: 2, justifyContent: "flex-end", spacing: 1, alignContent: "center", color: ai_report_1.Colors[model] }, { children: (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", size: "small", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.DownloadIcon, {}), sx: {
78
+ ml: 1,
79
+ color: 'inherit',
80
+ borderColor: 'inherit',
81
+ '&:hover': {
82
+ borderColor: 'inherit',
83
+ },
84
+ }, onClick: onExportReportClick }, { children: "\u5BFC\u51FA\u62A5\u544A" })) })) })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", height: 80, color: ai_report_1.Colors[model] }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(styled_1.ScoreTypography, __assign({ color: "inherit" }, { children: (0, utils_1.formatScore)(feScore || 0) })), (0, jsx_runtime_1.jsx)(styled_1.ScoreUnitTypography, __assign({ color: "inherit", sx: { alignSelf: 'flex-end' } }, { children: "\u5206" }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 200, ml: 5, color: ai_report_1.Colors[model] }, { children: (0, jsx_runtime_1.jsx)(Bar_1.default, { model: model }) }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-between", color: ai_report_1.Colors[model] }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", mt: 1, sx: { alignSelf: 'flex-start' } }, { children: [(operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: (0, jsx_runtime_1.jsx)(styled_1.RefreshIconRoot, { htmlColor: "inherit", onClick: function () { return setOpenRefresh(true); } }) }))), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "inherit", ml: 0.5 }, { children: ["\u62A5\u544A\u751F\u6210\u4E8E ", (0, dayjs_1.default)(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('scoreRank')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ color: "inherit", sx: { textDecoration: 'underline', cursor: 'pointer', ml: 1.5 }, onClick: function () { return setOpenRankingRange(true); } }, { children: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E" })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 120, height: 120, sx: { marginTop: -3 } }, { children: !!feScore && feScore >= 80 && (0, jsx_runtime_1.jsx)(RecommendIcon_1.default, { size: 120, sx: { width: 120, height: 120 }, htmlColor: ai_report_1.Colors[model] }) }))] }))] })));
61
85
  };
62
86
  exports.default = Score;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Tips: () => JSX.Element;
3
+ export default Tips;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ var jsx_runtime_1 = require("react/jsx-runtime");
15
+ var fbm_ui_1 = require("fbm-ui");
16
+ var mui_1 = require("fbm-ui/lib/mui");
17
+ var Tips = function () {
18
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ width: 588, spacing: 3, pl: 3, pr: 2, py: 3, overflow: "scroll" }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 2.5 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ color: "textSecondary" }, { children: "\u4E13\u4E1A\u7248\u8BF4\u660E" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontWeight: "medium" }, { children: "\u6CE8\u610F\uFF1A\u4E13\u4E1A\u7248\u62A5\u544A\u4EE5\u9AD8\u7EA7AI\u6280\u672F\u63D0\u4F9B\u66F4\u7CBE\u51C6\u8BC4\u4F30\uFF0C\u5C5E\u589E\u503C\u4EA7\u54C1\uFF0C\u6BCF\u4E13\u4E1A\u7248\u62A5\u544A\u6309\u6807\u51C6\u72482\u4EBA\u6B21\u8BA1\u8D39\uFF0C\u4EC5\u9996\u6B21\u5347\u7EA7\u6536\u8D39\u3002\u9ED8\u8BA4\u63D0\u4F9B\u6807\u51C6\u7248\uFF0C\u54A8\u8BE2\u5BA2\u6237\u987E\u95EE\u4E86\u89E3\u8D44\u8D39\u4F18\u60E0\u3002" }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 2.5 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontWeight: "medium" }, { children: "\u62A5\u544A\u8BF4\u660E" })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 0.5 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "1.\u4E13\u4E1A\u7248\u62A5\u544A\u91C7\u7528\u4E86\u66F4\u4E3A\u9AD8\u7EA7\u7684AI\u7B97\u6CD5\u548C\u6280\u672F\uFF0C\u5728\u62E9\u4F18\u548C\u7565\u6C70\u65B9\u9762\u90FD\u80FD\u505A\u5230\u66F4\u9AD8\u51C6\u786E\u5EA6\u3002" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "2.\u5728\u6807\u51C6\u6D4B\u8BD5\u96C6\u4E2D\u7ECF\u8FC7\u591A\u6B21\u6D4B\u8BD5\u5F97\u51FA\uFF0C\u5982\u679C\u9898\u76EE\u8003\u6838\u7684\u80FD\u529B\u7684\u540D\u79F0\u548C\u80FD\u529B\u7684\u8BC4\u5206\u5173\u952E\u70B9\u5185\u5BB9\u66F4\u8D34\u5408\u9898\u76EE\u5185\u5BB9\uFF0C\u6253\u5206\u51C6\u786E\u5EA6\u4E5F\u4F1A\u66F4\u9AD8\u3002\u5728\u76F8\u540C\u7684\u80FD\u529B\u540D\u79F0\u548C\u8BC4\u5206\u5173\u952E\u70B9\u65F6\uFF0C\u4E13\u4E1A\u7248\u8F83\u6807\u51C6\u7248\u7684\u5206\u6570\u51C6\u786E\u5EA6\u63D0\u534721%\u3002" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "3.\u6807\u51C6\u6D4B\u8BD5\u96C6\u4E2D\u91C7\u7528\u7EBF\u4E0A\u771F\u5B9E\u6570\u636E\uFF0C\u4E14\u4FDD\u8BC1\u6570\u636E\u7684\u591A\u6837\u5316\uFF0C\u9002\u7528\u4E8E\u5404\u79CD\u62DB\u8058\u573A\u666F\u3002" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "4.\u4E0B\u9762\u6848\u4F8B\u80FD\u591F\u5E2E\u52A9\u7406\u89E3\u4E24\u4E2A\u7248\u672C\u7684\u5DEE\u5F02\uFF1A" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u95EE\u9898\uFF1A\u8BF7\u5206\u4EAB\u4E00\u4E0B\u60A8\u7684\u804C\u4E1A\u89C4\u5212\u548C\u76EE\u6807\uFF1F" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u5019\u9009\u4EBA\u56DE\u7B54\uFF1A\u9996\u5148\u662F\u5165\u804C\u4E00\u4EFD\u8DDF\u6211\u4E13\u4E1A\u76F8\u5173\u7684\u3002 \u5DE5\u4F5C\uFF0C\u7136\u540E\u3002 \u5728\u63A5\u4E0B\u6765\u7684\u51E0\u5E74\u3002 \u6728\u95E8\u3002 \u5C31\u662F\u7A33\u6B65\u5DE5\u4F5C\uFF0C\u7136\u540E\u6709\u6240\u5B66\u4E60\uFF0C\u7136\u540E\u6709\u6240\u6536\u83B7\u3002 \u5E76\u4E14\u3002 \u719F\u6089\u7684\u4E86\u89E3\u3002 \u6211\u6240\u5DE5\u4F5C\u7684\u6A21\u5757\u7684\u3002 \u6240\u6709\u6D41\u7A0B\uFF0C\u5E76\u4E14\u80FD\u5728\u5176\u4E2D\u83B7\u5F97\u4E00\u4E9B\u77E5\u8BC6" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u8003\u5BDF\u80FD\u529B\uFF1A\u804C\u4E1A\u89C4\u5212\u80FD\u529B" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u8BC4\u5206\u5173\u952E\u70B9\uFF1A\u9700\u8981\u5305\u542B\u5177\u4F53\u7684\u5DE5\u4F5C\u5B89\u6392\u7EC6\u8282\u3002\u5982\u679C\u5019\u9009\u4EBA\u7684\u89C4\u5212\u4E0D\u5177\u6709\u660E\u786E\u6027\u548C\u5B9E\u9645\u6027\uFF0C\u5219\u5C06\u5206\u6570\u6263\u51CF\u523070\u5206\u4EE5\u4E0B\uFF1B" }))] }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", spacing: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ p: 2, flex: 1, spacing: 1, sx: { backgroundColor: '#FAFAFA', borderRadius: 2 } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: "\u57FA\u7840\u7248\uFF1A70\u5206" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u5019\u9009\u4EBA\u7684\u56DE\u7B54\u7F3A\u4E4F\u660E\u786E\u6027\u548C\u5B9E\u9645\u6027\uFF0C\u8868\u8FBE\u80FD\u529B\u4E5F\u8F83\u5DEE\uFF0C\u6CA1\u6709\u63D0\u4F9B\u5177\u4F53\u7684\u5DE5\u4F5C\u5B89\u6392\u7EC6\u8282\u3002\u9700\u8981\u5728\u8FD9\u65B9\u9762\u8FDB\u884C\u6539\u8FDB\u3002" }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ p: 2, flex: 1, spacing: 1, sx: { backgroundColor: '#FAFAFA', borderRadius: 2 } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: "\u4E13\u4E1A\u7248\uFF1A60\u5206" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: ["\u5019\u9009\u4EBA\u7684\u56DE\u7B54\u867D\u7136\u8868\u8FBE\u4E86\u5BF9\u804C\u4E1A\u89C4\u5212\u7684\u4E00\u4E9B\u7406\u89E3\uFF0C\u4F46\u662F\u5728\u5B8C\u6574\u5EA6\u3001\u903B\u8F91\u6027\u548C\u8868\u8FBE\u80FD\u529B\u4E0A\u90FD\u5B58\u5728\u4E00\u5B9A\u7684\u95EE\u9898\uFF0C\u6CA1\u6709\u660E\u786E\u7684\u53D1\u5C55\u610F\u613F\u548C\u5BF9\u884C\u4E1A\u7684\u7406\u89E3\uFF0C\u4E5F\u6CA1\u6709\u8868\u73B0\u51FA\u5BF9\u751F\u6D3B\u7684\u70ED\u7231\u548C\u79EF\u6781\u7684\u6001\u5EA6\u3002", ' '] }))] }))] }))] })));
19
+ };
20
+ exports.default = Tips;
@@ -16,31 +16,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var Failed_1 = __importDefault(require("./Failed"));
19
- var Report_1 = __importDefault(require("./Report"));
20
19
  var Score_1 = __importDefault(require("./Score"));
21
20
  var ai_report_1 = require("../../../../enum/ai-report");
22
21
  var ai_report_2 = require("../../../../services/ai-report");
23
22
  var global_store_1 = require("../../../../store/ai-report/global-store");
24
23
  var ahooks_1 = require("ahooks");
25
24
  var fbm_ui_1 = require("fbm-ui");
26
- var mui_1 = require("fbm-ui/lib/mui");
27
25
  var FAILED = ai_report_1.INTERVIEW_STATUS.FAILED, IN_CALCULATION = ai_report_1.INTERVIEW_STATUS.IN_CALCULATION;
28
26
  var ScoreReport = function (_a) {
29
- var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess;
27
+ var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess, onSwitchReportModel = _a.onSwitchReportModel;
30
28
  var _b = (0, global_store_1.useAiReportStore)(function (store) { return [store.token, store.reportResult]; }), token = _b.token, reportResult = _b.reportResult;
31
- var _c = (reportResult || {}).status, status = _c === void 0 ? 0 : _c;
32
- var _d = (0, ahooks_1.useRequest)(function () { return (0, ai_report_2.PostAiInterviewRefresh)(token); }, {
29
+ var _c = reportResult || {}, _d = _c.status, status = _d === void 0 ? 0 : _d, model = _c.model;
30
+ var _e = (0, ahooks_1.useRequest)(function () { return (0, ai_report_2.PostAiInterviewRefresh)(token); }, {
33
31
  manual: true,
34
32
  onSuccess: function () {
35
33
  onRefreshSuccess();
36
34
  fbm_ui_1.Message.success('刷新成功');
37
35
  },
38
- }), run = _d.run, loading = _d.loading;
36
+ }), run = _e.run, loading = _e.loading;
39
37
  if ([FAILED, IN_CALCULATION].includes(status)) {
40
- return ((0, jsx_runtime_1.jsx)(mui_1.Paper, __assign({ id: "report-score", variant: "outlined" }, { children: (0, jsx_runtime_1.jsx)(Failed_1.default, { status: status, loading: loading, onRefresh: run }) })));
38
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ id: "report-score" }, { children: (0, jsx_runtime_1.jsx)(Failed_1.default, { status: status, loading: loading, onRefresh: run, model: model, onSwitchReportModel: onSwitchReportModel }) })));
41
39
  }
42
40
  else {
43
- return ((0, jsx_runtime_1.jsxs)(mui_1.Paper, __assign({ id: "report-score", variant: "outlined" }, { children: [(0, jsx_runtime_1.jsx)(Score_1.default, { customScore: customScore, loading: loading, onRefresh: run }), (0, jsx_runtime_1.jsx)(mui_1.Divider, {}), (0, jsx_runtime_1.jsx)(Report_1.default, {})] })));
41
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: (0, jsx_runtime_1.jsx)(Score_1.default, { model: model, customScore: customScore, loading: loading, onRefresh: run, onSwitchReportModel: onSwitchReportModel }) }));
44
42
  }
45
43
  };
46
44
  exports.default = ScoreReport;
@@ -4,12 +4,17 @@ export interface ScoreLegendProps {
4
4
  export interface ScoreReportProps {
5
5
  customScore?: number;
6
6
  onRefreshSuccess: () => void;
7
+ onSwitchReportModel: () => void;
7
8
  }
8
9
  export interface ScoreProps {
9
10
  customScore?: number;
10
11
  loading?: boolean;
12
+ model?: 'pro' | 'standard';
11
13
  onRefresh: () => void;
14
+ onSwitchReportModel?: () => void;
12
15
  }
13
16
  export interface FailedProps extends ScoreProps {
14
17
  status?: number;
18
+ model?: 'pro' | 'standard';
19
+ onSwitchReportModel: () => void;
15
20
  }
@@ -8,15 +8,15 @@ export declare const ScoreUnitTypography: import("@emotion/styled").StyledCompon
8
8
  export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<{
9
9
  children?: import("react").ReactNode;
10
10
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
11
- color?: "inherit" | "disabled" | "action" | "secondary" | "error" | "warning" | "success" | "info" | "primary" | undefined;
11
+ color?: "inherit" | "disabled" | "action" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
12
12
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
13
13
  htmlColor?: string | undefined;
14
14
  shapeRendering?: string | undefined;
15
15
  sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
16
16
  titleAccess?: string | undefined;
17
17
  viewBox?: string | undefined;
18
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "name" | "type" | "filter" | "fill" | "values" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "children" | "spacing" | "path" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
18
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "d" | "y" | "name" | "type" | "values" | "end" | "href" | "viewBox" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
19
19
  ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
20
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
20
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "titleAccess" | "viewBox"> & {
21
21
  children?: import("react").ReactNode;
22
22
  } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -5,16 +5,14 @@ var fbm_ui_1 = require("fbm-ui");
5
5
  exports.ScoreTypography = (0, fbm_ui_1.styled)(fbm_ui_1.Typography)(function (_a) {
6
6
  var theme = _a.theme;
7
7
  return ({
8
- color: theme.palette.primary.main,
9
- fontSize: 48,
8
+ fontSize: 70,
10
9
  fontWeight: 700,
11
10
  });
12
11
  });
13
12
  exports.ScoreUnitTypography = (0, fbm_ui_1.styled)(fbm_ui_1.Typography)(function (_a) {
14
13
  var theme = _a.theme;
15
14
  return ({
16
- color: theme.palette.primary.main,
17
- fontSize: 14,
15
+ fontSize: 24,
18
16
  marginLeft: 4,
19
17
  });
20
18
  });
@@ -25,7 +25,7 @@ var Index = function () {
25
25
  var _e = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult]; }), reportResult = _e.reportResult, showAiDimension = _e.showAiDimension;
26
26
  if (!showAiDimension || !((_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _a === void 0 ? void 0 : _a.show))
27
27
  return null;
28
- return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ id: "report-suggestion", component: mui_1.Paper, variant: "outlined", px: 2, mt: 2, pb: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1 }, { children: (0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "\u8003\u5BDF\u5EFA\u8BAE" }) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mt: 1 }, { children: (_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _b === void 0 ? void 0 : _b.text })), (0, jsx_runtime_1.jsx)(mui_1.Collapse, __assign({ in: true }, { children: (_d = (_c = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _c === void 0 ? void 0 : _c.abilitys) === null || _d === void 0 ? void 0 : _d.map(function (v) {
28
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ id: "report-suggestion", px: 2, mt: 2, pb: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1 }, { children: (0, jsx_runtime_1.jsx)(AiHeaderTitle_1.default, { name: "\u8003\u5BDF\u5EFA\u8BAE" }) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mt: 1 }, { children: (_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _b === void 0 ? void 0 : _b.text })), (0, jsx_runtime_1.jsx)(mui_1.Collapse, __assign({ in: true }, { children: (_d = (_c = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _c === void 0 ? void 0 : _c.abilitys) === null || _d === void 0 ? void 0 : _d.map(function (v) {
29
29
  return (0, jsx_runtime_1.jsx)(Suggestion_1.default, { abilityName: v.abilityName, interviewQuestion: v.interviewQuestion, keyPoints: v.keyPoints }, v.abilityName);
30
30
  }) }))] })));
31
31
  };