eli-video-interview 1.2.42-alpha.9 → 1.5.0

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 (181) hide show
  1. package/esm/components/AiHeaderTitle/index.js +2 -10
  2. package/esm/components/AiHeaderTitleV2/index.d.ts +4 -0
  3. package/esm/components/AiHeaderTitleV2/index.js +39 -0
  4. package/esm/components/AiHeaderTitleV2/interface.d.ts +4 -0
  5. package/esm/components/AiHeaderTitleV2/interface.js +1 -0
  6. package/esm/components/Charts/ReportPie.js +13 -3
  7. package/esm/components/Charts/const.js +3 -3
  8. package/esm/components/ScoreBigBall/index.js +1 -1
  9. package/esm/constants/ai-question.d.ts +1 -1
  10. package/esm/constants/ai-question.js +3 -3
  11. package/esm/enum/ai-question.d.ts +11 -1
  12. package/esm/enum/ai-question.js +10 -0
  13. package/esm/modules/ai-ability/components/AbilityFormItem/index.js +11 -46
  14. package/esm/modules/ai-ability/components/AddAbility/index.js +2 -20
  15. package/esm/modules/ai-ability/components/UpdateAbility/index.js +6 -37
  16. package/esm/modules/ai-ability-select/Root.js +4 -2
  17. package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +2 -2
  18. package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +2 -1
  19. package/esm/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +2 -2
  20. package/esm/modules/ai-ability-select/components/AiAbilityItem/index.js +4 -4
  21. package/esm/modules/ai-ability-select/components/AiAbilityList/index.js +14 -2
  22. package/esm/modules/ai-ability-select/interface.d.ts +1 -0
  23. package/esm/modules/ai-question/Root.js +14 -14
  24. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +13 -4
  25. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +43 -0
  26. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +45 -2
  27. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +39 -42
  28. package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +1 -0
  29. package/esm/modules/ai-question/components/BaseAccordion/index.js +4 -4
  30. package/esm/modules/ai-question/components/BaseAccordion/interface.d.ts +3 -0
  31. package/esm/modules/ai-question/components/BootVideo/index.js +12 -5
  32. package/esm/modules/ai-question/components/QuestionImport/index.js +2 -2
  33. package/esm/modules/ai-question/components/QuestionModel/Item.js +3 -3
  34. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +6 -2
  35. package/esm/modules/ai-question/components/QuestionTemplate/index.js +1 -1
  36. package/esm/modules/ai-question/components/QuestionUpdate/AudioUploader.d.ts +6 -0
  37. package/esm/modules/ai-question/components/QuestionUpdate/AudioUploader.js +74 -0
  38. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +19 -7
  39. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +13 -3
  40. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +2 -2
  41. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +2 -1
  42. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +4 -4
  43. package/esm/modules/ai-question/components/QuestionUpdate/const.js +3 -1
  44. package/esm/modules/ai-question/components/QuestionUpdate/index.js +3 -2
  45. package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +6 -1
  46. package/esm/modules/ai-report/Root.js +6 -3
  47. package/esm/modules/ai-report/components/VideoQuestion/Video.d.ts +27 -0
  48. package/esm/modules/ai-report/components/VideoQuestion/Video.js +208 -0
  49. package/esm/modules/ai-report/interface.d.ts +2 -0
  50. package/esm/modules/ai-report/useAiReport.d.ts +2 -0
  51. package/esm/modules/ai-report/useAiReport.js +3 -1
  52. package/esm/modules/ai-report-v2/Root.d.ts +2 -2
  53. package/esm/modules/ai-report-v2/Root.js +18 -11
  54. package/esm/modules/ai-report-v2/components/AIEvaluate/Evaluate.d.ts +2 -4
  55. package/esm/modules/ai-report-v2/components/AIEvaluate/Evaluate.js +20 -20
  56. package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +13 -0
  57. package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.js +86 -24
  58. package/esm/modules/ai-report-v2/components/AIEvaluate/index.d.ts +2 -2
  59. package/esm/modules/ai-report-v2/components/AIEvaluate/index.js +11 -7
  60. package/esm/modules/ai-report-v2/components/Candidate/Interface.d.ts +3 -0
  61. package/esm/modules/ai-report-v2/components/Candidate/Podium.js +2 -2
  62. package/esm/modules/ai-report-v2/components/Form/Form.js +34 -13
  63. package/esm/modules/ai-report-v2/components/Form/Nps.d.ts +1 -1
  64. package/esm/modules/ai-report-v2/components/Form/Nps.js +2 -0
  65. package/esm/modules/ai-report-v2/components/NotFinish/index.js +13 -5
  66. package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.d.ts +4 -2
  67. package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +28 -10
  68. package/esm/modules/ai-report-v2/components/Suggestion/index.js +1 -1
  69. package/esm/modules/ai-report-v2/components/VideoQuestion/Evaluate.d.ts +11 -0
  70. package/esm/modules/ai-report-v2/components/VideoQuestion/Evaluate.js +79 -0
  71. package/esm/modules/ai-report-v2/components/VideoQuestion/QuestionItem.js +49 -32
  72. package/esm/modules/ai-report-v2/components/VideoQuestion/Workplaces.d.ts +9 -5
  73. package/esm/modules/ai-report-v2/components/VideoQuestion/Workplaces.js +71 -6
  74. package/esm/modules/ai-report-v2/components/VideoQuestion/index.d.ts +6 -3
  75. package/esm/modules/ai-report-v2/components/VideoQuestion/index.js +6 -4
  76. package/esm/modules/ai-report-v2/components/VideoQuestion/interface.d.ts +1 -0
  77. package/esm/modules/ai-report-v2/components/VideoQuestion/styled.js +2 -2
  78. package/esm/modules/ai-report-v2/components/WorkPlaces/index.js +1 -1
  79. package/esm/modules/ai-report-v2/components/styled.d.ts +4 -1
  80. package/esm/modules/ai-report-v2/components/styled.js +14 -3
  81. package/esm/modules/ai-report-v2/interface.d.ts +4 -1
  82. package/esm/modules/ai-report-v2/useAiReport.d.ts +4 -0
  83. package/esm/modules/ai-report-v2/useAiReport.js +3 -1
  84. package/esm/modules/ai-report-v2/useAiReportVersion.d.ts +5 -0
  85. package/esm/modules/ai-report-v2/useAiReportVersion.js +37 -0
  86. package/esm/services/ai-report.d.ts +10 -0
  87. package/esm/services/ai-report.js +2 -0
  88. package/esm/store/ai-question/ai-analysis-store.d.ts +3 -1
  89. package/esm/store/ai-question/ai-analysis-store.js +26 -1
  90. package/esm/store/ai-report/global-store.d.ts +3 -0
  91. package/lib/components/AiHeaderTitle/index.js +1 -9
  92. package/lib/components/AiHeaderTitleV2/index.d.ts +4 -0
  93. package/lib/components/AiHeaderTitleV2/index.js +41 -0
  94. package/lib/components/AiHeaderTitleV2/interface.d.ts +4 -0
  95. package/lib/components/AiHeaderTitleV2/interface.js +2 -0
  96. package/lib/components/Charts/ReportPie.js +13 -3
  97. package/lib/components/Charts/const.js +3 -3
  98. package/lib/components/ScoreBigBall/index.js +1 -1
  99. package/lib/constants/ai-question.d.ts +1 -1
  100. package/lib/constants/ai-question.js +3 -3
  101. package/lib/enum/ai-question.d.ts +11 -1
  102. package/lib/enum/ai-question.js +10 -0
  103. package/lib/modules/ai-ability/components/AbilityFormItem/index.js +13 -45
  104. package/lib/modules/ai-ability/components/AddAbility/index.js +2 -20
  105. package/lib/modules/ai-ability/components/UpdateAbility/index.js +6 -37
  106. package/lib/modules/ai-ability-select/Root.js +4 -2
  107. package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +2 -2
  108. package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +2 -1
  109. package/lib/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +2 -2
  110. package/lib/modules/ai-ability-select/components/AiAbilityItem/index.js +4 -4
  111. package/lib/modules/ai-ability-select/components/AiAbilityList/index.js +14 -2
  112. package/lib/modules/ai-ability-select/interface.d.ts +1 -0
  113. package/lib/modules/ai-question/Root.js +14 -14
  114. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +12 -3
  115. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +43 -0
  116. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +46 -3
  117. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +36 -39
  118. package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +1 -0
  119. package/lib/modules/ai-question/components/BaseAccordion/index.js +4 -4
  120. package/lib/modules/ai-question/components/BaseAccordion/interface.d.ts +3 -0
  121. package/lib/modules/ai-question/components/BootVideo/index.js +12 -5
  122. package/lib/modules/ai-question/components/QuestionImport/index.js +2 -2
  123. package/lib/modules/ai-question/components/QuestionModel/Item.js +3 -3
  124. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +5 -1
  125. package/lib/modules/ai-question/components/QuestionTemplate/index.js +1 -1
  126. package/lib/modules/ai-question/components/QuestionUpdate/AudioUploader.d.ts +6 -0
  127. package/lib/modules/ai-question/components/QuestionUpdate/AudioUploader.js +76 -0
  128. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +20 -8
  129. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +12 -2
  130. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +2 -2
  131. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +2 -1
  132. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +4 -4
  133. package/lib/modules/ai-question/components/QuestionUpdate/const.js +3 -1
  134. package/lib/modules/ai-question/components/QuestionUpdate/index.js +3 -2
  135. package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +6 -1
  136. package/lib/modules/ai-report/Root.js +6 -3
  137. package/lib/modules/ai-report/components/VideoQuestion/Video.d.ts +27 -0
  138. package/lib/modules/ai-report/components/VideoQuestion/Video.js +213 -0
  139. package/lib/modules/ai-report/interface.d.ts +2 -0
  140. package/lib/modules/ai-report/useAiReport.d.ts +2 -0
  141. package/lib/modules/ai-report/useAiReport.js +6 -1
  142. package/lib/modules/ai-report-v2/Root.d.ts +2 -2
  143. package/lib/modules/ai-report-v2/Root.js +16 -9
  144. package/lib/modules/ai-report-v2/components/AIEvaluate/Evaluate.d.ts +2 -4
  145. package/lib/modules/ai-report-v2/components/AIEvaluate/Evaluate.js +17 -17
  146. package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +13 -0
  147. package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.js +88 -23
  148. package/lib/modules/ai-report-v2/components/AIEvaluate/index.d.ts +2 -2
  149. package/lib/modules/ai-report-v2/components/AIEvaluate/index.js +11 -7
  150. package/lib/modules/ai-report-v2/components/Candidate/Interface.d.ts +3 -0
  151. package/lib/modules/ai-report-v2/components/Candidate/Podium.js +1 -1
  152. package/lib/modules/ai-report-v2/components/Form/Form.js +34 -13
  153. package/lib/modules/ai-report-v2/components/Form/Nps.d.ts +1 -1
  154. package/lib/modules/ai-report-v2/components/Form/Nps.js +2 -0
  155. package/lib/modules/ai-report-v2/components/NotFinish/index.js +12 -4
  156. package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.d.ts +4 -2
  157. package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +27 -9
  158. package/lib/modules/ai-report-v2/components/Suggestion/index.js +2 -2
  159. package/lib/modules/ai-report-v2/components/VideoQuestion/Evaluate.d.ts +11 -0
  160. package/lib/modules/ai-report-v2/components/VideoQuestion/Evaluate.js +81 -0
  161. package/lib/modules/ai-report-v2/components/VideoQuestion/QuestionItem.js +46 -29
  162. package/lib/modules/ai-report-v2/components/VideoQuestion/Workplaces.d.ts +9 -5
  163. package/lib/modules/ai-report-v2/components/VideoQuestion/Workplaces.js +69 -4
  164. package/lib/modules/ai-report-v2/components/VideoQuestion/index.d.ts +6 -3
  165. package/lib/modules/ai-report-v2/components/VideoQuestion/index.js +6 -4
  166. package/lib/modules/ai-report-v2/components/VideoQuestion/interface.d.ts +1 -0
  167. package/lib/modules/ai-report-v2/components/VideoQuestion/styled.js +2 -2
  168. package/lib/modules/ai-report-v2/components/WorkPlaces/index.js +2 -2
  169. package/lib/modules/ai-report-v2/components/styled.d.ts +4 -1
  170. package/lib/modules/ai-report-v2/components/styled.js +18 -4
  171. package/lib/modules/ai-report-v2/interface.d.ts +4 -1
  172. package/lib/modules/ai-report-v2/useAiReport.d.ts +4 -0
  173. package/lib/modules/ai-report-v2/useAiReport.js +6 -1
  174. package/lib/modules/ai-report-v2/useAiReportVersion.d.ts +5 -0
  175. package/lib/modules/ai-report-v2/useAiReportVersion.js +41 -0
  176. package/lib/services/ai-report.d.ts +10 -0
  177. package/lib/services/ai-report.js +5 -1
  178. package/lib/store/ai-question/ai-analysis-store.d.ts +3 -1
  179. package/lib/store/ai-question/ai-analysis-store.js +26 -1
  180. package/lib/store/ai-report/global-store.d.ts +3 -0
  181. package/package.json +4 -2
