eli-video-interview 1.2.9 → 1.2.12
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/components/BigBallSvg/index.js +1 -1
- package/esm/components/RootProvider/index.js +2 -2
- package/esm/components/ScoreBigBall/index.js +1 -1
- package/esm/components/VideoPreview/index.js +2 -3
- package/esm/constants/ai-question.d.ts +1 -1
- package/esm/modules/ai-ability/Root.js +3 -3
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +2 -2
- package/esm/modules/ai-question/Root.js +5 -5
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +2 -2
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +2 -2
- 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 +4 -4
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +1 -1
- package/esm/modules/ai-question/components/BaseAccordion/index.js +8 -8
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +1 -1
- package/esm/modules/ai-question/components/BootVideo/index.js +6 -6
- package/esm/modules/ai-question/components/BootVideo/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/Header.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/Item.js +3 -3
- package/esm/modules/ai-question/components/QuestionModel/List.js +2 -2
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +7 -7
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +3 -3
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +2 -2
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +4 -4
- package/esm/modules/ai-report/components/AIEvaluate/Graph.js +1 -1
- package/esm/modules/ai-report/components/NotFinish/index.js +2 -2
- package/esm/modules/ai-report/components/RankingRange/Item.js +2 -2
- package/esm/modules/ai-report/components/RankingRange/index.js +1 -1
- package/esm/modules/ai-report/components/RankingRange/styled.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Bar.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Failed.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Report.js +2 -2
- package/esm/modules/ai-report/components/ScoreReport/Score.js +2 -2
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +2 -2
- package/esm/modules/ai-report/components/ScoreReport/index.js +5 -5
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
- package/esm/modules/ai-report/components/ScoreReport/styled.js +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +8 -8
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +3 -3
- package/esm/modules/ai-report/components/VideoQuestion/index.js +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -1
- package/esm/modules/ai-template/Root.js +5 -5
- package/esm/modules/ai-template/components/CapabilityModel/index.js +1 -1
- package/esm/modules/ai-template/components/QuestionList/Item.js +1 -1
- package/esm/modules/ai-template/components/TemplateHeader/index.js +1 -1
- package/esm/modules/ai-template/components/TemplateList/index.js +4 -4
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
- package/esm/modules/ai-template/components/TemplateList/styled.js +1 -1
- package/esm/modules/ai-template/components/TemplateMenu/index.js +3 -3
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
- package/esm/modules/ai-template/components/TemplateMenu/styled.js +1 -1
- package/esm/modules/ai-template/interface.d.ts +1 -1
- package/esm/store/ai-question/ai-analysis-store.d.ts +1 -1
- package/esm/store/ai-question/ai-analysis-store.js +4 -4
- package/esm/store/ai-question/question-model-store.js +2 -2
- package/esm/store/ai-question/question-preview-store.js +1 -1
- package/esm/store/ai-question/question-update-store.js +1 -1
- package/esm/store/ai-template/global-store.js +1 -1
- package/esm/utils/interceptor.js +2 -2
- package/lib/components/RootProvider/index.js +1 -1
- package/lib/components/ScoreBigBall/index.js +1 -1
- package/lib/components/VideoPreview/index.js +1 -2
- package/lib/constants/ai-question.d.ts +1 -1
- package/lib/modules/ai-ability/Root.js +1 -1
- package/lib/modules/ai-question/Root.js +4 -4
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +1 -1
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +1 -1
- package/lib/modules/ai-question/components/AiAnalysis/index.js +1 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +2 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +1 -1
- package/lib/modules/ai-question/components/BaseAccordion/index.js +3 -3
- package/lib/modules/ai-question/components/BootVideo/index.js +7 -7
- package/lib/modules/ai-question/components/QuestionModel/Item.js +1 -1
- package/lib/modules/ai-question/components/QuestionModel/List.js +2 -2
- package/lib/modules/ai-question/components/QuestionModel/index.js +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/index.js +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +1 -1
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +6 -6
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +2 -2
- package/lib/modules/ai-report/components/AIEvaluate/Graph.js +1 -1
- package/lib/modules/ai-report/components/NotFinish/index.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/Bar.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/Report.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/Score.js +2 -2
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/index.js +6 -6
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +6 -6
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -1
- package/lib/modules/ai-template/Root.js +3 -3
- package/lib/modules/ai-template/components/CapabilityModel/index.js +1 -1
- package/lib/modules/ai-template/components/TemplateList/index.js +2 -2
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
- package/lib/modules/ai-template/components/TemplateMenu/index.js +1 -1
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
- package/lib/modules/ai-template/interface.d.ts +1 -1
- package/lib/store/ai-question/ai-analysis-store.d.ts +1 -1
- package/lib/store/ai-question/ai-analysis-store.js +3 -3
- package/lib/store/ai-question/question-update-store.js +1 -1
- package/lib/utils/interceptor.js +2 -2
- package/package.json +2 -2
|
@@ -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, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
13
|
+
import { SvgGRoot, SvgRoot } from './styled';
|
|
14
14
|
var BigBallSvg = function () {
|
|
15
15
|
return (_jsxs(_Fragment, { children: [_jsx("style", { children: "\n @keyframes move-forever {\n 0% {\n transform: translate3d(-90px, 0, 0); }\n 100% {\n transform: translate3d(85px, 0, 0); }\n }\n " }), _jsxs(SvgRoot, __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 24 150 28", preserveAspectRatio: "none", shapeRendering: "auto" }, { children: [_jsx("defs", { children: _jsx("path", { id: "gentle-wave", d: "M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" }) }), _jsxs(SvgGRoot, { children: [_jsx("use", { xlinkHref: "#gentle-wave", x: "48", y: "0", fill: "rgba(59, 203, 120, 0.2)" }), _jsx("use", { xlinkHref: "#gentle-wave", x: "48", y: "3", fill: "rgba(59, 203, 120, 0.2)" }), _jsx("use", { xlinkHref: "#gentle-wave", x: "48", y: "5", fill: "rgba(59, 203, 120, 0.2)" }), _jsx("use", { xlinkHref: "#gentle-wave", x: "48", y: "7", fill: "rgba(59, 203, 120, 0.2)" })] })] }))] }));
|
|
16
16
|
};
|
|
@@ -10,10 +10,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { HoxRoot } from 'hox';
|
|
14
13
|
import { ThemeProvider } from 'fbm-ui';
|
|
15
14
|
import { StyledEngineProvider } from 'fbm-ui/lib/mui';
|
|
16
|
-
import {
|
|
15
|
+
import { HoxRoot } from 'hox';
|
|
16
|
+
import { createGenerateClassName, StylesProvider } from '@mui/styles';
|
|
17
17
|
var AnyStylesProvider = StylesProvider;
|
|
18
18
|
var generateClassName = createGenerateClassName({
|
|
19
19
|
seed: 'eli-video-interview',
|
|
@@ -10,8 +10,8 @@ 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 { formatScore } from "../../utils/utils";
|
|
14
13
|
import BigBallSvg from "../BigBallSvg";
|
|
14
|
+
import { formatScore } from "../../utils/utils";
|
|
15
15
|
import { ScoreBigBallRoot } from './styled';
|
|
16
16
|
var ScoreBigBall = function (_a) {
|
|
17
17
|
var score = _a.score, status = _a.status, _b = _a.width, width = _b === void 0 ? 80 : _b, _c = _a.height, height = _c === void 0 ? 80 : _c, _d = _a.fontSize, fontSize = _d === void 0 ? 20 : _d;
|
|
@@ -10,9 +10,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Box, Typography } from 'fbm-ui';
|
|
14
|
-
import {
|
|
15
|
-
import { VideoPreviewRoot, PageTurningRoot, FaceAnalysisRoot } from './styled';
|
|
13
|
+
import { Box, IconButton, KeyboardArrowLeftIcon, KeyboardArrowRightIcon, Typography } from 'fbm-ui';
|
|
14
|
+
import { FaceAnalysisRoot, PageTurningRoot, VideoPreviewRoot } from './styled';
|
|
16
15
|
var VideoPreview = function (props) {
|
|
17
16
|
var url = props.url, width = props.width, faceAnalysis = props.faceAnalysis, _a = props.currentPage, currentPage = _a === void 0 ? 1 : _a, _b = props.totalPage, totalPage = _b === void 0 ? 1 : _b, _c = props.isShowPageTurning, isShowPageTurning = _c === void 0 ? true : _c, _d = props.disabledPrev, disabledPrev = _d === void 0 ? false : _d, _e = props.disabledNext, disabledNext = _e === void 0 ? false : _e, style = props.style, onPrev = props.onPrev, onNext = props.onNext;
|
|
18
17
|
return (_jsxs(VideoPreviewRoot, __assign({ style: __assign({ width: width }, style) }, { children: [faceAnalysis && (_jsxs(FaceAnalysisRoot, { children: [(faceAnalysis === null || faceAnalysis === void 0 ? void 0 : faceAnalysis.beauty) >= 0 && (_jsxs(Typography, __assign({ variant: "body2", color: "#fff" }, { children: ["AI\u989C\u503C\uFF1A", faceAnalysis === null || faceAnalysis === void 0 ? void 0 : faceAnalysis.beauty, "\u5206"] }))), (faceAnalysis === null || faceAnalysis === void 0 ? void 0 : faceAnalysis.age) >= 0 && (_jsxs(Typography, __assign({ variant: "body2", color: "#fff" }, { children: ["AI\u5E74\u9F84\uFF1A", faceAnalysis === null || faceAnalysis === void 0 ? void 0 : faceAnalysis.age, "\u5C81"] })))] })), _jsx("video", { src: url, height: 530, controls: true, controlsList: "nodownload noremoteplayback", disablePictureInPicture: true }), isShowPageTurning && (_jsxs(PageTurningRoot, { children: [_jsx(IconButton, __assign({ disabled: disabledPrev, onClick: onPrev }, { children: _jsx(KeyboardArrowLeftIcon, {}) })), _jsxs(Box, { children: [currentPage, "/", totalPage] }), _jsx(IconButton, __assign({ disabled: disabledNext, onClick: onNext }, { children: _jsx(KeyboardArrowRightIcon, {}) }))] }))] })));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ADD_QUESTION_TYPE } from '@enum/ai-question';
|
|
2
1
|
import { QuestionParams } from '@/modules/ai-question/components/QuestionUpdate/interface';
|
|
2
|
+
import { ADD_QUESTION_TYPE } from '@enum/ai-question';
|
|
3
3
|
export declare const ADD_QUESTION_TYPE_LIST: {
|
|
4
4
|
type: ADD_QUESTION_TYPE;
|
|
5
5
|
title: string;
|
|
@@ -47,12 +47,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
49
|
import { useCallback } from 'react';
|
|
50
|
-
import { Box, Button,
|
|
50
|
+
import { AddIcon, Box, Button, confirm, DeleteIcon, EditIcon, Header, Link, Message, Table } from 'fbm-ui';
|
|
51
51
|
import { useRequest, useSetState } from 'ahooks';
|
|
52
52
|
import dayjs from 'dayjs';
|
|
53
|
-
import {
|
|
54
|
-
import { AbilityRoot } from './styled';
|
|
53
|
+
import { PostQuestionCollectionDelete, PostQuestionCollectionList } from "../../services/ai-ability";
|
|
55
54
|
import UpdateAbility from './components/UpdateAbility';
|
|
55
|
+
import { AbilityRoot } from './styled';
|
|
56
56
|
var AiAbilityRoot = function () {
|
|
57
57
|
var _a = useSetState({ open: false, name: '', token: '' }), state = _a[0], setState = _a[1];
|
|
58
58
|
var _b = useRequest(PostQuestionCollectionList), data = _b.data, getList = _b.run, listLoading = _b.loading;
|
|
@@ -46,8 +46,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
49
|
-
import { useEffect, useState
|
|
50
|
-
import { Dialog, TextField, useTextField
|
|
49
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
50
|
+
import { Dialog, Message, TextField, useTextField } from 'fbm-ui';
|
|
51
51
|
import { useRequest } from 'ahooks';
|
|
52
52
|
import { PostQuestionCollectionUpsert } from "../../../../services/ai-ability";
|
|
53
53
|
var UpdateAbility = function (props) {
|
|
@@ -46,17 +46,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
|
-
import {
|
|
49
|
+
import { forwardRef, memo, useEffect, useImperativeHandle } from 'react';
|
|
50
50
|
import { Box, Message } from 'fbm-ui';
|
|
51
|
-
import {
|
|
51
|
+
import { PostAiModelUpsert } from "../../services/ai-question";
|
|
52
52
|
import { AiAnalysisStoreProvider } from "../../store/ai-question/ai-analysis-store";
|
|
53
|
+
import { getBootVideoStore, useBootVideoStore } from "../../store/ai-question/boot-video-store";
|
|
54
|
+
import { useAiQuestionStore } from "../../store/ai-question/global-store";
|
|
53
55
|
import { getQuestionModelStore } from "../../store/ai-question/question-model-store";
|
|
54
|
-
import { useBootVideoStore, getBootVideoStore } from "../../store/ai-question/boot-video-store";
|
|
55
56
|
import { useQuestionModelStore } from "../../store/ai-question/question-model-store";
|
|
56
|
-
import { PostAiModelUpsert } from "../../services/ai-question";
|
|
57
|
-
import QuestionTemplate from './components/QuestionTemplate';
|
|
58
57
|
import QuestionModel from './components/QuestionModel';
|
|
59
58
|
import QuestionPreview from './components/QuestionPreview';
|
|
59
|
+
import QuestionTemplate from './components/QuestionTemplate';
|
|
60
60
|
import QuestionUpdate from './components/QuestionUpdate';
|
|
61
61
|
var AiQuestionRoot = forwardRef(function (props, ref) {
|
|
62
62
|
var updateState = useAiQuestionStore().updateState;
|
|
@@ -11,9 +11,9 @@ 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
|
|
15
|
-
import { Box, Typography, IconButton, CloseIcon, Input, InfoIcon, Tooltip, Select } from 'fbm-ui';
|
|
14
|
+
import { Box, CloseIcon, IconButton, InfoIcon, Input, Select, Tooltip, Typography } from 'fbm-ui';
|
|
16
15
|
import { ListItem, ListItemText } from 'fbm-ui/lib/mui';
|
|
16
|
+
import update from 'immutability-helper';
|
|
17
17
|
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
18
18
|
import { willOrNotOptions } from './const';
|
|
19
19
|
import MainPoints from './MainPoints';
|
|
@@ -10,9 +10,9 @@ 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 { useCallback, useEffect } from 'react';
|
|
14
|
+
import { AddIcon, Box, Button } from 'fbm-ui';
|
|
14
15
|
import update from 'immutability-helper';
|
|
15
|
-
import { Box, Button, AddIcon } from 'fbm-ui';
|
|
16
16
|
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
17
17
|
import { uniqueId } from "../../../../utils/utils";
|
|
18
18
|
import MainPointsItem from './MainPointsItem';
|
|
@@ -20,7 +20,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
20
20
|
};
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
22
|
import { useCallback } from 'react';
|
|
23
|
-
import { Box,
|
|
23
|
+
import { Box, CloseIcon, FormItem, IconButton, Select, TextField } from 'fbm-ui';
|
|
24
24
|
import { MenuItem } from 'fbm-ui/lib/mui';
|
|
25
25
|
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
26
26
|
import { HIGH_BRIGHT_COLOR } from './const';
|
|
@@ -11,11 +11,11 @@ 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 { useCallback, useState } from 'react';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { AddIcon, Box, Button, Checkbox, Typography } from 'fbm-ui';
|
|
15
|
+
import { Divider, List } from 'fbm-ui/lib/mui';
|
|
16
16
|
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
17
|
-
import { LANGUAGE_NAMES } from '../AiAssessmentCriteria/const';
|
|
18
17
|
import AiAssessmentCriteria from '../AiAssessmentCriteria';
|
|
18
|
+
import { LANGUAGE_NAMES } from '../AiAssessmentCriteria/const';
|
|
19
19
|
import AnalysisItem from './AnalysisItem';
|
|
20
20
|
var AiAnalysis = function () {
|
|
21
21
|
var _a = useAiAnalysisStore(function (store) { return [store.aiAbilities, store.analysisState]; }), aiAbilities = _a.aiAbilities, analysisState = _a.analysisState, updateState = _a.updateState;
|
|
@@ -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 { Dialog, Loading,
|
|
13
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
14
|
+
import { Checkbox, Dialog, Loading, Radio, RadioGroup, Typography } from 'fbm-ui';
|
|
15
15
|
import { Box, FormControl, FormLabel } from 'fbm-ui/lib/mui';
|
|
16
16
|
import { useRequest, useSetState } from 'ahooks';
|
|
17
|
-
import
|
|
17
|
+
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
18
18
|
import { CATEGORY_TYPE, LANGUAGE_TYPE } from "../../../../enum/ai-question";
|
|
19
19
|
import { PostAiAbilities } from "../../../../services/ai-question";
|
|
20
20
|
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
21
|
-
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
22
21
|
import { CATEGORY_NAME, SERVER_LANGUAGE_TYPE } from './const';
|
|
22
|
+
import { groupCategory } from './utils';
|
|
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;
|
|
@@ -10,19 +10,19 @@ 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 { useCallback, useEffect,
|
|
13
|
+
import { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
14
14
|
import { Box, Button, confirm } from 'fbm-ui';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { ExpandMore, Done } from '@mui/icons-material';
|
|
18
|
-
import { useQuestionPreviewStore } from "../../../../store/ai-question/question-preview-store";
|
|
19
|
-
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
15
|
+
import { Accordion, AccordionDetails, AccordionSummary, List, ListItem, ListItemText } from 'fbm-ui/lib/mui';
|
|
16
|
+
import { useDebounceFn, useHover } from 'ahooks';
|
|
20
17
|
import { IS_AI_ANALYSIS } from "../../../../constants/ai-question";
|
|
21
|
-
import { uniqueId } from "../../../../utils/utils";
|
|
22
18
|
import { LANGUAGE_TYPE } from "../../../../enum/ai-question";
|
|
19
|
+
import { Done, ExpandMore } from '@mui/icons-material';
|
|
20
|
+
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
21
|
+
import { useQuestionPreviewStore } from "../../../../store/ai-question/question-preview-store";
|
|
22
|
+
import { uniqueId } from "../../../../utils/utils";
|
|
23
23
|
import { defaultQuestionParams } from '../QuestionUpdate/const';
|
|
24
24
|
import { MAX_DISPLAY_SIZE } from './const';
|
|
25
|
-
import { AccordionRoot,
|
|
25
|
+
import { AccordionRoot, AccordionSubTitle, AccordionTitle } from './styled';
|
|
26
26
|
var LANGUAGE_TYPE_LIST = [LANGUAGE_TYPE.MANDARIN, LANGUAGE_TYPE.CANTONESE, LANGUAGE_TYPE.JAPANESE, LANGUAGE_TYPE.ENGLISH];
|
|
27
27
|
var BaseAccordion = function (props) {
|
|
28
28
|
var name = props.name, positionName = props.positionName, list = props.list, index = props.index, isShowOnlyAITest = props.isShowOnlyAITest, _a = props.isShowDesc, isShowDesc = _a === void 0 ? false : _a, _b = props.isShowSummaryAction, isShowSummaryAction = _b === void 0 ? false : _b, _c = props.isShowConfirm, isShowConfirm = _c === void 0 ? false : _c, _d = props.isShowPreview, isShowPreview = _d === void 0 ? true : _d;
|
|
@@ -19,17 +19,17 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
-
import {
|
|
23
|
-
import { Box,
|
|
24
|
-
import { useRequest, useSetState } from 'ahooks';
|
|
22
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
23
|
+
import { AddIcon, Box, Button, Checkbox, Dialog, InfoIcon, Message, Tooltip, Typography, Upload } from 'fbm-ui';
|
|
25
24
|
import { Divider } from 'fbm-ui/lib/mui';
|
|
26
|
-
import
|
|
25
|
+
import { useRequest, useSetState } from 'ahooks';
|
|
27
26
|
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
28
|
-
import
|
|
27
|
+
import SvgIcon from "../../../../components/SvgIcon";
|
|
29
28
|
import { DEFAULT_GUIDE_VIDEO } from "../../../../constants/ai-question";
|
|
29
|
+
import { PostCommonUpload } from "../../../../services/ai-question";
|
|
30
30
|
import { useBootVideoStore } from "../../../../store/ai-question/boot-video-store";
|
|
31
31
|
import { isExceedMaxVideoFileSize } from "../../../../utils/utils";
|
|
32
|
-
import { CustomUploadCardRoot, CustomUploadCardTitle,
|
|
32
|
+
import { CustomUploadButtonRoot, CustomUploadCardRoot, CustomUploadCardTitle, CustomUploadedImgRoot } from './styled';
|
|
33
33
|
var BootVideo = function (props) {
|
|
34
34
|
var open = props.open, onClose = props.onClose;
|
|
35
35
|
var _a = useBootVideoStore(), mediaUrl = _a.mediaUrl, thumbUrl = _a.thumbUrl, updateBootVideo = _a.updateBootVideo;
|
|
@@ -11,7 +11,7 @@ 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 } from 'react';
|
|
14
|
-
import { Box, Button,
|
|
14
|
+
import { Box, Button, InfoOutlineIcon, Tooltip, Typography, VideocamOutlineIcon } from 'fbm-ui';
|
|
15
15
|
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
16
16
|
import { getSecondToTime } from "../../../../utils/utils";
|
|
17
17
|
import BootVideo from '../BootVideo';
|
|
@@ -21,13 +21,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import {
|
|
25
|
-
import { Box, Chip,
|
|
24
|
+
import { memo, useCallback } from 'react';
|
|
25
|
+
import { Box, Chip, confirm, DeleteIcon, DragIndicatorIcon, EditIcon, IconButton, Input, Switch, Typography } from 'fbm-ui';
|
|
26
26
|
import { Paper } from 'fbm-ui/lib/mui';
|
|
27
|
+
import { DISABLED_REPEAT_TYPE, IS_AI_ANALYSIS, TEST_TYPE_READONLY } from "../../../../constants/ai-question";
|
|
27
28
|
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
28
29
|
import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
|
|
29
30
|
import { getSecondToTime } from "../../../../utils/utils";
|
|
30
|
-
import { TEST_TYPE_READONLY, DISABLED_REPEAT_TYPE, IS_AI_ANALYSIS } from "../../../../constants/ai-question";
|
|
31
31
|
var QuestionModelListItem = function (props) {
|
|
32
32
|
var index = props.index, disabledWeight = props.disabledWeight, steps = props.steps, step = __rest(props, ["index", "disabledWeight", "steps"]);
|
|
33
33
|
var token = step.token, name = step.name, desc = step.desc, duration = step.duration, weight = step.weight, type = step.type, aiShowType = step.aiShowType, aiType = step.aiType, answerStatus = step.answerStatus, category = step.category;
|
|
@@ -12,10 +12,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { useEffect, useRef } from 'react';
|
|
14
14
|
import { Box, Empty } from 'fbm-ui';
|
|
15
|
-
import Sortable from 'sortablejs';
|
|
16
15
|
import { arrayMoveImmutable } from 'array-move';
|
|
17
|
-
import
|
|
16
|
+
import Sortable from 'sortablejs';
|
|
18
17
|
import { IS_AI_ANALYSIS } from "../../../../constants/ai-question";
|
|
18
|
+
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
19
19
|
import QuestionModelListItem from './Item';
|
|
20
20
|
var QuestionModelList = function () {
|
|
21
21
|
var ref = useRef();
|
|
@@ -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 { Box,
|
|
13
|
+
import { Box, Paper, Skeleton, Stack } from 'fbm-ui/lib/mui';
|
|
14
14
|
var QuestionModelSkeleton = function () {
|
|
15
15
|
return (_jsxs(Box, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center", spacing: 2, sx: { mb: 3 } }, { children: [_jsx(Skeleton, { variant: "text", width: 120, height: 28 }), _jsx(Skeleton, { variant: "text", width: 120, height: 18 })] })), _jsxs(Stack, __assign({ spacing: 3 }, { children: [_jsxs(Paper, __assign({ elevation: 2, sx: { height: 80, padding: 3 } }, { children: [_jsx(Skeleton, { variant: "text", width: 128, height: 8, sx: { mb: 3 } }), _jsx(Skeleton, { variant: "text", width: 360, height: 8 })] })), _jsxs(Paper, __assign({ elevation: 2, sx: { height: 80, padding: 3 } }, { children: [_jsx(Skeleton, { variant: "text", width: 128, height: 8, sx: { mb: 3 } }), _jsx(Skeleton, { variant: "text", width: 360, height: 8 })] }))] }))] }));
|
|
16
16
|
};
|
|
@@ -17,10 +17,10 @@ import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
|
|
|
17
17
|
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
18
18
|
import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
|
|
19
19
|
import { defaultQuestionParams } from '../QuestionUpdate/const';
|
|
20
|
-
import { QuestionModelRoot } from './styled';
|
|
21
20
|
import QuestionModelHeader from './Header';
|
|
22
21
|
import QuestionModelList from './List';
|
|
23
22
|
import Skeleton from './Skeleton';
|
|
23
|
+
import { QuestionModelRoot } from './styled';
|
|
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;
|
|
@@ -12,9 +12,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useEffect, useState } from 'react';
|
|
14
14
|
import { Box, Typography } from 'fbm-ui';
|
|
15
|
-
import { useQuestionPreviewStore } from "../../../../store/ai-question/question-preview-store";
|
|
16
15
|
import { QUESTION_TYPE_MAPPING_LABEL } from "../../../../constants/ai-question";
|
|
17
16
|
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
17
|
+
import { useQuestionPreviewStore } from "../../../../store/ai-question/question-preview-store";
|
|
18
18
|
import Form from '../QuestionUpdate/Form';
|
|
19
19
|
import { PreviewRoot } from './styled';
|
|
20
20
|
var QuestionPreview = function () {
|
|
@@ -8,4 +8,4 @@ export declare const PreviewRoot: import("@emotion/styled").StyledComponent<{
|
|
|
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" |
|
|
11
|
+
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "elevation" | "variant" | "square"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
@@ -11,19 +11,19 @@ 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 {
|
|
15
|
-
import { useSetState } from 'ahooks';
|
|
14
|
+
import { AddIcon, Box, Button, LayerOutlineIcon, Popover, SMSOneIcon, Typography } from 'fbm-ui';
|
|
16
15
|
import { List, ListItem, ListItemButton, ListItemIcon, ListItemText } from 'fbm-ui/lib/mui';
|
|
16
|
+
import { useSetState } from 'ahooks';
|
|
17
|
+
import SvgIcon from "../../../../components/SvgIcon";
|
|
18
|
+
import { ADD_QUESTION_TYPE_LIST } from "../../../../constants/ai-question";
|
|
19
|
+
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
17
20
|
import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
|
|
18
21
|
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
19
|
-
import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
|
|
20
22
|
import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
|
|
21
|
-
import {
|
|
22
|
-
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
23
|
-
import SvgIcon from "../../../../components/SvgIcon";
|
|
23
|
+
import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
|
|
24
24
|
import { uniqueId } from "../../../../utils/utils";
|
|
25
|
-
import { defaultQuestionParams } from '../QuestionUpdate/const';
|
|
26
25
|
import BaseAccordion from '../BaseAccordion';
|
|
26
|
+
import { defaultQuestionParams } from '../QuestionUpdate/const';
|
|
27
27
|
var AiEvaluation = function () {
|
|
28
28
|
var onOpenTemplate = useAiQuestionStore(function (store) { return [store.onOpenTemplate]; }).onOpenTemplate;
|
|
29
29
|
var updateQuestionState = useUpdateQuestionStore(function (store) { return [store.updateQuestionState]; }).updateQuestionState;
|
|
@@ -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 {
|
|
13
|
+
import { Paper, Skeleton, Stack } 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
|
};
|
|
@@ -10,8 +10,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { useRequest } from 'ahooks';
|
|
14
13
|
import { Box } from 'fbm-ui';
|
|
14
|
+
import { useRequest } from 'ahooks';
|
|
15
15
|
import { PostAiModelQuestions } from "../../../../services/ai-question";
|
|
16
16
|
import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
|
|
17
17
|
import AiEvaluation from './AiEvaluation';
|
|
@@ -46,13 +46,13 @@ 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 { memo, useEffect,
|
|
50
|
-
import { Box, Form, FormItem, Select,
|
|
49
|
+
import { forwardRef, memo, useEffect, useImperativeHandle } from 'react';
|
|
50
|
+
import { Autocomplete, Box, Form, FormItem, Select, useForm } from 'fbm-ui';
|
|
51
51
|
import { useRequest } from 'ahooks';
|
|
52
52
|
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
53
53
|
import { PostQuestionCollectionList } from "../../../../services/ai-ability";
|
|
54
|
-
import { broadcastModeOptions, prepareTimeOptions, durationOptions } from './const';
|
|
55
54
|
import AiAnalysis from '../AiAnalysis';
|
|
55
|
+
import { broadcastModeOptions, durationOptions, prepareTimeOptions } from './const';
|
|
56
56
|
import VideoVoice from './VideoVoice';
|
|
57
57
|
var QuestionForm = forwardRef(function (props, ref) {
|
|
58
58
|
var aiShowType = props.aiShowType, initialValues = props.initialValues, values = props.values, preview = props.preview, onValuesChange = props.onValuesChange, onSubmit = props.onSubmit;
|
|
@@ -10,9 +10,9 @@ 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 { Box, Button, FormItem, Message, Typography, Upload, UploadIcon } from 'fbm-ui';
|
|
14
|
+
import { Checkbox, FormControlLabel, FormGroup } from 'fbm-ui/lib/mui';
|
|
13
15
|
import { useRequest } from 'ahooks';
|
|
14
|
-
import { FormItem, Upload, Typography, Box, Button, UploadIcon, Message } from 'fbm-ui';
|
|
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";
|
|
@@ -57,14 +57,14 @@ 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 { useEffect, useRef, useState
|
|
61
|
-
import { Box,
|
|
60
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
61
|
+
import { Box, Button, confirm, Dialog, Message, Popover, Typography } from 'fbm-ui';
|
|
62
62
|
import { MenuItem } from 'fbm-ui/lib/mui';
|
|
63
|
+
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
63
64
|
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
65
|
+
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
64
66
|
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
65
67
|
import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
|
|
66
|
-
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
67
|
-
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
68
68
|
import { defaultQuestionParams } from './const';
|
|
69
69
|
import Form from './Form';
|
|
70
70
|
var QuestionUpdate = function () {
|
|
@@ -157,7 +157,7 @@ var draw = function (layout, color, dimensions, pathRef, ctx) {
|
|
|
157
157
|
drawTop(layout, ctx);
|
|
158
158
|
drowBackground(layout, ctx);
|
|
159
159
|
dimensions.forEach(function (v, i) {
|
|
160
|
-
var level = serverLevelMap[v.level];
|
|
160
|
+
var level = serverLevelMap[v.level - 1];
|
|
161
161
|
var p = percent(v);
|
|
162
162
|
var target = level.width * p + 4;
|
|
163
163
|
var endPointX = level.start + target + layout.leftLableWidth;
|
|
@@ -10,9 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Box, Typography
|
|
14
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
13
|
+
import { Alert, Box, Typography } from 'fbm-ui';
|
|
15
14
|
import { COMPLETED_STATUS } from "../../../../enum/ai-report";
|
|
15
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
16
|
var NotFinish = function () {
|
|
17
17
|
var _a = useAiReportStore(function (store) { return [store.reportResult, store.interviewCheat]; }), reportResult = _a.reportResult, interviewCheat = _a.interviewCheat;
|
|
18
18
|
var _b = (reportResult || {}).completedStatus, completedStatus = _b === void 0 ? 1 : _b;
|
|
@@ -10,8 +10,8 @@ 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 {
|
|
14
|
-
import { Box,
|
|
13
|
+
import { memo, useCallback, useEffect, useState } from 'react';
|
|
14
|
+
import { Box, CloseIcon, IconButton, Typography } from 'fbm-ui';
|
|
15
15
|
import { RangeInput, RangeTypography } from './styled';
|
|
16
16
|
var RankingRangeItem = function (props) {
|
|
17
17
|
var item = props.item, disabled = props.disabled, index = props.index, onChange = props.onChange, onDelete = props.onDelete;
|
|
@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
49
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
50
|
-
import {
|
|
50
|
+
import { AddIcon, Box, Button, Dialog, Message, Typography } from 'fbm-ui';
|
|
51
51
|
import { useImmer } from 'use-immer';
|
|
52
52
|
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
53
53
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
@@ -12,8 +12,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useEffect, useState } from 'react';
|
|
14
14
|
import { Box, Typography } from 'fbm-ui';
|
|
15
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
15
|
import { scoreRankIntervalColors } from "../../../../constants/ai-report";
|
|
16
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
17
|
var Bar = function () {
|
|
18
18
|
var _a = useState(1), currentRank = _a[0], setCurrentRank = _a[1];
|
|
19
19
|
var _b = useState('前0% ~ 100%'), text = _b[0], setText = _b[1];
|
|
@@ -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 { Box,
|
|
13
|
+
import { Box, Button, CancelIcon, RefreshIcon, Typography } from 'fbm-ui';
|
|
14
14
|
import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
|
|
15
15
|
var FAILED = INTERVIEW_STATUS.FAILED;
|
|
16
16
|
var Failed = function (_a) {
|
|
@@ -11,11 +11,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
|
-
import { Box,
|
|
15
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
14
|
+
import { Box, InfoOutlineIcon, Tooltip, Typography } from 'fbm-ui';
|
|
16
15
|
import ReportPie from "../../../../components/Charts/ReportPie";
|
|
17
16
|
// import ScoreLegend from './ScoreLegend';
|
|
18
17
|
import ScoreBigBall from "../../../../components/ScoreBigBall";
|
|
18
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
19
19
|
var Report = function () {
|
|
20
20
|
var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
|
|
21
21
|
var _a = reportResult || {}, orderToken = _a.orderToken, score = _a.score, status = _a.status, _b = _a.collection, collection = _b === void 0 ? [] : _b;
|
|
@@ -11,13 +11,13 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useEffect, useState } from 'react';
|
|
14
|
+
import { Box, Button, DownloadIcon, Popover, Typography } from 'fbm-ui';
|
|
14
15
|
import dayjs from 'dayjs';
|
|
15
|
-
import { Box, Popover, Typography, Button, DownloadIcon } from 'fbm-ui';
|
|
16
16
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
17
|
import { formatScore } from "../../../../utils/utils";
|
|
18
|
-
import { ScoreTypography, ScoreUnitTypography, RefreshIconRoot } from './styled';
|
|
19
18
|
import RankingRange from '../RankingRange';
|
|
20
19
|
import Bar from './Bar';
|
|
20
|
+
import { RefreshIconRoot, ScoreTypography, ScoreUnitTypography } from './styled';
|
|
21
21
|
var Score = function (_a) {
|
|
22
22
|
var loading = _a.loading, onRefresh = _a.onRefresh;
|
|
23
23
|
var _b = useState(false), openRankingRange = _b[0], setOpenRankingRange = _b[1];
|