eli-video-interview 1.2.42-alpha.5 → 1.2.42-alpha.50

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 (161) hide show
  1. package/esm/components/AiHeaderTitle/index.js +1 -8
  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 +7 -1
  12. package/esm/enum/ai-question.js +6 -0
  13. package/esm/modules/ai-ability/components/AddAbility/index.js +2 -20
  14. package/esm/modules/ai-ability-select/Root.js +3 -2
  15. package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +2 -2
  16. package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +2 -1
  17. package/esm/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +2 -2
  18. package/esm/modules/ai-ability-select/components/AiAbilityItem/index.js +4 -4
  19. package/esm/modules/ai-ability-select/components/AiAbilityList/index.js +14 -2
  20. package/esm/modules/ai-ability-select/interface.d.ts +1 -0
  21. package/esm/modules/ai-question/Root.js +1 -1
  22. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +13 -4
  23. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +27 -0
  24. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +29 -2
  25. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +42 -42
  26. package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +1 -0
  27. package/esm/modules/ai-question/components/BaseAccordion/index.js +4 -4
  28. package/esm/modules/ai-question/components/BaseAccordion/interface.d.ts +3 -0
  29. package/esm/modules/ai-question/components/QuestionModel/Item.js +3 -3
  30. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +6 -2
  31. package/esm/modules/ai-question/components/QuestionTemplate/index.js +1 -1
  32. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +4 -3
  33. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +8 -3
  34. package/esm/modules/ai-question/components/QuestionUpdate/const.js +1 -0
  35. package/esm/modules/ai-question/components/QuestionUpdate/index.js +3 -2
  36. package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +2 -0
  37. package/esm/modules/ai-report/Root.js +6 -3
  38. package/esm/modules/ai-report/interface.d.ts +2 -0
  39. package/esm/modules/ai-report/useAiReport.d.ts +2 -0
  40. package/esm/modules/ai-report/useAiReport.js +3 -1
  41. package/esm/modules/ai-report-v2/Root.d.ts +2 -2
  42. package/esm/modules/ai-report-v2/Root.js +29 -17
  43. package/esm/modules/ai-report-v2/components/AIEvaluate/Evaluate.d.ts +2 -4
  44. package/esm/modules/ai-report-v2/components/AIEvaluate/Evaluate.js +33 -19
  45. package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +12 -0
  46. package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.js +35 -21
  47. package/esm/modules/ai-report-v2/components/AIEvaluate/index.d.ts +2 -2
  48. package/esm/modules/ai-report-v2/components/AIEvaluate/index.js +11 -7
  49. package/esm/modules/ai-report-v2/components/Candidate/Interface.d.ts +3 -0
  50. package/esm/modules/ai-report-v2/components/Candidate/Podium.js +2 -2
  51. package/esm/modules/ai-report-v2/components/Form/Form.js +35 -13
  52. package/esm/modules/ai-report-v2/components/Form/Forms.d.ts +3 -3
  53. package/esm/modules/ai-report-v2/components/Form/Forms.js +4 -4
  54. package/esm/modules/ai-report-v2/components/Form/Nps.d.ts +1 -1
  55. package/esm/modules/ai-report-v2/components/Form/Nps.js +2 -0
  56. package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.d.ts +4 -2
  57. package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +28 -10
  58. package/esm/modules/ai-report-v2/components/Suggestion/index.js +1 -1
  59. package/esm/modules/ai-report-v2/components/VideoQuestion/Evaluate.d.ts +11 -0
  60. package/esm/modules/ai-report-v2/components/VideoQuestion/Evaluate.js +79 -0
  61. package/esm/modules/ai-report-v2/components/VideoQuestion/QuestionItem.js +40 -25
  62. package/esm/modules/ai-report-v2/components/VideoQuestion/Workplaces.d.ts +9 -5
  63. package/esm/modules/ai-report-v2/components/VideoQuestion/Workplaces.js +71 -6
  64. package/esm/modules/ai-report-v2/components/VideoQuestion/index.d.ts +6 -3
  65. package/esm/modules/ai-report-v2/components/VideoQuestion/index.js +6 -4
  66. package/esm/modules/ai-report-v2/components/VideoQuestion/interface.d.ts +1 -0
  67. package/esm/modules/ai-report-v2/components/VideoQuestion/styled.js +2 -2
  68. package/esm/modules/ai-report-v2/components/WorkPlaces/index.js +1 -1
  69. package/esm/modules/ai-report-v2/components/styled.d.ts +1 -0
  70. package/esm/modules/ai-report-v2/components/styled.js +12 -2
  71. package/esm/modules/ai-report-v2/interface.d.ts +5 -2
  72. package/esm/modules/ai-report-v2/useAiReport.d.ts +5 -1
  73. package/esm/modules/ai-report-v2/useAiReport.js +3 -1
  74. package/esm/modules/ai-report-v2/useAiReportVersion.d.ts +5 -0
  75. package/esm/modules/ai-report-v2/useAiReportVersion.js +37 -0
  76. package/esm/services/ai-report.d.ts +10 -0
  77. package/esm/services/ai-report.js +2 -0
  78. package/esm/store/ai-question/ai-analysis-store.d.ts +3 -1
  79. package/esm/store/ai-question/ai-analysis-store.js +26 -1
  80. package/esm/store/ai-report/global-store.d.ts +3 -0
  81. package/lib/components/AiHeaderTitle/index.js +1 -8
  82. package/lib/components/AiHeaderTitleV2/index.d.ts +4 -0
  83. package/lib/components/AiHeaderTitleV2/index.js +41 -0
  84. package/lib/components/AiHeaderTitleV2/interface.d.ts +4 -0
  85. package/lib/components/AiHeaderTitleV2/interface.js +2 -0
  86. package/lib/components/Charts/ReportPie.js +13 -3
  87. package/lib/components/Charts/const.js +3 -3
  88. package/lib/components/ScoreBigBall/index.js +1 -1
  89. package/lib/constants/ai-question.d.ts +1 -1
  90. package/lib/constants/ai-question.js +3 -3
  91. package/lib/enum/ai-question.d.ts +7 -1
  92. package/lib/enum/ai-question.js +6 -0
  93. package/lib/modules/ai-ability/components/AddAbility/index.js +2 -20
  94. package/lib/modules/ai-ability-select/Root.js +3 -2
  95. package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +2 -2
  96. package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +2 -1
  97. package/lib/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +2 -2
  98. package/lib/modules/ai-ability-select/components/AiAbilityItem/index.js +4 -4
  99. package/lib/modules/ai-ability-select/components/AiAbilityList/index.js +14 -2
  100. package/lib/modules/ai-ability-select/interface.d.ts +1 -0
  101. package/lib/modules/ai-question/Root.js +1 -1
  102. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +12 -3
  103. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +27 -0
  104. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +30 -3
  105. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +39 -39
  106. package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +1 -0
  107. package/lib/modules/ai-question/components/BaseAccordion/index.js +4 -4
  108. package/lib/modules/ai-question/components/BaseAccordion/interface.d.ts +3 -0
  109. package/lib/modules/ai-question/components/QuestionModel/Item.js +3 -3
  110. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +5 -1
  111. package/lib/modules/ai-question/components/QuestionTemplate/index.js +1 -1
  112. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +4 -3
  113. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +7 -2
  114. package/lib/modules/ai-question/components/QuestionUpdate/const.js +1 -0
  115. package/lib/modules/ai-question/components/QuestionUpdate/index.js +3 -2
  116. package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +2 -0
  117. package/lib/modules/ai-report/Root.js +6 -3
  118. package/lib/modules/ai-report/interface.d.ts +2 -0
  119. package/lib/modules/ai-report/useAiReport.d.ts +2 -0
  120. package/lib/modules/ai-report/useAiReport.js +6 -1
  121. package/lib/modules/ai-report-v2/Root.d.ts +2 -2
  122. package/lib/modules/ai-report-v2/Root.js +28 -16
  123. package/lib/modules/ai-report-v2/components/AIEvaluate/Evaluate.d.ts +2 -4
  124. package/lib/modules/ai-report-v2/components/AIEvaluate/Evaluate.js +30 -16
  125. package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +12 -0
  126. package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.js +36 -20
  127. package/lib/modules/ai-report-v2/components/AIEvaluate/index.d.ts +2 -2
  128. package/lib/modules/ai-report-v2/components/AIEvaluate/index.js +11 -7
  129. package/lib/modules/ai-report-v2/components/Candidate/Interface.d.ts +3 -0
  130. package/lib/modules/ai-report-v2/components/Candidate/Podium.js +1 -1
  131. package/lib/modules/ai-report-v2/components/Form/Form.js +35 -13
  132. package/lib/modules/ai-report-v2/components/Form/Forms.d.ts +3 -3
  133. package/lib/modules/ai-report-v2/components/Form/Forms.js +4 -4
  134. package/lib/modules/ai-report-v2/components/Form/Nps.d.ts +1 -1
  135. package/lib/modules/ai-report-v2/components/Form/Nps.js +2 -0
  136. package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.d.ts +4 -2
  137. package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +27 -9
  138. package/lib/modules/ai-report-v2/components/Suggestion/index.js +2 -2
  139. package/lib/modules/ai-report-v2/components/VideoQuestion/Evaluate.d.ts +11 -0
  140. package/lib/modules/ai-report-v2/components/VideoQuestion/Evaluate.js +81 -0
  141. package/lib/modules/ai-report-v2/components/VideoQuestion/QuestionItem.js +38 -23
  142. package/lib/modules/ai-report-v2/components/VideoQuestion/Workplaces.d.ts +9 -5
  143. package/lib/modules/ai-report-v2/components/VideoQuestion/Workplaces.js +69 -4
  144. package/lib/modules/ai-report-v2/components/VideoQuestion/index.d.ts +6 -3
  145. package/lib/modules/ai-report-v2/components/VideoQuestion/index.js +6 -4
  146. package/lib/modules/ai-report-v2/components/VideoQuestion/interface.d.ts +1 -0
  147. package/lib/modules/ai-report-v2/components/VideoQuestion/styled.js +2 -2
  148. package/lib/modules/ai-report-v2/components/WorkPlaces/index.js +2 -2
  149. package/lib/modules/ai-report-v2/components/styled.d.ts +1 -0
  150. package/lib/modules/ai-report-v2/components/styled.js +13 -3
  151. package/lib/modules/ai-report-v2/interface.d.ts +5 -2
  152. package/lib/modules/ai-report-v2/useAiReport.d.ts +5 -1
  153. package/lib/modules/ai-report-v2/useAiReport.js +6 -1
  154. package/lib/modules/ai-report-v2/useAiReportVersion.d.ts +5 -0
  155. package/lib/modules/ai-report-v2/useAiReportVersion.js +41 -0
  156. package/lib/services/ai-report.d.ts +10 -0
  157. package/lib/services/ai-report.js +5 -1
  158. package/lib/store/ai-question/ai-analysis-store.d.ts +3 -1
  159. package/lib/store/ai-question/ai-analysis-store.js +26 -1
  160. package/lib/store/ai-report/global-store.d.ts +3 -0
  161. package/package.json +4 -2