@@ -26,7 +26,9 @@ var mui_1 = require("fbm-ui/lib/mui");
26
26
  var react_1 = require("react");
27
27
  var ScrollDialogContent = (0, fbm_ui_2.styled)(fbm_ui_1.Box)({
28
28
  maxHeight: 'calc(100vh - 192px)',
29
- overflow: 'scroll',
29
+ height: 'calc(100vh - 192px)',
30
+ overflow: 'hidden',
31
+ paddingBottom: 80,
30
32
  });
31
33
  var AiAbilitySelectRoot = (0, react_1.forwardRef)(function (_a, ref) {
32
34
  var jobToken = _a.jobToken, thirdToken = _a.thirdToken, token = _a.token, hiddenTips = _a.hiddenTips;
@@ -46,7 +48,7 @@ var AiAbilitySelectRoot = (0, react_1.forwardRef)(function (_a, ref) {
46
48
  setEnterprise({ jobToken: jobToken, thirdToken: thirdToken });
47
49
  // eslint-disable-next-line react-hooks/exhaustive-deps
48
50
  }, [jobToken, thirdToken]);
49
- return ((0, jsx_runtime_1.jsx)(ScrollDialogContent, __assign({ ref: ref }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", flexDirection: "column", width: 760 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 2, mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: !hiddenTips ? '请选择要优先使用的考察能力,也可以点击「下一步」直接出题' : '已选择的考察能力会优先在面试题目中展示' })), (aiAbilityList === null || aiAbilityList === void 0 ? void 0 : aiAbilityList.some(function (v) { return v.isNew; })) && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", spacing: 1, alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)("img", { src: "//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn", alt: "", width: 38, height: 16 }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "textSecondary" }, { children: "AI\u6839\u636E\u5C97\u4F4D\u4FE1\u606F\u751F\u6210\u7684\u80FD\u529B\uFF0C\u521B\u5EFA\u5B8C\u6B65\u9AA4\u540E\uFF0C\u4F1A\u81EA\u52A8\u5C06\u9009\u62E9\u7684\u65B0\u589E\u80FD\u529B\u52A0\u5165\u5230\u8BBE\u7F6E\u9875\u7684\u8003\u5BDF\u80FD\u529B\u5217\u8868\u4E2D\u3002" }))] })))] })), (0, jsx_runtime_1.jsx)(AiAbilityList_1.default, { items: aiAbilityList })] })) })));
51
+ return ((0, jsx_runtime_1.jsx)(ScrollDialogContent, __assign({ ref: ref }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", flexDirection: "column", width: 760, height: 1 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 2, mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: !hiddenTips ? '请选择要优先使用的考察能力,也可以点击「下一步」直接出题' : '已选择的考察能力会优先在面试题目中展示' })), (aiAbilityList === null || aiAbilityList === void 0 ? void 0 : aiAbilityList.some(function (v) { return v.isNew; })) && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", spacing: 1, alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)("img", { src: "//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn", alt: "", width: 38, height: 16 }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "textSecondary" }, { children: "AI\u6839\u636E\u5C97\u4F4D\u4FE1\u606F\u751F\u6210\u7684\u80FD\u529B\uFF0C\u521B\u5EFA\u5B8C\u6B65\u9AA4\u540E\uFF0C\u4F1A\u81EA\u52A8\u5C06\u9009\u62E9\u7684\u65B0\u589E\u80FD\u529B\u52A0\u5165\u5230\u8BBE\u7F6E\u9875\u7684\u8003\u5BDF\u80FD\u529B\u5217\u8868\u4E2D\u3002" }))] })))] })), (0, jsx_runtime_1.jsx)(AiAbilityList_1.default, { items: aiAbilityList })] })) })));
50
52
  });
