eli-video-interview 1.2.41-alpha.27 → 1.2.41-alpha.29

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.
@@ -93,12 +93,12 @@ var AiQuestionRoot = forwardRef(function (props, ref) {
93
93
  handleValues: handleValues,
94
94
  handleTemplate: function (steps) { return addModel(steps); },
95
95
  handleSubmit: function () { return __awaiter(void 0, void 0, void 0, function () {
96
- var _a, _b, name, token, questions, _c, mediaUrl, thumbUrl, appliedAllPosition, data, error_1;
96
+ var _a, _b, name, token, questions, aiModel, _c, mediaUrl, thumbUrl, appliedAllPosition, data, error_1;
97
97
  return __generator(this, function (_d) {
98
98
  switch (_d.label) {
99
99
  case 0: return [4 /*yield*/, handleValues()];
100
100
  case 1:
101
- _a = _d.sent(), _b = _a.data, name = _b.name, token = _b.token, questions = _b.steps, _c = _a.media, mediaUrl = _c.mediaUrl, thumbUrl = _c.thumbUrl, appliedAllPosition = _c.appliedAllPosition;
101
+ _a = _d.sent(), _b = _a.data, name = _b.name, token = _b.token, questions = _b.steps, aiModel = _b.aiModel, _c = _a.media, mediaUrl = _c.mediaUrl, thumbUrl = _c.thumbUrl, appliedAllPosition = _c.appliedAllPosition;
102
102
  if (!(questions === null || questions === void 0 ? void 0 : questions.length)) {
103
103
  Message.error('还未添加题目,请添加题目');
104
104
  return [2 /*return*/, Promise.reject()];
@@ -106,7 +106,7 @@ var AiQuestionRoot = forwardRef(function (props, ref) {
106
106
  _d.label = 2;
107
107
  case 2:
108
108
  _d.trys.push([2, 4, , 5]);
109
- return [4 /*yield*/, PostAiModelUpsert(__assign(__assign({ name: name, thirdToken: '' }, interviewRoomState), { introductoryVideoSetting: {}, selectAbilities: selctedAbilitys, token: token, questions: questions }))];
109
+ return [4 /*yield*/, PostAiModelUpsert(__assign(__assign({ name: name, thirdToken: '', aiModel: (props === null || props === void 0 ? void 0 : props.aiModel) || aiModel }, interviewRoomState), { introductoryVideoSetting: {}, selectAbilities: selctedAbilitys, token: token, questions: questions }))];
110
110
  case 3:
111
111
  data = (_d.sent()).data;
112
112
  return [2 /*return*/, Promise.resolve({
@@ -52,7 +52,7 @@ var Question = function () {
52
52
  postAiModelDetails();
53
53
  }
54
54
  else {
55
- updateModel({ name: name || '暂无名称', token: '', duration: 0, steps: [], interactionMethods: [] });
55
+ updateModel({ name: name || '暂无名称', token: '', aiModel: '', duration: 0, steps: [], interactionMethods: [] });
56
56
  }
57
57
  }, [name, token, postAiModelDetails, updateModel]);
58
58
  useEffect(function () {
@@ -7,6 +7,7 @@ export interface QuestionModelStep extends QuestionParams {
7
7
  export interface QuestionModelData {
8
8
  name?: string | undefined;
9
9
  token?: string;
10
+ aiModel?: string;
10
11
  duration?: number;
11
12
  selectAbilities?: string[];
12
13
  interactType?: number;
@@ -48,6 +48,7 @@ export interface Media {
48
48
  export interface AiQuestionProps {
49
49
  token: string;
50
50
  name?: string;
51
+ aiModel?: string;
51
52
  extraAbilityTokens?: string[];
52
53
  templateList?: QuestionModelStep[];
53
54
  mediaList?: Array<{
@@ -7,6 +7,7 @@ export declare const useAiQuestion: (props: AiQuestionProps) => {
7
7
  handleTemplate: ((steps: import("./components/QuestionModel/interface").QuestionModelStep[]) => void) | undefined;
8
8
  token: string;
9
9
  name?: string | undefined;
10
+ aiModel?: string | undefined;
10
11
  extraAbilityTokens?: string[] | undefined;
11
12
  templateList?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined;
12
13
  mediaList?: {
@@ -10,31 +10,24 @@ 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 { BackgroundImage, Colors, SwitchTitle } from "../../../../enum/ai-report";
13
+ import { BackgroundImage, // , Colors, SwitchTitle
14
+ } from "../../../../enum/ai-report";
14
15
  import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
15
- import { SwitchIcon } from 'fbm-icons';
16
+ // import { SwitchIcon } from 'fbm-icons';
16
17
  import { Box, Button, CancelIcon, RefreshIcon, Typography } from 'fbm-ui';
17
- import { Stack } from 'fbm-ui/lib/mui';
18
18
  var FAILED = INTERVIEW_STATUS.FAILED;
19
19
  var Failed = function (_a) {
20
20
  var loading = _a.loading, status = _a.status, onRefresh = _a.onRefresh, _b = _a.model, model = _b === void 0 ? 'standard' : _b, onSwitchReportModel = _a.onSwitchReportModel;
21
21
  return (_jsxs(Box, __assign({ loading: loading, display: "flex", alignItems: "center", padding: "32px 24px", sx: {
22
22
  px: 3,
23
23
  height: 280,
24
- background: "".concat(Colors[model], " url('").concat(BackgroundImage[model], "') no-repeat center center / contain"),
24
+ background: "url('".concat(BackgroundImage[model], "') no-repeat center center / cover"),
25
25
  overflow: 'hidden',
26
26
  borderRadius: '0 0 62px 62px',
27
27
  } }, { children: [status === FAILED && (_jsx(CancelIcon, { style: {
28
28
  color: '#ff6c6c',
29
29
  width: '24px',
30
30
  height: '24px',
31
- } })), _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: status === FAILED ? '报告计算失败,请手动' : '报告正在计算中,请稍后查看或手动' })), _jsx(Button, __assign({ variant: "text", endIcon: _jsx(RefreshIcon, {}), size: "small", style: { color: '#576B95', padding: '0px 4px' }, onClick: onRefresh }, { children: "\u5237\u65B0\u62A5\u544A" })), model === 'pro' && (_jsx(Stack, __assign({ direction: "row", py: 2, justifyContent: "flex-end", spacing: 1, alignContent: "center", color: Colors[model] }, { children: _jsx(Button, __assign({ variant: "outlined", size: "small", loading: loading, icon: _jsx(SwitchIcon, {}), sx: {
32
- ml: 1,
33
- color: 'inherit',
34
- borderColor: 'inherit',
35
- '&:hover': {
36
- borderColor: 'inherit',
37
- },
38
- }, onClick: onSwitchReportModel }, { children: SwitchTitle[model] })) })))] })));
31
+ } })), _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: status === FAILED ? '报告计算失败,请手动' : '报告正在计算中,请稍后查看或手动' })), _jsx(Button, __assign({ variant: "text", endIcon: _jsx(RefreshIcon, {}), size: "small", style: { color: '#576B95', padding: '0px 4px' }, onClick: onRefresh }, { children: "\u5237\u65B0\u62A5\u544A" }))] })));
39
32
  };
40
33
  export default Failed;
@@ -30,13 +30,15 @@ import RankingRange from '../RankingRange';
30
30
  import Bar from './Bar';
31
31
  import RecommendIcon from './RecommendIcon';
32
32
  import { RefreshIconRoot, ScoreTypography, ScoreUnitTypography } from './styled';
33
- import Tips from './Tips';
34
- import { BackgroundImage, Colors, SwitchTitle } from "../../../../enum/ai-report";
33
+ // import Tips from './Tips';
34
+ import { BackgroundImage, Colors, // SwitchTitle
35
+ } from "../../../../enum/ai-report";
35
36
  import { useAiReportStore } from "../../../../store/ai-report/global-store";
36
37
  import { formatScore } from "../../../../utils/utils";
37
38
  import dayjs from 'dayjs';
38
- import { SwitchIcon } from 'fbm-icons';
39
- import { Box, Button, DownloadIcon, InfoOutlineIcon, Popover, Typography } from 'fbm-ui';
39
+ // import { SwitchIcon } from 'fbm-icons';
40
+ import { Box, Button, DownloadIcon, // InfoOutlineIcon,
41
+ Popover, Typography, } from 'fbm-ui';
40
42
  import { Stack } from 'fbm-ui/lib/mui';
41
43
  import { useEffect, useState } from 'react';
42
44
  var Score = function (_a) {
@@ -60,7 +62,7 @@ var Score = function (_a) {
60
62
  return (_jsxs(Stack, __assign({ display: "flex", sx: {
61
63
  px: 3,
62
64
  height: 280,
63
- background: "".concat(Colors[model], " url('").concat(BackgroundImage[model], "') no-repeat center center / contain"),
65
+ background: "url('".concat(BackgroundImage[model], "') no-repeat center center / cover"),
64
66
  overflow: 'hidden',
65
67
  borderRadius: '0 0 62px 62px',
66
68
  } }, { children: [model === 'pro' && (_jsx(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "center", width: 92, height: 30, sx: {
@@ -69,20 +71,13 @@ var Score = function (_a) {
69
71
  left: 0,
70
72
  backgroundColor: Colors[model],
71
73
  borderBottomRightRadius: 16,
72
- } }, { children: _jsx(Typography, __assign({ variant: "body2", fontWeight: "medium", color: "white" }, { children: "\u9AD8\u7CBE\u51C6\u5EA6" })) }))), _jsx(RankingRange, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), _jsx(Stack, __assign({ direction: "row", py: 2, justifyContent: "flex-end", spacing: 1, alignContent: "center", color: Colors[model] }, { children: (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && (_jsxs(_Fragment, { children: [_jsx(Button, __assign({ variant: "outlined", size: "small", icon: _jsx(DownloadIcon, {}), sx: {
73
- ml: 1,
74
- color: 'inherit',
74
+ } }, { children: _jsx(Typography, __assign({ variant: "body2", fontWeight: "medium", color: "white" }, { children: "\u9AD8\u7CBE\u51C6\u5EA6" })) }))), _jsx(RankingRange, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), _jsx(Stack, __assign({ direction: "row", py: 2, justifyContent: "flex-end", spacing: 1, alignContent: "center", color: Colors[model] }, { children: (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && (_jsx(_Fragment, { children: _jsx(Button, __assign({ variant: "outlined", size: "small", icon: _jsx(DownloadIcon, {}), sx: {
75
+ ml: 1,
76
+ color: 'inherit',
77
+ borderColor: 'inherit',
78
+ '&:hover': {
75
79
  borderColor: 'inherit',
76
- '&:hover': {
77
- borderColor: 'inherit',
78
- },
79
- }, onClick: onExportReportClick }, { children: "\u5BFC\u51FA\u62A5\u544A" })), _jsx(Button, __assign({ variant: "outlined", size: "small", loading: loading, icon: _jsx(SwitchIcon, {}), sx: {
80
- ml: 1,
81
- color: 'inherit',
82
- borderColor: 'inherit',
83
- '&:hover': {
84
- borderColor: 'inherit',
85
- },
86
- }, onClick: onSwitchReportModel }, { children: SwitchTitle[model] })), _jsx(Popover, __assign({ arrow: false, content: Tips, trigger: "hover" }, { children: _jsx(InfoOutlineIcon, { htmlColor: "inherit", sx: { cursor: 'pointer' } }) }))] })) })), _jsxs(Box, __assign({ display: "flex", alignItems: "center", height: 80, color: Colors[model] }, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center" }, { children: [_jsx(ScoreTypography, __assign({ color: "inherit" }, { children: formatScore(feScore || 0) })), _jsx(ScoreUnitTypography, __assign({ color: "inherit", sx: { alignSelf: 'flex-end' } }, { children: "\u5206" }))] })), _jsx(Box, __assign({ width: 200, ml: 5, color: Colors[model] }, { children: _jsx(Bar, { model: model }) }))] })), _jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", color: Colors[model] }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", mt: 1, sx: { alignSelf: 'flex-start' } }, { children: [(operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && (_jsx(Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: _jsx(RefreshIconRoot, { htmlColor: "inherit", onClick: function () { return setOpenRefresh(true); } }) }))), _jsxs(Typography, __assign({ variant: "caption", color: "inherit", ml: 0.5 }, { children: ["\u62A5\u544A\u751F\u6210\u4E8E ", dayjs(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('scoreRank')) && (_jsx(Typography, __assign({ color: "inherit", sx: { textDecoration: 'underline', cursor: 'pointer', ml: 1.5 }, onClick: function () { return setOpenRankingRange(true); } }, { children: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E" })))] })), _jsx(Box, __assign({ width: 120, height: 120, sx: { marginTop: -3 } }, { children: !!feScore && feScore >= 80 && _jsx(RecommendIcon, { size: 120, sx: { width: 120, height: 120 }, htmlColor: Colors[model] }) }))] }))] })));
80
+ },
81
+ }, onClick: onExportReportClick }, { children: "\u5BFC\u51FA\u62A5\u544A" })) })) })), _jsxs(Box, __assign({ display: "flex", alignItems: "center", height: 80, color: Colors[model] }, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center" }, { children: [_jsx(ScoreTypography, __assign({ color: "inherit" }, { children: formatScore(feScore || 0) })), _jsx(ScoreUnitTypography, __assign({ color: "inherit", sx: { alignSelf: 'flex-end' } }, { children: "\u5206" }))] })), _jsx(Box, __assign({ width: 200, ml: 5, color: Colors[model] }, { children: _jsx(Bar, { model: model }) }))] })), _jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", color: Colors[model] }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", mt: 1, sx: { alignSelf: 'flex-start' } }, { children: [(operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && (_jsx(Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: _jsx(RefreshIconRoot, { htmlColor: "inherit", onClick: function () { return setOpenRefresh(true); } }) }))), _jsxs(Typography, __assign({ variant: "caption", color: "inherit", ml: 0.5 }, { children: ["\u62A5\u544A\u751F\u6210\u4E8E ", dayjs(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('scoreRank')) && (_jsx(Typography, __assign({ color: "inherit", sx: { textDecoration: 'underline', cursor: 'pointer', ml: 1.5 }, onClick: function () { return setOpenRankingRange(true); } }, { children: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E" })))] })), _jsx(Box, __assign({ width: 120, height: 120, sx: { marginTop: -3 } }, { children: !!feScore && feScore >= 80 && _jsx(RecommendIcon, { size: 120, sx: { width: 120, height: 120 }, htmlColor: Colors[model] }) }))] }))] })));
87
82
  };
