eli-video-interview 1.2.8 → 1.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/esm/components/BigBallSvg/index.js +1 -1
  2. package/esm/components/RootProvider/index.js +2 -2
  3. package/esm/components/ScoreBigBall/index.js +1 -1
  4. package/esm/components/VideoPreview/index.js +2 -3
  5. package/esm/constants/ai-question.d.ts +1 -1
  6. package/esm/modules/ai-ability/Root.js +3 -3
  7. package/esm/modules/ai-ability/components/UpdateAbility/index.js +2 -2
  8. package/esm/modules/ai-question/Root.js +5 -5
  9. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +2 -2
  10. package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +2 -2
  11. package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +1 -1
  12. package/esm/modules/ai-question/components/AiAnalysis/index.js +3 -3
  13. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +4 -4
  14. package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +1 -1
  15. package/esm/modules/ai-question/components/BaseAccordion/index.js +8 -8
  16. package/esm/modules/ai-question/components/BaseAccordion/styled.js +1 -1
  17. package/esm/modules/ai-question/components/BootVideo/index.js +6 -6
  18. package/esm/modules/ai-question/components/BootVideo/styled.js +1 -1
  19. package/esm/modules/ai-question/components/QuestionModel/Header.js +1 -1
  20. package/esm/modules/ai-question/components/QuestionModel/Item.js +3 -3
  21. package/esm/modules/ai-question/components/QuestionModel/List.js +2 -2
  22. package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +1 -1
  23. package/esm/modules/ai-question/components/QuestionModel/index.js +1 -1
  24. package/esm/modules/ai-question/components/QuestionModel/styled.js +1 -1
  25. package/esm/modules/ai-question/components/QuestionPreview/index.js +1 -1
  26. package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +1 -1
  27. package/esm/modules/ai-question/components/QuestionPreview/styled.js +1 -1
  28. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +7 -7
  29. package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +1 -1
  30. package/esm/modules/ai-question/components/QuestionTemplate/index.js +1 -1
  31. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +3 -3
  32. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +2 -2
  33. package/esm/modules/ai-question/components/QuestionUpdate/index.js +4 -4
  34. package/esm/modules/ai-report/components/AIEvaluate/Graph.d.ts +1 -0
  35. package/esm/modules/ai-report/components/AIEvaluate/Graph.js +29 -12
  36. package/esm/modules/ai-report/components/NotFinish/index.js +2 -2
  37. package/esm/modules/ai-report/components/RankingRange/Item.js +2 -2
  38. package/esm/modules/ai-report/components/RankingRange/index.js +1 -1
  39. package/esm/modules/ai-report/components/RankingRange/styled.js +1 -1
  40. package/esm/modules/ai-report/components/ScoreReport/Bar.js +1 -1
  41. package/esm/modules/ai-report/components/ScoreReport/Failed.js +1 -1
  42. package/esm/modules/ai-report/components/ScoreReport/Report.js +2 -2
  43. package/esm/modules/ai-report/components/ScoreReport/Score.js +2 -2
  44. package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +2 -2
  45. package/esm/modules/ai-report/components/ScoreReport/index.js +5 -5
  46. package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
  47. package/esm/modules/ai-report/components/ScoreReport/styled.js +1 -1
  48. package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +1 -1
  49. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +6 -6
  50. package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +3 -3
  51. package/esm/modules/ai-report/components/VideoQuestion/index.js +1 -1
  52. package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +1 -1
  53. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -1
  54. package/esm/modules/ai-template/Root.js +5 -5
  55. package/esm/modules/ai-template/components/CapabilityModel/index.js +1 -1
  56. package/esm/modules/ai-template/components/QuestionList/Item.js +1 -1
  57. package/esm/modules/ai-template/components/TemplateHeader/index.js +1 -1
  58. package/esm/modules/ai-template/components/TemplateList/index.js +4 -4
  59. package/esm/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
  60. package/esm/modules/ai-template/components/TemplateList/styled.js +1 -1
  61. package/esm/modules/ai-template/components/TemplateMenu/index.js +3 -3
  62. package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
  63. package/esm/modules/ai-template/components/TemplateMenu/styled.js +1 -1
  64. package/esm/modules/ai-template/interface.d.ts +1 -1
  65. package/esm/store/ai-question/ai-analysis-store.d.ts +1 -1
  66. package/esm/store/ai-question/ai-analysis-store.js +4 -4
  67. package/esm/store/ai-question/question-model-store.js +2 -2
  68. package/esm/store/ai-question/question-preview-store.js +1 -1
  69. package/esm/store/ai-question/question-update-store.js +1 -1
  70. package/esm/store/ai-template/global-store.js +1 -1
  71. package/esm/utils/interceptor.js +2 -2
  72. package/lib/components/RootProvider/index.js +1 -1
  73. package/lib/components/ScoreBigBall/index.js +1 -1
  74. package/lib/components/VideoPreview/index.js +1 -2
  75. package/lib/constants/ai-question.d.ts +1 -1
  76. package/lib/modules/ai-ability/Root.js +1 -1
  77. package/lib/modules/ai-question/Root.js +4 -4
  78. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +1 -1
  79. package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +1 -1
  80. package/lib/modules/ai-question/components/AiAnalysis/index.js +1 -1
  81. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +2 -2
  82. package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +1 -1
  83. package/lib/modules/ai-question/components/BaseAccordion/index.js +3 -3
  84. package/lib/modules/ai-question/components/BootVideo/index.js +7 -7
  85. package/lib/modules/ai-question/components/QuestionModel/Item.js +1 -1
  86. package/lib/modules/ai-question/components/QuestionModel/List.js +2 -2
  87. package/lib/modules/ai-question/components/QuestionModel/index.js +1 -1
  88. package/lib/modules/ai-question/components/QuestionPreview/index.js +1 -1
  89. package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +1 -1
  90. package/lib/modules/ai-question/components/QuestionPreview/styled.js +1 -1
  91. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +6 -6
  92. package/lib/modules/ai-question/components/QuestionTemplate/index.js +1 -1
  93. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +1 -1
  94. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +1 -1
  95. package/lib/modules/ai-question/components/QuestionUpdate/index.js +2 -2
  96. package/lib/modules/ai-report/components/AIEvaluate/Graph.d.ts +1 -0
  97. package/lib/modules/ai-report/components/AIEvaluate/Graph.js +29 -12
  98. package/lib/modules/ai-report/components/NotFinish/index.js +1 -1
  99. package/lib/modules/ai-report/components/ScoreReport/Bar.js +1 -1
  100. package/lib/modules/ai-report/components/ScoreReport/Report.js +1 -1
  101. package/lib/modules/ai-report/components/ScoreReport/Score.js +2 -2
  102. package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +1 -1
  103. package/lib/modules/ai-report/components/ScoreReport/index.js +6 -6
  104. package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
  105. package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +1 -1
  106. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +4 -4
  107. package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +1 -1
  108. package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +1 -1
  109. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -1
  110. package/lib/modules/ai-template/Root.js +3 -3
  111. package/lib/modules/ai-template/components/CapabilityModel/index.js +1 -1
  112. package/lib/modules/ai-template/components/TemplateList/index.js +2 -2
  113. package/lib/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
  114. package/lib/modules/ai-template/components/TemplateMenu/index.js +1 -1
  115. package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
  116. package/lib/modules/ai-template/interface.d.ts +1 -1
  117. package/lib/store/ai-question/ai-analysis-store.d.ts +1 -1
  118. package/lib/store/ai-question/ai-analysis-store.js +3 -3
  119. package/lib/store/ai-question/question-update-store.js +1 -1
  120. package/lib/utils/interceptor.js +2 -2
  121. 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 { SvgRoot, SvgGRoot } from './styled';
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 { StylesProvider, createGenerateClassName } from '@mui/styles';
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 { KeyboardArrowLeftIcon, KeyboardArrowRightIcon, IconButton } from 'fbm-ui';
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, Header, Table, Link, EditIcon, DeleteIcon, AddIcon, Message, confirm } from 'fbm-ui';
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 { PostQuestionCollectionList, PostQuestionCollectionDelete } from "../../services/ai-ability";
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, useCallback } from 'react';
50
- import { Dialog, TextField, useTextField, Message } from 'fbm-ui';
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 { useEffect, forwardRef, useImperativeHandle, memo } from 'react';
49
+ import { forwardRef, memo, useEffect, useImperativeHandle } from 'react';
50
50
  import { Box, Message } from 'fbm-ui';