51
53
  AiAbilitySelectRoot.displayName = 'AiAbilitySelectRoot';
52
54
  exports.default = (0, react_1.memo)(AiAbilitySelectRoot);
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { AiAbilityDetailProps } from './interface';
3
- declare const AiAbilityDetail: React.FC<AiAbilityDetailProps>;
4
- export default AiAbilityDetail;
3
+ declare const _default: import("react").NamedExoticComponent<AiAbilityDetailProps>;
4
+ export default _default;
@@ -14,6 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  var jsx_runtime_1 = require("react/jsx-runtime");
15
15
  var fbm_ui_1 = require("fbm-ui");
16
16
  var mui_1 = require("fbm-ui/lib/mui");
17
+ var react_1 = require("react");
17
18
  var AiAbilityDetail = function (_a) {
18
19
  var detail = _a.detail;
19
20
  return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ p: 2, maxHeight: 582, overflow: "scroll" }, { children: detail === null || detail === void 0 ? void 0 : detail.map(function (v) {
@@ -21,4 +22,4 @@ var AiAbilityDetail = function (_a) {
21
22
  return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ mb: 2, spacing: 1, width: 300 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: v.name })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: (_a = v.items) === null || _a === void 0 ? void 0 : _a.join('\n') }))] }), v.name));
22
23
  }) })));
23
24
  };
24
- exports.default = AiAbilityDetail;
25
+ exports.default = (0, react_1.memo)(AiAbilityDetail);
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { AiAbilityItemProps } from './interface';
3
- declare const AiAbilityItem: React.FC<AiAbilityItemProps>;
4
- export default AiAbilityItem;
3
+ declare const _default: import("react").NamedExoticComponent<AiAbilityItemProps>;
4
+ export default _default;
@@ -44,15 +44,14 @@ var AiAbilityDetail_1 = __importDefault(require("./AiAbilityDetail"));
44
44
  var styled_1 = require("./styled");
45
45
  var question_ability_store_1 = require("../../../../store/ai-ability-select/question-ability-store");
46
46
  var fbm_ui_1 = require("fbm-ui");
47
+ var react_1 = require("react");
47
48
  var AiAbilityItem = function (_a) {
48
49
  var name = _a.name, isNew = _a.isNew, token = _a.token, detail = _a.detail;
49
50
  var _b = (0, question_ability_store_1.useAiAbilityListStore)(), selctedAbilitys = _b.selctedAbilitys, setSelctedAbilitys = _b.setSelctedAbilitys;
50
51
  var handleChange = function (_, checked) {
51
52
  return setSelctedAbilitys(__spreadArray(__spreadArray([], __read(selctedAbilitys.filter(function (v) { return v !== token; })), false), __read((checked ? [token] : [])), false));
52
53
  };
53
- return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Paper, __assign({ variant: "outlined" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: { pl: 2, width: 240, height: 54, display: 'flex', alignItems: 'center', position: 'relative' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Checkbox, { onChange: handleChange, label: (0, jsx_runtime_1.jsx)(AiAbilityLable, { name: name, detail: detail }), checked: selctedAbilitys.includes(token),
54
- // @ts-ignore
55
- sx: { width: 1, height: 1 } }), isNew && (0, jsx_runtime_1.jsx)(styled_1.NewBadge, { src: "//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn" })] })) })));
54
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Paper, __assign({ variant: "outlined" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: { pl: 2, width: 240, height: 54, display: 'flex', alignItems: 'center', position: 'relative' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Checkbox, { onChange: handleChange, label: (0, jsx_runtime_1.jsx)(MemoAiAbilityLable, { name: name, detail: detail }), checked: selctedAbilitys.includes(token), sx: { width: 1, height: 1 } }), isNew && (0, jsx_runtime_1.jsx)(styled_1.NewBadge, { src: "//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn" })] })) })));
56
55
  };
57
56
  var AiAbilityLable = function (_a) {
58
57
  var name = _a.name, detail = _a.detail;
@@ -60,4 +59,5 @@ var AiAbilityLable = function (_a) {
60
59
  return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ content: (0, jsx_runtime_1.jsx)(AiAbilityDetail_1.default, { detail: detail }), trigger: "hover", placement: "right" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ noWrap: true, maxWidth: 180, variant: "body2", sx: { mt: 0.5 } }, { children: name })) })));
61
60
  return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ noWrap: true, maxWidth: 180, variant: "body2" }, { children: name })));
62
61
  };
63
- exports.default = AiAbilityItem;
62
+ var MemoAiAbilityLable = (0, react_1.memo)(AiAbilityLable);
63
+ exports.default = (0, react_1.memo)(AiAbilityItem);
@@ -16,9 +16,21 @@ 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 AiAbilityItem_1 = __importDefault(require("../AiAbilityItem"));
19
- var fbm_ui_1 = require("fbm-ui");
19
+ var react_virtualized_auto_sizer_1 = __importDefault(require("react-virtualized-auto-sizer"));
20
+ var react_window_1 = require("react-window");
21
+ var Cell = function (_a) {
22
+ var data = _a.data, columnIndex = _a.columnIndex, rowIndex = _a.rowIndex, style = _a.style;
23
+ var item = data[rowIndex * 3 + columnIndex];
24
+ if (!item) {
25
+ return null;
26
+ }
27
+ return ((0, jsx_runtime_1.jsx)("div", __assign({ style: __assign(__assign({}, style), { width: style.width - 8, height: style.height - 8 }) }, { children: (0, jsx_runtime_1.jsx)(AiAbilityItem_1.default, __assign({}, item)) })));
28
+ };
20
29
  var AiAbilityList = function (_a) {
21
30
  var items = _a.items;
22
- return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Grid, __assign({ container: true, spacing: 1, rowSpacing: 1, columnSpacing: 1 }, { children: items === null || items === void 0 ? void 0 : items.map(function (item) { return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Grid, __assign({ item: true }, { children: (0, jsx_runtime_1.jsx)(AiAbilityItem_1.default, __assign({}, item)) }), item.token)); }) })));
31
+ return ((0, jsx_runtime_1.jsx)(react_virtualized_auto_sizer_1.default, { children: function (_a) {
32
+ var height = _a.height, width = _a.width;
33
+ return ((0, jsx_runtime_1.jsx)(react_window_1.FixedSizeGrid, __assign({ columnCount: 3, columnWidth: 240, overscanRowCount: 10, height: height, rowCount: Math.ceil(items.length / 3), rowHeight: 62, width: width, itemData: items }, { children: Cell })));
34
+ } }));
23
35
  };
24
36
  exports.default = AiAbilityList;
@@ -22,6 +22,7 @@ export interface AiAbility extends AiAbilityDetail {
22
22
  token: string;
23
23
  selected?: boolean;
24
24
  type: number;
25
+ child?: AiAbility[];
25
26
  }
26
27
  export declare type AiAbilityItemProps = AiAbility;
27
28
  export interface AiAbilityListData {
@@ -114,7 +114,7 @@ var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
114
114
  _d.label = 2;
115
115
  case 2:
116
116
  _d.trys.push([2, 4, , 5]);
117
- return [4 /*yield*/, (0, ai_question_1.PostAiModelUpsert)(__assign(__assign({ name: name, thirdToken: '', aiModel: (props === null || props === void 0 ? void 0 : props.aiModel) || aiModel }, interviewRoomState), { introductoryVideoSetting: {}, selectAbilities: selctedAbilitys, token: token, questions: questions }))];
117
+ return [4 /*yield*/, (0, ai_question_1.PostAiModelUpsert)(__assign(__assign({ name: name, thirdToken: '', aiModel: (props === null || props === void 0 ? void 0 : props.aiModel) || aiModel }, interviewRoomState), { introductoryVideoSetting: {}, selectAbilities: selctedAbilitys, token: token, questions: questions.map(function (item, i) { return (__assign(__assign({}, item), { selfIntroOpt: i < 2 ? item.selfIntroOpt : 0 })); }) }))];
118
118
  case 3:
119
119
  data = (_d.sent()).data;
120
120
  return [2 /*return*/, Promise.resolve({
@@ -138,19 +138,19 @@ var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
138
138
  }
139
139
  // eslint-disable-next-line react-hooks/exhaustive-deps
140
140
  }, [props]);
141
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: {
142
- display: 'flex',
143
- height: '100%',
144
- position: 'relative',
145
- } }, { children: [(0, jsx_runtime_1.jsx)(QuestionPreview_1.default, {}), (0, jsx_runtime_1.jsx)(ai_analysis_store_1.AiAnalysisStoreProvider, { children: (0, jsx_runtime_1.jsx)(QuestionUpdate_1.default, {}) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: {
146
- flex: '1 0',
147
- height: '100%',
148
- overflow: 'auto',
149
- } }, { children: (0, jsx_runtime_1.jsx)(QuestionModel_1.default, {}) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: {
150
- width: '256px',
151
- height: '100%',
152
- overflow: 'auto',
153
- } }, { children: (0, jsx_runtime_1.jsx)(QuestionTemplate_1.default, { isOem: isOem }) }))] })));
141
+ return ((0, jsx_runtime_1.jsx)(ai_analysis_store_1.AiAnalysisStoreProvider, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: {
142
+ display: 'flex',
143
+ height: '100%',
144
+ position: 'relative',
145
+ } }, { children: [(0, jsx_runtime_1.jsx)(QuestionPreview_1.default, {}), (0, jsx_runtime_1.jsx)(QuestionUpdate_1.default, {}), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: {
146
+ flex: '1 0',
147
+ height: '100%',
148
+ overflow: 'auto',
149
+ } }, { children: (0, jsx_runtime_1.jsx)(QuestionModel_1.default, {}) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: {
150
+ width: '256px',
151
+ height: '100%',
152
+ overflow: 'auto',
153
+ } }, { children: (0, jsx_runtime_1.jsx)(QuestionTemplate_1.default, { isOem: isOem }) }))] })) }));
154
154
  });
