eli-video-interview 1.2.37 → 1.2.38

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 (71) hide show
  1. package/esm/components/BigBallSvg/styled.d.ts +2 -2
  2. package/esm/components/Charts/Chart.js +1 -1
  3. package/esm/components/Charts/ReportPie.js +1 -1
  4. package/esm/components/ScoreBigBall/styled.d.ts +1 -1
  5. package/esm/components/ScrollDialogContent/index.d.ts +1 -1
  6. package/esm/components/VideoPreview/styled.d.ts +3 -3
  7. package/esm/constants/ai-question.d.ts +17 -0
  8. package/esm/constants/ai-question.js +19 -0
  9. package/esm/modules/ai-ability/styled.d.ts +2 -2
  10. package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +1 -1
  11. package/esm/modules/ai-question/Root.js +3 -9
  12. package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +1 -1
  13. package/esm/modules/ai-question/components/BaseAccordion/styled.d.ts +3 -3
  14. package/esm/modules/ai-question/components/BootVideo/index.js +45 -22
  15. package/esm/modules/ai-question/components/BootVideo/styled.d.ts +4 -4
  16. package/esm/modules/ai-question/components/QuestionModel/Interactive.d.ts +2 -5
  17. package/esm/modules/ai-question/components/QuestionModel/Interactive.js +12 -10
  18. package/esm/modules/ai-question/components/QuestionModel/index.js +5 -1
  19. package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +4 -1
  20. package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +1 -1
  21. package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
  22. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +1 -1
  23. package/esm/modules/ai-question/components/QuestionUpdate/index.js +0 -2
  24. package/esm/modules/ai-question/components/QuestionUpdate/styled.d.ts +5 -5
  25. package/esm/modules/ai-question/interface.d.ts +17 -0
  26. package/esm/modules/ai-report/components/RankingRange/styled.d.ts +2 -2
  27. package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +4 -4
  28. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +6 -6
  29. package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +3 -3
  30. package/esm/modules/ai-template/components/TemplateList/styled.d.ts +9 -9
  31. package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +4 -4
  32. package/esm/services/ai-question.d.ts +1 -0
  33. package/esm/services/ai-question.js +3 -1
  34. package/esm/store/ai-question/interview-room-store.d.ts +20 -0
  35. package/esm/store/ai-question/interview-room-store.js +21 -0
  36. package/lib/components/BigBallSvg/styled.d.ts +2 -2
  37. package/lib/components/Charts/Chart.js +1 -1
  38. package/lib/components/Charts/ReportPie.js +1 -1
  39. package/lib/components/ScoreBigBall/styled.d.ts +1 -1
  40. package/lib/components/ScrollDialogContent/index.d.ts +1 -1
  41. package/lib/components/VideoPreview/styled.d.ts +3 -3
  42. package/lib/constants/ai-question.d.ts +17 -0
  43. package/lib/constants/ai-question.js +20 -1
  44. package/lib/modules/ai-ability/styled.d.ts +2 -2
  45. package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +1 -1
  46. package/lib/modules/ai-question/Root.js +3 -9
  47. package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +1 -1
  48. package/lib/modules/ai-question/components/BaseAccordion/styled.d.ts +3 -3
  49. package/lib/modules/ai-question/components/BootVideo/index.js +42 -19
  50. package/lib/modules/ai-question/components/BootVideo/styled.d.ts +4 -4
  51. package/lib/modules/ai-question/components/QuestionModel/Interactive.d.ts +2 -5
  52. package/lib/modules/ai-question/components/QuestionModel/Interactive.js +10 -8
  53. package/lib/modules/ai-question/components/QuestionModel/index.js +5 -1
  54. package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +4 -1
  55. package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +1 -1
  56. package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
  57. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +1 -1
  58. package/lib/modules/ai-question/components/QuestionUpdate/index.js +0 -2
  59. package/lib/modules/ai-question/components/QuestionUpdate/styled.d.ts +5 -5
  60. package/lib/modules/ai-question/interface.d.ts +17 -0
  61. package/lib/modules/ai-report/components/RankingRange/styled.d.ts +2 -2
  62. package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +4 -4
  63. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +6 -6
  64. package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +3 -3
  65. package/lib/modules/ai-template/components/TemplateList/styled.d.ts +9 -9
  66. package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +4 -4
  67. package/lib/services/ai-question.d.ts +1 -0
  68. package/lib/services/ai-question.js +4 -1
  69. package/lib/store/ai-question/interview-room-store.d.ts +20 -0
  70. package/lib/store/ai-question/interview-room-store.js +24 -0
  71. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const SvgRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGSVGElement>, {}>;
