eli-video-interview 1.2.20 → 1.2.25
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.
- package/esm/assets/icons/AI.svg +1 -0
- package/esm/components/AiHeaderTitle/index.d.ts +4 -0
- package/esm/components/AiHeaderTitle/index.js +19 -0
- package/esm/components/AiHeaderTitle/interface.d.ts +4 -0
- package/esm/components/AiHeaderTitle/interface.js +1 -0
- package/esm/modules/ai-ability/interface.d.ts +1 -0
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +12 -7
- package/esm/modules/ai-question/components/AiAnalysis/index.js +9 -17
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +6 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +7 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +1 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +24 -23
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +6 -0
- package/esm/modules/ai-question/components/QuestionModel/index.js +6 -6
- package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +19 -10
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +41 -8
- package/esm/modules/ai-question/interface.d.ts +2 -0
- package/esm/modules/ai-report/Root.js +7 -5
- package/esm/modules/ai-report/components/AIEvaluate/index.js +10 -9
- package/esm/modules/ai-report/components/ScoreReport/Report.js +13 -5
- package/esm/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
- package/esm/modules/ai-report/components/Suggestion/Suggestion.js +29 -0
- package/esm/modules/ai-report/components/Suggestion/index.d.ts +2 -0
- package/esm/modules/ai-report/components/Suggestion/index.js +27 -0
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +5 -5
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +9 -9
- package/esm/modules/ai-report/components/VideoQuestion/index.js +4 -3
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.js +24 -0
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +55 -0
- package/esm/modules/ai-report/components/WorkPlaces/index.d.ts +2 -0
- package/esm/modules/ai-report/components/WorkPlaces/index.js +67 -0
- package/esm/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
- package/esm/modules/ai-report/components/WorkPlaces/interface.js +1 -0
- package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
- package/esm/modules/ai-report/components/WorkPlaces/styled.js +27 -0
- package/esm/modules/ai-report/interface.d.ts +38 -0
- package/esm/services/ai-ability.d.ts +1 -0
- package/esm/services/ai-report.d.ts +5 -0
- package/esm/services/ai-report.js +4 -0
- package/esm/store/ai-ability/question-ability-store.d.ts +12 -0
- package/esm/store/ai-ability/question-ability-store.js +10 -0
- package/esm/store/ai-question/ai-analysis-store.d.ts +7 -3
- package/esm/store/ai-question/ai-analysis-store.js +24 -10
- package/lib/assets/icons/AI.svg +1 -0
- package/lib/components/AiHeaderTitle/index.d.ts +4 -0
- package/lib/components/AiHeaderTitle/index.js +24 -0
- package/lib/components/AiHeaderTitle/interface.d.ts +4 -0
- package/lib/components/AiHeaderTitle/interface.js +2 -0
- package/lib/modules/ai-ability/interface.d.ts +1 -0
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +1 -1
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +12 -7
- package/lib/modules/ai-question/components/AiAnalysis/index.js +8 -16
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +6 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +8 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +1 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +24 -23
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +6 -0
- package/lib/modules/ai-question/components/QuestionModel/index.js +6 -6
- package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +19 -10
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +41 -8
- package/lib/modules/ai-question/interface.d.ts +2 -0
- package/lib/modules/ai-report/Root.js +7 -5
- package/lib/modules/ai-report/components/AIEvaluate/index.js +9 -8
- package/lib/modules/ai-report/components/ScoreReport/Report.js +13 -5
- package/lib/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
- package/lib/modules/ai-report/components/Suggestion/Suggestion.js +31 -0
- package/lib/modules/ai-report/components/Suggestion/index.d.ts +2 -0
- package/lib/modules/ai-report/components/Suggestion/index.js +32 -0
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +5 -5
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +9 -9
- package/lib/modules/ai-report/components/VideoQuestion/index.js +4 -3
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.js +26 -0
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +57 -0
- package/lib/modules/ai-report/components/WorkPlaces/index.d.ts +2 -0
- package/lib/modules/ai-report/components/WorkPlaces/index.js +72 -0
- package/lib/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
- package/lib/modules/ai-report/components/WorkPlaces/interface.js +2 -0
- package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
- package/lib/modules/ai-report/components/WorkPlaces/styled.js +30 -0
- package/lib/modules/ai-report/interface.d.ts +38 -0
- package/lib/services/ai-ability.d.ts +1 -0
- package/lib/services/ai-report.d.ts +5 -0
- package/lib/services/ai-report.js +6 -1
- package/lib/store/ai-ability/question-ability-store.d.ts +12 -0
- package/lib/store/ai-ability/question-ability-store.js +13 -0
- package/lib/store/ai-question/ai-analysis-store.d.ts +7 -3
- package/lib/store/ai-question/ai-analysis-store.js +24 -10
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><defs><linearGradient id="a" x1="36.62%" x2="71.052%" y1="76.01%" y2="4.425%"><stop offset="0%" stop-color="#00B768"/><stop offset="39%" stop-color="#00AF62"/><stop offset="100%" stop-color="#009953"/><stop offset="100%" stop-color="#009953"/></linearGradient></defs><g fill="none" transform="translate(3 7.16)"><rect width="3.109" height="8.176" x="18.116" y="4.824" fill="#00D97C" rx="1.554"/><path fill="#00D97C" d="M21.4330891 1.95993177 21.4367129 1.93267091C21.4403366 1.90483003 21.4433564 1.87466908 21.4457722 1.84798824L21.4457722 1.82072738C21.4457722 1.78476624 21.4500001 1.74822509 21.4500001 1.71168394L21.4500001 1.71168394C21.4502442 1.01957447 21.0163106.395484118 20.3505677.130462712 19.6848249-.134558695 18.9184003.0116886167 18.4087228.50100097 17.8990452.990313327 17.7465029 1.72631363 18.0222352 2.36576189 18.2979675 3.00521015 18.947665 3.42215785 19.6683358 3.42215789L19.6683358 3.42215789 19.6683358 4.1645813C19.8960264 4.05611788 21.1945274 3.17855021 21.4167824 2.03997429 21.4236272 2.01329345 21.4290628 1.98661261 21.4330891 1.95993177ZM15.4605889 10.719948 9.60706759.98260094C9.24145617.374932483 8.56614784.000646522375 7.83536873.000646522375 7.10458966.000646522375 6.42928134.374932483 6.06366994.98260094L5.39026133 2.1037763 5.39026133 2.1037763 4.64920987 3.33515515C4.92547127 2.86174873 5.4452855 2.56740188 6.01035444 2.56440169 6.57542336 2.5614015 7.09859463 2.8502107 7.3802895 3.32065469L7.3802895 3.32065469 12.7367568 12.2303157C13.0172603 12.6974945 13.5359784 12.9854694 14.0975151 12.9857635 14.6590517 12.9860566 15.178096 12.6986244 15.4591292 12.2317392 15.7401622 11.7648541 15.7404885 11.1894469 15.4599849 10.7222681L15.4605889 10.719948Z"/><path fill="url(#a)" d="M7.37968551,3.32065469 C7.09841787,2.85095068 6.57638695,2.56226386 6.01219476,2.56439864 C5.44800258,2.56658124 4.92838341,2.85925359 4.65102173,3.33109501 L1.83840835,8.01126263 C1.83808295,8.0127936 1.83808295,8.01437187 1.83840835,8.01590276 L0.210148599,10.719948 C-0.0703549557,11.1871269 -0.0700287417,11.762534 0.21100436,12.2294192 C0.49203746,12.6963044 1.01108183,12.9837366 1.57261848,12.9834434 C2.13415513,12.9831493 2.65287327,12.6951745 2.9333768,12.2279956 L7.83506677,4.07409845 L7.38089343,3.32007467 L7.37968551,3.32065469 Z"/></g></svg>
|
|
@@ -0,0 +1,19 @@
|
|
|
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 SvgIcon from "../SvgIcon";
|
|
14
|
+
import { Box, Typography } from 'fbm-ui';
|
|
15
|
+
var AiHeaderTitle = function (_a) {
|
|
16
|
+
var name = _a.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 }))] })));
|
|
18
|
+
};
|
|
19
|
+
export default AiHeaderTitle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,17 +10,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
13
|
+
import { willOrNotOptions } from './const';
|
|
14
|
+
import MainPoints from './MainPoints';
|
|
15
|
+
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
14
16
|
import { Box, CloseIcon, IconButton, InfoIcon, Input, Select, Tooltip, Typography } from 'fbm-ui';
|
|
15
17
|
import { ListItem, ListItemText } from 'fbm-ui/lib/mui';
|
|
16
18
|
import update from 'immutability-helper';
|
|
17
|
-
import {
|
|
18
|
-
import { willOrNotOptions } from './const';
|
|
19
|
-
import MainPoints from './MainPoints';
|
|
19
|
+
import { useCallback } from 'react';
|
|
20
20
|
var AnalysisItem = function (props) {
|
|
21
21
|
var _a;
|
|
22
|
-
var name = props.name,
|
|
23
|
-
var
|
|
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;
|
|
24
|
+
var desc = props.desc || props.name;
|
|
25
|
+
var NotUsedAilibity = ['英文能力', '游戏测评'];
|
|
26
|
+
if (abilityType === 2 && !isWorkplace) {
|
|
27
|
+
desc = "".concat(NotUsedAilibity.includes(name) ? name : '自定义能力', "\u4E0D\u80FD\u53C2\u4E0EAI\u5206\u6790");
|
|
28
|
+
}
|
|
24
29
|
var handleRemove = useCallback(function () {
|
|
25
30
|
removeAiAbilities(index);
|
|
26
31
|
}, [index, removeAiAbilities]);
|
|
@@ -34,6 +39,6 @@ var AnalysisItem = function (props) {
|
|
|
34
39
|
var value = _a.target.value;
|
|
35
40
|
updateAiAbilitiesWeight(value, index);
|
|
36
41
|
}, [updateAiAbilitiesWeight, index]);
|
|
37
|
-
return (_jsxs(Box, { children: [_jsxs(ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: _jsx(IconButton, __assign({ 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" }, { children: name })), _jsx(Tooltip, __assign({ title: "".concat(desc) }, { 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 }))] })) }), _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 })] }));
|
|
42
|
+
return (_jsxs(Box, { children: [_jsxs(ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: _jsx(IconButton, __assign({ 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" }, { children: name })), abilityType === 2 && !isWorkplace ? (_jsx(Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : (_jsx(Tooltip, __assign({ title: "".concat(desc) }, { 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 })] }));
|
|
38
43
|
};
|
|
39
44
|
export default AnalysisItem;
|
|
@@ -9,27 +9,19 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
13
|
-
import { useCallback, useState } from 'react';
|
|
14
|
-
import { AddIcon, Box, Button, Checkbox, Typography } from 'fbm-ui';
|
|
15
|
-
import { Divider, List } from 'fbm-ui/lib/mui';
|
|
16
|
-
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
13
|
import AiAssessmentCriteria from '../AiAssessmentCriteria';
|
|
18
14
|
import { LANGUAGE_NAMES } from '../AiAssessmentCriteria/const';
|
|
19
15
|
import AnalysisItem from './AnalysisItem';
|
|
16
|
+
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
17
|
+
import { AddIcon, Box, Button, Typography } from 'fbm-ui';
|
|
18
|
+
import { Divider, List } from 'fbm-ui/lib/mui';
|
|
19
|
+
import { useState } from 'react';
|
|
20
20
|
var AiAnalysis = function () {
|
|
21
|
-
var _a = useAiAnalysisStore(function (store) { return [store.aiAbilities, store.analysisState]; }), aiAbilities = _a.aiAbilities, analysisState = _a.analysisState
|
|
21
|
+
var _a = useAiAnalysisStore(function (store) { return [store.aiAbilities, store.analysisState]; }), aiAbilities = _a.aiAbilities, analysisState = _a.analysisState;
|
|
22
22
|
var _b = useState(false), aiAnalysisOpen = _b[0], setAiAnalysisOpen = _b[1];
|
|
23
|
-
var
|
|
24
|
-
var isOpenAiAnalysis =
|
|
25
|
-
|
|
26
|
-
if (language !== undefined) {
|
|
27
|
-
updateState({ aiSwitch: checked ? 1 : 2 });
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
setAiAnalysisOpen(true);
|
|
31
|
-
}
|
|
32
|
-
}, [language, updateState]);
|
|
33
|
-
return (_jsxs(Box, { children: [aiAnalysisOpen && _jsx(AiAssessmentCriteria, { open: aiAnalysisOpen, onClose: function () { return setAiAnalysisOpen(false); } }), _jsxs(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "space-between" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", ml: "1px" }, { children: [_jsx(Checkbox, { checked: isOpenAiAnalysis, label: _jsx(Typography, __assign({ variant: "body2" }, { children: "\u5F00\u542FAI\u5206\u6790" })), onChange: handleAiSwitch }), isOpenAiAnalysis && (_jsxs(Typography, __assign({ variant: "caption", color: "secondary" }, { children: ["\u8BED\u79CD\uFF1A", language && LANGUAGE_NAMES[language]] })))] })), isOpenAiAnalysis && aiAbilities.length > 0 && (_jsx(Typography, __assign({ variant: "caption", display: "block", width: 122 }, { children: "\u6743\u91CD\uFF1A" })))] })), isOpenAiAnalysis && (_jsxs(_Fragment, { children: [aiAbilities.length ? (_jsx(List, { children: aiAbilities.map(function (item, index) { return (_jsx(AnalysisItem, __assign({ index: index }, item), item.token)); }) })) : (_jsx(Typography, __assign({ variant: "body2", color: "secondary", sx: { mt: 1, mb: 1 } }, { children: "\u672A\u9009\u62E9 AI \u8BC4\u5206\u7EF4\u5EA6,\u6D4B\u8BD5\u62A5\u544A\u4E0D\u4F1A\u5BF9\u5019\u9009\u4EBA\u8FDB\u884C\u8BC4\u5206" }))), _jsx(Divider, { sx: { mb: 1 } }), _jsx(Button, __assign({ variant: "text", color: "inherit", icon: _jsx(AddIcon, {}), onClick: function () { return setAiAnalysisOpen(true); } }, { children: "\u6DFB\u52A0AI\u5206\u6790\u7EF4\u5EA6" }))] }))] }));
|
|
23
|
+
var language = analysisState.language;
|
|
24
|
+
var isOpenAiAnalysis = aiAbilities.length > 0;
|
|
25
|
+
return (_jsxs(Box, { children: [aiAnalysisOpen && _jsx(AiAssessmentCriteria, { open: aiAnalysisOpen, onClose: function () { return setAiAnalysisOpen(false); } }), isOpenAiAnalysis && (_jsx(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "space-between" }, { children: _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "subtitle1" }, { children: "\u6743\u91CD\u8BBE\u7F6E" })), language && LANGUAGE_NAMES[language] && (_jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: "8px" }, { children: ["\u8BED\u79CD\uFF1A", language && LANGUAGE_NAMES[language]] })))] })) }))), aiAbilities.length > 0 && (_jsx(List, { children: aiAbilities.map(function (item, index) { return (_jsx(AnalysisItem, __assign({ index: index }, item), item.token)); }) })), _jsx(Divider, { sx: { mb: 1 } }), _jsx(Button, __assign({ variant: "text", color: "inherit", icon: _jsx(AddIcon, {}), onClick: function () { return setAiAnalysisOpen(true); } }, { children: "\u6DFB\u52A0AI\u5206\u6790\u7EF4\u5EA6" }))] }));
|
|
34
26
|
};
|
|
35
27
|
export default AiAnalysis;
|
|
@@ -10,16 +10,16 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { Box, FormControl, FormLabel } from 'fbm-ui/lib/mui';
|
|
16
|
-
import { useRequest, useSetState } from 'ahooks';
|
|
13
|
+
import { CATEGORY_NAME, LANGUAGE_SHOW_NAME, SERVER_LANGUAGE_TYPE } from './const';
|
|
14
|
+
import { groupCategory } from './utils';
|
|
17
15
|
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
18
16
|
import { CATEGORY_TYPE, LANGUAGE_TYPE } from "../../../../enum/ai-question";
|
|
19
17
|
import { PostAiAbilities } from "../../../../services/ai-question";
|
|
20
18
|
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
19
|
+
import { useRequest, useSetState } from 'ahooks';
|
|
20
|
+
import { Checkbox, Dialog, Loading, Radio, RadioGroup, Typography } from 'fbm-ui';
|
|
21
|
+
import { Box, Divider, FormControl, FormLabel } from 'fbm-ui/lib/mui';
|
|
22
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
23
23
|
var MANDARIN = LANGUAGE_TYPE.MANDARIN, CANTONESE = LANGUAGE_TYPE.CANTONESE;
|
|
24
24
|
var AiAssessmentCriteria = function (props) {
|
|
25
25
|
var open = props.open, onClose = props.onClose;
|
|
@@ -57,6 +57,7 @@ var AiAssessmentCriteria = function (props) {
|
|
|
57
57
|
setCheckAbilities((_a = {}, _a[key] = undefined, _a));
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
console.log(language);
|
|
60
61
|
setLanguage(language);
|
|
61
62
|
setCheckedChinese([MANDARIN, CANTONESE].includes(language));
|
|
62
63
|
setRelatedAbilities(item === null || item === void 0 ? void 0 : item.relatedAbilities);
|
|
@@ -79,23 +80,23 @@ var AiAssessmentCriteria = function (props) {
|
|
|
79
80
|
return (_jsxs(Box, { children: [(list.filter(function (_a) {
|
|
80
81
|
var type = _a.type;
|
|
81
82
|
return relatedAbilities === null || relatedAbilities === void 0 ? void 0 : relatedAbilities.includes(type);
|
|
82
|
-
}).length > 0 || type === CATEGORY_TYPE.LANGUAGE) && (_jsx(FormControl, { children: _jsxs(FormLabel, __assign({ component: "legend", style: { fontSize: 14, color: 'rgba(0,0,0,0.86)' } }, { children: [name, type === CATEGORY_TYPE.LANGUAGE && (_jsx(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 === CATEGORY_TYPE.LANGUAGE ? (_jsxs(RadioGroup, __assign({ sx: { mb: 1, ml: '4px' }, row: false, value: language, onChange: function (e) { return onLanguageChange(e, list); } }, { children: [_jsx(Radio, { value: "0", RadioProps: { checked: checkedChinese }, label: "\u4E2D\u6587" }), _jsx(RadioGroup, __assign({ value: language, sx: { ml: 3 }, onChange: function (e) { return onLanguageChange(e, list); } }, { children: list
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
83
|
+
}).length > 0 || type === CATEGORY_TYPE.LANGUAGE) && (_jsx(FormControl, { children: _jsxs(FormLabel, __assign({ component: "legend", style: { fontSize: 14, fontWeight: 400, color: 'rgba(0,0,0,0.86)' } }, { children: [type === CATEGORY_TYPE.LANGUAGE ? (_jsx(Typography, __assign({ style: { fontSize: 16, fontWeight: 500 } }, { children: name }))) : (_jsx(Typography, { children: type === CATEGORY_TYPE.EXPRESSION ? LANGUAGE_SHOW_NAME[language] + name : name })), type === CATEGORY_TYPE.LANGUAGE && (_jsx(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 === CATEGORY_TYPE.LANGUAGE ? (_jsxs(Box, { children: [_jsxs(RadioGroup, __assign({ sx: { mb: 1, ml: '4px' }, row: false, value: language, onChange: function (e) { return onLanguageChange(e, list); } }, { children: [_jsx(Radio, { value: "0", RadioProps: { checked: checkedChinese }, label: "\u4E2D\u6587" }), _jsx(RadioGroup, __assign({ value: language, sx: { ml: 3 }, onChange: function (e) { return onLanguageChange(e, list); } }, { children: list
|
|
84
|
+
.filter(function (_a) {
|
|
85
|
+
var type = _a.type;
|
|
86
|
+
return [MANDARIN, CANTONESE].includes(type);
|
|
87
|
+
})
|
|
88
|
+
.map(function (_a) {
|
|
89
|
+
var name = _a.name, type = _a.type, token = _a.token;
|
|
90
|
+
return checkedChinese && _jsx(Radio, { value: type, label: name }, token);
|
|
91
|
+
}) })), list
|
|
92
|
+
.filter(function (_a) {
|
|
93
|
+
var type = _a.type;
|
|
94
|
+
return ![MANDARIN, CANTONESE].includes(type);
|
|
95
|
+
})
|
|
96
|
+
.map(function (_a) {
|
|
97
|
+
var name = _a.name, type = _a.type, token = _a.token;
|
|
98
|
+
return (_jsx(Radio, { value: type, label: name }, token));
|
|
99
|
+
})] })), _jsx(Divider, { sx: { mb: 1 } }), _jsx(FormControl, { children: _jsx(FormLabel, __assign({ component: "legend", style: { fontSize: 16, color: 'rgba(0,0,0,0.86)', fontWeight: 500, marginBottom: 16 } }, { children: "AI\u57FA\u7840\u80FD\u529B" })) })] })) : (_jsx(_Fragment, { children: list.map(function (item) {
|
|
99
100
|
var name = item.name, desc = item.desc, type = item.type, token = item.token;
|
|
100
101
|
if (relatedAbilities === null || relatedAbilities === void 0 ? void 0 : relatedAbilities.includes(type)) {
|
|
101
102
|
var isLanguageAbility = [14, 15].includes(type);
|
|
@@ -9,6 +9,12 @@ export interface AiAbilityItem extends BaseAiAbilityParams {
|
|
|
9
9
|
groupName?: string;
|
|
10
10
|
isNotCompute?: boolean;
|
|
11
11
|
}
|
|
12
|
+
export interface WorkplaceItem {
|
|
13
|
+
token: string;
|
|
14
|
+
name: string;
|
|
15
|
+
weight: number | string;
|
|
16
|
+
isWorkplace?: boolean;
|
|
17
|
+
}
|
|
12
18
|
export declare type GroupCategoryRet = Array<{
|
|
13
19
|
name: string;
|
|
14
20
|
type: number;
|
|
@@ -10,17 +10,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { useEffect, useRef } from 'react';
|
|
14
|
-
import { useRequest } from 'ahooks';
|
|
15
|
-
import { PostAiModelDetails } from "../../../../services/ai-question";
|
|
16
|
-
import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
|
|
17
|
-
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
18
|
-
import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
|
|
19
13
|
import { defaultQuestionParams } from '../QuestionUpdate/const';
|
|
20
14
|
import QuestionModelHeader from './Header';
|
|
21
15
|
import QuestionModelList from './List';
|
|
22
16
|
import Skeleton from './Skeleton';
|
|
23
17
|
import { QuestionModelRoot } from './styled';
|
|
18
|
+
import { PostAiModelDetails } from "../../../../services/ai-question";
|
|
19
|
+
import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
|
|
20
|
+
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
21
|
+
import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
|
|
22
|
+
import { useRequest } from 'ahooks';
|
|
23
|
+
import { useEffect, useRef } from 'react';
|
|
24
24
|
var Question = function () {
|
|
25
25
|
var isDefaultAdded = useRef(false);
|
|
26
26
|
var _a = useAiQuestionStore(function (store) { return [store.token, store.name, store.templateList]; }), token = _a.token, name = _a.name, templateList = _a.templateList, onLoad = _a.onLoad;
|
|
@@ -46,16 +46,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
49
|
-
import { forwardRef, memo, useEffect, useImperativeHandle } from 'react';
|
|
50
|
-
import { Autocomplete, Box, Form, FormItem, Select, useForm } from 'fbm-ui';
|
|
51
|
-
import { useRequest } from 'ahooks';
|
|
52
|
-
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
53
|
-
import { PostQuestionCollectionList } from "../../../../services/ai-ability";
|
|
54
49
|
import AiAnalysis from '../AiAnalysis';
|
|
55
50
|
import { broadcastModeOptions, durationOptions, prepareTimeOptions } from './const';
|
|
56
51
|
import VideoVoice from './VideoVoice';
|
|
52
|
+
import { useQuestionCollectionListStore } from "../../../../store/ai-ability/question-ability-store";
|
|
53
|
+
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
54
|
+
import { PostQuestionCollectionList } from "../../../../services/ai-ability";
|
|
55
|
+
import { useRequest } from 'ahooks';
|
|
56
|
+
import { Autocomplete, Box, Form, FormItem, Select, useForm } from 'fbm-ui';
|
|
57
|
+
import { forwardRef, memo, useEffect, useImperativeHandle } from 'react';
|
|
57
58
|
var QuestionForm = forwardRef(function (props, ref) {
|
|
58
59
|
var aiShowType = props.aiShowType, initialValues = props.initialValues, values = props.values, preview = props.preview, onValuesChange = props.onValuesChange, onSubmit = props.onSubmit;
|
|
60
|
+
var _a = useQuestionCollectionListStore(function (store) { return [store.questionCollectionList]; }), questionCollectionList = _a.questionCollectionList, updateQuestionCollectionList = _a.updateQuestionCollectionList;
|
|
59
61
|
var data = useRequest(PostQuestionCollectionList, { manual: preview }).data;
|
|
60
62
|
var form = useForm({
|
|
61
63
|
initialValues: initialValues,
|
|
@@ -78,15 +80,22 @@ var QuestionForm = forwardRef(function (props, ref) {
|
|
|
78
80
|
}); });
|
|
79
81
|
useEffect(function () {
|
|
80
82
|
values && form.setValues(values);
|
|
83
|
+
updateQuestionCollectionList((data === null || data === void 0 ? void 0 : data.data.list) || []);
|
|
81
84
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
82
|
-
}, [values]);
|
|
85
|
+
}, [values, data]);
|
|
83
86
|
useEffect(function () {
|
|
84
|
-
console.log(form.values);
|
|
87
|
+
// console.log(form.values);
|
|
85
88
|
onValuesChange === null || onValuesChange === void 0 ? void 0 : onValuesChange(form.values);
|
|
86
89
|
}, [form.values, onValuesChange]);
|
|
87
|
-
return (_jsxs(_Fragment, { children: [_jsxs(Form, __assign({}, form, { children: [_jsx(FormItem, { required: true, disabled: preview, name: "name", label: "\u6807\u9898", placeholder: "\u6807\u9898\uFF08\u7528\u4E8E\u7CFB\u7EDF\u7BA1\u7406\uFF09", max: 15 }), _jsxs(Box, __assign({ display: "flex" }, { children: [!preview && aiShowType === ADD_QUESTION_TYPE.FREE && (_jsx(FormItem, __assign({ sx: { flex: '1 0', mr: 1 }, required: true, disabled: preview, name: "broadcastType", label: "\u64AD\u62A5\u65B9\u5F0F" }, { children: _jsx(Select, { placeholder: "\u64AD\u62A5\u65B9\u5F0F", options: broadcastModeOptions }) }))), !preview && (_jsx(FormItem, __assign({ style: { flex: '1 0' }, disabled: preview, name: "category", label: "\u8003\u5BDF\u80FD\u529B" }, { children: _jsx(Autocomplete, { placeholder: "\u8003\u5BDF\u80FD\u529B", options:
|
|
88
|
-
var tag = _a.tag;
|
|
89
|
-
return ({
|
|
90
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Form, __assign({}, form, { children: [_jsx(FormItem, { required: true, disabled: preview, name: "name", label: "\u6807\u9898", placeholder: "\u6807\u9898\uFF08\u7528\u4E8E\u7CFB\u7EDF\u7BA1\u7406\uFF09", max: 15 }), _jsxs(Box, __assign({ display: "flex" }, { children: [!preview && aiShowType === ADD_QUESTION_TYPE.FREE && (_jsx(FormItem, __assign({ sx: { flex: '1 0', mr: 1 }, required: true, disabled: preview, name: "broadcastType", label: "\u64AD\u62A5\u65B9\u5F0F" }, { children: _jsx(Select, { placeholder: "\u64AD\u62A5\u65B9\u5F0F", options: broadcastModeOptions }) }))), !preview && (_jsx(FormItem, __assign({ style: { flex: '1 0' }, disabled: preview, name: "category", label: "\u8003\u5BDF\u80FD\u529B" }, { children: _jsx(Autocomplete, { placeholder: "\u8003\u5BDF\u80FD\u529B", options: questionCollectionList.map(function (_a) {
|
|
91
|
+
var tag = _a.tag, token = _a.token, isWorkplace = _a.isWorkplace;
|
|
92
|
+
return ({
|
|
93
|
+
label: tag,
|
|
94
|
+
value: tag,
|
|
95
|
+
name: tag,
|
|
96
|
+
token: token,
|
|
97
|
+
isWorkplace: isWorkplace,
|
|
98
|
+
});
|
|
90
99
|
}) }) })))] })), form.values.broadcastType === 1 || preview ? (_jsx(FormItem, { required: true, disabled: preview, name: "desc", label: "\u9762\u8BD5\u5185\u5BB9", max: 300, placeholder: "\u9762\u8BD5\u5185\u5BB9\uFF08\u7CFB\u7EDF\u5C06\u6839\u636E\u6B64\u5185\u5BB9\u5411\u5019\u9009\u4EBA\u8FDB\u884C\u8BED\u97F3\u64AD\u62A5\uFF09" })) : (_jsx(VideoVoice, {})), aiShowType === ADD_QUESTION_TYPE.LANGUAGE && (_jsx(FormItem, { sx: { height: 'auto', mb: 2 }, required: true, name: "readText", label: "\u6717\u8BFB\u5185\u5BB9", max: 240, InputProps: {
|
|
91
100
|
rows: 3,
|
|
92
101
|
multiline: true,
|
|
@@ -57,16 +57,16 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
57
57
|
return t;
|
|
58
58
|
};
|
|
59
59
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
60
|
-
import {
|
|
61
|
-
import
|
|
62
|
-
import { MenuItem } from 'fbm-ui/lib/mui';
|
|
60
|
+
import { defaultQuestionParams } from './const';
|
|
61
|
+
import Form from './Form';
|
|
63
62
|
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
64
63
|
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
65
64
|
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
66
65
|
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
67
66
|
import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
|
|
68
|
-
import {
|
|
69
|
-
import
|
|
67
|
+
import { Box, Button, confirm, Dialog, Message, Popover, Typography } from 'fbm-ui';
|
|
68
|
+
import { MenuItem } from 'fbm-ui/lib/mui';
|
|
69
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
70
70
|
var QuestionUpdate = function () {
|
|
71
71
|
var _a;
|
|
72
72
|
var formRef = useRef();
|
|
@@ -76,6 +76,7 @@ var QuestionUpdate = function () {
|
|
|
76
76
|
var _e = useAiAnalysisStore(function (store) { return [
|
|
77
77
|
store.aiAbilities,
|
|
78
78
|
store.analysisState,
|
|
79
|
+
store.workplaces,
|
|
79
80
|
]; }), aiAbilities = _e.aiAbilities, analysisState = _e.analysisState, setKeyPointAnalysisError = _e.setKeyPointAnalysisError, updateAiAbilities = _e.updateAiAbilities, updateState = _e.updateState;
|
|
80
81
|
var open = questionState.open, item = questionState.item, aiShowType = questionState.aiShowType, token = questionState.token, index = questionState.index;
|
|
81
82
|
var initialValues = {
|
|
@@ -85,7 +86,7 @@ var QuestionUpdate = function () {
|
|
|
85
86
|
readText: (_a = item === null || item === void 0 ? void 0 : item.extra) === null || _a === void 0 ? void 0 : _a.readText,
|
|
86
87
|
prepareTime: item === null || item === void 0 ? void 0 : item.prepareTime,
|
|
87
88
|
duration: item === null || item === void 0 ? void 0 : item.duration,
|
|
88
|
-
category: (item === null || item === void 0 ? void 0 : item.category) ? { label: item === null || item === void 0 ? void 0 : item.category[0], value: item === null || item === void 0 ? void 0 : item.category[0] } : { label: '', value: '' },
|
|
89
|
+
category: (item === null || item === void 0 ? void 0 : item.category) ? { label: (item === null || item === void 0 ? void 0 : item.category[0]) || '', value: (item === null || item === void 0 ? void 0 : item.category[0]) || '' } : { label: '', value: '' },
|
|
89
90
|
};
|
|
90
91
|
var CustomHeader = function () {
|
|
91
92
|
var content = (_jsxs(_Fragment, { children: [_jsx(MenuItem, __assign({ sx: { backgroundColor: aiShowType === ADD_QUESTION_TYPE.FREE ? 'rgba(76, 175, 80, 0.08)' : 'rgba(255, 255, 255, 1)' }, onClick: function () {
|
|
@@ -193,13 +194,45 @@ var QuestionUpdate = function () {
|
|
|
193
194
|
}
|
|
194
195
|
});
|
|
195
196
|
}); }, [getModelParams, item === null || item === void 0 ? void 0 : item.videoBroadcast.videoUrl, token, editModel, index, addModel, updateQuestionState]);
|
|
197
|
+
var handleValuesChange = useCallback(function (value) {
|
|
198
|
+
var curAiAbilities = item.aiAbilities;
|
|
199
|
+
// 勘察能力为发生变化
|
|
200
|
+
var WorkplaceIndex = curAiAbilities.findIndex(function (v) { var _a; return v.name === ((_a = value.category) === null || _a === void 0 ? void 0 : _a.label); });
|
|
201
|
+
if (WorkplaceIndex > -1) {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
// 考察能力更改
|
|
205
|
+
if (value.category && value.category.label) {
|
|
206
|
+
var isInit = true;
|
|
207
|
+
// 考察能力是否包含在AI能力
|
|
208
|
+
var workplaceTypeIndex = curAiAbilities.findIndex(function (v) { return v.abilityType === 2; });
|
|
209
|
+
var isNotCompute = !value.category.isWorkplace;
|
|
210
|
+
var CurWorkPlaceItem = workplaceTypeIndex > -1
|
|
211
|
+
? __assign(__assign(__assign({}, curAiAbilities[workplaceTypeIndex]), value.category), { isNotCompute: isNotCompute }) : __assign(__assign({ abilityType: 2 }, value.category), { weight: 0, isNotCompute: isNotCompute, name: value.category.label, isWorkplace: true });
|
|
212
|
+
isInit = CurWorkPlaceItem.weight === 0 || workplaceTypeIndex === -1;
|
|
213
|
+
curAiAbilities.splice(0, 1, CurWorkPlaceItem);
|
|
214
|
+
// console.log('curAiAbilities', curAiAbilities);
|
|
215
|
+
updateAiAbilities(curAiAbilities, isInit);
|
|
216
|
+
}
|
|
217
|
+
else if (!value.category || !value.category.label) {
|
|
218
|
+
// 考察能力删除
|
|
219
|
+
curAiAbilities = item.aiAbilities.filter(function (v) { return v.abilityType === 1; });
|
|
220
|
+
updateAiAbilities(curAiAbilities);
|
|
221
|
+
}
|
|
222
|
+
}, [item.aiAbilities, updateAiAbilities]);
|
|
196
223
|
useEffect(function () {
|
|
224
|
+
var _a;
|
|
197
225
|
if (open) {
|
|
198
226
|
updateState({ language: item.language, aiSwitch: item.aiSwitch });
|
|
199
227
|
updateAiAbilities(item.aiAbilities, true);
|
|
200
228
|
}
|
|
229
|
+
// 删除职场呢能力时
|
|
230
|
+
var WorkplaceIndex = aiAbilities.findIndex(function (v) { return v.abilityType === 1; });
|
|
231
|
+
if (WorkplaceIndex === -1) {
|
|
232
|
+
(_a = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _a === void 0 ? void 0 : _a.setFormValues({ category: { label: '', value: '' } });
|
|
233
|
+
}
|
|
201
234
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
202
|
-
}, [open]);
|
|
203
|
-
return (_jsx(Dialog, __assign({ open: open, header: CustomHeader, size: "sm", okText: "\u786E\u8BA4", onClose: handleClose, onOk: handleOk }, { children: _jsx(ScrollDialogContent, { children: _jsx(Box, __assign({ sx: { mt: 1 } }, { children: _jsx(Form, { ref: formRef, initialValues: initialValues, aiShowType: aiShowType, onSubmit: handleSubmit }) })) }) })));
|
|
235
|
+
}, [open, item.aiAbilities]);
|
|
236
|
+
return (_jsx(Dialog, __assign({ open: open, header: CustomHeader, size: "sm", okText: "\u786E\u8BA4", onClose: handleClose, onOk: handleOk }, { children: _jsx(ScrollDialogContent, { children: _jsx(Box, __assign({ sx: { mt: 1 } }, { children: _jsx(Form, { ref: formRef, initialValues: initialValues, aiShowType: aiShowType, onSubmit: handleSubmit, onValuesChange: handleValuesChange }) })) }) })));
|
|
204
237
|
};
|
|
205
238
|
export default QuestionUpdate;
|
|
@@ -13,7 +13,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
13
13
|
import AIEvaluate from './components/AIEvaluate';
|
|
14
14
|
import NotFinish from './components/NotFinish';
|
|
15
15
|
import ScoreReport from './components/ScoreReport';
|
|
16
|
+
import Suggestion from './components/Suggestion';
|
|
16
17
|
import VideoQuestion from './components/VideoQuestion';
|
|
18
|
+
import WorkPlaces from './components/WorkPlaces';
|
|
17
19
|
import { INTERVIEW_STATUS } from "../../enum/ai-report";
|
|
18
20
|
import { PostAiInterviewResult } from "../../services/ai-report";
|
|
19
21
|
import { useAiReportStore } from "../../store/ai-report/global-store";
|
|
@@ -25,8 +27,8 @@ var AiReportRoot = forwardRef(function (props, ref) {
|
|
|
25
27
|
var token = props.token, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onSendReminderClick = props.onSendReminderClick;
|
|
26
28
|
var firstLoad = useRef(true);
|
|
27
29
|
var _a = useAiReportStore(), updateState = _a.updateState, updateReportResult = _a.updateReportResult, reportResult = _a.reportResult;
|
|
28
|
-
var _b =
|
|
29
|
-
var
|
|
30
|
+
var _b = reportResult || {}, _c = _b.collection, collection = _c === void 0 ? [] : _c, _d = _b.suggestion, suggestion = _d === void 0 ? { abilitys: [] } : _d, _e = _b.workplaces, workplaces = _e === void 0 ? [] : _e;
|
|
31
|
+
var _f = useRequest(function () { return PostAiInterviewResult([token]); }, {
|
|
30
32
|
manual: true,
|
|
31
33
|
onSuccess: function (_a) {
|
|
32
34
|
var list = _a.data.list;
|
|
@@ -44,7 +46,7 @@ var AiReportRoot = forwardRef(function (props, ref) {
|
|
|
44
46
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad(__assign({ pageStepIndexes: pageStepIndexes_1 }, result));
|
|
45
47
|
}
|
|
46
48
|
},
|
|
47
|
-
}), data =
|
|
49
|
+
}), data = _f.data, loading = _f.loading, postAiInterviewResult = _f.run;
|
|
48
50
|
var status = (data === null || data === void 0 ? void 0 : data.data.list[0].status) || NO_ANSWER;
|
|
49
51
|
var handleRefreshSuccess = useCallback(function () {
|
|
50
52
|
postAiInterviewResult();
|
|
@@ -66,9 +68,9 @@ var AiReportRoot = forwardRef(function (props, ref) {
|
|
|
66
68
|
return (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", style: { marginTop: '149px' } }, { children: [_jsx(Box, { children: _jsx("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/CandidateInfoEmpty.png", alt: "", style: { width: '140px', height: '140px' } }) }), _jsx(Box, __assign({ mt: 2 }, { children: _jsx(Typography, __assign({ variant: "body1", color: "textPrimary", style: { fontWeight: '500' } }, { children: "\u8BE5\u5019\u9009\u4EBA\u5C1A\u672A\u5F00\u59CB\u9762\u8BD5" })) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('sendReminder')) && (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ style: { marginTop: '2px' } }, { children: _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u82E5\u957F\u65F6\u95F4\u672A\u5F00\u59CB\uFF0C\u5EFA\u8BAE\u4F60\u7ED9\u5019\u9009\u4EBA\u53D1\u9001\u77ED\u4FE1\u63D0\u9192" })) })), _jsx(Box, __assign({ mt: 2 }, { children: _jsx(Button, __assign({ size: "large", variant: "outlined", color: "primary", disabled: reminderSent, onClick: onSendReminderClick }, { children: reminderSent ? '已提醒' : '发送提醒' })) }))] }))] })));
|
|
67
69
|
}
|
|
68
70
|
else {
|
|
69
|
-
return (_jsxs(Box, { children: [_jsx(NotFinish, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && _jsx(ScoreReport, { onRefreshSuccess: handleRefreshSuccess }), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && _jsx(AIEvaluate, {}), _jsx(VideoQuestion, {})] }));
|
|
71
|
+
return (_jsxs(Box, { children: [_jsx(NotFinish, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && _jsx(ScoreReport, { onRefreshSuccess: handleRefreshSuccess }), (workplaces === null || workplaces === void 0 ? void 0 : workplaces.length) > 0 && _jsx(WorkPlaces, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && _jsx(AIEvaluate, {}), _jsx(Suggestion, {}), _jsx(VideoQuestion, {})] }));
|
|
70
72
|
}
|
|
71
|
-
}, [handleRefreshSuccess, onSendReminderClick, reminderSent, status, operableButtons, collection]);
|
|
73
|
+
}, [handleRefreshSuccess, onSendReminderClick, reminderSent, status, operableButtons, collection, workplaces, suggestion]);
|
|
72
74
|
return (_jsx(Box, __assign({ loading: firstLoad.current && loading, sx: { width: '100%', minHeight: '584px', height: '100%', margin: '0 auto', overflow: 'auto' } }, { children: aiReportResult })));
|
|
73
75
|
});
|
|
74
76
|
AiReportRoot.displayName = 'AiReportRoot';
|
|
@@ -10,30 +10,31 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { rankPercent } from '../../utils';
|
|
13
14
|
import Evaluate from './Evaluate';
|
|
14
15
|
import Graph from './Graph';
|
|
15
16
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
|
+
import AiHeaderTitle from "../../../../components/AiHeaderTitle";
|
|
16
18
|
import { InfoOutlineIcon, Link, Tooltip, Typography } from 'fbm-ui';
|
|
17
|
-
import { Box,
|
|
19
|
+
import { Box, Collapse, Divider, Paper, Stack } from 'fbm-ui/lib/mui';
|
|
18
20
|
import { useCallback, useState } from 'react';
|
|
19
|
-
import { rankPercent } from '../../utils';
|
|
20
21
|
var Index = function () {
|
|
21
|
-
var _a;
|
|
22
|
-
var
|
|
22
|
+
var _a, _b;
|
|
23
|
+
var _c = useAiReportStore(function (store) { return [
|
|
23
24
|
store.reportResult,
|
|
24
25
|
store.operableButtons,
|
|
25
|
-
]; }), reportResult =
|
|
26
|
-
var
|
|
26
|
+
]; }), reportResult = _c.reportResult, showAiDimension = _c.showAiDimension, canEditAiDimension = _c.canEditAiDimension, customInterviewDimRankMap = _c.customInterviewDimRankMap;
|
|
27
|
+
var _d = useState(true), expand = _d[0], setExpand = _d[1];
|
|
27
28
|
var handleExpandChange = useCallback(function () {
|
|
28
29
|
setExpand(!expand);
|
|
29
30
|
}, [expand]);
|
|
30
|
-
if (!showAiDimension)
|
|
31
|
+
if (!showAiDimension || ((_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.evaluations) === null || _a === void 0 ? void 0 : _a.length) === 0)
|
|
31
32
|
return null;
|
|
32
|
-
return (_jsxs(Box, __assign({ component: Paper, variant: "outlined", px: 2, mt: 2 }, { children: [_jsxs(Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1 }, { children: [_jsx(
|
|
33
|
+
return (_jsxs(Box, __assign({ component: Paper, variant: "outlined", px: 2, mt: 2 }, { children: [_jsxs(Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1, marginBottom: 1 }, { children: [_jsx(AiHeaderTitle, { name: "AI\u57FA\u7840\u80FD\u529B" }), _jsx(Tooltip, __assign({ title: _jsxs("span", { children: ["\u7ED3\u679C\u8BF4\u660E\uFF1A", _jsx("br", {}), "AI\u57FA\u7840\u80FD\u529B\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", _jsx("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }) }, { children: _jsx(Box, __assign({ display: "flex", alignItems: "center" }, { children: _jsx(InfoOutlineIcon, { sx: { fontSize: '16px' } }) })) }))] })), _jsxs(Collapse, __assign({ in: expand }, { children: [(_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.evaluations) === null || _b === void 0 ? void 0 : _b.map(function (v) {
|
|
33
34
|
var _a;
|
|
34
35
|
var c = customInterviewDimRankMap === null || customInterviewDimRankMap === void 0 ? void 0 : customInterviewDimRankMap[v.evaluationToken];
|
|
35
36
|
var rank = rankPercent((c === null || c === void 0 ? void 0 : c.rank) || (v === null || v === void 0 ? void 0 : v.rank), (c === null || c === void 0 ? void 0 : c.total) || (v === null || v === void 0 ? void 0 : v.total));
|
|
36
37
|
return (_jsxs(Box, __assign({ component: Paper, elevation: 0, bgcolor: "#f9f9f9", mb: 2, pb: 2 }, { children: [_jsxs(Stack, __assign({ px: 2, pt: 2 }, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center", spacing: 2 }, { children: [_jsx(Typography, __assign({ variant: "h6", fontWeight: "medium", sx: { fontWeight: 500 } }, { children: v.evaluationDimensionName })), !isNaN(rank) && (_jsxs(Typography, __assign({ variant: "body2" }, { children: ["\u51FB\u8D25\u4E86", _jsxs(Typography, __assign({ variant: "body2", fontWeight: "medium", display: "inline", color: "#4caf50" }, { children: [rank.toFixed(2), "%"] })), "\u7684\u5019\u9009\u4EBA"] })))] })), _jsx(Typography, __assign({ mt: 1, mb: 2, variant: "body2", fontWeight: "medium", color: "#4caf50" }, { children: v.impressions.join('、') }))] })), _jsx(Divider, { sx: { borderColor: 'rgba(0,0,0,0.08)' } }), _jsxs(Stack, __assign({ px: 2 }, { children: [((_a = v.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && (_jsx(Box, __assign({ mt: 2 }, { children: _jsx(Graph, { items: v.items }) }))), _jsxs(Stack, __assign({ spacing: 2, mt: 2 }, { children: [_jsx(Evaluate, { canEdit: canEditAiDimension, token: v.evaluationToken, evaluations: v.evaluations, title: "\u8BC4\u4EF7\u5185\u5BB9", field: "evaluations", mode: "show" }), _jsx(Evaluate, { canEdit: canEditAiDimension, token: v.evaluationToken, evaluations: v.suggestions, title: "\u63D0\u9AD8\u5EFA\u8BAE", field: "suggestions", mode: "show" })] }))] }))] }), v.evaluationToken));
|
|
37
|
-
}), _jsxs(Stack, __assign({ spacing: 1, mt: 4 }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: "medium", color: "textSecondary" }, { children: "\u7ED3\u679C\u8BF4\u660E" })), _jsxs(Typography, __assign({ variant: "caption", color: "rgba(0,0,0,0.26)" }, { children: ["AI\
|
|
38
|
+
}), _jsxs(Stack, __assign({ spacing: 1, mt: 4 }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: "medium", color: "textSecondary" }, { children: "\u7ED3\u679C\u8BF4\u660E" })), _jsxs(Typography, __assign({ variant: "caption", color: "rgba(0,0,0,0.26)" }, { children: ["AI\u57FA\u7840\u80FD\u529B\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", _jsx("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }))] }))] })), _jsx(Box, __assign({ display: "flex", justifyContent: "flex-end", alignItems: "center", mt: 1, mb: 2 }, { children: _jsx(Link, { href: "#", onClick: handleExpandChange, text: expand ? '收起' : '查看详情' }) }))] })));
|
|
38
39
|
};
|
|
39
40
|
export default Index;
|
|
@@ -10,18 +10,26 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
14
|
-
import { Box, InfoOutlineIcon, Tooltip, Typography } from 'fbm-ui';
|
|
13
|
+
import AiHeaderTitle from "../../../../components/AiHeaderTitle";
|
|
15
14
|
import ReportPie from "../../../../components/Charts/ReportPie";
|
|
16
15
|
// import ScoreLegend from './ScoreLegend';
|
|
17
16
|
import ScoreBigBall from "../../../../components/ScoreBigBall";
|
|
18
17
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
18
|
+
import { Box, InfoOutlineIcon, Tooltip, Typography } from 'fbm-ui';
|
|
19
|
+
import { useMemo } from 'react';
|
|
19
20
|
var Report = function () {
|
|
20
21
|
var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
|
|
21
|
-
var _a = reportResult || {}, orderToken = _a.orderToken, score = _a.score, status = _a.status, _b = _a.collection, collection = _b === void 0 ? [] : _b;
|
|
22
|
+
var _a = reportResult || {}, orderToken = _a.orderToken, score = _a.score, status = _a.status, _b = _a.collection, collection = _b === void 0 ? [] : _b, _c = _a.summaryText, summaryText = _c === void 0 ? { sprintf: '', variables: [] } : _c;
|
|
22
23
|
var title = useMemo(function () {
|
|
23
|
-
return (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\
|
|
24
|
+
return (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u804C\u573A\u80FD\u529B\u4EE5\u53CA\u82F1\u6587\u8868\u8FBE\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\uFF1A" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5927\u4E8E\u7B49\u4E8E80\u65F6\u4E3A\u4F18\u79C0\uFF1B" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5927\u4E8E\u7B49\u4E8E60\u5C0F\u4E8E80\u65F6\u4E3A\u9002\u4E2D\uFF1B" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5C0F\u4E8E60\u65F6\u4E3A\u6B20\u4F73\uFF1B" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u5176\u4ED6AI\u57FA\u7840\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\uFF1A" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "AI\u57FA\u7840\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\u4E3A\uFF1A\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u4EE5\u5168\u56FD\u6570\u636E\u7684\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2AAI\u57FA\u7840\u80FD\u529B\u7684\u6700\u7EC8\u5F97\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002" }))] }));
|
|
24
25
|
}, []);
|
|
25
|
-
|
|
26
|
+
var showSummaryText = useMemo(function () {
|
|
27
|
+
var _a = summaryText.sprintf, sprintf = _a === void 0 ? '' : _a, _b = summaryText.variables, variables = _b === void 0 ? [] : _b;
|
|
28
|
+
var textList = (sprintf === null || sprintf === void 0 ? void 0 : sprintf.split('%s')) || [];
|
|
29
|
+
return textList.map(function (text, index) {
|
|
30
|
+
return (_jsxs(_Fragment, { children: [_jsx("span", __assign({ style: { fontSize: 14, color: 'RGBA(0, 0, 0, 0.56)' } }, { children: text })), _jsx("span", __assign({ style: { fontSize: 14, color: '#4CAF50' } }, { children: variables[index] || '' }))] }));
|
|
31
|
+
});
|
|
32
|
+
}, [summaryText]);
|
|
33
|
+
return (_jsxs(Box, __assign({ width: "100%" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "space-between", pl: 2, pt: 2, pr: 2 }, { children: [_jsx(AiHeaderTitle, { name: "\u7EFC\u5408\u8868\u73B0" }), _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: "\u80FD\u529B\u6807\u51C6" })), _jsx(Tooltip, __assign({ title: title }, { children: _jsx("span", __assign({ style: { display: 'flex', alignItems: 'center', marginLeft: '4px' } }, { children: _jsx(InfoOutlineIcon, { sx: { fontSize: 14, color: 'RGBA(0, 0, 0, 0.86)' } }) })) }))] }))] })), _jsxs(Box, __assign({ height: 300, sx: { position: 'relative' } }, { children: [_jsx(ReportPie, { id: orderToken || '', source: collection }), _jsx(ScoreBigBall, { score: score || 0, status: status })] })), showSummaryText.length > 0 && (_jsx(Box, __assign({ display: "block", width: 498, style: { backgroundColor: '#FAFAFA', padding: 8, margin: '0 auto 16px' } }, { children: showSummaryText })))] })));
|
|
26
34
|
};
|
|
27
35
|
export default Report;
|