155
155
  AiQuestionRoot.displayName = 'AiQuestionRoot';
156
156
  exports.default = (0, react_1.memo)(AiQuestionRoot);
@@ -24,8 +24,10 @@ var immutability_helper_1 = __importDefault(require("immutability-helper"));
24
24
  var react_1 = require("react");
25
25
  var AnalysisItem = function (props) {
26
26
  var _a;
27
- var name = props.name, weight = props.weight, type = props.type, extra = props.extra, index = props.index, _b = props.abilityType, abilityType = _b === void 0 ? 1 : _b, isWorkplace = props.isWorkplace;
28
- var _c = (0, ai_analysis_store_1.useAiAnalysisStore)(function (store) { return [store.aiAbilities]; }), aiAbilities = _c.aiAbilities, updateAiAbilities = _c.updateAiAbilities, updateAiAbilitiesWeight = _c.updateAiAbilitiesWeight, removeAiAbilities = _c.removeAiAbilities;
27
+ var name = props.name, weight = props.weight, type = props.type, extra = props.extra, index = props.index, _b = props.abilityType, abilityType = _b === void 0 ? 1 : _b, isWorkplace = props.isWorkplace, child = props.child;
28
+ var _c = (0, ai_analysis_store_1.useAiAnalysisStore)(function (store) { return [
29
+ store.aiAbilities,
30
+ ]; }), aiAbilities = _c.aiAbilities, updateAiAbilities = _c.updateAiAbilities, updateAiAbilitiesWeight = _c.updateAiAbilitiesWeight, removeAiAbilities = _c.removeAiAbilities, updateAiAbilitiesChildWeight = _c.updateAiAbilitiesChildWeight;
29
31
  var desc = props.desc || props.name;
30
32
  var NotUsedAilibity = ['英文能力', '游戏测评'];
31
33
  if (abilityType === 2 && !isWorkplace) {
@@ -44,6 +46,13 @@ var AnalysisItem = function (props) {
44
46
  var value = _a.target.value;
45
47
  updateAiAbilitiesWeight(value, index);
46
48
  }, [updateAiAbilitiesWeight, index]);
47
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsxs)(mui_1.ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: (0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ size: "small", sx: { position: 'relative', left: 16 }, onClick: handleRemove }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.CloseIcon, {}) })) }, { children: [(0, jsx_runtime_1.jsx)(mui_1.ListItemText, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "subtitle2", style: { maxWidth: '158px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' } }, { children: name })), abilityType === 2 && !isWorkplace ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [abilityType === 2 && isWorkplace && type === 3 && (0, jsx_runtime_1.jsx)(fbm_ui_1.Chip, { color: 'primary', label: '自定义', size: "small", sx: { ml: 1 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: "".concat(desc), placement: "bottom-start" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1 } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoIcon, { sx: { color: 'rgba(0, 0, 0, 0.26)', fontSize: 16 } }) })) }))] })), type === 8 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Select, { sx: { width: 150, ml: 1 }, options: const_1.willOrNotOptions, value: (_a = JSON.parse(extra)) === null || _a === void 0 ? void 0 : _a.expect, size: "small", onChange: handleWillOrNotChange }))] })) }), (abilityType === 1 || (abilityType === 2 && isWorkplace)) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Input, { sx: { width: 84, mr: 1 }, value: weight, disabled: index === aiAbilities.length - 1, size: "small", endAdornment: "%", onChange: handleWeightChange }))] })), type === 6 && (0, jsx_runtime_1.jsx)(MainPoints_1.default, { extra: extra, index: index })] }));
49
+ return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsxs)(mui_1.ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: (0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ size: "small", sx: { position: 'relative', left: 16 }, onClick: handleRemove }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.CloseIcon, {}) })) }, { children: [(0, jsx_runtime_1.jsx)(mui_1.ListItemText, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "subtitle2", style: { maxWidth: '158px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' } }, { children: name })), abilityType === 2 && !isWorkplace ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [abilityType === 2 && isWorkplace && type === 3 && (0, jsx_runtime_1.jsx)(fbm_ui_1.Chip, { color: 'primary', label: '自定义', size: "small", sx: { ml: 1 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: "".concat(desc), placement: "bottom-start" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1 } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoIcon, { sx: { color: 'rgba(0, 0, 0, 0.26)', fontSize: 16 } }) })) }))] })), type === 8 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Select, { sx: { width: 150, ml: 1 }, options: const_1.willOrNotOptions, value: (_a = JSON.parse(extra)) === null || _a === void 0 ? void 0 : _a.expect, size: "small", onChange: handleWillOrNotChange }))] })) }), (abilityType === 1 || (abilityType === 2 && isWorkplace)) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Input, { sx: { width: 84, mr: 1 }, value: weight, disabled: index === aiAbilities.length - 1, size: "small", endAdornment: "%", onChange: handleWeightChange }))] })), ((child === null || child === void 0 ? void 0 : child.length) || 0) > 0 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ sx: {
50
+ backgroundColor: 'rgba(0, 0, 0, 0.04)',
51
+ pl: 2,
52
+ pt: 1,
53
+ } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "textSecondary" }, { children: "\u4E13\u4E1A\u7248\u62A5\u544A\u4E2D\u5F97\u5206\u4F1A\u91C7\u7528AI\u7EFC\u5408\u5206\u6570\u548C\u5F97\u5206\u70B9\u5206\u6570\u7684\u590D\u5408\u5206\uFF0C\u6807\u51C6\u7248\u53EA\u6709AI\u7EFC\u5408\u5206\u3002" })), child === null || child === void 0 ? void 0 : child.map(function (item, index) { return ((0, jsx_runtime_1.jsxs)(mui_1.ListItem, __assign({ sx: { pl: 0, pr: 4, ml: 2 } }, { children: [(0, jsx_runtime_1.jsx)(mui_1.ListItemText, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "subtitle2", style: { maxWidth: '158px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' } }, { children: item.name })) })) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Input, { sx: { width: 84, mr: 1 }, value: item.weight, disabled: index === child.length - 1, size: "small", endAdornment: "%", onChange: function (_a) {
54
+ var value = _a.target.value;
55
+ return updateAiAbilitiesChildWeight(value, index, index);
56
+ } })] }), item.token)); })] }))), type === 6 && (0, jsx_runtime_1.jsx)(MainPoints_1.default, { extra: extra, index: index })] }));
48
57
  };
49
58
  exports.default = AnalysisItem;
@@ -3,6 +3,16 @@ export declare const LANGUAGE_NAMES: {
3
3
  2: string;
4
4
  3: string;
5
5
  4: string;
6
+ 5: string;
7
+ 6: string;
8
+ 7: string;
9
+ 8: string;
10
+ 9: string;
11
+ 10: string;
12
+ 11: string;
13
+ 12: string;
14
+ 13: string;
15
+ 14: string;
6
16
  };