88
83
  export default Score;
@@ -3,6 +3,7 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
3
3
  updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
4
4
  token: string;
5
5
  name?: string | undefined;
6
+ aiModel?: string | undefined;
6
7
  extraAbilityTokens?: string[] | undefined;
7
8
  templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
8
9
  mediaList?: {
@@ -15,6 +16,7 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
15
16
  updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
16
17
  token: string;
17
18
  name?: string | undefined;
19
+ aiModel?: string | undefined;
18
20
  extraAbilityTokens?: string[] | undefined;
19
21
  templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
20
22
  mediaList?: {
@@ -27,6 +29,7 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
27
29
  updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
28
30
  token: string;
29
31
  name?: string | undefined;
32
+ aiModel?: string | undefined;
30
33
  extraAbilityTokens?: string[] | undefined;
31
34
  templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
32
35
  mediaList?: {
@@ -33,6 +33,7 @@ export var useAiQuestionStore = (_a = __read(createGlobalStore(function () {
33
33
  token: '',
34
34
  extraAbilityTokens: [],
35
35
  name: '',
36
+ aiModel: '',
36
37
  mediaList: [],
37
38
  }), 2), state = _a[0], updateState = _a[1];
38
39
  return __assign(__assign({}, state), { updateState: updateState });
@@ -98,12 +98,12 @@ var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
98
98
  handleValues: handleValues,
99
99
  handleTemplate: function (steps) { return addModel(steps); },
100
100
  handleSubmit: function () { return __awaiter(void 0, void 0, void 0, function () {
101
- var _a, _b, name, token, questions, _c, mediaUrl, thumbUrl, appliedAllPosition, data, error_1;
101
+ var _a, _b, name, token, questions, aiModel, _c, mediaUrl, thumbUrl, appliedAllPosition, data, error_1;
102
102
  return __generator(this, function (_d) {
103
103
  switch (_d.label) {
104
104
  case 0: return [4 /*yield*/, handleValues()];
105
105
  case 1:
106
- _a = _d.sent(), _b = _a.data, name = _b.name, token = _b.token, questions = _b.steps, _c = _a.media, mediaUrl = _c.mediaUrl, thumbUrl = _c.thumbUrl, appliedAllPosition = _c.appliedAllPosition;
106
+ _a = _d.sent(), _b = _a.data, name = _b.name, token = _b.token, questions = _b.steps, aiModel = _b.aiModel, _c = _a.media, mediaUrl = _c.mediaUrl, thumbUrl = _c.thumbUrl, appliedAllPosition = _c.appliedAllPosition;
107
107
  if (!(questions === null || questions === void 0 ? void 0 : questions.length)) {
108
108
  fbm_ui_1.Message.error('还未添加题目,请添加题目');
109
109
  return [2 /*return*/, Promise.reject()];
@@ -111,7 +111,7 @@ var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
111
111
  _d.label = 2;
112
112
  case 2:
113
113
  _d.trys.push([2, 4, , 5]);
114
- return [4 /*yield*/, (0, ai_question_1.PostAiModelUpsert)(__assign(__assign({ name: name, thirdToken: '' }, interviewRoomState), { introductoryVideoSetting: {}, selectAbilities: selctedAbilitys, token: token, questions: questions }))];
114
+ return [4 /*yield*/, (0, ai_question_1.PostAiModelUpsert)(__assign(__assign({ name: name, thirdToken: '', aiModel: (props === null || props === void 0 ? void 0 : props.aiModel) || aiModel }, interviewRoomState), { introductoryVideoSetting: {}, selectAbilities: selctedAbilitys, token: token, questions: questions }))];
115
115
  case 3:
116
116
  data = (_d.sent()).data;
117
117
  return [2 /*return*/, Promise.resolve({
@@ -57,7 +57,7 @@ var Question = function () {
57
57
  postAiModelDetails();
58
58
  }
59
59
  else {
60
- updateModel({ name: name || '暂无名称', token: '', duration: 0, steps: [], interactionMethods: [] });
60
+ updateModel({ name: name || '暂无名称', token: '', aiModel: '', duration: 0, steps: [], interactionMethods: [] });
61
61
  }
62
62
  }, [name, token, postAiModelDetails, updateModel]);
63
63
  (0, react_1.useEffect)(function () {
@@ -7,6 +7,7 @@ export interface QuestionModelStep extends QuestionParams {
7
7
  export interface QuestionModelData {
8
8
  name?: string | undefined;
9
9
  token?: string;
10
+ aiModel?: string;
10
11
  duration?: number;
11
12
  selectAbilities?: string[];
12
13
  interactType?: number;
@@ -48,6 +48,7 @@ export interface Media {
48
48
  export interface AiQuestionProps {
49
49
  token: string;
50
50
  name?: string;
51
+ aiModel?: string;
51
52
  extraAbilityTokens?: string[];
52
53
  templateList?: QuestionModelStep[];
53
54
  mediaList?: Array<{
@@ -7,6 +7,7 @@ export declare const useAiQuestion: (props: AiQuestionProps) => {
7
7
  handleTemplate: ((steps: import("./components/QuestionModel/interface").QuestionModelStep[]) => void) | undefined;
8
8
  token: string;
9
9
  name?: string | undefined;
10
+ aiModel?: string | undefined;
10
11
  extraAbilityTokens?: string[] | undefined;
11
12
  templateList?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined;
12
13
  mediaList?: {
@@ -14,29 +14,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  var jsx_runtime_1 = require("react/jsx-runtime");
15
15
  var ai_report_1 = require("../../../../enum/ai-report");
16
16
  var ai_report_2 = require("../../../../enum/ai-report");
17
- var fbm_icons_1 = require("fbm-icons");
17
+ // import { SwitchIcon } from 'fbm-icons';
18
18
  var fbm_ui_1 = require("fbm-ui");
19
- var mui_1 = require("fbm-ui/lib/mui");
20
19
  var FAILED = ai_report_2.INTERVIEW_STATUS.FAILED;
21
20
  var Failed = function (_a) {
22
21
  var loading = _a.loading, status = _a.status, onRefresh = _a.onRefresh, _b = _a.model, model = _b === void 0 ? 'standard' : _b, onSwitchReportModel = _a.onSwitchReportModel;
23
22
  return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ loading: loading, display: "flex", alignItems: "center", padding: "32px 24px", sx: {
24
23
  px: 3,
25
24
  height: 280,
26
- background: "".concat(ai_report_1.Colors[model], " url('").concat(ai_report_1.BackgroundImage[model], "') no-repeat center center / contain"),
25
+ background: "url('".concat(ai_report_1.BackgroundImage[model], "') no-repeat center center / cover"),
27
26
  overflow: 'hidden',
28
27
  borderRadius: '0 0 62px 62px',
29
28
  } }, { children: [status === FAILED && ((0, jsx_runtime_1.jsx)(fbm_ui_1.CancelIcon, { style: {
30
29
  color: '#ff6c6c',
31
30
  width: '24px',
32
31
  height: '24px',
33
- } })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: status === FAILED ? '报告计算失败,请手动' : '报告正在计算中,请稍后查看或手动' })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", endIcon: (0, jsx_runtime_1.jsx)(fbm_ui_1.RefreshIcon, {}), size: "small", style: { color: '#576B95', padding: '0px 4px' }, onClick: onRefresh }, { children: "\u5237\u65B0\u62A5\u544A" })), model === 'pro' && ((0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", py: 2, justifyContent: "flex-end", spacing: 1, alignContent: "center", color: ai_report_1.Colors[model] }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", size: "small", loading: loading, icon: (0, jsx_runtime_1.jsx)(fbm_icons_1.SwitchIcon, {}), sx: {
34
- ml: 1,
35
- color: 'inherit',
36
- borderColor: 'inherit',
37
- '&:hover': {
38
- borderColor: 'inherit',
39
- },
40
- }, onClick: onSwitchReportModel }, { children: ai_report_1.SwitchTitle[model] })) })))] })));
32
+ } })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: status === FAILED ? '报告计算失败,请手动' : '报告正在计算中,请稍后查看或手动' })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", endIcon: (0, jsx_runtime_1.jsx)(fbm_ui_1.RefreshIcon, {}), size: "small", style: { color: '#576B95', padding: '0px 4px' }, onClick: onRefresh }, { children: "\u5237\u65B0\u62A5\u544A" }))] })));
41
33
  };
42
34
  exports.default = Failed;
@@ -35,12 +35,12 @@ var RankingRange_1 = __importDefault(require("../RankingRange"));
35
35
  var Bar_1 = __importDefault(require("./Bar"));
36
36
  var RecommendIcon_1 = __importDefault(require("./RecommendIcon"));
37
37
  var styled_1 = require("./styled");
38
- var Tips_1 = __importDefault(require("./Tips"));
38
+ // import Tips from './Tips';
39
39
  var ai_report_1 = require("../../../../enum/ai-report");
40
40
  var global_store_1 = require("../../../../store/ai-report/global-store");
41
41
  var utils_1 = require("../../../../utils/utils");
42
42
  var dayjs_1 = __importDefault(require("dayjs"));
43
- var fbm_icons_1 = require("fbm-icons");
43
+ // import { SwitchIcon } from 'fbm-icons';
44
44
  var fbm_ui_1 = require("fbm-ui");
45
45
  var mui_1 = require("fbm-ui/lib/mui");
46
46
  var react_1 = require("react");
@@ -65,7 +65,7 @@ var Score = function (_a) {
65
65
  return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ display: "flex", sx: {
66
66
  px: 3,
67
67
  height: 280,
68
- background: "".concat(ai_report_1.Colors[model], " url('").concat(ai_report_1.BackgroundImage[model], "') no-repeat center center / contain"),
68
+ background: "url('".concat(ai_report_1.BackgroundImage[model], "') no-repeat center center / cover"),
69
69
  overflow: 'hidden',
70
70
  borderRadius: '0 0 62px 62px',
71
71
  } }, { children: [model === 'pro' && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", justifyContent: "center", width: 92, height: 30, sx: {
@@ -74,20 +74,13 @@ var Score = function (_a) {
74
74
  left: 0,
75
75
  backgroundColor: ai_report_1.Colors[model],
76
76
  borderBottomRightRadius: 16,
77
- } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", color: "white" }, { children: "\u9AD8\u7CBE\u51C6\u5EA6" })) }))), (0, jsx_runtime_1.jsx)(RankingRange_1.default, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", py: 2, justifyContent: "flex-end", spacing: 1, alignContent: "center", color: ai_report_1.Colors[model] }, { children: (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", size: "small", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.DownloadIcon, {}), sx: {
78
- ml: 1,
79
- color: 'inherit',
77
+ } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", color: "white" }, { children: "\u9AD8\u7CBE\u51C6\u5EA6" })) }))), (0, jsx_runtime_1.jsx)(RankingRange_1.default, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", py: 2, justifyContent: "flex-end", spacing: 1, alignContent: "center", color: ai_report_1.Colors[model] }, { children: (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", size: "small", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.DownloadIcon, {}), sx: {
78
+ ml: 1,
79
+ color: 'inherit',
80
+ borderColor: 'inherit',
81
+ '&:hover': {
80
82
  borderColor: 'inherit',
81
- '&:hover': {
82
- borderColor: 'inherit',
83
- },
84
- }, onClick: onExportReportClick }, { children: "\u5BFC\u51FA\u62A5\u544A" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", size: "small", loading: loading, icon: (0, jsx_runtime_1.jsx)(fbm_icons_1.SwitchIcon, {}), sx: {
85
- ml: 1,
86
- color: 'inherit',
87
- borderColor: 'inherit',
88
- '&:hover': {
89
- borderColor: 'inherit',
90
- },
91
- }, onClick: onSwitchReportModel }, { children: ai_report_1.SwitchTitle[model] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ arrow: false, content: Tips_1.default, trigger: "hover" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { htmlColor: "inherit", sx: { cursor: 'pointer' } }) }))] })) })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", height: 80, color: ai_report_1.Colors[model] }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(styled_1.ScoreTypography, __assign({ color: "inherit" }, { children: (0, utils_1.formatScore)(feScore || 0) })), (0, jsx_runtime_1.jsx)(styled_1.ScoreUnitTypography, __assign({ color: "inherit", sx: { alignSelf: 'flex-end' } }, { children: "\u5206" }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 200, ml: 5, color: ai_report_1.Colors[model] }, { children: (0, jsx_runtime_1.jsx)(Bar_1.default, { model: model }) }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-between", color: ai_report_1.Colors[model] }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", mt: 1, sx: { alignSelf: 'flex-start' } }, { children: [(operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: (0, jsx_runtime_1.jsx)(styled_1.RefreshIconRoot, { htmlColor: "inherit", onClick: function () { return setOpenRefresh(true); } }) }))), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "inherit", ml: 0.5 }, { children: ["\u62A5\u544A\u751F\u6210\u4E8E ", (0, dayjs_1.default)(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('scoreRank')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ color: "inherit", sx: { textDecoration: 'underline', cursor: 'pointer', ml: 1.5 }, onClick: function () { return setOpenRankingRange(true); } }, { children: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E" })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 120, height: 120, sx: { marginTop: -3 } }, { children: !!feScore && feScore >= 80 && (0, jsx_runtime_1.jsx)(RecommendIcon_1.default, { size: 120, sx: { width: 120, height: 120 }, htmlColor: ai_report_1.Colors[model] }) }))] }))] })));
83
+ },
84
+ }, onClick: onExportReportClick }, { children: "\u5BFC\u51FA\u62A5\u544A" })) })) })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", height: 80, color: ai_report_1.Colors[model] }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(styled_1.ScoreTypography, __assign({ color: "inherit" }, { children: (0, utils_1.formatScore)(feScore || 0) })), (0, jsx_runtime_1.jsx)(styled_1.ScoreUnitTypography, __assign({ color: "inherit", sx: { alignSelf: 'flex-end' } }, { children: "\u5206" }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 200, ml: 5, color: ai_report_1.Colors[model] }, { children: (0, jsx_runtime_1.jsx)(Bar_1.default, { model: model }) }))] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-between", color: ai_report_1.Colors[model] }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", mt: 1, sx: { alignSelf: 'flex-start' } }, { children: [(operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: (0, jsx_runtime_1.jsx)(styled_1.RefreshIconRoot, { htmlColor: "inherit", onClick: function () { return setOpenRefresh(true); } }) }))), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "inherit", ml: 0.5 }, { children: ["\u62A5\u544A\u751F\u6210\u4E8E ", (0, dayjs_1.default)(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('scoreRank')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ color: "inherit", sx: { textDecoration: 'underline', cursor: 'pointer', ml: 1.5 }, onClick: function () { return setOpenRankingRange(true); } }, { children: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E" })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 120, height: 120, sx: { marginTop: -3 } }, { children: !!feScore && feScore >= 80 && (0, jsx_runtime_1.jsx)(RecommendIcon_1.default, { size: 120, sx: { width: 120, height: 120 }, htmlColor: ai_report_1.Colors[model] }) }))] }))] })));
92
85
  };