51
- import { useAiQuestionStore } from "../../store/ai-question/global-store";
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 update from 'immutability-helper';
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 { useEffect, useCallback } from 'react';
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, IconButton, CloseIcon, TextField, Select, FormItem } from 'fbm-ui';
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 { Box, Typography, Button, Checkbox, AddIcon } from 'fbm-ui';
15
- import { List, Divider } from 'fbm-ui/lib/mui';
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 { useEffect, useCallback, useState } from 'react';
14
- import { Dialog, Loading, Typography, RadioGroup, Radio, Checkbox } from 'fbm-ui';
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 { groupCategory } from './utils';
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;
@@ -1,4 +1,4 @@
1
- import { Mapping, AiAbilityItem, GroupCategoryRet } from './interface';
1
+ import { AiAbilityItem, GroupCategoryRet, Mapping } from './interface';
2
2
  /**
3
3
  * 根据field对AI考核标准数据进行分组
4
4
  * @param list 源数组
@@ -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, useState, useRef, memo } from 'react';
13
+ import { memo, useCallback, useEffect, useRef, useState } from 'react';
14
14
  import { Box, Button, confirm } from 'fbm-ui';
15
- import { List, ListItem, ListItemText, Accordion, AccordionSummary, AccordionDetails } from 'fbm-ui/lib/mui';
16
- import { useHover, useDebounceFn } from 'ahooks';
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, AccordionTitle, AccordionSubTitle } from './styled';
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;
@@ -1,4 +1,4 @@
1
- import { Box, Typography, styled } from 'fbm-ui';
1
+ import { Box, styled, Typography } from 'fbm-ui';
2
2
  export var AccordionRoot = styled(Box)(function (_a) {
3
3
  var theme = _a.theme;
4
4
  return ({
@@ -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 { useState, useCallback, useEffect } from 'react';
23
- import { Box, Dialog, Upload, Typography, Button, AddIcon, Tooltip, InfoIcon, Message, Checkbox } from 'fbm-ui';
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 SvgIcon from "../../../../components/SvgIcon";
25
+ import { useRequest, useSetState } from 'ahooks';
27
26
  import ScrollDialogContent from "../../../../components/ScrollDialogContent";
28
- import { PostCommonUpload } from "../../../../services/ai-question";
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, CustomUploadButtonRoot, CustomUploadedImgRoot } from './styled';
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;
@@ -1,4 +1,4 @@
1
- import { styled, Box } from 'fbm-ui';
1
+ import { Box, styled } from 'fbm-ui';
2
2
  export var CustomUploadCardRoot = styled(Box)({
3
3
  backgroundColor: '#fff',
4
4
  border: '1px dashed #e0e0e0',
@@ -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, Typography, VideocamOutlineIcon, Tooltip, InfoOutlineIcon } from 'fbm-ui';
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 { useCallback, memo } from 'react';
25
- import { Box, Chip, Input, Typography, IconButton, DragIndicatorIcon, EditIcon, DeleteIcon, Switch, confirm } from 'fbm-ui';
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 { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
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, Stack, Skeleton, Paper } from 'fbm-ui/lib/mui';
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;
@@ -1,4 +1,4 @@
1
- import { styled, Box } from 'fbm-ui';
1
+ import { Box, styled } from 'fbm-ui';
2
2
  export var QuestionModelRoot = styled(Box)({
3
3
  width: '100%',
4
4
  height: '100%',
@@ -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" | "elevation" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "square"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
11
+ }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "elevation" | "variant" | "square"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
@@ -1,5 +1,5 @@
1
- import { Paper } from 'fbm-ui/lib/mui';
2
1
  import { styled } from 'fbm-ui';
2
+ import { Paper } from 'fbm-ui/lib/mui';
3
3
  export var PreviewRoot = styled(Paper)({
4
4
  padding: 20,
5
5
  position: 'absolute',
@@ -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 { Box, Popover, Button, Typography, AddIcon, LayerOutlineIcon, SMSOneIcon } from 'fbm-ui';
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 { ADD_QUESTION_TYPE_LIST } from "../../../../constants/ai-question";
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 { Stack, Skeleton, Paper } from 'fbm-ui/lib/mui';
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, forwardRef, useImperativeHandle } from 'react';
50
- import { Box, Form, FormItem, Select, Autocomplete, useForm } from 'fbm-ui';
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, useCallback } from 'react';
61
- import { Box, Dialog, Typography, Popover, Message, Button, confirm } from 'fbm-ui';
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 () {
@@ -4,6 +4,7 @@ interface Dimension {
4
4
  score: number;
5
5
  rank: number;
6
6
  total: number;
7
+ level: number;
7
8
  }
8
9
  interface GraphProps {
9
10
  items: Array<Dimension>;
@@ -10,6 +10,28 @@ function setupCanvas(canvas) {
10
10
  return ctx;
11
11
  }
12
12
  var levelOrder = ['Bad', 'Good', 'Best'];
13
+ var serverLevelMap = [
14
+ {
15
+ level: 'Best',
16
+ start: 134 + 171 + 10,
17
+ width: 125 - 12,
18
+ },
19
+ {
20
+ level: 'Good',
21
+ start: 134 + 5,
22
+ width: 171 - 10,
23
+ },
24
+ {
25
+ level: 'Bad',
26
+ start: 0,
27
+ width: 134 - 10,
28
+ },
29
+ {
30
+ level: 'Bad',
31
+ start: 0,
32
+ width: 0,
33
+ },
34
+ ];
13
35
  var levelConf = {
14
36
  Bad: {
15
37
  label: '欠佳',
@@ -39,8 +61,9 @@ var measureTextWidth = function (ctx, text) {
39
61
  return width;
40
62
  };
41
63
  function isInPath(x, y, tx, ty, ctx) {
64
+ var dpr = window.devicePixelRatio || 1;
42
65
  ctx.beginPath();
43
- ctx.arc(tx / 2, ty / 2, 10 / 2, 0, Math.PI * 2, true);
66
+ ctx.arc(tx / dpr, ty / dpr, 10 / dpr, 0, Math.PI * 2, true);
44
67
  var ret = ctx.isPointInPath(x, y);
45
68
  ctx.closePath();
46
69
  return ret;
@@ -87,13 +110,7 @@ var percent = function (_a) {
87
110
  return Math.min(0.975, parseFloat((1 - rank / total).toFixed(2)));
88
111
  };
89
112
  var getPointColor = function (s) {
90
- var conf = Object.entries(levelConf);
91
- for (var _i = 0, conf_1 = conf; _i < conf_1.length; _i++) {
92
- var _a = conf_1[_i], v = _a[1];
93
- if (v.endScore >= s * 100)
94
- return v.pointColor;
95
- }
96
- return [];
113
+ return levelConf[s].pointColor;
97
114
  };
98
115
  var drawLable = function (lable, x, y, ctx) {
99
116
  ctx.fillStyle = 'black';
@@ -139,15 +156,15 @@ var drawRoundedRect = function (x, y, width, height, r, fill, stroke, ctx) {
139
156
  var draw = function (layout, color, dimensions, pathRef, ctx) {
140
157
  drawTop(layout, ctx);
141
158
  drowBackground(layout, ctx);
142
- var maxWidth = 439;
143
159
  dimensions.forEach(function (v, i) {
160
+ var level = serverLevelMap[v.level - 1];
144
161
  var p = percent(v);
145
- var target = maxWidth * p + 4;
146
- var endPointX = target + layout.leftLableWidth;
162
+ var target = level.width * p + 4;
163
+ var endPointX = level.start + target + layout.leftLableWidth;
147
164
  var endPointY = 65 + layout.itemSpacing * i;
148
165
  drawLable(v.name, 10, endPointY, ctx);
149
166
  drawLine(layout.leftLableWidth, endPointX, endPointY, ctx);
150
- var _a = getPointColor(p), fill = _a[0], stroke = _a[1];
167
+ var _a = getPointColor(level.level), fill = _a[0], stroke = _a[1];
151
168
  drawPoint(fill, stroke, endPointX, endPointY, ctx);
152
169
  pathRef.push({ x: endPointX, y: endPointY, tips: "".concat(v === null || v === void 0 ? void 0 : v.name, "\u5F97\u5206:").concat(v === null || v === void 0 ? void 0 : v.score.toFixed(2), "\u5206") });
153
170
  });
@@ -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, Alert } from 'fbm-ui';
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 { useEffect, useCallback, useState, memo } from 'react';
14
- import { Box, Typography, IconButton, CloseIcon } from 'fbm-ui';
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 { Box, Typography, Button, AddIcon, Message, Dialog } from 'fbm-ui';
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";
@@ -1,4 +1,4 @@
1
- import { Input, Typography, styled } from 'fbm-ui';
1
+ import { Input, styled, Typography } from 'fbm-ui';
2
2
  export var RangeInput = styled(Input)({
3
3
  width: 82,
4
4
  });