7
17
  export declare const CATEGORY_NAME: {
8
18
  1: string;
@@ -16,10 +26,43 @@ export declare const SERVER_LANGUAGE_TYPE: {
16
26
  12: number;
17
27
  11: number;
18
28
  13: number;
29
+ 19: number;
30
+ 20: number;
31
+ 21: number;
32
+ 22: number;
33
+ 23: number;
34
+ 24: number;
35
+ 25: number;
36
+ 26: number;
37
+ 27: number;
38
+ 28: number;
19
39
  };
20
40
  export declare const LANGUAGE_SHOW_NAME: {
21
41
  2: string;
22
42
  13: string;
23
43
  12: string;
24
44
  11: string;
45
+ 19: string;
46
+ 20: string;
47
+ };
48
+ export declare const LANGUAGE_SHOW_NAMES: {
49
+ 1: string;
50
+ 2: string;
51
+ 3: string;
52
+ 4: string;
53
+ 5: string;
54
+ 6: string;
55
+ 7: string;
56
+ 8: string;
57
+ 9: string;
58
+ 10: string;
59
+ 11: string;
60
+ 12: string;
61
+ 13: string;
62
+ 14: string;
25
63
  };
64
+ export declare const LANGUAGE_SHOW_NAMES_ORDER: number[];
65
+ export declare const VOICE_LANGUAGE_OPTIONS: {
66
+ value: number;
67
+ label: any;
68
+ }[];
@@ -1,18 +1,28 @@
1
1
  "use strict";
2
2
  var _a, _b;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.LANGUAGE_SHOW_NAME = exports.SERVER_LANGUAGE_TYPE = exports.CATEGORY_NAME = exports.LANGUAGE_NAMES = void 0;
4
+ exports.VOICE_LANGUAGE_OPTIONS = exports.LANGUAGE_SHOW_NAMES_ORDER = exports.LANGUAGE_SHOW_NAMES = exports.LANGUAGE_SHOW_NAME = exports.SERVER_LANGUAGE_TYPE = exports.CATEGORY_NAME = exports.LANGUAGE_NAMES = void 0;
5
5
  var ai_question_1 = require("../../../../enum/ai-question");
6
- var MANDARIN = ai_question_1.LANGUAGE_TYPE.MANDARIN, CANTONESE = ai_question_1.LANGUAGE_TYPE.CANTONESE, JAPANESE = ai_question_1.LANGUAGE_TYPE.JAPANESE, ENGLISH = ai_question_1.LANGUAGE_TYPE.ENGLISH;
6
+ var MANDARIN = ai_question_1.LANGUAGE_TYPE.MANDARIN, CANTONESE = ai_question_1.LANGUAGE_TYPE.CANTONESE, JAPANESE = ai_question_1.LANGUAGE_TYPE.JAPANESE, ENGLISH = ai_question_1.LANGUAGE_TYPE.ENGLISH, KOREAN = ai_question_1.LANGUAGE_TYPE.KOREAN, SPANISH = ai_question_1.LANGUAGE_TYPE.SPANISH, ITALIAN = ai_question_1.LANGUAGE_TYPE.ITALIAN, RUSSIAN = ai_question_1.LANGUAGE_TYPE.RUSSIAN, FRENCH = ai_question_1.LANGUAGE_TYPE.FRENCH, GERMAN = ai_question_1.LANGUAGE_TYPE.GERMAN, THAILAND = ai_question_1.LANGUAGE_TYPE.THAILAND, VIETNAMESE = ai_question_1.LANGUAGE_TYPE.VIETNAMESE, INDONESIAN = ai_question_1.LANGUAGE_TYPE.INDONESIAN, SWAHILI = ai_question_1.LANGUAGE_TYPE.SWAHILI;
7
7
  var LANGUAGE = ai_question_1.CATEGORY_TYPE.LANGUAGE, SEMANTICS = ai_question_1.CATEGORY_TYPE.SEMANTICS, EXPRESSION = ai_question_1.CATEGORY_TYPE.EXPRESSION, FORM = ai_question_1.CATEGORY_TYPE.FORM, LANGUAGE_ABILITY = ai_question_1.CATEGORY_TYPE.LANGUAGE_ABILITY;
8
8
  exports.LANGUAGE_NAMES = {
9
9
  1: '中文-普通话',
10
10
  2: '日语',
11
11
  3: '英语',
12
12
  4: '中文-粤语',
13
+ 5: '韩语',
14
+ 6: '西班牙语',
15
+ 7: '意大利语',
16
+ 8: '俄语',
17
+ 9: '法语',
18
+ 10: '德语',
19
+ 11: '泰语',
20
+ 12: '越南语',
21
+ 13: '印尼语',
22
+ 14: '斯瓦希里语',
13
23
  };
14
24
  exports.CATEGORY_NAME = (_a = {},
15
- _a[LANGUAGE] = '语种',
25
+ _a[LANGUAGE] = '候选人语种',
16
26
  _a[SEMANTICS] = '语意',
17
27
  _a[EXPRESSION] = '表达',
18
28
  _a[FORM] = '形象',
@@ -23,6 +33,16 @@ exports.SERVER_LANGUAGE_TYPE = (_b = {},
23
33
  _b[JAPANESE] = 2,
24
34
  _b[ENGLISH] = 3,
25
35
  _b[CANTONESE] = 4,
36
+ _b[KOREAN] = 5,
37
+ _b[SPANISH] = 6,
38
+ _b[ITALIAN] = 7,
39
+ _b[RUSSIAN] = 8,
40
+ _b[FRENCH] = 9,
41
+ _b[GERMAN] = 10,
42
+ _b[THAILAND] = 11,
43
+ _b[VIETNAMESE] = 12,
44
+ _b[INDONESIAN] = 13,
45
+ _b[SWAHILI] = 14,
26
46
  _b);
27
47
  // 由于语种value 和 name的映射不对应,这里用于前端显示 AI基础能力 中文|英文表达
28
48
  exports.LANGUAGE_SHOW_NAME = {
@@ -30,4 +50,27 @@ exports.LANGUAGE_SHOW_NAME = {
30
50
  13: '中文',
31
51
  12: '日语',
32
52
  11: '英文',
53
+ 19: '韩语',
54
+ 20: '西班牙',
33
55
  };
56
+ exports.LANGUAGE_SHOW_NAMES = {
57
+ 1: '普通话',
58
+ 2: '日语',
59
+ 3: '英语',
60
+ 4: '粤语',
61
+ 5: '韩语',
62
+ 6: '西班牙语',
63
+ 7: '意大利语',
64
+ 8: '俄语',
65
+ 9: '法语',
66
+ 10: '德语',
67
+ 11: '泰语',
68
+ 12: '越南语',
69
+ 13: '印尼语',
70
+ 14: '斯瓦希里语',
71
+ };
72
+ exports.LANGUAGE_SHOW_NAMES_ORDER = [1, 4, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
73
+ exports.VOICE_LANGUAGE_OPTIONS = exports.LANGUAGE_SHOW_NAMES_ORDER.map(function (ord) { return ({
74
+ value: ord,
75
+ label: exports.LANGUAGE_SHOW_NAMES[ord],
76
+ }); });
@@ -56,9 +56,10 @@ var AiAssessmentCriteria = function (props) {
56
56
  var _a = (0, ai_analysis_store_1.useAiAnalysisStore)(function (store) { return [store.aiAbilities, store.analysisState]; }), aiAbilities = _a.aiAbilities, analysisState = _a.analysisState, updateState = _a.updateState, updateAiAbilities = _a.updateAiAbilities;
57
57
  var _b = __read((0, react_1.useState)([]), 2), groupData = _b[0], setGroupData = _b[1];
58
58
  var _c = __read((0, react_1.useState)(1), 2), language = _c[0], setLanguage = _c[1];
59
- var _d = __read((0, react_1.useState)(false), 2), checkedChinese = _d[0], setCheckedChinese = _d[1];
60
- var _e = __read((0, react_1.useState)([]), 2), relatedAbilities = _e[0], setRelatedAbilities = _e[1];
61
- var _f = __read((0, ahooks_1.useSetState)({}), 2), checkAbilities = _f[0], setCheckAbilities = _f[1];
59
+ var _d = __read((0, react_1.useState)(1), 2), voiceLanguage = _d[0], setVoiceLanguage = _d[1];
60
+ var _e = __read((0, react_1.useState)(false), 2), checkedChinese = _e[0], setCheckedChinese = _e[1];
61
+ var _f = __read((0, react_1.useState)([]), 2), relatedAbilities = _f[0], setRelatedAbilities = _f[1];
62
+ var _g = __read((0, ahooks_1.useSetState)({}), 2), checkAbilities = _g[0], setCheckAbilities = _g[1];
62
63
  var loading = (0, ahooks_1.useRequest)(ai_question_2.PostAiAbilities, {
63
64
  manual: false,
64
65
  onSuccess: function (_a) {
@@ -69,6 +70,7 @@ var AiAssessmentCriteria = function (props) {
69
70
  return const_1.SERVER_LANGUAGE_TYPE[type] === (analysisState.language || language);
70
71
  }) || {}, type = _b.type, relatedAbilities = _b.relatedAbilities;
71
72
  setRelatedAbilities(relatedAbilities);
73
+ setVoiceLanguage(analysisState.voiceLanguage || 1);
72
74
  setLanguage(type || language);
73
75
  setCheckedChinese([MANDARIN, CANTONESE].includes(type || language));
74
76
  setGroupData(ret);
@@ -87,6 +89,7 @@ var AiAssessmentCriteria = function (props) {
87
89
  }, [setCheckAbilities]);
88
90
  var onLanguageChange = function (_a, list) {
89
91
  var value = _a.target.value;
92
+ console.log('value', value, list);
90
93
  var language = Number(value === '0' ? MANDARIN : value);
91
94
  var item = list.find(function (_a) {
92
95
  var type = _a.type;
@@ -98,7 +101,6 @@ var AiAssessmentCriteria = function (props) {
98
101
  fixSetCheckAbilities((_a = {}, _a[key] = undefined, _a));
99
102
  }
100
103
  });
101
- console.log(language);
102
104
  setLanguage(language);
103
105
  setCheckedChinese([MANDARIN, CANTONESE].includes(language));
104
106
  setRelatedAbilities(item === null || item === void 0 ? void 0 : item.relatedAbilities);
@@ -107,47 +109,42 @@ var AiAssessmentCriteria = function (props) {
107
109
  updateAiAbilities(__spreadArray(__spreadArray([], __read(aiAbilities.filter(function (v) { return v.isWorkplace; })), false), __read(Object.values(checkAbilities)
108
110
  .filter(function (item) { return item; })
109
111
  .sort(function (a, b) { return ((a === null || a === void 0 ? void 0 : a.sort) && (b === null || b === void 0 ? void 0 : b.sort) ? (a === null || a === void 0 ? void 0 : a.sort) - (b === null || b === void 0 ? void 0 : b.sort) : 0); })), false));
110
- updateState({ language: const_1.SERVER_LANGUAGE_TYPE[language], aiSwitch: 1 });
112
+ updateState({ language: const_1.SERVER_LANGUAGE_TYPE[language], aiSwitch: 1, voiceLanguage: voiceLanguage });
111
113
  onClose();
112
- }, [checkAbilities, aiAbilities, language, onClose, updateAiAbilities, updateState]);
114
+ }, [checkAbilities, aiAbilities, language, onClose, updateAiAbilities, updateState, voiceLanguage]);
113
115
  (0, react_1.useEffect)(function () {
114
116
  aiAbilities.forEach(function (item) {
115
117
  var _a;
116
118
  return fixSetCheckAbilities((_a = {}, _a[item.type] = item, _a));
117
119
  });
118
120
  }, [aiAbilities, fixSetCheckAbilities]);
119
- return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, title: "\u9009\u62E9 AI \u8003\u6838\u7EF4\u5EA6", size: "sm", okText: "\u786E\u8BA4", onClose: onClose, onOk: handleOk }, { children: (0, jsx_runtime_1.jsx)(ScrollDialogContent_1.default, { children: loading ? ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ height: 400 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Loading, { size: 40 }) }))) : (groupData.map(function (_a) {
120
- var name = _a.name, type = _a.type, list = _a.list;
121
- return ((0, jsx_runtime_1.jsxs)(mui_1.Box, { children: [(list.filter(function (_a) {
122
- var type = _a.type;
123
- return relatedAbilities === null || relatedAbilities === void 0 ? void 0 : relatedAbilities.includes(type);
124
- }).length > 0 || type === ai_question_1.CATEGORY_TYPE.LANGUAGE) && ((0, jsx_runtime_1.jsx)(mui_1.FormControl, { children: (0, jsx_runtime_1.jsxs)(mui_1.FormLabel, __assign({ component: "legend", style: { fontSize: 14, fontWeight: 400, color: 'rgba(0,0,0,0.86)' } }, { children: [type === ai_question_1.CATEGORY_TYPE.LANGUAGE ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ style: { fontSize: 16, fontWeight: 500 } }, { children: name }))) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { children: type === ai_question_1.CATEGORY_TYPE.EXPRESSION ? const_1.LANGUAGE_SHOW_NAME[language] + name : name })), type === ai_question_1.CATEGORY_TYPE.LANGUAGE && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "textSecondary", sx: { ml: 1 } }, { children: "\u4EE5\u6240\u9009\u8BED\u8A00\u8BC6\u522B\u5019\u9009\u4EBA\u56DE\u7B54\u5185\u5BB9\u5E76\u8F6C\u6362\u6587\u5B57" })))] })) })), type === ai_question_1.CATEGORY_TYPE.LANGUAGE ? ((0, jsx_runtime_1.jsxs)(mui_1.Box, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.RadioGroup, __assign({ sx: { mb: 1, ml: '4px' }, row: false, value: language, onChange: function (e) { return onLanguageChange(e, list); } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: "0", RadioProps: { checked: checkedChinese }, label: "\u4E2D\u6587" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.RadioGroup, __assign({ value: language, sx: { ml: 3 }, onChange: function (e) { return onLanguageChange(e, list); } }, { children: list
125
- .filter(function (_a) {
126
- var type = _a.type;
127
- return [MANDARIN, CANTONESE].includes(type);
128
- })
129
- .map(function (_a) {
130
- var name = _a.name, type = _a.type, token = _a.token;
131
- return checkedChinese && (0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: type, label: name }, token);
132
- }) })), list
133
- .filter(function (_a) {
134
- var type = _a.type;
135
- return ![MANDARIN, CANTONESE].includes(type);
136
- })
137
- .map(function (_a) {
138
- var name = _a.name, type = _a.type, token = _a.token;
139
- return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: type, label: name }, token));
140
- })] })), (0, jsx_runtime_1.jsx)(mui_1.Divider, { sx: { mb: 1 } }), (0, jsx_runtime_1.jsx)(mui_1.FormControl, { children: (0, jsx_runtime_1.jsx)(mui_1.FormLabel, __assign({ component: "legend", style: { fontSize: 16, color: 'rgba(0,0,0,0.86)', fontWeight: 500, marginBottom: 16 } }, { children: "AI\u57FA\u7840\u80FD\u529B" })) })] })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: list.map(function (item) {
141
- var name = item.name, desc = item.desc, type = item.type, token = item.token;
142
- if (relatedAbilities === null || relatedAbilities === void 0 ? void 0 : relatedAbilities.includes(type)) {
143
- var isLanguageAbility = [14, 15].includes(type);
144
- return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ padding: "4px 0 4px 4px", display: "flex", flexDirection: "column" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Checkbox, { checked: !!checkAbilities[type], label: isLanguageAbility ? desc : name, onChange: function (e, checked) {
145
- var _a;
146
- return fixSetCheckAbilities((_a = {}, _a[type] = checked ? item : undefined, _a));
147
- } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: "26px" }, { children: isLanguageAbility ? '' : desc }))] }), token));
148
- }
149
- return null;
150
- }) }))] }, "".concat(name, "-").concat(type)));
151
- })) }) })));
121
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, title: "\u9009\u62E9 AI \u8003\u6838\u7EF4\u5EA6", size: "sm", okText: "\u786E\u8BA4", onClose: onClose, onOk: handleOk }, { children: (0, jsx_runtime_1.jsx)(ScrollDialogContent_1.default, { children: loading ? ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ height: 400 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Loading, { size: 40 }) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 1, mb: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 1, direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: "\u9898\u76EE\u8BED\u79CD" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u4EE5\u6240\u9009\u8BED\u8A00\u8FDB\u884C\u8BFB\u9898" }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Select, { onChange: function (e) { return setVoiceLanguage(Number(e.target.value)); }, value: voiceLanguage, options: const_1.VOICE_LANGUAGE_OPTIONS, sx: {
122
+ width: 240,
123
+ } })] })), groupData.map(function (_a) {
124
+ var name = _a.name, type = _a.type, list = _a.list;
125
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Box, { children: [(list.filter(function (_a) {
126
+ var type = _a.type;
127
+ return relatedAbilities === null || relatedAbilities === void 0 ? void 0 : relatedAbilities.includes(type);
128
+ }).length > 0 || type === ai_question_1.CATEGORY_TYPE.LANGUAGE) && ((0, jsx_runtime_1.jsx)(mui_1.FormControl, { children: (0, jsx_runtime_1.jsx)(mui_1.FormLabel, __assign({ component: "legend", style: { fontSize: 14, fontWeight: 400, color: 'rgba(0,0,0,0.86)' } }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 1, direction: "row", alignItems: "center" }, { children: [type === ai_question_1.CATEGORY_TYPE.LANGUAGE ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ style: { fontSize: 16, fontWeight: 500 } }, { children: name }))) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { children: type === ai_question_1.CATEGORY_TYPE.EXPRESSION ? const_1.LANGUAGE_SHOW_NAME[language] + name : name })), type === ai_question_1.CATEGORY_TYPE.LANGUAGE && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "textSecondary", sx: { ml: 1 } }, { children: "\u4EE5\u6240\u9009\u8BED\u8A00\u8BC6\u522B\u5019\u9009\u4EBA\u56DE\u7B54\u5185\u5BB9\u5E76\u8F6C\u6362\u6587\u5B57" })))] })) })) })), type === ai_question_1.CATEGORY_TYPE.LANGUAGE ? ((0, jsx_runtime_1.jsxs)(mui_1.Box, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Select, { onChange: function (e) { return onLanguageChange(e, list); }, value: language, options: list.map(function (_a) {
129
+ var type = _a.type, name = _a.name;
130
+ return ({
131
+ value: type,
132
+ label: name,
133
+ });
134
+ }), sx: {
135
+ width: 240,
136
+ mt: 1,
137
+ } }), (0, jsx_runtime_1.jsx)(mui_1.Divider, { sx: { mb: 1 } }), (0, jsx_runtime_1.jsx)(mui_1.FormControl, { children: (0, jsx_runtime_1.jsx)(mui_1.FormLabel, __assign({ component: "legend", style: { fontSize: 16, color: 'rgba(0,0,0,0.86)', fontWeight: 500, marginBottom: 16 } }, { children: "AI\u57FA\u7840\u80FD\u529B" })) })] })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: list.map(function (item) {
138
+ var name = item.name, desc = item.desc, type = item.type, token = item.token;
139
+ if (relatedAbilities === null || relatedAbilities === void 0 ? void 0 : relatedAbilities.includes(type)) {
140
+ var isLanguageAbility = [14, 15].includes(type);
141
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ padding: "4px 0 4px 4px", display: "flex", flexDirection: "column" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Checkbox, { checked: !!checkAbilities[type], label: isLanguageAbility ? desc : name, onChange: function (e, checked) {
142
+ var _a;
143
+ return fixSetCheckAbilities((_a = {}, _a[type] = checked ? item : undefined, _a));
144
+ } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: "26px" }, { children: isLanguageAbility ? '' : desc }))] }), token));
145
+ }
146
+ return null;
147
+ }) }))] }, "".concat(name, "-").concat(type)));
148
+ })] })) }) })));
152
149
  };
