eli-video-interview 1.2.42-alpha.55 → 1.2.42-alpha.56
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.
|
@@ -121,7 +121,6 @@ var BootVideo = function (props) {
|
|
|
121
121
|
}, [virtualManList]);
|
|
122
122
|
var broadcastType = useMemo(function () {
|
|
123
123
|
var _a;
|
|
124
|
-
console.log('virtualManList', virtualManList);
|
|
125
124
|
return ((_a = virtualManList.find(function (v) { return v.selected; })) === null || _a === void 0 ? void 0 : _a.type) || 1;
|
|
126
125
|
}, [virtualManList]);
|
|
127
126
|
var virtualMan = virtualManList.find(function (v) { return v.selected; });
|
|
@@ -162,7 +161,6 @@ var BootVideo = function (props) {
|
|
|
162
161
|
updateInterviewRoom(__assign(__assign({}, interviewRoomState), { interactionMethods: virtualManList }));
|
|
163
162
|
onClose();
|
|
164
163
|
};
|
|
165
|
-
console.log('virtualMan?.detail?', virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, broadcastType);
|
|
166
164
|
var uploadProps = {
|
|
167
165
|
type: 'custom',
|
|
168
166
|
showUploadList: false,
|
|
@@ -246,14 +244,20 @@ var BootVideo = function (props) {
|
|
|
246
244
|
mr: 4.5,
|
|
247
245
|
},
|
|
248
246
|
}, 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(Select, { options: Options, value: broadcastType, onChange: function (e) {
|
|
249
|
-
var _a;
|
|
247
|
+
var _a, _b, _c;
|
|
250
248
|
var value = e.target.value;
|
|
251
|
-
|
|
249
|
+
var newVirtualManList = virtualManList.map(function (v) { return (__assign(__assign({}, v), { selected: v.type === value })); });
|
|
250
|
+
setVirtualManList(__spreadArray([], __read(newVirtualManList), false));
|
|
252
251
|
if (![3, 4].includes(value)) {
|
|
253
252
|
setInterviewRoomState(__assign(__assign({}, interviewRoomState), {
|
|
254
253
|
// @ts-ignore
|
|
255
254
|
aiInterviewerProfile: (_a = virtualManList.find(function (v) { return v.type === value; })) === null || _a === void 0 ? void 0 : _a.detail }));
|
|
256
255
|
}
|
|
256
|
+
else {
|
|
257
|
+
setInterviewRoomState(__assign(__assign({}, interviewRoomState), {
|
|
258
|
+
// @ts-ignore
|
|
259
|
+
aiInterviewerProfile: ((_c = (_b = virtualManList.find(function (v) { return v.type === value; })) === null || _b === void 0 ? void 0 : _b.detail.interviewerShows) === null || _c === void 0 ? void 0 : _c.find(function (v) { return v.selected; })) || (virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) }));
|
|
260
|
+
}
|
|
257
261
|
}, sx: { width: 240, height: 'auto', mt: 1 } }), broadcastType === 3 && (_jsxs(Stack, { children: [_jsx(CustomVideos, { mediaList: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, setMediaList: handleSetVideo }), _jsx(Typography, __assign({ variant: "body2", fontWeight: "medium", mt: 3, mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u6587\u672C\u6846\u5185\u5BB9" })), _jsx(TextField, { multiline: true, error: (((_a = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _a === void 0 ? void 0 : _a.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, sx: { mb: 2 }, onChange: handleGuidanceText, max: 300 })] })), _jsx(Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 3 }, { children: ![3, 4].includes(broadcastType) ? '面试官形象' : '面试官形象(播报题目)' })), ![3, 4].includes(broadcastType) && (_jsx(CustomUploadedImgRoot, { children: _jsx(Box, { children: _jsx("img", { src: (_b = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _b === void 0 ? void 0 : _b.virtualHumanAvatar, style: {
|
|
258
262
|
borderColor: 'transparent',
|
|
259
263
|
}, height: 100, alt: "" }) }) })), [3, 4].includes(broadcastType) && (_jsx(CustomUploadedImgRoot, { children: (_d = (_c = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _c === void 0 ? void 0 : _c.interviewerShows) === null || _d === void 0 ? void 0 : _d.map(function (human) { return (_jsxs(Box, { children: [_jsx("img", { src: human.virtualHumanAvatar, style: {
|
|
@@ -126,7 +126,6 @@ var BootVideo = function (props) {
|
|
|
126
126
|
}, [virtualManList]);
|
|
127
127
|
var broadcastType = (0, react_1.useMemo)(function () {
|
|
128
128
|
var _a;
|
|
129
|
-
console.log('virtualManList', virtualManList);
|
|
130
129
|
return ((_a = virtualManList.find(function (v) { return v.selected; })) === null || _a === void 0 ? void 0 : _a.type) || 1;
|
|
131
130
|
}, [virtualManList]);
|
|
132
131
|
var virtualMan = virtualManList.find(function (v) { return v.selected; });
|
|
@@ -167,7 +166,6 @@ var BootVideo = function (props) {
|
|
|
167
166
|
updateInterviewRoom(__assign(__assign({}, interviewRoomState), { interactionMethods: virtualManList }));
|
|
168
167
|
onClose();
|
|
169
168
|
};
|
|
170
|
-
console.log('virtualMan?.detail?', virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, broadcastType);
|
|
171
169
|
var uploadProps = {
|
|
172
170
|
type: 'custom',
|
|
173
171
|
showUploadList: false,
|
|
@@ -251,14 +249,20 @@ var BootVideo = function (props) {
|
|
|
251
249
|
mr: 4.5,
|
|
252
250
|
},
|
|
253
251
|
}, defaultValue: "outlined", onChange: handleInteractTypeChange, value: interviewRoomState.interactType }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_2.Radio, { value: 1, label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }), (0, jsx_runtime_1.jsx)(fbm_ui_2.Radio, { value: 2, label: "AI\u9762\u8BD5\u5B98\u5BF9\u8BDD\u6A21\u5F0F" })] })), interviewRoomState.interactType === 2 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_2.Select, { options: Options, value: broadcastType, onChange: function (e) {
|
|
254
|
-
var _a;
|
|
252
|
+
var _a, _b, _c;
|
|
255
253
|
var value = e.target.value;
|
|
256
|
-
|
|
254
|
+
var newVirtualManList = virtualManList.map(function (v) { return (__assign(__assign({}, v), { selected: v.type === value })); });
|
|
255
|
+
setVirtualManList(__spreadArray([], __read(newVirtualManList), false));
|
|
257
256
|
if (![3, 4].includes(value)) {
|
|
258
257
|
setInterviewRoomState(__assign(__assign({}, interviewRoomState), {
|
|
259
258
|
// @ts-ignore
|
|
260
259
|
aiInterviewerProfile: (_a = virtualManList.find(function (v) { return v.type === value; })) === null || _a === void 0 ? void 0 : _a.detail }));
|
|
261
260
|
}
|
|
261
|
+
else {
|
|
262
|
+
setInterviewRoomState(__assign(__assign({}, interviewRoomState), {
|
|
263
|
+
// @ts-ignore
|
|
264
|
+
aiInterviewerProfile: ((_c = (_b = virtualManList.find(function (v) { return v.type === value; })) === null || _b === void 0 ? void 0 : _b.detail.interviewerShows) === null || _c === void 0 ? void 0 : _c.find(function (v) { return v.selected; })) || (virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) }));
|
|
265
|
+
}
|
|
262
266
|
}, sx: { width: 240, height: 'auto', mt: 1 } }), broadcastType === 3 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(CustomVideos_1.default, { mediaList: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail, setMediaList: handleSetVideo }), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ variant: "body2", fontWeight: "medium", mt: 3, mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u6587\u672C\u6846\u5185\u5BB9" })), (0, jsx_runtime_1.jsx)(fbm_ui_2.TextField, { multiline: true, error: (((_a = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _a === void 0 ? void 0 : _a.length) || 0) > 300, rows: 3, placeholder: "\u8BF7\u8F93\u5165\u6587\u672C\u6846\u5185\u5BB9\uFF0C\u82E5\u4E0D\u586B\uFF0C\u5219\u5728\u9762\u8BD5\u95F4\u4E0D\u5C55\u793A\u8BE5\u6587\u672C\u6846\u3002", value: virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText, sx: { mb: 2 }, onChange: handleGuidanceText, max: 300 })] })), (0, jsx_runtime_1.jsx)(fbm_ui_2.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 3 }, { children: ![3, 4].includes(broadcastType) ? '面试官形象' : '面试官形象(播报题目)' })), ![3, 4].includes(broadcastType) && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (0, jsx_runtime_1.jsx)(fbm_ui_2.Box, { children: (0, jsx_runtime_1.jsx)("img", { src: (_b = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _b === void 0 ? void 0 : _b.virtualHumanAvatar, style: {
|
|
263
267
|
borderColor: 'transparent',
|
|
264
268
|
}, height: 100, alt: "" }) }) })), [3, 4].includes(broadcastType) && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (_d = (_c = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _c === void 0 ? void 0 : _c.interviewerShows) === null || _d === void 0 ? void 0 : _d.map(function (human) { return ((0, jsx_runtime_1.jsxs)(fbm_ui_2.Box, { children: [(0, jsx_runtime_1.jsx)("img", { src: human.virtualHumanAvatar, style: {
|