eli-video-interview 1.1.6 → 1.1.7
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/LICENSE +1 -1
- package/esm/components/BigBallSvg/index.js +3 -3
- package/esm/components/BigBallSvg/styled.d.ts +3 -0
- package/esm/components/BigBallSvg/styled.js +28 -0
- package/esm/components/Charts/Chart.js +19 -25
- package/esm/components/Charts/ReportPie.d.ts +4 -0
- package/esm/components/Charts/ReportPie.js +135 -0
- package/esm/components/Charts/TemplatePie.d.ts +4 -0
- package/esm/components/Charts/TemplatePie.js +81 -0
- package/esm/components/Charts/const.d.ts +15 -380
- package/esm/components/Charts/const.js +15 -380
- package/esm/components/Charts/interface.d.ts +15 -0
- package/esm/components/RootProvider/index.d.ts +3 -0
- package/esm/components/RootProvider/index.js +27 -0
- package/esm/{modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts → components/ScoreBigBall/index.d.ts} +0 -0
- package/esm/components/ScoreBigBall/index.js +26 -0
- package/esm/components/ScoreBigBall/interface.d.ts +7 -0
- package/esm/components/ScoreBigBall/interface.js +1 -0
- package/esm/components/ScoreBigBall/styled.d.ts +4 -0
- package/esm/components/ScoreBigBall/styled.js +12 -0
- package/esm/components/SvgIcon/index.d.ts +2 -2
- package/esm/components/SvgIcon/index.js +3 -2
- package/esm/components/SvgIcon/interface.d.ts +1 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/modules/ai-ability/Root.d.ts +3 -0
- package/esm/modules/ai-ability/Root.js +135 -0
- package/esm/modules/ai-ability/components/UpdateAbility/index.d.ts +4 -0
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +114 -0
- package/esm/modules/ai-ability/components/UpdateAbility/interface.d.ts +7 -0
- package/esm/modules/ai-ability/components/UpdateAbility/interface.js +1 -0
- package/esm/modules/ai-ability/index.d.ts +2 -0
- package/esm/modules/ai-ability/index.js +7 -0
- package/esm/modules/ai-ability/interface.d.ts +15 -0
- package/esm/modules/ai-ability/interface.js +1 -0
- package/esm/modules/ai-ability/styled.d.ts +4 -0
- package/esm/modules/ai-ability/styled.js +6 -0
- package/esm/modules/ai-question/Root.js +7 -4
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/index.js +3 -3
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +1 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +5 -5
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +1 -1
- package/esm/modules/ai-question/components/BaseAccordion/index.js +2 -2
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +7 -4
- package/esm/modules/ai-question/components/BootVideo/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/Item.js +4 -4
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/index.js +23 -16
- package/esm/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +3 -3
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +2 -2
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +11 -8
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +2 -10
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +10 -3
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +5 -3
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +5 -1
- package/esm/modules/ai-question/index.d.ts +2 -2
- package/esm/modules/ai-question/index.js +2 -4
- package/esm/modules/ai-question/interface.d.ts +5 -3
- package/esm/modules/ai-question/useAiQuestion.d.ts +4 -2
- package/esm/modules/ai-question/useAiQuestion.js +3 -1
- package/esm/modules/ai-report/components/ScoreReport/Report.d.ts +2 -2
- package/esm/modules/ai-report/components/ScoreReport/Report.js +11 -29
- package/esm/modules/ai-report/components/ScoreReport/index.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +0 -7
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +1 -4
- package/esm/modules/ai-report/components/ScoreReport/styled.js +1 -14
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +10 -9
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +16 -16
- package/esm/modules/ai-report/components/VideoQuestion/styled.js +2 -1
- package/esm/modules/ai-report/index.d.ts +2 -2
- package/esm/modules/ai-report/index.js +2 -4
- package/esm/modules/ai-report/interface.d.ts +10 -1
- package/esm/modules/ai-report/useAiReport.d.ts +0 -1
- package/esm/modules/ai-template/Root.d.ts +4 -0
- package/esm/modules/ai-template/Root.js +48 -0
- package/esm/modules/ai-template/components/CapabilityModel/const.d.ts +47 -0
- package/esm/modules/ai-template/components/CapabilityModel/const.js +56 -0
- package/esm/modules/ai-template/components/CapabilityModel/index.d.ts +3 -0
- package/esm/modules/ai-template/components/CapabilityModel/index.js +27 -0
- package/esm/modules/ai-template/components/QuestionList/Item.d.ts +4 -0
- package/esm/modules/ai-template/components/QuestionList/Item.js +24 -0
- package/esm/modules/ai-template/components/QuestionList/index.d.ts +3 -0
- package/esm/modules/ai-template/components/QuestionList/index.js +20 -0
- package/esm/modules/ai-template/components/QuestionList/interface.d.ts +5 -0
- package/esm/modules/ai-template/components/QuestionList/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateHeader/index.d.ts +4 -0
- package/esm/modules/ai-template/components/TemplateHeader/index.js +18 -0
- package/esm/modules/ai-template/components/TemplateHeader/interface.d.ts +6 -0
- package/esm/modules/ai-template/components/TemplateHeader/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateList/index.d.ts +3 -0
- package/esm/modules/ai-template/components/TemplateList/index.js +96 -0
- package/esm/modules/ai-template/components/TemplateList/interface.d.ts +24 -0
- package/esm/modules/ai-template/components/TemplateList/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +37 -0
- package/esm/modules/ai-template/components/TemplateList/styled.js +77 -0
- package/esm/modules/ai-template/components/TemplateMenu/index.d.ts +3 -0
- package/esm/modules/ai-template/components/TemplateMenu/index.js +57 -0
- package/esm/modules/ai-template/components/TemplateMenu/interface.d.ts +12 -0
- package/esm/modules/ai-template/components/TemplateMenu/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +29 -0
- package/esm/modules/ai-template/components/TemplateMenu/styled.js +16 -0
- package/esm/modules/ai-template/index.d.ts +4 -0
- package/esm/modules/{ai-report/components/ScoreReport/RosePie.js → ai-template/index.js} +8 -7
- package/esm/modules/ai-template/interface.d.ts +24 -0
- package/esm/modules/ai-template/interface.js +1 -0
- package/esm/services/ai-ability.d.ts +12 -0
- package/esm/services/ai-ability.js +7 -0
- package/esm/services/ai-question.d.ts +0 -1
- package/esm/services/ai-question.js +1 -3
- package/esm/services/ai-template.d.ts +4 -0
- package/esm/services/ai-template.js +9 -0
- package/esm/store/ai-question/ai-analysis-store.js +2 -1
- package/esm/store/ai-question/global-store.d.ts +9 -6
- package/esm/store/ai-question/global-store.js +0 -1
- package/esm/store/ai-question/question-model-store.js +9 -7
- package/esm/store/ai-report/global-store.d.ts +3 -6
- package/esm/store/ai-report/global-store.js +4 -6
- package/esm/store/ai-template/global-store.d.ts +35 -0
- package/esm/store/ai-template/global-store.js +26 -0
- package/esm/utils/config.d.ts +1 -0
- package/esm/utils/interceptor.js +7 -2
- package/lib/components/BigBallSvg/index.js +2 -5
- package/lib/components/BigBallSvg/styled.d.ts +3 -0
- package/lib/components/BigBallSvg/styled.js +31 -0
- package/lib/components/Charts/Chart.js +41 -27
- package/lib/components/Charts/ReportPie.d.ts +4 -0
- package/lib/components/Charts/ReportPie.js +140 -0
- package/lib/components/Charts/TemplatePie.d.ts +4 -0
- package/lib/components/Charts/TemplatePie.js +86 -0
- package/lib/components/Charts/const.d.ts +15 -380
- package/lib/components/Charts/const.js +16 -381
- package/lib/components/Charts/interface.d.ts +15 -0
- package/lib/components/RootProvider/index.d.ts +3 -0
- package/lib/components/RootProvider/index.js +29 -0
- package/lib/{modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts → components/ScoreBigBall/index.d.ts} +0 -0
- package/lib/components/ScoreBigBall/index.js +31 -0
- package/lib/components/ScoreBigBall/interface.d.ts +7 -0
- package/lib/components/ScoreBigBall/interface.js +2 -0
- package/lib/components/ScoreBigBall/styled.d.ts +4 -0
- package/lib/components/ScoreBigBall/styled.js +15 -0
- package/lib/components/SvgIcon/index.d.ts +2 -2
- package/lib/components/SvgIcon/index.js +26 -2
- package/lib/components/SvgIcon/interface.d.ts +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +5 -1
- package/lib/modules/ai-ability/Root.d.ts +3 -0
- package/lib/modules/ai-ability/Root.js +140 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.d.ts +4 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +116 -0
- package/lib/modules/ai-ability/components/UpdateAbility/interface.d.ts +7 -0
- package/lib/modules/ai-ability/components/UpdateAbility/interface.js +2 -0
- package/lib/modules/ai-ability/index.d.ts +2 -0
- package/lib/modules/ai-ability/index.js +12 -0
- package/lib/modules/ai-ability/interface.d.ts +15 -0
- package/lib/modules/ai-ability/interface.js +2 -0
- package/lib/modules/ai-ability/styled.d.ts +4 -0
- package/lib/modules/ai-ability/styled.js +9 -0
- package/lib/modules/ai-question/Root.js +7 -4
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +2 -2
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +2 -2
- package/lib/modules/ai-question/components/AiAnalysis/index.js +2 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +7 -7
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +5 -5
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +2 -2
- package/lib/modules/ai-question/components/BaseAccordion/index.js +5 -5
- package/lib/modules/ai-question/components/BaseAccordion/styled.js +7 -4
- package/lib/modules/ai-question/components/BootVideo/index.js +3 -3
- package/lib/modules/ai-question/components/QuestionModel/Item.js +3 -3
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.js +2 -2
- package/lib/modules/ai-question/components/QuestionModel/index.js +23 -16
- package/lib/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +3 -3
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +3 -3
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +11 -8
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.js +2 -2
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +1 -9
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +9 -2
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +2 -2
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +7 -5
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +5 -1
- package/lib/modules/ai-question/index.d.ts +2 -2
- package/lib/modules/ai-question/index.js +2 -4
- package/lib/modules/ai-question/interface.d.ts +5 -3
- package/lib/modules/ai-question/useAiQuestion.d.ts +4 -2
- package/lib/modules/ai-question/useAiQuestion.js +3 -1
- package/lib/modules/ai-report/components/ScoreReport/Report.d.ts +2 -2
- package/lib/modules/ai-report/components/ScoreReport/Report.js +8 -26
- package/lib/modules/ai-report/components/ScoreReport/index.js +3 -3
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +0 -7
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +1 -4
- package/lib/modules/ai-report/components/ScoreReport/styled.js +1 -14
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +10 -9
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +16 -16
- package/lib/modules/ai-report/components/VideoQuestion/styled.js +3 -2
- package/lib/modules/ai-report/index.d.ts +2 -2
- package/lib/modules/ai-report/index.js +2 -4
- package/lib/modules/ai-report/interface.d.ts +10 -1
- package/lib/modules/ai-report/useAiReport.d.ts +0 -1
- package/lib/modules/ai-template/Root.d.ts +4 -0
- package/lib/modules/ai-template/Root.js +53 -0
- package/lib/modules/ai-template/components/CapabilityModel/const.d.ts +47 -0
- package/lib/modules/ai-template/components/CapabilityModel/const.js +59 -0
- package/lib/modules/ai-template/components/CapabilityModel/index.d.ts +3 -0
- package/lib/modules/ai-template/components/CapabilityModel/index.js +32 -0
- package/lib/modules/ai-template/components/QuestionList/Item.d.ts +4 -0
- package/lib/modules/ai-template/components/QuestionList/Item.js +26 -0
- package/lib/modules/ai-template/components/QuestionList/index.d.ts +3 -0
- package/lib/modules/ai-template/components/QuestionList/index.js +25 -0
- package/lib/modules/ai-template/components/QuestionList/interface.d.ts +5 -0
- package/lib/modules/ai-template/components/QuestionList/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateHeader/index.d.ts +4 -0
- package/lib/modules/ai-template/components/TemplateHeader/index.js +20 -0
- package/lib/modules/ai-template/components/TemplateHeader/interface.d.ts +6 -0
- package/lib/modules/ai-template/components/TemplateHeader/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateList/index.d.ts +3 -0
- package/lib/modules/ai-template/components/TemplateList/index.js +101 -0
- package/lib/modules/ai-template/components/TemplateList/interface.d.ts +24 -0
- package/lib/modules/ai-template/components/TemplateList/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +37 -0
- package/lib/modules/ai-template/components/TemplateList/styled.js +80 -0
- package/lib/modules/ai-template/components/TemplateMenu/index.d.ts +3 -0
- package/lib/modules/ai-template/components/TemplateMenu/index.js +59 -0
- package/lib/modules/ai-template/components/TemplateMenu/interface.d.ts +12 -0
- package/lib/modules/ai-template/components/TemplateMenu/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +29 -0
- package/lib/modules/ai-template/components/TemplateMenu/styled.js +19 -0
- package/lib/modules/ai-template/index.d.ts +4 -0
- package/lib/modules/{ai-report/components/ScoreReport/RosePie.js → ai-template/index.js} +8 -7
- package/lib/modules/ai-template/interface.d.ts +24 -0
- package/lib/modules/ai-template/interface.js +2 -0
- package/lib/services/ai-ability.d.ts +12 -0
- package/lib/services/ai-ability.js +13 -0
- package/lib/services/ai-question.d.ts +0 -1
- package/lib/services/ai-question.js +1 -4
- package/lib/services/ai-template.d.ts +4 -0
- package/lib/services/ai-template.js +16 -0
- package/lib/store/ai-question/ai-analysis-store.js +2 -1
- package/lib/store/ai-question/global-store.d.ts +9 -6
- package/lib/store/ai-question/global-store.js +0 -1
- package/lib/store/ai-question/question-model-store.js +9 -7
- package/lib/store/ai-report/global-store.d.ts +3 -6
- package/lib/store/ai-report/global-store.js +3 -5
- package/lib/store/ai-template/global-store.d.ts +35 -0
- package/lib/store/ai-template/global-store.js +29 -0
- package/lib/utils/config.d.ts +1 -0
- package/lib/utils/interceptor.js +7 -2
- package/package.json +18 -111
- package/esm/components/BigBallSvg/index.module.css +0 -37
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +0 -20
- package/esm/modules/ai-question/components/QuestionTemplate/styled.d.ts +0 -87
- package/esm/modules/ai-question/components/QuestionTemplate/styled.js +0 -33
- package/esm/modules/ai-report/components/ScoreReport/RosePie.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/ScoreBigBall.js +0 -26
- package/esm/modules/ai-report/components/ScoreReport/const.d.ts +0 -34
- package/esm/modules/ai-report/components/ScoreReport/const.js +0 -77
- package/lib/components/BigBallSvg/index.module.css +0 -37
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +0 -25
- package/lib/modules/ai-question/components/QuestionTemplate/styled.d.ts +0 -87
- package/lib/modules/ai-question/components/QuestionTemplate/styled.js +0 -39
- package/lib/modules/ai-report/components/ScoreReport/RosePie.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/ScoreBigBall.js +0 -31
- package/lib/modules/ai-report/components/ScoreReport/const.d.ts +0 -34
- package/lib/modules/ai-report/components/ScoreReport/const.js +0 -80
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const PreviewRoot: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("
|
|
4
|
+
classes?: Partial<import("fbm-ui/lib/mui").PaperClasses> | undefined;
|
|
5
5
|
elevation?: number | undefined;
|
|
6
6
|
square?: boolean | undefined;
|
|
7
|
-
sx?: import("@mui/system").SxProps<import("
|
|
7
|
+
sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
|
|
8
8
|
variant?: "elevation" | "outlined" | undefined;
|
|
9
9
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
10
10
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
-
}, "children" | "elevation" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "square"> & import("@mui/system").MUIStyledCommonProps<import("
|
|
11
|
+
}, "children" | "elevation" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "square"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Paper } from '
|
|
1
|
+
import { Paper } from 'fbm-ui/lib/mui';
|
|
2
2
|
import { styled } from 'fbm-ui';
|
|
3
3
|
export var PreviewRoot = styled(Paper)({
|
|
4
4
|
padding: 20,
|
|
5
5
|
position: 'absolute',
|
|
6
|
-
|
|
6
|
+
right: 300,
|
|
7
7
|
top: 24,
|
|
8
8
|
zIndex: 9,
|
|
9
9
|
display: 'none',
|
|
@@ -11,10 +11,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useCallback } from 'react';
|
|
14
|
-
import { Box, Popover, Button, Typography,
|
|
14
|
+
import { Box, Popover, Button, Typography, AddIcon, LayerOutlineIcon, SMSOneIcon } from 'fbm-ui';
|
|
15
15
|
import { useSetState } from 'ahooks';
|
|
16
|
-
import { List, ListItem, ListItemButton, ListItemIcon, ListItemText
|
|
17
|
-
import
|
|
16
|
+
import { List, ListItem, ListItemButton, ListItemIcon, ListItemText } from 'fbm-ui/lib/mui';
|
|
17
|
+
import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
|
|
18
|
+
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
18
19
|
import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
|
|
19
20
|
import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
|
|
20
21
|
import { ADD_QUESTION_TYPE_LIST } from "../../../../constants/ai-question";
|
|
@@ -24,8 +25,10 @@ import { uniqueId } from "../../../../utils/utils";
|
|
|
24
25
|
import { defaultQuestionParams } from '../QuestionUpdate/const';
|
|
25
26
|
import BaseAccordion from '../BaseAccordion';
|
|
26
27
|
var AiEvaluation = function () {
|
|
27
|
-
var
|
|
28
|
-
var
|
|
28
|
+
var onOpenTemplate = useAiQuestionStore(function (store) { return [store.onOpenTemplate]; }).onOpenTemplate;
|
|
29
|
+
var updateQuestionState = useUpdateQuestionStore(function (store) { return [store.updateQuestionState]; }).updateQuestionState;
|
|
30
|
+
var questionModelData = useQuestionModelStore(function (store) { return [store.questionModelData]; }).questionModelData;
|
|
31
|
+
var aiEvaluationData = useQuestionTemplateStore(function (store) { return [store.aiEvaluationData]; }).aiEvaluationData;
|
|
29
32
|
var _a = useSetState({
|
|
30
33
|
addQuestionOpen: false,
|
|
31
34
|
showOnlyAITest: false,
|
|
@@ -37,11 +40,11 @@ var AiEvaluation = function () {
|
|
|
37
40
|
}, [setState, updateQuestionState]);
|
|
38
41
|
var content = (_jsx(List, { children: ADD_QUESTION_TYPE_LIST.map(function (_a) {
|
|
39
42
|
var title = _a.title, desc = _a.desc, type = _a.type;
|
|
40
|
-
return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton, __assign({ onClick: function () { return handleClickAdd(type); } }, { children: [_jsx(ListItemIcon, __assign({ sx: { minWidth: 40 } }, { children: type === ADD_QUESTION_TYPE.FREE ? _jsx(
|
|
43
|
+
return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton, __assign({ onClick: function () { return handleClickAdd(type); } }, { children: [_jsx(ListItemIcon, __assign({ sx: { minWidth: 40 } }, { children: type === ADD_QUESTION_TYPE.FREE ? _jsx(SMSOneIcon, { color: "secondary" }) : _jsx(SvgIcon, { name: "free", style: { fill: 'rgba(0, 0, 0, 0.56)' } }) })), _jsx(ListItemText, { primary: title, secondary: desc })] })) }), "question_type_".concat(type)));
|
|
41
44
|
}) }));
|
|
42
|
-
return (_jsxs(Box, { children: [
|
|
45
|
+
return (_jsxs(Box, { children: [_jsxs(Box, __assign({ display: "flex", justifyContent: "space-between", alignItems: "center", mb: 2 }, { children: [_jsx(Button, __assign({ variant: "outlined", color: "inherit", icon: _jsx(LayerOutlineIcon, {}), onClick: function () { return onOpenTemplate === null || onOpenTemplate === void 0 ? void 0 : onOpenTemplate(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.steps); } }, { children: "\u5C97\u4F4D\u6A21\u7248\u5E93" })), _jsx(Popover, __assign({ open: addQuestionOpen, arrow: false, content: content, onClickAway: function () { return setState({ addQuestionOpen: false }); } }, { children: _jsx(Button, __assign({ variant: "outlined", icon: _jsx(AddIcon, {}), onClick: function () { return setState({ addQuestionOpen: true }); } }, { children: "\u81EA\u5B9A\u4E49\u9898\u76EE" })) }))] })), aiEvaluationData.map(function (_a, index) {
|
|
43
46
|
var name = _a.name, list = _a.list;
|
|
44
|
-
return (_jsxs(Box, { children: [_jsx(Typography, __assign({ fontSize: 12, lineHeight: 1.5,
|
|
47
|
+
return (_jsxs(Box, { children: [_jsx(Typography, __assign({ fontSize: 12, lineHeight: 1.5, weight: "500", mb: 2 }, { children: name })), list.map(function (item, i) { return (_jsx(BaseAccordion, __assign({ index: i, isShowOnlyAITest: showOnlyAITest, isShowDesc: index !== 0, isShowSummaryAction: index !== 0, isShowConfirm: index !== 0 }, item), item.name + i)); })] }, name));
|
|
45
48
|
})] }));
|
|
46
49
|
};
|
|
47
50
|
export default AiEvaluation;
|
|
@@ -10,7 +10,7 @@ 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 { Stack, Skeleton, Paper } from '
|
|
13
|
+
import { Stack, Skeleton, Paper } from 'fbm-ui/lib/mui';
|
|
14
14
|
var QuestionTemplateSkeleton = function () {
|
|
15
15
|
return (_jsxs(Stack, __assign({ spacing: 2 }, { children: [_jsx(Paper, __assign({ elevation: 2 }, { children: _jsx(Skeleton, { variant: "text", width: 127, height: 8, sx: { margin: '25px 16px' } }) })), _jsx(Paper, __assign({ elevation: 2 }, { children: _jsx(Skeleton, { variant: "text", width: 127, height: 8, sx: { margin: '25px 16px' } }) })), _jsx(Paper, __assign({ elevation: 2 }, { children: _jsx(Skeleton, { variant: "text", width: 127, height: 8, sx: { margin: '25px 16px' } }) }))] })));
|
|
16
16
|
};
|
|
@@ -9,22 +9,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx
|
|
13
|
-
import { useState } from 'react';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
13
|
import { useRequest } from 'ahooks';
|
|
15
14
|
import { Box } from 'fbm-ui';
|
|
16
|
-
import TabContext from '@mui/lab/TabContext';
|
|
17
15
|
import { PostAiModelQuestions } from "../../../../services/ai-question";
|
|
18
|
-
import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
|
|
19
16
|
import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
|
|
20
17
|
import AiEvaluation from './AiEvaluation';
|
|
21
|
-
import HistoryPattern from './HistoryPattern';
|
|
22
18
|
import Skeleton from './Skeleton';
|
|
23
|
-
import { CardTabs, CardTab, CardTabPanel } from './styled';
|
|
24
19
|
var QuestionTemplate = function () {
|
|
25
|
-
var historyPatterns = useAiQuestionStore().historyPatterns;
|
|
26
20
|
var updateAiEvaluationData = useQuestionTemplateStore().updateAiEvaluationData;
|
|
27
|
-
var _a = useState('1'), value = _a[0], setValue = _a[1];
|
|
28
21
|
var loading = useRequest(PostAiModelQuestions, {
|
|
29
22
|
manual: false,
|
|
30
23
|
onSuccess: function (_a) {
|
|
@@ -32,7 +25,6 @@ var QuestionTemplate = function () {
|
|
|
32
25
|
return updateAiEvaluationData(data);
|
|
33
26
|
},
|
|
34
27
|
}).loading;
|
|
35
|
-
|
|
36
|
-
return (_jsx(Box, __assign({ sx: { position: 'relative' } }, { children: loading ? (_jsx(Skeleton, {})) : (_jsxs(TabContext, __assign({ value: value }, { children: [_jsxs(CardTabs, __assign({ value: value, onChange: handleChange }, { children: [_jsx(CardTab, { label: "AI\u6D4B\u8BC4", value: "1" }), _jsx(CardTab, { label: "\u5DF2\u6709\u5C97\u4F4D\u6A21\u578B", value: "2", disabled: historyPatterns && (historyPatterns === null || historyPatterns === void 0 ? void 0 : historyPatterns.length) === 0 })] })), _jsx(CardTabPanel, __assign({ value: "1" }, { children: _jsx(AiEvaluation, {}) })), _jsx(CardTabPanel, __assign({ value: "2" }, { children: _jsx(HistoryPattern, {}) }))] }))) })));
|
|
28
|
+
return _jsx(Box, __assign({ sx: { position: 'relative' } }, { children: loading ? _jsx(Skeleton, {}) : _jsx(AiEvaluation, {}) }));
|
|
37
29
|
};
|
|
38
30
|
export default QuestionTemplate;
|
|
@@ -47,13 +47,16 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
49
49
|
import { memo, useEffect, forwardRef, useImperativeHandle } from 'react';
|
|
50
|
-
import { Box, Form, FormItem, Select, useForm } from 'fbm-ui';
|
|
50
|
+
import { Box, Form, FormItem, Select, Autocomplete, useForm } from 'fbm-ui';
|
|
51
|
+
import { useRequest } from 'ahooks';
|
|
51
52
|
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
53
|
+
import { PostQuestionCollectionList } from "../../../../services/ai-ability";
|
|
52
54
|
import { broadcastModeOptions, prepareTimeOptions, durationOptions } from './const';
|
|
53
55
|
import AiAnalysis from '../AiAnalysis';
|
|
54
56
|
import VideoVoice from './VideoVoice';
|
|
55
57
|
var QuestionForm = forwardRef(function (props, ref) {
|
|
56
58
|
var aiShowType = props.aiShowType, initialValues = props.initialValues, values = props.values, preview = props.preview, onValuesChange = props.onValuesChange, onSubmit = props.onSubmit;
|
|
59
|
+
var data = useRequest(PostQuestionCollectionList, { manual: preview }).data;
|
|
57
60
|
var form = useForm({
|
|
58
61
|
initialValues: initialValues,
|
|
59
62
|
onSubmit: function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -78,14 +81,18 @@ var QuestionForm = forwardRef(function (props, ref) {
|
|
|
78
81
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
79
82
|
}, [values]);
|
|
80
83
|
useEffect(function () {
|
|
84
|
+
console.log(form.values);
|
|
81
85
|
onValuesChange === null || onValuesChange === void 0 ? void 0 : onValuesChange(form.values);
|
|
82
86
|
}, [form.values, onValuesChange]);
|
|
83
|
-
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 }), !preview && aiShowType === ADD_QUESTION_TYPE.FREE && (_jsx(FormItem, __assign({ required: true, disabled: preview, name: "broadcastType", label: "\u64AD\u62A5\u65B9\u5F0F" }, { children: _jsx(Select, { placeholder: "\u64AD\u62A5\u65B9\u5F0F", options: broadcastModeOptions }) }))),
|
|
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: data === null || data === void 0 ? void 0 : data.data.list.map(function (_a) {
|
|
88
|
+
var tag = _a.tag;
|
|
89
|
+
return ({ label: tag, value: tag });
|
|
90
|
+
}) }) })))] })), 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: {
|
|
84
91
|
rows: 3,
|
|
85
92
|
multiline: true,
|
|
86
93
|
placeholder: '朗读内容(候选人将根据此内容进行朗读)',
|
|
87
94
|
sx: { padding: 0 },
|
|
88
|
-
} })), _jsxs(Box, __assign({ display: "flex" }, { children: [_jsx(FormItem, __assign({
|
|
95
|
+
} })), _jsxs(Box, __assign({ display: "flex" }, { children: [_jsx(FormItem, __assign({ sx: { height: 64, flex: '1 0', mr: 1 }, required: true, disabled: preview, name: "prepareTime", label: "\u51C6\u5907\u65F6\u957F" }, { children: _jsx(Select, { options: prepareTimeOptions }) })), _jsx(FormItem, __assign({ sx: { height: 64, flex: '1 0' }, required: true, disabled: preview, name: "duration", label: "\u56DE\u7B54\u65F6\u957F" }, { children: _jsx(Select, { options: durationOptions }) }))] }))] })), !preview && _jsx(AiAnalysis, {})] }));
|
|
89
96
|
});
|
|
90
97
|
QuestionForm.displayName = 'QuestionForm';
|
|
91
98
|
export default memo(QuestionForm);
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useRequest } from 'ahooks';
|
|
14
14
|
import { FormItem, Upload, Typography, Box, Button, UploadIcon, Message } from 'fbm-ui';
|
|
15
|
-
import { Checkbox, FormGroup, FormControlLabel } from '
|
|
15
|
+
import { Checkbox, FormGroup, FormControlLabel } from 'fbm-ui/lib/mui';
|
|
16
16
|
import { PostCommonUpload } from "../../../../services/ai-question";
|
|
17
17
|
import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
|
|
18
18
|
import { isExceedMaxVideoFileSize } from "../../../../utils/utils";
|
|
@@ -59,7 +59,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
59
59
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
60
60
|
import { useEffect, useRef, useState, useCallback } from 'react';
|
|
61
61
|
import { Box, Dialog, Typography, Popover, Message, Button, confirm } from 'fbm-ui';
|
|
62
|
-
import { MenuItem } from '
|
|
62
|
+
import { MenuItem } from 'fbm-ui/lib/mui';
|
|
63
63
|
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
64
64
|
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
65
65
|
import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
|
|
@@ -85,6 +85,7 @@ var QuestionUpdate = function () {
|
|
|
85
85
|
readText: (_a = item === null || item === void 0 ? void 0 : item.extra) === null || _a === void 0 ? void 0 : _a.readText,
|
|
86
86
|
prepareTime: item === null || item === void 0 ? void 0 : item.prepareTime,
|
|
87
87
|
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: '' },
|
|
88
89
|
};
|
|
89
90
|
var CustomHeader = function () {
|
|
90
91
|
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 () {
|
|
@@ -102,6 +103,7 @@ var QuestionUpdate = function () {
|
|
|
102
103
|
};
|
|
103
104
|
var getModelParams = useCallback(function (values, isSubmit) {
|
|
104
105
|
return new Promise(function (resolve, reject) {
|
|
106
|
+
var _a;
|
|
105
107
|
var errorIndexes = [];
|
|
106
108
|
var newAiAbilities = aiAbilities.map(function (item) {
|
|
107
109
|
item.isNotCompute = true;
|
|
@@ -125,10 +127,10 @@ var QuestionUpdate = function () {
|
|
|
125
127
|
}
|
|
126
128
|
return item;
|
|
127
129
|
});
|
|
128
|
-
var
|
|
130
|
+
var _b = values || { category: undefined }, _c = _b.readText, readText = _c === void 0 ? '' : _c, otherValues = __rest(_b, ["readText"]);
|
|
129
131
|
resolve({
|
|
130
132
|
errorIndexes: errorIndexes,
|
|
131
|
-
params: __assign(__assign(__assign(__assign({}, item), otherValues), analysisState), { extra: readText && item.extra ? __assign(__assign({}, item.extra), { readText: readText }) : item.extra, aiType: newAiAbilities.length > 0 && analysisState.aiSwitch === 1 ? 2 : 1, aiShowType: aiShowType, aiAbilities: newAiAbilities }),
|
|
133
|
+
params: __assign(__assign(__assign(__assign({}, item), otherValues), analysisState), { category: (otherValues === null || otherValues === void 0 ? void 0 : otherValues.category) ? [(_a = otherValues === null || otherValues === void 0 ? void 0 : otherValues.category) === null || _a === void 0 ? void 0 : _a.value] : [], extra: readText && item.extra ? __assign(__assign({}, item.extra), { readText: readText }) : item.extra, aiType: newAiAbilities.length > 0 && analysisState.aiSwitch === 1 ? 2 : 1, aiShowType: aiShowType, aiAbilities: newAiAbilities }),
|
|
132
134
|
});
|
|
133
135
|
});
|
|
134
136
|
}, [aiAbilities, aiShowType, analysisState, item, setKeyPointAnalysisError]);
|
|
@@ -11,7 +11,7 @@ export interface QuestionParams {
|
|
|
11
11
|
desc: string;
|
|
12
12
|
prepareTime: number;
|
|
13
13
|
duration: number;
|
|
14
|
-
category
|
|
14
|
+
category?: string[];
|
|
15
15
|
extra: BaseExtraParams;
|
|
16
16
|
broadcastType: number;
|
|
17
17
|
aiSwitch?: number;
|
|
@@ -33,6 +33,10 @@ export interface QuestionFormValues {
|
|
|
33
33
|
prepareTime: number;
|
|
34
34
|
duration: number;
|
|
35
35
|
broadcastType: number;
|
|
36
|
+
category?: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
};
|
|
36
40
|
readText?: string;
|
|
37
41
|
}
|
|
38
42
|
export interface QuestionFormProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { AiQuestionProps } from './interface';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<AiQuestionProps & import("react").RefAttributes<any>>>;
|
|
4
4
|
export default _default;
|
|
@@ -11,12 +11,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { forwardRef, memo } from 'react';
|
|
14
|
-
import
|
|
15
|
-
import { ThemeProvider } from 'fbm-ui';
|
|
16
|
-
import { StyledEngineProvider } from '@mui/material/styles';
|
|
14
|
+
import RootProvider from "../../components/RootProvider";
|
|
17
15
|
import QuestionRoot from './Root';
|
|
18
16
|
var AiQuestion = forwardRef(function (props, ref) {
|
|
19
|
-
return (_jsx(
|
|
17
|
+
return (_jsx(RootProvider, { children: _jsx(QuestionRoot, __assign({ ref: ref }, props)) }));
|
|
20
18
|
});
|
|
21
19
|
AiQuestion.displayName = 'AiQuestion';
|
|
22
20
|
export default memo(AiQuestion);
|
|
@@ -45,18 +45,19 @@ export interface Media {
|
|
|
45
45
|
export interface AiQuestionProps {
|
|
46
46
|
token: string;
|
|
47
47
|
name?: string;
|
|
48
|
-
|
|
48
|
+
templateList?: QuestionModelStep[];
|
|
49
49
|
mediaList?: Array<{
|
|
50
50
|
url: string;
|
|
51
51
|
thumbUrl: string;
|
|
52
52
|
}>;
|
|
53
|
-
onLoad?: (steps
|
|
53
|
+
onLoad?: (steps?: QuestionModelStep[]) => void;
|
|
54
|
+
onOpenTemplate?: (steps?: QuestionModelStep[]) => void;
|
|
54
55
|
}
|
|
55
56
|
export interface AiQuestionValues {
|
|
56
57
|
data: {
|
|
57
58
|
name?: string;
|
|
58
59
|
token?: string;
|
|
59
|
-
steps
|
|
60
|
+
steps?: QuestionModelStep[];
|
|
60
61
|
};
|
|
61
62
|
media: Media;
|
|
62
63
|
}
|
|
@@ -69,6 +70,7 @@ export interface AiQuestionSubmitRes {
|
|
|
69
70
|
message: string;
|
|
70
71
|
}
|
|
71
72
|
export interface AiQuestionRef {
|
|
73
|
+
handleTemplate: (steps: QuestionModelStep[]) => void;
|
|
72
74
|
handleValues: () => Promise<AiQuestionValues>;
|
|
73
75
|
handleSubmit: () => Promise<AiQuestionSubmitRes>;
|
|
74
76
|
}
|
|
@@ -4,12 +4,14 @@ export declare const useAiQuestion: (props: AiQuestionProps) => {
|
|
|
4
4
|
ref: import("react").MutableRefObject<AiQuestionRef | undefined>;
|
|
5
5
|
handleValues: () => Promise<import("./interface").AiQuestionValues>;
|
|
6
6
|
handleSubmit: () => Promise<import("./interface").AiQuestionSubmitRes>;
|
|
7
|
+
handleTemplate: ((steps: import("./components/QuestionModel/interface").QuestionModelStep[]) => void) | undefined;
|
|
7
8
|
token: string;
|
|
8
9
|
name?: string | undefined;
|
|
9
|
-
|
|
10
|
+
templateList?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
10
11
|
mediaList?: {
|
|
11
12
|
url: string;
|
|
12
13
|
thumbUrl: string;
|
|
13
14
|
}[] | undefined;
|
|
14
|
-
onLoad?: ((steps
|
|
15
|
+
onLoad?: ((steps?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
16
|
+
onOpenTemplate?: ((steps?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
15
17
|
};
|
|
@@ -11,8 +11,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { useRef } from 'react';
|
|
13
13
|
export var useAiQuestion = function (props) {
|
|
14
|
+
var _a;
|
|
14
15
|
var ref = useRef();
|
|
15
16
|
var handleValues = function () { var _a; return (ref.current ? (_a = ref.current) === null || _a === void 0 ? void 0 : _a.handleValues() : Promise.reject()); };
|
|
16
17
|
var handleSubmit = function () { var _a; return (ref.current ? (_a = ref.current) === null || _a === void 0 ? void 0 : _a.handleSubmit() : Promise.reject()); };
|
|
17
|
-
|
|
18
|
+
var handleTemplate = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.handleTemplate;
|
|
19
|
+
return __assign(__assign({}, props), { ref: ref, handleValues: handleValues, handleSubmit: handleSubmit, handleTemplate: handleTemplate });
|
|
18
20
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Report: FC;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Report: React.FC;
|
|
3
3
|
export default Report;
|
|
@@ -9,37 +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 } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
14
|
-
import { Box } from 'fbm-ui';
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useMemo } from 'react';
|
|
14
|
+
import { Box, Typography, Tooltip, InfoOutlineIcon } from 'fbm-ui';
|
|
15
15
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import ScoreLegend from './ScoreLegend';
|
|
20
|
-
import ScoreBigBall from './ScoreBigBall';
|
|
21
|
-
var STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED;
|
|
16
|
+
import ReportPie from "../../../../components/Charts/ReportPie";
|
|
17
|
+
// import ScoreLegend from './ScoreLegend';
|
|
18
|
+
import ScoreBigBall from "../../../../components/ScoreBigBall";
|
|
22
19
|
var Report = function () {
|
|
23
|
-
var _a = useState([]), source = _a[0], setSource = _a[1];
|
|
24
20
|
var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
? [
|
|
31
|
-
type,
|
|
32
|
-
"".concat(index + 1, ". ").concat(name),
|
|
33
|
-
formatScore(originScore),
|
|
34
|
-
formatScore(Number(weight)),
|
|
35
|
-
formatScore(score),
|
|
36
|
-
formatLowScore(parseInt(score.toString(), 10)),
|
|
37
|
-
index,
|
|
38
|
-
]
|
|
39
|
-
: undefined;
|
|
40
|
-
}).filter(function (p) { return p; });
|
|
41
|
-
setSource(source);
|
|
42
|
-
}, [status, steps]);
|
|
43
|
-
return (_jsxs(Box, __assign({ width: "100%" }, { children: [_jsxs(Box, __assign({ height: 240, sx: { position: 'relative' } }, { children: [_jsx(RosePie, { source: source || [] }), _jsx(ScoreBigBall, { score: score || 0, status: status })] })), _jsx(ScoreLegend, { color: "rgb(59, 203, 121)" })] })));
|
|
21
|
+
var _a = reportResult || {}, orderToken = _a.orderToken, score = _a.score, status = _a.status, _b = _a.collection, collection = _b === void 0 ? [] : _b;
|
|
22
|
+
var title = useMemo(function () {
|
|
23
|
+
return (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u4F18\u79C0 \u4EE3\u8868\u5019\u9009\u4EBA\u8BE5\u9879\u80FD\u529B\u5728\u672C\u6B65\u9AA4\u6240\u6709\u5019\u9009\u4EBA\u4E2D\u6392\u540D\u5728\u524D30%" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u9002\u4E2D \u4EE3\u8868\u5019\u9009\u4EBA\u8BE5\u9879\u80FD\u529B\u5728\u672C\u6B65\u9AA4\u6240\u6709\u5019\u9009\u4EBA\u4E2D\u6392\u540D\u572830%~70%" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u6B20\u4F73 \u4EE3\u8868\u5019\u9009\u4EBA\u8BE5\u9879\u80FD\u529B\u5728\u672C\u6B65\u9AA4\u6240\u6709\u5019\u9009\u4EBA\u4E2D\u6392\u540D\u5728\u540E30%" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u4EBA\u6570\u5C0F\u4E8E5\u4EBA\u65F6\uFF0C\u8BC4\u4EF7\u4E0D\u751F\u6548" }))] }));
|
|
24
|
+
}, []);
|
|
25
|
+
return (_jsxs(Box, __assign({ width: "100%" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", pl: 3, pt: 2 }, { 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 })] }))] })));
|
|
44
26
|
};
|
|
45
27
|
export default Report;
|
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Message } from 'fbm-ui';
|
|
14
|
-
import { Paper, Divider } from '
|
|
14
|
+
import { Paper, Divider } from 'fbm-ui/lib/mui';
|
|
15
15
|
import { useRequest } from 'ahooks';
|
|
16
16
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
17
|
import { PostAiInterviewRefresh } from "../../../../services/ai-report";
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
export interface ScoreLegendProps {
|
|
2
2
|
color: string;
|
|
3
3
|
}
|
|
4
|
-
export interface ScoreBigBallProps {
|
|
5
|
-
score: number;
|
|
6
|
-
status?: number;
|
|
7
|
-
}
|
|
8
|
-
export interface RosePieProps {
|
|
9
|
-
source: any[];
|
|
10
|
-
}
|
|
11
4
|
export interface ScoreReportProps {
|
|
12
5
|
onRefreshSuccess: () => void;
|
|
13
6
|
}
|
|
@@ -15,11 +15,8 @@ export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<
|
|
|
15
15
|
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
16
16
|
titleAccess?: string | undefined;
|
|
17
17
|
viewBox?: string | undefined;
|
|
18
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "
|
|
18
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "onLoad" | "name" | "type" | "fill" | "values" | "d" | "y" | "key" | "className" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "max" | "media" | "method" | "min" | "target" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
19
19
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
20
20
|
}, "children" | "color" | "fontSize" | "shapeRendering" | "viewBox" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "htmlColor" | "titleAccess"> & {
|
|
21
21
|
children?: import("react").ReactNode;
|
|
22
22
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
23
|
-
export declare const ScoreBigBallRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
24
|
-
children?: import("react").ReactNode;
|
|
25
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Typography, RefreshIcon, styled } from 'fbm-ui';
|
|
2
2
|
export var ScoreTypography = styled(Typography)(function (_a) {
|
|
3
3
|
var theme = _a.theme;
|
|
4
4
|
return ({
|
|
@@ -21,16 +21,3 @@ export var RefreshIconRoot = styled(RefreshIcon)({
|
|
|
21
21
|
top: 2,
|
|
22
22
|
cursor: 'pointer',
|
|
23
23
|
});
|
|
24
|
-
export var ScoreBigBallRoot = styled(Box)({
|
|
25
|
-
display: 'flex',
|
|
26
|
-
justifyContent: 'center',
|
|
27
|
-
alignItems: 'center',
|
|
28
|
-
position: 'absolute',
|
|
29
|
-
top: '50%',
|
|
30
|
-
left: '50%',
|
|
31
|
-
transform: 'translate(-50%, -50%)',
|
|
32
|
-
width: 80,
|
|
33
|
-
height: 80,
|
|
34
|
-
borderRadius: '50%',
|
|
35
|
-
overflow: 'hidden',
|
|
36
|
-
});
|
|
@@ -11,9 +11,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
13
|
import { useState, useCallback, useMemo } from 'react';
|
|
14
|
-
import { Box, Typography, Button } from 'fbm-ui';
|
|
14
|
+
import { Box, Typography, Button, Chip } from 'fbm-ui';
|
|
15
15
|
import { theme } from 'fbm-ui/lib/components/ThemeProvider';
|
|
16
|
-
import { Paper } from '
|
|
16
|
+
import { Paper } from 'fbm-ui/lib/mui';
|
|
17
17
|
import update from 'immutability-helper';
|
|
18
18
|
import FormatQuoteIcon from '@mui/icons-material/FormatQuote';
|
|
19
19
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
@@ -25,15 +25,16 @@ import ScoreSlider from './ScoreSlider';
|
|
|
25
25
|
import Abilities from './Abilities';
|
|
26
26
|
var STEP_NO_ANSWER = INTERVIEW_STEP_STATUS.STEP_NO_ANSWER, STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED, STEP_FAILED = INTERVIEW_STEP_STATUS.STEP_FAILED, STEP_IN_CALCULATION = INTERVIEW_STEP_STATUS.STEP_IN_CALCULATION;
|
|
27
27
|
var QuestionItem = function (props) {
|
|
28
|
-
var token = props.token, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, name = _b.name, type = _b.type, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
|
|
28
|
+
var token = props.token, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, name = _b.name, type = _b.type, category = _b.category, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
|
|
29
29
|
var _d = useState(false), showAbilities = _d[0], setShowAbilities = _d[1];
|
|
30
|
-
var _e = useAiReportStore(function (store) { return [
|
|
30
|
+
var _e = useAiReportStore(function (store) { return [
|
|
31
|
+
store.reportResult,
|
|
32
|
+
store.stepToken,
|
|
33
|
+
store.operableButtons,
|
|
34
|
+
]; }), reportResult = _e.reportResult, stepToken = _e.stepToken, operableButtons = _e.operableButtons, updateState = _e.updateState, updateReportResult = _e.updateReportResult, onScoreChange = _e.onScoreChange, onStepChange = _e.onStepChange;
|
|
31
35
|
var steps = (reportResult || {}).steps;
|
|
32
|
-
var
|
|
36
|
+
var isDisplayAbilities = !(operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('abilities'));
|
|
33
37
|
var isExistWeight = weight > 0;
|
|
34
|
-
var isShowAbilitiesButton = abilities.length > 0 && isAbilities && !showAbilitiesDetails;
|
|
35
|
-
var isShowWeight = abilities.length === 0 || showAbilities || !isAbilities || showAbilitiesDetails;
|
|
36
|
-
var isShowAbilitiesDetails = abilities.length > 0 && (showAbilities || showAbilitiesDetails);
|
|
37
38
|
var comprehensiveScore = useMemo(function () {
|
|
38
39
|
if (status === STEP_COMPLETED) {
|
|
39
40
|
return (_jsx(Typography, __assign({ variant: "caption", color: theme.palette.primary.main, fontSize: 16, fontWeight: 500 }, { children: formatScore(score) })));
|
|
@@ -83,6 +84,6 @@ var QuestionItem = function (props) {
|
|
|
83
84
|
mt: 2,
|
|
84
85
|
cursor: videoUrl ? 'pointer' : 'inherit',
|
|
85
86
|
borderColor: token === stepToken ? theme.palette.primary.main : '',
|
|
86
|
-
}, variant: "outlined", onClick: handleClickItem }, { children: [_jsxs(Typography, __assign({ fontSize: 14, color: token === stepToken ? theme.palette.primary.main : theme.palette.text.primary }, { children: [index + 1, ".", name] })), _jsxs(QuestionDesc, { children: [_jsx(FormatQuoteIcon, {}), status === STEP_IN_CALCULATION ? (_jsx(Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : (_jsxs(_Fragment, { children: [_jsx(Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && (_jsxs(Box, { children: [_jsx("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), isExistWeight && status === STEP_COMPLETED && (_jsxs(Box, __assign({ mt: 2, display: "flex" }, { children: [_jsxs(Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })),
|
|
87
|
+
}, variant: "outlined", onClick: handleClickItem }, { children: [_jsxs(Typography, __assign({ fontSize: 14, color: token === stepToken ? theme.palette.primary.main : theme.palette.text.primary }, { children: [index + 1, ".", name] })), _jsxs(QuestionDesc, { children: [_jsx(FormatQuoteIcon, {}), status === STEP_IN_CALCULATION ? (_jsx(Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : (_jsxs(_Fragment, { children: [_jsx(Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && (_jsxs(Box, { children: [_jsx("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), _jsx(Box, __assign({ display: "flex", alignItems: "center", mt: 2 }, { children: category === null || category === void 0 ? void 0 : category.map(function (label) { return (_jsx(Chip, { color: "default", label: label, size: "small" }, label)); }) })), isExistWeight && status === STEP_COMPLETED && (_jsxs(Box, __assign({ mt: 2, display: "flex" }, { children: [_jsxs(Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), (abilities.length === 0 || showAbilities || isDisplayAbilities) && _jsxs(Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [_jsx(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && (_jsxs(_Fragment, { children: [_jsx(ScoreSlider, { originScore: originScore, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), abilities.length > 0 && !isDisplayAbilities && (_jsx(Button, __assign({ variant: "text", onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), _jsx(Box, __assign({ width: 150, textAlign: "right" }, { children: _jsxs(Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), abilities.length > 0 && (showAbilities || isDisplayAbilities) && _jsx(Abilities, { stepIndex: index })] }), token));
|
|
87
88
|
};
|
|
88
89
|
export default QuestionItem;
|