153
150
  exports.default = AiAssessmentCriteria;
@@ -8,6 +8,7 @@ export interface AiAbilityItem extends BaseAiAbilityParams {
8
8
  groupId?: number;
9
9
  groupName?: string;
10
10
  isNotCompute?: boolean;
11
+ child?: AiAbilityItem[];
11
12
  }
12
13
  export interface WorkplaceItem {
13
14
  token: string;
@@ -43,7 +43,7 @@ var mui_1 = require("fbm-ui/lib/mui");
43
43
  var react_1 = require("react");
44
44
  var LANGUAGE_TYPE_LIST = [ai_question_2.LANGUAGE_TYPE.MANDARIN, ai_question_2.LANGUAGE_TYPE.CANTONESE, ai_question_2.LANGUAGE_TYPE.JAPANESE, ai_question_2.LANGUAGE_TYPE.ENGLISH];
45
45
  var BaseAccordion = function (props) {
46
- var name = props.name, positionName = props.positionName, list = props.list, index = props.index, isShowOnlyAITest = props.isShowOnlyAITest, _a = props.isShowDesc, isShowDesc = _a === void 0 ? false : _a, _b = props.isShowSummaryAction, isShowSummaryAction = _b === void 0 ? false : _b, _c = props.isShowConfirm, isShowConfirm = _c === void 0 ? false : _c, _d = props.isShowPreview, isShowPreview = _d === void 0 ? true : _d, _e = props.isNew, isNew = _e === void 0 ? false : _e, _f = props.isOem, isOem = _f === void 0 ? false : _f;
46
+ var name = props.name, positionName = props.positionName, list = props.list, index = props.index, isShowOnlyAITest = props.isShowOnlyAITest, _a = props.isShowDesc, isShowDesc = _a === void 0 ? false : _a, _b = props.isShowSummaryAction, isShowSummaryAction = _b === void 0 ? false : _b, _c = props.isShowConfirm, isShowConfirm = _c === void 0 ? false : _c, _d = props.isShowPreview, isShowPreview = _d === void 0 ? true : _d, _e = props.isNew, isNew = _e === void 0 ? false : _e, _f = props.isOem, isOem = _f === void 0 ? false : _f, expanded = props.expanded, token = props.token, onExpandedChange = props.onExpandedChange;
47
47
  var ref = (0, react_1.useRef)(null);
48
48
  var isHovering = (0, ahooks_1.useHover)(ref);
49
49
  var updatePreview = (0, question_preview_store_1.useQuestionPreviewStore)().updatePreview;
@@ -106,7 +106,7 @@ var BaseAccordion = function (props) {
106
106
  setQuestionsList(filterList);
107
107
  }
108
108
  }, [list, isShowOnlyAITest, isOem]);