93
86
  exports.default = Score;
@@ -3,6 +3,7 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
3
3
  updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
4
4
  token: string;
5
5
  name?: string | undefined;
6
+ aiModel?: string | undefined;
6
7
  extraAbilityTokens?: string[] | undefined;
7
8
  templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
8
9
  mediaList?: {
@@ -15,6 +16,7 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
15
16
  updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
16
17
  token: string;
17
18
  name?: string | undefined;
19
+ aiModel?: string | undefined;
18
20
  extraAbilityTokens?: string[] | undefined;
19
21
  templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
20
22
  mediaList?: {
@@ -27,6 +29,7 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
27
29
  updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
28
30
  token: string;
29
31
  name?: string | undefined;
32
+ aiModel?: string | undefined;
30
33
  extraAbilityTokens?: string[] | undefined;
31
34
  templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
32
35
  mediaList?: {
@@ -36,6 +36,7 @@ exports.useAiQuestionStore = (_a = __read((0, hox_1.createGlobalStore)(function
36
36
  token: '',
37
37
  extraAbilityTokens: [],
38
38
  name: '',
39
+ aiModel: '',
39
40
  mediaList: [],
40
41
  }), 2), state = _a[0], updateState = _a[1];
41
42
  return __assign(__assign({}, state), { updateState: updateState });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.41-alpha.27",
3
+ "version": "1.2.41-alpha.29",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",