@@ -14,13 +14,6 @@ import SvgIcon from "../SvgIcon";
14
14
  import { Box, Typography } from 'fbm-ui';
15
15
  var AiHeaderTitle = function (_a) {
16
16
  var name = _a.name;
17
- return (_jsxs(Box, __assign({ display: "inline-flex", sx: {
18
- pl: 3,
19
- color: '#009D56',
20
- pt: 0.5,
21
- background: 'url(//webcdn.fbmms.cn/assets/yt-b/yf2BqqIlr8Xtb8N2o44t1) no-repeat center center',
22
- backgroundSize: 'contain',
23
- width: 24 + (56 / 4) * name.length + 84,
24
- } }, { children: [_jsx(SvgIcon, { name: "AI" }), _jsx(Typography, __assign({ variant: "h6", color: "inherit" }, { children: name }))] })));
17
+ return (_jsxs(Box, __assign({ display: "inline-flex" }, { children: [_jsx(SvgIcon, { name: "AI" }), _jsx(Typography, __assign({ variant: "h6", fontWeight: "medium", sx: { fontWeight: 500 }, ml: 1 }, { children: name }))] })));
25
18
  };
26
19
  export default AiHeaderTitle;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AiHeaderProps } from './interface';
3
+ declare const AiHeaderTitle: React.FC<AiHeaderProps>;
4
+ export default AiHeaderTitle;
@@ -0,0 +1,39 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { DinTypography } from "../../modules/ai-report-v2/components/styled";
14
+ import { Stack } from 'fbm-ui/lib/mui';
15
+ var AiHeaderTitle = function (_a) {
16
+ var name = _a.name;
17
+ return (_jsxs(Stack, __assign({ display: "inline-flex", direction: "row", spacing: 1, sx: {
18
+ left: -12,
19
+ top: -8,
20
+ height: 48,
21
+ position: 'relative',
22
+ color: '#009D56',
23
+ borderRadius: '8px 0px 8px 8px',
24
+ background: 'linear-gradient( 360deg, #98F79C 0%, #C2FCC4 100%)',
25
+ width: 155,
26
+ alignItems: 'center',
27
+ '&:after': {
28
+ content: "''",
29
+ position: 'absolute',
30
+ top: 0,
31
+ right: -5,
32
+ width: 0,
33
+ height: 0,
34
+ borderTop: '8px solid transparent',
35
+ borderLeft: '5px solid #6CD970',
36
+ },
37
+ } }, { children: [_jsx("img", { src: "//webcdn.fbmms.cn/assets/H4yH/zOBWGb2Np_QoyQk_EH_eZ", alt: "", style: { marginLeft: 16, width: 32, height: 20 } }), _jsx(DinTypography, __assign({ variant: "h6", color: "inherit" }, { children: name }))] })));
38
+ };
39
+ export default AiHeaderTitle;
@@ -0,0 +1,4 @@
1
+ export interface AiHeaderProps {
2
+ name: string;
3
+ style?: any;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -50,6 +50,16 @@ var formateTitle = function (originalTitle) {
50
50
  var _a = __read(originalTitle.match(regex), 2), no = _a[1];
51
51
  return "\u7B2C".concat(no, "\u9898");
52
52
  };
53
+ var getLevel = function (score) {
54
+ switch (true) {
55
+ case score >= 80:
56
+ return 3;
57
+ case score >= 60:
58
+ return 2;
59
+ default:
60
+ return 1;
61
+ }
62
+ };
53
63
  var ReportPie = function (props) {
54
64
  var id = props.id, _a = props.source, source = _a === void 0 ? [] : _a;
55
65
  var scores = source.map(function (_a) {
@@ -125,15 +135,15 @@ var ReportPie = function (props) {
125
135
  formatter: function (_a) {
126
136
  var _b;
127
137
  var value = _a.value, dataIndex = _a.dataIndex;
128
- return ((_b = data[dataIndex]) === null || _b === void 0 ? void 0 : _b.weight) || 0;
138
+ return "".concat(((_b = data[dataIndex]) === null || _b === void 0 ? void 0 : _b.weight.toFixed(2).replace(/\.00$/, '')) || 0, "%");
129
139
  },
130
140
  fontSize: 14,
131
141
  },
132
142
  itemStyle: {
133
143
  color: function (_a) {
134
144
  var _b;
135
- var level = _a.data.level;
136
- return (_b = levelMapping[level]) === null || _b === void 0 ? void 0 : _b.itemColor;
145
+ var avgScore = _a.data.avgScore;
146
+ return (_b = levelMapping[getLevel(avgScore)]) === null || _b === void 0 ? void 0 : _b.itemColor;
137
147
  },
138
148
  shadowBlur: 4,
139
149
  shadowColor: 'rgba(0, 0, 0, 0.16)',
@@ -1,17 +1,17 @@
1
1
  export var levelMapping = {
2
2
  3: {
3
3
  text: '优秀',
4
- itemColor: '#00D99D',
4
+ itemColor: 'rgba(255, 153,2)',
5
5
  color: 'rgb(255, 153, 3)',
6
6
  },
7
7
  2: {
8
8
  text: '适中',
9
- itemColor: 'rgb(166, 234, 193)',
9
+ itemColor: 'rgba(0, 217,157)',
10
10
  color: 'rgba(0, 217, 157)',
11
11
  },
12
12
  1: {
13
13
  text: '欠佳',
14
- itemColor: '#00D99D',
14
+ itemColor: 'rgba(99, 156,255)',
15
15
  color: 'rgb(98, 156, 255)',
16
16
  },
17
17
  };
@@ -15,7 +15,7 @@ import BigBallSvg from "../BigBallSvg";
15
15
  import { formatScore } from "../../utils/utils";
16
16
  var ScoreBigBall = function (_a) {
17
17
  var score = _a.score, status = _a.status, _b = _a.width, width = _b === void 0 ? 80 : _b, _c = _a.height, height = _c === void 0 ? 80 : _c, _d = _a.fontSize, fontSize = _d === void 0 ? 20 : _d;
18
- return (_jsxs(_Fragment, { children: [_jsxs(ScoreBigBallRoot, __assign({ width: width, height: height, sx: { backgroundColor: status === 1 ? '#fbfbfb' : 'rgba(59, 203, 120, 0.1)' } }, { children: [status !== 1 && _jsx(BigBallSvg, {}), status === 1 && (_jsx("div", __assign({ style: { color: 'rgba(0,0,0,0.26)', fontSize: '12px' } }, { children: _jsx("span", { children: "\u5019\u9009\u4EBA\u672A\u4F5C\u7B54" }) }))), status === 2 && (_jsx("div", __assign({ style: { color: '#40be47' } }, { children: _jsx("span", { children: "\u8BA1\u7B97\u4E2D..." }) }))), status === 3 && (_jsxs("div", __assign({ style: { color: '#40be47' } }, { children: [_jsx("span", __assign({ style: { fontFamily: 'DIN Alternate Bold', fontSize: fontSize, fontWeight: 'bold' } }, { children: formatScore(score) > 100 ? 100 : formatScore(score) })), _jsx("span", __assign({ style: { marginLeft: '2px', fontSize: '12px' } }, { children: "\u5206" }))] })))] })), status === 2 && (_jsx("div", { style: {
18
+ return (_jsxs(_Fragment, { children: [_jsxs(ScoreBigBallRoot, __assign({ width: width, height: height, sx: { backgroundColor: status === 1 ? '#fbfbfb' : 'rgba(59, 203, 120, 0.1)' } }, { children: [status !== 1 && _jsx(BigBallSvg, {}), status === 1 && (_jsx("div", __assign({ style: { color: 'rgba(0,0,0,0.26)', fontSize: '12px' } }, { children: _jsx("span", { children: "\u5019\u9009\u4EBA\u672A\u4F5C\u7B54" }) }))), status === 2 && (_jsx("div", __assign({ style: { color: '#40be47' } }, { children: _jsx("span", { children: "\u8BA1\u7B97\u4E2D..." }) }))), status === 3 && (_jsxs("div", __assign({ style: { color: '#40be47' } }, { children: [_jsx("span", __assign({ style: { fontFamily: 'MiSans TC', fontSize: fontSize, fontWeight: 'bold' } }, { children: formatScore(score) > 100 ? 100 : formatScore(score) })), _jsx("span", __assign({ style: { marginLeft: '2px', fontSize: '12px' } }, { children: "\u5206" }))] })))] })), status === 2 && (_jsx("div", { style: {
19
19
  position: 'absolute',
20
20
  top: 0,
21
21
  right: 0,
@@ -54,5 +54,5 @@ export declare const TEST_TYPE_READONLY: number[];
54
54
  export declare const DISABLED_REPEAT_TYPE: number[];
55
55
  export declare const DISABLED_COST_TYPE: number[];
56
56
  export declare const IS_AI_ANALYSIS: (step: Pick<QuestionParams, 'aiType'>) => boolean;
57
- export declare const IS_AI_FOLLOW_UP: (step: QuestionParams, interaction: InteractionMethod[]) => boolean;
57
+ export declare const IS_AI_FOLLOW_UP: (step: QuestionParams, interaction: InteractionMethod[], interactType: number) => boolean;
58
58
  export declare const MAX_RANDOM_QUESTION_NUM = 50;
@@ -96,12 +96,12 @@ export var DISABLED_COST_TYPE = [7, 9, 8, 4, 11, 2, 16];
96
96
  // 是否开启AI分析
97
97
  export var IS_AI_ANALYSIS = function (step) { return step.aiType === 2; };
98
98
  // 是否可以追问
99
- export var IS_AI_FOLLOW_UP = function (step, interaction) {
100
- return step.aiShowType === 1 && (step.broadcastType === 2 || !IS_VIRTUAL_HUMAN(interaction));
99
+ export var IS_AI_FOLLOW_UP = function (step, interaction, interactType) {
100
+ return step.aiShowType === 1 && (interactType === 1 || !IS_VIRTUAL_HUMAN(interaction) || step.broadcastType === 2);
101
101
  };
102
102
  var IS_VIRTUAL_HUMAN = function (interaction) {
103
103
  if (interaction.length === 0)
104
104
  return false;
105
- return interaction.some(function (v) { var _a; return v.selected && (v.type === 2 || (v.type === 3 && ((_a = v.detail.interviewerShows) === null || _a === void 0 ? void 0 : _a.some(function (v) { return v.selected && v.humanType === 2; }))) || false); });
105
+ return interaction.some(function (v) { var _a; return v.selected && (v.type === 2 || (v.type === 3 && ((_a = v.detail.interviewerShows) === null || _a === void 0 ? void 0 : _a.some(function (v) { return v.selected && v.humanType === 2; })))); });
106
106
  };
107
107
  export var MAX_RANDOM_QUESTION_NUM = 50;
@@ -24,7 +24,13 @@ export declare enum LANGUAGE_TYPE {
24
24
  MANDARIN = 2,
25
25
  CANTONESE = 13,
26
26
  JAPANESE = 12,
27
- ENGLISH = 11
27
+ ENGLISH = 11,
28
+ KOREAN = 19,
29
+ SPANISH = 20,
30
+ ITALIAN = 21,
31
+ RUSSIAN = 22,
32
+ FRENCH = 23,
33
+ GERMAN = 24
28
34
  }
29
35
  /**
30
36
  * 题目类型
@@ -28,6 +28,12 @@ export var LANGUAGE_TYPE;
28
28
  LANGUAGE_TYPE[LANGUAGE_TYPE["CANTONESE"] = 13] = "CANTONESE";
29
29
  LANGUAGE_TYPE[LANGUAGE_TYPE["JAPANESE"] = 12] = "JAPANESE";
30
30
  LANGUAGE_TYPE[LANGUAGE_TYPE["ENGLISH"] = 11] = "ENGLISH";
31
+ LANGUAGE_TYPE[LANGUAGE_TYPE["KOREAN"] = 19] = "KOREAN";
32
+ LANGUAGE_TYPE[LANGUAGE_TYPE["SPANISH"] = 20] = "SPANISH";
33
+ LANGUAGE_TYPE[LANGUAGE_TYPE["ITALIAN"] = 21] = "ITALIAN";
34
+ LANGUAGE_TYPE[LANGUAGE_TYPE["RUSSIAN"] = 22] = "RUSSIAN";
35
+ LANGUAGE_TYPE[LANGUAGE_TYPE["FRENCH"] = 23] = "FRENCH";
36
+ LANGUAGE_TYPE[LANGUAGE_TYPE["GERMAN"] = 24] = "GERMAN";
31
37
  })(LANGUAGE_TYPE || (LANGUAGE_TYPE = {}));
32
38
  /**
33
39
  * 题目类型
@@ -80,31 +80,13 @@ var validationSchema = Yup.object().shape({
80
80
  var InitialValues = {
81
81
  workPlaceItems: [
82
82
  {
83
- name: '能力定义',
84
- type: 1,
85
- items: [],
86
- maxTextLength: 100,
87
- },
88
- {
89
- name: '优次表现-优秀表现',
90
- type: 2,
91
- items: [],
92
- maxTextLength: 100,
93
- },
94
- {
95
- name: '优次表现-较差表现',
96
- type: 3,
97
- items: [],
98
- maxTextLength: 100,
99
- },
100
- {
101
- name: '考察建议-评分关键点',
83
+ name: '评分关键点',
102
84
  type: 5,
103
85
  items: [],
104
86
  maxTextLength: 300,
105
87
  },
106
88
  {
107
- name: '考察建议-面试题目',
89
+ name: '面试题目',
108
90
  type: 4,
109
91
  items: [],
110
92
  maxTextLength: 300,
@@ -21,7 +21,8 @@ import { Stack } from 'fbm-ui/lib/mui';
21
21
  import { forwardRef, memo, useEffect } from 'react';
22
22
  var ScrollDialogContent = styled(Box)({
23
23
  maxHeight: 'calc(100vh - 192px)',
24
- overflow: 'scroll',
24
+ height: 'calc(100vh - 192px)',
25
+ overflow: 'hidden',
25
26
  });
26
27
  var AiAbilitySelectRoot = forwardRef(function (_a, ref) {
27
28
  var jobToken = _a.jobToken, thirdToken = _a.thirdToken, token = _a.token, hiddenTips = _a.hiddenTips;
@@ -41,7 +42,7 @@ var AiAbilitySelectRoot = forwardRef(function (_a, ref) {
41
42
  setEnterprise({ jobToken: jobToken, thirdToken: thirdToken });
42
43
  // eslint-disable-next-line react-hooks/exhaustive-deps
43
44
  }, [jobToken, thirdToken]);
44
- return (_jsx(ScrollDialogContent, __assign({ ref: ref }, { children: _jsxs(Box, __assign({ display: "flex", flexDirection: "column", width: 760 }, { children: [_jsxs(Stack, __assign({ spacing: 2, mb: 2 }, { children: [_jsx(Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: !hiddenTips ? '请选择要优先使用的考察能力,也可以点击「下一步」直接出题' : '已选择的考察能力会优先在面试题目中展示' })), (aiAbilityList === null || aiAbilityList === void 0 ? void 0 : aiAbilityList.some(function (v) { return v.isNew; })) && (_jsxs(Stack, __assign({ direction: "row", spacing: 1, alignItems: "center" }, { children: [_jsx("img", { src: "//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn", alt: "", width: 38, height: 16 }), _jsx(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" }))] })))] })), _jsx(AiAbilityList, { items: aiAbilityList })] })) })));
45
+ return (_jsx(ScrollDialogContent, __assign({ ref: ref }, { children: _jsxs(Box, __assign({ display: "flex", flexDirection: "column", width: 760, height: 1 }, { children: [_jsxs(Stack, __assign({ spacing: 2, mb: 2 }, { children: [_jsx(Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: !hiddenTips ? '请选择要优先使用的考察能力,也可以点击「下一步」直接出题' : '已选择的考察能力会优先在面试题目中展示' })), (aiAbilityList === null || aiAbilityList === void 0 ? void 0 : aiAbilityList.some(function (v) { return v.isNew; })) && (_jsxs(Stack, __assign({ direction: "row", spacing: 1, alignItems: "center" }, { children: [_jsx("img", { src: "//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn", alt: "", width: 38, height: 16 }), _jsx(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" }))] })))] })), _jsx(AiAbilityList, { items: aiAbilityList })] })) })));
45
46
  });
46
47
  AiAbilitySelectRoot.displayName = 'AiAbilitySelectRoot';
47
48
  export default 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;
@@ -12,6 +12,7 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { Box, Typography } from 'fbm-ui';
14
14
  import { Stack } from 'fbm-ui/lib/mui';
15
+ import { memo } from 'react';
15
16
  var AiAbilityDetail = function (_a) {
16
17
  var detail = _a.detail;
17
18
  return (_jsx(Box, __assign({ p: 2, maxHeight: 582, overflow: "scroll" }, { children: detail === null || detail === void 0 ? void 0 : detail.map(function (v) {
@@ -19,4 +20,4 @@ var AiAbilityDetail = function (_a) {
19
20
  return (_jsxs(Stack, __assign({ mb: 2, spacing: 1, width: 300 }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: v.name })), _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: (_a = v.items) === null || _a === void 0 ? void 0 : _a.join('\n') }))] }), v.name));
20
21
  }) })));
21
22
  };
22
- export default AiAbilityDetail;
23
+ export default 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;
@@ -39,15 +39,14 @@ import AiAbilityDetail from './AiAbilityDetail';
39
39
  import { NewBadge } from './styled';
40
40
  import { useAiAbilityListStore } from "../../../../store/ai-ability-select/question-ability-store";
41
41
  import { Box, Checkbox, Paper, Popover, Typography } from 'fbm-ui';
42
+ import { memo } from 'react';
42
43
  var AiAbilityItem = function (_a) {
43
44
  var name = _a.name, isNew = _a.isNew, token = _a.token, detail = _a.detail;
44
45
  var _b = useAiAbilityListStore(), selctedAbilitys = _b.selctedAbilitys, setSelctedAbilitys = _b.setSelctedAbilitys;
45
46
  var handleChange = function (_, checked) {
46
47
  return setSelctedAbilitys(__spreadArray(__spreadArray([], __read(selctedAbilitys.filter(function (v) { return v !== token; })), false), __read((checked ? [token] : [])), false));
47
48
  };
48
- return (_jsx(Paper, __assign({ variant: "outlined" }, { children: _jsxs(Box, __assign({ sx: { pl: 2, width: 240, height: 54, display: 'flex', alignItems: 'center', position: 'relative' } }, { children: [_jsx(Checkbox, { onChange: handleChange, label: _jsx(AiAbilityLable, { name: name, detail: detail }), checked: selctedAbilitys.includes(token),
49
- // @ts-ignore
50
- sx: { width: 1, height: 1 } }), isNew && _jsx(NewBadge, { src: "//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn" })] })) })));
49
+ return (_jsx(Paper, __assign({ variant: "outlined" }, { children: _jsxs(Box, __assign({ sx: { pl: 2, width: 240, height: 54, display: 'flex', alignItems: 'center', position: 'relative' } }, { children: [_jsx(Checkbox, { onChange: handleChange, label: _jsx(MemoAiAbilityLable, { name: name, detail: detail }), checked: selctedAbilitys.includes(token), sx: { width: 1, height: 1 } }), isNew && _jsx(NewBadge, { src: "//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn" })] })) })));
51
50
  };
52
51
  var AiAbilityLable = function (_a) {
53
52
  var name = _a.name, detail = _a.detail;
@@ -55,4 +54,5 @@ var AiAbilityLable = function (_a) {
55
54
  return (_jsx(Popover, __assign({ content: _jsx(AiAbilityDetail, { detail: detail }), trigger: "hover", placement: "right" }, { children: _jsx(Typography, __assign({ noWrap: true, maxWidth: 180, variant: "body2", sx: { mt: 0.5 } }, { children: name })) })));
56
55
  return (_jsx(Typography, __assign({ noWrap: true, maxWidth: 180, variant: "body2" }, { children: name })));
57
56
  };
58
- export default AiAbilityItem;
57
+ var MemoAiAbilityLable = memo(AiAbilityLable);
58
+ export default memo(AiAbilityItem);
@@ -11,9 +11,21 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import AiAbilityItem from '../AiAbilityItem';
14
- import { Grid } from 'fbm-ui';
14
+ import AutoSizer from 'react-virtualized-auto-sizer';
15
+ import { FixedSizeGrid as Grid } from 'react-window';
16
+ var Cell = function (_a) {
17
+ var data = _a.data, columnIndex = _a.columnIndex, rowIndex = _a.rowIndex, style = _a.style;
18
+ var item = data[rowIndex * 3 + columnIndex];
19
+ if (!item) {
20
+ return null;
21
+ }
22
+ return (_jsx("div", __assign({ style: __assign(__assign({}, style), { width: style.width - 8, height: style.height - 8 }) }, { children: _jsx(AiAbilityItem, __assign({}, item)) })));
23
+ };
15
24
  var AiAbilityList = function (_a) {
16
25
  var items = _a.items;
17
- return (_jsx(Grid, __assign({ container: true, spacing: 1, rowSpacing: 1, columnSpacing: 1 }, { children: items === null || items === void 0 ? void 0 : items.map(function (item) { return (_jsx(Grid, __assign({ item: true }, { children: _jsx(AiAbilityItem, __assign({}, item)) }), item.token)); }) })));
26
+ return (_jsx(AutoSizer, { children: function (_a) {
27
+ var height = _a.height, width = _a.width;
28
+ return (_jsx(Grid, __assign({ columnCount: 3, columnWidth: 240, overscanRowCount: 10, height: height, rowCount: Math.ceil(items.length / 3), rowHeight: 62, width: width, itemData: items }, { children: Cell })));
29
+ } }));
18
30
  };
19
31
  export 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 {
@@ -109,7 +109,7 @@ var AiQuestionRoot = forwardRef(function (props, ref) {
109
109
  _d.label = 2;
110
110
  case 2:
111
111
  _d.trys.push([2, 4, , 5]);
112
- return [4 /*yield*/, 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 }))];
112
+ return [4 /*yield*/, 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 })); }) }))];
113
113
  case 3:
114
114
  data = (_d.sent()).data;
115
115
  return [2 /*return*/, Promise.resolve({
@@ -14,13 +14,15 @@ import { willOrNotOptions } from './const';
14
14
  import MainPoints from './MainPoints';
15
15
  import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
16
16
  import { Box, Chip, CloseIcon, IconButton, InfoIcon, Input, Select, Tooltip, Typography } from 'fbm-ui';
17
- import { ListItem, ListItemText } from 'fbm-ui/lib/mui';
17
+ import { ListItem, ListItemText, Stack } from 'fbm-ui/lib/mui';
18
18
  import update from 'immutability-helper';
19
19
  import { useCallback } from 'react';
20
20
  var AnalysisItem = function (props) {
21
21
  var _a;
22
- 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;
23
- var _c = useAiAnalysisStore(function (store) { return [store.aiAbilities]; }), aiAbilities = _c.aiAbilities, updateAiAbilities = _c.updateAiAbilities, updateAiAbilitiesWeight = _c.updateAiAbilitiesWeight, removeAiAbilities = _c.removeAiAbilities;
22
+ 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;
23
+ var _c = useAiAnalysisStore(function (store) { return [
24
+ store.aiAbilities,
25
+ ]; }), aiAbilities = _c.aiAbilities, updateAiAbilities = _c.updateAiAbilities, updateAiAbilitiesWeight = _c.updateAiAbilitiesWeight, removeAiAbilities = _c.removeAiAbilities, updateAiAbilitiesChildWeight = _c.updateAiAbilitiesChildWeight;
24
26
  var desc = props.desc || props.name;
25
27
  var NotUsedAilibity = ['英文能力', '游戏测评'];
26
28
  if (abilityType === 2 && !isWorkplace) {
@@ -39,6 +41,13 @@ var AnalysisItem = function (props) {
39
41
  var value = _a.target.value;
40
42
  updateAiAbilitiesWeight(value, index);
41
43
  }, [updateAiAbilitiesWeight, index]);
42
- return (_jsxs(Box, { children: [_jsxs(ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: _jsx(IconButton, __assign({ size: "small", sx: { position: 'relative', left: 16 }, onClick: handleRemove }, { children: _jsx(CloseIcon, {}) })) }, { children: [_jsx(ListItemText, { children: _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "subtitle2", style: { maxWidth: '158px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' } }, { children: name })), abilityType === 2 && !isWorkplace ? (_jsx(Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : (_jsxs(_Fragment, { children: [abilityType === 2 && isWorkplace && type === 3 && _jsx(Chip, { color: 'primary', label: '自定义', size: "small", sx: { ml: 1 } }), _jsx(Tooltip, __assign({ title: "".concat(desc), placement: "bottom-start" }, { children: _jsx(Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1 } }, { children: _jsx(InfoIcon, { sx: { color: 'rgba(0, 0, 0, 0.26)', fontSize: 16 } }) })) }))] })), type === 8 && (_jsx(Select, { sx: { width: 150, ml: 1 }, options: willOrNotOptions, value: (_a = JSON.parse(extra)) === null || _a === void 0 ? void 0 : _a.expect, size: "small", onChange: handleWillOrNotChange }))] })) }), (abilityType === 1 || (abilityType === 2 && isWorkplace)) && (_jsx(Input, { sx: { width: 84, mr: 1 }, value: weight, disabled: index === aiAbilities.length - 1, size: "small", endAdornment: "%", onChange: handleWeightChange }))] })), type === 6 && _jsx(MainPoints, { extra: extra, index: index })] }));
44
+ return (_jsxs(Box, { children: [_jsxs(ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: _jsx(IconButton, __assign({ size: "small", sx: { position: 'relative', left: 16 }, onClick: handleRemove }, { children: _jsx(CloseIcon, {}) })) }, { children: [_jsx(ListItemText, { children: _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "subtitle2", style: { maxWidth: '158px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' } }, { children: name })), abilityType === 2 && !isWorkplace ? (_jsx(Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : (_jsxs(_Fragment, { children: [abilityType === 2 && isWorkplace && type === 3 && _jsx(Chip, { color: 'primary', label: '自定义', size: "small", sx: { ml: 1 } }), _jsx(Tooltip, __assign({ title: "".concat(desc), placement: "bottom-start" }, { children: _jsx(Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1 } }, { children: _jsx(InfoIcon, { sx: { color: 'rgba(0, 0, 0, 0.26)', fontSize: 16 } }) })) }))] })), type === 8 && (_jsx(Select, { sx: { width: 150, ml: 1 }, options: willOrNotOptions, value: (_a = JSON.parse(extra)) === null || _a === void 0 ? void 0 : _a.expect, size: "small", onChange: handleWillOrNotChange }))] })) }), (abilityType === 1 || (abilityType === 2 && isWorkplace)) && (_jsx(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 && (_jsxs(Stack, __assign({ sx: {
45
+ backgroundColor: 'rgba(0, 0, 0, 0.04)',
46
+ pl: 2,
47
+ pt: 1,
48
+ } }, { children: [_jsx(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 (_jsxs(ListItem, __assign({ sx: { pl: 0, pr: 4, ml: 2 } }, { children: [_jsx(ListItemText, { children: _jsx(Box, __assign({ display: "flex", alignItems: "center" }, { children: _jsx(Typography, __assign({ variant: "subtitle2", style: { maxWidth: '158px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' } }, { children: item.name })) })) }), _jsx(Input, { sx: { width: 84, mr: 1 }, value: item.weight, disabled: index === child.length - 1, size: "small", endAdornment: "%", onChange: function (_a) {
49
+ var value = _a.target.value;
50
+ return updateAiAbilitiesChildWeight(value, index, index);
51
+ } })] }), item.token)); })] }))), type === 6 && _jsx(MainPoints, { extra: extra, index: index })] }));
43
52
  };