3
- export declare const SvgGRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGGElement>, {}>;
2
+ export declare const SvgRoot: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGSVGElement>, {}>;
3
+ export declare const SvgGRoot: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGGElement>, {}>;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as echarts from 'echarts';
2
+ import * as echarts from '@avocadoui/echarts';
3
3
  import { useEffect, useRef } from 'react';
4
4
  var charts = {};
5
5
  var Chart = function (_a) {
@@ -52,7 +52,7 @@ var ReportPie = function (props) {
52
52
  return (__assign({ name: formateTitle(name), originalName: name, value: score }, params));
53
53
  })
54
54
  .sort(function (a, b) {
55
- return a.value - b.value;
55
+ return a.weight - b.weight;
56
56
  });
57
57
  var options = {
58
58
  tooltip: {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ScoreBigBallRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const ScrollDialogContent: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export default ScrollDialogContent;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export declare const VideoPreviewRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const PageTurningRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
8
  export declare const FaceAnalysisRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
9
9
  children?: import("react").ReactNode;
10
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -20,6 +20,23 @@ export declare const DEFAULT_GUIDE_VIDEO: {
20
20
  videoUrl: string;
21
21
  frameUrl: string;
22
22
  }[];
23
+ export declare const DEFAULT_VITUAL_HUMAN_LIST: {
24
+ name: string;
25
+ humanToken: string;
26
+ humanType: number;
27
+ virtualHumanAvatar: string;
28
+ virtualPreviewMedia: string;
29
+ }[];
30
+ export declare const InteractiveModes: {
31
+ 1: string;
32
+ 2: string;
33
+ };
34
+ export declare const AiVideoStatus: {
35
+ 0: string;
36
+ 1: string;
37
+ 2: string;
38
+ 3: string;
39
+ };
23
40
  export declare const MAX_UPLOAD_FILE_SIZE: number;
24
41
  export declare const MAX_UPLOAD_VIDEO_FILE_SIZE: number;
25
42
  export declare const TEST_TYPE_READONLY: number[];
@@ -31,6 +31,25 @@ export var DEFAULT_GUIDE_VIDEO = [
31
31
  frameUrl: DEFAULT_GUIDE_VIDEO_THUMB_URL,
32
32
  },
33
33
  ];
34
+ export var DEFAULT_VITUAL_HUMAN_LIST = [
35
+ {
36
+ name: 'xuanxuan',
37
+ humanToken: '71c932a2db9e420ab8782d68861ad0ff',
38
+ humanType: 2,
39
+ virtualHumanAvatar: 'https://alicdn.fbmms.cn/virtual-human-20230720-112709.png',
40
+ virtualPreviewMedia: 'https://demo1-landing-page.oss-cn-beijing.aliyuncs.com/d5bcc15e-f42f-4bad-bde9-2d6c300bf9ca.mp4',
41
+ },
42
+ ];
43
+ export var InteractiveModes = {
44
+ 1: '传统读题模式',
45
+ 2: 'AI面试官对话模式',
46
+ };
47
+ export var AiVideoStatus = {
48
+ 0: '播报视频生成中...',
49
+ 1: '播报视频生成中...',
50
+ 2: '播报视频已生成',
51
+ 3: '播报视频生成中...',
52
+ };
34
53
  export var MAX_UPLOAD_FILE_SIZE = 1024 * 1024 * 20;
35
54
  export var MAX_UPLOAD_VIDEO_FILE_SIZE = 1024 * 1024 * 500;
36
55
  export var TEST_TYPE_READONLY = [2, 3, 4, 7, 8, 9, 10, 11, 12];
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const AbilityRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const AbilityDrawer: import("@emotion/styled").StyledComponent<import("fbm-ui").DrawerProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const NewBadge: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
2
+ export declare const NewBadge: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -55,6 +55,7 @@ import { PostAiModelUpsert } from "../../services/ai-question";
55
55
  import { AiAnalysisStoreProvider } from "../../store/ai-question/ai-analysis-store";
56
56
  import { getBootVideoStore, useBootVideoStore } from "../../store/ai-question/boot-video-store";
57
57
  import { useAiQuestionStore } from "../../store/ai-question/global-store";
58
+ import { useInterviewRoomStore } from "../../store/ai-question/interview-room-store";
58
59
  import { getQuestionModelStore } from "../../store/ai-question/question-model-store";
59
60
  import { useQuestionModelStore } from "../../store/ai-question/question-model-store";
60
61
  import { Box, Message } from 'fbm-ui';
@@ -62,6 +63,7 @@ import { forwardRef, memo, useEffect, useImperativeHandle } from 'react';
62
63
  var AiQuestionRoot = forwardRef(function (props, ref) {
63
64
  var updateState = useAiQuestionStore().updateState;
64
65
  var updateBootVideo = useBootVideoStore().updateBootVideo;
66
+ var interviewRoomState = useInterviewRoomStore().interviewRoomState;
65
67
  var addModel = useQuestionModelStore(function (store) { return [store.addModel]; }).addModel;
66
68
  var selctedAbilitys = useAiAbilityListStore().selctedAbilitys;
67
69
  var handleValues = function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -104,15 +106,7 @@ var AiQuestionRoot = forwardRef(function (props, ref) {
104
106
  _d.label = 2;
105
107
  case 2:
106
108
  _d.trys.push([2, 4, , 5]);
107
- return [4 /*yield*/, PostAiModelUpsert({
108
- name: name,
109
- thirdToken: '',
110
- interactType: 1,
111
- introductoryVideoSetting: {},
112
- selectAbilities: selctedAbilitys,
113
- token: token,
114
- questions: questions,
115
- })];
109
+ return [4 /*yield*/, PostAiModelUpsert(__assign(__assign({ name: name, thirdToken: '' }, interviewRoomState), { introductoryVideoSetting: {}, selectAbilities: selctedAbilitys, token: token, questions: questions }))];
116
110
  case 3:
117
111
  data = (_d.sent()).data;
118
112
  return [2 /*return*/, Promise.resolve({
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ListItem: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export declare const AccordionRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const AccordionTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
8
  export declare const AccordionSubTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
9
9
  children?: import("react").ReactNode;
10
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -18,24 +18,29 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
18
  }
19
19
  return to.concat(ar || Array.prototype.slice.call(from));
20
20
  };
21
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
22
22
  import { CustomUploadButtonRoot, CustomUploadCardRoot, CustomUploadCardTitle, CustomUploadedImgRoot } from './styled';
23
23
  import ScrollDialogContent from "../../../../components/ScrollDialogContent";
24
24
  import SvgIcon from "../../../../components/SvgIcon";
25
- import { DEFAULT_GUIDE_VIDEO } from "../../../../constants/ai-question";
26
- import { PostCommonUpload } from "../../../../services/ai-question";
25
+ import { DEFAULT_GUIDE_VIDEO, DEFAULT_VITUAL_HUMAN_LIST } from "../../../../constants/ai-question";
26
+ import { GetAiInterviewerProfileList, PostCommonUpload } from "../../../../services/ai-question";
27
27
  import { useBootVideoStore } from "../../../../store/ai-question/boot-video-store";
28
+ import { useInterviewRoomStore } from "../../../../store/ai-question/interview-room-store";
28
29
  import { isExceedMaxVideoFileSize } from "../../../../utils/utils";
29
30
  import { useRequest, useSetState } from 'ahooks';
30
31
  import { AddIcon, Box, Button, Checkbox, Dialog, Message, Radio, RadioGroup, Typography, Upload } from 'fbm-ui';
31
32
  import { Stack } from 'fbm-ui/lib/mui';
32
33
  import { useCallback, useEffect, useState } from 'react';
33
34
  var BootVideo = function (props) {
35
+ var _a;
34
36
  var open = props.open, onClose = props.onClose;
35
- var _a = useBootVideoStore(), mediaUrl = _a.mediaUrl, thumbUrl = _a.thumbUrl, updateBootVideo = _a.updateBootVideo;
36
- var _b = useState(DEFAULT_GUIDE_VIDEO), mediaList = _b[0], setMediaList = _b[1];
37
- var _c = useSetState({ mediaUrl: mediaUrl, thumbUrl: thumbUrl, appliedAllPosition: false }), mediaState = _c[0], setMediaState = _c[1];
38
- var _d = useRequest(PostCommonUpload, {
37
+ var _b = useInterviewRoomStore(), interactType = _b.interactType, aiInterviewerProfile = _b.aiInterviewerProfile, updateInterviewRoom = _b.updateInterviewRoom;
38
+ var _c = useState({ interactType: interactType, aiInterviewerProfile: aiInterviewerProfile }), interviewRoomState = _c[0], setInterviewRoomState = _c[1];
39
+ var _d = useState(DEFAULT_VITUAL_HUMAN_LIST), virtualManList = _d[0], setVirtualManList = _d[1];
40
+ var _e = useBootVideoStore(), mediaUrl = _e.mediaUrl, thumbUrl = _e.thumbUrl, updateBootVideo = _e.updateBootVideo;
41
+ var _f = useState(DEFAULT_GUIDE_VIDEO), mediaList = _f[0], setMediaList = _f[1];
42
+ var _g = useSetState({ mediaUrl: mediaUrl, thumbUrl: thumbUrl, appliedAllPosition: false }), mediaState = _g[0], setMediaState = _g[1];
43
+ var _h = useRequest(PostCommonUpload, {
39
44
  manual: true,
40
45
  onSuccess: function (_a) {
41
46
  var data = _a.data;
@@ -50,13 +55,37 @@ var BootVideo = function (props) {
50
55
  ]);
51
56
  setMediaState({ mediaUrl: item.url, thumbUrl: item.mineExtra.firstFrameUrl });
52
57
  },
53
- }), loading = _d.loading, postCommonUpload = _d.run;
58
+ }), loading = _h.loading, postCommonUpload = _h.run;
59
+ var getAiInterviewerProfileList = useRequest(GetAiInterviewerProfileList, {
60
+ manual: true,
61
+ onSuccess: function (_a) {
62
+ var list = _a.data.list;
63
+ setVirtualManList(list);
64
+ },
65
+ }).run;
54
66
  var handleSelectVideo = useCallback(function (mediaUrl, thumbUrl) {
55
67
  setMediaState({ mediaUrl: mediaUrl, thumbUrl: thumbUrl });
56
68
  }, [setMediaState]);
69
+ var handleInteractTypeChange = useCallback(function (e) {
70
+ var _a;
71
+ var value = Number(e.target.value);
72
+ if (value === 1) {
73
+ setInterviewRoomState({ interactType: value });
74
+ }
75
+ else {
76
+ setInterviewRoomState({
77
+ interactType: value,
78
+ aiInterviewerProfile: ((_a = interviewRoomState.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanType) ? interviewRoomState.aiInterviewerProfile : virtualManList[0],
79
+ });
80
+ }
81
+ }, [setInterviewRoomState, interviewRoomState, virtualManList]);
82
+ var handleSelectHumanType = useCallback(function (value) {
83
+ setInterviewRoomState({ interactType: interviewRoomState.interactType, aiInterviewerProfile: value });
84
+ }, [setInterviewRoomState, interviewRoomState]);
57
85
  var handleOk = function () {
58
86
  console.log(mediaState);
59
87
  updateBootVideo(mediaState);
88
+ updateInterviewRoom(interviewRoomState);
60
89
  onClose();
61
90
  };
62
91
  var uploadProps = {
@@ -76,19 +105,10 @@ var BootVideo = function (props) {
76
105
  postCommonUpload(formData);
77
106
  }
78
107
  },
79
- // onChange: ({ file }: any) => {
80
- // console.log('onChange', file);
81
- // if (isExceedMaxVideoFileSize(file.size)) {
82
- // Message.error('视频大小超过500M,请重新上传!');
83
- // } else {
84
- // const formData = new FormData();
85
- // formData.append('files', file.originFileObj);
86
- // postCommonUpload(formData);
87
- // }
88
- // },
89
108
  };
90
109
  useEffect(function () {
91
110
  if (open) {
111
+ getAiInterviewerProfileList();
92
112
  setMediaState({ mediaUrl: mediaUrl, thumbUrl: thumbUrl });
93
113
  if (mediaUrl && thumbUrl && mediaUrl !== mediaList[0].videoUrl) {
94
114
  setMediaList(__spreadArray(__spreadArray([], mediaList, true), [
@@ -105,9 +125,12 @@ var BootVideo = function (props) {
105
125
  }
106
126
  // eslint-disable-next-line react-hooks/exhaustive-deps
107
127
  }, [open]);
108
- return (_jsx(Dialog, __assign({ open: open, title: "\u5B9A\u5236\u9762\u8BD5\u95F4", okText: "\u4FDD\u5B58", onClose: onClose, onOk: handleOk, width: 768 }, { children: _jsx(ScrollDialogContent, { children: _jsxs(Box, __assign({ sx: { display: 'flex', justifyContent: 'space-between' } }, { children: [_jsxs(Stack, { children: [_jsx(Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F" })), _jsx(RadioGroup, __assign({ defaultValue: "outlined", value: 1 }, { children: _jsx(Radio, { value: "1", label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }) })), _jsx(Typography, __assign({ variant: "body1", fontWeight: 500, mt: 3, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), _jsx(CustomUploadedImgRoot, { children: mediaList.map(function (_a) {
109
- var videoUrl = _a.videoUrl, frameUrl = _a.frameUrl;
110
- return (_jsx("img", { src: frameUrl, style: { borderColor: (mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl) === videoUrl ? '#4CAF50' : 'transparent' }, height: 100, alt: "", onClick: function () { return handleSelectVideo(videoUrl, frameUrl); } }, videoUrl));
111
- }) }), _jsx(Typography, __assign({ variant: "caption", flexWrap: "wrap", width: 344, color: "text.disabled", mb: 1 }, { children: "\u5EFA\u8BAE\u4E0A\u4F20mp4\u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8981\u8D85\u8FC7500M\uFF0C\u6700\u591A\u652F\u6301\u4E0A\u4F205\u4E2A\uFF0C\u652F\u6301\u89C6\u9891\u683C\u5F0F\uFF1Amp4\u3001mov\u3001m4v\u30013gp\u3001avi\u3001webm" })), _jsxs(Stack, __assign({ direction: "row", alignItems: "center" }, { children: [_jsx(CustomUploadButtonRoot, { children: _jsx(Upload, __assign({}, uploadProps, { children: _jsx(Button, __assign({ variant: "outlined", color: "inherit", icon: _jsx(AddIcon, {}) }, { children: "\u4E0A\u4F20\u89C6\u9891" })) })) }), _jsx(Box, __assign({ ml: 2 }, { children: _jsx(Checkbox, { checked: mediaState.appliedAllPosition, label: _jsx(Typography, __assign({ variant: "body2" }, { children: "\u5E94\u7528\u5230\u6240\u6709AI\u89C6\u9891" })), onChange: function (e, checked) { return setMediaState({ appliedAllPosition: checked }); } }) }))] }))] }), _jsx(Box, __assign({ sx: { maxHeight: 'calc(100vh - 150px)', overflow: 'auto', flexGrow: 1 } }, { children: (mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl) || loading ? (_jsx(Box, __assign({ loading: loading, sx: { width: 160, height: 286, margin: 'auto', cursor: 'pointer' } }, { children: _jsx("video", { width: 160, height: 286, src: mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl, controls: true }) }))) : (_jsx(Upload, __assign({}, uploadProps, { children: _jsxs(CustomUploadCardRoot, { children: [_jsxs(CustomUploadCardTitle, { children: [_jsx(SvgIcon, { name: "video" }), _jsx(Typography, __assign({ variant: "subtitle1", color: "secondary" }, { children: "\u4E0A\u4F20\u89C6\u9891" }))] }), _jsx(Typography, __assign({ variant: "caption", color: "disabled", sx: { mt: 1 } }, { children: "\u62D6\u62FD\u89C6\u9891\u5230\u6B64\u5904\u4E5F\u53EF\u4E0A\u4F20" }))] }) }))) }))] })) }) })));
128
+ return (_jsx(Dialog, __assign({ open: open, title: "\u5B9A\u5236\u9762\u8BD5\u95F4", okText: "\u786E\u8BA4", onClose: onClose, onOk: handleOk, width: 768 }, { children: _jsx(ScrollDialogContent, { children: _jsxs(Box, __assign({ sx: { display: 'flex', justifyContent: 'space-between' } }, { children: [_jsxs(Stack, { children: [_jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F" })), _jsxs(RadioGroup, __assign({ defaultValue: "outlined", onChange: handleInteractTypeChange, value: interviewRoomState.interactType }, { children: [_jsx(Radio, { value: 1, label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }), _jsx(Radio, { value: 2, label: "AI\u9762\u8BD5\u5B98\u5BF9\u8BDD\u6A21\u5F0F" })] })), interviewRoomState.interactType === 2 && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u9762\u8BD5\u5B98\u5F62\u8C61" })), _jsx(CustomUploadedImgRoot, { children: virtualManList.map(function (human) {
129
+ var _a;
130
+ return (_jsxs(Box, { children: [_jsx("img", { src: human.virtualHumanAvatar, style: { borderColor: ((_a = interviewRoomState.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) === human.humanToken ? '#4CAF50' : 'transparent' }, height: 100, alt: "", onClick: function () { return handleSelectHumanType(human); } }), _jsx(Typography, __assign({ variant: "body2", textAlign: "center" }, { children: human.name }))] }, human.humanToken));
131
+ }) }), _jsx(Typography, __assign({ variant: "caption", flexWrap: "wrap", width: 462, color: "disabled", mb: 1 }, { children: "\u8BF4\u660E\uFF1A\u6B65\u9AA4\u4E0B\u7684\u6240\u6709\u9898\u76EE\u7684\u865A\u62DF\u4EBA\u64AD\u653E\u89C6\u9891\u5747\u751F\u6210\u540E\uFF0C\u624D\u80FD\u751F\u6548\u865A\u62DF\u4EBA\u6548\u679C\u3002\u5426\u5219\uFF0C\u5C06\u4EE5\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F\u8FDB\u884C\u4EA4\u4E92\u3002" }))] })), interviewRoomState.interactType === 1 && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), _jsx(CustomUploadedImgRoot, { children: mediaList.map(function (_a) {
132
+ var videoUrl = _a.videoUrl, frameUrl = _a.frameUrl;
133
+ return (_jsx("img", { src: frameUrl, style: { borderColor: (mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl) === videoUrl ? '#4CAF50' : 'transparent' }, height: 100, alt: "", onClick: function () { return handleSelectVideo(videoUrl, frameUrl); } }, videoUrl));
134
+ }) }), _jsx(Typography, __assign({ variant: "caption", flexWrap: "wrap", width: 462, color: "text.disabled", mb: 1 }, { children: "\u5EFA\u8BAE\u4E0A\u4F20mp4\u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8981\u8D85\u8FC7500M\uFF0C\u6700\u591A\u652F\u6301\u4E0A\u4F205\u4E2A\uFF0C\u652F\u6301\u89C6\u9891\u683C\u5F0F\uFF1Amp4\u3001mov\u3001m4v\u30013gp\u3001avi\u3001webm" })), _jsxs(Stack, __assign({ direction: "row", alignItems: "center" }, { children: [_jsx(CustomUploadButtonRoot, { children: _jsx(Upload, __assign({}, uploadProps, { children: _jsx(Button, __assign({ variant: "outlined", color: "inherit", icon: _jsx(AddIcon, {}) }, { children: "\u4E0A\u4F20\u89C6\u9891" })) })) }), _jsx(Box, __assign({ ml: 2 }, { children: _jsx(Checkbox, { checked: mediaState.appliedAllPosition, label: _jsx(Typography, __assign({ variant: "body2" }, { children: "\u5E94\u7528\u5230\u6240\u6709AI\u89C6\u9891" })), onChange: function (e, checked) { return setMediaState({ appliedAllPosition: checked }); } }) }))] }))] }))] }), interviewRoomState.interactType === 1 && (_jsx(Box, __assign({ sx: { maxHeight: 'calc(100vh - 150px)', overflow: 'auto', flexGrow: 1 } }, { children: (mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl) || loading ? (_jsx(Box, __assign({ loading: loading, sx: { width: 160, height: 286, margin: 'auto', cursor: 'pointer' } }, { children: _jsx("video", { width: 160, height: 286, src: mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl, controls: true }) }))) : (_jsx(Upload, __assign({}, uploadProps, { children: _jsxs(CustomUploadCardRoot, { children: [_jsxs(CustomUploadCardTitle, { children: [_jsx(SvgIcon, { name: "video" }), _jsx(Typography, __assign({ variant: "subtitle1", color: "secondary" }, { children: "\u4E0A\u4F20\u89C6\u9891" }))] }), _jsx(Typography, __assign({ variant: "caption", color: "disabled", sx: { mt: 1 } }, { children: "\u62D6\u62FD\u89C6\u9891\u5230\u6B64\u5904\u4E5F\u53EF\u4E0A\u4F20" }))] }) }))) }))), interviewRoomState.interactType === 2 && (_jsx(Box, __assign({ sx: { maxHeight: 'calc(100vh - 150px)', overflow: 'auto', flexGrow: 1 } }, { children: _jsx(Box, __assign({ sx: { width: 160, height: 286, margin: 'auto', cursor: 'pointer' } }, { children: _jsx("video", { width: 160, height: 286, src: (_a = interviewRoomState.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.virtualPreviewMedia, controls: true }) })) })))] })) }) })));
112
135
  };