109
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: questionsList.length > 0 && ((0, jsx_runtime_1.jsx)(styled_1.AccordionRoot, { children: (0, jsx_runtime_1.jsxs)(mui_1.Accordion, __assign({ defaultExpanded: index === 0 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.AccordionSummary, __assign({ expandIcon: (0, jsx_runtime_1.jsx)(icons_material_1.ExpandMore, {}), sx: {
109
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: questionsList.length > 0 && ((0, jsx_runtime_1.jsx)(styled_1.AccordionRoot, { children: (0, jsx_runtime_1.jsxs)(mui_1.Accordion, __assign({ defaultExpanded: index === 0, expanded: expanded === token, onChange: onExpandedChange(token) }, { children: [(0, jsx_runtime_1.jsx)(mui_1.AccordionSummary, __assign({ expandIcon: (0, jsx_runtime_1.jsx)(icons_material_1.ExpandMore, {}), sx: {
110
110
  '&:after': {
111
111
  content: "".concat(isNew ? 'url(//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn)' : '" "'),
112
112
  position: 'absolute',
@@ -115,13 +115,13 @@ var BaseAccordion = function (props) {
115
115
  width: 38,
116
116
  height: 16,
117
117
  },
118
- } }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", justifyContent: "space-between", alignItems: "center", overflow: "hidden" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flex: "1 0", overflow: "hidden" }, { children: [(0, jsx_runtime_1.jsx)(styled_1.AccordionTitle, { children: positionName || name }), positionName && (0, jsx_runtime_1.jsxs)(styled_1.AccordionSubTitle, __assign({ color: "secondary" }, { children: ["\u6B65\u9AA4\uFF1A", name] }))] })), isShowSummaryAction && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ sx: { mr: 1, flexShrink: 0, height: 24 }, variant: "outlined", color: "inherit", size: "small", onClick: handleUseAllQuestion }, { children: "\u4F7F\u7528" })))] })) })), (0, jsx_runtime_1.jsxs)(mui_1.AccordionDetails, { children: [(0, jsx_runtime_1.jsx)(mui_1.List, __assign({ ref: ref }, { children: questionsList.map(function (item) {
118
+ } }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", justifyContent: "space-between", alignItems: "center", overflow: "hidden" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flex: "1 0", overflow: "hidden" }, { children: [(0, jsx_runtime_1.jsx)(styled_1.AccordionTitle, { children: positionName || name }), positionName && (0, jsx_runtime_1.jsxs)(styled_1.AccordionSubTitle, __assign({ color: "secondary" }, { children: ["\u6B65\u9AA4\uFF1A", name] }))] })), isShowSummaryAction && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ sx: { mr: 1, flexShrink: 0, height: 24 }, variant: "outlined", color: "inherit", size: "small", onClick: handleUseAllQuestion }, { children: "\u4F7F\u7528" })))] })) })), expanded === token && ((0, jsx_runtime_1.jsxs)(mui_1.AccordionDetails, { children: [(0, jsx_runtime_1.jsx)(mui_1.List, __assign({ ref: ref }, { children: questionsList.map(function (item) {
119
119
  var token = item.token, name = item.name, category = item.category;
120
120
  var isUsed = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.steps.find(function (step) { return step.originToken === token; });
121
121
  return ((0, jsx_runtime_1.jsx)(mui_1.ListItem, __assign({ secondaryAction: [
122
122
  isUsed && (0, jsx_runtime_1.jsx)(icons_material_1.Done, {}, "icon"),
123
123
  (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ className: "secondary-action-buttons" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", color: "inherit", size: "small", onClick: function () { return handleUseQuestion(item); } }, { children: "\u4F7F\u7528" })) }), "buttons"),
124
124
  ], onMouseOver: function () { return handleMouseOver(item); } }, { children: (0, jsx_runtime_1.jsx)(mui_1.ListItemText, { primary: name, secondary: isShowDesc && category ? category[0] : '' }) }), token));
125
- }) })), isPaging && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", sx: { width: '100%', justifyContent: 'start', color: '#576B95' }, onClick: handleShowAll }, { children: "\u5C55\u793A\u5168\u90E8" })))] })] })) })) }));
125
+ }) })), isPaging && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", sx: { width: '100%', justifyContent: 'start', color: '#576B95' }, onClick: handleShowAll }, { children: "\u5C55\u793A\u5168\u90E8" })))] }))] })) })) }));
126
126
  };
127
127
  exports.default = (0, react_1.memo)(BaseAccordion);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AiEvaluationDataList } from '../QuestionTemplate/interface';
2
3
  export interface BaseAccordionProps extends AiEvaluationDataList {
3
4
  index?: number;
@@ -7,4 +8,6 @@ export interface BaseAccordionProps extends AiEvaluationDataList {
7
8
  isShowSummaryAction?: boolean;
8
9
  isShowConfirm?: boolean;
9
10
  isOem?: boolean;
11
+ expanded: string | false;
12
+ onExpandedChange: (panel: string) => (event: React.SyntheticEvent, expanded: boolean) => void;
10
13
  }
@@ -57,6 +57,7 @@ var Options = [
57
57
  { label: '小面播报', value: 1 },
58
58
  { label: '虚拟人播报', value: 2 },
59
59
  { label: '自定义播报', value: 3 },
60
+ { label: '新虚拟人播报(支持追问)', value: 4 },
60
61
  ];
61
62
  var BootVideo = function (props) {
62
63
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -248,17 +249,23 @@ var BootVideo = function (props) {
248
249
  mr: 4.5,
249
250
  },
250
251
  }, defaultValue: "outlined", onChange: handleInteractTypeChange, value: interviewRoomState.interactType }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_2.Radio, { value: 1, label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }), (0, jsx_runtime_1.jsx)(fbm_ui_2.Radio, { value: 2, label: "AI\u9762\u8BD5\u5B98\u5BF9\u8BDD\u6A21\u5F0F" })] })), interviewRoomState.interactType === 2 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_2.Select, { options: Options, value: broadcastType, onChange: function (e) {
251
- var _a;
252
+ var _a, _b, _c;
252
253
  var value = e.target.value;
253
- setVirtualManList(__spreadArray([], __read(virtualManList.map(function (v) { return (__assign(__assign({}, v), { selected: v.type === value })); })), false));
254
- if (value !== 3) {
254
+ var newVirtualManList = virtualManList.map(function (v) { return (__assign(__assign({}, v), { selected: v.type === value })); });
255
+ setVirtualManList(__spreadArray([], __read(newVirtualManList), false));
256
+ if (![3, 4].includes(value)) {
255
257
  setInterviewRoomState(__assign(__assign({}, interviewRoomState), {
256
258
  // @ts-ignore
257
259
  aiInterviewerProfile: (_a = virtualManList.find(function (v) { return v.type === value; })) === null || _a === void 0 ? void 0 : _a.detail }));
258
260
  }
259
- }, sx: { width: 240, height: 'auto', mt: 1 } }), broadcastType === 3 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(CustomVideos_1.default, { mediaList: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, setMediaList: handleSetVideo }), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "body2", fontWeight: "medium", mt: 3, mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u6587\u672C\u6846\u5185\u5BB9" })), (0, jsx_runtime_1.jsx)(fbm_ui_2.TextField, { multiline: true, error: (((_a = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _a === void 0 ? void 0 : _a.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, sx: { mb: 2 }, onChange: handleGuidanceText, max: 300 })] })), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 3 }, { children: broadcastType !== 3 ? '面试官形象' : '面试官形象(播报题目)' })), broadcastType !== 3 && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (0, jsx_runtime_1.jsx)(fbm_ui_2.Box, { children: (0, jsx_runtime_1.jsx)("img", { src: (_b = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _b === void 0 ? void 0 : _b.virtualHumanAvatar, style: {
261
+ else {
262
+ setInterviewRoomState(__assign(__assign({}, interviewRoomState), {
263
+ // @ts-ignore
264
+ aiInterviewerProfile: ((_c = (_b = virtualManList.find(function (v) { return v.type === value; })) === null || _b === void 0 ? void 0 : _b.detail.interviewerShows) === null || _c === void 0 ? void 0 : _c.find(function (v) { return v.selected; })) || (virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) }));
265
+ }
266
+ }, sx: { width: 240, height: 'auto', mt: 1 } }), broadcastType === 3 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(CustomVideos_1.default, { mediaList: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, setMediaList: handleSetVideo }), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "body2", fontWeight: "medium", mt: 3, mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u6587\u672C\u6846\u5185\u5BB9" })), (0, jsx_runtime_1.jsx)(fbm_ui_2.TextField, { multiline: true, error: (((_a = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _a === void 0 ? void 0 : _a.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, sx: { mb: 2 }, onChange: handleGuidanceText, max: 300 })] })), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 3 }, { children: ![3, 4].includes(broadcastType) ? '面试官形象' : '面试官形象(播报题目)' })), ![3, 4].includes(broadcastType) && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (0, jsx_runtime_1.jsx)(fbm_ui_2.Box, { children: (0, jsx_runtime_1.jsx)("img", { src: (_b = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _b === void 0 ? void 0 : _b.virtualHumanAvatar, style: {
260
267
  borderColor: 'transparent',