44
53
  export default AnalysisItem;
@@ -3,6 +3,12 @@ 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;
6
12
  };
7
13
  export declare const CATEGORY_NAME: {
8
14
  1: string;
@@ -16,10 +22,31 @@ export declare const SERVER_LANGUAGE_TYPE: {
16
22
  12: number;
17
23
  11: number;
18
24
  13: number;
25
+ 19: number;
26
+ 20: number;
27
+ 21: number;
28
+ 22: number;
29
+ 23: number;
30
+ 24: number;
19
31
  };
20
32
  export declare const LANGUAGE_SHOW_NAME: {
21
33
  2: string;
22
34
  13: string;
23
35
  12: string;
24
36
  11: string;
37
+ 19: string;
38
+ 20: string;
39
+ };
40
+ export declare const LANGUAGE_SHOW_NAMES: {
41
+ 1: string;
42
+ 2: string;
43
+ 3: string;
44
+ 4: string;
45
+ 5: string;
46
+ 6: string;
47
+ 7: string;
48
+ 8: string;
49
+ 9: string;
50
+ 10: string;
25
51
  };
52
+ export declare const LANGUAGE_SHOW_NAMES_ORDER: number[];
@@ -1,15 +1,21 @@
1
1
  var _a, _b;
2
2
  import { CATEGORY_TYPE, LANGUAGE_TYPE } from "../../../../enum/ai-question";
3
- var MANDARIN = LANGUAGE_TYPE.MANDARIN, CANTONESE = LANGUAGE_TYPE.CANTONESE, JAPANESE = LANGUAGE_TYPE.JAPANESE, ENGLISH = LANGUAGE_TYPE.ENGLISH;
3
+ var MANDARIN = LANGUAGE_TYPE.MANDARIN, CANTONESE = LANGUAGE_TYPE.CANTONESE, JAPANESE = LANGUAGE_TYPE.JAPANESE, ENGLISH = LANGUAGE_TYPE.ENGLISH, KOREAN = LANGUAGE_TYPE.KOREAN, SPANISH = LANGUAGE_TYPE.SPANISH, ITALIAN = LANGUAGE_TYPE.ITALIAN, RUSSIAN = LANGUAGE_TYPE.RUSSIAN, FRENCH = LANGUAGE_TYPE.FRENCH, GERMAN = LANGUAGE_TYPE.GERMAN;
4
4
  var LANGUAGE = CATEGORY_TYPE.LANGUAGE, SEMANTICS = CATEGORY_TYPE.SEMANTICS, EXPRESSION = CATEGORY_TYPE.EXPRESSION, FORM = CATEGORY_TYPE.FORM, LANGUAGE_ABILITY = CATEGORY_TYPE.LANGUAGE_ABILITY;
5
5
  export var LANGUAGE_NAMES = {
6
6
  1: '中文-普通话',
7
7
  2: '日语',
8
8
  3: '英语',
9
9
  4: '中文-粤语',
10
+ 5: '韩语',
11
+ 6: '西班牙语',
12
+ 7: '意大利语',
13
+ 8: '俄语',
14
+ 9: '法语',
15
+ 10: '德语',
10
16
  };
11
17
  export var CATEGORY_NAME = (_a = {},
12
- _a[LANGUAGE] = '语种',
18
+ _a[LANGUAGE] = '候选人语种',
13
19
  _a[SEMANTICS] = '语意',
14
20
  _a[EXPRESSION] = '表达',
15
21
  _a[FORM] = '形象',
@@ -20,6 +26,12 @@ export var SERVER_LANGUAGE_TYPE = (_b = {},
20
26
  _b[JAPANESE] = 2,
21
27
  _b[ENGLISH] = 3,
22
28
  _b[CANTONESE] = 4,
29
+ _b[KOREAN] = 5,
30
+ _b[SPANISH] = 6,
31
+ _b[ITALIAN] = 7,
32
+ _b[RUSSIAN] = 8,
33
+ _b[FRENCH] = 9,
34
+ _b[GERMAN] = 10,
23
35
  _b);
24
36
  // 由于语种value 和 name的映射不对应,这里用于前端显示 AI基础能力 中文|英文表达
25
37
  export var LANGUAGE_SHOW_NAME = {
@@ -27,4 +39,19 @@ export var LANGUAGE_SHOW_NAME = {
27
39
  13: '中文',
28
40
  12: '日语',
29
41
  11: '英文',
42
+ 19: '韩语',
43
+ 20: '西班牙',
30
44
  };
45
+ export var LANGUAGE_SHOW_NAMES = {
46
+ 1: '普通话',
47
+ 2: '日语',
48
+ 3: '英语',
49
+ 4: '粤语',
50
+ 5: '韩语',
51
+ 6: '西班牙语',
52
+ 7: '意大利语',
53
+ 8: '俄语',
54
+ 9: '法语',
55
+ 10: '德语',
56
+ };
57
+ export var LANGUAGE_SHOW_NAMES_ORDER = [1, 4, 2, 3, 5, 6, 7, 8, 9, 10];