113
136
  export default BootVideo;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const CustomUploadCardRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const CustomUploadCardTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
8
  export declare const CustomUploadButtonRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
9
9
  children?: import("react").ReactNode;
10
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
11
11
  export declare const CustomUploadedImgRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
12
12
  children?: import("react").ReactNode;
13
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
13
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,6 +1,3 @@
1
- /// <reference types="react" />
2
- interface InteractiveProps {
3
- mode: 'Traditional' | 'Chat';
4
- }
5
- declare const Interactive: React.FC<InteractiveProps>;
1
+ import { FC } from 'react';
2
+ declare const Interactive: FC;
6
3
  export default Interactive;
@@ -9,18 +9,20 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import BootVideo from '../BootVideo';
14
- import { Button, Typography, VideocamOutlineIcon } from 'fbm-ui';
14
+ import { AiVideoStatus, InteractiveModes } from "../../../../constants/ai-question";
15
+ import { useInterviewRoomStore } from "../../../../store/ai-question/interview-room-store";
16
+ import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
17
+ import { Button, CheckCircleOutlineIcon, Typography, VideocamOutlineIcon } from 'fbm-ui';
15
18
  import { Paper, Stack } from 'fbm-ui/lib/mui';
16
19
  import { useState } from 'react';
17
- var InteractiveModes = {
18
- Traditional: '传统读题模式',
19
- Chat: 'AI面试官对话模式',
20
- };
21
- var Interactive = function (_a) {
22
- var mode = _a.mode;
23
- var _b = useState(false), bootVideoOpen = _b[0], setBootVideoOpen = _b[1];
24
- return (_jsxs(_Fragment, { children: [_jsx(BootVideo, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), _jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", component: Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [_jsx(Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(InteractiveModes[mode]) })), _jsx(Button, __assign({ icon: _jsx(VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
20
+ var Interactive = function () {
21
+ var _a, _b;
22
+ var questionModelData = useQuestionModelStore().questionModelData;
23
+ var _c = useInterviewRoomStore(), interactType = _c.interactType, aiInterviewerProfile = _c.aiInterviewerProfile;
24
+ var _d = useState(false), bootVideoOpen = _d[0], setBootVideoOpen = _d[1];
25
+ return (_jsxs(_Fragment, { children: [bootVideoOpen && _jsx(BootVideo, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), _jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", component: Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [_jsxs(Typography, __assign({ display: "flex", alignItems: "center", variant: "body1", fontWeight: 500 }, { children: ["\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(InteractiveModes[interactType]), interactType === 2 && (_jsxs(_Fragment, { children: ["-".concat(aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.name), ((_a = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) &&
26
+ (aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanToken) === ((_b = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _b === void 0 ? void 0 : _b.humanToken) && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ variant: "caption", color: "secondary", ml: 2 }, { children: AiVideoStatus[(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) || 1] })), (questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) === 2 ? (_jsx(CheckCircleOutlineIcon, { sx: { fontSize: '16px', ml: 1, color: 'RGBA(0, 0, 0, 0.56)' } })) : ('')] }))] }))] })), _jsx(Button, __assign({ icon: _jsx(VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
25
27
  };
26
28
  export default Interactive;
@@ -19,6 +19,7 @@ import { QuestionModelRoot } from './styled';
19
19
  import { useAiAbilityListStore } from "../../../../store/ai-ability-select/question-ability-store";
20
20
  import { PostAiModelDetails } from "../../../../services/ai-question";
21
21
  import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
22
+ import { useInterviewRoomStore } from "../../../../store/ai-question/interview-room-store";
22
23
  import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
23
24
  import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
24
25
  import { useRequest } from 'ahooks';
@@ -27,6 +28,7 @@ var Question = function () {
27
28
  var isDefaultAdded = useRef(false);
28
29
  var _a = useAiQuestionStore(function (store) { return [store.token, store.name, store.templateList]; }), token = _a.token, name = _a.name, templateList = _a.templateList, onLoad = _a.onLoad;
29
30
  var aiEvaluationData = useQuestionTemplateStore(function (store) { return [store.aiEvaluationData]; }).aiEvaluationData;
31
+ var updateInterviewRoom = useInterviewRoomStore().updateInterviewRoom;
30
32
  var _b = useQuestionModelStore(function (store) { return [store.questionModelData]; }), questionModelData = _b.questionModelData, updateModel = _b.updateModel, addModel = _b.addModel;
31
33
  var setSelctedAbilitys = useAiAbilityListStore().setSelctedAbilitys;
32
34
  var _c = useRequest(function () { return PostAiModelDetails(token); }, {
@@ -34,6 +36,8 @@ var Question = function () {
34
36
  onSuccess: function (_a) {
35
37
  var data = _a.data;
36
38
  updateModel(data);
39
+ var _b = data.interactType, interactType = _b === void 0 ? 1 : _b, aiInterviewerProfile = data.aiInterviewerProfile, aiVideoStatus = data.aiVideoStatus;
40
+ updateInterviewRoom({ interactType: interactType, aiInterviewerProfile: aiInterviewerProfile, aiVideoStatus: interactType === 1 ? 0 : aiVideoStatus });
37
41
  setSelctedAbilitys((data === null || data === void 0 ? void 0 : data.selectAbilities) || []);
38
42
  onLoad === null || onLoad === void 0 ? void 0 : onLoad(data.steps);
39
43
  },
@@ -70,6 +74,6 @@ var Question = function () {
70
74
  }
71
75
  }
72
76
  }, [token, aiEvaluationData, questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.steps, templateList, addModel]);
73
- return (_jsx(QuestionModelRoot, { children: loading ? (_jsx(Skeleton, {})) : (_jsxs(_Fragment, { children: [_jsx(QuestionModelHeader, {}), _jsx(Interactive, { mode: "Traditional" }), _jsx(QuestionModelList, {})] })) }));
77
+ return (_jsx(QuestionModelRoot, { children: loading ? (_jsx(Skeleton, {})) : (_jsxs(_Fragment, { children: [_jsx(QuestionModelHeader, {}), _jsx(Interactive, {}), _jsx(QuestionModelList, {})] })) }));
74
78
  };
75
79
  export default Question;
@@ -1,4 +1,5 @@
1
1
  import { QuestionParams } from '../QuestionUpdate/interface';
2
+ import { AiInterviewerProfile } from '@/modules/ai-question/interface';
2
3
  export interface QuestionModelStep extends QuestionParams {
3
4
  uniqueId?: string;
4
5
  isNotCompute?: boolean;
@@ -8,7 +9,9 @@ export interface QuestionModelData {
8
9
  token?: string;
9
10
  duration?: number;
10
11
  selectAbilities?: string[];
11
- interactType?: string;
12
+ interactType?: number;
13
+ aiVideoStatus?: number;
14
+ aiInterviewerProfile?: AiInterviewerProfile;
12
15
  steps: QuestionModelStep[];
13
16
  }
14
17
  export interface QuestionModelDataRes {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const QuestionModelRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -4,8 +4,8 @@ export declare const PreviewRoot: import("@emotion/styled").StyledComponent<{
4
4
  classes?: Partial<import("fbm-ui/lib/mui").PaperClasses> | undefined;
5
5
  elevation?: number | undefined;
6
6
  square?: boolean | undefined;
7
- sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
7
+ sx?: import("@mui/system/styleFunctionSx").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
8
8
  variant?: "elevation" | "outlined" | undefined;
9
9
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
10
10
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
11
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "elevation" | "square" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
11
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "elevation" | "square" | "variant"> & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
@@ -29,7 +29,7 @@ var RandomQuestion = function (_a) {
29
29
  var handleClose = _a.handleClose;
30
30
  handleClose();
31
31
  if (!(category === null || category === void 0 ? void 0 : category.token)) {
32
- Message.error('题目未选择考察能力,不可快速选题');
32
+ Message.error('题目未选择考察能力或选择的能力不可参与AI分析时,不可快速选题');
33
33
  }
34
34
  else {
35
35
  setOpen(true);
@@ -216,7 +216,6 @@ var QuestionUpdate = function () {
216
216
  });
217
217
  }); }, [getModelParams, token, editModel, index, addModel, updateQuestionState]);
218
218
  var handleWorkplaceData = useCallback(function (curSelectWorkPlace) {
219
- // console.log('curSelectWorkPlace', curSelectWorkPlace);
220
219
  var curAiAbilities = aiAbilities.slice();
221
220
  // 是否是初始化
222
221
  var inInit = true;
@@ -226,7 +225,6 @@ var QuestionUpdate = function () {
226
225
  var CurWorkPlaceAiAbility = __assign(__assign(__assign({}, curSelectWorkPlace), CurWorkplace), { abilityType: 2, weight: 0, sort: 0 });
227
226
  inInit = workplaceTypeIndex === -1;
228
227
  CurWorkPlaceAiAbility.desc = CurWorkPlaceAiAbility.define ? CurWorkPlaceAiAbility.define : CurWorkPlaceAiAbility.name;
229
- // console.log('CurWorkPlaceAiAbility', CurWorkPlaceAiAbility);
230
228
  // 添加和修改
231
229
  if (workplaceTypeIndex > -1) {
232
230
  curAiAbilities.splice(workplaceTypeIndex, 1, CurWorkPlaceAiAbility);
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- export declare const VideoPreview: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, {}>;
3
- export declare const VideoPreviewWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
- export declare const VideoPreviewMask: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
- export declare const VideoPreviewMaskContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const VideoPreviewMaskIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
+ export declare const VideoPreview: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, {}>;
3
+ export declare const VideoPreviewWrapper: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
+ export declare const VideoPreviewMask: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const VideoPreviewMaskContent: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const VideoPreviewMaskIcon: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -78,3 +78,20 @@ export interface AiQuestionRef {
78
78
  handleValues: () => Promise<AiQuestionValues>;
79
79
  handleSubmit: () => Promise<AiQuestionSubmitRes>;
80
80
  }
81
+ export interface AiInterviewerProfile {
82
+ name: string;
83
+ humanToken: string;
84
+ humanType: number;
85
+ virtualPreviewMedia?: string;
86
+ virtualHumanAvatar?: string;
87
+ }
88
+ export interface InterviewRoomProps {
89
+ interactType: number;
90
+ aiVideoStatus?: number;
91
+ aiInterviewerProfile?: AiInterviewerProfile;
92
+ }
93
+ export interface AiInterviewerProfileList {
94
+ data: {
95
+ list: AiInterviewerProfile[];
96
+ };
97
+ }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const RangeInput: import("@emotion/styled").StyledComponent<import("fbm-ui").BaseInputProps & import("@mui/material").OutlinedInputProps & import("@mui/material").InputProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const RangeTypography: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ScoreTypography: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const ScoreUnitTypography: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
8
  export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<{
9
9
  children?: import("react").ReactNode;
10
10
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
@@ -12,11 +12,11 @@ export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<
12
12
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
13
13
  htmlColor?: string | undefined;
14
14
  shapeRendering?: string | undefined;
15
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
15
+ sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
16
16
  titleAccess?: string | undefined;
17
17
  viewBox?: string | undefined;
18
18
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "name" | "type" | "filter" | "fill" | "values" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "children" | "spacing" | "path" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
19
19
  ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
20
20
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
21
21
  children?: import("react").ReactNode;
22
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
22
+ } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;