261
- }, height: 100, alt: "" }) }) })), broadcastType === 3 && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (_d = (_c = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _c === void 0 ? void 0 : _c.interviewerShows) === null || _d === void 0 ? void 0 : _d.map(function (human) { return ((0, jsx_runtime_1.jsxs)(fbm_ui_2.Box, { children: [(0, jsx_runtime_1.jsx)("img", { src: human.virtualHumanAvatar, style: {
268
+ }, height: 100, alt: "" }) }) })), [3, 4].includes(broadcastType) && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (_d = (_c = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _c === void 0 ? void 0 : _c.interviewerShows) === null || _d === void 0 ? void 0 : _d.map(function (human) { return ((0, jsx_runtime_1.jsxs)(fbm_ui_2.Box, { children: [(0, jsx_runtime_1.jsx)("img", { src: human.virtualHumanAvatar, style: {
262
269
  borderColor: human.selected ? '#4CAF50' : 'transparent',
263
270
  }, height: 100, alt: "", onClick: function () { return handleSelectHumanType(human); } }), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "body2", textAlign: "center" }, { children: human.name }))] }, human.humanToken)); }) })), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "caption", flexWrap: "wrap", color: "disabled", mb: 3 }, { children: (virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail.desc) || ((_g = (_f = (_e = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _e === void 0 ? void 0 : _e.interviewerShows) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.desc) })), broadcastType !== 3 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "body2", fontWeight: "medium", mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u64AD\u62A5\u5185\u5BB9" })), (0, jsx_runtime_1.jsx)(fbm_ui_2.TextField, { multiline: true, error: (((_h = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _h === void 0 ? void 0 : _h.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, onChange: handleGuidanceText, max: 300 })] }))] })), interviewRoomState.interactType === 1 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "caption", mb: 2 }, { children: "\u79FB\u52A8\u7AEF" })), (0, jsx_runtime_1.jsxs)(styled_1.CustomUploadedImgRoot, { children: [mediaList.map(function (_a) {
264
271
  var videoUrl = _a.videoUrl, frameUrl = _a.frameUrl;